commit d201674b947fb8ce1f4807d8195dba91ecca1a30
Author: Andrew Bauer <zonexpertconsulting(a)outlook.com>
Date: Mon May 13 07:40:48 2024 -0500
Update to lastest fixes/34
Adjust firewalld config, fixes RFBZ 6922
mythtv-webbackend.xml | 8 +
mythtv-webfrontend.xml | 5 +-
mythtv.spec | 19 +-
v33.1..6b442547f2.patch | 14628 ----------------------------------------------
v34.0..a88dd47ba4.patch | 10596 ---------------------------------
v34.0..d6398e090f.patch | 14239 ++++++++++++++++++++++++++++++++++++++++++++
6 files changed, 14263 insertions(+), 25232 deletions(-)
---
diff --git a/mythtv-webbackend.xml b/mythtv-webbackend.xml
new file mode 100644
index 0000000..7fad429
--- /dev/null
+++ b/mythtv-webbackend.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="utf-8"?>
+<service version="1.0">
+<short>mythtv-webbackend</short>
+<description>Backend web application and API. This is the replacment of
Mythweb.</description>
+ <port protocol="tcp" port="6544"/>
+ <port protocol="tcp" port="6554"/>
+</service>
+
diff --git a/mythtv-webfrontend.xml b/mythtv-webfrontend.xml
index 2194edd..823ebe7 100644
--- a/mythtv-webfrontend.xml
+++ b/mythtv-webfrontend.xml
@@ -1,7 +1,8 @@
<?xml version="1.0" encoding="utf-8"?>
<service version="1.0">
<short>mythtv-webfrontend</short>
-<description>Browser based frontend that replaces Mythweb</description>
- <port port="6544-6549" protocol="tcp"/>
+<description>Frontened web application and API. This is the replacment of
Mythweb.</description>
+ <port protocol="tcp" port="6547"/>
+ <port protocol="tcp" port="6557"/>
</service>
diff --git a/mythtv.spec b/mythtv.spec
index c4f27e4..c3de0fb 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 v34.0-10-ga88dd47ba4
+%global vers_string v34.0-21-gd6398e090f
# The git date of last commit on mythtv repo
# git_date=$(git log -1 --format=%cd --date=format:"%Y%m%d")
-%global git_date 20240220
+%global git_date 20240325
# Specfile for building MythTV and MythPlugins RPMs from a git checkout.
#
@@ -151,9 +151,10 @@ Source111: 99-mythbackend.rules
Source112: mythjobqueue.service
Source113: mythdb-optimize.service
Source114: mythdb-optimize.timer
-# firewalld config for new webfrontend
-#
https://www.mythtv.org/wiki/WebFrontend
+# firewalld config for new web application
+#
https://www.mythtv.org/wiki/Web_Application
Source115: mythtv-webfrontend.xml
+Source116: mythtv-webbackend.xml
# Global MythTV and Shared Build Requirements
@@ -1026,9 +1027,10 @@ popd
find %{buildroot}%{_datadir}/mythtv/ -type f -name "*.py" -exec sed -i
'1s:#!/usr/bin/env python$:#!%{__python3}:' {} ';'
find %{buildroot}%{_datadir}/mythtv/ -type f -name "*.py" -exec sed -i
'1s:#!/usr/bin/python$:#!%{__python3}:' {} ';'
-# Install firewalld config
+# Install firewalld configs
mkdir -p %{buildroot}%{fw_services}
install -pm 0644 %{SOURCE115} %{buildroot}%{fw_services}/
+install -pm 0644 %{SOURCE116} %{buildroot}%{fw_services}/
%pre common
# Add the "mythtv" user, with membership in the audio and video group
@@ -1122,7 +1124,7 @@ exit 0
%{_datadir}/mythtv/internetcontent/
%{_datadir}/mythtv/html/
%{_datadir}/mythtv/externrecorder/
-%{fw_services}/mythtv-webfrontend.xml
+%{fw_services}/mythtv-webbackend.xml
%files setup
%{_bindir}/mythtv-setup
@@ -1149,6 +1151,7 @@ exit 0
%{_datadir}/mythtv/metadata/
# Myth Video is now Video Gallery
%attr(0775,mythtv,mythtv) %{_localstatedir}/lib/mythvideo
+%{fw_services}/mythtv-webfrontend.xml
%files base-themes
%{_datadir}/mythtv/themes/
@@ -1297,6 +1300,10 @@ exit 0
################################################################################
%changelog
+* Mon May 13 2024 Andrew Bauer <zonexpertconsulting(a)outlook.com> -
v34.0-1.21.20240325gitd6398e090f
+- Update to lastest fixes/34
+- Adjust firewalld config, fixes RFBZ 6922
+
* Sat Apr 06 2024 Leigh Scott <leigh123linux(a)gmail.com> -
34.0-2.10.20240220gita88dd47ba4
- Rebuild for new x265 version
diff --git a/v34.0..d6398e090f.patch b/v34.0..d6398e090f.patch
new file mode 100644
index 0000000..c6f36c8
--- /dev/null
+++ b/v34.0..d6398e090f.patch
@@ -0,0 +1,14239 @@
+From f3f012aa3f884adbe7edea38703d8b2c721db6ab Mon Sep 17 00:00:00 2001
+From: DFDario <ddafre(a)gmail.com>
+Date: Fri, 9 Feb 2024 21:31:57 +0100
+Subject: [PATCH 01/21] Translations: Update mythbrowser translation source
+ files (Italian) (#858)
+
+While checking the Italian translation status I found three new sentences from my last
update from yesterday so I released a new one
+
+(cherry picked from commit 6e8283a57b5b7bf4d2474f929217c450dd81b6bb)
+---
+ mythtv/i18n/mythbrowser_it.ts | 536 ++++++++++++++++++++++++++++++++++
+ 1 file changed, 536 insertions(+)
+ create mode 100644 mythtv/i18n/mythbrowser_it.ts
+
+diff --git a/mythtv/i18n/mythbrowser_it.ts b/mythtv/i18n/mythbrowser_it.ts
+new file mode 100644
+index 00000000000..a8c8f6505a2
+--- /dev/null
++++ b/mythtv/i18n/mythbrowser_it.ts
+@@ -0,0 +1,536 @@
++<?xml version="1.0" encoding="utf-8"?>
++<!DOCTYPE TS>
++<TS version="2.1" language="it_IT"
sourcelanguage="en_US">
++<context>
++ <name>BookmarkEditor</name>
++ <message>
++ <location filename="../mythbrowser/bookmarkeditor.cpp"
line="57"/>
++ <source>Edit Bookmark Details</source>
++ <translation>Modifica dettagli segnalibro</translation>
++ </message>
++ <message>
++ <location filename="../mythbrowser/bookmarkeditor.cpp"
line="59"/>
++ <source>Enter Bookmark Details</source>
++ <translation>Inserire dettagli segnalibro</translation>
++ </message>
++ <message>
++ <location filename="../mythbrowser/bookmarkeditor.cpp"
line="129"/>
++ <source>Select a category</source>
++ <translation>Seleziona una categoria</translation>
++ </message>
++</context>
++<context>
++ <name>BookmarkManager</name>
++ <message>
++ <location filename="../mythbrowser/bookmarkmanager.cpp"
line="153"/>
++ <source>No bookmarks defined.
++
++Use the 'Add Bookmark' menu option to add new
bookmarks</source>
++ <translation>Nessun segnalibro definito.
++
++Usa l'opzione menù "Aggiungi segnalibro" per aggiungere nuovi
segnalibri</translation>
++ </message>
++ <message>
++ <location filename="../mythbrowser/bookmarkmanager.cpp"
line="255"/>
++ <source>Actions</source>
++ <translation>Azioni</translation>
++ </message>
++ <message>
++ <location filename="../mythbrowser/bookmarkmanager.cpp"
line="270"/>
++ <source>Set Homepage</source>
++ <translation>Imposta Pagina Iniziale</translation>
++ </message>
++ <message>
++ <location filename="../mythbrowser/bookmarkmanager.cpp"
line="271"/>
++ <source>Add Bookmark</source>
++ <translation>Aggiungi segnalibro</translation>
++ </message>
++ <message>
++ <location filename="../mythbrowser/bookmarkmanager.cpp"
line="275"/>
++ <source>Edit Bookmark</source>
++ <translation>Modifica segnalibro</translation>
++ </message>
++ <message>
++ <location filename="../mythbrowser/bookmarkmanager.cpp"
line="276"/>
++ <source>Delete Bookmark</source>
++ <translation>Elimina segnalibro</translation>
++ </message>
++ <message>
++ <location filename="../mythbrowser/bookmarkmanager.cpp"
line="277"/>
++ <source>Show Bookmark</source>
++ <translation>Mostra segnalibro</translation>
++ </message>
++ <message>
++ <location filename="../mythbrowser/bookmarkmanager.cpp"
line="282"/>
++ <source>Delete Marked</source>
++ <translation>Elimina marcati</translation>
++ </message>
++ <message>
++ <location filename="../mythbrowser/bookmarkmanager.cpp"
line="283"/>
++ <source>Show Marked</source>
++ <translation>Mostra marcati</translation>
++ </message>
++ <message>
++ <location filename="../mythbrowser/bookmarkmanager.cpp"
line="284"/>
++ <source>Clear Marked</source>
++ <translation>Pulisci marcati</translation>
++ </message>
++ <message>
++ <location filename="../mythbrowser/bookmarkmanager.cpp"
line="287"/>
++ <source>Settings</source>
++ <translation>Impostazioni</translation>
++ </message>
++ <message>
++ <location filename="../mythbrowser/bookmarkmanager.cpp"
line="494"/>
++ <source>Are you sure you want to delete the selected
bookmark?</source>
++ <translation>Elimino il segnalibro selezionato?</translation>
++ </message>
++ <message>
++ <location filename="../mythbrowser/bookmarkmanager.cpp"
line="538"/>
++ <source>Are you sure you want to delete the marked
bookmarks?</source>
++ <translation>Elimino il segnalibro marcato?</translation>
++ </message>
++</context>
++<context>
++ <name>BrowserConfig</name>
++ <message>
++ <location filename="../mythbrowser/bookmarkmanager.cpp"
line="35"/>
++ <source>MythBrowser Settings</source>
++ <translation>Impostazioni Mythbrowser</translation>
++ </message>
++ <message>
++ <location filename="../mythbrowser/bookmarkmanager.cpp"
line="110"/>
++ <source>This is the command that will be used to show the web browser. Use
'Internal' to use the built in web browser'. %ZOOM% and %URL%
will be replaced with the zoom level and URL list.</source>
++ <translation>Comando utilizzato per avviare il browser web. Scegli
"Interno" per utilizzare le funzioni integrate nel browser web.
++%ZOOM% e %URL% saranno sostituiti con il livello di ingrandimento e con
l'elenco URL.</translation>
++ </message>
++ <message>
++ <location filename="../mythbrowser/bookmarkmanager.cpp"
line="116"/>
++ <source>This is the default text size that will be used. Valid values for
the Internal browser are from 0.3 to 5.0 with 1.0 being normal size less than 1 is smaller
and greater than 1 is larger than normal size.</source>
++ <translation>Dimensione testo predefinita che sarà utilizzata. Valori
validi per il browser interno sono da 0.3 a 5.0, dove 1.0 è la dimensione normale,
inferore a 1 è più piccolo e superiore a 1 è più grande.</translation>
++ </message>
++ <message>
++ <location filename="../mythbrowser/bookmarkmanager.cpp"
line="123"/>
++ <source>If checked this will enable browser plugins if the
'Internal' browser is being used.</source>
++ <translation>Se abilitato e viene utilizzato il browser
"Interno" verranno abilitati i plugin.</translation>
++ </message>
++ <message>
++ <location filename="../mythbrowser/bookmarkmanager.cpp"
line="128"/>
++ <source>Exit without saving settings</source>
++ <translation>Esci senza salvare le impostazioni</translation>
++ </message>
++ <message>
++ <location filename="../mythbrowser/bookmarkmanager.cpp"
line="132"/>
++ <source>Save settings and Exit</source>
++ <translation>Salva le impostazioni e esci</translation>
++ </message>
++</context>
++<context>
++ <name>MythBrowser</name>
++ <message>
++ <location filename="../mythbrowser/mythbrowser.cpp"
line="139"/>
++ <location filename="../mythbrowser/mythbrowser.cpp"
line="351"/>
++ <source>Enter URL</source>
++ <translation>Inserisci URL</translation>
++ </message>
++ <message>
++ <location filename="../mythbrowser/mythbrowser.cpp"
line="271"/>
++ <source>Loading...</source>
++ <translation>Caricamento...</translation>
++ </message>
++ <message>
++ <location filename="../mythbrowser/mythbrowser.cpp"
line="340"/>
++ <source>Actions</source>
++ <translation>Azioni</translation>
++ </message>
++ <message>
++ <location filename="../mythbrowser/mythbrowser.cpp"
line="354"/>
++ <source>Back</source>
++ <translation>Indietro</translation>
++ </message>
++ <message>
++ <location filename="../mythbrowser/mythbrowser.cpp"
line="357"/>
++ <source>Forward</source>
++ <translation>Avanti</translation>
++ </message>
++ <message>
++ <location filename="../mythbrowser/mythbrowser.cpp"
line="359"/>
++ <source>Zoom In</source>
++ <translation>Ingrandisci</translation>
++ </message>
++ <message>
++ <location filename="../mythbrowser/mythbrowser.cpp"
line="360"/>
++ <source>Zoom Out</source>
++ <translation>Riduci</translation>
++ </message>
++ <message>
++ <location filename="../mythbrowser/mythbrowser.cpp"
line="361"/>
++ <source>New Tab</source>
++ <translation>Nuova scheda</translation>
++ </message>
++ <message>
++ <location filename="../mythbrowser/mythbrowser.cpp"
line="364"/>
++ <source>Delete Tab</source>
++ <translation>Elimina scheda</translation>
++ </message>
++ <message>
++ <location filename="../mythbrowser/mythbrowser.cpp"
line="366"/>
++ <source>Add Bookmark</source>
++ <translation>Aggiungi segnalibro</translation>
++ </message>
++</context>
++<context>
++ <name>MythControls</name>
++ <message>
++ <location filename="../mythbrowser/libmythbrowser.cpp"
line="109"/>
++ <source>Move to next browser tab</source>
++ <translation>Sposta alla successiva scheda del
browser</translation>
++ </message>
++ <message>
++ <location filename="../mythbrowser/libmythbrowser.cpp"
line="111"/>
++ <source>Move to previous browser tab</source>
++ <translation>Sposta alla precedente scheda del
browser</translation>
++ </message>
++ <message>
++ <location filename="../mythbrowser/libmythbrowser.cpp"
line="114"/>
++ <source>Show the bookmark manager</source>
++ <translation>Mostra Gestore segnalibri</translation>
++ </message>
++ <message>
++ <location filename="../mythbrowser/libmythbrowser.cpp"
line="116"/>
++ <source>Show the webbrowser homepage</source>
++ <translation>Mostra homepage browser web</translation>
++ </message>
++ <message>
++ <location filename="../mythbrowser/libmythbrowser.cpp"
line="119"/>
++ <source>Internal Web Browser</source>
++ <translation>Browser web interno</translation>
++ </message>
++</context>
++<context>
++ <name>ThemeUI</name>
++ <message>
++ <location filename="themestrings.h" line="57"/>
++ <source>Web Bookmarks</source>
++ <translation>Segnalibri web</translation>
++ </message>
++ <message>
++ <location filename="themestrings.h" line="12"/>
++ <source>Browse your favorite web sites.</source>
++ <translation>Sfoglia siti web preferiti.</translation>
++ </message>
++ <message>
++ <location filename="themestrings.h" line="17"/>
++ <source>Browser:</source>
++ <translation>Browser:</translation>
++ </message>
++ <message>
++ <location filename="themestrings.h" line="46"/>
++ <source>Search</source>
++ <translation>Cerca</translation>
++ </message>
++ <message>
++ <location filename="themestrings.h" line="47"/>
++ <source>Select bookmark</source>
++ <translation>Seleziona segnalibro</translation>
++ </message>
++ <message>
++ <location filename="themestrings.h" line="48"/>
++ <source>Select bookmark or add a new one</source>
++ <translation>Seleziona segnalibro o aggiungine uno</translation>
++ </message>
++ <message>
++ <location filename="themestrings.h" line="49"/>
++ <source>Select bookmark:</source>
++ <translation>Seleziona segnalibro:</translation>
++ </message>
++ <message>
++ <location filename="themestrings.h" line="50"/>
++ <source>Text Size:</source>
++ <translation>Dimensione testo:</translation>
++ </message>
++ <message>
++ <location filename="themestrings.h" line="30"/>
++ <source>Enable browser plugins (Flash, etc):</source>
++ <translation>Abilita plugin del browser (Flash, ecc):</translation>
++ </message>
++ <message>
++ <location filename="themestrings.h" line="18"/>
++ <source>Cancel</source>
++ <translation>Annulla</translation>
++ </message>
++ <message>
++ <location filename="themestrings.h" line="44"/>
++ <source>Rating Settings</source>
++ <translation>Impostazioni valutazione</translation>
++ </message>
++ <message>
++ <location filename="themestrings.h" line="42"/>
++ <source>OK</source>
++ <translation>OK</translation>
++ </message>
++ <message>
++ <location filename="themestrings.h" line="24"/>
++ <source>Configure Web Browser</source>
++ <translation>Configura browser web</translation>
++ </message>
++ <message>
++ <location filename="themestrings.h" line="51"/>
++ <source>Text size:</source>
++ <translation>Dimensione testo:</translation>
++ </message>
++ <message>
++ <location filename="themestrings.h" line="53"/>
++ <source>URL Name:</source>
++ <translation>Nome URL:</translation>
++ </message>
++ <message>
++ <location filename="themestrings.h" line="56"/>
++ <source>WEB BROWSER</source>
++ <translation>BROWSER WEB</translation>
++ </message>
++ <message>
++ <location filename="themestrings.h" line="60"/>
++ <source>Website Name</source>
++ <translation>Nome sito web</translation>
++ </message>
++ <message>
++ <location filename="themestrings.h" line="61"/>
++ <source>Website URL</source>
++ <translation>URL sito web</translation>
++ </message>
++ <message>
++ <location filename="themestrings.h" line="62"/>
++ <source>You can edit the name, URL, and category for the selected Web Site
on this screen.
++
++When you have finished editing, select "OK" or
"Cancel" to continue.</source>
++ <translation>È possibile modificare il nome, l'URL e la categoria
del sito web selezionato su questo schermo.
++
++Al termine della modifica, seleziona "OK" o
"Annulla" per continuare.</translation>
++ </message>
++ <message>
++ <location filename="themestrings.h" line="20"/>
++ <source>Category:</source>
++ <translation>Categoria:</translation>
++ </message>
++ <message>
++ <location filename="themestrings.h" line="41"/>
++ <source>Name:</source>
++ <translation>Nome:</translation>
++ </message>
++ <message>
++ <location filename="themestrings.h" line="54"/>
++ <source>URL:</source>
++ <translation>URL:</translation>
++ </message>
++ <message>
++ <source>Genre:</source>
++ <translation type="vanished">Genere:</translation>
++ </message>
++ <message>
++ <source>Channel:</source>
++ <translation type="vanished">Canale:</translation>
++ </message>
++ <message>
++ <location filename="themestrings.h" line="22"/>
++ <source>Click to choose from existing categories...</source>
++ <translation>Clic per scegliere dalle categorie
esistenti...</translation>
++ </message>
++ <message>
++ <location filename="themestrings.h" line="14"/>
++ <source>Browser Command:</source>
++ <translation>Comando browser:</translation>
++ </message>
++ <message>
++ <location filename="themestrings.h" line="59"/>
++ <source>Webbrowser</source>
++ <translation>Browserweb</translation>
++ </message>
++ <message>
++ <location filename="themestrings.h" line="10"/>
++ <source>Bookmarks</source>
++ <translation>Segnalibri</translation>
++ </message>
++ <message>
++ <location filename="themestrings.h" line="55"/>
++ <source>Url</source>
++ <translation>Url</translation>
++ </message>
++ <message>
++ <location filename="themestrings.h" line="37"/>
++ <source>Homepage</source>
++ <translation>Pagina iniziale</translation>
++ </message>
++ <message>
++ <location filename="themestrings.h" line="26"/>
++ <source>Edit Bookmark</source>
++ <translation>Modifica segnalibro</translation>
++ </message>
++ <message>
++ <location filename="themestrings.h" line="35"/>
++ <source>Find category</source>
++ <translation>Trova categoria</translation>
++ </message>
++ <message>
++ <location filename="themestrings.h" line="38"/>
++ <source>Homepage:</source>
++ <translation>Pagina iniziale:</translation>
++ </message>
++ <message>
++ <location filename="themestrings.h" line="39"/>
++ <source>Myth Web Browser</source>
++ <translation>Browser web Myth</translation>
++ </message>
++ <message>
++ <location filename="themestrings.h" line="43"/>
++ <source>Ok</source>
++ <translation>Ok</translation>
++ </message>
++ <message>
++ <location filename="themestrings.h" line="45"/>
++ <source>Save</source>
++ <translation>Salva</translation>
++ </message>
++ <message>
++ <location filename="themestrings.h" line="15"/>
++ <source>Browser Settings</source>
++ <translation>Impostazioni del browser</translation>
++ </message>
++ <message numerus="yes">
++ <location filename="themestrings.h" line="6"/>
++ <source>%name% (%url%)</source>
++ <translation>
++ <numerusform>%name% (%url%)</numerusform>
++ <numerusform>%name% (%url%)</numerusform>
++ </translation>
++ </message>
++ <message>
++ <location filename="themestrings.h" line="8"/>
++ <source>Bookmark Name:</source>
++ <translation>Nome segnalibro:</translation>
++ </message>
++ <message>
++ <location filename="themestrings.h" line="9"/>
++ <source>Bookmark URL:</source>
++ <translation>URL segnalibro:</translation>
++ </message>
++ <message>
++ <location filename="themestrings.h" line="11"/>
++ <source>Browse the web</source>
++ <translation>Naviga web</translation>
++ </message>
++ <message>
++ <location filename="themestrings.h" line="13"/>
++ <source>Browser</source>
++ <translation>Browser</translation>
++ </message>
++ <message>
++ <location filename="themestrings.h" line="16"/>
++ <source>Browser command:</source>
++ <translation>Comando browser:</translation>
++ </message>
++ <message>
++ <location filename="themestrings.h" line="21"/>
++ <source>Choose a bookmark to open in the webbrowser</source>
++ <translation>Scegli un segnalibro da aprire nel browser
web</translation>
++ </message>
++ <message>
++ <location filename="themestrings.h" line="23"/>
++ <source>Command:</source>
++ <translation>Comando:</translation>
++ </message>
++ <message>
++ <location filename="themestrings.h" line="25"/>
++ <source>Configure web browser settings</source>
++ <translation>Configura le impostazioni del browser</translation>
++ </message>
++ <message>
++ <location filename="themestrings.h" line="27"/>
++ <source>Edit your bookmarks</source>
++ <translation>Modifica segnalibri</translation>
++ </message>
++ <message>
++ <location filename="themestrings.h" line="28"/>
++ <source>Enable Plugins:</source>
++ <translation>Abilita plugin:</translation>
++ </message>
++ <message>
++ <location filename="themestrings.h" line="29"/>
++ <source>Enable browser plugins (Flash, etc)</source>
++ <translation>Abilita plugin del browser (flash, ecc)</translation>
++ </message>
++ <message>
++ <location filename="themestrings.h" line="31"/>
++ <source>Enable browser plugins:</source>
++ <translation>Abilita plugin del browser:</translation>
++ </message>
++ <message>
++ <location filename="themestrings.h" line="32"/>
++ <source>Enable plugins</source>
++ <translation>Abilitare plugin</translation>
++ </message>
++ <message>
++ <location filename="themestrings.h" line="33"/>
++ <source>Enable plugins:</source>
++ <translation>Abilitare plugin:</translation>
++ </message>
++ <message>
++ <location filename="themestrings.h" line="34"/>
++ <source>Find</source>
++ <translation>Trovare</translation>
++ </message>
++ <message>
++ <location filename="themestrings.h" line="7"/>
++ <source>Bookmark Manager</source>
++ <translation>Gestore segnalibro</translation>
++ </message>
++ <message>
++ <location filename="themestrings.h" line="58"/>
++ <source>Web Page</source>
++ <translation>Pagina web</translation>
++ </message>
++ <message>
++ <location filename="themestrings.h" line="5"/>
++ <source>%DATE%, %TIME%</source>
++ <translation>%DATE%, %TIME%</translation>
++ </message>
++ <message>
++ <location filename="themestrings.h" line="19"/>
++ <source>Category</source>
++ <translation>Categoria</translation>
++ </message>
++ <message>
++ <location filename="themestrings.h" line="63"/>
++ <source>Zoom:</source>
++ <translation>Zoom:</translation>
++ </message>
++ <message>
++ <location filename="themestrings.h" line="64"/>
++ <source>[x]</source>
++ <translation>[x]</translation>
++ </message>
++ <message>
++ <location filename="themestrings.h" line="40"/>
++ <source>Name</source>
++ <translation>Nome</translation>
++ </message>
++ <message>
++ <location filename="themestrings.h" line="52"/>
++ <source>URL</source>
++ <translation>URL</translation>
++ </message>
++ <message>
++ <location filename="themestrings.h" line="36"/>
++ <source>Find...</source>
++ <translation>Trovare...</translation>
++ </message>
++</context>
++<context>
++ <name>WebPage</name>
++ <message>
++ <location filename="../mythbrowser/webpage.cpp"
line="122"/>
++ <source>Loading...</source>
++ <translation>Caricamento...</translation>
++ </message>
++</context>
++</TS>
+
+From 5c9cf67a497994f0d04764c6d7aec662e24c19c0 Mon Sep 17 00:00:00 2001
+From: Klaas de Waal <klaas(a)kldo.nl>
+Date: Mon, 12 Feb 2024 23:22:14 +0100
+Subject: [PATCH 02/21] IPTV m3u channel import with USA channel numbers
+
+Allow IPTV m3u channel importing from HDHomeRun tuners to insert
+channels with decimals, such as "2.1" or "23.11"
+The validation of HDHomeRun channel numbers is changed to allow
+any non-empty string as channel number instead of only an integer number.
+
+Refs #860
+
+(cherry picked from commit 62ad21bb8c0d4fe24e30c9d82b9bff95a30c45a7)
+---
+ mythtv/libs/libmythtv/channelscan/iptvchannelfetcher.cpp | 5 ++---
+ 1 file changed, 2 insertions(+), 3 deletions(-)
+
+diff --git a/mythtv/libs/libmythtv/channelscan/iptvchannelfetcher.cpp
b/mythtv/libs/libmythtv/channelscan/iptvchannelfetcher.cpp
+index 274a18fbc42..7794fb3e7bf 100644
+--- a/mythtv/libs/libmythtv/channelscan/iptvchannelfetcher.cpp
++++ b/mythtv/libs/libmythtv/channelscan/iptvchannelfetcher.cpp
+@@ -536,6 +536,7 @@ static bool parse_extinf(const QString &line,
+
+ // Parse extension, HDHomeRun style
+ // EG. #EXTINF:-1 channel-id="22" channel-number="22"
tvg-name="Omroep Brabant",22 Omroep Brabant
++ // #EXTINF:-1 channel-id="2.1" channel-number="2.1"
tvg-name="CBS2-HD",2.1 CBS2-HD
+ static const QRegularExpression chanNumName6
+ {
R"(^-?\d+\s+channel-id=\"([^\"]+)\"\s+channel-number=\"([^\"]+)\"\s+tvg-name=\"([^\"]+)\".*$)"
};
+ match = chanNumName6.match(line);
+@@ -543,9 +544,7 @@ static bool parse_extinf(const QString &line,
+ {
+ channum = match.captured(2).simplified();
+ name = match.captured(3).simplified();
+- bool ok = false;
+- int channel_number = channum.toInt (&ok);
+- if (ok && (channel_number > 0))
++ if (!channum.isEmpty() && !name.isEmpty())
+ {
+ return true;
+ }
+
+From b6aabcbbf3f2fcc1bc5758f4e8943018c878b2fc Mon Sep 17 00:00:00 2001
+From: Klaas de Waal <klaas(a)kldo.nl>
+Date: Wed, 14 Feb 2024 19:02:01 +0100
+Subject: [PATCH 03/21] Fix segfault in EIT with empty video source
+
+The backend segfaults when EIT is enabled and it is started
+with a video source without channels.
+Fixed by adding an additional test on the number of channels present.
+Note that it can be considered a bug that the EIT scan is started
+when there is not a single channel present.
+
+(cherry picked from commit 36d76494c1222311d49c9fa84312c69ef2526c45)
+---
+ mythtv/libs/libmythtv/eitscanner.cpp | 7 +++++--
+ 1 file changed, 5 insertions(+), 2 deletions(-)
+
+diff --git a/mythtv/libs/libmythtv/eitscanner.cpp b/mythtv/libs/libmythtv/eitscanner.cpp
+index 325133a1c3c..bd652c150b2 100644
+--- a/mythtv/libs/libmythtv/eitscanner.cpp
++++ b/mythtv/libs/libmythtv/eitscanner.cpp
+@@ -295,9 +295,12 @@ void EITScanner::StartActiveScan(TVRec *rec, std::chrono::seconds
max_seconds_pe
+ // Also, from now on, always start on the next channel.
+ // This makes sure the immediately following channels get scanned
+ // in a timely manner if we keep erroring out on the previous channel.
+- auto nextChanIndex = MythRandom() % m_activeScanChannels.size();
+- m_activeScanNextChan = m_activeScanChannels.begin() + nextChanIndex;
+
++ if (!m_activeScanChannels.empty())
++ {
++ auto nextChanIndex = MythRandom() % m_activeScanChannels.size();
++ m_activeScanNextChan = m_activeScanChannels.begin() + nextChanIndex;
++ }
+ uint sourceid = m_rec->GetSourceID();
+ QString sourcename = SourceUtil::GetSourceName(sourceid);
+ LOG(VB_EIT, LOG_INFO, LOC +
+
+From 35819aaac09d3b85156d2d989ac0f7996ffaa386 Mon Sep 17 00:00:00 2001
+From: Piotr Oniszczuk <piotr.oniszczuk(a)gmail.com>
+Date: Fri, 16 Feb 2024 19:09:14 +0100
+Subject: [PATCH 04/21] Translations: Update mythfrontend translation source
+ file (Polish) (#866)
+
+Closes #866
+
+(cherry picked from commit 97f9e5d829e14ac5df2c7120be1daaed66117c82)
+---
+ mythtv/i18n/mythfrontend_pl.ts | 1378 ++++++++++++++++----------------
+ 1 file changed, 694 insertions(+), 684 deletions(-)
+
+diff --git a/mythtv/i18n/mythfrontend_pl.ts b/mythtv/i18n/mythfrontend_pl.ts
+index d8bfdcf30ec..ae6c09d2c63 100644
+--- a/mythtv/i18n/mythfrontend_pl.ts
++++ b/mythtv/i18n/mythfrontend_pl.ts
+@@ -1288,7 +1288,7 @@
+ <message>
+ <location filename="../libs/libmythtv/channelsettings.cpp"
line="209"/>
+ <source>Offset (in minutes) to apply to the program guide data during
import. This can be used when the listings for a particular channel are in a different
time zone.</source>
+- <translation type="unfinished"></translation>
++ <translation>Przesunięcie czasu dla importowanego EPG. Użyteczne gdy
wybrany kanał jest z innej strefy czasowej.</translation>
+ </message>
+ <message>
+ <location filename="../libs/libmythtv/channelsettings.cpp"
line="223"/>
+@@ -1338,27 +1338,27 @@
+ <message>
+ <location filename="../libs/libmythtv/channelsettings.cpp"
line="344"/>
+ <source>Service ID</source>
+- <translation type="unfinished"></translation>
++ <translation>Identyfikator usługi</translation>
+ </message>
+ <message>
+ <location filename="../libs/libmythtv/channelsettings.cpp"
line="426"/>
+ <source>If set to Always Visible or Visible, the channel will be visible
in the EPG. Set to Always Visible or Never Visible to prevent MythTV and other utilities
from automatically managing the value for this channel.</source>
+- <translation type="unfinished"></translation>
++ <translation>Jeśli ustawione na 'Zawsze' lub
'Widoczny' - kanał będzie widoczny w EPG. Ustaw na 'Zawsze
Widoczny' lub 'Zawsze Niewidoczny' aby MythTV sutomatycznie nie
zmienał tego ustawienia.</translation>
+ </message>
+ <message>
+ <location filename="../libs/libmythtv/channelsettings.cpp"
line="467"/>
+ <source>URL</source>
+- <translation type="unfinished"></translation>
++ <translation>Adres URL</translation>
+ </message>
+ <message>
+ <location filename="../libs/libmythtv/channelsettings.cpp"
line="468"/>
+ <source>URL for streaming of this channel. Used by the IPTV capture card
and obtained with an "M3U Import" or with a "HDHomeRun Channel
Import" loading of an XML file.</source>
+- <translation type="unfinished"></translation>
++ <translation>Adres URL ze streaminginem tego kanału. Używany przez IPTV i
zaimportowany z pliku M3U lub z "HDHomeRun Channel
Import".</translation>
+ </message>
+ <message>
+ <location filename="../libs/libmythtv/channelsettings.cpp"
line="487"/>
+ <source>N.B. This setting is only used for analog channels. Depending on
the tuner type, specify either the exact frequency (in kHz) or a valid channel number that
will be understood by your tuners.</source>
+- <translation type="unfinished"></translation>
++ <translation>To ustawienie obowiązuje tylko dla kanałów analogowej TV. W
zależnosci od tunera: podaj częstotliwość lub numer kanału.</translation>
+ </message>
+ <message>
+ <source>ServiceID</source>
+@@ -1438,7 +1438,7 @@
+ <message>
+ <location filename="../libs/libmythtv/channelsettings.cpp"
line="690"/>
+ <source>Channel Options - IPTV</source>
+- <translation type="unfinished"></translation>
++ <translation>Opcje Kanałów IPTV</translation>
+ </message>
+ <message>
+ <location filename="../libs/libmythtv/channelsettings.cpp"
line="700"/>
+@@ -1493,7 +1493,7 @@
+ <message>
+ <location
filename="../libs/libmythtv/channelscan/channelimporter.cpp"
line="2155"/>
+ <source>OK All</source>
+- <translation type="unfinished"></translation>
++ <translation>Wszystkie</translation>
+ </message>
+ <message>
+ <location filename="../libs/libmythbase/mythdate.cpp"
line="168"/>
+@@ -1599,7 +1599,7 @@
+ <message>
+ <location filename="../libs/libmythtv/channelsettings.cpp"
line="101"/>
+ <source>It is NOT a good idea to change this value as it only changes the
sourceid in table channel but not in dtv_multiplex. The sourceid in dtv_multiplex cannot
and should not be changed.</source>
+- <translation type="unfinished"></translation>
++ <translation>Zmiana tego ustawienie jest ryzykowna bowiem zmienia tylko
sourceid w tabeli kanałów. Tabela dtv_multiplex pozostaje
niezmieniona.</translation>
+ </message>
+ <message>
+ <location filename="../libs/libmythtv/channelsettings.cpp"
line="158"/>
+@@ -1621,22 +1621,22 @@
+ <message>
+ <location filename="../libs/libmythtv/channelsettings.cpp"
line="432"/>
+ <source>Always Visible</source>
+- <translation type="unfinished"></translation>
++ <translation>Zawsze Widoczny</translation>
+ </message>
+ <message>
+ <location filename="../libs/libmythtv/channelsettings.cpp"
line="434"/>
+ <source>Visible</source>
+- <translation type="unfinished"></translation>
++ <translation>Widoczny</translation>
+ </message>
+ <message>
+ <location filename="../libs/libmythtv/channelsettings.cpp"
line="436"/>
+ <source>Not Visible</source>
+- <translation type="unfinished"></translation>
++ <translation>Niewidoczny</translation>
+ </message>
+ <message>
+ <location filename="../libs/libmythtv/channelsettings.cpp"
line="438"/>
+ <source>Never Visible</source>
+- <translation type="unfinished"></translation>
++ <translation>Zawsze Niewidoczny</translation>
+ </message>
+ <message>
+ <location filename="../libs/libmythtv/channelsettings.cpp"
line="520"/>
+@@ -1697,7 +1697,7 @@
+ <translation>%1 %2</translation>
+ </message>
+ <message>
+- <location filename="../libs/libmythui/mythnotificationcenter.cpp"
line="1486"/>
++ <location filename="../libs/libmythui/mythnotificationcenter.cpp"
line="1494"/>
+ <source>MythTV</source>
+ <translation>MythTV</translation>
+ </message>
+@@ -1938,7 +1938,7 @@
+ <message>
+ <location
filename="../libs/libmythtv/channelscan/modulationsetting.h"
line="125"/>
+ <source>Modulation, QPSK, 8PSK, QAM-16, 16APSK, 32APSK. Most DVB-S
transponders use QPSK, while DVB-S2 use 8PSK, 16APSK, or 32APSK. QAM-16 is not available
for DVB-S2 transports.</source>
+- <translation type="unfinished"></translation>
++ <translation>Modulacja: QPSK, 8PSK, QAM-16, 16APSK, 32APSK. Większość
transponderów DVB-S używa QPSK, DVB-S2 używa 8PSK, 16APSK, lub 32APSK. QAM-16 jest nie
używane przez DVB-S2.</translation>
+ </message>
+ <message>
+ <source>Modulation, QPSK, 8PSK, QAM-16. Most DVB-S transponders use QPSK,
while DVB-S2 use 8PSK. QAM-16 is not available for DVB-S2 transports.</source>
+@@ -1958,7 +1958,7 @@
+ <translation>Ładuję filmy ...</translation>
+ </message>
+ <message>
+- <location filename="../programs/mythfrontend/mythfrontend.cpp"
line="1320"/>
++ <location filename="../programs/mythfrontend/mythfrontend.cpp"
line="1321"/>
+ <source>Failed to open
+ '%1' in %2
+ Check if the video exists</source>
+@@ -1967,17 +1967,17 @@ Check if the video exists</source>
+ Sprwdź czy plik istnieje</translation>
+ </message>
+ <message>
+- <location filename="../programs/mythfrontend/mythfrontend.cpp"
line="1355"/>
++ <location filename="../programs/mythfrontend/mythfrontend.cpp"
line="1356"/>
+ <source>DVD Failure</source>
+ <translation>Błąd napędu DVD</translation>
+ </message>
+ <message>
+- <location filename="../programs/mythfrontend/mythfrontend.cpp"
line="1380"/>
++ <location filename="../programs/mythfrontend/mythfrontend.cpp"
line="1381"/>
+ <source>BD Failure</source>
+- <translation type="unfinished"></translation>
++ <translation>Błąd dysku BD</translation>
+ </message>
+ <message>
+- <location filename="../programs/mythfrontend/mythfrontend.cpp"
line="2069"/>
++ <location filename="../programs/mythfrontend/mythfrontend.cpp"
line="2074"/>
+ <source>MythTV Frontend</source>
+ <comment>Main window title</comment>
+ <translation>MythTV Frontend</translation>
+@@ -2150,7 +2150,7 @@ Sprwdź czy plik istnieje</translation>
+ <message>
+ <location filename="../libs/libmythtv/videosource.cpp"
line="1890"/>
+ <source>Status</source>
+- <translation type="unfinished">Status</translation>
++ <translation>Status</translation>
+ </message>
+ <message>
+ <location filename="../libs/libmythtv/videosource.cpp"
line="1923"/>
+@@ -2160,7 +2160,7 @@ Sprwdź czy plik istnieje</translation>
+ <message>
+ <location filename="../libs/libmythtv/videosource.cpp"
line="1928"/>
+ <source>Valid DVEO ASI card</source>
+- <translation>Aktualna karta DVEO ASI </translation>
++ <translation>Aktualna karta DVEO ASI</translation>
+ </message>
+ </context>
+ <context>
+@@ -2258,7 +2258,7 @@ Sprwdź czy plik istnieje</translation>
+ <message>
+ <location filename="../programs/mythfrontend/globalsettings.cpp"
line="2171"/>
+ <source>Screen aspect ratio</source>
+- <translation type="unfinished"></translation>
++ <translation>Proporcje obrazu</translation>
+ </message>
+ <message>
+ <source>Auto</source>
+@@ -2287,72 +2287,72 @@ Sprwdź czy plik istnieje</translation>
+ <message>
+ <location filename="../programs/mythfrontend/globalsettings.cpp"
line="2182"/>
+ <source>16:18 (16:9 Above and below)</source>
+- <translation type="unfinished"></translation>
++ <translation>16:18 (16:9 nad/pod)</translation>
+ </message>
+ <message>
+ <location filename="../programs/mythfrontend/globalsettings.cpp"
line="2183"/>
+ <source>32:10 (16:10 Side by side)</source>
+- <translation type="unfinished"></translation>
++ <translation>32:10 (16:10 Side by side)</translation>
+ </message>
+ <message>
+ <location filename="../programs/mythfrontend/globalsettings.cpp"
line="2184"/>
+ <source>16:20 (16:10 Above and below)</source>
+- <translation type="unfinished"></translation>
++ <translation>16:20 (16:10 nad/pod)</translation>
+ </message>
+ <message>
+ <location filename="../programs/mythfrontend/globalsettings.cpp"
line="2185"/>
+ <source>This setting applies to video playback only, not to the GUI. Most
modern displays have square pixels and the aspect ratio of the screen can be computed from
the resolution (default). The aspect ratio can also be automatically detected from the
connected display - though this may be slightly less accurate. If automatic detection
fails, the correct aspect ratio can be specified here. Note: Some values (e.g 32:10) are
primarily intended for multiscreen setups.</source>
+- <translation type="unfinished"></translation>
++ <translation>Ustawienie wyłącznie dla odtwarzania video (nie obowiązuje
dla GUI). Proporcje obrazu mogą być wyliczone z rozdzielczości video. Jest to domyślna
metoda. Alternatywnie - proporcje mogą być wykryte na podstawie parametrów dołączonego
monitora/TV. Jeśli którakolwiek z tych metod nie zadziała - MythTV użyje proporcji z tego
ustwienia.</translation>
+ </message>
+ <message>
+ <location filename="../programs/mythfrontend/globalsettings.cpp"
line="2336"/>
+ <source>Force Full Screen for GUI and TV playback</source>
+- <translation type="unfinished"></translation>
++ <translation>Wymuś tryb pełnoekranowy dla GUI i video</translation>
+ </message>
+ <message>
+ <location filename="../programs/mythfrontend/globalsettings.cpp"
line="2340"/>
+ <source>Use Full Screen for GUI and TV playback independent of the
settings for the GUI dimensions. This does not change the values of the GUI dimensions so
it is easy to switch from window mode to full screen and back.</source>
+- <translation type="unfinished"></translation>
++ <translation>Wyświetlaj pełnoekranowo GUI/video - niezależnie od
ustawienia rozmiaru GUI. Ustawienia rozmiaru GUI są zachowane - więc możesz swobodnie
przełączać między trybami: pełnoekranowym i okienkowym.</translation>
+ </message>
+ <message>
+ <location filename="../programs/mythfrontend/globalsettings.cpp"
line="2678"/>
+ <source>Smooth Transitions</source>
+- <translation type="unfinished"></translation>
++ <translation>Płynne animacje GUI</translation>
+ </message>
+ <message>
+ <location filename="../programs/mythfrontend/globalsettings.cpp"
line="2682"/>
+ <source>Enable smooth transitions with fade-in and fade-out of menu pages
and enable GUI animations. Disabling this can make the GUI respond faster especially on
low-powered machines.</source>
+- <translation type="unfinished"></translation>
++ <translation>Włącza płynne animacje GUI (fade-in, fade-out, itp.).
Wyłączenie tej funkcji może przyśpieszyć GUI na maszynach z wolniejszymi kartami
graficznymi.</translation>
+ </message>
+ <message>
+ <location filename="../programs/mythfrontend/globalsettings.cpp"
line="2692"/>
+ <source>Startup Screen Delay</source>
+- <translation type="unfinished"></translation>
++ <translation>Ekran Startowy</translation>
+ </message>
+ <message>
+ <location filename="../programs/mythfrontend/globalsettings.cpp"
line="2696"/>
+ <source>The Startup Screen will show the progress of starting the frontend
if frontend startup takes longer than this number of seconds.</source>
+- <translation type="unfinished"></translation>
++ <translation>Pokazuj ekrans startowy jest start frontend'u jest
dłuższy niż ta liczba sekund.</translation>
+ </message>
+ <message>
+ <location filename="../programs/mythfrontend/globalsettings.cpp"
line="2707"/>
+ <source>GUI text zoom percentage</source>
+- <translation type="unfinished"></translation>
++ <translation>Zoom dla GUI (%)</translation>
+ </message>
+ <message>
+ <location filename="../programs/mythfrontend/globalsettings.cpp"
line="2712"/>
+ <source>Adjust the themed defined font size by this percentage.
mythfrontend needs restart for this to take effect.</source>
+- <translation type="unfinished"></translation>
++ <translation>Ustawia procentowy zoom dla fontów w aktualniej skórce.
(wymaga restartu frontend'u).</translation>
+ </message>
+ <message>
+ <location filename="../programs/mythfrontend/globalsettings.cpp"
line="2855"/>
+ <source>Use full range RGB output</source>
+- <translation type="unfinished"></translation>
++ <translation>Pełny zakres RGB</translation>
+ </message>
+ <message>
+ <location filename="../programs/mythfrontend/globalsettings.cpp"
line="2857"/>
+ <source>Enable (recommended) to supply full range RGB output to your
display device. Disable to supply limited range RGB output. This setting applies to both
the GUI and media playback. Ideally the value of this setting should match a similar
setting on your TV or monitor.</source>
+- <translation type="unfinished"></translation>
++ <translation>Jeśli zaznaczone - MythTV bedzie używał pełnego zakresu RGB
(0..255) sterując monitorem/TV. Wyłącz - jeśli monitor/TV nie wspiera wyświetlania z
pełnym zakresem RGB. To ustawienie powinno korespondować z analogicznym ustawieniem w
monitorze/TV (jeśli takie jest).</translation>
+ </message>
+ <message>
+ <location filename="../programs/mythfrontend/globalsettings.cpp"
line="4736"/>
+@@ -2367,7 +2367,7 @@ Sprwdź czy plik istnieje</translation>
+ <message>
+ <location filename="../programs/mythfrontend/globalsettings.cpp"
line="1525"/>
+ <source>This selects what MythTV uses to draw. </source>
+- <translation type="unfinished"></translation>
++ <translation>Metoda rysowania obrazu. </translation>
+ </message>
+ <message>
+ <location filename="../programs/mythfrontend/globalsettings.cpp"
line="2161"/>
+@@ -2453,7 +2453,7 @@ Sprwdź czy plik istnieje</translation>
+ <message>
+ <location filename="../programs/mythfrontend/globalsettings.cpp"
line="2323"/>
+ <source>Use GUI size for TV playback</source>
+- <translation>Wyświetlaj nagrania w rozdzielczości GUI
</translation>
++ <translation>Wyświetlaj nagrania w rozdzielczości GUI</translation>
+ </message>
+ <message>
+ <location filename="../programs/mythfrontend/globalsettings.cpp"
line="2327"/>
+@@ -2491,12 +2491,12 @@ Sprwdź czy plik istnieje</translation>
+ <message>
+ <location filename="../programs/mythfrontend/globalsettings.cpp"
line="2172"/>
+ <source>Auto (Assume square pixels)</source>
+- <translation type="unfinished"></translation>
++ <translation>Automatyczny (z treści)</translation>
+ </message>
+ <message>
+ <location filename="../programs/mythfrontend/globalsettings.cpp"
line="2173"/>
+ <source>Auto (Detect from display)</source>
+- <translation type="unfinished"></translation>
++ <translation>Automatyczny (z właściwości monitora)</translation>
+ </message>
+ <message>
+ <location filename="../programs/mythfrontend/globalsettings.cpp"
line="2665"/>
+@@ -2555,12 +2555,12 @@ Sprwdź czy plik istnieje</translation>
+ <message>
+ <location filename="../programs/mythfrontend/globalsettings.cpp"
line="4805"/>
+ <source>Select from Channel Group</source>
+- <translation type="unfinished"></translation>
++ <translation>Wybierz z Grupy Kanałów</translation>
+ </message>
+ <message>
+ <location filename="../programs/mythfrontend/globalsettings.cpp"
line="4814"/>
+ <source>Select the channel group to select channels from. "All
Channels" lets you choose from all channels of all video sources.
"Priority" lets you choose from all channels that have recording
priority. The other values let you select a video source to choose channels
from.</source>
+- <translation type="unfinished"></translation>
++ <translation>Wybierz grupę kanałów. Wybór "Wszystkie
Kanały" pozwala na przeglądanie wszystkich kanałów z wszystkich źródeł
TV.</translation>
+ </message>
+ <message>
+ <location filename="../programs/mythfrontend/globalsettings.cpp"
line="1521"/>
+@@ -2727,7 +2727,7 @@ Sprwdź czy plik istnieje</translation>
+ <message>
+ <location
filename="../programs/mythfrontend/audiogeneralsettings.cpp"
line="130"/>
+ <source>Digital Audio Capabilities</source>
+- <translation>Możliwości urządznia Audio</translation>
++ <translation>Możliwości Audio</translation>
+ </message>
+ <message>
+ <source>Test</source>
+@@ -2760,7 +2760,7 @@ Sprwdź czy plik istnieje</translation>
+ <message>
+ <location
filename="../programs/mythfrontend/audiogeneralsettings.cpp"
line="443"/>
+ <source>Speaker configuration</source>
+- <translation>Konfiguracja głośników</translation>
++ <translation>Konfiguracja Głośników</translation>
+ </message>
+ <message>
+ <location
filename="../programs/mythfrontend/audiogeneralsettings.cpp"
line="448"/>
+@@ -2818,7 +2818,7 @@ Sprwdź czy plik istnieje</translation>
+ <message>
+ <location
filename="../programs/mythfrontend/audiogeneralsettings.cpp"
line="492"/>
+ <source>Enable if your amplifier or sound decoder supports AC-3/Dolby
Digital. You must use a digital connection. Uncheck if using an analog
connection.</source>
+- <translation>Zaznacz gdy Twój wzmacniacz lub dekoder dźwięku wspiera
AC-3/Dolby Digital. Wymage jest cyfrowe połączenie między MythTV as
dekoderem/wzmacniaczem. </translation>
++ <translation>Zaznacz gdy Twój wzmacniacz lub dekoder dźwięku wspiera
AC-3/Dolby Digital. Wymage jest cyfrowe połączenie między MythTV as
dekoderem/wzmacniaczem.</translation>
+ </message>
+ <message>
+ <location
filename="../programs/mythfrontend/audiogeneralsettings.cpp"
line="502"/>
+@@ -2899,7 +2899,7 @@ Sprwdź czy plik istnieje</translation>
+ <message>
+ <location
filename="../programs/mythfrontend/audiogeneralsettings.cpp"
line="1119"/>
+ <source>Mixer controls</source>
+- <translation>Kontrolki Miksera</translation>
++ <translation>Używana Kontrolka Miksera</translation>
+ </message>
+ <message>
+ <location
filename="../programs/mythfrontend/audiogeneralsettings.cpp"
line="1124"/>
+@@ -2909,7 +2909,7 @@ Sprwdź czy plik istnieje</translation>
+ <message>
+ <location
filename="../programs/mythfrontend/audiogeneralsettings.cpp"
line="1133"/>
+ <source>Master mixer volume</source>
+- <translation>Główny mikser audio</translation>
++ <translation>Początkowy Stan Głównego Miksera</translation>
+ </message>
+ <message>
+ <location
filename="../programs/mythfrontend/audiogeneralsettings.cpp"
line="1137"/>
+@@ -2919,7 +2919,7 @@ Sprwdź czy plik istnieje</translation>
+ <message>
+ <location
filename="../programs/mythfrontend/audiogeneralsettings.cpp"
line="1147"/>
+ <source>PCM mixer volume</source>
+- <translation>Głośność miksera PCM</translation>
++ <translation>Początkowy Stan Miksera PCM</translation>
+ </message>
+ <message>
+ <location
filename="../programs/mythfrontend/audiogeneralsettings.cpp"
line="1151"/>
+@@ -2995,7 +2995,7 @@ Sprwdź czy plik istnieje</translation>
+ <message>
+ <location
filename="../programs/mythfrontend/audiogeneralsettings.cpp"
line="1222"/>
+ <source>Separate digital output device</source>
+- <translation>Oddzielne urządzenie audio</translation>
++ <translation>Używaj Dedykowanego Urządzenia Audio</translation>
+ </message>
+ <message>
+ <location
filename="../programs/mythfrontend/audiogeneralsettings.cpp"
line="1226"/>
+@@ -3005,7 +3005,7 @@ Sprwdź czy plik istnieje</translation>
+ <message>
+ <location
filename="../programs/mythfrontend/audiogeneralsettings.cpp"
line="1236"/>
+ <source>Digital output device</source>
+- <translation>Cyfrowe urządzenie audio</translation>
++ <translation>Oddzielne Urządzenie Audio</translation>
+ </message>
+ <message>
+ <location
filename="../programs/mythfrontend/audiogeneralsettings.cpp"
line="1250"/>
+@@ -3015,7 +3015,7 @@ Sprwdź czy plik istnieje</translation>
+ <message>
+ <location
filename="../programs/mythfrontend/audiogeneralsettings.cpp"
line="1260"/>
+ <source>SPDIF 48kHz rate override</source>
+- <translation>Nadpisanie 48kHz w SPDIF</translation>
++ <translation>Wymuś zawsze 48kHz w SPDIF</translation>
+ </message>
+ <message>
+ <location
filename="../programs/mythfrontend/audiogeneralsettings.cpp"
line="1264"/>
+@@ -3110,12 +3110,12 @@ Sprwdź czy plik istnieje</translation>
+ <message>
+ <location filename="../libs/libmyth/audio/audiooutput.cpp"
line="324"/>
+ <source> (%1 connected to %2)</source>
+- <translation>(%1 podłączony do %2)</translation>
++ <translation> (%1 podłączony do %2)</translation>
+ </message>
+ <message>
+ <location filename="../libs/libmyth/audio/audiooutput.cpp"
line="330"/>
+ <source> (No connection detected)</source>
+- <translation>(Nie wykryto połączenia)</translation>
++ <translation> (Nie wykryto połączenia)</translation>
+ </message>
+ <message>
+ <location filename="../libs/libmyth/audio/audiooutput.cpp"
line="348"/>
+@@ -3147,12 +3147,12 @@ Urządzenie wspiera do %1</translation>
+ <message>
+ <location filename="../libs/libmyth/audio/audiooutput.cpp"
line="552"/>
+ <source>OpenSLES default output. Stereo support only.</source>
+- <translation type="unfinished"></translation>
++ <translation>Domyślne wyjście dla OpenSLES (dostępne tylko
stereo).</translation>
+ </message>
+ <message>
+ <location filename="../libs/libmyth/audio/audiooutput.cpp"
line="562"/>
+ <source>Android AudioTrack output. Supports surround
sound.</source>
+- <translation type="unfinished"></translation>
++ <translation>Audio dla Android'a (wspiera
surround).</translation>
+ </message>
+ <message>
+ <source>OpenSLES default output.</source>
+@@ -3261,7 +3261,7 @@ Urządzenie wspiera do %1</translation>
+ <message>
+ <location filename="../programs/mythfrontend/setupwizard_audio.cpp"
line="76"/>
+ <source>Select from one of the audio devices detected on your system.
When satisfied, you can test audio before moving on. If you fail to configure audio,
video playback may fail as well.</source>
+- <translation>Wybierz urządzenie AUDIO wykryte przez Twój system. Następnie
możesz przetestować tor AUDIO. Jeśli błędnie skonfigurowałeś podsystem AUDIO w Twoim
systemie - test AUDIO może się nie powieść. </translation>
++ <translation>Wybierz urządzenie AUDIO wykryte przez Twój system. Następnie
możesz przetestować tor AUDIO. Jeśli błędnie skonfigurowałeś podsystem AUDIO w Twoim
systemie - test AUDIO może się nie powieść.</translation>
+ </message>
+ <message>
+ <location filename="../programs/mythfrontend/setupwizard_audio.cpp"
line="81"/>
+@@ -3554,12 +3554,12 @@ Urządzenie wspiera do %1</translation>
+ <message>
+ <location filename="../programs/mythtv-setup/backendsettings.cpp"
line="134"/>
+ <source>Listen on All IP Addresses</source>
+- <translation type="unfinished"></translation>
++ <translation>Używaj wszystkich interfejsów</translation>
+ </message>
+ <message>
+ <location filename="../programs/mythtv-setup/backendsettings.cpp"
line="136"/>
+ <source>Allow this backend to receive connections on any IP Address
assigned to it. Recommended for most users for ease and reliability.</source>
+- <translation type="unfinished">Pozwalaj na połączenia z
dowolnego IP. Zalecane dla większości użytkowników z p[owodu prostoty i
dostępności.</translation>
++ <translation>Pozwalaj na połączenia z dowolnego IP. Zalecane dla
większości użytkowników z powodu prostoty i uniwersalności.</translation>
+ </message>
+ <message>
+ <location filename="../programs/mythtv-setup/backendsettings.cpp"
line="939"/>
+@@ -3761,27 +3761,27 @@ Urządzenie wspiera do %1</translation>
+ <location filename="../libs/libmythtv/videosource.cpp"
line="2145"/>
+ <source>CetonConfigurationGroup</source>
+ <comment>Description</comment>
+- <translation type="unfinished"></translation>
++ <translation>Opis</translation>
+ </message>
+ <message>
+ <location filename="../libs/libmythtv/videosource.cpp"
line="2146"/>
+ <source>IP Address</source>
+- <translation type="unfinished"></translation>
++ <translation>Adres IP</translation>
+ </message>
+ <message>
+ <location filename="../libs/libmythtv/videosource.cpp"
line="2147"/>
+ <source>IP Address of the Ceton device (192.168.200.1 by
default)</source>
+- <translation type="unfinished"></translation>
++ <translation>Adres IP tunera Ceton (domyślnie
192.168.200.1)</translation>
+ </message>
+ <message>
+ <location filename="../libs/libmythtv/videosource.cpp"
line="2148"/>
+ <source>Tuner</source>
+- <translation type="unfinished"></translation>
++ <translation>Tuner</translation>
+ </message>
+ <message>
+ <location filename="../libs/libmythtv/videosource.cpp"
line="2149"/>
+ <source>Number of the tuner on the Ceton device (first tuner is number
0)</source>
+- <translation type="unfinished"></translation>
++ <translation>Numer tunera na urządzeniu Ceton (pierwszy tuner ma numer
0)</translation>
+ </message>
+ </context>
+ <context>
+@@ -3852,7 +3852,7 @@ Urządzenie wspiera do %1</translation>
+ <message>
+ <location filename="../programs/mythtv-setup/channeleditor.cpp"
line="172"/>
+ <source>Allows you to edit the transports directly. This is rarely
required unless you are using a satellite dish and must enter an initial frequency to for
the channel scanner to try.</source>
+- <translation>Pozwala na bezpośredią edycję parametrów strumienia
transportowego. Wykorzystywane rzadko - chyba że wykorzystujesz odbiór satelitarny i
skaner kanałów wymaga wprowadzenia dokadnej częśtotliwoci transpondera.
</translation>
++ <translation>Pozwala na bezpośredią edycję parametrów strumienia
transportowego. Wykorzystywane rzadko - chyba że wykorzystujesz odbiór satelitarny i
skaner kanałów wymaga wprowadzenia dokadnej częśtotliwoci
transpondera.</translation>
+ </message>
+ <message>
+ <location filename="../programs/mythtv-setup/channeleditor.cpp"
line="289"/>
+@@ -3882,36 +3882,36 @@ Urządzenie wspiera do %1</translation>
+ <message>
+ <location filename="../programs/mythtv-setup/channeleditor.cpp"
line="113"/>
+ <source>Delete all channels on currently selected video
source.</source>
+- <translation type="unfinished"></translation>
++ <translation>Saksuj wszystkie kanały dla akualnego źródła
video.</translation>
+ </message>
+ <message>
+ <location filename="../programs/mythtv-setup/channeleditor.cpp"
line="118"/>
+ <location filename="../programs/mythtv-setup/channeleditor.cpp"
line="326"/>
+ <source>Service ID</source>
+- <translation type="unfinished"></translation>
++ <translation>ID Usługi</translation>
+ </message>
+ <message>
+ <location filename="../programs/mythtv-setup/channeleditor.cpp"
line="119"/>
+ <location filename="../programs/mythtv-setup/channeleditor.cpp"
line="330"/>
+ <source>Frequency</source>
+- <translation
type="unfinished">Częstotliwość</translation>
++ <translation>Częstotliwość</translation>
+ </message>
+ <message>
+ <location filename="../programs/mythtv-setup/channeleditor.cpp"
line="120"/>
+ <location filename="../programs/mythtv-setup/channeleditor.cpp"
line="334"/>
+ <source>Transport ID</source>
+- <translation type="unfinished"></translation>
++ <translation>ID Transportu</translation>
+ </message>
+ <message>
+ <location filename="../programs/mythtv-setup/channeleditor.cpp"
line="121"/>
+ <location filename="../programs/mythtv-setup/channeleditor.cpp"
line="338"/>
+ <source>Video Source</source>
+- <translation type="unfinished">Źródło</translation>
++ <translation>Źródło Video</translation>
+ </message>
+ <message>
+ <location filename="../programs/mythtv-setup/channeleditor.cpp"
line="156"/>
+ <source>Restore Data from deleted channels.</source>
+- <translation type="unfinished"></translation>
++ <translation>Odtwórz skasowane kanały.</translation>
+ </message>
+ <message>
+ <location filename="../programs/mythtv-setup/channeleditor.cpp"
line="528"/>
+@@ -4000,7 +4000,7 @@ Urządzenie wspiera do %1</translation>
+ <message>
+ <location filename="../programs/mythfrontend/globalsettings.cpp"
line="4845"/>
+ <source>Favorites</source>
+- <translation type="unfinished">Ulubione</translation>
++ <translation>Ulubione</translation>
+ </message>
+ <message>
+ <location filename="../programs/mythfrontend/globalsettings.cpp"
line="5025"/>
+@@ -4038,7 +4038,7 @@ Urządzenie wspiera do %1</translation>
+ <message>
+ <location filename="../programs/mythfrontend/globalsettings.cpp"
line="4838"/>
+ <source>Select/Unselect channels for this channel group</source>
+- <translation type="unfinished">Dodaj/Usuń kanały TV w tej grupie
kanałów</translation>
++ <translation>Dodaj/Usuń kanały TV w tej grupie
kanałów</translation>
+ </message>
+ <message>
+ <source>Default channel group to be shown in the the EPGPressing GUIDE key
will toggle channel group.</source>
+@@ -4157,10 +4157,10 @@ Urządzenie wspiera do %1</translation>
+ <location
filename="../libs/libmythtv/channelscan/channelimporter.cpp"
line="466"/>
+ <source>Found %n new %1 channel(s).</source>
+ <extracomment>%n is the number of channels, %1 is the type of
channel</extracomment>
+- <translation type="unfinished">
+- <numerusform></numerusform>
+- <numerusform></numerusform>
+- <numerusform></numerusform>
++ <translation>
++ <numerusform>Znaleziono %n nowych kanałów typu
%1.</numerusform>
++ <numerusform>Znaleziono %n nowy kanał typu %1.</numerusform>
++ <numerusform>Znaleziono %n nowych kanałów typu
%1.</numerusform>
+ </translation>
+ </message>
+ <message numerus="yes">
+@@ -4177,7 +4177,8 @@ Urządzenie wspiera do %1</translation>
+ <location
filename="../libs/libmythtv/channelscan/channelimporter.cpp"
line="1612"/>
+ <source>Channels: FTA Enc Dec
+ </source>
+- <translation>Kanały FTA Enk/Dek</translation>
++ <translation>Kanały FTA Enk/Dek
++</translation>
+ </message>
+ <message>
+ <location
filename="../libs/libmythtv/channelscan/channelimporter.cpp"
line="1631"/>
+@@ -4312,7 +4313,7 @@ Urządzenie wspiera do %1</translation>
+ <location
filename="../libs/libmythtv/channelscan/channelimporter.cpp"
line="1784"/>
+ <location
filename="../libs/libmythtv/channelscan/channelimporter.cpp"
line="1800"/>
+ <source>Delete All</source>
+- <translation type="unfinished">Skasuj
Wszystkie</translation>
++ <translation>Skasuj Wszystkie</translation>
+ </message>
+ <message>
+ <location
filename="../libs/libmythtv/channelscan/channelimporter.cpp"
line="1786"/>
+@@ -4322,94 +4323,94 @@ Urządzenie wspiera do %1</translation>
+ <location
filename="../libs/libmythtv/channelscan/channelimporter.cpp"
line="1959"/>
+ <location
filename="../libs/libmythtv/channelscan/channelimporter.cpp"
line="1974"/>
+ <source>Ignore All</source>
+- <translation type="unfinished"></translation>
++ <translation>Zignoruj Wszystkie</translation>
+ </message>
+ <message>
+ <location
filename="../libs/libmythtv/channelscan/channelimporter.cpp"
line="1829"/>
+ <source>1. Delete All</source>
+- <translation type="unfinished"></translation>
++ <translation>Skasuj Wszystkie</translation>
+ </message>
+ <message>
+ <location
filename="../libs/libmythtv/channelscan/channelimporter.cpp"
line="1834"/>
+ <source>4. Ignore All</source>
+- <translation type="unfinished"></translation>
++ <translation>4. Zignoruj Wszystkie</translation>
+ </message>
+ <message>
+ <location
filename="../libs/libmythtv/channelscan/channelimporter.cpp"
line="1872"/>
+ <location
filename="../libs/libmythtv/channelscan/channelimporter.cpp"
line="1888"/>
+ <source>Insert All</source>
+- <translation type="unfinished"></translation>
++ <translation>Dodaj Wszystkie</translation>
+ </message>
+ <message>
+ <location
filename="../libs/libmythtv/channelscan/channelimporter.cpp"
line="1873"/>
+ <location
filename="../libs/libmythtv/channelscan/channelimporter.cpp"
line="1889"/>
+ <source>Insert Manually</source>
+- <translation type="unfinished"></translation>
++ <translation>Dodaj Manualnie</translation>
+ </message>
+ <message>
+ <location
filename="../libs/libmythtv/channelscan/channelimporter.cpp"
line="1916"/>
+ <source>1. Insert All</source>
+- <translation type="unfinished"></translation>
++ <translation>1. Dodaj Wszystkie</translation>
+ </message>
+ <message>
+ <location
filename="../libs/libmythtv/channelscan/channelimporter.cpp"
line="1918"/>
+ <source>2. Insert Manually</source>
+- <translation type="unfinished"></translation>
++ <translation>2. Dodaj Manulanie</translation>
+ </message>
+ <message>
+ <location
filename="../libs/libmythtv/channelscan/channelimporter.cpp"
line="1920"/>
+ <location
filename="../libs/libmythtv/channelscan/channelimporter.cpp"
line="2003"/>
+ <source>3. Ignore All</source>
+- <translation type="unfinished"></translation>
++ <translation>3. Zignoruj Wszystkie</translation>
+ </message>
+ <message>
+ <location
filename="../libs/libmythtv/channelscan/channelimporter.cpp"
line="1958"/>
+ <location
filename="../libs/libmythtv/channelscan/channelimporter.cpp"
line="1973"/>
+ <source>Update All</source>
+- <translation type="unfinished"></translation>
++ <translation>Ukatualnij Wszystkie</translation>
+ </message>
+ <message>
+ <location
filename="../libs/libmythtv/channelscan/channelimporter.cpp"
line="1999"/>
+ <source>1. Update All</source>
+- <translation type="unfinished"></translation>
++ <translation>1. Uaktualnij Wszystkie</translation>
+ </message>
+ <message>
+ <location
filename="../libs/libmythtv/channelscan/channelimporter.cpp"
line="2001"/>
+ <source>2. Update Manually</source>
+- <translation type="unfinished"></translation>
++ <translation>2. Uaktualnij Manualnie</translation>
+ </message>
+ <message>
+ <location
filename="../libs/libmythtv/channelscan/channelimporter.cpp"
line="2038"/>
+ <location
filename="../libs/libmythtv/channelscan/channelimporter.cpp"
line="2136"/>
+ <source>OK</source>
+- <translation type="unfinished"></translation>
++ <translation>OK</translation>
+ </message>
+ <message>
+ <location
filename="../libs/libmythtv/channelscan/channelimporter.cpp"
line="2040"/>
+ <location
filename="../libs/libmythtv/channelscan/channelimporter.cpp"
line="2139"/>
+ <source>Cancel</source>
+- <translation type="unfinished"></translation>
++ <translation>Rezygnuj</translation>
+ </message>
+ <message>
+ <location
filename="../libs/libmythtv/channelscan/channelimporter.cpp"
line="2041"/>
+ <location
filename="../libs/libmythtv/channelscan/channelimporter.cpp"
line="2140"/>
+ <source>Cancel All</source>
+- <translation type="unfinished">Rezygnuj</translation>
++ <translation>Rezygnuj ze Wszystkich</translation>
+ </message>
+ <message>
+ <location
filename="../libs/libmythtv/channelscan/channelimporter.cpp"
line="2137"/>
+ <source>OK All</source>
+- <translation type="unfinished"></translation>
++ <translation>Wszystkie OK</translation>
+ </message>
+ <message>
+ <location
filename="../libs/libmythtv/channelscan/channelimporter.cpp"
line="2230"/>
+ <source>Channel %1 has channel number %2 but that is already in
use.</source>
+- <translation type="unfinished"></translation>
++ <translation>Kanał %1 ma numer %2 który już jest
używany.</translation>
+ </message>
+ <message>
+ <location
filename="../libs/libmythtv/channelscan/channelimporter.cpp"
line="2246"/>
+ <source>Default value is %1.</source>
+- <translation type="unfinished">Domyślna wartość to
%1.</translation>
++ <translation>Domyślna wartość to %1.</translation>
+ </message>
+ <message>
+ <location
filename="../libs/libmythtv/channelscan/channelimporter.cpp"
line="2308"/>
+@@ -4420,7 +4421,7 @@ Urządzenie wspiera do %1</translation>
+ <location
filename="../libs/libmythtv/channelscan/channelimporter.cpp"
line="2348"/>
+ <source>Please enter a non-conflicting channel number (or type
'%1' to skip, '%2' to skip all): </source>
+ <extracomment>%1 is the translation of "Cancel", %2 of
"Cancel All"</extracomment>
+- <translation>Podaj niekonfliktujący numer kanału (ew. naciśnij
'%1' aby pominąć, '%2' aby pominąć
wszystkie):</translation>
++ <translation>Podaj niekonfliktujący numer kanału (ew. naciśnij
'%1' aby pominąć, '%2' aby pominąć wszystkie):
</translation>
+ </message>
+ </context>
+ <context>
+@@ -4557,7 +4558,7 @@ Urządzenie wspiera do %1</translation>
+ <message>
+ <location
filename="../libs/libmythtv/channelscan/channelscanner_gui_scan_pane.cpp"
line="152"/>
+ <source>%1</source>
+- <translation type="unfinished">%1</translation>
++ <translation>%1</translation>
+ </message>
+ <message>
+ <source>Scan Progress %1</source>
+@@ -4569,22 +4570,22 @@ Urządzenie wspiera do %1</translation>
+ <message>
+ <location
filename="../libs/libmythtv/channelscan/channelscanner_web.cpp"
line="443"/>
+ <source>Scan Complete</source>
+- <translation type="unfinished"></translation>
++ <translation>Zakończono Wyszukiwanie</translation>
+ </message>
+ <message>
+ <location
filename="../libs/libmythtv/channelscan/channelscanner_web.cpp"
line="447"/>
+ <source>Scan Shut Down</source>
+- <translation type="unfinished"></translation>
++ <translation>Zakończ Wyszukiwanie</translation>
+ </message>
+ <message>
+ <location
filename="../libs/libmythtv/channelscan/channelscanner_web.cpp"
line="451"/>
+ <source>Scan Error</source>
+- <translation type="unfinished"></translation>
++ <translation>Błąd podczas wyszukiwania</translation>
+ </message>
+ <message>
+ <location
filename="../libs/libmythtv/channelscan/channelscanner_web.cpp"
line="457"/>
+ <source>Found %1 Transports</source>
+- <translation type="unfinished"></translation>
++ <translation>Znaleziono %1 Transponderów</translation>
+ </message>
+ </context>
+ <context>
+@@ -4742,7 +4743,7 @@ Urządzenie wspiera do %1</translation>
+ <message>
+ <location filename="../programs/mythfrontend/customedit.cpp"
line="380"/>
+ <source>Only channels from a specific video source</source>
+- <translation>Tylko kanały z wybranego źródła </translation>
++ <translation>Tylko kanały z wybranego źródła</translation>
+ </message>
+ <message>
+ <location filename="../programs/mythfrontend/customedit.cpp"
line="386"/>
+@@ -4780,7 +4781,7 @@ Urządzenie wspiera do %1</translation>
+ <message>
+ <location filename="../programs/mythfrontend/customedit.cpp"
line="372"/>
+ <source>Only channels from the Favorites group</source>
+- <translation>Tylko z ulubionej grupy kanałów </translation>
++ <translation>Tylko z ulubionej grupy kanałów</translation>
+ </message>
+ <message>
+ <location filename="../programs/mythfrontend/customedit.cpp"
line="493"/>
+@@ -4790,7 +4791,7 @@ Urządzenie wspiera do %1</translation>
+ <message>
+ <location filename="../programs/mythfrontend/customedit.cpp"
line="503"/>
+ <source>Multiple sports teams (complete example)</source>
+- <translation>Wielodróżynowe zawody sportowe (kompletny przykład)
</translation>
++ <translation>Wielodróżynowe zawody sportowe (kompletny
przykład)</translation>
+ </message>
+ <message>
+ <location filename="../programs/mythfrontend/customedit.cpp"
line="511"/>
+@@ -4878,7 +4879,7 @@ Urządzenie wspiera do %1</translation>
+ <message>
+ <location filename="../programs/mythfrontend/customedit.cpp"
line="405"/>
+ <source>Exclude H.264 encoded streams (EIT only)</source>
+- <translation>Pomiń programy kodowane w H.264 (tylko z EIT)
</translation>
++ <translation>Pomiń programy kodowane w H.264 (tylko z
EIT)</translation>
+ </message>
+ <message>
+ <location filename="../programs/mythfrontend/customedit.cpp"
line="411"/>
+@@ -4893,12 +4894,12 @@ Urządzenie wspiera do %1</translation>
+ <message>
+ <location filename="../programs/mythfrontend/customedit.cpp"
line="432"/>
+ <source>All matches for a genre (Schedules Direct)</source>
+- <translation type="unfinished"></translation>
++ <translation>Wszystkie zgodne z kategorią (Schedules
Direct)</translation>
+ </message>
+ <message>
+ <location filename="../programs/mythfrontend/customedit.cpp"
line="443"/>
+ <source>Limit by MPAA or VCHIP rating (Schedules Direct)</source>
+- <translation type="unfinished"></translation>
++ <translation>Ograniczaj zgodnie z ratingiem MPAA lub VCHIP (Schedules
Direct)</translation>
+ </message>
+ <message>
+ <location filename="../programs/mythfrontend/customedit.cpp"
line="452"/>
+@@ -4909,12 +4910,12 @@ Urządzenie wspiera do %1</translation>
+ <message>
+ <location filename="../programs/mythfrontend/customedit.cpp"
line="472"/>
+ <source>Person named in the credits (Schedules Direct)</source>
+- <translation type="unfinished"></translation>
++ <translation>Osoba w liście podzieńkowań (Schedules
Direct)</translation>
+ </message>
+ <message>
+ <location filename="../programs/mythfrontend/customedit.cpp"
line="539"/>
+ <source>First Episodes (complete example for Schedules
Direct)</source>
+- <translation type="unfinished"></translation>
++ <translation>Pierwsze Epizody</translation>
+ </message>
+ <message>
+ <location filename="../programs/mythfrontend/customedit.cpp"
line="726"/>
+@@ -4949,7 +4950,7 @@ Urządzenie wspiera do %1</translation>
+ <message>
+ <location filename="../programs/mythfrontend/customedit.cpp"
line="784"/>
+ <source>Power Search rules cannot include semicolon ( ; ) </source>
+- <translation>Reguły Power Search nie mogą zawierać średnika
(;)</translation>
++ <translation>Reguły Power Search nie mogą zawierać średnika (;)
</translation>
+ </message>
+ <message>
+ <location filename="../programs/mythfrontend/customedit.cpp"
line="916"/>
+@@ -4996,12 +4997,12 @@ Urządzenie wspiera do %1</translation>
+ <message>
+ <location filename="../programs/mythfrontend/custompriority.cpp"
line="154"/>
+ <source>Modify priority for every card on a host</source>
+- <translation>Modyfikuj priorytet dla każdej karty na maszynie
</translation>
++ <translation>Modyfikuj priorytet dla każdej karty na
maszynie</translation>
+ </message>
+ <message>
+ <location filename="../programs/mythfrontend/custompriority.cpp"
line="156"/>
+ <source>Only one specific channel ID (Channel priority)</source>
+- <translation>Tylko dla jednego wybranego kanału (Channel priority)
</translation>
++ <translation>Tylko dla jednego wybranego kanału (Channel
priority)</translation>
+ </message>
+ <message>
+ <location filename="../programs/mythfrontend/custompriority.cpp"
line="158"/>
+@@ -5166,7 +5167,7 @@ Urządzenie wspiera do %1</translation>
+ <message>
+ <location filename="../libs/libmythtv/videosource.cpp"
line="3998"/>
+ <source>DiSEqC (Switch, LNB and Rotor Configuration)</source>
+- <translation type="unfinished"></translation>
++ <translation>DiSEqC (konfiguracja Switcha, LNB i
Rotora)</translation>
+ </message>
+ </context>
+ <context>
+@@ -5179,7 +5180,7 @@ Urządzenie wspiera do %1</translation>
+ <message>
+ <location
filename="../libs/libmythtv/recorders/dvbsignalmonitor.cpp"
line="57"/>
+ <source>Uncorrected Blocks</source>
+- <translation> Niepoprawionych bloków</translation>
++ <translation>Niepoprawionych bloków</translation>
+ </message>
+ <message>
+ <location
filename="../libs/libmythtv/recorders/dvbsignalmonitor.cpp"
line="59"/>
+@@ -5361,12 +5362,12 @@ Urządzenie wspiera do %1</translation>
+ <message>
+ <location filename="../libs/libmyth/dbsettings.cpp"
line="130"/>
+ <source>Wake command or MAC</source>
+- <translation type="unfinished"></translation>
++ <translation>Rozkaz wybudzenia lub adres MAC</translation>
+ </message>
+ <message>
+ <location filename="../libs/libmyth/dbsettings.cpp"
line="132"/>
+ <source>The command executed on this frontend or server MAC to wake up the
database server (eg. sudo /etc/init.d/mysql restart or 32:D2:86:00:17:A8).</source>
+- <translation type="unfinished"></translation>
++ <translation>Rozkaz wybudzenia backendu do wykonania na tym frontendzie
lub adres MAC budzący backend (np. sudo /etc/init.d/backend restart or
32:D2:86:00:17:A8).</translation>
+ </message>
+ <message>
+ <source>Wake command</source>
+@@ -5892,7 +5893,7 @@ Zabezpieczenia obowiązują aż do wyjścia do Głównego
Manu.</translation>
+ <message>
+ <location filename="../libs/libmythtv/diseqcsettings.cpp"
line="590"/>
+ <source>Unicable userband ID (0-7). The Unicable userband channels are
often numbered starting at 1 but MythTV starts at 0.</source>
+- <translation type="unfinished"></translation>
++ <translation>ID nośnej w Unicable. Uwaga: Unicable numeruje nośne
poczynając od 1 zaś MythTV od 0.</translation>
+ </message>
+ <message>
+ <location filename="../libs/libmythtv/diseqcsettings.cpp"
line="705"/>
+@@ -6308,27 +6309,27 @@ Zabezpieczenia obowiązują aż do wyjścia do Głównego
Manu.</translation>
+ <message>
+ <location filename="../programs/mythfrontend/exitprompt.cpp"
line="275"/>
+ <source>Yes, Suspend</source>
+- <translation type="unfinished"></translation>
++ <translation>Uśpij</translation>
+ </message>
+ <message>
+ <location filename="../programs/mythfrontend/exitprompt.cpp"
line="293"/>
+ <source>Are you sure you want to shutdown?</source>
+- <translation type="unfinished"></translation>
++ <translation>Czy napewno wyłączyć?</translation>
+ </message>
+ <message>
+ <location filename="../programs/mythfrontend/exitprompt.cpp"
line="294"/>
+ <source>Are you sure you want to reboot?</source>
+- <translation type="unfinished"></translation>
++ <translation>Czy napewno przeładować?</translation>
+ </message>
+ <message>
+ <location filename="../programs/mythfrontend/exitprompt.cpp"
line="295"/>
+ <source>Are you sure you want to suspend?</source>
+- <translation type="unfinished"></translation>
++ <translation>Czy napewno uśpić?</translation>
+ </message>
+ <message>
+ <location filename="../programs/mythfrontend/exitprompt.cpp"
line="301"/>
+ <source>Mythbackend is running on this system. </source>
+- <translation type="unfinished"></translation>
++ <translation>Na tym systemie działa mythbackend. </translation>
+ </message>
+ <message>
+ <source>No</source>
+@@ -6358,7 +6359,7 @@ Zabezpieczenia obowiązują aż do wyjścia do Głównego
Manu.</translation>
+ <message>
+ <location filename="../programs/mythtv-setup/exitprompt.cpp"
line="79"/>
+ <source>...and more...</source>
+- <translation type="unfinished"></translation>
++ <translation>...i więcej...</translation>
+ </message>
+ <message numerus="yes">
+ <location filename="../programs/mythtv-setup/exitprompt.cpp"
line="86"/>
+@@ -6372,7 +6373,7 @@ Zabezpieczenia obowiązują aż do wyjścia do Głównego
Manu.</translation>
+ <message>
+ <location filename="../programs/mythtv-setup/exitprompt.cpp"
line="89"/>
+ <source>Configuration Problems</source>
+- <translation type="unfinished"></translation>
++ <translation>Problem(y) z konfiguracją</translation>
+ </message>
+ <message>
+ <location filename="../programs/mythtv-setup/exitprompt.cpp"
line="101"/>
+@@ -6403,47 +6404,47 @@ Zabezpieczenia obowiązują aż do wyjścia do Głównego
Manu.</translation>
+ <message>
+ <location
filename="../libs/libmythtv/channelscan/externrecscanner.cpp"
line="100"/>
+ <source>Creating channel list</source>
+- <translation type="unfinished"></translation>
++ <translation>Utwórz listę kanałów</translation>
+ </message>
+ <message>
+ <location
filename="../libs/libmythtv/channelscan/externrecscanner.cpp"
line="119"/>
+ <source>Processing channels</source>
+- <translation type="unfinished"></translation>
++ <translation>Przetwarzam kanały</translation>
+ </message>
+ <message>
+ <location
filename="../libs/libmythtv/channelscan/externrecscanner.cpp"
line="140"/>
+ <source>Adding Channels</source>
+- <translation type="unfinished">Dodaję
Kanały</translation>
++ <translation>Dodaję Kanały</translation>
+ </message>
+ <message>
+ <location
filename="../libs/libmythtv/channelscan/externrecscanner.cpp"
line="146"/>
+ <source>Channel #%1 : %2</source>
+- <translation type="unfinished">Kanał #%1 :
%2</translation>
++ <translation>Kanał #%1 : %2</translation>
+ </message>
+ <message>
+ <location
filename="../libs/libmythtv/channelscan/externrecscanner.cpp"
line="172"/>
+ <source>Adding %1</source>
+- <translation type="unfinished">Dodaję %1</translation>
++ <translation>Dodaję %1</translation>
+ </message>
+ <message>
+ <location
filename="../libs/libmythtv/channelscan/externrecscanner.cpp"
line="183"/>
+ <source>Updating %1</source>
+- <translation type="unfinished">Aktualizuję
%1</translation>
++ <translation>Aktualizuję %1</translation>
+ </message>
+ <message>
+ <location
filename="../libs/libmythtv/channelscan/externrecscanner.cpp"
line="212"/>
+ <source>Removing unused Channel #%1</source>
+- <translation type="unfinished"></translation>
++ <translation>Usuwam nieużywane kanały #%1</translation>
+ </message>
+ <message>
+ <location
filename="../libs/libmythtv/channelscan/externrecscanner.cpp"
line="221"/>
+ <source>Found %1 channels.</source>
+- <translation type="unfinished"></translation>
++ <translation>Znaleziono %1 kanał(y).</translation>
+ </message>
+ <message>
+ <location
filename="../libs/libmythtv/channelscan/externrecscanner.cpp"
line="225"/>
+ <source>Done</source>
+- <translation type="unfinished"></translation>
++ <translation>Zakończono</translation>
+ </message>
+ </context>
+ <context>
+@@ -6455,13 +6456,13 @@ Zabezpieczenia obowiązują aż do wyjścia do Głównego
Manu.</translation>
+ <message>
+ <location filename="../libs/libmythtv/videosource.cpp"
line="2342"/>
+ <source>Command path</source>
+- <translation type="unfinished"></translation>
++ <translation>Ścieżka polecenia</translation>
+ </message>
+ <message>
+ <location filename="../libs/libmythtv/videosource.cpp"
line="2343"/>
+ <source>A 'black box' application controlled via stdin,
status on stderr and TransportStream read from stdout.
+ Use absolute path or path relative to the current directory.</source>
+- <translation type="unfinished"></translation>
++ <translation>Aplikacja typu 'black box' kontrolowana z
stdin, wysyłająca TransportStream na stdout i raportująca status na
stderr.</translation>
+ </message>
+ <message>
+ <location filename="../libs/libmythtv/videosource.cpp"
line="2348"/>
+@@ -6471,22 +6472,22 @@ Use absolute path or path relative to the current
directory.</source>
+ <message>
+ <location filename="../libs/libmythtv/videosource.cpp"
line="2370"/>
+ <source>File '%1' is valid.</source>
+- <translation type="unfinished"></translation>
++ <translation>Plik '%1' jest ok.</translation>
+ </message>
+ <message>
+ <location filename="../libs/libmythtv/videosource.cpp"
line="2372"/>
+ <source>WARNING: File '%1' is not
readable.</source>
+- <translation type="unfinished"></translation>
++ <translation>Uwaga: plik '%1' jest niemożliwy do
odczytania.</translation>
+ </message>
+ <message>
+ <location filename="../libs/libmythtv/videosource.cpp"
line="2375"/>
+ <source>WARNING: File '%1' is not
executable.</source>
+- <translation type="unfinished"></translation>
++ <translation>Uwaga: plik '%1' jest niemożliwy do
uruchomienia.</translation>
+ </message>
+ <message>
+ <location filename="../libs/libmythtv/videosource.cpp"
line="2380"/>
+ <source>WARNING: File '%1' does not
exist.</source>
+- <translation type="unfinished"></translation>
++ <translation>Uwaga: plik '%1' nie
istnieje.</translation>
+ </message>
+ <message>
+ <source>'%1' is valid.</source>
+@@ -7286,7 +7287,8 @@ or insert/mount local media.
+ </source>
+ <translation>Brak zdjęć w bazie.
+ Użyj komendy 'Wyszukaj' lub,
+-dołącz medium ze zdjęciami.</translation>
++dołącz medium ze zdjęciami.
++</translation>
+ </message>
+ <message>
+ <location filename="../programs/mythfrontend/gallerythumbview.cpp"
line="958"/>
+@@ -7599,12 +7601,12 @@ Proszę Czekać...</translation>
+ <message>
+ <location filename="../programs/mythfrontend/globalsettings.cpp"
line="4639"/>
+ <source>Scheduler Options</source>
+- <translation>Opcje Planowania Nagrań</translation>
++ <translation>Planowanie Nagrań</translation>
+ </message>
+ <message>
+ <location filename="../programs/mythfrontend/globalsettings.cpp"
line="4650"/>
+ <source>Accessibility Options</source>
+- <translation>Opcje Niepełnosprawnych</translation>
++ <translation>Opcje dla Niepełnosprawnych</translation>
+ </message>
+ </context>
+ <context>
+@@ -7757,32 +7759,32 @@ Proszę Czekać...</translation>
+ <message>
+ <location filename="../programs/mythfrontend/globalsettings.cpp"
line="636"/>
+ <source>Maximum Start Gap (secs)</source>
+- <translation type="unfinished"></translation>
++ <translation>Maksymalny Start Gap (sek.)</translation>
+ </message>
+ <message>
+ <location filename="../programs/mythfrontend/globalsettings.cpp"
line="640"/>
+ <source>If more than this number of seconds is missing at the start of a
recording that will be regarded as a gap for assessing recording quality. The recording
may be marked as damaged.</source>
+- <translation type="unfinished"></translation>
++ <translation>Jeśli na początku nagrania brakuje więcej niż ta liczba
sekund - algorytm oceny jakości uzna to za przerwę w nagraniu i nagranie może być
oznaczone jako 'uszkodzone'.</translation>
+ </message>
+ <message>
+ <location filename="../programs/mythfrontend/globalsettings.cpp"
line="652"/>
+ <source>Maximum End Gap (secs)</source>
+- <translation type="unfinished"></translation>
++ <translation>Maksymalny End Gap (sek.)</translation>
+ </message>
+ <message>
+ <location filename="../programs/mythfrontend/globalsettings.cpp"
line="656"/>
+ <source>If more than this number of seconds is missing at the end of a
recording that will be regarded as a gap for assessing recording quality. The recording
may be marked as damaged.</source>
+- <translation type="unfinished"></translation>
++ <translation>Jeśli na końcu nagrania brakuje więcej niż ta liczba sekund -
algorytm oceny jakości uzna to za przerwę w nagraniu i nagranie może być oznaczone jako
'uszkodzone'.</translation>
+ </message>
+ <message>
+ <location filename="../programs/mythfrontend/globalsettings.cpp"
line="668"/>
+ <source>Minimum Recording Quality (percent)</source>
+- <translation type="unfinished"></translation>
++ <translation>Minimalna Jakość Nagrania (w %)</translation>
+ </message>
+ <message>
+ <location filename="../programs/mythfrontend/globalsettings.cpp"
line="672"/>
+ <source>If recording quality is below this value the recording is marked
as damaged.</source>
+- <translation type="unfinished"></translation>
++ <translation>Jeśli jakść będzie poniżej tej wartości - nagranie zostanie
uznane za uszkodzone.</translation>
+ </message>
+ <message>
+ <location filename="../programs/mythfrontend/globalsettings.cpp"
line="681"/>
+@@ -7883,42 +7885,42 @@ Proszę Czekać...</translation>
+ <message>
+ <location filename="../programs/mythfrontend/globalsettings.cpp"
line="2967"/>
+ <source>Case-sensitive sorting</source>
+- <translation type="unfinished"></translation>
++ <translation>Sortuj uwzględniając wielkość liter</translation>
+ </message>
+ <message>
+ <location filename="../programs/mythfrontend/globalsettings.cpp"
line="2969"/>
+ <source>If enabled, all sorting will be case-sensitive. This would mean
that "bee movie" would sort after "Sea World" as lower
case letters sort after uppercase letters.</source>
+- <translation type="unfinished"></translation>
++ <translation>Jeśli zaznaczone - sortowanie będzie uwzględniało wielkość
liter. Oznacza to że 'adam' bedzie po 'Zenonie' bowiem
'a' jest po 'Z' przy takim
sortowaniu.</translation>
+ </message>
+ <message>
+ <location filename="../programs/mythfrontend/globalsettings.cpp"
line="2982"/>
+ <source>Remove prefixes when sorting</source>
+- <translation type="unfinished"></translation>
++ <translation>Pomijaj prefix przy sortowaniu</translation>
+ </message>
+ <message>
+ <location filename="../programs/mythfrontend/globalsettings.cpp"
line="2984"/>
+ <source>If enabled, all sorting will remove the common prefixes (The, A,
An) from a string prior to sorting. For example, this would sort the titles
"Earth 2", "The Flash", and "Kings"
in that order. If disabled, they would sort as "Earth 2",
"Kings", "The Flash".</source>
+- <translation type="unfinished"></translation>
++ <translation>Jeśli zaznaczone - sortowanie będzie pomijało przedrostek
(The, A, An, itp). Np. opcja zaznaczone da wynik: "Earth 2",
"The Flash", and "Kings". Opcja nie zaznaczona da
wynik: "Earth 2", "Kings", "The
Flash".</translation>
+ </message>
+ <message>
+ <location filename="../programs/mythfrontend/globalsettings.cpp"
line="3012"/>
+ <source>Starting channel for Manual Record</source>
+- <translation type="unfinished"></translation>
++ <translation>Startowy kanał dla nagrywania maunalnego</translation>
+ </message>
+ <message>
+ <location filename="../programs/mythfrontend/globalsettings.cpp"
line="3013"/>
+ <source>Guide Starting Channel</source>
+- <translation type="unfinished"></translation>
++ <translation>Startowy kanał dla EPG</translation>
+ </message>
+ <message>
+ <location filename="../programs/mythfrontend/globalsettings.cpp"
line="3014"/>
+ <source>Last Manual Record Channel</source>
+- <translation type="unfinished"></translation>
++ <translation>Końcowy kanał dla nagrywania maunalnego</translation>
+ </message>
+ <message>
+ <location filename="../programs/mythfrontend/globalsettings.cpp"
line="3015"/>
+ <source>When entering a new Manual Record Rule, the starting channel will
default to this.</source>
+- <translation type="unfinished"></translation>
++ <translation>Tworzenie manulanej reguły nagrywania będzie zawierało ten
numer kanału jako domyślny.</translation>
+ </message>
+ <message>
+ <location filename="../programs/mythfrontend/globalsettings.cpp"
line="4566"/>
+@@ -7929,22 +7931,22 @@ Proszę Czekać...</translation>
+ <message>
+ <location filename="../programs/mythfrontend/globalsettings.cpp"
line="4577"/>
+ <source>General (Auto-Expire)</source>
+- <translation>Ogólne (Autokasowanie)</translation>
++ <translation>Autokasowanie Nagrań</translation>
+ </message>
+ <message>
+ <location filename="../programs/mythfrontend/globalsettings.cpp"
line="4595"/>
+ <source>General (Jobs)</source>
+- <translation>Ogólne (zadania)</translation>
++ <translation>Wykrywanie Reklam i inne zadania</translation>
+ </message>
+ <message>
+ <location filename="../programs/mythfrontend/globalsettings.cpp"
line="4606"/>
+ <source>General (Advanced)</source>
+- <translation>Ogólne (zaawansowane)</translation>
++ <translation>Zaawansowane</translation>
+ </message>
+ <message>
+ <location filename="../programs/mythfrontend/globalsettings.cpp"
line="4618"/>
+ <source>General (Channel Groups)</source>
+- <translation>Ogólne (Grupy Kanałów)</translation>
++ <translation>Grupy Kanałów TV</translation>
+ </message>
+ </context>
+ <context>
+@@ -8211,7 +8213,7 @@ Proszę Czekać...</translation>
+ <location filename="../programs/mythfrontend/guidegrid.cpp"
line="1129"/>
+ <location filename="../programs/mythfrontend/guidegrid.cpp"
line="1961"/>
+ <source>Custom Edit</source>
+- <translation>Zaawansowane...</translation>
++ <translation>Zaawansowane</translation>
+ </message>
+ <message>
+ <location filename="../programs/mythfrontend/guidegrid.cpp"
line="1132"/>
+@@ -8263,43 +8265,43 @@ Proszę Czekać...</translation>
+ <message>
+ <location
filename="../libs/libmythtv/channelscan/hdhrchannelfetcher.cpp"
line="331"/>
+ <source>Downloading Channel List</source>
+- <translation type="unfinished">Ładuję Listę
Kanałów</translation>
++ <translation>Ładuję Listę Kanałów</translation>
+ </message>
+ <message>
+ <location
filename="../libs/libmythtv/channelscan/hdhrchannelfetcher.cpp"
line="343"/>
+ <source>Downloading Channel List Failed</source>
+- <translation type="unfinished">Błąd Ładowania Listy
Kanałów</translation>
++ <translation>Błąd Ładowania Listy Kanałów</translation>
+ </message>
+ <message>
+ <location
filename="../libs/libmythtv/channelscan/hdhrchannelfetcher.cpp"
line="355"/>
+ <source>Adding Channels</source>
+- <translation type="unfinished">Dodaję
Kanały</translation>
++ <translation>Dodaję Kanały</translation>
+ </message>
+ <message>
+ <location
filename="../libs/libmythtv/channelscan/hdhrchannelfetcher.cpp"
line="384"/>
+ <source>%1 channel %2: %3</source>
+- <translation type="unfinished"></translation>
++ <translation>%1 kanał %2: %3</translation>
+ </message>
+ <message>
+ <location
filename="../libs/libmythtv/channelscan/hdhrchannelfetcher.cpp"
line="392"/>
+ <location
filename="../libs/libmythtv/channelscan/hdhrchannelfetcher.cpp"
line="400"/>
+ <source>Ignoring %1</source>
+- <translation type="unfinished"></translation>
++ <translation>Ignoruj %1</translation>
+ </message>
+ <message>
+ <location
filename="../libs/libmythtv/channelscan/hdhrchannelfetcher.cpp"
line="416"/>
+ <source>Adding %1</source>
+- <translation type="unfinished">Dodaję %1</translation>
++ <translation>Dodaję %1</translation>
+ </message>
+ <message>
+ <location
filename="../libs/libmythtv/channelscan/hdhrchannelfetcher.cpp"
line="420"/>
+ <source>Updating %1</source>
+- <translation type="unfinished">Aktualizuję
%1</translation>
++ <translation>Aktualizuję %1</translation>
+ </message>
+ <message>
+ <location
filename="../libs/libmythtv/channelscan/hdhrchannelfetcher.cpp"
line="462"/>
+ <source>Done</source>
+- <translation type="unfinished"></translation>
++ <translation>Wykonano</translation>
+ </message>
+ </context>
+ <context>
+@@ -8429,7 +8431,7 @@ Proszę Czekać...</translation>
+ <message>
+ <location filename="../programs/mythfrontend/playbackbox.cpp"
line="5430"/>
+ <source>Recording is in Standard Definition</source>
+- <translation type="unfinished"></translation>
++ <translation>Nagranie w standardzie SD</translation>
+ </message>
+ <message>
+ <location filename="../programs/mythfrontend/playbackbox.cpp"
line="5432"/>
+@@ -8439,37 +8441,37 @@ Proszę Czekać...</translation>
+ <message>
+ <location filename="../programs/mythfrontend/playbackbox.cpp"
line="5434"/>
+ <source>Recording is in 1080i High Definition</source>
+- <translation type="unfinished">Nagranie w standardzie HD 720p
{1080i?}</translation>
++ <translation>Nagranie w standardzie HD 1080i</translation>
+ </message>
+ <message>
+ <location filename="../programs/mythfrontend/playbackbox.cpp"
line="5435"/>
+ <source>Recording is in 1080p High Definition</source>
+- <translation type="unfinished">Nagranie w standardzie HD 720p
{1080p?}</translation>
++ <translation>Nagranie w standardzie HD 1080p</translation>
+ </message>
+ <message>
+ <location filename="../programs/mythfrontend/playbackbox.cpp"
line="5436"/>
+ <source>Recording is in 4k(interlaced) UHD resolution</source>
+- <translation type="unfinished"></translation>
++ <translation>Nagrania w standardzie UHD 4k z
przeplotem</translation>
+ </message>
+ <message>
+ <location filename="../programs/mythfrontend/playbackbox.cpp"
line="5437"/>
+ <source>Recording is in 4k UHD resolution</source>
+- <translation type="unfinished"></translation>
++ <translation>Nagrania w standardzie UHD 4k</translation>
+ </message>
+ <message>
+ <location filename="../programs/mythfrontend/playbackbox.cpp"
line="5438"/>
+ <source>Recording is using MPEG-2 codec</source>
+- <translation type="unfinished"></translation>
++ <translation>Kodowane kodekiem MPEG2</translation>
+ </message>
+ <message>
+ <location filename="../programs/mythfrontend/playbackbox.cpp"
line="5439"/>
+ <source>Recording is using AVC/H.264 codec</source>
+- <translation type="unfinished"></translation>
++ <translation>Kodowane kodekiem AVC/H.264</translation>
+ </message>
+ <message>
+ <location filename="../programs/mythfrontend/playbackbox.cpp"
line="5440"/>
+ <source>Recording is using HEVC/H.265 codec</source>
+- <translation type="unfinished"></translation>
++ <translation>Kodowane kodekiem HEVC/H.265</translation>
+ </message>
+ <message>
+ <source>Recording is in HD using H.264 codec</source>
+@@ -9057,7 +9059,7 @@ Proszę Czekać...</translation>
+ <message>
+ <location filename="../html/htmlstrings.h"
line="163"/>
+ <source>Use Link-Local</source>
+- <translation>Używaj Lokalnego Interfejsu </translation>
++ <translation>Używaj Lokalnego Interfejsu</translation>
+ </message>
+ <message>
+ <location filename="../html/htmlstrings.h"
line="165"/>
+@@ -10292,7 +10294,7 @@ Proszę Czekać...</translation>
+ <message>
+ <location filename="../libs/libmythtv/videosource.cpp"
line="2850"/>
+ <source>Input %1</source>
+- <translation type="unfinished"></translation>
++ <translation>Wejście %1</translation>
+ </message>
+ </context>
+ <context>
+@@ -10354,12 +10356,12 @@ Proszę Czekać...</translation>
+ <message>
+ <location filename="../libs/libmythtv/jobqueue.cpp"
line="1117"/>
+ <source>Look up Metadata</source>
+- <translation>Wyszukuję Metadane </translation>
++ <translation>Wyszukuję Metadane</translation>
+ </message>
+ <message>
+ <location filename="../libs/libmythtv/jobqueue.cpp"
line="1118"/>
+ <source>Preview Generation</source>
+- <translation type="unfinished"></translation>
++ <translation>Generuję preview</translation>
+ </message>
+ <message>
+ <location filename="../libs/libmythtv/jobqueue.cpp"
line="1709"/>
+@@ -10596,17 +10598,17 @@ Proszę Czekać...</translation>
+ <message>
+ <location filename="../programs/mythlcdserver/lcdprocclient.cpp"
line="1958"/>
+ <source>R </source>
+- <translation>R</translation>
++ <translation>R </translation>
+ </message>
+ <message>
+ <location filename="../programs/mythlcdserver/lcdprocclient.cpp"
line="1963"/>
+ <source>E </source>
+- <translation>E</translation>
++ <translation>E </translation>
+ </message>
+ <message>
+ <location filename="../programs/mythlcdserver/lcdprocclient.cpp"
line="1970"/>
+ <source>C </source>
+- <translation>C</translation>
++ <translation>C </translation>
+ </message>
+ <message>
+ <location filename="../programs/mythlcdserver/lcdprocclient.cpp"
line="1996"/>
+@@ -10657,7 +10659,7 @@ Proszę Czekać...</translation>
+ <message>
+ <location filename="../programs/mythfrontend/globalsettings.cpp"
line="3692"/>
+ <source>Display selected menu on LCD display. </source>
+- <translation>Pokazuj bieżącą opcję Menu na wyświetlaczu
LCD.</translation>
++ <translation>Pokazuj bieżącą opcję Menu na wyświetlaczu LCD.
</translation>
+ </message>
+ <message>
+ <location filename="../programs/mythfrontend/globalsettings.cpp"
line="3703"/>
+@@ -10954,12 +10956,12 @@ Proszę Czekać...</translation>
+ <message>
+ <location filename="../programs/mythfrontend/globalsettings.cpp"
line="1991"/>
+ <source>Confirm before suspending/shutting down</source>
+- <translation type="unfinished"></translation>
++ <translation>Potwierdź przed uśpieniem/wyłączeniem</translation>
+ </message>
+ <message>
+ <location filename="../programs/mythfrontend/globalsettings.cpp"
line="1992"/>
+ <source>If enabled (the default) then the user will always be asked to
confirm before the system is shutdown, suspended or rebooted.</source>
+- <translation type="unfinished"></translation>
++ <translation>Jeśli zaznaczone (domyślnie tak) - przed
uśpieniem/wyłączeniem użytkownik będzie pytany o potwierdzenie tej
akcji.</translation>
+ </message>
+ <message>
+ <location filename="../programs/mythfrontend/globalsettings.cpp"
line="2002"/>
+@@ -10974,47 +10976,47 @@ Proszę Czekać...</translation>
+ <message>
+ <location filename="../programs/mythfrontend/globalsettings.cpp"
line="2005"/>
+ <source>Show quit</source>
+- <translation>Pokazuj "Wyjddź"</translation>
++ <translation>Wyjdź</translation>
+ </message>
+ <message>
+ <location filename="../programs/mythfrontend/globalsettings.cpp"
line="2006"/>
+ <source>Show quit and suspend</source>
+- <translation type="unfinished"></translation>
++ <translation>Uśpij, Wyjdź</translation>
+ </message>
+ <message>
+ <location filename="../programs/mythfrontend/globalsettings.cpp"
line="2007"/>
+ <source>Show quit and shutdown</source>
+- <translation>Pokazuj "Wyjdź i
Wyłącz"</translation>
++ <translation>Wyjdź, Wyłącz</translation>
+ </message>
+ <message>
+ <location filename="../programs/mythfrontend/globalsettings.cpp"
line="2008"/>
+ <source>Show quit, reboot and shutdown</source>
+- <translation>Pokazuj "Wyjdź, Wyłącz,
Przeładuj"</translation>
++ <translation>Wyjdź, Wyłącz, Przeładuj</translation>
+ </message>
+ <message>
+ <location filename="../programs/mythfrontend/globalsettings.cpp"
line="2009"/>
+ <source>Show quit, reboot, shutdown and suspend</source>
+- <translation type="unfinished"></translation>
++ <translation>Uśpij, Wyjdź, Przeładuj, Wyłącz</translation>
+ </message>
+ <message>
+ <location filename="../programs/mythfrontend/globalsettings.cpp"
line="2010"/>
+ <source>Show shutdown</source>
+- <translation>Pokazuj "Wyłącz"</translation>
++ <translation>Wyłącz</translation>
+ </message>
+ <message>
+ <location filename="../programs/mythfrontend/globalsettings.cpp"
line="2011"/>
+ <source>Show reboot</source>
+- <translation>Pokazuj "Przeładuj"</translation>
++ <translation>Przeładuj</translation>
+ </message>
+ <message>
+ <location filename="../programs/mythfrontend/globalsettings.cpp"
line="2012"/>
+ <source>Show reboot and shutdown</source>
+- <translation>Pokazuj "Przeładuj,
Wyłącz"</translation>
++ <translation>Przeładuj, Wyłącz</translation>
+ </message>
+ <message>
+ <location filename="../programs/mythfrontend/globalsettings.cpp"
line="2013"/>
+ <source>Show standby</source>
+- <translation>Pokaż StandBy</translation>
++ <translation>Uśpij</translation>
+ </message>
+ <message>
+ <source>By default, only remote frontends are shown the shutdown option on
the exit menu. Here you can force specific shutdown and reboot options to be
displayed.</source>
+@@ -11033,22 +11035,22 @@ Proszę Czekać...</translation>
+ <message>
+ <location filename="../programs/mythfrontend/globalsettings.cpp"
line="2053"/>
+ <source> Note: This system appears to support reboot without using this
setting.</source>
+- <translation type="unfinished"></translation>
++ <translation> Uwaga: system prawdopodobnie wspiera przeładowanie bez
konieczności ustawiania tego ustawienia.</translation>
+ </message>
+ <message>
+ <location filename="../programs/mythfrontend/globalsettings.cpp"
line="2063"/>
+ <source>Suspend command</source>
+- <translation type="unfinished"></translation>
++ <translation>Rozkaz uśpienia</translation>
+ </message>
+ <message>
+ <location filename="../programs/mythfrontend/globalsettings.cpp"
line="2065"/>
+ <source>Optional: Script to run if you select the suspend option from the
exit menu, if the option is displayed.</source>
+- <translation type="unfinished"></translation>
++ <translation>Opcjonalne: uruchamiany skrypt gdy użytkownik wybiera opcję
'uśpij' (jeśli ta opcja jest skonfigurowana jako
wyświetlana).</translation>
+ </message>
+ <message>
+ <location filename="../programs/mythfrontend/globalsettings.cpp"
line="2071"/>
+ <source> Note: This system appears to support suspend without using this
setting.</source>
+- <translation type="unfinished"></translation>
++ <translation> Uwaga: system prawdopodobnie wspiera uśpienie bez
konieczności ustawiania tego ustawienia.</translation>
+ </message>
+ <message>
+ <location filename="../programs/mythfrontend/globalsettings.cpp"
line="2081"/>
+@@ -11058,22 +11060,22 @@ Proszę Czekać...</translation>
+ <message>
+ <location filename="../programs/mythfrontend/globalsettings.cpp"
line="2083"/>
+ <source>Optional. Script to run if you select the shutdown option from the
exit menu, if the option is displayed. You must configure an exit key to display the exit
menu.</source>
+- <translation>Parametr opcjonalny. Skrypt/rozkaz realizujący zatrzymanie
systemu.</translation>
++ <translation>Parametr opcjonalny. Skrypt/rozkaz realizujący wyłączenie
systemu.</translation>
+ </message>
+ <message>
+ <location filename="../programs/mythfrontend/globalsettings.cpp"
line="2091"/>
+ <source> Note: This system appears to support shutdown without using this
setting.</source>
+- <translation type="unfinished"></translation>
++ <translation> Uwaga: system prawdopodobnie wspiera wyłączenie bez
konieczności ustawiania tego ustawienia.</translation>
+ </message>
+ <message>
+ <location filename="../programs/mythfrontend/globalsettings.cpp"
line="2104"/>
+ <source>LIRC daemon socket</source>
+- <translation>Unix socket dla LIRC</translation>
++ <translation>Gniazko unix'a z LIRC</translation>
+ </message>
+ <message>
+ <location filename="../programs/mythfrontend/globalsettings.cpp"
line="2114"/>
+ <source>UNIX socket or IP address[:port] to connect in order to
communicate with the LIRC Daemon.</source>
+- <translation>Unix socket ew. adres IP:port używany do komunikacji z
demonem LIRC.</translation>
++ <translation>Gnizdko unix'a z portem LIRC albo adres IP:port
używany do komunikacji z demonem LIRC.</translation>
+ </message>
+ <message>
+ <location filename="../programs/mythfrontend/globalsettings.cpp"
line="2126"/>
+@@ -11098,12 +11100,12 @@ Proszę Czekać...</translation>
+ <message>
+ <location filename="../programs/mythfrontend/globalsettings.cpp"
line="2998"/>
+ <source>Names exempt from prefix removal</source>
+- <translation type="unfinished"></translation>
++ <translation>Lista pomijania prefiksów</translation>
+ </message>
+ <message>
+ <location filename="../programs/mythfrontend/globalsettings.cpp"
line="3000"/>
+ <source>This list of names will be exempt from removing the common
prefixes (The, A, An) from a title or filename. Enter multiple names separated by
semicolons.</source>
+- <translation type="unfinished"></translation>
++ <translation>Lista tytułów które będą wyłączone z filtrowania prefiksów
(The, A, An). Separatorem w liście jest średnik.</translation>
+ </message>
+ <message>
+ <location filename="../programs/mythfrontend/globalsettings.cpp"
line="3287"/>
+@@ -11138,52 +11140,52 @@ Proszę Czekać...</translation>
+ <message>
+ <location filename="../programs/mythfrontend/globalsettings.cpp"
line="3333"/>
+ <source>Enable CEC Control interface</source>
+- <translation type="unfinished"></translation>
++ <translation>Włącz zdalne sterowanie z CEC</translation>
+ </message>
+ <message>
+ <location filename="../programs/mythfrontend/globalsettings.cpp"
line="3335"/>
+ <source>This enables controlling MythFrontend from a TV remote or powering
the TV on and off from a MythTV remote if you have compatible hardware. These settings
only take effect after a restart.</source>
+- <translation type="unfinished"></translation>
++ <translation>Włącza sterowania z pilota TV poprzez protokół CEC. Pozwala
na sterowania MythTV z pilota TV oraz na włączanie/wyłączanie TV z poziomy MythTV. Po
włączeniu tego ustawienie wymagany jest restart MythTV.</translation>
+ </message>
+ <message>
+ <location filename="../programs/mythfrontend/globalsettings.cpp"
line="3347"/>
+ <source>Allow Power On TV</source>
+- <translation type="unfinished"></translation>
++ <translation>Pozwalaj na włączanie TV</translation>
+ </message>
+ <message>
+ <location filename="../programs/mythfrontend/globalsettings.cpp"
line="3348"/>
+ <source>Enables your TV to be powered on from MythTV remote or when MythTV
starts if you have compatible hardware.</source>
+- <translation type="unfinished"></translation>
++ <translation>Pozwala na włączanie TV z poziomu
MythTV.</translation>
+ </message>
+ <message>
+ <location filename="../programs/mythfrontend/globalsettings.cpp"
line="3358"/>
+ <source>Allow Power Off TV</source>
+- <translation type="unfinished"></translation>
++ <translation>Pozwalaj na wyłączanie TV</translation>
+ </message>
+ <message>
+ <location filename="../programs/mythfrontend/globalsettings.cpp"
line="3359"/>
+ <source>Enables your TV to be powered off from MythTV remote or when
MythTV starts if you have compatible hardware.</source>
+- <translation type="unfinished"></translation>
++ <translation>Pozwala na wyłączanie TV z poziomu
MythTV.</translation>
+ </message>
+ <message>
+ <location filename="../programs/mythfrontend/globalsettings.cpp"
line="3369"/>
+ <source>Power on TV At Start</source>
+- <translation type="unfinished"></translation>
++ <translation>Włączaj TV przy starcie MythTV</translation>
+ </message>
+ <message>
+ <location filename="../programs/mythfrontend/globalsettings.cpp"
line="3370"/>
+ <source>Powers on your TV when you start MythTV if you have compatible
hardware.</source>
+- <translation type="unfinished"></translation>
++ <translation>Włącza TV podczas startu MythTV.</translation>
+ </message>
+ <message>
+ <location filename="../programs/mythfrontend/globalsettings.cpp"
line="3380"/>
+ <source>Power off TV At Exit</source>
+- <translation type="unfinished"></translation>
++ <translation>Wyłącz TV przy wyłączeniu MythTV</translation>
+ </message>
+ <message>
+ <location filename="../programs/mythfrontend/globalsettings.cpp"
line="3381"/>
+ <source>Powers off your TV when you exit MythTV if you have compatible
hardware.</source>
+- <translation type="unfinished"></translation>
++ <translation>Wyłącza TV przy wyjściu z MythTV.</translation>
+ </message>
+ <message>
+ <location filename="../programs/mythfrontend/globalsettings.cpp"
line="3396"/>
+@@ -11290,32 +11292,32 @@ Proszę Czekać...</translation>
+ <message>
+ <location filename="../programs/mythfrontend/globalsettings.cpp"
line="111"/>
+ <source>Decoder Device for VAAPI hardware decoding</source>
+- <translation type="unfinished"></translation>
++ <translation>Urządzenie dekodera video VAAPI</translation>
+ </message>
+ <message>
+ <location filename="../programs/mythfrontend/globalsettings.cpp"
line="115"/>
+ <source>Use this if your system does not detect the VAAPI device. Example:
'/dev/dri/renderD128'.</source>
+- <translation type="unfinished"></translation>
++ <translation>Ustaw jeśli Twój system nie wykrywa automatycznie urządzenia
dla sprzętowego dekodera video VAAPI. Zazwyczaj to urządzenie to
/dev/dri/renderD128.</translation>
+ </message>
+ <message>
+ <location filename="../programs/mythfrontend/globalsettings.cpp"
line="2014"/>
+ <source>Show suspend</source>
+- <translation type="unfinished"></translation>
++ <translation>Pokazuj opcje 'uśpij'</translation>
+ </message>
+ <message>
+ <location filename="../programs/mythfrontend/globalsettings.cpp"
line="2016"/>
+ <source>By default, only remote frontends are shown the shutdown option on
the exit menu. Here you can force specific shutdown, reboot and suspend options to be
displayed.</source>
+- <translation type="unfinished"></translation>
++ <translation>Domyślnie, opcja uśpienia jest widoczna w menu tylko na
zdalnych frontendow. Ta opcja pozwla to wybór widoczności w menu takich opcji jak
'wyłącz','przeładuj','uśpij'
,itp.</translation>
+ </message>
+ <message>
+ <location filename="../programs/mythfrontend/globalsettings.cpp"
line="2025"/>
+ <source>This system supports '%1' without additional
setup. </source>
+- <translation type="unfinished"></translation>
++ <translation>Ten system wspiera '%1' bez konieczności
dodatkowych ustawień. </translation>
+ </message>
+ <message>
+ <location filename="../programs/mythfrontend/globalsettings.cpp"
line="2031"/>
+ <source> This system appears to have no power options available. Try
setting the Halt/Reboot/Suspend commands below.</source>
+- <translation type="unfinished"></translation>
++ <translation> Ten system prawdopodobnie nie wspiera opcji związanych z
zarządzaniem pracą (włącz, wyłącz, uśpiuj, itp). Użyj ręcznych ustawiem dla
'uśpij','wyłącz', itp.</translation>
+ </message>
+ <message>
+ <location filename="../programs/mythfrontend/globalsettings.cpp"
line="4209"/>
+@@ -11330,7 +11332,7 @@ Proszę Czekać...</translation>
+ <message>
+ <location filename="../programs/mythfrontend/globalsettings.cpp"
line="4092"/>
+ <source>Shutdown/Reboot Settings</source>
+- <translation>Ustawienia
"Wyłacz/Przeładuj"</translation>
++ <translation>Ustawienia
"Wyłącz/Przeładuj"</translation>
+ </message>
+ </context>
+ <context>
+@@ -11354,6 +11356,7 @@ Proszę Czekać...</translation>
+ <name>MediaMonitor</name>
+ <message>
+ <location filename="../libs/libmyth/mythmediamonitor.cpp"
line="219"/>
++ <location filename="../libs/libmyth/mythmediamonitor.cpp"
line="765"/>
+ <source>Cancel</source>
+ <translation>Anuluj</translation>
+ </message>
+@@ -11391,27 +11394,27 @@ Proszę Czekać...</translation>
+ <translation type="vanished">Medium zawiera treści które mogą
być wyświetlane w różny sposób. Wybierz sposób.</translation>
+ </message>
+ <message>
+- <location filename="../libs/libmyth/mythmediamonitor.cpp"
line="892"/>
++ <location filename="../libs/libmyth/mythmediamonitor.cpp"
line="983"/>
+ <source>Select a CD drive</source>
+ <translation>Wybierz napęd CD</translation>
+ </message>
+ <message>
+- <location filename="../libs/libmyth/mythmediamonitor.cpp"
line="901"/>
++ <location filename="../libs/libmyth/mythmediamonitor.cpp"
line="992"/>
+ <source>Select a VCD drive</source>
+ <translation>Wybierz napęd VCD</translation>
+ </message>
+ <message>
+- <location filename="../libs/libmyth/mythmediamonitor.cpp"
line="910"/>
++ <location filename="../libs/libmyth/mythmediamonitor.cpp"
line="1001"/>
+ <source>Select a DVD drive</source>
+ <translation>Wybierz napęd DVD</translation>
+ </message>
+ <message>
+- <location filename="../libs/libmyth/mythmediamonitor.cpp"
line="931"/>
++ <location filename="../libs/libmyth/mythmediamonitor.cpp"
line="1022"/>
+ <source>Select a DVD writer</source>
+ <translation>Wybierz nagrywarkę DVD</translation>
+ </message>
+ <message>
+- <location filename="../libs/libmyth/mythmediamonitor.cpp"
line="919"/>
++ <location filename="../libs/libmyth/mythmediamonitor.cpp"
line="1010"/>
+ <source>Select a CD writer</source>
+ <translation>Wybierz nagrywarkę CD</translation>
+ </message>
+@@ -11621,28 +11624,28 @@ Proszę Czekać...</translation>
+ <message>
+ <location filename="../libs/libmythtv/Bluray/mythbdbuffer.cpp"
line="186"/>
+ <source>Title %1 chapter %2</source>
+- <translation type="unfinished">Tytuł %1 rozdział
%2</translation>
++ <translation>Tytuł %1 rozdział %2</translation>
+ </message>
+ <message>
+ <location filename="../libs/libmythtv/Bluray/mythbdbuffer.cpp"
line="333"/>
+ <location filename="../libs/libmythtv/Bluray/mythbdbuffer.cpp"
line="362"/>
+ <source>Could not open Blu-ray device: %1</source>
+- <translation type="unfinished">Nie mogę otworzyć urządzenia
Blu-ray: %1</translation>
++ <translation>Nie mogę otworzyć urządzenia Blu-ray: %1</translation>
+ </message>
+ <message>
+ <location filename="../libs/libmythtv/Bluray/mythbdbuffer.cpp"
line="374"/>
+ <source>Could not open Blu-ray device %1, failed to
decrypt</source>
+- <translation type="unfinished">Nie moge odkodować BLu-ray
%1</translation>
++ <translation>Nie moge odkodować Blu-ray %1</translation>
+ </message>
+ <message>
+ <location filename="../libs/libmythtv/Bluray/mythbdbuffer.cpp"
line="414"/>
+ <source>Unable to find any Blu-ray compatible titles</source>
+- <translation type="unfinished">Nie mogę znaleźć żadnych znanych
tytułów Blu-ray</translation>
++ <translation>Nie mogę znaleźć żadnych znanych tytułów
Blu-ray</translation>
+ </message>
+ <message>
+ <location filename="../libs/libmythtv/Bluray/mythbdbuffer.cpp"
line="520"/>
+ <source>Unable to find any usable Blu-ray titles</source>
+- <translation type="unfinished">Nie mogę znaleźć żadnych
wspieranych tytułów Blu-ray</translation>
++ <translation>Nie mogę znaleźć żadnych wspieranych tytułów
Blu-ray</translation>
+ </message>
+ </context>
+ <context>
+@@ -11650,7 +11653,7 @@ Proszę Czekać...</translation>
+ <message>
+ <location filename="../libs/libmythtv/Bluray/mythbdinfo.cpp"
line="93"/>
+ <source>Could not open Blu-ray device: %1</source>
+- <translation type="unfinished">Nie mogę otworzyć urządzenia
Blu-ray: %1</translation>
++ <translation>Nie mogę otworzyć urządzenia Blu-ray: %1</translation>
+ </message>
+ </context>
+ <context>
+@@ -11840,7 +11843,7 @@ Proszę Czekać...</translation>
+ <location filename="../libs/libmythtv/tv_play.cpp"
line="477"/>
+ <location filename="../libs/libmythtv/tv_play.cpp"
line="746"/>
+ <source>Show the Program Guide</source>
+- <translation>Pokaż przewodnik po programach </translation>
++ <translation>Pokaż przewodnik po programach</translation>
+ </message>
+ <message>
+ <location filename="../libs/libmythtv/tv_play.cpp"
line="479"/>
+@@ -11943,12 +11946,12 @@ Proszę Czekać...</translation>
+ <message>
+ <location filename="../libs/libmythtv/tv_play.cpp"
line="545"/>
+ <source>Add Bookmark</source>
+- <translation type="unfinished"></translation>
++ <translation>Dodaj Zakładkę</translation>
+ </message>
+ <message>
+ <location filename="../libs/libmythtv/tv_play.cpp"
line="547"/>
+ <source>Toggle Bookmark</source>
+- <translation type="unfinished"></translation>
++ <translation>Zakładka: Dodaj/Usuń</translation>
+ </message>
+ <message>
+ <location filename="../libs/libmythtv/tv_play.cpp"
line="549"/>
+@@ -12112,7 +12115,7 @@ Proszę Czekać...</translation>
+ <message>
+ <location filename="../libs/libmythtv/tv_play.cpp"
line="599"/>
+ <source>Toggle channel browse mode</source>
+- <translation>Przełączaj tryb spacerowania po kanałach
</translation>
++ <translation>Przełączaj tryb spacerowania po kanałach</translation>
+ </message>
+ <message>
+ <location filename="../libs/libmythtv/tv_play.cpp"
line="611"/>
+@@ -12155,12 +12158,12 @@ Proszę Czekać...</translation>
+ <message>
+ <location filename="../libs/libmythtv/tv_play.cpp"
line="618"/>
+ <source>Move BottomLine off screen</source>
+- <translation type="unfinished"></translation>
++ <translation>Przesuń dół poza ekran</translation>
+ </message>
+ <message>
+ <location filename="../libs/libmythtv/tv_play.cpp"
line="620"/>
+ <source>Save manual zoom for BottomLine</source>
+- <translation type="unfinished"></translation>
++ <translation>Zapisz zoom</translation>
+ </message>
+ <message>
+ <location filename="../libs/libmythtv/tv_play.cpp"
line="621"/>
+@@ -12420,12 +12423,12 @@ Proszę Czekać...</translation>
+ <message>
+ <location filename="../libs/libmythtv/tv_play.cpp"
line="890"/>
+ <source>Auto 3D</source>
+- <translation type="unfinished"></translation>
++ <translation>3D: Automatyczne</translation>
+ </message>
+ <message>
+ <location filename="../libs/libmythtv/tv_play.cpp"
line="892"/>
+ <source>Ignore 3D</source>
+- <translation type="unfinished"></translation>
++ <translation>Ingnoruj 3D</translation>
+ </message>
+ <message>
+ <source>Toggle night mode</source>
+@@ -12454,7 +12457,7 @@ Proszę Czekać...</translation>
+ <message>
+ <location filename="../libs/libmythtv/tv_play.cpp"
line="738"/>
+ <source>Recording picture adjustments for this channel</source>
+- <translation>Ustawienia obrazu podczas nagrywania na danym kanale
</translation>
++ <translation>Ustawienia obrazu podczas nagrywania na danym
kanale</translation>
+ </message>
+ <message>
+ <location filename="../libs/libmythtv/tv_play.cpp"
line="741"/>
+@@ -12544,7 +12547,7 @@ Proszę Czekać...</translation>
+ <message>
+ <location filename="../libs/libmythtv/tv_play.cpp"
line="781"/>
+ <source>OSD Navigation</source>
+- <translation type="unfinished"></translation>
++ <translation>OSD: Nawigacja</translation>
+ </message>
+ <message>
+ <location filename="../libs/libmythtv/tv_play.cpp"
line="783"/>
+@@ -12752,7 +12755,7 @@ Proszę Czekać...</translation>
+ <message>
+ <location filename="../libs/libmythtv/tv_play.cpp"
line="857"/>
+ <source>Previous Page</source>
+- <translation>Poprzednia strona </translation>
++ <translation>Poprzednia strona</translation>
+ </message>
+ <message>
+ <location filename="../libs/libmythtv/tv_play.cpp"
line="859"/>
+@@ -12762,7 +12765,7 @@ Proszę Czekać...</translation>
+ <message>
+ <location filename="../libs/libmythtv/tv_play.cpp"
line="861"/>
+ <source>Previous Subpage</source>
+- <translation>Poprzednia podstrona </translation>
++ <translation>Poprzednia podstrona</translation>
+ </message>
+ <message>
+ <location filename="../libs/libmythtv/tv_play.cpp"
line="863"/>
+@@ -12787,32 +12790,32 @@ Proszę Czekać...</translation>
+ <message>
+ <location filename="../libs/libmythui/mythmainwindow.cpp"
line="794"/>
+ <source>Up Arrow</source>
+- <translation>Strzałka "Do góry" </translation>
++ <translation>Strzałka "Do góry"</translation>
+ </message>
+ <message>
+ <location filename="../libs/libmythui/mythmainwindow.cpp"
line="796"/>
+ <source>Down Arrow</source>
+- <translation>Strzałka "Do dołu" </translation>
++ <translation>Strzałka "Do dołu"</translation>
+ </message>
+ <message>
+ <location filename="../libs/libmythui/mythmainwindow.cpp"
line="798"/>
+ <source>Left Arrow</source>
+- <translation>Strzałka "W lewo" </translation>
++ <translation>Strzałka "W lewo"</translation>
+ </message>
+ <message>
+ <location filename="../libs/libmythui/mythmainwindow.cpp"
line="800"/>
+ <source>Right Arrow</source>
+- <translation>Strzałka "W prawo" </translation>
++ <translation>Strzałka "W prawo"</translation>
+ </message>
+ <message>
+ <location filename="../libs/libmythui/mythmainwindow.cpp"
line="802"/>
+ <source>Move to next widget</source>
+- <translation>Przejdź do nastepnego widget'u </translation>
++ <translation>Przejdź do nastepnego widget'a</translation>
+ </message>
+ <message>
+ <location filename="../libs/libmythui/mythmainwindow.cpp"
line="804"/>
+ <source>Move to preview widget</source>
+- <translation>Przejdź do poprzedniego widget'u
</translation>
++ <translation>Przejdź do poprzedniego
widget'a</translation>
+ </message>
+ <message>
+ <location filename="../libs/libmythui/mythmainwindow.cpp"
line="806"/>
+@@ -12832,7 +12835,7 @@ Proszę Czekać...</translation>
+ <message>
+ <location filename="../libs/libmythui/mythmainwindow.cpp"
line="812"/>
+ <source>Pop-up menu</source>
+- <translation>Menu </translation>
++ <translation>Menu</translation>
+ </message>
+ <message>
+ <location filename="../libs/libmythui/mythmainwindow.cpp"
line="814"/>
+@@ -12992,52 +12995,52 @@ Proszę Czekać...</translation>
+ <message>
+ <location filename="../libs/libmythui/mythmainwindow.cpp"
line="877"/>
+ <source>Trigger System Key Event #1</source>
+- <translation>Akcja #1 wyzwalana klawiszem System Key </translation>
++ <translation>Akcja #1 wyzwalana klawiszem System Key</translation>
+ </message>
+ <message>
+ <location filename="../libs/libmythui/mythmainwindow.cpp"
line="879"/>
+ <source>Trigger System Key Event #2</source>
+- <translation>Akcja #2 wyzwalana klawiszem System Key </translation>
++ <translation>Akcja #2 wyzwalana klawiszem System Key</translation>
+ </message>
+ <message>
+ <location filename="../libs/libmythui/mythmainwindow.cpp"
line="881"/>
+ <source>Trigger System Key Event #3</source>
+- <translation>Akcja #3 wyzwalana klawiszem System Key </translation>
++ <translation>Akcja #3 wyzwalana klawiszem System Key</translation>
+ </message>
+ <message>
+ <location filename="../libs/libmythui/mythmainwindow.cpp"
line="883"/>
+ <source>Trigger System Key Event #4</source>
+- <translation>Akcja #4 wyzwalana klawiszem System Key </translation>
++ <translation>Akcja #4 wyzwalana klawiszem System Key</translation>
+ </message>
+ <message>
+ <location filename="../libs/libmythui/mythmainwindow.cpp"
line="885"/>
+ <source>Trigger System Key Event #5</source>
+- <translation>Akcja #5 wyzwalana klawiszem System Key </translation>
++ <translation>Akcja #5 wyzwalana klawiszem System Key</translation>
+ </message>
+ <message>
+ <location filename="../libs/libmythui/mythmainwindow.cpp"
line="887"/>
+ <source>Trigger System Key Event #6</source>
+- <translation>Akcja #6 wyzwalana klawiszem System Key </translation>
++ <translation>Akcja #6 wyzwalana klawiszem System Key</translation>
+ </message>
+ <message>
+ <location filename="../libs/libmythui/mythmainwindow.cpp"
line="889"/>
+ <source>Trigger System Key Event #7</source>
+- <translation>Akcja #7 wyzwalana klawiszem System Key </translation>
++ <translation>Akcja #7 wyzwalana klawiszem System Key</translation>
+ </message>
+ <message>
+ <location filename="../libs/libmythui/mythmainwindow.cpp"
line="891"/>
+ <source>Trigger System Key Event #8</source>
+- <translation>Akcja #8 wyzwalana klawiszem System Key </translation>
++ <translation>Akcja #8 wyzwalana klawiszem System Key</translation>
+ </message>
+ <message>
+ <location filename="../libs/libmythui/mythmainwindow.cpp"
line="893"/>
+ <source>Trigger System Key Event #9</source>
+- <translation>Akcja #9 wyzwalana klawiszem System Key </translation>
++ <translation>Akcja #9 wyzwalana klawiszem System Key</translation>
+ </message>
+ <message>
+ <location filename="../libs/libmythui/mythmainwindow.cpp"
line="895"/>
+ <source>Trigger System Key Event #10</source>
+- <translation>Akcja #10 wyzwalana klawiszem System Key
</translation>
++ <translation>Akcja #10 wyzwalana klawiszem System Key</translation>
+ </message>
+ <message>
+ <location filename="../libs/libmythui/mythmainwindow.cpp"
line="899"/>
+@@ -13140,7 +13143,7 @@ Proszę Czekać...</translation>
+ <location filename="../libs/libmythui/mythmainwindow.cpp"
line="947"/>
+ <location filename="../libs/libmythui/mythmainwindow.cpp"
line="949"/>
+ <source>Up to 16 Keys that allow Long Press</source>
+- <translation type="unfinished"></translation>
++ <translation>Do 16 klawiszy które będą aktywne dla funkcji Long
Press</translation>
+ </message>
+ <message>
+ <location filename="../libs/libmythui/mythmainwindow.cpp"
line="937"/>
+@@ -13148,27 +13151,27 @@ Proszę Czekać...</translation>
+ <translation>Pytaj o potwierdzenie przy wyjściu do
systemu</translation>
+ </message>
+ <message>
+- <location filename="../programs/mythfrontend/mythfrontend.cpp"
line="1564"/>
++ <location filename="../programs/mythfrontend/mythfrontend.cpp"
line="1565"/>
+ <source>Reload Theme</source>
+ <translation>Przeładuj skórkę</translation>
+ </message>
+ <message>
+- <location filename="../programs/mythfrontend/mythfrontend.cpp"
line="1566"/>
++ <location filename="../programs/mythfrontend/mythfrontend.cpp"
line="1567"/>
+ <source>Main Menu</source>
+ <translation>Menu Główne</translation>
+ </message>
+ <message>
+- <location filename="../programs/mythfrontend/mythfrontend.cpp"
line="1568"/>
++ <location filename="../programs/mythfrontend/mythfrontend.cpp"
line="1569"/>
+ <source>Program Guide</source>
+ <translation>Program TV</translation>
+ </message>
+ <message>
+- <location filename="../programs/mythfrontend/mythfrontend.cpp"
line="1570"/>
++ <location filename="../programs/mythfrontend/mythfrontend.cpp"
line="1571"/>
+ <source>Program Finder</source>
+ <translation>Wyszukiwarka Programów</translation>
+ </message>
+ <message>
+- <location filename="../programs/mythfrontend/mythfrontend.cpp"
line="1574"/>
++ <location filename="../programs/mythfrontend/mythfrontend.cpp"
line="1575"/>
+ <source>Manage Recordings / Fix Conflicts</source>
+ <translation>Zarządzanie Nagraniami / Usuwanie
konfliktów</translation>
+ </message>
+@@ -13177,17 +13180,17 @@ Proszę Czekać...</translation>
+ <translation type="obsolete">Priorytery
Nagrywania</translation>
+ </message>
+ <message>
+- <location filename="../programs/mythfrontend/mythfrontend.cpp"
line="1576"/>
++ <location filename="../programs/mythfrontend/mythfrontend.cpp"
line="1577"/>
+ <source>Manage Recording Rules</source>
+ <translation>Zarządzanie Regułami Nagrywania</translation>
+ </message>
+ <message>
+- <location filename="../programs/mythfrontend/mythfrontend.cpp"
line="1578"/>
++ <location filename="../programs/mythfrontend/mythfrontend.cpp"
line="1579"/>
+ <source>Channel Recording Priorities</source>
+ <translation>Priorytety Nagrywania związane z
kanałami</translation>
+ </message>
+ <message>
+- <location filename="../programs/mythfrontend/mythfrontend.cpp"
line="1580"/>
++ <location filename="../programs/mythfrontend/mythfrontend.cpp"
line="1581"/>
+ <source>TV Recording Playback</source>
+ <translation>Odtwarzanie Nagrań TV</translation>
+ </message>
+@@ -13196,7 +13199,7 @@ Proszę Czekać...</translation>
+ <translation type="obsolete">Kasowanie nagrań
TV</translation>
+ </message>
+ <message>
+- <location filename="../programs/mythfrontend/mythfrontend.cpp"
line="1582"/>
++ <location filename="../programs/mythfrontend/mythfrontend.cpp"
line="1583"/>
+ <source>Live TV</source>
+ <translation>TV na żywo</translation>
+ </message>
+@@ -13205,42 +13208,42 @@ Proszę Czekać...</translation>
+ <translation type="vanished">TV na Żywo w przewodniku
EPG</translation>
+ </message>
+ <message>
+- <location filename="../programs/mythfrontend/mythfrontend.cpp"
line="1584"/>
++ <location filename="../programs/mythfrontend/mythfrontend.cpp"
line="1585"/>
+ <source>Status Screen</source>
+ <translation>Ekran ze Statusem Systemu</translation>
+ </message>
+ <message>
+- <location filename="../programs/mythfrontend/mythfrontend.cpp"
line="1586"/>
++ <location filename="../programs/mythfrontend/mythfrontend.cpp"
line="1587"/>
+ <source>Previously Recorded</source>
+ <translation>Poprzednie</translation>
+ </message>
+ <message>
+- <location filename="../programs/mythfrontend/mythfrontend.cpp"
line="1589"/>
++ <location filename="../programs/mythfrontend/mythfrontend.cpp"
line="1590"/>
+ <source>Standby Mode</source>
+ <translation>Tryb Uśpienia</translation>
+ </message>
+ <message>
+- <location filename="../programs/mythfrontend/mythfrontend.cpp"
line="1594"/>
++ <location filename="../programs/mythfrontend/mythfrontend.cpp"
line="1595"/>
+ <source>The Video Default View</source>
+ <translation>Domyśny Widok Wideo</translation>
+ </message>
+ <message>
+- <location filename="../programs/mythfrontend/mythfrontend.cpp"
line="1596"/>
++ <location filename="../programs/mythfrontend/mythfrontend.cpp"
line="1597"/>
+ <source>The Video Manager</source>
+ <translation>Zarządzanie Biblioteką</translation>
+ </message>
+ <message>
+- <location filename="../programs/mythfrontend/mythfrontend.cpp"
line="1598"/>
++ <location filename="../programs/mythfrontend/mythfrontend.cpp"
line="1599"/>
+ <source>The Video Browser</source>
+ <translation>Przeglądanie Kolekcji</translation>
+ </message>
+ <message>
+- <location filename="../programs/mythfrontend/mythfrontend.cpp"
line="1600"/>
++ <location filename="../programs/mythfrontend/mythfrontend.cpp"
line="1601"/>
+ <source>The Video Listings</source>
+ <translation>Lista Wideo</translation>
+ </message>
+ <message>
+- <location filename="../programs/mythfrontend/mythfrontend.cpp"
line="1602"/>
++ <location filename="../programs/mythfrontend/mythfrontend.cpp"
line="1603"/>
+ <source>The Video Gallery</source>
+ <translation>Galeria Wideo</translation>
+ </message>
+@@ -13261,96 +13264,97 @@ Proszę Czekać...</translation>
+ <translation type="vanished">Zarzymaj Pokaz</translation>
+ </message>
+ <message>
+- <location filename="../programs/mythfrontend/mythfrontend.cpp"
line="1646"/>
++ <location filename="../programs/mythfrontend/mythfrontend.cpp"
line="1647"/>
+ <source>Start/Stop Slideshow</source>
+ <translation>Startuj/Zakończ Pokaz</translation>
+ </message>
+ <message>
+- <location filename="../programs/mythfrontend/mythfrontend.cpp"
line="1648"/>
++ <location filename="../programs/mythfrontend/mythfrontend.cpp"
line="1649"/>
+ <source>Start Recursive Slideshow</source>
+ <translation>Rozpocznij Pokaz z Podkatalogów</translation>
+ </message>
+ <message>
+- <location filename="../programs/mythfrontend/mythfrontend.cpp"
line="1650"/>
++ <location filename="../programs/mythfrontend/mythfrontend.cpp"
line="1651"/>
+ <source>Rotate image right 90 degrees</source>
+ <translation>Obróć 90 w prawo</translation>
+ </message>
+ <message>
+- <location filename="../programs/mythfrontend/mythfrontend.cpp"
line="1652"/>
++ <location filename="../programs/mythfrontend/mythfrontend.cpp"
line="1653"/>
+ <source>Rotate image left 90 degrees</source>
+ <translation>Obróć 90 w lewo</translation>
+ </message>
+ <message>
+- <location filename="../programs/mythfrontend/mythfrontend.cpp"
line="1654"/>
++ <location filename="../programs/mythfrontend/mythfrontend.cpp"
line="1655"/>
+ <source>Flip image horizontally</source>
+ <translation>Odwróć Poziomo</translation>
+ </message>
+ <message>
+- <location filename="../programs/mythfrontend/mythfrontend.cpp"
line="1656"/>
++ <location filename="../programs/mythfrontend/mythfrontend.cpp"
line="1657"/>
+ <source>Flip image vertically</source>
+ <translation>Odwróć Pionowo</translation>
+ </message>
+ <message>
+- <location filename="../programs/mythfrontend/mythfrontend.cpp"
line="1658"/>
++ <location filename="../programs/mythfrontend/mythfrontend.cpp"
line="1659"/>
+ <source>Zoom image out</source>
+ <translation>Zmniejsz</translation>
+ </message>
+ <message>
+- <location filename="../programs/mythfrontend/mythfrontend.cpp"
line="1660"/>
++ <location filename="../programs/mythfrontend/mythfrontend.cpp"
line="1661"/>
+ <source>Zoom image in</source>
+ <translation>Powiększ</translation>
+ </message>
+ <message>
+- <location filename="../programs/mythfrontend/mythfrontend.cpp"
line="1662"/>
++ <location filename="../programs/mythfrontend/mythfrontend.cpp"
line="1663"/>
+ <source>Full-size (un-zoom) image</source>
+ <translation>Pełny rozmiar</translation>
+ </message>
+ <message>
+- <location filename="../programs/mythfrontend/mythfrontend.cpp"
line="1664"/>
++ <location filename="../programs/mythfrontend/mythfrontend.cpp"
line="1665"/>
+ <source>Mark image</source>
+ <translation>Zaznacz Zdjęcie</translation>
+ </message>
+ <message>
+- <location filename="../programs/mythfrontend/mythfrontend.cpp"
line="1666"/>
++ <location filename="../programs/mythfrontend/mythfrontend.cpp"
line="1667"/>
+ <source>Scroll image up</source>
+ <translation>Przesuń do góry</translation>
+ </message>
+ <message>
+- <location filename="../programs/mythfrontend/mythfrontend.cpp"
line="1668"/>
++ <location filename="../programs/mythfrontend/mythfrontend.cpp"
line="1669"/>
+ <source>Scroll image left</source>
+ <translation>Przesuń w lewo</translation>
+ </message>
+ <message>
+- <location filename="../programs/mythfrontend/mythfrontend.cpp"
line="1670"/>
++ <location filename="../programs/mythfrontend/mythfrontend.cpp"
line="1671"/>
+ <source>Scroll image right</source>
+ <translation>Przesuń w prawo</translation>
+ </message>
+ <message>
+- <location filename="../programs/mythfrontend/mythfrontend.cpp"
line="1672"/>
++ <location filename="../programs/mythfrontend/mythfrontend.cpp"
line="1673"/>
+ <source>Scroll image down</source>
+ <translation>Przesuń w dół</translation>
+ </message>
+ <message>
+- <location filename="../programs/mythfrontend/mythfrontend.cpp"
line="1674"/>
++ <location filename="../programs/mythfrontend/mythfrontend.cpp"
line="1675"/>
+ <source>Recenter image</source>
+ <translation>Centruj</translation>
+ </message>
+ <message>
+- <location filename="../programs/mythfrontend/mythfrontend.cpp"
line="1676"/>
++ <location filename="../programs/mythfrontend/mythfrontend.cpp"
line="1677"/>
+ <source>Set or clear cover image</source>
+ <translation>Ustaw lub skasuj okładkę</translation>
+ </message>
+ <message>
++ <location filename="../programs/mythfrontend/mythfrontend.cpp"
line="1738"/>
+ <source>MythDVD media</source>
+- <translation type="vanished">DVD Media</translation>
++ <translation>DVD Media</translation>
+ </message>
+ <message>
+- <location filename="../programs/mythfrontend/mythfrontend.cpp"
line="1739"/>
++ <location filename="../programs/mythfrontend/mythfrontend.cpp"
line="1741"/>
+ <source>MythImage Media Handler 1/2</source>
+ <translation>Obsługa Mediów 1/2</translation>
+ </message>
+ <message>
+- <location filename="../programs/mythfrontend/mythfrontend.cpp"
line="1746"/>
++ <location filename="../programs/mythfrontend/mythfrontend.cpp"
line="1748"/>
+ <source>MythImage Media Handler 2/2</source>
+ <translation>Obsługa Mediów 2/2</translation>
+ </message>
+@@ -13375,32 +13379,32 @@ Proszę Czekać...</translation>
+ <translation type="obsolete">Galeria Video</translation>
+ </message>
+ <message>
+- <location filename="../programs/mythfrontend/mythfrontend.cpp"
line="1604"/>
++ <location filename="../programs/mythfrontend/mythfrontend.cpp"
line="1605"/>
+ <source>Play an Optical Disc</source>
+ <translation>Dyski Optyczne</translation>
+ </message>
+ <message>
+- <location filename="../programs/mythfrontend/mythfrontend.cpp"
line="1609"/>
++ <location filename="../programs/mythfrontend/mythfrontend.cpp"
line="1610"/>
+ <source>Image Gallery</source>
+ <translation>Zdjęcia</translation>
+ </message>
+ <message>
+- <location filename="../programs/mythfrontend/mythfrontend.cpp"
line="1612"/>
++ <location filename="../programs/mythfrontend/mythfrontend.cpp"
line="1613"/>
+ <source>Toggle Show Widget Borders</source>
+ <translation>Wyświetlanie brzegów dla Widget</translation>
+ </message>
+ <message>
+- <location filename="../programs/mythfrontend/mythfrontend.cpp"
line="1614"/>
++ <location filename="../programs/mythfrontend/mythfrontend.cpp"
line="1615"/>
+ <source>Toggle Show Widget Names</source>
+ <translation>Wyświetlanie Nazw dla Widget</translation>
+ </message>
+ <message>
+- <location filename="../programs/mythfrontend/mythfrontend.cpp"
line="1616"/>
++ <location filename="../programs/mythfrontend/mythfrontend.cpp"
line="1617"/>
+ <source>Reset All Keys</source>
+ <translation>Wyzeruj wszystkie skojarzenia</translation>
+ </message>
+ <message>
+- <location filename="../programs/mythfrontend/mythfrontend.cpp"
line="1617"/>
++ <location filename="../programs/mythfrontend/mythfrontend.cpp"
line="1618"/>
+ <source>Reset all keys to defaults</source>
+ <translation>Wróc do ustawień domyślnych</translation>
+ </message>
+@@ -13409,7 +13413,7 @@ Proszę Czekać...</translation>
+ <translation type="obsolete">Zrzut z ekranu</translation>
+ </message>
+ <message>
+- <location filename="../programs/mythfrontend/mythfrontend.cpp"
line="1734"/>
++ <location filename="../programs/mythfrontend/mythfrontend.cpp"
line="1735"/>
+ <source>MythTV's native media player.</source>
+ <translation>Wbudowany odtwarzacz MythTV.</translation>
+ </message>
+@@ -13467,12 +13471,12 @@ Proszę Czekać...</translation>
+ <translation type="obsolete">Galeria filmów w
MythVideo</translation>
+ </message>
+ <message>
+- <location filename="../programs/mythfrontend/mythfrontend.cpp"
line="1630"/>
++ <location filename="../programs/mythfrontend/mythfrontend.cpp"
line="1631"/>
+ <source>Play selected item in alternate player</source>
+ <translation>Odtwarzaj alternatywnym odtwarzaczu</translation>
+ </message>
+ <message>
+- <location filename="../programs/mythfrontend/mythfrontend.cpp"
line="1632"/>
++ <location filename="../programs/mythfrontend/mythfrontend.cpp"
line="1633"/>
+ <source>Open video filter dialog</source>
+ <translation>Filtr wyboru filmów</translation>
+ </message>
+@@ -13481,27 +13485,27 @@ Proszę Czekać...</translation>
+ <translation type="vanished">Przeglądanie w przeglądarce fimów
video</translation>
+ </message>
+ <message>
+- <location filename="../programs/mythfrontend/mythfrontend.cpp"
line="1634"/>
++ <location filename="../programs/mythfrontend/mythfrontend.cpp"
line="1635"/>
+ <source>Increase Parental Level</source>
+ <translation>Podnieś poziom kontroli rodzicielskiej</translation>
+ </message>
+ <message>
+- <location filename="../programs/mythfrontend/mythfrontend.cpp"
line="1636"/>
++ <location filename="../programs/mythfrontend/mythfrontend.cpp"
line="1637"/>
+ <source>Decrease Parental Level</source>
+ <translation>Obniż poziom kontroli rodzicielskiej</translation>
+ </message>
+ <message>
+- <location filename="../programs/mythfrontend/mythfrontend.cpp"
line="1638"/>
++ <location filename="../programs/mythfrontend/mythfrontend.cpp"
line="1639"/>
+ <source>Show Incremental Search Dialog</source>
+ <translation>Pokaż okienko wyszukiwania</translation>
+ </message>
+ <message>
+- <location filename="../programs/mythfrontend/mythfrontend.cpp"
line="1640"/>
++ <location filename="../programs/mythfrontend/mythfrontend.cpp"
line="1641"/>
+ <source>Download metadata for current item</source>
+ <translation>Pobierz metadane</translation>
+ </message>
+ <message>
+- <location filename="../programs/mythfrontend/mythfrontend.cpp"
line="1642"/>
++ <location filename="../programs/mythfrontend/mythfrontend.cpp"
line="1643"/>
+ <source>Display Item Detail Popup</source>
+ <translation>Pokaż szczegóły</translation>
+ </message>
+@@ -13518,9 +13522,9 @@ Proszę Czekać...</translation>
+ <translation type="obsolete">Odtwarzaj DVD</translation>
+ </message>
+ <message>
+- <location filename="../programs/mythfrontend/mythfrontend.cpp"
line="1736"/>
++ <location filename="../programs/mythfrontend/mythfrontend.cpp"
line="1737"/>
+ <source>MythDVD DVD Media Handler</source>
+- <translation>Autoobsługa mediów </translation>
++ <translation>Autoobsługa mediów</translation>
+ </message>
+ <message>
+ <source>Play a VCD</source>
+@@ -13544,12 +13548,12 @@ Proszę Czekać...</translation>
+ <message>
+ <location filename="../libs/libmythtv/DVD/mythdvdbuffer.cpp"
line="250"/>
+ <source>Title %1 chapter %2</source>
+- <translation type="unfinished">Tytuł %1 rozdział
%2</translation>
++ <translation>Tytuł %1 rozdział %2</translation>
+ </message>
+ <message>
+ <location filename="../libs/libmythtv/DVD/mythdvdbuffer.cpp"
line="277"/>
+ <source>Failed to open DVD device at %1</source>
+- <translation type="unfinished">Nie mogę otworzyć urządzenia DVD
%1</translation>
++ <translation>Nie mogę otworzyć urządzenia DVD %1</translation>
+ </message>
+ </context>
+ <context>
+@@ -13570,102 +13574,102 @@ Proszę Czekać...</translation>
+ <message>
+ <location filename="../libs/libmythui/mythdisplay.cpp"
line="144"/>
+ <source>Spanning %1 screens</source>
+- <translation type="unfinished"></translation>
++ <translation>Obejmuje %1 ekran(ów)</translation>
+ </message>
+ <message>
+ <location filename="../libs/libmythui/mythdisplay.cpp"
line="145"/>
+ <source>Total bounds</source>
+- <translation type="unfinished"></translation>
++ <translation>Całkowite granice</translation>
+ </message>
+ <message>
+ <location filename="../libs/libmythui/mythdisplay.cpp"
line="154"/>
+ <source>Supported HDR formats : %1</source>
+- <translation type="unfinished"></translation>
++ <translation>Supported HDR formats : %1</translation>
+ </message>
+ <message>
+ <location filename="../libs/libmythui/mythdisplay.cpp"
line="156"/>
+ <source>HDR mode switching is not available</source>
+- <translation type="unfinished"></translation>
++ <translation>HDR mode switching is not available</translation>
+ </message>
+ <message>
+ <location filename="../libs/libmythui/mythdisplay.cpp"
line="158"/>
+ <source>Max display brightness : %1 nits</source>
+- <translation type="unfinished"></translation>
++ <translation>Max display brightness : %1 nits</translation>
+ </message>
+ <message>
+ <location filename="../libs/libmythui/mythdisplay.cpp"
line="163"/>
+ <source>Variable refresh rate '%1': %2
%3</source>
+- <translation type="unfinished"></translation>
++ <translation>Variable refresh rate '%1': %2
%3</translation>
+ </message>
+ <message>
+ <location filename="../libs/libmythui/mythdisplay.cpp"
line="165"/>
+ <source>Enabled</source>
+- <translation type="unfinished"></translation>
++ <translation>Enabled</translation>
+ </message>
+ <message>
+ <location filename="../libs/libmythui/mythdisplay.cpp"
line="165"/>
+ <source>Disabled</source>
+- <translation type="unfinished">Wyłączona</translation>
++ <translation>Disabled</translation>
+ </message>
+ <message>
+ <location filename="../libs/libmythui/mythdisplay.cpp"
line="179"/>
+ <source>Current screen : %1 %2</source>
+- <translation type="unfinished"></translation>
++ <translation>Current screen : %1 %2</translation>
+ </message>
+ <message>
+ <location filename="../libs/libmythui/mythdisplay.cpp"
line="181"/>
+ <source>Screen : %1 %2</source>
+- <translation type="unfinished"></translation>
++ <translation>Screen : %1 %2</translation>
+ </message>
+ <message>
+ <location filename="../libs/libmythui/mythdisplay.cpp"
line="182"/>
+ <source>Size</source>
+- <translation type="unfinished">Rozmiar</translation>
++ <translation>Size</translation>
+ </message>
+ <message>
+ <location filename="../libs/libmythui/mythdisplay.cpp"
line="188"/>
+ <source>Aspect ratio</source>
+- <translation type="unfinished"></translation>
++ <translation>Aspect ratio</translation>
+ </message>
+ <message>
+ <location filename="../libs/libmythui/mythdisplay.cpp"
line="192"/>
+ <source>Current mode</source>
+- <translation type="unfinished"></translation>
++ <translation>Aktualny tryb</translation>
+ </message>
+ <message>
+ <location filename="../libs/libmythui/mythdisplay.cpp"
line="198"/>
+ <source>Available modes:</source>
+- <translation type="unfinished"></translation>
++ <translation>Dostępne tryby:</translation>
+ </message>
+ <message>
+- <location filename="../libs/libmythui/mythdisplay.cpp"
line="879"/>
++ <location filename="../libs/libmythui/mythdisplay.cpp"
line="888"/>
+ <source>Video mode override</source>
+- <translation type="unfinished"></translation>
++ <translation>Nadpisz tryb</translation>
+ </message>
+ <message>
+- <location filename="../libs/libmythui/mythdisplay.cpp"
line="892"/>
++ <location filename="../libs/libmythui/mythdisplay.cpp"
line="901"/>
+ <source>Override</source>
+- <translation type="unfinished"></translation>
++ <translation>Nadpisanie</translation>
+ </message>
+ <message>
+- <location filename="../libs/libmythui/mythdisplay.cpp"
line="902"/>
++ <location filename="../libs/libmythui/mythdisplay.cpp"
line="911"/>
+ <source>Multiscreen estimate</source>
+- <translation type="unfinished"></translation>
++ <translation>Estymacja multi-screen</translation>
+ </message>
+ <message>
+- <location filename="../libs/libmythui/mythdisplay.cpp"
line="917"/>
++ <location filename="../libs/libmythui/mythdisplay.cpp"
line="926"/>
+ <source>Square pixels</source>
+- <translation type="unfinished"></translation>
++ <translation>Square pixels</translation>
+ </message>
+ <message>
+- <location filename="../libs/libmythui/mythdisplay.cpp"
line="925"/>
++ <location filename="../libs/libmythui/mythdisplay.cpp"
line="934"/>
+ <source>Detected</source>
+- <translation type="unfinished"></translation>
++ <translation>Wykryty</translation>
+ </message>
+ <message>
+- <location filename="../libs/libmythui/mythdisplay.cpp"
line="930"/>
++ <location filename="../libs/libmythui/mythdisplay.cpp"
line="939"/>
+ <source>Guessed</source>
+- <translation type="unfinished"></translation>
++ <translation>Estymowany</translation>
+ </message>
+ </context>
+ <context>
+@@ -13673,7 +13677,7 @@ Proszę Czekać...</translation>
+ <message>
+ <location filename="../libs/libmythui/mythpainterwindow.cpp"
line="129"/>
+ <source>Warning: No GPU acceleration</source>
+- <translation type="unfinished"></translation>
++ <translation>Uwaga: brak akceleracji GPU</translation>
+ </message>
+ </context>
+ <context>
+@@ -13875,52 +13879,52 @@ Proszę Czekać...</translation>
+ <message>
+ <location filename="../libs/libmythtv/mythplayeraudioui.cpp"
line="117"/>
+ <source>Adjust Volume</source>
+- <translation type="unfinished">Głośność</translation>
++ <translation>Głośność</translation>
+ </message>
+ <message>
+ <location filename="../libs/libmythtv/mythplayeraudioui.cpp"
line="117"/>
+ <source>Volume</source>
+- <translation type="unfinished">Głośność</translation>
++ <translation>Głośność</translation>
+ </message>
+ <message>
+ <location filename="../libs/libmythtv/mythplayeraudioui.cpp"
line="143"/>
+ <source>Mute Off</source>
+- <translation type="unfinished">Wyciszenie
Off</translation>
++ <translation>Wyciszenie Off</translation>
+ </message>
+ <message>
+ <location filename="../libs/libmythtv/mythplayeraudioui.cpp"
line="144"/>
+ <source>Mute On</source>
+- <translation type="unfinished">Wyciszenie
On</translation>
++ <translation>Wyciszenie On</translation>
+ </message>
+ <message>
+ <location filename="../libs/libmythtv/mythplayeraudioui.cpp"
line="145"/>
+ <source>Left Channel Muted</source>
+- <translation type="unfinished">Lewy kanał
wyciszony</translation>
++ <translation>Lewy kanał wyciszony</translation>
+ </message>
+ <message>
+ <location filename="../libs/libmythtv/mythplayeraudioui.cpp"
line="146"/>
+ <source>Right Channel Muted</source>
+- <translation type="unfinished">Prawy kanał
wyciszony</translation>
++ <translation>Prawy kanał wyciszony</translation>
+ </message>
+ <message>
+ <location filename="../libs/libmythtv/mythplayeraudioui.cpp"
line="165"/>
+ <source>Upmixer On</source>
+- <translation type="unfinished">UpMixer On</translation>
++ <translation>UpMixer On</translation>
+ </message>
+ <message>
+ <location filename="../libs/libmythtv/mythplayeraudioui.cpp"
line="165"/>
+ <source>Upmixer Off</source>
+- <translation type="unfinished">UpMixer Off</translation>
++ <translation>UpMixer Off</translation>
+ </message>
+ <message>
+ <location filename="../libs/libmythtv/mythplayeraudioui.cpp"
line="197"/>
+ <source>Adjust Audio Sync</source>
+- <translation
type="unfinished">Synchronizacja</translation>
++ <translation>Synchronizacja</translation>
+ </message>
+ <message>
+ <location filename="../libs/libmythtv/mythplayeraudioui.cpp"
line="197"/>
+ <source>Audio Sync</source>
+- <translation type="unfinished">Synch. Audio</translation>
++ <translation>Synch. Audio</translation>
+ </message>
+ </context>
+ <context>
+@@ -13928,64 +13932,64 @@ Proszę Czekać...</translation>
+ <message>
+ <location filename="../libs/libmythtv/mythplayercaptionsui.cpp"
line="92"/>
+ <source>Adjust Subtitle Zoom</source>
+- <translation type="unfinished">Ustaw Zoom dla
Napisów</translation>
++ <translation>Ustaw Zoom dla Napisów</translation>
+ </message>
+ <message>
+ <location filename="../libs/libmythtv/mythplayercaptionsui.cpp"
line="92"/>
+ <source>Subtitle Zoom</source>
+- <translation type="unfinished">Zoom Napisów</translation>
++ <translation>Zoom Napisów</translation>
+ </message>
+ <message>
+ <location filename="../libs/libmythtv/mythplayercaptionsui.cpp"
line="111"/>
+ <source>Adjust Subtitle Delay</source>
+- <translation type="unfinished">Synchronizacja
Napisów</translation>
++ <translation>Synchronizacja Napisów</translation>
+ </message>
+ <message>
+ <location filename="../libs/libmythtv/mythplayercaptionsui.cpp"
line="111"/>
+ <source>Subtitle Delay</source>
+- <translation type="unfinished">Opóźnienie
Napisów</translation>
++ <translation>Opóźnienie Napisów</translation>
+ </message>
+ <message>
+ <location filename="../libs/libmythtv/mythplayercaptionsui.cpp"
line="165"/>
+ <source>TXT CAP</source>
+- <translation type="unfinished">TXT CAP</translation>
++ <translation>TXT CAP</translation>
+ </message>
+ <message>
+ <location filename="../libs/libmythtv/mythplayercaptionsui.cpp"
line="187"/>
+ <location filename="../libs/libmythtv/mythplayercaptionsui.cpp"
line="221"/>
+ <source>Text subtitles</source>
+- <translation type="unfinished">Napisy
tekstowe</translation>
++ <translation>Napisy tekstowe</translation>
+ </message>
+ <message>
+ <location filename="../libs/libmythtv/mythplayercaptionsui.cpp"
line="193"/>
+ <source>Off</source>
+- <translation type="unfinished"></translation>
++ <translation>Wyłącz</translation>
+ </message>
+ <message>
+ <location filename="../libs/libmythtv/mythplayercaptionsui.cpp"
line="225"/>
+ <source>TXT %1</source>
+- <translation type="unfinished">TXT %1</translation>
++ <translation>TXT %1</translation>
+ </message>
+ <message>
+ <location filename="../libs/libmythtv/mythplayercaptionsui.cpp"
line="238"/>
+ <source>On</source>
+- <translation type="unfinished">Włącz</translation>
++ <translation>Włącz</translation>
+ </message>
+ <message>
+ <location filename="../libs/libmythtv/mythplayercaptionsui.cpp"
line="263"/>
+ <source>Forced Subtitles On</source>
+- <translation type="unfinished">Wł. Wymuszone
Napisy</translation>
++ <translation>Wymuszone Napisy: Włącz</translation>
+ </message>
+ <message>
+ <location filename="../libs/libmythtv/mythplayercaptionsui.cpp"
line="263"/>
+ <source>Forced Subtitles Off</source>
+- <translation type="unfinished">Wył. Wymuszone
Napisy</translation>
++ <translation>Wymuszone Napisy: Wyłącz</translation>
+ </message>
+ <message>
+ <location filename="../libs/libmythtv/mythplayercaptionsui.cpp"
line="306"/>
+ <source>No captions</source>
+ <comment>CC/Teletext/Subtitle text not available</comment>
+- <translation type="unfinished">Brak napisów</translation>
++ <translation>Brak napisów CC/Teletext</translation>
+ </message>
+ </context>
+ <context>
+@@ -13993,43 +13997,43 @@ Proszę Czekać...</translation>
+ <message>
+ <location filename="../libs/libmythtv/mythplayereditorui.cpp"
line="57"/>
+ <source>No Seektable</source>
+- <translation type="unfinished">Brak
Seektable</translation>
++ <translation>Brak Seektable</translation>
+ </message>
+ <message>
+ <location filename="../libs/libmythtv/mythplayereditorui.cpp"
line="79"/>
+ <source>Using previously auto-saved cuts</source>
+- <translation type="unfinished">Używam poprzedniej listy
cięć</translation>
++ <translation>Używam poprzedniej listy cięć</translation>
+ </message>
+ <message>
+ <location filename="../libs/libmythtv/mythplayereditorui.cpp"
line="119"/>
+ <source>Paused</source>
+- <translation type="unfinished"></translation>
++ <translation>Wstrzymany</translation>
+ </message>
+ <message>
+ <location filename="../libs/libmythtv/mythplayereditorui.cpp"
line="232"/>
+ <location filename="../libs/libmythtv/mythplayereditorui.cpp"
line="266"/>
+ <source>New cut added.</source>
+- <translation type="unfinished">Dodano nowe
cięcie.</translation>
++ <translation>Dodano nowe cięcie.</translation>
+ </message>
+ <message>
+ <location filename="../libs/libmythtv/mythplayereditorui.cpp"
line="237"/>
+ <source>Delete</source>
+- <translation type="unfinished"></translation>
++ <translation>Usunięto</translation>
+ </message>
+ <message>
+ <location filename="../libs/libmythtv/mythplayereditorui.cpp"
line="242"/>
+ <source>Undo Changes</source>
+- <translation type="unfinished"></translation>
++ <translation>Odrzuć Zmiany</translation>
+ </message>
+ <message>
+ <location filename="../libs/libmythtv/mythplayereditorui.cpp"
line="268"/>
+ <source>Undo - %1</source>
+- <translation type="unfinished">Cofnij - %1</translation>
++ <translation>Cofnij - %1</translation>
+ </message>
+ <message>
+ <location filename="../libs/libmythtv/mythplayereditorui.cpp"
line="270"/>
+ <source>Redo - %1</source>
+- <translation type="unfinished">Ponownie -
%1</translation>
++ <translation>Ponownie - %1</translation>
+ </message>
+ </context>
+ <context>
+@@ -14037,7 +14041,7 @@ Proszę Czekać...</translation>
+ <message numerus="yes">
+ <location filename="../libs/libmythtv/mythplayeroverlayui.cpp"
line="228"/>
+ <source>%n second(s)</source>
+- <translation type="unfinished">
++ <translation>
+ <numerusform>%n sekunda</numerusform>
+ <numerusform>%n sekundy</numerusform>
+ <numerusform>%n sekund</numerusform>
+@@ -14046,12 +14050,12 @@ Proszę Czekać...</translation>
+ <message>
+ <location filename="../libs/libmythtv/mythplayeroverlayui.cpp"
line="231"/>
+ <source>Still Frame</source>
+- <translation type="unfinished">Zatrzymana
ramka</translation>
++ <translation>Ramka</translation>
+ </message>
+ <message>
+ <location filename="../libs/libmythtv/mythplayeroverlayui.cpp"
line="231"/>
+ <source>%1 of %2</source>
+- <translation type="unfinished">%1 z %2</translation>
++ <translation>%1 z %2</translation>
+ </message>
+ </context>
+ <context>
+@@ -14059,58 +14063,58 @@ Proszę Czekać...</translation>
+ <message>
+ <location filename="../libs/libmythtv/mythplayerui.cpp"
line="31"/>
+ <source>Searching</source>
+- <translation type="unfinished">Wyszukuję</translation>
++ <translation>Wyszukuję</translation>
+ </message>
+ <message>
+ <location filename="../libs/libmythtv/mythplayerui.cpp"
line="215"/>
+ <source>Irrecoverable recorder error</source>
+- <translation type="unfinished">Irrecoverable recorder
error</translation>
++ <translation>Błąd rekordera</translation>
+ </message>
+ <message>
+ <location filename="../libs/libmythtv/mythplayerui.cpp"
line="316"/>
+ <source>Not Flagged</source>
+ <extracomment>The commercials/adverts have not been
flagged</extracomment>
+- <translation type="unfinished">Nie wykrywano
reklam</translation>
++ <translation>Bez wykrywania reklam</translation>
+ </message>
+ <message>
+ <location filename="../libs/libmythtv/mythplayerui.cpp"
line="652"/>
+ <source>Serious error detected in Video Output</source>
+- <translation type="unfinished">Poważny błąd podsystemu
Video</translation>
++ <translation>Poważny błąd podsystemu Video</translation>
+ </message>
+ <message>
+ <location filename="../libs/libmythtv/mythplayerui.cpp"
line="958"/>
+ <source>Error opening remote stream buffer</source>
+- <translation type="unfinished">Problem z otworzeniem zdalnego
bufora</translation>
++ <translation>Problem z otworzeniem bufora danych</translation>
+ </message>
+ <message>
+ <location filename="../libs/libmythtv/mythplayerui.cpp"
line="972"/>
+ <source>Error opening remote stream</source>
+- <translation type="unfinished">Problem z otworzeniem
strumienia</translation>
++ <translation>Problem z otworzeniem strumienia</translation>
+ </message>
+ <message>
+ <location filename="../libs/libmythtv/mythplayerui.cpp"
line="1052"/>
+ <source>Error opening switch program buffer</source>
+- <translation type="unfinished">Error opening switch program
buffer</translation>
++ <translation>Błąd bufora przy przejściu na nowy
program</translation>
+ </message>
+ <message>
+ <location filename="../libs/libmythtv/mythplayerui.cpp"
line="1077"/>
+ <source>Error opening switch program file</source>
+- <translation type="unfinished">Error opening switch program
file</translation>
++ <translation>Błąd otwierania bufora przy przejściu na nowy
program</translation>
+ </message>
+ <message>
+ <location filename="../libs/libmythtv/mythplayerui.cpp"
line="1171"/>
+ <source>Error opening jump program file buffer</source>
+- <translation type="unfinished">Error opening jump program file
buffer</translation>
++ <translation>Błąd bufora przy skoku do nowego
programu</translation>
+ </message>
+ <message>
+ <location filename="../libs/libmythtv/mythplayerui.cpp"
line="1183"/>
+ <source>Error opening jump program file</source>
+- <translation type="unfinished">Error opening jump program
file</translation>
++ <translation>Błąd otwierania bufora przy skoku do nowego
programu</translation>
+ </message>
+ <message>
+ <location filename="../libs/libmythtv/mythplayerui.cpp"
line="1192"/>
+ <source>Error reopening video decoder</source>
+- <translation type="unfinished">Error reopening video
decoder</translation>
++ <translation>Problem z otworzeniem dekodera video</translation>
+ </message>
+ </context>
+ <context>
+@@ -14118,7 +14122,7 @@ Proszę Czekać...</translation>
+ <message>
+ <location filename="../libs/libmythtv/mythplayervideoui.cpp"
line="48"/>
+ <source>Failed to initialize video output</source>
+- <translation type="unfinished">Nie mogę zainicjalizować
video</translation>
++ <translation>Nie mogę zainicjalizować video</translation>
+ </message>
+ </context>
+ <context>
+@@ -14126,7 +14130,7 @@ Proszę Czekać...</translation>
+ <message>
+ <location filename="../libs/libmythtv/mythplayervisualiserui.cpp"
line="106"/>
+ <source>Visualisation Off</source>
+- <translation type="unfinished">Wizualizacja
OFF</translation>
++ <translation>Wizualizacje: Wyłącz</translation>
+ </message>
+ </context>
+ <context>
+@@ -14149,27 +14153,27 @@ Proszę Czekać...</translation>
+ <message>
+ <location filename="../libs/libmythbase/mythpower.cpp"
line="248"/>
+ <source>Restart</source>
+- <translation type="unfinished"></translation>
++ <translation>Przeładuj</translation>
+ </message>
+ <message>
+ <location filename="../libs/libmythbase/mythpower.cpp"
line="249"/>
+ <source>Suspend</source>
+- <translation type="unfinished"></translation>
++ <translation>Uśpij</translation>
+ </message>
+ <message>
+ <location filename="../libs/libmythbase/mythpower.cpp"
line="250"/>
+ <source>Shutdown</source>
+- <translation type="unfinished">Wyłącz</translation>
++ <translation>Wyłącz</translation>
+ </message>
+ <message>
+ <location filename="../libs/libmythbase/mythpower.cpp"
line="251"/>
+ <source>Hibernate</source>
+- <translation type="unfinished"></translation>
++ <translation>Zahibernuj</translation>
+ </message>
+ <message>
+ <location filename="../libs/libmythbase/mythpower.cpp"
line="252"/>
+ <source>HybridSleep</source>
+- <translation type="unfinished"></translation>
++ <translation>Uśpij Hybrydowo</translation>
+ </message>
+ </context>
+ <context>
+@@ -14182,7 +14186,7 @@ Proszę Czekać...</translation>
+ <message>
+ <location
filename="../libs/libmythtv/AirPlay/mythraopconnection.cpp"
line="1621"/>
+ <source>Key is not a RSA private key.</source>
+- <translation type="unfinished"></translation>
++ <translation>Klucz RSA nie jest prywatny.</translation>
+ </message>
+ <message>
+ <location
filename="../libs/libmythtv/AirPlay/mythraopconnection.cpp"
line="1632"/>
+@@ -14303,7 +14307,7 @@ Proszę Czekać...</translation>
+ <location filename="../libs/libmythbase/mythsorthelper.cpp"
line="16"/>
+ <source>^(The |A |An )</source>
+ <comment>Regular Expression for what to ignore when
sorting</comment>
+- <translation type="unfinished">^(The |A |An
)</translation>
++ <translation>^(The |A |An )</translation>
+ </message>
+ </context>
+ <context>
+@@ -14406,22 +14410,22 @@ Proszę Czekać...</translation>
+ <message>
+ <location filename="../libs/libmythtv/mythsystemevent.cpp"
line="441"/>
+ <source>Client connected to master backend</source>
+- <translation>Klient podłączył się do głównego Backend'u
</translation>
++ <translation>Klient podłączył się do głównego
Backend'u</translation>
+ </message>
+ <message>
+ <location filename="../libs/libmythtv/mythsystemevent.cpp"
line="443"/>
+ <source>Client disconnected from master backend</source>
+- <translation>Klient odłączył się od głównego Backend'u
</translation>
++ <translation>Klient odłączył się od głównego
Backend'u</translation>
+ </message>
+ <message>
+ <location filename="../libs/libmythtv/mythsystemevent.cpp"
line="445"/>
+ <source>Slave backend connected to master</source>
+- <translation>Podrzędny Backend podłączył się do głównego
Backend'u </translation>
++ <translation>Podrzędny Backend podłączył się do głównego
Backend'u</translation>
+ </message>
+ <message>
+ <location filename="../libs/libmythtv/mythsystemevent.cpp"
line="447"/>
+ <source>Slave backend disconnected from master</source>
+- <translation>Podrzędny Backend odłączył się od głównego Backend'u
</translation>
++ <translation>Podrzędny Backend odłączył się od głównego
Backend'u</translation>
+ </message>
+ <message>
+ <location filename="../libs/libmythtv/mythsystemevent.cpp"
line="449"/>
+@@ -14446,7 +14450,7 @@ Proszę Czekać...</translation>
+ <message>
+ <location filename="../libs/libmythtv/mythsystemevent.cpp"
line="457"/>
+ <source>Settings cache cleared</source>
+- <translation>Wykasowano cache ustawień </translation>
++ <translation>Wykasowano cache ustawień</translation>
+ </message>
+ <message>
+ <location filename="../libs/libmythtv/mythsystemevent.cpp"
line="459"/>
+@@ -14456,52 +14460,52 @@ Proszę Czekać...</translation>
+ <message>
+ <location filename="../libs/libmythtv/mythsystemevent.cpp"
line="461"/>
+ <source>Keystroke event #1</source>
+- <translation>Kombinajca klawiszy dla zdarzenia #1 </translation>
++ <translation>Kombinajca klawiszy dla zdarzenia #1</translation>
+ </message>
+ <message>
+ <location filename="../libs/libmythtv/mythsystemevent.cpp"
line="463"/>
+ <source>Keystroke event #2</source>
+- <translation>Kombinajca klawiszy dla zdarzenia #2 </translation>
++ <translation>Kombinajca klawiszy dla zdarzenia #2</translation>
+ </message>
+ <message>
+ <location filename="../libs/libmythtv/mythsystemevent.cpp"
line="465"/>
+ <source>Keystroke event #3</source>
+- <translation>Kombinajca klawiszy dla zdarzenia #3 </translation>
++ <translation>Kombinajca klawiszy dla zdarzenia #3</translation>
+ </message>
+ <message>
+ <location filename="../libs/libmythtv/mythsystemevent.cpp"
line="467"/>
+ <source>Keystroke event #4</source>
+- <translation>Kombinajca klawiszy dla zdarzenia #4 </translation>
++ <translation>Kombinajca klawiszy dla zdarzenia #4</translation>
+ </message>
+ <message>
+ <location filename="../libs/libmythtv/mythsystemevent.cpp"
line="469"/>
+ <source>Keystroke event #5</source>
+- <translation>Kombinajca klawiszy dla zdarzenia #5 </translation>
++ <translation>Kombinajca klawiszy dla zdarzenia #5</translation>
+ </message>
+ <message>
+ <location filename="../libs/libmythtv/mythsystemevent.cpp"
line="471"/>
+ <source>Keystroke event #6</source>
+- <translation>Kombinajca klawiszy dla zdarzenia #6 </translation>
++ <translation>Kombinajca klawiszy dla zdarzenia #6</translation>
+ </message>
+ <message>
+ <location filename="../libs/libmythtv/mythsystemevent.cpp"
line="473"/>
+ <source>Keystroke event #7</source>
+- <translation>Kombinajca klawiszy dla zdarzenia #7 </translation>
++ <translation>Kombinajca klawiszy dla zdarzenia #7</translation>
+ </message>
+ <message>
+ <location filename="../libs/libmythtv/mythsystemevent.cpp"
line="475"/>
+ <source>Keystroke event #8</source>
+- <translation>Kombinajca klawiszy dla zdarzenia #8 </translation>
++ <translation>Kombinajca klawiszy dla zdarzenia #8</translation>
+ </message>
+ <message>
+ <location filename="../libs/libmythtv/mythsystemevent.cpp"
line="477"/>
+ <source>Keystroke event #9</source>
+- <translation>Kombinajca klawiszy dla zdarzenia #9 </translation>
++ <translation>Kombinajca klawiszy dla zdarzenia #9</translation>
+ </message>
+ <message>
+ <location filename="../libs/libmythtv/mythsystemevent.cpp"
line="479"/>
+ <source>Keystroke event #10</source>
+- <translation>Kombinajca klawiszy dla zdarzenia #10 </translation>
++ <translation>Kombinajca klawiszy dla zdarzenia #10</translation>
+ </message>
+ <message>
+ <location filename="../libs/libmythtv/mythsystemevent.cpp"
line="481"/>
+@@ -14519,7 +14523,7 @@ Proszę Czekać...</translation>
+ <message>
+ <location filename="../libs/libmyth/mythterminal.cpp"
line="133"/>
+ <source>*** Crashed with status: %1 ***</source>
+- <translation type="unfinished"></translation>
++ <translation>*** Crashed with status: %1 ***</translation>
+ </message>
+ <message>
+ <location filename="../libs/libmyth/mythterminal.cpp"
line="135"/>
+@@ -14613,9 +14617,8 @@ gałąź: %2
+ <context>
+ <name>MythUDPListener</name>
+ <message>
+- <location filename="../libs/libmythui/mythudplistener.cpp"
line="158"/>
+ <source>UDP Listener</source>
+- <translation>UDP Listener</translation>
++ <translation type="vanished">UDP Listener</translation>
+ </message>
+ </context>
+ <context>
+@@ -14680,287 +14683,287 @@ gałąź: %2
+ <message>
+ <location filename="../libs/libmythtv/mythvideoprofile.cpp"
line="727"/>
+ <source>Default (Bilinear)</source>
+- <translation type="unfinished"></translation>
++ <translation>Domyślny (Bilinear)</translation>
+ </message>
+ <message>
+ <location filename="../libs/libmythtv/mythvideoprofile.cpp"
line="728"/>
+ <source>Bicubic</source>
+- <translation type="unfinished"></translation>
++ <translation>Bicubic</translation>
+ </message>
+ <message>
+ <location filename="../libs/libmythtv/mythvideoprofile.cpp"
line="741"/>
+ <source>Standard</source>
+- <translation type="unfinished">Standard</translation>
++ <translation>Standartowy</translation>
+ </message>
+ <message>
+ <location filename="../libs/libmythtv/mythvideoprofile.cpp"
line="742"/>
+ <source>VDPAU acceleration</source>
+- <translation type="unfinished"></translation>
++ <translation>VDPAU</translation>
+ </message>
+ <message>
+ <location filename="../libs/libmythtv/mythvideoprofile.cpp"
line="743"/>
+ <source>VDPAU acceleration (decode only)</source>
+- <translation type="unfinished"></translation>
++ <translation>VDPAU (tylko dekodowanie)</translation>
+ </message>
+ <message>
+ <location filename="../libs/libmythtv/mythvideoprofile.cpp"
line="744"/>
+ <source>VAAPI acceleration</source>
+- <translation type="unfinished"></translation>
++ <translation>VAAPI</translation>
+ </message>
+ <message>
+ <location filename="../libs/libmythtv/mythvideoprofile.cpp"
line="745"/>
+ <source>VAAPI acceleration (decode only)</source>
+- <translation type="unfinished"></translation>
++ <translation>VAAPI (tylko dekodowanie)</translation>
+ </message>
+ <message>
+ <location filename="../libs/libmythtv/mythvideoprofile.cpp"
line="746"/>
+ <source>Windows hardware acceleration</source>
+- <translation type="unfinished"></translation>
++ <translation>Windows</translation>
+ </message>
+ <message>
+ <location filename="../libs/libmythtv/mythvideoprofile.cpp"
line="747"/>
+ <source>Android MediaCodec acceleration</source>
+- <translation type="unfinished"></translation>
++ <translation>Android MediaCodec</translation>
+ </message>
+ <message>
+ <location filename="../libs/libmythtv/mythvideoprofile.cpp"
line="748"/>
+ <source>Android MediaCodec acceleration (decode only)</source>
+- <translation type="unfinished"></translation>
++ <translation>Android MediaCodec (tylko dekodowanie)</translation>
+ </message>
+ <message>
+ <location filename="../libs/libmythtv/mythvideoprofile.cpp"
line="749"/>
+ <source>NVIDIA NVDEC acceleration</source>
+- <translation type="unfinished"></translation>
++ <translation>NVDEC</translation>
+ </message>
+ <message>
+ <location filename="../libs/libmythtv/mythvideoprofile.cpp"
line="750"/>
+ <source>NVIDIA NVDEC acceleration (decode only)</source>
+- <translation type="unfinished"></translation>
++ <translation>NVDEC (tylko dekodowanie)</translation>
+ </message>
+ <message>
+ <location filename="../libs/libmythtv/mythvideoprofile.cpp"
line="751"/>
+ <source>VideoToolbox acceleration</source>
+- <translation type="unfinished"></translation>
++ <translation>macOS VideoToolbox</translation>
+ </message>
+ <message>
+ <location filename="../libs/libmythtv/mythvideoprofile.cpp"
line="752"/>
+ <source>VideoToolbox acceleration (decode only)</source>
+- <translation type="unfinished"></translation>
++ <translation>macOS VideoToolbox (tylko dekodowanie)</translation>
+ </message>
+ <message>
+ <location filename="../libs/libmythtv/mythvideoprofile.cpp"
line="753"/>
+ <source>V4L2 acceleration</source>
+- <translation type="unfinished"></translation>
++ <translation>V4L2</translation>
+ </message>
+ <message>
+ <location filename="../libs/libmythtv/mythvideoprofile.cpp"
line="754"/>
+ <source>V4L2 acceleration (decode only)</source>
+- <translation type="unfinished"></translation>
++ <translation>V4L2 (tylko dekodowanie)</translation>
+ </message>
+ <message>
+ <location filename="../libs/libmythtv/mythvideoprofile.cpp"
line="755"/>
+ <source>MMAL acceleration</source>
+- <translation type="unfinished"></translation>
++ <translation>MMAL</translation>
+ </message>
+ <message>
+ <location filename="../libs/libmythtv/mythvideoprofile.cpp"
line="756"/>
+ <source>MMAL acceleration (decode only)</source>
+- <translation type="unfinished"></translation>
++ <translation>MMAL (tylko dekodowanie)</translation>
+ </message>
+ <message>
+ <location filename="../libs/libmythtv/mythvideoprofile.cpp"
line="757"/>
+ <source>DRM PRIME acceleration</source>
+- <translation type="unfinished"></translation>
++ <translation>DRM Prime</translation>
+ </message>
+ <message>
+ <location filename="../libs/libmythtv/mythvideoprofile.cpp"
line="770"/>
+ <source>Processing method used to decode video.</source>
+- <translation type="unfinished"></translation>
++ <translation>Technologia i API używane do dekodowania
video.</translation>
+ </message>
+ <message>
+ <location filename="../libs/libmythtv/mythvideoprofile.cpp"
line="778"/>
+ <source>Standard will use the FFmpeg library for software
decoding.</source>
+- <translation type="unfinished"></translation>
++ <translation>Standard do dekodowania video bedzie używało biblioteki
FFMPEG.</translation>
+ </message>
+ <message>
+ <location filename="../libs/libmythtv/mythvideoprofile.cpp"
line="782"/>
+ <source>VDPAU will attempt to use the graphics hardware to accelerate
video decoding.</source>
+- <translation type="unfinished"></translation>
++ <translation>VDPAU do dekodowania video będzie używało technologii
VDPAU.</translation>
+ </message>
+ <message>
+ <location filename="../libs/libmythtv/mythvideoprofile.cpp"
line="789"/>
+ <source>VAAPI will attempt to use the graphics hardware to accelerate
video decoding and playback.</source>
+- <translation type="unfinished"></translation>
++ <translation>VAAPI do dekodowania video będzie używało technologii
VAAPI.</translation>
+ </message>
+ <message>
+ <location filename="../libs/libmythtv/mythvideoprofile.cpp"
line="796"/>
+ <source>DXVA2 will use the graphics hardware to accelerate video decoding
and playback. </source>
+- <translation type="unfinished"></translation>
++ <translation>DXVA2 do dekodowania video będzie używało technologii DXVA2.
</translation>
+ </message>
+ <message>
+ <location filename="../libs/libmythtv/mythvideoprofile.cpp"
line="803"/>
+ <source>Mediacodec will use Android graphics hardware to accelerate video
decoding and playback. </source>
+- <translation type="unfinished"></translation>
++ <translation>Mediacodec do dekodowania video będzie używało technologii
Mediacodec. </translation>
+ </message>
+ <message>
+ <location filename="../libs/libmythtv/mythvideoprofile.cpp"
line="810"/>
+ <source>Nvdec uses the NVDEC API to accelerate video decoding and playback
with NVIDIA Graphics Adapters. </source>
+- <translation type="unfinished"></translation>
++ <translation>NVDEC do dekodowania video będzie używało technologii NVDEC.
</translation>
+ </message>
+ <message>
+ <location filename="../libs/libmythtv/mythvideoprofile.cpp"
line="816"/>
+ <source>The VideoToolbox library is used to accelerate video decoding.
</source>
+- <translation type="unfinished"></translation>
++ <translation>VideoToolBox do dekodowania video będzie używało technologii
VTB. </translation>
+ </message>
+ <message>
+ <location filename="../libs/libmythtv/mythvideoprofile.cpp"
line="820"/>
+ <source>MMAL is used to accelerated video decoding (Raspberry Pi only).
</source>
+- <translation type="unfinished"></translation>
++ <translation>MMAL do dekodowania video będzie używało technologii MMAL.
</translation>
+ </message>
+ <message>
+ <location filename="../libs/libmythtv/mythvideoprofile.cpp"
line="828"/>
+ <source>Video4Linux codecs are used to accelerate video decoding on
supported platforms. </source>
+- <translation type="unfinished"></translation>
++ <translation>V4L2 do dekodowania video będzie używało technologii
Video4Linux. </translation>
+ </message>
+ <message>
+ <location filename="../libs/libmythtv/mythvideoprofile.cpp"
line="835"/>
+ <source>DRM-PRIME decoders are used to accelerate video decoding on
supported platforms. </source>
+- <translation type="unfinished"></translation>
++ <translation>DRM-PRIME do dekodowania video będzie używało technologii
DRM-PRIME. </translation>
+ </message>
+ <message>
+ <location filename="../libs/libmythtv/mythvideoprofile.cpp"
line="842"/>
+ <source>The decoder will transfer frames back to system memory which will
significantly reduce performance but may allow other functionality to be used (such as
automatic letterbox detection). </source>
+- <translation type="unfinished"></translation>
++ <translation>Dekoder video będzie przekazywał zdekodowany strumień video
ponownie do pamięci systemowej co znacznie zredukuje wydajność oraz zwiększy zużycie
zasobów systemowych. </translation>
+ </message>
+ <message>
+ <location filename="../libs/libmythtv/mythvideoprofile.cpp"
line="855"/>
+ <source>OpenGL</source>
+- <translation type="unfinished">OpenGL</translation>
++ <translation>OpenGL</translation>
+ </message>
+ <message>
+ <location filename="../libs/libmythtv/mythvideoprofile.cpp"
line="856"/>
+ <source>OpenGL YV12</source>
+- <translation type="unfinished"></translation>
++ <translation>OpenGL YV12</translation>
+ </message>
+ <message>
+ <location filename="../libs/libmythtv/mythvideoprofile.cpp"
line="857"/>
+ <source>OpenGL Hardware</source>
+- <translation type="unfinished"></translation>
++ <translation>Sprzętowe OpenGL</translation>
+ </message>
+ <message>
+ <location filename="../libs/libmythtv/mythvideoprofile.cpp"
line="858"/>
+ <source>Vulkan</source>
+- <translation type="unfinished"></translation>
++ <translation>Vulkan</translation>
+ </message>
+ <message>
+ <location filename="../libs/libmythtv/mythvideoprofile.cpp"
line="1083"/>
+ <source>OpenGL High Quality</source>
+ <comment>Sample: OpenGL high quality</comment>
+- <translation type="unfinished"></translation>
++ <translation>OpenGL: wysoka jakość</translation>
+ </message>
+ <message>
+ <location filename="../libs/libmythtv/mythvideoprofile.cpp"
line="1093"/>
+ <source>OpenGL Normal</source>
+ <comment>Sample: OpenGL medium quality</comment>
+- <translation type="unfinished"></translation>
++ <translation>OpenGL: średnia jakość</translation>
+ </message>
+ <message>
+ <location filename="../libs/libmythtv/mythvideoprofile.cpp"
line="1102"/>
+ <source>OpenGL Slim</source>
+ <comment>Sample: OpenGL low power GPU</comment>
+- <translation type="unfinished"></translation>
++ <translation>OpenGL: słabe GPU</translation>
+ </message>
+ <message>
+ <location filename="../libs/libmythtv/mythvideoprofile.cpp"
line="1113"/>
+ <source>VAAPI Normal</source>
+ <comment>Sample: VAAPI average quality</comment>
+- <translation type="unfinished"></translation>
++ <translation>VAAPI</translation>
+ </message>
+ <message>
+ <location filename="../libs/libmythtv/mythvideoprofile.cpp"
line="1127"/>
+ <source>VDPAU Normal</source>
+ <comment>Sample: VDPAU medium quality</comment>
+- <translation type="unfinished"></translation>
++ <translation>VDPAU</translation>
+ </message>
+ <message>
+ <location filename="../libs/libmythtv/mythvideoprofile.cpp"
line="1141"/>
+ <source>MediaCodec Normal</source>
+ <comment>Sample: MediaCodec Normal</comment>
+- <translation type="unfinished"></translation>
++ <translation>MediaCodec</translation>
+ </message>
+ <message>
+ <location filename="../libs/libmythtv/mythvideoprofile.cpp"
line="1157"/>
+ <source>NVDEC Normal</source>
+ <comment>Sample: NVDEC Normal</comment>
+- <translation type="unfinished"></translation>
++ <translation>NVDEC</translation>
+ </message>
+ <message>
+ <location filename="../libs/libmythtv/mythvideoprofile.cpp"
line="1170"/>
+ <source>VideoToolBox Normal</source>
+ <comment>Sample: VideoToolBox Normal</comment>
+- <translation type="unfinished"></translation>
++ <translation>VideoToolBox</translation>
+ </message>
+ <message>
+ <location filename="../libs/libmythtv/mythvideoprofile.cpp"
line="1184"/>
+ <source>MMAL</source>
+ <comment>Sample: MMAL</comment>
+- <translation type="unfinished"></translation>
++ <translation>MMAL</translation>
+ </message>
+ <message>
+ <location filename="../libs/libmythtv/mythvideoprofile.cpp"
line="1198"/>
+ <source>V4L2 Codecs</source>
+ <comment>Sample: V4L2</comment>
+- <translation type="unfinished"></translation>
++ <translation>V4L2 Codec</translation>
+ </message>
+ <message>
+ <location filename="../libs/libmythtv/mythvideoprofile.cpp"
line="1224"/>
+ <source>Render video offscreen. Used internally.</source>
+- <translation type="unfinished"></translation>
++ <translation>Renderuj video off-screen (potrzeby
wewnętrzne).</translation>
+ </message>
+ <message>
+ <location filename="../libs/libmythtv/mythvideoprofile.cpp"
line="1228"/>
+ <source>Windows video renderer based on Direct3D. Requires video card
compatible with Direct3D 9. This is the preferred renderer for current Windows
systems.</source>
+- <translation type="unfinished"></translation>
++ <translation>Silnik rysujący bazujący na Direct3D. Wynaga karty video
obsługującej Direct3D9. Preferowany na platformie Windows.</translation>
+ </message>
+ <message>
+ <location filename="../libs/libmythtv/mythvideoprofile.cpp"
line="1235"/>
+ <source>Video is converted to an intermediate format by the CPU (YUV2)
before OpenGL is used for color conversion, scaling, picture controls and optionally
deinterlacing. Processing is balanced between the CPU and GPU.</source>
+- <translation type="unfinished"></translation>
++ <translation>Przed konwersją kolorów, skalowaniam, usuwaniem przeplotu za
pomocą OpenGL, strumień video będzie konwertowany za pomocą CPU do pośredniego formatu
YUV2. Ta opcja zapewnia balans między wykorzystaniem CPU i obciążeniem
GPU.</translation>
+ </message>
+ <message>
+ <location filename="../libs/libmythtv/mythvideoprofile.cpp"
line="1243"/>
+ <source>OpenGL is used for all color conversion, scaling, picture controls
and optionally deinterlacing. CPU load is low but a slightly more powerful GPU is needed
for deinterlacing.</source>
+- <translation type="unfinished"></translation>
++ <translation>Konwersja kolorów, skalowanie, usuwanie przeplotu za pomocą
OpenGL. Ta opcja zapewnia minimalne wykorzystanie CPU i maksymalne obciążenie
GPU.</translation>
+ </message>
+ <message>
+ <location filename="../libs/libmythtv/mythvideoprofile.cpp"
line="1249"/>
+ <source>This video renderer is used by hardware decoders to display frames
using OpenGL.</source>
+- <translation type="unfinished"></translation>
++ <translation>Wykorzystuje sprzętowe dekodery video do dekodowania oraz
OpenGL do rysowania, skalowania oraz usuwania przeplotu.</translation>
+ </message>
+ <message>
+ <location filename="../libs/libmythtv/mythvideoprofile.cpp"
line="1251"/>
+ <source>Video rendering method</source>
+- <translation type="unfinished"></translation>
++ <translation>Sposób wyświetlania video</translation>
+ </message>
+ <message>
+ <location filename="../libs/libmythtv/mythvideoprofile.cpp"
line="1306"/>
+ <source>None</source>
+- <translation type="unfinished"></translation>
++ <translation>Żaden</translation>
+ </message>
+ <message>
+ <location filename="../libs/libmythtv/mythvideoprofile.cpp"
line="1307"/>
+ <source>Low quality</source>
+- <translation type="unfinished"></translation>
++ <translation>Niska Jakość</translation>
+ </message>
+ <message>
+ <location filename="../libs/libmythtv/mythvideoprofile.cpp"
line="1308"/>
+ <source>Medium quality</source>
+- <translation type="unfinished"></translation>
++ <translation>Średnia Jakość</translation>
+ </message>
+ <message>
+ <location filename="../libs/libmythtv/mythvideoprofile.cpp"
line="1309"/>
+ <source>High quality</source>
+- <translation type="unfinished"></translation>
++ <translation>Wysoka Jakość</translation>
+ </message>
+ </context>
+ <context>
+@@ -15100,7 +15103,7 @@ gałąź: %2
+ <context>
+ <name>NetworkControl</name>
+ <message>
+- <location filename="../programs/mythfrontend/networkcontrol.cpp"
line="1556"/>
++ <location filename="../programs/mythfrontend/networkcontrol.cpp"
line="1602"/>
+ <source>Network Control</source>
+ <translation>Zdalne Sterowanie</translation>
+ </message>
+@@ -15170,12 +15173,12 @@ gałąź: %2
+ <message>
+ <location filename="../programs/mythfrontend/globalsettings.cpp"
line="1721"/>
+ <source>Visualiser for audio only playback</source>
+- <translation type="unfinished"></translation>
++ <translation>Wizualizacje dla audio</translation>
+ </message>
+ <message>
+ <location filename="../programs/mythfrontend/globalsettings.cpp"
line="1722"/>
+ <source>Select a visualisation to use when there is no video. Defaults to
none.</source>
+- <translation type="unfinished"></translation>
++ <translation>Wybierz typ wizualizacji gdy odtwarzane jest tylko audio.
Domyślnie: żadna.</translation>
+ </message>
+ <message>
+ <location filename="../programs/mythfrontend/globalsettings.cpp"
line="1735"/>
+@@ -15261,32 +15264,32 @@ gałąź: %2
+ <message>
+ <location filename="../libs/libmythtv/channelscan/paneatsc.h"
line="34"/>
+ <source>First Channel</source>
+- <translation type="unfinished"></translation>
++ <translation>Pierwszy Kanał</translation>
+ </message>
+ <message>
+ <location filename="../libs/libmythtv/channelscan/paneatsc.h"
line="35"/>
+ <source>Start scanning at this channel.</source>
+- <translation type="unfinished"></translation>
++ <translation>Rozpocznij wyszukiwanie od tego kanału.</translation>
+ </message>
+ <message>
+ <location filename="../libs/libmythtv/channelscan/paneatsc.h"
line="38"/>
+ <source>Last Channel</source>
+- <translation type="unfinished"></translation>
++ <translation>Ostatni Kanał</translation>
+ </message>
+ <message>
+ <location filename="../libs/libmythtv/channelscan/paneatsc.h"
line="39"/>
+ <source>Stop scanning after this channel.</source>
+- <translation type="unfinished"></translation>
++ <translation>Zatrzymaj wyszukiwanie po tym kanale.</translation>
+ </message>
+ <message>
+ <location filename="../libs/libmythtv/channelscan/paneatsc.h"
line="42"/>
+ <source>Channel Count</source>
+- <translation type="unfinished"></translation>
++ <translation>Liczba Kanałów</translation>
+ </message>
+ <message>
+ <location filename="../libs/libmythtv/channelscan/paneatsc.h"
line="43"/>
+ <source>Total number of channels to scan.</source>
+- <translation type="unfinished"></translation>
++ <translation>Całkowita liczba kanałów do wyszukania.</translation>
+ </message>
+ <message>
+ <location filename="../libs/libmythtv/channelscan/paneatsc.h"
line="47"/>
+@@ -15829,7 +15832,7 @@ gałąź: %2
+ <message>
+ <location filename="../programs/mythfrontend/playbackbox.cpp"
line="2970"/>
+ <source>Custom Edit</source>
+- <translation>Zaawansowane...</translation>
++ <translation>Zaawansowane</translation>
+ </message>
+ <message>
+ <location filename="../programs/mythfrontend/playbackbox.cpp"
line="3039"/>
+@@ -16062,7 +16065,8 @@ Na pewno chcesz skasować:</translation>
+ <location filename="../programs/mythfrontend/playbackbox.cpp"
line="2619"/>
+ <source>Recording Available
+ </source>
+- <translation>Nagranie jest dostępne</translation>
++ <translation>Nagranie jest dostępne
++</translation>
+ </message>
+ <message>
+ <location filename="../programs/mythfrontend/playbackbox.cpp"
line="2281"/>
+@@ -16132,7 +16136,8 @@ Na pewno chcesz skasować:</translation>
+ <location filename="../programs/mythfrontend/playbackbox.cpp"
line="2650"/>
+ <source>Recording Unavailable
+ </source>
+- <translation>Nagranie niedostępne</translation>
++ <translation>Nagranie niedostępne
++</translation>
+ </message>
+ <message>
+ <location filename="../programs/mythfrontend/playbackbox.cpp"
line="2628"/>
+@@ -16364,57 +16369,57 @@ name cannot be blank.</source>
+ <message>
+ <location filename="../programs/mythfrontend/globalsettings.cpp"
line="756"/>
+ <source> Valid formats for the setting are [nnnn - nnnn], [> nnnn],
[>= nnnn], [< nnnn], [<= nnnn]. Also [nnnn] for an exact match. You
can also use more than 1 expression with & between.</source>
+- <translation type="unfinished"></translation>
++ <translation> Deklarowany format to: [nnnn - nnnn], [> nnnn],
[>= nnnn], [< nnnn], [<= nnnn]. Także [nnnn] dla wyspecyfikowania
dokładnej wartości. Dla więcej niż jednego wyspecyfikowania użyj & jako
łącznika.</translation>
+ </message>
+ <message>
+ <location filename="../programs/mythfrontend/globalsettings.cpp"
line="760"/>
+ <source>Numbers can have up to 3 decimal places.</source>
+- <translation type="unfinished"></translation>
++ <translation>Wartości liczbowe mogą mieć do 3 miejsc po
przecinku.</translation>
+ </message>
+ <message>
+ <location filename="../programs/mythfrontend/globalsettings.cpp"
line="761"/>
+ <source>Width Range</source>
+- <translation type="unfinished"></translation>
++ <translation>Zakres szerokości</translation>
+ </message>
+ <message>
+ <location filename="../programs/mythfrontend/globalsettings.cpp"
line="762"/>
+ <source>Optional setting to restrict this profile to videos with a
selected width range. </source>
+- <translation type="unfinished"></translation>
++ <translation>Ustawienie opcjonalne. Ogranicza szerokość video dla którego
będzie obowiązywała reguła. </translation>
+ </message>
+ <message>
+ <location filename="../programs/mythfrontend/globalsettings.cpp"
line="764"/>
+ <source>Height Range</source>
+- <translation type="unfinished"></translation>
++ <translation>Zakres wysokości</translation>
+ </message>
+ <message>
+ <location filename="../programs/mythfrontend/globalsettings.cpp"
line="765"/>
+ <source>Optional setting to restrict this profile to videos with a
selected height range. </source>
+- <translation type="unfinished"></translation>
++ <translation>Ustawienie opcjonalne. Ogranicza wysokość video dla którego
będzie obowiązywała reguła. </translation>
+ </message>
+ <message>
+ <location filename="../programs/mythfrontend/globalsettings.cpp"
line="767"/>
+ <source>Video Formats</source>
+- <translation type="unfinished"></translation>
++ <translation>Formaty video</translation>
+ </message>
+ <message>
+ <location filename="../programs/mythfrontend/globalsettings.cpp"
line="768"/>
+ <source>All formats</source>
+- <translation type="unfinished"></translation>
++ <translation>Wszystkie formaty</translation>
+ </message>
+ <message>
+ <location filename="../programs/mythfrontend/globalsettings.cpp"
line="776"/>
+ <source>Optional setting to restrict this profile to a video format or
formats. You can also type in a format or several formats separated by space. To find the
format for a video use ffprobe and look at the word after "Video:". Also
you can get a complete list of available formats with ffmpeg -codecs.</source>
+- <translation type="unfinished"></translation>
++ <translation>Ustawienie opcjonalne. Pozwala na ograniczenie formatów video
dla których reguła będzie obowiązywała. Więcej niż jeden format powinien być oddzielony
spacją. Aby ustalić format video użyj ffprobe. Lista wspieranych formatów video jest
zwracana np. przez rozkaz ffmeg -codecs.</translation>
+ </message>
+ <message>
+ <location filename="../programs/mythfrontend/globalsettings.cpp"
line="782"/>
+ <source>Frame Rate Range</source>
+- <translation type="unfinished"></translation>
++ <translation>Zakres odświerzania</translation>
+ </message>
+ <message>
+ <location filename="../programs/mythfrontend/globalsettings.cpp"
line="783"/>
+ <source>Optional setting to restrict this profile to a range of frame
rates. </source>
+- <translation type="unfinished"></translation>
++ <translation>Ustawienie opcjonalne. Pozwala na ograniczenie zakresu
odświeżania (framerate) dla reguły. </translation>
+ </message>
+ <message>
+ <location filename="../programs/mythfrontend/globalsettings.cpp"
line="785"/>
+@@ -16429,82 +16434,82 @@ name cannot be blank.</source>
+ <message>
+ <location filename="../programs/mythfrontend/globalsettings.cpp"
line="789"/>
+ <source>Video scaler</source>
+- <translation type="unfinished"></translation>
++ <translation>Skaler video</translation>
+ </message>
+ <message>
+ <location filename="../programs/mythfrontend/globalsettings.cpp"
line="794"/>
+ <source>Prefer OpenGL deinterlacers</source>
+- <translation type="unfinished"></translation>
++ <translation>Preferuj OpenGL</translation>
+ </message>
+ <message>
+ <location filename="../programs/mythfrontend/globalsettings.cpp"
line="795"/>
+ <source>Prefer driver deinterlacers</source>
+- <translation type="unfinished"></translation>
++ <translation>Preferuj sterownk karty</translation>
+ </message>
+ <message>
+ <location filename="../programs/mythfrontend/globalsettings.cpp"
line="796"/>
+ <source>If possible, use GLSL shaders for deinterlacing in preference to
software deinterlacers. Note: Even if disabled, shaders may be used if deinterlacing is
enabled but software deinterlacers are unavailable.</source>
+- <translation type="unfinished"></translation>
++ <translation>Jeśli możliwe - do usuwania przeplotu preferuj GLSL shaders
zamiast programowego usuwania przeplotu. Jeśli programowe usuwanie przeplotu nie będzie
możliwe - GLSL zostanie użyte (nawej jeśli ta opcja jest wyłączona).</translation>
+ </message>
+ <message>
+ <location filename="../programs/mythfrontend/globalsettings.cpp"
line="800"/>
+ <source>If possible, use hardware drivers (e.g. VDPAU, VAAPI) for
deinterlacing in preference to software and OpenGL deinterlacers. Note: Even if disabled,
driver deinterlacers may be used if deinterlacing is enabled but other deinterlacers are
unavailable.</source>
+- <translation type="unfinished"></translation>
++ <translation>Jeśli możliwe - do usuwania przeplotu preferuj sterowniki
sprzętowe zamiast programowego usuwania przeplotu. Jeśli inne niż sprzętowe usuwanie
przeplotu nie będzie możliwe - zostanie użyte usuwanie sprzętowe (nawej jeśli ta opcja
jest wyłączona).</translation>
+ </message>
+ <message>
+ <location filename="../programs/mythfrontend/globalsettings.cpp"
line="806"/>
+ <source>Deinterlacer quality (single rate)</source>
+- <translation type="unfinished"></translation>
++ <translation>Jakość usuwania przeplotu (normalne
odświerzanie)</translation>
+ </message>
+ <message>
+ <location filename="../programs/mythfrontend/globalsettings.cpp"
line="809"/>
+ <source>Deinterlacer quality (double rate)</source>
+- <translation type="unfinished"></translation>
++ <translation>Jakość usuwania przeplotu (podwójne
odświerzanie)</translation>
+ </message>
+ <message>
+ <location filename="../programs/mythfrontend/globalsettings.cpp"
line="818"/>
+ <source>Set the quality for single rate deinterlacing. Use
'None' to disable. Higher quality deinterlacers require more system
processing and resources. Software deinterlacers are used by default unless OpenGL or
driver preferences are enabled.</source>
+- <translation type="unfinished"></translation>
++ <translation>Ustawia jakość dla normalnego (single framerate)
odświerzania. Ustaw na 'Żaden' aby wylączyć. Użycie 'Wysoka
jakość' wymaga więcej zasobów systemowych. Domyślnie używane jest programowe
usuwanie przeplotu - chyba że wybrane jest usuwanie przez OpenGL lub
sprzętowo.</translation>
+ </message>
+ <message>
+ <location filename="../programs/mythfrontend/globalsettings.cpp"
line="823"/>
+ <source>Set the quality for double rate deinterlacing - which is only used
if the display can support the required frame rate. Use 'None' to
disable double rate deinterlacing.</source>
+- <translation type="unfinished"></translation>
++ <translation>Ustawia jakość dla podwójengo odświerzania. Ustaw na
'Żaden' aby wylączyć. Użycie 'Wysoka jakość' wymaga
więcej zasobów systemowych. Domyślnie używane jest programowe usuwanie przeplotu - chyba
że wybrane jest usuwanie przez OpenGL lub sprzętowo.</translation>
+ </message>
+ <message>
+ <location filename="../programs/mythfrontend/globalsettings.cpp"
line="847"/>
+ <source>When unchecked the deblocking loopfilter will be disabled.
</source>
+- <translation type="unfinished"></translation>
++ <translation>Jeśli nie zaznaczone - deblocking loopfilter będzie
wyłączony. </translation>
+ </message>
+ <message>
+ <location filename="../programs/mythfrontend/globalsettings.cpp"
line="848"/>
+ <source>Disabling will significantly reduce the load on the CPU for
software decoding of H.264 and HEVC material but may significantly reduce video
quality.</source>
+- <translation type="unfinished"></translation>
++ <translation>Wyłączenie deblocking loopfilter może znacząco zredukować
obciążenie CPU dla programowego dekodowania video.kosztem obniżenia jakości
video.</translation>
+ </message>
+ <message>
+ <location filename="../programs/mythfrontend/globalsettings.cpp"
line="851"/>
+ <source>The default scaler provides good quality in the majority of
situations. Higher quality scalers may offer some benefit when scaling very low resolution
material but may not be as fast.</source>
+- <translation type="unfinished"></translation>
++ <translation>Domyśly skaler zapewnia dobrą jakośc video dla większości
materiałów video. Wysokiej jakości skaler video zapewnia wyższą jakość kosztem większego
zużycia zasobów.</translation>
+ </message>
+ <message>
+ <location filename="../programs/mythfrontend/globalsettings.cpp"
line="1011"/>
+ <source>Invalid width specification(%1), discarded</source>
+- <translation type="unfinished"></translation>
++ <translation>%1 jest błędnym ustawieniem szerokości.
Pomnięto</translation>
+ </message>
+ <message>
+ <location filename="../programs/mythfrontend/globalsettings.cpp"
line="1025"/>
+ <source>Invalid height specification(%1), discarded</source>
+- <translation type="unfinished"></translation>
++ <translation>%1 jest błędnym ustawieniem wysokości.
Pomnięto</translation>
+ </message>
+ <message>
+ <location filename="../programs/mythfrontend/globalsettings.cpp"
line="1039"/>
+ <source>Invalid frame rate specification(%1), discarded</source>
+- <translation type="unfinished"></translation>
++ <translation>%1 jest błędnym ustawieniem odświeżania.
Pomnięto</translation>
+ </message>
+ <message>
+ <location filename="../programs/mythfrontend/globalsettings.cpp"
line="1222"/>
+ <source>framerate</source>
+- <translation type="unfinished"></translation>
++ <translation>Odświeżanie</translation>
+ </message>
+ <message>
+ <source>Video Renderer</source>
+@@ -16589,7 +16594,7 @@ name cannot be blank.</source>
+ <message>
+ <location filename="../programs/mythfrontend/globalsettings.cpp"
line="842"/>
+ <source> Multithreaded decoding disabled-only one CPU will be used, please
recompile with --enable-ffmpeg-pthreads to enable.</source>
+- <translation>Dekodowanie wielowątkowe nie jest dostępne - używany będzie
tylko jeden procesor, w celu włączenia proszę ponownie skompilować z
--enable-ffmpeg-pthreads.</translation>
++ <translation> Dekodowanie wielowątkowe nie jest dostępne - używany będzie
tylko jeden procesor, w celu włączenia proszę ponownie skompilować z
--enable-ffmpeg-pthreads.</translation>
+ </message>
+ <message>
+ <source>Example custom filter list:
'ivtc,denoise3d'</source>
+@@ -16628,19 +16633,19 @@ name cannot be blank.</source>
+ <location filename="../programs/mythfrontend/globalsettings.cpp"
line="1213"/>
+ <source>Width</source>
+ <comment>video formats</comment>
+- <translation type="unfinished">Szerokość</translation>
++ <translation>Szerokość</translation>
+ </message>
+ <message>
+ <location filename="../programs/mythfrontend/globalsettings.cpp"
line="1216"/>
+ <source>Height</source>
+ <comment>video formats</comment>
+- <translation type="unfinished">Wysokość</translation>
++ <translation>Wysokość</translation>
+ </message>
+ <message>
+ <location filename="../programs/mythfrontend/globalsettings.cpp"
line="1219"/>
+ <source>Formats</source>
+ <comment>video formats</comment>
+- <translation type="unfinished"></translation>
++ <translation>Formaty video</translation>
+ </message>
+ <message>
+ <location filename="../programs/mythfrontend/globalsettings.cpp"
line="1228"/>
+@@ -16659,32 +16664,32 @@ name cannot be blank.</source>
+ <message>
+ <location filename="../programs/mythfrontend/globalsettings.cpp"
line="64"/>
+ <source>Audio read ahead (ms)</source>
+- <translation type="unfinished"></translation>
++ <translation>Bufor audio (ms)</translation>
+ </message>
+ <message>
+ <location filename="../programs/mythfrontend/globalsettings.cpp"
line="68"/>
+ <source>Increase this value if audio cuts out frequently. This is more
likely to occur when adjusting audio sync to a negative value. If using high negative
audio sync values you may need to set a large value here. Default is 100.</source>
+- <translation type="unfinished"></translation>
++ <translation>Zwiększ tę wartość jeśli audio ma częste przerwy podczas
odtwarzania. Domyślna wartość to 100.</translation>
+ </message>
+ <message>
+ <location filename="../programs/mythfrontend/globalsettings.cpp"
line="79"/>
+ <source>Primary colourspace conversion</source>
+- <translation type="unfinished"></translation>
++ <translation>Metoda konwersji kolorów</translation>
+ </message>
+ <message>
+ <location filename="../programs/mythfrontend/globalsettings.cpp"
line="83"/>
+ <source>Converting between different primary colourspaces incurs a small
performance penalty but in some situations the difference in output is negligible. The
default ('Auto') behaviour is to only enforce this conversion when there
is a significant difference between source colourspace primaries and the
display.</source>
+- <translation type="unfinished"></translation>
++ <translation>Konwersja colourspace konsumuje niewielką ilość zasobów
zazwycznaj z mało zauważalnym efektem. Domyślne 'Auto' powoduje iż
konwersja ma miejsce tylko wtedy gdy różnica colourspace między video i TV jest
wystarczająco duża.</translation>
+ </message>
+ <message>
+ <location filename="../programs/mythfrontend/globalsettings.cpp"
line="95"/>
+ <source>Enable Chroma Upsampling Filter when deinterlacing</source>
+- <translation type="unfinished"></translation>
++ <translation>Realizuj Chroma Upsampling przy usuwaniu
przeplotu</translation>
+ </message>
+ <message>
+ <location filename="../programs/mythfrontend/globalsettings.cpp"
line="96"/>
+ <source>The 'Chroma upsampling error' affects the
quality of interlaced material for the most common, standard video formats and results in
jagged/indistinct edges to brightly coloured areas of video. This filter attempts to fix
the problem in the OpenGL shaders. It adds a small amount of overhead to video rendering
but may not be suitable in all cases. Enabled by default.</source>
+- <translation type="unfinished"></translation>
++ <translation>Proces Chroma upsampling pozwala na usunięcie artefaktów
usuwania przeplotu na kolorowych krawędziach obrazu. Proces używa do tej funkcji OpenGL
shaders.</translation>
+ </message>
+ <message>
+ <location filename="../programs/mythfrontend/globalsettings.cpp"
line="138"/>
+@@ -16706,7 +16711,7 @@ name cannot be blank.</source>
+ <message>
+ <location filename="../programs/mythfrontend/globalsettings.cpp"
line="142"/>
+ <source>Experimental: Enable this setting to use FFmpeg's native
demuxer. Try this when encountering playback issues.</source>
+- <translation type="unfinished"></translation>
++ <translation>Ekperymentalne: używaj wbudowanego w FFMPEG
demux'era.</translation>
+ </message>
+ <message>
+ <location filename="../programs/mythfrontend/globalsettings.cpp"
line="152"/>
+@@ -16746,17 +16751,17 @@ name cannot be blank.</source>
+ <message>
+ <location filename="../programs/mythfrontend/globalsettings.cpp"
line="227"/>
+ <source>Change Recording Group using the arrow keys</source>
+- <translation type="unfinished"></translation>
++ <translation>Zmieniaj grupę nagrywania strzałkami</translation>
+ </message>
+ <message>
+ <location filename="../programs/mythfrontend/globalsettings.cpp"
line="232"/>
+ <source>If enabled, change recording group directly using the arrow keys
instead of having to use < and >. Requires theme support for this
feature.</source>
+- <translation type="unfinished"></translation>
++ <translation>Jeśli ustawiona - zmiana grupy nagrań bedzie możliwa za
pomocą klawiszy strzałek. Funkcja wymaga wsparcia z skórce MyhTV.</translation>
+ </message>
+ <message>
+ <location filename="../programs/mythfrontend/globalsettings.cpp"
line="245"/>
+ <source>Start in group list</source>
+- <translation>Startuj z listą grup</translation>
++ <translation>Startuj Pokazując Listę Grup</translation>
+ </message>
+ <message>
+ <location filename="../programs/mythfrontend/globalsettings.cpp"
line="249"/>
+@@ -16798,7 +16803,7 @@ name cannot be blank.</source>
+ <message>
+ <location filename="../programs/mythfrontend/globalsettings.cpp"
line="356"/>
+ <source>Commercial skip automatic rewind amount (secs)</source>
+- <translation>Automatyczne przewijanie (w sek.) podczas przeskakiwania
reklam.</translation>
++ <translation>Automatyczne przewijanie (w sek.) podczas przeskakiwania
reklam</translation>
+ </message>
+ <message>
+ <location filename="../programs/mythfrontend/globalsettings.cpp"
line="359"/>
+@@ -16880,12 +16885,12 @@ name cannot be blank.</source>
+ <message>
+ <location filename="../programs/mythfrontend/globalsettings.cpp"
line="1441"/>
+ <source>Episode sort orderings</source>
+- <translation>Sposób sortwania epizodów</translation>
++ <translation>Typ Sortowania Epizodów</translation>
+ </message>
+ <message>
+ <location filename="../programs/mythfrontend/globalsettings.cpp"
line="1456"/>
+ <source>Sort episodes</source>
+- <translation>Sortowanie Epizodów</translation>
++ <translation>Sortuj Epizody po</translation>
+ </message>
+ <message>
+ <location filename="../programs/mythfrontend/globalsettings.cpp"
line="1458"/>
+@@ -16910,7 +16915,7 @@ name cannot be blank.</source>
+ <message>
+ <location filename="../programs/mythfrontend/globalsettings.cpp"
line="1463"/>
+ <source>Selects how to sort a show's episodes</source>
+- <translation>Wybiera sposób sortowania epizodów.</translation>
++ <translation>Wybiera sposób sortowania epizodów</translation>
+ </message>
+ <message>
+ <location filename="../programs/mythfrontend/globalsettings.cpp"
line="1473"/>
+@@ -16975,57 +16980,57 @@ name cannot be blank.</source>
+ <message>
+ <location filename="../programs/mythfrontend/globalsettings.cpp"
line="1765"/>
+ <source>Playback from start of program</source>
+- <translation type="unfinished"></translation>
++ <translation>Odtwarzaj od oryginalnego startu</translation>
+ </message>
+ <message>
+ <location filename="../programs/mythfrontend/globalsettings.cpp"
line="1769"/>
+ <source>If enabled and no bookmark is set, playback starts at the program
scheduled start time rather than the beginning of the recording. Useful for automatically
skipping 'start early' parts of a recording.</source>
+- <translation type="unfinished"></translation>
++ <translation>Jeśli ustawiona i nagranie nie posiada zakładki - odtwarzanie
rozpocznie się od oryginalnego punktu czasowego nagrania a nie od faktycznego rozpoczęcia
nagrywania. Użyteczne gdy chcemy pominąć fragment nagrania nagrany z racji opcji
'zacznij wcześniej'.</translation>
+ </message>
+ <message>
+ <location filename="../programs/mythfrontend/globalsettings.cpp"
line="1785"/>
+ <source>Clear last played position and exit</source>
+- <translation type="unfinished"></translation>
++ <translation>Skasuj zakładkę wychodząc z odtwarzania</translation>
+ </message>
+ <message>
+ <location filename="../programs/mythfrontend/globalsettings.cpp"
line="1792"/>
+ <source>If set to prompt, a menu will be displayed when you exit playback
mode. The options available will allow you delete the recording, continue watching, or
exit.</source>
+- <translation type="unfinished"></translation>
++ <translation>Jeśli ustawione na 'zapytaj' - przy
wychodzeniu z odtwarzania zostanie wyświetlone zapytanie: wyjdź, wyjdź i skasuj,
kontynuj.</translation>
+ </message>
+ <message>
+ <location filename="../programs/mythfrontend/globalsettings.cpp"
line="1888"/>
+ <source>Always show watched percent progress bar</source>
+- <translation type="unfinished"></translation>
++ <translation>Zawsze pokazuj w UI postęp odtwarzania</translation>
+ </message>
+ <message>
+ <location filename="../programs/mythfrontend/globalsettings.cpp"
line="1892"/>
+ <source>If enabled, shows the watched percent progress bar even if the
recording or video is marked as watched. Having a watched percent progress bar at all
depends on the currently used theme.</source>
+- <translation type="unfinished"></translation>
++ <translation>Jeśli zaznaczone - postęp odtwarzania będzie pokazywany w UI
zawsze i niezależnie od tego czy nagranie ma status 'obejrzane' czy też
nie.</translation>
+ </message>
+ <message>
+ <location filename="../programs/mythfrontend/globalsettings.cpp"
line="2205"/>
+ <source>By default MythTV uses black letterboxing to match broadcaster
letterboxing, but those with plasma screens may prefer gray to minimize
burn-in.</source>
+- <translation type="unfinished"></translation>
++ <translation>Domyślnie MythTV dodaje czarne marginesy na górze/dole
obrazu. Użytkownicy ekranów plazmowych mogą preferować szare marginesy aby zwiększyć
długowieczność plazmowego TV.</translation>
+ </message>
+ <message>
+ <location filename="../programs/mythfrontend/globalsettings.cpp"
line="2217"/>
+ <source>Discard 3D stereoscopic fields</source>
+- <translation type="unfinished"></translation>
++ <translation>Odrzuć stereoskopowe pola 3D</translation>
+ </message>
+ <message>
+ <location filename="../programs/mythfrontend/globalsettings.cpp"
line="2218"/>
+ <source>If 'Side by Side' or 'Top and
Bottom' 3D material is detected, enabling this setting will discard one field
(enabled by default).</source>
+- <translation type="unfinished"></translation>
++ <translation>Jeśli zostanie wykryty materiał 3D typu 'Side by
Side' lub 'Top and Bottom' - ta opcja odrzuci jedno z pól
podczas wyświetlania tego materiału.</translation>
+ </message>
+ <message>
+ <location filename="../programs/mythfrontend/globalsettings.cpp"
line="4293"/>
+ <source>Scaling</source>
+- <translation type="unfinished">Skalowanie</translation>
++ <translation>Skalowanie</translation>
+ </message>
+ <message>
+ <location filename="../programs/mythfrontend/globalsettings.cpp"
line="4317"/>
+ <source>No scaling</source>
+- <translation type="unfinished">Nie
Skalowane</translation>
++ <translation>Nie skaluj</translation>
+ </message>
+ <message>
+ <source>If set to prompt, a menu will be displayed when you exit playback
mode. The options available will allow you to delete the recording, continue watching or
exit.</source>
+@@ -17044,7 +17049,7 @@ name cannot be blank.</source>
+ <message>
+ <location filename="../programs/mythfrontend/globalsettings.cpp"
line="4445"/>
+ <source>Advanced Playback Settings</source>
+- <translation type="unfinished"></translation>
++ <translation>Zaawansowane</translation>
+ </message>
+ <message>
+ <location filename="../programs/mythfrontend/globalsettings.cpp"
line="4460"/>
+@@ -17054,7 +17059,7 @@ name cannot be blank.</source>
+ <message>
+ <location filename="../programs/mythfrontend/globalsettings.cpp"
line="4466"/>
+ <source>View Recordings</source>
+- <translation>Oglądaj Nagrania</translation>
++ <translation>Prezentowanie Nagrań</translation>
+ </message>
+ <message>
+ <location filename="../programs/mythfrontend/globalsettings.cpp"
line="4475"/>
+@@ -17122,12 +17127,12 @@ name cannot be blank.</source>
+ <message>
+ <location filename="../programs/mythfrontend/globalsettings.cpp"
line="1818"/>
+ <source>Enable Music Choice</source>
+- <translation type="unfinished"></translation>
++ <translation>Wsparcie dla Music Choice</translation>
+ </message>
+ <message>
+ <location filename="../programs/mythfrontend/globalsettings.cpp"
line="1822"/>
+ <source>Enable this to improve playing of Music Choice channels or
recordings from those channels. These are audio channels with slide show from some cable
providers. In unusual situations this could cause lip sync problems watching normal videos
or TV shows.</source>
+- <translation type="unfinished"></translation>
++ <translation>Ustawienie tej opcji polepsza nagrywanie/odtwarzanie kanałow
Music Choice.</translation>
+ </message>
+ <message>
+ <location filename="../programs/mythfrontend/globalsettings.cpp"
line="1835"/>
+@@ -17226,7 +17231,7 @@ name cannot be blank.</source>
+ <message>
+ <location filename="../programs/mythfrontend/globalsettings.cpp"
line="3551"/>
+ <source>Sets the title sorting order when the view is set to Titles
only.</source>
+- <translation>Ustaw kolejność sortowania dla wisoku po
tytułach.</translation>
++ <translation>Ustaw kolejność sortowania dla sortowania 'Po
Tytułach'.</translation>
+ </message>
+ <message>
+ <location filename="../programs/mythfrontend/globalsettings.cpp"
line="3872"/>
+@@ -17395,162 +17400,162 @@ name cannot be blank.</source>
+ <location filename="../programs/mythfrontend/prevreclist.cpp"
line="355"/>
+ <location filename="../programs/mythfrontend/prevreclist.cpp"
line="377"/>
+ <source>Programs</source>
+- <translation type="unfinished">Programy</translation>
++ <translation>Programy</translation>
+ </message>
+ <message>
+ <location filename="../programs/mythfrontend/prevreclist.cpp"
line="121"/>
+ <location filename="../programs/mythfrontend/prevreclist.cpp"
line="356"/>
+ <source>Episodes</source>
+- <translation type="unfinished">Epizody</translation>
++ <translation>Epizody</translation>
+ </message>
+ <message>
+ <location filename="../programs/mythfrontend/prevreclist.cpp"
line="259"/>
+ <source>Last two weeks</source>
+- <translation type="unfinished"></translation>
++ <translation>Ostatnie 2 tygodnie</translation>
+ </message>
+ <message>
+ <location filename="../programs/mythfrontend/prevreclist.cpp"
line="358"/>
+ <source>Select a program...</source>
+- <translation type="unfinished">Wybierz program
...</translation>
++ <translation>Wybierz program ...</translation>
+ </message>
+ <message>
+ <location filename="../programs/mythfrontend/prevreclist.cpp"
line="361"/>
+ <source>Select the title of the program you wish to find. When finished
return with the left arrow key. To search by date press 1.</source>
+- <translation type="unfinished"></translation>
++ <translation>Wybierz tytuł do wyszukania. Po zakończeniu wyszukiwania -
lewa strzałka to powrót. Aby wyszukać po dacie - niaciśnij
'1'.</translation>
+ </message>
+ <message>
+ <location filename="../programs/mythfrontend/prevreclist.cpp"
line="369"/>
+ <source>Reverse Title</source>
+ <comment>Sort sequence</comment>
+- <translation type="unfinished">Sortowanie wg tytułu
(odwrotnie)</translation>
++ <translation>Odwrotne sortowanie po tytule</translation>
+ </message>
+ <message>
+ <location filename="../programs/mythfrontend/prevreclist.cpp"
line="371"/>
+ <source>Title</source>
+ <comment>Sort sequence</comment>
+- <translation type="unfinished">Tytuł</translation>
++ <translation>Tytuł</translation>
+ </message>
+ <message>
+ <location filename="../programs/mythfrontend/prevreclist.cpp"
line="376"/>
+ <source>Dates</source>
+- <translation type="unfinished"></translation>
++ <translation>Daty</translation>
+ </message>
+ <message>
+ <location filename="../programs/mythfrontend/prevreclist.cpp"
line="379"/>
+ <source>Select a month ...</source>
+- <translation type="unfinished"></translation>
++ <translation>Wybierz miesiąc ...</translation>
+ </message>
+ <message>
+ <location filename="../programs/mythfrontend/prevreclist.cpp"
line="382"/>
+ <source>Select a month to search. When finished return with the left arrow
key. To search by title press 2.</source>
+- <translation type="unfinished"></translation>
++ <translation>Wybierz miesiąc do wyszukania. Po zakończeniu wyszukiwania -
lewa strzałka to powrót. Aby wyszukać po tytule - niaciśnij
'2'.</translation>
+ </message>
+ <message>
+ <location filename="../programs/mythfrontend/prevreclist.cpp"
line="390"/>
+ <source>Reverse Time</source>
+ <comment>Sort sequence</comment>
+- <translation type="unfinished">Sortowanie wg czasu
(odwrotnie)</translation>
++ <translation>Odwrotne sortowanie po czasie</translation>
+ </message>
+ <message>
+ <location filename="../programs/mythfrontend/prevreclist.cpp"
line="392"/>
+ <source>Time</source>
+ <comment>Sort sequence</comment>
+- <translation type="unfinished">Czas</translation>
++ <translation>Czas</translation>
+ </message>
+ <message>
+ <location filename="../programs/mythfrontend/prevreclist.cpp"
line="548"/>
+ <source>Sort Options</source>
+- <translation type="unfinished">Opcje
sortowania</translation>
++ <translation>Opcje sortowania</translation>
+ </message>
+ <message>
+ <location filename="../programs/mythfrontend/prevreclist.cpp"
line="549"/>
+ <source>Reverse Sort Order</source>
+- <translation type="unfinished">Odwróć kolejność
sortowania</translation>
++ <translation>Odwróć kolejność sortowania</translation>
+ </message>
+ <message>
+ <location filename="../programs/mythfrontend/prevreclist.cpp"
line="550"/>
+ <source>Sort By Title</source>
+- <translation type="unfinished">Sortuj poprzez
tytuł</translation>
++ <translation>Sortuj po tytule</translation>
+ </message>
+ <message>
+ <location filename="../programs/mythfrontend/prevreclist.cpp"
line="551"/>
+ <source>Sort By Time</source>
+- <translation type="unfinished">Sortuj poprzez
czas</translation>
++ <translation>Sortuj po czasie</translation>
+ </message>
+ <message>
+ <location filename="../programs/mythfrontend/prevreclist.cpp"
line="553"/>
+ <source>List Options</source>
+- <translation type="unfinished">Opcje</translation>
++ <translation>Opcje</translation>
+ </message>
+ <message>
+ <location filename="../programs/mythfrontend/prevreclist.cpp"
line="555"/>
+ <source>Sort</source>
+- <translation type="unfinished">Sortuj</translation>
++ <translation>Sortuj</translation>
+ </message>
+ <message>
+ <location filename="../programs/mythfrontend/prevreclist.cpp"
line="560"/>
+ <source>Edit Schedule</source>
+- <translation type="unfinished">Edytuj
Regułę</translation>
++ <translation>Edycja Reguły</translation>
+ </message>
+ <message>
+ <location filename="../programs/mythfrontend/prevreclist.cpp"
line="561"/>
+ <source>Custom Edit</source>
+- <translation
type="unfinished">Zaawansowane...</translation>
++ <translation>Zaawansowane</translation>
+ </message>
+ <message>
+ <location filename="../programs/mythfrontend/prevreclist.cpp"
line="562"/>
+ <source>Program Details</source>
+- <translation type="unfinished"></translation>
++ <translation>Szczegóły Porgramu</translation>
+ </message>
+ <message>
+ <location filename="../programs/mythfrontend/prevreclist.cpp"
line="563"/>
+ <source>Upcoming</source>
+- <translation type="unfinished">Nadchodzące</translation>
++ <translation>Nadchodzące</translation>
+ </message>
+ <message>
+ <location filename="../programs/mythfrontend/prevreclist.cpp"
line="564"/>
+ <source>Channel Search</source>
+- <translation type="unfinished"></translation>
++ <translation>Wyszukuj po kanale</translation>
+ </message>
+ <message>
+ <location filename="../programs/mythfrontend/prevreclist.cpp"
line="566"/>
+ <source>Program Guide</source>
+- <translation type="unfinished"></translation>
++ <translation>Przewodnik EPG</translation>
+ </message>
+ <message>
+ <location filename="../programs/mythfrontend/prevreclist.cpp"
line="581"/>
+ <source>Recording Options</source>
+- <translation type="unfinished"></translation>
++ <translation>Opcje Nagrywania</translation>
+ </message>
+ <message>
+ <location filename="../programs/mythfrontend/prevreclist.cpp"
line="587"/>
+ <source>Allow this episode to re-record</source>
+- <translation type="unfinished"></translation>
++ <translation>Nagraj epizod ponownie</translation>
+ </message>
+ <message>
+ <location filename="../programs/mythfrontend/prevreclist.cpp"
line="589"/>
+ <source>Never record this episode</source>
+- <translation type="unfinished"></translation>
++ <translation>Nigdy nie nagrywaj tego epizodu</translation>
+ </message>
+ <message>
+ <location filename="../programs/mythfrontend/prevreclist.cpp"
line="590"/>
+ <source>Remove this episode from the list</source>
+- <translation type="unfinished">Usuń ten epizod z
listy</translation>
++ <translation>Usuń ten epizod z nagranych</translation>
+ </message>
+ <message>
+ <location filename="../programs/mythfrontend/prevreclist.cpp"
line="592"/>
+ <source>Remove all episodes for this title</source>
+- <translation type="unfinished">Usuń wszystkie epizody o tym
tytule</translation>
++ <translation>Usuń wszystkie epizody o tym tytule</translation>
+ </message>
+ <message>
+ <location filename="../programs/mythfrontend/prevreclist.cpp"
line="730"/>
+ <source>Delete this episode of '%1' from the previously
recorded history?</source>
+- <translation type="unfinished"></translation>
++ <translation>Czy usunąć epizod '%1' z listy poprzednio
nagranych?</translation>
+ </message>
+ <message>
+ <location filename="../programs/mythfrontend/prevreclist.cpp"
line="768"/>
+ <source>Delete all episodes of '%1' from the previously
recorded history?</source>
+- <translation type="unfinished"></translation>
++ <translation>Czy usunąć wszystkie epizody '%1' z listy
poprzednio nagranych?</translation>
+ </message>
+ </context>
+ <context>
+@@ -17640,7 +17645,7 @@ name cannot be blank.</source>
+ <message>
+ <location filename="../programs/mythfrontend/progdetails.cpp"
line="408"/>
+ <source>Part %1 of %2, </source>
+- <translation>Część %1 z %2,(sp)</translation>
++ <translation>Część %1 z %2,(sp), </translation>
+ </message>
+ <message numerus="yes">
+ <location filename="../programs/mythfrontend/progdetails.cpp"
line="421"/>
+@@ -17708,7 +17713,7 @@ name cannot be blank.</source>
+ <message>
+ <location filename="../programs/mythfrontend/progdetails.cpp"
line="466"/>
+ <source>Damaged</source>
+- <translation type="unfinished"></translation>
++ <translation>Uszkodzone</translation>
+ </message>
+ <message>
+ <location filename="../programs/mythfrontend/progdetails.cpp"
line="469"/>
+@@ -17927,52 +17932,52 @@ name cannot be blank.</source>
+ <message>
+ <location filename="../programs/mythfrontend/progdetails.cpp"
line="298"/>
+ <source> MATCHED, adding %1</source>
+- <translation type="unfinished"></translation>
++ <translation> Dodaję %1</translation>
+ </message>
+ <message>
+ <location filename="../programs/mythfrontend/progdetails.cpp"
line="302"/>
+ <source> not matched</source>
+- <translation type="unfinished"></translation>
++ <translation> nie ma pasujących</translation>
+ </message>
+ <message>
+ <location filename="../programs/mythfrontend/progdetails.cpp"
line="305"/>
+ <source> Query FAILED</source>
+- <translation type="unfinished"></translation>
++ <translation> Nieudane zapytanie</translation>
+ </message>
+ <message>
+ <location filename="../programs/mythfrontend/progdetails.cpp"
line="307"/>
+ <source>Recording Priority Adjustment</source>
+- <translation type="unfinished"></translation>
++ <translation>Ustawianie priorytetów nagrywania</translation>
+ </message>
+ <message>
+ <location filename="../programs/mythfrontend/progdetails.cpp"
line="312"/>
+ <source>Priority Adjustment Total</source>
+- <translation type="unfinished"></translation>
++ <translation>Całkowity Priorytet</translation>
+ </message>
+ <message>
+ <location filename="../programs/mythfrontend/progdetails.cpp"
line="446"/>
+ <source>HEVC/H.265</source>
+- <translation type="unfinished"></translation>
++ <translation>HEVC/H.265</translation>
+ </message>
+ <message>
+ <location filename="../programs/mythfrontend/progdetails.cpp"
line="453"/>
+ <source>1080p Resolution</source>
+- <translation type="unfinished">Rozdzielczość 720p
{1080p?}</translation>
++ <translation>Rozdzielczość 1080p</translation>
+ </message>
+ <message>
+ <location filename="../programs/mythfrontend/progdetails.cpp"
line="455"/>
+ <source>4K Resolution</source>
+- <translation type="unfinished">Rozdzielczość 720p
{4K?}</translation>
++ <translation>Rozdzielczość 4K</translation>
+ </message>
+ <message>
+ <location filename="../programs/mythfrontend/progdetails.cpp"
line="460"/>
+ <source>1080i Resolution</source>
+- <translation type="unfinished">Rozdzielczość 720p
{1080i?}</translation>
++ <translation>Rozdzielczość 1080i</translation>
+ </message>
+ <message>
+ <location filename="../programs/mythfrontend/progdetails.cpp"
line="462"/>
+ <source>4Ki Resolution</source>
+- <translation type="unfinished"></translation>
++ <translation>Rozdzielczość 4K interlaced</translation>
+ </message>
+ <message>
+ <location filename="../programs/mythfrontend/progdetails.cpp"
line="857"/>
+@@ -17988,7 +17993,7 @@ name cannot be blank.</source>
+ <message>
+ <location filename="../programs/mythfrontend/progdetails.cpp"
line="904"/>
+ <source>Unknown</source>
+- <translation type="unfinished"></translation>
++ <translation>Nieznany</translation>
+ </message>
+ <message>
+ <location filename="../programs/mythfrontend/progdetails.cpp"
line="906"/>
+@@ -18003,12 +18008,12 @@ name cannot be blank.</source>
+ <message>
+ <location filename="../programs/mythfrontend/progdetails.cpp"
line="908"/>
+ <source>Recorded ID</source>
+- <translation type="unfinished"></translation>
++ <translation>ID nagrania</translation>
+ </message>
+ <message>
+ <location filename="../programs/mythfrontend/progdetails.cpp"
line="909"/>
+ <source>Recorded Pathname</source>
+- <translation type="unfinished"></translation>
++ <translation>Scieżka do nagrania</translation>
+ </message>
+ <message>
+ <location filename="../programs/mythfrontend/progdetails.cpp"
line="910"/>
+@@ -18064,7 +18069,7 @@ name cannot be blank.</source>
+ <location filename="../programs/mythfrontend/progfind.cpp"
line="232"/>
+ <location filename="../programs/mythfrontend/progfind.cpp"
line="283"/>
+ <source>Clear Search</source>
+- <translation>Wyczyść wynik wyszukiwania </translation>
++ <translation>Wyczyść wynik wyszukiwania</translation>
+ </message>
+ <message>
+ <location filename="../programs/mythfrontend/progfind.cpp"
line="233"/>
+@@ -18076,7 +18081,7 @@ name cannot be blank.</source>
+ <location filename="../programs/mythfrontend/progfind.cpp"
line="236"/>
+ <location filename="../programs/mythfrontend/progfind.cpp"
line="302"/>
+ <source>Toggle Record</source>
+- <translation>Nagrywaj...</translation>
++ <translation>Nagrywaj</translation>
+ </message>
+ <message>
+ <location filename="../programs/mythfrontend/progfind.cpp"
line="237"/>
+@@ -18100,7 +18105,7 @@ name cannot be blank.</source>
+ <location filename="../programs/mythfrontend/progfind.cpp"
line="240"/>
+ <location filename="../programs/mythfrontend/progfind.cpp"
line="318"/>
+ <source>Custom Edit</source>
+- <translation>Zaawansowane...</translation>
++ <translation>Zaawansowane</translation>
+ </message>
+ <message>
+ <location filename="../programs/mythfrontend/progfind.cpp"
line="241"/>
+@@ -18184,7 +18189,7 @@ name cannot be blank.</source>
+ <message>
+ <location filename="../programs/mythfrontend/proglist.cpp"
line="147"/>
+ <source>Stored Search</source>
+- <translation>Szukaj po poprzednich kryteriach wyszukiwania
</translation>
++ <translation>Szukaj po poprzednich kryteriach
wyszukiwania</translation>
+ </message>
+ <message>
+ <location filename="../programs/mythfrontend/proglist.cpp"
line="149"/>
+@@ -18353,7 +18358,7 @@ name cannot be blank.</source>
+ <message>
+ <location filename="../programs/mythfrontend/proglist.cpp"
line="296"/>
+ <source>Custom Edit</source>
+- <translation>Zaawansowane...</translation>
++ <translation>Zaawansowane</translation>
+ </message>
+ <message>
+ <location filename="../programs/mythfrontend/proglist.cpp"
line="302"/>
+@@ -18551,7 +18556,7 @@ name cannot be blank.</source>
+ <location
filename="../programs/mythfrontend/programrecpriority.cpp"
line="507"/>
+ <location
filename="../programs/mythfrontend/programrecpriority.cpp"
line="580"/>
+ <source>Custom Edit</source>
+- <translation>Zaawansowane...</translation>
++ <translation>Zaawansowane</translation>
+ </message>
+ <message>
+ <location
filename="../programs/mythfrontend/programrecpriority.cpp"
line="508"/>
+@@ -18733,7 +18738,7 @@ name cannot be blank.</source>
+ <message>
+ <location filename="../libs/libmythtv/channelinfo.cpp"
line="512"/>
+ <source>Visible</source>
+- <translation type="unfinished">Widoczne</translation>
++ <translation>Widoczne</translation>
+ </message>
+ <message>
+ <location
filename="../libs/libmythtv/channelscan/channelscanmiscsettings.h"
line="274"/>
+@@ -21167,7 +21172,7 @@ Most DVB-C transports transmit at 6.9 or 6.875 million symbols
per second.</sour
+ <translation type="obsolete">Informacje</translation>
+ </message>
+ <message>
+- <location filename="../programs/mythbackend/upnpcdsmusic.cpp"
line="64"/>
++ <location filename="../programs/mythbackend/upnpcdsmusic.cpp"
line="66"/>
+ <source>Music</source>
+ <translation type="unfinished">Narzędzia dla
Muzyki</translation>
+ </message>
+@@ -22228,7 +22233,7 @@ Your grabber does not provide channel numbers, so you have to set
them manually.
+ <message>
+ <location filename="../libs/libmythtv/videoouttypes.h"
line="152"/>
+ <source>Exact</source>
+- <translation type="unfinished"></translation>
++ <translation>Dokładna</translation>
+ </message>
+ <message>
+ <location filename="../libs/libmythtv/videoouttypes.h"
line="174"/>
+@@ -24357,13 +24362,13 @@
http://localhost:6544/setupwizard</source>
+ <translation type="unfinished"></translation>
+ </message>
+ <message>
+- <location filename="../libs/libmyth/audio/audiooutputalsa.cpp"
line="474"/>
++ <location filename="../libs/libmyth/audio/audiooutputalsa.cpp"
line="472"/>
+ <location filename="../libs/libmyth/audio/audiooutputopensles.cpp"
line="185"/>
+ <source>Unknown sample format: %1</source>
+ <translation type="unfinished"></translation>
+ </message>
+ <message>
+- <location filename="../libs/libmyth/audio/audiooutputalsa.cpp"
line="675"/>
++ <location filename="../libs/libmyth/audio/audiooutputalsa.cpp"
line="673"/>
+ <source>SetParameters() called with handle == nullptr!</source>
+ <translation type="unfinished"></translation>
+ </message>
+@@ -24718,22 +24723,27 @@
http://localhost:6544/setupwizard</source>
+ <translation type="unfinished">Error: stream handler
died</translation>
+ </message>
+ <message>
+- <location filename="../programs/mythbackend/upnpcdsmusic.cpp"
line="109"/>
++ <location filename="../programs/mythbackend/upnpcdsmusic.cpp"
line="112"/>
+ <source>All Tracks</source>
+ <translation type="unfinished"></translation>
+ </message>
+ <message>
+- <location filename="../programs/mythbackend/upnpcdsmusic.cpp"
line="123"/>
++ <location filename="../programs/mythbackend/upnpcdsmusic.cpp"
line="126"/>
++ <source>Playlist</source>
++ <translation type="unfinished"></translation>
++ </message>
++ <message>
++ <location filename="../programs/mythbackend/upnpcdsmusic.cpp"
line="140"/>
+ <source>Artist</source>
+ <translation type="unfinished">Artysta</translation>
+ </message>
+ <message>
+- <location filename="../programs/mythbackend/upnpcdsmusic.cpp"
line="137"/>
++ <location filename="../programs/mythbackend/upnpcdsmusic.cpp"
line="154"/>
+ <source>Album</source>
+ <translation type="unfinished"></translation>
+ </message>
+ <message>
+- <location filename="../programs/mythbackend/upnpcdsmusic.cpp"
line="151"/>
++ <location filename="../programs/mythbackend/upnpcdsmusic.cpp"
line="168"/>
+ <location filename="../programs/mythbackend/upnpcdstv.cpp"
line="231"/>
+ <location filename="../programs/mythbackend/upnpcdsvideo.cpp"
line="120"/>
+ <source>Genre</source>
+@@ -25010,12 +25020,12 @@ Connect video source '%1' to a capture card
in the 'Input Connect
+ <message>
+ <location filename="../libs/libmythtv/restoredata.cpp"
line="105"/>
+ <source>Restore Data</source>
+- <translation type="unfinished"></translation>
++ <translation>Odtwórz</translation>
+ </message>
+ <message>
+ <location filename="../libs/libmythtv/restoredata.cpp"
line="124"/>
+ <source>Search</source>
+- <translation type="unfinished">Szukaj</translation>
++ <translation>Szukaj</translation>
+ </message>
+ </context>
+ <context>
+@@ -25023,32 +25033,32 @@ Connect video source '%1' to a capture card
in the 'Input Connect
+ <message>
+ <location filename="../libs/libmythtv/videosource.cpp"
line="4071"/>
+ <source>Friendly name</source>
+- <translation type="unfinished"></translation>
++ <translation>Nazwa</translation>
+ </message>
+ <message>
+ <location filename="../libs/libmythtv/videosource.cpp"
line="4071"/>
+ <source>Friendly name of the Sat>IP server</source>
+- <translation type="unfinished"></translation>
++ <translation>Syboliczna nazwa serwera Sat->IP</translation>
+ </message>
+ <message>
+ <location filename="../libs/libmythtv/videosource.cpp"
line="4072"/>
+ <source>Tuner type</source>
+- <translation type="unfinished"></translation>
++ <translation>Typ tunera</translation>
+ </message>
+ <message>
+ <location filename="../libs/libmythtv/videosource.cpp"
line="4072"/>
+ <source>Type of the selected tuner</source>
+- <translation type="unfinished"></translation>
++ <translation>Typ wybranego tunera</translation>
+ </message>
+ <message>
+ <location filename="../libs/libmythtv/videosource.cpp"
line="4073"/>
+ <source>Tuner index</source>
+- <translation type="unfinished"></translation>
++ <translation>Index tunera</translation>
+ </message>
+ <message>
+ <location filename="../libs/libmythtv/videosource.cpp"
line="4073"/>
+ <source>Index of the tuner on the Sat>IP server</source>
+- <translation type="unfinished"></translation>
++ <translation>Index tunera na serwerze Sat->IP</translation>
+ </message>
+ </context>
+ <context>
+@@ -25056,12 +25066,12 @@ Connect video source '%1' to a capture card
in the 'Input Connect
+ <message>
+ <location filename="../libs/libmythtv/videosource.cpp"
line="4224"/>
+ <source>Device ID</source>
+- <translation type="unfinished"></translation>
++ <translation>ID urządzenia</translation>
+ </message>
+ <message>
+ <location filename="../libs/libmythtv/videosource.cpp"
line="4225"/>
+ <source>Device ID of the Sat>IP tuner</source>
+- <translation type="unfinished"></translation>
++ <translation>ID urządzenia będącego serwerem
Sat->IP</translation>
+ </message>
+ </context>
+ <context>
+@@ -25069,17 +25079,17 @@ Connect video source '%1' to a capture card
in the 'Input Connect
+ <message>
+ <location filename="../libs/libmythtv/videosource.cpp"
line="4154"/>
+ <source>Available devices</source>
+- <translation type="unfinished"></translation>
++ <translation>Dostępne urządzenia</translation>
+ </message>
+ <message>
+ <location filename="../libs/libmythtv/videosource.cpp"
line="4155"/>
+ <source>Device IP or ID, tuner number and tuner type of available
Sat>IP device</source>
+- <translation type="unfinished"></translation>
++ <translation>IP albo ID urządzenia, numer tunera, typ tunera dostępnego w
serwerze Sat->IP</translation>
+ </message>
+ <message>
+ <location filename="../libs/libmythtv/videosource.cpp"
line="4208"/>
+ <source>Warning: already in use</source>
+- <translation type="unfinished"></translation>
++ <translation>Uwaga: już jest w użyciu</translation>
+ </message>
+ </context>
+ <context>
+@@ -25087,7 +25097,7 @@ Connect video source '%1' to a capture card in
the 'Input Connect
+ <message>
+ <location
filename="../libs/libmythtv/recorders/satipsignalmonitor.cpp"
line="83"/>
+ <source>Error: stream handler died</source>
+- <translation type="unfinished">Error: stream handler
died</translation>
++ <translation>Błąd: stream handler died</translation>
+ </message>
+ </context>
+ <context>
+@@ -25174,7 +25184,7 @@ Connect video source '%1' to a capture card in
the 'Input Connect
+ <message>
+ <location
filename="../libs/libmythtv/channelscan/scanwizardconfig.cpp"
line="334"/>
+ <source>HDHomeRun Channel Import</source>
+- <translation type="unfinished"></translation>
++ <translation>Import kanałów z HDHomeRun</translation>
+ </message>
+ <message>
+ <location
filename="../libs/libmythtv/channelscan/scanwizardconfig.cpp"
line="340"/>
+@@ -25199,7 +25209,7 @@ Connect video source '%1' to a capture card in
the 'Input Connect
+ <message>
+ <location
filename="../libs/libmythtv/channelscan/scanwizardconfig.cpp"
line="356"/>
+ <source>Import from ExternalRecorder</source>
+- <translation type="unfinished"></translation>
++ <translation>Import z ExternalRecorder</translation>
+ </message>
+ <message>
+ <location
filename="../libs/libmythtv/channelscan/scanwizardconfig.cpp"
line="360"/>
+@@ -25246,7 +25256,7 @@ Connect video source '%1' to a capture card in
the 'Input Connect
+ <message>
+ <location
filename="../libs/libmythtv/channelscan/scanwizardconfig.cpp"
line="61"/>
+ <source>Channel Scan</source>
+- <translation type="unfinished">Wyszukuj
Kanały</translation>
++ <translation>Wyszukuję Kanały</translation>
+ </message>
+ </context>
+ <context>
+@@ -25423,7 +25433,7 @@ Connect video source '%1' to a capture card in
the 'Input Connect
+ <message>
+ <location filename="../programs/mythfrontend/schedulecommon.cpp"
line="195"/>
+ <source>Recording rule does not exist.</source>
+- <translation type="unfinished"></translation>
++ <translation>Reguła nie istnieje.</translation>
+ </message>
+ <message>
+ <location filename="../programs/mythfrontend/schedulecommon.cpp"
line="319"/>
+@@ -26134,17 +26144,17 @@ No other details</source>
+ <message>
+ <location filename="../programs/mythfrontend/statusbox.cpp"
line="119"/>
+ <source>Input Status</source>
+- <translation type="unfinished"></translation>
++ <translation>Status Wejść</translation>
+ </message>
+ <message>
+ <location filename="../programs/mythfrontend/statusbox.cpp"
line="127"/>
+ <source>Video decoders</source>
+- <translation type="unfinished"></translation>
++ <translation>Dekodery video</translation>
+ </message>
+ <message>
+ <location filename="../programs/mythfrontend/statusbox.cpp"
line="131"/>
+ <source>Display</source>
+- <translation type="unfinished"></translation>
++ <translation>TV</translation>
+ </message>
+ <message>
+ <location filename="../programs/mythfrontend/statusbox.cpp"
line="139"/>
+@@ -26203,7 +26213,7 @@ No other details</source>
+ <message>
+ <location filename="../programs/mythfrontend/statusbox.cpp"
line="307"/>
+ <source>Requeue Job?</source>
+- <translation>Czy umieścić zadanie ponownie w kolejce?
</translation>
++ <translation>Czy umieścić zadanie ponownie w kolejce?</translation>
+ </message>
+ <message>
+ <location filename="../programs/mythfrontend/statusbox.cpp"
line="325"/>
+@@ -26218,7 +26228,7 @@ No other details</source>
+ <message>
+ <location filename="../programs/mythfrontend/statusbox.cpp"
line="338"/>
+ <source>Move to Default group</source>
+- <translation>Przenieś do domyślnej grupy </translation>
++ <translation>Przenieś do domyślnej grupy</translation>
+ </message>
+ <message>
+ <location filename="../programs/mythfrontend/statusbox.cpp"
line="342"/>
+@@ -26243,7 +26253,7 @@ No other details</source>
+ <message>
+ <location filename="../programs/mythfrontend/statusbox.cpp"
line="490"/>
+ <source>Last mythfilldatabase guide update:</source>
+- <translation>Ostatnia aktualizacja EPG: </translation>
++ <translation>Ostatnia aktualizacja EPG:</translation>
+ </message>
+ <message>
+ <location filename="../programs/mythfrontend/statusbox.cpp"
line="491"/>
+@@ -26278,7 +26288,7 @@ No other details</source>
+ <message>
+ <location filename="../programs/mythfrontend/statusbox.cpp"
line="529"/>
+ <source>There is guide data until %1</source>
+- <translation>System posiada aktualny EPG na %1 dni </translation>
++ <translation>System posiada aktualny EPG na %1 dni</translation>
+ </message>
+ <message>
+ <location filename="../programs/mythfrontend/statusbox.cpp"
line="539"/>
+@@ -26452,32 +26462,32 @@ No other details</source>
+ <message>
+ <location filename="../programs/mythfrontend/statusbox.cpp"
line="1458"/>
+ <source>Display information.</source>
+- <translation type="unfinished"></translation>
++ <translation>Informacje o TV.</translation>
+ </message>
+ <message>
+ <location filename="../programs/mythfrontend/statusbox.cpp"
line="1474"/>
+ <source>Render information.</source>
+- <translation type="unfinished"></translation>
++ <translation>Informacje o metodzie rysowania.</translation>
+ </message>
+ <message>
+ <location filename="../programs/mythfrontend/statusbox.cpp"
line="1520"/>
+ <source>GPU memory used : %1MB</source>
+- <translation type="unfinished"></translation>
++ <translation>Zajętość pamięci GPU: %1MB</translation>
+ </message>
+ <message>
+ <location filename="../programs/mythfrontend/statusbox.cpp"
line="1532"/>
+ <source>GPU memory free : %1MB (or %2%)</source>
+- <translation type="unfinished"></translation>
++ <translation>Wolna pamięć GPU: %1MB (albo %2%)</translation>
+ </message>
+ <message>
+ <location filename="../programs/mythfrontend/statusbox.cpp"
line="1538"/>
+ <source>GPU memory total : %1MB</source>
+- <translation type="unfinished"></translation>
++ <translation>Całkowita pamięć GPU: %1MB</translation>
+ </message>
+ <message>
+ <location filename="../programs/mythfrontend/statusbox.cpp"
line="1539"/>
+ <source>GPU memory dedicated: %1MB</source>
+- <translation type="unfinished"></translation>
++ <translation>Zwolniona pamięć GPU: %1MB</translation>
+ </message>
+ <message>
+ <location filename="../programs/mythfrontend/statusbox.cpp"
line="1565"/>
+@@ -26497,12 +26507,12 @@ No other details</source>
+ <message>
+ <location filename="../programs/mythfrontend/statusbox.cpp"
line="135"/>
+ <source>Rendering</source>
+- <translation type="unfinished"></translation>
++ <translation>Rysowanie</translation>
+ </message>
+ <message>
+ <location filename="../programs/mythfrontend/statusbox.cpp"
line="489"/>
+ <source>Database schema version: %1</source>
+- <translation type="unfinished"></translation>
++ <translation>Wersja bazy danych: %1</translation>
+ </message>
+ <message numerus="yes">
+ <location filename="../programs/mythfrontend/statusbox.cpp"
line="578"/>
+@@ -26534,47 +26544,47 @@ No other details</source>
+ <message>
+ <location filename="../programs/mythfrontend/statusbox.cpp"
line="770"/>
+ <source>Input Status shows the current information about the state of
backend inputs</source>
+- <translation type="unfinished"></translation>
++ <translation>Status tunerów przedstawia aktualną informację o zajętości
tunerów</translation>
+ </message>
+ <message>
+ <location filename="../programs/mythfrontend/statusbox.cpp"
line="859"/>
+ <source>%1 errored</source>
+- <translation type="unfinished"></translation>
++ <translation>%1 z problemem</translation>
+ </message>
+ <message>
+ <location filename="../programs/mythfrontend/statusbox.cpp"
line="861"/>
+ <source>%1 unavailable</source>
+- <translation type="unfinished"></translation>
++ <translation>%1 niedostępnych</translation>
+ </message>
+ <message>
+ <location filename="../programs/mythfrontend/statusbox.cpp"
line="863"/>
+ <source>%1 sleeping</source>
+- <translation type="unfinished"></translation>
++ <translation>%1 w uśpieniu</translation>
+ </message>
+ <message>
+ <location filename="../programs/mythfrontend/statusbox.cpp"
line="865"/>
+ <source>%1 recording</source>
+- <translation type="unfinished"></translation>
++ <translation>%1 nagrywających</translation>
+ </message>
+ <message>
+ <location filename="../programs/mythfrontend/statusbox.cpp"
line="867"/>
+ <source>%1 live television</source>
+- <translation type="unfinished"></translation>
++ <translation>%1 z live TV</translation>
+ </message>
+ <message>
+ <location filename="../programs/mythfrontend/statusbox.cpp"
line="869"/>
+ <source>%1 available</source>
+- <translation type="unfinished"></translation>
++ <translation>%1 dostępnych</translation>
+ </message>
+ <message>
+ <location filename="../programs/mythfrontend/statusbox.cpp"
line="877"/>
+ <source>Input %1 %2: %3</source>
+- <translation type="unfinished"></translation>
++ <translation>Wejście %1 %2: %3</translation>
+ </message>
+ <message>
+ <location filename="../programs/mythfrontend/statusbox.cpp"
line="879"/>
+ <source>, </source>
+- <translation type="unfinished"></translation>
++ <translation>, </translation>
+ </message>
+ <message>
+ <location filename="../programs/mythfrontend/statusbox.cpp"
line="1033"/>
+@@ -26642,62 +26652,62 @@ No other details</source>
+ <message>
+ <location filename="../programs/mythfrontend/statusbox.cpp"
line="1171"/>
+ <source>Machine Status shows some operating system statistics of this
machine and the MythTV server.</source>
+- <translation type="unfinished"></translation>
++ <translation>Status maszyny pokazuje podstawowe statystyki dt. serwera
MythTV.</translation>
+ </message>
+ <message>
+ <location filename="../programs/mythfrontend/statusbox.cpp"
line="1191"/>
+ <source>System time</source>
+- <translation type="unfinished"></translation>
++ <translation>Czas systemowy</translation>
+ </message>
+ <message>
+ <location filename="../programs/mythfrontend/statusbox.cpp"
line="1199"/>
+ <source>OS</source>
+- <translation type="unfinished"></translation>
++ <translation>System Operacyjny</translation>
+ </message>
+ <message>
+ <location filename="../programs/mythfrontend/statusbox.cpp"
line="1201"/>
+ <source>Qt version</source>
+- <translation type="unfinished"></translation>
++ <translation>Wersja biblioteki Qt</translation>
+ </message>
+ <message>
+ <location filename="../programs/mythfrontend/statusbox.cpp"
line="1215"/>
+ <source>WiFi</source>
+- <translation type="unfinished"></translation>
++ <translation>WiFi</translation>
+ </message>
+ <message>
+ <location filename="../programs/mythfrontend/statusbox.cpp"
line="1215"/>
+ <source>Ethernet</source>
+- <translation type="unfinished"></translation>
++ <translation>Ethernet</translation>
+ </message>
+ <message>
+ <location filename="../programs/mythfrontend/statusbox.cpp"
line="1217"/>
+ <source>MAC Address</source>
+- <translation type="unfinished"></translation>
++ <translation>Adres MAC</translation>
+ </message>
+ <message>
+ <location filename="../programs/mythfrontend/statusbox.cpp"
line="1224"/>
+ <source>IP Address</source>
+- <translation type="unfinished"></translation>
++ <translation>Adres IP</translation>
+ </message>
+ <message>
+ <location filename="../programs/mythfrontend/statusbox.cpp"
line="1302"/>
+ <source>IP</source>
+- <translation type="unfinished"></translation>
++ <translation>IP</translation>
+ </message>
+ <message>
+ <location filename="../programs/mythfrontend/statusbox.cpp"
line="1435"/>
+ <source>Available hardware decoders for video playback.</source>
+- <translation type="unfinished"></translation>
++ <translation>Dostępne sprzętowe dekodery video.</translation>
+ </message>
+ <message>
+ <location filename="../programs/mythfrontend/statusbox.cpp"
line="1444"/>
+ <source>None</source>
+- <translation type="unfinished"></translation>
++ <translation>Żaden</translation>
+ </message>
+ <message>
+ <location filename="../programs/mythfrontend/statusbox.cpp"
line="1493"/>
+ <source>Current fps : %1</source>
+- <translation type="unfinished"></translation>
++ <translation>Aktualny fps: %1</translation>
+ </message>
+ <message numerus="yes">
+ <location filename="../programs/mythfrontend/statusbox.cpp"
line="1611"/>
+@@ -26895,7 +26905,7 @@ Directory From Storage Group?</source>
+ <message>
+ <location filename="../libs/libmyth/storagegroupeditor.cpp"
line="495"/>
+ <source> Storage Group Directories</source>
+- <translation>katalogi w Grupie Dyskowej</translation>
++ <translation> Katalogi w Grupie Dyskowej</translation>
+ </message>
+ </context>
+ <context>
+@@ -27355,7 +27365,7 @@ Directory From Storage Group?</source>
+ <message>
+ <location filename="../libs/libmythtv/tv_play.cpp"
line="7013"/>
+ <source>Sleep </source>
+- <translation>Drzemka</translation>
++ <translation>Drzemka </translation>
+ </message>
+ <message>
+ <location filename="../libs/libmythtv/tv_play.cpp"
line="7589"/>
+@@ -27539,12 +27549,12 @@ Czy chesz dalej oglądać?</translation>
+ <message>
+ <location filename="../libs/libmythtv/tv_play.cpp"
line="8566"/>
+ <source>Auto</source>
+- <translation type="unfinished">Auto</translation>
++ <translation>Auto</translation>
+ </message>
+ <message>
+ <location filename="../libs/libmythtv/tv_play.cpp"
line="8568"/>
+ <source>Ignore</source>
+- <translation type="unfinished">Ignoruj</translation>
++ <translation>Ignoruj</translation>
+ </message>
+ <message>
+ <location filename="../libs/libmythtv/tv_play.cpp"
line="8570"/>
+@@ -28486,7 +28496,7 @@ Select a Current Recording</source>
+ <message>
+ <location filename="../libs/libmythtv/tv_play.cpp"
line="9877"/>
+ <source>Cannot delete program </source>
+- <translation>Nie mogę skasować</translation>
++ <translation>Nie mogę skasować </translation>
+ </message>
+ <message>
+ <location filename="../libs/libmythtv/tv_play.cpp"
line="9884"/>
+@@ -28717,7 +28727,7 @@ Select a Current Recording</source>
+ <message>
+ <location filename="../programs/mythfrontend/themechooser.cpp"
line="911"/>
+ <source>ERROR downloading theme package from frontend.</source>
+- <translation type="unfinished"></translation>
++ <translation>Błąd zaladowania skórki.</translation>
+ </message>
+ <message>
+ <source>ERROR downloading theme package from master
backend.</source>
+@@ -31463,7 +31473,7 @@ Select a Current Recording</source>
+ <message>
+ <location filename="../themes/themestrings.h"
line="395"/>
+ <source>Alternative player:</source>
+- <translation type="unfinished"></translation>
++ <translation>Alternatywny odtwarzacz:</translation>
+ </message>
+ <message>
+ <location filename="../themes/themestrings.h"
line="397"/>
+@@ -32313,12 +32323,12 @@ Select a Current Recording</source>
+ <message>
+ <location filename="../themes/themestrings.h"
line="750"/>
+ <source>DVD drive:</source>
+- <translation type="unfinished"></translation>
++ <translation>Napęd DVD:</translation>
+ </message>
+ <message>
+ <location filename="../themes/themestrings.h"
line="751"/>
+ <source>DVD player:</source>
+- <translation type="unfinished"></translation>
++ <translation>Odtwarzacz DVD:</translation>
+ </message>
+ <message>
+ <location filename="../themes/themestrings.h"
line="752"/>
+@@ -32348,7 +32358,7 @@ Select a Current Recording</source>
+ <message>
+ <location filename="../themes/themestrings.h"
line="761"/>
+ <source>Default player:</source>
+- <translation type="unfinished"></translation>
++ <translation>Domyślny odtwarzacz:</translation>
+ </message>
+ <message>
+ <location filename="../themes/themestrings.h"
line="763"/>
+@@ -37785,7 +37795,7 @@ Aby zaprogramować, wejdź do opcji
"Programowanie" i zaprogramuj nagr
+ <message>
+ <location filename="../themes/themestrings.h"
line="462"/>
+ <source>BD Mount:</source>
+- <translation>Montuj Blu-Ray:</translation>
++ <translation>Montuj Blu-Ray w:</translation>
+ </message>
+ <message>
+ <location filename="../themes/themestrings.h"
line="463"/>
+@@ -40896,7 +40906,7 @@ If you select "Use Default Player," the player
command set for the ext
+ <message>
+ <location filename="../libs/libmythtv/transporteditor.cpp"
line="218"/>
+ <source>Transport Editor</source>
+- <translation type="unfinished">Edytor
*transportu*</translation>
++ <translation>Edytor transportów</translation>
+ </message>
+ <message>
+ <location filename="../libs/libmythtv/transporteditor.cpp"
line="223"/>
+@@ -41792,7 +41802,7 @@ If you select "Use Default Player," the player
command set for the ext
+ <message>
+ <location
filename="../programs/mythfrontend/videoglobalsettings.cpp"
line="126"/>
+ <source>Directory that holds movie posters</source>
+- <translation>Katalog przechowujący plakaty</translation>
++ <translation>Katalog z plakatami</translation>
+ </message>
+ <message>
+ <location
filename="../programs/mythfrontend/videoglobalsettings.cpp"
line="131"/>
+@@ -41806,7 +41816,7 @@ If you select "Use Default Player," the player
command set for the ext
+ <message>
+ <location
filename="../programs/mythfrontend/videoglobalsettings.cpp"
line="142"/>
+ <source>Directory that holds movie screenshots</source>
+- <translation>Katalog przechowujący zrzuty ekranu</translation>
++ <translation>Katalog z zrzutami ekranu</translation>
+ </message>
+ <message>
+ <location
filename="../programs/mythfrontend/videoglobalsettings.cpp"
line="158"/>
+@@ -41816,12 +41826,12 @@ If you select "Use Default Player," the
player command set for the ext
+ <message>
+ <location
filename="../programs/mythfrontend/videoglobalsettings.cpp"
line="174"/>
+ <source>Directory that holds movie fanart</source>
+- <translation>Katalog przechowujący fanart</translation>
++ <translation>Katalog z fanartami</translation>
+ </message>
+ <message>
+ <location
filename="../programs/mythfrontend/videoglobalsettings.cpp"
line="189"/>
+ <source>Directory that holds movie trailers</source>
+- <translation>Katalog przechowujący czołówki</translation>
++ <translation>Katalog z czołówkami</translation>
+ </message>
+ <message>
+ <location
filename="../programs/mythfrontend/videoglobalsettings.cpp"
line="211"/>
+@@ -41851,7 +41861,7 @@ If you select "Use Default Player," the player
command set for the ext
+ <message>
+ <location
filename="../programs/mythfrontend/videoglobalsettings.cpp"
line="228"/>
+ <source>Video Tree remembers last selected position</source>
+- <translation>Zapamiętuj aktulaną pozycję drzewa Video</translation>
++ <translation>Zapamiętuj aktulaną pozycję w katalogu
Video</translation>
+ </message>
+ <message>
+ <location
filename="../programs/mythfrontend/videoglobalsettings.cpp"
line="233"/>
+@@ -41910,7 +41920,7 @@ If you select "Use Default Player," the player
command set for the ext
+ <message>
+ <location
filename="../programs/mythfrontend/videoglobalsettings.cpp"
line="312"/>
+ <source>Parental Control Settings</source>
+- <translation>Ustawienia kontroli rodzicielskiej</translation>
++ <translation>Kontrola rodzicielska</translation>
+ </message>
+ <message>
+ <source>General Settings (%1/%2)</source>
+@@ -41952,7 +41962,7 @@ If you select "Use Default Player," the player
command set for the ext
+ <message>
+ <location filename="../programs/mythfrontend/globalsettings.cpp"
line="2356"/>
+ <source>Switch video modes for playback depending on the source resolution
and frame rate.</source>
+- <translation type="unfinished"></translation>
++ <translation>Dostosuj tryb video do materiału video.</translation>
+ </message>
+ <message>
+ <location filename="../programs/mythfrontend/globalsettings.cpp"
line="2367"/>
+@@ -42045,12 +42055,12 @@ If you select "Use Default Player," the
player command set for the ext
+ <message>
+ <location filename="../programs/mythfrontend/globalsettings.cpp"
line="2586"/>
+ <source>Pause while switching video modes (ms)</source>
+- <translation type="unfinished"></translation>
++ <translation>Pauza podczas zmiany trybu video</translation>
+ </message>
+ <message>
+ <location filename="../programs/mythfrontend/globalsettings.cpp"
line="2587"/>
+ <source>For most displays, switching video modes takes time and content
can be missed. If non-zero, this setting will pause playback while the video mode is
changed. The required pause length (in ms) will be dependant on the display's
characteristics.</source>
+- <translation type="unfinished"></translation>
++ <translation>Na większości TV zmiana tryby video powoduje chwilową utratę
obrazu/dźwięku. To ustawienie pozwala na wstrzymanie odtwarzania na czas gdy TV zmienia
tryb wyświetlania. Podany czas jest w milisekundach.</translation>
+ </message>
+ <message>
+ <source>Video Mode Settings</source>
+@@ -42255,7 +42265,7 @@ Jeśli ta grupa nie istnieje, usuń ją z
konfiguracji</translation>
+ <message>
+ <location filename="../libs/libmythtv/videosource.cpp"
line="136"/>
+ <source>Video Source</source>
+- <translation type="unfinished">Źródło</translation>
++ <translation>Źródło Video</translation>
+ </message>
+ </context>
+ <context>
+@@ -42271,7 +42281,7 @@ Jeśli ta grupa nie istnieje, usuń ją z
konfiguracji</translation>
+ <message>
+ <location filename="../programs/mythfrontend/viewschedulediff.cpp"
line="124"/>
+ <source>The following programs will be recorded instead:</source>
+- <translation type="unfinished">Następujące programy będą nagrane
wzamian:</translation>
++ <translation>Następujące programy będą nagrane
wzamian:</translation>
+ </message>
+ </context>
+ <context>
+@@ -42371,7 +42381,7 @@ Jeśli ta grupa nie istnieje, usuń ją z
konfiguracji</translation>
+ <location filename="../programs/mythfrontend/viewscheduled.cpp"
line="214"/>
+ <location filename="../programs/mythfrontend/viewscheduled.cpp"
line="713"/>
+ <source>Custom Edit</source>
+- <translation>Zaawansowane...</translation>
++ <translation>Zaawansowane</translation>
+ </message>
+ <message>
+ <location filename="../programs/mythfrontend/viewscheduled.cpp"
line="215"/>
+
+From 88464234e8189f11a688a2f9b710ec41d6e0fd0e Mon Sep 17 00:00:00 2001
+From: Nick Morrott <knowledgejunkie(a)gmail.com>
+Date: Fri, 16 Feb 2024 18:17:13 +0000
+Subject: [PATCH 05/21] Translations: Update mythfrontend translation binary
+ files
+
+(cherry picked from commit b54a0d86ee382e43284368a9b03344205186c732)
+---
+ mythtv/i18n/mythfrontend_pl.qm | Bin 530761 -> 597954 bytes
+ 1 file changed, 0 insertions(+), 0 deletions(-)
+
+diff --git a/mythtv/i18n/mythfrontend_pl.qm b/mythtv/i18n/mythfrontend_pl.qm
+index ffeca4f4c13dfadc22a8079d6d61901ba0fe2e76..6ea4ccd8bc820fddf499cca8e3af998c7d58df16
100644
+GIT binary patch
+delta 90173
+zcmXV&cU(>XAID#xeT3}2LN-}t?+THOjD*b0gtFH~X2{6iWRL8<$=+n|5wb_NFTb~Q
+ze}8y9@44yTb3W(uUa$B2bY`2|vBU1u^EhIQ0w@gG!y<Y^1zsomf^~XMYy~!c5}?Wf
+z#aa-n0tN2bG$qdy>HpvP$Hw&j5SzSrYMUy&icOuh8ZiXoM66BKXDIOqOyU-x)FC)@
+z(+HsSA?T)?fb!{~oB0s45C;IBbR6hUq~pL5fEOJ%rw{g`<L1493jdD35$U)ET}VYb
+zZV^ZPcbo`RqT`lrfchl?pVdy@cd^O+7yqLJ$|KBvL-~KTX_ZLpWY6Qo*5Hlk3W=&t
+zW}smp^p$A9-v?}+AJBLw;8x70>O?EoWEF5^5zw>%Sm#+lU^l3)zik@n3p76klQ)3)
+z2&&HtpoQZkP|%ZJoTMe9GbO4%w46kpjc!THc2IYdfnYkxY|Vjo+h9Iy1KQKc6&Yod
+zPoWi{V>RA+tc&*rdM1Dc4+4^}L5E%jk4pwCd>W$K0EpU4AsX$a6^(~*L|>*QngX$^
+z33RKD#J<EykQvUy)LaTVA{x5K2*?Qwp$C?MoU#%a<N-NvCG_M-n^xA$kZV_gZQpH^
+zH&3*wT82XIqP?`BgiT&;kCQPyZ0f^f;rRC-EZ5hN`z7$KvXftYY_gy&HhIuro1$@)
+zO<Cf*O@&HM?vyq)jyrjD0pukKwfX<tz1Ke0mk-#qM(2RMR}!j2P6y<Z&Cu`HLq4bF
+zofr@KvM^LfI^#EGAX+Ymd{0-lezcPZf{3^1=QC{TcS9h*dO^QiMO+D$y$kUeeO^Pz
+zpCNz?@mC@6E?J=v1gm*pVr$|?D0vAw#qky@OEA>cC&XB2eHto{fapN?lc<0BLV5Lv
+zx~_<H3sSeTX?R7bN|V734}q%h1$NZaCSN(-rpXfp<-ZD|_feZBOIqT3+I$~~DKPnF
+zKs6f;?if4@swM5rVzZsB)YvBL-pk3UEu1_)(5CqAYE!zEv8lqhIeBN9O`Y|wO;cim
+zP0J%QRHvaZrRgHOuLWQE4XVd=h%R({hz=uHKt)Uf??Y!w6hph)lnv(FRDEgb=zX0%
+zmrdiH#io_F2~=bkm`1;$2A_m!wjXNZDp)OjpeApI7&{GW-U*0F7i^k-KcVK2gj!U9
+z{`tU6?F+TEn*(gxn13(8PH(r#hlfKgSK!0vLXnB`CG-VEou9s#Xyy%vT0M(?o?=s_
+zdEjJqS^;`r`96o*&;cy|k4@Rk%cgob2x{X>m<?~Bws?U@(dTY)&<|aW{f4TQ)22DF
+zfIMU<_*gn)qAK7#R-=yD$L8uKs06ygEhC`L93$^N&ZfCD59$&*n3n?T*BJ5-<g|$9
+z(_x!d@u$#P+d+Pq0PR7hT%i-Rql^TvRTrA5dryHTJ4fxN(A)k(r@ab8n~Udkw`u7=
+zFbN}JjT{bhZ9avGYOsb!LJVsFE9w{2w+cuV-5Ca3k?P$}aIa*fd2}8!O$($gyAG;J
+zUbyz(4t=`=To?C*?pg<q^sN`rhxJB=LZ2ayyh4VpNkGwT$mI6}EcY!Z%SmMVdljq>
+zN0u<MamO>_b+D|rktHe#`c`XXxmy?znUJ+kAUT}7$R>`%yq$q;^LIck*n}J{ijjlL
+zh#b8sKIEK+923eyG_2&H7v<>19AbH53egk7zZr5QlB<l{W>XjOMb3$bz`KPbSKK?u
+zJ9m(4*8}haPmt?Z0q`9Hxy2v~VlR;=b$*yf!;q)oA)w<A<k^%25it>YlCDGFJqowL
+zLlE7Y!EO0Sa?g&6a9i;XI^i?&k9-1guo4RLk`PgOQLx$>sFgF}p2i)#{y3Ya+ex_J
+z-%pz{5`}h@hsnGWMd<@&kpn2&@h5bzN+|a870i{)C{g7lRIM{kPMv^~KD4s=-r3~s
+ztJ&0!#H}c~?F^)6LzId-0F(VAJO&OXC$k)7`qDjnF#}~jM}kkhjIx_Uz>A(m*@uUL
+zZLd(ya)DX%0Ojhg1G^B3@~<v|ZR-uspIf1eK8M%rK$udm;PsepP2*{(Sg<9`3{O;S
+zN*lZ3QB>0F;9!UUL#2NGA!*Z9+S(9$T}M>DUmiLs#-`<U3{|@B0q+-wDg$dkm|Uo?
+zy<nDBM)mi3!TK#g4eu0)3i(lM_yic!3Ux-;0Q;ceo%RcK&yw(7IT1RK4}40~t(cVw
+zzIy}6vpz-Lh|v`Pzg9!NISCNS9Z_!;?b^6Ts2@-WDkT*4_x%MAXk$}-;Wl-|In+P+
+z2eP_`AAbUt<~RJhJ)m8_3VzW;DJouv-?q`v(Yer|!ffbeVQA2~6Oi|*P1QUA4WcQk
+z?yN_2ke}yi(J<g5_$ZBrEvit0u@wy`(TWUcf`%y}<ThWxzX18_cJ1L`dIChi75LAm
+z56qVU|2@wsh#Y|b3kp8%CZdrX4t=vb8in~lKmLhEQO9W|UD4<S`G{=$ob2FZQ$LSH
+zBM1G!%2gNvbB=&_Xpevc^g-EPBj9*x=(p|AI4qc=*$_0T_Y+9@XjA=lph+{z3u~1@
+zlU51fq4}L$wE;~QbOGPg0!=o0gP&}MCjYrWPhE^=mkz>+y$D=INk<Qb=I#?=70VAt
+z^RO=fO5z`R&y8q)<}>AYS8S@@Lv5POgV6l^F|d2>ZK~eK(L7}mSo%h28BO8&_*>#J
+z@bCj@Ib}A*kV-by-3~T&wh3refr3y#akQE}4yNT?v^uIN7nturtFI@>@9#rU%pb6P
+zBhb26C$K(YXuaz;Sc%VQz5f+-K8DukXoZGT^d_3vp$JYNO~(lcE^!39fDeMZk-s0h
+z3&Fj};S5bi@C@1`N9Q4UE!~oD^z*f|C?*Ufu7g=#4#B(VMB*IX5&WkhIT}B-A&;d>
+zHbI-zh5lvaHu>0sHkE57CkqsCverT;M;5lJ3%9jt4kn>ZFx{HMCDFF7FH~6v+WtHY
+zK1thDQ4ekEV)xN5dLFnVdWHSMyiP*99V_XID%&)%o6+tU#p@|2Y^w1t2$@g8D$h5x
+z-xCb;IUPF3Jfmn<3SDL=!J>pDG>Clrv5N@ZQ<jp>Lg@Z25URx$^k^{_IKB!!+S2c}
+z3_*`B<LCrG*mU59^9`%VO#2P1$5r%fwjOMEYnvi@DSC!cl&d`wJ&y#ysx}`zUz3?_
+zJccm0EU>!&LKs;C3%-fob0~$Yy#sxl&?bK2ioX9gY3=9eJDYNe!M6~Z`YDXp3PifE
+zqd@ltkriVc;MYr`zpE$Mvnd#G>k!zbbr^C}fFFE?kwfVUd+))>GnC6EWx%L%zCekg
+z7@e~Y*u~<Ani>z2VGN@7Z3I3RMbxQ3fcqyzoqGee-xcHEuZDRu3llvgRNZfw6hp4M
+zQaeogJ(*%c8AQi8$UJ(y!sHGfusX(L^3a*kYkpz!=BrRy582cQ57@M_9mdpQ*C=x-
+zgy|6vV5)t`j2X0)vpq4>H4-LIQN%Wkf!S6GvHp}h3XRyi^C5jtV%9L)<S*)C)}avS
+zdo?ioX*k4^WXyFG>j7Qw5a!OI^m|BKn=0rq=28ZvmbJjVpcYV*hhpBzP7p7e*fgu#
+zV&3Ua<on$*|4n|dnkiT?DjxjaWGtLG1Z-R{ES*dD`c)?^YnBNrM_nv$LP2Z&MXb2#
+z1IrY}>dvuX&40nM`q>`n<Fl}?dr`2W)v-RuWvH9avHmnUp39T4vBNTmUZW82aS?1q
+z32d$s3bXh(Hh+twY-a_w>=*(w{VKLrNP_Y!g{_BMLH$U<wtKTFrEh~BKZ-;DnSh<8
+zmyj7A$KDbnVR~J}-h>>`E1Nm6ZzrYCnRh!`N@3p(%IVV@99rQ4KEEmsJr07Z?ds&z
+zOE_G?1E?%<v;>{-;`2B`$)|cg04IN)AWzx~r>OMez0TWIz2D)CrJ((Mapt`QuW-z!
+z7#(a=6>$u6zNi@EWZ&;juG?nQ1m3Y}^>*Own@kYn>*D;ben5CToPSBj<F4aU*=&%V
+zQgE45EXdUYmqXrx&-sPR&nXjf8-mL}PXKx9<7x)VGu}?b)q0c_hde-{YXH@Msp}!}
+zt|xep%QjW_(YTqfAXJxMxRsl#-)^sPx9b*4Qa3x9t}pIQqe7+q6WnJ4>Q8&zuSbbS
+z`4hO`m|SY%$9S;*GG#tP@L*3ph%q(su)8~i`iMvA0-#d$!lPY3U`jm3llKA+QF65X
+zLVikzr#q>zELIpvrDMrOu0c}bJ6IL+;Kf*1h@G?X;wLR(lQuT>v}n9sbCmYNHoW{H
+z>F2MI+=^D_-V`K{%?okt0+J6<O25K^<m(hwyBfTnO=13UeJ3yN$D4xN9WXJq@wPeD
+zbQOL$IkgDhZVZHea2an8M8OK_j*mSlS=<wcPl>cwvXpkRR1{LKQKh>m3%=ARhcx^i
+zzVZ%G-^=3blmN(bx9~j=Rk~jN@U!m@=(!8<yI>@Q>oEK`B@le%2cjbolAPARH`IpH
+zHqDCC4C5YvEz8I-m&_zhNv6|v0fHJZ^O{yB=Llx;NLcv_GHap(V(o5bC6aYyieN5*
+zqaahaW-jNhK`m^}(l5*lp8GV*xRHvEPVHG{wi7bs7|Z;o4n)#Zmc=oHD&Iy~SoVuA
+zAgW)mDQiBnsbhAq>~G2LS233J`c&xLjaaVqyTNaMVY$y0qBQ*^%e$*A*uokt?<3kn
+zO)nGcfHy0~^4%K)D|KGx){t_+H7l6g@K7Lj1IwSDDx|s#S;6yUw$BeUhkI!{^T>9r
+zP?7zlPNcA6b??ADC5D8;>SwVM6`nxOyvIBWQ~F(|JM$<;t~9-3rC&0LtKqCnHoEr(
+z*RgVs50E7D)X9AfS-B)iUSDTq<(|_Xs=AJqKQRc*oM)bW$WNs0;$#gshx0}K#;iim
+zf>h;<XB94Q2Co-p({yuZ72|0${a2e+yhi@OqYJBq9}u<Pv&z|0fsFyHT!!|J`(IXh
+z1|_Y}9<s``0{C2<Rn55x7*Ly4U;7Na)mWP<cm}J<W<qUR&1!|LprY6DiPfn!0A|d5
+z=G{FLC5=AJd)QtWs}%G8kAg}0b<C$%0@QXd=F^7?jTXT+r8i?f&#O=Z@qzgkO$1Bj
+z#_Clr0hVDHYe10{6%Vq8ZAs-QSduk8_!R8mVAkwQ4zP+XSm5hu=vw1h%c>z{|DG3F
+z%S)tOEp%tCj^qXF>dAuAc~hmDm9-w83dXx0Yjc}cX67~4w)#kjD+gHHLzE@gEbZj^
+zAe&a2?oOs{!rERU+3m|+*1mUoh?J?U{SbFbG!C%#zbRUd@6I}cO17J?SjUE5r2o}P
+z#X9Hu04tJsc{=c>A`6|@pS~d3rfxrhg{CY4+Y;yG#cix7cZF#(hxH2ocZFA3SafBu
+zyV+RSbc$;4*RbA`UO^V$%X%MAglJ!p_5MMHO65H){48bF-oC6)=XkJzSy<m|qe%a$
+zzLiDzP|ff1*2$t@Y?`szSpO-WP~*0-fomdQ9^YYuIuwMQ6Tt>uxd?OS4;$R<5b&!m
+z8yq?oD$`vycsnU)XR@&&0Tc~OjbOt+Q^mA&6dRE>nZkQcHfl|I$}dVWXTA`{#^!fS
+z0GqvsjXywfTKr}cR&R$`QJGEHzlsWv32b8SXAs-kvx%2TcG>IACN-k0_uf)AC4&6I
+zrl~AuDgD14tJw6-&q(czW;2RYMij7<&G3zd%>0_oOhd|Qy2mV*QZN~io5lW!gPhce
+z&Du>TSgseF?Z_PnQ=vVZ|CS_}No8!BC;iysoEL%l``F@2g~+a(vBeF0LdOqhabf!*
+z3lwH?Tdslk_ONO7CV}kGBbW!j*!nYFAg*_1>+k)hH_JP@e;8Z;V*!27GPdzH{k*~s
+zw)w;lp!fjh*jBA6P<00TN51h6+vXSv^{gM;cB&wF>j<`UG8GaL7i_A?(oV*8U^}-6
+zm=8W|*NBlMr{-t7M!A9IRc!C*HDISCJ3>;P8s3^6xtkgKPBteWWM)VIDlor7ETIqy
+z99B99O9+jF8FrYR3Zi?JBLh2kFcf0nAa)^{e7C;AE;ZW+{erQ}*}gzbtH>@tPo#<`
+zfn9M6h4!w+uI3?^+`JUKdX4h=&av$3dk+4`ja~io4x)n}yEc-l<4&VlqIU_Ze1ceF
+z(~FR9x7m%@Y2coYruGX}HoKE`KH0Q-Jz+P8#Zg7%WmB!4XVawW!frlqO&<`#9t@`N
+zyuz>t`;UUh=U@+8H;4JumOYH8YWPV4d*r<oY(^pWxEUp}qf4;IFaCfRpUj>tqmnQ6
+zQ1-L|scnvh1K86OnSjBQ*t4soWL9p@p7(W!ba}&GEOw`aV>f$we+)$1RxG(PnNI_0
+zQ)gYuUK<h=I}BlOa+IemH#2+lfNsg#<LoVkU)5t7duO$xSTK-%@TB*3b@t)S6JTq3
+z_AxXGvTb|zB|~XA_>>atN6o7wC@f(=e^EwLt1|mtuOeiN{p`O=BqAO-%>Mkl!tTE8
+z?|1Tq>4VtcpA=-iCD~NHHgmkF1ARZ3i+u%QxgFz@6@gfoovS`E;IBGxowGkF-ix@d
+zcnIeGG;aEkeh@UCry4ke!l&Cw?vm|2tU`IYizgKx$6R>ohP3$t&hRv%HCV3B+_m@^
+z=r{eiYtnY`urQwfohS6mv^?XYSrDxc@Qgpm?q}TRncI@p{8-1chBt%$8o{%VA{V<Y
+zKhNXq2NrsV=l7tnzMu~;6hqd~sva-u>!2%XH-i^lOLkp#HTOt!9j4zzURs@nc~+K}
+z`P~J&&=OuY7i~_r|9Ckz0rJX3UT#JV<W6^9-s?E5{QY?OHB?yaI>|j<o`Uxu$-SbZ
+zpl+<-UcVmz2QTr8?{`AX0I&4qGepz2ypnywZFptJee&h4_wlNkkHHjg#;di>MPYaY
+zubzqQR1M(ON74zkP2@F(bcSg1-KORnd5!2&5OXW?8fWjqOpE2U@AyLc)Zlge`ja?S
+ziP!l?D`XmTpL%4@2TF0Dr}e<vcyiwp185~y@%l^FkboJ_9eypElTdtwH+K6Bd7}<*
+z(l{7=z+c{^$4ZE&Gk6nHK+L)2yxG!2u*M$Y&CZbcn0SK+Hckb-^)hch!IfNW8Q!u1
+z-6EBNw|sXMGCDmED)Wxg`1ibZ3A&I8e|T`^9T1Oa^EMAjXYgulQ;Clb=Zo@LdE1l6
+zA(lPjAqNA%FAU-x$7Z9dHjH<oD-ppjc<8~c5U-~3&==cbRzK#UpXdXJyyjigQyTrP
+zKJWh2g-+bfrs<TC=nZ-Gs7=$UCGQdbnH*7H-ZNq+tP=Hk?|f9uc6F@geJ%xn#f{*7
+zo^=Mh<HP&)&P(#y9NzB;HJ6Iq;Sp1kNS@EgBM*`E+I}zZKg9#e)0g+(Px-;qPJF;U
+z$^*g&@Bu$477TpD2c97rE@Y&WOQzZ6vpe!ZrNUtf-s6Mbkq2xaV3RxMcsXCh&E$i=
+zQ(_P~oDaK4>Gr+fd}L~}+d2Mxbl!I`SF7^T8_CsL^?20S$x!`w@u(GDDJ-XV^4vW>
+z&O8Gv-Jg%^6GgInA3p9=7Ls(=*i@f)^U3~+Fh0VjRWk#h{6NB?`u*Zla+2ctEiIqA
+zW+$|ZKc9N37j?fpc}$Eum@aHnRT^p21iA8QS$~lvbCOSMkVv;+DxWsyHT4JT+cXW1
+z@tMQP8kR{u^9r$4TRy905i0M~@L8>2KpkX!_A4rGmt5v^DqSP}@AZB@$2TL?ttEU;
+zyOEH+7V&xANGP20kk5N^9irJGKEJyU#L;qm!O#?-#$UehLo9T^RD5x73d>uT@x}Kk
+zg`4yrU$){N#Fy@Tc@(MXgC$=ZLw>=%C|{SBTyErKzV2jm=+8y?`o6JHqdW8UZyYhe
+z1P{J}me>lp%r{i|2)<?|-!PC|?b>R5^SU}z&6eO>bW>Qpg84R=%(Q9J^X)zqT>g~h
+z+vgX83?It3uW}`^it}Af_Q7P@!uOQ!35+MkG4hCI_}*L<A=-iOBl8n32l#%EV-UmJ
+z@gt5=ln(ds<wrMMCmo;)KUO}TRO&(e_>6C0a|iR|9}=NHtmFv+v^TC7;|Z@`LH}2u
+zpPUp06ETFJoc|eyC-ajF|Ixuu<s`EWyTebN`2g9zG(Y{i5Ok_@{A@<@c-Q^;+3MuN
+ze+Tok4KKoSiQ$g3k%2JD^ZB`IHK0;A<mZN81Ru@$xy0E}0p<Al5oF)v^6?9~!U5fo
+zU#>&9BB&L=95f5UHy6MBoRZ94u{^ONnWb-0o;bHYP`x_8-i1124SVogRUUwUs>p8z
+zks>m!4!^aR1c<VK_}xk#kXA(pzgOT2)Y-KB!N53(m>T@?pY5>PE#pbGRzg4B$CDBd
+zLCtB&Uu5uxUNwuqq%2u&9mSK2ogv-w5Ks0I5Rnsj^0V_0o4xs~-=vI`+Q8q`dH`9%
+zlfM~R4Pt&e{%+AVu;+{T`@7VBYv{*6Y1$i}j(Gn08?{JeU!F3Mt~BW*|1y+ZZk-AI
+z>#vJcdin5gYpF!55z2q$%>Z#TEiog+t?WdKmbVrWGeg{VBa*q@UP;Ufai=IT8*w8s
+zJH*{G#2myO{O9$);71t$m5vk;$GAfL*DoKalMngt%am3p{NVqkeFwIr82@`c4P`*V
+z0{tHYo8Acg78L!m3HHPn`r&E8|59|E`b8*yoOJ(_!gQvXFm$P~rU}Xu9tvyyZOHnq
+zY^pGKn>tM<B2`dd4+)okWvKsWEfFrCDNz`i)20k;B2uTPf+UBJNZmtI78@?o4503K
+z=V~@(y{a}<mr^#h%YB=MO%!RpsD8K*A<~kzYn2QT=_-$g8Sz@Aznd4>QN*Uz>9EKc
+zO^z*lc9D5lxPu%?36Uj{mcGUXC(nJcX{E{be|`{ISu>awS4Gwo+GI&>ZCb@bMfNw_
+zU=@fHIdaBO{+~zW455zM<{u(w$8e~OSw(JN3gc0&i6qyJc`Nc{r0!Z+DUq*GIQ0JN
+zB41aE|Kj{O;Z`?>8j-(6{y((4^G*|mx^;r=F-H{IM(TE+lA^G`2UW?pMd6q-6yI;y
+zRCxoO9Q4|z>3B*M$yEd9VjWTBVJcwO9Z|G2Swa6gqC^DMe%(%q5>as^(WVk5u2WIF
+zb+ahtsPYBkY)w&md@@+ZE23<0d5U7&ZJN$+McF7ytv(DDWl!v-Ovz1n#RPywB#R1;
+z(Uf=`6&2(AL(K|ya`tFZdBIuel)R$y&IQnu(~ByZ3&VVzC#vir>-h0qR6Rtc+`G=A
+z<|RKU@5RDVt6(6+fg++#wMdwuLU?NumDc(R?;#Ywi<A?-?dd<(nIn8Jb*6Orov3#s
+z6f$Ef;a88M;Qb`wH;{tO(x<|2a~G)7XGDW8^!xIPP5tMrXxN`Bo=#1uvv(Z&(?ii{
+zJqeL<&qbqMDbzQ}>JS05YC)EKC>p2l4E3|BXxg3pLBqMC=|*xG@me%@djh_Ti58a!
+z0Bb6XmKST1=<F+6ZOI0<VVO<dt(It0u^bH?B#L%LJRzI7igury0ngWpc0c!!w&dyL
+zltdA7fJ7{pxuX5jo3JK1YKaaVLa4LZMT7>DxRkTD2t7`lqe3ImGut7s5h0?N8U$-p
+zClN*|lYCAs{fQL6TXh!UDfOV)84*#@i<;6aMa1Be&?hsAh?^wSFDWPbuXly+b6*S?
+z#erO*HpLl#n=1WUo0cPEiWqR@1f|<u#6a~7B27;*$d&rQ&7O)OktDH%Hxa|qb66v0
+zh~eq7!3<0mqdHOY`O8g=u2>xU@Fy|aI}*r}U5vXnlVZkeF)`0}=vpVmq<54BkGI6+
+z=1)lv6k<voWlVvy#I#GXR69nBY00tF|Jzkd%m|`NWLBb>apg1Ah<9RE$7Pg)<#zH)
+z8YdI4I(hq;m|glkaCxPe9Y(5{|4U+jpix6HH#!NdaF|%|hpee_8L=?Pg%p(sV(~9`
+zh&DIGl2#OL{g;as8>t`AZ?}jW>*@e*rWPyj7X-^b#>rBD#M-Y*!8^H&4O8d?dcG0y
+zRia46@)q%v#{#QQh|OCDQA5&QZ0SuCFe^Tb?b#_kmutn|>jB`Ww~76|DK@OyEB4R(
+z0o5vvlT$K_{Yi1)T?U8)?a4LI9ViaIr1=kRT^2_tQtcL-B#z$MOVbV0#j%`>f=_yJ
+zyf~@fTVIIdo$f(qiWA4Lc#vmYCXU}JO|@N$lWP;jiEl$;u8b8Y8EHX%@{5z@UQydF
+zy*PQ48jw|IiqqQ?D7md7&g7wJ8<8N+bgB%q#8;egob!g*o>82Q^n`M_ii>`9FZ-Vs
+zm-`xs0b|7Fh2)TS`-;o&m%z$=OI#^>0pj>>o9c5;amD8Z^oi->Y8%QU!gh*l)hS9h
+zTP<$1SP5ayi5m}nX%yqUxRv1r=?LS+tz3nmnhz1TJ5PsP&|Wz1{Ci_j3vs71WhRYx
+zh&wMyN}ZA<?k+C?aj~(u*PrY;?Jg&4^mnrU9dX~f0k(0MlP4aE`zbUnCH{)X{-Ypr
+z{3o8K?gyRFLL_YxU}px27k$VRM!pg+T{D7heI#B!p_LeY!Xe%iq+l~EM!a#frA;_q
+zygBCyvuL4BYtj_)<}N9n&Hjpa*{Pw>#ZSC%MJiarRPn*{Hc)4V_|S`D$hSe_;~4Us
+z?JtT?%gGTXj2B-UQVdx1MSML?x1e04_%@h9J=`q5eW$P+e^Pv3Q3Gh;P~!Vp3JyEI
+ziXXHo_~b|8*TN;hx6<PGPWlhtJ;i^uz5w}r#DCNiQ2B3*KOHE}hYS#Z&mDqE+eo4v
+zdCr#+l3gR$tb0q|n^Ly$5GgNTBXgZ$(+VFf)mbvTo}+9Umls4zbR1=B(~CPWF1w_T
+zZ$NFepVEryPcs~aWU6E;yXTCPE;Yg-_imDDLPH?qx=7dfM5<&?$#hw_!rYCJ>3)%2
+zKTeSumQy{TAIa=pIYfavGUtriKx22A%P%u<w7$&y>knAHi85c6eh^;QY&w+xP?>L5
+z3-C7;Wxit}z|Q5;tr$ro^-J3{-6Eu00EN-SPBMSRA;8yxvS1>eP}EoH?m;PAa4G42
+zqYV|CF;4zyB@5HBXj8_f{xL@u*+o`0`I;;mw4NN+4q0?yA()jHWiih$r2q9kA&cDz
+z2fxx)7W+>3`s7GiyrrW5&{leQQ$g}1RC;Xf2Kiu&EbT#?wB1ZudNd6yJvk`L6ruVd
+z`Kc_^><2Y0H^{O>GK1G?Z_|Wkm*qB+M032X^i1=LR*Ff_2lVs4{?aSPf||~xR}!gR
+z`u7c4A#Zo+dHrO?HI#^WPmxuR9EVxgN><<Wht#c0vii@1P}M%ln$$K`Ki0{b>jPjW
+zrk1tKQiW60N7kKI41C37S$9q#EcYZ?_bcsg|GzdZH;1er^pvKc9?1Hg$56O`A^i$1
+z0Y4Ke{TzqM<vx2S8yt(KM&ugVFd~Iq@C4atXB>3$a2eo7+~6yllzax^`bD<LejAoY
+zec5Uj#s8wCWYF6rQp3jERF|*H)=#g&%2ZsoqXGs;U1YmEuCT078M4-!TCQVdw}4|1
+zv2n5+6}kMFn{;%~OchHKlRZXJk$G*W3>!d>;bWi-`&|VlbA8!+JVmjxWo7SuRcSWl
+zvFv>=41CW**{9SDpzKoFH_top(ye8`niqjDgJr)Vw<(cHB_kTufGFI+rkXHCM)apC
+zsw){}#QD9DJuArp;ZJBq3OnS$c7I@YE|LR#uA-zdl^ooF%<MxSIXEO9+=I!XyQo&n
+z)K?D6y%OqUf*e+_2K0(!a@cOFnA{%8;oV{(Ixd$ZLNWqX*2$4gQ-Qx7C8KVW<GJ;~
+zrfPgdj$ONgbi~SXYzh^-^XJQPQO&_;IbO<f{}PQZyXCkORVZ4Gm*f6Yl)8A_rmUSL
+zCpJGu#bj$a@fuA*c5Wyq-mgdc9vvrrfljkVPRbQcQ!gLor12NQdN-7lwyXqd_Oz)Q
+zzmw7blF<xDWOT2Uu>2m%sTo@U0U<Jm8q>=0ag?0qG7@aEu_+2=mopa7UP$zlGk!%t
+zRIcvi-r_R05tU9Z7i8=ys(41!kg=y}EN@IrIV)Eb<mGTVs{{qD62;{#lI^TgS>$YQ
+zGSjlja`v=Py4Mfn?78%Noo>syB;SiI`Q+Sdiu8Z~1#+I>0U*y8CqF*0DcoXh%5>js
+zs?u&w?#N+NPp)m#8gWj}>yiNeY_FUjPOdg8R4y1A2>$h~TsR{I`s#hTDEJs~_^Dhp
+z%#*6?FuA1c38>paa!L76vfqRE<dRy&X$g19Wjz&TsdeP?L3GBgi`!Jo56Ts@JYat9
+zmT^1+R^IV4E>|L~w&~=m9BaVSRFkXAQF^_-vs}F-1R^aRf2CW~b+}wpy$eLD<#IzA
+z3Tiu^%MHgUiu(7J8;gzvztu@@Easpu8h?ylP*&Svt4;OvvD{d474Rt9Cd;_e$)E@)
+zx4*Q>Ta>aX>gICt<Vl;d#91fnTyyfnX`2el$yOmw?r1GHI_Qh^t^oTDE88@=F|ak*
+zUVpi9Lp!jJem3=%MMT>DK{MpWTO`Ten;_%s2SQ)VE93uqKzH_%Tknv$cBm`2UH&&#
+zyG(B1K!WC{0dgn52{Wpd+<77rI%uZcwd^x=t8{XYjE9*JBOQCLmV+LUR_^`pF{~Va
+z<^HG|U^Pa{16BXo=_`34nl#-$UF5+zub{V2mxuCFuo-+!9@;=I^<g!6xH9?nS3&ad
+zX!3Y3OUc7eXg<J^D3AD%Rru_X$HFI2mpq3&zO6sh&SZJ~2nmvf2g`&idx7OI9Wr4S
+zZITxbd9q3q@Q&r=$$*A18?(!kv&nN++9yx-cZazDSe~vw3-FpR&or0?*800VGcS~+
+z)F1L}jSk=;FXY()w5yNaljpP2Cj7EYp3iobm|tGF9uLIakQY*BfTcSnFX@_eA~oct
+zfwO49!SPC7TAf4{NgA8h<n{8>o+#)m!SZsIW0X(~ke8d#oX&zVHua;n@^Ys?G_F}#
+zUU^I|_C;2in1wo|r;f?%W+`xGxV-+J;{V)o@<#DvuyTHqH%5^;@0lfUyplk+O!AiN
+zQRvkt<*jNxss2y$l6OiS055x9-idYvOUy3sxj%&zL*>07`o-s0<b8WZp2){}$b2gQ
+zCm*{}r$e8Rk3a9Ak*l=w$v~<Ts!ninFL5C`u<7IFvkp6;z7&_wQ&oe`v0FaRIU8cK
+zr+oh88|9Yy<qL#R{y(6rd_nVkqF$&?74${Ed_hq#`$Cx<M(MTh9Gm)$uS}jz3dY;P
+z^7Vfy;GL`4R2|#Pw@t1?U&t=sc4<zX&j9)EMNgRaiSqq=s-O<!m+wE(+;`z1`SI5y
+zi0`%K$KTXFJ8(yS%6Oe}w<f*hr=A`(Na!I`8f}IW1?86>nP@Xzm0!k?3|BS3{9619
+z^sHF<?E)>?^b_*ijT$5_FO}c^wN%#Uli!15NhwwGd#7;l$0z0Y`)9yn8p-cJ8bY*4
+zEq|<~%%@!^`E&47u<l;+=Q_%YTMU#xUpOeCsN*kx`v!o&zaf8*3WaVIBmXP21ng@&
+z`KRSLsLrsd^<pPKR+oQ=(lGI&B?=!NP&X@D;cFl0%%c=T3|RgGij90m(QTd*BaTzm
+zTS2Me<bb|qRJx8osb86t{vJtLaWR$3v6{|!Q;c%iNdjcQV=DDza*gMPsMPzuk*Hio
+zxmG+1EBi0yS}z=I^)2Pvlg6n>y;SKoQG$~Bj!O5Cg4WcwD*e5@uqw_`847f!qO_38
+zu;(GfnhPq!xsjxH4N@6fkwO}nS7mx03oF|fmHB=Ts;ZwWN0uV=#iLiKEMDipQjf5y
+zv$j!L&s+o-!7AG$s%S>HQ8~(|Bj0{q<(Nfry-yRB<K9TfH8oVu5Q=UAk5!&Gl*V8C
+zZc|otQTf)oLhY-d+-NYJU#h9xzS9a1%cSxT^`P&2p$aT}N-dl~hbp*<miljA<-UMJ
+zb<eEaztQGeo<$YPT?D$~B~@rvd8ju{RI#HYsrGYM#ja67vaX9N&f>v*5>@d5J`fMz
+ztK#Ddfj3^RN=&89CeLS8s%kRuwwo&5ECwd^b5(i@#e{*oRhhGMz`LckX_(`%Dp!y`
+zcuGrEZfFb0RoPX!XD;LzYN+z_DYrY(LwSxM&9^UCp7ZI89<`#$+#R%1`IXnZ=CH~P
+zRu!gQg;;PvRk*hjMuw|OZKy+{XRE4PC}-@IV$)bJRJA>spn~tK>i?dGDe%`x$KMmG
+zX0SJTwE8x+%U@M<AJy^Y+NxS@S5aLsQPtV@6k_F0<-L!R$V-9B=V<`g<3Xw}HKj23
+zw5ogQIEhzjY%0&JPWBG4X)@<lbuUxzXKhDSPvj(5ze@ShT%gI9Q#IO?ispYly;hBf
+z)PktFOf??<ip=Y`YEo%0xcQ@+Y}iL;_ggh}c?a37mufLa0YjD$6QJtdQY}5BXw2@6
+zY8h4@I-;3s8B3%2;rDEs5}Q>}o8>Tfv<gm5xnW(0YSZE{bZLLpwmv<kQD6R}16J;_
+zs=Wv4c+6LIq@E6r<WQY{k<@a(vg-W1J+z2XU4q8aqZS2Kmp$*mH}6qhZ)}HXGRLOo
+z%~jX8*C0;zQ{B>Dqjp^z)vX5YjZ=ZDd$m~*EibF?Q<{_Gs-n7|q0g`8Vv}$7BRVLW
+zo!Vr-p|fpLJtjORvwK2(0@J57@hNdQk$Sj&&ZwTnTF?hpR6Qd|`IuBj^}J8v`gVTR
+zs~|a?iZ4}|s!Z+qS1POx>4q6ws<3XfDf@J@X{xSPVGBa&c#aC&oj?zvJXgIPrPh;d
+z7No-4SA^wxQ1zKeRc^_mHcgEzs?Vv`5FgU1ey3Z&EbFZzwve^_%Aq1|kS<s#zl!)B
+zK>fdD)qhC>MAtyo{}DN~&_!y%Ur&f`t<=ED2{e3CR1G||4l?mBk;3}*Mrv@xZ}17{
+zm1Bq-36EoYsUe?f={%pPVLjtuS_G=$^|L_5)=<N{(d6^0o@#hJx#SxY)QHmLV9M=N
+zBks~I32mZA24(>hSJlYozQBjN%5gLW@>Yx*ogoQo|0*?_1`yf71T}iT0Gpr1Ca>1r
+z$*CtD_6y6kz8Za}IP|$AYOG5ntkTuh_#~R)9REU1Y)F|<LR*_ws(3Xqkj(YwFEw$)
+zQ0k1XR+I7vkk-3bO{%70X1!6-)(?6r>aLnRIRG+cqMAIX3&iV^YVv9t!6+GIQ=zw$
+zl^r?l7dqz=o2FwqHF<*<^jR-8`5cAUEn#X(Q4*COC8;U@p7Ti{_8JT2mdVM%^z-?2
+zLURYJDH}<+=(&_g`rrNjYRV(>7ZaA-)Ok{=sXY(DYU83}()xlQDy?Fw#8dtszeLS2
+z>%j6oS2OO#K=*p7X8z0J#++5L*OOqbj#jfiouGPtshZ8QKoo4Q<{%ENc{4R9<TKdW
+zG;01w%4F`HQVXt-AJ}}($#b!4;Y3PYh6dPFF}-Y>!L`-GXxfBBhuL%}w-xpaGh(Ps
+zt3afaew);y5-X`CvqLS497#Q(QEJgN`hsb`HdXcBP7W=v7CoSWh2pu?;wN>$$Bt8r
+ze^T_Db<#;{_ATMm!1&unElK!JPe7$tOYW?PK2kz0O`bsWzd`lXiUV%Y1;SO_Ybp|N
+zHC8J>?E_oBSFQf1-4wWD(=0ro)=>Xm>|UkTw4kDNX*#v0$96iQgErN$oNCSMxlsQJ
+zwKh9_!Qo75ZIR57)lS+}O&>b>m42R7kaWR`YTZ=_O)530sn&fbL9p8&wSF8uow$CI
+zS|3f}b-ATB%#tKTc&H6W;$aPrRT~+3#4c~urhU|u8un4eyUYU{P(sCzas_J|t2Upd
+z;I%SPZT^@C++V3Jg*?E9Jyu)7f5P-#t+ouH9#Z~7YRfjtjt_OF=a0707af|RwkITl
+zXC0<?J}3lT__*5nhkSJ29ctGk3a^hs)cyuBl;a&x2P)9xm!F5K1C^7&8?3i!;-l4p
+zCgkHO%Kf7n6{8N!3IKQ|b*Qg5P@$zwK6Af1)Q>i`XL_5mPHW}(_l9C8>^D@Q5GTtF
+zce0MZO}*ufO{>>pb$DY8J&+Wwj!gddbc?S#a_|S(uBYl)13IocN*x<SpXXSn5*Co3
+zNLZ~B-jgRhKS`a)P9E~kQgy0pBqcm&)v1YDsGUeb;S@cKrJiL|XX{^ty8Tg||NR9j
+z$76NDj}nA_jn#!uv}xx4r!IU8BMHV$UE0{0lFXbo*~Jky)!6wq&2ukxxzcy2Ld(>(
+zWj|??Emw)21}MDGrnz(8rd1?ZC7z_ztqH~d>t*PRj-FK4|3$IVd(`!nU7*HSS2wD8
+zk<^;OrW*TQ-Iyd`UguGFACgG5GC<vnr6AO(yn2|OHe<ho>f!7Yl+5N(kA~A;SYAgx
+z`t#2!Le=9Bq>?2LQO_EOKo6a)o^8tyeQBh6b|e$!|J}N)XMe6k>^-QGTn>Sy4N=eU
+zjDeiALcM(Z2WY!bCA%D>3CFG~nFfa0e>+vO+Y-tVf2z0b=_$y7_3B-E`ocx&)%&Oi
+zzyde*p#|CZ>D=mL{|_)#f`}i9Gl-vvXNjL-s?tPo{}k%~RjsB{I0b|0*;PvI2e9x+
+zr6jw8@2#l5bfZ3A-?r*&ssb?2JF4&5LLes;P~UrX0V{J){n+^cyl_7Ca}<?WBQL36
+zW2p%Jl%)RTUqV)}U!%Zr%BaR_^vX$d!b3Do8^F{os9CGxFmbswKUjn8fBz$`5^j<V
+zUtO!8G&))HxlUDr>@#wtPSu61U{0)dX+jN$E$g()pca(XdTN(h<Z=sj(P>Ii(0W)_
+zr}3lr-?!3fW4nQG&!%0=dQvV~LA(0IgVipeUH{FH^h&4G1;>LQd9BlToeMEBL1&ob
+zpedH$5jx{44tAoj&O#auj<nWU7B#2G=@#o;u3cbi)YiG0(=8hQ%BIdfMCS>nusY?X
+zO;PB#cH8U$Iqjm(?>i1OVX6!KQ^Qh6>w>u!LC}R2JmyVOO`I<Hky^NpvD*DxEvR?h
+zbRoy_i(uy}>moI&2rV*Q7oB|us_zJ0Vw-@h+e(*s91gvBpDy{n2XH4)mx`wo`|GDm
+zZK(nNC7&)GZ~@f*)@2SCgn1mR%N)NBwPuAbbC)WlMX|cP?=-L-f3(+4QqgYD&=uws
+zq?wTBHq|Gl9hLmvfyMUKmFwhy^vbBK)y_*2$`W0@QaH)(BXo@r+D!Eh=o;k0Rp*7e
+z=GLZQJAc~Lr`qXS6|RHz{itiz{S37>jZJ-hy{<KtgvJYJwD%|yB&($m??5jft9|2R
+zz?L1;b(h>Evux?m_1H&P>F4WuMHSeZC%Rs(7O*tE|6~Dlx9qz9^>C6}mubI?Ln&)L
+zs{O7~BeLrh-QZGdYC3(_4YNL=8IS<oFc;n9zP)wBha(|=&(#fI`9h!jrTt6N3VJZ@
+z-(wmzE_doiHQixKR?&@yk@-bBPU%KFc9VeETn7{^2sznL2P`24wAmfqI9q;*VGD@`
+zh$*^px$ThteRUJDg9Z%x>ZVhVgEz{o1N%flheqqbp=4IH37aqS0Zp*!7L#3R+}>5U
+zcy<wTO9|c5qSEf#1KsL3S;PEb9Yj)$<tRH_2R+*X*>RUmU3|I@9{w3TE~gGYmkFZQ
+zE}MEo2Hl3@zuG-Qx0ymhLcVl1Rr6!IZL>(I0k3r1Z>0A>y`bB*qrBkE5gju2HaW6Y
+zI^_LwpwC3zz6q6bTOK-j@ty9FJ0n@-$c?%~z3b3f{^}0xFG7FMr#qUSB)jj`ovP)c
+zlFHSl9@9s6I!MWA^HAM67kNULhBmF-4|Ql~FQDi|-L=(4h)f@K*XSM4ck}CRbCMzQ
+zZPDG9C4=AS>EyjSx_cG!8*QfO?mwQ={9onyx<^G%>dPO|J;qW|8B$J%MUb{LA&u^x
+zO+jy(r~CTlCCTN0?)yF(df8dsZw%@BAKU0i<b`~_M@Q~(1zWXCNB*Rgt5P04r~+w3
+z!7KIPuM%SV20ipgNtp8SdKfjg#el~)RpI(X2NjbQr1K4*I!>-DW7BvIuxa)7*CWzK
+z!Mxa`N02%$2DZ?Sia(&<AJ>j>GT*=v+A*J&c$2qwym|&*s+S%WNt<^>Aw6nl6pi8T
+z&{6w_1AoGF)P*V3U#y|WXY&Aat)j;}TDbyCKI`$n%L8#|^@LF#F!x*QiEgy((`jvs
+z$+dIZwB&F->3)Cu0|Je8bQ^NfR$m?cPa(PHs-u_9rU#K$=;+hWsI9(6Pq|3>MD5}>
+z^@@IaDvf5C?Ys2U(bVc4I9E^Iv5#6hQah$i^9CQ-SpTDJoM=-Gu3*!2Kc}aEp#)^x
+z8y(vyk(7+(I`$(i^(1#an>rf0MQc6VLA$?yoSvOb9&cYSJ*PfpHc6|APhs^4)N}kv
+z3z}a*&*@HPTB3zbvt_-W6GrbZ9P7|?ucbhwPNV02nnGQy0($;ba*>mzUicpgi<5Th
+zMLANac&w-w73APM_v%Fv)cZ+yNH6yN1J?PZUi|n9_{3p0)tLTz$+g`uZXfiL&%0?_
+z=73F=W2#<OXahu_lX}?(4^qRTZJGeb6dji;3Vin^y|M!}78b?n)m2Gibq#Z}<RK?(
+z-*nP%giUijqh1@^8tTYyy)IW?@b4A$x;}NmUv$^&B6~o+EvDB^I6(so@AUdRd!ZZe
+z)*Gl*%e*_<RGk(&>A3h%Z<<b5*mZ)AU-AxmNmso&2MG~At8HqYMsHi$8ERuUy~{z4
+zrOr8<CUlJ6ee)W1P7CWjgQymqR8{Yty&JmwT)lUp2Sm~SdhciQ`85vfeG_QuuQ>Gn
+zXY;`doYx0(AEKBNpbsP;r}*Dti?+4h9qIJJ)7hX_q}507QKr&vq&_z29gVET=>!_J
+z;G0L;RDB-m6KQvXxAN8}YGec-yjh<(Nd98OH+?EQ)eE)%>QjqX!c1MH&juw@x4W=D
+zyRJM9tEAHBE>ofM5&HZTGIuZbkEH)?DyuK}8hU(|=?iOWfIsZ1ugs%bt?FKz3V)pR
+zSf;P$A#+nL^|g3vx0#vxMrBgD{Nwcv`tuwr*Cu^CfTWr1O5eU;6{6K;{a_-ks8@IW
+zAa)~7zyHura*u{SSXe(<*BPSjW}<_Z_7B%j<q)X4dGynWNQf>zHjSF2lgcJgfs$E2
+ze{}`IJy5?~Km|$tP@P<EC&lwyI=Ol(YRk{o$tU7qs-@Mh*NvmhX^MW^cP9yqXZ8C$
+zwAsop(;pqPVBDMP&%aWr3O+{q^m>?0|LLEO#`Flw*(Ck*=PDXFysZCJCONK4W&LMs
+z0~$mwZ$!~+U`J0IvE6`2zOboQel@b$Mev#5jDABI&G=wr#?xQR_?ymHlB}Z9f5s&>
+zMaSI2CTp?7rfM+5$z#z@e#~ziE+J%YA*0PdDp{S_fR3Bk)R+8?OUE;m7koCUSH{DH
+z)ikapMneSTB2p(aV4!jJtpc-tlF9gfGCi_6$z-AtE!Lo($z1y><mot*CDEInrs-+2
+z_M=BGBa54?SH{zHt+&Zm%@2C*c8AG!fwbLYe@%8uht2FmCdW(a(FE-^xtGO&SD9||
+zjH69B?t^h-$6=msHTh32f%v)B6nORt;@ofJ{=PHxju=z8#CB3T51PW;7C`JPW{Om#
+zvb{({Q)J8o=#yhi(W4>s$kuyP3^X^iaj;F^*YUxAq59T0C0bK=d(t#hBH<m`=}J?o
+z4K3xMO2#8@J!QomO*uiwS3elf@+8%``x&ogXJKwFG+vipgD3Sc6~Yezee;+KM{7X!
+z%x@~?7)!&dV@;JJl&lUqVybwMVzM=_sapIvjb<%3RUZlJlmxUf)fT=0i{D~u21dcW
+zxngQxp_OQz%6M}U9<#M}veYf({cI=sg>T0DTNG4_VK(*VVW#2kcMx4ynT8LWlP4@;
+z{9SxuI@dM+uPHj_I%EQR(4HE2*#wLr>q^(#H2o3@{VTm``gc9qfA2r0S+O{nn;lHE
+z-mwt-&ze@F!@<YAGeK{@Ky=$+T6b>&R;8f{ZWj-!I-B73ry$!OG{L(_57^qnv}sCG
+z%h_C}&Fm#G?T(tZX#(i?$C<Vn=|Tp2o3@pxlajNgY3EOSY;m#)$^I0qSf+oZzyDFK
+zlWD(z%prV-Y5#!q|D+10!wm{9*Or)$O*6qN_t10<c7fi0mROwbwV&y@h!Tux=S-)X
+zw9CyJ(`oiaaNn+`b1yGS(GHm|VdU|)8q?(_6&w>>OlXNf%BH8A&?7OV|KBsApGnp)
+zkYKufa}1>~x?_5HdQx=jYHZ!FZ&uUeduAFGs%O&*J7s#lrGetcL8ezm%G*1aF}*s+
+z&@9+N(~Fi|jlONdQfkAbO=o&vX+<^U2on+QLfx@}CSod8R8=~ef!)b3bU0)N_6-61
+z9%u&6qzgF`Y6dy}1%)};%%BxFD6c<Z1`8UuYns~(sn7)&rp>T+W9c#3b7th>LX;C;
+zHI7@Ml$IYeqvyJks-4-4IUEn>Ueb*DL?75|l9}*#B+Y>3H&YrNfvi>0Ot~}{rrBFF
+z{d*EvabGi|E4k=Fx6I6TRFtk*ZyYlRW}q?JQfB5Al1_q)n3+il&^I%h*wo2TU9*`v
+z3sS&W&$X%i51Tp5BOqt?FmvvwgYvIz=8e4u)1b4NcPk!h&>S<r5ncI!KW1S_G-=0q
+z&EmE(P#ZkW(y;+R_${+6Z#Re+f6a1wB#U*f<uEJK{Q(|tG%IM{R~F7_R!nXNaqz5(
+zTX__SKW*afcBTqulZpGDAJ{y^tZqI5vT}-9lSx31YG~G6qMUJmHM8bw9Q2HRW^L)a
+zuv*8PwL`~1Wm;+0j;18E`Cha3-w8MTZr0Z(1@z2Bvwjn0UV9w#%?6!`cJX?fyy0z|
+zqMEx+9oo)p*jF58K})kS^F`>q?q=iXd=QK8nfMVT!Bi+^;*UL`;gX|fb2yFJ-N|lK
+zUCL#))bNJ!D{i)Q%uQ{&ac1j{y<n9#n{CS}HFNoCc7)RfI5Jf=JMPgv@72ld_}~H7
+zVW`=;I4{&}FSGNdJ6KRjo9gEUv-8JOs8cu1K6=(ejND=lRHV&2v${E$_B*BNwauXj
+z@&oA_m_x7c0`8^E;dGSNHz;h5X7vCjJ|m8WXn(*Q?OhC_`x29|^&K3tbu)9Kf-A)K
+zkLJWh@>HK9%t;3&4oioaQ_&>1E$VL0_>;M)G){U|baKUWbJmZp=<YUiaSWx|D?Xcl
+z(u|sr)?5wg0ulYhTpdfPU7By^+LYGN$LpFKlWM@4$jrTzc0jId<`MfB|6d$6kFV1s
+z)c3cUCvy@h?uVJDjFx<TCiC<hB@**5nU}M^fVZ>EtB$lcrnfS$-nE8onq=P2r{7!N
+z!Mr<v2D}heUojmZ>&Kc;$t@w?wKJb*htP8YgUshR@&h9)o6ir{lH(a=z7&lEg4UZa
+zza3j3YUHOETgY4%n4h<4iEnf>zk~t`zOpH=?=}AonggBdn)&Zid8n7O%-@9+Y_424
+ze<@?K3jVU7S3xZgvslq0;P+2iY(_0=Ks>Yfv|qrbN|tU;rQ6!OmbIS#ZqTGZmP<Oa
+zx-VZX7suT=$cJ03)a^o{p69hvUu;T2<)@XlZx`s#)2*~msJRq%-O4zfKH%3vD-%8c
+z$Is=kvQ&Kl8Fa+T@^&^@K6fkUFv{sX^I5r~X%DTKVC9;T3M|V?D|dzml)_c8^88*2
+zeWRe2ulP)e0x6bTm(HZB6|)@qEh+@o=C%rCA~QNa$|{(XcI}YiR>9gn6rGw`1v?&x
+z*jd;rTyGsU7JFEQTb6}s)5<DRwlb_Ng{`7T3xVaG=w!L)R<UXifN@b)@z*iH{z_Jf
+zYSizG%50SgpuN(+lT|92TC$NJERS>n5EbV+oG-3zu{_-APh#zUYkAxxyX>*mDoq2!
+zBH^1=X5KS;UT2C`){{Kl+W@O9NhqfLW2@{hYOj}?PvOCp9!#odm7h;RC&wJC{K5bl
+zW;tn7M{lvpC(;Vn|6qBp^o5+7+4B6+9jvglDx|##)5F26$}^uq$of{537+8I<!qYJ
+z7gn{TLZk<LwW?bl5WAjR)w6U4uh`wH;rfT_|58?sj3*$kMq0I81z4+jHr0=Ct5y>l
+z%bAeDs<n}>_|px`rxKmu1V78?U#mA)0n4{e6!gVSmTx4vc*l`TmhXuE&<}cBb#u`@
+z^V)3H?fwI-%Q&lU{7tAf*Q~ntsFK;!)~0E**{YYe5KT(OSPdqT<0-J*Y8Xp8L9^mk
+z!{Z**SlDFwyM2O88f^Ld)4-A5Y&H6G8!U4jD`49fiXA>S^{<^)<Mesy`M>lnt-#_`
+z;}u<I(?p%H0`F0lnl#yJ-iq$!?r&D}Z<Mi2pJ}xOd9Gertd^tb-eoCcwfrArZvh@f
+zvV{$wk)HN$ECdY`f+R>F!Cew8EJ1?%kPIOZBSHu^Sdb7jz#xme1=oe3L4vz1iv_nu
+z7l;4t9$>lm{@?R`yH9v~rn{@Ft4^Kso>Ql4X4%M?R07xwI2ec)N;(G&gJ0mob!d@~
+zjFZQ59nN;gv|AIdV+{ynp2=Lt9uVHgiCm{st+4)o<yEfJ4Oq9)EnK*%7T0;fRm|6&
+z;kvljCHkuY*K;;Q#^=FYXgczG{}j2<{fOZ-+sfHDE&)G?=E7S;*rwj%!r>h=9xu7b
+zf~fe)%3O3s5D@1;E*j~$Or|#%JAM^0Ggoj48@&)qYRe^jbwDU4mFAKf!di__<p$P<
+zFBnvh8#Dz9X2Ei9NXvOhH0r_)dGQsSP7K$PX?B1cHnKA&79zP}E8(_RX{IC7z9=``
+z^D4skBe~%|UI@Ei2R??LXvGarM+@W^xDf-Q$vpESH)=p@L|7_tqa6=?h&9#VQhqCh
+zB(n)X_;i)Cb+ioJ$Bm8gAWP5V+_+Ii$Z#?jH*VfC;5BaicI0rJ`l_SF<209w*fBd)
+z=2A~zgTr!MN6Y?DZi4wED48dhcHM&v14Fop0Vrqh25!>bw`2~;;T)5vL1Fyn$xZ$S
+zAFWbPE}bwMqJp^eBG}Vy`UWmNAdTqn>RkG=Rm8R1!OaLnHoVtTZblbK@sdW|jPS2y
+z42<Mv+(Z1oQdbwIMRKzT#1Z3OnwvcvJEFbG%gwp!i%iKg-0wv(pE!RMH_xpkG5wo6
+zxOuxWhzoM(=3C%`t?S7xxG<g!Mapsuu3!pwU<|jgA=2!ZH|G|{-X*rcaBflg=VV@U
+zh+7l}Rk~$2x2Sgy7_Ss=@yImzhQux2kU{4B^SQ-mvFL2=R~H^G%`JIao9OuiZt3vX
+zWFD}WTRH<qYqDb@w`}1sVvj~~%e(jyll+xiQ4MeMx<9uftqK|2Hsw~{9tEA9k6X2{
+zF|p4&ajTxMCieLYZuK4vx6~wVbq+!<O(*GSGArDgJ3P$sa~-j#ppKTbL>;;Ojk&dr
+zAe^07aBH=ea|Ar$HeAP~P|#s+Q;jWza2B_@2@y7+<hCfAiOWBn+j9Fk8J>*iwz4of
+zfepBA-m@`FmcwoPx`~Xoz1()KiQli{c2q=|EpCC1O#gA*&ZR+QNqoxfvZNE+^BcEo
+z^EI+$pWt?V=?pLUIdC@ef421J{xE<@#J%VKxR#qNSpnSc0SkyR*5mfnHIq3lfZNlT
+z#XR66Zco}##EN!vd!}}Wm3++Y$pJq|xWr}FuoHXkEth%W5SHVHa0i;<0Yj#92XogW
+z!;~G|!M2^qQ0E+X&;}1`*gWoF7|`*VJGjsf<3HjsckuQpGA#<^4!*mHWV1Egq5Ej^
+zr7V{f8i2*3)48mdgNUt}o6CCVL8gFG+>z2?%_YxqM+cz^Z}@P>EQtS~S<GdJi)1-E
+zgUeotikvOMWgi5O=zEqso)@v<IxV^54Y1jbr3808={6bbT;Wb|@c%6rZ*eF3FC=57
+zE!;^HnmA-Bcaon@<|E$R$*gWjEb!t^t;!%{7RQ}l4Mo%<k~{qu!u4+FbYzR(;LhZL
+zV07BgovR2vlGueixAi=+ox5}A&!XbJ-f-t1R3Ze1xeMCx-51PV+?xaXzM8w}ID$!{
+z=~cPQi<e<vo=on~4k=_9m!hLF&Z47f#1|bI=9UY+y<Awms*aXI!*ygk+|-eaF3(-x
+zgy7TCY25W^;EJtRa(^|7CR2q;+|AN6z#}B?Rs~SA(=|EAor=ia=Eib5ez?fp@kj1<
+z*LB>T>37Lob3K<cu^BQNrgJ$r5EB}@hr0`R+_ZZich4JdGP5IhuhTIyy-o*0`1;(?
+z(cEN!j!by6juvqacP|1{GaU|c_vWS$ZG6u?xCEj8+|<E6w4=|Cx8WWh8Ae>);oRdb
+zZe(fHj(e<quG5oyqT@^M=}d683(vS`Mnu7+9o(}Am(b^Rx#!-XaH}qIFS4L762^0{
+z=59i!qZ{|SbSt8#d$`x@u(q7P$-Ta@g_xq-xHq(vjPJ^D|C~guh;?-2-oL@Z;Q^z$
+z57=&l*6ij!4*CQ6zX>{;8_ecD$AXAFN#wrdUqZ~(Yuwk<ugNm;D);sMSIllb;|+OF
+zL2<q04dtxF3~tJs(3Pg=7kTsRU}7(R;w_lcA-6akjr}8aWZPZgS>HlnSas5PHZ2-n
+zYbl=VlmbWND9@k7%!IW$FUl~xn=0^PI!I?JqmHcSV_vEpK$g)<_*{GA5i#k+=iUWH
+zG&h#dx40P@QV#KM$BtmlX8}I{1@MW4ZG3_F`9v41@&%@%;+t~#0*_$Ky1(Fylo^fu
+zpMh=pqPsm2#mdinI1nQ3e~P#E>`vwik9f~&m_o7gyk}SrS(x>_*F4zwPVf1WpA<6g
+z-^Q0_^AZ#CnJ@P@?7jV!j!c0$I$A#a@D=i}B16^ge1)!XXe#F6D|XF|sUDX1Kl%@u
+z-RAO@=FA8Gf8owo9?X!zJ%q1%6bXk5@A1_iq3PBo^R<<Y2$L`3Yv&0fHZvDrcSr^q
+z&aC3=?!ucETFKYLW^;yKwfK7LYLaEPgRj37LUm~z-?$?~O!;Sg(@w9DC4Yhsvceaf
+z9L+bs-Ik0IMfesB%yGFmzD2kLny43#1K`SqIvU&G){)6S!G#@r>1f$u*OAM;j1TVf
+zf=n+y@~uC^zRxJlx5>YhOqcrdZJYU$$^RSQZo2`yVx{oyj{6cbyE@<DEZB9?u6*Zi
+zDpY$U-(@$F+>1zjS4Z0bGEeEncg=W2hM13hH|Tgqd8Z@W{xIJ?`66bmBKhv4AOjX(
+z7kWqN$adbr_viu5*I(j$S`d;Qx|X-?hfKV<$A`5}C$_K`Z*O=H)A8?lyRAF1+jH^u
+z=!=-D3F7TwT!smEct`L3oe_s`&W8_#VwhHq?^6}yyp}uPC#NnVAP;o3{8NpOaO;2|
+zQbRssZ8b8k@Z<YdY>P|@neV%?I<Y0T@zLq4$uep#AN^_=8SgyfV>&~+GXnWo>liG{
+z&E)%E#9Y$E!hBru^GNmD#m9Fx!qI8s;1f%y5Hld0A24A$5(P5(q1%GVkW1i)56&WE
+z$Vq<qIN1F{5<jvUgzone{K$A;GPF6skMcug<nMF*sB4SKbbl5<x&T!9%zOOk)lR&?
+zpL|Mlu;=L>I<oP(_>?yY#~t+H$IOLS+;A{Ic0@%or#gD^<NYooW_yL75Q1n{hZ6jR
+zn42)G-S`P(FOaErdw#+VXu^6Eb+k;f@oD@8WJayw)5>L#rPCBXEj5}*y}(a8a|1&7
+zmY;m@AhCl(`6+#y5nJmLKXrK$S*qXXr@rq>#u{sMWLD(n)BPJ_{J$*Er(+XR^Qjwr
+z`a5W>mT&o)X=BN_b{#)+CcN9aoQ}*tVf@T<UWi%;>BxLp!Owh@O_p)}cxSO>GEY_b
+zSru{pg}MB!c@{EQkGin(Eq+!8#=rYye)jLVh<!VUpK}@E_eDMVx%aXE7t3Gg=RLSe
+zY~3aNqJr3TvhNIj(J+|Lkn%cO&R*viKgT3f`{w-O&!>nw_2idu;03m59oeU?_@z%%
+zu<!2}e%T=}aL5b%vQrq28-C+g=L{oLk;nYnX6wkbygr|?!Gz_yCHalGpYbdRtO@(S
+zEEWgxWbwMCBfD$~zi9-bVPRqXrtP7`y4Bz}Uj%8)=*w@uiipU}9sHJ8!DRko<hSO|
+z1()m<zjZ+}A}7!I9m^5C9<*FXcGzHkXU24*J;nH4<*}^a+nwL#2qw$p8vL&DnPi;(
+zkl*#EV?J>cUhunaVSjHAZx_BQ!2hv)J{c1#@w=^P(o1H3pZPKw+pp#K`5?w~@-x4`
+zyyk+P=l8=Jnja<c2ZMT&!O)OD*f9Y1ehz=gy&sttj^hv2D@3M;clkptCL@8N27jpi
+zG_;&mM`mOh{*dD#3J&(+vm}_+r*=N8PDvz(mgTcrxx-~zt)p>c6+UZ&9RZ1+I<m2$
+z{E;JLp_04sN1^eID~ZouxP;i2t@#svcH&B};ZOG1kD1W#So0l!G8_@mR&o3(kW1!|
+zHvH+r=OEP8dB^ECRWJjZ%AcLvjx4ZR=c~QJ3}yy@{&)x(Qupa-Dse$a&b=UiK})5m
+z*20D7`|wvYuM)-0<gZ?zOQyhS{GXPVMA;YkKeN1uF%RUg7k^I7Xo3GL7eceS%JVl$
+z93)2d<!^Yq!{y6#=m*U3);d~BXYn@^!D<U$<8Lm^LJ+DFe+zTNY{pmq7J|*DUMzp-
+zX<IV4ZO-Rh9EMoVE&jgw4N(~@{~#Qj*p$7&KWvL+mR7fQWZHV_XqjT?A8PTy_h0yj
+z*fG(VJcEC-cPqkqjyd`P8{d?F@@NKGu593+NeY?DoaUd^8bz$<Z2sA41R#so=b!t$
+zMfAEh|NJTz65gr7|DE%k*pyQI%LnU->9mJ`lONLlIGBHPA&8hi75-gGMAJ8X;@@wA
+z3J%-Ee_8@gIe_Iq=aaG0dLjR1(lw0#fs6RBCHi6<Kjy!#gjbvF$A9aYg`~3M0(pBP
+zDD_#OEe8?3ek9Pd(O}0Og5gwdVs9~mv1le4E;bd6ec+aFSR@!<VM?a-DjnJQkpi<I
+z5dn<30`u_(8DH-e*sY-9lNJd)G^(-jC><Sa?|K5C=|)VU2tn9fi44(CfP;t)&J=|A
+z^T>Sqi6FKyk!9KeL7cmR=;{?gyy;17(RG4kDoyOm96>Ji3bG>#a=Y`$ewixdN`?`-
+zQ%K0&JB&;{-wU~~Z9&S#b0PPqW5^LZBe;oZ*&s$J;6DuOe=p4x3gz{}gyD6eaAqc%
+zdoK`*RZ7RODl8N`x{yq1Qw1ybh%hMkh2n1G$?P>!@Zt-Sxx`b!%kh+$SB->{Z^Gc^
+zwh~IM%7-}L9ibE!D3}wb3Z;F0$y}$N;9V0oV?%cro~SH%AA{zcy-)C|=h%*EwV62B
+zPR!C8f=^R8jk(^quxzYQroufq4o;!$DC`N*w~A0M&obO-5GpL4LG0s|LdD7;9P%!~
+z&mM@?tb>F~_fWx-J%uW_kty+ErciZp2C=v63pKjJIencY)a*JE)^E5_>l-wzxIn1w
+zhz92y*;%Lqmxz5HAk;YzZ23*7`zjx@-NJ=>o$ryc@_HQ^zr!vJXs4rPdn+Be$ofLP
+z%W&DU<AnN+F(unt*3mN6U#K63;eG#z&}7PWGVGcwG^>HY#@x|Dvz3`J+ph#i&|9Qf
+z4Cp8{XL=D^Dxc6I*By8+7NJG6Dxl%Zg;u|}A?9R?(CW5A?Ct|Xo3&0@$!j_?A4dvp
+zu_F@Gd%n=VILx&BLZMqVY_D5npU~~k62uH^E!fIo8t&#Ff~`SAVhR)xda-akuFn#B
+z)$LA(%X1w<FGMyCnb(A{+WE+^se%yJ3DjxWY9Y)yn+%mp2w`iX;Wqv$^j>%fE?KG&
+z?p}|WQ#K*IA?ES8%0l?G+{B#tO$a~!6-j3%p%1a3awUa6@84lU!lol@n<hkrAx1p3
+zm=MwX7-GuPg@~hw6@7M$6#9Nm$K+CVq2E1?h@222yIduv?LRtN*31(k$77t%eJn&i
+zJq5kM=*WzFB1EeUqS@DkXfG4dvoks}?=y9@OdTM^m@tYePZweXT4U~Kybyb3HUgPP
+zg#O8Sh#h`Qh<h`gOpfi3g!p>t*bwZLkXXutXvj+;u|_=1W<Mcue{o{tvxMYwHL)1=
+zj*#3^Aj|$dLh=U4NSB8~@@YF+8ZQzC&Dlt7KN1Fgnnb2q1%)9Y7%i)Y3PbY*6W2LV
+z7@9AWOzx$GVdhH2HU@q~LPG0`!th4%<lwyP2*U?~YK@N*hEK$B`}R&4z5))&m`Gt1
+z;{K+SMTJpA-w=~u5=O5pL8dRyg_I-6;cRnANcorxVfeDb*o~Wst#1{^m3;s|prtTA
+z2E*^>8)5t!eBKx(j9>3Y<}L+<)bg0<T-V5jhognmCY@pbM@I@1D#G7ycv_fn26np7
+zG$HK}9FWx{Ocogg7`h6R`$DRFjTfeBD)wQtFts7fZvSDz42%wQ*E@o<-F{-5R262G
+zgU>iJMVRHcf-H5e3$q?0ocH*Hpa-Ge6&L1s8;H&=5azThL|p0z;rGf8Y&eEorg?qB
+ziAgLg%zv^A!*IK>P#p#-b`usABr-L-DlD>Mz5ldCVR3*rF{9e)$lfX|EZzwc8vKv2
+z1R0N}*MABtT7c&dEGDe141LlyL0I`mT`c9w6jq+jAoH7SVRg4vP+SXy)#IOIdj7Jo
+z+JS|`Ozt3IwT9&fx-jUSuy#3Ox^wpnYcDn<D!p9DsQVFQGErE+z)FUkC}EpBa=T~k
+z5Vn<0Ag)&xVO!IDWV+E`*cJ;{ZQ)#D+W-Wm*4GfWm&+u}vEIUt5i5!5c}Lih4jd&3
+zJKh_}Fn5pO&<>1sJ@hY(Q(o!F<?bNt>Wn1Rh_}M7&@M#38HC-*Fium)3cJ%1kbE{p
+zM`PPhE`0J{M|0KFE^PR_j!gTBE}YQ7g)92F@X=rwKKtZw9elc@BNseS*uCQo8Moqw
+zcT31pEK$g`g44C~($O*z=$S~CG>fqJ&=N9acnkZuVIUx)u<tdtUMw?3*v~8lxtuHP
+z&$E#%m(~dTr{yEcdLiuJ2752(5)NcTI0M$|$aHj65DvLdB6G$X;aLC1#Iz0*j$KJa
+zp8q@{I}%NLcA}6y9MaxF)zPwhlW_Xh0b<x}7uF1PVIv>m>^g+kFLW2q-}yjXc${#l
+zO#qSqSmBx$f_e0}@YlZiWZpDdxbd4zOt+oFt!N+Q|L%Su+=_$L1`5Khl^H~vtGMvk
+z5h15~ccS|>gq)h1Z`VS&mmk7(J(qB=;Xbm|tts4tuD7(`Cp?P&i!9#;3Xfja#e6_{
+z;mJY_-<mUor^aA19We<{UtNQ0E-5@~c!i9i8N$mc--t~O7G6IIf&X8#vG6v=msl@%
+z;eGx|Wb7Iyyx#%tcKWXHVGUGd)&t>FcZALN4-vkFga40o7pcf>GQBA%8n$6LUZ^P=
+zJ`5t(I#4v;SV;8nv}np1g<Q{VqWK~=r=E36M`P_$E}S@8M^3Sb%&tdR|DT>HT1pin
+z%jumWTN#?|kFp{=1Fl#mC$bw5^Len;g%1bmX#DM@j!cV@E__p5<h_vz{g0c-uYvD4
+zsHZ5zfoL2*E6TfX60>E7sE(^nOj%V_PgcRiMj<iRXJ6tPH4$^iI`F1{trhdE_Cr%W
+z*U?gBnwTd8^!aFY9W6c{V!k&8U=^Q=ZWFE%k^n`wgV6cMIMMCGB%(KU#QcNeF;#m*
+z%)h7}CbPXocf^LN+XK=4>1(3Hcf=x};h?;B6N~!SC8HcHdJq`Zfhf_#apWNx{oO?m
+zAY+JjVTr{qtgux_uJ1?D<M@1Hd|K$proIr1tul~Voh({EwISo-v7%>hL^i^gi^WX{
+zHeIhR7Ej9r4G$EHXZc{_;;D|tWw*rQpAk8kFj4esRFX`~wu+7t$Y^5fabn43P<4Oa
+z6HAr$C)4t?VyU2GWO#a0EM5H&WFt-Vy;+wmW&4X2Hx)$0w6~62q1B>a|CVH|H_3%3
+zGIivnZ7!78iGCmPuIHYL{#$-0<A*_F<!%@qZu7;eDUglm)ef=hWe8R7<zhAL|7`5(
+zFIMXrNS2~E#cJV*1s9kuR`;7sT&W1LMjph5T2B>gu8jeYA1T(_fN}oMGqJWbl$fvo
+zh_&~ZCiAKVVx8u2NS1XJ>wAJ7*AEx#r>-Jnz7=BqOBadRyh3ak4))vas~A`W!|}Rf
+zz8E+ej>LklVxzp+cqn;{*eD1-VdHXQqurf|c~nqrg7BQB^cS&d?f_x~$BDnqT?|I_
+z8VC}Z*DSUO-AtBqb;aQP*e9URKVtCl;zUtav1OjRWKccCR=Wd<DfdZibpdNddi*Yi
+zyex?>yCin<0jG4Ntrt6uLzsMRS+R56D+Cx@h@B6@j^A~NT@lkU2pz?)L6yneWQ~qo
+z5ihap5VY9E2Vyt3U^0JbB6d5v4_WV%MO)r|WFEFz3_asd?BW4pSVdIeO*1j9e>=2j
+zvKV#=E$g{X4DY9z<;7wjypV%!vR3Td1HqzcRm8~AW-?vOEyi>VA<OCrG4`Pc(eW2z
+ze;XW(dBwyy&uhfo*e}L+G!lDR663KBz})4Mn2`TDS*it#2}?d;Q<=?TVsHi-ecp%z
+zu7MM}trU}UzrtFS)?#uwbj>1OOl}49UF?CF+zI^O82C&~j<0~Zo=f78MK6&Lv|k*0
+z0>fnG4RP3Cm&x4hchTW9AG6+@#Np*9A*vN24xfy8VbNjY$R~Kv?nH6ah=q8-CUMk?
+z)nwT?QXK8kmQ3{?h$$5Vi8Z_xQ#$1(gWp&&<w$>GUso5$)W8(Z&>(S~(J_tKGq=TY
+zrI2dHjugjpXj-+5I6ey0s?<|4)rLiAN2`dbYfm9tMG#XzBA$2lsW{;R#(RzBV%p1s
+zWL&jNoM?KBd4cyjTB7%elWLtJ<DA{%RIC9rPG~Dm+jS4i`+ABqTaPE>qA}vkvnDd$
+zlf_vMH_++B+r(M-o)i8PXZt|7rpys%*GC0*92V#10x2E5Uq^OXeR07E$inPn;-YSK
+zi9%Y5i?v+vI>*E%V>5{4hvL%VbI7ta3%CmyCoX-3-;K(bAugX>8Em+Mj;yVxxcmZs
+z*6D4S=vX_$2O*OS;@aiV1Gfr_>%_doGB3n+A$Wt%Ys7Uc_hEOe(_+SHxM=y;iR-hL
+zl4*`2uD=Q|_jm&xEtxUmhGMf}15Dxuf8>lkEi7&XsbxbtiW|E%AbNdG+&uLnnWp|G
+zZr&YEmWK<(Ey`a=<7@8_w-hQvOwJ&2S5z=+v_t$O7^HJzh`9R`-thPCVrGMpWI3`{
+z%sc|GcldH~Zw3l(P+8o&eFZ9>SKP-y$dZPN2P$Cu{o-@QLu;OsacX_>@CIMFSZ~B5
+z%g{2FT8T$n9Ky8T6CEvmMDgglV`MJxC@da50-e6CfOzzEC}_63cx)<EXSJ_lcJJ<F
+z_$yV+9={3cH2uXBdmwZ*+{IJp;8KN`6wk~zlI6vI@%*z~WSX%|yp)CjW0qCCbOv4L
+zenGri3{$kjtBF^)-$S}iPw~%DNn{RLuA{}Pws?a>NXF5#gLotUAaQv{i#K~K2$9?p
+zZzkb^9t&M~^Mj6-X~V@^%|TUv?<U?cp^wwnh<DsW5g**Hqb045c<04kEG|nE?-qEB
+zS+HW_-DHI28$8yL4O=GOy^h%L>_+0fgquV;lK7xyGRA-7f#QSXuZb;~BtH845i*nV
+zh>v@~#aew$M>hVW`1ouvQTfl}lar8vA=SkfgE6gExs>=WdMOz#yT$kO0zg0-h@X0a
+zoX+qTKMnOFL!X)A*V8QW1#A*^hqbJlt|L2;fZ6D>y^?X>3I{O*f0s;YFq2+OC8kU|
+z8GF~1ECc2fn`@86@@{0@w?g6yEhK|iBBrg($h2uH@yk5OGG~z_F7+V8s0xyJ<pLS@
+zhf6YtykAGWr1<S7X44EwEn0$@cTXg>!9X&l2S~ZvBSc%qB;`tSBlg}SDc9c)c(-mR
+zrQEe3{i8cbxsjV;t~NkNHt4gIyLk-4Y2TzgnlCpfM9LFb5tGQCQl3;dsM0S|o^NJE
+zIu1yAtCl3D=_o00%|v44ye_PBTFQGomDu09NckPunz3p>$vt-vSuW3(+|#GScrBLP
+z9gESVzR6PIX%oqGe7IEP>T}{!YDq=wFDB!BPAXPCfY?ckq+<IS2w8U>+20FG#lUt=
+z)r^v7+p7p*6xNYhvQ6^bbc)Qm!z9lmP;5TsCC{r^XdF38@><^x)XZNh5nPfi1=~p_
+zKEvZWI!tnC2Ns{Ul6Or3`TqqapE7uZ)FP74SQwAwhLR7Y-xU2q@|mLH6se5=C^GE3
+zCzZK~K;>1NRQ}0x$VOcqnW+3yg`%(-;UlFAT@d*geMhSBv>7pf8zjF#sPtQNB)^0N
+zGOes2`7OLbjB~L=@()4|=)P3RKiCsgtfu5YVJ8+8B}x8ZDojclsnW}2viLTXDyM)2
+z7y3)8HYW?Tx|-w)rF@a<dLY1f%vY+nAb^-^?WOt^p!wEzl<N1r2b?6;kKcur5jUlV
+zMbJf4T1kPCS;Wj+ECohYBGWX7AO&8?B=hETQs9F^WV!G}YS#KX_U{`l1?5jd2xg5G
+zq}c|}Q)*Eai&M|%l3Ksb4RYF2YLmy8%(ud%Hti=7`CN8k{aZR3$Gmmn))XDhJs;`F
+zcv)RIqN0wRqrzbvKtnYwB8B9K`MuX)3Q68VrY-HIwqwxeo-d^K6S|Y}+heIi%Oo<{
+z|B*T%C)CvYv(z#5E-?*eOP%~zVr6rxjtni;ksZlPodRISNBc{i1#OD9DG<XuG)hNv
+z<6=5G7~3BGz+&ksbshm($Xq6Mu@oXU_L<b>Y-h5pIVyEksu0UsrLF^U{^NP6TiLH<
+zncGzA)*MZJwvg1b6(T07i>02QP7ycgm1Og{NQUm0bTrQRL$ZyIKqBIN$#x0;LSH|r
+zS98cf-$hbrzzf)an^_8-+7My04N{l_MPi*J+0QS-+)p_vqCD(=_DCtB+6*%7PLv`R
+zT_nrX8$g)bUN5D-Sc1uPsUh{7^cZ;r-=xTGd9me6FDWWmMdCpdDSGT%=z(A<b{V2*
+z-OlL9<bR{1<#bV?19rLDKq;;hhSSjfQo`Fxph}yiL?dM4B_kz9J|RP=jnaV4TgbS*
+zku(73O{qar(!~{6yER5io{pK5#NE;$xeZyKY><ZVpxfm~NkgntiG5N}8qyiU>i1L{
+zY8p?5TS?L|Y~xLPM(D_{t1Jz7q#{C*+*TTib^Ye&^QBQ`TN3l&sWf^Ge%r6XE@@1U
+zuVk2iS{kQC!8*>-(X#KBH2z2inQ{-2#=k`%a$!CxwR#h>)Lt&7uDwe%CQ3>@4VgJT
+zUrN&|bhn?5OpiaMw7RQ_tx!;!=-&V-8C@mE#9;`Z@82y={3{1382hA2T_J>N^`*)9
+zVIs5nsWiF$17y2TktX+8giR>FNt0hyAmg^l(v%j+m>&O^G}Rkn`J>0BsUdLPDol~4
+zosB2v#XV`->u53+t}9J@>r1q|nUr4712ZilQhEUPn);e4rH{hr5iK0j^h0g&OJtj+
+z8L<$i^=G9S<MSdIbw+X)Ml8rPMw*p$8N|UU&DwtrlS&1oSvS!44TkE-hSij2X&V;4
+z87s}MRFjy!eWlr*+Q9~#muA}$)arXdn%xKSgta52IoM~=;$J|T^BJ~b)G}%AlM9#$
+zaXgZKml2sP949Ski&^Rt9@2uL7htU{(&CY*>E9EjB~K;zcuRD&Y#Ssk`G6^u>?~<1
+zGMK4IUmXqYi|A-NmMSf61wzuVzO-D+oH|@xS{~aM=J>6&{MijMj+!p5K=O*YQA=q>
+zE6j{K_D_>mwu7o2+fZ8h7#E!1Bdt1-LFRX5r8OD($h2#ZwBd3iOf=S)HsVJ{jjiTN
+zn;T-TxT1%&8JQBy*G1CSlNgrU8EO0D=`h1vq@ACRfZvn!hXEw@Xq=Ah<SsgL#lK2_
+zY~_((m|xm`=pO9<th&;k;<Jes*OB%_Rw3h#zodiJpwqV;*3sxSTSqRmyL8BixuLZs
+zr9*k(@%*zzI`lg#u<NLlB@`fIT#$}zr+(6roA4zYewL0V&OpUJNJj^PaNOx99i0H<
+zlq5?>4;CWJx=`s@Y8KZ2{V_>8mJKc!{aiYBxjRw)-cokEt+;Wbbo{|0EVFH?BUiJS
+zbfSPeS(0)~Cklav|2bPaJs=d+ZJ%`J)o0|6&zH__;>nbCR65rJE?Ajk(z(P;GCXJ@
+zoe!!+X3tB~`THJZX!%&W(6cSkp`y~o%8p^g4DrOlFeDtemM)csd6e2pmkoAetWBiL
+z9bc2BMuv2y=_E26J*BJdj+1HlL+R=V6l@$WUCWb-(9BiodP7W5Zc37_cZ9;q|62O%
+zzC!dqRk~pY0hv=kx=~lVZ<KU1x1B5}zeu-ymk~2JQ@Z77oeNVh$E90)p<<U^ka9-E
+z6T31)x?e7xOkq2v`}ZQqlvG-JaJM%ciFD~9_6s!DIwL)@p#oiYNRI|}C$49P^kglp
+z-5FVWas^RuXv)892Y^W(lV0?~W>e;y((C-F&}T(@QypxYJu1D;=u6D<zLG;b;QAJl
+z-g#C*FgdUEz9+a_=Sn(Siky(%pH;{leL?zA7h$xkMRa7QayoLkbEFSpcoVLg3u~^C
+zK29A@%*L0}$895t3A`YE+~1ejTic}1%W>U8{8;0|KxD&ga^byC4(ZDXWFmAiN?(_B
+zM>y=O^sR;&i_s^^bn*!tjjpo66E<P8NjC06{Qvw^*|aE!*d?=N(^?48r6IucWbCm}
+zN6V!g+1wpI--i0KISdrbeT2+-n~CYsU*-$UCgb9PGQS>9t6N){|By&j$Z^eeP`ad!
+z%;+pxXw{6U(OOx;Or@#rVI3{$VX_p3xIjpREH^VEPpGV{;FnA-pAuzdEGU>;2U&T)
+zf|wXZ&ea*8Esf>e)!=SN|1G<f#{_2MC$jtNx1jl@<${NsVVb_2T(}c9B6I}ikqa+H
+zlN?wp7hbay8xFM4k$H7ME}VUVOxz6FGyi#nVr$8st8hby-{g|$dy^$XE;-~mv61WL
+zlJ6Acj=q&k2SU@uc*><i!J_v%<<gswoL<EudrOd!qE^{E33<VFU+ZX@R9r4s>n`H|
+zW$Mc1P2<Q=W~S_$a*!;si)7z1i3pWCWWW5uL`jjdzu$ObY~SQco8e+nGr4kQq*$05
+z$yEecKi}$d_21y*Eqx}}svAwl5(DH~LqCwA#0$CBA64MWWy`hx*@>Cd`f}~k*bA=i
+zXdNw6yfwuBKl!i7wVUt7Z1+>S{uHQ8_KVyg5#ci5A#y<dk62n!Q*K-pp3SX2a?=SZ
+z#1w5K2W4zU`phdi*b+u$9wY}pX+u<Rk=!O2zTxz6IV2ZGNm^eyr0F#b>sNC76D7!0
+zWuT7ce=f=GKaEFA<^np9tNrqu+@ZQVW;mM29eP7S@W0C)`}1HrUUKJdz9^rQyR=9p
+z!?qc6*WoDWdUd%grdFx=e7Rej&uEdya`z_+84cBCTW$DsH+*H=1ym%lhHQJxW4-Tn
+zxmV=~VnVOTp(|3zFeXH{`@baf+gRD|$oz;P(rvl-DU8c=ljZP6gNaT**U{X3fE?Z)
+z9IntaxlbST@$C|FpOcwnyjDbxsQ#MFQ3K?N#sP?szI5U9Wpc!F4>JBC$Prf#LF$+5
+zXkp&SeRtT1xmiZ;dj$DJxtwx86;{$7B0KtZsY=EN7vz57H;8MMDMwB%MCKN|<wzu#
+z8JiuJqc=Z>dtO8CFUMi|+$cHjk2hpGwNg&7g6D6}kQ2UP7~V>g6A6T5Kwf#k0;ulV
+z&E%v*BZ$2^N*=hZJ7&pO%gJ*dkZC5#gInA}BElhgaO8Pn8qIR(2W-M)d59SVBy+bs
+zB(n_}X7|<6I4Qr5oH9!udOVgW@Q&<Q1y!6mP<EVz)5?^Uhi^b4L24s;#NH6N>!svT
+z2r?O`jndJQ^G+W9Pd+mHY>-ow-^uc*mOSq0B-oI6d3^J_L@OQ7<nf5}8AdLVQ|I4B
+zL1%PipO2I$ltrJLBIHR$kw#y>gFHDtn2bj%%2Qq;Mf*yYJmoFAradE19YbXNt+70<
+zfaY9QmZu$UNTv~sb+i<!rz6{8wmf}WIJ$PRj^^g&<>}jNBK}uJl&636LQ}VrXS})%
+zpYE|dv&~yFFD@+4#P7Ho=gp9vyWWCyrpdE}8Svdc%d?;GP&hgAoIuQK4?H5zjYP6Z
+zWKVf+EY2S>%fEZV=%n<K=a&MB_1GlOkMbf*%usnzX?HShnlCTzgIu!INAltcR}lZ_
+zU(1U>A?MS<%S+l}7Hr{XdFiTaWbU?DUUp+F=4>CxD|?~lnOo&mW^lrDCVBP1gCLa~
+z<hAvmlez3b7k<l-Gg2y(DY>G&0n2bLr^4ioOU@DVB}CqM120meoxEwZLWU8G<jtXp
+z_=$(F@|Hi3!T*o!D{p;kB16G$^7i8J1-EvQcQk+^DPCLNkueQHvCcZOe|yWj>MbGm
+zTW|S~onS;>6Xnd*uMk?2_X(IS3mqu$8yP}u+r9FE<w!_=*-t)Hk;SxLs(k2ZZN!$%
+zE_|^|N6Wn)a#mMI4(Rs<9OMwQW`vGxLNhrl?ki%oFXXJTgUE7!p?nx&bwk)A`3RFi
+zhM2|jk#X2kF(kiyR0b1z+f_bV0)4OCmX96;_w)TzK32UTF+Kas+0Oc8^oy3W7iJK1
+zJ-?j2_6A;Pl8%Nk8|9OZYIVs}?y-E@rzRQ9P2|&wOED|$Azv&KO2()S^5yyH%Zs(-
+zt1rO?@4k}%e2F(&F3Hz>zzXhA<?EqfHdA)WH>x5b@#SavrZ*<9q`C4<xbX&IpM1*`
+zQMEQ@<y-rp&{B5Ew{qSPTWFhnyAF85vdyyN_S696^;_jTMNeTuv66h}5hzs2i8^ux
+zr^`9osQB<k&Uv>2Qzw_@d$WckC&W{}?*V)MYN&j_QAIMn-6TI~8Ahg#$K?m@rjx1B
+zRQXZOImFiJCO^poN;h|t{3Jae0+9jolgAlkEOtbGaS>fxE0;rlc^j1Isvy5=0;h7p
+z7WwstVZ@o&%5Rz!B*V=d`K@ORMnj7Ht{|kl!3OzV*eZC#UFG*C>;o{#Pkx^pO+2ih
+z3zwDBk+GhWKOl9(*lx1?Vc;Qfy;<_dLonwVo8*u8Cy~ieTmDoS=G)?UDSs+|4^qEc
+z{<0HH=j(I%n-&AMwv)eI2q7vuRYxXdkz$I6hqHc?Vva}O+Gi+CP6@JX^iwPg?_nk*
+zQL)?s&)+jhVH=|9y|*f?7C~*|rX$<?v?67$!30HjMY>ps*#3JJ8C=oen3$>`m`cA<
+z)L~nReGs9j2ccSfpH=c4_anB-TP1IEBp9_Qt>i^6hq38v9oatqO1`3K;vw0Jdv!N5
+zWgB(06#u9cxU>vLElMf4D+L5ZR0<v$M&{`!ltLX~%yKVP3g1ABH@%`1sbfd}f5G)i
+zk>v-8&5;z(lb~L#yW)k6CuZv)r9>RMpymsuWLePd9oLkSSK&~sAs6nRpm?X^y6Pu&
+zWINVY%3#G5Q)G-%HVc|@$yCKRZw}F|209v;D=w5@D!vEdaZS3VRPayH_`k2>A5;Qy
+z`Dn#IdM}nzWGVh*;cnMIqN8PTE~Q#C5R*PllxhnwT$@{!YDetE+`Fk%9|~c5{<l(d
+zbQTJnr_?;NlMGebD79XmBIGM8b*g(|oltM3PB%n8LSmJ=2jM|Y`lQs;zHc;9sUPJ)
+zfWWdJ2f!LFmHH{s$n%d<8Y%~f4SuaO(SAa8=0K&H9j=*mh!T|FM3$PRl%SFcWEgi!
+zX?|fou_XhPw#hfh?8ho?Urz^>tD>}DQ-hdivy={jOJGwZrBlEnGBvFRM6znrg}^0b
+zYQ`&_905yl5T|rb$IQl#vr3n=wq)9SNa@<G1DSHl0Fy9<+DGZu1PhCr-&T6?VHhpD
+zT=>^crAK9iTpHE{!h8o5S8Tmt4WIN;LTB72OF~&CY`7b;;z}rCn@2&0vX!u>tB84e
+zT(N6$0FOk)VL$VROxx-x;WIwM+8LCHpblidSx|`#i$;v+i4ytDgSe(Al&G=ohz34U
+zVpl=s<{hi_$BZXeAV`T%gJSwCN=YmS8a}qPj?CIWbhP+P)selpTp2Jv2C}eA8L${T
+zuGP-3BlE`TP?BWCYzpsJl6qy5CEiC#S`|Q+yWYyc9`IP&S5^jYg#uwBl;k4a$vmQp
+zk{psn25y0p>@bljB~lr@JQxcMmn%cJB@+ejQ5>Bj$WXeA;<z45=AomMk%*ETt1WS1
+z-AEnHEs}I(ERKH4$cdxzn{EL*GDR9IBacJZ-)yRkdJup&8mx>SU?OApP0HwOFq@pF
+zN=i$N^XZ{VN-HQ34678(1(~K8l`$dE?TwEpW1dtX#(%alHaVD#jTvQZ`g1ZqtfP$0
+zUPA2Mnaa5PsCbk7%J^Owj*if~%J}$Zm{24o^)0yF#}s8!t4Tx^Mk<q6KPTGjts~Pa
+zRGHEh6%a2dQxo97=Z{yW^<v3Vy`_>~_AyyT6;;w#-XgYI1K@4oI^Z3`E(E|FU<we%
+zsrpN0dZD&t?o~)fho#IDWkxc%TY*f)X$BK2H(Z(3;4qmEj8XK^%d|7f>?ug4_%dFZ
+zeHjatT2)o%Q~{d}-=WM&=uQUP@5=A7*b9E`bmjLyZjdP=TbUOO1{C#5nU`3XXy*)N
+z-ZgZ|>;B4uJB^U&xKvqa4JCHPDrMo=>9GH9rIp2eUa}ngq^vn#8G*xG%33EvF|8LU
+z>k>l9)T^_Sv8M!4)*5B~^n4h<3zhYAVCU<vR@UbPlNmy|p|J^5vwtfantBo2w3f1=
+z3o<5W`zagn3o1<Pc4cE1u<W}7m5n<=xe|vco4*8*A!wnpy}culjJ03mAdon<xUzi%
+zn)F#2W&4+p#O7_I>`cfcL!~jwuH<MkPp+)&PMlBlrIE6G6-Ldj*UBEogD7#LvL|ag
+zCZ#fzeJv6Bbk9)sU%(cwX;XA$d3WVN$4-bPJyi~A6C7<>C95@}XR`_`haK0UayPKb
+z(VK^erBBLHEGjXMc&TIuY$LPVM<sg!-n3<glD(u8F-`g_$3ZZ-ido7DV+k_8c&nVq
+zh3NPRf91ql{0?C4UdoB%mB;}7aC$I!g)vn**Rl$%W{7gmo=I#}W#zmR!KWJ2l#3l<
+zWfKZ1j!UCKILeJwE|<(h%!z5r<?VR$o)+cC$zjAEuqrohK-!ZoDmRmM5&PRp<@Qjt
+zSi7sr?d(Hjx|yit%<>?%byekVI9h7QYUN%YsN~hRm4|!^RCTQKsKj$(@<b|+Y*1A7
+zmnl!yBf54zLwPzajMzs_9m>-`%Md%yTX_~14@&hydG;2==F%4BIes3?96DKfUa12a
+zJU1xME5{>utD*9DG}!LYx5}$%1ufNIdA-O?Y{LNMZPGtvI%HMej-Q4-;?FB@_ha;o
+zI;eb*!l6n3Q9jIH01CEG`2>&3v@}Bbv<TntaQG^pTVYd}0tb~ZhY~@rbE~GxNGeO)
+ztTMr7vQ+R?neEVYK5taEnVk#;KC7HZ3o^B|s@#{Om?QR4`N}Zc8yD-yjlZt)4N{2N
+zxknX-V>GqvuZkX+)*o9#6)}Iv1iVv~2H7C74^?$?CGh{1F>3CW9!M1EujbtcX|8r$
+z&9~wdW<0j2`98lTDzQOz&j;Fk_OR;i-JM8qsP5}wRDNHqy6-+k=C(Ig_j|DKg^H_%
+zW~O6;B1J9UF$WsYT}Or)=fcuwU0Cg|3j+t~=wMb$`T^Viy^dVe6}5yvj8c%FT4Ej&
+z2_EECORhxHScTTA_d4)?<5IQE_9etVE2@_Bh$hOLrj{F7mn`Y|)bb`=S8uvnzPdjd
+zm!DL98+##k<fHn|I7g=Q-_!~s=7cskR4Y~jZ&=+*^*fh|{Ga13RKJH18uw(?-wL+6
+zEJ*dQh6u;Z%c?(;&KQq*s{cl?)|uzjN^Z-DDRxk;S{1pX&Mj(<LRHC-6{ptldPFAq
+zrds0yA|jtd)mjEGGQOLn*8K;=wMB;7pi*UGDrV|v*)&FN5CSXNzP{S9kK+?UuCZ!h
+zi8sj0&7(GIGM|`jb=1c9Pl2Z&R-3p%A>DRYn|P%Wo8PK7sggnFy%*J>K0To0Eo#u5
+zQ(&|C)aC~<Oq<+Se?vgRaKF6TV)R#Hw`Z!sRge*Jw5;0Ff#CFkS8A)tP*6#JYOB>?
+z%Uu%G){c$O$>=dnZPV%$v1|LPZ9TD7it{hEovAXJl%i@ocS!5BsX$P#byr<@^uF3|
+z1Nz>)M(r4<kl8Xr?KI^WQ72yQq^$-0SW)eq3&QuRwA$?h9G1tA)zGt$omL0b&})B@
+zx%xLX>_i}$VtrJHUFeKS<p-+05=dn1A=Tc?hBaE>RQp_(OmTPBa0C)rexVv(H<(O*
+zzG{R474Gb(Mj(#QMPE`Qn!}h_XQ+K+N|Gh;g4%aq05N@!tC4HY5Yx_6jeLR(>%p_t
+zsBf7>3m2-<hML4WkEzj<YhVwESq}Yx$#uhpL8V=|KbIQAfmj^yQe);pRr2lCm=}<d
+zjFW22n;bIdeW&&xQG|@lF17zr46EX;)%eL6R_zrvp*Ond;A%Bt&1E>9iaOvHA}3XM
+zssk&{CsVz4>OdP@y7zO{fuR~YKB&nJUXx+!1U0!Yyw*%FHF-lgng86N4lYucn7N9M
+zmh>y?;NmloBi3CV+zfi6Qh+-6U?QgJd${oCW*se4zo<i(CX%VUNga9y+d?e-q7Iu-
+zm&{>@RmTVzq4mYp5&1BDhphuX#`s_KNFCwlL3D4lIwCTH=*1y*^t`sjn*UPAbVG1@
+zPoO%+2EJZmjyg8zIa#{5Q^(!&CCdzdH7#jAnRCjhX)oay3~r^SebDIn6?I}AH!>#L
+zb!3Xgs*~=FAk(VmK&%f~-3vGh_!OwE|64Nv2PtG)OF+y>tW5=uCDXcmz;VF&K!nRO
+zyw%A~KvMfmR3~dTV^F9%r5l=lox3_E1zoddwL0Yigz6@#Q?ZiL&^}e2db=l?E>Bgb
+zY1Z$Xpr)s3-(OW{9<q`-{j};lbPx8QTdW;mVL(20j)=&F*M4<=Eod~hg*tyEzV~de
+z&QD!N>|{}$zZ;Aur@OjfypznY2C56@VTN?jb9G7RS2Dd=r!IX4Bh%5ME?YJO!q`S#
+zb8-n84teUxHq24i=EhWRMU%QVs|gvhooa^cfC3tRK+Pxto!;cMj!dV{>V}H2f<u?9
+z8(w)4^`D?_ES~~1DyW;5!-1&NSw~JCuWorWiVS&AsN4LjU{!ogb=w%2)iF=iZR@}d
+zduOUU)<cLdW~)11V)#YPRCgjT$b9CE`iBAWf}QQu-HtP0sRM7SyDwv9Q+6A5k6=U;
+zEJWR(&q~JFWjZp2i>vz^%s~ReP4$2fgmBxR>VY;P#LOP69<YOm6uPV)I0dQSQ%*gI
+z&<gXZlX`IVJF<NJtRB2tm*{a<^^l6SUyFLES$V*&V`{5enP6NU_Nb1-zIn;$sHz^m
+zotN0Zuc$|EK|>98Q;+0yN2cO__1J_;WD;!ZvFoSEG-0`#T?f}S%2u-*9Kz>UYIf7D
+zWO80pvo}LOobBSmCwJ9zJwRrMcU8}KOeUkaNxf*mb+h)Vmm7B{Hgm6f`CNT6o%ze5
+zUNJ#x*AG^&BxNI^h*7Va6k=O!0Qw@4=$?*ji!dFzapTl$2ZD*t)X>q~JX5`1Adt*8
+zE2y_e<BjfJSMPLdi_y|Sy>mSg1mn4Sx9}Y@{Vu5Y`eef^KB3-QjM27guzLSbZL~OA
+zst+qc*e;z>AD#dytoNJx7;j`LA*qi?q9u~It51S4chm2=`t$_GeXG0b-%GK!<J}bX
+zML+^EY_JP!TvA^gj3mntKlRm%&BSgxts|E@P<<U}$81=8^-Uk>kCC_4w`d7ViR<dy
+zsTg$~`VUqA32H><mkZSQYcQ_saO#KBnMA`Q)Q`mq5nFDs`mxJs?0{5M{g{!0(a}Nu
+zGzd~&udDinLj>g5UiC|h8DxBRM*aHO1adhdg1EHs&9%q5n;Mm%mJ~~&)R*jJrRHR#
+zXtEg^(rZe>=VsK3+ERP`ZW|$pO_V>Nk1aad9%*eEn-CEb9d9jfZPu!7`}C>P3vUjY
+zke@RedOL5gH5992)rvs@rKvM8iQ;Jx9#9(JL{cL4($93D2nwSZJbVzYPNve%%~uUx
+z&Ks9mLDfE6^(r(%6`DA2=Q0(n^=na9`k&kXqwxQ{HrP3}t0AvRdqz)_p`an&Ibx`}
+zaIt9AKzr>$6r~@zUfoIw_%@tkoVO1c+?|u=8U)9=X1%TP_5^D}jI}{zk}Wyj+CCya
+zqF1Ed8WZ>9u$(oakKG#jy@iq@A|tK6?A8I_uZxJ*Pd94S#Mf#K`9BpEY#(6%S)lf`
+z*f@L>9g<*ek(|({ZF{RNI?Nh_=fqhP6Cxrb5+dyJ*4}Y3QC3@GLQIq`AtKZk8JTR2
+zvPIj%Bcj9gXAZDMCfcpNQPYGz5%E82m_B8Ck<ES6pBfC$(>I<j>RjP4=XY+HVV0a}
+zV+?tmr<xcn?R05Cm&It!f$p$FPOO?lkT0-<-gGvcw;P6_3uDmDp=d}ej>7P70=haH
+z_ryU2YT|RO{=LmPG}}<b8GFINFuE`}D|9iGbYuqmHuSZ&)hdXFPSEO(!<cBiOk%t}
+zOs_s(Dl#Vg#|y;!S_AE|_UJI}+89^!CL~6qX%doS?d7cTvG&l2-pN*bgx+3S=hz3@
+zLKDzl_Wp_X=+I=VH+rRC(?LGgn0j$mn-vWe5%!~aYjk2%FRidXwgl^s-b{=Rv&Y3J
+z#KeSIdnH?wV-j&*dt|)cn(b%YH<%7nE9Z-j=7Q-D((*ZL2O6Y0TFYrIsS6d_K^JMg
+z1>2$Bl67%&4FXLV!_jsw;ZMduiF5A5FR%2{hG#r3)MV9)CXUvN(>g=@HV$Wd>o;k|
+z*znzt&hq^^bQiYl-CL7j?Ukb<q7xJB@jjY>*<xeS#0fD@	)oQDL?On>8#kPH+CG
+z*qFEkNUPo{p|)sEob|p)>SK2`cVtAo)>9Bc2$#(oYm0*bCPv!gem0^l&ThpMQD{W(
+z-u5_qG{#Uwl-)WgCfc5Eb#60xQ!}UMY(qg$E2JeJnkNx05b?9xLWn(XKt!nB+AL7l
+zGMAh|25TN_fJV~ZIvy?1j@r;~KW{L#YxA3SWtA8Idy(FJS{wgpG@Cx~qqQgM4H}hx
+za(W@NR%ZIp#f8Q1>JOhIoHjRe0S7M9x<>1RScrWD^+R>7)PgFZ7XRut?R;@+N`d%`
+z!6WRbp*9q(6hM7+QP6}T5}%vltTrs-(2K?C-`-k)x6m6kJ|WI-Lw`ZSds`j9j$dDE
+zJ8fJ*3^mEt)UY+w7MqZW1`oBxg}F3EuLN5}G_Fd*7{E8y;w>t*vo_N^wz#IcT;E%Z
+zHw|nW6J>9c7;XKb;eT8d8Dnz|u-;Z1A8qZ}0`-cBOrJcx=w|C|v$>kbe`xssQOiI3
+zMfp#?xjE0gi^c*5Gw#-OuS?PVt9fk$ECrplc<g=_hZY}%zka$*yR1qt{aDl8QE0<|
+zwYOG|Rz@<~R=Zy7=oqwo9MqB>PtlZ;X4VpLT`#={G-cJ#^>m1yX7n`0*7oOln*$%i
+zaKixVfrllc-~<$;b-tYj;+)obgYc(Gl<m6}b(xi4s}+OJxBb$+Tbm_l+AX+cTa1iw
+zO`Al7*=^cz)XYb?-KD5Cz3s4DZSmHK1eYdsosHLfJRZs?)DC@x;gw+1OwkY1(<?E-
+z8XbctL|elW2K0zZj7*4#jkFKc)T`b4>wW)m8e$Wz-KLqC_&za-kzpuBO3+5V>$zd+
+zx##80UE;qw++|zclYjQK{Hqa5zqp{fDL=U`%Kz_0VlbZc-G-)rT2RF~{T*9`wX|#w
+z`x?2~W1-2MzHLsa&3Ttr<+>VzFv2vGqBXxwCo3+4(i+?#1f-=LI->e7$E`8+TTprO
+zqpJEj4IBJ&z7qNW_?-T2bwP)wK{W}C*Sj+sPtuH*ivk70*fm61A$UfjuC6s@ZlzzJ
+z{qHsY|8>=`wfgT`{9r<r%Kcj%UHpEnzEzhgm+IH$%9+c+6m&-K!^G6DkNsD5tZoq#
+z1{JLFvvStftwNfYvsTytZQY<ndB3XVtbSD+=$|Y3Yv^lj5fh(a4Q$`Ae26t6&K4aX
+z8>1UJP1S$DKdDay#7n=#U;kP!u;I^=ph$ic=6Z-G+`1?Yuth}bvZ)z}?*)8+NL)g^
+zZ+iLF9_c}ATU01S4Gj$qj6Om&^B4bJvo@r_pK>KM474^zdC+j_%K9RkookOu2H*6a
+zJAKoO?&LSm-r3m{?5+2CP5fIOJ@MmH4IFC&FpMhbJsd_pKT9p*SGA^Jb*nd^hP6Sj
+zm;o4Y7y!NOkugc>)_p}=m-$|#KUMstNI(74|EbWTD9yj3UZ`Ki|G!e5W6!dRU6Z3&
+zNSelh?Wkb_j*{^9nof(s|C)9S(`DWY`>rXGgzr+RX)znxNTXO90duJw7a!<{Yg`&n
+z(`DYywM9(DoDH3ZJdV=1+UFNF)UQEU-$Zo2W<c;41w#>L@2wk*-Z8M$@ezaUE(3%9
+zjI~4EL?_t7?Y`D1kWsMC=mfAYYqZ@S7H^HS$0xx2|4TEW%o1$<z`0=eLlb;iqV%lu
+z1+{TrBHevYoWa*wv76bwiuShNcwbE`!=f9y=oIqb{wdr5#MbKFAU-}3v?0EKqQ)rF
+z3+?kV1nC8||F?i7sBqi&0+J}^`;isRs5M=L-n`mC|F`f$uEGQD38<orM~6kk$41(c
+zwXRPezh|=1s5t%lo2xi9dl80ux;%!TngEZ~`p^#im*8m}te^HakYkM>w4o-@A=-OZ
+z!~pljaIb>@eejJour*ziNPQvwq4?%ME2~+!3L4?As%wT0l&lXEjpkXQlyvQY_tdD!
+zf8VO#=G-{nP}rIOwK0z~vxbTDaWNNHZIgBR`n9eud#cwqecfr#CYo_eLeU!A)U2sy
+zQ(bSRoze89PHhb=&S@q8>Mlg!ZCrj`loQt6-JuDyCbs|if|^^X*A!>GHC^}fZ8Uq@
+z?|XCqpufKeuYqqAt!ozVID2SJR1_r99;P$e_(Yx3_D+NY27Lx=+NMcEt0N{cAr^)a
+z!lcvo@BIvc*XSi&iHLZ;IGq1pKx9NzL;{Ayzh$_J@cmCOMI+Ff7ls>q!86kbQ<HYh
+zbS;7r6=Ab#^3<z~EwrDnwHeI3=AUUJ&gGVY*6FP7htu=j^1_u11!KbyjDiM@`{@(G
+z&(W(7wg-(G6%!qi5EGZ4`*_iaQq<w6Z0L#wBAKjroyK^zu8Ba~yUeHdO%qVoW_qjl
+z#<!ZuE3bF8W=#M6Mx##&x)IgJPb{R+$GNbn$;+)bPDG=Fw9vtK;WG?z-fwF1aQrOV
+z#n!ZkYW}}g8SU|X@BmF(FhqaRT&^oLF6d%p8Y6bmbIm2vhHY=0`zcd6{@3KK|1Jvg
+zQ8DNNhs%t?H`XE)I>YU43$vF89nv(revF>f2sNZ85nf9;x=%Z0cS)41_aZcJ8YTP?
+z4UL1l_&0cTl&0CVPSmc2>eFl{N{&x}!&n?2;d$!)jP8ORDIXh?1m7nNw}tkBdW}!t
+zf4-<&D>%^F7)*r7yR;u1KIi;wrdaMDO8-Y6ML4Y&O>Q1OjbosLt&KIw4hfC3!wb{w
+z>UU{N4?gR?xnSlVLx2?&?Z55EkD|P(<Sz=afOc<!eP99{G6WI+)$!?``-*J7w0FHF
+zuNA~eGf^%#MUNCY`_DAF=ga%O3O4O^6EIBBT-t5W>@Rj&+?;1?8Vfp$d0F^E1w-tS
+zKNW1i_W((gxR}IP{rbDk9<|LyonvE-vh#6GqsVIZ3m%j+S7)=E^XqV<XvBww%?t&d
+z4+pWiofV6-jKS_~P?gE+T-eQ&%c+JKEQUcpzhE4OK`7z1Ce*rq)&mwlEWSbfUK_3Z
+zeo*FctuopWj(64c`}eNcim$aeNa+vHD89Hg(w-2n4MW@>69bmy3c%o!@3#dbZ~=D-
+zUkm`RN1-}Zha?qm6&Dc`7m<+se=kEL`3OApu??_0@dLVfn`&wY;U?5N&ZRoywR-5)
+z_+DuQFn)QQ%bU>a_aASg$zFQO;U0lhidy}@=!hQ;M|nc@@nvnRu|(JK()zDf5kxdJ
+zbEoMTD~Pf-aJAv9lbN4)=L^yJ0b2RH*aX@&GmHBhErf){padJ#0t_L_u>UMibMRfh
+z)z1>~%@2F<%Q<HQry*|*jp6)yIt(wU*=m<|(O6&vKDj(V&0lwElwM?W+VXM*9mBOI
+z{;zuKp&w}FBz?Tc#>IqVyz3pT6CRgZ&}G0yha!4w^58nwuh0Yw>H^&r17j4Y^{W;=
+z(I~Pj!US1~hYgDkGsJ6}eDl4-=PY6V@L=qEBZi@2tY}b;73=m^dkg)$7(#&Pd$WP-
+z{cP&eZCznBZO}mjYI5{Fd<aet!HThl#o3a4t!VwiM&q3HMgO=vuVfh|=a(-m=ZrCM
+zT>7xfdD1Jsu{hKIVg-}NBIi5IrQ5lb2&^zF^gmhw-~C!4m!%H}t+Aq-$vR2U$nB3t
+z*9e4WhX$ovk9u|+fLGFNP>f!75RSB7*E&ig9vabzLKzy<`C(N4Z5*vO4RFRqrL^-}
+z2p~ysChZC3owsM1^On{QHS+PlRnmml6^4U^IM04D=5@ySTP)5^bqx7^@a&&<)m3LL
+z7W&^j#zqyKRzH(lbB&X0`b#4(ntjvwlP1nCo2OOGWdXIQkoIy~OhW5Vy(w^)i(_gb
+zc$>3zf3q9wqMCi3H)oj(=GE-x_vkc^5HO<z=ZLw6{0_s(?|tqHo&G{fTslGLAfO<6
+z9HE@<oIwmU6$lIP-3N?{L2wf>0~Z61*LBYi#vL0m&>rcslG;tb>iqAKDUfrQN%|fs
+z1StdGg3;5pqjnR<O-v-h)-a0R@H1?POZd37+J6+M-EWJG2c5!m{v)a#rt|b)i^Qmj
+zhLGDG@LXKg#*{<?f*0W$5yKFRvL$Qf#79Pi_elWpiqyugEi^O{<_fG2Vf~+v02S2S
+z0Ihnx;bz8vkLSn4fnXvk@{5(zA|-mMdW1Ow6>1HwjN%Z~u-CMPAe8n)MSI(Q!{Hp)
+z^sDG&)jXHjIPi+N2-GA(R}tFFXhcqn(R^<|Fu}xFog!@Be$vO3&oELW3Xpx5C?!Cs
+zZ2w<-UmjRjRqmU0_C7gH)22x?Cv9_*4oOR!H0j(z+cfD&(xyoVDC22znx@UvoTL*&
+z1i9jMU@#Y!3Ktn1uX>@N9u)_Q$_4c*=v6O1WN-jyMZf{M@P5B<?dhaRTh#a7KTm9%
+zoU`{Dzx55jZ&>>FuZO2EBN>__Sp$H|JwV1VFf>K&-i7B4je+9m*C^Kib&Fl3>np4R
+z{rFoVHh(R#5-P0A3nRIma%|8#x>UuWSRr?CP996rU;^Lpu#<jW>ZK(Mb>2HHF*)+k
+z=+FYGnuZ!}Ji^*Wvs+1RXS!GhRQo6cI7q6MB0F$geI@U^fIG)ieWFl@JqquFB|x_T
+zv1ZY(vHixQU~p=O=s_@0{}Nq&!_@KQ^mO!rI}*2`z!VhD+efD%s!Q&BP%c5FfaXAE
+z@mPW&dNcub6MDOl{1FTUQiG?8Ux_{9Y_T8=Gzef7r;R-F-6GX8a^S0_BmeXGl99zv
+z0OtUAb&WJK4&R(~j7g8x7jsocnL5Typ=f>J@Dp8`DmwD)Q-%7Tay4~i`j3{6w7gL;
+zlJjbTeyv<(=uhCU2X6e)qn4U8@|NchjXd_;r$<_Tn(@Ft|M(sGGuMh>hRzKpKIm<V
+zE8;2aH|i6&hjTLtgeS0bV0$Ag|GaW$UD{3$Dl`20eC#OU3u=-CXJaGR|M^!lm!7eM
+z=8^JO@*cSDFF&+Kihh-q!KDyy;sbC0pGVa>n*#k%Z)n6A2p<{xp+4gJTy~C>zc$0n
+z_J%h$gw@96_iS~WZNb{nhceWq7LYsrc!t`qw(1){XXg*s<7N67`s7?yqF)-Q?7Lrx
+zlpLPtfao%xqBR6uDL}A`>U%o|`T)?@4|R0)L1`lQ6(h7d+6EgH&J|G5&;V3V7!S}9
+zdpm?4GWooIaFWVOuAHcPl<L+iCaQCC>8R!5XiIB?!bLo?O6Sa1x!Y3#ZzBaMNrQt~
+zunk9|t!aH55gu}0e<-k7sH2(@iG0u}CaHqtM>5r?CaEiv7Z<53Rq}_$>N|PrX|4VT
+zyyKB-^)|h=Mpfi;+Fe){?tKDF0{N_;dp?qzys1XbQkg6L4bnHAh~!gWPhUYq!3=XB
+zUOa#ofwg)hUD5=v5=<NLVXEDmTcY(H9n`tv37xZ06(>KnP@yczgfuQlS6ae*v9KXN
+z*w@?8*SoK)ll&c=T#O7JvPtq?o8be>!YA3#8GI)aTs>Yp6a6m7e)Uqkx*+9UY(~)A
+zNk@+n?>r<`V7c25*tx^CX)A#JR12WE9RCthBqCHBu*g>Uox9vihVB3rz!X>1Ro5<E
+zUR}3vVRbFhIaid9J=UXXTS1%DHU{!e870o9j;&Jp!_=BnhwM_h@!cEV&CTXUQyP%^
+zd)=1t^TNO!>bH7|Et#!x%3?eDOX_6yb-|k&9jp+yt*;R;oO{Y-lDX%qm{ND@`c0w2
+z<h#yO|E!XQYt+|68T)V+$RHE?h7*xe-M1<<2}Y}HLh~EJNOkXkD$=DdgeU5fW-C)I
+z)A!Y@!ZK(A^h!b?8!HL|IcP=c?dw%h^0|6dYE9mTMh8LbRPT;!^+^N=ptFLRGh2au
+z_CdHe(t9erzXN6@bsyLAl4dHW0&r=>TJ1c&qf<Yz22H=(sD7j`UZp0e9a`NUDV;n?
+z>@KnmI79hNkuEzNDbh_3Ss6O}7m<j5*B>JjldrE=yCV7z8`9@xO|GSjoFm~$(kEL~
+z@swGhHY&`GU=Xk@^cz*GOdj0an~0-n_rYS4B_G@=iyHu%{a1GO!(Z&TT{=ss+iP1)
+zxn{f$I?*SWr03>Nt%J&C`e}~!4#7e`reE9zgmPE2y7GJ;h%tK%HiYIJxZ69gY}FZx
+z*DB|lI}d(YHn<0Dq7$P4dZ};PrpmJ>FTyxFd%0)seDUz&aUNcL%ES6Q&8kH2S!HGF
+zueGTB!uf!B<D%lQ8)L&l71C-hqE4Xik9_lAi}YWcRsQ-50x>pGKryu#-l>OaHdcZ#
+zm@y@I_zs8}>zKCs#bs8mzTt+@#Chj7IB?4BTIlOuaEEJJ&aR8n8%QWY-?to8^~W75
+zUuSPsEozRAZB?^EX%mzGv{n7W2AsZahuW;mcB!yhr~BGez4_Vs{2RMeUV3l*NOX3s
+z{`Z|~cCxokeZ`(kZ(z#eR!khVuo*K_Xf1Q%C_-EAeSd~+o-&$pxW~Ho0(Af<flv`7
+z<oO;^IIct?`s8gFs8vcmtZ%<SJrqidCiNcm*HCU1Xq%|RXxh%4IEt{7@3};MKV2>5
+zsuXu~%XWYTkgiYh7<&EZZV<7KZSjt6f=n&P*|0WxTjK+}<9kIKRbw5+WK@j;a#CA@
+zdav*LPN+y{-D_utX>&B_Rqd)I!+ohvzdi+r=f2&cbiL)cDp@v>twz^Fr5HF(Usa>}
+z@_Wgcoh2=_?FZ2`_8sXRyOm^nhk9>FT`H?S`8dv&u>)W==$2>f{ENa^qAIXun!41;
+z=(wfnK-SQOrHkX6!GOS+hf@es4XQH~aN0xgipP6#I;-075!{*hxUq|N*j#<GOXVg1
+zx=;N`sXhA1{c2BgNtY^6`P7+dJq#EH5kDc)Mz49B%3rp0gNT{+{apzt<B4b$ZBt>3
+z2nga&(&yM+>GKb$-{igp%7#IqsqPSkj_C#0s$zsEkbbDpFowi9P?|B4di>`HgzSQF
+z-6YX;Z*E-{Hqi$`A>Z6mUoWv{4V$1KP`LpdUDcL7_VO%0s6HD;EZ&R#_-oY_(DU~m
+zQa@3vb;k9em)HQp?56w+q{fW{xQc$Y{`LU=y6IpjBUzMC!}jpSm@Tm;+G)mV1JDKr
+zD1*DWtb~FcUl_>MQMU2Zo10v93*x4r74*jFcmz66^#Bk;M?n`9<8gK#^JzY+YV~7B
+z)FPbZkGyt7O;(rdHP_*@>VHx-$;<vpy%4evr0p0v^jNOG`0Z+^{^WHkBl(55tCbnK
+zyMzGSpg$kNmT<fW^>eqV;#eD~h8_-5Y)t$eO;DWH;SpM<t(Y*u8t%65J)Gaz)wcdn
+z1BNPA-~4FP)^*}XXzhbK5KU1;=jzzasx0}(n^mq-^OKWC)D4qDYMy?eDqOJ=J#eYp
+zv6NKsd0q_W#l<()46P`Vo>9B_H?{sAK|OIpso57dqJSup@zXIjsa|Hf7mZ@iV9B-P
+z#nBydC3>;1l$Nw<2)ISzn4=Qgj(<tuT%KxtQ!{F?(P5`E7x$$lPbHCI7Avvf{Chb<
+zFjk7XOXvJD{9KREf)>iVcX0dR$rDe^(RjOnN1`=CG4vo+EG+aCMoBi;H_)y=5^IAm
+zh9E26XZ+gU7))a4nW}haHB6h1zGzK+u)U@W?y~BRnx12cL+}kc9&5A+fTpo-<?^K~
+z7cN{`yKH6s^11q&e^I5$+diOPPsiEdF0H_f#$8~a?eC^%$ejk7#whj4TUAN&eIHg|
+zT7asOMg;_S$AO|cO}mwT(Veoy?bzYH!Yz#^#9)(7{8_2jd>4AUuW?h!;92w=GUt-K
+z$#~jak223{R1^(xEp$qnAlkWK0y()^{2q3QH;Kf~Uc`|yqzHKNz+P_1=Ei8%!UcPl
+zIe^`%54f7Hpj>_XXuuhG8)w@C%4363m@JSj4je6CB%=6up+592m7m=GU+U(}CDTA>
+z{EtV^MWDD)@~Jn<tm^7&4y^}j9DdY&KUD>_3qkA#YT}8Z!Au;O#O%RS_?+a8l?6bx
+zM!)v9@XW|Sd@o#wYov`O^Turhr_qDAh-k0z22-KGU1=9*Bp^5e`t+KXYG#ew5}kf9
+zu~OP7mo_FOh5$A8c9<se>mW>sFBqce!8tt!7wn6_h)k<cVXymw6lN1`8R*0A^(16I
+z$)7)?7F(H{z|S1Mp|37hg%=nOE=V($2k^SkL@FZ!5qf=8a?|z##bD3}j^w~lZ?6O<
+zI^K-LF_`T=)lt*ww4bQgRQW{M|1#0E1716mE{p?PZ8Nhp4;TGR{Xi8{AM@-h42hls
+z0NhaWUOW^kF34{{D5S_eht{GDKh@>Wt8#t!Z`F*j-H4!4`5i7us%o`V)%@^2S-Jq3
+zPxVwZmw2nq+q3j1z6#%E?u&Nb<Xo&}JHQ9dv|aZ-uc{_5$2iF(c{Y1=|85NM!>uZ-
+zY9{r0Z<?j8@t(fJd~K)~$Ed^gA4X^DvgaXyfA_p<Tk=b=K{t}rjchZly<dbtrR=*A
+z4dmH<2s*4B+5O7&*#?Cj1Syj@(`ippksyI$Smx}<Mh4#r?o1}Zou@~IluwVok!zG^
+z#;;2q*m=o$(&)w1*@ACVzZwXv;XU=y%Dvr$w)XZNt(0hDunqyyfz1yN^mPw+WA29$
+z29X#<ASuGK2V;Xn38FjrAU*(H59H+O$ZZnu3f>%Z90zy^pjq`q;+(O);y?h39z&o7
+zn5+Cd07v3r7vi=YhlXR(1E;0J*k=tKtJaskpk}S8P<tTEAS!`Pk}3?tq-JWuuOMB$
+z-J8_lNFsJ2udkbhlSq=JFQ-yWH|8_=u1LbyJ`c^^z?iwp*|n8CD-v05hN0KJpw^b3
+z3mWoxyNqO1(|X&z3N_691}k>gw{G3Mb>qsY-?9f-$B*JDnD)!}p0VjYOH^4al>j5=
+z31JRl4fcaJ7=S??gqnum_v|tHCRziiJT8)&!ounP(zEJb9n)_-7RuLkMUknqW{%%H
+z2|*f9Vhg*=)%*1~CWPKgtF=8N^mbHLg{tc3uL$Uq{9}IT`N{bevR%}ge5Yw#zxY<W
+zFqt<i^!fD84KPrss0is}F?gV9%XEvs!YqL+LyhZ2qKef;VA_T`35MyBOhE$_j|B<(
+z6oecTKx%OO_4e~Z#mR5Y3*9yucB*<cT(19hd1$_>(l^!EB{CrW#_~|F{`ShywD-I-
+ztgpH<JwxBKB2=f=>TCX2Xm%;ZAP>3YFU8IPxG{UA|F|Nwa4U{~8>SKPy5kL>@A+Vu
+zWFGhf-Z+GK0psr`pK>fyeR3TJT)8ro8`7VP*mL#FciB@%KK<}ipoFKa5V#G6>uJ^p
+zQag%GVk{W>7!iDOIJ_nPB%UQRp&tB19v6(WBXcrYL?Fto_=VeI5{XiSz}ZOZar9s1
+z=SKRI=DAMvGxg}`yMXf#1<3qvxC2cLP{(`;-*C3jOaEw3+2Lv@HR6cGO83NL6oj$C
+zXvN-m99qfYu6RY%e8+a8F(^fd4r)W7_wK%d?v4sZc2^@j2%oZHhI8NvdX>DV0m>un
+z(*IJ&8bc)^prD9Jtn@ZU-}IM|tq<H{XKiz|98d_A26BAke6E7BM_ZhNqTc!2hz+Xs
+z{nW(q%~t%xe;Mt=NS~O#=GUsQiv+}7qlDoG9EAGL42Sjjl;?*LU3K`KjaN7wMbkEb
+zTQc%%zw-@AmYQY-ATVPvC-AeO4!65WefIQWcJ*dD3^q6Z5Ik<CLZ{v4fnmyRNE62#
+zfuKSX);{>ZVU)r~nIEmk|9j^epqFAzvSr}dg+QVU&>VXZ2cor@aYTTDzGN`W05!1r
+z!LC6f8x`vj7_&cGS1~_Yfet#N8@gkO{rHWNvEqCjO~f3DeGKC28-UP6<Cp_H-eirS
+zRWx=i*f<C)*r;j3wC*&XEI&6i!=9lwq#@P<DjKDaE9qg-E22<CS`|hLXx$kQ-54A}
+zg`97U6HtTJ=n*9NZnmA#s>E&y7MXAhMufVd&per+H$3mh?G6dkDEIh<!#i9O2hamf
+z4XV_?YqauJm%e5b!o^CEuBUIDX;09zu2(Z8<e4sOf)rGE$wA0JJZeb04=YI%f@jy!
+zWJky4AOQoB1YJf6#2#?(s01^}3#v*x_JsUX4!@fzHW2Sb7ET*>6Pp1zE7os-ExNHp
+zne^X7Ofxe1j+syh|6?a~0pS7%O)DL-9)v1(Xlz~aRMj+k=k&S9t=Yrmp#KjyY!=q{
+z|L}(0|F><J*qUeDvYj|y|7W(WB)N8NXsar`J7wR5=BZNX;lG6PC!6DBK!L%LOa4@d
+z*sBGGu%A8}%FxXpwKE{Hj4<`}0TT)|n#z3|Z^DxKgyqm1iCWSeK)CqPgd>x*{U=HG
+zqsgyYSAhOzZUq-NY{G<UjG=Jo?YCRS%jn%84={ck@yB}_NJ$eyW~0Vw6K$1)<Y^(I
+zHr-GkI$wp->hz8Ep~A`Q9agdtjrHqqH-`!f3z}m`yLyItqU&)UH{y_0A(SpLSClRQ
+z_IxeJ*Nqr1<Gxy4<i6S_i3|SANhm-Ms@bc7lNj8KQ*Z;%w%})BQi@vOR=s^|D0eaO
+zn_yV&%w`}>9F>_9nZtH-$fH$GjI9}B^2)~0hg9Xc&{d7@O?n_AL?#!PkY|%+#?YE$
+zqOnvCdCNCVOiTt9Ir2#oGaUgWOE8-WQfJf*Wuw-dZlfw>jW`e2_9jZ7vT;VwE#DA2
+zXJX|ipad{LNCJYeX$GET2L!OF76|gC3w~(N(z%6*3&_~4vcptXdYKMfI@15olXTB5
+z=~FfZICbl8=AFV>8yATiL*~hm)G<U`;VLk3TXNh31J+L@>|6*5C{U%zrk2o9siTc2
+ze{nE$M`Yy;vFK8%m~J>~I<wOjd25~nkB++rv+GtyXD`wVheFfzT_;25=p{p;Lj71G
+z)KZo$!QGTPq<q*QUIPZDkauqXK%_-?4Tf%+l?PbR@laxcNB}`7AyZsxdfrf|LQnZx
+zXju~d+!_WhdGjmjxw`*~P(=pwk(T36m;U$_p&5Gl6`@&Ue&5gU*Xgex4Q1=BOT+2f
+zx-wLfxl@u=qws(N4u3g4FBb<N3diDu(Vd$b!4GJ5>+`M(6<Rw$^6F9qUh};R0`FnS
+zgd|+yOi+WEIXoiX%oq5l!EGPe$k<Kb2h80V)mQR2SA>#Ezj_rsVBsr6Mbp{>$zbrg
+zyJA<`(k-ju3V-^F(3Io{uL{jnF>ogceAo0NQp(L>h^YxOqw-OY+`b0j*&s6P^wPA&
+z-cT!2njaE@UB9cLW>a<D(#3#xJL2uS{;E*!zU5?tXY6PbROQsJmUvyI&ct-JX}#0e
+zl0aV<RG(E}^ggWzpR4nFC>vuk%`NLUE~pE%p8VR?p^EdsGJpPHXlXL~g;3}8bMrvN
+zkVQ}rUC&RDDkp62WkSvDS~>}{<rgH;Fbr=iJUV*W`$Cn;k3AV`nxJOsC#Hq-b>@#l
+zQ}pAv!_74N$Du>&JaS`V4aAg)K2e!7e2>A5KyJMmOl?6Kgf5)+jdA!)1zt*C_mfcP
+zgybc^4t*#B2axr0=+Y28yRnx;6UwGMgq8yMijK`fNbjY$hNtNd{#$yse%BmpS{V&Z
+zQmi?n?2pDNPO6!%u6>`Ks|P=?vh`0NR(VneV)G^^!c(FJ4c<w}D;|T@M%CYmp)zQ)
+zq@FO*#O$dEStk&&T3<8Unm*<8ryZs`qOaL+=l?AOJ%7vD4b+9J&pg!6oOY<S4xEie
+zbea9%u)JF~pXI0xbbO{kPn)Qi1iFKR3Q)kO?odUQu7OLV=Qz;|6~@10)NXt>N#nTA
+zxivli60!=?CEyD@Mpqd!4e=A{#Q|PZes>pxjGW&GEo>7PNd`XvdPfT*3!X+@0e0a=
+zEFp)%#mr%-%*UUg+kv0BP5KI6cXS+*Wc~<nx~OCzMf;qxEipGQ7dFShv1pA$mSWg!
+ziggdxw2D8Z#sTSFf0m;!8tT=V^Q~FQcjsE~45>N^3(O3RQ`hfGFU*|^zdk}>TLj}k
+z0Sd(F3gzn$-V-Uw@K#YCo|=>LaIf?1w2-=B<gSn9?&P%HZKH+ZE|MWRe&R#1grms(
+z&57oBCi9Tb(zohGOzK0k5J^*Zjx|9yYL$(MYQF+NYIlT_NGVia9Q=y=0&5H5U?V5L
+zl{bvujKhk~6u&2`iwqecNaBv4&lzi%;8tMSoDFxRD8MyBW27TP2=1KudlZCVD9ez+
+zFbnkDv(AeLoG+oA5Z*lqO85Myutj0&GM$CCE`Kr(D~B`)%Zqh;6k!L<j;oGtLU^c2
+zc7k~ftq%!klHazktKEBhKDwDp51K$0jswf1HgHCS;5+g8@eV^i%eIKlOMee}??76I
+z3hEC8irm?n9cFAr4UB#8#N29Msi+js*FX=tz~C@8!yKUb)o^a&FVc5ZTjjc_!0J=0
+zN3vfnzK}|QQ3iObqbb4jyPy`ZSioja`pj#Dt^w2qv2;?3gsShZ`udj5h`1W)IKl;m
+zKF~)DK&U%;eS!7gjD7VIGWB4QRXLsWYk+KS@LHbcBrZ0rZ_rN^SvC5yBI_>1`ys}$
+zq{`zdWJ^YaW+I!bXOSGcFpD0Y6$_PiA2dxRy!24B>Tc#?9}b^HCOV#1hb%A?u^CeR
+zv0eLQ!-aP+R0aZ<&R}=8&iTh!C+JO^LOE}4qz4b2VWglk7Bu>Y4fHd`)>TUVl#uC6
+z%Z<gYF);94Eaw9Jan;t-lb!0(cRd3Qzkh{QXj4|`i#x2DC?8=AcAj*T4(l`KD`9y%
+zkaDz&C(Di2<uNm7jXrjRFvm=3DdxQ-i1}a(;Y34>tVi8)WW~=)>)jmQk|Xr08M4Pq
+z*ixf^xF;=nRf%=bDxU{!i*&>+J5oO}1O5(&qMU)_$;b?=CUkKf!pp_)DxZ?=(I-T1
+zW!`pmG^XP+>OUB|9i`@%piii$-^r&pwyCh8!!iBbJZnaBY1G;jQP=6=O6xL5$<ZI3
+zV<FD1%6dq>tna!zlxxKi^3d{2m0xU1?yw*PQNw=lZYBgH%3t<kr$MFnVlZSPJj@Q0
+z6?HOImQr*>NO*83X~274es)BNURaFyPWufco9_5Qq@W-er?TJFK8tm))L)-tl}DVF
+z*DubomL*SAS=XsWYb9aFRS~Fy@Yos}BhVRS_=dR+>GEqMh530#Qu44OqosZ@x*mL3
+zc*^W^eQtu0Qh^xVD!_hy=t3AvHP_-+M7Jr*QMM!oyfl@wE@gOF0{!ksBk-Yv>1^I4
+zBY=ArLvRz#g+nmi6<$U!bmOdeL@rh$z{X_Ey7sur&A?zW4LA>kd->h^>Fr*xV#&Mg
+z;H<h$E}3W5TlxdXfCt~Tz?w6qM6B@xB4eOOjMUzluT{0RczKZ@pCEeGZjhKf=CSDf
+zHl}_a8p6y8$Gf{t{ar28o2spa`gpaqzG(G0E$LV_D0_8{HD%<yJ2R>(z2+!0DKc?(
+zT^T&OgWRc*Lrzi^R!cMi{d~1mr=O^{^1Md%1vS>vk%e~_=+D+z=VS(AF7)d))}s1(
+zB5COlbn|OnJ%na)$`SFVJxRtHoUN{1XqAPKAlACjx^VIgiHRd8L96=mzgVRcrnDIz
+zq^~TtW+y+s(5ek(srLj4K;O31DsC`hzRLj!cmiEY=CBN8<f;OM5a?Hb3967IJn1o#
+zBmjNKQY5dvKg-TS0346ksZA1r;;dcIhNp4jQzKKMQ3PUo+)v#hnRY!%3*tx(o}%*#
+z$eqsFZs%qi#ZmxH&H7by(K2|aiQh6@%-2v&c%FL(vSXp*;Ri*9H^Kse+$MUWn-CU7
+z;RZLSScGGYr`ng{BIWrc<paKf7Drn0gnrCDKF%v+oub7-2@i83E>U!%Krvc_MJxPr
+zE{-!ZrhmP}nv?udowdX&{eFtzpo$I8I`$0$LSI&973T+6+W28;VwD#~igka~N=Jfj
+zK&D`2$M#vy)fZ2*rVmr0htn#6O?Zoo&$zrMGcg#G@qSrhMh(#qz_?Sm<eWN<L7Bx>
+zlE@t{Cu8|e^#L}eIswI#N70MgXxPCX<bp;4Nz>u$mfv#vOT<wn4_Ol(jOtCqd%D{D
+zy7j_kR(W#jQfrOMzuFkAm>pty@JApteb>LG=g#$mPR?Xp-?brBI<oxf?0OKWccd2w
+zO+*K(NSFu}7Rew|5$ouXy#81>hK4Lu1apzm>Fvv`&W2Ao3dC`&?3fA!#!PjA9$^y*
+z-2_y#6)LZB{J~+L{J}D7znY|G0i7`t;E29_8sevVu8m~nniFXRx{>xr^h3jT=}7dO
+z=_C8zn5y40McMkxNQt?KarfX9kn!XXOg}S8*#_S`qiQc+=RLw2ct~j`8kvgLBq3@f
+z`fD3{9krwyOg9b-f&UJG$J7XM(Wgm;qY;6XbwFNyjqgH6Dh<-3Von+2RgJ>t1?!kR
+zV>zq4#Efuj(5yGk;+4_L8hn&f(=pIhgXAQb9*wni%PWoEom{)Z`fRc4PX49UYPWNy
+zVF;YB89(NvpZI(vf6^r6%thDr^&N!&Mqkrs73zz3TNh<8D7TTAw$x6V8uy4JB9)L9
+zH74)cZMEd+rB{HpM!Kvi$)Yanhmm;&*hz-CGnhueIxGxY@?Otyl0FtSBA>@982QY7
+zMf%2T)2Ak<9kNO$stUdA3acV{(G^zPgqHcPPy-1JsYbNa;qZ53V^bo~KqKq!^?E32
+zrc-`h-yq7IHlc=!FgHo3)#~$@-a~sWTi<k@Rh9hVTdk`?`rRM0ChFrStSsI4HfxrO
+z>094sEkZ=ip%ZxckB6<P`k~*U*uh`lW@X{aN!MGQfGG#Bw`S?{mm&V<L)Tji=S;;~
+zF=CudpZp{kAU2syxp7xxv`61@z$!_8?|N%P`od|5bOB5)UW2U|KaJZ?{42o}-dwV_
+zwKYOjKHSx*%in61CQEOy?wpV@L3#l|p&z-`x>fg|z=ZDCR$eAg3ZpsTNzm75YXL%s
+z?$wy+liFHutNr?}!Sq7?yW6b|`pVmpk#y(Ua7OYyw_A(D+{P09>|Iu7@;7%`_oy`m
+zlKDYNY0|izGGpGr%GwAQAp#rDDpL`LwywA6y8eJwn7rv8t2QIkxU3-lQT1p0kC9pQ
+z?Saq){i{z{xu5x@wR}>&lVsvR7*rELbyyjfR%?U>VE?_&r|jtK?1T^sQf+ei=dAD9
+z`my_<L(Tq@wL-u4r$|P!>r2+TmfEU6eA3#gbH0K-D|whC@Gxq@)IV(1PxRWHcI(4d
+zss0$g#p5R*Hjl5u&&^+PUp@I1`SMBcgXXWw2l21EPdsTpc#$8}f6e0SSAEU>^2M*o
+z(;1JrA6)f_d~l2VK{De%EJRZAL`~uJX}vIm@EB^^G(2WiW%kReFhYB&R==?F_1-e8
+zpp(WVWhld!siwK;;OM$bO+px*c!H`TlWhEi*qJ+}rcLeA==pJ!ESC6$m>_aZC`E!O
+zVPw=kaTT`o;A7VD3Bx843)BX-+V6DhChQ+eTj?!ocD)N9N^*N*B^>~navlu+FBwfG
+zKv9AP>Zm(8t$8g?YB1TC($4Uh&18w{?pEmV3rJ2dMcd*XW4@IKn1#oN3K-=B6+8dk
+z$i^Y26OVfJK<t<de170v=j3AOe(}!*Xt`b18n&A^mAvLa2?t~ruzXZ}oUv`ylg|s6
+z4o}#IG=>3$;Enm%Jg^eV`2*55l^Zu-&|{9!kf2-zGE#Ee`jJ&eMG#&}Q)@ty&Q95!
+z3P|N)hJI6!lSxrzlQM<r;&(*EdQ+RUqi+!WU@sHe#%``iV#_;32REE$^iJpQlF~#{
+z3;~Rs(;gms-b=w4f|0RqI17~s;wvniYfOEEwa|;ylD5+u?X=yo0WQHxI1{29TXwSA
+z2XbJI*N7{fLrQIlbxovtwp)rcB%8it{U#mu+{d1@qBc2|n20@3LS$6?AL{Kt1X}!^
+zC#^c<8LX4FVlXg0yoRT8H)y8Nskp-#DOdI=?A+-;v=+fgo1x$KB*aAvep5Nwh6$nt
+z7RjLU@x+GoJe~g(*xg(Im-TP6>47uspGghIf$r0BdP|Iv<vQmn>k~O8pciT=u<;Z_
+z6ZYtv9}LgZbADtMCBOKTwM<zP(^~bKPb2=c`f00p`~E=5O`2IQ4r^>63Sp)UvFxOQ
+zRg7uIQ%o#|Mwy?bM77|Ee&PpksSjUkXGF^+1rY#nT!`_&P)|RC6i_)S)*~9SzTp|G
+zU{z~i1b=g1m2=L}7xGP5d0M*E8=tnWv^JnZ_sx&NhkeP@R#9f4XRU69AS-;vTG6oM
+zEXL*<tFD8T>p@!J-&~L1{?;ljotZj3r$C4-hOT|aD!cGNpr<#t4`<VVMfv#s2RFmo
+z6kL=kqx5J~er~#H3e_T<eKm>lf_*y++%PRL8;T=R3b1{1V*N9^nMHNT2N=KzLzcdL
+z*h+C`uF6hD=HY<BK|6Bur;Byg)i%_c`EVRx`;4_$LH~(;Azb92)2!#Ly5T(0ZT5qA
+zk!ucM58yZPdd%3=g<|f#4o}Vy7C^6*aQqno>?Vq60D5&OpgXvYfzXZ2O~>|vakX{F
+z<Nf3$!Dg1=_c7oaZvc^2lWvy!o?i8wwQO1dvGJdG(3Iq5­BmvIKnKBK9^e8jf2
+zdVO<?onJ{Jpq9XN4T225Au=68pD3{u;?;k8&RUSX`^VPakpA$`peN=1%v!H6`k8gU
+zYSkb4nboTQ`ZKFVZPL%ZU~NP$<%yp|Z#wb371htaU~RGxUZQ8bV4dqeP-h-^=mjfk
+zKH6kH*zj}rgN<r2KU(F!vBW&k`V0SorRJmm4t%uCe01qA{il|jkA52XXoY-~Jn$>)
+z!VLHxzxpx|u|L0Tt<k@I#hRlpc?C23;49V^sK&p0#oC{|@Q>DqCk)SmK0>RFnzShe
+z?kV-)*HlXp0pKlvS-n%drI{r>8yN6$iXh1*6^UGH8R(<oFT~U|c0be5Y0U2kn^=V%
+zb1IeVPiEPL!|{M5UvP&0SwV|VDM4nWTE^I;p$XFp!@{VCtN`lE^@7IM=4ean=H~S>
+zwex~Pa_rXL<+Qc{61Np5VKY>vDE`Ai;S@@xT%5i*!^$2uWy?U9P%^0WQVh}wO4evD
+zl<2~W&?4aQf(-^Si|rWV0y9L1%_PKuNwG)wh$q{5(FRK`%2Sa3jl{qlkOPk*DrFF+
+zOb;qO@c@oJyW<$l1u*#PVbTAcb8?#r&ZVXCf?f4>25`do#r}sx?BCzj&RT1ZC-F3s
+zI;T@mJ-5)+>83JAUse;&pRx{1%*bw<5J21YHTZDGI@}x5i;$JEsYbt5hia;v5Yh41
+ziW(oRNPV*ol@4b%2}CYY%;Ud8`<B_r{#^|@&CT^q{vM)U&-iaIbl=9-1Wpb&N}tHG
+zb9V+$PuVFApY3@$9O&lnplWBP#F;#nvQ`EKhI}gVx;1B9>Wx;lqTU<?7J@Tcy385p
+zb`Ot7x_KD3gHZT9#_KsJz{IxV6vVp6U*{VFEw#IB(HsY$M)zjf#ec&g_Xp=U8C;qR
+zWq{;o?f&_2IpFwb1O)_Ge<t<hpY<7;ruIM>xHvJ@wk`UaDX`1VNc<B){KSQVuKY<`
+zcQvkWfX#9G<sIwQ;;p+jH*T(vnigWKN7*Z5Gpjm(45=qVWXa~>X{bzXKhXSHoC<yJ
+zk5onF*kd@JGKRn7xOmH%a$xpuJxqeYaUpgQch-k-7pGy8K^{4bv{XXdcvBX5qswjU
+zJ8)A9QmszMLZi^JM8gh%%uHl6Mc6h5*w_@-R@>MV-Q@6a?{LjJMLD2R?=>KZ*b#m6
+zd&A}Rxo#V%Q|ZQvd+nUk%>2>KsEhQWDdCyJlbvSHM1~ck8<2`rEImLNAl0DGblPk~
+zLG*Elq^2=ARsZzya85IIeu{W=g$CocXfZN`p6ax*FHI&I3z#yg(EZGHlE<+~d>RfU
+zy>*dQSQcD0Fb){kJg@W@3bK03?^OO2hAGg6Kr5ML=<d8ET!>sU*Q?M#lmIVL>EI)b
+zT`(p!L;E>xCfOr~3-ym!=+b>p79*fm|GTpsE+Z#G3Q!GxqHg>Iw;ik+RFz~*Mtf|S
+z{=50n{;qa&F^_TTL5HDtPJ;39Dnqv1IA}ax9c=(=!FzY8y)%A}6%%594O7Wh5|<we
+zKMKTw=XeVP6djHx(AruwH}0OLT`C~OXswJZ%SDnPsFC?M73=%5P%4y_fOToJHF3BS
+z>aLp--xG)DsKXO!BETGue436ghtkItHg+N7+frk&`hYv^gHjj(+VDgbwi`6Tgfw0o
+zfTF_qkiH*aq;g34Ikz$xu2I!04ira7z$0p4G3WLqS$5ni)_v?Wqb+c9C^%kdQRjm!
+zNyt79GXcRBy&X9H<1h8qscoR8Q5t6X=+xKI3iMum=NCiy!yAxS>4tdww%#gt1ittr
+z$K0@?r$63_IthCRVo)VW90}CsNC{ax&BU*Rlyj@f?!cUJtS7-NXAy!?qknTc|1Qwo
+zx)fHw2L5JT2Lug%M_*qzN(p#lc8}TVSiZx?XN_f#sU`^OK)j#cmH~(6Ltj^sVPQ(d
+z)r^(Gz&a8n*%xFPKLs@zz>9Dut0*GMNYNh@thP&{6u<|6n=n1TO;#pVZb6wQFf`!L
+zmDV#%)EG1({p=Hwd;~EVZDa@|;E^CpqIc5x_Rxcqd2RqX!T=_6xmZ}4DSATik5|gM
+z@%r>@no3RvnjAd_KDpoQ1awQe<MDIc3UiJJ3^fh1-a8;P#N~<0oHals+}-#!d*Cex
+zap966RK7LU(z`l)yAU55le&ti=rn|&QRF?*0*m$HXEHRVHyUSzscC=NzM)>JzAR=0
+z+eaLnsLEA|A>M@nuIW~Tc2cEDCtlHJRHhmK`293(x2|8U3YSq9ohsG+Z6|WXEe~$6
+ztJn<tD<70cauo0iUrepgKDOvHl8c}!_b^oi@;evS^F*L4e7Hj`;>0%^uW=1yU)(c-
+zhyu@!baoJ$6O3Y~G`6#UCLh6wvD2LXJe>Z;i0Pm)EC9(cNYY10GIuR*szZ@0bR<rJ
+zu~ozgZX>=iBJX*I`x%Tre+X4+8K=QZ%1&wZEOcAJYbIiZqa%JN8NdALwWy16)%qCk
+zPBrhI-306W2C&KjyH>RL3xZm_6LK7E_iU$lG^H1poc{(p&RZ#$BtemT%zWkG$56n4
+zk)NQsH-m5t`?yW2^)~*2=E^rhqpJ^iekSc|Y^mRQ7ADx}S2qE=HSY#jcl^$|Yfk59
+z-ZdFhu-!MaYkn_(*RHwE_zFX_neRVn*T&}}>Py%pqpwlrp=|AiR3n>BNWmfV*_q4*
+zN>XyuAh#^0uyu2Ds1SM#^HiI`aN-mxE{ed&)i33mNN$=L<*tq33UKCv`49nuj7APU
+zn_qe%?1)`pi{ls~#Vny^a$H$G2}%Q00M;HjrWf8F&d+yE5)R$%uuG#pY3cB2TjM*T
+z5|O_fyMke3RD^ov_J9G@P3$57B63yAL{jOa^-y);&RunL-JFOqES7(uwGyxfFwniR
+zZi;w>x5WpK@P;CHNHlrijvb#=(&{FO$<4AQFX1Mn6H9Oh=-Yo3nXKo3&&pU=VAjG2
+zJ(x*IPoe2C{waMMHp!J=W2vjNM{C$)Le%eh7t*tWSk-nJ$6~}F4IRa{Q2d=8B>gua
+z(nXj;SK2VulRoIoqJbL)+!Lq9u}-ad9kij-ORTiCSs+KoG%!jjDvhVM&7wL-y|#;G
+zsyi-sRPrDb8-LlG&ZY}=K3dqNxIZdQ&tr6aw%n6(Bg6xElu^Uno6~gT@ed&G&a^5d
+zt#tf(J)hP#Qu@_tBY*i?>A_$XTL#pT6YPfiNAEAgy~xx|X`IozBryi}mSZUSl0|6j
+zfYEKPkXBnp)OQL|_R%PY<SK)XPhN}>={GRVfLy-Co#<h4jCjf-%VPq3=yeL}E^4es
+zl>)@KBN)grlG|a)g0j85pCgwOLo@Yv7d1v#RGVZ&9Cn^<CU^j-Mw?z2v@_i*Z0;yb
+z5M*NP<DY!>b!%Hr;jOZWZY~G4V`_Z;`jcNoJjAviBli4XUk{bcq+#R*`^qEkb-%1M
+z!7#nPk(?hCUba$7Ofhbr>*ve9jm`yNG0Zo?vJ45?dRJ?a!~@I>X<e8iawla0SxH?k
+zP7sZ{mz4(Vr{Ko)&DnN~nlBFNbc_pOT3X#7E}U6`%Wb7?+D%xG7%zbkB;UKKME`z@
+zou7PPwtclVd71=I)4L1lq048b7Y|Q%>TyBG9_k$=VNPg?^~URWv^9w0It`N5WWD$`
+z`p?HiF<G_FqxZ?C_Oa8}sjV<<gb^mje@xuRX=8Svkx5dgW2`px)I56^0^&~mI|A?;
+z7l%tM7|*yxd*-4t$v7bhW+IYeteZngW(t-IA*4=di>_aTjE#4!Mp?Ag-?h{A-j9TG
+zFAZ#5dD~!Lf1pJvsC9-$w?f9I20HO5(J3a2t-rhx1<^ZKBHd?YQDkC8xruf1D*!pe
+zm0jmts*}6&?Awan;t|Ew_WLL5`%yDNf9cQZ6ZHq4u%@6ooql$?eH7(=r9eaX3Ok<_
+z>#kX0KT}{WWtMu2{XLbX-j0zpg0~-}x-jyk?@X7FV~}kcOT(J~+}nK2Z<mM`bWz%B
+zJmWs$e|Fv&pPoDBXQ@xRip;?#rzD%-{Uvza4Lu|nLF<{0++*NE%>Qy>5<0hyA$(Ao
+ztkqtWuPGw1*C@&mu?%yUkYRVgO3;}($ULBK1oxRcF=Cr7&yn{D<pOWf%_pEiJrLc6
+z11&fx0`U9`f7}dbCTm{Qi~mIzMETDp^P?B7_J2Ch`|(`=C+EXz+!cTef8^~;%$Y_t
+zlA|$P4ke|_tD_h8Ey10D(9Y!gDq28(VX0a?3Ra2QPhh>`l$hhHNY#4sPJ5<a)@m<8
+zq%<qpSD3IX%4%>x?<{B517|kMUc$U{pw+$`SJS2zr3os@W?xQ)6kIg51KaWvxT%YP
+zcR=HHBf$tB8A!{od0o-yLDgVv;wj4>JO-iMHzbifP)Fy=(EjF85lR~n9m2=u|JG5l
+zZU^Iw+)-787@@Wwu@+Q&SW=fc;>^!xa68!oRjhuYZTCJoYVdu|x$ue@irgm17X<C(
+zEJ*C#*q#Je*{6(nz8n=Pet&+*4x5A_FM488wU9HTD5;OqNMLK`xEQYlPnyXdcWYH-
+zHCu(l|AOip2&bZIJU$9Xi7l=LP@$`tQ#_pl3o}E;R6C*K&VnSQa#Y@lArjPq?-D_r
+zuK@C2fIg#dI8IbU+epCMfN7X*1w~6d*@Vaj;(>#PluPG0w-V6aqTK{J;?m;Cp*!<)
+zvNsTYjJDF?Y321?<^)V?v$q4)L*fJ0&3)G}5ymJwE94!aNt@!l3C?e!Vp!dmQjyE-
+zHU$LDRKtFaJ$QEKif4_POf+$gX9K=MsM}3wi^UMBj~Mfp)Dug~q#{R@7KyF;x${H0
+zt6WxiHvN%xZ}C%Fr2)C=F!g0l<P;{LPdpYW%TJxDGge*yQApx%HrW$O`6`RUGnv7#
+zZs=av8N4?#_}kjyptI$hoA;s81b7^H!F+*$Ha4|2A;B?*=sv@Y1I{TBDvAsl{V`5h
+z7^ZE24qca+_-W0}dg~9vphQ{?08OXzVPdD#wo@%n0AoJku_>Mhs2y$+HfeY4PK*`T
+z8)I<0p3-Vp4y#`W*Vf?!sq6LkQ3f}iv_Q^5PD@VYBh;mSc9S8M(Uby{$)r7{Znm)%
+z4CvxvB4SMhC<Q%Hf#B}CqIfK1JhkOfWR#A9(?v@<$_%WFPd)W~<J30B>gjB0>@TO#
+zn2&i6pbRwVjF&D}M+M=UZ(vhY>jaY<MHJ)G9yy+anaC@{rbHFv1;(R8q-vq-Ko1<p
+zo1sbL1o216_o=K5fgml1BCAjf$XprZn?HMzUrl(4o+@+GI;s@h`Anp6D@-0Nehc=f
+zN48j~$zy~yn|q}wwQ=f*i1g}uh&fa>yLRq;o-~?+2r{RRQg-QC^nWR3)+rqLw1YXv
+z9n5~io!tT>;}7KWvlz%_90&!eIbxnLIPFm8xkEY9)d8#bj3Y^2(q><-h7Z7WH5R`k
+zanLnSgt6#&zIhUujAE{z73*De1;arW$+tA;cpY9lexqB_XWDe=@m|bex#B8w%^FOq
+z*o<CyevrDwYcTqvi$I6%NI>bPsR>WL5yI*-a?$U5Dy^wdIzSsHi~64TqRPSi_k=QV
+zk&iD!hlGZt6mJ!T8NF2q9hHB{vgTrFu312F*D0C4h&~R)yRCN%B`}v%>abvF(11}d
+z7b>%uZ3u&B+$_h8LaK7-Ce#jbQwc>{IB_Jrico0I=?9-1)R>L0^RRy6I7)au_;EX1
+zzoQMo3!w@2RQ-`*J8QS=@-;^UK#@3U$1+T)aYeBJzVc#rhB~s*jrqNEzp=jg@ks7L
+z<1wc97qKZ&6tO07Q<!K4vO?P0APw34)P{pjN8id}C<J9U)j-)dfeNIZksDtxT@!4>
+znK=e$aJ?W<LT@qmu^oRX&dK;u?s??UE2XF!%U-y{RD&1b87Ckb<Mn_ORrw}&)M$dn
+zV3Fi#qwmpB3fM`5$NGl>wZLj}Y#TnBh%-6Bvv%-%Fm1XYR1Fjgm#QLtNAy^y6LNXN
+zIt&G-{k3l&NR0JV@K`spVR_XE)!rk>H*gDb@9OGkiTACnaO^v|*Bv%oCoWfy2@EDT
+zMY&nyq8>=rg6WbO<lqzg_DQ700s{y;2kt(PW*3-^JLM87EOrW~6rykl_Z>-<9ocJq
+z2l~!o)GGJMmfmLf)Cm!Le7*He?UAgMGlduynKy<5$#dASoJiwVFK+3M>HM8`sk+~r
+z6jVdf_E?ijjMRQ3SN&ZR+5V51h+*QR=5b6H?6gZ7XNYGiRaFo8^}Q7>MV=(1AA%Zz
+zs}P7(+)+J7OR1_I)5JVT_>`8%QXY(T^Ti$ZKuG<1<Qs34Su`8BARRt4U>WHT%&@2H
+zo2FWkmFfzdX`cGtv`X~GSUz$hl2<pl5Csvhtl^IBOo<Vx)Hl92T(Uvl;?qPO42YeI
+z*iby2F_r|tYjLsXSix8*_B?In&6y{atJQSC2;^C#+8INobgdhr#(`bLZ|<c{qm@ov
+zHSg`jN7``O$rv27)u@ZWG;n)~(T#k~j0VL5C)@>wg_Oo{%?>u<Mq3aFaw|ge^8tgh
+z1Dg^<mY{@0p+zgV0!^-@5OnOCsE?*(GZx3SgwV5a7Kp>CB#CXV2p)}@7^|QP+hvdq
+zW=xXBk0r+cKQ;Zssp;2aQ4_JKv8ibsDnRKyKou^^29V7s1R4hpIT?u2DKP<I=LTj{
+z;z8N!8$!W8Xi;qv_P0|?)w$&4nHY2kA$G{U8G5J}w-O{=en-2>7&pG9o)FW-F{uqn
+z@+yHwXbreWO27f51(D}Tx-KJhOR4JOJcAph0$2#QGP+tpjVeGKFHukGn!rVH6{&hK
+zy?6;3k15<s;5P;R!tZW;F<%PAZn0A-N_i!oz}0sn(O>2d2az?y;1~%^Bf*@SU<e(R
+zq*S)&vy9{po^|IkZ5T<&o??zGC2Att*@vK5mzT)Z4J@m0pl_gS7#j&47k9)AiFJd$
+z8MV!(En__*UKPzI`T%_GMd{mps6r*~DLz9!1SRR1ga~u1yNBf7rBh%!CICuJx#+%F
+zB7|##Xv&QV$&I}G{gEIlck|>TAXnZd3T!7=4X2wyN=xeMk^YBk=AJd8I`XaGmTyTl
+z6;|zLF+9Zo?T_PnF{9CS#P@dhwIAdxp}F<LPGB`1K{hcN7XdQ%!AyO}PP=t^#V8nX
+z4BOA+_?f%KzVnep)HvDZLynM;4*2c8ks*AWY&-d%JMDG0;{uvmQr~gdggih;I>z8g
+zopFUdGdX3CJu_rAArbqD47;$@V1djJ--*mQV?{tofPUAnPp-1d=T_C5@_#JOiCYbM
+z87dOjaQzD^o}27xp31$b=MuZnE?FH#Ab^{nO>ysdKGAX&4q+mYOPDVg(1RNwqCB>r
+ze^>SBYp$@TCF?G>!&XSOvcT%d(r;&9#1m@bO(`&_Gtj6t(wFCQ0EdJkg%B-IxUnNl
+zK?@$C8obTmf4(he9q+K{7_<(Zb1;&-$Xq^2mzNRi#$X{z#RpBX1{0L(S<8Cu^hjQX
+zXvW-74uZ{}G93NPp2&1qG98Kw!^2D?jm|2ktg|$c+Le3gS%J(y+BdHAnIU6}QBey5
+z9%~P4`k)_sO45YT7UxfN?*Ib!+haR$2i`!+Bl86=N2m(S5iu2DlP7whY~!j^+!ZAt
+zk>RXSWICbB7Fy)(0bR!#Cp*x)psQEE7)Ng9^2_X9Ih#P@#`90>6GeaYdGqaxEm#jK
+zoW%T$vr|HkJ<>gguG>!F=8|a5ac>;x16JTxriOup%<Ci3gYjcJ=L)-Y*;eP+Gd+V0
+zm&@)t_6~w%jb6#vVbY7aRTNJNA(zc;=tg>B6w?IV;z*E;`*<l9d=3yxsP=1@=^HMy
+zcc`nS43U2IGP~2{cXwZI?^Yr81^w*f;rwA*p>)acf--7vv|YLN^!M@ZWkzIkeEiH9
+z<7USZ4j?i{3c@*2)0{z2d*$!6h)Hb5tz+gXgarx$_%cVPE%_<J4(N}fdd%`f#P?a<
+z1Rffwytz3XLM6=nA$-<HRa*bG*e<R#BlY6l(5E3>{_TT3ah>~N8-)T;2I)$f2u*Yz
+zzp<x}SB+IDM=%H)06o_ApG?n%r6~9S*3Fz@6KFy}2}J~DG9I<7x(3Nv5roDK+Un?{
+z;4zE`KoW!u1IC61612Q|Hvqyrpaeug$Z$ypL%Wd*73-#uBhU`XC$h_zcA{jvtpoDM
+z6DT~!I`WLQh<A2(b<%mj5EEazR#mb(RVCxufO2(V9DEuFMRf0YFD!9-4<x!k<^u6b
+zFRN2w)dX^2u)e!WUy~Kin{TwE;MBlpIo&SIkqT5motHD1{A$czqb^@gNg;>Ll-h7@
+zJw|Dn;ur+)4CKe3$lOxvWzA?bxM~#fG~^iZzC?Q;vV;I=#Jf?@181<NLy}|!D*_>!
+zbJ&0rM<j^MkAkEh{qd-StLfqJg#10hd@9zXaLppm58&~Hy7j#RV>IkXwcS{BXMch>
+zRgpJra6~Pa&(}HieK*+CRo%$@ep9-*8N;D%(T*NCBxckHE5_tHZ8w9#wBtsXzOMGT
+zNG)x(+s~+f5eVVIO;+9%vpkI56yC0%yEIa$YH;sedcN+D+4eA%4@em~krbZebRFQ{
+ze|0(+dH|7h^-wKCpb}USrw8pTI4(CJ1(qBu=Q_7a$c@82(ZONi+innukR|vyfq4_q
+z<9=gUdjg>crn)waJk&52;x{+xI;tUk2%D+u3^6(=pa#0+JJgNXE0%RZ1`J|dYL4}`
+zQ~2Xd^Z=)!R=_#*N}8zwx@6!GQPdj}MpXQ`-R>@}M#LZs<}#6y@TJLG60JtxRA<jf
+zzO%!=Muof6*5lTXht3VL00Co9eCwSY@dz|_surYYV}~0xnR^k;MIvXRyLw0p3LB)@
+z<1uMH>yLs-bfKa+DhaJbWkex8*&!bs-XxHn$yurdH-LVOZR?2l3?1c_XRK5&Z^*fZ
+z!;oQ7<|-I&tz@O(jxLmTN<v;fjWUBXeD|HWq);@Hw`ns`15Rj6V3etWPZ-VTgq>k3
+z<mqjoZB9*4Ui|I;PLRcg7Ahq;lS|DdVxThx$e=8_xz=z2J{w$$uc;R~S&Q<s!$)v@
+z==!59qc6vV7V!AKgp-Ymxdr;(6;`pn^7CrK@aRzoeFE3OJ6737DuhADe=AAWl{*kO
+zMTTZdxmA+wcxD1vsY#;YO>%MW3@I#SZ$#^c$}N$BGk{hYJ_SdcY-G@S#NEVk8&?#*
+zs-OFWnjYqayYv&A?ddal)X6l6Qt{&yokC{6K*tW)rKMzW$1!!cem?~z^&3b%z3rv&
+z^fE(%ydjq^5#HbF>Z+9RxDRfHT{H`yu@|EkNH_t0+lSBih9mX$ZOx%2`YrzvvNsw`
+zi~`;01ME`DOyghbIn+FON3v1eDZP7<C>oJAsmgZZTVQWmokU@wg$*Hl6?J2`pcdaF
+zGQ}s|vQ;h}aNjFsHB8SawyiH;gH*rZEp?A#U){y#Mj|W`#e-Sh@gQX(4iU0U-BTbH
+zlOe$jqy_E)#S+Yj1_ka%>VU+-g@d?#5LPA38A1%s-FLJyJG-1~om=<eW5QMrOB9%b
+z8K(lWyQx^ros1?9cJ=p@YAQ|BQ2)A*RpNTy0fb<I-@>^gt>}}t+tZWZ?zE4khtmEa
+z6q3tL;_0CFPvXF`>0fS1FAYmVr2b9`%HrF<u%^Or_Z3_!UqmuDI5Z$x!1#SMerdEu
+zYC&w;>;WY-3-B3Tl6Rq-o6vo3^-h1W=ZkoN>Wph4-3y00MRzvW3uE$QDAClAAl6}N
+zVe(X2c%Y0&;#@h0s{=u|SY&L3ixhHk<?QXlW!FQv*<2!$TY$d58n<(jn|kfTc1TT?
+z3qVmikVneckZK}IGuRX0?80rJQ=3U~zOl)(W}-w%*Q7XeF8DdDHAn5_chu*}0A0(7
+zG<i&JpvyN(2e*L$4K)A|u0DBQC|6bL@&k4*;*@z-{e}Eoa3MuL2}zyKxQ)W`BQYK+
+zv_~dpygDFu5<RFG34u;SfKX(Ow}8-2+cr)F_0^6zwA2nzrip=aLX~AJ(XQ-=QTM()
+zU|*fCUL&EFHMrKUIjjAk8!m*oih~4fR4uda#)K8yh+F~7LLPNo%O?HzZ`5SH?W1-?
+ze@0o^8)?gM<+&Gbt7ai7jY-j7;qt(5W)}_cC03fQUt;G@KM+{`JFxm-45U2p0OV!q
+zw{+X3!y-Pta_%0}U}-+1cK40GCB~pGSUH%8e6a(5B1B=O><|tLlG~9K0V~(hQs#5l
+zSTo+EVG3#edfd*6eF1iC5Pbv5IcBBjMHl7@foNiluoOXz!_Xp#6K|0sxqz;&JHTbq
+zFJ{;aMhbqArK2~5ZT)>*<m43e<yC151IzUE=3bcMykl3+ow*0G3rtHQw%dou!eF25
+zBj5`C1*zg*{JVsAc6S|&gLY_+w1bq4*%9kFFoYtIIQOQR1oXIJJ`<yrV>BD-3F_cJ
+zhlT8C?Fa8$|GlU@n2@DsNC{K@*%bFS1~YpA?8%IpLF-<iI^{y`!iE0g>%W47=)O)n
+zJ=t)~zAuuWCq;a?bcT+o&K%HL*VunXq1?N^2Nk^arEtj#BW}&PryA*BKsW<@$tYe%
+z-4(e4mgk5Zqw=R;Ywyiu`JOo5#gVw>E>*mQhOw9Q<=G@NTEzTHu{KFpfH`T=Nqfot
+z*V=E`s!{L1-fqNY*;Ym}dA+^G1~c3#qySEb`e63F37D5SNO)~xu~mrzcXyWC`KmJ6
+z@h<ykp_vt)UTkcu^&p@woI;*jN6shvZ?x}Gi<aX_o^_c#PNRvcp=Ba=nRwTtu2){j
+zc%xo=vwdD|oj3-~9k=9`spi`dI`qspbd4BPedlH<Ige}G9?5$w8{rr1l4yfbTMSx8
+z&g)mrpjdM$-?Q@Y8P$(qavc?T7g;mt8?Vo0UK&LsRh&~GyWvs8_bmgiEOk^4j_WbH
+zDs8F<E;a1Y6A!9y2lR_d#{eDj4NxfqSQ(8C1B7VD@gt*g!E{iU=fCLil~^M-8E_5I
+z$&_rLPd!J<GB~0G&p_!lmOb!t)N7@jjvk10;#S=nL=vDdJdh3CY2VQa0AR3h7^ohj
+zMRB?f{6VQhRza~Y;>ckI4mj<kzw%Wm$VX+|j_t;dI1R^%>_kN3@Z$(~Koq%9O00)g
+z4cmvw+A<($Em||O&m`E8skjli4z!=Z^%P=Jp%)4`-WU!;)0kNS?OgvJKw@&>X8R9e
+z+=SDjb0(n5-^*{c^O84c`$VDs__5F={cKU#&ZI@|90r|J3H0$;C9dlH+WmF`%4DlW
+zxOVab<;c)@<hP+b{c0CtndK|zetX=gnXQl9YZnwwfH{>K!yaw~fUXbShe(2}_3ziJ
+zb9B>3LfH|gw!MDhVU??2Du9CX?%q&#jv?4J9)qaYPkqlWonx$Pt|yRF0zwIFkx?<R
+zMZkduQITMcK6$@gf+B$Er7%A*A<*ktcX#3U-&}Y4-S^rP!lI7qtdHZapm{x^sj@iw
+z$$RZpYK|`d?@;bM=G4;)A#0_*2erwYW0oY_3?Au=B7gFrES1i?&t9c(UK8GDntJ60
+zyCB?xcL#L#&+STm_&#JJ*?)~JH(zhN&puC=eag<#`};z5de5iu?Yr)?-;LWHOHSCc
+z_3*EdVYB^&{jn)41<7Ju5Y5$I{rl(aLcQ|4_C)>EPwYIs?`a4O?(AtEy#2LEo_^qd
+zd*x&UY0^#$r?u-nd6Ci#+?;^mnCj|k*^9DQPf74fedqUIv8UPMEcjA)q)abqvPy=j
+zTG63E_<@4THv-6jxr}5))Py;Wm+(6cgL=Rgt|~@kiA6PHqEYZkv-s3ujjMuva1+P}
+zd8Gt@CR?jatDA$rJdTyt?xl{InTZsR4YcpqC#OXgmhPZX=C8EA&7BY+P<U<XWC4z<
+zmvvWZWV(LoD|Ye!oq5vKrtw1|KmIIh(<&zgW_euSJS}p0Ny=<G7<X?bQ)_lpuXw;-
+zlIx>OMv7v2b^p2HLVd>rcIBAgmffHVlYe@^UKq0SfLC90N2D|_H`-jkqhZtf#`$sw
+z1vuR7TAlMbJAXBEe74F2h(Z|zY7AZ3J3W(8J&R7!4fUIw);CHUD~JWi8N<IuailLn
+zv}Tdr!ezV`CP~FqNDA!gvtP6eN9u2zt(!h$zl6iPHfc`}+_if+Y1fSYv|m5PPowgz
+zwK(m3eeP%N`Fc&#o-qf%VF;A;6r2N~KJE@6AFuPQ#pieFUnT8ma{p)T--U27FqN87
+zH+y?eM;c?e5?)4`-2I?^osH7CPkq^*Wiw6e)`#rR<;)qK{-&e*(+l*~Ur3)=3}p)r
+zX+ZV$qO1~}Lrfh2I$1S+^+Qk;zx<H>K^5lp54hRk$@EhF&|B?@it7_!u!}MCFMkLu
+z?)`tT$|i#Ewg5}O-6y*I3*a|PO2eyl{^!6y?tj?ck-yGY&M<#&BWO}@zYfWFyN{(;
+zOrPHBnb)TdEBX6}?MEz~_lwY+<cA)yKc`Sz_OeIq#d_^yc80#=QM=sn#cE2P<ewh3
+z|B$ZV{ghpj%y`^>)(U>9zxTMEovi&Y`}<jHk1kt?YiXzd#9l8gC3}8i?_h?IdNo|0
+z{Ke1g;?nZ8Y>8@ceP2+jyu}aWx{mh2PyZqO&kL7i2_Iz<Z6XWDy=Nx1BHoqP5<=?5
+zXvt?fAMkg5xHh~@zZ?nW6;0j%pF?j4q!=%c;e&;3vBAwPy8K>MSiTneCu<T@Wi}zj
+zM!DnP^kK#Hi+L)yp$)$d;*_t(Znbzrs7Ps=ng!)1T3@}n1>9-?y7j33hS#D2!k8>v
+zPF6{r%^<q2TA7gFjbDp?Uvh!5I<MS}+e?nRoemD+_FmWO9%lq_M(J7isytlHHO?Ts
+znPu*f_Mo`MkB*wcqC5}$4h-LWbE0_@k*A~AdN(f}GN?J#Wk34N7(rt-R<Z-lxKs2(
+zC}pmrMx`&g8&{5WtWxLX%I=!`BsVuoI`39}$tqPcjHQ&APhm_h2oqdx!jR)F_jKom
+z%FT`Lc$`)CMl<=;j^_x4L$Jae=pQM5twg`&0hO^jr{25e!Q4+HReo|(-fx1YC4+xI
+zNe;sznnXH{I+J1D4Hn`iHp<YP!1|Fz;disv!Ox9t;fzNp&#XPstl&bNj_x+fLLjUd
+zG!77AGvtaaLDWg?73ZE%4{3ml<;V3pOJ*j`9UN!Q3&GN;lrUD3NX-H9oEQwBYDzRs
+zKl<nNqTxdCLV{Q~V=z#Z8xEj^P~JFA*LhXc*)SVp%mW>LQP^q5$3V@6OWHwB8jv6*
+z>sds7C5#_*))U=dfw?j^siVtWcrjIWunoS@Sa)+@Zx`58@}srkVhc?5qGjQk^EZJW
+zHenCBXRSQ@-mxj#)VK+uNUcM?@aZ9~JKn7iE(u5V$;IL8F02Cy&=F}|O$KUR&zlcq
+zoMctq;?Sg5+o=feH9T!|Pk$dEX+aUzAB9&3gEJBVh2`s)g^QExmxK?8^!F}>K>6*-
+zP_f=JJ3S})^0Kg+IJrvNH7N)&z3pCA5=yJqhyI+Nmp1^s8_|@o=4dGai%KB;sbzJz
+zDEUf#_z(Hvk~HMg=*jQ5$|g;kUF#8n-o7uKS38YgVug?64=rp4v~bnAF#ZL!6Y-uH
+ztjLkszCWD1q$uzj`SoEuE*Hvq)18V}y6M{*1dxUr1cWyDDj;tT=j6k7VbLg^1aCMH
+z`V+gu7c7u*qg9@X)N68ma3&M)Bv`6m<COwE_k!?yC%adO81Xyh{nqrXEIh^}Bjgyt
+zgp`>lPhJpC&s^3RWDIf;NsEFtfK?cGBBw?{K|F{5!ndZGjk>VLXCHok7G%7a2xv@N
+z7k;dk1<;?lJUzRLdOK4d5^}7tBHqGfH#qmj?CVcttkmU0;eyQhuqoIt$_b4;dq>H<
+zQ(h{itYy^;@qob9?Vw5K{p5eNhc8ol&WcFZgb2Ly9FU9!8r*$vOV68!!O&nxjS$Ln
+zp2Sf$r~<aonZlfSc*8|Y1>U5*=1LRcH872Y<)~sYL`<<C9&ocO&1rtsh7w*};uO|H
+z@)b(yAuN9-l;Y-fGPvPJ%-S@6Rt=+zDmj6|oIz!E_~U1F&kS@2oHHKf|4et$D)7(Q
+zb+e^fct+bGoDzw3eR|5p;dIP$tlA3Htzp)^$ypA{9W!3HoMrxnd(hMYLu*bLkJq?Z
+zHBPBo+49pbq6BFBvoh4y9S?tgRyJ%!I$=%LaZq!b2;qTi)L_8r7Y~N>&aDtib8q_~
+z<s1IM)#NtLPFv(r>XgmB3~IsInq7y5TqGS<F`6>yJt5_yJr(iZn<Ve)UmXmW)Lu90
+zX<taXQFCr#ElLQ&o`=9hEchk0Iwzc0f`v1*OV5J0j9fVViJygwo0`lR&7PX@0nrT|
+ze@KwFqcPn6W88@ekbp=`I^3bN;xWurRwy}VUwCy0awNV#yf}H={&0m=IW=W@S^vGk
+zn`~xteM4}C^%oC@H|ab3!`b>j4~8ex^rJlSfL5%Q`J_W+B3)W^_x@*pxHQ~>C8!oX
+zSm(w<1(#gh9Al^iG+iNCXL=Hl(T7k3An-6Uov>+6iP#@1If;5KJ|^?FC<@S*oiIS7
+zFUv{K*OBh<65X>@Wh6IthmVJJ{g2diy=z~1N)4f96M|*5H3Nql=P%tkh$HhBA+)W{
+zP~*wo@H=y=d~SwKgDxmlUkkUV4SFw3+&<{CF!N$lUw8okdvdE8&W=+=3D^$dWsHBR
+zPN~=KunY5YTTMyaQ+QW+DkSMKed5|sVI;#mB(g)b=;M9imgG14!Vz2rG7ZO`Bt=B~
+zl!Bt(Ff-dsdC<Wwodao_{O&;bDW$gP`v${XlCKYj4}?(krV-<GM2Eifhp6}U`cNbi
+zacWl@n%aLPToMVRYD(Jq$$z>!{8T0Y$ecxRvJbr@j8ZGn<aO@|7tO;}N{u+g)Cqfp
+zV4}&7e=1y_Q;v(8<OX7TH92US+{CU;Gz&~oJ^j&eF>ZO<_((XKB?<`sLSRWRE~<ax
+z+u{7=H@+4=xXfCJ3s-t?u?qDYuZ1V-$#>h6iu@bVa_bqK>;$az>zsI`FuC-9!e7il
+zJ&$K5r%$&asgv1}^v$bv^?TFP^|OuX(^ZFly)nH(IgeksK7E<e=WR$|<$QAeO&ija
+zH*JWd@0>CVAv*L)a7Ur?-MTDXmVD&4$o+FF=Sa049)3DgI%SR~%7GGx&I94a`ozPL
+z&9!4cOrHV03pC&4VQ&X3^y6QNl<GZSiOj|=E0@l<D)ob3iCkD&HD;%D6!$5)?p0dr
+zNpAaUq$dMKa9)2jeV+d2NnG4F@mrA(W~vMHy-!9~=)Nshfo^!nnwp&O!^n*h8+Qfc
+zHoqDaaiOf`Zg~L#_>C$s?J+6`!H`EX2(kghHR52ALC}@KI8d(05f#QKL-IBz=x{`1
+z)e#h|kt?BHN2J6lr|lSd;M=A8p3SOACG>NZxRCGre?Y#?!k5!6EUNzf??U<0gCjKl
+zT^?3vjHYs3*8A-A;T9Pg6?TrBOJt4>M`~;YYH*w<HAPxCO!1}dZCo-w^7zsQ$YJqr
+zz)e9VB?12i;)zW>m{F$a!iDnz*Yx6VMt2O8ebFyVXovYoh@9_1j1;bhr`r)#tQH)P
+z5A?w}V(g?Fi6zlK{St%bs%LO&N}et_q2Co9jEsMS_ry4ky$mPwa(8@9Zztg2D%d+c
+ziMf94zPR5}9N2{doEahJ3(XAxR6$giuw%XU`N*{7d!LJJ3uUf_fk_WAmQbz`FZAhy
+zYwOa-kR&No&XKFpoMDf>PE{C_u75sK`jHoY60z&Iy4o(bOrXI)qp2iE_Hk<L*pTSG
+zt*vdcDS>4&buYY?G{FayK2G?76NL&j!_DB}uK7t~W)WU^A@XPzu&J`cks{snkd+~M
+W7|Cz`F><#G0$j-t|2c9`^nU}bkC$)&
+
+delta 39503
+zcmX7wcU(>XAID#xd5(}RduM+W3RyoZE0Vpl$`-O$7nw;$W$&%X%H9;RM>ZK*8Ce;L
+z{NB#}!{d4GRrj3pIiL6Y{d$kvnUiG__Lf*!)HbI8fU*z?KZuPXhvy`Ef>pXo><s4Z
+z4oDyHe$m7c#2bLB1{8fvtOGb*v8df8u>t)*eU55F?{Bln3%s%@=QgpZN>n8JLbRjv
+z5N$GK1|6J&e)I<T?*vr0CqNZq_d-DRoWwoEe8lH~8@=vvm`JaCyan9pb<eFtdfoFL
+zP=j9k`Vr~1ZzNEYUiYFC)uh+G8UnTcy}kf6uS}n@?;mYI>>uk5_H(>N*<!h!1FKpz
+zsyDN9cn4xvuyi^hQTA*Bc(sSRe+FpP1Z+S8&}Ki~`DBZ73f+j$W?&_)aNAN~mFfNV
+z10bhsi#ppBpo8r^blF*S@Dws+2hi~xeZVJ+GNh|TRpL9)sVC&?Y(USw&_C(Udz}S}
+zm=<}hM2m8Lh(+br0~j0!R=O9EatmsBJ@Abwz?W?hb;p3;vO%;yOe<Cx!WMF!mLwfw
+zvkz47tHcq+?~u7JLpQq%IVA)t@Ga!*l~A_YkfEFC>YG3=+XNLc#iCKn8*<xbu)vxY
+zId)l;BiBJ5@C2{j)S^0n%%b7s40%)nM~Bn%|95cyjr9gAxy&M$5A1yAZ&57pu_()W
+z*qNX$Du+FGCftO)CLzzRvh&hWi|SsQMPue}$VZhSCzXMGz6<KdbI4cpIQ{O}Am5aQ
+zoa_$y-WB{!Fyu$NlR?bRiT8-~Z}Liu>N}nAyF1kP$HYyL?ry|0^nvtyzkGo#?;tar
+z!E=0uLKhg_dJ(%4Y4zkas6Wn7`MN<q`A!Un%4s_QRaAg~@wceO6e#!6bd`mP^h^0X
+zEoz71P_^cPO-YAp?ha;)wa9&jS=7!)p;~PQ|I01vqV#*MqM*x_C#De-pxR9XFVh{W
+zlP6HDsGYWo^uhE7t4cfhA3HKTr=?jGvwK^VbB|e6CFq0b=XCXx7L6L-P<<yt*IW!W
+za2vQ!BGjPU;NP}c)Y%@;{+SD2c$GzwwUnJZe^|81c_pj^RVs@`?bX_%QI<B|C_m^<
+zZcyXTL3jHKHD@!7?pvYe?SjbH7HU~MM4?3%^~7pW%Yz_y&xcyo1Uix~VC?{~&MtP&
+zu4<8&ZvnMlftL^bM>2&LPoOpcyybn1s*<p%*U=JhiJ%{(=SGwjY3cv53z^hE_9+P!
+z-5YFJkVUb7fkm0}1!~78=-4t)yWPR7+_fkxyV}{kjYS=Ill-2|AKdje9nem%_sPzc
+zmo4gt22>o~X@h8}1adNk8(P%QuR~oUzwxOKRK|3A|CvSoi<XpL8`X<K=O=%We-5;Z
+zE5!06(5@0J^_4|6b_Fz<Gpdh*w(b23<#Y<hzfF}8Y0=1014djBjNm*lCy#>2CSe9=
+zK(VsO64DRaOhJ~^{a`P9BYV~DkVCq{ar8c@XUpKYdN4VhUC7y$PV#Uwayfq`XLA<0
+z_PivAwHA3=q?1$XW#^w)u;uxC6D)gO<QsY$NcKg(;FnNO7r{xKh5nWRr{%Gby9%LT
+z#|mI07o*^?jX>^7C`iwfKQ2J5MjT75PD~`afhSc%!Nf5T)h}99RjZ=VoD<-ATA=X8
+zR7i0eg%2cw58P-&;fzw?z1pFO7)L>-BZ_7%3H@dtitc;~A?Bm#OL{!X=_t{jJ|O)&
+zN~{k8PWqw5hE%94l~6M1IYi4`D9tNF<Viy5x(Sen{-8{@GGO11Sk%KaQRXq3Xr(@I
+zj;#(|<PpmE`2{uFwiy+Ey@kHt3YBV;7wn#C=e9+t+=Q0Qsi8%l)yblIl!D586Cjpu
+z#DBrZpi5SO%h>T0p%dXcf*!@^V7PuA1@5*JRd@M<-K&GDPfh~!{ZP$xfZm-S)tYVx
+zoA(*j-(Dj>GU5Z=e(j-<eiQDI?V)Rwg8Q?wK&^qOS-KPS@}a2N_7`OT->9YO7lWpt
+z*2vKio3^9Y9xtf9L*VhaI@E`A7LEEXQM>;k@S;Jer`@5qjzqnW#lUJ$NBzcW;1?F7
+z!Q|P{IToPNwED2I7z2&7e<NF8j>enjK$WY8CRJ$Z%S?mkVQ*+z7)=AGksGayW=rBA
+zMod7n&HKUIR77)c3M82w(fr6?uwOMS%FHho)uj7qemoOmoiAF1Or&7-1TFT`=Y%_>
+zWsOLv?PJlhUtfy<`D^?;AmuX`EknrZ9KQ)K@2lXIp24eQZHn(H@JjQA4E~H(rO1V5
+zsf|`uW`jT7gI3G?(j#(0t3$7#ey5?eoDB739a;}<0`;~US_hw{m1&CB@iQUaLhPL6
+zZBeC06KykLl<p1hC8xl%)rR*m3My_#;eECW)VD~q8QP74%O3bN`$bVQ(xS>T3_k7V
+z0@d2Vr*j;5&fj*nZ3dqee&Ag`!)Hfh@W5Q~`Qre!WGmWTI}V-oGum&C0splf9m>ps
+zQMEhikD=d4=T$}rBF{e?9TL6*<vv@Kb7ol7MRuXX<uhO_Zd;UduAoy0Mak(yh-bhH
+zEk&o$NC<~77Uip37FEeH=v;$hL#Mvz961x(_Zm8%RuJi<(fNBkWUMo6UBWVf_a?dy
+z=?hk?1G*l#5B#`=u1DWOmH&vYmuO|mJ+-J;?nSqpA>@+RqFbd?P?f8p+ki~S$W!Px
+zg#1M0S9DuM&ph=Vx^1IJ@pm#Y0&M7a;&$lmgVF5(T}bpgbjvJF{-KWz-O16&X5-L3
+zt20pOm_=SC)1s{0$Ig1=?d*Qt&gHHam1}d0`dm?T??#WL&>Qq<>IvCuFM9ksNoJUA
+zQLag`sH!KRXUH<}8a9hM%~ljWV>i(q<+Z3+zDCas3Zu0)Sd{DYqSv8r&>79pFYE>M
+zK7aT{zJx(~z`qN*+)En%hbXcIEXKee?IA~I!=R2cfHfsCs0aO??-C61n@KTZhn>fl
+zS~LQx*l7zGj=}Asz{cFSC`KH_;Gq<3s;|S~Q{FH<OJeXlGN1jIF|<TJ7{iufDD8Sy
+z`Xq)eAqiFe4o3LUru__z__rzDOpJ(J4jKL&qp~JL*L#3bWwt{t{EksI!@#G$$7n}4
+zunl1tbMFM%e^_x$xJwFXP&9%j(jAWZgrEeHQpcKMYBf)w1jn>Ojle>;A$WcabipGC
+zK2Lk5U<`sUy$72RhFKrCK&M^C92W`Mw;JY#oq$-mA9H`tBNy(DkT9}>QJpcbw+oE^
+zUYIv=G1MM~dAn|s{;MAL?*J-3&7x5}9rGvMA_3783j>p&JzcSA5iQ}!YFO+@A=9}x
+z!o9+vkBmTgE7A(t(h&Y|ImGrdh?qpX`g1KrobZKuF&2@@0T5NXVrhjzP;Dz==@JsV
+z9j99qEjANvbj727VJRsR8G8!Lx^#rxG6T!b^@Ru+Xi>*RVA+Mf(7SqI`TLS!SzWMV
+zD%tUzmRLDw0$6J&tX)da`pXKeYnKPIMt-dKp<uJ`9yZ)<0wYInY<Y2r_R3{!A6Onp
+zD~hOs*CCVR5oNnT4(8rz?C8A?{P%IhxLgJ69gSVJ{h_zGVR!5ViUAJTQ{yG1-$3j+
+z*%?Ya$KFSgklFkYn_dxGpTzzuYslO(aJW(s^k|L4aRs4v_P~+-?!fb`cK&>c6B}H>
+zJqzH(vo4T58pCECY`c$>HC%v7We`tVPktJJa~bjE85iL^Wis4pt3^5IClX9WN_H<2
+zK9Zt&<zZ3eE@V+Q+F)n9({_e(JCDa&)ID-rGy?PE;`=-hPNof)4~zs_j>6?P^hW-r
+zxK`B(;+!|GbMooVjd9&K6}-_sTz}Ob_#kmJ7sdT=r*N}bJou-nNObfD-#i<M4@r3B
+zi?%3(=izSg(vVXX?iJ}u!Xq9J`%@B9`JSEsEytq;;iQmlZSa`UCNf*&aWjhl-aqlU
+z4Y|m9cae0c8AR^CczPfm+N~g-e<Uk8@x`JnkQ2%KT_8e(@UlucdA28bnV1Tr{${+M
+z;RxZG3$K6C3jMBOQ7wzWo2{pzH^0T3bV>i;A1R&b#%-}Sq|7J=(Pj%$j_srT>@8Am
+zQ`8$i8t)=0+_oxdXP1(AUwR+(k_q_Gfij|YmF?VC6(4rAhk9+|!?9o({S-bAt_sn-
+zIKCwQd-lP0ruReItwf0X8sD0eKbiRo-+6D?6fcSIq23TnT=BE$Ac$oN_%(v0_qt8^
+zU7D24*3bA8+8(^(C5z%<H;eM*MT<IW0Mj}Afcl=yct<NyYCkjiC>Z5>GII{e`&u`c
+znMlQqXLXpvrCX#W<5<p>BuFlMu-rS|ll@N_#PYKJ5NC?8yzd)94E@3KEsBEJJ&F~$
+z`WpP&PK#n=U5jez30B|(nWuX}R_Hb*8)fUT!Z{Cu2gkA^mz=3G;?0UZB@g!}nn;c-
+zQ?lZZNS5d6#7cOP(%QX)m6+@g48O%n=Cu7wB<`@%m&wdhf3PxD$o%ShGUswf>BL1?
+zg{BXn-&bZ8eEngJS<76?o&bAtpH+FoAiBO_u1*sCKp|G`*)gzz{p=iniB)?^TJW1>
+z)n3t_Xi}9`j~@rzy};atlNnc<X=m5=%+2=ijea4l#^BP>J||d>>$^y`=C!DY_h2<|
+zxqv;s&1xYX{N^?0;gkie<s0VVN_(I|G3K%8pZ0TN9(1ROzs~9u+DX-p&aB?H7vQ3o
+zMLFg&`yX2jd3qab;Jblx!7Hp$gE7z{H<+#Qz&xbMyjkN(hoN)&v&MhOw>u}WCPU&N
+z&(~y4hLb#J?iR(CUaZNh+R!`7Gtcsg!2KeunMWnyNh8*B&|;v%W9HSPAjF){tnKk+
+zut`5zyKe=-ga>Q?E(EH@SJtVHFZlWYu};@0-x!zE#yX#(%}}KX>yo1}<f#Iz>*OrZ
+zUN+YKKCQ^gtgJ`9AX@5btj7t;cs^XS$j3WbH1ck+GhYbnaV;lQW**jSLK)JIOIfeq
+z6s*G5u|D{h(3E0*yxgI@#<G5eKfxHcj`h2~5IAG=WB$uVQ*Jibq8gaS{L|Ke4KHoy
+zd{;J@J3@E4%7z5coy}d!hK6{6EuYVZ&3y|ImWvHLn@Eo6J{y)!`o7^O7I2Z|`Ie1r
+zc)u91`hVDnTT>y{XJLU&0w{@HX=jrn7PT$34I3Tm2D$DS8@n|S`fYADt~W`eJCSVM
+zjjPZ%Yq0U{P5_rLvGM*hAYEUv@%!dNe0k3%c+&|UrLxIiX-U0$vMKpfVE7+oQ@2(J
+zn;*?)l$;IL?Gc;3WgkSfwruuM(u}|QvN=UwKs0>F=3H~6`p*?lHn;U$u$B2(Xka*L
+zwd^cxEmbmlrLl#(UH}!N*rJLgJUX{wi#)?2CKqOlvr&Dp;58ObN=NJ&%OVcag*<!2
+zB8#+#uD_Hm|3C!?_v{w++wE+1A+rB5TiEJa&SaMVvDIFKp$^Vs8+TJFj2F!E?*PWg
+zr7Y^iQ|Q;#SyX}_M33Gq>d|j9t9^D($Y4?FE9eCG*pB;t;0exbS3G62#s09pb=y+$
+za*svcWh~okqe4V#G~0W=G`MQb_Rk|ZUTm918RlW<!AoraZkvGqIhh@p5(L!!#STm@
+z0lW=kho@}?n>n4GniB)Lv>!Y5FfY{eHg>*h#ZLcKV0nA7IA==VbNyj){u`l#f3Wji
+ze8DbEXV=;tf%@pdt~-5$D889pe?@yF*IIU?gg@1TcCwpA$y4_5XE$xPNDdFV#BP4%
+z;Hyfpo0$~tKEGqPf+*LkG>9cOu0#pLZ+0hq0a)?{i?WrMoxcBBG)7EdcPDM6{2`}B
+zd2EG6oof}l`>HF%>@b!zo}ysu7cA-MY4EQ5*^{mvpnpX$+mo0yh(UMQvv#EY=JsRH
+zUT1>c|IMDSqs%BzEK6=lo2}AImK>i4=&+W(xJhQz=rnu1x(vnd3GB_|>EIvIS&9ek
+z`kj3(suJ_rJ0l8u;2!qAV0F@lt=Rh{TIp{Y>;nZmIU|atnpE7*Y-?km+~_|X$FNWD
+zp9AxDvd{jMe4aeazU8VyGTdb8|GP=)a{=}%BM*7Ng6wy*nh=Ncu|KtDLtfj;GXLFC
+z-V*HZuSVcY`dE~+4s*P21od(;7e`9NDF2&FR*r6D4%dZ7gFl(fb<GpdKWyi@F`Uxm
+z-Y0mLv5Ua>)#MINA7T90g*&*BET0;}vwD>#v)RP6iLSuwH{7w}bf~oL-0|f;@B+<v
+z&Qz+9ee&eFS4Duo^X0kIX~k}S<#~J1uD|5M^9Qse#}vg2O!XzRTg{7lwg7WE!=1xu
+zGuwLEczI8{@+?Dn`E6u|MhJJwb{l%aDPBcgq~J4%yZ-irsuIGh7N*U0J%CqZvmt&B
+z<JH~I!l)3<t8XQ_{VEH0b4Ug+(UrT0P&G7p3U~jV1T6F7H9t~xEg8UTJ^u=xT%Xsn
+zE^s9Gc)TArt|EDzyl0@Rh46YobYlN(y#9oK;LjgeRM}SW`XT>8l-tVdUwjC?^b&9Q
+zz!PHYD&DBYXez0c<&A#O3goKCn<O^_D^rAf#*d*poX?xD*-F*3N4!PH4wM;X@HQpB
+zLi{bqecE&bFZqD`4BA8jVem%oL;1bFb)UCedjiJX&b(d1Wa!6^ynP!gN*;N@JIr<@
+z50{;HYDr7)_?LIBME;?`Dc;Q^7GmI5-u=lpuoven%5tsk^lrg>oI4BQ`jh(}Cyh9v
+z2JbV&iBh*syf0lae?OP|AGhs+7`c`Ezurgsz99GiLLca`nGZ~Mpry>Ps0X(sHipR9
+zVo?tc<AVael0VqS2M6w_df#+DtT?4=LmKnp*Sx{{{Ncl2^aERVgpV9nj7mGx`N&iI
+zsr=TL2Zp{RfwF>+Izi<<zfOF#Ez||F&3HcgD23f4%lMc_6kf;f<YUsw1(!O{$0ksb
+zs9b+LdvS}rVSPUCzX0gUdHJ|hazy28Smcdz+u3F~ANP~O?c@+X=@E%hKSv&vm8@*d
+z3_h(`D)fU<eA*6jc*bjP3!X6#a=|GcyrDl>z(PAiy78F?`TmR!eCF_As_|CmGr#1c
+zLgG}5^3PU2uT>&+t2!2qX8ZWOB+8`bD?WegeyF^)`TT1`ph}kFVPR!}J9f(Ud#u;G
+zcT>I~KNU19#M=0RmWj0F&G>@p@1RQ6u&CSp;)^HKuD<`AFTO!s7|SEyD#(3x_>x*A
+zBERkAOFVN!zOeCS1IS+#ZOxZGr>gghb$t22CJ^3P`HG2YK-J=W<)?6{iB5d=Fh|I^
+z4Se-uQa+2_`TAf9HO=P8w}p|t&i%l*XD5$0z7*ent^?I^d-13d;gG9_@u>G<K)+5r
+znwHM!H;hNu{tVu}0goO_9`EsGzH2)<8c~q%)@@-7f5-Pa<b^SKC*QZ(5%~U`AMiN>
+zUHA<@RAn&G_Z~mAk�h%nui?32sZ>z>ko*@J+AyQI|6i*`4^QsiX;KwBe_tZ$tTP
+z<!7qLPz7`sKfCA$SdUfw?59M?UlBaco1XFGK0NO2TWB?vpPL&DJ#h~|xBM#=n@aL?
+zD~S#V`T0Vdz%!lr`GilTvgh&(@0_9X9Of5uuYgTIp208Hi-Xe5`9-g*Fmj*c7e}>+
+z{(OU9ntT<!@?(A}k&?|p!}#SXWQMN4_?5x|fO^NTH);Z&lFqMpA<uUwgI|A@6QXGj
+zo>-HtsdaCjxU@O-5_|I7eiNvGxryKFLYdaGR{Y*!%8F~(;z?tv{ws>@;LkGm!RT9$
+zzihCHKKBcMnRo&+dNY5Wt1(o}8vcefqKu!;Qz|3?C7be;CIUi+@{|{sA^ta#zx_?=
+zxqC8y-yn%3Stx%WR2QOxji;`<1-5Ao|M-wvFzu)DFPa|pGR@P*(v5`n;om0O$m6v<
+z$-ie@rG%mf|FMk{kM+lSda+y(zFCR6A$k=eQgYgB9WgIN@3KU)hTc1f`62pLBT~}Z
+z=Mb>~MBn;E(u#fK_^;d4vK?}UXXK!CJgf@O$Y=t2zZU;}oiyc@ssgsr&wx4o1%3-k
+zv%d)T+!N{z1piB&&W`Ja;%BMs-c%U<$OUKZD$E6R=P~t!8Fe2bdcQ?E+r^^F&xFHB
+zSCa8}gu~a);1#}E6bGV2)|@1_b3PSW2Wf~&Yecp&=fKmR3fsQ}5w+ZUL)vOuRCzC1
+z)LBl6?CvC!x4sqGsc>kx%@H{~ra{jtEpk3A286A*Xbk8fa)*$EDd8jXP6{BqE-3OP
+zI+9!;W|5DJwP@sRYiGWSB0p;f9qnKf`O|2#e2B1UR9!0yyx$9>;$u;;P#CG*@}iLM
+zP3S{aMWH?ckX8Ie5l@PW^A-`QHZ;#!6wOVol;-P2ac4U5*)gJICT&Xc>dpfwN4!{3
+zIPcvIr0f%ATe(nbcUqJUqdsGaJr-qcTWR~j;%^r9pueJA;rh^bCW>-TvQSO!o+w|1
+zcJG2#qEaAbGOoKsrQnTF7aNL7w~J9cuOzC>N&%iO6IHuar>GWYQ4e(%RfEYd{M;+5
+z#vcaXyGXc)QEaGlL)5TMqp+PJYQ~I)v~AyRKZv?6JXTz!Dt0H~v3~_rL?KZ-Z&~Q{
+z>!QvHN=SD2i~n6~0qJ{BG^#radU_qvSPRHwUc$2%z2EbO@VrJr=Y_v$cE=xLf`@3)
+zjAF~1-lD}=a^bG+MT=d2kPl0VmVWem<q|F0w84ef=#3EZQNk<jEO|aB(K?E%S35q5
+z)(6tSrbP(vhz8_>Yl=2G`%xRUf@nMN2HEpX(RPO*9iLNlDDfP;kB{hheGD*tsOWU{
+ze=vqV7oB%IfekKUk>@Eay4S1*dG?OzS<Ve&-$2pxYdfm{AFm*K{yGHNc7UB*lZ5Xv
+zDxDmwD|)TH3uFFW(YrS(pX_Ude|vY})j8pRmY((hj)=idC%~FE6+_fG7&FqvP!b$6
+zTNW{F4n@ThULqi^8C2GTBCw`A^twkPaC~K`t6n1TF7=!Dt`?)CY>w33d?&_C<v<>0
+zQFO?(DF1tH(J1U9#+-_WICMgca}1@)2OlvhCx<b;yqKKBi8NeEF|{vk){-T~w3-#6
+zE>slL8jk`Te~X#77L&`qC*~C02i3B=n43yka6xV{uR}86$wa7aV=VZ~v0}lsaLR<d
+z#ex({!A74Fi@K1fa&96P-S|p9{+}YE57h_9KeTi5B|E1svUBD%5n1IU5Vc7}4)p_S
+zlpu~K28*R3Bsjjb5-T#pzzT$km0cVt-G3uiXOtn?K3>??bf)O$eqU_ZK}F-x(_$l4
+zudpYp*z~wG@Y1j|JxOf)z7{<DUlAQjA27PBh^ZY+rIgkpX5I{7+E1}-_c-t(f5q-$
+zqaYqu6^CzogO465jt(Q2J#B$Fx-1<su$i4(i;1HzDPhU!V-v@Ek?Sn?N*sUl0V?+i
+zae5AACaa2y(+>`lpjaW!6k-$;nv1g)*O9sP6KDHAf|z(qoW0=!<f<#qKBz)X=52Nk
+z=pf>MOr&<+F>#J1QbQw)I9Kg0wQ!n?bEhMrn*0?P_QsJlM2Uo=6yzq_ev5>@9#m?b
+zA`&h&hG-NfE{>vfd_@6qwFNyxpCoa8gaM)Jit8&$STsE?u76wuqiAk%qx=;JpM@6X
+z9|v)xNj%h*3*u&X3g5F&id*$4NcPAh?sTN^yZ)QF^Mq7$zA$kw*K5jx`-ppmoyq=(
+z$BO&?7DC+h77zZtvHO&G;6Zxe*%I;K4b|x)KZ-}A$zCfxv9s$|JN@#B$L1ZdAvNrr
+z(NjE5qk$B$RwQQ~33YkCc)3%6&Hg4{4<`o}mL}df<^~(lTfBKrcRu%zcwhQ9Y#0$L
+z-rIUmzwf(vf5{Dc(=CfeSZVS8p)*kDo=7ba32}a-_}DoJqHS;SX^4%A&AY_s>E!XU
+zZWmwHlViE_M11!m7rm#q_<n(wx^6G=V?2#<ysapH{G{l2@VfYUkzDq17m-enoYy=q
+zGFGl3`%kzf{xtYTeZZyS&-T64hOZ(rd*`E)ij(+z=>&AXnG!w8<9&*f?3Oo)$w872
+zBLy^fpp@5dK?fyRG)Co+>LOWD{_Ylap5jE(6}2W2A3*0$l{%&+)B!2Yu+h{-?<upS
+z*eH2y)K@yx4}f^{Njk<PlCJ+NbL8Ixog5`|WW-W-tYxnC{prMyWP$!1Ja(Tfw1}pe
+zYW|UhTjZqyqc~YCBNHt58CkscNbn0yEXo1<W$}oP;9;|5@iV@_!ospd1xn+;`B~J%
+zqhtx2H$}5YD`d%<6KEw0$ucfv7VoafGIzRDN;TP{W(#Cldd=V8w5ZutS?&N?$Ck&k
+ze3vMw^Y3N(vChytwXAR_0DOwGtniZ_-MU}0VkbrAx(Mmgm}L3e)zW1TO+XoaWEB_M
+zV;|k5t;)31knev;*K$;f{d!xvwo3;aTS-=(kQeOJUyFK}kF2(X3J3w8q+2!;o5>#1
+zEh#VAdpYU;GKj>dqpVSEAkA}3k~Ozd-2YNp);V<+dd~t`Zzm--^|r}+zmC)BMj83P
+zvNUBOmdgJ{c|$L3Y?DnFQ~>urA)78~Pic2?+4MW@&W<%L8s!hm=3SB@cY4Vd&TGKO
+zl#wmZgitdnuk;E`BhR=<w%)%H>T|60Zb6J~BRdwj52MC(**Sv3tm_fk<-<!Vz4Wmt
+zAHR}ald0BJ*iZH(`Hq#gS+eH?M;JL*OW$pcp%#Y80p29T%jA*+D0kz-p2&fDNxy&a
+zkb|aD>h$n~96Dwpq*Dhu^mlFOB2(qCSrkL+6qUn{)S-6#J2~vqP;kE<a`=CXfHDqp
+zMA1~Rq>FOo|E>ZTipY@@?o-9|x(sYxpY;Esqt=1kutWxqUICfpEXVfDBr{2rV+U_0
+z$<<hnZ%J11tCt+_8$-3=KsoUMB_^(u<fI~-Xxb@OPHI-4CSNYgNe3xksCZRQ9za&`
+z)l*LK%}uT41R2ye3;2R-GWb6EgQXoT%E1|O#<mSq|Nl5r&Pb!tiHcd|%-{~-4dUg@
+ze{nsajGP%?n}WqcIrDEAu<fixvALd{)8P!%w0?5Vt-sW&*(~QgZbnuzM9z8n4Jv=6
+zoLe}AL}&#$ch*&~8r9|8-J2*C3$-YRRFEP6q@2rN88U?Of1}+58TLMc?qq~q;1C4X
+zZl6VdaIRdmf}ZuGX>w6UAo!&ii=z1!8Qz)_h&)P$pC>h({ih7SFc)fG3mH+Elur6N
+z8BvL1hI@V)K{X=7y^V})Oy(WgP)08Br%k+CMlL0_oi;@-<rM!#gVu8CEd|xdkjq*e
+z1M)Su$oEN$Vq7_kvSn*KFBG<@BD^db)BDP0esSRQD#+yl<oQB}%M}ybgGV-(D;K3f
+zJ<KOpb)%N<ie7TnBsa<(O}VCOJmgCcxyII@B6N;axqcj7nNk+zf%0-ggbNJuQEudc
+zFv^~i8w)4G=)FU3sYW7nWU}0{#ut3cJ-OvOE&1>ixwW1j4H;gN(XJFTj*pblXDCQ@
+zbdWpB2Z7HhDR)$$&#$)HqKM0CQKlA_wjGs89v`wvi%*AGWF@=V892})XQrKZGc1Y)
+zrR>~N)uPOwU}srvXW()>FLbx4PRz1s6sMnSPl?UA%W_9_Pq2zr>BMxP4sRjSZXR`6
+z#x!qFOV&xo{B?mEx<T%FKxQ^DNbbG<Z-6jL?u(`>+3vY=Kfen-XMx-wKMJbPUwL5N
+zSE$~T<slgZz2KZYbh8>%P+@ua&odaMJmk^f`e0cO$YUW?4;+;tk1u%(b<DOxo+w5>
+zKFfT0BAPtg>(TP02f5a?mh$8@azvl}<;myNik*{9o@zq7y48DmCV<Ls`5wx%dq+bi
+zypv~7QL(w<S{YaSFfiqmjEkUW{_&tZSKEgaQ+9dI+Y36@N1lr$Khv<0JU_Y&m1Mrk
+z3(X^_|5xs?OlTPaR_dutSVqq%`Jud6zc;wU8F_IGZBFm~@^XIKRDbTt%TClK|I<}o
+zxg7%x&XiZu$iXDJ%WL|7bRiAowXqR2EmKNf+wzj+dwz??!iMtNp<sG{vAkaU425eS
+zdEJL5Ae#2FXj5+@<n_LpP_=W*#C*>oJ};HGjkQ4ZWO=9J85pH2%R5ua3{PE_ciu`$
+zBG<}$j;En^U6=Rj4yNYQF!|s=>V7?|Cm)26?_V4yA9bOh|CmKS{&(m53(03i-M~^t
+z%V#C1*zNd7KKn|dx8NK3d@Q5-|COKr4j@_x`FtfgnxQfBMekV1zlG$hEOntuZ<enL
+zkpL;YLB4wa142ENui;Cr6>s^PCY<<vPm6N2t9<jCF5p5onKG0_=(aSAitIcklG5?f
+z3+1~%Y2Z1WEXv7)<Od(h|J7|D`N6LPb*}<s>g&O@*|N!xQ76DAu9u&GlN_JaO@7Hu
+zKiBo1{4&@Dtag6+ZBQPnkT}S1(?>(BnIOMcyaBa(wfu2~R%H1#`GczHyyH>%vs*Zo
+z-RjAoj}yQ;rpuq{Uf{1j$n<TQU}am%U$*hdH2Yap{@U&d{<@3&^_t>xVrBVzsy{iT
+z44K(!CS;I<MU``&o#|ub--+W$YGqOQlthh)IEC-Sp^61423o-nI~5ChK~YmFG36}O
+zuK=YclVAATQt3vmV0g4v`sXOphFg^_%N7z0T`MYw{i!g<c2!yDk!N}orm`OSL50YH
+z%CY8Y7$x16W3vD-|1QdL@D<3FUsR5r6yJ;HRym$fj9AiN<$P2OMuTE1SE+uKa^+FE
+z4n2XW`C8?=MEaopE|t48mEF2`Qh8p5!zfWj<$XK|ysx`W<ts-gp5>wPxnBYvPOzv-
+zv{3mIu7c6jgws>f@huyxg4J`7Yki^$M%0HuM^(s|g2><^s_1*FZ0!7LQLN~zif?m-
+zyjn|@ct9D`#7tG<CnX|fQ&q`{<WXk@sZ#5bp+3!1Wma&=U|TU&<_B$xR$r8Jk#bNC
+z>ni7n>NHf`NL9E+vio>{RguMj<#bdP$B_OXz*NPV&R`jnRi*jGz^?eI|LRcwe>Or@
+zX%_~ax0tFDN-o)UTDe|a0-pPoMV;k`s#cmxt^<QqwTT@mL)xIKy>OtPyEj(3O`(F}
+z=;g|7`M(nkQts<xX(fs(_tXxgUiYdR3vNPGs;p`}qN&zwTU4#?R2_G`qU!7>Ni{3e
+zqRv%Z)jgC4a%=(hziy4mpSW67c|TC1Os(0>`l>;X&7^`)sYZK~A>6L0CduA3|Fbq-
+zHKoP^MjcX3ubl<!WT$M?!g?*|bg`(5bWlyNQ+>bxGu2EKBG<Z4wV;V7U9O#KGob<a
+zjj5{5<hM{OwDO5Q0<}h~whpNf`{Px|=?dr=M~tIpcOKQrEtssUh3Yi4Iwca5daF+1
+zlS$9NvZ$-SR$aQUhkjmPb<28{lG8;r7J3rOqn7H?+>feWeJvVgPN-fkR4d9dMfIVw
+zJyt}jz8RGN>%6Mp?_N;ZCo8`$GiYRcqw0TWA2l?_TU6N^ss0~sL9|O%1G3w0QER1{
+z8c?5}@yr`)U}y(&6z$Z&1o}XiiWYgd*A`XDm1@xJXVBvc5uXzW5R-|qMCzW6XKHW-
+z()(`;s=<MjhLg1neoWDB=~6YMG}*tntcEHN>W=SHL%UPdeOgovwGD6vFWg8CCF;gW
+zYUm1z>xD<Ep$Fq&bi1vF{TBuKV2=vuRTD-%Pc?iFdBO!#E$XJN)yNASp|@>TfxFj$
+z?aNSscc|!8CA$jzP4aqKNi}*636mc`)aa+=SAH~5WB!r=`I(`{&Wj_*woTc_p4blY
+z=ad?I;xI&JH8no)H>jheCX`44YvrUSe5Dnt-$qRuyb-$RJT*CnJYUjDHKhvKdEG5)
+z%0pUWms%>QeLf(uj0)=D3B>0m10Z?M#;9pD5yd7qQPY+SFkf!xySWy*$3~lVVC0{!
+zrah<#b?c{^;V=qD&2ehhOByco4p(!$NGMEyVA06+O3i6cX0#_m&551}?U$tH*45Cf
+z%cu}Dox0{f)x3G$kcH-|c}r-o1U6CgXq-zd*lkgk4Y0FAYm2IkEyg;~g9fX4(e6+;
+zhpBm&C^~gNszS?C;W4GC3jH^l9o$ca4w(U2XONxYV^!#Kx{y%=Rp<`Nngj0=si^e&
+zqY8aWW?X=No~X+HQ1b_$fYEEK3d>F|e$XcsRyzjr%sREm*iP~P{YbUwQ5cm}zN^Lm
+z6wc~I6@L3A^=J;Oh%fQr`*W&DmX8>(mS7`T(cNl^?^m!nA!_+&iuW)6suefLYy-UP
+z49TTd&Y}2Twt_{uy^cjab%I(MLVK%hCyTPqPm4A^bFXz^RNQH2yJl)trA^eeE~QqD
+zBJo(YyIQq?PSEMIMcHMYossp_s-!Xy^GB)Ggw+FPyuML{PjpPkVjY7M92_O;Jy
+zP25lDvdz_+2T@cV>!;SH(D<$_r8XQZLH1v{huZj#GM^W&YSWh^V7)!mmVX6=%EvA0
+zjcIDD3)S_Tl~h|hQmVDBpxQcUAJu#YS(Ho4sIBjoQUl|&+E##0aNbL8E0-5yT``Mt
+zSRp(AepTCEmZl=qS+)Hpjc)8*t+xNPQ6(aMgNmBz0L&CBDukli_690CLQ>k?Uqzpa
+zfib0`+QG=91$0w8k5FS`NrsAXSVjUQkBXV<2v+E`+I5j)h>xq<^|>h6kEd$4vkO?0
+z1hqTh7x{%GwR=o1>Mbu(yZ4fYJhzfa=Q)?4_Sxbnx}A4a`;(lZTz9GcndDN-zE=n4
+zQgnM8p^ml;1Hby8I##1LaIS<p=J68j`%H`az!`PShrS*4@VP~~a+x|7;SFk=s}my{
+z1LenB<n@=S6C-26lBZb|oA+3hW&bMMzyFX8Z1y+2w%gg${)6i9ck8t=!bP3j5eAl!
+zp-#>FHzhw&ojOi+f-(KnnU?gr(>`@(9DUA;C>6JY{KDlV758y7*gQkU7a-5KJfAw>
+ze-!DA{_6akd{7<ssq^&J44K;2rY<(WN~zFIb@}%<$Qpapl@=7AC-ziVzR;#w=dP~&
+z7z)|By}GueA4#;@7FlS9MY(pPMV&fKU9a_%ZsfeWweA;fvimC0%>W9IwWyP&MWafD
+zN<2r3sZddM+m+6fV9QjuhgPTHvPs?E<OjLFnYvTgoyPIrT9oU!x-(Zmf9<FqK5+)7
+zmQ|0!DVRLTqn;F?%{cLrdJ-8=+HjV7I+^xDuQTdt=0B@AuAY6`2+@6%deO!gDmYTT
+z*jp0n?g91UR34}ix7CZx+Yq)E9_rPD=@6GcsW%@ofd+?Eio+Sm|IJh>G}*`wEL9(R
+zErQr9)yLo@U~D$^sUz9(sE6wF=ugm%77{-b6Nq0ZhH&CnVjW@{akNU~<kIVWQ)vy8
+zC|VX!X(^6Wp!li24N$Ndqra-}SxP~tE>}N?P}KT;Or`IqCAz&({hAsBbo-$)W>5;2
+zQB-A?TtmBjnMSFz5RV)+h7^L{yhl?N0lHat%{o`4o=$tskJkquuwJXUyHwJxq}4AH
+zAk|Err4pH6*c_e3k2d+5OWMKbBh~-rmDUd9ND|fb)(#QmQVW&P+5V%T^LmiZ)`H$2
+zJ6vZE9{}##UprQHBhA)8J2r^{%hp3X{_EraZl!Z{ivb@RrE~UQ3Q=&D&b5SQ$Yhkx
+zy_u8i-lX#lp#sE;+dAK>4p3~qF6`(B-E@L3+=2AJ$i9gVZbOwCpo?~+u-GBOB0n@t
+zm)PY3aifkd={Xb3!9$m(uTk+019a&#jj7<UQ<wfsg@j7IbeSIwAb)n&&S$TJ%{{2g
+z{f|<xs*`p3$OOoFvvsAt0%H4qUFlf>)Rs8?UkqJHmYVuM+iqH_@YTACH+_#&<k7At
+zOH<Ifq+QS6hCI4SSNEiX;iw?(ewS)KF9UUrC8Z%+|7THVeAcyEq=I!Vqdgi?hO=z2
+zuG_E}_*QRSuT}t+ZaeAv<bh?-X8pfCZK<y?(W1H*sT<U|4d!uQ+Zr_eN=+n3{g3ML
+zbKQ6<mB&0M6CXfDg=x>2Fxu6Pbkj9=$((ZQX6!SJ0=IOt@`|)zU)`)hM;ML=b+hLy
+zXjjkF&2I-#UGJW5ah1Yzxpdv)W<OHF19Z!4G(A((ReR-6f{gRgUWMHtSfEXNz4e4j
+ztgc&CrlqO*LAM&T0Aj*R-THrJXzVsnx1L1iGWoV{9eWV`%XjTvnpWV7ul8O;Rr3RG
+zx{Xswh-@8+rHC=QO|^XxyRK><5ex0UO}Cv-!RzNo-F|p5x$qyl{Y0{k9}9GcRZXbJ
+zWc#E$zPJkUET`^dQs(nCO?UoHyL$a%-GvGYhQ~GC<wY!Y$8uU!Zj*Jl$zQ2p`9pWR
+zl!peAmRMA=g>`od)AEu{cMqj3Ie%Y^a`+$JqunUTg=xCS52_g-6}o57f8o2n_MLH`
+z>i_F^Y2T0Q0k1W>mk-5);l1pfKUDWFk{fdQ0o}V9ZO-B!bnjkQq0w3QF$PmD_p|O>
+zw=meR6pL!!1l{*Im1tiz)BOsQ!^$0O(Qq!P{rkDo&`D0+zw=e_sMWfENG#10bkzfv
+zq|p4&-jaI2x)ku~73`eD^uXFl;Kl$wFg+RkvV$HpgX;dLL-o)=e+Z|mdYF@fI<P^H
+zXi<#n2HW(Ak0DUo6ZOdHbODR{=ux0{eXhfLRIDSIUkyF#R}=7yVR~GR2(Z$jdi-}u
+z14#w-#PrHG=sK_TB<f@ez0#s=INZ**HSO#*#m?i^Eb4kYEgB<}^_1+v&>uhPDO8db
+zMh<POnGTu0Pul{>42wL}w&k?4vyW@r+ZVLAI_s&UXp_#WqNgqn1{>t2gRj^^smat_
+z&vJ4B9&OXJIy(XrFX>sotCKd{pl45YfquD2&nZE>+Nr*_Dw);mS~Rl7>bZ|cgWsy6
+zL%P$Q9$BG7{?!9AzUq*5k@SUy#X97|3lgu+I`k?%+K(44s_032K6Tag(NsO(HjVmx
+zMq52U_6YR>>gojx8q?fQMT=sei$xjUz@i>0^ulkX3(lqL@Yacx*WcISpXtOt*L5US
+z$(8Rp9ciOoK4p)NOt}g~yw*#ali>J}L`<gdj(pNfT2X;xeK);iAemv)$=desKp%Rp
+zmkg!<*mz7Yy+ul9a}B-hODM!ZH@$p5dAJ(S^vXX}729-DuPT^EDOn4>sx);%`j~pP
+zXC_$X7`^)04RE(E7Uk+7z2??I=nCcany+NG1(sTrHG1lG&e0IKq}N5eK$RYEvkr8p
+zIK44TFnGUWdQ)$zW^dl9x74BezRHnyHhX7h&un)39kQq&x76FhyF%W|skav<&$nc+
+z-acv&<d1@S`|NlixTKDHaG1h#868dSIp(<1qMWkX&d0VWy>lVmk>@xavnCa4>j)YH
+zqoA`*T2xto>Ajo!L7p0<57@|Id>&#^4?Cg{-n~Wh0dD%xI7+z|d+NiH2cZI`KD^Qe
+z{K!jv_$#^Wu3z+#*|gM2;rdvS6Xg55=wm5osmAn1AHU#4_J3f!KK+OULjQOA%(ztW
+z{(d@++UC4_F^e)JMaO5~4=#%7`1-lQ%Y^9o<7EH)nLb}&6K%dH`uyrm(2<GyVwXhf
+zX!`1l+pEK<&{$u(9s!kJOJ5Fk1Im@Os1DT8S3C{K@pbi$WiwzCYjar#vc(mBvnXwv
+z+wJrnk0;<sVfwx|Wx+2(^!>+mXwD~4C(WT1s()K2h3|m=Use6Q$TX;UU;TW0Kk$1C
+zEGpv@sjUe#Ro_J?2a@Ld_Qs;lepSD$O3A4Bs9(LMy>cK<zgZDU`oHZ>ol<Q-h12Ic
+zrCt^oMXu?T_>Is_JoUTnGr|2^>klJn1zzvapKTE|^)^?3TNed=z+L}pGo8Y1KmF_1
+zW{9NTI@5z{Ndxcb%snlkCk!z}`CDL9n;T-E0bcx!MR~Z7A={BBte<G;_qG@+i@O`9
+zq+RUP-EhcCQ7X?`i>%lxi_-tHor%eIX5=y)e90;tdRUa@mJ?gj>q-{Y-5G{Mp9F~I
+zUPjhUG4yquafV~1X`~r5h||HJb}}42YeVlnZRECnoJUDvOCt|W!LWSOjJyq#X|{X3
+zkuR|^wNN$~`A5=MsALr*|BYERNLa;is@sCTI(6J|x<UoVOErxGBqsIh??%BlRPXmK
+zViZ{y2KLr4iq53HRP~Zkg3)GsmtvH9@dct&uu<k?Kk5$@G|E=mM`gKhhOJyp%5tj&
+z8|9`a(P+dGqx@-K809M%74UC%<EKSl<dQ`>ubok;>jc36piwC<mCPy0_^&&yT!RvZ
+z%f=`e=5nK&px2A~8*bI9U{N{Pa9?*3`spph{n|U~klZ(F1e~Bh*HGQ4ak@U_%t|(+
+zR>2v7>n5XiInsXZ?-;dRW>6GdW7Mg5mZo5$jXF;Sbf<8mE`2qR4RbaA*FG5fTNb0?
+z4Z8C_4UNW}s%OQ+?W~d8X#8S7nQup<@sD805eF=)Lo*GpgR~+)TNqwXI*_9>jaCkx
+z&_irNMyq$lAf~4p-h*iKOd4Q#PpJ=f3P#&+qo74|qwQbXY-4K}?J8`9ezMHyJS_m+
+zCBf+O{u||vZH%r1JA&yd^tT4iL!5Oox*Z_FF+9cS-qsu9>nEdo<Qi!IbfZT$Z~DF7
+zMvvTd;X#v(9<|PZ*%HnhJzELLy&VkS0?9zySBuPSYV=z1@5JwoUP<)#96pvedfy=*
+z|L~5{r)?e>b^d4c>E=Kkj6|c)DvIaJZX137N1NAZX7n544zat4;Wv~VPka``?=H#n
+z1&s{<O6^I6rW*dIXpdBlGyK2Kr1}5)g^U3-GNB&jHU_!5QBYZ9Sk<lZ-o~JxdBJm*
+zvS^I-H3ol>P+j7UA-PHI2Gur(^b3Q`cFq_=ODb0-8$;6?Lg#B{47)*JQu7#O1co?J
+zM<vDxoKJ~IqqoM`fn?6vmK$RiSELkewK1+qybY{-9b?>vJ0yqq8RG>_G7ar)OsGML
+zNaxDNq@FXNcHTCEPCA3P*=5-7`ID+$X-r${2%V>uG5ur=@F|-y`)?49*?1bEtxrL0
+zTwsJ=TS~=dXJg^dm%w*tV^M!9XqbzQ#XUDdR6AoV9-9j&vENvH!?qN1OkZR1%Q&bf
+zEsgN3DUj1j8cSAC6l_=Bq8#wcSh7A4;+D-=@;C?NfYHXX8MmO@tu&V1i-BCc&RE`>
+z?lh=|vC=n$`T*sP)jeosPS!Bi&hQ3WrW)&t4S*Q#WUQyJXt2uVjSchKLA2axY_x4U
+z4a{w1Y<$>{bpC(F#-AnW^;cs{2Wm2{Ze?t}xsgh$amKbP52=Wh%h)z?I`w{c8QZ3j
+zWP7#J*k)Z&bt9@FmG8dxG@^Do0^#|LXq^XaL`6G)#9HK6BQ2_ci$?U3iqIRv4BL*p
+zSE0)1Hg<e14&l<uh?(*d?BymS<_zhA<aA?q{l?I3`x?9Z6ag>P+t_pGFqjNC_O2&I
+zb8M{<8$i-+;t(VD5k0zDLyg!^E?^b<8v9olqgv1mWB;2nU?uZfRPv~?pERX>;A$NC
+zH$$Eyz-An)Nt<tFGvj#npI{k9j1z%mr`v`YC*C~-3Zxh(bCCLNA8wq^??R3z8*v8s
+zXJ6y=unOS68X0kWsK|V5hY?@H5u))h<D8Ac?!Fhs`4FlZRla8=w4x4*&tN+bwlyxc
+zpc`0G-ncrQL}+zeR^wk`L2hs|Zu<H`6!tN0&Y)+%#b(?J?Mf~-$hb4NK8(<1#-p^J
+zK<<6UQ$|+uG2M7}o8q^gZ#-X;2(c#4NM^L8d%cY0OB9Yb7{;3j@(*UR@wN{=>k{$C
+z+tjX94ga5!dYLLBi6f1VVZAB;kN#|YN$CVJW{mMQ(ieKsF5~M)ve#K7jju`DfN#Bx
+zZ@+hgUuPD@#xF*OP_!~zEQ-uE#-DLZ=$n$KjX&3_Lw=cM{9U<^>WA5lza%h>%I+rg
+zX2|__O;)}f_}p10Thst-R$r4Z$e{V3?X^tZfijn4k4-ab7et{mrb7-gj|(eIhld*>
+z%>`!Gp8k-Za++DMwuOFH&CEW+4=Uq=nf>`qh`dY9+zazTskvsJq4ce}vG>e;b!h32
+z6*BXEAQk*>msw~MDW7_wX5kRp8+{D3NG{4R{C}85e^dWoC3QE8S6mFf-`_0Z*AIGa
+zAG4%MYIt`Cvs4~RJid1{OBbR|I4#yJ-LMJt>=3hbpR*86Hkf6bZKq~aXR~als?hxw
+znB}T^&}dd~v;1jiI&mI5GcTAG>Qd#TPqbO_T^JA<YgVdDy`b6AW+iVMZH9U+&Hqxo
+zD9nB{U2>3*zL>?L=oV$VlvzYM-AA(uO-72gai;6C7ci=yGpoAAfJOV5RVn}1bqktR
+zGpJMQe#@-(#1Y1vB(wT*Z>p9VX7!b1|M?19RN+U=>WSolc6gg^n`rl6oo2e((gy;c
+zUzjzrUxgm&VR|fn0lw~nS$nn{iOri9bwF{mp6LS7w69q&ANh$_Pt5v`nb7Y3X8qjp
+zlyG!08#oG@c${ici5_MHADW0*SlDc^gKltls@bF#UD&**W)o`nv5VoRXQN=KJ1<R}
+zC;g2Vtn@NHr;LVrwb^W1I13mHH=7Pj2m5cB*)--Z<TyvO=_Atdenl<ney`1D*_~-P
+z<$~FAF8PUy_f4;G%7$NLGri8bfDaBZTb1|%nRS}ks?{c{54<+L_kJVSUDTo$AIvs6
+zi&2zKv6<~FQbyDGyhT0lkJ<iF8ra79W{1x7%odL_JNzIWuzZ!-35hh@^~vlsl^#*_
+zBeT=8K9ni_CH4g`-HAvdwDeA*AE{(%c5Y3<tB#-9`GzmGat4@PJd(i9mNL8aqNtd2
+ztl9Od4-F{Ua+zJJ^vYe!+u1Y3?6&qk^?=@(-JR+K``ygm%N6*-;%2|oRFG)<!Svs=
+z5k~DJ=76@enF35Rz?I_p+TCUV4I0Yp)65Zbw?jsMH%IR&O%;$(b95#>>uV9_xJDEk
+z7Dt#97m^>iKf|2dW;G03@1N%6Pnkfabrz-HA2VorH;A=yX3#cDLdy-ZC`WcNr<S}A
+z<r-j4tx%e3yT6HVq3_Qzr-suV=2&6|k8KO}c7QqKbp`0GBh8tu3PDYaBvPVM_N_%V
+z?V>q*crmEKwahueMX3KbFU*{?dNWvP7jy1GYOi<pv#81+H$xmwK+p6vL#{obdi@rQ
+zDq*ELPyQlB)71=pM9;8c9dmx;B49zTX4s2w^u3^l=7PVJfYeDe!$F%lbFLX)<Q$E3
+zzA+=4jDt}r$&Bnyn{P)OGjc#C#s9BG%*dDjzIwgD&aGq3<zoZs?*jZVmoKM3v-8`_
+zTydXve`tAgRZ)`BEqj}*^EpF?b~INXiGk5>kGV!u!g0E<xi)bw@MgEU_8zt8rfxOY
+zHKO_7T^-GJBVIt4IApH(BL~-{mbt!vFNzh++_0PUznF5>+;F2D*pMJQXKXe%P5laS
+zsi?Url7d7DM|1PKAn5Cx%`M%lLPnbA)|zy|fBKkPL*2nq+T8Xmm<o^g%<b!%k~m#t
+zZcmM(B2#%Y>Nr_LjSgm1GSva{T(HR3g_+UM$;vVk%xD`O$ZBh>H&mp}qET$Bxx+IF
+zsK43VF(4D{%RF=UBWfT#+G6gdZ#+>&(TsK62cy^#Gxk|3*!FqmeuI2|s|n_T^2;G#
+z#F+;&_tNmm3iBYXpn+%RAy?81#U@&mp^MGKn_5x}_q%C3qQjvF)ijUndqC|sX&(90
+z4eDH3;&QOS&*o7^;d!z)k3Psn)2)-t<MnApuIx6C4>ll*cQ%iQULZ4EYM$`$hkp2<
+zc_J|m{OvdMObhy)nQP3medq?7%{0&Y5u3j-&#og^Ju=fg`|K)2)gCtU?2p^j{cdE&
+zy`m*_D{jX3YfJ(ps~P`!B2~3pnDIX-ufMI$^X1~nQ|>h{Ow6Px_Qt$8AS=}ME9S+s
+z6m~~tF)uZwVS${v&C6y#iYW!m%OlrO$HUpYB4}m0KQgamiGcX@$Gj5X6QbQZ^Xm2(
+z@DaB2=CvrQWTrPWuRW%kZShkUb=myp^<)aeebUXFu4K1CgUp-zZ$bB6V&1wz7dE7_
+zdFyp`D!F7a6aQIH&{gyH$z&3x&&}KC%RnS{HScbq@x2`1&4-<5g85Xn$csL+C~_aS
+zC~b{f+7H?fvZ%@gSk%3pEE<7v=A*rI=Tirpk3M*UCx@7iJp;f`|23bKi==V<U*^*)
+zX=JwR%;&B&Gn#vhMa{FD&#TeQXlfhtdBh76D2AClzXdg)yPC;KzEHEyn=i|6Cj0L`
+z*?ifRHb>sW7DZH|ML9j#qRKbNd^w29?_!Pla^*}QG|+r~hc?~*isl=CdIYyZ%s1zQ
+zDDNm`zKtav;C;q?`|ovAZoab^ZoXf#5s3L<et3NcqRS>Twft@fkI&|(_~%srn|#{*
+zvT`rYa7{PAmh++SWWP1P?xe3^=5{jEun9bJoB90;?fU;W_8wqSY)ji{bsRcNR!k%n
+zQBeT}6fuAa6;Z@2ihzhBpn!^LOo*5jv5lC(EQqLW!~iH_PTROKXT_Y;t!ch}zWv|-
+zp69t|KgV~bXH7G`dabIr-m10wdM~rDA8}cp<6yIIxJDdiH8=Y{;Sj)<Bps>jcV<5m
+z&`pn-Z}$5FirLE^n*ILz8xs{1Il}Th+J_Gu(a;{#cRe`@Zw;0Fnxj7$gD{)z!Lg{*
+zgVI|^vSvpe*{~{{!OafX_QjlGUL1<bGdZ(<si=|x$DKn_+SP{>By>)P5HpZ^wXLrs
+z>*~mfp8mkh-^o=unuy`~V$S>^+JTPUII9hvf#{aNS)V=yj3vw27_XusXqClPP0Rww
+zYtB_&jKBQQYp&{Z^a<@MxEiiAu{cfUY94k#Wh9uZWkmUmyu#TJ2?HvlE$85c>UsSy
+zoI~V8V3akS(;D=G%oVQA4;jc&$y_~yCD8F+T*Ei$70u7-NH-gyBTI*K#>O^Vfgsy)
+zjRzuM@6wuUGSD3L{kEKY>1UuOo#8xIX5lK9?wsdD2H@ch&igs`*xr23SI!6cTj6{y
+z0x^@>iSwJ33&g_OoZrFD08blnt#LylqJb0FdS?q@Hl%ZHvT@8T{mpgg%K+Wkj_cI#
+zJs6s@My|{KUO4!^aNQX6V)oy;ZYGQ8`mPeA?R6x{!#dI)11d3bjgHK*N;Fiv%k}t)
+z-f+!euBS~lP=khXy*gu;mn3kZ8iAD%N4U^4Zb0wM;rd)cPC0WPH{dW<)p{FKxPiIP
+zaiPEiZV;MKx{<w(Y}juuEae&|B35%@Gw|NJD3$2HNJn<)TW;{+P`nl9+z=MUsrqSL
+z_;I|~-)eG^Ju-lG8o))hdkpj{l8Xut1NLYqE-LOCK#j{>6!HxsWC1tqcz<Ax8)tCC
+zo8x>8n8^))=!fC<2_2c=@m!2`A23X~$;IsO!eI0qH=;=|fSGCBh<tBU!78}8jBQvE
+zmBYpN$3ePp5|>~<3#itwxY5_DV+!~yH^%V_=KJ1riTz2GV2oUHy;PtVkLJeCT?)ip
+zUvBa~tp9=X@!ZsjB|!Yy!cCoxZqhM;o9=~!rxU?VPjo{W-JYA#6vObZJU8Rk2B1de
+zax<%<iCz1Ko4F0s?(I8qsa=pGZXKl~I}zW1L`i2&4mWERhHhP+ap_I3A>UuY%?&9+
+zk}7g@<56Ffyt%n)SF!%@{3&j3Ia;U<k9B0!k=(q7xxftl#Vxp4j)Uh9xA1WhurpS1
+zi$-)tT~Ov0ZyE<oyAW>i*MUGhchr$SWXWZ?x5HZy#bp@1fcjd%Wqd(<;(eZ5HZKjx
+zzMZ*c%WQ#KKSW0cdU4Ax8=X+Obj24=z!);QWzWliS)9zNwNrq)?9451f?xPGm0P}s
+z#j?5(9SJDrR;;c9?61q*%Ilt3^Xbj4dV+C)g%!8v=}k;5-saX<!~MgONN)WU^oEZW
+z9hqBJ+=dFw4;;whHk#2u6_;`wjrfB7IGf9Ul?sLd&$*mptWNbE$mN{JX>*`Ax1;k;
+zpqlsRa(7X<DsC{BkL_vSc*GXK?%aZy2u!21I<h-&bGxVgg`#pCw_A(A^1RVp!8K$|
+z{mr<7n;3=<xWnyv9|W`$#qBk(0>sl8&bW7N3dZZ#xc!?@!K^z?M|M^LcOZ8ufVzr1
+z*ytS)*JpDF(NZ$+M{@_$3xRB3!X3Pw1%^dw+`)UX7~xE;#F8c4p-ovp+RNNwd+fR2
+z&$(mtbs)(!?sy}N7n(`jaTF$LWjt3DI0WF*G9y>i*B{ssm$~BBb|{hj<chm31ejC6
+z7583(T{J;QdW|Pn{OmeryJ)UNtN<!;GFK98i@d%}M{?jyu4GpfM#VLBWXG@KPMu0a
+zi`bbfMZ-getmewrZ3MPYI(N2d6c`#m=FSa14&)hQjmj72hI8klQ64Ke%bhRi2=s+s
+z+=c2G-ELUKUFg{i=pIM7ORGYG`66*wygp(wX(e~%Ob8G?V|668_BtABhj3R-N$Jyt
+zI#T_IayJWa0tD^gZr)i1<X>aB+bnL+n-k34am1c5uC?O+u7Y~qxItXGa}gS#K3usA
+z>i<nv=t!>`pd-^XpSzp98-vO&+}(90sBmO)_q;rT)tYnnP;ewaZ08=l>IIaR!#%t<
+z1$BdC+!OjEK&>s@(`ej5!G0L`tQYR4@$;~bbo@Xajm(O8?iq?o4Ed6KhPzvlbrQIj
+zNB5#8G+Re@;#BVC^GsmwJ>y=BXcvyO;a<0#0c`zC-0KTil2LJntEm48i%~ao6*qCc
+z&#QRu&BF>{=ZA6cp6&!X=_~iq22JkhVcf^7fj~c*#(mw5meF{a`)MVi|DS$?`?cT}
+z^7WhCZ|4y>{XTNPw_vC>Er$Cu1Pzm40S_*i<IV2H!yfeS+dA^_dL|eW_wvMfb6}sf
+z;>ntYKx7p1<Zz4;2fXFU_b9U;w9}EDc#vnlmjk(^6>r$v4~X8~cn%F6@v#A-5iMTa
+zIG!s+1;opT=L<Xl_uN68fTHtfUg$}oICYj6?m7Tl=P@r*^??0eotNsq2j;UsFNI#g
+zx`5Msl@zr7FM9Ik!_dvXU&))_G9{nu^5#EIWAO^bTMO7@JzMcr-SO7!TE^R1Isv=P
+zimz?-$iV5~%-1em2ULweyuITkbgR91M{CRrrg!9>xN1Pn$>*JnuYms9jIZ-C5<{=q
+zeBG^9sD#+@_1xUB(n;lATA-<pE3d>kyLp$>Xvj8{@%39{*j{_Ij`aR)zJ8~A0Of}&
+z@k=mobZz_?$P4561~YIa^q5h6LyH{zqQE!K&II=TJ-&%&1;8B_zG+kdu<5&bkH`4K
+z=GNhxZ^*?$h4Flgfz#2+?B{*skQvQc!nZ=6&wifBx4MGZ*NgXiZ-qUul5gGrF)mK6
+zt0Ud@TP21qGU_jwqqB81BwXiPUtbIK?KHkk2VAZ8^O=s!N?*QBBu>M(2l$SQ?f{We
+zo$u^}Vf2k;zVntsU>mvefuArbZ5+yXVTJ<h)|Ky81!KUWetfsi&4B4{$p_z;fi3>d
+z_uQeP6FQ+ILmLzLUbvkGJ#7o$+Y!e??Hl|cudTp3f8__=cE<Gk06x4SW=NiX;KSRt
+z1KRT$Kh%J9J7OC@)GrK(W#;@)RKJMH{rN~=E0kRG_{e@pIA%TIBUOx`faN21paB}>
+z$`4yt4Ai^9e6%f=>;K)5k8Xzs%y^>-AHBpJORk^r(Pw@G+5H|r93wVjSPnn@>lYN4
+zN9xGNl<_f<r-5|&&c_TpjXB)2d`u}yHf#bv;&%q-0ow5+ADjI9UwrI<o0$1%sw1;!
+zGas9dvn$(?k9~C>$iriGq&I%z;}lc<&-~GRoD&65^h-yE+);@ur}FU>&H~@Fe1d-u
+z)a@hrgc~bR^C9@rDHb>us`6t#E(NM%6rb2S0}NJXd~)4d0R3$FWFO4??V83XA9n<H
+z;x9g>VGC47?f8`LJeFJq@+rG;Y((1gDHozp{|lD+2`lq4hV$kp{8#{#OFBO(<Ps3k
+zzxXM%2e3h5{FLvQ!|lI@pV~eV3{A%IQzw)F*{nN1bu-fNg=6{DQ;9(QUdyL`uL9Jb
+zR6Z@g0N74_`PmJgBI|YK)8jt^ZFYrE-;VDG9_G{Ytbr;V!_R4C#H7;55`2L;^A$g*
+zV}D@hW%F~J%)m1IJbv!QcSuf0@e2h8C?=d=I093!awNalWYOYh@tHWPsbjvp8hRYq
+z?s5F`h8X#z)!>&m-3&~}&iwKhc%Jz;cwNZ&)1P1ILICVo%dZT!1H-~a{Awd^G6NR}
+z@N0%gW06QRKI`Q{oIY>(b;=YRgx&b{)d0xb2l(~&xXQI}eSU+#3(#4Eb!4AK@EZ;w
+zHR~I}Z}HSnrpx2ET*w95?hL<e&{nh?k^HuFoW53x{5D)=N4uq0VyB!+9Olj&cWkmm
+znY<~#;~Mhz8g6{9-*+q;+sWsxwFhGT8-AZH7Lx{K^84x~fnnHXeqSdmprU5*`w}qV
+z*qX!d8;hoN)B#>=SP0CeEPnsAEx1hQ6~8|NG0TSE|CInDEUyw@73xU(UeM7{ZLyI*
+z*dMFk%F_A6DbB#IILaTMmxSdr4|OEruS#6dQAcWJy-Ljat|L9Vv=TRUsl-DgD)Gap
+zO8oLtM~1nmqoI!le|Y~#AcrjC4}aN+k&`ikFSHLtE#|k5%(6y&p+hn-nN|3s#T$W$
+z-NGL;Lz^Asz#sd7yI{GO@yD5Lq+sv(;}-cSG(6;wFR=nx7t0^thhEd>H-DlG?ZakX
+zM>=r?Uu=tm`tBnB^ym(l+*-?@zL5;XjOu*ZRGcM7@`e6_DSp9UxQBIr^}AJK=(tK8
+z63JiMiPC9q7=Pu#H!#F1{9ir&0h~AUw@?qDMjQCQk7WV%ForMhDq&u~h`$$CADEKb
+z{Jk+a7`yJ^?`_Ein4edP+5Y@P?=XPF2l<CBO#A=Tci|t~_yJA7<R7;?hNE^f{}@d#
+zGo%s!JnnB`4ZHZ~@BC2XjpARf!|4`4@~_AsphEolSMP73#T>-H#_btNC7pk_=nt?<
+zX7L|hh5&h1<3Gi_0o$NE|J7yzW<px?-?k?KeWMNkBMcSNE7$lx(dV)LFRZmd?8E6a
+zz*8W;O#s$qmq3=U11S6{P!DHd5!x|<zJ}Xw4mwncFFWc;`h@FfuxTT(b?vaU@||Gt
+zM8i@PAs8|-(3mt^FziC%;mD;*EZnRk@pX%i^zb8yM$B;hwh%ZM)cI@J2;BA{ApAQC
+z(&4*6m#Ts?+Z)SdnhVOgW++P65UTvd#6h>`f_Z`y(9h}#7TcO)PrTNVsXJA$$UP2J
+zFE1S#4_>hPSQQf!&Vu#aTPV301?wWTv>Rs%)>lzGK6ziTF-}0s<#1B4S>GDqKuy6G
+z1w&~2Sg?Kd0bqTYP~#`k^ZZ6aO?N*aj@%b&0TPn39HG{!XF%Mats~v~cqIlt(9sY-
+zSEzL+3+R9(9oY;Qq4ri>VKw%sVE>~hkYhRs4#P0&wwxvy9Vt{k_B0k8=M@5E9}^r)
+z>H{<sbtHRC5*&Y`ViDpaIJK{XJEWWwoL6Q7-M^(!CkHK4!407<?iWope<{=rJPpLQ
+z`$9eMV!Y?Yg4<m`T!J}BXtKK+Fn?$1h*bze)6w05sBqJf96#Bpzc5(6twigmg6AL{
+z<uz{z%~SE7do2-~Uq25Z*$7_Ezo8S71g{|hz|=b@ctxXbXn$VtZn_Y#`atlpNJQKJ
+zQfRRQS3;2qLd#v*z`);vFFxmiF?%HV9<PVfu(8mp3)1mvO@uZM$QcFWdZEo6R6t5v
+z2yOnl2K1?|Lc8ckKyo*QfEw6^Op4In@)FQX7YXeHG2#h2FSI}059kkq&=EBurs;E`
+zles@iug8S0tB`WlcrSE|C;;ZxSRu#;SILfv5Q5G)0(5RJbhq$BYBx^^J{$maCl?|3
+zD%Ox2U1ka)@9N+^$rSq4M+&y|snBnBYb?FkF7z)#!!dHPFc1X>xYbJ-80ZPqc1}lw
+z^B`g1B<z{Ir@|m>jOl835(bqX12U{!h`8tu?6zDXvI&lv{HH?X=uqsjXd&`1?70T3
+zgy@kbFZfOvjz8SUc7G&{7>tU=%27h>OpHng3POC}5MT-tg@k9d05-)6qr;I_cls%e
+zakvHab6+8`FNu{90Yc))NT7~35t3{wfN66`NZR-fsOuYq<e*$2Zbk`XZy}?qc~3|&
+ze~-atsgTkTyMEGrAtks1s5Dz4C9yH`|7o%?X*~v+W;w#-vwlGKnjlR1`#Pq{z6-|s
+z7)*{EElh2+040_6!qkN*LcL&w=`VAE9Nt`*F%31|XZ3{{o3{aTaGo%;7LMvmr-ald
+z0Z6<W390=o0e-~@si#H*`y)Y^<+BYF8q<Z@<PyxBR1;>`HDd9Ia!^P&!>$x#h4fKT
+zm}0ph%n8TEC$kEKIXljyiuGQY^W6>TyCBTHiqn;uBg}hO4am^m!hGrzYR6Y}WX7El
+z7PLf))nSFO7}tJ~UQLB12OncN|4dlcBOS<Y5yG-d6p(W#3(KvMgr<55%Z-mK0RJbf
+zXoG+F*l%G~736Ts&gjVQ951XNgoDPnzOcbmRNDBturVzcTe}L`Qx5`j<d=~Bek{;U
+z4+xtUdLmc!(UFZ=E^NAL1N5I>!j8=P7}n<rI|WN%Wfx&*2>w8JmaucnF)ZKV1Y_<6
+zj6`ZZ7V=86fpVQ9<lV#=?M`nUnUkA^UA0%BNp30Za{q*3w}+6AT#p^FNXQ@57A@Em
+zp<wYfpd1bg1&5=7d3#;hW9JI=>pjB3Q8+07Y!MCxr2<v+xN!IfUdZ_7LSb8sH7`68
+z3Qu9^HoM#?9L>cOc8(Q}YMU|mtPqYdIB1M}g%gc&|KEmbLh<$rAY0WGPVREU!o*L)
+zsT}NqItfB)w_>1w-PVyAJzgl?c^arii9+cqG_{4nLg|MH%<pv<PA@J5aIGbj4MV!V
+zS`^CCcLP*wB%D3M06`mn2<I<jU@^V1a50NSmFt^u<u#JXy4J#9^H9ZFyIT0`BHkK@
+z6T;2fUx2FeMYyRU=TmA3w`YvQa2s@F8o3DNW~d(&<qPGBMPRTi6z&d_ff`>$xH}I2
+zp!J7J)GBnur8dI7E*KpcvonPU)Jh~AdxZzK5hyq)Ix?9Zg$HlZ5Ec9q9#wq-%*8&!
+zqm)P>-p<jHjs07AbO!~+<YvO-q`LqI+X+v*ryyJ2B|JUz0a%AT;l*GKGz#zN$WC$>
+zUR(+SaGWW;JcqY@W`gi`qASjS-!S1zTs9B~iiNLh(2^NagddZgfM_~J_<g|uq^++A
+zVd%A73Up+rdLx$MFaIKvYc>O&u}P%np|h$wL}XkufV8j{*|Ax`R{bOzIBP7+A10dF
+zp*w%mM>M-f1C!fR<Z@~OvvIp9+(7-0Fg_I}vzFMk9-`b7pHOpB6_uLKz!0}ZrR{j2
+zobtsgy-^4Bcq3LBXANwHgIMKFPoUjzh~_QP8LbT$%`uxztvs(I8{#RNcZtV1!AG<(
+z1u)a+iWUJ)0E&Y|i#gV40bhz1e`pNXzl)a5jdg&IC=@MQBm>>RtrGi@qUD)6!1l@z
+zZH$e8EWIPzng;@N_mXIvu@s%k647=8c46~;vHFtvK=n3=HEvdbA^oygv&{w|J3kg{
+zdt*;7yD8Q_&Hz>CypC*kh*%prBzZbfbm(;x({Z0g2P3|q_dAFVyU*ibSt>f5Ld(=N
+zN_4nc42IEmqElWdGNHkub5I>%ocu-SpU8+j+K4VKc%XJCiuGObhv(E4>!+cuZ|5r3
+z$I(sx`6Sj~WWr3*)qMu`aFpnJtq!{DaIw+L3IK<bI?}W4MPuWdXyZGK5gQM{cz(W}
+z*!WdvpufHon<gaz<=t6qx~?4P9n(bjK+~<_MfV^Fpr7s)-RB+v!e_APj{JaL=P7!;
+zO995)P4rCN3q)Cv=(Vy0NopTa*9Z7!V(Yd3K=(`++cZYQwRfo4X2fH}<wmhh;z5AX
+z7sP<r5}<cWV!$X5pd81G0apuwdZdW~PwkLEIEkHm+`-S^h=DfaP*5lr1M8ycuF_BJ
+z)*RQ4-E$Uud@@JQcR}pgdjUYL!IkJi>PWg@ti&N#b)<^@b);7tTj(zg-hhaP#nVp=
+zu|Y2wJ3|af*@H>q%VMut43K-m#olwnfL!xR?9+W5E~Q*4_QB#b^6NUW@0>?K4?HjS
+zbI0d9EqtIOT{lNZc1~NdpFeuj`MzR*9<yvpCmpG+lXawxlTPU`m?}YH|7mz{PyQ_q
+zVC{fSsUr@!)E}5Vm&Ji{Ghmgz;=u7UfTaX+P=nvVWcL&Yb-}K@*;5=6jAJNghdAWN
+zc`PVM7sG2^1EOA`j%3^AV))D$V0sB+_+L|i{1GP(?UIC8E=KsjMgA||6(bh6Lro`H
+zjFkN`t2JAUx{?FLAA=av2;J}4wqnfsYruT6LHvZ#?^$sKu7IM)CW#{#yg<#!ON`xT
+z2?od2VqDrMoW8+gLJn$5+;$ylk76B}>!CUtdRmBM`eFDjPZX0rnb!Z-TQ4S)g+SY~
+zVsh+DARJeSV+-~GIdrKw_7jeU>asZQ+Ga4!tSP1}MR|SlM{$DG6PORr#7P{IRYyUb
+zWWN~L597qiR5}n@-^3{?5hz~&(vjU8D^8t*VR)U!;&fakOIxiKXEf*z^t*C#=60hm
+z7y<{1vrQTeovb5sx~iD|3DvJHUBx-x9f9d!DbCsP2w-TYIOhV6fr*2}d8R*nXuXc~
+zgva7MKO`1jJ;eF$ZGqt0i1VkQ^t#$xod5Sj%yQol7YxKPRU=ni*!wA#WR-~v2d@Xi
+z^kw2g<9poYHoRP1)Xfu^B~Qi0E~s$!nk+63!AQodR9tc?5$NyN#3di%fXo{&F8SmJ
+zu&hMPXk7~hgcoAQ48+t&;?m+?m`-~wW+vd6*neBhOt(aZWT&WBM`m^Lp16D*GAc(#
+zTz>o(Fb5pP<>g3R-qsY2rWd%dLtJj!Z0hGxafL?<pf44PEBb|^NzM>gM4{ATlP9hi
+z{t?K&HN}-qI2L?qapg}m)meGsY6(>_Z$EKuuUbI2ZY8drd=-5~U2)?pd|KM6jyf`h
+zyTy&)P*uNuOU%X!NU&mcBx=(}{RI{3D`p3y-%lJbZt|ap;q)GHQ^E)o6dH+}UY7&e
+zI9}Y0`G0E5PH}TEX1Rh!id#a_;ssTRTVCMj#!2GVv#5O3Y$)!!-X55tJH`CtSV8r3
+ztXR+v|KN|`Vu2|+ZMIO{dk$yW(N?1N0&B?)##iEjAE%HGcNY&4$n9pm)sa;*bTl;Z
+z77y*^fN1zzJY4)3*mYyYBaSNordW$dVw(XOnI#r^p-ElXMn~cbucIOQhgeKvo?vfd
+zvDgCRf#0vh;?>qbpDz<j_^N38>*&ZD!#9eh$(hLgnu?|4(T^WkFP6?lUvOrmSXyKU
+z%)U|L=`v(ScBjSD*TVqZXNzT_d+`cN#4}IVV`%n6M?<^K;@PUUz)Y<!UKksJ4Ct$P
+zX*UN{&-UWwZWw^n?jc@IE(9W{yLcrKXVq*@yz-<L=Krg860Z*F1(3BuyyiItXtjZk
+z?Cx~&uX^ZoY}$#}i7233t`V>I{Q!)Ab@68C8KBI!h&R6>wYq#+yk#*5GoX9KJMA#p
+zH0Y#wr*9Szr)G)ev@_7TsbaaGslC5=*E|Y~&YFq$+;V{4RbRZ<qlyt__f_J(qiErB
+zMe*UZL|}J45uY?fBJp{U_~da6P=@>B(?`RQPA7=Z!|@87*NM+3gn=Qdi}-Q}I*}Xg
+z#W%kGNIbH|w?lDb68W6?!A1r+mmz-iMzU$XPyCcS0_cOWIvV1(i(ed?0n>e|_;m>8
+z{|Kk*_`(U8x(CH?eyHUX)X>pjS5y2JiNCZy9yeiVx%hqYRG>>fh~M{N8SW58{C<1{
+zu+J*QpPTUWJ+b1iX?5^?FT~#)!vG5+#XmkYkiH`&IQJ6S^;wB<KnuHElE{O_K>Zvm
+zQO5NTf!%&dqITfDF5iQA1xR6{j?CTa5*>z-%>MBb9k~?6=N=N{LIXWvqQq5Qfs4>W
+zB@Xv=q$bUjxNpe-7Grg!*ItlB%q5W*H|fZ%j+4Yu7`*oDD@mPkqr=o3Nyf)`vD8k<
+zD5u@T==X&re?=}gr>az?KfXT@B$<0*usH6QWZejpOx>L%+Yg_R)rL#ePIktOsJT?V
+zUqdX*c`sGZ4ggr=B30jh0I1-)I?_LPOV!J+;!4S*lEYSP_pCyyGpPdDq^DAyFESRT
+z{gLVgpgpnsX_V?k;JqH%SE{!gt5sVqkX%H(w{`kUF5})K8}6bbqc)TpwtNHz_wiCA
+zYBtt%kCog~i-1YVliX${17kZ%YHAY%5HekIZ<-GDWKQxZ!1#gpk~}>zNiBIu&3N=3
+z%@ZW=t{AvXEs<LK#Q|}}_*7~+`5VC7i&D!&&48-qEw%i70JB@;CEt2!*oBcgGArD5
+zG}N|`e7hXQP)wBCEJ8zNSR=JfP67BnQ1Wl{9dN0O)S>w!prS8Go#v(j?Q>KL%-xGP
+zSPEhz0kv5v=w(lUrbSZEAPjtrtJg{)RXzae-BAkZbPL!5SE=_|XCO~K*O9JqUF!V<
+zgU4sPb!5JKNqxL+f%dSK`V2$rc5}JZcQgkqIY1iFZ4NHUww4A?bp|RTP#V<pC-%S%
+zDcm;%XagsOU&TK-d9)P%f&+T~6KSYt4A%coc_2k>PQ|K}KT?$YJD{tNmZA#315@*Y
+zH0(T1pIfJ-==Ku<wpQp!<zAJddn2Q9zAX(Oj`#BUKxz27LLgIbOEDe%k*wCL#Nx|R
+z%%)mE4m%^o+`v$6!Y&;d<$*L}e>mz0Inszz*Nm9?JSB}(LUF!-kzyBP4miK66j$&9
+zgUCc_w1m4~)jJ}MIfRmGpDI$4Jzntw7b)ov&X#AzQZnQM#h#PKu0@O3exEe1cp9+x
+z4@u*5!jQ~9kWyAY#ZWFmn%M0gYD2Z8iLqC3+FsF-o$M%0qK)XEyJSj}3VQ+()<;Lu
+z=Yx(0o6FMVGYQBE-$=%-3xIlgMlznm&`OGsrtZQNZF5Iy+R+doR;`w1pt3>w4bhQ#
+z)mWPO*$UTyn@OqiYGB?aO0!EBplO~grFZcIm=P_dqlQFunJdjPW?_uie5W)Ak^Ov7
+zn%iIwz?DPNf|}WwE?+DyObh~Y%o}OZd#vHyT_P>|gk3*)jI?+b;Hp*!X-QR#j6Ch7
+zC8bE=EQadHI5*Of9ehbzx+EHJ-3A?TuTE*H)&kg8{!-@q`#_crkc`WAV%K*bBQ57M
+zF~E2st$2yv?&Mf$Wq=#jcIHW|Vn+h`YmKxj0YAUsE3I}wo4#(0lvNk$dFlfxYZO|}
+z@pGm1^=yG^XD4kK?tx_VgS25TYQotyr42s@V6=Q%+8Bxnj=j-R_SRcK9s4Qel&1mR
+zOfyPbhT<<=(Nx+>qpkn`OxiZS2&vT*X-At1pcY)zk*<>`<)(T9#l4Vr;i5F=uhmli
+z#>-f;(N@YY4@C{=th9TkjQa$oO9c_hU>Lee+H?Cf&}m81-cK03K7Jr+ju^ls-j?>a
+z#d&{er?fwJ2?{U9{`w2{%Mj^cYpm-vWJ!k(Ac1I<A{Ea04TioerDMD$u41bp9h)8k
+zxQJIeu_+3ROg2izO$?Z_St=Em`l89cTZxN~>BziRrILXUk#y$iNFSY{BRgrDR5Io_
+z5H2^QlC%lH7%Of_CsBeW8eNi3F}Xl^&yh~e#$B%l&X7taBo4opN~O+tkE>pgN{eue
+zcv(uPy{lo0WujE3wgKYaU8!tGIbO*E9f_bp(m5|bAde1^F4V_8Bd)HHE+l7To=}vo
+z)rbJH+Fa>+7T&@KJ*1oOtZ@BbEG^xBhgWh?mhKEjXLPKibSDA{!let+T?{Va)?w+M
+z18O;=hDrC1alkAnmhL_Lh;>30(*0JLpggcwy1&>T3<DJDLCy0(22_zAJm-Mae(Pv(
+zI4?ak4RZCf^zh4ORMBrrkC#uy@|>U2lUh0G|9_5>o_3D}@&#h(QXsF7mY%m*32fU;
+z>7_*&z_>Zm%M2@2xq_sZFR+I$cuQ}u;k|3rM0$503B~<(()*4W5p5}yKJ1zT2Jw;f
+zv12ui1EQo)4)H+UDw4ib!@=97rt~FpD~51k(pU2~K)QB7G~$aMxP>4dpnYAWZ>DTG
+zF+%z_z8JM1E9rYN(s93g()T9|fL!Y*{iwbXi%joIKN>y8(QGaKIv@k>{6_k7H3V7h
+zBOU3uJ2I7s^j$kC(}{SirmmHlhbU+qY$>zr9;2u|NM;`(xh>f(8;tF+i$7+{2Gr$<
+zk4JQ5;|;P{h;@GD6|#8E4%n10vSgxEq0Mz94@Sw#l)b>dSuZO^Xc5~Vmo3gT1=g>T
+zY}o}%E`|@4Eiqe8e0I^1O&B3t)x;i6C1qQ048214=*TpDA{(pzl>^MT9J$)TRP^`N
+z<Z7od6?65CY}dyP1&OP2^>Xaup6%rtt+2f2iKkp+QxUK)17wGDG!O@C%T8DWLZ6-_
+zJCDIGXRpe28n^*{_KsZVCbH?6sg*cUkX`0ryI!CpJ0wYVeOw3Qh7U%$K?z#49jjzF
+z%ZC8_n^)qstCe_Xu<Rb_jN0uc**)$k5SD*r_q08@lsZ~RX1ks2)fsuf=smL6+J|_>
+zKV+{{Q9!@BB)7PD00^SF-16Odpo;{#mA4bHJ+kChgPvn>+eP*(@&vMl@rK;m^g*{0
+zxy>kyUR}CYVz23Pn^X+BMmLn($tQsA(?ITMdLCHaXL9GLavX%O<v<$>*>Hv&SSJaH
+z;0bb<tEhT4nke^5DF<rlV7b?ar5FR|%e}Yz0R3gQ+$UfohGfs>e*Wu$yk(1sT9NVA
+zRD6LS+%kQTjk(^Qa{mleyN`47fO)-u>bgcAIH(U$BYY9Z0Wm049@OzBFrh*6U@j6z
+z|NBaO{7xS1iSd8n9mH}lbSai2GVcR3*+-6?YK{DVha6cj1Lzn=j(oKh=+B4bC=6PS
+zY~7u5)J1f!?GMP&nfR2;D<N`BU>_t5U**`yIAF3r$+53%fuTp7JSr^|Ak<n;*ov01
+z`f+(QCa(<kGv&m2=<Onna&ki?uO6h1^sys4G9Ht4WdAOg$EL^QEzXn2Zout#*2b9-
+z=l}0Cd7Oj-g3}Lq+|WW`CV9!@w)z9}YKT03FV264lT$)aOuDg3PBBtI*|^CQHwA%V
+zb}M=EKBQh=%VcA}7=RBg<>{!P5>M?a5v!F<@2Oo^<mvNgqHl50k@hZ-r=LNKyQWN@
+z@zm&#zqq$Nb1VfUKVP0%hD74!R5`Uf&QE+|L~1b3_cedXsi^x?_6hQ=myLn$c2-VH
+z2?FB7PC2b?Be1W|%d@fmkG%0&P9KW1=9Hg2=Myrb<!SQ5Z5SJ_$kve_nI$h8i08LH
+zAumqi03Ljmml%f{aMQWNaz=v}z|5;BXKc9#Z0i)n`-qPbv5KWl55$LvM-b5mw5=~M
+zwZpMdlB6T!d0oy-$pv!fWm%>B0el@IFK>(6`gb2J>v6x6pS)sGKCsMjdBt^HNARGk
+zys}vgiryz=<I1EkEVrF0uTEGDkS5D(g4&^Q=pnC3_5)aIF0Z*2gGr=JdF_MtSelh9
+zud|N;Ht)W?E)4?`cXxRMX9>(%4|)3)47clkm3OG91H|5vcP51Z`Qf*md&C*T`Fe8R
+zQY)NpljXdX=tVm{kn<h}0cD(Ely`NYaQfAgcXe_CHaJnn$G!nQ_qd!t07>YpU2^^b
+zWGs_$y~8hmAgpi6TJHcLUf$HvU^`IOc3}^G8Y*kQz5`o*j(i}g5a7>n`Cv*MP#4$B
+zhm*4a&X>tYm|6fmHp)jzFz)aCL_XI28o(o?hkX3%5+Hi{>d2aRmy1!wCjLB-OM0Lr
+zv%Zde@(ztfWxeInyT!nA9m6MIm%4PohfST+om#xJs>hnY{+t?52p*!R==%x+c
+zf8?{IGmwjZ$Y-mdGJ17{e0B#uJtttLeD;h75X+m$m%BGZ{~vfvz8qBuY;vr8MMZ^U
+z^$Yo0U-V+*^X0#0W&_=Et9)I<D;w@7m!F#gxX52FFUP?-^{#w(+(BS_-IMQ64nU{1
+zN4{TH4AihR`Qh?f!1jxiA4L}eG0s(fY=L8=_hk7Qhcy377x}q!1<;Mp$j`&iWBpI(
+zj`GVq)NFR<%CDA00{d>N{OYzVusK8I*O7_93>qZA{uBh{^hCJ=pJG9sd@fgb^ufBn
+zmU4w>B384sli$RRL_IHGejg`e&vcbPtfzquoG5=9hc)EE-{eo}OOVD(@~7iC8wS6W
+zzlqU6jWm<LWv#{e|I|nRfdK{OIZght9zW=~P5v2-8w)t*%fE_~5&tNZC#GD^+bc{E
+z4UCVZFd7;jcQ?h*8J*JOX^L5`Zb05A6|-NZz%;Q|I8XGB2X5(TSdgf2Z7~!(cU0l0
+zBJHl#PZ4V2;<OF^ig3ip06o}Uk=vGm!OUJ!7J8rnu~{+Sf`jGnyNcy89HpzA6syhW
+zQQcmrSpEEj$)i}s)=CCqk*{Lw5(dE6R&4Xogm*G3wujFHwckgveT-goT2IApSq6&J
+zs}#q+=$xJ`(2;KUwGu;Y6-Og}Ko8zqd7x0%ksaJbN5hzS#n~Nw!X0zPc@5@t-*i#x
+zY{9acz$uE$PGresw&JR71ol&?(r~&TFso}RjVS!Q|0$)Bw>#F1$0%+coPa7jtGH!i
+zF>C*CN@D?K{zDU#CLZXH3wtWYrk9b&e{xjZy%6hlRNS!)hi)-OanDDNx0Y8ttaDKN
+zsiyeYHOH!zw~CJws@R)1Dn3^+<3X=dS`tpU?FO&-ea30l{E5=m0~3*5-s#93TBNiM
+z!AOa$uCyEe1HD~iCBXS3)(ZwI?K`3rTh`jBba-+e+3QKAqcs|kwJVg4PV+D!*;nb<
+zEElNPE=u6=!Dw=Ql)#n9kj|$nU5aqJ1=mu#VmM7?H&(jM{0;2U&q`1;Og_H{rMnRY
+z%xhhg;Du;Uj4?{^wn!jf+bBKqEAac2(lhuxuzNNry&O&e>2Ex!gxccZ!$B5mi;N|<
+zUnQnRD*a4Lr^w+-|0+0WcGXt~eai)6%PS?~65ey4RZ7IIzj3<uQ6kR<07bYdQG9=#
+zHMNx}52RScX(eiCI2fw=C{e2nKvB<?XcVbf^BYREAI_$twMq<8fjz>CN{s(utY#gh
+z#B@QMo>roah_3@oP+MihF@K;_uPL$H@nNwE1C`j9Sj$;2Ng4I05Yy=6l{lgWu<HmV
+zZlMo=rKgUxTg^(08d`~0Vw89@bk9LQmH0Ji&@2O#__w)O6FyRj|M(F3|HOLA=u(^o
+ztu`x(3(J5F>!2iU$5QKOsmj=U7~i+4tBm)^!nArbWqkMqVBv}~J_3<ws-%p-Q0(LY
+zC1n@JcJy3jVhul_^Cs%ZtbU+Obj-x+m@H*tXPm~Z8Y>fvk^!uDSE9DXgsA_oGANU?
+zlYxAbqfEYN2Fx~tGG(qGP^I>YaT@x7{SB3ARye&}XCuDA$_58z=9*p@hFdGM2BBbi
+z;khy^97(F%EF~?l0+{F%%IwE(z-0L<^Ty#I<2;mk?@+3(*Fc%~4R7&?zRLVo)<8P6
+zK{TQ!+v23M;K4MYe4-Gs7_G%r#2G-f6cLd)v|Nsu3Y4!iB8tzxyAacWYUPVK8?h8I
+z9pi*v%EFFF-4aTag(lOTIZ9bH2z&N;HDysMc6px;%A%(@R)$$9i*W%HQG1NC*m!>k
+zP+^OejCrO5$CYKp_CQ^Euc#<C)2{U^v3EyhrGR0z-#sO3Iv)4kp=8a;0ao=_vJN9Z
+zc)3hjo2~*~HAPvwh5<_0qGZ2DE;uMg$;rtCrrS|v`?-xkOkb-b?!Be#FvskfcPquX
+zqogAc>DEdvmSR(9Co8$mXi9J9=}0GKD!ZC|$H1Xn+4bHDpxb&SzfmeMf#a0jn{c|m
+zYNMmUwn*9YaR$KsOl6;YGcYtrQufV4CpLG6vTr9csDuW}{yZFn1B;dY?{M~X-k}^K
+zFsMB~->4kE?hM52i^>t6L@B1Ba@@)u$Qo01q`fMX<84>s+7Dah1RscElcjQ^X9%w2
+z`KX+TLIE+)Tsd(b?ZgYCQiO3o!*o=Nw&BLb22Z8vrXRqubfs9qr5amRrNja`<@i9Q
+zq!0;9xT|u~4a52dMswxleM?}!R#8sfLxVA+n{w(QGNQs>%IUctXkq6nr|+OmuVJN>
+zwZe8mq*B%v-E55^N?E79K)D1eWd%V%^@B<r^HaGz7`b0VFXc+#6d;cDQLYi#u6`5c
+zdWSGzPkvEuP&f!j{ZMX<D+Ahi$4<FP$-ss_Lv+Iui(fjjp{sQ?%&)E7I)TdOHXj|S
+zyc)`#syK+&q$&4j;+0fbDGvtq!qM-qJh+n#?EAXPqv{WUYB)i8JiH8;@3iuGLoF1Y
+zJ}FOb;~$Q>pgi+H=k!NYo}I<|AA+B$yud4A8huq>OvfIW_C|RbbOy*@4U|`Bu}k~+
+zP~Q3{VPtf(5<@xVZBZ;RsV$ZFZwt_w7<4o&RFn?^=#D+dD<6mBytiDhe8MYd+)9;C
+zi*fdl)0NMG?SZykr+nRx)3Zae@~vKBQ-FbsmG8Cffb}d;z7LoQ#F#b8_uNz*?PHZ6
+z6L1uF{H^?cf%F;%#(-hb?}Dxwwp2mUG8?l3ul28qg3sAch>YP|Ru=T%8b}l@-9gg@
+z_jeVM8KrycW;ERAR4{YjJE~yoK^L=(isGPxw31ShXp#|p*^LDIf+?3HsEp6omt~~g
+zTv+h-ZXr=1J;-A-R=ylu@cH!>w&41=`V<L0GuA(;p0VOjGyF=%`9JOUCJ-?K<q6%?
+zcMS+j$sUqn3``&xh=d7hTQj1%N{NKG)CBw?1%}~g@i0z(XNSiF+R+wTib#}Fgo|o#
+zL5x-lst|kewAyfUBE!0RUFb-(gAXtc;_$2XFbZN|BqTx<j8Sptcx$zNJ))_lBXq%2
+z#zB&P>R4<Mqc*HZR8x1?BQ9IJ=;w$h24D;PmoS*lqiuE}Dk#e)5Cq})GZXN<iTElG
+zVzeC%iBdvsDH1m7XFL2y|BWZzhz^Vz(S<NqD}o75tLsTjrwLbeyEhR=G*Lw#Vz_4A
+zf`})yR=&g@5sQ`k;13>(r^TO&z3{FHQBAAXnFu9J7Z(>uT(%-^sci=nYl#8s-NA&D
+z5Q&$N2uVaWNYE^Y5I%$&8fd7Ze!EIH(EfxI^#!e2JTZ_UHmIW)Q?}aH1R`BOm-`r^
+zjMNS#6V)koZVGW*eelz)p4vQ-u+%<IAp8yLvKhn_)h(5<Q?pVDXLZ6XA{gP!EW%lP
+zH;Z^qYv1M(MYOto2{A(JlR>m3RQ$J03(F+lliH@`#9yq&uO~7{Eg+ltn-B&<F#b}!
+z5k!D`$%nO8+ioISnl5V6Cc=hL4O@uUTG3WwKSK;xC*={t@FVp>9`TB3qh8oW_?g~H
+z`9vpt+dE%>t1ZnZX46EZI$0x{s$cdI9-A9#ghUKgFKsomR&SjkYN%nwL}Sz6m|sjh
+zC5c!y`4m2d7~kJLMfh{t`AY;os>%)DKe$XR5VfxNi9f7%{25W$NIPUpE*7+aI;1D1
+znbjwM5?ad!<aI)o8j~UF-KJz4&BBxH<UlM}2ZWN#wNIhsY*BE7?l>eOU<7XLv}h>#
+zL?YbO<9BIGbt`8ksq4Ryw%UdS5_deiGmcy(nY&{1XdI=nIDVpVbh)UD8M2zX!<yvP
+z6{%!H^M?O-gI}zjI%+vBs9#daxc`p^4$}xb66&k7W|1u&?El~2hY9+y)dwuTs;`o1
+zWD{+98fisp!xxYYt!-UKb|<uDE66T{c61fFk<gy5A#(^VYaQ8u*IsTXldBW8)bLZd
+z6<uh6p|<+zB&lfYPmxB0I`#s&MD@Q&KGxzck>?m9NS%6{tgiOEL0Z-B1Oa$~Uf>Q*
+zu!rnnA~eNU-uV9*XbqFqAJ@rR>hkNP^Z(CpCH(WPc3S97QX@3uZPJO*e*R6`w<5gN
+zn$@Z1ru!UHor<ohj{ZtIYBhbRu4ZbKY-X;;yRnRFY)dJoCJWk969}!3KNV_bB*7n_
+z`~=9&FedP~Hy}t|{R4u>#7FqY#ze&>5tQi@X#c;h+W+@fJ^!~=&;QoS3JpnH=m<Tb
+zAM{bhH-_5UjV@G*fe2H3hEQSZ!eENi4uw#EYH8efDvwk<Pod(qPDbhmp=M2^)~mU`
+zjE!bLlZqxZC5;+M)pmhUlR1L%*vpAH<08<kMWKnaM{^Ym;o7P>RAZcz^KnBiVwO68
+zDK%I<d4X2cmygUibzcTmRkh2cj%i`4>6F!1QEe%8*C{g##Zk9RBk(MdxRZgS8l6Qo
+zQQ1(+qV|72!Q=M$m+eh0iFRnmBXGPqs=KqOR+a(!^dE_XZUUP55!lF4ZNHXkLLw%w
+zrP|l4`+qmUBWMF53Qf7m*qXlPsP<n+xvMAcP!{UEb(E9o>v`*_*8lpA|N6^6)={2<
+z-9INLCaK5k<NWepPr0gR@Ii+pgsZRCQ~k7+8>ptF)@C!+oYLeSRBJ-5mrF(0p8a3D
+zG73G5n|3Le8ct~C`P6}GL|1M387hKS11?en)N}r{jrQvzKKzKNtN!t)tE;UZP@HMB
+zb$CGCGH63yPyxL9){&;wsx@dEweVx*r>8zrA!h2u-;}#n@QWHps&)=EuO9qE$?B^2
+zluc$|TBef0J~Nv3Alj+<f2gLJXaDEWZ8{oVp+7-8)7ZE6YBWLnX!i)Z1FMZTqt}@U
+zJaofx5Qn{JuiBZ@%hVb7C@b@DY>eJRcYtx&%l7IObGngQWI@}iwidL7={MK6pxe`G
+z9a}m~J!?Y?rbE|l=vGYSwOOmKHE4Y%`P85{66%|)R28jVE!u%oU){qW{=Ss7Qd8^E
+z)lJ`9SC94<wI-hQHJa$DvOaXM>1b~sx;>@VX+>M8JALU^ct|DuXlGS!McZPtx~=G7
+z5$yjnn`)?++R}FF%2sq$)0e8KCtA_1|L03BE01*b`_B<)HO~((MsN7nzYqJg{^#(J
+z*8gf<^q<2o{(ZPxn}1p-wfR@;>;F0Y``?Gd+y2vfcH94Lt-WkZTauOC=4|@GP64!w
+z_9uXzV5aVQ#8{|>B4MlIqqoe}rwZkuzao08ZSf(X>YuZeq-_tTOIX3Ra()3iE_HMt
+z+Fp%c#&YVmKC}nt0)23@{GT6K_odyXs?ZMaaX8undx%q;_CpFZtuO7WJ?x7^Ne$^w
+zZ&UpS(2KO{18FZp4cy1JP{$6UtEm^m=t)GNdMOMCh5u;ULKunzXc(FmJeis?m~MxI
+z&aHy6rH~`34!a3kt>I95C_&h(3nOS-&NRHbLkH-fY7ulx)ze5jsplhUMH8dwCWN+s
+z7(JB4E36(v_cHZId<@-1wTr=9S{6h5n~q2$=wS8!2s#kYm_HIH((w_rJ<(Mi9ZPp)
+zOfJM;Z8(zlH8tr(x#K%*)UxuON9DWfYH%#}k>0@bpF>ywbEw%rhx(5Cr&V)2bbQo5
+zr}6ry!H~Fr8hHP6=+S=;`TWlzZFoH0k0U(Q6XR)j(*=ASPq#+m@jQjDqxMUo+nbKz
+zb8Z4vj}*GDDo@ZaQ|mDScLmb!ZlD9r)w+A>VC~UfdJ3gl6HFB~=>T4P_(9r1vp-Cy
+zSNpg3)ox#-=kTik9dw>yU(twHyrDUD%{@Ava)BUqbOnyW7Cl&5ef@^!wKn(Zzig0h
+z2dLqxw58_ul|F`??I-Q2KKV&+P*Vt|ho<n%5JI)EV#cWNYB2HYidsxhEu%J5o7OmI
+z#);Hw*TZMwsICo}K5AYgrWY|)efx;1s@8C0hN*croS@BhWBL%<CwHa|p+0$t2H;^c
+z=8`(xn~BBy6QVX9!C0$@V;E;m^kJqG+Ps!b5utr=%cQWHbs#gA)+PosMpk{}%dpy%
+z{>(0eWQRV|#E0!61V*Y;NXl02I+S^%7Dg~b)n$21V>Q#6sjA(IWcJfU2Q?!GmsX*5
+zz8=GbnCM}HIHtAJI6Q;N8;&&DKV%^B_-_(2?IcLny-NfP*H*+akI7~646V|MjJX>9
+zj;x_=AI+>FoLulPC*kZFV`{HEFO#Q>)z6uPe$F1E)p3bTD{aD9<{g8#%cYyaUfso^
+z?_M*B$+!LYJySboGB)b4lT34UoXYf2OG*t^s@oESx%y)TelTSP(@Hg8$;?;lo@2t)
+z9MdtoRm>>DPbCr=E49jbCP2Nj3XevfX9lXBRx>VY_bjHX>b8z)hNfloC8oC8`V!-y
+zX05|U3741v?d>|I7MZa(w~ksfoB5z}o0wYF{yP=(%E2D}uWc%c*L-Y);fr|=Q`7R_
+zXY#~|%0%b>&S4sAqc$;bNKM_!%%m}JsFBM!s{y&p0c~I&vkloxKC@9fwwu{SX`A;k
+zTQI|@2JdG)P4i>setcHYzeuKbZ$I;%Rpnz0YaWd^AqBl}INk;~(|_8-qs(*a-_2EQ
+z&Zyr{-~(&rV&*TI7^vc75peGgd#&{qW)S)Bw%Yk?3|Cz<d&i_SQ5Oql4(c5T)?6LJ
+znl;c?)MKBM>U&pqruM7>JC;<F_nKL$zV!@sv=weF!K=HPv$SULVJoavC75leE)8av
+zYvX&cte~A3#11CZ)q~j%YJNC-P;-oA{YbpT@L{a!61B`>tRt22abFcRa0Dx<$_Tar
+z(pImLtWH};jbvw#YFHdQSM`Z!8=((0PhfRd8J@rzC~apVdxs!`)H%s)pziLqtI6yL
+zQkylNwKL!hAF1US**gN^s9vf{S*oWmp~c-am#ylmF5Syk)o$QF=34wIc7&Ja{f9lm
+zsgD$ci{`)?{QR`?js`CxZFpycHoUVL8;ZQFJ#sJ8OfeaKdvL{9CQlNF^T{-iD(8f&
+zmXT$4s4iYZol|CwgkgFEeZr{8C1#z87W#21!9+oE5{BbRQq;#KW`Q_iP2W)cJPg&;
+zkpgniktfaC6TX%0O$0I?C#WfsAE{kGX*P<(@R9gvuvM3onl;zPUo^`Wh+wtm9Wx({
+zgmt!P8XW5S6Rfp1<&N1xgSP*PSunYI>2ot$>tA73D(iu+7W&I<Iq`ptgxY`1HroF`
+D!s_t9
+
+
+From 9cb1462812d384f4e668fd1f4041f55a7ae19a1b Mon Sep 17 00:00:00 2001
+From: David Hampton <mythtv(a)love2code.net>
+Date: Sun, 18 Feb 2024 12:27:40 -0500
+Subject: [PATCH 06/21] Build the transcode program with cmake.
+
+(cherry picked from commit 9a8b2960c62673b37ba695083bb66fcc612d2e80)
+---
+ mythtv/libs/libmythmpeg2/CMakeLists.txt | 3 ++
+ mythtv/programs/CMakeLists.txt | 1 +
+ mythtv/programs/mythtranscode/CMakeLists.txt | 41 ++++++++++++++++++++
+ 3 files changed, 45 insertions(+)
+ create mode 100644 mythtv/programs/mythtranscode/CMakeLists.txt
+
+diff --git a/mythtv/libs/libmythmpeg2/CMakeLists.txt
b/mythtv/libs/libmythmpeg2/CMakeLists.txt
+index f5eb7bfd337..40c9a98c9d4 100644
+--- a/mythtv/libs/libmythmpeg2/CMakeLists.txt
++++ b/mythtv/libs/libmythmpeg2/CMakeLists.txt
+@@ -37,6 +37,9 @@ add_library(
+ # All remaining target information
+ #
+
++# Don't set the hidden visibility flag for this target.
++set_property(TARGET mythmpeg2 PROPERTY C_VISIBILITY_PRESET)
++
+ target_include_directories(
+ mythmpeg2
+ PRIVATE ${CMAKE_CURRENT_BINARY_DIR} # For config.h
+diff --git a/mythtv/programs/CMakeLists.txt b/mythtv/programs/CMakeLists.txt
+index 54c02332bcd..21abca3d88f 100644
+--- a/mythtv/programs/CMakeLists.txt
++++ b/mythtv/programs/CMakeLists.txt
+@@ -32,6 +32,7 @@ if(ENABLE_FRONTEND)
+ add_subdirectory(mythpreviewgen)
+ add_subdirectory(mythscreenwizard)
+ add_subdirectory(mythshutdown)
++ add_subdirectory(mythtranscode)
+ add_subdirectory(mythutil)
+ if(NOT WIN32)
+ add_subdirectory(mythwelcome)
+diff --git a/mythtv/programs/mythtranscode/CMakeLists.txt
b/mythtv/programs/mythtranscode/CMakeLists.txt
+new file mode 100644
+index 00000000000..60f2da3f2ef
+--- /dev/null
++++ b/mythtv/programs/mythtranscode/CMakeLists.txt
+@@ -0,0 +1,41 @@
++#
++# Copyright (C) 2024 David Hampton
++#
++# See the file LICENSE_FSF for licensing information.
++#
++
++add_executable(
++ mythtranscode
++ audioreencodebuffer.cpp
++ audioreencodebuffer.h
++ cutter.cpp
++ cutter.h
++ external/replex/element.cpp
++ external/replex/element.h
++ external/replex/mpg_common.cpp
++ external/replex/mpg_common.h
++ external/replex/multiplex.cpp
++ external/replex/multiplex.h
++ external/replex/pes.cpp
++ external/replex/pes.h
++ external/replex/ringbuffer.cpp
++ external/replex/ringbuffer.h
++ external/replex/ts.cpp
++ external/replex/ts.h
++ mpeg2fix.cpp
++ mpeg2fix.h
++ mythtranscode.cpp
++ mythtranscode_commandlineparser.cpp
++ mythtranscode_commandlineparser.h
++ mythtranscodeplayer.cpp
++ mythtranscodeplayer.h
++ transcode.cpp
++ transcodedefs.h
++ videodecodebuffer.cpp
++ videodecodebuffer.h)
++
++target_include_directories(mythtranscode PRIVATE .)
++
++target_link_libraries(mythtranscode PUBLIC myth mythtv mythmpeg2)
++
++install(TARGETS mythtranscode RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR})
+
+From d69e601301219359a1a38a849aa88c35d23f589f Mon Sep 17 00:00:00 2001
+From: Nick Morrott <knowledgejunkie(a)gmail.com>
+Date: Tue, 20 Feb 2024 11:00:43 +0000
+Subject: [PATCH 07/21] Translations: Refresh mythfrontend translation source
+ file (Polish)
+
+---
+ mythtv/i18n/mythfrontend_pl.ts | 186 ++++++++++++++++-----------------
+ 1 file changed, 90 insertions(+), 96 deletions(-)
+
+diff --git a/mythtv/i18n/mythfrontend_pl.ts b/mythtv/i18n/mythfrontend_pl.ts
+index ae6c09d2c63..6ca851a88a0 100644
+--- a/mythtv/i18n/mythfrontend_pl.ts
++++ b/mythtv/i18n/mythfrontend_pl.ts
+@@ -1697,7 +1697,7 @@
+ <translation>%1 %2</translation>
+ </message>
+ <message>
+- <location filename="../libs/libmythui/mythnotificationcenter.cpp"
line="1494"/>
++ <location filename="../libs/libmythui/mythnotificationcenter.cpp"
line="1486"/>
+ <source>MythTV</source>
+ <translation>MythTV</translation>
+ </message>
+@@ -1958,7 +1958,7 @@
+ <translation>Ładuję filmy ...</translation>
+ </message>
+ <message>
+- <location filename="../programs/mythfrontend/mythfrontend.cpp"
line="1321"/>
++ <location filename="../programs/mythfrontend/mythfrontend.cpp"
line="1320"/>
+ <source>Failed to open
+ '%1' in %2
+ Check if the video exists</source>
+@@ -1967,17 +1967,17 @@ Check if the video exists</source>
+ Sprwdź czy plik istnieje</translation>
+ </message>
+ <message>
+- <location filename="../programs/mythfrontend/mythfrontend.cpp"
line="1356"/>
++ <location filename="../programs/mythfrontend/mythfrontend.cpp"
line="1355"/>
+ <source>DVD Failure</source>
+ <translation>Błąd napędu DVD</translation>
+ </message>
+ <message>
+- <location filename="../programs/mythfrontend/mythfrontend.cpp"
line="1381"/>
++ <location filename="../programs/mythfrontend/mythfrontend.cpp"
line="1380"/>
+ <source>BD Failure</source>
+ <translation>Błąd dysku BD</translation>
+ </message>
+ <message>
+- <location filename="../programs/mythfrontend/mythfrontend.cpp"
line="2074"/>
++ <location filename="../programs/mythfrontend/mythfrontend.cpp"
line="2069"/>
+ <source>MythTV Frontend</source>
+ <comment>Main window title</comment>
+ <translation>MythTV Frontend</translation>
+@@ -11356,7 +11356,6 @@ Proszę Czekać...</translation>
+ <name>MediaMonitor</name>
+ <message>
+ <location filename="../libs/libmyth/mythmediamonitor.cpp"
line="219"/>
+- <location filename="../libs/libmyth/mythmediamonitor.cpp"
line="765"/>
+ <source>Cancel</source>
+ <translation>Anuluj</translation>
+ </message>
+@@ -11394,27 +11393,27 @@ Proszę Czekać...</translation>
+ <translation type="vanished">Medium zawiera treści które mogą
być wyświetlane w różny sposób. Wybierz sposób.</translation>
+ </message>
+ <message>
+- <location filename="../libs/libmyth/mythmediamonitor.cpp"
line="983"/>
++ <location filename="../libs/libmyth/mythmediamonitor.cpp"
line="892"/>
+ <source>Select a CD drive</source>
+ <translation>Wybierz napęd CD</translation>
+ </message>
+ <message>
+- <location filename="../libs/libmyth/mythmediamonitor.cpp"
line="992"/>
++ <location filename="../libs/libmyth/mythmediamonitor.cpp"
line="901"/>
+ <source>Select a VCD drive</source>
+ <translation>Wybierz napęd VCD</translation>
+ </message>
+ <message>
+- <location filename="../libs/libmyth/mythmediamonitor.cpp"
line="1001"/>
++ <location filename="../libs/libmyth/mythmediamonitor.cpp"
line="910"/>
+ <source>Select a DVD drive</source>
+ <translation>Wybierz napęd DVD</translation>
+ </message>
+ <message>
+- <location filename="../libs/libmyth/mythmediamonitor.cpp"
line="1022"/>
++ <location filename="../libs/libmyth/mythmediamonitor.cpp"
line="931"/>
+ <source>Select a DVD writer</source>
+ <translation>Wybierz nagrywarkę DVD</translation>
+ </message>
+ <message>
+- <location filename="../libs/libmyth/mythmediamonitor.cpp"
line="1010"/>
++ <location filename="../libs/libmyth/mythmediamonitor.cpp"
line="919"/>
+ <source>Select a CD writer</source>
+ <translation>Wybierz nagrywarkę CD</translation>
+ </message>
+@@ -13151,27 +13150,27 @@ Proszę Czekać...</translation>
+ <translation>Pytaj o potwierdzenie przy wyjściu do
systemu</translation>
+ </message>
+ <message>
+- <location filename="../programs/mythfrontend/mythfrontend.cpp"
line="1565"/>
++ <location filename="../programs/mythfrontend/mythfrontend.cpp"
line="1564"/>
+ <source>Reload Theme</source>
+ <translation>Przeładuj skórkę</translation>
+ </message>
+ <message>
+- <location filename="../programs/mythfrontend/mythfrontend.cpp"
line="1567"/>
++ <location filename="../programs/mythfrontend/mythfrontend.cpp"
line="1566"/>
+ <source>Main Menu</source>
+ <translation>Menu Główne</translation>
+ </message>
+ <message>
+- <location filename="../programs/mythfrontend/mythfrontend.cpp"
line="1569"/>
++ <location filename="../programs/mythfrontend/mythfrontend.cpp"
line="1568"/>
+ <source>Program Guide</source>
+ <translation>Program TV</translation>
+ </message>
+ <message>
+- <location filename="../programs/mythfrontend/mythfrontend.cpp"
line="1571"/>
++ <location filename="../programs/mythfrontend/mythfrontend.cpp"
line="1570"/>
+ <source>Program Finder</source>
+ <translation>Wyszukiwarka Programów</translation>
+ </message>
+ <message>
+- <location filename="../programs/mythfrontend/mythfrontend.cpp"
line="1575"/>
++ <location filename="../programs/mythfrontend/mythfrontend.cpp"
line="1574"/>
+ <source>Manage Recordings / Fix Conflicts</source>
+ <translation>Zarządzanie Nagraniami / Usuwanie
konfliktów</translation>
+ </message>
+@@ -13180,17 +13179,17 @@ Proszę Czekać...</translation>
+ <translation type="obsolete">Priorytery
Nagrywania</translation>
+ </message>
+ <message>
+- <location filename="../programs/mythfrontend/mythfrontend.cpp"
line="1577"/>
++ <location filename="../programs/mythfrontend/mythfrontend.cpp"
line="1576"/>
+ <source>Manage Recording Rules</source>
+ <translation>Zarządzanie Regułami Nagrywania</translation>
+ </message>
+ <message>
+- <location filename="../programs/mythfrontend/mythfrontend.cpp"
line="1579"/>
++ <location filename="../programs/mythfrontend/mythfrontend.cpp"
line="1578"/>
+ <source>Channel Recording Priorities</source>
+ <translation>Priorytety Nagrywania związane z
kanałami</translation>
+ </message>
+ <message>
+- <location filename="../programs/mythfrontend/mythfrontend.cpp"
line="1581"/>
++ <location filename="../programs/mythfrontend/mythfrontend.cpp"
line="1580"/>
+ <source>TV Recording Playback</source>
+ <translation>Odtwarzanie Nagrań TV</translation>
+ </message>
+@@ -13199,7 +13198,7 @@ Proszę Czekać...</translation>
+ <translation type="obsolete">Kasowanie nagrań
TV</translation>
+ </message>
+ <message>
+- <location filename="../programs/mythfrontend/mythfrontend.cpp"
line="1583"/>
++ <location filename="../programs/mythfrontend/mythfrontend.cpp"
line="1582"/>
+ <source>Live TV</source>
+ <translation>TV na żywo</translation>
+ </message>
+@@ -13208,42 +13207,42 @@ Proszę Czekać...</translation>
+ <translation type="vanished">TV na Żywo w przewodniku
EPG</translation>
+ </message>
+ <message>
+- <location filename="../programs/mythfrontend/mythfrontend.cpp"
line="1585"/>
++ <location filename="../programs/mythfrontend/mythfrontend.cpp"
line="1584"/>
+ <source>Status Screen</source>
+ <translation>Ekran ze Statusem Systemu</translation>
+ </message>
+ <message>
+- <location filename="../programs/mythfrontend/mythfrontend.cpp"
line="1587"/>
++ <location filename="../programs/mythfrontend/mythfrontend.cpp"
line="1586"/>
+ <source>Previously Recorded</source>
+ <translation>Poprzednie</translation>
+ </message>
+ <message>
+- <location filename="../programs/mythfrontend/mythfrontend.cpp"
line="1590"/>
++ <location filename="../programs/mythfrontend/mythfrontend.cpp"
line="1589"/>
+ <source>Standby Mode</source>
+ <translation>Tryb Uśpienia</translation>
+ </message>
+ <message>
+- <location filename="../programs/mythfrontend/mythfrontend.cpp"
line="1595"/>
++ <location filename="../programs/mythfrontend/mythfrontend.cpp"
line="1594"/>
+ <source>The Video Default View</source>
+ <translation>Domyśny Widok Wideo</translation>
+ </message>
+ <message>
+- <location filename="../programs/mythfrontend/mythfrontend.cpp"
line="1597"/>
++ <location filename="../programs/mythfrontend/mythfrontend.cpp"
line="1596"/>
+ <source>The Video Manager</source>
+ <translation>Zarządzanie Biblioteką</translation>
+ </message>
+ <message>
+- <location filename="../programs/mythfrontend/mythfrontend.cpp"
line="1599"/>
++ <location filename="../programs/mythfrontend/mythfrontend.cpp"
line="1598"/>
+ <source>The Video Browser</source>
+ <translation>Przeglądanie Kolekcji</translation>
+ </message>
+ <message>
+- <location filename="../programs/mythfrontend/mythfrontend.cpp"
line="1601"/>
++ <location filename="../programs/mythfrontend/mythfrontend.cpp"
line="1600"/>
+ <source>The Video Listings</source>
+ <translation>Lista Wideo</translation>
+ </message>
+ <message>
+- <location filename="../programs/mythfrontend/mythfrontend.cpp"
line="1603"/>
++ <location filename="../programs/mythfrontend/mythfrontend.cpp"
line="1602"/>
+ <source>The Video Gallery</source>
+ <translation>Galeria Wideo</translation>
+ </message>
+@@ -13264,97 +13263,96 @@ Proszę Czekać...</translation>
+ <translation type="vanished">Zarzymaj Pokaz</translation>
+ </message>
+ <message>
+- <location filename="../programs/mythfrontend/mythfrontend.cpp"
line="1647"/>
++ <location filename="../programs/mythfrontend/mythfrontend.cpp"
line="1646"/>
+ <source>Start/Stop Slideshow</source>
+ <translation>Startuj/Zakończ Pokaz</translation>
+ </message>
+ <message>
+- <location filename="../programs/mythfrontend/mythfrontend.cpp"
line="1649"/>
++ <location filename="../programs/mythfrontend/mythfrontend.cpp"
line="1648"/>
+ <source>Start Recursive Slideshow</source>
+ <translation>Rozpocznij Pokaz z Podkatalogów</translation>
+ </message>
+ <message>
+- <location filename="../programs/mythfrontend/mythfrontend.cpp"
line="1651"/>
++ <location filename="../programs/mythfrontend/mythfrontend.cpp"
line="1650"/>
+ <source>Rotate image right 90 degrees</source>
+ <translation>Obróć 90 w prawo</translation>
+ </message>
+ <message>
+- <location filename="../programs/mythfrontend/mythfrontend.cpp"
line="1653"/>
++ <location filename="../programs/mythfrontend/mythfrontend.cpp"
line="1652"/>
+ <source>Rotate image left 90 degrees</source>
+ <translation>Obróć 90 w lewo</translation>
+ </message>
+ <message>
+- <location filename="../programs/mythfrontend/mythfrontend.cpp"
line="1655"/>
++ <location filename="../programs/mythfrontend/mythfrontend.cpp"
line="1654"/>
+ <source>Flip image horizontally</source>
+ <translation>Odwróć Poziomo</translation>
+ </message>
+ <message>
+- <location filename="../programs/mythfrontend/mythfrontend.cpp"
line="1657"/>
++ <location filename="../programs/mythfrontend/mythfrontend.cpp"
line="1656"/>
+ <source>Flip image vertically</source>
+ <translation>Odwróć Pionowo</translation>
+ </message>
+ <message>
+- <location filename="../programs/mythfrontend/mythfrontend.cpp"
line="1659"/>
++ <location filename="../programs/mythfrontend/mythfrontend.cpp"
line="1658"/>
+ <source>Zoom image out</source>
+ <translation>Zmniejsz</translation>
+ </message>
+ <message>
+- <location filename="../programs/mythfrontend/mythfrontend.cpp"
line="1661"/>
++ <location filename="../programs/mythfrontend/mythfrontend.cpp"
line="1660"/>
+ <source>Zoom image in</source>
+ <translation>Powiększ</translation>
+ </message>
+ <message>
+- <location filename="../programs/mythfrontend/mythfrontend.cpp"
line="1663"/>
++ <location filename="../programs/mythfrontend/mythfrontend.cpp"
line="1662"/>
+ <source>Full-size (un-zoom) image</source>
+ <translation>Pełny rozmiar</translation>
+ </message>
+ <message>
+- <location filename="../programs/mythfrontend/mythfrontend.cpp"
line="1665"/>
++ <location filename="../programs/mythfrontend/mythfrontend.cpp"
line="1664"/>
+ <source>Mark image</source>
+ <translation>Zaznacz Zdjęcie</translation>
+ </message>
+ <message>
+- <location filename="../programs/mythfrontend/mythfrontend.cpp"
line="1667"/>
++ <location filename="../programs/mythfrontend/mythfrontend.cpp"
line="1666"/>
+ <source>Scroll image up</source>
+ <translation>Przesuń do góry</translation>
+ </message>
+ <message>
+- <location filename="../programs/mythfrontend/mythfrontend.cpp"
line="1669"/>
++ <location filename="../programs/mythfrontend/mythfrontend.cpp"
line="1668"/>
+ <source>Scroll image left</source>
+ <translation>Przesuń w lewo</translation>
+ </message>
+ <message>
+- <location filename="../programs/mythfrontend/mythfrontend.cpp"
line="1671"/>
++ <location filename="../programs/mythfrontend/mythfrontend.cpp"
line="1670"/>
+ <source>Scroll image right</source>
+ <translation>Przesuń w prawo</translation>
+ </message>
+ <message>
+- <location filename="../programs/mythfrontend/mythfrontend.cpp"
line="1673"/>
++ <location filename="../programs/mythfrontend/mythfrontend.cpp"
line="1672"/>
+ <source>Scroll image down</source>
+ <translation>Przesuń w dół</translation>
+ </message>
+ <message>
+- <location filename="../programs/mythfrontend/mythfrontend.cpp"
line="1675"/>
++ <location filename="../programs/mythfrontend/mythfrontend.cpp"
line="1674"/>
+ <source>Recenter image</source>
+ <translation>Centruj</translation>
+ </message>
+ <message>
+- <location filename="../programs/mythfrontend/mythfrontend.cpp"
line="1677"/>
++ <location filename="../programs/mythfrontend/mythfrontend.cpp"
line="1676"/>
+ <source>Set or clear cover image</source>
+ <translation>Ustaw lub skasuj okładkę</translation>
+ </message>
+ <message>
+- <location filename="../programs/mythfrontend/mythfrontend.cpp"
line="1738"/>
+ <source>MythDVD media</source>
+- <translation>DVD Media</translation>
++ <translation type="vanished">DVD Media</translation>
+ </message>
+ <message>
+- <location filename="../programs/mythfrontend/mythfrontend.cpp"
line="1741"/>
++ <location filename="../programs/mythfrontend/mythfrontend.cpp"
line="1739"/>
+ <source>MythImage Media Handler 1/2</source>
+ <translation>Obsługa Mediów 1/2</translation>
+ </message>
+ <message>
+- <location filename="../programs/mythfrontend/mythfrontend.cpp"
line="1748"/>
++ <location filename="../programs/mythfrontend/mythfrontend.cpp"
line="1746"/>
+ <source>MythImage Media Handler 2/2</source>
+ <translation>Obsługa Mediów 2/2</translation>
+ </message>
+@@ -13379,32 +13377,32 @@ Proszę Czekać...</translation>
+ <translation type="obsolete">Galeria Video</translation>
+ </message>
+ <message>
+- <location filename="../programs/mythfrontend/mythfrontend.cpp"
line="1605"/>
++ <location filename="../programs/mythfrontend/mythfrontend.cpp"
line="1604"/>
+ <source>Play an Optical Disc</source>
+ <translation>Dyski Optyczne</translation>
+ </message>
+ <message>
+- <location filename="../programs/mythfrontend/mythfrontend.cpp"
line="1610"/>
++ <location filename="../programs/mythfrontend/mythfrontend.cpp"
line="1609"/>
+ <source>Image Gallery</source>
+ <translation>Zdjęcia</translation>
+ </message>
+ <message>
+- <location filename="../programs/mythfrontend/mythfrontend.cpp"
line="1613"/>
++ <location filename="../programs/mythfrontend/mythfrontend.cpp"
line="1612"/>
+ <source>Toggle Show Widget Borders</source>
+ <translation>Wyświetlanie brzegów dla Widget</translation>
+ </message>
+ <message>
+- <location filename="../programs/mythfrontend/mythfrontend.cpp"
line="1615"/>
++ <location filename="../programs/mythfrontend/mythfrontend.cpp"
line="1614"/>
+ <source>Toggle Show Widget Names</source>
+ <translation>Wyświetlanie Nazw dla Widget</translation>
+ </message>
+ <message>
+- <location filename="../programs/mythfrontend/mythfrontend.cpp"
line="1617"/>
++ <location filename="../programs/mythfrontend/mythfrontend.cpp"
line="1616"/>
+ <source>Reset All Keys</source>
+ <translation>Wyzeruj wszystkie skojarzenia</translation>
+ </message>
+ <message>
+- <location filename="../programs/mythfrontend/mythfrontend.cpp"
line="1618"/>
++ <location filename="../programs/mythfrontend/mythfrontend.cpp"
line="1617"/>
+ <source>Reset all keys to defaults</source>
+ <translation>Wróc do ustawień domyślnych</translation>
+ </message>
+@@ -13413,7 +13411,7 @@ Proszę Czekać...</translation>
+ <translation type="obsolete">Zrzut z ekranu</translation>
+ </message>
+ <message>
+- <location filename="../programs/mythfrontend/mythfrontend.cpp"
line="1735"/>
++ <location filename="../programs/mythfrontend/mythfrontend.cpp"
line="1734"/>
+ <source>MythTV's native media player.</source>
+ <translation>Wbudowany odtwarzacz MythTV.</translation>
+ </message>
+@@ -13471,12 +13469,12 @@ Proszę Czekać...</translation>
+ <translation type="obsolete">Galeria filmów w
MythVideo</translation>
+ </message>
+ <message>
+- <location filename="../programs/mythfrontend/mythfrontend.cpp"
line="1631"/>
++ <location filename="../programs/mythfrontend/mythfrontend.cpp"
line="1630"/>
+ <source>Play selected item in alternate player</source>
+ <translation>Odtwarzaj alternatywnym odtwarzaczu</translation>
+ </message>
+ <message>
+- <location filename="../programs/mythfrontend/mythfrontend.cpp"
line="1633"/>
++ <location filename="../programs/mythfrontend/mythfrontend.cpp"
line="1632"/>
+ <source>Open video filter dialog</source>
+ <translation>Filtr wyboru filmów</translation>
+ </message>
+@@ -13485,27 +13483,27 @@ Proszę Czekać...</translation>
+ <translation type="vanished">Przeglądanie w przeglądarce fimów
video</translation>
+ </message>
+ <message>
+- <location filename="../programs/mythfrontend/mythfrontend.cpp"
line="1635"/>
++ <location filename="../programs/mythfrontend/mythfrontend.cpp"
line="1634"/>
+ <source>Increase Parental Level</source>
+ <translation>Podnieś poziom kontroli rodzicielskiej</translation>
+ </message>
+ <message>
+- <location filename="../programs/mythfrontend/mythfrontend.cpp"
line="1637"/>
++ <location filename="../programs/mythfrontend/mythfrontend.cpp"
line="1636"/>
+ <source>Decrease Parental Level</source>
+ <translation>Obniż poziom kontroli rodzicielskiej</translation>
+ </message>
+ <message>
+- <location filename="../programs/mythfrontend/mythfrontend.cpp"
line="1639"/>
++ <location filename="../programs/mythfrontend/mythfrontend.cpp"
line="1638"/>
+ <source>Show Incremental Search Dialog</source>
+ <translation>Pokaż okienko wyszukiwania</translation>
+ </message>
+ <message>
+- <location filename="../programs/mythfrontend/mythfrontend.cpp"
line="1641"/>
++ <location filename="../programs/mythfrontend/mythfrontend.cpp"
line="1640"/>
+ <source>Download metadata for current item</source>
+ <translation>Pobierz metadane</translation>
+ </message>
+ <message>
+- <location filename="../programs/mythfrontend/mythfrontend.cpp"
line="1643"/>
++ <location filename="../programs/mythfrontend/mythfrontend.cpp"
line="1642"/>
+ <source>Display Item Detail Popup</source>
+ <translation>Pokaż szczegóły</translation>
+ </message>
+@@ -13522,7 +13520,7 @@ Proszę Czekać...</translation>
+ <translation type="obsolete">Odtwarzaj DVD</translation>
+ </message>
+ <message>
+- <location filename="../programs/mythfrontend/mythfrontend.cpp"
line="1737"/>
++ <location filename="../programs/mythfrontend/mythfrontend.cpp"
line="1736"/>
+ <source>MythDVD DVD Media Handler</source>
+ <translation>Autoobsługa mediów</translation>
+ </message>
+@@ -13642,32 +13640,32 @@ Proszę Czekać...</translation>
+ <translation>Dostępne tryby:</translation>
+ </message>
+ <message>
+- <location filename="../libs/libmythui/mythdisplay.cpp"
line="888"/>
++ <location filename="../libs/libmythui/mythdisplay.cpp"
line="879"/>
+ <source>Video mode override</source>
+ <translation>Nadpisz tryb</translation>
+ </message>
+ <message>
+- <location filename="../libs/libmythui/mythdisplay.cpp"
line="901"/>
++ <location filename="../libs/libmythui/mythdisplay.cpp"
line="892"/>
+ <source>Override</source>
+ <translation>Nadpisanie</translation>
+ </message>
+ <message>
+- <location filename="../libs/libmythui/mythdisplay.cpp"
line="911"/>
++ <location filename="../libs/libmythui/mythdisplay.cpp"
line="902"/>
+ <source>Multiscreen estimate</source>
+ <translation>Estymacja multi-screen</translation>
+ </message>
+ <message>
+- <location filename="../libs/libmythui/mythdisplay.cpp"
line="926"/>
++ <location filename="../libs/libmythui/mythdisplay.cpp"
line="917"/>
+ <source>Square pixels</source>
+ <translation>Square pixels</translation>
+ </message>
+ <message>
+- <location filename="../libs/libmythui/mythdisplay.cpp"
line="934"/>
++ <location filename="../libs/libmythui/mythdisplay.cpp"
line="925"/>
+ <source>Detected</source>
+ <translation>Wykryty</translation>
+ </message>
+ <message>
+- <location filename="../libs/libmythui/mythdisplay.cpp"
line="939"/>
++ <location filename="../libs/libmythui/mythdisplay.cpp"
line="930"/>
+ <source>Guessed</source>
+ <translation>Estymowany</translation>
+ </message>
+@@ -14617,8 +14615,9 @@ gałąź: %2
+ <context>
+ <name>MythUDPListener</name>
+ <message>
++ <location filename="../libs/libmythui/mythudplistener.cpp"
line="158"/>
+ <source>UDP Listener</source>
+- <translation type="vanished">UDP Listener</translation>
++ <translation>UDP Listener</translation>
+ </message>
+ </context>
+ <context>
+@@ -15103,7 +15102,7 @@ gałąź: %2
+ <context>
+ <name>NetworkControl</name>
+ <message>
+- <location filename="../programs/mythfrontend/networkcontrol.cpp"
line="1602"/>
++ <location filename="../programs/mythfrontend/networkcontrol.cpp"
line="1556"/>
+ <source>Network Control</source>
+ <translation>Zdalne Sterowanie</translation>
+ </message>
+@@ -20838,17 +20837,17 @@ Most DVB-C transports transmit at 6.9 or 6.875 million symbols
per second.</sour
+ <message>
+ <location filename="../libs/libmythtv/channelinfo.cpp"
line="510"/>
+ <source>Always Visible</source>
+- <translation type="unfinished"></translation>
++ <translation type="unfinished">Zawsze
Widoczny</translation>
+ </message>
+ <message>
+ <location filename="../libs/libmythtv/channelinfo.cpp"
line="514"/>
+ <source>Not Visible</source>
+- <translation type="unfinished"></translation>
++ <translation type="unfinished">Niewidoczny</translation>
+ </message>
+ <message>
+ <location filename="../libs/libmythtv/channelinfo.cpp"
line="516"/>
+ <source>Never Visible</source>
+- <translation type="unfinished"></translation>
++ <translation type="unfinished">Zawsze
Niewidoczny</translation>
+ </message>
+ <message>
+ <location filename="../programs/mythbackend/upnpcdstv.cpp"
line="201"/>
+@@ -21172,7 +21171,7 @@ Most DVB-C transports transmit at 6.9 or 6.875 million symbols
per second.</sour
+ <translation type="obsolete">Informacje</translation>
+ </message>
+ <message>
+- <location filename="../programs/mythbackend/upnpcdsmusic.cpp"
line="66"/>
++ <location filename="../programs/mythbackend/upnpcdsmusic.cpp"
line="64"/>
+ <source>Music</source>
+ <translation type="unfinished">Narzędzia dla
Muzyki</translation>
+ </message>
+@@ -21266,7 +21265,7 @@ Most DVB-C transports transmit at 6.9 or 6.875 million symbols
per second.</sour
+ <message>
+ <location filename="../libs/libmythtv/videosource.cpp"
line="1610"/>
+ <source>Tuner</source>
+- <translation type="unfinished"></translation>
++ <translation type="unfinished">Tuner</translation>
+ </message>
+ <message>
+ <location filename="../libs/libmythtv/videosource.cpp"
line="2777"/>
+@@ -22007,7 +22006,7 @@ Your grabber does not provide channel numbers, so you have to set
them manually.
+ <message>
+ <location filename="../libs/libmythtv/videosource.cpp"
line="1687"/>
+ <source>Available devices</source>
+- <translation type="unfinished"></translation>
++ <translation type="unfinished">Dostępne
urządzenia</translation>
+ </message>
+ <message>
+ <location filename="../libs/libmythtv/videosource.cpp"
line="1789"/>
+@@ -22122,7 +22121,7 @@ Your grabber does not provide channel numbers, so you have to set
them manually.
+ <location filename="../libs/libmythtv/videosource.cpp"
line="1720"/>
+ <location filename="../libs/libmythtv/videosource.cpp"
line="1853"/>
+ <source>Warning: already in use</source>
+- <translation type="unfinished"></translation>
++ <translation type="unfinished">Uwaga: już jest w
użyciu</translation>
+ </message>
+ <message>
+ <location filename="../libs/libmythtv/videosource.cpp"
line="2897"/>
+@@ -22238,12 +22237,12 @@ Your grabber does not provide channel numbers, so you have to
set them manually.
+ <message>
+ <location filename="../libs/libmythtv/videoouttypes.h"
line="174"/>
+ <source>Auto 3D</source>
+- <translation type="unfinished"></translation>
++ <translation type="unfinished">3D:
Automatyczne</translation>
+ </message>
+ <message>
+ <location filename="../libs/libmythtv/videoouttypes.h"
line="175"/>
+ <source>Ignore 3D</source>
+- <translation type="unfinished"></translation>
++ <translation type="unfinished">Ingnoruj 3D</translation>
+ </message>
+ <message>
+ <location filename="../libs/libmythtv/videoouttypes.h"
line="205"/>
+@@ -23136,7 +23135,7 @@ Your grabber does not provide channel numbers, so you have to set
them manually.
+ <message>
+ <location filename="../libs/libmythbase/programinfo.cpp"
line="3227"/>
+ <source>Preview Generation</source>
+- <translation type="unfinished"></translation>
++ <translation type="unfinished">Generuję
preview</translation>
+ </message>
+ <message>
+ <location filename="../libs/libmythbase/programinfo.cpp"
line="3229"/>
+@@ -23691,7 +23690,7 @@ Your grabber does not provide channel numbers, so you have to set
them manually.
+ <message>
+ <location filename="../libs/libmythtv/videosource.cpp"
line="1580"/>
+ <source>IP Address</source>
+- <translation type="unfinished"></translation>
++ <translation type="unfinished">Adres IP</translation>
+ </message>
+ <message numerus="yes">
+ <location filename="../programs/mythbackend/httpstatus.cpp"
line="938"/>
+@@ -24362,13 +24361,13 @@
http://localhost:6544/setupwizard</source>
+ <translation type="unfinished"></translation>
+ </message>
+ <message>
+- <location filename="../libs/libmyth/audio/audiooutputalsa.cpp"
line="472"/>
++ <location filename="../libs/libmyth/audio/audiooutputalsa.cpp"
line="474"/>
+ <location filename="../libs/libmyth/audio/audiooutputopensles.cpp"
line="185"/>
+ <source>Unknown sample format: %1</source>
+ <translation type="unfinished"></translation>
+ </message>
+ <message>
+- <location filename="../libs/libmyth/audio/audiooutputalsa.cpp"
line="673"/>
++ <location filename="../libs/libmyth/audio/audiooutputalsa.cpp"
line="675"/>
+ <source>SetParameters() called with handle == nullptr!</source>
+ <translation type="unfinished"></translation>
+ </message>
+@@ -24723,27 +24722,22 @@
http://localhost:6544/setupwizard</source>
+ <translation type="unfinished">Error: stream handler
died</translation>
+ </message>
+ <message>
+- <location filename="../programs/mythbackend/upnpcdsmusic.cpp"
line="112"/>
++ <location filename="../programs/mythbackend/upnpcdsmusic.cpp"
line="109"/>
+ <source>All Tracks</source>
+ <translation type="unfinished"></translation>
+ </message>
+ <message>
+- <location filename="../programs/mythbackend/upnpcdsmusic.cpp"
line="126"/>
+- <source>Playlist</source>
+- <translation type="unfinished"></translation>
+- </message>
+- <message>
+- <location filename="../programs/mythbackend/upnpcdsmusic.cpp"
line="140"/>
++ <location filename="../programs/mythbackend/upnpcdsmusic.cpp"
line="123"/>
+ <source>Artist</source>
+ <translation type="unfinished">Artysta</translation>
+ </message>
+ <message>
+- <location filename="../programs/mythbackend/upnpcdsmusic.cpp"
line="154"/>
++ <location filename="../programs/mythbackend/upnpcdsmusic.cpp"
line="137"/>
+ <source>Album</source>
+ <translation type="unfinished"></translation>
+ </message>
+ <message>
+- <location filename="../programs/mythbackend/upnpcdsmusic.cpp"
line="168"/>
++ <location filename="../programs/mythbackend/upnpcdsmusic.cpp"
line="151"/>
+ <location filename="../programs/mythbackend/upnpcdstv.cpp"
line="231"/>
+ <location filename="../programs/mythbackend/upnpcdsvideo.cpp"
line="120"/>
+ <source>Genre</source>
+@@ -24767,7 +24761,7 @@
http://localhost:6544/setupwizard</source>
+ <message>
+ <location filename="../libs/libmythtv/channelsettings.cpp"
line="373"/>
+ <source>Transport ID</source>
+- <translation type="unfinished"></translation>
++ <translation type="unfinished">ID
Transportu</translation>
+ </message>
+ <message>
+ <location filename="../libs/libmythtv/channelsettings.cpp"
line="375"/>
+@@ -32333,7 +32327,7 @@ Select a Current Recording</source>
+ <message>
+ <location filename="../themes/themestrings.h"
line="752"/>
+ <source>Damaged</source>
+- <translation type="unfinished"></translation>
++ <translation type="unfinished">Uszkodzone</translation>
+ </message>
+ <message>
+ <location filename="../themes/themestrings.h"
line="754"/>
+@@ -33988,7 +33982,7 @@ Select a Current Recording</source>
+ <message>
+ <location filename="../themes/themestrings.h"
line="1567"/>
+ <source>Restore Data</source>
+- <translation type="unfinished"></translation>
++ <translation type="unfinished">Odtwórz</translation>
+ </message>
+ <message>
+ <location filename="../themes/themestrings.h"
line="1576"/>
+
+From 07733f232b5ad3d6947aacc68db2afb4c0ddad09 Mon Sep 17 00:00:00 2001
+From: Nick Morrott <knowledgejunkie(a)gmail.com>
+Date: Tue, 20 Feb 2024 11:01:08 +0000
+Subject: [PATCH 08/21] Translations: Update mythfrontend translation binary
+ files
+
+---
+ mythtv/i18n/mythfrontend_pl.qm | Bin 597954 -> 598803 bytes
+ 1 file changed, 0 insertions(+), 0 deletions(-)
+
+diff --git a/mythtv/i18n/mythfrontend_pl.qm b/mythtv/i18n/mythfrontend_pl.qm
+index 6ea4ccd8bc820fddf499cca8e3af998c7d58df16..b4779d7eaaea3fbd75ee59fa28a0f7a717811722
100644
+GIT binary patch
+delta 31341
+zcmXV&cR)`67st=N_cQJ-Wj_&0T4qHhdxaE=LK-rvZzQ3z$75uaWL!lynIU^`m90?O
+zLL?bkky*dv_WSGgJkj&q@%fzdKJRmGm(E+Mm#vnY)tmzWHb6#SMY;kV6urXU#=w3V
+z0L6Dthprf|(~nQacV58i;s2pQAZ7Vzq!Vi+F95&48=%!WU_KQ9_Q*l)0UT=}ZzJmh
+z8!P}g;rqc4kobOx0^p4Ahg?SfdtVOF7T^2MN8)?mBLFV=eyBaNE*P?*BLLd{`$6%F
+zO7qq&0s6EA+V7Y~*^X6l+!>@Fi2ZMBq}}rX`uYIN>#uqVy71s=fC1Y9F02O_*aU>&
+zRRBI=Kt~&D<Xi?AbOpFYP2_W+6FUM7#sjo;(kNv$&`2k|(a7rK?++OUv|ti|e*}QZ
+zAb??qfPdYi<_J2|xM~2yGk~@H0}!4Gg8vkNl3ZY;1Jz1F=P{%MNb$FU`PBny`vBwz
+z<OE>;b%E5p3B1QBAhY6uMJPZPtphgo43LCv08{LMtl0)^X{AQFzL7dy)QP^5Iz==y
+zxa0=pSTB%kzEU@d_9IUKIZc36{?JH|FW1N<uPSB^1Cm349>UxIkEeQRWVw2ca%?Ri
+zPw+yIz|Se%5A4f0Ag}Q(7pDVxV*_;LHPv1+Yck3n$j1l3K6e80-5EI=xeaJNE952o
+zHDh(Wr1S6{0~Gu~_T3JY<Nzx_0JN?@(ELcG3QQRUw2=hThzyOaLI&y_1N8n1Bwhid
+zml`?wrRLzbHtvlpU^__TE^6c^w~=Xh`wk<^fHxVWRwr#clxG7Sg6C!aNh6(LT*aq&
+zUifoXA6Ed9+j(e|TN?o#H63`HMyj6Z^gI-3R2+!o@mrA6^rjk#ho43|alb}px>F<X
+z^+2O+;SMx91o(jSK&M^?K6p0J#oIyl>kM?sevo3lfUd~`DQ>Ao9`hAw3jUvs=|I=_
+z1il<E)}}B}>(FL;%Pl~+0`PT{fbLiY;><FQwA#ihb{<j1UORy98396ig+?;)n?_nF
+z0o}U|czO}g1I{4M|D%x_U8!Q%M;iHg6*qGzh_Syk(k6Iw@V%bSd#AnN`B#Bv;=v!l
+zlel&Xqs9V_{3+g{9Nal?@q>TQ1F*%5gXG^%Xp~z$0j9&X_Q?&Hodb}zO@KKN5WDr(
+z$R^YShHD(U4+M6o5?GBO;C=8wO|AYh1Z1Tgc;;-7=S~8in*z|Q6UZ~8L7HIz^8DXG
+ze_jG5J{Y(Z14`*p5S>e)+Vh)0s?`Of*1LfYumR(k!@!<cg7JoM+=JOr!*4C{d;dXA
+z>#rbPNK-d4+t%BlZbUu^x`$AAei5+84WaI18vv;`=z92ou=X*SNEyIC#e+%85uh8|
+ztL4mPU=-BPn*^-c9WY&d4#coXXpmY8<k4DaaI65tGlkILcM}kgNYGH4f-x}$8W~yu
+ze~Gj_2Qcy{G}>1LQdA#kRFn^_AXe3Lo&L%(u$Wy4(wQG%DYgV@UIAEkx(0No8CX@b
+z0<q5mjXXRKte&0*W?2c=M;w8hgh5lEb3kloLer7IfQ`$9X20G7&ohD+9o_)#7FWgP
+zwV`FtA^`JJjpFc58rl6AXnE)wG$2lf&}#k};0=y|-Q=mb^+tlj1iY4S8>#lPnV5E8
+z^^$cSEuz3V$p^T@K5%}4*UD=dxL6JWzN!_t48(QRcP_MJyFobr7urpX0n)uDv^&@r
+z*q#s2{;4CdHv=`w?M|!vWu1O&8|eJe41|emp^Ix7NNp{k+ssA44NRfO+%6z|qTp)u
+z4Wr@-aNV{TnE7q!X^$6A&4pekJ%Ls1fZkDaf&RD(ZpoP-l~{n=c3cpt{h^PiHPG*$
+zq0gyG5IqAl((*)&Y?3eZIa>i^NvF%;E*64N?GLzz72paA1^4*rz!FD-`=PnO5_W<|
+z+azFHe}G5uC;+pU8tI_-;1Q4E`h)=z1DJ3N`g&%AIEO*s!5uIM#X#RUJpV~Gpl?|a
+z&@tcD{fe2sTo3(<F;oWGKz}k5*rOKEKcXkFS7)LBd`uq2cc6b3?lP0<RUA>Mk(IR7
+zD4UssXYvIQM+^tgGx#|sd%!cp9@wYG;1%JIp|=wZaQg*N_E{qn4Pk(H96&b*7~q=;
+zYCi)D)8);;JLfELHWPfdr-L+x!XT@~Ah$GC7a5qDM#jOQYhQ6;b$~%PFM;r6xJDXz
+zS3PfF)@Ird7?O~LLgBqeW?CD3+hY72@Bw_276AA22j7bn^NAn$e$T={)?2M^Xr{MV
+z3Vt{6z-MAgK=R~h@UIb%?=!)_#RXtix4}OQ<Jim%;6E1k+Dv@Eq5{apq2Rv@FVruN
+zT!pc2GIBTYZ7sn67=GQ3k>Fop2~w&80k~Ib%Nh`1X#G#%XcS{DHR`F+5A6lDD6C?)
+zfGW;0(#V>=(a0|pK!879F`JeU*t-|d)?Fd+*Le`*m`1u#*2r3pfno7$K#bq2k(U<0
+zup`^>gxYK5$-7|K?_D4!Wc{Navq3Thr8r}%I}XE7_yhkgLvZ3NjM6p`l2imTb%4;J
+z7_+igK<J6qz`_o~=yD%SQsZIF;8=i+?Jy<~f6vbX#)K@u1N>CQ;vkK3#FGE>284U3
+zfpFYUqf{~+!XpM_^zJ?z!Y_D&+;t^{zr!WI-xDGl*9CcO8APOvLcww$#wBC6?|uX(
+z48XNjvKA)%TRYuf!-S+1pwrJowBbwO?Lr~iYB#X>scL048*#!x)z-*NtkX+%GcwbE
+zTndZr2+-cgAubWaQoBYF_h$)66F)(Gq5*E?$*^RE9mpX&VafEBz|t1MlKppq>Sk+X
+z7xWrs(-W|CMlR+>Ggux~0KDsISg``nI>`xE8b<>+e+O#cMBqnT<D!;;(UqV+PJsZ@
+zYay(ff$Og1F048i1nijrNiQQo+PE85HyZ=Y!vj_)6M$)f8mZqfSiObfI(-3ah7Jar
+z$Y9OoQ6Lr9(8zZWhBa450Z(hBb~QHZ@gV><d)Ee9pTU*^7>4)x!`AyfK{l{}9l<IH
+zgMPz~S0{j7_J!S}n}X1^Go;l=rSd2W(yrnL&F!adGS+!){s#NYQ-R*Kg9AsV0atIp
+z!L~&}`+R_d=Y4_xnFEKOB%%6h07rf{2QGNPQTvU!4Hm-57PEmzUV)RD^?~guP%Djf
+zrq!;%xvh2}rgVgJFNR{!&#vO~0M)*_PG2Ix<=<H#n+<>~C{4w&H#O48zi>^a!1~^S
+zYacN`x4ooMnro_&+IFm>i)R(1o>g&g7ma+#295HBsc`*$ZIBi+xOr?MK;$sE`3B!F
+zNP?W!CSXWL9f8~8YhaCDs5#Z^SHJxWZ;)3y+^t!Pp{uX@vAUUl%yPJIZVB{119;F7
+zMSa*?c>EtKM&t2StnL6$mZ54K6$wuTyy5T;p1NUvb6fyVy)fR`Y=MF_EI&q0gMt%o
+zAkD3WXQQn^qMzY;bx)v53wVC)C+fa!Q1}s5XUn-7$>$t+dDIT{r0HuYvR5&(Y=)w|
+zQjpv0pg7hTq@#nO_!nNB0RbA>N*%n}c@g;LJ@Doy!GBMK5??&&CkapzYX;J#rBHI_
+zFwpIWP?C?CV6+PFk}x%$m#dgF1KwL62EL*Ld>Dl4vF*u!!~n7EFnrkS1MGzgAI{7N
+zdE`j=9NrqF6T$E$&l!Ze_El^(AIfs`fUL`hZ+&nd>qo<P5hdZTv+zB^6G)pi@T1Wf
+zAkMAf*MuX$*4n@yOB7GWGvIH64~VlrX(T=uG}81zNa_Q8dsB5;O*4I?Zh|aEgWRN{
+zATQQ~v}=kW=VgOXJ4!I{nFGYIzF=@87v)fqP-C4Lhz+j_wf4S875!JJBOC=1G*77W
+zz6VG}sY2ZqX+Zkr3-z*#LF#-<Bk8(LBU{l;sP_SP+O~^=Y5r1RW)Fo1HI9SYvR1QE
+z#wJ4Jz6UWp*a?kih61R21dAH0FsuX!mN#*~l$;Q(?D3eQhY8lUr$OpeCN%5)2>9y{
+zLbISykYfa)McYCkE7uElHYm~@MhkY$Ff3Ki671gyAl<c7kJmEu_^?rE^BV7Um#u<h
+z))Wx<O~GkAZbKuhDt3Ne#Xi-Aw&9k*`??ElZ|?`uEkYw7Q!Kco<30Z?sOGiJmGeUT
+z6{vBFx2kTn&AbEbg|5O%l-g~CZb4hIr1&EA=!SxJ!Aik(bZwLtw*}W3CsFHs5?udc
+zA?>(Z=s7kM=+TQp&+#ZA2m5OzJ@EbO4w&jn)Z?|yOq;wH2A+Kh!r7^U_qX~WxC|D2
+z-k}n4t)+gfZKhA(D)`M*fcG{K0v_TaC*2eRJI@B`&P*Zj94e!(_Eo$&RHIydWEE?;
+z3xPRUasSvT3?Ekmq_Y0P@M%^c>dy$n|D*$t8!3zg6v>bF2_ySD1M8V21UL8u@?=p6
+zzP%jay^9dKCI-}mI*NW&Z6UO5BM1jltC)RA2p5fk`}hfCBkKdPTq#7vw+G>|i4d_I
+zWAn!_VO-o>AkC)<<1+F<8tx*D`)L5Y(+nZ<I*KS)DvS?K2VrtuVL~phz|IqesGgBP
+z4fa*B=~0b*Q4Jv`!3p}(MUREaJEMTV$`z)JumqCaMwoIZ8~Dv~VX8N3@ZY_KsiCnz
+zYp)Zg9*zTY^}aC8GabZMvxJ#ngFxIgN0_B6!7No<9bVVm;*79p$6=7R{1g_Q-i~5&
+zk+8VoE07ME3yX8GygZ$wZmMgeADAwz=%oUwvqxB24NZ|+;{+8GH|hUGP=BTZi8B&b
+z9mg+eGge4yh}*4w6CvdTmYQ)68hKH;u)#DNAmx;>p`A5|1HFX}eX)2sC=00(r-4|!
+z7E%x7f;i4jqdfknkaq4l@E2u5+O-g9Am!T#X;1!ukmgv$(=&v$pKI}pg4N+Vo93_o
+z3Wu&(g6J0|99`lHV$>~-bds)$+usXE4@l@|bXNE4%=ELn2^SvM!5ZpO6`$W1E>=<y
+z+^vO7Yb@Ff)(M%RslaES5UvcxYgWIeaN}$!NT*zcTO}BNShA4geF|7frf}Qj8%T-e
+z!tK|2AckfNcN&KR>vdDO+X&<BkWa$hTvT%Z4H52s6hW+LEZnUq#jI{(s!tK_smnlg
+z8mN&vJg8!iLmK7C$HM&?sUU_sYovRuH1cY;!u{8NKpL9~1yeDXY~@11>5Cwy*B74o
+z4Z=Egu<$G$tBt}~;koN35LQ?VFT7ET#aan3iYq{DzC<Y8yZ~gqakTK#16_c1&ce$q
+z^uDIX39s(r;_vuecs&8#4uicy@dhhQd{cxsPv?OY=qr@8#|7)2sgc!hA-v=0Q3Q7q
+z-q&{o{?SNyUx1hR(;49d<_a3VUnrG*LG+$1d~(8{D_HToF9bN~D0~jZGKU13t6}xb
+z^)rOO?G^z&-&d&kcOIjA36(!EQq-s?RQ~D#VtJ898gWj9;vT@BHxi{&mLOZ67KvaB
+z(%J_i9iIr|+Yur&jRC3udXc%D1O8>P$j3Va4{#Ti$tyr=d|5Ow`3Q1T6Vbp4CFCUo
+z(XcPB7?swq(cz<$Xk2s{#E1y7MyV69x3|Sw>sNu~cSfxB6Zg=H4Pu=@T)sbdi@Hc}
+zU_YJ3dUMb_JorNOs;|@g8;DJN;js=|AvWC=2SUdkqFuFo;4yPWdwLysadXk(PYAH4
+z&BfLYa5**pE4C390lCvhY_lQ}$dOl~qjLtxR^g)KP862M7K%;=FF}l%Ejq`~2l~)X
+zbpBHSa5hJD`FIqh<rl<ug<nA$7$~;G!y8LhG!WZA#Q^AcO6*wY67W`a#ZG|@Fm>z^
+zJJ$|Dp)g78JR1*a_-e7sv|x}1{Lsi~JF!cAE0B`Q#V*$$17DdSc7KEhlWT?8!#xHI
+z@l3HtIbILtvDnjXHqdh?RWDN$eWd6<co0zEAknMwS0ML9ae$XUh?6SC0b{m-^m3p$
+z0P8}Yy;k(zbPnW2Cq?gTGtpVi5q-QAU`GPQL5qwr5;=%NJmvx88^j@{cQJ_E7Kb{Z
+z+hDX`^lO1fz380i-~I?lF9wSN&%U7(;-!)5rGr&3+T0TZFK2+Xd9xUF))T~AQ^b+6
+zCRlESilgwbCI4bE^z1>9-g=3l#fO3Kek6u|!4I6aNBpmbCrIV8IQpdl9(ZGoJR~3K
+z3gqrwjXbozI41Hdu&0h<c+^pl?YfKO%srujJZ6(PKF1S;)LG*ASHU1W>M2efX9lcA
+z6II_pXFBST7?WTJ)QO5Qr!o7z93@VAf>~~2q`JR>jcBt;z2CsB`D9s~@dQQKlQZIM
+zL);)Ky~Md@rNHx@#JPKC1ITXT{MaQxCvQ;A8=C9w#RXsLqP-KQk$!g-m-NfSTzFZd
+z+`~XzQh+KTx=>6oMUUnCEph42qrj>?5SQkRMQ`wen3!k<0<+Ob+jY^%{qKm&biaW$
+z@fMeP<l(jHFD^rmjG5+X<oy?jD`(=G)NjfZSKh%Fts07}hS-Aes+zdUuNXJ(QZeZ*
+z78zRt#pHG<ol4!r<X*LaK5i~151S2SY@oO%4EKA&CUH$+K1kl@#FWuJ@kG9eYp0h1
+zbg2~AeNur%Cy5)zVa7S!Qrz$qr9{Gaar4$EAbo2pZkbO&&!#UIcO~Lxw0tA(Ho^!t
+zIab_#c@VH~Z^g6;D$w}}V%qyefJJuV9=wk7$ZO)B4xd5XxlP<N83WhOKjQw~J<!EF
+zE*@Y5L5}nh4;j<}d5j_+?pcaL=d*Y?#TrOt2l4QBV-Q-1;;{jzfa{{g6ZYYHfQ1Ld
+z6R84*o@V071}-2C1MyVWB#;cwh^Or?fi$y`cwr7ItnfkN#Xb4J+%Jol9MjPS>mX*V
+zC<kHnR59aI9?-82Vx}jmn)~m?%(riWgQ0jiZa(lyQR3y4ufXYE@$$NV>>*w;#r+iV
+zNW5~b*C$k;AH}Qhtnr@uiq~sl@_W!ryxtjOWyNdpdf#l2jTVX5qkVwCUn$<`)CH)a
+zp?G6vHi&aY@kSo{8vVbhdNW(SkC^9zyTR?9n76tQK<Cb4e#kVmx0;C$IuwBT#YKED
+z6swRG+2VtfSpGSci;vsc0paE1lO}h7-b@h-CZ~e5v_gDQaTw$gDPmDKbn#!$5{vTA
+zp#@wh7T0tIwyUxD<^m>yBh|!`X4e2(o)b%YVs)aAb`wip-2`dBB)<KF<)=fW_`X{K
+zN~ALJ{p?O4t;rEf*XM%pdcFAZF}mNL)x<9hZ@g2a__Z9JP~sq#O~&|9^jZ8i9iv(=
+z5Apl&Y-~9Yv3wVb@-EimPqUgJ-MfXX1=9ToNG#bN1S0F8m-65_zQDcoFa)VXzCoIR
+z^e6&}J&Z@6ko7@&93%e9p8(<oLHu1EE7C;=#oxbsqE9?l{Bs*M-<2=oU!zhGHZ~J0
+z^Q)mOFjXtfb^5|3l33{n!qRUN6*E9MbXnrT7-gpqm*iy<5RXlgoc0h%9}|sqoTEl&
+z{O{*KaqG^O3?@1NHykM$e8mhp+f*a*sUaEG$Oow3Q!*UGP>k70)h1mADY%nH()+i@
+zzBIJz2h3=U_5)7(N=DA8V{b)CM(AJ3_HI)3_H%*Hc_r0&YzA<|R-+txLaG&yk;wG1
+zRA)vcFpJ~rv&Opc>NTXgdBz}DFOhVDH`Y=&BwZOUpf`gx$}NMWdhZW`Y`tEpZ<+|S
+z)>Fwe=q~U>UnJ9!kw9zSlN$EIG`P?kiGIg|*HWWeXpu*>lFY5~YtDgW{vQ@qH+!kW
+zElh+V>J$recVo#W(E;eRyBc{&yky&;3-CJ~CEI5Tz^X@5Q+r&rlbcB`qOej3yCSui
+zp9(DVrqm)ItCoY~rB)rjfpo1>eP*FE`0s$!dOoTL)PI#0I=$5?$t67oX!7eSt}&9@
+zue}cJ`wOZ4(Y4r+S}%2|V*|Wwh1B5$uGF6=q>krM^p^%pU31)lx(<`NS^9u<x>)Mb
+zDH{09KawkxfTrb3uG27s*?f_D4afi2V~Er%Cm2OuspNJq6q{k!BzHF~$m#QmlKbTO
+zAZ<#O-1mn7y)jtw2*D2^D>QOpsnj<Hb@iwkQs1%+jB#6~{%L5*?1+;3A1ebPLnnEz
+z>IS6cCdsQtFwj3&q=BPxZ}#<-2JXeZdtjwBsBs~P#{_BcZS3joY%dMT?uvd`7s>a4
+ziCWvTmj2KPX_&1O5U*@$*jI0W*Sn-)zp%;STvo+pBcz}+=nWXGmWFS-4{}0#X~c*i
+z5PF12p*~o$n|7B%Gw|-UdnkpQoC9H2kTjM~!5&6{6tQt9kfICHxW%ZceS@XQGHjNR
+z!BUiqGj@J9NKsQ;Vm!ZkPl~#ars3vuQcRjLu&6Q8q&Xr$gHVmqwQ3q^jnNwAx*w!T
+z7qWm1wvr~(S0Ggjm!=pe02@4Bno&apc}~1Ev$_fJX@%09QK+hZJ(uRXGzWI+s5I9V
+z`=xd3NegmUVi<lWEpBwU8djCwQd}vjxy7qg7b{z3m9*l{SD^ZQHO$J>bZNM>;kOk?
+z0r#YhzL-_|ZIQO_MW--&qncx7V=!*2l-^-Ju-!RorIm?rST(UWcTbZ}ulb2K+h*x>
+z5lZ)vNz$3&7*<xdmCnBT0L(B@y0{o6dUAnu@zF`3F;k>VrUI~{Tq&dZW?Zv7rHoNe
+zfYc6F_10$kyjjv^ArFM{7SiQ5Z?P4bD_y>r1gwjhboEdsuAN`fwMH22C!Lk9jcN~k
+zOBd<d4OcAP?n>9Aoq*2yCS|+hdB<FpZcpGKP3j@tUe^<(<5ar+aU;kkcceQ_Z-JCC
+zMI-&TL%P#53)od3>25#~F4A$CQf_C!3*1J!H+UOJ{DySzSugDOB}fly7Gn{&P<qh7
+z8t7mX>0vOoW7nEXkN&;i_(FQr9`mBt5$VwzG;x+qlpb$s0#bH$=}8POa-+#r?BZ0#
+zK5M0?@;wmt9;;&3GwErWtgf@ErN2^7D%vN3aBYfIJRZ0Eq&w0Z<60mbd@j8y#B+~5
+zC%w1Ckhm&Qdan-zX;p9O{S7DJn^tL*6BbDCAERaNT`85;L(efpkv{sOW02Wj`sDNw
+zpvMa7(^x%vj~%4X^Bh4Oo-KXZg8T7GE$MsTNN7Pf&6U1i#f$D#DV0wZfEIR?%70)g
+zIOr|?*xCiagGxWHV@x~#QT4U8)u%`mBQUW9O_C~aoC98?27zH1AKr~6LN4k>Hjaqn
+zPyviTMab=3T&nRJ<%tssy{=-hH%B8kN<(65b?ktA1l(vEVd)-dYcC{nVhnKc4N*$4
+zSV~?%47x-DIXMoSJ3&B9Q>}<`dLAm)cv4+=5O~2@QvLTo34KI0Y3d?$P`#R(jS6=r
+zjXg0Q-wz-bF4F+MPbQXm_$l*`5i7e?l+CS()x7{<2BuZ~V@hoBy%gY}k^S)_w#RV&
+zCJrY}ho<2Mn?jmSwg$fQ3Tfu_4am3!YEDyK^PPi<ohvHPqNc>|U>J~s9>m@bm&LG^
+z#D4BYphfP)!4|#2_v6*-&2;*($E3|(ENC-Y6Q^pZik|)=P6c&9oY0RrC(1xqE+x)I
+zvw>BnkhW%{(fa#KTy~-ga7`c`FJu7UJAicFhhlqB4(W_`A?<XKbj3ab{o_o!rg;Ki
+zLP+=4s9&2B(tBAm5VyV{y_0=Fwk;sNzx#lmdtK6A$d*${pP?^-t_vr9g0b+uzLU6H
+zZv^pLC~-fJ0it+1@wgO^cE2O(8&!q@Ba-w#imB&)SK{f8+;@izX!!~~$!}zEy@w#T
+z?oNDH%>}u|G&1x<5t;-GHPYN5;`cHaWSu1$HaP~H6BiB0ut%6@4TDI~E>~<q)F5G=
+zs4LZA5{A`<c&RZNT?YjzTDD{6V4-j?okUE+efPOGiTKk2yIO{1+(Hbbj%UfZQyqcr
+z9j8ud-qt_99*K%s3p95FiMn|b$e15wQe+{}wTH;$VHLnnB$3JC+ffyWWU9v@pkIEI
+zsX^%=+6iR(G1S$y9mtG^+klo0AT!*$0Nd_KW*kR(YZ;;P7Pcejkl0;Y(F*xPV#~1Z
+zNbw^J<_`jK)f=+lUnUB3B@41TU`nk;7F1#!&CbwBx^E|o2VDX-y@)K%#rcn5L$dg(
+z8~PUY$>O4Kz^XfvxCZg)ARbYdwJ_0tC-It;m_y>nZUedB1G2Q%U;xh`lK6fV9$PiC
+z%wRSMOSneKx*l1v7VpvhYGlRlD3IEBuHuQeMD357*61=(uSh7_D~NhE4p{6BvZ}#+
+zAh+$vsumcMTOA{-(3OxKj7gF!ZjC0bcax-Lp?D7pNYZNj#ZeE*YP9{N{m;niTnfy~
+zMs;gxu0KxJxSs)P_q>Y7wrgZdZ)ue0WRf)@nIOJ8Nm3#)sx0_S)=u{U@%weMZbcce
+z{LN&&Ken^Zza;BtIAQ4$K{mF|!dmJT+2|Mw^ulPev0HPzDAUO1aEiJ_BwME7QTa93
+zNKLo7ldY@lfL9zKsbUn!7J8D}AP?l>vRc{Ftiu?Y?Ccx@lCp*DalpuYd^g#12~&aB
+z7_ztNY!DxeB72+R=PkUXk&KwAk-i?M`nGcEzL4x~xgAK0_$u~LtN3Yg6)UqeQr|yS
+zJXWNUovf)*HeIadw9@GhHzj-b;Ck}2Cwm{D^Yg4WN$=x>C;x(^SK0v!y+{r|!sQ&S
+zkVCg|vSnl!a(EBADqkj%qvCzw^9PWlS<%1(%*e6LSe^T=BPU2Y@c2dK#N9T)rlgRQ
+ze_w#y@CP|PzY7RmW|K1=aovZfku&j@pqHbDk+aEffgNi|&Y59woT`#@dobb@I+OG5
+zF|NITMb6K~<nqpjoG%OoKJON}&=Z%U+Z1vsauMdgha}@r4A2vkNX7+pMQqxU%nm03
+zw!9&ktMD$q?LjVg7y#nPHsrErU*P*|lFLcBuR9(lS7NLPNKdz@#dfwe*OQw%Tm(OY
+z$xV~HI79SGHMiI4k6$M_lUHFkZ6C?mQH0xVjYc^!mE@e5kKOl1<aUQkn5rg`+XJvk
+zyLO&N_R^f(9#sLX%^`B<MGQc(P9vQ+iR9JAcEOc-B%f~rxHFUFf5aS=a*o_<ehK78
+z@5sG5xK&R3l6!9n)CQB<<bm-;ls4YvL8oxE{C}wD?M?I@$djS?-%3`Ir`kz9CNCP{
+z5^evNyl9LTr?Qy5_<97yNF!1>8M_c27gh138!23e`+oUC@@m8ppykKNYo!yghOXqb
+zX%a~BW#n~XIY==tNHL(iob(?lX3ikFg=(aJDtS|kVP0Qv9Vv;32GVPYM)pxAB}rJM
+zeP~DC{VfAAxRXXY@-O)?0K-$xWAY&cqpFK1DJ>2MK58}jn1(v_j0O4l1qaY<>XFaC
+zpM&&6AfNwWck|36@}(C3o_9I<5^jfM8+N3uKTbr6FUhwtwZW0UyFtFqLm#2T3-Z1B
+z9bl`?N%<|jKI%YHey<DKR>Mj8KZiBVoc!=tfv>4hdF$Sz2AGn+4jV!EK8#chSpYOR
+zPa{*BRj~|6<@6~)H#Mj5sQ?7`cnaUg12d^c1xN(Jq6rmdzru86MWtC8z{-A7IurNq
+z&wR>y^uzMJn!3NWP9Jlc8ZN<5kxi-LDI77H*o+#xTm-p688vo`1YySmY8-wGU6Pu#
+z`aVpTCL3t=XBd~4y`eRpn1S438LinQ7?^aB);#eHq@7D?%^S0^`0hY!`Jx>&_yw)~
+zS_Rp(l-7AV1}lr#w61L_$g%5aUFREMC>YMtUa)$_s#hDGe&I-3e^nQd#@C?rpUeib
+zqk@_SVKL~rg*JMRiY@ntM$+~=HQ$A{&zVcK@uSTk=5(cve|Um8qc*jeZik=$oHp6~
+z64*N(wcLl7vC@oMtrdZev7}bzc-yzsrPd8?fprL=)~g)RetJTiU7QUKV22fLmMh`Z
+z*eBXtNC%;39&J9UCrHostCelc^v1iXeZn_j(_E>;^<)sk3^j5xkG8Qy_bp)vZ8Lo^
+zkZliWn^y+79R=!`g7P7&8FiY4u2Ix)>Xd>X_uPa!Z#e>jp#^m=9fXo?B5k|uE=X%<
+z(zZ{w0q3o0y8tvlm7%ob0hA@<B#nmLFpYLPQ5$H$40WfYSrelrwCgFXPTB<0Zh_lT
+z^7W-X4!y(<;w0*N>Lt)S&(vZ^Gri+I+B+u$Xyh=BT=$IjzU>CWu94JDGR4u#*3=y*
+zE4al|+W&+C(w9BdYg#vux^AXkGvDH3T}%hGI|(AMpab@t!bQB84m2nQ;@yG{o=0(X
+zU?VaUsM{Jk#A!YVr?1f=5stuO3g{4ZCKd$~+G#JiT@)P}um$*&O6qTz4bWRp0|uW5
+z*7^Yr>=OdSEmNaxK8p^wLvw(1p(D|Ig$woRsNYx~KKV(5{|pDlOlio_SRAUdq#-9t
+zLEL{rBaK=?|GS5csR79v8F^0s`;dzQ<8o^nW|RxewwQ)>!TWl}hmP*F3Zx;oHPR45
+zM<)yd>HRO&+}WhrI6C^;5wtVg(=m%);I?>-ECe3a6!{W435o5Is7vZ_XIp(5jR@Ed
+zLaiY*BFq}wnqeAwmoYSAZ4kasrV+<8aqROM9oH%i==E1La<~h~F30Hj#aLdnc%zYb
+zdqBru@x$g{4xM;)F!0p>Xw(5*yua(ysC#Hb*zTiIe^8UIETl0TGeP>#hsHcdX{^$=
+z^#`t_lh0wg$~U4@qyB)n=q8=kxCDgQv2@y3Ja3msIwL$4_)s04*{3eh#g0`>x=v??
+z%>{9LIGveZ8~DRHbe27CXy@K)SX*<&lg_PK1oT{Mby-^*ea-H4?xW_wvggxSgJ_W3
+zw51D+-h;5Pm@e)+41~-;jdHb}bg>WahWo$i;yu%`fiQ-~S$LwwGmXY|V!&4y(RleM
+zPVcUxOO|*7DeFU*B!{5m{+=$`f&Iaj^)ymwRmFCXH0oKSe%cEj{EaTz;|%QP54z+A
+zrjG*=G@&VaM=uL#0**}znME{VY%Eao+$v7@p$RE?K&z+HguPhkja!366X7|~gy*;&
+z7md`&%#-NSaO^z<Ni@-@7l`NVX<~<Tpa+}N6?}I?5X@iG6;Bd@MaIyT|5QfoSE}Y0
+zq5D2v&2h02pT(=?E@mB;m(z8N*8rc<fv$_k1u%VvM%s9kMm{H6qih{f#eO^J`WD-;
+zAsC~2wKLJTqU)F8W}RtD*B4+*t=VI`p%D8-u?y&iUl`I?dslJIWV%s&0Z<u0H)j3-
+z-Z+<Te3S<4QYqb3vIxYXZglIJ#=xw8(bRXS<R3kz+rFFvVarLn<6m)VJxn9tc$Dt6
+zE5Hgrl<pjig@DJFb#&*L!yqg>tC7wU=+1YmfmSY~yXxT=T)anj+13HlX`x2y-MorF
+z@ZXCpfey8yyYFK2+PzY>Z?9{zO`v;L5iIm<>7EPeAkRpkdj$+4VbkcoQ|SE8dZ322
+zx9bqSi5{4Q{;P#GJ#Ywh)5Sm}rksoM^l)Y#h`Jf{XaU;T&AjN*ihr?c3OyEwsiE+#
+zn$zB_*1`Go%m55&hOaf!dB@et_O>JI({mG1KL`t|Xl+(ShfY=OQB5N|JXNC{nM}{`
+zO$5<2o?ck;Z&sAj3uk|VaO@?$<bm%ycB7Z3;OEU<L^IdoHn}oJUDUx$-~TSXf^)_6
+zbt=8yCmZOKS@h<gZ$RsBp|{*I4Mjhux4z&lTKk>eDv!XAc}{co2BXR_)hJ}o(nuFx
+z(#T8f=<RktfLf2Bxto6h%Lt))P8`7Ilt%tEOQYP}hvr=_0KG8aJk58&FUpLg`TqiM
+zo1Qd(TL^CRYxG_x)J2!>XrzlQ=)E`zc&Uy)eufUmHc$FQ#dz7@kv^-3_ddp*K1)J3
+z$9p?{KGPW2N)P(H0@q-3Yx?377WsMY=_{`wV6#l<t3wvR?sliIF4V?x%`s*4RYg8X
+zCuh+jgL5Dl1<}`!=3#ek6n*mn>+8T%w8Y>NP%9f+V(baR-=nmo@kSIL3+ad9D}Z>0
+ztHmA7ygN6bpJP4)?>q?k1-TUY6?qw1hODGzB8Io+^=Mi50+6MLw5$Ym-bokwEet*C
+z=)v^6(gb*kKmB161Y}{M>f6ao|E+*lSZoAw+i3<(GJtIF$zZH0@Xb*SlN0dnubJT6
+z90yA3F!5{`5Klj6H1j@s8P^#7wGyD~Yo@fol|3nxDIvJ_QWBWKfR6wNb~A%1gF)I+
+z#tc?re6bE;)mmY+eNo1$x#Q12nlK|Z3_CT4O_*_OC)6Lk)XGlg17lguWNc|xI<s2a
+zMG&%VSY517;esElyM7SPEj42ej6?9S2x~A1FY3%RjjRD>jr{RJii9^BCF?(|@qRlX
+z%M#V`oz3(M?3v|f2}FG?vnuZf^wU>noskW~jrPp8E7k<f8?vTJI6xhxV=WFzKzf_7
+z7B3=!ZSKulejEev$cMGU(I+P4vsMT2Dtt3%_MW!@q-f@F-V*q$1m=*DkAAfsb9ju>
+zb-fRB?6nMpBNfc~z6zG~Nh8)a*%F&{bu`klrL3KMDG2HW*1ku5AWnBx`z~fZLef~*
+zg9AZ0`b#6b-k5c3i&N(lKC^DU(JDz>qmexr$GR;=C*xKebDe{hN7oO?N5Hn#P?vSl
+zHLtyrxiv+rcxNGV>oyoi<fk&X!nL>*x3NC>L<L`x!rZel`!tDFbGqpChaR!M4V*xl
+z(2DhahGyO$U)J|+FHC0VSihEd6&#kbeq)vasWpl9?`j3y?l0><qc*U~KCJ(d;~<S3
+z#5^r6fh<v&=SK8Tyw@@>6AO@L1R&9;oN<JCwK<H#T@Gx3bOifTj%?u4415-+4)Ym5
+zANsP<I_5JS*YcMEY|#3ifP(~V@DgL7ayA?MDjUfDcWj7^TKrx(^ZkR16EE*jtW;&E
+zL^kx*5g;QcYh<k&s{6a@I_%rP0))CiPbn-Q0mnDZt81i#N3cNeXrNQ>u)y-}055N`
+zVZ*+HaP0yMihT$)uC-d()vU)Hm5p%2!lm94Hez@-dYOf6Bo9a5Z6+JlsR4*y#u{1d
+zZ#L>IijqO0EVuzi4kKfYviSpbcsHH+^p!fLTiZ6nzOaa>P#pWX$;O#b>?ByR3GQZS
+zD)nI#KE?w}9l|EgL!0h%0E-4QAn&HC&$^lG$Fk`^TLN!8k<GwHh%{-7MrtEh(K)k<
+zJ;f^SIir!cYo}43(2LD7nh*T#K{g95EopLHrg!;?UX&NpN8-ZwnZ@)eTLAXCGX2|E
+z!0gM}oM>Dj`h#rFN|dR!(vGnCr)C0FM6mg{63|<>R+n`*YxCTjEpCh}sOB{mcL4Wg
+zcT<frpTy#x#(>n_i^T_E)R8B!_<yzC-E8$)cQgIAzicTs%=oeWZ0TH_k(unvmL55U
+zj@w_hY?&*Flf5(&uT>i9^hO%_*hIGc8)mYjQ<>U758E~&O#N&OLYx&#LQ9eP7O^D#
+ze6%R+SyBm#=2K%?av#i)Z#E%cf*jG0CHD&lAHKc;OCDVSv_)Nw{BSBuj=&;z<1Ds1
+zw+tl1YHZDy1gt&^S;|rj6iWzO_ZO{;gzjv8{W4VJE^NJ}2;$L`Y<(1Zt<`6%IX!gx
+z*bQuB?s4FjhuOxj$3cuZqmkC{&o*1{!D4M8+q}mPi*ubuKG2J$D)T`+p2N0{K<jUl
+zJ=@U{EgR#ORctxCirrUN(Y>=q{=ks!QvHBtxU$_1%s~9nmhB$j8}wrFXtq0g4A759
+z+3rPI*q170Y1j&3-mYv9_8tV+ks4`m`zqcU%l0kD^Z9QPOW#<E0qzUiUmvTop8siN
+zWDPsCEf{F}S9VN~JF&+NjeK-3cKm)W_62O%i76<!mt0{dlaBWTHrA4zTxSPT(-?O0
+zs|vJ>o}F5R7dp?7oqm-9LX(^9Ov7_{rjOW}k_<GVqFI$!w2qy<Y65gy3cL6O)8+^R
+z)xM`rKXEF{GQz<dUssmZr51=&_p_|CxcAcMvn%yb2X?PyS2k?JQST&neP|x`YRuX7
+z-HtfvBeEN}(d7A>!EWMIA2<sd+5WTaRxb{8*d}&sCkF0k;q1;D)X^QMX{2zjigqK|
+z-A37<X7)4{#;MPG>N>cTu>y534#b^dg$?HdJ72;IcL#&id%s2oiR>kr2DH~x_A)9O
+zq>!E(x$LLf_tKeqd}bwWjsjZ{!b&<T*c?h^C0VJ!yWCcX_tJG}+me0OuL5pchkgBx
+z{l}C`?Azuv;0M05UtaS-xL(A5{X%PS*K$_T9$kU3Hmu^H2k@Ad>VEw6o%1;H&IWO1
+zIcM+FL0st1`9cSfDst3kz0A80<OYVgTC#Li{JM`D1mU6%nyZmYe~}*eet<@Hw>mc%
+zc@2p3VQ#n$jlc2j)ULgC`hD|wt&dAUJR8SrV|!ZgaN~8lzr+E^U|u)R72D~pxNahj
+z>qouix;qOoiRN&VPVT_=bmb<u(9g-b#OqzCjlRusUjGf6q5+3^!_A2xc393EEhq(X
+z!6)8Wz$NiIjayva2-2_7yveICAl*2_tv&`r3wC@Uw`p-0Et5Ii=FnPHP$k^f1#6k+
+z#@u#Z0kCVmc+-nPIDGs@t?aE6C%#Zk+{{cRf8Iu_0O9T@?&OHIq-_uGy!krt$E#E?
+zH=Q`vK@D>=^GIyPJ3g0y4>aSQ))nKkA_sU^pZUN)UgzEK;6Vr6<gOyx5~ki&bhyJ^
+zUmeAba-6%C&j&iBzD9P4t2u7E4*w~<-#d)n4Q6xCF?heGUE`j!aJ^L@#|M6k2KG0X
+z53I!dJE5F=H%kTn$d7xEQ?cP4ubTHU?{3NchhG6Qd=~dVmVw>4F+5-(R)5zX^MIs{
+zz(>ULz-pc#&Rf6(YvI97>%;@wp=D`0gb(W{VaIops_%oFXCEJ4fDT*nB|hRFM#p<2
+z`N)B_L3Vz?NBSF}KRX239GTBYuE!dFr7s`V)eo@#;G>eVLG1M(4<74`d3rVviNHO4
+zSmh!2Q3J+HJhX)ms-gir^g<#Cqo455ujsrriREGC)A4&Y@G(wK5Wv1Q<C+-|U7e5l
+zQ3o5gZW`tB7kKyw0&L(bKDHLhuaK^MY;Yow*R%N8XQ=98MIKSs9eDM-eB2#h)aVM2
+ziZ=jWIG#r>MJ?MoKppR{Yo5`RPx%+rl1=!Ot@nV51Nl@5rve6s@o8;C0A?^gV^}P(
+zoxbXRcb(qoKA(3!9R#bEeBKv4?Z~=(QRQsxS6lFe{uh9BE$0b2tI>%&z?c6h0-<>?
+zzT!WOF;mv?mBUccZw==wC*$+JEnD%Gcd*Fw&*CeKGJ!qJ=c-`|&@daGycQj^9ji6c
+zetMp~B?`#OW<2?6b?8X@{^V<7bAk7_;cFhG<Lt#Op3)yrYic=P7ZeXHIgM`!Oa!{`
+z0^bzt2@v^!Z#D}9srbCA_s|(w-{o7Ec!P8{Uftwj-u(#QSsSJ497Db{XEu;ifB4S3
+zslZnC=DX}4gB-Y%@0vajyGtQ_*W40RB`5hVJPO+P1W)UZ_Q$n8YNdybM_38pbE-M;
+z4PJb29TYc>5AeNT%|Y6*o~O?$0<mo?o_?tS8=a^4{>Yc8eCuhX!5gc1XD2_<#T9tp
+z4{BInvmUj6^CM627DP<sM?TqsFk(7Cy1@)9@r(TE8=Q_C+EOF^>&K7&e2E56Fh7L@
+zk<#o5{EQ1OomJP=D}BwxeuvcJzUKN`JgY7CfDRwzS=m@Ke2L<h^_Ww(Qhp^K%kcG0
+z`L%wy?#Rt5I+a&(dlbL!eiDSohj{ipf;a9k|5roOxD<XjC<LVVt^95*Ci!aRJU77)
+z*ky&^i|Yb%{4f5bY#0tmnDFO<6R_~NvHV5836Q5zyf8TrvqVe&QoxI~uNr@O1GCQh
+ztNhI>9Gn~`^S2}M&MY_KZ%h4v4BXB?q~PyuY0OJ+UIWn@<4EEN97yuvUrL66RN9Dt
+zO$q{@FoAzf#SJyLjry^ld3S&Q>mgo~2VePb39UlQw;D<QH2!x=GCt!lod3;n1p2Nq
+zuUv;=FfW@|V#<_l%4F<f08Ra&di6IOwI@uL)9}IDxO1{WbzH9BzRL!WQ-M62AR7(~
+z1^OmUHq0J~@$ai_G$91ocOTiP5DnG&Nph{_sFEve<=QwhF5ajw*X>vUWau263`s&m
+z$4WMxftkB4KC<55%=^J>*}VBmkeZaqjYER5U~eK@$SC3V)Rmjm#`So!n`~){3uERa
+z*|K|2Z1VJ#Ek|a6bmX;c<F*@p@Ncrskk-J1Ol8~F?Ln?*u6Fgb(JwTTTX^EViy0-i
+zD(Q;_)dAVAx+h33YpR$#LAJBPM~F{NlkM&s1B^K++v5O_lzCisSn~=;NEgVhop6(X
+z@RVC)g~!`&lUx7BE{wxUxy>_UoR#e+JEmahte-49uERan=(0w(w3F<Zmx_<F_BkLs
+zZR-UjAy0PtIT{2TBDXcl20k`Zt@PCCN2kf1imb7=IVN|OQRf`nA$P7D45G_uxr=cH
+zaQjbkms(jUbRFex#u85FtkFn+|B|~6z(#1?2D#f_JijmZ<eu&Dc;b7=J$FQc*r18r
+zs|PCAI}_wy(HOff<jB2d#bABxAop&dfZ)7e?mhY^v=BlT$i36=0}Y%g_kMyB^F*LV
+z9uy_J8CheOd6Dc9ha1*9L_P0iqO_Cy^}~LyvP*sDr8BLVDtpyHy;x(2?9&`|bkh+U
+z`NDH*^#M9jHB)T|cqz`ZU-kgJlXq49025)kx_W?_zTZ?i^k6FHjxafFU?RYZ=W-Yd
+zd}?-3j;LP%u**q~bih=!cA^}K!!-255qUz~ZtQ|N$}tBmfj2RcV=C~nE-jX)^uSn`
+zpp&O|LgnkxRi3^ax6G#h<e6R@u#q}Qp7{w~koI#lQulfC?0NqG9=2^M&)(&TO3qy)
+z9dcTpWAPA8E@OF4GfRNBPmphMSGdb_)F1$zfjoC|B#`7JdH&>qz+QckV~d*sr+?%H
+z{Y-()FhQb%b-J#R&FCjD8gB+H*jL>&(4^TpIqrBlPUr>5@o3WUIZTevd4x{k4UH_*
+zMqWaGp<nw-eKycUpDHg~iP5f~g}kg1)n{8jS%p_1jq{MzhWJ4L>fN&HngH;zovd!(
+z4f4=~a#Bwm<+9lzCk5b5-+o6<3abFIXM~(ogx;BB!zw2JkW(f{0o4`DDJl5Oe0eo_
+z?L#{pu~;szZ-iF##`*Gwy4IM9qT9$DPNjp~zlOY#p$OgoUfz_4E!~DK<V_FIjh``E
+z-rNIc#CF}6H&1v4yn(B{rBx}AJ+bnZ5R4T^X3AUs8;+5-m%Mde0to02Z9R|<L>Hvy
+zc$;_E%iEGLjxHM^Z{Iu{_>KSM9RaO@&M1<1y5Qk{`z!BEa0YQuA9>e{`5-OMlXq|K
+zjZZ3g%eza{fPXGg?R{)(`pA0<(aKpSXq4-BRl|Jj^!2C7M_!bI@Gee1$}y_B5&2lt
+z6l}?lmycB(0&(Pd`S`zc|GiZ{;ZOo%)FzEIdc1scn+G;zrpl+7iiN}_`PAV@z-}#*
+zPyO`=cHtm01ud6}@@WAx%cNNO^rM<MeZ}N6lQ*HySt+0GLZBl_kmR%BIKGv*TRxj`
+z6>HBk^4S$ZKp#$)&%VSg6O$~TYafcnb*X$VFB2p`ANi6yeu2KR>NUuwc|@F?@gf_f
+zEkw>J&&R&iHaYV(UWC*ua#pY_4%M%cvp!G9=aKT%O@qw!qvY#hhQMwNm9Ou@54-(J
+zzMg>@W!!c7Ms2iQI(uoP1Fhs6-SJUS`G9<5$_o%XKag+A!N4A*$~Px&2GQ||d`rTs
+zH6%>FrK|#S`Hg%lYZypbFXimr=^$pwa!wirv44b|^AruOdO;ewN8>H>?U$Hx0%PU7
+z4!94e6w7yy<^msPA?Mz~!wfwx=N6+a>f2P#+pryk3!ZZR`Io?r$I1Cu(B4$P%lEf#
+z$7fcLtNOtvt<TDjeK7;m%~iC0Sw)xc8d;-i8oB>gjq*er^~zu~{ogh6b9+p{*}vpM
+z2ONYltX;)FYvjT<I0zNEPcB^b3Om8$<(Es{aXMs>{IURx!a45pE36cxGjrskrg(74
+zL**jBYao5~LE_pNU7(S;wbe*RFV@J6ZRDacVOT|G$VKZGfEqHSW_Wg8`OTHtAa|c8
+zzdceHnA;2a?Z5Zk{N#5U-^%ZkQvvcm$R9+ke5;+1KNQ~sDW^g%ZF&Ht-AVGNEZkaC
+z=E+~y9m2oGvPJ%CI{=?$J1c+PhtI)Odmw);I0CfMWcAq)dv`zi&jd_U@0{hox>TS(
+z@2j}#Ke;03E3oCEa>b7dv|INnLhWpP?r)YNv}_F6VNxW#+)`<hLcV(9M0%O(<*V};
+zx=!JCrog*-DLes#T;JD<?6&|_+(kvXg-%?P`--7a2CyTi6+;yzgY_ki+-jdv&B+zm
+zB73FA`DiS~yw&}_I=$gGMVE(3Cgzw@FM1<Dep{v93OuT#<CS_P7>t8HDGi&)f;6>`
+z(&&r@7O&Ou&k>-VF)>kTJR%5){cgp=1r5R`Ns2|tOI)=b70V5n6#afE*1wHGym(Bp
+z<+XthTC24D7y|f^h(=n^U!xDJc(2&&c7xD1NU;w@xoCe^aR{sla&1uBT>TEDZh+#r
+zb|bJaj})gF6a*6=rR`OmRoJ{;X;*@m<v^6u$@m}$##@w5wLE}dRMgc&&6=z?RJv`$
+z*m7^N(t9Wc+G?ND$L|YHie)JtjZqt~_@&+-YOn9B^vCE+{Xio--BhDoXQSdd`V&Z>
+zPALQbU}jm<Sn<|v1L<CKWsp0j{x+4$;Nt>tb+$72h8+$NWGcRQQ28`!sQ3@74lp=E
+z2{?oEUJY(4frDIuEN`L&rk8*){+BWgBONt9u955g;*_9i`RJ#%RD$N?-J+#cY}!mC
+zA2vf7J{&#r2{)Ay49$>PdzFzF@$P*sP(lW(z#F|*LVFYeo%>7)9T^1tl%j-2;s`)f
+z4<)p~8iXZ<%6}LA(cJ2(giTEXx++5%-4?e~=Tv3%%Pufh3@O%LuphsaF?D^hTJ5Ne
+z+3N!0&elq}!yte(BPIM`J9H<eDUoU#u!Xit<d@kX7Jg91`{Ob^*jbs-cp(mJ%~mGn
+zqa(VsffCgu7kko&m1utvrDiu}k}Zabsh;Y1e>1URj=IcW*W*i)GXK$5kX{c}V(VdS
+zOPQ#|rme>L+c0H8UsO2BX&U)tMOjc53y{%FS%}XqvtC?TG}i%0d=s_U-*#kwWl6y+
+z+(93d1SJoD%SB0OnGP(lp^^|E2~a&xNxWSEZ2eqiSy2Y?*@4RPaCbCbQj`@trU2_0
+zrL6c7h;uf3G}7H06tztc;AJ+7s&@gBy-^(>plj3ls*;?H{?w08O7dMxw0%4@GH_Iq
+zORnQAVY#x}d>Y>5Y-NoDO8>k7^>~1p{)eipy^sFWmJ!Oj*C<D;ZBjNAKg52;f6A8n
+z__sI4Stwg(V;=BnrIF=rQnr?&Pdda<+4?6Nz;A?-Did_H?KJX_?#j0J3-C_^>6Pu7
+z_>^ATTgvwA4!{mQP|{waRp0Qfve$hdNIO7DKOjM0+1gAwh#x>3KSXu_zH1CJ8kkLl
+zM!svka%k>7prO&qq2s|gw(>_goR88XJzP2b5DT{C6Uvb<o<ROwQa1&fiF0Gr^MSfr
+z@Bb*L;?9AX@<uuJcq7P(C2Db?nLa;Lxj^oNIApJKp&1s7xBe&>Tm93dH<gPRw@HbM
+zlHoA|1fhqLG1L{4%`hd?WGqOV`zV=RO+k9IP08%P44XymmCPY4fsA;rk;eKcnQ!oO
+zJ)0?6)iD0Qw^p(`V^6M03ypNVyOK4)1k{<s>g%Hel`B^k0prEWRowgHE>Ny-P6h5=
+zN4eQL6y)aHlv~3ug4AwL6+4tGx5CiO7|=$^KI{hcY=M%~03Vj?@<Yk-b_UwkL%FkV
+zFiwZBQF2|%u=&wJ$-UtNLi`1dl2x8Y*|e6DSMCIcl1qQ>g_PS=H4ifPYo|PEQVMjT
+zqw=%{dMVXEC<Rs-xcN(!f~F=Q#-7ti=e5(wnh#W-O+wjI|B>=+a~9Ao=auI!PPoO&
+zmFH*$Nu#(@_<j(OL5Aw;AY1);<;|c!=-hl(-ux@}f5$0r-dlh;ElGKI9^FO@8;yK&
+zcjaA460pb7%7<#kAT`fXK6IQ9+$vD{kP{3-lWt0Bvu{8*T~$gS;uQ9)Eal_NQs9ft
+zmCwcdP+$fqWjb75Z;h3*JpAKVPuD8t)@WDxA2_Z2IE0}m^rG@R6?Mp@E6SfbM!;vK
+zD1Q?lq3~R*R9J<hKRj8f*ky&)U~{E%L>5k=-7tWr|10Ur<7(Qz_`1V6=eEy2XREl8
+zlniBz%8;q3OrauUGBwbklq4ZHLlTlYlCeB8CmHk7%NWW0%)?KSIWrj_e#`9-pKn)m
+zPv`8t)^~l^ckOEn+TJAu4xU0OX(xf#i;z885Y;795FY(fvL{%RnR5u28;8}_SmoFR
+zJm*18OiHmtwQNnu0cTJ})gaDB(QZB=UpIpG@@^sy(*U34O~mzu0C#Q^vC<ZVrqP6I
+z>~T-uCz9O<;NM*$(uixIa?2p~5-^ZHF(;;zgF!R#D>1!`4XF<Mi0O}W*nD0|8i;tC
+z2A7kDPV*oLZmuSl=FL%VzCjw7mV$Qj1Y+Z?fcE)4VpF~eG|PvQrZ~c-lAn@h4RE5W
+zxjSiY(g?II@=0^UE8sp|B`rS%qkv~l>~_}2!v7wzLvNjS#!zDK;DA1X-^#Ixdb16K
+zNo%(vP{*z|BDbwfc{b77F!d{GXSNmi^=YI-UKR+i{~{ebVS1B_iDL+s*o$I`^Amj6
+zmQ6|LhuDbvHj;GNTmZu3ZlqfPvigtJq<g>u49f|m$8QWeVlL?!g{&djkMs)ug*?3{
+z>2(cp*h%90p+0au?TMQ|YCxU#8qvTxE;fF_c{DI0Uu<qf-L!7R?G|$C3%^M3eyGw9
+zm5j(MrKEQ-?x7ccr2oqMpekNZ26n?@Z@niOxT6&F$syuZi#@PekI5h|5QJ8@$dG!-
+zsRGWCAp<)DKfsCjZWspK6;tB-P#z4zv7=;Iel}Lsca6yXl*w=$^yQ}PAtRe%U1J$U
+z#&z8Zg3UrQ?p_NV(QqM?+Mz=H=pdQY#~nC}+aypx;(33x;uDC`Y>P52(4vtSnPTCF
+z@A8^Vakl`Kt`nJ(X^IW^+e&Vr-jFbWgnmWCU+@SL7K~y}q74a~d=AB*G!j;h74UDF
+zg#S{IES)A1PyQsi17zyhJHU-tWkkN9HJO@<TOp^KOnr3;_a0|NZdp8uVjSp}T_aJ=
+zH2|-#7?JzoWki0JnoQHohPFc2Q6$=9D5xi<lIYuOQQ|mGViL^Ir+bG?|FjC-C_724
+zn*uudtTG`;Z<tw1653&;&%Z|!d<Z%sZjgjRe5&JjlZ4A5zz=LsX0O|aCC4{1`^O5<
+zWZxlk{cz3hOeBeB-k=-TizL=B1&xIrnWuFIVZaMA?>n}T{7Oht-&iD1T}aaGGEk>Z
+zCrN3z=6@HFr0vK#mwY7)QH}G{T=*YZnD_~}1{aLT7g>@;ds^W9X8}n*8w=`Tr%Cen
+zdKhtQNXotgAh=hPC2gM}EA%0$({M9X9we!|@%6q)lDfA6X#H<1Zozs(N(foj5eqB#
+z%VgOV96JroB+E}D`P_M&q>Jd)o?%7O!*THirjm?5vFf=4$#BP{6XQy<a20C<Hk0fT
+zCqNkZjjU;hL_c{RS>w1J_}-yp%}Z1wUVbCSBKvz|vaXd1;NM)b&esxjX&=Z29B6Nh
+zOpj~~or3LRGm=wNjN7G<Y-003u)eLl#p}bLx7ni=2-Pjf=D$&O9=d>RK_`Xg<9f1v
+z2-3p%O0uI<5pd(o$d03~pw-MHJ1!T1_R~_bYurwZ5fjL+)HeWDx5zG>pWsYM9kzF=
+zL$4x|zs(#p>*tgF8v_CCw~+$Z??_}^$llzhpezb8bqaAHhX>RL%>zerI2wug7JG7d
+z=3`Lp?M8~)m7)u*H90bW2XK>;$PooGxwCRM#M-jHFDdp%3rg4_QXDiEV6cjmBw(~&
+zm8AR*u`#5RlI1f%>mFc4ZdBVkOuJZzJ3rOoE1?eGrPSfCC?o2I#*mUDsEZ%!LrT7E
+z!74#TN}FQ4$+x)?`SiV{)HV+I6`ADN=`GlLX+@6f<^fC>$?=bP#+0FbDmlUB0cSgw
+zoG{ymf_oG>ky#(0>>W9A7_%JPKu%WR!tt1DL~is&a@t}AXbU39xfne8ap+!h?sgn{
+z-8Pbnsd#s;4j~muxDZD%Bl5@M$mOb&zzIw1u)DSnJztQkdupKvTpv%aJ^BW^@Cb5q
+zm<NDU3c33lRqGdf$^VY$fOfwpc`z8yf*e1JR7JJM-rz1$H652&e~mI~ik;!!74pRW
+zIIgra<OzmHe#~I<BI<u2sC$qX?_Dtqzaur9a0m6WC9l-p=)gQhUVXrb(dapO?S31b
+z*9GML%HJTQ^(P-|{6N#aAE}+@fD+$b@>RbA)B(Zd>yhTb{Tofb?Z${y9!q|VNA2yj
+zj{Kf-3EIK}3lXf=;!?aLst)7Uxb|ICeVYwJ^B$u5!6ty`mqktWLbQvxEB2w*mi2y%
+zT=5I6^*f8aoh9)9&J~4D7(q%~C=){M4ep{)h$Zaj0@0)u`jKjHh$g$eK{b1#NTy@b
+zyfjXfN-BXXvK8497vS1l7THB~8a}ZU>;2~dx&ggK(`dZfDi_ggmm_G-78sGYu@=n=
+zkeHqQYDB*6F0uZnhNw*J6&ozOi^ac6Y;X$Wq{4;ub}#EFTAzImY9|XLaw>;9Y!O(8
+z9pa3ri~J~BpU(lVwPZvg?S*KwQ-w6lM@b2DGsKB4)@5Onx?F6zwGqI*C!(Fb6SC(F
+z(a!4}s9sfy_AaMEu=5ceDqV4E<)_$je<M_3S{qT<WQ*t+;{$596?J%_)QCE^w+`!V
+z6CJ->gXZ6S(dpm@P=A{(b{dE4sA0C)CD|6;K7GR*c5fOXcAbL4QR6hx#W5Xptpmkw
+zW?0(}9V&LupN5=H7JHzzg8P;r_N0mEIa(n0JYkP<Z-SB?Zf!X1EV@s5j6H~7qNf$E
+z#rxw$&vfi+<pzj-&2eINPNdk^3n}`*mSW!$Yy#J875k%Pz_&>i2bg-G-Zn@aynZug
+zKLa8bG7VOWLxK+Aw1`Ud*5mw8!~)U#d^3Q^rlOCTE2x;Y=v(3mT)U&9@AWmHbc!%F
+zr0)>NEO7%>ep}Ih`Ul{YJEH$7Of8Sy!~iT<Rb;dn;MEDV{UeO1v#}Bb=3;eo<C!?F
+zfj4Ns3F5f&<Dfo}E>1GXPTag$G3bgD2wSI#!5#5EKMfRvV@3eqloNw*dZJIWn>Z!n
+zPlnhmhT`wgSn!%AhEKpsILkqtx=4%WyQ|`~(SE?^*D93}djE$*#MseThu-DH*oa`z
+zj$JLz(4*U-+g)+SmTx#%87szlqiWXrlQ{D((ujr;VuI-hP`eBj6WZOu>diz<@WoVO
+zvt3LWgLSXxYcV0V1G3x8iqBLF(*V)XItLpj`^BX8D=;6lQ{tyudmWU;Mb^VX<MvEU
+z?&t}E_K27~#vD|RDPr>37!W=?ii^9UI-2AmE>UNKaP6+R#11>mWR94s!<)m}h^dj7
+zuUn%5XsTX)eU|cNs<mazKygKnOQ2p?B4(f;SG{bwm|6S;9nxqsh_q{_*okX<<9|Au
+zDz2}GWF&Ei5rrMy#N7G#1lFc1@sZYsBTK}*q+;NYbQbeI%ml7}l(;Ru6Luu^MihdZ
+zi`%a2f&21K%+G2K>e<)D{B5{V9&Hu(h~^;Z4v2gF@GAUwi+gq)2bKF}vEVZD;zrTp
+z-m*N<ti2@ey@Pea#fwJdPdJH%Hfym9a7HY2ss)3l=AO6@Ig2o|vAAy>TCYCd6%S;f
+ze=mcI2TG;@UlS-El>dhw0KIt7vJG%gd9gUs8_RD`@u+t)XwuBZk{_-B8^(*JeHH*;
+zF-<Hzi*>`oT=7@|{#=hQ;<2Lbc;V*aaSos8?3v=p4tR)MOMCJ3?l+1OW!da=yjVWu
+zG<Ny2#qvGp&`NzzEI*5J<_O})AmmT=l*>_e{-K@3D>-W5KQ0oly{-qEtPt_$a#SPA
+znu<5C;GMRdDBiKb`5MC)@lMeb>|{0-?=6f6t>0uL@-5572Rf`TCt8RPV(|=`28m+j
+zWEr&eHYq;S^oA@dRt-XGkvmd+q*;gRcvta}MG%&s@kZoVoD(0tdyHP+<>KRpFYy<B
+zBtA|+39ZjdBMMVO#mDzi>si}Zd@`dFJ#18b=97Rdr-%6L{6`S1x{EK~qBKg(#FrD0
+z<nEblL}BJf@#R%-Xb$cF6KgKwqcb>)@8+Nq-Q|V&B`Ocpe2MsVBgO}{RuQ7@%w~V1
+zFunqB<PoagxE;9J3l+C$y}>+*3MLIeeSACBS#APV^Ej%j(qhZ~IyKp94gALTRLrvm
+z)xr)`yp6NgC#FzI*8}gCGnE~2knfN!WlfN%e~+iE&n(a=8d`58sx|G>X}$OcXxw^4
+z>%GMapg|fn?STt$aS}DfHkr0-7b6;kA;+lcplMjvf2C%~mW9N@)XcLZz#Cg?wzL6;
+zid1U$TZ<*$QEJ|$C2#{gsCoA|;OMnF?3GT<&o2eR$C~O5c!orm2x?*K1^nFrYN4#c
+zsOvy2HskGa>`5DErh(>sZ)$bt4d|A1qD^{lw!$8aj@r23eacuzZBB5wKCF!><knZF
+z#pnaKxl`Nymq2UUg4&+NUEcN`wY`HA4%6n+=6gqA>UE+myjud__#tiaAF|tWS0nOm
+zt7xn41l_)OXzMn3y~}sd)+rbY6WnR*)cv4|Dx|Gf{y|^mS&X%RR7={Si8a8K1+>Fh
+zEcsII(GIT$0{1?RI(oW-x@sMDoG}A5+uu^hO%H%u=Rlpj44^u`lsb9a0#|v4IxWMt
+zWOO`r`VaqKiXU};pMYw|C1t{Ny+Qk#x>}=(alV+k<$3_uRZn|&!1z({nD!2Tf^*ZB
+zw0CSVKvpGnx5B%ed7pYtEdy?o1NDq_#%*0eJ+GI7_CO}}d}ay!tpYl5=zUZ->QOI!
+zJXV?!)ay^|6D{eGE@;5Nv4IY)H3e0v4;^Oa02*yo3+2mnd&ix0*vJ)VG^wh?g=37U
+zb2^4t0N`##{qz|ApEy##goD`D(kni(_J%QZjMEO>;9f@LAlQgPvYL+Zz$CG_l=_oD
+zT?8E>Zk3=&BWn9r8j%YeYeZi6iu%t-mUJSNj^!;uh<!@OUiHVDFq{U+ok1|ErUA3?
+z`#)FHaczI$+P_Z64Z@q$=Gy=0L|?23(;Vo;AD2LvSVJdS-vHJ4n?_V;9i@{Ng#kaL
+zjbbyy#t=<|We?z++tH9~TS4vDj)t|z^ir{ahIP%t=0|55_SX&I-~NS&=7YfZG#riT
+z+}K+*V#P}krk<oz51ZrM;aD2!%|NxXKaEPM1@7Qo8od>(`Egf_$mtInk-u7HMBU&R
+zI(<w7(3mC8r!#7uG26P)I5j@BcV)`u85XSxjlZ!SbPEhLVHGNvvkuYO(lFrP#L~GY
+ztpU$}rgNKSfbhmeVR6>Y3ft49rC3!Z45tflGDrJnJYCq<2e_BB=%U?tBDd!O#V1a0
+zd1?zyJzD@8)44RY7A1`>5?$)jA9yz>#Smw0n3zD9yY9l>cb}#?^#N6{0Gc-M6TpcQ
+zn)bhHY`P`U6#@9bmjg}516sA(e40M;8G5`@Y5Ih}@W_g<H2p&dP#;dGD~F(?V|f_O
+zXoV_T`7)Z}hm6+Ak7izt#S?>KXy(T#&@^_XnY9i8B?GDAW)01CD+W`=qXghrDODC)
+z<Fs5qy6QAep|#7WS<(1x_m5NDW?F=eqH9jv#aDTB%>#TSeG-i*O#VsN{5hcEix*w%
+z+#R?RpXu5$DC8Ryx;6w$=<w@wZ75bo`Sa;IJY|9Jlt<V7hfy*45?x<&9k|jsx<NwO
+zqOlXr9gc00<`0x(Gp&dH-HUGd)*rL$P@0D)4T4p;5mh6tjHo&1Me}?y=|y#;+y1nj
+z&$!TS(c##1JVLj<egNu)tLS!n^eFUYbh|Ig_9uoZ9pd%fKiAOR1y~*xC(^=OeSsf)
+zf$lre3G1}=^ng3|Ejn7$1AjVYs`m8IMO^29m(!w`=vh?9D~5QzW#({tRE7FL%P;ik
+zArnvq>uJg9Cm^ivs_c!o^PfD5o>rrNTCk6vHbZ{-EuNm<&;a$;;k1l21od<;BMJcy
+z^lT+^arggdd0ZCo#U-?S7ACew5wv_62GW@qY56Hj3^{M<xus>GIqI!+n5FMt>`Tu-
+z`wLXdeT=B<)sS9jXaRh}MtZ^00k{V(>E)S0c+m^#l@I@c)^0q#y59sFrb`sVEQ^7w
+z>9wbrrhHz~>l3lzak>e;(P<uV^K?cO_IS~o_86t*Dtb#50$fvp-WvT8_@3SA?Ex!5
+zt9nT9j5rUPB(zz~a&X^}M<2NUdFeqbO+$dca-3E<Y{i2+ylB<XdZ=G6qgBT+V(hp`
+ztLMj}(_%Y)+79K^;J@k9Ct;wOi6fo~)`p<%v?d>;>%UiM&FwG19aGV_J+Y-c`5b*0
+zhy%nz1pTO&0sfQeCl@3^WH_xY2nTM*XCvw&&FL50&M2eh(ytSngUa98h`h~c`t>SO
+zkf>Gkn=97QcdU%aDRr-P_3zVf!CUcg4m2G6`GV^nLBD4tVF*d2-w!VU&T|$0ej*&D
+zj=l81ZTS7oX^O>c>+l6j>F;h@964Db!NnTTth16-wiwAW(j|5AY0zF9Drx?z24P#K
+zq{+uec*hO#8mK31G9rIxo1`7@3BrMHk~SD~uSFk;Yo!HlB9lxSt_AhxS&|7J=A&&;
+zU&)=V4`2L7BEBeu^v#zjO6nTdGe+dI-bpkPE1r>ok~9#{yV>1Vk|VbO|I0;^Q|^Ge
+z!6-@oiWDX~T&m}fulatGX;-W&V&+H<+N0Dyut2i-Sc^=psnqDqK)mc%ip?C0Mv~Nc
+z_us(PdP|Kfu7gIGCE4n)fj0Dq;xk82rtOegev#2uGGCcCM<3Yrx73P`2VK)fQmgn6
+zNaqe1kzZLLwd;X4rS@H=_L?Q2YO`8$NInI8Y<tOJaUAgVM9ER_4G=$7a&k-sE^wpd
+zd;oc?`i9i06ZXcqt5Roz(YNCd<=Gq?+oe*E&wrzUppkmo<KVpOA|vvd2aTv}bXBpR
+zYi;?!S?bpXIb>C$G+<dWwxrD@uYyCsS?yOQ%+(vRCrW<xK7x9Axa2qBF1p)lq>&d|
+zfTr^-BWgddmPY<a1<j~>M&v)8lt#H=D@-p)qbB2~G1(xEjzMF`e@`X<aSotOD3`_#
+zS&EZjSyDg}{+xSXr2rK1p;?X*x#-=}xMA3|(9D#^*T`sESGh=&dLl*s-y3PtbtLbz
+zoTN!FO@NzmN($^023+tnDQJ5#4o~_?Ax`g6ap)+8lzs<ZA1O_~gzNssFlkEPIRKa6
+z7*RW@i!@~<CiW%?QfMeXlj>(u=*3b{-?fs$Tt0#}vWpbf4`rNZ@Bg3@k!WU^=qZKW
+z#$rI1B!wTD1l+^JQutYH$<`YsMKFxmA%0TC*e;-cc3q0VqyBY%Mbgv^OVAFPD^0~l
+zx_aOlDeAyW;GUF8F%q5&(QK|X{pcrjID|?wnj$YdP$13tjZ41TM~VZ?cX8LGnYo96
+zcfBFSpPrAy@Av0Qv$l@Mj>{G)Vcj#Nk;kPuL#jaQyGWWd^%~mBM;lRyua@R&G4qwq
+zRXWVmTbgD_iRYsMJReDhofwEpT_nRrr2WDhWx_mb%csTCqR;g~+d5iGmN#Ho^-Ee(
+zz5=7-ZzX%4b@=-^(z3Srq%>jDiYDk1>*y<`$9jYMY)5J32lPhWE|XT);*A`gA!RHE
+zP!H}WWj6f7&W}r(<?f)FA8170>bwyJ{{U%K<`jGon~kXTdM&Lg>JCEJONxy_Z~50f
+zY4x5Fpx&4zWf#|?4|A}zhG2-dTB7(EtPSVRN*ipk7D&mEa_o?ISWlO7BAWw0-9-A!
+z9*=q2KVI4#itX{VIBD~;+n_P|C~f|MZjpKCq%9++0Jmj{l(+LPXvYOgTOXtV*KoVE
+zBM`5q^pLbui{#+yDQVZNQvi<(rTpG+K-<=(4u3~U1<9SjTr=yPROo#W_^bBPzAgWv
+zvR|qEHt5O3FVew#=YWe$P;8Ryx__{hirvr&r=B1k{TtJyT_dS<=`YX?`z9SHsLuw?
+zl8!I%17Xwx>EyN$Y&r!?r#lKL8^<VyBz>Fb&7`t`Y9vP2jmQ;9Mik=RrLyV2KsDi=
+zRF*Ou_!mLSu_V3Ih|N;Dgz56Dja1$OZ@p=xRDKF`yJL=Y&ZQA>lbBSI-5b=7QBuXG
+z0?c!p6=A-e;nyzdhE))#BMYTlIe1TRot5sq$K3vSzjW_CUd)a)()|e-ijV4~`$5j2
+zU6~*~=z?B{_a#zgE0jv<dZ`l24iz~rRsESq9yU{|I*xmMNk6Ho`V(3X5~PQ{FeUA9
+zlOASxprfsk^r#660&AS5M=wl3$)9i1#wty!&UuWg*C(m^%XSn1Z%I$qBw<JWq4d-m
+zvqr6n^t5kB(9}*>D(CABJ)253X5#_Y@0V(n`lv~0q?(rnptd<Hy}N;vg+1y??;m0^
+zy?0Ui&>!jb=HAlB!g-(*wo0G+Hv&~<wNz_64YZs4N?#h`s`Bh9eF@$P>fZs<SIr6F
+zR{mo|Au>?<YKnJkUPK*kwKJlIYnrJ{TVP?BE`5Kx0yL_g(vQZNHB1tvAMKyu>gpo>
+z{2P<zuL9}!A9<$f2<i8AKY%6~M&yRO$(mTCl>1X;Z7e>R$$2tY-2(Un|H%BNC)lfu
+zllezT!jAWn1$Vr&tq#e;9|@&@10xDynKCWi4O+6(TBbL!yqIxBVGH$!mw_@ng%M=(
+zRoU#kBM2@>Wb;ATk{$d^HpkwYdca2`3gNYK{U+<Mjz1+^xFC%`chZP_%f)iTn_GeZ
+z)KP9!oD6()w%iE)P1;q<Wy?_*txbdF#t-ne4hoj7dWC?h(O%hV+bNvF;AGp2T4<~m
+zEac|cBj%3qa*OGBpS!=4Ted|;b#$_FY@tP?G`ZE%AQ1e2%WcpX%USi4+m>O-*w#dO
+zyU^M!W2)T23H6%dH?osg3lzPkC^n1qhP(}O*MXS!!mr6)b8#~aYASa<8v@+(2-zhO
+zpZS}&a`#1LXwYdbcfW#VY3E^bkN1~=+m|Kxa%m32;MQ`laagMPMa!<IkfN^mA-nzg
+z`vJak??|k5`1y6%jmf=}qd;92DZ9%ju~B?j?vDrj_t30%kq3q#6>d6L_R?#R$nBTC
+zTFwB~l1uWS>p9qo<mKTB4?x@TtUUbVDu9!n<&nF)0r#$j@^+Df;b?_CcKLA799tv@
+zj2i`-M=ufa4EQyn^0@wJO7)JECzu2Se?PGfaYA@PC#?MXIwNBG=+{`D6o}pbnov0?
+z>ml$ni{#*>1^{ha$iW8|0yku-9Q<l0aBoM+A%E&0TNgRx3Z|1oKjkS|-*JjrqmskC
+zMuGOh9eHYS6!1Cm^3>PXpc_;sN2ZJbm{lW3@5G>_Pm*J1BPnm}A;&Jq{r|uAa$Gy4
+zTq*WO<o5PABHylw5rx~i^32p}09D2E%*{BM-s7ebxi8J-cnOP2>tZ=Ruyi=uDG$l<
+zJ3WAZS|iVzfE;vWCwbN(+`U|woM1H`v`Mvcf*&^eb-8kaK?9oPcJiEU-k@8YD<>XK
+z0Py}tHjD`amHk-Ra6cNfi5|+d#TJda$_r5a;`p}mg0w{#vNcBJtav4Nv9<qGQBL;3
+zJ+%6*oa~ExGkdh0d_5M8sVC*deh&cpos}2YbO6q2jGU6-4eEZJoT9t|_48hGO2rls
+zo~6r6(1oMvua{E;aqS1?$*HjefxEn1u}HBQ6Ctk*z?>{klrv^v0i%zVGXn+SyWf+Q
+zwl9HC-YF|PszB(jMSO@Djfmaq?)MR^LFh365kqs2gYqiN;po}9Yec?%ypo<`VcSn$
+z6MqXdnJeYBEBAo_gXOiiaERZxi@dHglAO@9%Gs1IZI*SEH#H3cVb^APQwnn6`p@Le
+zCg#AODV29$>jbLt_2m3)ECq+YRP2{nclU^t_f~s@wjq%V`)N?k-!B&qXbytcFS&3m
+z`YP7EmkVQ6z)km+_l-r$^sI-x?{Cb=vv5LaiQeC=v0PM$zvA21a?#K4Am|&&f6pid
+zmGfe`I3WtOD?Z63aXA1#`^qIdas3q^kpJN@7{#T@|CC|r=NTg(_dzAYqCh@z9S>Jo
+zzS4+-cvpG5L~mHPT|RRk3xYyHF0VWdf~Hh1N0*~|{(HH?<1iBWV!0w0Q{}K2xnj#0
+z;QBkt=P|kIoJ-{k>K34WS1Vtrhbq)1#C$wH+pVR1;XL|2?i9<H=eUAKy;T0!r!(*#
+zmGZwKr8rI1UcQ!%g>AQC@{Q5+(ESu|F5g^~hs_Fi`BqCae9+eNts?wA1JB71F3tm?
+ztdacS0WPT7ljO?yVpIVm<cEo#pdN8YepqoDG?ks@>NVCN_<d6@r`j0W$uB11F80Wg
+zYxZ6TxK<#)$_xhKRUi4)y*40hvXx&4#{xfcuKc<dm*35U@*6zXRvY9azi}P~D%(Q&
+zO{ZAwEW68ZqtN!0cu4*bCFAXgkw5;W1)(o5*T#Pa&8aH6HZ>Cu7rP+Wo_GVW@Ra<G
+z;vA5B^<nv24*D!A2g^T@;A-+(%Rm0YZxp?e|MSI}#Ku1I&(m>;8=0mPw!D|eGR|8I
+zyyG6m6=4);_gdMzRPW#F5Hsm?2!w;{ji_6GgPHV62CifvBS~XGH6jK-bqU)zsbx(3
+zhXc-|h{=5_knucZEZrH))lg=-1BpM2Vdlqi@pWCs>Tkb<Z_`_`S!Qp@Wfo5`!8Cfr
+zELSTyq;1NYjm8+?)xwAzH=qvfGwQHwULAUNufzN`Mij;zHKH#1Dr@1C2O2L&)?y<z
+zg<ewDatHRVJD9Rodyvkl^H`grEg-zpvv$@|00#5rtla`v;IlTd_8R<$Zo^r77bl#{
+zy2u>*HAnjYf;nXU3z}=kSO*cc(!)JiM`sK=`S+RQzono(FEPjG1)#P_U`|bu`)t3-
+zobbeZ&FXCCgk5pYdK`1wha70_dFI?;D{wXoS(h&LL6v=wb+haOisy1u!|wprL)9GA
+zUsf>J&$xkx6tF(doq+2&&xrgXGuFos6Tryc%suo6sINsc&laE1nj^Bl{c|wco@4!<
+zBFlg?tbYUC_75#s|K`iFGgZy{cP;?!u`K2lIsrJxGt6t<B_v7p*`QOnle~7a!F(|E
+zP(5wWhAjGpUeF@u-5Fb4XKR>`0VSxidCWH*1H|k$%y(BXXvWT9L-)M_wRI*N=6eZ*
+zy+H~~vv3^BMp(pxYR{cIEPu*I6kbAoErN}nF5^MWBiNXg=K#i-urYtk`9E7Lqta}`
+zj<Mhio}iibf`t%&5OS+nh%-`==tV3fa1y$Czp{|^0%)e^u_>ry2sDUIarFj`qXP?5
+z;WhX>vM?0ebTOA%*dPp`O-HcsX)V#3J&}bU_W&;9E}Odh3UDKiDV1p$T~4y7^lku+
+z*BFtjms5uWpVi^14Q!eYbKZ$+Hf<w{f8rxH?HxYXf{Se0r)toe7qOW6sNi$OET$Zn
+zc{5WMn_dCJ=&NkTWW2|x!r6@7w?N%ZW;3g>jO^Bz&2rAchTaG^Ytn2yVE4y(HY*6J
+z`i~Np(B~tlGM2G~aI7DWKV=Dpcp&G!Xg0^n6}XM-jL5GJW^<ZlVTaqA%^8T>wDV;)
+z=M)yk))VTm@_-TfRjDj7FAg;0H7xN8&US4{W%HJ~f;M<DGt9>zzOR7IufK&Nh24W+
+zyaXZdk@9<mzKyVnEgpxe)v+sV@g$^l_I51A>kZCQKV(auIAFRgWy|ApK#S+VxTV_|
+zI<ggy=7VOZh`0bWyP6>`M9fEA1e)Dl5Rtm=K8}bgVZIk)3gUIdC7{_e9uZ}MJ<nNs
+ze{6e3__Fjrv39N(TR9GI=iV)BWisCG-MiSzXSgaJ9A_E$;WDa`OIgOli5R?Z4OJ@B
+zEez=_8)ZUH7g&egud{U`R(Z|mvz#6nMg)oFEWq#E>RHaxtsrD-Sq^?oqVRMS%T3J&
+z?FSc@yAk^?vkTakpkJVQ7s>KoW03a$&9-jM0>0k^w)-NwN>1AvQRusk<(p!w!RbGi
+zUxugP7%H+^frKAonzVowv>1Zq;Ia|9F<)6>N6ZyTxvcO*bAXs-Y+w6iOg5|8{%y!P
+zd-)qtXSRSH{In2M<`>vur_MOk<ID~(#=0c+2|K(8NlKU(JF*v-;f<y2$ouiwNMFtV
+z#tyFb%1U-rg(uSRB@J206{JA3a#_hOwA@w<WB(8}miXrEME$0qj^1iS&himE(PtgD
+zxNftP#0#~A9CmV;A8;GY*~t)0&X%{>$xFCyOJ1>4L2<zSe8NucLgSk17&~>x72st6
+zJI(6hY8lPS%#gapl(Vu@b1UHe2eLB`=6D)P7k1{MIS3!Fva?kfBj(9UdWJ>o$*iIm
+z{_TJ?R?+7)XqN3~6$1{TZ)_c_IDotNYU4Vr$x|+8SQwJnt$yRtfq#VE`nNY|u54tt
+zH5f_u&SAIXD^Rn}V0Sb!2)?n14xo9p)rf+xy%BZG=Civey#cOtGop6TJa)gKC#Lkb
+z?BOEhLC<s9qjAVT?W)<M`*E0ipRvb{AE7I%f;|bX0N(H^ojuu%6lLce_VgaU@opdX
+z+!@!=&6Vu=1rJcU4Q4O#@_D;8?BxRdCFd5h8gJBUBi^uA7jRShMYFegXrBDy%iej+
+z08WtWu-j_(?$lJ^=l#PzygLBGp>iYY(qh<0&k)qBN3u_$SrDpO@E5DakFw(JLs@MG
+z?w^=m?6X&2(7vC*zV60d=(dV|vo8fm3S-}GEJ5ht%D#_Xgo8>=*!O~DT=*93$821{
+z?jzVw9oDTE2C<(*vOxX%3j6g^1M1=P!$6llap7PkWw4^cKkA~vie`9JN|j1mRHfp^
+zKUCHf_Q>whke7;Ft2qZ%cJ38Tm!b)exlFaj4m`6vv{kjp_TH*9$@Xu_>x&*g<)*Ui
+zh(Nw|cEe|!l<oVO>zLj2rN*Hs_A_T8s#+*}b6Y5z4mGa(kxNy41C{dTP{+ELxoUo=
+zDqH8F>65+WKTawdfS=vNvM0}0buPMU&ZlzOEA04@DMK3ZMMD}184lS2JGnO57Unvs
+d=s|zM^l<ikTYO)xx4=@~{}hVe|I}Tz{Xf@c=<NUi
+
+delta 31117
+zcmXV&d0Y+s7st=ce3zM!wHx6kZG>zoYiL2DQdwGLsUBNG_VwB$iA+V-$i8IX$x_)B
+zD!VKRS+Yge`W@5nkLUHiqo;f4&V0Y;e9q^bNxfus@toC4ea$8SU;|{7jC2L+mmlBK
+z#;ExX0E$NsZ^RGL86rF4kvA}1XJiOSS*k`lZU*u^@Vo;6Ez*JYivno*kNW`H)&S<~
+zhBQG=25`V*zdlGj_L~jR4v+ouecR!&{}=$rf5&A=JnoO@<b=olQ;{Z6h4s$^XpjFe
+zASk}VymbUXujWAeeAg&9t5(U;8OQ(-`{KDHsY@LIPd{L{V^nWJH+pzJfX_C7^Xmcn
+zH3lIx0l;qr(Et8u<is7o|1xmB7xEd<aa#cTUjndn&?sdEX{6)4H8NAYU;_pNeN+q(
+zh^J)g4>0%;@K1--96@KccrL(@3}ANS0Y+zn5I7Z}I2Ty>Eww_>_4Z2xDdrY_qgar(
+z`2ZU@3^^XT6iCe*z`Je&GCKy?sM$cG*8!W-3P|i$fT{LC)@%i~Y@$Y4S4SNp>cj!z
+z>Qqs0bZ#M#W9}duzf(7fEr<O8a+&~z_LV$JG&0Dj<b}0Ba`5N-|IgzmwPSYcj7E80
+zJs^+qLJu_q@?t-*kGp}q!f&}G4agfCpu?J}EhT;9Vevpd-Un7P9mw}~$Zg22K<kDf
+zFXFFxs^cVGZ~yUlCIKM(?*&S7fR%m#Y7z+a&I_apj9mfRPy%UahDP?=9ca5rK=UaQ
+zuRxW78oB7C=HRC`T!1TJ8%Sd>Xyhi<kh}5reL|K3H;-4V6UUA}jDZet2hymOMjCmj
+zk`GffGTkGMyjiqH*}e|Y;WL1@3{(w7XCPaEMlA(#9DWK?nlVx%>7A^Rj@M~qb?a;7
+zt|l5~y${fdVZi(T0XppxaNpBFmuv%hfE&<d`$1Z`0_d77ke1%m$S3>)nmh;S`o{R5
+z8}Q|Lu{MnWwGM4+u)z1kwaC}Z0=hi`#95^pY1M*CcEPWL|4!Xs0o^kcgtT&v#J8PB
+z`gAJLy<36rc@OkJI}jJ(IU%VruVgnfjr`17+|1!1F2r*|(#Dm?20Hhm_7D6{4$w?I
+z`2(|oUcHD>W06Mwa1GEL+&OO~pugt>*y83x@-OE!%65eqItByz6b;NC*RkVpV66y<
+z-Fj$bV`G8g8i(%vfE}s;R_zY(UU;HrR{t0VGAjq3IS1r9vw-I&1GskvdDcXbX7&bo
+z!Ec~tj-bSZ0*8a3lpF=IT`^RBb^}P&{!p#;E}%YoFrIW6*n^>9ykRu3|6HI(z*>B-
+zu~5_cD@f<xs+*W?>z7~>kq?6I0hlZ(0(L(DOdi<)NVP%d;s?UoM_?*t0RIpVrpZTu
+zuHC1WF{gfqpkCf&V7BgHwj>?I5s^?owFJn+hfx1m0f=W_K>gp1K|CTs18FM8#y8Ng
+ziUsgzGohhnI>4}>&~RT7NKs3mVNpJ?M;BBB*BLUug2kK{Af0UwmSS^|7U;pU^Hrc*
+zSAkVkD-e4v(#S_#0;?ydfmuuh>mzM}*Vzh9{L+Ego`ELAegPZP9-97o3;cE+Xx8x!
+z&~8^NxjY)0yA=VLmuM7+bk@l74np%oSD`*}@Prl%&H%6b8SJM_!>zX&T8+nR`8r;0
+zDeJ`@1**5K>)qrPv`h2@-r_B^dyd!2dj&XI4genS08agI9eG}W_G}jj=l(+b36p@}
+zEpC6%6WFd{(BVm2U`25n<#rd<{j$!msRMNRs0U%fT5xtP1<BC@y3L9P&If|aJZBI-
+zQE;vH4cO@B;JS4Qu!e5n))FsXLTzwA=>_a}A@qov2lRVq=$VuWQt>e8xeXUYYG3H(
+zWev169D1Fq0MRQ*BmE|7WKq|l*V%FyL%J~V5MO{$^$&QAD8Lo84Lo9IV7Sc(k3;i-
+z#ngx1j)}lhBA|EZZ~%RwM(Xbcy<;$3AMJ_6047!gPp@nc=Q8l@-w|`rLGWCP-+!_X
+zc$S6$9r;?_ujmb>XQ0n(43&eIKwmNo*u9a^H^L3r^Iy<+0Va<kW9XZOyUg@dC5O6c
+zWUnS_l<V7oSJHV9hYkU+Gx$EH@4zdgC9n^J!8;-lL+^C(>G=zw^s`1<VE`ZBr2ySp
+zfzQB9Q2Q8Jm@VG`zBy-sODDl^8)l_Z6#T80fZWtVjW*JojhzAhSHI%InhO3mE`soQ
+zh(<a#Lp^7tZ!@Dk42Vs{EI3pnGmVCUju=0^>|kKxBH#m7!@vs^^GPxc{GNqD?UY)*
+zir!!@K)`i8@mZJ>kX)Ssfi+_AI1>V!od?#~4FX4C9Gh_r0>|K9n^6pb@#R1+tbxFt
+zc%jPh=Q|TH)=fd~0=~Ho1RleWOC1S;<(43&dO#5FRodJKf~r{m6F3^hg_ar()VRI&
+zf;Mhk$!_Z^ImbpLvkBJ7&lW*YAYL(><`CS&9cXI<1phh*;!>uOE_kYuHGKkuW7dEe
+zvqd9+R|JEPY{f6sK_gf9!{FaLL5$7%M+4BsMi7#WQMh3l3^@@9{A+axjeChvx&?$K
+z7J)1}LHHnySr@Y*{6uTi4c0KS%nxY)+c2vCLV%2IFe(^-Z$Jo)3R{FH_^FbwE05(-
+ztF&Wz)EyY@yBmb#0UD*^O)xs5KSuBFb71s&FOWMY!{~Ro#P?o=h(;zLkNgc0$-_~w
+z+=H=6nC-hCf$=`Lwq6^<_<w7s`zsiqi0N<IeVACK5O}*SFwtrkM)3D)MO7Pd><QJj
+znqI6qU+q~<Z+M>oOY8~I9%ZmJ4#QIW!LantGK_YuASTWT<;`1IHq;*EVQH{z#wuVt
+ze#5f;cYx~BHL|m3G|HyuVEN2k%!}5rGO7T0=N}LskKa1c0ah7L1m3U-sGf1a54Fcd
+zEdi4lsE?8%h`3*ZgqgVRUiW~6^blZ=oguL>5~PjAu)66eU_H}ebrJ!X9;}fLItQya
+zQ=lpRVa=fan5<{OnoGk$dhMf;Zx4nwSB3-MVWoC8*1NnN4k^C1f!6B*n|&}0@6LuT
+z_uN3{O<;Sd3WEP{*#7bau#5!QHL?i^O}fDDdbfbydj-3%;0C?5RNZ8(>%HL*>@Q2j
+zEV=~_9GMP$<sCTaSOnCg1sptwy60yp9D1CH>MID2{ImmB9t}rZZp3Yn0VkWy0X`-h
+zPG;5vw$)dyFxHt><B-0^9>nBMkp6rS(C)^ST%M!0tgbV>nhckIXMtRQAY4XiDvr6K
+zk&Z2at1<=V;SN_nVt#hKs8O01sFB*vtfW(1CCC4$<gP;+x!*&L@>m00dtV!*#XaE0
+zu?YZ?gW<*-JYJL!Ijv2h3K?Dsx5QV#>i1W3s@LOpYL;NgTB4R!*BeI8gL~$dK*N5+
+z{RSxJN4$kc{~bWFvcHnm$HU_ls1}F3fG2_kw0sCW>4|x*Z5BN7#yDg1913>d!n8Ua
+z3QqI{X?|CDI?@Ux`Wc>8_X4VnfoI2l0&n&lUVKEg*?gWx@})Wy9<>JpX=(#SEme#t
+zJD@191Z2mC@Oq&!NJkUl^)I|AK0zAUiWqpa;{xyvhv3amf<J!?#RKunK8}Urg?f-K
+z-h|>ahf%p1pg12hz<(UxC1OfC*Q=5_r{TTjVc>Dy;e-EuppHNPu>sKKw(w!EAFzU3
+z@Zrn?kV8ho=h3Y}I+3cjtf{kGZvx+X;dY(%7`}@`f&OR>-($Uiw7CyI8jb?eZUX!o
+ze+1a-wd%N<x>~q_|Hfk2*mFfA-_lZDT~lu`n=Q!VM3Bub1$l`9q@BkFIWHT8+EId$
+z-&`P70tBP$xj@$i2sPH}L2PhEsI?dM<M1Iu9pNaDkc&c{_bwn66$&QtSQhj(5$a~Y
+z2C2(Ujil>KjV$hnQ1=6FpKXF*mcJZWgT6xj8plC(sMWM_6}`~N^C0f|EkdJN;Q;C$
+z!J-E0*dFTy%Nw`}UY%17wRCocr9#t?aF8d+LNmt~Kvq2#>}^nJwHhhdH^tCWg9<I*
+z2q4{wRL|AY_kLGPX!8p1Tc=$@+pMV|@Ed}|INVCr!Yb+9sFJ<B1;^2rC@>cbj<@!M
+z*fT;SA7LdprQ!Yi+g-J-ZLU-Z9pX`^ynL#9*Vg+6#tU7ARY3P`7rKRP!Ls0s;L>d}
+z@cGGt>&V(D58MRTnJ0nEEd<xU<yidg65PgQ0zKSLa2tmruz#RN;wlJkuR3D7`lOz#
+ztrsnut50j|#BPh#vf6sHy*eRamIB<hrx5f2&u~?)5Zq-BNVm_ZE$iq4tBw?c(~p8&
+z%|{5%!J7EnBVowc8X%P}7lur?0?}|r81g3#_~MbmFhCi5@2xP*vmG!OMF_3`3FL{$
+zTPp$HI|<=yCV|+sSR)$}t!}ELGx#J4V<NHev%Dij#B>1Rk*N@|5(DPP9m3e9Z-LmI
+z6vk%cfi%QP82i%*c!v{0<TX?_uI|FP&@>RHm<Z!@aRqfbC`7qM0yX+j$tK@4@`a|t
+zq*w=_iw+4>c0>Vx{!o}Y)DlQilrZ&nHq_@=%Y|vaD2#vi5T=DM1X}x%Fzql_#aB&L
+zZxfw3%uF3&Vs7zAh~9n}q%9qU=+oO!&_xSN8oUJQ&=6rs4wif;UDX{XHZERAg?M)r
+zNS$}Ws;X#ARDUk0m^_JB13~?n3S?<tA>nu$h;7CQi4FXKI}Q<&KVZ4Hw3SBwVuD&-
+zr?X3&C8S222GZC@NIj4X;#hl)@>mddr#}N;@LSk@H4LQu|5R_CPIOFBN9b(CmlM<#
+zI$f=aErp}YT!E$z6^<T|fPZpRkL&b?SpmZNM|FTbG_7Po9pOR+1;N8w$h5{HNUknq
+zhNl9bc}}=IC<MfMHHGVE!$CSVRk&G<`<&esa(qt#do2jJOuvD&!b!OGDi6f)OyPE;
+zaA2<8ggXr}j`_C`?&P8}3RQ(WA4L$$8wq#HOF;EEHS7LBxT~%J(V?G4+PZEfUA}0P
+z$Gi~k%}fPxbUTf7=NgS%2@~$U3c#8=MBQ(yGkggao~EH#e~~FXbKL|&ytVM$7nRJs
+zX2SE=<sjNE6JDe&0=dczp|CgB(Ca1(g;})$rY#j--ob_0!C!ba-U^7(d*Ss4D@+^5
+zg*Q*;gA_baDDHqOt2fceben{C94q{x(}nl-+5&%HM|fW#K{Ng#L->FpmySviO5}kc
+z`c4r(IpCFMU4&2XUjQ6zD|`+w0unq#9aq=9`)T2Cd#v`)oD<4VUjT8WyHN21_h^kl
+zLd7o^5X*`*(lPr*c<lo0NuVg5vIM!&MUe=$c=~nKoVq%*k1Iqzt{w0}i$!HhJV=c$
+ziAJU$LAKVb6?OH#?<a`HMTbF*h!AU(H~@Q7O{}#(0i=L4Vy&OJn&Y2{b%L`2e(n-=
+zk-osbM~QXkqP2F<u>n0Ydmg(Zap}i_USPb=+Fu1AD6D>gfy<mWVCsHQ+B>i>>~I
+z0khsHwyuw>qtRcnjSvmw_7bs8d>oLYR$|+B86aCs5ZmrR-F57e=wMU`;-ooZyO;$)
+z?`{#>{V4!An<F}XJPJ}gi0xlsCEPDqY_FYOkl5h~7ES@D#7=cC0=M%OI|tVXm6+8u
+z1m}s)(?db>`Js`CdqwA%79g#55}mI-0=_~OyFWzB#m!lC@tB0AX?xM73@-uq7TtQz
+z!3*C)bSvx$LXd;#o;4Z2>Nc_0#vN!Yq=_E={n3UwFM2on3goVf=;Iv-;^Yd^XVg}Z
+z3gbl|tep(}`exC0Q#!~C&x^iS(GtkJEBbjWzz*IL{iBUR+|)`O(0e{GT2mZQatBCE
+z4RKH_EXk{V6a$*!HjOS913Mf6>3O0U^z<9r1>PE|^tqC4bz<<P43JWui6LjbK)g9s
+z9JbIDC3%E6yv!jOq`=o=_}POXy<H)Ozs4NC{ka(a1>bP`JMq67ULckA5=Ryq;h8tm
+z$cNWLx&pa#K_eeNKpYkM75DyladZ@h@@BonvF0en|J$yPtFLR*BuSib{wRR$Loq70
+z2%u>#abh~!A45)xlVa_GI=G9IPGfc{94=0Nj9DadvU<F}jcEB;eOg~{H*uCY^DzpR
+z$A82*Rd5$1^%3XkOMu_$B+lDA2SDyAE?Bq>=%iz+Z3A<|IC0Sz6SP2fXry0{i_7}t
+z0e6!$%3W)U%L*{dPWUaxnxPL-R!v;K<0vqrKH~D6F~Ce6#JD&s5SWcd+J25kKFC;H
+zq5BQY{F1n$cOG7v<>HF@?|{|qrIGi(D6X1?3)7H7#8tQPMT=lDVSp_NFRO|P0k46c
+z6~x51D8x735|i4a5_xx8OmeRU^!`RMY498%W7dmnMque5`&3->A|E8*bTN6P8%P)0
+zh-+t*0ytNQ>prQ#CMe>Dv6vAKq=*}yV5(mFS4`RR7^H6_#mx%{7}zu-?u^47Y1KsB
+zRSm<`#AV{HOa8#V+KRi!t3c<4io4&(0Yux2d+<8SA-BXm9Y2G(W2?Al3WlehoyGmT
+zTu`Go6A!R{Add+Y4;j_Ln^{9V>{bF&d28`-vNe#%8RFq>#vn8k#bZ9FfY&}Co@hC`
+zD!^iVkt$$-X{F{gG&Kws&(B4@GRj@NuqPi2l#b%XwrS`KO%*fZ%RpE?P0aX|2lUfc
+zG1Chjhy12u=G(Wx{`L|tEnNUSYPxtS`73a-SiH3E9}VJVGu%B955>z@KLHuiQoQoc
+z8klljyjBYXOMV~mS{Dp|e*(p8p4lKbHi{FkP4oj^oGf1N><qMur+9r<Hi+{?@p>Ls
+z`d)3+XuYjL74w{M>AN=(^H%o)=+Z^Z51WpL&nWSJ#{v+)IEnWMVIj7{MZA9!3!>KL
+z;-mKVKx8NJapT)SuT>KZrlf)t=PW)iKMeBV6tSoq`r3u3#G<@(ph*M7*EL;%ZA%c}
+zoX6OHaIRR~^eRB}bg|eCb-Q6=v{?M|21xr|#kYU3AZxKleBZ4ANHYiV{hZDqC07?q
+z*5`uoYQ6aJ5&FTN9^w~<x7i_0{91<IAQ>-~PQhSN^jZ8iBOka+wD|pZHY!y&v1}(Q
+zTIX=_r@kgg_o^Xlfpotv5{sDo>ydT9AU$Y=FL38P*oxGF^soui6uB2!7o<n6koAy9
+z#9#U2K|C*rzpG=7w#Zui{o4)brKjSbTgGT?{uKXKD*<6+Q?VkyDkk<o2_`)U*!Nz7
+zKN4mTQ%QK?4(#a_NvsF}Vfi<SiWzFNMpX=(Bzc8|3G%5V?|uNJ*FcRl!b&5nS{wNj
+zr0?mH(S%m0N;gVIUok(<G1Ex=e55Khuq#r}O{y}Ap-PIBs!qNHQfOz5q-Q6MG^~Y2
+zX7ofO7nVrX+M$9p+>DZ{p}8YB_mZl2m<N3JJE_JaJ-`uLjq>nwQmq&aL3Qg&b!J9l
+zFlZ*3<l!}UzFEoZ-!#fqP5;kNl1}gizU7XjE5*fC6s%Eh8ZOm+e+buRs#MP`4kckj
+z$t>g!c=G)}C9`3XKx^rw2JV;^7X%>D9+>|@YFG;$<%kxNxix<9=`NBvn!eJFMN*?4
+zaUiVtBUzMVu+XoNtVayT=2wzxurN1xNj7n<fKGj<kq^5p+17Ukp6w#pK2-n`9!gDG
+z;u@diA~lPu2f~QUQnLlAXwfKAvwSQW4(^v)bo>U=wXRaj#l;}hx-GR1Y>R2&utpyG
+zL2A7K6~(6+QtPafC>a__?c%&Zh$@yG4f8-YSX_{t(k1~-2&`n{JgLLlYuGB$OC64`
+zMHjM$)Ul2Y@Xu?cjwf*K|NJ3!O5X@VNvPB{#{;PA2C18+A4q3xC6~?<fzOa6SB6FM
+zP7ld-IwnBdHj?`g{Qq2%B=?+96n-UA&%5D3YAKROPkRWZPl_auDGNZ_R494u4+DDT
+zs?<9S-+<iK$jYxto|8~F5BHHgOEZ9dc`EhYjkZVXE2;0XQV=q9l2<}EAkCjj-Zesj
+z{^}(48;QH!bG6iOFGhnjrdBl8^&aUi4Lo29!k!e3;)rfikW(9MMCD0?Z5@F47)yh{
+z`U1S#DGmO00&8Q3O2+0%A!o1#H(D(X*>n%&rQOsamO6uDUum>yIta5vq%m|V$a9BF
+z5hy6gE9?#}K}kI@REjL^2~4;uMLD5lTeDS)n${fHrP@-|J+$C9wvi_7HU>8Ci8Ohx
+z2v9#<qja^8Mp|R1M!8n0H2HiMkp5xP6#5dRs-vZ;#<AeZd<&)N6R`x1^pR%P5J8?D
+zFU_iM3VcejG<P_vvEPlPc}{5CockipbDaoaQde4(y9#6ZJ84P7!@#;-l9raB2wW_y
+zPFA)`o)mxkE6~{`>If?@vzP*D!*45)g6>Ki2Vx%Tvsv1*7yY*h$JHDw8>7+hrL>L<
+zu!?q7E38a~ud1oFxkpv$^qQYQW9vw#i%`IaO_t6K!O*mNigfnP2dph_Nf(y*qw88E
+zU3hpBJ60>Di)I1_-x^YeT?#Jb*HXst$3SYQss?Ml;r2r5l8^_&I1A}g8%#AHYe<(a
+zBm(QSO1g3=6LnHY>1spF7*Uzh)!`k0Z*-TgUUvoQa4qTDL<gV-V=3DMzxJdn(yj3v
+zq{;K8TkCN59e0;*ecT9go%_=5CO1LKIIfX?HIr_;WdX}tDcuPw0t1aWD&=+o>?3cN
+z?)Kjb62C6ped>-~v>Vd>ny*3Zw^+Jg-x{d@bm>9pN+4^8NDu!VukSBC>@XQ5?<3N~
+zH|Uwf7D<mbHwG!&TY5YRmvyycm2{p|$zBhoC-Pko_8zNb)>G+8sjRNEsb$FQFBR>R
+zK)5<pdOZ$fz{I!G8{=9a9DF9dd4b=3UY7LU5@TsXob=v+5;0-1^!~a7@b&97%1dLV
+z_m8Xrd@H1qy6EJEc}O1zVo{&DT>9kj0Kg?)`ZUIXj^0%1^L&gML$akWn{fwbE|$J~
+zMnW^X{+smu3SRU!6Q#0g0??=XrLrHGPSP$(Kejjn^rq5}YZ&^Dd{+nB+8Q26<wG$!
+zg-n(zuBQX9)|bFwj0kU{h>(jRhm9rTSX2>_A%xt@#g!VbQI4EO=rt8fzPTE?(Q728
+z=T_a34}lvUBP^{qn#I3}95)F&Zq`I8#v&?d5ixR(1afj8sTv*v#4I(87^mf-#Jx<a
+z>ka~c6h*54{-?Q1RnsO;!VJ~BiGKKqDALFa!*<?qV&OC$;QJI}nTPMP;5)IhM{y9?
+zf>_-R!pb48l0OF$8$6bRT4`iIlZfpxT))e5Ns~dlaeo~lO{Q1_-<nODI(!2%HcQQE
+zqO;o?Ozd4zv%Ux?_6J7*DVR@M+T*eqyo$7(hmGAAXGtqtwB(Bm)#^=khVZ(i&0e$~
+zGg=des&Dbs1>#Up2gLDxNV_;0=t_aKE1CoB&t2lE9|>&D1md&<vzlux>2y8=_^yGZ
+z%RZFn{yC(}ud_fqe<oegou@x{k*>SFfG?>+y0=Ef+r*9ZSkV;3Eze1hBtMX?ib#*|
+zepui1snA}?jSQsMph9dA7m!||SP)-(O+2hOf_OEYc$~uk@v?;Uz8Hfh`VQh5Rf+*4
+zn)E%I3aoe*@$x|KaVI{_UxH-(jr6bk0A%}KWMBg3nI?0|pbtf86)e_BZ`~mQg}ETt
+zwj+b5OhU)-f)N?~&=_PnoP_LjMQeW{8R2yiBsG<c7^?^IVk0uL4ocV}fsC4qrA6*h
+z5-}O~-Df`%@uws9ih7Z;i!q?KZcWCX>V)0C=jv2D$H3@V5;X~%%C~Ehs2eANjBZaR
+zN4~)CXG5k8E(d;eJ()6k8_EfVOzV9JCGI#fEhG&@dx6Y2hDyBlcrvrWR-m6V$;_V4
+zz_wf@GmoQ0ZuCs$&1{FACkuCOK|`biSy+mdN^&w;w7?(4gg0c-zuXgcoGi-fh#uWy
+zvZw;%Xm*B1(!Gc*@xKUcS^!y+TLC20lPr1C6YUH<F8T(n>JGBBehl^?KdUR6nHow+
+z%s<6Z^E`<evlV2Ir(}7p{s3MfBo3P$^z&S@!e|Z%%eY3#x-N-di}xtcgT()i0;xln
+zN}jYMYG2gFMmLFi8TIUJXQEzN3T%E?l2CsEkXw-?p&5qcW_Bb2-3qyd2}yLtt<ku3
+zF-cs3UHXd!BylzV;_wG#wTR{30dulCmjdgvR_)o`+)zf=c$@*+vQZ_E)YHh8b=N4*
+zzE0MJWrFzfBuS3MsInlOtexQp;`eK0U3@99J5R{^Kx`77D<tb@I$*IAK{mF|0{UPO
+z+1NH5tFy;sV>dgzD91?3Xo^b2g>0URXBA+lk(zBjOSUA~1OI)Tq>51>>lc&M`gtG+
+zS63^V>pT88i|ptU29mOw>}iFO`N%7>=OU(pKI6&WCUZc%Kb-7sito4hqDC_GphjBw
+zTpifLsrx0exA`{I`qwJyl3U47S2R+fl^hsS$s++8*)cDTvgrynr-jaNU_IHp2iMb}
+zc(V6CIzo@5Nm?&IV7YpdR$&h;v>iG45SR1N9^}xie{(P?<nW%QAbgojj*9ny&mBmP
+zW=#Y(Xcak@@)c)ys*@8W4R~}MIdP{Au*ucP$-mD*u2(@$FK`CIc@8<#>EF74OU}et
+zf<Yb^M$RU^1$KBPN!Md=oR&+{_h7_%+L@f|fN|~ZAaZUVCYLuY$hjBczzuoiyc;e>
+zw<F|YWHdHZ>XD2?lYkyACK>0^S+SW$GCQ6G*!+fMCg5FsZ6KFA`hYmB4Y}my34Cu|
+zaw!q_b^BA~@+2z)(v#=vYkS+8kI4-kE`o0<<c8@Tq=jnUQfD~oOme0qV2|o8$=P0n
+zBCo1OdD(7~b7BFo+kxa($BUS%CX-t}*!o;MUn6@KOl}P?$I%WOa{KutfY&;bXM)E4
+z<%=YrZvwbIi{yXA+_Sn3xodY3WV0{i?p)j=Clbirx7dm^txfJ5UjSFO{Svv~c{Fyx
+z+mVMY&VbnZ26-4`3_@OA^4O{nh%|#d9)!R6>Na_zeZ3dtc|%;R9sZK%jnMLBS!zW~
+z)27kn#X8*YD;JZOLyrLcW=CEroq^RmPF|TMg0#$myn0cFs>DL=+Dc~_^o_iEjnTaB
+zI#L{gLssrd8rgeyQk;n8+=pr8-QQ9WLpy7v!-kL#J{W{<)+HapFm^h5k&@S=fe*<e
+zA9tfDJ!3&We!+n%n?dCB?`I(W=uSTW!Oq~BhvZ8w{5_vB<jZJ#9C@%OrG589Cn{Nz
+zZ=-7CO}|6F%}0NslLh&1cN<uOO3H5H)mWKD%I-R&o3)9Q{j*nho0A`bD*8NBt=_ta
+zp>G`d+iD{S-v^WO0gHf!f=0$RRPu8dQZWN3g4S=O@Tma(<`@d!#{sJ|mkJOEf<<F0
+z%z24Hc@33jXQ0G)q;wYU(6U;Tx%9z8zBXk)CZZ5(N|o)AAnuE!Mn};WnQ)O-S(b%j
+z?fP_D<y0BEQmv@5(*=<0{-(w~BSF}HpBj(Gai_U&X!U)VChI(;)t_QKULH(qJl2Ek
+zltgPb4n>u2O>3Tb3et|7wC43WSh!E6wFaVb<EN*!U#TFQexr4si~{l4D{5kkA3Sdh
+zHEDMpgetTDu@8<K1ySAAY!IbDYWfUi>%1UZuWfaVarv}ff-^|td}zJLbAaq{re+}+
+z%DtY`hVN0j<^Iq}oQ$aXPGg{_9Mw&2biVUm)5a-<=-~QM%YArZEA-TAtq62v9copE
+z3t_VfwQgVw%qfRjC$t6n-iJ25fIi!HE7~*{Mdq$BYA2+D;Fd@2CcA<3^rOn#>J3$1
+z(U!5_fK540TU|>6aYPl3TsTMDSmLk84xnvj^arx7E^YJD2zQ|~ZJUg$A!`(Mn2q+*
+zc#%3J<J&zOh@&}2@atR9b|wC()TU9#6?Z^ddxknb-U^&V()K}UlCnhF=>V#cF{K)-
+zaQQXue4;kcz$fbdw))0K6}0OqtV!Ag({91rQ0Xn9E{6(1+Ip0_o<b3l<EMVa({|9&
+z9yu96$9iexbsEqfx6sVpIgIv{%rNF{qaHY>z|GBQ-xCT*U*1vg>D@r;nnJy2y~Wl0
+zhx)WX2_i42K6_5#s{TX!8I=I>9Yg!ir`U(zh|C1q^FAHmumFV9SLuL=w!or%=>T;W
+zF0aVP+6&%nKOGdb8Tdm+1FK{M^f1t%{^x+T>_dZl;pAa2qET+JkPfj&??7;;!_cFJ
+z^Y!TP-&h<z=|DsO48ci(I2tx+Ax<b+(y$XHAnrdw|GSHwC7&dXO!TM!eaHpr(gZr9
+zT5d2}?m={fGv3e3espB#1ds;Yq9bGdF)(zbBd_8IbT-l`?)T6rUEZgWneL;bqMzfw
+zc!7KYd|XRpA#xTH+a=?!s#Dw93OI_^P8Zl|JB?Tyf(^zb8gV=mhbCXqu`PCEK|Y8^
+z4sin6;Vd1u1j~r#O*C?66FTm407##z(+OAl15X)CqYmI={auen-9^j6+JZ*?LG8Js
+zSgr18t30Ap(lHU`_f@+(>g*g|(3zuCf%o^LvwE2TRh{Xq5%WOYHk!^#!$@>Dn$B*C
+zJG0FxHQLc!iKFvs76CoIP2KNkV=(ST=RLFocKtkEXfzSzmR;!LqW2&yeodEn4hA7J
+zSfi|@(ItMkuJ8S(OZLnF9=x3{weUjg<|JL(nE_9DPh;etIMn)xE?edWq;v^gmV^r7
+zU30o@JGSha57J0sY$ZFGX*4ji^V$nOtPNeZrya0s?dY=WM?gFfL1UZXB;m6n8jI6}
+zLMC#|LZFRmS8^KuJQ+`D^)wp07b~^Vn~>-RJefpepW()e-mH-|ROs^2=^zIg(YR{v
+zAf~sZaUIiurfsD0d{+Yy%wN&?$8o^MyrHZ9$%OgWsG45{{LVb}qmzyJ__Au+Uf(fp
+z3|+Tm4e)8*>AD!avomIDq>Z*{<g;gJlp9a1q{lwGzS&kZNRO!F+M622()BBF+s$Z8
+z*B4-~%&tD&@B*7v3m4H1zc5-ST&g5m<{L#c4=aM`#>^i$4O@e5e7GCf`DS!eaWsg7
+zdeSXt8Ubq@NmJjU6u<9Hw|+SV!se57`@ib4@okNK-5I(A+fUN*ZFEO}RPwzyRi`^f
+z9Y*KutVTN1jP7{18t7k%?yQR+aIQApX<G+K=Sv!Czo(V_jz2H51UhgD-E{}s$Gy9%
+z-W_y}H_LQS0>Mhnp6)rH2J$qO?iDZ`gngj<PNDrf^RpV=!M@}8?exH8G+`~Q>48Hi
+ze9}Xam^;$r>EX;g5Op)@(E@8=HW~D2IYu4*5qfMXhV*A4>c<ZHT4^!#j1LAUjJ5wr
+z=f<h#9c_mN(DVr?1ca<gT8C7!)vQXo^wG!;yw@m?*+9?jjl*%&7<zu$zY$7zdj9NB
+z5RMhni@ou<(_DISD!!i~g=VhBZIZcN-O*8R@a#b^{~NP?X-cp4%0}t@ncn#G4M&BZ
+z)0-ZcPbPTNn_uu2t^P}ImPKHh*ofxr4MhQArcubAt&uKF*2rJAqqo}s0BW5=b5nld
+zE!|A>95{f@DUJN$4UMvGAkDi}00zP59L;ZqA9Udo&HoodTb`i#Tf=}Z?n3W&ZijYD
+zO^tNn4|;d01pHk?`sgWI6kEOMV-+J{-?sE=UA*@b&eEreXvg@}qt9j;<63c{&&vO;
+z!EpNg6ISVY)9Fj^5MVQw(U*rTfaT1gFVEM;DaH{a>C5tbkWQYZMMmi$R12Z69?r+E
+z`xg4<Lpeb3DOzlF5vbLFwAk1Sguh2=aifhuum7SShTu@S*KU<}*86rGL_bgZ47_7J
+z@(c1B@+<I8IMg$#6xo@Uihn>{S(lb}F8~>y(b8gL5KlVMZzIs19v@7<D~)lUWElNn
+z8UiG`u{yQ0-teV}mRoEDaqDRYjWaOOE@Uvq3<r9qGfXqUyIL|~pdHR=)Mw&ZXAn<6
+zV>I&~nrB@Y{k009>no--!<9X84pYK#?Io$q$mb)#fnCgKYJb!(4$LS4<BN3|tJ)$L
+z{rlFest5l2$APSxIs&SQhfSGrYX=k(j;eVV^M0AEW)e0r|3tA`+e8quY?uiam~cLT
+znXLE68RreGzHu0E=kBb&KVH;XZ#A;I(^<nne7+#|jYi4(4{NmF9>|JpbwwAwVSXyJ
+z{ES@$!$M|N)(vRM2xgs;4Z`&f%(g3vdfSz(Ng~b_kDtw&9g=|b7|5DEj|8^i6l?x*
+z6u?72)*=l*zQTjGIDl8-n>lOgbrV3E$XcDV#PJQ4waUl`x?>A#^$1nzdX=?xUjf3A
+za@Ovi3YPRiJabI4#0I0kM*2ly?LA6BP{*?lF7<%4tEGB7>s><Ev91UEfpGMfMs|5H
+z>*k2V*yBI5ZavWJ*jZI0%iqnqEk`Tj=2hl87d?y4rO1cCHZN57JL~LfB(t7P(DL2!
+zg7xgyA1B8RtmlihxD@NMUip#ey`(UYY|K997u1i=SOI!5&-xA^jUUTApQ0Q0XEpPD
+z>yF9nH|x_JuY$e6`ixqE2KiCex2qNK<{eqznYDpUyv+I@IS$e=f97Rr31pcE^V*08
+zi0?z@ZE6A1%ymdK8fTU=?>2{l^cl~5q$Aj*8qfMI&j7J+9p*P~0XoOwG0blUu4P;l
+z{_EX9tm4V~FEhq5HDlKQWj2rl&Da1r3utZu8~6toXL2ALgr%n3I*|=}c?8I?V;Y&=
+zN;RjeuH&AXEJ!c`dVDquip5gOyt+o}e~|_IP6RsnEekH|j-BJ1Z1CW(DB{nvkcAI0
+zBy3a7yXjr#>}5lHVohRF!G;dW2KK|84dbKHI6KLPcdiejx3NYxe;gZr7S)D-I18<h
+zk;BMSquk)BYUrjDA6clYyE(QAX~QC-!ZDFnWn)b#uzhRTcn>|+g=g6Kk1@bfuCWR8
+z(P#S{#3q6s$h#A2MK^Q99ya4=bKq^$*i7tQNRyvyq&B@O=}0Q+=2FRBtu*p>lQqg?
+z`>@&7765;Jg3U%xN}AH28JvCs{g}ZFk+|^vW-~+bW^AvyGQ-=Kz*>x9b0^{onQhJH
+zu0p|CYxfbh;M6RD@(8xzW-OZH&g%Z|`ZiAj*pf!Lf~qsN^Z@S5?q(WgGK(#JG6|&a
+z-Yg~vqmDeD#r!MVa*frB?s~(P32Zs`%J|`9Z23GKewnhGEkAM!El<K$tZ)T!inm7M
+zou`pbbJWO3US})6VJ18Do~eD&NBy#ysh^EOSZc)*(Gz6-16ZPA0kBD_EU_5n@2N2?
+zsTXF*qV32+kVpBkq&}m;k0&=~Nh1q@HtVmEAK1;3BCtMPw~(#QEd{AcRkr3!EE=<o
+zS@LoW6w3%(_ZPi~rAOKNdZnnVo!ELy5yYb>+4?9nORJ}=A6;~Y`IFej+~dF-ePSEG
+z9>*@_8I82wa+YGf2c&VASjrxItg>S?a<5pHsw@EUcn;e-6urCkscd^E^jwT1D%m`}
+zlHKoB(qpzpo?naYR0DvXKhAd5*Ms=Ok?k7S0}SHpk!;t*Q9wU5WxJxY0CtqH-Pp@u
+z-pAP<Y#s=%!!*+2>nfT3l<ixI-{-$*mbS43*v9|Z{(4wnxoy|T#H#Gj)=+#>W&}HC
+zz@6xFT_X>l&yL^AMPuKFotTPBdTA$iGVwT;nIl)Tlk4n3YBGtP{Hg+VKF3Z)<AuI$
+zV5eUugV6W}JJTQ?BdHfVQ=EY=(gCKKJx8juvsX-kZmGsDJjS#+c#i7rrZbFt%Cf5A
+z#LYlgmgQUv#A*9k)>+(pd&=15x~K!YSFp<)w&DczdUkD49yVKS*tK14al%Jo*KeUq
+z^BLF;oU4O&f=0HlHM{A~@zDZ--Q0nJ`{`(QdkyO7PA4@|D6gb_3cJ%V8`PI>X2L$T
+z!cEt)-AGoT?!{rapX@~geCFY-4STUG6r>*eHPUjC6_V*ddo*N)Q4>K5bJNIalIrcQ
+zGwT)3irXATC-Xil?xJ9KCy^Crr2_9<O*OddI<`$=pA8AXt@^RAzp-VQd=Y)8-N5(#
+zWxu@VgK({g{rZL8-p*UByaSf^VI5fc!QQ|pv{iHP-M4<{#5WtnRb`yLPeX$+kn_c@
+zK&n7r(cQdzJU6O>tL0)$B|lqmqYzxwA@ej+(goQYk9{<<oIc!W*i}qIUwM_S=-fqg
+zRfqJ@8Fnw_wLUHb@$6Dw8~e~g@1DF)_d+07Qn^W<D>l+cbKL}-VxMTob+;D-YvRgH
+zJ9_}zd6=8tM62dv1+RO)Ht@uBUhfUMnuAXA1}SkMc3jCDE-C?W(I?(Wz$H<5kXu~Z
+z2-2^eyz$E~AYK2%tv-fAGj=47+cZ0j-p5&Pb7(C{r<!tGC#+>`J-O}t0$`Ws^ClNU
+zaD4ZpYTi>Pj_;*9_0*feFy2Ng2jR{q?$8#CL@N*8F6A2V`|H$k_<xPY2ReG{doSC}
+zJ3W)|35_7$dEILe(hl&hehYxVzs<Yf#*+?ExT}Z;gK0n|TioZaFOT9zDdVnX3-AGi
+znHt&tnd--$x{jeec%OF|z3ZoQuTglvrrhFQvvIvuAItlFn+WW84c@N;@9)@h?%OmK
+z_`RXrcdQE1>1%4&Ugq6HdEk)CK!%*<fyXkioi>UG^~37#T74drxDoi^3p}{07l`v0
+z@!(o`a#LJ+aC`I|%?9wneI%e8iq%cM@B!5$d`Q85phb>+=v|DCxf}Vgeziev^OO$@
+zG(v;*8qyAJW)D7W{Sll>xz2}o4FKRf`0&JR5Z(Xdp<~)%o=)ds5x9pBavpXMHDI(6
+z4{zp&s%Rw-KOYCe$j3bVE1GJJGx><J8TdI5`6vem2x4FU<62QaUdKoMsDmBXo*Lzd
+z%Y5_)f>CJ@A5#nES7<9fCNvIP(`WgZrzorDJ>U_g-LXGcosYde5H<R29u;GR4)7En
+zwH&o<$KmP<51rlla6a{4P)jo9Q@7kjHI~JvN!ZBm*MLuV3<H?S_{_lzasL0hn&Y7}
+zRH?(~pGyP5syUzk1;6%~r98S~4)&WZcx>PEK)N~c*qqhCeLwJ(KZ-!GbLa8@VT_r2
+zpRXE>ihj#(zG_NM9JXn}SKY=UFVL2+D#`?QuNGIU6a)Rwlqao4>udXJjkM1>p0qg%
+z$f{91=}C3;F#B}iYZm4L?;Xn5+)u-aiX@)g7r)lza=tDk23;RL-w+%JbdLkyw9pG6
+z@;*<|kHDuaD%4HAbw)O|_?Bh9Af3IYp6hMiy_D~$jnZ_kC*P4X2gvEpe8-(sVDYE;
+z&X$ir4oKrWXUqp$dn?~LuNYOyNxl=$f_nboySt;yadnAm?rGx^KA7)0We0ri0KT^l
+ziW|KZ-}}`Zqz#XG+Uz0_9b53Uiv`&3yTJEH7NYX4tC8l^=Lei!fqU4gD?IfswL9@6
+zkMYuv8P1P<vIk-441RQj9%y1ae)J6v!VPM!k^Z{LkNzwKdifqdh0~DIoCExf6E2xm
+zUDS`Bda<{STD_0C!Ix(_V)N$kXP%XfwZfMue#wBjWYcthIR?w`^&|P!KDgd!)k?N=
+zs^pee{F=u}5FQ=k+4BkBu&?}I?MS1m@jD@5AjQ1kcNSuDuUf`)V*`L?^x$`wI)l7K
+z;EziO1JpO=&jbfxhSwMP^L$fu!w&HmNqLwZB6y*I7io8GUU(g|O>z!@lYk?VgJu49
+z7~YYU1NqyM03iK}_=jZtz0E^;$&ITZTBC%G8;Y)*%D)s30I6g!|C$(r({@w&*Hqj{
+zb2{*^1v^1#I+uTIk_s?rH~;qM0I1FT8g*aGe?7npb$0~+EujNw`Bo#zKgs`2O#)Uw
+zm;cRa3-nC_uULmM@peA1!2Bs&{+4k(4Cv+vb!uPz@STrjc{e_sy0lz2s*Y>-+jrUM
+zQ7Vw92jnV)!-2li%T==bVKDq9R~sJ&?CVOo+6(ka7v#&eR-$D7y-u!;Gv4C$da_BU
+z0w9CV%O)QZK`^(H&1Pa6cQ9AW`s#h}TFT~jt3Ya8DmMxX#p=DOY$2nb+u1;FTpJhX
+zjk&U=8LpP;vt-NeZrHN%l`V&5;Nu}SvQ5uj=x&daZ3eUk9yCz4ZQTK66B~7em(B16
+zb>wDVcta-*ms=EjVrKay+gJAj$!Sd`a}UV&R`Dq8Kgjm?i~&X+lw0Bej+9v@w_5WO
+zCrD%E)(*JiKX}QlvE1WrpUbU(V{fHJGR8n-9F^^<e)Q5AVh+e{^YEhd`XoDSbqBJ%
+zj_mMrBnUP{cC3~Se3T$}SoIPl(o60b?Es={8;v~twcNSL8ta_zau*pj&#_l>7n4vB
+zokq&e#^qSow2+-^WdXS}QSN3e;l#}vjr3=v+|38On$b1oZhKEcGvUi!*{waEPqc^Z
+z_OE+Tzp?D@f-*LHpX`p$OT+mb*?smTU<G5<{oXo5P_EqLF{;ZG!5Vqcez|8gYwQrm
+z$-S52UPT|tQ>_h>ubu3fVUOP2KDke$FF=Z>$$k1@cb4s!`<6cdp^l5}b?6&TU$|*x
+zzmLk^HBe2~7$E!Ep~`NOqLDAilKmc|C@ESd`wuLDDsa3^_Akpo+j^Di?c;4RSq{kd
+z!JGX+4k)k&abe#|9_l0qZhC+g@GbS6kKW*MR1QCwirFVp9?>rjApV&=0!sv{|13w;
+zD*)K(AV;>sWVU*m9EtNZG`)#De(5fpdE6mSI%tW-slPm_9Pdt?tvuBQqvg^Vd0J=G
+z&b_<JGgji}+q7Mt<-GxWsX_9rPw1m`n5&U`T$Ja`4+I1093juy*%q~+hekS}p*+{(
+z0or8q<+)8Q0URGA-{MyCk>{!*06HUi-jqmu1|wfyFr^>XdoAUKubTpwI>?Lqm|<&t
+z84@+H!!?a;+Icy8oF3TF>++HX=z!j=Aurjm4f#-Bdb|uDC(17W_X1;VjvRx|51(C4
+zj>&n5_TzPp>_Vu#jQqm%ZXw4$)`Kw3PhRedZ*=Z}9QX1Y5Z6L^#VQQ0eJtb^6)1As
+z4wY5Fbvd@TtTw>M=@Smfs%tF3$M&+iZ5PP>PsoXGIQeC{RZa~0R~DtZ%ZVe(L3E3d
+z6N}KJYa3k2*a$g!N)%92TRAxyA6YN0Ew6oGkFyxJ<n;~F^4_>W-e6)4bb_b6;Zz#P
+zy-nqf47KjQq4K6YZ2dN9CU3fr=KZvBa*7L%lx_EvQ^vo<3CFqe<`yMD_GHSN^<fx>
+zj+~J<|2G69`yzSE{8$jshuU%=4Tx@|TIOrs{hYit5##oX6nR_99N<^R%G-ll1D#$j
+z?{LD?{W?M35!((#|6cOW=L;~X)sc6l^Z@=LK;Bid8+gelb)cVZO;z6W0xhH1$r@!{
+z4|Ro~y+JouKJvT-gm+8jqZ|XKTX*?blVtRI3*}?whd>;5PCowcyZ_iFpJ-JKV$>#$
+zbixw(<ksH6Ccl?YF%=7z3i;IGhiItZkWc*$#5$k^iG|IP3G!(HGg;IR`Sin@z_MKB
+zGgCGJ6}!r3oe6Xzv99vj(HyPoV)<<B6|8a3$Y<k2Fv7o;&lX}<n{-!B?+_0B&Nn$d
+zFB6}M@RKik;0Me~P^bFa*p0d*XFSgaX|tQ0QI-$#xIJ>_E4&C>xtta1isSkTa@OY=
+zz&qAdFZ-Jtw#e5;Q~`D+QNFel-|V)Pd@Tbr*y!8x_1b9dbn%w2cgH6%nU#Ef>T?jg
+z+?Q|2p}_K=$u}mXfY|nkd{e@!<hND6sU%>Rx`})<YcTeEEamK7X&`3Fa?WlFV&4ck
+z=Ls5SCU-RQh6VDiLd<L~0T<*ut#Fr44wCO2%>^D9BIn-5(;HqY=e|bU)qlO5_iuBY
+z_mcC^6#}oaTh70X_GyBnd~eG(d{i`D-QVA|^<VkXz<-(kStXlTR<gaLMrJlwBOmxw
+zqa4{nE$gp0{H`iLYl(?Ir=$F$6;4XY(Uts}FTZGmlTyL^<QEAqfppw27cTd}@sR|%
+zumFqB*=OaKScyny&dWtj@Z^#P$wdKILHep9aZQXY&`5et(MU&3*T|}@m5WA=z$!IE
+zE?Tz;)Pw;wM_>1q-&~#pvh!T|?GY1T?)~Mr|Bky1mEURnEWb~}oS*kW{vcvyUG;?g
+z;q_gRZaK>(O%8yxD_{PUg?nn!Qu)ieLpV-hB7e2@!3WgN%3t^46E(_H`D?)upbd|y
+z)d#jTB+GxsW9EA|S^ld_1seZQF3<UjZR7`X`Hyn6aX%<R?QGn!pB15bBcL;TDH2|0
+zsU%+^U%i0m|5g|po?sHCQJfH=k@vr^aC<Z0U1Aj;i?OhejUopuLb-TFQEsB;*T_?;
+zQVlaf$3rcZDk|y`8&M;-c&k)(a0Rw7RjF}qA{KoCO3hQ4i`I=->TK}<VNs@Ha`iF}
+z+}Bkr2I@K<DpcwgW6%!yq%^Qw2+}lvrQsP1ER%Kk_W;m1nUJkC8X5wmWwB!6gjQrD
+zMX?Ag1V;C(-h*_b{r)J;KZXH5Z=#XbU8|A(X{xl;?E=9uL}?j}a<o+~rB!fEkZW+I
+z&6V#!Ox7uF*KP#%$y9NeNkK66Qyj10ctc8&(!Llk%f9JKXXAq)7;jcO*XoTOmKti#
+zAbsOxgVJp)#*({Blpcd9&=wz*UIAZlgzSdWyAf*c6_IN7fR=`3N?(k&bkJ~(>_oUm
+zx#l*-Yvd>FO8!#%{lR>bXsh_@wt{qbwBql9GNMg|(*L-Ck2^0?`d_yPn%rI)cpF7j
+z!(b(FaCLzG5lYY*90Y4nRSEWY1+sFu5}a0ygQ&lh!5G=7ahXQ$JK&NMGCd!C+6X0N
+z0p1&CU&$t;H1fa`%8()Gy-%pB3}tAt%-*XEyMXuVQ;`zZPX%7zQVDk{!WPaCC45*2
+z@Z&Yq>VZ1Db)L$IX^B8rIVmF@ao2P*RYn$KZ5#GlBm3^8j4~OBHLr{69jJ4$I;KRb
+zyK&H9of7$F4u~&4DB}WgNu{|d;~Oo;M-|eQ3HfNFF0ZddHO|GB^eJUxpoo&Rr!v_V
+z_x_X->W)BtpjlOAzLPPC>#dae6EO+;UQ`ye#^Ubd9c978Eg-#Gqb#h85iF@lS-5*O
+zp4B5|k>@?233`ouVhv?c=|X^vrpn@V=;pf2RHEm#0unP^H4m~iELWBlyaX0EOo>(U
+zu-UsuiEW++EMTP)8xsjoJx__dRRApco3f%P1D`((RaTDn0N&}Y62E;au=cN%_#eR_
+zcG#nl?x?A#ZCrqVZlS0KCm`7cidu%d*ZZ526pJ0lz5A4;B&-yiWsTJCdzg}R#}e(N
+z-WuuO9ZFL1HDF7|D67q<1Bo|Q*0jQ3$Xlm=4AL9EtyR|ELtkt2P-WdKRJO`vWy9+S
+z*at~fHrK;Hbul_o**pj1zF!NC?Dk`2O9}d~13Z;2f3g7rhAOEtL8m-YBY*FsY<<57
+z{}Rt)Wm~2tN{c*YTXsia2l^<x3$X>z;H|RPV;@M{yD4c0Bxox)wpI?}8&HdS$d16b
+zjYp!fVfjoW-<GNznuj%cSeSC?cqnj_4(hpJo%mN&?*;4a=FC)1rX>KJHCIlxz^8_q
+zm@20XUclaVP);pP2Qm4La_Z4Wke7W@%?InnyF~3eSQpqlSGj=UnG{b|GI|dML2ywr
+z2DxHRS*v84jsYoUiIUmX45T+NmCU{?u;<i4$sDi>zhongbiSRE`Q{#oUQLy(su<?q
+zhbviKu(j8?nR<M%-Y`B?xqLYqV@i;61$Vc&6O?NysldJaDK}b&gKWD;xjEzlNbUd6
+zj%CWt5om+>L@C*av5$J%SIMc557u>UujKsuD?^Sk%I$Ui@h?B+E4fak=&7eEx!3(b
+zh&iuOvdYsao7PkE${e7I<kVMtA?1!#hlH31Oj8~=E&;mGNO@8NU6>jzlme>^w3_Xe
+zf+nUYv(q)wx&1UU+brejWE3*>9x6{$vaniit2}dZz<pM(JVO&n8qSp$@BM-Jd#d+B
+zYz-F58~;Bj;lq_T|7?OEf0Z}yEkK-}sJuIeKBa!GMn18Z@~$`$*!=^_hpNUP+2tr7
+zIxPThk*s{k2?e2XH>ITMH?*8OD<uzb0Q*G;<zrz9@I^Mt=hypy2Aow&b+~}udMTxO
+zy@5V5R?4i==n6dWTlsMagG<;U<##G7j453CQ>Pj}ospvajeCe%a<fuyH5xa-Tcv!b
+z6_$>zm5QNRAWXh)1Whc^t@&dFM>5caDmH=-3sDd0jfCu)z@Jg|-VnXf#Q8>a(`2m8
+z)~OXk^oIYs8Y$^m&zg-gGCJHAgvfWu8EE&V8yWrB03_#~Q59ba*s6<0Rn{E<cyQmS
+z%2NyA4fh#Um27bz7aCQw`GWVdicz)xxgd0nH>xomL*)xIqniJPfi(1oQO$=(uoYHf
+zRP*;$?0(-eGO2=>sW&yM+hz`g!rdezv)YzuR6jPVpPmlnzfDHwZB<;$^^MH0q<|Fr
+zzml#zuBPpauREM`>YTmLrnnJOri`V8ghUZ}Wyn0M45a~;%5;;G63Njshs;W443CH+
+zndk8-;`x!eG7rDy^hclXt$V9`_t|@`@A|Icq>0wp0j81v6Pwk?hOFjsVsq1mpl|V7
+zY;JrF+{eCR%jy7(4F-#?_S8e^;HlUO3-0t0X`-#29q4=ZQhrY|n5{c4w&{hTVff!F
+za@)Hpwv(-lL7m0+W;@V)X+-<&=^(t?Ep~K52S$&J4pT55Uo=<j^c??d%SmGACz!(e
+z`nT96GY5nxZeq7_$kVGTM3-@KXq#ij?!VEjNSnnTp-2Pb#)v%wej)RA7kl1B9Q0ds
+z{a6pP_S3{(V^BSE%2m<GIh<1;aPGrZ<nsrsXcFuu_PUEKxpcPZ)(`dlAyh>^%~5m<
+zz%%sUdC_y_BhVb*AP(q;LEeUValq~Z5L$c`y=pLfHfNMLkn;nfRXx$W&QqkByy!ik
+zGqSCn;^2)#fxDa_4t^s41;U9l;?V3h7=u4hk^2@W4#U=9Zfb@&q8WxN7F)#eU2$Yi
+z<J02!hb@3xI7FP>9<}ANf5geX`vBLVf#@e7rF^tjN%gbRF5Ii+`dKtg7N=SC0`AIW
+zaatej+%a(yr>&|B+@-&iGCzYcYO*-}3)cKiUL^(wpd7TIsTer*0?J3L#lRAbe1F7=
+zLBAB#VV%Vp&;NM3OJeZY`@jwRq#~cSNeoWHqp;zX82tJQo;^-QZfT_$$}n_V`aleA
+zt^;^;O-1fYfr@<E95GBc7hAxcR*N&;hk$lck~s6;I@CkXi?d?PK!`0DXIHPrI+mAW
+zcrOKe(61<){SC(OVlk#Y+VVY5#h5`N@P%e#Odej<vHufeu1*2I-&S$%`u!lx0CDd3
+z6`)(&P@M0Jdv?zPae<i+n2hld7t|{Nokc5gp}rFc{Sd!l@@Ys%F}80w(xaYY?A&6|
+zCe0ROm*bxQ{aK9Ng(PxGu(%lYJb&HgCgS1+)xa5u7{9Lt=zhKx6V8W&c4(29@U0H&
+zYwg6u{RcsCvlf@Odx3OskeC#PhoG!lOv=LV_lJl{x%ELmwt<-30Y&_MeQWVtsF>_I
+z288%vWpe-~GC)j~usl0roR}Jfo6avuO#5S_{ue5y^+EqKYoVBqyH`K%skml%Aqbvb
+z#I@~_y2mAmYaMn0-}8~U_7y4*ufB?Excs@9xW2Up;KpWg{a{NlN&YHsbi(06m;&B3
+zeH!MM+ld*K$MKZpi(A-2Y-MO%U)<UdKsVsNxYgPoG^--TO!wBnEgr6-P~J|=JciuH
+z=aaY%i!pRn55-;H$N;08io2cifg2Yg?*7LWOMMH(-B)u!UtKEh9lr;S#b$AD(p!MW
+zcg4NfL&4Scs>Ke`wdnO(%-(5^eK;Em#q8Sy0Bm=PIj-N3#zcy_o2@}p5h5P3z@p`~
+zN5vzy5n$riSv=Ce9_Sv=5|7M8y1iwCcx28q(ByU#^V=5ye_^V4bkT0$COs98Du|1T
+z!lqhT)*UGxAA=<=fi>cBe;g3`mqt8+LpX%AM8$Jz)4;3ZiIfP?_t~f-H)44$F6&*3
+zyQbIT%Xzi<=6fxEf2yL1PqcXADC+Eo@%5j#0pB!IEU?D()!^nT^2-rzB2fU~m8(+?
+z#<nZPLT)=Ul?`H{*?!>fWQm2V>H!qL7YmP|r=xYmGo`qR+_P2WM%jx+7AruXlO<l5
+z)eo}?0pf*w*pOeeNh}S<wYa`qERDrYIg+W!pEw|1Ek6UCP+E&F9<|uFjd*=u4RnWF
+z6U3WOzk<oM+2Wm{?f{O7;)6G+eZPDs{(CwD^atX_$A3}a#vc>QL)!p<;)Pf~8@HQ>
+zsBE6r%J`^`_`J_);9XtB=V&7N5vRqMq5lH^J6e4C!4=iM4r1jNJVh?);%luB=+5iJ
+z*B>9CMQbU(>2nWDvU9`_D}RHK>?2lH`hw1-pI8%S2SRfT@rz*vXvYPJUye4%Qr2hU
+z*DSP3#V^F~6Hs?6oG<>Kb_Lo&oP`99*MY9Op`<y2$K;lar1?4*1nX!?`*;h$|E@~9
+zip5xLazqK6Ze=O+5_kM1=#@x`Z)FMm)nk(2gjVFAcFL~lw#GO~$io1&x|w9!8mpN;
+z)t5}Od_XgIk|fSX$9eI(L{F3fcPL$AOPzsh$0T+c>lB|`N_BqNfk|IasqRdCxBq5K
+zW_um*)4o-aZ@fw}%RzEh;;bUy#!9MJ-2ffJYpMRS2Y^)%QvI`ND;4iRw?1b=B&+lP
+z!vQB2Dsr08T5OS7i}r_AGzt19SzXKku8p^fLh^g5=^hQ}8Foqp_Ue6DYOy{YxLzhw
+z%N=-}A3m2_**YRezAm-$x&WHjWs<FP5iWF!WLM@2e7jjv#{&&fW0|U=iRE5pP>`V+
+zIU+gC8ibQ;_DK%ktU!0;wd8ncBWS<Qm7K=owyB??BnDZzG%1t1PD9<N!D`9bAr(wo
+z1xnq_FjO6qCb?vXA%TmNy653G|MW)cL2wl1uTN5sLR--9*{qZWS@|8@CH0y13{w`r
+zB#*|p=^kZB9;ul8+B{C`YmU9BF-xSrUdXunwU_#yz+CamhLR@+{JiZ?sefH}l*^V%
+ze{IM_hgyY*af!KJ^7cOn{0&#h$AEo8(?2N_XIL1&OM`E%1<k~blJ5tUg3sNNMz^^Q
+zLQ1YQdTB4vWVe&X%>Ib-gts*2EP9Y<Mrj;Io*HqKG|tNj^qyHNnlx@Mjhl~Q%Iz1@
+z`1(Ge|LQ4?FF6g`gQ?PFb4=AOJSh2Ja|9uCjug<*6*ScYq<~q&F>})-Mhdv&0ldvV
+zY1)iG9wAej{^#v`W=la6F{EA9SqhHVgYI@+DQuK4@OuNLng6o_xcFY0HTf23H#L=J
+z+dKg7aiJ7GN{e|}B8ATgK#y`qiZHwdzN?QEvF$7NQXZ5deR4qCrdpcw0O>>h-BL{5
+zkDx>Zn{|63#f-){*W-;86K;=0_Kq}v>j%*ED3lgl!Z3OFV`<^PcR@d3qhxH8fvJ@P
+zQf!A67;OhCr-H5g_Qy%_R>MHo>xGoi(E|icjg&Cj95fDzQo{LJAXGU^OS+-hxxh<W
+zs$B)bwI|ZjR+yL;;-n-KTr$>HN(w<|-RiZJJQ*vFOFB!**;hd0FG|VZP))f0TIm&H
+zr42o)Objt-ohB(!A+4INTraJ2!(TdjPTEihnaI3C6@?vc(&j~YUDjPtPK8+YIb1Al
+zk3A0j;n~vmk8^;lmm}>=b;3lZy^6x*Nz%?+IQz9GK*~;UgVnsZr0kt|LdqLT`y_J^
+zI1J}P4MxL0DYtk#=+?_p?tP32F7{TDF9?(Jnyy2`qLcC*YcM`*B<)9fBKVGy_K(N<
+ztf~jn!89!LOZ!VYcw!px|Jy7blK;g*ff3Rn%eKH(%$1IZ_~5@kD*fY=0J`PA(uwb`
+z02?Pr1-;{dKc6iXoUaSbh1i|asT};ny`7{}`MdCanoFlSyoyl^q%-z7fvwpF<!-1|
+zv#Ls|#JdRhwj`D8y8!wQjii$EXiJVXkV>ljktbOw7GbT7(^^W`GPEcn6-qbX)B#=k
+z4(Uz`Dh<Wf(w%F#s1~=R`%STxCbp||KmR%AJSRyH7e|5Kcc+Sc^B&S;6O1D#jg%gT
+zp9K@Mc&Tivi~(P{R2Fprz-mh^mVH%`Ull8r4@7dYalG_Yw;nq2DOu7}3x5<7@>S$h
+zdP+~<Kg0Uq6zN%mS11BEm7c|*I@bG@ibB8+<z1M;t6#MA;$jsD4Wp!&?@-+o&7@Zo
+zk<IRXprR1|O?q|R2cW|bsq!+0F7utG_w!Igc4{Sk4&4q~{)F^plRG-1-pZhvt=dKd
+zfeEF!h^L5l(=OnmHxgY+6=p8C6Rs^b&rWqA{G1FB>YP+I&oqcT`V-R~R=}^{s+^i>
+zVGJj-19s*eNGGfb((lieg!PWb-b!~;X9VglZFQthRDBShza(|uA+N80nbhr$J1c%9
+zsf(F1eb+fE3SK`*-GN~ktN$iuNP&g9zQoL<Bfwi5VwPMV?ZQuD_FIo}+Zkfsr6q9v
+z7ZY=rNR+s!dF_LqSBd$>WDx!uOAJOF-_vCVv8d~XN&a=jLRpRGHIrCm;$qmvkVdPP
+zV{u9>X?*`Jm?U&3P24guRboP#I-|i^v6VC}M2?w0K}BI>Bhs|0KBg|U#Aeui4A2^>
+z$Zb19Yz|z(k&JZ%h|PIC&uuyooBP<?5WJW)&mE55)seLDX$gG8;iSb6)cZ>os>rt)
+zMq0awpdZwbv}uc<Ah|JVlZd7;rVnY8bO3ar?@61Le{iK@KikR}Vj%WS(9lhbBlcr4
+zvWtI8>|YN6?wy7>c%W4(Ur!t&B0#s>o;YlI4BVPb;^<`r&FN&~=wpNa)`d7O!&L0d
+zDB}17e=nge>GUB6YeD-Erv%gvE&nB5*JHt%V^>leDgGp`I2VSyU`KjwcE{4;t|N$>
+zJ=%`!QN%6iIpPZ97JeKcy^Qo}j8|giVB!&6j6y;t@d)Vzx>X|axK#l9gExrB3rpZ{
+zRgwWi9^qJmc;aP<!Voiyc>S?^CN{*o3)bx4tV4#>)CEn!ATrd<4)o;#Wax+$0B!F6
+zL1kcgBZrsjPq^mRwYaFGiYE5w5OV<fG$y_V^bOBv5#N|YpgS}|Srcw+Tt`Mb?#51w
+zWEDBsuA&fUN=Cb*2Z?tiW5ho>g8qnjiu^-V)c0$uA~*S@iabAwj9G*%sbB{g%Ugml
+z^9>n$eGKqfC1jl383e(ajElzSzuhF`+x-H5Lw_=UAg-6$bxSg7Fh+&RnPk%UD_}DB
+zqcSMMp!Ld7rbRS0%_9Lao<ZyNN@|3KF_Hvsy$$^9$B0;;;P-(9Va+->wi}tT;uR*c
+zf0N)N=Ga^4M?!oUXjXcX(8L-%bv|U~4h+}FUsI7YRIA8eZK9&dfM_y%G;ZDng(RY;
+z6YxzAl1MFHn-3g`46X#t=>25Q!9&QW^81oG_yS$B7m2#P3ukvMAu+2_mW(_>=F*|S
+zSLTuVrftxqEGF}<(?F=~rHqWU8oJMk#NzxdZOkwdhy6MFw;5z{yFtLccunH7aH@6h
+z<7COiU!cjjN|t7$GB;|yiu~zvl5{=?bam&Gq#Bepw$vlZ&Yr;c*r}Y4v=S#iBq^?Y
+zL9lPAyo<CLaGI<bhnF|Sjilm?Q@#E*NgeS5>%mr%)QMYhJjHL4`q3Uc=u*i_Z>$1I
+z`j@1&M%}FBB1!W_{%XIHthyc!-23OspgD%1WxhmlKY<0Y1w>hFg$;M!WOdOn91whv
+zq|e0bmV2F~Cz)fgdyTAVgc7Gs7+D*27oFD{vbOL6Dyt31+Q)c}dM{8>2yh{5|4d`3
+zP9*C(xd3-6h^!ku9CXH;%GEiBW{wTW`X6W@7w;e&DsQ3K_>yd-s7o}OO*Rk1%ti|<
+zMToKzkIW_8zM>XcTCCVdS&U95+Xtgxo8d-w{z(j<b0#}y2BAZ!Av@nZ2JPb2WS1=#
+zDD)jfb`3@;zHk-UJsfRFVjr^m6+VCSB-wK*2lSuYk*pjHeU6_bd3XDwD(<Fij;im@
+z{n|<nU&cL~&yoCBtI-o2BFDa;N7e=8A5A!NkJ%~;sbf_%Y4(f!bJ!F#0S0oS=s5^$
+zU6s#Kt&IK?NRbu=((IO`$P78<r$eM@V|{EjEFr~W1JKU)Qc)N^gPbozqTS~QDTz$S
+zfBTh`M3(_Pok2>LT>*U*B_(Gqf#2s(E+iL&?w=LpLMgiU(6{8m-3b70Q%ULY!}xp4
+z$;B62u{mInitZ*ZP06JO7Qjc<C6_FbBRyP4uFmmCM}L}J`}hO&tun~<1E!!WE+IF(
+zn*p@FKyE}9faZlax#`sj^fq^tvS@?jd>eAxX(5&g4Iy`I(PWch<gR84aMqsW?x-r@
+zyXBC3{a1iqYeVi2zX-b6|0%XHc74`2Adg-De7l&G)tv(T<)5V7ZU=B13P|~oI;dG*
+zB;}{jLhQIjDi(!fokb4$uRThr0msOH&jUdhWvi@-u`*7|A(h!^Sg%o1dG9lDCnCwa
+z9+()OdV#$6D+FF&Myd=lzz>;JJ0lwsN=Qvk5O6z#R5S^)B%f_Mqsn7WzToId&6rLq
+z@{KQ%FV|(zhu$JzT`_LH-&jR1%|u0$x)tPWzz&?nVbWE7z`10RZ)vf>?f*c&9f<?Z
+z;}-c=7=+5~5%Oavey%MVW#U{bqwyE{-A#`TDk~^lu0%FCj%sYsl%?vZ_IMGNil<TC
+z)(Q}|t)seZysCHRBi;n<#4RfFcPglU0utmrH>wXn&up=Xa;^2iO`Jtd8>|CuW;8X;
+zMe1IE7&ZMG31Io47HwOqsN>?X5qhq{s02_Ff{~AJAf*Fv&P`T3Du-;t63s{|C!(jW
+zKa$E{kk5q4w9Xj(p6^HNcEu1Q^c}6=0rmBMmDHlD25FluZFp_~W@y^eMx$}kf`=Jx
+zwA};XOg3$lbqpJeyjA2ro}rCOZ-LGvo!S^~VqHpLcWSc-e_`ZbwB_Ui(D8w^<@~o;
+zcAHCEewMM$q=wphpxzN?Lv8($NS#_kZ4Y3nS7)BKCKJG<i8XB<h2=f2RVwl;n$h;%
+zvHGd4EA60L3YxZmQ@ez-z|Y)D?UqEM;9;Z=2IO^7!PL<qsWEVqf74C}k@ms>>g0r}
+zGhJWWSwyRC=d9SzZ)#IYyMH={ioYA}VT<kcuJJ1JD_g5*Vz{S-&9^c>bfNvaAn7bW
+zN&7EL0ItbU>XmaCvy>mH4<7)apG$ozae7g&t#qgla_`mCsBfJr(53`Y-~JEq(0rsL
+zF0}w%=V%r6pYG5R-;;1v>Zr(n_)SMTTc9@RNk>k#0*&cLI%*b{d3<Y5$Bh3oqIj+e
+z9qXM8nj`6STrB>fN6vH{W&ogB1|2^XGac}XPN<YYt8u22dm!C@Y)2>G!Z#AxjZS`L
+ziX9D)sGn0HaQ^qG|E>hkEb*mN96x}*W+t6d@C_s0Cv@r+JU2H|>9oG{0It4OQ9p1F
+zoi@U^G4Pge==AA$y`Hq7(=Qi*_CaGB=v)Q*kU2{30xRRhoiy+sMiX2$4LUj*N7b~Y
+zLFX|$TW1ZO!O+l8@uf4yb^+~+TXY5v**6(nK!elp9wXi-XfS5bwFA!4(1Wiq%IQXD
+z(b-t#yqM1Zry8q@cGC!JWOfI0XvA+kC*>(L63{8mF{g7jqqXZXfJPN9f=<Hy#WZ@y
+z1We8Br7`PYfbMUg^SsM3e^o^11>Xd&?^+dwh*xyJz5;XwClupCgQdKdF1R=oz~d=3
+z?m_ES5KWDjF>K)4DY*-+EGs_K_)qmf-zJYH$Qyxw*_|#eS%J1RTzRq3D(Gz-UDgh-
+ziY}0@Xo9t89Y)gBa39c~??_jE#Nw%Y#dKv2(x?#}O<Mw>{i`2c)!+}|ccQCG`hadx
+zri#2}FBOH6>*(rL({S}ORn!mcKv(CxfY4b|!i)yX%trL@eZw)1Pp4~+*B}u|p=-r-
+zWY0g8%|<KZc|F}|gW*NObeho$35?YNni0|*_^<_ZtE~m-4rI{G>6j@`en~Tz-2<Iz
+z70vvP1tUgNx@|Zrxm$kF?Ry@8etag~@i-B)0x#%pKYTX@hv^<Ya*7)|x;OePz_UD>
+z?e-S*?V@Y(cMi=-Z~}8(Oh=mMa|rk=0d)Vi8^HbaRR+Zx#PPrAp@$cM3l37kVq3Yq
+zYfX>$+6Kb!sq~*?=x>`Zrv=Hsa7zF^Et-SQKboG7^95npDSBq-6wFS|phX=86q=Kj
+ztFeZ*&nMF2aTQ3XZmGy+EmBd47(k0>BaNE)o)#z01^&M+3R`4w^fk~Dif*@N94%>q
+zOD{j6C1;T}*gd2doEri+X%;PA;|5xXP+Gbr2M2-}l#z>C8Gl&O+l~D}8<I!wX5gCM
+z?oRK2K$7t6BYpS*-^@-zA5BF2eU#Bh{^%rE9;1)DVA;cmAGEAB>ZxP{EyKV?Bc7(^
+ze_Ec0wxi{z@jxdWr{xvZAXpxuPkN#s+i{RSNpr_)Hf#E{$raS5JJF{vO+opw$h2+4
+z)wCi5RjsepwBqwFR0;3W=WAmzoo7S;vqD$%aRL3WZ%5G898m1z41V3l(@HZW0vis{
+zN~Ip^7w)w3RSsyIo~Q3`WAkG7I`qR6^uYH;`q2|P_~t{jDsLf}=(B0HXG74GRnQun
+zFwkcv(9aEVSM|=Lp9A)Q_V+mYMTcELD;$*EIE!vK=vRAW)5BBg*XSaEqP6r}5faIq
+z1N7T}D0*pn(C>}V!SEmG_YTi-Q|+ZckD-J8^;Y>EXK3rYRn~<g-^^Vh>%(#Rr=-hV
+zMGN5fJIMT&=a{;Tl=-Jf;!e(0dM!2>r(TswK^E$K6J&B5<BD0QWI8GXG|Q7!)Y(?c
+zY~f+-{0fxWSu_(<ughi^9q_=^$mRnvLF;WRn`5R;+rLUhVY;JSugQ9h_Df|8XXN~)
+zS{3<b-{b~&b^!k&L~eLI0o|V@H^e$7qki=z*>a>E=<9Bm8$HIw>wiyf+;a+O8s^H4
+zcb)~Ig2*<P(a#GOa&ycWbBE{3EoS3ly1bWLwnMUY^nu*+K9a>OsKpb@<krdfI_JwO
+z3Zr_+ZL!LhYrI5mSB#coTbgWVUI9?v`wuF<@n%6Q%4K^;6ny@%lO4TUphgxdJBFSD
+zP5)xqF%jbuxAQ9UnRVo@1JDyr_msPC#sf0YTJCy&3N}cT$<7OKAH01hyTljcb=)Mo
+zT*F|u^H90_hbzG4n#w($n`5#2ROM>C!LRRf*)0UaCcdy1yA6`v5<;;kE=2Alp8>(A
+zO7{FSW&iJJdB7B;(bn^2FM|$vmsYY@%Lvdcy&@01l>tIacX?RMW6(PY@~|qbhB(t%
+z9+A}zxHoGR&jdT;(d+WqlwqJdRV0raKN2VXwndBr&D!bmcu%Zb9r#3^Xc~aK^>{7*
+zdrY3_gaKk77esU*?#<-Mepo0_IbHToe*%0&J2@b>K0vz`a=^jGc;!pwfY*C~dwo%!
+z@+VBPij=2ZLx*ytr#vnF8@5X8G;*NVNKCIal!F68F(j>&gWp(zN&ic7NaApS=t_C!
+z9yCkliSn$unBQyQC5NY=1^72aj%<%iEzwp*F8d!9`8H`P3b%L4bCSaF3Lcl|WMcPw
+z4}*$a^%^;fVtCr9P>%8|Ai#&Wk)!sw1OKeGVq9XdT+~^P@h!$Q>t;E|r~_R>usm<4
+z58mu(r;@wG!eOx-hbox1>$X~S4OUU_9i<}2&yeGm$AkX5yNX=ne#+-1R&6W#%L#+<
+zIIZ@V69(g{#O<7LD;#V3wek|*#{m7#%S$Tlfpc7^^hz{XKKol<iUl`1PlKG~hr8bY
+znVb|p0CjOt!V;Sr{pFS8(C13G<g^G3bPVD0Dn9|sg9gb;yH~(3ZXzqY%R%Vc8}SL^
+zK157gJ2yl`Tj`vDh^E*1gS^^u80h^hRpi@N%IPua(;F1XYxJW*(>_*S+xr~o&McAD
+zpmNnUdEH9PZJGT{lGokE(Ex+H$m=^JnVEJ}X}Yva+ojv(E!O@Z?Ajx5Nkpz(-&W2v
+zH3$CecRA~(6KE#Xk+aue6ggzGVq9uvblWTER``G(FKAvr9g6?&<h=g4|ND2B^TuM$
+z#X1K$4<|cvGxO#BW04v?i<b8vLnj<LUq1NL9W-8B<b1rRm$pZhiYBa?oS%ow@TRSt
+z|MMFN=0oLU5g0#pS|T5h2?c$slYAmF1K?+0`NW=Tbd$%c<dYm4tH|Z@$>P;0)aEGm
+zNroU(3;E0_Y*2dlS}yt{DGn3l;vpESuWclsdxRz?PmoK>ia>zxatT&FY8QQwOWluP
+z2=GlV-HiTnP>x)>Z8UJ6v*e5D;Y>Of%a^n*K>NN%zElUrtV@parEHwl-NR4GO)~iP
+z_LXl;DF7kFNxr!T!{lzO<lCdr9Yk2lcjC7L*FH|Z+tLiUORMC&`S`IW@$%!#3qd$z
+zEkAyYTPo_dTo!d4wZz@>lLfdO!|%&aN{c{O7AaS(wE|&C7sWQYX}4hc<zzgzZad`4
+z+*<%QbL7{n0zi1#Uw-|tEeM-h%Wne0f%knczp3#7?VUsNTb!7y_fJ)f$ri>M`D3Vz
+zA9a>owN;OWx9)OH)F;ptS<5v^t8l{DO}VD<Ex_Wl@>enqjmRhYYX%lvJUT6ZAK?qS
+z?Sb<5t@!h!cJhzG*w)zKto*Ym5(!gXrgOp^c*;S>`RK6)%Z73Jc*fgQGhqN)_Xa<h
+ziIq3#{03Pwlb<D+Z)n3zozTzh&s5PQ=@B#SodDdilT3`oEjxS`-r)#SKZ)I#bdm$k
+z{WFt$mm<gcA7iPVFscn>b$27LXS103Y215VFS2^OuAsnpNQqizYb;|H&liH;vKh1d
+zTS2uifi)Y27QCy4iX6AJ7HzNBV%KN2=rOkz_YxI_5nog^3Ax8wIBo}>mji3D2@^>#
+z%vsCbn83Cl!dmY`0;k>1+U9S=(()#(y;UfH(L9B<k8=fHsmD6#@P)lrvkuOVpxt?y
+z+4XCV(QzAQmwp3uH-9sG3H8;3eOSj%=*9L9W)3%yX<qbZ4*x?JV-dp~tQ@M4Z#
+zG1&Y2E_1}xIA^tqIqpZ+^Y;zbss0Y&nx17{y3_;BnnSFcWfxF3rqtE`@K<tEEKCbn
+z?@qYs4=hoxrWizx8SCqbIm#p0L6u_gGFUUu&N-kzb(?ujpNM9QXI|^CAjPT22A;(u
+z;Q1f>3&SzZe;t^2{4cEOEMPvJF`-q`jtw%R>~!WM8=Q(qJ<35DwA^5s9mIy&U}xc)
+zf7x)I6X@h7Y`6t(n^kFwak)jqEH-Mk40=ADjb4e>!=p{v=sz{|-#RL}%bPm<W&xKx
+zKsU1un<9?Ee8mekr4urWnMG`h-()Pp{mrIq5I{Hk8JmVeg<!fx`Mn&w7VogYfoS`z
+z(^*hhOW-|jv7poLzy)1o!CBXU8*ambE3w3B-Z~cYy8vLz78a^;0b$Jr7Mj`(ySUb>
+z$klmVi(a<1SXhUJnV@$%)0~BE!u2y9!NT6-70J2G!m2AkZ~mFhTGSYOsJY{8RtfIV
+zW<ywbD(=t`GK-jsOL}%Mi^#f*HJ&n?Q;u<7mt!otQwHdI4QJ7lkxqZvz@q*C;8zyY
+zy9zXE%UDbha{YqlEGBOn=pW{>d5v9B*O67^m3wSnvvkm%pTOn~z$4emoy|KNshFpl
+z8Pk5U1=}NWP^peBxP}c~TYj>I%UnSpaE=)lp~1~<#unAv2HJ)D5MP0?^(9;6fcElv
+zJX;hT2=Km$#cvu0g8pB&Wc)(lPI|B<laZUXSkDr@-U2^iI9vMM4)}COmJ*c#`iizJ
+z<pYwyd4pNX*Kkm_<9nFNRy<t<x;+CC<3P994{<T#Ys7faWz9iE&Xo;_s2ye}BPN1w
+zUp>U7h#80&zvr}Osh*hLoW7i;{xO<!{n^U#xVrl+*vbT4{;a)h<qO;;Wx&$#{w|sk
+z$t>;3Bn-Lkrm<CjjQwwsDJg%RxX=DBvIafg9BB=Thnz`fEq1TR)=L<(H7{ft-O)q{
+z-Yg>ypSKyoGLm<IkSehZyxpKsF@bGPS_Arz(QNZ34s>(hvTgpqK=*zh+x`aa?<k(_
+z*ny<pV<^kIybbA3k&XI5=u^S6>td#%qmE@4<J_FmH7ti3K_7dD<+MN(=y_E|ZuA(I
+z*Ad;of}JeyV{?F6%h>)72^b}a?7&VZ(Dodoq6tf4hpHEY#{3dH;@BD6b6nVwCFoX`
+zyk<xCAp@COz>enD!+xRLrR?a334k{oW5>E*0sXaW>>mvVXvc=L6W3;9IZzopaTl8_
+zONX+Pq80;oUshPp8niQasK_;H#tM6{$0S%8J0p6bGVqX{8R`q%x<qzn3KBibyX?#r
+z+}J1Ev$Ot@z<nRh&hGsT{I4JE?0usvz^ierh}FUEHIWsYArA}d!HNrzHjF&U&e@rR
+z*4Txedtwg4yL;?>IU0?5_1XD~381Bg?8356pc5yv3y-dVZrM&&+7n;bx0IFkF2e6W
+zveN#CLAT}sD?R9gB{gGfvGN(aF%gxM*m3Npaa0Tr{y4yH<BgScYfrPg{U%`j{V8_$
+zh8yUv{mbs@FlNY|$L>XyVg{LG_jNJ|-g$_2m^pr~qTn5%qRG;w?7<n7ysmXqQ9rPN
+zJ!;?qdKY{4BpyG|^GEFI_+fZHMzW`mBGLE0W$am_r=Z&?vggxFG3vRboLXgJyvF`_
+z3HeR0zt}5$|9lI=Ud7?(j>%`0KB(Z%c*|a2!jnAs8GE-K%P2puWbfT0fD?RbvD+Q?
+z{%kPt^Bvg7_Xj~Za8*T<<Y-pqF$IO~5v+PTT7<YKtOh?e-{KLgNy9TXYXSS@)fe=G
+zK5S-RvhdvYG+|$D(e}j#vTsc-L1;gZeH$B(O-N1Hx10n#3nSV0xwxl$jblGeFfhGv
+ziv9FX2ko0{?AI$D5~oFhV3IOz@pdI~yQ0A_ZT@yeH!QTR8F;`5{IUjbm;wP12$S)K
+zzJTf(0QHWEnC>yc!#ZS2K;YyxPp;_<iC;AO{4W}A!jt@r3eHZG&z^G$+WZ$UxQT4d
+z{Lfs+HJ1gxPX6c5+&3}bRma!Y<ge88do=lpJpVV#pJ?FcbBV5v`Fz*LLcCr6S1+ON
+QkwiC*NxqxL^rp@K0f=L%@Bjb+
+
+
+From 155b2246a66006409728622a953168c1e8ce8a22 Mon Sep 17 00:00:00 2001
+From: DFDario <ddafre(a)gmail.com>
+Date: Tue, 20 Feb 2024 12:04:35 +0100
+Subject: [PATCH 09/21] Translations: Update mythfrontend translation source
+ file (Italian) (#869)
+
+(cherry picked from commit fe6a8129f601990f4124ad5377d0c9f8d9559194)
+---
+ mythtv/i18n/mythfrontend_it.ts | 6 +++---
+ 1 file changed, 3 insertions(+), 3 deletions(-)
+
+diff --git a/mythtv/i18n/mythfrontend_it.ts b/mythtv/i18n/mythfrontend_it.ts
+index 8cabe408134..1ca987972e6 100644
+--- a/mythtv/i18n/mythfrontend_it.ts
++++ b/mythtv/i18n/mythfrontend_it.ts
+@@ -2600,7 +2600,7 @@ Controlla se il video esiste</translation>
+ <message>
+ <location filename="../programs/mythfrontend/globalsettings.cpp"
line="2857"/>
+ <source>Enable (recommended) to supply full range RGB output to your
display device. Disable to supply limited range RGB output. This setting applies to both
the GUI and media playback. Ideally the value of this setting should match a similar
setting on your TV or monitor.</source>
+- <translation type="unfinished"></translation>
++ <translation>Abilitato (consigliato): all'uscita RGB connessa al
dispositivo di visualizzazione viene fornita la gamma completa. Disabilitato:
all'uscita RGB viene fornito un range limitato. Questa impostazione si applica
sia alla GUI che alla riproduzione multimediale. Idealmente il valore di questa
impostazione dovrebbe corrispondere a un'impostazione simile sulla TV o sul
monitor.</translation>
+ </message>
+ <message>
+ <location filename="../programs/mythfrontend/globalsettings.cpp"
line="3217"/>
+@@ -15158,12 +15158,12 @@ non può essere vuoto.</translation>
+ <message>
+ <location filename="../programs/mythfrontend/globalsettings.cpp"
line="1888"/>
+ <source>Always show watched percent progress bar</source>
+- <translation type="unfinished"></translation>
++ <translation>Mostra sempre la barra percentuale di avanzamento
visione</translation>
+ </message>
+ <message>
+ <location filename="../programs/mythfrontend/globalsettings.cpp"
line="1892"/>
+ <source>If enabled, shows the watched percent progress bar even if the
recording or video is marked as watched. Having a watched percent progress bar at all
depends on the currently used theme.</source>
+- <translation type="unfinished"></translation>
++ <translation>Se abilitato, mostra la barra di avanzamento con la
percentuale vista anche se la registrazione o il video sono contrassegnati come già visti.
La barra di avanzamento percentuale vista dipende dal tema attualmente
utilizzato.</translation>
+ </message>
+ <message>
+ <location filename="../programs/mythfrontend/globalsettings.cpp"
line="1904"/>
+
+From a88dd47ba4f9f2727fd3f164fce28fdc86824bec Mon Sep 17 00:00:00 2001
+From: Nick Morrott <knowledgejunkie(a)gmail.com>
+Date: Tue, 20 Feb 2024 11:13:02 +0000
+Subject: [PATCH 10/21] Translations: Update mythfrontend translation binary
+ files
+
+---
+ mythtv/i18n/mythfrontend_it.qm | Bin 874633 -> 876570 bytes
+ 1 file changed, 0 insertions(+), 0 deletions(-)
+
+diff --git a/mythtv/i18n/mythfrontend_it.qm b/mythtv/i18n/mythfrontend_it.qm
+index f01eb8cc7f6cb3dfc11a25c82c890206da04ebe1..9563affe401abdccd8d1582329ec74f457868f18
100644
+GIT binary patch
+delta 51340
+zcmXV&cR)@58^_<Db;r3^viD53tfFkn$V_&~%-+i8MrJ4^d&^1^;cI4PWJYDnN{VEU
+z%-`em`|EY@t#0R@b3V`We%{aXxr+|CtUKefthB8%01p^yZ6x*pOP&v?I>4|UL|+)|
+zoFtxs<$wV&1i@6d7EmJ&=1RMOn*Vqga4rOMmDWI;>cHF$I+^2ioqVsOPIcx_F5foR
+zX>~rF%YoBM(}P~%QKNLK<R!$FfVc&;_W;Ye19YNa?pIEyVVM`;y#Oe65$G}$Mq>}1
+zTATMk*Gtf*(SdclNC!^8Lo_}9vHWjgTXsWwhx0I1-;~P_2Z0gsU=iJc%p{mS)_`x%
+z1RLW6e*Fdv72iQL3V?_n0<psj<{IN5^Id}$)fRGQFwCB7AQ!BMdC+diB@w_$D`faw
+zz*r1&RVoY<Vj*|$0GA7N+IZ|{{ei*R3Gzrwu*_hcd~MfUzT2<U{KQ_TwQxA(2?<tx
+zZY~?=<Z>ImA-&FzHqa?fL8si^NvB#-Pp4_d)m&bp13DpXFu#bT2Qy%3T>$c?glVG4
+zrEQi@^UpClt;>%<CRT^W=)i7IhL)G!;8ArLX1GG8cLlDeLuOQjVL=da5e&0VLT1&1
+zh+hHuZU@*;`hY}kO(fofVF~^HJKH^I<tspbjev?=PCQ4?cR>E|rJL^)<WEQN^Ch7Q
+z`M|V#HZcsQ>*JtG35c8db!sm4pvuJ3h3^aH;t$i>8N~H4-L9fjYt;(Mbuqa8FsMe|
+zU`nd2Q|nw7%GSmOJU{&+QOJinwJD#W+V6mPI9I3U*M=AgZTec`3!vf?o!X2N#Lv)X
+zJb>!nl9on7E+==;$qv5F<)b<}dBF=h<+!X|Zg>ORzdtlOP19d6ZQhm3$G3E9p&>f0
+z^=Cm1oCYoY4b-sR5Xu8;cnZYrP@S6RX{ZT{z;Eo=DKZP`lnD!T8r|mUG^L)@sU6&?
+z(^{##4Qk?GXy<=IO<D=I+*hZup)=H!i_osqKVG;4)`2ge7Vn4nbP;OJ1&AE_J)%WT
+zgjzcbre6DWS`?kR^>Hu`qf52H1C|CHYV%O=;!e4Im<hF2fj=s!Q`WKFgxUu1zri|9
+z86$LBx~_)WxsrZyrcSllHJ6Ejxx9CX_y<<|*HC-=(+yckr)m2csHg~7{O3T$(4|e=
+zpi^z}%jNBOot7o`Q2$n&?Pd*%Vt(K+ck5J#qjj3(S)G=s@lf%!1k3k<N;n7joziJJ
+zQ5WjwC0LR)sGoCyA?tNoGR-=z&a?uYYC#?xNg<S$B}LJHG<$i{iunZfAp(Z^n_x3E
+z89_^CJrFnnhJ$}$N`4DNVhxy_E5rEj=Jb!%Y1I^rbjq#P02p`r!qmtS#`syVhP;3=
+zX)Q3%2}U{)t6e-yGbTd3&I41>Pnb^DhdFo<w5B;QAIgDA_JKM3F!+ig(7dP7`tKG4
+zONB^S3V(<7={3mtR^+L@2kO^V*p2-}!G9U-=pZx-@^%|Xz}&JT?0c<)WnW(8bEGBe
+zmVtbp_hGD*jeG}Q0z<nX-}^=M_sfyLL^4G}e-v;Y0E_nn6!6Re8x)tzsbx{%w{11d
+zwrwcz_cmCt2MTVd5ZSN{3Lc=F=;3V?8g(A>PXS^ISl>@56!a3BnuS6SD*}xcp>T^X
+zV6UA}M4X4^i5H5jJp@zF!YJ0Q3b=TLVxzYMy@F9}avxX<oky`5`9c2(#TL|tI64`{
+zYzykpgRAsHU5I04h|a``D3%-mS;$eRDZ4L<FN_1f7>W|xv!RBDp~R6?h*B9S@v}Tc
+z!32~PlVPrGM9KOB<`sicvITt*xgVu0<zTtc0Hqw_fQWf0weKaw)8#1jG6kC19=6gK
+z>%y?`Dav+<gSb-#Ww*`(t9=_~w`Iee@fGD}J%@C$!GTwY_}C5(jS^rQWQ4<8`bP=T
+zs9>!CzH_5a?Y%uJJU#(a#$`AjstaxK2~=cjfP#^zOz$rv98h_{512c+qpH(ZnCy@B
+zL^T85;aTpe)*u5aX{1h5TYpsdplj*-S|^Y5(y5^{svk^%jPXH@pp(!>5zkYiuk{B`
+zlcqpj?u%OE_P`XS!upvC+cMvyc7x`yB=#h>AZ{kQ6Vr(l9&Xh@?ft&sb33E<lheTW
+zY}7Gnu#D}BI&Rst2HvAit3BYQx1sLqn{-8M!@1#b(iGc><B0d+{Nn&j?@PlaybH9j
+z9JoBAJ7d{P)C+tCo2gJw)OY9(OS3q*8t9GeGvGSjA2RM3To1H^`M;TPYjXz1FEMa?
+zOed_+IGxsJj%YCCD0t#pG?>%`V%$13szDjx+ygW=xWLlC8ya^=f<@Fo<9DUOPR5{#
+z`)7!4XV7fM0%+~C(PDNJ8+gkJaL@Av=5|fs9<dOnw5IT=`4Unlqvf%V&|GeyRRHBK
+za|^U~4S;#(AGBT-582-it#=%T5ZloDq%$qTM`&X@1an(=wCU&w)3I%6bLtP|aln&5
+z2kUYOo|V?akmnvet9wvf>;})Fwp3cpqu@E!5r)DC;khst<~g<Cd2lw&vyQ{_J-uG4
+z8`{<jhk0uT+722B^u4dsQ1Kkv&J72wYtS~Bbj{5+#Pd)qUC?%!3%y<v?KB6NA7`Ll
+z#~a{Jfp*;*!2D|}+AXXN*hQh8Z4sU7Pp#4JGwDTZ1ln67V18>x`<e?NPCB8z&pDXC
+zE<pP=>CmdoL;JOK0KO;D{uKqsAvMrJ&VVM}(P5MaH2Xs65Of||!Kdi(UmqA3WT3+Z
+z%4>UG=`_qt)u|O;rPJ!L4YrP}&VZlpiH;}#$%~@sczOr4(rwZ4d`)O&89KFWP1h<I
+zo#;N+%3p;SPlF*d9bT<}fHjWPX}WL%UfzoUTYY%-hzF0ap;H*_;k9lsgk33k?RJCV
+zOB;AaxkFU046olB%=5c?!TTC5l18QAee)Ew)~V>CQ6Ozb>_wl<JquliI6!N29$j`s
+z)9Oz}*9r?^t@8w3M|}YtTy^q<wdfiY3~g%3u+x^pHplzun(&DhcL=&(I|p9lwoYTE
+z7U=qU5m@)X=pIZutB@;^etvx&x-SWb$atyKw54V)Q^)Gmc3eS^dL%C59nm9v9<-#@
+z=y6s-`H<}YdI6@sz0ot|57>}U^t`$jHtk1c^cp!3?D!n?I&vRuVomfq@fxP|s_1o&
+zuF$V&^twtX{^2m47WXaa^)4Bf4wumDD<vB5iSV%xrrh2dK4rVW(sc}cYLdvXKMtRv
+z;js90ApU_d$O4~{hhUt$13t_DkThEjpWQQT&}uxS2Vt=E8Al}5^0ym&j?9B)*cABu
+zaeyp%5WPh(EK7?K>7G5^3cW3kl)IgE^0c!$)s}U+JnWRqq=q_;zi;X^y&a;{5^@^7
+zedrGG8;IURY;|GTy$QYJ&w*7atkWbGqxa1Zv>4W-_tOYi^A$lK17)P>2=r;yk_1FK
+z^!Y`f{6QY{4W@$PO^i;<;}G;c6hUWdi%v_cHt73vH+Z&Lr_$!@G*w~n9Tp2qh6j9Y
+zYh6gfR7Jm|KCoo=#Q<Y%SlDR{3Q2=y;&KcgZU>XyP7Hoq0fy!Zem!Z`zjTG)(b_P(
+zAH&dp&ofVB==BLOXXU}L7aFuT^@#4oB^dUt3n>+b;oatfX*)5z53P;c{V{y-JW@I3
+zVf*)h)qJPFV4ZS3ms3k&gm)ykDVMT;M~oOnaw%{-Mx5ygYa0)Ycry*=)2A@XFqbkw
+zA&e?p2-YcOF^X0_i@1!@tEh+we2g)bn!tGMCdPS1z_d3Q<Nhta+4(Rod@YQ92HP;v
+z@&ekXL6}%!56sgSU}F6c2-h0$w{r%s9}9n4JSLa3@SjR&!sRsr?osY8dmK~mQqfTQ
+z52m@UBpJ0C)B8LG^7vq8r5iAgdWl)i+hLAO$E;~-(0)9?tOQ@M8vS8QOn~|xhrkMc
+zFu@juz&b6dNF0aR#an=vX^Ehv(a?N5Bj|V(nA=MPUHStIdX1o~S>Tp2nE!4kEUAsL
+zfUc`yaU>QxNvQj=SQJ7z`OtAJ`n8xuL2U$wP}pe85PUcc<|hrXxN(0N%8kO}{!Xxt
+z-GRl^R*+gcB(Qk@ZK&PbbebR0FVb^s*#cNPJqZ@quUIxA7257)SiYRD*@G;su$u^N
+z$^xvI)*OaO9tdj}0t;0wVeJJ>3CRe1xEAvKFRYC7B~`K*;rW`tQvU(MUr_Cr_dQlu
+zp`=@27gn#5upzFA{y^56uG7%`J63O1F!>s=rYF@`Z5CtA#etB0_vo~YcEy^@17R7%
+zvG!&dP&OTFv&w-jNW{88ihIpZVg16XU`Y$HelZ2;=@+n}ksq|rt+4Ub2S7{1roffZ
+z>I}x_)jl>_MyIejXACSQ3Svv~M3{>>VT*SGDgee~tJevbPyE8x@ugvS5sYoP02W;o
+z+wM|Q)Se=u4qe+Vy%F)WJ}j4Guyart*ydu`nRXQB^v&2atTNcxvxqE~2-AjGL|*oR
+z`KJq_`fq`_-w9DUwEoRk3nIGA6lfl=5bbmW?86W2Z{P<@zsA`AZ97b1mk@JkD#?xp
+zI8g5;)WhF6aJmOfr+eezqi`y*>LIop<;0miaVV!MWr+4TTyqmNr^op3P6KGAuHsm=
+zS<t>$#Ig8dFz;!D<ER2-scATFJM041`vZ>uqkk71zcZDxd@ADfQ?v(h+nm62ek1Ni
+zM;Nb_MclKVr0b6BG_{Sx>3UAU6yWqUy4$-Lakd(L;<t+sA5F1;_G(-hO8>ZdGhCqh
+z&$L(J;!i3%9FlN}ToHcdFl_%G7%L4&!aE5b)=8&$AD~kmZ<xy~t~!m)eRP_J@6)N>
+z9H-Md<14OY6@d8C57&;22Vz^}S_VD;{24d8zJ*rJ8#ikgfqc;(i98*q=T1oU%?AH=
+z&W6Nv68%H>BJsxspif1e>RS?Sb#sK-#~ZivWm9(FM*IP-Tq)dcO%?0)O1OQe7z|-^
+zk!;ryB49U?A5y%yoTSreS%bS}9AK1LxL1-~r%Q!!zw>Gs+AYPyAu&{~=J`KukMJmz
+z)~DMkJZ7|f;)C$GHA&}-{qVSxg52(f)W}3&`&pzOZ4L3k3r~hsfEe2XPxE%9^7sUv
+z9?5|gnuVuFIq95rc&=r`SnwvEzoP)Pc9TvOR0uC9G07bZkoK+ujFtbx%bJw*Y=frb
+zWpXyG&E_DzPBPfOMtIeBF0{sL@oKIeWaX-O^@A==^lzQ!g%^;q>ntq3`;n0&>F4W_
+z*<(DIqeAA%SeW`BL}m&pH;>176Hd~z{`6e7K94L1N;(Y-;BD7?RQ2xFX*0F0s6Wsy
+z-NM_bF3_z0czZGk){#%}VMJ}n8prVQLK0P*+wn1(Zqh!(bLoE*pOccwv+=^0Hk1oS
+z$KWgP57Vi7_`0McWb`R~FEt$Uz(V{OM_PB)7W{IcN_J{{{QBbubIHc|y`&3?>eToD
+z9zZ6g=`@Whpwr@aoMB!n*t^FJt7%<(e`kiggMsz-%=jh@+L+4B#3#a9=_fNSv_Tf1
+z#Y~|sVHtXnnUZN4`*deomq5t5*O+!Si3-U$X1~5P_~hm+-#|J;&%d&K<7{VO?t6gc
+zkII4}q!ug44nwA1VFj~VK=zr>3QbIe@og|Gw47|UYn@q<f|OiZyk|vkyn={asZ*YU
+zPV<7ztms>cl!YT$@sy=7z3^fs?Eiykl!ujAL!me>la;*cNXAl8R=VaBnD4J*rEN!Q
+zQ^^~~N<XE$H-=t#N=Yc@6)Ur}3sAc;EAxm<fc$G%*>(qDj`e3{XZQj4r?PVPD=F#p
+zU=Fogz`WL*IRtNq`c#xTT%$mB>os#oC&~4$EUQqH&P3d1=2+<j9dL72abP7fC>pcM
+zq!TP?!fcga6o>Zr9lcPMUU)=oKwQcyXOXw^`zNd7>j!J#9#*a1bEy2Em{Ubcze{E_
+zrz({7wk={#?oEIatys+r2HCbht5rloguZ8WR?dULy*;b*>?GKaVLG`M%IdtNf^z>h
+zRwtcq`c^A#tnP)$U>#erx(Pq%Qha63V=2ULK9kE^_PKoUo7Eez0LE55SiKP>vQMmK
+z^%D1k?`Wn|d)I>1k1h>4sV=LZL=iLCk+~uVV&59(R>TZ;^EY#=MR)ywvCM6GT`D`)
+zGdDWZtfB1*Ygl|AaNLtM&eIE4V?ow<cN+MS!#WKu16WhG0;Vx7Su@{l<jFl{&E`|A
+zKiZMCXchoVr6<gNSOF@)UNZOT$Dnz+GWXx47bXs69wW)SnRc9cj4cm-sD@5?W-aqb
+zr!zc!BWqcimb<Of5!TwR8d%RN%(DXdXsK;k+u<vKNujJ=AM#YUxUmjrQedodgLQ1M
+z92UR6tYiNRFjO7HI+YJ0^XMAuH2N0lfhw%?sTbgO_RRZBF|b+dS(i6d>6ss~Zdb^b
+z2@hc18~Q?Q&BwamOaY$WV?EB4hK<Ffvz~d~VH!1-^_pRZb})hY?ED5(zPijO(*`45
+ztKRcg!culF>wVt=mKG_jPvcpTp0`<_IC7rWztSn3YU#8VNXuox4A$qSJ+!K)S-;Wb
+zc8^-X`c16>{^U68M>U1TX%!oQm!$udV1r7$hjq?-HYjl!m~%E89Pa>wXEWxv#vgpc
+z9-U^lVazX<Jp0C1nBV73;B0Iz%iLr`hyDffFJ&XR9ki>CY{bu&(8k_lBggzZgE!fz
+zU^npU@odyGQb0pI+2}>DA$JvJqtDxtDVfY=qjN|$Z{NqpT%j8G%ojH1tsPM8GaEZ7
+z8tm*)HZF+*$?+X*{JZCr&5Ue<#~7%Mj=4N>TBoJTT{dwjrQyzZng0@Jm`d+qlXgvj
+z<>GTTxxWKckzQ=_tsAgx9>XTzIS-VKV^eJ2abPWauql3Xp>{lDQ)0<$^RC0DyqHHt
+zc0)E*3K$I2*wl{E;ERg0srN{FHL1y_Ev0N}xW#6CqHBu6Y-Zt1SjYTjfxGIGI&RB?
+zrjhJk+>PlXwt+L7TW$eZ+D|t3#6c>)J=pw{q!DMVX0`=8V<8I!vjr!p$lRyc!jfr_
+z4%uwsO_JNQ4Qx?|Mc__$Y{>))!GC(Pkj-SJ7n;bH?N0+H2eRc=N%#A_XUkiLL57}W
+zE39!a-N|BMRB*`a^I2F91t!x@w(>vv03ioicuC4Jn=7z2_Ehj>+_tf`dxyhvZWmii
+zs)fHUuhViVh^-qq80O)5*~a2GfG6eIMps9Qj9?qvjez;w7q;nD5VQ^fZ2PDakef@e
+z?J-H<S3l~s&KS>jbfJR9sR7%)cqLFgg6)3d1Y>A^78&;xmb3OOGGQ=ehuR-l<fC5{
+zp>F8pmS-&TG3D=icUWZ3I%r!RSk!&81-AEQ``pLCnDZg5Ux~uDJdx}mbyQ4yim-#1
+z9H>omi^aYuPZF{iJG|H({MHVg#x^T-ng;A)hhqdRFN4{UnX`cKD(pyLSuj5fJ2rb4
+zc+sZpIHQhMiC^saEz&JRt?bOgXc#a3VrL!}gl4RhOUpTS_OGH<yL>r|cO-xL#$Fch
+zx1H?Xne0+eU+{@@*`-5NJXZ){S5Nst);!CuZ7Kvqs}!B)r#0C1Ov=iEUDyqKYQY&8
+zyXk!#S`lxSSmX=D-##ocJ(+BgRCcQ@W$C;N*zHo3Y;S&Gx06UxW{zXG-=>giKb(i%
+ze#aq(%wxCzWJBDT%aUg80gHOblHIF8+;wBgoo_&HJjd>Yg@P}O)Tz$L<uWBir*(Qm
+zc6a)A@Px8DO~cGO$;@VV(|gh1mtyy$XTfr$HA|h+3xdyKsS9impbg4lsVB~oVe^VT
+zX?g_agRR+<UR~*)8qc0Ye}?Qel09|b4EE$3d*)5Wbj6nJS@b{{-G{Pgul|6~ufU#<
+zB{6Ke!JcoKM@jZQdwwqgM*C3qqU|C`YfttfESg-^n(W1e0>G(mEbX=n%q*3q+s0KO
+zT`_>Y+DKCHO9sn$JO|>+5|-&k;p1|mPSfKs_Qn_q?L|SBRje*7k590yRJsSAl0ctZ
+z8pb>aShlGL_<=_3y|aMUt|NP&^&I$SWFP#<RD4vEeLP63_<ck6>4`txTRYh2f>d5C
+zug7d(^3?=?JAi#{F&rjdpM8yOOBQ}N_BDabyb9yl_r<<2boXL8O>dJAyNUhyNoqXm
+zEBn>DKIEMO?6>OznC5O`ztjG}(sB*^LuZm-8pHnnyXJWgvcKOc`)|9$@u~$hOF=G<
+zJHT4io=a8<((=j1)z}b-PS?1hxIe`4huly<4wkh0+&I<++MN;Hw8|Uiv~t`$X*tA_
+z6s{F{2Ww3O*PO{#$p4dD+R>`n*MVC_FR+2Fx%KaC7`@7HyQ*`@(+l8sFJoynx8wHa
+zO)wnT!R=qYhIzXOx6gKlR@COp^F62K@vJ$|zhNcBrB^(E4h7D9cX+`*BzT$+<%Ns7
+z0fol%!ehKCVt?XA1AQs3t>L9wdV<9);ic0)!_X{{mvbVCnHkT^SEUj&_6T<vZH9Ut
+z%N;{#^(RMh$9*v{l&;Gw+2)ZRvg4I^FQTj+RDoCjEr5D$xRW&n7HQy4B}fGOHsCeY
+z6<Dr-*J|_;h7w(Ptv!oioUZX&zXrpUHJ{fmLCbW;1YU<xJFkxeud|f&$m_?v&hikb
+z1{--@m-BS0&+@vv;-DH0<<8m*@T5)LC2$N3%ja^J;2^TX*H_^#yC@zlr5AqDCs0Lr
+z{c5kttsBAXr+dTjrxUOLj<hWE<E~>jk*rwHU7vq~i2Kc5^)uC;yFI4teXI;`FlY}@
+zU@vc2@Eo+I-n>zt5)gZ`dE){U_r|31#<Qro@hFNnnL3F6KJ*`L<TH%pO@eDc8V~X&
+zR~}MMn#`NWkoSJSCvX0sCFHr1yoD#VZ!<!9i*J++uYcnnttny#{ox)jT9ZXY&wm%7
+z2396-X`r_8maV+yg#fVqKX|LY17M!9khk*73uEgT-lknQ7+j9<Hk)=)=Ps0ccC&S*
+z7Y6fAWvTTxpe6U}MD6^PLELM21f)+B?sZ@qWWOTZi=1l9*1z0)a~!PUr?_{*44QDL
+z%)4|l!+dES@3Q|BdGX*~7uZqHGLCm|I|rt#dwKWFKQOh3=H0W&m@#+aJ!@q{E(GsY
+zjn2rohTO;Ib_lYkEBDz=>Av!C?z5K)q$;C$?<ZftmtWSYR#nR7g=pUAA~nA98+qU5
+zG{wL^bKg@`v({|M2h1%3E57i7bcV#`4DNU80OWvy-0u}tYNHQxzmJE=>7B%f*i%6@
+z_74B&?(t+F-b1(f(u>dw?ofRv>D1D1^M7uhsiZp}KIRi8jq`lOgu}2pXYkQw$h8ZY
+z&d1*D2=-|UADcD^yjlt$Ke{wb?@sdZ|9p_XWx|@4FKyd>l~0VLR^;eD+<%D^mBM$q
+z|A{|f)&AoF<W6ZnKk$GY5(~7-Cnekj+dVOt+1@(&*E)Q%<8BznT<4Q(jDZ$3fltm>
+zV0)_Q<X^LN3UQZD{!R+D?_fUtksV~03w*}25ZH`S&-pA11xl}OJg^Z3z-yoQ?9$n=
+zL_XlNqbPZ{u<<#EXTi`RiwDhJ3}f3~JZRexa2(HNsd9X-C=C=z;B!wlfo1j+KF^p2
+zHfa-|=XRg`-dlX$*dU1S5BR(#RBFe5;PXBfqSoj7f24c+=vThDeKNE|opf5;ZsChl
+zB~>3U_>$t)=}Ii-OLrZHDe*gBdUGU9sa1K%qzkYNuE;||DuA^Q)TyqP*Qur4<DrGA
+zd7J)%hqg_oD{99>=e(i6%hajG733>iW<h17^A$5}wCu~*;45y$LGC%lS9Y&NHfU`g
+z-u@7@^>ul8dH_(l0uO&p9$g<lzRHzK+nC{eRm=P^Z5+>6^(Afo#)+>PO0CJ?8ej9A
+zCJWB=<7<a`KsIpV>!y7MW@hvCg;QWY)}60^9|m*xmwe-B(t81Je536#l{L;Y_?B&t
+zAV&xCtwGf19$Jv^sMUq~++X<a5K4|)OYuE<C}{?b;(IQ3g;wbZj~o|9PPN7(vqFGt
+zt@vKLWY$s5`Q8Q}AdC<A-bwyYH7fD_ds@I0H;u;_I>S0`Est>{8|2v=9@Fq2*K%9T
+zH8N_dR^SJyA8xGElpoXz!s`E!$9m8zoRrFA*E&MJ{lH^)*nv%O;)gU^d|6)nklO{A
+zTaD*OyhzUsOyEarjsUJk@T1!qtW})(u@dzmt~Tb!b~{no)QBH1pAAFj=KMH?9T8yU
+zC!EefylG<NCu>K;aPb*Gz3w3SB{TV%z?YP*tMhYp$rv_W=I57x14}>4&%aNG>2Ms6
+z?-&dXXL)>30L(?t^Z3^kh~4V(i;IF_F;wIi*V1Bab(~*Z|BtiyrQ#6~4^sH0g!hn7
+zhV#pB9O+&f&9CHN2g^a5J-^bJD#vq9{7SnUq)W)B^DYUvHs@C+c7f$y5q_0ch1wX(
+zug<su{;WE`noKU_dq;k4CdILrH~IAvV}NFr`1P80<Z6uKH@?yV)%WI!Ej%DDPUDF^
+zDQ6z+&J*`Hf#LcIo|sPcS(RXZ`&mDlq50KPe_-x;nJ1I~t{slz$*bD{GfMLmujkO#
+z?cyner$VJo<S7?k0WR11y#}cey;|~nJq64QJ^8(vFJKNP9wVQ&VJN>JGZ)5%7x;rU
+zel#!fnLqeN(_Z!~_(NAG$T`$ID&P*38NwfxzeTw%q%KdLv>oD45B~IeBqi4<{_IaI
+zIZ|f+vRMSQ{NMP?<T#kR+~VooNs+Bw!(ZidhdIiXzxwy{0<JuRN?X%p7oJ%q0T|hy
+zXL^tq_iO{tOrw#AavuEkuYuHGj^S@MQTO6Sb)H3CJh^Kz&zjYUoFsEL&k8C4t=j>f
+zy@9F<w{JW<V-t+7OZdBopUKGC%HKbu0gUP3AF|_M_!z@K8faC-oZ=rJkSy6^&p*<s
+zlr`P?r*HHRXFBlDlk6bc+4z@fluQq7=3jr_fGi^Tx3#-qc|C}K+x>5Ds|Wvn(^d{<
+zzur8jbUw&VfyDffUJZ!_h^vVOiJyoRu{w7m7AEc`lE3P0Bo-wOB2ww=eVYGB83$3W
+zKL44Qoaf1(`OlvoFfH!Ne<j+%vZfvX_3##q;|}uQd9q2Drt#mlIMOxM8}Yv>R!G}k
+z0sm*fr)2`a1l@_>1$$1lb)GST|0U)2=&MltJhk%Y3iXOs&8#NE(15aa$&bP~s0Ku4
+zdtnL{kO`-RDe^w#C85(;+D)hFb|x{0B5D(%F_JTGHH1wYUyFQ{SfPC)ar`(<r%Y-f
+zEcRqu^mG)K;RdQS3kYk#MTlGbbjk~-bsE_#ou*r>b!yGcB99B13I(@|JZBZGF1Ll<
+z>MO8X8i~AavtcQfBJ3YhuJ}<`r*+&%o5)|BZaUv@B7ZQc@{!#{!Rcctc6*CL$+W!I
+zFV!h(+|_9<5T46|%S2)3P3~h!QTQ`u@2lf=TI)KBBE8A<tCU|935bJnetuCj>maPv
+z{)%G7N%8G)6vY}XfT8_YQQY@7EYoa-MDYRSE<`jDC0mk|teitkB~BHk^3!Bd%x_V~
+zaSY6NW{5IF$ffjHD$2GB0ZY9o%Kf4B9Xww+6y5|={x8B&QowoLSU3(PS28nHI3C;q
+zHaNei*xm{3w2P=1Qj6pS*QsJ=>onRr9?~CZFXKg}5|ln8(nX~wX5hgRQMu++7(MTc
+z%KM$64mgRbkJrLnY>uclfgGoU;i6g)>7ld$Q7xr3iEVpPeM%VA#|5JL{E3ugs*4&8
+zzCgAZB%JDzJz8Cgn)5Tkdi^JAo~a70<4RG>@gdDn70n}R`;d*1l250W`C8NtY5~n*
+zi>Q6!7?l%sg>#4T&}xMV=O=Bcp|nl7gmfgEGoNsYoI`@_zNlxLO{chksJD#t!}z<R
+zel$tZ&PloS{w`cse1XyDtZ-X*g=Q5h3b(`SV4mGtG$>e+YTNY9qQOyGw-eGu!#Hx9
+z+yh0Efzjk9oDxlMdP3c4Et)xyW9?i(v}iODmi#q^yMdYqLyrjesg$I)Zx=25(eI_y
+z5-oR3r+J(((efq<uH~IYE7MErT-6Y*gY!cxc}%pv;|IB9pzv(%1k=`E!gG=>2r^$$
+z;klp6g(WXU+ra{Abt#=%qt&9F|8~gd8$`R$=b=@M6YYzir?Q}#XrH~8T!4b2LnO7#
+zb}beij(i3$*iCd?*^G3AtLS7uh&oo0qH`35=yT&m*Rszc3cnEDrbNL|q^0PVNV<X!
+zw7cy_Q&=Yt6g^^!fc@&LlV9v2de^T*)1>u9@8K1w7VRzi{P+Y5?<D$Ga;AyWlcMh@
+zZ?Kv!qVJERG&%HMr-|+r-|nqw5JnTeC#j1uFhca(d>7WWfuetZUz*)IBnAy4$yy>u
+z_;sP?!hnXt=69Z!+n>Y2?+NAqnEPVrr4KaD;4Ma2$P%-pixEZQz!Hv#k!mum%RY!v
+zR2Ha!hhoeO518AZ7h_f@!cfL6#(ZuK)8)=$ys<tRKsjPUeHWTeI4dShsSfiSDJI-?
+zfvNW`;qM&)L;tSAKhlm`Xv=IOz$=d0m3u@$AP0Pg>6FbU>Qvi{=kj!pPHXYkBH+vg
+z$dqLwAepjZ;ZI_cN`sj6Q%wH%yhvj)-JZj`^sAUY>=(?Mub7dy2rPM;iWyI-#9V${
+z%-nhw<{nK&;6RE8OKjW3?D|z<emYXjcAp4%-w<=U$3i`+Ddr`u0DI*j7F4BBTj`Nl
+zSSps@u&h{=O~v+<H)3(u7r^!oV##(Y8_pIIAv;UMczv-5mDj2H*F%IlAArh^5~0+$
+z<=5OqXeQBcPb|wU4)cX|VtG$WVm7r@EWh;$#vdER3a@F<z9_MB0QF0q-siIJgk08t
+zkjp0JMK}!*u%b0Z_$cbngbXJ76Zebom>V#3?Jrh)knOp@lUN=65^VH)v3eODc+4QN
+z?hgg7HC(LksnPONV*SSm(*I2-iw)Dsw3}E!Y={dd<+4R={8<4a;kVe-gT!S>F|p~p
+z15nN;Hcz72^q;H5=Iwv!4U@%|6CGi0-d}8sqUnNG8^v~Np|R4}M8snUuzm+~8PHzr
+z{<<0bY%Q^;!WSB&m@Ohhse$Y{N9<jq(F|q#ZzAe<P3k;X5c^_iHu_Q-5#1mN<^%2`
+zdhuLZCJtghz0MPh>og5#I<*U-B4+eND96Df=8+G~>t~ACqEzkonJSJ(T%dWhGvZhZ
+zRen`hh~qicN%4FYCq|P%dHq(LSd#-oJw~+ARHtV-apL86nw1U`C;L%eH~to<w!VP*
+znpvF6cnj0bVdCsU^19j&7H1zEqawM#I9HsJGU_JISKUIPx2HHikmP$vb#eZd6J<@C
+zIRBs~*wcHt%o#2&tfUVZuu5F`HVu|NE5t=c-H782#YNlMaF}I1aWSJRB^?)W@lO>P
+z+W3geEzZO8$W>fE7*7GpPb8EgF>0795-NQmDb-md40NNG`FxRZ)g7|JK5=EDGmL*e
+ziYu$hHtgI+T!}veL%Bq8<=t>#&IxhVj|`WCPsFvtzA#R{EpB+y&3-Id*b>JXAzthe
+ziR-CisXAXIzS{(AsiNXm<?E1*O6fEmbrZKdNbkQU39v<@9FQY!_a>QMR*59qdSI@+
+zK_q$7;97yNBIzatD#vZ&PB~f)4SmI(ZV?dU7m7Pu=>t0E6L+4pq*3T^;$FU2WH7g}
+ziF+kzlCJUzaql)AAzq97gO)*+SRx+K>!x1M#RE4g7*4r}2N~q}1RWC(x0Z)&RY^SZ
+zr%=76U@mVB%jLre@z`_+?Dqnlyhw5J__GOUJWo7p9|$quU%ar4hxyeF@p2z2tP-}u
+z;#ILZu$UT&S7ZOB+p*%+{3OWQJH@N?OqiIU`jLtP9w{=O(<P{66t8RDfN{@Xk>x-N
+z=|Me_W$Oc}8jGx}&am{g>a?zn7g-NUh=hF+*+s)4(@uzYJ*ZY}^hvyTzE3kbSH$~~
+z)Q+(^trj2VQ2LE~Dn4$dB(&&*_|lh>jklBd+KxiA&s_2KayU#s7Km?C7);yWi*FC+
+z!EC=;eEUu!^SrzGzJ^YD5u5nFtqBnPSbV=i0>%~~a_DB}Z>9LTeiK;J^WxWG`gxG6
+z_}%OajS4mqzxN!Z8Tvz4#h?C#Ag-Mhf3H#~?sY_>FA0Qtorn`*Ngg3t66O2$Ns^CF
+zhOtJ5ltU>Vm={Tzm;{UUu}<sEhf-ak2$wKYr`B~Ak?IJyXyOBCT{}oabX%HY%8|xj
+zU8%x~mL|K7r2ngXNmGbF4OtJ6rpRM3hm@D*OfpEnHIrHsl4eckORJwRt@C%%t`wEi
+z<?czl=wzx5i%PqXy=V$4Q|2vv0G5*$nb$uI7LQgk@6UgZ(N>vn>kzOG-m>sMat&Lp
+zkVS`Zh>!uY`10n!vL&*Fr>!8EX`(E#<Ty=J9+#zmlJye$K$dARo(58D=~NlRWSN!S
+zAUa={WzP8mKljSARmf!DSzD*}Zl^5Uk+fq>J6U!N)qoFkWVwRm1X=IMa`mUusdtwS
+z$@D?^C0W6VDy_>yWQ9AushdzsR<O|ntyYq(IAH-Gf@DQ{E)uHg)M|H?m5v;Psm%jf
+zxo0GeHO-QhCpp40vZAcwOxo^kQ(5KC7>K&@vdVWyusq9U)$R(G5xr#fWz>e~GgUgd
+zAEpjemUKEW6lzpnS<{JD)71o7bM{%7b_GdWtx9CUM0b(3ymM#*ZL+LAwIKNBE;_ZW
+z<Fa-R-DD-t$vRQg4ye#qI$K}Ea$=QqE=NkpT17gi((m7NmM$SCm^ze~E{8V3czd37
+zc}b%%u7R>%>0vOhz98%GB00b1wsgCjO7r*kWy3QR;Kom}$%eP6C@g<hHs1G#IyJ-}
+zv`gUTE!ni<dvY#*$fl7UVX0F`HnUFxoQuh3apZD!NRiEJ$I(#sUfC+N3WTU5TdnE>
+ztJ8Ja>T4HhXT5Y<tAxuoJzv1oy`^k3Xb!32x6;#b6GXK^()08unD*GBW!rPXwDstW
+zY&YREj9GVO`{J}dEj49_!`q=1dnr45lFUAtCOgLDg~602y{ePom>Ms=nzx4Ker?%x
+zp$FM*k7c)__hGGnMD}oXhxzPB*<&TC;yU$Y&$lnB!?Q)FDZGm8_1`FJGS-m2UL?V4
+zD^XtRzGhW>*_S*UW~w6lKCq*$2wBp1H@(rc2-!cLV)m^Sa%jhMkkVHUB^yyV^pQia
+zl7(znS`I6C9F{Bh<nTbU?e;yB!_Sfq7&TUocuO^2#(Oy`fFkOgesa{W1~mCPK#rbo
+z2UAW{IhqEJZ07%d%h6XyK@{sD$JSU5jQc{4+j*#WN{%a)4ZgUI9N+W?Sd-dv{M7r@
+zI=?R`xKa)nHb_qB&;(+|1)V030dj)>I+(&o$O(bTFjRRXCtN#5mC$=Rk)|0ft(5eS
+zj|B=gkO5<!!_;l2oYeOZ>Hk1aIcdZWDi*`#lzOy$s;9{*Z4Z*yvq(<yjix^AQ91QL
+zI~do$mD6Hq`Ju0zc9?qdS$XBOBUJJ1@R!p|M!<9=NltIw1m=j%a{7NM<b~IjGlqsi
+z+{~6U(m&B99WH13(iVoPbLFhgW{56rW#D2PC6%_5WYDFxu-vpKQoHizFd1~8l0(%{
+zo$A{TIX9>W)b|o{?(S{SimZ}zKUas;Cdqk0UBSO3$axnUz#KS2&ihLetI!{v@^oK0
+zKV%fC;ihu_E!ug~;h0=lCmv8&<ie!CG@lhK7up`TrskPJE`0d~rlf6hQHfxx%~Ir|
+z`E<&UmXnKOB7j*vbgEy4<f5<sFwR&egZ~w++p}cwNE(^#?jwVDa%dN-%BA_c0ils{
+z=|VcyYOM_EM<TVTS%y5OWmk8L49QwaXKH~A)n<X+KO=4b9*E_=Wa#EUFq(VF&>wV0
+z+*`}#>u6Q{eIu9uoB*+NuukdJOonwJlPP~o88+uRWSu}6c8R>6EO)uGL=cTVf08S!
+zQIh&NN3Nuvm$lwJ8SXv?a^Ei*9_mN&!yv;~)9>GEC0D&~O&j}G*yL(%M|}oOu1-=g
+zmwqkRc+%#`KF@Tr20=Q-k}W!Aa3h`S>_wfX>GyP+XV2AX4XGv94339rTUV~7={3vq
+z47qj;DJ=iTa^18p5WeT+`sJTt{(VYrpaFVjv=xvWraO~mx=n7XeF3ITHRPtcelX3O
+zA~!Ys0)yF2ZfZu^uwys5>Df<c|E-ssfBHdNwnlE9>_@HW;W|zI&dF^nonZOCQ*P%I
+zXiUmiZl?`A*5OCx_NJ4m!yPDh6r<Mj;4X3px#1RTu-sXv7`RQ=kUJY5qe0Dma_1&r
+zh{>69=j);{?-(U_e*Ho_hQ`QUjR!+aOqY8qWz!|H$i21b65V(u_b%K)dkHSfz2``>
+z^*k%1D$}KG6fC2v(1E>*(<z@m)@j<kOGZ^EL!$EAT=tr))5f-S(;skoG?%e|bc$GS
+zowCWPT<$KB%QJpD)$Dt@T>e|9q24>4rWu8GniHdSTFX3<QC(;#&`bxow=dY<aGmCh
+zt%wme7~Fo!=r&#Gn*5T{Ia6WK+RNy_PB1sUEcbief_ZSPJn(=b*Yoo-b}vmWwCOGn
+z^ShKYeC3fXpJ1+GphJ&_rS?*J^mZMX2RxI<em{e?d<S_Vs0rA7O`fcB9R}AK@+6&U
+z`8q_N45kL_th@4*X1fK8v4A`kTbcfGDH(^3FdSPg<4RLa_o|VM+e_K*>~MM7jnZ&*
+zsyscr3vF9-mZzWl!BXy-JmW#j^)Td_h#$~04f1SE0a#-HljlfgTcWSab7L0JTxJt_
+z{vbIbGo$7CGqa$MRgm!w=#sxmlkqm6GB7!%%J`M!bQZZM;~!Ijv9OMe&!m4?hRF+2
+zJ}~E0k{3I+qm6l4@?tpU2FhZW{3}3q-6Rv*t_0hjA`{5#6{k<ignyMzh1>E<lm6hR
+zGUb&3T3rpU$*YMg$<lcvuN9^euWF#YR^&EWF>j>p+65{Oe=L^QQ^;~jj+fUzFQ;t~
+z<K<05Q#xX^yh&Rd%|D;Xn>%09O?gG9b^UvJ^JoxlSm_`W8=NEYI!`8g(QN+DvN|=p
+z-ZF9EADF(y$y?7Tsny)0(<Iu-<U%yr=5<}BFbY^LpW9@Lk;Vp!zL6=k&B4@lt-Mq9
+z9IOtb<efkYKuL?`o!64~9B-BP?5J+vA0+QJ8bP&P9(iwWI1B+R<-K^?q*b_-d{E;g
+zjl7hT4}wW(IF^%-D!hQ4o+BUiq)SxzGm%tvkqYwhzcU%|N~Zq!0+ngYl+Q{zgRj~v
+zpOvN3sohig?9(Bt*Wb$LlNiMALpr6?X8C+QRl|42$mh{#Vdy<fru9Dr({UG>Zf*qA
+z(+M)YcsRt*QZoJdH>#*w$ye|NJ99+7qD@cYP_j-#3ul>ef)0FEhRk?H2Wp#WFEd9?
+zqzUpXI<?XzWoCFW$iY+Po0=NQ@RCG#+Mv5kz6sh*vHZAv^ZPUSx%N8c+x<EXi@fAp
+zuN0U+r^~m4NnTHKmD$0h1CA7u*{|q~J$IMyBICfV;qu+blaSl4$`3!E!Y0Q%$Pd3r
+zx9902Kjx=5s3_#e5l&zyo5{}|Xisdor~ERU?&{<;`DKnj<bSi}*Q&HEm(8P%$NOoB
+zCRBdAJ_6>&N%GsBCXfr}$Zs_9A+*KvyAR3nP8st1KoY5~=g9Am6TlvO$?rMsAkL-9
+zoZXcF*{&|~#~vyQ&o`DoUXeQ8-&_7_Np*YoKJr(fAIxQ*%HOrf7i>R7{^>rC_8869
+zX}aE8r&i&J{5x$jRZ8_0Hb0<!X08hFQ^A&JDSRCZ)5En2IsUMOK2Z#mo`+3SY*rd+
+zLZ-OI77I(!=Ss}{=kFC!BE*?wI1S02p+>`#3rf=6&+}T8nlX*G&IAx+iF=ef9|B`f
+zPi1J)9@YlI%J6+6ZPY!ejG<)T7k#UYKev*V<Dtwu>66=aS6Y4n?d~z9EjUS=or)?g
+zii`-yT}rbZroP?mvC6WTl27PqWr^7X!`DX2a{L?hej}CDO7Woo3YF(<0hlK}RCe{x
+z!dh;CvTHpC>|1YTH-gM2t)0rdk3N7OQ+a9YgL!^2W&fx&tj)iueC5fAyfjbcbLvQ|
+zWWCCFkRs$jdVcf?WU&p(mhUR*^wX_W{vH9eW%;ElkRC?cAv&mn-NWdU7E}cv4~Hm{
+zp$bv*v974A3b|aR;oxpMO^<u2LQy0pi#w>o2{*ufCaWS(lW737rz%!AFF76!Rk3Cy
+z>Gpq8#a1?fcw9ggdqfei+EP`#nm^1(B5kU;FDaR?M^ve-6tEJZI%RA%Rc1H6@f@Yf
+zKG*_Ld%Y_AnQ}$7nX2sfj^Gcbsd9zwVf=bWmGh^&e3z#xH_eF-FkY44@`7eob}NT{
+zbkB5Kttx!`48is($C8y`#!Th7vMx*q3ad&NX(YwZwn0@nI}3O-SXD_PQ+aqdRh319
+zEp4Ex29P7teU+*@&yfbg9q6D-gHJ7~s&}AJ?PgLn8j_t}ucE4v5=N5DL)G*Sp(a+2
+zs=0*HHeHHZS60zx0Gq1gK<|IsPSuXR2FRVPiOh?}A6u8pJqUx#t3?$(cxgVrhM
+znbdl<%~sB9|NZ0d%4O>zI@NiUOLkW(qhBePUsQhAEUW5;-iEYnRrMZG`^~eMa_vnU
+z;@ZV1*GQVdyI)_qKBt*B(MUCzRR@OGp{ilbDHu!V(W!ZTR*jApfT86v)tJ6o!iIrm
+z^arfvPt|z!HX2czuA2I|Q&Op^({w9AH9byF=+r5yS)UzL$Cpvf_8fw-Op0pmOoHUZ
+zAl2d^h1$aPl>1SV>2+Q!_v2J@g-uc(FX&P^+o@JGgoDS$RjZrlsdG|Fr@9#Vk2Lb?
+zxL<!k8(d$tN~Bqp?@v|hpR~N<nyWS^=g~5GtUPI7l{UjubvSB<9C1K(n%ay8tR|~Y
+zGhV~I#HzepkAe3)tGxCer@-`4b=I;WZ+BB&11NGDPpfWo6c9I`NP|`n=Bn<_K@<s_
+ztL~$0b!pqfO4U7V27QyjZk<}_N!7FWR#=X2R6W1lr!T{}t$ZvufcXPdZmG6a_3m~W
+zrmtsIpEiRbFK*Fkbu6m-C*7c?(or>F1I^$EA5a5mq=Xq;tAS1wm_}St1Bd^CWp5uf
+z@F%(GBc`Z9wqN~Vx-vx#?m3rs*p^g-k7h&I_t$A`c0die6H8-2WptVnG&STcnNv*$
+ztD$+4Xuheb8rme9<{6i%VU1Qo#Gln^$lR}nE$K=*q@fy?a0r<8N~g&CO{Z*nMyDw?
+zT-k;%ct&$f57qDm&!PRUN2KNRJB*k{%vK|+bfY&euSQH54BQx|Mm#1hSM|0U=|HjE
+z)<=y}ZjhUE)TrJhE_>BeqlVIIxzSmtw&RN$wa%BG2dYv3#lt#arW#!%k~%HZ)R=zt
+zVQs3})Yye&kL?c9sYRAnV=wihsp0Etd<{DCe09|L%iUlZ5TYi8o})muMNNowr;%1a
+zH6e!9cjrxN!X27$$YN^3ua2-ZEvEc8k^WEKt^A)-E=hJ#0e?x}rwmh*7ROVPi&vB4
+z_CWPZB_4z7Z)>Zj6rV=}mc!MQ3BSNI($&<mw61S&P*XcZ!#E&TO&v0YS}(uV)K7HE
+ze|xKGx13=pa7Rrau^rm2hH6HeLL}AJ<<e`tnlW@Xgu1R~L{rv0q}0rs6oP+TQ?t4h
+z0&81K&Fb0`%&n5Lo&8MffACKgShfI+?k`l}$v~K@ja9Sry`;&lDQdQN0dTv)YW7+I
+zmf^3HugT8kJCjapp)57~K~<PP^-)1B-DsGujGC)Wgw=JGnpcKG@7*Xhzb}W8ZB+AL
+zX3<yCq^SjOC@ze(s)e<;(~i`}Z`HzfeQC?<KAl$k1!`dzDh|t>Qw#S})_c@YEsUY9
+zzK=esMddnDr}VyB)W`r!$56HCD=pJ9!&R^;2Nc-V;>Gmyc?Z?vRkSJwyj6?0P^I)@
+zxLUk(E?weSoodC{TwXo-k2aW|P1Rq}(n_htdtG4uutP1rO7c5jMYW_d^=K~&wWJjV
+zo=>;cl7C<7P?%mHN%PwWFX=RPb5cvzQiy$YM=gnRhW7Ox(S`bZi`0^*9uQx@>NKV0
+z*Qx#Jp_Yz_gLT+G6_UqB!lR6*3TY4x)3~K-*%X>}%j>L`8~4yQDNQYZ6asTcp~6yL
+z!V*<Nt=vHhDX_R&`D7g_r9`#z;{`Gluc&ZV2qH90t-^M&O>NaG-%n&N$EwwN8pG0#
+zxc)9}>#m{JejpjHl~?N)$5B&iy;^6xbsij3)w+Ky`Bbf6NHY5VVV$OSzB(;=qtyCf
+zT1NNj=R_6TN~fjd9-Y=|3AyZEUTvrrL8BaZ)rN_)z|-5S4Wa)+ZdaWuv9nI&_>O8r
+zY6ZxhbChl4^A<G4QcZ3AL6XS3X)e1AP@DKOu$DHp$%DQEsCu&66#t#R256+(^dJ)E
+zr@PhW%mv{8%}}(*p1#81mfHS?yq}F_RYU|WuNMtf#I3p%=_;s*kH^72%uzemQgW&t
+zsdm;HL}y^1+WF7a&iv1&Kd|&_rgo-h!;n5y?V=G;S*@Vj)r}g2TP~?x!^z30o1v4X
+zF4bwAdq?d`x<*aq-)h&J)il2IM(r+22bQ{A?XFZ1^4L+G26WVEI+0)PK1vPEd0g#&
+zNxL2D&ro}A)2@UBTM@PAt^=9M4r<T$A`~cIsmOU6@NT_|Tr>ifJ{whJFgcY2={dP#
+zn0ZJie|$`*W#CV>ci16VhP_pLS4y&8YpA_vqG4UQO+_(EM(%mkzT<JUIUq+xYip<;
+zn69D&?ZDQ3QTwluFtN#PYX65);E|y!#?cAv(k>M<<_GOc_E9kb`5>0Ms+h=AG@ocv
+zF$aT5#m*+u0fin=2ll1HP_TeH_>6X@Vugy`M@8v@ohmjy8GPJ9b-36SGQHlZ!>Nui
+zy}hLl|Dh~8y|+5DXbemd7uC@vCn^8e->8mN(a7Q4t4_2Hp^E37I$5s)Sfl#tq}xky
+zx}5)LnH;1}dQp1z-l@|hORAGANmMqBQ73=>^9y^cQx&pdalfxl(bhQ2-goL$GUbfY
+zVJdDMrQrZCo%~aTiW^TA*0Rq3NdEun>-q~S>{%}V`;*J_`E!|kS*Q8pT%FcwsVZ)=
+zCs4yvosJ3t4=AS2ET&C_w?C;fr*goJq3T>)dVZsYIyaew%HLt?{0l183O7^n>juG`
+zu}j6j+W}tcj=E6PmOxuo8mJ5Ol|`1AWOd;+ZPu;ONnIK;k#zeCb!lNC8Zv9HF2ztl
+z+5Jpij`V=GE<+{I*Hu}L6i`=6&`s4TkGj(426;zM)zzxxg1y_SuKl9oGRj_E_k2Ok
+z=GE%@$M3Lo*`uz18$}0}rf$$|h*8_6ZrCnYB8Adk-HaMUHJjAQDVh9xZYuder{$Kv
+zN_3%X-gbjZbo~x>w5v+oQ5;&QXqEWg3C7nwRI;-X@O!P(a-yG3Yi)a#e32@lwMjG_
+zK?m~Ufl3)g>i1hKl@dX{rfOA{?aqOjFw8!o?)IQ%F`=Zo8(A903K{BA7zvN#ebkdY
+zw9j(c7xknlEyrF#>Ph$om>o;1r!(j-{-D&;^d!*8gL?YsUqHF6o|(wbe>G7(i&C`p
+z4eHr@nxJUERK2LY8RmX@)Qe{1#M(Kiv`)S-k94!Cw1YH)^+T$(GgRTUUaivpq(C}7
+zR4=tSu&z?2KcKH8GW}E;H*)|(xXO6@2iP2<GPQG1|J6~Mb|f;pR#lm0X$)ssA@#aB
+z1*S8JDvQ&=QQn&BZ9n>ItQ+<!+nx^i&1jX~)Pv0FY3f~2D)7X%Q@y9%#G*=u`jCGU
+z488iO5B~3=MKmSSBt*n4;z!~s;wR!SBI*Af4b?~5MsGfLNPXs{8$R?`pEK>qMgOM0
+zbR;A5_Ehy{C`~}wo~W<p^0Y~Ci~4ps9>&Kb)%PM4!VM1U`^dqhpeDao-_KE?@SUb|
+z4yS_8ex!0z>85j>q<)N;2=mU->PKKS5Z_Y$cty%*Y>@gnw*h^7L2dObgNoEY8`STA
+zr#i=^{*>DUp`-!jX*pJjHDF|Mnyi{&pe7%*y{-mCQQmjGYhXR9(&W@w13%RS7E$u3
+zLB-#tZq(hd(2j*|L8T1lYE(b8`D8E;?m}b18w}=m6Jhy1(x7?01HKM2Xp_4^7X4|^
+zR#Mg->~FBvNTQ9bR}Fc>hC&p$WU#C4Ors+$4R#*UV2fHA?EcML-^()O^@)ZkU&>%#
+zo{p=}b%Xto)if4tG2~lC8{z6@{g0)q4v1>|x_j!}Q=(uOiiL?{CnmNSnAl<m&u$$R
+z3q@2AyFta`*)0a}Yz*wc0$U99XXCfLet)f@hMBqN?6db;Ywye4Hd)DO&DEP_PxK)c
+zyN=}qxot5bSkBe$i67g@awZ_4b#KRVF&q_}8?$_IIIU+CW%*tDlHAsu<!^t3Y_IQ_
+z$R8GF1p^Yua_^Ffw(vk!_|FH@$CDNQ*NYrk1DQwGO)x^dVMU;CP~&;5$basrG1p9D
+zMSj*M${Naw=3fo*`Uxv~x*<4ZPge8;WPyiMS+PD-QCWRs#rgqX&t%2E)FZyPAS)i9
+zgj0MT^Q?;uE`1*>8HpB`nv+=>dlA_F8nQCp*wyZmmDyt>d%`+a=5Y{-b<wOWRC-I1
+zmaJTC7QEBMDXiQsRLk8R5#`(Da$ao2Dx4^aJZKH85PySs|HG`pJs-3Jr?N`EkRcsw
+zS(T2((c)L0Rk;;`Ff^J~U0RgvHR_qj4`i}x>s-hP%4F4>rIY1J1gp^i4AX88R=d7C
+z*~WKab*cwJst#m6J&<K=+RS{wVz9RXtnTi%xFT$>`9Qo~#p+c>k$%j=>NU=Q0V~i%
+zX}QblEr2xTyPehVJ(`R>Wm&^M;5S@SSi@=1xSDPN-X*bdE^7!HgL%d<-`Fs+yr0e*
+zuSH(eFO)U0d?1~tHEUARfda4-Yf`TRdWDv=CQnwvA=0EFYw{VLx19xRdLxKbrQ)nv
+z5>nGCj5WI!NY=#vSo6zWpnEiDEpkEU7(Ix!$d5Ib(vh`zIF;;Urmz;Te32vHWG&0$
+z?E5^2wH&mN><cQhR=IkDSKY%})hz~6zdLI+2~nu$GuCR~K`2L2%x|r85lYD`taWY=
+zvb`D&ECRg4T36gl_6w_78{0mT5jj}f1xVnwFJkS|MiG@B$^7jz(GxI>`Gf5jjoLH+
+zi5a9)Ls<LOjmR3<nRS@&LXK4dtV3!NIjU4<9XSY~<qKJ-pID<E#<9+zwskGZIy+OL
+zWk0^pIs^HKD=c7g2K3Hh%q&IA)M5c=`XHiiWdRqmlWk{D6UDJ{Kz!uK>a(s$O}VoX
+z>pCxm<i|wTH57bm55q)OI+k^7H;RlF2U)j)V49>S>-MESS;`h>-Ae|Loa)P*-7!1N
+znm>^BI5dGAkE*a9?=}$a>&$wV!y#O$0_)iZ>4s(ZUo7m(dKGYk6=f;w)dY+6K`z#-
+zXA;Tsby=@VZ~^}M$$A^0BV9YQKDG0sDQS_3V$?g<=QtGRQy*DiUK>gOBo>(e4^DBK
+z4|MTyEU@w@#J`HHUtkrY0oPdnPDx~&HkS3DhfBamvjJIMF!m~d4Ose;Z1XR$0qcP^
+zJO9P{GugnJh_6R}v4P*7Lee_T22}&uw>z2*nu#@%Qko6=fi#5=VS{J>L^D%uHgse^
+zR1Z#HHY_(H`l$dmyqP=kuhDG847}3LL)ggw&SO!nVx!2N9FzC6QTuSj{Lh<>`i`<A
+zI-QMKy^Um@l5ETglr{OI*x2f*wfC-M<Ekz}OHMEw|35p~=_{K!xd^dYv)RPUc)tG?
+zWD`N+%T;69B-k8n&eXEz1IMBFfAQ?Gzj*VbiG1KW6Xlu=6ZPa1Y;sONGAdMOQ?dk;
+zx|YbMl!CZ-<v5!HCD@j_o=tUjB382$b5{FCeBWW_3`#<)rw4Pcz@`0oi8)`P82D_k
+zX`@y`As+UFO$!eu%Z~wU2Idwh|NJcY$YioKTEv1cg~AWz&VnDp4b<cpo7FFo#62H2
+zJGU1O?^kSgCl{jB3vBk!N<=S*vN_YdNX5Njb6(X)3R{=WEetWg>l9|noYQKVsBLvv
+z$b->X%-`9(TJ6CQP4s2+y1J0HS2Z>d6ttuJ9X4-$B+<P_Y~I;a7%zXa&?GFvHP=lP
+z(bd@k*pSuKp=`nQ5WM5NYyn2asDGcbg$o<P>Uz*b`{nT_8f_byC_nsQ3s2&Ci<Cgd
+zgE%p<8jEO!o@H5L28;NBYkO-Fi-es(lnG*yaE^-JU0CGJc=T%?WsxuO5z-yDv?(&f
+z3nze2F`;KFTiS9k_H!M!bYKcO;;NabCN*VChvNI4&aq|5r~=0HX3IZ@lD*S$wqgN}
+zm^azjs$UR*8t-ANoq0cjddkgK7ln5vR|H!<64MnomSt;vGszO$maTbwm8>tLOyoH~
+zvNhj6LM7bE*0#dLj?bsr+T?@S#|zlnjDuvou*O8k_5*Bv@$DdFx3Klwy&zxIH&G@W
+zW$XXNJ1^FmMTuat<=M%cQIC*fj;qL`dqG@Z8_70{ATnYHv(2@T-mSm#7f+o0i`QHH
+z#rw@nRJ-r9%{P}oJ8#WmI@};u;S-CA=t6vsFN=vOjwYO9Y-@fTLOma_t%Fde<ju*p
+z{?nLjEnl#$qtI=+`<s((os&rPwlv#z7w({9N7!~)(Jb?~n8+68Gm(d9vYm_YNo{+|
+zcJ75u@oOU%yEYvaWL5TWUgRsM!%gI8H?lp^IE9CvWCxrG#p}+PDBqT42j(M(F0!8;
+zyoHqZ&J%WM9L}66&i3pu_aWmAF!CUYrdQbERbFI^^k#=MU_ZEef*qNILnktU9Zg+9
+z=!$2@3g88-E6a|(#M*eef*n7bn|QB^?BpM{@JMcU>OOMcDk1FjxOB4RAH)*+2SLhe
+z$P!=zwq+}AqEY=TOU#0vLFa*?EYSxRwA-8|9v@61?mRn_2UUJ-Iy<u_8goL+vh$s<
+zW1i?5c7AIm(xtmHQ|&7@hF$VCi1oh8E^R?N;ai&}x#c8d^l5f=`Ao7OYG|SZpWL6X
+z9j8jOYXz~0Tg+g|RVw3BbYaP{rEvcDY|D}##*&fk3A-^DL*7cKvYRy?lI`#rb~6C=
+z%+8bSk4R@kgtA+9?26dW?2aFJ&z|1w&VyQHOT5Zb=B9%?yU$W0c97gKo;_-fwRGtn
+zd;D`dN$*JZq`-6%cfYeITLa0qH`7F(kcU0BPr#Jb+ppQvktoQn-7--&U&m5=?7*nx
+z0G8&R02-nNd*+rz>`**=_UbCx7A;{fEAB_e){DKYBS;r`z+NUsk=)#$z1}*DZ26kA
+zH)R_lLVjm&{9lr>#KztZ-wy?9Crb~gK_bUy_O2jy#g8NGgVVVLO?6*b#*a_vT=it1
+z*KZ>=Hk19YY#6a}Q`z^{=%^`Bm3{xd2@O~0*e{F*LQgHrtO31b<Xo1yyE&5Vy@su1
+zGFjaY8hA+7YcEaYfh!DqJEV*m&kXh^7NUJ~!<b!x?BjMA+>Y(Nbgv<u3Yks7V?zQh
+z>u#Iqc<gB+pF8d^9;jtVC`FD3)eTslq5OuJ=vX=j*c@NCH&J{`GGy;_n5?P|6&*|R
+z>pH`w4Cu<E1A#Mu7YrBQnxsZPG_vKdLPmp;hSTlce2o5DW@P`gmn`8sjqI5kiNZ%C
+zNByVdXnWGgdA%VzNX8hsM&S1z*EMooolX2*CnI<5W+e6xHgaErT9`J$$b$k;wGKA&
+zqPa)+J7yGEA4b+?wT*(a(m_>SF$!By;+|V(c;vAV={APPe{0D;s<P84k_vsKk<};~
+zJPYm8`Hf=l0<m~Pj1pz`f)T!Jl-RS9?B)M4JgY&|4*6|(`XZa&<!yM*NFnihj#2Vd
+z57H$+8zp~AIKy@tr3ha8U%n<<FF!KTsBzFJ(`5oE?psEggmlE0XGXcMxCE!20}ZdJ
+zZD<@7MumTo=I1wzindI$7V|JFZbl?*eb}g630!u$4@Q;s=SdxkGpbyE4GYQ#qiRqb
+zGNtE6)l-NcE&)c>B#7^wnj6(t`H?)k!Kj{hCKx4O<BxE|t1L8XdZM5@w$iBSH4_=t
+zE2HKcSl6BZEHP@8jwdmryHRUH7&I?Gqt+uE$%Ig&_NwP(`90sL>yL9jWuj64YIgL4
+zzcm_Kp(GVr^%tvEHX5exhr*oQX!s?VSou~aiug>UNkxR*hDVKNzxJYtZ-g`u0qOc1
+zqs7DaI8(|QEu}9Q;uq_TmapB(zAVu28-!Iod%xi~#fPi|3m9!bBPFZ6!D#y%na+=)
+zM!Ql`qz(=;+6{{!dnLnY?*js+W_6=OXg^|Kej1&o2a)w@d!zH4&*0iN8(j+dA{RVk
+zbQ#!zEYmj`U0#5Fs2yi?`3gT)&LKuX_gFAQQ@a@fJ<pK+;cMe>)_cqdIDmB9THff|
+z7L>DpAERsJT9PS`jBeVGtWPc&-Q2L)RGQJPI_wFfpBmj;+R%OwYIGk~kHqm<qeq^n
+zWEnp0F9zQ>dOX@jB6F(Ib0yx$&$33(lz-t4{ABdH>3oVGBpAKhW+#nT);mCA@ntbg
+zg(t+t=u;Qlv;G64Ph=8VH>MkbL#m)Icw_V(iZfwsKBMm~2dN4@jecePQS!Yq`n8!y
+z;_(8b-^nnt>>X_M%Rs05{=3EiIK##7$;LqU6f(vXGX_<zjJ%_nG055HDp?NCHcWvg
+z6W{ongRJo_Ow^Mr8iU`WW3*_xF~qGNJaJ8oA%S7!7`xIKf@{d#rW!-n;06C~U=00K
+zAB%6DF)TWq#JB~<u-Nk?`$rkWu6BZy_01R_QG*<>S_7K_e;Xs`NmyT^4ClxNDWrX~
+z8>0%9#ss~G#^}gEQilr~V>BXR`?AK^fwRbZ;<zz(IEqKVSYvEBe($l>829IxP8)8F
+z+jtW-?Jr}z4Nv^Ltua0t+3?~nz?s-hLyQSk!4jTGHzswTi4lUGj7i(_lF@0lG5I0H
+z{#-?!#?%wV$!5=QIB)kumAc26zRU$O<W6J8iCD4>*=Wr8h=15>qY+#f=eIS|n7yR}
+zv4T^LIlrfp<yn6tB)%ER=QE7ZRwv1Re25Wxc^RbcUB-eW@Dw8^8euu7kl}I42&<7v
+zY<rRs_M#F(_IP8_*EF(>a4t3$_s4Pj%+m<(4lXN)Fv7>W5)H{>gkMGPtgpogPfH+a
+zTVq5h944%d5sB^|nf#xzbQJoZo6I$qu0)Q<ZkgzK@vpIT!$@+t^)i;i)+mc78cQE!
+zB}eKfWBJTvlE-Ho%Wvbf_3L1)XoXAQRFjQWJ?4>EINMlV4U1&q1!GOOFcd1CjJ2bS
+zLOZW#tefeFF>oi1_3i`6-lMXy0rP1rJ1-g=vm%0(`ekfHqo#f1bYtWEc4V*e+lY!j
+zMf7Q?5p^#R{6QTf>Z=FQ=i<iZ_H!^OzqYX@JNSvr<;IrFQ$Zfp?__Mb76qa8nh{g}
+z9_ju^jhKlb<u+|LVy2_SIvr%hnD1bVv8_H1p>`*XZ99?oXU;daGe}t0k$-VpZxd}>
+z{Y?}NGmPy=N|Wk1$=H!2iFjHyV@F0Ivb!W3u~Wc2hwn0CPp7~kdhD+8Z=M@u%o}O^
+z8wA_&qJu!}-y*_9wrGNhJff<x%Lj+ivEs(A-UY~dsh_d?=3%l-D{t)CfchX%8T+bs
+zAfx^!V_y*7;ewOKzWdF{$o<sV_uh*v+YT7}*Pz5}x5wE3hfCl8z}Wx7S&S?jZFo?O
+z_{pZmeiV;<{%_;RU0<@jJz*UCb4eDoHI8TbifZ<ZalHL0GDbBv;{4DTRez8XHxeOr
+zqK6Up8Ur%}a~dboa0X<XX`IUCg~O%*a3;pNIE+)nN@0ra1S4TLr0YAajKr!iZWTXo
+zBs!C@ifh@7#B`)yV-k%2T09^YILY|W39hHRoAKY?CB#NdGtQvCw`XZ(oUIcKU1XGT
+zt|bD?vcZ4x%ncKH?^4G3X3)yZ)iN&T{Ub>YH<D(c2+h&UxZI%=9HU(glX-5q(7478
+zQeB4|&TBpTlI{Ct<JwHD;&CgDYwO~O7hh;3hjzi($129nk)R(ZJTz{G_+a937vuh?
+z?nqeNj7Jtkusr#UM-?I7dAS&mZ{#M&ko?Az+&I2xL>W((UWc3LzVXz8H8667@$>?c
+z*$$aT+M_)rmUlItCw)QzGsbB=Pn`<iLl5J{63lxzw%B;p8>^U>7_ZWy6kkm?-mbtC
+z7u{;4Uj&&y?S%0ztQUG;TNv*>{n1gLY<zs#k?j4d7#Wc;<yA^CGNKTY3ym-`c5gs}
+zlEcVIiNRU$%=qMjly2-y<5QY1jGt?bPale-Y<Ftob4lcMtA-n&f9@jNb~4d^{JQZ!
+z!ufxyvhig}F;X|{8sG0=ZLEA|{IJ1p(C4g)j$Q|hpWQ|h*C&l%<CbC?V;pAWf`s46
+zjo+*Gg1LEZ{6>AC%Pru<HWBaHg<G<(CF4RQx0Lim{ok+>x72F@Md&-XEUrh^yydxd
+z;SaLp8o_PL(uv*m;Ev!PWTfWhj&GmI==Fp%9ZM`^8fWdn{S55J`8M2t;M)Q&v%12_
+zy`Rf_QREmlhO6%Vh;KW|RZ?4o^jTcj`_s&~foB;GLbYTmp5@6ka@sPi+|{y?<bUh9
+zTM5V%rQdS5HnT{%m*Z||GvKF6@az~1Wh?uQ=d6WAcsr8kd>cuY{#ALN!;vIZ7M^bs
+z*38dYJpVjwvyWqW{>1{b4WIA=t|>^zzw&}FMq<WL9547YnxwTiFH|}lda5Tc+!xbN
+zRNLy@gQI@`Cz*Tf$VqIp;zhDgB}d2oyvVfTB!9Q!Me{Wz<yx2*t=|a7%u&2(?|8C%
+zF5tz_XmC1(d5I=l;e)!zOLX)md1npx^sa$6r*6Dt&4Zvi8}pK<ij$?^qQ5xd6E9U8
+z>cII4y!2~l7+EY&c$tD3NUxK4ncA=!Eh*2-_#v>IxXH`CY(cgsf_r841LxD*M0<;U
+z+^g7P&~7`p*DXZCSWjO56JAiAuDrtXR9M}Maqr5pWUYUXdxKJzt2S}(AFw@E{lzOj
+zbRiwto>y9dL}qj;Udf4Mk-BZ;m4IT}1zzcT6jt{kUOC#A9J(m4{B0n*{K9zEEJ@(^
+zYVjJ4aqV3!yheB`*@j)>HJjrS?D)WI&Z$h+^*v0KZ%^@BBd~b87vOcc7uidF;dOH2
+zEQol^eOxk0hVSM+Zi!%83UH^-<UY8@Yj`~u8(B6CGm*y~=k?lzpgo}uueSpMrRf>o
+zzyf{{i?C63yn|)ycq3%T)-lJqZ-ZbGUygC#QP4Y#``mZRXvhUQdE@+81C#gi#sj~B
+z$oS41$KE2=vJP*2AJl7JHxuRE^-kU-OL2TOk~g1u5$3u^ym<(i%xR5zi;_q_-Cyt)
+z5nw(~yyPw7a7vzR&RfKLLDav*TNeI^R@H{QWy@&NVi#|fc?Z*9D{{X*pOHtDG*MPr
+z%l(d^Rdska-a4B*SqIhOZK{t#9&w$wy*36KoO2FuS01b0b0GIG9Yl_!Jxo-kCUE}&
+zAfroH=l=IUk+u45?*9YCVJXSm*T?VusKwiN!Xo<hg}46_4}auZ-a+C8E-t}45)PyD
+zR^D+M*39&AyyNoTWW5;;>;wD-#HF~^5!e^?|E+&{r&c-0`aY3&y4r(iQeob?MhaPn
+zr0~xE;CQ^N^Ugg%E=?NEyCk*2JGsWYq!cG>>RS_SZV!2vj8SN|kvss;W7{~52dujT
+zchC)PX47T;dDq-NWGTLlcio5jqRTPf^IlG(lGAywhPV-cN{r#X;Gwj&FUEVjJs}l8
+zjQ1{t6sdVR9vE?sEJgG2z*EI=>?ZJjyQ7dL7vuxlh7sLb#0P-KbL<YmoUt@w`EK!{
+zdGU$79m$7<ZY85gJ|0vdJGS>49#j!C&}W_H!@Yf>rAP7MA=s|%i|`Tcib0VXRGW{?
+zg@Dsy5Fa@nk+2o#qy9W${ycp2?xJvph49gt*bP|%_}H8^!Qc1iV{Z;7x!Q-1Yk-e@
+z$`(Gpb}(6Ert=A_-AQGX<r5cmA&190KFNwpGkqVQ6pfG@T%Auk{0e^`!zZ_1LmGp%
+zCck%P5{;jU2btt}IEzo65deEZOFlKG64B^;CbA00_%x3@5ZS}{v{FT(b)V<cB5<kv
+zWBK&4SPQxD^BI*66H~2u@ETM+OIq-m&r6YPV&}73CgXXcO%wy-_?&;-Nz}Z;=bXUy
+z+`9m?R)dkrxOd`n*Fdv&|G`5Jej$6~HzxA5k38geDN;F}@OcFBJ$F++54x$!zmLzm
+ze3z_;xQXKFI6mJVfk6x-fqO|l=mq=^EW<;479hF)Ef2l#PL}vVd_hC}zid%FEcG+l
+zPwnQ;h2e<VOD^z*zd<h5>Bkp$9ZHlpnnw@<%)K%^qQHM}1NriZhM{DsUXVv@+Df`l
+zeID5e9pmMS@W`&%|C=p5azG|oH{9ltX@4gEauazoCttSQ1FBqKzP#wa2<7Yea=$7h
+zGk@{ramaqVzI5^xt)Q|EnaNj-McTZzBVV!N45`<T_{uwoT$`%#RT9^{!#BRV;B*X@
+zGWhDl#mFf0lds8HoDAQEe9e(q^vEpXYuN<i!;bQGydhf8d+>GFL&y^7!Pni!qRv*3
+zuX~5H!}SAS-=GOdtdV^E@KlmRoXLDcxpZ<=NaGv&;$}7_GWdr6J&~JL;2US)9k-~-
+zH|~lh`(h{Gc-0fc!W|Q>xrg$oH?_%9?IMq!mO=JUyLfb@oov4&`KI+#Nv%G|H+S_W
+zW57MW`3T-XmmGXcwHL$>h4U>>FfnV!Js1u^!8*VC^Q|rki2Y0W*7c1^J<P+mzD7$)
+zR?WAjZ$pnu9lq_j7g=9B`Su05i8YMj+wY;y59-Ia<B6=Xi%fKE>20D2Zf2r(Z^w7o
+z&Jg9E!*}>%TdujlceDlJaON!EVP2{xe8=1l*#E8k_^uYOuvk{`UH4&0IppBGGLiK@
+zDaZHJfJx7165j*e!0{lAV-z*f(pP++%U;s%p?u%tbh6ef$@d#rbo&<Y{Y~PK9slG9
+zO0FQj<^Z(GJ!CyOfFI0%9n5G3Klta;e$K%URd`9(t7HBk`2WTw_@R$Eh-Gu<hohV0
+zt~k~C5f%Yz^$kC=%N_r@3_r5>E{Tt|`H^1%B<>I8M=f}P-B$3U3$Tqo6z50px{`R=
+zgC85ajvPw{@Z&yqa;UQW_+Yd@|K|L7=vjo`>iqcP9>iDm<Hw&OF?sTh$JKE5gY#<z
+zkGq~gwlib-sS$Z`Uyb1y7=%J(&QX548UEq0!93ozE?FMV<nishkY!c?kME7r>%u)A
+z-xqiZ-(Qc!BV#d-f1HHjWaD`Jmm6>g6yXWag2|q9Hct#}h>FL9Cw_pi8O?a&7qH^H
+zym_MYJFZcw7CiB%8}Tf;`58}?)x+BHvlBDP)^IC7$G~nkJ;2X7KjU!u!q3<0L2QZU
+z=LaYf@0#)RF$rXER+XQRFHQ1GQGTKRA>tQr@(bf0lXc}Hevt<v<tofCj#y9Dg&+9E
+zIs1_lF6NhPxMY{BbLS-i{=Q8mekrj#tfwwKDIe<g8mT;KYb@DHr1Hz#9Aw?0`Q-;`
+z#P7d0QBH{FSDrdZ-WL37`T$J*3Fg;|U{c=f`TSZ1gycTn{M!Cx{Cqu6zKVDJ{60^9
+z4li!$>-_qkK<8SE-#GCUerkUwzj3A*IdTN^o8!Su9$N*x3+%>k<-}q-H<sVpi0;8G
+zNBFIWQ0>K4etSH!;*I_Jy-u^pa`U!{)+--Pw0&?h(XqVcUp#W}FP{JVd;GDl`L(>!
+z*hD?WxtibK0|DaYE`I+lYQ7W0_ygY{vaRmPA9_ZjCXC>Z%6}qz6EFVwSS=De5AY`y
+z(A|5vkcqNlF8-t<ntIPa<4=~PqT;derwf{qece|6GzB_9&<dV9E1m3>fAO@Eo4}Z?
+z<7r($(GKYZ#4d22wV4m>iQi2$_)ru1wQf9Z&;YU?_{!5(%_918mZ$xGgGo<}KP!F?
+z8qh2L{3f<vyMOtMepm}1@A4OCrjl;%!C(EsW<~ky;KjsxoZzp`uQ&2HOQXnAU><*K
+zg)-9j41fFlCOSl#w&&?3cac5+X8v9`A(d2uzfVNS6#o3<D%5ITo%zQtK)Hlxc(x%+
+zmC-z7Ck9ZuHsl#8`^fQc8vjJm(0B^)|6PJE(CR$@`U#`;Zv2mb!wh74pUS^aJW7_F
+zTTHZ{5d8b0y<{H{%ztG04E;Y>5B_sF(&s+K_^(`1#O&=&<gIJ)OpF^4v%`7jR~*l!
+z-GwDPh=ib<0tz-6A!))^G=P-LCSk)GvG+SD>=}Nf_LdS1&J6M|ZKCx`e-q`^N5b&R
+zM{;XnVT1;O#%m{d7bg;rj_-t+|B~2TcOfoiC;ogMiW(#iXEKC}s02gSW)r0|Lg>mk
+zT*h`6SzzKfyl#tZCy;uz&LLcnAVmMP3bzMKNyG$-92=XFCHbMqdF~9>${vyHI<n!D
+z#YCP_YjFu~h&+q&#?BrVd7LkifNYp2@-~PiUT=aZP<kfFsJ)`#F%Kvk6@|NVJJ}xI
+z5`}y9Ap4F+!lRlmUSLh((HF(&#qOf$8YGj4dyC>fT*y}Bneep3f|2W<@HBwAvx!mz
+z+7r267G>Wd*-Xr5qGQ`B6J^y^!s!*eAG0uK3$L{LWOTEL^0~H>WlFdx-_4yIr#Fi7
+z%cc_dOc52jxsuL(Ra89tKe8_xD=Mu7C0n$bs9eeg5=#$Jd6I)HJtl}M%Y%s5KP{@B
+z9fh*Jw5WC#wA+GsQT-(@&Dcev#)~9kXHJRQF1yLnp_NnAc56;5?2Yj0j@cN_{|TST
+zv1IjlFMN*RBka9i)D1<kxnr@YyR#;yfEc1)G*-Q5h-lo|L5`C%MB~0$5rA%srd>Xg
+zt~gsXFFb>I%L$^z<Mw1d+fcN^X=mBd_Ah?(G|{?0(?my%v$y$x)d(_CB>S1D^ZJWc
+zV5!vBR>E)Kd$JEKDcb&gg-qzCXqO9gn_rsnPsdD*5>rI`W?p1lH&t{vXn{rjvgmNZ
+z3++dnM8_(S-JUNIovuzL`-<`+pnF!Fo}uDzTAnPr9@|3>XKZ=Vt$jmsWUC^&#l9rV
+zQ5Vr2$EjmOCllrMGC<^V$zMc|2{*_dnkIS#V^J<&{TGiGH&NbxFM9Uu09Q<g=*1u`
+zKByvkpTgoydm;LiMshlOrwE*hKvyoS=-U>jYf!rAyWa;BqEgC=e!W4R1a}ktf^NWi
+zu}Jhofnm9uDEgnm_UaTS`rrOSyw)-?U_2sX>$PIQLp<^GC^682f+FL97+4jN&bB}d
+zoES#(-cT{{sSil(cP7d*`^2D}ouDh!5QBD9Bb(7r46cAh`7Xa0yt_JvWXwD#hP=kU
+zuGCQs&Dw>Gl3&HJZpeJPFBCx$+t6ktM9{~nWNW%r{1cFm)VTU$c;VS(_c$y@+<?g>
+zy}KA$BpDLUaxp5v3W=tj7~=`!X3NfE?EEFjs<Vhmg91r3z9goUg#YJ73o+$@A6Ysc
+z5z{I-bK@hqE~ZUNB<r4JF%1f+9JWEssOEzGyhF?wh3t5BQxWVv6Su+oB!b&EK=v9f
+zg70o5dv{kcGY_74sZGq>hOzK=r<m0OUc0t)OjPWGnAL9(l+&(a)~A_dkrl-3RX0eu
+zoEEcFVaF-5L(F!j;X%<_V$Spm<PaM~h&N1b`Id{2k%45;IWaF76Q8#J67&7zQJ#B=
+z`TsmbN@WrA=UgY-);VH+3J#rPD@+t~YKu^Doh-9gn8^B-Fp;;li_o&MB+Azkq4R=>
+zS}YM^SD>D)t|pud)8bKJ_=!b>L8EUjE*5Vdhq=r{#o~++NXtKo#b3LTb*aCJyng|)
+z_!soSdbLG(w^5iAy;Ve1M9KE7f{5@>#?&9Hh``Oj99>$Ah%ar377r6kL(wCfWt3RD
+z6tj1ZaufN{wqohEqR@ipIL!w<e!E!u@;s&hz7Wd_foO1bh~*W)`}JHYmak#x>f?WL
+z(lfC<b}c$aQ^krPF9eqHV#Vrgq~7iZRv`7Ekyv@FGSTw@vFaJ97yn#h&GS3355|gh
+z30VDJcCjIEX%a1N05P<urL(2jFcrDq$s`lS&y8ZEPajf`-ieLrqse}Auh{rAiD<Q#
+zh~jowwN{&`9{dnd#gK{}a}!aQkX9GHDx%-aA{|&rY{KuUhckf4Eg!~-O$lg6_OXdg
+zNeEzxFT}RVRmd2dEVezxqIQO~7CV~l#Qee!V&@<nMg{JP*j+Z#WhRK&6Q4nyW)Zvo
+zT$-&9#BMyXWA80sO;STH0!I;lm1LqCD#UIG4lE-`?3sR(3~K?g=OA*we#6Dy8_<BW
+zRu+5jfb4#jMeMtaOI~NZ*!R&7{D0UkvEMZtS(hvj``1k%%l0bb&}N9rcU?_Xg^r8E
+zu}jEe_Z3IVeIRS_YH_5$4PLPY;)v6aWWKrLNJt!6zlVz>_tuhLU0ED?gc`EDn~9d1
+zN5#?2Yss42OdKnWOWIqB<6HWnIt~*j?YD5xlKt`GWGV3dIX%Uxa(}p>7UC3ACdb4I
+z;`HHR#44^9r~e2EH71Do=Do<$WSWTY+z?4+2@(JMImum<MMCZ&n4`2;B-G7E_MXc`
+zLaT*PJkE%Oj^Vgu9ZlppcZq}-w~)+U7Ks`uS)jW}tm7<B)O!scpqTXBDH7ZKi3h9y
+z;-pn3+Faj?#9jTs`F1o>S;~krXE5{oVpef>LI$xWb;Ma5N;ckDoc##SC^J}`?~AJW
+zZgp{feH570n&P5&KhoYU#KpAE(1!DhOFd7KZPQtC$@%9&Og?dG00hJ<1;i!Tj#cB&
+zA_=t?5B3z7^IyaMt}HIMtAhK?G!R#c_a*5&UtC?)0RgF{xOT{ojDg!la<xzJbTt>r
+z7yL2#VT6gc#aT?$h3bpze_XoJb`$L_0>q7AOqgn#Q#fyhp|A+NE$+nKAv(B2+_}Gs
+zY`eFMd#p8CT;s*PM2JvJPmB9S($NVzSv<%F1$5qU@!%Fhbmea%g_6;JR8FK6i^riA
+zW}@-?h)5}k@kD6@P2^<zi|KEHvp~`Q5GnU7V?g!(>f+%T6p5n;h==PFF@*QDcm&^`
+z8eddAf(C56GFUv$g__OLOgwqhp6u5fil;ZGLbod!QD{;w=lq)DMf;y*{db{>tU$bp
+zh?3$3G%Oz1QoO+Zw5+$!idRj2Nfap|UPmOLs2(F;pFkm$cF;s+v=gsiLb-7yi?<qy
+z)Up@iZLMI;Z>lZcUJfM7pdgW6>ND|xJ0krKCSYu_iFZ%aQ9PI3AU-_bNvu(%_}D5F
+z9Me6KVFl%bqvBI89Q(a(;?wo!#Mj*tpGSgH@_r!xCu7Oj=qmm<6o+83^5TDsrefYh
+zJMpD>1lfyR6kqqiY-b%PzAcL<@i0aFh+0DSjPK%Sjx3mtcvAd)I*O?JC-E!nF39t2
+ztwd(A!5Hz~T4cr)!`F92=It=zb()Lcy%NcCs-UEj9%PSeEU8ZwP{(5=?L)Gi*h$jc
+znHZBWOIng#NhPe7)`Hl@C0a=9KpZWuU8MCREF()Ao2ZO%=~y?09P)y6Y`_~`G*~*m
+zJ5$IOa8(-nQ4~LjkphROHM*RMGQE-%aXHDcW2}^WD-mwV07NO6@IlJ2xXE(BP^sG4
+zAg<k%Y87rp;jvDthaR|<V-u-uo;XrI$}ApkBny|8SxUg7@3CBF>5xp8IU{7Y2}nQA
+z6p^mZ{(WKNtuI~g?gObkQo8;)hyII2(k%)R`1Bi@Q{fsOZzOZ=0L4_Yy3A7%OUJ#A
+z%$L0=shWpmzFsM0EZ!{hcSyi44ww12=0!uQl=<W0$o}k}Ebz1k8GTC2LX{%OG2x~x
+zbQaCZKX=K(7_DpRuv|Ke<P5<*QG#WWOa8?823b_VdA;GXEb4qi{9sF2{1bNTgB!BM
+z)*Pe?|B@wsp_Kd>Dm}fta0?V~>G{(ghU%-bWKEP0mOOv4pi`DShqG{1Q(3AmTz%J;
+zn8^FY$Wl!~L3KLt7e|IWW$9W^ajRBCmI=Orj`UDj)@>7RVf0CskB&tA$&lrbB#|TI
+ztE_-tUQ7F4(z{<H+`VC&tk^M@SkGu#DGhI6V-;EDF~qi!b7j?yv9O{y#+bl)Q2B4j
+z8r?$4+U$j_^&4m8*le<P5RNF%m9q8>6jC<lJ6Zc7GB;`@>wpMRk5<b%u^wcMe<tfB
+zLuWW2E`6>~BVMqE^Z~=;xa=+K2Bcwjr#8`%5cC&sd^1s8J!ztzv`N<OiZHQ0hpc;R
+z9r3VeS+6lXa{nGTQG_;<_2)#vu8^aRZ0tWAGks3VCX4QqReqLDo)sc-q=amOAt7A!
+zmd$E_3NCO|Hj9ZPIm=%*|Lnlfk-liE??ZC-2-)IuMG`A#%9c40Pz%~*t87oeTeOpH
+zR<|RLwbACW3#kQ7WxJ3dj9EP;+wE9}L~OT-PJZH-Y;VE6l-Lj1zFuFj>q>Skf)sLa
+zS!t&E<)UR*9!z5QY1zHnR+8gx$nN*RUuIU5J@&&C_bpuZE{iV6Q%_{?`VGjjt(oj&
+zV2${XkbQi5khSDC*#{z=HS1N`w>DG)>u1@w3(AZ_A7$TVD==PRQcc-+2hJY1NZD^W
+z(uEqkWWUp>TgGgb{R_h|p<c-T>l486ERzFr*Cif4TMlRdgOuMkIUw8>Ej1(LfD53S
+z?A_!*B%GG7E9Jm8XNfAFlmowhA;T}5i89S82la&jdp|}F>VFPO?io4gtaCJa^Loj_
+zf6gNME(d2ukT~ZhhvW;yyvK2J$hxw4qOWpD+MjIvvK-p=4l%D1CW_<V<<O7_QeCzH
+z?*d24p)pW&-n@`Q-y|UfyPL>;U&)}X4oo>MAcKn9(2~E#L>_0zASb>dLg&hVYzQoC
+zeB|(kZQ)g!DTgn`e&!A3@Y^e(#&wk=Cb(fb;R`up-9|Dt)Q}^$SV`>7D@T4pXe~2U
+zj;agtJbME<rUdB5)1~B?8n7eIjgw=RRDy0fQjS@f03TxxIp$Om%#(R8$69P;ba*43
+z6UrhJ8|fn_w3Z-DcgqR8u<GwVloMC(1{)V3CvL?gn_GkB#2;Z~=jY{Qe*}*2Oipq0
+zBR$|BIVDFN*@C_0R6G9BfiOAsJ3O$SgXA>dQAiiw$!QZ&mb~gOr!81d_VLkj+7{F=
+z6TD?G)PK8gA*T$U@`)T<QcM(=I?9>vDq_2>k+aT>!p%^^<*e`7kXF2wa~P`bunTg|
+z?!6>;+>vw3JSS^HcNy{z{(jgw88ZJl*!Z0?WczchB@Y?$Z%(q`{ZGy-2MbzeJ`=6E
+zcglH9P{o&i0Sq8j#@ScSw`73cKO^T?0Ga*oO*ucl7xAc2IsXb$#WROxXyF`0l?Thv
+zgdXH5Ur;VokeZ&1kqZZ7Kc8AA7ymgWdu)-58z3Wl*Gz^tMCAJ#CnG#jepK2eBM~p`
+z_YcX)phd(AZ<otDoFaMXxm-5P3+9=NA#!<HkX;c=<#O*WB-lo|{1skEn|^XdwjHF6
+zG-=8S@21EVTi`b+zeTPrX(3DA_i|;Me56--$kn)siluQ4xn|%1GMYb<YhNEB^|+T@
+zw*aSUYF@cM>r`yp>T-PrJF&_g<@&04o{stD`i{6oy^&s8Zorvgg9&>>VGIR*+(d4u
+za)%s`&&Z7pOTuLvX`)KFEjJ#90jg-IjLMIqIn+}|p`Xh>WP^+f!nJSaFQaaMBj&g*
+zx75V(`t`8f0$s%ZKdX$Xe2`dgFB#Kf5kARZGG+$ii&qaBbJPdsxyf~8%rPv&z!Ng&
+zaxD6@f65qiva4pd<kl+p$#FkaZo}P1?HgvxZ6WDIT|?wHjMQ^Pt@w*4EBwXB<K>R_
+zP-yD(mpe9RC%fJucf`#kHe-$4aRZ$o{a?sf1BuJAF7n@Xg~?iVrQFrqnGek`Mda?8
+zA4y%B0sI8KF88`%ag={2_hkn~T)mjw=lq0WAf4s@lGBLg^_Kfb;?(<oT^`7dZs>0T
+z@_^@P(!+bm15I;~y+a9kU~DQ`em{^0=HRgD>y!t}#*uj6OCGF(WBkeid2pqL<o$o-
+zA!jY*bU91PL(_4KjG1TUp@<mbx%0?F7=fV%1<6BSajjn$HqpBB`d|Fm)I^<E$-`^L
+zz_++w9trG9v|yM#dZ{;2mNoL&1YG<2&E&Dr(L_CFm}uSmpNY1%b4|4Gc_p2He!+gS
+zr1=e2d7+8CY0JOZf5Kmk&H5Mj-1v*92AQY>cFJRiK9Ma~A$jae6!B-!_6no$icK_8
+z%yh^T2~pU7zvM|i70G!edGZNrUYCdRWJXTXl^ZzaDMvIp_Dzzf+z@bVmF21M9AwGj
+zkf#nHyS<)Uo<5Jm<kWZ*S#@8TkUNYVm6pncLd{98EhZDIUm#YahCF)(bx##<c{USC
+zsplbiZbW0a`TmvX)-A(uqC)cA?J<}k@JyZ`ic8dNjXXaM@#TQCrujhJ%_A>Qh3Hk*
+zOJ072zRi`r{^BM3U%d5JUfuZ_#HU3jKlw&_>=1dgT|=S~m*mam`A8KkFYmy=Xs;9{
+z?}CK4_llPH=Ejk_e^@>^xt1K&4$734S&049MLr5D1uOXp`Di4zy|Z;|`6woq=v!SA
+zE!lR-$9t!cEL%f9foa~Tnp-}t-h(V&hvd_mAjR&d$fuwDi2F>JX}NsJF(|7{YjBc;
+zp=BBp3{iHrd>QnBq|ZwE@`DfZ|GV<lw@l)$@8s+C2)(vK@{QFGI>}f0=Hp$MX9sPN
+zZyVeu>**u%U5P{zdaZo7>@J3lU6Ai?VV_6!lJDN9kn!JW`C-v-QdLIDkNpxr7j%^$
+zXY|ExSS3Hs76dn>%y{ijwk`k2&;NMA|8P<MZ^~f=mL~FlA0yD;c|d;66-L&hujN;7
+zr0YrJ<=1M#$p4cP<kwxrh#61h*F!~#FUcamZO5@ZZ<GA?ss=eSedLcGP}}F+l|TKk
+zf4!T?Uvt3RJjfw4|5*aV#RU0#0QikF%M=w@fq?WwSsdtDZnQyJii1vwTcj*?5xAWF
+zmE`~eQp-ll@(ri$lrzej;#^M_?{3QW6dBG&3}|gX2F?n9WxwG;mKUW=v@VbNi|MCL
+z)HydR`|EA6jPy~CBQMF3eGhKyfjIKLp<)MdDcwFRqcU>Ixet^P8BbQ1UCM}!LfiFY
+zW$eOks8HiCdMjl(@eS+tR^~Sx>Fy@-!+}baTuhER{z_~I&6gOa#79K3Nk5dtxHTTV
+zSY<i(koe^GD$BK_2&sEj*16Tmar~RgdZ`MW9(7eVhYK0kPpfQmzLOf-NM-xHm&BXZ
+zD%(#lSl5Ru*Wvi2Hyl+?*Y)r#RX(fS@`RD-I!n22!%bf6{xXq2U8meIOw3-dp^5x`
+zfO7i=LB!&svdin_h`Ft@559q({veh8+g*}L$5oC`c~BgeP&wz{g>=+f<%~zhll8O8
+zc|8m*`#)8#iKED}@vzFZ0di!iIZl-u(lD*RpmM*-z`p;j@?^(0{B=ha_&EW2ySpk_
+z(TA-4`YCrprj&X^xu1DK*08}QIwHdV;=%v_`gB|KYdx`*a=(CWcdV$1s;Z$1ZMBd+
+z<f1B!8qnzIp$h+KN4ApA?#iP-SoZ&}sv@>?WGQx76&cbRH)C~GMMC31ACy-`5=+5g
+zk#3@mHBm)=g4Ms<O%?Sm4$f=5Dz-8bO*a2i#W&@}-*;BUU-^?bzfG0!tVs4e;i^P)
+zB%SpKE6?gk!DeJpo>wABY`?5Z73+sZd4G*6-2)HaK2fDVc0faeyDBsGJIMiF%Il#I
+zCRJWm<zwT>m>#Ms?18dtnP#Fc>Y^%~`~niJu<~vkj`F>X@*dHetgD-vX!BZRqRvtC
+zFXn8byuZ7Xz4?7raUYt7dp%W^HfLi0cY2^IcSl4kn53%gL{eD1x2ie|tN-vZRrMCO
+zRjdE0YP}i}Pfb<T20#)n{9RS|UP!uvhpOQ=3jW4GRdWZXm>u7)YVC?9el%Ux)>B}p
+zE}?3-L+C9tRMkG^Ne-`Ls!j_KG_S%{Jr8`cbA464d0RoA1x-}-!jL#r?V{@4yg__Y
+zWz}E+%JAbZs!;)4!$GH1qlKt?-&Ik**>QK00Yj8;Gh{G*+9==VVC&lDRK9&)!b3Mu
+z`5r^(*3J#8Nhm6vccoO5(@~^uq^qW`Alvp`Q7u<(ME#Hpc%JxOrCJ3#u`Pb4D!*K(
+zNi-{?{4NwB+LKGQcJo1bd_}csgUL4&SE)9~VEt<GOtra=5gA)2DStRGZ6&v<j%@<b
+zUVzS*QrHF6E2%DXv8sQ5RRJSE68GDt%nHh@xC)3z_T06q>IPlI(zclD*1R&=|EsII
+zIq^UjJE*!%P9jUeMXGyFKXS}lrMjOzNwyqyRqyO4$^P@S3cOO0RDX-=TLHVFxu5Dg
+zq603;MAi4Yjac&})%PYY(M!7;Fyv46+f5Dp^NtTcR|Cg`b{yD14V;XSeLqwUI)oQ|
+zc#s<06NO8IEXp~A!5nKWR6~9u<;r_s4V?*!xYb%UEIl5pxT*^3Toluc64gJQv8oR(
+zQ^T#rQKo-X!_f#~al52O^uA8kUt843>|wYBtJO%4yTmu%RU-qjcx$&+quQ?|xoM&r
+z)fu|R!7OUjkiKNUw?vK3l}`M3l2eVI5{>=%N{x>ChOz2T)ELBg>nx`l3txjwX|KlK
+zMY7o6p(eO~1jGANO(=^+^c-KeLAt$qqMFcUD*74*sR^UXgFBk0CjPd9e9BOh3pByd
+z0bezF!w0g=tgEJ6^Z|!gPfdMri|l86DQBs*WGm+kSJTQt@)^5QO<M^0ukS!L<8>_A
+z3Jy`hE=Vx$4pqU^;X8=zr-HX2=AWsqf-%#Zb^WMjy0^!SuYGFfjTuC_+N)U=8iCg=
+zqh@u<PL}ZzYSx(%n1V1@&8`8OvA`HLdp=UVf|1G;PKusav;XKO&SG8E97H6UGFQzl
+zfu<N;N6lU34};WO6~eLonun^8VKBkI{i){legkuDjGDItYh~vWHE$=}`-Lm0dEdQ=
+zFZEXQuOqZh&!<8^<i&`<5^90%GpOR#CW^M5RamVgOu+1{7Gvm;^-YipKaxgH?XylT
+zZHpdMYd*E~sts*Hi`BAGONdp;p_b=dM%LV~)$+7-OdIf1D@tMew0fvk)I-2ZzMxiq
+zp8>O7X|*aFs^fY4O;kg|)tX8UI6aQ3b<-=8BVVRke>{j-s=wOM-G^w2pW67R!+Y{B
+z71i`H#PcpqRMebUqGmZ%^t6>EuH*+EA#piQMWZQ>Y7AG=AIFkobBx-w3l@=8FVyCR
+zXpCr8&qSHlL~XvFi};Z-YRjQfq<o93nChR2d3vcGO>wE%OSL1i6x0A;wPSN6PS2KV
+zr^=3jbgpWrzY`zH;Y_u&%V+45b=6K-##yyOYG=$zvdk~2VlQL$53;G)6ja6UXRCh`
+zqscDQ)W3JYh%TI^cDejRD#)pJ6<UFWqNUnZLLg!JPwlGsne2V8sa+qitCDxB-6+px
+zQhl|%dwraOE7ab_&_OL1)L!SY0q~%|SNrmn#{8B5b!3<y-btc5l9qw8d#5_;H;Zh)
+zrmAB<@X<ZaRL37956D+T#nqodBE7MSJA+iJ=qhz07XKi&lR9y53t8`sRwpv{!D!J~
+zophwaUNB6ZOj$%m$-21Htvj)(k1D<kM7dq4KjZsAJfG>K;s=702~1ZB+tbPVagq9O
+zmlx==3F^!yT$+)))Y(=E#1B_CQ8aC%&h9)%_N`;p*)urjuZ&b@Gr;<fsIAT|jw2d-
+zSDo(<?#JtkIv=tJZ3Vs6g;z*OK37&3k7JijTcs{7NP{OP(5aHHK}#~GsVmkR5YGpz
+zD{HMJi<MSap5YX1T}WM}%Fr8nspKqoNwu@9<hS4hSYvfPr3~JAK6PVhB(Xfl)y+`o
+zle&t!ojs1&@=oebp)X{6=cn!*OhX^UKk8oaII<@%H<7<8qEa~IibqbTN*NVTI$vM)
+zu)ho0=a*Lx$Ke%sUt*%AWJeRlf^hYy1wNr}CDjuf7HP0k{b>`hAKh)D2zFIZ-lvjn
+z!7BCi<rq>or>fLEuW*TyRq6!z7S>)fQNF3AQtv~ePKi=!qaR|tN*RBZme`CmYongG
+zo&XBvy?TBjgXGZvsTV!#lG3%*iw()dm8*Jry*CV2`_#*KaNYFDs$Svee2B$F#W$;0
+zSN({Fu2ruufg8>nq~2Z(BBSkb^{${Db6viw_W}$`v2p7CB<!Nq3)JWOE)dUaw^Lt&
+zqRHB0j{3R=hlWp}`nEj@r15C=qfcS7qz0-VQ;L#hue-{;jMmWe%{BF~5sjH+qRKi7
+zcpi)FleVtef}x{XwJkIQQqyehC>;UEMqkawt|i&Mfo9X^5y${-h@52exS@^5xV<84
+zs5Q^Go-BipYW~QM)ToOVBa!ixwrjD;9TM*at)g+*TrI5CZ5%dk0Xhpu*KYb$odrX}
+zj1U*?;(d(xgc;gp3G)5Zn{?KK#fTq!p|jQ>Pj=f+oi!5nzv5kWHc&I_LKU5@V+ux9
+zc<XHAoH<EdWIEfsb|9fvX;%;M_tr1kwH5+JzDwE_)^PjYC=+E|8|~WSAFx_mwHxR<
+z<u*yXHL3tU?~`_$mlMbDK<)P1PU@_?&RzkcT8-^Gd)4CPxaY64*M#t}ZrESEa#&}-
+zfKTG&9-YHka3!hit#mFw5DM#N=v+?RCM`<p+^)^x;ya{sM=U`~wNB^Wh(NUDs|Fhb
+zR=a`DAHIO>4MTN-oCsJ=|I-ETq?2A+Q5USYk*t|hwfkixATmK0!mNK)yOAz*%0YI=
+z4--|_(z+1JZ(G!E?ewsu!lAuYd$hj;p59?1@8haH_9S69?9?7-!b#5GuRZQyJmREu
+zU1Z`&_?$g;(SJLjl8M*F{EDMHU+ZE&@k!O2Zz6vmu8UX4Dla=;muR(^j1uj&XX)%D
+zM(xy|mEr2idS92UDaoD`<<zB0k0IV9uP!wQDObX5T?zric7K&FwdfBP)uk&2!)<q6
+zmtKH1kx^Ecz5!>4M{Qm1bvk<7uA69h%+g+Y6Oc}q(d7%e6K#K?%XftiQ09>?4@uhY
+zonM!~mx32$(dFMX!zi2^+S|nfGrse>_HKm4pmBiq9t|cWpVr>%u{b(p)fJl~IdygF
+zihdp_m73^^^AE$@5~3@uhPu}@MpwF71OulF>PjEr+WmZ9SDuCPe9U-VWe&Ka*lfDm
+zN~rZC=IENgLNIV{zpgzYkwj#9U1!=LP(07Hk2^9T=YrC@?z)B$M*pYlmB*=fqKd9J
+zI1TuZt~V6hsMKR!Z`2W@d((CO!pL%MXLW-D_{duY>jnc+P<W^42IlY0(T#>ee(YLT
+zHyT!n?AEQi(e*fT)F`7HJ<kVn8$W-afe|%bbrVbrV18qCljiOeD7qTDNjNB$3P*L5
+z)2A@rqrGk#mzP**ecd!;FG<hVx>?)%&^7bw=DEf}0hy$m|4CF_s_5qb)g+PdO}DCw
+z(R$1F>sA@@V7vC{wx3<W_czk*+`PyU<Q?&FSuW?&e7ar7Fm#arGSQZ+i;4Efc};X2
+zsAnRV^G#H{R+*@4lmp@jn%>MrzWu!Rw@Z?#t+jtHq^jL=X#WZO;Ck+<+s_6u8)oQ^
+z^LvnOpsViGdK}rV|D!vhZ_{bJQAT&Bc%+)Mb?14h<hY(icc~ad_L!F@I>NV^sPKNf
+zG(@gD=C%%yIOB%601<FcPcqS-(A7j1de=mLN$Y^N<FM<0>wxKC5mIvMt}GwAp%&<_
+zR|81ImC@Z?s=y@Fvaasd;ws5&%XGK#!6Yj!)7{Htl33GMcW;3!|I=0XSQLzcX`k-Z
+z<_`A6cHQeo66yJd?(KeqEHURywEl0N?mcr5iQGqY@0(LGxT=`$(_%Dmw(jfF5Z1Z}
+zx^F`?h`oEP`wjLXHDR#sm+XXPbx$rms2q~svNiRfYLPH>p4Wpm+#p$KA`q$KX^S2l
+zu@}uou6jt=E0Uk29(o`<=_32|Fu$xY54-B15|Jd_d+DG#pAm2y>fxK9g&n(ZqGM|z
+z6UDclCh86^^~f#=GjC4o(az84C`*miW2{({Gji)OLtm36YN;MGbrU|3+j`7>Sm&lK
+z*JJnYBU_$IdMtk5_U)-2cVi3g>Sod7o28SHZ?~SX1UawDr6*=-2d%5Ko-9zD4=t!C
+z7hX*2-e5gB;LoOOq$eN1*|({so?;6jYbB<gQzrz%0CH6SK{d9Ho>l>qCxR;LY4Z?X
+zZU^fbyHIL6Pw3z>t%>jGqi1ffO}dqbo)z<wD0@Ra+j|~~0b}&+o|$AxU#;iF<EXjd
+zqv!T*j?p{0^jt_-)`NFU6i=q>xn~5i`J?pQpZNP~SDZTJ49bcrFLlU!#HZ|&bjasO
+zjEya%L%#WuQFf%BR~@E)M@v0#M=H^UL3-Y0tYYu4Iu!5FQuc_6Y-|=C>a&ex<a)iJ
+zB2vkj_w|CQpUA?K^@7miMDFeMf(K8@p54%4-Rw|$Tj_<R29bS=^O9cJ@i}R)mU>~&
+z4Wz^R>xCc7V{mqeUeu~GiK!Fy;*#-*;Hi4CKXTor`E~eJcyspu(BT<DWSg@=hky1W
+zi>;E5sOt{dVU3Pxcnl+UZt93&e7!hTM?}>iD(t0~SngwDRZG1DG$UJoM=wce51zBq
+zFdaD@t2|+!jtt2TN$7}PmLCGk<QIC`#QkXQ>!_Da&Oz+`b-nBeYTetD_40A3)T{;c
+z@>6%=I_j^Nr(lt;tz)8m{YWo=F_C1c1A0ZJn#5;^=oMW$AS-yLSM-DAbncX1F%Z;r
+zmQs3U(Hppp?DxWY<xivudEe?)F<9k&yXjT0ufw4dr&nizZn@K`S2spv&zV=RFN`(v
+zkE`A|1Mjf<a2?eQN6)iB9rZ?&rA{9c#g!Bt^$iY}u+KUg-OSXrl8Kh}WlXf!->akB
+zpmhBbqc?3tlOX08=}kKqlWaRhZ~oJXlBKoYJbW-L@R#)Fkywnag7oH-Rls5Q)|=m^
+zkTo@r-r|{vu?XYzmNqa8)(q2I%)j5QV~q2lkXz`O4mdM!wAL}NQpi>{P;aephuDW4
+zdh5kla?Bm2w>91fCHcPI9_YkTQZiX@kIjKd@2_{PL6ZC<S^wK434Eo}yKecyCVflq
+zK2;eSwXfdW06xxfK6>vy<TVMm^!`hTY*+i~gM+Y5XXVugqhSiP{;LnZT7r!6y*~Wo
+z4B1?d=%W^p>Um$9sOn^xsLS@%N1gixSz<ToV+l}p{om;0MOF~KsHBe%t%6><bvo{B
+z4>D2)>60h$LUaDBPfc%2qJIv3x)Qn=Ds<5Cm^Pr2zw7vFIQ73@G12O5ZlWHsM#mqo
+zLbB;-onXb`8<(jQ+;DW2-KY~*;|<JMr=5v14;nT~>pv)O4bzD~@KIa*^qGfwiDuN-
+zXU8D2ArPG%kF31(S$%ds@}Ezi^x61)NE24+vnf@Oq#x1e=HZf5?5xk7N1=7;KYi{B
+z;y^|feePBdBIiH)d<WE1*KGRyB^**)7VGnGdqFYo<kS~h^n{b+g1+#417`kJHBmQ8
+z(iijO#x(X_`eHs*@$0+kOZH6SIj-o-V*~M#yXz|-f08{ai@q9$eLpdqzPd-CPjk1v
+z)(TYBpsV`Ym^iZ5T&b^RqV)V0p_7~A^j~{HCqF~Zy!^br-m5)Xl(Ve99zK<fl?U{V
+z%D{*-CaRH9`lct+iR2dgmZcv#_S*C<{9I@8)VDe#U9i^Hx0{BMePW8f)8PWy-dpsY
+zZ*gR4dS2gkn+K0>kiOpl-n{IE^!?6j>Hqrr?x?7e?%UHj-KtWef?_-9sH38SIz|kb
+zFdzoZqJ)+pNrH;0M-&w!rfDNO=7@*^^Qd6LFy=fMF`*by0mIwfeBXP&_1;?Vk7jo_
+zx9i?p;nX?%gexEOtMu<PPO|nnQh^dm_`s=BK@*60b4s*S;Ee{}u96;9Hj%C*Q+jaA
+zNSb|Hq=z0GNjtc<^spNYuof2SVV_C}y16Mm{JR;r>lEq9R9N+K^Q6MQ$mdMHBt5f7
+zPlVKyo;6rZifew-vrGM;V&0RU6-JPvaEkQ&DW3lRdbjifb4k9;UwRpIjLfo)YowPG
+z0!fOQCcR9VLh3dzrJ@~Bw8{=jMb_Zp>3-6i(H%)!WsdZ=jSm=Mne;CB1ZmGFOCOzZ
+zM=(=92BYWZ9G5<#9rdGP>El8?lx1>9>66ZfG@S-ZpIRVb>r#~TX$Mx<_={3W^KYac
+zHAE`Oj5L$h6k&ZsQZf+nOX_#g($|qNtTx!$Q2XSD^z{mQpt!eG>J1;5vBZX2zYrTr
+zSS6*Q8{wMDslbZ~QrW^kNIO1UD%+202e)QPWhWxZa4K2)wh28tJVW~Sq7#w`!hz;a
+za3PJAevEm7IEA~?kF`Feo|Gv4SRY8bxF6EbmP(SpFJN@Bh?IsVOjgr}bhFe<eh7gV
+zfs>fxFZ?c|I#cX`Dk(n=yhie4**4TGVwmE&0=a#!nKG~w87A~+%FrdG+M2~wb(N$Z
+z(}U@psw@Y^^pNRB`D3iqOt%X(V0zWXU;c74SI5WFBn11+W_o{LqSOscLMWbMdyWlt
+z^Di(dI)kK<@k~NAlCEYK#(d>S%jm#3oPdVf0~wEAPx@vf8J`I&Cblu-Utx(h+RG{p
+z!RJ81D*xVzbbaPB`!Yw;4E1IXJz<|Ia+zbprl7zNRANq{O47gY#hiP?3;CiAbN*OD
+zQq@9M^|UWSc-@)n;0A~(tixP4pd)oT%ys)gQnuc1Lv79-=9+(<6!9L+?LZ~?>_b>h
+zr)#8q*@D&Fir<~;#cE>?Dq?rA+LMY&U+T<if8nHyn8@mM!c!yU7r(PQA(+g@999Q0
+zbLtt5S)FX8+_xLd>Pnciwa>D;<350Gcw<A|j8gWSVj3ClEMmXC2!S<WVhvg&ZQHAu
+zHB`(Z*_ivxBQ=+F112+%88EM|&t^@W{D_WpW1daY5OeIpy!JdJ?df@}X;ZU>wD~nz
+zGyNS{n7di?qu!*6_{>`L>;SUfm9^Ma3xy{ivQ|JzKby7ojzJNF)~xm9Qj$fbu-1nm
+z!N0#{tv??`8Mh~_O&vr_Z%?qHE^UnsCAU|sO^?5k8hnGbT^T}DV<&5$wioFgi&%S)
+z^tnVGe`g(%l1Y|yfcdm9Bg5e<tV{E!q#QVeb(@ol6dg0`jx-O|uG)*+ZE!Ld?P7jK
+zeTk;bXZ|&=;hAmatgqi<B;J;>ewDE5-)v+3y4@v1LSNSJZ%Bvs<*dI2_f>R~1?=La
+z`QXk5T&P8gzmD2aHA~J0l!FA#`))&h?FnpP3q<;EabyEWL5}+OWP`@&Nbgz9h79*W
+z%F&kxY-lgYKTUl$?2lTAc5-FIK;u%-0~=}@m9pV|zagW)6AP^I3RRt6vA`lu@<A#V
+z<WWqz!aNq#rXQ(BpI|}Pap8J*7W4{U)NZX=aMK8E;$v9I=2Vhh_h%;0_oSM!mYI%~
+z!D(@una<&%H0p_q*r*ZE950oyQJ264e)j@mxBn?;VI2eT)ca%>)_EeyoO{?%nV-nQ
+zVB%|n+*#Owex!Z0iG_!A(hDCJei3uiJCQ}S_(;mv-&jN!ADH$j75MvX7O}~V6s`|h
+z#O*vJVN3y<!3AE}!6F-gtZaRsMIHb#wZ1EhJOfs9_Cq#WKoPrE%tjAwPKsXsY;;%w
+zNyB|u)I!8IUvywmNI8;k{>-9^u(y7n%wqPuBJCEzVly*I9cIts=6;3LxWL9RJgBVh
+zKo+0uN%~n0So{VAJG}B?@#e!YSi5Xv39Av`6)=n?8lh8{9%6|<A)a^|OCspnPlMUm
+zHQ0=mAKADbvr%gKHXD~Wl?;bm*!YcsWM~+`#^YJ<n&f9}{7VJtHh*EsE1rW}T+Jr-
+zdWe{#v20@0HB#N~X+wkVG@GP^Zr%JlGf$dYO1i3YHt86ia{c0>4dri#*-&z7&nBOb
+zBbt7hnYYd-Rp$U^z6eUMdr$U97D9@Pda$Vuui(xZ!=_?#%01?>X>e-DKStV6Z@-I8
+z`v8)nNiv)M8T#6$$}E+yB7N0mEVT)!ye)UkY}Qc(mh8=9v(Cb8J1U8#_3$PtR<SgA
+zz+{)#ve_9=aiaS+G(4)$=G31}GT-xTe)SCqPtRow68zx6`oYq@pzP-+vh)wvu;VOY
+z=_N3I>%V0SXTT4>?J8ST#mbb$u|;P)V)H*`L+vB8-1bI){RdmJC=8W8ifpLNcV<g+
+zT9JPB8n&d&9b+8BmVS7IsO=o~XWtT1)rw?)?hF7y<;pCFN=Q-GmMzmS1%GsyEickR
+za(`kgI>E}wealvSIEO8=CR-UbniO~2v6XSq&)&3Pt7<~4FuRRl8NVJQ<w_mP2uE@G
+z(bZT+v^(kg?qq+}L6%0X)@)rkEY7YU*t$8lNs-u|tt&^4V{tXMJ|K*=fe+Y*t#?WJ
+zZ#vspfGUyOo!F)pzKEpJvMs^5A+>^SRYs6%*bcUBd@k&-FKkEqVp49tVnefPVJ6E=
+zZAyyg8`&-oXa#x4S(e{k#01D#*1Zj6*!+O)UVoLexxHETbZ8I%tYCXWl1LgI!S>!e
+zM;f;aY;SQs>C0=eeI*K#jZ9)WzhEa&%h-Vq5U`Wavjdrn;Qa8mq2cK;cBtKYGJGpy
+zhYxm!Ht{N!9WJa#+R8K8v8K54&&$}c**{1c7R!$7?MZRvB|DzdkMx)4vExh1NcU<z
+zJDCxM?9ZO;<R%k>lOx&5pI`?DDOes%VNH*&EH4K(v;T6IceV{;5P!9yV&HWf>K)qx
+zVKz<P&Q1+8KY^3M8E>9|fZl6EgSLd7ivK~fZI#%mnJ~<pa@nc9xMKN6cG~J$-{sHF
+zs4_`*D4U&`)rNHS4D2j}lK$Io>})MevYUE#HW&8N(n0K83-C`<3@qQ$p5*g#SpM2f
+zsKzT;{*D4j#4YTCc~mx{qeI!n-@Qq(LcuOEJ(klc_D?-L7ohu8_D|9VR0JttH>!n@
+z{K9N@vw<FN+7Ikj-waZ}*~o6qheqiV%x-01GA-Z4ZhI+U))cTi@TO=D)7hQ(Saw4#
+z?5=M;(zMEAci|>hHf_i5z1NU7^d~dlAMu0?srKxC2=dq}WmjNvFe`BHPWqEGSV40n
+z+(ksP0$&KERqxq@x=AGKH<&#D*(vLj%^uc-Z7kQZhsTjfKYk8-_~aAv*;3h~w$MaF
+z=d(u(eMk!0#~xR|MDni>*yEQvQY`#nL#gINGkb#dtq4kBPrkqmY56NFT=oa42Crk!
+zq%_jX7O`h;&;WD(WY0P`CS~+p_N*VecEV-$ymu%mPJd(11D22?`!;(Hib_HOlb5Yl
+zkbZq2E3$(b^QapuTI>Lin-42`l}YjmW$bODJ*j<vvUiivBjIKz_U;B|XL31v{|Ihc
+zbtCqnE2yl$`m&E%Q%F)ovrk>ClH9XDE2$Zab$^+C3EfJHu$k=3M3}DW68oxvZr#Jd
+zhWgK2+1JV#>jEDeDpW}}RPC9>N*jS;+B=<<HiM;Ehgj+OJa|nEyI2`E5%tuztSk?-
+zg>eikdp4gGk*!&|>w3~&T*=BC7Gj;pvhq-SQhEil?*}=l()Y6;K5%ZnzRZ4Fy{jX7
+zu%Gp?s|7!0Kd<*g8Jk!es_j>CO3x&XWf_+@MUZpgQLae%fuxSzT#3S+qjgd(u5A4r
+z#`+4bOsGm4)i$o0xR`Wl1zdI6gVcXM;;JXLNO$@USO0#DG_L=0^{`OV^qJ1pYYRzs
+zum@M4gz<lODpx-S-rL7D9WgiJT)Czn#(YDL4fVx`7dP7JX7(7)r5hj>l|wme3JY5K
+zjWd{AviqZLs93U#^QV|n6B=+a1#HUIKe))np18d}w+lpnv>w3i&No54+-Yv#V<)NJ
+zjN<lz(1Yv*w-0RwLG5Tm{kzZH!RnE4xyYScIFhoXgAL8vmrr?>o3P_*J>^vorIOBn
+z8?Sn13aK2uxXVBfcnV6nOX>zv*Hd%XlZc<M*MwJVYl2)m$E$71CBxZa+-S8mhB@+@
+z7h!7zzTocvKy#hknb(T1O0pDxUhCU1H~^h^?fNi;|5(gx-+?>3{BJ8lFftwg^_NHJ
+zsE@qP0vsTzc-`3{q&gpML;X!R{#zlOEtxxceWy#Letv`3KZU()(`(*vHZ;IWb-0K9
+z6Oz?kTY)`2DzN`*?vV?#ug7!V$P=Cd&sw~Z^?1>RH-3sB&1VT5j(}S5<R9Ulfp9mC
+za_62gf0Hcz2lt%0m*lHMY^Ym*j(hFNL@k)zy!o>qr1`X;|LzMNyxVmC`x?m0t?PJ;
+z$xuuBU*WArCX=S~1>S1<DV%sdZ*}<~3JnGG*6%Noc1${N+XBv>BWB)qIC$smP~O&j
+z43=<i5pR1J`pRw-_s#`P^UjyIvmUtb3vVBd&2@Q)3OxUww@-~BMIB$>k)I^}sr$TB
+zR%e8#Z021LbS0%m#eGfSmnI(MzK1Xej2n1&{XPWhedpbspa;pbc=y_gB)jF#dt8U(
+zE;XB*`zIHWa%U&r|Kk#vKi&C&dIh8(*_jX6-jcN0QG8&h^-wpId{ARlr*%BZ2mAa*
+zihUb^>wx9J^`zL}7q|hql@CTzs@^Ar4_Q1Pa`X)!I=4See-$4#d>|<Y-vEvy+4B>8
+zc-K3mb4fAt5xP)_nOhZT2;(D~f*J3%7zowUZwwz1j8*-i4-X1<CWZfN9^ADfO0K@)
+zAxkl5M!w{se>f6F{=!3FZzb*S)!bxdQ71ZZ)1Min3qQn7m!VPCbKqf1%b+KP@rdpN
+zNfmXHM}@|Kp*MfwQE%Kx3aHMbX9f@*J<p?2`bblU^XM0|h?*baaa*zZx=!R{5Z@*l
+zckqO{*h2by@}vf^lwUNnp*Gr~0^i-Up&>htkDUfHWzaD`HZ2zMaPEBUIz08~z+D?^
+z59af63=F)vRsbK@;3J$a5qw<mF)X9AeB4$aX!(!%_z|4QGLnzq2g&XIo+noeB<0U+
+zp4{&g$$C5UWHW*~J}u=FH~FD1*a<$_ZZndv)O_;(WTNzX-0T;Crvjbl=D`spi}}dS
+z_v1)ep2$<+-j*+EYD2SpWi{Iy<%NSbR4u#5Q|2HTt7A4#nKzwOL+@8$=4hUB{v64h
+zEaxeAkgDL(f=_$ygC1DGr;k-2sOu1)p1+UucJp{@Z^*s$emvEGJ@6z?y`Dfya_2Mp
+z6%ftH<ui&Jk?NEepPB53^}l{8pSidg=EMm;GaqV2egvP@&YpDV)A_7txWl~(JS`Z4
+z=xI-$mH_2>p({^Y=tugT-h6fm?3<uZd|n}FpGXs*??0a?<^Z1`j~&EmBww(t7#iPL
+z8>+q!;_1Wok@o5`zAzD-<?xk!QLtG<I(oww*MEhY&8zw1Ee{bap9g$I`gKk~B;2eE
+z2R;EF0%EgWFY(2BS4lV4l`nn*i8-zxU*dvU{&<iLwI6)=(qzbk)Ruhdly{^tC31@r
+z%6r09Zt3Yqn$gaDS%=dg8AACovy}-~B=P07p=uuIe0e%pik4w~`7KntIl70hXcj>l
+z?M}WTF%a3WH~FeKJSY7F@l}TlNO5ZyU)?MoCpgbn`$3Dpx0|m{@+SIuhOgd{h%$P>
+zyAg=BOy_H?H#q4MU-P&#uqw9^;W3xEdF@Q_Ih!l<zaGIk(MZMD>CpAhzVUUD!-(9M
+z@l9zEM8O^Tmi}dAnA@Chzt$8ED@VS=;znvzaom~Mj}(`$@yw&ONG2WNyPP^9fM-14
+zwZwtsZ=dpAE1;_GT+eqs@gwD;a-LP^8mWh?c~%z%1YB=3&+3K~9B#w2h9XDPr900`
+zkddZcA>Z8^v$tOu-#xU9^bRff?t`shOy}|J>Q;>5d%nY#UF^X34t`APuY>sBc`&|1
+z9eK`xP9$HRW<$v-pXX$0;0Qa-bH1aU;8cFl3w-nAo%~?pF_KL%&*z7dV@Sp4@FSJo
+zP#mHuKazy)*XJZZvK4}(@h5&%h3)o`g&#cyJteb{AMXv9T_Bzbd>xObyq9c4eV;;p
+zauCM2MJ_*iS&tB>1fFM&k=Rq2pXviIjHMYreP4+Z>-+fG4UjW-efil3d0<c5_v2?#
+zKt%r7i|7072Xl6d=fe@DPbuK}YtVIPqImv#WQpCa!_PyBmRhyq7v!}_G02`@sFX~)
+zPgVJa9rutO|Ak*T??v+Zz4<>Ap*u%~@vEj|V5HXatJkK3T06?GSwL{_yUTA3f+9EV
+zJHP3Z0*b8Z0Df~i0`>n+<Tnpvd)?WY->Pkg<f~o$Rt~!C@l<{bCZwkS1Acor?rh{N
+zes@9%QWWEO!Nn<LSX{;n3L;^uKHv|=9YX9wIe#=6L$LQXf0Um`$^kC?NgcR<ydC+I
+zWp1QDf0REB1F@~E#|!OHVp(B`=7p<kliKiz7k*em8l|2;w|-{n{Dm$RwyK)HtW`{^
+z4e9)45cY<iE%?i<Vp6ZX!C&2ma(!SPFWPmTWUe*&>qVi6ty1yV_kJToU{(GmGy!#e
+zeE6FZKT@<>#ES(|AfJ@-V!L_>g{;Yoz3?;&S@<hn+!Pu~)rI^mS;#PC0)HC=+w_f+
+zzncYx#Ay?Mzot8~M*8v(F`VR&cJYsYDUsW)=OtYmlg_>oFBylzBW-5!lC(u6)!E5Q
+zP81WJGw@OgRdI)`=cO5IVCQ_~<sfL3j<0$7U--WMbN<cjKb5o(Ch+fhAoCua=08qD
+zH#G+c`4JC7`AQ-G3CZ@$L7{+dh$r+4m7kKdpXUix4mKmNEkfgKRmEI{)~y#Qj>HP>
+z_p^v7bQZd%`^Ye<zYV1om4vQCDru+A7JBa=q?RTN{U4aDYZeQ$e*YbmRBI&+ZU`&s
+zq!tG6RFZT(gaOf9s+${y6ojs<R#Wf}`DFOHLhuZ9`Sd|TEbsz#-$_)eGzH7cMN~TK
+zLxw7UippEuNH(Clus@FVzUP~8*bL3*vx{)}RzeiAPB=TD2i=8mu8U2ra~-pAp2kUC
+ziht~aqVfGV;e6y0QmM;@Gi17QDHASJusjPp2$w$>lXh8u;dW;|X=>ODV?iDnI-M84
+z40?j%k*jQ|vV5w*LunP5KcfO~dDu`J@zaL->%(n`5=&i$`%Vv1FP$%Hc|wE9nIvkh
+zhLiGYb5VQC7E+xk6?J#!61Ax&e#^n;RB%-^aEl@GKPDQac$04a1knHtIVs<Zh6)^i
+zHC{Aq;fX>bLNpvRpVV8&3y-D9lJBVzjSL7|nfzEZ_JVdC86cXZ6@%~i{hDZU6`u0|
+zf6?ScCfqDp!qeynQ&A>7VO}UTp~ACcFlo|y2v21GsIm%#=k8B<IM%<y%W)&AvPTQA
+z-bl*sU4i;n3q;f3K<(duDw?(QBvdCC&6_(w<<f}X2WOM|SF>p8(wyW@IijWeOGHnM
+z-zHjKFD65&zi9c%gS7RUiq<lBluVi+ygz3U%`X$}zTrweBSi;@PE~G{4RvSnxgR*M
+zeVs+e@NzgQx#(DQjMU>ci%!o9$k0S3I(N;09q>bRd3FhW#}U!h5z4LCI?>gAF2dlm
+zMAv3m|EezQM7JA$D6uw3bPpdvs=U3T`wAFJ6B>ygxsZT|Mv9*5P}ss#M6c<v)TYlC
+ze$5b3+^4bVZH9k%R=)6G;7$g1UifbdCB?ZhqE7}ipyoQ!XLm8llh=s8{+Ez-+EMg<
+zjhqVir=ovNlxF`rQ3NQ=V0y-vi2!G;OT}+M$blc3Hk7-Bh=3tb$&QT_0a=)oljB6d
+z6KFmI+lWE&oRsFzVsQF7qLmlLU~BQX&;N?SS0EApts#a~8cg!8WnxHi66wq4h@p?L
+ztd;A;Fowx~ElCX9ik@;kE{2)Eg5i08T?{Y9*tZ)fM#5cd$UZNEeJ+t!YbS!saDu8a
+zBIF8|%OV#Ma`#`z@JJDQp%W<z^unYcLWbejg~`hipEnCra1cpV_6gHU4JjU$h*68*
+zlWs|=7`6QtQR5*ZOn8&FMyUvcBTV1-v@nNxLo{a86yfl4YTIoT5i)ey!4)C`F#ysO
+z9}&?5n$7A-A~Lo%>Fkz?$m8&ciP<7*JL>g%oEK3=$O6B|MfA^OM9&t97#X(bzUxHH
+zf|e-7yxNAU^?fVw;ZqxGXD$`7T4>R&HD(bjK9cI=G7-DFDXLL@7P0T3I*Bw9`w5IJ
+zme-i6)kr>kju>+m0%_j}k+1;d+EoXUI4YA=JqC+J+?jmo6*2Z9N7#8IG2SbK6g!%W
+z@j(;t?5BUk_z+;@CSrUxDx_8$Ad)+LB-z7gksJw9@85d8L~>RbslqK{Vl{NlpadK0
+z7I=$^zaWyP-C!}%7oxd*_~L(#IGO9(iHW&Mq?>0iCWEq8T<9n!U)CbQ$Wct0<4wxK
+zj>0?@oLuf2@rOEt)Hk||sSc291<Qf2$Y9cmsZAgt8y1SGQP9d;P8HKv_XmM27c+)W
+zfvd7W%m^}(wkSo+`1zDHig{vYcjz_E)5Xl4?XX+lFpF7*9;91TB4)3<h7f>6F=wV1
+z={jeMx#JM$62CyqeGjw$?g=rs6m$98Mlr9gBTCBdv!N<mFXlg<N=jEZU<xU#H33co
+z9t2J&W%Uj~7|Yeq0TG(u)(1Efcn3HOIh{3v@ForTQY`2?AD*?HVgb|#&BP#)u7ds1
+zc!5YCt|D#pSdpHJk(Bz2^yi&O8IU6uqT-rtZHibp4=QHZ8?o@wNK*E`FBU!@O!^Lc
+z#3HK#)%h2(c&_!hTVhEkY%v#}0->>8^b$*^nL&ZcABd$_p{xE{N&J~-B$dN2!V>ID
+zn(c|gf)E7NN^J#Ryen21z~Sw`Csr(n)$TS~WVFVX^2cM5k%Hs)x`>R~8_CdSgUC4Y
+zm<;Foi#2H$QcYVX)~rUj*~{hPuiZUK_27kAAM%5gVSkGa<~PtkOe(Q)BPeS-2eBzE
+z5>M6YDYjq47(2$<P@f$kc2q_fUCTI;$<Sjz-9=_C?9ThVZK&?JTx2yaLt^0!k@dly
+zX#WC{y$OPG`8OL%&TYlsDr>Rp4;FhrO(WTm{bIi-LKGTo5a#_ept@PQi~T!cS#@Dz
+z|Fv_Z)r=Phc40O74HO67Lri4Hi-WB%!Ey@_hyFQ^q1hr1%L+($JzN|aYfpxrN^#^e
+zOu^6F#F1OINbXuLj_T!bf6N!h8l*!1IWA5(7)k!m92=^3))pt4L-#!%WfmtotU!3|
+zPjO;SKSZ}K5+_zcu+4rePU=CA^6TPc%cZ1g`9YlQ3s2O5VsX;+i4-%th?AGFT7ABV
+zTu|lO<M&1GwlAb_b5G>n@g|v9Rgou9C@G|lIA!Mpu0K+og4Ry1XT_;wm@5r$iPIkT
+zB!6ITB~CxW9TXbHnSh6+tGrE|iAQpX{bh0HA+`VqF3vm&L{ixcakeEg7e?BNvw?$1
+z_k4mlYe5M}&(7lPm4zf3wu^HiuMu{VB+iY|km1IDaSp|H3^#9xb921lRM;ZU-M>VN
+z@-&g()*hkTT||C|JQPGKe=hR7?IWdjn#kXRj3m86<nMu^;~P<d!OO*kNKC3K-NdDa
+z-lVx@C$5fwvimSaT+Kv^h4UtHZBR1FLw1Yn+G(UoZ7Oca(4KCyxYZ?)4Cyt+t*h-x
+z+3lscbsN#|U0;dYiUg9Av$#DjAF)mge8n9FoO`(kfgYp`d1pg?uBQ#9W!J^slYVdx
+zX4z1ge^cD2OQc@@Lfo%{Ww_rg{(X@_`sC~4(RAFIlR`ZDR!ZvJ+v4%?{t!GJ#N+W*
+zNmUjk9^ZgqS|G&Z`$-7e$`Ox0979e=J3H~z^)Yg=%f-_g3$RD65QX88$hCb%;W{^X
+zs^*Dj_pE})PQ35}jTlrSUR;2sHq%ACLeFW7l;TwihN`kjyt;xRsJv4Y`5}7b&Q9_A
+z0wn9NQ^ea1sP_@qO}st$iFDm}h<84Tq*`78G~>;MS>jzT+#S)C#fNu$piza`P+GA{
+zeC%XGIBA;rcpFCUFWbbY!Cpkwzll%bOG)v*Oq8IjwMBWNWFb;79!wFRyLU#&;(GDb
+z|2pY+EfQb1L$a!}L}?xDWv4cZ(!(xf*cK$pYPgVok)tRJ9y*=mQ1!}I!R8FK6J?pH
+z5HOQP`EUi8*Mp*b0^~#YBJnL2?$5kI;=2}9_`E{#y%#Q^UxxT0Wst_pNBnrDfN9uQ
+z{OqSB-LkV0C`@$*N+kVC{+7zE<@S60a(B#-%U@X*Hc&gd)};`Nr5H+}2nwSp{0*W+
+zd{d8FS%inuNlQlRi)UeXw1_%dXG{EJSv5<{GL71DMz3_RR2r_5EZ>fTy^W=Kv=V{e
+z2H_V`w!dNc8%@!cwG$;rOW!u?DwefhR7zPz!(IN{FmNn>Xu{7;cs~j!|8G;V_?(3A
+zjrb-A7-l=ddXdrpIaQ+N-59N-rP6Axi{)a7tct7k`i*!+{pT9GQULkln-B`OOm%1W
+zmK|?ZPL|_E3Z+H+MrUU*kq7?kOQB@4)LbO1Y6-lek-*=xN*0e|m768$mBDUlqRv5>
+za1GY$vo?=wvb3MBt!}pVn)OnmZ2wBYKmL2({xkpwT5q7@TO*FM_OrEztT*VP#gJG@
+z4w<fVOi*x?$yhhu6cQU9ZHfssh1N4B#u^in;^Lx`jiZvHqKxrDF<~ZS->w~vu}O(>
+zNr~3~C&!wT;*FsZ32{+D$;MFA*oY95hp|&cf~~p#(?C>2bVQ;l^#5tY!`MGOBEgto
+zN=%H12{Q)aY!RjeYs<m0iQ&e?aFelXfUhwqCe#>h3XKRdTF(<46f)Yw=o@MZii%3^
+zZ98aeP*jr17&{6d{zr2O;ju|k_+?OHNVqY`n1G9j3X1>VXN!%&_2csU4=~2Y8>3@m
+zA`)ZcEtQAJs?99(mEk4FOM#a%r_5L7JWCdDS>8)k-M(UG1!EZEZIi-Cah8#%)Xs`f
+zim+5JS5>#{k5@a?tJ@)JTu?G@E<AReah&xU&;fC#_z+V}qA@N$HZ0zhkYEfBinr9f
+zt#Zk!d{wofq2<~bO$}xprUVR<b;cPjy+0}(WwwT0Ma4q-@8qsHZB^^kwH{tE>td|)
+ztYR)$`W#i)k;Pj2{7^V6F!Gk2A(|S72uuiTJJFbK<<-?yWj!r@J}T`0a|&5SqxJu1
+zqqr}MLz6MqDT-f*;#5(<M0|>-Ad9TF*45H=g3Q5EW0^{CKIl8jXtGVH&<3`<$ADrW
+z|9@RzG>tXI7$dCXXEItRVSK1{K44hJMueJTjTqGEp!m_~z@UWxHsoRK7Btp2YySI9
+zMenxyzq;2LlxW0E!R(B~#7;0`*sW&?Ns5ohNMLp+C7@k=6>YMNd9HGux&NmMFEw5o
+UytH`f@Y3UD$l3o>x;E&40gI!MIsgCw
+
+delta 50085
+zcmXV&cR-Ep8^^!*I^#J<c6LVDWEHZ>%81t%GP8GOb0Q<zZ`ov&l_c{u5>hB6Bzsi$
+z-bDCaJ^lRidCpOtbDrn9uj_k#uj@V=&bTf<;JVVmRscY27^*rEdxNEp1yo&N<PM@Y
+zjMd$VXJFa03@`-3RQ*4oW*p4roPk=o^afmt!dyNDXkP=Ezey)6KUgQ<WzngQFUaH5
+z1fABJP4YNoGQCjyzTmsN=~Pz=6GH)U4d~Pw>}xF0<p?mayiP;VEuh;Xpv-xo`v@5R
+zKGdnToC@@~0L_=)SkLqH#_e>P(&w)FYj1l+zdi6AOcg8U@s%4eIst4ey^WVQU~XC#
+zJp3it=oa8tQeY@M1)_;RL}Vw39bI9r_#Lv~WoQxCAZG`|+^Q_(qKz>3uLZd@0{HI}
+z<m&l=u>|CrhcJw31i5<$IL7I;@%;<*14E4?kVo5qJ)NkNucjZQ$Ncqbo#tC>bz1Y6
+zhCC_3s*KK~+oL>&(I2Ge`QdUp#j$5PWrV9v6?{sk$-i43PjAho4d(lG=wKEM%{M?^
+zl`xG7&f_$t)BO3XPHS*e$kZAzXWxUoJ{6jg{=oejF!-H@eAWX<x(xZE5)1(vaWM>2
+z-67x9hBz|~^8F65??rTS(^2AW80OROzqj3nR&p=ow+N{4;>37prD{O_q`Rl}XUJa_
+z!B2CjqFykqG!a8!O8gF0MnEM0(5clt1y%MCUHAb|u6{86D~KCmN{-Q~HM;`Ua0$58
+z6RJs1m@e(tsd?;zvbA>wx62Pj6gaC>n=})u(+-GRqjhQnt`Z}m`IRGP0hJ!<)cm#+
+zzd-XJ4ArX*Esdl+PVKCdMc>Hd?czFlfxSBA*z0**cMZ1OUo=)``V*#g&UsAlqf-ki
+zs?%CqK@FJ!ZTV!Vk-H&SHK<WHAyWKxYOUHrO<oM1yjrJt@=K>o9H-M**Q(QW%U!3o
+z*GZ?f>>eAG?=Wbw^Pr}Lf-P&U(^&5$)U@-^&eIDA?SQo(orxv;A>KzptxJUXN<T-`
+ze*c78KL@66E;_Y8bmlh3!8n*M)uz_4)Ljg<Wdyi=kv!g_Gr3KH-=g0mN@v><sO<p%
+zHBqPO@kgDO&JIvJL&0wk)v4B=&SR1>kJlO#|G;XV1hsb%WJ*4rrcLdjq9R}!XNHQQ
+zOZ%8U7*VZzlgCRPbz0`Hh00xRwo8R6iur(NEZ3=`>4)jD@ppTjmI%7Z681wnw1P^C
+z2Yl#eBU%offVz4CmP@Oke$4}hZ`5hYSgF%mvj7avwIQSbfuS}n%XQCmn%k$sFzYka
+ztLiW;41>*3|04_(Fc2^qhJ$}$y5a{zYE77G?1wS;=A5`*r<E^-kxsc)=D@hq8zz@1
+z7!&5ex@a_vH`W6SoMEIlVl{SzX_ha<)6Xyk{(|W+#p2+h&>9B7d^j7%oGh5%9RXk7
+z30k)qwEjICz~U4MOMV-yk7*6h{e*mV_CS5@2D=HLDfq91o!=pt|7x(?JenfnJ{0J?
+z0hS$WP_QB`QP&g{^tc0KIe!#9@Dv!)9R)wob^lr%g-WHt-0v3(y9|b<<6so_$Oao2
+zkw<?63jemPg?U<46#jc1Y+*GN38xTQZzqZzpqnVIFN%&m2brBsyb0F#4vGdoh53&{
+z(R-DECW~R;syo=TA}A)#!E);simg8kQ`gNX(X%Sp-*}W57Y_6dMv1BYVX^Cg60-^c
+zj2<tl195l&O4t_FrGo?XL_LTjis(Y@ixO%66xS^}P0ya7WKbM<ygy2Xzk?c75~Yql
+zgeZ}MQokxd6xff_Vk)J)<tW`i(CL1S(ybms{jQHPmh!NiI*T%nalqCwD6{V=#Qmu#
+z^YkV(wiY&r^YvhuI|Ajp$3a}rk8<1QfYm&Pa@*g*oG}~a=VU_G@qr_+0r9R59GfJ;
+z)NeT)-_i@kyTZxp1in2`r}knkoF1HnDWeN29<B#%Kr2*Y>wqGWs6u~VZZ)II;GZzJ
+zNk%p2Z7`Wz^g(q4EukmLsNU!W)TK{4O|5>RMr*p3-mi4>6ZLhPf80imgGrE4El@Ks
+z7TT~3)I3LdxAq@6Pnkw5<_T&~+yhg@(vX2Bd)w1=)M?ZbmWz*wtzb#2M06*PBT{%s
+zI*dB|y}<(-pw6Syz?U@CHEFPnxQDuK?_jDq6?NP00WTSZdath16)gsr#-m`aP?b25
+zI0!C355V+d2V7Tohqg2Tt{HS^EWL#K0ncGG<$Ht%j=f-UYlDUc`a{+fG@RrId14D1
+z9_R>jjD%bJGcdku0JjHp!t#CBX>AyVM#GPRU$&vqlx7fP1JI-<Wq^}|(bV7yOP~8_
+z+W7{wUx(53y#v^>HE8Dk1tM%GTFhDmt&Klg&244_Z`lX#`M$#Jo(T7dAeio-N9$To
+zA#nn2j(b9L?uoYkl)KEW(5|6B%u^Pi-I@f*eqYdT2d&b-L1-82LW}S|+M5p3k0qnM
+zXGNF}Rz>?$e;|)Mg9pz9>#_kJl{dm*7zmFVtzk9YhsOxpL&$mE;4!@-4Ef#Q5k#wa
+z#((fQI2Y!rE#dKjo-cYI9qO-!dBX&B7&-(Pa7U-1tOq*GUkzB-p+hj~nhRHn=b)Cx
+zqQgp8dcHI|YK}0cPe4b{6!3e`(6MJDn7;xYgX#cwQRrw}OsD#NO?3Q1dQnwJCrbp(
+zPgkN-twj*WilCEMJk0Oy(20VhR>6u+>*)=6$D-5o2pGH%qqCd^b51fkk8KUjv<aO9
+z&(S3sfzJQ+hcRFRIwvlmY%yM^VTzAVEq@uE*3wmB^IUTV{A4qD#*)0)z6GAAcR;hh
+z2G4V~pcM~7mp1L_S`|c>v0fxQx}ht70z>9FbZz$&%x$GkQ(P-_?Y0=OH9*(i3E*c6
+z>lEx8x^5T-p$T-|?FPf!tLPf#4&h{nuD>;y=iKXxZkK71xJ01a)l<+~_@KLX2$~zQ
+z?<{Cde9?WlBea$s(0xZVt^Ne`a0-I8`f&6ZOXtzCp-!G?Lyy2<Xp_Q2PFw744ujAm
+z=`$_vqUdos9=z%?oyM|B=<#JSShuI>6}$typaYTqKPdpcmac|)a!IFY-O)Uzf77Xj
+z{e#~1NnFH6q4(+q&@MZm_gTvOq@{a*ON6OsCi*P@12)7TeJ-tsP5ZPTea8#|J3115
+zkKO^BP!xSnzJlrD0rZWhEA-VBeJ|08zvZdZ(xfu_zE6XtEj|85iKfF(cohhy++Gu2
+z<+{Vt=_|Zyk;pK&gx84Guyji!{(*7kzwjD!7{=K(;I--xR7(eV?Ve?WR%r+wguv3{
+zJCRh&ug35?x&W3zf8q7V5wgHK^b^6bEZ9n<d-lI8=w~5)@8hDAKi;KNtuLR)eMj<m
+zDPE`XTQ8lar*Cyy7PUn`FS-MKhM?bYTRm8|RYbppc(AfLI*mDn(C_L;S_~D??{Nfu
+zk}&i)P)6ES9sS$3fr{OY{yFr?uZLnl@H+74Yjj%Di(<gx2s%>>by}KT#eiSC!C$`D
+zsSIOvn#u>kd*mTl9$$jDZ9OTJ-3Ku6m=`P=PcYb62iniJ7`prkEMtpf*eE-gj5RUr
+ztrHAxOX1UpR{ew1@Htio<|ZvLBKL7-Ta36e8RjRU7@4I(%Q{7LhxVi}Mt<)OLzN(m
+z>Ny|GuoR>E)7nUWj#0xFkjkk5TkZj?ep7$KI;qG18G+H=BEhB5Df_!%^jMNh0pS>Z
+z#uL^SmoWPE4499###qCA$_Se<wp>wIC+@;nTJ>yeG{&u=A|l`c##e3z<H25-*foL@
+zNkL4^U3_zit4Rs<cx{8PB@5b`SMYV(1GAqUd>br>a48HwI~VYJ>)}U>$K>1|e$(kp
+zI8TEAZOYxHw_^G&DjG^Y!HkBXu&PR!+5aAp&kM6Fr@-hl7IR#}VGbXMIWwL>`#czP
+zlDxsHwuLP<3F>1T1UQi{%%<xfP`3>gi4!rmWGnDe)e*QX8d|U02s{x5=6VT%7ybZ4
+zUm@_)8*pO}EPTHcmh=QHdS`}VejNlkOQ`FOuy{G;<e05koU?>PK`{g`r?Al~2*F1}
+zV7_%0OPUUXp~Pn_8RQJ>$QoEO<6oF<QNdWUpDKuLRdt%v=m+VswfF`sn|TA4I<v8I
+z@<V9biec3%x@PIu@vogPg%3OYJEJ8G<1Znk<8oN2Y6<BiV2baDkbCPPPiG=D&Knvp
+zgw+L`!BTrLR%eZew4`HgRZ6;6XRKW#VZ#Y0{Xo_jtkclQhP5Q-O}&<3T_38iS{A~(
+z^Ftu}uFz@mIgND}hrlv?G1gxV0m?nY`Zwjl0*_)t0L8tg;n)~79qj6OY+OPC+OHEf
+zHSvM=<_b2S`Utu!5f%^%t=emBS?gtk<wk34$sP|&;f>f@G8N|hN3gXU>G<#;*w*zV
+z$=pC}o8$n){eswzM6f-7u>BS#MKJ;qb?Mr!%S6OuQoUyzVCT>funm8)^T{!oA63Gh
+zkyXIP>_TLTRG6p)kG$vw^XFJZ4cZEE(-l#<*WY|@BcjVrgVuCBqMcK~-af|uMn16g
+zPQd=};V>=rM9ksourxf21NEOmrOn5I)4gH(FB1pvuZ9|b3Ws`9PV|3-!`am+L)^fT
+zT4B&C55s@yjVMKR!}02Kpncef;|V2T-gcGrLRA>;8BW-axPtY*g%i1)=!O&N(;??2
+zATIY5Rj-Y>?ats|vk;f!Nd>|##AQ%1dAX%dlY1MSu1`M5G~o0My4&eKI9r`Q@yiKF
+zh^E*-!vTpS=!M-bAd%`nQ}|Mx|3yVdX)jzLSA?J62wU!fvFryVy_euCTy=^!{dB5>
+z@p+6tt<&h1q0=<PMW=S*yH2bBY$U%a3_;84^3h4a{+hV_f*yaki<BO3p*h~c)jGu>
+zAJs)Fe+JXtBS`gr2mX1t4XMva^bcKy)Srn!|4KU52QOUfSrO)LcW}MnJ7^`U5`PjS
+zaJ?N>tV#KBJ-q}BOD#yV^MshR9BKC`UL+jXX_RGgtE?jozkPALG`UXkzi{WDwJ@|U
+zf_uZsNLU}5#|^fjxW9tdXWiC#z-alL((s@iN$0p{c+iDP+Aa0*FftX`vI`H7wS#zD
+zACE>lL5!(_$N4>>LR;bS(QIfzzIc3$!$9^`ruGiTe7%tQo&wbB`8w6iO~^Xp47qI_
+zp1gO0v3xT;twl-C)}P~P+B;a?%y?EejqdIWc-~<?wEE@ne7+r|Qvp2xNtY%vOQ(5m
+zC%o8omTu1ac#$pX|L5Xm?@3_gUgKr#A(;BQ;pI(IZcT^b^=guy^#<qBeGlF^Qqrln
+z0dITUhKjGN(`IV5Pe0Jk^ugPx?$G2fyp0Wnb=Yux98G3Y)h+mxcmw8r)$l2eZqhzo
+z@;LDbzT8NIDn1oo+fyzW-T>eDAefGv!Z%tmGBO-L%8Y{CHy%GHlGa^O899zr$@<qt
+z&L1C`izMLp((WXx@22M-kSmp}(==>@PK$R-h6NA7UY}!FOY7S6Av5G32CVtUjITqW
+z4d2g9+!xkz^Oz~f25CQxnO3wR-O!nt(r6j?YQnVc0gwR)nRe+0O#ifD1vWZ>`&MQJ
+zhtL_iH=7llXgdRQuZFBp)Eg?`|6@hi5y-nStjL>IkbTCoqQ0pxJ}bzIu8M@b*nkx)
+zLdm7^R8~CYImFHxI_0rvI?Vx<Sn;<MDGLR&k~f#Zbng}`Rp38}2A^4}brg#Ko5)IE
+zsz}CCapq9#5zN=iFbCVwI#lvbXAY0)?v0v7q$Ct|g_T{_9jMckmAy|UfTb)e*YN<%
+zdw;QVvwVP?16lb3p-|TzGRHctU|w~HIR=MAz23qcFH@jOp2QrVk>q;5i#gSzGjU=8
+zt62FYz2VBN(vZq9*b-QkT%GVEk=d$bm863y^aMq&?4d-8SlLBbl{X1c-{!HZ-afES
+zug#n*QQ8d}!JMm7w%b^MIlDIlO0{LRUNFeEZCUMN5@Ja@s~frihQ>Eo-HceUZ=O22
+z!JpNAN`>U^s;uray4jnTV)YWIf_122WA&1L(j}P9TqaOxUDqy;No(_XV?L`tcoB@v
+z9<utQNn9T;$Lgo<2j5mnr}jLFHHdbAoLqu6xIvL}p@lU>HpHGe%&nLi>{1qUt4()%
+zOe5yDsveaa6_^{HVb&m#H7>aiIBKiKn&#^Z%ioQx>Fy`s2lHrXn!}p2e_<ManYHlV
+zPF~!3)?y*W_?VllRSSPu$_;1kBMVdEHI}*0JPxh>Y3BZ$bb{{))_P0=Ouj8y>j@RW
+zV+!k(u{PHFStD46II%WWXqk81#M-%4C&#Kse&*psep>o9)?w7Yz?2oNV}Ej&H<e|b
+z&)kHuLQm$|Xca62o-ofri7-@n#ky2j4&#>YtjoA-&?d&Pe@<nAo4>JcUrT_^n9I7q
+zrV5V_Wj&M0j#-w&dNuZj*z}$Cx_Xl;&p6im4Ar<%msy|u?o?C{`^NgtGDF+jm3i&_
+zPA<X;=JnDBBVDV03qoNjVPXC5IKtAnKkMIg4rH5StbZKUvTLvC6xHl?TCHR9m~R5>
+zf3*O`{I+c1xB`$P$FYIaov5VT$_C~{!&12n8w~P&eh0Imr9O~LHFGK(nz|CKb{ZR&
+zKry@J1?IEPk36;&I?Z+7GoM4`)z|-r`Fsfj``uF~FLi{C81WY<w2Y1BcF@j6vC+TU
+zKpQ!bjTxVN29L0@!EWGHBH7rLq<n_dV&fLSg53UxjXRe{Ib<{μhEu*rpuPo~;7
+z_8uGmmf8s=zOV^HqrpyfW)p8v06DsZO?sb6pJ+Lo+<H9J>Zm*(ZmZK$!JGMxp!D0p
+zoB1tufvH$+Hf7gjSWb^(QwKRh6$)Teucg4U_A8s3ehw%d$EJ0Q18dflO|$vThYB0X
+zrX3=Wt;2CPEo%XcGM-H*>8<`UHr+ECoD}->+a$T_A7wL^QI<4ZW3xV!(ef*Y&9;9D
+z>xhLcU{^g-#kE=B43gV{_n9tU>z8En%P#_ZoWbUwJV-_NCAKh@wBfYbY|+j`kohMv
+z+oF?HT<(6&f=WMuEStuHu9D22zKkvIOb&F_FKp>#3cWv@vE^IHLNC~tt=#_vm>R%V
+zRU^IMeJWekCIoWHcJ{9|4yLQVEQAUTnKYJ#WK%$rOIhfD^Z|m`vDKw1x2)aE))mMt
+zbo#ROdq=@?(zz>J|CV0pnMtSRjK($$83yy<HEeUq6yTnTZEjc*eD5>1x#MV<PtIat
+z&jYE-&tc(XPeN{FEIj50_=Vd#t$sg3@|Uu=En3ea;~v9ud@YMi8V2cci$&hgp?Gvy
+zCpTVTkq;<K*BZbgvo}CnAIYNbQ1QQ|CEMpd9>!18*#5+9VANc8u*pBbjCneRc_lk&
+zBZGWf7&~~uk-9Vgu|ruEsP^B=jx2GfmeLZPHe<^Y`hm%-Haij{V0l=O9i2S~Se2h0
+z4JZdT=p#EmcNch(itGg2MS(Pjow()*<G>JhCMX)lGlA^Py&~k&9@nW!4|eviB1eBJ
+zOQ=Y;@`buA!6%$tUdb->p*vy1Xm;T+)y$=H*riiGlnkryVwb~;QX8nhPV?=<?8-~Z
+z#<Sd5N`a+x3o&-J+X-m-@37QjUm<?AVyVy4$PP(h*UC|LHrcW3WhlvBoW`!-ASs#g
+zon3!>6PA6U?D~5SF=Pz8{^uQaZAP;jbM}DkKFiYFt3%u<%hLX_r9iIV&C)|wfG=IC
+zQ^mH)V@gq-R^NDbYi2ljqCux=&`O<JN5*bF>r1~c*q!J(utcY@hto*G{Tay~F1ib?
+ze*k-U@+|o@SJ<QGM`4akVUPOupkn$5dldZzvgbeSvCVx8*u4iVqZ<{`4wqR*^bpG0
+z?^wq3Kj8B;mN|h$Fzd-Ow=SUMI+bPKPJ+>F&$2o!hBP%}Ss~FdnU1oo#KOSw#_Y*;
+zSD1eKuxAsUNKUk4&o`3-{FuUCJeUV@elmOMM$seTs7_OQNoIR(jD&V?BYRV#9+ir%
+z*qeuR58PhF-p+S`(a?~+GxY}FSAl(S5zyRkvJY=EflqJQM;|g1Zx>~s4$>-q5zjt9
+z@}sh(2K!QklJnwI>}$bVWGA#^-&&1=@n;<ScBlh6_xIViBv-&`68o{l8wSr?HkRG|
+zI{B~j+0S33!gt?iIqe!iUdv{`8!m!rc18C4$sbsnm1TeERPu8@*x%f1Zg69Ne^A!n
+zIDq4MD`;XP7bhHHt+19$RvFTGhpP!xoOe9P4JG{`j-KU)263=F7{rYeT%o0W<fb*<
+zs0C@;&COF*K?I%TTCw-AR$j(67qS!VGPtE9Et@^{xK;E8^RCIQf9Fy|WGA<)HjfIW
+z9B%jY5Uu7qya1UlhR7Pc!1GryZ@k0{ymNt8;3+SdNvq?|MP6uAD8#udyihj9&3v)E
+zNPp5fO*?b@;%?;a6`jQG$9IF~G=mop@TRynhnH#NK}l~icX;xJj1(g;@BEOuvyr?)
+zH7YHmnsUe79@D)>yy9|-2UqIxiu+<<us^{o+ZIssV>Pd`o6I<y#%uf*K>haI*-Dmw
+z&NA*?inMR9v%Ho{h9!OxuifMmwSfxX<+b-LhS7Hwubndtrl<LMol>+;r}g1=*&?VO
+zk-Y9Q(j!^Jc->XYsj->B>$#qT)v-OVw<`{+!E)}RWr1Iv&s_t?!w_uYuEBvYg~V{z
+zT@;`e(&HTZ0Qk)tRDT8S%SYbeSvMHIrSk^wkJuo7cjOHxghAb^z#C?MhB%SM8|tU3
+zE_ZuC+53p%jfU<43h(8Oi^M})aECYPUkYMJ8gE*dBH`!+-gFLq!khJYv*|<W_x*L6
+z&VJ|3f@?yGb-Y>fJxWP`c*_{F+^;?2E$_C0jN`nOhmG2{8TP!@cS?rm=kV6;C}hrB
+zz*}dvBWvgZZ~eP4b>t@UHU?@Judl+}B>IExeazbq7!0$2e%{t6Ka4FJ@b(>hQrE31
+zZy&acI(Gitqh}8oYQE-O%2CIy?`7V#ix>Dc58icD1Y|EK-u1u?NUz_#tBo9L%Z7!#
+z+m<+3m$&BKl4j9l!+zeqiy7uK<$3r0pF#h4k41KrL?d{w4)b72sLOl3`~y>CSKjL#
+z88XV1_o@93GVmGiTb<6x=knak?J#5y2ky0-vVFM^+-on@Mdd&9eviI_FN@ZxmPd12
+z?h`7`mG?hS4X=D}`G8fusZsTXd!M3OwR&|vcz!WhvS;xjbcRGi3imm60CGTk?(>`~
+zwBb#-&!@xW@b>4!3s507CYI;AdOWp-PVHeB(H*MiZ=KqszC72&GZjhZqsD)Rh7Ps)
+z=*dT5tvP{@D@$(Oc+MwW^#psrkWY9r6uk0DK53i-^;z8cq+I`_=gyFJ6&!5ax^dq)
+zYC-yBalfU`P^Z1Q-^o8<l{a($`;F)xo5uaKNi1CN%BLhz`zE4q9$z)o$v+k6Q!DO<
+zVMGr;wdQzeGqd^Bca*bs<k!hRUC-m+Q+(<VQm8#&^O^VUAiM14v#4KdGwvA0=U6CE
+zw!hB<nos~toWbWhyn`itFrOPm$+MM>&pR>)hPJ*uaQ+e)TRrB1+lPbYY}Lt282NnR
+z02E8&^JAOAGGjPjV0;2Lc|Kp@c87f4K77H1K!`7A_=2TWVn<Em3qBR4mgn4D+F&{`
+zn=k2<M*oqn)9PNCFL@|oY(APVElFbxV<z!syN<w=WaG=Oj)5ut0AD^O5tjb@`10jW
+zVC{$NROj~S)KUiW753D$eKeY{=#U1H^@XpP_Zp^K6Lo4wH}Zd7=RjqQ<NwaG(Xubo
+zga3Oi4su605A9W%?9XC+b*ID7LQe42&-{TZPJHz%^5%NH;cFUFNxS<4U(==#SzAB&
+zngOKEpBLflMo>%g#|OSHlO_sc+wk=xTSL|_!Z*zL0?dBLH`?EX`M?9d@k0pAUB>dw
+z<4Es~JHt2I9#C0RQ}C_Z??a9n&bI|hm<Mj;J8E~Q{`M@sdpRY?&4TaAM@e($XTIlr
+z4`}6@^2muHFd0_y$T!P@i#7OOx@6X27x~^sA0fmUzITcrR25IYe@`p2%ovX``~$0R
+zIUeIi_Q&1HJf?9j%W+%GWin_g?Bxfj4{oe>o*&eTz&dUSKh&C5;p7B<XnjS<m$&$#
+z9d=;ji}1r5t-dF>_+ht1n4A6JN4t`q>DQGXt2G+95X_H-Gg!-?<i|@jfVkkukMDMd
+zG3*>aQQ;j79vAru3Oi!rTYl0x9^$!^jmOrBhT-%`etN?}SX?AO6Y!K8U59vlJu-w@
+z7k+Nlcd*P|{M?5$n4;V81W&q)v)l88K!2DEcHjxGC=%B>#m_G$h5Bb7Kfj(<WAm0|
+zv*l9p3ne2U(ogaWNgp8Zb>SCZSA^-}7oJ>*`tOmpwLG~gRgNc)@Z^puuxg8Va<|ez
+z!<IbRw>vDUVf+%U3bn?bUz(Ky{-6-Qlt%93izt41HpQ`wBm7FK@j#2p{7Nl5ax*^j
+zlyCHgYTe<fty)9G58|nPC}~DF;i>zZ!EnA6Pkl!9S;dL`dd5H~+n3Awf%%^<JgvbY
+zXwmg}+S>NOEC+tGYbM=<&iv-E=}`B7@|%gz0oN=1cB6+7J*)HEeFV$_sr>frESTpJ
+zkCQ*^V$biy%!hGqCw_OG4-Eb@`Q4m!puoTUUPEV^uX@Js7j_5A4(InP(Cmz9;R*h5
+zN;t&Nru^}hNE%0}$20yMf_3Oh{<K8|G|L?RG%XIMPJQ^ZUanNymgUb2y2BiCnm^b7
+z|1^I=rLAc~EPq)w2^iCfzidq&+=F@i<r5l(C{vBU${9j^<p%t97<Db~9pZ0VJcJCN
+z#NW(mLZVrv@i&2mp?Nms?>13Y;rf8Tdl3d>ox=S6y)R_oRN)^ovSIdJ#6P}^gW+`p
+z{>ebAA}XAJx=Xrb-CF*MPNl3~m4E(DFF4)Izf7@%Xy?Pf&Y)x(S&4u9l|ly5Oa6WR
+zE?6>O@$b9ISo*Ii|8dn;9_9g=JlmllWXIveLXe%x6AKe(6N?b<5Gi7Hb|u;qR}slq
+z?fjNV^H!c7L@IqfckrJ#Cqk4d!++%`$9dvR{_9t3m;&$doK!nlR$k{h_pZS>%8mcd
+z_l^wXWd7S0N5ZB?6aM$66>{b(0ly63{S<*5K~C{Q!7{0~R$m4GOUmu`eWCa{YT=I-
+z>N%~NDT%_+h_ZFj>B2a)CdAXa!n8s_CWZ@B<Q>TPmpYC1XLOn_O(bShM0FAxBRx~+
+zu&`;9YD4pAB(%>Yj_)Mvlvm3MO98Si`cxE_Q3lB1Y+?034{;?#r#!nur{U*#ou*_5
+zotoQ9k<XP(g#wF3K5Bnjo%;&AwaL^pI4APE&4tCjzbJ5za>ch2I<2Fo+eD#~)YR)e
+zM-&PsRX+5-C^B<AwL$NQqG`0e*81ucRZr=(T1)3KUom0Ny1_CqT-bl1?0xQsPHXij
+zQLG=CeU%G|V*YV3&RH*tzc~o2(?U_ABq_elQKCeXMKH9PElPS{hh?&DlPEcu+=Wev
+zqI4V5lH~)44~cXc3(-VTRF)`PaXiddg(y3m+{qTcqFmeMV0WWL`9HM27mgK<_F*tt
+zW{HZD0#0Uvs5pY$$fy3I;=vtY1AmB0ot(i=mJ*eg*CuKCLZ{ke(rL7{Ypfq=4?Bv=
+zr6_%F9w#b4G6U(8MU`69DcuedRrb3;?KvW<Jy;KOA+xAHnH;C+nWB0i38MQsqWVn-
+zQfl8sjcFm|M%sxQ3w>!K>5!<|=qqG158+&&Y*D8rqSnHfU_CdBT4$<3YgbCtu6U0`
+zbAeD%$BS%?)bBdA%t@k7U@K^)D~mdb$ElnsAzV67f>yPpaCy`L+JmaXb-5?l@$bSl
+zavmwML888GE{W(3qW((K52L+BgJ_bX9lY|`(Iy)H`xVCS?S<QhWN7903AZB~V4j{L
+z8WpKTov25ZM5AN0ZpU91jpM?=n-3SwhC~C-r$qCs9#APMqJ<+l)wQxkD{A*!w4=h^
+zKuv=|O@;e(N>W=Ei#7x4=dS!G+U%g&xu+#Xo2w+amNgJ<O;2Ivhef;KLePq~5be@^
+zAcNWqk9N*5Z3q+|Q*42d)<42yKa~p$MvD%^$N*Xqp;L2p5FP!(As@~Y9lxA|R<@1k
+zRPr1Qi!X>y@AlFx)JD-cl3Hb33yIE0zknBLEIdP7kdAN=T?!0^=~x}{PZWjd6F)?c
+za+wf?l0?sGQ847cEPAGru6QwB^s=QihjqeB(L1IX*bjG|Jl;+8YfzV_NaIAmQBGuZ
+zWQzVj>E`;GE(TO~fxNU`4EWrQ8px%@fS<>p&Q8^7qI<==S6fo^tAuwfbuYYw#lS7M
+zVExx91`YD2;jj&2=+Iov8X$bSQ&V9;d13Q8N6YPd6XElS^8cPeV#I}yG{$g8jJD)j
+zV&lZ<VsT)Jo5UD371qVm#8@f|)c7G{{H)eA1Jyx{UrWPy#a4>(U)sTR=C+t*YygzZ
+z7Lyye!qU0Dm^_WfU9*;m$+xJQ@6kv2b@PXz&pqK6X$NzsVm9I5H4fU_+QL78170I_
+z%BFpFs*T(7cq~AtweTe2e<qQN>M6oMjk2NrXE8-RftZ{jrsh5_)>O<az+qiDTg)7p
+zLw@X2F)Kf*esx~VdQ2r|a7!_J+gXxe=S9E}iU$j9RmI!})nLB;Nz8TkrQzokF|XGl
+zs^E@_1vmZ$%c>?8RijW_Zm0+<bBO-nF0uF>Rojy$izPj>s6$mxEDfi!A@-M8zS9B5
+z^M%9;c?G8Mhhl}x0jTHo#0u)y@{47~ikCzlCsw{J33FU|v8oRxF&pz0tFC>9@w21&
+zx9bc#6H7(tVCs`rOV4AiK6$KnCXbCwVs)+eU`2|G)nlnI6WoF5M_esd$E3i}>A6_j
+znrzQq>0)j0Q?OCQmGs7UzY-h%P~ZxAAvX5WX!$J_8$U&m{%`O{Y?>KL9(rN1DQ-2i
+z+LguTUrrE-St6`AiOa=*Mc5BVpuA0NnL=}rU&@Fr;eTP?(@$(Y=?SyjbFn>&rV5%n
+ziEwJ2v62Tx!~;jLe(Ul$sjk@lZ43A*d$GsqD~(T>MC1x;9Jexyy-PKkooq8lME$M>
+z^P#<BUkuGepWZ2=8wJt}B#Y=J^J$rw#eRC8UxrT8;2@n^oV|z{=L=PCiHN!H1#_qr
+zhl*3R-)EpW7Lf?euAMl3lPbST)5M8v8lErvO`IG@0_E8aadKTY)wn@KTQ*EBcZ-ux
+z!@*CF60rj*uZt{kYFie}2`j~^7jMb-doRugk=fPywK#kCIDOLRBEBSprrj6ks%<5o
+zqnS82gyeg0A#v`SGi6PiICr-e*!{RXe(fR>L+JyKFC!Aa&wyon32~lLH{xh{ao%=z
+zHB33D#Q7K1sJ#&@&i|<jLyHV?vDG<P(oTzu2NS54?I@DUbcgnr?DNWBp)I*Bl7_g^
+z1YJInbjcmET!={ab%F8wbdkK4Y(tN$B01p<3?+Mu<oBb1c_+msA2M9_4i}g0y<wc#
+zSEP8*&3@#Bu%%8kLOfa_Qa4h?QfaJ6eIEvE(JkUyl`D`9g-%n<8F8&O>HW+_;@Vb?
+zazKE%-j8H@@ulKMQ&0|Y6gNC*V6E^sapUS|a{sD|^zyVC>OB?dJtH8-jTh<L=mVBn
+zC(<9ap%Lf@;&#F3)N*sSiQA=Ug06fkar?RhRQ4osXDCho+8+{k>3LJPQR1!}6%5Bq
+ziMubz@|o2_+}l<GvQ<8D-;YA|x{Y~EdY{L%>f(VZ9V~mCPEJ1DgD)na=>n0_DF9-g
+zm&meAg86Yz@pK<4EPGpycwS;2EI22gPoQ+$@|$?R@CIbfrQ-Rsmo%ypEMC|Z0{gR4
+zyvU?_pzLz-s&)#D+ZT#Aj--&%ON%$Q{*cU3yt(88OV1FU)_*&SH}^=0thguM6<-bc
+zc$;|Nn`*^|cf<#mJ2Z=vEIy2(F|5&*9mL0ZlzvZ~7oWCK5}G$nd>uf^ro$2Ots{lz
+z?iTUwBHbgO?Zo$K45m#}#rL}lU^Y95?>|Uno=g@$*3l_1U=TmHHv<-)6F-tkz)Z~%
+z*>p4W7q7&xjbUJo_k`@PYj4}vP5c>D6yoA`@%Iu1-fm4L29O+ZPA5`wz5G$K8<gGK
+zAD4Vw8jO`DNI8O5zj?8gsW&K)4%2C!GDNCmif4)c=+rtZB2^7_U5R(0bxM<l=ngci
+z6d;W`G?UaYTAFBNz$UBIm!{=@&>FmurpV(kFWe)|FUb!5TuExpNQgDsC#^o-Q048V
+zT^TB#%iorE(P`wbY>{@K`qHe?OPSyP04#_9mHGWbU}<ti=BEi#*<+C`xQ%QHkA~8I
+zA6e$jOUUBGIYe+fS#niNVCiI8%A<%4O!k$fmY$%Q$(GXL7a1)}&d9QjCehfby-xM`
+zy(}Br6Qc7WSvKAq_`XV(t4fyo_F_7<7d2%$Pg07zugh}dsp3lukmZYz@1q9D@(rfb
+ziLNRg)5b&o*(aTxsjf=sB%RXxktO#Z(bkWIl$WeDc@ZE2WhMF#kyuctR`s5&eDpYl
+zqrtLDpGZncN>-Ut5tgC*WK|bZaxW{&s_Ek)YDLPbKPrNmr^;%*6g4*=%Ni@G>Clt5
+z0=OT6X7-iN2Sz{*TO(^Z)7rVPU)Gv?7N)J5tZl1IhRe>ovUay@nll?9>r5{KzR^vm
+z_Ozv}lTEi&Q4d)+sxL%2cj;n%MW?!qbSY1|N5)8(hxGH8N=nz|CYajnk*<fsV7z3N
+zu1{&;rH)b7cNhut%1*MuE)wsXj!Cy$4`Fg0BpaWha5n0%v^Bm)C15FU*>v9@>dTyx
+zO@Go}fQx-(^GYAcr<g07M|#3i?YL}F;0EAQLbiw_PpfTz*|JU?<knTP?TV`4e~Zhu
+zYr2!e-9xthMse}@EuGd1rDgj*SulBCmhFemBkg-bdQ=R9sO%v<PJf1JyQ@uhh!3Xu
+zuy(TJ<S#Hj^_HDV(rUESlAVu)Ln}0via8S1N5)9cnEceP86&&actX<?k+N&ccCcJK
+zCVK?62HSB?_AGt}*4j;F?}qNA@TSY&p`?MUosxatJ_SFsP^W2GjO_d0Sg1dTW#6nD
+zuokxMk-CjpVXYiM4h@s}<$$|(wBf*4dhez`<Xc@1N}vdxTtbfUjE6*PIf6_>QMQ#F
+zL6eo5VTT-9<OJ0_1LddyGU;}Xl%vj4)*tpwj($rOUB*;7)}P|%jAwFeP9y5uypZD-
+z+QIbkyc~C;F%7=O%$MUXjfE)MR8FY53Yhp+PFQk|bjngWvCKR0Mb2_k^AxZ~#pI;v
+zcffj_mXjM@rZPVU?cV)<U3rY0}sWWNnCE&C`Z2c(gMG+9o*e4Of@bm>boi<V|f
+zrC-7!nwoDU{l{n0C6RK<fIk>&nU*T2jNU<|VQD$7J}sY$W8}0B2g%tfAg6gpQ`a?2
+zPXEsi#!x>wBZihA2FMvls006Gjhu0m>YL5K<jm3$Fzxq}Gut(Td2=N>^S_%gJw734
+zjR=9bloqn3fxWFuZ5gnH5=N`vGVsEBST3w3Qg8CYdl`6#0)Hico$5mkIX|#B)Q9bI
+z{_gG6>?kAWf2jd!=r0!p_5lC5UoJ>&MEff~$_0N(J{5eTQ=W8}3zySwzLL%5!fXC8
+zwrwGU>L$=`zGNA6<1hNjN9$$KgLV{`-pHV*UtzjjRW2?SOm$a(xp*O+;KN3_I3@y^
+z(_5$dvPmxf=11df#bmHvkowBtF*FA2nIVIBa%iUx$Yq6k0!vngtY~O&t5I1le-lcl
+z!A`Ew=78PYsZ%U#E>~>%10#DVSNx>U-#A6C+CX>wkI8b?ugMVGJLr_vD#?(}WEW|d
+zWyritiX6jb$OUq3UR0H#r2?V4&yb<jDc!s_%TVfGS!-G4YIllidotzf6+W<uvTx+-
+zwe$;DYREMo+5yIY<yvk>cFza7_J)GF*d)2mgLW78&(O*0kJ2fE7V4A>E9g`wI_os~
+z4b*9#VbN(__@7)iECHfz3Aw&}8M2Kg$o1n_!#r-7+%SU%n1t7ExpCDOn7_4_n`j1}
+z@oc$irVE4!l3{fcVOn!ohSl?-zT00J*7z%}<ufv@1!cOn_hnedFK96p<d$DP)Zi;C
+zw@vk-u5uThram5Wd#E!kA8X2RJ{i`sPi1(iG+2i;m*LH)!dS~Fca*SE7kQAI+(E{+
+zMHQ4g>y`jVVY##MaT>MUCwGQ<L-<~mJ6{#2JM^>M`Hh5c)30(D&4-Bzm*t+y@8}Z!
+zEBDr>OLSqp+#9rmb^~0Ld*exb{nK7XRha|PaH5Q=N^dMHLZ`fcPN!*`vy8IUAaB9x
+zhK$N(&(V1dYpjzaERXx2=oI@K>XePb^BBSM7~4^&nlUhs!Si(*YE98;^4qM_oaCz0
+zT70;S>P}5zwM*Kf_6`8sHB;u&9Cw9C+YRc@lhN(F(<KR%(b>~s;5TISUuT#bc9HwL
+zUL&KekvwphqSCz%^3YzIKWN=V9^toODfv_$-TImKfi9EBWHiP9BJ$Yvx-ff<l*fN(
+zz*;g*o(yaTHur;!t$GE9I>IJn=~T;Selj+gdZkmn<tdHEa{g|Rrw&!27mko|@Py%@
+zgN$>a>MW~*jN40@?Dz+H+Kp1|E+2V%Zg<*vc9JG`edrC0lxJGg;@r1Lo{9KLefMSZ
+zY)oNTqMFHg63mueJ!Jg&MGzmH<hg_7ZA`Jb%5!JtKpogC6B^Mq&q|gFUS(mb>?0FG
+z$+IjlP$oQ}QX$~DOn6BzSS&~;MtQ;fF<PGY>_}VdeC7Go6!#nZ$qRl?kX`4?qz<8A
+zTTaR(a&5)Q?J_C1W^uYMlba0!KYmpv`_t;Ge^6dZ4TWYaJy~A1r)tg7C@&YgPCGy7
+zaUzv@p9{$=H_1Fnjg(iutOD!STV6FZhsl4Xyh@uB&0j{!t2>{<9QKb+Yv@#Y^;jT1
+zpC(fq#ghyjBU8K5bp3aOPR)=hQ-}P4=|dZNErSwP^%Xj8#$VTETG31>j~?<SqxjTp
+zl)P!A0e~Xc<W1VBVCq~>rdNxHwbW;s9zX%;av_=iO46?3ZSuAqRp7fddArGInhgt;
+zx96{>iRx1Fb^>j)vM(d=){Ld$6{EZxOd_JZQQmjTf}HwD-tR+~DF002Ia1E~_sR#k
+zr*iyw`S2$-{xT=Zj503Z|E`i5<){d1Jwj%DK1`MO4VgKGK}2lODXT4znH#CDz1~A+
+zMxTYD`+NCh&|%sQ6f2*Zo4|BCTRtnf8sfW<&oaMLZB#=(hc{U4Ci$GUEs2;Dxpal0
+z(MkE@B)#*g6Xc8M^iIcrlP|~m(hPWvPR%}CzFb`ba?n8ex|T)~J3ORIGkaTHUHSU=
+z7m{<UbsFa0l5e}-g!%0_`F0p7<tYv2yI@M`(VOJE=X8SZCd>Dcap0zz^8Ke+$gl(Q
+z<FCh%<IM774k>VREBUDq{k}u6{50Ab>{uoFrSpEMWvTM(D7uHQjFDgG`9U5UA-`24
+z!{5BvN;`%3)AY*<`TfdhnCE-R@9E7T14qj5G^!yCljILCQr7J!$R9&UZ@Q0^KOQ83
+z-Kj5sWOsy!OP1NYNjQhQ$)9_um^<w#e?BLjxwoavX+!mPw^lMIzz62yBjoSe<ma{T
+zB>(hUKzo8rxg`CWn4&+Sm1!#f&X`I?UYx=fsu@n4R`~D`Y}s{%ZxdijE2og{2TRa!
+z#Xz}t*dWE`JRvO+q`2h}ECoj?F`G&yhcG3UyO5yPlsH2Tg4>;xq<fufAC;Ol16su#
+z;vw4dQd_BWw&gH(O;v_gonWn3P#J#sQWdyP8CQ_+Ui_^x{@O+!%q3;sNuOM6qO?K+
+zT51cWEsCYxNn4Z_MGiv6T}nGb{kG}flw}E}nxMAI60-+}cjuJl#CPi1)=^d~t^U3x
+zRKBx?VV*EV*)=!|Yl#=i&em=`*yonYZZx?>{JP4&k3PYGAeH|Ssf;;WRe}2sur`{d
+z3RWNo@r+d!boQi0u~8K~NCB}QJwEmbvgkZj@DeHR|E{P)z5Qv6@mN*(SqN=kNK-|6
+zh0rJ7sERxo1yMLf6{S>T4L+fY(w++D*;v_f4@@^7tD;e)3kyXm`=k``UISFI$7D%d
+zYNkrm%THN0UX^G;>TLH6RU(vR-|cKw;y%T@N{3a+>V7cqucJzOQ?>TKsVej4CRj0l
+zopOIcRdzT1-5E<&xw~5-YR*;VzSv-JlB(PfPw@0XHmd9j!1#WED(^>k`Ib~weuguw
+zOFF6wTeF}Qtfd_H(M|KuY~}R*3;6F4Rk3tsn6jm+7+MdeJ)2eK^E6B1?Wn4rodcTM
+zR#k7189eyDs>Y(h7MD}i{K?7aHcM4oP>}|>&8qq`2XKF`YILT+T*tOT)oe^YcwMWi
+zc{2n?ze}oCx8>A*3Q)C{QkJGmQ9F4Jv_=M1*O6Y}$`@64Mo%cG9;)sWjRNchRd0P9
+zRGaUr-ZuJPf`I|bWj3`;r<s(?`rH?Os9d)l2J8G;xxVW`1@U<0nnQ(j<z1@&itA+f
+z85gPg_o=Vea;s|Ck9M%NZlD@Q(k`EyWmLmV8pQl{PBofS7ltf*)i~x9?N<oZsd>y)
+zO^y|Yp;-&nH21q8hLqLGT4t!GYqvxF<f^%sJEf4KI!(!4Rr3?%VETKj7X5cnMZQzD
+z*mIZ+zvBH>OBd1~hhC{x2Pv`^Dy`g)k>ajCNx7e(>S@Vu)jEr=Rjn_oEltnh4piH#
+z)OETmbgI*JbQ&G%>(u(kskW&!WAf#^YWIs)*U^iree42SB@dJb?Ss<%QdQ?;X2{`d
+zRhQ{4NV)AEpt{U@MS&+ob!~VYyx%U>b?*tX7^bU#w0E=*y|L=y?@p5PwCXue0Vl>1
+zX+r9TMfGwCq)1p<^%`3b=I*6buaH@EYHR7#g4|V~e%oL<<fQt1zXK!sDlbb4St5g#
+zUUWHDQT=+_PQ&!Ro$B9y81=^%>a>>Gq6XbafyKAE8ocQ+%z+KnV44MCqNW<+Oo3_W
+zKWfORKQt1NrH1?>`+LY=H8f`+O!0r!us-u?M=V#vj=h7hw$*8LYp8~&AENOcrPFkF
+zl^Xt*Or=I0)CgNXnjm;`UX5rLO@oM2)W{~(9X_*5ry;Yx8o9IwrHt}wWYS@pfPAh~
+zSRUw<jd$ua-72j{Ey|!>f<uUz#8X6CJ>N<apAh}k=&C*G@0!%;$-{tTPc`}hDYr_;
+zlx>V7#qyc0)L7*Px$%)2+b>r_mR4g&&~iy`pi>K*rN(aXrpLq8*#8n>^^$5_%}8pI
+zFg1Q)16UiZQWJv6)`}RVQ`^2nO}Nk(a>yYysV2Sgf_2rTi#=iSDyk;0h=+EpvYH&}
+zPNS%AY-(~0t?$nB)#P*<O?VQdCg*s<(qOCd3nRIox?K4^reu;@O8NgKHGj=hO<9sa
+zSuRpdiQ5C!$A@^Fcuh?!xqv1kKd5PwbHJZmR@2MTvQC+&rgx5p(W{Y~KAd(J{hF_)
+zf2K43^^Tfx%>@RlZGf6NIviS3yqeX%C``r6=h35rnl)lBeJ#WxH7hz-`YlznYf%XP
+z++EG-UKFgYy_(ab4VY^_Wjp%?YQQ`dP>v?5nv7Nfu>mkSep7P`K80!KUp2Q|VM;z7
+z)ZFy~?1`679-5X%+pBl_fz{4e&AnR<=GR#&u#Fqk-JNQ_<_l|`GHO9t3cacI)Iu5w
+zH2ic@3!lCLOHEdbUQ=8c5u$?X&<CjRr-C{T053?7iB_|n3hF)wtkiB5w3o78TD%I1
+zp{=<$XQ;*HJ*jXWq!u?Zz-DP@uNHr!bz1C$3N~d!6%}g968eETZfeOIS``Css3lve
+zFuM0aE!jDruJL-ED)?I-6Wn#0?n0+_KSC|p>k9L$8fwWU65IK#YH1bft;PkbrEMwj
+zyy>f!=6(r7A$oqyeEPDCy`H%TFm^tomaeA|dplMwjdFqZehSeQrVRzu(#NeKKHb-8
+zy1!nh_UWNoHaZU0!7gffJ`x_KYN_RoqG1|UM6H}gLu$s8YL#&h*pLru)&1o#w+&Vy
+zH=n{1v0a7kAcZt-n+kno+W>Rf-YWD{B6))`YBehgv1GbhgK*lzR$Hy{{tRAhy;_^E
+zDH;Ba)Y^@=XdiY>wf-ZiZoWrtSP}<|p@Q0QjUr;sK%Kn!d9^W!MDxv!I!*3Rby`gI
+z)W%?1MK|gHiE8f^wb4cgmZG)wC#+6g^XR!pZK@tYGZ?4TCf_;WnRV5s6}cg|kxq5-
+zwoc=yn`+ZTCmN<7sWxY}0?#O@Hvc3=)Zu&{JHAk1JOiwyj|yx3fd&iGR9M0fXp=vw
+zu)C2k->Ic+TV5^#KQu&b2UYF0uc`3YWaF&fr6M9|dEJXw5!dQbq}!_^KAix2J5udf
+zPsyoHq}o|~C=I8&sGYfPbY?T1mVYj&ozLFE@bI15<@}Hu2tU=Xp48Y|@2Pf;BKxP_
+z3!Ut)uTJCa0XDVk#%1aT&sV!%uZ8L4WVO3Ey|Y`z)$YngAdiIUR6lO&G#y&6b|0fo
+z<m|<2_fyJ_wT0SqowgGs{8oEz<#weU)t(>4C{A2akqb27^;{LXcr^L&PAW2(JjZ?&
+zR3!OZn0;6$zhm2?A6WX$Q+r1qhGnpy+8Zj#MLn$co{5HaZdDb<C>b>lRr^lF!8kua
+zMQiIw{ts5s0d`<(?y3FBUmy^q_J1q`zSCdDRCESAw@k&1|4Ey8GE|IzL5Rf;Dkkz2
+zEIun#%)ww1u_hwDAzM&Gbzt8^ibNaK!HkyF@+hGW?V}nrvZgwekOn?>ojOt?ncmP8
+zb>v}1n4a}fNB&S6_03dA7mtT&b7ysozCZvCHml=RHS#L!s*@d-Q+;z&#nx{G*079<
+zb$bdP@l2;>qNZZIQhN4Ws?*V!6Ru)INmMqDQL#C>)?cPN<@Ao6^g-$r?Paq>ObL14
+z!QS>hSjA1E`e|tco$}-%ooeaGJjN`@<H_}TywXLd`Lso+)z?SGP4xh3dZ^P;%fTo9
+zRcDsa9=}U7)R|M+;KE<Ucc91TlT`fF!_>Tbug+yr9cFhyC2SZ<bxMY_N_f8myhN-@
+zES>~jrJPFaw1Y-U`>DiNw3oJYy1FpjmsI*Rbs?xI%mps03o#TvwvAL5BU?iYnV^#B
+z+oUYf8&q;Bx`o<>s^s=5Fs&V-E>$Co>qQlHIfn|zh_&j9M;6Ro9n_UiKWHm`ZFS}Q
+zSo*e~3u9CY&2Sinb4dP9_O?<1>S`2agrb9WT9SULR9Cv9?v5(8;SZ>odn$EDN!pa;
+zs#1SA!<hL{rMVaZpI169ho0%QR$Z&o&QqDQ`nbATn_l<+V0Dw^jOqOqbu)rGK#m7g
+z`hnRn%xI-<^`={Xbhx?|=|IA*%mj5mgk;6hR_akc$_$HVsYk_Wv31kbqt%HpmkC#o
+zXVESC=CykKjO=r{M?L<N8!e($hKX$VM?Y0Yl!C#wNM(GWxrX+>DyzyCn0tq+tQMfK
+z7O9?e@rHTm8TI5K%|(4$qMn?g@}-4?dh+KcO=?v;tDb6c^hFu3)U&(vr9d)6y||i9
+z+ZtA@7jORn8~xNvEgowBarKg#J-llH^|Bld#{_LsuUb;ni9M>`a2f+L9#wA#u7XVZ
+zrrs5xH~hT2de^))naE7N4}1vRTdF?L)?QIDMSUz32E#vD>Z70S1ML|)PX{!guvrm5
+z5nB^K69b8)?l;G)Phmr0KG;}&;iL-QwpCwV+L7D+Kz;QjQ}PlGm5-pgq-n#|H**Er
+zvR7GsznB2y%}?q_F$&P!tbU9c2IiZpe#BD{=*?92k%!>3<5jlpA>CtTeyg9OeaSxg
+zqJ9QM181tMpU>T)jnvey`Hg6c%`uhpf=bZuj_P;rss6Y^{V5+t(c+Z>6=<zF-8EoL
+zNmzPiQzll>!cQ9zMM=Gmw}JJpM)OSH4Ez+;TgAf+D&ZEjp1lp~C+$z0lVz}(Y8;?%
+zh1+E?xl!FTGs0l5PFq)6&M=sVb%({n(O`b>3(MC}2CeIR+ScG<(56yHs7QuE3#A-8
+z%+Fx0d4opDx*76?jDX0$&tO-_h3@Uk2D{eLU<+y(>~hDV)2<uxdqqPy2t$Di^hSI3
+zFccWRmgcZO+6)EP(1x{IzJ@|OIA!y8hQf)>VAxg3P?UUXCZ-#TZt6iBQL7q?CQ$h5
+zdB<RHpv(|<#ZWSilJks6Ln*sq|6}PY1ESix=$<<F6sRC}qNo_yt%!jwc3~@6Pcg7-
+zR4h<2uoK0=!oUs`0b300z<zdO>(g&}{eG>XhPn5gvtzBj_a(XZ63gA@DoQ_(n#iwj
+zWO)OV$#Om3L|bGdR^ZPa3XEd~w)>DnHDU!bt;ft2XDIW8GC}ntnCFRn#1>hZ=g%5M
+znP#y<xmQ4AKE(<huS;S;94qu54FByQR=DQ`<WUn@;b7on#R`A%Bfe!F^GZr3YmULJ
+zXe|V6Pph+H3(<*E-o{GUJ;~^MhLtFbW1ejuE3wN)_G437i3cH&PL`BlC84HU@|9zy
+z;&7!2c2;T!)~drxRyyE3Mk&2zWj5p36|c(59JP^3J_{^_hP1-0Owv{2-TYXY+rH$;
+zsaSb`2#S^|tYSMaQbqQ%ir1q+SpQ&^78N3U#Udv1?NeFh)vjdpnaZj(dP7c2`e;_Q
+z4hW@f2CGp!AK8Z0Vl}ITKx1yie7hpdSTl?Hg2iA@9<W+FTawipVxsuhllfIblD_XL
+z^Q)hM5Awo9@x2H0n+=hv_B>X*2c(D0@vLr7&>ODltnNgpRke!&Z;@D@iPcSXM;2e8
+zH1m&(gn{Y9>aRjv6g-PHu)HUo`5J3b%z+HBCTrl=7EM0+S%Zg&vud4T4L+e$w#8i5
+z@M;LD5?fiLRD`C(XR}6^dyzG9D{FkABQ%XNtVuQqg#+HPCb_W*Z`EK;?m;Xc(u*~D
+z;ZNdK7uK|-6Ta__D{I<s4%x$Vv1Zx2fkv&$n$;?dKJdq^*;rVr4g*=U-TNQ{g|mQF
+zbCF5zWzDk}B-_7%Ku_RN*1TLi*-uVpEo{3<&Rot~&Q2oh#u2R5lTa+(P}bT$1!A*i
+ztwHUJ8n;>NF&U)pW@c@iE9#N8n=flS)0G@i4_MpBspKfriM8V?#OGyW?SEp|Hv7do
+zfXUY7=dlitca#0@aTEEA_AGE5BFo>c+22(3I14=46E=4f3q0$N&RKsG#qM7~-16P0
+zSSLiLeB@cyDI%TZ%cjiPX%^_yt_J&qtWZVPxm73`^?X_9zMz_{ajf%~+GHulSeIgf
+zBuAWMUAp`UWgD@s`$v=G#$nd=?HZyTzN}j*c;)hCShp4+eEwT(qBZvy);*6Kyl`ID
+zy#Y4s)s?J!w^U41IKjG~NA=$4FemF_fQ}URSkD@{(M>eML@@w(1Y+@#8?0AO8)$~M
+ztXJ+oXg5*k{l$7!2qoF)01NI_k*LpQ*1LTw*~WEdy(6#$^n>-u<Vw8c1J-BJbFxj}
+z$@)YCEBXG#n*CYdYB0fjb3S5yzdeG270dcn2HUqSg7uq%O>!%9)b`fdoF7WCf!Sf=
+z4?JLl8|8!IiJ4rJ@wwWxWJ6D!!5;Etp_Gpt!)vh6-S9adva`_dNHU_Yu;D8<ldQO%
+z4L^!3CTnpvq6$*$tp(Z0N(;ym-H(m>Y$w~#bT($3C$R}GYz%tl#hZ0(3>bPD^&cCH
+zYDA~)zMJ{Nv2)~KOsxACFN`*k_h@0FTr|c+J-j{}=Mg|gv7>CfOBl3>rfj@7l)KaQ
+z*my{|w)@lA1ZR7QDm$37@;Bn!{FpN&l`KmQ=3I)Ed=t-{FA)2`j${)<m!XcT_hdG4
+zei&v%He-`dUc#)nwJhx5II{SSU}5Jm_^#G^7IqIsJAPBx)Zi2nX(?=4b|12|xX7lp
+zcO|;NlTG_sp6E#{HhrQGsePer`it76rk`Ll3P6Q#V`rvfIkCEl>PIpQzdH<j_dbiL
+z?rcNG&~q%JlPg&}=VcLKoE`1Dvxw-0MAwV6h*OVIANi2YN=1ab^q`4i#ZfjJ)xv5-
+z2Ae%899Mjd&E9<wl@<NjoH=#TWVF&m``NB08ja4HC|^uwbB^JCJ&UlppI{Y+Ca@@H
+zvnwR?3l{YrYn#@CEkqrFDD;UfM1iO1c%Lo2mPGPY9k%c}T*%L(Y*9l*hROATk4O)3
+zutiP#<Mbx8MSauBu{Xg)6?%a!8i4P&Xu%ezA?6>_fGznji|nmq*wWc>F;73U<^Mt5
+zsa2IZSLFN%rYSpHQ3ypRZll?Xp^4;J7SC4t|02ug%53F>OJsc#ZX$Ob%~pQ<fKyw6
+zt!jpW8gCl0RcZT3j?BtdW$YvC$uJWg>uR!SuPtP|Ih#dq@qspR%0zjj4vXH7E6;O}
+z#fUJnWsP#OnEQx12OVJRx<eIToQG`?A!KZL&o)$_j>#MC|Kk1zfAQSqzj)=MiE48%
+zw&B_W$l%vlY}>2EyvMTGsE)*)=U8m47dh^4VViQp<#bA7oBAOs$+CiN8dRTb4O7{s
+z(0;@>J14SD(^H6^XJ(skp{yrwZMFp!W0vW&O=L6Hn8;^NW!vWBPHi~Nw#B2G@ZDJ!
+zx9SavB}dryoQPKvMw!SHz1gmH@WR0j*j^_L@A7RX$|vz`?@R>Mo_pB7>u|PLPqF<Y
+z;bNS_Z?gm3myE~2h5Ja<ZqE)Z_aWQ7?Cd}W>ITl#X9uUl$3!+^haN8_OYk#xI1fI+
+z;&^uWIrhe#0_@1C?8G}9V8`l3kleM3CEh_W?30-tANhuC*_*TE-XX*Wo?*$T)wSu&
+zCK_d(EX8FHIjy@|u@ql7vZlRZDM$K~*w>Ps%z>PK^A&b-<vLR3;@O!F*rdM-voo8@
+zllFYbOertVPj=qlAQsqxo!^LXqP8bXb@L!&U?X;E3Fw#I-X=P5=l*={IIxpl&I>!x
+zpf5|SSOH6MpQXilW1>f=$}H_(92ue?yE@}BT*N=@8V1|i_H1L<0#Ssrp#l4&z!|gL
+z*>yWk#l~^$W&l{uPTASbyVc2-xR0gJctiYiFP0v)6+ME#+5P6&OD9IK2S2x9bWk4l
+zFwZ2|jY;g`rd}w<d~6~=yqZ0-JK<w44P}ppA|XpXVxp{Dggx%M6)|fddr~$Tq(fQu
+zuNz|5osHSQFD{X7))@A@+#W=1PucUDg0x2vd!7<Qa@A}0a?@0@Wh=v8m8?sK_ayeJ
+zHEQu@MX=YHe_}ft#oh!~CE-$vz0HeL@v%00?{qF8Ic@^W`0)`9rY`JL^k!0nrn1i^
+zBZ(Dpu<y+$Bjn4&zJFg&j$-fFe`8{x)aPTrszM(5ClmX%voRV=s~NUpX=HU>Y1rZo
+zvZh`zk#{a&*jpiFe0$Ddui~J{mobcKWyl^n-+-n?mibE!r&I`J0v{NE(6T(iM90lI
+z6Zynne=+X3At4Mot{ydHR~V23gG_YHaRoNU*VRlEAKDtS$7w`*9}KlFj^z6yhHD9s
+zlluaIlYu)8SO03H{^@OG&Rvm=YTulO+gl94$~E3_{}@k}$SA}8mqvI$+Q?e_5oR1T
+zFg&i*MQ-}j$TkGOch}3vc4-=d-*h8;jYb$V^WMmQ9twRrYC4hfsfN<Xi5?u?wXTsT
+zI+CnWo<`oOZ$M1#H40de^B&J<6wF~k%|Z*K;E7daALPtscs_<4QtO#fC~PVT$6BNC
+z+g{i_nT;YP;z0oSFpBKLaO4tgjiQyIS5Ka16!k|iy*0a0baFa6%3O_NiCxh-HqI#a
+zQ$h=@V0aTs;=h$J(R%iTiAFhJqeREiV6=}IC6eF3zML~kb;1%j69NpM7_9l%xkj1o
+z2=m<|jdHeMWG!GA<u<?)HuN(plm~NNWRy`c`V6U^{zk<MFHv7|-KZ3jfWYXyQ7IAj
+zgFP@Rr9xP5e#xl3Jb+|kF{4V(DIk#ijXyFC_sM2dD~g0_|3ssj&lChu7maGKvV&Ib
+zo7<>fJPC=)W25?-NHX4BHLBmYp>W6DsImMhS$+&LYPE)+ziu&VUvejTVVF_Z3gIY+
+z=U*&+$f)~x4=ms}qwbe5Vnwf*C=O3G8kB>{tx?Bl^j|!(`g%r_eK1HDFB?tnwSiA@
+zH=0U+2;vWl7)@X1BYRXMBcLC4wX=p1Fy5D}K~|&XCq!VSiWx0`BhtypFj{%XklOyv
+zXf-ejr9ZEYHom*bD0kFoJ1dyjyD+2uq!6;+t7dd~^$FD4ETdz7f0R217#;hzCCm7k
+zM#pFQ$f)RVbo`3aDwhvNU>9c`*~io|0=u0=liel53~~$CH3Ij7#r)-AbZQwujwa8I
+zP77C&yxzy?tOLlJzSHRJhRtRlV05l>91PKEqf1j8x&+*fE(85Y?5${Y&GCpV1G@Z0
+zXM)l7{$>(i97eZgxR8(WMz{3sDC-+*ba!5Rgda39dbD&WjZfAiP?AVlV3>N&q=iP$
+zS~#Ay?;1T9rjm8l6{FWb6_Ey9Hi8DgCxomqg04GA75mo+F3}n(-$f(1MFfdkS&iUh
+zk!0E4!U)blLwZ~fqYnzW#aElrHy@75z%53<3Kd{RE*j2$Jui`E&j7>JV?JLr`hCrc
+zit@51>R|_r{;$#4nP<51kDDKI(NyD~UXkP&RM7YbYsi(u7_br__{(Wyz{lDoTNE({
+zuA7ezvaH6yxHBZX6*mT6Y7dHNqA@tCDrz0B0nzgEXqquJLXtXI+-VG*old&uG9xs9
+zaZug8jbRIWVVAEnhHIRPrt!vzzEd&BGsYM(7^!081;&W^_`RFq#>hWz`awHm<l1Y<
+zX{Q*YY<S}@H;hs15Dkal2Ts9h`e2N%1R?3r6=Q6dDJ0gW8)G-;B%_6kG439;eOKpZ
+zW5Q7{vXRAb-Uvocy2O~Y*p+0n3dZE4ab)Q;!<hU5|FFKd5mo^H+q%%0wy_McYz|}k
+z?+Iji*whG5YDDtBFlIG7M)m_Ojae5KL)oru%ucO9Mt_SD=`o&+Tn&xLs=tV>YimS4
+zD-V6=w=wtY6P*8nBaL~z;cg$g81uV;+{*OUm_H&5+7a>fCA7HKoMFtzczp4*uo0!6
+z6Z>`DScoPZd9InUC=_kVewmC#%MjyPkC^CqP{~-dW+*va>l=$uk0|psH5T2?M2@>-
+zjU`jkNbYqpmfV21t$)W@+Dzj7+ik}3t`Q_=xEL!cW0TBiWvuKRNxWCOv1(W$a=bZd
+ztez5pDQz2!=zM+19+=BmgE2CeO}mV>nP9=Z9vN%VPibG($5=bF71_%^F=Eyw61{6>
+z#N6%$x}cB|^R*z+du42BGo9?aJdKU+;3vLMFg9L}LHs|pqY+#BHtBA4jMy<?=T?<6
+zVkaS!N@!!mnxEXq*jyXVr%8Qd^ESl$--j4mm^+SV2NSIu8klHXU)4lWV~nxoU~y8-
+zt;W`@sl@Ll7+W*)lU*J#;>Lquj$CBK9Zx5<r-!jUhw~~KlfN0;Lz2Kt`T}uo^S(8a
+zVIsqyuldX)#tvUNq1{`J9X;}p^>h<s=d}Z58Ruc_T7$fx>w9B&rMB>9C5_!7xU%pK
+z#_l_fz)SQucE9r>%Z3%ko|Q=Lnp8FR{9(-Ff{Z=S3X^5!b7PMaFZlio#vY`Ie9AQA
+z;4Oc$JzsAe{<9QQZx}~hz9MJcW*ljgNX9?sjf4QSEmeJIBn*Wq9bp&=FEPimmxpom
+z32eVmMq)M}I2kK&3Yson8i@nF$#%J$k-QTE_0{r5N+ncd72IK@q+;_{dTuyV-XP=(
+zX=0pca+g?Vt8u~!N~i5o<3#)dP`HM15^20$ls8V*3?rk}cjI(Z7?e5h|KhRECi0Fu
+zj5Cd(h<g__&gJ|gJPkHdC)>%MxxR6sZF^Lgb}~!~x<)qRGB-%I{$gD28br3wdz{AQ
+zDcHTC6OGHO6Nu-_W~9yP2!DRqxHc3#<j~&6wQyh3bMG5>K6XK%;%3~pz;b0?W85zX
+zjjqT-<H6PJ<mk25c$gh-du(yz;i4;Kk3ViavS1JN|7tusiy$^&s`2FhE|hpbG@hn@
+zL`BR`<LToGWE6EiF`g~JJcj)vjTb#yAzdD0ym$ja`1}Fm^-{bsOyrw$Ao0hoH{M2e
+zCwo#^<6Y6#X!s5^K0I$n_8z&7jD=9fN(LJlF)+p1zZw}k*B~%iZe*m#!Uvo)KDr{5
+z8>EbnPyA8g=Vg3+??u8r%J@_ap`3GZJLA*O9hkQEuZi{p2aV4JzklG6@nu0_QmH45
+z?>DhGq6Qj2Y$z(|dCEjb$C}2^&O?bi8W{hLT!is){>Fb7z{aniWBgtok7k{r#&6^W
+zx=2<|Y(4Sz_qoM=6&cBSxTRQ8venATEq-+{(f9i#ZkgvtRu2zuo%4e%Ztb~k@f%{7
+zW4R-&D;am9x#Qa>6b1F;Ove$MY;e{F6i@d@oNvZs0X~ItnJEh@ua|RqJBA#=Ke_4>
+zj83u!T&1=owM%pDhfSNK7<U;ABDKH{?(*<5=9xd^SuAVe|Bn{oZbf>5#Cpx$T1-W=
+z?QZUdz5sq;8+XUlCR?$4+@m@+;gzx6<Ml$wq<MIb0}Dym7VunSv1dMMo;w1^>`iB$
+zd!E3^!Bad>mUM*S={)bVp{OPI=XrmwBk}zi&tH5#R8tpTAP7FD(NSKIJCV2d4dey4
+zdJr2hpL@DbAV>2W+;gHA$uC!Up<H!IiH*Ea?RuDP_MI2%kwo@Fq1@}FCgKHnkp`Gk
+zcdREb(ylDY%Y}K-vQ?1}JmSTw?E|4%pBGE?B1?}Ee{uLN?p*^i!HI6X_{&J5|4#7|
+z&b%4qxYm}JsDWalS$lbj02r1-hk2>zO%UzA<vy7L!1XjR(cWMg_bEJ&_^9&S=Q=Fm
+zW*1%>4W9O@wRxE(k4cx>!pl~OBWuk>UKUicTu_pi{efD>(o=Z3d#<Es-{$3)B7hm3
+ziI+!=NS!xx=bsm1bSqx|N(^@QDqdloKRLMI6~6T)OTS^fl1nPd7sq+k`dE85gIAsZ
+zm~8#xd9}t^g7u?#wdobmF;UM%`ENsBeF!#h+ZbMx`;gu1F0bhUA2274`?~%DZ&`)=
+zx}{(kNeuTL*AvqV3Ol)<E1d7j)+X|O^|)V)a1uk4x!+b8lzQ8E9Sc%4Y{Gg~a0PRV
+z@Op@ftwUnCf1NO-;dQxxXb@QZ<J^DzFpQ&I!RzP79vHQh*YEoc1jc<{KkhoQdda;0
+z9T2QpznUo1it+|7Ua01G&f|@zoI?p+J>EDRgypF7yh$+xo!JNRCQ%?b4_)9*65t*8
+zU*b)Ye4yRO^QHwpkYnH(-n8jDH0f66&3@e^OZyx=VAm(a53VLkA1@wo5S^rb7xU(s
+z^N}^U5N}Z>6!F6q-tzKrh;gpGRcUN`XVJdAb@32##6K}nd7^cy4>)JfqrCN<k7TWo
+zz+3<LN#rego7(ujjN`mbdu*a_cX^vH2-~N4@wO5lFnk+tM{q_d&v?6u*fZn1@ODdj
+zko9r|uqW^l5KEC(0~iEc$lEu|iv0i87T*3+SE8{6c!#R#WbKp8JG2J3<9(EO=mt_L
+z^at;l+5%lL9eKxeFS6cGGtuUn!aHV!;`{S>Al}Hfsy7c@eG@f6hxp$p`WEk$-Ipu{
+z=kiXwBjG#h@@}_1FqLEy?_T#Q$}CFr?n@mgt7;*654VRH@Ai@R$X^}}mb-bcsM8p*
+zjTj^mB>A2uJa}ge=?d$3pO!c_X(M<a@OO^QnR#FFgqV9*J|HLV$ny?-;H*suwbt;E
+zGVT~PUYLiJ!)Wpe&H3Q6{!q+|^TFXbu1z=bA*~7%>ygBVW^=;e)P2W?j;ce-e+~~d
+z-*7b_wzClE{>*&XFPsM9$47WngR1tLkGR$!$0~)7tb<!V!iSHl5eCJ&4<EfEAE}q|
+ze9YXA<j8Y^kF{cH##HBH*TLkDJ<7)(cmbBbG#}S|B`Wg6`M7t#h(=A}<D7WmxS{!k
+z$$=;$D90znmM0o^+eGGFmrpEs6H>YdpXgnPX!sdEF$zo7I*v~ofxX~v<CDuDAZEM9
+z!&V~GnRS^@dFqYnAv5{ZrfGPebta1L{(SnNd?d=Z=hKhkcy7(gXM`b;$yJj(XRL%&
+zo$CP)-}i;=buOF8(?|30-`+@(`tb;Y#GdH_kAQ%xvR3C27jA(Od1Iou{fp1EM`2FF
+zH()%;t51R7fxGyuZh1h(4CAxz<Ri<`=6rTt{6ihiBOiYv`;o<b&U~2cxjUVF&To)P
+z6<_grodyu)T*spb2IhJe9+l?=sru)5RNYx*sbJ$#>o=jE>l9yD4-MU3oA|;`IRC3=
+z@P&PTk#%JPU-$%~e8L<Pc^$?VFDVE$?j>JRXgkTTMfj3{iZJO@_>u%99&HBmrOhC&
+z1vwR8Is)PHn!9}I(vzef_u<QK!g8(2%a=>6dB8-zBJU)!et*qZ94Jgi;V{0^!;1{x
+zY<%UxIMU5?^Hpp#@!oa#YF-yZm7nm{SHj8C&ETtVU{mvTeDz!S4mpZP*J(gv!#5s1
+z_%X?#K)$Bb8*(^HYQ822&zSMN$=CG8G?0SX_}a<1;syoy+8uFZpB>ECUMdPg;i!pL
+z_f|aSRSmL~-^JHW%pm)_MSR^tJK27W<?Ev-kXqP+Z|GE(jP5=8hJ(0(mdp9Z%Fi&Z
+zC@0_eP#{9;$zvaYdi_|HZ*omWxx(n&d{cCN<oB!jrkCgwF{1dUH%Ps1CG*Wkd_Wcl
+z^DVQp6RT00Z@G>9zV|D>1#e{CJi<iB>Srd3u@_C$*>3W!wv$BJr}M4;IF?Iy@~th=
+z%6_al-)b&ZDZX_EO6>fv@*PcH!2e$>z;|F;w=Mo9-|-7k@2%Z@S5?&F`Htng)*yDg
+z=E36|prLC1MZViLo^*D1zWc!&vet0rdkk#4ZCUxA1_@*g2;+N;ErlLglkfet3#xrH
+zzAyI`lJR5szCTO*dO6=;<~do<cQVoN-NyHSaAqaO*YgAG8ly`2C_l)eK&giEgFEu!
+zKbPPK<8PrrEQufdFObBQ41UOh57@Q<KQtT1==oND=vEdyspSbjJYqFDX1(D@eC^~g
+z-1w3H=uZBQuV<Zt>CMNF%<GB}?iD}s2!ToZJ)TfCnAG|LJi&P-8I$Qc^TZ)&VEp-o
+zANN5bGO-Rn-U$CN_&ra`QVYWg`}3qW9mz7uk0<p&%5^f4Cj|jd<NMJFJYMDCNe@!V
+z?%IVXeYr|{<R+f{Zy4FL4B#of>LTMYc*=X|mn&xD`B`AYw`S)l-?2pAO}H}!&oAJP
+zRs3X8q|^PX@Ka-cAvm1FPcyLE^;Ted)h7}W6Zo0xU5U+#;%E9O5>GGkGqK5J_s_%6
+zBo#*m+-82Z_I~0iUHI9N56HS`1V6`nA>`V~&kczt>&)x?-1I$&33KrCHZ0l6qx`%8
+zZQt;qlb=uNf(Yg#PtApVz1%-MbyFPKJkRh8n;m4`_<>)z`vkJyP!r|Q68z#L2P)g=
+z@=I^}kh&xJWlv19bGq@%Wnhv6_w&np(nww^%F{04itqR0X-`pdTc{Ji^2gA*6y#Tr
+zK0<nbi(frim>ij$oB6d-U?lf=0&kJp{fJ-pz-CJPk6&Mlc0X2|U%v;nUR>fgMj<L*
+z_L|>rKb0((6HK(8yJ4d3)mIZ8bJPA}e9ym_)XhYG^PGwD{CN}gh(i3%F6a)<CyV%<
+z*U0$}wdQyIL&&zopWiFG5YcZge!uibve(VZ9~?#p<c6C3VHvdJp4?!fEWVOIEQc=K
+z6X*ED1&@(dKjn{RH$r9X9R4UB{C}SU{PEN`WH0lGKPk2zOvzOKq$8-=J~e?j1xe3M
+zblMZ|n=cH?Fp;0ZAN1=()?MlR$?~a08FBo{?^hVa#Q48nr=k4};ZLvO_ysKF&w{ZR
+zUiRS6PEH_QCzikXgS9vFmtpgWwXe@#n&0>4uNK9SCC6a?+6qOa`!@di={4-FYWz*H
+z9jMO9K8wH84M?5X#^0sDWLj?V56h9O6}iVhYy{eJ^NgY`$Wk_tXKcfKNO6W|r0*t2
+z>;V3e)<N5`^3Ug?2Q=EjzkbBzyGwWYH;gEzS7-S5F^AClINL<~!MFVT{&=$Y>c@Y$
+zU{kw3;XemE5k7a7{J(6-Tz=j*kvBNTe_<McaOUK{zQR3w`3s9Xh=e{}gr#Hw@C5^e
+ztxzD!fl3M+_K3a5N@33kAhl(OV5rET*2PV<o@;8NJkv)QKDqEvhK(SJLO|bD5xgVf
+zj^-nTaLxp$GjY8T=iSi@nnfrV1P;f>2o+VH96L*yC`aWIx&oX_$YbGxT79EvH<9@$
+zLazqPMV5mw(O;ekx4Vll(B*~5y0#G>rjQ~$PM^fIu&N^46-2{_rN|Mw3QKTE<d}yG
+zOY{>to+AKRIT+ViCyqEoi9E%pfP`8q@*XZoI_m+E&$)$cw~vSd-Mf-Kwzw!**&n0n
+z5=FrvB%{fXMWK}lCigTDUO!w>b#qP>wWG#AQ%_OU_=Agucb_&Wr@kOczD2N!zNtUx
+zh-qk|EbS?L;`V^(ba4uwC$;ftj~SwLwoPOiJxY}BoR1ubyhZ876OdsAi!z<Fpi-lQ
+zD0k{J*=KbY<(Gkq&7B}Bc)LPcc_J!|b&w^no2a-Xgm|?^qSC2Qr0p$5<x`;BrZpB-
+zo?~eSWfxVSr4l>VP}FeUNtTx7MGd#c(1@L(!nX@XSBx4je8<I+HSaaydl0v<%QR7I
+z7Lv`_k)qbNY9yi}h2J{t`a*+5{SFSOSwhqg$^-+{O*HKIfpiHM(YU~5^p+z8c+iHd
+z$=;$FyqzVs@?ZSqVxo2DV-p?G&rD>_vY*Ts;_Ouub(UMA8CWW{=86dD`;P2EuA=47
+z7g*~qqE$A~Y>m%~)_4>c6&WwuH1Z+a@*vT6pM_MFcB1WBAL7kRigpztx82Vz+FzPL
+z_JtlIuuCR*&!NH$%e?|cr^CCTs_hk>+tfudm(DFZ$34eXkB_1Y+^J(}x{31KE+AsL
+za}z|@(O1bn<E-c!hD|xI&|i$-YNEU}QgrLq7R4_&MR$f-p*M4j9*NkT>4QYi;s{O$
+zRuH|Wz|xh<B!XJPyY?9_g7)|lyB05kdvwJdrLm7haL83uSj-i{NH8qdwus(|I9@G0
+zMDH74h*!ub`iz1_Z0IHW+`}8+FE098kWjp;Df(7|Tm6|;^c@pPGA%>&edG)B`l^Yt
+zaCOnoqdn;f$3(xamC<0^MD#C%P5IIy`tPhla(oN%&r2uHb&0!TK&Fml6m*J#oe}x8
+z%O*miHlvwnt_b-sfo%2Wh(Uq5u!&BI!3CzFRd}@+auuZ{FY1b+o@p4(nO}qkT1oA=
+zDTWtC!DhXCV#Le^C;-h6WBb7i)@mch7ekfL{mWwf-T?GAMvIAMvg3|i5fhzbQ^*>3
+zKum=4DSH<alPkND_3L~wITYdX5+4y(b_#a;SP|B;4x-l*BJ9>$vUm6*rsTjIM@EP#
+zn->%RkBO;GuA`jV)kOKbm6#gbkBpfQ#ng|`dRR6wZTVFaMk6upF^X<-mlxBX{K4bG
+zIek(YayX`o@Ukdw%QiuT5A8+lTMH2phJj3Lr-+%YlaQWg6*C9jBkQ53V&?QKWLrN_
+z%uI*V+3z$_IFrOIafK|CohGs_+f3w*W{O!Q<46=eE@nl95H(pKA}>NUTaX~;JV_#@
+zuR6ut{-DoSZ58u2j6}OshM1Qz1abLTG4E?<vd*t+BJUa_=KTj<uu77c-#L`TmNFu$
+z98$LQeIlwgmY{aHh{7|v94)Vjs4p#uX15lLW})#_bQFsgVKmO(HzxA<8)DJrLS)-M
+z&_sUNSxzi^eul)bL1J-!5DogJSc0{2bSNm6tYl>A_2w^*JSUdKts-jsSS$_kAvX25
+zSh^xJseh{g%aD40RxG<-f#{K+SpF}lmnJL4%BMF`C|OagPR8!{v5Pf1i<79=8HkxW
+z_0q(e2?+h1hj*JV#3ygD*0(3An<K>9H^az&d8t_YGnHsbRuRMPsK}aZqPhkwj8JU%
+zQW0|=VRfDkV%@8$q&sa8>+yT)h5#bCyx}j_C!@u<QiNEa3ImofNNgSl$#qbm*!&2a
+zdTK?nwb3>VHgUf$w)KNI^5`kzcGyT4CJ}e^6R6V#V#lAQSsNsF;*A|!y8^3`3Th1u
+zCH|<bi7IHW*a@M5z5FD0O}d7@j~KCQUoZ3qei89kq5Y~{BK{`W?gtrS_bse>#ouE0
+zhX8U+uPpXt$qfB}Zm8I^dNf%!<`(-mKuo^+#YB~(o;VP<fGku(94z&otj@{eU~d~a
+zZe|q+odG1>Gl_%Y31s~|N*uhsiu8g*;^2MckX_tNv{YIn4sBRP)(fS@;R0CFj`PKl
+zjlm@SJj5~kb+Yc<B#wDI!S`oz5s9V#kU^J4B0?s|(0$_gfq}$I6cWe(2npp#BsK0%
+zmb$$~Qir-E?`;!Fzn_xaWE08R{~^1}QjuIM7uh?F7s<`$K<U^flH1M4lGQMgyH*y-
+z&+rdp_lOjYkgS_sq}22xLfnwz#0#T91(DL?k3m@R7soC)(dLpSQg#G`^KECM{I*M+
+zJc*Iq$&19P(HX>QC5uyVN;Z2*aq0s&qc2jN2}0I<`KUM(9YZo9QJgCqOxpXhIQOIj
+z$z##te78iht%>`KAVr<$`#?B6XBFpBf2?Ya6RF6x_}DmcAvc=-_U958T2&-R;%RZw
+zD+tZfZsOANwj^_<iOc%~$mmf{q*eZiTCPhX?QCmIb7*g(ZB~YfI{PVc<xh3)>K7*3
+z8~BN<VHg1Aw?bTxL<rWon^W9OxJeX0U);R2oNU|XiQB9>SzI=W+bIyA<}?y_Jl{aa
+zvx&Qzp?pqjC+=Q{i7qu!q*EFU)ozhqI0*$y9wr)JYm4+^m>%>Xz(nI~go*s=FyK^B
+zw39{poeE^xvRvF7jvR4t*=FKibP5!YM&drI^VHzY;y$!r+qo9vK{l}8|6LRhU$r6o
+zMQ`!w>IAY3bd4%KHk&gnQ9Nt&ldM~Yo5(yGn<&CQi)YZV_}(<}43D|8UWpSg8X_jh
+zwN1Q?N=8!sQ@lKiL@3?YMEU!sc=>!GiC=-@wMHNnl`39W4?{s!l6ZZg7pi^Qh&SG!
+zKnZpiZ*F3&#p($0_7Q4ol~*zG{^>TzgL%Y<X1~Z7*HdIzLHT%o6d$v}?RS2T*7(N6
+zmvj}MhJsQmdslpxabzr8B0dj*6D(X>e4aZ2bq+Vh7q2L?=i4Q|?gE+i{jK=6IEloK
+zVDTen0omW)7eBMQkWvlA&qtv|RX&RUB5%QK^DE+4;r=k3*Tk>b!XU}Ji(fY)iC4TN
+zes@nH%MqKTVg<>5u%x7(6+s=NI$}41?ZldrUQa=es--103#lW8q%|*2v1eIn?F-l9
+zQcGGtpj2dTNfYrDR_RzhoE&VYbgaRJ&Uh~!-<|1XYqw7tcv!3DW~3Bwp4Mo06Xm}L
+zrAY7~$GZQdj4uyu`za8q;E_>MeqBk9RvA*YvXPk9MXKdHp!Q9b>Rv%SA}v*FTTyfy
+zjFv71-ALxxDP4-7RzFvM>C!fhEMe_s=Ftd0j&71!oV|lktXouOxwV^Q#5bAc$7yn$
+z%r4zxV1W;XN)LrK+;diD+d6?*fuk}<Ic%L=g=8-GLZr&qlDWF4lMzu$=5Cuz%rB?R
+zy(uU9P9?(H1hPL&lzARu>jmzV`O8Pa9CeZTPoXFI>mpeIlW#38CrGEKM>rl?(ocGx
+zZ%xcnOcoNTuU@%F7IMBKzCBHPeZ*<K)>#(Wloh(g6j|gyq>^uj%A!6#aE94s(VzLq
+z$kIU;tA;S+=PwhjIfG@f)9{5+7o>MBRP&{dF_CvFExj9pf@;0uFNTbA%Hq`@p_@8V
+zmI%8_@{PMJ>9(H4{IRn1x`m|D#>mnKQ_1nlDa)W^*V3ZCEE`-8L&(a?a_!=Xbtoar
+zKfwj8$}KBCfY=riA}g(pBb9JoR*sGU1Jqeo?L3RD{;9J1Z#c;zpJj~@xTpdJWsS+X
+zz>_#f$Qt)j$@qF!)&vovZWfX?;|h{7WT32>2Av@(r}Vut5iI*L>H8romS(@K75D@_
+zK_5(X9RBndQzx1z&NMJl4=X8ab%L2#vRu}>zMA;-64I|eYU8%Vm?);4m9?kGz-sF2
+zvVQBqq)s)E4d&h<E4wWl{F@&Q9NT0AO#a}OXR=XMP{G+B%0{sXh&6A?#-AK8crRrW
+zM^BOyzRD(_;8&uQY?>7Y)gwYS%lr_$#!cB`MJwXi8!aBVlA3x!wh9j+?$uDX+PWBl
+z*kTi%eE$^L#)5&czbDH!enDikoG;sXB82Q2FU>H&ND0}Ahv9)2jbxX~oABVD&a%sG
+z@Ry$xWY;|?hWn6H_9%&F$AkT3kJ@#}vG$_uX<&~uZ!dfLb|q`!xw0ojIIG$xgKA_Y
+z%dguqs3X#h9HV8>;-wfzHnM;W+6v#}I#vcRLAX$^vJ5_syd|WR>|Fqb66%@k9i2>$
+zM)_o)?6n}GyU0FuP#D#CuIw{E3-K9WWuLR4ny8NKO9pE2C(6DpP7#$mCi{N<g8GET
+zCdzas`vpOOy%8z<^*#+HH$e6~<s1g>=&9@vUnIUwlKp>0A*tOX|H;*hMEo!L&+3wR
+zqp$LxCy2)V+sOf)ZlaiOn~7rYBsm~Fic~8f;4M-uzsUiyP;{OQk^^3)!UWq*<i0~>
+zNG1pAc`-7ikPVIZVJ7mukut=IZ-}Xx<RBXi%fb{nxGvfj4)vFV7vVh989DgIQmAnc
+z<&e>Cr1A}tLsqXPW9czDbfXoqYqT8t5vH|hkPNK_@?4#k!;64!OvogMS4A1(ly!3W
+zg7O$n{!I>FmW;V;%jNJyPf`>jM_6oR1cXZG=#q%U`lraz%_Sa9Rz;59fnA^0TaH<_
+z6KvcAIc5{a(_DBj$NY#SyM2co*BXZ7(<?dNEdYfUpXK<h35Y$j%L#V;qwOAY!uJDc
+zFMTH``iGJ(K0;0$gS6z|rgGx!XtEEBkP|l|e;Kl0hC%(e*LFB%*!Yj+hz>SUq}-KL
+z-j+k_NnttlWGJ3hGD=SUo*7}qB{`iT>z>|9PTv_%a(#C>qr_9P9;++E2jTB~w~*m8
+zpMs6AAj7vj#a=RG_;wGnU)w4pN}==&+2<d$x<|=~2FT(I4FU!NoiF7~O9r|m1LVvy
+zAhWj|mNS#OW5}SpoOuzUV$y0kt3Xx^V(TwwC3hu9@p^KOa)5d5B<J+Uc|I~;&imsf
+z182*5br6wZ&dL0`uzc_RWmHk5A0;cxg|HX)8>{5Pkh#QimXnLyCX(D4A{P(zK{I4Z
+zX1Sy!$gWv=<&v@+iU0PNOJ3lEG;Jc6X5LDg21rv*cxIPNH=^F4n2%gm%t98AYjRnO
+zT%@C7@f@kmWT}&1uI$@~jJkc~s+R|0$ezm8v*AteM9b(*6G#p^Dx=HT@qzBj=t_8>
+zfVDEZ9iAL-{JT@GfzPn*`d6+gfSH|lOUX4AZ<6CyfLvR*7zSkIF;N}qCf6RA0(!??
+z#^grQJS9%Xps~x|XS$3D!P?ipC1Y-U!=$%va$_~P*Y|#MBZLwA`)4w?!aiah_sG~L
+zb8#pCld+RwUy3}Dv4`+*Yx}4|GWIYwVdwfX_Cg#vCWOgYG_0#SUFD{VcTg(oE;o1C
+z1gA7WZVrD#)G1tU#tb~iiUNOe|GvL?^S9jE1`18Z*K+Fyce3;Oa%;jAG>R3LTd$(w
+zqxUlzXCQFdeP3>0U4X3RCdwT>oNxj)Hp!h+K7ck9z>mOAGTs%Nqu2<!+Z_~fnJsd+
+z6LYrW?#VsHCKAiCU+x(Sub0tD?#+&-=TCleZ_#0Rw(1kPw_#SYx72d)h{vdROp<%2
+z!`XCUa$m^=63?E>eHG!xPuG<DmRZoB{#ovKR!2<dvR&?<geO>xZ!Y&o#S+i7TJFc7
+z3)SP3-2WA8{gjz#U3Bm-zVR_pXPGY#tQ=14T~T?kS0|$I*7DH#9+(ihQXU?SwXb?n
+z9-cJ}Ei;o%v~J&OqODnoiT1dQ()s5X?1x>=Z?IC?OyquPf3X_|A>-$K!=k^qrSo4r
+z@Xkctx`I5s|0AmX9rEy(7_fR-WI_QXUYoa=D8|i_N0Vc4{2s|;d;)^=obuR1<h(|2
+zc`U<&bjj0Bndn$Yj%`+%=(dx@k3%wXKAZ%9DHHc1x;?i_9zO$Ta-^$?tjsx?oIR2p
+zK1XD7{>CI1ZILNe&JrtoOrE-kyr*JWdFmH}(xUt2=^^#W@wJjXy?QZG-u&|Pjo}y-
+za88~XfF<$|lV>KvzU*=qFkgtvtL23W5WNcTkr(cxfph-TznC)fFJ2rbFKzpTF)vSL
+z+QV;nw#f&1tyNv3A?M|_CApCE?v*!Dw`eaNE^mQ^w|9<^w`V}-yy_?K9$Q6@a_KU?
+zsSB|__vQT%Z<LVNm-mO_*gG3sllNoeh(39lXwi%0gZS}ygwQeh5XJI_&no$-N>{QJ
+z2UY_qb|YCn`WQgGGM7)X`I4i@BKf4wG1!eL`2+!m@N$vQL++BSTu?rL?~5{o9`ePv
+zU&Q4I`7#>J@Q)4hl{J9u)zamw54TXY)3ca-UFQZ_6QbqYA}Od__L6TG-+~m}O1{00
+zbH4nkeETk)jD#QZ{oLP3n7+#o!O5g@Ka?LP2N84glpm%EGKTk-882ItEvBvfG{}eK
+z=+^S{_yaI34dmw!Q6$&ZlwY$&l6BuD`L!&<^%KA4*UDjt|4%lNUw0ISx9car?k|ML
+z-Y$^ewqVnRm6YFJR3*pf6#1ho)b@!z<j(+{U++};-*hlHSC`9QgBGCRVzm6-2mD6T
+zctv@Z!XQ0R76)dh)GVefUZ4~9WmlG3FkB;FE6ZLOq=v<n<r}>1hyZ0xcSe(?R2^k|
+zga~JOU1e`G9F-NVmHlc#vOLaYqIE&!Uwjd3qINB%>@PQCe(H1OIQSd|k~bAA0z2~I
+zjAHw+ly0AtQ30{!q#$K1Ou`_HMaqbSD)6kYGIroJl+6EsL?NRS->_~hZ+^q^?|KvY
+z&KF7)n+HkvmJ(Y)^Cb>b;sY$%u*php4MYQc4&`$A9`RwfmCNNrFsbn>(~K(Q*gH{W
+zI$sf$9$qT5!<CHlja268-$AsTRhd7<lXy}{W&Y_yy5Sd<WiamavO3C{B^vcgrJ5_Z
+z9FZj2XyvvU&t9$m$V7gph;qY(FnbMe6Zx|T%IzBj5sRyGmsg;5cT?{DucC+VlXCxd
+z3u;_FmGxr|h-TZA$IM%3$hxLHk`VEz+sflgBs%jSs%&FI$+Bv-%C-h_q}M>F$_{Cm
+zR_s*SUuBR*JW)B^aST6q$0OxNBW|~=yybk!+M|iehX_yH?X2>hd`8xY7A87o<@}4=
+z-~YvfH%!z+uc&-yaqM<)Hc|ORs{ETQWS_cA6+jMX1jMQWKTxDs*jZN<><yOv_&()n
+zJ581XtCi<J%^}h)QJ%9BKp%K0&lGP|SiCXOW-X;We}dJ&R!0@`_aeJ{S5<h~LNwQm
+zS6=IL;_rQx*NfJmdCICHMa!Z4c$6yA7(r*v7OH3!gkWP9sG=96@a&Lw%DZqd;{U6K
+zRq?KP@ozs>{KKEp&-JRr2!t!$_9&lwz8F8*PL+;JAY+WXDzgj9?svmPoqM4wbL<O9
+zu#Kv0{rM2pcd4>Nnv->jkBPS8BTUpf@h`fhs<Pknk-h$LRc<$$g*%^C<v0Ao`EL=V
+zDs+KG%hpy^+=ieq?=w|tDt7;#wW`u}9IIxZRpsvWQ2hFjs@w;XaL!4pO4&K2i^Zy{
+zZlS1eY^17f#jLWu<y7?@>xl0ju4?G<#E)!KHCn;+mKdOFBo-xy_ajxa2?&~hM=8I8
+zxU*AAD8GnJVD0*MSALP-i22-Ce%G$z5vGS!ojypz_kUFN@?Z^nHdOWIAnSdZTlu@=
+z;UV2VDE~%?U;?iz|HfeJ8n00PJ)dKa&0FPvxFeiZG1UO#7=OA$H8>taDs{MOm<43p
+zw)U#&^0ml_RszouzdT<x>*d6;`1Fqo$aWkJQ@d2aSx@v;{#4D~e32gSMc*3++=P0n
+z7Ki_oehpMDu3!+x`W~t^Dlct?=c;xsdXX$SPj&RhDJXMLb)11+{WV<$4*fv9L0R=T
+zgW9SBlMp?(&!aj+*RV8`s&nHCWIyhuIy><~=k-;c$EA`b=LprsBY+%Xo~p~KV`R(h
+zrFys@Bm37_)$3w8Qe9`LpfWfO^(&~LA#JfF78P{GMyzgI6?6?t^kAmy^Ut5?w~p%j
+z=ZbfQsJ^2>J9a;<`i_IizUr>}?Z*e+`A+rkhQy`X0_FUNp*WVZsegVV<Z|n!2224(
+z+-Qm#_$G<O@gpjvLm_0bP1T?d*ws7psliq+r0Jv8U^GBjT;tV{9w-(2Hd_sK2W6A9
+zkQ!R>7V+gh)X-koycKS!&^F6RuCl1m4$w8WFHoWX1d;vv7&R>08{%KvI@Pf8>&R$6
+zL=B5U@R(hw;jr=6Nx^D_GZ@6fZ8hQ+g2k@0)aWc9!0<j)qf25FJ$$J~w?MePq`Mm3
+zaROOaHCLlUOM^Qy)R^BG4Dn-(8keU5vG?cHxHa#|GSN$oKj%v}M-esQ?sc*!*H=#O
+zRb=yaj#3j#LGl??P)(cz`LBC`n*1`3Y&l!1FjoW^morq@B-9<uYofw7!sZ`6s=_dY
+zo3$COrsQiww%BEA%GJq4+1jY7W$KZvxl2v$=uVblqt(=tLr6W$q^4B`&6xG4nl=-m
+zUbZ~S6i)KARHks^%yVB&heeXtGpQLx&<tZwRx_5j#vcq*;T*@W@hlZS5Jj;6hN*}i
+zuTWeYsUo&wuWTBlBDSGwKgT{5@!bbqef!nSD=@9&NzHnnlWa_@*|txhiYJ>W8r@To
+z)l;GH`l@*tEo6PxM$JF?gq*r^5w)mgI9cJa7G1KT9cZLl9J&BLVYyo3u^1`SCAH+q
+z8%!ApP)ogWeCqdBOZ{N5&b3m@zE1{8wNow6jO;k9hKVXDr&?Lwfl80MYW1WF7-a9I
+zqK||SyK_se>EcT?w}M)W{%sn!L&Y?FfU5nLsVZiA98sgJYTd+TBu=db9t8TUbty4K
+zRR^neA4ZU4b!oMJ2TDX13{o5BpdrHlq>1uws@iZR8^%}uR2%n)lB&5?#a8)5EdL(0
+zwP8nc{2r{fF7(Fay%K8chJ{G&($qHPj^|%4QQKNWwX^PdthROhMDpwjwGAcXtn>!8
+zE%q2$rrT891?>JF5h^YnS@ClhwLN7W+1XjO{U#XE8Cvad9Ym@RQ#<l6MU`Kg+EGN1
+z<4ZHOqueL5cipdcyvM0JS3&JWdM;0#QaiiUh8J|I_<7LC{@bbIorn8i<ljiOJ6Cby
+z(GS$YfdRzho2r9PGDuylpbiC0CEK?kb@&Hv-QCCP$OFUyZpTzY?aA;N=T*W<gi?7t
+z)zLWogAM8G=)R56Jp$FyjNK@-sIQJW9+P4p)v@%sPzO$^#LW4Ktr)G6Izp6-ovxfo
+zJ@??D0x2q~FF2Xb!&UN@H)MS?LY>&*L$;ya)XDW&nxQ+?sb<M2{W@f#@Vl-~Z97f&
+z^_|tJlkoGWzNu3gVEy|gsnhckh(_E}XL^JCDSlU-3ExH3tA{%K0s+bEL+acSoU(C~
+z)cM&@NIPCQRqADENo1&t)~dutzW?*QF_L+9s*C@^3pUuGE>Q*O4Np~?%Pmx5&Qxiy
+z!3S7Nsw?Rw5QMH#R~IcrN>)!@n+1K6=T<k|6Nt@CS2y#2A=}Fe>gK*DWP9FL-3}Xx
+zXT47_kw4s|(mCXcJI-L09-2hj?WMZc+m-CoJ=DFC_{3cnm}n_n!$dJHr@G$+cc{&F
+z_0Wb*I*zG7Z36avi%k?`m#ByD9+NG6l6v%fI2aR$dYt10>YD=9<I$*FShn9p`S`ec
+zd<PQst#I{Z*gbUZ6s@YBq%<P+>$-Z{d^9MOk?QH$43fd))w6E3&>D7JJzJAT+_pqL
+zztV#^tFE5EeNNUcpVSNdocEexqOz1yFD?ZT4OpdKo(DIa<&%1SE`*H6_0-$Eb~3Ix
+z)jI(OCC@MQZY)mG!mR33ZC5<~sKQP4C1f300|%<FE8#RMy-?q_q=Gd5p?>r%K$iQB
+z)Q|Cn$g<t8eqAugdZLV`t~QjAPB&2*-+^aP!!lM|S8hZ@)FKVl22#^B?I<3FijBsa
+zjaWsp?P<*>MUad>qz&Ogw!FXxc={o$9;JD%XtMNPqxpS1iJ1FZ3`NA_Ia7=E`A95m
+zrPVq(oAWSfH{fhs{j>{5x9*D|?SfHY#-xSXwd`Ru!3*uW0P+5zk~&k~!o>Fs(wS<H
+zBHQnWI@3aw|9N%NnL*8{q{BLMyL95u_v_3fogQd{pRF^$Z3Pm_Q)eky5J~6+ouxVq
+zg?k&F1*PHk?cpZMz1MY?CWF9gmC<gX>y)x;w|Zs3=iSn75gu^AZ?)TRJE>#qwR;(e
+zYURpl_ex%v+IUO5SA+1d_~TzZ?Wf((;!Yf>s<S%tF2fsL(b)n(C@c{=n-fnlTlG$7
+z&(fI0f3<Y>s09eAis<ZXVTfisb<TwnJ!_|R?)kIPYC2Ts@qodq-Aw1X`G$1l0iD-x
+zEm^+@>3kOufY_So{20!!DxB5%6CGr?JTOtU-l_8={kE-MtepidkBQ-m3bwh4g2tC7
+z^1vm!;I34hhA3U|<b0A-YUqMDlSvO7u06*LMV)h;F0{QZGMP=faDW%O@}qR&pSV*s
+zhM35o=hR+Ru**x1(nXrhBO~8!U9`A6`kX81q7~dxC)rCEt0u{QCfupLix0>AfN1SK
+z9U<4T0ooe|!**km_MZC(g)Uw$4ApiAb@AEQ6EEX+@vErp$m^*~y?le-wkswYxwQ7l
+znT#B7moA+*AJN8CUAhx=fWm!rX-LxcQWjnMb~-)~@Kqz?TRZErt`^M7aCXvV>me|x
+z<EP6G0~6x$L6?oj=4iG^murmR)FoJ#3n)l@X{s(a^8hBu4ASLSK;5fdT9?1(Nn+(X
+zUH(0)cHgwr6{aFRAJSD<oDQyN!(v@|Sqk`p>AKo~;b=Rkp=*pzAu)Tet~s$E@yr9Y
+zZ$3mo&Z#?ft<`nOaeTb?D-Ex=@38jk{{;A1`whS`@_wNGLJwkuL?2zdz;iNwHrI9X
+z;Fi~yx=vpt6vcye9rO35>v{tqKej%h>kTYVwqJ8}y(<aisL)E+dzuU6wyUo9E(4Qj
+z9_j{|62R*J)D0Tvqh6wQq;4=D6idl9y20^8jP<y!8z$r=HszFVm=RAh|25sH<sIT}
+zqIKhJBgt{fsvG|aRM=tN_(U}lM<(iKl`ueWZVlZmBMEF*Ro(Ja7V!PWbt^X?P_z4^
+z-Y(AOoKLz{yGXJ=dSs%_t(J-QJHJhI#GN#e+uTf4n><a_Wp@MNf+jUGk*{m1TiYc{
+zYp?0n*$}F>|E^n)-i@kff8Ayph}rPhy4}pKWb5@sw{Jd@Y!}<=_UPAi+Ad|$9ViK*
+zri<<n@t7Rv7U+)UV#&Vlf{BiqWldDL-i~z<>xOjGff7Eh_eUTMZbA<e?Z;}H$fo}N
+znx{nRz?LIPB~H_UlfWWeTcJC#TqM6|)txQ{lGwXTcXq9a>g0MSbmu0Q5N71lokxWs
+zZOEs)l=ubv_EL9gf|dWcM0cGVhJ<Oi?%v`ialdl9`;S!8VUfB=zN=(ex7|eRhrznX
+zlzy1@R$KSDHUR^xr0&^d7;u0Na;=NnzaSk{7Y$<1`s(2RzNCh{*THE{l&o(1sr!{e
+z&|9p4?pJvs3OaY_erq7Q<*)z|Djs>N`$xqS^If9<iF`rw)jU05uR8{qSJwjrGLhxh
+z7adXr5_7hvI%N7M;zQ2p!Rw)g?LTg!W6cH=#ruCv)B%I_(2g)O&tmm3=cn?>S1Rh^
+zR_w_!tMu>zFUhicoE|=5J?=<1J^T(z=SJt(BjR_HEo)9a0>5wjbXt$Rx{>sZ8G2Ns
+zH)Ob1(W4h2=C!TVV_aH6>$<1M2_)wO^6GH~=0Podug3-cIdt{(xV`XwE7SCN8$w&3
+zSK2vYbT1TutkHi^g(T~VWiWA~_aQwo0_NpPKRtN|Qq58Iby$h!#MeF7Q?}F~?H{YB
+z#y%%<udAn(jUdtOr=HgB7g=6R*3*;VYLZg)j35~511t3mNLbeRqb7>mT+cWuh=qOE
+zGk)UlD_?Z#@RLX@Mqkk3?_i(Y$LjD;3rTg{pu@ifpc&wsj;MliiT~1c#MZ||C!6bt
+z3)sb_()BD{p`}=~i7aG+p5?olWMol2yBtEviO2Qq2_MN~KcHvN@*>LDO3%Lg2=&{q
+zb!2Bdl-}}sj(0z@k9NlEIqja3E|R9_bX!Au+G{=MLus<P57Kj+Re<5N=y}DGV8PGm
+zd94xaMy}QKFQGOkZnB=A5kj`G>3aSrAEMtmbyTf<D3K|wqv{?ei{D`#6^5@P{?Sn}
+zRf!7t=mnNLqz0tv1)v$(((ZaeavSiRB|hqfgR#qxRM!i`-607@>&3Ytu#8I8i^uFi
+zpY~n7cwAOu&pYYG2a)SuvgsuwufvX6^^(L}_`BD7Njf&^vO*@x$9?pYXJat-zouSV
+zz8VZ^X1%myTSNut^wMBRPAMDp(!QXkMJBxrkEwE^0$4Bmi7>%!m|h->UEcYTUjFh5
+z@p1log$s1c4NR}756kWnt)mNIkMvoh*G|S2R%oYV8o~9XztAzSG+C-PG*O%m)-m6(
+zWYfp#b?9QIPUTIstjJ=bz2;KAt_4!pccu0EwY{7KH?G%jn@6&-U2pi)i6ScM4TJkb
+z7HFe448>;j|D-n@s|XIehu-iy9n%MX>5WBG$bPho-q-@gf|Z8pjppB1(XqxE5|=OQ
+z*tYPQmn!Pm7wKdx*GO+Fa}#%Px!!axjvN!e>&^AoLdNW+xAbztl@v?UTjH|9(pS}6
+zS0YIM7^t^5NCjW1^p5NPB#L&`I}<BFqb{N2>!6M^w6KofjkxAWSH0&vEZgZ<dS5>r
+z)A7-I-@1NCvMcF*FBX7m9;pxfIEjLbXnn{6Qr+W%iK@~V6LsO2`jB&vKo8waeK;A)
+zZqrbG#B(Xp<DB})fQn@En5q*_bw!N&P9Hmp59+a9Cr)ZfqU&;fyga%Xirvvkm@=Tw
+zP0~q~-w=J?Yoc{*854E?!aC_lMbu;c(8*Rf-+fbcvKw5Nm$yz{feRR0L_1St4#YQ^
+z^&gZMKI)VoxYd>beezyTqRF-Oso}6}Fhr+DAu2Btr%%m9{PXUXK9!UU=i5`CO0P)j
+zcWr$-0!!lKt52UnqIG(!K7A2(;N@X``g&K?;1AMg+9IDi6QR$Xhm(rVq0hYT4#ha#
+zsn0fnnzFZ*KKpbHX8q+cQP*s%&*jLDE3K^0<w6#}<dHsa|3%!Ty}mG_7jF4_eeuIj
+z)Hh`4OOZJDLl^5yy9Bx%7VFE+Kvng-q%RLoAZw+G`tmQNo*#1Qw8rJhzHFyX`xi0u
+zf*txw_cnx)1aA7u{0U@4)znuj0A~f5sQxLguN6f&arUylZV4vGmI!?vKi7^peZ4~l
+z@$X6cM#D(5k4V-x+nz;2^;F;dmOz$zJM=BL2-N7d(Rb>gHZPMy-|4W5tOK>a`>!im
+zYOK`hb_C%qxK1w%6Ym`JQK$R<d4tLNUY1~l85Q-t>nMSbE3NPQtS8=btG?e530Q^k
+z`hLsI<XGQD-#?059xU{uN&hS9%HwKGzxcWP()&Ee68$V=85w)1WY1EVGGZh|wiaYx
+z3XSF3lB^}!%f6E=V_#Dw#K^8mJIbC0W%+$wf85Xa=5y73pZ9ss`JQvW=RAn&gKd?9
+zzL8{_;-eH+#!3uMR0^BMkmi=NQkd>dhT8s0VL>oyasriS`6H3vSgSn8UQ(}iQC^HV
+zkJ*7+!<83*4JBoiS$Q#k4(VG>Qi>0NXq9wUihqcMXWdg?jqQqQLY0&^9o$HL>6!A@
+z{}Lo}q?A;}6}i4wO8l{M3wtOf_&xf^p-M?KPFe}QrhG8Dk)cDj@}Ug`TUSby4+rpc
+zP41_Zx_lx1&>W>SVT^^0L*D*)L&{_z^h^5ZACynS5m;^hWJP19pYrJ+tUysK<+Cel
+zU^Smu(b&Dnib|#5l+S@XF?rARC#IAsWzloVIO&a2b{x|VZnIK$X$-V4q<q<h742VN
+z`SRQyO$4KX7I&18{FHB#^PpE4p?uroM*5I)<=gh5WC{*fzPHtq`c<-^o5iFx*a=l#
+zH!{s#F4U(XycnPnnyvVMBX$VQ0Xz-my?_~{KE2M0rt(sud8Q$o3R8u4s5{wAc_Ord
+ztDyvGEp!dFqz}F$OjZB49x0|P!ZflE!hz+&bO>p{rQc%=+iF>=;K$FQaNiY$xsL}?
+z_zs~!il^BfXGK$lw@}8%lQQtLP@qOKRl6yKhZ=1e4TMAy(B_vcA;)jWc$a5FMj(nA
+zTUE$Uh(sH<7ZnEKXWvp$v9&vyJS&UJWmPbFIYrq1QGzZFPf?|rGg9D*Yem&SEfPF;
+zg<WsR9<nbByOL5Q1;&YLS3Ix)`$P@jrqC1$QDX-dQWqy`>_0`?*3nipCJq-h((aOG
+zf~}}^5>nppMWSxi4AK_V5_R|D|6Ott^|1#vV^@j#vtE<=UA(COQIg4DEgHDva0vCa
+zJkcNko4ID3XaLQee$ENe;0RjoTW5=g3ifQR-lF03_sBM6SkYveD;jGSK%QAmG=3g{
+zg7Hhyw0%A)O+!U9&0<oGPZAE{mvP9eRyZs|cy+U)Xj#>Z=%j;iY#9m7@mAq<w2+J!
+zY=yJ41-kE~J))HvBID(4gv&WsGWgFHZT{$jWW7qXIb=`f$WfvlP|;Kr?Oi93dRAT0
+ze)eZljUFx9pMeGcd{4Ch?-bOAV?>7rP)qOjwW4YMZ&p<7CW{U|FQ7H}p6IwS04I?i
+z6rCfFk-kDT(b*wt8By2PqDyEPsV2t@x6UY89UCaRyX2GByR-OxX*lWj=!GZxJaoGc
+z#Pr@#)spWbyo&o0%~>J()XpHXEf;;gV$kI|Pk2|rQ~x4Lc>j)k(bz}A`vR;(+xep3
+zT3lDYhwwQh$xyUU^uJ+Gnz-#&)Xj|){mU_c?_!=6&9ziwKpQB1w`>vvM#7H%;V1@9
+zHj%kWs2DWF0b1vh6fw9L>>n1yZ>~MmPAcJtG%k&JYDGiCxnfA)FIeI0VrcCmGM}C-
+zh89bd7K_CQhu37v>M2Ha@Frd0?_$JVd~x+YF`@`n)Xqu5-x<F3#U~N4JDgOvT||)M
+zJCp(&h@kUjWXu>Qg06i-)+D5w7g@#-uwG99_V($heA`;U=gR97D|D<npBn@Ot5
+zEv=}%GDwU<h;Q)SCr0)6CgbB~V)ST9W<#17eG_}L-5?R%ri8T5b474>H-z@1f1=YQ
+z5xlDwroUYg!4H$sgrNgkkPA$45@VVoS?L@g#+*cAYGb+>bM+o+7hMr!8AR;XT`_jB
+z3u!!D#Mn_;r1+$XanaB=r<RFvXgN}E&lKZ|VNL$iiU~)H$hc*Vn3#}2`e7Tyq-CEl
+zF~nO;7C3#ZPL`Mw=1AtbN5zyK5If|ii7A#d2w1yDiK%hWclF8>A$7p1OSg!S?+CmM
+z6+|e3YiIv1rfvQkocb>@z2_3>Ooxf-$@9qO$W}39=TNe#pDAYGD0ah?@nXgc4Vkvg
+z5n&siA-A|d%<Pp7&5@s&IW7ZsHN%QF>Rw`&7Tnq~PgrKn`%I>akz&?)973Ic)Qalj
+zu2xj!RWbYeB%+14g=Oyw(sj%fmYYcFb<GfS6Co*n)>6!~EkZfxlbDCisct+~EI?61
+z{icr<&5Day@E%Eu#v~U02fnuTqX?Iq$Xuzm2ycm0-qzt3vG^Q>B?nuJ#i=OU4*en`
+zd%6<6C>D{ZfT?aQ5=-Lq@rRPEX!GcZSlVO>sk$8&D}LEQN^?)Ka;g^!SotE#31t6F
+zxrln70gv;Sh$=<sYd=jyFG3xB*GaMJe?Ky1AH}NFuB3Un--^aZmPqRx^UZLvdetaW
+zRr<$@+LW(i^@(<nW&9>qm({~P?k8g3=a6PgoLJMhlytSD#hQaYNKmQ7+S8?&+EP!f
+zGslwgQCG3P*aXY{SZr{2Ak~F?V#E7uaFKh&#&KgwbHBdWI0^i$;DXpx7p%fkwNS+W
+zcAm6r-iY|oT}U6WUBr*CN2Z?6Vrv6*Y1FAJwv9%_**Q#XTl$bRlYSH1%F*Lkq!!zK
+zMv-yANU>w@W70mFCU$0FI^^~^v8#;->EEmrd;D=hsuyCfHkfoiPGaAT%ZR`J6$d)M
+zChhhUR<!7rv=Ry7&ZNm(Dh@e-6`boK61|Q=6R=n$KG{JwTSkh*+wYL^%zbfWA=tz9
+zx#DO*C@BGN#jz*X$YAF!j=fGJbIE@3cd3R{euKq{U*QQ<&&0_tFtA~V#mR(KD1NwF
+z(IzubobI%pY)YqyGp8`?%$WP1I8)FFx(+GMJOB9RwZ-`*-$?2ApSWnQOq!dw#KrmE
+zWWHuAF0L*kQ(j|{6h97wHZnxgt|0Wgyc0>^ksau>L?j~=Hn^pW<P(UQJ?e<$)DF-f
+zDpu5ZpSGe|Bm)sPO>-0}e&}^j-~Ea=d1MT1Z$%r`ERizh8>*xKiIfNgX6z|aj=?LJ
+zHx*ZYRMz*qh^x8;bcd}IR~L66Q{7b}Re+@bdRU~|W0R#vi`2`AmzF;j*V-WeG;Nhg
+zTicn`k#QnzO9C=*bw%2NELg-9;)Z495eQC;#m&~Pq=|hY(uJ99hW#OKHNyD+?xV!5
+z&>fI<28nw$14x}ZN!*8Y+}tcoJm?!w`ogB-!3r?SN-xBNcx<Ls&BQ||4V-R}c!X+-
+zQEMX}y~ATSV77Sd(TEIAt;J)MiM1{2izn|4;BkwDC36_~(CiH&Gr);-%DSIe_(EjW
+z^TgvMM3xI0?t=P=EDso@*csw!!%z&3?<Afg*{SNaPGr|bnYS!TWM4Ev4OvNK=Y2pw
+zn<8>Lf{6~PB66bLNEy^Y<o=RQ>JKR*_l1cx%O6@%sg5Ib^6-3XhWLuSj|f9rDWYKA
+zTnN$|i9#ik3}w|sVJ$Gg#9u^Vw-%%gz9<U4v9wbMh-bY6Nt2W-p82dMO~QHc3@Ivw
+z(#4B*8_2w|KonO(81t`#D2}nk{H!!lT$DiSY1!gU2-3D)7m2sCup+}PapLVg?9Q-q
+z@h%5s{@Zc!z6VlS>mP}d#5rVB{y}``Q4NWgcA~WIL_GH&#mB(CNXm^DA7>(TT^u7m
+zX~3=BHd@jAriJ)a5%>CWBP(iDgRQ7Lpb?*&Bg2$9Mtp9CNV9f?_&g&SRTD$3D1#Hx
+zhb4=$WTY)>4iII9D@Zf4t|+gu9VGl$QQoWo9QZ#`9$1;Q&E3V<Q<8L%9mO{{6gLY7
+zi0?nDtHXMV?~UNq29Fir?|KvYO|+t3sV6BafecZ#rP>)H=K=0gGxZyCX>Fty13Sl>
+zwELyD{WApX8>DtBcI&s6Qa3Y(O!I@J?zRKzSB{ptJbToOhf96y^JK6MlzP8Flw)k9
+zeoFz=6)mMc3BiAcQR;JncRNT!SL}^(DrxY>J>L>%Mf0<+F`W+9vNT#Km3!DqUvi~z
+zE+F&Q1yUf~Qa$|BikhfcDf5wTnQ~O}9As0j8zf(bPuyKmRvL=+aQatPy55q^YkSGc
+zJr6>n{7P0H3La!$BP$2CBK5X%E1F--mbO1C5|#T&yEf3zb}X}^#h5!*{_j5GxL?M~
+zYNx}=<k3=AyE=z-6$Z)b0~}B(cq*%h?;w5M<+4T+^z(I3%9<U6VAl@Gn!7HO&BZ)f
+z=SQs3Z<DNh6S2mibXo5fm}}?_X+NbJsphyy`!9Yd0LIDsO%Mo&RhRW2p`873=MRKo
+zG`^9){hEV?`b#!gi4SO($%ab;NO$>z70u~8W#fYSAc)SgN!4`HXZy(}Dez^Rr^;qa
+zzyOU2(xGx5sq7d1#NTayVxI-l;WENL_X)DOBPs<BX4(A5=M6Vyi+qSQv&tk20rsfm
+zyGh5PC^rq=CmknTAl0&b=@@a0)ayO0Xxh|AIvoXn@oytt3csP&*-^Ik00-}4BU^8V
+zz1+E2wwVoD(&vP1H$03CuHLfU!W8`BDze?}Qy4V#yKMh1os47bWXCor_WZ4v9fu(A
+zoZu-tTFxU9K08Hrd<?#__oZ~bj5N*5=Cad|4<^i!oyWtuMyLM7<QcMa_yp3_Yc9LW
+zB=l|tNcY5UWYf|?_Bh!C{H9oX1R=jPeY5m9jXhAUiS#u8O{hmp&#D?I1Y1kb`XQvs
+zFv*^GQMjAaR$BUnWs!DoW7)4{HNu}3vVWs2G7r2V`|oc{#(gDnfcti&^or!b7H9yM
+z9@5usD`^fd0d5240JlS7+y=M<xKjF}Db?J*NDhiwK{j(j<ltrfNb6KA{e}!6t<M?Y
+zbW-K*mP2|x!h|!EMGi9|@cTa0ie}AgIm{WE@$S`upqAY~$zlF@s*4`V5&m}2PT!IK
+zJ-TAlYK9Dm#h&q<Bm?JGAsX|m41Bp4U)Wv-{m7zD-6(_B#FJ@67a4RLjMBbLj*2Y<
+zPwFLuJqKU_nTH$~IDt%SEOX?zSG7p#wL^}N@F6;NSdPc&BSY<2IsW-#BA2sr(q1@U
+zTeX}FeVbCvNlsk`7t-f{GPEfo<@_2}GzM+_i7))EXtVF5oVEaA%Aeijw8)91s&A6h
+zw&84_V;8MxJo2ZUE|7t@)XbFAo0g#H@>WjwKTjr~-g5e0H?aI*Ib)b4is>$A{0+<P
+z`c8(`97@{qbu!F5g;btjWtat`j<+-A%w1lX+x5GgU1>L(uk>>E@i3eT&(h-MLpA|@
+zrNuXxRAU}VOXeifejFs{qr9z-s%}M#8Ydh7_y=w3W-IEV{pI|n5M#A(E9Wm?NV<Lj
+zKXKQ4Isf`KQa7{6`H#@5@Y@Bs;F%j%AXF}#rXlsIEplPn-(<G2mEpZ%_ZB~v;eED~
+zDbhoR-<?XDFDALDxH;+0ot6<{UZmbUQ%1zR#%w2#-7+E#1SsjPT->QLp<hxiF2t23
+z`pQUu7@%xN895cCIdYqfjP^nu{k~jMins=ci!U!gy2t;eT+wF*(S(z7#T0lB`An|d
+z_nK5{KP&1=pUNmdL<`qz%jgi~Dt+h4RsQhypF?C!6H5_#xb0=ko@_F2=n2dL#sSf2
+zv*8Ue56-g-5KeYujEqUXgZj}n8IuP~Iq|VvT^+kS%hig;qBI#B20JjXwv3(gmJCD6
+z<ytLB`^1xS?H^ub2#A;Kx?DkW!Bbij;NJ(!^_Kdem?vZ9`Y2>4TE3R+A7IMOsr7P0
+zt6(yyoaKg)q3C)&D>qHTf#$CY<)$-Pq{)btajmAnVD*)8USRJJ*2=h0L<!{wW!!-f
+zGS~HzagT#Z-EErO+yoaG>LWMjc0(WD7Wp#)?jyHEAdRzmowRJtK~bW)PHr<{>7Oo;
+z+s612)mtZbMZy3Lx+eGZL(IPLoZO$`OsehW^1#|!5MM{ggCX9exp7J+oU<pDF<u_3
+z>JH(~cX?>FEvbvs<e?3qsJj}=LwR1LU6CUb8)T5)XSq!5u7P0hzD)cbzyIiEi%cAh
+z-pneKW#Uv7dbh{P!|kzad%l*32bbX~xF8RoYKOW|PkH1Qpt@8Z{fZcNMVUP2n+tvX
+zQ+aGTf^NS}@<e}kOkSO6MTP&AClU=Pfc26mzT)=`R^%xs<e8s1%TpoeNi{7*o(`Kp
+zI<sZ6JX^6ArdynmXG7t3JMEEY_rhQ_eJs!E;AW4{mgiEyPj-)!7ki^rH|V^)bQdR2
+zJ{V?2v*$ROG!XaLd9O^mZ6?#zGMW5C8<Fr)ru>QO%gVFzN~V@H%0`*G1NNm-Uzz$e
+znaph-%T&w_QCqUA$uzg)q+NDSrlA03o*5+5He=~7l*qL0&^X;mkk>(;6~{~RhT5Jq
+z-k;@-3Sl_&VT-(R;0c*G&yhE-JCV9UD|u@sIP>UU@=nlsGQV#i?_?}QSE;+qSc}B=
+z;fwO#z&WJMS}5<k%}0&$UwMDw4$O8qQ7-SFfm_{qLq4cq36GhJd~gCw_QWV3AapeJ
+z8Yv$R!Ik;4eEe4_nz%m7teaqh%jU_ftTCvZjg(KPpN8gPzRa18Tab81=A<Q)wlB%N
+z1}OWuY?68FYLPkFUFMHMLR-hOpc0-EgSRY*tB-t#cC;*b4;%j_T0V=bPkOzbd~OPd
+zTYV{C*uN%SoSl3z0zSe0f_#zqn)IvvWYI&A>ch6O_|RQa*%{=^Re=!ZER!#vG{$I#
+zE%H_1R5JaVCSR3$;k1nz@-?IN@#$0fx>6%ZAPw@h(*RNh-j=VOEnp&5rpq_9mTbIL
+z^34Rqq|b}w+r=Ov+)TdP>`68a9?AC;B&q+6l_guXWZn}kOMA2+lg)8iIvoQ?+Dwq8
+zk*I>#ah9c*UK1t1lb;n#!R;R@KgVxIeDjwqM`A`>@s2Ftihpl#Q-0|)584Wq{Ax)?
+z67OLz`Rxig>GVuipLM_>AsbeIhh?kLnKj^qI>Q>)d1=Y`#+G#_;DnksXM@KN3Px<K
+z)r&MIec1Rlm5c@PY;yjaY(kz`QCYQ?O<lrqVr@k>yM80RPRr)G*sL4F*nIpEQMGn#
+zv8e?)Nr&ZZ;~I{`ZSJrQR9w1SO<5U%rL^6{vP&A-e5%Vb9!oy!Df3DvOf0<46)Maj
+zv)xv%aLx^qq+ht=o?4{ptKrHQ@w^|(W!v3gJg>L1?Uz!h#I~`WEmp8rDcd!KGwarX
+z?G{MVzi(t=yF(xtpDVE4*>to}=dc}Yx;CnWtIxsn`EM#$UlRif!V|9bXgh-I4O}NH
+znQS`t<zENpk$UBPE9#<V{=}mde&S{E6L0-(MWg>BE1GZQTTuy3=XwVnNWa2Th3y@|
+zT#ov)eH@CDY3I29o;{>HJ(n9EyiC-gCO19-=k&mro7S2@)aN`mo$pGf2o*O)W}LL|
+zxS0l@Py5Wx+BlL%UCPZSuOR)_@9YqZ?)V<BxVa7FD$|0wg%en@e<rt#d`-p{gSh1#
+z6wEEX9&pR&2`I0uVaGaNWb|9ijtDEX8c%lY>JJUn9d<;=k8W=eJ0AXkiKKz-RAndW
+z_PuAP-UVdn@e|E?RoS^QQu_DCa;vtEWaw9uU0iHQmHUcY`yPR2QqOIxyWniAIBr|-
+z1!+Q}xb58^UE=Q^aN7?KWUPCJ+pFqfRMK#E{V$$qNj7)-f^XXR9e080)SW4@qUj=j
+z_C~Jja1-u2x|}pEKXBLL^Q52T!0v@vWYcIFck2;P#%bZ)y)Yelj<ejO3P^49#oVLb
+zGBOWu%{^KrkgiiB{{5a8o`2(0_8dJ7#GpNUZb(N=T7`RFh6OzGjQ`LFA_flRUJDVS
+z&92B^t)L|KIKjOws0+{gll!c!2MuIj?z1nDG${l4&v-B&7Zd+^_%*3R!?|ytbg~(L
+zjr+btFGan4?pGJ1*guS59}N;bA=&I>XMq>{UIA}l2g+7kQC-!8eFlMw9e>6?iP)53
+z{n;lEjHmZy9ympkc4j8~MqMLXdz5{D42^pe$iDx;BHr7@gDUuv+AW(0y$(eNs1gs(
+zNg(~#M(iiB+pm9Nzr9!~+aB!q35lJe!92wB8TY<@M;?wct<C<v?C+LNMq1DQW%vWt
+zCUC$%cwANx2R!~4HoOl9-f$<)qqiJn9t2A_n1h_Ekmm7n4)PyCO2rNww9!DC%qKiD
+z<{czSb9v<c2SnIxqu3QX`nfy`1u%2ZUOdVbmT`lDEu&H0G`4BV!741--*Y(_wSQ$=
+z8VC0Tvsv%YV<y&zJ*v%PE}{}<tjOc`V@_{_zC5lN-QV{=@c8fNA=;k76I5`|Jsa_a
+zm2HUz#aU6e@zGCwG}em7xixvB5$xIJ6;EW;X<pX0@WeQ0GN#VviErT)Y$o!=56HwW
+z8P1dE)kJ}3GEYv0K{{B-Q&%FXmbQ^YMq=||i9>K@>gW?ZEnAZD<8hwh6c5pMO`b90
+zFETgm&ocsk;7Oiw1d~x~_UEuJC8Wyq=CCnH=H0u?VTq&AV`ZtuGizdL`jlDG6p_L+
+ze}#gkeJ7sj0n=QP&okE!Ao|spXI>74dep~?s(PQSXbRuJvyr>jq&DQ)w~b`lu!-j^
+zbtP?1L$=IAa_;PJJXar2`kVjoJX;vL#};4_v{X?%uO%#|rO|bsHxB%~)hJ#V*AJ=W
+zNM1B#4jE?$@uCqyWXw15qVM_ej<y`(38vHBjw23sB6GT)7Z*5?Y3VFpvMqy5N6L9=
+zgcF%uTk*2#5WI}7%FEs%{=dJQmwm?O{<M^rcdSC{+Z(N@+ZW9%a_6DmVW-8L`K0}y
+z9dH3~GjJhkt2F>3Y_4_)2$4ed*1!nh1>j=R*60C@1m5D6Jywvp$eCAyP#C5@=O`Tl
+zkrpdCYKRV}+<fJzaNJsBJC1thPTD`?I2xnZRGUU~^m3fMW*Q#C(K*9O+cSxypZVf+
+z@^-xH2c_y_<d|hYK6s8-yTj?Ej0J+jrJUx~3y=#dAIY(IKwf{Vz-yB0kd8fgt-l8u
+zwwLo-Xc2TVD}UmZ5xl_$$-G1UykR}UcU*9Md-#}HsT@Dwf)5_p%JEBfqT!|q$DhrG
+z-s=f(j$BK+S+#j{9E4{D7T$XJ4~$@)$lC+Hkv3o_?|215GGrO=+=<+^c_Z%{HHOUl
+zGkE_^+~bP<t!Uo&mJd{fp04FbP7r8^EjMw3J>2zSdn@YO*WpA<i!w~J7M%FL9?_9d
+zKC%m@GB($W3Mcci|7{_C^=v-&VF9W7Z{p*QtuWcN2_IhsF1PX@K7J4(mg{Oho^g!~
+z-@o(8LwLMAJMzhQup0>j`BeLK(s^g{>01}c5Yn8_sInmNf5T^|RmK^>OWAVvHiE+U
+zQGE7+J*n+-_?%gdLP!XoZyF9p)PpbC)*<!v$yU_uJiwP+z=ltj@TD#rAa7m7mzH{C
+zMpHGuv<U=e!8A@XBTs4=%t>uy$>12qNqte0>K)2SK_5u7peZM%<MHh<hc6>%ZafuW
+z;mi9zqO;eZFF$f6mBV*jGwQ5^6F8-k8w$JcI0ZbOYNT??c?2lG4dp8il}Y`i4qwT^
+z75uxKuli);7PRE6Q_v-%4B)HT@CiyRU(Fke?y_`FZHpF$f$KSS=s+@Mt2lKnW<fT-
+z!Kwd5qbI}S$kzg1BCYm?uT3_frKlrcv(yKf^y6zwolss_!Phd=N%L_cr**81l*~;|
+z>ynJ0fxrKazWHEI+k@65^%71y3g*+T_fH&Z;TvPHrz+gy^k%MPxV4_|3<LYk9L;wU
+z&}&hl8D|U(1OFekmhT!DkYV;2zNf-3)Gg-+-G`FR;ywJ}PG{1(-{J=kp@Z){nICHK
+z9G8FPhttvH6mgp$X;9@m+ZpIU+F|#tXg+hwic0igew^fmD&ZO{YOkE-OiCyHs)?NW
+zKRkv<g81L(=n^+i8O%8gab<D|=Y080`m@70cSt`n=B0A(jA{^`Jm=hdFia6^I5#sC
+z@-0`+eGl*0dOhdY$VD@D4(HciNk&y&E*K3H{mX4G*j9_EXet*z!59AciJv<mpEzh1
+zKfi&{Z2@r+R?e8Wl#AxqLzk%OB^UjJTVQtPVlU`O?#1xS8=+*Xt>ZU4F!^Jg1HU=-
+zflO{r{MIc54ZJ}=F@^c<Wz;=_*75tdN699%$cjo#JuYz%g03`@OCBQXt<jP{_&T9e
+z_zQm+9ZQ;5*<6a1Hs<%_(rC<f);tO1|2(^qZf0Zt)aNeveKr2HAB^Z*YyR8--tE#-
+z{(Po7#^pcfvf9-#Z(tLb4PHoUdcb9y5QO$$&t(bWFfdv!AEF^$VP`J?3--Zn3V)f1
+zI_TM_{MCq@_@Z(AwHLlX?}hwLi6=voH2zk(NJHvFZTP#lmQ2yTgGq_?I{L@uD~lqU
+wda3YI<E6n%d!nhA&TjDu^#k3GW)a;Ddb|vH8SygVWyZ?}FXcpcgSb2J|1x>>3;+NC
+
+
+From 2854dad4e113d0a47de3cacc4918e801007b3c1a Mon Sep 17 00:00:00 2001
+From: Piotr Oniszczuk <piotr.oniszczuk(a)gmail.com>
+Date: Sat, 2 Mar 2024 19:36:05 +0100
+Subject: [PATCH 11/21] Translations: Update mythfrontend translation source
+ file (Polish) (#868)
+
+(cherry picked from commit c10fe06f8aee679a23cdc00d828e247163ceea36)
+---
+ mythtv/i18n/mythfrontend_pl.ts | 128 ++++++++++++++++-----------------
+ 1 file changed, 64 insertions(+), 64 deletions(-)
+
+diff --git a/mythtv/i18n/mythfrontend_pl.ts b/mythtv/i18n/mythfrontend_pl.ts
+index 6ca851a88a0..673e9cbbada 100644
+--- a/mythtv/i18n/mythfrontend_pl.ts
++++ b/mythtv/i18n/mythfrontend_pl.ts
+@@ -2327,7 +2327,7 @@ Sprwdź czy plik istnieje</translation>
+ <message>
+ <location filename="../programs/mythfrontend/globalsettings.cpp"
line="2692"/>
+ <source>Startup Screen Delay</source>
+- <translation>Ekran Startowy</translation>
++ <translation>Pokazuj Ekran Startowy</translation>
+ </message>
+ <message>
+ <location filename="../programs/mythfrontend/globalsettings.cpp"
line="2696"/>
+@@ -2337,7 +2337,7 @@ Sprwdź czy plik istnieje</translation>
+ <message>
+ <location filename="../programs/mythfrontend/globalsettings.cpp"
line="2707"/>
+ <source>GUI text zoom percentage</source>
+- <translation>Zoom dla GUI (%)</translation>
++ <translation>Ustaw zoom dla GUI (%)</translation>
+ </message>
+ <message>
+ <location filename="../programs/mythfrontend/globalsettings.cpp"
line="2712"/>
+@@ -2347,7 +2347,7 @@ Sprwdź czy plik istnieje</translation>
+ <message>
+ <location filename="../programs/mythfrontend/globalsettings.cpp"
line="2855"/>
+ <source>Use full range RGB output</source>
+- <translation>Pełny zakres RGB</translation>
++ <translation>Wyświetlaj w pełnym zakresie RGB</translation>
+ </message>
+ <message>
+ <location filename="../programs/mythfrontend/globalsettings.cpp"
line="2857"/>
+@@ -2362,7 +2362,7 @@ Sprwdź czy plik istnieje</translation>
+ <message>
+ <location filename="../programs/mythfrontend/globalsettings.cpp"
line="2159"/>
+ <source>Display on screen</source>
+- <translation>Wyświetl</translation>
++ <translation>Wyświetlaj na TV</translation>
+ </message>
+ <message>
+ <location filename="../programs/mythfrontend/globalsettings.cpp"
line="1525"/>
+@@ -2609,7 +2609,7 @@ Sprwdź czy plik istnieje</translation>
+ <message>
+ <location filename="../programs/mythfrontend/globalsettings.cpp"
line="4784"/>
+ <source>Localization</source>
+- <translation>Narodowwe</translation>
++ <translation>Ustawienia Narodowe</translation>
+ </message>
+ </context>
+ <context>
+@@ -3005,7 +3005,7 @@ Sprwdź czy plik istnieje</translation>
+ <message>
+ <location
filename="../programs/mythfrontend/audiogeneralsettings.cpp"
line="1236"/>
+ <source>Digital output device</source>
+- <translation>Oddzielne Urządzenie Audio</translation>
++ <translation>Dedykowane Urządzenie Audio</translation>
+ </message>
+ <message>
+ <location
filename="../programs/mythfrontend/audiogeneralsettings.cpp"
line="1250"/>
+@@ -3015,7 +3015,7 @@ Sprwdź czy plik istnieje</translation>
+ <message>
+ <location
filename="../programs/mythfrontend/audiogeneralsettings.cpp"
line="1260"/>
+ <source>SPDIF 48kHz rate override</source>
+- <translation>Wymuś zawsze 48kHz w SPDIF</translation>
++ <translation>Wymuś w SPDIF zawsze 48kHz</translation>
+ </message>
+ <message>
+ <location
filename="../programs/mythfrontend/audiogeneralsettings.cpp"
line="1264"/>
+@@ -5583,7 +5583,7 @@ Zabezpieczenia obowiązują aż do wyjścia do Głównego
Manu.</translation>
+ <message>
+ <location filename="../programs/mythfrontend/globalsettings.cpp"
line="442"/>
+ <source>Auto-Expire instead of delete recording</source>
+- <translation>Autokasuj zamiast skasować</translation>
++ <translation>Auto-kasuj zamiast kasować ręcznie</translation>
+ </message>
+ <message>
+ <location filename="../programs/mythfrontend/globalsettings.cpp"
line="446"/>
+@@ -7674,7 +7674,7 @@ Proszę Czekać...</translation>
+ <message>
+ <location filename="../programs/mythfrontend/globalsettings.cpp"
line="503"/>
+ <source>Auto-Expire method</source>
+- <translation>Metoda Autkokasowania</translation>
++ <translation>Metoda auto-kasowania</translation>
+ </message>
+ <message>
+ <location filename="../programs/mythfrontend/globalsettings.cpp"
line="505"/>
+@@ -7719,7 +7719,7 @@ Proszę Czekać...</translation>
+ <message>
+ <location filename="../programs/mythfrontend/globalsettings.cpp"
line="554"/>
+ <source>Live TV max age (days)</source>
+- <translation>Maksymalny czas dla TV na Żywo</translation>
++ <translation>Maksymalny wiek dla TV na Żywo</translation>
+ </message>
+ <message>
+ <location filename="../programs/mythfrontend/globalsettings.cpp"
line="556"/>
+@@ -7734,7 +7734,7 @@ Proszę Czekać...</translation>
+ <message>
+ <location filename="../programs/mythfrontend/globalsettings.cpp"
line="590"/>
+ <source>If enabled, programs that have been marked as watched and are
Auto-Expired will be re-recorded if they are shown again.</source>
+- <translation>Jeśli zaznaczone - nagranie ozanczone jako obejrzane i
podlegające autokasowaniu będzie nagrane ponownie.</translation>
++ <translation>Jeśli zaznaczone - nagranie ozanczone jako obejrzane i
podlegające auto-kasowaniu będzie nagrane ponownie.</translation>
+ </message>
+ <message>
+ <location filename="../programs/mythfrontend/globalsettings.cpp"
line="601"/>
+@@ -7931,7 +7931,7 @@ Proszę Czekać...</translation>
+ <message>
+ <location filename="../programs/mythfrontend/globalsettings.cpp"
line="4577"/>
+ <source>General (Auto-Expire)</source>
+- <translation>Autokasowanie Nagrań</translation>
++ <translation>Auto-kasowanie Nagrań</translation>
+ </message>
+ <message>
+ <location filename="../programs/mythfrontend/globalsettings.cpp"
line="4595"/>
+@@ -9289,7 +9289,7 @@ Proszę Czekać...</translation>
+ <message>
+ <location filename="../html/htmlstrings.h"
line="217"/>
+ <source>There are no matching programs.</source>
+- <translation>Nie znaleziono pasujących programów</translation>
++ <translation>Nie znaleziono pasujących programów.</translation>
+ </message>
+ <message>
+ <location filename="../html/htmlstrings.h"
line="218"/>
+@@ -9372,7 +9372,7 @@ Proszę Czekać...</translation>
+ <message>
+ <location filename="../html/htmlstrings.h"
line="240"/>
+ <source>Auto-Expire</source>
+- <translation>Auto-Kasowanie</translation>
++ <translation>Auto-kasowanie</translation>
+ </message>
+ <message>
+ <location filename="../html/htmlstrings.h"
line="241"/>
+@@ -9477,7 +9477,7 @@ Proszę Czekać...</translation>
+ <message>
+ <location filename="../html/htmlstrings.h"
line="272"/>
+ <source>Allow Auto-Expire</source>
+- <translation>Pozwalaj na Auto-Kasowanie</translation>
++ <translation>Pozwalaj na Auto-kasowanie</translation>
+ </message>
+ <message>
+ <location filename="../html/htmlstrings.h"
line="275"/>
+@@ -9722,7 +9722,7 @@ Proszę Czekać...</translation>
+ <message>
+ <location filename="../html/htmlstrings.h"
line="347"/>
+ <source>There are no upcoming recordings.</source>
+- <translation>Brak przyszłych nagrań</translation>
++ <translation>Brak przyszłych nagrań.</translation>
+ </message>
+ <message>
+ <location filename="../html/htmlstrings.h"
line="349"/>
+@@ -11130,7 +11130,7 @@ Proszę Czekać...</translation>
+ <message>
+ <location filename="../programs/mythfrontend/globalsettings.cpp"
line="3318"/>
+ <source>UDP notify port</source>
+- <translation>Port UDP dla powiadomień</translation>
++ <translation>Port UDP dla powiadomień na OSD</translation>
+ </message>
+ <message>
+ <location filename="../programs/mythfrontend/globalsettings.cpp"
line="3322"/>
+@@ -11302,7 +11302,7 @@ Proszę Czekać...</translation>
+ <message>
+ <location filename="../programs/mythfrontend/globalsettings.cpp"
line="2014"/>
+ <source>Show suspend</source>
+- <translation>Pokazuj opcje 'uśpij'</translation>
++ <translation>Uśpij (na tej maszynie)</translation>
+ </message>
+ <message>
+ <location filename="../programs/mythfrontend/globalsettings.cpp"
line="2016"/>
+@@ -12167,7 +12167,7 @@ Proszę Czekać...</translation>
+ <message>
+ <location filename="../libs/libmythtv/tv_play.cpp"
line="621"/>
+ <source>Toggle the video aspect ratio</source>
+- <translation>Zmień aspekt Video</translation>
++ <translation>Zmień Aspekt Video</translation>
+ </message>
+ <message>
+ <location filename="../libs/libmythtv/tv_play.cpp"
line="623"/>
+@@ -12177,27 +12177,27 @@ Proszę Czekać...</translation>
+ <message>
+ <location filename="../libs/libmythtv/tv_play.cpp"
line="625"/>
+ <source>Toggle any captions</source>
+- <translation>Zmień napisy</translation>
++ <translation>Włącz/Wyłącz Napisy</translation>
+ </message>
+ <message>
+ <location filename="../libs/libmythtv/tv_play.cpp"
line="627"/>
+ <source>Enable any captions</source>
+- <translation>Włącz napisy</translation>
++ <translation>Włącz Napisy</translation>
+ </message>
+ <message>
+ <location filename="../libs/libmythtv/tv_play.cpp"
line="629"/>
+ <source>Disable any captions</source>
+- <translation>Wyłącz napisy</translation>
++ <translation>Wyłącz Napisy</translation>
+ </message>
+ <message>
+ <location filename="../libs/libmythtv/tv_play.cpp"
line="631"/>
+ <source>Toggle Teletext Captions</source>
+- <translation>Zmień napisy z Teletextu</translation>
++ <translation>Włącz/Wyłącz Teletext</translation>
+ </message>
+ <message>
+ <location filename="../libs/libmythtv/tv_play.cpp"
line="633"/>
+ <source>Toggle Subtitles</source>
+- <translation>Zmień napisy</translation>
++ <translation>Włącz/Wyłącz Napisy</translation>
+ </message>
+ <message>
+ <location filename="../libs/libmythtv/tv_play.cpp"
line="635"/>
+@@ -12217,7 +12217,7 @@ Proszę Czekać...</translation>
+ <message>
+ <location filename="../libs/libmythtv/tv_play.cpp"
line="641"/>
+ <source>Toggle External Subtitles</source>
+- <translation>Napisy z pliku On/Off</translation>
++ <translation>Włącz/Wyłącz Napisy z Pliku</translation>
+ </message>
+ <message>
+ <location filename="../libs/libmythtv/tv_play.cpp"
line="643"/>
+@@ -12232,7 +12232,7 @@ Proszę Czekać...</translation>
+ <message>
+ <location filename="../libs/libmythtv/tv_play.cpp"
line="647"/>
+ <source>Toggle Text Subtitles</source>
+- <translation>Napisy tekstowe On/Off</translation>
++ <translation>Włącz/Wyłącz Napisy Tekstowe</translation>
+ </message>
+ <message>
+ <location filename="../libs/libmythtv/tv_play.cpp"
line="650"/>
+@@ -13582,7 +13582,7 @@ Proszę Czekać...</translation>
+ <message>
+ <location filename="../libs/libmythui/mythdisplay.cpp"
line="154"/>
+ <source>Supported HDR formats : %1</source>
+- <translation>Supported HDR formats : %1</translation>
++ <translation>Wspierane formaty HDR : %1</translation>
+ </message>
+ <message>
+ <location filename="../libs/libmythui/mythdisplay.cpp"
line="156"/>
+@@ -13612,7 +13612,7 @@ Proszę Czekać...</translation>
+ <message>
+ <location filename="../libs/libmythui/mythdisplay.cpp"
line="179"/>
+ <source>Current screen : %1 %2</source>
+- <translation>Current screen : %1 %2</translation>
++ <translation>Aktualnie wyświetlający : %1 %2</translation>
+ </message>
+ <message>
+ <location filename="../libs/libmythui/mythdisplay.cpp"
line="181"/>
+@@ -13622,12 +13622,12 @@ Proszę Czekać...</translation>
+ <message>
+ <location filename="../libs/libmythui/mythdisplay.cpp"
line="182"/>
+ <source>Size</source>
+- <translation>Size</translation>
++ <translation>Rozmiar</translation>
+ </message>
+ <message>
+ <location filename="../libs/libmythui/mythdisplay.cpp"
line="188"/>
+ <source>Aspect ratio</source>
+- <translation>Aspect ratio</translation>
++ <translation>Proporcje obrazu</translation>
+ </message>
+ <message>
+ <location filename="../libs/libmythui/mythdisplay.cpp"
line="192"/>
+@@ -14408,22 +14408,22 @@ Proszę Czekać...</translation>
+ <message>
+ <location filename="../libs/libmythtv/mythsystemevent.cpp"
line="441"/>
+ <source>Client connected to master backend</source>
+- <translation>Klient podłączył się do głównego
Backend'u</translation>
++ <translation>Klient podłączył się do głównego
Backend'a</translation>
+ </message>
+ <message>
+ <location filename="../libs/libmythtv/mythsystemevent.cpp"
line="443"/>
+ <source>Client disconnected from master backend</source>
+- <translation>Klient odłączył się od głównego
Backend'u</translation>
++ <translation>Klient odłączył się od głównego
Backend'a</translation>
+ </message>
+ <message>
+ <location filename="../libs/libmythtv/mythsystemevent.cpp"
line="445"/>
+ <source>Slave backend connected to master</source>
+- <translation>Podrzędny Backend podłączył się do głównego
Backend'u</translation>
++ <translation>Podrzędny Backend podłączył się do głównego
Backend'a</translation>
+ </message>
+ <message>
+ <location filename="../libs/libmythtv/mythsystemevent.cpp"
line="447"/>
+ <source>Slave backend disconnected from master</source>
+- <translation>Podrzędny Backend odłączył się od głównego
Backend'u</translation>
++ <translation>Podrzędny Backend odłączył się od głównego
Backend'a</translation>
+ </message>
+ <message>
+ <location filename="../libs/libmythtv/mythsystemevent.cpp"
line="449"/>
+@@ -16428,7 +16428,7 @@ name cannot be blank.</source>
+ <message>
+ <location filename="../programs/mythfrontend/globalsettings.cpp"
line="786"/>
+ <source>Max CPUs</source>
+- <translation>maks. rdzeni</translation>
++ <translation>Ilość rdzeni CPU dekodująca video (dla dekodowania
programowego)</translation>
+ </message>
+ <message>
+ <location filename="../programs/mythfrontend/globalsettings.cpp"
line="789"/>
+@@ -16650,7 +16650,7 @@ name cannot be blank.</source>
+ <location filename="../programs/mythfrontend/globalsettings.cpp"
line="1228"/>
+ <source>&</source>
+ <comment>and</comment>
+- <translation>ii</translation>
++ <translation>i</translation>
+ </message>
+ <message>
+ <location filename="../programs/mythfrontend/globalsettings.cpp"
line="840"/>
+@@ -16802,7 +16802,7 @@ name cannot be blank.</source>
+ <message>
+ <location filename="../programs/mythfrontend/globalsettings.cpp"
line="356"/>
+ <source>Commercial skip automatic rewind amount (secs)</source>
+- <translation>Automatyczne przewijanie (w sek.) podczas przeskakiwania
reklam</translation>
++ <translation>Automatycznie przewijaj podczas przeskakiwania reklam
(sek.)</translation>
+ </message>
+ <message>
+ <location filename="../programs/mythfrontend/globalsettings.cpp"
line="359"/>
+@@ -16812,7 +16812,7 @@ name cannot be blank.</source>
+ <message>
+ <location filename="../programs/mythfrontend/globalsettings.cpp"
line="372"/>
+ <source>Commercial skip notify amount (secs)</source>
+- <translation>Wcześ. powiadamianie o relamie (sek)</translation>
++ <translation>Powiadamiaj wcześniej o relamie (sek)</translation>
+ </message>
+ <message>
+ <location filename="../programs/mythfrontend/globalsettings.cpp"
line="374"/>
+@@ -16884,7 +16884,7 @@ name cannot be blank.</source>
+ <message>
+ <location filename="../programs/mythfrontend/globalsettings.cpp"
line="1441"/>
+ <source>Episode sort orderings</source>
+- <translation>Typ Sortowania Epizodów</translation>
++ <translation>Kolejność Sortowania Epizodów</translation>
+ </message>
+ <message>
+ <location filename="../programs/mythfrontend/globalsettings.cpp"
line="1456"/>
+@@ -17068,7 +17068,7 @@ name cannot be blank.</source>
+ <message>
+ <location filename="../programs/mythfrontend/globalsettings.cpp"
line="4494"/>
+ <source>Seeking</source>
+- <translation>Wyszukuję</translation>
++ <translation>Przewijanie Nagrań</translation>
+ </message>
+ <message>
+ <location filename="../programs/mythfrontend/globalsettings.cpp"
line="4502"/>
+@@ -17215,7 +17215,7 @@ name cannot be blank.</source>
+ <message>
+ <location filename="../programs/mythfrontend/globalsettings.cpp"
line="3544"/>
+ <source>Sort titles</source>
+- <translation>Sortowanie</translation>
++ <translation>Sortowanie Nagrań</translation>
+ </message>
+ <message>
+ <location filename="../programs/mythfrontend/globalsettings.cpp"
line="3546"/>
+@@ -17876,7 +17876,7 @@ name cannot be blank.</source>
+ <message>
+ <location filename="../programs/mythfrontend/progdetails.cpp"
line="827"/>
+ <source>Auto-expire off</source>
+- <translation>Automatyczna deaktualizacja Wyłączona</translation>
++ <translation>Auto-kasowanie Wyłączone</translation>
+ </message>
+ <message>
+ <location filename="../programs/mythfrontend/progdetails.cpp"
line="830"/>
+@@ -17936,7 +17936,7 @@ name cannot be blank.</source>
+ <message>
+ <location filename="../programs/mythfrontend/progdetails.cpp"
line="302"/>
+ <source> not matched</source>
+- <translation> nie ma pasujących</translation>
++ <translation> Nie ma pasujących</translation>
+ </message>
+ <message>
+ <location filename="../programs/mythfrontend/progdetails.cpp"
line="305"/>
+@@ -22168,12 +22168,12 @@ Your grabber does not provide channel numbers, so you have to
set them manually.
+ <message>
+ <location filename="../libs/libmythtv/videoouttypes.h"
line="202"/>
+ <source>Ignore</source>
+- <translation type="unfinished">Ignoruj</translation>
++ <translation>Ignoruj</translation>
+ </message>
+ <message>
+ <location filename="../libs/libmythtv/videoouttypes.h"
line="203"/>
+ <source>Detect</source>
+- <translation type="unfinished">Wykryj</translation>
++ <translation>Wykryj</translation>
+ </message>
+ <message>
+ <location filename="../libs/libmythtv/videoouttypes.h"
line="204"/>
+@@ -22183,7 +22183,7 @@ Your grabber does not provide channel numbers, so you have to set
them manually.
+ <message>
+ <location filename="../libs/libmythtv/videoouttypes.h"
line="205"/>
+ <source>Interlaced</source>
+- <translation type="unfinished"></translation>
++ <translation>Z przeplotem</translation>
+ </message>
+ <message>
+ <source>Interlaced (Normal)</source>
+@@ -22192,7 +22192,7 @@ Your grabber does not provide channel numbers, so you have to set
them manually.
+ <message>
+ <location filename="../libs/libmythtv/videoouttypes.h"
line="206"/>
+ <source>Interlaced (Reversed)</source>
+- <translation type="unfinished">Przeplot
(odwrot.)</translation>
++ <translation>Z Odwrotnym Przeplotem</translation>
+ </message>
+ <message>
+ <location filename="../libs/libmythtv/videoouttypes.h"
line="292"/>
+@@ -23384,12 +23384,12 @@ Your grabber does not provide channel numbers, so you have to
set them manually.
+ <message>
+ <location filename="../libs/libmythtv/tv.cpp"
line="80"/>
+ <source>Auto-Skip ON</source>
+- <translation>Automatyczne</translation>
++ <translation>Automatycznie Przeskakuj</translation>
+ </message>
+ <message>
+ <location filename="../libs/libmythtv/tv.cpp"
line="81"/>
+ <source>Auto-Skip Notify</source>
+- <translation>Tylko powiadom</translation>
++ <translation>Tylko Powiadamiaj</translation>
+ </message>
+ <message>
+ <source>High Quality</source>
+@@ -26159,7 +26159,7 @@ No other details</source>
+ <location filename="../programs/mythfrontend/statusbox.cpp"
line="143"/>
+ <location filename="../programs/mythfrontend/statusbox.cpp"
line="319"/>
+ <source>AutoExpire List</source>
+- <translation>Lista do auto-deaktualizacji</translation>
++ <translation>Lista do auto-kasowania</translation>
+ </message>
+ <message>
+ <source>Acknowledge all log entries at this priority level or
lower?</source>
+@@ -26486,7 +26486,7 @@ No other details</source>
+ <message>
+ <location filename="../programs/mythfrontend/statusbox.cpp"
line="1565"/>
+ <source>The AutoExpire List shows all recordings which may be expired and
the order of their expiration. Recordings at the top of the list will be expired
first.</source>
+- <translation>Lista auto-unieważniania pokazuje listę nagrań, które będą w
pierwszej kolejności podlegały nieważnieniu. Pozycje na szczycie listy będą
pierwsze.</translation>
++ <translation>Lista auto-kasowania pokazuje listę nagrań, które będą w
pierwszej kolejności podlegały automatycznemu skasowaniu. Pozycje na szczycie listy będą
kasowane jako pierwsze.</translation>
+ </message>
+ <message numerus="yes">
+ <location filename="../programs/mythfrontend/statusbox.cpp"
line="534"/>
+@@ -27325,7 +27325,7 @@ Directory From Storage Group?</source>
+ <location filename="../libs/libmythtv/tv_play.cpp"
line="6979"/>
+ <location filename="../libs/libmythtv/tv_play.cpp"
line="9207"/>
+ <source>Adjust Time Stretch</source>
+- <translation>Ustaw prędkość</translation>
++ <translation>Zmień Prędkość</translation>
+ </message>
+ <message>
+ <source>Audio Resync</source>
+@@ -27623,12 +27623,12 @@ Czy chesz dalej oglądać?</translation>
+ <message>
+ <location filename="../libs/libmythtv/tv_play.cpp"
line="8835"/>
+ <source>Disable Forced Subtitles</source>
+- <translation>Wyłącz Forced Subtitles</translation>
++ <translation>Wyłącz Wymuszone Napisy</translation>
+ </message>
+ <message>
+ <location filename="../libs/libmythtv/tv_play.cpp"
line="8844"/>
+ <source>Enable Forced Subtitles</source>
+- <translation>Włącz Forced Subtitles</translation>
++ <translation>Włącz Wymuszone Napisy</translation>
+ </message>
+ <message>
+ <location filename="../libs/libmythtv/tv_play.cpp"
line="8851"/>
+@@ -27713,12 +27713,12 @@ Czy chesz dalej oglądać?</translation>
+ <message>
+ <location filename="../libs/libmythtv/tv_play.cpp"
line="8993"/>
+ <source>Turn Auto-Expire OFF</source>
+- <translation>Wyłącz Autokasowanie</translation>
++ <translation>Wyłącz Auto-kasowanie</translation>
+ </message>
+ <message>
+ <location filename="../libs/libmythtv/tv_play.cpp"
line="8993"/>
+ <source>Turn Auto-Expire ON</source>
+- <translation>Włącz Autokasowanie</translation>
++ <translation>Włącz Auto-kasowanie</translation>
+ </message>
+ <message>
+ <location filename="../libs/libmythtv/tv_play.cpp"
line="9190"/>
+@@ -27787,12 +27787,12 @@ Czy chesz dalej oglądać?</translation>
+ <message>
+ <location filename="../libs/libmythtv/tv_play.cpp"
line="9380"/>
+ <source>Auto-Expire OFF</source>
+- <translation>Autokasowanie Wyłączone</translation>
++ <translation>Auto-kasowanie Wyłączone</translation>
+ </message>
+ <message>
+ <location filename="../libs/libmythtv/tv_play.cpp"
line="9385"/>
+ <source>Auto-Expire ON</source>
+- <translation>Włącz Autokasowanie</translation>
++ <translation>Włącz Auto-kasowanie</translation>
+ </message>
+ <message>
+ <location filename="../libs/libmythtv/tv_play.cpp"
line="8075"/>
+@@ -35995,7 +35995,7 @@ When you have completed your configuration, press
"OK" to search.</sou
+ <message>
+ <location filename="../themes/themestrings.h"
line="389"/>
+ <source>Allow Recordings to Auto-Expire</source>
+- <translation>Pozwól na Autokasowanie</translation>
++ <translation>Pozwól na Auto-kasowanie</translation>
+ </message>
+ <message>
+ <location filename="../themes/themestrings.h"
line="1441"/>
+@@ -41983,12 +41983,12 @@ If you select "Use Default Player," the
player command set for the ext
+ <message>
+ <location filename="../programs/mythfrontend/globalsettings.cpp"
line="2396"/>
+ <source>GUI</source>
+- <translation>GUI</translation>
++ <translation>Rozdzielczość GUI</translation>
+ </message>
+ <message>
+ <location filename="../programs/mythfrontend/globalsettings.cpp"
line="2398"/>
+ <source>Resolution of screen when not watching a video.</source>
+- <translation>Rozdzielczość ekranu gdy nie oglądasz
video/TV.</translation>
++ <translation>Rozdzielczość ekranu dla GUI.</translation>
+ </message>
+ <message>
+ <location filename="../programs/mythfrontend/globalsettings.cpp"
line="2434"/>
+@@ -42003,7 +42003,7 @@ If you select "Use Default Player," the player
command set for the ext
+ <message>
+ <location filename="../programs/mythfrontend/globalsettings.cpp"
line="2442"/>
+ <source>Video output</source>
+- <translation>Wyjście video</translation>
++ <translation>Rozdzielczość video</translation>
+ </message>
+ <message>
+ <location filename="../programs/mythfrontend/globalsettings.cpp"
line="2443"/>
+@@ -42442,7 +42442,7 @@ Jeśli ta grupa nie istnieje, usuń ją z
konfiguracji</translation>
+ <message>
+ <location filename="../programs/mythfrontend/globalsettings.cpp"
line="3595"/>
+ <source>Set this if you turn off Auto-Expire only for recordings that
you've seen and intend to keep. This option will exclude these recordings from
the 'Watch List'.</source>
+- <translation>Zaznacz jeśli praktykujesz wyłączanie Autokasowania wyłącznie
dla nagrań które już obejżałeś i które zachowujesz na później. Nagrana tebędą pominięte
także w "Liście Podręcznej".</translation>
++ <translation>Zaznacz jeśli praktykujesz wyłączanie Auto-kasowania
wyłącznie dla nagrań które już obejżałeś i które zachowujesz na później. Nagrana te będą
pominięte także w Liście Podręcznej.</translation>
+ </message>
+ <message>
+ <source>Sort method</source>
+@@ -42465,7 +42465,7 @@ Jeśli ta grupa nie istnieje, usuń ją z
konfiguracji</translation>
+ <message>
+ <location filename="../programs/mythfrontend/globalsettings.cpp"
line="3608"/>
+ <source>Maximum days counted in the score</source>
+- <translation>Maks. liczba dni branych do rankingu</translation>
++ <translation>Maksymalna liczba dni branych do
rankingu</translation>
+ </message>
+ <message>
+ <location filename="../programs/mythfrontend/globalsettings.cpp"
line="3612"/>
+
+From 8503454c6a655f7f5f2372409c0479a126399309 Mon Sep 17 00:00:00 2001
+From: DFDario <ddafre(a)gmail.com>
+Date: Sat, 2 Mar 2024 19:38:24 +0100
+Subject: [PATCH 12/21] Translations: Update webapp translation source file
+ (Italian) (#871)
+
+* Updated Italian translation
+
+While checking the Italian translation status I found three new sentences from my last
update from yesterday so I released a new one
+
+* Add files via upload
+
+(cherry picked from commit 27ecfd2410f407ffa31fea2bd6a14ebab72fabda)
+---
+ mythtv/html/assets/i18n/it.json | 790 ++++++++++++++++----------------
+ 1 file changed, 395 insertions(+), 395 deletions(-)
+
+diff --git a/mythtv/html/assets/i18n/it.json b/mythtv/html/assets/i18n/it.json
+index 9da654c7029..1be20836fe3 100644
+--- a/mythtv/html/assets/i18n/it.json
++++ b/mythtv/html/assets/i18n/it.json
+@@ -1,12 +1,12 @@
+ {
+ "common": {
+ "back": "Indietro",
+- "backenderror": "Errore di back-end.",
++ "backenderror": "Errore Back-end.",
+ "cancel": "Annulla",
+- "close": "Vicino",
++ "close": "Chiudi",
+ "continue": "Continua a modificare",
+ "default": "Predefinito",
+- "delete": "Eliminare",
++ "delete": "Elimina",
+ "failed": "Fallito",
+ "filter": {
+ "contains": "Contiene",
+@@ -16,90 +16,90 @@
+ "help": "Aiuto",
+ "instructions": "Istruzioni",
+ "loading": "Caricamento in corso",
+- "networkfail": "ERRORE: errore di rete back-end",
+- "next": "Prossimo",
++ "networkfail": "ERRORE: errore rete del Back-end",
++ "next": "Successivo",
+ "no": "NO",
+ "nosave": "Chiudi senza salvare",
+ "ok": "OK",
+ "priority": "Priorità",
+- "refresh": "ricaricare",
++ "refresh": "Ricarica",
+ "save": "Salva",
+ "savesuccess": "Salvato con successo",
+- "selected_menu": "Seleziona una o più righe di seguito e fai clic
qui per eseguire un'azione su di esse. In alternativa, fare clic con il pulsante
destro del mouse sulle righe selezionate.",
++ "selected_menu": "Seleziona una o più righe contigue e fai clic
qui per eseguire un'azione su di esse. In alternativa, fai clic con il pulsante destro
del mouse sulle righe selezionate.",
+ "submit": "Invia",
+- "success": "Successo",
++ "success": "Riuscito",
+ "unsaved_heading": "Modifiche non salvate",
+ "unsaved_message": "Sono presenti modifiche non salvate.",
+- "yes": "SÌ"
++ "yes": "Sì"
+ },
+ "dashboard": {
+- "backendStatus": "Stato back-end",
+- "channeleditor": "Editor di canali",
++ "backendStatus": "Stato Back-end",
++ "channeleditor": "Editor Canali",
+ "guide": {
+ "calendar_tip": "Selettore data: seleziona prima l'ora,
poi la data.",
+ "catcolors": "Categoria Colori",
+ "channel": "Canale",
+- "channel_group": "Gruppo di canali",
++ "channel_group": "Gruppo di Canali",
+ "color_customize": "Personalizza i colori modificando questo
file:",
+- "color_expl": "Gli spettacoli con categorie che non hanno un
colore Categoria utilizzano il colore Tipo categoria.",
+- "color_includes": "Questo elenco include solo i colori per i
programmi nella pagina corrente della guida. L'elenco completo dei colori è nel file
indicato di seguito.",
++ "color_expl": "Gli show con categorie che non hanno un colore
Categoria utilizzano il colore Tipo categoria.",
++ "color_includes": "Questo elenco contempla solo i colori dei
programmi della pagina corrente della guida. L'elenco completo dei colori è nel file
indicato di seguito.",
+ "colors": "Colori",
+ "full_search": "Ricerca completa",
+- "people_search": "Cerca persone",
++ "people_search": "Cerca Persone",
+ "retgrid": "Ritorna alla visualizzazione della
griglia",
+ "title_search": "Ricerca del titolo",
+- "typecolors": "Categoria Tipo Colori"
++ "typecolors": "Colori Tipo Categoria"
+ },
+- "programguide": "Guida al programma",
++ "programguide": "Guida programmi",
+ "recordings": {
+ "actionsselected": "Azioni su {{ num }} registrazioni
selezionate",
+- "airdate": "Airdate",
++ "airdate": "Messa in onda",
+ "alreadydel": "Già cancellato",
+- "canundel": "Puoi invertire questa situazione utilizzando
Undelete.",
++ "canundel": "Puoi invertire questa situazione utilizzando
Ripristina.",
+ "channel": "Canale",
+ "damaged": "Danneggiato",
+ "delete_details": "Questa operazione eliminerà la regola di
registrazione",
+ "delete_rule": "Elimina regola di registrazione",
+ "description": "Descrizione",
+- "download": "Scarica la registrazione",
++ "download": "Scarica registrazione",
+ "duration": "Durata",
+ "edit_metadata": "Modifica metadati",
+ "edit_rule": "Modifica regola di registrazione",
+ "episode": "Episodio",
+- "file_size": "Dimensione del file",
+- "filename_label": "Nome del file",
++ "file_size": "Dimensione file",
++ "filename_label": "Nome file",
+ "filter": "Filtro",
+ "heading": "Registrazioni",
+ "inetref": "InetRif",
+- "job_Commflag": "Rileva spot pubblicitari",
++ "job_Commflag": "Rileva Pubblicità",
+ "job_Metadata": "Cerca Metadati",
+ "job_Transcode": "Transcodifica con il profilo
predefinito",
+ "jobsselected": "Esegui lavori su {{ num }} registrazioni
selezionate",
+- "mnu_delete": "Eliminare",
++ "mnu_delete": "Elimina",
+ "mnu_delete_rerec": "Elimina e consenti nuova
registrazione",
+ "mnu_markdamaged": "Contrassegna come danneggiato",
+- "mnu_markundamaged": "Contrassegna come intatto",
+- "mnu_markunwatched": "Contrassegna come non
sorvegliato",
+- "mnu_markwatched": "Contrassegna come osservato",
++ "mnu_markundamaged": "Contrassegna come integro",
++ "mnu_markunwatched": "Contrassegna come non visto",
++ "mnu_markwatched": "Contrassegna come visto",
+ "mnu_rerec": "Consenti nuova registrazione",
+ "mnu_runjobs": "Esegui lavori",
+ "mnu_stoprec": "Interrompi la registrazione",
+- "mnu_undelete": "Annulla cancellazione",
++ "mnu_undelete": "Ripristina",
+ "mnu_updatemeta": "Aggiorna metadati",
+ "mnu_updaterecgrp": "Cambia gruppo di registrazione",
+- "mnu_updaterecrule": "Aggiorna regola record",
+- "nonrerec": "Per consentire la riregistrazione del programma
danneggiato, utilizzare Consenti riregistrazione.",
+- "orig_airdate": "Data di messa in onda originale",
+- "override_rule": "Aggiungi o modifica regola di
sostituzione",
++ "mnu_updaterecrule": "Aggiorna regola registrazione",
++ "nonrerec": "Per consentire la ri-registrazione del programma
danneggiato, utilizzare Consenti ri-registrazione.",
++ "orig_airdate": "Data messa in onda originale",
++ "override_rule": "Aggiungi o modifica regola di
esclusione",
+ "recgrp": "Rec Grp",
+- "seas_ep": "Mari Ep",
++ "seas_ep": "Stag Ep",
+ "season": "Stagione",
+ "selrecgroup": "Seleziona Gruppo di registrazione",
+ "stop_details": "Questo interromperà la registrazione",
+ "stop_recording": "Interrompi la registrazione",
+ "subtitle": "Sottotitolo",
+ "title": "Titolo",
+- "watched": "Guardato"
++ "watched": "Visto"
+ },
+ "recrule": {
+ "type": "Tipo"
+@@ -126,29 +126,29 @@
+ },
+ "dupin_label": "Ambito di ricerca duplicato",
+ "dupmethod": {
+- "d": "Abbina i duplicati usando la descrizione",
++ "d": "Abbina duplicati usando la descrizione",
+ "none": "Non abbinare i duplicati",
+- "s": "Abbina i duplicati usando i sottotitoli",
++ "s": "Abbina duplicati usando i sottotitoli",
+ "s_and_d": "Corrispondenza utilizzando sottotitoli e
descrizione",
+ "s_then_d": "Abbina usando i sottotitoli e poi la
descrizione"
+ },
+- "dupmethod_label": "Metodo di corrispondenza
duplicato",
++ "dupmethod_label": "Metodo di confronto duplicato",
+ "duration_label": "Durata",
+ "endoffset_label": "Numero di minuti extra da registrare alla
fine",
+ "extend_none": "Nessuno",
+ "filters_label": "Opzioni filtro",
+ "heading": "Pianifica la registrazione",
+- "inetref_desc": "Usa TheTVDB, TVmaze o TMDB per cercare i
metadati delle registrazioni. Selezionare un pulsante di opzione in alto e utilizzare il
collegamento per cercare nel sito web. Una volta trovata la serie corretta sulla pagina
web, selezionala e copia l'id numerico dall'URL, o dalla pagina web nel caso di
thetvdb.com. Inseriscilo nella casella di input subito dopo il prefisso xxxx.py_",
++ "inetref_desc": "Usa TheTVDB, TVmaze o TMDB per cercare i
metadati delle registrazioni. Seleziona un pulsante di opzione in alto e utilizza il
collegamento per la ricerca nel sito web. Una volta trovata la serie corretta nella pagina
web, selezionala e copia l'id numerico dall'URL, o dalla pagina web nel caso di
thetvdb.com. Inseriscilo quindi nella campo subito dopo il prefisso xxxx.py_",
+ "inetref_label": "ID ricerca metadati (InetRef)",
+ "input_any": "Qualsiasi input",
+- "isearch": "Ricerca",
++ "isearch": "Cerca",
+ "maxeps_label": "Numero massimo di episodi da
conservare",
+ "maxnewest_desc": "Se deselezionato, interrompe la
registrazione quando viene raggiunto il numero massimo di episodi.",
+- "maxnewest_label": "Cancellazione al numero massimo di
episodi",
++ "maxnewest_label": "Cancella raggiungiunto il numero massimo
episodi",
+ "newepis_label": "Registra solo nuovi episodi",
+ "playgroup_label": "Gruppo di riproduzione",
+ "postproc": {
+- "autocommflag": "Registrazioni di bandiere
commerciali",
++ "autocommflag": "Rileva Pubblicità Registrazioni",
+ "autometalookup": "Cerca Metadati",
+ "autotranscode": "Transcodifica registrazioni"
+ },
+@@ -159,42 +159,42 @@
+ "recprof": {
+ "default": "Predefinito",
+ "highq": "Alta qualità",
+- "livetv": "Tv dal vivo",
+- "lowq": "Di bassa qualità"
++ "livetv": "Diretta Tv",
++ "lowq": "Bassa qualità"
+ },
+ "recprofile_label": "Profilo di registrazione",
+ "sgroup_label": "Gruppo di archiviazione",
+- "sqlwhere_label": "Condizione SQL Where",
+- "srchValue_label": "Valore di ricerca",
+- "srchtype_label": "Tipo di ricerca",
++ "sqlwhere_label": "Condizione Where SQL",
++ "srchValue_label": "Valore ricerca",
++ "srchtype_label": "Tipo ricerca",
+ "startoffset_label": "Numero di minuti extra da registrare
all'avvio",
+- "starttime_label": "Data e ora di inizio",
++ "starttime_label": "Data-ora inizio",
+ "subtitle_label": "Sottotitolo",
+ "template_label": "Usa modello",
+ "title_label": "Titolo",
+ "type": {
+- "all": "Registra tutte le proiezioni",
+- "daily": "Registra una proiezione ogni giorno",
+- "del_override": "Registra questo spettacolo con le
opzioni normali",
+- "del_template": "Elimina questo modello di regola di
registrazione",
+- "dont_rec_override": "Non registrare questa
proiezione",
+- "mod_template": "Modifica questo modello di regola di
registrazione",
++ "all": "Registra tutti i programmi",
++ "daily": "Registra un programma al giorno",
++ "del_override": "Registra questo programma con le opzioni
normali",
++ "del_template": "Elimina questo modello regola di
registrazione",
++ "dont_rec_override": "Non registrare questo
programma",
++ "mod_template": "Modifica questo modello regola di
registrazione",
+ "not": "Non registrare questo programma",
+- "one": "Registra solo una proiezione",
+- "rec_override": "Registra questa visualizzazione con le
opzioni di sostituzione",
+- "this": "Registra solo questa proiezione",
+- "weekly": "Registra una proiezione ogni settimana"
++ "one": "Registra solo un evento",
++ "rec_override": "Registra questo programma con le opzioni
di esclusione",
++ "this": "Registra solo questo evento",
++ "weekly": "Registra un evento la settimana"
+ },
+- "type_label": "Tipo di pianificazione"
++ "type_label": "Tipo pianificazione"
+ },
+- "scrolltabsleft": "Scorri le schede a sinistra",
+- "scrolltabsright": "Scorri le schede verso destra",
++ "scrolltabsleft": "Scorri schede a sinistra",
++ "scrolltabsright": "Scorri schede a destra",
+ "status": {
+ "backends_detail": "Backend: {{ Name }} è un {{ Type }} su IP
{{ IP }}",
+- "backends_none": "Nessun backend",
++ "backends_none": "Nessun Backend",
+ "backends_title": "Backend",
+- "card_text": "Carta: {{ CardId }}, Input: {{ Id }} è {{
InputName }}, Nome visualizzato: {{ DisplayName }}",
+- "encoder_text": "Il codificatore {{ Id }} è sull'host {{
HostName }}, Stato: {{ State }}",
++ "card_text": "Scheda: {{ CardId }}, Input: {{ Id }} è {{
InputName }}, Nome visualizzato: {{ DisplayName }}",
++ "encoder_text": "Encoder {{ Id }} è sull'host {{ HostName
}}, Stato: {{ State }}",
+ "encoder_title": "Stato dell'encoder",
+ "endtime_text": "Questa registrazione dovrebbe terminare alle
{{ EndTime }}.",
+ "frontends_detail": "Frontend: {{ Name }}, Porta IP: {{ IP
}}:{{ Port }}, Online: {{ OnLine }}",
+@@ -203,32 +203,32 @@
+ "jobs_none": "La coda dei processi è attualmente
vuota",
+ "jobs_status": "Stato",
+ "jobs_text": "Lavori attualmente in coda o terminati di
recente",
+- "jobs_title": "Coda di lavoro",
++ "jobs_title": "Coda lavori",
+ "mach": {
+- "disk_details": "Dettagli sull'utilizzo del
disco",
++ "disk_details": "Dettagli utilizzo disco",
+ "disk_dirs": "Directory",
+- "disk_none": "Nessuna informazione sul disco
disponibile",
+- "disk_summ": "Riepilogo dell'utilizzo del
disco",
++ "disk_none": "Informazione disco non disponibile",
++ "disk_summ": "Riepilogo utilizzo disco",
+ "disk_total": "Spazio totale su disco",
+ "load": "Il carico medio di questa macchina",
+ "minute": "Minuto",
+ "minutes": "Minuti",
+- "myth_drive": "Mito TV Drive",
++ "myth_drive": "Disco MythTV",
+ "mythfill_last": "L'ultima esecuzione del database
mythfill è iniziata il {{GuideStart}} ed è terminata il {{GuideEnd}},
{{GuideStatus}}",
+- "mythfill_next": "Prossima esecuzione suggerita di
mythfilldatabase {{GuideNext}}.",
+- "mythfill_until": "Ci sono dati guida fino a
{{GuideThru}} ({{GuideDays}} giorni).",
+- "none": "Nessuna informazione sulla macchina
disponibile",
+- "space_after_expire": "Spazio disponibile dopo la
scadenza automatica",
++ "mythfill_next": "Prossima esecuzione di mythfilldatabase
suggerita {{GuideNext}}.",
++ "mythfill_until": "Ci sono palinsesti fino a
{{GuideThru}} ({{GuideDays}} giorni).",
++ "none": "Non ci sono informazioni sulla macchina",
++ "space_after_expire": "Spazio disponibile dopo
auto-scadenza",
+ "space_deleted": "Spazio utilizzato dalle registrazioni
eliminate",
+- "space_expirable": "Spazio utilizzato dalle registrazioni
con scadenza automatica",
++ "space_expirable": "Spazio utilizzato dalle registrazioni
in auto-scadenza",
+ "space_free": "Spazio libero",
+- "space_livetv": "Spazio utilizzato da LiveTV",
++ "space_livetv": "Spazio utilizzato da Diretta TV",
+ "space_used": "Spazio utilizzato",
+ "title": "Informazioni sulla macchina",
+ "total_space": "Spazio totale"
+ },
+ "misc_title": "Varie",
+- "no_encoders": "Il backend non ha codificatori",
++ "no_encoders": "Il backend non ha encoder",
+ "schedule_none": "Niente da registrare",
+ "schedule_text": "I prossimi {{ length }} spettacoli
programmati per la registrazione.",
+ "schedule_title": "Programma"
+@@ -236,18 +236,18 @@
+ "undefselection": "Alcune righe selezionate non sono state
caricate. Scorri l'elenco e seleziona nuovamente le righe.",
+ "upcoming": {
+ "date": "Data",
+- "encoder": "Codificatore",
++ "encoder": "Encoder",
+ "heading": "In arrivo",
+ "recrule": "Regola di registrazione",
+ "showall": "Tutti i valori di stato",
+ "status": "Stato",
+- "time": "Tempo"
++ "time": "Ora"
+ },
+ "videos": {
+ "download": "Scarica video",
+ "heading": "Video",
+- "releasedate": "Data di rilascio",
+- "showall": "Appiattire elenchi di directory"
++ "releasedate": "Data rilascio",
++ "showall": "Appiattisci elenchi directory"
+ }
+ },
+ "data": {
+@@ -257,22 +257,22 @@
+ "Conflict": "Conflitto",
+ "CurrentRecording": "Registrazione corrente",
+ "DontRecord": "Non registrare",
+- "EarlierShowing": "In precedenza Mostrando",
++ "EarlierShowing": "Visto recentemente",
+ "Failed": "Fallito",
+- "Failing": "Fallire",
++ "Failing": "Fallendo",
+ "Inactive": "Inattivo",
+- "LaterShowing": "Più tardi Mostrando",
++ "LaterShowing": "Prossima visione",
+ "LowDiskSpace": "Poco spazio sul disco",
+- "Missed": "perse",
+- "MissedFuture": "Futuro mancato",
++ "Missed": "Persi",
++ "MissedFuture": "Persi in futuro",
+ "NeverRecord": "Non registrare mai",
+ "NotListed": "Non elencato",
+- "Offline": "disconnesso",
++ "Offline": "Disconnesso",
+ "Pending": "In attesa di",
+ "PreviousRecording": "Registrazione precedente",
+ "Recorded": "Registrato",
+ "Recording": "Registrazione",
+- "Repeat": "Ripetere",
++ "Repeat": "Ripeti",
+ "TooManyRecordings": "Troppe registrazioni",
+ "TunerBusy": "Sintonizzatore occupato",
+ "Tuning": "Messa a punto",
+@@ -286,28 +286,28 @@
+ "dashboard": "Cruscotto",
+ "hide": "Nascondi banner superiore",
+ "login": "Accesso",
+- "mainheading": "Back-end di MythTV",
+- "show": "Mostra banner in alto",
++ "mainheading": "Back-end MythTV",
++ "show": "Mostra banner superiore",
+ "switchServer": "Cambia server",
+ "switchTheme": "Cambia tema",
+ "testbed": "Banco di prova",
+- "tvGuide": "guida tv"
++ "tvGuide": "Guida tv"
+ },
+ "primeng": {
+- "accept": "SÌ",
++ "accept": "Sì",
+ "addRule": "Aggiungi regola",
+ "after": "Dopo",
+- "apply": "Fare domanda a",
++ "apply": "Applica",
+ "before": "Prima",
+ "cancel": "Annulla",
+- "choose": "Scegliere",
+- "clear": "Chiaro",
++ "choose": "Scegli",
++ "clear": "Cancella",
+ "contains": "Contiene",
+ "dateAfter": "La data è dopo",
+- "dateBefore": "La data è precedente",
++ "dateBefore": "La data è prima",
+ "dateFormat": "mm/gg/aa",
+ "dateIs": "La data è",
+- "dateIsNot": "La data non lo è",
++ "dateIsNot": "La data non è",
+ "dayNames": [
+ "Domenica",
+ "Lunedi",
+@@ -318,21 +318,21 @@
+ "Sabato"
+ ],
+ "dayNamesMin": [
+- "Su",
+- "Mo",
+- "Tu",
+- "Noi",
++ "Do",
++ "Lu",
++ "Ma",
++ "Me",
+ "Gi",
+- "Fr",
++ "Ve",
+ "Sa"
+ ],
+ "dayNamesShort": [
+- "Sole",
+- "lun",
++ "Dom",
++ "Lun",
+ "Mar",
+- "mer",
+- "gio",
+- "ven",
++ "Mer",
++ "Gio",
++ "Ven",
+ "Sab"
+ ],
+ "emptyFilterMessage": "Nessun risultato trovato",
+@@ -345,93 +345,93 @@
+ "isNot": "Non è",
+ "lt": "Meno di",
+ "lte": "Minore o uguale a",
+- "matchAll": "Abbina tutto",
+- "matchAny": "Abbina qualsiasi",
+- "medium": "medio",
++ "matchAll": "Trova tutto",
++ "matchAny": "Trova qualsiasi",
++ "medium": "Medio",
+ "monthNames": [
+ "Gennaio",
+ "Febbraio",
+ "Marzo",
+- "aprile",
++ "Aprile",
+ "Maggio",
+ "Giugno",
+ "Luglio",
+- "agosto",
+- "settembre",
+- "ottobre",
+- "novembre",
++ "Agosto",
++ "Settembre",
++ "Ottobre",
++ "Novembre",
+ "Dicembre"
+ ],
+ "monthNamesShort": [
+- "gen",
+- "febbraio",
++ "Gen",
++ "Feb",
+ "Mar",
+- "apr",
+- "Maggio",
+- "giu",
+- "lug",
+- "agosto",
+- "Sett",
+- "ottobre",
+- "nov",
++ "Apr",
++ "Mag",
++ "Giu",
++ "Lug",
++ "Ago",
++ "Set",
++ "Ott",
++ "Nov",
+ "Dic"
+ ],
+ "noFilter": "Senza Filtro",
+ "notContains": "Non contiene",
+ "notEquals": "Non uguale",
+- "passwordPrompt": "Enter a password",
+- "reject": "NO",
++ "passwordPrompt": "Digita password",
++ "reject": "No",
+ "removeRule": "Rimuovi regola",
+ "startsWith": "Inizia con",
+- "strong": "forte",
++ "strong": "Forte",
+ "today": "Oggi",
+ "upload": "Caricamento",
+ "weak": "Debole",
+- "weekHeader": "sett"
++ "weekHeader": "Sett"
+ },
+ "recrule": {
+ "DonotRecord": "Non registrare",
+- "NotRecording": "Non registrazione",
+- "OverrideRecording": "Sovrascrivi registrazione",
++ "NotRecording": "Non in registrazione",
++ "OverrideRecording": "Salta registrazione",
+ "RecordAll": "Registra tutto",
+ "RecordDaily": "Registra ogni giorno",
+- "RecordOne": "Registra uno",
++ "RecordOne": "Registrane uno",
+ "RecordWeekly": "Registra settimanalmente",
+ "RecordingTemplate": "Modello di registrazione",
+- "SingleRecord": "Record unico",
++ "SingleRecord": "Registrazione singola",
+ "srch_KeywordSearch": "Ricerca per parola chiave",
+ "srch_ManualSearch": "Ricerca manuale",
+- "srch_None": "Nessuno",
++ "srch_None": "Nessuna",
+ "srch_PeopleSearch": "Cerca persone",
+- "srch_PowerSearch": "Ricerca di potere",
+- "srch_TitleSearch": "Ricerca del titolo",
++ "srch_PowerSearch": "Ricerca avanzata",
++ "srch_TitleSearch": "Cerca titolo",
+ "template": "Modello"
+ },
+ "settings": {
+ "backendctrl": {
+- "start_desc": "Il comando utilizzato per avviare il backend
durante l'esecuzione sul server backend principale (ad es. sudo
/etc/init.d/mythtv-backend start).",
+- "start_label": "Comando di avvio back-end",
+- "stop_desc": "Il comando utilizzato per arrestare il backend
durante l'esecuzione sul server backend principale (ad es. sudo
/etc/init.d/mythtv-backend stop)",
+- "stop_label": "Comando di arresto del back-end",
++ "start_desc": "Il comando utilizzato per avviare il backend
sul server principale (ad es. sudo /etc/init.d/mythtv-backend start).",
++ "start_label": "Comando di avvio Back-end",
++ "stop_desc": "Il comando utilizzato per arrestare
l'esecuzione del backend sul server principale (ad es. sudo /etc/init.d/mythtv-backend
stop)",
++ "stop_label": "Comando di arresto del Back-end",
+ "subtitle": "Comandi per avviare e arrestare il backend
principale",
+- "title": "Controllo di back-end"
++ "title": "Controllo Back-end"
+ },
+ "backendwake": {
+ "master": {
+- "attempts_desc": "Numero di volte in cui il frontend
tenterà di riattivare il backend principale.",
++ "attempts_desc": "Numero di volte che il frontend tenterà
di avviare il backend principale.",
+ "attempts_label": "Tentativi di risveglio",
+- "cmd_desc": "Il comando utilizzato per riattivare il
server di backend principale (ad es. wakeonlan 00:00:00:00:00:00).",
+- "cmd_label": "Comando sveglia",
+- "delay_desc": "Periodo di tempo che il frontend attende
tra i tentativi di riattivare il backend principale. Questo dovrebbe essere il momento in
cui il tuo back-end principale deve avviarsi. Impostare su 0 per disabilitare.",
++ "cmd_desc": "Il comando utilizzato per avviare il backend
principale (ad es. wakeonlan 00:00:00:00:00:00).",
++ "cmd_label": "Comando risveglio",
++ "delay_desc": "Tempo che il frontend attende tra i
tentativi di attivazione del backend principale. Questo dovrebbe essere il tempo che il
back-end principale impiega per avviarsi. Impostare a 0 per disabilitare.",
+ "delay_label": "Ritardo tra i tentativi di riattivazione
(sec)",
+ "title": "Back-end principale"
+ },
+ "slave": {
+- "sleep_desc": "Il comando utilizzato per addormentare
questo schiavo. Se impostato, il backend principale utilizzerà questo comando per mettere
in sospensione questo slave quando non è necessario per la registrazione.",
+- "sleep_label": "Comando di sonno",
+- "title": "Backend schiavi",
+- "wake_desc": "Il comando usato per svegliare questo
schiavo dal sonno. Questa impostazione non viene utilizzata nel back-end
principale.",
+- "wake_label": "Comando di risveglio"
++ "sleep_desc": "Il comando utilizzato per addormentare
questo slave. Se impostato, il backend principale utilizzerà questo comando per mettere in
sospensione questo slave quando non è necessario per la registrazione.",
++ "sleep_label": "Comando sospensione",
++ "title": "Backend slave",
++ "wake_desc": "Il comando usato per risvegliare questo
slave. Questa impostazione non viene utilizzata sul back-end principale.",
++ "wake_label": "Comando risveglio"
+ },
+ "subtitle": "Questi controllano il risveglio del backend
principale da parte del frontend e il risveglio dei backend slave da parte del backend
principale",
+ "title": "Impostazioni di riattivazione back-end"
+@@ -446,16 +446,16 @@
+ "tuner_desc": "Numero del sintonizzatore sul dispositivo
Ceton (il primo sintonizzatore è il numero 0)",
+ "tuner_label": "Sintonizzatore"
+ },
+- "delete_all": "Elimina tutte le carte di acquisizione",
+- "delete_all_all": "Elimina tutte le schede di acquisizione su
tutti gli host",
++ "delete_all": "Elimina tutte le schede acquisizione",
++ "delete_all_all": "Elimina tutte le schede acquisizione su
tutti gli host",
+ "delete_details": "Questo eliminerà {{CardType}}
Dispositivo:{{VideoDevice}} Nome:{{DisplayName}}",
+- "delete_on_host": "Elimina tutte le carte di acquisizione su
{{host}}",
++ "delete_on_host": "Elimina tutte le schede acquisizione su
{{host}}",
+ "delete_this": "Elimina questa scheda di acquisizione",
+ "demo": {
+ "file_desc": "Un file MPEG locale utilizzato per simulare
una registrazione.",
+- "title": "Registratore di test demo"
++ "title": "Registratore test demo"
+ },
+- "device_desc": "Quando modifichi questa impostazione, il
testo sottostante dovrebbe cambiare nel nome e nel tipo della tua carta. Se la carta non
può essere aperta, verrà visualizzato un messaggio di errore.",
++ "device_desc": "Alla modifica di questa impostazione, il
testo sottostante dovrebbe cambiare col nome e il tipo di scheda. Se la scheda non può
essere aperta, verrà visualizzato un messaggio di errore.",
+ "deviceid_desc": "ID dispositivo del sintonizzatore
Sat>IP.",
+ "diseqc": {
+ "address_desc": "L'indirizzo DiSEqC dello switch in
notazione esadecimale (0xnn). Se 0x non è davanti alla stringa, si presume che sia in
notazione decimale e verrà convertito.",
+@@ -482,7 +482,7 @@
+ "lnbpreset_Linear": "Lineare (Nord America)",
+ "lnbpreset_cband": "Banda C",
+ "lnbpreset_circular": "Circolare (Nord America)",
+- "lnbpreset_custom": "Costume",
++ "lnbpreset_custom": "Personalizzato",
+ "lnbpreset_dishpro": "DishPro Bandstacked",
+ "lnbpreset_single": "Singolo (Europa)",
+ "lnbpreset_universal": "Universale (Europa)",
+@@ -497,11 +497,11 @@
+ "lospeed_label": "Bassa velocità del rotore
(gradi/sec)",
+ "positions_desc": "Configurazione della posizione del
rotore. I valori negativi indicano l'ovest, i valori positivi indicano
l'est.",
+ "positions_label": "Posizioni",
+- "title": "Configurazione del rotore",
+- "type_desc": "Selezionare il tipo di rotore
dall'elenco.",
++ "title": "Configurazione otore",
++ "type_desc": "Seleziona il tipo di rotore
dall'elenco.",
+ "type_label": "Tipo di rotore"
+ },
+- "subtype_backstacked": "Banda impilata",
++ "subtype_backstacked": "Banda sovrapposta",
+ "subtype_diseqc_1_2": "DiSEqC 1.2",
+ "subtype_diseqc_1_3": "DiSEqC 1.3 (GotoX/USALS)",
+ "subtype_legacy": "Legacy (fisso)",
+@@ -516,8 +516,8 @@
+ "mini_diseqc": "Mini DiSEqC",
+ "title": "Cambia configurazione",
+ "tone": "Tono",
+- "type_desc": "Selezionare il tipo di interruttore
dall'elenco.",
+- "type_label": "Tipo di interruttore",
++ "type_desc": "Seleziona dall'elenco il tipo
switch.",
++ "type_label": "Tipo switch",
+ "voltage": "Voltaggio"
+ },
+ "switchports_desc": "Il numero di porte di questo
switch.",
+@@ -537,15 +537,15 @@
+ "devInUse": "Avviso: questo dispositivo è già in
uso.",
+ "devNotExist": "Il dispositivo non esiste",
+ "device_label": "Dispositivo DVB",
+- "eitscan_desc": "Se abilitato, attiva la scansione attiva
per i dati del programma (EIT). Quando questa opzione è abilitata la scheda DVB è
costantemente in uso.",
+- "eitscan_label": "Utilizzare la scheda DVB per la
scansione EIT attiva",
++ "eitscan_desc": "Se abilitato, attiva la scansione attiva
dei dati della guida (EIT). Quando questa opzione è abilitata la scheda DVB è
costantemente in uso.",
++ "eitscan_label": "Utilizza la scheda DVB per la scansione
EIT attiva",
+ "frontend_label": "ID front-end",
+- "inputname_label": "Sistema di consegna",
++ "inputname_label": "Sistema di ricezione",
+ "newsatellite_button": "Nuovo dispositivo
satellitare",
+ "newsatellite_devtype": "Seleziona il tipo di
dispositivo",
+ "newsatellite_heading": "Nuova impostazione
satellitare",
+ "noDevSelected": "Nessun dispositivo selezionato",
+- "ondemand_desc": "Se abilitato, apre la scheda DVB solo
quando richiesto, lasciandola libera per altri programmi in altri orari.",
++ "ondemand_desc": "Se abilitato, apre la scheda DVB solo
quando richiesto, lasciandola libera per altri programmi in altri momenti.",
+ "ondemand_label": "Apri scheda DVB su richiesta",
+ "satellite_connect": "Connetti dispositivo
satellitare",
+ "satellite_connect_tooltip": "Collega una configurazione
satellitare esistente a questo sintonizzatore",
+@@ -557,30 +557,30 @@
+ "satellite_heading": "Impostazioni satellite",
+ "satellite_select": "Selezionare Albero dei
dispositivi",
+ "title": "Scheda sintonizzatore DVB-T/S/C, ATSC o
ISDB-T",
+- "tuningdelay_desc": "Alcuni driver Linux DVB, in
particolare per Hauppauge Nova-T, richiedono di rallentare il processo di sintonizzazione
specificando un ritardo (in millisecondi).",
++ "tuningdelay_desc": "Alcuni driver DVB di Linux, in
particolare per Hauppauge Nova-T, richiedono di rallentare il processo di sintonizzazione
specificando un ritardo (in millisecondi).",
+ "tuningdelay_label": "Ritardo di sintonizzazione DVB
(ms)",
+ "unknownName": "Sconosciuto",
+ "wait_desc": "Se abilitato, elimina i pacchetti
dall'inizio di una registrazione DVB finché non viene visualizzata un'intestazione
di inizio sequenza.",
+ "wait_label": "Attendere l'intestazione di inizio
SEQ"
+ },
+ "external": {
+- "command_desc": "Un'applicazione scatola nera
controllata tramite stdin, stato su stderr e TransportStream letto da stdout. Utilizzare
il percorso assoluto del nome file eseguibile seguito da uno spazio e da eventuali
parametri richiesti. Assicurati che il file sia un eseguibile valido che risiede sul
server di backend.",
+- "command_label": "Percorso di comando",
++ "command_desc": "Un'applicazione chiusa controllata
tramite stdin, stato su stderr e TransportStream letto da stdout. Utilizzare il percorso
assoluto del nome file eseguibile seguito da uno spazio e da eventuali parametri
richiesti. Assicurati che il file sia un eseguibile valido che risiede sul server
backend.",
++ "command_label": "Percorso del comando",
+ "title": "Registratore esterno (scatola nera)."
+ },
+ "firewire": {
+ "broadcast": "Trasmissione",
+ "connection_label": "Tipo di connessione",
+- "device_label": "GUIDA",
++ "device_label": "GUID",
+ "model_desc": "Scegli il modello che più si avvicina al
tuo set top box. A seconda della revisione del firmware SA4200HD potrebbe funzionare
meglio per un box SA3250HD.",
+ "model_label": "Modello di decoder via cavo",
+ "motogeneric": "Motorola Generico",
+ "pointtopoint": "Punto a punto",
+ "sageneric": "Generico SA/Cisco",
+ "speed_label": "Velocità",
+- "title": "Scatola dei cavi FireWire"
++ "title": "Cable Box FireWire"
+ },
+- "frontend_desc": "Stringa identificativa riportata dalla
tessera. Se viene visualizzato il messaggio \"Impossibile ottenere informazioni sulla
carta...\", la carta può essere utilizzata da un altro programma.",
++ "frontend_desc": "Stringa identificativa riportata dalla
scheda. Se viene visualizzato il messaggio \"Impossibile ottenere informazioni sulla
scheda...\", la scheda può essere utilizzata da un altro programma.",
+ "hdhomerun": {
+ "device_desc": "Usa i sintonizzatori dei dispositivi
HDHomeRun selezionati.",
+ "device_label": "Seleziona Dispositivi HD HomeRun",
+@@ -588,22 +588,22 @@
+ "title": "Sintonizzatore di rete HDHomeRun"
+ },
+ "hdpvr": {
+- "audiodevice_desc": "Se è presente più di un ingresso
audio, selezionare quale utilizzare.",
++ "audiodevice_desc": "Se è presente più di un ingresso
audio, seleziona quale utilizzare.",
+ "audiodevice_label": "Ingresso audio",
+- "title": "Codificatore HD-PVR H.264"
++ "title": "Encoder HD-PVR H.264"
+ },
+ "import": {
+- "file_desc": "Un file locale utilizzato per simulare una
registrazione. Impostare su '/' per utilizzare MythEvents per attivare un
programma esterno per importare i file di registrazione.",
++ "file_desc": "Un file locale utilizzato per simulare una
registrazione. Imposta su '/' per utilizzare MythEvents per attivare un programma
esterno per importare i file di registrazione.",
+ "file_label": "Percorso del file",
+ "title": "Importa registratore di test"
+ },
+- "inputname_desc": "Se la tua carta supporta più di un sistema
di consegna, puoi selezionare qui quello che desideri utilizzare.",
++ "inputname_desc": "Se la scheda supporta più di un sistema di
ricezione, seleziona qui quello che desideri utilizzare.",
+ "iptv": {
+ "title": "Registratore IPTV",
+ "url_desc": "URL di M3U contenente gli URL dei canali
RTSP/RTP/UDP.",
+ "url_label": "URL M3U"
+ },
+- "new_capture_card": "Nuova carta di cattura",
++ "new_capture_card": "Nuova scheda acquisizione",
+ "satip": {
+ "device_desc": "IP o ID del dispositivo, numero del
sintonizzatore e tipo di sintonizzatore del dispositivo Sat>IP disponibile.",
+ "device_label": "Dispositivi disponibili",
+@@ -611,23 +611,23 @@
+ "diseqcpos_desc": "Posizione dell'LNB
sull'interruttore DiSEqC. Lasciare a 1 se non c'è lo switch DiSEqC e l'LNB è
connesso direttamente al server SatIP. Questo valore viene utilizzato come sorgente del
segnale (attributo src) nel comando SatIP tune.",
+ "diseqcpos_label": "Posizione DiSEqC",
+ "friendly_desc": "Nome descrittivo del server
Sat>IP",
+- "friendly_label": "Nome amichevole",
++ "friendly_label": "Nome descrittivo",
+ "title": "Sintonizzatore di rete Sat>IP",
+ "tunerindex_label": "Indice del sintonizzatore",
+ "tunertype_label": "Tipo di sintonizzatore"
+ },
+- "select_type": "Seleziona il tipo di scheda di
acquisizione",
+- "sigtimeout_desc": "Tempo massimo (in millisecondi) MythTV
attende un segnale durante la scansione dei canali.",
++ "select_type": "Seleziona il tipo di scheda
acquisizione",
++ "sigtimeout_desc": "Periodo massimo di attesa di un segnale
(in millisecondi) durante la scansione dei canali da parte di MythTV.",
+ "sigtimeout_label": "Timeout del segnale (ms)",
+- "title": "Cattura Carte",
++ "title": "Schede Acquisizione",
+ "tunerindex_desc": "Indice del sintonizzatore sul server
Sat>IP",
+ "tunertype_desc": "Tipo di accordatore selezionato",
+- "tunetimeout_desc": "Tempo massimo (in millisecondi) MythTV
attende un blocco del canale. Per le registrazioni, se questo tempo viene superato, la
registrazione verrà contrassegnata come non riuscita.",
++ "tunetimeout_desc": "Tempo massimo (in millisecondi) che
MythTV attende il blocco del canale. Nelle registrazioni, se questo tempo viene superato,
la registrazione verrà contrassegnata come non riuscita.",
+ "tunetimeout_label": "Timeout di sintonia (ms)",
+ "v4l2": {
+ "device_label": "Dispositivo video",
+ "frontend_label": "Informazioni rilevate",
+- "title": "Codificatore V4L2"
++ "title": "Encoder V4L2"
+ },
+ "vbox": {
+ "description_label": "Descrizione",
+@@ -643,64 +643,64 @@
+ "chanedit": {
+ "all": "Tutto",
+ "always-visible": "Sempre Visibile",
+- "callsign": "Segno di chiamata",
+- "callsign_desc": "Identificatore univoco per il
trasmettitore.",
+- "channame": "nome del canale",
+- "channame_desc": "Nome comune per il canale",
++ "callsign": "Identificativo",
++ "callsign_desc": "Identificativo univoco emittente.",
++ "channame": "Nome canale",
++ "channame_desc": "Nome comune del canale",
+ "channum": "Numero di canale",
+ "channum_desc": "Il numero con cui il canale è noto a
MythTV",
+- "col_callsign": "Segno di chiamata",
+- "col_channum": "Chan Num",
++ "col_callsign": "Identificativo",
++ "col_channum": "Num Can",
+ "col_freqid": "ID freq",
+ "col_name": "Nome",
+ "col_priority": "Priorità",
+- "col_source": "Fonte",
++ "col_source": "Sorgente",
+ "col_useeit": "Usa EIT",
+ "col_visibility": "Visibilità",
+- "commmethod_desc": "Cambia il metodo di rilevamento
commerciale utilizzato per le registrazioni su questo canale o salta il rilevamento
contrassegnando il canale come Senza pubblicità.",
+- "commmethod_label": "Metodo di rilevamento
commerciale",
++ "commmethod_desc": "Cambia il metodo di rilevamento
pubblicità utilizzato per le registrazioni di questo canale o salta il rilevamento
contrassegnando il canale come Senza pubblicità.",
++ "commmethod_label": "Metodo di rilevamento pubblicità",
+ "delete_all_details": "Questo eliminerà tutti i
canali",
+ "delete_details": "Questo eliminerà Canale:{{ChanNum}},
Nome:{{ChannelName}}, Fonte:{{Source}}",
+- "delete_message": "Per eliminare i canali utilizzare Backend
Setup Channel Editor.",
++ "delete_message": "Per eliminare i canali utilizzare Modifica
Impostazioni Canali Backend.",
+ "delete_source": "Elimina tutti i canali dalla sorgente
selezionata",
+ "delete_source_details": "Questo eliminerà tutti i canali
dalla sorgente: {{Source}}",
+ "delete_this": "Elimina canale",
+ "deletechan": "Elimina canale",
+ "editchan": "Modifica canale",
+- "eit_desc": "Se abilitato, le informazioni della guida per
questo canale verranno aggiornate utilizzando gli elenchi dei programmi
\"Over-the-Air\".",
+- "eit_label": "Utilizzare la guida in onda",
+- "format_desc": "Se questo canale utilizza un formato diverso
da TV Format nella schermata General Backend Setup, impostalo qui.",
+- "format_label": "Formato televisivo",
+- "freqid": "Frequenza ID",
+- "freqid_desc": "Numero di canale come compreso dai tuoi
sintonizzatori.",
+- "mplex_desc": "Broadcast Frequenza del flusso di trasporto
che trasporta questo canale. Lo stesso flusso può trasportare molti canali.",
+- "mplex_label": "Multisala",
++ "eit_desc": "Se abilitato, le informazioni della guida per
questo canale verranno aggiornate utilizzando i palinsesti dei programmi
\"Over-the-Air\".",
++ "eit_label": "Usa guida On-Air",
++ "format_desc": "Imposta qui il formato TV se questo canale
utilizza un formato diverso da quello definito nelle Impostazioni generali del
backend.",
++ "format_label": "Formato TV",
++ "freqid": "ID Frequenza",
++ "freqid_desc": "Numero canale come appreso dai
sintonizzatori.",
++ "mplex_desc": "Frequenza di Broadcast del transport stream
che contiene questo canale. Lo stesso stream può contenere più canali.",
++ "mplex_label": "Muxer",
+ "never-visible": "Mai Visibile",
+ "new_channel": "Nuovo canale",
+ "not-visible": "Non visibile",
+- "priority_desc": "\"Numero di punti di priorità da
aggiungere a qualsiasi registrazione su questo canale durante la programmazione.
Utilizzare un numero positivo come priorità se si desidera che questo sia un canale
preferito, uno negativo per deprecare questo canale.",
++ "priority_desc": "\"Numero di punti di priorità da
aggiungere a ogni registrazione su questo canale durante la programmazione. Utilizza un
numero positivo come priorità se desideri che questo sia un canale preferito, uno negativo
per deprecare questo canale.",
+ "priority_label": "Priorità",
+- "serviceid_desc": "ID servizio (numero programma) del canale
desiderato all'interno del flusso di trasporto. Se c'è un solo canale,
l'impostazione di questo su qualsiasi cosa lo troverà comunque.",
++ "serviceid_desc": "ID servizio (numero programma) del canale
desiderato all'interno del transport stream. Nel caso di un solo canale, qualsiasi sia
il valore impostato lo troverà comunque.",
+ "serviceid_label": "ID servizio",
+- "source_desc": "NON è una buona idea cambiare questo valore
in quanto cambia solo il sourceid nel canale della tabella ma non in dtv_multiplex. Il
sourceid in dtv_multiplex non può e non deve essere cambiato.",
++ "source_desc": "NON è una buona idea cambiare questo valore
in quanto cambia solo il sourceid nella tabella canali ma non nel dtv_multiplex. Il
sourceid del dtv_multiplex non può e non deve essere cambiato.",
+ "source_label": "Sorgente video",
+- "timeoffset_desc": "Offset (in minuti) da applicare ai dati
della guida ai programmi durante l'importazione. Questo può essere utilizzato quando
gli elenchi di un determinato canale si trovano in un fuso orario diverso.",
+- "timeoffset_label": "Elenchi Time Offset",
+- "title": "Editor di canali",
++ "timeoffset_desc": "Offset (in minuti) da applicare ai dati
della guida programmi durante l'importazione. Questo può essere utilizzato quando i
palinsesti di un determinato canale si trovano in un fuso orario diverso.",
++ "timeoffset_label": "Scostamento ora palinsesti",
++ "title": "Editor canali",
+ "unassigned": "(Non assegnato)",
+ "visible": "Visibile",
+- "visible_desc": "Se impostato su Sempre visibile o Visibile,
il canale sarà visibile nell'EPG. Impostare su Sempre visibile o Mai visibile per
impedire a MythTV e ad altre utilità di gestire automaticamente il valore per questo
canale.",
++ "visible_desc": "Se impostato su Sempre visibile o Visibile,
il canale sarà visibile nell'EPG. Impostare su Sempre visibile o Mai visibile per
impedire a MythTV e ad altre utilità di gestire automaticamente il valore di questo
canale.",
+ "visible_label": "Visibilità",
+- "xmltvid_desc": "ID utilizzato dai servizi di quotazione per
ottenere una corrispondenza esatta tra un canale nella tua line-up e un canale nel loro
database. Normalmente questo viene impostato automaticamente quando viene eseguito
'mythfilldatabase'.",
++ "xmltvid_desc": "ID utilizzato dai fornitori di palinsesti e
ottenere una esatta corrispondenza tra il canale della tua lista e il canale nel loro
database. Normalmente questo viene impostato automaticamente quando viene eseguito
'mythfilldatabase'.",
+ "xmltvid_label": "ID XMLTV"
+ },
+ "chanedit_advanced": "Impostazioni avanzate",
+ "channelscan": {
+- "FEC_desc": "Correzione degli errori di inoltro (predefinito:
Auto)",
++ "FEC_desc": "Correzione degli errori di invio (predefinito:
Auto)",
+ "FEC_label": "FEC",
+ "Modulation_desc": "Modulazione (Predefinito: Auto)",
+ "addfullts_desc": "Se impostato, crea canali MPTS, che
consentono la registrazione del flusso di trasporto completo e inalterato.",
+- "addfullts_label": "Aggiungi canali di flusso di trasporto
completi",
++ "addfullts_label": "Aggiungi canali transport stream
completi",
+ "all": "Tutto",
+ "atscmodulation_desc": "Modulazione, 8-VSB, QAM-256, ecc. La
maggior parte dei sistemi via cavo negli Stati Uniti utilizza QAM-256 o QAM-64, ma alcuni
sistemi misti possono utilizzare 8-VSB per i canali over-the-air.",
+ "auto": "Auto",
+@@ -709,13 +709,13 @@
+ "chancount_desc": "Numero totale di canali da
scansionare",
+ "chancount_label": "Conteggio canali",
+ "channelnumbersonly_desc": "Se impostato, durante la
scansione verranno aggiunti solo i servizi con un numero di canale logico. Questo filtrerà
i servizi per il download del firmware del set-top-box e il video on demand che possono
essere presenti sulle reti DVB-C.",
+- "channelnumbersonly_label": "Numeri di canale logici
Obbligatorio",
+- "coderatehp_desc": "Tasso codice ad alta priorità
(predefinito: Auto)",
++ "channelnumbersonly_label": "Numeri di canale logici
Richiesti",
++ "coderatehp_desc": "Velocità codifica alta priorità
(predefinito: Auto)",
+ "coderatehp_label": "Codice HP",
+- "coderatelp_desc": "Tasso codice a bassa priorità
(predefinito: Auto)",
++ "coderatelp_desc": "Velocità codifica bassa priorità
(predefinito: Auto)",
+ "coderatelp_label": "LP Coderate",
+ "completeonly_desc": "Se impostato, durante la scansione
verranno aggiunti solo i servizi che sono presenti nel PAT, nel PMT e nel SDT e che hanno
un nome. Sui satelliti ci sono molti canali incompleti, come feed e canali offline, che
non sono utili in un sistema MythTV. Questi vengono filtrati da questa opzione.",
+- "completeonly_label": "Dati di scansione completi
obbligatori",
++ "completeonly_label": "Dati scansione completi
Richiesti",
+ "constellation_desc": "Costellazione (Predefinito:
Auto)",
+ "constellation_label": "Costellazione",
+ "country": {
+@@ -742,7 +742,7 @@
+ "dvbsmodulation_desc": "Modulazione, QPSK, 8PSK, QAM-16,
16APSK, 32APSK. La maggior parte dei transponder DVB-S utilizza QPSK, mentre DVB-S2
utilizza 8PSK, 16APSK o 32APSK. QAM-16 non è disponibile per i trasporti DVB-S2.",
+ "dvbssymbolrate_desc": "La maggior parte dei transponder
DVB-S trasmette a 27500000 simboli al secondo.",
+ "dvbtmodsys_desc": "Sistema di modulazione (Predefinito:
DVB-T2)",
+- "firstchan_desc": "Avvia la scansione su questo
canale.",
++ "firstchan_desc": "Avvia scansione su questo canale.",
+ "firstchan_label": "Primo canale",
+ "follownitsetting_desc": "Le trasmissioni digitali possono
segnalare altri Transport disponibili. Se questa opzione è abilitata, lo scanner esegue la
scansione di tutti i trasporti segnalati per i canali nuovi/aggiornati.",
+ "follownitsetting_label": "Cerca nuovi trasporti",
+@@ -761,18 +761,18 @@
+ "freqtable_label": "Tabella delle frequenze",
+ "frequency_desc": "La frequenza per questo trasporto
(multiplex) in {{unit}}. L'impostazione predefinita è impostata in Configurazione
sorgente video.",
+ "frequency_label": "Frequenza",
+- "ftaonly_desc": "Se impostato, durante la scansione verranno
aggiunti solo i canali non crittografati.",
+- "ftaonly_label": "Solo non crittografato",
+- "fullsearch_desc": "Se impostato, confronta tutti i canali
nel database con i canali trovati nella scansione; in caso contrario vengono confrontati
solo i canali nello stesso trasporto. Questa opzione è utile quando si desidera conservare
i dati del canale come xmltvid e il percorso dell'icona quando si esegue una nuova
scansione dopo che i canali sono stati riorganizzati tra i trasporti.",
++ "ftaonly_desc": "Se impostato, durante la scansione verranno
aggiunti solo i canali non criptati.",
++ "ftaonly_label": "Solo non criptato",
++ "fullsearch_desc": "Se impostato, confronta tutti i canali
nel database con i canali trovati nella scansione; in caso contrario vengono confrontati
solo i canali sullo stesso trasporto. Questa opzione è utile quando si desidera conservare
i dati del canale come xmltvid e il percorso dell'icona quando si esegue una scansione
dopo una riorganizzazione dei canali tra i trasporti.",
+ "fullsearch_label": "Ricerca completa di vecchi
canali",
+ "guardinterval_desc": "Intervallo di guardia (predefinito:
Auto)",
+ "guardinterval_label": "Intervallo di guardia",
+ "hierarchy_desc": "Gerarchia (Predefinito:
Automatico)",
+ "hierarchy_label": "Gerarchia",
+ "ignoresignaltimeout_desc": "Questa opzione consente di
rallentare la scansione dei driver danneggiati, come i driver DVB per la scheda Leadtek
LR6650 DVB.",
+- "ignoresignaltimeout_label": "Ignora timeout del
segnale",
+- "invalid_range": "Errore: intervallo di canali non
valido.",
+- "inversion_desc": "La maggior parte delle carte può rilevarlo
automaticamente ora, quindi lascialo su Auto a meno che non funzioni. (Predefinito:
Automatico)",
++ "ignoresignaltimeout_label": "Ignora timeout segnale",
++ "invalid_range": "Errore: intervallo canali non
valido.",
++ "inversion_desc": "La maggior parte delle schede può essere
rilevata automaticamente ora, quindi lascia su Auto a meno che questo non funzioni.
(Predefinito: Automatico)",
+ "inversion_label": "Inversione",
+ "lastchan_desc": "Interrompi la scansione dopo questo
canale.",
+ "lastchan_label": "Ultimo canale",
+@@ -801,30 +801,30 @@
+ },
+ "polarity_desc": "Polarità (l'opzione non ha valori
predefiniti)",
+ "polarity_label": "Polarità",
+- "progress_label": "Scansiona i progressi",
+- "removeduplicates_desc": "Se impostato, selezionare il
multiplex del flusso di trasporto con il segnale migliore quando vengono ricevuti
trasporti identici su frequenze diverse. Questa opzione è utile per DVB-T2 e ATSC/OTA
quando a volte è possibile ricevere un trasporto da diversi trasmettitori.",
++ "progress_label": "Avanzamento Scansione",
++ "removeduplicates_desc": "Se impostato, nel caso in cui
vengano ricevuti trasporti identici su frequenze diverse seleziona il multiplex del
transport stream con il segnale migliore. Questa opzione è utile per DVB-T2 e ATSC/OTA
quando a volte è possibile ricevere un trasporto da diversi trasmettitori.",
+ "removeduplicates_label": "Rimuovi duplicati",
+ "rolloff_desc": "Fattore di roll-off (predefinito:
0,35)",
+- "rolloff_label": "Rotolamento",
+- "sattuning_desc": "Selezionare un satellite da questo elenco
per i dati di sintonizzazione del transponder di riferimento.",
++ "rolloff_label": "Roll-off",
++ "sattuning_desc": "Seleziona un satellite dall'elenco per
avere i dati di sintonizzazione del transponder di riferimento.",
+ "sattuning_label": "Dati di sintonizzazione
satellitare",
+- "scan_desc": "Prima di eseguirlo è necessario selezionare la
sorgente video. Avvia scansione salverà automaticamente la pagina, se necessario, prima
della scansione.",
+- "scan_label": "Inizia scansione",
++ "scan_desc": "Prima di eseguirlo è necessario selezionare la
sorgente video. Se necessario, avviando la scansione la pagina verrà salvata
automaticamente.",
++ "scan_label": "Avvia scansione",
+ "scanimport_label": "Scansione da importare",
+ "scanimport_option": "Seleziona un'opzione di
importazione.",
+ "scantype_dvbt_desc": "Per DVB-T/T2 e il tipo di scansione
'Full Scan' selezionare un paese per ottenere il set di frequenze
corretto.",
+ "scantype_label": "Tipo di scansione",
+- "services_desc": "TV - Aggiunge solo i servizi A/V, TV+Radio
- Aggiunge tutti i servizi con audio, Tutto - Aggiunge tutti i servizi inclusi i servizi
solo dati).",
++ "services_desc": "TV - Aggiunge solo i servizi A/V; TV+Radio
- Aggiunge tutti i servizi con audio; Tutto - Aggiunge tutti i servizi inclusi i servizi
solo dati).",
+ "services_label": "Servizi desiderati",
+ "status_label": "Stato",
+ "status_title": "Stato scansione canali",
+ "stop_label": "Arresta scansione",
+- "strength_label": "La potenza del segnale",
++ "strength_label": "Intensità segnale",
+ "symbolrate_label": "Symbol Rate (simboli/secondo)",
+- "testdecryptable_desc": "Prova tutti i canali per vedere se
possono essere decifrati con la CAM/smartcard installata. A volte il flag crittografato
viene impostato in modo spurio. Attenzione: l'abilitazione di questa opzione aumenta
il tempo di scansione per ogni canale crittografato di un paio di secondi.",
+- "testdecryptable_label": "Prova la decrittazione",
+- "transmissionmode_desc": "Modalità di trasmissione
(Predefinito: Auto)",
+- "transmissionmode_label": "Modalità di trasmissione",
++ "testdecryptable_desc": "Verifica tutti i canali per vedere
se possono essere decifrati con la CAM/smartcard installata. A volte il flag criptato
viene impostato in modo spurio. Attenzione: l'abilitazione di questa opzione aumenta
il tempo di scansione per ogni canale criptato di un paio di secondi.",
++ "testdecryptable_label": "Verifica decriptazione",
++ "transmissionmode_desc": "Modalità trasmissione (Predefinito:
Auto)",
++ "transmissionmode_label": "Modalità trasmissione",
+ "transport_label": "Trasporto",
+ "tv": "tv",
+ "tvradio": "TV+Radio",
+@@ -838,8 +838,8 @@
+ "fulltuned": "Scansione completa (sintonizzata)",
+ "hdhrimport": "Importazione canale HDHomeRun",
+ "import": "Importa la scansione esistente",
+- "m3u": "Importazione M3U",
+- "m3umpts": "Importazione M3U con MPTS",
++ "m3u": "Importa M3U",
++ "m3umpts": "Importa M3U con MPTS",
+ "mpts": "Scansione MPTS",
+ "onetransport": "Scansione di un singolo trasporto
esistente",
+ "transports": "Scansiona il/i trasporto/i
esistente/i",
+@@ -856,27 +856,27 @@
+ "warning": "Se continui, potresti perdere le
modifiche."
+ },
+ "eit": {
+- "crawl_desc": "Il numero minimo di secondi dopo che un
registratore diventa inattivo per attendere prima che MythTV inizi a raccogliere i dati
degli elenchi EIT.",
++ "crawl_desc": "Numero minimo di secondi attesi che un
registratore diventi inattivo prima che MythTV inizi ad acquisire i dati dei palinsesti
EIT.",
+ "crawl_label": "Back-end inattivo prima della scansione EIT
(sec)",
+- "scan_desc": "È necessario eseguire la scansione EIT su una
scheda di acquisizione prima di passare alla scheda di acquisizione successiva nello
stesso gruppo di input configurato per la scansione EIT. Ciò può accadere con più LNB
satellitari collegati tramite uno switch DiSEqC.",
++ "scan_desc": "Tempo di attesa della scansione EIT su una
scheda di acquisizione prima di passare alla scheda di acquisizione successiva nello
stesso gruppo di input configurato per la scansione EIT. Ciò può accadere con più LNB
satellitari collegati tramite uno switch DiSEqC.",
+ "scan_label": "Periodo di scansione EIT (minuti)",
+- "subtitle": "Se stai utilizzando le liste trasmesse dalla
stazione, queste opzioni definiscono come MythTV le cerca.",
+- "timeout_desc": "Tempo massimo da trascorrere in attesa (in
minuti) dei dati dei palinsesti su un canale TV digitale prima di verificare i nuovi dati
dei palinsesti sul canale successivo.",
++ "subtitle": "Se sono utilizzati i palinsesti trasmessi dalla
stazione, queste opzioni stabiliscono come questi vengano cercati da MythTV.",
++ "timeout_desc": "Tempo massimo di attesa (in minuti) dei dati
dei palinsesti su un canale TV digitale prima di acquisire i dati dei palinsesti del
canale successivo.",
+ "timeout_label": "Timeout trasporto EIT (minuti)",
+ "title": "Opzioni dello scanner EIT"
+ },
+ "epgdownload": {
+- "enabled_desc": "Se abilitato, il programma dei dati guida
verrà eseguito automaticamente.",
+- "enabled_label": "Aggiorna automaticamente gli elenchi dei
programmi",
+- "title": "Opzioni di download della pianificazione del
programma"
++ "enabled_desc": "Se abilitato, il programma di scaricamento
della guida TV verrà eseguito automaticamente.",
++ "enabled_label": "Aggiorna automaticamente i palinsesti dei
programmi",
++ "title": "Opzioni di download della pianificazione
programmi"
+ },
+ "general": {
+ "title": "Impostazioni generali del backend"
+ },
+ "hostaddress": {
+- "allowconn_desc": "Consenti a questo back-end di ricevere
connessioni da qualsiasi indirizzo IP su Internet. <strong>NON consigliato per la
maggior parte degli utenti.</strong> Usalo solo se disponi di firewall IPv4 e IPv6
sicuri.",
++ "allowconn_desc": "Consenti a questo back-end di ricevere
connessioni da qualsiasi indirizzo IP su Internet. <strong>NON consigliato per la
maggior parte degli utenti.</strong> Usare solo se si dispone di firewall IPv4 e
IPv6 sicuro.",
+ "allowconn_label": "Consenti connessioni da tutte le
sottoreti",
+- "backendport_desc": "La porta su cui il backend è in ascolto
per le connessioni (a meno che tu non abbia una buona ragione, non cambiarla). Il valore
predefinito è 6543",
++ "backendport_desc": "La porta sulla quale il backend è in
ascolto di connessioni (da non cambiare a meno di non avere una buona ragione). Il valore
predefinito è 6543",
+ "backendport_label": "Porta",
+ "ipv4_desc": "Immettere l'indirizzo IP di questa
macchina. Utilizzare un indirizzo accessibile dall'esterno (ad esempio, non 127.0.0.1)
se si intende eseguire un frontend su una macchina diversa da questa. Nota, nelle
configurazioni IPv6, questo è ancora necessario per alcuni extra come UPnP.",
+ "ipv4_label": "Indirizzo IPv4",
+@@ -885,230 +885,230 @@
+ "ismaster_desc": "Abilita questa opzione se questo è
l'unico back-end o è il server back-end principale. Se abilitato, tutte le macchine
front-end e back-end non master si connetteranno a questo server. Per passare a un nuovo
backend principale, esegui l'installazione su quel server e selezionalo come backend
principale.",
+ "ismaster_hint": "Per modificare il backend principale devi
eseguire l'installazione da quel backend.",
+ "ismaster_label": "Questo server è il back-end
principale",
+- "listenall_desc": "Consenti a questo backend di ricevere
connessioni su qualsiasi indirizzo IP assegnatogli. Consigliato per la maggior parte degli
utenti per facilità e affidabilità.",
++ "listenall_desc": "Consente a questo backend di ricevere
connessioni su qualsiasi indirizzo IP assegnato. Consigliato per la maggior parte degli
utenti per facilità e affidabilità.",
+ "listenall_label": "Ascolta su tutti gli indirizzi IP",
+- "listenlinklocal_desc": "Consenti ai server su questa
macchina di restare in ascolto sugli indirizzi link-local. Si tratta di indirizzi
autoconfigurati e non accessibili al di fuori della rete locale. Questo deve essere
abilitato per tutto ciò che richiede il funzionamento di Bonjour.",
++ "listenlinklocal_desc": "Consenti ai server di questa
macchina di restare in ascolto sugli indirizzi link-local. Si tratta di indirizzi
autoconfigurati e non accessibili al di fuori della rete locale. Questo deve essere
abilitato per tutto ciò che richiede il funzionamento di Bonjour.",
+ "listenlinklocal_label": "Ascolta su indirizzi
Link-Local",
+- "master_desc": "Nome host del back-end principale.
<strong>Impostazioni di sola lettura</strong> Questa impostazione viene
impostata selezionando \"<i>Questo server è il backend
principale</i>\" su quel server.",
++ "master_desc": "Nome host del back-end principale.
<strong>Impostazioni di sola lettura</strong> Questa impostazione viene
impostata selezionando su quel server \"<i>Questo server è il backend
principale</i>\".",
+ "master_label": "Nome back-end principale",
+ "panel": {
+ "allowconn": "Connessioni consentite",
+ "iplisten": "Indirizzi IP su cui ascoltare",
+ "masterbe": "Back-end principale",
+ "pin": "PIN di sicurezza",
+- "ports": "Porti",
++ "ports": "Porte",
+ "primaryadd": "indirizzo primario"
+ },
+- "pin_desc": "Il codice PIN necessario affinché un front-end
si connetta al back-end. Vuoto impedisce tutte le connessioni; 0000 consente a qualsiasi
client. Il valore predefinito è 0000",
++ "pin_desc": "Il codice PIN necessario affinché un front-end
si possa connettere al back-end. Vuoto impedisce tutte le connessioni; 0000 consente
qualsiasi client. Il valore predefinito è 0000",
+ "pin_label": "PIN di sicurezza (richiesto)",
+ "pin_reqd": "È richiesto il PIN di sicurezza",
+- "primaryip_desc": "L'indirizzo IP principale di questo
server back-end. È possibile selezionare un indirizzo IP dall'elenco o digitare un
nome DNS o un nome host. Altri sistemi contatteranno questo server utilizzando questo
indirizzo. Se usi un hostname assicurati che gli sia assegnato un indirizzo IP diverso da
127.0.0.1 nel file hosts.",
++ "primaryip_desc": "L'indirizzo IP principale di questo
server back-end. È possibile selezionare un indirizzo IP dall'elenco o digitare un
nome DNS o un nome host. Gli altri sistemi contatteranno questo server con questo
indirizzo. Se è usato un hostname assicurarsi che gli sia stato assegnato un indirizzo IP
diverso da 127.0.0.1 nel file hosts.",
+ "primaryip_label": "Indirizzo IP primario/nome DNS",
+ "statusport_desc": "La porta su cui il server ascolterà le
richieste HTTP, incluso lo stato del back-end e le richieste MythXML. Il valore
predefinito è 6544",
+ "statusport_label": "Porta di stato",
+ "subtitle": "Queste impostazioni indicano al backend su quali
indirizzi IP e porte ascoltare e se si tratta di un backend principale.",
+- "title": "Configurazione del back-end dell'indirizzo
host"
++ "title": "Configurazione indirizzo host del back-end"
+ },
+ "iconnection": {
+- "delivery_desc": "Per i dispositivi DVB mostra il sistema di
trasmissione (modulazione), ad esempio DVB-T2, selezionato durante la configurazione della
scheda di acquisizione. Deve essere uguale alla modulazione utilizzata dalla sorgente
video.",
+- "delivery_label": "Sistema di consegna",
+- "dishneteit_desc": "Se punti la parabola satellitare verso
gli uccelli di DishNet, potresti voler abilitare questa funzione. Per ottenere i migliori
risultati, abilita anche la raccolta EIT generale.",
+- "dishneteit_label": "Utilizza i dati EIT a lungo termine di
DishNet",
+- "displayname_desc": "Questo nome viene visualizzato sullo
schermo quando inizia la TV in diretta e in vari altri luoghi. Assicurati che gli ultimi
due caratteri siano univoci per ciascun input o utilizza una barra ('/') per
designare la parte univoca.",
++ "delivery_desc": "Per i dispositivi DVB indica il sistema di
trasmissione (modulazione). Per esempio DVB-T2 che è stato selezionato durante la
configurazione della scheda di acquisizione. Deve essere uguale alla modulazione
utilizzata dalla sorgente video.",
++ "delivery_label": "Sistema di trasmissione",
++ "dishneteit_desc": "Se punti la parabola satellitare verso i
satelliti DishNet, potresti voler abilitare questa funzione. Per ottenere i migliori
risultati, abilita anche la raccolta EIT generale.",
++ "dishneteit_label": "Utilizza dati EIT a lungo termine su
DishNet",
++ "displayname_desc": "Questo nome viene visualizzato sullo
schermo quando inizia la TV in diretta e in molti altri casi. Assicurati che gli ultimi
due caratteri siano univoci per ciascun input o utilizza una barra ('/') per
designare la parte univoca.",
+ "displayname_label": "Nome da visualizzare",
+- "externalcmd_desc": "Se specificato, questo comando verrà
eseguito per modificare il canale per gli ingressi che dispongono di un dispositivo
sintonizzatore esterno come un decoder via cavo. Il primo argomento sarà il numero del
canale.",
++ "externalcmd_desc": "Se specificato, questo comando verrà
eseguito per modificare il canale degli ingressi che dispongono di un dispositivo
sintonizzatore esterno come un decoder via cavo. Il primo argomento sarà il numero del
canale.",
+ "externalcmd_label": "Comando cambio canale esterno",
+ "fetch": {
+ "complete": "Recupero completato. {{num}} canali
scaricati",
+- "desc": "Questo utilizza l'origine dati degli elenchi
per fornire i canali per questo input. Questo può richiedere molto tempo per
l'esecuzione. Prima di eseguire questa operazione è necessario selezionare la sorgente
video e salvare la pagina se non sono state salvate modifiche.",
++ "desc": "Utilizza l'origine dati dei palinsesti per
fornire i canali di questo ingresso. Esso può richiedere molto tempo per l'esecuzione.
Prima di eseguire questa operazione è necessario selezionare la sorgente video e salvare
la pagina se non sono ancora state salvate le modifiche.",
+ "failed": "Recupero non riuscito",
+ "incompatible": "Questo dispositivo non è compatibile con
il recupero dei canali",
+ "inprog": "Recupero in corso",
+- "label": "Recupera i canali dalla fonte degli
elenchi",
+- "warning": "Recupera i canali dal servizio di elenchi
solo se non puoi cercare i canali."
++ "label": "Ricava i canali dalla fonte palinsesti",
++ "warning": "Recupera i canali dal servizio palinsesti
solo se non puoi effettuare la ricerca dei canali."
+ },
+- "inpgroup_desc": "I gruppi di ingresso sono necessari solo
quando due o più schede condividono la stessa risorsa, ad esempio una scheda FireWire e un
ingresso scheda analogica che controlla lo stesso set top box. Lascia vuoto a meno che
questo input non sia condiviso con un altro dispositivo. Solo uno degli ingressi in un
gruppo di ingresso sarà autorizzato a registrare in un dato momento.",
+- "inpgroup_label": "Gruppo di input",
+- "input_label": "Immettere il nome",
+- "interact_title": "Interazioni tra input",
+- "liveorder_desc": "Quando si accede a Live TV, verrà
utilizzato l'ingresso locale disponibile con il valore più basso diverso da zero. Se
non sono disponibili ingressi locali, verrà utilizzato l'ingresso remoto disponibile
con il valore più basso diverso da zero. L'impostazione di questo valore su zero
renderà l'ingresso non disponibile per la TV in diretta.",
+- "liveorder_label": "Ordine TV in diretta",
++ "inpgroup_desc": "I gruppi di ingresso sono necessari solo
quando due o più schede condividono la stessa risorsa, ad esempio una scheda FireWire e un
ingresso di scheda analogica che controlla lo stesso set top box. Lascia vuoto a meno che
questo input non sia condiviso con un altro dispositivo. Solo uno degli ingressi in un
gruppo di ingresso sarà autorizzato a registrare in un dato momento.",
++ "inpgroup_label": "Gruppo di Ingresso",
++ "input_label": "Digita Nome",
++ "interact_title": "Interazioni tra ingressi",
++ "liveorder_desc": "Quando si accede alla Diretta TV, sarà
utilizzato l'ingresso locale disponibile con il valore più basso diverso da zero. Se
non sono disponibili ingressi locali, sarà utilizzato l'ingresso remoto disponibile
con il valore più basso diverso da zero. Se questo valore è zero l'ingresso è posto
come non disponibile per la diretta TV.",
++ "liveorder_label": "Ordine diretta TV",
+ "longitude_desc": "Localizza il satellite che desideri
puntare con la longitudine lungo la cintura di Clarke del satellite [-180..180] e il suo
emisfero.",
+ "longitude_east": "Orientale",
+ "longitude_label": "Longitudine satellitare (gradi)",
+ "longitude_west": "Occidentale",
+- "maxrec_desc": "Numero massimo di registrazioni simultanee
MythTV tenterà di utilizzare questo dispositivo. Se impostato su un valore diverso da 1,
MythTV a volte può registrare più programmi sullo stesso multiplex o copie sovrapposte
dello stesso programma su un singolo canale.",
++ "maxrec_desc": "Numero massimo di registrazioni simultanee
che MythTV tenterà di usare su questo dispositivo. Se impostato su un valore diverso da 1,
MythTV a volte può registrare più programmi sullo stesso multiplex o copie sovrapposte
dello stesso programma su un singolo canale.",
+ "maxrec_label": "Registrazioni massime",
+ "quicktune": {
+ "always": "Sempre",
+- "livetv": "Solo TV in diretta",
++ "livetv": "Solo diretta TV",
+ "never": "Mai"
+ },
+- "quicktune_desc": "Se abilitato, MythTV si sintonizzerà
utilizzando solo il numero di programma MPEG. I numeri dei programmi cambiano più spesso
rispetto ai parametri di sintonizzazione DVB o ATSC, quindi questo è leggermente meno
affidabile. Ciò inibirà anche la raccolta di EIT durante la TV in diretta e la
registrazione.",
++ "quicktune_desc": "Se abilitato, MythTV si sintonizzerà
utilizzando solo il numero di programma MPEG. I numeri dei programmi cambiano più spesso
rispetto ai parametri di sintonizzazione DVB o ATSC, quindi questo è un po' meno
affidabile. Ciò inibirà anche l'acquisizione EIT durante la TV in diretta e la
registrazione.",
+ "quicktune_label": "Usa la sintonizzazione rapida",
+- "recpri_desc": "Se la priorità dell'ingresso non è uguale
per tutti gli ingressi, lo scheduler può scegliere di registrare uno spettacolo in un
secondo momento in modo da poter registrare su un ingresso con valore più alto.",
+- "recpri_label": "Priorità di ingresso",
+- "scan_title": "Cerca i canali",
+- "schedgrp_desc": "Pianifica tutti gli input virtuali su
questo dispositivo come gruppo. Questo è più efficiente della pianificazione di ciascun
input individualmente. Inoltre, gli ingressi virtuali verranno aggiunti automaticamente
secondo necessità per soddisfare il carico di registrazione.",
++ "recpri_desc": "Se la priorità dell'ingresso non è uguale
per tutti gli ingressi, lo schedulatore può scegliere di registrare uno spettacolo in un
secondo momento in modo da poter registrare su un ingresso con valore più alto.",
++ "recpri_label": "Priorità ingresso",
++ "scan_title": "Ricerca canali",
++ "schedgrp_desc": "Accorpa tutti gli input virtuali su questo
dispositivo come gruppo. Questo è più efficiente rispetto a pianificaee ciascun input
individualmente. Inoltre, gli ingressi virtuali verranno aggiunti automaticamente secondo
necessità per soddisfare il carico di registrazione.",
+ "schedgrp_label": "Programma come gruppo",
+- "schedorder_desc": "Se le priorità e gli altri fattori sono
uguali, lo scheduler sceglierà l'input disponibile con il valore più basso, diverso da
zero. L'impostazione di questo valore su zero renderà l'input non disponibile per
lo scheduler.",
++ "schedorder_desc": "Se le priorità e gli altri fattori sono
uguali, lo schedulatore sceglierà l'input disponibile con il valore più basso, diverso
da zero. L'impostazione di questo valore su zero renderà l'input non disponibile
per lo schedulatore.",
+ "schedorder_label": "Ordine programmato",
+- "sourceid_desc": "Seleziona la fonte delle inserzioni che
verrà utilizzata con questo input.",
++ "sourceid_desc": "Seleziona la fonte dei palinsenti che verrà
utilizzata con questo input.",
+ "sourceid_label": "Sorgente video",
+- "startchan_desc": "Questo canale viene mostrato quando
'Guarda TV' è selezionato nel menu principale. Viene aggiornato ad ogni cambio di
canale TV in diretta. Quando il valore non è valido verrà scelto un valore predefinito
adeguato.",
++ "startchan_desc": "Questo canale viene mostrato quando dal
menu principale è selezionato 'Diretta TV'. Viene aggiornato ad ogni cambio di
canale di TV in diretta. Quando il valore non è valido verrà dato un valore predefinito
adeguato.",
+ "startchan_label": "Canale di partenza",
+- "switchport_desc": "Scegli una porta da utilizzare per questo
switch.",
++ "switchport_desc": "Scegli una porta da utilizzare su questo
switch.",
+ "switchport_label": "Porta di commutazione
satellitare",
+ "title": "Connessione di ingresso",
+ "tunechan_desc": "Lasciare vuoto questo campo a meno che non
si disponga di un sintonizzatore esterno collegato all'ingresso del sintonizzatore
della scheda. In tal caso, sarà necessario specificare il canale preimpostato per il
segnale (normalmente 3 o 4).",
+- "tunechan_label": "Sintonizzatore preimpostato su
canale",
++ "tunechan_label": "Canale preimpostato sul
sintonizzatore",
+ "unicablepos_desc": "Posizione satellitare Unicable
(A/B)",
+ "unicablepos_label": "Posizione Unicable satellitare",
+- "unicablepos_porta": "Porto A",
+- "unicablepos_portb": "Porto B"
++ "unicablepos_porta": "Porta A",
++ "unicablepos_portb": "Porta B"
+ },
+ "iconnections": {
+ "title": "Connessioni di ingresso"
+ },
+ "jobqbackend": {
+- "allow_desc": "Se abilitato, consenti l'esecuzione di
lavori di questo tipo su questo back-end.",
+- "comm_label": "Consenti processi di rilevamento
commerciale",
+- "cpu_desc": "Questa impostazione controlla
approssimativamente la quantità di processi di CPU nella coda che possono consumare. Su
'Alto', può essere utilizzato tutto il tempo disponibile della CPU, il che
potrebbe causare problemi su sistemi più lenti.",
++ "allow_desc": "Se abilitato, a questo back-end è consentita
l'esecuzione di questo tipo di lavori.",
++ "comm_label": "Consenti processi di rilevamento
pubblicità",
++ "cpu_desc": "L'impostazione controlla la quantità
approssimativa di processi in coda che la CPU può processare. Se 'Alto', può
essere utilizzato tutto il tempo CPU disponibile e su sistemi lenti potrebbe causare
problemi.",
+ "cpu_high": "Alto",
+- "cpu_label": "Uso della CPU",
++ "cpu_label": "Utilizzo CPU",
+ "cpu_low": "Basso",
+- "cpu_med": "medio",
+- "end_desc": "Questa impostazione controlla la fine
dell'intervallo di tempo della coda dei processi, che determina quando verranno
avviati i nuovi processi.",
++ "cpu_med": "Medio",
++ "end_desc": "Questa impostazione stabilisce la fine della
finestra temporale della coda lavori, per l'avvio dei nuovi processi.",
+ "end_label": "Ora di fine coda lavori",
+- "freq_desc": "Durante la ricerca di nuovi lavori da
elaborare, la coda dei lavori attenderà questo numero di secondi tra un controllo e
l'altro.",
++ "freq_desc": "Nella ricerca di nuovi lavori da elaborare, la
coda dei lavori attenderà questo numero di secondi tra un controllo e l'altro.",
+ "freq_label": "Frequenza controllo coda lavori (sec)",
+- "maxjobs_desc": "La coda dei processi sarà limitata
all'esecuzione di questi numerosi processi simultanei su questo back-end.",
++ "maxjobs_desc": "La coda dei processi di questo back-end
verrà limitata all'esecuzione questo numero di processi simultanei.",
+ "maxjobs_label": "Numero massimo di lavori simultanei su
questo back-end",
+ "meta_label": "Consenti processi di ricerca metadati",
+- "preview_label": "Consenti lavori di anteprima",
+- "start_desc": "Questa impostazione controlla l'inizio
della finestra temporale della coda dei processi, che determina quando verranno avviati i
nuovi processi.",
++ "preview_label": "Consenti anteprima lavori",
++ "start_desc": "Questa impostazione stabilisce l'inizio
della finestra temporale della coda lavori, per l'avvio dei nuovi processi.",
+ "start_label": "Ora di inizio coda lavori",
+- "subtitle": "Controlli della coda di lavoro specifici per
questo back-end",
+- "title": "Coda di lavoro (specifica del back-end)",
++ "subtitle": "Controlli della coda lavori specifici per questo
back-end",
++ "title": "Coda lavori (specifica del back-end)",
+ "trans_label": "Consenti processi di transcodifica"
+ },
+ "jobqcommands": {
+- "command_desc": "Il comando da eseguire ogni volta che questo
numero di lavoro utente è pianificato.",
+- "command_label": "Lavoro utente {{num}} Comando",
+- "job_desc": "La descrizione per questo lavoro utente.",
+- "job_label": "Lavoro utente {{num}} Descrizione",
+- "subtitle": "Imposta i nomi per i tuoi lavori utente
personalizzati e i comandi che li eseguiranno.",
+- "title": "Coda lavori (comandi lavoro)"
++ "command_desc": "Comando da eseguire ogni volta che questo
numero processo è pianificato.",
++ "command_label": "Processo utente {{num}} Comando",
++ "job_desc": "La descrizione di questo processo
utente.",
++ "job_label": "Descrizione Processo Utente {{num}}",
++ "subtitle": "Imposta i nomi dei tuoi processi utente
personalizzati e i comandi che li avvieranno.",
++ "title": "Coda lavori (comandi avvio)"
+ },
+ "jobqglobal": {
+- "commcmd_desc": "Il programma utilizzato per rilevare gli
annunci pubblicitari in una registrazione. L'impostazione predefinita è
'mythcommflag' se questa impostazione è vuota.",
+- "commcmd_label": "Comando di rilevamento commerciale",
++ "commcmd_desc": "Il programma utilizzato per rilevare gli
annunci pubblicitari in una registrazione. Se lasciato vuoto l'impostazione
predefinita è 'mythcommflag'.",
++ "commcmd_label": "Comando di rilevamento pubblicità",
+ "runonrechost_desc": "Se abilitato, i lavori in coda dovranno
essere eseguiti sul back-end che ha effettuato la registrazione originale.",
+- "runonrechost_label": "Esegui lavori solo sul back-end di
registrazione originale",
+- "startcomm_desc": "Se abilitato e il Rilevamento commerciale
automatico è attivo per una registrazione, il processo di contrassegno verrà avviato non
appena inizia la registrazione. NON consigliato su sistemi poco potenti.",
+- "startcomm_label": "Avvia lavori di rilevamento commerciale
automatico all'avvio della registrazione",
++ "runonrechost_label": "Esegui processi solo sul back-end di
registrazione originale",
++ "startcomm_desc": "Se abilitato e il Rilevamento automatico
pubblicità della registrazione è attivo, il rilevamento verrà avviato non appena inizia la
registrazione. NON consigliato su sistemi poco potenti.",
++ "startcomm_label": "Avvia processi di rilevamento automatico
pubblicità all'avvio della registrazione",
+ "title": "Coda lavori (globale)",
+- "transcmd_desc": "Il programma utilizzato per transcodificare
le registrazioni. L'impostazione predefinita è 'mythtranscode' se questa
impostazione è vuota.",
++ "transcmd_desc": "Il programma utilizzato per transcodificare
le registrazioni. Se lasciato vuoto l'impostazione predefinita è
'mythtranscode'.",
+ "transcmd_label": "Comando transcodificatore",
+- "transfirst_desc": "Se abilitato, e se sia la transcodifica
automatica che il rilevamento commerciale sono attivati per una registrazione, la
transcodifica verrà eseguita per prima; in caso contrario, il rilevamento commerciale
viene eseguito per primo.",
+- "transfirst_label": "Esegui processi di transcodifica prima
del rilevamento commerciale automatico",
+- "transsave_desc": "Se abilitato e il transcodificatore è
attivo, i file originali verranno rinominati in .old una volta completata la
transcodifica.",
++ "transfirst_desc": "Se abilitato, e se sono attivati sia la
transcodifica automatica che il rilevamento pubblicità di una registrazione, la
transcodifica verrà eseguita per prima; in caso contrario, il rilevamento pubblicità verrà
eseguito per primo.",
++ "transfirst_label": "Esegui processi di transcodifica prima
del rilevamento automatico pubblicità",
++ "transsave_desc": "Se abilitato e il transcodificatore è
attivo, i file originali verranno rinominati come .old una volta completata la
transcodifica.",
+ "transsave_label": "Salva i file originali dopo la
transcodifica (a livello globale)"
+ },
+ "locale": {
+- "channfreq_desc": "Selezionare la tabella delle frequenze
appropriata per il proprio sistema. Se hai un'antenna, usa una frequenza
'-bcast.",
+- "channfreq_label": "Tabella delle frequenze dei
canali",
+- "freqtable_label": "Tabelle di frequenza",
+- "subtitle": "Questi impostano alcune impostazioni predefinite
specifiche del paese",
+- "title": "Impostazioni internazionali",
++ "channfreq_desc": "Seleziona la tabella frequenze adatta al
tuo sistema. Se hai un'antenna, usa una frequenza '-bcast.",
++ "channfreq_label": "Tabella frequenze dei canali",
++ "freqtable_label": "Tabella frequenze",
++ "subtitle": "Qui vengono definite alcune impostazioni
specifiche del paese",
++ "title": "Impostazioni di localizzazione",
+ "tvformat_desc": "Lo standard TV da utilizzare per guardare
la TV.",
+- "tvformat_label": "Formati televisivi",
+- "vbiformat_desc": "Il VBI (Vertical Blanking Interval) viene
utilizzato per trasportare dati Teletext o Closed Captions.",
++ "tvformat_label": "Formati TV",
++ "vbiformat_desc": "Il VBI (Vertical Blanking Interval) viene
utilizzato per contenere dati Teletext o Sottotitoli.",
+ "vbiformat_label": "Formato VBI"
+ },
+ "main": {
+ "enableupdates_desc": "L'abilitazione degli aggiornamenti
impedirà qualsiasi registrazione fino al riavvio",
+ "enableupdates_label": "Abilita Aggiornamenti",
+- "mustenable": "Non è possibile salvare le modifiche se non si
fa prima clic sul pulsante Abilita aggiornamenti.",
++ "mustenable": "Non è possibile salvare le modifiche se prima
non si clicca sul pulsante Abilita aggiornamenti.",
+ "mustrestart": "Una volta terminati gli aggiornamenti,
riavviare il backend.",
+ "restart_desc": "Le registrazioni sono disabilitate fino al
riavvio",
+ "restart_label": "Riavvia il back-end",
+ "restarting": "Riavvio del backend",
+ "shutdown_label": "Chiudi il back-end",
+- "slave_enabled": "Gli aggiornamenti sono sempre abilitati su
un backend slave.",
++ "slave_enabled": "Gli aggiornamenti sono sempre abilitati sul
backend slave.",
+ "slave_instructions": "Questo sembra essere un backend slave.
Se è inteso come back-end slave, disabilita la pianificazione sul back-end principale
durante l'esecuzione della configurazione del back-end slave.",
+- "slave_warning": "Se questo non è inteso come back-end slave,
vai a Configurazione, Generale, Configurazione back-end indirizzo host e seleziona
\"Questo server è il back-end principale\" oppure imposta l'identificatore
personalizzato corretto nella pagina Configurazione database. Salva e riavvia il
backend,",
+- "title": "Installazione di MythTV",
+- "upcomingrec": "Prossima registrazione in arrivo: {{Title}}
alle {{StartTime}}. Stato: {{Status}}",
++ "slave_warning": "Se questo non è inteso come back-end slave,
vai a Configura, Generale, Configura indirizzo host back-end e seleziona \"Questo
server è il back-end principale\" oppure imposta l'identificativo personalizzato
corretto nella pagina Configurazione database. Salva e riavvia il backend,",
++ "title": "Configurazione MythTV",
++ "upcomingrec": "Prossima registrazione: {{Title}} alle
{{StartTime}}. Stato: {{Status}}",
+ "webonly": {
+ "DBSETUP": "Il backend non può avviarsi normalmente
perché la configurazione del database non è completa.",
+ "DBTIMEZONE": "Il backend non può avviarsi normalmente
perché i fusi orari del database non sono impostati.",
+- "IPADDRESS": "Il backend non può avviarsi normalmente
perché Generale, Indirizzo host, Indirizzo IP primario non sono impostati.",
++ "IPADDRESS": "Il backend non può avviarsi normalmente
perché: Generale, Indirizzo host, Indirizzo IP primario non è impostato.",
+ "SCHEMAUPDATE": "Il backend non può essere avviato
normalmente perché l'aggiornamento dello schema del database non è riuscito.",
+ "WEBONLYPARM": "Il backend è in modalità limitata a causa
del parametro --webonly sulla riga di comando. Dovrai riavviare manualmente."
+ }
+ },
+ "misc": {
+ "bal_io": "I/O su disco bilanciato",
+- "disback_desc": "Se abilitato, MythTV non eseguirà il backup
del database prima degli aggiornamenti. Dovresti quindi avere la tua strategia di backup
del database in atto.",
++ "disback_desc": "Se abilitato, MythTV non eseguirà il backup
del database prima di ulteriori aggiornamenti. Dovrrai quindi avere attiva la tua
strategia di backup del database.",
+ "disback_label": "Disabilita il backup automatico del
database",
+- "disfwr_desc": "Per impostazione predefinita, MythTV
reimposta il bus FireWire quando un registratore FireWire smette di rispondere ai comandi.
Se questo causa problemi, puoi disabilitare questo comportamento qui.",
++ "disfwr_desc": "Come impostazione predefinita, MythTV
reimposta il bus FireWire quando un registratore FireWire smette di rispondere ai comandi.
Se questo causa problemi, è possibile disabilitare questo comportamento.",
+ "disfwr_label": "Disabilita il ripristino FireWire",
+ "follow_desc": "Se abilitato, MythTV seguirà i collegamenti
simbolici quando le registrazioni e i relativi file vengono eliminati, invece di eliminare
il collegamento simbolico e lasciare il file effettivo.",
+ "follow_label": "Segui i collegamenti simbolici durante
l'eliminazione dei file",
+- "mbo_desc": "Se abilitato, il back-end principale eseguirà lo
streaming ed eliminerà i file se li trova in una directory di archiviazione. Utile se stai
utilizzando una posizione di archiviazione centrale, come una condivisione NFS, e il tuo
back-end slave non è in esecuzione.",
+- "mbo_label": "Sostituzione del back-end principale",
++ "mbo_desc": "Se abilitato, il back-end principale riprodurrà
ed eliminerà i file se questi si trovano in una directory di archiviazione. Utile se si
stà utilizzando una archiviatore centrale, come una condivisione NFS, e il tuo back-end
slave non è in esecuzione.",
++ "mbo_label": "Scavalca back-end principale",
+ "panel_filemgmt": "Gestione dei file",
+ "panel_upnp": "Server UPnP",
+- "ringbuf_desc": "Il ringbuffer del dispositivo HD consente al
backend di resistere ai momenti di stress. Più grande è il ringbuffer (in kilobyte), più
lunghi possono essere i momenti di stress. Tuttavia, l'impostazione di una dimensione
troppo grande può causare lo scambio, il che è dannoso.",
+- "ringbuf_label": "Dimensioni del ringbuffer HD (kB)",
++ "ringbuf_desc": "Il buffer circolare (ringbuffer) del
dispositivo HD consente al backend di resistere a momenti di stress. Più grande è il
ringbuffer (in kilobyte), più lunghi possono essere i momenti di stress. Tuttavia,
l'impostazione di una dimensione troppo grande può causare sovrapposizione, il che è
dannoso.",
++ "ringbuf_label": "Dimensioni ringbuffer HD (kB)",
+ "savesuccess": "Salvato con successo.",
+ "sg_balfree": "Spazio libero equilibrato",
+ "sg_balpercent": "Percentuale bilanciata di spazio
libero",
+ "sg_combination": "Combinazione",
+- "sg_desc": "Questa impostazione controlla il modo in cui il
codice di pianificazione del gruppo di archiviazione bilancerà le nuove registrazioni tra
le directory. Lo \"Spazio libero bilanciato\" è il metodo consigliato per la
maggior parte degli utenti.",
++ "sg_desc": "Questa impostazione controlla il modo in cui la
modalità di pianificazione del gruppo di archiviazione bilancerà le nuove registrazioni
tra le directory. Lo \"Spazio libero bilanciato\" è il metodo consigliato per la
maggior parte degli utenti.",
+ "sg_label": "Utilità di pianificazione del disco del gruppo
di archiviazione",
+- "slowly_desc": "Alcuni filesystem utilizzano molte risorse
durante l'eliminazione di file di grandi dimensioni. Se abilitata, questa opzione fa
sì che MythTV elimini i file lentamente su questo backend per ridurre
l'impatto.",
+- "slowly_label": "Elimina i file lentamente",
++ "slowly_desc": "Alcuni filesystem utilizzano molte risorse
durante l'eliminazione di file di grandi dimensioni. Se abilitata, questa opzione fa
sì che MythTV elimini i file lentamente su questo backend in modo da ridurre
l'impatto.",
++ "slowly_label": "Elimina file lentamente",
+ "statapp_desc": "Applicazione o script esterno che
restituisce informazioni aggiuntive da includere nella pagina di stato del backend. Vedi
la wiki di MythTV:",
+- "statapp_label": "Domanda di stato varie",
++ "statapp_label": "Richiesta di stato varie",
+ "subtitle": "Impostazioni generali del backend",
+ "title": "Impostazioni varie",
+ "upnp_desc": "Quale albero mostrare a un client Windows Media
Player quando richiede un elenco di video.",
+- "upnp_label": "Contenuto video per mostrare un client
WMP",
++ "upnp_label": "Contenuto video da mostrare a un client
WMP",
+ "upnp_recs": "Registrazioni",
+ "upnp_videos": "Video"
+ },
+ "rprofiles": {
+ "audio_label": "Qualità audio",
+ "audiocodec_label": "Codec audio",
+- "autotranscode_desc": "Transcodifica automaticamente quando
viene effettuata una registrazione utilizzando questo profilo e la pianificazione della
registrazione è configurata per consentire la transcodifica.",
++ "autotranscode_desc": "Transcodifica automaticamente durante
la registrazione utilizzando questo profilo quando la pianificazione della registrazione è
configurata per permettere la transcodifica.",
+ "autotranscode_label": "Abilita la transcodifica automatica
dopo la registrazione",
+ "delete_details": "Questo eliminerà il profilo
{{ProfileName}} nel gruppo {{GroupName}}.",
+ "delete_this": "Elimina questo profilo di
registrazione",
+ "encodingthreadcount_desc": "Impostare su un valore inferiore
o uguale al numero di processori sul back-end che eseguiranno la codifica.",
+ "encodingthreadcount_label": "Numero di thread",
+ "enter_profile_name": "Inserisci il nome del nuovo
profilo",
+- "grouptitle": "Gruppo di profili",
++ "grouptitle": "Gruppo profili",
+ "hardwaremjpeghdecimation_label": "Decimazione
orizzontale",
+ "hardwaremjpegquality_label": "Qualità",
+ "hardwaremjpegvdecimation_label": "Decimazione
verticale",
+ "height_desc": "Altezza da utilizzare per la codifica. Nota:
le schede PVR-x50 possono produrre ghosting se questo non è impostato su 480 o 576
rispettivamente per NTSC e PAL.",
+- "height_label": "Altezza dell'immagine",
++ "height_label": "Altezza immagine",
+ "highres_label": "Alta risoluzione",
+ "lang_dual": "Doppia lingua",
+ "lang_main": "Lingua principale",
+ "lang_sap": "Lingua SAP",
+ "lowres_label": "Bassa risoluzione",
+- "medres_label": "Risoluzione media",
+- "mp3quality_desc": "Maggiore è il numero del dispositivo di
scorrimento, minore è la qualità dell'audio. Una migliore qualità audio (numeri più
bassi) richiede più CPU.",
++ "medres_label": "Media risoluzione",
++ "mp3quality_desc": "A numero maggiore corrisponde una minore
qualità audio. Una qualità audio migliore (numeri più bassi) richiede più CPU.",
+ "mp3quality_label": "Qualità MP3",
+ "mpeg2aspectratio_desc": "Imposta l'aspect ratio del
flusso generato dal tuo PVR.",
+ "mpeg2aspectratio_label": "Proporzioni",
+ "mpeg2audvolume_desc": "Volume della registrazione",
+ "mpeg2bitrate_desc": "Bitrate medio in kilobit/secondo. A
titolo indicativo, 2200 kb/s corrispondono a circa 1 GB/ora.",
+ "mpeg2bitrate_label": "Media Velocità in bit (kb/s)",
+- "mpeg2language_desc": "Sceglie la/e lingua/e da registrare
quando vengono trasmesse due lingue. Solo Layer II supporta la registrazione di due lingue
(Dual). Richiede ivtv 0.4.0 o successivo.",
++ "mpeg2language_desc": "Sceglie la/le lingua/e da registrare
quando vengono trasmesse due lingue. Solo Layer II supporta la registrazione di due lingue
(Dual). Richiede ivtv 0.4.0 o successivo.",
+ "mpeg2language_label": "SAP/Bilingue",
+ "mpeg2maxbitrate_desc": "Bitrate massimo in kilobit/secondo.
A titolo indicativo, 2200 kb/s corrispondono a circa 1 GB/ora.",
+ "mpeg2maxbitrate_label": "Massimo. Velocità in bit
(kb/s)",
+@@ -1116,97 +1116,97 @@
+ "mpeg2streamtype_label": "Tipo di flusso",
+ "mpeg4bitrate_desc": "Bitrate in kilobit/secondo. A titolo
indicativo, 2200 kb/s corrispondono a circa 1 GB/ora.",
+ "mpeg4bitrate_label": "Velocità in bit (kb/s)",
+- "mpeg4maxquality_label": "Massima qualità",
++ "mpeg4maxquality_label": "Qualità massima",
+ "mpeg4minquality_label": "Qualità minima",
+- "mpeg4option4mv_desc": "Se impostato, il codificatore MPEG4
utilizzerà la codifica del vettore di movimento \"4MV\". Ciò richiede molta più
elaborazione, ma può portare a video migliori. Si consiglia vivamente di abilitare
l'opzione HQ se 4MV è abilitato.",
++ "mpeg4option4mv_desc": "Se impostato, l'encoder MPEG4
utilizzerà la codifica del vettore di movimento \"4MV\". Ciò richiede molta più
elaborazione, ma può portare a video migliori. Si consiglia vivamente di abilitare
l'opzione HQ se 4MV è abilitato.",
+ "mpeg4option4mv_label": "Abilita codifica 4MV",
+- "mpeg4optionidct_desc": "Se impostato, il codificatore MPEG4
utilizzerà la codifica DCT interlacciata. Potresti volerlo quando codifichi video
interlacciato; tuttavia, questo è sperimentale e potrebbe causare danni al video.",
++ "mpeg4optionidct_desc": "Se impostato, l'encoder MPEG4
utilizzerà la codifica DCT interlacciata. Potresti volerlo quando codifichi video
interlacciato; tuttavia, questo è sperimentale e potrebbe causare danni al video.",
+ "mpeg4optionidct_label": "Abilita la codifica DCT
interlacciata",
+- "mpeg4optionime_desc": "Se impostato, il codificatore MPEG4
utilizzerà la stima del movimento interlacciato. Potresti volerlo quando codifichi video
interlacciato; tuttavia, questo è sperimentale e potrebbe causare danni al video.",
++ "mpeg4optionime_desc": "Se impostato, l'encoder MPEG4
utilizzerà la stima del movimento interlacciato. Potresti volerlo quando codifichi video
interlacciato; tuttavia, questo è sperimentale e potrebbe causare danni al video.",
+ "mpeg4optionime_label": "Abilita la stima del movimento
interlacciato",
+- "mpeg4optionvhq_desc": "Se impostato, il codificatore MPEG4
utilizzerà le opzioni di codifica di \"alta qualità\". Ciò richiede molta più
elaborazione, ma può portare a video migliori.",
++ "mpeg4optionvhq_desc": "Se impostato, l'encoder MPEG4
utilizzerà le opzioni di codifica di \"alta qualità\". Ciò richiede molta più
elaborazione, ma può portare a video migliori.",
+ "mpeg4optionvhq_label": "Abilita la codifica di alta
qualità",
+ "mpeg4qualdiff_label": "Massima differenza di qualità tra i
fotogrammi",
+ "mpeg4quality_desc": "La modifica dell'impostazione
predefinita può avere gravi conseguenze.",
+ "new_profile": "Nuovo profilo",
+ "proftitle": "Profilo di registrazione:",
+- "recordingtype_desc": "Questa opzione consente di filtrare i
flussi indesiderati. \"Normal\" registrerà tutti i flussi rilevanti, inclusi i
dati televisivi interattivi. \"Solo TV\" registrerà solo flussi audio, video e
sottotitoli.",
++ "recordingtype_desc": "L'opzione consente di filtrare i
flussi indesiderati. \"Normal\" registra tutti i flussi principali, inclusi i
dati TV interattivi. \"Solo TV\" registrerà solo i flussi audio, video e
sottotitoli.",
+ "recordingtype_label": "Tipo di registrazione",
+- "recordmpts_desc": "Se impostato, verranno creati file extra
per ogni registrazione con il nome della registrazione seguito da '.ts.raw'.
Questi file aggiuntivi rappresentano l'intero contenuto del flusso di trasporto
utilizzato per generare la registrazione. (Per scopi di debug)",
++ "recordmpts_desc": "Se abilitato, per ogni registrazione
saranno creati file extra con il nome della registrazione seguito da '.ts.raw'.
Questi file aggiuntivi costituiscono l'intero contenuto del trasporto utilizzato per
generare la registrazione. (Per scopi di debug)",
+ "recordmpts_label": "Registra TS completo",
+ "rectype_audio": "Solo audio",
+ "rectype_normal": "Normale",
+ "rectype_tv": "Solo televisione",
+- "rtjpegchromafilter_label": "Filtro cromatico",
+- "rtjpegfilter_desc": "È meglio più basso.",
+- "rtjpeglumafilter_label": "Filtro Luminoso",
+- "rtjpegquality_desc": "Maggiore è la migliore
qualità.",
++ "rtjpegchromafilter_label": "Filtro crominanza",
++ "rtjpegfilter_desc": "Più basso è meglio.",
++ "rtjpeglumafilter_label": "Filtro luminanza",
++ "rtjpegquality_desc": "Alto quivale a migliore
qualità.",
+ "rtjpegquality_label": "Qualità RTjpeg",
+- "samplerate_desc": "Imposta la frequenza di campionamento
audio per il tuo DSP. Assicurati di scegliere una frequenza di campionamento appropriata
per il tuo dispositivo. btaudio può consentire solo 32000.",
++ "samplerate_desc": "Imposta la frequenza di campionamento
audio per il tuo DSP. Assicurati di scegliere una frequenza di campionamento appropriata
per il tuo dispositivo. BTaudio consene solo 32000.",
+ "samplerate_label": "Frequenza di campionamento",
+ "scalebitrate_desc": "Se impostato, il bitrate specificato
verrà utilizzato per 640x480. Se vengono utilizzate altre risoluzioni, il bitrate verrà
ridimensionato in modo appropriato.",
+ "scalebitrate_label": "Ridimensiona il bitrate per la
dimensione del fotogramma",
+ "title": "Profili di registrazione",
+ "video_label": "Compressione video",
+ "videocodec_label": "Video codec",
+- "volume_desc": "Volume di registrazione della scheda di
acquisizione.",
++ "volume_desc": "Volume registrazione della scheda di
acquisizione.",
+ "volume_label": "Volume (%)",
+- "width_desc": "Larghezza da utilizzare per la codifica. Nota:
le schede PVR-x50 possono produrre ghosting se questo non è impostato su 720 o 768
rispettivamente per NTSC e PAL.",
++ "width_desc": "Larghezza da utilizzare per la codifica. Nota:
le schede PVR-x50 possono produrre effetti ghost se non impostato su 720 o 768
rispettivamente per NTSC e PAL.",
+ "width_label": "Larghezza immagine"
+ },
+ "services": {
+ "job_default": "Lavoro utente n.{{num}}"
+ },
+ "sgroups": {
+- "adddir_button": "Aggiungi una rubrica",
++ "adddir_button": "Aggiungi rubrica",
+ "deleted_label": "Eliminato",
+ "dirname_label": "Nome rubrica",
+- "name_label": "Nome del gruppo di archiviazione",
++ "name_label": "Nome Gruppo Archiviazione",
+ "name_prompt": "Immettere il nuovo nome del gruppo di
archiviazione",
+ "seldir_title": "Seleziona Rubrica",
+- "sgroup_title": "Gruppo di archiviazione {{name}}",
++ "sgroup_title": "Gruppo Archiviazione {{name}}",
+ "special": {
+ "Banners": "Banner",
+ "Coverart": "Copertina",
+ "DB Backups": "Backup DB",
+ "Default": "Predefinito",
+- "Fanart": "Fan art",
+- "LiveTV": "Tv dal vivo",
++ "Fanart": "Fan-art",
++ "LiveTV": "Diretta Tv",
+ "Music": "Musica",
+ "MusicArt": "MusicaArt",
+ "Photographs": "Fotografie",
+ "Screenshots": "Screenshot",
+- "Trailers": "Rimorchi",
++ "Trailers": "Trailer",
+ "Videos": "Video"
+ },
+ "tab_create_title": "(Crea gruppo {{name}})",
+- "title": "Gruppi di archiviazione",
+- "updir": "SU 1 LIVELLO"
++ "title": "Gruppi Archiviazione",
++ "updir": "LIVELLO SU"
+ },
+ "shutwake": {
+ "block_desc": "Se abilitata, la routine di spegnimento
automatico sarà disabilitata finché un client non si connette.",
+- "block_label": "Blocca l'arresto prima della connessione
del client",
+- "idletime_desc": "Il numero di secondi in cui il backend
principale rimane inattivo prima di arrestare tutti gli altri backend. Impostare su 0 per
disabilitare lo spegnimento automatico.",
+- "idletime_label": "Timeout spegnimento inattivo (sec)",
+- "maxwait_desc": "Il numero di minuti che il back-end
principale attende per una registrazione. Se il back-end è inattivo ma una registrazione
inizia entro questo periodo di tempo, non si chiuderà.",
++ "block_label": "Blocca l'arresto fino a che un client si
connetta",
++ "idletime_desc": "Il numero di secondi in cui il backend
principale resta inattivo prima di arrestare tutti gli altri backend. Impostare su 0 per
disabilitare lo spegnimento automatico.",
++ "idletime_label": "Timeout spegnimento se inattivo
(sec)",
++ "maxwait_desc": "Il numero di minuti che il back-end
principale attende l'avvio di una registrazione. Se il back-end è inattivo ma una
registrazione inizia entro questo periodo di tempo, non si spegnerà.",
+ "maxwait_label": "Attesa massima per la registrazione
(minuti)",
+- "preshut_desc": "Un comando eseguito prima dell'arresto
del back-end. Il valore restituito determina se il back-end può essere arrestato. 0 - sì,
1 - riavvia inattivo, 2 - reimposta il backend per attendere un frontend.",
++ "preshut_desc": "Il comando eseguito prima dell'arresto
del back-end. Il valore restituito determina se il back-end può essere arrestato. 0 - sì;
1 - riavvio inattivo; 2 - resetta il backend e attendi un frontend.",
+ "preshut_label": "Comando di controllo pre-arresto",
+ "serverhalt_desc": "Il comando utilizzato per arrestare i
backend.",
+ "serverhalt_label": "Comando di arresto del server",
+- "startbefore_desc": "Il numero di secondi in cui il backend
principale verrà riattivato prima dell'inizio di una registrazione.",
++ "startbefore_desc": "Indica i secondi di anticipo con cui il
backend principale verrà avviato prima dell'inizio di una registrazione.",
+ "startbefore_label": "Avvio prima della registrazione
(sec)",
+- "startcmd_desc": "Questo comando viene eseguito subito dopo
l'avvio di BE. Come parametro '$status' è sostituito da 'auto' se la
macchina è stata avviata automaticamente o da 'user' se l'ha accesa un
utente.",
++ "startcmd_desc": "Questo comando viene eseguito subito dopo
l'avvio del BE. Il parametro '$status' conterrà 'auto' se la macchina
si è avviata automaticamente o 'user' se accesa dall'utente.",
+ "startcmd_label": "Comando di avvio",
+- "subtitle": "Se vuoi consentire a MythTV di spegnere il
backend quando è inattivo, queste impostazioni definiscono i parametri per
abilitarlo.",
+- "timecmd_desc": "Il comando utilizzato per impostare
l'ora di riattivazione (trasmessa come $time) per il backend principale",
+- "timecmd_label": "Comando per impostare l'ora della
sveglia",
+- "timeformat_desc": "Il formato della stringa dell'ora
passata al comando per impostare l'ora della sveglia come $ora. Vedere
QT::QDateTime.toString() per i dettagli. Impostato su time_t per i secondi
dall'epoca.",
++ "subtitle": "Se si vuole consentire a MythTV di spegnere il
backend quando è inattivo, queste impostazioni definiscono i parametri per
abilitarlo.",
++ "timecmd_desc": "Il comando utilizzato per impostare
l'ora di accensione del backend principale (trasmessa come $time).",
++ "timecmd_label": "Comando per impostare l'ora del
risveglio",
++ "timeformat_desc": "Il formato della stringa data-ora inviata
al Comando per l'impostazione della sveglia come $time. Vedere
QT::QDateTime.toString() per i dettagli. Impostato su time_t per i secondi
dall'epoch.",
+ "timeformat_label": "Formato dell'ora di sveglia",
+- "title": "Opzioni di spegnimento/riattivazione"
++ "title": "Opzioni Spegnimento/Risveglio"
+ },
+ "sysevents": {
+- "title": "Editor dei comandi degli eventi di sistema"
++ "title": "Editor comando su evento di sistema"
+ },
+ "vsource": {
+ "WOLReconnect_desc": "Il tempo in secondi di attesa per
l'attivazione del server.",
+@@ -1218,11 +1218,11 @@
+ "delete_all": "Elimina tutte le sorgenti video",
+ "delete_details": "Questo eliminerà {{DisplayName}}
({{Grabber}})",
+ "delete_this": "Elimina questa sorgente video",
+- "eit_desc": "Se abilitato, i dati della guida ai programmi
per i canali su questa fonte verranno aggiornati con i dati forniti dai canali stessi
'Over-the-Air'.",
+- "eit_label": "Eseguire la scansione EIT",
+- "freqtable_desc": "Usa predefinito a meno che questa sorgente
non utilizzi una tabella di frequenza diversa dalla tabella a livello di sistema definita
nelle impostazioni generali.",
++ "eit_desc": "Se abilitato, i dati della guida programmi dei
canali su questa fonte saranno aggiornati con i dati forniti dagli stessi
'Over-the-Air'.",
++ "eit_label": "Esegui scansione EIT",
++ "freqtable_desc": "Usa default a meno che questa sorgente non
utilizzi una tabella frequenze diversa da quella definita a livello sistema nelle
impostazioni generali.",
+ "freqtable_label": "Tabella delle frequenze dei
canali",
+- "grabber_desc": "Seleziona la fonte delle inserzioni. Alcune
fonti richiedono un abbonamento.",
++ "grabber_desc": "Seleziona la fonte dei palinsesti. Alcune
fonti richiedono un abbonamento.",
+ "grabber_label": "Cattura annunci",
+ "grabberconfig_desc": "Configura il grabber eseguendo questo
comando utilizzando ssh o il terminale connesso al backend. Vedi la wiki di
MythTV:",
+ "grabberconfig_label": "Configura Grabber",
+@@ -1231,24 +1231,24 @@
+ "lcnoffset_label": "Offset numero canale logico",
+ "nameInUse": "ERRORE: questo nome è già in uso.",
+ "nameRequired": "Il nome è obbligatorio.",
+- "netid_desc": "Se il tuo provider ti ha chiesto di
configurare un identificatore di rete specifico (Network_ID), inseriscilo qui. Lascialo a
-1 altrimenti.",
++ "netid_desc": "Se il provider ti ha chiesto di configurare un
identificativo di rete specifico (Network_ID), inseriscilo qui. Altrimenti lascialo a
-1.",
+ "netid_label": "ID di rete",
+ "new_video_source": "Nuova sorgente video",
+ "region_desc": "ID regione per Freesat o Sky sul satellite
Astra-2 28.2E. Lascialo a 0 per non ricevere questo satellite. Questo è necessario per
ottenere i numeri dei canali Freesat e Sky. Il valore 1 seleziona la regione Londra. Vedi
la wiki di MythTV:",
+ "region_label": "ID regione",
+- "scanfreq_desc": "La frequenza con cui avviare la scansione
di questa sorgente video. Questa è quindi l'impostazione predefinita per la scansione
dei canali 'Full Scan (Tuned)'. Valore di frequenza in Hz per DVB-T/T2/C, in kHz
per DVB-S/S2. Lasciare a 0 se non noto.",
++ "scanfreq_desc": "La frequenza con cui avviare la scansione
di questa sorgente video. Essa è quindi quella predefinita per la scansione dei canali
'Full Scan (Tuned)'. Valore di frequenza in Hz per DVB-T/T2/C, in kHz per
DVB-S/S2. Lasciare a 0 se non noto.",
+ "scanfreq_label": "Frequenza di scansione",
+- "source_desc": "Questo nome viene utilizzato per il file di
configurazione xmltv. Questo è un campo obbligatorio.",
++ "source_desc": "Questo nome viene utilizzato per il file di
configurazione xmltv (campo obbligatorio).",
+ "source_label": "Nome sorgente video",
+ "title": "Fonti video"
+ }
+ },
+ "setupwizard": {
+ "IPorAddressRequired": "È richiesto l'indirizzo IP o il nome
host",
+- "LocalEnabled_desc": "Se il nome host di questo frontend cambia
spesso, seleziona questa casella e fornisci un nome univoco della rete per identificarlo.
Se deselezionato, il nome host locale del computer frontend verrà utilizzato per salvare
le preferenze nel database.",
+- "LocalEnabled_label": "Utilizza l'identificatore
personalizzato per le preferenze del front-end",
+- "LocalHostName_desc": "Un identificatore da utilizzare durante il
salvataggio delle impostazioni per questo backend o frontend sulla stessa
macchina.",
+- "LocalHostName_label": "Identificatore personalizzato",
++ "LocalEnabled_desc": "Se il nome host di questo frontend cambia
spesso, seleziona questa casella e fornisci un nome univoco sulla rete per identificarlo.
Se deselezionato, le preferenze verranno salvate nel database utilizzando il nome host
locale del frontend.",
++ "LocalEnabled_label": "Usa un identificativo personalizzato per
le preferenze del front-end",
++ "LocalHostName_desc": "L'identificativo da utilizzare durante
il salvataggio delle impostazioni di questo backend o frontend sulla stessa
macchina.",
++ "LocalHostName_label": "Identificativo personalizzato",
+ "MySQLDatabaseName": "Nome del database MySQL",
+ "MySQLPassword": "Password MySQL",
+ "MySQLServerIP": "IP del server MySQL",
+@@ -1256,8 +1256,8 @@
+ "MySQLUser": "Utente MySQL",
+ "WOLCommand_desc": "Il comando eseguito su questa macchina o
server MAC per riattivare il server del database (ad es. sudo /etc/init.d/mysql restart o
32:D2:86:00:17:A8).",
+ "WOLCommand_label": "Comando di riattivazione o MAC",
+- "WOLEnabled_desc": "Se abilitato, il front-end utilizzerà i
parametri di riattivazione del database per riconnettersi al server del database.",
+- "WOLEnabled_label": "Abilita la riattivazione del server di
database",
++ "WOLEnabled_desc": "Se abilitato, il front-end per connettersi al
server con il database utilizzerà i parametri di avvio del database.",
++ "WOLEnabled_label": "Abilita avvio del server con il
database",
+ "chooseLanguage": "Scegli la lingua",
+ "connectedToDatabase": "Collegato al database",
+ "connectionfail": "Connessione al database non riuscita",
+@@ -1268,12 +1268,12 @@
+ "databaseSetup": "Configurazione del database",
+ "dbname_help": "Il nome del database. Di solito è
'mythconverg'.",
+ "dbsetup": {
+- "havedb": "Avere il database '{{Name}}'",
++ "havedb": "Database connesso '{{Name}}'",
+ "havenotdb": "Non hai il database '{{Name}}'",
+- "schemaver": "La versione dello schema del database è
{{SchemaVersion}}"
++ "schemaver": "Versione schema del database
{{SchemaVersion}}"
+ },
+ "done": "Fatto",
+- "enterDBLoginDetails": "Immettere i dettagli di accesso al
database",
++ "enterDBLoginDetails": "Immettere i parametri di accesso al
database",
+ "ignoremessages": "Ignora i messaggi che dicono
\"Impossibile caricare 'xxxxx' come fuso orario. Salto.\"",
+ "ipaddress_help": "Il nome host o l'indirizzo IP della
macchina che ospita il database.",
+ "localSetup": "Configurazione locale",
+@@ -1283,7 +1283,7 @@
+ "passwordRequired": "E 'richiesta la password",
+ "password_help": "La password MySQL da utilizzare durante la
connessione al database.",
+ "portRequired": "La porta è obbligatoria e deve essere un numero
compreso tra 0 e 65536",
+- "port_help": "Il numero di porta su cui è in esecuzione il
database. Di solito è il 3306 predefinito.",
++ "port_help": "Il numero di porta su cui è in esecuzione il
database. Di solito è predefinito 3306.",
+ "restartbe": "Riavvia il backend utilizzando il pulsante nella
parte superiore di questa pagina.",
+ "runcommand": "Quindi esegui questo comando sul back-end:",
+ "savethis": "Salva questa pagina.",
+@@ -1292,12 +1292,12 @@
+ "selectedCountry": "Il Paese selezionato è:",
+ "selectedLanguage": "La lingua selezionata è:",
+ "setupDatabase": "Configurazione del database",
+- "setupNetwork": "Rete di backend",
++ "setupNetwork": "Rete Backend",
+ "setupStorageGroups": "Gruppi di archiviazione",
+ "sqlinstructions": "Se si tratta di una nuova configurazione di
MythTV, crea il tuo ID utente e database mysql. Salva i comandi seguenti in un file
chiamato setup.sql sul back-end:",
+ "steps": {
+- "capture_cards": "Cattura Carte",
+- "channel_editor": "Editor di canali",
++ "capture_cards": "Schede acquisizione",
++ "channel_editor": "Editor Canali",
+ "dbsetup": "Configurazione database",
+ "general": "Generale",
+ "input_connections": "Connessioni di ingresso",
+@@ -1307,13 +1307,13 @@
+ "system_events": "Eventi di sistema",
+ "video_sources": "Fonti video"
+ },
+- "testConnection": "test di connessione",
+- "tztables": "Se non l'hai già fatto, crea tabelle di fuso
orario eseguendo questo sul back-end:",
+- "userRequired": "Utente è richiesto",
+- "user_help": "Il nome utente MySQL da utilizzare durante la
connessione al database. L'impostazione predefinita è mithtv."
++ "testConnection": "test connessione database",
++ "tztables": "Se non è stato fatto, creare le tabelle dei fusi
orari eseguendo questo sul back-end:",
++ "userRequired": "È richiesto un Utente",
++ "user_help": "Il nome utente MySQL da utilizzare durante la
connessione al database. L'impostazione predefinita è mythtv."
+ },
+ "testbed": {
+ "title": "Questa è un'area del banco di prova",
+ "welcome": "Benvenuto in MythTV Backend in esecuzione
sull'host"
+ }
+-}
+\ No newline at end of file
++}
+
+From bd42eefdcecb8f554dc6147b28ba7051b58887be Mon Sep 17 00:00:00 2001
+From: Nick Morrott <knowledgejunkie(a)gmail.com>
+Date: Sat, 2 Mar 2024 18:43:00 +0000
+Subject: [PATCH 13/21] Translations: Update mythfrontend translation binary
+ files
+
+---
+ mythtv/i18n/mythfrontend_pl.qm | Bin 598803 -> 599712 bytes
+ 1 file changed, 0 insertions(+), 0 deletions(-)
+
+diff --git a/mythtv/i18n/mythfrontend_pl.qm b/mythtv/i18n/mythfrontend_pl.qm
+index b4779d7eaaea3fbd75ee59fa28a0f7a717811722..0e18c70bed0e9d33d16bf5dc2a694e581a254eea
100644
+GIT binary patch
+delta 39717
+zcmXV&bwCtd7sj94BPw=xV2g#_3bt5Ss90cNi(PAAfQkXwjfslwYZut9*op-z26oqX
+zoc;d#%?7(WckVgoIWdHvD!l4q;kkJWYzI&TGVlqpK2-aBL@%(O9f<A0rv02(JFBDo
+zHbBv<kLnOx00l?e<O3$zR6}Rj)Vb(Wlpn<D0XEezMLY&`_bgEQ2z2}0K$(AR4^&7`
+zOd)20?m*w_L619pA=2ZHMS+U+xMLzQ3mn=v3s8xk@Lf%$H~3xyD%0am&5885(*&Rj
+zJ?>0j*r*iXx!%bK{cZB*nQW@E2b^r-Y11lK#K|G)h#kSb>)BMEJ%FZdpl{KMH1l+T
+zZ8}H?i(z$~47At-<S%Yh^`c+iavgB&574S0n7;<v^o9!jZPU0E1AI=y6fQ@61U0NQ
+z(DoEi$it>MUD2irx@%MCjse<rfqL8p@TDK0%?Ie>*a`FHJkT{3C_2$5pFPB;nn_<w
+z&+D=|fxtL0-#b9^b?AO$z@w7Eik5(=F&v^^Nr>kAX-PXkgkGVQssypFC3Kh6#KFW0
+zkQpw(cuj^J9|}FFDCG2|&|~jII%cf}MutHyS_?fdpG_-wX~>Q1z;+k6$=f!usXA_h
+z+)F!X$#R>#rn{42Pi^Xxy=_`qB;-K}BrbLG^Lm@CV@8|2<8YgzWjZ+iy-}9FW<R0$
+zDkl%nFQw<T?(5{~@sO7#)Sm249<FRt-&|?anm!2fekrJ){*X_$L4TeN`HYq~Bt7Jd
+zB2fPHg|Ev(w5Jn$OD7in(aA&S9CUD--f+*R{?r-rOGW5UGl*-Ua_%Iapbw-o{ox0=
+zG===>2JSx#3LRki#uGcj>XaTzUWWd01uBa#)a`b}aOgAxq4Efb?k#K@Rt&1*FsQqu
+ziF66lJAT^-#>xp*WhU6sS5S>Af*oIPldp5JX$tj%YPJqyU~`)$=R0CFZNBToPcUxu
+zp{*x@kNN`D&I>3W>0}l9VtUN_JaBUMX(wY}*c6WM&I4JHzKGtag2=4@@lj@*I`<@-
+zrd*&+%cC?@k1;S6YeMze2)=FzRNosA{&Q^_m#I)gL%;`DwkgK!wkewh*;K<;+thiE
+z+jN*l-|Pdca9{dzf0#B8p+=p8>97K7#yVJ?H$u(a1`&J@YSBsB;W=!YQJJ6?Pk>sz
+z3Tl}rOn3;?%HCjeJ~?^T%_bk0NbgbL<I~y{hiM<J0r<)h|LA}&a?pOlte_=ZA3<-V
+zGbO5Y4V<i<;$$NasLkELwhgu^ebU)fiFC=ftcBUBpte^852g<$s`P`Ltk=h;IkAfz
+zW&rrqVK!A^TKQv+0H~>SZRiDao1TcHGu{3b>g);f-L#ZM^JoXuWpXqrxuJfNlPcQL
+zrujx2mmXVXe?e#M0{P)Bw0l{|DmBPwNbov`Z0evY&}8qZ+X{N;U+7GuU}%r=oJ(LF
+zbYP{;1`{^{R`4~L>x(H!)POZE2x9C4SW|vN{ko4-p*>-A1X88!0k6~*X&zmGbS;Cl
+z<u=jA+YQ%YyPzM|hwJh{a!{|4z9W73ooUG6_7UPl95U=k0*YlrrpDjF@>FxOd@ndM
+z{k;ZO&mUR($3jjnOuPY>tva$yNrFzOfh_mPkBdymTCWY*(&oq}Vqrc;BirKLP^(HJ
+zN893HyMmEpKopR34suK{2hlW+SRSHTL1G2sM4|^V0XgEyW3J6;Q<r+>K+YLQz<Vbm
+zS5yk*0}tfdn*e^eGjjbb2)=tfa*L4^&E_Ld>H;v&B9N!h5uis^<k^}8F*F`|l5Rjh
+zUW@!~jzIKDK>pPe$W1Rs{xvDk=We3FgeMS3GolbL1u-QMg=(CIicXKhX$pfka{ROp
+z%z#ZO{NNyT(HwBwT>&QNbQGfxl*JdISoa^$gA-Bw$4i)7rBSjP?UVZ1oD5ee<w;AM
+zFU2PBy3?k<8-Y?g&q7vmL+L4pVDiSpeZ(lJ%5PD2FkP}Y6;SqL5V#|x3CeBr120|&
+z<sKddb~QtJ%LQiZSCntC3G8ALD!jZ5w(}u8e(azPHWw8m+rU(~h>DNt(zMu&%7xm&
+zENqU-t$sjxr$ZG@e|KyUstg$hS-&Kz>}U$TEiI}(r~v(Hh)t{dJyh$p4-P&w2da&z
+z1z{plQ&)sp*BUk7<^>y?2DR#cf~d3=b;eDHNm~u|Ce;FaHxl*Jex@jP6ZO~5fG+qF
+zo@MA#M0ADMes36d3Jr#m)B5=Y4Hv{gysD0d>uA$Pokk;X@(Di-8Xfpcdf@6mI_QbD
+z_7i&4NHjY92eQ^9H0Dph()yus?*!WA4m1uOL(y>(8t<G0J?Au<REmUNpB+tl_5kue
+zwW-=KLX%JmuLnyIV<{dCM^o=h;1kE8Y1?WfI3mzAgjQr^F*N<;2i5-tniX`A&+c*q
+z&B{!NXwijq2z_9_I5gY$jDpEZG<!}#sM|F(m*b!xG)43Np3u)9p!pQi1ux&D`APB-
+zIV~r9hS}7w+u5`V)Q0zhW8mFx!28g@U{)30v1On?)<KK@z7*6tqot$a58!hfv?OZf
+zhL){EfI4N-vV9zQz(Ob2)ALLG!M9#U%PsZ6PhCLE-!9PMjnVq@VVG3Q&}Ll>MBjPv
+zDLeyKnQHLq{~16jo4j8^_?-Pndhe=DHDs(!lhYRtp9?3z?$ZlIH6#u`pF+UWZ$rCK
+ziqmmji6_7Zl}Ec-kq~2oZK_A{Hg%rTXkUqfkxyE*kDLnAc?{YgSCCg9qy3kYQ0uCo
+zL)ag%d=JsFUk|WB3Fx@@4p^zS=y>oYbm0vSbUaT>G;XX-vp5{S=|d?7RD*BHV`Ppm
+z;oJKUlw%Hj`;o(OoPh5<+9R=#;JcA7$?u}X2(XwJ#7!_8n!<N4{g6$Q;QOZ#MASBP
+zB8R2iSD;gBw|{cnCJ$b2Q>AyTavl^O>}0)UCnx{4sY`L2CiV|H`O>8+QVN|LctMf*
+zb^dV_JY=FxHRFd(P5Y=z=pyi$xow*Ff6!(3S~|gPHqGKQ=<<`o_Uzg=m1E`%_${Vr
+zmEQ|p_xZwnFNU6Bi7-1Fz&|nxmempg9muzz*@1w4<)8yEqtDkiP#trjZ`)uX&Y*8+
+z`n%3`(bs<}{lIrlK0jvDq9y<Lyfrv40$WFe{deA`cr_Y<{ZCN*tvdmM$Gl<H+ljze
+zWM(@DqJRD@um&|mf3gPFsVW96AT3vSHwL$)UHp1G2LIcnb)R8y<YK7tI}numDNOaL
+z2r9e@diEj&RSpBcu>r$eJ-`zGVEFALU{`Ws^eq8?#2*vJ&<O@z#e}nd4j?HA6U%!6
+zCC6Y=&U#>%mSM{57?^AUm~vnX@IDk%PLmWb`~g$WzXm%v5!2qThxxD-Gu%l`H1<MB
+z7`f_dl@ao5CdGtt2n{3a7!-k--P~dI{(+fe=0k7YfSKE_LFGteQ^&3(I<CRWa~reA
+zUMB@p3v-7iz|^~kdGlx~BNt%4YY<GK)Cg}H2D7gf!kY<bYYW2fErx8k3K3&zm%o02
+zh$DW`PYNLN=|G5;6|t~*U+Ct2uy6s%@X<$Xs?Mpfkd%;GcO8p5w1t}c4T~J7dO#$X
+zz#^jAG8~J}5VzLE;@1Vh>a@d>i80_06qe2y4Msv`<wCmF@5W+PYm#5NBCxt81+DF4
+zu;!L0>4>^m-!mMnZ5OOh+y{MjBsTRa23Bk(qH~Zke&CDfGvs(~_Q#fPt04NPfg{HK
+z64;vM*j9}c(Aq56_B9IXMpkU!JsM`gE9|J01l4pbb{uUF^>+z&-j5_rAB)}JOTfrL
+z>?yN?%y2#Smz)4I<T>`o<$&Jw2M6|$iq4Y5$<n=X;O1y@<&SY>jXU__Jvj2X14Yr!
+z4(CC5a~!SY4pfymUXp(Cidr~HB2>N3hEqRJ!YVKrrzr*F{p;COL*C-7rJ%iuZzXu;
+zDmKNW^)^-UvrbmM@8s~SPHrn}({wy+(+YB&$GO*;Ag0a7g}s#b4LpnsFaA9)fXn5w
+zLHb|96;81r|4&@;O95Xv99N!^63TxMSALuX@-(ukTGzm}3?w){_QSP?q>{S^BHq;-
+zBK2{^-}3+uY+zIMpNw1i3XydGh1<C)D|YnhhI_rXLuJVJf8NIZIh45s%)$dkn@uV_
+zXh?#iQYJiTL9VsfK_o<90lM!;!oG$OlV{>#pTZEjA0DOihDv=MkM@3tDHn$)Zz=OB
+zoz|xOG!jquP!?5^46aN#dCFr*icf*Vs!<8ggIyu^ro;0ew3IEc+SHMi@M6Ppn5gr3
+z@m<pE{zz_5D|9~v$-#Lc;x-`p5J~C{zma^S8i~#wcoj+U{&+zruSVi^p<OT$zIfw9
+zO1Wx7C+Dxjn=Ngi6L;awp(zen{=4x$kVNDDJopg*Z_~_kvUCzYU5|%c(F&g%kz<-X
+z17CPIsNc8nWtKOj$4-39LkVi-ruZ><H}vub_*Ezf!u30T&uT+U+smeGd)KBSkNWR<
+zv#}Aw)C90q!3+x>WG-pKm`>*pbQr_TD_WZT-I&FLV7b*`)(i*4rgF@RCo9Pm&s^F}
+zgiKq3xtzaF>h~5)zcep+o?0y9me)`Ln^<PH2eR8Tmicu(i06mtT%sYp-?HqNo<r2?
+zXj9fbVpB(SW7!>V$o|)jWjSxmhA!}t<x2k_`0YU~_jxzc>!(=Wz2!)DZ)bTQ(I#r$
+zfLM>XlI6QkiARRYEPqqdgj>B?{&4|7L|RrLeFP<}$*j-?GT+y?S>ZDD!-Fm}x1t9j
+zYEERu8{CC?nU)pz3xGA!hdD}CdIA}lo4FSu8D2JlxfdswnsERt^MXOdH)3V8(X}sJ
+zk(GaZi1PNfP98YS$|sSEeYcyHf0hEP?g>`m<VY~fop}r*f06EjlXV6<*<?AZ6j%tx
+zyDzJBWgB?ICpOIh<6xCzXfyrI#VTJX$KZaKRl#?Nx?@?@Y^lH|4`o%$(&j1JoK>Ai
+z>h<LbR+Ux&A7`=ZIky7CSF@TM6T#d6u&KJ-W3}0Qs9l9w9lte{1@~d~>I{dOv6I#B
+zlZmwBJ63<}ei+yEtp0C`DHR->m}kE@sC~Pb=O9Wr+Fr3KJ?}BkXVqY$Q!%e%@nESY
+zvxZemf@OHXn)IDdm9fLDY3Ce}Zkn|^{1oi)OV;{x4zSAqu{N(rgf=M4+Ew?1sOZbu
+zUA_S<oyOW9%L~?PJ?oIJKGco~)^S`a%KsXdV4d#J(kyz-I@g>4aeV>ne1zn3?R8FG
+zxMtJJILXOOeOc$rRF3<3gmoQ|9^y-H)^&7YQn}?>*IyJhXH8<=L8;q=i>!N7s-!gB
+z#d_v?2Wxa&*7M3-;Pqk_uxJ=~ovt<=I-nd2__P9SM;0e97iNLn6{g*2)^FgyGu*=Z
+zhgJo<7sC3_rRes45*rZm60%e{8xR{$o-URR_)ZB+?WJtsIg;02`PiVIF<>L6v%%NN
+zT58W^Lp`YsleVpsCF|QXp=H^ySstYSLoc!s8-~I>|HwvmD?}BroowXQOE6cmu~Drl
+z*ZaAVjS2{c%37a|+7$wMzAGE;O;NG*M>g&wWlk%9u<==wDbDv|6E{=<yS$P)bwd&h
+zE-)QzK?yeP5QS@XlTBa03u4VYHvQl_N<e<I8Mz&a5IgU%8JAt5jvQwp%}M<}$iQX|
+zCBLxsFAG~qZ`_lQ&E1v=R0(DCN{}-0xy0sqg+pdN$>yh_l53XfES#j6Z1IJKe~*Hk
+zIh#fNM?bLqV-}g498QgTZ1Ec^$%I7PG%rHg@|>4|CAr!1c2(TKTb*Icn+8JfF2<tz
+zAA~Fn7Pb94_<*%Gt)ONs`p6@gq|7Y(tUtu9IxPDBFEYn<P9A*2qQ5VpFPg%(+@aSi
+z*9jk#HLGK*58LUW3eC$*Z0G4h;2mGEJu@kN2&!*Wjk28Fn85aI7gPuB!uF1*<k_bc
+z+dDBoSl-@j|D+9Ir$?}3Gh(17m1oE9Wu`L24=0~~Wyk+2u*TC_oEz0O((Yk#0Z}lM
+zZnM)J{3x}|F`b=18~|~!CcBtSp4!^ZF1J1a{W_6d$@Upy&J=d#Sv+{JYV2zM0O&?9
+z*|j|6fPK@mYu8D|_Z`8mz2)G4mauDoQXsnBVAm&5ZrkG{i>JI+^i5>(tu8?p+{JE&
+z&jI&1ZBtd~^^df*yz1CbSVP^}t+7!Qg*V$&F<EVzbPd_9XC3JSs<4Dn6phzRVhIP2
+zgU5ukhaG)jz71y&V<-nsT)`gIUkNsEA$#1KwCi+F_W1c9@RE!@Sw-SHLpXcdBm`pV
+zarX2i)x$?6v&3r-vc6h>*t5ZfA=8{<&zBd5m@e3h2a_Q>KV`{P$yk~u*wneb*eeqa
+z)2lOkoudM2+tTcH0$q}i_t_f?wrap?mSVLh&;Ode^PuO`<Y(_*KLK_`viAW=kbYI!
+z=L}`QXRTx3Yf}M#7uXNSPtq}UPO@JOsao4UlKrkS9qL3)_UGRj_BqJ@ej~q^@fiF2
+zgF?!;t~S-6?HteRK|ig@#eqVwirnLp6{R!t=W0+G_{+Oo=Nty%U5x9>M_@j0<Yo|6
+z4gC7@R3qj=6ll#|vb}{>vNCtLcu>A^VjNH1lr~?B+B}Wu2$t(4cP%j)`hyR5P1;3@
+z?g>wy;sO2U9nZKd0>ZZu&-k6JJR%Rz+?kBzM{1sRU~A}KZF%;I<WP4m<$1gslOt`$
+z3%FAhU-Fo{h0)&cQi2!rq7(5myx2xE;u@BNyQjGUGjcUAqs~##Yr@O^@`o<z$;;&;
+zw^1O7muJ%<uV3Ni=Y>K3*PmCY7z?XtD6g=A(uw`9+{5K5_^?mBV(1j8`&oI#UkSjG
+za=h}}JrMJn@hVR~LbQ6ptNi=H;Y)ed2jsYY%kt`(scKl(QIXf^oQtAvWnMEAS*3c*
+zYfhja)Z;&1YjjWg!(f}*YRzkfmWEh3h1WWF4<>R8uY1=EvO#uUukkRdk0$VXUulKX
+zeCD1F$()aG=AKU*Qew7%dz~CkE0K*iTCo9QM={>Gtq+v13vZF13ha*C%XrHczThK<
+z^Ok+rLL~L$EvfKft{xx-aRk=Pti1KvanwS3%iFX_1^wSR?law$9BMRg*Mu&S%YVFG
+z3Uvl%wd5Vjra-1U%R82&6PeM3`&Qiz@pKUH^zbuy#gjIb?&xGif8P02EF5BWDeiaJ
+z8~oyX-aR-Q<+4+G4>}XkDToIg-U0EtFAsRWi}IcyJm3R;;F!w1S9%i7-wX0SPhG%=
+zFR*EPe<s$4yphVL=~I>W9rzLYQ5zmObPud@-T8ogl*0D^zz1FSCg=H<4@&Gwt);tr
+z`H%s5q1|ioA;+k-RP-(%IxC5)^BH;25h}R$QheAfcM{j(eAq#f15e}l@cR_?hlTOs
+z-^ufj?7>HzrQ)04J118%n>_L!A6a@JO!1?9WD0q}uE%Wh1>2lln}(14<{%j`x)>jO
+zpTu>-O+Fzt+3m6bJ}GYsm70C{q%GuXt%iI`@Jy)DbNG}sy}-6lcJhKZpK21p%G~5r
+z2Tg$pImoAe$O3U<l1=r!BcItU9;Wd#o0eAzJ~M%Y+lY8RD<{=Czdh%(9UJyQr~ANX
+zU+xE;`z{X)qqw4H*i_Xn*fd?<^Ep|6Lc8_nbDG3MjK0I?OnwEOC&i{|xsJ~tN7k^W
+z4xfLOSf&z>Xjhc7`UyOu<8$&S4j%cEa@w`td_fh`#P7TC1zs7U5;Ahff-Vyv2Mptj
+zdQ*9Dc1gbI$qk4$P59zIo)EEV_>wW7fLed~(s$v|Blhs+11JdZ&C8cRAjLK}D_^zd
+zKE&60eDxG+MUCIiH-?d!72$kST5`FgZ}Cm1e4xL(@aVzeP}3&x=+|Mu^tpU9t*{l4
+z+rc+idk?-bFW)?ZTy1nP-?ph9)Ss(-yKV(*$a=ohB{OZB&U}|A?QW#zyB51a4sOkN
+zt#bt{>CgAJJOGm;obM|WNFSV$?~7vO5gYUUxhg|+nZ*x~`H9q(_(As*5aTxSV-rdH
+z4rsuSZ@vND%#p}XREVM4v@egH_Z4j6OCI|!9_mX29_LMa<6asb_wpr-D9KNSOo16S
+zpPyR%5yrZ}Pc8k&9{hApGTQ;Y`02CnAiJmHXI{C{B^|=gWh9SxFMyw`83#=P@?6tP
+zu+nef=Yrb6yxqyq*Qf>MNV|)lA9o3S(kOmDo|-EyC-Mv9$-bv9<`;7f1awn=r5;_1
+z4o~@&4iOMu8~BxHBq{$(%i}APSvF10;}<ppYS!d8{HbBq{6BuXS_1fo9sG6&N=+kD
+z`0f2vcBqn#->c#d>5_rpFL;%DC6jo<h$yoEuu%T^&n{R!U-P6oYoU{u^Q8DAP)p<a
+z^9=Q&H`n1WNEEBRe|R!w>?n1FCwo%P8g!i}CtiTqc9_5XMfH#hVf=NS1Zq>d^4Ak;
+zKrHUWQ<hx^d+y5L-lOJQt5W=froB;V2LJH5E5v~){_*PtYAxy}{L=_J<7fT&=P~4Z
+z8wK(&KQB?jb%cN2NSRrk+WdRo3=p@U6Ei~G`9P$od3OXcGw}zJ%<kR<VpfRzoS2O`
+zjhG$cfeSGQF^vDXF&O;VSpG8|)jvY7@}EB)o=_LM@LyL*OrOulf2U0WTd|b?y^)5L
+z5C!pJkAWC(fnS26;B3L3ctIy^7W^+o$*|r+@mOlCR1u~p#fCAjgf&M%Hrp?(=sS>2
+z%Gp$d-E8U%|DLD3>DwaVGNdf!H<N^m<0A=%33G)DQMN51Qm3apB!{O+-B*)#Z6wkR
+zKLyeAj7`}%i%r$X-KI`I#ilX+MB0j!He8GsX{oYnmG3RmRh<MAEJgZzd4b&_Hm$y?
+zMaEEaaCv@;%wq>qW%sIZWQnJxuU%i*yfDb7m9eaonNo?YtTkohuSC{QwAo$_w`rA`
+zAhN&S39Hy4kt1gqb#bSPoPN|7+nZ73>^=}G^8}IGi^6%xP$CuULbS+}k(z7$2Z(%b
+z^u@>Xi+sH(`M%WEA@Vl}1DiWg6!=5CJYO#1*1HE}zk$MSC)Kv|goz@}+`)!56-C0z
+zQm|=eQ{`Xg<hVGSrgyX`nyVH}d?!)#VJfN$))2+YkTs0XB}!87g!QQ^N=}J_KK)vh
+zyg{k#&f=nUwa*Y2963apX~|SJs36MuR-iCk+@|S!MU<OD66;GBQSRh^i2Peb#V~Km
+z(mRPt)Q+%<-W8Q&hCwa9?c|cbqUw@!)Q(`H>YgRga}SAXnTx=D-65*&BP;oNO;kTZ
+z30%qzQTuXZ61}fPokDFO97mX_S0e~!Vs24i3#hH9Mg7s_>58WjUR~*po{7Tia!-oi
+z{-WW{0LV;FMdOAP4WD)tjYm+>Sye_f-sTT=siA1%Pk(Q!+B9;jXgZAY9RCuc>8Due
+zZzn|aXevW)nlGB~{R9>}LwHBjq0s{O{h~$so>Vq`EL!y;$Iv`UwAw<BW7kgMlm7|$
+z-m#+XmEpjKrJ~)X+OP)B6YaNW1KX0(ChxshbgEpQ#tvGGE=4^cTfGonKDGv)yNE77
+z_CZyd?Bx8`!tW53u2QEJU02?MHD`h7){RQbtllXR(1uD%Iio~CENzbJUqxWHBVgmN
+zh<<7$tZDm1f09n}MISL>2F3CAC&j=|4WZ2-F|=|;m=%Y`&{3tJ&wmj^Z&8sxYP%Q~
+z?Fv0SL=2zEfm{JL#rYyORi^YdtsH5^@MDgXB)e;g5h@WPO`;g-It#kPY%w-Hr>^dE
+zF)kf-eaCY#u}2u>?-^oJ<r2^*Z-`0tX#^lkb}{w(e6U4b#Ed+<sGKlZgrtxPp1E7h
+z^m$6vzxrZU6e%X3{9?}KaLN>u#hheHS@-S~^Eyx>5}9Ajb6ouhHTkrN=)Q_1*a9c7
+zPIK}`GbiuX5Rqlx0#~(&>`yhYX5WazfaaaV!q6nJBA3LHKV(HM=8L5rTxj!!ise5G
+zQv%aNtY}Z+w%HD`W(#!zM$8paR7J$C0b=cgLSWewg~L8@?<O{WSqa`_iP$`gK49=7
+z5mRjn^p>|GW@a#5`=Vmo_L1O2mWb^Gf*{wG5xcUJJXd+e{u|!lXG@8L11L7E&m|5n
+z`cCS$os;wCi-So~Gzs!b9O_CgdEp6h_{AG&*Ae3Q3`*S=|8a=pclSe$>?=;>WY8}@
+zir5lV^xoNB#P*=cn=Io+>{WO2h^s{G-7;YFdpWtOfjIef49u<N;uNFG&!BK|s{BhD
+zN%<&F9gl>rTSJ`L8AsMJO`Od`;daymahBTAX04w%d%ixzu36$-kO$Nh$8&M1F<r~y
+z#l)4t24eUnab+nvqW_MHD{oi8%K2VgEp`#&<UE_|+aYn)^CWGyAaSh|35mgb#r2vL
+zr8~3~H`}g-u)M_0hh7j<vy0mqo>SG}m$;qF4XS;txYKhk<g%6G?!U*YuZz1?NtifV
+z))9AKP~mj`JaKPzL5M5G#r<Jq$LaGrS?7e4O^b;K)=jE+{GX><i3gu7P*qMmrp~>{
+zIaWMPJ%pO+RYcNO0d_W7JRd|Ja8#^#;hK?J)2+peC$tjN6U6I66k{UZiPw(K6#pZx
+ziPz^nVAkxmY0Y^eUf-j-W}7l1B|EhddKD6H+f&W!RB!RlgNCc>%@gnX(L~5^U-5o2
+zdCYE};=^ikK<A|R(v*DvnjrDz3|)dMdBoRI3@WLR`1*~)?e3xC+nQQHlPu!fIf@Af
+z(~0k0vpFao_7y*ut^mHy6TkM*8|nv&-*rAyhu2g5-n0{{a8dE68^!moO#D561SS)W
+zZFC`znKDzd>*SL4WyuGSWE;9g$}87l#zot-hQ&#Bj?6Cbi%paM9Fc@hC12uQnDmRK
+zj&U@hX4-mbg$;wzmQ0mQY4?J^(xuiw$b+9{ngBoA?W?3~Ogv>W(K21u9Wak)%5*=;
+zuAg3#8CFw1VCu>2y*Na{OETxYx<HFMGFRiw!0~9A_vat5hA(BlYD1_=-_@q_J|pu*
+zv;}{?L*{dw@B{V=nZG!dMjEZNX$G{F`MoK8-W@9oR2~g{xh)ID(+`?fNfvgGg7Doh
+z3*YQSwHyy8|5lSl=&|T@$fo`~S{B_)RyD7cEY=~K9M(cvY=j%tNuSH&9-koxEtkb_
+z4g|mYNIHstqicQYku1?p(Hn+K_xhBOyl5odchH>Lqx-UqJMB`xyt2$BnniliRhBJE
+zC7ZWXW!cu>!S>~m<wj=)uXn?y3H&L`Z=n)R>}KhahE((8oYEtKULSlyRt&SCA|0|~
+z(gYa3UslT72YN*whpfDT1c)b>)sMx(Y#S_VZv8{mt-rG7kHb*4Ys=cyELDG7$lB4~
+zFkyvd-Ex%Sl*lU^%qb2Y)k!v3&<0kCKeE9W+TE?6*tCi)l8rh%g<8>BHtIQ<;{0*h
+z*lh(ls)w@iQS!Ji=gKB0LaF`eXeFBt{X{Ofn{2*^1j5^{(z`Kn`+M24R3b#WAlWwi
+z9atXSW%~$<`|gWnhc`*!0l#djn+;^gr`KWSs4u%v0)ylIWtY3Iuv{ldzm4^&(OOpa
+z_C5g-{#N#;B$uC9BKu^fgymIE*>@u4n2tM_WdGsh7(O19{eM-1$yrhkm`2g7(mgrg
+zKy?}knJovL?+?B|iyTyX9#C$j9GoWwyv$`er1m8mOSmhCjJ^Ywv7a2;ycR@}n>N*K
+z7ddp;5~!O~<<JZJA^WG7!v{WrTE13}=<<imZ;u=ixQ<#&<qOJDO~}l?WRRo$VyL=5
+zQjXb6xmuRna%}FkP+xn=u?=fMZyYGc{zoZOk!f;V?{J77rR8|Pj6k(bazd+A;BS7&
+zDR;>6+-Yf3wRV-k8`n_HD7Os$MA`1*Bsq184|rq`IrX2u2<$GWo~%ZWWNvvm^)E%K
+z%WgJh{iAY*&k5)WO3t|c7c#(2&Uny}>U$OBjHJ)d8Jo+HT%j;&<7LRSOJD;I%aHAB
+zf!cvKRqJ3GYKzcfGPK`XSS`NE*%{jc-UDUW>j*lbf^v?_1hAQ-iBx(OZfoVdCA1mt
+zmXh;+4uz<C*2(>AWq5N+ozg#(;ioC%86PUc&xFvJ*ee;4YYODGy)vRC1+B92GJ?u>
+zRt0w%S)a_bLadCO6F^qbK}Ig5zv~$w7gDiaY+o!FURThqJ>{atho~+2SuS$?JNQt?
+zenJ$;XH#alYEzXP=;Z!|Huc;$Hm%?Sa*=-=cv1zqcp$mjkPLFkm^R>FJ>}AQpP+9a
+zlgoTh0LQ%KvaufE8=lD(<xWz*e?hLO5C9eHD_7JhK`XdeI#vZLQm47)>XGz|JFc>+
+zHdL2uBHUrID>8}?g;jW^jLH=ct49mDF2@G&G&|+`@+7Nw-H_{7_(7!IE7yOaOVhuI
+z+)&dW!X=m7T$X~`fwOY+35uevL*$lX6TolZms^U{_e`&0Q}&qYun$!76uG6;I^fZ3
+zn=F%dvO~O+yM1l)wox`kgAGoeS!Gj}UhAaiRwqA}wW;_3Cw(_Mx&M|;eW;vGE02R-
+zXwwmF{}H)ma~H7g2W{%Tjfk}SJKd98Zc|D2@lP4ks15WTCS(4(L-%<ocibg&?Nwav
+zyz+0T_NCmlnJStep36P_7R<E4a?i;iXuleA@2Zb9ZoFUalQA%}H^_b0%0rLYFZcg`
+z49k%}yF56h7FexE@=*1Ec6ve{3Z<Iv@a^*Of|t<yYse#cDcFq8Cy#6<mzva89<55g
+z{p}BVbP{>Ilm_zX6PgN``bHk}B&%q$P@Wh#odigLjNLg5>R@jfdyEQ_#ZJk%YWsmT
+zO=MgI?U6S<<f&>css7)6qdeu^lqNIF$y1T!xoTaPr-v1Wcz95rX%qoeTrAHvi2(EU
+zm1h@GpP=<rd9GGB@UC6tx#6^{WB1AnS!omgoFXq|yGE4q;*A(!P8E6a(>$>B#pPvP
+z8|uIzd3i(x%{5$<m)9qeKiT(>)LNbod3oOy8vUv%uT(ohAN)#QX-U&LOMcnZ&uYsn
+zJ^nyfyh0;O<YJ$XvZ<!_mhoArFM7^J-Y_dk9Vf^eZ%GF%+b(aGI6>nGspZXyWY$MU
+z%9}4GkS&wE?RuO<?NE8UMj#E@WtVqLI}T9`sGhtV>IxPgD(@G5N<AnadA|ew;p^S<
+zfxR+6<>NeLM%9Ak<NVa|NV8Es{<s@_;1u~}1T|o5WODKVlTVhCBb)m|CU)CRGjkW@
+zvs5%@ny-s|mNOD!=0y4I$yd^t1LSk~fepVcpF3!pPc(clpA%K*+VaJ7iiSBd$mISc
+zvl|Y!sXr8x$&pmSc-vaO`uz#K=T4i-f0KOE@&@#^pYn~r4^Y`#raTXX3HVRGjXnZ)
+zC|th%a0s$kdHMe5BZwcl<ojQgfE;cnKV+o8YnMejJ_Ndh4Ot~WHQxrMX3EcfGts7c
+zB|lH5a$Jp{@=J-U&`WB|uNP^_77USJZ`PtB^Jw|?Uuz|LvHa#6P8HL<@>`FA;7{tv
+zZx7B=W#p**_Pr@Y+lBJ`#y?<P;^mJ~Pbm%GAb)Hkb=;22AJ0iw)VuAFzr4J`-?fy#
+zCI&#asUm-uT><vxs{GS#DpaqDHg%f%PJYcV|Be|+A~Uzby9DZLy;k@#2s&pG#SjKo
+zAXu>pi4^y<DltBmvfdm@jUz|&>$B4Jn!&1EO6hMwq>h)WRO{&n$2ctIvL^-BC|8ww
+zCb`HfZ&d07U#Ym<Sh-d{4l7?~<=Su{*oG#`HSi);FojCDm4r&p!z$gwYS7`9N`F5u
+zteV?YhJrn582`M=u<s$n#)c}xc~Uy9d{xHwR4MJqRHkR)u=2X9%n$m4|JO}rDN5h#
+znEp*=sdyeN^+TIFH&a>9UIG_aR5qI6W0Nkb92L@$kDsJ+L{NMmv`po=KLK*nG?mkj
+z<aVnvD$i@u^YOkmWtBvgZ=);J(cLQl-BsY1_pAKhXobgyr~+firO&9T3a)wzol;2^
+z+PVS`_BTQmUc#aJXHkW}(&kz{N4e!L3SD!wa*L=y#o`aD`0)vp+f7r&uTx?Y^F)<k
+zF<@SmREgo95RcEQ5>wr1Bqf_FIhzzt-oC1I^<?19SyiTW7)%D@EQ$@|daAPL7J&Dj
+zWYd^6s(hgdG+H)mpDI75E#w9tRX)*$97F+CVKHgE(>s*Mc&h!5@Kzp+>5HC}Qx#Y5
+zrj?qaDyI05j-RJ0&ACQhFH2RrzZS-&m8#N-IwfgFsp{KFI}ZA6)3}~fHTGqq`*Mn^
+zn*Z*NDfrhWLs3=R*HIs=V>BJqhfcpv)jmM^eEB1)PUm%$AoNr9c0Q#-WC2zG0Ex-?
+z)5`OyH`wE3)qt8)SX4qaxEu>MXM#;t$=}H#Eo_<`e^rAk)C1ahT{RRrp~tpTjcF>-
+z6#lK6?@I;o>7;7m7+r_@f2CB5aWBcdHma6Y_Jdo)RLji=$m}+%RxT-!K3=NrWCe@?
+zF%GIp5!KFP3fXsc)vkX9=#hU^yYO*PK_zUOa`RP(POD)a<x{??Nh3CJs7`H<LVJ8s
+zog2~JAB_`iS_PLYM^|^M;~78Ioq9VsHdgicNu`#D;i~7auF$DGlz)d{u%nU6e_smt
+z_VPB>@F}X-&0P?!3fk1>hwAm_I>ec#s(0G!)V^b?cP-i@r%$RrH6kF|cebf|ZC8C}
+z`H&;atood#@2lbBun+jQSexSPbelR)8`XFEV=}{^#3wMr8xfxpBZ<`89sWcG7H><A
+zBvu6urHV+%d=>bB!uXwV)vpjapejvNe^r&5^l_?xC#oZ6+^72YrcFBNflX64MD<_d
+zM~R6ejq3kj9NnAJL=7k%4R!IR8rZcmtZFyapc$0?x>HA$XzG7cgHCs(!HQ%x<V;%_
+zvWB7C$x;2Bt%lyDI$?>^YUnRYP!@1CY(*SIuZL>bBl2*)imBm$Js^5NRU>A`k?UQe
+zMjY7$d8-hS!oA~Gq#8B!7x;_@YIJ@oL<T=lqd(FTR-2{921dbjs-(s>$^tdh&B;ZF
+z)VSU>54|o?jf){yeSei2Uxpk{6@NAU9$l({6KX=6EMU?@P4Mvo-fdKl<DVe!zEG1g
+zBvE6skeWneiR?%vHEFRR`(HfWKHxPHoD8dD)5_dkO}bkG`f8L4b_s%2v7MThM3bG<
+zJE|E?Nh!r$vT3C|t!A_#|8TpDnz4BdbxuQ6NC9uk9}1|D8X9J)QlZv&$fdc|%$eSh
+zU*4&i3;ZG8Xf<<vFxCIv%l|uo;y0YE-p8iS-^-@yokh*uToL+8b~W=nh28DX)U0Au
+zY<~7f&H8s2(8=~{RzLdtg58}Q@1<rfrXRHMu9~%l3LAs>5h=Ppd7)-KB0n<yjZIx}
+zo0=WyI0CDC6BU-$i-uk|sjzA>P`h)hd1ez>{zhuv{V?bu5o-QFjW<0>h2KbmxxGY1
+zd^ibFsHBQyS%{C+0z`rN>{bi>K7yT_pccO;rSl|OExAhmVS7y{FDSKi1__%naW++W
+zvRdk(C(Hz2wKSA=<Cyn0Rl#>Q&6IGPR<T)5wm7Ahm0U|B86<LoCQy&)hgvr0p9A{O
+zrmB6=N!rxQ5@?{I<Y%?~3ANjU|ElFb5}}rOI=QruTEVHY@%ONDtcd$Y!?PdNio4O!
+zr(D&_<muoY4y!eX@<SKPtfF2~68Rujt^IHSY)whE{$FjU*hrgZ^$oRw`uk#EKDD7O
+zC9P`@sttX2fz2&rQ#n4W4X+kb_iK~dn4La9?u*)3G&5waRW_B+O^5T~C%qx55ETxu
+zsZG~tZmC%gwdorb4Euzt=&3G1^eYt|N?~_H0kt_oQlX-u+I%bq)`VoWg^{NWT&T7l
+zpr+Ntb1KGV5lO4%DrTZ9SgX%!+c^qqYcHy8@AH5+8>_avxr2>sqqYzH0W+fSQMG+I
+zHJ1wPP}_Hse2yDOq%Vq#R=eWj!Lz<sdlKBBOZ8QI{`~XZ3)S8b3cE?y)WIfUr2QJH
+zLzSulAMdL}Rg=J*=C^5fN2x<C$@izB*NJNCrto~#vO2;msv|>a4|`0rDLpILRI;>_
+zMYlLv{+yGZOKj@Bi)>m$lGV{IVc@x-j?JWj(|Y0R*x~OqFy2<3XhM%`UQ#DUlJpE7
+zt>TuDS2!1<;@*<~yYN$;%zl=v{ayxjx>pbhA5V39Mi%In@6_pk_hBXPSLYgCf_fOB
+zF8ulomAj0(*qCI(h@a}>2ihSds4jl(4^?ZRy1b<)NzI%#*`>EORmg6e=C!xFQso;|
+z(G+!k)eqWH!7ARv07VY`ql02nlKq5LI!MKzA_do~fVxqZzUcHOb>m+wtJp)`SnE&z
+z?x4C^qasAyE1N1ble!rqVBS|!_a3?dYqzWW;S_?JA5{;t)7Bf=S3Qh83EehUJsL+>
+ze)Vqk=nvUIsoLuCyC{g8ZB$|lhadFB$|`YZ0q7guRpPNs&;v56#6LHvA6Z!?xf}sY
+zdrUpMI~j836ZPWFAJ82GD%s@(RFT~(nTCbgpOPv${|cz91J#?Z^B`LWtCaNgh07+Z
+zw^I^mU~IB_*OrX=%mVd(*gKdy)rs$k!_<4nun%;wm7e%Wd`A2PQ#YUb#3=&Iov%LC
+zO@O7pt53<URPouNKKG_>-iVFrOR9n}ug9ow+58|wdZ=&x{K3lAQs4I^fES5WKPFPb
+z<tV3q22)D<?T`9XU<E~piW&uDNmm`y=$8{FYQA>Bp<ukUX6;MBZ1T|ja4qmdzFNiI
+zqH^L>t$xthWbJ1<RY@|&QSEgqf7<iQwrH1@)PC5JTDy#F3$Y<ayF`$Kb@SJ0N>ivx
+z%B<5grsv<6(`mzdgYTNBUCVipqO7c4J!8P?25Z-U6D9qYI&?bU81Ul(I(@H&G%%4~
+zXIMb<mAtLaxQ>%2U!=28#RkU?>MYBApnliaxm^8WJPYewK6Hu3SF)+|=F@q6DVWao
+zwJD0s(D}EyL(X^A1-zz$)$XYa{;Q3p4%LNnEu*6Rf4b0#`p`2REp(yx)X8=H(1pL&
+zf%=q6yTx7tJHJ^MtxY*;=}Nj-<XNcUmM*zdKsG9;OFkY59o0*hdfOMcyGNIf@qw0a
+zb?NQ2a-SFLGTs+K&2U}zXd#&ATXfmj8`Q+hugl(}JZZ&cUBPP(*q*_<;w`GFIUXuq
+zX+a?x5plPvzDDUPjZ?tFpXjRfa!_;pwXRV&FNAA$U9-wSp!H&1%g+zIQF&d99JcD+
+zPS@ViidsnhZR(44be&2!D1qy#>ooXCUmR*v-<z%L%%-yA<tSZ$B9$lWrzPH{8_746
+z)m|}SWF8*6!HQdCm+f>z_8wN&ow{K$MOxKIH>}eZR+>e+;gcm)(K(?T-55xP*ZsQj
+zC5rBDYjxvm)Q;@Ub(6~-si<b@rdbo9_FT|SbI~;(yk9qcI053%5Z&~p7paE?-K-R?
+zV1>=PSzns=lbPq}=CupMl+UA^k0tXP9i*G@{tu%2Bkf(N5ajF-?Y)BPp+38Hi);lT
+z#y%$&q{)psx<&b2klsynOR<~A4ch2dvtz-Vhw3(ira<@e&~3($Rec_;eU^DroAJ1A
+zJJS^^^$6WI@e<_DAl=TQZlAi-TDSj2=CCqIcc99QRXIj?NZbwCbFNKYwwm@G_mN7=
+z5!&~BCWyNAZ0hZYbtj7U>d;T!X%>|e@};w>I;7E^TL(dniPfFIQuRNvjPBCqp9(0i
+z{etg6%_^k*-mV4)z0h49Eh(eh(Mosy$IIPxx7-=22Q^i9Yj^`X*E-#;>m}$vTz5Bt
+zRD@rqd(_B9LwUhA^^9D)$6=D7KJRtUT;vJUyW6x1e$xRxD+0x4=w9t<ZX)v_-79oA
+zjkHMJdqFZp{u;XXs$}q+iP~Ww+&`rIR7(Kw%ypmdl;2cy(|s#@00W@=22*O;EsgF!
+zlqx;bJLmz~6m^0<_29;NsU+P?4}Kd8y?%rqGMTFU?{DZJ<b_PhuY-2Gf~_y6gMN^}
+zs<KIstQ0}BZ(5J~A|d8})nmSwf~h*sp~q5>TZ|}eQx#j_WR=!VHkj*VOpHxay@O3F
+zXptVDb_&d!t9m@u%EgG)+EMvC)aL;07)a*Z=Am{hrX}9GPCH&E(q_w|CkD~xoqSbK
+zoKJbu<|2B^fpNee$0a@G;w)-6X4BKMxr4bb)6?3!0xR3<X}>B^P${LSPjrWQI#kcd
+zPrE*IvbIahb#vOZTq1SIgJHBM?&;7@<f5%-I`m(i<VHIkx+)S_Aa&@OMAF7N^sGyy
+z9_p^LsW;})vuQxXIQC!GvnNsOcf?aYd-nmDyLt4SIrYIuoU|!h#n@Ei)7dlwWAxn5
+zBsca2>hR|ARL=<3;qPgwLl)>r>Tl>yLPt7i_m63zBa_MF9k{3$G$I-E>L~Fk-5<76
+zFK9*;p_SG30=n(ip-M;D2WD@qUeKRjSiM{?y#9#>q^9XbA7)XK{Yx*NO&)UQ1ikb(
+zl^N$$(93dsq7<^SURH>PnD)}+q0|Y=SVS-P`UB=)MK6DRmC~2bHr4bwdd2nsV2WJV
+zD?ZX)5(CQHRJrcyRc@Q<K8?W{^{UP8R1_;~)A$V1QK_bY?`y2rcB=)wriET#oeHk$
+z<DD#%#z{{%C!3zPY3`NO8^b$7ovNre<;qL5vD@{gK@Gs4Khc|l`a*p;uQyFU32bbs
+zqwmuHeQ4WVZ}uenXZ2(0fc!u}l9Tam^wzm_hP_Vfm=!6cVKeG&Ij9`bV4_WJcIusL
+zdqV9<(tBxIh}W-c)AS3_|J}L{M9k3pMp6bC_FV6e{119yUA=#)J4A7+-F_sWUpK8j
+zFr7T)&5!z^BXKcUA$NT!_YpeNANo*oER~SMwX@QDP#->%4Qj(oef+*3bkAb?#K;uz
+zgL!lu4P5YTKWwUDf%;@xnqh6fU!Sa%5qz|pK6#k@#f~U_Iy+?t^=9hR%h$q$@6qQv
+z#KVlLt<P<$KqD&!wd4F1%1gdH)fZ-wy;o#5_09+SqL+c{)>L2IKvC^sqQ1H)7_w%#
+zO(l9cSvEyq%R}a-_UY>})O@oneX}anx|&zhH|c+Ms60RQ9d9boWbdu-Jg5%Qp|ehy
+zK`UB4qfQ9lLX+?J9r_9Vs{|dJN<Z1u6QW^tn_6ttPvvN+M*Z~Dp+OM-S8STpqjeJ9
+zBE>s|>Sr&n(j6`j^@}Bxet4(T$>sM@JP+2%HB(WOK1L^>j3OoVPQThT75sqKZwBw7
+z>OedFHV^H!s!jBJM+8g>hll?7^Ap$-5B+&nG|cX-`bUe&6#v`nA3xSXZqBa%RHdq1
+z;8gu*M-v)LZe~QW>tH9U8L`WN59?x6MGrHw^(FA|Ax6I@K{GAhm}zApk!&nUR^i>%
+zxTL1&m|NIn?Xucbj%E*?2WKoNzr-3BKQcGJuQrulM{GimPubKr${3gKXCW(JG^y9d
+zzzpqRTuV-($?gqA>T9;(#?`AD%=R@V<J*~(!U~g#2DMm|O(t{Qr&Jq%WwONAr%|)!
+zChL%y)a?%%VX|JGMoK5yWUJ8_I;N}1c9AN)XP%hsq=wDXTPDW~>e%>wH@R1Zfmhci
+z&s5rk(*jL?Mw>PHoGEZ>1;nq(reNX+h>JH(;kP}h(=)^rDY=X4ovTcdol8hfzcocG
+zQ<7fV-4vai0DU3A6gy7SK2{OS6vw~up_exKkX|;`u<NE|N9uKlyf-D|Qoua5Dcy;d
+za%8k|kBTN$JjRq4^!R!Y<57VMG$neNimT4SB<wa7FTbK**i%z!;1OW(cvI<kEvSJ7
+zO_dzMK&@a?ttg4rQTa_ZcLx<ncFZ-^OT<FYYi_DP5->isOpT?_!L}7NwcAXA`S8-z
+zy-F+L_uACwRDR4e)X56(P5s0@kPWVy`d_C&bvS8L?<s1U{+B`(o^qz?Lm%>l>r68j
+zFPOf?O|w@N9rG-rJE~|;jW1%n9plNo(mge;J_o_zqiOY*HsP>rrgiZsm<OXx>jB{q
+zhbx)(lLmrM>18^+{!BS=Wz(@wTd-<djc=D2NK@1Jc0Em_rVEYlUdsM=+%uh8QDNmm
+zPtz%K1x(MirgIu^@X5bT=ZthB<2swpRj99$^MY}7X(phedK<s&Pr-^0cd|yD>AK|K
+z54mW%CQujP<!#gLCIy!}lT7zknP_zMo9XWBLhft?u>|q6>As8vM&wA-qc-hwv%&O;
+zyaeub-}LNPktEt8<KLe=-rlLk{}$yNvkRGkl5I#$2Rcl^u`sZ{-X`GVR4BKMrZ-LT
+z=sSl^Uk?w8ZjFsy?Hf_X^!=6@+@GE&T0xmi;2TLkoSS|bNw)WTW%~6DgG_ca{b<S6
+zv`?o0r@Am1KbQem+fxo%)C>)Efk~QUhR&vps?Jz5q7V6n?hX$#Vz3|Bx6@|Cd^(d;
+zjm$`j1#Cfx8M)>rwCZO@2^zX<^Vy89L}kUXeazS{!O+no&4i<FR7PlK9Jd2VmVYpl
+z7P^uI`)Vd1jR7khW+s22&l^(FO#eFpY+<;W)%+M_y$oj7<%KXEu9&&slE54#Hkf(6
+z$VZPVZ02`~f{5Z~{)h}fsnTZt)rC-9hM4(DanScaoAA`hP=VRaf+e58H)OD>TBJ1#
+zRu82cFE*J457I$-PdAH#ufw!#U>4nuff_f+EN)I`J}#SC>K6*V_?%hZISf?OFe`(-
+z=|=KFRm`fqy&;nCnALPY7VEjwtV#C=c;af-(Dbh?`r53S*&5>LS`)SQIIyjRiMrR5
+zGMIcO>RSPNe9x@+nGRX~lG%`nGNj2f&4$aQ84m}W4cDTe7xpq6%iM$2HN|WkGZ`vt
+z8nbZ{iO{xQX5)i&G&<tlz(m)j!sq!bCVDGLuYEtwW}S)VlXBbS&05$LHMZN-{fyas
+zpajgSL1s(lOVEYRnJpjlL98fdV#X(dSBf$*ClYAX<gVE^kcRH=j<KnFHE}Y2j@e$T
+zJ`Ang_U?|{)V2F*cHG<#RyBj!xtcUu>cM9BKsu8wS<LSHbnOTAG`ruqgLQjt_AJj!
+zMYCOI&x^uf9l~sC1eragn$^X&<^bIRA}0JYhbq%1UYKkSr~O89{XcVLDEWhQXUvgT
+z_khBs&Czru?^|3k#~oSS$-^};$Fl}QbZcae4=4`Nw}gq?kpkJNlsQ?+6=HWkbMg{-
+ztPk<#l!FAs+OOtxC>7b3?KWqdk=2-CPF9}k<VJsUt}&g^{lezbWRlxa9nHTIjhZ#n
+zT=Vm%wxheb7EBT^?GWR*KC2`2+2ZDANG(`l?alp9^nbQ;WiyW$ncthW=J5@>o%&H4
+z^JGCh#s3E8DWj#|UdlW@Pl96Q3-cm^ZYAk5!MyBFdt`2ud707?vdvNRW-<L;)H0KD
+z;Vih@2=g|q8_hotFdvfJLA<MMK1TY%%$e&jAEU@21h+OH6E>0qdSX5oi=uma@0!oQ
+zw$r`0TW!jE!_1F6w8Z!BnV&)dg<jf}x0(4pashOK(dPH%3Q#GP%-^NEU~Z+DzoeY3
+z5}7UNbx`YHTC7-6@PxV+n^y<yOgoFu`AHKdjwP1%p&Txzqh&?YKM@LTV!5Ov^ZU}l
+za=8};`NYLa-6a6()iEperB*NxGg)Z|`_ugkK~~x))M^SYU}c<}1)9~hGSNMN{Cv2T
+zrFsIS?-DD^n@F&H)2y6hN!nFCYvl^1J+$V#m1|xqu&mn3oq;kg$ARruo?mOpzO|LF
+z#C$3pPqgy;_k>wq&njS1J`hvUDwv7P>CzdiP)^#lj!3IeT~C;){j5UWV<GmevWhg^
+z1Z~n;McS2v>0Zq$TCOUrT(zxY$KAm4zI3ueBdd6g1Yl~CRpM0`aBzuLvW7cN`-B8q
+zCB13042!o)CsT)ZSPjcPoj2udg`K<+YPlDl2X(lg<$jCIv+sMW42=(qQ&+9BixTNB
+zo^@6^5At|#j#=fXl47dHS>=9Gv%SJjtNcS(SfR_U3X3WD<V<5#Sn3VrIb~DN?QB(u
+zkD~m)$vMkotrz4RAIsx=AFv|5tV(Gw!3<2as?JY@kSDBa(>+LLZ?tLpowI5rxj}|i
+zvT9oHG?>}Vs+pxH{WF0CtCs5@ssp6AYGtG$-uQ!79allq!9Q%OznQH%EooS1)?us8
+z7CPaNO)SqU4*G?&S6ZI`TEDp#Szh&~K*!Iuyn@KrA1`NljUNV`*wSi{i>_Iv3|50a
+z-zmfSYBh+t1=Tf=)!;s5H2ZGaG~MT04b!^Ou>A(BNeDThV!>9^aH<!y-fK0Dbq7CM
+z)M}Rh1LX5ZR<mX_hLq-v)!gyt4p`>3miNxj6hyk&G;ER8B0Xg==`UDqN>Hv>BE_Z&
+zNwC`7C$XCJ+wy5o*Yba5eRV)p+qdr6d+pUFDq<ocD7GTDBDSC+$Hu?_L<~ei#o7pB
+zU?SqSyD+fD!~hGs8x_TF^w|177We(`z3=^T&bQd^SZl5^$N0uK#++-vztHU~h|5Ax
+zp$EZn4Vx+Sh{dh5PZN498c60bOMrubAAuO5vF(9Dz?DMJPQ{@wngnalD*>pwwG(<Z
+zf;ARng<kz(y>A`}{uljVe4hk=Xx-*1rweh{UZMBOJE+!e7Wz1N5<OTe3|P#P`P~^I
+zFd5yx_eKbT$06l(UL*wXTnnBsO$hl1#x}pD5P~e3t<YQ;UJ56^X`v8S8$@Jzl2r&p
+zmoA&RK?t9biXw)q5Vf-+M5P8o)F0TyybxhbOGK@?^@XubkrVpt6~@hjgIS#`Oz6BE
+z?MEAh2_OCtHHtNm?N~&Z6xSQ>o$@O-SGCc^k<3hX}D1?m)D66Jo1WB&vTO_zHf)
+z8Y;vlV+2Y_!sO9mWLa!4#E<?5QcF=`%JVA3i)Dp`j-}Ch)&Pjy&Li7EZqjh<p65v1
+z;Amlbd|5JGh!dtSUr(ls9fcX`=;*k7+d$4GT1bS3%*R&}5-;5)vwsT%xzlZhnU)`z
+z&Vd$T)_q4ZjXf#MZiO#8<}A#4`h_fQjtFz-!(nuc7v}y&uGT0<NG8mN5jTb8ve@Ts
+z$yp(})hwd-ON8Y0so3wWtdP<gz429!2q}GF#G5_}DItHz+&WiC$wM8W-sVC~dL=9#
+z9YJiVXkqc<(`4m;R2P=qsY#Zqn}ucNP)1zwTUc)Iiq>!!Vfn!{68vflD>$TLyK;n;
+z*JqHa>}+A>Z4_W9O&3<RMAQA2ufnSEr^Gu33ae`%Xr(E_>L7U1z4e9FgZmS+`>(Jj
+zZWeOHLBg6HX=EumR#<ZdOVPH47a+R*Pc0VKzG;dp@fOy_=96WtO<0$Ls5SSEuzuAf
+z;xA4WHuR}O?4(=5#s;{O@5O|Tv+9w#TZXXdaXd8R0Yd7kwper<A*8<B482bjHXp%s
+zOZ+Hoegf&G{RaaX%XDE&u1IFTAOl&4$3Uw{-24j03qslc!qzsh&fd?3t;Wy|6n5N4
+zC8$FeVOOI)M3&dW?si1f{a;~^wwr{qi-kRp-;wF{Phl^QpyT5r>~mX8Y)(&M-=AG%
+z9#l_A#}M;>P6+#JLvD+-H;^4YP&ly82i5;Y!a*ySjC?;=IJo;RahJCX2Y>fQHhcxR
+zm`r<~2!~7{5@Xj1hwj=Dcdn9fc=SqQEgOX+o)&n(c;U!Uw5ZRmCmfk|2J_rqIFb}V
+z?EL`Y$P@5`XlEg#Q84j$G$G@97BT)0g%jTR{x~lo)2=yTS-fD)?B-7<PY)q;AW|u-
+zE@TD)W5a~ZRR|^{Q-#dO7l~QDOvwCt11)G@g{)^7@^vA?$-q{iT9R<`<2d4*e-=)D
+zbtI<MF5z@#u;)r1!kKX}zMQqfSq^o8s}qFm5Sh4(V}<NZIFYM=gzQZ4i11fd;ao9@
+z#Ley*$adW&oNIwCaO7;^+?dB?_Vg9b3xUMl%M{L!Lhp)4RpA1Iq4u99To4zK<!rcc
+z;bcEzPX87zrlyhkWSnqmGaOQ<T;b9K$oFN&8pu~XE?j;Bp3#4uaJ4r4$#`D4y7wCK
+z1FS8CYgcduLv9Jzo}<{*yRC4&U>+YkCfqps1idP=g&U_)G+H=XxV2_I_UgGM-0PV@
+zrs-b|G)GJ@kcsm)kQLe&V%1TF*m#P8oKqzO`F<x16ry5;`@0}US=W6Q?!N_T?BXFj
+zXcI<E?b5=-%1|_Dm++_-INFusLT+tzc55{X@$Y^i*BzbR{Td0m3!b7OYliS-wl`T^
+z!h|O|(1_wgg{Mf*nT#buo*OP?VYZOxf0mdpBY-f%&~64=y!{Ncvctw12b`UkkQa(t
+zO|M2m-qHl3UA=|pH(}ks4ht`Waqq6w6JDI2L_+Ju!mB-CJU)MgR|S8!iV<ELuS>$4
+zg`jRXIty>jP{q`m!rSLJaj#1X@7zG;Hg^_2oP^&Pw?_E1bQf{`jtcpe{m||6w!DzP
+z4QtQ!Z$f^~9%7v=!e?4X=CA97e=k5h;tvYnK4V$&=pVv&?7cx-9fcp`4iR0vX`rQ5
+zr0^>ogyd~!;dhC(#P(QJh_+tBpG)~@$Vw3YeEUO|P4z@mv5Um+9x0ltJE1aML1flg
+z*Mp627cKd|#NRJ2a;Wu?eT0GLQMm^4eGZ9y&C=-j7%B3z!jR39DEKEJ0eLKn7f`Tp
+z{V2*R!f^UMQBDR4b@MZjuY5sNJX#T#*jX%cG!jZmglKmVj%n#DvG^KqGEJ>7+FQ?_
+z#=XrDOI!!Rh;|c8My|jRE)q*7;mr5X6-&NEbn9PREL(L7a>P|)xx*EpZq*VUty_qR
+zC@ne-2p~(HOtC@(lvZ4~ixq;NVD@wuD=tU8?;R$({?y2PqPAF>FNP&2ZN=*E5&s7d
+zF_10&LbMjVz?&7ZR*6(FoMU3GzQ}Og2Z*)%+Mx#IB)XsZmn;s^V%;Sxi2L$G^cc^Q
+z$ziWp{|wp@*H#c4zQoAwo-a1lc9KbF#HK}kh|j7bdQM0q)0Hx!=RsU)8A)u8jp$5+
+zwu#NRH70IlHPLGwZ0qI^tJt;|OKj~XVtfBjXr|8-eVmXaE_fq$c-#%vI$!L>B0N`*
+z5Ieyon+A<9#MGh&ntS#%kS%$q5c_O3kjrRqpx}@p`VRR(%%|((Kfe&~mwJg^N~|O1
+zc5AVlcTHmIT4##g(@n%LTp@NpSCiNk`^27CK)1`+7kl@^7RcR~iG2>E7v8bA*tc6N
+zvdmv2_Dy?9rtslnKlpssuD^kN-&8Rm<_1}cw-p28VFSX#Ladr@AU|NK*uOtK;iz8X
+z01i^^BxiBpaoB|Q-#=o|Kgq;b;KbmTdBje+A_fl(ApS@dF*xi7YB)Y(FesR5RyT3*
+z@!pW<gT#=rDa6|LibLvSzIz=Phdl8lb8tTcxnHHlQ2U<Ph;)${y0rmxf-U0E+TGAE
+zF;X15vmx<S7mH!Zn~9szP7M1r3EjR=Ld221VcmQBiQ!IDiP_Om9CZUlrr9ZCg!46Y
+zf?X3Mdz*>R86ZYiP9S!?mpFRn0x+K1;>3Nv=;j?R#*ROUaNJ6aoemyQ{=FF207kcL
+zg%}rE6QvjzF}@BIlP`P4_`7R}c@ZH_DG8UpEJ>WQ*@kZa771cP2hi!o%M9dWs)z}n
+zq0?o~6sImln%v%1oHiL!>Z~>5j5;@<<#rKgc7@8-bE-IV<U?pU*Tk9AuA}iHSDcvx
+zkJuu_KyHC5&JwTVd#i}Es;3dxzp*$gF^ovRF3!1}10!55&dsxC5<hu@IB%#o#Nq>D
+z(uOg_dCn7)zV#(@;|d0{Tjz?&?k%x$v#pqH#ikrrDv8No{fPYR#D%k_k$GEXap6K_
+zyUlYAWPeHG!mAaDX?xQ^j_D*We3?z$90$=>K87sGzT%?Vc>m2O;v(yEj!YG*ii--c
+zUQ2ON8s@*lTygQTBE<jPEiSnQS$_2iap^OpR{BwK`SUx(x1K7lE>(-T@D}3gNeHK1
+z4;aYZIx4PthvHK&S8>g+i$wmb#I=HjEP?F}<UfUq>)s@QE4~ufXQ89K(Oc2F{vzh%
+z-f!aOCzFUNH(K24y^WX+2gS4<3<++Y;!b=4TQLOKnD{L-fRV&inQ9=v<*>MG@=aog
+z1dF@U1BowFR@{9995U^xxcd$i5?fVq&nI89{2eOpwJSpAhC{@?D`Utsu)nx}14Qld
+zWv#{mKV^Y<AZ-EBk;&r08d&}BHd{Ps^(F2@S@GbE3^FenBp$rC0-fP)#e<Kq3Am$M
+zA$}Ss9@?-1GJL9d*a<^=yQ6r_atoCZXYp8-Cx{UN;_(^<DcKwGIHIEE^+Pe!X8@T@
+z>%`1nt%x6DohW8G3?pXMbup`XX<}Ywh*_QH675(jX7xZH`k)^MveVj#SugO#zAMF(
+z3c~BV=Hkg_u4o;tW*{5UL_F!|fJ|z$f##jt#gjXNAyf=7kRLrkJbii^T(e0$1J7sP
+zG)~N3wHEWgyN7tbPA~~IvcwDhj}z0VK_NDY7cYcBBJI*qya?9G9=j}FDsvUqT~xf(
+zr5>>jZ;Mx!b|>!he(_p^&!}+r60e=>N~W3a1~RS#3>3<_i`Tz`VKul@h&Nh_cQWn}
+zMf@w?xxW<pe;Y^f9@m-ZTz&E0$%@2skHq`V?}(k@Dn2Lz?Y1Z{=D1|S(=8Np+#JZ9
+z(9l3Op{jvgjbY-$Xt3SVe&WMbCm~Ml6d$2>%<pv&A3=;}1|^HRZ@Q7ChpYJH#w0RT
+zZ7Dvpd?u>uBt8$hn*2IIvi{Rke9`R};?pn#xrKJ(ivp?e&sy;XHdHi^lf~CZ_Y&vg
+zWgs6jP<;I|g-}Bh-zpk0)%u8Uo5T}ed4l-%5~NAzHR8J}Ux;0EP<(gCMC|i>;`=A>
+zh@aV9{P=tuG*w>wTmt6)#!dWu-3K+$M{(j;R|xGpqs4E#;Dm?l7Jse<y&UsU{8d~f
+zKK6k4d(K_tJO{-;E<-Vs7m9y2x!~^kh<^v1B-7|-61i1?x_eWiJ(*-_pDEGXDd5XP
+zCDTPa;-5K6=5iTix^Yl44?&{7vy5c^gkp_by#hoJRLoL|T^UW5+4m&&M-G`kH<I|h
+zAm($6Ng|x8x$SoY`Qgrzm;t$}Y`P@vu1lto{ea_8vRExi->|*>)w+`0g&}THm?SUV
+z0qwJ~BtNV`e8qW^!c>L}`z5KBJ`tDyPExyHLtjk3R3yfVIP{{fWH&g7n1NFyySsbP
+zjB!P>`+1gFPe;jK#?W?tA(eEWM0E3;RJvG2loG#4Wim3zG9*SSUpE;OD_$ypW)(5B
+z9!O5uOv0qMmz?dfw}We6siIhlER{}46|HZG{rX&T{S3wtSXZi)S{%aPPpOg>D;O-J
+zL#4_!Yr=_^lH3|2Z0xvPi03y*ZfD^<R}Pn|G*8D&R}5rR)1@lykw)6}D8y=4rK+{^
+zpcqz^s>R<xYEe?EUUWTiE4E3s)}dYZ!*Qv$2PlVDR;m-+8mnHDrMh`I!OD##YrV&4
+zqWBpu)nAiF{BwV)QD5Y%pL<G;`(n2~ezDZ#FPyAWN@^Mg);B#;YK9z%|J+w<b`97)
+zSMvN+93!<?YTi4K%=KIiWIc)(Vw<%Fa!2YKC`8PXn%_bacj=kr)fUCtf8wpi0k<$m
+z@(RMteiJISn|Gf~hg8YC5wwow8It#=3`Fi5lFt{GxCs`i13QTLYG0*JML?+gzmz(8
+z*Tc3Tev;p^F2r8_F8Mvyh(B>p>ax`anYyWg9Jxu|uyYbSbfwh8`6>2%h?n{`NG0Cc
+zx>o9U&xP3ds?xyfsL<tImj<?INo?uC(jXowNKS+_$TNUUw^eBnv`*8}j#5z5;$+&j
+zS_<+9cbbwZ1=*0UdQ6pqw!*jV>Mjjlm4)Q&subdYbw1Z_NFgmz;1d=~A@l9fCwEK=
+zIrj&(lZnz06unH=O*U!Bx38#GG&YbAiIzfxARA9ikwOQbh0MH73OxfM&g>=){gVt{
+z{8Sp2S3pJ9OT+uzLE+8IKyIhEG<*i8=^92F{^lYvRg(;4=Y&dOI*SbkYD-}i8KQUY
+z2C{#G4774KXK5sZY1DX(6yE9|G7tDGh2O@rE$TdyM#U5*e(HBA;`0J@wFXL&&6BZl
+z*mEhmk|WW?u2OU(l&8ynm7<S3V;bj3G1VIrzx}5a(^(?!)E6mc2W({EIVt8+FmW9_
+zNaL35Bz{yWY242_#4HMyCUm_54J7rwG_j~J2?M4`6N_gM<FHPeWT{JhM^T#e1HB48
+z?n<$3BEgS)NU`HUwr0GMVrQ=+i|L9KyAdhKtddeZDgn&JuTuQP&%~DOZ6J5Bu{33y
+z3o(DsNC~IW<k_{cl<=bnS-P^)w4J+&Z_7y2t686eKAx0jjKnm|?JLdLg1>h@mu76Y
+zCrjT?Qeq9%Lbs(C;;BbcV!PhNCniWUYeNZW)km6n838*~kY;5e71`Qenk%!!L~WAh
+z4uy3O`YR<BxY}3krKFY!z>z(q6wDG!z+uVO{W$TRN=b{X)saR{zb7rKvyr$~Q>8_(
+zp!B_tlnV4I{&y2;iJOV&nn_yXSDJ*R&eF1i4az7~T0SI%*l`wV#p{EZj+doX`Xun^
+zZ_?^gM2t_cwA!g)e}L!GnpSSaP7gPbf7V)Ba{zR-+bU@-dLo%GdnN0}PGJ1w`b(QU
+z(xK{RNSh9Ml7(F)ZMu|3map#8=6<R0U@_9>8ShZRza?$PLSweru0pJJst`N1k+yDt
+z+Ph4Zw%+h2s=Pr;^ZWr;*-P5K(uqt@9!mQh(CfX}UD{VUii9DPrG4#-6Z5EpRoWMh
+ztZhR(Y2Rq*Rok~n>D4ocyW}nHpS+3Kpz6~8WZ?A5(*AEIw3XH}(CoRO5R--*C^&>m
+z2YaJUb=U>zU|=7jj&{=F7z8QXD(Ud7D72@|Gtk_9R3W~JFwoM_np$|!dbEM8|E)rt
+zceD_<J}boc<q9!>xq+N%x`9HsB<b+}&t%?vNILv=Ez;03Qic=Qo!?>ux%ro*j0(}H
+zukVtMX00Vt+7juQfLIbSOgfg2jTx=AQ>EkVI?&9Q(($4@Q45(P9iLyE=u{W!_&&t_
+zqWh#1*)YyFQw?PM#7J2VbI7tIUphMqkDKV$N;-Qx8r`D0lsz0ndM!lCj)k@NOfZl;
+zks@7sbb?sPy%3wuFT{3Zq$}ILpay#Vm~<`oI|(B)q?=t@5xGy3?x1|k97&e$7Kk&i
+z&q@!Dtsu*u^HNSnJP>0bBRvYMLfnaL=}`oX*QcWNXj2-|Zd)N{SCO7H3?O>8RC>}F
+z+1|uVDX#=<Drcya*YX&Q{Hc@&-_P|OD!mMQfcVe$kzRiEM9H9t^m-NMvsZKJjoFu&
+zGY_OUpYFm}3)0(`x5*sjB7L0q7u#%wNcpe364Usq^krmCeC~(zt;8HM_q{89+Yb_V
+zqnGr3OBAu^f~B7U(A7`<kp6}sBZ!NUsqA7{eZFkkhiQ4UxNQ1v9Y=hnKC(Gy717H&
+zGV>&!xQ&Bk%MI*hz1Yh@bJJyoIQx%*Lh<r4d+;S$QufMRrP9RRSSIrx@N~yp%X|uw
+zvy5>vzXNK}3+})0zJcaWtqf#4UoOP&S+Zz#L(}xPiL$r_>EyVpvJ?U0aixu{9)5^L
+zqQzu=dP8Ds^po`q^~jVrOD^)OCJ7w|$adkl(kD)G(am*;IeW%H&bgsnGz~mDyQqO&
+z%`<ZG&n1Z;a7nhGc^CRv1=&6mG2rY_+5Y+*qR%U3Yl(4@Wb*ftORR2A^f*y=fP72=
+zm1T!F`9!B%%VmEdXUU%-mvi@ou9YP_5-8RgKiTp03o^UUHjrg*7Gk9jh3L*0D2!?=
+zJDyuXY_+8Z@=2mxKGj4PyHMHbXBRS`Hd*BggQ0Z{DJwfOke}|akez2`5M^(WoljOF
+zYV^iH^M>BC^Dl@gGylpJ+qfc0t0lXj_la%MLv~#cmv_INT&c1<F&jI`m3+>kAoq`4
+zxnUOZRYuA+A9@m3r;J>CS1D+z-UbRznR1;`oyqKFwG<v)XlS5N^im-fJ0;iofor{f
+zN_O9~jLhFZ%O3qOOUk6n^%GzlBg@M5Z^5YSHpmU?e@E2ZBsUn)8U^_Txj_ijV#jTA
+z!#Z<Gs2(RbDhjoz>oB?T){(^iag&?uz;yqWEH_mq5@)q6lbar|jApCna<dM|P1YZj
+zy()k%d!3cN5>v@+UrzSAd4t#ku5!x|u;G9xxpi4g$DD6+>$ylNR$i3b6vIYEllseT
+ze2^t}Y$LZh>`&~wLvlL^c3h3Ma(la05a@@=9ha^FAqfG3Q<mH;cM9B%9_ZT@WZx3l
+zU?6Oj?0e1`eXp@{=c1lqv9Yq>;nu{~@|OLsV-d*!P44>975B_f_OAkxIsc68KOI8)
+z*5z{Vh)={WJSX?gL|lL7FZYGYW0DTaeSJL0;+<fi;M`R1I{_nh(_8Lm?@N}S+vR>|
+zj$y}>J)%6Y*fFxi=F5SX-HG2cR}QL;6Zm{Y4jR=RLt0)Ax{0B!+*J-4hVZ<rtURRP
+ziaO1ehxUhhw8&Q;KE;Ch{8}E_t1C9Eu$RMMI1-)jB99t~gk$+)IikW{VxQKNBYT;N
+zf8Z)dV#R=^-wrvdg!LV9O~1)eYrm6aS-u?Yn?~lUL*>zTK@!W%lw<5Zk-6b%Ii@;p
+z&FW!tj3457h2wIJ|0FWE36x_ZYaugwFHczgkxb1h$`j9HmZbKQCq1}DmJXw3Yn2sb
+zK3`pqtuY7TxuYCA7YbszM{?Y2{LbO`a=dl&Dl#{6ljApTCN90EJjJmaF<y~!LhaVX
+z^S9*$|6*jS^HNSYJ&O46|HxAtp~@2<C{H)fC;sLSd3q&u1gT5q83Kk@uPV<N0jgDf
+zzMMD^i_^|*loPjJBvar7Iq?SszFPz2nb$Gh8w>KRkEO`G*+aI@X1*Y^50eX!iwc$J
+zG`R?sw!WN%#bM@|7v=c}^RWIeMqc>O3^K1FdEpfX?Pb&CMfRZAr`_a5dGAmbB6)EY
+z7}vs*@?tNXKt`&(v<OIQ>=Fa{E&lS#$*_fGqP)7FCsEf}c}+prc(b!sdF`|`BK3v5
+zE_MlVhc*EZ0=vuWKH;HA4khFbb3MS01q1nzR`Q1HC5ZjW$y-yZKt%D8w{CzR$eS&1
+zlZz2AUz4|W#Rc@KAaC1r4DGFT<g`mj*~-q7x1U@`%#z;n_B%dU*u2+3F3Z|Q-cf!r
+z@vhJ09qwo^d;3M+36{(IH<5StYXKM8RNkF*gP5d6^6tYS#J!7?_h=8$@mE{kQ@Sd#
+zFU!gYNBH7|`pSoVK|*J*ln?*J6)rm_XS9eT?!sI-<2171sYm6bY53lD4)W3TjY#Wf
+z$j4aNn04Yp`9v-3*6-Fr&f4;h%t;63Q#)!R<qDHeugA#L^^?zZ%0lIDwt?J;z4DoD
+zXUS6Yi+tuZeEOlE@|pZV(C*su*(7+*27l!2!2x7?@Jr5~v5UxMlzjdOjIL3PeDNwW
+ztYMYp%PY*p{ku-S_O=K#kd%+|%~_BfPsYhNFXP^o8z<i>k1B3#ynH7;kC;hY<$LjC
+z$kIL5K+Y{!MkyZZP#rlZGLwXo%jJiIHE1OV<%eVNgN~~T@lhWGxkc6GM;(wUtr;!n
+zGPuR_d&;>Efn@PYDnMwUNiXHx4^N44E-61P`3i+Hv-~s$N`1=#2J%Cv%TMn^4PLxa
+z&Wn0T^dwAv-Z=*OK_B_~xqOJOz2%qhUy@mxF2CxJlxs&X1Nm{q<X2aGiE8|kUtfR?
+z#Qh_G7>~kRV^RJZwvNoayZmiARy^~pi~MsCSZc}=`RBxnWC|7JKbLs46x>oM0O7KJ
+zvVr_0Jcc76oA`;h74!0q#7>M>m|2LD71t?j)nt?wb|~EF6~vcVrSPIXnU7acgwm_X
+zRPmM~JhGr~?z1AUcO-6ACq-W8NT&GJifp}oolM8?D5`)KVe3&vt8<vx{lyf$oC{X`
+zBq@4}vBV_LRf_b0YFlfYQe=!h);^h)BJYvymMo*#HG%cdh*0d%ykTkNXCUwQP_gSU
+z5*brTrD#EF7du=j+PXG!zj&o+qCGt6TBYb;3xtn*inUmMS7LpxD8(8_6RVFeM6Ys6
+zv2%&Uckxt8SZfed|EuC)=R@3s35rAV0z|L&io+TVsYhR>%>3Etd+n{1z4H#+^Cl_f
+zyw;F;MVwN;Ax3t=L8bh0mY9^y2J&k>l=5J`OoKT}g>H9H6;84m2W+Z`QeoFc?C0mH
+zR5%UKR;!3o;SLreM_f`WZto5%wLo$4btTU6r{eMpsaJL{1G$=i6t~6_mYwA*RjT3w
+z<}OjHOhfF5*`ri}^)n-zDplqI!|p3p-QzLRJ(a3AAYI<cRBF6_2ivfE8VBqs2c=dy
+z1dWgrO07OnLK1%}wcdCW`+2QWr!{=~<Kjx4s3>AKr7Cq+<q*5vNpbf<@_Ou-;_h34
+z*xWS5edYnwMqVoJAS!HP8>Q~Y7)X<E6psY3;4)p621`zYT{ln+Wko2VcsfF9v|e1J
+zG+)_@*hcFVuUhbYyDW;=&^%yc#Vhh47E!cNT9(BvO1Y@C9)6P8wN6Uw5p{`~-$QAA
+zJ%cR!N-M3OmnQD+MaBD{`;Z{bicg6#kYv6qJ_WHsYpistk43Aurzrn?u>(0hu5>9{
+z6Upv*rAv=Fl-xSf&N^+RactiE*FejlOaochutJ>L!9bzjLm+%o%d$$>5{S6ZJ1AXa
+z_Mk`aveIoTZnN_QrN_(w5X2y*XXi1*431NJqG6N?nXdFod`fJq=Ze4kCit!(16f8f
+z(8^DDR{UEbbkE39dP@ZbTW27qbl?*ME$zM=$OiKUatf#Po(!g*HC^e$l}2Yer}Vkf
+z8%_UFN?)xW@hYSA9UBjQWuMZo+8@lg&q}`z7~Gq`l>vSbP3Ac%1Abm4VRCzApyLhP
+z#{R|unHSbm22Kej&JTazM2;}@h%%@HZu_trN?@xGsJDz$0+U)oIZIT6v{u;u$x8{o
+zwjSET8YQ#_LVflxCA2{bF&Uke(A77H`*a+L02>&h48{6PHXvRZHs=+Z3v!j=`-+j^
+zG+r6uYt_j#?|>3E?F+H#=aumFP|^b08pxJvX&`rl3=}#iDG~mdL6cM^>PuaaBY!2@
+z3^T|dp+paVO{U((l+nBQU`LIk%4qyMlekbBb7Lb33HOzl1t_14zoCp%yAby=S(zY$
+zVAqIOCRm-4i2vA2na~>sTIY>2k(oiJM=zC0*z%i>JTZ{p-ARc}gf<bAt;AuezvUyR
+z#8>M~?AtlYlr4DpU%P9{)c$|KM_VY<3xqKLA_j7&GL;#p(}=PAq0IOKEpkH*C9z>U
+z;#&GCiCdo%O}(U86E6jj`Ep5RR>2uPy<i|4=&H=}+zcP{OPTH70_-Y7nLP>G`3Xm5
+z_Jb$HtSPC?=?f#AHA|U`M;BSRQ_9>P&(Zdns?6=b8c!zduFU;}{pHg|WnL%rbIzTi
+zB)Mh6b*xvCx*}Vv7pcs@5=rd8)2zz;{4iq5WGnN()Fe8*MM-Y%2(=|uNp6MxsQx-B
+z$?^Dm+FE5nRyRDV?7Wf^4rAIoQAwFmjLeBXimeP}pbB}4Z9;KkLz0z6V{U;mJW&=M
+zzl--}DT{Jo11<6m<cF4178UGq_+zNDxNc)&v#c+a#s1w9amy=<gCTGY^HCNLfu^wa
+zr?Lc_6LJksC`*1JEKEP9EPZ{Q*yAC}G8GzSxns)8Zm3vS8m_FIcpY(yQ`W@cgx|kc
+z*1l1QzOV*zhx;jOzoU$DxskFCUCvZ?sDY*)lMH06=Yo`Vejp>G{FMy_eO0HHC>z3u
+zA`;(LHoVP23!I{CL~DzsT@_`cAIhYe!<9|l;bo`oQ8vB8zh7^lq@GVB%lBkuOImSa
+z4t-U2+-gHyz$<0vaSzD6cFJx%rOZ@2R@q(9K4EF6?7e{Ld-#Qt{%QgGuvnXN;OA*5
+zZ{w6hCJ@v!PYvW#q6`$OI4Fnqis(L^t{l$FBYs6s<%siQY~Qp}IWoK+76<oKG8@31
+z?{zcK?4lbegl<-{%qS4;yrN_k-A&vto07H6p4ek;m6K9QGDjRMKxh#CeU;M>kw>=t
+zrJRXQA@0b1<;+-cjob^$nVE=7F`bk%nWc%_tt)2}PZD$ZjB+*`G;U;&a`sjLk=I})
+zyZc^zE?hbHd^IZ8#|;#`8Y<^YIzYERqMR=c2L4!8E{zVvm9JGUfBHohx3S8VUFgGN
+zPOnj}c0%@5^{jF=I)hBlk1E%E>XN164&~Z2M>6?!RIU%`MwDe$Zg@-rv;JWqzhkI!
+zvoZoBrq?Y~FtN@l%B^1c#5M1w+-^UIEX+^kPWN-fO!iRje8=~ibCtVA6H$ZjtlV#j
+zYUQqv%6)4ucrJ%f<-s$J=-V45#{%xLa-ovri4VqJQXbj`6L;;A@~Gx|Vplg+9{p1U
+z##c&tbQG?3%Uk8i<VfPvPAku<CleFgMtPPOO3au@<@wXWWS*reFR;g;xoKPF<v^T3
+z->S;XaRJ!J{)h5<E8^UZ4~q5mZ3y7U^Og5aTVXA2bLGPzY)mC3DETFDLchY5&kez(
+z)iC8t+E8M*yf9D*AFO<>P!H1o5#`$eu(sYQ26E03%C{>TS;Ds}-#sCu-I-({yKt(3
+zg2ON6dk`)}T3Luqzgv|bNwILfBb6Wf;)reMto%4Wl=x?tlwTY0#`RX^*NfIf_PYx4
+zSwH3XWOOC;2~z&74InOIv+}o*1<YMg>B4K|7@P1+BgBRU+g0;Hlmc$tQJK|Gh)><6
+zGFxFo_xl5{k$FG~1G)RwQ>rBZ>E1qn)e;1DRqB$;x><-FbVwCTE=Jb%NfoyvVRfjf
+zir=G&O5ZKS%B}{oGajjupEpsPt*U}*CDXi%f!yLEsxktSfd2(m^)?f2nXPJg<SB3J
+zrE1f_zU(ik+Bfi6Yh+)wNN>Er9ailcAk&Uos@m5;8MEU>)gk{2D883k>XbKGZbqqP
+z{IPjq>lJF5br_LMO)azK05K;k8_0eOQp;ptCq~rO3MH;VjV-2DNX7em-d0_4?-}li
+z>N?>a@eyZK*RL8HOINFvTYp9$#z>o5IS>r`n4MaA7h2bwlvmvp7)ixOs@oWJ4SQWM
+zkW0R(R&Rp7>)Jil8q9RmQ@^P-6EcY#-AS!EHJZ3$u4<hUzC>frtL}AX5F6~R*4>Td
+zihZwoc-V*&UaR#aL_v=-YQv7m?$&o!n|Ox7L%F<Bn@s#pCf6=%lSB20nNvb-^6vrS
+zD_2yTR>uBu&5IbwrCc{qDEl#a<OBz6j@ruW2l0=)s%`5dgUPk2?Pn$sTYi=5leQP=
+zrTTI~1btogecgqq`D(R`FOt9|v1->Mm=m*}s$JXPC4Q%@_BihXnr$)A^4(MI@pA^o
+zZJB}G*Icz{LkIBv6t(AII0NyI+G~`E<Po!?cfXosnb2PC(<zZm>Ac!E7GIQ8RPBqB
+zDmkw(kd0if_UrPCIBuRA@LD6YDNP;N6gk|Z>FU7iIHB=f)Pb)=tOVYx4)O>^2)m*N
+zZcHH4)RStk`$w{Ty{!gk{2;E>G<EPr%*ERgYDk;$5RWhW83&e5z#brQPRZ(!A-J>8
+zd3DHz3^LzcsD?JoC(B4*HMDIj@c6EU_?}loH#lN7=M**cb{0(igMpm9L>;<+Ahenl
+z>d@0@DJnWj9i}5R20v7X^{G$h7ryGSkQ@?v+){@pl|}=7=Y{HU^p}}^nyO*DUlIG_
+zo;pg!9*wTc)QCf$(Tg0XMmd4k?<t~2{l(;aHd2iy(2>#o)zK^Auv_G-W3na_|8SW)
+zc6|WK<e6&BlIO%M?5K|K^aw2oE7bABufZuiGmsz8s1qz;AIBD|6Edt_$h7!A4j^UD
+znP;F-e5X3`TsTqdT-BNi2Yl?9YQ2CgRo2wl9cUp)JgQDU+7<cvA~hbOl6n4b1G$%X
+z)hYiLCrh<NH9=cO+<QlL`k6VzO)Rg@=-^3|+F6|eUC$J6uO_Z|3TehiO|;^G|GZS4
+zSq=A|Ij7DkhtB%C;p*H-U+8q3)p?)LwSA|uI`0c^O`q**(o`aI$HVIUk_E|RjynHL
+zOGJiu26E-|4CMPwP#4S(A-Zfa(9(%l7o;~v+Wbyk@S`G`y-%qrpB`h4#AwyJu*(;+
+ztm~;R+}0gQpRU>tegWmYtuB&Mh%3KFUHn=ka|wTSNo!QKV;ZSThojwO_#1U;IR5?o
+zb9Gq-M4H5SbwwpmSf^R)iV+owi>{)suIxbAQ(Ij#1np$=Lew=gZxbVpP}lrK_oubH
+zy0$y2UmM0*)pe<N$<lv<x;|$bv1RJ1n+D;`k2<KS7BIr=9n{TZGl}wws$0F@k)=i#
+z16gwkH7&t|n3xIb4y@4SuD4TnuDwc}`MbI^2N%-loVsg@My9x8>h8d3Jnhd%-E;3O
+zvEjqiy<ZqIl{%`XJ0oe>YrUZEZxKdj=UwXlG;9?@y$$5Qv``N=UrPd>XL0BNcu<wP
+zYDVH8SZyiwm{g3IAd7k|t}F4q*Qh5p1QY*tikelMM?Ei4%{tQ*kzrgRe)KSqd)-n!
+z+4l)VBOe3V9e)kvt>Xr%CnNqqn*~lAN8Fou^%P`uQ*a;kG@FKOw77bDI`&-bbxb{@
+zg8%$%uAXthy)QmZJ(CIB@yJlmHY`PK;2|~J=0)Z@Pu1*IX`m^IYWCI~T+kc?P17o>
+z7aDjHQ)9GxsY+uqSyI(Y(d!@{o3hj!Wdq3^R!P0J0{8OncJ<CjFu-T$)q5XtMOzZp
+z`~4C7GThYrfuJ+<zpFX*(UX{eQ+?=$s+ICveTcl>Bs;5*DnLf-4m^go^qGUzM^8Qz
+z@3dHb+zjMkOC9xbQY&msHbu=XcahACwyC)<MJ%ANRI1<rI}>hGpA<}sA7Sc~uN%qq
+z%v;S{6pMbfQ1zK3g7~-c>a#YriTOH9ecm~U82_H?^X?1Kr&dmV*?0-@&ArsuMM312
+z6<1#;gT$BEqP~8WMrNmG>W3S+wM~ksA0LAT<-AotwL?a^et??4!#ars>7@F(T`A;C
+z-PJD@Mq)M`SHG5mb+_xSeho?`^WU55HwIe-ByTs6506v7*<q+BJubxcs|;i-I;r2$
+z!(r~hs^7<Ef$05Ee`Fz;Z?CTYcs7R^(?0cQnYF|zHuYzXJXpV*`kOnT5o_v^{5P(I
+zwa06Xi9}knccW&B#4Qb7sIgC6h}-u-<5uO7DeSq%<$}{^_S5*581X6&8egE4wwq}n
+zKYW*_WNbklVuPmKD2<f*wx)s?nr8npka3IE^htY(e;cRinQ*8fc3RPMb%<|rTPxOK
+z8~TVkM{C8<!eRCfHINUp*NT_J$i_X<92(jabMC%@oZBj`<jwWOef85y9ZVoDGF>Zm
+zdJ<V|idMQOVp*|CTA3V-v~QeNwplQlO515=H)In3(p9T)0W^!BtyM&$6MOKR<`RK{
+zZ_-6`tya@YY(_85^$wDUEfIxy__yYkh&MJVV;~<;UaN|=Q>^24t=dUA#MEY5&0<f8
+z9<4Rd#5FENt*cfu6Y1500IimL0=WJV&E3ZZ>iaa!J?to%yen(&(~x4fXl5X{@vzpw
+z8@-g=h>u!>m6)a-7HSPn2NU~xves}SZ0LQc)_BTEd|?@_@#O<#s<%gL^6?_Ed!}j4
+z8dgMqk+;^YAJmSn&os|Wkde93TJwU}JA`XqBcKV0RSL1ma?L9t42}NJwU*im;=A3{
+z+7&!cbzzp~Z4E{q=JZMPDZzmJU)FqFqp&ZAm)7Ar1j%ZZv~DpuWO0A2b<1Bsbi$_f
+z*wTpD{Ki_()@u=yrfUAJRuj`c6Nold@9My{z!cy*;2*7bG71<Oue3h1x)F1Hh1R!U
+zPh#>cz%gW6bXT+XYlkI9|IF0-i$TOaTwaJzmTCPxptH2^3PjlUZlVnwgdq4jR~yt0
+zvFA{{7MSvwxR_g7P^>*sH5V;tcRaCvCAFY8sl<L7p#>Lc04}|>;LD$h*_W<`r2Igv
+z3)Dh=dXnXFq&7S#jJVY{t2X?tBMH8F+K6f0iDEiv;i>SrrB-R9P~a3C1GUIm@JkQd
+zY0=fey{D}<kloeDK(1C31NnPLwb3(15<M=fjb4MD*P4AWkp0m}8>2$6sc=^tGbn?&
+zu{X3asjY~6C2M2*BT4CD4bsN$h5ukfwV1L2WQmW~V!ECLRWoTZR)&~_{o42qz9h`}
+zrA^!yL*#o$v-*dUsqzucdOw^j)=Vu9s<^pfsY3M3HPF)e9|Kw8nie;E3R$krG>~;%
+zpv9eor+;`*i+|n<YbmFF(WZ=M$lTveo01J;^Rk+j&>8c6iLNF1!EY=Xt0kcJ!_4#5
+zrgnvEZ+lCd`nnde9?!LDF}`GOJ6@ZX{0<B&U7MD@miSlOwdv@)W!kOLW(>l#49?JI
+zM0yi@HA+kT0%rH)uQtbT4pFT*ZSH0~l$VYs8V78b@7lb+I03tHT2d5p_7XR=`Ga`k
+zntj)jtGyy_`dKY`(<9=Wxd0yn=K;~m)$AAW3GtpofQU_=*R=(uyOAaEvw>Xg6fGqN
+z%&k;Y&1L}+s-CMYYJtZAWew0Ew;&WGm(>=}+eth#Tw8n#OPBmkXiMsW%nm!CEr|*s
+z(;!V-7LGmRxBjawJCp-$uZOnW7e*L1Nn0N6Np#?=w)`$`Nq(NTGPezJbNsYbPJzU4
+zJE5(bhP2EfT3aI)BkpXDw&j`!nF8Xptv1Ln-6m<<qO4ts8T3p`JK_TQMAf!0D2{nt
+zTHC$^VZQBbZTk~nvXpkwcC=+sioL4sXkU?dUq@|6A9PGE9i{DvM5|_WOKoQ#u<TcT
+zw4DdQxW=bwyMMPLQwOt_-lH{{n}r&PMYdY{4vc8Ns-^$_L42ut+5u}+2AS%<&<@6g
+zktHcgI~=`&==VnLa4M$F;TqZz){!Xst#;((0u-T=v}2ubkf~%5?f7+U@jBaVAg}$<
+zPW198`rxZ&6%;hOP1H{Q1L<t}Y3<Z~xZWL;wKEU1i05*&GvEG@IWAPoZnY1I>2=MT
+zy%Ja2JxR-6>rbrrQSBV~g-}07J8yO&^T(0e`65umui9(px8iw$E!$}4&($T<-Rjz<
+z@!%DVMZ4O$9&v4dYgdCah>z@~U9&-OYBF5A(F;L#T)1{~$~t0eUe<287KIUV+O2e4
+zdGJdu=fWi7&or`XIXSTQiIcU5V-BKlF;jay5kuCav-UVUi<rlqwI_=liSJoTdm4g~
+zI#5>2D+<@VrH}SPOn}RNroD7|M{M!y+RK4(SZy=3*V`efT`!`&nIA;_`+?e<dsT^F
+z+d_LA6iJ-_67B65%$i#@wRd=WmL=F4s=ce*lT6M<wRawoL|4~o@54ZLC$-Q%g=u7-
+z{9MalZ6UsWCGE?Ye~~i((7w!=kG<sIXkU)MBbwr>eOE%@QZH-YSF9v9*F*b>go;^r
+zL;JZJukYWa{qn<RF^-|y@2qHGy3Tl@muybH&iY!2vwED<*>rfi+N#cbBW#um&;`d%
+z#B|=O3%}10SM8E6dLVwMA2Lvw=dOz_5{Nz8M3-VQow{GsWk;0pXQk^h>V<6EHoDd#
+z8#|4dbbW4J=sVMOyG@Q{(y!^oj=`84t=Efhyhxl!fL{DpK_8LJ4&9+RSo76}x`SH)
+zkz~~!wj;PKFRMEozDSlH2Xu!##Q8G6^wJBHQIPnqJNJ4*<_5D3Wcd$;Shaj1Hg+$>
+zwr2`)d!m7S-+KlMQ7*cRJA#wX5#43EJ2bqv)pgfR=oPE8Qg_=1+HYQ`S503_e13hs
+zx?>nou~~ZcI8XEkAJc0vcwdWLy+%WKGH-0B*KAvnEa4`-X3AA!Zrssp$tVFG=%d%J
+z3;wYEqF(1}23ano=yhJeW*pw@?oQyUo6qR(4WMe+D(dbrR*+w(*Sh;okk)0d^}6=!
+zp~czh_3NWobWtU}QR(_*I{8#@RPiM-n!n!Y`a2TL6Z9sgie&yK=$`*#x^~LYTh#R+
+zwl1oEKyJUg-l8j_WsiM&%OO9>eC?Iq+T}C4a;xcW+N~h=&>_9;vx{Kqr}TDKdw8VB
+zGxT;9XQA57=<VvIk>x}=-DgOD`1o$R&ytH|E}y7($iy`5bXM;OUBdKirQT`EAFQ{z
+zrTf-H14MSD-q{L8`b@a)Hx~|SqL1#k8DzOH>Hq9}htCUo7r%?d?~2#ERlpu9i+bwa
+z84p~LO}BP;fVIwlpm%ow1xxEth-Z80-FM*La|wE{2#qYlNZo(lSt9>Nx<48m1@hK=
+z7lHA8TCDf`j(p{HUp?>&Y{xH054`(;ERFBzLFZc&6CSMxOT97uNDr<HE;*`*9z19u
+z2@WOo;H5k<k+rRQ2*g8PkJm#yeTk`aP!BcXjC*g?L!sdd(aw5k2Lu!6k^0b)uEhCF
+z(uW>vMQqr4efXBk=%O8_4}Xmg>j}C(;%^4gYO@|@YE1m{Ts>@VBcd{k3}lP7EyRw|
+zg?MU?K2iX$$h7{}M=r-b(|+kAKfp+~x6?;{enJ-eEBdI(*k^;Qt&ci`Y2~s~kDQxL
+ze4mec)L`7Alb`gcEw_+!PSHm{f^gC_P#;@&1q7$Z`q+WU=>AO7#|9SQeLbc{KADn!
+z>oG%-vu1I6%#IMW0ZID!vYycJR?RXFxW!ZS@y;pe32Ug2_lBcr_*NgE2`R|2e<41y
+zH;}WX>J!&R6B963pLiJ?MQljbC(ZOE%ivYIbuxm`o{ReA;+VeHiojRs$}#Jc>o^kS
+zJ<}%-4<-6oNuRR38}ZUHeQH0frD9K<(5DUrZ?Ed5PxE<4T;N}QdR|Qsj~sp0m=$En
+zo3GFMi2PvuDSg&=*vM8NeReZ@GDqJtkgbrR&&i!kOzKHs95I{k1LKL=G8i}o_yGty
+zzI7ZBMTl({;56VIV8Ju*(@Nq1s#)3^eQrCj)v$1VZb8tnHr40#!_e<a(dQ-L)@*gr
+z=RJo}J-VwWVNIo}#~VHA@c?4(4AbWqM8Cho_2gN2y=N1BVU`nF7V5eUMF&=v3bENB
+zeTfWRqLQw!Xaa{OR@PU<S@DL7>+}_g>xoZs(N`P>qj@<-Upd1@md}s$mCI2c9p6}A
+z8~BHqPt){uZxLhyhU)9rrx54;OW$%~Et#^C4dmOO(zn{7bX&iyzV&1~GMy9kG!<G`
+zyjf3kflF`S$3V94I(<iNM8Wu@`VQ--ibSJc>pN>CAdK$OcWpo-(d@E;g8dqO&*ykD
+z6|br9bFYVW@?G_PQxR5Yx77D-12-H#MBl$1R(xxnzW*bp--v(p184)XTq~&`GC?jl
+z+E71y86<UldHwJ$EN#lp(vL`Hh+sAJ<HeoGJgSUtEjVDyh3m&#EFnJjn|?y_f!da#
+zpXkz+*p;k)A{a!ZOn3dnMOgjOC_NL(3P*qS%*}YdfaRf{dB>CJRfe9WWAWF<vHHoP
+zpx03^^phE&T>V1yQ#Fgh7`N)D9v372%SZk6BRHtZHTBa^0?4d2u<B=L)`doNPd|JA
+zA~7>R>DkTj#tz%`>=s!l5_;;{?f0VTypo>18~)*1y+VAOp<nF}HXD0Yzt$^;%!-?S
+z!-V%OR`gqK1BlPMt>3!pMa<Q7{Wb%m-Tqd;JtiBav>5#kqY>XV8Ca8;ch;lE0pGQq
+zfx?^|{q6~0sAx+Kv~*ge-!IvkEKNoI@f2Lq>!W&ZziyC*e(SmSqly2(>rcz%60@v_
+zo;M^L+3|KgZw;nf>I41RJ^b*N<NAxbFt$5Y^%v*C37e<suW&(Jm0kL)IE;kVdRc$%
+zi+auQar&F{7}_3l^!MwqwB!3w{X?rLB$4|Hv8jvxA#*r!lOO1xKI|rb{|f_!c^CEk
+z*1@QN_0T^Lf&YlFp?|?ha8={<FG-koqt5F8`m}*D^ZK_fnAR<K>EA175XGL;f0Qpx
+z4SDwf{YRfEWZE-V|B;qJtm}IH=Qvn-n`r&F00HDuUHx~b6f(c_(f_<+KrX+AVolqT
+z-RqL$+nSt`zdtL-bfX@-8{WOh>(!|{MN$+Eq%q_~<93U=Wi6&kwkvIU2iX^|M$kwK
+zqLI5jo=xOz9ekOhyLZ3YTdb59^`sb6AABg3g7NX;c<WGn!I<QE_sTJNZSQ1LQN^J?
+zwZ=aOQ49^k_l&`t!tl3~?MfGuldVQYi<o{zF;#UcQ}Eke$q(=LrnUv=VVqASFxWP^
+zw8=ibS`E|A<Myqo1x4f6Mp6xY;Xs^tG!3<l+-h+s6<PTGCLW)TFqNV}d^W7$<kIcl
+zn=%sgf&cr1w$<az_UZXi=Bjpb)&Krh+v=H|eR`9r=Dnh=Uy@m~{h4cyGu249&NELF
+z`NE4GmaZ-_S8Hc8&*Dnkx;!?&G>+1{=bE$JZM&aaoNZ0)8Q0`X`%9&dv1d-2Y`sj3
+zVr%cfRIoiL&dBKz4oufXy(V?X@P*?H3x>_jHes--ys1k1ht<qn#pG#=O=D`S_=hlD
+zr4x0=;G}O)W6D>zb$rUmwzLJDn4Wu=sV)7FzboZ2&Yey5ZK;hcWeQ$)O`qstNipGO
+z{@+&$KWOu)Z<%PSTKH;YeM?E(>-v@{riTA{n`Y`}TXl$Yu&r-k8T<czJiU2Ci-j?@
+zur+9JDW4wL#8R_pa`Bf{Ri#B_cyM5pQ^dfi(2=&uz7~61QYXs-)f1yT4EHP=S2El-
+zu`g4m!B7*6`x8SVHO9rcQXS*}?s%vm!BG*FXcZk15gZof6d4#192_P#c5<!b<mzsG
+zX}YVgMK#%)7r}5Q_*(32?wu|D{5@cfk;Z5S!(#u-%4jfbA_BY14#dyL;5XXCzPkMP
+zum0!vN_UM84<8v36&&Q$zI7L;!6PF^42+62ezx#8=XSPyEoB;Ln-*$WZW@^GI@B^x
+z$DjLREW7Y$=r{`>r<p1AKVOJJd;G`ZoWAClB|+^J3!@%RBTan@jT6%WW^EX!6SacT
+zcgLv(;gy0Z5>#N(#_$x}_t7wqf`1u_V>cXOmf7rPS{!UWZ}UZMmlFjGA50<m=PK!5
+z5__+rX{>F4#Fw+Z4`6lM{6rj;9m5K?uKn54w%jIc3ESG5tT*FBezw_etb?uCW6mz!
+zz7~5+G&Q!x#+dDG5w(S)=|UqmsJ6+)mT}Tj%7(d6Jbij7J5Mw@+eXzE9135lAIZ+C
+z4F^#$`<)7g*tW9-Q^J<r1<!?lzm~0Rk!%0&SyeARd=tB}X+>x1hI=vGxL7A#e1TU8
+z#T^R5e<O^ep|<LI>|j%E<5G(G;SLrISEMoFhZPJ@`j$NQX;G#m^|p=rV<~1EaL24P
+zki5g9f+L0x3=9s!uJ6SE(|OQPn4^ioAJwThPO>w8V~pX?qA>U|_%-~#?Vmg5GU-RY
+zv0j5sHEn+axN@xFSPK0^^Zr~{2Zt`y5hqsYB%N@Y|K)*fMP$+5c4{;?H90E31QSdn
+zY{&Ls3<r$i+S(>8GuKE@AH#jHlY1N26>Mq^zZY<rE0un326w^q|Bg=w+w?`8W*c$a
+zBEa96W^ru<TVhX3d1J2I=H6w>*=jD}g!JSETp!DS|4Vv_#oRzw+r4D2i0#Ng4xhE*
+zvt?|l8C-?``HjY_=|3{K!7WU+QwH+o{_Bkii}<~Zgou|W=akh#30w2^EMK%8EYkZw
+zw#>Ba?rnSg3GMjOD`C0C)c8MdOm3R5=mn-*;QXD)_!u4lC2VC(mHzW4+tV(VqPFE@
+t1wQ@WC*dClQy1H4iFLKLm&CI;2aMq%go12YtYr%<Dmtf^SFmXI{{UHDORfL_
+
+delta 39271
+zcmXV&bwCwe6ULv@D=N0w1-4>=_1cOp24ahWn23s<SH(oc0K3IR#qL(@?#4vL4s6A5
+z-246Y+k1f<yXVY2^UN&EFL*?q^q83^|5yNpAbXxB)`n_1kmv)}^*OOM*rchms%LeS
+zngJ;K>4P@Jra*z=HhJIFHdVj5Hgz_76%_z+!q27}kcoH%=GJ<k<RNIk6rdEbWhJ0o
+zdg5hb7HEG4c+q43+eCWYDiz>Ok6WE2W`RSu`UaGzCt8OQ=@(k>04mVqHl>L4xJ_rE
+z;=ji)fchnXI%}MK;9`?EUSd;u($DDUs_`zHmZx^I?*U?4@FwSNs+!k<Mt;!On*fdL
+zIKb970GjRu@)fnI0_i+8TMZmp3^XqQ78niq^?>S0XM|{s1++W`lRpFT5!8VH0Dt;6
+z?p`*<iJUf7|Ccs(cKZ8P9ib8i1MPwVx0XQ1Z7`oV0G%Aifx=_y;5c{$oe83vn#QIs
+z@f+wJ57urdkaP{YX9w_@B(OrKA*u|9sJRTH$zD2@l_A0}L$}QavAP-YEwMjzyDX3y
+z&coE|3OPC)Iye>N<VDcK4nRh%0)~1*I_9r}p8gk-Xk||exo$Ps_T4sl%j-5(YXP~7
+zR?foWHhGmjPDb{!sgKpOX=Qi@xnBa$DmnS3j!o8Pi%s5!-iLlJnughw#rMGR?+N+$
+zyZwaPJ=3NZO`VMI2zg0DZKGxUkNbRV>T3?0)`X0Z_vxB<rVsRFGxVpvkk9G#PKkqj
+zSqQ4j8OS%KAzH0~d{192cAS$3+7NF;buC3NL<jm~709pN#Gb@eP}w|)$LIxJA%6w{
+zE{!066$I~=6$))&weCf1OI!^lFF}9X0+pp5)Qu2g6m+VVP`L#}XS$q3onk?G4}!Wi
+zi%6Fs?NggZHuwouaT?g+;ZXIx!H#;_<f~@dH2Lb%ie3%T_oz+dc9|GUi*GwI8KwZe
+zQHycl!^TGCm2QqcP_5`fP4{>5_z;`o+eMo)?+2TzzpIlE=-koo>+H0=iN>>`O{+{=
+zIyWO=%I2nJzYcuWH>h4WAiB{tAQ}?{6*?8XAAKsK7*WKgbTn*hAE*JFZR#9rZ5kgs
+z+4PH6{svG3yTLR&3^nW|jQ<#@DXU?%tqL`5GsJ|ZQ1eefOr37i4EhYUfPQCb9Ms}E
+zFf-}AFY5s|W4x26=`_$|K8nu!3IzurH4kbfz?c5EsohuDG>Zm9t%;^zOtz`gEOoMK
+zXD5BuKyBy@7MEgEHveK%JrPhFSHZ+3LT&K|52M#5s<fw^tbW&~IUGgNFvtNufiCC~
+zIz0twHT>iF*EY?K(@^pB4Y$xYJ#&l#^F*8G0j-Ej6ir^y3;!BV!GO*n(R|rs(<*r%
+zIxB615A~ouOGB0~09{&w*Qje#_s<4Rn;JEnLvM5Zg-#y;Lo12r@UUs6`UVp}2G+R2
+zFxM7P2B-pS)If-lF0jIWLH#&}RN;XzVh~cj+X?QSgfx%NL#D}sv}M*qH7f+yLEEA4
+zyTf%!Z;C<}k-qIhn48^^q2OnTBeBS^H4!M{hD?qIKfrR`My7u(E0O8%Rj^tdS%QyK
+zs98n40haX+vV<i<-^+z8_X+_b6SCIwqv&!EZsIu1hj6$p*a5Yq60-XjrD&89+55%-
+zIc6aH<T4PADiX^Q=Mu{ilZjpsja$Hx{W`_Pm{9zqE_wwyrW^wA5rUjC?;!6kM9y6a
+z;0K-{=dS|bI|Ooxp_HlyA$RKhFi(l@hk!0Wkb6@iL}-2FPP_q~Fai1e4ng#6fqW~*
+zP%N&1d@J8UpW21|W1c`9_zrho0%ClE1MXGMK&{OKk2D_O^(Wdiy{E$C!G37>zbLq)
+z9E@8J6rmTCg-4-Cm!Hsm<5BeIE12tPQM~d?s2Wq9oS6wF>d>jp`_3lsRK=#gH3%iP
+zQE2l@jgnypU~=w&=a69(Q5;=Rx<6gBSGiI8^FZ(^mr-VO0C<tJDD&_zu<aGfS}riL
+zw@|k3daw%vQSQ|xux)+e^>Zt9@lbfr@q;P73Eq$C(lnic3hu37qD!Jeb6VJq#-XC7
+zzdQT~6$cE0teF87w>E;_@D`OGl!JD>Y;GS|75AfZ_dVbPVo-TVH3*XvRkb(F%Ce~X
+zJ`dP{g{W3L8KQiC)EG4x#w7=8jjIOsL7{fqFO;hGp!TXM(0MPTPAR$+QP<$J*O%hx
+z8q^IP2lf3l>dlRZNXn0Tt7*~3G(mmef^ev>A5nkbUvS^{Hr2OCn|g3-)IXR4S>+@e
+z@F!qtexpH;1X|@mXb?UEI<gBIY#Rq1u@()>&w*a~9SsA!0(qX=R4w12VL0W`JuXBF
+z>g)m<`CbGctI^26GO39{Xf$;YWs||_(I`29!sJ&pE<k~~V<$8&H5tP93K}n<7t9-v
+z#(SPq#&DqV3(7PBh0sKfg1%cEO@iw{KRbvfVaK6gTtSl)6eHY5INAA$O`TNUrj;iz
+zeCHkk@7xK#2k3R&Ho*6|qZIUqd}tcnj#5_@G^_U$Nd9P3^VDe8Vk%IhG@7-J2M@~c
+z<mwG*wy+!cCVw>BSR4Fg3pD%V0zI=RT3k8^qesDSbsR)5g_a&uV3o*$mcd^Dl(5Nr
+zZ$!&8pGnMJK}!c6sF11l6UMDFTAn`!cE6KN6>=3Vlc$2EZ-Q3gl#GwRB_0D0Ie=CX
+zb0CI)x2Ybyv8i)pLhJIBgqpoY>p2r)+O|XMqlyxLTeSXqg2H-Tw24ds%R3rv`*a2C
+z7Ys++U3b8We@5H=ub}f!N859BibheYCYree(Jp;BJ&s4a;zyu8E~8x!iua?Ipj{sd
+zIHTzCELtN++o0V#x+FghF`9D15aN26RmIV67k!X5UC=JYo#IR?w5NcjN~A~o)CK=(
+zZHIlpC%D^GX}>#}|A~_|+B-Qmtxa9zrA>1r0qxt-r72Vb9qRf(m8p&nKM#XX)i%{6
+z%cd^T3mwDfgNLuQY2GEE<BnDIg(}%Ja~<o@@fYRmh!Zx|l(`64K-ntyZgkqy4(6+c
+zz{qEm%?hF0oJ3fvG=kbtY(FszL3_$T_t=V_-~31e^g}QI3Bd8y=+%M#u5Etw>Nb%+
+z;0GsP1lY8Kr~RMj(7Qz}m}7Ta`#>ahLhoS8ay7@G_Yq%M)n}vkYuaX;eG!~53#>lL
+z2&Ub@+TB9mxg^+X?m+)$w2G4!qW`}|TJt&j&shL9;xGoLehO1D2m?LVLx&H;zzUJz
+zH%elVs~6a_2n@b`2<*~&48J8P{~vsXF(c?3_TP#zXGpjuX2968K0xsi7?-0K*u`Q9
+zn;r*~*#}|!HUb}uAna5M;PDAz=iY$rcg3XlYhd0_#}rReJ9T$sY9xi~in%fM_cVwB
+z9}pf%yCZlArgip&)om@NjhGD`I~mh9Uv)rb9rN!1`iR4(m17U4kGw|8B@bqXCcsqR
+zk6E+mRL=3jY}bJ>d0!){Q6$XHGKgwSN>R;5)V&3eK9dkVl2&=rRYV^OfPTm@=V=JU
+z()E~Ev=?;4hL|^(wD#~0HdWh>n76{AXj?qS{5Jkjks9+)c7=G6-lkdakNKy&QtZ!-
+z1#j|$RZqskv2oz{r(w~Q;b0T{VA(vn)^FQmd5cU?*)>))qolQ|9ai3|1Ir~p)&xd@
+zwfu!O&-Or{Y>o9ji+~lWirDO=O7Dgu)^VBw&$Y(b*m*fbpRtJZya=|kI5t-ff?56r
+zo4>_CUG>D49m8Rw&S7i$M3T90vGs6ksNZ9;?fx7R@Hw&LM===I5IajPrENF~dy9{O
+z2|0zm@!6r*Bw*i8lFFHPJ6Td;-_79^%1^;@Xr(9kg8y*naT`jb7oD8h9*4_&0+l3=
+z7N<|V<UCH0_*6*@Cx4xQm8Tg_QJuy6oVTe${@{$Ipc`GmnfDUB{4twiTn?M6@PAHL
+z@O3iup_3b{IqU<|YKcv&|1g|=lL=yy#`#?XfRK(j|B@b0oP$ec+#tK|z-3OkAopWj
+z4tNJX_ZKcdCnc0`I4=J@0pzZ4Q#Fml)eIy!J~YDBdZdm65^&ws7b0~%T)*c9-s`eW
+z)ypvxxAM9}b$7w-TvYS+c!hi2w?Mh}b243N+@C?^N!JiOV6@oq8V~A`;3zi{51LYF
+zEwlm&u~fKs8IFWK^&rOm#lxN+5b7fyrSpYKRUD6Y{h&Hw6`s7O@}|T%oATo&Jl*-P
+znk@1hiKU__R4zy2^>?r;WyOmLt`Ix@@!}_)%4Y3t>e*TGa_v!C6C3dI2UUbSW0BOF
+z&d~h`Bu&Tzacnx04s3^7of=6uD82TK!s|Jd?+;r}UK)uv?%QEzRmR(vR9lqaYtx}-
+zY{%P;e$bDj@b*9$tS(*fu{VjvJ%RXiofb`&Qcji(L-I8$Zx`Lbm--Z#96j-sQ!ViG
+zAihTULYAG6@42bG^)7>-{dYhwEQH_g10h^T;!lJh_?QnirQZ>oDz4=}I$%~8VVIZz
+zwmc)lJlZa4N-&+S8_=d9Gq35)<gURiJ`h%cT+Eu{fLJ$_S=VWoWC~?2eq$k1XJ;<w
+zu95mpWa$^>0nc@sW!(6N%CSEzGusInFrH<8Qwt(7hGm%*3)%Pv%XaYvMAZvK#|y~n
+ztL!KAtQsuaTiXAtj<Os#rbFks!*ZtI4Swqj%XO|G>GhK=&#p3Hi>k3ak7yA!zf7zJ
+z-l8bWdw)DES2vcg5oy9$PnK^~5D>M2<xd|?5wSgUKTq2?X%F)#MIU@%M^>=#esUy|
+zSy4ybyD-n+vZ4V&um&+!y!;c$*^8NHA(G*xdos_W6jIZjV5MF%h^wBgv>RP}_w}so
+z;{)WwJauwkBUUz%MC{w8tn71IL)BKYawmp@ne)u6AH|Eb9!^$$<YfJHtbA{Gm_`kl
+zqx|K~;PrypKbl@IScN!ROn(@waE;=EXE#<6KOkznXO-MifsF^NRGJo#$6;1!7OB@4
+zD_JEv1NdBw{g-1CFt{eGy6zcx>j^eh`%<hrn@#mzSym%pB~`zlSgjgVRZX1DYWK`U
+z+VQf3)gHN*)a(aV`wu0Ra_d>0KJidHkFq-bsNnE#XH(Xq$ImO1kVs-aMXrOT%E#(e
+zDh`%mBx~4fHrZYWS)&fwAq%`=%?~~WJ2;HB_>vv0f<N<nO(L{*M%L=T00^&(tktC(
+zz#<RU`bZwI?hY^3CS7f)xRtE!s8ld@U0C}&bZX|DXC11Jfw(e?bvQ(Fxq2xl&$qE@
+zrR(Bk`Ub4SCGy(7FJ+zjriVyw!a5E20CyZ<oqki+oZ5wT0hMldH?b~_yrJvNVSzb6
+zz#76?;N_Ws<4pw?G=C7iL6S|~H4_U;UJAA)#>tD@Sa0qM<JXq;388Q3KAQ!HR|31|
+z#)4;3c6;B0^_}_(ve<Ce_xN>)P8C?+A5^eZ8OcJ<Qo&JMv3`MZU_-L7{?}-?R2{%V
+z>rn0QvdN}H71?PYn91qcpa?Ih$@kchwV^Q2uCbw=-67|eWkauAggO6>4Qp`-_*It;
+z3z`6xX%QQ?eJbSXTWq*5WyO-C*{IJ{IV~H@MrTc;JfDe;U0aTXMoH$>4Pk6T{>fl-
+z_OM9@C|!#KZ1S4zw4Yb}V3YT+rUGO#o097p#J0R_$|YB*{g>F(CZvAvFJlp*6c;v4
+zXOYY3_jasiGdDj2Du%OJ#Yh=7k7KiZq98MGV6)SZpPI2Riy|o|o7`tnKVl%Kre)E)
+z=>wMS!{+4jgQ--2EqF^-%+%7vps6s4z1fl+7l8%)*piB5Sv7CLmNe=Oz13nd!TTZe
+zKW8ypu7UUUv}yJG!D0_Rf_a?GV$XDgxKW73-v3QrSve>7k7Thw7SbC9vW<7>=jC@q
+zIkIMTY`n|1ImSRe|HHPOatCi4%63kp@*(tsO*J^HldIpbom&LComJVc(PPLl&Chm?
+z%?Fl8vAyHgf}N7=2-$UNObvGAUS_fx?mGGC7CZV^fi)<|;tP_k;j)Ou2gSgQ*~3n?
+z2_U7HJp(&;FbHB_1$H5cBDJ2&F16SPofOY5yM2L({KhUnzfN^dJiC%F2-@d7yPBH<
+zaH|jO>NQgF-CMD%?>Tr%K6W+b9Yp5_?AjQrZM%+R*J~H2dZ!J$-uxnDz6I=N)C_R1
+z<~CL7+y6*PuhusE2`l6tyEQTfytlVawZX%tNmH2Jdft{^AP-9zM#*@kVF~+>g2!cN
+z58JjRhsU2ijH4R($prSO_A;<p1=-^kBwZ(Xu*WY_z>7^|PnJ)lKs=B=ZAd2DB5(He
+z1i9|Rrm|;O9kl!Yd&HjiC!^A3BYUyLgJi}~_VU4ahz_k;QYG3f4dQL;?8Vt@6AKeq
+zg}upMj<juB_9lTY$%g~%EhSskdoz1ywWi2FgnjU$=P5LPc=H6<T8@1TN`&l?mwm}l
+zimHm@>__#h<RUC(KOMhF$JD6Ae%Gr2=|7VFsW=(xa3hxT?;G~?VSm3<+)JO0{ryQP
+z<y)dn6?}-}MJ?z@xw+Wq4$FN%m#i?v!rNT+iv)kwnd=;b$kblUb%jGPpQdork6eTH
+z4S1>{vmo-F<SuUSVHI)X4i_(~H;%dR)QxEI`JUlvL|d?&f!wv&c<A?D+%<7KcyKUJ
+z|IQ2g)n%S>aWq8R13cpo+U2vB@XQ@(kNjBAvxc;Q{^8BDjirFP^)b)w(*P{!F3;~t
+zNqk{HUNDl@emfUl#D~5}$636{I@-klt#NSAG&f)djpL=%S(q2ac<JBWpo<jaWpYy3
+z$oGerWs@PV)aPYqMMCa)#>;shhvm_mms?Ba#I8x)%jGHfpfTJ#JPhiNC-?rH035u;
+zE4<$cG4lwo_~bK0^A5bC{eg4xN)IS-x82A8%X|!`q$3Nj(jg~h-3`2ICfb#1Ft0j>
+zK2WE5yxQ<Uh-TkyYE_X}3oi*V_ZzQv_8!da2ww9px#+c1c&!G5$dZcZwZ73AN_CId
+zsYl!S&|Y5WX+5y^Ufk!zU^)}4dHtnpA-06@2L3IfS_kl^`971<yUBU8rtQE7|K-hk
+zt%7*koHrxi!(3d*TP!;SYw}*+;>;+RTbH<B(^SwqI`Ed0T`8cJ=B*miB{EBRt9Mr^
+zo?Yf`O230lyP3BwPG4m5A>OXi4v5G8y#2#3WJfl&sl-+%%iiQ2P9BFtEMLw84*G&$
+z7|Od$aHCo_h<BxLBHF#+K?k=&ylTpWUTlY1f0qY+q8A*#fp<?&qWPP}dp>oc51!Aa
+z>2`xy8}jNnn<gkb?-lYH`awC~J9H;3&zih%UMgXGE#v(z`GUoa=KY=pQs3xq9X_CM
+z9x}}e@Bv450)_AL(1=8!XhuHp5E-srxA8#{o={$j586*^;AvMr_&#O*0U><w4~qOl
+z-tZx3$b1VJ<K)sAHu;<`d}zrKm_p0=(03F8JNeq=bG@C6naziOcaRJiV)2ppNnGDQ
+zz{jMfeY?PikIVB8=7tv^w~<1vRgZ^Fm<Bau2@hM@osw{RC(qsI6U{TQQiJ%!eqm&`
+zm*NvYWg#cGhfVdhHlNn`I;n?~HmzDNd|Cntw}DT1L=N&fzh2<e9cy<&r@76iU+P2c
+zgCjgL(gREvvZ*RovuWC0;WM)Sf-ca4&uDm^E<qDMgZyxv<GM}LWFntEigv@Ycs~0I
+zv1BeD-KsEE^=Wu?+ZPm1rt>+ksH9!dfzPc-n)qEkKG!EB)V*TdF}LFw$UYtT{2pWv
+zMl9p=pWJ|GafmPIS%<#KC%$k*GEnU=U-Tggdf*(sq%S4m?Irk<2c*~{zVhWO??Zek
+z!dHYz=n*sdx=4x(?l1ZJv=nlOOyKKJwuJujipTbkf(nb^v2P-Q$)0=zonfoX83*4`
+z`6Kw+ReZw`3bkv0^UdpPkz>D`Z_&+Rh4}GpE}3c3q~hD_P;&Y6k#Ap65Hh4P-@e+F
+zEGo`-HQNW1bs*nUsy8rc3*QsNC?Xc+dvjKR=m@@#wx4i0!1sF|gBX>Y9~n#9w|7f^
+zbi)nk29A^bSh+azrYrN~v%Z1N8^(`+xDNHXG>`YCwQ=hWkAL+F2C4bUsbMgKL;1-C
+zpJCKSesa-2*5apf(6$Y}%TJy8KxM^ye)@Gmx}>f7*^CtNZu{`FRVjq0Jm+T{U4)f(
+zGCw=e59ZBmey&P2C`anl{M@LE;Nv(ycYO|2lTZBoXxiTs^YRNhLqOFtzg&whMVr?A
+za+_!fpPc;ibCQ(1{P^_>v@Pqs=GW)d2dY-(H@Z>tt5H#YyK(~frwaUb8!Am_UF5g-
+zlI`I2jo+*232DCZ`vtB*onOEchQ!eRpPs@Wr)-DSc>zzXK~2o(qj}=>Ls0Xd@D~|s
+zL$AxnUy>+RJJRr^qG!miJj9dgP|Z599#4999%8fLuYQvsQaXgcsgXdEGnu~`Qw3uF
+zCH`*lHL&N4`TKj+Ve?JHKWSPUULpMRH|mSX(mZ*HD|LDjKk_dlDCGJy<X?YXq?W7X
+z-_}t@R;?iaktYMh%?reg5Vvj<DO=v|K+H^hM5OI@ryDUV@g>m>;%+dJTDW&V5VJ$v
+z8^nL!=nsB`@n7l4_n5qu|N2#jx<-BY@5>Gn(WgG~KWX2AEiKCb-bh0VD2KqH$H1mH
+z0>1@iKR3ai_&`6ICiq{<j?=#g#gCKQe^Qu0$_XPn32TOcY`9EVv3DTryV+EI%h}Yf
+z|DLCM>FXHbGN3d}>Mp|NGwFmeIfRRY4y0dtkvcuqAKB}O)V(xmR!@;;@JWckDmG=^
+zUp7^c^RZ6b%YJNRBazmd%7qJ|A}u+(R;hX-U8Qj_W1ori_woQc3fr`T_K1w(6xedy
+z6PZVbkfFO<WVudjtl9<Pun*3Cv7fNgrT;&ZL{`><ituwHYcegem;N@b5&<IHn{BWP
+zE*9ByL_%eJAaVp;h1vE=<meItmEoqy<wI$FQVSxPbQ7P8+!?8<7F<%~El6*C2qJHH
+zD!R}6h<tS;sr~rdA@Zlt>drGm6zoCm^<J$+!ENMe=Pn@%HTI;U_>L$PS(@_uO`9r@
+ztCPd8+BDt5Md6&)V6OZp3O`H*MBf!fO3^MDQdATVrAn{IDN#Hu20H${D1IXk36p-J
+zWaTdqXa0&(lajzPI<AN^?aEOW+iufz-y+I{k+k|;Rg^igm!wiY;T`D<7Mdi=JI0al
+z*e5E)4T75c+{yWAMWuyjp}#&Bm3A(q5rD;_a^^xX$+JY|J+wQ1>=FMRqQdQ6ps0SS
+z0aWddqK3O4#QqneR+WJ;j#0lwZ7rZ;Z;0B%DSsFGBz!v2FV<=$d@co&Tz)6&-3+1u
+zgfpT+J<5WQ28aejDA_EF5e+tXgF5Fg8g`?<m$PgdHeECtMD<PA^wiKhPN8?DXc9~I
+z<C;*>WLGkE3$hB|=o*kEmWih61F6&V`;=(jlLA7c)}r}F3K&~vi<bGGfbU|$|MFm9
+zZ6(p_Vs)~btBKZI+`u+0x5<0d5bZ0Jh1%9xbS&%z+4Q35__+n}e4Xg{a}ShvvXe79
+zi+}@US-H#;otE8#6;Vla?i@hv%x)sc&ztgpj+!FqI4zEfcSLWuLtvu=L?1PjnyT$Z
+zFi9qvctrG_LixLOpa@B(?yd9}p%uJg7A+B>!%9G(z9~X)kvYHokQfx}3LV-@3?9pY
+zoIy6lnKU+4`kpqeEN{i&BPU30dx#;*@eCqOZ!y$00@}Zy7@3~K8XGP~rE`NB{zQ!J
+zN}}`UBQdT*G3aAE#kkru)RHBen0ReA<%-v0O788@wOfd(?@0Yli5AmZJ|)*rh=>?c
+zN`BE|#-%8#5C@7GNmQ!tsv%~zp#mg2TFkognPUG95$))*oTOJS5&e%>(l~kjs*`t)
+zi8-a-1D98cIl<(8HGWAP1T<+R=7lGM6$%y$Q)nACEiD$caiPW6TP*qI0nz@ZSlXJ>
+zY~vMT<wkP<2QC#c<R0QyYO(5pJ6N{yPL@m&j&)y`fp_%~8zSfh`VJFumBXOdUlMWC
+zCID+rh|ODuf)DTzTlx-!T)ACr&qlIbt`mE2kY+r+P3-SWIbro)v48##Qnj&8MlKio
+z6Ju!1W3V{Ti9+(c^5Wpjx6r9Oh@(@eWSg5Hj^5o1HE5_q9LvF=6R(Nm#mMX4x>g+T
+zdLJ@Vpg4ZTlOp1Bar|y6s_BxQTz6fZ_%;IO`e<>Ik>k@Zzc^X;74*kz;^fge(ADyY
+z)7#={cl;D*a#NZed{CU}S_x)FHF4%#ZE_K=in9Z~pvHa?7aP!}9OO7HF84POgKLS)
+zizpE7R^syerLf$th$}@dKpY=xQ+-(@uGBd}i_K45ZBGKCZ@joxm9n#cS#i^U6*Xqh
+ziJK37Xz(IJ+|KZV+=5BscFuxO{%+z<AWh>e%q#Bxd%X0qxLb(?Nz)zT?#q9E>5Kv5
+z-iiVc7t@LRgJ>V89pYp)FDL6S6c4PMU>kQidE%jXkW7<P;;(qzcq~NrKjLZX0nn$i
+ziNs9;?95Q{q8~-T!B@mf*Nk9WABmSw=uAvFB;L4Fj){&GZyX(H5!MxN&UwLMmPOkK
+zR>VZ{<{tT(E&hsk*{FTcEtPoRn!K*~CgOwF9iY}M@u81{+6a}!$MF;~J6#l?R!{&s
+zl~H_cM6rL_IPvu~T>`Ja;@dC=_2fVC?K`F0tu4g&mDPZTN_;;{IbrvE@q^X`pY}-n
+zTC`LG-%3R}3TJiXUm#LCQ#ubAEdHK51d~3!L`RB{ulq=LjUuq_D|ug1X8ra_dHEXc
+z&TyO7fB{mSrCrv0tWA?PmPmT0TxH^2n6$&Cj%!FQvq{p590bE(%2Y{IT+f{-U8;pZ
+z?(Iv>YcfJ)jE8iMyG{j5xJ;LID@;NkneG>D<HtK>h7~0H^&^?BJBKJxOXiqW6KLuo
+zb2i8f9IY?&{7M0<H$~>HJOIM`noZTXvdkOp5B{ct%zG>V*ttUHD@q1P{ZckfZ*Q5;
+zmy+eJ_A-Bk;SS*I5b1uMK2g{%>ERhe6<A5>akD+NOAaT0=a7Zyv1nh~rvBYl7T!g>
+zD6*3*(k7PT(@<GtNI{sjr({vDFOYpF%Az+zD6DjsMZeRPJvl}eYo+Mt{?fBHl^uyi
+zr03QikO{S9DNhG2%8s*Tsc}c45*x_Ug~^$D(@&Oe@dIr423cl!X7E~_Y?>bTWZ8}6
+z#2hapz0#04e(+OzCD70NH<sR!7S!zN(mQbs^xp-te4d_U`u~v?){@?+9U=caavWx3
+zGg)<03VB$UWL0Vus481!bqDoC)o*WEJ=Paynv^xmP$5%9%DOX(g0Flm>(2FqRX9P`
+z{Ys0u=`ov@`!HF*%~PmFy=DEt@epU%$_53Of}aVJ4GvR;eKA5dJQfZeTuwF$O{Rz&
+zBAe_aIq;^s^ld=gbVW8R@r=3=U!=o7+Z|YCYRcBpl;(>Mmu=oAlIb<crn(j&+djPp
+zE33QgNOcO1y2y@qU16mTkOAvzQ$IDm?BRQi<|_ha52|JPv3#;;W~xi5S<`DQm6A8(
+zWbj}L10OTV;NO*D+)~TFlPFh}J1G0^`wx0!Ux(~_E*N~zBH6FxETGIX*+2I?@KSB%
+zfa({4FT>=3;de-|q>`acszDTLXj6q}lc9qaLS0)TL(lIe0rg!D4tWB#aGM;`F$HGN
+z966--YLbRr4r{m#>eDYdEFg|Nd?rWiqKYh2X*n|2DyU>fGdZ$eHR#p8a^!BRjNF6e
+zs2))eT~^4^0U3eH>*bi{sleZkm0@=%&fHG0shW<J6V|OHyYRQ1kX!;{L0dU7tR;B#
+zOF8kMoaj+oPCQYWa#Kb*@h|11i^pxsnyclMmdB`MOq5fu(LAFgFtwcWpdQ(H+2xeP
+zFVN}A$*DQRsR^({PMvfStZySZb;~NCdT*Pm=~o$UYtFGUybldsHoh&VXY>br17zfz
+zX!=HJ<P4WFVAG6EQ81gFwUE}rtu%7huTY3eRh``PN=7xQ1BaFNq>MTxs76eYQKzRu
+zPdF!|bA~})_LR}ZDMyvuC8Nomvr4<lIkjn<mRT?7%m|`uognATqrdBVN6sTpUTl6S
+z=Ur3KO$*8S4QOaK_ZKHWCfF4DqHM}^yKO4ZNB>CMZP#l12|fLSO>1ntoZl@T{MlZ)
+zAcP|8#E){}2tV+zXXT<<$<Q~J%f;<zIN<P8xp<@(716<RX_*sL)<2U=%LPFl=_!}i
+zC`M;+xLn>_krw50#ZdadZHw7ds~X6a(Vj3VTVxD(gwj+Y1;L!xVRf?P>g;R5(^Qdb
+z%94uS9w^r=4S+~XkH6BT>1D~aRl7l?S|K--rX;p|z1(n&l4jFha$}J(;J3TVjYa8=
+zCLOaWI}fm_p7)g-ORNSSh1+BqS2@`xRBm+857_pX_7mK{q)kybr;{fq*_6ede<*83
+zIUj$R;^f~GHdX82PVP#ysrP2EY2~2b^J@#Xx3S!~p(9wA1~&EfB1BsKZA(eV#@pn)
+zKFlQJ>if~DeJtbtdO`;sm0R!9eho||w_T<o&o0&E_6=lQei|%y@>?)r&E(D#1EJgJ
+zk-L_EhHkq^?vZgY;gjW_t7V~wE|7cwJcgC)yWAgE4XoN2dEh_VroCh3fpBteLp#cY
+zb6-L4%H@!U@=&rF79|gDppg2+TOO`NvHi_6d3YQ}yw`=~;V0DmAAdm}sYAP>-cWfg
+zWHRZEJM#FpK~Q@J%i~ALcPvy<##i18tavHoqiK!2swGcWZU)|^tUT%42xfBzd2$W~
+zuK%{nQ-eGp9;}e3>qi6Ljs@~e!)UO!-{qP4K@iP<$g|Ztg9p5jX9v@&KDt<*&q|B%
+zd!Rh;Mspe8p2-V0;(*AT@<Q?~uym*7C0!kA_gQ&qNHk3^Y?7DOBvL$?Z_|p5k(c&_
+z(STQOdAag2k`IIB<z_U4vv9mk?Rc73UhbL#U3Qzi@|Z&Gi>x-)_`&je7HWT<8ZU2{
+zWx$nD^2U480SgYvo5ha7%Kcj2983Fpe`|U370C&=O!BttQPQw2<n1cGp<jHLcS{}s
+zFLPer4R-~*o=x8OcnT>h%lmEU?~<bB13EJfv-zHUoSU{$r9bj<K5A^Fnj#;6-a&I!
+zY2}k4)Mx!~vXgu3$tQ~_lFghXpLN~=^=+4Yo~jCTuG;c>jyVwF$@2M=ZxDkX%NGa$
+z8{A#KpqV{UFUY298zo=9plq0JkxU9EQSH;}A4yrgw`9^BGA!O!l&}9Jg9lczsk;1;
+zZ=2nKzI0E%?bZ^g;49y~=nd0#o_rsB2<$+9`Ti5lq8G|0KmK|I@tw(!zp36ha94iH
+zNPpMjoBY(<lZFL7WpWc5DCSS)mtL7@O`Vfp#*^t*`LX<3%y9*JUS9d_0-ds`=JMOk
+zYUCw%lHdMyP-64S@9m;s=BLQ-H1fb7pOoJpoB@k$BESD=1mT}r{#cg+*0HPnIqWG|
+zPjC5iJ&9reA@b)7(iOED%ilh};O}qB-(!QIo8^#yN-qWb+EJ#ong|tmU8XqbK&L8d
+zKcSN$|Be_+nzER}hXk+&;R;{-LA#|<43S{@3n(_`8RdNsB}N~IPX3|PC<;VBZYW)=
+zF_~Ryl>R=D#BfoSY7KqhO_9oFC;5$o_N&y>C_-LTD)l~^=N(W~xmGv|D`&EDxYi2+
+zTXS2v_P#(yWd@aQ6Dbw9B`V!R%3d>Gs`U5sz^Xh$Whf8`Ew-u*dmcipovt#R8$;$+
+zWtFit8KVA=Ri@`ruyVXpnIH6`BKo<?QkdR&!XlN$`y5#6(KdCq7b@$Si{PT2a(hH|
+z%((UrmAza#=t*5v_GrrQ{nD%K_sN-ElcI72kh=C=p>n?=`F`!YO<De|%Dc`L>cBCT
+z@9uK&OVw4r?{tbsW>Wb_c+wj_QU#Vjg?^n?xo@IV{Wp*DSjeGzxhs!vw6<1cQ3Z1q
+zhOXRR6^t%NmayZ#DtdGbm3$tm=rsYg;e#s1;=t-$SH%X`fq1xC6`NQPyy*&6d^#zd
+z+@Dp+|B`^WJyfX{kua|7RjCNd4Z~}z(r4#__egEi$nmPIJH2j1D^+%cKjf<0s_Zit
+ziVsYcTR;-;L{a56njBt7=r859fZphloAO?<gHBa`<^8TD>G%Pv{EVv*3rDH)_gBG~
+zGOA*GYKWw2qyF1M;<2x=X;R0kDtj_PwI8Xf{=2`Wz+Wf-o>0}>)uzB!-=<DGO;z7V
+z)qB|vsz!&^Flif62l6Qyp{oX~+WVeDU3sYLJoN>8JXF=C9u(%CR&_5OC$lPzO;zru
+zlOY{#nye31-OJSKS=U9?6FH!Vl~E07_|N2jpqlJS1@UQvYC60IMD^vW>8Mw<yQZjS
+z759Rh6xD3QKH7CtRCAYiH1gV_xbh#bfZ<Dt@lf^Vt5#lNG)s3zwF)i=Jt#r7iW&vg
+zzoJd!8LHZ}UjcLfuWFZ?G-6$cYVUs-y3B3Wp?){Wdhs@`yrWeoPjc;KHPwYWI5?7B
+zb^S%g%KaZI@OLL@okMkN<Cs9>$nL7!o_FAz_t;dSvsCw++o=gQ*QS<_RQI>nAWoK1
+zJ<?u-F8o6Es77n#l%MKZB^sjDWt*y-R6QeFLcIB@dY+*-tm0ymZ*E{yoa$>+=cuH5
+zO@2(<@E(m^O@0CsT7;f>N*qk27H;S<)w`%ay>JE9JG2`xwY2K}fb#gA{Hl*T1)vHq
+zRj{f=10Jy|xIO8IjIC5~4_c)Cde}78da2-r0rYsT3f>)0x0yUteM`ndoqeW4I#qyG
+zVVCMRg=*d6FO}opfvIs@^*hy;<|i(x0jK?8V!Er)Ewp`pWmlm$$rdcUNrnFQrS{(w
+zHE3x(M0Y<m=n+M@pv7wNUoVIrt<{ie@ib{tL=8E#9`gDkBIWxVY1OdM-{6zatKs>`
+zcbw2i4gXAMutJC$**gZNO;(2*RX+>VlyXkaIjctXpt0xGz165Viq&_<s?nt=@Oal%
+zqwmqB3Tmdt_+<eTSJjx7KEQ{%%5jv!=51d!E<+;Jp)zV5O&_v@@oL-x0k$BEO<tv^
+zlhaSyv@+CG<L(xNzUT;36I=$uDqCJnN~8hKNiWotMkJNuJJ__+tW{I|XdmDDrKW5c
+zK@HMgYHEI8vVe!HsZ})0yhIgl{h<4w7O82|d?AzTt7&t)QTy<Xnzn}KE=pvxsZi3%
+zig#`5+>LD-N8lGVZG$)T`R{7lIZC@*f>lHj@|K?_sEB`e^u#Bsh&~gb@?LXtgrAC7
+zKp$w{Fcq=U3#RXUBH4hCpdubo9GTq3rp`M@P49gOR)A2EX??&Cl~R$F<Dj+{Q?tx^
+zu)NRJtoxC416{}<HT$2&oA6mh-AIJFF+xRuIzjdRGBt-~q4}zoYA#~HTDDMg13rVD
+zO`{fkB&G8(TrIpp@nQ2hC(lKxMN>%GjPSLoW`472Mpjmf!f7#%7->`G>uS@C9r%w9
+za@B+FC#=S6)Z*f+AR-5;#RJDsD`>1*JcHg~hL25EwWO1ya;U`#G`CRno?7yRy6O`q
+zswF=uE6!`-<oqFODW^Wh-}Y*0{CAjq*VNLxvCzlfsbxu%!Q0eRD-Yy@_V}q{UOT9W
+zyn9cr`m_&h#a^}MpOsUvqfN7Pr&>#Ge6c%7t@Wp>b;TmJw%2z0KnHEA(M+v<O*ahv
+zouSrcqc=EuQ>`nUnQju8WK*>$=Hz$!d7?X1n?h>+Rhmv}@K>$>PWE7r6cy{3NcSPe
+zPF1ntly+A!wIN!PQ&CuLI1&eIWQ5wtC{*?st~TwX-qh&ZD$Zp-Nvq;2ZmcU<^C-3X
+zEM>J-erof_+~AFs+EUOHY~*9LCFCc}z-4O7U}`1hFQ~R`BlUc=1Cie6Xt>%Qe;qvQ
+zNafg>P!PIkQ?)bYU+f;Lc1@+U`{b3{-!PK2-vM=?d}SJG8=($VN(65hYtw8EQwN$+
+z>`(pNrW(In9f<Y?ctv%ne{G<AE1P`wesyR7Eo!gyHf62sHWi!bWWhWR=RxTzPS#3e
+zQ*R$;(+ZiZ4sVPE&k?SUO#63hi&94p{vc2JsXEq>9{*QE9UDqwblhYWzmVd@sa`7n
+zJw?RxQ`L!V6e;g6Q>VHQBqelKotlyby2({_>filW&tuft`WK<@J4UPXzrR3bU!g8E
+zAmK3Zp1Saf7R|!1>cY2RdV@#m(#Aj%pE+!@i=%C-NyluOBu{m@;&-Tmoz=DFKcSCz
+zQ`fx=P-ve`^WcO{tC*j<ev%|zv%~5}X?madsp`hR<mM<_N8MP}jUwO~b+d{$#IY+j
+z)#Uu@=2QXmE~~otkX)=)zUqDyC8Z|i)WdAF7zZ^_59geKZn0WD8bxbiMJ@Fxg?2@;
+zg6i=Ha?!3=QqP(OK#z7)&$i`<zFJc~JCcct*ktuA<p#vw(JIm95F9LRfO>v+JWWz`
+zRWIMB03G(JB$s0})>ud-(UdUzvr{GITT0?_l6u=|7Nl=)^)5ZV;o|h_eOLmpFrWJ1
+zPy73HF7<KH2biiki64nAiJyqmiJyrliPR9S`d1}$$_X>GspOh;%abMUsN^J9@Vyn(
+zmmbv48|bgTrYZoF)J}bO3xJ&TM1Akm4XpHi^<!rOc%i)N=U6Ji##~arCQy<3B|)X+
+zUrM`Rzea)MkgMxx^vMCUJXBMk2d3t8%~}_OS(91wgVn(IKhi4x7Ws>3wEF3wdCBU}
+zb*kdDKL-ctRNZJ7EQru9&8YvdWxaM8>JPCdS-V72$Sv4SrzuI<>v6J9(}13T@21m6
+z^#I@Qrd`W;k;wGXu65$TY8KG0|3*prq|@oz#Zd?LwNBrC9>kOhI>TI=W%=u^Gp^=f
+zCkp8-4)Sntq^-`fxFt;w7u7jkyU{0>I%i9|Mx$bF>YPgFZb#`g;-yVd@VCyl*%NX`
+zq|Wa%5j0k+3;c7-Qip5zoQol>s@nZnZRm-mwEIWu<T@s3k8d@gK77^%k6#2kS4kJH
+zo(Nqmmv$7Ha|S9jt1iAxK-P8B#UF=2FR!ahyzd3v_0uKeT0*lMy5tr*bzk!8Qoa{J
+zU2t9cush7N2wnR44eH`~>eBb9a$4-C%lXUz+mWKZZ;{P*KesMF*PR9`GTT(i({;rL
+z@4%w^>q@n<Lwa3x=qfeykj1i8SFIRAF8pX+Eg%5A-T_^WLb&P{tE+Eq4z}~BO?@_>
+zu2KF5SpSc@M%~Z!#`A6J+kJJ7>10G+n5t`!CBw4%TjE{lRq3@)TqM}?W4i9rTeK}(
+z>3ZxVtW2|Yy&?*1t>cNVSHmAxs$sg`lZCWBR_XdTLdc3;pc`DId|zOKZg7?Qk=-M7
+zL%MSaO}^_!Sre%JcUL#cN!Pf4N!{q-7>M7kb)#24Bq$E)#wF+smY%K~_nHBjaj<Su
+z-2=w+k8U!Ow%-sx-DJmZ@)uibUw3!%|E8tVzDvm>ZLv@{b;}PivOTc?affbNb~_Dd
+zm)6b14w^G4r<+edPWPc_)_(oMXrw)>_8URl>Qgh_a&aBdAe;7|<_cw9)c(&dLT-Mo
+zTUk`|-R!Mf|EAqQm!=I_HI`STZu4vhWS1c}9lB&L-EP!p@R%IB-MLIOmAA{L-n2xw
+zr~I$>rPA#q$Y98u&ZhG3tUI(A2sQMI?(mKJ0Z%XJjvYxCoH?QcCftFVT1E%FUjg)+
+zqB}LC8gI)(CojI!opaIj&Dbd2x!w)vY}0h-P8a`mR-WiCrZ@TWqjc9QIjPigwW%lk
+z(p?XdC~X;}19MU&OzUdX%6nS}1$qNTrs(diFVg*=A9eTe9n`>hrhCjyqE`DB-D7zY
+zIDK=Q_iO2%l@q|*N9dkEo{|H)K=-QPMcw%$y4M5;6`LJD>EKZEekPsQeccqbf<1Kq
+z26@P(uCM#Q4~LFvr3Z{B-~VHKJrH>yUk}p*cesMB-lYfrB*|4Vw;o!aJfwE3^suiI
+zVrCyb;ztRX@&oip>T!#~D{QJlmXqG`PS)Xiq~l)`e8U0z2~)A6O{>3;9-TG}=G9g`
+zn(T8iB#U-b_(3jqQ|$<${p&YcI~LF>-c(yVUOj^@^-Yf*NQ>98Rgaw=Mzgm&blAR8
+zKuWL<yAVPB#)5j1n<toSWj(32E3ovlp7gsM5OY>LCXe-mdDKEr$w#X`!x?Rx%{6n_
+zw9H^V^}!&BnoV_hdkWE3e;xkMI=OmLhcBN4%vq_!Pd}sX`dS@vkpxA}Vm9@vKYBV%
+zXqa7__4IMn`W@0*Pv5bR`T>9Rj2X4ThcvY*n?^hA12rPIP17e*&-_9HWals))#N(#
+zmu@=hBc1B09(oRSJap?sJ;y<-e`qN^Cy657zCL<xeNr|rml2=B3T~|DHYSf~aZWwA
+zCvDT>S!|l^F?wz=J->9co_8%7B6S))|5F6SBijE9rc;QVCiS8}WIRUH)QhtxQ&Cw#
+zFLvkPJNN3vq0}2nH%2e<NdXHysh2#yLbt|_w5cX6(MzxGhH>Anmww(&Lo)|#s_ael
+z@`4-4(3qr`Z}23SEUQh^ys3^!6$ZZhl3vxB`VNj|rSzKr$bxk(;be(1PS%{~WP_?U
+z&F$2BT~u4B<F)nroO!^%m)Gn2)dhdiQ?DP`3+nw&y?*iuVC_2{dv`DCg4%imb#7Vh
+zE;dzQB`2@+(VJ${7wkS+$1QzF`hWQ+y*WEM6m`1W)N;Pwwki-R?z7(Ipuke=oK4fy
+zNAJFMjXJ4?^q!$q6HYs&_s-c3-N#+;UE~Q-WRTwbnPPr5hu$}tPW|=NdjGQpU<J<W
+z1Gx@CFT1M`BpoMDd7yTBzl-$2({AMduUepw-Y2Ef*+m~4`VM?wjE<*?3%+@*O*LSc
+zK9QD&S6kQCC#q!xAGTSaI7sm#E{wXrR4>&0t4}Ri1v7JwKHKIxHNW%fv+K*z%nH}%
+zE>ofM`M5qGLHpgC+0>g4>I*&ws^c<!VXcF*+QZ)Z%6zKT{u^#n;gFM_o%Pk+wB1xI
+zeJzgKab~u@S&7`Q#&P;4{U;8Uv#-A6OO{PGrSClW52E#DoiODcRkz7HA!;LyydTg{
+za*cyNoTQ(u4}_?@*``LMekzAU`8?219iamuy4BH7iN<QH6U$KNqfKW0{M8i*4?q2K
+zAr&MIKkB5iJ1L)c(@9lRQI|eaC!L6asdibvUO$nPQ-proe<vA_XZ8EswAjj*&>tPq
+zFoiSg&%ctX3O=U4ERTiR@>TzAO1G_?P1HYsu7+GUQ#(>Bkx$p7tWMe55N1#bBZ^!D
+zJ9^rP?FM|{3!7@~cq3a}1fTuQ=r^QjCbctW68&S0luO2vv@4qYF)pboJLVELng0%(
+zs$p{{Ph@rS^CsgGK)WqqoJ}SEIOw1uJ<-gjzM9UsbU6d*z1^f<6$jI=qH!%g4#GDl
+zkvg5eLyW6WWtdIlO~&`rzz<F}nUbj_Ygo@@uK5)5bfC#{y*AC7l{8rgOoIr0WwKtG
+zL`vt9ajVh*dP8;Nc7ZJ46UR(8Qp0AxW4Fovl6pApx0zhaBf%@rG`T0zBAoca<YTm2
+zpU0Z~CznF}>}d)-`vh_Bfbn=ANWGutrcm+i<baMfg|;muIh|w*SD>=Jn5!u~J^}iS
+zk129AfbP?JX^Mizhc*tg$@_n>sRleY#oG=C98+hQ;_>fjpRO_`+taBWTG4pM#F8p*
+zXUYnCeD#CzDo378;abLf`B|8I(Z>7IYw*NgrhLdDpnq;t{%AF*KBY~?>=S@$6HMj8
+zBvywWF_k^ZG1;2O{8#KabYw~M-y;FjJddfe=mp)Cyv0=a3nTyk{aI7<3Z07f=S^)+
+zj%1D&PL{r6YCqdaabdTq{VfctRd$<tn=y@czatN5wQ2OQB}KyGrm>3;O!ri#@oUPC
+zImZ~^UbLo$pE16pX?LaTYnp!<2>s`pY5tcMVgGNYMNwM3ciWm4eWU1>m;K?U^|%o5
+z@$XEVH(#hM-eB7H^arcl$h7Mi2dUgmyH2MdJB>E&c99>jwU=q%oUE2J_e}daOJO=s
+zFdfqP(%(-s9Wv4v8D7P7s7S4r9IZ^p#*|%`4>keWo`Mz4<Ybkurqe?DAOkj;P6-Zb
+z47@mII^U$^a<hx+(mWF^@7tzJI~VFswIUWH-Y{JjlfanW+H|c>tK6(LUFTc`_vvl|
+z`*@Q?8)Lc!Q^eaIWxCy>f+Jj*pyGa{rkk0dBaze>xNm|!liy!pg6Tn1Jo@Gm)62_?
+zl3P*Z^#2B?GrhiNrn#YdHm!a~Oz*ceSKR!W>64Lkd$;PQPhceE^U<acopLpSo8aV{
+zFzK$EzE@gP?<kcC4R?Wg($9oWPk>dmy&2Mz;zH*`W=Q`4u<w3m$ZYx|$BUSu|8l}y
+zH#2nQO=#ZSIED$Dx@+FU3@=Yc<4A2rcANmcwzU~^xFBi5tHyCV2xxK4jGO0566}^4
+ze>e`zql6j%iC!=yi<$g)42^{4HxW&aKvw@|A}-CNe!vzp^Lrv#F&{IlJB8?>^Udsz
+zF%T<zo7qD$03}MA*;mLpX?Mb5W+%o&-??F;QYS(6C}id?Oa@;w&!%eZFmqRgLe4H~
+z<~~SA(|SM5{0Y}!niMkgZ^uCmA8i&ip>ICyn^_bP4m~&4Ea?ylwdsgiHo+GNxowu`
+z=>hTLuvtO(VX?p(W@Wk*;PFPYlBRxTLC00Ia#{<BgW)D-)lnesw28SFNEOT`6Z1Vk
+zuz9#y({eIor5$E%CaRFerZ#IYk!IZY+pN7B107x0tSfa7R)@7_-H7otSkTR^8%H9v
+z<zBPS{=j=oY)x`P&(t@un@D=?SztEkOtgq&ZE{DWJNAL7;$c(wNHQDt6@yvQ)NIUr
+z5jx)%v+;9Yh$V|n+-S03%9k{8#}a5vXP?;|LQ{8lv)NREOP##3)@-Rp5wOu)v!zQe
+zYU52bTW{_KtGL;0TR{@d<)_&ZLSH1~FSFx*11gY%2bdinJi$7TFguszAsg+e+4<4~
+ztW61<>Q7s<lVr0x8)){?tsi1ce{-M$t>Wl2<{<rt0^YQyITT9qAYDUq==D9oqog^U
+zj`V%wZRTiJPhiS3;sl6J2h7pFMIm}FHSt^DLAK3kPL!uXXt8~(IdPF9)~8T&(m?`Z
+zr81|&$#z>@#GGkN+eV&u((9X(t3%D%2K0^YZ8I0gliXgp-Tbp?)YJv$YCt!L@RjE3
+z1k!kEzL{$gZJ|%5GB>AIgBAYM+)wUE1Cnm$5u@$*YJz!u!$J2^KL|BX=3b}#U&1_P
+zbm}*yF;CBtpjdp`yo{!MNIF{PRTo+#Gu_OqcWoh?uQqQN(BG}dXWpGZ16~m3ePm}E
+zfc7(=l3GE$%WXc-34n>{Z$8IRJQ!Ejd`?(L0cfoGQX~dw6KlTw-U3lAzxm>z16iY;
+z`FV#<@$Jv%mr#KFE1UAhaPw#AT)OwRllgP09MtQ4=I<g(I@d3nzo*?`6{3kay&5X!
+zyTytW27hqMVzX*cW8#^`XZ!*#RkU<VD&aQtu&h}6=Rs2sSuW{l`+fOpx!j9^eAwS|
+zr0y65^)l8<eX%(um(Nz({@tLz`dMk8Q1dBlj+JpHy+BG~D-+%P$IoTAviz3-*=8(_
+zlg<Il>tW>>N!qUb1}kSct)Z2Zt(>z`fn`}`<;p-M*S_*r?%%7RZ$G#47Mo3;a<Y}L
+zTOhe>1+4rQ)dL%{IIIGhXgi&+VY%m^RXb|1<zBN6_4^xH?p=;U?09Y!s<)mRk6)}p
+zt;)az<gf~tsRS!qUaQE_f?#>3I9c|&RkTV1Ffq(3_Bs;SU(qUF#S_+~v{rFnS}TLP
+zS|yXHWjk<-<(bYGqQZP9uQ~c#o*wi+l=cm`Ja5td?6uV@Mf1ZVez#S6{xiCLXQEZc
+ziz41zU#kpRDW?1?tIRKIzn7kEm3`<+_bJt|$}OPelYOpLZjmody_~eEr&qDcU8hrA
+ze~aa{$_Fyyy5;qwCs-kAl}~#Srcb<8Y4$S+hpcZ^p6mr)yR1#qGuEn-SP*jBE~~0V
+zvU=AVt7?`&@CrSxYOX0Tr9N2IGSV3D)pAx1R{_>~zD@P(r&XgFjqgldV%6A4-}uu_
+zt4>AwfZ?^QI{$jXISW`mwZfpU^tXHlQm8+2$?_RJi1h#C(pKG^bj`dsTXlQ>0P8l<
+zsvCC;s>1-Q?tQ9g_H?jm0z$2NX$#Uw)nu#TR0==^yIGB*$S-J7%xZMplNt=0tj761
+zK_*tT8aJlFq*UvyCMkEoGS{+vw|$`;QpcuF8D=$2PX$c+R+e9}5YqoeI{!O>nRLkV
+zyH9F0ahlb#HC@Zy->jD3NV!DivHsW9S%5{gM*V)x?AcwS0w#i;DA<L81u6#EiUqca
+zA|lpcpn`#lICf$yV&Xx?02Hwm1NC4aVqza#zdxJrKF_`PJdfu$1H;UY_g(Q{>wTv;
+z!E%kY7kWqF-r3g^daoWz=CI1(FmO7ED-?DU3_yNRL+I1BB$;Ct2z_q&qYT$k=-U*7
+zv3QKocQ6L;tA;|qtKBj9ZVLT!tnhO4y5a$NsJYO8Q#KkAmI(tKJ&68ogViA{nG1Y`
+z;jw7<eIN_N&qB-TGF1pXxD9c_NMU3T47TNug^|dTS*L@-xY9WAT@8ewdI&_;P85RB
+zrOTc<A_Pb6M(aj>Ve-LB#8-3_CjY^hSduS<S=+*EEp`y5wm?$o-Ab6Y3<hS?2w_II
+z4QNR66K1^sL)0|FAnP?pm^G(A3JkS{S-X(GH}o>d_C6s*xMV}d*Mx`~l_0-A1Yf~U
+zcnJ})xB?E6FndZ6SysgfbEotm?%79SUVaVY*<XS+vP&7_raKCeU69)~$TY}J?;<Ri
+z;6&W;KElGe<;ZlUn6PlecJRIsm4qITt0@LKmjOaFL}WgK6QZx(N8)nHAeUBESY-J@
+z{NQK8;)hOTn(8Yo@x=R_P860t`$87aZ9>cn*o!VMRw3pua<xYNgjm9K81F5_mczzw
+zw%tOk=VGFFO@!F(yGiJKP>5@X=J=``gt!41#oKQPaU=hbx!pJ+E)R8p`sIqa^qa6|
+z$|PbP@`W{Pur1nGMOd5dN|x%&g!Sc7SKK&P*kE4;t>Ny%hU5eix>}0~8#&}+2i^#q
+zvZBaTu9mRr9!j#)M+uwTqU(OwU14+ZGvdp73R~*HYwevUYzcrVJu*YsGGZ{CS9@XW
+zoW;lyN!Xg0Ko$poVe1X7LEHDIi07*b+upPwD##b&BR-L3idBe@gVTx`B5dD0i+Jm$
+z5yFlEZp2Q{6LvPnnSA*z>|ETC%zmAOT~FphG|m!sZ|;EAwmpU21$&79@KV@w3ezn*
+zOxTkP>7~<BgN#KJ_C6KijtdO3_Pz$W7?VMvbSq(BdkoJ0JB59PSI+abkoeFJ^?&d4
+z!l9-|2(p%NxFZqvq7;s3hq0SuxNzi20hwM$2}gN2osJgaSoJk%vzs6s`*VoQLr)7y
+zg_ro}R^fO($ZeB08Dv8y2>--;qaR?Zkj%v*-#;fLAHGlAl^7xUcYor}90b=O!kQ?Y
+zFinI07dlTkao>)(3{E&XWfQTczrraG3rr>>oEn23^`*OoQ;Rbo8l4nQE%zrjdx~%>
+z7xBU5RYFSBK;mx~2q{@<#PstO&UxVjtj<EJT`MvzJ1(U9^&?Zun?mYPWKy#>2&n;}
+z^_P&k8NOs(l#u$wdX<<h79sWPZFHr@3u(`B$+uk)(uaFu?dVD&{lhfu9*`xZe{~|p
+zv#M~R8p7u)H-(I8xP&=1go_;N0M~~JnImQ5F7*{Mci}*;KNB)j5l4*A6fTv3M%=QS
+zLAFO_;ZhrHeIq0am%^Tqx#d0KvQ-!k_qa{CJaIFb>mL!WFu2scM+#TOm1H^pLb#GX
+zh?w+T;p*-LGN%i|wLLIMUB?O6{)K*D%HJUGyhXU4i$G)GJmF?N*psk);pWj>#1C>2
+zZr#8M1SSc$^6NuAt1e^}PUAB^!tK+!XkHmFSZ`lI(J1ym;qKP$*rX>(c+e-3Oba6o
+znkR7vnc1fdvh3y}R?977<NpkD<rRZ`|E&gviB*M%hag79uMi%-Ma<Y^m+)`<AY$q+
+z6&_WKBlh=d;c;DrXjgw&g{Sq<>n)ck;;+@hQ+M=w58N+2UHJ?>S`&oaC0^)s@Dp-#
+zpb<rQ3C|)6h&dS{<W<L+tm-S|^}9&SCtnbQa8!;#OUFhA*-;A(a#~d(Z!}6ZeNu(I
+zb&*5|zX|zwFt~qNI|(lWaqq6$3okCrBB4#V@al*?aUGusuL_^H?kBu9_)2)Q3b9+(
+zTj8x4s+e+Ic$<HRm}`H8g6fFncE<_t(_uHl<_I6x9m3|RTZB*5x)Z%QC4AbCHRsAb
+z;Zx2LV#`kvK2toIzt$A~y8`XV%J&t%ea3p?Df5Ky*mHySo)mseJAsDb$p$TL`U$^+
+z5s<uYDExNVMy&6fBCZ@E{JHjtxMhLDpKpK2vVFg3Dsh$A#F?V0wlkq^LS%4DnSwac
+z^2vwzd!I!Pr5>`MWY9cuoI!m4I+1rRgC3A>BEL9@ES;Z=Lcd5PAZJDK3Mv*A?~1Yt
+zH+<xTD90iQt#ZyFUwOZ%H1H&DL0z%f=@3XMJw>}@7^Zc>V#%#uWQt4^?Jr)yt&JBQ
+zvJhWPJ|>n5*+_J|kyvUu4*ci@vDC{y=>PYBFP5u0kC>??#quXzpl<1+lNHkG#HFJ1
+z5P!1N-7UH_MroyDoahpei|Nx`th53CzTY>o%1@2VXOD^1_!7kWtrcs(gZ~fwXpk+{
+z-yrwrjab)VH<=pwi**Mg!Kr&wtT)gOH6Rk*GpzrS#eRTTf9*!%KHe7_OlQgD=qonL
+zK!@Vy?P8OcxO9n=#1`5?$md(c7R9}Z$A$5jkwB*FyG4&=oN1X|Vk_)GXByUAY_-1`
+zaqDHVbvy>worPkDzAUkI_KThReMEPCy6EkU9C7&%vGWr@GLJ4NcD1tb&$TCsU15_=
+z!^9%)+HBC=`-wr;p>q-YkwNZ6b%R35jiS$}_r$zU7JK}HzhCVv_H>9R=1xt~&&!n<
+z_rGGVBopzmv&3GPT+ug}Cic03XuEtlvHu_)rhc4g9dHuu@ntWI1N}V7vaF&wFySSc
+zCj1Zw!RE7Cl0m*-l;|IR8%bkr(SI(+09#PR>NO1VgQkmv2g4EuUlxaOkZNb{6NjF~
+znD~?<2K0!<u0_wqz_xkB&VD2Y4)rHKSrh|<Zli?bZ50C%dYKkI6-S)y4}HF!IC3fs
+z#L850R3psymfOTpxgJnP@(ps|eu$&(`#@Z3E{@*Un9Muf#4+{!&_SV!V-7Zf;u$Um
+z#qJ?)el;=Z<18{ieJf7rkHLMgr5NlyA5H4B#EG|2V_H&HoK*1^dc&-T#gP7HWInCM
+z&}xyyPW2I|ELw>Mf)sJ)F&{D&lf;PW>16i3B1SAk98m6>IHxfN-TKPnoDf$s^*kre
+zb%SE^F;1L&e=9N1`-<~Q!KAO5D9+ns!^*6YVq|AT)2sFv<fn*Y<Y&lqsWrs;*gT4}
+zw&%qKv+I#1x}q56b{ksmJ#mpQRIWai#YGby!Oad57cIylrbTaYQ4TC(tF8vQWpBmB
+zViw-GvADQ)0&xS&iHoCyi1aLR>Gd28!r5X>UMlgk28zqZctI;(BQD<&MqKkr;_`0;
+z$=r0WK`Xm^gBa`HmiW(A#aJtL<G8v}jQtAB)$NP8YViUx@7ph~T7_)4Wrjia+k0`<
+z%}P+Sy$y0yUtIMv6Kg@fina>j7(-XZ)%EcDtO4Tc4IG)AGm6;YvA8+`^WQN>T(iCy
+z@!w*_wRam}{%;u~u6vHuO4%fC$j?UgdxW^9G<KpK?;>uQ1$XLO#~_!rN!(h1;!|%~
+z-1_S(QNJPLHUV+MP*;QeJ1;T*O(Zr0wu;-+&}81|in#qMrsJV|;-1`D#FTp_?(^DD
+z%nlM05*hRzIf(}atA$wSY&>X2{I1bp2ys=%8RU1Z7Z1(8Lu_D(cqnN&x?+Echi@Z@
+zOc)~`&W1v=>bQ91qYqhrofD7R6+?>lQ9QaS97@Vt@%Rpi+S7Iz<Y!M7|4CR$bgF`w
+zTnDTEt2>IxRv+Tt`~ss=$h_u-nEYTP2}@s!$&beoIaM#>$5P^n9UI9!xxRSP8JF~S
+zns~-?m(0EQiDzm+`?>N<JX@zQCA%!1g;%t^Y%HdF4<VDOt(e-^6Mlb?nC3W^n9ZHU
+zv{q$^c@ZzBb&Ww|LsK!W_X@HMc`RBBAF%U$#k3cAW1kvgx&rt5riz%}vI?3>YZ+uG
+zc!}xV9g#}yF=#&6P)tt@gitZWARjVNyl`OwaeTg*0n2CJMPlaWZN&F1DPDF9B%x-!
+zcxCWeR7&?2vDsJg%19`r-QBI?RYaZasT}cI*_&kX_$FTK*^t;q-r|jQy@>m;TD;Zx
+zGs@}B#9Nnq$rOFYAX7QZpiri`m{r(n(YR|7Z&eqwQ?iLBtrD{zt|O-13h@EgjVLoq
+ze2`uVT2d47VZ{Ps=hqkiEe7dUx4so~DyPEI6^J?29gz#B7-Z)(G04^IAwCL4v|IYV
+z_-J!Fv0F}yk5N444}KLNLyTsI@#51req`~J#oXJopz%BwpIbf?)pQo~M`E*^S~=ni
+zKXkive`1jJJ8h6#@j-l1s25s)Mu{)5pQ1TDPJDg(C~+=T4f0dkh_7G95%(ZOe5+{0
+z)VwCXZ9bRy$^*r>*C0?<Y%Lbl_(JTa46z^^>kgl#i|=v^h+kMi{E)vN(&_;5Gd7cC
+zUTNazEbPnu?^^L|l~`gDPl(?R!4wCc6@PA9iS>V>7sOvBRpMu^5q~eekIZMS_^0w1
+z;ucL2|Lj7xJENxfcSt&!LN7^F-34ORNr{f6Lfzgi(c5{5njIz6RXgIJ{*lb(Q^<6?
+zlVl!+bUks4Wd4YfO|{(y`6<&Sc2g*XjR6w-BZthNPD}jJepm>-bc-ayw3<82HOP-P
+zOJa&Wv1MvV(&74K3VIDrL*-(&Bz@aJmTP+@xhF$hoR1{0OC-v^C&`aoh<6T_6s8&s
+z*+WUK`jNQzS0%OAEi$!QE)@%hGs-I=*^LMwX2>_m?mjvy>K>Hrep)Z0$7`8nFXPg7
+z$&gC9&my|BN-9&L5(<j9rLrk0WEnA7s!%_cEH55N6*4vxv$%)kjJ+gG+H<L*eH2+L
+zwUsJ~rO8rxpH#{EhS<+Hq$-~SP?#toRoz_@`riYoDi$_aCijr4xw;~K|0`8*2H%nB
+zFIBe|KDgXKs(ukBbbS}8Myn*0-BuZ7cce=-Iw6@X_PL0)f~A^u^N>*3q*`-tBZK)S
+z)h@oBxOGdUy76e^eY-`f*Pwt*YO>@O*ba+dL!|n7IKV2-Qo|?cr1;)jYP2<h_-9R}
+zrUQ|*e#(`s%?4t#K1;aN{4Y$cyh&;igxD|AS89n=iT}_-YIzInc~0{9Sd!Ql)udMa
+z^U%+Cz#!{3zlfgp2D#)C289VtrB-*5%3b~=weEnDZ4cET7n>rr4#4z&=__?y_K-};
+z>#UMjQz#zm+DTr!QsBRjO5R`4f-&`()R`SdeD%9h*J22(2VRuAdNm}jle^S?eNSSq
+z+ezJ@XvCjBA@$s6gSWhIko~Pme%LsP9l2lXT@miO%y4N?<K4tpm@5r>P#Mi9O{Af<
+zQKox(L>k(rEwPT)d(to-naIPw(l8HyGTmJ#4TIuoO1Uouv?xiYLv^Kqeh8svZ<7LS
+z$XXjzmIC&{!X11djo6$<mJ8m}NXJ$<ptsV<wy5(74WyAP?9eTDPa1jY51P^#X%z8f
+z+Eqmw_3bMP7M%?80llQr0nm=EGb>1=M_h#1yhIwE0TJo1CXM+Mi|{y28k<)bkQ|oA
+z4ag?8*Ghw2LJetL6sGCMTxr~!tFQ~KL3UA?6r{5xEV?BHRbq(VUN^}8^ft(?G)og0
+z%%aA9q+rh;s0~F)!S~i+{h#X@X<~SB;^$^dlRmFRx9e^xq*W~T4Z9$PR&^qp@j(i0
+ziXwHnu~O*Sio{Pzk-}>?BYxilDZHCRT<UEpJP~8Wf3FmNEs!{`I?}YY2a)}Lm!|z(
+zN{lUAn&FGtvU{d9v$zilgIY>6OQsOxSXG*3sgEr$JH3=<{XoZp?@1}5eF(zjMpDEy
+zgj`XRq=+S$Zhw=ch@D787JifFq8`9p{#Tki^E0vbmkn}BWu$rgD--iOL5jS9UeBIs
+zQsj?fa4xT<1qTlk-!@lTSSufSK{qLC0;b`kBU02}JU=*IiaKDmCrkf(Qgj`ZMEAEZ
+z;`tycx?_Lh7X(U+>Ol`^drew&9e#V%3Tbf~5|Z6#q!^in08vhg8H3S1EJ|8lXlh@$
+zO3T~A4Nvrt;xJ1r1Gh@HUT2B-`Yx@mja)KvmbBV!CvmMuNvmH$?tArJT4ODgP=1t^
+z)?(jJy17YO+r114OFl~L3->1@UfM8fBwDSCOB-J&V>%{EoAp`5JKdAElqO=lvZXD~
+z*d|~_sI=9yI<feGLh`wlrLF%UDD5#v+J??Z=F>W9XII4iVUMI;4U&i*R9xD1!UJo;
+zW=Ymv*AmF`Ia=B?Xg4g_U};ZO0qXd7r9D`H%-Tsstka~3-bvEF9ngH&&6f7v_9Cjb
+zLrU=Yf#9-<bYPP+nR3TV#~jfEzWTUytlDG}0$rtJok|ju<0c&oM(Vb$nsjUmM5_Z$
+zrKH*^#9gjom5$HeMeNWB>3A#{*-$$E%|xbkrwp1soQk;Yqd}o$cPY6)npH<1m6C@K
+zAnIb0PKLutt&EUPE}l$OVVOa*-_Ihx{$|k9D5i*Q2O4Di)GFc<>y@GhyFVB44PV6f
+z3ySzB$e_?;qIB~3XEGmcBc1%Z4aulUN^wSv*S(TKF6Mxg;u4B7`wHoF+BTHet4n7D
+z_>xJobmkNGWvmk=on_;Rbr~R?Eq)LM&migSijt`Rr@xoZ9)sW4*GuOzF*-fR8D#rj
+zk<uKOk|klRba7$_lxPn~7w?6VDQ$z4IS!ZfMpr2_0;9c;Zjd`2DqVYgj#xgrh|MfT
+zZ1+;Su^;k#mcMlC>30&wjFs;6^dxd$Al-*FV`W|*kp4Zhkt~PWNjY8c#U1{Aq{l%u
+z(6zEhdOQiEwj(1w-jzUfxM2}5UXXH|_!B*ED&;mS%=NlTc@7v%53WmjZO>qIpO^Ar
+z^SORqq?bYe5^ruUz5L*Tz~#O4dNZbROBd;l*$1m>Ql&Q^?_>U#ej&YWdymY+6QmEz
+z{t~~Wqx9*uFEPzJNM9znqR?<(`sT2d%mV|YZ^seC-3*q#?}eqz2$6pJLsm}{q`xDP
+z56p3tsoWZj_H5a74Ab$}583p68u68y%jTTTL@%z%OzvFtgtnC}x3Pou>Z_m?p;wEl
+z#t+O(<{1=<{gv6|mr%tT%3Rel#NC`B^9^9(QYy=Q98$9sLFN;o1?9&V@x?TQ<}OzZ
+zvR&I2@xKIFtd5T9FSliJuMe4~4Uwfuh&QedlGT%sh)r^lb?d?=#MZnf>sK10@=-=E
+z_RE!oPOW9TV4UgWCUWsTZp2(jFvwMKl8YxGjK1*AAXjUTT=H`%=zIrc`$hMmj+tcp
+zRM`HDf^46)l<0Fy*<o4;O1U|*!<JU4dRLbnp&iqpeA)5MC!+IDWox-#$XGtv%jMlY
+z$gKLvPK3}Zy`JoJ;RTu99SyQ3*CJLPR>ZoY28HpTWT#6TiLId;<d?jZE9^EQtnMZ|
+z|LjTT^9y8`5l}it?vN`o5T72lkSi`uK{(z{u9#i}g^f2><AHhmW4YolNGXe!$d%ex
+zA!d81Tp68DtVf1iWjjpWgFLxvHFxB0%jK%x7s>SIkzB1w8u3-T$*zw)h^zBku6L+3
+zl++pqh4R~Ew~5`z+-hkNFQ*t3^aDjKwnKLNfm6L{-6y*rSx@Hg)8qz&Fg;4y<VKMg
+z96@{JMt3o&>~_eF8-0hnbe9_sX-Ay%Sh?{?XvJlh$W7d0NT@MPZdx2#QI8&SvwahY
+z{i(^#6EV-fhs!OLndqFJBeytP4L)PA+_EzglkI)w)-H&WTaT1mNAHIJFS%20edji@
+z$Lh;%M<NOy^ha)24%6|WzuYbc3B{&?a{Ch4r)c_kxxF`XM6W7x`;+}p3*Ihwgj~nf
+zjFLOqc|xA=EO%MA6@iEqL@a5)Ozt}TFmbm{vX28c92h%C_PJD%XuPxBt+)r7bSJs{
+zNv!{8YoCz2XJJvv;PtZahbp*dcjSIG5M0LWlKU-$jJ~gy+<($XVq>%A{;BZi&sxa?
+zq4AiczVblt24v|t)}T<KoIG#_uGsB-d62yiS-$h~po}x<j*pRtmN-L}St0W9>+ZyF
+zpCAX+!vTEuk^?68g8uK!$^mz9X)8CCM~*G@%Uk79g=geFK^`+0;!&KdJZ_!^D;jRd
+z6Z-lRx9^J_{KARo(tCO0P$U`~D#(*u?i2f@s~pnTjK(5X4#9c>%Yaq#WQPLcn%<Wu
+zZ~IP`wIOn-PXd{1e3qx&M{HPXtQ>A<{Yd5}J>>A(xHnrwIlMdkcZHpDc)wXFF1?k*
+zL+T<Ux+c%q@_|e(&dM_{W0vg7k!SsTmn>cbWowO%sEQwwBkC-LTdplf#6UkRKTDqT
+z8Xt5rRGvF~Gv5D@Ja^|FD5#n|&&iLNR{3&dy>`S~j?0nOekI7{wm^=&Fp>EG+~oO9
+zQR9j5loy&;5P$2wys#=-vZU#9lz>aC*Oa5iBgCpPRgNBt#cCN1<>-A^(bXc!(LbQ?
+zWlfbAWnsQI-61djP@2rUljSAM7t{;B8RRB<$xEAGCG*;o@^Y*dGcWR!tt*oAupqFX
+zysAeOnYYZBSKVO9oTtjG?GaX=KPIovD<J$Quc?8-6<bwa(;5eGB1&FY48iHlT?YAG
+zP329qF&5TD$y)|_5czhOw-)w{x4bBCTaZAczL4W1))IGoA(#v{l;c0*%cV*NS>+uu
+z4G<PP7~}&g$vd*}C0SqJ%lqPLKtjoq_w9fkc)DHQFP9)*I4tk?#ToS9EAQWRhD>d*
+z$qCnxs+A6w52VKvv*xONARF24l`96hv+i<Yg*7O-o|hBd(OdTVfqW3bE#JGWd~i@3
+zqEFWQ^5NyTiCM15hfj_q?)5PFi1sh~{T$>YWoi=poRgEs`w;uBoqWOv!RL|^^2wh#
+z!}b1hN}D;vWloS&E+G4zyGcHsfH(I1DxXf;i32YopJ6e`rcII0)x{qDRjSEpdke_C
+zytRBj(G{82XZgZ*Tp4Tq?s7)gG-Ce?Gsumx$r<}ElBM<oIpYFs`f>2naD>~%<crH;
+zIvf9yGe`K7>ECEMGwKjg<%#m;Qy6qj9p$Sxky?#vAYb2TChpTb`PSQF#KZ;4cNRl%
+zOm~*=T*s{|Gepj=fD*3ttDK#b2me3IS$;4#j4Zw*402U6<QxIo%n(O8CnS{w`<e2i
+z5gJ*FZI&N};RBuimyf<1&$&27e%u+M>ZacEQwH}qrm_6gaX6%$FoWFEi}KU=&#(w>
+zvHYymD_pUs^0RQr^le@h68?YWDEZk#h{0>x%XyO@5#=g!ez$Oh&CTWfOP?UQHj`hz
+zdx_4a;_|D(NVWElFvw5&B)_`hLsaLN{Q3&UfYnWYKOJSaMla>BLGfhfPRidlz>b(L
+z^3P!iPUEV}KWA1V)2LN4`c}z2cBn%BR=CSXv3S7XUVR5M!Q+Z~!%kwS%~hDiaFdnd
+z6}Dz9nMX8JxG5WnFA<^eqCJ_<>{Ns@o5@ruR1qFq&^4E(h})fr+fYZ5<DJMfx2_`J
+z%Oca+k%}syKiFDd(cDfFd(=hI%Oe^65vJ(YHdBd-Wt3vQq1o1sQHq7xqnrJyQtTbF
+zT>B-8U2}~7`4Ng8dN(YM8yV!go>uHSPk^lUO(|ZO)6MLn6mM4#MP?VJc(gq%X_Qj@
+zuLX+738h4%D#Uj3R7x}pC04mr#FjBiiA&MMcXLv#4pwaC*l4WcXy;Ab{eg;O>`Hhq
+zSH*EFE~#4!rR<6	V5vl*=w4VPONMeCw?!qYFxfCb+cA*D4jxA`^;pGRSW#sZ>C;
+z%QQACE`Hf$4k>Gp-O*NYIdqjQc9j*E3ovZ8-YYKISeQIvhE=I_pcl~#ccrpV72?W1
+zQ7ZpJ%9Y_^kgN4rsoqS&qO)wJMopZ-;$2FO1#lkWZIv1r{Y+4zQe#;myDK%_=aT76
+zo>KERgv;!qN}bmQ7#ki2*`O*)-SY4mBj+e}2S5Q?@Ia~i#*5ew)+LHtJJ|HcYZbT2
+zlZn~+PI23uL+n~t#oZg?)R}0--N%L4N9PsyMgNc~I81Rzpu#TjRqB5ThcJ0nX%LAh
+zxXiyw<F)Ass~amtipqbAhZBUxOUX*BO`gOyc2HW^h2=|lrnDZDN8EujO6!nhqW*D@
+zl(yw?k5)WX+Ko#mcC)L}ZhU<hq)eq<Rti}TuTa|Mmm%(Mg5uTVA+cMEDc%lYkYdIv
+z-i5wFE~9j9ghi~k*DF1~*daLWrt~cCN|wi!V+V&gSm%FHdiGw5yd~10Wyo%WY{kb#
+zoZHW!;C>o}J!)G{@pXW+&2v+H!;cVi#6j_!k2~!0Ug^EapUi(>DSf(y5fk{I(g&TQ
+z%!pq~-{@z=w&|zzbKeEC<!z9q0E1RO(ya9Jgx8**qV$&vE42cM**tu_K}-8b2H9Z)
+z406I7rT=V1>1RhN1GqB8hdfsX+~|)B=cf$R8WJz&Dg&qD_rF&ugKGW3WXn<pb;gCg
+z^{+CdJ9LsIuF8;~S4o)pS{dqe8+XwEPT>PG$DL4y&Kpf!*P6=EJ4g@4xGBRr<BpHn
+zq73(Zk3x$@8NR$N#Ij%|K=UN7QdK4J)^=2WYAd7bz{_XOQARh8Bj#j7W%QQY#J$@B
+z!nqFnpp3!7Om@IsW$e;d5arG(<BpZU1}y`W@jg}^eFz<upaoxuJ#t?O-VX6>&~<~X
+z!x4krjmHLsE)$hW{V;iE&Q>OWsgJm*l@e;k2zZ~agpPYnrhW&NDTj}cIjOxe1;1ya
+zB_-_kP7>x=mGG6Qn@l~bOjCOjR}iAi5D{G0nXAmOIxi=_pouc0KgOop8)YUFMW)AL
+z$}DX1O{ZoX<P+;C5z){i!u^yvSoLoy@K@&6>PGCVsmi>)_`1J#hn4w*|Bz|pHDzI;
+z_SJW-K`wQh5_KVg7`qut)ECH)+f*gGNk`&Zxhv88o)OI-uUMn6VbEOLs4Ol#qGw|b
+zvO~g^#U6WLULGn-+}n_;<v?Z0EQsc3Pby3P%|$~-gtBxX2H|2-V(?`}7Rx>*rguJi
+z;G>k7!CSCX<u@hfBX*QO7NacdicZeOqm|{=A;xDcQkMH7QFHfIR@?|7_R~bGvf@(^
+zF=aiJ6<=J5PI@V^t(;J3>7vAXVvnjnDN5{IJfGJ=S()aCFDKil#06t89U7#>MU{XA
+zbzQNQh4SMvL0KJk7n8D&vij_O{61b;or8PdW~M=Y#BXJF;kJffy_Gffn-P2VKV?n7
+zUa<JqSY=Hhw5%~%%9>G-5BAMg)?zzCu0g!A_7_}1<W*(e>nvhZLY4I@^vJUA$|gV5
+zs4L|tn`UOgHF3(;IXKXFOO$PI6l8SU408XpRJMKZh&ZQ*5|6%SDmTWUsdqVp%tdb{
+zzB|GXYfw{VM`0t?`6kMa;4$b?Ij-z@n?vTgE0vw-WwEr^m7U#D7(Lrl+0_e%bwOKY
+z*DL(~)+uH8<pi?)_gdMTP?DJBnM&f__QVaitQ<Vs0J_II<#1b6it9NkhYR~9Om&o_
+zS1>LA$xxDBVd;rEO!?<0zER11kdzZ9#H1OM4Du`d3<_1gDkqMLXg73FPNwA%zpk-z
+zs^S`=tu2*P;~Jvv@LwghF)a9z^9Ie8))*8<^ik5xs0bw-RMLtgzxf`fq^-9n_LQHJ
+zE|ntlByWTKKv(6$qtYlZw*94KgvJq<d{W7nitys;SS4c-e9@FEN=9lKSmJle#prZm
+zPWUJnGZDE36(|?)`V+Mtp=9<tioffwT*}`<rp4V13N1@1mrFSk7rsHcTn0gRP8H?a
+zl;Jq@xytpAzsOS6U%7EeBqn{Ka<i)y8CT7V%FWOeGUazwZh6-yi_0qI)^jH^b$g{`
+z4e=vNE3e#cFpJn(f<b=2w{oW%e4+MOxoZj})|prC_WeX$i)PBbPD{yRdZJ|ax<pLG
+zE+zXr-q#$V+%FytAtqaS*cRo<Lt)CpzA#u0pOk;C&o!cN(Mpa5@y7aiCC8)i4?UGf
+zc7eoQKchT$-A?RAZ{=~1Vko#QQXZd%iQRQY$(<d72Fabu^V+e*1pK2s&l^q5lzb)s
+z*$AW!vC0c<GiYvpU3oba2Qc8c@^YF#3Bz|PulK>X-Mp^6z6Y)Qv`MkPYvGB&>7w#}
+z81|;($10y3a6rE_<#Q7R&yt_=C1DJ)yZ$pMj4z>lb!iBdf0OcU2qLxq^$l_r`YPXU
+zXk-amseJc<XqH{hARAlsTqyZa`5u51LA#&9W@D8f%OhZMXIhmX$L0{*Zl&_$>=+26
+z2b5ns@WQQ2lwU8}p&8~-5%Yd3zh|QjVSrirv(2BlInm1BrWP_UTdLBP*Tk$Xr<z>g
+z6PCxQ=47b;w|c0|mR#a@tWcSK7(>~uz*}S<yxAa^y+gJ5w<G?rOH<VnfPl)ejmlQH
+z5IaOy#Zqg?ymhK79zc$2Uouvo4liAxO5MGP+V4{pR3jOW^9H%N_o^};Nq_HQs_JDX
+z+FMK2@Li_dpC+od0P&T5A65H?NHutjTC6{wa~)K>#z>_nPFL;gpi1eLpgMl~f*9Ue
+zEq&e#$Nfev+Yh@HwkxidjmP<)+ozV@`wx<URMmLEe(_PuW@Zs1#HlV0x5zT;r|PmB
+zf6%9kS_QY7;YO=fW)u)VVV7FvtA@tW*=n_Ruxk@s)M~>KBA>RY)efOEz42eQx`H9$
+zTw1LjhNfVT!v?u!32N=;XsfQ%Sgpe>BvZ{*s%vB_M1YVws_Xnv;)=<tn}ZKg*f`bQ
+zEsEG-8`S!Tkw2Mls|^~UpMt%iHk9D(>itxkbU^|a|5k185k%(7Q`F`&zmuu*d$swA
+zhRD;R)#m^G1Jx0`_f^A&aUSywax0D)6iVMvTXa5+iuN0|^|CrJko<48O(>)=*BPp3
+z>mOKOQD5!Q2x-gXnQEs+k;IlSu6idNCAQq5*lRN!thOPlZ!ye)#bZ?8PWQ29;I-QO
+za%Ex~PBm!xZ<X5nXA~}6F@xOab84R^j>J0fYM&99{Nj4G??jQfU(eP4gIviHo}mut
+z8cn8Saq7Sbyw8Jg>OfRWsp3Y1Z17%nP|sh)F;i6k*Bb1qsfjwY1=6&C3)G=mNIa*y
+zt3zLj#7<6Chcy^YY(Ty`d}ky!wDDB~-9JEttfvO1{2<O@ygK44=HBg|>d5xfiLMnG
+zv~+Hyj_i#%t$esTY838lZoWF|N(!0pms3YK`9zlSjnvT{JRy31C?xD^!FF}@4kt37
+zkkrxl(lE5!8RUcrb<FXhkYkRiV=ka)s8}C$tPWoo=&Oz$(1^_WS?bu4IVAWdspFQH
+zAxqa8>Nxa|nZ3@dL5E)vo0qOmRIw{##Tn|P6Q9u|I7*%DjL`jXf;#yx=2~tyHI%Ff
+zJ3?=%Q#Qdsd)!vT(q<F?aE3Z{yFV)6+tl#2`AAC6sMEVXCQJ8u>hy89u-vk*K|U;3
+zonb+gkupP_k<yb)YsMHfFLf{|*ezFQUJ52^_f)m+hP_Q`qFS#Y59JHgh(xpqM7LLG
+zTTlBU1+S{kg>GbCG1nmXJXxLhUrDmm2v#Gt_0SUjs0%Ze!c+WJqdI#K?Ru+5LAo=|
+z*``Kse1<o=Zjk>lU0qZQ_nsN8E-jDF`Fh>em=GT_U#O=p`-raWd+F-3FSs>*m#fR?
+z6PdeoP^~LU73Pa))D;<RiJ3jjAXn~^LB9V$b>)hYxVKvkTD;$?E0da`_IFiX`J)mp
+zb$2!H;}fK5uhdmNzmR3i19cU?zty}UPPHX}L1fuQT`k2CS8k!Y=CuejldG<6hdTAt
+z3+lRY=qDLB#Hy|f#tSZ9P}jS_vn*JyZmfz>)oGHtaeO7>CW-2nYL3Jl@>jQxLciFO
+zP<88~d&G#J)U7|!-Z|@{x~<npVz(_+<9FXD%b;QE_M8R8mfETA8ioT;IjZiqAn?19
+zs_vPZioh{Z-PgK+EVY^x@vk*VO^9rOp27EOB9`ECH>#-zx7|eb^pScn2WQf>mwITP
+zMyA<Y)WgF=Nf`1~J@VipvE#$lqhA;@l^&!fRYY=dbbxxi4a`Ty7V7Z?Yz0F74e}pd
+z)Z|uZ@iz}vPyB<hr)p_6CHfBuJ-@4Gq!I}1hEG+`%<(0@&m8sKjzHo+2dHWFc$DfU
+zs%aT5pch+;_&(Vn_oAYjJ}?(Cc9ualK{d#SwN=w6{ek-WUQJ&xjkuS?)$>rwO#v^}
+z3v2>9@wTcL7GjshUR%`+72(de3Tj5>94y<g8?R=hBEoaqs9tPRn%JSbnrUlIX15?U
+zb8`a1lC5gyz8sv<QiG=X2h}T$J&39OO1)O28JR2{)oY>g#Qxc%-Yz$s%;OW)yBl#U
+z?_N-|KOo?Hc1V5j0VlL;wfb-{T-^yleK;J^%d&7ar_p;X+xl=)eN-I<DP^7d2&uVA
+zI-@>zfl}6Uiu(8rEZf2k>f_wc#KWLGX^CiHS1a|&a!<7KmsX#azls`Ref8-}#7R|_
+z7!=AaQF9At#rMx@?$@1U%Db!Pt&TuH+7tD;6MXg;QGMRN9x-1gsrlWk0mSsZq~`Zp
+zNlg3Y>dR(piErVozAlcyZQUXDb!<t9i;VjERRWnSTu|TN#=UJ`O#Sc#Vb6mr>c@`A
+z9JjVsKPAp0f#0rv?pT^kk8;&7E)&SIwY~baGzNFO7V6i4-AH){s^6Hi#4f{fH;^Ac
+zO#NoH!=;`zR{d7U?Ntr3&MVaKXwNYBic!B$O+#R}TK$m*Z=Nto{qcM$F{T#k&$95|
+z;!O2toji>GM(Xc>5Z3%jQ2!RnyUxATzgfOS<(C^|{aR^E2-2BD3p7gzZt;kCjm@o0
+z+~HH2mD`+$B1NdiJw;G|rlrQW#Vx3QRO1WP(T?^8`OzyhC1o#)4^EnLy9}0hAJ<ew
+zhNdOa2AOJ~HGS4m;$IEZ^i-JG5jV8rm)wYNa$GCX89hW@^0g9Z*D!bbWRM^8MJrhz
+zSK69t)f}7H6LayLL9WVtt<;_E#C@)(l}?T%F4(4(zA%d{D;H~J`oO!{1!!e+aOpb-
+zXysZ4V)`A>%I!!c{yD3;TtS@0J8G5C)Wja=w91okE1JF6s?<VkePV=GB^$}ZUMk|r
+zMOyV}ysn9LiSdB%|5vMt)lzJ^4qB~rn8+RFHP;fkM337TG_m)JsD98~Q;}aSAE(uI
+zhm4zCpt*ZjhT=X_a}PRArcUXa`vT<FtuGkl;@4}9y;6xAb4zQy3DdT-v)1@RAh9pT
+zYE5QhOj!%wY0c)P;|*(Q&947LriMMW<{z#SdoWIG*`yNjU21482SMiW4c0tTkuNR%
+zskJKnd8h7L>+ui+xY<Q)s%xzygUFmdUTdqJLzB}ntz+R=r><(Ec?BX5bDp7jJ1_|T
+z4{6?2CX;F5RjqT@Ml9Q|&S`$(Ib^AKLG$~x5}{l}t@qxh#J;br^=Y>a&PCDsd2S)5
+zQ)3W~shu{1+lcWJ!FX_z);|_SixZjJfW>~qoSvr*9Mp%Hr?0>;R7Xc?gF0eOk<WN-
+zuoytx!<j|IW>bS3VA~d<eSJKDAMa3B8#)Yb@%1Qec-#}>rX*<r5%xs2Dr*6U=MvjB
+zS_^oyo7i`Kw7|lo-=&Ebc>OamM}KQ0<9@*FnY7W~eaMoNt&Ix^B5q@tHtwwx37ylm
+z@e6tpO?|Be?}q7hh|ngYm?@O?)It_pVWIx5qlMN+(7m9VLH0mLgIw+M2KjrNv?);&
+zFcy-vDO<7aTJt*w*{_wfFckugQ?eE|EQPqxqgvQ*PvV}x)}{_dcGA0nHuWg%2s>H}
+zFXvB|h%Z{WZ#r6gHfiCIi<!vU+H~s<bh6Cfq|H1QPUM66*l#qMstwSr4}-}v(^H!R
+z1>D?tTM<3R8MJh5Y>?$@X>*p$gLh*LvgJ5!&L!CVN1e2}`JOnT>Ds(044M58Y4b7>
+z;5?VL$ZnYCtKMmm-C;j$eKl(&>O4%$Ic>f#Y<!0c+WgmbiFNO%EeQ8PCmpLTh%F%V
+zi<a7g%x%Qy$7l=DVas%M(4vN6Iu4K5qC&igy|!43{(>0qN2Ip2`%<F1bF`Q}1w^N-
+z8)UnW)s_v!0cb<C<&%-CJA`N}hVjHTdtlXKYrP^aa<>+{>oM`oEZ`F`7<>vo1apaR
+z-U)=0YJNmpS;mhnL+=~p>V#==;RxYMrD!$_BBI(6+Uhp==AUyNG(%@uu}oXD>>%;f
+zMO$+h8`yPkq^)g;pmx*+ZS7=#G7Yt^*VYGPzxaJCwe=@*h#8%!ZSX-PH2$NuA=HED
+zpEzy9ecX~y6SYlG+oPGWp0?R}IPrV7YMU1zA1j%!Z52xpcRoeid#eGN{EKP(Y|veL
+zywdhh_9bRme=XruWuo-G+JTiNF?}~{2iC&fdydx*<ob}sT1wIqJ1{7_9?}v!RYI}y
+zkCr$9U6HFlXo(>vVkdRi4h}%Lo!?wL_zyy_siE58-=1Xh-mE3{Zik+OPX>kJWwoS4
+zT+(-MwWQxah<C8p{+XOYruy@><nSP}Ed8vV4BbfdyS;XDH)c)pVeJ&_gl~!uU80>z
+zhtSe)qIRa+Z8A9~XlJvqzw6><26_3ucCK$fC`WI!w8G+rAFrkNfL6A4r*{4!Ol~5t
+zWjsnFo=MR%zWpKd><?O|=P_iY$y(+noN3RATIRNX#CCMkE+Nhk>ZfRz&6Uag{)=|G
+z7{0cFyNU<<@RfkAs%V!l)hAPSvUY7c0t|DscC%YU;yfQ|Hv?0M53Zx#vO#HT+EcsT
+z7w$H!gmz~h0*~5lwYyb{V-PxNcaw1D!!Bw$S7s5PURuk^!Dyd0RC^Sbj3UKY?a54B
+zv0mBQlgu<?9yQc*S6iKk_x-Lt8;MJGe2<n_95#8+6YYf<30obky{ue7Z1LLK%b`$$
+zJvVBv4?s)1m7u*@5kUN#Hrks9HHqKsqP-0WA+Glf?d=!Lnmb3d0(?=HWq3EOpne}R
+zxg=@@4MK=+w$<JRA?lrZRQnjD;Yv-^K3TU|h{twsU&8()CiSuQC29rsk-w~cIg9Bt
+zH&y$tj3g%anD%`mx*#8Q(S9PeV&ZFPKeyoLNd?-k?${TmY&Y$9S}3?dXBwbiY;lOr
+z`k;>FwqIwHVCibV)p;*?%Tm8|!Ko`T-JEsdcLs6QkLp&j0sQunb$TI%#kX~_O(d}=
+zy>ux8)2Y`)U3NmrJ}O<8Q5$4ElXR_3CZgFVx*k&>!p<n&ZkH38^oe?jGZ@W{7wIK;
+zUd0Eu)=U2Sf|_EY?pPAh^NsVmV|7?U$*MaZfKOS!Rd+mjl`MXn@Pj<~_tH=GGOJ>V
+zy<?|W?3)XV=V*{+I~B3o@**~lFJil9MclXAAm8tVK_U2tUfCT^$=gk@ya7D|uN1w?
+zF0_NywbQHbNBnP&*J~ziBmTXEUfU^%sDyQ~UVDxQadDgVIt*Ue%1^J;#GTALuIR2E
+zDj{2ask_GAL=Vtuy{?RU&#~ruz4{0o_C3_yZl;jslB&DCz?g9i*WH~FwC=p4yElfu
+zvC5{qqo0g*8l<})MDV)il3w3_JFyk!>Wvzq9n^M2Z(61inXKuP^rn?w5~DuSn`S`}
+z`8!Z=ZmLA)uS<20|1e*>Cg^SIHz2m&EQ8$9;(8ljc*)+a^|qsaLSGHm+g1LI&Rbb;
+z-*F=%pNo2j=T{M~pVvFu!yr9z)H_yMj3$L#y<@`!vYd|7y+;iu*6qCRz4j{d{|Y7b
+z&Z(HE-n;cKTmYG#*U`JqL$H{fr28~Px5I_kdN(Vi==527_ZS$cX*Kokdk{4bn5_3W
+zSU_f{6?)I^SBXC`T=#RqZYj2Z^<GQ^VzlylFGmd46+J+NUi-6)nDJcim56(98LRi5
+zgl!uvTra)fvWrChM7>{O6XWk1djDb=d>^angT5nkdG$&keglK2`#F91{eQ{Q<g^}e
+zxg9YRUh08Tf7FW~>w)zVLk7>&1BVU8a;$H9;5wd|N%8tfh=#l}Tp#J-LyViNKH7u>
+z?(e3LhGs8Jyrz%tY=tv%?xl~JPz6i%hUjC?coIAIzCLd6bz*y+*2ld@7xnZt`uM*o
+zM4LD3L8fNJuRW&+#WW=<yV@XIY-16<@{5?dUY{T!t~i^kPuKuUDL>UGyvG<xxS~(^
+zoJ*DxN&3Xu<;ct?>l3XRm{t|-^pKcL;``pvCy&5AN*$w5-g_6xr>0MN3<;%adwpvC
+zjp+C2rB5A--0r8pK6Q8@PwL@qK9OnpB0YQzlGiiO_3*@z=%5SMr<d~}cEehO+^PV5
+zdc`<mE;#Aay<jIAUel+ihN1#LShpGv9vwD*z^#nZXU2yT<Im_buVYJyZBhEHMIK}c
+zn6F!B!wDTs&}Wy#{GGKQd_{cxQ+>9Z6H(qgefGG~MDNq|c^mwoaBSA+4}ubX`no=U
+zD8lt>RrLkl1;h<`qA$#IMc|R5FAm#CmZz_*`r;2r45oM27k@8|&+q9=TH2F2G|(Vh
+zp`O0<>1<+l%OKVO?5POO1^0pTh}qi+L>RvJ42bH(K5uXVm<28*X1_lO^=$tOJ*Fdq
+z)Un<5m_na1!&_fA2v`1qb(_8{68C2B9(`Fp235`(eK}T7ntDg;%byG(=57ytMWOfm
+zE9tR|3xA%iuS#<!OKgm8L$!ewh83|{mcCYoKv8M7zOgwB8n5ab=iv7)4*JIE?ZmIJ
+z=o?QWpn2X$-xOsd%f}}ArVS{ETBjxG+lK!k=KXj*{w<tL|G)b7?Qz6)$kF#+*+!-`
+z7lVBJ9r`{ylxf|6>HE?<k}1=sC#aY`5p(o}%CPAjuNh?febW=`!3#!g(i1;cBAU2J
+zKUgOcUUZdyXb19#mi-M1#pmcpK4aS^Q;Ey^G53a85no?FHXm*^Do;PQAHm^hZ~gcI
+zjN;qT`tc8#e&bi^|Dfl`a($V8!UWCeWGVgRbp)wXH|ZzuVi8kjPyLi+h8k8vKU>n7
+z%)#3YvSps?XWOhrZ^1qNoa7DJZKHm!r!R^KCG>NFpOOEUxvQVMicx>^jh+gLh5enU
+zr|!X*3z$ypso5SxuLkOAI@Wo`_tn#jBfOrNp{J)H<m&IGpLZ>R6snPa{z(bqKi<$U
+zJcfaqrRf)P{n3MXR=>EYJ~7fz{o=!`#4H-2XST%aIxW#N+oa+7Aw9E`^(Y$4*Xo&v
+zVIXdlE#m8V{pMgqvk?RJTYbaHEFaQuoAA2T5&GQ@{=}a>uHU`cnwaYw^m_~j?Sbj~
+zy|7Hw(3b1jj7EI-5YUyFH`@*J-K!ZC7R}c0pYtKQ-qfI_^DO<LwNyJqH1G5$^KeEl
+zHtA0X`9UPg)t^2LMSzj7KP&qbUDBC)-l$Au#W8x`R!q0u)Ai>M3TI0<{Y8BYwmZx8
+z7nczew(6q4>U0!;zgmAa2UlW7qW;<kb(*mS`kTv`_rAgUyLc?$_}X26?>QM|4o$Zj
+z51Ovh-=~fvZq_ON<NL$JAI&f*ESac(Y8QyoS8x6EC>W4ATl6ou5?r-W`j_RHb`x9b
+z|9Q73%ZI`Gx4oFxtyb#atECV{jMjftC_{W*5B<l0d03)fUjLC0iP_<(|D1+F-nN(i
+zTYwUBxwF0gyK5Yo-(J`MykZbs&K^xd%#g!bv2#0MC0rj0Hw~aL8cl&TnZ_NSdjBeK
+z+q{@7d3eNA*`gOG9~w%NXaWV`U)bT5&u4O`a)&FvJyxQ$Gj*pxQ(Fq6aB`+;c->gM
+zGLS-&>`bQO3S471{8a#cQ~2iN@VY>9wwYAEv~5Xq6K{Ll#3UvSS4}mYZ5!&C9E;&i
+z!tl=*Z`+Q%s6*0`I;P~aVgqVJp*Xe)w(xhR@_Gn9WhjLd9t{mO@kxi@nNlLfqL+-t
+ziw=CZlue2YHP^Ibs#6==#6g^6(u4Wte?;4AKeo2*%rbL;?fy`%n5|SVwz%!m2Ubn$
+zwcOlCv~?TIO128s*|N5nb-b8#f34Zl(bU;?=Dwx0?b{Rc%m00x^z*4X&E3?&<`!+L
+zV0&cGR9jWuBF0MpXh{_um~@k=wk^+*scj3o!;7oB3R+UlQcU~kS~YQ26O2QjhO-%i
+z^PE7zG#rm`QK%Y);w}W^LXDwnNgKB^F^Z|4&Gi6NFKOHX#;LY#UJ_d}Y2yQ?o>chI
+zJ}Ebkap{IPExbF0e-`q;_rMv?#^L!`e26oye-PEh|3}b>q~;ARn@pxswuB~@Qnr{R
+zR<uctEi>^c_(54)J$sAA&d<0_h2tQQrsDshwnL3AOKd*8g|j_M;Yw@&?_1iYHnGh9
+zzur+ws@c@SFg9l|i*r)f78cjyCMVm(S8NH}10PF7(zR|D)nwCpSOz6!<J((Gn?h|j
+z##%O*LX#$pvn<n1p{r(C4&mA185VvHW1-PWC;nKDsHIEMcw=aVkSjiak};qHablyB
+z-Ye{bN~T%1M3r~6)hlNyr&l*dPza8HEM8s1W*5Mhwb{F|F1A)}8PV1i-+Q5V!k8b9
+zK^cfEj(4<~rm^-c-i`v3&bqO8MbVY~a5aPRtF!fm5=m#8vjO#Ni2;^!Nj=B0%S2Pj
+z!k?G44T|B!By9@2w4Ny_X~Pb-hb4Aib}4=+4l;lOZ4<_EW$g-QS6dTneBJ~c^U$OU
+zd)b5*OgZwixz%DFnF%!B_CB8-fy-!|MYL{_l9s(-9~7@r86##=;c*(bbOP>&GgZf^
+z3BWlPPRPlHXP9*7C+juB)WqgIj4RI+er`;4bEzbsVcbB+8kMPwF*GLQ`Z?pDF^i}U
+zXq>Jwfo2pwwp|M6mfQV*Kg4@2n8tb85;mC2Bw@4Ld^@!l##!N;6;9LOq#uj9XC_$T
+zqDf}^v6O3O+kM|sFKI*!S5vT!$z!V9IzM2_+h(ligrt9M+yG1A58EZ-dHX81xNM8N
+z?aNutrRa}3o#RHdF}d0fFnoDiEekK(-aIwy3tljM(hEkI^fGDtTVaF6<Zm<WV$0ix
+zd=xZW-B*HO8~V;%(&qU}a88>4QP{%hWeQCijls<wUU*M!e<$$vwzty-KFR+-p@*Z~
+tiMsxu;bcow#rs8{btRk=ZAUb5hi#xPx|%B5-r0+lOcj&%>f#rN{{c$N>v8}9
+
+
+From b5ecac3b9741df1853eb15d9bc71ff12586d9ea0 Mon Sep 17 00:00:00 2001
+From: Peter Bennett <pbennett(a)mythtv.org>
+Date: Tue, 5 Mar 2024 17:50:09 -0500
+Subject: [PATCH 14/21] web-app setup: Fix jobqueue times showing wrong values
+
+Fixes #880
+
+(cherry picked from commit bd97b320bf997f0cda9cbd91fe7364af92c0cc7c)
+---
+ .../jobqueue-backend/jobqueue-backend.component.ts | 10 ++++++++--
+ 1 file changed, 8 insertions(+), 2 deletions(-)
+
+diff --git
a/mythtv/html/backend/src/app/config/settings/general/jobqueue-backend/jobqueue-backend.component.ts
b/mythtv/html/backend/src/app/config/settings/general/jobqueue-backend/jobqueue-backend.component.ts
+index 2c110214175..3043eb8f1e9 100644
+---
a/mythtv/html/backend/src/app/config/settings/general/jobqueue-backend/jobqueue-backend.component.ts
++++
b/mythtv/html/backend/src/app/config/settings/general/jobqueue-backend/jobqueue-backend.component.ts
+@@ -113,7 +113,10 @@ export class JobqueueBackendComponent implements OnInit,
AfterViewInit {
+ });
+ this.JobQueueWindowStartHT$
+ .subscribe({
+- next: data => this.setupService.parseTime(this.JobQueueWindowStart,
data.String),
++ next: data => {
++ this.setupService.parseTime(this.JobQueueWindowStart, data.String);
++ this.JobQueueWindowStartHT.updateInputfield();
++ },
+ error: () => this.errorCount++
+ });
+ this.JobQueueWindowEndHT$ = this.mythService.GetSetting({
+@@ -121,7 +124,10 @@ export class JobqueueBackendComponent implements OnInit,
AfterViewInit {
+ });
+ this.JobQueueWindowEndHT$
+ .subscribe({
+- next: data => this.setupService.parseTime(this.JobQueueWindowEnd,
data.String),
++ next: data => {
++ this.setupService.parseTime(this.JobQueueWindowEnd, data.String);
++ this.JobQueueWindowEndHT.updateInputfield();
++ },
+ error: () => this.errorCount++
+ });
+ this.mythService.GetSetting({ HostName: this.hostName, Key: "JobQueueCPU",
Default: "0" })
+
+From 9da0ddcc433fe5481a64d737bf95286d41ffd47a Mon Sep 17 00:00:00 2001
+From: Peter Bennett <pbennett(a)mythtv.org>
+Date: Tue, 5 Mar 2024 17:52:41 -0500
+Subject: [PATCH 15/21] web-app rebuild
+
+(cherry picked from commit fe554d2f1f1105b100b1b934a057ae24d8540792)
+---
+ mythtv/html/apps/backend/main.js | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/mythtv/html/apps/backend/main.js b/mythtv/html/apps/backend/main.js
+index a869aaa1c9e..b2b13efb802 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],{452:()=>{function
Is(t){return"function"==typeof t}let Qo=!1;const di={Promise:void 0,set
useDeprecatedSynchronousErrorHandling(t){if(t){const i=new
Error;console.warn("DEPRECATED! RxJS was set to use deprecated synchronous error
handling behavior by code at: \n"+i.stack)}else Qo&&console.log("RxJS:
Back to a better error behavior. Thank you. <3");Qo=t},get
useDeprecatedSynchronousErrorHandling(){return Qo}};function
Es(t){setTimeout(()=>{throw t},0)}const
Fl={closed:!0,next(t){},error(t){if(di.useDeprecatedSynchronousErrorHandling)throw
t;Es(t)},complete(){}},Nr=Array.isArray||(t=>t&&"number"==typeof
t.length);function Ld(t){return null!==t&&"object"==typeof t}const
Nl=(()=>{function t(i){return Error.call(this),this.message=i?`${i.length} errors
occurred during unsubscription:\n${i.map((e,n)=>`${n+1})
${e.toString()}`).join("\n
")}`:"",this.name="UnsubscriptionError",this.errors=i,this}return
t.pro
totype=Object.create(Error.prototype),t})();class
Et{constructor(i){this.closed=!1,this._parentOrParents=null,this._subscriptions=null,i&&(this._ctorUnsubscribe=!0,this._unsubscribe=i)}unsubscribe(){let
i;if(this.closed)return;let{_parentOrParents:e,_ctorUnsubscribe:n,_unsubscribe:s,_subscriptions:r}=this;if(this.closed=!0,this._parentOrParents=null,this._subscriptions=null,e
instanceof Et)e.remove(this);else if(null!==e)for(let
o=0;o<e.length;++o)e[o].remove(this);if(Is(s)){n&&(this._unsubscribe=void
0);try{s.call(this)}catch(o){i=o instanceof Nl?Dg(o.errors):[o]}}if(Nr(r)){let
o=-1,u=r.length;for(;++o<u;){const
h=r[o];if(Ld(h))try{h.unsubscribe()}catch(b){i=i||[],b instanceof
Nl?i=i.concat(Dg(b.errors)):i.push(b)}}}if(i)throw new Nl(i)}add(i){let e=i;if(!i)return
Et.EMPTY;switch(typeof i){case"function":e=new
Et(i);case"object":if(e===this||e.closed||"function"!=typeof
e.unsubscribe)return e;if(this.closed)return e.unsubscribe(),e;if(!(e instanceof
Et)){const r=e;e=new Et,e._subsc
riptions=[r]}break;default:throw new Error("unrecognized teardown "+i+"
added to
Subscription.")}let{_parentOrParents:n}=e;if(null===n)e._parentOrParents=this;else
if(n instanceof Et){if(n===this)return
e;e._parentOrParents=[n,this]}else{if(-1!==n.indexOf(this))return e;n.push(this)}const
s=this._subscriptions;return null===s?this._subscriptions=[e]:s.push(e),e}remove(i){const
e=this._subscriptions;if(e){const n=e.indexOf(i);-1!==n&&e.splice(n,1)}}}var
t;function Dg(t){return t.reduce((i,e)=>i.concat(e instanceof
Nl?e.errors:e),[])}Et.EMPTY=((t=new Et).closed=!0,t);const Vl="function"==typeof
Symbol?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random();class yt
extends
Et{constructor(i,e,n){switch(super(),this.syncErrorValue=null,this.syncErrorThrown=!1,this.syncErrorThrowable=!1,this.isStopped=!1,arguments.length){case
0:this.destination=Fl;break;case
1:if(!i){this.destination=Fl;break}if("object"==typeof i){i instanceof
yt?(this.syncErrorThrowable=i.syncErrorThrowable,this.destin
ation=i,i.add(this)):(this.syncErrorThrowable=!0,this.destination=new
Mg(this,i));break}default:this.syncErrorThrowable=!0,this.destination=new
Mg(this,i,e,n)}}[Vl](){return this}static create(i,e,n){const s=new yt(i,e,n);return
s.syncErrorThrowable=!1,s}next(i){this.isStopped||this._next(i)}error(i){this.isStopped||(this.isStopped=!0,this._error(i))}complete(){this.isStopped||(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe())}_next(i){this.destination.next(i)}_error(i){this.destination.error(i),this.unsubscribe()}_complete(){this.destination.complete(),this.unsubscribe()}_unsubscribeAndRecycle(){const{_parentOrParents:i}=this;return
this._parentOrParents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parentOrParents=i,this}}class
Mg extends yt{constructor(i,e,n,s){super(),this._parentSubscriber=i;let
r,o=this;Is(e)?r=e:e&&(r=e.next,n=e.error,s=e.complete,e!==Fl&&(o=Object.create(e),Is(o.unsubscribe)&&this.add(o.un
subscribe.bind(o)),o.unsubscribe=this.unsubscribe.bind(this))),this._context=o,this._next=r,this._error=n,this._complete=s}next(i){if(!this.isStopped&&this._next){const{_parentSubscriber:e}=this;di.useDeprecatedSynchronousErrorHandling&&e.syncErrorThrowable?this.__tryOrSetError(e,this._next,i)&&this.unsubscribe():this.__tryOrUnsub(this._next,i)}}error(i){if(!this.isStopped){const{_parentSubscriber:e}=this,{useDeprecatedSynchronousErrorHandling:n}=di;if(this._error)n&&e.syncErrorThrowable?(this.__tryOrSetError(e,this._error,i),this.unsubscribe()):(this.__tryOrUnsub(this._error,i),this.unsubscribe());else
if(e.syncErrorThrowable)n?(e.syncErrorValue=i,e.syncErrorThrown=!0):Es(i),this.unsubscribe();else{if(this.unsubscribe(),n)throw
i;Es(i)}}}complete(){if(!this.isStopped){const{_parentSubscriber:i}=this;if(this._complete){const
e=()=>this._complete.call(this._context);di.useDeprecatedSynchronousErrorHandling&&i.syncErrorThrowable?(this.__tryOrSetError(i,e),this.unsubscribe()):(this.__t
ryOrUnsub(e),this.unsubscribe())}else
this.unsubscribe()}}__tryOrUnsub(i,e){try{i.call(this._context,e)}catch(n){if(this.unsubscribe(),di.useDeprecatedSynchronousErrorHandling)throw
n;Es(n)}}__tryOrSetError(i,e,n){if(!di.useDeprecatedSynchronousErrorHandling)throw new
Error("bad call");try{e.call(this._context,n)}catch(s){return
di.useDeprecatedSynchronousErrorHandling?(i.syncErrorValue=s,i.syncErrorThrown=!0,!0):(Es(s),!0)}return!1}_unsubscribe(){const{_parentSubscriber:i}=this;this._context=null,this._parentSubscriber=null,i.unsubscribe()}}const
Jo="function"==typeof
Symbol&&Symbol.observable||"@@observable";function Bl(t){return t}let
Je=(()=>{class
t{constructor(e){this._isScalar=!1,e&&(this._subscribe=e)}lift(e){const n=new
t;return n.source=this,n.operator=e,n}subscribe(e,n,s){const{operator:r}=this,o=function
FS(t,i,e){if(t){if(t instanceof yt)return t;if(t[Vl])return t[Vl]()}return t||i||e?new
yt(t,i,e):new yt(Fl)}(e,n,s);if(o.add(r?r.call(o,this.source):this.source||di.useD
eprecatedSynchronousErrorHandling&&!o.syncErrorThrowable?this._subscribe(o):this._trySubscribe(o)),di.useDeprecatedSynchronousErrorHandling&&o.syncErrorThrowable&&(o.syncErrorThrowable=!1,o.syncErrorThrown))throw
o.syncErrorValue;return o}_trySubscribe(e){try{return
this._subscribe(e)}catch(n){di.useDeprecatedSynchronousErrorHandling&&(e.syncErrorThrown=!0,e.syncErrorValue=n),function
PS(t){for(;t;){const{closed:i,destination:e,isStopped:n}=t;if(i||n)return!1;t=e&&e
instanceof yt?e:null}return!0}(e)?e.error(n):console.warn(n)}}forEach(e,n){return
new(n=Ig(n))((s,r)=>{let
o;o=this.subscribe(u=>{try{e(u)}catch(h){r(h),o&&o.unsubscribe()}},r,s)})}_subscribe(e){const{source:n}=this;return
n&&n.subscribe(e)}[Jo](){return this}pipe(...e){return 0===e.length?this:function
kg(t){return 0===t.length?Bl:1===t.length?t[0]:function(e){return
t.reduce((n,s)=>s(n),e)}}(e)(this)}toPromise(e){return new(e=Ig(e))((n,s)=>{let
r;this.subscribe(o=>r=o,o=>s(o),()=>n(r))})}}return t.create=i=>new t(i),t}
)();function Ig(t){if(t||(t=di.Promise||Promise),!t)throw new Error("no Promise impl
found");return t}const nr=(()=>{function t(){return
Error.call(this),this.message="object
unsubscribed",this.name="ObjectUnsubscribedError",this}return
t.prototype=Object.create(Error.prototype),t})();class Eg extends
Et{constructor(i,e){super(),this.subject=i,this.subscriber=e,this.closed=!1}unsubscribe(){if(this.closed)return;this.closed=!0;const
i=this.subject,e=i.observers;if(this.subject=null,!e||0===e.length||i.isStopped||i.closed)return;const
n=e.indexOf(this.subscriber);-1!==n&&e.splice(n,1)}}class Rg extends
yt{constructor(i){super(i),this.destination=i}}let ct=(()=>{class t extends
Je{constructor(){super(),this.observers=[],this.closed=!1,this.isStopped=!1,this.hasError=!1,this.thrownError=null}[Vl](){return
new Rg(this)}lift(e){const n=new Lg(this,this);return
n.operator=e,n}next(e){if(this.closed)throw new
nr;if(!this.isStopped){const{observers:n}=this,s=n.length,r=n.slice();for(let o=0;
o<s;o++)r[o].next(e)}}error(e){if(this.closed)throw new
nr;this.hasError=!0,this.thrownError=e,this.isStopped=!0;const{observers:n}=this,s=n.length,r=n.slice();for(let
o=0;o<s;o++)r[o].error(e);this.observers.length=0}complete(){if(this.closed)throw new
nr;this.isStopped=!0;const{observers:e}=this,n=e.length,s=e.slice();for(let
r=0;r<n;r++)s[r].complete();this.observers.length=0}unsubscribe(){this.isStopped=!0,this.closed=!0,this.observers=null}_trySubscribe(e){if(this.closed)throw
new nr;return super._trySubscribe(e)}_subscribe(e){if(this.closed)throw new nr;return
this.hasError?(e.error(this.thrownError),Et.EMPTY):this.isStopped?(e.complete(),Et.EMPTY):(this.observers.push(e),new
Eg(this,e))}asObservable(){const e=new Je;return e.source=this,e}}return
t.create=(i,e)=>new Lg(i,e),t})();class Lg extends
ct{constructor(i,e){super(),this.destination=i,this.source=e}next(i){const{destination:e}=this;e&&e.next&&e.next(i)}error(i){const{destination:e}=this;e&&e.error&&this.destination.er
ror(i)}complete(){const{destination:i}=this;i&&i.complete&&this.destination.complete()}_subscribe(i){const{source:e}=this;return
e?this.source.subscribe(i):Et.EMPTY}}function Vr(t){return
t&&"function"==typeof t.schedule}function et(t,i){return
function(n){if("function"!=typeof t)throw new TypeError("argument is not a
function. Are you looking for `mapTo()`?");return n.lift(new NS(t,i))}}class
NS{constructor(i,e){this.project=i,this.thisArg=e}call(i,e){return e.subscribe(new
VS(i,this.project,this.thisArg))}}class VS extends
yt{constructor(i,e,n){super(i),this.project=e,this.count=0,this.thisArg=n||this}_next(i){let
e;try{e=this.project.call(this.thisArg,i,this.count++)}catch(n){return void
this.destination.error(n)}this.destination.next(e)}}const Og=t=>i=>{for(let
e=0,n=t.length;e<n&&!i.closed;e++)i.next(t[e]);i.complete()},Hl=function
HS(){return"function"==typeof
Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}(),Ag=t=>t&&"number"==typeof
t.length&&"function"!=typeof t;funct
ion Pg(t){return!!t&&"function"!=typeof
t.subscribe&&"function"==typeof t.then}const
Od=t=>{if(t&&"function"==typeof t[Jo])return(t=>i=>{const
e=t[Jo]();if("function"!=typeof e.subscribe)throw new TypeError("Provided
object does not correctly implement Symbol.observable");return
e.subscribe(i)})(t);if(Ag(t))return
Og(t);if(Pg(t))return(t=>i=>(t.then(e=>{i.closed||(i.next(e),i.complete())},e=>i.error(e)).then(null,Es),i))(t);if(t&&"function"==typeof
t[Hl])return(t=>i=>{const e=t[Hl]();for(;;){let n;try{n=e.next()}catch(s){return
i.error(s),i}if(n.done){i.complete();break}if(i.next(n.value),i.closed)break}return"function"==typeof
e.return&&i.add(()=>{e.return&&e.return()}),i})(t);{const e=`You
provided ${Ld(t)?"an invalid object":`'${t}'`} where a stream was
expected. You can provide an Observable, Promise, Array, or Iterable.`;throw new
TypeError(e)}};function Ad(t,i){return new Je(e=>{const n=new Et;let s=0;return
n.add(i.schedule(function(){s!==t.length?(e.next(t[s++]),e.closed||n.
add(this.schedule())):e.complete()})),n})}function Mn(t,i){return i?function
KS(t,i){if(null!=t){if(function $S(t){return t&&"function"==typeof
t[Jo]}(t))return function US(t,i){return new Je(e=>{const n=new Et;return
n.add(i.schedule(()=>{const
s=t[Jo]();n.add(s.subscribe({next(r){n.add(i.schedule(()=>e.next(r)))},error(r){n.add(i.schedule(()=>e.error(r)))},complete(){n.add(i.schedule(()=>e.complete()))}}))})),n})}(t,i);if(Pg(t))return
function zS(t,i){return new Je(e=>{const n=new Et;return
n.add(i.schedule(()=>t.then(s=>{n.add(i.schedule(()=>{e.next(s),n.add(i.schedule(()=>e.complete()))}))},s=>{n.add(i.schedule(()=>e.error(s)))}))),n})}(t,i);if(Ag(t))return
Ad(t,i);if(function WS(t){return t&&"function"==typeof
t[Hl]}(t)||"string"==typeof t)return function jS(t,i){if(!t)throw new
Error("Iterable cannot be null");return new Je(e=>{const n=new Et;let
s;return n.add(()=>{s&&"function"==typeof
s.return&&s.return()}),n.add(i.schedule(()=>{s=t[Hl](),n.add(i.schedule(function(){if(e.cl
osed)return;let r,o;try{const u=s.next();r=u.value,o=u.done}catch(u){return void
e.error(u)}o?e.complete():(e.next(r),this.schedule())}))})),n})}(t,i)}throw new
TypeError((null!==t&&typeof t||t)+" is not observable")}(t,i):t
instanceof Je?t:new Je(Od(t))}class Yo extends
yt{constructor(i){super(),this.parent=i}_next(i){this.parent.notifyNext(i)}_error(i){this.parent.notifyError(i),this.unsubscribe()}_complete(){this.parent.notifyComplete(),this.unsubscribe()}}class
Zo extends
yt{notifyNext(i){this.destination.next(i)}notifyError(i){this.destination.error(i)}notifyComplete(){this.destination.complete()}}function
Xo(t,i){if(i.closed)return;if(t instanceof Je)return t.subscribe(i);let
e;try{e=Od(t)(i)}catch(n){i.error(n)}return e}function
yn(t,i,e=Number.POSITIVE_INFINITY){return"function"==typeof
i?n=>n.pipe(yn((s,r)=>Mn(t(s,r)).pipe(et((o,u)=>i(s,o,r,u))),e)):("number"==typeof
i&&(e=i),n=>n.lift(new QS(t,e)))}class
QS{constructor(i,e=Number.POSITIVE_INFINITY){this.project=i,this.conc
urrent=e}call(i,e){return e.subscribe(new JS(i,this.project,this.concurrent))}}class JS
extends
Zo{constructor(i,e,n=Number.POSITIVE_INFINITY){super(i),this.project=e,this.concurrent=n,this.hasCompleted=!1,this.buffer=[],this.active=0,this.index=0}_next(i){this.active<this.concurrent?this._tryNext(i):this.buffer.push(i)}_tryNext(i){let
e;const n=this.index++;try{e=this.project(i,n)}catch(s){return void
this.destination.error(s)}this.active++,this._innerSub(e)}_innerSub(i){const e=new
Yo(this),n=this.destination;n.add(e);const
s=Xo(i,e);s!==e&&n.add(s)}_complete(){this.hasCompleted=!0,0===this.active&&0===this.buffer.length&&this.destination.complete(),this.unsubscribe()}notifyNext(i){this.destination.next(i)}notifyComplete(){const
i=this.buffer;this.active--,i.length>0?this._next(i.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()}}function
ea(t=Number.POSITIVE_INFINITY){return yn(Bl,t)}function Pd(t,i){return i?Ad(t,i):new
Je(Og(t))}function Fd(){return funct
ion(i){return i.lift(new ZS(i))}}class
ZS{constructor(i){this.connectable=i}call(i,e){const{connectable:n}=this;n._refCount++;const
s=new XS(i,n),r=e.subscribe(s);return s.closed||(s.connection=n.connect()),r}}class XS
extends
yt{constructor(i,e){super(i),this.connectable=e}_unsubscribe(){const{connectable:i}=this;if(!i)return
void(this.connection=null);this.connectable=null;const e=i._refCount;if(e<=0)return
void(this.connection=null);if(i._refCount=e-1,e>1)return
void(this.connection=null);const{connection:n}=this,s=i._connection;this.connection=null,s&&(!n||s===n)&&s.unsubscribe()}}class
Fg extends
Je{constructor(i,e){super(),this.source=i,this.subjectFactory=e,this._refCount=0,this._isComplete=!1}_subscribe(i){return
this.getSubject().subscribe(i)}getSubject(){const
i=this._subject;return(!i||i.isStopped)&&(this._subject=this.subjectFactory()),this._subject}connect(){let
i=this._connection;return i||(this._isComplete=!1,i=this._connection=new
Et,i.add(this.source.subscribe(new t
x(this.getSubject(),this))),i.closed&&(this._connection=null,i=Et.EMPTY)),i}refCount(){return
Fd()(this)}}const ex=(()=>{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
tx extends
Rg{constructor(i,e){super(i),this.connectable=e}_error(i){this._unsubscribe(),super._error(i)}_complete(){this.connectable._isComplete=!0,this._unsubscribe(),super._complete()}_unsubscribe(){const
i=this.connectable;if(i){this.connectable=null;const
e=i._connection;i._refCount=0,i._subject=null,i._connection=null,e&&e.unsubscribe()}}}class
sx{constructor(i,e){this.subjectFactory=i,this.selector=e}call(i,e){const{selector:n}=this,s=this.subjectFactory(),r=n(s).subscribe(i);return
r.add(e.subscribe(s)),r}}function rx(){return new ct}
function wt(t){for(let i in t)if(t[i]===wt)return i;throw Error("Could not find
renamed property on target object.")}function Nd(t,i){for(const e in
i)i.hasOwnProperty(e)&&!t.hasOwnProperty(e)&&(t[e]=i[e])}function
ft(t){if("string"==typeof t)return
t;if(Array.isArray(t))return"["+t.map(ft).join(",
")+"]";if(null==t)return""+t;if(t.overriddenName)return`${t.overriddenName}`;if(t.name)return`${t.name}`;const
i=t.toString();if(null==i)return""+i;const
e=i.indexOf("\n");return-1===e?i:i.substring(0,e)}function Vd(t,i){return
null==t||""===t?null===i?"":i:null==i||""===i?t:t+"
"+i}const ax=wt({__forward_ref__:wt});function je(t){return
t.__forward_ref__=je,t.toString=function(){return ft(this())},t}function Ve(t){return
Ng(t)?t():t}function Ng(t){return"function"==typeof
t&&t.hasOwnProperty(ax)&&t.__forward_ref__===je}class re extends
Error{constructor(i,e){super(function Bd(t,i){return`NG0${Math.abs(t)}${i?":
"+i:""}`}(i,e)),this.code=i}}function
Ie(t){return"string"==typeof t?t:null==
t?"":String(t)}function wn(t){return"function"==typeof
t?t.name||t.toString():"object"==typeof
t&&null!=t&&"function"==typeof
t.type?t.type.name||t.type.toString():Ie(t)}function ql(t,i){const e=i?` in
${i}`:"";throw new re(-201,`No provider for ${wn(t)} found${e}`)}function
Jn(t,i){null==t&&function gt(t,i,e,n){throw new Error(`ASSERTION ERROR:
${t}`+(null==n?"":` [Expected=> ${e} ${n} ${i}
<=Actual]`))}(i,t,null,"!=")}function
X(t){return{token:t.token,providedIn:t.providedIn||null,factory:t.factory,value:void
0}}function ue(t){return{providers:t.providers||[],imports:t.imports||[]}}function
Hd(t){return Vg(t,Gl)||Vg(t,Hg)}function Vg(t,i){return
t.hasOwnProperty(i)?t[i]:null}function Bg(t){return
t&&(t.hasOwnProperty(qd)||t.hasOwnProperty(mx))?t[qd]:null}const
Gl=wt({\u0275prov:wt}),qd=wt({\u0275inj:wt}),Hg=wt({ngInjectableDef:wt}),mx=wt({ngInjectorDef:wt});var
xe=(()=>((xe=xe||{})[xe.Default=0]="Default",xe[xe.Host=1]="Host",xe[xe.Self=2]="Self",xe[xe.SkipSelf=4]="SkipSelf",xe[x
e.Optional=8]="Optional",xe))();let Gd;function Rs(t){const i=Gd;return
Gd=t,i}function qg(t,i,e){const n=Hd(t);return
n&&"root"==n.providedIn?void
0===n.value?n.value=n.factory():n.value:e&xe.Optional?null:void 0!==i?i:void
ql(ft(t),"Injector")}function Ls(t){return{toString:t}.toString()}var
Mi=(()=>((Mi=Mi||{})[Mi.OnPush=0]="OnPush",Mi[Mi.Default=1]="Default",Mi))(),ki=(()=>(function(t){t[t.Emulated=0]="Emulated",t[t.None=2]="None",t[t.ShadowDom=3]="ShadowDom"}(ki||(ki={})),ki))();const
gx="undefined"!=typeof
globalThis&&globalThis,_x="undefined"!=typeof
window&&window,bx="undefined"!=typeof
self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof
WorkerGlobalScope&&self,vt=gx||"undefined"!=typeof
global&&global||_x||bx,Br={},Tt=[],Ul=wt({\u0275cmp:wt}),Ud=wt({\u0275dir:wt}),zd=wt({\u0275pipe:wt}),Gg=wt({\u0275mod:wt}),ps=wt({\u0275fac:wt}),ta=wt({__NG_ELEMENT_ID__:wt});let
vx=0;function z(t){return Ls(()=>{const
e={},n={type:t.type,providersResolver:null,decls:t.decls,vars:t
.vars,factory: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===Mi.OnPush,directiveDefs:null,pipeDefs:null,selectors:t.selectors||Tt,viewQuery:t.viewQuery||null,features:t.features||null,data:t.data||{},encapsulation:t.encapsulation||ki.Emulated,id:"c",styles:t.styles||Tt,_:null,setInput:null,schemas:t.schemas||null,tView:null},s=t.directives,r=t.features,o=t.pipes;return
n.id+=vx++,n.inputs=$g(t.inputs,e),n.outputs=$g(t.outputs),r&&r.forEach(u=>u(n)),n.directiveDefs=s?()=>("function"==typeof
s?s():s).map(Ug):null,n.pipeDefs=o?()=>("function"==typeof
o?o():o).map(zg):null,n})}function Wi(t,i,e){const
n=t.\u0275cmp;n.directiveDefs=()=>i.map(Ug),n.pipeDefs=()=>e.map(zg)}function
Ug(t){return Tn(t)||function Os(t){return t[Ud]||n
ull}(t)}function zg(t){return function ir(t){return t[zd]||null}(t)}const jg={};function
he(t){return Ls(()=>{const
i={type:t.type,bootstrap:t.bootstrap||Tt,declarations:t.declarations||Tt,imports:t.imports||Tt,exports:t.exports||Tt,transitiveCompileScopes:null,schemas:t.schemas||null,id:t.id||null};return
null!=t.id&&(jg[t.id]=t.type),i})}function $g(t,i){if(null==t)return Br;const
e={};for(const n in t)if(t.hasOwnProperty(n)){let
s=t[n],r=s;Array.isArray(s)&&(r=s[1],s=s[0]),e[s]=n,i&&(i[s]=r)}return
e}const le=z;function
An(t){return{type:t.type,name:t.name,factory:null,pure:!1!==t.pure,onDestroy:t.type.prototype.ngOnDestroy||null}}function
Tn(t){return t[Ul]||null}function pi(t,i){const e=t[Gg]||null;if(!e&&!0===i)throw
new Error(`Type ${ft(t)} does not have '\u0275mod' property.`);return e}function
Ki(t){return Array.isArray(t)&&"object"==typeof t[1]}function
Ei(t){return Array.isArray(t)&&!0===t[1]}function Wd(t){return
0!=(8&t.flags)}function Wl(t){return 2==(2&t.flags)}functi
on Kl(t){return 1==(1&t.flags)}function Ri(t){return null!==t.template}function
Sx(t){return 0!=(512&t[2])}function ar(t,i){return
t.hasOwnProperty(ps)?t[ps]:null}class
Mx{constructor(i,e,n){this.previousValue=i,this.currentValue=e,this.firstChange=n}isFirstChange(){return
this.firstChange}}function fn(){return Kg}function Kg(t){return
t.type.prototype.ngOnChanges&&(t.setInput=Ix),kx}function kx(){const
t=Jg(this),i=null==t?void 0:t.current;if(i){const e=t.previous;if(e===Br)t.previous=i;else
for(let n in i)e[n]=i[n];t.current=null,this.ngOnChanges(i)}}function Ix(t,i,e,n){const
s=Jg(t)||function Ex(t,i){return
t[Qg]=i}(t,{previous:Br,current:null}),r=s.current||(s.current={}),o=s.previous,u=this.declaredInputs[e],h=o[u];r[u]=new
Mx(h&&h.currentValue,i,o===Br),t[n]=i}fn.ngInherit=!0;const
Qg="__ngSimpleChanges__";function Jg(t){return t[Qg]||null}let Zd;function
Xd(){return void 0!==Zd?Zd:"undefined"!=typeof document?document:void 0}function
$t(t){return!!t.listen}const Yg={createRe
nderer:(t,i)=>Xd()};function Yt(t){for(;Array.isArray(t);)t=t[0];return t}function
Ql(t,i){return Yt(i[t])}function Zn(t,i){return Yt(i[t.index])}function ep(t,i){return
t.data[i]}function zr(t,i){return t[i]}function Xn(t,i){const e=i[t];return
Ki(e)?e:e[0]}function Zg(t){return 4==(4&t[2])}function tp(t){return
128==(128&t[2])}function As(t,i){return null==i?null:t[i]}function
Xg(t){t[18]=0}function np(t,i){t[5]+=i;let
e=t,n=t[3];for(;null!==n&&(1===i&&1===e[5]||-1===i&&0===e[5]);)n[5]+=i,e=n,n=n[3]}const
Ee={lFrame:l_(null),bindingsEnabled:!0};function t_(){return Ee.bindingsEnabled}function
$(){return Ee.lFrame.lView}function tt(){return Ee.lFrame.tView}function v(t){return
Ee.lFrame.contextLView=t,t[8]}function rn(){let
t=n_();for(;null!==t&&64===t.type;)t=t.parent;return t}function n_(){return
Ee.lFrame.currentTNode}function Qi(t,i){const
e=Ee.lFrame;e.currentTNode=t,e.isParent=i}function ip(){return Ee.lFrame.isParent}function
sp(){Ee.lFrame.isParent=!1}function Fn(){const t=
Ee.lFrame;let
i=t.bindingRootIndex;return-1===i&&(i=t.bindingRootIndex=t.tView.bindingStartIndex),i}function
hs(){return Ee.lFrame.bindingIndex}function jr(){return Ee.lFrame.bindingIndex++}function
ms(t){const i=Ee.lFrame,e=i.bindingIndex;return i.bindingIndex=i.bindingIndex+t,e}function
Wx(t,i){const e=Ee.lFrame;e.bindingIndex=e.bindingRootIndex=t,rp(i)}function
rp(t){Ee.lFrame.currentDirectiveIndex=t}function r_(){return
Ee.lFrame.currentQueryIndex}function ap(t){Ee.lFrame.currentQueryIndex=t}function
Qx(t){const i=t[1];return 2===i.type?i.declTNode:1===i.type?t[6]:null}function
o_(t,i,e){if(e&xe.SkipSelf){let
s=i,r=t;for(;!(s=s.parent,null!==s||e&xe.Host||(s=Qx(r),null===s||(r=r[15],10&s.type))););if(null===s)return!1;i=s,t=r}const
n=Ee.lFrame=a_();return n.currentTNode=i,n.lView=t,!0}function Yl(t){const
i=a_(),e=t[1];Ee.lFrame=i,i.currentTNode=e.firstChild,i.lView=t,i.tView=e,i.contextLView=t,i.bindingIndex=e.bindingStartIndex,i.inI18n=!1}function
a_(){const t=Ee.lFrame,i=null
===t?null:t.child;return null===i?l_(t):i}function l_(t){const
i={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=i),i}function c_(){const t=Ee.lFrame;return
Ee.lFrame=t.parent,t.currentTNode=null,t.lView=null,t}const u_=c_;function Zl(){const
t=c_();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
Nn(){return Ee.lFrame.selectedIndex}function Ps(t){Ee.lFrame.selectedIndex=t}function
Vt(){const t=Ee.lFrame;return ep(t.tView,t.selectedIndex)}function Xl(t,i){for(let
e=i.directiveStart,n=i.directiveEnd;e<n;e++){const
r=t.data[e].type.prototype,{ngAfterContentInit:o,ngAfterContentChecked:u,ngAfterViewInit:h,ngAfte
rViewChecked:b,ngOnDestroy:y}=r;o&&(t.contentHooks||(t.contentHooks=[])).push(-e,o),u&&((t.contentHooks||(t.contentHooks=[])).push(e,u),(t.contentCheckHooks||(t.contentCheckHooks=[])).push(e,u)),h&&(t.viewHooks||(t.viewHooks=[])).push(-e,h),b&&((t.viewHooks||(t.viewHooks=[])).push(e,b),(t.viewCheckHooks||(t.viewCheckHooks=[])).push(e,b)),null!=y&&(t.destroyHooks||(t.destroyHooks=[])).push(e,y)}}function
ec(t,i,e){p_(t,i,3,e)}function tc(t,i,e,n){(3&t[2])===e&&p_(t,i,e,n)}function
lp(t,i){let e=t[2];(3&e)===i&&(e&=2047,e+=1,t[2]=e)}function
p_(t,i,e,n){const r=null!=n?n:-1,o=i.length-1;let u=0;for(let h=void
0!==n?65535&t[18]:0;h<o;h++)if("number"==typeof
i[h+1]){if(u=i[h],null!=n&&u>=n)break}else
i[h]<0&&(t[18]+=65536),(u<r||-1==r)&&(iD(t,e,i,h),t[18]=(4294901760&t[18])+h+2),h++}function
iD(t,i,e,n){const
s=e[n]<0,r=e[n+1],u=t[s?-e[n]:e[n]];if(s){if(t[2]>>11<t[18]>>16&&(3&t[2])===i){t[2]+=2048;try{r.call(u)}finally{}}}else
try{r.call(u)}finally{}}class oa{constructor(i,e,n){this.fac
tory=i,this.resolving=!1,this.canSeeViewProviders=e,this.injectImpl=n}}function
nc(t,i,e){const n=$t(t);let s=0;for(;s<e.length;){const
r=e[s];if("number"==typeof r){if(0!==r)break;s++;const
o=e[s++],u=e[s++],h=e[s++];n?t.setAttribute(i,u,h,o):i.setAttributeNS(o,u,h)}else{const
o=r,u=e[++s];up(o)?n&&t.setProperty(i,o,u):n?t.setAttribute(i,o,u):i.setAttribute(o,u),s++}}return
s}function h_(t){return 3===t||4===t||6===t}function up(t){return
64===t.charCodeAt(0)}function
ic(t,i){if(null!==i&&0!==i.length)if(null===t||0===t.length)t=i.slice();else{let
e=-1;for(let n=0;n<i.length;n++){const s=i[n];"number"==typeof
s?e=s:0===e||m_(t,e,s,null,-1===e||2===e?i[++n]:null)}}return t}function m_(t,i,e,n,s){let
r=0,o=t.length;if(-1===i)o=-1;else for(;r<t.length;){const
u=t[r++];if("number"==typeof
u){if(u===i){o=-1;break}if(u>i){o=r-1;break}}}for(;r<t.length;){const
u=t[r];if("number"==typeof u)break;if(u===e){if(null===n)return
void(null!==s&&(t[r+1]=s));if(n===t[r+1])return void(t[r+2]=s)}r++
,null!==n&&r++,null!==s&&r++}-1!==o&&(t.splice(o,0,i),r=o+1),t.splice(r++,0,e),null!==n&&t.splice(r++,0,n),null!==s&&t.splice(r++,0,s)}function
f_(t){return-1!==t}function $r(t){return 32767&t}function Wr(t,i){let e=function
lD(t){return t>>16}(t),n=i;for(;e>0;)n=n[15],e--;return n}let dp=!0;function
sc(t){const i=dp;return dp=t,i}let cD=0;function la(t,i){const e=hp(t,i);if(-1!==e)return
e;const
n=i[1];n.firstCreatePass&&(t.injectorIndex=i.length,pp(n.data,t),pp(i,null),pp(n.blueprint,null));const
s=rc(t,i),r=t.injectorIndex;if(f_(s)){const o=$r(s),u=Wr(s,i),h=u[1].data;for(let
b=0;b<8;b++)i[r+b]=u[o+b]|h[o+b]}return i[r+8]=s,r}function
pp(t,i){t.push(0,0,0,0,0,0,0,0,i)}function
hp(t,i){return-1===t.injectorIndex||t.parent&&t.parent.injectorIndex===t.injectorIndex||null===i[t.injectorIndex+8]?-1:t.injectorIndex}function
rc(t,i){if(t.parent&&-1!==t.parent.injectorIndex)return t.parent.injectorIndex;let
e=0,n=null,s=i;for(;null!==s;){const r=s[1],o=r.type;if(n=2===o?r.declTNode:1===o
?s[6]:null,null===n)return-1;if(e++,s=s[15],-1!==n.injectorIndex)return
n.injectorIndex|e<<16}return-1}function oc(t,i,e){!function uD(t,i,e){let
n;"string"==typeof
e?n=e.charCodeAt(0)||0:e.hasOwnProperty(ta)&&(n=e[ta]),null==n&&(n=e[ta]=cD++);const
s=255&n;i.data[t+(s>>5)]|=1<<s}(t,i,e)}function
b_(t,i,e){if(e&xe.Optional)return t;ql(i,"NodeInjector")}function
v_(t,i,e,n){if(e&xe.Optional&&void
0===n&&(n=null),0==(e&(xe.Self|xe.Host))){const s=t[9],r=Rs(void 0);try{return
s?s.get(i,n,e&xe.Optional):qg(i,n,e&xe.Optional)}finally{Rs(r)}}return
b_(n,i,e)}function C_(t,i,e,n=xe.Default,s){if(null!==t){const r=function
mD(t){if("string"==typeof t)return t.charCodeAt(0)||0;const
i=t.hasOwnProperty(ta)?t[ta]:void 0;return"number"==typeof
i?i>=0?255&i:pD:i}(e);if("function"==typeof r){if(!o_(i,t,n))return
n&xe.Host?b_(s,e,n):v_(i,e,n,s);try{const o=r(n);if(null!=o||n&xe.Optional)return
o;ql(e)}finally{u_()}}else if("number"==typeof r){let
o=null,u=hp(t,i),h=-1,b=n&xe.Host?i[16][6]:null;for
((-1===u||n&xe.SkipSelf)&&(h=-1===u?rc(t,i):i[u+8],-1!==h&&T_(n,!1)?(o=i[1],u=$r(h),i=Wr(h,i)):u=-1);-1!==u;){const
y=i[1];if(w_(r,u,y.data)){const w=hD(u,i,e,o,n,b);if(w!==y_)return
w}h=i[u+8],-1!==h&&T_(n,i[1].data[u+8]===b)&&w_(r,u,i)?(o=y,u=$r(h),i=Wr(h,i)):u=-1}}}return
v_(i,e,n,s)}const y_={};function pD(){return new Kr(rn(),$())}function
hD(t,i,e,n,s,r){const
o=i[1],u=o.data[t+8],y=ac(u,o,e,null==n?Wl(u)&&dp:n!=o&&0!=(3&u.type),s&xe.Host&&r===u);return
null!==y?ca(i,o,y,u):y_}function ac(t,i,e,n,s){const
r=t.providerIndexes,o=i.data,u=1048575&r,h=t.directiveStart,y=r>>20,M=s?u+y:t.directiveEnd;for(let
E=n?u:u+y;E<M;E++){const
L=o[E];if(E<h&&e===L||E>=h&&L.type===e)return E}if(s){const
E=o[h];if(E&&Ri(E)&&E.type===e)return h}return null}function
ca(t,i,e,n){let s=t[e];const r=i.data;if(function sD(t){return t instanceof oa}(s)){const
o=s;o.resolving&&function lx(t,i){const e=i?`. Dependency path: ${i.join("
> ")} > ${t}`:"";throw new re(-200,`Circular dependency in DI
detected
for ${t}${e}`)}(wn(r[e]));const u=sc(o.canSeeViewProviders);o.resolving=!0;const
h=o.injectImpl?Rs(o.injectImpl):null;o_(t,n,xe.Default);try{s=t[e]=o.factory(void
0,r,t,n),i.firstCreatePass&&e>=n.directiveStart&&function
nD(t,i,e){const{ngOnChanges:n,ngOnInit:s,ngDoCheck:r}=i.type.prototype;if(n){const
o=Kg(i);(e.preOrderHooks||(e.preOrderHooks=[])).push(t,o),(e.preOrderCheckHooks||(e.preOrderCheckHooks=[])).push(t,o)}s&&(e.preOrderHooks||(e.preOrderHooks=[])).push(0-t,s),r&&((e.preOrderHooks||(e.preOrderHooks=[])).push(t,r),(e.preOrderCheckHooks||(e.preOrderCheckHooks=[])).push(t,r))}(e,r[e],i)}finally{null!==h&&Rs(h),sc(u),o.resolving=!1,u_()}}return
s}function w_(t,i,e){return!!(e[i+(t>>5)]&1<<t)}function
T_(t,i){return!(t&xe.Self||t&xe.Host&&i)}class
Kr{constructor(i,e){this._tNode=i,this._lView=e}get(i,e,n){return
C_(this._tNode,this._lView,i,n,e)}}function on(t){return Ls(()=>{const
i=t.prototype.constructor,e=i[ps]||mp(i),n=Object.prototype;let
s=Object.getPrototypeOf(t.prot
otype).constructor;for(;s&&s!==n;){const
r=s[ps]||mp(s);if(r&&r!==e)return r;s=Object.getPrototypeOf(s)}return r=>new
r})}function mp(t){return Ng(t)?()=>{const i=mp(Ve(t));return
i&&i()}:ar(t)}function ua(t){return function
dD(t,i){if("class"===i)return t.classes;if("style"===i)return
t.styles;const e=t.attrs;if(e){const n=e.length;let s=0;for(;s<n;){const
r=e[s];if(h_(r))break;if(0===r)s+=2;else if("number"==typeof
r)for(s++;s<n&&"string"==typeof e[s];)s++;else{if(r===i)return
e[s+1];s+=2}}}return null}(rn(),t)}const Jr="__parameters__";function
Zr(t,i,e){return Ls(()=>{const n=function fp(t){return function(...e){if(t){const
n=t(...e);for(const s in n)this[s]=n[s]}}}(i);function s(...r){if(this instanceof s)return
n.apply(this,r),this;const o=new s(...r);return u.annotation=o,u;function u(h,b,y){const
w=h.hasOwnProperty(Jr)?h[Jr]:Object.defineProperty(h,Jr,{value:[]})[Jr];for(;w.length<=y;)w.push(null);return(w[y]=w[y]||[]).push(o),h}}return
e&&(s.prototype=Object.create(e.protot
ype)),s.prototype.ngMetadataName=t,s.annotationCls=s,s})}class
be{constructor(i,e){this._desc=i,this.ngMetadataName="InjectionToken",this.\u0275prov=void
0,"number"==typeof e?this.__NG_ELEMENT_ID__=e:void
0!==e&&(this.\u0275prov=X({token:this,providedIn:e.providedIn||"root",factory:e.factory}))}toString(){return`InjectionToken
${this._desc}`}}const gD=new be("AnalyzeForEntryComponents");function
fi(t,i){void 0===i&&(i=t);for(let e=0;e<t.length;e++){let
n=t[e];Array.isArray(n)?(i===t&&(i=t.slice(0,e)),fi(n,i)):i!==t&&i.push(n)}return
i}function Ji(t,i){t.forEach(e=>Array.isArray(e)?Ji(e,i):i(e))}function
x_(t,i,e){i>=t.length?t.push(e):t.splice(i,0,e)}function lc(t,i){return
i>=t.length-1?t.pop():t.splice(i,1)[0]}function ha(t,i){const e=[];for(let
n=0;n<t;n++)e.push(i);return e}function ei(t,i,e){let n=Xr(t,i);return
n>=0?t[1|n]=e:(n=~n,function vD(t,i,e,n){let s=t.length;if(s==i)t.push(e,n);else
if(1===s)t.push(n,t[0]),t[0]=e;else{for(s--,t.push(t[s-1],t[s]);s>i;)t[s]=t[s-2],s--;t[
i]=e,t[i+1]=n}}(t,n,i,e)),n}function _p(t,i){const e=Xr(t,i);if(e>=0)return
t[1|e]}function Xr(t,i){return function k_(t,i,e){let
n=0,s=t.length>>e;for(;s!==n;){const
r=n+(s-n>>1),o=t[r<<e];if(i===o)return
r<<e;o>i?s=r:n=r+1}return~(s<<e)}(t,i,1)}const
ma={},vp="__NG_DI_FLAG__",uc="ngTempTokenPath",DD=/\n/gm,E_="__source",kD=wt({provide:String,useValue:wt});let
fa;function R_(t){const i=fa;return fa=t,i}function ID(t,i=xe.Default){if(void
0===fa)throw new re(203,"");return null===fa?qg(t,void
0,i):fa.get(t,i&xe.Optional?null:void 0,i)}function K(t,i=xe.Default){return(function
fx(){return Gd}()||ID)(Ve(t),i)}const O_=K;function Cp(t){const i=[];for(let
e=0;e<t.length;e++){const n=Ve(t[e]);if(Array.isArray(n)){if(0===n.length)throw new
re(900,"");let s,r=xe.Default;for(let o=0;o<n.length;o++){const
u=n[o],h=ED(u);"number"==typeof h?-1===h?s=u.token:r|=h:s=u}i.push(K(s,r))}else
i.push(K(n))}return i}function ga(t,i){return t[vp]=i,t.prototype[vp]=i,t}function
ED(t){return t[vp]}const
dc=ga(Zr("Inject",t=>({token:t})),-1),Ns=ga(Zr("Optional"),8),_a=ga(Zr("SkipSelf"),4);var
ti=(()=>((ti=ti||{})[ti.Important=1]="Important",ti[ti.DashCase=2]="DashCase",ti))();const
H_="__ngContext__";function In(t,i){t[H_]=i}function Tp(t){const i=function
va(t){return t[H_]||null}(t);return i?Array.isArray(i)?i:i.lView:null}function
xp(t,i){return undefined(t,i)}function Ca(t){const i=t[3];return Ei(i)?i[3]:i}function
Dp(t){return W_(t[13])}function Mp(t){return W_(t[4])}function
W_(t){for(;null!==t&&!Ei(t);)t=t[4];return t}function
to(t,i,e,n,s){if(null!=n){let r,o=!1;Ei(n)?r=n:Ki(n)&&(o=!0,n=n[0]);const
u=Yt(n);0===t&&null!==e?null==s?X_(i,e,u):lr(i,e,u,s||null,!0):1===t&&null!==e?lr(i,e,u,s||null,!0):2===t?function
Ap(t,i,e){const n=hc(t,i);n&&function
aM(t,i,e,n){$t(t)?t.removeChild(i,e,n):i.removeChild(e)}(t,n,i,e)}(i,u,o):3===t&&i.destroyNode(u),null!=r&&function
uM(t,i,e,n,s){const r=e[7];r!==Yt(e)&&to(i,t,n,r,s);for(let
u=10;u<e.length;u++){const h=e[u];ya(h[1],h,t,i,n,r)}}
(i,t,r,e,s)}}function Ip(t,i,e){if($t(t))return t.createElement(i,e);{const
n=null!==e?function Ax(t){const
i=t.toLowerCase();return"svg"===i?"http://www.w3.org/2000/...
null===n?t.createElement(i):t.createElementNS(n,i)}}function Q_(t,i){const
e=t[9],n=e.indexOf(i),s=i[3];1024&i[2]&&(i[2]&=-1025,np(s,-1)),e.splice(n,1)}function
Ep(t,i){if(t.length<=10)return;const e=10+i,n=t[e];if(n){const
s=n[17];null!==s&&s!==t&&Q_(s,n),i>0&&(t[e-1][4]=n[4]);const
r=lc(t,10+i);!function
XD(t,i){ya(t,i,i[11],2,null,null),i[0]=null,i[6]=null}(n[1],n);const
o=r[19];null!==o&&o.detachView(r[1]),n[3]=null,n[4]=null,n[2]&=-129}return
n}function J_(t,i){if(!(256&i[2])){const
e=i[11];$t(e)&&e.destroyNode&&ya(t,i,e,3,null,null),function nM(t){let
i=t[13];if(!i)return Rp(t[1],t);for(;i;){let e=null;if(Ki(i))e=i[13];else{const
n=i[10];n&&(e=n)}if(!e){for(;i&&!i[4]&&i!==t;)Ki(i)&&Rp(i[1],i),i=i[3];null===i&&(i=t),Ki(i)&&Rp(i[1],i),e=i&&i[4]}i=
e}}(i)}}function Rp(t,i){if(!(256&i[2])){i[2]&=-129,i[2]|=256,function
oM(t,i){let e;if(null!=t&&null!=(e=t.destroyHooks))for(let
n=0;n<e.length;n+=2){const s=i[e[n]];if(!(s instanceof oa)){const
r=e[n+1];if(Array.isArray(r))for(let o=0;o<r.length;o+=2){const
u=s[r[o]],h=r[o+1];try{h.call(u)}finally{}}else try{r.call(s)}finally{}}}}(t,i),function
rM(t,i){const e=t.cleanup,n=i[7];let s=-1;if(null!==e)for(let
r=0;r<e.length-1;r+=2)if("string"==typeof e[r]){const
o=e[r+1],u="function"==typeof
o?o(i):Yt(i[o]),h=n[s=e[r+2]],b=e[r+3];"boolean"==typeof
b?u.removeEventListener(e[r],h,b):b>=0?n[s=b]():n[s=-b].unsubscribe(),r+=2}else{const
o=n[s=e[r+1]];e[r].call(o)}if(null!==n){for(let
r=s+1;r<n.length;r++)n[r]();i[7]=null}}(t,i),1===i[1].type&&$t(i[11])&&i[11].destroy();const
e=i[17];if(null!==e&&Ei(i[3])){e!==i[3]&&Q_(e,i);const
n=i[19];null!==n&&n.detachView(t)}}}function Y_(t,i,e){return function
Z_(t,i,e){let n=i;for(;null!==n&&40&n.type;)n=(i=n).parent;if(null===n)return
e[0];if(2&n.fl
ags){const
s=t.data[n.directiveStart].encapsulation;if(s===ki.None||s===ki.Emulated)return
null}return Zn(n,e)}(t,i.parent,e)}function
lr(t,i,e,n,s){$t(t)?t.insertBefore(i,e,n,s):i.insertBefore(e,n,s)}function
X_(t,i,e){$t(t)?t.appendChild(i,e):i.appendChild(e)}function
eb(t,i,e,n,s){null!==n?lr(t,i,e,n,s):X_(t,i,e)}function hc(t,i){return
$t(t)?t.parentNode(i):i.parentNode}function tb(t,i,e){return ib(t,i,e)}let
gc,_c,ib=function nb(t,i,e){return 40&t.type?Zn(t,e):null};function mc(t,i,e,n){const
s=Y_(t,n,i),r=i[11],u=tb(n.parent||i[6],n,i);if(null!=s)if(Array.isArray(e))for(let
h=0;h<e.length;h++)eb(r,s,e[h],u,!1);else eb(r,s,e,u,!1)}function
fc(t,i){if(null!==i){const e=i.type;if(3&e)return Zn(i,t);if(4&e)return
Op(-1,t[i.index]);if(8&e){const n=i.child;if(null!==n)return fc(t,n);{const
s=t[i.index];return Ei(s)?Op(-1,s):Yt(s)}}if(32&e)return
xp(i,t)()||Yt(t[i.index]);{const n=rb(t,i);return
null!==n?Array.isArray(n)?n[0]:fc(Ca(t[16]),n):fc(t,i.next)}}return null}function rb(t,i)
{return null!==i?t[16][6].projection[i.projection]:null}function Op(t,i){const
e=10+t+1;if(e<i.length){const n=i[e],s=n[1].firstChild;if(null!==s)return
fc(n,s)}return i[7]}function Pp(t,i,e,n,s,r,o){for(;null!=e;){const
u=n[e.index],h=e.type;if(o&&0===i&&(u&&In(Yt(u),n),e.flags|=4),64!=(64&e.flags))if(8&h)Pp(t,i,e.child,n,s,r,!1),to(i,t,s,u,r);else
if(32&h){const b=xp(e,n);let y;for(;y=b();)to(i,t,s,y,r);to(i,t,s,u,r)}else
16&h?ob(t,i,n,e,s,r):to(i,t,s,u,r);e=o?e.projectionNext:e.next}}function
ya(t,i,e,n,s,r){Pp(e,n,t.firstChild,i,s,r,!1)}function ob(t,i,e,n,s,r){const
o=e[16],h=o[6].projection[n.projection];if(Array.isArray(h))for(let
b=0;b<h.length;b++)to(i,t,s,h[b],r);else Pp(t,i,h,o[3],s,r,!0)}function
ab(t,i,e){$t(t)?t.setAttribute(i,"style",e):i.style.cssText=e}function
Fp(t,i,e){$t(t)?""===e?t.removeAttribute(i,"class"):t.setAttribute(i,"class",e):i.className=e}function
cr(t){var i;return(null===(i=function Np(){if(void
0===gc&&(gc=null,vt.trustedTypes))try{gc=vt.trustedTyp
es.createPolicy("angular",{createHTML:t=>t,createScript:t=>t,createScriptURL:t=>t})}catch(t){}return
gc}())||void 0===i?void 0:i.createHTML(t))||t}function lb(t){var
i;return(null===(i=function Vp(){if(void
0===_c&&(_c=null,vt.trustedTypes))try{_c=vt.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:t=>t,createScript:t=>t,createScriptURL:t=>t})}catch(t){}return
_c}())||void 0===i?void 0:i.createHTML(t))||t}class
db{constructor(i){this.changingThisBreaksApplicationSecurity=i}toString(){return`SafeValue
must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see
https://g.co/ng/security#xss)`}}function Vs(t){return t instanceof
db?t.changingThisBreaksApplicationSecurity:t}function wa(t,i){const e=function
CM(t){return t instanceof
db&&t.getTypeName()||null}(t);if(null!=e&&e!==i){if("ResourceURL"===e&&"URL"===i)return!0;throw
new Error(`Required a safe ${i}, got a ${e} (see
https://g.co/ng/security#xss)`)}return
e===i}class yM{constructor(i){this.inertDo
cumentHelper=i}getInertBodyElement(i){i="<body><remove></remove>"+i;try{const
e=(new window.DOMParser).parseFromString(cr(i),"text/html").body;return
null===e?this.inertDocumentHelper.getInertBodyElement(i):(e.removeChild(e.firstChild),e)}catch(e){return
null}}}class
wM{constructor(i){if(this.defaultDoc=i,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert"),null==this.inertDocument.body){const
e=this.inertDocument.createElement("html");this.inertDocument.appendChild(e);const
n=this.inertDocument.createElement("body");e.appendChild(n)}}getInertBodyElement(i){const
e=this.inertDocument.createElement("template");if("content"in e)return
e.innerHTML=cr(i),e;const n=this.inertDocument.createElement("body");return
n.innerHTML=cr(i),this.defaultDoc.documentMode&&this.stripCustomNsAttrs(n),n}stripCustomNsAttrs(i){const
e=i.attributes;for(let s=e.length-1;0<s;s--){const
o=e.item(s).name;("xmlns:ns1"===o||0===o.indexOf("ns1:"))&&i.removeAttribute(o)}let
n=
i.firstChild;for(;n;)n.nodeType===Node.ELEMENT_NODE&&this.stripCustomNsAttrs(n),n=n.nextSibling}}const
SM=/^(?:(?:https?|mailto|ftp|tel|file|sms):|[^&:/?#]*(?:[/?#]|$))/gi,xM=/^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
bc(t){return(t=String(t)).match(SM)||t.match(xM)?t:"unsafe:"+t}function
hb(t){return(t=String(t)).split(",").map(i=>bc(i.trim())).join(",
")}function Yi(t){const i={};for(const e of t.split(","))i[e]=!0;return
i}function Ta(...t){const i={};for(const e of t)for(const n in
e)e.hasOwnProperty(n)&&(i[n]=!0);return i}const
mb=Yi("area,br,col,hr,img,wbr"),fb=Yi("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),gb=Yi("rp,rt"),Bp=Ta(mb,Ta(fb,Yi("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")),Ta(gb,Yi("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")),Ta(gb,fb)),Hp=Yi("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),qp=Yi("srcset"),_b=Ta(Hp,qp,Yi("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,start,summary,tabindex,target,title,translate,type,usemap,valign,value,vspace,width"),Yi("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-grab
bed,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")),DM=Yi("script,style,template");class
MM{constructor(){this.sanitizedSomething=!1,this.buf=[]}sanitizeChildren(i){let
e=i.firstChild,n=!0;for(;e;)if(e.nodeType===Node.ELEMENT_NODE?n=this.startElement(e):e.nodeType===Node.TEXT_NODE?this.chars(e.nodeValue):this.sanitizedSomething=!0,n&&e.firstChild)e=e.firstChild;else
for(;e;){e.nodeType===Node.ELEMENT_NODE&&this.endElement(e);let
s=this.checkClobberedElement(e,e.nextSibling);if(s){e=s;break}e=this.checkClobberedElement(e,e.parentNode)}return
this.buf.join("")}startElement(i){const e=i.nodeName.toLowerCase();if(!Bp.
hasOwnProperty(e))return
this.sanitizedSomething=!0,!DM.hasOwnProperty(e);this.buf.push("<"),this.buf.push(e);const
n=i.attributes;for(let s=0;s<n.length;s++){const
r=n.item(s),o=r.name,u=o.toLowerCase();if(!_b.hasOwnProperty(u)){this.sanitizedSomething=!0;continue}let
h=r.value;Hp[u]&&(h=bc(h)),qp[u]&&(h=hb(h)),this.buf.push("
",o,'="',bb(h),'"')}return
this.buf.push(">"),!0}endElement(i){const
e=i.nodeName.toLowerCase();Bp.hasOwnProperty(e)&&!mb.hasOwnProperty(e)&&(this.buf.push("</"),this.buf.push(e),this.buf.push(">"))}chars(i){this.buf.push(bb(i))}checkClobberedElement(i,e){if(e&&(i.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_CONTAINED_BY)===Node.DOCUMENT_POSITION_CONTAINED_BY)throw
new Error(`Failed to sanitize html because the element is clobbered:
${i.outerHTML}`);return e}}const kM=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,IM=/([^\#-~
|!])/g;function bb(t){return
t.replace(/&/g,"&").replace(kM,function(i){return"&#"+(1024*(i.charCodeAt(0)-55296)+(i.charCodeAt(1)-56320)+65
536)+";"}).replace(IM,function(i){return"&#"+i.charCodeAt(0)+";"}).replace(/</g,"<").replace(/>/g,">")}let
vc;function Gp(t){return"content"in t&&function RM(t){return
t.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===t.nodeName}(t)?t.content:null}var
Zt=(()=>((Zt=Zt||{})[Zt.NONE=0]="NONE",Zt[Zt.HTML=1]="HTML",Zt[Zt.STYLE=2]="STYLE",Zt[Zt.SCRIPT=3]="SCRIPT",Zt[Zt.URL=4]="URL",Zt[Zt.RESOURCE_URL=5]="RESOURCE_URL",Zt))();function
Bt(t){const i=Sa();return
i?lb(i.sanitize(Zt.HTML,t)||""):wa(t,"HTML")?lb(Vs(t)):function
EM(t,i){let e=null;try{vc=vc||function pb(t){const i=new wM(t);return function
TM(){try{return!!(new
window.DOMParser).parseFromString(cr(""),"text/html")}catch(t){return!1}}()?new
yM(i):i}(t);let n=i?String(i):"";e=vc.getInertBodyElement(n);let
s=5,r=n;do{if(0===s)throw new Error("Failed to sanitize html because the input is
unstable");s--,n=r,r=e.innerHTML,e=vc.getInertBodyElement(n)}while(n!==r);return
cr((new MM).sanitizeChildren(Gp(e)||e))}finally{if(e){const n=Gp(
e)||e;for(;n.firstChild;)n.removeChild(n.firstChild)}}}(Xd(),Ie(t))}function ln(t){const
i=Sa();return
i?i.sanitize(Zt.URL,t)||"":wa(t,"URL")?Vs(t):bc(Ie(t))}function
Sa(){const t=$();return t&&t[12]}function zp(t){return t.ngOriginalError}function
qM(t,...i){t.error(...i)}class xa{constructor(){this._console=console}handleError(i){const
e=this._findOriginalError(i),n=function HM(t){return
t&&t.ngErrorLogger||qM}(i);n(this._console,"ERROR",i),e&&n(this._console,"ORIGINAL
ERROR",e)}_findOriginalError(i){let
e=i&&zp(i);for(;e&&zp(e);)e=zp(e);return e||null}}const
KM=(()=>("undefined"!=typeof
requestAnimationFrame&&requestAnimationFrame||setTimeout).bind(vt))();function
ni(t){return t.ownerDocument.defaultView}function Zi(t){return t instanceof
Function?t():t}function yb(t,i,e){let n=t.length;for(;;){const
s=t.indexOf(i,e);if(-1===s)return s;if(0===s||t.charCodeAt(s-1)<=32){const
r=i.length;if(s+r===n||t.charCodeAt(s+r)<=32)return s}e=s+1}}const
wb="ng-template";function YM(t,i,e){let
n=0;for(;n<t.length;){let
s=t[n++];if(e&&"class"===s){if(s=t[n],-1!==yb(s.toLowerCase(),i,0))return!0}else
if(1===s){for(;n<t.length&&"string"==typeof(s=t[n++]);)if(s.toLowerCase()===i)return!0;return!1}}return!1}function
Tb(t){return 4===t.type&&t.value!==wb}function ZM(t,i,e){return
i===(4!==t.type||e?t.value:wb)}function XM(t,i,e){let n=4;const s=t.attrs||[],r=function
nk(t){for(let i=0;i<t.length;i++)if(h_(t[i]))return i;return t.length}(s);let
o=!1;for(let u=0;u<i.length;u++){const h=i[u];if("number"!=typeof
h){if(!o)if(4&n){if(n=2|1&n,""!==h&&!ZM(t,h,e)||""===h&&1===i.length){if(Li(n))return!1;o=!0}}else{const
b=8&n?h:i[++u];if(8&n&&null!==t.attrs){if(!YM(t.attrs,b,e)){if(Li(n))return!1;o=!0}continue}const
w=ek(8&n?"class":h,s,Tb(t),e);if(-1===w){if(Li(n))return!1;o=!0;continue}if(""!==b){let
M;M=w>r?"":s[w+1].toLowerCase();const
E=8&n?M:null;if(E&&-1!==yb(E,b,0)||2&n&&b!==M){if(Li(n))return!1;o=!0}}}}else{if(!o&&!Li(n)&&!Li(h))return!1;if(o&&Li(h))continue;o=!1,n=h|1&n}}retur
n Li(n)||o}function Li(t){return 0==(1&t)}function
ek(t,i,e,n){if(null===i)return-1;let s=0;if(n||!e){let r=!1;for(;s<i.length;){const
o=i[s];if(o===t)return s;if(3===o||6===o)r=!0;else{if(1===o||2===o){let
u=i[++s];for(;"string"==typeof
u;)u=i[++s];continue}if(4===o)break;if(0===o){s+=4;continue}}s+=r?1:2}return-1}return
function ik(t,i){let e=t.indexOf(4);if(e>-1)for(e++;e<t.length;){const
n=t[e];if("number"==typeof n)return-1;if(n===i)return
e;e++}return-1}(i,t)}function Sb(t,i,e=!1){for(let
n=0;n<i.length;n++)if(XM(t,i[n],e))return!0;return!1}function sk(t,i){e:for(let
e=0;e<i.length;e++){const n=i[e];if(t.length===n.length){for(let
s=0;s<t.length;s++)if(t[s]!==n[s])continue e;return!0}}return!1}function xb(t,i){return
t?":not("+i.trim()+")":i}function rk(t){let
i=t[0],e=1,n=2,s="",r=!1;for(;e<t.length;){let
o=t[e];if("string"==typeof o)if(2&n){const
u=t[++e];s+="["+o+(u.length>0?'="'+u+'"':"")+"]"}else
8&n?s+="."+o:4&n&&(s+="
"+o);else""!==s&&!Li(o)&&(i+=xb(r,s),s=""),n=o,r=r||
!Li(n);e++}return""!==s&&(i+=xb(r,s)),i}const Re={};function
a(t){Db(tt(),$(),Nn()+t,!1)}function Db(t,i,e,n){if(!n)if(3==(3&i[2])){const
r=t.preOrderCheckHooks;null!==r&&ec(i,r,e)}else{const
r=t.preOrderHooks;null!==r&&tc(i,r,0,e)}Ps(e)}function Cc(t,i){return
t<<17|i<<2}function Oi(t){return t>>17&32767}function jp(t){return
2|t}function fs(t){return(131068&t)>>2}function
$p(t,i){return-131069&t|i<<2}function Wp(t){return 1|t}function Nb(t,i){const
e=t.contentQueries;if(null!==e)for(let n=0;n<e.length;n+=2){const
s=e[n],r=e[n+1];if(-1!==r){const o=t.data[r];ap(s),o.contentQueries(2,i[r],r)}}}function
Da(t,i,e,n,s,r,o,u,h,b){const y=i.blueprint.slice();return
y[0]=s,y[2]=140|n,Xg(y),y[3]=y[15]=t,y[8]=e,y[10]=o||t&&t[10],y[11]=u||t&&t[11],y[12]=h||t&&t[12]||null,y[9]=b||t&&t[9]||null,y[6]=r,y[16]=2==i.type?t[16]:y,y}function
io(t,i,e,n,s){let r=t.data[i];if(null===r)r=function nh(t,i,e,n,s){const
r=n_(),o=ip(),h=t.data[i]=function Tk(t,i,e,n,s,r){return{type:e,index:n,insertBeforeIn
dex:null,injectorIndex:i?i.injectorIndex:-1,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,propertyBindings:null,flags:0,providerIndexes:0,value:s,attrs:r,mergedAttrs:null,localNames:null,initialInputs:void
0,inputs:null,outputs:null,tViews:null,next:null,projectionNext:null,child:null,parent:i,projection:null,styles:null,stylesWithoutHost:null,residualStyles:void
0,classes:null,classesWithoutHost:null,residualClasses:void
0,classBindings:0,styleBindings:0}}(0,o?r:r&&r.parent,e,i,n,s);return
null===t.firstChild&&(t.firstChild=h),null!==r&&(o?null==r.child&&null!==h.parent&&(r.child=h):null===r.next&&(r.next=h)),h}(t,i,e,n,s),function
$x(){return Ee.lFrame.inI18n}()&&(r.flags|=64);else
if(64&r.type){r.type=e,r.value=n,r.attrs=s;const o=function ra(){const
t=Ee.lFrame,i=t.currentTNode;return
t.isParent?i:i.parent}();r.injectorIndex=null===o?-1:o.injectorIndex}return
Qi(r,!0),r}function so(t,i,e,n){if(0===e)return-1;const s=i.length;for(let
r=0;r<e;r++)i.push(n),t.blueprint.
push(n),t.data.push(null);return s}function Ma(t,i,e){Yl(i);try{const
n=t.viewQuery;null!==n&&dh(1,n,e);const
s=t.template;null!==s&&Vb(t,i,s,1,e),t.firstCreatePass&&(t.firstCreatePass=!1),t.staticContentQueries&&Nb(t,i),t.staticViewQueries&&dh(2,t.viewQuery,e);const
r=t.components;null!==r&&function Ck(t,i){for(let
e=0;e<i.length;e++)qk(t,i[e])}(i,r)}catch(n){throw
t.firstCreatePass&&(t.incompleteFirstPass=!0,t.firstCreatePass=!1),n}finally{i[2]&=-5,Zl()}}function
ro(t,i,e,n){const s=i[2];if(256!=(256&s)){Yl(i);try{Xg(i),function i_(t){return
Ee.lFrame.bindingIndex=t}(t.bindingStartIndex),null!==e&&Vb(t,i,e,2,n);const
o=3==(3&s);if(o){const
b=t.preOrderCheckHooks;null!==b&&ec(i,b,null)}else{const
b=t.preOrderHooks;null!==b&&tc(i,b,0,null),lp(i,0)}if(function Bk(t){for(let
i=Dp(t);null!==i;i=Mp(i)){if(!i[2])continue;const e=i[9];for(let
n=0;n<e.length;n++){const
s=e[n],r=s[3];0==(1024&s[2])&&np(r,1),s[2]|=1024}}}(i),function Vk(t){for(let
i=Dp(t);null!==i;i=Mp(i))for(let e=10;e<i.le
ngth;e++){const
n=i[e],s=n[1];tp(n)&&ro(s,n,s.template,n[8])}}(i),null!==t.contentQueries&&Nb(t,i),o){const
b=t.contentCheckHooks;null!==b&&ec(i,b)}else{const
b=t.contentHooks;null!==b&&tc(i,b,1),lp(i,1)}!function bk(t,i){const
e=t.hostBindingOpCodes;if(null!==e)try{for(let n=0;n<e.length;n++){const
s=e[n];if(s<0)Ps(~s);else{const
r=s,o=e[++n],u=e[++n];Wx(o,r),u(2,i[r])}}}finally{Ps(-1)}}(t,i);const
u=t.components;null!==u&&function vk(t,i){for(let
e=0;e<i.length;e++)Hk(t,i[e])}(i,u);const
h=t.viewQuery;if(null!==h&&dh(2,h,n),o){const
b=t.viewCheckHooks;null!==b&&ec(i,b)}else{const
b=t.viewHooks;null!==b&&tc(i,b,2),lp(i,2)}!0===t.firstUpdatePass&&(t.firstUpdatePass=!1),i[2]&=-73,1024&i[2]&&(i[2]&=-1025,np(i[3],-1))}finally{Zl()}}}function
yk(t,i,e,n){const
s=i[10],o=Zg(i);try{!o&&s.begin&&s.begin(),o&&Ma(t,i,n),ro(t,i,e,n)}finally{!o&&s.end&&s.end()}}function
Vb(t,i,e,n,s){const
r=Nn(),o=2&n;try{Ps(-1),o&&i.length>20&&Db(t,i,20,!1),e(n,s)}finally{Ps(r)}}function
Bb(t,i,e){if(Wd(i)){
const s=i.directiveEnd;for(let r=i.directiveStart;r<s;r++){const
o=t.data[r];o.contentQueries&&o.contentQueries(1,e[r],r)}}}function
ih(t,i,e){!t_()||(function Ek(t,i,e,n){const
s=e.directiveStart,r=e.directiveEnd;t.firstCreatePass||la(e,i),In(n,i);const
o=e.initialInputs;for(let u=s;u<r;u++){const
h=t.data[u],b=Ri(h);b&&Pk(i,e,h);const
y=ca(i,t,u,e);In(y,i),null!==o&&Fk(0,u-s,y,h,0,o),b&&(Xn(e.index,i)[8]=y)}}(t,i,e,Zn(e,i)),128==(128&e.flags)&&function
Rk(t,i,e){const n=e.directiveStart,s=e.directiveEnd,o=e.index,u=function Kx(){return
Ee.lFrame.currentDirectiveIndex}();try{Ps(o);for(let h=n;h<s;h++){const
b=t.data[h],y=i[h];rp(h),(null!==b.hostBindings||0!==b.hostVars||null!==b.hostAttrs)&&Wb(b,y)}}finally{Ps(-1),rp(u)}}(t,i,e))}function
sh(t,i,e=Zn){const n=i.localNames;if(null!==n){let s=i.index+1;for(let
r=0;r<n.length;r+=2){const o=n[r+1],u=-1===o?e(i,t):t[o];t[s++]=u}}}function
Hb(t){const i=t.tView;return
null===i||i.incompleteFirstPass?t.tView=Tc(1,null,t.template,t.decls,
t.vars,t.directiveDefs,t.pipeDefs,t.viewQuery,t.schemas,t.consts):i}function
Tc(t,i,e,n,s,r,o,u,h,b){const y=20+n,w=y+s,M=function wk(t,i){const e=[];for(let
n=0;n<i;n++)e.push(n<t?null:Re);return e}(y,w),E="function"==typeof
b?b():b;return
M[1]={type:t,blueprint:M,template:e,queries:null,viewQuery:u,declTNode:i,data:M.slice().fill(null,y),bindingStartIndex:y,expandoStartIndex:w,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
r?r():r,pipeRegistry:"function"==typeof
o?o():o,firstChild:null,schemas:h,consts:E,incompleteFirstPass:!1}}function
Ub(t,i,e,n){const
s=Xb(i);null===e?s.push(n):(s.push(e),t.firstCreatePass&&ev(t).push(n,s.length-1))}function
zb(t,i,e){for(let n in t)if(t.hasOwnProperty(n)){const s=t[
n];(e=null===e?{}:e).hasOwnProperty(n)?e[n].push(i,s):e[n]=[i,s]}return e}function
ii(t,i,e,n,s,r,o,u){const h=Zn(i,e);let
y,b=i.inputs;!u&&null!=b&&(y=b[n])?(iv(t,e,y,n,s),Wl(i)&&function
Dk(t,i){const
e=Xn(i,t);16&e[2]||(e[2]|=64)}(e,i.index)):3&i.type&&(n=function
xk(t){return"class"===t?"className":"for"===t?"htmlFor":"formaction"===t?"formAction":"innerHtml"===t?"innerHTML":"readonly"===t?"readOnly":"tabindex"===t?"tabIndex":t}(n),s=null!=o?o(s,i.value||"",n):s,$t(r)?r.setProperty(h,n,s):up(n)||(h.setProperty?h.setProperty(n,s):h[n]=s))}function
rh(t,i,e,n){let s=!1;if(t_()){const r=function Lk(t,i,e){const n=t.directiveRegistry;let
s=null;if(n)for(let r=0;r<n.length;r++){const
o=n[r];Sb(e,o.selectors,!1)&&(s||(s=[]),oc(la(e,i),t,o.type),Ri(o)?(Kb(t,e),s.unshift(o)):s.push(o))}return
s}(t,i,e),o=null===n?null:{"":-1};if(null!==r){s=!0,Qb(e,t.data.length,r.length);for(let
y=0;y<r.length;y++){const
w=r[y];w.providersResolver&&w.providersResolver(w)}let
u=!1,h=!1,b=so(t,i,r.length
,null);for(let y=0;y<r.length;y++){const
w=r[y];e.mergedAttrs=ic(e.mergedAttrs,w.hostAttrs),Jb(t,e,i,b,w),Ak(b,w,o),null!==w.contentQueries&&(e.flags|=8),(null!==w.hostBindings||null!==w.hostAttrs||0!==w.hostVars)&&(e.flags|=128);const
M=w.type.prototype;!u&&(M.ngOnChanges||M.ngOnInit||M.ngDoCheck)&&((t.preOrderHooks||(t.preOrderHooks=[])).push(e.index),u=!0),!h&&(M.ngOnChanges||M.ngDoCheck)&&((t.preOrderCheckHooks||(t.preOrderCheckHooks=[])).push(e.index),h=!0),b++}!function
Sk(t,i){const n=i.directiveEnd,s=t.data,r=i.attrs,o=[];let u=null,h=null;for(let
b=i.directiveStart;b<n;b++){const
y=s[b],w=y.inputs,M=null===r||Tb(i)?null:Nk(w,r);o.push(M),u=zb(w,b,u),h=zb(y.outputs,b,h)}null!==u&&(u.hasOwnProperty("class")&&(i.flags|=16),u.hasOwnProperty("style")&&(i.flags|=32)),i.initialInputs=o,i.inputs=u,i.outputs=h}(t,e)}o&&function
Ok(t,i,e){if(i){const n=t.localNames=[];for(let s=0;s<i.length;s+=2){const
r=e[i[s+1]];if(null==r)throw new re(-301,!1);n.push(i[s],r)}}}(e,n,o)}return e.mer
gedAttrs=ic(e.mergedAttrs,e.attrs),s}function $b(t,i,e,n,s,r){const
o=r.hostBindings;if(o){let
u=t.hostBindingOpCodes;null===u&&(u=t.hostBindingOpCodes=[]);const
h=~i.index;(function Ik(t){let i=t.length;for(;i>0;){const
e=t[--i];if("number"==typeof e&&e<0)return e}return
0})(u)!=h&&u.push(h),u.push(n,s,o)}}function
Wb(t,i){null!==t.hostBindings&&t.hostBindings(1,i)}function
Kb(t,i){i.flags|=2,(t.components||(t.components=[])).push(i.index)}function
Ak(t,i,e){if(e){if(i.exportAs)for(let
n=0;n<i.exportAs.length;n++)e[i.exportAs[n]]=t;Ri(i)&&(e[""]=t)}}function
Qb(t,i,e){t.flags|=1,t.directiveStart=i,t.directiveEnd=i+e,t.providerIndexes=i}function
Jb(t,i,e,n,s){t.data[n]=s;const r=s.factory||(s.factory=ar(s.type)),o=new
oa(r,Ri(s),null);t.blueprint[n]=o,e[n]=o,$b(t,i,0,n,so(t,e,s.hostVars,Re),s)}function
Pk(t,i,e){const
n=Zn(i,t),s=Hb(e),r=t[10],o=Sc(t,Da(t,s,null,e.onPush?64:16,n,i,r,r.createRenderer(n,e),null,null));t[i.index]=o}function
Xi(t,i,e,n,s,r){const o=Zn(t,i);!function oh(
t,i,e,n,s,r,o){if(null==r)$t(t)?t.removeAttribute(i,s,e):i.removeAttribute(s);else{const
u=null==o?Ie(r):o(r,n||"",s);$t(t)?t.setAttribute(i,s,u,e):e?i.setAttributeNS(e,s,u):i.setAttribute(s,u)}}(i[11],o,r,t.value,e,n,s)}function
Fk(t,i,e,n,s,r){const o=r[i];if(null!==o){const u=n.setInput;for(let
h=0;h<o.length;){const
b=o[h++],y=o[h++],w=o[h++];null!==u?n.setInput(e,w,b,y):e[y]=w}}}function Nk(t,i){let
e=null,n=0;for(;n<i.length;){const
s=i[n];if(0!==s)if(5!==s){if("number"==typeof
s)break;t.hasOwnProperty(s)&&(null===e&&(e=[]),e.push(s,t[s],i[n+1])),n+=2}else
n+=2;else n+=4}return e}function Yb(t,i,e,n){return new
Array(t,!0,!1,i,null,0,n,e,null,null)}function Hk(t,i){const e=Xn(i,t);if(tp(e)){const
n=e[1];80&e[2]?ro(n,e,n.template,e[8]):e[5]>0&&ah(e)}}function
ah(t){for(let n=Dp(t);null!==n;n=Mp(n))for(let s=10;s<n.length;s++){const
r=n[s];if(1024&r[2]){const o=r[1];ro(o,r,o.template,r[8])}else
r[5]>0&&ah(r)}const e=t[1].components;if(null!==e)for(let
n=0;n<e.length;n++){const s
=Xn(e[n],t);tp(s)&&s[5]>0&&ah(s)}}function qk(t,i){const
e=Xn(i,t),n=e[1];(function Gk(t,i){for(let
e=i.length;e<t.blueprint.length;e++)i.push(t.blueprint[e])})(n,e),Ma(n,e,e[8])}function
Sc(t,i){return t[13]?t[14][4]=i:t[13]=i,t[14]=i,i}function lh(t){for(;t;){t[2]|=64;const
i=Ca(t);if(Sx(t)&&!i)return t;t=i}return null}function Zb(t){!function
ch(t){for(let i=0;i<t.components.length;i++){const
e=t.components[i],n=Tp(e),s=n[1];yk(s,n,s.template,e)}}(t[8])}function
dh(t,i,e){ap(0),i(t,e)}const zk=(()=>Promise.resolve(null))();function Xb(t){return
t[7]||(t[7]=[])}function ev(t){return t.cleanup||(t.cleanup=[])}function nv(t,i){const
e=t[9],n=e?e.get(xa,null):null;n&&n.handleError(i)}function iv(t,i,e,n,s){for(let
r=0;r<e.length;){const
o=e[r++],u=e[r++],h=i[o],b=t.data[o];null!==b.setInput?b.setInput(h,s,n,u):h[u]=s}}function
gs(t,i,e){const n=Ql(i,t);!function
K_(t,i,e){$t(t)?t.setValue(i,e):i.textContent=e}(t[11],n,e)}function xc(t,i,e){let
n=e?t.styles:null,s=e?t.classes:null,r=0
;if(null!==i)for(let o=0;o<i.length;o++){const u=i[o];"number"==typeof
u?r=u:1==r?s=Vd(s,u):2==r&&(n=Vd(n,u+":
"+i[++o]+";"))}e?t.styles=n:t.stylesWithoutHost=n,e?t.classes=s:t.classesWithoutHost=s}const
ph=new be("INJECTOR",-1);class sv{get(i,e=ma){if(e===ma){const n=new
Error(`NullInjectorError: No provider for ${ft(i)}!`);throw
n.name="NullInjectorError",n}return e}}const hh=new be("Set Injector
scope."),ka={},Wk={};let mh;function rv(){return void 0===mh&&(mh=new
sv),mh}function ov(t,i=null,e=null,n){const s=av(t,i,e,n);return
s._resolveInjectorDefTypes(),s}function av(t,i=null,e=null,n){return new
Kk(t,e,i||rv(),n)}class Kk{constructor(i,e,n,s=null){this.parent=n,this.records=new
Map,this.injectorDefTypes=new Set,this.onDestroy=new Set,this._destroyed=!1;const
r=[];e&&Ji(e,u=>this.processProvider(u,i,e)),Ji([i],u=>this.processInjectorType(u,[],r)),this.records.set(ph,oo(void
0,this));const
o=this.records.get(hh);this.scope=null!=o?o.value:null,this.source=s||("object"==typeof
i
?null:ft(i))}get destroyed(){return
this._destroyed}destroy(){this.assertNotDestroyed(),this._destroyed=!0;try{this.onDestroy.forEach(i=>i.ngOnDestroy())}finally{this.records.clear(),this.onDestroy.clear(),this.injectorDefTypes.clear()}}get(i,e=ma,n=xe.Default){this.assertNotDestroyed();const
s=R_(this),r=Rs(void 0);try{if(!(n&xe.SkipSelf)){let u=this.records.get(i);if(void
0===u){const h=function nI(t){return"function"==typeof
t||"object"==typeof t&&t instanceof
be}(i)&&Hd(i);u=h&&this.injectableDefInScope(h)?oo(fh(i),ka):null,this.records.set(i,u)}if(null!=u)return
this.hydrate(i,u)}return(n&xe.Self?rv():this.parent).get(i,e=n&xe.Optional&&e===ma?null:e)}catch(o){if("NullInjectorError"===o.name){if((o[uc]=o[uc]||[]).unshift(ft(i)),s)throw
o;return function RD(t,i,e,n){const s=t[uc];throw
i[E_]&&s.unshift(i[E_]),t.message=function
LD(t,i,e,n=null){t=t&&"\n"===t.charAt(0)&&"\u0275"==t.charAt(1)?t.substr(2):t;let
s=ft(i);if(Array.isArray(i))s=i.map(ft).join(" -> ");else
if("object"==
typeof i){let r=[];for(let o in i)if(i.hasOwnProperty(o)){let
u=i[o];r.push(o+":"+("string"==typeof
u?JSON.stringify(u):ft(u)))}s=`{${r.join(",
")}}`}return`${e}${n?"("+n+")":""}[${s}]:
${t.replace(DD,"\n
")}`}("\n"+t.message,s,e,n),t.ngTokenPath=s,t[uc]=null,t}(o,i,"R3InjectorError",this.source)}throw
o}finally{Rs(r),R_(s)}}_resolveInjectorDefTypes(){this.injectorDefTypes.forEach(i=>this.get(i))}toString(){const
i=[];return this.records.forEach((n,s)=>i.push(ft(s))),`R3Injector[${i.join(",
")}]`}assertNotDestroyed(){if(this._destroyed)throw new
re(205,!1)}processInjectorType(i,e,n){if(!(i=Ve(i)))return!1;let s=Bg(i);const
r=null==s&&i.ngModule||void 0,o=void 0===r?i:r,u=-1!==n.indexOf(o);if(void
0!==r&&(s=Bg(r)),null==s)return!1;if(null!=s.imports&&!u){let
y;n.push(o);try{Ji(s.imports,w=>{this.processInjectorType(w,e,n)&&(void
0===y&&(y=[]),y.push(w))})}finally{}if(void 0!==y)for(let
w=0;w<y.length;w++){const{ngModule:M,providers:E}=y[w];Ji(E,L=>this.processProvider(L,M,E||Tt))}}t
his.injectorDefTypes.add(o);const h=ar(o)||(()=>new
o);this.records.set(o,oo(h,ka));const b=s.providers;if(null!=b&&!u){const
y=i;Ji(b,w=>this.processProvider(w,y,b))}return void 0!==r&&void
0!==i.providers}processProvider(i,e,n){let s=ao(i=Ve(i))?i:Ve(i&&i.provide);const
r=function Jk(t,i,e){return cv(t)?oo(void
0,t.useValue):oo(lv(t),ka)}(i);if(ao(i)||!0!==i.multi)this.records.get(s);else{let
o=this.records.get(s);o||(o=oo(void
0,ka,!0),o.factory=()=>Cp(o.multi),this.records.set(s,o)),s=i,o.multi.push(i)}this.records.set(s,r)}hydrate(i,e){return
e.value===ka&&(e.value=Wk,e.value=e.factory()),"object"==typeof
e.value&&e.value&&function tI(t){return
null!==t&&"object"==typeof t&&"function"==typeof
t.ngOnDestroy}(e.value)&&this.onDestroy.add(e.value),e.value}injectableDefInScope(i){if(!i.providedIn)return!1;const
e=Ve(i.providedIn);return"string"==typeof
e?"any"===e||e===this.scope:this.injectorDefTypes.has(e)}}function fh(t){const
i=Hd(t),e=null!==i?i.factory:ar(t);if(null!==e)retur
n e;if(t instanceof be)throw new re(204,!1);if(t instanceof Function)return function
Qk(t){const i=t.length;if(i>0)throw ha(i,"?"),new re(204,!1);const e=function
px(t){const i=t&&(t[Gl]||t[Hg]);if(i){const e=function
hx(t){if(t.hasOwnProperty("name"))return t.name;const
i=(""+t).match(/^function\s*([^\s(]+)/);return
null===i?"":i[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.`),i}return null}(t);return
null!==e?()=>e.factory(t):()=>new t}(t);throw new re(204,!1)}function lv(t,i,e){let
n;if(ao(t)){const s=Ve(t);return ar(s)||fh(s)}if(cv(t))n=()=>Ve(t.useValue);else
if(function
Zk(t){return!(!t||!t.useFactory)}(t))n=()=>t.useFactory(...Cp(t.deps||[]));else
if(function Yk(t){return!(!t||!t.useExisting)}(t))n=()=>K(Ve(t.useExisting));else{const
s=Ve(t&&(t.useClass||t.provide));if(!fu
nction eI(t){return!!t.deps}(t))return ar(s)||fh(s);n=()=>new s(...Cp(t.deps))}return
n}function oo(t,i,e=!1){return{factory:t,value:i,multi:e?[]:void 0}}function cv(t){return
null!==t&&"object"==typeof t&&kD in t}function
ao(t){return"function"==typeof t}let En=(()=>{class t{static create(e,n){var
s;if(Array.isArray(e))return ov({name:""},n,e,"");{const
r=null!==(s=e.name)&&void 0!==s?s:"";return
ov({name:r},e.parent,e.providers,r)}}}return t.THROW_IF_NOT_FOUND=ma,t.NULL=new
sv,t.\u0275prov=X({token:t,providedIn:"any",factory:()=>K(ph)}),t.__NG_ELEMENT_ID__=-1,t})();function
uI(t,i){Xl(Tp(t)[1],rn())}function ut(t){let i=function yv(t){return
Object.getPrototypeOf(t.prototype).constructor}(t.type),e=!0;const n=[t];for(;i;){let
s;if(Ri(t))s=i.\u0275cmp||i.\u0275dir;else{if(i.\u0275cmp)throw new
re(903,"");s=i.\u0275dir}if(s){if(e){n.push(s);const
o=t;o.inputs=bh(t.inputs),o.declaredInputs=bh(t.declaredInputs),o.outputs=bh(t.outputs);const
u=s.hostBindings;u&&mI(t,u);const h=s.viewQu
ery,b=s.contentQueries;if(h&&pI(t,h),b&&hI(t,b),Nd(t.inputs,s.inputs),Nd(t.declaredInputs,s.declaredInputs),Nd(t.outputs,s.outputs),Ri(s)&&s.data.animation){const
y=t.data;y.animation=(y.animation||[]).concat(s.data.animation)}}const
r=s.features;if(r)for(let o=0;o<r.length;o++){const
u=r[o];u&&u.ngInherit&&u(t),u===ut&&(e=!1)}}i=Object.getPrototypeOf(i)}!function
dI(t){let i=0,e=null;for(let n=t.length-1;n>=0;n--){const
s=t[n];s.hostVars=i+=s.hostVars,s.hostAttrs=ic(s.hostAttrs,e=ic(e,s.hostAttrs))}}(n)}function
bh(t){return t===Br?{}:t===Tt?[]:t}function pI(t,i){const
e=t.viewQuery;t.viewQuery=e?(n,s)=>{i(n,s),e(n,s)}:i}function hI(t,i){const
e=t.contentQueries;t.contentQueries=e?(n,s,r)=>{i(n,s,r),e(n,s,r)}:i}function
mI(t,i){const e=t.hostBindings;t.hostBindings=e?(n,s)=>{i(n,s),e(n,s)}:i}let
Dc=null;function lo(){if(!Dc){const
t=vt.Symbol;if(t&&t.iterator)Dc=t.iterator;else{const
i=Object.getOwnPropertyNames(Map.prototype);for(let e=0;e<i.length;++e){const
n=i[e];"entries"!==n&
&"size"!==n&&Map.prototype[n]===Map.prototype.entries&&(Dc=n)}}}return
Dc}function Ia(t){return!!vh(t)&&(Array.isArray(t)||!(t instanceof
Map)&&lo()in t)}function vh(t){return
null!==t&&("function"==typeof t||"object"==typeof t)}function
es(t,i,e){return t[i]=e}function Ea(t,i){return t[i]}function
Rn(t,i,e){return!Object.is(t[i],e)&&(t[i]=e,!0)}function ur(t,i,e,n){const
s=Rn(t,i,e);return Rn(t,i+1,n)||s}function Mc(t,i,e,n,s){const r=ur(t,i,e,n);return
Rn(t,i+2,s)||r}function gi(t,i,e,n,s,r){const o=ur(t,i,e,n);return
ur(t,i+2,s,r)||o}function ie(t,i,e,n){const s=$();return
Rn(s,jr(),i)&&(tt(),Xi(Vt(),s,t,i,e,n)),ie}function uo(t,i,e,n){return
Rn(t,jr(),e)?i+Ie(e)+n:Re}function po(t,i,e,n,s,r){const u=ur(t,hs(),e,s);return
ms(2),u?i+Ie(e)+n+Ie(s)+r:Re}function _(t,i,e,n,s,r,o,u){const
h=$(),b=tt(),y=t+20,w=b.firstCreatePass?function yI(t,i,e,n,s,r,o,u,h){const
b=i.consts,y=io(i,t,4,o||null,As(b,u));rh(i,e,y,As(b,h)),Xl(i,y);const
w=y.tViews=Tc(2,y,n,s,r,i.directiveRegistry,i.pipeR
egistry,null,i.schemas,b);return
null!==i.queries&&(i.queries.template(i,y),w.queries=i.queries.embeddedTView(y)),y}(y,b,h,i,e,n,s,r,o):b.data[y];Qi(w,!1);const
M=h[11].createComment("");mc(b,h,M,w),In(M,h),Sc(h,h[y]=Yb(M,h,M,w)),Kl(w)&&ih(b,h,w),null!=o&&sh(h,w,u)}function
F(t){return zr(function jx(){return Ee.lFrame.contextLView}(),20+t)}function
D(t,i=xe.Default){const e=$();return null===e?K(t,i):C_(rn(),e,Ve(t),i)}function
Sh(){throw new Error("invalid")}function p(t,i,e){const n=$();return
Rn(n,jr(),i)&&ii(tt(),Vt(),n,t,i,n[11],e,!1),p}function xh(t,i,e,n,s){const
o=s?"class":"style";iv(t,e,i.inputs[o],o,n)}function l(t,i,e,n){const
s=$(),r=tt(),o=20+t,u=s[11],h=s[o]=Ip(u,i,function tD(){return
Ee.lFrame.currentNamespace}()),b=r.firstCreatePass?function GI(t,i,e,n,s,r,o){const
u=i.consts,b=io(i,t,2,s,As(u,r));return
rh(i,e,b,As(u,o)),null!==b.attrs&&xc(b,b.attrs,!1),null!==b.mergedAttrs&&xc(b,b.mergedAttrs,!0),null!==i.queries&&i.queries.elementStart(i,b),b}(o,r,s,0,i,e,n):r.
data[o];Qi(b,!0);const y=b.mergedAttrs;null!==y&&nc(u,h,y);const
w=b.classes;null!==w&&Fp(u,h,w);const M=b.styles;return
null!==M&&ab(u,h,M),64!=(64&b.flags)&&mc(r,s,h,b),0===function
Hx(){return Ee.lFrame.elementDepthCount}()&&In(h,s),function
qx(){Ee.lFrame.elementDepthCount++}(),Kl(b)&&(ih(r,s,b),Bb(r,b,s)),null!==n&&sh(s,b),l}function
c(){let t=rn();ip()?sp():(t=t.parent,Qi(t,!1));const i=t;!function
Gx(){Ee.lFrame.elementDepthCount--}();const e=tt();return
e.firstCreatePass&&(Xl(e,t),Wd(t)&&e.queries.elementEnd(t)),null!=i.classesWithoutHost&&function
oD(t){return
0!=(16&t.flags)}(i)&&xh(e,i,$(),i.classesWithoutHost,!0),null!=i.stylesWithoutHost&&function
aD(t){return
0!=(32&t.flags)}(i)&&xh(e,i,$(),i.stylesWithoutHost,!1),c}function
k(t,i,e,n){return l(t,i,e,n),c(),k}function de(t,i,e){const
n=$(),s=tt(),r=t+20,o=s.firstCreatePass?function UI(t,i,e,n,s){const
r=i.consts,o=As(r,n),u=io(i,t,8,"ng-container",o);return
null!==o&&xc(u,o,!0),rh(i,e,u,As(r,s)),null!==i.queries&&i.que
ries.elementStart(i,u),u}(r,s,n,i,e):s.data[r];Qi(o,!0);const
u=n[r]=n[11].createComment("");return
mc(s,n,u,o),In(u,n),Kl(o)&&(ih(s,n,o),Bb(s,o,n)),null!=e&&sh(n,o),de}function
pe(){let t=rn();const i=tt();return
ip()?sp():(t=t.parent,Qi(t,!1)),i.firstCreatePass&&(Xl(i,t),Wd(t)&&i.queries.elementEnd(t)),pe}function
Y(t,i,e){return de(t,i,e),pe(),Y}function I(){return $()}function
Ra(t){return!!t&&"function"==typeof t.then}function
qv(t){return!!t&&"function"==typeof t.subscribe}const Dh=qv;function
C(t,i,e,n){const s=$(),r=tt(),o=rn();return function Uv(t,i,e,n,s,r,o,u){const
h=Kl(n),y=t.firstCreatePass&&ev(t),w=i[8],M=Xb(i);let
E=!0;if(3&n.type||u){const
N=Zn(n,i),G=u?u(N):N,P=M.length,J=u?se=>u(Yt(se[n.index])):n.index;if($t(e)){let
se=null;if(!u&&h&&(se=function zI(t,i,e,n){const
s=t.cleanup;if(null!=s)for(let r=0;r<s.length-1;r+=2){const
o=s[r];if(o===e&&s[r+1]===n){const u=i[7],h=s[r+2];return
u.length>h?u[h]:null}"string"==typeof o&&(r+=2)}return
null}(t,i,s,n.index)),null!==
se)(se.__ngLastListenerFn__||se).__ngNextListenerFn__=r,se.__ngLastListenerFn__=r,E=!1;else{r=Mh(n,i,w,r,!1);const
ke=e.listen(G,s,r);M.push(r,ke),y&&y.push(s,J,P,P+1)}}else
r=Mh(n,i,w,r,!0),G.addEventListener(s,r,o),M.push(r),y&&y.push(s,J,P,o)}else
r=Mh(n,i,w,r,!1);const L=n.outputs;let O;if(E&&null!==L&&(O=L[s])){const
N=O.length;if(N)for(let G=0;G<N;G+=2){const
mt=i[O[G]][O[G+1]].subscribe(r),Ct=M.length;M.push(r,mt),y&&y.push(s,n.index,Ct,-(Ct+1))}}}(r,s,s[11],o,t,i,!!e,n),C}function
zv(t,i,e,n){try{return!1!==e(n)}catch(s){return nv(t,s),!1}}function Mh(t,i,e,n,s){return
function r(o){if(o===Function)return n;const
u=2&t.flags?Xn(t.index,i):i;0==(32&i[2])&&lh(u);let
h=zv(i,0,n,o),b=r.__ngNextListenerFn__;for(;b;)h=zv(i,0,b,o)&&h,b=b.__ngNextListenerFn__;return
s&&!1===h&&(o.preventDefault(),o.returnValue=!1),h}}function d(t=1){return
function Jx(t){return(Ee.lFrame.contextLView=function
Yx(t,i){for(;t>0;)i=i[15],t--;return i}(t,Ee.lFrame.contextLView))[8]}(t)}function
jI(t,i){
let e=null;const n=function tk(t){const i=t.attrs;if(null!=i){const
e=i.indexOf(5);if(0==(1&e))return i[e+1]}return null}(t);for(let
s=0;s<i.length;s++){const
r=i[s];if("*"!==r){if(null===n?Sb(t,r,!0):sk(n,r))return s}else e=s}return
e}function Sn(t){const i=$()[16][6];if(!i.projection){const
n=i.projection=ha(t?t.length:1,null),s=n.slice();let r=i.child;for(;null!==r;){const
o=t?jI(r,t):0;null!==o&&(s[o]?s[o].projectionNext=r:n[o]=r,s[o]=r),r=r.next}}}function
St(t,i=0,e){const
n=$(),s=tt(),r=io(s,20+t,16,null,e||null);null===r.projection&&(r.projection=i),sp(),64!=(64&r.flags)&&function
cM(t,i,e){ob(i[11],0,i,e,Y_(t,e,i),tb(e.parent||i[6],e,i))}(s,n,r)}function
x(t,i,e){return Bn(t,"",i,"",e),x}function Bn(t,i,e,n,s){const
r=$(),o=uo(r,i,e,n);return o!==Re&&ii(tt(),Vt(),r,t,o,r[11],s,!1),Bn}function
La(t,i,e,n,s,r,o){const u=$(),h=po(u,i,e,n,s,r);return
h!==Re&&ii(tt(),Vt(),u,t,h,u[11],o,!1),La}function Zv(t,i,e,n,s){const
r=t[e+1],o=null===i;let u=n?Oi(r):fs(r),h=!1;for(;0!==u&&(
!1===h||o);){const
y=t[u+1];KI(t[u],i)&&(h=!0,t[u+1]=n?Wp(y):jp(y)),u=n?Oi(y):fs(y)}h&&(t[e+1]=n?jp(r):Wp(r))}function
KI(t,i){return
null===t||null==i||(Array.isArray(t)?t[1]:t)===i||!(!Array.isArray(t)||"string"!=typeof
i)&&Xr(t,i)>=0}const cn={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function
Xv(t){return t.substring(cn.key,cn.keyEnd)}function QI(t){return
t.substring(cn.value,cn.valueEnd)}function e1(t,i){const e=cn.textEnd;return
e===i?-1:(i=cn.keyEnd=function
ZI(t,i,e){for(;i<e&&t.charCodeAt(i)>32;)i++;return
i}(t,cn.key=i,e),Co(t,i,e))}function t1(t,i){const e=cn.textEnd;let
n=cn.key=Co(t,i,e);return e===n?-1:(n=cn.keyEnd=function XI(t,i,e){let
n;for(;i<e&&(45===(n=t.charCodeAt(i))||95===n||(-33&n)>=65&&(-33&n)<=90||n>=48&&n<=57);)i++;return
i}(t,n,e),n=s1(t,n,e),n=cn.value=Co(t,n,e),n=cn.valueEnd=function e3(t,i,e){let
n=-1,s=-1,r=-1,o=i,u=o;for(;o<e;){const h=t.charCodeAt(o++);if(59===h)return
u;34===h||39===h?u=o=r1(t,h,o,e):i===o-4&&85===r&&82===s&&76===n&&40===h?u=o=
r1(t,41,o,e):h>32&&(u=o),r=s,s=n,n=-33&h}return
u}(t,n,e),s1(t,n,e))}function
n1(t){cn.key=0,cn.keyEnd=0,cn.value=0,cn.valueEnd=0,cn.textEnd=t.length}function
Co(t,i,e){for(;i<e&&t.charCodeAt(i)<=32;)i++;return i}function
s1(t,i,e,n){return(i=Co(t,i,e))<e&&i++,i}function r1(t,i,e,n){let
s=-1,r=e;for(;r<n;){const o=t.charCodeAt(r++);if(o==i&&92!==s)return
r;s=92==o&&92===s?0:o}throw new Error}function _i(t,i,e){return
Pi(t,i,e,!1),_i}function si(t,i){return Pi(t,i,null,!0),si}function
q(t){Fi(l1,t3,t,!1)}function t3(t,i){for(let e=function YI(t){return
n1(t),t1(t,Co(t,0,cn.textEnd))}(i);e>=0;e=t1(i,e))l1(t,Xv(i),QI(i))}function
me(t){Fi(ei,ts,t,!0)}function ts(t,i){for(let e=function JI(t){return
n1(t),e1(t,Co(t,0,cn.textEnd))}(i);e>=0;e=e1(i,e))ei(t,Xv(i),!0)}function
Pi(t,i,e,n){const
s=$(),r=tt(),o=ms(2);r.firstUpdatePass&&a1(r,t,o,n),i!==Re&&Rn(s,o,i)&&c1(r,r.data[Nn()],s,s[11],t,s[o+1]=function
c3(t,i){return null==t||("string"==typeof i?t+=i:"object"==typeof
t&&(t=ft(Vs(t)))),t
}(i,e),n,o)}function Fi(t,i,e,n){const
s=tt(),r=ms(2);s.firstUpdatePass&&a1(s,null,r,n);const
o=$();if(e!==Re&&Rn(o,r,e)){const u=s.data[Nn()];if(d1(u,n)&&!o1(s,r)){let
h=n?u.classesWithoutHost:u.stylesWithoutHost;null!==h&&(e=Vd(h,e||"")),xh(s,u,o,e,n)}else!function
l3(t,i,e,n,s,r,o,u){s===Re&&(s=Tt);let
h=0,b=0,y=0<s.length?s[0]:null,w=0<r.length?r[0]:null;for(;null!==y||null!==w;){const
M=h<s.length?s[h+1]:void 0,E=b<r.length?r[b+1]:void 0;let
O,L=null;y===w?(h+=2,b+=2,M!==E&&(L=w,O=E)):null===w||null!==y&&y<w?(h+=2,L=y):(b+=2,L=w,O=E),null!==L&&c1(t,i,e,n,L,O,o,u),y=h<s.length?s[h]:null,w=b<r.length?r[b]:null}}(s,u,o,o[11],o[r+1],o[r+1]=function
a3(t,i,e){if(null==e||""===e)return Tt;const
n=[],s=Vs(e);if(Array.isArray(s))for(let r=0;r<s.length;r++)t(n,s[r],!0);else
if("object"==typeof s)for(const r in
s)s.hasOwnProperty(r)&&t(n,r,s[r]);else"string"==typeof
s&&i(n,s);return n}(t,i,e),n,r)}}function o1(t,i){return
i>=t.expandoStartIndex}function a1(t,i,e,n){const s=t.data;if(null
===s[e+1]){const
r=s[Nn()],o=o1(t,e);d1(r,n)&&null===i&&!o&&(i=!1),i=function
n3(t,i,e,n){const s=function op(t){const
i=Ee.lFrame.currentDirectiveIndex;return-1===i?null:t[i]}(t);let
r=n?i.residualClasses:i.residualStyles;if(null===s)0===(n?i.classBindings:i.styleBindings)&&(e=Oa(e=kh(null,t,i,e,n),i.attrs,n),r=null);else{const
o=i.directiveStylingLast;if(-1===o||t[o]!==s)if(e=kh(s,t,i,e,n),null===r){let h=function
s3(t,i,e){const n=e?i.classBindings:i.styleBindings;if(0!==fs(n))return
t[Oi(n)]}(t,i,n);void
0!==h&&Array.isArray(h)&&(h=kh(null,t,i,h[1],n),h=Oa(h,i.attrs,n),function
r3(t,i,e,n){t[Oi(e?i.classBindings:i.styleBindings)]=n}(t,i,n,h))}else r=function
o3(t,i,e){let n;const s=i.directiveEnd;for(let
r=1+i.directiveStylingLast;r<s;r++)n=Oa(n,t[r].hostAttrs,e);return
Oa(n,i.attrs,e)}(t,i,n)}return void
0!==r&&(n?i.residualClasses=r:i.residualStyles=r),e}(s,r,i,n),function
$I(t,i,e,n,s,r){let o=r?i.classBindings:i.styleBindings,u=Oi(o),h=fs(o);t[n]=e;let
y,b=!1;if(Array.isArra
y(e)){const w=e;y=w[1],(null===y||Xr(w,y)>0)&&(b=!0)}else
y=e;if(s)if(0!==h){const
M=Oi(t[u+1]);t[n+1]=Cc(M,u),0!==M&&(t[M+1]=$p(t[M+1],n)),t[u+1]=function
lk(t,i){return 131071&t|i<<17}(t[u+1],n)}else
t[n+1]=Cc(u,0),0!==u&&(t[u+1]=$p(t[u+1],n)),u=n;else
t[n+1]=Cc(h,0),0===u?u=n:t[h+1]=$p(t[h+1],n),h=n;b&&(t[n+1]=jp(t[n+1])),Zv(t,y,n,!0),Zv(t,y,n,!1),function
WI(t,i,e,n,s){const
r=s?t.residualClasses:t.residualStyles;null!=r&&"string"==typeof
i&&Xr(r,i)>=0&&(e[n+1]=Wp(e[n+1]))}(i,y,t,n,r),o=Cc(u,h),r?i.classBindings=o:i.styleBindings=o}(s,r,i,e,o,n)}}function
kh(t,i,e,n,s){let r=null;const o=e.directiveEnd;let
u=e.directiveStylingLast;for(-1===u?u=e.directiveStart:u++;u<o&&(r=i[u],n=Oa(n,r.hostAttrs,s),r!==t);)u++;return
null!==t&&(e.directiveStylingLast=u),n}function Oa(t,i,e){const n=e?1:2;let
s=-1;if(null!==i)for(let r=0;r<i.length;r++){const o=i[r];"number"==typeof
o?s=o:s===n&&(Array.isArray(t)||(t=void
0===t?[]:["",t]),ei(t,o,!!e||i[++r]))}return void 0===t?null:t}function l1(
t,i,e){ei(t,i,Vs(e))}function c1(t,i,e,n,s,r,o,u){if(!(3&i.type))return;const
h=t.data,b=h[u+1];Ic(function Ib(t){return 1==(1&t)}(b)?u1(h,i,e,s,fs(b),o):void
0)||(Ic(r)||function kb(t){return
2==(2&t)}(b)&&(r=u1(h,null,e,s,u,o)),function dM(t,i,e,n,s){const
r=$t(t);if(i)s?r?t.addClass(e,n):e.classList.add(n):r?t.removeClass(e,n):e.classList.remove(n);else{let
o=-1===n.indexOf("-")?void
0:ti.DashCase;if(null==s)r?t.removeStyle(e,n,o):e.style.removeProperty(n);else{const
u="string"==typeof
s&&s.endsWith("!important");u&&(s=s.slice(0,-10),o|=ti.Important),r?t.setStyle(e,n,s,o):e.style.setProperty(n,s,u?"important":"")}}}(n,o,Ql(Nn(),e),s,r))}function
u1(t,i,e,n,s,r){const o=null===i;let u;for(;s>0;){const
h=t[s],b=Array.isArray(h),y=b?h[1]:h,w=null===y;let M=e[s+1];M===Re&&(M=w?Tt:void
0);let E=w?_p(M,n):y===n?M:void
0;if(b&&!Ic(E)&&(E=_p(h,n)),Ic(E)&&(u=E,o))return u;const
L=t[s+1];s=o?Oi(L):fs(L)}if(null!==i){let
h=r?i.residualClasses:i.residualStyles;null!=h&&(u=_p(h,n))}return u}f
unction Ic(t){return void 0!==t}function d1(t,i){return
0!=(t.flags&(i?16:32))}function g(t,i=""){const
e=$(),n=tt(),s=t+20,r=n.firstCreatePass?io(n,s,1,i,null):n.data[s],o=e[s]=function
kp(t,i){return
$t(t)?t.createText(i):t.createTextNode(i)}(e[11],i);mc(n,e,o,r),Qi(r,!1)}function
S(t){return T("",t,""),S}function T(t,i,e){const
n=$(),s=uo(n,t,i,e);return s!==Re&&gs(n,Nn(),s),T}function We(t,i,e,n,s){const
r=$(),o=po(r,t,i,e,n,s);return o!==Re&&gs(r,Nn(),o),We}function
yo(t,i,e,n,s,r,o){const u=$(),h=function ho(t,i,e,n,s,r,o,u){const
b=Mc(t,hs(),e,s,o);return ms(3),b?i+Ie(e)+n+Ie(s)+r+Ie(o)+u:Re}(u,t,i,e,n,s,r,o);return
h!==Re&&gs(u,Nn(),h),yo}function Ec(t,i,e,n,s,r,o,u,h){const b=$(),y=function
mo(t,i,e,n,s,r,o,u,h,b){const w=gi(t,hs(),e,s,o,h);return
ms(4),w?i+Ie(e)+n+Ie(s)+r+Ie(o)+u+Ie(h)+b:Re}(b,t,i,e,n,s,r,o,u,h);return
y!==Re&&gs(b,Nn(),y),Ec}function Ih(t,i,e,n,s,r,o,u,h,b,y){const w=$(),M=function
fo(t,i,e,n,s,r,o,u,h,b,y,w){const M=hs();let E=gi(t,M,e,s,o,h);return E=Rn
(t,M+4,y)||E,ms(5),E?i+Ie(e)+n+Ie(s)+r+Ie(o)+u+Ie(h)+b+Ie(y)+w:Re}(w,t,i,e,n,s,r,o,u,h,b,y);return
M!==Re&&gs(w,Nn(),M),Ih}function Eh(t,i,e,n,s,r,o,u,h,b,y,w,M){const
E=$(),L=function go(t,i,e,n,s,r,o,u,h,b,y,w,M,E){const L=hs();let O=gi(t,L,e,s,o,h);return
O=ur(t,L+4,y,M)||O,ms(6),O?i+Ie(e)+n+Ie(s)+r+Ie(o)+u+Ie(h)+b+Ie(y)+w+Ie(M)+E:Re}(E,t,i,e,n,s,r,o,u,h,b,y,w,M);return
L!==Re&&gs(E,Nn(),L),Eh}const dr=void 0;var
I3=["en",[["a","p"],["AM","PM"],dr],[["AM","PM"],dr,dr],[["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"]],dr,[["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"]],dr,[["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}",dr,"{1} 'at'
{0}",dr],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US
Dollar",{},"ltr",function k3(t){const
e=Math.floor(Math.abs(t)),n=t.toString().replace(/^[^.]*\.?/,"").length;return
1===e&&0===n?1:5}];let wo={};function Hn(t){const i=function E3(t){return
t.toLowerCase().replace(/_/g,"-")}(t);let e=M1(i);if(e)return e;const
n=i.split("-")[0];if(e=M1(n),e)return e;if("en"===n)return I3;throw
new Error(`Missing locale data for the locale "${t}".`)}function M1(t){return t
in
wo||(wo[t]=vt.ng&&vt.ng.common&&vt.ng.common.locales&&vt.ng.common.locales[t]),wo[t]}var
te=(()=>((te=te||{})[te.LocaleId=0]="LocaleId",te[te.DayPeriodsFormat=1]="DayPeriodsFormat",te[te.DayPeriodsStandalone=2]="DayPeriodsStandalone",te[te.DaysFormat=3]="DaysFormat",te[te.DaysStandalone=4]="DaysStandalone",te[te.MonthsFormat=5]="MonthsFormat",te[t
e.MonthsStandalone=6]="MonthsStandalone",te[te.Eras=7]="Eras",te[te.FirstDayOfWeek=8]="FirstDayOfWeek",te[te.WeekendRange=9]="WeekendRange",te[te.DateFormat=10]="DateFormat",te[te.TimeFormat=11]="TimeFormat",te[te.DateTimeFormat=12]="DateTimeFormat",te[te.NumberSymbols=13]="NumberSymbols",te[te.NumberFormats=14]="NumberFormats",te[te.CurrencyCode=15]="CurrencyCode",te[te.CurrencySymbol=16]="CurrencySymbol",te[te.CurrencyName=17]="CurrencyName",te[te.Currencies=18]="Currencies",te[te.Directionality=19]="Directionality",te[te.PluralCase=20]="PluralCase",te[te.ExtraData=21]="ExtraData",te))();const
Rc="en-US";let k1=Rc;function Oh(t,i,e,n,s){if(t=Ve(t),Array.isArray(t))for(let
r=0;r<t.length;r++)Oh(t[r],i,e,n,s);else{const r=tt(),o=$();let
u=ao(t)?t:Ve(t.provide),h=lv(t);const
b=rn(),y=1048575&b.providerIndexes,w=b.directiveStart,M=b.providerIndexes>>20;if(ao(t)||!t.multi){const
E=new
oa(h,s,D),L=Ph(u,i,s?y:y+M,w);-1===L?(oc(la(b,o),r,u),Ah(r,t,i.length),i.push(u),b.directiveStart++,b.
directiveEnd++,s&&(b.providerIndexes+=1048576),e.push(E),o.push(E)):(e[L]=E,o[L]=E)}else{const
E=Ph(u,i,y+M,w),L=Ph(u,i,y,y+M),O=E>=0&&e[E],N=L>=0&&e[L];if(s&&!N||!s&&!O){oc(la(b,o),r,u);const
G=function kE(t,i,e,n,s){const r=new oa(t,e,D);return
r.multi=[],r.index=i,r.componentProviders=0,Z1(r,s,n&&!e),r}(s?ME:DE,e.length,s,n,h);!s&&N&&(e[L].providerFactory=G),Ah(r,t,i.length,0),i.push(u),b.directiveStart++,b.directiveEnd++,s&&(b.providerIndexes+=1048576),e.push(G),o.push(G)}else
Ah(r,t,E>-1?E:L,Z1(e[s?L:E],h,!s&&n));!s&&n&&N&&e[L].componentProviders++}}}function
Ah(t,i,e,n){const s=ao(i),r=function Xk(t){return!!t.useClass}(i);if(s||r){const
h=(r?Ve(i.useClass):i).prototype.ngOnDestroy;if(h){const
b=t.destroyHooks||(t.destroyHooks=[]);if(!s&&i.multi){const
y=b.indexOf(e);-1===y?b.push(e,[n,h]):b[y+1].push(n,h)}else b.push(e,h)}}}function
Z1(t,i,e){return e&&t.componentProviders++,t.multi.push(i)-1}function
Ph(t,i,e,n){for(let s=e;s<n;s++)if(i[s]===t)return s;return-1}function DE(t
,i,e,n){return Fh(this.multi,[])}function ME(t,i,e,n){const s=this.multi;let
r;if(this.providerFactory){const
o=this.providerFactory.componentProviders,u=ca(e,e[1],this.providerFactory.index,n);r=u.slice(0,o),Fh(s,r);for(let
h=o;h<u.length;h++)r.push(u[h])}else r=[],Fh(s,r);return r}function Fh(t,i){for(let
e=0;e<t.length;e++)i.push((0,t[e])());return i}function Pe(t,i=[]){return
e=>{e.providersResolver=(n,s)=>function xE(t,i,e){const
n=tt();if(n.firstCreatePass){const
s=Ri(t);Oh(e,n.data,n.blueprint,s,!0),Oh(i,n.data,n.blueprint,s,!1)}}(n,s?s(t):t,i)}}class
X1{}class RE{resolveComponentFactory(i){throw function EE(t){const i=Error(`No component
factory found for ${ft(t)}. Did you add it to @NgModule.entryComponents?`);return
i.ngComponent=t,i}(i)}}let Va=(()=>{class t{}return t.NULL=new RE,t})();function
LE(){return So(rn(),$())}function So(t,i){return new De(Zn(t,i))}let De=(()=>{class
t{constructor(e){this.nativeElement=e}}return t.__NG_ELEMENT_ID__=LE,t})();function
OE(t){return
t instanceof De?t.nativeElement:t}class Ba{}let gn=(()=>{class t{}return
t.__NG_ELEMENT_ID__=()=>function PE(){const t=$(),e=Xn(rn().index,t);return function
AE(t){return t[11]}(Ki(e)?e:t)}(),t})(),FE=(()=>{class t{}return
t.\u0275prov=X({token:t,providedIn:"root",factory:()=>null}),t})();class
Ha{constructor(i){this.full=i,this.major=i.split(".")[0],this.minor=i.split(".")[1],this.patch=i.split(".").slice(2).join(".")}}const
NE=new Ha("13.3.12"),Nh={};function Fc(t,i,e,n,s=!1){for(;null!==e;){const
r=i[e.index];if(null!==r&&n.push(Yt(r)),Ei(r))for(let
u=10;u<r.length;u++){const
h=r[u],b=h[1].firstChild;null!==b&&Fc(h[1],h,b,n)}const
o=e.type;if(8&o)Fc(t,i,e.child,n);else if(32&o){const u=xp(e,i);let
h;for(;h=u();)n.push(h)}else if(16&o){const
u=rb(i,e);if(Array.isArray(u))n.push(...u);else{const
h=Ca(i[16]);Fc(h[1],h,u,n,!0)}}e=s?e.projectionNext:e.next}return n}class
qa{constructor(i,e){this._lView=i,this._cdRefInjectingView=e,this._appRef=null,this._attachedToViewContainer=!1}ge
t rootNodes(){const i=this._lView,e=i[1];return Fc(e,i,e.firstChild,[])}get
context(){return this._lView[8]}set context(i){this._lView[8]=i}get destroyed(){return
256==(256&this._lView[2])}destroy(){if(this._appRef)this._appRef.detachView(this);else
if(this._attachedToViewContainer){const i=this._lView[3];if(Ei(i)){const
e=i[8],n=e?e.indexOf(this):-1;n>-1&&(Ep(i,n),lc(e,n))}this._attachedToViewContainer=!1}J_(this._lView[1],this._lView)}onDestroy(i){Ub(this._lView[1],this._lView,null,i)}markForCheck(){lh(this._cdRefInjectingView||this._lView)}detach(){this._lView[2]&=-129}reattach(){this._lView[2]|=128}detectChanges(){!function
uh(t,i,e){const n=i[10];n.begin&&n.begin();try{ro(t,i,t.template,e)}catch(s){throw
nv(i,s),s}finally{n.end&&n.end()}}(this._lView[1],this._lView,this.context)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw
new
re(902,"");this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null,function
tM(t,i){ya(t,i,i[11],2,null,null)}(this._
lView[1],this._lView)}attachToAppRef(i){if(this._attachedToViewContainer)throw new
re(902,"");this._appRef=i}}class VE extends
qa{constructor(i){super(i),this._view=i}detectChanges(){Zb(this._view)}checkNoChanges(){}get
context(){return null}}class tC extends
Va{constructor(i){super(),this.ngModule=i}resolveComponentFactory(i){const e=Tn(i);return
new Vh(e,this.ngModule)}}function nC(t){const i=[];for(let e in
t)t.hasOwnProperty(e)&&i.push({propName:t[e],templateName:e});return i}class Vh
extends
X1{constructor(i,e){super(),this.componentDef=i,this.ngModule=e,this.componentType=i.type,this.selector=function
ok(t){return
t.map(rk).join(",")}(i.selectors),this.ngContentSelectors=i.ngContentSelectors?i.ngContentSelectors:[],this.isBoundToModule=!!e}get
inputs(){return nC(this.componentDef.inputs)}get outputs(){return
nC(this.componentDef.outputs)}create(i,e,n,s){const r=(s=s||this.ngModule)?function
HE(t,i){return{get:(e,n,s)=>{const r=t.get(e,Nh,s);return
r!==Nh||n===Nh?r:i.get(e,n,s)
}}}(i,s.injector):i,o=r.get(Ba,Yg),u=r.get(FE,null),h=o.createRenderer(null,this.componentDef),b=this.componentDef.selectors[0][0]||"div",y=n?function
Gb(t,i,e){if($t(t))return t.selectRootElement(i,e===ki.ShadowDom);let
n="string"==typeof i?t.querySelector(i):i;return
n.textContent="",n}(h,n,this.componentDef.encapsulation):Ip(o.createRenderer(null,this.componentDef),b,function
BE(t){const
i=t.toLowerCase();return"svg"===i?"svg":"math"===i?"math":null}(b)),w=this.componentDef.onPush?576:528,M=function
Cv(t,i){return{components:[],scheduler:t||KM,clean:zk,playerHandler:i||null,flags:0}}(),E=Tc(0,null,null,1,0,null,null,null,null,null),L=Da(null,E,M,w,null,null,o,h,u,r);let
O,N;Yl(L);try{const G=function bv(t,i,e,n,s,r){const o=e[1];e[20]=t;const
h=io(o,20,2,"#host",null),b=h.mergedAttrs=i.hostAttrs;null!==b&&(xc(h,b,!0),null!==t&&(nc(s,t,b),null!==h.classes&&Fp(s,t,h.classes),null!==h.styles&&ab(s,t,h.styles)));const
y=n.createRenderer(t,i),w=Da(e,Hb(i),null,i.onPush?64:16,e[20],h,n
,y,r||null,null);return
o.firstCreatePass&&(oc(la(h,e),o,i.type),Kb(o,h),Qb(h,e.length,1)),Sc(e,w),e[20]=w}(y,this.componentDef,L,o,h);if(y)if(n)nc(h,y,["ng-version",NE.full]);else{const{attrs:P,classes:J}=function
ak(t){const i=[],e=[];let n=1,s=2;for(;n<t.length;){let
r=t[n];if("string"==typeof
r)2===s?""!==r&&i.push(r,t[++n]):8===s&&e.push(r);else{if(!Li(s))break;s=r}n++}return{attrs:i,classes:e}}(this.componentDef.selectors[0]);P&&nc(h,y,P),J&&J.length>0&&Fp(h,y,J.join("
"))}if(N=ep(E,20),void 0!==e){const P=N.projection=[];for(let
J=0;J<this.ngContentSelectors.length;J++){const
se=e[J];P.push(null!=se?Array.from(se):null)}}O=function vv(t,i,e,n,s){const
r=e[1],o=function kk(t,i,e){const
n=rn();t.firstCreatePass&&(e.providersResolver&&e.providersResolver(e),Jb(t,n,i,so(t,i,1,null),e));const
s=ca(i,t,n.directiveStart,n);In(s,i);const r=Zn(n,i);return
r&&In(r,i),s}(r,e,i);if(n.components.push(o),t[8]=o,s&&s.forEach(h=>h(o,i)),i.contentQueries){const
h=rn();i.contentQueries(1,o,h.d
irectiveStart)}const
u=rn();return!r.firstCreatePass||null===i.hostBindings&&null===i.hostAttrs||(Ps(u.index),$b(e[1],u,0,u.directiveStart,u.directiveEnd,i),Wb(i,o)),o}(G,this.componentDef,L,M,[uI]),Ma(E,L,null)}finally{Zl()}return
new GE(this.componentType,O,So(N,L),L,N)}}class GE extends class
IE{}{constructor(i,e,n,s,r){super(),this.location=n,this._rootLView=s,this._tNode=r,this.instance=e,this.hostView=this.changeDetectorRef=new
VE(s),this.componentType=i}get injector(){return new
Kr(this._tNode,this._rootLView)}destroy(){this.hostView.destroy()}onDestroy(i){this.hostView.onDestroy(i)}}class
_s{}class iC{}const xo=new Map;class oC extends
_s{constructor(i,e){super(),this._parent=e,this._bootstrapComponents=[],this.injector=this,this.destroyCbs=[],this.componentFactoryResolver=new
tC(this);const
n=pi(i);this._bootstrapComponents=Zi(n.bootstrap),this._r3Injector=av(i,e,[{provide:_s,useValue:this},{provide:Va,useValue:this.componentFactoryResolver}],ft(i)),this._r3Injector._resolv
eInjectorDefTypes(),this.instance=this.get(i)}get(i,e=En.THROW_IF_NOT_FOUND,n=xe.Default){return
i===En||i===_s||i===ph?this:this._r3Injector.get(i,e,n)}destroy(){const
i=this._r3Injector;!i.destroyed&&i.destroy(),this.destroyCbs.forEach(e=>e()),this.destroyCbs=null}onDestroy(i){this.destroyCbs.push(i)}}class
Bh extends iC{constructor(i){super(),this.moduleType=i,null!==pi(i)&&function
zE(t){const i=new Set;!function e(n){const s=pi(n,!0),r=s.id;null!==r&&(function
sC(t,i,e){if(i&&i!==e)throw new Error(`Duplicate module registered for ${t} -
${ft(i)} vs ${ft(i.name)}`)}(r,xo.get(r),n),xo.set(r,n));const o=Zi(s.imports);for(const u
of o)i.has(u)||(i.add(u),e(u))}(t)}(i)}create(i){return new
oC(this.moduleType,i)}}function A(t,i,e){const n=Fn()+t,s=$();return
s[n]===Re?es(s,n,e?i.call(e):i()):Ea(s,n)}function U(t,i,e,n){return
lC($(),Fn(),t,i,e,n)}function Ge(t,i,e,n,s){return cC($(),Fn(),t,i,e,n,s)}function
Qt(t,i,e,n,s,r){return uC($(),Fn(),t,i,e,n,s,r)}function qn(t,i,e,n,s,r,o){re
turn function dC(t,i,e,n,s,r,o,u,h){const b=i+e;return
gi(t,b,s,r,o,u)?es(t,b+4,h?n.call(h,s,r,o,u):n(s,r,o,u)):Ga(t,b+4)}($(),Fn(),t,i,e,n,s,r,o)}function
pr(t,i,e,n,s,r,o,u){const h=Fn()+t,b=$(),y=gi(b,h,e,n,s,r);return
Rn(b,h+4,o)||y?es(b,h+5,u?i.call(u,e,n,s,r,o):i(e,n,s,r,o)):Ea(b,h+5)}function
Do(t,i,e,n,s,r,o,u,h){const b=Fn()+t,y=$(),w=gi(y,b,e,n,s,r);return
ur(y,b+4,o,u)||w?es(y,b+6,h?i.call(h,e,n,s,r,o,u):i(e,n,s,r,o,u)):Ea(y,b+6)}function
Hh(t,i,e,n){return function pC(t,i,e,n,s,r){let o=i+e,u=!1;for(let
h=0;h<s.length;h++)Rn(t,o++,s[h])&&(u=!0);return
u?es(t,o,n.apply(r,s)):Ga(t,o)}($(),Fn(),t,i,e,n)}function Ga(t,i){const e=t[i];return
e===Re?void 0:e}function lC(t,i,e,n,s,r){const o=i+e;return
Rn(t,o,s)?es(t,o+1,r?n.call(r,s):n(s)):Ga(t,o+1)}function cC(t,i,e,n,s,r,o){const
u=i+e;return ur(t,u,s,r)?es(t,u+2,o?n.call(o,s,r):n(s,r)):Ga(t,u+2)}function
uC(t,i,e,n,s,r,o,u){const h=i+e;return
Mc(t,h,s,r,o)?es(t,h+3,u?n.call(u,s,r,o):n(s,r,o)):Ga(t,h+3)}function m(t,i){const
e=tt();let n;const s=t+20;e.firstCreatePass?(n=function $E(t,i){if(i)for(let
e=i.length-1;e>=0;e--){const n=i[e];if(t===n.name)return
n}}(i,e.pipeRegistry),e.data[s]=n,n.onDestroy&&(e.destroyHooks||(e.destroyHooks=[])).push(s,n.onDestroy)):n=e.data[s];const
r=n.factory||(n.factory=ar(n.type)),o=Rs(D);try{const u=sc(!1),h=r();return sc(u),function
wI(t,i,e,n){e>=t.data.length&&(t.data[e]=null,t.blueprint[e]=null),i[e]=n}(e,$(),s,h),h}finally{Rs(o)}}function
f(t,i,e){const n=t+20,s=$(),r=zr(s,n);return
Ua(s,n)?lC(s,Fn(),i,r.transform,e,r):r.transform(e)}function Dt(t,i,e,n){const
s=t+20,r=$(),o=zr(r,s);return
Ua(r,s)?cC(r,Fn(),i,o.transform,e,n,o):o.transform(e,n)}function Ua(t,i){return
t[1].data[i].pure}function qh(t){return i=>{setTimeout(t,void 0,i)}}const H=class QE
extends
ct{constructor(i=!1){super(),this.__isAsync=i}emit(i){super.next(i)}subscribe(i,e,n){var
s,r,o;let u=i,h=e||(()=>null),b=n;if(i&&"object"==typeof i){const
w=i;u=null===(s=w.next)||void 0===s?void 0:s.bind(w),
h=null===(r=w.error)||void 0===r?void 0:r.bind(w),b=null===(o=w.complete)||void
0===o?void
0:o.bind(w)}this.__isAsync&&(h=qh(h),u&&(u=qh(u)),b&&(b=qh(b)));const
y=super.subscribe({next:u,error:h,complete:b});return i instanceof
Et&&i.add(y),y}};function JE(){return this._results[lo()]()}class
Gh{constructor(i=!1){this._emitDistinctChangesOnly=i,this.dirty=!0,this._results=[],this._changesDetected=!1,this._changes=null,this.length=0,this.first=void
0,this.last=void 0;const e=lo(),n=Gh.prototype;n[e]||(n[e]=JE)}get changes(){return
this._changes||(this._changes=new H)}get(i){return this._results[i]}map(i){return
this._results.map(i)}filter(i){return this._results.filter(i)}find(i){return
this._results.find(i)}reduce(i,e){return
this._results.reduce(i,e)}forEach(i){this._results.forEach(i)}some(i){return
this._results.some(i)}toArray(){return this._results.slice()}toString(){return
this._results.toString()}reset(i,e){const n=this;n.dirty=!1;const
s=fi(i);(this._changesDetected=!functio
n _D(t,i,e){if(t.length!==i.length)return!1;for(let n=0;n<t.length;n++){let
s=t[n],r=i[n];if(e&&(s=e(s),r=e(r)),r!==s)return!1}return!0}(n._results,s,e))&&(n._results=s,n.length=s.length,n.last=s[this.length-1],n.first=s[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
bi=(()=>{class t{}return t.__NG_ELEMENT_ID__=XE,t})();const YE=bi,ZE=class extends
YE{constructor(i,e,n){super(),this._declarationLView=i,this._declarationTContainer=e,this.elementRef=n}createEmbeddedView(i){const
e=this._declarationTContainer.tViews,n=Da(this._declarationLView,e,i,16,null,e.declTNode,null,null,null,null);n[17]=this._declarationLView[this._declarationTContainer.index];const
r=this._declarationLView[19];return
null!==r&&(n[19]=r.createEmbeddedView(e)),Ma(e,n,i),new qa(n)}};function
XE(){return Nc(rn(),$())}function Nc(t,i){return 4&t.typ
e?new ZE(i,t,So(t,i)):null}let vi=(()=>{class t{}return
t.__NG_ELEMENT_ID__=eR,t})();function eR(){return gC(rn(),$())}const tR=vi,mC=class
extends
tR{constructor(i,e,n){super(),this._lContainer=i,this._hostTNode=e,this._hostLView=n}get
element(){return So(this._hostTNode,this._hostLView)}get injector(){return new
Kr(this._hostTNode,this._hostLView)}get parentInjector(){const
i=rc(this._hostTNode,this._hostLView);if(f_(i)){const
e=Wr(i,this._hostLView),n=$r(i);return new Kr(e[1].data[n+8],e)}return new
Kr(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(i){const
e=fC(this._lContainer);return null!==e&&e[i]||null}get length(){return
this._lContainer.length-10}createEmbeddedView(i,e,n){const
s=i.createEmbeddedView(e||{});return this.insert(s,n),s}createComponent(i,e,n,s,r){const
o=i&&!function pa(t){return"function"==typeof t}(i);let
u;if(o)u=e;else{const
w=e||{};u=w.index,n=w.injector,s=w.projectableNodes,r=w.ngModuleRef}const h=o?i:new
Vh(Tn(i)),b=n||
this.parentInjector;if(!r&&null==h.ngModule){const
M=(o?b:this.parentInjector).get(_s,null);M&&(r=M)}const y=h.create(b,s,void
0,r);return this.insert(y.hostView,u),y}insert(i,e){const n=i._lView,s=n[1];if(function
Bx(t){return Ei(t[3])}(n)){const y=this.indexOf(i);if(-1!==y)this.detach(y);else{const
w=n[3],M=new mC(w,w[6],w[3]);M.detach(M.indexOf(i))}}const
r=this._adjustIndex(e),o=this._lContainer;!function iM(t,i,e,n){const
s=10+n,r=e.length;n>0&&(e[s-1][4]=i),n<r-10?(i[4]=e[s],x_(e,10+n,i)):(e.push(i),i[4]=null),i[3]=e;const
o=i[17];null!==o&&e!==o&&function sM(t,i){const
e=t[9];i[16]!==i[3][3][16]&&(t[2]=!0),null===e?t[9]=[i]:e.push(i)}(o,i);const
u=i[19];null!==u&&u.insertView(t),i[2]|=128}(s,n,o,r);const
u=Op(r,o),h=n[11],b=hc(h,o[7]);return null!==b&&function
eM(t,i,e,n,s,r){n[0]=s,n[6]=i,ya(t,n,e,1,s,r)}(s,o[6],h,n,b,u),i.attachToViewContainerRef(),x_(Uh(o),r,i),i}move(i,e){return
this.insert(i,e)}indexOf(i){const e=fC(this._lContainer);return
null!==e?e.indexOf(i):-1}remov
e(i){const
e=this._adjustIndex(i,-1),n=Ep(this._lContainer,e);n&&(lc(Uh(this._lContainer),e),J_(n[1],n))}detach(i){const
e=this._adjustIndex(i,-1),n=Ep(this._lContainer,e);return
n&&null!=lc(Uh(this._lContainer),e)?new qa(n):null}_adjustIndex(i,e=0){return
null==i?this.length+e:i}};function fC(t){return t[8]}function Uh(t){return
t[8]||(t[8]=[])}function gC(t,i){let e;const n=i[t.index];if(Ei(n))e=n;else{let
s;if(8&t.type)s=Yt(n);else{const r=i[11];s=r.createComment("");const
o=Zn(t,i);lr(r,hc(r,o),s,function lM(t,i){return
$t(t)?t.nextSibling(i):i.nextSibling}(r,o),!1)}i[t.index]=e=Yb(n,i,s,t),Sc(i,e)}return new
mC(e,t,i)}class zh{constructor(i){this.queryList=i,this.matches=null}clone(){return new
zh(this.queryList)}setDirty(){this.queryList.setDirty()}}class
jh{constructor(i=[]){this.queries=i}createEmbeddedView(i){const
e=i.queries;if(null!==e){const
n=null!==i.contentQueries?i.contentQueries[0]:e.length,s=[];for(let r=0;r<n;r++){const
o=e.getByIndex(r);s.push(this.queries[o.ind
exInDeclarationView].clone())}return new jh(s)}return
null}insertView(i){this.dirtyQueriesWithMatches(i)}detachView(i){this.dirtyQueriesWithMatches(i)}dirtyQueriesWithMatches(i){for(let
e=0;e<this.queries.length;e++)null!==yC(i,e).matches&&this.queries[e].setDirty()}}class
_C{constructor(i,e,n=null){this.predicate=i,this.flags=e,this.read=n}}class
$h{constructor(i=[]){this.queries=i}elementStart(i,e){for(let
n=0;n<this.queries.length;n++)this.queries[n].elementStart(i,e)}elementEnd(i){for(let
e=0;e<this.queries.length;e++)this.queries[e].elementEnd(i)}embeddedTView(i){let
e=null;for(let n=0;n<this.length;n++){const
s=null!==e?e.length:0,r=this.getByIndex(n).embeddedTView(i,s);r&&(r.indexInDeclarationView=n,null!==e?e.push(r):e=[r])}return
null!==e?new $h(e):null}template(i,e){for(let
n=0;n<this.queries.length;n++)this.queries[n].template(i,e)}getByIndex(i){return
this.queries[i]}get length(){return
this.queries.length}track(i){this.queries.push(i)}}class Wh{constructor(i,e=-1){this.
metadata=i,this.matches=null,this.indexInDeclarationView=-1,this.crossesNgTemplate=!1,this._appliesToNextNode=!0,this._declarationNodeIndex=e}elementStart(i,e){this.isApplyingToNode(e)&&this.matchTNode(i,e)}elementEnd(i){this._declarationNodeIndex===i.index&&(this._appliesToNextNode=!1)}template(i,e){this.elementStart(i,e)}embeddedTView(i,e){return
this.isApplyingToNode(i)?(this.crossesNgTemplate=!0,this.addMatch(-i.index,e),new
Wh(this.metadata)):null}isApplyingToNode(i){if(this._appliesToNextNode&&1!=(1&this.metadata.flags)){const
e=this._declarationNodeIndex;let
n=i.parent;for(;null!==n&&8&n.type&&n.index!==e;)n=n.parent;return
e===(null!==n?n.index:-1)}return this._appliesToNextNode}matchTNode(i,e){const
n=this.metadata.predicate;if(Array.isArray(n))for(let s=0;s<n.length;s++){const
r=n[s];this.matchTNodeWithReadOption(i,e,sR(e,r)),this.matchTNodeWithReadOption(i,e,ac(e,i,r,!1,!1))}else
n===bi?4&e.type&&this.matchTNodeWithReadOption(i,e,-1):this.matchTNodeWithReadOption(i,e,ac(e
,i,n,!1,!1))}matchTNodeWithReadOption(i,e,n){if(null!==n){const
s=this.metadata.read;if(null!==s)if(s===De||s===vi||s===bi&&4&e.type)this.addMatch(e.index,-2);else{const
r=ac(e,i,s,!1,!1);null!==r&&this.addMatch(e.index,r)}else
this.addMatch(e.index,n)}}addMatch(i,e){null===this.matches?this.matches=[i,e]:this.matches.push(i,e)}}function
sR(t,i){const e=t.localNames;if(null!==e)for(let n=0;n<e.length;n+=2)if(e[n]===i)return
e[n+1];return null}function oR(t,i,e,n){return-1===e?function rR(t,i){return
11&t.type?So(t,i):4&t.type?Nc(t,i):null}(i,t):-2===e?function aR(t,i,e){return
e===De?So(i,t):e===bi?Nc(i,t):e===vi?gC(i,t):void 0}(t,i,n):ca(t,t[1],e,i)}function
bC(t,i,e,n){const s=i[19].queries[n];if(null===s.matches){const
r=t.data,o=e.matches,u=[];for(let h=0;h<o.length;h+=2){const
b=o[h];u.push(b<0?null:oR(i,r[b],o[h+1],e.metadata.read))}s.matches=u}return
s.matches}function Kh(t,i,e,n){const
s=t.queries.getByIndex(e),r=s.matches;if(null!==r){const o=bC(t,i,s,e);for(let
u=0;u<r.len
gth;u+=2){const h=r[u];if(h>0)n.push(o[u/2]);else{const b=r[u+1],y=i[-h];for(let
w=10;w<y.length;w++){const
M=y[w];M[17]===M[3]&&Kh(M[1],M,b,n)}if(null!==y[9]){const w=y[9];for(let
M=0;M<w.length;M++){const E=w[M];Kh(E[1],E,b,n)}}}}}return n}function V(t){const
i=$(),e=tt(),n=r_();ap(n+1);const
s=yC(e,n);if(t.dirty&&Zg(i)===(2==(2&s.metadata.flags))){if(null===s.matches)t.reset([]);else{const
r=s.crossesNgTemplate?Kh(e,i,n,[]):bC(e,i,s,n);t.reset(r,OE),t.notifyOnChanges()}return!0}return!1}function
W(t,i,e){const n=tt();n.firstCreatePass&&(CC(n,new
_C(t,i,e),-1),2==(2&i)&&(n.staticViewQueries=!0)),vC(n,$(),i)}function
st(t,i,e,n){const s=tt();if(s.firstCreatePass){const r=rn();CC(s,new
_C(i,e,n),r.index),function cR(t,i){const
e=t.contentQueries||(t.contentQueries=[]);i!==(e.length?e[e.length-1]:-1)&&e.push(t.queries.length-1,i)}(s,t),2==(2&e)&&(s.staticContentQueries=!0)}vC(s,$(),e)}function
B(){return function lR(t,i){return t[19].queries[i].queryList}($(),r_())}function
vC(t,i,e)
{const n=new Gh(4==(4&e));Ub(t,i,n,n.destroy),null===i[19]&&(i[19]=new
jh),i[19].queries.push(new zh(n))}function
CC(t,i,e){null===t.queries&&(t.queries=new $h),t.queries.track(new
Wh(i,e))}function yC(t,i){return t.queries.getByIndex(i)}function we(t,i){return
Nc(t,i)}function Hc(...t){}const em=new be("Application Initializer");let
tm=(()=>{class
t{constructor(e){this.appInits=e,this.resolve=Hc,this.reject=Hc,this.initialized=!1,this.done=!1,this.donePromise=new
Promise((n,s)=>{this.resolve=n,this.reject=s})}runInitializers(){if(this.initialized)return;const
e=[],n=()=>{this.done=!0,this.resolve()};if(this.appInits)for(let
s=0;s<this.appInits.length;s++){const r=this.appInits[s]();if(Ra(r))e.push(r);else
if(Dh(r)){const o=new
Promise((u,h)=>{r.subscribe({complete:u,error:h})});e.push(o)}}Promise.all(e).then(()=>{n()}).catch(s=>{this.reject(s)}),0===e.length&&n(),this.initialized=!0}}return
t.\u0275fac=function(e){return
new(e||t)(K(em,8))},t.\u0275prov=X({token:t,factory:t.\u0275f
ac,providedIn:"root"}),t})();const ja=new
be("AppId",{providedIn:"root",factory:function
VC(){return`${nm()}${nm()}${nm()}`}});function nm(){return
String.fromCharCode(97+Math.floor(25*Math.random()))}const BC=new be("Platform
Initializer"),qc=new be("Platform
ID",{providedIn:"platform",factory:()=>"unknown"}),HC=new
be("appBootstrapListener");let DR=(()=>{class
t{log(e){console.log(e)}warn(e){console.warn(e)}}return t.\u0275fac=function(e){return
new(e||t)},t.\u0275prov=X({token:t,factory:t.\u0275fac,providedIn:"platform"}),t})();const
qs=new
be("LocaleId",{providedIn:"root",factory:()=>O_(qs,xe.Optional|xe.SkipSelf)||function
MR(){return"undefined"!=typeof
$localize&&$localize.locale||Rc}()});class
IR{constructor(i,e){this.ngModuleFactory=i,this.componentFactories=e}}let
qC=(()=>{class t{compileModuleSync(e){return new Bh(e)}compileModuleAsync(e){return
Promise.resolve(this.compileModuleSync(e))}compileModuleAndAllComponentsSync(e){const
n=this.compileModuleSync(e),r=Zi(pi(e).decl
arations).reduce((o,u)=>{const h=Tn(u);return h&&o.push(new
Vh(h)),o},[]);return new IR(n,r)}compileModuleAndAllComponentsAsync(e){return
Promise.resolve(this.compileModuleAndAllComponentsSync(e))}clearCache(){}clearCacheFor(e){}getModuleId(e){}}return
t.\u0275fac=function(e){return
new(e||t)},t.\u0275prov=X({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();const
RR=(()=>Promise.resolve(0))();function im(t){"undefined"==typeof
Zone?RR.then(()=>{t&&t.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",t)}class
nt{constructor({enableLongStackTrace:i=!1,shouldCoalesceEventChangeDetection:e=!1,shouldCoalesceRunChangeDetection:n=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new
H(!1),this.onMicrotaskEmpty=new H(!1),this.onStable=new H(!1),this.onError=new
H(!1),"undefined"==typeof Zone)throw new Error("In this configuration
Angular requires Zone.js");Zone.assertZonePatched();const
s=this;s._nesting=0,s._outer=s._
inner=Zone.current,Zone.TaskTrackingZoneSpec&&(s._inner=s._inner.fork(new
Zone.TaskTrackingZoneSpec)),i&&Zone.longStackTraceZoneSpec&&(s._inner=s._inner.fork(Zone.longStackTraceZoneSpec)),s.shouldCoalesceEventChangeDetection=!n&&e,s.shouldCoalesceRunChangeDetection=n,s.lastRequestAnimationFrameId=-1,s.nativeRequestAnimationFrame=function
LR(){let
t=vt.requestAnimationFrame,i=vt.cancelAnimationFrame;if("undefined"!=typeof
Zone&&t&&i){const
e=t[Zone.__symbol__("OriginalDelegate")];e&&(t=e);const
n=i[Zone.__symbol__("OriginalDelegate")];n&&(i=n)}return{nativeRequestAnimationFrame:t,nativeCancelAnimationFrame:i}}().nativeRequestAnimationFrame,function
PR(t){const i=()=>{!function
AR(t){t.isCheckStableRunning||-1!==t.lastRequestAnimationFrameId||(t.lastRequestAnimationFrameId=t.nativeRequestAnimationFrame.call(vt,()=>{t.fakeTopEventTask||(t.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{t.lastRequestAnimationFrameId=-1,rm(t),t.isCheckStableRunning=!0,sm(t),t.isCheck
StableRunning=!1},void
0,()=>{},()=>{})),t.fakeTopEventTask.invoke()}),rm(t))}(t)};t._inner=t._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(e,n,s,r,o,u)=>{try{return
GC(t),e.invokeTask(s,r,o,u)}finally{(t.shouldCoalesceEventChangeDetection&&"eventTask"===r.type||t.shouldCoalesceRunChangeDetection)&&i(),UC(t)}},onInvoke:(e,n,s,r,o,u,h)=>{try{return
GC(t),e.invoke(s,r,o,u,h)}finally{t.shouldCoalesceRunChangeDetection&&i(),UC(t)}},onHasTask:(e,n,s,r)=>{e.hasTask(s,r),n===s&&("microTask"==r.change?(t._hasPendingMicrotasks=r.microTask,rm(t),sm(t)):"macroTask"==r.change&&(t.hasPendingMacrotasks=r.macroTask))},onHandleError:(e,n,s,r)=>(e.handleError(s,r),t.runOutsideAngular(()=>t.onError.emit(r)),!1)})}(s)}static
isInAngularZone(){return"undefined"!=typeof
Zone&&!0===Zone.current.get("isAngularZone")}static
assertInAngularZone(){if(!nt.isInAngularZone())throw new Error("Expected to be in
Angular Zone, but it is not!")}static assertNotInAngularZone(){if(nt.isInAngu
larZone())throw new Error("Expected to not be in Angular Zone, but it
is!")}run(i,e,n){return this._inner.run(i,e,n)}runTask(i,e,n,s){const
r=this._inner,o=r.scheduleEventTask("NgZoneEvent: "+s,i,OR,Hc,Hc);try{return
r.runTask(o,e,n)}finally{r.cancelTask(o)}}runGuarded(i,e,n){return
this._inner.runGuarded(i,e,n)}runOutsideAngular(i){return this._outer.run(i)}}const
OR={};function
sm(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
rm(t){t.hasPendingMicrotasks=!!(t._hasPendingMicrotasks||(t.shouldCoalesceEventChangeDetection||t.shouldCoalesceRunChangeDetection)&&-1!==t.lastRequestAnimationFrameId)}function
GC(t){t._nesting++,t.isStable&&(t.isStable=!1,t.onUnstable.emit(null))}function
UC(t){t._nesting--,sm(t)}class
FR{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isSta
ble=!0,this.onUnstable=new H,this.onMicrotaskEmpty=new H,this.onStable=new
H,this.onError=new H}run(i,e,n){return i.apply(e,n)}runGuarded(i,e,n){return
i.apply(e,n)}runOutsideAngular(i){return i()}runTask(i,e,n,s){return i.apply(e,n)}}let
om=(()=>{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:()=>{nt.assertNotInAngularZone(),im(()=>{this._isZoneStable=!0,this._runCallbacksIfReady()})}})})}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())im(()=>{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(n=>!n.updateCb||!n.updateCb(e)||(clearTimeout(n.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,n,s){let
r=-1;n&&n>0&&(r=setTimeout(()=>{this._callbacks=this._callbacks.filter(o=>o.timeoutId!==r),e(this._didWork,this.getPendingTasks())},n)),this._callbacks.push({doneCb:e,timeoutId:r,updateCb:s})}whenStable(e,n,s){if(s&&!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,n,s),this._runCallbacksIfReady()}getPendingRequestCount(){return
this._pendingCount}findProviders(e,n,s){return[]}}return t.\u0275fac=function(e){return
new(e||t)(K(nt))},t.\u0275prov=X({token:t,factory:t.\u0275fac}),t})(),NR=(()=>{class
t{constructor(){this._applications=new
Map,am.addToWindow(this)}registerApplication(e,n){this._applications.set(e,n)}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())}findTestabilityInTree(e,n=!0){return
am.findTestabilityInTree(this,e,n)}}return t.\u0275fac=function(e){return
new(e||t)},t.\u0275prov=X({token:t,factory:t.\u0275fac,providedIn:"platform"}),t})();class
VR{addToWindow(i){}findTestabilityInTr
ee(i,e,n){return null}}let am=new VR,hr=null;const zC=new
be("AllowMultipleToken"),jC=new be("PlatformOnDestroy");class
$C{constructor(i,e){this.name=i,this.token=e}}function WC(t,i,e=[]){const n=`Platform:
${i}`,s=new be(n);return(r=[])=>{let o=lm();if(!o||o.injector.get(zC,!1)){const
u=[...e,...r,{provide:s,useValue:!0}];t?t(u):function
GR(t){if(hr&&!hr.get(zC,!1))throw new re(400,"");hr=t;const
i=t.get(KC),e=t.get(BC,null);e&&e.forEach(n=>n())}(function zR(t=[],i){return
En.create({name:i,providers:[{provide:hh,useValue:"platform"},{provide:jC,useValue:()=>hr=null},...t]})}(u,n))}return
function UR(t){const i=lm();if(!i)throw new re(401,"");return i}()}}function
lm(){var t;return null!==(t=null==hr?void 0:hr.get(KC))&&void 0!==t?t:null}let
KC=(()=>{class
t{constructor(e){this._injector=e,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(e,n){const
u=function jR(t,i){let e;return e="noop"===t?new
FR:("zone.js"===t?void 0:t)||new nt({enableLongSta
ckTrace:!1,shouldCoalesceEventChangeDetection:!!(null==i?void
0:i.ngZoneEventCoalescing),shouldCoalesceRunChangeDetection:!!(null==i?void
0:i.ngZoneRunCoalescing)}),e}(n?n.ngZone:void
0,{ngZoneEventCoalescing:n&&n.ngZoneEventCoalescing||!1,ngZoneRunCoalescing:n&&n.ngZoneRunCoalescing||!1}),h=[{provide:nt,useValue:u}];return
u.run(()=>{const
b=En.create({providers:h,parent:this.injector,name:e.moduleType.name}),y=e.create(b),w=y.injector.get(xa,null);if(!w)throw
new re(402,"");return u.runOutsideAngular(()=>{const
M=u.onError.subscribe({next:E=>{w.handleError(E)}});y.onDestroy(()=>{um(this._modules,y),M.unsubscribe()})}),function
$R(t,i,e){try{const n=e();return Ra(n)?n.catch(s=>{throw
i.runOutsideAngular(()=>t.handleError(s)),s}):n}catch(n){throw
i.runOutsideAngular(()=>t.handleError(n)),n}}(w,u,()=>{const
M=y.injector.get(tm);return M.runInitializers(),M.donePromise.then(()=>(function
A3(t){Jn(t,"Expected localeId to be defined"),"string"==typeof
t&&(k1=t.toLowerCase().replace(/_/g
,"-"))}(y.injector.get(qs,Rc)||Rc),this._moduleDoBootstrap(y),y))})})}bootstrapModule(e,n=[]){const
s=QC({},n);return function HR(t,i,e){const n=new Bh(e);return
Promise.resolve(n)}(0,0,e).then(r=>this.bootstrapModuleFactory(r,s))}_moduleDoBootstrap(e){const
n=e.injector.get(cm);if(e._bootstrapComponents.length>0)e._bootstrapComponents.forEach(s=>n.bootstrap(s));else{if(!e.instance.ngDoBootstrap)throw
new
re(403,"");e.instance.ngDoBootstrap(n)}this._modules.push(e)}onDestroy(e){this._destroyListeners.push(e)}get
injector(){return this._injector}destroy(){if(this._destroyed)throw new
re(404,"");this._modules.slice().forEach(n=>n.destroy()),this._destroyListeners.forEach(n=>n());const
e=this._injector.get(jC,null);null==e||e(),this._destroyed=!0}get destroyed(){return
this._destroyed}}return t.\u0275fac=function(e){return
new(e||t)(K(En))},t.\u0275prov=X({token:t,factory:t.\u0275fac,providedIn:"platform"}),t})();function
QC(t,i){return Array.isArray(i)?i.reduce(QC,t):Object.assign(Obj
ect.assign({},t),i)}let cm=(()=>{class
t{constructor(e,n,s,r){this._zone=e,this._injector=n,this._exceptionHandler=s,this._initStatus=r,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
o=new
Je(h=>{this._stable=this._zone.isStable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks,this._zone.runOutsideAngular(()=>{h.next(this._stable),h.complete()})}),u=new
Je(h=>{let
b;this._zone.runOutsideAngular(()=>{b=this._zone.onStable.subscribe(()=>{nt.assertNotInAngularZone(),im(()=>{!this._stable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks&&(this._stable=!0,h.next(!0))})})});const
y=this._zone.onUnstable.subscribe(()=>{nt.assertInAngularZone(),this._stable&&(this._stable=!1,this._zone.runOutsideAngular(()=>{h.next(!1)}))});return()=>{b.unsubscribe(),y.un
subscribe()}});this.isStable=function YS(...t){let
i=Number.POSITIVE_INFINITY,e=null,n=t[t.length-1];return
Vr(n)?(e=t.pop(),t.length>1&&"number"==typeof
t[t.length-1]&&(i=t.pop())):"number"==typeof
n&&(i=t.pop()),null===e&&1===t.length&&t[0]instanceof
Je?t[0]:ea(i)(Pd(t,e))}(o,u.pipe(function ox(){return t=>Fd()(function ix(t,i){return
function(n){let s;if(s="function"==typeof t?t:function(){return
t},"function"==typeof i)return n.lift(new sx(s,i));const
r=Object.create(n,ex);return
r.source=n,r.subjectFactory=s,r}}(rx)(t))}()))}bootstrap(e,n){if(!this._initStatus.done)throw
new re(405,"");let s;s=e instanceof
X1?e:this._injector.get(Va).resolveComponentFactory(e),this.componentTypes.push(s.componentType);const
r=function qR(t){return t.isBoundToModule}(s)?void
0:this._injector.get(_s),u=s.create(En.NULL,[],n||s.selector,r),h=u.location.nativeElement,b=u.injector.get(om,null),y=b&&u.injector.get(NR);return
b&&y&&y.registerApplication(h,b),u.onDestroy(()=>{this.detachView(u.hostView
),um(this.components,u),y&&y.unregisterApplication(h)}),this._loadComponent(u),u}tick(){if(this._runningTick)throw
new re(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
n=e;this._views.push(n),n.attachToAppRef(this)}detachView(e){const
n=e;um(this._views,n),n.detachFromAppRef()}_loadComponent(e){this.attachView(e.hostView),this.tick(),this.components.push(e),this._injector.get(HC,[]).concat(this._bootstrapListeners).forEach(s=>s(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)(K(nt),K(En),K(xa),K(tm))},t.\u0275prov=X({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();function
um(t,i){const e=t.indexOf(i);e>-1&&t.splice(e,1)}let
YC=!0,ZC=!1,rt=(()=>{class t{}return t.__NG_
ELEMENT_ID__=JR,t})();function JR(t){return function
YR(t,i,e){if(Wl(t)&&!e){const n=Xn(t.index,i);return new qa(n,n)}return
47&t.type?new qa(i[16],i):null}(rn(),$(),16==(16&t))}class
ny{constructor(){}supports(i){return Ia(i)}create(i){return new iL(i)}}const
nL=(t,i)=>i;class
iL{constructor(i){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=i||nL}forEachItem(i){let
e;for(e=this._itHead;null!==e;e=e._next)i(e)}forEachOperation(i){let
e=this._itHead,n=this._removalsHead,s=0,r=null;for(;e||n;){const
o=!n||e&&e.currentIndex<sy(n,s,r)?e:n,u=sy(o,s,r),h=o.currentIndex;if(o===n)s--,n=n._nextRemoved;else
if(e=e._next,null==o.previousIndex)s++;else{r||(r=[]);const b=u-s,y=h-s;if(b!=y){for(let
M=0;
M<b;M++){const
E=M<r.length?r[M]:r[M]=0,L=E+M;y<=L&&L<b&&(r[M]=E+1)}r[o.previousIndex]=y-b}}u!==h&&i(o,u,h)}}forEachPreviousItem(i){let
e;for(e=this._previousItHead;null!==e;e=e._nextPrevious)i(e)}forEachAddedItem(i){let
e;for(e=this._additionsHead;null!==e;e=e._nextAdded)i(e)}forEachMovedItem(i){let
e;for(e=this._movesHead;null!==e;e=e._nextMoved)i(e)}forEachRemovedItem(i){let
e;for(e=this._removalsHead;null!==e;e=e._nextRemoved)i(e)}forEachIdentityChange(i){let
e;for(e=this._identityChangesHead;null!==e;e=e._nextIdentityChange)i(e)}diff(i){if(null==i&&(i=[]),!Ia(i))throw
new re(900,"");return
this.check(i)?this:null}onDestroy(){}check(i){this._reset();let
s,r,o,e=this._itHead,n=!1;if(Array.isArray(i)){this.length=i.length;for(let
u=0;u<this.length;u++)r=i[u],o=this._trackByFn(u,r),null!==e&&Object.is(e.trackById,o)?(n&&(e=this._verifyReinsertion(e,r,o,u)),Object.is(e.item,r)||this._addIdentityChange(e,r)):(e=this._mismatch(e,r,o,u),n=!0),e=e._next}else
s=0,function CI(t,i){if(Arra
y.isArray(t))for(let e=0;e<t.length;e++)i(t[e]);else{const e=t[lo()]();let
n;for(;!(n=e.next()).done;)i(n.value)}}(i,u=>{o=this._trackByFn(s,u),null!==e&&Object.is(e.trackById,o)?(n&&(e=this._verifyReinsertion(e,u,o,s)),Object.is(e.item,u)||this._addIdentityChange(e,u)):(e=this._mismatch(e,u,o,s),n=!0),e=e._next,s++}),this.length=s;return
this._truncate(e),this.collection=i,this.isDirty}get isDirty(){return
null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let
i;for(i=this._previousItHead=this._itHead;null!==i;i=i._next)i._nextPrevious=i._next;for(i=this._additionsHead;null!==i;i=i._nextAdded)i.previousIndex=i.currentIndex;for(this._additionsHead=this._additionsTail=null,i=this._movesHead;null!==i;i=i._nextMoved)i.previousIndex=i.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(i,e,n,s)
{let r;return
null===i?r=this._itTail:(r=i._prev,this._remove(i)),null!==(i=null===this._unlinkedRecords?null:this._unlinkedRecords.get(n,null))?(Object.is(i.item,e)||this._addIdentityChange(i,e),this._reinsertAfter(i,r,s)):null!==(i=null===this._linkedRecords?null:this._linkedRecords.get(n,s))?(Object.is(i.item,e)||this._addIdentityChange(i,e),this._moveAfter(i,r,s)):i=this._addAfter(new
sL(e,n),r,s),i}_verifyReinsertion(i,e,n,s){let
r=null===this._unlinkedRecords?null:this._unlinkedRecords.get(n,null);return
null!==r?i=this._reinsertAfter(r,i._prev,s):i.currentIndex!=s&&(i.currentIndex=s,this._addToMoves(i,s)),i}_truncate(i){for(;null!==i;){const
e=i._next;this._addToRemovals(this._unlink(i)),i=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._nextRemove
d=null),null!==this._identityChangesTail&&(this._identityChangesTail._nextIdentityChange=null)}_reinsertAfter(i,e,n){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(i);const
s=i._prevRemoved,r=i._nextRemoved;return
null===s?this._removalsHead=r:s._nextRemoved=r,null===r?this._removalsTail=s:r._prevRemoved=s,this._insertAfter(i,e,n),this._addToMoves(i,n),i}_moveAfter(i,e,n){return
this._unlink(i),this._insertAfter(i,e,n),this._addToMoves(i,n),i}_addAfter(i,e,n){return
this._insertAfter(i,e,n),this._additionsTail=null===this._additionsTail?this._additionsHead=i:this._additionsTail._nextAdded=i,i}_insertAfter(i,e,n){const
s=null===e?this._itHead:e._next;return
i._next=s,i._prev=e,null===s?this._itTail=i:s._prev=i,null===e?this._itHead=i:e._next=i,null===this._linkedRecords&&(this._linkedRecords=new
iy),this._linkedRecords.put(i),i.currentIndex=n,i}_remove(i){return
this._addToRemovals(this._unlink(i))}_unlink(i){null!==this._linkedRecords&&this._linkedRecords.remove(i);const
e=i._prev,n=i._next;return
null===e?this._itHead=n:e._next=n,null===n?this._itTail=e:n._prev=e,i}_addToMoves(i,e){return
i.previousIndex===e||(this._movesTail=null===this._movesTail?this._movesHead=i:this._movesTail._nextMoved=i),i}_addToRemovals(i){return
null===this._unlinkedRecords&&(this._unlinkedRecords=new
iy),this._unlinkedRecords.put(i),i.currentIndex=null,i._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=i,i._prevRemoved=null):(i._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=i),i}_addIdentityChange(i,e){return
i.item=e,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=i:this._identityChangesTail._nextIdentityChange=i,i}}class
sL{constructor(i,e){this.item=i,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._next
Added=null,this._nextMoved=null,this._nextIdentityChange=null}}class
rL{constructor(){this._head=null,this._tail=null}add(i){null===this._head?(this._head=this._tail=i,i._nextDup=null,i._prevDup=null):(this._tail._nextDup=i,i._prevDup=this._tail,i._nextDup=null,this._tail=i)}get(i,e){let
n;for(n=this._head;null!==n;n=n._nextDup)if((null===e||e<=n.currentIndex)&&Object.is(n.trackById,i))return
n;return null}remove(i){const e=i._prevDup,n=i._nextDup;return
null===e?this._head=n:e._nextDup=n,null===n?this._tail=e:n._prevDup=e,null===this._head}}class
iy{constructor(){this.map=new Map}put(i){const e=i.trackById;let
n=this.map.get(e);n||(n=new rL,this.map.set(e,n)),n.add(i)}get(i,e){const
s=this.map.get(i);return s?s.get(i,e):null}remove(i){const e=i.trackById;return
this.map.get(e).remove(i)&&this.map.delete(e),i}get isEmpty(){return
0===this.map.size}clear(){this.map.clear()}}function sy(t,i,e){const
n=t.previousIndex;if(null===n)return n;let s=0;return
e&&n<e.length&&(s=e[n]),n+i+s}cl
ass ry{constructor(){}supports(i){return i instanceof Map||vh(i)}create(){return new
oL}}class oL{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(i){let
e;for(e=this._mapHead;null!==e;e=e._next)i(e)}forEachPreviousItem(i){let
e;for(e=this._previousMapHead;null!==e;e=e._nextPrevious)i(e)}forEachChangedItem(i){let
e;for(e=this._changesHead;null!==e;e=e._nextChanged)i(e)}forEachAddedItem(i){let
e;for(e=this._additionsHead;null!==e;e=e._nextAdded)i(e)}forEachRemovedItem(i){let
e;for(e=this._removalsHead;null!==e;e=e._nextRemoved)i(e)}diff(i){if(i){if(!(i instanceof
Map||vh(i)))throw new re(900,"")}else i=new Map;return
this.check(i)?this:null}onDestroy(){}check(i){this._reset();
let
e=this._mapHead;if(this._appendAfter=null,this._forEach(i,(n,s)=>{if(e&&e.key===s)this._maybeAddToChanges(e,n),this._appendAfter=e,e=e._next;else{const
r=this._getOrCreateRecordForKey(s,n);e=this._insertBeforeOrAppend(e,r)}}),e){e._prev&&(e._prev._next=null),this._removalsHead=e;for(let
n=e;null!==n;n=n._nextRemoved)n===this._mapHead&&(this._mapHead=null),this._records.delete(n.key),n._nextRemoved=n._next,n.previousValue=n.currentValue,n.currentValue=null,n._prev=null,n._next=null}return
this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(i,e){if(i){const
n=i._prev;return
e._next=i,e._prev=n,i._prev=e,n&&(n._next=e),i===this._mapHead&&(this._mapHead=e),this._appendAfter=i,i}return
this._appendAfter?(this._appendAfter._next=e,e._prev=this._appendAfter):this._mapHead=e,this._appendAfter=e,null}_getOrCreateRecordForKey(i,e){if(this._records.has(i)){const
s=this._records.get(i);this._m
aybeAddToChanges(s,e);const r=s._prev,o=s._next;return
r&&(r._next=o),o&&(o._prev=r),s._next=null,s._prev=null,s}const n=new
aL(i);return
this._records.set(i,n),n.currentValue=e,this._addToAdditions(n),n}_reset(){if(this.isDirty){let
i;for(this._previousMapHead=this._mapHead,i=this._previousMapHead;null!==i;i=i._next)i._nextPrevious=i._next;for(i=this._changesHead;null!==i;i=i._nextChanged)i.previousValue=i.currentValue;for(i=this._additionsHead;null!=i;i=i._nextAdded)i.previousValue=i.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(i,e){Object.is(e,i.currentValue)||(i.previousValue=i.currentValue,i.currentValue=e,this._addToChanges(i))}_addToAdditions(i){null===this._additionsHead?this._additionsHead=this._additionsTail=i:(this._additionsTail._nextAdded=i,this._additionsTail=i)}_addToChanges(i){null===this._changesHead?this._changesHead=this._changesTail=i:(this._changesTail._nextChanged=
i,this._changesTail=i)}_forEach(i,e){i instanceof
Map?i.forEach(e):Object.keys(i).forEach(n=>e(i[n],n))}}class
aL{constructor(i){this.key=i,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
oy(){return new $a([new ny])}let $a=(()=>{class
t{constructor(e){this.factories=e}static create(e,n){if(null!=n){const
s=n.factories.slice();e=e.concat(s)}return new t(e)}static
extend(e){return{provide:t,useFactory:n=>t.create(e,n||oy()),deps:[[t,new _a,new
Ns]]}}find(e){const n=this.factories.find(s=>s.supports(e));if(null!=n)return n;throw
new re(901,"")}}return
t.\u0275prov=X({token:t,providedIn:"root",factory:oy}),t})();function
ay(){return new Wa([new ry])}let Wa=(()=>{class
t{constructor(e){this.factories=e}static create(e,n){if(n){const
s=n.factories.slice();e=e.concat(s)}return new t(e)}static
extend(e){return{provide:t,useFactory:n=>t.create(e,n||ay()),deps:[
[t,new _a,new Ns]]}}find(e){const n=this.factories.find(r=>r.supports(e));if(n)return
n;throw new re(901,"")}}return
t.\u0275prov=X({token:t,providedIn:"root",factory:ay}),t})();const
uL=WC(null,"core",[]);let dL=(()=>{class t{constructor(e){}}return
t.\u0275fac=function(e){return
new(e||t)(K(cm))},t.\u0275mod=he({type:t}),t.\u0275inj=ue({}),t})(),zc=null;function
ns(){return zc}const Xt=new be("DocumentToken");let fr=(()=>{class
t{historyGo(e){throw new Error("Not implemented")}}return
t.\u0275fac=function(e){return
new(e||t)},t.\u0275prov=X({token:t,factory:function(){return function fL(){return
K(ly)}()},providedIn:"platform"}),t})();const gL=new be("Location
Initialized");let ly=(()=>{class t extends
fr{constructor(e){super(),this._doc=e,this._init()}_init(){this.location=window.location,this._history=window.history}getBaseHrefFromDOM(){return
ns().getBaseHref(this._doc)}onPopState(e){const
n=ns().getGlobalEventTarget(this._doc,"window");return
n.addEventListener("popstate",e,!1
),()=>n.removeEventListener("popstate",e)}onHashChange(e){const
n=ns().getGlobalEventTarget(this._doc,"window");return
n.addEventListener("hashchange",e,!1),()=>n.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,n,s){cy()?this._history.pushState(e,n,s):this.location.hash=s}replaceState(e,n,s){cy()?this._history.replaceState(e,n,s):this.location.hash=s}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)(K(Xt))},t.\u0275prov=X({token:t,factory:function(){return function _L(){return
new ly(K(Xt))}()},providedIn:"platform"}),t})();funct
ion cy(){return!!window.history.pushState}function fm(t,i){if(0==t.length)return
i;if(0==i.length)return t;let e=0;return
t.endsWith("/")&&e++,i.startsWith("/")&&e++,2==e?t+i.substring(1):1==e?t+i:t+"/"+i}function
uy(t){const i=t.match(/#|\?|$/),e=i&&i.index||t.length;return
t.slice(0,e-("/"===t[e-1]?1:0))+t.slice(e)}function bs(t){return
t&&"?"!==t[0]?"?"+t:t}let ko=(()=>{class
t{historyGo(e){throw new Error("Not implemented")}}return
t.\u0275fac=function(e){return
new(e||t)},t.\u0275prov=X({token:t,factory:function(){return function bL(t){const
i=K(Xt).location;return new
dy(K(fr),i&&i.origin||"")}()},providedIn:"root"}),t})();const
gm=new be("appBaseHref");let dy=(()=>{class t extends
ko{constructor(e,n){if(super(),this._platformLocation=e,this._removeListenerFns=[],null==n&&(n=this._platformLocation.getBaseHrefFromDOM()),null==n)throw
new Error("No base href set. Please provide a value for the APP_BASE_HREF token or
add a base element to the document.");this._baseHref=n}ngOnDest
roy(){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 fm(this._baseHref,e)}path(e=!1){const
n=this._platformLocation.pathname+bs(this._platformLocation.search),s=this._platformLocation.hash;return
s&&e?`${n}${s}`:n}pushState(e,n,s,r){const
o=this.prepareExternalUrl(s+bs(r));this._platformLocation.pushState(e,n,o)}replaceState(e,n,s,r){const
o=this.prepareExternalUrl(s+bs(r));this._platformLocation.replaceState(e,n,o)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}historyGo(e=0){var
n,s;null===(s=(n=this._platformLocation).historyGo)||void 0===s||s.call(n,e)}}return
t.\u0275fac=function(e){return
new(e||t)(K(fr),K(gm,8))},t.\u0275prov=X({token:t,factory:t.\u0275fac}),t})(),vL=(()=>{class
t extends ko{constructor(e,n){super(),this._platformLocation=e
,this._baseHref="",this._removeListenerFns=[],null!=n&&(this._baseHref=n)}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 n=this._platformLocation.hash;return
null==n&&(n="#"),n.length>0?n.substring(1):n}prepareExternalUrl(e){const
n=fm(this._baseHref,e);return n.length>0?"#"+n:n}pushState(e,n,s,r){let
o=this.prepareExternalUrl(s+bs(r));0==o.length&&(o=this._platformLocation.pathname),this._platformLocation.pushState(e,n,o)}replaceState(e,n,s,r){let
o=this.prepareExternalUrl(s+bs(r));0==o.length&&(o=this._platformLocation.pathname),this._platformLocation.replaceState(e,n,o)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}historyGo(e=0){var
n,s;null===(s=(n=this._platformLocation).historyGo)||void 0===s||s.call(n,e)}}return
t.\u0275fac=function(e){re
turn
new(e||t)(K(fr),K(gm,8))},t.\u0275prov=X({token:t,factory:t.\u0275fac}),t})(),_m=(()=>{class
t{constructor(e,n){this._subject=new
H,this._urlChangeListeners=[],this._platformStrategy=e;const
s=this._platformStrategy.getBaseHref();this._platformLocation=n,this._baseHref=uy(py(s)),this._platformStrategy.onPopState(r=>{this._subject.emit({url:this.path(!0),pop:!0,state:r.state,type:r.type})})}path(e=!1){return
this.normalize(this._platformStrategy.path(e))}getState(){return
this._platformLocation.getState()}isCurrentPathEqualTo(e,n=""){return
this.path()==this.normalize(e+bs(n))}normalize(e){return t.stripTrailingSlash(function
yL(t,i){return
t&&i.startsWith(t)?i.substring(t.length):i}(this._baseHref,py(e)))}prepareExternalUrl(e){return
e&&"/"!==e[0]&&(e="/"+e),this._platformStrategy.prepareExternalUrl(e)}go(e,n="",s=null){this._platformStrategy.pushState(s,"",e,n),this._notifyUrlChangeListeners(this.prepareExternalUrl(e+bs(n)),s)}replaceState(e,n="",s=null){this._platformStrategy
.replaceState(s,"",e,n),this._notifyUrlChangeListeners(this.prepareExternalUrl(e+bs(n)),s)}forward(){this._platformStrategy.forward()}back(){this._platformStrategy.back()}historyGo(e=0){var
n,s;null===(s=(n=this._platformStrategy).historyGo)||void
0===s||s.call(n,e)}onUrlChange(e){this._urlChangeListeners.push(e),this._urlChangeSubscription||(this._urlChangeSubscription=this.subscribe(n=>{this._notifyUrlChangeListeners(n.url,n.state)}))}_notifyUrlChangeListeners(e="",n){this._urlChangeListeners.forEach(s=>s(e,n))}subscribe(e,n,s){return
this._subject.subscribe({next:e,error:n,complete:s})}}return
t.normalizeQueryParams=bs,t.joinWithSlash=fm,t.stripTrailingSlash=uy,t.\u0275fac=function(e){return
new(e||t)(K(ko),K(fr))},t.\u0275prov=X({token:t,factory:function(){return function
CL(){return new _m(K(ko),K(fr))}()},providedIn:"root"}),t})();function
py(t){return t.replace(/\/index.html$/,"")}var
Wn=(()=>((Wn=Wn||{})[Wn.Decimal=0]="Decimal",Wn[Wn.Percent=1]="Percent",Wn[Wn.Currency=2]="C
urrency",Wn[Wn.Scientific=3]="Scientific",Wn))(),ge=(()=>((ge=ge||{})[ge.Decimal=0]="Decimal",ge[ge.Group=1]="Group",ge[ge.List=2]="List",ge[ge.PercentSign=3]="PercentSign",ge[ge.PlusSign=4]="PlusSign",ge[ge.MinusSign=5]="MinusSign",ge[ge.Exponential=6]="Exponential",ge[ge.SuperscriptingExponent=7]="SuperscriptingExponent",ge[ge.PerMille=8]="PerMille",ge[ge.Infinity=9]="Infinity",ge[ge.NaN=10]="NaN",ge[ge.TimeSeparator=11]="TimeSeparator",ge[ge.CurrencyDecimal=12]="CurrencyDecimal",ge[ge.CurrencyGroup=13]="CurrencyGroup",ge))();function
Ci(t,i){const e=Hn(t),n=e[te.NumberSymbols][i];if(void
0===n){if(i===ge.CurrencyDecimal)return
e[te.NumberSymbols][ge.Decimal];if(i===ge.CurrencyGroup)return
e[te.NumberSymbols][ge.Group]}return n}const WL=/^(\d+)?\.((\d+)(-(\d+))?)?$/;function
xm(t){const i=parseInt(t);if(isNaN(i))throw new Error("Invalid integer literal when
parsing "+t);return i}function yy(t,i){i=encodeURIComponent(i);for(const e of
t.split(";")){const n=e.indexOf("="),[s,r]=-1==
n?[e,""]:[e.slice(0,n),e.slice(n+1)];if(s.trim()===i)return
decodeURIComponent(r)}return null}let Le=(()=>{class
t{constructor(e,n,s,r){this._iterableDiffers=e,this._keyValueDiffers=n,this._ngEl=s,this._renderer=r,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&&(Ia(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._keyValueDiffer.diff(this._rawClass);e&&this._applyKeyValueChanges(e)}}_applyKeyValueChanges(e){e.forEachAddedItem(n=>this._toggleClass(n.key,n.currentValue)),e.forEachChangedItem(n=>this._toggleClass(n.key,n.currentValue)),e.forEachRemovedItem(n=>{n.previousValue&&this._toggleClass(n.key,!1)})}_applyIterableChanges(e){e.forEachAddedItem(n=>{if("string"!=typeof
n.item)throw new Error(`NgClass can only toggle CSS classes expressed as strings, got
${ft(n.item)}`);this._toggleClass(n.item,!0)}),e.forEachRemovedItem(n=>this._toggleClass(n.item,!1))}_applyClasses(e){e&&(Array.isArray(e)||e
instanceof
Set?e.forEach(n=>this._toggleClass(n,!0)):Object.keys(e).forEach(n=>this._toggleClass(n,!!e[n])))}_removeClasses(e){e&&(Array.isArray(e)||e
instanceof
Set?e.forEach(n=>this._toggleClass(n,!1)):Object.keys(e).forEach(n=>this._toggleClass(n,!1)))}_toggleClass(e,n){(e=e.trim())&&e.split(/\s+/g).forEach(s=>{n?this._renderer.addClass(this._ngEl.nativeEle
ment,s):this._renderer.removeClass(this._ngEl.nativeElement,s)})}}return
t.\u0275fac=function(e){return
new(e||t)(D($a),D(Wa),D(De),D(gn))},t.\u0275dir=le({type:t,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"}}),t})();class
o4{constructor(i,e,n,s){this.$implicit=i,this.ngForOf=e,this.index=n,this.count=s}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 at=(()=>{class
t{constructor(e,n,s){this._viewContainer=e,this._template=n,this._differs=s,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;!this._differ&&e&&(this._differ=this._differs.find(e).create(this.ngForTrackBy))}if(this._differ){const
e=th
is._differ.diff(this._ngForOf);e&&this._applyChanges(e)}}_applyChanges(e){const
n=this._viewContainer;e.forEachOperation((s,r,o)=>{if(null==s.previousIndex)n.createEmbeddedView(this._template,new
o4(s.item,this._ngForOf,-1,-1),null===o?void 0:o);else if(null==o)n.remove(null===r?void
0:r);else if(null!==r){const u=n.get(r);n.move(u,o),wy(u,s)}});for(let
s=0,r=n.length;s<r;s++){const
u=n.get(s).context;u.index=s,u.count=r,u.ngForOf=this._ngForOf}e.forEachIdentityChange(s=>{wy(n.get(s.currentIndex),s)})}static
ngTemplateContextGuard(e,n){return!0}}return t.\u0275fac=function(e){return
new(e||t)(D(vi),D(bi),D($a))},t.\u0275dir=le({type:t,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"}}),t})();function
wy(t,i){t.context.$implicit=i.item}let Q=(()=>{class
t{constructor(e,n){this._viewContainer=e,this._context=new
a4,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=n
ull,this._thenTemplateRef=n}set
ngIf(e){this._context.$implicit=this._context.ngIf=e,this._updateView()}set
ngIfThen(e){Ty("ngIfThen",e),this._thenTemplateRef=e,this._thenViewRef=null,this._updateView()}set
ngIfElse(e){Ty("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,n){return!0}}return t.\u0275fac=function(e){return
new(e||t)(D(vi),D(bi))},t.\u0275dir=le({type:t,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"}}),t})();class
a4{constructor(){this.$implicit=null,this.n
gIf=null}}function Ty(t,i){if(i&&!i.createEmbeddedView)throw new Error(`${t} must
be a TemplateRef, but received '${ft(i)}'.`)}class
Mm{constructor(i,e){this._viewContainerRef=i,this._templateRef=e,this._created=!1}create(){this._created=!0,this._viewContainerRef.createEmbeddedView(this._templateRef)}destroy(){this._created=!1,this._viewContainerRef.clear()}enforceState(i){i&&!this._created?this.create():!i&&this._created&&this.destroy()}}let
gr=(()=>{class
t{constructor(){this._defaultUsed=!1,this._caseCount=0,this._lastCaseCheckIndex=0,this._lastCasesMatched=!1}set
ngSwitch(e){this._ngSwitch=e,0===this._caseCount&&this._updateDefaultCases(!0)}_addCase(){return
this._caseCount++}_addDefault(e){this._defaultViews||(this._defaultViews=[]),this._defaultViews.push(e)}_matchCase(e){const
n=e==this._ngSwitch;return
this._lastCasesMatched=this._lastCasesMatched||n,this._lastCaseCheckIndex++,this._lastCaseCheckIndex===this._caseCount&&(this._updateDefaultCases(!this._lastCasesMatched),this
._lastCaseCheckIndex=0,this._lastCasesMatched=!1),n}_updateDefaultCases(e){if(this._defaultViews&&e!==this._defaultUsed){this._defaultUsed=e;for(let
n=0;n<this._defaultViews.length;n++)this._defaultViews[n].enforceState(e)}}}return
t.\u0275fac=function(e){return
new(e||t)},t.\u0275dir=le({type:t,selectors:[["","ngSwitch",""]],inputs:{ngSwitch:"ngSwitch"}}),t})(),Ja=(()=>{class
t{constructor(e,n,s){this.ngSwitch=s,s._addCase(),this._view=new
Mm(e,n)}ngDoCheck(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase))}}return
t.\u0275fac=function(e){return
new(e||t)(D(vi),D(bi),D(gr,9))},t.\u0275dir=le({type:t,selectors:[["","ngSwitchCase",""]],inputs:{ngSwitchCase:"ngSwitchCase"}}),t})(),km=(()=>{class
t{constructor(e,n,s){s._addDefault(new Mm(e,n))}}return t.\u0275fac=function(e){return
new(e||t)(D(vi),D(bi),D(gr,9))},t.\u0275dir=le({type:t,selectors:[["","ngSwitchDefault",""]]}),t})(),lt=(()=>{class
t{constructor(e,n,s){this._ngEl=e,this._differs=n,this._renderer=s,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,n){const[s,r]=e.split(".");null!=(n=null!=n&&r?`${n}${r}`:n)?this._renderer.setStyle(this._ngEl.nativeElement,s,n):this._renderer.removeStyle(this._ngEl.nativeElement,s)}_applyChanges(e){e.forEachRemovedItem(n=>this._setStyle(n.key,null)),e.forEachAddedItem(n=>this._setStyle(n.key,n.currentValue)),e.forEachChangedItem(n=>this._setStyle(n.key,n.currentValue))}}return
t.\u0275fac=function(e){return
new(e||t)(D(De),D(Wa),D(gn))},t.\u0275dir=le({type:t,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"}}),t})(),Rt=(()=>{class
t{constructor(e){this._viewContainerRef=e,this._viewRef=null,this.ngTemplateOutletContext=null,this.ngTemplateOutlet=null}ngOnChanges(e){if(e.ngTemplateOutlet){const
n=this._viewContainerRef;this._viewRef&&n.remove(n.indexOf(thi
s._viewRef)),this._viewRef=this.ngTemplateOutlet?n.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)(D(vi))},t.\u0275dir=le({type:t,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet"},features:[fn]}),t})();function
Vi(t,i){return new re(2100,"")}class c4{createSubscription(i,e){return
i.subscribe({next:e,error:n=>{throw
n}})}dispose(i){i.unsubscribe()}onDestroy(i){i.unsubscribe()}}class
u4{createSubscription(i,e){return i.then(e,n=>{throw
n})}dispose(i){}onDestroy(i){}}const d4=new u4,p4=new c4;let xy=(()=>{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,n=>this._updateLatestValue(e,n))}_selectStrategy(e){if(Ra(e))return
d4;if(qv(e))return p4;throw
Vi()}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null}_updateLatestValue(e,n){e===this._obj&&(this._latestValue=n,this._ref.markForCheck())}}return
t.\u0275fac=function(e){return
new(e||t)(D(rt,16))},t.\u0275pipe=An({name:"async",type:t,pure:!1}),t})(),eu=(()=>{class
t{constructor(e){this._locale=e}transform(e,n,s){if(!function
Im(t){return!(null==t||""===t||t!=t)}(e))return
null;s=s||this._locale;try{return function XL(t,i,e){return function
Tm(t,i,e,n,s,r,o=!1){let u="",h=!1;if(isFinite(t)){let b=function t4(t){let
n,s,r,o,u,i=Math.abs(t)+"",e=0;for((s=i.indexOf("."))>-1&&(i=i.replace(".","")),(
r=i.search(/e/i))>0?(s<0&&(s=r),s+=+i.slice(r+1),i=i.substring(0,r)):s<0&&(s=i.length),r=0;"0"===i.charAt(r);r++);if(r===(u=i.length))n=[0],s=1;else{for(u--;"0"===i.charAt(u);)u--;for(s-=r,n=[],o=0;r<=u;r++,o++)n[o]=Number(i.charAt(r))}return
s>22&&(n=n.splice(0,21),e=s-1,s=1),{digits:n,exponent:e,integerLen:s}}(t);o&&(b=function
e4(t){if(0===t.digits[0])return t;const i=t.digits.length-t.integerLen;return
t.exponent?t.exponent+=2:(0===i?t.digits.push(0,0):1===i&&t.digits.push(0),t.integerLen+=2),t}(b));let
y=i.minInt,w=i.minFrac,M=i.maxFrac;if(r){const P=r.match(WL);if(null===P)throw new
Error(`${r} is not a valid digit info`);const
J=P[1],se=P[3],ke=P[5];null!=J&&(y=xm(J)),null!=se&&(w=xm(se)),null!=ke?M=xm(ke):null!=se&&w>M&&(M=w)}!function
n4(t,i,e){if(i>e)throw new Error(`The minimum number of digits after fraction (${i}) is
higher than the maximum (${e}).`);let n=t.digits,s=n.length-t.integerLen;const
r=Math.min(Math.max(i,s),e);let o=r+t.integerLen,u=n[o];if(o>0){n.splice(Mat
h.max(t.integerLen,o));for(let
w=o;w<n.length;w++)n[w]=0}else{s=Math.max(0,s),t.integerLen=1,n.length=Math.max(1,o=r+1),n[0]=0;for(let
w=1;w<o;w++)n[w]=0}if(u>=5)if(o-1<0){for(let
w=0;w>o;w--)n.unshift(0),t.integerLen++;n.unshift(1),t.integerLen++}else
n[o-1]++;for(;s<Math.max(0,r);s++)n.push(0);let h=0!==r;const
b=i+t.integerLen,y=n.reduceRight(function(w,M,E,L){return
L[E]=(M+=w)<10?M:M-10,h&&(0===L[E]&&E>=b?L.pop():h=!1),M>=10?1:0},0);y&&(n.unshift(y),t.integerLen++)}(b,w,M);let
E=b.digits,L=b.integerLen;const O=b.exponent;let
N=[];for(h=E.every(P=>!P);L<y;L++)E.unshift(0);for(;L<0;L++)E.unshift(0);L>0?N=E.splice(L,E.length):(N=E,E=[0]);const
G=[];for(E.length>=i.lgSize&&G.unshift(E.splice(-i.lgSize,E.length).join(""));E.length>i.gSize;)G.unshift(E.splice(-i.gSize,E.length).join(""));E.length&&G.unshift(E.join("")),u=G.join(Ci(e,n)),N.length&&(u+=Ci(e,s)+N.join("")),O&&(u+=Ci(e,ge.Exponential)+"+"+O)}else
u=Ci(e,ge.Infinity);return u=t<0&&!h?i.negPre+u+i.negSuf:i.posPre+u+i.posSu
f,u}(t,function Sm(t,i="-"){const
e={minInt:1,minFrac:0,maxFrac:0,posPre:"",posSuf:"",negPre:"",negSuf:"",gSize:0,lgSize:0},n=t.split(";"),s=n[0],r=n[1],o=-1!==s.indexOf(".")?s.split("."):[s.substring(0,s.lastIndexOf("0")+1),s.substring(s.lastIndexOf("0")+1)],u=o[0],h=o[1]||"";e.posPre=u.substr(0,u.indexOf("#"));for(let
y=0;y<h.length;y++){const
w=h.charAt(y);"0"===w?e.minFrac=e.maxFrac=y+1:"#"===w?e.maxFrac=y+1:e.posSuf+=w}const
b=u.split(",");if(e.gSize=b[1]?b[1].length:0,e.lgSize=b[2]||b[1]?(b[2]||b[1]).length:0,r){const
y=s.length-e.posPre.length-e.posSuf.length,w=r.indexOf("#");e.negPre=r.substr(0,w).replace(/'/g,""),e.negSuf=r.substr(w+y).replace(/'/g,"")}else
e.negPre=i+e.posPre,e.negSuf=e.posSuf;return e}(function bm(t,i){return
Hn(t)[te.NumberFormats][i]}(i,Wn.Decimal),Ci(i,ge.MinusSign)),i,ge.Group,ge.Decimal,e)}(function
Em(t){if("string"==typeof t&&!isNaN(Number(t)-parseFloat(t)))return
Number(t);if("number"!=typeof t)throw new Error(`${t} is not a number`);return
t}(e),
s,n)}catch(r){throw Vi()}}}return t.\u0275fac=function(e){return
new(e||t)(D(qs,16))},t.\u0275pipe=An({name:"number",type:t,pure:!0}),t})();let
My=(()=>{class t{transform(e,n,s){if(null==e)return null;if(!this.supports(e))throw
Vi();return e.slice(n,s)}supports(e){return"string"==typeof
e||Array.isArray(e)}}return t.\u0275fac=function(e){return
new(e||t)},t.\u0275pipe=An({name:"slice",type:t,pure:!1}),t})(),Fe=(()=>{class
t{}return t.\u0275fac=function(e){return
new(e||t)},t.\u0275mod=he({type:t}),t.\u0275inj=ue({}),t})();const
ky="browser";let R4=(()=>{class t{}return
t.\u0275prov=X({token:t,providedIn:"root",factory:()=>new
L4(K(Xt),window)}),t})();class
L4{constructor(i,e){this.document=i,this.window=e,this.offset=()=>[0,0]}setOffset(i){this.offset=Array.isArray(i)?()=>i:i}getScrollPosition(){return
this.supportsScrolling()?[this.window.pageXOffset,this.window.pageYOffset]:[0,0]}scrollToPosition(i){this.supportsScrolling()&&this.window.scrollTo(i[0],i[1])}scrollToAnchor(i){if(!th
is.supportsScrolling())return;const e=function O4(t,i){const
e=t.getElementById(i)||t.getElementsByName(i)[0];if(e)return
e;if("function"==typeof
t.createTreeWalker&&t.body&&(t.body.createShadowRoot||t.body.attachShadow)){const
n=t.createTreeWalker(t.body,NodeFilter.SHOW_ELEMENT);let s=n.currentNode;for(;s;){const
r=s.shadowRoot;if(r){const
o=r.getElementById(i)||r.querySelector(`[name="${i}"]`);if(o)return
o}s=n.nextNode()}}return
null}(this.document,i);e&&(this.scrollToElement(e),e.focus())}setHistoryScrollRestoration(i){if(this.supportScrollRestoration()){const
e=this.window.history;e&&e.scrollRestoration&&(e.scrollRestoration=i)}}scrollToElement(i){const
e=i.getBoundingClientRect(),n=e.left+this.window.pageXOffset,s=e.top+this.window.pageYOffset,r=this.offset();this.window.scrollTo(n-r[0],s-r[1])}supportScrollRestoration(){try{if(!this.supportsScrolling())return!1;const
i=Iy(this.window.history)||Iy(Object.getPrototypeOf(this.window.history));return!(!i||!i.writable&&!i.set)}cat
ch(i){return!1}}supportsScrolling(){try{return!!this.window&&!!this.window.scrollTo&&"pageXOffset"in
this.window}catch(i){return!1}}}function Iy(t){return
Object.getOwnPropertyDescriptor(t,"scrollRestoration")}class Ey{}class Rm
extends class A4 extends class
mL{}{constructor(){super(...arguments),this.supportsDOMEvents=!0}}{static
makeCurrent(){!function hL(t){zc||(zc=t)}(new Rm)}onAndCancel(i,e,n){return
i.addEventListener(e,n,!1),()=>{i.removeEventListener(e,n,!1)}}dispatchEvent(i,e){i.dispatchEvent(e)}remove(i){i.parentNode&&i.parentNode.removeChild(i)}createElement(i,e){return(e=e||this.getDefaultDocument()).createElement(i)}createHtmlDocument(){return
document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return
document}isElementNode(i){return i.nodeType===Node.ELEMENT_NODE}isShadowRoot(i){return i
instanceof
DocumentFragment}getGlobalEventTarget(i,e){return"window"===e?window:"document"===e?i:"body"===e?i.body:null}getBaseHref(i){const
e=function P4(){r
eturn
Ya=Ya||document.querySelector("base"),Ya?Ya.getAttribute("href"):null}();return
null==e?null:function
F4(t){tu=tu||document.createElement("a"),tu.setAttribute("href",t);const
i=tu.pathname;return"/"===i.charAt(0)?i:`/${i}`}(e)}resetBaseElement(){Ya=null}getUserAgent(){return
window.navigator.userAgent}getCookie(i){return yy(document.cookie,i)}}let tu,Ya=null;const
Ry=new be("TRANSITION_ID"),V4=[{provide:em,useFactory:function
N4(t,i,e){return()=>{e.get(tm).donePromise.then(()=>{const
n=ns(),s=i.querySelectorAll(`style[ng-transition="${t}"]`);for(let
r=0;r<s.length;r++)n.remove(s[r])})}},deps:[Ry,Xt,En],multi:!0}];class Lm{static
init(){!function BR(t){am=t}(new
Lm)}addToWindow(i){vt.getAngularTestability=(n,s=!0)=>{const
r=i.findTestabilityInTree(n,s);if(null==r)throw new Error("Could not find testability
for element.");return
r},vt.getAllAngularTestabilities=()=>i.getAllTestabilities(),vt.getAllAngularRootElements=()=>i.getAllRootElements(),vt.frameworkStabilizers||(vt.framew
orkStabilizers=[]),vt.frameworkStabilizers.push(n=>{const
s=vt.getAllAngularTestabilities();let r=s.length,o=!1;const
u=function(h){o=o||h,r--,0==r&&n(o)};s.forEach(function(h){h.whenStable(u)})})}findTestabilityInTree(i,e,n){if(null==e)return
null;const s=i.getTestability(e);return
null!=s?s:n?ns().isShadowRoot(e)?this.findTestabilityInTree(i,e.host,!0):this.findTestabilityInTree(i,e.parentElement,!0):null}}let
B4=(()=>{class t{build(){return new XMLHttpRequest}}return
t.\u0275fac=function(e){return
new(e||t)},t.\u0275prov=X({token:t,factory:t.\u0275fac}),t})();const nu=new
be("EventManagerPlugins");let iu=(()=>{class
t{constructor(e,n){this._zone=n,this._eventNameToPlugin=new
Map,e.forEach(s=>s.manager=this),this._plugins=e.slice().reverse()}addEventListener(e,n,s){return
this._findPluginFor(n).addEventListener(e,n,s)}addGlobalEventListener(e,n,s){return
this._findPluginFor(n).addGlobalEventListener(e,n,s)}getZone(){return
this._zone}_findPluginFor(e){const n=this._eventNameToPlug
in.get(e);if(n)return n;const s=this._plugins;for(let r=0;r<s.length;r++){const
o=s[r];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)(K(nu),K(nt))},t.\u0275prov=X({token:t,factory:t.\u0275fac}),t})();class
Ly{constructor(i){this._doc=i}addGlobalEventListener(i,e,n){const
s=ns().getGlobalEventTarget(this._doc,i);if(!s)throw new Error(`Unsupported event target
${s} for event ${e}`);return this.addEventListener(s,e,n)}}let Oy=(()=>{class
t{constructor(){this._stylesSet=new Set}addStyles(e){const n=new
Set;e.forEach(s=>{this._stylesSet.has(s)||(this._stylesSet.add(s),n.add(s))}),this.onStylesAdded(n)}onStylesAdded(e){}getAllStyles(){return
Array.from(this._stylesSet)}}return t.\u0275fac=function(e){return
new(e||t)},t.\u0275prov=X({token:t,factory:t.\u0275fac}),t})(),Za=(()=>{class t extends
Oy{constructor(e){super(),this._doc=e,this._hostNodes=new Map,this._hostN
odes.set(e.head,[])}_addStylesToHost(e,n,s){e.forEach(r=>{const
o=this._doc.createElement("style");o.textContent=r,s.push(n.appendChild(o))})}addHost(e){const
n=[];this._addStylesToHost(this._stylesSet,e,n),this._hostNodes.set(e,n)}removeHost(e){const
n=this._hostNodes.get(e);n&&n.forEach(Ay),this._hostNodes.delete(e)}onStylesAdded(e){this._hostNodes.forEach((n,s)=>{this._addStylesToHost(e,s,n)})}ngOnDestroy(){this._hostNodes.forEach(e=>e.forEach(Ay))}}return
t.\u0275fac=function(e){return
new(e||t)(K(Xt))},t.\u0275prov=X({token:t,factory:t.\u0275fac}),t})();function
Ay(t){ns().remove(t)}const
Om={svg:"http://www.w3.org/2000/svg",xhtml:"http://www.w3....
su(t,i,e){for(let n=0;n<i.length;n++){let
s=i[n];Array.isArray(s)?su(t,s,e):(s=s.replace(Am,t),e.push(s))}return e}function
Ny(t){return i=>{if
("__ngUnwrap__"===i)return
t;!1===t(i)&&(i.preventDefault(),i.returnValue=!1)}}let ru=(()=>{class
t{constructor(e,n,s){this.eventManager=e,this.sharedStylesHost=n,this.appId=s,this.rendererByCompId=new
Map,this.defaultRenderer=new Pm(e)}createRenderer(e,n){if(!e||!n)return
this.defaultRenderer;switch(n.encapsulation){case ki.Emulated:{let
s=this.rendererByCompId.get(n.id);return s||(s=new
j4(this.eventManager,this.sharedStylesHost,n,this.appId),this.rendererByCompId.set(n.id,s)),s.applyToHost(e),s}case
1:case ki.ShadowDom:return new
$4(this.eventManager,this.sharedStylesHost,e,n);default:if(!this.rendererByCompId.has(n.id)){const
s=su(n.id,n.styles,[]);this.sharedStylesHost.addStyles(s),this.rendererByCompId.set(n.id,this.defaultRenderer)}return
this.defaultRenderer}}begin(){}end(){}}return t.\u0275fac=function(e){return
new(e||t)(K(iu),K(Za),K(ja))},t.\u0275prov=X({token:t,factory:t.\u0275fac}),t})();class
Pm{constructor(i){this.eventManager=i,this.data=Object.create(null),this.des
troyNode=null}destroy(){}createElement(i,e){return
e?document.createElementNS(Om[e]||e,i):document.createElement(i)}createComment(i){return
document.createComment(i)}createText(i){return
document.createTextNode(i)}appendChild(i,e){i.appendChild(e)}insertBefore(i,e,n){i&&i.insertBefore(e,n)}removeChild(i,e){i&&i.removeChild(e)}selectRootElement(i,e){let
n="string"==typeof i?document.querySelector(i):i;if(!n)throw new Error(`The
selector "${i}" did not match any elements`);return
e||(n.textContent=""),n}parentNode(i){return i.parentNode}nextSibling(i){return
i.nextSibling}setAttribute(i,e,n,s){if(s){e=s+":"+e;const
r=Om[s];r?i.setAttributeNS(r,e,n):i.setAttribute(e,n)}else
i.setAttribute(e,n)}removeAttribute(i,e,n){if(n){const
s=Om[n];s?i.removeAttributeNS(s,e):i.removeAttribute(`${n}:${e}`)}else
i.removeAttribute(e)}addClass(i,e){i.classList.add(e)}removeClass(i,e){i.classList.remove(e)}setStyle(i,e,n,s){s&(ti.DashCase|ti.Important)?i.style.setProperty(e,n,s&ti.Important?"important":
""):i.style[e]=n}removeStyle(i,e,n){n&ti.DashCase?i.style.removeProperty(e):i.style[e]=""}setProperty(i,e,n){i[e]=n}setValue(i,e){i.nodeValue=e}listen(i,e,n){return"string"==typeof
i?this.eventManager.addGlobalEventListener(i,e,Ny(n)):this.eventManager.addEventListener(i,e,Ny(n))}}class
j4 extends Pm{constructor(i,e,n,s){super(i),this.component=n;const
r=su(s+"-"+n.id,n.styles,[]);e.addStyles(r),this.contentAttr=function
G4(t){return"_ngcontent-%COMP%".replace(Am,t)}(s+"-"+n.id),this.hostAttr=function
U4(t){return"_nghost-%COMP%".replace(Am,t)}(s+"-"+n.id)}applyToHost(i){super.setAttribute(i,this.hostAttr,"")}createElement(i,e){const
n=super.createElement(i,e);return
super.setAttribute(n,this.contentAttr,""),n}}class $4 extends
Pm{constructor(i,e,n,s){super(i),this.sharedStylesHost=e,this.hostEl=n,this.shadowRoot=n.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const
r=su(s.id,s.styles,[]);for(let o=0;o<r.length;o++){const
u=document.createElement("style"
);u.textContent=r[o],this.shadowRoot.appendChild(u)}}nodeOrShadowRoot(i){return
i===this.hostEl?this.shadowRoot:i}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}appendChild(i,e){return
super.appendChild(this.nodeOrShadowRoot(i),e)}insertBefore(i,e,n){return
super.insertBefore(this.nodeOrShadowRoot(i),e,n)}removeChild(i,e){return
super.removeChild(this.nodeOrShadowRoot(i),e)}parentNode(i){return
this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(i)))}}let W4=(()=>{class t
extends Ly{constructor(e){super(e)}supports(e){return!0}addEventListener(e,n,s){return
e.addEventListener(n,s,!1),()=>this.removeEventListener(e,n,s)}removeEventListener(e,n,s){return
e.removeEventListener(n,s)}}return t.\u0275fac=function(e){return
new(e||t)(K(Xt))},t.\u0275prov=X({token:t,factory:t.\u0275fac}),t})();const
By=["alt","control","meta","shift"],Q4={"\b":"Backspace","\t":"Tab","\x7f":"Delete","\x1b":"Escape",Del:"Delete",Esc:"Escape",Left:"ArrowLeft",Right:"ArrowRight",Up:"ArrowU
p",Down:"ArrowDown",Menu:"ContextMenu",Scroll:"ScrollLock",Win:"OS"},Hy={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"},J4={alt:t=>t.altKey,control:t=>t.ctrlKey,meta:t=>t.metaKey,shift:t=>t.shiftKey};let
Y4=(()=>{class t extends Ly{constructor(e){super(e)}supports(e){return
null!=t.parseEventName(e)}addEventListener(e,n,s){const
r=t.parseEventName(n),o=t.eventCallback(r.fullKey,s,this.manager.getZone());return
this.manager.getZone().runOutsideAngular(()=>ns().onAndCancel(e,r.domEventName,o))}static
parseEventName(e){const
n=e.toLowerCase().split("."),s=n.shift();if(0===n.length||"keydown"!==s&&"keyup"!==s)return
null;const r=t._normalizeKey(n.pop());let o="";if(By.forEach(h=>{const
b=n.indexOf(h);b>-1&&(n.splice(b,1),o+=h+".")}),o+=r,0!=n.length||0===r.length)return
null;const u={};return u.domEventName=s,u.fullKey=o,u}static getEventFullKey(e){let
n="",s=function Z4(t){let i=t.key;if(null==i){if(i=t.keyIdentifier,null==
i)return"Unidentified";i.startsWith("U+")&&(i=String.fromCharCode(parseInt(i.substring(2),16)),3===t.location&&Hy.hasOwnProperty(i)&&(i=Hy[i]))}return
Q4[i]||i}(e);return s=s.toLowerCase(),"
"===s?s="space":"."===s&&(s="dot"),By.forEach(r=>{r!=s&&J4[r](e)&&(n+=r+".")}),n+=s,n}static
eventCallback(e,n,s){return
r=>{t.getEventFullKey(r)===e&&s.runGuarded(()=>n(r))}}static
_normalizeKey(e){return"esc"===e?"escape":e}}return
t.\u0275fac=function(e){return
new(e||t)(K(Xt))},t.\u0275prov=X({token:t,factory:t.\u0275fac}),t})();const
nO=WC(uL,"browser",[{provide:qc,useValue:ky},{provide:BC,useValue:function
X4(){Rm.makeCurrent(),Lm.init()},multi:!0},{provide:Xt,useFactory:function tO(){return
function
Px(t){Zd=t}(document),document},deps:[]}]),iO=[{provide:hh,useValue:"root"},{provide:xa,useFactory:function
eO(){return new
xa},deps:[]},{provide:nu,useClass:W4,multi:!0,deps:[Xt,nt,qc]},{provide:nu,useClass:Y4,multi:!0,deps:[Xt]},{provide:ru,useClass:ru,deps:[iu,Za,ja]},{provide:Ba,useExistin
g:ru},{provide:Oy,useExisting:Za},{provide:Za,useClass:Za,deps:[Xt]},{provide:om,useClass:om,deps:[nt]},{provide:iu,useClass:iu,deps:[nu,nt]},{provide:Ey,useClass:B4,deps:[]}];let
qy=(()=>{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:ja,useValue:e.appId},{provide:Ry,useExisting:ja},V4]}}}return
t.\u0275fac=function(e){return
new(e||t)(K(t,12))},t.\u0275mod=he({type:t}),t.\u0275inj=ue({providers:iO,imports:[Fe,dL]}),t})();function
oe(...t){let i=t[t.length-1];return Vr(i)?(t.pop(),Ad(t,i)):Pd(t)}function _r(t,i){return
yn(t,i,1)}function Us(t,i){return function(n){return n.lift(new
mO(t,i))}}"undefined"!=typeof window&&window;class
mO{constructor(i,e){this.predicate=i,this.thisArg=e}call(i,e){return e.subscribe(new
fO(i,this.predicate,this.thisArg))}}class fO
extends
yt{constructor(i,e,n){super(i),this.predicate=e,this.thisArg=n,this.count=0}_next(i){let
e;try{e=this.predicate.call(this.thisArg,i,this.count++)}catch(n){return void
this.destination.error(n)}e&&this.destination.next(i)}}class zy{}class jy{}class
Cs{constructor(i){this.normalizedNames=new
Map,this.lazyUpdate=null,i?this.lazyInit="string"==typeof
i?()=>{this.headers=new Map,i.split("\n").forEach(e=>{const
n=e.indexOf(":");if(n>0){const
s=e.slice(0,n),r=s.toLowerCase(),o=e.slice(n+1).trim();this.maybeSetNormalizedName(s,r),this.headers.has(r)?this.headers.get(r).push(o):this.headers.set(r,[o])}})}:()=>{this.headers=new
Map,Object.keys(i).forEach(e=>{let n=i[e];const
s=e.toLowerCase();"string"==typeof
n&&(n=[n]),n.length>0&&(this.headers.set(s,n),this.maybeSetNormalizedName(e,s))})}:this.headers=new
Map}has(i){return this.init(),this.headers.has(i.toLowerCase())}get(i){this.init();const
e=this.headers.get(i.toLowerCase());return
e&&e.length>0?e[0]:null}keys(){return this.init
(),Array.from(this.normalizedNames.values())}getAll(i){return
this.init(),this.headers.get(i.toLowerCase())||null}append(i,e){return
this.clone({name:i,value:e,op:"a"})}set(i,e){return
this.clone({name:i,value:e,op:"s"})}delete(i,e){return
this.clone({name:i,value:e,op:"d"})}maybeSetNormalizedName(i,e){this.normalizedNames.has(e)||this.normalizedNames.set(e,i)}init(){this.lazyInit&&(this.lazyInit
instanceof
Cs?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(i=>this.applyUpdate(i)),this.lazyUpdate=null))}copyFrom(i){i.init(),Array.from(i.headers.keys()).forEach(e=>{this.headers.set(e,i.headers.get(e)),this.normalizedNames.set(e,i.normalizedNames.get(e))})}clone(i){const
e=new Cs;return e.lazyInit=this.lazyInit&&this.lazyInit instanceof
Cs?this.lazyInit:this,e.lazyUpdate=(this.lazyUpdate||[]).concat([i]),e}applyUpdate(i){const
e=i.name.toLowerCase();switch(i.op){case"a":case"s":let
n=i.value;if("string"==typeof n&&(n=[n]),0===n
.length)return;this.maybeSetNormalizedName(i.name,e);const
s=("a"===i.op?this.headers.get(e):void
0)||[];s.push(...n),this.headers.set(e,s);break;case"d":const
r=i.value;if(r){let
o=this.headers.get(e);if(!o)return;o=o.filter(u=>-1===r.indexOf(u)),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(i){this.init(),Array.from(this.normalizedNames.keys()).forEach(e=>i(this.normalizedNames.get(e),this.headers.get(e)))}}class
gO{encodeKey(i){return $y(i)}encodeValue(i){return $y(i)}decodeKey(i){return
decodeURIComponent(i)}decodeValue(i){return decodeURIComponent(i)}}const
bO=/%(\d[a-f0-9])/gi,vO={40:"@","3A":":",24:"$","2C":",","3B":";","2B":"+","3D":"=","3F":"?","2F":"/"};function
$y(t){return encodeURIComponent(t).replace(bO,(i,e)=>{var n;return
null!==(n=vO[e])&&void 0!==n?n:i})}function Wy(t){return`${t}`}class
ye{constructor(i={}){if(this.updates=null,this.cloneFrom=null,this.
encoder=i.encoder||new gO,i.fromString){if(i.fromObject)throw new Error("Cannot
specify both fromString and fromObject.");this.map=function _O(t,i){const e=new
Map;return
t.length>0&&t.replace(/^\?/,"").split("&").forEach(s=>{const
r=s.indexOf("="),[o,u]=-1==r?[i.decodeKey(s),""]:[i.decodeKey(s.slice(0,r)),i.decodeValue(s.slice(r+1))],h=e.get(o)||[];h.push(u),e.set(o,h)}),e}(i.fromString,this.encoder)}else
i.fromObject?(this.map=new Map,Object.keys(i.fromObject).forEach(e=>{const
n=i.fromObject[e];this.map.set(e,Array.isArray(n)?n:[n])})):this.map=null}has(i){return
this.init(),this.map.has(i)}get(i){this.init();const e=this.map.get(i);return
e?e[0]:null}getAll(i){return this.init(),this.map.get(i)||null}keys(){return
this.init(),Array.from(this.map.keys())}append(i,e){return
this.clone({param:i,value:e,op:"a"})}appendAll(i){const e=[];return
Object.keys(i).forEach(n=>{const
s=i[n];Array.isArray(s)?s.forEach(r=>{e.push({param:n,value:r,op:"a"})}):e.push({param:n,value:s,op:"a"})}),t
his.clone(e)}set(i,e){return
this.clone({param:i,value:e,op:"s"})}delete(i,e){return
this.clone({param:i,value:e,op:"d"})}toString(){return
this.init(),this.keys().map(i=>{const e=this.encoder.encodeKey(i);return
this.map.get(i).map(n=>e+"="+this.encoder.encodeValue(n)).join("&")}).filter(i=>""!==i).join("&")}clone(i){const
e=new ye({encoder:this.encoder});return
e.cloneFrom=this.cloneFrom||this,e.updates=(this.updates||[]).concat(i),e}init(){null===this.map&&(this.map=new
Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(i=>this.map.set(i,this.cloneFrom.map.get(i))),this.updates.forEach(i=>{switch(i.op){case"a":case"s":const
e=("a"===i.op?this.map.get(i.param):void
0)||[];e.push(Wy(i.value)),this.map.set(i.param,e);break;case"d":if(void
0===i.value){this.map.delete(i.param);break}{let n=this.map.get(i.param)||[];const
s=n.indexOf(Wy(i.value));-1!==s&&n.splice(s,1),n.length>0?this.map.set(i.param,n):this.map.delete(i.param)}}}),this.cloneFrom=this.upda
tes=null)}}class CO{constructor(){this.map=new Map}set(i,e){return
this.map.set(i,e),this}get(i){return
this.map.has(i)||this.map.set(i,i.defaultValue()),this.map.get(i)}delete(i){return
this.map.delete(i),this}has(i){return this.map.has(i)}keys(){return
this.map.keys()}}function Ky(t){return"undefined"!=typeof ArrayBuffer&&t
instanceof ArrayBuffer}function Qy(t){return"undefined"!=typeof Blob&&t
instanceof Blob}function Jy(t){return"undefined"!=typeof FormData&&t
instanceof FormData}class Xa{constructor(i,e,n,s){let
r;if(this.url=e,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=i.toUpperCase(),function
yO(t){switch(t){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||s?(this.body=void
0!==n?n:null,r=s):r=n,r&&(this.reportProgress=!!r.reportProgress,this.withCredentials=!!r.withCredentials,r.responseType&&(this.responseType=r.responseType),r.headers&&(this.headers=r.headers),r.con
text&&(this.context=r.context),r.params&&(this.params=r.params)),this.headers||(this.headers=new
Cs),this.context||(this.context=new CO),this.params){const
o=this.params.toString();if(0===o.length)this.urlWithParams=e;else{const
u=e.indexOf("?");this.urlWithParams=e+(-1===u?"?":u<e.length-1?"&":"")+o}}else
this.params=new ye,this.urlWithParams=e}serializeBody(){return
null===this.body?null:Ky(this.body)||Qy(this.body)||Jy(this.body)||function
wO(t){return"undefined"!=typeof URLSearchParams&&t instanceof
URLSearchParams}(this.body)||"string"==typeof this.body?this.body:this.body
instanceof ye?this.body.toString():"object"==typeof
this.body||"boolean"==typeof
this.body||Array.isArray(this.body)?JSON.stringify(this.body):this.body.toString()}detectContentTypeHeader(){return
null===this.body||Jy(this.body)?null:Qy(this.body)?this.body.type||null:Ky(this.body)?null:"string"==typeof
this.body?"text/plain":this.body instanceof
ye?"application/x-www-form-urlencoded;charset=UTF-8":"object"==
typeof this.body||"number"==typeof this.body||"boolean"==typeof
this.body?"application/json":null}clone(i={}){var e;const
n=i.method||this.method,s=i.url||this.url,r=i.responseType||this.responseType,o=void
0!==i.body?i.body:this.body,u=void
0!==i.withCredentials?i.withCredentials:this.withCredentials,h=void
0!==i.reportProgress?i.reportProgress:this.reportProgress;let
b=i.headers||this.headers,y=i.params||this.params;const
w=null!==(e=i.context)&&void 0!==e?e:this.context;return void
0!==i.setHeaders&&(b=Object.keys(i.setHeaders).reduce((M,E)=>M.set(E,i.setHeaders[E]),b)),i.setParams&&(y=Object.keys(i.setParams).reduce((M,E)=>M.set(E,i.setParams[E]),y)),new
Xa(n,s,o,{params:y,headers:b,context:w,reportProgress:h,responseType:r,withCredentials:u})}}var
nn=(()=>((nn=nn||{})[nn.Sent=0]="Sent",nn[nn.UploadProgress=1]="UploadProgress",nn[nn.ResponseHeader=2]="ResponseHeader",nn[nn.DownloadProgress=3]="DownloadProgress",nn[nn.Response=4]="Response",nn[nn.User=5]="User",nn))();class
Nm{co
nstructor(i,e=200,n="OK"){this.headers=i.headers||new Cs,this.status=void
0!==i.status?i.status:e,this.statusText=i.statusText||n,this.url=i.url||null,this.ok=this.status>=200&&this.status<300}}class
Vm extends Nm{constructor(i={}){super(i),this.type=nn.ResponseHeader}clone(i={}){return
new Vm({headers:i.headers||this.headers,status:void
0!==i.status?i.status:this.status,statusText:i.statusText||this.statusText,url:i.url||this.url||void
0})}}class ou extends Nm{constructor(i={}){super(i),this.type=nn.Response,this.body=void
0!==i.body?i.body:null}clone(i={}){return new ou({body:void
0!==i.body?i.body:this.body,headers:i.headers||this.headers,status:void
0!==i.status?i.status:this.status,statusText:i.statusText||this.statusText,url:i.url||this.url||void
0})}}class Yy extends Nm{constructor(i){super(i,0,"Unknown
Error"),this.name="HttpErrorResponse",this.ok=!1,this.message=this.status>=200&&this.status<300?`Http
failure during parsing for ${i.url||"(unknown url)"}`:`Http failure respo
nse for ${i.url||"(unknown url)"}: ${i.status}
${i.statusText}`,this.error=i.error||null}}function
Bm(t,i){return{body:i,headers:t.headers,context:t.context,observe:t.observe,params:t.params,reportProgress:t.reportProgress,responseType:t.responseType,withCredentials:t.withCredentials}}let
Bi=(()=>{class t{constructor(e){this.handler=e}request(e,n,s={}){let r;if(e instanceof
Xa)r=e;else{let h,b;h=s.headers instanceof Cs?s.headers:new
Cs(s.headers),s.params&&(b=s.params instanceof ye?s.params:new
ye({fromObject:s.params})),r=new Xa(e,n,void
0!==s.body?s.body:null,{headers:h,context:s.context,params:b,reportProgress:s.reportProgress,responseType:s.responseType||"json",withCredentials:s.withCredentials})}const
o=oe(r).pipe(_r(h=>this.handler.handle(h)));if(e instanceof
Xa||"events"===s.observe)return o;const u=o.pipe(Us(h=>h instanceof
ou));switch(s.observe||"body"){case"body":switch(r.responseType){case"arraybuffer":return
u.pipe(et(h=>{if(null!==h.body&&!(h.body instanceof ArrayBuffer
))throw new Error("Response is not an ArrayBuffer.");return
h.body}));case"blob":return u.pipe(et(h=>{if(null!==h.body&&!(h.body
instanceof Blob))throw new Error("Response is not a Blob.");return
h.body}));case"text":return
u.pipe(et(h=>{if(null!==h.body&&"string"!=typeof h.body)throw new
Error("Response is not a string.");return h.body}));default:return
u.pipe(et(h=>h.body))}case"response":return u;default:throw new
Error(`Unreachable: unhandled observe type ${s.observe}}`)}}delete(e,n={}){return
this.request("DELETE",e,n)}get(e,n={}){return
this.request("GET",e,n)}head(e,n={}){return
this.request("HEAD",e,n)}jsonp(e,n){return
this.request("JSONP",e,{params:(new
ye).append(n,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(e,n={}){return
this.request("OPTIONS",e,n)}patch(e,n,s={}){return
this.request("PATCH",e,Bm(s,n))}post(e,n,s={}){return
this.request("POST",e,Bm(s,n))}put(e,n,s={}){return
this.request("PUT",e,Bm(s,n))}}return t.\u0275fac=function(e){return new(e||t
)(K(zy))},t.\u0275prov=X({token:t,factory:t.\u0275fac}),t})();class
Zy{constructor(i,e){this.next=i,this.interceptor=e}handle(i){return
this.interceptor.intercept(i,this.next)}}const Xy=new
be("HTTP_INTERCEPTORS");let TO=(()=>{class t{intercept(e,n){return
n.handle(e)}}return t.\u0275fac=function(e){return
new(e||t)},t.\u0275prov=X({token:t,factory:t.\u0275fac}),t})();const
SO=/^\)\]\}',?\n/;let e0=(()=>{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 Je(n=>{const
s=this.xhrFactory.build();if(s.open(e.method,e.urlWithParams),e.withCredentials&&(s.withCredentials=!0),e.headers.forEach((E,L)=>s.setRequestHeader(E,L.join(","))),e.headers.has("Accept")||s.setRequestHeader("Accept","application/json,
text/plain, */*"),!e.headers.has("Content-Type")){const
E=e.detectContentTypeHeader();null!==E&&s.setRequestHeader("Content-Type",E)}if(e.responseType){const
E
=e.responseType.toLowerCase();s.responseType="json"!==E?E:"text"}const
r=e.serializeBody();let o=null;const u=()=>{if(null!==o)return o;const
E=s.statusText||"OK",L=new Cs(s.getAllResponseHeaders()),O=function
xO(t){return"responseURL"in
t&&t.responseURL?t.responseURL:/^X-Request-URL:/m.test(t.getAllResponseHeaders())?t.getResponseHeader("X-Request-URL"):null}(s)||e.url;return
o=new
Vm({headers:L,status:s.status,statusText:E,url:O}),o},h=()=>{let{headers:E,status:L,statusText:O,url:N}=u(),G=null;204!==L&&(G=void
0===s.response?s.responseText:s.response),0===L&&(L=G?200:0);let
P=L>=200&&L<300;if("json"===e.responseType&&"string"==typeof
G){const
J=G;G=G.replace(SO,"");try{G=""!==G?JSON.parse(G):null}catch(se){G=J,P&&(P=!1,G={error:se,text:G})}}P?(n.next(new
ou({body:G,headers:E,status:L,statusText:O,url:N||void 0})),n.complete()):n.error(new
Yy({error:G,headers:E,status:L,statusText:O,url:N||void
0}))},b=E=>{const{url:L}=u(),O=new
Yy({error:E,status:s.status||0,statusText:s.statusTex
t||"Unknown Error",url:L||void 0});n.error(O)};let y=!1;const
w=E=>{y||(n.next(u()),y=!0);let
L={type:nn.DownloadProgress,loaded:E.loaded};E.lengthComputable&&(L.total=E.total),"text"===e.responseType&&!!s.responseText&&(L.partialText=s.responseText),n.next(L)},M=E=>{let
L={type:nn.UploadProgress,loaded:E.loaded};E.lengthComputable&&(L.total=E.total),n.next(L)};return
s.addEventListener("load",h),s.addEventListener("error",b),s.addEventListener("timeout",b),s.addEventListener("abort",b),e.reportProgress&&(s.addEventListener("progress",w),null!==r&&s.upload&&s.upload.addEventListener("progress",M)),s.send(r),n.next({type:nn.Sent}),()=>{s.removeEventListener("error",b),s.removeEventListener("abort",b),s.removeEventListener("load",h),s.removeEventListener("timeout",b),e.reportProgress&&(s.removeEventListener("progress",w),null!==r&&s.upload&&s.upload.removeEventListener("progress",M)),s.readyState!==s.DONE&&s.abort()}})}}return
t.\u0275fac=function(e){return new(e||t)(K(Ey))},t.\u0275p
rov=X({token:t,factory:t.\u0275fac}),t})();const Hm=new
be("XSRF_COOKIE_NAME"),qm=new be("XSRF_HEADER_NAME");class t0{}let
DO=(()=>{class
t{constructor(e,n,s){this.doc=e,this.platform=n,this.cookieName=s,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=yy(e,this.cookieName),this.lastCookieString=e),this.lastToken}}return
t.\u0275fac=function(e){return
new(e||t)(K(Xt),K(qc),K(Hm))},t.\u0275prov=X({token:t,factory:t.\u0275fac}),t})(),Gm=(()=>{class
t{constructor(e,n){this.tokenService=e,this.headerName=n}intercept(e,n){const
s=e.url.toLowerCase();if("GET"===e.method||"HEAD"===e.method||s.startsWith("http://")||s.startsWith("https://"))return
n.handle(e);const r=this.tokenService.getToken();return
null!==r&&!e.headers.has(this.headerName)&&(e=e.clone({headers:e.headers.set(this.headerName,r)})),n.handle(e)}}return
t.\u0275fac=f
unction(e){return
new(e||t)(K(t0),K(qm))},t.\u0275prov=X({token:t,factory:t.\u0275fac}),t})(),MO=(()=>{class
t{constructor(e,n){this.backend=e,this.injector=n,this.chain=null}handle(e){if(null===this.chain){const
n=this.injector.get(Xy,[]);this.chain=n.reduceRight((s,r)=>new
Zy(s,r),this.backend)}return this.chain.handle(e)}}return t.\u0275fac=function(e){return
new(e||t)(K(jy),K(En))},t.\u0275prov=X({token:t,factory:t.\u0275fac}),t})(),kO=(()=>{class
t{static disable(){return{ngModule:t,providers:[{provide:Gm,useClass:TO}]}}static
withOptions(e={}){return{ngModule:t,providers:[e.cookieName?{provide:Hm,useValue:e.cookieName}:[],e.headerName?{provide:qm,useValue:e.headerName}:[]]}}}return
t.\u0275fac=function(e){return
new(e||t)},t.\u0275mod=he({type:t}),t.\u0275inj=ue({providers:[Gm,{provide:Xy,useExisting:Gm,multi:!0},{provide:t0,useClass:DO},{provide:Hm,useValue:"XSRF-TOKEN"},{provide:qm,useValue:"X-XSRF-TOKEN"}]}),t})(),IO=(()=>{class
t{}return t.\u0275fac=function(e){return new(
e||t)},t.\u0275mod=he({type:t}),t.\u0275inj=ue({providers:[Bi,{provide:zy,useClass:MO},e0,{provide:jy,useExisting:e0}],imports:[[kO.withOptions({cookieName:"XSRF-TOKEN",headerName:"X-XSRF-TOKEN"})]]}),t})();function
is(t){return!!t&&(t instanceof Je||"function"==typeof
t.lift&&"function"==typeof t.subscribe)}function
n0(...t){if(1===t.length){const i=t[0];if(Nr(i))return
au(i,null);if(Ld(i)&&Object.getPrototypeOf(i)===Object.prototype){const
e=Object.keys(i);return au(e.map(n=>i[n]),e)}}if("function"==typeof
t[t.length-1]){const i=t.pop();return
au(t=1===t.length&&Nr(t[0])?t[0]:t,null).pipe(et(e=>i(...e)))}return
au(t,null)}function au(t,i){return new Je(e=>{const n=t.length;if(0===n)return void
e.complete();const s=new Array(n);let r=0,o=0;for(let u=0;u<n;u++){const h=Mn(t[u]);let
b=!1;e.add(h.subscribe({next:y=>{b||(b=!0,o++),s[u]=y},error:y=>e.error(y),complete:()=>{r++,(r===n||!b)&&(o===n&&e.next(i?i.reduce((y,w,M)=>(y[w]=s[M],y),{}):s),e.complete())}}))}})}function
el(...t){ret
urn function EO(){return ea(1)}()(oe(...t))}const Io=new Je(t=>t.complete());function
lu(t){return t?function RO(t){return new
Je(i=>t.schedule(()=>i.complete()))}(t):Io}function cu(t){return new Je(i=>{let
e;try{e=t()}catch(s){return void i.error(s)}return(e?Mn(e):lu()).subscribe(i)})}const
s0=(()=>{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 br(t){return
i=>0===t?lu():i.lift(new LO(t))}class
LO{constructor(i){if(this.total=i,this.total<0)throw new s0}call(i,e){return
e.subscribe(new OO(i,this.total))}}class OO extends
yt{constructor(i,e){super(i),this.total=e,this.count=0}_next(i){const
e=this.total,n=++this.count;n<=e&&(this.destination.next(i),n===e&&(this.destination.complete(),this.unsubscribe()))}}class
AO extends Et{constructor(i,e){super()}schedule(i,e=0){return this}}class uu extends
AO{constructor(i,e){super(i,e),this.scheduler=i,this.wor
k=e,this.pending=!1}schedule(i,e=0){if(this.closed)return this;this.state=i;const
n=this.id,s=this.scheduler;return
null!=n&&(this.id=this.recycleAsyncId(s,n,e)),this.pending=!0,this.delay=e,this.id=this.id||this.requestAsyncId(s,this.id,e),this}requestAsyncId(i,e,n=0){return
setInterval(i.flush.bind(i,this),n)}recycleAsyncId(i,e,n=0){if(null!==n&&this.delay===n&&!1===this.pending)return
e;clearInterval(e)}execute(i,e){if(this.closed)return new Error("executing a
cancelled action");this.pending=!1;const n=this._execute(i,e);if(n)return
n;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(i,e){let
s,n=!1;try{this.work(i)}catch(r){n=!0,s=!!r&&r||new Error(r)}if(n)return
this.unsubscribe(),s}_unsubscribe(){const
i=this.id,e=this.scheduler,n=e.actions,s=n.indexOf(this);this.work=null,this.state=null,this.pending=!1,this.scheduler=null,-1!==s&&n.splice(s,1),null!=i&&(this.id=this.recycleAsyncId(e,i,null)),this.delay=null}}let
r0=(()=>{cl
ass t{constructor(e,n=t.now){this.SchedulerAction=e,this.now=n}schedule(e,n=0,s){return
new this.SchedulerAction(this,e).schedule(s,n)}}return t.now=()=>Date.now(),t})();class
Hi extends
r0{constructor(i,e=r0.now){super(i,()=>Hi.delegate&&Hi.delegate!==this?Hi.delegate.now():e()),this.actions=[],this.active=!1,this.scheduled=void
0}schedule(i,e=0,n){return
Hi.delegate&&Hi.delegate!==this?Hi.delegate.schedule(i,e,n):super.schedule(i,e,n)}flush(i){const{actions:e}=this;if(this.active)return
void e.push(i);let
n;this.active=!0;do{if(n=i.execute(i.state,i.delay))break}while(i=e.shift());if(this.active=!1,n){for(;i=e.shift();)i.unsubscribe();throw
n}}}const NO=new class FO extends Hi{}(class PO extends
uu{constructor(i,e){super(i,e),this.scheduler=i,this.work=e}schedule(i,e=0){return
e>0?super.schedule(i,e):(this.delay=e,this.state=i,this.scheduler.flush(this),this)}execute(i,e){return
e>0||this.closed?super.execute(i,e):this._execute(i,e)}requestAsyncId(i,e,n=0){return
null!==n&&n>0||nu
ll===n&&this.delay>0?super.requestAsyncId(i,e,n):i.flush(this)}});function
tl(t,i){return new
Je(i?e=>i.schedule(VO,0,{error:t,subscriber:e}):e=>e.error(t))}function
VO({error:t,subscriber:i}){i.error(t)}class
Kn{constructor(i,e,n){this.kind=i,this.value=e,this.error=n,this.hasValue="N"===i}observe(i){switch(this.kind){case"N":return
i.next&&i.next(this.value);case"E":return
i.error&&i.error(this.error);case"C":return
i.complete&&i.complete()}}do(i,e,n){switch(this.kind){case"N":return
i&&i(this.value);case"E":return
e&&e(this.error);case"C":return n&&n()}}accept(i,e,n){return
i&&"function"==typeof
i.next?this.observe(i):this.do(i,e,n)}toObservable(){switch(this.kind){case"N":return
oe(this.value);case"E":return tl(this.error);case"C":return lu()}throw
new Error("unexpected notification kind value")}static createNext(i){return void
0!==i?new Kn("N",i):Kn.undefinedValueNotification}static createError(i){return
new Kn("E",void 0,i)}static createComplete(){return Kn.completeNotificatio
n}}Kn.completeNotification=new Kn("C"),Kn.undefinedValueNotification=new
Kn("N",void 0);class du extends
yt{constructor(i,e,n=0){super(i),this.scheduler=e,this.delay=n}static
dispatch(i){const{notification:e,destination:n}=i;e.observe(n),this.unsubscribe()}scheduleMessage(i){this.destination.add(this.scheduler.schedule(du.dispatch,this.delay,new
HO(i,this.destination)))}_next(i){this.scheduleMessage(Kn.createNext(i))}_error(i){this.scheduleMessage(Kn.createError(i)),this.unsubscribe()}_complete(){this.scheduleMessage(Kn.createComplete()),this.unsubscribe()}}class
HO{constructor(i,e){this.notification=i,this.destination=e}}class qO extends
ct{constructor(i=Number.POSITIVE_INFINITY,e=Number.POSITIVE_INFINITY,n){super(),this.scheduler=n,this._events=[],this._infiniteTimeWindow=!1,this._bufferSize=i<1?1:i,this._windowTime=e<1?1:e,e===Number.POSITIVE_INFINITY?(this._infiniteTimeWindow=!0,this.next=this.nextInfiniteTimeWindow):this.next=this.nextTimeWindow}nextInfiniteTimeWindow(i){if(!th
is.isStopped){const
e=this._events;e.push(i),e.length>this._bufferSize&&e.shift()}super.next(i)}nextTimeWindow(i){this.isStopped||(this._events.push(new
GO(this._getNow(),i)),this._trimBufferThenGetEvents()),super.next(i)}_subscribe(i){const
e=this._infiniteTimeWindow,n=e?this._events:this._trimBufferThenGetEvents(),s=this.scheduler,r=n.length;let
o;if(this.closed)throw new
nr;if(this.isStopped||this.hasError?o=Et.EMPTY:(this.observers.push(i),o=new
Eg(this,i)),s&&i.add(i=new du(i,s)),e)for(let
u=0;u<r&&!i.closed;u++)i.next(n[u]);else for(let
u=0;u<r&&!i.closed;u++)i.next(n[u].value);return
this.hasError?i.error(this.thrownError):this.isStopped&&i.complete(),o}_getNow(){return(this.scheduler||NO).now()}_trimBufferThenGetEvents(){const
i=this._getNow(),e=this._bufferSize,n=this._windowTime,s=this._events,r=s.length;let
o=0;for(;o<r&&!(i-s[o].time<n);)o++;return
r>e&&(o=Math.max(o,r-e)),o>0&&s.splice(0,o),s}}class
GO{constructor(i,e){this.time=i,this.value=e}}function Um(t,i,e){let n;
return n=t&&"object"==typeof
t?t:{bufferSize:t,windowTime:i,refCount:!1,scheduler:e},s=>s.lift(function
UO({bufferSize:t=Number.POSITIVE_INFINITY,windowTime:i=Number.POSITIVE_INFINITY,refCount:e,scheduler:n}){let
s,o,r=0,u=!1,h=!1;return function(y){let w;r++,!s||u?(u=!1,s=new
qO(t,i,n),w=s.subscribe(this),o=y.subscribe({next(M){s.next(M)},error(M){u=!0,s.error(M)},complete(){h=!0,o=void
0,s.complete()}}),h&&(o=void
0)):w=s.subscribe(this),this.add(()=>{r--,w.unsubscribe(),w=void
0,o&&!h&&e&&0===r&&(o.unsubscribe(),o=void 0,s=void
0)})}}(n))}function qi(t,i){return"function"==typeof
i?e=>e.pipe(qi((n,s)=>Mn(t(n,s)).pipe(et((r,o)=>i(n,r,s,o))))):e=>e.lift(new
zO(t))}class zO{constructor(i){this.project=i}call(i,e){return e.subscribe(new
jO(i,this.project))}}class jO extends
Zo{constructor(i,e){super(i),this.project=e,this.index=0}_next(i){let e;const
n=this.index++;try{e=this.project(i,n)}catch(s){return void
this.destination.error(s)}this._innerSub(e)}_innerSub(i){const e=this.inner
Subscription;e&&e.unsubscribe();const n=new
Yo(this),s=this.destination;s.add(n),this.innerSubscription=Xo(i,n),this.innerSubscription!==n&&s.add(this.innerSubscription)}_complete(){const{innerSubscription:i}=this;(!i||i.closed)&&super._complete(),this.unsubscribe()}_unsubscribe(){this.innerSubscription=void
0}notifyComplete(){this.innerSubscription=void
0,this.isStopped&&super._complete()}notifyNext(i){this.destination.next(i)}}class
nl{}let o0=(()=>{class t extends nl{getTranslation(e){return oe({})}}return
t.\u0275fac=function(){let i;return
function(n){return(i||(i=on(t)))(n||t)}}(),t.\u0275prov=X({token:t,factory:t.\u0275fac}),t})();class
zm{}let a0=(()=>{class t{handle(e){return e.key}}return t.\u0275fac=function(e){return
new(e||t)},t.\u0275prov=X({token:t,factory:t.\u0275fac}),t})();function
il(t,i){if(t===i)return!0;if(null===t||null===i)return!1;if(t!=t&&i!=i)return!0;let
s,r,o,e=typeof t;if(e==typeof
i&&"object"==e){if(!Array.isArray(t)){if(Array.isArray(i))return!1;for(r
in o=Object.create(null),t){if(!il(t[r],i[r]))return!1;o[r]=!0}for(r in i)if(!(r in
o)&&void
0!==i[r])return!1;return!0}if(!Array.isArray(i))return!1;if((s=t.length)==i.length){for(r=0;r<s;r++)if(!il(t[r],i[r]))return!1;return!0}}return!1}function
ri(t){return null!=t}function jm(t){return t&&"object"==typeof
t&&!Array.isArray(t)}function l0(t,i){let e=Object.assign({},t);return
jm(t)&&jm(i)&&Object.keys(i).forEach(n=>{jm(i[n])?n in
t?e[n]=l0(t[n],i[n]):Object.assign(e,{[n]:i[n]}):Object.assign(e,{[n]:i[n]})}),e}class
pu{}let c0=(()=>{class t extends
pu{constructor(){super(...arguments),this.templateMatcher=/{{\s?([^{}\s]*)\s?}}/g}interpolate(e,n){let
s;return s="string"==typeof
e?this.interpolateString(e,n):"function"==typeof
e?this.interpolateFunction(e,n):e,s}getValue(e,n){let s="string"==typeof
n?n.split("."):[n];n="";do{n+=s.shift(),!ri(e)||!ri(e[n])||"object"!=typeof
e[n]&&s.length?s.length?n+=".":e=void
0:(e=e[n],n="")}while(s.length);return e}interpolateFunction(e,n){return
e(n)}interpolateString(e,n){return n?e.replace(this.templateMatcher,(s,r)=>{let
o=this.getValue(n,r);return ri(o)?o:s}):e}}return t.\u0275fac=function(){let i;return
function(n){return(i||(i=on(t)))(n||t)}}(),t.\u0275prov=X({token:t,factory:t.\u0275fac}),t})();class
hu{}let u0=(()=>{class t extends hu{compile(e,n){return
e}compileTranslations(e,n){return e}}return t.\u0275fac=function(){let i;return
function(n){return(i||(i=on(t)))(n||t)}}(),t.\u0275prov=X({token:t,factory:t.\u0275fac}),t})();class
d0{constructor(){this.currentLang=this.defaultLang,this.translations={},this.langs=[],this.onTranslationChange=new
H,this.onLangChange=new H,this.onDefaultLangChange=new H}}const $m=new
be("USE_STORE"),Wm=new be("USE_DEFAULT_LANG"),Km=new
be("DEFAULT_LANGUAGE"),Qm=new be("USE_EXTEND");let Oe=(()=>{class
t{constructor(e,n,s,r,o,u=!0,h=!1,b=!1,y){this.store=e,this.currentLoader=n,this.compiler=s,this.parser=r,this.missingTranslationHandler=o,this.useDefaultLang=u,this.isolate=h,this.extend
=b,this.pending=!1,this._onTranslationChange=new H,this._onLangChange=new
H,this._onDefaultLangChange=new
H,this._langs=[],this._translations={},this._translationRequests={},y&&this.setDefaultLang(y)}get
onTranslationChange(){return
this.isolate?this._onTranslationChange:this.store.onTranslationChange}get
onLangChange(){return this.isolate?this._onLangChange:this.store.onLangChange}get
onDefaultLangChange(){return
this.isolate?this._onDefaultLangChange:this.store.onDefaultLangChange}get
defaultLang(){return this.isolate?this._defaultLang:this.store.defaultLang}set
defaultLang(e){this.isolate?this._defaultLang=e:this.store.defaultLang=e}get
currentLang(){return this.isolate?this._currentLang:this.store.currentLang}set
currentLang(e){this.isolate?this._currentLang=e:this.store.currentLang=e}get
langs(){return this.isolate?this._langs:this.store.langs}set
langs(e){this.isolate?this._langs=e:this.store.langs=e}get translations(){return
this.isolate?this._translations:this.store.translat
ions}set
translations(e){this.isolate?this._translations=e:this.store.translations=e}setDefaultLang(e){if(e===this.defaultLang)return;let
n=this.retrieveTranslations(e);void
0!==n?(null==this.defaultLang&&(this.defaultLang=e),n.pipe(br(1)).subscribe(s=>{this.changeDefaultLang(e)})):this.changeDefaultLang(e)}getDefaultLang(){return
this.defaultLang}use(e){if(e===this.currentLang)return oe(this.translations[e]);let
n=this.retrieveTranslations(e);return void
0!==n?(this.currentLang||(this.currentLang=e),n.pipe(br(1)).subscribe(s=>{this.changeLang(e)}),n):(this.changeLang(e),oe(this.translations[e]))}retrieveTranslations(e){let
n;return(void
0===this.translations[e]||this.extend)&&(this._translationRequests[e]=this._translationRequests[e]||this.getTranslation(e),n=this._translationRequests[e]),n}getTranslation(e){this.pending=!0;const
n=this.currentLoader.getTranslation(e).pipe(Um(1),br(1));return
this.loadingTranslations=n.pipe(et(s=>this.compiler.compileTranslations(s,e)),Um(1),br(1))
,this.loadingTranslations.subscribe({next:s=>{this.translations[e]=this.extend&&this.translations[e]?Object.assign(Object.assign({},s),this.translations[e]):s,this.updateLangs(),this.pending=!1},error:s=>{this.pending=!1}}),n}setTranslation(e,n,s=!1){n=this.compiler.compileTranslations(n,e),this.translations[e]=(s||this.extend)&&this.translations[e]?l0(this.translations[e],n):n,this.updateLangs(),this.onTranslationChange.emit({lang:e,translations:this.translations[e]})}getLangs(){return
this.langs}addLangs(e){e.forEach(n=>{-1===this.langs.indexOf(n)&&this.langs.push(n)})}updateLangs(){this.addLangs(Object.keys(this.translations))}getParsedResult(e,n,s){let
r;if(n instanceof Array){let o={},u=!1;for(let h of
n)o[h]=this.getParsedResult(e,h,s),is(o[h])&&(u=!0);return
u?n0(n.map(b=>is(o[b])?o[b]:oe(o[b]))).pipe(et(b=>{let y={};return
b.forEach((w,M)=>{y[n[M]]=w}),y})):o}if(e&&(r=this.parser.interpolate(this.parser.getValue(e,n),s)),void
0===r&&null!=this.defaultLang&&this.defaultLang!=
=this.currentLang&&this.useDefaultLang&&(r=this.parser.interpolate(this.parser.getValue(this.translations[this.defaultLang],n),s)),void
0===r){let o={key:n,translateService:this};void
0!==s&&(o.interpolateParams=s),r=this.missingTranslationHandler.handle(o)}return
void 0!==r?r:n}get(e,n){if(!ri(e)||!e.length)throw new Error('Parameter
"key" required');if(this.pending)return
this.loadingTranslations.pipe(_r(s=>is(s=this.getParsedResult(s,e,n))?s:oe(s)));{let
s=this.getParsedResult(this.translations[this.currentLang],e,n);return
is(s)?s:oe(s)}}getStreamOnTranslationChange(e,n){if(!ri(e)||!e.length)throw new
Error('Parameter "key" required');return
el(cu(()=>this.get(e,n)),this.onTranslationChange.pipe(qi(s=>{const
r=this.getParsedResult(s.translations,e,n);return"function"==typeof
r.subscribe?r:oe(r)})))}stream(e,n){if(!ri(e)||!e.length)throw new Error('Parameter
"key" required');return
el(cu(()=>this.get(e,n)),this.onLangChange.pipe(qi(s=>{const
r=this.getParsedResult(s.translations,
e,n);return is(r)?r:oe(r)})))}instant(e,n){if(!ri(e)||!e.length)throw new
Error('Parameter "key" required');let
s=this.getParsedResult(this.translations[this.currentLang],e,n);if(is(s)){if(e instanceof
Array){let r={};return e.forEach((o,u)=>{r[e[u]]=e[u]}),r}return e}return
s}set(e,n,s=this.currentLang){this.translations[s][e]=this.compiler.compile(n,s),this.updateLangs(),this.onTranslationChange.emit({lang:s,translations:this.translations[s]})}changeLang(e){this.currentLang=e,this.onLangChange.emit({lang:e,translations:this.translations[e]}),null==this.defaultLang&&this.changeDefaultLang(e)}changeDefaultLang(e){this.defaultLang=e,this.onDefaultLangChange.emit({lang:e,translations:this.translations[e]})}reloadLang(e){return
this.resetLang(e),this.getTranslation(e)}resetLang(e){this._translationRequests[e]=void
0,this.translations[e]=void 0}getBrowserLang(){if("undefined"==typeof
window||void 0===window.navigator)return;let
e=window.navigator.languages?window.navigator.languages[0]:
null;return
e=e||window.navigator.language||window.navigator.browserLanguage||window.navigator.userLanguage,void
0!==e?(-1!==e.indexOf("-")&&(e=e.split("-")[0]),-1!==e.indexOf("_")&&(e=e.split("_")[0]),e):void
0}getBrowserCultureLang(){if("undefined"==typeof window||void
0===window.navigator)return;let
e=window.navigator.languages?window.navigator.languages[0]:null;return
e=e||window.navigator.language||window.navigator.browserLanguage||window.navigator.userLanguage,e}}return
t.\u0275fac=function(e){return
new(e||t)(K(d0),K(nl),K(hu),K(pu),K(zm),K(Wm),K($m),K(Qm),K(Km))},t.\u0275prov=X({token:t,factory:t.\u0275fac}),t})(),mu=(()=>{class
t{constructor(e,n,s){this.translateService=e,this.element=n,this._ref=s,this.onTranslationChangeSub||(this.onTranslationChangeSub=this.translateService.onTranslationChange.subscribe(r=>{r.lang===this.translateService.currentLang&&this.checkNodes(!0,r.translations)})),this.onLangChangeSub||(this.onLangChangeSub=this.translateService.onLangChange.subsc
ribe(r=>{this.checkNodes(!0,r.translations)})),this.onDefaultLangChangeSub||(this.onDefaultLangChangeSub=this.translateService.onDefaultLangChange.subscribe(r=>{this.checkNodes(!0)}))}set
translate(e){e&&(this.key=e,this.checkNodes())}set
translateParams(e){il(this.currentParams,e)||(this.currentParams=e,this.checkNodes(!0))}ngAfterViewChecked(){this.checkNodes()}checkNodes(e=!1,n){let
s=this.element.nativeElement.childNodes;s.length||(this.setContent(this.element.nativeElement,this.key),s=this.element.nativeElement.childNodes);for(let
r=0;r<s.length;++r){let o=s[r];if(3===o.nodeType){let
u;if(e&&(o.lastKey=null),ri(o.lookupKey))u=o.lookupKey;else
if(this.key)u=this.key;else{let
h=this.getContent(o),b=h.trim();b.length&&(o.lookupKey=b,h!==o.currentValue?(u=b,o.originalContent=h||o.originalContent):o.originalContent?u=o.originalContent.trim():h!==o.currentValue&&(u=b,o.originalContent=h||o.originalContent))}this.updateValue(u,o,n)}}}updateValue(e,n,s){if(e){if(n.lastKey===e&&this.las
tParams===this.currentParams)return;this.lastParams=this.currentParams;let
r=o=>{o!==e&&(n.lastKey=e),n.originalContent||(n.originalContent=this.getContent(n)),n.currentValue=ri(o)?o:n.originalContent||e,this.setContent(n,this.key?n.currentValue:n.originalContent.replace(e,n.currentValue)),this._ref.markForCheck()};if(ri(s)){let
o=this.translateService.getParsedResult(s,e,this.currentParams);is(o)?o.subscribe({next:r}):r(o)}else
this.translateService.get(e,this.currentParams).subscribe(r)}}getContent(e){return
ri(e.textContent)?e.textContent:e.data}setContent(e,n){ri(e.textContent)?e.textContent=n:e.data=n}ngOnDestroy(){this.onLangChangeSub&&this.onLangChangeSub.unsubscribe(),this.onDefaultLangChangeSub&&this.onDefaultLangChangeSub.unsubscribe(),this.onTranslationChangeSub&&this.onTranslationChangeSub.unsubscribe()}}return
t.\u0275fac=function(e){return
new(e||t)(D(Oe),D(De),D(rt))},t.\u0275dir=le({type:t,selectors:[["","translate",""],["","ngx-translate",""]],inputs:{translate:"tra
nslate",translateParams:"translateParams"}}),t})(),ce=(()=>{class
t{constructor(e,n){this.translate=e,this._ref=n,this.value="",this.lastKey=null,this.lastParams=[]}updateValue(e,n,s){let
r=o=>{this.value=void 0!==o?o:e,this.lastKey=e,this._ref.markForCheck()};if(s){let
o=this.translate.getParsedResult(s,e,n);is(o.subscribe)?o.subscribe(r):r(o)}this.translate.get(e,n).subscribe(r)}transform(e,...n){if(!e||!e.length)return
e;if(il(e,this.lastKey)&&il(n,this.lastParams))return this.value;let
s;if(ri(n[0])&&n.length)if("string"==typeof
n[0]&&n[0].length){let
r=n[0].replace(/(\')?([a-zA-Z0-9_]+)(\')?(\s)?:/g,'"$2":').replace(/:(\s)?(\')(.*?)(\')/g,':"$3"');try{s=JSON.parse(r)}catch(o){throw
new SyntaxError(`Wrong parameter in TranslatePipe. Expected a valid Object, received:
${n[0]}`)}}else"object"==typeof
n[0]&&!Array.isArray(n[0])&&(s=n[0]);return
this.lastKey=e,this.lastParams=n,this.updateValue(e,s),this._dispose(),this.onTranslationChange||(this.onTranslationChange=this.translate.o
nTranslationChange.subscribe(r=>{this.lastKey&&r.lang===this.translate.currentLang&&(this.lastKey=null,this.updateValue(e,s,r.translations))})),this.onLangChange||(this.onLangChange=this.translate.onLangChange.subscribe(r=>{this.lastKey&&(this.lastKey=null,this.updateValue(e,s,r.translations))})),this.onDefaultLangChange||(this.onDefaultLangChange=this.translate.onDefaultLangChange.subscribe(()=>{this.lastKey&&(this.lastKey=null,this.updateValue(e,s))})),this.value}_dispose(){void
0!==this.onTranslationChange&&(this.onTranslationChange.unsubscribe(),this.onTranslationChange=void
0),void
0!==this.onLangChange&&(this.onLangChange.unsubscribe(),this.onLangChange=void
0),void
0!==this.onDefaultLangChange&&(this.onDefaultLangChange.unsubscribe(),this.onDefaultLangChange=void
0)}ngOnDestroy(){this._dispose()}}return t.\u0275fac=function(e){return
new(e||t)(D(Oe,16),D(rt,16))},t.\u0275pipe=An({name:"translate",type:t,pure:!1}),t.\u0275prov=X({token:t,factory:t.\u0275fac}),t})(),$O=(()=>{cl
ass t{static
forRoot(e={}){return{ngModule:t,providers:[e.loader||{provide:nl,useClass:o0},e.compiler||{provide:hu,useClass:u0},e.parser||{provide:pu,useClass:c0},e.missingTranslationHandler||{provide:zm,useClass:a0},d0,{provide:$m,useValue:e.isolate},{provide:Wm,useValue:e.useDefaultLang},{provide:Qm,useValue:e.extend},{provide:Km,useValue:e.defaultLanguage},Oe]}}static
forChild(e={}){return{ngModule:t,providers:[e.loader||{provide:nl,useClass:o0},e.compiler||{provide:hu,useClass:u0},e.parser||{provide:pu,useClass:c0},e.missingTranslationHandler||{provide:zm,useClass:a0},{provide:$m,useValue:e.isolate},{provide:Wm,useValue:e.useDefaultLang},{provide:Qm,useValue:e.extend},{provide:Km,useValue:e.defaultLanguage},Oe]}}}return
t.\u0275fac=function(e){return
new(e||t)},t.\u0275mod=he({type:t}),t.\u0275inj=ue({}),t})();class
WO{constructor(i,e="/assets/i18n/",n=".json"){this.http=i,this.prefix=e,this.suffix=n}getTranslation(i){return
this.http.get(`${this.prefix}${i}${this.suffix}`)}}let
p0=(()=>{class
t{constructor(e,n){this._renderer=e,this._elementRef=n,this.onChange=s=>{},this.onTouched=()=>{}}setProperty(e,n){this._renderer.setProperty(this._elementRef.nativeElement,e,n)}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)(D(gn),D(De))},t.\u0275dir=le({type:t}),t})(),vr=(()=>{class t extends
p0{}return t.\u0275fac=function(){let i;return
function(n){return(i||(i=on(t)))(n||t)}}(),t.\u0275dir=le({type:t,features:[ut]}),t})();const
dn=new
be("NgValueAccessor"),QO={provide:dn,useExisting:je(()=>Ye),multi:!0},YO=new
be("CompositionEventMode");let Ye=(()=>{class t extends
p0{constructor(e,n,s){super(e,n),this._compositionMode=s,this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function
JO(){const t=ns()?ns().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)(D(gn),D(De),D(YO,8))},t.\u0275dir=le({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,n){1&e&&C("input",function(r){return
n._handleInput(r.target.value)})("blur",function(){return
n.onTouched()})("compositionstart",function(){return
n._compositionStart()})("compositionend",function(r){return
n._compositionEnd(r.target.value)})},features:[Pe([QO]),ut]}),t})();function zs(t){return
null==t||0===t.length}const Ln=new be("NgValidators"),js=new
be("NgAsyncValidators");function
_0(t){return zs(t.value)?{required:!0}:null}function fu(t){return null}function
T0(t){return null!=t}function S0(t){const i=Ra(t)?Mn(t):t;return Dh(i),i}function
x0(t){let i={};return
t.forEach(e=>{i=null!=e?Object.assign(Object.assign({},i),e):i}),0===Object.keys(i).length?null:i}function
D0(t,i){return i.map(e=>e(t))}function M0(t){return t.map(i=>function
XO(t){return!t.validate}(i)?i:e=>i.validate(e))}function Jm(t){return null!=t?function
k0(t){if(!t)return null;const i=t.filter(T0);return 0==i.length?null:function(e){return
x0(D0(e,i))}}(M0(t)):null}function Ym(t){return null!=t?function I0(t){if(!t)return
null;const i=t.filter(T0);return 0==i.length?null:function(e){return
n0(D0(e,i).map(S0)).pipe(et(x0))}}(M0(t)):null}function E0(t,i){return
null===t?[i]:Array.isArray(t)?[...t,i]:[t,i]}function Zm(t){return
t?Array.isArray(t)?t:[t]:[]}function gu(t,i){return
Array.isArray(t)?t.includes(i):t===i}function O0(t,i){const e=Zm(i);return
Zm(t).forEach(s=>{gu(e,s)||e.push(s)}),e}f
unction A0(t,i){return Zm(i).filter(e=>!gu(t,e))}class
P0{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.valueChang
es:null}get path(){return
null}_setValidators(i){this._rawValidators=i||[],this._composedValidatorFn=Jm(this._rawValidators)}_setAsyncValidators(i){this._rawAsyncValidators=i||[],this._composedAsyncValidatorFn=Ym(this._rawAsyncValidators)}get
validator(){return this._composedValidatorFn||null}get asyncValidator(){return
this._composedAsyncValidatorFn||null}_registerOnDestroy(i){this._onDestroyCallbacks.push(i)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(i=>i()),this._onDestroyCallbacks=[]}reset(i){this.control&&this.control.reset(i)}hasError(i,e){return!!this.control&&this.control.hasError(i,e)}getError(i,e){return
this.control?this.control.getError(i,e):null}}class ss extends
P0{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}class
Un extends P0{get formDirective(){return null}get path(){return null}}class
F0{constructor(i){this._cd=i}is(i){var
e,n,s;return"submitted"===i?!!(null===(e=this._cd)||void 0===e?void 0:e.submit
ted):!!(null===(s=null===(n=this._cd)||void 0===n?void 0:n.control)||void 0===s?void
0:s[i])}}let Te=(()=>{class t extends F0{constructor(e){super(e)}}return
t.\u0275fac=function(e){return
new(e||t)(D(ss,2))},t.\u0275dir=le({type:t,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(e,n){2&e&&si("ng-untouched",n.is("untouched"))("ng-touched",n.is("touched"))("ng-pristine",n.is("pristine"))("ng-dirty",n.is("dirty"))("ng-valid",n.is("valid"))("ng-invalid",n.is("invalid"))("ng-pending",n.is("pending"))},features:[ut]}),t})(),Ue=(()=>{class
t extends F0{constructor(e){super(e)}}return t.\u0275fac=function(e){return
new(e||t)(D(Un,10))},t.\u0275dir=le({type:t,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(e,n){2&e&&si("ng-untouched",n.is("untouched"))("ng-touched",n.is("touched"))("ng-pristine",n.is
("pristine"))("ng-dirty",n.is("dirty"))("ng-valid",n.is("valid"))("ng-invalid",n.is("invalid"))("ng-pending",n.is("pending"))("ng-submitted",n.is("submitted"))},features:[ut]}),t})();function
sl(t,i){tf(t,i),i.valueAccessor.writeValue(t.value),function
aA(t,i){i.valueAccessor.registerOnChange(e=>{t._pendingValue=e,t._pendingChange=!0,t._pendingDirty=!0,"change"===t.updateOn&&V0(t,i)})}(t,i),function
cA(t,i){const
e=(n,s)=>{i.valueAccessor.writeValue(n),s&&i.viewToModelUpdate(n)};t.registerOnChange(e),i._registerOnDestroy(()=>{t._unregisterOnChange(e)})}(t,i),function
lA(t,i){i.valueAccessor.registerOnTouched(()=>{t._pendingTouched=!0,"blur"===t.updateOn&&t._pendingChange&&V0(t,i),"submit"!==t.updateOn&&t.markAsTouched()})}(t,i),function
oA(t,i){if(i.valueAccessor.setDisabledState){const
e=n=>{i.valueAccessor.setDisabledState(n)};t.registerOnDisabledChange(e),i._registerOnDestroy(()=>{t._unregisterOnDisabledChange(e)})}}(t,i)}function
Cu(t,i){t.forEach(e=>{e.registerOnValidatorChange
&&e.registerOnValidatorChange(i)})}function tf(t,i){const e=function R0(t){return
t._rawValidators}(t);null!==i.validator?t.setValidators(E0(e,i.validator)):"function"==typeof
e&&t.setValidators([e]);const n=function L0(t){return
t._rawAsyncValidators}(t);null!==i.asyncValidator?t.setAsyncValidators(E0(n,i.asyncValidator)):"function"==typeof
n&&t.setAsyncValidators([n]);const
s=()=>t.updateValueAndValidity();Cu(i._rawValidators,s),Cu(i._rawAsyncValidators,s)}function
V0(t,i){t._pendingDirty&&t.markAsDirty(),t.setValue(t._pendingValue,{emitModelToViewChange:!1}),i.viewToModelUpdate(t._pendingValue),t._pendingChange=!1}function
rf(t,i){const e=t.indexOf(i);e>-1&&t.splice(e,1)}const
rl="VALID",wu="INVALID",Eo="PENDING",ol="DISABLED";function
af(t){return(Tu(t)?t.validators:t)||null}function G0(t){return
Array.isArray(t)?Jm(t):t||null}function
lf(t,i){return(Tu(i)?i.asyncValidators:t)||null}function U0(t){return
Array.isArray(t)?Ym(t):t||null}function Tu(t){return null!=t&&!Array.isArra
y(t)&&"object"==typeof t}const cf=t=>t instanceof df;function
j0(t){return(t=>t instanceof K0)(t)?t.value:t.getRawValue()}function $0(t,i){const
e=cf(t),n=t.controls;if(!(e?Object.keys(n):n).length)throw new
re(1e3,"");if(!n[i])throw new re(1001,"")}function
W0(t,i){cf(t),t._forEachChild((n,s)=>{if(void 0===i[s])throw new
re(1002,"")})}class
uf{constructor(i,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=i,this._rawAsyncValidators=e,this._composedValidatorFn=G0(this._rawValidators),this._composedAsyncValidatorFn=U0(this._rawAsyncValidators)}get
validator(){return this._composedValidatorFn}set
validator(i){this._rawValidators=this._composedValidatorFn=i}get asyncValidator(){return
this._composedAsyncValidatorFn}set
asyncValidator(i){this._rawAsyncValidators=this._composedAsyncValidatorFn=i}get
parent(){return this._par
ent}get valid(){return this.status===rl}get invalid(){return this.status===wu}get
pending(){return this.status==Eo}get disabled(){return this.status===ol}get
enabled(){return this.status!==ol}get dirty(){return!this.pristine}get
untouched(){return!this.touched}get updateOn(){return
this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(i){this._rawValidators=i,this._composedValidatorFn=G0(i)}setAsyncValidators(i){this._rawAsyncValidators=i,this._composedAsyncValidatorFn=U0(i)}addValidators(i){this.setValidators(O0(i,this._rawValidators))}addAsyncValidators(i){this.setAsyncValidators(O0(i,this._rawAsyncValidators))}removeValidators(i){this.setValidators(A0(i,this._rawValidators))}removeAsyncValidators(i){this.setAsyncValidators(A0(i,this._rawAsyncValidators))}hasValidator(i){return
gu(this._rawValidators,i)}hasAsyncValidator(i){return
gu(this._rawAsyncValidators,i)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}mar
kAsTouched(i={}){this.touched=!0,this._parent&&!i.onlySelf&&this._parent.markAsTouched(i)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild(i=>i.markAllAsTouched())}markAsUntouched(i={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild(e=>{e.markAsUntouched({onlySelf:!0})}),this._parent&&!i.onlySelf&&this._parent._updateTouched(i)}markAsDirty(i={}){this.pristine=!1,this._parent&&!i.onlySelf&&this._parent.markAsDirty(i)}markAsPristine(i={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(e=>{e.markAsPristine({onlySelf:!0})}),this._parent&&!i.onlySelf&&this._parent._updatePristine(i)}markAsPending(i={}){this.status=Eo,!1!==i.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!i.onlySelf&&this._parent.markAsPending(i)}disable(i={}){const
e=this._parentMarkedDirty(i.onlySelf);this.status=ol,this.errors=null,this._forEachChild(n=>{n.disable(Object.assign(Object.assign({},i),{onlySelf:!0}))}),this._updateValue(),!1!==i.emitEvent&&(this.
valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(Object.assign(Object.assign({},i),{skipPristineCheck:e})),this._onDisabledChange.forEach(n=>n(!0))}enable(i={}){const
e=this._parentMarkedDirty(i.onlySelf);this.status=rl,this._forEachChild(n=>{n.enable(Object.assign(Object.assign({},i),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:i.emitEvent}),this._updateAncestors(Object.assign(Object.assign({},i),{skipPristineCheck:e})),this._onDisabledChange.forEach(n=>n(!1))}_updateAncestors(i){this._parent&&!i.onlySelf&&(this._parent.updateValueAndValidity(i),i.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(i){this._parent=i}updateValueAndValidity(i={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===rl||this.status===Eo)&&this._runAsyncValidator(i.emitEvent))
,!1!==i.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!i.onlySelf&&this._parent.updateValueAndValidity(i)}_updateTreeValidity(i={emitEvent:!0}){this._forEachChild(e=>e._updateTreeValidity(i)),this.updateValueAndValidity({onlySelf:!0,emitEvent:i.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?ol:rl}_runValidator(){return
this.validator?this.validator(this):null}_runAsyncValidator(i){if(this.asyncValidator){this.status=Eo,this._hasOwnPendingAsyncValidator=!0;const
e=S0(this.asyncValidator(this));this._asyncValidationSubscription=e.subscribe(n=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors(n,{emitEvent:i})})}}_cancelExistingSubscription(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}setErrors(i,e={}){this.errors=i,this._updateControlsErrors(!1!==e.emitEvent)}get(i){return
function hA(t,i,e){if(null==i||(Array.isArray(i)||(i=i.s
plit(e)),Array.isArray(i)&&0===i.length))return null;let n=t;return
i.forEach(s=>{n=cf(n)?n.controls.hasOwnProperty(s)?n.controls[s]:null:(t=>t
instanceof fA)(n)&&n.at(s)||null}),n}(this,i,".")}getError(i,e){const
n=e?this.get(e):this;return
n&&n.errors?n.errors[i]:null}hasError(i,e){return!!this.getError(i,e)}get
root(){let i=this;for(;i._parent;)i=i._parent;return
i}_updateControlsErrors(i){this.status=this._calculateStatus(),i&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(i)}_initObservables(){this.valueChanges=new
H,this.statusChanges=new H}_calculateStatus(){return
this._allControlsDisabled()?ol:this.errors?wu:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(Eo)?Eo:this._anyControlsHaveStatus(wu)?wu:rl}_anyControlsHaveStatus(i){return
this._anyControls(e=>e.status===i)}_anyControlsDirty(){return
this._anyControls(i=>i.dirty)}_anyControlsTouched(){return
this._anyControls(i=>i.touched)}_updatePristine(i={}){this.pristine=!th
is._anyControlsDirty(),this._parent&&!i.onlySelf&&this._parent._updatePristine(i)}_updateTouched(i={}){this.touched=this._anyControlsTouched(),this._parent&&!i.onlySelf&&this._parent._updateTouched(i)}_isBoxedValue(i){return"object"==typeof
i&&null!==i&&2===Object.keys(i).length&&"value"in
i&&"disabled"in
i}_registerOnCollectionChange(i){this._onCollectionChange=i}_setUpdateStrategy(i){Tu(i)&&null!=i.updateOn&&(this._updateOn=i.updateOn)}_parentMarkedDirty(i){return!i&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}}class
K0 extends
uf{constructor(i=null,e,n){super(af(e),lf(n,e)),this.defaultValue=null,this._onChange=[],this._pendingChange=!1,this._applyFormState(i),this._setUpdateStrategy(e),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),Tu(e)&&e.initialValueIsDefault&&(this.defaultValue=this._isBoxedValue(i)?i.value:i)}setValue(i,e={}){this.value=this._pendingValue=i,this._onChange.length&&!1!==e.emitMod
elToViewChange&&this._onChange.forEach(n=>n(this.value,!1!==e.emitViewToModelChange)),this.updateValueAndValidity(e)}patchValue(i,e={}){this.setValue(i,e)}reset(i=this.defaultValue,e={}){this._applyFormState(i),this.markAsPristine(e),this.markAsUntouched(e),this.setValue(this.value,e),this._pendingChange=!1}_updateValue(){}_anyControls(i){return!1}_allControlsDisabled(){return
this.disabled}registerOnChange(i){this._onChange.push(i)}_unregisterOnChange(i){rf(this._onChange,i)}registerOnDisabledChange(i){this._onDisabledChange.push(i)}_unregisterOnDisabledChange(i){rf(this._onDisabledChange,i)}_forEachChild(i){}_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(i){this._isBoxedValue(i)?(this.value=this._pendingValue=i.value,i.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.e
nable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=i}}class df extends
uf{constructor(i,e,n){super(af(e),lf(n,e)),this.controls=i,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}registerControl(i,e){return
this.controls[i]?this.controls[i]:(this.controls[i]=e,e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange),e)}addControl(i,e,n={}){this.registerControl(i,e),this.updateValueAndValidity({emitEvent:n.emitEvent}),this._onCollectionChange()}removeControl(i,e={}){this.controls[i]&&this.controls[i]._registerOnCollectionChange(()=>{}),delete
this.controls[i],this.updateValueAndValidity({emitEvent:e.emitEvent}),this._onCollectionChange()}setControl(i,e,n={}){this.controls[i]&&this.controls[i]._registerOnCollectionChange(()=>{}),delete
this.controls[i],e&&this.registerControl(i,e),this.updateValueAndValidity({emitEvent:n.emitEvent}),this._onCollectionChange
()}contains(i){return
this.controls.hasOwnProperty(i)&&this.controls[i].enabled}setValue(i,e={}){W0(this,i),Object.keys(i).forEach(n=>{$0(this,n),this.controls[n].setValue(i[n],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(i,e={}){null!=i&&(Object.keys(i).forEach(n=>{this.controls[n]&&this.controls[n].patchValue(i[n],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e))}reset(i={},e={}){this._forEachChild((n,s)=>{n.reset(i[s],{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e),this._updateTouched(e),this.updateValueAndValidity(e)}getRawValue(){return
this._reduceChildren({},(i,e,n)=>(i[n]=j0(e),i))}_syncPendingControls(){let
i=this._reduceChildren(!1,(e,n)=>!!n._syncPendingControls()||e);return
i&&this.updateValueAndValidity({onlySelf:!0}),i}_forEachChild(i){Object.keys(this.controls).forEach(e=>{const
n=this.controls[e];n&&i(n,e)})}_setUpControls(){this._forEachChild(i=>{i.setParent(this),i._registerOnCollectionChange(t
his._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(i){for(const
e of Object.keys(this.controls)){const
n=this.controls[e];if(this.contains(e)&&i(n))return!0}return!1}_reduceValue(){return
this._reduceChildren({},(i,e,n)=>((e.enabled||this.disabled)&&(i[n]=e.value),i))}_reduceChildren(i,e){let
n=i;return this._forEachChild((s,r)=>{n=e(n,s,r)}),n}_allControlsDisabled(){for(const i
of Object.keys(this.controls))if(this.controls[i].enabled)return!1;return
Object.keys(this.controls).length>0||this.disabled}}class fA extends
uf{constructor(i,e,n){super(af(e),lf(n,e)),this.controls=i,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}at(i){return
this.controls[i]}push(i,e={}){this.controls.push(i),this._registerControl(i),this.updateValueAndValidity({emitEvent:e.emitEvent}),this._onCollectionChange()}insert(i,e,n={}){this.controls.splice(i,0,e),this._registerC
ontrol(e),this.updateValueAndValidity({emitEvent:n.emitEvent})}removeAt(i,e={}){this.controls[i]&&this.controls[i]._registerOnCollectionChange(()=>{}),this.controls.splice(i,1),this.updateValueAndValidity({emitEvent:e.emitEvent})}setControl(i,e,n={}){this.controls[i]&&this.controls[i]._registerOnCollectionChange(()=>{}),this.controls.splice(i,1),e&&(this.controls.splice(i,0,e),this._registerControl(e)),this.updateValueAndValidity({emitEvent:n.emitEvent}),this._onCollectionChange()}get
length(){return
this.controls.length}setValue(i,e={}){W0(this,i),i.forEach((n,s)=>{$0(this,s),this.at(s).setValue(n,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(i,e={}){null!=i&&(i.forEach((n,s)=>{this.at(s)&&this.at(s).patchValue(n,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e))}reset(i=[],e={}){this._forEachChild((n,s)=>{n.reset(i[s],{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e),this._updateTouched(e),this.updateValueAndValid
ity(e)}getRawValue(){return
this.controls.map(i=>j0(i))}clear(i={}){this.controls.length<1||(this._forEachChild(e=>e._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity({emitEvent:i.emitEvent}))}_syncPendingControls(){let
i=this.controls.reduce((e,n)=>!!n._syncPendingControls()||e,!1);return
i&&this.updateValueAndValidity({onlySelf:!0}),i}_forEachChild(i){this.controls.forEach((e,n)=>{i(e,n)})}_updateValue(){this.value=this.controls.filter(i=>i.enabled||this.disabled).map(i=>i.value)}_anyControls(i){return
this.controls.some(e=>e.enabled&&i(e))}_setUpControls(){this._forEachChild(i=>this._registerControl(i))}_allControlsDisabled(){for(const
i of this.controls)if(i.enabled)return!1;return
this.controls.length>0||this.disabled}_registerControl(i){i.setParent(this),i._registerOnCollectionChange(this._onCollectionChange)}}const
gA={provide:Un,useExisting:je(()=>He)},al=(()=>Promise.resolve(null))();let
He=(()=>{class t extends Un{constructor(e,n){sup
er(),this.submitted=!1,this._directives=new Set,this.ngSubmit=new H,this.form=new
df({},Jm(e),Ym(n))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return
this}get control(){return this.form}get path(){return[]}get controls(){return
this.form.controls}addControl(e){al.then(()=>{const
n=this._findContainer(e.path);e.control=n.registerControl(e.name,e.control),sl(e.control,e),e.control.updateValueAndValidity({emitEvent:!1}),this._directives.add(e)})}getControl(e){return
this.form.get(e.path)}removeControl(e){al.then(()=>{const
n=this._findContainer(e.path);n&&n.removeControl(e.name),this._directives.delete(e)})}addFormGroup(e){al.then(()=>{const
n=this._findContainer(e.path),s=new df({});(function
B0(t,i){tf(t,i)})(s,e),n.registerControl(e.name,s),s.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(e){al.then(()=>{const
n=this._findContainer(e.path);n&&n.removeControl(e.name)})}getFormGroup(e){return
this.form.get(e.path)}updateModel(e,n){al.then(()=>{this.form
.get(e.path).setValue(n)})}setValue(e){this.control.setValue(e)}onSubmit(e){return
this.submitted=!0,function q0(t,i){t._syncPendingControls(),i.forEach(e=>{const
n=e.control;"submit"===n.updateOn&&n._pendingChange&&(e.viewToModelUpdate(n._pendingValue),n._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)(D(Ln,10),D(js,10))},t.\u0275dir=le({type:t,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(e,n){1&e&&C("submit",function(r){return
n.onSubmit(r)})("reset",function(){return
n.onReset()})},inputs:{options:["ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[Pe([gA]),ut]}
),t})();const
bA={provide:ss,useExisting:je(()=>_e)},Y0=(()=>Promise.resolve(null))();let
_e=(()=>{class t extends
ss{constructor(e,n,s,r,o){super(),this._changeDetectorRef=o,this.control=new
K0,this._registered=!1,this.update=new
H,this._parent=e,this._setValidators(n),this._setAsyncValidators(s),this.valueAccessor=function
sf(t,i){if(!i)return null;let e,n,s;return
Array.isArray(i),i.forEach(r=>{r.constructor===Ye?e=r:function pA(t){return
Object.getPrototypeOf(t.constructor)===vr}(r)?n=r:s=r}),s||n||e||null}(0,r)}ngOnChanges(e){if(this._checkForErrors(),!this._registered||"name"in
e){if(this._registered&&(this._checkName(),this.formDirective)){const
n=e.name.previousValue;this.formDirective.removeControl({name:n,path:this._getPath(n)})}this._setUpControl()}"isDisabled"in
e&&this._updateDisabled(e),function
nf(t,i){if(!t.hasOwnProperty("model"))return!1;const
e=t.model;return!!e.isFirstChange()||!Object.is(i,e.currentValue)}(e,this.viewModel)&&(this._updateValue(this.model),this.v
iewModel=this.model)}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}get
path(){return this._getPath(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}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.control._updateOn=this.options.updateOn)}_isStandalone(){return!this._parent||!(!this.options||!this.options.standalone)}_setUpStandalone(){sl(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){Y0.then(()=>{var
n;this.control.setValue(e,{emitViewToModelChange:!1}),null===(n=this._c
hangeDetectorRef)||void 0===n||n.markForCheck()})}_updateDisabled(e){const
n=e.isDisabled.currentValue,s=""===n||n&&"false"!==n;Y0.then(()=>{var
r;s&&!this.control.disabled?this.control.disable():!s&&this.control.disabled&&this.control.enable(),null===(r=this._changeDetectorRef)||void
0===r||r.markForCheck()})}_getPath(e){return this._parent?function
bu(t,i){return[...i.path,t]}(e,this._parent):[e]}}return t.\u0275fac=function(e){return
new(e||t)(D(Un,9),D(Ln,10),D(js,10),D(dn,10),D(rt,8))},t.\u0275dir=le({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:[Pe([bA]),ut,fn]}),t})(),ze=(()=>{class
t{}return t.\u0275fac=function(e){return
new(e||t)},t.\u0275dir=le({type:t,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]}),t})();const
vA={
provide:dn,useExisting:je(()=>Su),multi:!0};let Su=(()=>{class t extends
vr{writeValue(e){this.setProperty("value",null==e?"":e)}registerOnChange(e){this.onChange=n=>{e(""==n?null:parseFloat(n))}}}return
t.\u0275fac=function(){let i;return
function(n){return(i||(i=on(t)))(n||t)}}(),t.\u0275dir=le({type:t,selectors:[["input","type","number","formControlName",""],["input","type","number","formControl",""],["input","type","number","ngModel",""]],hostBindings:function(e,n){1&e&&C("input",function(r){return
n.onChange(r.target.value)})("blur",function(){return
n.onTouched()})},features:[Pe([vA]),ut]}),t})(),Z0=(()=>{class t{}return
t.\u0275fac=function(e){return
new(e||t)},t.\u0275mod=he({type:t}),t.\u0275inj=ue({}),t})();const pf=new
be("NgModelWithFormControlWarning");function
aw(t){return"number"==typeof t?t:parseFloat(t)}let Cr=(()=>{class
t{constructor(){this._validator=fu}ngOnChanges(e){if(this.inputName in e){const
n=this.normalizeInput(e[this.inputName].currentValue);this._enable
d=this.enabled(n),this._validator=this._enabled?this.createValidator(n):fu,this._onChange&&this._onChange()}}validate(e){return
this._validator(e)}registerOnValidatorChange(e){this._onChange=e}enabled(e){return
null!=e}}return t.\u0275fac=function(e){return
new(e||t)},t.\u0275dir=le({type:t,features:[fn]}),t})();const
PA={provide:Ln,useExisting:je(()=>xu),multi:!0};let xu=(()=>{class t extends
Cr{constructor(){super(...arguments),this.inputName="max",this.normalizeInput=e=>aw(e),this.createValidator=e=>function
g0(t){return i=>{if(zs(i.value)||zs(t))return null;const
e=parseFloat(i.value);return!isNaN(e)&&e>t?{max:{max:t,actual:i.value}}:null}}(e)}}return
t.\u0275fac=function(){let i;return
function(n){return(i||(i=on(t)))(n||t)}}(),t.\u0275dir=le({type:t,selectors:[["input","type","number","max","","formControlName",""],["input","type","number","max","","formControl",""],["input","type","number","max","","ngModel",""]],hostVars:1,hostBindings:function(e,n){2&e&&ie("max",n._enabled?
n.max:null)},inputs:{max:"max"},features:[Pe([PA]),ut]}),t})();const
FA={provide:Ln,useExisting:je(()=>Du),multi:!0};let Du=(()=>{class t extends
Cr{constructor(){super(...arguments),this.inputName="min",this.normalizeInput=e=>aw(e),this.createValidator=e=>function
f0(t){return i=>{if(zs(i.value)||zs(t))return null;const
e=parseFloat(i.value);return!isNaN(e)&&e<t?{min:{min:t,actual:i.value}}:null}}(e)}}return
t.\u0275fac=function(){let i;return
function(n){return(i||(i=on(t)))(n||t)}}(),t.\u0275dir=le({type:t,selectors:[["input","type","number","min","","formControlName",""],["input","type","number","min","","formControl",""],["input","type","number","min","","ngModel",""]],hostVars:1,hostBindings:function(e,n){2&e&&ie("min",n._enabled?n.min:null)},inputs:{min:"min"},features:[Pe([FA]),ut]}),t})();const
NA={provide:Ln,useExisting:je(()=>ll),multi:!0};let ll=(()=>{class t extends
Cr{constructor(){super(...arguments),this.inputName="required",this.normalizeInput=e=>function
AA(t){retu
rn
null!=t&&!1!==t&&"false"!=`${t}`}(e),this.createValidator=e=>_0}enabled(e){return
e}}return t.\u0275fac=function(){let i;return
function(n){return(i||(i=on(t)))(n||t)}}(),t.\u0275dir=le({type:t,selectors:[["","required","","formControlName","",3,"type","checkbox"],["","required","","formControl","",3,"type","checkbox"],["","required","","ngModel","",3,"type","checkbox"]],hostVars:1,hostBindings:function(e,n){2&e&&ie("required",n._enabled?"":null)},inputs:{required:"required"},features:[Pe([NA]),ut]}),t})();const
qA={provide:Ln,useExisting:je(()=>_n),multi:!0};let _n=(()=>{class t extends
Cr{constructor(){super(...arguments),this.inputName="maxlength",this.normalizeInput=e=>function
ow(t){return"number"==typeof
t?t:parseInt(t,10)}(e),this.createValidator=e=>function y0(t){return i=>function
m0(t){return null!=t&&"number"==typeof
t.length}(i.value)&&i.value.length>t?{maxlength:{requiredLength:t,actualLength:i.value.length}}:null}(e)}}return
t.\u0275fac=function(){let i;return funct
ion(n){return(i||(i=on(t)))(n||t)}}(),t.\u0275dir=le({type:t,selectors:[["","maxlength","","formControlName",""],["","maxlength","","formControl",""],["","maxlength","","ngModel",""]],hostVars:1,hostBindings:function(e,n){2&e&&ie("maxlength",n._enabled?n.maxlength:null)},inputs:{maxlength:"maxlength"},features:[Pe([qA]),ut]}),t})(),pw=(()=>{class
t{}return t.\u0275fac=function(e){return
new(e||t)},t.\u0275mod=he({type:t}),t.\u0275inj=ue({imports:[[Z0]]}),t})(),Mu=(()=>{class
t{}return t.\u0275fac=function(e){return
new(e||t)},t.\u0275mod=he({type:t}),t.\u0275inj=ue({imports:[pw]}),t})(),UA=(()=>{class
t{static
withConfig(e){return{ngModule:t,providers:[{provide:pf,useValue:e.warnOnNgModelWithFormControl}]}}}return
t.\u0275fac=function(e){return
new(e||t)},t.\u0275mod=he({type:t}),t.\u0275inj=ue({imports:[pw]}),t})();class hw{}const
ys="*";function wi(t,i){return{type:7,name:t,definitions:i,options:{}}}function
kt(t,i=null){return{type:4,styles:i,timings:t}}function mw(t,i=null){retu
rn{type:2,steps:t,options:i}}function it(t){return{type:6,styles:t,offset:null}}function
ws(t,i,e){return{type:0,name:t,styles:i,options:e}}function
Lt(t,i,e=null){return{type:1,expr:t,animation:i,options:e}}function
ku(t,i=null){return{type:8,animation:t,options:i}}function
jA(t=null){return{type:9,options:t}}function
fw(t,i=null){return{type:10,animation:t,options:i}}function
$A(t,i,e=null){return{type:11,selector:t,animation:i,options:e}}function
gw(t){Promise.resolve(null).then(t)}class
cl{constructor(i=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=i+e}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(i=>i()),this._onDoneFns=[])}onStart(i){this._onStartFns.push(i)}onDone(i){this._onDoneFns.push(i)}onDestroy(i){this._onDestroyFns.push(i)}hasStarted(){return
this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.trig
gerMicrotask()),this._started=!0}triggerMicrotask(){gw(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(i=>i()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(i=>i()),this._onDestroyFns=[])}reset(){this._started=!1}setPosition(i){this._position=this.totalTime?i*this.totalTime:1}getPosition(){return
this.totalTime?this._position/this.totalTime:1}triggerCallback(i){const
e="start"==i?this._onStartFns:this._onDoneFns;e.forEach(n=>n()),e.length=0}}class
_w{constructor(i){this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=i;let
e=0,n=0,s=0;const
r=this.players.length;0==r?gw(()=>this._onFinish()):this.players.forEach(o=>{o.onDone(()=>{++e==r&&this._onFinish()}),o.onDestroy(()=>{++n==r&&this._onDestroy()}),o.onStart(()=>{++s=
=r&&this._onStart()})}),this.totalTime=this.players.reduce((o,u)=>Math.max(o,u.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(i=>i()),this._onDoneFns=[])}init(){this.players.forEach(i=>i.init())}onStart(i){this._onStartFns.push(i)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(i=>i()),this._onStartFns=[])}onDone(i){this._onDoneFns.push(i)}onDestroy(i){this._onDestroyFns.push(i)}hasStarted(){return
this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(i=>i.play())}pause(){this.players.forEach(i=>i.pause())}restart(){this.players.forEach(i=>i.restart())}finish(){this._onFinish(),this.players.forEach(i=>i.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(i=>i.destroy()),this._onDestroyFns.forEach(i=>i()),this._onDestroyFns=[])}reset(){this.players.forEach(i=>i.reset()),this._destroyed=!1,this._finished=!1,this._st
arted=!1}setPosition(i){const e=i*this.totalTime;this.players.forEach(n=>{const
s=n.totalTime?Math.min(1,e/n.totalTime):1;n.setPosition(s)})}getPosition(){const
i=this.players.reduce((e,n)=>null===e||n.totalTime>e.totalTime?n:e,null);return
null!=i?i.getPosition():0}beforeDestroy(){this.players.forEach(i=>{i.beforeDestroy&&i.beforeDestroy()})}triggerCallback(i){const
e="start"==i?this._onStartFns:this._onDoneFns;e.forEach(n=>n()),e.length=0}}const
Ze=!1;function bw(t){return new re(3e3,Ze)}function
DP(){return"undefined"!=typeof window&&void 0!==window.document}function
vf(){return"undefined"!=typeof process&&"[object
process]"==={}.toString.call(process)}function $s(t){switch(t.length){case 0:return
new cl;case 1:return t[0];default:return new _w(t)}}function vw(t,i,e,n,s={},r={}){const
o=[],u=[];let h=-1,b=null;if(n.forEach(y=>{const
w=y.offset,M=w==h,E=M&&b||{};Object.keys(y).forEach(L=>{let
O=L,N=y[L];if("offset"!==L)switch(O=i.normalizePropertyName(O,o),N){case"!":N=s[L];break;
case
ys:N=r[L];break;default:N=i.normalizeStyleValue(L,O,N,o)}E[O]=N}),M||u.push(E),b=E,h=w}),o.length)throw
function fP(t){return new re(3502,Ze)}();return u}function
Cf(t,i,e,n){switch(i){case"start":t.onStart(()=>n(e&&yf(e,"start",t)));break;case"done":t.onDone(()=>n(e&&yf(e,"done",t)));break;case"destroy":t.onDestroy(()=>n(e&&yf(e,"destroy",t)))}}function
yf(t,i,e){const
n=e.totalTime,r=wf(t.element,t.triggerName,t.fromState,t.toState,i||t.phaseName,null==n?t.totalTime:n,!!e.disabled),o=t._data;return
null!=o&&(r._data=o),r}function
wf(t,i,e,n,s="",r=0,o){return{element:t,triggerName:i,fromState:e,toState:n,phaseName:s,totalTime:r,disabled:!!o}}function
oi(t,i,e){let n;return t instanceof
Map?(n=t.get(i),n||t.set(i,n=e)):(n=t[i],n||(n=t[i]=e)),n}function Cw(t){const
i=t.indexOf(":");return[t.substring(1,i),t.substr(i+1)]}let
Tf=(t,i)=>!1,yw=(t,i,e)=>[],ww=null;function Sf(t){const
i=t.parentNode||t.host;return i===ww?null:i}(vf()||"undefined"!=typeof
Element)&&(DP()?(ww=(()=>doc
ument.documentElement)(),Tf=(t,i)=>{for(;i;){if(i===t)return!0;i=Sf(i)}return!1}):Tf=(t,i)=>t.contains(i),yw=(t,i,e)=>{if(e)return
Array.from(t.querySelectorAll(i));const n=t.querySelector(i);return n?[n]:[]});let
yr=null,Tw=!1;function Sw(t){yr||(yr=function kP(){return"undefined"!=typeof
document?document.body:null}()||{},Tw=!!yr.style&&"WebkitAppearance"in
yr.style);let i=!0;return yr.style&&!function
MP(t){return"ebkit"==t.substring(1,6)}(t)&&(i=t in
yr.style,!i&&Tw&&(i="Webkit"+t.charAt(0).toUpperCase()+t.substr(1)in
yr.style)),i}const xw=Tf,Dw=yw;let Mw=(()=>{class t{validateStyleProperty(e){return
Sw(e)}matchesElement(e,n){return!1}containsElement(e,n){return
xw(e,n)}getParentElement(e){return Sf(e)}query(e,n,s){return
Dw(e,n,s)}computeStyle(e,n,s){return s||""}animate(e,n,s,r,o,u=[],h){return new
cl(s,r)}}return t.\u0275fac=function(e){return
new(e||t)},t.\u0275prov=X({token:t,factory:t.\u0275fac}),t})(),xf=(()=>{class t{}return
t.NOOP=new Mw,t})();const Df="ng-enter",Eu="ng
-leave",Ru="ng-trigger",Lu=".ng-trigger",Iw="ng-animating",Mf=".ng-animating";function
wr(t){if("number"==typeof t)return t;const
i=t.match(/^(-?[\.\d]+)(m?s)/);return!i||i.length<2?0:kf(parseFloat(i[1]),i[2])}function
kf(t,i){return"s"===i?1e3*t:t}function Ou(t,i,e){return
t.hasOwnProperty("duration")?t:function RP(t,i,e){let
s,r=0,o="";if("string"==typeof t){const
u=t.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===u)return
i.push(bw()),{duration:0,delay:0,easing:""};s=kf(parseFloat(u[1]),u[2]);const
h=u[3];null!=h&&(r=kf(parseFloat(h),u[4]));const b=u[5];b&&(o=b)}else
s=t;if(!e){let u=!1,h=i.length;s<0&&(i.push(function WA(){return new
re(3100,Ze)}()),u=!0),r<0&&(i.push(function KA(){return new
re(3101,Ze)}()),u=!0),u&&i.splice(h,0,bw())}return{duration:s,delay:r,easing:o}}(t,i,e)}function
Ro(t,i={}){return Object.keys(t).forEach(e=>{i[e]=t[e]}),i}function
Ws(t,i,e={}){if(i)for(let n in t)e[n]=t[n];else Ro(t,e);return e}function Rw(t,i,
e){return e?i+":"+e+";":""}function Lw(t){let
i="";for(let e=0;e<t.style.length;e++){const
n=t.style.item(e);i+=Rw(0,n,t.style.getPropertyValue(n))}for(const e in
t.style)t.style.hasOwnProperty(e)&&!e.startsWith("_")&&(i+=Rw(0,AP(e),t.style[e]));t.setAttribute("style",i)}function
rs(t,i,e){t.style&&(Object.keys(i).forEach(n=>{const
s=Ef(n);e&&!e.hasOwnProperty(n)&&(e[n]=t.style[s]),t.style[s]=i[n]}),vf()&&Lw(t))}function
Tr(t,i){t.style&&(Object.keys(i).forEach(e=>{const
n=Ef(e);t.style[n]=""}),vf()&&Lw(t))}function ul(t){return
Array.isArray(t)?1==t.length?t[0]:mw(t):t}const If=new
RegExp("{{\\s*(.+?)\\s*}}","g");function Ow(t){let
i=[];if("string"==typeof t){let
e;for(;e=If.exec(t);)i.push(e[1]);If.lastIndex=0}return i}function Au(t,i,e){const
n=t.toString(),s=n.replace(If,(r,o)=>{let u=i[o];return
i.hasOwnProperty(o)||(e.push(function JA(t){return new
re(3003,Ze)}()),u=""),u.toString()});return s==n?t:s}function Pu(t){const
i=[];let e=t.next();for(;!e.done;)i.push(e.value),e=t.ne
xt();return i}const OP=/-+([a-z0-9])/g;function Ef(t){return
t.replace(OP,(...i)=>i[1].toUpperCase())}function AP(t){return
t.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}function
ai(t,i,e){switch(i.type){case 7:return t.visitTrigger(i,e);case 0:return
t.visitState(i,e);case 1:return t.visitTransition(i,e);case 2:return
t.visitSequence(i,e);case 3:return t.visitGroup(i,e);case 4:return
t.visitAnimate(i,e);case 5:return t.visitKeyframes(i,e);case 6:return
t.visitStyle(i,e);case 8:return t.visitReference(i,e);case 9:return
t.visitAnimateChild(i,e);case 10:return t.visitAnimateRef(i,e);case 11:return
t.visitQuery(i,e);case 12:return t.visitStagger(i,e);default:throw function YA(t){return
new re(3004,Ze)}()}}function Aw(t,i){return window.getComputedStyle(t)[i]}function
HP(t,i){const e=[];return"string"==typeof
t?t.split(/\s*,\s*/).forEach(n=>function qP(t,i,e){if(":"==t[0]){const
h=function GP(t,i){switch(t){case":enter":return"void =>
*";case":leave":return"* => void";case":increm
ent":return(e,n)=>parseFloat(n)>parseFloat(e);case":decrement":return(e,n)=>parseFloat(n)<parseFloat(e);default:return
i.push(function dP(t){return new re(3016,Ze)}()),"* =>
*"}}(t,e);if("function"==typeof h)return void i.push(h);t=h}const
n=t.match(/^(\*|[-\w]+)\s*(<?[=-]>)\s*(\*|[-\w]+)$/);if(null==n||n.length<4)return
e.push(function uP(t){return new re(3015,Ze)}()),i;const
s=n[1],r=n[2],o=n[3];i.push(Pw(s,o));"<"==r[0]&&!("*"==s&&"*"==o)&&i.push(Pw(o,s))}(n,e,i)):e.push(t),e}const
Bu=new Set(["true","1"]),Hu=new
Set(["false","0"]);function Pw(t,i){const
e=Bu.has(t)||Hu.has(t),n=Bu.has(i)||Hu.has(i);return(s,r)=>{let
o="*"==t||t==s,u="*"==i||i==r;return!o&&e&&"boolean"==typeof
s&&(o=s?Bu.has(t):Hu.has(t)),!u&&n&&"boolean"==typeof
r&&(u=r?Bu.has(i):Hu.has(i)),o&&u}}const UP=new
RegExp("s*:selfs*,?","g");function Rf(t,i,e,n){return new
zP(t).build(i,e,n)}class zP{constructor(i){this._driver=i}build(i,e,n){const s=new
WP(e);this._resetContextStyleTimingState(s);const r=ai(this,ul(i)
,s);return
s.unsupportedCSSPropertiesFound.size&&s.unsupportedCSSPropertiesFound.keys(),r}_resetContextStyleTimingState(i){i.currentQuerySelector="",i.collectedStyles={},i.collectedStyles[""]={},i.currentTime=0}visitTrigger(i,e){let
n=e.queryCount=0,s=e.depCount=0;const
r=[],o=[];return"(a)"==i.name.charAt(0)&&e.errors.push(function
XA(){return new
re(3006,Ze)}()),i.definitions.forEach(u=>{if(this._resetContextStyleTimingState(e),0==u.type){const
h=u,b=h.name;b.toString().split(/\s*,\s*/).forEach(y=>{h.name=y,r.push(this.visitState(h,e))}),h.name=b}else
if(1==u.type){const
h=this.visitTransition(u,e);n+=h.queryCount,s+=h.depCount,o.push(h)}else
e.errors.push(function eP(){return new
re(3007,Ze)}())}),{type:7,name:i.name,states:r,transitions:o,queryCount:n,depCount:s,options:null}}visitState(i,e){const
n=this.visitStyle(i.styles,e),s=i.options&&i.options.params||null;if(n.containsDynamicStyles){const
r=new Set,o=s||{};n.styles.forEach(u=>{if(qu(u)){const
h=u;Object.keys(h).forEach(b=>{
Ow(h[b]).forEach(y=>{o.hasOwnProperty(y)||r.add(y)})})}}),r.size&&(Pu(r.values()),e.errors.push(function
tP(t,i){return new
re(3008,Ze)}()))}return{type:0,name:i.name,style:n,options:s?{params:s}:null}}visitTransition(i,e){e.queryCount=0,e.depCount=0;const
n=ai(this,ul(i.animation),e);return{type:1,matchers:HP(i.expr,e.errors),animation:n,queryCount:e.queryCount,depCount:e.depCount,options:Sr(i.options)}}visitSequence(i,e){return{type:2,steps:i.steps.map(n=>ai(this,n,e)),options:Sr(i.options)}}visitGroup(i,e){const
n=e.currentTime;let s=0;const r=i.steps.map(o=>{e.currentTime=n;const
u=ai(this,o,e);return s=Math.max(s,e.currentTime),u});return
e.currentTime=s,{type:3,steps:r,options:Sr(i.options)}}visitAnimate(i,e){const n=function
QP(t,i){if(t.hasOwnProperty("duration"))return t;if("number"==typeof
t)return Lf(Ou(t,i).duration,0,"");const
e=t;if(e.split(/\s+/).some(r=>"{"==r.charAt(0)&&"{"==r.charAt(1))){const
r=Lf(0,0,"");return r.dynamic=!0,r.strValue=e,r}const s=Ou(e,i);return L
f(s.duration,s.delay,s.easing)}(i.timings,e.errors);e.currentAnimateTimings=n;let
s,r=i.styles?i.styles:it({});if(5==r.type)s=this.visitKeyframes(r,e);else{let
o=i.styles,u=!1;if(!o){u=!0;const
b={};n.easing&&(b.easing=n.easing),o=it(b)}e.currentTime+=n.duration+n.delay;const
h=this.visitStyle(o,e);h.isEmptyStep=u,s=h}return
e.currentAnimateTimings=null,{type:4,timings:n,style:s,options:null}}visitStyle(i,e){const
n=this._makeStyleAst(i,e);return this._validateStyleAst(n,e),n}_makeStyleAst(i,e){const
n=[];Array.isArray(i.styles)?i.styles.forEach(o=>{"string"==typeof
o?o==ys?n.push(o):e.errors.push(function nP(t){return new
re(3002,Ze)}()):n.push(o)}):n.push(i.styles);let s=!1,r=null;return
n.forEach(o=>{if(qu(o)){const u=o,h=u.easing;if(h&&(r=h,delete
u.easing),!s)for(let b in
u)if(u[b].toString().indexOf("{{")>=0){s=!0;break}}}),{type:6,styles:n,easing:r,offset:i.offset,containsDynamicStyles:s,options:null}}_validateStyleAst(i,e){const
n=e.currentAnimateTimings;let s=e.currentTime,
r=e.currentTime;n&&r>0&&(r-=n.duration+n.delay),i.styles.forEach(o=>{"string"!=typeof
o&&Object.keys(o).forEach(u=>{if(!this._driver.validateStyleProperty(u))return
delete o[u],void e.unsupportedCSSPropertiesFound.add(u);const
h=e.collectedStyles[e.currentQuerySelector],b=h[u];let
y=!0;b&&(r!=s&&r>=b.startTime&&s<=b.endTime&&(e.errors.push(function
iP(t,i,e,n,s){return new
re(3010,Ze)}()),y=!1),r=b.startTime),y&&(h[u]={startTime:r,endTime:s}),e.options&&function
LP(t,i,e){const
n=i.params||{},s=Ow(t);s.length&&s.forEach(r=>{n.hasOwnProperty(r)||e.push(function
QA(t){return new re(3001,Ze)}())})}(o[u],e.options,e.errors)})})}visitKeyframes(i,e){const
n={type:5,styles:[],options:null};if(!e.currentAnimateTimings)return
e.errors.push(function sP(){return new re(3011,Ze)}()),n;let r=0;const o=[];let
u=!1,h=!1,b=0;const y=i.steps.map(G=>{const P=this._makeStyleAst(G,e);let
J=null!=P.offset?P.offset:function KP(t){if("string"==typeof t)return null;let
i=null;if(Array.isArray(t))t.forEach(
e=>{if(qu(e)&&e.hasOwnProperty("offset")){const
n=e;i=parseFloat(n.offset),delete n.offset}});else
if(qu(t)&&t.hasOwnProperty("offset")){const
e=t;i=parseFloat(e.offset),delete e.offset}return i}(P.styles),se=0;return
null!=J&&(r++,se=P.offset=J),h=h||se<0||se>1,u=u||se<b,b=se,o.push(se),P});h&&e.errors.push(function
rP(){return new re(3012,Ze)}()),u&&e.errors.push(function oP(){return new
re(3200,Ze)}());const w=i.steps.length;let
M=0;r>0&&r<w?e.errors.push(function aP(){return new
re(3202,Ze)}()):0==r&&(M=1/(w-1));const
E=w-1,L=e.currentTime,O=e.currentAnimateTimings,N=O.duration;return
y.forEach((G,P)=>{const
J=M>0?P==E?1:M*P:o[P],se=J*N;e.currentTime=L+O.delay+se,O.duration=se,this._validateStyleAst(G,e),G.offset=J,n.styles.push(G)}),n}visitReference(i,e){return{type:8,animation:ai(this,ul(i.animation),e),options:Sr(i.options)}}visitAnimateChild(i,e){return
e.depCount++,{type:9,options:Sr(i.options)}}visitAnimateRef(i,e){return{type:10,animation:this.visitReference(i.animation,e
),options:Sr(i.options)}}visitQuery(i,e){const
n=e.currentQuerySelector,s=i.options||{};e.queryCount++,e.currentQuery=i;const[r,o]=function
jP(t){const i=!!t.split(/\s*,\s*/).find(e=>":self"==e);return
i&&(t=t.replace(UP,"")),t=t.replace(/@\*/g,Lu).replace(/@\w+/g,e=>Lu+"-"+e.substr(1)).replace(/:animating/g,Mf),[t,i]}(i.selector);e.currentQuerySelector=n.length?n+"
"+r:r,oi(e.collectedStyles,e.currentQuerySelector,{});const
u=ai(this,ul(i.animation),e);return
e.currentQuery=null,e.currentQuerySelector=n,{type:11,selector:r,limit:s.limit||0,optional:!!s.optional,includeSelf:o,animation:u,originalSelector:i.selector,options:Sr(i.options)}}visitStagger(i,e){e.currentQuery||e.errors.push(function
lP(){return new re(3013,Ze)}());const
n="full"===i.timings?{duration:0,delay:0,easing:"full"}:Ou(i.timings,e.errors,!0);return{type:12,animation:ai(this,ul(i.animation),e),timings:n,options:null}}}class
WP{constructor(i){this.errors=i,this.queryCount=0,this.depCount=0,this.currentTransition=nu
ll,this.currentQuery=null,this.currentQuerySelector=null,this.currentAnimateTimings=null,this.currentTime=0,this.collectedStyles={},this.options=null,this.unsupportedCSSPropertiesFound=new
Set}}function qu(t){return!Array.isArray(t)&&"object"==typeof t}function
Sr(t){return t?(t=Ro(t)).params&&(t.params=function $P(t){return
t?Ro(t):null}(t.params)):t={},t}function
Lf(t,i,e){return{duration:t,delay:i,easing:e}}function
Of(t,i,e,n,s,r,o=null,u=!1){return{type:1,element:t,keyframes:i,preStyleProps:e,postStyleProps:n,duration:s,delay:r,totalTime:s+r,easing:o,subTimeline:u}}class
Gu{constructor(){this._map=new Map}get(i){return this._map.get(i)||[]}append(i,e){let
n=this._map.get(i);n||this._map.set(i,n=[]),n.push(...e)}has(i){return
this._map.has(i)}clear(){this._map.clear()}}const ZP=new
RegExp(":enter","g"),eF=new
RegExp(":leave","g");function
Af(t,i,e,n,s,r={},o={},u,h,b=[]){return(new tF).buildKeyframes(t,i,e,n,s,r,o,u,h,b)}class
tF{buildKeyframes(i,e,n,s,r,o,u,h,b,y=[]){b=b||new G
u;const w=new
Pf(i,e,b,s,r,y,[]);w.options=h,w.currentTimeline.setStyles([o],null,w.errors,h),ai(this,n,w);const
M=w.timelines.filter(E=>E.containsAnimation());if(Object.keys(u).length){let E;for(let
L=M.length-1;L>=0;L--){const
O=M[L];if(O.element===e){E=O;break}}E&&!E.allowOnlyTimelineStyles()&&E.setStyles([u],null,w.errors,h)}return
M.length?M.map(E=>E.buildKeyframes()):[Of(e,[],[],[],0,0,"",!1)]}visitTrigger(i,e){}visitState(i,e){}visitTransition(i,e){}visitAnimateChild(i,e){const
n=e.subInstructions.get(e.element);if(n){const
s=e.createSubContext(i.options),r=e.currentTimeline.currentTime,o=this._visitSubInstructions(n,s,s.options);r!=o&&e.transformIntoNewTimeline(o)}e.previousNode=i}visitAnimateRef(i,e){const
n=e.createSubContext(i.options);n.transformIntoNewTimeline(),this.visitReference(i.animation,n),e.transformIntoNewTimeline(n.currentTimeline.currentTime),e.previousNode=i}_visitSubInstructions(i,e,n){let
r=e.currentTimeline.currentTime;const o=null!=n.duration?wr(n.durati
on):null,u=null!=n.delay?wr(n.delay):null;return 0!==o&&i.forEach(h=>{const
b=e.appendInstructionToTimeline(h,o,u);r=Math.max(r,b.duration+b.delay)}),r}visitReference(i,e){e.updateOptions(i.options,!0),ai(this,i.animation,e),e.previousNode=i}visitSequence(i,e){const
n=e.subContextCount;let s=e;const
r=i.options;if(r&&(r.params||r.delay)&&(s=e.createSubContext(r),s.transformIntoNewTimeline(),null!=r.delay)){6==s.previousNode.type&&(s.currentTimeline.snapshotCurrentStyles(),s.previousNode=Uu);const
o=wr(r.delay);s.delayNextStep(o)}i.steps.length&&(i.steps.forEach(o=>ai(this,o,s)),s.currentTimeline.applyStylesToKeyframe(),s.subContextCount>n&&s.transformIntoNewTimeline()),e.previousNode=i}visitGroup(i,e){const
n=[];let s=e.currentTimeline.currentTime;const
r=i.options&&i.options.delay?wr(i.options.delay):0;i.steps.forEach(o=>{const
u=e.createSubContext(i.options);r&&u.delayNextStep(r),ai(this,o,u),s=Math.max(s,u.currentTimeline.currentTime),n.push(u.currentTimeline)}),n.forEach(o=>e.cu
rrentTimeline.mergeTimelineCollectedStyles(o)),e.transformIntoNewTimeline(s),e.previousNode=i}_visitTiming(i,e){if(i.dynamic){const
n=i.strValue;return
Ou(e.params?Au(n,e.params,e.errors):n,e.errors)}return{duration:i.duration,delay:i.delay,easing:i.easing}}visitAnimate(i,e){const
n=e.currentAnimateTimings=this._visitTiming(i.timings,e),s=e.currentTimeline;n.delay&&(e.incrementTime(n.delay),s.snapshotCurrentStyles());const
r=i.style;5==r.type?this.visitKeyframes(r,e):(e.incrementTime(n.duration),this.visitStyle(r,e),s.applyStylesToKeyframe()),e.currentAnimateTimings=null,e.previousNode=i}visitStyle(i,e){const
n=e.currentTimeline,s=e.currentAnimateTimings;!s&&n.getCurrentStyleProperties().length&&n.forwardFrame();const
r=s&&s.easing||i.easing;i.isEmptyStep?n.applyEmptyStep(r):n.setStyles(i.styles,r,e.errors,e.options),e.previousNode=i}visitKeyframes(i,e){const
n=e.currentAnimateTimings,s=e.currentTimeline.duration,r=n.duration,u=e.createSubContext().currentTimeline;u.easing=n.easing,
i.styles.forEach(h=>{u.forwardTime((h.offset||0)*r),u.setStyles(h.styles,h.easing,e.errors,e.options),u.applyStylesToKeyframe()}),e.currentTimeline.mergeTimelineCollectedStyles(u),e.transformIntoNewTimeline(s+r),e.previousNode=i}visitQuery(i,e){const
n=e.currentTimeline.currentTime,s=i.options||{},r=s.delay?wr(s.delay):0;r&&(6===e.previousNode.type||0==n&&e.currentTimeline.getCurrentStyleProperties().length)&&(e.currentTimeline.snapshotCurrentStyles(),e.previousNode=Uu);let
o=n;const
u=e.invokeQuery(i.selector,i.originalSelector,i.limit,i.includeSelf,!!s.optional,e.errors);e.currentQueryTotal=u.length;let
h=null;u.forEach((b,y)=>{e.currentQueryIndex=y;const
w=e.createSubContext(i.options,b);r&&w.delayNextStep(r),b===e.element&&(h=w.currentTimeline),ai(this,i.animation,w),w.currentTimeline.applyStylesToKeyframe(),o=Math.max(o,w.currentTimeline.currentTime)}),e.currentQueryIndex=0,e.currentQueryTotal=0,e.transformIntoNewTimeline(o),h&&(e.currentTimeline.mergeTimelineCollectedStyles(h)
,e.currentTimeline.snapshotCurrentStyles()),e.previousNode=i}visitStagger(i,e){const
n=e.parentContext,s=e.currentTimeline,r=i.timings,o=Math.abs(r.duration),u=o*(e.currentQueryTotal-1);let
h=o*e.currentQueryIndex;switch(r.duration<0?"reverse":r.easing){case"reverse":h=u-h;break;case"full":h=n.currentStaggerTime}const
y=e.currentTimeline;h&&y.delayNextStep(h);const
w=y.currentTime;ai(this,i.animation,e),e.previousNode=i,n.currentStaggerTime=s.currentTime-w+(s.startTime-n.currentTimeline.startTime)}}const
Uu={};class
Pf{constructor(i,e,n,s,r,o,u,h){this._driver=i,this.element=e,this.subInstructions=n,this._enterClassName=s,this._leaveClassName=r,this.errors=o,this.timelines=u,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=Uu,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=h||new
zu(this._driver,e,0),u.push(this.currentTimeline)}get params(){return
this.options.params}upd
ateOptions(i,e){if(!i)return;const n=i;let
s=this.options;null!=n.duration&&(s.duration=wr(n.duration)),null!=n.delay&&(s.delay=wr(n.delay));const
r=n.params;if(r){let
o=s.params;o||(o=this.options.params={}),Object.keys(r).forEach(u=>{(!e||!o.hasOwnProperty(u))&&(o[u]=Au(r[u],o,this.errors))})}}_copyOptions(){const
i={};if(this.options){const e=this.options.params;if(e){const
n=i.params={};Object.keys(e).forEach(s=>{n[s]=e[s]})}}return
i}createSubContext(i=null,e,n){const s=e||this.element,r=new
Pf(this._driver,s,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(s,n||0));return
r.previousNode=this.previousNode,r.currentAnimateTimings=this.currentAnimateTimings,r.options=this._copyOptions(),r.updateOptions(i),r.currentQueryIndex=this.currentQueryIndex,r.currentQueryTotal=this.currentQueryTotal,r.parentContext=this,this.subContextCount++,r}transformIntoNewTimeline(i){return
this.previousNode=Uu,this.currentTimeline=thi
s.currentTimeline.fork(this.element,i),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(i,e,n){const
s={duration:null!=e?e:i.duration,delay:this.currentTimeline.currentTime+(null!=n?n:0)+i.delay,easing:""},r=new
nF(this._driver,i.element,i.keyframes,i.preStyleProps,i.postStyleProps,s,i.stretchStartingKeyframe);return
this.timelines.push(r),s}incrementTime(i){this.currentTimeline.forwardTime(this.currentTimeline.duration+i)}delayNextStep(i){i>0&&this.currentTimeline.delayNextStep(i)}invokeQuery(i,e,n,s,r,o){let
u=[];if(s&&u.push(this.element),i.length>0){i=(i=i.replace(ZP,"."+this._enterClassName)).replace(eF,"."+this._leaveClassName);let
b=this._driver.query(this.element,i,1!=n);0!==n&&(b=n<0?b.slice(b.length+n,b.length):b.slice(0,n)),u.push(...b)}return!r&&0==u.length&&o.push(function
cP(t){return new re(3014,Ze)}()),u}}class
zu{constructor(i,e,n,s){this._driver=i,this.element=e,this.startTime=n,this._elementTimelineStylesLookup=s,this.dura
tion=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(i){const
e=1==this._keyframes.size&&Object.keys(this._pendingStyles).length;this.duration||e?(this.forwardTime(this.currentTime+i),e&&this.snapshotCurrentStyles()
):this.startTime+=i}fork(i,e){return this.applyStylesToKeyframe(),new
zu(this._driver,i,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(i){this.applyStylesToKeyframe(),this.duration=i,this._loadKeyframe()}_updateStyle(i,e){this._localTimelineStyles[i]=e,this._globalTimelineStyles[i]=e,this._styleSummary[i]={time:this.currentTime,value:e}}allowOnlyTimelineStyles(){return
this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(i){i&&(this._previousKeyframe.easing=i),Object.keys(this._globalTimelineStyles).forEach(e=>{this._backFill[e]=this._globalTimelineStyles[e]||ys,this._currentKeyframe[e]=ys}),this._currentEmptyStepKeyfra
me=this._currentKeyframe}setStyles(i,e,n,s){e&&(this._previousKeyframe.easing=e);const
r=s&&s.params||{},o=function iF(t,i){const e={};let n;return
t.forEach(s=>{"*"===s?(n=n||Object.keys(i),n.forEach(r=>{e[r]=ys})):Ws(s,!1,e)}),e}(i,this._globalTimelineStyles);Object.keys(o).forEach(u=>{const
h=Au(o[u],r,n);this._pendingStyles[u]=h,this._localTimelineStyles.hasOwnProperty(u)||(this._backFill[u]=this._globalTimelineStyles.hasOwnProperty(u)?this._globalTimelineStyles[u]:ys),this._updateStyle(u,h)})}applyStylesToKeyframe(){const
i=this._pendingStyles,e=Object.keys(i);0!=e.length&&(this._pendingStyles={},e.forEach(n=>{this._currentKeyframe[n]=i[n]}),Object.keys(this._localTimelineStyles).forEach(n=>{this._currentKeyframe.hasOwnProperty(n)||(this._currentKeyframe[n]=this._localTimelineStyles[n])}))}snapshotCurrentStyles(){Object.keys(this._localTimelineStyles).forEach(i=>{const
e=this._localTimelineStyles[i];this._pendingStyles[i]=e,this._updateStyle(i,e)})}getFinalKeyframe(){return
thi
s._keyframes.get(this.duration)}get properties(){const i=[];for(let e in
this._currentKeyframe)i.push(e);return
i}mergeTimelineCollectedStyles(i){Object.keys(i._styleSummary).forEach(e=>{const
n=this._styleSummary[e],s=i._styleSummary[e];(!n||s.time>n.time)&&this._updateStyle(e,s.value)})}buildKeyframes(){this.applyStylesToKeyframe();const
i=new Set,e=new Set,n=1===this._keyframes.size&&0===this.duration;let
s=[];this._keyframes.forEach((u,h)=>{const
b=Ws(u,!0);Object.keys(b).forEach(y=>{const
w=b[y];"!"==w?i.add(y):w==ys&&e.add(y)}),n||(b.offset=h/this.duration),s.push(b)});const
r=i.size?Pu(i.values()):[],o=e.size?Pu(e.values()):[];if(n){const
u=s[0],h=Ro(u);u.offset=0,h.offset=1,s=[u,h]}return
Of(this.element,s,r,o,this.duration,this.startTime,this.easing,!1)}}class nF extends
zu{constructor(i,e,n,s,r,o,u=!1){super(i,e,o.delay),this.keyframes=n,this.preStyleProps=s,this.postStyleProps=r,this._stretchStartingKeyframe=u,this.timings={duration:o.duration,delay:o.delay,easing:o.easin
g}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let
i=this.keyframes,{delay:e,duration:n,easing:s}=this.timings;if(this._stretchStartingKeyframe&&e){const
r=[],o=n+e,u=e/o,h=Ws(i[0],!1);h.offset=0,r.push(h);const
b=Ws(i[0],!1);b.offset=Vw(u),r.push(b);const y=i.length-1;for(let w=1;w<=y;w++){let
M=Ws(i[w],!1);M.offset=Vw((e+M.offset*n)/o),r.push(M)}n=o,e=0,s="",i=r}return
Of(this.element,i,this.preStyleProps,this.postStyleProps,n,e,s,!0)}}function
Vw(t,i=3){const e=Math.pow(10,i-1);return Math.round(t*e)/e}class Ff{}class sF extends
Ff{normalizePropertyName(i,e){return Ef(i)}normalizeStyleValue(i,e,n,s){let
r="";const
o=n.toString().trim();if(rF[e]&&0!==n&&"0"!==n)if("number"==typeof
n)r="px";else{const
u=n.match(/^[+-]?[\d\.]+([a-z]*)$/);u&&0==u[1].length&&s.push(function
ZA(t,i){return new re(3005,Ze)}())}return o+r}}const rF=(()=>function oF(t){const
i={};return
t.forEach(e=>i[e]=!0),i}("width,height,minWidth,minHeight,maxWidth,maxHeight,left,top,bottom,rig
ht,fontSize,outlineWidth,outlineOffset,paddingTop,paddingLeft,paddingBottom,paddingRight,marginTop,marginLeft,marginBottom,marginRight,borderRadius,borderWidth,borderTopWidth,borderLeftWidth,borderRightWidth,borderBottomWidth,textIndent,perspective".split(",")))();function
Bw(t,i,e,n,s,r,o,u,h,b,y,w,M){return{type:0,element:t,triggerName:i,isRemovalTransition:s,fromState:e,fromStyles:r,toState:n,toStyles:o,timelines:u,queriedElements:h,preStyleProps:b,postStyleProps:y,totalTime:w,errors:M}}const
Nf={};class
Hw{constructor(i,e,n){this._triggerName=i,this.ast=e,this._stateStyles=n}match(i,e,n,s){return
function aF(t,i,e,n,s){return
t.some(r=>r(i,e,n,s))}(this.ast.matchers,i,e,n,s)}buildStyles(i,e,n){const
s=this._stateStyles["*"],r=this._stateStyles[i],o=s?s.buildStyles(e,n):{};return
r?r.buildStyles(e,n):o}build(i,e,n,s,r,o,u,h,b,y){const
w=[],M=this.ast.options&&this.ast.options.params||Nf,L=this.buildStyles(n,u&&u.params||Nf,w),O=h&&h.params||Nf,N=this.buildStyles(s,O,w),G=new
Set,
P=new Map,J=new
Map,se="void"===s,ke={params:Object.assign(Object.assign({},M),O)},mt=y?[]:Af(i,e,this.ast.animation,r,o,L,N,ke,b,w);let
Ct=0;if(mt.forEach(At=>{Ct=Math.max(At.duration+At.delay,Ct)}),w.length)return
Bw(e,this._triggerName,n,s,se,L,N,[],[],P,J,Ct,w);mt.forEach(At=>{const
hn=At.element,$o=oi(P,hn,{});At.preStyleProps.forEach($i=>$o[$i]=!0);const
ks=oi(J,hn,{});At.postStyleProps.forEach($i=>ks[$i]=!0),hn!==e&&G.add(hn)});const
Ut=Pu(G.values());return Bw(e,this._triggerName,n,s,se,L,N,mt,Ut,P,J,Ct)}}class
lF{constructor(i,e,n){this.styles=i,this.defaultParams=e,this.normalizer=n}buildStyles(i,e){const
n={},s=Ro(this.defaultParams);return Object.keys(i).forEach(r=>{const
o=i[r];null!=o&&(s[r]=o)}),this.styles.styles.forEach(r=>{if("string"!=typeof
r){const o=r;Object.keys(o).forEach(u=>{let
h=o[u];h.length>1&&(h=Au(h,s,e));const
b=this.normalizer.normalizePropertyName(u,e);h=this.normalizer.normalizeStyleValue(u,b,h,e),n[b]=h})}}),n}}class
uF{constructor(i,e,n){this.nam
e=i,this.ast=e,this._normalizer=n,this.transitionFactories=[],this.states={},e.states.forEach(s=>{this.states[s.name]=new
lF(s.style,s.options&&s.options.params||{},n)}),qw(this.states,"true","1"),qw(this.states,"false","0"),e.transitions.forEach(s=>{this.transitionFactories.push(new
Hw(i,s,this.states))}),this.fallbackTransition=function dF(t,i,e){return new
Hw(t,{type:1,animation:{type:2,steps:[],options:null},matchers:[(o,u)=>!0],options:null,queryCount:0,depCount:0},i)}(i,this.states)}get
containsQueries(){return this.ast.queryCount>0}matchTransition(i,e,n,s){return
this.transitionFactories.find(o=>o.match(i,e,n,s))||null}matchStyles(i,e,n){return
this.fallbackTransition.buildStyles(i,e,n)}}function
qw(t,i,e){t.hasOwnProperty(i)?t.hasOwnProperty(e)||(t[e]=t[i]):t.hasOwnProperty(e)&&(t[i]=t[e])}const
pF=new Gu;class
hF{constructor(i,e,n){this.bodyNode=i,this._driver=e,this._normalizer=n,this._animations={},this._playersById={},this.players=[]}register(i,e){const
n=[],r=Rf(this._d
river,e,n,[]);if(n.length)throw function gP(t){return new
re(3503,Ze)}();this._animations[i]=r}_buildPlayer(i,e,n){const
s=i.element,r=vw(0,this._normalizer,0,i.keyframes,e,n);return
this._driver.animate(s,r,i.duration,i.delay,i.easing,[],!0)}create(i,e,n={}){const
s=[],r=this._animations[i];let o;const u=new
Map;if(r?(o=Af(this._driver,e,r,Df,Eu,{},{},n,pF,s),o.forEach(y=>{const
w=oi(u,y.element,{});y.postStyleProps.forEach(M=>w[M]=null)})):(s.push(function
_P(){return new re(3300,Ze)}()),o=[]),s.length)throw function bP(t){return new
re(3504,Ze)}();u.forEach((y,w)=>{Object.keys(y).forEach(M=>{y[M]=this._driver.computeStyle(w,M,ys)})});const
b=$s(o.map(y=>{const w=u.get(y.element);return this._buildPlayer(y,{},w)}));return
this._playersById[i]=b,b.onDestroy(()=>this.destroy(i)),this.players.push(b),b}destroy(i){const
e=this._getPlayer(i);e.destroy(),delete this._playersById[i];const
n=this.players.indexOf(e);n>=0&&this.players.splice(n,1)}_getPlayer(i){const
e=this._playersById[i];
if(!e)throw function vP(t){return new re(3301,Ze)}();return e}listen(i,e,n,s){const
r=wf(e,"","","");return
Cf(this._getPlayer(i),n,r,s),()=>{}}command(i,e,n,s){if("register"==n)return
void this.register(i,s[0]);if("create"==n)return void
this.create(i,e,s[0]||{});const
r=this._getPlayer(i);switch(n){case"play":r.play();break;case"pause":r.pause();break;case"reset":r.reset();break;case"restart":r.restart();break;case"finish":r.finish();break;case"init":r.init();break;case"setPosition":r.setPosition(parseFloat(s[0]));break;case"destroy":this.destroy(i)}}}const
Gw="ng-animate-queued",Vf="ng-animate-disabled",bF=[],Uw={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},vF={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},Ti="__ng_removed";class
Bf{constructor(i,e=""){this.namespaceId=e;const
n=i&&i.hasOwnProperty("value");if(this.value=function TF(t){return
null!=t?t:null}(n?i.value:i),n){const r=Ro(i);delete r.v
alue,this.options=r}else
this.options={};this.options.params||(this.options.params={})}get params(){return
this.options.params}absorbOptions(i){const e=i.params;if(e){const
n=this.options.params;Object.keys(e).forEach(s=>{null==n[s]&&(n[s]=e[s])})}}}const
dl="void",Hf=new Bf(dl);class
CF{constructor(i,e,n){this.id=i,this.hostElement=e,this._engine=n,this.players=[],this._triggers={},this._queue=[],this._elementListeners=new
Map,this._hostClassName="ng-tns-"+i,Si(e,this._hostClassName)}listen(i,e,n,s){if(!this._triggers.hasOwnProperty(e))throw
function CP(t,i){return new re(3302,Ze)}();if(null==n||0==n.length)throw function
yP(t){return new re(3303,Ze)}();if(!function
SF(t){return"start"==t||"done"==t}(n))throw function wP(t,i){return
new re(3400,Ze)}();const
r=oi(this._elementListeners,i,[]),o={name:e,phase:n,callback:s};r.push(o);const
u=oi(this._engine.statesByElement,i,{});return
u.hasOwnProperty(e)||(Si(i,Ru),Si(i,Ru+"-"+e),u[e]=Hf),()=>{this._engine.afterFlush(()=>{const
h=r.in
dexOf(o);h>=0&&r.splice(h,1),this._triggers[e]||delete
u[e]})}}register(i,e){return!this._triggers[i]&&(this._triggers[i]=e,!0)}_getTrigger(i){const
e=this._triggers[i];if(!e)throw function TP(t){return new re(3401,Ze)}();return
e}trigger(i,e,n,s=!0){const r=this._getTrigger(e),o=new qf(this.id,e,i);let
u=this._engine.statesByElement.get(i);u||(Si(i,Ru),Si(i,Ru+"-"+e),this._engine.statesByElement.set(i,u={}));let
h=u[e];const b=new
Bf(n,this.id);if(!(n&&n.hasOwnProperty("value"))&&h&&b.absorbOptions(h.options),u[e]=b,h||(h=Hf),b.value!==dl&&h.value===b.value){if(!function
MF(t,i){const e=Object.keys(t),n=Object.keys(i);if(e.length!=n.length)return!1;for(let
s=0;s<e.length;s++){const
r=e[s];if(!i.hasOwnProperty(r)||t[r]!==i[r])return!1}return!0}(h.params,b.params)){const
O=[],N=r.matchStyles(h.value,h.params,O),G=r.matchStyles(b.value,b.params,O);O.length?this._engine.reportError(O):this._engine.afterFlush(()=>{Tr(i,N),rs(i,G)})}return}const
M=oi(this._engine.playersByElement,i,[]);M
.forEach(O=>{O.namespaceId==this.id&&O.triggerName==e&&O.queued&&O.destroy()});let
E=r.matchTransition(h.value,b.value,i,b.params),L=!1;if(!E){if(!s)return;E=r.fallbackTransition,L=!0}return
this._engine.totalQueuedPlayers++,this._queue.push({element:i,triggerName:e,transition:E,fromState:h,toState:b,player:o,isFallbackTransition:L}),L||(Si(i,Gw),o.onStart(()=>{Lo(i,Gw)})),o.onDone(()=>{let
O=this.players.indexOf(o);O>=0&&this.players.splice(O,1);const
N=this._engine.playersByElement.get(i);if(N){let
G=N.indexOf(o);G>=0&&N.splice(G,1)}}),this.players.push(o),M.push(o),o}deregister(i){delete
this._triggers[i],this._engine.statesByElement.forEach((e,n)=>{delete
e[i]}),this._elementListeners.forEach((e,n)=>{this._elementListeners.set(n,e.filter(s=>s.name!=i))})}clearElementCache(i){this._engine.statesByElement.delete(i),this._elementListeners.delete(i);const
e=this._engine.playersByElement.get(i);e&&(e.forEach(n=>n.destroy()),this._engine.playersByElement.delete(i))}_signalRemovalForIn
nerTriggers(i,e){const
n=this._engine.driver.query(i,Lu,!0);n.forEach(s=>{if(s[Ti])return;const
r=this._engine.fetchNamespacesByElement(s);r.size?r.forEach(o=>o.triggerLeaveAnimation(s,e,!1,!0)):this.clearElementCache(s)}),this._engine.afterFlushAnimationsDone(()=>n.forEach(s=>this.clearElementCache(s)))}triggerLeaveAnimation(i,e,n,s){const
r=this._engine.statesByElement.get(i),o=new Map;if(r){const
u=[];if(Object.keys(r).forEach(h=>{if(o.set(h,r[h].value),this._triggers[h]){const
b=this.trigger(i,h,dl,s);b&&u.push(b)}}),u.length)return
this._engine.markElementAsRemoved(this.id,i,!0,e,o),n&&$s(u).onDone(()=>this._engine.processLeaveNode(i)),!0}return!1}prepareLeaveAnimationListeners(i){const
e=this._elementListeners.get(i),n=this._engine.statesByElement.get(i);if(e&&n){const
s=new Set;e.forEach(r=>{const o=r.name;if(s.has(o))return;s.add(o);const
h=this._triggers[o].fallbackTransition,b=n[o]||Hf,y=new Bf(dl),w=new
qf(this.id,o,i);this._engine.totalQueuedPlayers++,this._queue.push({e
lement:i,triggerName:o,transition:h,fromState:b,toState:y,player:w,isFallbackTransition:!0})})}}removeNode(i,e){const
n=this._engine;if(i.childElementCount&&this._signalRemovalForInnerTriggers(i,e),this.triggerLeaveAnimation(i,e,!0))return;let
s=!1;if(n.totalAnimations){const
r=n.players.length?n.playersByQueriedElement.get(i):[];if(r&&r.length)s=!0;else{let
o=i;for(;o=o.parentNode;)if(n.statesByElement.get(o)){s=!0;break}}}if(this.prepareLeaveAnimationListeners(i),s)n.markElementAsRemoved(this.id,i,!1,e);else{const
r=i[Ti];(!r||r===Uw)&&(n.afterFlush(()=>this.clearElementCache(i)),n.destroyInnerAnimations(i),n._onRemovalComplete(i,e))}}insertNode(i,e){Si(i,this._hostClassName)}drainQueuedTransitions(i){const
e=[];return this._queue.forEach(n=>{const s=n.player;if(s.destroyed)return;const
r=n.element,o=this._elementListeners.get(r);o&&o.forEach(u=>{if(u.name==n.triggerName){const
h=wf(r,n.triggerName,n.fromState.value,n.toState.value);h._data=i,Cf(n.player,u.phase,h,u.callback)}}),s
.markedForDestroy?this._engine.afterFlush(()=>{s.destroy()}):e.push(n)}),this._queue=[],e.sort((n,s)=>{const
r=n.transition.ast.depCount,o=s.transition.ast.depCount;return
0==r||0==o?r-o:this._engine.driver.containsElement(n.element,s.element)?1:-1})}destroy(i){this.players.forEach(e=>e.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,i)}elementContainsData(i){let
e=!1;return
this._elementListeners.has(i)&&(e=!0),e=!!this._queue.find(n=>n.element===i)||e,e}}class
yF{constructor(i,e,n){this.bodyNode=i,this.driver=e,this._normalizer=n,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=(s,r)=>{}}_onRem
ovalComplete(i,e){this.onRemovalComplete(i,e)}get queuedPlayers(){const i=[];return
this._namespaceList.forEach(e=>{e.players.forEach(n=>{n.queued&&i.push(n)})}),i}createNamespace(i,e){const
n=new CF(i,e,this);return
this.bodyNode&&this.driver.containsElement(this.bodyNode,e)?this._balanceNamespaceList(n,e):(this.newHostElements.set(e,n),this.collectEnterElement(e)),this._namespaceLookup[i]=n}_balanceNamespaceList(i,e){const
n=this._namespaceList,s=this.namespacesByHostElement,r=n.length-1;if(r>=0){let
o=!1;if(void 0!==this.driver.getParentElement){let
u=this.driver.getParentElement(e);for(;u;){const h=s.get(u);if(h){const
b=n.indexOf(h);n.splice(b+1,0,i),o=!0;break}u=this.driver.getParentElement(u)}}else
for(let
u=r;u>=0;u--)if(this.driver.containsElement(n[u].hostElement,e)){n.splice(u+1,0,i),o=!0;break}o||n.unshift(i)}else
n.push(i);return s.set(e,i),i}register(i,e){let n=this._namespaceLookup[i];return
n||(n=this.createNamespace(i,e)),n}registerTrigger(i,e,n){let s=this._namespa
ceLookup[i];s&&s.register(e,n)&&this.totalAnimations++}destroy(i,e){if(!i)return;const
n=this._fetchNamespace(i);this.afterFlush(()=>{this.namespacesByHostElement.delete(n.hostElement),delete
this._namespaceLookup[i];const
s=this._namespaceList.indexOf(n);s>=0&&this._namespaceList.splice(s,1)}),this.afterFlushAnimationsDone(()=>n.destroy(e))}_fetchNamespace(i){return
this._namespaceLookup[i]}fetchNamespacesByElement(i){const e=new
Set,n=this.statesByElement.get(i);if(n){const s=Object.keys(n);for(let
r=0;r<s.length;r++){const o=n[s[r]].namespaceId;if(o){const
u=this._fetchNamespace(o);u&&e.add(u)}}}return e}trigger(i,e,n,s){if(ju(e)){const
r=this._fetchNamespace(i);if(r)return
r.trigger(e,n,s),!0}return!1}insertNode(i,e,n,s){if(!ju(e))return;const
r=e[Ti];if(r&&r.setForRemoval){r.setForRemoval=!1,r.setForMove=!0;const
o=this.collectedLeaveElements.indexOf(e);o>=0&&this.collectedLeaveElements.splice(o,1)}if(i){const
o=this._fetchNamespace(i);o&&o.insertNode(e,n)}s&&this.collectEnterE
lement(e)}collectEnterElement(i){this.collectedEnterElements.push(i)}markElementAsDisabled(i,e){e?this.disabledNodes.has(i)||(this.disabledNodes.add(i),Si(i,Vf)):this.disabledNodes.has(i)&&(this.disabledNodes.delete(i),Lo(i,Vf))}removeNode(i,e,n,s){if(ju(e)){const
r=i?this._fetchNamespace(i):null;if(r?r.removeNode(e,s):this.markElementAsRemoved(i,e,!1,s),n){const
o=this.namespacesByHostElement.get(e);o&&o.id!==i&&o.removeNode(e,s)}}else
this._onRemovalComplete(e,s)}markElementAsRemoved(i,e,n,s,r){this.collectedLeaveElements.push(e),e[Ti]={namespaceId:i,setForRemoval:s,hasAnimation:n,removedBeforeQueried:!1,previousTriggersValues:r}}listen(i,e,n,s,r){return
ju(e)?this._fetchNamespace(i).listen(e,n,s,r):()=>{}}_buildInstruction(i,e,n,s,r){return
i.transition.build(this.driver,i.element,i.fromState.value,i.toState.value,n,s,i.fromState.options,i.toState.options,e,r)}destroyInnerAnimations(i){let
e=this.driver.query(i,Lu,!0);e.forEach(n=>this.destroyActiveAnimationsForElement(n)),0!=thi
s.playersByQueriedElement.size&&(e=this.driver.query(i,Mf,!0),e.forEach(n=>this.finishActiveQueriedAnimationOnElement(n)))}destroyActiveAnimationsForElement(i){const
e=this.playersByElement.get(i);e&&e.forEach(n=>{n.queued?n.markedForDestroy=!0:n.destroy()})}finishActiveQueriedAnimationOnElement(i){const
e=this.playersByQueriedElement.get(i);e&&e.forEach(n=>n.finish())}whenRenderingDone(){return
new Promise(i=>{if(this.players.length)return
$s(this.players).onDone(()=>i());i()})}processLeaveNode(i){var e;const
n=i[Ti];if(n&&n.setForRemoval){if(i[Ti]=Uw,n.namespaceId){this.destroyInnerAnimations(i);const
s=this._fetchNamespace(n.namespaceId);s&&s.clearElementCache(i)}this._onRemovalComplete(i,n.setForRemoval)}(null===(e=i.classList)||void
0===e?void
0:e.contains(Vf))&&this.markElementAsDisabled(i,!1),this.driver.query(i,".ng-animate-disabled",!0).forEach(s=>{this.markElementAsDisabled(s,!1)})}flush(i=-1){let
e=[];if(this.newHostElements.size&&(this.newHostElements.forEach((n,s)=>this
._balanceNamespaceList(n,s)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let
n=0;n<this.collectedEnterElements.length;n++)Si(this.collectedEnterElements[n],"ng-star-inserted");if(this._namespaceList.length&&(this.totalQueuedPlayers||this.collectedLeaveElements.length)){const
n=[];try{e=this._flushAnimations(n,i)}finally{for(let s=0;s<n.length;s++)n[s]()}}else
for(let
n=0;n<this.collectedLeaveElements.length;n++)this.processLeaveNode(this.collectedLeaveElements[n]);if(this.totalQueuedPlayers=0,this.collectedEnterElements.length=0,this.collectedLeaveElements.length=0,this._flushFns.forEach(n=>n()),this._flushFns=[],this._whenQuietFns.length){const
n=this._whenQuietFns;this._whenQuietFns=[],e.length?$s(e).onDone(()=>{n.forEach(s=>s())}):n.forEach(s=>s())}}reportError(i){throw
function SP(t){return new re(3402,Ze)}()}_flushAnimations(i,e){const n=new Gu,s=[],r=new
Map,o=[],u=new Map,h=new Map,b=new Map,y=new Set;this.disabledNodes.forEach(a
e=>{y.add(ae);const fe=this.driver.query(ae,".ng-animate-queued",!0);for(let
Se=0;Se<fe.length;Se++)y.add(fe[Se])});const
w=this.bodyNode,M=Array.from(this.statesByElement.keys()),E=$w(M,this.collectedEnterElements),L=new
Map;let O=0;E.forEach((ae,fe)=>{const
Se=Df+O++;L.set(fe,Se),ae.forEach(ot=>Si(ot,Se))});const N=[],G=new Set,P=new
Set;for(let ae=0;ae<this.collectedLeaveElements.length;ae++){const
fe=this.collectedLeaveElements[ae],Se=fe[Ti];Se&&Se.setForRemoval&&(N.push(fe),G.add(fe),Se.hasAnimation?this.driver.query(fe,".ng-star-inserted",!0).forEach(ot=>G.add(ot)):P.add(fe))}const
J=new Map,se=$w(M,Array.from(G));se.forEach((ae,fe)=>{const
Se=Eu+O++;J.set(fe,Se),ae.forEach(ot=>Si(ot,Se))}),i.push(()=>{E.forEach((ae,fe)=>{const
Se=L.get(fe);ae.forEach(ot=>Lo(ot,Se))}),se.forEach((ae,fe)=>{const
Se=J.get(fe);ae.forEach(ot=>Lo(ot,Se))}),N.forEach(ae=>{this.processLeaveNode(ae)})});const
ke=[],mt=[];for(let
ae=this._namespaceList.length-1;ae>=0;ae--)this._namespaceList[ae].drainQ
ueuedTransitions(e).forEach(Se=>{const
ot=Se.player,Cn=Se.element;if(ke.push(ot),this.collectedEnterElements.length){const
$n=Cn[Ti];if($n&&$n.setForMove){if($n.previousTriggersValues&&$n.previousTriggersValues.has(Se.triggerName)){const
Pr=$n.previousTriggersValues.get(Se.triggerName),tr=this.statesByElement.get(Se.element);tr&&tr[Se.triggerName]&&(tr[Se.triggerName].value=Pr)}return
void ot.destroy()}}const
us=!w||!this.driver.containsElement(w,Cn),ui=J.get(Cn),er=L.get(Cn),zt=this._buildInstruction(Se,n,er,ui,us);if(zt.errors&&zt.errors.length)return
void mt.push(zt);if(us)return
ot.onStart(()=>Tr(Cn,zt.fromStyles)),ot.onDestroy(()=>rs(Cn,zt.toStyles)),void
s.push(ot);if(Se.isFallbackTransition)return
ot.onStart(()=>Tr(Cn,zt.fromStyles)),ot.onDestroy(()=>rs(Cn,zt.toStyles)),void
s.push(ot);const
AS=[];zt.timelines.forEach($n=>{$n.stretchStartingKeyframe=!0,this.disabledNodes.has($n.element)||AS.push($n)}),zt.timelines=AS,n.append(Cn,zt.timelines),o.push({instruction:zt,player:ot,
element:Cn}),zt.queriedElements.forEach($n=>oi(u,$n,[]).push(ot)),zt.preStyleProps.forEach(($n,Pr)=>{const
tr=Object.keys($n);if(tr.length){let Fr=h.get(Pr);Fr||h.set(Pr,Fr=new
Set),tr.forEach(xg=>Fr.add(xg))}}),zt.postStyleProps.forEach(($n,Pr)=>{const
tr=Object.keys($n);let Fr=b.get(Pr);Fr||b.set(Pr,Fr=new
Set),tr.forEach(xg=>Fr.add(xg))})});if(mt.length){const
ae=[];mt.forEach(fe=>{ae.push(function xP(t,i){return new
re(3505,Ze)}())}),ke.forEach(fe=>fe.destroy()),this.reportError(ae)}const Ct=new
Map,Ut=new Map;o.forEach(ae=>{const
fe=ae.element;n.has(fe)&&(Ut.set(fe,fe),this._beforeAnimationBuild(ae.player.namespaceId,ae.instruction,Ct))}),s.forEach(ae=>{const
fe=ae.element;this._getPreviousPlayers(fe,!1,ae.namespaceId,ae.triggerName,null).forEach(ot=>{oi(Ct,fe,[]).push(ot),ot.destroy()})});const
At=N.filter(ae=>Kw(ae,h,b)),hn=new
Map;jw(hn,this.driver,P,b,ys).forEach(ae=>{Kw(ae,h,b)&&At.push(ae)});const
ks=new Map;E.forEach((ae,fe)=>{jw(ks,this.driver,new Set(ae),h,"!")}),At.fo
rEach(ae=>{const
fe=hn.get(ae),Se=ks.get(ae);hn.set(ae,Object.assign(Object.assign({},fe),Se))});const
$i=[],Wo=[],Ko={};o.forEach(ae=>{const{element:fe,player:Se,instruction:ot}=ae;if(n.has(fe)){if(y.has(fe))return
Se.onDestroy(()=>rs(fe,ot.toStyles)),Se.disabled=!0,Se.overrideTotalTime(ot.totalTime),void
s.push(Se);let Cn=Ko;if(Ut.size>1){let ui=fe;const er=[];for(;ui=ui.parentNode;){const
zt=Ut.get(ui);if(zt){Cn=zt;break}er.push(ui)}er.forEach(zt=>Ut.set(zt,Cn))}const
us=this._buildAnimation(Se.namespaceId,ot,Ct,r,ks,hn);if(Se.setRealPlayer(us),Cn===Ko)$i.push(Se);else{const
ui=this.playersByElement.get(Cn);ui&&ui.length&&(Se.parentPlayer=$s(ui)),s.push(Se)}}else
Tr(fe,ot.fromStyles),Se.onDestroy(()=>rs(fe,ot.toStyles)),Wo.push(Se),y.has(fe)&&s.push(Se)}),Wo.forEach(ae=>{const
fe=r.get(ae.element);if(fe&&fe.length){const
Se=$s(fe);ae.setRealPlayer(Se)}}),s.forEach(ae=>{ae.parentPlayer?ae.syncPlayerEvents(ae.parentPlayer):ae.destroy()});for(let
ae=0;ae<N.length;ae++){const fe=N[ae
],Se=fe[Ti];if(Lo(fe,Eu),Se&&Se.hasAnimation)continue;let ot=[];if(u.size){let
us=u.get(fe);us&&us.length&&ot.push(...us);let
ui=this.driver.query(fe,Mf,!0);for(let er=0;er<ui.length;er++){let
zt=u.get(ui[er]);zt&&zt.length&&ot.push(...zt)}}const
Cn=ot.filter(us=>!us.destroyed);Cn.length?xF(this,fe,Cn):this.processLeaveNode(fe)}return
N.length=0,$i.forEach(ae=>{this.players.push(ae),ae.onDone(()=>{ae.destroy();const
fe=this.players.indexOf(ae);this.players.splice(fe,1)}),ae.play()}),$i}elementContainsData(i,e){let
n=!1;const s=e[Ti];return
s&&s.setForRemoval&&(n=!0),this.playersByElement.has(e)&&(n=!0),this.playersByQueriedElement.has(e)&&(n=!0),this.statesByElement.has(e)&&(n=!0),this._fetchNamespace(i).elementContainsData(e)||n}afterFlush(i){this._flushFns.push(i)}afterFlushAnimationsDone(i){this._whenQuietFns.push(i)}_getPreviousPlayers(i,e,n,s,r){let
o=[];if(e){const u=this.playersByQueriedElement.get(i);u&&(o=u)}else{const
u=this.playersByElement.get(i);if(u){const h=!r||r==dl;
u.forEach(b=>{b.queued||!h&&b.triggerName!=s||o.push(b)})}}return(n||s)&&(o=o.filter(u=>!(n&&n!=u.namespaceId||s&&s!=u.triggerName))),o}_beforeAnimationBuild(i,e,n){const
r=e.element,o=e.isRemovalTransition?void 0:i,u=e.isRemovalTransition?void
0:e.triggerName;for(const h of e.timelines){const
b=h.element,y=b!==r,w=oi(n,b,[]);this._getPreviousPlayers(b,y,o,u,e.toState).forEach(E=>{const
L=E.getRealPlayer();L.beforeDestroy&&L.beforeDestroy(),E.destroy(),w.push(E)})}Tr(r,e.fromStyles)}_buildAnimation(i,e,n,s,r,o){const
u=e.triggerName,h=e.element,b=[],y=new Set,w=new Set,M=e.timelines.map(L=>{const
O=L.element;y.add(O);const N=O[Ti];if(N&&N.removedBeforeQueried)return new
cl(L.duration,L.delay);const G=O!==h,P=function DF(t){const i=[];return
Ww(t,i),i}((n.get(O)||bF).map(Ct=>Ct.getRealPlayer())).filter(Ct=>!!Ct.element&&Ct.element===O),J=r.get(O),se=o.get(O),ke=vw(0,this._normalizer,0,L.keyframes,J,se),mt=this._buildPlayer(L,ke,P);if(L.subTimeline&&s&&w.add(O),G){const
Ct=new qf(i,u,
O);Ct.setRealPlayer(mt),b.push(Ct)}return
mt});b.forEach(L=>{oi(this.playersByQueriedElement,L.element,[]).push(L),L.onDone(()=>function
wF(t,i,e){let n;if(t instanceof Map){if(n=t.get(i),n){if(n.length){const
s=n.indexOf(e);n.splice(s,1)}0==n.length&&t.delete(i)}}else
if(n=t[i],n){if(n.length){const s=n.indexOf(e);n.splice(s,1)}0==n.length&&delete
t[i]}return
n}(this.playersByQueriedElement,L.element,L))}),y.forEach(L=>Si(L,Iw));const
E=$s(M);return
E.onDestroy(()=>{y.forEach(L=>Lo(L,Iw)),rs(h,e.toStyles)}),w.forEach(L=>{oi(s,L,[]).push(E)}),E}_buildPlayer(i,e,n){return
e.length>0?this.driver.animate(i.element,e,i.duration,i.delay,i.easing,n):new
cl(i.duration,i.delay)}}class
qf{constructor(i,e,n){this.namespaceId=i,this.triggerName=e,this.element=n,this._player=new
cl,this._containsRealPlayer=!1,this._queuedCallbacks={},this.destroyed=!1,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}setRealPlayer(i){this._containsRealPlayer||(this._player=i,Object.keys(
this._queuedCallbacks).forEach(e=>{this._queuedCallbacks[e].forEach(n=>Cf(i,e,void
0,n))}),this._queuedCallbacks={},this._containsRealPlayer=!0,this.overrideTotalTime(i.totalTime),this.queued=!1)}getRealPlayer(){return
this._player}overrideTotalTime(i){this.totalTime=i}syncPlayerEvents(i){const
e=this._player;e.triggerCallback&&i.onStart(()=>e.triggerCallback("start")),i.onDone(()=>this.finish()),i.onDestroy(()=>this.destroy())}_queueEvent(i,e){oi(this._queuedCallbacks,i,[]).push(e)}onDone(i){this.queued&&this._queueEvent("done",i),this._player.onDone(i)}onStart(i){this.queued&&this._queueEvent("start",i),this._player.onStart(i)}onDestroy(i){this.queued&&this._queueEvent("destroy",i),this._player.onDestroy(i)}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,th
is._player.destroy()}reset(){!this.queued&&this._player.reset()}setPosition(i){this.queued||this._player.setPosition(i)}getPosition(){return
this.queued?0:this._player.getPosition()}triggerCallback(i){const
e=this._player;e.triggerCallback&&e.triggerCallback(i)}}function ju(t){return
t&&1===t.nodeType}function zw(t,i){const e=t.style.display;return
t.style.display=null!=i?i:"none",e}function jw(t,i,e,n,s){const
r=[];e.forEach(h=>r.push(zw(h)));const o=[];n.forEach((h,b)=>{const
y={};h.forEach(w=>{const
M=y[w]=i.computeStyle(b,w,s);(!M||0==M.length)&&(b[Ti]=vF,o.push(b))}),t.set(b,y)});let
u=0;return e.forEach(h=>zw(h,r[u++])),o}function $w(t,i){const e=new
Map;if(t.forEach(u=>e.set(u,[])),0==i.length)return e;const s=new Set(i),r=new
Map;function o(u){if(!u)return 1;let h=r.get(u);if(h)return h;const b=u.parentNode;return
h=e.has(b)?b:s.has(b)?1:o(b),r.set(u,h),h}return i.forEach(u=>{const
h=o(u);1!==h&&e.get(h).push(u)}),e}function Si(t,i){var
e;null===(e=t.classList)||void 0===e||
e.add(i)}function Lo(t,i){var e;null===(e=t.classList)||void 0===e||e.remove(i)}function
xF(t,i,e){$s(e).onDone(()=>t.processLeaveNode(i))}function Ww(t,i){for(let
e=0;e<t.length;e++){const n=t[e];n instanceof _w?Ww(n.players,i):i.push(n)}}function
Kw(t,i,e){const n=e.get(t);if(!n)return!1;let s=i.get(t);return
s?n.forEach(r=>s.add(r)):i.set(t,n),e.delete(t),!0}class
$u{constructor(i,e,n){this.bodyNode=i,this._driver=e,this._normalizer=n,this._triggerCache={},this.onRemovalComplete=(s,r)=>{},this._transitionEngine=new
yF(i,e,n),this._timelineEngine=new
hF(i,e,n),this._transitionEngine.onRemovalComplete=(s,r)=>this.onRemovalComplete(s,r)}registerTrigger(i,e,n,s,r){const
o=i+"-"+s;let u=this._triggerCache[o];if(!u){const
h=[],y=Rf(this._driver,r,h,[]);if(h.length)throw function mP(t,i){return new
re(3404,Ze)}();u=function cF(t,i,e){return new
uF(t,i,e)}(s,y,this._normalizer),this._triggerCache[o]=u}this._transitionEngine.registerTrigger(e,s,u)}register(i,e){this._transitionEngine.regi
ster(i,e)}destroy(i,e){this._transitionEngine.destroy(i,e)}onInsert(i,e,n,s){this._transitionEngine.insertNode(i,e,n,s)}onRemove(i,e,n,s){this._transitionEngine.removeNode(i,e,s||!1,n)}disableAnimations(i,e){this._transitionEngine.markElementAsDisabled(i,e)}process(i,e,n,s){if("(a)"==n.charAt(0)){const[r,o]=Cw(n);this._timelineEngine.command(r,e,o,s)}else
this._transitionEngine.trigger(i,e,n,s)}listen(i,e,n,s,r){if("(a)"==n.charAt(0)){const[o,u]=Cw(n);return
this._timelineEngine.listen(o,e,u,r)}return
this._transitionEngine.listen(i,e,n,s,r)}flush(i=-1){this._transitionEngine.flush(i)}get
players(){return
this._transitionEngine.players.concat(this._timelineEngine.players)}whenRenderingDone(){return
this._transitionEngine.whenRenderingDone()}}let IF=(()=>{class
t{constructor(e,n,s){this._element=e,this._startStyles=n,this._endStyles=s,this._state=0;let
r=t.initialStylesByElement.get(e);r||t.initialStylesByElement.set(e,r={}),this._initialStyles=r}start(){this._state<1&&(this._startStyles
&&rs(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(rs(this._element,this._initialStyles),this._endStyles&&(rs(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(t.initialStylesByElement.delete(this._element),this._startStyles&&(Tr(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(Tr(this._element,this._endStyles),this._endStyles=null),rs(this._element,this._initialStyles),this._state=3)}}return
t.initialStylesByElement=new WeakMap,t})();function Gf(t){let i=null;const
e=Object.keys(t);for(let n=0;n<e.length;n++){const
s=e[n];EF(s)&&(i=i||{},i[s]=t[s])}return i}function
EF(t){return"display"===t||"position"===t}class
Qw{constructor(i,e,n,s){this.element=i,this.keyframes=e,this.options=n,this._specialStyles=s,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=n.duration,this._delay=n.delay||0,this.time=this._duration+this._delay}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(i=>i()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;const
i=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,i,this.options),this._finalKeyframe=i.length?i[i.length-1]:{},this.domPlayer.addEventListener("finish",()=>this._onFinish())}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_triggerWebAnimation(i,e,n){return
i.animate(e,n)}onStart(i){this._onStartFns.push(i)}onDone(i){this._onDoneFns.push(i)}onDestroy(i){this._onDestroyFns.push(i)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(i=>i()),this._onStartFns=[],this._started=!0,this._specialStyles&&this._specialStyles.start()),this.domPlaye
r.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(i=>i()),this._onDestroyFns=[])}setPosition(i){void
0===this.domPlayer&&this.init(),this.domPlayer.currentTime=i*this.time}getPosition(){return
this.domPlayer.currentTime/this.time}get totalTime(){return
this._delay+this._duration}beforeDestroy(){const i={};if(this.hasStarted()){const
e=this._finalKeyframe;Object.keys(e).forEach(n=>{"offset"!=n&&(i[n]=this._finished?e[n]:Aw(this.element,n))})}this.currentSnapshot=i}triggerCallback(i){cons
t
e="start"==i?this._onStartFns:this._onDoneFns;e.forEach(n=>n()),e.length=0}}class
RF{validateStyleProperty(i){return
Sw(i)}matchesElement(i,e){return!1}containsElement(i,e){return
xw(i,e)}getParentElement(i){return Sf(i)}query(i,e,n){return
Dw(i,e,n)}computeStyle(i,e,n){return
window.getComputedStyle(i)[e]}animate(i,e,n,s,r,o=[]){const
h={duration:n,delay:s,fill:0==s?"both":"forwards"};r&&(h.easing=r);const
b={},y=o.filter(M=>M instanceof Qw);(function PP(t,i){return
0===t||0===i})(n,s)&&y.forEach(M=>{let
E=M.currentSnapshot;Object.keys(E).forEach(L=>b[L]=E[L])}),e=function FP(t,i,e){const
n=Object.keys(e);if(n.length&&i.length){let
r=i[0],o=[];if(n.forEach(u=>{r.hasOwnProperty(u)||o.push(u),r[u]=e[u]}),o.length)for(var
s=1;s<i.length;s++){let u=i[s];o.forEach(function(h){u[h]=Aw(t,h)})}}return
i}(i,e=e.map(M=>Ws(M,!1)),b);const w=function kF(t,i){let e=null,n=null;return
Array.isArray(i)&&i.length?(e=Gf(i[0]),i.length>1&&(n=Gf(i[i.length-1]))):i&&(e=Gf(i)),e||n?new
IF(t,e,n):null
}(i,e);return new Qw(i,e,h,w)}}let LF=(()=>{class t extends
hw{constructor(e,n){super(),this._nextAnimationId=0,this._renderer=e.createRenderer(n.body,{id:"0",encapsulation:ki.None,styles:[],data:{animation:[]}})}build(e){const
n=this._nextAnimationId.toString();this._nextAnimationId++;const
s=Array.isArray(e)?mw(e):e;return Jw(this._renderer,null,n,"register",[s]),new
OF(n,this._renderer)}}return t.\u0275fac=function(e){return
new(e||t)(K(Ba),K(Xt))},t.\u0275prov=X({token:t,factory:t.\u0275fac}),t})();class OF
extends class zA{}{constructor(i,e){super(),this._id=i,this._renderer=e}create(i,e){return
new AF(this._id,i,e||{},this._renderer)}}class
AF{constructor(i,e,n,s){this.id=i,this.element=e,this._renderer=s,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",n)}_listen(i,e){return
this._renderer.listen(this.element,`@@${this.id}:${i}`,e)}_command(i,...e){return
Jw(this._renderer,this.element,this.id,i,e)}onDone(i){this._listen("done",i)}onStart(i){thi
s._listen("start",i)}onDestroy(i){this._listen("destroy",i)}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(i){this._command("setPosition",i)}getPosition(){var
i,e;return null!==(e=null===(i=this._renderer.engine.players[+this.id])||void 0===i?void
0:i.getPosition())&&void 0!==e?e:0}}function Jw(t,i,e,n,s){return
t.setProperty(i,`@@${e}:${n}`,s)}const Yw="@.disabled";let PF=(()=>{class
t{constructor(e,n,s){this.delegate=e,this.engine=n,this._zone=s,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new
Map,this._cdRecurDepth=0,this.promise=Promise.resolve(0),n.onRemovalComplete=(r,o)=>{const
u=null==o?void 0:o.parentNode(r);u&&o.removeChild(u,r)}}createRenderer(e,n){const
r=this.delegate.crea
teRenderer(e,n);if(!(e&&n&&n.data&&n.data.animation)){let
y=this._rendererCache.get(r);return y||(y=new
Zw("",r,this.engine),this._rendererCache.set(r,y)),y}const
o=n.id,u=n.id+"-"+this._currentId;this._currentId++,this.engine.register(u,e);const
h=y=>{Array.isArray(y)?y.forEach(h):this.engine.registerTrigger(o,u,e,y.name,y)};return
n.data.animation.forEach(h),new
FF(this,u,r,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){this.promise.then(()=>{this._microtaskId++})}scheduleListenerCallback(e,n,s){e>=0&&e<this._microtaskId?this._zone.run(()=>n(s)):(0==this._animationCallbacksBuffer.length&&Promise.resolve(null).then(()=>{this._zone.run(()=>{this._animationCallbacksBuffer.forEach(r=>{const[o,u]=r;o(u)}),this._animationCallbacksBuffer=[]})}),this._animationCallbacksBuffer.push([n,s]))}end(){this._cdRecurDepth--,0==this._cdRecurDepth&&this._zone.runOutsideAngular(()=>{this._scheduleCountTask(),this.engine.flush(this._microtaskI
d)}),this.delegate.end&&this.delegate.end()}whenRenderingDone(){return
this.engine.whenRenderingDone()}}return t.\u0275fac=function(e){return
new(e||t)(K(Ba),K($u),K(nt))},t.\u0275prov=X({token:t,factory:t.\u0275fac}),t})();class
Zw{constructor(i,e,n){this.namespaceId=i,this.delegate=e,this.engine=n,this.destroyNode=this.delegate.destroyNode?s=>e.destroyNode(s):null}get
data(){return
this.delegate.data}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.delegate.destroy()}createElement(i,e){return
this.delegate.createElement(i,e)}createComment(i){return
this.delegate.createComment(i)}createText(i){return
this.delegate.createText(i)}appendChild(i,e){this.delegate.appendChild(i,e),this.engine.onInsert(this.namespaceId,e,i,!1)}insertBefore(i,e,n,s=!0){this.delegate.insertBefore(i,e,n),this.engine.onInsert(this.namespaceId,e,i,s)}removeChild(i,e,n){this.engine.onRemove(this.namespaceId,e,this.delegate,n)}selectRootElement(i,e){return
this.delegate.selectRootElement(i,e)}p
arentNode(i){return this.delegate.parentNode(i)}nextSibling(i){return
this.delegate.nextSibling(i)}setAttribute(i,e,n,s){this.delegate.setAttribute(i,e,n,s)}removeAttribute(i,e,n){this.delegate.removeAttribute(i,e,n)}addClass(i,e){this.delegate.addClass(i,e)}removeClass(i,e){this.delegate.removeClass(i,e)}setStyle(i,e,n,s){this.delegate.setStyle(i,e,n,s)}removeStyle(i,e,n){this.delegate.removeStyle(i,e,n)}setProperty(i,e,n){"@"==e.charAt(0)&&e==Yw?this.disableAnimations(i,!!n):this.delegate.setProperty(i,e,n)}setValue(i,e){this.delegate.setValue(i,e)}listen(i,e,n){return
this.delegate.listen(i,e,n)}disableAnimations(i,e){this.engine.disableAnimations(i,e)}}class
FF extends
Zw{constructor(i,e,n,s){super(e,n,s),this.factory=i,this.namespaceId=e}setProperty(i,e,n){"(a)"==e.charAt(0)?"."==e.charAt(1)&&e==Yw?this.disableAnimations(i,n=void
0===n||!!n):this.engine.process(this.namespaceId,i,e.substr(1),n):this.delegate.setProperty(i,e,n)}listen(i,e,n){if("@"==e.charAt(0)){const
s=function N
F(t){switch(t){case"body":return document.body;case"document":return
document;case"window":return window;default:return t}}(i);let
r=e.substr(1),o="";return"(a)"!=r.charAt(0)&&([r,o]=function
VF(t){const
i=t.indexOf(".");return[t.substring(0,i),t.substr(i+1)]}(r)),this.engine.listen(this.namespaceId,s,r,o,u=>{this.factory.scheduleListenerCallback(u._data||-1,n,u)})}return
this.delegate.listen(i,e,n)}}let BF=(()=>{class t extends
$u{constructor(e,n,s){super(e.body,n,s)}ngOnDestroy(){this.flush()}}return
t.\u0275fac=function(e){return
new(e||t)(K(Xt),K(xf),K(Ff))},t.\u0275prov=X({token:t,factory:t.\u0275fac}),t})();const
Xw=new
be("AnimationModuleType"),eT=[{provide:hw,useClass:LF},{provide:Ff,useFactory:function
HF(){return new sF}},{provide:$u,useClass:BF},{provide:Ba,useFactory:function
qF(t,i,e){return new PF(t,i,e)},deps:[ru,$u,nt]}],tT=[{provide:xf,useFactory:()=>new
RF},{provide:Xw,useValue:"BrowserAnimations"},...eT],GF=[{provide:xf,useClass:Mw},{provide:Xw,useValue:"NoopAnimati
ons"},...eT];let UF=(()=>{class t{static
withConfig(e){return{ngModule:t,providers:e.disableAnimations?GF:tT}}}return
t.\u0275fac=function(e){return
new(e||t)},t.\u0275mod=he({type:t}),t.\u0275inj=ue({providers:tT,imports:[qy]}),t})();class
Z{static equals(i,e,n){return
n?this.resolveFieldData(i,n)===this.resolveFieldData(e,n):this.equalsByValue(i,e)}static
equalsByValue(i,e){if(i===e)return!0;if(i&&e&&"object"==typeof
i&&"object"==typeof e){var
r,o,u,n=Array.isArray(i),s=Array.isArray(e);if(n&&s){if((o=i.length)!=e.length)return!1;for(r=o;0!=r--;)if(!this.equalsByValue(i[r],e[r]))return!1;return!0}if(n!=s)return!1;var
h=i instanceof Date,b=e instanceof Date;if(h!=b)return!1;if(h&&b)return
i.getTime()==e.getTime();var y=i instanceof RegExp,w=e instanceof
RegExp;if(y!=w)return!1;if(y&&w)return i.toString()==e.toString();var
M=Object.keys(i);if((o=M.length)!==Object.keys(e).length)return!1;for(r=o;0!=r--;)if(!Object.prototype.hasOwnProperty.call(e,M[r]))return!1;for(r=o;0!=r--;)if(!th
is.equalsByValue(i[u=M[r]],e[u]))return!1;return!0}return i!=i&&e!=e}static
resolveFieldData(i,e){if(i&&e){if(this.isFunction(e))return
e(i);if(-1==e.indexOf("."))return i[e];{let n=e.split("."),s=i;for(let
r=0,o=n.length;r<o;++r){if(null==s)return null;s=s[n[r]]}return s}}return null}static
isFunction(i){return!!(i&&i.constructor&&i.call&&i.apply)}static
reorderArray(i,e,n){i&&e!==n&&(n>=i.length&&(n%=i.length,e%=i.length),i.splice(n,0,i.splice(e,1)[0]))}static
insertIntoOrderedArray(i,e,n,s){if(n.length>0){let r=!1;for(let
o=0;o<n.length;o++)if(this.findIndexInList(n[o],s)>e){n.splice(o,0,i),r=!0;break}r||n.push(i)}else
n.push(i)}static findIndexInList(i,e){let n=-1;if(e)for(let
s=0;s<e.length;s++)if(e[s]==i){n=s;break}return n}static
contains(i,e){if(null!=i&&e&&e.length)for(let n of
e)if(this.equals(i,n))return!0;return!1}static removeAccents(i){return
i&&i.search(/[\xC0-\xFF]/g)>-1&&(i=i.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")),i}static
isEmpty(i){return null==i||""===i||Array.isArray(i)&&0===i.length||!(i
instanceof Date)&&"object"==typeof
i&&0===Object.keys(i).length}static isNotEmpty(i){return!this.isEmpty(i)}}var
nT=0;function pl(){return"pr_id_"+ ++nT}var dt=function zF(){let t=[];const
s=r=>r&&parseInt(r.style.zIndex,10)||0;return{get:s,set:(r,o,u)=>{o&&(o.style.zIndex=String(((r,o)=>{let
u=t.length>0?t[t.length-1]:{key:r,value:o},h=u.value+(u.key===r?0:o)+1;return
t.push({key:r,value:h}),h})(r,u)))},clear:r=>{r&&((r=>{t=t.filter(o=>o.value!==r)})(s(r)
),r.style.zIndex="")},getCurrent:()=>t.length>0?t[t.length-1].value:0}}();const
iT=["*"];let _t=(()=>{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.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})(),zn=(()=>{class
t{constructor(){this.ripple=!1,this.filterMatchModeOptions={text:[_t.STARTS_WITH,_t.CONTAINS,_t.NOT_CONTAINS,_t.ENDS_WITH,_t.EQUALS,_t.NOT_EQUALS],numeric:[_t.EQUALS,_t.NOT_EQUALS,_t.LESS_THAN,_t.LESS_THAN_OR_EQUAL_TO,_t.GREATER_THAN,_t.GREATER_THAN_OR_EQUAL_TO],date:[_t.DATE_IS,_t.DATE_IS_NOT,_t.DATE_BEFORE,_t.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:1e3,tooltip:1100},this.translationSource=new
ct,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=X({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),Ft=(()=>{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.A
CCEPT="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="dayNamesMin",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})(),hl=(()=>{class
t{constructor(){this.filters={startsWith:(e,n,s)=>{if(null==n||""===n.trim())return!0;if(null==e)return!1;let
r=Z.removeAccents(n.toString()).toLocaleLowerCase(s);return
Z.removeAccents(e.toString()).toLocaleLowerCase(s).slice(0,r.length)===r},contains:(e,n,s)=>{if(null==n||"string"==typeof
n&&""===n.trim())return!0;if(null==e)return!1;let
r=Z.removeAccents(n.toString()).toLocaleLowerCase(s);return-1!==Z.removeAccents(e.toString()).toLocaleLowerCase(s).indexOf(r)},notContains:(e,n,s)=>{if(nul
l==n||"string"==typeof
n&&""===n.trim())return!0;if(null==e)return!1;let
r=Z.removeAccents(n.toString()).toLocaleLowerCase(s);return-1===Z.removeAccents(e.toString()).toLocaleLowerCase(s).indexOf(r)},endsWith:(e,n,s)=>{if(null==n||""===n.trim())return!0;if(null==e)return!1;let
r=Z.removeAccents(n.toString()).toLocaleLowerCase(s),o=Z.removeAccents(e.toString()).toLocaleLowerCase(s);return-1!==o.indexOf(r,o.length-r.length)},equals:(e,n,s)=>null==n||"string"==typeof
n&&""===n.trim()||null!=e&&(e.getTime&&n.getTime?e.getTime()===n.getTime():Z.removeAccents(e.toString()).toLocaleLowerCase(s)==Z.removeAccents(n.toString()).toLocaleLowerCase(s)),notEquals:(e,n,s)=>!(null==n||"string"==typeof
n&&""===n.trim()||null!=e&&(e.getTime&&n.getTime?e.getTime()===n.getTime():Z.removeAccents(e.toString()).toLocaleLowerCase(s)==Z.removeAccents(n.toString()).toLocaleLowerCase(s))),in:(e,n)=>{if(null==n||0===n.length)return!0;for(let
s=0;s<n.length;s++)if(Z.equals(e,n[s]))return!0;return!1},between:(e,
n)=>null==n||null==n[0]||null==n[1]||null!=e&&(e.getTime?n[0].getTime()<=e.getTime()&&e.getTime()<=n[1].getTime():n[0]<=e&&e<=n[1]),lt:(e,n,s)=>null==n||null!=e&&(e.getTime&&n.getTime?e.getTime()<n.getTime():e<n),lte:(e,n,s)=>null==n||null!=e&&(e.getTime&&n.getTime?e.getTime()<=n.getTime():e<=n),gt:(e,n,s)=>null==n||null!=e&&(e.getTime&&n.getTime?e.getTime()>n.getTime():e>n),gte:(e,n,s)=>null==n||null!=e&&(e.getTime&&n.getTime?e.getTime()>=n.getTime():e>=n),is:(e,n,s)=>this.filters.equals(e,n,s),isNot:(e,n,s)=>this.filters.notEquals(e,n,s),before:(e,n,s)=>this.filters.lt(e,n,s),after:(e,n,s)=>this.filters.gt(e,n,s),dateIs:(e,n)=>null==n||null!=e&&e.toDateString()===n.toDateString(),dateIsNot:(e,n)=>null==n||null!=e&&e.toDateString()!==n.toDateString(),dateBefore:(e,n)=>null==n||null!=e&&e.getTime()<n.getTime(),dateAfter:(e,n)=>null==n||null!=e&&e.getTime()>n.getTime()}}filter(e,n,s,r,o){let
u=[];if(e)for(let h of e)for(let b of n){let
y=Z.resolveFieldData(h,b);if(this.filters[r](y,s
,o)){u.push(h);break}}return u}register(e,n){this.filters[e]=n}}return
t.\u0275fac=function(e){return
new(e||t)},t.\u0275prov=X({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),Gi=(()=>{class
t{constructor(){this.messageSource=new ct,this.clearSource=new
ct,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=X({token:t,factory:t.\u0275fac}),t})(),Ks=(()=>{class
t{constructor(){this.clickSource=new
ct,this.clickObservable=this.clickSource.asObservable()}add(e){e&&this.clickSource.next(e)}}return
t.\u0275fac=function(e){return
new(e||t)},t.\u0275prov=X({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),ml=(()=>{class
t{}return t.AND="and",t.OR="or",t})(),Oo=(()=>{class t{}return
t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=z({
type:t,selectors:[["p-header"]],ngContentSelectors:iT,decls:1,vars:0,template:function(e,n){1&e&&(Sn(),St(0))},encapsulation:2}),t})(),fl=(()=>{class
t{}return t.\u0275fac=function(e){return
new(e||t)},t.\u0275cmp=z({type:t,selectors:[["p-footer"]],ngContentSelectors:iT,decls:1,vars:0,template:function(e,n){1&e&&(Sn(),St(0))},encapsulation:2}),t})(),ne=(()=>{class
t{constructor(e){this.template=e}getType(){return this.name}}return
t.\u0275fac=function(e){return
new(e||t)(D(bi))},t.\u0275dir=le({type:t,selectors:[["","pTemplate",""]],inputs:{type:"type",name:["pTemplate","name"]}}),t})(),Nt=(()=>{class
t{}return t.\u0275fac=function(e){return
new(e||t)},t.\u0275mod=he({type:t}),t.\u0275inj=ue({imports:[[Fe]]}),t})();function
jF(t,i){if(1&t&&(l(0,"span",9),g(1),c()),2&t){const
e=d();a(1),T(" ",e.header," ")}}function
$F(t,i){1&t&&Y(0)}function
WF(t,i){1&t&&St(0,1,["*ngIf","hasHeaderFacet"])}function
KF(t,i){1&t&&Y(0)}function
QF(t,i){if(1&t&&(de(0),_(1,KF,1,0,"ng-container",5),pe()),2
&t){const e=d();a(1),p("ngTemplateOutlet",e.contentTemplate)}}const
JF=["*",[["p-header"]]],YF=function(t){return{"p-accordion-tab-active":t}},ZF=function(t,i){return{"p-highlight":t,"p-disabled":i}},sT=function(t){return{transitionParams:t}},XF=function(t){return{value:"visible",params:t}},eN=function(t){return{value:"hidden",params:t}},tN=["*","p-header"],nN=["*"];let
iN=0,Ts=(()=>{class
t{constructor(e,n){this.changeDetector=n,this.cache=!0,this.selectedChange=new
H,this.transitionOptions="400ms cubic-bezier(0.86, 0, 0.07,
1)",this.id="p-accordiontab-"+iN++,this.accordion=e}get selected(){return
this._selected}set
selected(e){this._selected=e,this.loaded||(this._selected&&this.cache&&(this.loaded=!0),this.changeDetector.detectChanges())}ngAfterContentInit(){this.templates.forEach(e=>{switch(e.getType()){case"content":default:this.contentTemplate=e.template;break;case"header":this.headerTemplate=e.template}})}toggle(e){if(this.disabled)return!1;let
n=this.findTabIndex();if(this.se
lected)this.selected=!1,this.accordion.onClose.emit({originalEvent:e,index:n});else{if(!this.accordion.multiple)for(var
s=0;s<this.accordion.tabs.length;s++)this.accordion.tabs[s].selected&&(this.accordion.tabs[s].selected=!1,this.accordion.tabs[s].selectedChange.emit(!1),this.accordion.tabs[s].changeDetector.markForCheck());this.selected=!0,this.loaded=!0,this.accordion.onOpen.emit({originalEvent:e,index:n})}this.selectedChange.emit(this.selected),this.accordion.updateActiveIndex(),this.changeDetector.markForCheck(),e.preventDefault()}findTabIndex(){let
e=-1;for(var
n=0;n<this.accordion.tabs.length;n++)if(this.accordion.tabs[n]==this){e=n;break}return
e}get hasHeaderFacet(){return
this.headerFacet&&this.headerFacet.length>0}onKeydown(e){(32===e.which||13===e.which)&&(this.toggle(e),e.preventDefault())}ngOnDestroy(){this.accordion.tabs.splice(this.findTabIndex(),1)}}return
t.\u0275fac=function(e){return
new(e||t)(D(je(()=>Ss)),D(rt))},t.\u0275cmp=z({type:t,selectors:[["p-accordionTa
b"]],contentQueries:function(e,n,s){if(1&e&&(st(s,Oo,4),st(s,ne,4)),2&e){let
r;V(r=B())&&(n.headerFacet=r),V(r=B())&&(n.templates=r)}},hostAttrs:[1,"p-element"],inputs:{header:"header",disabled:"disabled",cache:"cache",transitionOptions:"transitionOptions",selected:"selected"},outputs:{selectedChange:"selectedChange"},ngContentSelectors:tN,decls:11,vars:28,consts:[[1,"p-accordion-tab",3,"ngClass"],[1,"p-accordion-header",3,"ngClass"],["role","tab",1,"p-accordion-header-link",3,"click","keydown"],[1,"p-accordion-toggle-icon",3,"ngClass"],["class","p-accordion-header-text",4,"ngIf"],[4,"ngTemplateOutlet"],[4,"ngIf"],["role","region",1,"p-toggleable-content"],[1,"p-accordion-content"],[1,"p-accordion-header-text"]],template:function(e,n){1&e&&(Sn(JF),l(0,"div",0)(1,"div",1)(2,"a",2),C("click",function(r){return
n.toggle(r)})("keydown",function(r){return
n.onKeydown(r)}),k(3,"span",3),_(4,jF,2,1,"span",4),_(5,$F,1,0,"ng-container",5),_(6,WF,1,0,"ng-content",6),c()(),l(7,"div",7)(8,"div"
,8),St(9),_(10,QF,2,1,"ng-container",6),c()()()),2&e&&(p("ngClass",U(15,YF,n.selected)),a(1),p("ngClass",Ge(17,ZF,n.selected,n.disabled)),a(1),ie("tabindex",n.disabled?null:0)("id",n.id)("aria-controls",n.id+"-content")("aria-expanded",n.selected),a(1),p("ngClass",n.selected?n.accordion.collapseIcon:n.accordion.expandIcon),a(1),p("ngIf",!n.hasHeaderFacet),a(1),p("ngTemplateOutlet",n.headerTemplate),a(1),p("ngIf",n.hasHeaderFacet),a(1),p("@tabContent",n.selected?U(22,XF,U(20,sT,n.transitionOptions)):U(26,eN,U(24,sT,n.transitionOptions))),ie("id",n.id+"-content")("aria-hidden",!n.selected)("aria-labelledby",n.id),a(3),p("ngIf",n.contentTemplate&&(n.cache?n.loaded:n.selected)))},directives:[Le,Q,Rt],styles:[".p-accordion-header-link{cursor:pointer;display:flex;align-items:center;-webkit-user-select:none;user-select:none;position:relative;text-decoration:none}.p-accordion-header-link:focus{z-index:1}.p-accordion-header-text{line-height:1}\n"],encapsulation:2,data:{animation:[wi("tabCont
ent",[ws("hidden",it({height:"0",overflow:"hidden"})),ws("visible",it({height:"*"})),Lt("visible
<=>
hidden",[it({overflow:"hidden"}),kt("{{transitionParams}}")]),Lt("void
=> *",kt(0))])]},changeDetection:0}),t})(),Ss=(()=>{class
t{constructor(e,n){this.el=e,this.changeDetector=n,this.onClose=new H,this.onOpen=new
H,this.expandIcon="pi pi-fw pi-chevron-right",this.collapseIcon="pi pi-fw
pi-chevron-down",this.activeIndexChange=new
H,this.tabs=[]}ngAfterContentInit(){this.initTabs(),this.tabListSubscription=this.tabList.changes.subscribe(e=>{this.initTabs()})}initTabs(){this.tabs=this.tabList.toArray(),this.updateSelectionState(),this.changeDetector.markForCheck()}getBlockableElement(){return
this.el.nativeElement.children[0]}get activeIndex(){return this._activeIndex}set
activeIndex(e){this._activeIndex=e,this.preventActiveIndexPropagation?this.preventActiveIndexPropagation=!1:this.updateSelectionState()}updateSelectionState(){if(this.tabs&&this.tabs.length&&null!=this._activeIndex)f
or(let e=0;e<this.tabs.length;e++){let
n=this.multiple?this._activeIndex.includes(e):e===this._activeIndex;n!==this.tabs[e].selected&&(this.tabs[e].selected=n,this.tabs[e].selectedChange.emit(n),this.tabs[e].changeDetector.markForCheck())}}updateActiveIndex(){let
e=this.multiple?[]:null;this.tabs.forEach((n,s)=>{if(n.selected){if(!this.multiple)return
void(e=s);e.push(s)}}),this.preventActiveIndexPropagation=!0,this.activeIndexChange.emit(e)}ngOnDestroy(){this.tabListSubscription&&this.tabListSubscription.unsubscribe()}}return
t.\u0275fac=function(e){return
new(e||t)(D(De),D(rt))},t.\u0275cmp=z({type:t,selectors:[["p-accordion"]],contentQueries:function(e,n,s){if(1&e&&st(s,Ts,4),2&e){let
r;V(r=B())&&(n.tabList=r)}},hostAttrs:[1,"p-element"],inputs:{multiple:"multiple",style:"style",styleClass:"styleClass",expandIcon:"expandIcon",collapseIcon:"collapseIcon",activeIndex:"activeIndex"},outputs:{onClose:"onClose",onOpen:"onOpen",activeIndexChange:"activeIndexChange"},ngContentSelectors:
nN,decls:2,vars:4,consts:[["role","tablist",3,"ngClass","ngStyle"]],template:function(e,n){1&e&&(Sn(),l(0,"div",0),St(1),c()),2&e&&(me(n.styleClass),p("ngClass","p-accordion
p-component")("ngStyle",n.style))},directives:[Le,lt],encapsulation:2,changeDetection:0}),t})(),sN=(()=>{class
t{}return t.\u0275fac=function(e){return
new(e||t)},t.\u0275mod=he({type:t}),t.\u0275inj=ue({imports:[[Fe],Nt]}),t})(),R=(()=>{class
t{static addClass(e,n){e.classList?e.classList.add(n):e.className+=" "+n}static
addMultipleClasses(e,n){if(e.classList){let s=n.trim().split(" ");for(let
r=0;r<s.length;r++)e.classList.add(s[r])}else{let s=n.split(" ");for(let
r=0;r<s.length;r++)e.className+=" "+s[r]}}static
removeClass(e,n){e.classList?e.classList.remove(n):e.className=e.className.replace(new
RegExp("(^|\\b)"+n.split("
").join("|")+"(\\b|$)","gi")," ")}static
hasClass(e,n){return e.classList?e.classList.contains(n):new RegExp("(^|
)"+n+"( |$)","gi").test(e.className)}static siblings(e){return
Array.protot
ype.filter.call(e.parentNode.children,function(n){return n!==e})}static find(e,n){return
Array.from(e.querySelectorAll(n))}static findSingle(e,n){return
e?e.querySelector(n):null}static index(e){let n=e.parentNode.childNodes,s=0;for(var
r=0;r<n.length;r++){if(n[r]==e)return s;1==n[r].nodeType&&s++}return-1}static
indexWithinGroup(e,n){let s=e.parentNode?e.parentNode.childNodes:[],r=0;for(var
o=0;o<s.length;o++){if(s[o]==e)return
r;s[o].attributes&&s[o].attributes[n]&&1==s[o].nodeType&&r++}return-1}static
relativePosition(e,n){let
s=e.offsetParent?{width:e.offsetWidth,height:e.offsetHeight}:this.getHiddenElementDimensions(e);const
r=n.offsetHeight,o=n.getBoundingClientRect(),u=this.getViewport();let
h,b;o.top+r+s.height>u.height?(h=-1*s.height,e.style.transformOrigin="bottom",o.top+h<0&&(h=-1*o.top)):(h=r,e.style.transformOrigin="top"),b=s.width>u.width?-1*o.left:o.left+s.width>u.width?-1*(o.left+s.width-u.width):0,e.style.top=h+"px",e.style.left=b+"px"}static
absolutePosition(e,n){l
et
E,L,s=e.offsetParent?{width:e.offsetWidth,height:e.offsetHeight}:this.getHiddenElementDimensions(e),r=s.height,o=s.width,u=n.offsetHeight,h=n.offsetWidth,b=n.getBoundingClientRect(),y=this.getWindowScrollTop(),w=this.getWindowScrollLeft(),M=this.getViewport();b.top+u+r>M.height?(E=b.top+y-r,e.style.transformOrigin="bottom",E<0&&(E=y)):(E=u+b.top+y,e.style.transformOrigin="top"),L=b.left+o>M.width?Math.max(0,b.left+w+h-o):b.left+w,e.style.top=E+"px",e.style.left=L+"px"}static
getParents(e,n=[]){return
null===e.parentNode?n:this.getParents(e.parentNode,n.concat([e.parentNode]))}static
getScrollableParents(e){let n=[];if(e){let s=this.getParents(e);const
r=/(auto|scroll)/,o=u=>{let h=window.getComputedStyle(u,null);return
r.test(h.getPropertyValue("overflow"))||r.test(h.getPropertyValue("overflowX"))||r.test(h.getPropertyValue("overflowY"))};for(let
u of s){let h=1===u.nodeType&&u.dataset.scrollselectors;if(h){let
b=h.split(",");for(let y of b){let
w=this.findSingle(u,y);w&&o(w)&&n.
push(w)}}9!==u.nodeType&&o(u)&&n.push(u)}}return n}static
getHiddenElementOuterHeight(e){e.style.visibility="hidden",e.style.display="block";let
n=e.offsetHeight;return
e.style.display="none",e.style.visibility="visible",n}static
getHiddenElementOuterWidth(e){e.style.visibility="hidden",e.style.display="block";let
n=e.offsetWidth;return
e.style.display="none",e.style.visibility="visible",n}static
getHiddenElementDimensions(e){let n={};return
e.style.visibility="hidden",e.style.display="block",n.width=e.offsetWidth,n.height=e.offsetHeight,e.style.display="none",e.style.visibility="visible",n}static
scrollInView(e,n){let
s=getComputedStyle(e).getPropertyValue("borderTopWidth"),r=s?parseFloat(s):0,o=getComputedStyle(e).getPropertyValue("paddingTop"),u=o?parseFloat(o):0,h=e.getBoundingClientRect(),y=n.getBoundingClientRect().top+document.body.scrollTop-(h.top+document.body.scrollTop)-r-u,w=e.scrollTop,M=e.clientHeight,E=this.getOuterHeight(n);y<0?e.scrollTop=w+y:y+E>M&&(e.scrollTop=w+y-
M+E)}static fadeIn(e,n){e.style.opacity=0;let s=+new
Date,r=0,o=function(){r=+e.style.opacity.replace(",",".")+((new
Date).getTime()-s)/n,e.style.opacity=r,s=+new
Date,+r<1&&(window.requestAnimationFrame&&requestAnimationFrame(o)||setTimeout(o,16))};o()}static
fadeOut(e,n){var s=1,u=50/n;let
h=setInterval(()=>{(s-=u)<=0&&(s=0,clearInterval(h)),e.style.opacity=s},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,n){var
s=Element.prototype;return(s.matches||s.webkitMatchesSelector||s.mozMatchesSelector||s.msMatchesSelector||function(o){return-1!==[].indexOf.call(document.querySelectorAll(o),this)}).call(e,n)}static
getOuterWidth(e,n){let s=e.offsetWidth;if(n){let
r=getComputedStyle(e);s+=parseFloat(r.marginLeft)+parseFloat(r.marginRight)}return
s}static getHorizontalPadding(e){let n
=getComputedStyle(e);return parseFloat(n.paddingLeft)+parseFloat(n.paddingRight)}static
getHorizontalMargin(e){let n=getComputedStyle(e);return
parseFloat(n.marginLeft)+parseFloat(n.marginRight)}static innerWidth(e){let
n=e.offsetWidth,s=getComputedStyle(e);return
n+=parseFloat(s.paddingLeft)+parseFloat(s.paddingRight),n}static width(e){let
n=e.offsetWidth,s=getComputedStyle(e);return
n-=parseFloat(s.paddingLeft)+parseFloat(s.paddingRight),n}static getInnerHeight(e){let
n=e.offsetHeight,s=getComputedStyle(e);return
n+=parseFloat(s.paddingTop)+parseFloat(s.paddingBottom),n}static getOuterHeight(e,n){let
s=e.offsetHeight;if(n){let
r=getComputedStyle(e);s+=parseFloat(r.marginTop)+parseFloat(r.marginBottom)}return
s}static getHeight(e){let n=e.offsetHeight,s=getComputedStyle(e);return
n-=parseFloat(s.paddingTop)+parseFloat(s.paddingBottom)+parseFloat(s.borderTopWidth)+parseFloat(s.borderBottomWidth),n}static
getWidth(e){let n=e.offsetWidth,s=getComputedStyle(e);return n-=parseFloat(s.pa
ddingLeft)+parseFloat(s.paddingRight)+parseFloat(s.borderLeftWidth)+parseFloat(s.borderRightWidth),n}static
getViewport(){let
e=window,n=document,s=n.documentElement,r=n.getElementsByTagName("body")[0];return{width:e.innerWidth||s.clientWidth||r.clientWidth,height:e.innerHeight||s.clientHeight||r.clientHeight}}static
getOffset(e){var
n=e.getBoundingClientRect();return{top:n.top+(window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0),left:n.left+(window.pageXOffset||document.documentElement.scrollLeft||document.body.scrollLeft||0)}}static
replaceElementWith(e,n){let s=e.parentNode;if(!s)throw"Can't replace
element";return s.replaceChild(n,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,n){if(this.isElement(n))n.appendChild(e);else{if(!n.el||!n.el.nativeElement)throw"Cannot
append "+n+" to "+e;n.el.nativeElement.appendChild(e)}}static
removeChild(e,n){if(this.isElement(n))n.removeChild(e);else{if(!n.el||!n.el.nativeElement)throw"Cannot
remove "+e+" from "+n;n.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 n=getComputedStyle(e);return
e.offsetWidth-e.clientWidth-parseFloat(n.borderLeftWidth)-parseFloat(n.borderRightWidth)}{if(null!==this.calculatedScrollbarWidth)return
this.calculatedScrollbarWidth;let
n=document.createElement("div");n.className="p-scrollbar-measure",do
cument.body.appendChild(n);let s=n.offsetWidth-n.clientWidth;return
document.body.removeChild(n),this.calculatedScrollbarWidth=s,s}}static
calculateScrollbarHeight(){if(null!==this.calculatedScrollbarHeight)return
this.calculatedScrollbarHeight;let
e=document.createElement("div");e.className="p-scrollbar-measure",document.body.appendChild(e);let
n=e.offsetHeight-e.clientHeight;return
document.body.removeChild(e),this.calculatedScrollbarWidth=n,n}static
invokeElementMethod(e,n,s){e[n].apply(e,s)}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(),n=/(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:n[1]||"",version:n[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
n=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)'),s=[];for(let
r of
n)"none"!=getComputedStyle(r).display&&"hidden"!=getComputedStyle(r).visibility&&s.push(r);return
s}static generateZIndex(){return this.zindex=this.zindex||999,++this.zindex}}return
t.zindex=1e3,t.calculatedScrollbarWidth=null,t.calculatedScrollbarHeight=null,t})();class
Qs{constructor(i,e=(()=>{})){this.element=i,this.listener=e}bindScrollListener(){this.scrollableParents=R.getScrollableParents(this.element);for(let
i=0;i<this.scrollableParents.length;i++)this.scrollableParents[i].addEventListener("scroll",this.listener)}unbindScrollL
istener(){if(this.scrollableParents)for(let
i=0;i<this.scrollableParents.length;i++)this.scrollableParents[i].removeEventListener("scroll",this.listener)}destroy(){this.unbindScrollListener(),this.element=null,this.listener=null,this.scrollableParents=null}}let
bt=(()=>{class
t{constructor(e,n,s){this.el=e,this.zone=n,this.config=s}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
n=this.getInk();if(!n||"none"===getComputedStyle(n,null).display)return;if(R.removeClass(n,"p-ink-active"),!R.getHeight(n)&&!R.getWidth(n)){let
u=Math.max(R.getOuterWidth(this.el.nativeElement),R.getOuterHeight(this.el.nativeElement));n.style.height=u+"px",n.style.width=u+"px"}let
s=R.getOffset(this.el.nativeElement),r=e.pageX-s.left+document.body.scrollTop-R.getWidth(n)/2,o=e.pageY-s.top+document.body.scrollLeft-R
.getHeight(n)/2;n.style.top=o+"px",n.style.left=r+"px",R.addClass(n,"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&&R.removeClass(e,"p-ink-active")}onAnimationEnd(e){R.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),R.removeElement(e))}ngOnDestroy(){this.config&&this.config.ripple&&this.remove()}}return
t.\u0275fac=function(e){return
new(e||t)(D(De),D(nt),D(zn,8))},t.\u0275dir=le({type:t,selectors:[["","pRipple",""]],host
Attrs:[1,"p-ripple","p-element"]}),t})(),pn=(()=>{class t{}return
t.\u0275fac=function(e){return
new(e||t)},t.\u0275mod=he({type:t}),t.\u0275inj=ue({imports:[[Fe]]}),t})();function
rN(t,i){1&t&&Y(0)}const
oN=function(t,i,e,n){return{"p-button-icon":!0,"p-button-icon-left":t,"p-button-icon-right":i,"p-button-icon-top":e,"p-button-icon-bottom":n}};function
aN(t,i){if(1&t&&k(0,"span",4),2&t){const
e=d();me(e.loading?"p-button-loading-icon
"+e.loadingIcon:e.icon),p("ngClass",qn(4,oN,"left"===e.iconPos&&e.label,"right"===e.iconPos&&e.label,"top"===e.iconPos&&e.label,"bottom"===e.iconPos&&e.label)),ie("aria-hidden",!0)}}function
lN(t,i){if(1&t&&(l(0,"span",5),g(1),c()),2&t){const
e=d();ie("aria-hidden",e.icon&&!e.label),a(1),S(e.label||"\xa0")}}function
cN(t,i){if(1&t&&(l(0,"span",4),g(1),c()),2&t){const
e=d();me(e.badgeClass),p("ngClass",e.badgeStyleClass()),a(1),S(e.badge)}}const
uN=function(t,i,e,n,s){return{"p-button
p-component":!0,"p-button-icon-only":t,"p-button-vertical":i,"p-disa
bled":e,"p-button-loading":n,"p-button-loading-label-only":s}},dN=["*"];let
On=(()=>{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,R.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(){let
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=documen
t.createElement("span");e.className="p-button-icon",e.setAttribute("aria-hidden","true");let
n=this.label?"p-button-icon-"+this.iconPos:null;n&&R.addClass(e,n);let
s=this.getIconClass();s&&R.addMultipleClasses(e,s);let
r=R.findSingle(this.el.nativeElement,".p-button-label");r?this.el.nativeElement.insertBefore(e,r):this.el.nativeElement.appendChild(e)}getIconClass(){return
this.loading?"p-button-loading-icon
"+this.loadingIcon:this._icon}setIconClass(){let
e=R.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=R.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&&(R.findSingle(this.el.nativeElement,".p-button-label").textContent=this._label||" ",(this.loading||this.icon)&&this.setIconClass(),t
his.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)(D(De))},t.\u0275dir=le({type:t,selectors:[["","pButton",""]],hostAttrs:[1,"p-element"],inputs:{iconPos:"iconPos",loadingIcon:"loadingIcon",label:"label",icon:"icon",loading:"loading"}}),t})(),ve=(()=>{class
t{constructor(){this.type="button",this.iconPos="left",this.loading=!1,this.loadingIcon="pi
pi-spinner pi-spin",this.onClick=new H,this.onFocus=new H,this.onBlur=new
H}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=z({type:t,selectors:[["p-button"]],contentQueries:function(e,n,s){if(1&e&&st(s,ne,4),2&e){let
r;V(r=B())&&(n.templates=r)}},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",ariaLabel:"ariaLabel"},outputs:{onClick:"onClick",onFocus:"onFocus",onBlur:"onBlur"},ngContentSelectors:dN,decls:6,vars:17,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,n){1&e&&(Sn(),l(0,"button",0),C("click",function(r){return
n.onClick.emit(r)})("focus",function(r){return
n.onFocus.emit(r)})("blur",function(r){return
n.onBlur.emit(r)}),St(1),_(2,rN,1,0,"ng-container",1),_(3,aN,1,9,"span",2),_(4,lN,2,2,"span",3),_(5,c
N,2,4,"span",2),c()),2&e&&(me(n.styleClass),p("ngStyle",n.style)("disabled",n.disabled||n.loading)("ngClass",pr(11,uN,n.icon&&!n.label,("top"===n.iconPos||"bottom"===n.iconPos)&&n.label,n.disabled||n.loading,n.loading,n.loading&&!n.icon&&n.label)),ie("type",n.type)("aria-label",n.ariaLabel),a(2),p("ngTemplateOutlet",n.contentTemplate),a(1),p("ngIf",!n.contentTemplate&&(n.icon||n.loading)),a(1),p("ngIf",!n.contentTemplate),a(1),p("ngIf",!n.contentTemplate&&n.badge))},directives:[bt,lt,Le,Rt,Q],encapsulation:2,changeDetection:0}),t})(),gl=(()=>{class
t{}return t.\u0275fac=function(e){return
new(e||t)},t.\u0275mod=he({type:t}),t.\u0275inj=ue({imports:[[Fe,pn]]}),t})();const
pN=["container"],hN=["inputfield"],mN=["contentWrapper"];function
fN(t,i){if(1&t){const e=I();l(0,"i",8),C("click",function(){return
v(e),d(2).clear()}),c()}}function gN(t,i){if(1&t){const
e=I();l(0,"button",9),C("click",function(s){v(e),d();const
r=F(1);return d().onButtonClick(s,r)}),c()}if(2&t){const e=d(2);p("ic
on",e.icon)("disabled",e.disabled),ie("aria-label",e.iconAriaLabel)}}function
_N(t,i){if(1&t){const
e=I();l(0,"input",4,5),C("focus",function(s){return
v(e),d().onInputFocus(s)})("keydown",function(s){return
v(e),d().onInputKeydown(s)})("click",function(){return
v(e),d().onInputClick()})("blur",function(s){return
v(e),d().onInputBlur(s)})("input",function(s){return
v(e),d().onUserInput(s)}),c(),_(2,fN,1,0,"i",6),_(3,gN,1,3,"button",7)}if(2&t){const
e=d();me(e.inputStyleClass),p("value",e.inputFieldValue)("readonly",e.readonlyInput)("ngStyle",e.inputStyle)("placeholder",e.placeholder||"")("disabled",e.disabled)("ngClass","p-inputtext
p-component"),ie("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),a(2),p("ngIf",e.showClear&&!e.disabled&&null!=e.value),a(1),p("ngIf",e.showIcon)}}function
bN(t,i){1&t&&Y(0)}function vN(t,i){if(1&t){const
e=I();l(0,"button",30),C
("keydown",function(s){return
v(e),d(4).onContainerButtonKeydown(s)})("click",function(s){return
v(e),d(4).onPrevButtonClick(s)}),k(1,"span",31),c()}}function
CN(t,i){if(1&t){const
e=I();l(0,"button",32),C("click",function(s){return
v(e),d(4).switchToMonthView(s)})("keydown",function(s){return
v(e),d(4).onContainerButtonKeydown(s)}),g(1),c()}if(2&t){const
e=d().$implicit,n=d(3);p("disabled",n.switchViewButtonDisabled()),a(1),T("
",n.getMonthName(e.month)," ")}}function yN(t,i){if(1&t){const
e=I();l(0,"button",33),C("click",function(s){return
v(e),d(4).switchToYearView(s)})("keydown",function(s){return
v(e),d(4).onContainerButtonKeydown(s)}),g(1),c()}if(2&t){const
e=d().$implicit,n=d(3);p("disabled",n.switchViewButtonDisabled()),a(1),T("
",n.getYear(e)," ")}}function
wN(t,i){if(1&t&&(de(0),g(1),pe()),2&t){const
e=d(5);a(1),We("",e.yearPickerValues()[0]," -
",e.yearPickerValues()[e.yearPickerValues().length-1],"")}}function
TN(t,i){1&t&&Y(0)}const rT=function(t){return{$implicit:t}};f
unction
SN(t,i){if(1&t&&(l(0,"span",34),_(1,wN,2,2,"ng-container",13),_(2,TN,1,0,"ng-container",35),c()),2&t){const
e=d(4);a(1),p("ngIf",!e.decadeTemplate),a(1),p("ngTemplateOutlet",e.decadeTemplate)("ngTemplateOutletContext",U(3,rT,e.yearPickerValues))}}function
xN(t,i){if(1&t&&(l(0,"th",41)(1,"span"),g(2),c()()),2&t){const
e=d(5);a(2),S(e.getTranslation("weekHeader"))}}function
DN(t,i){if(1&t&&(l(0,"th",42)(1,"span"),g(2),c()()),2&t){const
e=i.$implicit;a(2),S(e)}}function
MN(t,i){if(1&t&&(l(0,"td",45)(1,"span",46),g(2),c()()),2&t){const
e=d().index,n=d(2).$implicit;a(2),T(" ",n.weekNumbers[e],"
")}}function kN(t,i){if(1&t&&(de(0),g(1),pe()),2&t){const
e=d(2).$implicit;a(1),S(e.day)}}function IN(t,i){1&t&&Y(0)}const
EN=function(t,i){return{"p-highlight":t,"p-disabled":i}};function
RN(t,i){if(1&t){const
e=I();de(0),l(1,"span",48),C("click",function(s){v(e);const
r=d().$implicit;return d(6).onDateSelect(s,r)})("keydown",function(s){v(e);const
r=d().$implicit,o=d(3).index;return d(3)
.onDateCellKeydown(s,r,o)}),_(2,kN,2,1,"ng-container",13),_(3,IN,1,0,"ng-container",35),c(),pe()}if(2&t){const
e=d().$implicit,n=d(6);a(1),p("ngClass",Ge(4,EN,n.isSelected(e),!e.selectable)),a(1),p("ngIf",!n.dateTemplate),a(1),p("ngTemplateOutlet",n.dateTemplate)("ngTemplateOutletContext",U(7,rT,e))}}const
LN=function(t,i){return{"p-datepicker-other-month":t,"p-datepicker-today":i}};function
ON(t,i){if(1&t&&(l(0,"td",47),_(1,RN,4,9,"ng-container",13),c()),2&t){const
e=i.$implicit,n=d(6);p("ngClass",Ge(2,LN,e.otherMonth,e.today)),a(1),p("ngIf",!e.otherMonth||n.showOtherMonths)}}function
AN(t,i){if(1&t&&(l(0,"tr"),_(1,MN,3,1,"td",43),_(2,ON,2,5,"td",44),c()),2&t){const
e=i.$implicit,n=d(5);a(1),p("ngIf",n.showWeek),a(1),p("ngForOf",e)}}function
PN(t,i){if(1&t&&(l(0,"div",36)(1,"table",37)(2,"thead")(3,"tr"),_(4,xN,3,1,"th",38),_(5,DN,3,1,"th",39),c()(),l(6,"tbody"),_(7,AN,3,2,"tr",40),c()()()),2&t){const
e=d().$implicit,n=d(3);a(4),p("ngIf",n.showWeek),a(1),p("ngForOf",n.weekDays),a(2
),p("ngForOf",e.dates)}}function FN(t,i){if(1&t){const
e=I();l(0,"div",20)(1,"div",21),_(2,vN,2,0,"button",22),l(3,"div",23),_(4,CN,2,2,"button",24),_(5,yN,2,2,"button",25),_(6,SN,3,5,"span",26),c(),l(7,"button",27),C("keydown",function(s){return
v(e),d(3).onContainerButtonKeydown(s)})("click",function(s){return
v(e),d(3).onNextButtonClick(s)}),k(8,"span",28),c()(),_(9,PN,8,3,"div",29),c()}if(2&t){const
e=i.index,n=d(3);a(2),p("ngIf",0===e),a(2),p("ngIf","date"===n.currentView),a(1),p("ngIf","year"!==n.currentView),a(1),p("ngIf","year"===n.currentView),a(1),_i("display",1===n.numberOfMonths||e===n.numberOfMonths-1?"inline-flex":"none"),a(2),p("ngIf","date"===n.currentView)}}const
oT=function(t){return{"p-highlight":t}};function NN(t,i){if(1&t){const
e=I();l(0,"span",51),C("click",function(s){const o=v(e).index;return
d(4).onMonthSelect(s,o)})("keydown",function(s){const o=v(e).index;return
d(4).onMonthCellKeydown(s,o)}),g(1),c()}if(2&t){const
e=i.$implicit,n=i.index,s=d(4);p("ngClas
s",U(2,oT,s.isMonthSelected(n))),a(1),T(" ",e," ")}}function
VN(t,i){if(1&t&&(l(0,"div",49),_(1,NN,2,4,"span",50),c()),2&t){const
e=d(3);a(1),p("ngForOf",e.monthPickerValues())}}function
BN(t,i){if(1&t){const
e=I();l(0,"span",54),C("click",function(s){const
o=v(e).$implicit;return d(4).onYearSelect(s,o)})("keydown",function(s){const
o=v(e).$implicit;return d(4).onYearCellKeydown(s,o)}),g(1),c()}if(2&t){const
e=i.$implicit,n=d(4);p("ngClass",U(2,oT,n.isYearSelected(e))),a(1),T("
",e," ")}}function
HN(t,i){if(1&t&&(l(0,"div",52),_(1,BN,2,4,"span",53),c()),2&t){const
e=d(3);a(1),p("ngForOf",e.yearPickerValues())}}function
qN(t,i){if(1&t&&(de(0),l(1,"div",16),_(2,FN,10,7,"div",17),c(),_(3,VN,2,1,"div",18),_(4,HN,2,1,"div",19),pe()),2&t){const
e=d(2);a(2),p("ngForOf",e.months),a(1),p("ngIf","month"===e.currentView),a(1),p("ngIf","year"===e.currentView)}}function
GN(t,i){1&t&&(de(0),g(1,"0"),pe())}function
UN(t,i){1&t&&(de(0),g(1,"0"),pe())}function
zN(t,i){if(1&t&&(l(0,"div",60)(1,"span"
),g(2),c()()),2&t){const e=d(3);a(2),S(e.timeSeparator)}}function
jN(t,i){1&t&&(de(0),g(1,"0"),pe())}function
$N(t,i){if(1&t){const
e=I();l(0,"div",65)(1,"button",57),C("keydown",function(s){return
v(e),d(3).onContainerButtonKeydown(s)})("keydown.enter",function(s){return
v(e),d(3).incrementSecond(s)})("keydown.space",function(s){return
v(e),d(3).incrementSecond(s)})("mousedown",function(s){return
v(e),d(3).onTimePickerElementMouseDown(s,2,1)})("mouseup",function(s){return
v(e),d(3).onTimePickerElementMouseUp(s)})("keyup.enter",function(s){return
v(e),d(3).onTimePickerElementMouseUp(s)})("keyup.space",function(s){return
v(e),d(3).onTimePickerElementMouseUp(s)})("mouseleave",function(){return
v(e),d(3).onTimePickerElementMouseLeave()}),k(2,"span",58),c(),l(3,"span"),_(4,jN,2,0,"ng-container",13),g(5),c(),l(6,"button",57),C("keydown",function(s){return
v(e),d(3).onContainerButtonKeydown(s)})("keydown.enter",function(s){return
v(e),d(3).decrementSecond(s)})("keydown.space",function(s){
return v(e),d(3).decrementSecond(s)})("mousedown",function(s){return
v(e),d(3).onTimePickerElementMouseDown(s,2,-1)})("mouseup",function(s){return
v(e),d(3).onTimePickerElementMouseUp(s)})("keyup.enter",function(s){return
v(e),d(3).onTimePickerElementMouseUp(s)})("keyup.space",function(s){return
v(e),d(3).onTimePickerElementMouseUp(s)})("mouseleave",function(){return
v(e),d(3).onTimePickerElementMouseLeave()}),k(7,"span",59),c()()}if(2&t){const
e=d(3);a(4),p("ngIf",e.currentSecond<10),a(1),S(e.currentSecond)}}function
WN(t,i){if(1&t){const
e=I();l(0,"div",66)(1,"button",67),C("keydown",function(s){return
v(e),d(3).onContainerButtonKeydown(s)})("click",function(s){return
v(e),d(3).toggleAMPM(s)})("keydown.enter",function(s){return
v(e),d(3).toggleAMPM(s)}),k(2,"span",58),c(),l(3,"span"),g(4),c(),l(5,"button",67),C("keydown",function(s){return
v(e),d(3).onContainerButtonKeydown(s)})("click",function(s){return
v(e),d(3).toggleAMPM(s)})("keydown.enter",function(s){return v(e),d(3).toggl
eAMPM(s)}),k(6,"span",59),c()()}if(2&t){const
e=d(3);a(4),S(e.pm?"PM":"AM")}}function KN(t,i){if(1&t){const
e=I();l(0,"div",55)(1,"div",56)(2,"button",57),C("keydown",function(s){return
v(e),d(2).onContainerButtonKeydown(s)})("keydown.enter",function(s){return
v(e),d(2).incrementHour(s)})("keydown.space",function(s){return
v(e),d(2).incrementHour(s)})("mousedown",function(s){return
v(e),d(2).onTimePickerElementMouseDown(s,0,1)})("mouseup",function(s){return
v(e),d(2).onTimePickerElementMouseUp(s)})("keyup.enter",function(s){return
v(e),d(2).onTimePickerElementMouseUp(s)})("keyup.space",function(s){return
v(e),d(2).onTimePickerElementMouseUp(s)})("mouseleave",function(){return
v(e),d(2).onTimePickerElementMouseLeave()}),k(3,"span",58),c(),l(4,"span"),_(5,GN,2,0,"ng-container",13),g(6),c(),l(7,"button",57),C("keydown",function(s){return
v(e),d(2).onContainerButtonKeydown(s)})("keydown.enter",function(s){return
v(e),d(2).decrementHour(s)})("keydown.space",function(s){return v(e),d(2).d
ecrementHour(s)})("mousedown",function(s){return
v(e),d(2).onTimePickerElementMouseDown(s,0,-1)})("mouseup",function(s){return
v(e),d(2).onTimePickerElementMouseUp(s)})("keyup.enter",function(s){return
v(e),d(2).onTimePickerElementMouseUp(s)})("keyup.space",function(s){return
v(e),d(2).onTimePickerElementMouseUp(s)})("mouseleave",function(){return
v(e),d(2).onTimePickerElementMouseLeave()}),k(8,"span",59),c()(),l(9,"div",60)(10,"span"),g(11),c()(),l(12,"div",61)(13,"button",57),C("keydown",function(s){return
v(e),d(2).onContainerButtonKeydown(s)})("keydown.enter",function(s){return
v(e),d(2).incrementMinute(s)})("keydown.space",function(s){return
v(e),d(2).incrementMinute(s)})("mousedown",function(s){return
v(e),d(2).onTimePickerElementMouseDown(s,1,1)})("mouseup",function(s){return
v(e),d(2).onTimePickerElementMouseUp(s)})("keyup.enter",function(s){return
v(e),d(2).onTimePickerElementMouseUp(s)})("keyup.space",function(s){return
v(e),d(2).onTimePickerElementMouseUp(s)})("mouseleave
",function(){return
v(e),d(2).onTimePickerElementMouseLeave()}),k(14,"span",58),c(),l(15,"span"),_(16,UN,2,0,"ng-container",13),g(17),c(),l(18,"button",57),C("keydown",function(s){return
v(e),d(2).onContainerButtonKeydown(s)})("keydown.enter",function(s){return
v(e),d(2).decrementMinute(s)})("keydown.space",function(s){return
v(e),d(2).decrementMinute(s)})("mousedown",function(s){return
v(e),d(2).onTimePickerElementMouseDown(s,1,-1)})("mouseup",function(s){return
v(e),d(2).onTimePickerElementMouseUp(s)})("keyup.enter",function(s){return
v(e),d(2).onTimePickerElementMouseUp(s)})("keyup.space",function(s){return
v(e),d(2).onTimePickerElementMouseUp(s)})("mouseleave",function(){return
v(e),d(2).onTimePickerElementMouseLeave()}),k(19,"span",59),c()(),_(20,zN,3,1,"div",62),_(21,$N,8,2,"div",63),_(22,WN,7,1,"div",64),c()}if(2&t){const
e=d(2);a(5),p("ngIf",e.currentHour<10),a(1),S(e.currentHour),a(5),S(e.timeSeparator),a(5),p("ngIf",e.currentMinute<10),a(1),S(e.currentMinute),a(3),p("ngIf"
,e.showSeconds),a(1),p("ngIf",e.showSeconds),a(1),p("ngIf","12"==e.hourFormat)}}const
aT=function(t){return[t]};function QN(t,i){if(1&t){const
e=I();l(0,"div",68)(1,"button",69),C("keydown",function(s){return
v(e),d(2).onContainerButtonKeydown(s)})("click",function(s){return
v(e),d(2).onTodayButtonClick(s)}),c(),l(2,"button",69),C("keydown",function(s){return
v(e),d(2).onContainerButtonKeydown(s)})("click",function(s){return
v(e),d(2).onClearButtonClick(s)}),c()()}if(2&t){const
e=d(2);a(1),p("label",e.getTranslation("today"))("ngClass",U(4,aT,e.todayButtonStyleClass)),a(1),p("label",e.getTranslation("clear"))("ngClass",U(6,aT,e.clearButtonStyleClass))}}function
JN(t,i){1&t&&Y(0)}const YN=function(t,i,e,n,s,r){return{"p-datepicker
p-component":!0,"p-datepicker-inline":t,"p-disabled":i,"p-datepicker-timeonly":e,"p-datepicker-multiple-month":n,"p-datepicker-monthpicker":s,"p-datepicker-touch-ui":r}},lT=function(t,i){return{showTransitionParams:t,hideTransitionParams:i}},ZN=function(t){
return{value:"visibleTouchUI",params:t}},XN=function(t){return{value:"visible",params:t}};function
e5(t,i){if(1&t){const
e=I();l(0,"div",10,11),C("(a)overlayAnimation.start",function(s){return
v(e),d().onOverlayAnimationStart(s)})("(a)overlayAnimation.done",function(s){return
v(e),d().onOverlayAnimationDone(s)})("click",function(s){return
v(e),d().onOverlayClick(s)}),St(2),_(3,bN,1,0,"ng-container",12),_(4,qN,5,3,"ng-container",13),_(5,KN,23,8,"div",14),_(6,QN,3,8,"div",15),St(7,1),_(8,JN,1,0,"ng-container",12),c()}if(2&t){const
e=d();me(e.panelStyleClass),p("ngStyle",e.panelStyle)("ngClass",Do(11,YN,e.inline,e.disabled,e.timeOnly,e.numberOfMonths>1,"month"===e.view,e.touchUI))("@overlayAnimation",e.touchUI?U(21,ZN,Ge(18,lT,e.showTransitionOptions,e.hideTransitionOptions)):U(26,XN,Ge(23,lT,e.showTransitionOptions,e.hideTransitionOptions)))("@.disabled",!0===e.inline),a(3),p("ngTemplateOutlet",e.headerTemplate),a(1),p("ngIf",!e.timeOnly),a(1),p("ngIf",(e.showTime||e.timeOnly)&&"date"===e
.currentView),a(1),p("ngIf",e.showButtonBar),a(2),p("ngTemplateOutlet",e.footerTemplate)}}const
t5=[[["p-header"]],[["p-footer"]]],n5=function(t,i,e,n){return{"p-calendar":!0,"p-calendar-w-btn":t,"p-calendar-timeonly":i,"p-calendar-disabled":e,"p-focus":n}},s5=["p-header","p-footer"],r5={provide:dn,useExisting:je(()=>xr),multi:!0};let
xr=(()=>{class
t{constructor(e,n,s,r,o,u){this.el=e,this.renderer=n,this.cd=s,this.zone=r,this.config=o,this.overlayService=u,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.showClear=!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
H,this.onBlur=new H,this.onClose=new H,this.onSelect=new H,this.onClear=new
H,this.onInput=new H,this.onTodayClick=new H,this.onClearClick=new
H,this.onMonthChange=new H,this.onYearChange=new H,this.onClickOutside=new
H,this.onShow=new
H,this.onModelChange=()=>{},this.onModelTouched=()=>{},this.inputFieldValue=null,this.navigationState=null,this._numberOfMonths=1,this._view="date",this.convertTo24Hour=function(h,b){return"12"==this.hourFormat?12===h?b?12:0:b?h+12:h:h}}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){co
nst n=e||new
Date;this.currentMonth=n.getMonth(),this.currentYear=n.getFullYear(),this.initTime(n),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 year
Range(e){if(this._yearRange=e,e){const
n=e.split(":"),s=parseInt(n[0]),r=parseInt(n[1]);this.populateYearOptions(s,r)}}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._firstDayOfWeek}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=pl();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.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=R.getOuterWidth(this.containerViewChild.nativeElemen
t)+"px")))}getTranslation(e){return
this.config.getTranslation(e)}populateYearOptions(e,n){this.yearOptions=[];for(let
s=e;s<=n;s++)this.yearOptions.push(s)}createWeekDays(){this.weekDays=[];let
e=this.getFirstDateOfWeek(),n=this.getTranslation(Ft.DAY_NAMES_MIN);for(let
s=0;s<7;s++)this.weekDays.push(n[e]),e=6==e?0:++e}monthPickerValues(){let e=[];for(let
n=0;n<=11;n++)e.push(this.config.getTranslation("monthNamesShort")[n]);return
e}yearPickerValues(){let e=[],n=this.currentYear-this.currentYear%10;for(let
s=0;s<10;s++)e.push(n+s);return e}createMonths(e,n){this.months=this.months=[];for(let
s=0;s<this.numberOfMonths;s++){let
r=e+s,o=n;r>11&&(r=r%11-1,o=n+1),this.months.push(this.createMonth(r,o))}}getWeekNumber(e){let
n=new Date(e.getTime());n.setDate(n.getDate()+4-(n.getDay()||7));let s=n.getTime();return
n.setMonth(0),n.setDate(1),Math.floor(Math.round((s-n.getTime())/864e5)/7)+1}createMonth(e,n){let
s=[],r=this.getFirstDayOfMonthIndex(e,n),o=this.getDaysCountInMonth(e,n),u=this
.getDaysCountInPrevMonth(e,n),h=1,b=new Date,y=[],w=Math.ceil((o+r)/7);for(let
M=0;M<w;M++){let E=[];if(0==M){for(let O=u-r+1;O<=u;O++){let
N=this.getPreviousMonthAndYear(e,n);E.push({day:O,month:N.month,year:N.year,otherMonth:!0,today:this.isToday(b,O,N.month,N.year),selectable:this.isSelectable(O,N.month,N.year,!0)})}let
L=7-E.length;for(let
O=0;O<L;O++)E.push({day:h,month:e,year:n,today:this.isToday(b,h,e,n),selectable:this.isSelectable(h,e,n,!1)}),h++}else
for(let L=0;L<7;L++){if(h>o){let
O=this.getNextMonthAndYear(e,n);E.push({day:h-o,month:O.month,year:O.year,otherMonth:!0,today:this.isToday(b,h-o,O.month,O.year),selectable:this.isSelectable(h-o,O.month,O.year,!0)})}else
E.push({day:h,month:e,year:n,today:this.isToday(b,h,e,n),selectable:this.isSelectable(h,e,n,!1)});h++}this.showWeek&&y.push(this.getWeekNumber(new
Date(E[0].year,E[0].month,E[0].day))),s.push(E)}return{month:e,year:n,dates:s,weekNumbers:y}}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"===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({m
onth: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[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.setCurrentView("month"),e.preventDefault()}switchToYearView(e){this.setCurrentView("year"),e.preventDefault()}onDateSelect(e,n){!this.disabled&&n.selectable?(this.isMultipleSelection()&&this.isSelected(n)?(this
.value=this.value.filter((s,r)=>!this.isDateEquals(s,n)),0===this.value.length&&(this.value=null),this.updateModel(this.value)):this.shouldSelectDate(n)&&this.selectDate(n),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,n){"month"===this.view?this.onDateSelect(e,{year:this.currentYear,month:n,day:1,selectable:!0}):(this.currentMonth=n,this.createMonths(this.currentMonth,this.currentYear),this.setCurrentView("date"),this.onMonthChange.emit({month:this.currentMonth+1,year:this.currentYear}))}onYearSelect(e,n){"year"===this.view?this.onDateSelect(e,{year:n,month:0,day:1,selectable:!0}):(this.currentYear=n,this.setCurrentView("month"),this.onYearChange.emit({m
onth: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
n=0;n<this.value.length;n++)e+=this.formatDateTime(this.value[n]),n!==this.value.length-1&&(e+=this.multipleSeparator+"
");else
if(this.isRangeSelection()&&this.value&&this.value.length){let
s=this.value[1];e=this.formatDateTime(this.value[0]),s&&(e+="
"+this.rangeSeparator+"
"+this.formatDateTime(s))}this.inputFieldValue=e,this.updateFilledState(),this.inputfieldViewChild&&this.inputfieldViewChild.nativeElement&&(this.inputfieldViewChild.nativeElement.value=this.inputFieldValue)}formatDateTime(e){let
n=this.keepInvalid?e:null;return
this.isValidDate(e)&&(this.timeOnly?n=this.formatTime(e):(n=this.formatDate(e,this.getDateFormat()),this.showTime&&(n+="
"+this.formatTime(e)))),n}setCurrentHourPM(e){"12"==this.hourFormat?(this.pm=e>11,this.currentHour=e>=12?12==e?12:e-12:0==e?12:e):this.curr
entHour=e}setCurrentView(e){this.currentView=e,this.cd.detectChanges(),this.alignOverlay()}selectDate(e){let
n=new
Date(e.year,e.month,e.day);if(this.showTime&&(n.setHours("12"==this.hourFormat?12===this.currentHour?this.pm?12:0:this.pm?this.currentHour+12:this.currentHour:this.currentHour),n.setMinutes(this.currentMinute),n.setSeconds(this.currentSecond)),this.minDate&&this.minDate>n&&(n=this.minDate,this.setCurrentHourPM(n.getHours()),this.currentMinute=n.getMinutes(),this.currentSecond=n.getSeconds()),this.maxDate&&this.maxDate<n&&(n=this.maxDate,this.setCurrentHourPM(n.getHours()),this.currentMinute=n.getMinutes(),this.currentSecond=n.getSeconds()),this.isSingleSelection())this.updateModel(n);else
if(this.isMultipleSelection())this.updateModel(this.value?[...this.value,n]:[n]);else
if(this.isRangeSelection())if(this.value&&this.value.length){let
s=this.value[0],r=this.value[1];!r&&n.getTime()>=s.getTime()?r=n:(s=n,r=null),this.updateModel([s,r])}else
this.updateModel([n,null]);t
his.onSelect.emit(n)}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
n=null;this.value&&(n=this.value.map(s=>this.formatDateTime(s))),this.onModelChange(n)}}getFirstDayOfMonthIndex(e,n){let
s=new Date;s.setDate(1),s.setMonth(e),s.setFullYear(n);let
r=s.getDay()+this.getSundayIndex();return r>=7?r-7:r}getDaysCountInMonth(e,n){return
32-this.daylightSavingAdjust(new Date(n,e,32)).getDate()}getDaysCountInPrevMonth(e,n){let
s=this.getPreviousMonthAndYear(e,n);return
this.getDaysCountInMonth(s.month,s.year)}getPreviousMonthAndYear(e,n){let s,r;return
0===e?(s=11,r=n-1):(s=e-1,r=n),{month:s,year:r}}getNextMonthAndYear(e,n){let s,r;return
11===e?(s=0,r=n+1):(s=e+1,r=n),{month:s,year:r}}getSundayIndex(){let
e=this.getFirstDateOfWeek();return
e>0?7-e:0}isSelected(e){if(!this.value)return!1;if(this.isSingleSelection())return
this.isDateEq
uals(this.value,e);if(this.isMultipleSelection()){let n=!1;for(let s of
this.value)if(n=this.isDateEquals(s,e),n)break;return n}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
n=this.isRangeSelection()?this.value[0]:this.value;return!this.isMultipleSelection()&&n.getMonth()===e&&n.getFullYear()===this.currentYear}return!1}isYearSelected(e){if(this.isComparable()){let
n=this.isRangeSelection()?this.value[0]:this.value;return!this.isMultipleSelection()&&n.getFullYear()===e}return!1}isDateEquals(e,n){return!!(e&&e
instanceof
Date)&&e.getDate()===n.day&&e.getMonth()===n.month&&e.getFullYear()===n.year}isDateBetween(e,n,s){if(e&&n){let
o=new Date(s.year,s.month,s.day);return
e.getTime()<=o.getTime()&&n.getTime()>=o.g
etTime()}return!1}isSingleSelection(){return"single"===this.selectionMode}isRangeSelection(){return"range"===this.selectionMode}isMultipleSelection(){return"multiple"===this.selectionMode}isToday(e,n,s,r){return
e.getDate()===n&&e.getMonth()===s&&e.getFullYear()===r}isSelectable(e,n,s,r){let
o=!0,u=!0,h=!0,b=!0;return!(r&&!this.selectOtherMonths)&&(this.minDate&&(this.minDate.getFullYear()>s||this.minDate.getFullYear()===s&&(this.minDate.getMonth()>n||this.minDate.getMonth()===n&&this.minDate.getDate()>e))&&(o=!1),this.maxDate&&(this.maxDate.getFullYear()<s||this.maxDate.getFullYear()===s&&(this.maxDate.getMonth()<n||this.maxDate.getMonth()===n&&this.maxDate.getDate()<e))&&(u=!1),this.disabledDates&&(h=!this.isDateDisabled(e,n,s)),this.disabledDays&&(b=!this.isDayDisabled(e,n,s)),o&&u&&h&&b)}isDateDisabled(e,n,s){if(this.disabledDates)for(let
r of
this.disabledDates)if(r.getFullYear()===s&&r.getMonth()===n&&r.getDate()===e)return!0;return!1}isDayDisabled(e,n,s){if(this.disabledDays)
{let o=new
Date(s,n,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,n){this.overlayVisible?this.hideOverlay():(n.focus(),this.showOverlay())}clear(){this.inputFieldValue=null,this.value=null,this.onModelChange(this.value),this.onClear.emit()}onOverlayClick(e){this.overlayService.add({originalEvent:e,target:this.el.nativeElement})}getMonthName(e){return
this.config.getTranslation("monthNames")[e]}getYear(e){return"month"===this.currentView?this.currentYear:e.year}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},thi
s.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&&(R.getFocusableElements(this.contentViewChild.nativeElement).forEach(n=>n.tabIndex="-1"),this.overlayVisible&&(this.overlayVisible=!1))}onDateCellKeydown(e,n,s){const
r=e.currentTarget,o=r.parentElement;switch(e.which){case 40:{r.tabIndex="-1";let
u=R.index(o),h=o.parentElement.nextElementSibling;h?R.hasClass(h.children[u].children[0],"p-disabled")?(this.navigationState={backward:!1},this.navForward(e)):(h.children[u].children[0].tabIndex="0",h.children[u].children[0].focus()):(this.navigationState={backward:!1},this.navForward(e)),e.preventDefault();break}case
38:{r.tabIndex="-1";let u=R.index(o),h=o.parentE
lement.previousElementSibling;if(h){let
b=h.children[u].children[0];R.hasClass(b,"p-disabled")?(this.navigationState={backward:!0},this.navBackward(e)):(b.tabIndex="0",b.focus())}else
this.navigationState={backward:!0},this.navBackward(e);e.preventDefault();break}case
37:{r.tabIndex="-1";let u=o.previousElementSibling;if(u){let
h=u.children[0];R.hasClass(h,"p-disabled")||R.hasClass(h.parentElement,"p-datepicker-weeknumber")?this.navigateToMonth(!0,s):(h.tabIndex="0",h.focus())}else
this.navigateToMonth(!0,s);e.preventDefault();break}case 39:{r.tabIndex="-1";let
u=o.nextElementSibling;if(u){let
h=u.children[0];R.hasClass(h,"p-disabled")?this.navigateToMonth(!1,s):(h.tabIndex="0",h.focus())}else
this.navigateToMonth(!1,s);e.preventDefault();break}case 13:case
32:this.onDateSelect(e,n),e.preventDefault();break;case
27:this.overlayVisible=!1,e.preventDefault();break;case
9:this.inline||this.trapFocus(e)}}onMonthCellKeydown(e,n){const
s=e.currentTarget;switch(e.which){case 38:case 40:{s.
tabIndex="-1";var r=s.parentElement.children,o=R.index(s);let
u=r[40===e.which?o+3:o-3];u&&(u.tabIndex="0",u.focus()),e.preventDefault();break}case
37:{s.tabIndex="-1";let
u=s.previousElementSibling;u?(u.tabIndex="0",u.focus()):(this.navigationState={backward:!0},this.navBackward(e)),e.preventDefault();break}case
39:{s.tabIndex="-1";let
u=s.nextElementSibling;u?(u.tabIndex="0",u.focus()):(this.navigationState={backward:!1},this.navForward(e)),e.preventDefault();break}case
13:this.onMonthSelect(e,n),e.preventDefault();break;case 13:case 32:case
27:this.overlayVisible=!1,e.preventDefault();break;case
9:this.inline||this.trapFocus(e)}}onYearCellKeydown(e,n){const
s=e.currentTarget;switch(e.which){case 38:case 40:{s.tabIndex="-1";var
r=s.parentElement.children,o=R.index(s);let
u=r[40===e.which?o+2:o-2];u&&(u.tabIndex="0",u.focus()),e.preventDefault();break}case
37:{s.tabIndex="-1";let
u=s.previousElementSibling;u?(u.tabIndex="0",u.focus()):(this.navigationState={backward:!0},this.navBac
kward(e)),e.preventDefault();break}case 39:{s.tabIndex="-1";let
u=s.nextElementSibling;u?(u.tabIndex="0",u.focus()):(this.navigationState={backward:!1},this.navForward(e)),e.preventDefault();break}case
13:case 32:this.onYearSelect(e,n),e.preventDefault();break;case
27:this.overlayVisible=!1,e.preventDefault();break;case
9:this.trapFocus(e)}}navigateToMonth(e,n){if(e)if(1===this.numberOfMonths||0===n)this.navigationState={backward:!0},this.navBackward(event);else{let
r=R.find(this.contentViewChild.nativeElement.children[n-1],".p-datepicker-calendar td
span:not(.p-disabled):not(.p-ink)"),o=r[r.length-1];o.tabIndex="0",o.focus()}else
if(1===this.numberOfMonths||n===this.numberOfMonths-1)this.navigationState={backward:!1},this.navForward(event);else{let
r=R.findSingle(this.contentViewChild.nativeElement.children[n+1],".p-datepicker-calendar
td
span:not(.p-disabled):not(.p-ink)");r.tabIndex="0",r.focus()}}updateFocus(){let
e;if(this.navigationState){if(this.navigationState.button)this.in
itFocusableCell(),this.navigationState.backward?R.findSingle(this.contentViewChild.nativeElement,".p-datepicker-prev").focus():R.findSingle(this.contentViewChild.nativeElement,".p-datepicker-next").focus();else{if(this.navigationState.backward){let
n;n=R.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)"),n&&n.length>0&&(e=n[n.length-1])}else
e=R.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 n=R.find(this.conte
ntViewChild.nativeElement,".p-monthpicker
.p-monthpicker-month:not(.p-disabled)"),s=R.findSingle(this.contentViewChild.nativeElement,".p-monthpicker
.p-monthpicker-month.p-highlight");n.forEach(r=>r.tabIndex=-1),e=s||n[0],0===n.length&&R.find(this.contentViewChild.nativeElement,'.p-monthpicker
.p-monthpicker-month.p-disabled[tabindex =
"0"]').forEach(o=>o.tabIndex=-1)}else
if("year"===this.currentView){let
n=R.find(this.contentViewChild.nativeElement,".p-yearpicker
.p-yearpicker-year:not(.p-disabled)"),s=R.findSingle(this.contentViewChild.nativeElement,".p-yearpicker
.p-yearpicker-year.p-highlight");n.forEach(r=>r.tabIndex=-1),e=s||n[0],0===n.length&&R.find(this.contentViewChild.nativeElement,'.p-yearpicker
.p-yearpicker-year.p-disabled[tabindex =
"0"]').forEach(o=>o.tabIndex=-1)}else
if(e=R.findSingle(this.contentViewChild.nativeElement,"span.p-highlight"),!e){let
n=R.findSingle(this.contentViewChild.nativeElement,"td.p-datepicker-today
span:not(.p-disabled):not(.p-ink)");e=n||R.fi
ndSingle(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
n=R.getFocusableElements(this.contentViewChild.nativeElement);if(n&&n.length>0)if(n[0].ownerDocument.activeElement){let
s=n.indexOf(n[0].ownerDocument.activeElement);if(e.shiftKey)if(-1==s||0===s)if(this.focusTrap)n[n.length-1].focus();else{if(-1===s)return
this.hideOverlay();if(0===s)return}else n[s-1].focus();else
if(-1==s||s===n.length-1){if(!this.focusTrap&&-1!=s)return
this.hideOverlay();n[0].focus()}else n[s+1].focus()}else
n[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,n,s,r){let
o=this.value;const
u=this.convertTo24Hour(e,r);this.isRangeSelection()&&(o=this.value[1]||this.value[0]),this.isMultipleSelection()&&(o=this.value[this.value.length-1]);const
h=o?o.toDateString():null;return!(this.minDate&&h&&this.minDate.toDateString()===h&&(this.minDate.getHours()>u||this.minDate.getHours()===u&&(this.minDate.getMinutes()>n||this.minDate.getMinutes()===n&&this.minDate.getSeconds()>s))||this.maxDate&&h&&this.maxDate.toDateString()===h&&(this.maxDate.getHours()<u||this.maxDate.getHours()===u&&(this.maxDate.getMinutes()<n||this.maxDate.getMinutes()===n&&this.maxDate.getSeconds()<s)))}incrementHour(e){let
s=this.currentHour+this.stepHour,r=this.pm;"24"==this.hourFormat?s=s>=24?s-24:s:"12"==this.hourFormat&&(this.currentHour<12&&s>11&&(r=!this.pm),s=s>=13?s-12:s),this.validateTime(s,this.currentMinute,this.currentSecond,r)&&(this.currentHou
r=s,this.pm=r),e.preventDefault()}onTimePickerElementMouseDown(e,n,s){this.disabled||(this.repeat(e,null,n,s),e.preventDefault())}onTimePickerElementMouseUp(e){this.disabled||(this.clearTimePickerTimer(),this.updateTime())}onTimePickerElementMouseLeave(){!this.disabled&&this.timePickerTimer&&(this.clearTimePickerTimer(),this.updateTime())}repeat(e,n,s,r){let
o=n||500;switch(this.clearTimePickerTimer(),this.timePickerTimer=setTimeout(()=>{this.repeat(e,100,s,r),this.cd.markForCheck()},o),s){case
0:1===r?this.incrementHour(e):this.decrementHour(e);break;case
1:1===r?this.incrementMinute(e):this.decrementMinute(e);break;case
2:1===r?this.incrementSecond(e):this.decrementSecond(e)}this.updateInputfield()}clearTimePickerTimer(){this.timePickerTimer&&(clearTimeout(this.timePickerTimer),this.timePickerTimer=null)}decrementHour(e){let
n=this.currentHour-this.stepHour,s=this.pm;"24"==this.hourFormat?n=n<0?24+n:n:"12"==this.hourFormat&&(12===this.currentHour&&(s=!this.pm),n=n<=0?12+n:n),this.
validateTime(n,this.currentMinute,this.currentSecond,s)&&(this.currentHour=n,this.pm=s),e.preventDefault()}incrementMinute(e){let
n=this.currentMinute+this.stepMinute;n=n>59?n-60:n,this.validateTime(this.currentHour,n,this.currentSecond,this.pm)&&(this.currentMinute=n),e.preventDefault()}decrementMinute(e){let
n=this.currentMinute-this.stepMinute;n=n<0?60+n:n,this.validateTime(this.currentHour,n,this.currentSecond,this.pm)&&(this.currentMinute=n),e.preventDefault()}incrementSecond(e){let
n=this.currentSecond+this.stepSecond;n=n>59?n-60:n,this.validateTime(this.currentHour,this.currentMinute,n,this.pm)&&(this.currentSecond=n),e.preventDefault()}decrementSecond(e){let
n=this.currentSecond-this.stepSecond;n=n<0?60+n:n,this.validateTime(this.currentHour,this.currentMinute,n,this.pm)&&(this.currentSecond=n),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
n=!this.pm;this.validateTime(this.currentHour,this.currentMinute,this.currentSecond,n)&&(this.pm=n,this.updateTime()),e.preventDefault()}onUserInput(e){if(!this.isKeydown)return;this.isKeydown=!1;let
n=e.target.value;try{let
s=this.parseValueFromString(n);this.isValidSelection(s)&&(this.updateModel(s),this.updateUI())}catch(s){this.updateModel(this.keepInvalid?n:null)}this.filled=null!=n&&n.length,this.onInput.emit(e)}isValidSelection(e){let
n=!0;return
this.isSingleSelection()?this.isSelectable(e.getDate(),e.getMonth(),e.getFullYear(),!1)||(n=!1):e.eve
ry(s=>this.isSelectable(s.getDate(),s.getMonth(),s.getFullYear(),!1))&&this.isRangeSelection()&&(n=e.length>1&&e[1]>e[0]),n}parseValueFromString(e){if(!e||0===e.trim().length)return
null;let n;if(this.isSingleSelection())n=this.parseDateTime(e);else
if(this.isMultipleSelection()){let s=e.split(this.multipleSeparator);n=[];for(let r of
s)n.push(this.parseDateTime(r.trim()))}else if(this.isRangeSelection()){let
s=e.split(" "+this.rangeSeparator+" ");n=[];for(let
r=0;r<s.length;r++)n[r]=this.parseDateTime(s[r].trim())}return n}parseDateTime(e){let
n,s=e.split(" ");if(this.timeOnly)n=new
Date,this.populateTime(n,s[0],s[1]);else{const
r=this.getDateFormat();if(this.showTime){let
o="12"==this.hourFormat?s.pop():null,u=s.pop();n=this.parseDate(s.join("
"),r),this.populateTime(n,u,o)}else n=this.parseDate(e,r)}return
n}populateTime(e,n,s){if("12"==this.hourFormat&&!s)throw"Invalid
Time";this.pm="PM"===s||"pm"===s;let
r=this.parseTime(n);e.setHours(r.hour),e.setMinutes(r.minute),e.setSeconds
(r.second)}isValidDate(e){return e instanceof
Date&&Z.isNotEmpty(e)}updateUI(){let
e=this.value;Array.isArray(e)&&(e=e[0]);let
n=this.defaultDate&&this.isValidDate(this.defaultDate)&&!this.value?this.defaultDate:e&&this.isValidDate(e)?e:new
Date;this.currentMonth=n.getMonth(),this.currentYear=n.getFullYear(),this.createMonths(this.currentMonth,this.currentYear),(this.showTime||this.timeOnly)&&(this.setCurrentHourPM(n.getHours()),this.currentMinute=n.getMinutes(),this.currentSecond=n.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.over
lay.setAttribute(this.attributeSelector,""),this.appendOverlay(),this.updateFocus(),this.autoZIndex&&(this.touchUI?dt.set("modal",this.overlay,this.baseZIndex||this.config.zIndex.modal):dt.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&&dt.clear(e.element)}}appendOverlay(){this.appendTo&&("body"===this.appendTo?document.body.appendChild(this.overlay):R.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=R.getOuterWidth(t
his.overlay)+"px",this.overlay.style.minWidth=R.getOuterWidth(this.inputfieldViewChild.nativeElement)+"px"):this.overlay.style.width=R.getOuterWidth(this.inputfieldViewChild.nativeElement)+"px",R.absolutePosition(this.overlay,this.inputfieldViewChild.nativeElement)):R.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),R.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",s=>{this.disableModality()}),document.body.appendChild(this.mask),R.addClass(document.body,"p-overflow-hidden"))}disableModality(){this.mask&&(R.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 n,e=document.body.children;for(let
s=0;s<e.length;s++)if(R.hasClass(e[s],"p-datepicker-mask-scrollblocker")){n=!0;break}n||R.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){if(this.value=e,this.value&&"string"==typeof
this.value)try{this.value=this.parseValueFromString(this.value)}catch(n){this.keepInvalid&&(this.value=e)}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||th
is.getTranslation("dateFormat")}getFirstDateOfWeek(){return
this._firstDayOfWeek||this.getTranslation(Ft.FIRST_DAY_OF_WEEK)}formatDate(e,n){if(!e)return"";let
s;const r=y=>{const w=s+1<n.length&&n.charAt(s+1)===y;return
w&&s++,w},o=(y,w,M)=>{let
E=""+w;if(r(y))for(;E.length<M;)E="0"+E;return
E},u=(y,w,M,E)=>r(y)?E[w]:M[w];let
h="",b=!1;if(e)for(s=0;s<n.length;s++)if(b)"'"!==n.charAt(s)||r("'")?h+=n.charAt(s):b=!1;else
switch(n.charAt(s)){case"d":h+=o("d",e.getDate(),2);break;case"D":h+=u("D",e.getDay(),this.getTranslation(Ft.DAY_NAMES_SHORT),this.getTranslation(Ft.DAY_NAMES));break;case"o":h+=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":h+=o("m",e.getMonth()+1,2);break;case"M":h+=u("M",e.getMonth(),this.getTranslation(Ft.MONTH_NAMES_SHORT),this.getTranslation(Ft.MONTH_NAMES));break;case"y":h+=r("y")?e.getFullYear():(e.getFullYear()%100<10?"0":"")+e.getFullYear()%100;break;case"@":h+=e.
getTime();break;case"!":h+=1e4*e.getTime()+this.ticksTo1970;break;case"'":r("'")?h+="'":b=!0;break;default:h+=n.charAt(s)}return
h}formatTime(e){if(!e)return"";let
n="",s=e.getHours(),r=e.getMinutes(),o=e.getSeconds();return"12"==this.hourFormat&&s>11&&12!=s&&(s-=12),n+="12"==this.hourFormat&&0===s?12:s<10?"0"+s:s,n+=":",n+=r<10?"0"+r:r,this.showSeconds&&(n+=":",n+=o<10?"0"+o:o),"12"==this.hourFormat&&(n+=e.getHours()>11?"
PM":" AM"),n}parseTime(e){let
n=e.split(":");if(n.length!==(this.showSeconds?3:2))throw"Invalid
time";let
r=parseInt(n[0]),o=parseInt(n[1]),u=this.showSeconds?parseInt(n[2]):null;if(isNaN(r)||isNaN(o)||r>23||o>59||"12"==this.hourFormat&&r>12||this.showSeconds&&(isNaN(u)||u>59))throw"Invalid
time";return"12"==this.hourFormat&&(12!==r&&this.pm?r+=12:!this.pm&&12===r&&(r-=12)),{hour:r,minute:o,second:u}}parseDate(e,n){if(null==n||null==e)throw"Invalid
arguments";if(""===(e="object"==typeof
e?e.toString():e+""))return null;let s,r,o,L,u=0,h="string"!=typeof
this.short
YearCutoff?this.shortYearCutoff:(new
Date).getFullYear()%100+parseInt(this.shortYearCutoff,10),b=-1,y=-1,w=-1,M=-1,E=!1,O=J=>{let
se=s+1<n.length&&n.charAt(s+1)===J;return se&&s++,se},N=J=>{let
se=O(J),ke="@"===J?14:"!"===J?20:"y"===J&&se?4:"o"===J?3:2,Ct=new
RegExp("^\\d{"+("y"===J?ke:1)+","+ke+"}"),Ut=e.substring(u).match(Ct);if(!Ut)throw"Missing
number at position "+u;return
u+=Ut[0].length,parseInt(Ut[0],10)},G=(J,se,ke)=>{let mt=-1,Ct=O(J)?ke:se,Ut=[];for(let
At=0;At<Ct.length;At++)Ut.push([At,Ct[At]]);Ut.sort((At,hn)=>-(At[1].length-hn[1].length));for(let
At=0;At<Ut.length;At++){let
hn=Ut[At][1];if(e.substr(u,hn.length).toLowerCase()===hn.toLowerCase()){mt=Ut[At][0],u+=hn.length;break}}if(-1!==mt)return
mt+1;throw"Unknown name at position
"+u},P=()=>{if(e.charAt(u)!==n.charAt(s))throw"Unexpected literal at position
"+u;u++};for("month"===this.view&&(w=1),s=0;s<n.length;s++)if(E)"'"!==n.charAt(s)||O("'")?P():E=!1;else
switch(n.charAt(s)){case"d":w=N("d");break;case"D":G("D",thi
s.getTranslation(Ft.DAY_NAMES_SHORT),this.getTranslation(Ft.DAY_NAMES));break;case"o":M=N("o");break;case"m":y=N("m");break;case"M":y=G("M",this.getTranslation(Ft.MONTH_NAMES_SHORT),this.getTranslation(Ft.MONTH_NAMES));break;case"y":b=N("y");break;case"@":L=new
Date(N("@")),b=L.getFullYear(),y=L.getMonth()+1,w=L.getDate();break;case"!":L=new
Date((N("!")-this.ticksTo1970)/1e4),b=L.getFullYear(),y=L.getMonth()+1,w=L.getDate();break;case"'":O("'")?P():E=!0;break;default:P()}if(u<e.length&&(o=e.substr(u),!/^\s+/.test(o)))throw"Extra/unparsed
characters found in date: "+o;if(-1===b?b=(new
Date).getFullYear():b<100&&(b+=(new Date).getFullYear()-(new
Date).getFullYear()%100+(b<=h?0:-100)),M>-1)for(y=1,w=M;r=this.getDaysCountInMonth(b,y-1),!(w<=r);)y++,w-=r;if(L=this.daylightSavingAdjust(new
Date(b,y-1,w)),L.getFullYear()!==b||L.getMonth()+1!==y||L.getDate()!==w)throw"Invalid
date";return L}daylightSavingAdjust(e){return
e?(e.setHours(e.getHours()>12?e.getHours()+2:0),e):null}updateFilledS
tate(){this.filled=this.inputFieldValue&&""!=this.inputFieldValue}onTodayButtonClick(e){let
n=new
Date,s={day:n.getDate(),month:n.getMonth(),year:n.getFullYear(),otherMonth:n.getMonth()!==this.currentMonth||n.getFullYear()!==this.currentYear,today:!0,selectable:!0};this.onDateSelect(e,s),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
n=[...this.responsiveOptions].filter(s=>!(!s.breakpoint||!s.numMonths)).sort((s,r)=>-1*s.breakpoint.localeCompare(r.breakpoint,void
0,{numeric:!0}));for(let s=0;s<n.length;s++){let{breakpoint:r,numMonths:o}=n[s],u=`\n
.p-datepicker[${this.at
tributeSelector}] .p-datepicker-group:nth-child(${o}) .p-datepicker-next {\n
display: inline-flex !important;\n }\n
`;for(let h=o;h<this.numberOfMonths;h++)u+=`\n
.p-datepicker[${this.attributeSelector}] .p-datepicker-group:nth-child(${h+1}) {\n
display: none !important;\n }\n
`;e+=`\n @media screen and (max-width: ${r}) {\n
${u}\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",n=>{this.
isOutsideClicked(n)&&this.overlayVisible&&this.zone.run(()=>{this.hideOverlay(),this.onClickOutside.emit(n),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
Qs(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
R.hasClass(e.target,"p-datepicker-prev")||R.hasClass(e.target,"p-datepicker-prev-icon")||R.hasClass(e.target,"p-datepicker-next")||R.hasClass(e.target,"p-datepicker-next-icon")}onWindowResize(){this.overlayVisible&&!R.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&&dt.clear(this.overlay),this.destroyResponsiveStyleElement(),this.clearTimePickerTimer(),this.restoreOverlayAppend(),this.onOverlayHide()}}return
t.\u0275fac=function(e){return
new(e||t)(D(De),D(gn),D(rt),D(nt),D(zn),D(Ks))},t.\u0275cmp=z({type:t,selecto
rs:[["p-calendar"]],contentQueries:function(e,n,s){if(1&e&&st(s,ne,4),2&e){let
r;V(r=B())&&(n.templates=r)}},viewQuery:function(e,n){if(1&e&&(W(pN,5),W(hN,5),W(mN,5)),2&e){let
s;V(s=B())&&(n.containerViewChild=s.first),V(s=B())&&(n.inputfieldViewChild=s.first),V(s=B())&&(n.content=s.first)}},hostAttrs:[1,"p-element","p-inputwrapper"],hostVars:6,hostBindings:function(e,n){2&e&&si("p-inputwrapper-filled",n.filled)("p-inputwrapper-focus",n.focus)("p-calendar-clearable",n.showClear&&!n.disabled)},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:"readonly
Input",shortYearCutoff:"shortYearCutoff",monthNavigator:"monthNavigator",yearNavigator:"yearNavigator",hourFormat:"hourFormat",timeOnly:"timeOnly",stepHour:"stepHour",stepMinute:"stepMinute",stepSecond:"stepSecond",showSeconds:"showSeconds",required:"required",showOnFocus:"showOnFocus",showWeek:"showWeek",showClear:"showClear",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",minDate:"minDate",maxDate:"maxDate",disabledDates:"disabledDates",disabl
edDays:"disabledDays",yearRange:"yearRange",showTime:"showTime",responsiveOptions:"responsiveOptions",numberOfMonths:"numberOfMonths",firstDayOfWeek:"firstDayOfWeek",locale:"locale"},outputs:{onFocus:"onFocus",onBlur:"onBlur",onClose:"onClose",onSelect:"onSelect",onClear:"onClear",onInput:"onInput",onTodayClick:"onTodayClick",onClearClick:"onClearClick",onMonthChange:"onMonthChange",onYearChange:"onYearChange",onClickOutside:"onClickOutside",onShow:"onShow"},features:[Pe([r5])],ngContentSelectors:s5,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",""],["class","p-calendar-clear-icon
pi
pi-times",3,"click",4,"ngIf"],["type","button","pButton","","pRipple","","class","p-datepicker-trigger","tabindex","0",3,"icon","disabled","click",4,"ngIf"],[1,"p-calenda
r-clear-icon","pi","pi-times",3,"click"],["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-chevr
on-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"],["pR
ipple","",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,n){1&e&&(Sn(t5),l(0,"span",0,1),_(2,_N,4,17,"ng-template",2),_(3,e5,9,28,"div",3),c()),2&e&&(me(n.styleClass),p("ngC
lass",qn(6,n5,n.showIcon,n.timeOnly,n.disabled,n.focus))("ngStyle",n.style),a(2),p("ngIf",!n.inline),a(1),p("ngIf",n.inline||n.overlayVisible))},directives:[Le,lt,Q,On,bt,Rt,at],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;p
osition: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;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:translat
e(-50%,-50%)}.p-yearpicker-year{width:50%;display:inline-flex;align-items:center;justify-content:center;cursor:pointer;overflow:hidden;position:relative}.p-calendar-clear-icon{position:absolute;top:50%;margin-top:-.5rem;cursor:pointer}.p-calendar-clearable{position:relative}\n"],encapsulation:2,data:{animation:[wi("overlayAnimation",[ws("visibleTouchUI",it({transform:"translate(-50%,-50%)",opacity:1})),Lt("void
=>
visible",[it({opacity:0,transform:"scaleY(0.8)"}),kt("{{showTransitionParams}}",it({opacity:1,transform:"*"}))]),Lt("visible
=> void",[kt("{{hideTransitionParams}}",it({opacity:0}))]),Lt("void
=> visibleTouchUI",[it({opacity:0,transform:"translate3d(-50%, -40%, 0)
scale(0.9)"}),kt("{{showTransitionParams}}")]),Lt("visibleTouchUI
=>
void",[kt("{{hideTransitionParams}}",it({opacity:0,transform:"translate3d(-50%,
-40%, 0) scale(0.9)"}))])])]},changeDetection:0}),t})(),cT=(()=>{class t{}return
t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=he({type:t}),t.\u0275inj=ue({i
mports:[[Fe,gl,Nt,pn],gl,Nt]}),t})();function o5(t,i){1&t&&Y(0)}function
a5(t,i){if(1&t&&(l(0,"div",8),St(1,1),_(2,o5,1,0,"ng-container",6),c()),2&t){const
e=d();a(2),p("ngTemplateOutlet",e.headerTemplate)}}function
l5(t,i){1&t&&Y(0)}function
c5(t,i){if(1&t&&(l(0,"div",9),g(1),_(2,l5,1,0,"ng-container",6),c()),2&t){const
e=d();a(1),T(" ",e.header,"
"),a(1),p("ngTemplateOutlet",e.titleTemplate)}}function
u5(t,i){1&t&&Y(0)}function
d5(t,i){if(1&t&&(l(0,"div",10),g(1),_(2,u5,1,0,"ng-container",6),c()),2&t){const
e=d();a(1),T(" ",e.subheader,"
"),a(1),p("ngTemplateOutlet",e.subtitleTemplate)}}function
p5(t,i){1&t&&Y(0)}function h5(t,i){1&t&&Y(0)}function
m5(t,i){if(1&t&&(l(0,"div",11),St(1,2),_(2,h5,1,0,"ng-container",6),c()),2&t){const
e=d();a(2),p("ngTemplateOutlet",e.footerTemplate)}}const
f5=["*",[["p-header"]],[["p-footer"]]],g5=["*","p-header","p-footer"];let
Ne=(()=>{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.template;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)(D(De))},t.\u0275cmp=z({type:t,selectors:[["p-card"]],contentQueries:function(e,n,s){if(1&e&&(st(s,Oo,5),st(s,fl,5),st(s,ne,4)),2&e){let
r;V(r=B())&&(n.headerFacet=r.first),V(r=B())&&(n.footerFacet=r.first),V(r=B())&&(n.templates=r)}},hostAttrs:[1,"p-element"],inputs:{header:"header",subheader:"subheader",style:"style",styleClass:"styleClass"},ngContentSelectors:g5,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:function(e,n){1&e&&(Sn(f5),l(0,"div",0),_(1,a5,3,1,"div",1),l(2,"div",2),_(3,c5,3,2,"div",3),_(4,d5,3,2,"div",4),l(5,"div",5),St(6),_(7,p5,1,0,"ng-container",6),c(),_(8,m5,3,1,"div",7),c()()),2&e&&(me(n.styleClass),p("ngClass","p-card
p-component")("ngStyle",n.style),a(1),p("ngIf",n.headerFacet||n.headerTemplate),a(2),p("ngIf",n.header||n.titleTemplate),a(1),p("ngIf",n.subheader||n.subtitleTemplate),a(3),p("ngTemplateOutlet",n.contentTemplate),a(1),p("ngIf",n.footerFacet||n.footerTemplate))},directives:[Le,lt,Q,Rt],styles:[".p-card-header
img{width:100%}\n"],encapsulation:2,changeDetection:0}),t})(),_5=(()=>{class
t{}return t.\u0275fac=function(e){return
new(e||t)},t.\u0275mod=he({type:t}),t.\u0275inj=ue({imports:[[Fe],Nt]}),t})();const
b5=["cb"],v5=function(t,i,e){return{"p-checkbox-label":!0,"p-checkbox-label-active":t,"p-disabled":i,"p-checkbox-label-focus":e}};function
C5(t,i){if(1&t){const e=I();l(0,"label",7)
,C("click",function(s){v(e);const r=d(),o=F(3);return
r.onClick(s,o,!0)}),g(1),c()}if(2&t){const
e=d();me(e.labelStyleClass),p("ngClass",Qt(5,v5,e.checked(),e.disabled,e.focused)),ie("for",e.inputId),a(1),S(e.label)}}const
y5=function(t,i,e){return{"p-checkbox
p-component":!0,"p-checkbox-checked":t,"p-checkbox-disabled":i,"p-checkbox-focused":e}},w5=function(t,i,e){return{"p-highlight":t,"p-disabled":i,"p-focus":e}},T5={provide:dn,useExisting:je(()=>sn),multi:!0};let
sn=(()=>{class t{constructor(e){this.cd=e,this.checkboxIcon="pi
pi-check",this.trueValue=!0,this.falseValue=!1,this.onChange=new
H,this.onModelChange=()=>{},this.onModelTouched=()=>{},this.focused=!1}onClick(e,n,s){e.preventDefault(),!this.disabled&&!this.readonly&&(this.updateModel(e),s&&n.focus())}updateModel(e){let
n;this.binary?(n=this.checked()?this.falseValue:this.trueValue,this.model=n,this.onModelChange(n)):(n=this.checked()?this.model.filter(s=>!Z.equals(s,this.value)):this.model?[...this.model,this.value]:[thi
s.value],this.onModelChange(n),this.model=n,this.formControl&&this.formControl.setValue(n)),this.onChange.emit({checked:n,originalEvent:e})}handleChange(e){this.readonly||this.updateModel(e)}onFocus(){this.focused=!0}onBlur(){this.focused=!1,this.onModelTouched()}focus(){this.inputViewChild.nativeElement.focus()}writeValue(e){this.model=e,this.cd.markForCheck()}registerOnChange(e){this.onModelChange=e}registerOnTouched(e){this.onModelTouched=e}setDisabledState(e){this.disabled=e,this.cd.markForCheck()}checked(){return
this.binary?this.model===this.trueValue:Z.contains(this.value,this.model)}}return
t.\u0275fac=function(e){return
new(e||t)(D(rt))},t.\u0275cmp=z({type:t,selectors:[["p-checkbox"]],viewQuery:function(e,n){if(1&e&&W(b5,5),2&e){let
s;V(s=B())&&(n.inputViewChild=s.first)}},hostAttrs:[1,"p-element"],inputs:{value:"value",name:"name",disabled:"disabled",binary:"binary",label:"label",ariaLabelledBy:"ariaLabelledBy",ariaLabel:"ariaLabel",tabindex:"tabindex",inputId:"inputId",s
tyle:"style",styleClass:"styleClass",labelStyleClass:"labelStyleClass",formControl:"formControl",checkboxIcon:"checkboxIcon",readonly:"readonly",required:"required",trueValue:"trueValue",falseValue:"falseValue"},outputs:{onChange:"onChange"},features:[Pe([T5])],decls:7,vars:26,consts:[[3,"ngStyle","ngClass"],[1,"p-hidden-accessible"],["type","checkbox",3,"readonly","value","checked","disabled","focus","blur","change"],["cb",""],[1,"p-checkbox-box",3,"ngClass","click"],[1,"p-checkbox-icon",3,"ngClass"],[3,"class","ngClass","click",4,"ngIf"],[3,"ngClass","click"]],template:function(e,n){if(1&e){const
s=I();l(0,"div",0)(1,"div",1)(2,"input",2,3),C("focus",function(){return
n.onFocus()})("blur",function(){return
n.onBlur()})("change",function(o){return
n.handleChange(o)}),c()(),l(4,"div",4),C("click",function(o){v(s);const
u=F(3);return
n.onClick(o,u,!0)}),k(5,"span",5),c()(),_(6,C5,2,9,"label",6)}2&e&&(me(n.styleClass),p("ngStyle",n.style)("ngClass",Qt(18,y5,n.checked(),n.disabled,n.fo
cused)),a(2),p("readonly",n.readonly)("value",n.value)("checked",n.checked())("disabled",n.disabled),ie("id",n.inputId)("name",n.name)("tabindex",n.tabindex)("aria-labelledby",n.ariaLabelledBy)("aria-label",n.ariaLabel)("aria-checked",n.checked())("required",n.required),a(2),p("ngClass",Qt(22,w5,n.checked(),n.disabled,n.focused)),a(1),p("ngClass",n.checked()?n.checkboxIcon:null),a(1),p("ngIf",n.label))},directives:[lt,Le,Q],styles:[".p-checkbox{display:inline-flex;cursor:pointer;-webkit-user-select:none;user-select:none;vertical-align:bottom;position:relative}.p-checkbox-disabled{cursor:default!important;pointer-events:none}.p-checkbox-box{display:flex;justify-content:center;align-items:center}p-checkbox{display:inline-flex;vertical-align:bottom;align-items:center}.p-checkbox-label{line-height:1}\n"],encapsulation:2,changeDetection:0}),t})(),S5=(()=>{class
t{}return t.\u0275fac=function(e){return
new(e||t)},t.\u0275mod=he({type:t}),t.\u0275inj=ue({imports:[[Fe]]}),t})();function Ku(
t,i=0){return function
D5(t){return!isNaN(parseFloat(t))&&!isNaN(Number(t))}(t)?Number(t):i}function
Uf(t,i,e,n){return Is(e)&&(n=e,e=void
0),n?Uf(t,i,e).pipe(et(s=>Nr(s)?n(...s):n(s))):new Je(s=>{uT(t,i,function
r(o){s.next(arguments.length>1?Array.prototype.slice.call(arguments):o)},s,e)})}function
uT(t,i,e,n,s){let r;if(function E5(t){return t&&"function"==typeof
t.addEventListener&&"function"==typeof t.removeEventListener}(t)){const
o=t;t.addEventListener(i,e,s),r=()=>o.removeEventListener(i,e,s)}else if(function
I5(t){return t&&"function"==typeof
t.on&&"function"==typeof t.off}(t)){const
o=t;t.on(i,e),r=()=>o.off(i,e)}else if(function k5(t){return
t&&"function"==typeof
t.addListener&&"function"==typeof t.removeListener}(t)){const
o=t;t.addListener(i,e),r=()=>o.removeListener(i,e)}else{if(!t||!t.length)throw new
TypeError("Invalid event target");for(let
o=0,u=t.length;o<u;o++)uT(t[o],i,e,n,s)}n.add(r)}const O5=new class L5 extends
Hi{flush(i){this.active=!0,this.scheduled=void 0
;const{actions:e}=this;let
n,s=-1,r=e.length;i=i||e.shift();do{if(n=i.execute(i.state,i.delay))break}while(++s<r&&(i=e.shift()));if(this.active=!1,n){for(;++s<r&&(i=e.shift());)i.unsubscribe();throw
n}}}(class R5 extends
uu{constructor(i,e){super(i,e),this.scheduler=i,this.work=e}requestAsyncId(i,e,n=0){return
null!==n&&n>0?super.requestAsyncId(i,e,n):(i.actions.push(this),i.scheduled||(i.scheduled=requestAnimationFrame(()=>i.flush(null))))}recycleAsyncId(i,e,n=0){if(null!==n&&n>0||null===n&&this.delay>0)return
super.recycleAsyncId(i,e,n);0===i.actions.length&&(cancelAnimationFrame(e),i.scheduled=void
0)}});let A5=1;const P5=Promise.resolve(),Qu={};function dT(t){return t in
Qu&&(delete Qu[t],!0)}const pT={setImmediate(t){const i=A5++;return
Qu[i]=!0,P5.then(()=>dT(i)&&t()),i},clearImmediate(t){dT(t)}},V5=new class N5
extends Hi{flush(i){this.active=!0,this.scheduled=void 0;const{actions:e}=this;let
n,s=-1,r=e.length;i=i||e.shift();do{if(n=i.execute(i.state,i.delay))break}while(++s<
r&&(i=e.shift()));if(this.active=!1,n){for(;++s<r&&(i=e.shift());)i.unsubscribe();throw
n}}}(class F5 extends
uu{constructor(i,e){super(i,e),this.scheduler=i,this.work=e}requestAsyncId(i,e,n=0){return
null!==n&&n>0?super.requestAsyncId(i,e,n):(i.actions.push(this),i.scheduled||(i.scheduled=pT.setImmediate(i.flush.bind(i,null))))}recycleAsyncId(i,e,n=0){if(null!==n&&n>0||null===n&&this.delay>0)return
super.recycleAsyncId(i,e,n);0===i.actions.length&&(pT.clearImmediate(e),i.scheduled=void
0)}});class H5{constructor(i,e){this.compare=i,this.keySelector=e}call(i,e){return
e.subscribe(new q5(i,this.compare,this.keySelector))}}class q5 extends
yt{constructor(i,e,n){super(i),this.keySelector=n,this.hasKey=!1,"function"==typeof
e&&(this.compare=e)}compare(i,e){return i===e}_next(i){let
e;try{const{keySelector:s}=this;e=s?s(i):i}catch(s){return this.destination.error(s)}let
n=!1;if(this.hasKey)try{const{compare:s}=this;n=s(this.key,e)}catch(s){return
this.destination.error(s)}else this.hasKe
y=!0;n||(this.key=e,this.destination.next(i))}}const zf=new Hi(uu);class
U5{constructor(i){this.durationSelector=i}call(i,e){return e.subscribe(new
z5(i,this.durationSelector))}}class z5 extends
Zo{constructor(i,e){super(i),this.durationSelector=e,this.hasValue=!1}_next(i){if(this.value=i,this.hasValue=!0,!this.throttled){let
e;try{const{durationSelector:s}=this;e=s(i)}catch(s){return
this.destination.error(s)}const n=Xo(e,new
Yo(this));!n||n.closed?this.clearThrottle():this.add(this.throttled=n)}}clearThrottle(){const{value:i,hasValue:e,throttled:n}=this;n&&(this.remove(n),this.throttled=void
0,n.unsubscribe()),e&&(this.value=void
0,this.hasValue=!1,this.destination.next(i))}notifyNext(){this.clearThrottle()}notifyComplete(){this.clearThrottle()}}function
hT(t){return!Nr(t)&&t-parseFloat(t)+1>=0}function
$5(t){const{index:i,period:e,subscriber:n}=t;if(n.next(i),!n.closed){if(-1===e)return
n.complete();t.index=i+1,this.schedule(t,e)}}function jf(t,i=zf){return function
G5(t){return
function(e){return e.lift(new U5(t))}}(()=>function j5(t=0,i,e){let n=-1;return
hT(i)?n=Number(i)<1?1:Number(i):Vr(i)&&(e=i),Vr(e)||(e=zf),new Je(s=>{const
r=hT(t)?t:+t-e.now();return
e.schedule($5,r,{index:0,period:n,subscriber:s})})}(t,i))}function $f(t){return
i=>i.lift(new W5(t))}class W5{constructor(i){this.notifier=i}call(i,e){const n=new
K5(i),s=Xo(this.notifier,new Yo(n));return
s&&!n.seenValue?(n.add(s),e.subscribe(n)):n}}class K5 extends
Zo{constructor(i){super(i),this.seenValue=!1}notifyNext(){this.seenValue=!0,this.complete()}notifyComplete(){}}function
Ju(...t){const i=t[t.length-1];return Vr(i)?(t.pop(),e=>el(t,e,i)):e=>el(t,e)}class
J5{call(i,e){return e.subscribe(new Y5(i))}}class Y5 extends
yt{constructor(i){super(i),this.hasPrev=!1}_next(i){let
e;this.hasPrev?e=[this.prev,i]:this.hasPrev=!0,this.prev=i,e&&this.destination.next(e)}}let
Wf;try{Wf="undefined"!=typeof
Intl&&Intl.v8BreakIterator}catch(t){Wf=!1}let Yu,Dr,mT=(()=>{class
t{constructor(e){this._platformId=e
,this.isBrowser=this._platformId?function E4(t){return
t===ky}(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),this.BLINK=this.isBrowser&&!(!window.chrome&&!Wf)&&"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)(K(qc))},t.\u0275prov=X({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();function
bl(){if("object"!=typeof document||!document)return 0;if(null==Yu)
{const
t=document.createElement("div"),i=t.style;t.dir="rtl",i.width="1px",i.overflow="auto",i.visibility="hidden",i.pointerEvents="none",i.position="absolute";const
e=document.createElement("div"),n=e.style;n.width="2px",n.height="1px",t.appendChild(e),document.body.appendChild(t),Yu=0,0===t.scrollLeft&&(t.scrollLeft=1,Yu=0===t.scrollLeft?1:2),t.remove()}return
Yu}const tV=new be("cdk-dir-doc",{providedIn:"root",factory:function
nV(){return
O_(Xt)}}),iV=/^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)/i;let
gT=(()=>{class t{constructor(e){if(this.value="ltr",this.change=new
H,e){const s=e.documentElement?e.documentElement.dir:null;this.value=function sV(t){const
i=(null==t?void
0:t.toLowerCase())||"";return"auto"===i&&"undefined"!=typeof
navigator&&(null==navigator?void
0:navigator.language)?iV.test(navigator.language)?"rtl":"ltr":"rtl"===i?"rtl":"ltr"}((e.body?e.body.dir:null)||s||"ltr")}}ngOnDestroy(){this.change.c
omplete()}}return t.\u0275fac=function(e){return
new(e||t)(K(tV,8))},t.\u0275prov=X({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),_T=(()=>{class
t{}return t.\u0275fac=function(e){return
new(e||t)},t.\u0275mod=he({type:t}),t.\u0275inj=ue({}),t})();class aV extends class
rV{}{constructor(i){super(),this._data=i}connect(){return
is(this._data)?this._data:oe(this._data)}disconnect(){}}class
lV{constructor(){this.viewCacheSize=20,this._viewCache=[]}applyChanges(i,e,n,s,r){i.forEachOperation((o,u,h)=>{let
b,y;null==o.previousIndex?(b=this._insertView(()=>n(o,u,h),h,e,s(o)),y=b?1:0):null==h?(this._detachAndCacheView(u,e),y=3):(b=this._moveView(u,h,e,s(o)),y=2),r&&r({context:null==b?void
0:b.context,operation:y,record:o})})}detach(){for(const i of
this._viewCache)i.destroy();this._viewCache=[]}_insertView(i,e,n,s){const
r=this._insertViewFromCache(e,n);if(r)return void(r.context.$implicit=s);const
o=i();return n.createEmbeddedView(o.templateRef,o.context,o.index)}_detachAndCacheVie
w(i,e){const n=e.detach(i);this._maybeCacheView(n,e)}_moveView(i,e,n,s){const
r=n.get(i);return
n.move(r,e),r.context.$implicit=s,r}_maybeCacheView(i,e){if(this._viewCache.length<this.viewCacheSize)this._viewCache.push(i);else{const
n=e.indexOf(i);-1===n?i.destroy():e.remove(n)}}_insertViewFromCache(i,e){const
n=this._viewCache.pop();return n&&e.insert(n,i),n||null}}const bT=new
be("_ViewRepeater"),cV=["contentWrapper"],uV=["*"],vT=new
be("VIRTUAL_SCROLL_STRATEGY");class
dV{constructor(i,e,n){this._scrolledIndexChange=new
ct,this.scrolledIndexChange=this._scrolledIndexChange.pipe(function B5(t,i){return
e=>e.lift(new
H5(t,i))}()),this._viewport=null,this._itemSize=i,this._minBufferPx=e,this._maxBufferPx=n}attach(i){this._viewport=i,this._updateTotalContentSize(),this._updateRenderedRange()}detach(){this._scrolledIndexChange.complete(),this._viewport=null}updateItemAndBufferSize(i,e,n){this._itemSize=i,this._minBufferPx=e,this._maxBufferPx=n,this._updateTotalContentSize(),this._updat
eRenderedRange()}onContentScrolled(){this._updateRenderedRange()}onDataLengthChanged(){this._updateTotalContentSize(),this._updateRenderedRange()}onContentRendered(){}onRenderedOffsetChanged(){}scrollToIndex(i,e){this._viewport&&this._viewport.scrollToOffset(i*this._itemSize,e)}_updateTotalContentSize(){!this._viewport||this._viewport.setTotalContentSize(this._viewport.getDataLength()*this._itemSize)}_updateRenderedRange(){if(!this._viewport)return;const
i=this._viewport.getRenderedRange(),e={start:i.start,end:i.end},n=this._viewport.getViewportSize(),s=this._viewport.getDataLength();let
r=this._viewport.measureScrollOffset(),o=this._itemSize>0?r/this._itemSize:0;if(e.end>s){const
h=Math.ceil(n/this._itemSize),b=Math.max(0,Math.min(o,s-h));o!=b&&(o=b,r=b*this._itemSize,e.start=Math.floor(o)),e.end=Math.max(0,Math.min(s,e.start+h))}const
u=r-e.start*this._itemSize;if(u<this._minBufferPx&&0!=e.start){const
h=Math.ceil((this._maxBufferPx-u)/this._itemSize);e.start=Math.max(0,e.start-h)
,e.end=Math.min(s,Math.ceil(o+(n+this._minBufferPx)/this._itemSize))}else{const
h=e.end*this._itemSize-(r+n);if(h<this._minBufferPx&&e.end!=s){const
b=Math.ceil((this._maxBufferPx-h)/this._itemSize);b>0&&(e.end=Math.min(s,e.end+b),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
pV(t){return t._scrollStrategy}let Qf=(()=>{class
t{constructor(){this._itemSize=20,this._minBufferPx=100,this._maxBufferPx=200,this._scrollStrategy=new
dV(this.itemSize,this.minBufferPx,this.maxBufferPx)}get itemSize(){return
this._itemSize}set itemSize(e){this._itemSize=Ku(e)}get minBufferPx(){return
this._minBufferPx}set minBufferPx(e){this._minBufferPx=Ku(e)}get maxBufferPx(){return
this._maxBufferPx}set
maxBufferPx(e){this._maxBufferPx=Ku(e)}ngOnChanges(){this._scrollStrategy.updateItemAndBufferSize(this.itemSize,this.minBufferPx,t
his.maxBufferPx)}}return t.\u0275fac=function(e){return
new(e||t)},t.\u0275dir=le({type:t,selectors:[["cdk-virtual-scroll-viewport","itemSize",""]],inputs:{itemSize:"itemSize",minBufferPx:"minBufferPx",maxBufferPx:"maxBufferPx"},features:[Pe([{provide:vT,useFactory:pV,deps:[je(()=>t)]}]),fn]}),t})(),CT=(()=>{class
t{constructor(e,n,s){this._ngZone=e,this._platform=n,this._scrolled=new
ct,this._globalSubscription=null,this._scrolledCount=0,this.scrollContainers=new
Map,this._document=s}register(e){this.scrollContainers.has(e)||this.scrollContainers.set(e,e.elementScrolled().subscribe(()=>this._scrolled.next(e)))}deregister(e){const
n=this.scrollContainers.get(e);n&&(n.unsubscribe(),this.scrollContainers.delete(e))}scrolled(e=20){return
this._platform.isBrowser?new
Je(n=>{this._globalSubscription||this._addGlobalListener();const
s=e>0?this._scrolled.pipe(jf(e)).subscribe(n):this._scrolled.subscribe(n);return
this._scrolledCount++,()=>{s.unsubscribe(),this._scrolledCount--,this._scroll
edCount||this._removeGlobalListener()}}):oe()}ngOnDestroy(){this._removeGlobalListener(),this.scrollContainers.forEach((e,n)=>this.deregister(n)),this._scrolled.complete()}ancestorScrolled(e,n){const
s=this.getAncestorScrollContainers(e);return
this.scrolled(n).pipe(Us(r=>!r||s.indexOf(r)>-1))}getAncestorScrollContainers(e){const
n=[];return
this.scrollContainers.forEach((s,r)=>{this._scrollableContainsElement(r,e)&&n.push(r)}),n}_getWindow(){return
this._document.defaultView||window}_scrollableContainsElement(e,n){let s=function
M5(t){return t instanceof
De?t.nativeElement:t}(n),r=e.getElementRef().nativeElement;do{if(s==r)return!0}while(s=s.parentElement);return!1}_addGlobalListener(){this._globalSubscription=this._ngZone.runOutsideAngular(()=>Uf(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)(K(nt),K(mT),K(Xt,8))},t.\u0275prov=X({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),yT=(()=>{class
t{constructor(e,n,s,r){this.elementRef=e,this.scrollDispatcher=n,this.ngZone=s,this.dir=r,this._destroyed=new
ct,this._elementScrolled=new
Je(o=>this.ngZone.runOutsideAngular(()=>Uf(this.elementRef.nativeElement,"scroll").pipe($f(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
n=this.elementRef.nativeElement,s=this.dir&&"rtl"==this.dir.value;null==e.left&&(e.left=s?e.end:e.start),null==e.right&&(e.right=s?e.start:e.end),null!=e.bottom&&(e.top=n.scrollHeight-n.clientHeight-e.bottom),s&&0!=bl()?(null!=e.left&&(e.right=n.scrollWidth-n.clientWidth-e.left),2==bl()?e.left=e.right:1==bl()&&(e.left=e.right?-e.right:e.right)):null!=e.right&&(e.
left=n.scrollWidth-n.clientWidth-e.right),this._applyScrollToOptions(e)}_applyScrollToOptions(e){const
n=this.elementRef.nativeElement;!function X5(){if(null==Dr){if("object"!=typeof
document||!document||"function"!=typeof Element||!Element)return
Dr=!1,Dr;if("scrollBehavior"in document.documentElement.style)Dr=!0;else{const
t=Element.prototype.scrollTo;Dr=!!t&&!/\{\s*\[native
code\]\s*\}/.test(t.toString())}}return
Dr}()?(null!=e.top&&(n.scrollTop=e.top),null!=e.left&&(n.scrollLeft=e.left)):n.scrollTo(e)}measureScrollOffset(e){const
n="left",s="right",r=this.elementRef.nativeElement;if("top"==e)return
r.scrollTop;if("bottom"==e)return
r.scrollHeight-r.clientHeight-r.scrollTop;const
o=this.dir&&"rtl"==this.dir.value;return"start"==e?e=o?s:n:"end"==e&&(e=o?n:s),o&&2==bl()?e==n?r.scrollWidth-r.clientWidth-r.scrollLeft:r.scrollLeft:o&&1==bl()?e==n?r.scrollLeft+r.scrollWidth-r.clientWidth:-r.scrollLeft:e==n?r.scrollLeft:r.scrollWidth-r.clientWidth-r.scrollLeft}}return
t.\u0275fac=functi
on(e){return
new(e||t)(D(De),D(CT),D(nt),D(gT,8))},t.\u0275dir=le({type:t,selectors:[["","cdk-scrollable",""],["","cdkScrollable",""]]}),t})(),fV=(()=>{class
t{constructor(e,n,s){this._platform=e,this._change=new
ct,this._changeListener=r=>{this._change.next(r)},this._document=s,n.runOutsideAngular(()=>{if(e.isBrowser){const
r=this._getWindow();r.addEventListener("resize",this._changeListener),r.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:n,height
:s}=this.getViewportSize();return{top:e.top,left:e.left,bottom:e.top+s,right:e.left+n,height:s,width:n}}getViewportScrollPosition(){if(!this._platform.isBrowser)return{top:0,left:0};const
e=this._document,n=this._getWindow(),s=e.documentElement,r=s.getBoundingClientRect();return{top:-r.top||e.body.scrollTop||n.scrollY||s.scrollTop||0,left:-r.left||e.body.scrollLeft||n.scrollX||s.scrollLeft||0}}change(e=20){return
e>0?this._change.pipe(jf(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)(K(mT),K(nt),K(Xt,8))},t.\u0275prov=X({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();const
_V="undefined"!=typeof requestAnimationFrame?O5:V5;let Po=(()=>{class t
extends
yT{constructor(e,n,s,r,o,u,h){super(e,u,s,o),this.elementRef=e,this._changeDetectorRef=n,this._scrollSt
rategy=r,this._detachedSubject=new ct,this._renderedRangeSubject=new
ct,this._orientation="vertical",this._appendOnly=!1,this.scrolledIndexChange=new
Je(b=>this._scrollStrategy.scrolledIndexChange.subscribe(y=>Promise.resolve().then(()=>this.ngZone.run(()=>b.next(y))))),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=Et.EMPTY,this._viewportChanges=h.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
x5(t){return null!=t&&"false"!=`${t}`}(e)}ngOnInit()
{super.ngOnInit(),this.ngZone.runOutsideAngular(()=>Promise.resolve().then(()=>{this._measureViewportSize(),this._scrollStrategy.attach(this),this.elementScrolled().pipe(Ju(null),jf(0,_V)).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($f(this._detachedSubject)).subscribe(n=>{const
s=n.length;s!==this._dataLength&&(this._dataLength=s,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._c
alculateSpacerSize(),this._markChangeDetectionNeeded())}setRenderedRange(e){(function
gV(t,i){return
t.start==i.start&&t.end==i.end})(this._renderedRange,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,n="to-start"){const
r="horizontal"==this.orientation,o=r?"X":"Y";let
h=`translate${o}(${Number((r&&this.dir&&"rtl"==this.dir.value?-1:1)*e)}px)`;this._renderedContentOffset=e=this.appendOnly&&"to-start"===n?0:e,"to-end"===n&&(h+=`
translate${o}(-100%)`,this._renderedContentOffsetNeedsRewrite=!0),this._renderedContentTransform!=h&&(this._renderedContentTransform=h,this._markChangeDetectionNeeded(()=>{this._renderedContentOffsetNeedsRewrite?(this._renderedContentOffset-=this.measureRen
deredContentSize(),this._renderedContentOffsetNeedsRewrite=!1,this.setRenderedContentOffset(this._renderedContentOffset)):this._scrollStrategy.onRenderedOffsetChanged()}))}scrollToOffset(e,n="auto"){const
s={behavior:n};"horizontal"===this.orientation?s.start=e:s.top=e,this.scrollTo(s)}scrollToIndex(e,n="auto"){this._scrollStrategy.scrollToIndex(e,n)}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 n of
e)n()}_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)(D(De),D(rt),D(nt),D(vT,8),D(gT,8),D(CT),D(fV))},t.\u0275cmp=z({type:t,selectors:[["cdk-virtual-scroll-viewport"]],viewQuery:function(e,n){if(1&e&&W(cV,7),2&e){let
s;V(s=B())&&(n._contentWrapper=s.first)}},hostAttrs:[1,"cdk-virtual-scroll-viewport"],hostVars:4,hostBindings:function(e,n){2&e&&si("cdk-vi
rtual-scroll-orientation-horizontal","horizontal"===n.orientation)("cdk-virtual-scroll-orientation-vertical","horizontal"!==n.orientation)},inputs:{orientation:"orientation",appendOnly:"appendOnly"},outputs:{scrolledIndexChange:"scrolledIndexChange"},features:[Pe([{provide:yT,useExisting:t}]),ut],ngContentSelectors:uV,decls:4,vars:4,consts:[[1,"cdk-virtual-scroll-content-wrapper"],["contentWrapper",""],[1,"cdk-virtual-scroll-spacer"]],template:function(e,n){1&e&&(Sn(),l(0,"div",0,1),St(2),c(),k(3,"div",2)),2&e&&(a(3),_i("width",n._totalContentWidth)("height",n._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-wrappe
r{min-height:100%}.cdk-virtual-scroll-orientation-horizontal
.cdk-virtual-scroll-content-wrapper>dl:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-horizontal
.cdk-virtual-scroll-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-virtua
l-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-scroll-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
wT(t,i,e){if(!e.getBoundingClientRect)return 0;const
s=e.getBoundingClientRect();return"horizontal"===t?"start"===i?s.left:s.right:"start"===i?s.top:s.bottom}let
Jf=(()=>{class
t{constructor(e,n,s,r,o,u){this._viewContainerRef=e,this._template=n,this._differs=s,this._viewRepeater=r,this._viewport=o,this.viewChange=new
ct,this._dataSourceChanges=new
ct,this.dataStream=this._dataSourceChanges.pipe(Ju(null),function Q5(){return
t=>t.lift(new
J5)}(),qi(([h,b])=>this._changeDataSource(h,b)),Um(1)),this._differ=null,this._needsUpdate=!1,this._destroyed=new
ct,this.dataStream.subscribe(h=>{this._dat
a=h,this._onRenderedDataChange()}),this._viewport.renderedRangeStream.pipe($f(this._destroyed)).subscribe(h=>{this._renderedRange=h,this.viewChange.observers.length&&u.run(()=>this.viewChange.next(this._renderedRange)),this._onRenderedDataChange()}),this._viewport.attach(this)}get
cdkVirtualForOf(){return this._cdkVirtualForOf}set
cdkVirtualForOf(e){this._cdkVirtualForOf=e,function oV(t){return
t&&"function"==typeof
t.connect}(e)?this._dataSourceChanges.next(e):this._dataSourceChanges.next(new
aV(is(e)?e:Array.from(e||[])))}get cdkVirtualForTrackBy(){return
this._cdkVirtualForTrackBy}set
cdkVirtualForTrackBy(e){this._needsUpdate=!0,this._cdkVirtualForTrackBy=e?(n,s)=>e(n+(this._renderedRange?this._renderedRange.start:0),s):void
0}set cdkVirtualForTemplate(e){e&&(this._needsUpdate=!0,this._template=e)}get
cdkVirtualForTemplateCacheSize(){return this._viewRepeater.viewCacheSize}set
cdkVirtualForTemplateCacheSize(e){this._viewRepeater.viewCacheSize=Ku(e)}measureRangeSize(e,n){if(e.star
t>=e.end)return 0;const s=e.start-this._renderedRange.start,r=e.end-e.start;let
o,u;for(let h=0;h<r;h++){const
b=this._viewContainerRef.get(h+s);if(b&&b.rootNodes.length){o=u=b.rootNodes[0];break}}for(let
h=r-1;h>-1;h--){const
b=this._viewContainerRef.get(h+s);if(b&&b.rootNodes.length){u=b.rootNodes[b.rootNodes.length-1];break}}return
o&&u?wT(n,"end",u)-wT(n,"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.complete(),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,n)=>this.cdkVirtualForTrackBy?th
is.cdkVirtualForTrackBy(e,n):n)),this._needsUpdate=!0)}_changeDataSource(e,n){return
e&&e.disconnect(this),this._needsUpdate=!0,n?n.connect(this):oe()}_updateContext(){const
e=this._data.length;let n=this._viewContainerRef.length;for(;n--;){const
s=this._viewContainerRef.get(n);s.context.index=this._renderedRange.start+n,s.context.count=e,this._updateComputedContextProperties(s.context),s.detectChanges()}}_applyChanges(e){this._viewRepeater.applyChanges(e,this._viewContainerRef,(r,o,u)=>this._getEmbeddedViewArgs(r,u),r=>r.item),e.forEachIdentityChange(r=>{this._viewContainerRef.get(r.currentIndex).context.$implicit=r.item});const
n=this._data.length;let s=this._viewContainerRef.length;for(;s--;){const
r=this._viewContainerRef.get(s);r.context.index=this._renderedRange.start+s,r.context.count=n,this._updateComputedContextProperties(r.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,n)
{return{templateRef:this._template,context:{$implicit:e.item,cdkVirtualForOf:this._cdkVirtualForOf,index:-1,count:-1,first:!1,last:!1,odd:!1,even:!1},index:n}}}return
t.\u0275fac=function(e){return
new(e||t)(D(vi),D(bi),D($a),D(bT),D(Po,4),D(nt))},t.\u0275dir=le({type:t,selectors:[["","cdkVirtualFor","","cdkVirtualForOf",""]],inputs:{cdkVirtualForOf:"cdkVirtualForOf",cdkVirtualForTrackBy:"cdkVirtualForTrackBy",cdkVirtualForTemplate:"cdkVirtualForTemplate",cdkVirtualForTemplateCacheSize:"cdkVirtualForTemplateCacheSize"},features:[Pe([{provide:bT,useClass:lV}])]}),t})(),TT=(()=>{class
t{}return t.\u0275fac=function(e){return
new(e||t)},t.\u0275mod=he({type:t}),t.\u0275inj=ue({}),t})(),Fo=(()=>{class t{}return
t.\u0275fac=function(e){return
new(e||t)},t.\u0275mod=he({type:t}),t.\u0275inj=ue({imports:[[_T,TT],_T,TT]}),t})(),Kt=(()=>{class
t{constructor(e,n,s){this.el=e,this.zone=n,this.config=s,this.escape=!0,this._tooltipOptions={tooltipPosition:"right",tooltipEvent:"hover",appendTo:"b
ody",tooltipZIndex:"auto",escape:!0,positionTop:0,positionLeft:0}}get
disabled(){return this._disabled}set
disabled(e){this._disabled=e,this.deactivate()}ngAfterViewInit(){this.zone.runOutsideAngular(()=>{if("hover"===this.getOption("tooltipEvent"))this.mouseEnterListener=this.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);else
if("focus"===this.getOption("tooltipEvent")){this.focusListener=this.onFocus.bind(this),this.blurListener=this.onBlur.bind(this);let
e=this.getTarget(this.el.nativeElement);e.addEventListener("focus",this.focusListener),e.addEventListener("blur",this.blurListener)}})}ngOnChanges(e){e.tooltipPosition&&this.setOption({tooltipPosition:e.tooltipPosition.currentValue}),e.tool
tipEvent&&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.align()):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.createElement("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")?R.appendChild(this.container,this.el.nativeElement):R.appendChild(this.container,this.getOption("appendTo")),this.container.style.display="inline-block"}show(){!this.getOption("tooltipLabel")||this.getOption("disabled")||(this.create(),this.align(),R.fadeIn(this.container,250),"auto"===this.getOption("tooltipZIndex")?dt.set("tooltip",this.container,this.config.zIndex.tool
tip):this.container.style.zIndex=this.getOption("tooltipZIndex"),this.bindDocumentResizeListener(),this.bindScrollListener())}hide(){"auto"===this.getOption("tooltipZIndex")&&dt.clear(this.container),this.remove()}updateText(){this.getOption("escape")?(this.tooltipText.innerHTML="",this.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.isOutOfBound
s()&&(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+R.getWindowScrollLeft(),top:e.top+R.getWindowScrollTop()}}return{left:0,top:0}}alignRight(){this.preAlign("right");let
e=this.getHostOffset(),n=e.left+R.getOuterWidth(this.el.nativeElement),s=e.top+(R.getOuterHeight(this.el.nativeElement)-R.getOuterHeight(this.container))/2;this.container.style.left=n+this.getOption("positionLeft")+"px",this.container.style.top=s+this.getOption("positionTop")+"px"}alignLeft(){this.preAlign("left");let
e=this.getHostOffset(),n=e.left-R.getOuterWidth(this.container),s=e.top+(R.getOuterHeight(this.el.nativeElement)-R.getOuterHeight(this.container))/2;this.container.style.left=n+this.getOption("positionLeft")+"px",this.container.style.top=s+this.getOption("positionTop")+"px"}alignTop(){
this.preAlign("top");let
e=this.getHostOffset(),n=e.left+(R.getOuterWidth(this.el.nativeElement)-R.getOuterWidth(this.container))/2,s=e.top-R.getOuterHeight(this.container);this.container.style.left=n+this.getOption("positionLeft")+"px",this.container.style.top=s+this.getOption("positionTop")+"px"}alignBottom(){this.preAlign("bottom");let
e=this.getHostOffset(),n=e.left+(R.getOuterWidth(this.el.nativeElement)-R.getOuterWidth(this.container))/2,s=e.top+R.getOuterHeight(this.el.nativeElement);this.container.style.left=n+this.getOption("positionLeft")+"px",this.container.style.top=s+this.getOption("positionTop")+"px"}setOption(e){this._tooltipOptions=Object.assign(Object.assign({},this._tooltipOptions),e)}getOption(e){return
this._tooltipOptions[e]}getTarget(e){return
R.hasClass(e,"p-inputwrapper")?R.findSingle(e,"input"):e}preAlign(e){this.container.style.left="-999px",this.container.style.top="-999px";let
n="p-tooltip p-component p-tooltip-"+e;this.container.className=this.getOption(
"tooltipStyleClass")?n+"
"+this.getOption("tooltipStyleClass"):n}isOutOfBounds(){let
e=this.container.getBoundingClientRect(),n=e.top,s=e.left,r=R.getOuterWidth(this.container),o=R.getOuterHeight(this.container),u=R.getViewport();return
s+r>u.width||s<0||n<0||n+o>u.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
Qs(this.el.nativeElement,()=>{this.container&&this.hide()})),this.scrollHandler.bindScrollListener()}unbindScrollListener(){this.scrollHandler&&this.scrollHandler.unbindScrollListener()}unbindEvents(){if("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);else
if("focus"===this.getOption("tooltipEvent")){let
e=this.getTarget(this.el.nativeElement);e.removeEventListener("focus",this.focusListener),e.removeEventListener("blur",this.blurListener)}this.unbindDocumentResizeListener()}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):R.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.clea
rShowTimeout(),this.clearHideTimeout()}ngOnDestroy(){this.unbindEvents(),this.container&&dt.clear(this.container),this.remove(),this.scrollHandler&&(this.scrollHandler.destroy(),this.scrollHandler=null)}}return
t.\u0275fac=function(e){return
new(e||t)(D(De),D(nt),D(zn))},t.\u0275dir=le({type:t,selectors:[["","pTooltip",""]],hostAttrs:[1,"p-element"],inputs:{tooltipPosition:"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:[fn]}),t})(),jn=(()=>{class
t{}return t.\u0275fac=function(e){return
new(e||t)},t.\u0275mod=he({type:t}),t.\u0275inj=ue({imports:[[Fe]]}),t})();function
bV(t,i){if(1&t&&(l(0,"span"),g(1),c()),2&t){const
e=d();a(1),S(e.label|
|"empty")}}function vV(t,i){1&t&&Y(0)}const
ST=function(t){return{height:t}},CV=function(t,i){return{"p-dropdown-item":!0,"p-highlight":t,"p-disabled":i}},Yf=function(t){return{$implicit:t}},yV=["container"],wV=["filter"],TV=["in"],SV=["editableInput"];function
xV(t,i){if(1&t&&(de(0),g(1),pe()),2&t){const
e=d(2);a(1),S(e.label||"empty")}}function DV(t,i){1&t&&Y(0)}const
MV=function(t){return{"p-dropdown-label
p-inputtext":!0,"p-dropdown-label-empty":t}};function
kV(t,i){if(1&t&&(l(0,"span",12),_(1,xV,2,1,"ng-container",13),_(2,DV,1,0,"ng-container",14),c()),2&t){const
e=d();p("ngClass",U(9,MV,null==e.label||0===e.label.length))("pTooltip",e.tooltip)("tooltipPosition",e.tooltipPosition)("positionStyle",e.tooltipPositionStyle)("tooltipStyleClass",e.tooltipStyleClass),ie("id",e.labelId),a(1),p("ngIf",!e.selectedItemTemplate),a(1),p("ngTemplateOutlet",e.selectedItemTemplate)("ngTemplateOutletContext",U(11,Yf,e.selectedOption))}}const
IV=function(t){return{"p-dropdown-label p-inputtext p
-placeholder":!0,"p-dropdown-label-empty":t}};function
EV(t,i){if(1&t&&(l(0,"span",15),g(1),c()),2&t){const
e=d();p("ngClass",U(2,IV,null==e.placeholder||0===e.placeholder.length)),a(1),S(e.placeholder||"empty")}}function
RV(t,i){if(1&t){const
e=I();l(0,"input",16,17),C("click",function(){return
v(e),d().onEditableInputClick()})("input",function(s){return
v(e),d().onEditableInputChange(s)})("focus",function(s){return
v(e),d().onEditableInputFocus(s)})("blur",function(s){return
v(e),d().onInputBlur(s)}),c()}if(2&t){const
e=d();p("disabled",e.disabled),ie("maxlength",e.maxlength)("placeholder",e.placeholder)("aria-expanded",e.overlayVisible)}}function
LV(t,i){if(1&t){const
e=I();l(0,"i",18),C("click",function(s){return
v(e),d().clear(s)}),c()}}function OV(t,i){1&t&&Y(0)}function
AV(t,i){if(1&t){const
e=I();l(0,"div",26)(1,"div",27),C("click",function(s){return
s.stopPropagation()}),l(2,"input",28,29),C("keydown.enter",function(s){return
s.preventDefault()})("keydown",function(s){retur
n v(e),d(2).onKeydown(s,!1)})("input",function(s){return
v(e),d(2).onFilterInputChange(s)}),c(),k(4,"span",30),c()()}if(2&t){const
e=d(2);a(2),p("value",e.filterValue||""),ie("placeholder",e.filterPlaceholder)("aria-label",e.ariaFilterLabel)("aria-activedescendant",e.overlayVisible?"p-highlighted-option":e.labelId)}}function
PV(t,i){if(1&t&&(l(0,"span"),g(1),c()),2&t){const
e=d().$implicit,n=d(3);a(1),S(n.getOptionGroupLabel(e)||"empty")}}function
FV(t,i){1&t&&Y(0)}function NV(t,i){1&t&&Y(0)}const
xT=function(t,i){return{$implicit:t,selectedOption:i}};function
VV(t,i){if(1&t&&(l(0,"li",32),_(1,PV,2,1,"span",13),_(2,FV,1,0,"ng-container",14),c(),_(3,NV,1,0,"ng-container",14)),2&t){const
e=i.$implicit;d(2);const
n=F(8),s=d();a(1),p("ngIf",!s.groupTemplate),a(1),p("ngTemplateOutlet",s.groupTemplate)("ngTemplateOutletContext",U(5,Yf,e)),a(1),p("ngTemplateOutlet",n)("ngTemplateOutletContext",Ge(7,xT,s.getOptionGroupChildren(e),s.selectedOption))}}function
BV(t,i){if(1&t&&(de(0),_(1,VV,4,
10,"ng-template",31),pe()),2&t){const
e=d(2);a(1),p("ngForOf",e.optionsToDisplay)}}function
HV(t,i){1&t&&Y(0)}function
qV(t,i){if(1&t&&(de(0),_(1,HV,1,0,"ng-container",14),pe()),2&t){d();const
e=F(8),n=d();a(1),p("ngTemplateOutlet",e)("ngTemplateOutletContext",Ge(2,xT,n.optionsToDisplay,n.selectedOption))}}function
GV(t,i){if(1&t){const
e=I();l(0,"p-dropdownItem",35),C("onClick",function(s){return
v(e),d(4).onItemClick(s)}),c()}if(2&t){const
e=i.$implicit,n=d(2).selectedOption,s=d(2);p("option",e)("selected",n==e)("label",s.getOptionLabel(e))("disabled",s.isOptionDisabled(e))("template",s.itemTemplate)}}function
UV(t,i){if(1&t&&(de(0),_(1,GV,1,5,"ng-template",31),pe()),2&t){const
e=d().$implicit;a(1),p("ngForOf",e)}}function zV(t,i){if(1&t){const
e=I();de(0),l(1,"p-dropdownItem",35),C("onClick",function(s){return
v(e),d(5).onItemClick(s)}),c(),pe()}if(2&t){const
e=i.$implicit,n=d(3).selectedOption,s=d(2);a(1),p("option",e)("selected",n==e)("label",s.getOptionLabel(e))("disabled",s.i
sOptionDisabled(e))("template",s.itemTemplate)}}function
jV(t,i){if(1&t){const
e=I();l(0,"cdk-virtual-scroll-viewport",37,38),C("scrolledIndexChange",function(){return
v(e),d(4).scrollToSelectedVirtualScrollElement()}),_(2,zV,2,5,"ng-container",39),c()}if(2&t){const
e=d(2).$implicit,n=d(2);p("ngStyle",U(3,ST,n.scrollHeight))("itemSize",n.itemSize),a(2),p("cdkVirtualForOf",e)}}function
$V(t,i){if(1&t&&_(0,jV,3,5,"cdk-virtual-scroll-viewport",36),2&t){const
e=d(3);p("ngIf",e.virtualScroll&&e.optionsToDisplay&&e.optionsToDisplay.length)}}function
WV(t,i){if(1&t&&(_(0,UV,2,1,"ng-container",33),_(1,$V,1,1,"ng-template",null,34,we)),2&t){const
e=F(2);p("ngIf",!d(2).virtualScroll)("ngIfElse",e)}}function
KV(t,i){if(1&t&&(de(0),g(1),pe()),2&t){const e=d(3);a(1),T("
",e.emptyFilterMessageLabel," ")}}function
QV(t,i){1&t&&Y(0,null,41)}function
JV(t,i){if(1&t&&(l(0,"li",40),_(1,KV,2,1,"ng-container",33),_(2,QV,2,0,"ng-container",20),c()),2&t){const
e=d(2);a(1),p("ngIf",!e.emptyFilterTemplate&&
!e.emptyTemplate)("ngIfElse",e.emptyFilter),a(1),p("ngTemplateOutlet",e.emptyFilterTemplate||e.emptyTemplate)}}function
YV(t,i){if(1&t&&(de(0),g(1),pe()),2&t){const e=d(3);a(1),T("
",e.emptyMessageLabel," ")}}function
ZV(t,i){1&t&&Y(0,null,42)}function
XV(t,i){if(1&t&&(l(0,"li",40),_(1,YV,2,1,"ng-container",33),_(2,ZV,2,0,"ng-container",20),c()),2&t){const
e=d(2);a(1),p("ngIf",!e.emptyTemplate)("ngIfElse",e.empty),a(1),p("ngTemplateOutlet",e.emptyTemplate)}}function
e6(t,i){1&t&&Y(0)}const
t6=function(t,i){return{showTransitionParams:t,hideTransitionParams:i}},n6=function(t){return{value:"visible",params:t}},i6=function(t){return{"p-dropdown-virtualscroll":t}};function
s6(t,i){if(1&t){const
e=I();l(0,"div",19),C("click",function(s){return
v(e),d().onOverlayClick(s)})("(a)overlayAnimation.start",function(s){return
v(e),d().onOverlayAnimationStart(s)})("(a)overlayAnimation.start",function(s){return
v(e),d().onOverlayAnimationEnd(s)}),_(1,OV,1,0,"ng-container",20),_(2,AV,5,4,"div",21),l(3,
"div",22)(4,"ul",23),_(5,BV,2,1,"ng-container",13),_(6,qV,2,5,"ng-container",13),_(7,WV,3,2,"ng-template",null,24,we),_(9,JV,3,3,"li",25),_(10,XV,3,3,"li",25),c()(),_(11,e6,1,0,"ng-container",20),c()}if(2&t){const
e=d();me(e.panelStyleClass),p("ngClass","p-dropdown-panel
p-component")("@overlayAnimation",U(19,n6,Ge(16,t6,e.showTransitionOptions,e.hideTransitionOptions)))("ngStyle",e.panelStyle),a(1),p("ngTemplateOutlet",e.headerTemplate),a(1),p("ngIf",e.filter),a(1),_i("max-height",e.virtualScroll?"auto":e.scrollHeight||"auto"),a(1),p("ngClass",U(21,i6,e.virtualScroll)),ie("id",e.listId),a(1),p("ngIf",e.group),a(1),p("ngIf",!e.group),a(3),p("ngIf",e.filterValue&&e.isEmpty()),a(1),p("ngIf",!e.filterValue&&e.isEmpty()),a(1),p("ngTemplateOutlet",e.footerTemplate)}}const
r6=function(t,i,e,n){return{"p-dropdown
p-component":!0,"p-disabled":t,"p-dropdown-open":i,"p-focus":e,"p-dropdown-clearable":n}},o6={provide:dn,useExisting:je(()=>Ot),multi:!0};let
a6=(()=>{class t{constructor(){this.o
nClick=new
H}onOptionClick(e){this.onClick.emit({originalEvent:e,option:this.option})}}return
t.\u0275fac=function(e){return
new(e||t)},t.\u0275cmp=z({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,n){1&e&&(l(0,"li",0),C("click",function(r){return
n.onOptionClick(r)}),_(1,bV,2,1,"span",1),_(2,vV,1,0,"ng-container",2),c()),2&e&&(p("ngStyle",U(8,ST,n.itemSize+"px"))("id",n.selected?"p-highlighted-option":"")("ngClass",Ge(10,CV,n.selected,n.disabled)),ie("aria-label",n.label)("aria-selected",n.selected),a(1),p("ngIf",!n.template),a(1),p("ngTemplateOutlet",n.template)("ngTemplateOutletContext",U(13,Yf,n.option)))},directives:[bt,lt,Le,Q,Rt]
,encapsulation:2}),t})(),Ot=(()=>{class
t{constructor(e,n,s,r,o,u,h){this.el=e,this.renderer=n,this.cd=s,this.zone=r,this.filterService=o,this.config=u,this.overlayService=h,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
H,this.onFilter=new H,this.onFocus=new H,this.onBlur=new H,this.onClick=new
H,this.onShow=new H,this.onHide=new H,this.onClear=new
H,this.onModelChange=()=>{},this.onModelTouched=()=>{},this.viewPortOffsetTop=0,this.id=pl()}get
disabled(){return this._disabled}set
disabled(e){e&&(this.focused=!1,this.overlayVisible&&this.hide()),t
his._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.optionsToDisplay=this._options,this.updateSelectedOption(this.value),this.selectedOption=this.findOption(this.value,this.optionsToDisplay),this.selectedOption||(this.value=null,this.onModelChange(this.value)),this.optionsChanged=!0,this._filterValue&&this._filterValue.length&&this.activateFilt
er()}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(Ft.EMPTY_MESSAGE)}get
emptyFilterMessageLabel(){return
this.emptyFilterMessage||this.config.getTranslation(Ft.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?Z.resolveFieldData(e,this.optionLabel):null!=e.label?e.label:e}getOptionValue(e){return
this.optionValue?Z.resolveFieldData(e,this.optionValue):this.optionLabel||void
0===e.value?e:e.value}isOptionDisabled
(e){return this.optionDisabled?Z.resolveFieldData(e,this.optionDisabled):void
0!==e.disabled&&e.disabled}getOptionGroupLabel(e){return
this.optionGroupLabel?Z.resolveFieldData(e,this.optionGroupLabel):null!=e.label?e.label:e}getOptionGroupChildren(e){return
this.optionGroupChildren?Z.resolveFieldData(e,this.optionGroupChildren):e.items}onItemClick(e){const
n=e.option;this.isOptionDisabled(n)||(this.selectItem(e.originalEvent,n),this.accessibleViewChild.nativeElement.focus()),setTimeout(()=>{this.hide()},150)}selectItem(e,n){this.selectedOption!=n&&(this.selectedOption=n,this.value=this.getOptionValue(n),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))}ngAfterViewChecked(){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
n=this.viewPort.getRenderedRange();this.updateVirtualScrollSelectedIndex(!1),(n.start>this.virtualScrollSelectedIndex||n.end<this.virtualScrollSelectedIndex)&&this.viewPort.scrollToIndex(this.virtualScrollSelectedIndex)}R.findSingle(this.overlay,"li.p-highlight")&&R.scrollInView(this.itemsWrapper,R.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}updateSelectedOption(e){this.selectedOption=this.findOption(e,this.optionsToDisplay),this.autoDisplayFirst&&!this.placeholder&&!this.selectedOption&&
this.optionsToDisplay&&this.optionsToDisplay.length&&!this.editable&&(this.selectedOption=this.group?this.optionsToDisplay[0].items[0]: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
R.hasClass(e.target,"p-dropdown-clear-icon")||e.target.isSameNode(this.accessibleViewChild.nativeElement)||this.editableInputViewChild&&e.target.isSameNode(this.editableInputViewChild.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.cd.markForCheck()}onOverlayAnimationStart(e){switch(e.toState){case"visible":if(this.overlay=e.element,this.itemsWrapper=R.findSingle(this.overlay,this.virtualScroll?".cdk-virtual-scroll-viewport":".p-dropdown-items-wrapper"),this.appendOverlay(),this.autoZIndex&&dt.set("overlay",this.overlay,this.baseZIndex+this.config.zIndex.overlay),this.alignOverlay(),this.bindDocumentClickListener(),this.bindDocumentResizeListener(),this.bindScrollListener(),this.options
&&this.options.length&&!this.virtualScroll){let
s=R.findSingle(this.itemsWrapper,".p-dropdown-item.p-highlight");s&&s.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&&dt.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.viewPortOffsetTop=0),this.virtualScrollSelectedIndex=this.findOptionIndex(this.getOptionValue(this.selectedOption),this.optionsToDisplay))}appen
dOverlay(){this.appendTo&&("body"===this.appendTo?document.body.appendChild(this.overlay):R.appendChild(this.overlay,this.appendTo),this.overlay.style.minWidth||(this.overlay.style.minWidth=R.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?R.absolutePosition(this.overlay,this.containerViewChild.nativeElement):R.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.preventModelTouched=!1}findPrevEnabledOption(e){let
n;if(this.optionsToDisplay&&this.optionsToDisplay.length){for(let
s=e-1;0<=s;s--){let r=this.op
tionsToDisplay[s];if(!this.isOptionDisabled(r)){n=r;break}}if(!n)for(let
s=this.optionsToDisplay.length-1;s>=e;s--){let
r=this.optionsToDisplay[s];if(!this.isOptionDisabled(r)){n=r;break}}}return
n}findNextEnabledOption(e){let
n;if(this.optionsToDisplay&&this.optionsToDisplay.length){for(let
s=e+1;s<this.optionsToDisplay.length;s++){let
r=this.optionsToDisplay[s];if(!this.isOptionDisabled(r)){n=r;break}}if(!n)for(let
s=0;s<e;s++){let
r=this.optionsToDisplay[s];if(!this.isOptionDisabled(r)){n=r;break}}}return
n}onKeydown(e,n){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
s=this.selectedOption?this.findOptionGroupIndex(this.getOptionValue(this.selectedOption),this.optionsToDisplay):-1;if(-1!==s){let
r=s.itemIndex+1;r<this.getOptionGroupChildren(this.optionsToDisplay[s.groupIndex]).length?(this.selectItem(e,this.getOptionGroupChildren(this.optionsToDisplay[s.gro
upIndex])[r]),this.selectedOptionUpdated=!0):this.optionsToDisplay[s.groupIndex+1]&&(this.selectItem(e,this.getOptionGroupChildren(this.optionsToDisplay[s.groupIndex+1])[0]),this.selectedOptionUpdated=!0)}else
this.optionsToDisplay&&this.optionsToDisplay.length>0&&this.selectItem(e,this.getOptionGroupChildren(this.optionsToDisplay[0])[0])}else{let
s=this.selectedOption?this.findOptionIndex(this.getOptionValue(this.selectedOption),this.optionsToDisplay):-1,r=this.findNextEnabledOption(s);r&&(this.selectItem(e,r),this.selectedOptionUpdated=!0)}e.preventDefault();break;case
38:if(this.group){let
s=this.selectedOption?this.findOptionGroupIndex(this.getOptionValue(this.selectedOption),this.optionsToDisplay):-1;if(-1!==s){let
r=s.itemIndex-1;if(r>=0)this.selectItem(e,this.getOptionGroupChildren(this.optionsToDisplay[s.groupIndex])[r]),this.selectedOptionUpdated=!0;else
if(r<0){let
o=this.optionsToDisplay[s.groupIndex-1];o&&(this.selectItem(e,this.getOptionGroupChildren(o)[this.getOptionGr
oupChildren(o).length-1]),this.selectedOptionUpdated=!0)}}}else{let
s=this.selectedOption?this.findOptionIndex(this.getOptionValue(this.selectedOption),this.optionsToDisplay):-1,r=this.findPrevEnabledOption(s);r&&(this.selectItem(e,r),this.selectedOptionUpdated=!0)}e.preventDefault();break;case
32:n&&(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:n&&!e.metaKey&&this.search(e)}}search(e){this.searchTimeout&&clearTimeout(this.searchTimeout);const
n=e.key;let
s;if(this.previousSearchChar=this.currentSearchChar,this.currentSearchChar=n,this.searchValue=this.previousSearchChar===this.currentSearchChar?this.currentSearchChar:this.searchValue?this.searchValue+n:n,this.group){let
r=this.selectedOption?this.findOptionGroupIndex(this.getOptionValue(this.selectedO
ption),this.optionsToDisplay):{groupIndex:0,itemIndex:0};s=this.searchOptionWithinGroup(r)}else{let
r=this.selectedOption?this.findOptionIndex(this.getOptionValue(this.selectedOption),this.optionsToDisplay):-1;s=this.searchOption(++r)}s&&!this.isOptionDisabled(s)&&(this.selectItem(e,s),this.selectedOptionUpdated=!0),this.searchTimeout=setTimeout(()=>{this.searchValue=null},250)}searchOption(e){let
n;return
this.searchValue&&(n=this.searchOptionInRange(e,this.optionsToDisplay.length),n||(n=this.searchOptionInRange(0,e))),n}searchOptionInRange(e,n){for(let
s=e;s<n;s++){let
r=this.optionsToDisplay[s];if(this.getOptionLabel(r).toLocaleLowerCase(this.filterLocale).startsWith(this.searchValue.toLocaleLowerCase(this.filterLocale))&&!this.isOptionDisabled(r))return
r}return null}searchOptionWithinGroup(e){if(this.searchValue){for(let
s=e.groupIndex;s<this.optionsToDisplay.length;s++)for(let
r=e.groupIndex===s?e.itemIndex+1:0;r<this.getOptionGroupChildren(this.optionsToDisplay[s]).length;r++
){let
o=this.getOptionGroupChildren(this.optionsToDisplay[s])[r];if(this.getOptionLabel(o).toLocaleLowerCase(this.filterLocale).startsWith(this.searchValue.toLocaleLowerCase(this.filterLocale))&&!this.isOptionDisabled(o))return
o}for(let s=0;s<=e.groupIndex;s++)for(let
r=0;r<(e.groupIndex===s?e.itemIndex:this.getOptionGroupChildren(this.optionsToDisplay[s]).length);r++){let
o=this.getOptionGroupChildren(this.optionsToDisplay[s])[r];if(this.getOptionLabel(o).toLocaleLowerCase(this.filterLocale).startsWith(this.searchValue.toLocaleLowerCase(this.filterLocale))&&!this.isOptionDisabled(o))return
o}}return null}findOptionIndex(e,n){let s=-1;if(n)for(let
r=0;r<n.length;r++)if(null==e&&null==this.getOptionValue(n[r])||Z.equals(e,this.getOptionValue(n[r]),this.dataKey)){s=r;break}return
s}findOptionGroupIndex(e,n){let s,r;if(n)for(let
o=0;o<n.length&&(s=o,r=this.findOptionIndex(e,this.getOptionGroupChildren(n[o])),-1===r);o++);return-1!==r?{groupIndex:s,itemIndex:r}:-1}findOption(e,n,s){if(
this.group&&!s){let r;if(n&&n.length)for(let o of
n)if(r=this.findOption(e,this.getOptionGroupChildren(o),!0),r)break;return r}{let
r=this.findOptionIndex(e,n);return-1!=r?n[r]:null}}onFilterInputChange(e){let
n=e.target.value;n&&n.length?(this._filterValue=n,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
n=[];for(let s of this.options){let
r=this.filterService.filter(this.getOptionGroupChildren(s),e,this.filterValue,this.filterMatchMode,this.filterLocale);r&&r.length&&n.push(Object.assign(Object.assign({},s),{[this.optionGroupChildren]:r}))}this.optionsToDisplay=n}else
this.optionsToDisplay=this.filterService.filter(this.options,e,this.filterValue,this.filterMatchMode,this.filterLocale);this.optionsChanged=!0}}applyFocus(){this.ed
itable?R.findSingle(this.el.nativeElement,".p-dropdown-label.p-inputtext").focus():R.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",n=>{!this.preventDocumentDefault&&this.isOutsideClicked(n)&&(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.documentResizeListener),this.documentResizeListener=null)}onWindowResize(){this.overlayVisible&&!R.isTouchDevice()&&this.hide()}bindScrollList
ener(){this.scrollHandler||(this.scrollHandler=new
Qs(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&&dt.clear(this.overlay),this.restoreOverlayAppend(),this.onOverlayHide()}}return
t.\u0275fac=function(e){return
new(e||t)(D(De),D(gn),D(rt),D(nt),D(hl),D(zn),D(Ks))},t.\u0275cmp=z({type:t,selectors:[["p-dropdown"]],contentQueries:function(e,n,s){if(1&e&&st(s,ne,4
),2&e){let
r;V(r=B())&&(n.templates=r)}},viewQuery:function(e,n){if(1&e&&(W(yV,5),W(wV,5),W(TV,5),W(Po,5),W(SV,5)),2&e){let
s;V(s=B())&&(n.containerViewChild=s.first),V(s=B())&&(n.filterViewChild=s.first),V(s=B())&&(n.accessibleViewChild=s.first),V(s=B())&&(n.viewPort=s.first),V(s=B())&&(n.editableInputViewChild=s.first)}},hostAttrs:[1,"p-element","p-inputwrapper"],hostVars:4,hostBindings:function(e,n){2&e&&si("p-inputwrapper-filled",n.filled)("p-inputwrapper-focus",n.focused||n.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:"inputId",selectId:"selectId",dataKey:"dataKey",filterBy:"filterBy",autofocus:"autofocus",resetFilterOnHide:"resetFilterOnHide",dropdown
Icon:"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",ariaLabel:"ariaLabel",ariaLabelledBy:"ariaLabelledBy",filterMatchMode:"filterMatchMode",maxlength:"maxlength",tooltip:"tooltip",tooltipPosition:"tooltipPosition",tooltipPositionStyle:"tooltipPositionStyle",tooltipStyleClass:"tooltipStyleClass",autofocusFilter:"autofocusFilter",disabled:"disabled",options:"options",filterValue:"filterValue"},outputs:{onChange:"onChange",onFilter:"onFilter",onFocus:"onFocus",onBlur:"onBlur",onClick:"onClick",onShow:
"onShow",onHide:"onHide",onClear:"onClear"},features:[Pe([o6])],decls:12,vars:25,consts:[[3,"ngClass","ngStyle","click"],["container",""],[1,"p-hidden-accessible"],["type","text","readonly","","aria-haspopup","listbox","aria-haspopup","listbox","role","combobox",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-label","dropdown
trigger","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"],["typ
e","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","scrolledIndexChange",4,"ngIf"],[3,"ngStyle","itemSize","scrolledIndexChange"],["viewport","
"],[4,"cdkVirtualFor","cdkVirtualForOf"],[1,"p-dropdown-empty-message"],["emptyFilter",""],["empty",""]],template:function(e,n){1&e&&(l(0,"div",0,1),C("click",function(r){return
n.onMouseclick(r)}),l(2,"div",2)(3,"input",3,4),C("focus",function(r){return
n.onInputFocus(r)})("blur",function(r){return
n.onInputBlur(r)})("keydown",function(r){return
n.onKeydown(r,!0)}),c()(),_(5,kV,3,13,"span",5),_(6,EV,2,4,"span",6),_(7,RV,2,4,"input",7),_(8,LV,1,0,"i",8),l(9,"div",9),k(10,"span",10),c(),_(11,s6,12,23,"div",11),c()),2&e&&(me(n.styleClass),p("ngClass",qn(20,r6,n.disabled,n.overlayVisible,n.focused,n.showClear&&!n.disabled))("ngStyle",n.style),a(3),p("disabled",n.disabled),ie("id",n.inputId)("placeholder",n.placeholder)("aria-label",n.ariaLabel)("aria-expanded",!1)("aria-labelledby",n.ariaLabelledBy)("tabindex",n.tabindex)("autofocus",n.autofocus)("aria-activedescendant",n.overlayVisible?n.labelId:null),a(2),p("ngIf",!n.editable&&null!=n.label),a(1),p("ngIf",!n.editable&&null==n.label),
a(1),p("ngIf",n.editable),a(1),p("ngIf",null!=n.value&&n.showClear&&!n.disabled),a(1),ie("aria-expanded",n.overlayVisible),a(1),p("ngClass",n.dropdownIcon),a(1),p("ngIf",n.overlayVisible))},directives:[a6,Po,Le,lt,Q,Kt,Rt,at,Qf,Jf],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:[wi("overlayAnimation",[Lt(":enter",[it({opacity:0,transform:"scaleY(0.8)"}),kt("{{showTransitionParams}}")]),Lt(":leave",[kt("{{hideTransitionParams}}",it({opacity:0}))])])]},changeDetection:0}),t})(),Zu=(()=>{class
t{}return t.\u0275fac=function(e){return
new(e||t)},t.\u0275mod=he({type:t}),t.\u0275inj=ue({imports:[[Fe,Nt,Fo,jn,pn],Nt,Fo]}),t})(),DT=(()=>{class
t{constructor(e,n,s){this.el=e,this.ngModel=n,this.cd=s}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.\u0275f
ac=function(e){return
new(e||t)(D(De),D(_e,8),D(rt))},t.\u0275dir=le({type:t,selectors:[["","pInputText",""]],hostAttrs:[1,"p-inputtext","p-component","p-element"],hostVars:2,hostBindings:function(e,n){1&e&&C("input",function(r){return
n.onInput(r)}),2&e&&si("p-filled",n.filled)}}),t})(),MT=(()=>{class
t{}return t.\u0275fac=function(e){return
new(e||t)},t.\u0275mod=he({type:t}),t.\u0275inj=ue({imports:[[Fe]]}),t})();const
l6=["input"];function c6(t,i){if(1&t){const
e=I();l(0,"i",6),C("click",function(){return
v(e),d().clear()}),c()}}const kT=function(){return{"p-inputnumber-button
p-inputnumber-button-up":!0}},IT=function(){return{"p-inputnumber-button
p-inputnumber-button-down":!0}};function u6(t,i){if(1&t){const
e=I();l(0,"span",7)(1,"button",8),C("mousedown",function(s){return
v(e),d().onUpButtonMouseDown(s)})("mouseup",function(){return
v(e),d().onUpButtonMouseUp()})("mouseleave",function(){return
v(e),d().onUpButtonMouseLeave()})("keydown",function(s){return
v(e),d().onUpButton
KeyDown(s)})("keyup",function(){return
v(e),d().onUpButtonKeyUp()}),c(),l(2,"button",8),C("mousedown",function(s){return
v(e),d().onDownButtonMouseDown(s)})("mouseup",function(){return
v(e),d().onDownButtonMouseUp()})("mouseleave",function(){return
v(e),d().onDownButtonMouseLeave()})("keydown",function(s){return
v(e),d().onDownButtonKeyDown(s)})("keyup",function(){return
v(e),d().onDownButtonKeyUp()}),c()()}if(2&t){const
e=d();a(1),me(e.incrementButtonClass),p("ngClass",A(10,kT))("icon",e.incrementButtonIcon)("disabled",e.disabled),a(1),me(e.decrementButtonClass),p("ngClass",A(11,IT))("icon",e.decrementButtonIcon)("disabled",e.disabled)}}function
d6(t,i){if(1&t){const
e=I();l(0,"button",8),C("mousedown",function(s){return
v(e),d().onUpButtonMouseDown(s)})("mouseup",function(){return
v(e),d().onUpButtonMouseUp()})("mouseleave",function(){return
v(e),d().onUpButtonMouseLeave()})("keydown",function(s){return
v(e),d().onUpButtonKeyDown(s)})("keyup",function(){return v(e),d().onUpButtonK
eyUp()}),c()}if(2&t){const
e=d();me(e.incrementButtonClass),p("ngClass",A(5,kT))("icon",e.incrementButtonIcon)("disabled",e.disabled)}}function
p6(t,i){if(1&t){const
e=I();l(0,"button",8),C("mousedown",function(s){return
v(e),d().onDownButtonMouseDown(s)})("mouseup",function(){return
v(e),d().onDownButtonMouseUp()})("mouseleave",function(){return
v(e),d().onDownButtonMouseLeave()})("keydown",function(s){return
v(e),d().onDownButtonKeyDown(s)})("keyup",function(){return
v(e),d().onDownButtonKeyUp()}),c()}if(2&t){const
e=d();me(e.decrementButtonClass),p("ngClass",A(5,IT))("icon",e.decrementButtonIcon)("disabled",e.disabled)}}const
h6=function(t,i,e){return{"p-inputnumber
p-component":!0,"p-inputnumber-buttons-stacked":t,"p-inputnumber-buttons-horizontal":i,"p-inputnumber-buttons-vertical":e}},m6={provide:dn,useExisting:je(()=>pt),multi:!0};let
pt=(()=>{class
t{constructor(e,n){this.el=e,this.cd=n,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.showClear=!1,this.onInput=new
H,this.onFocus=new H,this.onBlur=new H,this.onKeyDown=new H,this.onClear=new
H,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","minFractionDigits","maxFractionDigits","prefix","suffix"].some(s=>!!e[s])&&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}}constr
uctParser(){this.numberFormat=new Intl.NumberFormat(this.locale,this.getOptions());const
e=[...new
Intl.NumberFormat(this.locale,{useGrouping:!1}).format(9876543210)].reverse(),n=new
Map(e.map((s,r)=>[s,r]));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=s=>n.get(s)}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 th
is.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 s=new
Intl.NumberFormat(this.locale,this.getOptions()).format(e);return
this.prefix&&(s=this.prefix+s),this.suffix&&(s+=this.suffix),s}return
e.toString()}return""}parseValue(e){let
n=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(n){if("-"===n)return
n;let s=+n;return isNaN(s)?null:s}return null}repeat(e,n,s){if(this.readonly)return;let
r=n||500;this.clearTimer(),this.timer=setTimeout(()=>{this.repeat(e,40,s)},r),this.spin(e,s)}spin(e,n){let
s=this.step*n,r=this.parseValue(this.i
nput.nativeElement.value)||0,o=this.validateValue(r+s);this.maxlength&&this.maxlength<this.formatValue(o).length||(this.updateInput(o,null,"spin",null),this.updateModel(e,o),this.handleOnInput(e,r,o))}clear(){this.value=null,this.onModelChange(this.value),this.onClear.emit()}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()}onDownButtonMouseUp(){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
n=e.target.selectionStart,s=e.target.selectionEnd,r=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(r.charAt(n-1))||e.preventDefault();break;case
39:this.isNumeralChar(r.charAt(n))||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(),n===s){const
u=r.charAt(n-1),{decimalCharIndex:h,decimalCharIndexWithoutPrefix:b}=this.getDecimalCharIndexes(r);if(this.isNumeralChar(u)){const
y=this.getDecimalLength(r);if(this._group.test(u))this._group.lastIndex=0,o=r.slice(0,n-2)+r.slice(n-1);else
if(this._decimal.test(u))this._decimal.la
stIndex=0,y?this.input.nativeElement.setSelectionRange(n-1,n-1):o=r.slice(0,n-1)+r.slice(n);else
if(h>0&&n>h){const
w=this.isDecimalMode()&&(this.minFractionDigits||0)<y?"":"0";o=r.slice(0,n-1)+w+r.slice(n)}else
1===b?(o=r.slice(0,n-1)+"0"+r.slice(n),o=this.parseValue(o)>0?o:""):o=r.slice(0,n-1)+r.slice(n)}this.updateValue(e,o,null,"delete-single")}else
o=this.deleteRange(r,n,s),this.updateValue(e,o,null,"delete-range");break;case
46:if(e.preventDefault(),n===s){const
u=r.charAt(n),{decimalCharIndex:h,decimalCharIndexWithoutPrefix:b}=this.getDecimalCharIndexes(r);if(this.isNumeralChar(u)){const
y=this.getDecimalLength(r);if(this._group.test(u))this._group.lastIndex=0,o=r.slice(0,n)+r.slice(n+2);else
if(this._decimal.test(u))this._decimal.lastIndex=0,y?this.input.nativeElement.setSelectionRange(n+1,n+1):o=r.slice(0,n)+r.slice(n+1);else
if(h>0&&n>h){const
w=this.isDecimalMode()&&(this.minFractionDigits||0)<y?"":"0";o=r.slice(0,n)+w+r.slice(n+1)}else
1===b?(o=r.slice(0,n)+"0"+r.slice(n
+1),o=this.parseValue(o)>0?o:""):o=r.slice(0,n)+r.slice(n+1)}this.updateValue(e,o,null,"delete-back-single")}else
o=this.deleteRange(r,n,s),this.updateValue(e,o,null,"delete-range")}this.onKeyDown.emit(e)}onInputKeyPress(e){if(this.readonly)return;e.preventDefault();let
n=e.which||e.keyCode,s=String.fromCharCode(n);const
r=this.isDecimalSign(s),o=this.isMinusSign(s);(48<=n&&n<=57||o||r)&&this.insert(e,s,{isDecimalSign:r,isMinusSign:o})}onPaste(e){if(!this.disabled&&!this.readonly){e.preventDefault();let
n=(e.clipboardData||window.clipboardData).getData("Text");if(n){let
s=this.parseValue(n);null!=s&&this.insert(e,s.toString())}}}allowMinusSign(){return
null==this.min||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
n=e.search(this._decimal);this._decimal.lastIndex=0;const r=e.repl
ace(this._prefix,"").trim().replace(/\s/g,"").replace(this._currency,"").search(this._decimal);return
this._decimal.lastIndex=0,{decimalCharIndex:n,decimalCharIndexWithoutPrefix:r}}getCharIndexes(e){const
n=e.search(this._decimal);this._decimal.lastIndex=0;const
s=e.search(this._minusSign);this._minusSign.lastIndex=0;const
r=e.search(this._suffix);this._suffix.lastIndex=0;const o=e.search(this._currency);return
this._currency.lastIndex=0,{decimalCharIndex:n,minusCharIndex:s,suffixCharIndex:r,currencyCharIndex:o}}insert(e,n,s={isDecimalSign:!1,isMinusSign:!1}){const
r=n.search(this._minusSign);if(this._minusSign.lastIndex=0,!this.allowMinusSign()&&-1!==r)return;let
o=this.input.nativeElement.selectionStart,u=this.input.nativeElement.selectionEnd,h=this.input.nativeElement.value.trim();const{decimalCharIndex:b,minusCharIndex:y,suffixCharIndex:w,currencyCharIndex:M}=this.getCharIndexes(h);let
E;if(s.isMinusSign)0===o&&(E=h,(-1===y||0!==u)&&(E=this.insertText(h,n,0,u)),this.updateValue(
e,E,n,"insert"));else
if(s.isDecimalSign)b>0&&o===b?this.updateValue(e,h,n,"insert"):(b>o&&b<u||-1===b&&this.maxFractionDigits)&&(E=this.insertText(h,n,o,u),this.updateValue(e,E,n,"insert"));else{const
L=this.numberFormat.resolvedOptions().maximumFractionDigits,O=o!==u?"range-insert":"insert";if(b>0&&o>b){if(o+n.length-(b+1)<=L){const
N=M>=o?M-1:w>=o?w:h.length;E=h.slice(0,o)+n+h.slice(o+n.length,N)+h.slice(N),this.updateValue(e,E,n,O)}}else
E=this.insertText(h,n,o,u),this.updateValue(e,E,n,O)}}insertText(e,n,s,r){if(2===("."===n?n:n.split(".")).length){const
u=e.slice(s,r).search(this._decimal);return
this._decimal.lastIndex=0,u>0?e.slice(0,s)+this.formatValue(n)+e.slice(r):e||this.formatValue(n)}return
r-s===e.length?this.formatValue(n):0===s?n+e.slice(r):r===e.length?e.slice(0,s)+n:e.slice(0,s)+n+e.slice(r)}deleteRange(e,n,s){let
r;return
r=s-n===e.length?"":0===n?e.slice(s):s===e.length?e.slice(0,n):e.slice(0,n)+e.slice(s),r}initCursor(){let
e=this.input.nativeElement.selectionS
tart,n=this.input.nativeElement.value,s=n.length,r=null,o=(this.prefixChar||"").length;n=n.replace(this._prefix,""),e-=o;let
u=n.charAt(e);if(this.isNumeralChar(u))return e+o;let
h=e-1;for(;h>=0;){if(u=n.charAt(h),this.isNumeralChar(u)){r=h+o;break}h--}if(null!==r)this.input.nativeElement.setSelectionRange(r+1,r+1);else{for(h=e;h<s;){if(u=n.charAt(h),this.isNumeralChar(u)){r=h+o;break}h++}null!==r&&this.input.nativeElement.setSelectionRange(r,r)}return
r||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))}resetRegex(){this._numeral.lastIndex=0,this._decimal.lastIndex=0,this._group.lastIndex=0,this._minusSign.lastIndex=0}updateValue(e,n,s,r){let
o=this.input.nativeElement.value,u=null;null!=n&&(u=this.parseValue(n),u=u||this.allowEmpty?u:0,this.updateInput(u,s,r,n),this.handleOnInput(e,o,u))}handleOnInput(e,n,s){this.isValueChange
d(n,s)&&this.onInput.emit({originalEvent:e,value:s})}isValueChanged(e,n){return
null===n&&null!==e||null!=n&&n!==("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,n,s,r){n=n||"";let
o=this.input.nativeElement.value,u=this.formatValue(e),h=o.length;if(u!==r&&(u=this.concatValues(u,r)),0===h){this.input.nativeElement.value=u,this.input.nativeElement.setSelectionRange(0,0);const
y=this.initCursor()+n.length;this.input.nativeElement.setSelectionRange(y,y)}else{let
b=this.input.nativeElement.selectionStart,y=this.input.nativeElement.selectionEnd;if(this.maxlength&&this.maxlength<u.length)return;this.input.nativeElement.value=u;let
w=u.length;if("range-insert"===s){const
M=this.parseValue((o||"").slice(0,b)),L=(null!==M?M.toString():"").split("").join(`(${this.groupChar})?`),O=new
RegExp(L,"g");O.test(u);const
N=n.split("").join(`(${this.groupChar})?`),G=new RegExp(
N,"g");G.test(u.slice(O.lastIndex)),y=O.lastIndex+G.lastIndex,this.input.nativeElement.setSelectionRange(y,y)}else
if(w===h)"insert"===s||"delete-back-single"===s?this.input.nativeElement.setSelectionRange(y+1,y+1):"delete-single"===s?this.input.nativeElement.setSelectionRange(y-1,y-1):("delete-range"===s||"spin"===s)&&this.input.nativeElement.setSelectionRange(y,y);else
if("delete-back-single"===s){let
M=o.charAt(y-1),E=o.charAt(y),L=h-w,O=this._group.test(E);O&&1===L?y+=1:!O&&this.isNumeralChar(M)&&(y+=-1*L+1),this._group.lastIndex=0,this.input.nativeElement.setSelectionRange(y,y)}else
if("-"===o&&"insert"===s){this.input.nativeElement.setSelectionRange(0,0);const
E=this.initCursor()+n.length+1;this.input.nativeElement.setSelectionRange(E,E)}else
y+=w-h,this.input.nativeElement.setSelectionRange(y,y)}this.input.nativeElement.setAttribute("aria-valuenow",e)}concatValues(e,n){if(e&&n){let
s=n.search(this._decimal);return
this._decimal.lastIndex=0,-1!==s?e.split(this._decimal)[0]+n.s
lice(s):e}return e}getDecimalLength(e){if(e){const
n=e.split(this._decimal);if(2===n.length)return
n[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
n=this.validateValue(this.parseValue(this.input.nativeElement.value));this.input.nativeElement.value=this.formatValue(n),this.input.nativeElement.setAttribute("aria-valuenow",n),this.updateModel(e,n),this.onBlur.emit(e)}formattedValue(){return
this.formatValue(this.value||this.allowEmpty?this.value:0)}updateModel(e,n){this.value!==n&&(this.value=n,this.onModelChange(n)),this.onModelTouched()}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)}getF
ormatter(){return this.numberFormat}}return t.\u0275fac=function(e){return
new(e||t)(D(De),D(rt))},t.\u0275cmp=z({type:t,selectors:[["p-inputNumber"]],viewQuery:function(e,n){if(1&e&&W(l6,5),2&e){let
s;V(s=B())&&(n.input=s.first)}},hostAttrs:[1,"p-element","p-inputwrapper"],hostVars:6,hostBindings:function(e,n){2&e&&si("p-inputwrapper-filled",n.filled)("p-inputwrapper-focus",n.focused)("p-inputnumber-clearable",n.showClear&&"vertical"!=n.buttonLayout)},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",showClear:"showClear",disabled:"disabled"},outputs:{onInput:"onInput",onFocus:"onFocus",onBlur:"onBlur",onKeyDown:"onKeyDown",onClear:"onClear"},features:[Pe([m6]),fn],decls:7,vars:32,consts:[[3,"ngClass","ngStyle"],["pInputText","","inputmode","decimal",3,"ngClass","ngStyle","value","disabled","readonly","input","keydown","keypress","paste","click","focus","blur"],["input",""],["class","p-inputnumber-clear-icon
pi
pi-times",3,"click",4,"ngIf"],["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-c
lear-icon","pi","pi-times",3,"click"],[1,"p-inputnumber-button-group"],["type","button","pButton","",3,"ngClass","icon","disabled","mousedown","mouseup","mouseleave","keydown","keyup"]],template:function(e,n){1&e&&(l(0,"span",0)(1,"input",1,2),C("input",function(r){return
n.onUserInput(r)})("keydown",function(r){return
n.onInputKeyDown(r)})("keypress",function(r){return
n.onInputKeyPress(r)})("paste",function(r){return
n.onPaste(r)})("click",function(){return
n.onInputClick()})("focus",function(r){return
n.onInputFocus(r)})("blur",function(r){return
n.onInputBlur(r)}),c(),_(3,c6,1,0,"i",3),_(4,u6,3,12,"span",4),_(5,d6,1,6,"button",5),_(6,p6,1,6,"button",5),c()),2&e&&(me(n.styleClass),p("ngClass",Qt(28,h6,n.showButtons&&"stacked"===n.buttonLayout,n.showButtons&&"horizontal"===n.buttonLayout,n.showButtons&&"vertical"===n.buttonLayout))("ngStyle",n.style),a(1),me(n.inputStyleClass),p("ngClass","p-inputnumber-input")("ngStyle",n.inputStyle)("value",n.formattedValue())("disabled",n.disab
led)("readonly",n.readonly),ie("placeholder",n.placeholder)("title",n.title)("id",n.inputId)("size",n.size)("name",n.name)("autocomplete",n.autocomplete)("maxlength",n.maxlength)("tabindex",n.tabindex)("aria-label",n.ariaLabel)("aria-required",n.ariaRequired)("required",n.required)("min",n.min)("max",n.max),a(2),p("ngIf","vertical"!=n.buttonLayout&&n.showClear&&n.value),a(1),p("ngIf",n.showButtons&&"stacked"===n.buttonLayout),a(1),p("ngIf",n.showButtons&&"stacked"!==n.buttonLayout),a(1),p("ngIf",n.showButtons&&"stacked"!==n.buttonLayout))},directives:[Le,lt,DT,Q,On],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{border-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-inputnumber-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%}.p-inputnumber-clear-icon{position:absolute;top:50%;margin-top:-.5rem;cursor:pointer}.p-inputnumber-clearable{position:relative}\n"],encapsulation:2,changeDetection:0}),t})(),Xu=(()=>{class
t{}return t.\u0275fac=function(e){return
new(e||t)},t.\u0275mod=he({type:t}),t.\u0275inj=ue({imports:[[Fe,MT,gl]]}),t})();function
f6(t,i){1&t&&Y(0)}const Zf=function(t){return{$implicit:t}};function
g6(t,i){if(1&t&&(l(0,"div",15),_(1,f6,1,0,"ng-container",16),c()),2&t){const
e=d(2);a(1),p("ngTempl
ateOutlet",e.templateLeft)("ngTemplateOutletContext",U(2,Zf,e.paginatorState))}}function
_6(t,i){if(1&t&&(l(0,"span",17),g(1),c()),2&t){const
e=d(2);a(1),S(e.currentPageReport)}}const
ed=function(t){return{"p-disabled":t}};function b6(t,i){if(1&t){const
e=I();l(0,"button",18),C("click",function(s){return
v(e),d(2).changePageToFirst(s)}),k(1,"span",19),c()}if(2&t){const
e=d(2);p("disabled",e.isFirstPage()||e.empty())("ngClass",U(2,ed,e.isFirstPage()||e.empty()))}}const
v6=function(t){return{"p-highlight":t}};function C6(t,i){if(1&t){const
e=I();l(0,"button",22),C("click",function(s){const
o=v(e).$implicit;return d(3).onPageLinkClick(s,o-1)}),g(1),c()}if(2&t){const
e=i.$implicit,n=d(3);p("ngClass",U(2,v6,e-1==n.getPage())),a(1),S(e)}}function
y6(t,i){if(1&t&&(l(0,"span",20),_(1,C6,2,4,"button",21),c()),2&t){const
e=d(2);a(1),p("ngForOf",e.pageLinks)}}function
w6(t,i){1&t&&g(0),2&t&&S(d(3).currentPageReport)}function
T6(t,i){if(1&t){const
e=I();l(0,"p-dropdown",23),C("onChange",functio
n(s){return
v(e),d(2).onPageDropdownChange(s)}),_(1,w6,1,1,"ng-template",24),c()}if(2&t){const
e=d(2);p("options",e.pageItems)("ngModel",e.getPage())("disabled",e.empty())("appendTo",e.dropdownAppendTo)("scrollHeight",e.dropdownScrollHeight)}}function
S6(t,i){if(1&t){const
e=I();l(0,"button",25),C("click",function(s){return
v(e),d(2).changePageToLast(s)}),k(1,"span",26),c()}if(2&t){const
e=d(2);p("disabled",e.isLastPage()||e.empty())("ngClass",U(2,ed,e.isLastPage()||e.empty()))}}function
x6(t,i){if(1&t){const
e=I();l(0,"p-inputNumber",27),C("ngModelChange",function(s){return
v(e),d(2).changePage(s-1)}),c()}if(2&t){const
e=d(2);p("ngModel",e.currentPage())("disabled",e.empty())}}function
D6(t,i){1&t&&Y(0)}function
M6(t,i){if(1&t&&_(0,D6,1,0,"ng-container",16),2&t){const
e=i.$implicit;p("ngTemplateOutlet",d(4).dropdownItemTemplate)("ngTemplateOutletContext",U(2,Zf,e))}}function
k6(t,i){1&t&&(de(0),_(1,M6,1,4,"ng-template",30),pe())}function
I6(t,i){if(1&t){const e=I();l(0,"p-dropdown"
,28),C("ngModelChange",function(s){return
v(e),d(2).rows=s})("onChange",function(s){return
v(e),d(2).onRppChange(s)}),_(1,k6,2,0,"ng-container",29),c()}if(2&t){const
e=d(2);p("options",e.rowsPerPageItems)("ngModel",e.rows)("disabled",e.empty())("appendTo",e.dropdownAppendTo)("scrollHeight",e.dropdownScrollHeight),a(1),p("ngIf",e.dropdownItemTemplate)}}function
E6(t,i){1&t&&Y(0)}function
R6(t,i){if(1&t&&(l(0,"div",31),_(1,E6,1,0,"ng-container",16),c()),2&t){const
e=d(2);a(1),p("ngTemplateOutlet",e.templateRight)("ngTemplateOutletContext",U(2,Zf,e.paginatorState))}}function
L6(t,i){if(1&t){const
e=I();l(0,"div",1),_(1,g6,2,4,"div",2),_(2,_6,2,1,"span",3),_(3,b6,2,4,"button",4),l(4,"button",5),C("click",function(s){return
v(e),d().changePageToPrev(s)}),k(5,"span",6),c(),_(6,y6,2,1,"span",7),_(7,T6,2,5,"p-dropdown",8),l(8,"button",9),C("click",function(s){return
v(e),d().changePageToNext(s)}),k(9,"span",10),c(),_(10,S6,2,4,"button",11),_(11,x6,1,2,"p-inputNumber",12),_(12,I6,2,6,"p-drop
down",13),_(13,R6,2,4,"div",14),c()}if(2&t){const
e=d();me(e.styleClass),p("ngStyle",e.style)("ngClass","p-paginator
p-component"),a(1),p("ngIf",e.templateLeft),a(1),p("ngIf",e.showCurrentPageReport),a(1),p("ngIf",e.showFirstLastIcon),a(1),p("disabled",e.isFirstPage()||e.empty())("ngClass",U(17,ed,e.isFirstPage()||e.empty())),a(2),p("ngIf",e.showPageLinks),a(1),p("ngIf",e.showJumpToPageDropdown),a(1),p("disabled",e.isLastPage()||e.empty())("ngClass",U(19,ed,e.isLastPage()||e.empty())),a(2),p("ngIf",e.showFirstLastIcon),a(1),p("ngIf",e.showJumpToPageInput),a(1),p("ngIf",e.rowsPerPageOptions),a(1),p("ngIf",e.templateRight)}}let
ET=(()=>{class t{constructor(e){this.cd=e,this.pageLinkSize=5,this.onPageChange=new
H,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.updateRowsPerPageOptions()),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(),n=Math.min(this.pageLinkSize,e),s=Math.max(0,Math.ceil(this.getPage()-n/2)),r=Math.min(e-1,s+n-1);return
s=Math.max(0,
s-(this.pageLinkSize-(r-s+1))),[s,r]}updatePageLinks(){this.pageLinks=[];let
e=this.calculatePageLinkBoundaries(),s=e[1];for(let
r=e[0];r<=s;r++)this.pageLinks.push(r+1);if(this.showJumpToPageDropdown){this.pageItems=[];for(let
r=0;r<this.getPageCount();r++)this.pageItems.push({label:String(r+1),value:r})}}changePage(e){var
n=this.getPageCount();if(e>=0&&e<n){this._first=this.rows*e;var
s={page:e,first:this.first,rows:this.rows,pageCount:n};this.updatePageLinks(),this.onPageChange.emit(s),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,n){this.changePage(n),e.preventDefault()}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)(D(rt))},t.\u0275cmp=z({type:t,selectors:[["p-paginator"]],hostAttrs:[1,"p-element"],inputs:{pageLi
nkSize:"pageLinkSize",style:"style",styleClass:"styleClass",alwaysShow:"alwaysShow",templateLeft:"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:[fn],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-fir
st","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,n){1&e&&_(0,L6,14,21,"div",0),2&e&&p("ng
If",!!n.alwaysShow||n.pageLinks&&n.pageLinks.length>1)},directives:[Ot,pt,Q,lt,Le,Rt,bt,at,Te,_e,ne],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})(),RT=(()=>{class
t{}return t.\u0275fac=function(e){return
new(e||t)},t.\u0275mod=he({type:t}),t.\u0275inj=ue({imports:[[Fe,Zu,Xu,Mu,Nt,pn],Zu,Xu,Mu,Nt]}),t})();function
O6(t,i){if(1&t&&(l(0,"div",10)(1,"div",11),k(2,"i"),c()()),2&t){const
e=d();a(2),me("p-dataview-loading-icon pi-spin "+e.loadingIcon)}}function
A6(t,i){1&t&&Y(0)}functi
on
P6(t,i){if(1&t&&(l(0,"div",12),St(1),_(2,A6,1,0,"ng-container",13),c()),2&t){const
e=d();a(2),p("ngTemplateOutlet",e.headerTemplate)}}function
F6(t,i){if(1&t){const
e=I();l(0,"p-paginator",14),C("onPageChange",function(s){return
v(e),d().paginate(s)}),c()}if(2&t){const
e=d();p("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
N6(t,i){1&t&&Y(0)}const V6=function(t,i){return{$implicit:t,row
Index:i}};function
B6(t,i){if(1&t&&_(0,N6,1,0,"ng-container",15),2&t){const
e=i.$implicit,n=i.index;p("ngTemplateOutlet",d().itemTemplate)("ngTemplateOutletContext",Ge(2,V6,e,n))}}function
H6(t,i){if(1&t&&(de(0),g(1),pe()),2&t){const e=d(2);a(1),T("
",e.emptyMessageLabel," ")}}function
q6(t,i){1&t&&Y(0,null,19)}function
G6(t,i){if(1&t&&(l(0,"div",16)(1,"div",17),_(2,H6,2,1,"ng-container",18),_(3,q6,2,0,"ng-container",13),c()()),2&t){const
e=d();a(2),p("ngIf",!e.emptyMessageTemplate)("ngIfElse",e.emptyFilter),a(1),p("ngTemplateOutlet",e.emptyMessageTemplate)}}function
U6(t,i){if(1&t){const
e=I();l(0,"p-paginator",20),C("onPageChange",function(s){return
v(e),d().paginate(s)}),c()}if(2&t){const
e=d();p("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
z6(t,i){1&t&&Y(0)}function
j6(t,i){if(1&t&&(l(0,"div",21),St(1,1),_(2,z6,1,0,"ng-container",13),c()),2&t){const
e=d();a(2),p("ngTemplateOutlet",e.footerTemplate)}}const
$6=[[["p-header"]],[["p-footer"]]],W6=function(t,i){return{"p-dataview
p-component":!0,"p-dataview-list":t,"p-dataview-grid":i}},K6=["p-header","p-footer"];let
LT=(()=>{class
t{constructor(e,n,s,r){this.el=e,this.cd=n,this.filterService=s,this.config=r,this.pageLinks=5,this.paginatorPosition="bottom",this.alwaysShowPaginator=!0,this.paginatorDropdownScrollHeight="200px",this.currentPageReportTemplate="{currentPage}
of {totalPages}",this.showFirstLastIcon=!0,t
his.showPageLinks=!0,this.emptyMessage="",this.onLazyLoad=new
H,this.trackBy=(o,u)=>u,this.loadingIcon="pi
pi-spinner",this.first=0,this.onPage=new H,this.onSort=new H,this.onChangeLayout=new
H,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.pagi
natorRightTemplate=e.template;break;case"paginatordropdownitem":this.paginatorDropdownItemTemplate=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,n)=>{let
s=Z.resolveFieldData(e,this.sortField),r
=Z.resolveFieldData(n,this.sortField),o=null;return
o=null==s&&null!=r?-1:null!=s&&null==r?1:null==s&&null==r?0:"string"==typeof
s&&"string"==typeof
r?s.localeCompare(r):s<r?-1:s>r?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(Ft.EMPTY_MESSAGE)}filter(e,n="contains"){if(this.filterValue=e,this.value&&this.value.length){let
s=this.filterBy.split(",");this.filteredValue=this.filterService.filter(this.value,s,e,n,this.filterLocale),this.filteredValue.length===this.value.length&&(this.filteredValue=null),this.paginator&&(this.first=0,this.totalRecords=this.filteredValu
e?this.filteredValue.length:this.value?this.value.length:0),this.cd.markForCheck()}}hasFilter(){return
this.filterValue&&this.filterValue.trim().length>0}ngOnDestroy(){this.translationSubscription&&this.translationSubscription.unsubscribe()}}return
t.\u0275fac=function(e){return
new(e||t)(D(De),D(rt),D(hl),D(zn))},t.\u0275cmp=z({type:t,selectors:[["p-dataView"]],contentQueries:function(e,n,s){if(1&e&&(st(s,Oo,5),st(s,fl,5),st(s,ne,4)),2&e){let
r;V(r=B())&&(n.header=r.first),V(r=B())&&(n.footer=r.first),V(r=B())&&(n.templates=r)}},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",showJum
pToPageDropdown:"showJumpToPageDropdown",showFirstLastIcon:"showFirstLastIcon",showPageLinks:"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:[fn],ngContentSelectors:K6,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-emptymessage"],[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,n){1&e&&(Sn($6),l(0,"div",0),_(1,O6,3,2,"div",1),_(2,P6,3,1,"div",2),_(3,F6,1,16,"p-paginator",3),l(4,"div",4)(5,"div",5),_(6,B6,1,5,"ng-template",6),m(7,"slice"),_(8,G6,4,3,"div",7),c()(),_(9,U6,1,16,"p-paginator",8),_(10,j6,3,1,"div",9),c()),2&e&&(me(n.styleClass),p("ngClass",Ge(16,W6,"list"===n.layout,"grid"===n.layout))("ngStyle",n.style),a(1),p("ngIf",n.loading),a(1),p("ngIf",n.header||n.headerTemplate),a(1),p("ngIf",n.paginator&&("top"===n.paginatorPosition||"bot
h"==n.paginatorPosition)),a(3),p("ngForOf",n.paginator?function
hC(t,i,e,n,s){const r=t+20,o=$(),u=zr(o,r);return
Ua(o,r)?uC(o,Fn(),i,u.transform,e,n,s,u):u.transform(e,n,s)}(7,12,n.filteredValue||n.value,n.lazy?0:n.first,(n.lazy?0:n.first)+n.rows):n.filteredValue||n.value)("ngForTrackBy",n.trackBy),a(2),p("ngIf",n.isEmpty()),a(1),p("ngIf",n.paginator&&("bottom"===n.paginatorPosition||"both"==n.paginatorPosition)),a(1),p("ngIf",n.footer||n.footerTemplate))},directives:[ET,Le,lt,Q,Rt,at],pipes:[My],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})(),Q6=(()=>{class
t{}return t.\u0275fac=function(e){return
new(e||t)},t.\u0275mod=he({type:t}),t.\u0275inj=ue({imports:[[Fe,Nt,RT],Nt]}),t})(),J6=(()=>{class
t{constructor(e){this.el=e}onkeydown(e){if(!0!==this.pFocusTrapDisabled){e.preventDefault();let
n=R.getFocusableElements(this.el.n
ativeElement);if(n&&n.length>0)if(n[0].ownerDocument.activeElement){let
s=n.indexOf(n[0].ownerDocument.activeElement);e.shiftKey?-1==s||0===s?n[n.length-1].focus():n[s-1].focus():-1==s||s===n.length-1?n[0].focus():n[s+1].focus()}else
n[0].focus()}}}return t.\u0275fac=function(e){return
new(e||t)(D(De))},t.\u0275dir=le({type:t,selectors:[["","pFocusTrap",""]],hostAttrs:[1,"p-element"],hostBindings:function(e,n){1&e&&C("keydown.tab",function(r){return
n.onkeydown(r)})("keydown.shift.tab",function(r){return
n.onkeydown(r)})},inputs:{pFocusTrapDisabled:"pFocusTrapDisabled"}}),t})(),Y6=(()=>{class
t{}return t.\u0275fac=function(e){return
new(e||t)},t.\u0275mod=he({type:t}),t.\u0275inj=ue({imports:[[Fe]]}),t})();const
Z6=["titlebar"],X6=["content"],e7=["footer"];function
t7(t,i){if(1&t&&(l(0,"span",17),g(1),c()),2&t){const
e=d(4);ie("id",e.id+"-label"),a(1),S(e.header)}}function
n7(t,i){1&t&&(l(0,"span",17),St(1,1),c()),2&t&&ie("id",d(4).id+"-label")}function
i7(t,i){1&t&&Y(0)}const s7=fu
nction(){return{"p-dialog-header-icon p-dialog-header-maximize
p-link":!0}};function r7(t,i){if(1&t){const
e=I();l(0,"button",18),C("click",function(){return
v(e),d(4).maximize()})("keydown.enter",function(){return
v(e),d(4).maximize()}),k(1,"span",19),c()}if(2&t){const
e=d(4);p("ngClass",A(2,s7)),a(1),p("ngClass",e.maximized?e.minimizeIcon:e.maximizeIcon)}}const
o7=function(){return{"p-dialog-header-icon p-dialog-header-close
p-link":!0}};function a7(t,i){if(1&t){const
e=I();l(0,"button",20),C("click",function(s){return
v(e),d(4).close(s)})("keydown.enter",function(s){return
v(e),d(4).close(s)}),k(1,"span",21),c()}if(2&t){const
e=d(4);p("ngClass",A(4,o7)),ie("aria-label",e.closeAriaLabel)("tabindex",e.closeTabindex),a(1),p("ngClass",e.closeIcon)}}function
l7(t,i){if(1&t){const
e=I();l(0,"div",11,12),C("mousedown",function(s){return
v(e),d(3).initDrag(s)}),_(2,t7,2,2,"span",13),_(3,n7,2,1,"span",13),_(4,i7,1,0,"ng-container",8),l(5,"div",14),_(6,r7,2,3,"button",15),_(7,a7,2,5,"butto
n",16),c()()}if(2&t){const
e=d(3);a(2),p("ngIf",!e.headerFacet&&!e.headerTemplate),a(1),p("ngIf",e.headerFacet),a(1),p("ngTemplateOutlet",e.headerTemplate),a(2),p("ngIf",e.maximizable),a(1),p("ngIf",e.closable)}}function
c7(t,i){1&t&&Y(0)}function u7(t,i){1&t&&Y(0)}function
d7(t,i){if(1&t&&(l(0,"div",22,23),St(2,2),_(3,u7,1,0,"ng-container",8),c()),2&t){const
e=d(3);a(3),p("ngTemplateOutlet",e.footerTemplate)}}function
p7(t,i){if(1&t){const
e=I();l(0,"div",24),C("mousedown",function(s){return
v(e),d(3).initResize(s)}),c()}}const h7=function(t,i,e,n){return{"p-dialog
p-component":!0,"p-dialog-rtl":t,"p-dialog-draggable":i,"p-dialog-resizable":e,"p-dialog-maximized":n}},m7=function(t,i){return{transform:t,transition:i}},f7=function(t){return{value:"visible",params:t}};function
g7(t,i){if(1&t){const
e=I();l(0,"div",3,4),C("(a)animation.start",function(s){return
v(e),d(2).onAnimationStart(s)})("(a)animation.done",function(s){return
v(e),d(2).onAnimationEnd(s)}),_(2,l7,8,5,"div",5),l(3,"div"
,6,7),St(5),_(6,c7,1,0,"ng-container",8),c(),_(7,d7,4,1,"div",9),_(8,p7,1,0,"div",10),c()}if(2&t){const
e=d(2);me(e.styleClass),p("ngClass",qn(15,h7,e.rtl,e.draggable,e.resizable,e.maximized))("ngStyle",e.style)("pFocusTrapDisabled",!1===e.focusTrap)("@animation",U(23,f7,Ge(20,m7,e.transformOptions,e.transitionOptions))),ie("aria-labelledby",e.id+"-label"),a(2),p("ngIf",e.showHeader),a(1),me(e.contentStyleClass),p("ngClass","p-dialog-content")("ngStyle",e.contentStyle),a(3),p("ngTemplateOutlet",e.contentTemplate),a(1),p("ngIf",e.footerFacet||e.footerTemplate),a(1),p("ngIf",e.resizable)}}const
_7=function(t,i,e,n,s,r,o,u,h,b){return{"p-dialog-mask":!0,"p-component-overlay
p-component-overlay-enter":t,"p-dialog-mask-scrollblocker":i,"p-dialog-left":e,"p-dialog-right":n,"p-dialog-top":s,"p-dialog-top-left":r,"p-dialog-top-right":o,"p-dialog-bottom":u,"p-dialog-bottom-left":h,"p-dialog-bottom-right":b}};function
b7(t,i){if(1&t&&(l(0,"div",1),_(1,g7,9,25,"div",2),c()),2&t){const
e=d();me
(e.maskStyleClass),p("ngClass",Hh(4,_7,[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])),a(1),p("ngIf",e.visible)}}const
v7=["*",[["p-header"]],[["p-footer"]]],C7=["*","p-header","p-footer"],y7=ku([it({transform:"{{transform}}",opacity:0}),kt("{{transition}}")]),w7=ku([kt("{{transition}}",it({transform:"{{transform}}",opacity:0}))]);let
bn=(()=>{class
t{constructor(e,n,s,r,o){this.el=e,this.renderer=n,this.zone=s,this.cd=r,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 H,this.onHide=new H,this.visibleChange=new
H,this.onResizeInit=new H,this.onResizeEnd=new H,this.onDragEnd=new H,this.onMaximize=new
H,this.id=pl(),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.contentTemplat
e=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=R.findSingle(this.container,"[autofocus]");e&&this.zone.runOutsideAngular(()=>{setTimeout(()=>e.focus(),5)})}close(e){this.visibleChange.emit(!1),e.preventDefault()}enableModali
ty(){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&&R.addClass(document.body,"p-overflow-hidden")}disableModality(){this.wrapper&&(this.dismissableMask&&this.unbindMaskClickListener(),this.modal&&R.removeClass(document.body,"p-overflow-hidden"),this.cd.destroyed||this.cd.detectChanges())}maximize(){this.maximized=!this.maximized,!this.modal&&!this.blockScroll&&(this.maximized?R.addClass(document.body,"p-overflow-hidden"):R.removeClass(document.body,"p-overflow-hidden")),this.onMaximize.emit({maximized:this.maximized})}unbindMaskClickListener(){this.maskClickListener&&(this.maskClickListener(),this.maskClickListener=null)}moveOnTop(){this.autoZIndex&&(dt.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.styl
eElement=document.createElement("style"),this.styleElement.type="text/css",document.head.appendChild(this.styleElement);let
e="";for(let n in this.breakpoints)e+=`\n @media screen and
(max-width: ${n}) {\n .p-dialog[${this.id}] {\n
width: ${this.breakpoints[n]} !important;\n }\n
}\n
`;this.styleElement.innerHTML=e}}initDrag(e){R.hasClass(e.target,"p-dialog-header-icon")||R.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",R.addClass(document.body,"p-unselectable-text"))}onKeydown(e){if(this.focusTrap&&9===e.which){e.preventDefault();let
n=R.getFocusableElements(this.container);if(n&&n.length>0)if(n[0].ownerDocument.activeElement){let
s=n.indexOf(n[0].ownerDocument.activeElement);e.shiftKey?-1==s||0===s?n[n.length-1].focus():n[s-1].focus():-1=
=s||s===n.length-1?n[0].focus():n[s+1].focus()}else
n[0].focus()}}onDrag(e){if(this.dragging){let
n=R.getOuterWidth(this.container),s=R.getOuterHeight(this.container),r=e.pageX-this.lastPageX,o=e.pageY-this.lastPageY,u=this.container.getBoundingClientRect(),h=u.left+r,b=u.top+o,y=R.getViewport();this.container.style.position="fixed",this.keepInViewport?(h>=this.minX&&h+n<y.width&&(this._style.left=h+"px",this.lastPageX=e.pageX,this.container.style.left=h+"px"),b>=this.minY&&b+s<y.height&&(this._style.top=b+"px",this.lastPageY=e.pageY,this.container.style.top=b+"px")):(this.lastPageX=e.pageX,this.container.style.left=h+"px",this.lastPageY=e.pageY,this.container.style.top=b+"px")}}endDrag(e){this.dragging&&(this.dragging=!1,R.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,R.addClass(document.body,"p-unselectable-text"),this.onResizeInit.emit(e))}onResize(e){if(this.resizing){let
n=e.pageX-this.lastPageX,s=e.pageY-this.lastPageY,r=R.getOuterWidth(this.container),o=R.getOuterHeight(this.container),u=R.getOuterHeight(this.contentViewChild.nativeElement),h=r+n,b=o+s,y=this.container.style.minWidth,w=this.container.style.minHeight,M=this.container.getBoundingClientRect(),E=R.getViewport();(!parseInt(this.container.style.top)||!parseInt(this.container.style.left))&&(h+=n,b+=s),(!y||h>parseInt(y))&&M.left+h<E.width&&(this._style.width=h+"px",this.container.style.width=this._style.width),(!w||b>parseInt(w))&&M.top+b<E.height&&(this.contentViewChild.nativeElement.style.height=u+b-o+"px",this._style.height&&(this._style.height=b+"px",this.container.style.height=this._style.height)),this.lastPageX=e.pageX,this.lastPageY=e.pageY}}resizeEnd(e){this.resizing&&(this.resiz
ing=!1,R.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.documen
tDragEndListener)})}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.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",n=>{27==n.which&&
this.close(n)})}unbindDocumentEscapeListener(){this.documentEscapeListener&&(this.documentEscapeListener(),this.documentEscapeListener=null)}appendContainer(){this.appendTo&&("body"===this.appendTo?document.body.appendChild(this.wrapper):R.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&&R.addClass(document.body,"p-overflow-hidden"),this.focusOnShow&&this.focus();break;case"void":this.wrapper&&this.modal&&R.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&&(R.removeClass(document.body,"p-overflow-hidden"),this.maximized=!1),this.modal&&this.disableModality(),this.blockScroll&&R.removeClass(document.body,"p-overflow-hidden"),this.container&&this.autoZIndex&&dt.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.\u0275fac=function(e){return
new(e||t)(D(De),D(gn),D(nt),D(rt),D(zn))},t.\u0275cmp=z({type:t,selectors:[["p-dialog"]],contentQueries:function(e,n,s){if(1&e&&(st(s,Oo,5),st(s,fl,5),st(s,ne,4)),2&e){let
r;V(r=B())&&(n.headerFacet=r.first),V(r=B())&&(n.footerFacet=r.first),V(r=B())&&(n.templates=r)}},viewQuery:function(e,n){if(1&e&&(W(Z6,5),W(X6,5),W(e7,5)),2&e){l
et
s;V(s=B())&&(n.headerViewChild=s.first),V(s=B())&&(n.contentViewChild=s.first),V(s=B())&&(n.footerViewChild=s.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:"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:"maximizeIco
n",visible:"visible",style:"style",position:"position"},outputs:{onShow:"onShow",onHide:"onHide",visibleChange:"visibleChange",onResizeInit:"onResizeInit",onResizeEnd:"onResizeEnd",onDragEnd:"onDragEnd",onMaximize:"onMaximize"},ngContentSelectors:C7,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","keydo
wn.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,n){1&e&&(Sn(v7),_(0,b7,2,15,"div",0)),2&e&&p("ngIf",n.maskVisible)},directives:[Q,Le,J6,lt,Rt,bt],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-draggable
.p-dialog-header{curs
or:move}.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:[wi("animation",[Lt("void
=> visible",[fw(y7)]),Lt("visible =>
void",[fw(w7)])])]},changeDetection:0}),t})(),T7=(()=>{class t{}return
t.\u0275fac=function(e){return
new(e||t)},t.\u0275mod=he({type:t}),t.\u0275inj=ue({imports:[[Fe,Y6,pn],Nt]}),t})();const
S7=["*"];let x7=(()=>{class
t{constructor(){this.layout="horizontal",this.type="solid"}containerClass(){return{"p-divider
p-component":!0,"p-divider-horizontal":"horizontal"===this.layout,"p-divider-vertical":"vertical"===this.layout,"p-divider-solid":"solid"===this.type,"p-divider-dashed":"dashed"===this.type,"p-d
ivider-dotted":"dotted"===this.type,"p-divider-left":"horizontal"===this.layout&&(!this.align||"left"===this.align),"p-divider-center":"horizontal"===this.layout&&"center"===this.align||"vertical"===this.layout&&(!this.align||"center"===this.align),"p-divider-right":"horizontal"===this.layout&&"right"===this.align,"p-divider-top":"vertical"===this.layout&&"top"===this.align,"p-divider-bottom":"vertical"===this.layout&&"bottom"===this.align}}}return
t.\u0275fac=function(e){return
new(e||t)},t.\u0275cmp=z({type:t,selectors:[["p-divider"]],hostAttrs:[1,"p-element"],inputs:{styleClass:"styleClass",style:"style",layout:"layout",type:"type",align:"align"},ngContentSelectors:S7,decls:3,vars:4,consts:[["role","separator",3,"ngClass","ngStyle"],[1,"p-divider-content"]],template:function(e,n){1&e&&(Sn(),l(0,"div",0)(1,"div",1),St(2),c()()),2&e&&(me(n.styleClass),p("ngClass",n.containerClass())("ngStyle",n.style))},directives:[Le,lt],styles:['.p-divider-horizontal{display:flex;width:100%;posit
ion:relative;align-items:center}.p-divider-horizontal:before{position:absolute;display:block;top:50%;left:0;width:100%;content:""}.p-divider-horizontal.p-divider-left{justify-content:flex-start}.p-divider-horizontal.p-divider-right{justify-content:flex-end}.p-divider-horizontal.p-divider-center{justify-content:center}.p-divider-content{z-index:1}.p-divider-vertical{min-height:100%;margin:0
1rem;display:flex;position:relative;justify-content:center}.p-divider-vertical:before{position:absolute;display:block;top:0;left:50%;height:100%;content:""}.p-divider-vertical.p-divider-top{align-items:flex-start}.p-divider-vertical.p-divider-center{align-items:center}.p-divider-vertical.p-divider-bottom{align-items:flex-end}.p-divider-solid.p-divider-horizontal:before{border-top-style:solid}.p-divider-solid.p-divider-vertical:before{border-left-style:solid}.p-divider-dashed.p-divider-horizontal:before{border-top-style:dashed}.p-divider-dashed.p-divider-vertical:before{border-left-style:dashed}.p-
divider-dotted.p-divider-horizontal:before{border-top-style:dotted}.p-divider-dotted.p-divider-horizontal:before{border-left-style:dotted}\n'],encapsulation:2,changeDetection:0}),t})(),D7=(()=>{class
t{}return t.\u0275fac=function(e){return
new(e||t)},t.\u0275mod=he({type:t}),t.\u0275inj=ue({imports:[[Fe]]}),t})();const
M7=function(t,i){return{"pi-minus":t,"pi-plus":i}};function
k7(t,i){if(1&t&&k(0,"span",9),2&t){const
e=d(2);p("ngClass",Ge(1,M7,!e.collapsed,e.collapsed))}}function
I7(t,i){1&t&&Y(0)}function E7(t,i){if(1&t){const
e=I();de(0),l(1,"a",7),C("click",function(s){return
v(e),d().toggle(s)})("keydown.enter",function(s){return
v(e),d().toggle(s)}),_(2,k7,1,4,"span",8),_(3,I7,1,0,"ng-container",6),c(),pe()}if(2&t){const
e=d(),n=F(4);a(1),ie("aria-controls",e.id+"-content")("aria-expanded",!e.collapsed),a(1),p("ngIf",e.toggleable),a(1),p("ngTemplateOutlet",n)}}function
R7(t,i){1&t&&Y(0)}function
L7(t,i){if(1&t&&(l(0,"span",10),g(1),c(),St(2,1),_(3,R7,1,0,"ng-container",6)),2&
t){const
e=d();a(1),S(e.legend),a(2),p("ngTemplateOutlet",e.headerTemplate)}}function
O7(t,i){1&t&&Y(0)}const
A7=["*",[["p-header"]]],P7=function(t){return{"p-fieldset
p-component":!0,"p-fieldset-toggleable":t}},F7=function(t){return{transitionParams:t,height:"0"}},N7=function(t){return{value:"hidden",params:t}},V7=function(t){return{transitionParams:t,height:"*"}},B7=function(t){return{value:"visible",params:t}},H7=["*","p-header"];let
q7=0,Ui=(()=>{class
t{constructor(e){this.el=e,this.collapsed=!1,this.collapsedChange=new
H,this.onBeforeToggle=new H,this.onAfterToggle=new H,this.transitionOptions="400ms
cubic-bezier(0.86, 0, 0.07,
1)",this.id="p-fieldset-"+q7++}ngAfterContentInit(){this.templates.forEach(e=>{switch(e.getType()){case"header":this.headerTemplate=e.template;break;case"content":this.contentTemplate=e.template}})}toggle(e){if(this.animating)return!1;this.animating=!0,this.onBeforeToggle.emit({originalEvent:e,collapsed:this.collapsed}),this.collapsed?this.expand(e):thi
s.collapse(e),this.onAfterToggle.emit({originalEvent:e,collapsed:this.collapsed}),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(){this.animating=!1}}return
t.\u0275fac=function(e){return
new(e||t)(D(De))},t.\u0275cmp=z({type:t,selectors:[["p-fieldset"]],contentQueries:function(e,n,s){if(1&e&&st(s,ne,4),2&e){let
r;V(r=B())&&(n.templates=r)}},hostAttrs:[1,"p-element"],inputs:{legend:"legend",toggleable:"toggleable",collapsed:"collapsed",style:"style",styleClass:"styleClass",transitionOptions:"transitionOptions"},outputs:{collapsedChange:"collapsedChange",onBeforeToggle:"onBeforeToggle",onAfterToggle:"onAfterToggle"},ngContentSelectors:H7,decls:9,vars:22,consts:[[3,"ngClass","ngStyle"],[1,"p-fieldset-legend"],[4,"ngIf","ngIfElse"],["legendContent",""],["role","region",1,"p-toggleable-content"],[1,"
p-fieldset-content"],[4,"ngTemplateOutlet"],["tabindex","0","pRipple","",3,"click","keydown.enter"],["class","p-fieldset-toggler
pi",3,"ngClass",4,"ngIf"],[1,"p-fieldset-toggler","pi",3,"ngClass"],[1,"p-fieldset-legend-text"]],template:function(e,n){if(1&e&&(Sn(A7),l(0,"fieldset",0)(1,"legend",1),_(2,E7,4,4,"ng-container",2),_(3,L7,4,2,"ng-template",null,3,we),c(),l(5,"div",4),C("@fieldsetContent.done",function(){return
n.onToggleDone()}),l(6,"div",5),St(7),_(8,O7,1,0,"ng-container",6),c()()()),2&e){const
s=F(4);me(n.styleClass),p("ngClass",U(12,P7,n.toggleable))("ngStyle",n.style),ie("id",n.id),a(2),p("ngIf",n.toggleable)("ngIfElse",s),a(3),p("@fieldsetContent",n.collapsed?U(16,N7,U(14,F7,n.transitionOptions)):U(20,B7,U(18,V7,n.animating?n.transitionOptions:"0ms"))),ie("id",n.id+"-content")("aria-labelledby",n.id)("aria-hidden",n.collapsed),a(3),p("ngTemplateOutlet",n.contentTemplate)}},directives:[Le,lt,Q,bt,Rt],styles:[".p-fieldset-legend>a,.p-fieldset-legend>span{display:flex;al
ign-items:center;justify-content:center}.p-fieldset-toggleable .p-fieldset-legend
a{cursor:pointer;-webkit-user-select:none;user-select:none;overflow:hidden;position:relative}.p-fieldset-legend-text{line-height:1}\n"],encapsulation:2,data:{animation:[wi("fieldsetContent",[ws("hidden",it({height:"0",overflow:"hidden"})),ws("visible",it({height:"*"})),Lt("visible
<=>
hidden",[it({overflow:"hidden"}),kt("{{transitionParams}}")]),Lt("void
=> *",kt(0))])]},changeDetection:0}),t})(),G7=(()=>{class t{}return
t.\u0275fac=function(e){return
new(e||t)},t.\u0275mod=he({type:t}),t.\u0275inj=ue({imports:[[Fe,pn],Nt]}),t})();const
U7=["headerchkbox"];function z7(t,i){1&t&&Y(0)}function
j7(t,i){if(1&t&&(l(0,"div",6),St(1),_(2,z7,1,0,"ng-container",7),c()),2&t){const
e=d();a(2),p("ngTemplateOutlet",e.headerTemplate)}}const
OT=function(t){return{"p-checkbox-disabled":t}},$7=function(t,i,e){return{"p-highlight":t,"p-focus":i,"p-disabled":e}},AT=function(t){return{"pi
pi-check":t}};function W7(t,i){if
(1&t){const
e=I();l(0,"div",10)(1,"div",11)(2,"input",12),C("focus",function(){return
v(e),d(2).onHeaderCheckboxFocus()})("blur",function(){return
v(e),d(2).onHeaderCheckboxBlur()})("keydown.space",function(s){return
v(e),d(2).toggleAll(s)}),c()(),l(3,"div",13,14),C("click",function(s){return
v(e),d(2).toggleAll(s)}),k(5,"span",15),c()()}if(2&t){const
e=d(2);p("ngClass",U(5,OT,e.disabled||e.toggleAllDisabled)),a(2),p("checked",e.allChecked)("disabled",e.disabled||e.toggleAllDisabled),a(1),p("ngClass",Qt(7,$7,e.allChecked,e.headerCheckboxFocus,e.disabled||e.toggleAllDisabled)),a(2),p("ngClass",U(11,AT,e.allChecked))}}function
K7(t,i){if(1&t){const
e=I();l(0,"div",16)(1,"input",17),C("input",function(s){return
v(e),d(2).onFilter(s)}),c(),k(2,"span",18),c()}if(2&t){const
e=d(2);a(1),p("value",e.filterValue||"")("disabled",e.disabled),ie("placeholder",e.filterPlaceHolder)("aria-label",e.ariaFilterLabel)}}function
Q7(t,i){if(1&t&&(l(0,"div",6),_(1,W7,6,13,"div",8),_(2,K7,3,4,"div",9),c()
),2&t){const
e=d();a(1),p("ngIf",e.checkbox&&e.multiple&&e.showToggleAll),a(1),p("ngIf",e.filter)}}function
J7(t,i){if(1&t&&(l(0,"span"),g(1),c()),2&t){const
e=d().$implicit,n=d(2);a(1),S(n.getOptionGroupLabel(e)||"empty")}}function
Y7(t,i){1&t&&Y(0)}function Z7(t,i){1&t&&Y(0)}const
Xf=function(t){return{$implicit:t}};function
X7(t,i){if(1&t&&(l(0,"li",20),_(1,J7,2,1,"span",3),_(2,Y7,1,0,"ng-container",21),c(),_(3,Z7,1,0,"ng-container",21)),2&t){const
e=i.$implicit,n=d(2),s=F(8);a(1),p("ngIf",!n.groupTemplate),a(1),p("ngTemplateOutlet",n.groupTemplate)("ngTemplateOutletContext",U(5,Xf,e)),a(1),p("ngTemplateOutlet",s)("ngTemplateOutletContext",U(7,Xf,n.getOptionGroupChildren(e)))}}function
eB(t,i){if(1&t&&(de(0),_(1,X7,4,9,"ng-template",19),pe()),2&t){const
e=d();a(1),p("ngForOf",e.optionsToRender)}}function
tB(t,i){1&t&&Y(0)}function
nB(t,i){if(1&t&&(de(0),_(1,tB,1,0,"ng-container",21),pe()),2&t){const
e=d(),n=F(8);a(1),p("ngTemplateOutlet",n)("ngTemplateOutletContext",U(2,Xf,e.opti
onsToRender))}}const iB=function(t){return{"p-highlight":t}};function
sB(t,i){if(1&t&&(l(0,"div",10)(1,"div",25),k(2,"span",15),c()()),2&t){const
e=d().$implicit,n=d(2);p("ngClass",U(3,OT,n.disabled||n.isOptionDisabled(e))),a(1),p("ngClass",U(5,iB,n.isSelected(e))),a(1),p("ngClass",U(7,AT,n.isSelected(e)))}}function
rB(t,i){if(1&t&&(l(0,"span"),g(1),c()),2&t){const
e=d().$implicit,n=d(2);a(1),S(n.getOptionLabel(e))}}function
oB(t,i){1&t&&Y(0)}const
aB=function(t,i){return{"p-listbox-item":!0,"p-highlight":t,"p-disabled":i}},lB=function(t,i){return{$implicit:t,index:i}};function
cB(t,i){if(1&t){const
e=I();l(0,"li",24),C("click",function(s){const o=v(e).$implicit;return
d(2).onOptionClick(s,o)})("dblclick",function(s){const o=v(e).$implicit;return
d(2).onOptionDoubleClick(s,o)})("touchend",function(){const
r=v(e).$implicit;return d(2).onOptionTouchEnd(r)})("keydown",function(s){const
o=v(e).$implicit;return
d(2).onOptionKeyDown(s,o)}),_(1,sB,3,9,"div",8),_(2,rB,2,1,"span",3),_(3,oB,1
,0,"ng-container",21),c()}if(2&t){const
e=i.$implicit,n=i.index,s=d(2);p("ngClass",Ge(8,aB,s.isSelected(e),s.isOptionDisabled(e))),ie("tabindex",s.disabled||s.isOptionDisabled(e)?null:"0")("aria-label",s.getOptionLabel(e))("aria-selected",s.isSelected(e)),a(1),p("ngIf",s.checkbox&&s.multiple),a(1),p("ngIf",!s.itemTemplate),a(1),p("ngTemplateOutlet",s.itemTemplate)("ngTemplateOutletContext",Ge(11,lB,e,n))}}function
uB(t,i){if(1&t&&(de(0),g(1),pe()),2&t){const e=d(3);a(1),T("
",e.emptyFilterMessageLabel," ")}}function
dB(t,i){1&t&&Y(0,null,28)}function
pB(t,i){if(1&t&&(l(0,"li",26),_(1,uB,2,1,"ng-container",27),_(2,dB,2,0,"ng-container",7),c()),2&t){const
e=d(2);a(1),p("ngIf",!e.emptyFilterTemplate&&!e.emptyTemplate)("ngIfElse",e.emptyFilter),a(1),p("ngTemplateOutlet",e.emptyFilterTemplate||e.emptyTemplate)}}function
hB(t,i){if(1&t&&(de(0),g(1),pe()),2&t){const e=d(3);a(1),T("
",e.emptyMessageLabel," ")}}function
mB(t,i){1&t&&Y(0,null,29)}function
fB(t,i){if(1&t&&(l(0,"li",26),_(1,hB,
2,1,"ng-container",27),_(2,mB,2,0,"ng-container",7),c()),2&t){const
e=d(2);a(1),p("ngIf",!e.emptyTemplate)("ngIfElse",e.empty),a(1),p("ngTemplateOutlet",e.emptyTemplate)}}function
gB(t,i){if(1&t&&(_(0,cB,4,14,"li",22),_(1,pB,3,3,"li",23),_(2,fB,3,3,"li",23)),2&t){const
e=i.$implicit,n=d();p("ngForOf",e),a(1),p("ngIf",n.hasFilter()&&n.isEmpty(e)),a(1),p("ngIf",!n.hasFilter()&&n.isEmpty(e))}}function
_B(t,i){1&t&&Y(0)}function
bB(t,i){if(1&t&&(l(0,"div",30),St(1,1),_(2,_B,1,0,"ng-container",7),c()),2&t){const
e=d();a(2),p("ngTemplateOutlet",e.footerTemplate)}}const
vB=[[["p-header"]],[["p-footer"]]],CB=function(t){return{"p-listbox
p-component":!0,"p-disabled":t}},yB=["p-header","p-footer"],wB={provide:dn,useExisting:je(()=>os),multi:!0};let
os=(()=>{class
t{constructor(e,n,s,r){this.el=e,this.cd=n,this.filterService=s,this.config=r,this.checkbox=!1,this.filter=!1,this.filterMatchMode="contains",this.metaKeySelection=!0,this.showToggleAll=!0,this.optionGroupChildren="items",this.onCha
nge=new H,this.onClick=new H,this.onDblClick=new
H,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?Z.resolveFieldData(e,this.optionLabel):null!=e.label?e.label:e}getOptionGroupChildren(e){return
this.optionGroupChildren?Z.resolveFieldData(e,this.optionG
roupChildren):e.items}getOptionGroupLabel(e){return
this.optionGroupLabel?Z.resolveFieldData(e,this.optionGroupLabel):null!=e.label?e.label:e}getOptionValue(e){return
this.optionValue?Z.resolveFieldData(e,this.optionValue):this.optionLabel||void
0===e.value?e:e.value}isOptionDisabled(e){return
this.optionDisabled?Z.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,n){this.disabled||this.isOptionDisabled(n)||this.readonly||(this.multiple?this.checkbox?this.onOptionClickCheckbox(e,n):this.onOptionClickMultiple(e,n):this.onOptionClickSingle(e,n),this.onClick.emit({originalEvent:e,option:n,value:this.value}),this.optionTouched=!1)}onOptionTouchEnd(e){this.disabled||this.isOptionDisabled(e)||this.readonly||(this.optionTouched=!0)}onOptionDoubleClick(e,n){this.d
isabled||this.isOptionDisabled(n)||this.readonly||this.onDblClick.emit({originalEvent:e,option:n,value:this.value})}onOptionClickSingle(e,n){let
s=this.isSelected(n),r=!1;if(!this.optionTouched&&this.metaKeySelection){let
u=e.metaKey||e.ctrlKey;s?u&&(this.value=null,r=!0):(this.value=this.getOptionValue(n),r=!0)}else
this.value=s?null:this.getOptionValue(n),r=!0;r&&(this.onModelChange(this.value),this.onChange.emit({originalEvent:e,value:this.value}))}onOptionClickMultiple(e,n){let
s=this.isSelected(n),r=!1;if(!this.optionTouched&&this.metaKeySelection){let
u=e.metaKey||e.ctrlKey;s?(u?this.removeOption(n):this.value=[this.getOptionValue(n)],r=!0):(this.value=u&&this.value||[],this.value=[...this.value,this.getOptionValue(n)],r=!0)}else
s?this.removeOption(n):this.value=[...this.value||[],this.getOptionValue(n)],r=!0;r&&(this.onModelChange(this.value),this.onChange.emit({originalEvent:e,value:this.value}))}onOptionClickCheckbox(e,n){this.disabled||this.readonly||(this.isSelected(n)?t
his.removeOption(n):(this.value=this.value?this.value:[],this.value=[...this.value,this.getOptionValue(n)]),this.onModelChange(this.value),this.onChange.emit({originalEvent:e,value:this.value}))}removeOption(e){this.value=this.value.filter(n=>!Z.equals(n,this.getOptionValue(e),this.dataKey))}isSelected(e){let
n=!1,s=this.getOptionValue(e);if(this.multiple){if(this.value)for(let r of
this.value)if(Z.equals(r,s,this.dataKey)){n=!0;break}}else
n=Z.equals(this.value,s,this.dataKey);return n}get allChecked(){let
e=this.optionsToRender;if(!e||0===e.length)return!1;{let
n=0,s=0,r=0,o=this.group?0:this.optionsToRender.length;for(let u of
e)if(this.group)for(let h of this.getOptionGroupChildren(u)){let
b=this.isOptionDisabled(h),y=this.isSelected(h);if(b)y?n++:s++;else{if(!y)return!1;r++}o++}else{let
h=this.isOptionDisabled(u),b=this.isSelected(u);if(h)b?n++:s++;else{if(!b)return!1;r++}}return
o===n||o===r||r&&o===r+s+n}}get optionsToRender(){return
this._filteredOptions||this.options}get em
ptyMessageLabel(){return
this.emptyMessage||this.config.getTranslation(Ft.EMPTY_MESSAGE)}get
emptyFilterMessageLabel(){return
this.emptyFilterMessage||this.config.getTranslation(Ft.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(","),n=[];for(let s of
this.options){let
r=this.filterService.filter(this.getOptionGroupChildren(s),e,this.filterValue,this.filterMatchMode,this.filterLocale);r&&r.length&&n.push(Object.assign(Object.assign({},s),{[this.optionGroupChildren]:r}))}this._filteredOptions=n}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.optionsToRend
er;if(!e||0===e.length)return!0;for(let n of
e)if(!this.isOptionDisabled(n))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
n=[];this.optionsToRender.forEach(s=>{if(this.group){let
r=this.getOptionGroupChildren(s);r&&r.forEach(o=>{let
u=this.isOptionDisabled(o);(!u||u&&this.isSelected(o))&&n.push(this.getOptionValue(o))})}else{let
r=this.isOptionDisabled(s);(!r||r&&this.isSelected(s))&&n.push(this.getOptionValue(s))}}),this.value=n}uncheckAll(){let
n=[];this.optionsToRender.forEach(s=>{this.group?s.items&&s.items.forEach(r=>{this.isOptionDisabled(r)&&this.isSelected(r)&&n.push(this.getOptionValue(r))}):this.isOptionDisabled(s)&&this.isSelected(s)&&n.push(this.getOptionValue(s))}),this.value=n}onOptionKeyDown(e,n){if(this.readonly)return;let
s=e.currentTarget;switch(e.which){cas
e 40:var r=this.findNextItem(s);r&&r.focus(),e.preventDefault();break;case 38:var
o=this.findPrevItem(s);o&&o.focus(),e.preventDefault();break;case
13:this.onOptionClick(e,n),e.preventDefault()}}findNextItem(e){let
n=e.nextElementSibling;return
n?R.hasClass(n,"p-disabled")||R.isHidden(n)||R.hasClass(n,"p-listbox-item-group")?this.findNextItem(n):n:null}findPrevItem(e){let
n=e.previousElementSibling;return
n?R.hasClass(n,"p-disabled")||R.isHidden(n)||R.hasClass(n,"p-listbox-item-group")?this.findPrevItem(n):n:null}onHeaderCheckboxFocus(){this.headerCheckboxFocus=!0}onHeaderCheckboxBlur(){this.headerCheckboxFocus=!1}ngOnDestroy(){this.translationSubscription&&this.translationSubscription.unsubscribe()}}return
t.\u0275fac=function(e){return
new(e||t)(D(De),D(rt),D(hl),D(zn))},t.\u0275cmp=z({type:t,selectors:[["p-listbox"]],contentQueries:function(e,n,s){if(1&e&&(st(s,Oo,5),st(s,fl,5),st(s,ne,4)),2&e){let
r;V(r=B())&&(n.headerFacet=r.first),V(r=B())&&(n.footerFacet=r.first),V(r=B())&&(n
.templates=r)}},viewQuery:function(e,n){if(1&e&&W(U7,5),2&e){let
s;V(s=B())&&(n.headerCheckboxViewChild=s.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:[Pe([wB])],ngContentSelectors:yB,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,n){1&e&&(Sn(vB),l(0,"div",0),_(1,j7,3,1,"div",1),_(2,Q7,3,2,"div",1),l(3,"div",0)(4,"ul",2),_(5,eB,2,1,"ng-container",3),_(6,nB,2,4,"ng-container",3),_(7,gB,3,3,"ng-template",null,4,we),c()(),_(9,bB,3,1,"div",5),c()),2&e&&(me(n.styleClass),p("ngClass",U(13,CB,n.disabled))("ngStyle",n.style),a(1),p("ngIf",n.headerFacet||n.headerTemplate),a(1),p("ngIf",n.checkbox&&n.multiple&&n.showToggleAll||n.filter),a(1),me(n.listStyleClass),p("ngClass","p-listbox-list-wrapper")("ngStyle",n.listStyle),a(2),p("ngIf",n.group),a(1),p("ngIf",!n.group),a(3),p("ngIf",n.footerFacet||n.footerTemplate))},directives:[Le,lt,Q,Rt,at,bt],styles:[".p-listbox-list-wrapper{overflow:auto}.p-listbox-list{list-style-type:none;margin:0;padding:0}.p-listbox-it
em{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})(),TB=(()=>{class
t{}return t.\u0275fac=function(e){return
new(e||t)},t.\u0275mod=he({type:t}),t.\u0275inj=ue({imports:[[Fe,Nt,pn],Nt]}),t})();class
zi extends ct{constructor(i){super(),this._value=i}get value(){return
this.getValue()}_subscribe(i){const e=super._subscribe(i);return
e&&!e.closed&&i.next(this._value),e}getValue(){if(this.hasError)throw
this.thrownError;if(this.closed)throw new nr;return
this._value}next(i){super.next(this._value=i)}}class SB extends
yt{notifyNext(i,e,n,s,r){this.destination.next(e)}notifyError(i,e){this.destination.error(i)}notifyComplete(i){this.destination.complete()}}class
xB ex
tends
yt{constructor(i,e,n){super(),this.parent=i,this.outerValue=e,this.outerIndex=n,this.index=0}_next(i){this.parent.notifyNext(this.outerValue,i,this.outerIndex,this.index++,this)}_error(i){this.parent.notifyError(i,this),this.unsubscribe()}_complete(){this.parent.notifyComplete(this),this.unsubscribe()}}function
DB(t,i,e,n,s=new xB(t,e,n)){if(!s.closed)return i instanceof
Je?i.subscribe(s):Od(i)(s)}const PT={};class
kB{constructor(i){this.resultSelector=i}call(i,e){return e.subscribe(new
IB(i,this.resultSelector))}}class IB extends
SB{constructor(i,e){super(i),this.resultSelector=e,this.active=0,this.values=[],this.observables=[]}_next(i){this.values.push(PT),this.observables.push(i)}_complete(){const
i=this.observables,e=i.length;if(0===e)this.destination.complete();else{this.active=e,this.toRespond=e;for(let
n=0;n<e;n++)this.add(DB(this,i[n],void
0,n))}}notifyComplete(i){0==(this.active-=1)&&this.destination.complete()}notifyNext(i,e,n){const
s=this.values,o=this.toRespond?s[
n]===PT?--this.toRespond:this.toRespond:0;s[n]=e,0===o&&(this.resultSelector?this._tryResultSelector(s):this.destination.next(s.slice()))}_tryResultSelector(i){let
e;try{e=this.resultSelector.apply(this,i)}catch(n){return void
this.destination.error(n)}this.destination.next(e)}}const td=(()=>{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 FT(t,i){let e=!1;return
arguments.length>=2&&(e=!0),function(s){return s.lift(new EB(t,i,e))}}class
EB{constructor(i,e,n=!1){this.accumulator=i,this.seed=e,this.hasSeed=n}call(i,e){return
e.subscribe(new RB(i,this.accumulator,this.seed,this.hasSeed))}}class RB extends
yt{constructor(i,e,n,s){super(i),this.accumulator=e,this._seed=n,this.hasSeed=s,this.index=0}get
seed(){return this._seed}set
seed(i){this.hasSeed=!0,this._seed=i}_next(i){if(this.hasSeed)return
this._tryNext(i);this.seed=i,this.destination.next(i)}_tryNext(i){cons
t e=this.index++;let
n;try{n=this.accumulator(this.seed,i,e)}catch(s){this.destination.error(s)}this.seed=n,this.destination.next(n)}}function
Mr(t){return function(e){const n=new LB(t),s=e.lift(n);return n.caught=s}}class
LB{constructor(i){this.selector=i}call(i,e){return e.subscribe(new
OB(i,this.selector,this.caught))}}class OB extends
Zo{constructor(i,e,n){super(i),this.selector=e,this.caught=n}error(i){if(!this.isStopped){let
e;try{e=this.selector(i,this.caught)}catch(r){return void
super.error(r)}this._unsubscribeAndRecycle();const n=new Yo(this);this.add(n);const
s=Xo(e,n);s!==n&&this.add(s)}}}function eg(t){return function(e){return
0===t?lu():e.lift(new AB(t))}}class
AB{constructor(i){if(this.total=i,this.total<0)throw new s0}call(i,e){return
e.subscribe(new PB(i,this.total))}}class PB extends
yt{constructor(i,e){super(i),this.total=e,this.ring=new Array,this.count=0}_next(i){const
e=this.ring,n=this.total,s=this.count++;e.length<n?e.push(i):e[s%n]=i}_complete(){const
i=thi
s.destination;let e=this.count;if(e>0){const
n=this.count>=this.total?this.total:this.count,s=this.ring;for(let
r=0;r<n;r++){const o=e++%n;i.next(s[o])}}i.complete()}}function NT(t=VB){return
i=>i.lift(new FB(t))}class FB{constructor(i){this.errorFactory=i}call(i,e){return
e.subscribe(new NB(i,this.errorFactory))}}class NB extends
yt{constructor(i,e){super(i),this.errorFactory=e,this.hasValue=!1}_next(i){this.hasValue=!0,this.destination.next(i)}_complete(){if(this.hasValue)return
this.destination.complete();{let
i;try{i=this.errorFactory()}catch(e){i=e}this.destination.error(i)}}}function VB(){return
new td}function VT(t=null){return i=>i.lift(new BB(t))}class
BB{constructor(i){this.defaultValue=i}call(i,e){return e.subscribe(new
HB(i,this.defaultValue))}}class HB extends
yt{constructor(i,e){super(i),this.defaultValue=e,this.isEmpty=!0}_next(i){this.isEmpty=!1,this.destination.next(i)}_complete(){this.isEmpty&&this.destination.next(this.defaultValue),this.destination.complete()}}fu
nction No(t,i){const e=arguments.length>=2;return
n=>n.pipe(t?Us((s,r)=>t(s,r,n)):Bl,br(1),e?VT(i):NT(()=>new td))}function
Js(){}function li(t,i,e){return function(s){return s.lift(new GB(t,i,e))}}class
GB{constructor(i,e,n){this.nextOrObserver=i,this.error=e,this.complete=n}call(i,e){return
e.subscribe(new UB(i,this.nextOrObserver,this.error,this.complete))}}class UB extends
yt{constructor(i,e,n,s){super(i),this._tapNext=Js,this._tapError=Js,this._tapComplete=Js,this._tapError=n||Js,this._tapComplete=s||Js,Is(e)?(this._context=this,this._tapNext=e):e&&(this._context=e,this._tapNext=e.next||Js,this._tapError=e.error||Js,this._tapComplete=e.complete||Js)}_next(i){try{this._tapNext.call(this._context,i)}catch(e){return
void
this.destination.error(e)}this.destination.next(i)}_error(i){try{this._tapError.call(this._context,i)}catch(e){return
void
this.destination.error(e)}this.destination.error(i)}_complete(){try{this._tapComplete.call(this._context)}catch(i){return
void this.destinati
on.error(i)}return this.destination.complete()}}class
jB{constructor(i){this.callback=i}call(i,e){return e.subscribe(new
$B(i,this.callback))}}class $B extends yt{constructor(i,e){super(i),this.add(new
Et(e))}}class xs{constructor(i,e){this.id=i,this.url=e}}class tg extends
xs{constructor(i,e,n="imperative",s=null){super(i,e),this.navigationTrigger=n,this.restoredState=s}toString(){return`NavigationStart(id:
${this.id}, url: '${this.url}')`}}class vl extends
xs{constructor(i,e,n){super(i,e),this.urlAfterRedirects=n}toString(){return`NavigationEnd(id:
${this.id}, url: '${this.url}', urlAfterRedirects:
'${this.urlAfterRedirects}')`}}class BT extends
xs{constructor(i,e,n){super(i,e),this.reason=n}toString(){return`NavigationCancel(id:
${this.id}, url: '${this.url}')`}}class WB extends
xs{constructor(i,e,n){super(i,e),this.error=n}toString(){return`NavigationError(id:
${this.id}, url: '${this.url}', error: ${this.error})`}}class KB extends
xs{constructor(i,e,n,s){super(i,e),this.urlAfte
rRedirects=n,this.state=s}toString(){return`RoutesRecognized(id: ${this.id}, url:
'${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state:
${this.state})`}}class QB extends
xs{constructor(i,e,n,s){super(i,e),this.urlAfterRedirects=n,this.state=s}toString(){return`GuardsCheckStart(id:
${this.id}, url: '${this.url}', urlAfterRedirects:
'${this.urlAfterRedirects}', state: ${this.state})`}}class JB extends
xs{constructor(i,e,n,s,r){super(i,e),this.urlAfterRedirects=n,this.state=s,this.shouldActivate=r}toString(){return`GuardsCheckEnd(id:
${this.id}, url: '${this.url}', urlAfterRedirects:
'${this.urlAfterRedirects}', state: ${this.state}, shouldActivate:
${this.shouldActivate})`}}class YB extends
xs{constructor(i,e,n,s){super(i,e),this.urlAfterRedirects=n,this.state=s}toString(){return`ResolveStart(id:
${this.id}, url: '${this.url}', urlAfterRedirects:
'${this.urlAfterRedirects}', state: ${this.state})`}}class ZB extends
xs{constructor(i,e,n,s){super(i,e),this.urlAfterRedire
cts=n,this.state=s}toString(){return`ResolveEnd(id: ${this.id}, url:
'${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state:
${this.state})`}}class
HT{constructor(i){this.route=i}toString(){return`RouteConfigLoadStart(path:
${this.route.path})`}}class
qT{constructor(i){this.route=i}toString(){return`RouteConfigLoadEnd(path:
${this.route.path})`}}class
XB{constructor(i){this.snapshot=i}toString(){return`ChildActivationStart(path:
'${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class
e8{constructor(i){this.snapshot=i}toString(){return`ChildActivationEnd(path:
'${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class
t8{constructor(i){this.snapshot=i}toString(){return`ActivationStart(path:
'${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class
n8{constructor(i){this.snapshot=i}toString(){return`ActivationEnd(path:
'${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class
GT{constructor(i,e,n){t
his.routerEvent=i,this.position=e,this.anchor=n}toString(){return`Scroll(anchor:
'${this.anchor}', position: '${this.position?`${this.position[0]},
${this.position[1]}`:null}')`}}const Ke="primary";class
i8{constructor(i){this.params=i||{}}has(i){return
Object.prototype.hasOwnProperty.call(this.params,i)}get(i){if(this.has(i)){const
e=this.params[i];return Array.isArray(e)?e[0]:e}return
null}getAll(i){if(this.has(i)){const e=this.params[i];return
Array.isArray(e)?e:[e]}return[]}get keys(){return Object.keys(this.params)}}function
Vo(t){return new i8(t)}const UT="ngNavigationCancelingError";function
ng(t){const i=Error("NavigationCancelingError: "+t);return i[UT]=!0,i}function
r8(t,i,e){const
n=e.path.split("/");if(n.length>t.length||"full"===e.pathMatch&&(i.hasChildren()||n.length<t.length))return
null;const s={};for(let r=0;r<n.length;r++){const
o=n[r],u=t[r];if(o.startsWith(":"))s[o.substring(1)]=u;else if(o!==u.path)return
null}return{consumed:t.slice(0,n.length),posParams:s}}fun
ction as(t,i){const e=t?Object.keys(t):void 0,n=i?Object.keys(i):void
0;if(!e||!n||e.length!=n.length)return!1;let s;for(let
r=0;r<e.length;r++)if(s=e[r],!zT(t[s],i[s]))return!1;return!0}function
zT(t,i){if(Array.isArray(t)&&Array.isArray(i)){if(t.length!==i.length)return!1;const
e=[...t].sort(),n=[...i].sort();return e.every((s,r)=>n[r]===s)}return t===i}function
jT(t){return Array.prototype.concat.apply([],t)}function $T(t){return
t.length>0?t[t.length-1]:null}function xn(t,i){for(const e in
t)t.hasOwnProperty(e)&&i(t[e],e)}function ls(t){return
Dh(t)?t:Ra(t)?Mn(Promise.resolve(t)):oe(t)}const l8={exact:function
QT(t,i,e){if(!Ir(t.segments,i.segments)||!nd(t.segments,i.segments,e)||t.numberOfChildren!==i.numberOfChildren)return!1;for(const
n in
i.children)if(!t.children[n]||!QT(t.children[n],i.children[n],e))return!1;return!0},subset:JT},WT={exact:function
c8(t,i){return as(t,i)},subset:function u8(t,i){return
Object.keys(i).length<=Object.keys(t).length&&Object.keys(i).every(e=>z
T(t[e],i[e]))},ignored:()=>!0};function KT(t,i,e){return
l8[e.paths](t.root,i.root,e.matrixParams)&&WT[e.queryParams](t.queryParams,i.queryParams)&&!("exact"===e.fragment&&t.fragment!==i.fragment)}function
JT(t,i,e){return YT(t,i,i.segments,e)}function
YT(t,i,e,n){if(t.segments.length>e.length){const
s=t.segments.slice(0,e.length);return!(!Ir(s,e)||i.hasChildren()||!nd(s,e,n))}if(t.segments.length===e.length){if(!Ir(t.segments,e)||!nd(t.segments,e,n))return!1;for(const
s in
i.children)if(!t.children[s]||!JT(t.children[s],i.children[s],n))return!1;return!0}{const
s=e.slice(0,t.segments.length),r=e.slice(t.segments.length);return!!(Ir(t.segments,s)&&nd(t.segments,s,n)&&t.children[Ke])&&YT(t.children[Ke],i,r,n)}}function
nd(t,i,e){return i.every((n,s)=>WT[e](t[s].parameters,n.parameters))}class
kr{constructor(i,e,n){this.root=i,this.queryParams=e,this.fragment=n}get
queryParamMap(){return
this._queryParamMap||(this._queryParamMap=Vo(this.queryParams)),this._queryParamMap}toString(){ret
urn h8.serialize(this)}}class
Xe{constructor(i,e){this.segments=i,this.children=e,this.parent=null,xn(e,(n,s)=>n.parent=this)}hasChildren(){return
this.numberOfChildren>0}get numberOfChildren(){return
Object.keys(this.children).length}toString(){return id(this)}}class
Cl{constructor(i,e){this.path=i,this.parameters=e}get parameterMap(){return
this._parameterMap||(this._parameterMap=Vo(this.parameters)),this._parameterMap}toString(){return
n2(this)}}function Ir(t,i){return
t.length===i.length&&t.every((e,n)=>e.path===i[n].path)}class ZT{}class
XT{parse(i){const e=new w8(i);return new
kr(e.parseRootSegment(),e.parseQueryParams(),e.parseFragment())}serialize(i){const
e=`/${yl(i.root,!0)}`,n=function g8(t){const i=Object.keys(t).map(e=>{const
n=t[e];return
Array.isArray(n)?n.map(s=>`${sd(e)}=${sd(s)}`).join("&"):`${sd(e)}=${sd(n)}`}).filter(e=>!!e);return
i.length?`?${i.join("&")}`:""}(i.queryParams),s="string"==typeof
i.fragment?`#${function m8(t){return encodeURI(t)}(i.fragment)}`:"";
return`${e}${n}${s}`}}const h8=new XT;function id(t){return
t.segments.map(i=>n2(i)).join("/")}function
yl(t,i){if(!t.hasChildren())return id(t);if(i){const
e=t.children[Ke]?yl(t.children[Ke],!1):"",n=[];return
xn(t.children,(s,r)=>{r!==Ke&&n.push(`${r}:${yl(s,!1)}`)}),n.length>0?`${e}(${n.join("//")})`:e}{const
e=function p8(t,i){let e=[];return
xn(t.children,(n,s)=>{s===Ke&&(e=e.concat(i(n,s)))}),xn(t.children,(n,s)=>{s!==Ke&&(e=e.concat(i(n,s)))}),e}(t,(n,s)=>s===Ke?[yl(t.children[Ke],!1)]:[`${s}:${yl(n,!1)}`]);return
1===Object.keys(t.children).length&&null!=t.children[Ke]?`${id(t)}/${e[0]}`:`${id(t)}/(${e.join("//")})`}}function
e2(t){return
encodeURIComponent(t).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function
sd(t){return e2(t).replace(/%3B/gi,";")}function ig(t){return
e2(t).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function
rd(t){return decodeURIComponent(t)}function t2(t){return
rd(t.replace(/\+/g,"%20"))}funct
ion n2(t){return`${ig(t.path)}${function f8(t){return
Object.keys(t).map(i=>`;${ig(i)}=${ig(t[i])}`).join("")}(t.parameters)}`}const
_8=/^[^\/()?;=#]+/;function od(t){const i=t.match(_8);return i?i[0]:""}const
b8=/^[^=?&#]+/,C8=/^[^&#]+/;class
w8{constructor(i){this.url=i,this.remaining=i}parseRootSegment(){return
this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new
Xe([],{}):new Xe([],this.parseChildren())}parseQueryParams(){const
i={};if(this.consumeOptional("?"))do{this.parseQueryParam(i)}while(this.consumeOptional("&"));return
i}parseFragment(){return
this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(""===this.remaining)return{};this.consumeOptional("/");const
i=[];for(this.peekStartsWith("(")||i.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),i.push(this.parseSegment());let
e={};this.peekStartsWith("/(")&&(this.capture
("/"),e=this.parseParens(!0));let n={};return
this.peekStartsWith("(")&&(n=this.parseParens(!1)),(i.length>0||Object.keys(e).length>0)&&(n[Ke]=new
Xe(i,e)),n}parseSegment(){const
i=od(this.remaining);if(""===i&&this.peekStartsWith(";"))throw
new Error(`Empty path url segment cannot have parameters:
'${this.remaining}'.`);return this.capture(i),new
Cl(rd(i),this.parseMatrixParams())}parseMatrixParams(){const
i={};for(;this.consumeOptional(";");)this.parseParam(i);return
i}parseParam(i){const e=od(this.remaining);if(!e)return;this.capture(e);let
n="";if(this.consumeOptional("=")){const
s=od(this.remaining);s&&(n=s,this.capture(n))}i[rd(e)]=rd(n)}parseQueryParam(i){const
e=function v8(t){const i=t.match(b8);return
i?i[0]:""}(this.remaining);if(!e)return;this.capture(e);let
n="";if(this.consumeOptional("=")){const o=function y8(t){const
i=t.match(C8);return
i?i[0]:""}(this.remaining);o&&(n=o,this.capture(n))}const
s=t2(e),r=t2(n);if(i.hasOwnProperty(s)){let o=i[s];Array.isArray(o)||(o=[
o],i[s]=o),o.push(r)}else i[s]=r}parseParens(i){const
e={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const
n=od(this.remaining),s=this.remaining[n.length];if("/"!==s&&")"!==s&&";"!==s)throw
new Error(`Cannot parse url '${this.url}'`);let
r;n.indexOf(":")>-1?(r=n.substr(0,n.indexOf(":")),this.capture(r),this.capture(":")):i&&(r=Ke);const
o=this.parseChildren();e[r]=1===Object.keys(o).length?o[Ke]:new
Xe([],o),this.consumeOptional("//")}return e}peekStartsWith(i){return
this.remaining.startsWith(i)}consumeOptional(i){return!!this.peekStartsWith(i)&&(this.remaining=this.remaining.substring(i.length),!0)}capture(i){if(!this.consumeOptional(i))throw
new Error(`Expected "${i}".`)}}class s2{constructor(i){this._root=i}get
root(){return this._root.value}parent(i){const e=this.pathFromRoot(i);return
e.length>1?e[e.length-2]:null}children(i){const e=sg(i,this._root);return
e?e.children.map(n=>n.value):[]}firstChild(i){const e=sg(i,this._root);return
e&&e.chil
dren.length>0?e.children[0].value:null}siblings(i){const e=rg(i,this._root);return
e.length<2?[]:e[e.length-2].children.map(s=>s.value).filter(s=>s!==i)}pathFromRoot(i){return
rg(i,this._root).map(e=>e.value)}}function sg(t,i){if(t===i.value)return i;for(const e
of i.children){const n=sg(t,e);if(n)return n}return null}function
rg(t,i){if(t===i.value)return[i];for(const e of i.children){const
n=rg(t,e);if(n.length)return n.unshift(i),n}return[]}class
Ds{constructor(i,e){this.value=i,this.children=e}toString(){return`TreeNode(${this.value})`}}function
Bo(t){const i={};return t&&t.children.forEach(e=>i[e.value.outlet]=e),i}class
r2 extends s2{constructor(i,e){super(i),this.snapshot=e,og(this,i)}toString(){return
this.snapshot.toString()}}function o2(t,i){const e=function T8(t,i){const o=new
ad([],{},{},"",{},Ke,i,null,t.root,-1,{});return new l2("",new
Ds(o,[]))}(t,i),n=new zi([new Cl("",{})]),s=new zi({}),r=new zi({}),o=new
zi({}),u=new zi(""),h=new Er(n,s,o,u,r,Ke,i,e.root);return h.
snapshot=e.root,new r2(new Ds(h,[]),e)}class
Er{constructor(i,e,n,s,r,o,u,h){this.url=i,this.params=e,this.queryParams=n,this.fragment=s,this.data=r,this.outlet=o,this.component=u,this._futureSnapshot=h}get
routeConfig(){return this._futureSnapshot.routeConfig}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=this.params.pipe(et(i=>Vo(i)))),this._paramMap}get
queryParamMap(){return
this._queryParamMap||(this._queryParamMap=this.queryParams.pipe(et(i=>Vo(i)))),this._queryParamMap}toString(){return
this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function
a2(t,i="emptyOnly"){const e=t.pathFromRoot;let
n=0;if("always"!==i)for(n=e.length-1;n>=1;){const
s=e[n],r=e[n-1];if(s.routeConfig&&""===s.r
outeConfig.path)n--;else{if(r.component)break;n--}}return function S8(t){return
t.reduce((i,e)=>({params:Object.assign(Object.assign({},i.params),e.params),data:Object.assign(Object.assign({},i.data),e.data),resolve:Object.assign(Object.assign({},i.resolve),e._resolvedData)}),{params:{},data:{},resolve:{}})}(e.slice(n))}class
ad{constructor(i,e,n,s,r,o,u,h,b,y,w){this.url=i,this.params=e,this.queryParams=n,this.fragment=s,this.data=r,this.outlet=o,this.component=u,this.routeConfig=h,this._urlSegment=b,this._lastPathIndex=y,this._resolve=w}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=Vo(this.params)),this._paramMap}get queryParamMap(){return
this._queryParamMap||(this._queryParamMap=Vo(this.queryParams)),this._
queryParamMap}toString(){return`Route(url:'${this.url.map(n=>n.toString()).join("/")}',
path:'${this.routeConfig?this.routeConfig.path:""}')`}}class l2 extends
s2{constructor(i,e){super(e),this.url=i,og(this,e)}toString(){return
c2(this._root)}}function
og(t,i){i.value._routerState=t,i.children.forEach(e=>og(t,e))}function c2(t){const
i=t.children.length>0?` { ${t.children.map(c2).join(", ")} }
`:"";return`${t.value}${i}`}function ag(t){if(t.snapshot){const
i=t.snapshot,e=t._futureSnapshot;t.snapshot=e,as(i.queryParams,e.queryParams)||t.queryParams.next(e.queryParams),i.fragment!==e.fragment&&t.fragment.next(e.fragment),as(i.params,e.params)||t.params.next(e.params),function
o8(t,i){if(t.length!==i.length)return!1;for(let
e=0;e<t.length;++e)if(!as(t[e],i[e]))return!1;return!0}(i.url,e.url)||t.url.next(e.url),as(i.data,e.data)||t.data.next(e.data)}else
t.snapshot=t._futureSnapshot,t.data.next(t._futureSnapshot.data)}function lg(t,i){const
e=as(t.params,i.params)&&function d8(t,i){ret
urn
Ir(t,i)&&t.every((e,n)=>as(e.parameters,i[n].parameters))}(t.url,i.url);return
e&&!(!t.parent!=!i.parent)&&(!t.parent||lg(t.parent,i.parent))}function
wl(t,i,e){if(e&&t.shouldReuseRoute(i.value,e.value.snapshot)){const
n=e.value;n._futureSnapshot=i.value;const s=function D8(t,i,e){return
i.children.map(n=>{for(const s of
e.children)if(t.shouldReuseRoute(n.value,s.value.snapshot))return wl(t,n,s);return
wl(t,n)})}(t,i,e);return new Ds(n,s)}{if(t.shouldAttach(i.value)){const
r=t.retrieve(i.value);if(null!==r){const o=r.route;return
o.value._futureSnapshot=i.value,o.children=i.children.map(u=>wl(t,u)),o}}const
n=function M8(t){return new Er(new zi(t.url),new zi(t.params),new zi(t.queryParams),new
zi(t.fragment),new
zi(t.data),t.outlet,t.component,t)}(i.value),s=i.children.map(r=>wl(t,r));return new
Ds(n,s)}}function ld(t){return"object"==typeof
t&&null!=t&&!t.outlets&&!t.segmentPath}function
Tl(t){return"object"==typeof t&&null!=t&&t.outlets}function
cg(t,i,e,n,s){let r={};if(n&&xn
(n,(u,h)=>{r[h]=Array.isArray(u)?u.map(b=>`${b}`):`${u}`}),t===i)return new
kr(e,r,s);const o=u2(t,i,e);return new kr(o,r,s)}function u2(t,i,e){const n={};return
xn(t.children,(s,r)=>{n[r]=s===i?e:u2(s,i,e)}),new Xe(t.segments,n)}class
d2{constructor(i,e,n){if(this.isAbsolute=i,this.numberOfDoubleDots=e,this.commands=n,i&&n.length>0&&ld(n[0]))throw
new Error("Root segment cannot have matrix parameters");const
s=n.find(Tl);if(s&&s!==$T(n))throw new Error("{outlets:{}} has to be the last
command")}toRoot(){return
this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class
ug{constructor(i,e,n){this.segmentGroup=i,this.processChildren=e,this.index=n}}function
p2(t,i,e){if(t||(t=new Xe([],{})),0===t.segments.length&&t.hasChildren())return
cd(t,i,e);const n=function O8(t,i,e){let n=0,s=i;const
r={match:!1,pathIndex:0,commandIndex:0};for(;s<t.segments.length;){if(n>=e.length)return
r;const o=t.segments[s],u=e[n];if(Tl(u))break;const
h=`${u}`,b=n<e.length-1?e[n+1]:null;if(s>0&&
void 0===h)break;if(h&&b&&"object"==typeof b&&void
0===b.outlets){if(!m2(h,b,o))return r;n+=2}else{if(!m2(h,{},o))return
r;n++}s++}return{match:!0,pathIndex:s,commandIndex:n}}(t,i,e),s=e.slice(n.commandIndex);if(n.match&&n.pathIndex<t.segments.length){const
r=new Xe(t.segments.slice(0,n.pathIndex),{});return r.children[Ke]=new
Xe(t.segments.slice(n.pathIndex),t.children),cd(r,0,s)}return
n.match&&0===s.length?new
Xe(t.segments,{}):n.match&&!t.hasChildren()?dg(t,i,e):n.match?cd(t,0,s):dg(t,i,e)}function
cd(t,i,e){if(0===e.length)return new Xe(t.segments,{});{const n=function L8(t){return
Tl(t[0])?t[0].outlets:{[Ke]:t}}(e),s={};return xn(n,(r,o)=>{"string"==typeof
r&&(r=[r]),null!==r&&(s[o]=p2(t.children[o],i,r))}),xn(t.children,(r,o)=>{void
0===n[o]&&(s[o]=r)}),new Xe(t.segments,s)}}function dg(t,i,e){const
n=t.segments.slice(0,i);let s=0;for(;s<e.length;){const r=e[s];if(Tl(r)){const
h=A8(r.outlets);return new Xe(n,h)}if(0===s&&ld(e[0])){n.push(new
Cl(t.segments[i].path,h2(e[0]))),s
++;continue}const
o=Tl(r)?r.outlets[Ke]:`${r}`,u=s<e.length-1?e[s+1]:null;o&&u&&ld(u)?(n.push(new
Cl(o,h2(u))),s+=2):(n.push(new Cl(o,{})),s++)}return new Xe(n,{})}function A8(t){const
i={};return xn(t,(e,n)=>{"string"==typeof
e&&(e=[e]),null!==e&&(i[n]=dg(new Xe([],{}),0,e))}),i}function h2(t){const
i={};return xn(t,(e,n)=>i[n]=`${e}`),i}function m2(t,i,e){return
t==e.path&&as(i,e.parameters)}class
F8{constructor(i,e,n,s){this.routeReuseStrategy=i,this.futureState=e,this.currState=n,this.forwardEvent=s}activate(i){const
e=this.futureState._root,n=this.currState?this.currState._root:null;this.deactivateChildRoutes(e,n,i),ag(this.futureState.root),this.activateChildRoutes(e,n,i)}deactivateChildRoutes(i,e,n){const
s=Bo(e);i.children.forEach(r=>{const
o=r.value.outlet;this.deactivateRoutes(r,s[o],n),delete
s[o]}),xn(s,(r,o)=>{this.deactivateRouteAndItsChildren(r,n)})}deactivateRoutes(i,e,n){const
s=i.value,r=e?e.value:null;if(s===r)if(s.component){const
o=n.getContext(s.outlet);o&&this
.deactivateChildRoutes(i,e,o.children)}else this.deactivateChildRoutes(i,e,n);else
r&&this.deactivateRouteAndItsChildren(e,n)}deactivateRouteAndItsChildren(i,e){i.value.component&&this.routeReuseStrategy.shouldDetach(i.value.snapshot)?this.detachAndStoreRouteSubtree(i,e):this.deactivateRouteAndOutlet(i,e)}detachAndStoreRouteSubtree(i,e){const
n=e.getContext(i.value.outlet),s=n&&i.value.component?n.children:e,r=Bo(i);for(const
o of
Object.keys(r))this.deactivateRouteAndItsChildren(r[o],s);if(n&&n.outlet){const
o=n.outlet.detach(),u=n.children.onOutletDeactivated();this.routeReuseStrategy.store(i.value.snapshot,{componentRef:o,route:i,contexts:u})}}deactivateRouteAndOutlet(i,e){const
n=e.getContext(i.value.outlet),s=n&&i.value.component?n.children:e,r=Bo(i);for(const
o of
Object.keys(r))this.deactivateRouteAndItsChildren(r[o],s);n&&n.outlet&&(n.outlet.deactivate(),n.children.onOutletDeactivated(),n.attachRef=null,n.resolver=null,n.route=null)}activateChildRoutes(i,e,n){const
s=Bo(e);i
.children.forEach(r=>{this.activateRoutes(r,s[r.value.outlet],n),this.forwardEvent(new
n8(r.value.snapshot))}),i.children.length&&this.forwardEvent(new
e8(i.value.snapshot))}activateRoutes(i,e,n){const
s=i.value,r=e?e.value:null;if(ag(s),s===r)if(s.component){const
o=n.getOrCreateContext(s.outlet);this.activateChildRoutes(i,e,o.children)}else
this.activateChildRoutes(i,e,n);else if(s.component){const
o=n.getOrCreateContext(s.outlet);if(this.routeReuseStrategy.shouldAttach(s.snapshot)){const
u=this.routeReuseStrategy.retrieve(s.snapshot);this.routeReuseStrategy.store(s.snapshot,null),o.children.onOutletReAttached(u.contexts),o.attachRef=u.componentRef,o.route=u.route.value,o.outlet&&o.outlet.attach(u.componentRef,u.route.value),ag(u.route.value),this.activateChildRoutes(i,null,o.children)}else{const
u=function N8(t){for(let i=t.parent;i;i=i.parent){const
e=i.routeConfig;if(e&&e._loadedConfig)return
e._loadedConfig;if(e&&e.component)return null}return
null}(s.snapshot),h=u?u.module.co
mponentFactoryResolver:null;o.attachRef=null,o.route=s,o.resolver=h,o.outlet&&o.outlet.activateWith(s,h),this.activateChildRoutes(i,null,o.children)}}else
this.activateChildRoutes(i,null,n)}}class
pg{constructor(i,e){this.routes=i,this.module=e}}function
Ys(t){return"function"==typeof t}function Rr(t){return t instanceof kr}const
Sl=Symbol("INITIAL_VALUE");function xl(){return qi(t=>function MB(...t){let
i,e;return Vr(t[t.length-1])&&(e=t.pop()),"function"==typeof
t[t.length-1]&&(i=t.pop()),1===t.length&&Nr(t[0])&&(t=t[0]),Pd(t,e).lift(new
kB(i))}(t.map(i=>i.pipe(br(1),Ju(Sl)))).pipe(FT((i,e)=>{let n=!1;return
e.reduce((s,r,o)=>s!==Sl?s:(r===Sl&&(n=!0),n||!1!==r&&o!==e.length-1&&!Rr(r)?s:r),i)},Sl),Us(i=>i!==Sl),et(i=>Rr(i)?i:!0===i),br(1)))}class
U8{constructor(){this.outlet=null,this.route=null,this.resolver=null,this.children=new
Dl,this.attachRef=null}}class Dl{constructor(){this.contexts=new
Map}onChildOutletCreated(i,e){const n=this.getOrCreateContext(i);n.outlet=e,this.contex
ts.set(i,n)}onChildOutletDestroyed(i){const
e=this.getContext(i);e&&(e.outlet=null,e.attachRef=null)}onOutletDeactivated(){const
i=this.contexts;return this.contexts=new
Map,i}onOutletReAttached(i){this.contexts=i}getOrCreateContext(i){let
e=this.getContext(i);return e||(e=new U8,this.contexts.set(i,e)),e}getContext(i){return
this.contexts.get(i)||null}}let Ml=(()=>{class
t{constructor(e,n,s,r,o){this.parentContexts=e,this.location=n,this.resolver=s,this.changeDetector=o,this.activated=null,this._activatedRoute=null,this.activateEvents=new
H,this.deactivateEvents=new H,this.attachEvents=new H,this.detachEvents=new
H,this.name=r||Ke,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,n){this.activated=e,this._activatedRoute=n,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,n){if(this.isActivated)throw
new Error("Cannot activate an already activated
outlet");this._activatedRoute=e;const
o=(n=n||this.resolver).resolveComponentFactory(e._futureSnapshot.routeConfig.component),u=this.p
arentContexts.getOrCreateContext(this.name).children,h=new
z8(e,u,this.location.injector);this.activated=this.location.createComponent(o,this.location.length,h),this.changeDetector.markForCheck(),this.activateEvents.emit(this.activated.instance)}}return
t.\u0275fac=function(e){return
new(e||t)(D(Dl),D(vi),D(Va),ua("name"),D(rt))},t.\u0275dir=le({type:t,selectors:[["router-outlet"]],outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"]}),t})();class
z8{constructor(i,e,n){this.route=i,this.childContexts=e,this.parent=n}get(i,e){return
i===Er?this.route:i===Dl?this.childContexts:this.parent.get(i,e)}}let f2=(()=>{class
t{}return t.\u0275fac=function(e){return
new(e||t)},t.\u0275cmp=z({type:t,selectors:[["ng-component"]],decls:1,vars:0,template:function(e,n){1&e&&k(0,"router-outlet")},directives:[Ml],encapsulation:2}),t})();function
g2(t,i=""){for(let e=0;e<t.length;e++){const n=t[e];j8(n,$8(i,n))}}function
j8(t
,i){t.children&&g2(t.children,i)}function $8(t,i){return
i?t||i.path?t&&!i.path?`${t}/`:!t&&i.path?i.path:`${t}/${i.path}`:"":t}function
hg(t){const
i=t.children&&t.children.map(hg),e=i?Object.assign(Object.assign({},t),{children:i}):Object.assign({},t);return!e.component&&(i||e.loadChildren)&&e.outlet&&e.outlet!==Ke&&(e.component=f2),e}function
xi(t){return t.outlet||Ke}function _2(t,i){const e=t.filter(n=>xi(n)===i);return
e.push(...t.filter(n=>xi(n)!==i)),e}const
b2={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function
ud(t,i,e){var
n;if(""===i.path)return"full"===i.pathMatch&&(t.hasChildren()||e.length>0)?Object.assign({},b2):{matched:!0,consumedSegments:[],remainingSegments:e,parameters:{},positionalParamSegments:{}};const
r=(i.matcher||r8)(e,t,i);if(!r)return Object.assign({},b2);const
o={};xn(r.posParams,(h,b)=>{o[b]=h.path});const
u=r.consumed.length>0?Object.assign(Object.assign({},o),r.consumed[r.consumed.length-1].paramete
rs):o;return{matched:!0,consumedSegments:r.consumed,remainingSegments:e.slice(r.consumed.length),parameters:u,positionalParamSegments:null!==(n=r.posParams)&&void
0!==n?n:{}}}function
dd(t,i,e,n,s="corrected"){if(e.length>0&&function Q8(t,i,e){return
e.some(n=>pd(t,i,n)&&xi(n)!==Ke)}(t,e,n)){const o=new Xe(i,function
K8(t,i,e,n){const s={};s[Ke]=n,n._sourceSegment=t,n._segmentIndexShift=i.length;for(const
r of e)if(""===r.path&&xi(r)!==Ke){const o=new
Xe([],{});o._sourceSegment=t,o._segmentIndexShift=i.length,s[xi(r)]=o}return s}(t,i,n,new
Xe(e,t.children)));return
o._sourceSegment=t,o._segmentIndexShift=i.length,{segmentGroup:o,slicedSegments:[]}}if(0===e.length&&function
J8(t,i,e){return e.some(n=>pd(t,i,n))}(t,e,n)){const o=new Xe(t.segments,function
W8(t,i,e,n,s,r){const o={};for(const u of n)if(pd(t,e,u)&&!s[xi(u)]){const h=new
Xe([],{});h._sourceSegment=t,h._segmentIndexShift="legacy"===r?t.segments.length:i.length,o[xi(u)]=h}return
Object.assign(Object.assign({},s),o)}(t,i,e,
n,t.children,s));return
o._sourceSegment=t,o._segmentIndexShift=i.length,{segmentGroup:o,slicedSegments:e}}const
r=new Xe(t.segments,t.children);return
r._sourceSegment=t,r._segmentIndexShift=i.length,{segmentGroup:r,slicedSegments:e}}function
pd(t,i,e){return(!(t.hasChildren()||i.length>0)||"full"!==e.pathMatch)&&""===e.path}function
v2(t,i,e,n){return!!(xi(t)===n||n!==Ke&&pd(i,e,t))&&("**"===t.path||ud(i,t,e).matched)}function
C2(t,i,e){return 0===i.length&&!t.children[e]}class
hd{constructor(i){this.segmentGroup=i||null}}class
y2{constructor(i){this.urlTree=i}}function kl(t){return tl(new hd(t))}function
w2(t){return tl(new y2(t))}function Y8(t){return tl(new Error(`Only absolute redirects can
have named outlets. redirectTo: '${t}'`))}class
eH{constructor(i,e,n,s,r){this.configLoader=e,this.urlSerializer=n,this.urlTree=s,this.config=r,this.allowRedirects=!0,this.ngModule=i.get(_s)}apply(){const
i=dd(this.urlTree.root,[],[],this.config).segmentGroup,e=new Xe(i.segments,i.children)
;return
this.expandSegmentGroup(this.ngModule,this.config,e,Ke).pipe(et(r=>this.createUrlTree(mg(r),this.urlTree.queryParams,this.urlTree.fragment))).pipe(Mr(r=>{if(r
instanceof y2)return this.allowRedirects=!1,this.match(r.urlTree);throw r instanceof
hd?this.noMatchError(r):r}))}match(i){return
this.expandSegmentGroup(this.ngModule,this.config,i.root,Ke).pipe(et(s=>this.createUrlTree(mg(s),i.queryParams,i.fragment))).pipe(Mr(s=>{throw
s instanceof hd?this.noMatchError(s):s}))}noMatchError(i){return new Error(`Cannot match
any routes. URL Segment: '${i.segmentGroup}'`)}createUrlTree(i,e,n){const
s=i.segments.length>0?new Xe([],{[Ke]:i}):i;return new
kr(s,e,n)}expandSegmentGroup(i,e,n,s){return
0===n.segments.length&&n.hasChildren()?this.expandChildren(i,e,n).pipe(et(r=>new
Xe([],r))):this.expandSegment(i,n,e,n.segments,s,!0)}expandChildren(i,e,n){const
s=[];for(const r of
Object.keys(n.children))"primary"===r?s.unshift(r):s.push(r);return
Mn(s).pipe(_r(r=>{const o=n.children[r],u=_2
(e,r);return
this.expandSegmentGroup(i,u,o,r).pipe(et(h=>({segment:h,outlet:r})))}),FT((r,o)=>(r[o.outlet]=o.segment,r),{}),function
qB(t,i){const e=arguments.length>=2;return
n=>n.pipe(t?Us((s,r)=>t(s,r,n)):Bl,eg(1),e?VT(i):NT(()=>new
td))}())}expandSegment(i,e,n,s,r,o){return
Mn(n).pipe(_r(u=>this.expandSegmentAgainstRoute(i,e,n,u,s,r,o).pipe(Mr(b=>{if(b
instanceof hd)return oe(null);throw b}))),No(u=>!!u),Mr((u,h)=>{if(u instanceof
td||"EmptyError"===u.name)return C2(e,s,r)?oe(new Xe([],{})):kl(e);throw
u}))}expandSegmentAgainstRoute(i,e,n,s,r,o,u){return v2(s,e,r,o)?void
0===s.redirectTo?this.matchSegmentAgainstRoute(i,e,s,r,o):u&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(i,e,n,s,r,o):kl(e):kl(e)}expandSegmentAgainstRouteUsingRedirect(i,e,n,s,r,o){return"**"===s.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(i,n,s,o):this.expandRegularSegmentAgainstRouteUsingRedirect(i,e,n,s,r,o)}expandWildCardWithParamsAgainstRouteUsingRedirect(i,e,n,s){const
r=this.applyRedirectCommands([],n.redirectTo,{});return
n.redirectTo.startsWith("/")?w2(r):this.lineralizeSegments(n,r).pipe(yn(o=>{const
u=new Xe(o,{});return
this.expandSegment(i,u,e,o,s,!1)}))}expandRegularSegmentAgainstRouteUsingRedirect(i,e,n,s,r,o){const{matched:u,consumedSegments:h,remainingSegments:b,positionalParamSegments:y}=ud(e,s,r);if(!u)return
kl(e);const w=this.applyRedirectCommands(h,s.redirectTo,y);return
s.redirectTo.startsWith("/")?w2(w):this.lineralizeSegments(s,w).pipe(yn(M=>this.expandSegment(i,e,n,M.concat(b),o,!1)))}matchSegmentAgainstRoute(i,e,n,s,r){if("**"===n.path)return
n.loadChildren?(n._loadedConfig?oe(n._loadedConfig):this.configLoader.load(i.injector,n)).pipe(et(w=>(n._loadedConfig=w,new
Xe(s,{})))):oe(new
Xe(s,{}));const{matched:o,consumedSegments:u,remainingSegments:h}=ud(e,n,s);return
o?this.getChildConfig(i,n,s).pipe(yn(y=>{const
w=y.module,M=y.routes,{segmentGroup:E,slicedSegments:L}=dd(e,u,h,M),O=new
Xe(E.segments,E.children);if(0===L.length&&O
.hasChildren())return this.expandChildren(w,M,O).pipe(et(J=>new
Xe(u,J)));if(0===M.length&&0===L.length)return oe(new Xe(u,{}));const
N=xi(n)===r;return this.expandSegment(w,O,M,L,N?Ke:r,!0).pipe(et(P=>new
Xe(u.concat(P.segments),P.children)))})):kl(e)}getChildConfig(i,e,n){return
e.children?oe(new pg(e.children,i)):e.loadChildren?void
0!==e._loadedConfig?oe(e._loadedConfig):this.runCanLoadGuards(i.injector,e,n).pipe(yn(s=>s?this.configLoader.load(i.injector,e).pipe(et(r=>(e._loadedConfig=r,r))):function
Z8(t){return tl(ng(`Cannot load children because the guard of the route "path:
'${t.path}'" returned false`))}(e))):oe(new
pg([],i))}runCanLoadGuards(i,e,n){const s=e.canLoad;if(!s||0===s.length)return
oe(!0);const r=s.map(o=>{const u=i.get(o);let h;if(function B8(t){return
t&&Ys(t.canLoad)}(u))h=u.canLoad(e,n);else{if(!Ys(u))throw new Error("Invalid
CanLoad guard");h=u(e,n)}return ls(h)});return
oe(r).pipe(xl(),li(o=>{if(!Rr(o))return;const u=ng(`Redirecting to
"${this.urlSerialize
r.serialize(o)}"`);throw u.url=o,u}),et(o=>!0===o))}lineralizeSegments(i,e){let
n=[],s=e.root;for(;;){if(n=n.concat(s.segments),0===s.numberOfChildren)return
oe(n);if(s.numberOfChildren>1||!s.children[Ke])return
Y8(i.redirectTo);s=s.children[Ke]}}applyRedirectCommands(i,e,n){return
this.applyRedirectCreatreUrlTree(e,this.urlSerializer.parse(e),i,n)}applyRedirectCreatreUrlTree(i,e,n,s){const
r=this.createSegmentGroup(i,e.root,n,s);return new
kr(r,this.createQueryParams(e.queryParams,this.urlTree.queryParams),e.fragment)}createQueryParams(i,e){const
n={};return xn(i,(s,r)=>{if("string"==typeof
s&&s.startsWith(":")){const u=s.substring(1);n[r]=e[u]}else
n[r]=s}),n}createSegmentGroup(i,e,n,s){const r=this.createSegments(i,e.segments,n,s);let
o={};return xn(e.children,(u,h)=>{o[h]=this.createSegmentGroup(i,u,n,s)}),new
Xe(r,o)}createSegments(i,e,n,s){return
e.map(r=>r.path.startsWith(":")?this.findPosParam(i,r,s):this.findOrReturn(r,n))}findPosParam(i,e,n){const
s=n[e.path.substring(1)];
if(!s)throw new Error(`Cannot redirect to '${i}'. Cannot find
'${e.path}'.`);return s}findOrReturn(i,e){let n=0;for(const s of
e){if(s.path===i.path)return e.splice(n),s;n++}return i}}function mg(t){const
i={};for(const n of Object.keys(t.children)){const
r=mg(t.children[n]);(r.segments.length>0||r.hasChildren())&&(i[n]=r)}return
function tH(t){if(1===t.numberOfChildren&&t.children[Ke]){const
i=t.children[Ke];return new Xe(t.segments.concat(i.segments),i.children)}return t}(new
Xe(t.segments,i))}class
T2{constructor(i){this.path=i,this.route=this.path[this.path.length-1]}}class
md{constructor(i,e){this.component=i,this.route=e}}function iH(t,i,e){const
n=t._root;return Il(n,i?i._root:null,e,[n.value])}function fd(t,i,e){const n=function
rH(t){if(!t)return null;for(let i=t.parent;i;i=i.parent){const
e=i.routeConfig;if(e&&e._loadedConfig)return e._loadedConfig}return
null}(i);return(n?n.module.injector:e).get(t)}function
Il(t,i,e,n,s={canDeactivateChecks:[],canActivateChecks:[]}){cons
t r=Bo(i);return t.children.forEach(o=>{(function
oH(t,i,e,n,s={canDeactivateChecks:[],canActivateChecks:[]}){const
r=t.value,o=i?i.value:null,u=e?e.getContext(t.value.outlet):null;if(o&&r.routeConfig===o.routeConfig){const
h=function aH(t,i,e){if("function"==typeof e)return
e(t,i);switch(e){case"pathParamsChange":return!Ir(t.url,i.url);case"pathParamsOrQueryParamsChange":return!Ir(t.url,i.url)||!as(t.queryParams,i.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!lg(t,i)||!as(t.queryParams,i.queryParams);default:return!lg(t,i)}}(o,r,r.routeConfig.runGuardsAndResolvers);h?s.canActivateChecks.push(new
T2(n)):(r.data=o.data,r._resolvedData=o._resolvedData),Il(t,i,r.component?u?u.children:null:e,n,s),h&&u&&u.outlet&&u.outlet.isActivated&&s.canDeactivateChecks.push(new
md(u.outlet.component,o))}else o&&El(i,u,s),s.canActivateChecks.push(new
T2(n)),Il(t,null,r.component?u?u.children:null:e,n,s)})(o,r[o.value.outlet],e,n.concat([o.value]),s),delete
r[o.value.outlet
]}),xn(r,(o,u)=>El(o,e.getContext(u),s)),s}function El(t,i,e){const
n=Bo(t),s=t.value;xn(n,(r,o)=>{El(r,s.component?i?i.children.getContext(o):null:i,e)}),e.canDeactivateChecks.push(new
md(s.component&&i&&i.outlet&&i.outlet.isActivated?i.outlet.component:null,s))}class
gH{}function S2(t){return new Je(i=>i.error(t))}class
bH{constructor(i,e,n,s,r,o){this.rootComponentType=i,this.config=e,this.urlTree=n,this.url=s,this.paramsInheritanceStrategy=r,this.relativeLinkResolution=o}recognize(){const
i=dd(this.urlTree.root,[],[],this.config.filter(o=>void
0===o.redirectTo),this.relativeLinkResolution).segmentGroup,e=this.processSegmentGroup(this.config,i,Ke);if(null===e)return
null;const n=new
ad([],Object.freeze({}),Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,{},Ke,this.rootComponentType,null,this.urlTree.root,-1,{}),s=new
Ds(n,e),r=new l2(this.url,s);return
this.inheritParamsAndData(r._root),r}inheritParamsAndData(i){const
e=i.value,n=a2(e,this.paramsIn
heritanceStrategy);e.params=Object.freeze(n.params),e.data=Object.freeze(n.data),i.children.forEach(s=>this.inheritParamsAndData(s))}processSegmentGroup(i,e,n){return
0===e.segments.length&&e.hasChildren()?this.processChildren(i,e):this.processSegment(i,e,e.segments,n)}processChildren(i,e){const
n=[];for(const r of Object.keys(e.children)){const
o=e.children[r],u=_2(i,r),h=this.processSegmentGroup(u,o,r);if(null===h)return
null;n.push(...h)}const s=x2(n);return function
vH(t){t.sort((i,e)=>i.value.outlet===Ke?-1:e.value.outlet===Ke?1:i.value.outlet.localeCompare(e.value.outlet))}(s),s}processSegment(i,e,n,s){for(const
r of i){const o=this.processSegmentAgainstRoute(r,e,n,s);if(null!==o)return o}return
C2(e,n,s)?[]:null}processSegmentAgainstRoute(i,e,n,s){if(i.redirectTo||!v2(i,e,n,s))return
null;let r,o=[],u=[];if("**"===i.path){const
E=n.length>0?$T(n).parameters:{};r=new
ad(n,E,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,k2(i),xi(i),i.component,
i,D2(e),M2(e)+n.length,I2(i))}else{const E=ud(e,i,n);if(!E.matched)return
null;o=E.consumedSegments,u=E.remainingSegments,r=new
ad(o,E.parameters,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,k2(i),xi(i),i.component,i,D2(e),M2(e)+o.length,I2(i))}const
h=function CH(t){return
t.children?t.children:t.loadChildren?t._loadedConfig.routes:[]}(i),{segmentGroup:b,slicedSegments:y}=dd(e,o,u,h.filter(E=>void
0===E.redirectTo),this.relativeLinkResolution);if(0===y.length&&b.hasChildren()){const
E=this.processChildren(h,b);return null===E?null:[new
Ds(r,E)]}if(0===h.length&&0===y.length)return[new Ds(r,[])];const
w=xi(i)===s,M=this.processSegment(h,b,y,w?Ke:s);return null===M?null:[new
Ds(r,M)]}}function yH(t){const i=t.value.routeConfig;return
i&&""===i.path&&void 0===i.redirectTo}function x2(t){const
i=[],e=new Set;for(const n of t){if(!yH(n)){i.push(n);continue}const
s=i.find(r=>n.value.routeConfig===r.value.routeConfig);void
0!==s?(s.children.push(...n.chi
ldren),e.add(s)):i.push(n)}for(const n of e){const s=x2(n.children);i.push(new
Ds(n.value,s))}return i.filter(n=>!e.has(n))}function D2(t){let
i=t;for(;i._sourceSegment;)i=i._sourceSegment;return i}function M2(t){let
i=t,e=i._segmentIndexShift?i._segmentIndexShift:0;for(;i._sourceSegment;)i=i._sourceSegment,e+=i._segmentIndexShift?i._segmentIndexShift:0;return
e-1}function k2(t){return t.data||{}}function I2(t){return t.resolve||{}}function
E2(t){return[...Object.keys(t),...Object.getOwnPropertySymbols(t)]}function fg(t){return
qi(i=>{const e=t(i);return e?Mn(e).pipe(et(()=>i)):oe(i)})}class IH extends class
kH{shouldDetach(i){return!1}store(i,e){}shouldAttach(i){return!1}retrieve(i){return
null}shouldReuseRoute(i,e){return i.routeConfig===e.routeConfig}}{}const gg=new
be("ROUTES");class
R2{constructor(i,e,n,s){this.injector=i,this.compiler=e,this.onLoadStartListener=n,this.onLoadEndListener=s}load(i,e){if(e._loader$)return
e._loader$;this.onLoadStartListener&&this.onLoadStartListen
er(e);const
s=this.loadModuleFactory(e.loadChildren).pipe(et(r=>{this.onLoadEndListener&&this.onLoadEndListener(e);const
o=r.create(i);return new pg(jT(o.injector.get(gg,void
0,xe.Self|xe.Optional)).map(hg),o)}),Mr(r=>{throw e._loader$=void 0,r}));return
e._loader$=new Fg(s,()=>new ct).pipe(Fd()),e._loader$}loadModuleFactory(i){return
ls(i()).pipe(yn(e=>e instanceof
iC?oe(e):Mn(this.compiler.compileModuleAsync(e))))}}class
RH{shouldProcessUrl(i){return!0}extract(i){return i}merge(i,e){return i}}function
LH(t){throw t}function OH(t,i,e){return i.parse("/")}function L2(t,i){return
oe(null)}const
AH={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},PH={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};let
It=(()=>{class
t{constructor(e,n,s,r,o,u,h){this.rootComponentType=e,this.urlSerializer=n,this.rootContexts=s,this.location=r,this.config=h,this.lastSuccessfulNavigation=null,this.currentNavigation=null,this.disposed=!1,this.nav
igationId=0,this.currentPageId=0,this.isNgZoneEnabled=!1,this.events=new
ct,this.errorHandler=LH,this.malformedUriErrorHandler=OH,this.navigated=!1,this.lastSuccessfulId=-1,this.hooks={beforePreactivation:L2,afterPreactivation:L2},this.urlHandlingStrategy=new
RH,this.routeReuseStrategy=new
IH,this.onSameUrlNavigation="ignore",this.paramsInheritanceStrategy="emptyOnly",this.urlUpdateStrategy="deferred",this.relativeLinkResolution="corrected",this.canceledNavigationResolution="replace",this.ngModule=o.get(_s),this.console=o.get(DR);const
w=o.get(nt);this.isNgZoneEnabled=w instanceof
nt&&nt.isInAngularZone(),this.resetConfig(h),this.currentUrlTree=function
a8(){return new kr(new
Xe([],{}),{},null)}(),this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.configLoader=new
R2(o,u,M=>this.triggerEvent(new HT(M)),M=>this.triggerEvent(new
qT(M))),this.routerState=o2(this.currentUrlTree,this.rootComponentType),this.transitions=new
zi({id:0,targetPageId:0,currentUrlT
ree: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 n=this.events;return
e.pipe(Us(s=>0!==s.id),et(s=>Object.assign(Object.assign({},s),{extractedUrl:this.urlHandlingStrategy.extract(s.rawUrl)})),qi(s=>{let
r=!1,o=!1;return
oe(s).pipe(li(u=>{this.currentNavigation={id:u.id,initialUrl:u.currentRawUrl,extractedU
rl:u.extractedUrl,trigger:u.source,extras:u.extras,previousNavigation:this.lastSuccessfulNavigation?Object.assign(Object.assign({},this.lastSuccessfulNavigation),{previousNavigation:null}):null}}),qi(u=>{const
h=this.browserUrlTree.toString(),b=!this.navigated||u.extractedUrl.toString()!==h||h!==this.currentUrlTree.toString();if(("reload"===this.onSameUrlNavigation||b)&&this.urlHandlingStrategy.shouldProcessUrl(u.rawUrl))return
O2(u.source)&&(this.browserUrlTree=u.extractedUrl),oe(u).pipe(qi(w=>{const
M=this.transitions.getValue();return n.next(new
tg(w.id,this.serializeUrl(w.extractedUrl),w.source,w.restoredState)),M!==this.transitions.getValue()?Io:Promise.resolve(w)}),function
nH(t,i,e,n){return qi(s=>function X8(t,i,e,n,s){return new
eH(t,i,e,n,s).apply()}(t,i,e,s.extractedUrl,n).pipe(et(r=>Object.assign(Object.assign({},s),{urlAfterRedirects:r}))))}(this.ngModule.injector,this.configLoader,this.urlSerializer,this.config),li(w=>{this.currentNavigation=Object.assign(Object.assign
({},this.currentNavigation),{finalUrl:w.urlAfterRedirects})}),function
wH(t,i,e,n,s){return yn(r=>function
_H(t,i,e,n,s="emptyOnly",r="legacy"){try{const o=new
bH(t,i,e,n,s,r).recognize();return null===o?S2(new gH):oe(o)}catch(o){return
S2(o)}}(t,i,r.urlAfterRedirects,e(r.urlAfterRedirects),n,s).pipe(et(o=>Object.assign(Object.assign({},r),{targetSnapshot:o}))))}(this.rootComponentType,this.config,w=>this.serializeUrl(w),this.paramsInheritanceStrategy,this.relativeLinkResolution),li(w=>{if("eager"===this.urlUpdateStrategy){if(!w.extras.skipLocationChange){const
E=this.urlHandlingStrategy.merge(w.urlAfterRedirects,w.rawUrl);this.setBrowserUrl(E,w)}this.browserUrlTree=w.urlAfterRedirects}const
M=new
KB(w.id,this.serializeUrl(w.extractedUrl),this.serializeUrl(w.urlAfterRedirects),w.targetSnapshot);n.next(M)}));if(b&&this.rawUrlTree&&this.urlHandlingStrategy.shouldProcessUrl(this.rawUrlTree)){const{id:M,extractedUrl:E,source:L,restoredState:O,extras:N}=u,G=new
tg(M,this.serializeUrl(E),
L,O);n.next(G);const P=o2(E,this.rootComponentType).snapshot;return
oe(Object.assign(Object.assign({},u),{targetSnapshot:P,urlAfterRedirects:E,extras:Object.assign(Object.assign({},N),{skipLocationChange:!1,replaceUrl:!1})}))}return
this.rawUrlTree=u.rawUrl,u.resolve(null),Io}),fg(u=>{const{targetSnapshot:h,id:b,extractedUrl:y,rawUrl:w,extras:{skipLocationChange:M,replaceUrl:E}}=u;return
this.hooks.beforePreactivation(h,{navigationId:b,appliedUrlTree:y,rawUrlTree:w,skipLocationChange:!!M,replaceUrl:!!E})}),li(u=>{const
h=new
QB(u.id,this.serializeUrl(u.extractedUrl),this.serializeUrl(u.urlAfterRedirects),u.targetSnapshot);this.triggerEvent(h)}),et(u=>Object.assign(Object.assign({},u),{guards:iH(u.targetSnapshot,u.currentSnapshot,this.rootContexts)})),function
lH(t,i){return
yn(e=>{const{targetSnapshot:n,currentSnapshot:s,guards:{canActivateChecks:r,canDeactivateChecks:o}}=e;return
0===o.length&&0===r.length?oe(Object.assign(Object.assign({},e),{guardsResult:!0})):function
cH(t,i,e,n
){return Mn(t).pipe(yn(s=>function fH(t,i,e,n,s){const
r=i&&i.routeConfig?i.routeConfig.canDeactivate:null;return
r&&0!==r.length?oe(r.map(u=>{const h=fd(u,i,s);let b;if(function G8(t){return
t&&Ys(t.canDeactivate)}(h))b=ls(h.canDeactivate(t,i,e,n));else{if(!Ys(h))throw new
Error("Invalid CanDeactivate guard");b=ls(h(t,i,e,n))}return
b.pipe(No())})).pipe(xl()):oe(!0)}(s.component,s.route,e,i,n)),No(s=>!0!==s,!0))}(o,n,s,t).pipe(yn(u=>u&&function
V8(t){return"boolean"==typeof t}(u)?function uH(t,i,e,n){return
Mn(i).pipe(_r(s=>el(function pH(t,i){return null!==t&&i&&i(new
XB(t)),oe(!0)}(s.route.parent,n),function dH(t,i){return
null!==t&&i&&i(new t8(t)),oe(!0)}(s.route,n),function mH(t,i,e){const
n=i[i.length-1],r=i.slice(0,i.length-1).reverse().map(o=>function sH(t){const
i=t.routeConfig?t.routeConfig.canActivateChild:null;return
i&&0!==i.length?{node:t,guards:i}:null}(o)).filter(o=>null!==o).map(o=>cu(()=>oe(o.guards.map(h=>{const
b=fd(h,o.node,e);let y;if(function q8(t){return t&&Y
s(t.canActivateChild)}(b))y=ls(b.canActivateChild(n,t));else{if(!Ys(b))throw new
Error("Invalid CanActivateChild guard");y=ls(b(n,t))}return
y.pipe(No())})).pipe(xl())));return oe(r).pipe(xl())}(t,s.path,e),function hH(t,i,e){const
n=i.routeConfig?i.routeConfig.canActivate:null;if(!n||0===n.length)return oe(!0);const
s=n.map(r=>cu(()=>{const o=fd(r,i,e);let u;if(function H8(t){return
t&&Ys(t.canActivate)}(o))u=ls(o.canActivate(i,t));else{if(!Ys(o))throw new
Error("Invalid CanActivate guard");u=ls(o(i,t))}return u.pipe(No())}));return
oe(s).pipe(xl())}(t,s.route,e))),No(s=>!0!==s,!0))}(n,r,t,i):oe(u)),et(u=>Object.assign(Object.assign({},e),{guardsResult:u})))})}(this.ngModule.injector,u=>this.triggerEvent(u)),li(u=>{if(Rr(u.guardsResult)){const
b=ng(`Redirecting to "${this.serializeUrl(u.guardsResult)}"`);throw
b.url=u.guardsResult,b}const h=new
JB(u.id,this.serializeUrl(u.extractedUrl),this.serializeUrl(u.urlAfterRedirects),u.targetSnapshot,!!u.guardsResult);this.triggerEvent(h)}),
Us(u=>!!u.guardsResult||(this.restoreHistory(u),this.cancelNavigationTransition(u,""),!1)),fg(u=>{if(u.guards.canActivateChecks.length)return
oe(u).pipe(li(h=>{const b=new
YB(h.id,this.serializeUrl(h.extractedUrl),this.serializeUrl(h.urlAfterRedirects),h.targetSnapshot);this.triggerEvent(b)}),qi(h=>{let
b=!1;return oe(h).pipe(function TH(t,i){return
yn(e=>{const{targetSnapshot:n,guards:{canActivateChecks:s}}=e;if(!s.length)return
oe(e);let r=0;return Mn(s).pipe(_r(o=>function SH(t,i,e,n){return function
xH(t,i,e,n){const s=E2(t);if(0===s.length)return oe({});const r={};return
Mn(s).pipe(yn(o=>function DH(t,i,e,n){const s=fd(t,i,n);return
ls(s.resolve?s.resolve(i,e):s(i,e))}(t[o],i,e,n).pipe(li(u=>{r[o]=u}))),eg(1),yn(()=>E2(r).length===s.length?oe(r):Io))}(t._resolve,t,i,n).pipe(et(r=>(t._resolvedData=r,t.data=Object.assign(Object.assign({},t.data),a2(t,e).resolve),null)))}(o.route,n,t,i)),li(()=>r++),eg(1),yn(o=>r===s.length?oe(e):Io))})}(this.paramsInheritanceStrategy,this.ngModul
e.injector),li({next:()=>b=!0,complete:()=>{b||(this.restoreHistory(h),this.cancelNavigationTransition(h,"At
least one route resolver didn't emit any value."))}}))}),li(h=>{const b=new
ZB(h.id,this.serializeUrl(h.extractedUrl),this.serializeUrl(h.urlAfterRedirects),h.targetSnapshot);this.triggerEvent(b)}))}),fg(u=>{const{targetSnapshot:h,id:b,extractedUrl:y,rawUrl:w,extras:{skipLocationChange:M,replaceUrl:E}}=u;return
this.hooks.afterPreactivation(h,{navigationId:b,appliedUrlTree:y,rawUrlTree:w,skipLocationChange:!!M,replaceUrl:!!E})}),et(u=>{const
h=function x8(t,i,e){const n=wl(t,i._root,e?e._root:void 0);return new
r2(n,i)}(this.routeReuseStrategy,u.targetSnapshot,u.currentRouterState);return
Object.assign(Object.assign({},u),{targetRouterState:h})}),li(u=>{this.currentUrlTree=u.urlAfterRedirects,this.rawUrlTree=this.urlHandlingStrategy.merge(u.urlAfterRedirects,u.rawUrl),this.routerState=u.targetRouterState,"deferred"===this.urlUpdateStrategy&&(u.extras.skipLocationChange||this.
setBrowserUrl(this.rawUrlTree,u),this.browserUrlTree=u.urlAfterRedirects)}),((t,i,e)=>et(n=>(new
F8(i,n.targetRouterState,n.currentRouterState,e).activate(t),n)))(this.rootContexts,this.routeReuseStrategy,u=>this.triggerEvent(u)),li({next(){r=!0},complete(){r=!0}}),function
zB(t){return i=>i.lift(new jB(t))}(()=>{var
u;r||o||this.cancelNavigationTransition(s,`Navigation ID ${s.id} is not equal to the
current navigation id ${this.navigationId}`),(null===(u=this.currentNavigation)||void
0===u?void
0:u.id)===s.id&&(this.currentNavigation=null)}),Mr(u=>{if(o=!0,function
s8(t){return t&&t[UT]}(u)){const
h=Rr(u.url);h||(this.navigated=!0,this.restoreHistory(s,!0));const b=new
BT(s.id,this.serializeUrl(s.extractedUrl),u.message);n.next(b),h?setTimeout(()=>{const
y=this.urlHandlingStrategy.merge(u.url,this.rawUrlTree),w={skipLocationChange:s.extras.skipLocationChange,replaceUrl:"eager"===this.urlUpdateStrategy||O2(s.source)};this.scheduleNavigation(y,"imperative",null,w,{resolve:s.resolve,r
eject:s.reject,promise:s.promise})},0):s.resolve(!1)}else{this.restoreHistory(s,!0);const
h=new
WB(s.id,this.serializeUrl(s.extractedUrl),u);n.next(h);try{s.resolve(this.errorHandler(u))}catch(b){s.reject(b)}}return
Io}))}))}resetRootComponentType(e){this.rootComponentType=e,this.routerState.root.component=this.rootComponentType}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
n="popstate"===e.type?"popstate":"hashchange";"popstate"===n&&setTimeout(()=>{var
s;const r={replaceUrl:!0},o=(null===(s=e.state)||void 0===s?void
0:s.navigationId)?e.state:null;if(o){const h=Object.assign({},o);delete
h.navigationId,delete
h.\u0275routerPageId,0!==Object.keys(h).length&&(r.state=h)}const u=this
.parseUrl(e.url);this.scheduleNavigation(u,n,o,r)},0)}))}get url(){return
this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return
this.currentNavigation}triggerEvent(e){this.events.next(e)}resetConfig(e){g2(e),this.config=e.map(hg),this.navigated=!1,this.lastSuccessfulId=-1}ngOnDestroy(){this.dispose()}dispose(){this.transitions.complete(),this.locationSubscription&&(this.locationSubscription.unsubscribe(),this.locationSubscription=void
0),this.disposed=!0}createUrlTree(e,n={}){const{relativeTo:s,queryParams:r,fragment:o,queryParamsHandling:u,preserveFragment:h}=n,b=s||this.routerState.root,y=h?this.currentUrlTree.fragment:o;let
w=null;switch(u){case"merge":w=Object.assign(Object.assign({},this.currentUrlTree.queryParams),r);break;case"preserve":w=this.currentUrlTree.queryParams;break;default:w=r||null}return
null!==w&&(w=this.removeEmptyProps(w)),function
k8(t,i,e,n,s){if(0===e.length)return cg(i.root,i.root,i.root,n,s);const r=function
I8(t){if("string"==typeof t[0]&&
1===t.length&&"/"===t[0])return new d2(!0,0,t);let i=0,e=!1;const
n=t.reduce((s,r,o)=>{if("object"==typeof
r&&null!=r){if(r.outlets){const u={};return
xn(r.outlets,(h,b)=>{u[b]="string"==typeof
h?h.split("/"):h}),[...s,{outlets:u}]}if(r.segmentPath)return[...s,r.segmentPath]}return"string"!=typeof
r?[...s,r]:0===o?(r.split("/").forEach((u,h)=>{0==h&&"."===u||(0==h&&""===u?e=!0:".."===u?i++:""!=u&&s.push(u))}),s):[...s,r]},[]);return
new d2(e,i,n)}(e);if(r.toRoot())return cg(i.root,i.root,new Xe([],{}),n,s);const
o=function E8(t,i,e){if(t.isAbsolute)return new
ug(i.root,!0,0);if(-1===e.snapshot._lastPathIndex){const r=e.snapshot._urlSegment;return
new ug(r,r===i.root,0)}const n=ld(t.commands[0])?0:1;return function R8(t,i,e){let
n=t,s=i,r=e;for(;r>s;){if(r-=s,n=n.parent,!n)throw new Error("Invalid number of
'../'");s=n.segments.length}return new
ug(n,!1,s-r)}(e.snapshot._urlSegment,e.snapshot._lastPathIndex+n,t.numberOfDoubleDots)}(r,i,t),u=o.processChildren?cd(o.segmentGroup,o.index
,r.commands):p2(o.segmentGroup,o.index,r.commands);return
cg(i.root,o.segmentGroup,u,n,s)}(b,this.currentUrlTree,e,w,null!=y?y:null)}navigateByUrl(e,n={skipLocationChange:!1}){const
s=Rr(e)?e:this.parseUrl(e),r=this.urlHandlingStrategy.merge(s,this.rawUrlTree);return
this.scheduleNavigation(r,"imperative",null,n)}navigate(e,n={skipLocationChange:!1}){return
function FH(t){for(let i=0;i<t.length;i++){const e=t[i];if(null==e)throw new Error(`The
requested path contains ${e} segment at index
${i}`)}}(e),this.navigateByUrl(this.createUrlTree(e,n),n)}serializeUrl(e){return
this.urlSerializer.serialize(e)}parseUrl(e){let
n;try{n=this.urlSerializer.parse(e)}catch(s){n=this.malformedUriErrorHandler(s,this.urlSerializer,e)}return
n}isActive(e,n){let
s;if(s=!0===n?Object.assign({},AH):!1===n?Object.assign({},PH):n,Rr(e))return
KT(this.currentUrlTree,e,s);const r=this.parseUrl(e);return
KT(this.currentUrlTree,r,s)}removeEmptyProps(e){return
Object.keys(e).reduce((n,s)=>{const r=e[s];return nul
l!=r&&(n[s]=r),n},{})}processNavigations(){this.navigations.subscribe(e=>{this.navigated=!0,this.lastSuccessfulId=e.id,this.currentPageId=e.targetPageId,this.events.next(new
vl(e.id,this.serializeUrl(e.extractedUrl),this.serializeUrl(this.currentUrlTree))),this.lastSuccessfulNavigation=this.currentNavigation,e.resolve(!0)},e=>{this.console.warn(`Unhandled
Navigation Error: ${e}`)})}scheduleNavigation(e,n,s,r,o){var u,h;if(this.disposed)return
Promise.resolve(!1);let b,y,w;o?(b=o.resolve,y=o.reject,w=o.promise):w=new
Promise((L,O)=>{b=L,y=O});const M=++this.navigationId;let
E;return"computed"===this.canceledNavigationResolution?(0===this.currentPageId&&(s=this.location.getState()),E=s&&s.\u0275routerPageId?s.\u0275routerPageId:r.replaceUrl||r.skipLocationChange?null!==(u=this.browserPageId)&&void
0!==u?u:0:(null!==(h=this.browserPageId)&&void
0!==h?h:0)+1):E=0,this.setTransition({id:M,targetPageId:E,source:n,restoredState:s,currentUrlTree:this.currentUrlTree,currentRawUrl:this.rawUrl
Tree,rawUrl:e,extras:r,resolve:b,reject:y,promise:w,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),w.catch(L=>Promise.reject(L))}setBrowserUrl(e,n){const
s=this.urlSerializer.serialize(e),r=Object.assign(Object.assign({},n.extras.state),this.generateNgRouterState(n.id,n.targetPageId));this.location.isCurrentPathEqualTo(s)||n.extras.replaceUrl?this.location.replaceState(s,"",r):this.location.go(s,"",r)}restoreHistory(e,n=!1){var
s,r;if("computed"===this.canceledNavigationResolution){const
o=this.currentPageId-e.targetPageId;"popstate"!==e.source&&"eager"!==this.urlUpdateStrategy&&this.currentUrlTree!==(null===(s=this.currentNavigation)||void
0===s?void
0:s.finalUrl)||0===o?this.currentUrlTree===(null===(r=this.currentNavigation)||void
0===r?void
0:r.finalUrl)&&0===o&&(this.resetState(e),this.browserUrlTree=e.currentUrlTree,this.resetUrlToCurrentUrlTree()):this.location.historyGo(o)}else"replace"===this.canceledNavigationResolution&&(n&&this.resetState
(e),this.resetUrlToCurrentUrlTree())}resetState(e){this.routerState=e.currentRouterState,this.currentUrlTree=e.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,e.rawUrl)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}cancelNavigationTransition(e,n){const
s=new
BT(e.id,this.serializeUrl(e.extractedUrl),n);this.triggerEvent(s),e.resolve(!1)}generateNgRouterState(e,n){return"computed"===this.canceledNavigationResolution?{navigationId:e,\u0275routerPageId:n}:{navigationId:e}}}return
t.\u0275fac=function(e){Sh()},t.\u0275prov=X({token:t,factory:t.\u0275fac}),t})();function
O2(t){return"imperative"!==t}let gd=(()=>{class
t{constructor(e,n,s,r,o){this.router=e,this.route=n,this.tabIndexAttribute=s,this.renderer=r,this.el=o,this.commands=null,this.onChanges=new
ct,this.setTabIndexIfNotOnNativeEl("0")}setTabIndexIfNotOnNativeEl(e){if(n
ull!=this.tabIndexAttribute)return;const
n=this.renderer,s=this.el.nativeElement;null!==e?n.setAttribute(s,"tabindex",e):n.removeAttribute(s,"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:qo(this.skipLocationChange),replaceUrl:qo(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:qo(this.preserveFragment)})}}return
t.\u0275fac=function(e){return
new(e||t)(D(It),D(Er),ua("tabindex"),D(gn),D(De))},t.\u0275dir=le({type:t,selectors:[["","routerLink","",5,"a",
5,"area"]],hostBindings:function(e,n){1&e&&C("click",function(){return
n.onClick()})},inputs:{queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",preserveFragment:"preserveFragment",skipLocationChange:"skipLocationChange",replaceUrl:"replaceUrl",state:"state",relativeTo:"relativeTo",routerLink:"routerLink"},features:[fn]}),t})(),Ho=(()=>{class
t{constructor(e,n,s){this.router=e,this.route=n,this.locationStrategy=s,this.commands=null,this.href=null,this.onChanges=new
ct,this.subscription=e.events.subscribe(r=>{r instanceof
vl&&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,n,s,r,o){if(0!==e||n||s||r||o||"string"==typeof
this.target&&"_self"!=this.target||null===this.urlTree)return!0;const
u={skipLocationChange:qo(this.skipLocationChange),replaceUrl:qo(this.replaceUrl),sta
te:this.state};return
this.router.navigateByUrl(this.urlTree,u),!1}updateTargetUrlAndHref(){this.href=null!==this.urlTree?this.locationStrategy.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:qo(this.preserveFragment)})}}return
t.\u0275fac=function(e){return
new(e||t)(D(It),D(Er),D(ko))},t.\u0275dir=le({type:t,selectors:[["a","routerLink",""],["area","routerLink",""]],hostVars:2,hostBindings:function(e,n){1&e&&C("click",function(r){return
n.onClick(r.button,r.ctrlKey,r.shiftKey,r.altKey,r.metaKey)}),2&e&&ie("target",n.target)("href",n.href,ln)},inputs:{target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",preserveFragment:"preserveFragment",skipLocationChang
e:"skipLocationChange",replaceUrl:"replaceUrl",state:"state",relativeTo:"relativeTo",routerLink:"routerLink"},features:[fn]}),t})();function
qo(t){return""===t||!!t}let _d=(()=>{class
t{constructor(e,n,s,r,o,u){this.router=e,this.element=n,this.renderer=s,this.cdr=r,this.link=o,this.linkWithHref=u,this.classes=[],this.isActive=!1,this.routerLinkActiveOptions={exact:!1},this.isActiveChange=new
H,this.routerEventsSubscription=e.events.subscribe(h=>{h instanceof
vl&&this.update()})}ngAfterContentInit(){oe(this.links.changes,this.linksWithHrefs.changes,oe(null)).pipe(ea()).subscribe(e=>{this.update(),this.subscribeToEachLinkOnChanges()})}subscribeToEachLinkOnChanges(){var
e;null===(e=this.linkInputChangesSubscription)||void 0===e||e.unsubscribe();const
n=[...this.links.toArray(),...this.linksWithHrefs.toArray(),this.link,this.linkWithHref].filter(s=>!!s).map(s=>s.onChanges);this.linkInputChangesSubscription=Mn(n).pipe(ea()).subscribe(s=>{this.isActive!==this.isLinkActive(this.router)(s)
&&this.update()})}set routerLinkActive(e){const
n=Array.isArray(e)?e:e.split("
");this.classes=n.filter(s=>!!s)}ngOnChanges(e){this.update()}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(n=>{e?this.renderer.addClass(this.element.nativeElement,n):this.renderer.removeClass(this.element.nativeElement,n)}),this.isActiveChange.emit(e))})}isLinkActive(e){const
n=function
NH(t){return!!t.paths}(this.routerLinkActiveOptions)?this.routerLinkActiveOptions:this.routerLinkActiveOptions.exact||!1;return
s=>!!s.urlTree&&e.isActive(s.urlTree,n)}hasActiveLinks(){const
e=this.isLinkActive(this.router);return
this.link&&e(this.link)||this.linkWithHref&&e(this.linkWithHref)||this.links.some(e)||this.linksWit
hHrefs.some(e)}}return t.\u0275fac=function(e){return
new(e||t)(D(It),D(De),D(gn),D(rt),D(gd,8),D(Ho,8))},t.\u0275dir=le({type:t,selectors:[["","routerLinkActive",""]],contentQueries:function(e,n,s){if(1&e&&(st(s,gd,5),st(s,Ho,5)),2&e){let
r;V(r=B())&&(n.links=r),V(r=B())&&(n.linksWithHrefs=r)}},inputs:{routerLinkActiveOptions:"routerLinkActiveOptions",routerLinkActive:"routerLinkActive"},outputs:{isActiveChange:"isActiveChange"},exportAs:["routerLinkActive"],features:[fn]}),t})();class
A2{}class P2{preload(i,e){return oe(null)}}let F2=(()=>{class
t{constructor(e,n,s,r){this.router=e,this.injector=s,this.preloadingStrategy=r,this.loader=new
R2(s,n,h=>e.triggerEvent(new HT(h)),h=>e.triggerEvent(new
qT(h)))}setUpPreloading(){this.subscription=this.router.events.pipe(Us(e=>e instanceof
vl),_r(()=>this.preload())).subscribe(()=>{})}preload(){const
e=this.injector.get(_s);return
this.processRoutes(e,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}proc
essRoutes(e,n){const s=[];for(const r of
n)if(r.loadChildren&&!r.canLoad&&r._loadedConfig){const
o=r._loadedConfig;s.push(this.processRoutes(o.module,o.routes))}else
r.loadChildren&&!r.canLoad?s.push(this.preloadConfig(e,r)):r.children&&s.push(this.processRoutes(e,r.children));return
Mn(s).pipe(ea(),et(r=>{}))}preloadConfig(e,n){return
this.preloadingStrategy.preload(n,()=>(n._loadedConfig?oe(n._loadedConfig):this.loader.load(e.injector,n)).pipe(yn(r=>(n._loadedConfig=r,this.processRoutes(r.module,r.routes)))))}}return
t.\u0275fac=function(e){return
new(e||t)(K(It),K(qC),K(En),K(A2))},t.\u0275prov=X({token:t,factory:t.\u0275fac}),t})(),_g=(()=>{class
t{constructor(e,n,s={}){this.router=e,this.viewportScroller=n,this.options=s,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},s.scrollPositionRestoration=s.scrollPositionRestoration||"disabled",s.anchorScrolling=s.anchorScrolling||"disabled"}init(){"disabled"!==this.options.scrollPositionRestoration&&this.viewp
ortScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}createScrollEvents(){return
this.router.events.subscribe(e=>{e instanceof
tg?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=e.navigationTrigger,this.restoredId=e.restoredState?e.restoredState.navigationId:0):e
instanceof
vl&&(this.lastId=e.id,this.scheduleScrollEvent(e,this.router.parseUrl(e.urlAfterRedirects).fragment))})}consumeScrollEvents(){return
this.router.events.subscribe(e=>{e instanceof
GT&&(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.scrollToPosit
ion([0,0]))})}scheduleScrollEvent(e,n){this.router.triggerEvent(new
GT(e,"popstate"===this.lastSource?this.store[this.restoredId]:null,n))}ngOnDestroy(){this.routerEventsSubscription&&this.routerEventsSubscription.unsubscribe(),this.scrollEventsSubscription&&this.scrollEventsSubscription.unsubscribe()}}return
t.\u0275fac=function(e){Sh()},t.\u0275prov=X({token:t,factory:t.\u0275fac}),t})();const
Lr=new be("ROUTER_CONFIGURATION"),N2=new
be("ROUTER_FORROOT_GUARD"),BH=[_m,{provide:ZT,useClass:XT},{provide:It,useFactory:function
zH(t,i,e,n,s,r,o={},u,h){const b=new It(null,t,i,e,n,s,jT(r));return
u&&(b.urlHandlingStrategy=u),h&&(b.routeReuseStrategy=h),function
jH(t,i){t.errorHandler&&(i.errorHandler=t.errorHandler),t.malformedUriErrorHandler&&(i.malformedUriErrorHandler=t.malformedUriErrorHandler),t.onSameUrlNavigation&&(i.onSameUrlNavigation=t.onSameUrlNavigation),t.paramsInheritanceStrategy&&(i.paramsInheritanceStrategy=t.paramsInheritanceStrategy),t.relativeLinkResolution&&(i.relati
veLinkResolution=t.relativeLinkResolution),t.urlUpdateStrategy&&(i.urlUpdateStrategy=t.urlUpdateStrategy),t.canceledNavigationResolution&&(i.canceledNavigationResolution=t.canceledNavigationResolution)}(o,b),o.enableTracing&&b.events.subscribe(y=>{var
w,M;null===(w=console.group)||void 0===w||w.call(console,`Router Event:
${y.constructor.name}`),console.log(y.toString()),console.log(y),null===(M=console.groupEnd)||void
0===M||M.call(console)}),b},deps:[ZT,Dl,_m,En,qC,gg,Lr,[class EH{},new Ns],[class MH{},new
Ns]]},Dl,{provide:Er,useFactory:function $H(t){return
t.routerState.root},deps:[It]},F2,P2,class VH{preload(i,e){return
e().pipe(Mr(()=>oe(null)))}},{provide:Lr,useValue:{enableTracing:!1}}];function
HH(){return new $C("Router",It)}let vn=(()=>{class t{constructor(e,n){}static
forRoot(e,n){return{ngModule:t,providers:[BH,V2(e),{provide:N2,useFactory:UH,deps:[[It,new
Ns,new _a]]},{provide:Lr,useValue:n||{}},{provide:ko,useFactory:GH,deps:[fr,[new
dc(gm),new Ns],Lr]},{provide:_g,u
seFactory:qH,deps:[It,R4,Lr]},{provide:A2,useExisting:n&&n.preloadingStrategy?n.preloadingStrategy:P2},{provide:$C,multi:!0,useFactory:HH},[bg,{provide:em,multi:!0,useFactory:WH,deps:[bg]},{provide:B2,useFactory:KH,deps:[bg]},{provide:HC,multi:!0,useExisting:B2}]]}}static
forChild(e){return{ngModule:t,providers:[V2(e)]}}}return t.\u0275fac=function(e){return
new(e||t)(K(N2,8),K(It,8))},t.\u0275mod=he({type:t}),t.\u0275inj=ue({}),t})();function
qH(t,i,e){return e.scrollOffset&&i.setOffset(e.scrollOffset),new
_g(t,i,e)}function GH(t,i,e={}){return e.useHash?new vL(t,i):new dy(t,i)}function
UH(t){return"guarded"}function
V2(t){return[{provide:gD,multi:!0,useValue:t},{provide:gg,multi:!0,useValue:t}]}let
bg=(()=>{class
t{constructor(e){this.injector=e,this.initNavigation=!1,this.destroyed=!1,this.resultOfPreactivationDone=new
ct}appInitializer(){return
this.injector.get(gL,Promise.resolve(null)).then(()=>{if(this.destroyed)return
Promise.resolve(!0);let n=null;const s=new Promise(u=>n=u
),r=this.injector.get(It),o=this.injector.get(Lr);return"disabled"===o.initialNavigation?(r.setUpLocationChangeListener(),n(!0)):"enabled"===o.initialNavigation||"enabledBlocking"===o.initialNavigation?(r.hooks.afterPreactivation=()=>this.initNavigation?oe(null):(this.initNavigation=!0,n(!0),this.resultOfPreactivationDone),r.initialNavigation()):n(!0),s})}bootstrapListener(e){const
n=this.injector.get(Lr),s=this.injector.get(F2),r=this.injector.get(_g),o=this.injector.get(It),u=this.injector.get(cm);e===u.components[0]&&(("enabledNonBlocking"===n.initialNavigation||void
0===n.initialNavigation)&&o.initialNavigation(),s.setUpPreloading(),r.init(),o.resetRootComponentType(u.componentTypes[0]),this.resultOfPreactivationDone.next(null),this.resultOfPreactivationDone.complete())}ngOnDestroy(){this.destroyed=!0}}return
t.\u0275fac=function(e){return
new(e||t)(K(En))},t.\u0275prov=X({token:t,factory:t.\u0275fac}),t})();function
WH(t){return t.appInitializer.bind(t)}function KH(t){return t.
bootstrapListener.bind(t)}const B2=new be("Router Initializer");let
m9=(()=>{class t{}return t.\u0275fac=function(e){return
new(e||t)},t.\u0275mod=he({type:t}),t.\u0275inj=ue({imports:[[Fe,vn,pn,jn],vn,jn]}),t})();function
f9(t,i){1&t&&k(0,"span",6),2&t&&p("innerHTML",d(3).text,Bt)}function
g9(t,i){if(1&t&&(l(0,"div"),_(1,f9,1,1,"span",5),c()),2&t){const
e=d(2);a(1),p("ngIf",!e.escape)}}function
_9(t,i){if(1&t&&(l(0,"span",8),g(1),c()),2&t){const
e=d(3);a(1),S(e.text)}}function
b9(t,i){1&t&&_(0,_9,2,1,"span",7),2&t&&p("ngIf",d(2).escape)}const
v9=function(t,i,e,n,s){return{"p-inline-message-info":t,"p-inline-message-warn":i,"p-inline-message-error":e,"p-inline-message-success":n,"p-inline-message-icon-only":s}};function
C9(t,i){if(1&t&&(l(0,"div",1),k(1,"span",2),_(2,g9,2,1,"div",3),_(3,b9,1,1,"ng-template",null,4,we),c()),2&t){const
e=F(4),n=d();me(n.styleClass),p("ngStyle",n.style)("ngClass",pr(7,v9,"info"===n.severity,"warn"===n.severity,"error"===n.severity,"success"===n.severit
y,null==n.text)),a(1),p("ngClass",n.icon),a(1),p("ngIf",!n.escape)("ngIfElse",e)}}let
qe=(()=>{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=z({type:t,selectors:[["p-message"]],hostAttrs:[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,"inne
rHTML"],["class","p-inline-message-text",4,"ngIf"],[1,"p-inline-message-text"]],template:function(e,n){1&e&&_(0,C9,5,13,"div",0),2&e&&p("ngIf",n.severity)},directives:[Q,lt,Le],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})(),y9=(()=>{class
t{}return t.\u0275fac=function(e){return
new(e||t)},t.\u0275mod=he({type:t}),t.\u0275inj=ue({imports:[[Fe]]}),t})(),A9=(()=>{class
t{}return t.\u0275fac=function(e){return
new(e||t)},t.\u0275mod=he({type:t}),t.\u0275inj=ue({imports:[[Fe,pn]]}),t})();function
P9(t,i){1&t&&Y(0)}function F9(t,i){if(1&t){const
e=I();l(0,"button",5),C("click",function(s){return
v(e),d(2).onCloseClick(s)})("keydown.enter",function(){return
v(e),d(2).hide()}),k(1,"span",6),c()}2&t&&ie("aria-label",d(2).ariaCloseLabel)}const
N9=function(t,i){return{sho
wTransitionParams:t,hideTransitionParams:i}},V9=function(t,i){return{value:t,params:i}};function
B9(t,i){if(1&t){const
e=I();l(0,"div",1),C("click",function(s){return
v(e),d().onOverlayClick(s)})("(a)animation.start",function(s){return
v(e),d().onAnimationStart(s)})("(a)animation.done",function(s){return
v(e),d().onAnimationEnd(s)}),l(1,"div",2),C("click",function(){return
v(e),d().onContentClick()})("mousedown",function(){return
v(e),d().onContentClick()}),St(2),_(3,P9,1,0,"ng-container",3),c(),_(4,F9,2,1,"button",4),c()}if(2&t){const
e=d();me(e.styleClass),p("ngClass","p-overlaypanel
p-component")("ngStyle",e.style)("@animation",Ge(10,V9,e.overlayVisible?"open":"close",Ge(7,N9,e.showTransitionOptions,e.hideTransitionOptions))),a(3),p("ngTemplateOutlet",e.contentTemplate),a(1),p("ngIf",e.showCloseIcon)}}const
H9=["*"];let q9=(()=>{class
t{constructor(e,n,s,r,o,u){this.el=e,this.renderer=n,this.cd=s,this.zone=r,this.config=o,this.overlayService=u,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 H,this.onHide=new
H,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=R.isIOS()?"touchstart":"click";this.documentClickListener=this.renderer.listen(this.el?this.el.nativeElement.ownerDocument:"document",e,s=>{!this.container.contains(s.target)&&this.target!==s.target&&!this.target.contains(s.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,n){this.overlayVisible?(this.hasTargetC
hanged(e,n)&&(this.destroyCallback=()=>{this.show(null,n||e.currentTarget||e.target)}),this.hide()):this.show(e,n)}show(e,n){this.target=n||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,n){return
null!=this.target&&this.target!==(n||e.currentTarget||e.target)}appendContainer(){this.appendTo&&("body"===this.appendTo?document.body.appendChild(this.container):R.appendChild(this.container,this.appendTo))}restoreAppend(){this.container&&this.appendTo&&this.el.nativeElement.appendChild(this.container)}align(){this.autoZIndex&&dt.set("overlay",this.container,this.baseZIndex+this.config.zIndex.overlay),R.absolutePosition(this.container,this.target);const
e=R.getOffset(this.container),n=R.getOffset(this.target);let
s=0;e.left<n.left&&(s=n.left-e.left),this.container.style.setProperty("--overl
ayArrowLeft",`${s}px`),e.top<n.top&&R.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=n=>{this.container&&this.container.contains(n.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&&dt.clear(this.container),this.overlaySubscription&&this.overlaySubscription.unsubscribe(),this.onContainerDestroy(),this.onHide.emit({}),this.render=!1}}focus(){let
e=R.findSingle(this.container,"[autofocus]");e&&this.zone.runOutsideAngula
r(()=>{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
Qs(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.autoZI
ndex&&dt.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)(D(De),D(gn),D(rt),D(nt),D(zn),D(Ks))},t.\u0275cmp=z({type:t,selectors:[["p-overlayPanel"]],contentQueries:function(e,n,s){if(1&e&&st(s,ne,4),2&e){let
r;V(r=B())&&(n.templates=r)}},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:H9,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,n){1&e&&(Sn(),_(0,B9,5,13,"div",0)),2&e&&p("ngIf",n.render)},directives:[Q,Le,lt,Rt,bt],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;ri
ght: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:[wi("animation",[ws("void",it({transform:"scaleY(0.8)",opacity:0})),ws("close",it({opacity:0})),ws("open",it({transform:"translateY(0)",opacity:1})),Lt("void
=> open",kt("{{showTransitionParams}}")),Lt("open =>
close",kt("{{hideTransitionParams}}"))])]},changeDetection:0}),t})(),G9=(()=>{class
t{}return t.\u0275fac=function(e){return
new(e||t)},t.\u0275mod=he({type:t}),t.\u0275inj=ue({imports:[[Fe,pn,Nt],Nt]}),t})(),J9=(()=>{class
t{}return t.\u0275fac=function(e){return
new(e||t)},t.\u0275mod=he({type:t}),t.\u0275inj=ue({imports:[[Fe,Nt,pn],Nt]}),t})(),Go=(()=>{class
t{constructor(){this.strokeWidth="2",this.fill="none",this.animationDuration="2s"}}return
t.\u0275fac=function(e){return
new(e||t)},t.\u0275cmp=z({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,n){1&e&&(l(0,"div",0),function
d_(){Ee.lFrame.currentNamespace="svg"}(),l(1,"svg",1),k(2,"circle",2),c()()),2&e&&(p("ngStyle",n.style)("ngClass",n.styleClass),a(1),_i("animation-duration",n.animationDuration),a(1),ie("fill",n.fill)("stroke-width",n.strokeWidth))},directives:[lt,Le],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-rota
te 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})(),Y9=(()=>{class
t{}return t.\u0275fac=function(e){return
new(e||t)},t.\u0275mod=he({type:t}),t.\u0275inj=ue({imports:[[Fe]]}),t})();ku([it({transform:"{{transform}}",opacity:0}),kt("{{transition}}")]),ku([kt("{{transition}}",it(
{transform:"{{transform}}",opacity:0}))]);let iq=(()=>{class t{}return
t.\u0275fac=function(e){return
new(e||t)},t.\u0275mod=he({type:t}),t.\u0275inj=ue({imports:[[Fe,pn]]}),t})(),sq=(()=>{class
t{}return t.\u0275fac=function(e){return
new(e||t)},t.\u0275mod=he({type:t}),t.\u0275inj=ue({imports:[[Fe]]}),t})(),hq=(()=>{class
t{}return t.\u0275fac=function(e){return
new(e||t)},t.\u0275mod=he({type:t}),t.\u0275inj=ue({imports:[[Fe,vn,jn],vn,jn]}),t})();function
mq(t,i){1&t&&k(0,"span",8),2&t&&(me(d(2).$implicit.icon),p("ngClass","p-button-icon
p-button-icon-left"))}function
fq(t,i){if(1&t&&(de(0),_(1,mq,1,3,"span",6),l(2,"span",7),g(3),c(),pe()),2&t){const
e=d().$implicit,n=d();a(1),p("ngIf",e.icon),a(2),S(n.getOptionLabel(e))}}function
gq(t,i){1&t&&Y(0)}const _q=function(t,i){return{$implicit:t,index:i}};function
bq(t,i){if(1&t&&_(0,gq,1,0,"ng-container",9),2&t){const
e=d(),n=e.$implicit,s=e.index;p("ngTemplateOutlet",d().itemTemplate)("ngTemplateOutletContext",Ge(2,_q,n,s))}}const
vq
=function(t,i,e){return{"p-highlight":t,"p-disabled":i,"p-button-icon-only":e}};function
Cq(t,i){if(1&t){const
e=I();l(0,"div",2,3),C("click",function(s){const
r=v(e),o=r.$implicit,u=r.index;return
d().onItemClick(s,o,u)})("keydown.enter",function(s){const
r=v(e),o=r.$implicit,u=r.index;return
d().onItemClick(s,o,u)})("blur",function(){return
v(e),d().onBlur()}),_(2,fq,4,2,"ng-container",4),_(3,bq,1,5,"ng-template",null,5,we),c()}if(2&t){const
e=i.$implicit,n=F(4),s=d();me(e.styleClass),p("ngClass",Qt(10,vq,s.isSelected(e),s.disabled||s.isOptionDisabled(e),e.icon&&!s.getOptionLabel(e))),ie("aria-pressed",s.isSelected(e))("title",e.title)("aria-label",e.label)("tabindex",s.disabled?null:s.tabindex)("aria-labelledby",s.getOptionLabel(e)),a(2),p("ngIf",!s.itemTemplate)("ngIfElse",n)}}const
yq={provide:dn,useExisting:je(()=>wq),multi:!0};let wq=(()=>{class
t{constructor(e){this.cd=e,this.tabindex=0,this.onOptionClick=new H,this.onChange=new
H,this.onModelChange=()=>{},this.onModelTouche
d=()=>{}}getOptionLabel(e){return
this.optionLabel?Z.resolveFieldData(e,this.optionLabel):null!=e.label?e.label:e}getOptionValue(e){return
this.optionValue?Z.resolveFieldData(e,this.optionValue):this.optionLabel||void
0===e.value?e:e.value}isOptionDisabled(e){return
this.optionDisabled?Z.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,n,s){if(!this.disabled&&!this.isOptionDisabled(n)){if(this.multiple)this.isSelected(n)?this.removeOption(n):this.value=[...this.value||[],this.getOptionValue(n)],this.onModelChange(this.value),this.onChange.emit({originalEvent:e,value:this.value});else{let
r=this.getOptionValue(n);this.value!==r&&(this.value=this.getOptionValue(n),this.onModelChange(this.value),this.onChange.emit({originalEvent:e,value:this.value}))}this.onOp
tionClick.emit({originalEvent:e,option:n,index:s})}}onBlur(){this.onModelTouched()}removeOption(e){this.value=this.value.filter(n=>!Z.equals(n,this.getOptionValue(e),this.dataKey))}isSelected(e){let
n=!1,s=this.getOptionValue(e);if(this.multiple){if(this.value)for(let r of
this.value)if(Z.equals(r,s,this.dataKey)){n=!0;break}}else
n=Z.equals(this.getOptionValue(e),this.value,this.dataKey);return n}}return
t.\u0275fac=function(e){return
new(e||t)(D(rt))},t.\u0275cmp=z({type:t,selectors:[["p-selectButton"]],contentQueries:function(e,n,s){if(1&e&&st(s,bi,5),2&e){let
r;V(r=B())&&(n.itemTemplate=r.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:[Pe([yq])],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,n){1&e&&(l(0,"div",0),_(1,Cq,5,14,"div",1),c()),2&e&&(me(n.styleClass),p("ngClass","p-selectbutton
p-buttonset
p-component")("ngStyle",n.style),a(1),p("ngForOf",n.options))},directives:[Le,lt,at,bt,Q,Rt],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:cen
ter}.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}\n"],encapsulation:2,changeDetection:0}),t})(),Tq=(()=>{class
t{}return t.\u0275fac=function(e){return
new(e||t)},t.\u0275mod=he({type:t}),t.\u0275inj=ue({imports:[[Fe,pn]]}),t})();const
Sq=function(t,i,e){return{"p-checkbox-label-active":t,"p-disabled":i,"p-checkbox-label-focus":e}};function
xq(t,i){if(1&t){const
e=I();l(0,"label",7),C("click",function(s){v(e);const
r=d(),o=F(3);return r.onClick(s,o)}),g(1),c()}if(2&t){const e=d();p(
"ngClass",Qt(3,Sq,null!=e.value,e.disabled,e.focused)),ie("for",e.inputId),a(1),S(e.label)}}const
Dq=function(t,i){return{"p-checkbox
p-component":!0,"p-checkbox-disabled":t,"p-checkbox-focused":i}},Mq=function(t,i,e){return{"p-highlight":t,"p-disabled":i,"p-focus":e}},kq={provide:dn,useExisting:je(()=>G2),multi:!0};let
G2=(()=>{class t{constructor(e){this.cd=e,this.checkboxTrueIcon="pi
pi-check",this.checkboxFalseIcon="pi pi-times",this.onChange=new
H,this.onModelChange=()=>{},this.onModelTouched=()=>{}}onClick(e,n){!this.disabled&&!this.readonly&&(this.toggle(e),this.focused=!0,n.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.onModelTouch
ed()}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)(D(rt))},t.\u0275cmp=z({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:[Pe([kq])],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,n){if(1&e){const
s=I();l(0,"div",0)(1,"div",1)(2,"input",2,3),C("keyup",function(o){return
n.onKeyup(o)})("keydown",function(o){return
n.onKeydown(o)})("focus",function(){return
n.onFocus()})("blur",function(){return
n.onBlur()}),c()(),l(4,"div",4),C("click",function(o){v(s);const
u=F(3);return
n.onClick(o,u)}),k(5,"span",5),c()(),_(6,xq,2,7,"label",6)}2&e&&(me(n.styleClass),p("ngStyle",n.style)("ngClass",Ge(14,Dq,n.disabled,n.focused)),a(2),p("name",n.name)("readonly",n.readonly)("disabled",n.disabled),ie("id",n.inputId)("tabindex",n.tabindex)("aria-labelledby",n.ariaLabelledBy),a(2),p("ngClass",Qt(17,Mq,null!=n.value,n.disabled,n.focused)),ie("aria-checked",!0===n.value),a(1),p("ngClass",!0===n.value?n.checkboxTrueIcon:!1===n.value?n.checkboxFalseIcon:""),a(1),p("ngIf",n.label))},directives:[lt,Le,Q],encapsulation:2,changeDetection:0}),t})(),Iq=(()=>{class
t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=he({type:t}),
t.\u0275inj=ue({imports:[[Fe]]}),t})();const
Eq=["container"],Rq=["resizeHelper"],Lq=["reorderIndicatorUp"],Oq=["reorderIndicatorDown"],Aq=["wrapper"],Pq=["table"],Fq=["tableHeader"];function
Nq(t,i){if(1&t&&(l(0,"div",14),k(1,"i"),c()),2&t){const
e=d();a(1),me("p-datatable-loading-icon pi-spin "+e.loadingIcon)}}function
Vq(t,i){1&t&&Y(0)}function
Bq(t,i){if(1&t&&(l(0,"div",15),_(1,Vq,1,0,"ng-container",16),c()),2&t){const
e=d();a(1),p("ngTemplateOutlet",e.captionTemplate)}}function
Hq(t,i){if(1&t){const
e=I();l(0,"p-paginator",17),C("onPageChange",function(s){return
v(e),d().onPageChange(s)}),c()}if(2&t){const
e=d();p("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)("currentPageRe
portTemplate",e.currentPageReportTemplate)("showFirstLastIcon",e.showFirstLastIcon)("dropdownItemTemplate",e.paginatorDropdownItemTemplate)("showCurrentPageReport",e.showCurrentPageReport)("showJumpToPageDropdown",e.showJumpToPageDropdown)("showJumpToPageInput",e.showJumpToPageInput)("showPageLinks",e.showPageLinks)}}function
qq(t,i){1&t&&Y(0)}function Gq(t,i){1&t&&Y(0)}function
Uq(t,i){if(1&t&&k(0,"tbody",25),2&t){const
e=d(2);p("value",e.frozenValue)("frozenRows",!0)("pTableBody",e.columns)("pTableBodyTemplate",e.frozenBodyTemplate)("frozen",!0)}}function
zq(t,i){1&t&&Y(0)}const Zs=function(t){return{$implicit:t}};function
jq(t,i){if(1&t&&(l(0,"tfoot",26),_(1,zq,1,0,"ng-container",20),c()),2&t){const
e=d(2);a(1),p("ngTemplateOutlet",e.footerGroupedTemplate||e.footerTemplate)("ngTemplateOutletContext",U(2,Zs,e.columns))}}function
$q(t,i){if(1&t&&(l(0,"table",18,19),_(2,qq,1,0,"ng-container",20),l(3,"thead",21),_(4,Gq,1,0,"ng-container",20),c(),_(5,Uq,1,5,"tbody",22),k(6,"tbody",23)
,_(7,jq,2,4,"tfoot",24),c()),2&t){const
e=d();p("ngClass",e.tableStyleClass)("ngStyle",e.tableStyle),ie("id",e.id+"-table"),a(2),p("ngTemplateOutlet",e.colGroupTemplate)("ngTemplateOutletContext",U(12,Zs,e.columns)),a(2),p("ngTemplateOutlet",e.headerGroupedTemplate||e.headerTemplate)("ngTemplateOutletContext",U(14,Zs,e.columns)),a(1),p("ngIf",e.frozenValue||e.frozenBodyTemplate),a(1),p("value",e.dataToRender)("pTableBody",e.columns)("pTableBodyTemplate",e.bodyTemplate),a(1),p("ngIf",e.footerGroupedTemplate||e.footerTemplate)}}function
Wq(t,i){1&t&&Y(0)}function Kq(t,i){1&t&&Y(0)}function
Qq(t,i){if(1&t&&k(0,"tbody",25),2&t){const
e=d(2);p("value",e.frozenValue)("frozenRows",!0)("pTableBody",e.columns)("pTableBodyTemplate",e.bodyTemplate)("frozen",!0)}}function
Jq(t,i){1&t&&Y(0)}function
Yq(t,i){if(1&t&&(l(0,"tfoot",26),_(1,Jq,1,0,"ng-container",20),c()),2&t){const
e=d(2);a(1),p("ngTemplateOutlet",e.footerGroupedTemplate||e.footerTemplate)("ngTemplateOutletContext",U(2,Zs,e.columns))
}}function Zq(t,i){if(1&t){const
e=I();l(0,"cdk-virtual-scroll-viewport",27),C("scrolledIndexChange",function(s){return
v(e),d().onScrollIndexChange(s)}),l(1,"table",18,19),_(3,Wq,1,0,"ng-container",20),l(4,"thead",21,28),_(6,Kq,1,0,"ng-container",20),c(),_(7,Qq,1,5,"tbody",22),k(8,"tbody",23),_(9,Yq,2,4,"tfoot",24),c()()}if(2&t){const
e=d();_i("height","flex"!==e.scrollHeight?e.scrollHeight:void
0),p("itemSize",e.virtualRowHeight)("minBufferPx",e.minBufferPx)("maxBufferPx",e.maxBufferPx),a(1),p("ngClass",e.tableStyleClass)("ngStyle",e.tableStyle),ie("id",e.id+"-table"),a(2),p("ngTemplateOutlet",e.colGroupTemplate)("ngTemplateOutletContext",U(17,Zs,e.columns)),a(3),p("ngTemplateOutlet",e.headerGroupedTemplate||e.headerTemplate)("ngTemplateOutletContext",U(19,Zs,e.columns)),a(1),p("ngIf",e.frozenValue||e.frozenBodyTemplate),a(1),p("value",e.dataToRender)("pTableBody",e.columns)("pTableBodyTemplate",e.bodyTemplate),a(1),p("ngIf",e.footerGroupedTemplate||e.footerTemplate)}}function
Xq(
t,i){if(1&t){const
e=I();l(0,"p-paginator",29),C("onPageChange",function(s){return
v(e),d().onPageChange(s)}),c()}if(2&t){const
e=d();p("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
eG(t,i){1&t&&Y(0)}function
tG(t,i){if(1&t&&(l(0,"div",30),_(1,eG,1,0,"ng-container",16),c()),2&t){const
e=d();a(1),p("ngTemplateOutlet",e.summaryTemplate)}}functio
n nG(t,i){1&t&&k(0,"div",31,32)}function
iG(t,i){1&t&&k(0,"span",33,34)}function
sG(t,i){1&t&&k(0,"span",35,36)}const
rG=function(t,i,e,n,s,r,o,u,h,b,y,w,M,E){return{"p-datatable
p-component":!0,"p-datatable-hoverable-rows":t,"p-datatable-auto-layout":i,"p-datatable-resizable":e,"p-datatable-resizable-fit":n,"p-datatable-scrollable":s,"p-datatable-scrollable-vertical":r,"p-datatable-scrollable-horizontal":o,"p-datatable-scrollable-both":u,"p-datatable-flex-scrollable":h,"p-datatable-responsive-stack":b,"p-datatable-responsive-scroll":y,"p-datatable-responsive":w,"p-datatable-grouped-header":M,"p-datatable-grouped-footer":E}},oG=function(t){return{height:t}},aG=["pTableBody",""];function
lG(t,i){1&t&&Y(0)}const
bd=function(t,i,e,n,s){return{$implicit:t,rowIndex:i,columns:e,editing:n,frozen:s}};function
cG(t,i){if(1&t&&(de(0,3),_(1,lG,1,0,"ng-container",4),pe()),2&t){const
e=d(),n=e.$implicit,s=e.index,r=d(2);a(1),p("ngTemplateOutlet",r.dt.groupHeaderTemplate)("ngTemplateOutletContext
",pr(2,bd,n,r.dt.paginator?r.dt.first+s:s,r.columns,"row"===r.dt.editMode&&r.dt.isRowEditing(n),r.frozen))}}function
uG(t,i){1&t&&Y(0)}function
dG(t,i){if(1&t&&(de(0),_(1,uG,1,0,"ng-container",4),pe()),2&t){const
e=d(),n=e.$implicit,s=e.index,r=d(2);a(1),p("ngTemplateOutlet",r.template)("ngTemplateOutletContext",pr(2,bd,n,r.dt.paginator?r.dt.first+s:s,r.columns,"row"===r.dt.editMode&&r.dt.isRowEditing(n),r.frozen))}}function
pG(t,i){1&t&&Y(0)}const
hG=function(t,i,e,n,s,r,o){return{$implicit:t,rowIndex:i,columns:e,editing:n,frozen:s,rowgroup:r,rowspan:o}};function
mG(t,i){if(1&t&&(de(0),_(1,pG,1,0,"ng-container",4),pe()),2&t){const
e=d(),n=e.$implicit,s=e.index,r=d(2);a(1),p("ngTemplateOutlet",r.template)("ngTemplateOutletContext",function
aC(t,i,e,n,s,r,o,u,h,b){const y=Fn()+t,w=$();let M=gi(w,y,e,n,s,r);return
Mc(w,y+4,o,u,h)||M?es(w,y+7,b?i.call(b,e,n,s,r,o,u,h):i(e,n,s,r,o,u,h)):Ea(w,y+7)}(2,hG,n,r.dt.paginator?r.dt.first+s:s,r.columns,"row"===r.dt.editMode&&r.dt.isRowEditing(n)
,r.frozen,r.shouldRenderRowspan(r.value,n,s),r.calculateRowGroupSize(r.value,n,s)))}}function
fG(t,i){1&t&&Y(0)}function
gG(t,i){if(1&t&&(de(0,3),_(1,fG,1,0,"ng-container",4),pe()),2&t){const
e=d(),n=e.$implicit,s=e.index,r=d(2);a(1),p("ngTemplateOutlet",r.dt.groupFooterTemplate)("ngTemplateOutletContext",pr(2,bd,n,r.dt.paginator?r.dt.first+s:s,r.columns,"row"===r.dt.editMode&&r.dt.isRowEditing(n),r.frozen))}}function
_G(t,i){if(1&t&&(_(0,cG,2,8,"ng-container",2),_(1,dG,2,8,"ng-container",0),_(2,mG,2,10,"ng-container",0),_(3,gG,2,8,"ng-container",2)),2&t){const
e=i.$implicit,n=i.index,s=d(2);p("ngIf",s.dt.groupHeaderTemplate&&"subheader"===s.dt.rowGroupMode&&s.shouldRenderRowGroupHeader(s.value,e,n)),a(1),p("ngIf","rowspan"!==s.dt.rowGroupMode),a(1),p("ngIf","rowspan"===s.dt.rowGroupMode),a(1),p("ngIf",s.dt.groupFooterTemplate&&"subheader"===s.dt.rowGroupMode&&s.shouldRenderRowGroupFooter(s.value,e,n))}}function
bG(t,i){if(1&t&&(de(0),_(1,_G,4,4,"ng-template",1),pe()),2&t){const
e=d
();a(1),p("ngForOf",e.value)("ngForTrackBy",e.dt.rowTrackBy)}}function
vG(t,i){1&t&&Y(0)}function
CG(t,i){if(1&t&&_(0,vG,1,0,"ng-container",4),2&t){const
e=i.$implicit,n=i.index,s=d(2);p("ngTemplateOutlet",e?s.template:s.dt.loadingBodyTemplate)("ngTemplateOutletContext",pr(2,bd,e,s.dt.paginator?s.dt.first+n:n,s.columns,"row"===s.dt.editMode&&s.dt.isRowEditing(e),s.frozen))}}function
yG(t,i){if(1&t&&(de(0),_(1,CG,1,8,"ng-template",5),pe()),2&t){const
e=d();a(1),p("cdkVirtualForOf",e.dt.filteredValue||e.dt.value)("cdkVirtualForTrackBy",e.dt.rowTrackBy)("cdkVirtualForTemplateCacheSize",0)}}function
wG(t,i){1&t&&Y(0)}const
vd=function(t,i,e,n,s,r){return{$implicit:t,rowIndex:i,columns:e,expanded:n,editing:s,frozen:r}};function
TG(t,i){if(1&t&&(de(0),_(1,wG,1,0,"ng-container",4),pe()),2&t){const
e=d(),n=e.$implicit,s=e.index,r=d(2);a(1),p("ngTemplateOutlet",r.template)("ngTemplateOutletContext",Do(2,vd,n,r.dt.paginator?r.dt.first+s:s,r.columns,r.dt.isRowExpanded(n),"row"===r.dt.editMode&
&r.dt.isRowEditing(n),r.frozen))}}function SG(t,i){1&t&&Y(0)}function
xG(t,i){if(1&t&&(de(0,3),_(1,SG,1,0,"ng-container",4),pe()),2&t){const
e=d(),n=e.$implicit,s=e.index,r=d(2);a(1),p("ngTemplateOutlet",r.dt.groupHeaderTemplate)("ngTemplateOutletContext",Do(2,vd,n,r.dt.paginator?r.dt.first+s:s,r.columns,r.dt.isRowExpanded(n),"row"===r.dt.editMode&&r.dt.isRowEditing(n),r.frozen))}}function
DG(t,i){1&t&&Y(0)}function MG(t,i){1&t&&Y(0)}function
kG(t,i){if(1&t&&(de(0,3),_(1,MG,1,0,"ng-container",4),pe()),2&t){const
e=d(2),n=e.$implicit,s=e.index,r=d(2);a(1),p("ngTemplateOutlet",r.dt.groupFooterTemplate)("ngTemplateOutletContext",Do(2,vd,n,r.dt.paginator?r.dt.first+s:s,r.columns,r.dt.isRowExpanded(n),"row"===r.dt.editMode&&r.dt.isRowEditing(n),r.frozen))}}const
U2=function(t,i,e,n){return{$implicit:t,rowIndex:i,columns:e,frozen:n}};function
IG(t,i){if(1&t&&(de(0),_(1,DG,1,0,"ng-container",4),_(2,kG,2,9,"ng-container",2),pe()),2&t){const
e=d(),n=e.$implicit,s=e.index,r=d(2);a(1),p("ngTem
plateOutlet",r.dt.expandedRowTemplate)("ngTemplateOutletContext",qn(3,U2,n,r.dt.paginator?r.dt.first+s:s,r.columns,r.frozen)),a(1),p("ngIf",r.dt.groupFooterTemplate&&"subheader"===r.dt.rowGroupMode&&r.shouldRenderRowGroupFooter(r.value,n,s))}}function
EG(t,i){if(1&t&&(_(0,TG,2,9,"ng-container",0),_(1,xG,2,9,"ng-container",2),_(2,IG,3,8,"ng-container",0)),2&t){const
e=i.$implicit,n=i.index,s=d(2);p("ngIf",!s.dt.groupHeaderTemplate),a(1),p("ngIf",s.dt.groupHeaderTemplate&&"subheader"===s.dt.rowGroupMode&&s.shouldRenderRowGroupHeader(s.value,e,n)),a(1),p("ngIf",s.dt.isRowExpanded(e))}}function
RG(t,i){if(1&t&&(de(0),_(1,EG,3,3,"ng-template",1),pe()),2&t){const
e=d();a(1),p("ngForOf",e.value)("ngForTrackBy",e.dt.rowTrackBy)}}function
LG(t,i){1&t&&Y(0)}function OG(t,i){1&t&&Y(0)}function
AG(t,i){if(1&t&&(de(0),_(1,OG,1,0,"ng-container",4),pe()),2&t){const
e=d(),n=e.$implicit,s=e.index,r=d(2);a(1),p("ngTemplateOutlet",r.dt.frozenExpandedRowTemplate)("ngTemplateOutletContext",qn(2,U2,n,r.d
t.paginator?r.dt.first+s:s,r.columns,r.frozen))}}function
PG(t,i){if(1&t&&(_(0,LG,1,0,"ng-container",4),_(1,AG,2,7,"ng-container",0)),2&t){const
e=i.$implicit,n=i.index,s=d(2);p("ngTemplateOutlet",s.template)("ngTemplateOutletContext",Do(3,vd,e,s.dt.paginator?s.dt.first+n:n,s.columns,s.dt.isRowExpanded(e),"row"===s.dt.editMode&&s.dt.isRowEditing(e),s.frozen)),a(1),p("ngIf",s.dt.isRowExpanded(e))}}function
FG(t,i){if(1&t&&(de(0),_(1,PG,2,10,"ng-template",1),pe()),2&t){const
e=d();a(1),p("ngForOf",e.value)("ngForTrackBy",e.dt.rowTrackBy)}}function
NG(t,i){1&t&&Y(0)}const
z2=function(t,i){return{$implicit:t,frozen:i}};function
VG(t,i){if(1&t&&(de(0),_(1,NG,1,0,"ng-container",4),pe()),2&t){const
e=d();a(1),p("ngTemplateOutlet",e.dt.loadingBodyTemplate)("ngTemplateOutletContext",Ge(2,z2,e.columns,e.frozen))}}function
BG(t,i){1&t&&Y(0)}function
HG(t,i){if(1&t&&(de(0),_(1,BG,1,0,"ng-container",4),pe()),2&t){const
e=d();a(1),p("ngTemplateOutlet",e.dt.emptyMessageTemplate)("ngTemplateOutletC
ontext",Ge(2,z2,e.columns,e.frozen))}}function
qG(t,i){if(1&t&&(l(0,"span",2),g(1),c()),2&t){const
e=d();a(1),S(e.getBadgeValue())}}const
GG=function(t,i,e){return{"pi-sort-amount-up-alt":t,"pi-sort-amount-down":i,"pi-sort-alt":e}};function
UG(t,i){1&t&&Y(0)}function
zG(t,i){if(1&t&&(de(0),_(1,UG,1,0,"ng-container",1),pe()),2&t){const
e=d();a(1),p("ngTemplateOutlet",e.inputTemplate)}}function
jG(t,i){1&t&&Y(0)}function
$G(t,i){if(1&t&&(de(0),_(1,jG,1,0,"ng-container",1),pe()),2&t){const
e=d();a(1),p("ngTemplateOutlet",e.outputTemplate)}}function
WG(t,i){1&t&&Y(0)}const
KG=function(t,i){return{$implicit:t,filterCallback:i}};function
QG(t,i){if(1&t&&(de(0),_(1,WG,1,0,"ng-container",2),pe()),2&t){const
e=d();a(1),p("ngTemplateOutlet",e.filterTemplate)("ngTemplateOutletContext",Ge(2,KG,e.filterConstraint.value,e.filterCallback))}}function
JG(t,i){if(1&t){const
e=I();l(0,"input",8),C("input",function(s){return
v(e),d(2).onModelChange(s.target.value)})("keydown.enter",function(s){return v
(e),d(2).onTextInputEnterKeyDown(s)}),c()}if(2&t){const
e=d(2);p("value",null==e.filterConstraint?null:e.filterConstraint.value),ie("placeholder",e.placeholder)}}function
YG(t,i){if(1&t){const
e=I();l(0,"p-inputNumber",9),C("ngModelChange",function(s){return
v(e),d(2).onModelChange(s)})("onKeyDown",function(s){return
v(e),d(2).onNumericInputKeyDown(s)}),c()}if(2&t){const
e=d(2);p("ngModel",null==e.filterConstraint?null:e.filterConstraint.value)("showButtons",!0)("minFractionDigits",e.minFractionDigits)("maxFractionDigits",e.maxFractionDigits)("prefix",e.prefix)("suffix",e.suffix)("placeholder",e.placeholder)("mode",e.currency?"currency":"decimal")("locale",e.locale)("localeMatcher",e.localeMatcher)("currency",e.currency)("currencyDisplay",e.currencyDisplay)("useGrouping",e.useGrouping)}}function
ZG(t,i){if(1&t){const
e=I();l(0,"p-triStateCheckbox",10),C("ngModelChange",function(s){return
v(e),d(2).onModelChange(s)}),c()}if(2&t){const
e=d(2);p("ngModel",null==e.filterConstraint?null:
e.filterConstraint.value)}}function XG(t,i){if(1&t){const
e=I();l(0,"p-calendar",11),C("ngModelChange",function(s){return
v(e),d(2).onModelChange(s)}),c()}if(2&t){const
e=d(2);p("placeholder",e.placeholder)("ngModel",null==e.filterConstraint?null:e.filterConstraint.value)}}function
eU(t,i){1&t&&(de(0,3),_(1,JG,1,2,"input",4),_(2,YG,1,13,"p-inputNumber",5),_(3,ZG,1,1,"p-triStateCheckbox",6),_(4,XG,1,2,"p-calendar",7),pe()),2&t&&(p("ngSwitch",d().type),a(1),p("ngSwitchCase","text"),a(1),p("ngSwitchCase","numeric"),a(1),p("ngSwitchCase","boolean"),a(1),p("ngSwitchCase","date"))}const
tU=["icon"];function
nU(t,i){if(1&t&&k(0,"p-columnFilterFormElement",5),2&t){const
e=d();p("type",e.type)("field",e.field)("filterConstraint",e.dt.filters[e.field])("filterTemplate",e.filterTemplate)("placeholder",e.placeholder)("minFractionDigits",e.minFractionDigits)("maxFractionDigits",e.maxFractionDigits)("prefix",e.prefix)("suffix",e.suffix)("locale",e.locale)("localeMatcher",e.localeMatcher)("currenc
y",e.currency)("currencyDisplay",e.currencyDisplay)("useGrouping",e.useGrouping)}}const
iU=function(t,i){return{"p-column-filter-menu-button-open":t,"p-column-filter-menu-button-active":i}};function
sU(t,i){if(1&t){const
e=I();l(0,"button",6,7),C("click",function(){return
v(e),d().toggleMenu()})("keydown",function(s){return
v(e),d().onToggleButtonKeyDown(s)}),k(2,"span",8),c()}if(2&t){const
e=d();p("ngClass",Ge(2,iU,e.overlayVisible,e.hasFilter())),ie("aria-expanded",e.overlayVisible)}}const
rU=function(t){return{"p-hidden-space":t}};function oU(t,i){if(1&t){const
e=I();l(0,"button",9,7),C("click",function(){return
v(e),d().clearFilter()}),k(2,"span",10),c()}if(2&t){const
e=d();p("ngClass",U(1,rU,!e.hasRowFilter()))}}function
aU(t,i){1&t&&Y(0)}const
lU=function(t){return{"p-highlight":t}};function cU(t,i){if(1&t){const
e=I();l(0,"li",19),C("click",function(){const r=v(e).$implicit;return
d(3).onRowMatchModeChange(r.value)})("keydown",function(s){return
v(e),d(3).onRowMatchModeKeyDow
n(s)})("keydown.enter",function(){const r=v(e).$implicit;return
d(3).onRowMatchModeChange(r.value)}),g(1),c()}if(2&t){const
e=i.$implicit,n=i.index,s=d(3);p("ngClass",U(3,lU,s.isRowMatchModeSelected(e.value))),ie("tabindex",0===n?"0":null),a(1),S(e.label)}}function
uU(t,i){if(1&t){const
e=I();l(0,"ul",15),_(1,cU,2,5,"li",16),k(2,"li",17),l(3,"li",18),C("click",function(){return
v(e),d(2).onRowClearItemClick()})("keydown",function(s){return
v(e),d(2).onRowMatchModeKeyDown(s)})("keydown.enter",function(){return
v(e),d(2).onRowClearItemClick()}),g(4),c()()}if(2&t){const
e=d(2);a(1),p("ngForOf",e.matchModes),a(3),S(e.noFilterLabel)}}function
dU(t,i){if(1&t){const
e=I();l(0,"div",27)(1,"p-dropdown",28),C("ngModelChange",function(s){return
v(e),d(3).onOperatorChange(s)}),c()()}if(2&t){const
e=d(3);a(1),p("options",e.operatorOptions)("ngModel",e.operator)}}function
pU(t,i){if(1&t){const
e=I();l(0,"p-dropdown",33),C("ngModelChange",function(s){v(e);const
r=d().$implicit;return d(3).onMenuMa
tchModeChange(s,r)}),c()}if(2&t){const
e=d().$implicit;p("options",d(3).matchModes)("ngModel",e.matchMode)}}function
hU(t,i){if(1&t){const
e=I();l(0,"button",34),C("click",function(){v(e);const
s=d().$implicit;return
d(3).removeConstraint(s)}),c()}2&t&&p("label",d(4).removeRuleButtonLabel)}function
mU(t,i){if(1&t&&(l(0,"div",29),_(1,pU,1,2,"p-dropdown",30),k(2,"p-columnFilterFormElement",31),l(3,"div"),_(4,hU,1,1,"button",32),c()()),2&t){const
e=i.$implicit,n=d(3);a(1),p("ngIf",n.showMatchModes&&n.matchModes),a(1),p("type",n.type)("field",n.field)("filterConstraint",e)("filterTemplate",n.filterTemplate)("placeholder",n.placeholder)("minFractionDigits",n.minFractionDigits)("maxFractionDigits",n.maxFractionDigits)("prefix",n.prefix)("suffix",n.suffix)("locale",n.locale)("localeMatcher",n.localeMatcher)("currency",n.currency)("currencyDisplay",n.currencyDisplay)("useGrouping",n.useGrouping),a(2),p("ngIf",n.showRemoveIcon)}}function
fU(t,i){if(1&t){const e=I();l(0,"div",35)(1,"button",3
6),C("click",function(){return
v(e),d(3).addConstraint()}),c()()}if(2&t){const
e=d(3);a(1),p("label",e.addRuleButtonLabel)}}function gU(t,i){if(1&t){const
e=I();l(0,"button",37),C("click",function(){return
v(e),d(3).clearFilter()}),c()}2&t&&p("label",d(3).clearButtonLabel)}function
_U(t,i){if(1&t){const
e=I();l(0,"button",38),C("click",function(){return
v(e),d(3).applyFilter()}),c()}2&t&&p("label",d(3).applyButtonLabel)}function
bU(t,i){if(1&t&&(_(0,dU,2,2,"div",20),l(1,"div",21),_(2,mU,5,16,"div",22),c(),_(3,fU,2,1,"div",23),l(4,"div",24),_(5,gU,1,1,"button",25),_(6,_U,1,1,"button",26),c()),2&t){const
e=d(2);p("ngIf",e.isShowOperator),a(2),p("ngForOf",e.fieldConstraints),a(1),p("ngIf",e.isShowAddConstraint),a(2),p("ngIf",e.showClearButton),a(1),p("ngIf",e.showApplyButton)}}function
vU(t,i){1&t&&Y(0)}const CU=function(t){return{"p-column-filter-overlay
p-component p-fluid":!0,"p-column-filter-overlay-menu":t}};function
yU(t,i){if(1&t){const e=I();l(0,"div",11),C("click",function(){r
eturn v(e),d().onContentClick()})("(a)overlayAnimation.start",function(s){return
v(e),d().onOverlayAnimationStart(s)})("(a)overlayAnimation.done",function(s){return
v(e),d().onOverlayAnimationEnd(s)})("keydown.escape",function(){return
v(e),d().onEscape()}),_(1,aU,1,0,"ng-container",12),_(2,uU,5,2,"ul",13),_(3,bU,7,5,"ng-template",null,14,we),_(5,vU,1,0,"ng-container",12),c()}if(2&t){const
e=F(4),n=d();p("ngClass",U(8,CU,"menu"===n.display))("@overlayAnimation","visible"),a(1),p("ngTemplateOutlet",n.headerTemplate)("ngTemplateOutletContext",U(10,Zs,n.field)),a(1),p("ngIf","row"===n.display)("ngIfElse",e),a(3),p("ngTemplateOutlet",n.footerTemplate)("ngTemplateOutletContext",U(12,Zs,n.field))}}const
wU=function(t,i){return{"p-column-filter-row":t,"p-column-filter-menu":i}};let
Cd=(()=>{class t{constructor(){this.sortSource=new ct,this.selectionSource=new
ct,this.contextMenuSource=new ct,this.valueSource=new ct,this.totalRecordsSource=new
ct,this.columnsSource=new ct,this.resetSource=new c
t,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=X({token:t,factory:t.\u0275fac}),t})(),Dn=(()=>{class
t{constructor(e,n,s,r,o,u){this.el=e,this.zone=n,this.tableService=s,this.cd=r,this.filterService=o,this.overlayService=u,this.pageLinks=5,this.alwaysShowPaginator=!0,thi
s.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
H,this.selectionChange=new H,this.contextMenuSelectionChange=new
H,this.contextMenuSelectionMode="separate",this.rowTrackBy=(h,b)=>b,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
H,t
his.onRowUnselect=new H,this.onPage=new H,this.onSort=new H,this.onFilter=new
H,this.onLazyLoad=new H,this.onRowExpand=new H,this.onRowCollapse=new
H,this.onContextMenuSelect=new H,this.onColResize=new H,this.onColReorder=new
H,this.onRowReorder=new H,this.onEditInit=new H,this.onEditComplete=new
H,this.onEditCancel=new H,this.onHeaderCheckboxToggle=new H,this.sortFunction=new
H,this.firstChange=new H,this.rowsChange=new H,this.onStateSave=new
H,this.onStateRestore=new
H,this._value=[],this._totalRecords=0,this._first=0,this.selectionKeys={},this._sortOrder=1,this._selectAll=null,this.columnResizing=!1,this.rowGroupHeaderStyleObject={},this.id=pl(),this.virtualScrollInitialized=!1}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.forEac
h(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.frozenFooterTemplate=e.template;break;case"f
rozencolgroup":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():"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.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)&&this.sortMultiple()),e.selecti
on&&(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(Z.resolveFieldData(e,this.dataKey))]=1;else
this.selectionKeys[String(Z.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=null,this.scrollable&&this.res
etScrollTop()}sort(e){let
n=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
s=n.metaKey||n.ctrlKey,r=this.getSortMeta(e.field);r?s?r.order=-1*r.order:(this._multiSortMeta=[{field:e.field,order:-1*r.order}],this.resetPageOnSort&&(this._first=0,this.firstChange.emit(this._first),this.scrollable&&this.resetScrollTop())):((!s||!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,n=this.sortField?this.sortOrder:this.groupRowsByOrder;if(this.groupRowsBy&&this.so
rtField&&this.groupRowsBy!==this.sortField)return
this._multiSortMeta=[this.getGroupRowsMeta(),{field:this.sortField,order:this.sortOrder}],void
this.sortMultiple();if(e&&n){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:n}):(this.value.sort((r,o)=>{let
u=Z.resolveFieldData(r,e),h=Z.resolveFieldData(o,e),b=null;return
b=null==u&&null!=h?-1:null!=u&&null==h?1:null==u&&null==h?0:"string"==typeof
u&&"string"==typeof
h?u.localeCompare(h):u<h?-1:u>h?1:0,n*b}),this._value=[...this.value]),this.hasFilter()&&this._filter());let
s={field:e,order:n};this.onSort.emit(s),this.tableService.onSort(s)}}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,n)=>this.multisortField(e,n,this.multiSortMeta,0)),this._value=[...this.value]),this.hasFilter()&&this._filter()),this.onSort.emit({multisortmeta:this.multiSortMeta}),this.tableService.onSort(this.multiSortMeta))}multisortField(e,n,s,r){let
o=Z.resolveFieldData(e,s[r].field),u=Z.resolveFieldData(n,s[r].field),h=null;if(null==o&&null!=u)h=-1;else
if(null!=o&&null==u)h=1;else if(null==o&&null==u)h=0;else
if("string"==typeof o||o instanceof
String){if(o.localeCompare&&o!=u)return s[r].order*o.localeCompare(u)}else
h=o<u?-1:1;return
o==u?s.length-1>r?this.multisortField(e,n,s,r+1):0:s[r].order*h}getSortMeta(e){if(this.multiSortMeta&&this.multiSortMeta.length)for(let
n=0;n<this.multiSortMeta.length;n++)if(this.multiSortMeta[n].field===e)return
this.multiSortMeta[n];return null}isSorted(
e){if("single"===this.sortMode)return
this.sortField&&this.sortField===e;if("multiple"===this.sortMode){let
n=!1;if(this.multiSortMeta)for(let
s=0;s<this.multiSortMeta.length;s++)if(this.multiSortMeta[s].field==e){n=!0;break}return
n}}handleRowClick(e){let
n=e.originalEvent.target,s=n.nodeName,r=n.parentElement&&n.parentElement.nodeName;if("INPUT"!=s&&"BUTTON"!=s&&"A"!=s&&"INPUT"!=r&&"BUTTON"!=r&&"A"!=r&&!R.hasClass(e.originalEvent.target,"p-clickable")){if(this.selectionMode){let
o=e.rowData,u=e.rowIndex;if(this.preventSelectionSetterPropagation=!0,this.isMultipleSelectionMode()&&e.originalEvent.shiftKey&&null!=this.anchorRowIndex)R.clearSelection(),null!=this.rangeRowIndex&&this.clearSelectionRange(e.originalEvent),this.rangeRowIndex=u,this.selectRange(e.originalEvent,u);else{let
h=this.isSelected(o);if(!h&&!this.isRowSelectable(o,u))return;let
b=!this.rowTouched&&this.metaKeySelection,y=this.dataKey?String(Z.resolveFieldData(o,this.dataKey)):null;if(this.anchorRowIndex=u,this.ran
geRowIndex=u,b){let
w=e.originalEvent.metaKey||e.originalEvent.ctrlKey;if(h&&w){if(this.isSingleSelectionMode())this._selection=null,this.selectionKeys={},this.selectionChange.emit(null);else{let
M=this.findIndexInSelection(o);this._selection=this.selection.filter((E,L)=>L!=M),this.selectionChange.emit(this.selection),y&&delete
this.selectionKeys[y]}this.onRowUnselect.emit({originalEvent:e.originalEvent,data:o,type:"row"})}else
this.isSingleSelectionMode()?(this._selection=o,this.selectionChange.emit(o),y&&(this.selectionKeys={},this.selectionKeys[y]=1)):this.isMultipleSelectionMode()&&(w?this._selection=this.selection||[]:(this._selection=[],this.selectionKeys={}),this._selection=[...this.selection,o],this.selectionChange.emit(this.selection),y&&(this.selectionKeys[y]=1)),this.onRowSelect.emit({originalEvent:e.originalEvent,data:o,type:"row",index:u})}else
if("single"===this.selectionMode)h?(this._selection=null,this.selectionKeys={},this.selectionChange.emit(this.selection),this.o
nRowUnselect.emit({originalEvent:e.originalEvent,data:o,type:"row",index:u})):(this._selection=o,this.selectionChange.emit(this.selection),this.onRowSelect.emit({originalEvent:e.originalEvent,data:o,type:"row",index:u}),y&&(this.selectionKeys={},this.selectionKeys[y]=1));else
if("multiple"===this.selectionMode)if(h){let
w=this.findIndexInSelection(o);this._selection=this.selection.filter((M,E)=>E!=w),this.selectionChange.emit(this.selection),this.onRowUnselect.emit({originalEvent:e.originalEvent,data:o,type:"row",index:u}),y&&delete
this.selectionKeys[y]}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:u}),y&&(this.selectionKeys[y]=1)}this.tableService.onSelectionChange(),this.isStateful()&&this.saveState()}this.rowTouched=!1}}handleRowTouchEnd(e){this.rowTouched=!0}handleRowRightClick(e){if(this.contextMenu){const
n=e.rowData,s=e.rowIndex;if("separate"
===this.contextMenuSelectionMode)this.contextMenuSelection=n,this.contextMenuSelectionChange.emit(n),this.onContextMenuSelect.emit({originalEvent:e.originalEvent,data:n,index:e.rowIndex}),this.contextMenu.show(e.originalEvent),this.tableService.onContextMenu(n);else
if("joint"===this.contextMenuSelectionMode){this.preventSelectionSetterPropagation=!0;let
r=this.isSelected(n),o=this.dataKey?String(Z.resolveFieldData(n,this.dataKey)):null;if(!r){if(!this.isRowSelectable(n,s))return;this.isSingleSelectionMode()?(this.selection=n,this.selectionChange.emit(n),o&&(this.selectionKeys={},this.selectionKeys[o]=1)):this.isMultipleSelectionMode()&&(this._selection=this.selection?[...this.selection,n]:[n],this.selectionChange.emit(this.selection),o&&(this.selectionKeys[o]=1))}this.tableService.onSelectionChange(),this.contextMenu.show(e.originalEvent),this.onContextMenuSelect.emit({originalEvent:e,data:n,index:e.rowIndex})}}}selectRange(e,n){let
s,r;this.anchorRowIndex>n?(s=n,r=this.anchorRowIn
dex):this.anchorRowIndex<n?(s=this.anchorRowIndex,r=n):(s=n,r=n),this.lazy&&this.paginator&&(s-=this.first,r-=this.first);let
o=[];for(let u=s;u<=r;u++){let
h=this.filteredValue?this.filteredValue[u]:this.value[u];if(!this.isSelected(h)){if(!this.isRowSelectable(h,n))continue;o.push(h),this._selection=[...this.selection,h];let
b=this.dataKey?String(Z.resolveFieldData(h,this.dataKey)):null;b&&(this.selectionKeys[b]=1)}}this.selectionChange.emit(this.selection),this.onRowSelect.emit({originalEvent:e,data:o,type:"row"})}clearSelectionRange(e){let
n,s;this.rangeRowIndex>this.anchorRowIndex?(n=this.anchorRowIndex,s=this.rangeRowIndex):this.rangeRowIndex<this.anchorRowIndex?(n=this.rangeRowIndex,s=this.anchorRowIndex):(n=this.rangeRowIndex,s=this.rangeRowIndex);for(let
r=n;r<=s;r++){let
o=this.value[r],u=this.findIndexInSelection(o);this._selection=this.selection.filter((b,y)=>y!=u);let
h=this.dataKey?String(Z.resolveFieldData(o,this.dataKey)):null;h&&delete
this.selectionKeys[h],this.onR
owUnselect.emit({originalEvent:e,data:o,type:"row"})}}isSelected(e){return!(!e||!this.selection)&&(this.dataKey?void
0!==this.selectionKeys[Z.resolveFieldData(e,this.dataKey)]:this.selection instanceof
Array?this.findIndexInSelection(e)>-1:this.equals(e,this.selection))}findIndexInSelection(e){let
n=-1;if(this.selection&&this.selection.length)for(let
s=0;s<this.selection.length;s++)if(this.equals(e,this.selection[s])){n=s;break}return
n}isRowSelectable(e,n){return!(this.rowSelectable&&!this.rowSelectable({data:e,index:n}))}toggleRowWithRadio(e,n){if(this.preventSelectionSetterPropagation=!0,this.selection!=n){if(!this.isRowSelectable(n,e.rowIndex))return;this._selection=n,this.selectionChange.emit(this.selection),this.onRowSelect.emit({originalEvent:e.originalEvent,index:e.rowIndex,data:n,type:"radiobutton"}),this.dataKey&&(this.selectionKeys={},this.selectionKeys[String(Z.resolveFieldData(n,this.dataKey))]=1)}else
this._selection=null,this.selectionChange.emit(this.selection),this.
onRowUnselect.emit({originalEvent:e.originalEvent,index:e.rowIndex,data:n,type:"radiobutton"});this.tableService.onSelectionChange(),this.isStateful()&&this.saveState()}toggleRowWithCheckbox(e,n){this.selection=this.selection||[];let
s=this.isSelected(n),r=this.dataKey?String(Z.resolveFieldData(n,this.dataKey)):null;if(this.preventSelectionSetterPropagation=!0,s){let
o=this.findIndexInSelection(n);this._selection=this.selection.filter((u,h)=>h!=o),this.selectionChange.emit(this.selection),this.onRowUnselect.emit({originalEvent:e.originalEvent,index:e.rowIndex,data:n,type:"checkbox"}),r&&delete
this.selectionKeys[r]}else{if(!this.isRowSelectable(n,e.rowIndex))return;this._selection=this.selection?[...this.selection,n]:[n],this.selectionChange.emit(this.selection),this.onRowSelect.emit({originalEvent:e.originalEvent,index:e.rowIndex,data:n,type:"checkbox"}),r&&(this.selectionKeys[r]=1)}this.tableService.onSelectionChange(),this.isStateful()&&this.saveState()}toggleRowsWithCheckbox(e,n
){if(null!==this._selectAll)this.selectAllChange.emit({originalEvent:e,checked:n});else{const
s=this.selectionPageOnly?this.dataToRender:this.filteredValue||this.value||[];let
r=this.selectionPageOnly&&this._selection?this._selection.filter(o=>!s.some(u=>this.equals(o,u))):[];n&&(r=this.frozenValue?[...r,...this.frozenValue,...s]:[...r,...s],r=this.rowSelectable?r.filter((o,u)=>this.rowSelectable({data:o,index:u})):r),this._selection=r,this.preventSelectionSetterPropagation=!0,this.updateSelectionKeys(),this.selectionChange.emit(this._selection),this.tableService.onSelectionChange(),this.onHeaderCheckboxToggle.emit({originalEvent:e,checked:n}),this.isStateful()&&this.saveState()}}equals(e,n){return"equals"===this.compareSelectionBy?e===n:Z.equals(e,n,this.dataKey)}filter(e,n,s){this.filterTimeout&&clearTimeout(this.filterTimeout),this.isFilterBlank(e)?this.filters[n]&&delete
this.filters[n]:this.filters[n]={value:e,matchMode:s},this.filterTimeout=setTimeout(()=>{this._filter(),this.
filterTimeout=null},this.filterDelay),this.anchorRowIndex=null}filterGlobal(e,n){this.filter(e,"global",n)}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
n=0;n<this.value.length;n++){let u,s=!0,r=!1,o=!1;for(let h in
this.filters)if(this.filters.hasOwnProperty(h)&&"global"!==h){o=!0;let
b=h,y=this.filters[b];if(Array.isArray(y)){for(let w of
y)if(s=this.executeLocalFilter(b,this.value[n],w),w.operator===ml.OR&&s||w.operator===ml.AND&&!s)break}else
s=this.executeLocalFilter(b,this.value[n],y);if(!s)b
reak}if(this.filters.global&&!r&&e)for(let
h=0;h<e.length&&(r=this.filterService.filters[this.filters.global.matchMode](Z.resolveFieldData(this.value[n],e[h].field||e[h]),this.filters.global.value,this.filterLocale),!r);h++);u=this.filters.global?o?o&&s&&r:r:o&&s,u&&this.filteredValue.push(this.value[n])}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,n,s){let
r=s.value,o=s.matchMode||_t.STARTS_WITH,u=Z.resolveFieldData(n,e);return this.f
ilterService.filters[o](u,r,this.filterLocale)}hasFilter(){let e=!0;for(let n in
this.filters)if(this.filters.hasOwnProperty(n)){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()}getExportHeader(e){return
e[this.exportHeader]||e.header||e.field}exportCSV(e){let
n,s="",r=this.columns;e&&e.selectionOnly?n=this.selection||[]:(n=this.filteredValue||this.value,this.f
rozenValue&&(n=n?[...this.frozenValue,...n]:this.frozenValue));for(let
h=0;h<r.length;h++){let
b=r[h];!1!==b.exportable&&b.field&&(s+='"'+this.getExportHeader(b)+'"',h<r.length-1&&(s+=this.csvSeparator))}n.forEach((h,b)=>{s+="\n";for(let
y=0;y<r.length;y++){let w=r[y];if(!1!==w.exportable&&w.field){let
M=Z.resolveFieldData(h,w.field);M=null!=M?this.exportFunction?this.exportFunction({data:M,field:w.field}):String(M).replace(/"/g,'""'):"",s+='"'+M+'"',y<r.length-1&&(s+=this.csvSeparator)}}});let
o=new
Blob([s],{type:"text/csv;charset=utf-8;"}),u=document.createElement("a");u.style.display="none",document.body.appendChild(u),void
0!==u.download?(u.setAttribute("href",URL.createObjectURL(o)),u.setAttribute("download",this.exportFilename+".csv"),u.click()):(s="data:text/csv;charset=utf-8,"+s,window.open(encodeURI(s))),document.body.removeChild(u)}resetScrollTop(){this.virtualScroll?this.scrollToVirtualIndex(0):this.scrollTo({top:0})}scrollToVirtualIndex(e){this.virtualScrollBody&&this.v
irtualScrollBody.scrollToIndex(e)}onScrollIndexChange(e){this.lazy&&(this.virtualScrollTimeout&&clearTimeout(this.virtualScrollTimeout),this.virtualScrollTimeout=setTimeout(()=>{let
n=Math.floor(e/this.rows),s=0===n?0:(n-1)*this.rows,r=0===n?2*this.rows:3*this.rows;n!==this.virtualPage&&(this.virtualPage=n,this.lazyLoadOnInit||this.virtualScrollInitialized?this.onLazyLoad.emit({first:s,rows:r,sortField:this.sortField,sortOrder:this.sortOrder,filters:this.filters,globalFilter:this.filters&&this.filters.global?this.filters.global.value:null,multiSortMeta:this.multiSortMeta}):this.virtualScrollInitialized=!0)},this.virtualScrollDelay))}scrollTo(e){this.virtualScrollBody?this.virtualScrollBody.scrollTo(e):this.wrapperViewChild&&this.wrapperViewChild.nativeElement&&(this.wrapperViewChild.nativeElement.scrollTo?this.wrapperViewChild.nativeElement.scrollTo(e):(this.wrapperViewChild.nativeElement.scrollLeft=e.left,this.wrapperViewChild.nativeElement.scrollTop=e.top))}updateEditingCell(e,n,s
,r){this.editingCell=e,this.editingCellData=n,this.editingCellField=s,this.editingCellRowIndex=r,this.bindDocumentEditListener()}isEditingCellValid(){return
this.editingCell&&0===R.find(this.editingCell,".ng-invalid.ng-dirty").length}bindDocumentEditListener(){this.documentEditListener||(this.documentEditListener=e=>{this.editingCell&&!this.selfClick&&this.isEditingCellValid()&&(R.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.do
cumentEditListener=null)}initRowEdit(e){let
n=String(Z.resolveFieldData(e,this.dataKey));this.editingRowKeys[n]=!0}saveRowEdit(e,n){if(0===R.find(n,".ng-invalid.ng-dirty").length){let
s=String(Z.resolveFieldData(e,this.dataKey));delete
this.editingRowKeys[s]}}cancelRowEdit(e){let
n=String(Z.resolveFieldData(e,this.dataKey));delete
this.editingRowKeys[n]}toggleRow(e,n){if(!this.dataKey)throw new Error("dataKey must
be defined to use row expansion");let
s=String(Z.resolveFieldData(e,this.dataKey));null!=this.expandedRowKeys[s]?(delete
this.expandedRowKeys[s],this.onRowCollapse.emit({originalEvent:n,data:e})):("single"===this.rowExpandMode&&(this.expandedRowKeys={}),this.expandedRowKeys[s]=!0,this.onRowExpand.emit({originalEvent:n,data:e})),n&&n.preventDefault(),this.isStateful()&&this.saveState()}isRowExpanded(e){return!0===this.expandedRowKeys[String(Z.resolveFieldData(e,this.dataKey))]}isRowEditing(e){return!0===this.editingRowKeys[String(Z.resolveFieldData(e,this.dataKey))]}isSingl
eSelectionMode(){return"single"===this.selectionMode}isMultipleSelectionMode(){return"multiple"===this.selectionMode}onColumnResizeBegin(e){let
n=R.getOffset(this.containerViewChild.nativeElement).left;this.resizeColumnElement=e.target.parentElement,this.columnResizing=!0,this.lastResizerHelperX=e.pageX-n+this.containerViewChild.nativeElement.scrollLeft,this.onColumnResize(e),e.preventDefault()}onColumnResize(e){let
n=R.getOffset(this.containerViewChild.nativeElement).left;R.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-n+this.containerViewChild.nativeElement.scrollLeft+"px",this.resizeHelperViewChild.nativeElement.style.display="block"}onColumnResizeEnd(){let
e=this.resizeHelperViewChild.nativeElement.offsetLeft-this.lastResizerHelperX
,s=this.resizeColumnElement.offsetWidth+e;if(s>=(this.resizeColumnElement.style.minWidth||15)){if("fit"===this.columnResizeMode){let
u=this.resizeColumnElement.nextElementSibling.offsetWidth-e;s>15&&u>15&&this.resizeTableCells(s,u)}else
if("expand"===this.columnResizeMode){let
o=this.tableViewChild.nativeElement.offsetWidth+e;this.tableViewChild.nativeElement.style.width=o+"px",this.tableViewChild.nativeElement.style.minWidth=o+"px",this.resizeTableCells(s,null)}this.onColResize.emit({element:this.resizeColumnElement,delta:e}),this.isStateful()&&this.saveState()}this.resizeHelperViewChild.nativeElement.style.display="none",R.removeClass(this.containerViewChild.nativeElement,"p-unselectable-text")}resizeTableCells(e,n){let
s=R.index(this.resizeColumnElement),r=[];const
o=R.findSingle(this.containerViewChild.nativeElement,".p-datatable-thead");R.find(o,"tr
>
th").forEach(b=>r.push(R.getOuterWidth(b))),this.destroyStyleElement(),this.createStyleElement();let
h="";r.forEach((b,y)=>{let
w=y===s?e:n&&y===s+1?n:b;h+=`\n #${this.id} .p-datatable-thead
> tr > th:nth-child(${y+1}),\n #${this.id} .p-datatable-tbody > tr
> td:nth-child(${y+1}),\n #${this.id} .p-datatable-tfoot > tr >
td:nth-child(${y+1}) {\n ${this.scrollable?`flex: 1 1 ${w}px
!important`:`width: ${w}px !important`}\n }\n
`}),this.styleElement.innerHTML=h}onColumnDragStart(e,n){this.reorderIconWidth=R.getHiddenElementOuterWidth(this.reorderIndicatorUpViewChild.nativeElement),this.reorderIconHeight=R.getHiddenElementOuterHeight(this.reorderIndicatorDownViewChild.nativeElement),this.draggedColumn=n,e.dataTransfer.setData("text","b")}onColumnDragEnter(e,n){if(this.reorderableColumns&&this.draggedColumn&&n){e.preventDefault();let
s=R.getOffset(this.containerViewChild.nativeElement),r=R.getOffset(n);if(this.draggedColumn!=n){let
o=R.indexWithinGroup(this.draggedColumn,"preorderablecolumn"),u=R.indexWithinGroup(n,"preorder
ablecolumn"),h=r.left-s.left,y=r.left+n.offsetWidth/2;this.reorderIndicatorUpViewChild.nativeElement.style.top=r.top-s.top-(this.reorderIconHeight-1)+"px",this.reorderIndicatorDownViewChild.nativeElement.style.top=r.top-s.top+n.offsetHeight+"px",e.pageX>y?(this.reorderIndicatorUpViewChild.nativeElement.style.left=h+n.offsetWidth-Math.ceil(this.reorderIconWidth/2)+"px",this.reorderIndicatorDownViewChild.nativeElement.style.left=h+n.offsetWidth-Math.ceil(this.reorderIconWidth/2)+"px",this.dropPosition=1):(this.reorderIndicatorUpViewChild.nativeElement.style.left=h-Math.ceil(this.reorderIconWidth/2)+"px",this.reorderIndicatorDownViewChild.nativeElement.style.left=h-Math.ceil(this.reorderIconWidth/2)+"px",this.dropPosition=-1),u-o==1&&-1===this.dropPosition||u-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,n){if(e.preventDefault(),this.draggedColumn){let
s=R.indexWithinGroup(this.draggedColumn,"preorderablecolumn"),r=R.indexWithinGroup(n,"preorderablecolumn"),o=s!=r;o&&(r-s==1&&-1===this.dropPosition||s-r==1&&1===this.dropPosition)&&(o=!1),o&&r<s&&1===this.dropPosition&&(r+=1),o&&r>s&&-1===this.dropPosition&&(r-=1),o&&(Z.reorderArray(this.columns,s,r),this.onColReorder.emit({dragIndex:s,dropIndex:r,columns:this.columns}),this.isStateful()&&this.zone.runOutsideAngular(()=>{setTimeout(()=>{this.saveState()})})),this.reorderIndicatorUpViewChild.nativeElement.style.display="none",this.reorderIndicatorDownViewChild.nativeElement.style.d
isplay="none",this.draggedColumn.draggable=!1,this.draggedColumn=null,this.dropPosition=null}}onRowDragStart(e,n){this.rowDragging=!0,this.draggedRowIndex=n,e.dataTransfer.setData("text","b")}onRowDragOver(e,n,s){if(this.rowDragging&&this.draggedRowIndex!==n){let
r=R.getOffset(s).top+R.getWindowScrollTop(),o=e.pageY,u=r+R.getOuterHeight(s)/2,h=s.previousElementSibling;o<u?(R.removeClass(s,"p-datatable-dragpoint-bottom"),this.droppedRowIndex=n,h?R.addClass(h,"p-datatable-dragpoint-bottom"):R.addClass(s,"p-datatable-dragpoint-top")):(h?R.removeClass(h,"p-datatable-dragpoint-bottom"):R.addClass(s,"p-datatable-dragpoint-top"),this.droppedRowIndex=n+1,R.addClass(s,"p-datatable-dragpoint-bottom"))}}onRowDragLeave(e,n){let
s=n.previousElementSibling;s&&R.removeClass(s,"p-datatable-dragpoint-bottom"),R.removeClass(n,"p-datatable-dragpoint-bottom"),R.removeClass(n,"p-datatable-dragpoint-top")}onRowDragEnd(e){this.rowDragging=!1,this.draggedRowIndex=null,this.droppedRowIndex=null}onRowDrop(e,
n){if(null!=this.droppedRowIndex){let
s=this.draggedRowIndex>this.droppedRowIndex?this.droppedRowIndex:0===this.droppedRowIndex?0:this.droppedRowIndex-1;Z.reorderArray(this.value,this.draggedRowIndex,s),this.virtualScroll&&(this._value=[...this._value]),this.onRowReorder.emit({dragIndex:this.draggedRowIndex,dropIndex:s})}this.onRowDragLeave(e,n),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
n={};this.paginator&&(n.first=this.first,n.rows=this.rows),this.sortField&&(n.sortField=this.sortField,n.sortOrder=this.sortOrder),this.multiSortMeta&&(
n.multiSortMeta=this.multiSortMeta),this.hasFilter()&&(n.filters=this.filters),this.resizableColumns&&this.saveColumnWidths(n),this.reorderableColumns&&this.saveColumnOrder(n),this.selection&&(n.selection=this.selection),Object.keys(this.expandedRowKeys).length&&(n.expandedRowKeys=this.expandedRowKeys),e.setItem(this.stateKey,JSON.stringify(n)),this.onStateSave.emit(n)}clearState(){const
e=this.getStorage();this.stateKey&&e.removeItem(this.stateKey)}restoreState(){const
n=this.getStorage().getItem(this.stateKey),s=/\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}.\d{3}Z/;if(n){let
o=JSON.parse(n,function(o,u){return"string"==typeof u&&s.test(u)?new
Date(u):u});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.filt
ers&&(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
n=[];R.find(this.containerViewChild.nativeElement,".p-datatable-thead > tr >
th").forEach(r=>n.push(R.getOuterWidth(r))),e.columnWidths=n.join(","),"expand"===this.columnResizeMode&&(e.tableWidth=R.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),Z.isNotEmpty(e))
{this.createStyleElement();let n="";e.forEach((s,r)=>{n+=`\n
#${this.id} .p-datatable-thead > tr > th:nth-child(${r+1}),\n
#${this.id} .p-datatable-tbody > tr > td:nth-child(${r+1}),\n
#${this.id} .p-datatable-tfoot > tr > td:nth-child(${r+1}) {\n
${this.scrollable?`flex: 1 1 ${s}px !important`:`width: ${s}px !important`}\n
}\n
`}),this.styleElement.innerHTML=n}}}saveColumnOrder(e){if(this.columns){let
n=[];this.columns.map(s=>{n.push(s.field||s.key)}),e.columnOrder=n}}restoreColumnOrder(){const
n=this.getStorage().getItem(this.stateKey);if(n){let r=JSON.parse(n).columnOrder;if(r){let
o=[];r.map(u=>{let
h=this.findColumnByKey(u);h&&o.push(h)}),this.columnOrderStateRestored=!0,this.columns=o}}}findColumnByKey(e){if(!this.columns)return
null;for(let n of this.columns)if(n.key===e||n.field===e)return
n}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.virtualScrollInitialized=null,this.virtualScrollSubscription&&this.virtualScrollSubscription.unsubscribe(),this.destroyStyleElement(),this.destroyResponsiveStyle()}}return
t.\u0275fac=function(e){return
new(e||t)(D(De),D(nt),D(Cd),D(rt),D(hl),D(Ks))},t.\u0275cmp=z({type:t,selectors:[["p-table"]],contentQueries:function(e,n,s){if(1&e&&st(s,ne,4),2&e){let
r;V(r=B())&&(n.templates=r)}},viewQuery:function(e,n){if(1&e&&(W(Eq,5),W(Rq,5),W(Lq,5),W(Oq,5),W(Aq,5),W(Pq
,5),W(Fq,5),W(Po,5)),2&e){let
s;V(s=B())&&(n.containerViewChild=s.first),V(s=B())&&(n.resizeHelperViewChild=s.first),V(s=B())&&(n.reorderIndicatorUpViewChild=s.first),V(s=B())&&(n.reorderIndicatorDownViewChild=s.first),V(s=B())&&(n.wrapperViewChild=s.first),V(s=B())&&(n.tableViewChild=s.first),V(s=B())&&(n.tableHeaderViewChild=s.first),V(s=B())&&(n.virtualScrollBody=s.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",sho
wJumpToPageInput:"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",filterLocale:"filterLocale",expandedRowKeys:"expandedRowKeys",editingRowKeys:"editingRowKeys",rowExpandMode:"rowExpandMode",scrollable:"scrollable",scrollDirection:"scrollDirection",rowGroupMode:"rowGroupMode",scrollHeight:"scrollHeight",virtualScroll:"virtualScroll",virtualScrollDelay:"virtualScrol
lDelay",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",exportHeader:"exportHeader",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",c
ontextMenuSelectionChange:"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:[Pe([Cd]),fn],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","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","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","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"],["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,n){1&e&&(l(0,"div",0,1),_(
2,Nq,2,2,"div",2),_(3,Bq,2,1,"div",3),_(4,Hq,1,17,"p-paginator",4),l(5,"div",5,6),_(7,$q,8,16,"table",7),_(8,Zq,10,21,"cdk-virtual-scroll-viewport",8),c(),_(9,Xq,1,17,"p-paginator",9),_(10,tG,2,1,"div",10),_(11,nG,2,0,"div",11),_(12,iG,2,0,"span",12),_(13,sG,2,0,"span",13),c()),2&e&&(me(n.styleClass),p("ngStyle",n.style)("ngClass",Hh(16,rG,[n.rowHover||n.selectionMode,n.autoLayout,n.resizableColumns,n.resizableColumns&&"fit"===n.columnResizeMode,n.scrollable,n.scrollable&&"vertical"===n.scrollDirection,n.scrollable&&"horizontal"===n.scrollDirection,n.scrollable&&"both"===n.scrollDirection,n.scrollable&&"flex"===n.scrollHeight,"stack"===n.responsiveLayout,"scroll"===n.responsiveLayout,n.responsive,null!=n.headerGroupedTemplate,null!=n.footerGroupedTemplate])),ie("id",n.id),a(2),p("ngIf",n.loading&&n.showLoader),a(1),p("ngIf",n.captionTemplate),a(1),p("ngIf",n.paginator&&("top"===n.paginatorPosition||"both"==n.paginatorPosition)),a(1),p("ngStyle",U(31,oG,n.scrollHeight)),a(2),p("ngIf"
,!n.virtualScroll),a(1),p("ngIf",n.virtualScroll),a(1),p("ngIf",n.paginator&&("bottom"===n.paginatorPosition||"both"==n.paginatorPosition)),a(1),p("ngIf",n.summaryTemplate),a(1),p("ngIf",n.resizableColumns),a(1),p("ngIf",n.reorderableColumns),a(1),p("ngIf",n.reorderableColumns))},directives:function(){return[ET,TU,Po,lt,Le,Q,Rt,Qf]},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-responsi
ve-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-vi
rtual-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-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-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-s
pace:nowrap}.p-datatable-resizable
.p-resizable-column:not(.p-frozen-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-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{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;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})(),TU=(()=>{cla
ss
t{constructor(e,n,s,r){this.dt=e,this.tableService=n,this.cd=s,this.el=r,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,n,s){let
r=Z.resolveFieldData(n,this.dt.groupRowsBy),o=e[s-1];return!o||r!==Z.resolveFieldData(o,this.dt.groupRowsBy)}shouldRenderRowGroupFooter(e,n,s){let
r=Z.resolveFieldData(n,this.dt.groupRowsBy),o=e[s+1];return!o||r!==Z.resolveFieldData(o,this.dt.groupRowsBy)}shouldRenderRowspan(e,n,s){let
r=Z.resolveFieldData(n,this.dt.groupRowsBy),o=e[s-1];return!o||r!==Z.resolveFieldData(o,
this.dt.groupRowsBy)}calculateRowGroupSize(e,n,s){let
r=Z.resolveFieldData(n,this.dt.groupRowsBy),o=r,u=0;for(;r===o;){u++;let
h=e[++s];if(!h)break;o=Z.resolveFieldData(h,this.dt.groupRowsBy)}return
1===u?null:u}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}updateFrozenRowStickyPosition(){this.el.nativeElement.style.top=R.getOuterHeight(this.el.nativeElement.previousElementSibling)+"px"}updateFrozenRowGroupHeaderStickyPosition(){if(this.el.nativeElement.previousElementSibling){let
e=R.getOuterHeight(this.el.nativeElement.previousElementSibling);this.dt.rowGroupHeaderStyleObject.top=e+"px"}}}return
t.\u0275fac=function(e){return
new(e||t)(D(Dn),D(Cd),D(rt),D(De))},t.\u0275cmp=z({type:t,selectors:[["","pTableBody",""]],hostAttrs:[1,"p-element"],inputs:{columns:["pTableBody","columns"],template:["pTableBodyTemplate","template"],value:"value",frozen:"frozen",frozenRows:"frozenRows"},attrs:aG,decls:6,vars:6,consts:[[4,"ngIf"],["ngFor","",3,"ngForOf","ngForTrackBy"],["r
ole","row",4,"ngIf"],["role","row"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],["cdkVirtualFor","",3,"cdkVirtualForOf","cdkVirtualForTrackBy","cdkVirtualForTemplateCacheSize"]],template:function(e,n){1&e&&(_(0,bG,2,2,"ng-container",0),_(1,yG,2,3,"ng-container",0),_(2,RG,2,2,"ng-container",0),_(3,FG,2,2,"ng-container",0),_(4,VG,2,5,"ng-container",0),_(5,HG,2,5,"ng-container",0)),2&e&&(p("ngIf",!n.dt.expandedRowTemplate&&!n.dt.virtualScroll),a(1),p("ngIf",!n.dt.expandedRowTemplate&&n.dt.virtualScroll),a(1),p("ngIf",n.dt.expandedRowTemplate&&!(n.frozen&&n.dt.frozenExpandedRowTemplate)),a(1),p("ngIf",n.dt.frozenExpandedRowTemplate&&n.frozen),a(1),p("ngIf",n.dt.loading),a(1),p("ngIf",n.dt.isEmpty()&&!n.dt.loading))},directives:[Q,at,Rt,Jf],encapsulation:2}),t})(),SU=(()=>{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)(D(Dn)
)},t.\u0275dir=le({type:t,selectors:[["","pRowGroupHeader",""]],hostAttrs:[1,"p-rowgroup-header","p-element"],hostVars:2,hostBindings:function(e,n){2&e&&_i("top",n.getFrozenRowGroupHeaderStickyPosition)}}),t})(),yd=(()=>{class
t{constructor(e){this.dt=e,this.isEnabled()&&(this.subscription=this.dt.tableService.sortSource$.subscribe(n=>{this.updateSortState()}))}ngOnInit(){this.isEnabled()&&this.updateSortState()}updateSortState(){this.sorted=this.dt.isSorted(this.field),this.sortOrder=this.sorted?1===this.dt.sortOrder?"ascending":"descending":"none"}onClick(e){this.isEnabled()&&!this.isFilterElement(e.target)&&(this.updateSortState(),this.dt.sort({originalEvent:e,field:this.field}),R.clearSelection())}onEnterKey(e){this.onClick(e)}isEnabled(){return!0!==this.pSortableColumnDisabled}isFilterElement(e){return
R.hasClass(e,"pi-filter-icon")||R.hasClass(e,"p-column-filter-menu-button")}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}}return
t.\u0275fac=function(e){retur
n
new(e||t)(D(Dn))},t.\u0275dir=le({type:t,selectors:[["","pSortableColumn",""]],hostAttrs:[1,"p-element"],hostVars:7,hostBindings:function(e,n){1&e&&C("click",function(r){return
n.onClick(r)})("keydown.enter",function(r){return
n.onEnterKey(r)}),2&e&&(ie("tabindex",n.isEnabled()?"0":null)("role","columnheader")("aria-sort",n.sortOrder),si("p-sortable-column",n.isEnabled())("p-highlight",n.sorted))},inputs:{field:["pSortableColumn","field"],pSortableColumnDisabled:"pSortableColumnDisabled"}}),t})(),wd=(()=>{class
t{constructor(e,n){this.dt=e,this.cd=n,this.subscription=this.dt.tableService.sortSource$.subscribe(s=>{this.updateSortState()})}ngOnInit(){this.updateSortState()}onClick(e){e.preventDefault()}updateSortState(){if("single"===this.dt.sortMode)this.sortOrder=this.dt.isSorted(this.field)?this.dt.sortOrder:0;else
if("multiple"===this.dt.sortMode){let
e=this.dt.getSortMeta(this.field);this.sortOrder=e?e.order:0}this.cd.markForCheck()}getMultiSortMetaIndex(){let
e=this.dt._multiS
ortMeta,n=-1;if(e&&"multiple"===this.dt.sortMode&&(this.dt.showInitialSortBadge||e.length>1))for(let
s=0;s<e.length;s++){let
r=e[s];if(r.field===this.field||r.field===this.field){n=s;break}}return
n}getBadgeValue(){let e=this.getMultiSortMetaIndex();return
this.dt.groupRowsBy&&e>-1?e:e+1}isMultiSorted(){return"multiple"===this.dt.sortMode&&this.getMultiSortMetaIndex()>-1}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}}return
t.\u0275fac=function(e){return
new(e||t)(D(Dn),D(rt))},t.\u0275cmp=z({type:t,selectors:[["p-sortIcon"]],hostAttrs:[1,"p-element"],inputs:{field:"field"},decls:2,vars:6,consts:[[1,"p-sortable-column-icon","pi","pi-fw",3,"ngClass"],["class","p-sortable-column-badge",4,"ngIf"],[1,"p-sortable-column-badge"]],template:function(e,n){1&e&&(k(0,"i",0),_(1,qG,2,1,"span",1)),2&e&&(p("ngClass",Qt(2,GG,1===n.sortOrder,-1===n.sortOrder,0===n.sortOrder)),a(1),p("ngIf",n.isMultiSorted()))},directives:[Le,Q],encapsulation:2,changeDetection:0}),t})(),j2=(()=>{c
lass
t{constructor(e,n){this.dt=e,this.tableService=n,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
s=this.findNextSelectableRow(e.currentTarget);s&&s.focus(),e.preventDefault()}onArrowUpKeyDown(e){if(!this.isEnabled())return;const
s=this.findPrevSelectableRow(e.currentTarget);s&&s.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.virtua
lScrollBody.elementRef.nativeElement.focus()}findNextSelectableRow(e){let
n=e.nextElementSibling;return
n?R.hasClass(n,"p-selectable-row")?n:this.findNextSelectableRow(n):null}findPrevSelectableRow(e){let
n=e.previousElementSibling;return
n?R.hasClass(n,"p-selectable-row")?n:this.findPrevSelectableRow(n):null}isEnabled(){return!0!==this.pSelectableRowDisabled}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}}return
t.\u0275fac=function(e){return
new(e||t)(D(Dn),D(Cd))},t.\u0275dir=le({type:t,selectors:[["","pSelectableRow",""]],hostAttrs:[1,"p-element"],hostVars:5,hostBindings:function(e,n){1&e&&C("click",function(r){return
n.onClick(r)})("touchend",function(r){return
n.onTouchEnd(r)})("keydown.arrowdown",function(r){return
n.onArrowDownKeyDown(r)})("keydown.arrowup",function(r){return
n.onArrowUpKeyDown(r)})("keydown.enter",function(r){return
n.onEnterKeyDown(r)})("keydown.shift.enter",function(r){return
n.onEnterKeyDown(r)})("keydown.meta.enter",function(r){return
n.onEnterKeyDown(r)})("keydown.pagedown",function(){return
n.onPageDownKeyDown()})("keydown.pageup",function(){return
n.onPageDownKeyDown()})("keydown.home",function(){return
n.onPageDownKeyDown()})("keydown.end",function(){return
n.onPageDownKeyDown()})("keydown.space",function(){return
n.onSpaceKeydown()}),2&e&&(ie("tabindex",n.isEnabled()?0:void
0),si("p-selectable-row",n.isEnabled())("p-highlight",n.selected))},inputs:{data:["pSelectableRow","data"],index:["pSelectableRowIndex","index"],pSelectableRowDisabled:"pSelectableRowDisabled"}}),t})(),$2=(()=>{class
t{constructor(e,n,s){this.dt=e,this.el=n,this.zone=s}ngAfterViewInit(){this.isEnabled()&&R.addClass(this.el.nativeElement,"p-editable-column")}onClick(e){if(this.isEnabled())if(this.dt.selfClick=!0,this.dt.editingCell){if(this.dt.editingCell!==this.el.nativeElement){if(!this.dt.isEditingCellValid())return;this.closeEditingCell(!0,e),this.openCell()}}else
this.openCell()}openCell(){this.dt.updateEditingCell(this.el.nativeEleme
nt,this.data,this.field,this.rowIndex),R.addClass(this.el.nativeElement,"p-cell-editing"),this.dt.onEditInit.emit({field:this.field,data:this.data,index:this.rowIndex}),this.zone.runOutsideAngular(()=>{setTimeout(()=>{let
n=R.findSingle(this.el.nativeElement,this.pFocusCellSelector||"input, textarea,
select");n&&n.focus()},50)}),this.overlayEventListener=e=>{this.el&&this.el.nativeElement.contains(e.target)&&(this.dt.selfClick=!0)},this.dt.overlaySubscription=this.dt.overlayService.clickObservable.subscribe(this.overlayEventListener)}closeEditingCell(e,n){e?this.dt.onEditComplete.emit({field:this.dt.editingCellField,data:this.dt.editingCellData,originalEvent:n,index:this.dt.editingCellRowIndex}):this.dt.onEditCancel.emit({field:this.dt.editingCellField,data:this.dt.editingCellData,originalEvent:n,index:this.dt.editingCellRowIndex}),R.removeClass(this.dt.editingCell,"p-cell-editing"),this.dt.editingCell=null,this.dt.editingCellData=null,this.dt.editingCellField=null,this.dt.unbindDoc
umentEditListener(),this.dt.overlaySubscription&&this.dt.overlaySubscription.unsubscribe()}onEnterKeyDown(e){this.isEnabled()&&(this.dt.isEditingCellValid()&&this.closeEditingCell(!0,e),e.preventDefault())}onEscapeKeyDown(e){this.isEnabled()&&(this.dt.isEditingCellValid()&&this.closeEditingCell(!1,e),e.preventDefault())}onShiftKeyDown(e){this.isEnabled()&&(e.shiftKey?this.moveToPreviousCell(e):this.moveToNextCell(e))}onArrowDown(e){if(this.isEnabled()){let
n=this.findCell(e.target);if(n){let
s=R.index(n),r=this.findNextEditableColumnByIndex(n,s);r&&(this.dt.isEditingCellValid()&&this.closeEditingCell(!0,e),R.invokeElementMethod(e.target,"blur"),R.invokeElementMethod(r,"click")),e.preventDefault()}}}onArrowUp(e){if(this.isEnabled()){let
n=this.findCell(e.target);if(n){let
s=R.index(n),r=this.findPrevEditableColumnByIndex(n,s);r&&(this.dt.isEditingCellValid()&&this.closeEditingCell(!0,e),R.invokeElementMethod(e.target,"blur"),R.invokeElementMethod(r,"click")),e.preventDefault()}}}onAr
rowLeft(e){this.isEnabled()&&this.moveToPreviousCell(e)}onArrowRight(e){this.isEnabled()&&this.moveToNextCell(e)}findCell(e){if(e){let
n=e;for(;n&&!R.hasClass(n,"p-cell-editing");)n=n.parentElement;return
n}return null}moveToPreviousCell(e){let n=this.findCell(e.target);if(n){let
s=this.findPreviousEditableColumn(n);s&&(this.dt.isEditingCellValid()&&this.closeEditingCell(!0,e),R.invokeElementMethod(e.target,"blur"),R.invokeElementMethod(s,"click"),e.preventDefault())}}moveToNextCell(e){let
n=this.findCell(e.target);if(n){let
s=this.findNextEditableColumn(n);s&&(this.dt.isEditingCellValid()&&this.closeEditingCell(!0,e),R.invokeElementMethod(e.target,"blur"),R.invokeElementMethod(s,"click"),e.preventDefault())}}findPreviousEditableColumn(e){let
n=e.previousElementSibling;if(!n){let
s=e.parentElement.previousElementSibling;s&&(n=s.lastElementChild)}return
n?R.hasClass(n,"p-editable-column")?n:this.findPreviousEditableColumn(n):null}findNextEditableColumn(e){let
n=e.nextElementSibling;i
f(!n){let s=e.parentElement.nextElementSibling;s&&(n=s.firstElementChild)}return
n?R.hasClass(n,"p-editable-column")?n:this.findNextEditableColumn(n):null}findNextEditableColumnByIndex(e,n){let
s=e.parentElement.nextElementSibling;if(s){let r=s.children[n];return
r&&R.hasClass(r,"p-editable-column")?r:null}return
null}findPrevEditableColumnByIndex(e,n){let
s=e.parentElement.previousElementSibling;if(s){let r=s.children[n];return
r&&R.hasClass(r,"p-editable-column")?r:null}return
null}isEnabled(){return!0!==this.pEditableColumnDisabled}ngOnDestroy(){this.dt.overlaySubscription&&this.dt.overlaySubscription.unsubscribe()}}return
t.\u0275fac=function(e){return
new(e||t)(D(Dn),D(De),D(nt))},t.\u0275dir=le({type:t,selectors:[["","pEditableColumn",""]],hostAttrs:[1,"p-element"],hostBindings:function(e,n){1&e&&C("click",function(r){return
n.onClick(r)})("keydown.enter",function(r){return
n.onEnterKeyDown(r)})("keydown.escape",function(r){return
n.onEscapeKeyDown(r)})("keydown.tab",function(
r){return n.onShiftKeyDown(r)})("keydown.shift.tab",function(r){return
n.onShiftKeyDown(r)})("keydown.meta.tab",function(r){return
n.onShiftKeyDown(r)})("keydown.arrowdown",function(r){return
n.onArrowDown(r)})("keydown.arrowup",function(r){return
n.onArrowUp(r)})("keydown.arrowleft",function(r){return
n.onArrowLeft(r)})("keydown.arrowright",function(r){return
n.onArrowRight(r)})},inputs:{data:["pEditableColumn","data"],field:["pEditableColumnField","field"],rowIndex:["pEditableColumnRowIndex","rowIndex"],pEditableColumnDisabled:"pEditableColumnDisabled",pFocusCellSelector:"pFocusCellSelector"}}),t})(),xU=(()=>{class
t{constructor(e){this.el=e}isEnabled(){return!0!==this.pEditableRowDisabled}}return
t.\u0275fac=function(e){return
new(e||t)(D(De))},t.\u0275dir=le({type:t,selectors:[["","pEditableRow",""]],hostAttrs:[1,"p-element"],inputs:{data:["pEditableRow","data"],pEditableRowDisabled:"pEditableRowDisabled"}}),t})(),DU=(()=>{class
t{constructor(e,n,s){this.dt=e,this.editableColumn
=n,this.editableRow=s}ngAfterContentInit(){this.templates.forEach(e=>{switch(e.getType()){case"input":this.inputTemplate=e.template;break;case"output":this.outputTemplate=e.template}})}get
editing(){return
this.dt.editingCell&&this.editableColumn&&this.dt.editingCell===this.editableColumn.el.nativeElement||this.editableRow&&"row"===this.dt.editMode&&this.dt.isRowEditing(this.editableRow.data)}}return
t.\u0275fac=function(e){return
new(e||t)(D(Dn),D($2,8),D(xU,8))},t.\u0275cmp=z({type:t,selectors:[["p-cellEditor"]],contentQueries:function(e,n,s){if(1&e&&st(s,ne,4),2&e){let
r;V(r=B())&&(n.templates=r)}},hostAttrs:[1,"p-element"],decls:2,vars:2,consts:[[4,"ngIf"],[4,"ngTemplateOutlet"]],template:function(e,n){1&e&&(_(0,zG,2,1,"ng-container",0),_(1,$G,2,1,"ng-container",0)),2&e&&(p("ngIf",n.editing),a(1),p("ngIf",!n.editing))},directives:[Q,Rt],encapsulation:2}),t})(),MU=(()=>{class
t{constructor(e){this.dt=e,this.useGrouping=!0}ngOnInit(){this.filterCallback=e=>{this.filterConstraint.v
alue=e,this.dt._filter()}}onModelChange(e){this.filterConstraint.value=e,("boolean"===this.type||""===e)&&this.dt._filter()}onTextInputEnterKeyDown(e){this.dt._filter(),e.preventDefault()}onNumericInputKeyDown(e){"Enter"===e.key&&(this.dt._filter(),e.preventDefault())}}return
t.\u0275fac=function(e){return
new(e||t)(D(Dn))},t.\u0275cmp=z({type:t,selectors:[["p-columnFilterFormElement"]],hostAttrs:[1,"p-element"],inputs:{field:"field",type:"type",filterConstraint:"filterConstraint",filterTemplate:"filterTemplate",placeholder:"placeholder",minFractionDigits:"minFractionDigits",maxFractionDigits:"maxFractionDigits",prefix:"prefix",suffix:"suffix",locale:"locale",localeMatcher:"localeMatcher",currency:"currency",currencyDisplay:"currencyDisplay",useGrouping:"useGrouping"},decls:3,vars:2,consts:[[4,"ngIf","ngIfElse"],["builtInElement",""],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[3,"ngSwitch"],["type","text","pInputText","",3,"value","input","keydown.enter",4,"ngSwitchCase"],[3,"
ngModel","showButtons","minFractionDigits","maxFractionDigits","prefix","suffix","placeholder","mode","locale","localeMatcher","currency","currencyDisplay","useGrouping","ngModelChange","onKeyDown",4,"ngSwitchCase"],[3,"ngModel","ngModelChange",4,"ngSwitchCase"],[3,"placeholder","ngModel","ngModelChange",4,"ngSwitchCase"],["type","text","pInputText","",3,"value","input","keydown.enter"],[3,"ngModel","showButtons","minFractionDigits","maxFractionDigits","prefix","suffix","placeholder","mode","locale","localeMatcher","currency","currencyDisplay","useGrouping","ngModelChange","onKeyDown"],[3,"ngModel","ngModelChange"],[3,"placeholder","ngModel","ngModelChange"]],template:function(e,n){if(1&e&&(_(0,QG,2,5,"ng-container",0),_(1,eU,5,5,"ng-template",null,1,we)),2&e){const
s=F(2);p("ngIf",n.filterTemplate)("ngIfElse",s)}},directives:[pt,G2,xr,Q,Rt,gr,Ja,DT,Te,_e],encapsulation:2}),t})(),vg=(()=>{class
t{constructor(e,n,s,r,o){this.el=e,this.dt=n,this.renderer=s,this.config=r,this.overlaySe
rvice=o,this.type="text",this.display="row",this.showMenu=!0,this.operator=ml.AND,this.showOperator=!0,this.showClearButton=!0,this.showApplyButton=!0,this.showMatchModes=!0,this.showAddButton=!0,this.hideOnClear=!1,this.maxConstraints=2,this.useGrouping=!0}ngOnInit(){this.dt.filters[this.field]||this.initFieldFilterConstraint(),this.translationSubscription=this.config.translationObserver.subscribe(()=>{this.generateMatchModeOptions(),this.generateOperatorOptions()}),this.resetSubscription=this.dt.tableService.resetSource$.subscribe(()=>{this.initFieldFilterConstraint()}),this.generateMatchModeOptions(),this.generateOperatorOptions()}generateMatchModeOptions(){var
e;this.matchModes=this.matchModeOptions||(null===(e=this.config.filterMatchModeOptions[this.type])||void
0===e?void
0:e.map(n=>({label:this.config.getTranslation(n),value:n})))}generateOperatorOptions(){this.operatorOptions=[{label:this.config.getTranslation(Ft.MATCH_ALL),value:ml.AND},{label:this.config.getTranslation(Ft.
MATCH_ANY),value:ml.OR}]}ngAfterContentInit(){this.templates.forEach(e=>{switch(e.getType()){case"header":this.headerTemplate=e.template;break;case"filter":default:this.filterTemplate=e.template;break;case"footer":this.footerTemplate=e.template}})}initFieldFilterConstraint(){let
e=this.getDefaultMatchMode();this.dt.filters[this.field]="row"==this.display?{value:null,matchMode:e}:[{value:null,matchMode:e,operator:this.operator}]}onMenuMatchModeChange(e,n){n.matchMode=e,this.showApplyButton||this.dt._filter()}onRowMatchModeChange(e){this.dt.filters[this.field].matchMode=e,this.dt._filter(),this.hide()}onRowMatchModeKeyDown(e){let
n=e.target;switch(e.key){case"ArrowDown":var
s=this.findNextItem(n);s&&(n.removeAttribute("tabindex"),s.tabIndex="0",s.focus()),e.preventDefault();break;case"ArrowUp":var
r=this.findPrevItem(n);r&&(n.removeAttribute("tabindex"),r.tabIndex="0",r.focus()),e.preventDefault()}}onRowClearItemClick(){this.clearFilter(),this.hide()}isRowMatchModeSelected(e){return
t
his.dt.filters[this.field].matchMode===e}addConstraint(){this.dt.filters[this.field].push({value:null,matchMode:this.getDefaultMatchMode(),operator:this.getDefaultOperator()}),this.dt._filter()}removeConstraint(e){this.dt.filters[this.field]=this.dt.filters[this.field].filter(n=>n!==e),this.dt._filter()}onOperatorChange(e){this.dt.filters[this.field].forEach(n=>{n.operator=e,this.operator=e}),this.showApplyButton||this.dt._filter()}toggleMenu(){this.overlayVisible=!this.overlayVisible}onToggleButtonKeyDown(e){switch(e.key){case"Escape":case"Tab":this.overlayVisible=!1;break;case"ArrowDown":if(this.overlayVisible){let
n=R.getFocusableElements(this.overlay);n&&n[0].focus(),e.preventDefault()}else
e.altKey&&(this.overlayVisible=!0,e.preventDefault())}}onEscape(){this.overlayVisible=!1,this.icon.nativeElement.focus()}findNextItem(e){let
n=e.nextElementSibling;return
n?R.hasClass(n,"p-column-filter-separator")?this.findNextItem(n):n:e.parentElement.firstElementChild}findPrevItem(e){let
n
=e.previousElementSibling;return
n?R.hasClass(n,"p-column-filter-separator")?this.findPrevItem(n):n:e.parentElement.lastElementChild}onContentClick(){this.selfClick=!0}onOverlayAnimationStart(e){switch(e.toState){case"visible":this.overlay=e.element,document.body.appendChild(this.overlay),dt.set("overlay",this.overlay,this.config.zIndex.overlay),R.absolutePosition(this.overlay,this.icon.nativeElement),this.bindDocumentClickListener(),this.bindDocumentResizeListener(),this.bindScrollListener(),this.overlayEventListener=n=>{this.overlay&&this.overlay.contains(n.target)&&(this.selfClick=!0)},this.overlaySubscription=this.overlayService.clickObservable.subscribe(this.overlayEventListener);break;case"void":this.onOverlayHide(),this.overlaySubscription&&this.overlaySubscription.unsubscribe()}}onOverlayAnimationEnd(e){"void"===e.toState&&dt.clear(e.element)}getDefaultMatchMode(){return
this.matchMode?this.matchMode:"text"===this.type?_t.STARTS_WITH:"numeric"===this.type?_t.EQUALS:"date"===
this.type?_t.DATE_IS:_t.CONTAINS}getDefaultOperator(){return
this.dt.filters?this.dt.filters[this.field][0].operator:this.operator}hasRowFilter(){return
this.dt.filters[this.field]&&!this.dt.isFilterBlank(this.dt.filters[this.field].value)}get
fieldConstraints(){return this.dt.filters?this.dt.filters[this.field]:null}get
showRemoveIcon(){return!!this.fieldConstraints&&this.fieldConstraints.length>1}get
showMenuButton(){return
this.showMenu&&("row"!==this.display||"boolean"!==this.type)}get
isShowOperator(){return this.showOperator&&"boolean"!==this.type}get
isShowAddConstraint(){return
this.showAddButton&&"boolean"!==this.type&&this.fieldConstraints&&this.fieldConstraints.length<this.maxConstraints}get
applyButtonLabel(){return this.config.getTranslation(Ft.APPLY)}get
clearButtonLabel(){return this.config.getTranslation(Ft.CLEAR)}get
addRuleButtonLabel(){return this.config.getTranslation(Ft.ADD_RULE)}get
removeRuleButtonLabel(){return this.config.getTranslation(Ft.REMOVE_RULE)}get n
oFilterLabel(){return this.config.getTranslation(Ft.NO_FILTER)}hasFilter(){let
e=this.dt.filters[this.field];return!!e&&(Array.isArray(e)?!this.dt.isFilterBlank(e[0].value):!this.dt.isFilterBlank(e.value))}isOutsideClicked(e){return!(this.overlay.isSameNode(e.target)||this.overlay.contains(e.target)||this.icon.nativeElement.isSameNode(e.target)||this.icon.nativeElement.contains(e.target)||R.hasClass(e.target,"p-column-filter-add-button")||R.hasClass(e.target.parentElement,"p-column-filter-add-button")||R.hasClass(e.target,"p-column-filter-remove-button")||R.hasClass(e.target.parentElement,"p-column-filter-remove-button"))}bindDocumentClickListener(){this.documentClickListener||(this.documentClickListener=this.renderer.listen(this.el?this.el.nativeElement.ownerDocument:"document","mousedown",n=>{this.overlayVisible&&!this.selfClick&&this.isOutsideClicked(n)&&this.hide(),this.selfClick=!1}))}unbindDocumentClickListener(){this.documentClickListener&&(this.documentClickListener(),this.d
ocumentClickListener=null,this.selfClick=!1)}bindDocumentResizeListener(){this.documentResizeListener=()=>this.hide(),window.addEventListener("resize",this.documentResizeListener)}unbindDocumentResizeListener(){this.documentResizeListener&&(window.removeEventListener("resize",this.documentResizeListener),this.documentResizeListener=null)}bindScrollListener(){this.scrollHandler||(this.scrollHandler=new
Qs(this.icon.nativeElement,()=>{this.overlayVisible&&this.hide()})),this.scrollHandler.bindScrollListener()}unbindScrollListener(){this.scrollHandler&&this.scrollHandler.unbindScrollListener()}hide(){this.overlayVisible=!1}onOverlayHide(){this.unbindDocumentClickListener(),this.unbindDocumentResizeListener(),this.unbindScrollListener(),this.overlay=null}clearFilter(){this.initFieldFilterConstraint(),this.dt._filter(),this.hideOnClear&&this.hide()}applyFilter(){this.dt._filter(),this.hide()}ngOnDestroy(){this.overlay&&(this.el.nativeElement.appendChild(this.overlay),dt.clear(this.overla
y),this.onOverlayHide()),this.translationSubscription&&this.translationSubscription.unsubscribe(),this.resetSubscription&&this.resetSubscription.unsubscribe(),this.overlaySubscription&&this.overlaySubscription.unsubscribe()}}return
t.\u0275fac=function(e){return
new(e||t)(D(De),D(Dn),D(gn),D(zn),D(Ks))},t.\u0275cmp=z({type:t,selectors:[["p-columnFilter"]],contentQueries:function(e,n,s){if(1&e&&st(s,ne,4),2&e){let
r;V(r=B())&&(n.templates=r)}},viewQuery:function(e,n){if(1&e&&W(tU,5),2&e){let
s;V(s=B())&&(n.icon=s.first)}},hostAttrs:[1,"p-element"],inputs:{field:"field",type:"type",display:"display",showMenu:"showMenu",matchMode:"matchMode",operator:"operator",showOperator:"showOperator",showClearButton:"showClearButton",showApplyButton:"showApplyButton",showMatchModes:"showMatchModes",showAddButton:"showAddButton",hideOnClear:"hideOnClear",placeholder:"placeholder",matchModeOptions:"matchModeOptions",maxConstraints:"maxConstraints",minFractionDigits:"minFractionDigits",maxFractionDig
its:"maxFractionDigits",prefix:"prefix",suffix:"suffix",locale:"locale",localeMatcher:"localeMatcher",currency:"currency",currencyDisplay:"currencyDisplay",useGrouping:"useGrouping"},decls:5,vars:8,consts:[[1,"p-column-filter",3,"ngClass"],["class","p-fluid",3,"type","field","filterConstraint","filterTemplate","placeholder","minFractionDigits","maxFractionDigits","prefix","suffix","locale","localeMatcher","currency","currencyDisplay","useGrouping",4,"ngIf"],["type","button","class","p-column-filter-menu-button
p-link","aria-haspopup","true",3,"ngClass","click","keydown",4,"ngIf"],["type","button","class","p-column-filter-clear-button
p-link",3,"ngClass","click",4,"ngIf"],[3,"ngClass","click","keydown.escape",4,"ngIf"],[1,"p-fluid",3,"type","field","filterConstraint","filterTemplate","placeholder","minFractionDigits","maxFractionDigits","prefix","suffix","locale","localeMatcher","currency","currencyDisplay","useGrouping"],["type","button","aria-haspopup","true",1,"p-column-filter-men
u-button","p-link",3,"ngClass","click","keydown"],["icon",""],[1,"pi","pi-filter-icon","pi-filter"],["type","button",1,"p-column-filter-clear-button","p-link",3,"ngClass","click"],[1,"pi","pi-filter-slash"],[3,"ngClass","click","keydown.escape"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],["class","p-column-filter-row-items",4,"ngIf","ngIfElse"],["menu",""],[1,"p-column-filter-row-items"],["class","p-column-filter-row-item",3,"ngClass","click","keydown","keydown.enter",4,"ngFor","ngForOf"],[1,"p-column-filter-separator"],[1,"p-column-filter-row-item",3,"click","keydown","keydown.enter"],[1,"p-column-filter-row-item",3,"ngClass","click","keydown","keydown.enter"],["class","p-column-filter-operator",4,"ngIf"],[1,"p-column-filter-constraints"],["class","p-column-filter-constraint",4,"ngFor","ngForOf"],["class","p-column-filter-add-rule",4,"ngIf"],[1,"p-column-filter-buttonbar"],["type","button","pButton","","class","p-button-outlined
p-button-sm","pRipple","",3,"label","click",4,"
ngIf"],["type","button","pButton","","class","p-button-sm","pRipple","",3,"label","click",4,"ngIf"],[1,"p-column-filter-operator"],["styleClass","p-column-filter-operator-dropdown",3,"options","ngModel","ngModelChange"],[1,"p-column-filter-constraint"],["styleClass","p-column-filter-matchmode-dropdown",3,"options","ngModel","ngModelChange",4,"ngIf"],[3,"type","field","filterConstraint","filterTemplate","placeholder","minFractionDigits","maxFractionDigits","prefix","suffix","locale","localeMatcher","currency","currencyDisplay","useGrouping"],["type","button","pButton","","icon","pi
pi-trash","class","p-column-filter-remove-button p-button-text
p-button-danger
p-button-sm","pRipple","",3,"label","click",4,"ngIf"],["styleClass","p-column-filter-matchmode-dropdown",3,"options","ngModel","ngModelChange"],["type","button","pButton","","icon","pi
pi-trash","pRipple","",1,"p-column-filter-remove-button","p-button-text","p-button-danger","p-button-sm",3,"label","click"],[1,"p-column-filter-a
dd-rule"],["type","button","pButton","","icon","pi
pi-plus","pRipple","",1,"p-column-filter-add-button","p-button-text","p-button-sm",3,"label","click"],["type","button","pButton","","pRipple","",1,"p-button-outlined","p-button-sm",3,"label","click"],["type","button","pButton","","pRipple","",1,"p-button-sm",3,"label","click"]],template:function(e,n){1&e&&(l(0,"div",0),_(1,nU,1,14,"p-columnFilterFormElement",1),_(2,sU,3,5,"button",2),_(3,oU,3,3,"button",3),_(4,yU,6,14,"div",4),c()),2&e&&(p("ngClass",Ge(5,wU,"row"===n.display,"menu"===n.display)),a(1),p("ngIf","row"===n.display),a(1),p("ngIf",n.showMenuButton),a(1),p("ngIf",n.showClearButton&&"row"===n.display),a(1),p("ngIf",n.showMenu&&n.overlayVisible))},directives:[MU,Ot,Le,Q,Rt,at,Te,_e,On],encapsulation:2,data:{animation:[wi("overlayAnimation",[Lt(":enter",[it({opacity:0,transform:"scaleY(0.8)"}),kt(".12s
cubic-bezier(0, 0, 0.2, 1)")]),Lt(":leave",[kt(".1s
linear",it({opacity:0}))])])]}}),t})(),kU=(()=>{class t{}return t.\u0275f
ac=function(e){return
new(e||t)},t.\u0275mod=he({type:t}),t.\u0275inj=ue({imports:[[Fe,RT,MT,Zu,Fo,Mu,gl,Tq,cT,Xu,Iq],Nt,Fo]}),t})();const
W2=["container"],IU=function(t,i,e,n){return{"pi-info-circle":t,"pi-exclamation-triangle":i,"pi-times-circle":e,"pi-check":n}};function
EU(t,i){if(1&t&&(de(0),k(1,"span",6),l(2,"div",7)(3,"div",8),g(4),c(),l(5,"div",9),g(6),c()(),pe()),2&t){const
e=d();a(1),me("p-toast-message-icon pi"+(e.message.icon?"
"+e.message.icon:"")),p("ngClass",qn(5,IU,"info"==e.message.severity,"warn"==e.message.severity,"error"==e.message.severity,"success"==e.message.severity)),a(3),S(e.message.summary),a(2),S(e.message.detail)}}function
RU(t,i){1&t&&Y(0)}function LU(t,i){if(1&t){const
e=I();l(0,"button",10),C("click",function(s){return
v(e),d().onCloseIconClick(s)})("keydown.enter",function(s){return
v(e),d().onCloseIconClick(s)}),k(1,"span",11),c()}}const
OU=function(t){return[t,"p-toast-message"]},AU=function(t,i,e,n){return{showTransformParams:t,hideTransformParam
s:i,showTransitionParams:e,hideTransitionParams:n}},PU=function(t){return{value:"visible",params:t}},FU=function(t){return{$implicit:t}};function
NU(t,i){if(1&t){const
e=I();l(0,"p-toastItem",3),C("onClose",function(s){return
v(e),d().onMessageClose(s)})("(a)toastAnimation.start",function(s){return
v(e),d().onAnimationStart(s)})("(a)toastAnimation.done",function(s){return
v(e),d().onAnimationEnd(s)}),c()}if(2&t){const
e=i.$implicit,n=i.index,s=d();p("message",e)("index",n)("template",s.template)("@toastAnimation",void
0)("showTransformOptions",s.showTransformOptions)("hideTransformOptions",s.hideTransformOptions)("showTransitionOptions",s.showTransitionOptions)("hideTransitionOptions",s.hideTransitionOptions)}}let
VU=(()=>{class t{constructor(e){this.zone=e,this.onClose=new
H}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||3
e3)})}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)(D(nt))},t.\u0275cmp=z({type:t,selectors:[["p-toastItem"]],viewQuery:function(e,n){if(1&e&&W(W2,5),2&e){let
s;V(s=B())&&(n.containerViewChild=s.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,n){1&e&&(l(0,"div",0,1),C("mouseenter",function(){return
n.onMouseEnter()})("mouseleave",function(){return
n.onMouseLeave()}),l(2,"div",2),_(3,EU,7,10,"ng-container",3),_(4,RU,1,0,"ng-container",4),_(5,LU,2,0,"button",5),c()()),2&e&&(me(n.message.styleClass),p("ngClass",U(10,OU,"p-toast-message-"+n.message.severity))("(a)messageState",U(17,PU,qn(12,AU,n.showTransformOptions,n.hideTransformOptions,n.showTransitionOptions,n.hideTransitionOptions))),ie("id",n.message.id),a(2),p("ngClass",n.message.contentStyleClass),a(1),p("ngIf",!n.template),a(1),p("ngTemplateOutlet",n.template)("ngTemplateOutletContext",U(
19,FU,n.message)),a(1),p("ngIf",!1!==n.message.closable))},directives:[Le,Q,Rt,bt],encapsulation:2,data:{animation:[wi("messageState",[ws("visible",it({transform:"translateY(0)",opacity:1})),Lt("void
=>
*",[it({transform:"{{showTransformParams}}",opacity:0}),kt("{{showTransitionParams}}")]),Lt("*
=>
void",[kt("{{hideTransitionParams}}",it({height:0,opacity:0,transform:"{{hideTransformParams}}"}))])])]},changeDetection:0}),t})(),Td=(()=>{class
t{constructor(e,n,s){this.messageService=e,this.cd=n,this.config=s,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
H,this.id=pl()}ngOnInit(){this.messageSubscription=this.messageService.messageObserver.subscribe(e=>{if(e)if(e
instanceof Array){const n=e.filter(s=>this.canAdd(s));this
.add(n)}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
n=this.key===e.key;return
n&&this.preventOpenDuplicates&&(n=!this.containsMessage(this.messages,e)),n&&this.preventDuplicates&&(n=!this.containsMessage(this.messagesArchieve,e)),n}containsMessage(e,n){return!!e&&null!=e.find(s=>s.summary===n.summary&&s.detail==n.detail&&s.severity===n.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.fromSt
ate&&(this.containerViewChild.nativeElement.setAttribute(this.id,""),this.autoZIndex&&dt.set("modal",this.containerViewChild.nativeElement,this.baseZIndex||this.config.zIndex.modal))}onAnimationEnd(e){"void"===e.toState&&this.autoZIndex&&Z.isEmpty(this.messages)&&dt.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 n in this.breakpoints){let s="";for(let r in
this.breakpoints[n])s+=r+":"+this.breakpoints[n][r]+"
!important;";e+=`\n @media screen and (max-width: ${n}) {\n
.p-toast[${this.id}] {\n ${s}\n
}\n }\n
`}this.styleElement.innerHTML=e}}destroyStyle(){this.styleElement&&(document.head.removeChild(this.styleElement),this.styleElement=null)}ngOnDestroy(){this.messageSubscription&&t
his.messageSubscription.unsubscribe(),this.containerViewChild&&this.autoZIndex&&dt.clear(this.containerViewChild.nativeElement),this.clearSubscription&&this.clearSubscription.unsubscribe(),this.destroyStyle()}}return
t.\u0275fac=function(e){return
new(e||t)(D(Gi),D(rt),D(zn))},t.\u0275cmp=z({type:t,selectors:[["p-toast"]],contentQueries:function(e,n,s){if(1&e&&st(s,ne,4),2&e){let
r;V(r=B())&&(n.templates=r)}},viewQuery:function(e,n){if(1&e&&W(W2,5),2&e){let
s;V(s=B())&&(n.containerViewChild=s.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:function(e,n){1&e&&(l(0,"div",0,1),_(2,NU,1,8,"p-toastItem",2),c()),2&e&&(me(n.styleClass),p("ngClass","p-toast
p-component
p-toast-"+n.position)("ngStyle",n.style),a(2),p("ngForOf",n.messages))},directives:[VU,Le,lt,at],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{bot
tom: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:[wi("toastAnimation",[Lt(":enter,
:leave",[$A("@*",jA())])])]},changeDetection:0}),t})(),BU=(()=>{class
t{}return t.\u0275fac=function(e){return
new(e||t)},t.\u0275mod=he({type:t}),t.\u0275inj=ue({imports:[[Fe,pn],Nt]}),t})(),GU=(()=>{class
t{}return t.\u0275fac=function(e){return
new(e||t)},t.\u0275mod=he({type:t}),t.\u0275inj=ue({imports:[[Fe]]}),t})();const
UU=["rb"],zU=function(t,i,e){return{"p-radiobutton-label":!0,"p-radiobutton-label-active":t,"p-disabled":i,"p-radiobutton-label-focus":e}};function
jU(t,i){if(1&t){const
e=I();l(0,"label",4),C("click",function(s){return
v(e),d().select(s)}),g(1),c()}if(2&t){const
e=d(),n=F(3);me(e.labelStyleClass),p("ngClass",Qt(5,zU,n.ch
ecked,e.disabled,e.focused)),ie("for",e.inputId),a(1),S(e.label)}}const
$U=function(t,i,e){return{"p-radiobutton
p-component":!0,"p-radiobutton-checked":t,"p-radiobutton-disabled":i,"p-radiobutton-focused":e}},WU=function(t,i,e){return{"p-radiobutton-box":!0,"p-highlight":t,"p-disabled":i,"p-focus":e}},KU={provide:dn,useExisting:je(()=>Sd),multi:!0};let
QU=(()=>{class
t{constructor(){this.accessors=[]}add(e,n){this.accessors.push([e,n])}remove(e){this.accessors=this.accessors.filter(n=>n[1]!==e)}select(e){this.accessors.forEach(n=>{this.isSameGroup(n,e)&&n[1]!==e&&n[1].writeValue(e.value)})}isSameGroup(e,n){return!!e[0].control&&e[0].control.root===n.control.control.root&&e[1].name===n.name}}return
t.\u0275fac=function(e){return
new(e||t)},t.\u0275prov=X({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),Sd=(()=>{class
t{constructor(e,n,s){this.cd=e,this.injector=n,this.registry=s,this.onClick=new
H,this.onFocus=new H,this.onBlur=new H,this.onModelChange=()=>{},this.onModelTouch
ed=()=>{}}ngOnInit(){this.control=this.injector.get(ss),this.checkName(),this.registry.add(this.control,this)}handleClick(e,n,s){e.preventDefault(),!this.disabled&&(this.select(e),s&&n.focus())}select(e){this.disabled||(this.inputViewChild.nativeElement.checked=!0,this.checked=!0,this.onModelChange(this.value),this.registry.select(this),this.onClick.emit(e))}writeValue(e){this.checked=e==this.value,this.inputViewChild&&this.inputViewChild.nativeElement&&(this.inputViewChild.nativeElement.checked=this.checked),this.cd.markForCheck()}registerOnChange(e){this.onModelChange=e}registerOnTouched(e){this.onModelTouched=e}setDisabledState(e){this.disabled=e,this.cd.markForCheck()}onInputFocus(e){this.focused=!0,this.onFocus.emit(e)}onInputBlur(e){this.focused=!1,this.onModelTouched(),this.onBlur.emit(e)}onChange(e){this.select(e)}focus(){this.inputViewChild.nativeElement.focus()}ngOnDestroy(){this.registry.remove(this)}checkName(){this.name&&this.formControlName&&this.name!==this.formContro
lName&&this.throwNameError(),!this.name&&this.formControlName&&(this.name=this.formControlName)}throwNameError(){throw
new Error('\n If you define both a name and a formControlName attribute on
your radio button, their values\n must match. Ex: <p-radioButton
formControlName="food" name="food"></p-radioButton>\n
')}}return t.\u0275fac=function(e){return
new(e||t)(D(rt),D(En),D(QU))},t.\u0275cmp=z({type:t,selectors:[["p-radioButton"]],viewQuery:function(e,n){if(1&e&&W(UU,5),2&e){let
s;V(s=B())&&(n.inputViewChild=s.first)}},hostAttrs:[1,"p-element"],inputs:{value:"value",formControlName:"formControlName",name:"name",disabled:"disabled",label:"label",tabindex:"tabindex",inputId:"inputId",ariaLabelledBy:"ariaLabelledBy",ariaLabel:"ariaLabel",style:"style",styleClass:"styleClass",labelStyleClass:"labelStyleClass"},outputs:{onClick:"onClick",onFocus:"onFocus",onBlur:"onBlur"},features:[Pe([KU])],decls:7,vars:23,consts:[[3,"ngStyle","ngClass"],[1,"p-hidden-accessibl
e"],["type","radio",3,"checked","disabled","change","focus","blur"],["rb",""],[3,"ngClass","click"],[1,"p-radiobutton-icon"],[3,"class","ngClass","click",4,"ngIf"]],template:function(e,n){if(1&e){const
s=I();l(0,"div",0)(1,"div",1)(2,"input",2,3),C("change",function(o){return
n.onChange(o)})("focus",function(o){return
n.onInputFocus(o)})("blur",function(o){return
n.onInputBlur(o)}),c()(),l(4,"div",4),C("click",function(o){v(s);const
u=F(3);return
n.handleClick(o,u,!0)}),k(5,"span",5),c()(),_(6,jU,2,9,"label",6)}2&e&&(me(n.styleClass),p("ngStyle",n.style)("ngClass",Qt(15,$U,n.checked,n.disabled,n.focused)),a(2),p("checked",n.checked)("disabled",n.disabled),ie("id",n.inputId)("name",n.name)("value",n.value)("tabindex",n.tabindex)("aria-checked",n.checked)("aria-label",n.ariaLabel)("aria-labelledby",n.ariaLabelledBy),a(2),p("ngClass",Qt(19,WU,n.checked,n.disabled,n.focused)),a(2),p("ngIf",n.label))},directives:[lt,Le,Q],encapsulation:2,changeDetection:0}),t})(),JU=(()=>{class
t{}return
t.\u0275fac=function(e){return
new(e||t)},t.\u0275mod=he({type:t}),t.\u0275inj=ue({imports:[[Fe]]}),t})();function
YU(t,i){if(1&t&&(l(0,"div",5),g(1),c()),2&t){const
e=d(2);_i("display",null!=e.value&&0!==e.value?"flex":"none"),a(1),We("",e.value,"",e.unit,"")}}function
ZU(t,i){if(1&t&&(l(0,"div",3),_(1,YU,2,4,"div",4),c()),2&t){const
e=d();_i("width",e.value+"%"),a(1),p("ngIf",e.showValue)}}function
XU(t,i){1&t&&(l(0,"div",6),k(1,"div",7),c())}const
ez=function(t,i){return{"p-progressbar
p-component":!0,"p-progressbar-determinate":t,"p-progressbar-indeterminate":i}};let
tz=(()=>{class
t{constructor(){this.showValue=!0,this.unit="%",this.mode="determinate"}}return
t.\u0275fac=function(e){return
new(e||t)},t.\u0275cmp=z({type:t,selectors:[["p-progressBar"]],hostAttrs:[1,"p-element"],inputs:{value:"value",showValue:"showValue",style:"style",styleClass:"styleClass",unit:"unit",mode:"mode"},decls:3,vars:10,consts:[["role","progressbar","aria-valuemin","0","aria-valuemax","100",3,"ngSty
le","ngClass"],["class","p-progressbar-value
p-progressbar-value-animate","style","display:flex",3,"width",4,"ngIf"],["class","p-progressbar-indeterminate-container",4,"ngIf"],[1,"p-progressbar-value","p-progressbar-value-animate",2,"display","flex"],["class","p-progressbar-label",3,"display",4,"ngIf"],[1,"p-progressbar-label"],[1,"p-progressbar-indeterminate-container"],[1,"p-progressbar-value","p-progressbar-value-animate"]],template:function(e,n){1&e&&(l(0,"div",0),_(1,ZU,2,3,"div",1),_(2,XU,2,0,"div",2),c()),2&e&&(me(n.styleClass),p("ngStyle",n.style)("ngClass",Ge(7,ez,"determinate"===n.mode,"indeterminate"===n.mode)),ie("aria-valuenow",n.value),a(1),p("ngIf","determinate"===n.mode),a(1),p("ngIf","indeterminate"===n.mode))},directives:[lt,Le,Q],styles:['.p-progressbar{position:relative;overflow:hidden}.p-progressbar-determinate
.p-progressbar-value{height:100%;width:0%;position:absolute;display:none;border:0
none;display:flex;align-items:center;justify-content:center;overflow:hi
dden}.p-progressbar-determinate
.p-progressbar-label{display:inline-flex}.p-progressbar-determinate
.p-progressbar-value-animate{transition:width 1s ease-in-out}.p-progressbar-indeterminate
.p-progressbar-value:before{content:"";position:absolute;background-color:inherit;top:0;left:0;bottom:0;will-change:left,right;animation:p-progressbar-indeterminate-anim
2.1s cubic-bezier(.65,.815,.735,.395) infinite}.p-progressbar-indeterminate
.p-progressbar-value:after{content:"";position:absolute;background-color:inherit;top:0;left:0;bottom:0;will-change:left,right;animation:p-progressbar-indeterminate-anim-short
2.1s cubic-bezier(.165,.84,.44,1) infinite;animation-delay:1.15s}@keyframes
p-progressbar-indeterminate-anim{0%{left:-35%;right:100%}60%{left:100%;right:-90%}to{left:100%;right:-90%}}@keyframes
p-progressbar-indeterminate-anim-short{0%{left:-200%;right:100%}60%{left:107%;right:-8%}to{left:107%;right:-8%}}\n'],encapsulation:2,changeDetection:0}),t})(),nz=(()=>{class
t{}return t.\u0275
fac=function(e){return
new(e||t)},t.\u0275mod=he({type:t}),t.\u0275inj=ue({imports:[[Fe]]}),t})();const
iz=["container"],sz=["content"],rz=["xBar"],oz=["yBar"];function
az(t,i){1&t&&Y(0)}const lz=["*"];let K2=(()=>{class
t{constructor(e,n,s){this.el=e,this.zone=n,this.cd=s,this.timeoutFrame=r=>setTimeout(r,0)}ngAfterViewInit(){this.zone.runOutsideAngular(()=>{this.moveBar(),this.moveBar=this.moveBar.bind(this),this.onXBarMouseDown=this.onXBarMouseDown.bind(this),this.onYBarMouseDown=this.onYBarMouseDown.bind(this),this.onDocumentMouseMove=this.onDocumentMouseMove.bind(this),this.onDocumentMouseUp=this.onDocumentMouseUp.bind(this),window.addEventListener("resize",this.moveBar),this.contentViewChild.nativeElement.addEventListener("scroll",this.moveBar),this.contentViewChild.nativeElement.addEventListener("mouseenter",this.moveBar),this.xBarViewChild.nativeElement.addEventListener("mousedown",this.onXBarMouseDown),this.yBarViewChild.nativeElement.addEventListener("mousedown",this.onYBa
rMouseDown),this.calculateContainerHeight(),this.initialized=!0})}ngAfterContentInit(){this.templates.forEach(e=>{e.getType(),this.contentTemplate=e.template})}calculateContainerHeight(){let
e=this.containerViewChild.nativeElement,n=this.contentViewChild.nativeElement,s=this.xBarViewChild.nativeElement,r=getComputedStyle(e),o=getComputedStyle(s),u=R.getHeight(e)-parseInt(o.height,10);"none"!=r["max-height"]&&0==u&&(e.style.height=n.offsetHeight+parseInt(o.height,10)>parseInt(r["max-height"],10)?r["max-height"]:n.offsetHeight+parseFloat(r.paddingTop)+parseFloat(r.paddingBottom)+parseFloat(r.borderTopWidth)+parseFloat(r.borderBottomWidth)+"px")}moveBar(){let
e=this.containerViewChild.nativeElement,n=this.contentViewChild.nativeElement,s=this.xBarViewChild.nativeElement,r=n.scrollWidth,o=n.clientWidth,u=-1*(e.clientHeight-s.clientHeight);this.scrollXRatio=o/r;let
h=this.yBarViewChild.nativeElement,b=n.scrollHeight,y=n.clientHeight,w=-1*(e.clientWidth-h.clientWidth);this.scrollYRatio=y/
b,this.requestAnimationFrame(()=>{if(this.scrollXRatio>=1)R.addClass(s,"p-scrollpanel-hidden");else{R.removeClass(s,"p-scrollpanel-hidden");const
M=Math.max(100*this.scrollXRatio,10);s.style.cssText="width:"+M+"%;
left:"+n.scrollLeft*(100-M)/(r-o)+"%;bottom:"+u+"px;"}if(this.scrollYRatio>=1)R.addClass(h,"p-scrollpanel-hidden");else{R.removeClass(h,"p-scrollpanel-hidden");const
M=Math.max(100*this.scrollYRatio,10);h.style.cssText="height:"+M+"%; top:
calc("+n.scrollTop*(100-M)/(b-y)+"% -
"+s.clientHeight+"px);right:"+w+"px;"}}),this.cd.markForCheck()}onYBarMouseDown(e){this.isYBarClicked=!0,this.lastPageY=e.pageY,R.addClass(this.yBarViewChild.nativeElement,"p-scrollpanel-grabbed"),R.addClass(document.body,"p-scrollpanel-grabbed"),document.addEventListener("mousemove",this.onDocumentMouseMove),document.addEventListener("mouseup",this.onDocumentMouseUp),e.preventDefault()}onXBarMouseDown(e){this.isXBarClicked=!0,this.lastPageX=e.pageX,R.addClass(this.xBarViewChild.nativeElement,"p-scro
llpanel-grabbed"),R.addClass(document.body,"p-scrollpanel-grabbed"),document.addEventListener("mousemove",this.onDocumentMouseMove),document.addEventListener("mouseup",this.onDocumentMouseUp),e.preventDefault()}onDocumentMouseMove(e){this.isXBarClicked?this.onMouseMoveForXBar(e):(this.isYBarClicked||this.onMouseMoveForXBar(e),this.onMouseMoveForYBar(e))}onMouseMoveForXBar(e){let
n=e.pageX-this.lastPageX;this.lastPageX=e.pageX,this.requestAnimationFrame(()=>{this.contentViewChild.nativeElement.scrollLeft+=n/this.scrollXRatio})}onMouseMoveForYBar(e){let
n=e.pageY-this.lastPageY;this.lastPageY=e.pageY,this.requestAnimationFrame(()=>{this.contentViewChild.nativeElement.scrollTop+=n/this.scrollYRatio})}scrollTop(e){let
n=this.contentViewChild.nativeElement.scrollHeight-this.contentViewChild.nativeElement.clientHeight;this.contentViewChild.nativeElement.scrollTop=e=e>n?n:e>0?e:0}onDocumentMouseUp(e){R.removeClass(this.yBarViewChild.nativeElement,"p-scrollpanel-grabbed"),R.removeClass(this
.xBarViewChild.nativeElement,"p-scrollpanel-grabbed"),R.removeClass(document.body,"p-scrollpanel-grabbed"),document.removeEventListener("mousemove",this.onDocumentMouseMove),document.removeEventListener("mouseup",this.onDocumentMouseUp),this.isXBarClicked=!1,this.isYBarClicked=!1}requestAnimationFrame(e){(window.requestAnimationFrame||this.timeoutFrame)(e)}ngOnDestroy(){this.initialized&&(window.removeEventListener("resize",this.moveBar),this.contentViewChild.nativeElement.removeEventListener("scroll",this.moveBar),this.contentViewChild.nativeElement.removeEventListener("mouseenter",this.moveBar),this.xBarViewChild.nativeElement.removeEventListener("mousedown",this.onXBarMouseDown),this.yBarViewChild.nativeElement.removeEventListener("mousedown",this.onYBarMouseDown))}refresh(){this.moveBar()}}return
t.\u0275fac=function(e){return
new(e||t)(D(De),D(nt),D(rt))},t.\u0275cmp=z({type:t,selectors:[["p-scrollPanel"]],contentQueries:function(e,n,s){if(1&e&&st(s,ne,4),2&e){let
r;V(r=B())&&(
n.templates=r)}},viewQuery:function(e,n){if(1&e&&(W(iz,5),W(sz,5),W(rz,5),W(oz,5)),2&e){let
s;V(s=B())&&(n.containerViewChild=s.first),V(s=B())&&(n.contentViewChild=s.first),V(s=B())&&(n.xBarViewChild=s.first),V(s=B())&&(n.yBarViewChild=s.first)}},hostAttrs:[1,"p-element"],inputs:{style:"style",styleClass:"styleClass"},ngContentSelectors:lz,decls:11,vars:5,consts:[[3,"ngClass","ngStyle"],["container",""],[1,"p-scrollpanel-wrapper"],[1,"p-scrollpanel-content"],["content",""],[4,"ngTemplateOutlet"],[1,"p-scrollpanel-bar","p-scrollpanel-bar-x"],["xBar",""],[1,"p-scrollpanel-bar","p-scrollpanel-bar-y"],["yBar",""]],template:function(e,n){1&e&&(Sn(),l(0,"div",0,1)(2,"div",2)(3,"div",3,4),St(5),_(6,az,1,0,"ng-container",5),c()(),k(7,"div",6,7)(9,"div",8,9),c()),2&e&&(me(n.styleClass),p("ngClass","p-scrollpanel
p-component")("ngStyle",n.style),a(6),p("ngTemplateOutlet",n.contentTemplate))},directives:[Le,lt,Rt],styles:[".p-scrollpanel-wrapper{overflow:hidden;width:100%;height:100%;position
:relative;z-index:1;float:left}.p-scrollpanel-content{height:calc(100% +
18px);width:calc(100% + 18px);padding:0 18px 18px
0;position:relative;overflow:auto;box-sizing:border-box}.p-scrollpanel-bar{position:relative;background:#c1c1c1;border-radius:3px;z-index:2;cursor:pointer;opacity:0;transition:opacity
.25s
linear}.p-scrollpanel-bar-y{width:9px;top:0}.p-scrollpanel-bar-x{height:9px;bottom:0}.p-scrollpanel-hidden{visibility:hidden}.p-scrollpanel:hover
.p-scrollpanel-bar,.p-scrollpanel:active
.p-scrollpanel-bar{opacity:1}.p-scrollpanel-grabbed{-webkit-user-select:none;user-select:none}\n"],encapsulation:2,changeDetection:0}),t})(),cz=(()=>{class
t{}return t.\u0275fac=function(e){return
new(e||t)},t.\u0275mod=he({type:t}),t.\u0275inj=ue({imports:[[Fe]]}),t})();const
uz=["content"],dz=["navbar"],pz=["inkbar"],hz=["prevBtn"],mz=["nextBtn"];function
fz(t,i){if(1&t){const
e=I();l(0,"button",11,12),C("click",function(){return
v(e),d().navBackward()}),k(2,"span",13),c()}}function gz(t,i){
if(1&t&&k(0,"span",23),2&t){const
e=d(3).$implicit;p("ngClass",e.icon)("ngStyle",e.iconStyle)}}function
_z(t,i){if(1&t&&(l(0,"span",24),g(1),c()),2&t){const
e=d(3).$implicit;a(1),S(e.label)}}function
bz(t,i){1&t&&k(0,"span",25),2&t&&p("innerHTML",d(3).$implicit.label,Bt)}function
vz(t,i){if(1&t&&(de(0),_(1,gz,1,2,"span",20),_(2,_z,2,1,"span",21),_(3,bz,1,1,"ng-template",null,22,we),pe()),2&t){const
e=F(4),n=d(2).$implicit;a(1),p("ngIf",n.icon),a(1),p("ngIf",!1!==n.escape)("ngIfElse",e)}}function
Cz(t,i){1&t&&Y(0)}const Q2=function(t,i){return{$implicit:t,index:i}};function
yz(t,i){if(1&t){const
e=I();l(0,"a",17),C("click",function(s){v(e);const
r=d().$implicit;return
d().itemClick(s,r)})("keydown.enter",function(s){v(e);const
r=d().$implicit;return
d().itemClick(s,r)}),_(1,vz,5,3,"ng-container",18),_(2,Cz,1,0,"ng-container",19),c()}if(2&t){const
e=d(),n=e.$implicit,s=e.index,r=d();p("target",n.target),ie("href",n.url,ln)("tabindex",n.disabled?null:"0")("title",n.title)("id",n.id),a(
1),p("ngIf",!r.itemTemplate),a(1),p("ngTemplateOutlet",r.itemTemplate)("ngTemplateOutletContext",Ge(8,Q2,n,s))}}function
wz(t,i){if(1&t&&k(0,"span",23),2&t){const
e=d(3).$implicit;p("ngClass",e.icon)("ngStyle",e.iconStyle)}}function
Tz(t,i){if(1&t&&(l(0,"span",24),g(1),c()),2&t){const
e=d(3).$implicit;a(1),S(e.label)}}function
Sz(t,i){1&t&&k(0,"span",25),2&t&&p("innerHTML",d(3).$implicit.label,Bt)}function
xz(t,i){if(1&t&&(de(0),_(1,wz,1,2,"span",20),_(2,Tz,2,1,"span",21),_(3,Sz,1,1,"ng-template",null,27,we),pe()),2&t){const
e=F(4),n=d(2).$implicit;a(1),p("ngIf",n.icon),a(1),p("ngIf",!1!==n.escape)("ngIfElse",e)}}function
Dz(t,i){1&t&&Y(0)}const Mz=function(){return{exact:!1}};function
kz(t,i){if(1&t){const
e=I();l(0,"a",26),C("click",function(s){v(e);const
r=d().$implicit;return
d().itemClick(s,r)})("keydown.enter",function(s){v(e);const
r=d().$implicit;return
d().itemClick(s,r)}),_(1,xz,5,3,"ng-container",18),_(2,Dz,1,0,"ng-container",19),c()}if(2&t){const
e=d(),n=e.$implicit,s=e.
index,r=d();p("routerLink",n.routerLink)("queryParams",n.queryParams)("routerLinkActive","p-menuitem-link-active")("routerLinkActiveOptions",n.routerLinkActiveOptions||A(17,Mz))("target",n.target)("fragment",n.fragment)("queryParamsHandling",n.queryParamsHandling)("preserveFragment",n.preserveFragment)("skipLocationChange",n.skipLocationChange)("replaceUrl",n.replaceUrl)("state",n.state),ie("tabindex",n.disabled?null:"0")("title",n.title)("id",n.id),a(1),p("ngIf",!r.itemTemplate),a(1),p("ngTemplateOutlet",r.itemTemplate)("ngTemplateOutletContext",Ge(18,Q2,n,s))}}const
Iz=function(t,i,e){return{"p-tabmenuitem":!0,"p-disabled":t,"p-highlight":i,"p-hidden":e}};function
Ez(t,i){if(1&t&&(l(0,"li",14),_(1,yz,3,11,"a",15),_(2,kz,3,21,"a",16),c()),2&t){const
e=i.$implicit,n=d();me(e.styleClass),p("ngStyle",e.style)("ngClass",Qt(9,Iz,e.disabled,n.isActive(e),!1===e.visible))("tooltipOptions",e.tooltipOptions),ie("aria-selected",n.isActive(e))("aria-expanded",n.isActive(e)),a(1),p("ngIf",!e.r
outerLink),a(1),p("ngIf",e.routerLink)}}function Rz(t,i){if(1&t){const
e=I();l(0,"button",28,29),C("click",function(){return
v(e),d().navForward()}),k(2,"span",30),c()}}const
Lz=function(t){return{"p-tabmenu
p-component":!0,"p-tabmenu-scrollable":t}};let J2=(()=>{class
t{constructor(e,n,s){this.router=e,this.route=n,this.cd=s,this.backwardIsDisabled=!0,this.forwardIsDisabled=!1}ngAfterContentInit(){this.templates.forEach(e=>{e.getType(),this.itemTemplate=e.template})}ngAfterViewInit(){this.updateInkBar()}ngAfterViewChecked(){this.tabChanged&&(this.updateInkBar(),this.tabChanged=!1)}isActive(e){if(e.routerLink){let
n=Array.isArray(e.routerLink)?e.routerLink:[e.routerLink];return
this.router.isActive(this.router.createUrlTree(n,{relativeTo:this.route}).toString(),!1)}return
e===this.activeItem}itemClick(e,n){n.disabled?e.preventDefault():(!n.url&&!n.routerLink&&e.preventDefault(),n.command&&n.command({originalEvent:e,item:n}),this.activeItem=n,this.tabChanged=!0)}updateInkBar(){let
e=
R.findSingle(this.navbar.nativeElement,"li.p-highlight");e&&(this.inkbar.nativeElement.style.width=R.getWidth(e)+"px",this.inkbar.nativeElement.style.left=R.getOffset(e).left-R.getOffset(this.navbar.nativeElement).left+"px")}getVisibleButtonWidths(){var
e,n;return[null===(e=this.prevBtn)||void 0===e?void
0:e.nativeElement,null===(n=this.nextBtn)||void 0===n?void
0:n.nativeElement].reduce((s,r)=>r?s+R.getWidth(r):s,0)}updateButtonState(){const
e=this.content.nativeElement,{scrollLeft:n,scrollWidth:s}=e,r=R.getWidth(e);this.backwardIsDisabled=0===n,this.forwardIsDisabled=parseInt(n)===s-r}updateScrollBar(e){this.navbar.nativeElement.children[e].scrollIntoView({block:"nearest"})}onScroll(e){this.scrollable&&this.updateButtonState(),e.preventDefault()}navBackward(){const
e=this.content.nativeElement,n=R.getWidth(e)-this.getVisibleButtonWidths(),s=e.scrollLeft-n;e.scrollLeft=s<=0?0:s}navForward(){const
e=this.content.nativeElement,n=R.getWidth(e)-this.getVisibleButtonWidths(),s=e.scrollL
eft+n,r=e.scrollWidth-n;e.scrollLeft=s>=r?r:s}}return t.\u0275fac=function(e){return
new(e||t)(D(It),D(Er),D(rt))},t.\u0275cmp=z({type:t,selectors:[["p-tabMenu"]],contentQueries:function(e,n,s){if(1&e&&st(s,ne,4),2&e){let
r;V(r=B())&&(n.templates=r)}},viewQuery:function(e,n){if(1&e&&(W(uz,5),W(dz,5),W(pz,5),W(hz,5),W(mz,5)),2&e){let
s;V(s=B())&&(n.content=s.first),V(s=B())&&(n.navbar=s.first),V(s=B())&&(n.inkbar=s.first),V(s=B())&&(n.prevBtn=s.first),V(s=B())&&(n.nextBtn=s.first)}},hostAttrs:[1,"p-element"],inputs:{model:"model",activeItem:"activeItem",scrollable:"scrollable",popup:"popup",style:"style",styleClass:"styleClass"},decls:11,vars:9,consts:[[3,"ngClass","ngStyle"],[1,"p-tabmenu-nav-container"],["class","p-tabmenu-nav-prev
p-tabmenu-nav-btn
p-link","type","button","pRipple","",3,"click",4,"ngIf"],[1,"p-tabmenu-nav-content",3,"scroll"],["content",""],["role","tablist",1,"p-tabmenu-nav","p-reset"],["navbar",""],["role","tab","pTooltip","",3,"ngStyle","class","ngClass","toolt
ipOptions",4,"ngFor","ngForOf"],[1,"p-tabmenu-ink-bar"],["inkbar",""],["class","p-tabmenu-nav-next
p-tabmenu-nav-btn
p-link","type","button","pRipple","",3,"click",4,"ngIf"],["type","button","pRipple","",1,"p-tabmenu-nav-prev","p-tabmenu-nav-btn","p-link",3,"click"],["prevBtn",""],[1,"pi","pi-chevron-left"],["role","tab","pTooltip","",3,"ngStyle","ngClass","tooltipOptions"],["class","p-menuitem-link","role","presentation","pRipple","",3,"target","click","keydown.enter",4,"ngIf"],["role","presentation","class","p-menuitem-link","pRipple","",3,"routerLink","queryParams","routerLinkActive","routerLinkActiveOptions","target","fragment","queryParamsHandling","preserveFragment","skipLocationChange","replaceUrl","state","click","keydown.enter",4,"ngIf"],["role","presentation","pRipple","",1,"p-menuitem-link",3,"target","click","keydown.enter"],[4,"ngIf"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],["class","p-menuitem-icon",3,"ngClass","ngStyle",4,"ngIf"],["class","p-menuitem-text",4,
"ngIf","ngIfElse"],["htmlLabel",""],[1,"p-menuitem-icon",3,"ngClass","ngStyle"],[1,"p-menuitem-text"],[1,"p-menuitem-text",3,"innerHTML"],["role","presentation","pRipple","",1,"p-menuitem-link",3,"routerLink","queryParams","routerLinkActive","routerLinkActiveOptions","target","fragment","queryParamsHandling","preserveFragment","skipLocationChange","replaceUrl","state","click","keydown.enter"],["htmlRouteLabel",""],["type","button","pRipple","",1,"p-tabmenu-nav-next","p-tabmenu-nav-btn","p-link",3,"click"],["nextBtn",""],[1,"pi","pi-chevron-right"]],template:function(e,n){1&e&&(l(0,"div",0)(1,"div",1),_(2,fz,3,0,"button",2),l(3,"div",3,4),C("scroll",function(r){return
n.onScroll(r)}),l(5,"ul",5,6),_(7,Ez,3,13,"li",7),k(8,"li",8,9),c()(),_(10,Rz,3,0,"button",10),c()()),2&e&&(me(n.styleClass),p("ngClass",U(7,Lz,n.scrollable))("ngStyle",n.style),a(2),p("ngIf",n.scrollable&&!n.backwardIsDisabled),a(5),p("ngForOf",n.model),a(3),p("ngIf",n.scrollable&&!n.forwardIsDisabled))},directives:[Le
,lt,Q,bt,at,Kt,Rt,Ho,_d],styles:[".p-tabmenu-nav-container{position:relative}.p-tabmenu-scrollable
.p-tabmenu-nav-container{overflow:hidden}.p-tabmenu-nav-content{overflow-x:auto;overflow-y:hidden;scroll-behavior:smooth;scrollbar-width:none;overscroll-behavior:contain
auto}.p-tabmenu-nav-btn{position:absolute;top:0;z-index:2;height:100%;display:flex;align-items:center;justify-content:center}.p-tabmenu-nav-prev{left:0}.p-tabmenu-nav-next{right:0}.p-tabview-nav-content::-webkit-scrollbar{display:none}.p-tabmenu-nav{display:flex;margin:0;padding:0;list-style-type:none;flex-wrap:nowrap}.p-tabmenu-nav
a{cursor:pointer;-webkit-user-select:none;user-select:none;display:flex;align-items:center;position:relative;text-decoration:none;overflow:hidden}.p-tabmenu-nav
a:focus{z-index:1}.p-tabmenu-nav
.p-menuitem-text{line-height:1;white-space:nowrap}.p-tabmenu-ink-bar{display:none;z-index:1}.p-tabmenu-nav-content::-webkit-scrollbar{display:none}\n"],encapsulation:2,changeDetection:0}),t})(),Oz=((
)=>{class t{}return t.\u0275fac=function(e){return
new(e||t)},t.\u0275mod=he({type:t}),t.\u0275inj=ue({imports:[[Fe,vn,Nt,pn,jn],vn,Nt,jn]}),t})();function
Az(t,i){if(1&t&&(l(0,"span"),g(1),c()),2&t){const
e=d();a(1),S(e.label)}}function Pz(t,i){1&t&&Y(0)}const
Y2=function(t){return{height:t}},Fz=function(t,i){return{"p-highlight":t,"p-disabled":i}},Nz=function(t){return{"p-highlight":t}},Z2=function(t){return{"pi
pi-check":t}},Rl=function(t){return{$implicit:t}},Vz=["container"],Bz=["filterInput"],Hz=["in"];function
qz(t,i){if(1&t&&(de(0),g(1),pe()),2&t){const
e=d(2);a(1),S(e.valuesAsString||"empty")}}function Gz(t,i){if(1&t){const
e=I();l(0,"span",18),C("click",function(s){v(e);const
r=d().$implicit;return d(3).removeChip(r,s)}),c()}}function
Uz(t,i){if(1&t&&(l(0,"div",14,15)(2,"span",16),g(3),c(),_(4,Gz,1,0,"span",17),c()),2&t){const
e=i.$implicit,n=d(3);a(3),S(n.findLabelByValue(e)),a(1),p("ngIf",!n.disabled)}}function
zz(t,i){if(1&t&&(de(0),g(1),pe()),2&t){const e=d(3);a(1),S(e
.placeholder||e.defaultLabel||"empty")}}function
jz(t,i){if(1&t&&(de(0),_(1,Uz,5,2,"div",13),_(2,zz,2,1,"ng-container",7),pe()),2&t){const
e=d(2);a(1),p("ngForOf",e.value),a(1),p("ngIf",!e.value||0===e.value.length)}}function
$z(t,i){if(1&t&&(de(0),_(1,qz,2,1,"ng-container",7),_(2,jz,3,2,"ng-container",7),pe()),2&t){const
e=d();a(1),p("ngIf","comma"===e.display),a(1),p("ngIf","chip"===e.display)}}function
Wz(t,i){1&t&&Y(0)}function Kz(t,i){if(1&t){const
e=I();l(0,"i",19),C("click",function(s){return
v(e),d().clear(s)}),c()}}function Qz(t,i){1&t&&Y(0)}const
Jz=function(t){return{"p-checkbox-disabled":t}},Yz=function(t,i,e){return{"p-highlight":t,"p-focus":i,"p-disabled":e}};function
Zz(t,i){if(1&t){const
e=I();l(0,"div",32)(1,"div",2)(2,"input",33),C("focus",function(){return
v(e),d(3).onHeaderCheckboxFocus()})("blur",function(){return
v(e),d(3).onHeaderCheckboxBlur()})("keydown.space",function(s){return
v(e),d(3).toggleAll(s)}),c()(),l(3,"div",34),C("click",function(s){return
v(e),d
(3).toggleAll(s)}),k(4,"span",35),c()()}if(2&t){const
e=d(3);p("ngClass",U(6,Jz,e.disabled||e.toggleAllDisabled)),a(2),p("checked",e.allChecked)("disabled",e.disabled||e.toggleAllDisabled),a(1),p("ngClass",Qt(8,Yz,e.allChecked,e.headerCheckboxFocus,e.disabled||e.toggleAllDisabled)),ie("aria-checked",e.allChecked),a(1),p("ngClass",U(12,Z2,e.allChecked))}}function
Xz(t,i){if(1&t){const
e=I();l(0,"div",36)(1,"input",37,38),C("input",function(s){return
v(e),d(3).onFilterInputChange(s)}),c(),k(3,"span",39),c()}if(2&t){const
e=d(3);a(1),p("value",e.filterValue||"")("disabled",e.disabled),ie("autocomplete",e.autocomplete)("placeholder",e.filterPlaceHolder)("aria-label",e.ariaFilterLabel)}}function
ej(t,i){if(1&t){const
e=I();l(0,"div",26),St(1),_(2,Qz,1,0,"ng-container",27),_(3,Zz,5,14,"div",28),_(4,Xz,4,5,"div",29),l(5,"button",30),C("click",function(s){return
v(e),d(2).close(s)}),k(6,"span",31),c()()}if(2&t){const
e=d(2);a(2),p("ngTemplateOutlet",e.headerTemplate),a(1),p("ngIf",e.showTog
gleAll&&!e.selectionLimit),a(1),p("ngIf",e.filter)}}function
tj(t,i){if(1&t&&(l(0,"span"),g(1),c()),2&t){const
e=d().$implicit,n=d(3);a(1),S(n.getOptionGroupLabel(e)||"empty")}}function
nj(t,i){1&t&&Y(0)}function ij(t,i){1&t&&Y(0)}function
sj(t,i){if(1&t&&(l(0,"li",41),_(1,tj,2,1,"span",7),_(2,nj,1,0,"ng-container",8),c(),_(3,ij,1,0,"ng-container",8)),2&t){const
e=i.$implicit;d(2);const
n=F(7),s=d();a(1),p("ngIf",!s.groupTemplate),a(1),p("ngTemplateOutlet",s.groupTemplate)("ngTemplateOutletContext",U(5,Rl,e)),a(1),p("ngTemplateOutlet",n)("ngTemplateOutletContext",U(7,Rl,s.getOptionGroupChildren(e)))}}function
rj(t,i){if(1&t&&(de(0),_(1,sj,4,9,"ng-template",40),pe()),2&t){const
e=d(2);a(1),p("ngForOf",e.optionsToRender)}}function
oj(t,i){1&t&&Y(0)}function
aj(t,i){if(1&t&&(de(0),_(1,oj,1,0,"ng-container",8),pe()),2&t){d();const
e=F(7),n=d();a(1),p("ngTemplateOutlet",e)("ngTemplateOutletContext",U(2,Rl,n.optionsToRender))}}function
lj(t,i){if(1&t){const e=I();l(0,"p-multiSelectItem",4
5),C("onClick",function(s){return
v(e),d(4).onOptionClick(s)})("onKeydown",function(s){return
v(e),d(4).onOptionKeydown(s)}),c()}if(2&t){const
e=i.$implicit,n=d(4);p("option",e)("selected",n.isSelected(e))("label",n.getOptionLabel(e))("disabled",n.isOptionDisabled(e))("template",n.itemTemplate)}}function
cj(t,i){if(1&t&&(de(0),_(1,lj,1,5,"ng-template",40),pe()),2&t){const
e=d().$implicit;a(1),p("ngForOf",e)}}function uj(t,i){if(1&t){const
e=I();de(0),l(1,"p-multiSelectItem",50),C("onClick",function(s){return
v(e),d(5).onOptionClick(s)})("onKeydown",function(s){return
v(e),d(5).onOptionKeydown(s)}),c(),pe()}if(2&t){const
e=i.$implicit,n=d(5);a(1),p("option",e)("selected",n.isSelected(e))("label",n.getOptionLabel(e))("disabled",n.isOptionDisabled(e))("template",n.itemTemplate)("itemSize",n.itemSize)}}function
dj(t,i){if(1&t&&(l(0,"cdk-virtual-scroll-viewport",47,48),_(2,uj,2,6,"ng-container",49),c()),2&t){const
e=d(2).$implicit,n=d(2);p("ngStyle",U(3,Y2,n.scrollHeight))("itemSize",n.i
temSize),a(2),p("cdkVirtualForOf",e)}}function
pj(t,i){if(1&t&&_(0,dj,3,5,"cdk-virtual-scroll-viewport",46),2&t){const
e=d(3);p("ngIf",e.virtualScroll&&!e.emptyOptions)}}function
hj(t,i){if(1&t&&(de(0),g(1),pe()),2&t){const e=d(4);a(1),T("
",e.emptyFilterMessageLabel," ")}}function
mj(t,i){1&t&&Y(0,null,52)}function
fj(t,i){if(1&t&&(l(0,"li",51),_(1,hj,2,1,"ng-container",42),_(2,mj,2,0,"ng-container",27),c()),2&t){const
e=d(3);a(1),p("ngIf",!e.emptyFilterTemplate&&!e.emptyTemplate)("ngIfElse",e.emptyFilter),a(1),p("ngTemplateOutlet",e.emptyFilterTemplate||e.emptyTemplate)}}function
gj(t,i){if(1&t&&(de(0),g(1),pe()),2&t){const e=d(4);a(1),T("
",e.emptyMessageLabel," ")}}function
_j(t,i){1&t&&Y(0,null,53)}function
bj(t,i){if(1&t&&(l(0,"li",51),_(1,gj,2,1,"ng-container",42),_(2,_j,2,0,"ng-container",27),c()),2&t){const
e=d(3);a(1),p("ngIf",!e.emptyTemplate)("ngIfElse",e.empty),a(1),p("ngTemplateOutlet",e.emptyTemplate)}}function
vj(t,i){if(1&t&&(_(0,cj,2,1,"ng-container",42),_(1,pj,1,1
,"ng-template",null,43,we),_(3,fj,3,3,"li",44),_(4,bj,3,3,"li",44)),2&t){const
e=F(2),n=d(2);p("ngIf",!n.virtualScroll)("ngIfElse",e),a(3),p("ngIf",n.hasFilter()&&n.emptyOptions),a(1),p("ngIf",!n.hasFilter()&&n.emptyOptions)}}function
Cj(t,i){1&t&&Y(0)}function
yj(t,i){if(1&t&&(l(0,"div",54),St(1,1),_(2,Cj,1,0,"ng-container",27),c()),2&t){const
e=d(2);a(2),p("ngTemplateOutlet",e.footerTemplate)}}const
wj=function(){return["p-multiselect-panel
p-component"]},Tj=function(t,i){return{showTransitionParams:t,hideTransitionParams:i}},Sj=function(t){return{value:"visible",params:t}},xj=function(t){return{"p-multiselect-virtualscroll":t}};function
Dj(t,i){if(1&t){const
e=I();l(0,"div",20),C("(a)overlayAnimation.start",function(s){return
v(e),d().onOverlayAnimationStart(s)})("(a)overlayAnimation.done",function(s){return
v(e),d().onOverlayAnimationEnd(s)})("keydown",function(s){return
v(e),d().onKeydown(s)})("click",function(s){return
v(e),d().onOverlayClick(s)}),_(1,ej,7,3,"div",21),l(2,"div",22
)(3,"ul",23),_(4,rj,2,1,"ng-container",7),_(5,aj,2,4,"ng-container",7),_(6,vj,5,4,"ng-template",null,24,we),c()(),_(8,yj,3,1,"div",25),c()}if(2&t){const
e=d();me(e.panelStyleClass),p("ngClass",A(12,wj))("@overlayAnimation",U(16,Sj,Ge(13,Tj,e.showTransitionOptions,e.hideTransitionOptions)))("ngStyle",e.panelStyle),a(1),p("ngIf",e.showHeader),a(1),_i("max-height",e.virtualScroll?"auto":e.scrollHeight||"auto"),a(1),p("ngClass",U(18,xj,e.virtualScroll)),a(1),p("ngIf",e.group),a(1),p("ngIf",!e.group),a(3),p("ngIf",e.footerFacet||e.footerTemplate)}}const
Mj=[[["p-header"]],[["p-footer"]]],kj=function(t,i,e,n){return{"p-multiselect
p-component":!0,"p-multiselect-open":t,"p-multiselect-chip":i,"p-focus":e,"p-disabled":n}},Ij=function(t,i){return{"p-placeholder":t,"p-multiselect-label-empty":i}},Ej=function(){return{"p-multiselect-trigger":!0}},Rj=["p-header","p-footer"],Lj={provide:dn,useExisting:je(()=>X2),multi:!0};let
Oj=(()=>{class t{constructor(){this.onClick=new H,this.onKeydown=new H
}onOptionClick(e){this.onClick.emit({originalEvent:e,option:this.option})}onOptionKeydown(e){this.onKeydown.emit({originalEvent:e,option:this.option})}}return
t.\u0275fac=function(e){return
new(e||t)},t.\u0275cmp=z({type:t,selectors:[["p-multiSelectItem"]],hostAttrs:[1,"p-element"],inputs:{option:"option",selected:"selected",label:"label",disabled:"disabled",itemSize:"itemSize",template:"template"},outputs:{onClick:"onClick",onKeydown:"onKeydown"},decls:6,vars:20,consts:[["pRipple","",1,"p-multiselect-item",3,"ngStyle","ngClass","click","keydown"],[1,"p-checkbox","p-component"],[1,"p-checkbox-box",3,"ngClass"],[1,"p-checkbox-icon",3,"ngClass"],[4,"ngIf"],[4,"ngTemplateOutlet","ngTemplateOutletContext"]],template:function(e,n){1&e&&(l(0,"li",0),C("click",function(r){return
n.onOptionClick(r)})("keydown",function(r){return
n.onOptionKeydown(r)}),l(1,"div",1)(2,"div",2),k(3,"span",3),c()(),_(4,Az,2,1,"span",4),_(5,Pz,1,0,"ng-container",5),c()),2&e&&(p("ngStyle",U(9,Y2,n.itemSize+"px"))
("ngClass",Ge(11,Fz,n.selected,n.disabled)),ie("aria-label",n.label)("tabindex",n.disabled?null:"0"),a(2),p("ngClass",U(14,Nz,n.selected)),a(1),p("ngClass",U(16,Z2,n.selected)),a(1),p("ngIf",!n.template),a(1),p("ngTemplateOutlet",n.template)("ngTemplateOutletContext",U(18,Rl,n.option)))},directives:[bt,lt,Le,Q,Rt],encapsulation:2}),t})(),X2=(()=>{class
t{constructor(e,n,s,r,o,u){this.el=e,this.renderer=n,this.cd=s,this.filterService=r,this.config=o,this.overlayService=u,this.filter=!0,this.displaySelectedLabel=!0,this.maxSelectedLabels=3,this.selectedItemsLabel="ellipsis",this.showToggleAll=!0,this.emptyFilterMessage="",this.emptyMessage="",this.resetFilterOnHide=!1,this.dropdownIcon="pi
pi-chevron-down",this.optionGroupChildren="items",this.showHeader=!0,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.tooltipPosi
tionStyle="absolute",this.autofocusFilter=!0,this.display="comma",this.autocomplete="on",this.showClear=!1,this.onChange=new
H,this.onFilter=new H,this.onFocus=new H,this.onBlur=new H,this.onClick=new
H,this.onClear=new H,this.onPanelShow=new H,this.onPanelHide=new
H,this.scrollHeight="200px",this.onModelChange=()=>{},this.onModelTouched=()=>{}}set
defaultLabel(e){this._defaultLabel=e,this.updateLabel()}get defaultLabel(){return
this._defaultLabel}set placeholder(e){this._placeholder=e,this.updateLabel()}get
placeholder(){return this._placeholder}get options(){return this._options}set
options(e){this._options=e,this.updateLabel()}get filterValue(){return
this._filterValue}set
filterValue(e){this._filterValue=e,this.activateFilter()}ngOnInit(){this.updateLabel()}ngAfterContentInit(){this.templates.forEach(e=>{switch(e.getType()){case"item":default:this.itemTemplate=e.template;break;case"group":this.groupTemplate=e.template;break;case"selectedItems":this.selectedItemsTemplate=e.templa
te;break;case"header":this.headerTemplate=e.template;break;case"emptyfilter":this.emptyFilterTemplate=e.template;break;case"empty":this.emptyTemplate=e.template;break;case"footer":this.footerTemplate=e.template}})}ngAfterViewInit(){this.overlayVisible&&this.show()}ngAfterViewChecked(){this.filtered&&(this.alignOverlay(),this.filtered=!1)}getOptionLabel(e){return
this.optionLabel?Z.resolveFieldData(e,this.optionLabel):null!=e.label?e.label:e}getOptionValue(e){return
this.optionValue?Z.resolveFieldData(e,this.optionValue):this.optionLabel||void
0===e.value?e:e.value}getOptionGroupLabel(e){return
this.optionGroupLabel?Z.resolveFieldData(e,this.optionGroupLabel):null!=e.label?e.label:e}getOptionGroupChildren(e){return
this.optionGroupChildren?Z.resolveFieldData(e,this.optionGroupChildren):e.items}isOptionDisabled(e){return(this.optionDisabled?Z.resolveFieldData(e,this.optionDisabled):void
0!==e.disabled&&e.disabled)||this.maxSelectionLimitReached&&!this.isSelected(e)}writeValue(e){this.
value=e,this.updateLabel(),this.updateFilledState(),this.checkSelectionLimit(),this.cd.markForCheck()}checkSelectionLimit(){this.maxSelectionLimitReached=!(!this.selectionLimit||!this.value||this.value.length!==this.selectionLimit)}updateFilledState(){this.filled=this.value&&this.value.length>0}registerOnChange(e){this.onModelChange=e}registerOnTouched(e){this.onModelTouched=e}setDisabledState(e){this.disabled=e,this.cd.markForCheck()}onOptionClick(e){let
n=e.option;if(this.isOptionDisabled(n))return;let
s=this.getOptionValue(n),r=this.findSelectionIndex(s);-1!=r?(this.value=this.value.filter((o,u)=>u!=r),this.selectionLimit&&(this.maxSelectionLimitReached=!1)):((!this.selectionLimit||!this.value||this.value.length<this.selectionLimit)&&(this.value=[...this.value||[],s]),this.checkSelectionLimit()),this.onModelChange(this.value),this.onChange.emit({originalEvent:e.originalEvent,value:this.value,itemValue:s}),this.updateLabel(),this.updateFilledState()}isSelected(e){return-1!=this.fi
ndSelectionIndex(this.getOptionValue(e))}findSelectionIndex(e){let
n=-1;if(this.value)for(let
s=0;s<this.value.length;s++)if(Z.equals(this.value[s],e,this.dataKey)){n=s;break}return
n}get toggleAllDisabled(){let e=this.optionsToRender;if(!e||0===e.length)return!0;for(let
n of
e)if(!this.isOptionDisabled(n))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}),this.updateFilledState(),this.updateLabel(),e.preventDefault())}checkAll(){let
n=[];this.optionsToRender.forEach(s=>{if(this.group){let
r=this.getOptionGroupChildren(s);r&&r.forEach(o=>{let
u=this.isOptionDisabled(o);(!u||u&&this.isSelected(o))&&n.push(this.getOptionValue(o))})}else{let
r=this.isOptionDisabled(s);(!r||r&&this.isSelected(s))&&n.push(this.getOptionValue(s))}}),this.value=n}uncheckAll(){let
n=[];this.optionsToRender.forEach(s=>{this.group?s.items&&s
.items.forEach(r=>{this.isOptionDisabled(r)&&this.isSelected(r)&&n.push(this.getOptionValue(r))}):this.isOptionDisabled(s)&&this.isSelected(s)&&n.push(this.getOptionValue(s))}),this.value=n}show(){this.overlayVisible||(this.overlayVisible=!0,this.preventDocumentDefault=!0,this.cd.markForCheck())}onOverlayClick(e){this.overlayService.add({originalEvent:e,target:this.el.nativeElement})}onOverlayAnimationStart(e){switch(e.toState){case"visible":this.overlay=e.element,this.appendOverlay(),this.autoZIndex&&dt.set("overlay",this.overlay,this.baseZIndex+this.config.zIndex.overlay),this.alignOverlay(),this.bindDocumentClickListener(),this.bindDocumentResizeListener(),this.bindScrollListener(),this.filterInputChild&&this.filterInputChild.nativeElement&&(this.preventModelTouched=!0,this.autofocusFilter&&this.filterInputChild.nativeElement.focus()),this.onPanelShow.emit();break;case"void":this.onOverlayHide()}}onOverlayAnimationEnd(e){"void"===e.toState&&dt.clear(e.element)}appendOverlay(){thi
s.appendTo&&("body"===this.appendTo?document.body.appendChild(this.overlay):R.appendChild(this.overlay,this.appendTo),this.overlay.style.minWidth||(this.overlay.style.minWidth=R.getWidth(this.containerViewChild.nativeElement)+"px"))}restoreOverlayAppend(){this.overlay&&this.appendTo&&this.el.nativeElement.appendChild(this.overlay)}alignOverlay(){this.overlay&&(this.appendTo?R.absolutePosition(this.overlay,this.containerViewChild.nativeElement):R.relativePosition(this.overlay,this.containerViewChild.nativeElement))}hide(){this.overlayVisible=!1,this.unbindDocumentClickListener(),this.resetFilterOnHide&&(this.filterInputChild.nativeElement.value="",this._filterValue=null,this._filteredOptions=null),this.onPanelHide.emit(),this.cd.markForCheck()}close(e){this.hide(),e.preventDefault(),e.stopPropagation()}clear(e){this.value=null,this.updateLabel(),this.updateFilledState(),this.onClear.emit(),this.onModelChange(this.value),e.stopPropagation()}onMouseclick(e,n){this.disabled||this.readon
ly||e.target.isSameNode(this.accessibleViewChild.nativeElement)||(this.onClick.emit(e),!this.isOverlayClick(e)&&!R.hasClass(e.target,"p-multiselect-token-icon")&&(this.overlayVisible?this.hide():(n.focus(),this.show())))}removeChip(e,n){this.value=this.value.filter(s=>!Z.equals(s,e,this.dataKey)),this.onModelChange(this.value),this.checkSelectionLimit(),this.onChange.emit({originalEvent:n,value:this.value,itemValue:e}),this.updateLabel(),this.updateFilledState()}isOverlayClick(e){let
n=e.target;return!!this.overlay&&(this.overlay.isSameNode(n)||this.overlay.contains(n))}isOutsideClicked(e){return!(this.el.nativeElement.isSameNode(e.target)||this.el.nativeElement.contains(e.target)||this.isOverlayClick(e))}onInputFocus(e){this.focus=!0,this.onFocus.emit({originalEvent:e})}onInputBlur(e){this.focus=!1,this.onBlur.emit({originalEvent:e}),this.preventModelTouched||this.onModelTouched(),this.preventModelTouched=!1}onOptionKeydown(e){if(!this.readonly)switch(e.originalEvent.which){case
40
:var
n=this.findNextItem(e.originalEvent.target.parentElement);n&&n.focus(),e.originalEvent.preventDefault();break;case
38:var
s=this.findPrevItem(e.originalEvent.target.parentElement);s&&s.focus(),e.originalEvent.preventDefault();break;case
13:this.onOptionClick(e),e.originalEvent.preventDefault();break;case
9:this.hide()}}findNextItem(e){let n=e.nextElementSibling;return
n?R.hasClass(n.children[0],"p-disabled")||R.isHidden(n.children[0])||R.hasClass(n,"p-multiselect-item-group")?this.findNextItem(n):n.children[0]:null}findPrevItem(e){let
n=e.previousElementSibling;return
n?R.hasClass(n.children[0],"p-disabled")||R.isHidden(n.children[0])||R.hasClass(n,"p-multiselect-item-group")?this.findPrevItem(n):n.children[0]:null}onKeydown(e){switch(e.which){case
40:!this.overlayVisible&&e.altKey&&(this.show(),e.preventDefault());break;case
32:this.overlayVisible||(this.show(),e.preventDefault());break;case
27:this.hide()}}updateLabel(){if(this.value&&this.options&&this.value.length&&this.dis
playSelectedLabel){let e="";for(let n=0;n<this.value.length;n++){let
s=this.findLabelByValue(this.value[n]);s&&(e.length>0&&(e+=",
"),e+=s)}if(this.value.length<=this.maxSelectedLabels||"ellipsis"===this.selectedItemsLabel)this.valuesAsString=e;else{let
n=/{(.*?)}/;this.valuesAsString=n.test(this.selectedItemsLabel)?this.selectedItemsLabel.replace(this.selectedItemsLabel.match(n)[0],this.value.length+""):this.selectedItemsLabel}}else
this.valuesAsString=this.placeholder||this.defaultLabel}findLabelByValue(e){if(this.group){let
n=null;for(let s=0;s<this.options.length;s++){let
r=this.getOptionGroupChildren(this.options[s]);if(r&&(n=this.searchLabelByValue(e,r),n))break}return
n}return this.searchLabelByValue(e,this.options)}searchLabelByValue(e,n){let
s=null;for(let r=0;r<n.length;r++){let
o=n[r],u=this.getOptionValue(o);if(null==e&&null==u||Z.equals(e,u,this.dataKey)){s=this.getOptionLabel(o);break}}return
s}get allChecked(){let e=this.optionsToRender;if(!e||0===e.length)return!1;{l
et n=0,s=0,r=0,o=this.group?0:this.optionsToRender.length;for(let u of
e)if(this.group)for(let h of this.getOptionGroupChildren(u)){let
b=this.isOptionDisabled(h),y=this.isSelected(h);if(b)y?n++:s++;else{if(!y)return!1;r++}o++}else{let
h=this.isOptionDisabled(u),b=this.isSelected(u);if(h)b?n++:s++;else{if(!b)return!1;r++}}return
o===n||o===r||r&&o===r+s+n}}get optionsToRender(){return
this._filteredOptions||this.options}get emptyOptions(){let
e=this.optionsToRender;return!e||0===e.length}get emptyMessageLabel(){return
this.emptyMessage||this.config.getTranslation(Ft.EMPTY_MESSAGE)}get
emptyFilterMessageLabel(){return
this.emptyFilterMessage||this.config.getTranslation(Ft.EMPTY_FILTER_MESSAGE)}hasFilter(){return
this._filterValue&&this._filterValue.trim().length>0}onFilterInputChange(e){this._filterValue=e.target.value,this.activateFilter(),this.onFilter.emit({originalEvent:e,filter:this._filterValue}),this.cd.detectChanges(),this.alignOverlay()}activateFilter(){if(this.hasFilter()&&
this._options){let
e=(this.filterBy||this.optionLabel||"label").split(",");if(this.group){let
n=[];for(let s of this.options){let
r=this.filterService.filter(this.getOptionGroupChildren(s),e,this.filterValue,this.filterMatchMode,this.filterLocale);r&&r.length&&n.push(Object.assign(Object.assign({},s),{[this.optionGroupChildren]:r}))}this._filteredOptions=n}else
this._filteredOptions=this.filterService.filter(this.options,e,this._filterValue,this.filterMatchMode,this.filterLocale)}else
this._filteredOptions=null}onHeaderCheckboxFocus(){this.headerCheckboxFocus=!0}onHeaderCheckboxBlur(){this.headerCheckboxFocus=!1}bindDocumentClickListener(){this.documentClickListener||(this.documentClickListener=this.renderer.listen(this.el?this.el.nativeElement.ownerDocument:"document","click",n=>{!this.preventDocumentDefault&&this.isOutsideClicked(n)&&this.hide(),this.preventDocumentDefault=!1}))}unbindDocumentClickListener(){this.documentClickListener&&(this.documentClickListener(),this.documentCl
ickListener=null)}bindDocumentResizeListener(){this.documentResizeListener=this.onWindowResize.bind(this),window.addEventListener("resize",this.documentResizeListener)}unbindDocumentResizeListener(){this.documentResizeListener&&(window.removeEventListener("resize",this.documentResizeListener),this.documentResizeListener=null)}onWindowResize(){R.isAndroid()||this.hide()}bindScrollListener(){this.scrollHandler||(this.scrollHandler=new
Qs(this.containerViewChild.nativeElement,()=>{this.overlayVisible&&this.hide()})),this.scrollHandler.bindScrollListener()}unbindScrollListener(){this.scrollHandler&&this.scrollHandler.unbindScrollListener()}onOverlayHide(){this.unbindDocumentClickListener(),this.unbindDocumentResizeListener(),this.unbindScrollListener(),this.overlay=null,this.onModelTouched()}ngOnDestroy(){this.scrollHandler&&(this.scrollHandler.destroy(),this.scrollHandler=null),this.overlay&&dt.clear(this.overlay),this.restoreOverlayAppend(),this.onOverlayHide()}}return
t.\u0275fac=fun
ction(e){return
new(e||t)(D(De),D(gn),D(rt),D(hl),D(zn),D(Ks))},t.\u0275cmp=z({type:t,selectors:[["p-multiSelect"]],contentQueries:function(e,n,s){if(1&e&&(st(s,fl,5),st(s,Oo,5),st(s,ne,4)),2&e){let
r;V(r=B())&&(n.footerFacet=r.first),V(r=B())&&(n.headerFacet=r.first),V(r=B())&&(n.templates=r)}},viewQuery:function(e,n){if(1&e&&(W(Vz,5),W(Bz,5),W(Hz,5)),2&e){let
s;V(s=B())&&(n.containerViewChild=s.first),V(s=B())&&(n.filterInputChild=s.first),V(s=B())&&(n.accessibleViewChild=s.first)}},hostAttrs:[1,"p-element","p-inputwrapper"],hostVars:6,hostBindings:function(e,n){2&e&&si("p-inputwrapper-filled",n.filled)("p-inputwrapper-focus",n.focus||n.overlayVisible)("p-multiselect-clearable",n.showClear&&!n.disabled)},inputs:{style:"style",styleClass:"styleClass",panelStyle:"panelStyle",panelStyleClass:"panelStyleClass",inputId:"inputId",disabled:"disabled",readonly:"readonly",group:"group",filter:"filter",filterPlaceHolder:"filterPlaceHolder",filterLocale:"filterLocale",overlayVisible:"overlay
Visible",tabindex:"tabindex",appendTo:"appendTo",dataKey:"dataKey",name:"name",label:"label",ariaLabelledBy:"ariaLabelledBy",displaySelectedLabel:"displaySelectedLabel",maxSelectedLabels:"maxSelectedLabels",selectionLimit:"selectionLimit",selectedItemsLabel:"selectedItemsLabel",showToggleAll:"showToggleAll",emptyFilterMessage:"emptyFilterMessage",emptyMessage:"emptyMessage",resetFilterOnHide:"resetFilterOnHide",dropdownIcon:"dropdownIcon",optionLabel:"optionLabel",optionValue:"optionValue",optionDisabled:"optionDisabled",optionGroupLabel:"optionGroupLabel",optionGroupChildren:"optionGroupChildren",showHeader:"showHeader",autoZIndex:"autoZIndex",baseZIndex:"baseZIndex",filterBy:"filterBy",virtualScroll:"virtualScroll",itemSize:"itemSize",showTransitionOptions:"showTransitionOptions",hideTransitionOptions:"hideTransitionOptions",ariaFilterLabel:"ariaFilterLabel",filterMatchMode:"filterMatchMode",tooltip:"tooltip",tooltipPosition:"tooltipPosition",tooltipPositionStyle:"tooltipPositionS
tyle",tooltipStyleClass:"tooltipStyleClass",autofocusFilter:"autofocusFilter",display:"display",autocomplete:"autocomplete",showClear:"showClear",scrollHeight:"scrollHeight",defaultLabel:"defaultLabel",placeholder:"placeholder",options:"options",filterValue:"filterValue"},outputs:{onChange:"onChange",onFilter:"onFilter",onFocus:"onFocus",onBlur:"onBlur",onClick:"onClick",onClear:"onClear",onPanelShow:"onPanelShow",onPanelHide:"onPanelHide"},features:[Pe([Lj])],ngContentSelectors:Rj,decls:13,vars:34,consts:[[3,"ngClass","ngStyle","click"],["container",""],[1,"p-hidden-accessible"],["type","text","readonly","readonly","aria-haspopup","listbox","role","listbox",3,"disabled","focus","blur","keydown"],["in",""],[1,"p-multiselect-label-container",3,"pTooltip","tooltipPosition","positionStyle","tooltipStyleClass"],[1,"p-multiselect-label",3,"ngClass"],[4,"ngIf"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],["class","p-multiselect-clear-icon
pi pi-times",3,"click",4,"ngIf"],[3,"ngClass"
],[1,"p-multiselect-trigger-icon",3,"ngClass"],["onOverlayAnimationEnd","",3,"ngClass","ngStyle","class","keydown","click",4,"ngIf"],["class","p-multiselect-token",4,"ngFor","ngForOf"],[1,"p-multiselect-token"],["token",""],[1,"p-multiselect-token-label"],["class","p-multiselect-token-icon
pi
pi-times-circle",3,"click",4,"ngIf"],[1,"p-multiselect-token-icon","pi","pi-times-circle",3,"click"],[1,"p-multiselect-clear-icon","pi","pi-times",3,"click"],["onOverlayAnimationEnd","",3,"ngClass","ngStyle","keydown","click"],["class","p-multiselect-header",4,"ngIf"],[1,"p-multiselect-items-wrapper"],["role","listbox","aria-multiselectable","true",1,"p-multiselect-items","p-component",3,"ngClass"],["itemslist",""],["class","p-multiselect-footer",4,"ngIf"],[1,"p-multiselect-header"],[4,"ngTemplateOutlet"],["class","p-checkbox
p-component",3,"ngClass",4,"ngIf"],["class","p-multiselect-filter-container",4,"ngIf"],["type","button","pRipple","",1,"p-multiselect-close","p-link",3,"click"],[1,"p-mult
iselect-close-icon","pi","pi-times"],[1,"p-checkbox","p-component",3,"ngClass"],["type","checkbox","readonly","readonly",3,"checked","disabled","focus","blur","keydown.space"],["role","checkbox",1,"p-checkbox-box",3,"ngClass","click"],[1,"p-checkbox-icon",3,"ngClass"],[1,"p-multiselect-filter-container"],["type","text","role","textbox",1,"p-multiselect-filter","p-inputtext","p-component",3,"value","disabled","input"],["filterInput",""],[1,"p-multiselect-filter-icon","pi","pi-search"],["ngFor","",3,"ngForOf"],[1,"p-multiselect-item-group"],[4,"ngIf","ngIfElse"],["virtualScrollList",""],["class","p-multiselect-empty-message",4,"ngIf"],[3,"option","selected","label","disabled","template","onClick","onKeydown"],[3,"ngStyle","itemSize",4,"ngIf"],[3,"ngStyle","itemSize"],["viewport",""],[4,"cdkVirtualFor","cdkVirtualForOf"],[3,"option","selected","label","disabled","template","itemSize","onClick","onKeydown"],[1,"p-multiselect-empty-message"],["emptyFilter",""],["empty",""],[1,"p-multisel
ect-footer"]],template:function(e,n){if(1&e){const
s=I();Sn(Mj),l(0,"div",0,1),C("click",function(o){v(s);const
u=F(4);return
n.onMouseclick(o,u)}),l(2,"div",2)(3,"input",3,4),C("focus",function(o){return
n.onInputFocus(o)})("blur",function(o){return
n.onInputBlur(o)})("keydown",function(o){return
n.onKeydown(o)}),c()(),l(5,"div",5)(6,"div",6),_(7,$z,3,2,"ng-container",7),_(8,Wz,1,0,"ng-container",8),c(),_(9,Kz,1,0,"i",9),c(),l(10,"div",10),k(11,"span",11),c(),_(12,Dj,9,20,"div",12),c()}2&e&&(me(n.styleClass),p("ngClass",qn(23,kj,n.overlayVisible,"chip"===n.display,n.focus,n.disabled))("ngStyle",n.style),a(3),p("disabled",n.disabled),ie("label",n.label)("id",n.inputId)("name",n.name)("tabindex",n.tabindex)("aria-expanded",n.overlayVisible)("aria-labelledby",n.ariaLabelledBy),a(2),p("pTooltip",n.tooltip)("tooltipPosition",n.tooltipPosition)("positionStyle",n.tooltipPositionStyle)("tooltipStyleClass",n.tooltipStyleClass),a(1),p("ngClass",Ge(28,Ij,n.valuesAsString===(n.defaultLabel||n.
placeholder),!(null!=n.valuesAsString&&0!==n.valuesAsString.length||null!=n.placeholder&&0!==n.placeholder.length))),a(1),p("ngIf",!n.selectedItemsTemplate),a(1),p("ngTemplateOutlet",n.selectedItemsTemplate)("ngTemplateOutletContext",U(31,Rl,n.value)),a(1),p("ngIf",null!=n.value&&n.filled&&!n.disabled&&n.showClear),a(1),p("ngClass",A(33,Ej)),a(1),p("ngClass",n.dropdownIcon),a(1),p("ngIf",n.overlayVisible))},directives:[Oj,Po,Le,lt,Kt,Q,at,Rt,bt,Qf,Jf],styles:[".p-multiselect{display:inline-flex;cursor:pointer;position:relative;-webkit-user-select:none;user-select:none}.p-multiselect-trigger{display:flex;align-items:center;justify-content:center;flex-shrink:0}.p-multiselect-label-container{overflow:hidden;flex:1
1
auto;cursor:pointer}.p-multiselect-label{display:block;white-space:nowrap;cursor:pointer;overflow:hidden;text-overflow:ellipsis}.p-multiselect-label-empty{overflow:hidden;visibility:hidden}.p-multiselect-token{cursor:default;display:inline-flex;align-items:center;flex:0
0 a
uto}.p-multiselect-token-icon{cursor:pointer}.p-multiselect
.p-multiselect-panel{min-width:100%}.p-multiselect-panel{position:absolute;top:0;left:0}.p-multiselect-items-wrapper{overflow:auto}.p-multiselect-items{margin:0;padding:0;list-style-type:none}.p-multiselect-item{cursor:pointer;display:flex;align-items:center;font-weight:400;white-space:nowrap;position:relative;overflow:hidden}.p-multiselect-header{display:flex;align-items:center;justify-content:space-between}.p-multiselect-filter-container{position:relative;flex:1
1
auto}.p-multiselect-filter-icon{position:absolute;top:50%;margin-top:-.5rem}.p-multiselect-filter-container
.p-inputtext{width:100%}.p-multiselect-close{display:flex;align-items:center;justify-content:center;flex-shrink:0;overflow:hidden;position:relative}.p-fluid
.p-multiselect{display:flex}.p-multiselect-clear-icon{position:absolute;top:50%;margin-top:-.5rem;cursor:pointer}.p-multiselect-clearable{position:relative}\n"],encapsulation:2,data:{animation:[wi("ove
rlayAnimation",[Lt(":enter",[it({opacity:0,transform:"scaleY(0.8)"}),kt("{{showTransitionParams}}")]),Lt(":leave",[kt("{{hideTransitionParams}}",it({opacity:0}))])])]},changeDetection:0}),t})(),Aj=(()=>{class
t{}return t.\u0275fac=function(e){return
new(e||t)},t.\u0275mod=he({type:t}),t.\u0275inj=ue({imports:[[Fe,Nt,Fo,jn,pn],Nt,Fo]}),t})(),e$=(()=>{class
t{}return t.\u0275fac=function(e){return
new(e||t)},t.\u0275mod=he({type:t}),t.\u0275inj=ue({imports:[[Fe,vn,jn],vn,jn]}),t})(),tS=(()=>{class
t{constructor(e,n,s,r){this.el=e,this.ngModel=n,this.control=s,this.cd=r,this.onResize=new
H}ngOnInit(){this.ngModel&&(this.ngModelSubscription=this.ngModel.valueChanges.subscribe(()=>{this.updateState()})),this.control&&(this.ngControlSubscription=this.control.valueChanges.subscribe(()=>{this.updateState()}))}ngAfterViewInit(){this.autoResize&&this.resize(),this.updateFilledState(),this.cd.detectChanges()}onInput(e){this.updateState()}updateFilledState(){this.filled=this.el.nativeElement.va
lue&&this.el.nativeElement.value.length}onFocus(e){this.autoResize&&this.resize(e)}onBlur(e){this.autoResize&&this.resize(e)}resize(e){this.el.nativeElement.style.height="auto",this.el.nativeElement.style.height=this.el.nativeElement.scrollHeight+"px",parseFloat(this.el.nativeElement.style.height)>=parseFloat(this.el.nativeElement.style.maxHeight)?(this.el.nativeElement.style.overflowY="scroll",this.el.nativeElement.style.height=this.el.nativeElement.style.maxHeight):this.el.nativeElement.style.overflow="hidden",this.onResize.emit(e||{})}updateState(){this.updateFilledState(),this.autoResize&&this.resize()}ngOnDestroy(){this.ngModelSubscription&&this.ngModelSubscription.unsubscribe(),this.ngControlSubscription&&this.ngControlSubscription.unsubscribe()}}return
t.\u0275fac=function(e){return
new(e||t)(D(De),D(_e,8),D(ss,8),D(rt))},t.\u0275dir=le({type:t,selectors:[["","pInputTextarea",""]],hostAttrs:[1,"p-inputtextarea","p-inputtext","p-component","p-element"],hostVars:4,hostBindings:
function(e,n){1&e&&C("input",function(r){return
n.onInput(r)})("focus",function(r){return
n.onFocus(r)})("blur",function(r){return
n.onBlur(r)}),2&e&&si("p-filled",n.filled)("p-inputtextarea-resizable",n.autoResize)},inputs:{autoResize:"autoResize"},outputs:{onResize:"onResize"}}),t})(),t$=(()=>{class
t{}return t.\u0275fac=function(e){return
new(e||t)},t.\u0275mod=he({type:t}),t.\u0275inj=ue({imports:[[Fe]]}),t})();const
n$=["sublist"],i$=function(t){return{"p-hidden":t}};function
s$(t,i){if(1&t&&k(0,"li",5),2&t){const
e=d().$implicit;p("ngClass",U(1,i$,!1===e.visible))}}function
r$(t,i){if(1&t&&k(0,"span",16),2&t){const
e=d(3).$implicit;p("ngClass",e.icon)("ngStyle",e.iconStyle)}}function
o$(t,i){if(1&t&&(l(0,"span",17),g(1),c()),2&t){const
e=d(3).$implicit;a(1),S(e.label)}}function
a$(t,i){1&t&&k(0,"span",18),2&t&&p("innerHTML",d(3).$implicit.label,Bt)}function
l$(t,i){1&t&&k(0,"span",19)}const
nS=function(t){return{"p-menuitem-link":!0,"p-disabled":t}};function
c$(t,i){if(1&t){co
nst e=I();l(0,"a",11),C("keydown",function(s){v(e);const
r=d(2).$implicit;return d().onItemKeyDown(s,r)})("click",function(s){v(e);const
r=d(2).$implicit;return
d().onItemClick(s,r)})("mouseenter",function(s){v(e);const
r=d(2).$implicit;return
d().onItemMouseEnter(s,r)}),_(1,r$,1,2,"span",12),_(2,o$,2,1,"span",13),_(3,a$,1,1,"ng-template",null,14,we),_(5,l$,1,0,"span",15),c()}if(2&t){const
e=F(4),n=d(2).$implicit,s=d();p("target",n.target)("ngClass",U(13,nS,n.disabled)),ie("href",n.url,ln)("data-automationid",n.automationId)("title",n.title)("id",n.id)("tabindex",n.disabled?null:"0")("aria-haspopup",null!=s.item.items)("aria-expanded",s.item===s.activeItem),a(1),p("ngIf",n.icon),a(1),p("ngIf",!1!==n.escape)("ngIfElse",e),a(3),p("ngIf",n.items)}}function
u$(t,i){if(1&t&&k(0,"span",16),2&t){const
e=d(3).$implicit;p("ngClass",e.icon)("ngStyle",e.iconStyle)}}function
d$(t,i){if(1&t&&(l(0,"span",17),g(1),c()),2&t){const
e=d(3).$implicit;a(1),S(e.label)}}function
p$(t,i){1&t&&k(0,"span",1
8),2&t&&p("innerHTML",d(3).$implicit.label,Bt)}function
h$(t,i){1&t&&k(0,"span",19)}const
m$=function(){return{exact:!1}};function f$(t,i){if(1&t){const
e=I();l(0,"a",20),C("keydown",function(s){v(e);const
r=d(2).$implicit;return d().onItemKeyDown(s,r)})("click",function(s){v(e);const
r=d(2).$implicit;return
d().onItemClick(s,r)})("mouseenter",function(s){v(e);const
r=d(2).$implicit;return
d().onItemMouseEnter(s,r)}),_(1,u$,1,2,"span",12),_(2,d$,2,1,"span",13),_(3,p$,1,1,"ng-template",null,21,we),_(5,h$,1,0,"span",15),c()}if(2&t){const
e=F(4),n=d(2).$implicit;p("routerLink",n.routerLink)("queryParams",n.queryParams)("routerLinkActive","p-menuitem-link-active")("routerLinkActiveOptions",n.routerLinkActiveOptions||A(20,m$))("target",n.target)("ngClass",U(21,nS,n.disabled))("fragment",n.fragment)("queryParamsHandling",n.queryParamsHandling)("preserveFragment",n.preserveFragment)("skipLocationChange",n.skipLocationChange)("replaceUrl",n.replaceUrl)("state",n.state),ie("data-automationid
",n.automationId)("title",n.title)("id",n.id)("tabindex",n.disabled?null:"0"),a(1),p("ngIf",n.icon),a(1),p("ngIf",!1!==n.escape)("ngIfElse",e),a(3),p("ngIf",n.items)}}function
g$(t,i){if(1&t){const
e=I();l(0,"p-tieredMenuSub",22),C("keydownItem",function(s){return
v(e),d(3).onChildItemKeyDown(s)})("leafClick",function(){return
v(e),d(3).onLeafClick()}),c()}if(2&t){const
e=d(2).$implicit,n=d();p("parentActive",e===n.activeItem)("item",e)("mobileActive",n.mobileActive)("autoDisplay",n.autoDisplay)("popup",n.popup)}}const
_$=function(t,i){return{"p-menuitem":!0,"p-menuitem-active":t,"p-hidden":i}};function
b$(t,i){if(1&t&&(l(0,"li",6,7),_(2,c$,6,15,"a",8),_(3,f$,6,23,"a",9),_(4,g$,1,5,"p-tieredMenuSub",10),c()),2&t){const
e=d().$implicit,n=d();me(e.styleClass),p("ngClass",Ge(8,_$,e===n.activeItem,!1===e.visible))("ngStyle",e.style)("tooltipOptions",e.tooltipOptions),a(2),p("ngIf",!e.routerLink),a(1),p("ngIf",e.routerLink),a(1),p("ngIf",e.items)}}function
v$(t,i){if(1&t&&(_(0,s$,1,3,"li
",3),_(1,b$,5,11,"li",4)),2&t){const
e=i.$implicit;p("ngIf",e.separator),a(1),p("ngIf",!e.separator)}}const
C$=function(t){return{"p-submenu-list":t}},y$=function(t){return{"p-tieredmenu
p-component":!0,"p-tieredmenu-overlay":t}},w$=function(t,i){return{showTransitionParams:t,hideTransitionParams:i}},T$=function(t){return{value:"visible",params:t}};function
S$(t,i){if(1&t){const
e=I();l(0,"div",1),C("click",function(s){return
v(e),d().onOverlayClick(s)})("(a)overlayAnimation.start",function(s){return
v(e),d().onOverlayAnimationStart(s)})("(a)overlayAnimation.done",function(s){return
v(e),d().onOverlayAnimationEnd(s)}),l(1,"p-tieredMenuSub",2),C("leafClick",function(){return
v(e),d().onLeafClick()}),c()()}if(2&t){const
e=d();me(e.styleClass),p("ngClass",U(12,y$,e.popup))("ngStyle",e.style)("@overlayAnimation",U(17,T$,Ge(14,w$,e.showTransitionOptions,e.hideTransitionOptions)))("@.disabled",!0!==e.popup),a(1),p("item",e.model)("parentActive",e.parentActive)("baseZIndex",e.baseZIndex)("auto
ZIndex",e.autoZIndex)("autoDisplay",e.autoDisplay)("popup",e.popup)}}let
x$=(()=>{class
t{constructor(e,n,s){this.el=e,this.renderer=n,this.cd=s,this.autoZIndex=!0,this.baseZIndex=0,this.leafClick=new
H,this.keydownItem=new H,this.menuHoverActive=!1}get parentActive(){return
this._parentActive}set
parentActive(e){this.root||(this._parentActive=e,e?this.positionSubmenu():this.activeItem=null)}onItemClick(e,n){n.disabled?e.preventDefault():(!n.url&&!n.routerLink&&e.preventDefault(),n.command&&n.command({originalEvent:e,item:n}),n.items&&(this.activeItem&&n===this.activeItem?(this.activeItem=null,this.unbindDocumentClickListener()):(this.activeItem=n,this.root&&this.bindDocumentClickListener())),n.items||this.onLeafClick())}onItemMouseEnter(e,n){n.disabled||this.mobileActive?e.preventDefault():this.root?(this.activeItem||this.autoDisplay||this.popup)&&(this.activeItem=n,this.bindDocumentClickListener()):(this.activeItem=n,this.bindDocumentClickListener())}onLeafClick(){this.activeItem=
null,this.root&&this.unbindDocumentClickListener(),this.leafClick.emit()}onItemKeyDown(e,n){let
s=e.currentTarget.parentElement;switch(e.key){case"ArrowDown":var
r=this.findNextItem(s);r&&r.children[0].focus(),e.preventDefault();break;case"ArrowUp":var
o=this.findPrevItem(s);o&&o.children[0].focus(),e.preventDefault();break;case"ArrowRight":n.items&&(this.activeItem=n,this.root&&this.bindDocumentClickListener(),setTimeout(()=>{s.children[1].children[0].children[0].children[0].focus()},50)),e.preventDefault()}this.keydownItem.emit({originalEvent:e,element:s})}positionSubmenu(){let
e=this.sublistViewChild&&this.sublistViewChild.nativeElement;if(e){const
n=e.parentElement.parentElement,s=R.getOffset(n),r=R.getViewport(),o=e.offsetParent?e.offsetWidth:R.getHiddenElementOuterWidth(e),u=R.getOuterWidth(n.children[0]);parseInt(s.left,10)+u+o>r.width-R.calculateScrollbarWidth()&&R.addClass(e,"p-submenu-list-flipped")}}findNextItem(e){let
n=e.nextElementSibling;return n?R.hasClass(n,"p-disab
led")||!R.hasClass(n,"p-menuitem")?this.findNextItem(n):n:null}findPrevItem(e){let
n=e.previousElementSibling;return
n?R.hasClass(n,"p-disabled")||!R.hasClass(n,"p-menuitem")?this.findPrevItem(n):n:null}onChildItemKeyDown(e){"ArrowLeft"===e.originalEvent.key&&(this.activeItem=null,this.root&&this.unbindDocumentClickListener(),e.element.parentElement.parentElement.parentElement.children[0].focus())}bindDocumentClickListener(){this.documentClickListener||(this.documentClickListener=e=>{this.el&&!this.el.nativeElement.contains(e.target)&&(this.activeItem=null,this.cd.markForCheck(),this.unbindDocumentClickListener())},document.addEventListener("click",this.documentClickListener))}unbindDocumentClickListener(){this.documentClickListener&&(document.removeEventListener("click",this.documentClickListener),this.documentClickListener=null)}ngOnDestroy(){this.unbindDocumentClickListener()}}return
t.\u0275fac=function(e){return
new(e||t)(D(De),D(gn),D(rt))},t.\u0275cmp=z({type:t,selectors:[["p
-tieredMenuSub"]],viewQuery:function(e,n){if(1&e&&W(n$,5),2&e){let
s;V(s=B())&&(n.sublistViewChild=s.first)}},hostAttrs:[1,"p-element"],inputs:{item:"item",root:"root",autoDisplay:"autoDisplay",autoZIndex:"autoZIndex",baseZIndex:"baseZIndex",mobileActive:"mobileActive",popup:"popup",parentActive:"parentActive"},outputs:{leafClick:"leafClick",keydownItem:"keydownItem"},decls:3,vars:4,consts:[[3,"ngClass"],["sublist",""],["ngFor","",3,"ngForOf"],["class","p-menu-separator",3,"ngClass",4,"ngIf"],["pTooltip","",3,"ngClass","ngStyle","class","tooltipOptions",4,"ngIf"],[1,"p-menu-separator",3,"ngClass"],["pTooltip","",3,"ngClass","ngStyle","tooltipOptions"],["listItem",""],["pRipple","",3,"target","ngClass","keydown","click","mouseenter",4,"ngIf"],["role","menuitem","pRipple","",3,"routerLink","queryParams","routerLinkActive","routerLinkActiveOptions","target","ngClass","fragment","queryParamsHandling","preserveFragment","skipLocationChange","replaceUrl","state","keydown","click","mouseen
ter",4,"ngIf"],[3,"parentActive","item","mobileActive","autoDisplay","popup","keydownItem","leafClick",4,"ngIf"],["pRipple","",3,"target","ngClass","keydown","click","mouseenter"],["class","p-menuitem-icon",3,"ngClass","ngStyle",4,"ngIf"],["class","p-menuitem-text",4,"ngIf","ngIfElse"],["htmlLabel",""],["class","p-submenu-icon
pi
pi-angle-right",4,"ngIf"],[1,"p-menuitem-icon",3,"ngClass","ngStyle"],[1,"p-menuitem-text"],[1,"p-menuitem-text",3,"innerHTML"],[1,"p-submenu-icon","pi","pi-angle-right"],["role","menuitem","pRipple","",3,"routerLink","queryParams","routerLinkActive","routerLinkActiveOptions","target","ngClass","fragment","queryParamsHandling","preserveFragment","skipLocationChange","replaceUrl","state","keydown","click","mouseenter"],["htmlRouteLabel",""],[3,"parentActive","item","mobileActive","autoDisplay","popup","keydownItem","leafClick"]],template:function(e,n){1&e&&(l(0,"ul",0,1),_(2,v$,2,2,"ng-template",2),c()),2&e&&(p("ngClass",U(2,C$,!n.root)),a(2),p("ngForOf",n.r
oot?n.item:n.item.items))},directives:[t,Le,at,Q,Kt,lt,bt,Ho,_d],encapsulation:2}),t})(),D$=(()=>{class
t{constructor(e,n,s,r,o){this.el=e,this.renderer=n,this.cd=s,this.config=r,this.overlayService=o,this.autoZIndex=!0,this.baseZIndex=0,this.showTransitionOptions=".12s
cubic-bezier(0, 0, 0.2, 1)",this.hideTransitionOptions=".1s
linear"}toggle(e){this.visible?this.hide():this.show(e),this.preventDocumentDefault=!0}show(e){this.target=e.currentTarget,this.relativeAlign=e.relativeAlign,this.visible=!0,this.parentActive=!0,this.preventDocumentDefault=!0,this.cd.markForCheck()}onOverlayClick(e){this.popup&&this.overlayService.add({originalEvent:e,target:this.el.nativeElement}),this.preventDocumentDefault=!0}onOverlayAnimationStart(e){switch(e.toState){case"visible":this.popup&&(this.container=e.element,this.moveOnTop(),this.appendOverlay(),this.alignOverlay(),this.bindDocumentClickListener(),this.bindDocumentResizeListener(),this.bindScrollListener());break;case"void":this.onOverlayHide
()}}alignOverlay(){this.relativeAlign?R.relativePosition(this.container,this.target):R.absolutePosition(this.container,this.target)}onOverlayAnimationEnd(e){"void"===e.toState&&dt.clear(e.element)}appendOverlay(){this.appendTo&&("body"===this.appendTo?document.body.appendChild(this.container):R.appendChild(this.container,this.appendTo))}restoreOverlayAppend(){this.container&&this.appendTo&&this.el.nativeElement.appendChild(this.container)}moveOnTop(){this.autoZIndex&&dt.set("menu",this.container,this.baseZIndex+this.config.zIndex.menu)}hide(){this.visible=!1,this.relativeAlign=!1,this.parentActive=!1,this.cd.markForCheck()}onWindowResize(){this.hide()}onLeafClick(){this.popup&&this.hide(),this.unbindDocumentClickListener()}bindDocumentClickListener(){this.documentClickListener||(this.documentClickListener=this.renderer.listen(this.el?this.el.nativeElement.ownerDocument:"document","click",()=>{!this.preventDocumentDefault&&this.popup&&this.hide(),this.preventDocumentDefault=!1}))}unb
indDocumentClickListener(){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.documentResizeListener),this.documentResizeListener=null)}bindScrollListener(){this.scrollHandler||(this.scrollHandler=new
Qs(this.target,()=>{this.visible&&this.hide()})),this.scrollHandler.bindScrollListener()}unbindScrollListener(){this.scrollHandler&&this.scrollHandler.unbindScrollListener()}onOverlayHide(){this.unbindDocumentClickListener(),this.unbindDocumentResizeListener(),this.unbindScrollListener(),this.preventDocumentDefault=!1,this.cd.destroyed||(this.target=null)}ngOnDestroy(){this.popup&&(this.scrollHandler&&(this.scrollHandler.destroy(),this.scrollHandler=null),this.container&&this.autoZIndex&&dt.clear(th
is.container),this.restoreOverlayAppend(),this.onOverlayHide())}}return
t.\u0275fac=function(e){return
new(e||t)(D(De),D(gn),D(rt),D(zn),D(Ks))},t.\u0275cmp=z({type:t,selectors:[["p-tieredMenu"]],hostAttrs:[1,"p-element"],inputs:{model:"model",popup:"popup",style:"style",styleClass:"styleClass",appendTo:"appendTo",autoZIndex:"autoZIndex",baseZIndex:"baseZIndex",autoDisplay:"autoDisplay",showTransitionOptions:"showTransitionOptions",hideTransitionOptions:"hideTransitionOptions"},decls:1,vars:1,consts:[[3,"ngClass","class","ngStyle","click",4,"ngIf"],[3,"ngClass","ngStyle","click"],["root","root",3,"item","parentActive","baseZIndex","autoZIndex","autoDisplay","popup","leafClick"]],template:function(e,n){1&e&&_(0,S$,2,19,"div",0),2&e&&p("ngIf",!n.popup||n.visible)},directives:[x$,Q,Le,lt],styles:[".p-tieredmenu-overlay{position:absolute;top:0;left:0}.p-tieredmenu
ul{margin:0;padding:0;list-style:none}.p-tieredmenu
.p-submenu-list{position:absolute;min-width:100%;z-index:1;display:none}
.p-tieredmenu
.p-menuitem-link{cursor:pointer;display:flex;align-items:center;text-decoration:none;overflow:hidden;position:relative}.p-tieredmenu
.p-menuitem-text{line-height:1}.p-tieredmenu .p-menuitem{position:relative}.p-tieredmenu
.p-menuitem-link .p-submenu-icon{margin-left:auto}.p-tieredmenu
.p-menuitem-active>p-tieredmenusub>.p-submenu-list{display:block;left:100%;top:0}.p-tieredmenu
.p-menuitem-active>p-tieredmenusub>.p-submenu-list.p-submenu-list-flipped{left:-100%}\n"],encapsulation:2,data:{animation:[wi("overlayAnimation",[Lt(":enter",[it({opacity:0,transform:"scaleY(0.8)"}),kt("{{showTransitionParams}}")]),Lt(":leave",[kt("{{hideTransitionParams}}",it({opacity:0}))])])]},changeDetection:0}),t})(),M$=(()=>{class
t{}return t.\u0275fac=function(e){return
new(e||t)},t.\u0275mod=he({type:t}),t.\u0275inj=ue({imports:[[Fe,vn,pn,jn],vn,jn]}),t})(),k$=(()=>{class
t{}return t.\u0275fac=function(e){return
new(e||t)},t.\u0275mod=he({type:t}),t.\u0275inj=ue({imports:[sN,gl,cT,_5,S5,
Q6,T7,D7,Zu,G7,Xu,TB,m9,y9,A9,G9,J9,Y9,pn,iq,sq,hq,kU,BU,GU,jn,JU,nz,cz,Oz,Aj,e$,t$,M$]}),t})();const
I$=["pMenuItemContent",""];function
E$(t,i){if(1&t&&k(0,"span",6),2&t){const
e=d(2);me(e.item.iconClass),p("ngClass",e.item.icon)("ngStyle",e.item.iconStyle)}}function
R$(t,i){if(1&t&&(l(0,"span",7),g(1),c()),2&t){const
e=d(2);a(1),S(e.item.label)}}function
L$(t,i){1&t&&k(0,"span",8),2&t&&p("innerHTML",d(2).item.label,Bt)}const
iS=function(t){return{"p-disabled":t}};function O$(t,i){if(1&t){const
e=I();l(0,"a",2),C("keydown",function(s){return
v(e),d().onItemKeyDown(s)})("click",function(s){v(e);const r=d();return
r.menu.itemClick(s,r.item)}),_(1,E$,1,4,"span",3),_(2,R$,2,1,"span",4),_(3,L$,1,1,"ng-template",null,5,we),c()}if(2&t){const
e=F(4),n=d();p("target",n.item.target)("ngClass",U(11,iS,n.item.disabled))("target",n.item.target),ie("href",n.item.url||null,ln)("tabindex",n.item.disabled?null:"0")("data-automationid",n.item.automationId)("title",n.item.title)("id",n.item.id),a(1)
,p("ngIf",n.item.icon),a(1),p("ngIf",!1!==n.item.escape)("ngIfElse",e)}}function
A$(t,i){1&t&&k(0,"span",12),2&t&&p("ngClass",d(2).item.icon)}function
P$(t,i){if(1&t&&(l(0,"span",7),g(1),c()),2&t){const
e=d(2);a(1),S(e.item.label)}}function
F$(t,i){1&t&&k(0,"span",8),2&t&&p("innerHTML",d(2).item.label,Bt)}const
N$=function(){return{exact:!1}};function V$(t,i){if(1&t){const
e=I();l(0,"a",9),C("keydown",function(s){return
v(e),d().onItemKeyDown(s)})("click",function(s){v(e);const r=d();return
r.menu.itemClick(s,r.item)}),_(1,A$,1,1,"span",10),_(2,P$,2,1,"span",4),_(3,F$,1,1,"ng-template",null,11,we),c()}if(2&t){const
e=F(4),n=d();p("routerLink",n.item.routerLink)("queryParams",n.item.queryParams)("routerLinkActive","p-menuitem-link-active")("routerLinkActiveOptions",n.item.routerLinkActiveOptions||A(19,N$))("target",n.item.target)("ngClass",U(20,iS,n.item.disabled))("fragment",n.item.fragment)("queryParamsHandling",n.item.queryParamsHandling)("preserveFragment",n.item.preserveFragment
)("skipLocationChange",n.item.skipLocationChange)("replaceUrl",n.item.replaceUrl)("state",n.item.state),ie("data-automationid",n.item.automationId)("id",n.item.id)("tabindex",n.item.disabled?null:"0")("title",n.item.title),a(1),p("ngIf",n.item.icon),a(1),p("ngIf",!1!==n.item.escape)("ngIfElse",e)}}const
B$=["container"],Uo=function(t){return{"p-hidden":t}};function
H$(t,i){if(1&t&&k(0,"li",8),2&t){const
e=d().$implicit;p("ngClass",U(1,Uo,!1===e.visible))}}function
q$(t,i){if(1&t&&(l(0,"span"),g(1),c()),2&t){const
e=d(2).$implicit;a(1),S(e.label)}}function
G$(t,i){1&t&&k(0,"span",12),2&t&&p("innerHTML",d(2).$implicit.label,Bt)}function
U$(t,i){if(1&t&&(l(0,"li",9),_(1,q$,2,1,"span",10),_(2,G$,1,1,"ng-template",null,11,we),c()),2&t){const
e=F(3),n=d().$implicit;p("ngClass",U(5,Uo,!1===n.visible))("tooltipOptions",n.tooltipOptions),ie("data-automationid",n.automationId),a(1),p("ngIf",!1!==n.escape)("ngIfElse",e)}}function
z$(t,i){if(1&t&&k(0,"li",8),2&t){const
e=d().$implicit,n=d().$im
plicit;p("ngClass",U(1,Uo,!1===e.visible||!1===n.visible))}}function
j$(t,i){if(1&t&&k(0,"li",14),2&t){const
e=d().$implicit,n=d().$implicit;me(e.styleClass),p("pMenuItemContent",e)("ngClass",U(6,Uo,!1===e.visible||!1===n.visible))("ngStyle",e.style)("tooltipOptions",e.tooltipOptions)}}function
$$(t,i){if(1&t&&(_(0,z$,1,3,"li",6),_(1,j$,1,8,"li",13)),2&t){const
e=i.$implicit;p("ngIf",e.separator),a(1),p("ngIf",!e.separator)}}function
W$(t,i){if(1&t&&(_(0,H$,1,3,"li",6),_(1,U$,4,7,"li",7),_(2,$$,2,2,"ng-template",5)),2&t){const
e=i.$implicit;p("ngIf",e.separator),a(1),p("ngIf",!e.separator),a(1),p("ngForOf",e.items)}}function
K$(t,i){1&t&&_(0,W$,3,3,"ng-template",5),2&t&&p("ngForOf",d(2).model)}function
Q$(t,i){if(1&t&&k(0,"li",8),2&t){const
e=d().$implicit;p("ngClass",U(1,Uo,!1===e.visible))}}function
J$(t,i){if(1&t&&k(0,"li",14),2&t){const
e=d().$implicit;me(e.styleClass),p("pMenuItemContent",e)("ngClass",U(6,Uo,!1===e.visible))("ngStyle",e.style)("tooltipOptions",e.tooltipOptions)
}}function
Y$(t,i){if(1&t&&(_(0,Q$,1,3,"li",6),_(1,J$,1,8,"li",13)),2&t){const
e=i.$implicit;p("ngIf",e.separator),a(1),p("ngIf",!e.separator)}}function
Z$(t,i){1&t&&_(0,Y$,2,2,"ng-template",5),2&t&&p("ngForOf",d(2).model)}const
X$=function(t){return{"p-menu
p-component":!0,"p-menu-overlay":t}},eW=function(t,i){return{showTransitionParams:t,hideTransitionParams:i}},tW=function(t){return{value:"visible",params:t}};function
nW(t,i){if(1&t){const
e=I();l(0,"div",1,2),C("click",function(s){return
v(e),d().onOverlayClick(s)})("(a)overlayAnimation.start",function(s){return
v(e),d().onOverlayAnimationStart(s)})("(a)overlayAnimation.done",function(s){return
v(e),d().onOverlayAnimationEnd(s)}),l(2,"ul",3),_(3,K$,1,1,null,4),_(4,Z$,1,1,null,4),c()()}if(2&t){const
e=d();me(e.styleClass),p("ngClass",U(8,X$,e.popup))("ngStyle",e.style)("@overlayAnimation",U(13,tW,Ge(10,eW,e.showTransitionOptions,e.hideTransitionOptions)))("@.disabled",!0!==e.popup),a(3),p("ngIf",e.hasSubMenu()),a(1),p("ngIf",!e.hasS
ubMenu())}}let iW=(()=>{class t{constructor(e){this.menu=e}onItemKeyDown(e){let
n=e.currentTarget.parentElement;switch(e.code){case"ArrowDown":var
s=this.findNextItem(n);s&&s.children[0].focus(),e.preventDefault();break;case"ArrowUp":var
r=this.findPrevItem(n);r&&r.children[0].focus(),e.preventDefault();break;case"Space":case"Enter":n&&!R.hasClass(n,"p-disabled")&&n.children[0].click(),e.preventDefault()}}findNextItem(e){let
n=e.nextElementSibling;return
n?R.hasClass(n,"p-disabled")||!R.hasClass(n,"p-menuitem")?this.findNextItem(n):n:null}findPrevItem(e){let
n=e.previousElementSibling;return
n?R.hasClass(n,"p-disabled")||!R.hasClass(n,"p-menuitem")?this.findPrevItem(n):n:null}}return
t.\u0275fac=function(e){return
new(e||t)(D(je(()=>sS)))},t.\u0275cmp=z({type:t,selectors:[["","pMenuItemContent",""]],hostAttrs:[1,"p-element"],inputs:{item:["pMenuItemContent","item"]},attrs:I$,decls:2,vars:2,consts:[["class","p-menuitem-link","role","menuitem",3,"target","ngClass","keydown","click",4,
"ngIf"],["class","p-menuitem-link","role","menuitem","pRipple","",3,"routerLink","queryParams","routerLinkActive","routerLinkActiveOptions","target","ngClass","fragment","queryParamsHandling","preserveFragment","skipLocationChange","replaceUrl","state","keydown","click",4,"ngIf"],["role","menuitem",1,"p-menuitem-link",3,"target","ngClass","keydown","click"],["class","p-menuitem-icon",3,"ngClass","class","ngStyle",4,"ngIf"],["class","p-menuitem-text",4,"ngIf","ngIfElse"],["htmlLabel",""],[1,"p-menuitem-icon",3,"ngClass","ngStyle"],[1,"p-menuitem-text"],[1,"p-menuitem-text",3,"innerHTML"],["role","menuitem","pRipple","",1,"p-menuitem-link",3,"routerLink","queryParams","routerLinkActive","routerLinkActiveOptions","target","ngClass","fragment","queryParamsHandling","preserveFragment","skipLocationChange","replaceUrl","state","keydown","click"],["class","p-menuitem-icon",3,"ngClass",4,"ngIf"],["htmlRouteLabel",""],[1,"p-menuitem-icon",3,"ngClass"]],template:function(e,n){1&e&&(_(0,O$,5,1
3,"a",0),_(1,V$,5,22,"a",1)),2&e&&(p("ngIf",!n.item.routerLink),a(1),p("ngIf",n.item.routerLink))},directives:[Q,Le,lt,Ho,bt,_d],encapsulation:2}),t})(),sS=(()=>{class
t{constructor(e,n,s,r,o){this.el=e,this.renderer=n,this.cd=s,this.config=r,this.overlayService=o,this.autoZIndex=!0,this.baseZIndex=0,this.showTransitionOptions=".12s
cubic-bezier(0, 0, 0.2, 1)",this.hideTransitionOptions=".1s
linear",this.onShow=new H,this.onHide=new
H}toggle(e){this.visible?this.hide():this.show(e),this.preventDocumentDefault=!0}show(e){this.target=e.currentTarget,this.relativeAlign=e.relativeAlign,this.visible=!0,this.preventDocumentDefault=!0,this.cd.markForCheck()}onOverlayAnimationStart(e){switch(e.toState){case"visible":this.popup&&(this.container=e.element,this.moveOnTop(),this.onShow.emit({}),this.appendOverlay(),this.alignOverlay(),this.bindDocumentClickListener(),this.bindDocumentResizeListener(),this.bindScrollListener());break;case"void":this.onOverlayHide(),this.onHide.emit({})}}onOverla
yAnimationEnd(e){"void"===e.toState&&this.autoZIndex&&dt.clear(e.element)}alignOverlay(){this.relativeAlign?R.relativePosition(this.container,this.target):R.absolutePosition(this.container,this.target)}appendOverlay(){this.appendTo&&("body"===this.appendTo?document.body.appendChild(this.container):R.appendChild(this.container,this.appendTo))}restoreOverlayAppend(){this.container&&this.appendTo&&this.el.nativeElement.appendChild(this.container)}moveOnTop(){this.autoZIndex&&dt.set("menu",this.container,this.baseZIndex+this.config.zIndex.menu)}hide(){this.visible=!1,this.relativeAlign=!1,this.cd.markForCheck()}onWindowResize(){this.hide()}itemClick(e,n){n.disabled?e.preventDefault():(!n.url&&!n.routerLink&&e.preventDefault(),n.command&&n.command({originalEvent:e,item:n}),this.popup&&this.hide())}onOverlayClick(e){this.popup&&this.overlayService.add({originalEvent:e,target:this.el.nativeElement}),this.preventDocumentDefault=!0}bindDocumentClickListener(){this.documentClickListener||(thi
s.documentClickListener=this.renderer.listen(this.el?this.el.nativeElement.ownerDocument:"document","click",()=>{this.preventDocumentDefault||this.hide(),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.documentResizeListener),this.documentResizeListener=null)}bindScrollListener(){this.scrollHandler||(this.scrollHandler=new
Qs(this.target,()=>{this.visible&&this.hide()})),this.scrollHandler.bindScrollListener()}unbindScrollListener(){this.scrollHandler&&this.scrollHandler.unbindScrollListener()}onOverlayHide(){this.unbindDocumentClickListener(),this.unbindDocumentResizeListener(),this.unbindScrollListener(),this.preventDocumentDefa
ult=!1,this.cd.destroyed||(this.target=null)}ngOnDestroy(){this.popup&&(this.scrollHandler&&(this.scrollHandler.destroy(),this.scrollHandler=null),this.container&&this.autoZIndex&&dt.clear(this.container),this.restoreOverlayAppend(),this.onOverlayHide())}hasSubMenu(){if(this.model)for(var
e of this.model)if(e.items)return!0;return!1}}return t.\u0275fac=function(e){return
new(e||t)(D(De),D(gn),D(rt),D(zn),D(Ks))},t.\u0275cmp=z({type:t,selectors:[["p-menu"]],viewQuery:function(e,n){if(1&e&&W(B$,5),2&e){let
s;V(s=B())&&(n.containerViewChild=s.first)}},hostAttrs:[1,"p-element"],inputs:{model:"model",popup:"popup",style:"style",styleClass:"styleClass",appendTo:"appendTo",autoZIndex:"autoZIndex",baseZIndex:"baseZIndex",showTransitionOptions:"showTransitionOptions",hideTransitionOptions:"hideTransitionOptions"},outputs:{onShow:"onShow",onHide:"onHide"},decls:1,vars:1,consts:[[3,"ngClass","class","ngStyle","click",4,"ngIf"],[3,"ngClass","ngStyle","click"],["container",""],["role","menu",1,"
p-menu-list","p-reset"],[4,"ngIf"],["ngFor","",3,"ngForOf"],["class","p-menu-separator","role","separator",3,"ngClass",4,"ngIf"],["class","p-submenu-header","pTooltip","","role","none",3,"ngClass","tooltipOptions",4,"ngIf"],["role","separator",1,"p-menu-separator",3,"ngClass"],["pTooltip","","role","none",1,"p-submenu-header",3,"ngClass","tooltipOptions"],[4,"ngIf","ngIfElse"],["htmlSubmenuLabel",""],[3,"innerHTML"],["class","p-menuitem","pTooltip","","role","none",3,"pMenuItemContent","ngClass","ngStyle","class","tooltipOptions",4,"ngIf"],["pTooltip","","role","none",1,"p-menuitem",3,"pMenuItemContent","ngClass","ngStyle","tooltipOptions"]],template:function(e,n){1&e&&_(0,nW,5,15,"div",0),2&e&&p("ngIf",!n.popup||n.visible)},directives:[iW,Q,Le,lt,at,Kt],styles:[".p-menu-overlay{position:absolute;top:0;left:0}.p-menu
ul{margin:0;padding:0;list-style:none}.p-menu
.p-menuitem-link{cursor:pointer;display:flex;align-items:center;text-decoration:none;overflow:hidden;position:relative}.p-
menu
.p-menuitem-text{line-height:1}\n"],encapsulation:2,data:{animation:[wi("overlayAnimation",[Lt(":enter",[it({opacity:0,transform:"scaleY(0.8)"}),kt("{{showTransitionParams}}")]),Lt(":leave",[kt("{{hideTransitionParams}}",it({opacity:0}))])])]},changeDetection:0}),t})(),sW=(()=>{class
t{}return t.\u0275fac=function(e){return
new(e||t)},t.\u0275mod=he({type:t}),t.\u0275inj=ue({imports:[[Fe,vn,pn,jn],vn,jn]}),t})(),zo=(()=>{class
t{constructor(e){this.httpClient=e}GetDatabaseStatus(){return
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")}GetIPAddresses(e){let n=(new
ye).set("Protocol",e);return
this.httpClient.get("/Config/GetIPAddresses",{params:n})}GetSystemEvents(e){let
n=new ye;return
e&&n.set("Host",e),this.httpClient.get("/Config/GetSystemEvents",{params:n
})}}return t.\u0275fac=function(e){return
new(e||t)(K(Bi))},t.\u0275prov=X({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),qt=(()=>{class
t{constructor(e){this.httpClient=e}AddStorageGroupDir(e){return
this.httpClient.post("/Myth/AddStorageGroupDir",e)}BackupDatabase(){return
this.httpClient.post("/Myth/BackupDatabase",{body:void
0})}CheckDatabase(e){return
this.httpClient.post("/Myth/CheckDatabase",e)}DelayShutdown(){return
this.httpClient.post("Myth/DelayShutdown",{body:void 0})}GetBackendInfo(){return
this.httpClient.get("/Myth/GetBackendInfo")}GetConnectionInfo(e){let n=(new
ye).set("Pin",e);return
this.httpClient.get("/Myth/GetConnectionInfo",{params:n})}GetFrontends(e){let
n=(new ye).set("OnLine",e);return
this.httpClient.get("/Myth/GetFrontends",{params:n})}GetHostName(){return
this.httpClient.get("/Myth/GetHostName")}GetHosts(){return
this.httpClient.get("/Myth/GetHosts")}GetKeys(){return
this.httpClient.get("/Myth/GetKeys")}GetSetting(e){let n=(new
ye).set("HostName"
,e.HostName).set("Key",e.Key).set("Default",e.Default?e.Default:"");return
this.httpClient.get("/Myth/GetSetting",{params:n})}GetSettingList(e){let n=(new
ye).set("HostName",e);return
this.httpClient.get("/Myth/GetSettingList",{params:n})}GetStorageGroupDirs(e){return
void 0===e||void 0===e.GroupName&&void
0===e.HostName?this.httpClient.get("/Myth/GetStorageGroupDirs"):this.httpClient.post("/Myth/GetStorageGroupDirs",e)}GetDirListing(e){let
n=(new ye).set("DirName",e);return
this.httpClient.get("/Myth/GetDirListing",{params:n})}GetTimeZone(){return
this.httpClient.get("/Myth/GetTimeZone")}ManageDigestUser(e){return
this.httpClient.post("/Myth/ManageDigestUser",e)}ManageUrlProtection(e){return
this.httpClient.post("/Myth/ManageUrlProtection",e)}ProfileDelete(){return
this.httpClient.post("/Myth/ProfileDelete",{body:void 0})}ProfileSubmit(){return
this.httpClient.post("/Myth/ProfileSubmit",{body:void 0})}ProfileText(){return
this.httpClient.get("/Myth/ProfileText")}ProfileURL(){return
this.httpClient.get("/Myth/ProfileURL")}ProfileUpdated(){return
this.httpClient.get("/Myth/ProfileUpdated")}PutSetting(e){return
this.httpClient.post("/Myth/PutSetting",e)}DeleteSetting(e){return
this.httpClient.post("/Myth/DeleteSetting",e)}RemoveStorageGroupDir(e){return
this.httpClient.post("/Myth/RemoveStorageGroupDir",e)}SetConnectionInfo(e){return
this.httpClient.post("/Myth/SetConnectionInfo",e)}TestDBSettings(e){return
this.httpClient.post("/Myth/TestDBSettings",e)}ManageScheduler(e){return
this.httpClient.post("/Myth/ManageScheduler",e)}Shutdown(e){return
this.httpClient.post("/Myth/Shutdown",e)}}return t.\u0275fac=function(e){return
new(e||t)(K(Bi))},t.\u0275prov=X({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),xd=(()=>{class
t{constructor(e,n){this.configService=e,this.mythService=n,this.m_wizardData={Country:{Code:"",Country:"",NativeCountry:"",Image:""},Language:{Code:"",Language:"",NativeLanguage:"",Image:""},Database:{Host:"localhost",Port:3306,UserName:"myth
tv",Password:"mythtv",Ping:!1,Name:"mythconverg",Type:"QMYSQL",LocalHostName:"my-unique-identifier-goes-here",LocalEnabled:!1,DoTest:!0,WOLEnabled:!1,WOLReconnect:0,WOLRetry:0,WOLCommand:""},DatabaseStatus:{DatabaseStatus:{Host:"",Port:0,UserName:"",Password:"",Ping:!1,Name:"",Type:"",LocalHostName:"",LocalEnabled:!1,Connected:!1,HaveDatabase:!1,SchemaVersion:0,WOLEnabled:!1,WOLReconnect:0,WOLRetry:0,WOLCommand:""}}},this.m_topElement=null,this.m_hostName="",this.m_languageSetting="",this.m_languages=[],this.m_countrySetting="",this.m_countries=[],this.fullMenu=[],this.dbSetupMenu=[],this.wizardItems=[],this.mythService.GetHostName().subscribe(s=>{this.m_hostName=s.String})}ngOnInit(){}Init(){this.initDatabaseStatus(),this.initLanguages()}getWizardData(){return
this.Init(),this.m_wizardData}initDatabaseStatus(){this.dbPromise=new
Promise((e,n)=>{this.configService.GetDatabaseStatus().subscribe(s=>{this.m_wizardData.DatabaseStatus=s,this.m_wizardData.Database.Host=s.DatabaseStatus.Ho
st,this.m_wizardData.Database.Port=s.DatabaseStatus.Port,this.m_wizardData.Database.UserName=s.DatabaseStatus.UserName,this.m_wizardData.Database.Password=s.DatabaseStatus.Password,this.m_wizardData.Database.Name=s.DatabaseStatus.Name,this.m_wizardData.Database.LocalEnabled=s.DatabaseStatus.LocalEnabled,this.m_wizardData.Database.LocalHostName=s.DatabaseStatus.LocalHostName,this.m_wizardData.Database.WOLEnabled=s.DatabaseStatus.WOLEnabled,this.m_wizardData.Database.WOLReconnect=s.DatabaseStatus.WOLReconnect,this.m_wizardData.Database.WOLRetry=s.DatabaseStatus.WOLRetry,this.m_wizardData.Database.WOLCommand=s.DatabaseStatus.WOLCommand,e(!0)},s=>{console.log("Failed
to get database
status",s.statusText),n(!0)})})}initLanguages(){this.configService.GetCountries().subscribe(e=>{this.m_countries=e.CountryList.Countries,this.initCountry()}),this.configService.GetLanguages().subscribe(e=>{this.m_languages=e.LanguageList.Languages,this.initLanguage()})}initCountry(){this.mythService.GetSetti
ng({HostName:"_GLOBAL_",Key:"Country",Default:"US"}).subscribe(e=>{this.m_wizardData.Country=this.findCountryByCode(e.String)})}findCountryByCode(e){for(var
n=0;n<this.m_countries.length;n++)if(this.m_countries[n].Code===e)return
this.m_countries[n];return
this.m_countries[0]}initLanguage(){this.mythService.GetSetting({HostName:"_GLOBAL_",Key:"Language",Default:"en_US"}).subscribe(e=>{this.m_wizardData.Language=this.findLanguageByCode(e.String)})}findLanguageByCode(e){for(var
n=0;n<this.m_languages.length;n++)if(this.m_languages[n].Code===e)return
this.m_languages[n];return
this.m_languages[0]}updateDatabaseStatus(){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)(K(zo),K(qt))},t.\u0275prov=X({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),Me=(()=>{class
t{constructor(e,n){this.mythService=e,this.translate=n,this.m_hostName="
",this.m_initialized=!1,this.requesterForm=null,this.m_HostAddressData={successCount:0,errorCount:0,thisHostName:this.m_hostName,BackendServerPort:6543,BackendStatusPort:6544,SecurityPin:"0000",AllowConnFromAll:!1,ListenOnAllIps:!0,BackendServerIP:"127.0.0.1",BackendServerIP6:"::1",AllowLinkLocal:!0,BackendServerAddr:"",IsMasterBackend:!0,MasterServerName:this.m_hostName},this.HostAddressObs={next:s=>{s.bool?this.m_HostAddressData.successCount++:(this.m_HostAddressData.errorCount++,this.requesterForm&&this.requesterForm.form.markAsDirty())},error:s=>{console.error(s),this.m_HostAddressData.errorCount++,this.requesterForm&&this.requesterForm.form.markAsDirty()}},this.JobQCommandsObs={next:s=>{s.bool?this.m_JobQCommands.successCount++:(this.m_JobQCommands.errorCount++,this.requesterForm&&this.requesterForm.form.markAsDirty())},error:s=>{console.error(s),this.m_JobQCommands.errorCount++,this.requesterForm&&this.requesterForm.form.markAsDirty()}},this.currentForm=null,this.schedulingEna
bled=!0,this.isDatabaseIgnored=!1,this.DBTimezoneSupport=!1,this.WebOnlyStartup="",this.pageType=""}Init(){this.m_initialized=!0}getHostAddressData(){return
this.mythService.GetHostName().subscribe({next:e=>{this.m_hostName=e.String,this.m_HostAddressData.thisHostName=this.m_hostName,this.m_HostAddressData.MasterServerName=this.m_hostName,this.getHostSettings()},error:()=>this.m_HostAddressData.errorCount++}),this.m_HostAddressData}getHostSettings(){this.mythService.GetSetting({HostName:this.m_hostName,Key:"BackendServerPort",Default:"6543"}).subscribe({next:e=>this.m_HostAddressData.BackendServerPort=Number(e.String),error:()=>this.m_HostAddressData.errorCount++}),this.mythService.GetSetting({HostName:this.m_hostName,Key:"BackendStatusPort",Default:"6544"}).subscribe({next:e=>this.m_HostAddressData.BackendStatusPort=Number(e.String),error:()=>this.m_HostAddressData.errorCount++}),this.mythService.GetSetting({HostName:this.m_hostName,Key:"SecurityPin",Default:"0000"}).subscribe({nex
t:e=>this.m_HostAddressData.SecurityPin=e.String,error:()=>this.m_HostAddressData.errorCount++}),this.mythService.GetSetting({HostName:this.m_hostName,Key:"AllowConnFromAll",Default:"0"}).subscribe({next:e=>this.m_HostAddressData.AllowConnFromAll="1"==e.String,error:()=>this.m_HostAddressData.errorCount++}),this.mythService.GetSetting({HostName:this.m_hostName,Key:"ListenOnAllIps",Default:"1"}).subscribe({next:e=>this.m_HostAddressData.ListenOnAllIps="1"==e.String,error:()=>this.m_HostAddressData.errorCount++}),this.mythService.GetSetting({HostName:this.m_hostName,Key:"BackendServerIP"}).subscribe({next:e=>this.m_HostAddressData.BackendServerIP=e.String,error:()=>this.m_HostAddressData.errorCount++}),this.mythService.GetSetting({HostName:this.m_hostName,Key:"BackendServerIP6"}).subscribe({next:e=>this.m_HostAddressData.BackendServerIP6=e.String,error:()=>this.m_HostAddressData.errorCount++}),this.mythService.GetSetting({HostName:this.m_hostName,Key:"UseLinkLocal"}).subscribe({next:e
=>this.m_HostAddressData.AllowLinkLocal="1"==e.String,error:()=>this.m_HostAddressData.errorCount++}),this.mythService.GetSetting({HostName:this.m_hostName,Key:"BackendServerAddr"}).subscribe({next:e=>this.m_HostAddressData.BackendServerAddr=e.String,error:()=>this.m_HostAddressData.errorCount++}),this.mythService.GetSetting({HostName:"_GLOBAL_",Key:"MasterServerName",Default:this.m_hostName}).subscribe({next:e=>{this.m_HostAddressData.MasterServerName=e.String,this.m_HostAddressData.IsMasterBackend=this.m_HostAddressData.MasterServerName==this.m_hostName},error:()=>this.m_HostAddressData.errorCount++})}saveHostAddressData(e){this.requesterForm=e,this.m_HostAddressData.successCount=0,this.m_HostAddressData.errorCount=0,this.mythService.PutSetting({HostName:this.m_hostName,Key:"BackendServerPort",Value:String(this.m_HostAddressData.BackendServerPort)}).subscribe(this.HostAddressObs),this.mythService.PutSetting({HostName:this.m_hostName,Key:"BackendStatusPort",Value:String(this.m_Host
AddressData.BackendStatusPort)}).subscribe(this.HostAddressObs),this.mythService.PutSetting({HostName:this.m_hostName,Key:"SecurityPin",Value:this.m_HostAddressData.SecurityPin}).subscribe(this.HostAddressObs),this.mythService.PutSetting({HostName:this.m_hostName,Key:"AllowConnFromAll",Value:this.m_HostAddressData.AllowConnFromAll?"1":"0"}).subscribe(this.HostAddressObs),this.mythService.PutSetting({HostName:this.m_hostName,Key:"ListenOnAllIps",Value:this.m_HostAddressData.ListenOnAllIps?"1":"0"}).subscribe(this.HostAddressObs),this.mythService.PutSetting({HostName:this.m_hostName,Key:"BackendServerIP",Value:this.m_HostAddressData.BackendServerIP}).subscribe(this.HostAddressObs),this.mythService.PutSetting({HostName:this.m_hostName,Key:"BackendServerIP6",Value:this.m_HostAddressData.BackendServerIP6}).subscribe(this.HostAddressObs),this.mythService.PutSetting({HostName:this.m_hostName,Key:"AllowLinkLocal",Value:this.m_HostAddressData.AllowLinkLocal?"1":"0"}).subscribe(this.HostAddre
ssObs),this.mythService.PutSetting({HostName:this.m_hostName,Key:"BackendServerAddr",Value:this.m_HostAddressData.BackendServerAddr}).subscribe(this.HostAddressObs),this.mythService.PutSetting({HostName:"_GLOBAL_",Key:"MasterServerName",Value:this.m_HostAddressData.MasterServerName}).subscribe(this.HostAddressObs)}getLocaleData(){return
this.m_LocaleData={successCount:0,errorCount:0,TVFormat:"PAL",VbiFormat:"None",FreqTable:"us-bcast"},this.mythService.GetSetting({HostName:"_GLOBAL_",Key:"TVFormat"}).subscribe({next:e=>this.m_LocaleData.TVFormat=e.String,error:()=>this.m_LocaleData.errorCount++}),this.mythService.GetSetting({HostName:"_GLOBAL_",Key:"VbiFormat"}).subscribe({next:e=>this.m_LocaleData.VbiFormat=e.String,error:()=>this.m_LocaleData.errorCount++}),this.mythService.GetSetting({HostName:"_GLOBAL_",Key:"FreqTable"}).subscribe({next:e=>this.m_LocaleData.FreqTable=e.String,error:()=>this.m_LocaleData.errorCount++}),this.m_LocaleData}getSetupData(){return
this.getHostAddressDa
ta(),this.getLocaleData(),this.m_setupData={General:{HostAddress:this.m_HostAddressData,Locale:this.m_LocaleData}},this.m_setupData}parseTime(e,n){let
s=n.split(":");e.setHours(Number(s[0])),e.setMinutes(Number(s[1]))}formatTime(e){let
n=e.getHours(),s=e.getMinutes(),r="";return
n<10&&(r+="0"),r+=String(n),r+=":",s<10&&(r+="0"),r+=String(s),r}getJobQCommands(){if("object"==typeof
this.m_JobQCommands)return
this.m_JobQCommands;this.m_JobQCommands={successCount:0,errorCount:0,UserJobDesc:[],UserJob:[]};for(let
e=0;e<4;e++){let
n=e+1;this.translate.get("settings.services.job_default",{num:n}).subscribe(s=>this.m_JobQCommands.UserJobDesc[e]=s),this.mythService.GetSetting({HostName:"_GLOBAL_",Key:"UserJobDesc"+n,Default:""}).subscribe({next:s=>{s.String&&s.String.length>0&&(this.m_JobQCommands.UserJobDesc[e]=s.String)},error:()=>this.m_JobQCommands.errorCount++}),this.mythService.GetSetting({HostName:"_GLOBAL_",Key:"UserJob"+n,Default:""}).subscribe({next:s=>this.m_JobQCommands.UserJob[e
]=s.String,error:()=>this.m_JobQCommands.errorCount++})}return
this.m_JobQCommands}saveJobQCommands(e){this.requesterForm=e,this.m_JobQCommands.successCount=0,this.m_JobQCommands.errorCount=0;for(let
n=0;n<4;n++){let
s=n+1;this.mythService.PutSetting({HostName:"_GLOBAL_",Key:"UserJobDesc"+s,Value:this.m_JobQCommands.UserJobDesc[n]}).subscribe(this.JobQCommandsObs),this.mythService.PutSetting({HostName:"_GLOBAL_",Key:"UserJob"+s,Value:this.m_JobQCommands.UserJob[n]}).subscribe(this.JobQCommandsObs)}}getCurrentForm(){return
this.currentForm}setCurrentForm(e){this.currentForm=e}}return
t.\u0275fac=function(e){return
new(e||t)(K(qt),K(Oe))},t.\u0275prov=X({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),jo=(()=>{class
t{constructor(e){this.httpClient=e}AddDontRecordSchedule(e){return
this.httpClient.post("/Dvr/AddDontRecordSchedule",e)}AddRecordSchedule(e){return
this.httpClient.post("/Dvr/AddRecordSchedule",e)}UpdateRecordSchedule(e){return
this.httpClient.post("/Dvr/UpdateRecord
Schedule",e)}RemoveRecordSchedule(e){return
this.httpClient.post("/Dvr/RemoveRecordSchedule",{RecordId:e})}AddRecordedCredits(e){return
this.httpClient.post("/Dvr/AddRecordedCredits",e)}AddRecordedProgram(e){return
this.httpClient.post("/Dvr/AddRecordedProgram",e)}AllowReRecord(e){return
this.httpClient.post("/Dvr/AllowReRecord",{RecordedId:e})}DeleteRecording(e){return
this.httpClient.post("/Dvr/DeleteRecording",e)}UnDeleteRecording(e){return
this.httpClient.post("/Dvr/UnDeleteRecording",e)}UpdateRecordedMetadata(e){return
this.httpClient.post("/Dvr/UpdateRecordedMetadata",e)}DisableRecordSchedule(e){return
this.httpClient.post("/Dvr/DisableRecordSchedule",{RecordId:e})}DupInToDescription(e){let
n=(new ye).set("DupIn",e);return
this.httpClient.get("/Dvr/DupInToDescription",{params:n})}DupInToString(e){let
n=(new ye).set("DupIn",e);return
this.httpClient.get("/Dvr/DupInToString",{params:n})}DupMethodToDescription(e){let
n=(new ye).set("DupMethod",e);return this.httpClient.get("/Dvr/
DupMethodToDescription",{params:n})}DupMethodToString(e){let n=(new
ye).set("DupMethod",e);return
this.httpClient.get("/Dvr/DupMethodToString",{params:n})}EnableRecordSchedule(e){return
this.httpClient.post("/Dvr/EnableRecordSchedule",e)}GetConflictList(e){let
n=(new
ye).set("StartIndex",e.StartIndex).set("Count",e.Count).set("RecordId",e.RecordId);return
this.httpClient.get("/Dvr/GetConflictList",{params:n})}GetEncoderList(){return
this.httpClient.get("/Dvr/GetEncoderList")}GetExpiringList(e){let n=(new
ye).set("StartIndex",e.StartIndex).set("Count",e.Count);return
this.httpClient.get("/Dvr/GetExpiringList",{params:n})}GetInputList(){return
this.httpClient.get("/Dvr/GetInputList")}GetLastPlayPos(e){let n=(new
ye).set("RecordedId",e.RecordedId).set("ChanId",e.ChanId).set("StartTime",e.StartTime).set("OffsetType",e.OffsetType);return
this.httpClient.get("/Dvr/GetLastPlayPos",{params:n})}GetOldRecordedList(e){let
n=(new
ye).set("Descending",e.Descending).set("StartIndex",e.StartIndex)
.set("Count",e.Count).set("StartTime",e.StartTime).set("EndTime",e.EndTime).set("Title",e.Title).set("SeriesId",e.SeriesId).set("RecordId",e.RecordId).set("Sort",e.Sort);return
this.httpClient.get("/Dvr/GetOldRecordedList",{params:n})}GetPlayGroupList(){return
this.httpClient.get("/Dvr/GetPlayGroupList")}GetProgramCategories(e){return(new
ye).set("OnlyRecorded",e),this.httpClient.get("/Dvr/GetProgramCategories")}GetRecGroupList(){return
this.httpClient.get("/Dvr/GetRecGroupList")}GetRecRuleFilterList(){return
this.httpClient.get("/Dvr/GetRecRuleFilterList")}GetRecStorageGroupList(){return
this.httpClient.get("/Dvr/GetRecStorageGroupList")}GetRecordSchedule(e){let
n=new ye;for(const[s,r]of Object.entries(e))n=n.set(s,r);return
this.httpClient.get("/Dvr/GetRecordSchedule",{params:n})}GetRecordScheduleList(e){let
n=new ye;for(const[s,r]of Object.entries(e))n=n.set(s,r);return
this.httpClient.get("/Dvr/GetRecordScheduleList",{params:n})}GetRecorded(e){let
n=new ye;for(const[s,r]of Objec
t.entries(e))n=n.set(s,r);return
this.httpClient.get("/Dvr/GetRecorded",{params:n})}GetRecordedList(e){let n=new
ye;for(const[s,r]of Object.entries(e))n=n.set(s,r);return
this.httpClient.get("/Dvr/GetRecordedList",{params:n})}GetUpcomingList(e){let
n=new ye;for(const[s,r]of Object.entries(e))n=n.set(s,r);return
this.httpClient.get("/Dvr/GetUpcomingList",{params:n})}RecStatusToString(e){let
n=(new ye).set("RecStatus",e);return
this.httpClient.get("/Dvr/RecStatusToString",{params:n})}ManageJobQueue(e){return
this.httpClient.post("/Dvr/ManageJobQueue",e)}StopRecording(e){return
this.httpClient.post("/Dvr/StopRecording",{RecordedId:e})}}return
t.\u0275fac=function(e){return
new(e||t)(K(Bi))},t.\u0275prov=X({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();function
rW(t,i){if(1&t&&(l(0,"div",9),k(1,"p-message",10),m(2,"translate"),c()),2&t){const
e=d();a(1),x("text",f(2,2,"settings.main.webonly."+e.setupService.WebOnlyStartup)),p("styleClass","font-bold")}}function
oW(t,i){1&t&&(k(0
,"p-message",10),m(1,"translate")),2&t&&(x("text",f(1,2,"settings.main.mustenable")),p("styleClass","font-bold"))}function
aW(t,i){1&t&&(k(0,"p-message",10),m(1,"translate")),2&t&&(x("text",f(1,2,"settings.main.mustrestart")),p("styleClass","font-bold"))}function
lW(t,i){if(1&t&&(l(0,"div",9),_(1,oW,2,4,"p-message",11),_(2,aW,2,4,"ng-template",null,12,we),c()),2&t){const
e=F(3),n=d();a(1),p("ngIf",n.setupService.schedulingEnabled)("ngIfElse",e)}}function
cW(t,i){if(1&t){const
e=I();l(0,"div",13)(1,"div",14)(2,"p-button",15),C("onClick",function(){return
v(e),d().disableSched()}),m(3,"translate"),c()(),l(4,"div",14),g(5),m(6,"translate"),c()()}2&t&&(a(2),x("label",f(3,2,"settings.main.enableupdates_label")),a(3),S(f(6,4,"settings.main.enableupdates_desc")))}function
uW(t,i){1&t&&(l(0,"div",14)(1,"div",17),g(2),m(3,"translate"),c()()),2&t&&(a(2),S(f(3,1,"settings.main.restart_desc")))}function
dW(t,i){1&t&&(l(0,"div",14),g(1),m(2,"translate"),c()),2&t&&(a(1),T("
",f(2,1,"settings.main
.slave_enabled"),""))}function pW(t,i){if(1&t){const
e=I();l(0,"div",13)(1,"div",14)(2,"p-button",15),C("onClick",function(){return
v(e),d().restart()}),m(3,"translate"),c()(),_(4,uW,4,3,"div",16),_(5,dW,3,3,"div",16),c()}if(2&t){const
e=d();a(2),x("label",f(3,3,"WEBONLYPARM"==e.setupService.WebOnlyStartup?"settings.main.shutdown_label":"settings.main.restart_label")),a(2),p("ngIf",!e.masterServerName||!e.hostName||e.masterServerName==e.hostName),a(1),p("ngIf",e.masterServerName&&e.hostName&&e.masterServerName!=e.hostName)}}const
hW=function(t,i,e){return{Title:t,StartTime:i,Status:e}};function
mW(t,i){if(1&t&&(l(0,"small",18),g(1),m(2,"translate"),c()),2&t){const
e=d();a(1),T("
",Dt(2,1,"settings.main.upcomingrec",Qt(4,hW,e.upComing[0].Title,e.recStartTime,e.recStatusDesc)),"
")}}function
fW(t,i){1&t&&(l(0,"div")(1,"p"),g(2),m(3,"translate"),c(),l(4,"p"),g(5),m(6,"translate"),c()()),2&t&&(a(2),T("",f(3,2,"settings.main.slave_instructions"),"
"),a(3),T("",f(6,4,"settings.main.slave_
warning")," "))}function
gW(t,i){1&t&&k(0,"p-progressSpinner")}function
_W(t,i){1&t&&(k(0,"p-message",19),m(1,"translate")),2&t&&x("text",f(1,1,"settings.main.restarting"))}function
bW(t,i){1&t&&(k(0,"p-message",20),m(1,"translate")),2&t&&x("text",f(1,1,"common.networkfail"))}let
vW=(()=>{class
t{constructor(e,n,s,r,o,u){this.mythService=e,this.setupService=n,this.dvrService=s,this.wizardService=r,this.messageService=o,this.translate=u,this.errorCount=0,this.retryCount=0,this.upComing=[],this.recStatusDesc="",this.recStartTime="",this.ready=!1,this.delay=0,this.busy=!1,this.hostName="",this.masterServerName="",this.getBackendInfo(),this.refreshInfo()}refreshInfo(){setTimeout(()=>{this.getBackendInfo(),this.refreshInfo()},12e4)}getBackendInfo(){0==this.retryCount&&(this.errorCount=0),this.ready=!1,this.recStatusDesc="",this.recStartTime="",this.upComing=[],this.mythService.GetHostName().subscribe({next:e=>{this.hostName=e.String,this.mythService.GetSetting({HostName:"_GLOBAL_",Key:"M
asterServerName",Default:this.hostName}).subscribe({next:n=>{this.masterServerName=n.String},error:()=>this.errorCount++})},error:()=>this.errorCount++}),this.mythService.GetBackendInfo().subscribe({next:e=>{this.setupService.schedulingEnabled=e.BackendInfo.Env.SchedulingEnabled,this.setupService.isDatabaseIgnored=e.BackendInfo.Env.IsDatabaseIgnored,this.setupService.DBTimezoneSupport=e.BackendInfo.Env.DBTimezoneSupport,this.setupService.WebOnlyStartup=e.BackendInfo.Env.WebOnlyStartup,this.wizardService.wizardItems=this.setupService.isDatabaseIgnored?this.wizardService.dbSetupMenu:this.wizardService.fullMenu,this.wizardService.getWizardData(),this.retryCount>0&&this.errorCount>0?(this.retryCount=0,this.errorCount=0):this.retryCount>0&&0==this.errorCount&&setTimeout(()=>this.getBackendInfo(),2e3),0==this.retryCount&&(setTimeout(()=>this.getUpcoming(),this.delay),this.delay=0)},error:()=>{this.setupService.schedulingEnabled=!0,this.errorCount++,this.errorCount<this.retryCount?setTimeo
ut(()=>this.getBackendInfo(),2e3):this.retryCount=0}})}getUpcoming(){this.errorCount=0,this.dvrService.GetUpcomingList({Count:1}).subscribe({next:e=>{if(this.upComing=e.ProgramList.Programs,this.ready=!0,this.upComing.length>0){this.dvrService.RecStatusToString(this.upComing[0].Recording.Status).subscribe({next:s=>this.recStatusDesc=s.String,error:()=>this.errorCount++});var
n=new
Date(this.upComing[0].Recording.StartTs);this.recStartTime=n.toLocaleString()}},error:()=>this.errorCount++})}disableSched(){this.mythService.ManageScheduler({Disable:!0}).subscribe({next:e=>this.getBackendInfo(),error:()=>this.errorCount++})}restart(){let
e="WEBONLYPARM"!=this.setupService.WebOnlyStartup;this.mythService.Shutdown({Restart:e}).subscribe({next:n=>{n.bool?(this.retryCount=e?30:9999,this.getBackendInfo()):this.errorCount++},error:()=>this.errorCount++}),this.delay=5e3}ngOnInit(){}}return
t.\u0275fac=function(e){return
new(e||t)(D(qt),D(Me),D(jo),D(xd),D(Gi),D(Oe))},t.\u0275cmp=z({type:t,selec
tors:[["app-backend-warning"]],features:[Pe([Gi])],decls:15,vars:9,consts:[[1,"block","card","w-full"],[1,"block"],[1,"m-5"],["class","flex
mb-3",4,"ngIf"],["class","flex",4,"ngIf"],["class","pb-0
m-0",4,"ngIf"],[4,"ngIf"],["severity","info",3,"text",4,"ngIf"],["severity","error",3,"text",4,"ngIf"],[1,"flex","mb-3"],["severity","warn",3,"styleClass","text"],["severity","warn",3,"styleClass","text",4,"ngIf","ngIfElse"],["mustrestart",""],[1,"flex"],[1,"flex","align-items-center"],["icon","pi
pi-save","iconPos","left",1,"pr-5","pb-1","pt-0","m-0",3,"label","onClick"],["class","flex
align-items-center",4,"ngIf"],[1,"text-pink-500"],[1,"pb-0","m-0"],["severity","info",3,"text"],["severity","error",3,"text"]],template:function(e,n){1&e&&(l(0,"div",0)(1,"div",1)(2,"p-card",2),_(3,rW,3,4,"div",3),_(4,lW,4,2,"div",3),_(5,cW,7,6,"div",4),_(6,pW,6,5,"div",4),l(7,"div"),_(8,mW,3,8,"small",5),c(),_(9,fW,7,6,"div",6),l(10,"div"),_(11,gW,1,0,"p-progressSpinner",6),_(12,_W,2,3,"p-message",7),l(13,
"p"),_(14,bW,2,3,"p-message",8),c()()()()()),2&e&&(a(3),p("ngIf",0==n.retryCount&&"NONE"!=n.setupService.WebOnlyStartup),a(1),p("ngIf",0==n.retryCount),a(1),p("ngIf",n.setupService.schedulingEnabled&&0==n.retryCount),a(1),p("ngIf",!n.setupService.schedulingEnabled&&0==n.retryCount),a(2),p("ngIf",n.upComing.length>0),a(1),p("ngIf",n.masterServerName&&n.hostName&&n.masterServerName!=n.hostName&&0==n.retryCount),a(2),p("ngIf",n.retryCount>0),a(1),p("ngIf",n.retryCount>0),a(2),p("ngIf",!n.setupService.isDatabaseIgnored&&n.errorCount>0&&0==n.retryCount))},directives:[Ne,Q,qe,ve,Go],pipes:[ce],styles:[""]}),t})();const
CW=["top"];let rS=(()=>{class
t{constructor(e,n,s){this.wizardService=e,this.setupService=n,this.translate=s,this.fullMenu=[],this.dbSetupMenu=[],this.activeIndex=0,n.pageType="S"}ngOnInit(){this.translate.get("setupwizard.steps.selectlanguage").subscribe(e=>{this.fullMenu=[{label:this.translate.instant("setupwizard.steps.dbsetup"),routerLink:"dbsetup"},{label:this.translat
e.instant("setupwizard.steps.selectlanguage"),routerLink:"selectlanguage"},{label:this.translate.instant("setupwizard.steps.general"),routerLink:"general"},{label:this.translate.instant("setupwizard.steps.capture_cards"),routerLink:"capture-cards"},{label:this.translate.instant("setupwizard.steps.recording_profiles"),routerLink:"recording-profiles"},{label:this.translate.instant("setupwizard.steps.video_sources"),routerLink:"video-sources"},{label:this.translate.instant("setupwizard.steps.input_connections"),routerLink:"input-connections"},{label:this.translate.instant("setupwizard.steps.channel_editor"),routerLink:"channel-editor"},{label:this.translate.instant("setupwizard.steps.storage_groups"),routerLink:"storage-groups"},{label:this.translate.instant("setupwizard.steps.system_events"),routerLink:"system-events"}],this.wizardService.fullMenu=this.fullMenu,this.activeItem=this.fullMenu[0],this.dbSetupMenu=[this.fullMenu[0]],this.wizardService.dbSetupMenu=this.dbSetupMenu,this.wiz
ardService.wizardItems=this.wizardService.fullMenu})}ngAfterViewInit(){this.wizardService.m_topElement=this.topElement}}return
t.\u0275fac=function(e){return
new(e||t)(D(xd),D(Me),D(Oe))},t.\u0275cmp=z({type:t,selectors:[["app-settings"]],viewQuery:function(e,n){if(1&e&&W(CW,5),2&e){let
s;V(s=B())&&(n.topElement=s.first)}},decls:17,vars:12,consts:[["top",""],[1,"content-section","implementation"],[1,"card"],[1,"flex","flex-row"],["pButton","","pRipple","","icon","pi
pi-angle-double-left",1,"p-button-text","p-button-primary",3,"pTooltip","click"],[1,"col-11"],[3,"model","activeItem","scrollable"],["menu",""],["pButton","","pRipple","","icon","pi
pi-angle-double-right",1,"p-button-text","p-button-primary",3,"pTooltip","click"]],template:function(e,n){if(1&e){const
s=I();k(0,"span",null,0),l(2,"div",1)(3,"h1"),g(4),m(5,"translate"),c(),l(6,"div",2)(7,"div",3)(8,"button",4),C("click",function(){return
v(s),F(12).navBackward()}),m(9,"translate"),c(),l(10,"div",5),k(11,"p-tabMenu",6,7),c(
),l(13,"button",8),C("click",function(){return
v(s),F(12).navForward()}),m(14,"translate"),c()()(),k(15,"app-backend-warning")(16,"router-outlet"),c()}2&e&&(a(4),S(f(5,6,"settings.main.title")),a(4),x("pTooltip",f(9,8,"dashboard.scrolltabsleft")),a(3),p("model",n.wizardService.wizardItems)("activeItem",n.activeItem)("scrollable",!1),a(2),x("pTooltip",f(14,10,"dashboard.scrolltabsright")))},directives:[On,bt,Kt,J2,vW,Ml],pipes:[ce],styles:['.warning[_ngcontent-%COMP%]{color:#cc8925;background-color:#fff2e2}.connected[_ngcontent-%COMP%]{color:#1ea97c;background-color:#e4f8f0}.medium-width[_ngcontent-%COMP%]{width:"600"}']}),t})();function
yW(t,i){if(1&t){const
e=I();l(0,"div"),k(1,"h1"),l(2,"div",1)(3,"button",2),C("click",function(){return
v(e),F(7).navBackward()}),m(4,"translate"),c(),l(5,"div",3),k(6,"p-tabMenu",4,5),c(),l(8,"button",6),C("click",function(){return
v(e),F(7).navForward()}),m(9,"translate"),c()(),k(10,"router-outlet"),c()}if(2&t){const
e=d();a(3),x("pTooltip",f(4,5,"
dashboard.scrolltabsleft")),a(3),p("model",e.fullMenu)("activeItem",e.activeItem)("scrollable",!1),a(2),x("pTooltip",f(9,7,"dashboard.scrolltabsright"))}}let
oS=(()=>{class
t{constructor(e,n){this.translate=e,this.setupService=n,this.translateDone=!1,this.fullMenu=[{label:"dashboard.backendStatus",routerLink:"status"},{label:"dashboard.channeleditor",routerLink:"channel-editor"},{label:"dashboard.programguide",routerLink:"program-guide"},{label:"dashboard.recordings.heading",routerLink:"recordings"},{label:"dashboard.upcoming.heading",routerLink:"upcoming"},{label:"dashboard.recrules.heading",routerLink:"recrules"},{label:"dashboard.videos.heading",routerLink:"videos"}],this.activeItem=this.fullMenu[0],n.pageType="D",this.fullMenu.forEach(s=>{s.label&&this.translate.get(s.label).subscribe(r=>{s.label=r,this.translateDone=!0})})}ngOnInit(){}}return
t.\u0275fac=function(e){return
new(e||t)(D(Oe),D(Me))},t.\u0275cmp=z({type:t,selectors:[["app-dashboard"]],decls:1,vars:1,consts:[[4,"ngI
f"],[1,"flex","flex-row"],["pButton","","pRipple","","icon","pi
pi-angle-double-left",1,"p-button-text","p-button-primary",3,"pTooltip","click"],[1,"col-11"],[3,"model","activeItem","scrollable"],["menu",""],["pButton","","pRipple","","icon","pi
pi-angle-double-right",1,"p-button-text","p-button-primary",3,"pTooltip","click"]],template:function(e,n){1&e&&_(0,yW,11,9,"div",0),2&e&&p("ngIf",n.translateDone)},directives:[Q,On,bt,Kt,J2,Ml],pipes:[ce],styles:["[_nghost-%COMP%]
.dark-panel.p-panel
.p-panel-header{background:#c0c0c0}"]}),t})(),ji=(()=>{class
t{constructor(){}canDeactivate(e,n,s,r){return!e.canDeactivate||e.canDeactivate()}}return
t.\u0275fac=function(e){return
new(e||t)},t.\u0275prov=X({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();const
wW=[{path:"dashboard",component:oS},{path:"setupwizard",component:rS}];let
TW=(()=>{class t{}return t.\u0275fac=function(e){return
new(e||t)},t.\u0275mod=he({type:t}),t.\u0275inj=ue({providers:[ji],imports:[[vn.forRoot(wW)],vn]
}),t})(),SW=(()=>{class
t{constructor(e,n){this.http=e,this.document=n}switchTheme(e){let
n=this.document.getElementById("app-theme");n&&(n.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)(K(Bi),K(Xt))},t.\u0275prov=X({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),Ll=(()=>{class
t{constructor(e){this.translate=e,this.m_showSidebar=!0,this.recStatusText={Pending:"",Failing:"",MissedFuture:"",Tuning:"",Failed:"",TunerBusy:"",LowDiskSpace:"",Cancelled:"",Missed:"",Aborted:"",Recorded:"",Recording:"",WillRecord:"",Unknown:"",DontRecord:"",PreviousRecording:"",CurrentRecording:"",EarlierShowing:"",TooManyRecordings:"",NotListed:"",Conflict:"",LaterShowing:"",Repeat:"",Inactive:"",NeverRecord:"",Offline:""},this.getTranslations()}getTranslations(){for(const[e,n]of
Object.entries(this.recStatusText))this.translate.get("data.recstatus."+e).subscribe(s=>{Objec
t.defineProperty(this.recStatusText,e,{value:s})})}toggleShowSidebar(){this.m_showSidebar=!this.m_showSidebar}showSidebar(e){this.m_showSidebar=e}}return
t.\u0275fac=function(e){return
new(e||t)(K(Oe))},t.\u0275prov=X({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();function
xW(t,i){if(1&t&&(l(0,"div"),k(1,"img",26),c()),2&t){const
e=d(2);a(1),Bn("src","images/themes/",e.m_selectedTheme.Image,"",ln)}}function
DW(t,i){if(1&t&&(l(0,"div"),k(1,"img",27),c()),2&t){const
e=d(2);a(1),Bn("src","images/locale/",e.m_selectedLanguage.Image,"",ln)}}function
MW(t,i){if(1&t){const
e=I();l(0,"div",7)(1,"div",8)(2,"a",9),C("click",function(){return
v(e),d().toggleShowSidebar()}),k(3,"i",10)(4,"span",11),c(),k(5,"img",12),l(6,"div",13)(7,"h1"),g(8),m(9,"translate"),c()()(),l(10,"div",14)(11,"button",15),C("click",function(){return
v(e),d().showTopBar=!1}),m(12,"translate"),c()(),l(13,"div",16)(14,"a",17),C("click",function(){return
v(e),d().toggleShowNavbar()}),k(15,"i",18)(16,"span",11),c(),
l(17,"ul",19)(18,"li",20)(19,"a",21),C("click",function(s){return
v(e),d(),F(5).toggle(s)}),m(20,"translate"),_(21,xW,2,1,"div",22),l(22,"span",23),g(23),m(24,"translate"),c(),k(25,"span",24),c()(),l(26,"li",20)(27,"a",25),C("click",function(s){return
v(e),d(),F(8).toggle(s)}),m(28,"translate"),_(29,DW,2,1,"div",22),l(30,"span",23),g(31),m(32,"translate"),c(),k(33,"span",24),c()()()()()}if(2&t){const
e=d();a(8),S(f(9,9,"navbar.mainheading")),a(3),x("pTooltip",f(12,11,"navbar.hide")),a(6),p("hidden",e.m_showNavbar),a(2),x("pTooltip",f(20,13,"navbar.switchTheme")),a(2),p("ngIf",e.m_selectedTheme),a(2),S(f(24,15,"navbar.switchTheme")),a(4),x("pTooltip",f(28,17,"navbar.changeLanguage")),a(2),p("ngIf",e.m_selectedLanguage),a(2),S(f(32,19,"navbar.changeLanguage"))}}function
kW(t,i){if(1&t){const
e=I();l(0,"div",28)(1,"button",29),C("click",function(){return
v(e),d().showTopBar=!0}),m(2,"translate"),c()()}2&t&&(a(1),x("pTooltip",f(2,1,"navbar.show")))}function
IW(t,i){if(1&t&&(l(0,"tr",33)
(1,"td",34)(2,"span",35),g(3),c()()()),2&t){const
e=i.$implicit;a(3),S(e.Category)}}function EW(t,i){if(1&t){const
e=I();l(0,"tr",36),C("click",function(){const r=v(e).$implicit;return
d(2).changeTheme(r)}),l(1,"td",37),k(2,"img",38),c(),l(3,"td"),g(4),c()()}if(2&t){const
n=i.$implicit;p("pSelectableRow",i.$implicit),a(2),Bn("src","images/themes/",n.Image,"",ln),p("alt",n.image),a(2),S(n.Name)}}function
RW(t,i){1&t&&(l(0,"p-table",30),_(1,IW,4,1,"ng-template",31),_(2,EW,5,4,"ng-template",32),c()),2&t&&p("value",d().m_themes$)("paginator",!1)("scrollable",!0)}function
LW(t,i){if(1&t){const
e=I();l(0,"tr",36),C("click",function(){const
r=v(e).$implicit,o=d(2);return
F(8).hide(),o.changeLanguage(r)}),l(1,"td",37),k(2,"img",38),c(),l(3,"td")(4,"pre")(5,"span",40),g(6),c(),k(7,"br"),g(8),c()()()}if(2&t){const
n=i.$implicit;p("pSelectableRow",i.$implicit),a(2),Bn("src","images/locale/",n.Image,"",ln),p("alt",n.image),a(4),S(n.Language),a(2),T("",n.NativeLanguage,"
")}}function OW(t,i){1&t
&&(l(0,"p-table",39),_(1,LW,9,5,"ng-template",32),c()),2&t&&p("value",d().m_languages)("paginator",!1)("scrollable",!0)}const
AW=function(){return{width:"350px"}},PW=function(){return{width:"450px"}};let
FW=(()=>{class
t{constructor(e,n,s,r,o,u,h){this.themeService=e,this.configService=n,this.translateService=s,this.primeconfigService=r,this.dataService=o,this.mythService=u,this.router=h,this.m_showNavbar=!0,this.showTopBar=!0,this.m_devMode=function
KR(){return
ZC=!0,YC}(),this.m_haveDatabase=!0,this.themeService.getThemes().then(b=>{this.m_themes$=b,this.m_selectedTheme=this.findThemeByName(localStorage.getItem("Theme")||"Indigo
Light"),this.themeService.switchTheme(this.m_selectedTheme.CSS)}),this.configService.GetLanguages().subscribe(b=>{this.m_languages=b.LanguageList.Languages,this.m_selectedLanguage=this.findLanguageByCode(localStorage.getItem("Language")||"en_US")}),this.mythService.GetBackendInfo().subscribe(b=>{var
y=this.router.url;b.BackendInfo.Env.IsDatabaseIgnored||!b
.BackendInfo.Env.SchedulingEnabled&&!y.startsWith("/setupwizard/")?h.navigate(["setupwizard/dbsetup"]):"/"==y&&h.navigate(["dashboard/status"])})}ngOnInit(){}findThemeByName(e){for(var
n=0;n<this.m_themes$.length;n++)if(this.m_themes$[n].Name===e)return
this.m_themes$[n];return
this.m_themes$[0]}changeTheme(e){this.m_selectedTheme=e,this.themeService.switchTheme(e.CSS),localStorage.setItem("Theme",this.m_selectedTheme.Name)}findLanguageByCode(e){for(var
n=0;n<this.m_languages.length;n++)if(this.m_languages[n].Code===e)return
this.m_languages[n];return
this.m_languages[0]}changeLanguage(e){console.log("Language changed to
",e.NativeLanguage),this.m_selectedLanguage=e,localStorage.setItem("Language",this.m_selectedLanguage.Code),this.translateService.use(this.m_selectedLanguage.Code),this.translateService.get("primeng").subscribe(n=>this.primeconfigService.setTranslation(n))}toggleShowNavbar(){this.m_showNavbar=!this.m_showNavbar}toggleShowSidebar(){this.dataService.toggleShowSidebar(
)}}return t.\u0275fac=function(e){return
new(e||t)(D(SW),D(zo),D(Oe),D(zn),D(Ll),D(qt),D(It))},t.\u0275cmp=z({type:t,selectors:[["app-navbar"]],decls:10,vars:10,consts:[[1,"flex","flex-column","relative","flex-auto"],["class","toolbar
flex justify-content-between align-items-center pm-8 surface-section relative lg:static
surface-border","style","height:
80px;",4,"ngIf","ngIfElse"],["hidden",""],[3,"showCloseIcon"],["themePanel",""],["pTemplate",""],["languagePanel",""],[1,"toolbar","flex","justify-content-between","align-items-center","pm-8","surface-section","relative","lg:static","surface-border",2,"height","80px"],[1,"toolbar","flex","align-items-left","flex-shrink-0",2,"height","80px"],["pRipple","",1,"p-ripple","p-element","my-3","mx-1","flex","align-items-center","cursor-pointer","p-3","lg:hidden","lg:justify-content-center","hover:bg-gray-800","border-round","text-300","hover:text-0","transition-duration-150","transition-colors",3,"click"],[1,"pi","pi-bars","mr-1","lg:ml-1",
"text-base","lg:text-xl"],["ng","","serve","",1,"p-ink"],["src","images/mythtv.png","alt","Image","height","80",1,"py-2","pl-1"],[1,"hidden","md:inline-flex"],[1,"toolbar","flex","flex-grow-1","align-items-end",2,"height","80px"],["pButton","","pRipple","","icon","pi
pi-angle-up",1,"p-button-text","lg:col-offset-3","p-button-secondary",3,"pTooltip","click"],[1,"pr-2","toolbar",2,"height","80px"],["pRipple","",1,"toolbar","p-ripple","p-element","my-2","mx-2","flex","align-items-center","cursor-pointer","p-3","md:hidden","md:justify-content-center","hover:bg-gray-800","border-round","text-300","hover:text-0","transition-duration-150","transition-colors",2,"height","80px",3,"click"],[1,"pi","pi-ellipsis-v","mr-1","md:mr-0","text-base","md:text-xl"],[1,"toolbar","list-none","p-0","m-0","md:flex","md:align-items-center","select-none","md:flex-row","surface-section","border-1","md:border-none","surface-border","right-0","top-100","z-2","shadow-2","md:shadow-none","absolute","md:static",3,
"hidden"],[1,"toolbar",2,"height","80px"],["pRipple","","tooltipPosition","bottom",1,"p-ripple","p-element","my-3","mx-1","flex","align-items-center","cursor-pointer","p-2","lg:justify-content-center","hover:bg-gray-800","border-round","text-300","hover:text-0","transition-duration-150","transition-colors",3,"pTooltip","click"],[4,"ngIf"],[1,"font-medium","inline","md:hidden"],[1,"p-ink"],["pRipple","","tooltipPosition","bottom",1,"p-ripple","p-element","my-3","mx-1","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,"pTooltip","click"],[1,"mr-2","lg:mr-0",2,"width","32px","height","32px",3,"src"],[1,"mr-2","lg:mr-0",2,"width","32px",3,"src"],[1,"toolbar","block","flex","flex-grow-1","justify-content-center","align-items-end",2,"height","2rem"],["pButton","","pRipple","","icon","pi
pi-angle-down",1,"p-button-text","p-button-secondary",3,"pTooltip",
"click"],["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"],["selectionMode","single","sortField","NativeLanguage","sortMode","single","scrollHeight","500px","responsiveLayout","scroll",3,"value","paginator","scrollable"],[1,"font-bold"]],template:function(e,n){if(1&e&&(l(0,"div",0),_(1,MW,34,21,"div",1),_(2,kW,3,3,"ng-template",null,2,we),c(),l(4,"p-overlayPanel",3,4),_(6,RW,3,3,"ng-template",5),c(),l(7,"p-overlayPanel",3,6),_(9,OW,2,3,"ng-template",5),c()),2&e){const
s=F(3);a(1),p("ngIf",n.showTopBar)("ngIfElse",s),a(3),q(A(8,AW)),p("showCloseIcon",!0),a(3),q(A(9,PW)),p("showCloseIcon",!0)}},directives:[Q,bt,On,Kt,q9,ne,Dn,SU,j2],pipes:[ce
],styles:[".toolbar[_ngcontent-%COMP%]{background-color:#000;color:#4682b4}.theme-image[_ngcontent-%COMP%]{width:50px}"]}),t})(),NW=(()=>{class
t{constructor(e){this.dataService=e}ngOnInit(){}}return t.\u0275fac=function(e){return
new(e||t)(D(Ll))},t.\u0275cmp=z({type:t,selectors:[["app-sidenav"]],decls:32,vars:25,consts:[[1,"navbar","flex","relative","lg:static","surface-ground"],["id","sidebar",1,"bg-gray-900","lg:block","flex-shrink-0","absolute","lg:static","left-0","top-0","z-2","border-gray-800","w-18rem","lg:w-5rem","select-none",3,"hidden"],[1,"flex","flex-column","h-full"],[1,"mt-1","select-none"],[1,"list-none","p-3","lg:py-3","lg:px-2","m-0"],[3,"routerLink","pTooltip","tooltipDisabled","click"],["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"],["pRipple","",1,"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-cog","mr-2","lg:mr-0","text-base","lg:text-xl"],[1,"pi","pi-map","mr-2","lg:mr-0","text-base","lg:text-xl"],[1,"contentarea","px-0","lg:px-3","w-full"]],template:function(e,n){1&e&&(de(0),l(1,"div",0)(2,"div",1)(3,"div",2)(4,"div",3)(5,"ul",4)(6,"li",5),C("click",function(){return
n.dataService.showSidebar(!0)}),m(7,"translate"),l(8,"a",6),k(9,"i",7),l(10,"span",8),g(11),m(12,"translate"),c(),k(13,"span",9),c()(),l(14,"li",5),C("click",function(){return
n.dataService.showSidebar(!0)}),m(15,"translate"),l(16,"a",10),k(17,"i",11),l(18,"span",8),g(19),m(20,"translate"),c(),k(21,"span",9),c()(),l(22,"li",5),C("click",function(){return
n.dataService.showSidebar(!0)}),m(23,"translate"),l(24,"
a",10),k(25,"i",12),l(26,"span",8),g(27),m(28,"translate"),c(),k(29,"span",9),c()()()()()(),l(30,"div",13),k(31,"router-outlet"),c()(),pe()),2&e&&(a(2),p("hidden",n.dataService.m_showSidebar),a(4),x("pTooltip",f(7,13,"navbar.dashboard")),p("routerLink","dashboard/status")("tooltipDisabled",!1===n.dataService.m_showSidebar),a(5),S(f(12,15,"navbar.dashboard")),a(3),x("pTooltip",f(15,17,"navbar.backendSetup")),p("routerLink","setupwizard/dbsetup")("tooltipDisabled",!1===n.dataService.m_showSidebar),a(5),S(f(20,19,"navbar.backendSetup")),a(3),x("pTooltip",f(23,21,"dashboard.programguide")),p("routerLink","dashboard/program-guide")("tooltipDisabled",!1===n.dataService.m_showSidebar),a(5),S(f(28,23,"dashboard.programguide")))},directives:[gd,Kt,bt,Ml],pipes:[ce],styles:[".sidebar[_ngcontent-%COMP%]{width:70px;height:100%;margin:0}.navbar[_ngcontent-%COMP%]{min-height:calc(100vh
- 85px);max-height:calc(100vh -
85px)}.contentarea[_ngcontent-%COMP%]{overflow:scroll;height:calc(100vh - 85px)}
"]}),t})(),VW=(()=>{class
t{constructor(e,n){this.config=e,this.translate=n,this.title="MythTV
Backend",n.setDefaultLang("en_US"),n.use(localStorage.getItem("Language")||"en_US"),n.get("primeng").subscribe(s=>this.config.setTranslation(s)),this.config.ripple=!0}}return
t.\u0275fac=function(e){return
new(e||t)(D(zn),D(Oe))},t.\u0275cmp=z({type:t,selectors:[["app-root"]],decls:2,vars:0,template:function(e,n){1&e&&k(0,"app-navbar")(1,"app-sidenav")},directives:[FW,NW],styles:[""]}),t})();const
BW=["langform"],HW=["countryrow"],qW=["languagerow"];function
GW(t,i){1&t&&(g(0),m(1,"translate")),2&t&&T("
",f(1,1,"setupwizard.localSetup")," ")}function
UW(t,i){1&t&&(g(0),m(1,"translate")),2&t&&T("
",f(1,1,"setupwizard.countryAndLanguage")," ")}function
zW(t,i){1&t&&(l(0,"h2"),g(1),m(2,"translate"),c()),2&t&&(a(1),S(f(2,1,"setupwizard.selectCountry")))}function
jW(t,i){if(1&t&&(l(0,"div",18,19),k(2,"img",20),l(3,"pre")(4,"span",21),g(5),c(),g(6),c()()),2&t){const
e=i.$implicit;ie("id",e.Code)
,a(2),Bn("src","images/locale/",e.Image,"",ln),a(3),S(e.Country),a(1),We("",null!==e.NativeCountry?"
- "+e.NativeCountry:""," (",e.Code,")")}}function
$W(t,i){if(1&t&&(l(0,"div",22),k(1,"p-message",23),m(2,"translate"),c()),2&t){const
e=d(2);a(1),La("text","",f(2,2,"setupwizard.selectedCountry"),"
",e.m_wizardData.Country.Country,"")}}function
WW(t,i){1&t&&(l(0,"div",22),k(1,"p-message",24),m(2,"translate"),c()),2&t&&(a(1),x("text",f(2,1,"setupwizard.noCountry")))}function
KW(t,i){1&t&&(l(0,"h2"),g(1),m(2,"translate"),c()),2&t&&(a(1),S(f(2,1,"setupwizard.selectLanguage")))}function
QW(t,i){if(1&t&&(l(0,"div",18,25),k(2,"img",20),l(3,"pre")(4,"span",21),g(5),c(),g(6),c()()),2&t){const
e=i.$implicit;ie("id",e.Code),a(2),Bn("src","images/locale/",e.Image,"",ln),a(3),S(e.Language),a(1),We("
- ",e.NativeLanguage," (",e.Code,")")}}function
JW(t,i){if(1&t&&(l(0,"div",22),k(1,"p-message",23),m(2,"translate"),c()),2&t){const
e=d(2);a(1),La("text","",f(2,2,"setupwizard.selectedLanguage"),"
",
e.m_wizardData.Language.NativeLanguage,"")}}function
YW(t,i){1&t&&(l(0,"div",22),k(1,"p-message",26),m(2,"translate"),c()),2&t&&(a(1),x("text",f(2,1,"setupwizard.noLanguage")))}const
aS=function(){return{"max-height":"460px","min-height":"460px"}};function
ZW(t,i){if(1&t){const
e=I();l(0,"div",8)(1,"div",9)(2,"p-listbox",10),C("ngModelChange",function(s){return
v(e),d().m_wizardData.Country=s}),_(3,zW,3,3,"ng-template",11),_(4,jW,7,5,"ng-template",12),c(),_(5,$W,3,4,"div",13),_(6,WW,3,3,"ng-template",null,14,we),c(),l(8,"div",15)(9,"p-listbox",16),C("ngModelChange",function(s){return
v(e),d().m_wizardData.Language=s}),_(10,KW,3,3,"ng-template",11),_(11,QW,7,5,"ng-template",12),c(),_(12,JW,3,4,"div",13),_(13,YW,3,3,"ng-template",null,17,we),c()()}if(2&t){const
e=F(7),n=F(14),s=d();a(2),p("options",s.m_countries)("ngModel",s.m_wizardData.Country)("multiple",!1)("filter",!0)("listStyle",A(14,aS)),a(3),p("ngIf",""!=s.m_wizardData.Country.Code)("ngIfElse",e),a(4),p("options",s.m_language
s)("ngModel",s.m_wizardData.Language)("multiple",!1)("filter",!0)("listStyle",A(15,aS)),a(3),p("ngIf",""!=s.m_wizardData.Language.Code)("ngIfElse",n)}}function
XW(t,i){1&t&&(k(0,"p-message",23),m(1,"translate")),2&t&&x("text",f(1,1,"common.savesuccess"))}function
eK(t,i){1&t&&(k(0,"p-message",24),m(1,"translate")),2&t&&x("text",f(1,1,"common.networkfail"))}function
tK(t,i){if(1&t){const
e=I();l(0,"div",27)(1,"div",28),_(2,XW,2,3,"p-message",29),_(3,eK,2,3,"p-message",30),c(),l(4,"p-button",31),C("onClick",function(){v(e);const
s=d(),r=F(2);return
s.saveForm(),r.form.markAsPristine()}),m(5,"translate"),c(),l(6,"p-button",32),C("onClick",function(){return
v(e),d().router.navigate(["setupwizard/dbsetup"])}),m(7,"translate"),c(),l(8,"p-button",33),C("onClick",function(){return
v(e),d().router.navigate(["setupwizard/general"])}),m(9,"translate"),c()()}if(2&t){const
e=d(),n=F(2);a(2),p("ngIf",e.successCount>0&&e.successCount==e.expectedCount&&0==e.errorCount&&!n.dirty),a(1),p("ngIf",e.err
orCount>0),a(1),x("label",f(5,7,"common.save")),p("disabled",!n.dirty||e.setupService.schedulingEnabled),a(2),x("label",f(7,9,"common.back")),a(2),x("label",f(9,11,"common.next")),p("disabled",""==e.m_wizardData.Country.Code||""==e.m_wizardData.Language.Code)}}let
nK=(()=>{class
t{constructor(e,n,s,r,o,u){this.router=e,this.translate=n,this.setupService=s,this.configService=r,this.wizardService=o,this.mythService=u,this.m_countries=[],this.m_languages=[],this.successCount=0,this.errorCount=0,this.expectedCount=0,this.warningText="settings.common.warning",this.saveObserver={next:h=>{h.bool?(this.successCount++,this.successCount>=this.expectedCount&&localStorage.setItem("Language",this.m_wizardData.Language.Code),this.translate.use(this.m_wizardData.Language.Code)):(this.errorCount++,this.currentForm&&this.currentForm.form.markAsDirty())},error:h=>{console.error(h),this.errorCount++,this.currentForm&&this.currentForm.form.markAsDirty()}},this.translate.get(this.warningText).subscribe(
h=>{this.warningText=h})}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(),setTimeout(()=>this.scrollIntoView(),1e3)}ngAfterViewInit(){}scrollIntoView(){if(""!=this.m_wizardData.Country.Code){const
e=this.countryRowElement.find(n=>n.nativeElement.getAttribute("id")===this.m_wizardData.Country.Code);e?e.nativeElement.scrollIntoView({behavior:"instant",inline:"start",block:"center"}):console.log("Failed
to find element by ID")}if(""!=this.m_wizardData.Language.Code){const
e=this.languageRowElement.find(n=>n.nativeElement.getAttribute("id")===this.m_wizardData.Language.Code);e&&e.nativeElement.scrollIntoView({behavior:"instant",inline:"start",block:"center"})}null!=this.wizardService.m_topElement&&this.wizardService.m_topElement.nativeElement.scrollIntoView({behavior:"instant",block:"start"})}sav
eForm(){this.successCount=0,this.errorCount=0,this.expectedCount=2,this.mythService.PutSetting({HostName:"_GLOBAL_",Key:"Country",Value:this.m_wizardData.Country.Code}).subscribe(this.saveObserver),this.mythService.PutSetting({HostName:"_GLOBAL_",Key:"Language",Value:this.m_wizardData.Language.Code}).subscribe(this.saveObserver)}confirm(e){return
oe(window.confirm(e))}canDeactivate(){return!this.currentForm||!this.currentForm.dirty||this.confirm(this.warningText)}onWindowClose(e){this.currentForm&&this.currentForm.dirty&&(e.preventDefault(),e.returnValue=!1)}}return
t.\u0275fac=function(e){return
new(e||t)(D(It),D(Oe),D(Me),D(zo),D(xd),D(qt))},t.\u0275cmp=z({type:t,selectors:[["app-selectlanguage"]],viewQuery:function(e,n){if(1&e&&(W(BW,5),W(HW,5,De),W(qW,5,De)),2&e){let
s;V(s=B())&&(n.currentForm=s.first),V(s=B())&&(n.countryRowElement=s),V(s=B())&&(n.languageRowElement=s)}},hostBindings:function(e,n){1&e&&C("beforeunload",function(r){return
n.onWindowClose(r)},!1,ni)},decls:8,vars
:0,consts:[[1,"wizard-content","m-0","md:m-3"],["name","langform",1,"mx-0","md:mx-3"],["langform","ngForm"],[1,"m-0","md:m-5"],["pTemplate","title"],["pTemplate","subtitle"],["pTemplate","content"],["pTemplate","footer"],[1,"grid","m-0","md:m-3"],[1,"col-12","md:col-6","pt-2"],["optionLabel","Country","name","countries",3,"options","ngModel","multiple","filter","listStyle","ngModelChange"],["pTemplate","header"],["pTemplate","item"],["class","pt-5",4,"ngIf","ngIfElse"],["noCountry",""],[1,"col-12","md:col-6"],["optionLabel","Language","name","languages",3,"options","ngModel","multiple","filter","listStyle","ngModelChange"],["noLanguage",""],[1,"language-item"],["countryrow",""],[1,"pr-3",2,"width","70px",3,"src"],[1,"font-bold"],[1,"pt-5"],["severity","success",3,"text"],["severity","error",3,"text"],["languagerow",""],["severity","error",1,"pt-2",3,"text"],[1,"grid","nogutter","m-5"],[1,"col-12"],["severity","success",3,"text",4,"ngIf"],["severity","error",3,"text",4,"ngIf"],["icon
","pi
pi-save","iconPos","left",1,"col","pr-1",3,"label","disabled","onClick"],["icon","pi
pi-angle-left","iconPos","left",1,"pr-3",3,"label","onClick"],["icon","pi
pi-angle-right","iconPos","right",3,"label","disabled","onClick"]],template:function(e,n){1&e&&(l(0,"div",0)(1,"form",1,2)(3,"p-card",3),_(4,GW,2,3,"ng-template",4),_(5,UW,2,3,"ng-template",5),_(6,ZW,15,16,"ng-template",6),_(7,tK,10,13,"ng-template",7),c()()())},directives:[ze,Ue,He,Ne,ne,os,Te,_e,Q,qe,ve],pipes:[ce],styles:[".language-item{display:flex;align-items:center}@media
screen and (max-width:
48rem){.p-card-body,.p-card-content,.p-accordion-content{padding:0rem!important}}\n"],encapsulation:2}),t})();class
iK{constructor(i,e){this._document=e;const
n=this._textarea=this._document.createElement("textarea"),s=n.style;s.position="fixed",s.top=s.opacity="0",s.left="-999em",n.setAttribute("aria-hidden","true"),n.value=i,this._document.body.appendChild(n)}copy(){const
i=this._textarea;let e=!1;try{if(i){const n=this._
document.activeElement;i.select(),i.setSelectionRange(0,i.value.length),e=this._document.execCommand("copy"),n&&n.focus()}}catch(n){}return
e}destroy(){const i=this._textarea;i&&(i.remove(),this._textarea=void 0)}}let
lS=(()=>{class t{constructor(e){this._document=e}copy(e){const
n=this.beginCopy(e),s=n.copy();return n.destroy(),s}beginCopy(e){return new
iK(e,this._document)}}return t.\u0275fac=function(e){return
new(e||t)(K(Xt))},t.\u0275prov=X({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();const
sK=["databaseForm"];function
rK(t,i){1&t&&(g(0),m(1,"translate")),2&t&&T("
",f(1,1,"setupwizard.databaseSetup")," ")}function
oK(t,i){1&t&&(g(0),m(1,"translate")),2&t&&T("
",f(1,1,"setupwizard.enterDBLoginDetails")," ")}function
aK(t,i){1&t&&(l(0,"div")(1,"small",42),g(2),m(3,"translate"),c()()),2&t&&(a(2),S(f(3,1,"setupwizard.IPorAddressRequired")))}function
lK(t,i){1&t&&(l(0,"div")(1,"small",43),g(2),m(3,"translate"),c()()),2&t&&(a(2),S(f(3,1,"setupwizard.portRequired")))}functio
n
cK(t,i){1&t&&(l(0,"div")(1,"small",43),g(2),m(3,"translate"),c()()),2&t&&(a(2),S(f(3,1,"setupwizard.userRequired")))}function
uK(t,i){1&t&&(l(0,"div")(1,"small",43),g(2),m(3,"translate"),c()()),2&t&&(a(2),S(f(3,1,"setupwizard.passwordRequired")))}function
dK(t,i){1&t&&(l(0,"div")(1,"small",43),g(2),m(3,"translate"),c()()),2&t&&(a(2),S(f(3,1,"setupwizard.databaseNameRequired")))}function
pK(t,i){if(1&t){const
e=I();l(0,"div",30)(1,"label",44),g(2),m(3,"translate"),c(),l(4,"input",45,46),C("ngModelChange",function(s){return
v(e),d(2).database.LocalHostName=s}),c(),l(6,"small",47),g(7),m(8,"translate"),c()()}if(2&t){const
e=d(2);a(2),S(f(3,3,"setupwizard.LocalHostName_label")),a(2),p("ngModel",e.database.LocalHostName),a(3),S(f(8,5,"setupwizard.LocalHostName_desc"))}}function
hK(t,i){if(1&t){const
e=I();l(0,"div",8)(1,"label",48),g(2),m(3,"translate"),c(),l(4,"p-inputNumber",49),C("ngModelChange",function(s){return
v(e),d(2).database.WOLReconnect=s}),c(),l(5,"small",32),g(6),m(7,"tra
nslate"),c()()}if(2&t){const e=d(2);a(2),T("
",f(3,8,"settings.vsource.WOLReconnect_label"),"
"),a(2),p("ngModel",e.database.WOLReconnect)("min",0)("max",60)("step",1)("useGrouping",!1)("showButtons",!0),a(2),T("
",f(7,10,"settings.vsource.WOLReconnect_desc")," ")}}function
mK(t,i){if(1&t){const
e=I();l(0,"div",8)(1,"label",50),g(2),m(3,"translate"),c(),l(4,"p-inputNumber",51),C("ngModelChange",function(s){return
v(e),d(2).database.WOLRetry=s}),c(),l(5,"small",32),g(6),m(7,"translate"),c()()}if(2&t){const
e=d(2);a(2),T(" ",f(3,8,"settings.vsource.WOLRetry_label"),"
"),a(2),p("ngModel",e.database.WOLRetry)("min",1)("max",10)("step",1)("useGrouping",!1)("showButtons",!0),a(2),T("
",f(7,10,"settings.vsource.WOLRetry_desc")," ")}}function
fK(t,i){if(1&t){const
e=I();l(0,"div",30)(1,"label",52),g(2),m(3,"translate"),c(),l(4,"input",53,54),C("ngModelChange",function(s){return
v(e),d(2).database.WOLCommand=s}),c(),l(6,"small",55),g(7),m(8,"translate"),c()()}if(2&t){const
e=d(2);a(2),S(f(3,
3,"setupwizard.WOLCommand_label")),a(2),p("ngModel",e.database.WOLCommand),a(3),S(f(8,5,"setupwizard.WOLCommand_desc"))}}function
gK(t,i){1&t&&(l(0,"div"),k(1,"p-message",56),m(2,"translate"),c()),2&t&&(a(1),x("text",f(2,1,"setupwizard.connectedToDatabase")))}function
_K(t,i){1&t&&(l(0,"div",57,39),k(2,"p-message",58),m(3,"translate"),c()),2&t&&(a(2),x("text",f(3,1,"setupwizard.notConnectedToDatabase")))}const
cS=function(t){return{Name:t}};function
bK(t,i){if(1&t&&(l(0,"div"),k(1,"p-message",56),m(2,"translate"),c()),2&t){const
e=d(2);a(1),x("text",Dt(2,1,"setupwizard.dbsetup.havedb",U(4,cS,e.m_wizardData.Database.Name)))}}function
vK(t,i){if(1&t&&(l(0,"div",59,40),k(2,"p-message",60),m(3,"translate"),c()),2&t){const
e=d(2);a(2),x("text",Dt(3,1,"setupwizard.dbsetup.havenotdb",U(4,cS,e.m_wizardData.Database.Name)))}}const
CK=function(t){return{SchemaVersion:t}};function
yK(t,i){if(1&t&&(l(0,"div"),k(1,"p-message",61),m(2,"translate"),c()),2&t){const
e=d(2);a(1),x("text",Dt(2,1,"setu
pwizard.dbsetup.schemaver",U(4,CK,e.m_wizardData.DatabaseStatus.DatabaseStatus.SchemaVersion)))}}function
wK(t,i){1&t&&(l(0,"div",62,40),k(2,"p-message",63),m(3,"translate"),c()),2&t&&(a(2),x("text",f(3,1,"setupwizard.databaseSchemaUnknown")))}function
TK(t,i){if(1&t){const
e=I();l(0,"div")(1,"p"),g(2),m(3,"translate"),c(),l(4,"div",68)(5,"div",69),g(6,"
Sql Server Type:
"),c(),l(7,"div",70)(8,"p-radioButton",71),C("ngModelChange",function(s){return
v(e),d(3).dbtype=s})("ngModelChange",function(){return
v(e),d(3).setCommandList()}),c(),l(9,"label",72),g(10,"MySql"),c()(),l(11,"div",73)(12,"p-radioButton",74),C("ngModelChange",function(s){return
v(e),d(3).dbtype=s})("ngModelChange",function(){return
v(e),d(3).setCommandList()}),c(),l(13,"label",75),g(14,"MariaDB"),c()()(),l(15,"table",76)(16,"tr")(17,"td",65),g(18),c(),l(19,"td",66)(20,"button",67),C("click",function(){v(e);const
s=d(3);return
s.copyToclipboard(s.commandlist)}),m(21,"translate"),c()()()(),l(22,"p"),g(23),m(24,"transl
ate"),c(),l(25,"table")(26,"tr")(27,"td",65),g(28),c(),l(29,"td",66)(30,"button",67),C("click",function(){v(e);const
s=d(3);return
s.copyToclipboard(s.mySqlCommand)}),m(31,"translate"),c()()()()()}if(2&t){const
e=d(3);a(2),T(" ",f(3,8,"setupwizard.sqlinstructions"),"
"),a(6),p("ngModel",e.dbtype),a(4),p("ngModel",e.dbtype),a(6),T("
",e.commandlist,"
"),a(2),x("pTooltip",f(21,10,"settings.common.clipboard_tooltip")),a(3),S(f(24,12,"setupwizard.runcommand")),a(5),T("
",e.mySqlCommand,"
"),a(2),x("pTooltip",f(31,14,"settings.common.clipboard_tooltip"))}}function
SK(t,i){if(1&t){const
e=I();l(0,"div")(1,"h2"),g(2),m(3,"translate"),c(),_(4,TK,32,16,"div",13),l(5,"p",64),g(6),m(7,"translate"),c(),l(8,"table")(9,"tr")(10,"td",65),g(11),c(),l(12,"td",66)(13,"button",67),C("click",function(){v(e);const
s=d(2);return
s.copyToclipboard(s.tzCommand)}),m(14,"translate"),c()()()(),l(15,"p"),g(16),m(17,"translate"),c(),l(18,"p"),g(19),m(20,"translate"),c(),l(21,"p"),g(22),m(23,"translate"),c()()}i
f(2&t){const
e=d(2);a(2),S(f(3,8,"common.instructions")),a(2),p("ngIf",e.connectionFail),a(2),S(f(7,10,"setupwizard.tztables")),a(5),T("
",e.tzCommand,"
"),a(2),x("pTooltip",f(14,12,"settings.common.clipboard_tooltip")),a(3),T("",f(17,14,"setupwizard.ignoremessages"),"
"),a(3),S(f(20,16,"setupwizard.savethis")),a(3),S(f(23,18,"setupwizard.restartbe"))}}const
xK=function(t){return{"is-invalid":t}};function DK(t,i){if(1&t){const
e=I();l(0,"div",7)(1,"div",8)(2,"label",9),g(3),m(4,"translate"),c(),l(5,"input",10,11),C("ngModelChange",function(s){return
v(e),d().database.Host=s}),c(),l(7,"small",12),g(8),m(9,"translate"),c(),_(10,aK,4,3,"div",13),c(),l(11,"div",8)(12,"label",14),g(13),m(14,"translate"),c(),l(15,"input",15,16),C("ngModelChange",function(s){return
v(e),d().database.Port=s}),c(),l(17,"small",17),g(18),m(19,"translate"),c(),_(20,lK,4,3,"div",13),c(),l(21,"div",8)(22,"label",18),g(23),m(24,"translate"),c(),l(25,"input",19,20),C("ngModelChange",function(s){return
v(e),d().dat
abase.UserName=s}),c(),l(27,"small",21),g(28),m(29,"translate"),c(),_(30,cK,4,3,"div",13),c(),l(31,"div",8)(32,"label",22),g(33),m(34,"translate"),c(),l(35,"input",23,24),C("ngModelChange",function(s){return
v(e),d().database.Password=s}),c(),l(37,"small",25),g(38),m(39,"translate"),c(),_(40,uK,4,3,"div",13),c(),l(41,"div",8)(42,"label",26),g(43),m(44,"translate"),c(),l(45,"input",27,28),C("ngModelChange",function(s){return
v(e),d().database.Name=s}),c(),l(47,"small",29),g(48),m(49,"translate"),c(),_(50,dK,4,3,"div",13),c(),l(51,"div",30)(52,"p-checkbox",31),C("ngModelChange",function(s){return
v(e),d().database.LocalEnabled=s}),m(53,"translate"),c(),l(54,"small",32),g(55),m(56,"translate"),c()(),_(57,pK,9,7,"div",33),l(58,"div",30)(59,"p-checkbox",34),C("ngModelChange",function(s){return
v(e),d().database.WOLEnabled=s}),m(60,"translate"),c(),l(61,"small",32),g(62),m(63,"translate"),c()(),_(64,hK,8,12,"div",35),_(65,mK,8,12,"div",35),_(66,fK,9,7,"div",33),c(),l(67,"div")(68,"p-butto
n",36),C("click",function(){return
v(e),d().saveForm(!1)}),m(69,"translate"),c()(),l(70,"div",37),_(71,gK,3,3,"div",38),_(72,_K,4,3,"ng-template",null,39,we),_(74,bK,3,6,"div",38),_(75,vK,4,6,"ng-template",null,40,we),_(77,yK,3,6,"div",38),_(78,wK,4,3,"ng-template",null,41,we),c(),_(80,SK,24,20,"div",13)}if(2&t){const
e=F(6),n=F(16),s=F(26),r=F(36),o=F(46),u=F(73),h=F(76),b=F(79),y=d(),w=F(2);a(3),S(f(4,42,"setupwizard.MySQLServerIP")),a(2),p("ngModel",y.database.Host)("ngClass",U(72,xK,e.invalid)),a(3),S(f(9,44,"setupwizard.ipaddress_help")),a(2),p("ngIf",e.invalid&&(e.dirty||e.touched)),a(3),S(f(14,46,"setupwizard.MySQLServerPort")),a(2),p("ngModel",y.database.Port),a(3),S(f(19,48,"setupwizard.port_help")),a(2),p("ngIf",n.invalid&&(n.dirty||n.touched)),a(3),S(f(24,50,"setupwizard.MySQLUser")),a(2),p("ngModel",y.database.UserName),a(3),S(f(29,52,"setupwizard.user_help")),a(2),p("ngIf",s.invalid&&(s.dirty||s.touched)),a(3),S(f(34,54,"setupwizard.MySQLPassword")),a(2),p("ngModel",y.d
atabase.Password),a(3),S(f(39,56,"setupwizard.password_help")),a(2),p("ngIf",r.invalid&&(r.dirty||r.touched)),a(3),S(f(44,58,"setupwizard.MySQLDatabaseName")),a(2),p("ngModel",y.database.Name),a(3),S(f(49,60,"setupwizard.dbname_help")),a(2),p("ngIf",o.invalid&&(o.dirty||o.touched)),a(2),x("label",f(53,62,"setupwizard.LocalEnabled_label")),p("ngModel",y.database.LocalEnabled)("binary",!0),a(3),T("
",f(56,64,"setupwizard.LocalEnabled_desc"),"
"),a(2),p("ngIf",y.database.LocalEnabled),a(2),x("label",f(60,66,"setupwizard.WOLEnabled_label")),p("ngModel",y.database.WOLEnabled)("binary",!0),a(3),T("
",f(63,68,"setupwizard.WOLEnabled_desc"),"
"),a(2),p("ngIf",y.database.WOLEnabled),a(1),p("ngIf",y.database.WOLEnabled),a(1),p("ngIf",y.database.WOLEnabled),a(2),x("label",f(69,70,"setupwizard.testConnection")),p("disabled",null==w.invalid||w.invalid),a(3),p("ngIf",y.m_wizardData.DatabaseStatus.DatabaseStatus.Connected)("ngIfElse",u),a(3),p("ngIf",y.m_wizardData.DatabaseStatus.DatabaseStatus.Ha
veDatabase)("ngIfElse",h),a(3),p("ngIf",y.m_wizardData.DatabaseStatus.DatabaseStatus.Connected&&y.m_wizardData.DatabaseStatus.DatabaseStatus.HaveDatabase)("ngIfElse",b),a(3),p("ngIf",y.setupService.isDatabaseIgnored)}}function
MK(t,i){1&t&&(k(0,"p-message",83),m(1,"translate")),2&t&&x("text",f(1,1,"common.savesuccess"))}function
kK(t,i){1&t&&(k(0,"p-message",60),m(1,"translate")),2&t&&x("text",f(1,1,"common.networkfail"))}function
IK(t,i){1&t&&(k(0,"p-message",60),m(1,"translate")),2&t&&x("text",f(1,1,"setupwizard.connectionfail"))}function
EK(t,i){if(1&t){const
e=I();l(0,"div",77)(1,"div",78),_(2,MK,2,3,"p-message",79),_(3,kK,2,3,"p-message",80),_(4,IK,2,3,"p-message",80),c(),l(5,"p-button",81),C("onClick",function(){v(e);const
s=d(),r=F(2);return
s.saveForm(!0),r.form.markAsPristine()}),m(6,"translate"),c(),l(7,"p-button",82),C("onClick",function(){return
v(e),d().router.navigate(["setupwizard/selectlanguage"])}),m(8,"translate"),c()()}if(2&t){const
e=d(),n=F(2);a(2),p("ngIf",e.su
ccessCount>0&&e.successCount==e.expectedCount&&0==e.errorCount&&!n.dirty),a(1),p("ngIf",e.errorCount>0),a(1),p("ngIf",e.connectionFail),a(1),x("label",f(6,7,"common.save")),p("disabled",(!n.dirty||e.setupService.schedulingEnabled)&&!e.setupService.isDatabaseIgnored),a(2),x("label",f(8,9,"common.next")),p("disabled",e.setupService.isDatabaseIgnored)}}let
RK=(()=>{class
t{constructor(e,n,s,r,o,u,h,b){this.router=e,this.configService=n,this.mythService=s,this.wizardService=r,this.translate=o,this.messageService=u,this.setupService=h,this.clipboard=b,this.successCount=0,this.errorCount=0,this.expectedCount=2,this.connectionFail=!1,this.commandlist="",this.mySqlCommand="sudo
mysql -u root < setup.sql",this.tzCommand="mysql_tzinfo_to_sql
/usr/share/zoneinfo | sudo mysql -u root
mysql",this.dbtype="MySQL",this.msg_testconnection="setupwizard.testConnection",this.msg_connectionsuccess="setupwizard.connectionsuccess",this.msg_connectionfail="setupwizard.connectionfail",this.warningText="sett
ings.common.warning",this.saveObserver={next:y=>{y.bool?this.successCount++:(this.errorCount++,this.currentForm&&this.currentForm.form.markAsDirty())},error:y=>{console.error(y),this.errorCount++,this.currentForm&&this.currentForm.form.markAsDirty()}},this.translate.get(this.msg_testconnection).subscribe(y=>this.msg_testconnection=y),this.translate.get(this.msg_connectionsuccess).subscribe(y=>this.msg_connectionsuccess=y),this.translate.get(this.msg_connectionfail).subscribe(y=>this.msg_connectionfail=y),this.translate.get(this.warningText).subscribe(y=>this.warningText=y)}ngOnInit(){this.wizardService.initDatabaseStatus(),this.m_wizardData=this.wizardService.getWizardData(),this.database=Object.assign({},this.m_wizardData.Database),this.wizardService.dbPromise.then(()=>{this.database=Object.assign({},this.m_wizardData.Database)},()=>this.errorCount++)}copyToclipboard(e){this.clipboard.copy(e)}saveForm(e){this.successCount=0,this.errorCount=0,this.expectedCount=1,this.connectionFail
=!1;const
n={HostName:this.database.Host,UserName:this.database.UserName,Password:this.database.Password,DBName:this.database.Name,dbPort:this.database.Port};this.commandlist="",this.mythService.TestDBSettings(n).subscribe(s=>{s.bool?e?this.configService.SetDatabaseCredentials(this.database).subscribe(this.saveObserver):this.messageService.add({severity:"success",life:5e3,summary:this.msg_testconnection,detail:this.msg_connectionsuccess}):(this.messageService.add({severity:"error",life:5e3,summary:this.msg_testconnection,detail:this.msg_connectionfail}),this.connectionFail=!0,this.setCommandList())})}setCommandList(){let
e="";"MySQL"==this.dbtype&&(e="WITH
mysql_native_password"),this.commandlist=`CREATE DATABASE IF NOT EXISTS
${this.database.Name};\nCREATE USER IF NOT EXISTS
'${this.database.UserName}'@'localhost' IDENTIFIED ${e} by
'${this.database.Password}';\nCREATE USER IF NOT EXISTS
'${this.database.UserName}'@'%' IDENTIFIED ${e} by
'${this.database.Password}';\nGRANT ALL ON $
{this.database.Name}.* TO '${this.database.UserName}'@'localhost';\nGRANT
ALL ON ${this.database.Name}.* TO
'${this.database.UserName}'@'%';`}confirm(e){return
oe(window.confirm(e))}canDeactivate(){return!this.currentForm||!this.currentForm.dirty||this.confirm(this.warningText)}onWindowClose(e){this.currentForm&&this.currentForm.dirty&&(e.preventDefault(),e.returnValue=!1)}}return
t.\u0275fac=function(e){return
new(e||t)(D(It),D(zo),D(qt),D(xd),D(Oe),D(Gi),D(Me),D(lS))},t.\u0275cmp=z({type:t,selectors:[["app-dbsetup"]],viewQuery:function(e,n){if(1&e&&W(sK,5),2&e){let
s;V(s=B())&&(n.currentForm=s.first)}},hostBindings:function(e,n){1&e&&C("beforeunload",function(r){return
n.onWindowClose(r)},!1,ni)},features:[Pe([Gi])],decls:8,vars:0,consts:[["name","databaseForm",1,"mx-0","md:mx-3"],["databaseForm","ngForm"],[1,"m-0","md: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,"label","block"],["pInputText","","id","ipaddress","type","text","aria-describedby","ipaddress-help","name","hostname","placeholder","Ex.
127.0.0.1 or
localhost","required","",1,"mb-2","form-control","w-full",3,"ngModel","ngClass","ngModelChange"],["host","ngModel"],["id","ipaddress-help"],[4,"ngIf"],["for","port",1,"label","block"],["pInputText","","id","port","type","number","aria-describedby","port-help","name","port","placeholder","Ex.
3306","min","0","max","65536",1,"mb-2","form-control","w-full",3,"ngModel","ngModelChange"],["port","ngModel"],["id","port-help"],["for","user",1,"label","block"],["pInputText","","id","user","type","text","aria-describedby","user-help","name","user","placeholder","Ex.
mythtv","required","",1,"mb-2","form-control","w-full",3,"ngModel","ngModelChange"],["user","ngModel"],["id","user-help"],["for","password",1,"label","block"],["pInputText","","id","password","type","text","aria-describedby","password-help","name","password",
"placeholder","Ex.
mythtv","required","",1,"mb-2","form-control","w-full",3,"ngModel","ngModelChange"],["password","ngModel"],["id","password-help"],["for","dbname",1,"label","block"],["pInputText","","id","dbname","type","text","aria-describedby","dbname-help","name","dbname","placeholder","Ex.
mythconverg","required","",1,"mb-2","form-control","w-full",3,"ngModel","ngModelChange"],["dbname","ngModel"],["id","dbname-help"],[1,"field","col-12"],["name","LocalEnabled",1,"mb-2","w-full","label","block",3,"ngModel","binary","label","ngModelChange"],[1,"block"],["class","field
col-12",4,"ngIf"],["name","WOLEnabled",1,"mb-2","w-full","label","block",3,"ngModel","binary","label","ngModelChange"],["class","field
col-12
md:col-6",4,"ngIf"],["type","button",1,"mr-1","p-button-raised","p-button-secondary",3,"label","disabled","click"],[1,"pt-4",2,"display","flex"],[4,"ngIf","ngIfElse"],["notconnected",""],["nodatabase",""],["noschema",""],["id","address-help",1,"p-error","block"],[1,"p-error"
,"block"],["for","LocalHostName",1,"label","block"],["pInputText","","id","LocalHostName","type","text","aria-describedby","LocalHostName-help","name","LocalHostName",1,"mb-2","form-control","w-full",3,"ngModel","ngModelChange"],["LocalHostName","ngModel"],["id","LocalHostName-help"],["for","WOLReconnect",1,"label","block"],["name","WOLReconnect","id","WOLReconnect",3,"ngModel","min","max","step","useGrouping","showButtons","ngModelChange"],["for","WOLRetry",1,"label","block"],["name","WOLRetry","id","WOLRetry",3,"ngModel","min","max","step","useGrouping","showButtons","ngModelChange"],["for","WOLCommand",1,"label","block"],["pInputText","","id","WOLCommand","type","text","aria-describedby","WOLCommand-help","name","WOLCommand",1,"mb-2","form-control","w-full",3,"ngModel","ngModelChange"],["WOLCommand","ngModel"],["id","WOLCommand-help"],["severity","success",1,"pr-2",3,"text"],[1,"pr-2","notconnected"],["severity","error",1,"",3,"text"],[1,"pr-2","nodatabase"],["severity","error",3
,"text"],["severity","info",1,"pr-2",3,"text"],[1,"pr-2","noschema"],["severity","info",3,"text"],[1,""],[1,"align-items-center","bg-blue-100","text-gray-900",2,"font-family","monospace"],[1,"align-items-center"],["pButton","","pRipple","","type","button","icon","pi
pi-copy",1,"p-button-rounded","p-button-text",3,"pTooltip","click"],[1,"flex","pb-3"],[1,"flex-none","flex","align-items-center","label","block","pr-5"],[1,"flex-none","flex","align-items-center","pr-5"],["name","dbtype","value","MySQL","inputId","mysql",3,"ngModel","ngModelChange"],["for","mysql"],[1,"flex-none","flex","align-items-center"],["name","dbtype","value","MariaDB","inputId","mariadb",3,"ngModel","ngModelChange"],["for","mariadb"],[2,"white-space","pre-line"],[1,"grid","nogutter","m-5"],[1,"col-12"],["severity","success",3,"text",4,"ngIf"],["severity","error",3,"text",4,"ngIf"],["icon","pi
pi-save","iconPos","left",1,"col","pr-1",3,"label","disabled","onClick"],["icon","pi
pi-angle-right","iconPos","right",1,"
pr-3",3,"label","disabled","onClick"],["severity","success",3,"text"]],template:function(e,n){1&e&&(k(0,"p-toast"),l(1,"form",0,1)(3,"p-card",2),_(4,rK,2,3,"ng-template",3),_(5,oK,2,3,"ng-template",4),_(6,DK,81,74,"ng-template",5),_(7,EK,9,11,"ng-template",6),c()())},directives:[Td,ze,Ue,He,Ne,ne,Ye,ll,Te,_e,Le,Q,Du,xu,Su,sn,pt,ve,qe,Sd,On,bt,Kt],pipes:[ce],styles:[".is-invalid{border-color:red}@media
screen and (max-width:
48rem){.p-card-body,.p-card-content,.p-accordion-content{padding:0rem!important}}\n"],encapsulation:2}),t})();const
LK=["hostaddress"];function
OK(t,i){1&t&&(g(0),m(1,"translate")),2&t&&T("
",f(1,1,"settings.hostaddress.title")," ")}function
AK(t,i){1&t&&(g(0),m(1,"translate")),2&t&&T("
",f(1,1,"settings.hostaddress.subtitle")," ")}function
PK(t,i){1&t&&(l(0,"div")(1,"small",40),g(2),m(3,"translate"),c()()),2&t&&(a(2),S(f(3,1,"setupwizard.portRequired")))}function
FK(t,i){1&t&&(l(0,"div")(1,"small",40),g(2),m(3,"translate"),c()()),2&t&&(a(2),S(f(3,1,"setupwizard.
portRequired")))}function
NK(t,i){1&t&&(l(0,"div")(1,"small",40),g(2),m(3,"translate"),c()()),2&t&&(a(2),T("
",f(3,1,"settings.hostaddress.pin_reqd")," "))}function
VK(t,i){1&t&&(l(0,"div")(1,"small",52),g(2,"IPv4
address"),c()())}function
BK(t,i){1&t&&(l(0,"div")(1,"small",40),g(2,"IPv6
address"),c()())}function HK(t,i){if(1&t){const
e=I();l(0,"div")(1,"div",9)(2,"label",41),g(3),m(4,"translate"),c(),l(5,"p-dropdown",42,43),C("ngModelChange",function(s){return
v(e),d(2).m_HostAddressData.BackendServerIP=s}),c(),l(7,"small",44),g(8),m(9,"translate"),c(),_(10,VK,3,0,"div",14),c(),l(11,"div",9)(12,"label",45),g(13),m(14,"translate"),c(),l(15,"p-dropdown",46,47),C("ngModelChange",function(s){return
v(e),d(2).m_HostAddressData.BackendServerIP6=s}),c(),l(17,"small",48),g(18),m(19,"translate"),c(),_(20,BK,3,0,"div",14),c(),l(21,"div",9)(22,"p-checkbox",49,50),C("ngModelChange",function(s){return
v(e),d(2).m_HostAddressData.AllowLinkLocal=s}),m(24,"translate"),c(),l(25,"small",51),g(26),m(
27,"translate"),c()()()}if(2&t){const
e=F(6),n=F(16),s=d(2);a(3),S(f(4,14,"settings.hostaddress.ipv4_label")),a(2),p("options",s.m_IPsV4)("ngModel",s.m_HostAddressData.BackendServerIP),a(3),T("
",f(9,16,"settings.hostaddress.ipv4_desc"),"
"),a(2),p("ngIf",e.invalid&&(e.dirty||e.touched)),a(3),T("
",f(14,18,"settings.hostaddress.ipv6_label"),"
"),a(2),p("options",s.m_IPsV6)("ngModel",s.m_HostAddressData.BackendServerIP6),a(3),T("
",f(19,20,"settings.hostaddress.ipv6_desc"),"
"),a(2),p("ngIf",n.invalid&&(n.dirty||n.touched)),a(2),x("label",f(24,22,"settings.hostaddress.listenlinklocal_label")),p("ngModel",s.m_HostAddressData.AllowLinkLocal)("binary",!0),a(4),T("
",f(27,24,"settings.hostaddress.listenlinklocal_desc"),"
")}}function
qK(t,i){1&t&&(l(0,"div")(1,"small",40),g(2,"Primary
IP address / DNS name is required"),c()())}function
GK(t,i){1&t&&(l(0,"div")(1,"small",53),g(2),m(3,"translate"),c()()),2&t&&(a(2),T("
",f(3,1,"settings.hostaddress.ismaster_hint")," "))}function
UK(t,i){1&
t&&(l(0,"div")(1,"small",54),g(2,"Hostname of master
backend is required"),c()())}const
uS=function(t){return{"is-invalid":t}};function zK(t,i){if(1&t){const
e=I();l(0,"div",7)(1,"p-fieldset",8),m(2,"translate"),l(3,"div",9)(4,"label",10),g(5),m(6,"translate"),c(),l(7,"input",11,12),C("ngModelChange",function(s){return
v(e),d().m_HostAddressData.BackendServerPort=s}),c(),l(9,"small",13),g(10),m(11,"translate"),c(),_(12,PK,4,3,"div",14),c(),l(13,"div",9)(14,"label",15),g(15),m(16,"translate"),c(),l(17,"input",16,17),C("ngModelChange",function(s){return
v(e),d().m_HostAddressData.BackendStatusPort=s}),c(),l(19,"small",18),g(20),m(21,"translate"),c(),_(22,FK,4,3,"div",14),c()(),l(23,"p-fieldset",8),m(24,"translate"),l(25,"div",9)(26,"label",19),g(27),m(28,"translate"),c(),l(29,"input",20,21),C("ngModelChange",function(s){return
v(e),d().m_HostAddressData.SecurityPin=s}),c(),l(31,"small",22),g(32),m(33,"translate"),c(),_(34,NK,4,3,"div",14),c()(),l(35,"p-fieldset",8),m(36,"translate"),l
(37,"div",9)(38,"p-checkbox",23,24),C("ngModelChange",function(s){return
v(e),d().m_HostAddressData.AllowConnFromAll=s}),m(40,"translate"),c(),l(41,"small",22),k(42,"div",25),m(43,"translate"),c()()(),l(44,"p-fieldset",8),m(45,"translate"),l(46,"div",9)(47,"p-checkbox",26,27),C("ngModelChange",function(s){return
v(e),d().m_HostAddressData.ListenOnAllIps=s}),m(49,"translate"),c(),l(50,"small",28),g(51),m(52,"translate"),c()(),_(53,HK,28,26,"div",14),c(),l(54,"p-fieldset",8),m(55,"translate"),l(56,"div",9)(57,"div",9)(58,"label",29),g(59),m(60,"translate"),c(),l(61,"p-dropdown",30,31),C("ngModelChange",function(s){return
v(e),d().m_HostAddressData.BackendServerAddr=s}),c(),l(63,"small",32),g(64),m(65,"translate"),c()(),_(66,qK,3,0,"div",14),c()(),l(67,"p-fieldset",8),m(68,"translate"),l(69,"div",9)(70,"p-checkbox",33,34),C("ngModelChange",function(s){return
v(e),d().m_HostAddressData.IsMasterBackend=s})("onChange",function(){return
v(e),d().setMaster()}),m(72,"translate"),c(),l(73,"sm
all",35),g(74),m(75,"translate"),c(),_(76,GK,4,3,"div",14),c(),l(77,"div",9)(78,"label",36),g(79),m(80,"translate"),c(),l(81,"input",37,38),C("ngModelChange",function(s){return
v(e),d().m_HostAddressData.MasterServerName=s}),c(),l(83,"small",39),k(84,"div",25),m(85,"translate"),c(),_(86,UK,3,0,"div",14),c()()()}if(2&t){const
e=F(8),n=F(18),s=F(30),r=F(62),o=F(82),u=d();a(1),x("legend",f(2,44,"settings.hostaddress.panel.ports")),a(4),T("
",f(6,46,"settings.hostaddress.backendport_label"),"
"),a(2),p("ngModel",u.m_HostAddressData.BackendServerPort)("ngClass",U(88,uS,e.invalid)),a(3),T("
",f(11,48,"settings.hostaddress.backendport_desc"),"
"),a(2),p("ngIf",e.invalid&&(e.dirty||e.touched)),a(3),T("
",f(16,50,"settings.hostaddress.statusport_label"),"
"),a(2),p("ngModel",u.m_HostAddressData.BackendStatusPort)("ngClass",U(90,uS,n.invalid)),a(3),S(f(21,52,"settings.hostaddress.statusport_desc")),a(2),p("ngIf",n.invalid&&(n.dirty||n.touched)),a(1),x("legend",f(24,54,"settings.hostaddress.pa
nel.pin")),a(4),T("
",f(28,56,"settings.hostaddress.pin_label"),"
"),a(2),p("ngModel",u.m_HostAddressData.SecurityPin),a(3),T("
",f(33,58,"settings.hostaddress.pin_desc"),"
"),a(2),p("ngIf",s.invalid&&(s.dirty||s.touched)),a(1),x("legend",f(36,60,"settings.hostaddress.panel.allowconn")),a(3),x("label",f(40,62,"settings.hostaddress.allowconn_label")),p("ngModel",u.m_HostAddressData.AllowConnFromAll)("binary",!0),a(4),p("innerHTML",f(43,64,"settings.hostaddress.allowconn_desc"),Bt),a(2),x("legend",f(45,66,"settings.hostaddress.panel.iplisten")),a(3),x("label",f(49,68,"settings.hostaddress.listenall_label")),p("ngModel",u.m_HostAddressData.ListenOnAllIps)("binary",!0),a(4),T("
",f(52,70,"settings.hostaddress.listenall_desc"),"
"),a(2),p("ngIf",!u.m_HostAddressData.ListenOnAllIps),a(1),x("legend",f(55,72,"settings.hostaddress.panel.primaryadd")),a(5),T("
",f(60,74,"settings.hostaddress.primaryip_label"),"
"),a(2),p("options",u.m_IPsAll)("ngModel",u.m_HostAddressData.BackendServerAddr)("
editable",!0),a(3),T("
",f(65,76,"settings.hostaddress.primaryip_desc"),"
"),a(2),p("ngIf",r.invalid&&(r.dirty||r.touched)),a(1),x("legend",f(68,78,"settings.hostaddress.panel.masterbe")),a(3),x("label",f(72,80,"settings.hostaddress.ismaster_label")),p("ngModel",u.m_HostAddressData.IsMasterBackend)("binary",!0),a(4),T("
",f(75,82,"settings.hostaddress.ismaster_desc"),"
"),a(2),p("ngIf",u.m_showChangeHint),a(3),S(f(80,84,"settings.hostaddress.master_label")),a(2),p("ngModel",u.m_HostAddressData.MasterServerName),a(3),p("innerHTML",f(85,86,"settings.hostaddress.master_desc"),Bt),a(2),p("ngIf",o.invalid&&(o.dirty||o.touched))}}function
jK(t,i){1&t&&(k(0,"p-message",60),m(1,"translate")),2&t&&x("text",f(1,1,"common.savesuccess"))}function
$K(t,i){1&t&&(k(0,"p-message",61),m(1,"translate")),2&t&&x("text",f(1,1,"common.networkfail"))}function
WK(t,i){if(1&t){const
e=I();l(0,"div",55)(1,"div",56),_(2,jK,2,3,"p-message",57),_(3,$K,2,3,"p-message",58),c(),l(4,"p-button",59),C("onClick",funct
ion(){v(e);const s=d(),r=F(1);return
s.saveForm(),r.form.markAsPristine()}),m(5,"translate"),c()()}if(2&t){const
e=d(),n=F(1);a(2),p("ngIf",e.m_HostAddressData.successCount>0&&0==e.m_HostAddressData.errorCount&&!n.dirty),a(1),p("ngIf",e.m_HostAddressData.errorCount>0),a(1),x("label",f(5,4,"common.save")),p("disabled",!n.dirty||e.setupService.schedulingEnabled)}}let
KK=(()=>{class
t{constructor(e,n){this.setupService=e,this.configService=n,this.m_IsMasterBackend=!1,this.m_showChangeHint=!1,this.m_HostAddressData=this.setupService.getHostAddressData(),setTimeout(()=>n.GetIPAddresses("All").subscribe(s=>this.m_IPsAll=s.IPAddresses),500),n.GetIPAddresses("IPv4").subscribe(s=>this.m_IPsV4=s.IPAddresses),n.GetIPAddresses("IPv6").subscribe(s=>this.m_IPsV6=s.IPAddresses)}ngOnInit(){}ngAfterViewInit(){this.setupService.setCurrentForm(this.currentForm)}setMaster(){void
0===this.m_savedMaster&&(this.m_savedMaster=this.m_HostAddressData.MasterServerName),this.m_HostAddressData.IsMasterBackend?(
this.m_HostAddressData.MasterServerName=this.m_HostAddressData.thisHostName,this.m_showChangeHint=!1):this.m_HostAddressData.MasterServerName==this.m_savedMaster?this.m_showChangeHint=!0:this.m_HostAddressData.MasterServerName=this.m_savedMaster}saveForm(){console.log("save
form clicked"),this.setupService.saveHostAddressData(this.currentForm)}}return
t.\u0275fac=function(e){return
new(e||t)(D(Me),D(zo))},t.\u0275cmp=z({type:t,selectors:[["app-host-address"]],viewQuery:function(e,n){if(1&e&&W(LK,5),2&e){let
s;V(s=B())&&(n.currentForm=s.first)}},decls:7,vars:0,consts:[["name","hostaddress",1,"mx-0","md:mx-3"],["hostaddress","ngForm"],[1,"m-0","md:m-5"],["pTemplate","title"],["pTemplate","subtitle"],["pTemplate","content"],["pTemplate","footer"],[1,"grid"],[1,"mb-4","w-full",3,"legend"],[1,"form-group","field"],["for","backendserverport",1,"label","block"],["pInputText","","id","backendserverport","type","number","name","backendserverport","placeholder","Ex.
6543","required","","min",
"0","max","65536",1,"mb-2","form-control","w-10rem",3,"ngModel","ngClass","ngModelChange"],["backendserverport","ngModel"],["id","backendserverport-help",1,"block"],[4,"ngIf"],["for","backendstatusport",1,"label","block"],["pInputText","","id","backendstatusport","type","number","name","backendstatusport","placeholder","Ex.
6544","required","","min","0","max","65536",1,"mb-2","form-control","w-10rem",3,"ngModel","ngClass","ngModelChange"],["backendstatusport","ngModel"],["id","backendstatusport-help",1,"block"],["for","securitypin",1,"label","block"],["pInputText","","id","securitypin","type","text","name","securitypin","placeholder","Ex.
1234","required","",1,"mb-2","form-control","w-10rem",3,"ngModel","ngModelChange"],["securitypin","ngModel"],["id","securitypin-help",1,"block"],["inputId","AllowConnFromAll","name","AllowConnFromAll",1,"mb-2","w-full",3,"ngModel","binary","label","ngModelChange"],["AllowConnFromAll","ngModel"],[3,"innerHTML"],["inputId","ListenOnAllIps","name","Li
stenOnAllIps",1,"mb-2","w-full",3,"ngModel","binary","label","ngModelChange"],["ListenOnAllIps","ngModel"],["id","ListenOnAllIps-help",1,"block"],["for","BackendServerAddr",1,"label","block","w-full"],["name","BackendServerAddr","aria-describedby","BackendServerAddr-help",1,"block","mb-2","w-full",3,"options","ngModel","editable","ngModelChange"],["BackendServerAddr","ngModel"],["id","BackendServerAddr-help",1,"block","w-full"],["inputId","IsMasterBackend","name","IsMasterBackend",1,"mb-2","w-full",3,"ngModel","binary","label","ngModelChange","onChange"],["IsMasterBackend","ngModel"],["id","IsMasterBackend-help",1,"block"],["for","MasterServerName",1,"label","block"],["pInputText","","id","MasterServerName","type","text","name","MasterServerName","placeholder","Ex.
masterbe","disabled","disabled",1,"mb-2","form-control","w-15rem","read-only",3,"ngModel","ngModelChange"],["MasterServerName","ngModel"],["id","MasterServerName-help",1,"block"],[1,"p-error","block"],["for","BackendServe
rIP",1,"label","block"],["name","BackendServerIP","aria-describedby","BackendServerIP-help",1,"block","w-15rem","mb-2",3,"options","ngModel","ngModelChange"],["BackendServerIP","ngModel"],["id","BackendServerIP-help",1,"block"],["for","BackendServerIP6",1,"label","block"],["name","BackendServerIP6","aria-describedby","BackendServerIP6-help",1,"block","w-15rem","mb-2",3,"options","ngModel","ngModelChange"],["BackendServerIP6","ngModel"],["id","BackendServerIP6-help",1,"block"],["inputId","AllowLinkLocal","name","AllowLinkLocal",1,"mb-2","w-full",3,"ngModel","binary","label","ngModelChange"],["AllowLinkLocal","ngModel"],["id","AllowLinkLocal-help",1,"block"],["id","LocalServerIP-help",1,"p-error","block"],["id","IsMasterBackend-help",1,"p-error","block"],["id","MasterServerName-help",1,"p-error","block"],[1,"grid","nogutter"],[1,"col-12"],["severity","success",3,"text",4,"ngIf"],["severity","error",3,"text",4,"ngIf"],["icon","pi
pi-save","iconPos","left",1,"col","pr-1",3,"label","disa
bled","onClick"],["severity","success",3,"text"],["severity","error",3,"text"]],template:function(e,n){1&e&&(l(0,"form",0,1)(2,"p-card",2),_(3,OK,2,3,"ng-template",3),_(4,AK,2,3,"ng-template",4),_(5,zK,87,92,"ng-template",5),_(6,WK,6,6,"ng-template",6),c()())},directives:[ze,Ue,He,Ne,ne,Ui,Du,xu,Su,Ye,ll,Te,_e,Le,Q,sn,Ot,qe,ve],pipes:[ce],styles:["[_nghost-%COMP%]
.p-dropdown{width:18rem}.read-only[_ngcontent-%COMP%]{opacity:1;background-color:#e0e0e0;border-style:solid;height:2rem}"]}),t})();const
QK=["locale"];function
JK(t,i){1&t&&(g(0),m(1,"translate")),2&t&&T("
",f(1,1,"settings.locale.title")," ")}function
YK(t,i){1&t&&(g(0),m(1,"translate")),2&t&&T("
",f(1,1,"settings.locale.subtitle")," ")}function
ZK(t,i){if(1&t){const
e=I();l(0,"div",7)(1,"p-fieldset",8),m(2,"translate"),l(3,"div",9)(4,"label",10),g(5,"TV
Format"),c(),l(6,"p-dropdown",11),C("ngModelChange",function(s){return
v(e),d().TVFormat=s}),c(),l(7,"small",12),g(8),m(9,"translate"),c()(),l(10,"div",9)(11,"label",
13),g(12),m(13,"translate"),c(),l(14,"p-dropdown",14),C("ngModelChange",function(s){return
v(e),d().VbiFormat=s}),c(),l(15,"small",15),g(16),m(17,"translate"),c()()(),l(18,"p-fieldset",8),m(19,"translate"),l(20,"div",9)(21,"label",16),g(22),m(23,"translate"),c(),l(24,"p-dropdown",17),C("ngModelChange",function(s){return
v(e),d().FreqTable=s}),c(),l(25,"small",18),g(26),m(27,"translate"),c()()()()}if(2&t){const
e=d();a(1),x("legend",f(2,13,"settings.locale.tvformat_label")),a(5),p("options",e.m_TVFormats)("ngModel",e.TVFormat),a(2),T("
",f(9,15,"settings.locale.tvformat_desc"),"
"),a(4),S(f(13,17,"settings.locale.vbiformat_label")),a(2),p("options",e.m_vbiFormats)("ngModel",e.VbiFormat),a(2),T("
",f(17,19,"settings.locale.vbiformat_desc"),"
"),a(2),x("legend",f(19,21,"settings.locale.freqtable_label")),a(4),S(f(23,23,"settings.locale.channfreq_label")),a(2),p("options",e.m_FreqTables)("ngModel",e.FreqTable),a(2),T("
",f(27,25,"settings.locale.channfreq_desc")," ")}}function
XK(t,i){1
&t&&(k(0,"p-message",24),m(1,"translate")),2&t&&x("text",f(1,1,"common.savesuccess"))}function
eQ(t,i){1&t&&(k(0,"p-message",25),m(1,"translate")),2&t&&x("text",f(1,1,"common.networkfail"))}function
tQ(t,i){if(1&t){const
e=I();l(0,"div",19)(1,"div",20),_(2,XK,2,3,"p-message",21),_(3,eQ,2,3,"p-message",22),c(),l(4,"p-button",23),C("onClick",function(){v(e);const
s=d(),r=F(1);return
s.saveForm(),r.form.markAsPristine()}),m(5,"translate"),c()()}if(2&t){const
e=d(),n=F(1);a(2),p("ngIf",e.successCount>0&&0==e.errorCount&&!n.dirty),a(1),p("ngIf",e.errorCount>0),a(1),x("label",f(5,4,"common.save")),p("disabled",!n.dirty||e.setupService.schedulingEnabled)}}const
nQ=function(){return{width:"100%"}};let iQ=(()=>{class
t{constructor(e,n){this.setupService=e,this.mythService=n,this.successCount=0,this.errorCount=0,this.TVFormat="PAL",this.VbiFormat="None",this.FreqTable="us-bcast",this.LocaleObs={next:s=>{s.bool?this.successCount++:(this.errorCount++,this.currentForm&&this.currentForm.form.mark
AsDirty())},error:s=>{console.error(s),this.errorCount++,this.currentForm&&this.currentForm.form.markAsDirty()}},this.m_TVFormats=["NTSC","NTSC-JP","PAL","PAL-60","PAL-BG","PAL-DK","PAL-D","PAL-I","PAL-M","PAL-N","PAL-NC","SECAM","SECAM-D","DECAM-DK"],this.m_vbiFormats=["None","PAL
teletext","NTSC closed
caption"],this.m_FreqTables=["us-bcast","us-cable","us-cable-hrc","us-cable-irc","japan-bcast","japan-cable","europe-west","europe-east","italy","newzealand","australia","ireland","france","china-bcast","southafrica","argentina","australia-optus","singapore","malaysia","israel-hot-matav","try-all"],this.getLocaleData()}getLocaleData(){this.mythService.GetSetting({HostName:"_GLOBAL_",Key:"TVFormat"}).subscribe({next:e=>this.TVFormat=e.String,error:()=>this.errorCount++}),this.mythService.GetSetting({HostName:"_GLOBAL_",Key:"VbiFormat"}).subscribe({next:e=>this.VbiFormat=e.String,error:()=>this.errorCount++}),this.mythService.GetSetting({HostName:"_GLOBAL_",Key:"FreqTable"}).subscribe
({next:e=>this.FreqTable=e.String,error:()=>this.errorCount++})}ngOnInit(){}ngAfterViewInit(){this.setupService.setCurrentForm(this.currentForm)}saveForm(){this.successCount=0,this.errorCount=0,this.mythService.PutSetting({HostName:"_GLOBAL_",Key:"TVFormat",Value:this.TVFormat}).subscribe(this.LocaleObs),this.mythService.PutSetting({HostName:"_GLOBAL_",Key:"VbiFormat",Value:this.VbiFormat}).subscribe(this.LocaleObs),this.mythService.PutSetting({HostName:"_GLOBAL_",Key:"FreqTable",Value:this.FreqTable}).subscribe(this.LocaleObs)}}return
t.\u0275fac=function(e){return
new(e||t)(D(Me),D(qt))},t.\u0275cmp=z({type:t,selectors:[["app-locale"]],viewQuery:function(e,n){if(1&e&&W(QK,5),2&e){let
s;V(s=B())&&(n.currentForm=s.first)}},decls:7,vars:3,consts:[["name","locale",1,"ml-3","mr-3",3,"ngSubmit"],["locale","ngForm"],[1,"m-5"],["pTemplate","title"],["pTemplate","subtitle"],["pTemplate","TV
Formats"],["pTemplate","footer"],[1,"grid"],[1,"mb-4","w-full",3,"legend"],[1,"form-group","field"],
["for","tvformat",1,"label","block"],["name","tvformat","aria-describedby","tvformat-help",1,"w-full","mb-2",3,"options","ngModel","ngModelChange"],["id","tvformat-help",1,"block","mt-2"],["for","vbiformat",1,"label","block"],["name","vbiformat","aria-describedby","vbiformat-help",1,"mb-5","w-full",3,"options","ngModel","ngModelChange"],["id","vbiformat-help",1,"block","mt-2"],["for","freqtable",1,"label","block"],["name","freqtable",1,"mb-2","w-full",3,"options","ngModel","ngModelChange"],["id","freqtable-help",1,"block","pt-2"],[1,"grid","nogutter"],[1,"col-12"],["severity","success",3,"text",4,"ngIf"],["severity","error",3,"text",4,"ngIf"],["icon","pi
pi-save","iconPos","left",1,"col","pr-1",3,"label","disabled","onClick"],["severity","success",3,"text"],["severity","error",3,"text"]],template:function(e,n){1&e&&(l(0,"form",0,1),C("ngSubmit",function(){return
n.saveForm()}),l(2,"p-card",2),_(3,JK,2,3,"ng-template",3),_(4,YK,2,3,"ng-template",4),_(5,ZK,28,27,"ng-template",5),_(6,t
Q,6,6,"ng-template",6),c()()),2&e&&(a(2),q(A(2,nQ)))},directives:[ze,Ue,He,Ne,ne,Ui,Ot,Te,_e,Q,qe,ve],pipes:[ce],styles:["[_nghost-%COMP%]
.p-dropdown{width:18rem}"]}),t})();const sQ=["miscsettings"];function
rQ(t,i){1&t&&(g(0),m(1,"translate")),2&t&&T("
",f(1,1,"settings.misc.title")," ")}function
oQ(t,i){1&t&&(g(0),m(1,"translate")),2&t&&T("
",f(1,1,"settings.misc.subtitle")," ")}function
aQ(t,i){if(1&t){const
e=I();l(0,"div",7)(1,"p-fieldset",8),m(2,"translate"),l(3,"div",9)(4,"p-checkbox",10),C("ngModelChange",function(s){return
v(e),d().MasterBackendOverride=s}),m(5,"translate"),c(),l(6,"small",11),g(7),m(8,"translate"),c()(),l(9,"div",9)(10,"p-checkbox",12),C("ngModelChange",function(s){return
v(e),d().DeletesFollowLinks=s}),m(11,"translate"),c(),l(12,"small",11),g(13),m(14,"translate"),c()(),l(15,"div",9)(16,"p-checkbox",13),C("ngModelChange",function(s){return
v(e),d().TruncateDeletesSlowly=s}),m(17,"translate"),c(),l(18,"small",11),g(19),m(20,"translate"),c()(),l(21,"di
v",9)(22,"label",14),g(23),m(24,"translate"),c(),l(25,"p-inputNumber",15),C("ngModelChange",function(s){return
v(e),d().HDRingbufferSize=s}),c(),l(26,"small",11),g(27),m(28,"translate"),c()(),l(29,"div",9)(30,"label",16),g(31),m(32,"translate"),c(),l(33,"p-dropdown",17),C("ngModelChange",function(s){return
v(e),d().StorageScheduler=s}),c(),l(34,"small",11),g(35),m(36,"translate"),c()()(),l(37,"p-fieldset",8),m(38,"translate"),l(39,"div",9)(40,"label",18),g(41),m(42,"translate"),c(),l(43,"p-dropdown",19),C("ngModelChange",function(s){return
v(e),d().UPNPWmpSource=s}),c(),l(44,"small",11),g(45),m(46,"translate"),c()()(),l(47,"div",20)(48,"div",9)(49,"label",21),g(50),m(51,"translate"),c(),l(52,"input",22),C("ngModelChange",function(s){return
v(e),d().MiscStatusScript=s}),c(),l(53,"small",11),g(54),m(55,"translate"),l(56,"a",23),g(57,"Miscellaneous
Status
Information"),c()()(),l(58,"div",9)(59,"p-checkbox",24),C("ngModelChange",function(s){return
v(e),d().DisableAutomaticBackup=s}),m(6
0,"translate"),c(),l(61,"small",11),g(62),m(63,"translate"),c()(),l(64,"div",9)(65,"p-checkbox",25),C("ngModelChange",function(s){return
v(e),d().DisableFirewireReset=s}),m(66,"translate"),c(),l(67,"small",11),g(68),m(69,"translate"),c()()()()}if(2&t){const
e=d();a(1),x("legend",f(2,44,"settings.misc.panel_filemgmt")),p("toggleable",!0)("collapsed",!0),a(3),x("label",f(5,46,"settings.misc.mbo_label")),p("ngModel",e.MasterBackendOverride)("binary",!0),a(3),T("
",f(8,48,"settings.misc.mbo_desc"),"
"),a(3),x("label",f(11,50,"settings.misc.follow_label")),p("ngModel",e.DeletesFollowLinks)("binary",!0),a(3),T("
",f(14,52,"settings.misc.follow_desc"),"
"),a(3),x("label",f(17,54,"settings.misc.slowly_label")),p("ngModel",e.TruncateDeletesSlowly)("binary",!0),a(3),T("
",f(20,56,"settings.misc.slowly_desc"),"
"),a(4),S(f(24,58,"settings.misc.ringbuf_label")),a(2),p("ngModel",e.HDRingbufferSize)("showButtons",!0)("min",4700)("max",94e3)("step",4700),a(2),T("
",f(28,60,"settings.misc.ringbuf_d
esc"),"
"),a(4),S(f(32,62,"settings.misc.sg_label")),a(2),p("options",e.soptions)("ngModel",e.StorageScheduler),a(2),T("
",f(36,64,"settings.misc.sg_desc"),"
"),a(2),x("legend",f(38,66,"settings.misc.panel_upnp")),p("toggleable",!0)("collapsed",!0),a(4),S(f(42,68,"settings.misc.upnp_label")),a(2),p("options",e.uoptions)("ngModel",e.UPNPWmpSource),a(2),T("
",f(46,70,"settings.misc.upnp_desc"),"
"),a(5),S(f(51,72,"settings.misc.statapp_label")),a(2),p("ngModel",e.MiscStatusScript),a(2),T("
",f(55,74,"settings.misc.statapp_desc"),"
"),a(5),x("label",f(60,76,"settings.misc.disback_label")),p("ngModel",e.DisableAutomaticBackup)("binary",!0),a(3),T("
",f(63,78,"settings.misc.disback_desc"),"
"),a(3),x("label",f(66,80,"settings.misc.disfwr_label")),p("ngModel",e.DisableFirewireReset)("binary",!0),a(3),T("
",f(69,82,"settings.misc.disfwr_desc")," ")}}function
lQ(t,i){1&t&&(k(0,"p-message",31),m(1,"translate")),2&t&&x("text",f(1,1,"common.savesuccess"))}function
cQ(t,i){1&t&&(k(0,"p-message"
,32),m(1,"translate")),2&t&&x("text",f(1,1,"common.networkfail"))}function
uQ(t,i){if(1&t){const
e=I();l(0,"div",26)(1,"div",27),_(2,lQ,2,3,"p-message",28),_(3,cQ,2,3,"p-message",29),c(),l(4,"p-button",30),C("onClick",function(){v(e);const
s=d(),r=F(1);return
s.saveForm(),r.form.markAsPristine()}),m(5,"translate"),c()()}if(2&t){const
e=d(),n=F(1);a(2),p("ngIf",e.successCount>0&&0==e.errorCount&&!n.dirty),a(1),p("ngIf",e.errorCount>0&&!n.dirty),a(1),x("label",f(5,4,"common.save")),p("disabled",!n.dirty||e.setupService.schedulingEnabled)}}let
dQ=(()=>{class
t{constructor(e,n,s){this.setupService=e,this.translate=n,this.mythService=s,this.successCount=0,this.errorCount=0,this.MasterBackendOverride=!1,this.DeletesFollowLinks=!1,this.TruncateDeletesSlowly=!1,this.HDRingbufferSize=9400,this.StorageScheduler="BalancedFreeSpace",this.UPNPWmpSource="0",this.MiscStatusScript="",this.DisableAutomaticBackup=!1,this.DisableFirewireReset=!1,this.hostName="",this.soptions=[{name:"settings.misc.sg_
balfree",code:"BalancedFreeSpace"},{name:"settings.misc.sg_balpercent",code:"BalancedPercFreeSpace"},{name:"settings.misc.bal_io",code:"BalancedDiskIO"},{name:"settings.misc.sg_combination",code:"Combination"}],this.uoptions=[{name:"settings.misc.upnp_recs",code:"0"},{name:"settings.misc.upnp_videos",code:"1"}],this.miscObserver={next:r=>{r.bool?this.successCount++:(this.errorCount++,this.currentForm&&this.currentForm.form.markAsDirty())},error:r=>{console.error(r),this.errorCount++,this.currentForm&&this.currentForm.form.markAsDirty()}},n.get(this.soptions[0].name).subscribe(r=>this.soptions[0].name=r),n.get(this.soptions[1].name).subscribe(r=>this.soptions[1].name=r),n.get(this.soptions[2].name).subscribe(r=>this.soptions[2].name=r),n.get(this.soptions[3].name).subscribe(r=>this.soptions[3].name=r),n.get(this.uoptions[0].name).subscribe(r=>this.uoptions[0].name=r),n.get(this.uoptions[1].name).subscribe(r=>this.uoptions[1].name=r),this.mythService.GetHostName().subscribe({next:r=>{
this.hostName=r.String,this.getMiscellaneousData()},error:()=>this.errorCount++})}getMiscellaneousData(){this.mythService.GetSetting({HostName:"_GLOBAL_",Key:"MasterBackendOverride",Default:"0"}).subscribe({next:e=>this.MasterBackendOverride="1"==e.String,error:()=>this.errorCount++}),this.mythService.GetSetting({HostName:"_GLOBAL_",Key:"DeletesFollowLinks",Default:"0"}).subscribe({next:e=>this.DeletesFollowLinks="1"==e.String,error:()=>this.errorCount++}),this.mythService.GetSetting({HostName:this.hostName,Key:"TruncateDeletesSlowly",Default:"0"}).subscribe({next:e=>this.TruncateDeletesSlowly="1"==e.String,error:()=>this.errorCount++}),this.mythService.GetSetting({HostName:"_GLOBAL_",Key:"HDRingbufferSize",Default:"9400"}).subscribe({next:e=>this.HDRingbufferSize=Number(e.String),error:()=>this.errorCount++}),this.mythService.GetSetting({HostName:"_GLOBAL_",Key:"StorageScheduler",Default:"BalancedFreeSpace"}).subscribe({next:e=>this.StorageScheduler=e.String,error:()=>this.errorCou
nt++}),this.mythService.GetSetting({HostName:"_GLOBAL_",Key:"UPNPWmpSource",Default:"0"}).subscribe({next:e=>this.UPNPWmpSource=e.String,error:()=>this.errorCount++}),this.mythService.GetSetting({HostName:this.hostName,Key:"MiscStatusScript",Default:""}).subscribe({next:e=>this.MiscStatusScript=e.String,error:()=>this.errorCount++}),this.mythService.GetSetting({HostName:"_GLOBAL_",Key:"DisableAutomaticBackup",Default:"0"}).subscribe({next:e=>this.DisableAutomaticBackup="1"==e.String,error:()=>this.errorCount++}),this.mythService.GetSetting({HostName:this.hostName,Key:"DisableFirewireReset",Default:"0"}).subscribe({next:e=>this.DisableFirewireReset="1"==e.String,error:()=>this.errorCount++})}ngOnInit(){}ngAfterViewInit(){this.setupService.setCurrentForm(this.currentForm)}saveForm(){this.successCount=0,this.errorCount=0,this.mythService.PutSetting({HostName:"_GLOBAL_",Key:"MasterBackendOverride",Value:this.MasterBackendOverride?"1":"0"}).subscribe(this.miscObserver),this.mythService.P
utSetting({HostName:"_GLOBAL_",Key:"DeletesFollowLinks",Value:this.DeletesFollowLinks?"1":"0"}).subscribe(this.miscObserver),this.mythService.PutSetting({HostName:this.hostName,Key:"TruncateDeletesSlowly",Value:this.TruncateDeletesSlowly?"1":"0"}).subscribe(this.miscObserver),this.mythService.PutSetting({HostName:"_GLOBAL_",Key:"HDRingbufferSize",Value:String(this.HDRingbufferSize)}).subscribe(this.miscObserver),this.mythService.PutSetting({HostName:"_GLOBAL_",Key:"StorageScheduler",Value:this.StorageScheduler}).subscribe(this.miscObserver),this.mythService.PutSetting({HostName:"_GLOBAL_",Key:"UPNPWmpSource",Value:this.UPNPWmpSource}).subscribe(this.miscObserver),this.mythService.PutSetting({HostName:this.hostName,Key:"MiscStatusScript",Value:this.MiscStatusScript}).subscribe(this.miscObserver),this.mythService.PutSetting({HostName:"_GLOBAL_",Key:"DisableAutomaticBackup",Value:this.DisableAutomaticBackup?"1":"0"}).subscribe(this.miscObserver),this.mythService.PutSetting({HostName:th
is.hostName,Key:"DisableFirewireReset",Value:this.DisableFirewireReset?"1":"0"}).subscribe(this.miscObserver)}}return
t.\u0275fac=function(e){return
new(e||t)(D(Me),D(Oe),D(qt))},t.\u0275cmp=z({type:t,selectors:[["app-misc-settings"]],viewQuery:function(e,n){if(1&e&&W(sQ,5),2&e){let
s;V(s=B())&&(n.currentForm=s.first)}},decls:7,vars:0,consts:[["name","miscsettings",1,"ml-3","mr-3"],["miscsettings","ngForm"],[1,"m-5"],["pTemplate","title"],["pTemplate","subtitle"],["pTemplate","content"],["pTemplate","footer"],[1,"grid"],[1,"mb-4","w-full",3,"legend","toggleable","collapsed"],[1,"form-group","field"],["name","MasterBackendOverride",1,"mb-2","w-full","label",3,"ngModel","binary","label","ngModelChange"],[1,"block"],["name","DeletesFollowLinks",1,"mb-2","w-full","label",3,"ngModel","binary","label","ngModelChange"],["name","TruncateDeletesSlowly",1,"mb-2","w-full","label",3,"ngModel","binary","label","ngModelChange"],["for","HDRingbufferSize",1,"label","block"],["name","HDRingbufferSiz
e","id","HDRingbufferSize",3,"ngModel"...
t",4,"ngIf"],["severity","error",3,"text",4,"ngIf"],["icon","pi
pi-save","iconPos","left",1,"col","pr-1",3,"label","disabled","onClick"],["severity","success",3,"text"],["severity","error",3,"text"]],template:function(e,n){1&e&&(l(0,"form",0,1)(2,"p-card",2),_(3,rQ,2,3,"ng-template",3),_(4,oQ,2,3,"ng-template",4),_(5,aQ,70,84,"ng-template",5),_(6,uQ,6,6,"ng-template",6),c()())},directives:[ze,Ue,He,Ne,ne,Ui,sn,Te,_e,pt,Ot,Ye,Q,qe,ve],pipes:[ce],styles:["a[_ngcontent-%COMP%]:link,
a[_ngcontent-%COMP%]:visited,
a[_ngcontent-%COMP%]:active{background-color:#fff}"]}),t})();const
pQ=["eitscanopt"];function
hQ(t,i){1&t&&(g(0),m(1,"translate")),2&t&&T("
",f(1,1,"settings.eit.title")," ")}function
mQ(t,i){1&t&&(g(0),m(1,"translate")),2&t&&T("
",f(1,1,"settings.eit.subtitle")," ")}function
fQ(t,i){if(1&t){const
e=I();l(0,"div",7)(1,"div",8)(2,"div",9)(3,"label",10),g(4),m(5,"translate"),c(),l(6,"p-inputNumber",11),C("ngModelChange",function(s){return
v(e),d().EITTransportTimeout=s}),c(),l(7,
"small",12),g(8),m(9,"translate"),c()(),l(10,"div",9)(11,"label",13),g(12),m(13,"translate"),c(),l(14,"p-inputNumber",14),C("ngModelChange",function(s){return
v(e),d().EITCrawIdleStart=s}),c(),l(15,"small",12),g(16),m(17,"translate"),c()(),l(18,"div",9)(19,"label",15),g(20),m(21,"translate"),c(),l(22,"p-inputNumber",16),C("ngModelChange",function(s){return
v(e),d().EITScanPeriod=s}),c(),l(23,"small",12),g(24),m(25,"translate"),c()()()()}if(2&t){const
e=d();a(4),S(f(5,21,"settings.eit.timeout_label")),a(2),p("ngModel",e.EITTransportTimeout)("showButtons",!0)("min",1)("max",15)("step",1),a(2),T("
",f(9,23,"settings.eit.timeout_desc"),"
"),a(4),S(f(13,25,"settings.eit.crawl_label")),a(2),p("ngModel",e.EITCrawIdleStart)("showButtons",!0)("min",30)("max",7200)("step",30),a(2),T("
",f(17,27,"settings.eit.crawl_desc"),"
"),a(4),S(f(21,29,"settings.eit.scan_label")),a(2),p("ngModel",e.EITScanPeriod)("showButtons",!0)("min",5)("max",60)("step",5),a(2),T("
",f(25,31,"settings.eit.scan_desc"),
" ")}}function
gQ(t,i){1&t&&(k(0,"p-message",22),m(1,"translate")),2&t&&x("text",f(1,1,"common.savesuccess"))}function
_Q(t,i){1&t&&(k(0,"p-message",23),m(1,"translate")),2&t&&x("text",f(1,1,"common.networkfail"))}function
bQ(t,i){if(1&t){const
e=I();l(0,"div",17)(1,"div",18),_(2,gQ,2,3,"p-message",19),_(3,_Q,2,3,"p-message",20),c(),l(4,"p-button",21),C("onClick",function(){v(e);const
s=d(),r=F(1);return
s.saveForm(),r.form.markAsPristine()}),m(5,"translate"),c()()}if(2&t){const
e=d(),n=F(1);a(2),p("ngIf",e.successCount>0&&0==e.errorCount&&!n.dirty),a(1),p("ngIf",e.errorCount>0),a(1),x("label",f(5,4,"common.save")),p("disabled",!n.dirty||e.setupService.schedulingEnabled)}}let
vQ=(()=>{class
t{constructor(e,n){this.setupService=e,this.mythService=n,this.successCount=0,this.errorCount=0,this.EITTransportTimeout=5,this.EITCrawIdleStart=60,this.EITScanPeriod=15,this.eitObserver={next:s=>{s.bool?this.successCount++:(this.errorCount++,this.currentForm&&this.currentForm.form.markAsDirty())
},error:s=>{console.error(s),this.errorCount++,this.currentForm&&this.currentForm.form.markAsDirty()}},this.getEITScanner()}ngOnInit(){}ngAfterViewInit(){this.setupService.setCurrentForm(this.currentForm)}getEITScanner(){this.mythService.GetSetting({HostName:"_GLOBAL_",Key:"EITTransportTimeout",Default:"5"}).subscribe({next:e=>this.EITTransportTimeout=Number(e.String),error:()=>this.errorCount++}),this.mythService.GetSetting({HostName:"_GLOBAL_",Key:"EITCrawIdleStart",Default:"60"}).subscribe({next:e=>this.EITCrawIdleStart=Number(e.String),error:()=>this.errorCount++}),this.mythService.GetSetting({HostName:"_GLOBAL_",Key:"EITScanPeriod",Default:"15"}).subscribe({next:e=>this.EITScanPeriod=Number(e.String),error:()=>this.errorCount++})}saveForm(){this.successCount=0,this.errorCount=0,this.mythService.PutSetting({HostName:"_GLOBAL_",Key:"EITTransportTimeout",Value:String(this.EITTransportTimeout)}).subscribe(this.eitObserver),this.mythService.PutSetting({HostName:"_GLOBAL_",Key:"EITCr
awIdleStart",Value:String(this.EITCrawIdleStart)}).subscribe(this.eitObserver),this.mythService.PutSetting({HostName:"_GLOBAL_",Key:"EITScanPeriod",Value:String(this.EITScanPeriod)}).subscribe(this.eitObserver)}}return
t.\u0275fac=function(e){return
new(e||t)(D(Me),D(qt))},t.\u0275cmp=z({type:t,selectors:[["app-eit-scanner"]],viewQuery:function(e,n){if(1&e&&W(pQ,5),2&e){let
s;V(s=B())&&(n.currentForm=s.first)}},decls:7,vars:0,consts:[["name","eitscanopt",1,"ml-3","mr-3"],["eitscanopt","ngForm"],[1,"m-5"],["pTemplate","title"],["pTemplate","subtitle"],["pTemplate","content"],["pTemplate","footer"],[1,"grid"],[1,"mb-4","w-full"],[1,"form-group","field"],["for","EITTransportTimeout",1,"label","block"],["name","EITTransportTimeout","id","EITTransportTimeout",3,"ngModel","showButtons","min","max","step","ngModelChange"],[1,"block"],["for","EITCrawIdleStart",1,"label","block"],["name","EITCrawIdleStart","id","EITCrawIdleStart",3,"ngModel","showButtons","min","max","step","ngModelChange"],
["for","EITScanPeriod",1,"label","block"],["name","EITScanPeriod","id","EITScanPeriod",3,"ngModel","showButtons","min","max","step","ngModelChange"],[1,"grid","nogutter"],[1,"col-12"],["severity","success",3,"text",4,"ngIf"],["severity","error",3,"text",4,"ngIf"],["icon","pi
pi-save","iconPos","left",1,"col","pr-1",3,"label","disabled","onClick"],["severity","success",3,"text"],["severity","error",3,"text"]],template:function(e,n){1&e&&(l(0,"form",0,1)(2,"p-card",2),_(3,hQ,2,3,"ng-template",3),_(4,mQ,2,3,"ng-template",4),_(5,fQ,26,33,"ng-template",5),_(6,bQ,6,6,"ng-template",6),c()())},directives:[ze,Ue,He,Ne,ne,pt,Te,_e,Q,qe,ve],pipes:[ce],styles:[""]}),t})();const
CQ=["shutwakeopt"];function
yQ(t,i){1&t&&(g(0),m(1,"translate")),2&t&&T("
",f(1,1,"settings.shutwake.title")," ")}function
wQ(t,i){1&t&&(g(0),m(1,"translate")),2&t&&T("
",f(1,1,"settings.shutwake.subtitle")," ")}function
TQ(t,i){if(1&t){const
e=I();l(0,"div",7)(1,"div",8)(2,"div",9)(3,"label",10),g(4),m(5,"translate"),c(
),l(6,"input",11),C("ngModelChange",function(s){return
v(e),d().startupCommand=s}),c(),l(7,"small",12),g(8),m(9,"translate"),c()(),l(10,"div",9)(11,"p-checkbox",13),C("ngModelChange",function(s){return
v(e),d().blockSDWUwithoutClient=s}),m(12,"translate"),c(),l(13,"small",12),g(14),m(15,"translate"),c()(),l(16,"div",9)(17,"label",14),g(18),m(19,"translate"),c(),l(20,"p-inputNumber",15),C("ngModelChange",function(s){return
v(e),d().idleTimeoutSecs=s}),c(),l(21,"small",12),g(22),m(23,"translate"),c()(),l(24,"div",9)(25,"label",16),g(26),m(27,"translate"),c(),l(28,"p-inputNumber",17),C("ngModelChange",function(s){return
v(e),d().idleWaitForRecordingTime=s}),c(),l(29,"small",12),g(30),m(31,"translate"),c()(),l(32,"div",9)(33,"label",18),g(34),m(35,"translate"),c(),l(36,"p-inputNumber",19),C("ngModelChange",function(s){return
v(e),d().StartupSecsBeforeRecording=s}),c(),l(37,"small",12),g(38),m(39,"translate"),c()(),l(40,"div",9)(41,"label",20),g(42),m(43,"translate"),c(),l(44,"input",21)
,C("ngModelChange",function(s){return
v(e),d().WakeupTimeFormat=s}),c(),l(45,"small",12),g(46),m(47,"translate"),c()(),l(48,"div",9)(49,"label",22),g(50),m(51,"translate"),c(),l(52,"input",23),C("ngModelChange",function(s){return
v(e),d().SetWakeuptimeCommand=s}),c(),l(53,"small",12),g(54),m(55,"translate"),c()(),l(56,"div",9)(57,"label",24),g(58),m(59,"translate"),c(),l(60,"input",25),C("ngModelChange",function(s){return
v(e),d().ServerHaltCommand=s}),c(),l(61,"small",12),g(62),m(63,"translate"),c()(),l(64,"div",9)(65,"label",26),g(66),m(67,"translate"),c(),l(68,"input",27),C("ngModelChange",function(s){return
v(e),d().preSDWUCheckCommand=s}),c(),l(69,"small",12),g(70),m(71,"translate"),c()()()()}if(2&t){const
e=d();a(4),S(f(5,40,"settings.shutwake.startcmd_label")),a(2),p("ngModel",e.startupCommand),a(2),T("
",f(9,42,"settings.shutwake.startcmd_desc"),"
"),a(3),x("label",f(12,44,"settings.shutwake.block_label")),p("ngModel",e.blockSDWUwithoutClient)("binary",!0),a(3),T("
",f(15,46
,"settings.shutwake.block_desc"),"
"),a(4),T("",f(19,48,"settings.shutwake.idletime_label"),"}"),a(2),p("ngModel",e.idleTimeoutSecs)("showButtons",!0)("min",0)("max",1200)("step",5),a(2),T("
",f(23,50,"settings.shutwake.idletime_desc"),"
"),a(4),S(f(27,52,"settings.shutwake.maxwait_label")),a(2),p("ngModel",e.idleWaitForRecordingTime)("showButtons",!0)("min",0)("max",300)("step",1),a(2),T("
",f(31,54,"settings.shutwake.maxwait_desc"),"
"),a(4),S(f(35,56,"settings.shutwake.startbefore_label")),a(2),p("ngModel",e.StartupSecsBeforeRecording)("showButtons",!0)("min",0)("max",300)("step",1),a(2),T("
",f(39,58,"settings.shutwake.startbefore_desc"),"
"),a(4),S(f(43,60,"settings.shutwake.timeformat_label")),a(2),p("ngModel",e.WakeupTimeFormat),a(2),T("
",f(47,62,"settings.shutwake.timeformat_desc"),"
"),a(4),S(f(51,64,"settings.shutwake.timecmd_label")),a(2),p("ngModel",e.SetWakeuptimeCommand),a(2),T("
",f(55,66,"settings.shutwake.timecmd_desc"),"
"),a(4),S(f(59,68,"settings.shutwake.server
halt_label")),a(2),p("ngModel",e.ServerHaltCommand),a(2),T("
",f(63,70,"settings.shutwake.serverhalt_desc"),"
"),a(4),S(f(67,72,"settings.shutwake.preshut_label")),a(2),p("ngModel",e.preSDWUCheckCommand),a(2),T("
",f(71,74,"settings.shutwake.preshut_desc")," ")}}function
SQ(t,i){1&t&&(k(0,"p-message",33),m(1,"translate")),2&t&&x("text",f(1,1,"common.savesuccess"))}function
xQ(t,i){1&t&&(k(0,"p-message",34),m(1,"translate")),2&t&&x("text",f(1,1,"common.networkfail"))}function
DQ(t,i){if(1&t){const
e=I();l(0,"div",28)(1,"div",29),_(2,SQ,2,3,"p-message",30),_(3,xQ,2,3,"p-message",31),c(),l(4,"p-button",32),C("onClick",function(){v(e);const
s=d(),r=F(1);return
s.saveForm(),r.form.markAsPristine()}),m(5,"translate"),c()()}if(2&t){const
e=d(),n=F(1);a(2),p("ngIf",e.successCount>0&&0==e.errorCount&&!n.dirty),a(1),p("ngIf",e.errorCount>0),a(1),x("label",f(5,4,"common.save")),p("disabled",!n.dirty||e.setupService.schedulingEnabled)}}let
MQ=(()=>{class t{constructor(e,n){this.setupService=e,t
his.mythService=n,this.successCount=0,this.errorCount=0,this.startupCommand="",this.blockSDWUwithoutClient=!0,this.idleTimeoutSecs=0,this.idleWaitForRecordingTime=15,this.StartupSecsBeforeRecording=120,this.WakeupTimeFormat="hh
=mm
yyyy-MM-dd",this.SetWakeuptimeCommand="",this.ServerHaltCommand="sudo
/sbin/halt
-p",this.preSDWUCheckCommand="",this.swObserver={next:s=>{s.bool?this.successCount++:(this.errorCount++,this.currentForm&&this.currentForm.form.markAsDirty())},error:s=>{console.error(s),this.errorCount++,this.currentForm&&this.currentForm.form.markAsDirty()}},this.getShutWake()}ngOnInit(){}ngAfterViewInit(){this.setupService.setCurrentForm(this.currentForm)}getShutWake(){this.mythService.GetSetting({HostName:"_GLOBAL_",Key:"startupCommand",Default:""}).subscribe({next:e=>this.startupCommand=e.String,error:()=>this.errorCount++}),this.mythService.GetSetting({HostName:"_GLOBAL_",Key:"blockSDWUwithoutClient",Default:"1"}).subscribe({next:e=>this.blockSDWUwithoutClient="1"==e.St
ring,error:()=>this.errorCount++}),this.mythService.GetSetting({HostName:"_GLOBAL_",Key:"idleTimeoutSecs",Default:"0"}).subscribe({next:e=>this.idleTimeoutSecs=Number(e.String),error:()=>this.errorCount++}),this.mythService.GetSetting({HostName:"_GLOBAL_",Key:"idleWaitForRecordingTime",Default:""}).subscribe({next:e=>this.idleWaitForRecordingTime=Number(e.String),error:()=>this.errorCount++}),this.mythService.GetSetting({HostName:"_GLOBAL_",Key:"StartupSecsBeforeRecording",Default:"120"}).subscribe({next:e=>this.StartupSecsBeforeRecording=Number(e.String),error:()=>this.errorCount++}),this.mythService.GetSetting({HostName:"_GLOBAL_",Key:"WakeupTimeFormat",Default:"hh:mm
yyyy-MM-dd"}).subscribe({next:e=>this.WakeupTimeFormat=e.String,error:()=>this.errorCount++}),this.mythService.GetSetting({HostName:"_GLOBAL_",Key:"SetWakeuptimeCommand",Default:""}).subscribe({next:e=>this.SetWakeuptimeCommand=e.String,error:()=>this.errorCount++}),this.mythService.GetSetting({HostName:"_GLOBAL_",Ke
y:"ServerHaltCommand",Default:"sudo /sbin/halt
-p"}).subscribe({next:e=>this.ServerHaltCommand=e.String,error:()=>this.errorCount++}),this.mythService.GetSetting({HostName:"_GLOBAL_",Key:"preSDWUCheckCommand",Default:""}).subscribe({next:e=>this.preSDWUCheckCommand=e.String,error:()=>this.errorCount++})}saveForm(){this.successCount=0,this.errorCount=0,this.mythService.PutSetting({HostName:"_GLOBAL_",Key:"startupCommand",Value:this.startupCommand}).subscribe(this.swObserver),this.mythService.PutSetting({HostName:"_GLOBAL_",Key:"blockSDWUwithoutClient",Value:this.blockSDWUwithoutClient?"1":"0"}).subscribe(this.swObserver),this.mythService.PutSetting({HostName:"_GLOBAL_",Key:"idleTimeoutSecs",Value:String(this.idleTimeoutSecs)}).subscribe(this.swObserver),this.mythService.PutSetting({HostName:"_GLOBAL_",Key:"idleWaitForRecordingTime",Value:String(this.idleWaitForRecordingTime)}).subscribe(this.swObserver),this.mythService.PutSetting({HostName:"_GLOBAL_",Key:"StartupSecsBeforeRecording"
,Value:String(this.StartupSecsBeforeRecording)}).subscribe(this.swObserver),this.mythService.PutSetting({HostName:"_GLOBAL_",Key:"WakeupTimeFormat",Value:this.WakeupTimeFormat}).subscribe(this.swObserver),this.mythService.PutSetting({HostName:"_GLOBAL_",Key:"SetWakeuptimeCommand",Value:this.SetWakeuptimeCommand}).subscribe(this.swObserver),this.mythService.PutSetting({HostName:"_GLOBAL_",Key:"ServerHaltCommand",Value:this.ServerHaltCommand}).subscribe(this.swObserver),this.mythService.PutSetting({HostName:"_GLOBAL_",Key:"preSDWUCheckCommand",Value:this.preSDWUCheckCommand}).subscribe(this.swObserver)}}return
t.\u0275fac=function(e){return
new(e||t)(D(Me),D(qt))},t.\u0275cmp=z({type:t,selectors:[["app-shutdown-wakeup"]],viewQuery:function(e,n){if(1&e&&W(CQ,5),2&e){let
s;V(s=B())&&(n.currentForm=s.first)}},decls:7,vars:0,consts:[["name","shutwakeopt",1,"ml-3","mr-3"],["shutwakeopt","ngForm"],[1,"m-5"],["pTemplate","title"],["pTemplate","subtitle"],["pTemplate","content"],["pTemplate",
"footer"],[1,"grid"],[1,"mb-4","w-full"],[1,"form-group","field"],["for","startupCommand",1,"label","block"],["pInputText","","id","startupCommand","name","startupCommand",1,"mb-2","form-control","w-full",3,"ngModel","ngModelChange"],[1,"block"],["inputId","blockSDWUwithoutClient","name","blockSDWUwithoutClient",1,"mb-2","w-full","label",3,"ngModel","binary","label","ngModelChange"],["for","idleTimeoutSecs",1,"label","block"],["name","idleTimeoutSecs","id","idleTimeoutSecs",3,"ngModel","showButtons","min","max","step","ngModelChange"],["for","idleWaitForRecordingTime",1,"label","block"],["name","idleWaitForRecordingTime","id","idleWaitForRecordingTime",3,"ngModel","showButtons","min","max","step","ngModelChange"],["for","StartupSecsBeforeRecording",1,"label","block"],["name","StartupSecsBeforeRecording","id","StartupSecsBeforeRecording",3,"ngModel","showButtons","min","max","step","ngModelChange"],["for","WakeupTimeFormat",1,"label","block"],["pInputText","","id","WakeupTimeFormat",
"name","WakeupTimeFormat",1,"mb-2","form-control","w-full",3,"ngModel","ngModelChange"],["for","SetWakeuptimeCommand",1,"label","block"],["pInputText","","id","SetWakeuptimeCommand","name","SetWakeuptimeCommand",1,"mb-2","form-control","w-full",3,"ngModel","ngModelChange"],["for","ServerHaltCommand",1,"label","block"],["pInputText","","id","ServerHaltCommand","name","ServerHaltCommand",1,"mb-2","form-control","w-full",3,"ngModel","ngModelChange"],["for","preSDWUCheckCommand",1,"label","block"],["pInputText","","id","preSDWUCheckCommand","name","preSDWUCheckCommand",1,"mb-2","form-control","w-full",3,"ngModel","ngModelChange"],[1,"grid","nogutter"],[1,"col-12"],["severity","success",3,"text",4,"ngIf"],["severity","error",3,"text",4,"ngIf"],["icon","pi
pi-save","iconPos","left",1,"col","pr-1",3,"label","disabled","onClick"],["severity","success",3,"text"],["severity","error",3,"text"]],template:function(e,n){1&e&&(l(0,"form",0,1)(2,"p-card",2),_(3,yQ,2,3,"ng-template",3),_(4,wQ,2,3,"n
g-template",4),_(5,TQ,72,76,"ng-template",5),_(6,DQ,6,6,"ng-template",6),c()())},directives:[ze,Ue,He,Ne,ne,Ye,Te,_e,sn,pt,Q,qe,ve],pipes:[ce],styles:[""]}),t})();const
kQ=["backendwakeup"];function
IQ(t,i){1&t&&(g(0),m(1,"translate")),2&t&&T("
",f(1,1,"settings.backendwake.title")," ")}function
EQ(t,i){1&t&&(g(0),m(1,"translate")),2&t&&T("
",f(1,1,"settings.backendwake.subtitle")," ")}function
RQ(t,i){if(1&t){const
e=I();l(0,"div",7)(1,"p-fieldset",8),m(2,"translate"),l(3,"div",9)(4,"label",10),g(5),m(6,"translate"),c(),l(7,"p-inputNumber",11),C("ngModelChange",function(s){return
v(e),d().WOLbackendReconnectWaitTime=s}),c(),l(8,"small",12),g(9),m(10,"translate"),c()(),l(11,"div",9)(12,"label",13),g(13),m(14,"translate"),c(),l(15,"p-inputNumber",14),C("ngModelChange",function(s){return
v(e),d().WOLbackendConnectRetry=s}),c(),l(16,"small",12),g(17),m(18,"translate"),c()(),l(19,"div",9)(20,"label",15),g(21),m(22,"translate"),c(),l(23,"input",16),C("ngModelChange",function(s){return
v(
e),d().WOLbackendCommand=s}),c(),l(24,"small",12),g(25),m(26,"translate"),c()()(),l(27,"p-fieldset",8),m(28,"translate"),l(29,"div",9)(30,"label",17),g(31),m(32,"translate"),c(),l(33,"input",18),C("ngModelChange",function(s){return
v(e),d().SleepCommand=s}),c(),l(34,"small",12),g(35),m(36,"translate"),c()(),l(37,"div",9)(38,"label",19),g(39),m(40,"translate"),c(),l(41,"input",20),C("ngModelChange",function(s){return
v(e),d().WakeUpCommand=s}),c(),l(42,"small",12),g(43),m(44,"translate"),c()()()()}if(2&t){const
e=d();a(1),x("legend",f(2,29,"settings.backendwake.master.title")),p("toggleable",!0)("collapsed",!0),a(4),S(f(6,31,"settings.backendwake.master.delay_label")),a(2),p("ngModel",e.WOLbackendReconnectWaitTime)("showButtons",!0)("min",0)("max",1200)("step",5),a(2),T("
",f(10,33,"settings.backendwake.master.delay_desc"),"
"),a(4),S(f(14,35,"settings.backendwake.master.attempts_label")),a(2),p("ngModel",e.WOLbackendConnectRetry)("showButtons",!0)("min",1)("max",60)("step",1),a(2),T
(" ",f(18,37,"settings.backendwake.master.attempts_desc"),"
"),a(4),S(f(22,39,"settings.backendwake.master.cmd_label")),a(2),p("ngModel",e.WOLbackendCommand),a(2),T("
",f(26,41,"settings.backendwake.master.cmd_desc"),"
"),a(2),x("legend",f(28,43,"settings.backendwake.slave.title")),p("toggleable",!0)("collapsed",!0),a(4),S(f(32,45,"settings.backendwake.slave.sleep_label")),a(2),p("ngModel",e.SleepCommand),a(2),T("
",f(36,47,"settings.backendwake.slave.sleep_desc"),"
"),a(4),S(f(40,49,"settings.backendwake.slave.wake_label")),a(2),p("ngModel",e.WakeUpCommand),a(2),T("
",f(44,51,"settings.backendwake.slave.wake_desc")," ")}}function
LQ(t,i){1&t&&(k(0,"p-message",26),m(1,"translate")),2&t&&x("text",f(1,1,"common.savesuccess"))}function
OQ(t,i){1&t&&(k(0,"p-message",27),m(1,"translate")),2&t&&x("text",f(1,1,"common.networkfail"))}function
AQ(t,i){if(1&t){const
e=I();l(0,"div",21)(1,"div",22),_(2,LQ,2,3,"p-message",23),_(3,OQ,2,3,"p-message",24),c(),l(4,"p-button",25),C("onClick",functio
n(){v(e);const s=d(),r=F(1);return
s.saveForm(),r.form.markAsPristine()}),m(5,"translate"),c()()}if(2&t){const
e=d(),n=F(1);a(2),p("ngIf",e.successCount>0&&0==e.errorCount&&!n.dirty),a(1),p("ngIf",e.errorCount>0),a(1),x("label",f(5,4,"common.save")),p("disabled",!n.dirty||e.setupService.schedulingEnabled)}}let
PQ=(()=>{class
t{constructor(e,n){this.setupService=e,this.mythService=n,this.hostName="",this.successCount=0,this.errorCount=0,this.WOLbackendReconnectWaitTime=0,this.WOLbackendConnectRetry=5,this.WOLbackendCommand="",this.SleepCommand="",this.WakeUpCommand="",this.bewObserver={next:s=>{s.bool?this.successCount++:(this.errorCount++,this.currentForm&&this.currentForm.form.markAsDirty())},error:s=>{console.error(s),this.errorCount++,this.currentForm&&this.currentForm.form.markAsDirty()}}}ngOnInit(){}ngAfterViewInit(){this.setupService.setCurrentForm(this.currentForm)}getBackendWake(){this.mythService.GetHostName().subscribe({next:e=>{this.hostName=e.String,this.getSettings()},e
rror:()=>this.errorCount++})}getSettings(){this.mythService.GetSetting({HostName:"_GLOBAL_",Key:"WOLbackendReconnectWaitTime",Default:"0"}).subscribe({next:e=>this.WOLbackendReconnectWaitTime=Number(e.String),error:()=>this.errorCount++}),this.mythService.GetSetting({HostName:"_GLOBAL_",Key:"WOLbackendConnectRetry",Default:"5"}).subscribe({next:e=>this.WOLbackendConnectRetry=Number(e.String),error:()=>this.errorCount++}),this.mythService.GetSetting({HostName:"_GLOBAL_",Key:"WOLbackendCommand",Default:""}).subscribe({next:e=>this.WOLbackendCommand=e.String,error:()=>this.errorCount++}),this.mythService.GetSetting({HostName:this.hostName,Key:"SleepCommand",Default:""}).subscribe({next:e=>this.SleepCommand=e.String,error:()=>this.errorCount++}),this.mythService.GetSetting({HostName:this.hostName,Key:"WakeUpCommand",Default:""}).subscribe({next:e=>this.WakeUpCommand=e.String,error:()=>this.errorCount++})}saveForm(){this.successCount=0,this.errorCount=0,this.mythService.PutSetting({HostN
ame:"_GLOBAL_",Key:"WOLbackendReconnectWaitTime",Value:String(this.WOLbackendReconnectWaitTime)}).subscribe(this.bewObserver),this.mythService.PutSetting({HostName:"_GLOBAL_",Key:"WOLbackendConnectRetry",Value:String(this.WOLbackendConnectRetry)}).subscribe(this.bewObserver),this.mythService.PutSetting({HostName:"_GLOBAL_",Key:"WOLbackendCommand",Value:this.WOLbackendCommand}).subscribe(this.bewObserver),this.mythService.PutSetting({HostName:this.hostName,Key:"SleepCommand",Value:this.SleepCommand}).subscribe(this.bewObserver),this.mythService.PutSetting({HostName:this.hostName,Key:"WakeUpCommand",Value:this.WakeUpCommand}).subscribe(this.bewObserver)}}return
t.\u0275fac=function(e){return
new(e||t)(D(Me),D(qt))},t.\u0275cmp=z({type:t,selectors:[["app-backend-wakeup"]],viewQuery:function(e,n){if(1&e&&W(kQ,5),2&e){let
s;V(s=B())&&(n.currentForm=s.first)}},decls:7,vars:0,consts:[["name","backendwakeup",1,"ml-3","mr-3"],["backendwakeup","ngForm"],[1,"m-5"],["pTemplate","title"],["pTemp
late","subtitle"],["pTemplate","content"],["pTemplate","footer"],[1,"grid"],[1,"mb-4","w-full",3,"legend","toggleable","collapsed"],[1,"form-group","field"],["for","WOLbackendReconnectWaitTime",1,"label","block"],["name","WOLbackendReconnectWaitTime","id","WOLbackendReconnectWaitTime",3,"ngModel","showButtons","min","max","step","ngModelChange"],[1,"block"],["for","WOLbackendConnectRetry",1,"label","block"],["name","WOLbackendConnectRetry","id","WOLbackendConnectRetry",3,"ngModel","showButtons","min","max","step","ngModelChange"],["for","WOLbackendCommand",1,"label","block"],["pInputText","","id","WOLbackendCommand","name","WOLbackendCommand",1,"mb-2","form-control","w-full",3,"ngModel","ngModelChange"],["for","SleepCommand",1,"label","block"],["pInputText","","id","SleepCommand","name","SleepCommand",1,"mb-2","form-control","w-full",3,"ngModel","ngModelChange"],["for","WakeUpCommand",1,"label","block"],["pInputText","","id","WakeUpCommand","name","WakeUpCommand",1,"mb-2","form-cont
rol","w-full",3,"ngModel","ngModelChange"],[1,"grid","nogutter"],[1,"col-12"],["severity","success",3,"text",4,"ngIf"],["severity","error",3,"text",4,"ngIf"],["icon","pi
pi-save","iconPos","left",1,"col","pr-1",3,"label","disabled","onClick"],["severity","success",3,"text"],["severity","error",3,"text"]],template:function(e,n){1&e&&(l(0,"form",0,1)(2,"p-card",2),_(3,IQ,2,3,"ng-template",3),_(4,EQ,2,3,"ng-template",4),_(5,RQ,45,53,"ng-template",5),_(6,AQ,6,6,"ng-template",6),c()())},directives:[ze,Ue,He,Ne,ne,Ui,pt,Te,_e,Ye,Q,qe,ve],pipes:[ce],styles:[""]}),t})();const
FQ=["backendcontrol"];function
NQ(t,i){1&t&&(g(0),m(1,"translate")),2&t&&T("
",f(1,1,"settings.backendctrl.title")," ")}function
VQ(t,i){1&t&&(g(0),m(1,"translate")),2&t&&T("
",f(1,1,"settings.backendctrl.subtitle")," ")}function
BQ(t,i){if(1&t){const
e=I();l(0,"div",7)(1,"div",8)(2,"div",9)(3,"label",10),g(4),m(5,"translate"),c(),l(6,"input",11,12),C("ngModelChange",function(s){return
v(e),d().BackendStopCommand=s}),c
(),l(8,"small",13),g(9),m(10,"translate"),c()(),l(11,"div",9)(12,"label",14),g(13),m(14,"translate"),c(),l(15,"input",15,12),C("ngModelChange",function(s){return
v(e),d().BackendStartCommand=s}),c(),l(17,"small",13),g(18),m(19,"translate"),c()()()()}if(2&t){const
e=d();a(4),S(f(5,6,"settings.backendctrl.stop_label")),a(2),p("ngModel",e.BackendStopCommand),a(3),T("
",f(10,8,"settings.backendctrl.stop_desc"),"
"),a(4),S(f(14,10,"settings.backendctrl.start_label")),a(2),p("ngModel",e.BackendStartCommand),a(3),T("
",f(19,12,"settings.backendctrl.start_desc")," ")}}function
HQ(t,i){1&t&&(k(0,"p-message",21),m(1,"translate")),2&t&&x("text",f(1,1,"common.savesuccess"))}function
qQ(t,i){1&t&&(k(0,"p-message",22),m(1,"translate")),2&t&&x("text",f(1,1,"common.networkfail"))}function
GQ(t,i){if(1&t){const
e=I();l(0,"div",16)(1,"div",17),_(2,HQ,2,3,"p-message",18),_(3,qQ,2,3,"p-message",19),c(),l(4,"p-button",20),C("onClick",function(){v(e);const
s=d(),r=F(1);return s.saveForm(),r.form.markAsPr
istine()}),m(5,"translate"),c()()}if(2&t){const
e=d(),n=F(1);a(2),p("ngIf",e.successCount>0&&0==e.errorCount&&!n.dirty),a(1),p("ngIf",e.errorCount>0),a(1),x("label",f(5,4,"common.save")),p("disabled",!n.dirty||e.setupService.schedulingEnabled)}}let
UQ=(()=>{class
t{constructor(e,n){this.setupService=e,this.mythService=n,this.successCount=0,this.errorCount=0,this.BackendStopCommand="killall
mythbackend",this.BackendStartCommand="mythbackend",this.becObserver={next:s=>{s.bool?this.successCount++:(this.errorCount++,this.currentForm&&this.currentForm.form.markAsDirty())},error:s=>{console.error(s),this.errorCount++,this.currentForm&&this.currentForm.form.markAsDirty()}}}ngOnInit(){}ngAfterViewInit(){this.setupService.setCurrentForm(this.currentForm)}getBackendControl(){this.mythService.GetSetting({HostName:"_GLOBAL_",Key:"BackendStopCommand",Default:"killall
mythbackend"}).subscribe({next:e=>this.BackendStopCommand=e.String,error:()=>this.errorCount++}),this.mythService.GetSetting({Host
Name:"_GLOBAL_",Key:"BackendStartCommand",Default:"mythbackend"}).subscribe({next:e=>this.BackendStartCommand=e.String,error:()=>this.errorCount++})}saveForm(){this.successCount=0,this.errorCount=0,this.mythService.PutSetting({HostName:"_GLOBAL_",Key:"BackendStopCommand",Value:this.BackendStopCommand}).subscribe(this.becObserver),this.mythService.PutSetting({HostName:"_GLOBAL_",Key:"BackendStartCommand",Value:this.BackendStartCommand}).subscribe(this.becObserver)}}return
t.\u0275fac=function(e){return
new(e||t)(D(Me),D(qt))},t.\u0275cmp=z({type:t,selectors:[["app-backend-control"]],viewQuery:function(e,n){if(1&e&&W(FQ,5),2&e){let
s;V(s=B())&&(n.currentForm=s.first)}},decls:7,vars:0,consts:[["name","backendcontrol",1,"ml-3","mr-3"],["backendcontrol","ngForm"],[1,"m-5"],["pTemplate","title"],["pTemplate","subtitle"],["pTemplate","content"],["pTemplate","footer"],[1,"grid"],[1,"mb-4","w-full"],[1,"form-group","field"],["for","BackendStopCommand",1,"label","block"],["pInputText","","id"
,"BackendStopCommand","name","BackendStopCommand",1,"mb-2","form-control","w-full",3,"ngModel","ngModelChange"],["MiscStatusScript","ngModel"],[1,"block"],["for","BackendStartCommand",1,"label","block"],["pInputText","","id","BackendStartCommand","name","BackendStartCommand",1,"mb-2","form-control","w-full",3,"ngModel","ngModelChange"],[1,"grid","nogutter"],[1,"col-12"],["severity","success",3,"text",4,"ngIf"],["severity","error",3,"text",4,"ngIf"],["icon","pi
pi-save","iconPos","left",1,"col","pr-1",3,"label","disabled","onClick"],["severity","success",3,"text"],["severity","error",3,"text"]],template:function(e,n){1&e&&(l(0,"form",0,1)(2,"p-card",2),_(3,NQ,2,3,"ng-template",3),_(4,VQ,2,3,"ng-template",4),_(5,BQ,20,14,"ng-template",5),_(6,GQ,6,6,"ng-template",6),c()())},directives:[ze,Ue,He,Ne,ne,Ye,Te,_e,Q,qe,ve],pipes:[ce],styles:[""]}),t})();const
zQ=["jobqbackend"],jQ=["JobQueueWindowStartHT"],$Q=["JobQueueWindowEndHT"];function
WQ(t,i){1&t&&(g(0),m(1,"translate")),2&t&&T("
",f
(1,1,"settings.jobqbackend.title")," ")}function
KQ(t,i){1&t&&(g(0),m(1,"translate")),2&t&&T("
",f(1,1,"settings.jobqbackend.subtitle")," ")}function
QQ(t,i){if(1&t){const
e=I();l(0,"div",7)(1,"div",8)(2,"div",9)(3,"label",10),g(4),m(5,"translate"),c(),l(6,"p-inputNumber",11),C("ngModelChange",function(s){return
v(e),d().JobQueueMaxSimultaneousJobs=s}),c(),l(7,"small",12),g(8),m(9,"translate"),c()(),l(10,"div",9)(11,"label",13),g(12),m(13,"translate"),c(),l(14,"p-inputNumber",14),C("ngModelChange",function(s){return
v(e),d().JobQueueCheckFrequency=s}),c(),l(15,"small",12),g(16),m(17,"translate"),c()(),l(18,"div",9)(19,"label",15),g(20),m(21,"translate"),c(),l(22,"p-calendar",16,17),C("ngModelChange",function(s){return
v(e),d().JobQueueWindowStart=s}),c(),l(24,"small",12),g(25),m(26,"translate"),c()(),l(27,"div",9)(28,"label",18),g(29),m(30,"translate"),c(),l(31,"p-calendar",19,20),C("ngModelChange",function(s){return
v(e),d().JobQueueWindowEnd=s}),c(),l(33,"small",12),g(34),m(35,"tr
anslate"),c()(),l(36,"div",9)(37,"label",21),g(38),m(39,"translate"),c(),l(40,"p-dropdown",22),C("ngModelChange",function(s){return
v(e),d().JobQueueCPU=s}),c(),l(41,"small",12),g(42),m(43,"translate"),c()(),l(44,"div",9)(45,"p-checkbox",23),C("ngModelChange",function(s){return
v(e),d().JobAllowMetadata=s}),m(46,"translate"),c(),l(47,"small",12),g(48),m(49,"translate"),c()(),l(50,"div",9)(51,"p-checkbox",24),C("ngModelChange",function(s){return
v(e),d().JobAllowCommFlag=s}),m(52,"translate"),c(),l(53,"small",12),g(54),m(55,"translate"),c()(),l(56,"div",9)(57,"p-checkbox",25),C("ngModelChange",function(s){return
v(e),d().JobAllowTranscode=s}),m(58,"translate"),c(),l(59,"small",12),g(60),m(61,"translate"),c()(),l(62,"div",9)(63,"p-checkbox",26),C("ngModelChange",function(s){return
v(e),d().JobAllowPreview=s}),m(64,"translate"),c(),l(65,"small",12),g(66),m(67,"translate"),c()(),l(68,"div",9)(69,"p-checkbox",27),C("ngModelChange",function(s){return
v(e),d().JobAllowUserJob1=s}),c(),l(70
,"small",12),g(71),m(72,"translate"),c()(),l(73,"div",9)(74,"p-checkbox",28),C("ngModelChange",function(s){return
v(e),d().JobAllowUserJob2=s}),c(),l(75,"small",12),g(76),m(77,"translate"),c()(),l(78,"div",9)(79,"p-checkbox",29),C("ngModelChange",function(s){return
v(e),d().JobAllowUserJob3=s}),c(),l(80,"small",12),g(81),m(82,"translate"),c()(),l(83,"div",9)(84,"p-checkbox",30),C("ngModelChange",function(s){return
v(e),d().JobAllowUserJob4=s}),c(),l(85,"small",12),g(86),m(87,"translate"),c()()()()}if(2&t){const
e=d();a(4),S(f(5,60,"settings.jobqbackend.maxjobs_label")),a(2),p("ngModel",e.JobQueueMaxSimultaneousJobs)("showButtons",!0)("min",1)("max",10)("step",1),a(2),T("
",f(9,62,"settings.jobqbackend.maxjobs_desc"),"
"),a(4),S(f(13,64,"settings.jobqbackend.freq_label")),a(2),p("ngModel",e.JobQueueCheckFrequency)("showButtons",!0)("min",5)("max",300)("step",5),a(2),T("
",f(17,66,"settings.jobqbackend.freq_desc"),"
"),a(4),S(f(21,68,"settings.jobqbackend.start_label")),a(2),p("ngMode
l",e.JobQueueWindowStart)("timeOnly",!0)("readonlyInput",!0),a(3),T("
",f(26,70,"settings.jobqbackend.start_desc"),"
"),a(4),S(f(30,72,"settings.jobqbackend.end_label")),a(2),p("ngModel",e.JobQueueWindowEnd)("timeOnly",!0)("readonlyInput",!0),a(3),T("
",f(35,74,"settings.jobqbackend.end_desc"),"
"),a(4),S(f(39,76,"settings.jobqbackend.cpu_label")),a(2),p("options",e.cpuOptions)("ngModel",e.JobQueueCPU),a(2),T("
",f(43,78,"settings.jobqbackend.cpu_desc"),"
"),a(3),x("label",f(46,80,"settings.jobqbackend.meta_label")),p("ngModel",e.JobAllowMetadata)("binary",!0),a(3),T("
",f(49,82,"settings.jobqbackend.allow_desc"),"
"),a(3),x("label",f(52,84,"settings.jobqbackend.comm_label")),p("ngModel",e.JobAllowCommFlag)("binary",!0),a(3),T("
",f(55,86,"settings.jobqbackend.allow_desc"),"
"),a(3),x("label",f(58,88,"settings.jobqbackend.trans_label")),p("ngModel",e.JobAllowTranscode)("binary",!0),a(3),T("
",f(61,90,"settings.jobqbackend.allow_desc"),"
"),a(3),x("label",f(64,92,"settings.jobqbacken
d.preview_label")),p("ngModel",e.JobAllowPreview)("binary",!0),a(3),T("
",f(67,94,"settings.jobqbackend.allow_desc"),"
"),a(3),x("label",e.JobQCmds.UserJobDesc[0]),p("ngModel",e.JobAllowUserJob1)("binary",!0),a(2),T("
",f(72,96,"settings.jobqbackend.allow_desc"),"
"),a(3),x("label",e.JobQCmds.UserJobDesc[1]),p("ngModel",e.JobAllowUserJob2)("binary",!0),a(2),T("
",f(77,98,"settings.jobqbackend.allow_desc"),"
"),a(3),x("label",e.JobQCmds.UserJobDesc[2]),p("ngModel",e.JobAllowUserJob3)("binary",!0),a(2),T("
",f(82,100,"settings.jobqbackend.allow_desc"),"
"),a(3),x("label",e.JobQCmds.UserJobDesc[3]),p("ngModel",e.JobAllowUserJob4)("binary",!0),a(2),T("
",f(87,102,"settings.jobqbackend.allow_desc")," ")}}function
JQ(t,i){1&t&&(k(0,"p-message",36),m(1,"translate")),2&t&&x("text",f(1,1,"common.savesuccess"))}function
YQ(t,i){1&t&&(k(0,"p-message",37),m(1,"translate")),2&t&&x("text",f(1,1,"common.networkfail"))}function
ZQ(t,i){if(1&t){const
e=I();l(0,"div",31)(1,"div",32),_(2,JQ,2,3,"p-mes
sage",33),_(3,YQ,2,3,"p-message",34),c(),l(4,"p-button",35),C("onClick",function(){v(e);const
s=d(),r=F(1);return
s.saveForm(),r.form.markAsPristine()}),m(5,"translate"),c()()}if(2&t){const
e=d(),n=F(1);a(2),p("ngIf",e.successCount>0&&0==e.errorCount&&!n.dirty),a(1),p("ngIf",e.errorCount>0),a(1),x("label",f(5,4,"common.save")),p("disabled",!n.dirty||e.setupService.schedulingEnabled)}}let
XQ=(()=>{class
t{constructor(e,n,s){this.setupService=e,this.translate=n,this.mythService=s,this.successCount=0,this.errorCount=0,this.hostName="",this.JobQueueMaxSimultaneousJobs=1,this.JobQueueCheckFrequency=60,this.JobQueueWindowStart=new
Date(0),this.JobQueueWindowStartHT$=new Je,this.JobQueueWindowEnd=new
Date(0),this.JobQueueWindowEndHT$=new
Je,this.JobQueueCPU="0",this.JobAllowMetadata=!0,this.JobAllowCommFlag=!0,this.JobAllowTranscode=!0,this.JobAllowPreview=!0,this.JobAllowUserJob1=!1,this.JobAllowUserJob2=!1,this.JobAllowUserJob3=!1,this.JobAllowUserJob4=!1,this.cpuOptions=[{name:"settings
.jobqbackend.cpu_low",code:"0"},{name:"settings.jobqbackend.cpu_med",code:"1"},{name:"settings.jobqbackend.cpu_high",code:"2"}],this.jqbObserver={next:r=>{r.bool?this.successCount++:(this.errorCount++,this.currentForm&&this.currentForm.form.markAsDirty())},error:r=>{console.error(r),this.errorCount++,this.currentForm&&this.currentForm.form.markAsDirty()}},this.getJobQBackend(),this.JobQueueWindowStartHT$.subscribe({complete:()=>this.JobQueueWindowStartHT.updateInputfield()}),this.JobQueueWindowEndHT$.subscribe({complete:()=>this.JobQueueWindowEndHT.updateInputfield()}),this.JobQCmds=this.setupService.getJobQCommands(),n.get(this.cpuOptions[0].name).subscribe(r=>this.cpuOptions[0].name=r),n.get(this.cpuOptions[1].name).subscribe(r=>this.cpuOptions[1].name=r),n.get(this.cpuOptions[2].name).subscribe(r=>this.cpuOptions[2].name=r)}ngOnInit(){}ngAfterViewInit(){this.setupService.setCurrentForm(this.currentForm)}getJobQBackend(){this.successCount=0,this.errorCount=0,this.setupService.pars
eTime(this.JobQueueWindowStart,"00:00"),this.setupService.parseTime(this.JobQueueWindowEnd,"23:59"),this.mythService.GetHostName().subscribe({next:e=>{this.hostName=e.String,this.getSettings()},error:()=>this.errorCount++})}getSettings(){this.mythService.GetSetting({HostName:this.hostName,Key:"JobQueueMaxSimultaneousJobs",Default:"1"}).subscribe({next:e=>this.JobQueueMaxSimultaneousJobs=Number(e.String),error:()=>this.errorCount++}),this.mythService.GetSetting({HostName:this.hostName,Key:"JobQueueCheckFrequency",Default:"60"}).subscribe({next:e=>this.JobQueueCheckFrequency=Number(e.String),error:()=>this.errorCount++}),this.JobQueueWindowStartHT$=this.mythService.GetSetting({HostName:this.hostName,Key:"JobQueueWindowStart",Default:"00:00"}),this.JobQueueWindowStartHT$.subscribe({next:e=>this.setupService.parseTime(this.JobQueueWindowStart,e.String),error:()=>this.errorCount++}),this.JobQueueWindowEndHT$=this.mythService.GetSetting({HostName:this.hostName,Key:"JobQueueWindowEnd",Defa
ult:"23:59"}),this.JobQueueWindowEndHT$.subscribe({next:e=>this.setupService.parseTime(this.JobQueueWindowEnd,e.String),error:()=>this.errorCount++}),this.mythService.GetSetting({HostName:this.hostName,Key:"JobQueueCPU",Default:"0"}).subscribe({next:e=>this.JobQueueCPU=e.String,error:()=>this.errorCount++}),this.mythService.GetSetting({HostName:this.hostName,Key:"JobAllowMetadata",Default:"1"}).subscribe({next:e=>this.JobAllowMetadata="1"==e.String,error:()=>this.errorCount++}),this.mythService.GetSetting({HostName:this.hostName,Key:"JobAllowCommFlag",Default:"1"}).subscribe({next:e=>this.JobAllowCommFlag="1"==e.String,error:()=>this.errorCount++}),this.mythService.GetSetting({HostName:this.hostName,Key:"JobAllowTranscode",Default:"1"}).subscribe({next:e=>this.JobAllowTranscode="1"==e.String,error:()=>this.errorCount++}),this.mythService.GetSetting({HostName:this.hostName,Key:"JobAllowPreview",Default:"1"}).subscribe({next:e=>this.JobAllowPreview="1"==e.String,error:()=>this.errorCo
unt++}),this.mythService.GetSetting({HostName:this.hostName,Key:"JobAllowUserJob1",Default:"0"}).subscribe({next:e=>this.JobAllowUserJob1="1"==e.String,error:()=>this.errorCount++}),this.mythService.GetSetting({HostName:this.hostName,Key:"JobAllowUserJob2",Default:"0"}).subscribe({next:e=>this.JobAllowUserJob2="1"==e.String,error:()=>this.errorCount++}),this.mythService.GetSetting({HostName:this.hostName,Key:"JobAllowUserJob3",Default:"0"}).subscribe({next:e=>this.JobAllowUserJob3="1"==e.String,error:()=>this.errorCount++}),this.mythService.GetSetting({HostName:this.hostName,Key:"JobAllowUserJob4",Default:"0"}).subscribe({next:e=>this.JobAllowUserJob4="1"==e.String,error:()=>this.errorCount++})}saveForm(){this.successCount=0,this.errorCount=0,this.mythService.PutSetting({HostName:this.hostName,Key:"JobQueueMaxSimultaneousJobs",Value:String(this.JobQueueMaxSimultaneousJobs)}).subscribe(this.jqbObserver),this.mythService.PutSetting({HostName:this.hostName,Key:"JobQueueCheckFrequency",
Value:String(this.JobQueueCheckFrequency)}).subscribe(this.jqbObserver),this.mythService.PutSetting({HostName:this.hostName,Key:"JobQueueWindowStart",Value:this.setupService.formatTime(this.JobQueueWindowStart)}).subscribe(this.jqbObserver),this.mythService.PutSetting({HostName:this.hostName,Key:"JobQueueWindowEnd",Value:this.setupService.formatTime(this.JobQueueWindowEnd)}).subscribe(this.jqbObserver),this.mythService.PutSetting({HostName:this.hostName,Key:"JobQueueCPU",Value:this.JobQueueCPU}).subscribe(this.jqbObserver),this.mythService.PutSetting({HostName:this.hostName,Key:"JobAllowMetadata",Value:this.JobAllowMetadata?"1":"0"}).subscribe(this.jqbObserver),this.mythService.PutSetting({HostName:this.hostName,Key:"JobAllowCommFlag",Value:this.JobAllowCommFlag?"1":"0"}).subscribe(this.jqbObserver),this.mythService.PutSetting({HostName:this.hostName,Key:"JobAllowTranscode",Value:this.JobAllowTranscode?"1":"0"}).subscribe(this.jqbObserver),this.mythService.PutSetting({HostName:this.
hostName,Key:"JobAllowPreview",Value:this.JobAllowPreview?"1":"0"}).subscribe(this.jqbObserver),this.mythService.PutSetting({HostName:this.hostName,Key:"JobAllowUserJob1",Value:this.JobAllowUserJob1?"1":"0"}).subscribe(this.jqbObserver),this.mythService.PutSetting({HostName:this.hostName,Key:"JobAllowUserJob2",Value:this.JobAllowUserJob2?"1":"0"}).subscribe(this.jqbObserver),this.mythService.PutSetting({HostName:this.hostName,Key:"JobAllowUserJob3",Value:this.JobAllowUserJob3?"1":"0"}).subscribe(this.jqbObserver),this.mythService.PutSetting({HostName:this.hostName,Key:"JobAllowUserJob4",Value:this.JobAllowUserJob4?"1":"0"}).subscribe(this.jqbObserver)}}return
t.\u0275fac=function(e){return
new(e||t)(D(Me),D(Oe),D(qt))},t.\u0275cmp=z({type:t,selectors:[["app-jobqueue-backend"]],viewQuery:function(e,n){if(1&e&&(W(zQ,5),W(jQ,5),W($Q,5)),2&e){let
s;V(s=B())&&(n.currentForm=s.first),V(s=B())&&(n.JobQueueWindowStartHT=s.first),V(s=B())&&(n.JobQueueWindowEndHT=s.first)}},decls:7,vars:0,con
sts:[["name","jobqbackend",1,"ml-3","mr-3"],["jobqbackend","ngForm"],[1,"m-5"],["pTemplate","title"],["pTemplate","subtitle"],["pTemplate","content"],["pTemplate","footer"],[1,"grid"],[1,"mb-4","w-full"],[1,"form-group","field"],["for","JobQueueMaxSimultaneousJobs",1,"label","block"],["name","JobQueueMaxSimultaneousJobs","id","JobQueueMaxSimultaneousJobs",3,"ngModel","showButtons","min","max","step","ngModelChange"],[1,"block"],["for","JobQueueCheckFrequency",1,"label","block"],["name","JobQueueCheckFrequency","id","JobQueueCheckFrequency",3,"ngModel","showButtons","min","max","step","ngModelChange"],["for","JobQueueWindowStart",1,"label","block"],["name","JobQueueWindowStart","id","JobQueueWindowStart","ngControl","JobQueueWindowStart",3,"ngModel","timeOnly","readonlyInput","ngModelChange"],["JobQueueWindowStartHT",""],["for","JobQueueWindowEnd",1,"label","block"],["name","JobQueueWindowEnd","id","JobQueueWindowEnd","ngControl","JobQueueWindowEnd",3,"ngModel","timeOnly","readonlyIn
put","ngModelChange"],["JobQueueWindowEndHT",""],["for","JobQueueCPU",1,"label","block"],["optionLabel","name","optionValue","code","name","JobQueueCPU",1,"block","w-15rem","mb-2",3,"options","ngModel","ngModelChange"],["inputId","JobAllowMetadata","name","JobAllowMetadata",1,"label","mb-2","w-full",3,"ngModel","binary","label","ngModelChange"],["inputId","JobAllowCommFlag","name","JobAllowCommFlag",1,"label","mb-2","w-full",3,"ngModel","binary","label","ngModelChange"],["inputId","JobAllowTranscode","name","JobAllowTranscode",1,"label","mb-2","w-full",3,"ngModel","binary","label","ngModelChange"],["inputId","JobAllowPreview","name","JobAllowPreview",1,"label","mb-2","w-full",3,"ngModel","binary","label","ngModelChange"],["inputId","JobAllowUserJob1","name","JobAllowUserJob1",1,"label","mb-2","w-full",3,"ngModel","binary","label","ngModelChange"],["inputId","JobAllowUserJob2","name","JobAllowUserJob2",1,"label","mb-2","w-full",3,"ngModel","binary","label","ngModelChange"],["inputId"
,"JobAllowUserJob3","name","JobAllowUserJob3",1,"label","mb-2","w-full",3,"ngModel","binary","label","ngModelChange"],["inputId","JobAllowUserJob4","name","JobAllowUserJob4",1,"label","mb-2","w-full",3,"ngModel","binary","label","ngModelChange"],[1,"grid","nogutter"],[1,"col-12"],["severity","success",3,"text",4,"ngIf"],["severity","error",3,"text",4,"ngIf"],["icon","pi
pi-save","iconPos","left",1,"col","pr-1",3,"label","disabled","onClick"],["severity","success",3,"text"],["severity","error",3,"text"]],template:function(e,n){1&e&&(l(0,"form",0,1)(2,"p-card",2),_(3,WQ,2,3,"ng-template",3),_(4,KQ,2,3,"ng-template",4),_(5,QQ,88,104,"ng-template",5),_(6,ZQ,6,6,"ng-template",6),c()())},directives:[ze,Ue,He,Ne,ne,pt,Te,_e,xr,Ot,sn,Q,qe,ve],pipes:[ce],styles:[""]}),t})();const
eJ=["jobqglobal"];function
tJ(t,i){1&t&&(g(0),m(1,"translate")),2&t&&T("
",f(1,1,"settings.jobqglobal.title")," ")}function
nJ(t,i){}function iJ(t,i){if(1&t){const
e=I();l(0,"div",7)(1,"div",8)(2,"div",9)(3,"p-check
box",10),C("ngModelChange",function(s){return
v(e),d().JobsRunOnRecordHost=s}),m(4,"translate"),c(),l(5,"small",11),g(6),m(7,"translate"),c()(),l(8,"div",9)(9,"p-checkbox",12),C("ngModelChange",function(s){return
v(e),d().AutoCommflagWhileRecording=s}),m(10,"translate"),c(),l(11,"small",11),g(12),m(13,"translate"),c()(),l(14,"div",9)(15,"label",13),g(16),m(17,"translate"),c(),l(18,"input",14),C("ngModelChange",function(s){return
v(e),d().JobQueueCommFlagCommand=s}),c(),l(19,"small",11),g(20),m(21,"translate"),c()(),l(22,"div",9)(23,"label",15),g(24),m(25,"translate"),c(),l(26,"input",16),C("ngModelChange",function(s){return
v(e),d().JobQueueTranscodeCommand=s}),c(),l(27,"small",11),g(28),m(29,"translate"),c()(),l(30,"div",9)(31,"p-checkbox",17),C("ngModelChange",function(s){return
v(e),d().AutoTranscodeBeforeAutoCommflag=s}),m(32,"translate"),c(),l(33,"small",11),g(34),m(35,"translate"),c()(),l(36,"div",9)(37,"p-checkbox",18),C("ngModelChange",function(s){return
v(e),d().SaveTransco
ding=s}),m(38,"translate"),c(),l(39,"small",11),g(40),m(41,"translate"),c()()()()}if(2&t){const
e=d();a(3),x("label",f(4,22,"settings.jobqglobal.runonrechost_label")),p("ngModel",e.JobsRunOnRecordHost)("binary",!0),a(3),T("
",f(7,24,"settings.jobqglobal.runonrechost_desc"),"
"),a(3),x("label",f(10,26,"settings.jobqglobal.startcomm_label")),p("ngModel",e.AutoCommflagWhileRecording)("binary",!0),a(3),T("
",f(13,28,"settings.jobqglobal.startcomm_desc"),"
"),a(4),S(f(17,30,"settings.jobqglobal.commcmd_label")),a(2),p("ngModel",e.JobQueueCommFlagCommand),a(2),T("
",f(21,32,"settings.jobqglobal.commcmd_desc"),"
"),a(4),S(f(25,34,"settings.jobqglobal.transcmd_label")),a(2),p("ngModel",e.JobQueueTranscodeCommand),a(2),T("
",f(29,36,"settings.jobqglobal.transcmd_desc"),"
"),a(3),x("label",f(32,38,"settings.jobqglobal.transfirst_label")),p("ngModel",e.AutoTranscodeBeforeAutoCommflag)("binary",!0),a(3),T("
",f(35,40,"settings.jobqglobal.transfirst_desc"),"
"),a(3),x("label",f(38,42,"settings.j
obqglobal.transsave_label")),p("ngModel",e.SaveTranscoding)("binary",!0),a(3),T("
",f(41,44,"settings.jobqglobal.transsave_desc")," ")}}function
sJ(t,i){1&t&&(k(0,"p-message",24),m(1,"translate")),2&t&&x("text",f(1,1,"common.savesuccess"))}function
rJ(t,i){1&t&&(k(0,"p-message",25),m(1,"translate")),2&t&&x("text",f(1,1,"common.networkfail"))}function
oJ(t,i){if(1&t){const
e=I();l(0,"div",19)(1,"div",20),_(2,sJ,2,3,"p-message",21),_(3,rJ,2,3,"p-message",22),c(),l(4,"p-button",23),C("onClick",function(){v(e);const
s=d(),r=F(1);return
s.saveForm(),r.form.markAsPristine()}),m(5,"translate"),c()()}if(2&t){const
e=d(),n=F(1);a(2),p("ngIf",e.successCount>0&&0==e.errorCount&&!n.dirty),a(1),p("ngIf",e.errorCount>0),a(1),x("label",f(5,4,"common.save")),p("disabled",!n.dirty||e.setupService.schedulingEnabled)}}let
aJ=(()=>{class
t{constructor(e,n){this.setupService=e,this.mythService=n,this.successCount=0,this.errorCount=0,this.JobsRunOnRecordHost=!1,this.AutoCommflagWhileRecording=!1,this.Job
QueueCommFlagCommand="mythcommflag",this.JobQueueTranscodeCommand="mythtranscode",this.AutoTranscodeBeforeAutoCommflag=!1,this.SaveTranscoding=!1,this.JobQGlobalObs={next:s=>{s.bool?this.successCount++:(this.errorCount++,this.currentForm&&this.currentForm.form.markAsDirty())},error:s=>{console.error(s),this.errorCount++,this.currentForm&&this.currentForm.form.markAsDirty()}},this.getJobQGlobal()}ngOnInit(){}ngAfterViewInit(){this.setupService.setCurrentForm(this.currentForm)}getJobQGlobal(){this.mythService.GetSetting({HostName:"_GLOBAL_",Key:"JobsRunOnRecordHost",Default:"0"}).subscribe({next:e=>this.JobsRunOnRecordHost="1"==e.String,error:()=>this.errorCount++}),this.mythService.GetSetting({HostName:"_GLOBAL_",Key:"AutoCommflagWhileRecording",Default:"0"}).subscribe({next:e=>this.AutoCommflagWhileRecording="1"==e.String,error:()=>this.errorCount++}),this.mythService.GetSetting({HostName:"_GLOBAL_",Key:"JobQueueCommFlagCommand",Default:"mythcommflag"}).subscribe({next:e=>this.JobQu
eueCommFlagCommand=e.String,error:()=>this.errorCount++}),this.mythService.GetSetting({HostName:"_GLOBAL_",Key:"JobQueueTranscodeCommand",Default:"mythtranscode"}).subscribe({next:e=>this.JobQueueTranscodeCommand=e.String,error:()=>this.errorCount++}),this.mythService.GetSetting({HostName:"_GLOBAL_",Key:"AutoTranscodeBeforeAutoCommflag",Default:"0"}).subscribe({next:e=>this.AutoTranscodeBeforeAutoCommflag="1"==e.String,error:()=>this.errorCount++}),this.mythService.GetSetting({HostName:"_GLOBAL_",Key:"SaveTranscoding",Default:"0"}).subscribe({next:e=>this.SaveTranscoding="1"==e.String,error:()=>this.errorCount++})}saveForm(){this.successCount=0,this.errorCount=0,this.successCount=0,this.errorCount=0,this.mythService.PutSetting({HostName:"_GLOBAL_",Key:"JobsRunOnRecordHost",Value:this.JobsRunOnRecordHost?"1":"0"}).subscribe(this.JobQGlobalObs),this.mythService.PutSetting({HostName:"_GLOBAL_",Key:"AutoCommflagWhileRecording",Value:this.AutoCommflagWhileRecording?"1":"0"}).subscribe(th
is.JobQGlobalObs),this.mythService.PutSetting({HostName:"_GLOBAL_",Key:"JobQueueCommFlagCommand",Value:this.JobQueueCommFlagCommand}).subscribe(this.JobQGlobalObs),this.mythService.PutSetting({HostName:"_GLOBAL_",Key:"JobQueueTranscodeCommand",Value:this.JobQueueTranscodeCommand}).subscribe(this.JobQGlobalObs),this.mythService.PutSetting({HostName:"_GLOBAL_",Key:"AutoTranscodeBeforeAutoCommflag",Value:this.AutoTranscodeBeforeAutoCommflag?"1":"0"}).subscribe(this.JobQGlobalObs),this.mythService.PutSetting({HostName:"_GLOBAL_",Key:"SaveTranscoding",Value:this.SaveTranscoding?"1":"0"}).subscribe(this.JobQGlobalObs)}}return
t.\u0275fac=function(e){return
new(e||t)(D(Me),D(qt))},t.\u0275cmp=z({type:t,selectors:[["app-jobqueue-global"]],viewQuery:function(e,n){if(1&e&&W(eJ,5),2&e){let
s;V(s=B())&&(n.currentForm=s.first)}},decls:7,vars:0,consts:[["name","jobqglobal",1,"ml-3","mr-3"],["jobqglobal","ngForm"],[1,"m-5"],["pTemplate","title"],["pTemplate","subtitle"],["pTemplate","content"],["p
Template","footer"],[1,"grid"],[1,"mb-4","w-full"],[1,"form-group","field"],["inputId","JobsRunOnRecordHost","name","JobsRunOnRecordHost",1,"label","mb-2","w-full",3,"ngModel","binary","label","ngModelChange"],[1,"block"],["inputId","AutoCommflagWhileRecording","name","AutoCommflagWhileRecording",1,"label","mb-2","w-full",3,"ngModel","binary","label","ngModelChange"],["for","JobQueueCommFlagCommand",1,"label","block"],["pInputText","","id","JobQueueCommFlagCommand","name","JobQueueCommFlagCommand",1,"mb-2","form-control","w-full",3,"ngModel","ngModelChange"],["for","JobQueueTranscodeCommand",1,"label","block"],["pInputText","","id","JobQueueTranscodeCommand","name","JobQueueTranscodeCommand",1,"mb-2","form-control","w-full",3,"ngModel","ngModelChange"],["inputId","AutoTranscodeBeforeAutoCommflag","name","AutoTranscodeBeforeAutoCommflag",1,"label","mb-2","w-full",3,"ngModel","binary","label","ngModelChange"],["inputId","SaveTranscoding","name","SaveTranscoding",1,"label","mb-2","w-fu
ll",3,"ngModel","binary","label","ngModelChange"],[1,"grid","nogutter"],[1,"col-12"],["severity","success",3,"text",4,"ngIf"],["severity","error",3,"text",4,"ngIf"],["icon","pi
pi-save","iconPos","left",1,"col","pr-1",3,"label","disabled","onClick"],["severity","success",3,"text"],["severity","error",3,"text"]],template:function(e,n){1&e&&(l(0,"form",0,1)(2,"p-card",2),_(3,tJ,2,3,"ng-template",3),_(4,nJ,0,0,"ng-template",4),_(5,iJ,42,46,"ng-template",5),_(6,oJ,6,6,"ng-template",6),c()())},directives:[ze,Ue,He,Ne,ne,sn,Te,_e,Ye,Q,qe,ve],pipes:[ce],styles:[""]}),t})();const
lJ=["jobqcommands"];function
cJ(t,i){1&t&&(g(0),m(1,"translate")),2&t&&T("
",f(1,1,"settings.jobqcommands.title")," ")}function
uJ(t,i){1&t&&(g(0),m(1,"translate")),2&t&&T("
",f(1,1,"settings.jobqcommands.subtitle")," ")}const
dS=function(t){return{num:t}};function dJ(t,i){if(1&t){const
e=I();l(0,"div")(1,"div",10)(2,"label",11),k(3,"div",12),c(),l(4,"input",13,14),C("ngModelChange",function(s){const
o=v(e).$implic
it;return
d(2).JobQCommandsData.UserJobDesc[o]=s}),c(),l(6,"small",15),g(7),m(8,"translate"),c()(),l(9,"div",10)(10,"label",11),k(11,"div",12),c(),l(12,"input",13,16),C("ngModelChange",function(s){const
o=v(e).$implicit;return
d(2).JobQCommandsData.UserJob[o]=s}),c(),l(14,"small",15),g(15),m(16,"translate"),c()()()}if(2&t){const
e=i.$implicit,n=d(2);a(2),Bn("for","UserJobDesc",e,""),a(1),p("translate","settings.jobqcommands.job_label")("translateParams",U(18,dS,e+1)),a(1),Bn("id","UserJobDesc",e,"")("name","UserJobDesc",e,""),p("ngModel",n.JobQCommandsData.UserJobDesc[e]),a(3),T("
",f(8,14,"settings.jobqcommands.job_desc"),"
"),a(3),Bn("for","UserJob",e,""),a(1),p("translate","settings.jobqcommands.command_label")("translateParams",U(20,dS,e+1)),a(1),Bn("id","UserJob",e,"")("name","UserJob",e,""),p("ngModel",n.JobQCommandsData.UserJob[e]),a(3),T("
",f(16,16,"settings.jobqcommands.command_desc")," ")}}function
pJ(t,i){if(1&t&&(l(0,"div",7)(1,"div",8),_(2,dJ,17,22,"div",9),c()()),2&t)
{const e=d();a(2),p("ngForOf",e.items)}}function
hJ(t,i){1&t&&(k(0,"p-message",22),m(1,"translate")),2&t&&x("text",f(1,1,"common.savesuccess"))}function
mJ(t,i){1&t&&(k(0,"p-message",23),m(1,"translate")),2&t&&x("text",f(1,1,"common.networkfail"))}function
fJ(t,i){if(1&t){const
e=I();l(0,"div",17)(1,"div",18),_(2,hJ,2,3,"p-message",19),_(3,mJ,2,3,"p-message",20),c(),l(4,"p-button",21),C("onClick",function(){v(e);const
s=d(),r=F(1);return
s.saveForm(),r.form.markAsPristine()}),m(5,"translate"),c()()}if(2&t){const
e=d(),n=F(1);a(2),p("ngIf",e.JobQCommandsData.successCount>0&&0==e.JobQCommandsData.errorCount&&!n.dirty),a(1),p("ngIf",e.JobQCommandsData.errorCount>0),a(1),x("label",f(5,4,"common.save")),p("disabled",!n.dirty||e.setupService.schedulingEnabled)}}let
gJ=(()=>{class
t{constructor(e){this.setupService=e,this.items=[0,1,2,3],this.JobQCommandsData=this.setupService.getJobQCommands()}ngOnInit(){}ngAfterViewInit(){this.setupService.setCurrentForm(this.currentForm)}saveForm(){this
.setupService.saveJobQCommands(this.currentForm)}}return t.\u0275fac=function(e){return
new(e||t)(D(Me))},t.\u0275cmp=z({type:t,selectors:[["app-jobqueue-commands"]],viewQuery:function(e,n){if(1&e&&W(lJ,5),2&e){let
s;V(s=B())&&(n.currentForm=s.first)}},decls:7,vars:0,consts:[["name","jobqcommands",1,"ml-3","mr-3"],["jobqcommands","ngForm"],[1,"m-5"],["pTemplate","title"],["pTemplate","subtitle"],["pTemplate","content"],["pTemplate","footer"],[1,"grid"],[1,"mb-4","w-full"],[4,"ngFor","ngForOf"],[1,"form-group","field"],[1,"label","block",3,"for"],[3,"translate","translateParams"],["pInputText","",1,"mb-2","form-control","w-full",3,"id","ngModel","name","ngModelChange"],["UserJobDesc{{item}}","ngModel"],[1,"block"],["UserJob{{item}}","ngModel"],[1,"grid","nogutter"],[1,"col-12"],["severity","success",3,"text",4,"ngIf"],["severity","error",3,"text",4,"ngIf"],["icon","pi
pi-save","iconPos","left",1,"col","pr-1",3,"label","disabled","onClick"],["severity","success",3,"text"],["severity",
"error",3,"text"]],template:function(e,n){1&e&&(l(0,"form",0,1)(2,"p-card",2),_(3,cJ,2,3,"ng-template",3),_(4,uJ,2,3,"ng-template",4),_(5,pJ,3,1,"ng-template",5),_(6,fJ,6,6,"ng-template",6),c()())},directives:[ze,Ue,He,Ne,ne,at,mu,Ye,Te,_e,Q,qe,ve],pipes:[ce],styles:[""]}),t})();const
_J=["epgdownload"];function
bJ(t,i){1&t&&(g(0),m(1,"translate")),2&t&&T("
",f(1,1,"settings.epgdownload.title")," ")}function
vJ(t,i){}function CJ(t,i){if(1&t){const
e=I();l(0,"div",7)(1,"div",8)(2,"div",9)(3,"p-checkbox",10),C("ngModelChange",function(s){return
v(e),d().MythFillEnabled=s}),m(4,"translate"),c(),l(5,"small",11),g(6),m(7,"translate"),c()()()()}if(2&t){const
e=d();a(3),x("label",f(4,4,"settings.epgdownload.enabled_label")),p("ngModel",e.MythFillEnabled)("binary",!0),a(3),T("
",f(7,6,"settings.epgdownload.enabled_desc")," ")}}function
yJ(t,i){1&t&&(k(0,"p-message",17),m(1,"translate")),2&t&&x("text",f(1,1,"common.savesuccess"))}function
wJ(t,i){1&t&&(k(0,"p-message",18),m(1,"translate")),2
&t&&x("text",f(1,1,"common.networkfail"))}function
TJ(t,i){if(1&t){const
e=I();l(0,"div",12)(1,"div",13),_(2,yJ,2,3,"p-message",14),_(3,wJ,2,3,"p-message",15),c(),l(4,"p-button",16),C("onClick",function(){v(e);const
s=d(),r=F(1);return
s.saveForm(),r.form.markAsPristine()}),m(5,"translate"),c()()}if(2&t){const
e=d(),n=F(1);a(2),p("ngIf",e.successCount>0&&0==e.errorCount&&!n.dirty),a(1),p("ngIf",e.errorCount>0),a(1),x("label",f(5,4,"common.save")),p("disabled",!n.dirty||e.setupService.schedulingEnabled)}}let
SJ=(()=>{class
t{constructor(e,n){this.setupService=e,this.mythService=n,this.successCount=0,this.errorCount=0,this.MythFillEnabled=!0,this.EpgDownloadObs={next:s=>{s.bool?this.successCount++:(this.errorCount++,this.currentForm&&this.currentForm.form.markAsDirty())},error:s=>{console.error(s),this.errorCount++,this.currentForm&&this.currentForm.form.markAsDirty()}},this.getEpgDownload()}ngOnInit(){}ngAfterViewInit(){this.setupService.setCurrentForm(this.currentForm)}getEpgDownloa
d(){this.successCount=0,this.errorCount=0,this.mythService.GetSetting({HostName:"_GLOBAL_",Key:"MythFillEnabled",Default:"1"}).subscribe({next:e=>this.MythFillEnabled="1"==e.String,error:()=>this.errorCount++})}saveForm(){console.log("save
form
clicked"),this.successCount=0,this.errorCount=0,this.mythService.PutSetting({HostName:"_GLOBAL_",Key:"MythFillEnabled",Value:this.MythFillEnabled?"1":"0"}).subscribe(this.EpgDownloadObs)}}return
t.\u0275fac=function(e){return
new(e||t)(D(Me),D(qt))},t.\u0275cmp=z({type:t,selectors:[["app-epg-downloading"]],viewQuery:function(e,n){if(1&e&&W(_J,5),2&e){let
s;V(s=B())&&(n.currentForm=s.first)}},decls:7,vars:0,consts:[["name","epgdownload",1,"ml-3","mr-3"],["epgdownload","ngForm"],[1,"m-5"],["pTemplate","title"],["pTemplate","subtitle"],["pTemplate","content"],["pTemplate","footer"],[1,"grid"],[1,"mb-4","w-full"],[1,"form-group","field"],["inputId","MythFillEnabled","name","MythFillEnabled",1,"label","mb-2","w-full",3,"ngModel","binary","label","
ngModelChange"],[1,"block"],[1,"grid","nogutter"],[1,"col-12"],["severity","success",3,"text",4,"ngIf"],["severity","error",3,"text",4,"ngIf"],["icon","pi
pi-save","iconPos","left",1,"col","pr-1",3,"label","disabled","onClick"],["severity","success",3,"text"],["severity","error",3,"text"]],template:function(e,n){1&e&&(l(0,"form",0,1)(2,"p-card",2),_(3,bJ,2,3,"ng-template",3),_(4,vJ,0,0,"ng-template",4),_(5,CJ,8,8,"ng-template",5),_(6,TJ,6,6,"ng-template",6),c()())},directives:[ze,Ue,He,Ne,ne,sn,Te,_e,Q,qe,ve],pipes:[ce],styles:[""]}),t})();function
xJ(t,i){if(1&t&&(l(0,"b"),g(1),c()),2&t){const
e=d();a(1),T("\xa0",e.dirtyMessages[0],"")}}function
DJ(t,i){1&t&&k(0,"app-host-address")}function
MJ(t,i){if(1&t&&(l(0,"b"),g(1),c()),2&t){const
e=d();a(1),T("\xa0",e.dirtyMessages[1],"")}}function
kJ(t,i){1&t&&k(0,"app-locale")}function
IJ(t,i){if(1&t&&(l(0,"b"),g(1),c()),2&t){const
e=d();a(1),T("\xa0",e.dirtyMessages[2],"")}}function
EJ(t,i){1&t&&k(0,"app-misc-settings")}function RJ(t,i){i
f(1&t&&(l(0,"b"),g(1),c()),2&t){const
e=d();a(1),T("\xa0",e.dirtyMessages[3],"")}}function
LJ(t,i){1&t&&k(0,"app-eit-scanner")}function
OJ(t,i){if(1&t&&(l(0,"b"),g(1),c()),2&t){const
e=d();a(1),T("\xa0",e.dirtyMessages[4],"")}}function
AJ(t,i){1&t&&k(0,"app-shutdown-wakeup")}function
PJ(t,i){if(1&t&&(l(0,"b"),g(1),c()),2&t){const
e=d();a(1),T("\xa0",e.dirtyMessages[5],"")}}function
FJ(t,i){1&t&&k(0,"app-backend-wakeup")}function
NJ(t,i){if(1&t&&(l(0,"b"),g(1),c()),2&t){const
e=d();a(1),T("\xa0",e.dirtyMessages[6],"")}}function
VJ(t,i){1&t&&k(0,"app-backend-control")}function
BJ(t,i){if(1&t&&(l(0,"b"),g(1),c()),2&t){const
e=d();a(1),T("\xa0",e.dirtyMessages[7],"")}}function
HJ(t,i){1&t&&k(0,"app-jobqueue-backend")}function
qJ(t,i){if(1&t&&(l(0,"b"),g(1),c()),2&t){const
e=d();a(1),T("\xa0",e.dirtyMessages[8],"")}}function
GJ(t,i){1&t&&k(0,"app-jobqueue-global")}function
UJ(t,i){if(1&t&&(l(0,"b"),g(1),c()),2&t){const
e=d();a(1),T("\xa0",e.dirtyMessages[9],"")}}function
zJ(t,i){1&t&&k(0
,"app-jobqueue-commands")}function
jJ(t,i){if(1&t&&(l(0,"b"),g(1),c()),2&t){const
e=d();a(1),T("\xa0",e.dirtyMessages[10],"")}}function
$J(t,i){1&t&&k(0,"app-epg-downloading")}let WJ=(()=>{class
t{constructor(e,n,s){this.setupService=e,this.translate=n,this.router=s,this.m_showHelp=!1,this.currentTab=-1,this.dirtyMessages=["","","","","","","","","","","","","","","",""],this.forms=[,,,,,,,,,,,,,,,,],this.dirtyText="settings.common.unsaved",this.warningText="settings.common.warning",this.setupService.setCurrentForm(null),n.get(this.dirtyText).subscribe(r=>this.dirtyText=r),n.get(this.warningText).subscribe(r=>this.warningText=r)}ngOnInit(){}onTabOpen(e){this.showDirty(),void
0===this.forms[e.index]&&(this.forms[e.index]=this.setupService.getCurrentForm()),this.currentTab=e.index,console.log("onTabOpen"),console.log(e),this.dirtyMessages[this.currentTab]=""}onTabClose(e){this.showDirty()}showDirty(){-1!=this.currentTab&&(this.dirtyMessages[this.currentTab]=this.forms[this.currentTab]
.dirty?this.dirtyText:"")}showHelp(){this.m_showHelp=!0}confirm(e){return
oe(window.confirm(e))}canDeactivate(){return!(this.forms[this.currentTab]&&this.forms[this.currentTab].dirty||this.dirtyMessages.find(e=>e.length>0))||this.confirm(this.warningText)}onWindowClose(e){(this.forms[this.currentTab]&&this.forms[this.currentTab].dirty||this.dirtyMessages.find(n=>n.length>0))&&(e.preventDefault(),e.returnValue=!1)}}return
t.\u0275fac=function(e){return
new(e||t)(D(Me),D(Oe),D(It))},t.\u0275cmp=z({type:t,selectors:[["app-general-settings"]],hostBindings:function(e,n){1&e&&C("beforeunload",function(r){return
n.onWindowClose(r)},!1,ni)},decls:54,vars:42,consts:[[1,"col-12","w-full","p-0",3,"onClose","onOpen"],[3,"header"],["pTemplate","header"],["pTemplate","content"],[1,"flex","justify-content-end"],["icon","pi
pi-angle-left","iconPos","left",1,"p-3",3,"label","onClick"],["icon","pi
pi-angle-right","iconPos","right",1,"p-3",3,"label","onClick"]],template:function(e,n){1&e&&(l(0,"p-card
")(1,"h2"),g(2),m(3,"translate"),c(),l(4,"p-accordion",0),C("onClose",function(r){return
n.onTabClose(r)})("onOpen",function(r){return
n.onTabOpen(r)}),l(5,"p-accordionTab",1),m(6,"translate"),_(7,xJ,2,1,"ng-template",2),_(8,DJ,1,0,"ng-template",3),c(),l(9,"p-accordionTab",1),m(10,"translate"),_(11,MJ,2,1,"ng-template",2),_(12,kJ,1,0,"ng-template",3),c(),l(13,"p-accordionTab",1),m(14,"translate"),_(15,IJ,2,1,"ng-template",2),_(16,EJ,1,0,"ng-template",3),c(),l(17,"p-accordionTab",1),m(18,"translate"),_(19,RJ,2,1,"ng-template",2),_(20,LJ,1,0,"ng-template",3),c(),l(21,"p-accordionTab",1),m(22,"translate"),_(23,OJ,2,1,"ng-template",2),_(24,AJ,1,0,"ng-template",3),c(),l(25,"p-accordionTab",1),m(26,"translate"),_(27,PJ,2,1,"ng-template",2),_(28,FJ,1,0,"ng-template",3),c(),l(29,"p-accordionTab",1),m(30,"translate"),_(31,NJ,2,1,"ng-template",2),_(32,VJ,1,0,"ng-template",3),c(),l(33,"p-accordionTab",1),m(34,"translate"),_(35,BJ,2,1,"ng-template",2),_(36,HJ,1,0,"ng-template",3),c(),l(37,"p-ac
cordionTab",1),m(38,"translate"),_(39,qJ,2,1,"ng-template",2),_(40,GJ,1,0,"ng-template",3),c(),l(41,"p-accordionTab",1),m(42,"translate"),_(43,UJ,2,1,"ng-template",2),_(44,zJ,1,0,"ng-template",3),c(),l(45,"p-accordionTab",1),m(46,"translate"),_(47,jJ,2,1,"ng-template",2),_(48,$J,1,0,"ng-template",3),c()(),l(49,"div",4)(50,"p-button",5),C("onClick",function(){return
n.router.navigate(["setupwizard/selectlanguage"])}),m(51,"translate"),c(),l(52,"p-button",6),C("onClick",function(){return
n.router.navigate(["setupwizard/capture-cards"])}),m(53,"translate"),c()()()),2&e&&(a(2),S(f(3,14,"settings.general.title")),a(3),x("header",f(6,16,"settings.hostaddress.title")),a(4),x("header",f(10,18,"settings.locale.title")),a(4),x("header",f(14,20,"settings.misc.title")),a(4),x("header",f(18,22,"settings.eit.title")),a(4),x("header",f(22,24,"settings.shutwake.title")),a(4),x("header",f(26,26,"settings.backendwake.title")),a(4),x("header",f(30,28,"settings.backendctrl.title")),a(4),x("header",f(34
,30,"settings.jobqbackend.title")),a(4),x("header",f(38,32,"settings.jobqglobal.title")),a(4),x("header",f(42,34,"settings.jobqcommands.title")),a(4),x("header",f(46,36,"settings.epgdownload.title")),a(5),x("label",f(51,38,"common.back")),a(2),x("label",f(53,40,"common.next")))},directives:[Ne,Ss,Ts,ne,KK,iQ,dQ,vQ,MQ,PQ,UQ,XQ,aJ,gJ,SJ,ve],pipes:[ce],styles:["@media
screen and (max-width:
48rem){.p-card-body,.p-card-content,.p-accordion-content{padding:0rem!important}}\n"],encapsulation:2}),t})(),Gt=(()=>{class
t{constructor(e){this.httpClient=e,this.diseqcTypes=[{description:"Switch",type:"switch",inactive:!1},{description:"Rotor",type:"rotor",inactive:!1},{description:"Unicable",type:"scr",inactive:!1},{description:"LNB",type:"lnb",inactive:!1}]}GetCaptureCardList(e,n){let
s=(new ye).set("HostName",e).set("CardType",n);return
this.httpClient.get("/Capture/GetCaptureCardList",{params:s})}GetCardTypeList(){return
this.httpClient.get("/Capture/GetCardTypeList",{})}UpdateCaptureCard(e,
n,s){return
this.httpClient.post("/Capture/UpdateCaptureCard",{Cardid:e,Setting:n,Value:s})}DeleteCaptureCard(e){return
this.httpClient.post("/Capture/RemoveCardInput",{CardInputId:e})}AddCaptureCard(e){return
this.httpClient.post("/Capture/AddCaptureCard",e)}GetCaptureDeviceList(e){let
n=(new ye).set("CardType",e);return
this.httpClient.get("/Capture/GetCaptureDeviceList",{params:n})}GetDiseqcTreeList(){return
this.httpClient.get("/Capture/GetDiseqcTreeList",{})}AddDiseqcTree(e){return
this.httpClient.post("/Capture/AddDiseqcTree",e)}UpdateDiseqcTree(e){return
this.httpClient.post("/Capture/UpdateDiseqcTree",e)}DeleteDiseqcTree(e){return
this.httpClient.post("/Capture/RemoveDiseqcTree",{DiseqcId:e})}GetDiseqcConfigList(){return
this.httpClient.get("/Capture/GetDiseqcConfigList",{})}AddDiseqcConfig(e){return
this.httpClient.post("/Capture/AddDiseqcConfig",e)}DeleteDiseqcConfig(e){return
console.log(e),this.httpClient.post("/Capture/RemoveDiseqcConfig",{CardId:e})}GetInputGroupList()
{return
this.httpClient.get("/Capture/GetUserInputGroupList",{})}SetInputMaxRecordings(e,n){return
this.httpClient.post("/Capture/SetInputMaxRecordings",{InputId:e,Max:n})}AddUserInputGroup(e){return
this.httpClient.post("/Capture/AddUserInputGroup",{Name:e})}LinkInputGroup(e,n){return
this.httpClient.post("/Capture/LinkInputGroup",{InputId:e,InputGroupId:n})}UnlinkInputGroup(e,n){return
this.httpClient.post("/Capture/UnlinkInputGroup",{InputId:e,InputGroupId:n})}GetRecProfileGroupList(e,n,s){let
r=(new
ye).set("GroupId",e).set("ProfileId",n).set("OnlyInUse",s);return
this.httpClient.get("/Capture/GetRecProfileGroupList",{params:r})}AddRecProfile(e,n,s,r){return
this.httpClient.post("/Capture/AddRecProfile",{GroupId:e,ProfileName:n,VideoCodec:s,AudioCodec:r})}DeleteRecProfile(e){return
this.httpClient.post("/Capture/DeleteRecProfile",{ProfileId:e})}UpdateRecProfile(e,n,s){return
this.httpClient.post("/Capture/UpdateRecProfile",{ProfileId:e,VideoCodec:n,AudioCodec:s})}UpdateRecProfil
eParam(e,n,s){return
this.httpClient.post("/Capture/UpdateRecProfileParam",{ProfileId:e,Name:n,Value:s})}GetCardSubType(e){let
n=(new ye).set("cardid",e);return
this.httpClient.get("/Capture/GetCardSubType",{params:n})}}return
t.\u0275fac=function(e){return
new(e||t)(K(Bi))},t.\u0275prov=X({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();function
KJ(t,i){if(1&t){const
e=I();l(0,"p-button",14),C("onClick",function(){return
v(e),d().displayModal=!1}),m(1,"translate"),c(),l(2,"p-button",15),C("onClick",function(){return
v(e),d().newCard()}),m(3,"translate"),c()}if(2&t){const
e=d();x("label",f(1,3,"common.cancel")),a(2),x("label",f(3,5,"common.ok")),p("disabled",""==e.selectedCardType.CardType)}}function
QJ(t,i){if(1&t){const
e=I();l(0,"p-button",16),C("click",function(){return
v(e),d().displayDeleteAllonHost=!1}),m(1,"translate"),c(),l(2,"p-button",17),C("click",function(){return
v(e),d().deleteAllOnHost()}),m(3,"translate"),c()}2&t&&(x("label",f(1,2,"common.no")),a(2),x("label",
f(3,4,"common.yes")))}function JJ(t,i){if(1&t){const
e=I();l(0,"p-button",16),C("click",function(){return
v(e),d().displayDeleteAll=!1}),m(1,"translate"),c(),l(2,"p-button",17),C("click",function(){return
v(e),d().deleteAllOnAllHosts()}),m(3,"translate"),c()}2&t&&(x("label",f(1,2,"common.no")),a(2),x("label",f(3,4,"common.yes")))}function
YJ(t,i){1&t&&(l(0,"div",18),k(1,"br")(2,"p-message",19),m(3,"translate"),k(4,"br"),c()),2&t&&(a(2),x("text",f(3,1,"settings.common.successful_delete")))}function
ZJ(t,i){1&t&&(l(0,"div",18),k(1,"br")(2,"p-message",20),m(3,"translate"),k(4,"br"),c()),2&t&&(a(2),x("text",f(3,1,"common.networkfail")))}function
XJ(t,i){if(1&t&&(l(0,"div",24)(1,"div",25),g(2),l(3,"b"),g(4),c()()()),2&t){const
e=d().index,n=d();a(2),yo(" ",n.m_CaptureCardsFiltered[e].CardType,"
",n.m_CaptureCardsFiltered[e].VideoDevice,"
(",n.m_CaptureCardsFiltered[e].DisplayName,")
"),a(2),T("\xa0",n.dirtyMessages[e],"")}}function
eY(t,i){if(1&t){const e=I();l(0,"p-button",16),C("click"
,function(){v(e);const s=d(2).index;return
d().displayDeleteThis[s]=!1}),m(1,"translate"),c(),l(2,"p-button",17),C("click",function(){v(e);const
s=d(2).index;return
d().deleteThis(s)}),m(3,"translate"),c()}2&t&&(x("label",f(1,2,"common.no")),a(2),x("label",f(3,4,"common.yes")))}function
tY(t,i){if(1&t&&k(0,"app-ceton",31),2&t){const
e=d(2).index,n=d();p("card",n.m_CaptureCardsFiltered[e])("cardList",n.m_CaptureCardList)}}function
nY(t,i){if(1&t&&k(0,"app-dvb",32),2&t){const
e=d(2).index,n=d();p("card",n.m_CaptureCardsFiltered[e])("cardList",n.m_CaptureCardList)("diseqcTreeList",n.diseqcTreeList)("parent",n)}}function
iY(t,i){if(1&t&&k(0,"app-external",31),2&t){const
e=d(2).index,n=d();p("card",n.m_CaptureCardsFiltered[e])("cardList",n.m_CaptureCardList)}}function
sY(t,i){if(1&t&&k(0,"app-hdhomerun",31),2&t){const
e=d(2).index,n=d();p("card",n.m_CaptureCardsFiltered[e])("cardList",n.m_CaptureCardList)}}function
rY(t,i){if(1&t&&k(0,"app-iptv",31),2&t){const
e=d(2).index,n=d();p("card"
,n.m_CaptureCardsFiltered[e])("cardList",n.m_CaptureCardList)}}function
oY(t,i){if(1&t&&k(0,"app-import",31),2&t){const
e=d(2).index,n=d();p("card",n.m_CaptureCardsFiltered[e])("cardList",n.m_CaptureCardList)}}function
aY(t,i){if(1&t&&k(0,"app-demo",31),2&t){const
e=d(2).index,n=d();p("card",n.m_CaptureCardsFiltered[e])("cardList",n.m_CaptureCardList)}}function
lY(t,i){if(1&t&&k(0,"app-v4l2",31),2&t){const
e=d(2).index,n=d();p("card",n.m_CaptureCardsFiltered[e])("cardList",n.m_CaptureCardList)}}function
cY(t,i){if(1&t&&k(0,"app-hdpvr",31),2&t){const
e=d(2).index,n=d();p("card",n.m_CaptureCardsFiltered[e])("cardList",n.m_CaptureCardList)}}function
uY(t,i){if(1&t&&k(0,"app-satip",31),2&t){const
e=d(2).index,n=d();p("card",n.m_CaptureCardsFiltered[e])("cardList",n.m_CaptureCardList)}}function
dY(t,i){if(1&t&&k(0,"app-vbox",31),2&t){const
e=d(2).index,n=d();p("card",n.m_CaptureCardsFiltered[e])("cardList",n.m_CaptureCardList)}}function
pY(t,i){if(1&t&&k(0,"app-firewire",31),2&t){const e
=d(2).index,n=d();p("card",n.m_CaptureCardsFiltered[e])("cardList",n.m_CaptureCardList)}}function
hY(t,i){1&t&&(l(0,"div"),k(1,"br"),g(2,"Not Supported
"),c())}const
Dd=function(){return{width:"50vw"}},mY=function(t,i,e){return{CardType:t,VideoDevice:i,DisplayName:e}};function
fY(t,i){if(1&t){const
e=I();l(0,"p-button",26),C("onClick",function(){v(e);const
s=d().index;return
d().displayDeleteThis[s]=!0}),m(1,"translate"),c(),l(2,"p-dialog",2),C("visibleChange",function(s){v(e);const
r=d().index;return
d().displayDeleteThis[r]=s}),m(3,"translate"),l(4,"h2"),g(5),m(6,"translate"),c(),l(7,"p"),g(8),m(9,"translate"),c(),_(10,eY,4,6,"ng-template",4),c(),l(11,"div",27),_(12,tY,1,2,"app-ceton",28),_(13,nY,1,4,"app-dvb",29),_(14,iY,1,2,"app-external",28),_(15,sY,1,2,"app-hdhomerun",28),_(16,rY,1,2,"app-iptv",28),_(17,oY,1,2,"app-import",28),_(18,aY,1,2,"app-demo",28),_(19,lY,1,2,"app-v4l2",28),_(20,cY,1,2,"app-hdpvr",28),_(21,uY,1,2,"app-satip",28),_(22,dY,1,2,"app-vbox",28),_(23,pY,1,2,"ap
p-firewire",28),_(24,hY,3,0,"div",30),c()}if(2&t){const
e=d().index,n=d();x("label",f(1,24,"settings.capture.delete_this")),p("disabled",!n.m_CaptureCardsFiltered[e].CardId||n.setupService.schedulingEnabled),a(2),q(A(33,Dd)),x("header",f(3,26,"settings.capture.delete_this")),p("visible",n.displayDeleteThis[e])("modal",!0)("draggable",!1)("resizable",!1),a(3),S(f(6,28,"settings.common.ru_sure")),a(3),S(Dt(9,30,"settings.capture.delete_details",Qt(34,mY,n.m_CaptureCardsFiltered[e].CardType,n.m_CaptureCardsFiltered[e].VideoDevice,n.m_CaptureCardsFiltered[e].DisplayName))),a(3),p("ngSwitch",n.m_CaptureCardsFiltered[e].CardType),a(1),p("ngSwitchCase","CETON"),a(1),p("ngSwitchCase","DVB"),a(1),p("ngSwitchCase","EXTERNAL"),a(1),p("ngSwitchCase","HDHOMERUN"),a(1),p("ngSwitchCase","FREEBOX"),a(1),p("ngSwitchCase","IMPORT"),a(1),p("ngSwitchCase","DEMO"),a(1),p("ngSwitchCase","V4L2ENC"),a(1),p("ngSwitchCase","HDPVR"),a(1),p("ngSwitchCase","SATIP"),a(1),p("ngSwitchCase","VBOX"),a(1),p("ngSwitch
Case","FIREWIRE")}}function gY(t,i){if(1&t){const
e=I();l(0,"p-accordionTab",21),C("selectedChange",function(s){const
o=v(e).index;return
d().activeTab[o]=s}),_(1,XJ,5,4,"ng-template",22),_(2,fY,25,38,"ng-template",23),c()}if(2&t){const
e=i.index,n=d();p("disabled",n.disabledTab[e])("selected",n.activeTab[e])}}const
_Y=function(){return{height:"50vh"}},pS=function(t){return{host:t}};let
hS=(()=>{class
t{constructor(e,n,s,r,o){this.mythService=e,this.router=n,this.captureCardService=s,this.setupService=r,this.translate=o,this.currentTab=-1,this.deletedTab=-1,this.dirtyMessages=[],this.forms=[],this.disabledTab=[],this.activeTab=[],this.displayDeleteThis=[],this.dirtyText="settings.common.unsaved",this.warningText="settings.common.warning",this.deletedText="settings.common.deleted",this.newText="settings.common.new",this.m_hostName="",this.displayModal=!1,this.selectedCardType={CardType:"",Description:""},this.displayDeleteAllonHost=!1,this.displayDeleteAll=!1,this.successCount=0,this
.expectedCount=0,this.errorCount=0,this.deleteAll=!1,this.delObserver={next:u=>{u.bool?(this.successCount++,this.successCount==this.expectedCount&&(this.deleteAll?(this.loadCards(!0),this.deleteAll=!1):this.deletedTab>-1&&(this.dirtyMessages[this.deletedTab]=this.deletedText,this.disabledTab[this.deletedTab]=!0,this.activeTab[this.deletedTab]=!1,this.deletedTab=-1))):(this.errorCount++,this.deletedTab=-1,this.deleteAll=!1)},error:u=>{console.error(u),this.errorCount++,this.deleteAll=!1}},this.setupService.setCurrentForm(null),this.mythService.GetHostName().subscribe(u=>{this.m_hostName=u.String,this.loadCards(!0)}),o.get(this.dirtyText).subscribe(u=>this.dirtyText=u),o.get(this.warningText).subscribe(u=>this.warningText=u),o.get(this.deletedText).subscribe(u=>this.deletedText=u),o.get(this.newText).subscribe(u=>this.newText=u),this.captureCardService.GetCardTypeList().subscribe(u=>{this.cardTypes=u.CardTypeList.CardTypes,this.cardTypes.forEach(h=>{h.Inactive=t.supportedCardTypes.ind
exOf(h.CardType)<0})})}loadCards(e){this.m_CaptureCardList$=this.captureCardService.GetCaptureCardList("",""),this.m_CaptureCardList$.subscribe(n=>{this.m_CaptureCardList=n,e&&this.filterCards()})}filterCards(){this.m_CaptureCardsFiltered=this.m_CaptureCardList.CaptureCardList.CaptureCards.filter(e=>0==e.ParentId&&e.HostName==this.m_hostName),this.dirtyMessages=[],this.forms=[],this.disabledTab=[],this.activeTab=[],this.displayDeleteThis=[];for(let
e=0;e<this.m_CaptureCardsFiltered.length;e++)this.dirtyMessages.push(""),this.disabledTab.push(!1),this.activeTab.push(!1),this.displayDeleteThis.push(!1)}ngOnInit(){this.loadDiseqc()}loadDiseqc(){this.captureCardService.GetDiseqcTreeList().subscribe({next:e=>{this.diseqcTreeList=e},error:e=>{console.log("GetDiseqcTreeList",e),this.errorCount++}})}onTabOpen(e){this.successCount+this.errorCount>=this.expectedCount&&(this.errorCount=0,this.successCount=0,this.expectedCount=0),this.showDirty();let
n=this.setupService.getCurrentForm();null!=n
&&(this.forms[e.index]=n),this.setupService.setCurrentForm(null),this.currentTab=e.index,this.dirtyMessages[this.currentTab]=""}onTabClose(e){this.showDirty(),this.currentTab=-1}showDirty(){-1==this.currentTab||!this.forms[this.currentTab]||this.disabledTab[this.currentTab]||(this.dirtyMessages[this.currentTab]=this.forms[this.currentTab].dirty?this.dirtyText:this.m_CaptureCardsFiltered[this.currentTab].CardId?"":this.newText)}newCard(){this.displayModal=!1;let
e={CardType:this.selectedCardType.CardType,HostName:this.m_hostName,ChannelTimeout:3e3,SignalTimeout:1e3};switch(e.CardType){case"EXTERNAL":e.ChannelTimeout=2e4;break;case"FREEBOX":e.VideoDevice="http://mafreebox.freebox.fr/freeboxtv/playlist.m3u",e.ChannelTimeout=3e4;break;case"SATIP":e.DVBDiSEqCType=1}for(let
n=0;n<this.activeTab.length;n++)this.activeTab[n]=!1;this.dirtyMessages.push(this.newText),this.disabledTab.push(!1),this.activeTab.push(!1),this.displayDeleteThis.push(!1),this.m_CaptureCardsFiltered.push(e),this.sele
ctedCardType={CardType:"",Description:""}}deleteThis(e){let
n=this.m_CaptureCardsFiltered[e].CardId;if(!this.deleteAll){if(this.successCount+this.errorCount<this.expectedCount)return;this.errorCount=0,this.successCount=0,this.expectedCount=0,this.displayDeleteThis[e]=!1,this.deletedTab=e}this.m_CaptureCardList.CaptureCardList.CaptureCards.forEach(s=>{s.ParentId==n&&(console.log("DeleteThis
(parent):",s.CardId),this.expectedCount++,this.captureCardService.DeleteCaptureCard(s.CardId).subscribe(this.delObserver))}),this.m_CaptureCardsFiltered[e].DiSEqCId=0,console.log("DeleteThis:",n),this.expectedCount++,this.captureCardService.DeleteCaptureCard(n).subscribe(this.delObserver)}deleteAllOnHost(){if(!(this.successCount+this.errorCount<this.expectedCount)){this.errorCount=0,this.successCount=0,this.expectedCount=0,this.displayDeleteAllonHost=!1,this.deletedTab=-1,this.deleteAll=!0;for(let
e=0;e<this.m_CaptureCardsFiltered.length;e++)!this.disabledTab[e]&&this.m_CaptureCardsFiltered[e].Car
dId&&this.deleteThis(e)}}deleteAllOnAllHosts(){this.successCount+this.errorCount<this.expectedCount||(this.displayDeleteAll=!1,this.deleteAllOnHost(),this.m_CaptureCardList.CaptureCardList.CaptureCards.forEach(e=>{e.HostName!=this.m_hostName&&(e.DiSEqCId=0,console.log("DeleteThis
(other
host):",e.CardId),this.expectedCount++,this.captureCardService.DeleteCaptureCard(e.CardId).subscribe(this.delObserver))}))}confirm(e){return
oe(window.confirm(e))}canDeactivate(){let
e=this.setupService.getCurrentForm();return!(this.forms[this.currentTab]&&this.forms[this.currentTab].dirty||this.dirtyMessages.find(n=>n==this.dirtyText)||e&&e.dirty)||this.confirm(this.warningText)}onWindowClose(e){let
n=this.setupService.getCurrentForm();(this.forms[this.currentTab]&&this.forms[this.currentTab].dirty||this.dirtyMessages.find(s=>s==this.dirtyText)||n&&n.dirty)&&(e.preventDefault(),e.returnValue=!1)}}return
t.supportedCardTypes=["CETON","DVB","EXTERNAL","HDHOMERUN","FREEBOX","IMPORT","DEMO","V4L2ENC","H
DPVR","SATIP","VBOX","FIREWIRE"],t.\u0275fac=function(e){return
new(e||t)(D(qt),D(It),D(Gt),D(Me),D(Oe))},t.\u0275cmp=z({type:t,selectors:[["app-capture-cards"]],hostBindings:function(e,n){1&e&&C("beforeunload",function(r){return
n.onWindowClose(r)},!1,ni)},decls:42,vars:72,consts:[[1,"m-5"],["icon","pi
pi-plus-circle","styleClass","p-button-plain",3,"label","onClick"],[3,"header","visible","modal","draggable","resizable","visibleChange"],["optionLabel","Description","optionDisabled","Inactive",3,"options","ngModel","listStyle","ngModelChange","onDblClick"],["pTemplate","footer"],["styleClass","p-button-warning","icon","pi
pi-trash",3,"label","disabled","click"],["styleClass","p-button-danger","icon","pi
pi-trash","iconPos","left",3,"label","disabled","click"],[1,"grid","nogutter"],["class","col-12",4,"ngIf"],[1,"col-12","w-full",3,"onClose","onOpen"],[3,"disabled","selected","selectedChange",4,"ngFor","ngForOf"],[1,"flex","justify-content-end"],["icon","pi
pi-angle-left","iconPos",
"left",1,"p-3",3,"label","onClick"],["icon","pi
pi-angle-right","iconPos","right",1,"p-3",3,"label","onClick"],["icon","pi
pi-times-circle","styleClass","p-button-plain",3,"label","onClick"],["icon","pi
pi-check-circle","styleClass","p-button-plain",3,"label","disabled","onClick"],["icon","pi
pi-times-circle","styleClass","p-button-plain",3,"label","click"],["icon","pi
pi-check-circle","styleClass","p-button-plain",3,"label","click"],[1,"col-12"],["severity","success",3,"text"],["severity","error",3,"text"],[3,"disabled","selected","selectedChange"],["pTemplate","header"],["pTemplate","content"],[1,"grid","w-full"],[1,"col-11","pr-1"],["styleClass","p-button-warning","icon","pi
pi-trash",3,"label","disabled","onClick"],[3,"ngSwitch"],[3,"card","cardList",4,"ngSwitchCase"],[3,"card","cardList","diseqcTreeList","parent",4,"ngSwitchCase"],[4,"ngSwitchDefault"],[3,"card","cardList"],[3,"card","cardList","diseqcTreeList","parent"]],template:function(e,n){1&e&&(l(0,"p-card",0)(1,"h2"),g(2
),m(3,"translate"),c(),l(4,"p-button",1),C("onClick",function(){return
n.displayModal=!0}),m(5,"translate"),c(),l(6,"p-dialog",2),C("visibleChange",function(r){return
n.displayModal=r}),m(7,"translate"),l(8,"p"),g(9),m(10,"translate"),c(),l(11,"p-listbox",3),C("ngModelChange",function(r){return
n.selectedCardType=r})("onDblClick",function(){return
n.newCard()}),c(),_(12,KJ,4,7,"ng-template",4),c(),g(13," \xa0
"),l(14,"p-button",5),C("click",function(){return
n.displayDeleteAllonHost=!0}),m(15,"translate"),c(),l(16,"p-dialog",2),C("visibleChange",function(r){return
n.displayDeleteAllonHost=r}),m(17,"translate"),l(18,"h2"),g(19),m(20,"translate"),c(),_(21,QJ,4,6,"ng-template",4),c(),g(22,"
\xa0 "),l(23,"p-button",6),C("click",function(){return
n.displayDeleteAll=!0}),m(24,"translate"),c(),l(25,"p-dialog",2),C("visibleChange",function(r){return
n.displayDeleteAll=r}),m(26,"translate"),l(27,"h2"),g(28),m(29,"translate"),c(),_(30,JJ,4,6,"ng-template",4),c(),k(31,"br"),l(32,"div",7),_(33,
YJ,5,3,"div",8),_(34,ZJ,5,3,"div",8),c(),l(35,"p-accordion",9),C("onClose",function(r){return
n.onTabClose(r)})("onOpen",function(r){return
n.onTabOpen(r)}),_(36,gY,3,2,"p-accordionTab",10),c(),l(37,"div",11)(38,"p-button",12),C("onClick",function(){return
n.router.navigate(["setupwizard/general"])}),m(39,"translate"),c(),l(40,"p-button",13),C("onClick",function(){return
n.router.navigate(["setupwizard/recording-profiles"])}),m(41,"translate"),c()()()),2&e&&(a(2),S(f(3,38,"settings.capture.title")),a(2),x("label",f(5,40,"settings.capture.new_capture_card")),a(2),q(A(64,Dd)),x("header",f(7,42,"settings.capture.new_capture_card")),p("visible",n.displayModal)("modal",!0)("draggable",!1)("resizable",!1),a(3),S(f(10,44,"settings.capture.select_type")),a(2),p("options",n.cardTypes)("ngModel",n.selectedCardType)("listStyle",A(65,_Y)),a(3),x("label",Dt(15,46,"settings.capture.delete_on_host",U(66,pS,n.m_hostName))),p("disabled",n.setupService.schedulingEnabled),a(2),q(A(68,Dd)),x("header",D
t(17,49,"settings.capture.delete_on_host",U(69,pS,n.m_hostName))),p("visible",n.displayDeleteAllonHost)("modal",!0)("draggable",!1)("resizable",!1),a(3),S(f(20,52,"settings.common.ru_sure")),a(4),x("label",f(24,54,"settings.capture.delete_all")),p("disabled",n.setupService.schedulingEnabled),a(2),q(A(71,Dd)),x("header",f(26,56,"settings.capture.delete_all_all")),p("visible",n.displayDeleteAll)("modal",!0)("draggable",!1)("resizable",!1),a(3),S(f(29,58,"settings.common.ru_sure")),a(5),p("ngIf",n.expectedCount&&n.successCount==n.expectedCount),a(1),p("ngIf",n.errorCount>0),a(2),p("ngForOf",n.m_CaptureCardsFiltered),a(2),x("label",f(39,60,"common.back")),a(2),x("label",f(41,62,"common.next")))},styles:["@media
screen and (max-width:
48rem){.p-card-body,.p-card-content,.p-accordion-content{padding:0rem!important}}\n"],encapsulation:2}),t})();function
bY(t,i){if(1&t&&(l(0,"div",10)(1,"div",11),g(2),l(3,"b"),g(4),c()()()),2&t){const
e=d(2),n=e.$implicit,s=e.index,r=d();a(2),T(" ",n.Name,"
"),a(2),T("\xa0",r.dirtyMessages[s],"")}}function
vY(t,i){1&t&&_(0,bY,5,2,"div",9),2&t&&p("ngIf",d(2).readyCount>0)}function
CY(t,i){if(1&t&&k(0,"app-profile-group",12),2&t){const
e=d().$implicit,n=d();p("group",e)("parentComponent",n)}}function
yY(t,i){if(1&t){const
e=I();l(0,"p-accordionTab",6),C("selectedChange",function(s){const
o=v(e).index;return
d().activeTab[o]=s}),_(1,vY,1,1,"ng-template",7),_(2,CY,1,2,"ng-template",8),c()}if(2&t){const
e=i.index;p("selected",d().activeTab[e])}}let mS=(()=>{class
t{constructor(e,n,s,r){this.captureCardService=e,this.router=n,this.translate=s,this.setupService=r,this.currentTab=-1,this.deletedTab=-1,this.dirtyMessages=[],this.activeTab=[],this.readyCount=0,this.profileGroups=[],this.dirtyText="settings.common.unsaved",this.warningText="settings.common.warning",this.groups=[],this.setupService.setCurrentForm(null),this.loadGroups(),s.get(this.dirtyText).subscribe(o=>this.dirtyText=o),s.get(this.warningText).subscribe(o=>this.warningText=o)}l
oadGroups(){this.captureCardService.GetRecProfileGroupList(0,0,!0).subscribe(n=>{this.groups=n.RecProfileGroupList.RecProfileGroups,this.readyCount++})}ngOnInit(){}onTabOpen(e){this.currentTab=e.index,this.dirtyMessages[this.currentTab]=""}onTabClose(e){this.showDirty(),this.currentTab=-1}showDirty(){-1==this.currentTab||!this.profileGroups[this.currentTab]||(this.dirtyMessages[this.currentTab]=this.profileGroups[this.currentTab].allClean()?"":this.dirtyText)}confirm(e){return
oe(window.confirm(e))}canDeactivate(){let e=!0;return
this.profileGroups.forEach(n=>{n.allClean()||(e=!1)}),!!e||this.confirm(this.warningText)}onWindowClose(e){let
n=!0;this.profileGroups.forEach(s=>{s.allClean()||(n=!1)}),n||(e.preventDefault(),e.returnValue=!1)}}return
t.\u0275fac=function(e){return
new(e||t)(D(Gt),D(It),D(Oe),D(Me))},t.\u0275cmp=z({type:t,selectors:[["app-recording-profiles"]],hostBindings:function(e,n){1&e&&C("beforeunload",function(r){return
n.onWindowClose(r)},!1,ni)},decls:11,vars:10,c
onsts:[[1,"md:m-5"],[1,"col-12","w-full",3,"onOpen","onClose"],[3,"selected","selectedChange",4,"ngFor","ngForOf"],[1,"flex","justify-content-end"],["icon","pi
pi-angle-left","iconPos","left",1,"p-3",3,"label","onClick"],["icon","pi
pi-angle-right","iconPos","right",1,"p-3",3,"label","onClick"],[3,"selected","selectedChange"],["pTemplate","header"],["pTemplate","content"],["class","grid
w-full",4,"ngIf"],[1,"grid","w-full"],[1,"col-9","pr-1"],[3,"group","parentComponent"]],template:function(e,n){1&e&&(l(0,"p-card",0)(1,"h2"),g(2),m(3,"translate"),c(),l(4,"p-accordion",1),C("onOpen",function(r){return
n.onTabOpen(r)})("onClose",function(r){return
n.onTabClose(r)}),_(5,yY,3,1,"p-accordionTab",2),c(),l(6,"div",3)(7,"p-button",4),C("onClick",function(){return
n.router.navigate(["setupwizard/capture-cards"])}),m(8,"translate"),c(),l(9,"p-button",5),C("onClick",function(){return
n.router.navigate(["setupwizard/video-sources"])}),m(10,"translate"),c()()()),2&e&&(a(2),S(f(3,4,"settings.rpr
ofiles.title")),a(3),p("ngForOf",n.groups),a(2),x("label",f(8,6,"common.back")),a(2),x("label",f(10,8,"common.next")))},styles:["@media
screen and (max-width:
48rem){.p-card-body,.p-card-content,.p-accordion-content{padding:0rem!important}}\n"],encapsulation:2}),t})(),Or=(()=>{class
t{constructor(e){this.httpClient=e}AddDBChannel(e){return
this.httpClient.post("/Channel/AddDBChannel",e)}UpdateDBChannel(e){return
this.httpClient.post("/Channel/UpdateDBChannel",e)}AddVideoSource(e){return
this.httpClient.post("/Channel/AddVideoSource",e)}FetchChannelsFromSource(e){let
n=(new
ye).set("SourceId",e.SourceId).set("CardId",e.CardId).set("WaitForFinish",e.WaitForFinish);return
this.httpClient.get("/Channel/FetchChannelsFromSource",{params:n})}GetChannelInfo(e){let
n=(new ye).set("ChanID",e);return
this.httpClient.get("/Channel/GetChannelInfo",{params:n})}GetChannelInfoList(e){let
n=new ye;return void
0!==e.SourceID&&(n=n.set("SourceID",e.SourceID)),void
0!==e.ChannelGroupID&&(n=n.set("Chann
elGroupID",e.ChannelGroupID)),void
0!==e.StartIndex&&(n=n.set("StartIndex",e.StartIndex)),void
0!==e.Count&&(n=n.set("Count",e.Count)),void
0!==e.OnlyVisible&&(n=n.set("OnlyVisible",e.OnlyVisible)),void
0!==e.Details&&(n=n.set("Details",e.Details)),void
0!==e.OrderByName&&(n=n.set("OrderByName",e.OrderByName)),void
0!==e.GroupByCallsign&&(n=n.set("GroupByCallsign",e.GroupByCallsign)),void
0!==e.OnlyTunable&&(n=n.set("OnlyTunable",e.OnlyTunable)),this.httpClient.get("/Channel/GetChannelInfoList",{params:n})}GetDDLineupList(e){let
n=(new
ye).set("Source",e.Source).set("UserId",e.UserId).set("Password",e.Password);return
this.httpClient.get("/Channel/GetDDLineupList",{params:n})}GetVideoMultiplex(e){let
n=(new ye).set("MplexID",e);return
this.httpClient.get("/Channel/GetVideoMultiplex",{params:n})}GetVideoMultiplexList(e){let
n=(new ye).set("SourceID",e.SourceID);return
e.StartIndex&&(n=n.set("StartIndex",e.StartIndex)),e.Count&&(n=n.set("Count",e.Count)),this.httpClient.get("/Channel/
GetVideoMultiplexList",{params:n})}GetVideoSource(e){let n=(new
ye).set("SourceID",e);return
this.httpClient.get("/Channel/GetVideoSource",{params:n})}GetVideoSourceList(){return
this.httpClient.get("/Channel/GetVideoSourceList")}GetXMLTVIdList(e){let n=(new
ye).set("SourceID",e);return
this.httpClient.get("/Channel/GetXMLTVIdList",{params:n})}GetAvailableChanid(){return
this.httpClient.get("/Channel/GetAvailableChanid",{})}RemoveDBChannel(e){return
this.httpClient.post("/Channel/RemoveDBChannel",{ChannelID:e})}RemoveVideoSource(e){return
this.httpClient.post("/Channel/RemoveVideoSource",{SourceId:e})}UpdateVideoSource(e){return
this.httpClient.post("/Channel/UpdateVideoSource",e)}GetGrabberList(){return
this.httpClient.get("/Channel/GetGrabberList")}GetFreqTableList(){return
this.httpClient.get("/Channel/GetFreqTableList")}GetCommMethodList(){return
this.httpClient.get("/Channel/GetCommMethodList")}StartScan(e){return
this.httpClient.post("/Channel/StartScan",e)}GetScanStatus(){ret
urn this.httpClient.get("/Channel/GetScanStatus")}StopScan(e){return
this.httpClient.post("/Channel/StopScan",{Cardid:e})}GetScanList(e){let n=(new
ye).set("SourceID",e);return
this.httpClient.get("/Channel/GetScanList",{params:n})}SendScanDialogResponse(e){return
this.httpClient.post("/Channel/SendScanDialogResponse",e)}}return
t.\u0275fac=function(e){return
new(e||t)(K(Bi))},t.\u0275prov=X({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();const
wY=["vsourceform"],TY=["top"];function
SY(t,i){1&t&&(g(0),m(1,"translate")),2&t&&T("
",f(1,1,"settings.vsource.item_title")," ")}function
xY(t,i){}function
DY(t,i){if(1&t&&(l(0,"div")(1,"small",34),g(2),c()()),2&t){const
e=d(2);a(2),T(" ",e.work.errorMessage," ")}}const
fS=function(){return{minWidth:"80%"}};function MY(t,i){if(1&t){const
e=I();l(0,"p-dropdown",35,36),C("ngModelChange",function(s){return
v(e),d(2).videoSource.Grabber=s})("onChange",function(){return
v(e),d(2).checkName()}),c()}if(2&t){const e=d(2);q(A(5,fS)),p("options"
,e.grabberList.GrabberList.Grabbers)("ngModel",e.videoSource.Grabber)("editable",!1)}}function
kY(t,i){if(1&t){const
e=I();l(0,"div",10)(1,"label",37),g(2),m(3,"translate"),c(),l(4,"p"),g(5),m(6,"translate"),l(7,"a",38),g(8,"XMLTV"),c()(),l(9,"table")(10,"tr")(11,"td",39),g(12),c(),l(13,"td",40)(14,"button",41),C("click",function(){return
v(e),d(2).copyConfigure()}),m(15,"translate"),c()()()()()}if(2&t){const
e=d(2);a(2),T(" ",f(3,4,"settings.vsource.grabberconfig_label"),"
"),a(3),T(" ",f(6,6,"settings.vsource.grabberconfig_desc"),"
"),a(7),T(" ",e.configCommand,"
"),a(2),x("pTooltip",f(15,8,"settings.common.clipboard_tooltip"))}}function
IY(t,i){if(1&t){const
e=I();l(0,"p-dropdown",42,43),C("ngModelChange",function(s){return
v(e),d(2).videoSource.FreqTable=s}),c()}if(2&t){const
e=d(2);q(A(5,fS)),p("options",e.freqTableList.FreqTableList)("ngModel",e.videoSource.FreqTable)("editable",!1)}}function
EY(t,i){if(1&t){const
e=I();l(0,"div",8)(1,"div",9)(2,"div",10)(3,"label",11),g(4),m(
5,"translate"),c(),l(6,"input",12,13),C("ngModelChange",function(s){return
v(e),d().videoSource.SourceName=s})("change",function(){return
v(e),d().checkName()}),c(),_(8,DY,3,1,"div",14),l(9,"small",15),g(10),m(11,"translate"),c()(),l(12,"div",10)(13,"label",16),g(14),m(15,"translate"),c(),_(16,MY,2,6,"p-dropdown",17),l(17,"small",15),g(18),m(19,"translate"),c()(),_(20,kY,16,10,"div",18),l(21,"div",10)(22,"p-checkbox",19,20),C("ngModelChange",function(s){return
v(e),d().videoSource.UseEIT=s}),m(24,"translate"),c(),l(25,"small",15),g(26),m(27,"translate"),c()(),l(28,"div",10)(29,"label",21),g(30),m(31,"translate"),c(),_(32,IY,2,6,"p-dropdown",22),l(33,"small",15),g(34),m(35,"translate"),c()(),l(36,"div",10)(37,"label",23),g(38),m(39,"translate"),c(),l(40,"p-inputNumber",24),C("ngModelChange",function(s){return
v(e),d().videoSource.ScanFrequency=s}),c(),l(41,"small",15),g(42),m(43,"translate"),c()(),l(44,"div",10)(45,"label",25),g(46),m(47,"translate"),c(),l(48,"p-inputNumber",26),C("n
gModelChange",function(s){return
v(e),d().videoSource.NITId=s}),c(),l(49,"small",15),g(50),m(51,"translate"),c()(),l(52,"div",10)(53,"label",27),g(54),m(55,"translate"),c(),l(56,"p-inputNumber",28),C("ngModelChange",function(s){return
v(e),d().videoSource.BouquetId=s}),c(),l(57,"small",15),g(58),m(59,"translate"),l(60,"a",29),g(61,"DVB
UK"),c()()(),l(62,"div",10)(63,"label",30),g(64),m(65,"translate"),c(),l(66,"p-inputNumber",31),C("ngModelChange",function(s){return
v(e),d().videoSource.RegionId=s}),c(),l(67,"small",15),g(68),m(69,"translate"),l(70,"a",29),g(71,"DVB
UK"),c()()(),l(72,"div",10)(73,"label",32),g(74),m(75,"translate"),c(),l(76,"p-inputNumber",33),C("ngModelChange",function(s){return
v(e),d().videoSource.LCNOffset=s}),c(),l(77,"small",15),g(78),m(79,"translate"),c()()()()}if(2&t){const
e=d();a(4),S(f(5,54,"settings.vsource.source_label")),a(2),p("ngModel",e.videoSource.SourceName)("disabled",e.videoSource.Id>0)("maxlength",50),a(2),p("ngIf",e.work.errorMessage),a(2),T("
",f(11,56,"settings.vsource.source_desc")," "),a(4),T("
",f(15,58,"settings.vsource.grabber_label"),"
"),a(2),p("ngIf",e.grabberList.GrabberList.Grabbers.length>0),a(2),T("
",f(19,60,"settings.vsource.grabber_desc"),"
"),a(2),p("ngIf",e.configCommand.length>0),a(2),x("label",f(24,62,"settings.vsource.eit_label")),p("ngModel",e.videoSource.UseEIT)("binary",!0),a(4),T("
",f(27,64,"settings.vsource.eit_desc")," "),a(4),T("
",f(31,66,"settings.vsource.freqtable_label"),"
"),a(2),p("ngIf",e.freqTableList.FreqTableList.length>0),a(2),T("
",f(35,68,"settings.vsource.freqtable_desc")," "),a(4),T("
",f(39,70,"settings.vsource.scanfreq_label"),"
"),a(2),p("ngModel",e.videoSource.ScanFrequency)("min",0)("max",999999999),a(2),T("
",f(43,72,"settings.vsource.scanfreq_desc")," "),a(4),T("
",f(47,74,"settings.vsource.netid_label"),"
"),a(2),p("ngModel",e.videoSource.NITId)("showButtons",!0)("min",-1)("max",65535)("step",1)("useGrouping",!1),a(2),T("
",f(51,76,"settings.vsource.netid_desc")," "),a
(4),T(" ",f(55,78,"settings.vsource.bouquet_label"),"
"),a(2),p("ngModel",e.videoSource.BouquetId)("showButtons",!0)("min",0)("max",65535)("step",1)("useGrouping",!1),a(2),T("
",f(59,80,"settings.vsource.bouquet_desc")," "),a(6),T("
",f(65,82,"settings.vsource.region_label"),"
"),a(2),p("ngModel",e.videoSource.RegionId)("showButtons",!0)("min",0)("max",100)("step",1)("useGrouping",!1),a(2),T("
",f(69,84,"settings.vsource.region_desc")," "),a(6),T("
",f(75,86,"settings.vsource.lcnoffset_label"),"
"),a(2),p("ngModel",e.videoSource.LCNOffset)("showButtons",!0)("min",0)("max",2e4)("step",100)("useGrouping",!1),a(2),T("
",f(79,88,"settings.vsource.lcnoffset_desc")," ")}}function
RY(t,i){1&t&&(k(0,"p-message",49),m(1,"translate")),2&t&&x("text",f(1,1,"common.savesuccess"))}function
LY(t,i){1&t&&(k(0,"p-message",50),m(1,"translate")),2&t&&x("text",f(1,1,"common.networkfail"))}function
OY(t,i){if(1&t){const
e=I();l(0,"div",44)(1,"div",45),_(2,RY,2,3,"p-message",46),_(3,LY,2,3,"p-message",47
),c(),l(4,"p-button",48),C("onClick",function(){v(e);const
s=d(),r=F(1);return
s.saveForm(),r.form.markAsPristine()}),m(5,"translate"),c()()}if(2&t){const
e=d(),n=F(1);a(2),p("ngIf",e.work.successCount>0&&0==e.work.errorCount&&!n.dirty),a(1),p("ngIf",e.work.errorCount>0),a(1),x("label",f(5,4,"common.save")),p("disabled",!n.dirty||!e.videoSource.SourceName||e.work.validateError||e.setupService.schedulingEnabled)}}let
AY=(()=>{class
t{constructor(e,n,s,r,o){this.channelService=e,this.translate=n,this.setupService=s,this.clipboard=r,this.mythService=o,this.grabberList={GrabberList:{Grabbers:[]}},this.freqTableList={FreqTableList:[]},this.work={successCount:0,errorCount:0,errorMessage:"",validateError:!1},this.messages={nameInUse:"settings.vsource.nameInUse",nameRequired:"settings.vsource.nameRequired"},this.configCommand="",this.saveObserver={next:u=>{u.bool?this.work.successCount++:!this.videoSource.Id&&u.int?(this.work.successCount++,this.videoSource.Id||(this.videoSource.Id=u.int)):
(console.log("saveObserver
error",u),this.work.errorCount++,this.currentForm.form.markAsDirty())},error:u=>{console.log("saveObserver
error",u),this.work.errorCount++,this.currentForm.form.markAsDirty()}},n.get(this.messages.nameInUse).subscribe(u=>this.messages.nameInUse=u),n.get(this.messages.nameRequired).subscribe(u=>this.messages.nameRequired=u)}ngOnInit(){this.channelService.GetGrabberList().subscribe(e=>{this.grabberList=e}),this.channelService.GetFreqTableList().subscribe(e=>{this.freqTableList=e}),this.mythService.GetBackendInfo().subscribe(e=>{this.backendInfo=e,this.setupConf()})}ngAfterViewInit(){this.setupService.setCurrentForm(this.currentForm),this.topElement.nativeElement.scrollIntoView({behavior:"smooth",block:"start"})}copyConfigure(){this.clipboard.copy(this.configCommand)}checkName(){this.work.errorMessage="",this.work.validateError=!1,this.videoSource.SourceName=this.videoSource.SourceName.trim(),this.videoSourceList.VideoSourceList.VideoSources.find(n=>n.Source
Name==this.videoSource.SourceName&&n.Id!=this.videoSource.Id)&&(this.work.errorMessage=this.messages.nameInUse,this.work.validateError=!0),""==this.videoSource.SourceName&&(this.work.errorMessage=this.messages.nameRequired,this.work.validateError=!0),this.setupConf()}setupConf(){this.configCommand="eitonly"==this.videoSource.Grabber||"/bin/true"==this.videoSource.Grabber||""==this.videoSource.Grabber||""==this.videoSource.SourceName||this.work.validateError?"":"sudo
-u "+this.backendInfo.BackendInfo.Env.USER+"
"+this.videoSource.Grabber+' --configure --config-file
"'+this.backendInfo.BackendInfo.Env.MYTHCONFDIR+"/"+this.videoSource.SourceName+'.xmltv"'}saveForm(){if(this.work.successCount=0,this.work.errorCount=0,this.videoSource.Id){let
e=this.videoSource;e.SourceID=this.videoSource.Id,this.channelService.UpdateVideoSource(e).subscribe(this.saveObserver)}else
this.channelService.AddVideoSource(this.videoSource).subscribe(this.saveObserver)}}return
t.\u0275fac=function(e){return new
(e||t)(D(Or),D(Oe),D(Me),D(lS),D(qt))},t.\u0275cmp=z({type:t,selectors:[["app-vsource"]],viewQuery:function(e,n){if(1&e&&(W(wY,5),W(TY,5)),2&e){let
s;V(s=B())&&(n.currentForm=s.first),V(s=B())&&(n.topElement=s.first)}},inputs:{videoSource:"videoSource",videoSourceList:"videoSourceList"},decls:9,vars:0,consts:[["name","vsourceform",1,"ml-3","mr-3"],["vsourceform","ngForm"],["top",""],[1,"m-5"],["pTemplate","title"],["pTemplate","subtitle"],["pTemplate","content"],["pTemplate","footer"],[1,"grid"],[1,"mb-4","w-full"],[1,"form-group","field"],["for","SourceName",1,"label","block"],["pInputText","","id","SourceName","name","SourceName",1,"mb-2","form-control","w-full",3,"ngModel","disabled","maxlength","ngModelChange","change"],["SourceName","ngModel"],[4,"ngIf"],[1,"block"],["for","Grabber",1,"label","block"],["optionLabel","DisplayName","optionValue","Program","name","Grabber",3,"options","ngModel","editable","style","ngModelChange","onChange",4,"ngIf"],["class","form-group
field",4,"
ngIf"],["inputId","UseEIT","name",&quo...
,"max","step","useGrouping","ngModelChange"],[1,"p-error","block"],["optionLabel","DisplayName","optionValue","Program","name","Grabber",3,"options","ngModel","editable","ngModelChange","onChange"],["Grabber","ngModel"],["for","configure",1,"label","block"],["href","http://www.mythtv.org/wiki/XMLTV","target","_blank"],[1,"align-items-center","bg-blue-100","text-gray-900",2,"font-family","monospace"],[1,"align-items-center"],["pButton","","pRipple","","type","button","icon","pi
pi-copy",1,"p-button-rounded","p-button-text",3,"pTooltip","click"],["name","FreqTable",3,"options","ngModel","editable","ngModelChange"],["FreqTable","ngModel"],[1,"grid","nogutter"],[1,"col-12"],["severity","success",3,"text",4,"ngIf"],["severity","error",3,"text",4,"ngIf"],["icon","pi
pi-save","iconPos","left",1,"col","pr-1",3,"label","disabled","onClick"],["severity","success",3,"text"],["severity","error",3,"text"]],template:function(e,n){1&e&&(l(0,"form",0,1),k(2,"span",null,2),l(4,"p-card",3),_(5,SY,2,3
,"ng-template",4),_(6,xY,0,0,"ng-template",5),_(7,EY,80,90,"ng-template",6),_(8,OY,6,6,"ng-template",7),c()())},directives:[ze,Ue,He,Ne,ne,Ye,Te,_e,_n,Q,Ot,On,bt,Kt,sn,pt,qe,ve],pipes:[ce],styles:["a[_ngcontent-%COMP%]:link,
a[_ngcontent-%COMP%]:visited,
a[_ngcontent-%COMP%]:active{background-color:#fff}"]}),t})();function
PY(t,i){if(1&t){const
e=I();l(0,"p-button",12),C("click",function(){return
v(e),d().displayDeleteAll=!1}),m(1,"translate"),c(),l(2,"p-button",13),C("click",function(){return
v(e),d().deleteAllSources()}),m(3,"translate"),c()}2&t&&(x("label",f(1,2,"common.no")),a(2),x("label",f(3,4,"common.yes")))}function
FY(t,i){1&t&&(l(0,"div",14),k(1,"br")(2,"p-message",15),m(3,"translate"),k(4,"br"),c()),2&t&&(a(2),x("text",f(3,1,"settings.common.successful_delete")))}function
NY(t,i){1&t&&(l(0,"div",14),k(1,"br")(2,"p-message",16),m(3,"translate"),k(4,"br"),c()),2&t&&(a(2),x("text",f(3,1,"common.networkfail")))}function
VY(t,i){if(1&t&&(l(0,"div",20)(1,"div",21),g(2),l(3,"b")
,g(4),c()()()),2&t){const e=d().index,n=d();a(2),We("
",n.videoSourceList.VideoSourceList.VideoSources[e].SourceName,"
(",n.videoSourceList.VideoSourceList.VideoSources[e].Grabber,")
"),a(2),T("\xa0",n.dirtyMessages[e],"")}}function
BY(t,i){if(1&t){const
e=I();l(0,"p-button",12),C("click",function(){v(e);const
s=d(2).index;return
d().displayDeleteThis[s]=!1}),m(1,"translate"),c(),l(2,"p-button",13),C("click",function(){v(e);const
s=d(2).index;return
d().deleteThis(s)}),m(3,"translate"),c()}2&t&&(x("label",f(1,2,"common.no")),a(2),x("label",f(3,4,"common.yes")))}const
gS=function(){return{width:"50vw"}},HY=function(t,i){return{Grabber:t,DisplayName:i}};function
qY(t,i){if(1&t){const
e=I();l(0,"p-button",22),C("onClick",function(){v(e);const
s=d().index;return
d().displayDeleteThis[s]=!0}),m(1,"translate"),c(),l(2,"p-dialog",3),C("visibleChange",function(s){v(e);const
r=d().index;return
d().displayDeleteThis[r]=s}),m(3,"translate"),l(4,"h2"),g(5),m(6,"translate"),c(),l(7,"p"),g(8),m(9
,"translate"),c(),_(10,BY,4,6,"ng-template",4),c(),k(11,"app-vsource",23)}if(2&t){const
e=d().index,n=d();x("label",f(1,13,"settings.vsource.delete_this")),p("disabled",!n.videoSourceList.VideoSourceList.VideoSources[e].Id||n.setupService.schedulingEnabled),a(2),q(A(22,gS)),x("header",f(3,15,"settings.vsource.delete_this")),p("visible",n.displayDeleteThis[e])("modal",!0)("draggable",!1)("resizable",!1),a(3),S(f(6,17,"settings.common.ru_sure")),a(3),S(Dt(9,19,"settings.vsource.delete_details",Ge(23,HY,n.videoSourceList.VideoSourceList.VideoSources[e].Grabber,n.videoSourceList.VideoSourceList.VideoSources[e].SourceName))),a(3),p("videoSource",n.videoSourceList.VideoSourceList.VideoSources[e])("videoSourceList",n.videoSourceList)}}function
GY(t,i){if(1&t){const
e=I();l(0,"p-accordionTab",17),C("selectedChange",function(s){const
o=v(e).index;return
d().activeTab[o]=s}),_(1,VY,5,3,"ng-template",18),_(2,qY,12,26,"ng-template",19),c()}if(2&t){const
e=i.index,n=d();p("disabled",n.disabledTa
b[e])("selected",n.activeTab[e])}}let UY=(()=>{class
t{constructor(e,n,s,r){this.setupService=e,this.translate=n,this.channelService=s,this.router=r,this.currentTab=-1,this.deletedTab=-1,this.dirtyMessages=[],this.forms=[],this.disabledTab=[],this.activeTab=[],this.displayDeleteThis=[],this.dirtyText="settings.common.unsaved",this.warningText="settings.common.warning",this.deletedText="settings.common.deleted",this.newText="settings.common.new",this.successCount=0,this.expectedCount=0,this.errorCount=0,this.displayDeleteAll=!1,this.deleteAll=!1,this.videoSourceList={VideoSourceList:{VideoSources:[],AsOf:"",Version:"",ProtoVer:""}},this.delObserver={next:o=>{o.bool?(this.successCount++,this.successCount==this.expectedCount&&(this.deleteAll?(this.loadSources(),this.deleteAll=!1):this.deletedTab>-1&&(this.dirtyMessages[this.deletedTab]=this.deletedText,this.disabledTab[this.deletedTab]=!0,this.activeTab[this.deletedTab]=!1,this.deletedTab=-1))):(this.errorCount++,this.deletedTab=-1,thi
s.deleteAll=!1)},error:o=>{console.error(o),this.errorCount++,this.deleteAll=!1}},this.setupService.setCurrentForm(null),this.loadSources(),n.get(this.dirtyText).subscribe(o=>this.dirtyText=o),n.get(this.warningText).subscribe(o=>this.warningText=o),n.get(this.deletedText).subscribe(o=>this.deletedText=o),n.get(this.newText).subscribe(o=>this.newText=o)}loadSources(){this.channelService.GetVideoSourceList().subscribe(e=>{this.videoSourceList=e,this.dirtyMessages=[],this.forms=[],this.disabledTab=[],this.activeTab=[],this.displayDeleteThis=[];for(let
n=0;n<this.videoSourceList.VideoSourceList.VideoSources.length;n++)this.dirtyMessages.push(""),this.forms.push({}),this.disabledTab.push(!1),this.activeTab.push(!1),this.displayDeleteThis.push(!1)})}ngOnInit(){}onTabOpen(e){this.successCount+this.errorCount>=this.expectedCount&&(this.errorCount=0,this.successCount=0,this.expectedCount=0),this.showDirty();let
n=this.setupService.getCurrentForm();null!=n&&(this.forms[e.index]=n),this.setup
Service.setCurrentForm(null),this.currentTab=e.index,this.dirtyMessages[this.currentTab]=""}onTabClose(e){this.showDirty(),this.currentTab=-1}showDirty(){-1==this.currentTab||!this.forms[this.currentTab]||this.disabledTab[this.currentTab]||(this.dirtyMessages[this.currentTab]=this.forms[this.currentTab].dirty?this.dirtyText:this.videoSourceList.VideoSourceList.VideoSources[this.currentTab].Id?"":this.newText)}newSource(){for(let
n=0;n<this.activeTab.length;n++)this.activeTab[n]=!1;this.dirtyMessages.push(this.newText),this.disabledTab.push(!1),this.activeTab.push(!1),this.displayDeleteThis.push(!1),this.videoSourceList.VideoSourceList.VideoSources.push({Grabber:"eitonly",FreqTable:"default",ScanFrequency:0,NITId:-1,BouquetId:0,RegionId:0,LCNOffset:0,SourceName:""})}deleteAllSources(){if(!(this.successCount+this.errorCount<this.expectedCount)){this.errorCount=0,this.successCount=0,this.expectedCount=0,this.displayDeleteAll=!1,this.deletedTab=-1,this.deleteAll=!0;for(let
e=0;e<this.vi
deoSourceList.VideoSourceList.VideoSources.length;e++)!this.disabledTab[e]&&this.videoSourceList.VideoSourceList.VideoSources[e].Id&&this.deleteThis(e)}}deleteThis(e){let
n=this.videoSourceList.VideoSourceList.VideoSources[e].Id;if(!this.deleteAll){if(this.successCount+this.errorCount<this.expectedCount)return;this.errorCount=0,this.successCount=0,this.expectedCount=0,this.displayDeleteThis[e]=!1,this.deletedTab=e}this.expectedCount++,this.channelService.RemoveVideoSource(n).subscribe(this.delObserver)}confirm(e){return
oe(window.confirm(e))}canDeactivate(){let
e=this.setupService.getCurrentForm();return!(this.forms[this.currentTab]&&this.forms[this.currentTab].dirty||this.dirtyMessages.find(n=>n==this.dirtyText)||e&&e.dirty)||this.confirm(this.warningText)}onWindowClose(e){let
n=this.setupService.getCurrentForm();(this.forms[this.currentTab]&&this.forms[this.currentTab].dirty||this.dirtyMessages.find(s=>s==this.dirtyText)||n&&n.dirty)&&(e.preventDefault(),e.returnValue=!1)}}return
t.\u0275fac=function(e){return
new(e||t)(D(Me),D(Oe),D(Or),D(It))},t.\u0275cmp=z({type:t,selectors:[["app-video-sources"]],hostBindings:function(e,n){1&e&&C("beforeunload",function(r){return
n.onWindowClose(r)},!1,ni)},decls:26,vars:32,consts:[[1,"m-5"],["icon","pi
pi-plus-circle","styleClass","p-button-plain",3,"label","onClick"],["styleClass","p-button-danger","icon","pi
pi-trash","iconPos","left",3,"label","disabled","click"],[3,"header","visible","modal","draggable","resizable","visibleChange"],["pTemplate","footer"],[1,"grid","nogutter"],["class","col-12",4,"ngIf"],[1,"col-12","w-full",3,"onClose","onOpen"],[3,"disabled","selected","selectedChange",4,"ngFor","ngForOf"],[1,"flex","justify-content-end"],["icon","pi
pi-angle-left","iconPos","left",1,"p-3",3,"label","onClick"],["icon","pi
pi-angle-right","iconPos","right",1,"p-3",3,"label","onClick"],["icon","pi
pi-times-circle","styleClass","p-button-plain",3,"label","click"],["icon","pi
pi-check-circle","styleClass","p-button-pla
in",3,"label","click"],[1,"col-12"],["severity","success",3,"text"],["severity","error",3,"text"],[3,"disabled","selected","selectedChange"],["pTemplate","header"],["pTemplate","content"],[1,"grid","w-full"],[1,"col-9","pr-1"],["styleClass","p-button-warning","icon","pi
pi-trash",3,"label","disabled","onClick"],[3,"videoSource","videoSourceList"]],template:function(e,n){1&e&&(l(0,"p-card",0)(1,"h2"),g(2),m(3,"translate"),c(),l(4,"p-button",1),C("onClick",function(){return
n.newSource()}),m(5,"translate"),c(),g(6," \xa0
"),l(7,"p-button",2),C("click",function(){return
n.displayDeleteAll=!0}),m(8,"translate"),c(),l(9,"p-dialog",3),C("visibleChange",function(r){return
n.displayDeleteAll=r}),m(10,"translate"),l(11,"h2"),g(12),m(13,"translate"),c(),_(14,PY,4,6,"ng-template",4),c(),k(15,"br"),l(16,"div",5),_(17,FY,5,3,"div",6),_(18,NY,5,3,"div",6),c(),l(19,"p-accordion",7),C("onClose",function(r){return
n.onTabClose(r)})("onOpen",function(r){return
n.onTabOpen(r)}),_(20,GY,3,2,"p-accordio
nTab",8),c(),l(21,"div",9)(22,"p-button",10),C("onClick",function(){return
n.router.navigate(["setupwizard/recording-profiles"])}),m(23,"translate"),c(),l(24,"p-button",11),C("onClick",function(){return
n.router.navigate(["setupwizard/input-connections"])}),m(25,"translate"),c()()()),2&e&&(a(2),S(f(3,17,"settings.vsource.title")),a(2),x("label",f(5,19,"settings.vsource.new_video_source")),a(3),x("label",f(8,21,"settings.vsource.delete_all")),p("disabled",n.setupService.schedulingEnabled),a(2),q(A(31,gS)),x("header",f(10,23,"settings.vsource.delete_all")),p("visible",n.displayDeleteAll)("modal",!0)("draggable",!1)("resizable",!1),a(3),S(f(13,25,"settings.common.ru_sure")),a(5),p("ngIf",n.expectedCount&&n.successCount==n.expectedCount),a(1),p("ngIf",n.errorCount>0),a(2),p("ngForOf",n.videoSourceList.VideoSourceList.VideoSources),a(2),x("label",f(23,27,"common.back")),a(2),x("label",f(25,29,"common.next")))},directives:[Ne,ve,bn,ne,Q,qe,Ss,at,Ts,AY],pipes:[ce],styles:["@media
screen an
d (max-width:
48rem){.p-card-body,.p-card-content,.p-accordion-content{padding:0rem!important}}\n"],encapsulation:2}),t})();function
zY(t,i){if(1&t&&(l(0,"div",10)(1,"div",11),g(2),l(3,"b"),g(4),c()()()),2&t){const
e=d(2),n=e.$implicit,s=e.index,r=d();a(2),Ec(" ",n.CardType,"
",n.VideoDevice," (",n.DisplayName,") =>
",r.videoSourceLookup[n.SourceId].SourceName,"
"),a(2),T("\xa0",r.dirtyMessages[s],"")}}function
jY(t,i){1&t&&_(0,zY,5,5,"div",9),2&t&&p("ngIf",d(2).readyCount>1)}function
$Y(t,i){if(1&t&&k(0,"app-iconnection",12),2&t){const
e=d().index,n=d();p("card",n.m_CaptureCardsFiltered[e])("cardList",n.m_CaptureCardList)("videoSourceLookup",n.videoSourceLookup)("videoSourceList",n.videoSourceList)("parentComponent",n)}}function
WY(t,i){if(1&t){const
e=I();l(0,"p-accordionTab",6),C("selectedChange",function(s){const
o=v(e).index;return
d().activeTab[o]=s}),_(1,jY,1,1,"ng-template",7),_(2,$Y,1,5,"ng-template",8),c()}if(2&t){const
e=i.index;p("selected",d().activeTab[e])}}let _S=(()=
{class
t{constructor(e,n,s,r,o,u){this.mythService=e,this.router=n,this.captureCardService=s,this.setupService=r,this.translate=o,this.channelService=u,this.currentTab=-1,this.deletedTab=-1,this.dirtyMessages=[],this.forms=[],this.activeTab=[],this.readyCount=0,this.dirtyText="settings.common.unsaved",this.warningText="settings.common.warning",this.m_hostName="",this.m_CaptureCardsFiltered=[],this.videoSourceList={VideoSourceList:{VideoSources:[],AsOf:"",Version:"",ProtoVer:""}},this.videoSourceLookup=[],this.setupService.setCurrentForm(null),this.mythService.GetHostName().subscribe(h=>{this.m_hostName=h.String,this.loadCards(!0)}),this.loadSources(),o.get(this.dirtyText).subscribe(h=>this.dirtyText=h),o.get(this.warningText).subscribe(h=>this.warningText=h)}loadCards(e){this.m_CaptureCardList$=this.captureCardService.GetCaptureCardList("",""),this.m_CaptureCardList$.subscribe(n=>{this.m_CaptureCardList=n,e&&this.filterCards(),this.readyCount++})}filterCards(){this.m_CaptureCardsFi
ltered=this.m_CaptureCardList.CaptureCardList.CaptureCards.filter(e=>0==e.ParentId&&e.HostName==this.m_hostName),this.dirtyMessages=[],this.forms=[],this.activeTab=[];for(let
e=0;e<this.m_CaptureCardsFiltered.length;e++)this.dirtyMessages.push(""),this.activeTab.push(!1)}loadSources(){this.channelService.GetVideoSourceList().subscribe(e=>{this.videoSourceList=e,this.videoSourceList.VideoSourceList.VideoSources.unshift({Id:0,SourceName:"(None)",ScanFrequency:0}),this.videoSourceLookup=[],this.videoSourceList.VideoSourceList.VideoSources.forEach(n=>{this.videoSourceLookup[n.Id]=n}),this.readyCount++})}ngOnInit(){}onTabOpen(e){this.showDirty();let
n=this.setupService.getCurrentForm();null!=n&&(this.forms[e.index]=n),this.setupService.setCurrentForm(null),this.currentTab=e.index,this.dirtyMessages[this.currentTab]=""}onTabClose(e){this.showDirty(),this.currentTab=-1}showDirty(){-1==this.currentTab||!this.forms[this.currentTab]||(this.dirtyMessages[this.currentTab]=this.forms[this.curren
tTab].dirty?this.dirtyText:"")}confirm(e){return
oe(window.confirm(e))}canDeactivate(){let
e=this.setupService.getCurrentForm();return!(this.forms[this.currentTab]&&this.forms[this.currentTab].dirty||this.dirtyMessages.find(n=>n==this.dirtyText)||e&&e.dirty)||this.confirm(this.warningText)}onWindowClose(e){let
n=this.setupService.getCurrentForm();(this.forms[this.currentTab]&&this.forms[this.currentTab].dirty||this.dirtyMessages.find(s=>s==this.dirtyText)||n&&n.dirty)&&(e.preventDefault(),e.returnValue=!1)}}return
t.\u0275fac=function(e){return
new(e||t)(D(qt),D(It),D(Gt),D(Me),D(Oe),D(Or))},t.\u0275cmp=z({type:t,selectors:[["app-input-connections"]],hostBindings:function(e,n){1&e&&C("beforeunload",function(r){return
n.onWindowClose(r)},!1,ni)},decls:11,vars:10,consts:[[1,"m-5"],[1,"col-12","w-full",3,"onClose","onOpen"],[3,"selected","selectedChange",4,"ngFor","ngForOf"],[1,"flex","justify-content-end"],["icon","pi
pi-angle-left","iconPos","left",1,"p-3",3,"label","onClick"],["icon
","pi
pi-angle-right","iconPos","right",1,"p-3",3,"label","onClick"],[3,"selected","selectedChange"],["pTemplate","header"],["pTemplate","content"],["class","grid
w-full",4,"ngIf"],[1,"grid","w-full"],[1,"col-9","pr-1"],[3,"card","cardList","videoSourceLookup","videoSourceList","parentComponent"]],template:function(e,n){1&e&&(l(0,"p-card",0)(1,"h2"),g(2),m(3,"translate"),c(),l(4,"p-accordion",1),C("onClose",function(r){return
n.onTabClose(r)})("onOpen",function(r){return
n.onTabOpen(r)}),_(5,WY,3,1,"p-accordionTab",2),c(),l(6,"div",3)(7,"p-button",4),C("onClick",function(){return
n.router.navigate(["setupwizard/video-sources"])}),m(8,"translate"),c(),l(9,"p-button",5),C("onClick",function(){return
n.router.navigate(["setupwizard/channel-editor"])}),m(10,"translate"),c()()()),2&e&&(a(2),S(f(3,4,"settings.iconnections.title")),a(3),p("ngForOf",n.m_CaptureCardsFiltered),a(2),x("label",f(8,6,"common.back")),a(2),x("label",f(10,8,"common.next")))},styles:["@media
screen and (max-width:
48rem){.p-card-body,.p-card-content,.p-accordion-content{padding:0rem!important}}\n"],encapsulation:2}),t})();const
KY=["sgroupform"],QY=function(t){return{name:t}};function
JY(t,i){if(1&t&&k(0,"span",8),2&t){const
e=d();p("translate","settings.sgroups.sgroup_title")("translateParams",U(2,QY,e.sgroup.LocalizedName))}}function
YY(t,i){}function
ZY(t,i){1&t&&(l(0,"div")(1,"b"),g(2),m(3,"translate"),c()()),2&t&&(a(2),S(f(3,1,"settings.sgroups.deleted_label")))}function
XY(t,i){if(1&t){const
e=I();l(0,"tr")(1,"td",20),g(2),c(),l(3,"td",21)(4,"button",22),C("click",function(){const
r=v(e).index;return
d(2).editDirectory(r)}),c()(),l(5,"td",21)(6,"button",23),C("click",function(){const
r=v(e).index;return
d(2).deleteDirectory(r)}),c()(),l(7,"td"),_(8,ZY,4,3,"div",24),c()()}if(2&t){const
e=i.index,n=d(2);a(2),T(" ",n.editDirs[e],"
"),a(2),p("disabled",!n.editDirs[e]),a(2),p("disabled",!n.editDirs[e]),a(2),p("ngIf",!n.editDirs[e])}}function
eZ(t,i){if(1&t){const e=I();l(0,"p-button",25),C("
onClick",function(){return
v(e),d(2).showEditDlg=!1}),m(1,"translate"),c(),l(2,"p-button",26),C("onClick",function(){v(e);const
s=d(2);return
s.editDirs[s.editDlgNum]=s.editDirName,s.showEditDlg=!1}),m(3,"translate"),c()}2&t&&(x("label",f(1,2,"common.cancel")),a(2),x("label",f(3,4,"common.ok")))}const
tZ=function(){return{width:"50vw"}},nZ=function(){return{height:"50vh"}};function
iZ(t,i){if(1&t){const
e=I();l(0,"div",9)(1,"div",10)(2,"table"),_(3,XY,9,4,"tr",11),c(),l(4,"p-dialog",12),C("visibleChange",function(s){return
v(e),d().showEditDlg=s}),m(5,"translate"),l(6,"div",13)(7,"label",14),g(8),m(9,"translate"),c(),l(10,"input",15,16),C("ngModelChange",function(s){return
v(e),d().editDirName=s})("change",function(){return
v(e),d().textChange()}),c()(),l(12,"p-listbox",17,18),C("ngModelChange",function(s){return
v(e),d().selectedDir=s})("onClick",function(){return
v(e),d().selectDir()}),c(),_(14,eZ,4,6,"ng-template",7),c(),k(15,"br"),l(16,"p-button",19),C("onClick",function(){retur
n v(e),d().addDirectory()}),m(17,"translate"),c()()()}if(2&t){const
e=d();a(3),p("ngForOf",e.editDirs),a(1),q(A(20,tZ)),x("header",f(5,14,"settings.sgroups.seldir_title")),p("visible",e.showEditDlg)("modal",!0)("draggable",!1)("resizable",!1),a(4),S(f(9,16,"settings.sgroups.dirname_label")),a(2),p("ngModel",e.editDirName),a(2),p("options",e.dirSelect)("ngModel",e.selectedDir)("listStyle",A(21,nZ)),a(4),x("label",f(17,18,"settings.sgroups.adddir_button"))}}function
sZ(t,i){1&t&&(k(0,"p-message",32),m(1,"translate")),2&t&&x("text",f(1,1,"common.savesuccess"))}function
rZ(t,i){1&t&&(k(0,"p-message",33),m(1,"translate")),2&t&&x("text",f(1,1,"common.networkfail"))}function
oZ(t,i){if(1&t){const
e=I();l(0,"div",27)(1,"div",28),_(2,sZ,2,3,"p-message",29),_(3,rZ,2,3,"p-message",30),c(),l(4,"p-button",31),C("onClick",function(){v(e);const
s=d(),r=F(1);return
s.saveForm(),r.form.markAsPristine()}),m(5,"translate"),c()()}if(2&t){const
e=d(),n=F(1);a(2),p("ngIf",e.successCount>0&&0==e.errorCoun
t&&!n.dirty),a(1),p("ngIf",e.errorCount>0),a(1),x("label",f(5,4,"common.save")),p("disabled",!n.dirty||e.setupService.schedulingEnabled)}}let
aZ=(()=>{class
t{constructor(e,n,s){this.mythService=e,this.setupService=n,this.translate=s,this.successCount=0,this.errorCount=0,this.expectCount=0,this.showEditDlg=!1,this.editDlgNum=-1,this.editDirName="",this.editDirs=[],this.dirSelect=[],this.selectedDir="",this.upString="UP
1
LEVEL",this.saveObserver={next:r=>{r.bool?(this.successCount++,this.successCount==this.expectCount&&(this.sgroup.DirNames=this.editDirs.filter(o=>o.length>1))):(this.errorCount++,this.currentForm.form.markAsDirty())},error:r=>{console.error(r),this.errorCount++,this.currentForm.form.markAsDirty()}},s.get("settings.sgroups.updir").subscribe(r=>this.upString="//
** "+r+"
**")}ngOnInit(){this.editDirs=this.sgroup.DirNames.slice()}ngAfterViewInit(){this.setupService.setCurrentForm(this.currentForm)}selectDir(){for(;"/"==this.editDirName.charAt(this.editDirName.length-1)
;)this.editDirName=this.editDirName.substring(0,this.editDirName.length-1);if(this.selectedDir.startsWith("//")){let
e=this.editDirName.lastIndexOf("/");this.editDirName=this.editDirName.substring(0,e),0==this.editDirName.length&&(this.editDirName="/")}else
this.editDirName=this.editDirName+"/"+this.selectedDir;this.fillDirList()}textChange(){this.fillDirList()}fillDirList(){0!=this.editDirName.indexOf("/")&&(this.editDirName="/"+this.editDirName),this.mythService.GetDirListing(this.editDirName).subscribe(e=>{"/"!=this.editDirName&&e.DirListing.unshift(this.upString),this.dirSelect=e.DirListing})}addDirectory(){this.editDirs.push("/"),this.editDirectory(this.editDirs.length-1)}editDirectory(e){this.editDirName=this.editDirs[e],this.editDlgNum=e,this.showEditDlg=!0,this.fillDirList()}deleteDirectory(e){this.editDirs[e]="",this.currentForm.form.markAsDirty()}saveForm(){this.successCount=0,this.errorCount=0,this.expectCount=0;for(let
e=0;e<this.editDirs.length;e++){"/"==this.editDirs[e
]&&(this.editDirs[e]="");for(let
n=e+1;n<this.editDirs.length;n++)this.editDirs[e]==this.editDirs[n]&&(this.editDirs[n]="")}this.editDirs.forEach(e=>{""!=e&&-1==this.sgroup.DirNames.indexOf(e)&&(this.mythService.AddStorageGroupDir({GroupName:this.sgroup.GroupName,DirName:e,HostName:this.hostName}).subscribe(this.saveObserver),this.expectCount++)}),this.sgroup.DirNames.forEach(e=>{-1==this.editDirs.indexOf(e)&&(this.mythService.RemoveStorageGroupDir({GroupName:this.sgroup.GroupName,DirName:e,HostName:this.hostName}).subscribe(this.saveObserver),this.expectCount++)})}}return
t.\u0275fac=function(e){return
new(e||t)(D(qt),D(Me),D(Oe))},t.\u0275cmp=z({type:t,selectors:[["app-sgroup"]],viewQuery:function(e,n){if(1&e&&W(KY,5),2&e){let
s;V(s=B())&&(n.currentForm=s.first)}},inputs:{sgroup:"sgroup",hostName:"hostName"},decls:9,vars:0,consts:[["name","sgroupform",1,"ml-3","mr-3"],["sgroupform","ngForm"],["top",""],[1,"m-5"],["pTemplate","title"],["pTemplate","subtitle"],["pTemplate","content"
],["pTemplate","footer"],[3,"translate","translateParams"],[1,"grid"],[1,"mb-4","w-full"],[4,"ngFor","ngForOf"],[3,"header","visible","modal","draggable","resizable","visibleChange"],[1,"form-group","field"],["for","DirName",1,"label","block"],["pInputText","","id","DirName","name","DirName",1,"mb-2","form-control","w-full",2,"font-family","monospace",3,"ngModel","ngModelChange","change"],["DirName","ngModel"],["name","ListDirs",3,"options","ngModel","listStyle","ngModelChange","onClick"],["ListDirs","ngModel"],["icon","pi
pi-plus-circle","styleClass","p-button-plain",3,"label","onClick"],[1,"align-items-center","bg-blue-100","text-gray-900",2,"font-family","monospace"],[1,"align-items-center"],["pButton","","pRipple","","type","button","icon","pi
pi-pencil","pTooltip","Edit",1,"p-button-rounded","p-button-text",3,"disabled","click"],["pButton","","pRipple","","type","button","icon","pi
pi-trash","pTooltip","Delete",1,"p-button-rounded","p-button-text",3,"disabled","click"],[4,"ngIf
"],["icon","pi
pi-times-circle","styleClass","p-button-plain",3,"label","onClick"],["icon","pi
pi-check-circle","styleClass","p-button-plain",3,"label","onClick"],[1,"grid","nogutter"],[1,"col-12"],["severity","success",3,"text",4,"ngIf"],["severity","error",3,"text",4,"ngIf"],["icon","pi
pi-save","iconPos","left",1,"col","pr-1",3,"label","disabled","onClick"],["severity","success",3,"text"],["severity","error",3,"text"]],template:function(e,n){1&e&&(l(0,"form",0,1),k(2,"span",null,2),l(4,"p-card",3),_(5,JY,1,4,"ng-template",4),_(6,YY,0,0,"ng-template",5),_(7,iZ,18,22,"ng-template",6),_(8,oZ,6,6,"ng-template",7),c()())},directives:[ze,Ue,He,Ne,ne,mu,at,On,bt,Kt,Q,bn,Ye,Te,_e,os,ve,qe],pipes:[ce],styles:[""]}),t})();function
lZ(t,i){if(1&t){const
e=I();l(0,"p-button",14),C("onClick",function(){return
v(e),d().displayNewDlg=!1}),m(1,"translate"),c(),l(2,"p-button",15),C("onClick",function(){return
v(e),d().newGroup()}),m(3,"translate"),c()}if(2&t){const
e=d();x("label",f(1,3,"common.c
ancel")),a(2),x("label",f(3,5,"common.ok")),p("disabled",""==e.newGroupName)}}const
cZ=function(t){return{name:t}};function
uZ(t,i){if(1&t&&k(0,"span",23),2&t){const
e=d(2).index,n=d();p("translate","settings.sgroups.tab_create_title")("translateParams",U(2,cZ,n.storageGroups[e].LocalizedName))}}function
dZ(t,i){if(1&t&&g(0),2&t){const e=d(2).index;T("
",d().storageGroups[e].LocalizedName," ")}}function
pZ(t,i){if(1&t&&(l(0,"div",19)(1,"div",20),_(2,uZ,1,4,"span",21),_(3,dZ,1,1,"ng-template",null,22,we),l(5,"b"),g(6),c()()()),2&t){const
e=F(4),n=d().index,s=d();a(2),p("ngIf",0==s.storageGroups[n].DirNames.length)("ngIfElse",e),a(4),T("\xa0",s.dirtyMessages[n],"")}}function
hZ(t,i){if(1&t&&k(0,"app-sgroup",24),2&t){const
e=d().index,n=d();p("sgroup",n.storageGroups[e])("hostName",n.hostName)}}function
mZ(t,i){if(1&t){const
e=I();l(0,"p-accordionTab",16),C("selectedChange",function(s){const
o=v(e).index;return
d().activeTab[o]=s}),_(1,pZ,7,3,"ng-template",17),_(2,hZ,1,2,"ng-template",
18),c()}if(2&t){const e=i.index;p("selected",d().activeTab[e])}}const
fZ=function(){return{width:"50vw"}};let gZ=(()=>{class
t{constructor(e,n,s,r){this.setupService=e,this.translate=n,this.mythService=s,this.router=r,this.forms=[],this.dirtyMessages=[],this.currentTab=-1,this.activeTab=[],this.dirtyText="settings.common.unsaved",this.warningText="settings.common.warning",this.deletedText="settings.common.deleted",this.newText="settings.common.new",this.hostName="",this.storageGroupDirs=[],this.storageGroups=[{GroupName:"Default",LocalizedName:"",DirNames:[]},{GroupName:"LiveTV",LocalizedName:"",DirNames:[]},{GroupName:"DB
Backups",LocalizedName:"",DirNames:[]},{GroupName:"Videos",LocalizedName:"",DirNames:[]},{GroupName:"Trailers",LocalizedName:"",DirNames:[]},{GroupName:"Coverart",LocalizedName:"",DirNames:[]},{GroupName:"Fanart",LocalizedName:"",DirNames:[]},{GroupName:"Screenshots",LocalizedName:"",DirNames:[]},{GroupName:"Banners",LocalizedName:"",DirNames:[]},{GroupName:"Photo
graphs",LocalizedName:"",DirNames:[]},{GroupName:"Music",LocalizedName:"",DirNames:[]},{GroupName:"MusicArt",LocalizedName:"",DirNames:[]}],this.displayNewDlg=!1,this.newGroupName="",this.setupService.setCurrentForm(null),this.mythService.GetHostName().subscribe(o=>{this.hostName=o.String,this.loadGroups()}),n.get(this.dirtyText).subscribe(o=>this.dirtyText=o),n.get(this.warningText).subscribe(o=>this.warningText=o),n.get(this.deletedText).subscribe(o=>this.deletedText=o),n.get(this.newText).subscribe(o=>this.newText=o),this.storageGroups.forEach(o=>n.get("settings.sgroups.special."+o.GroupName).subscribe(u=>o.LocalizedName=u))}loadGroups(){this.mythService.GetStorageGroupDirs({HostName:this.hostName}).subscribe(e=>{this.storageGroupDirs=e.StorageGroupDirList.StorageGroupDirs,this.storageGroupDirs.forEach(n=>{let
s=this.storageGroups.find(r=>r.GroupName==n.GroupName);s?s.DirNames.push(n.DirName):this.storageGroups.push({GroupName:n.GroupName,LocalizedName:n.GroupName,DirNames:[n.Dir
Name]})})})}ngOnInit(){}onTabOpen(e){this.showDirty();let
n=this.setupService.getCurrentForm();null!=n&&(this.forms[e.index]=n),this.setupService.setCurrentForm(null),this.currentTab=e.index,this.dirtyMessages[this.currentTab]=""}onTabClose(e){this.showDirty(),this.currentTab=-1}showDirty(){-1==this.currentTab||!this.forms[this.currentTab]||(this.dirtyMessages[this.currentTab]=this.forms[this.currentTab].dirty?this.dirtyText:"")}newGroup(){this.displayNewDlg=!1,!this.storageGroups.find(n=>n.GroupName==this.newGroupName)&&(this.storageGroups.push({GroupName:this.newGroupName,LocalizedName:this.newGroupName,DirNames:[]}),this.newGroupName="")}confirm(e){return
oe(window.confirm(e))}canDeactivate(){let
e=this.setupService.getCurrentForm();return!(this.forms[this.currentTab]&&this.forms[this.currentTab].dirty||this.dirtyMessages.find(n=>n==this.dirtyText)||e&&e.dirty)||this.confirm(this.warningText)}onWindowClose(e){let
n=this.setupService.getCurrentForm();(this.forms[this.currentTab]&&
this.forms[this.currentTab].dirty||this.dirtyMessages.find(s=>s==this.dirtyText)||n&&n.dirty)&&(e.preventDefault(),e.returnValue=!1)}}return
t.\u0275fac=function(e){return
new(e||t)(D(Me),D(Oe),D(qt),D(It))},t.\u0275cmp=z({type:t,selectors:[["app-storage-groups"]],hostBindings:function(e,n){1&e&&C("beforeunload",function(r){return
n.onWindowClose(r)},!1,ni)},decls:25,vars:24,consts:[[1,"m-5"],["label","New
Storage Group","icon","pi
pi-plus-circle","styleClass","p-button-plain",3,"onClick"],["header","New
Storage
Group",3,"visible","modal","draggable","resizable","visibleChange"],[1,"form-group","field"],["for","GroupName",1,"block"],["pInputText","","id","GroupName","name","GroupName",1,"mb-2","form-control","w-full",3,"ngModel","ngModelChange"],["GroupName","ngModel"],[1,"block"],["pTemplate","footer"],[1,"col-12","w-full",3,"onClose","onOpen"],[3,"selected","selectedChange",4,"ngFor","ngForOf"],[1,"flex","justify-content-end"],["icon","pi
pi-angle-left","iconPos","left",1,"p-3",3,
"label","onClick"],["icon","pi
pi-angle-right","iconPos","right",1,"p-3",3,"label","onClick"],["icon","pi
pi-times-circle","styleClass","p-button-plain",3,"label","onClick"],["icon","pi
pi-check-circle","styleClass","p-button-plain",3,"label","disabled","onClick"],[3,"selected","selectedChange"],["pTemplate","header"],["pTemplate","content"],[1,"grid","w-full"],[1,"col-9","pr-1"],[3,"translate","translateParams",4,"ngIf","ngIfElse"],["onlyName",""],[3,"translate","translateParams"],[3,"sgroup","hostName"]],template:function(e,n){1&e&&(l(0,"p-card",0)(1,"h2"),g(2),m(3,"translate"),c(),l(4,"p-button",1),C("onClick",function(){return
n.displayNewDlg=!0}),c(),l(5,"p-dialog",2),C("visibleChange",function(r){return
n.displayNewDlg=r}),l(6,"p"),g(7),m(8,"translate"),c(),l(9,"div",3)(10,"label",4),g(11),m(12,"translate"),c(),l(13,"input",5,6),C("ngModelChange",function(r){return
n.newGroupName=r}),c(),k(15,"small",7),c(),_(16,lZ,4,7,"ng-template",8),c(),k(17,"br"),l(18,"p-accordion",9),C("o
nClose",function(r){return n.onTabClose(r)})("onOpen",function(r){return
n.onTabOpen(r)}),_(19,mZ,3,1,"p-accordionTab",10),c(),l(20,"div",11)(21,"p-button",12),C("onClick",function(){return
n.router.navigate(["setupwizard/channel-editor"])}),m(22,"translate"),c(),l(23,"p-button",13),C("onClick",function(){return
n.router.navigate(["setupwizard/system-events"])}),m(24,"translate"),c()()()),2&e&&(a(2),S(f(3,13,"settings.sgroups.title")),a(3),q(A(23,fZ)),p("visible",n.displayNewDlg)("modal",!0)("draggable",!1)("resizable",!1),a(2),S(f(8,15,"settings.sgroups.name_prompt")),a(4),S(f(12,17,"settings.sgroups.name_label")),a(2),p("ngModel",n.newGroupName),a(6),p("ngForOf",n.storageGroups),a(2),x("label",f(22,19,"common.back")),a(2),x("label",f(24,21,"common.next")))},directives:[Ne,ve,bn,Ye,Te,_e,ne,Ss,at,Ts,Q,mu,aZ],pipes:[ce],styles:["@media
screen and (max-width:
48rem){.p-card-body,.p-card-content,.p-accordion-content{padding:0rem!important}}\n"],encapsulation:2}),t})();const
_Z=["event
sform"];function bZ(t,i){if(1&t){const
e=I();l(0,"div",9)(1,"div",10)(2,"label",11),g(3),c(),l(4,"input",12),C("ngModelChange",function(s){return
v(e).$implicit.Value=s}),c()()()}if(2&t){const
e=i.$implicit;a(2),x("for",e.Key),a(1),S(e.LocalizedName),a(1),x("id",e.Key),x("name",e.Key),p("ngModel",e.Value)}}function
vZ(t,i){if(1&t&&(l(0,"div",7),_(1,bZ,5,5,"div",8),c()),2&t){const
e=d();a(1),p("ngForOf",e.events)}}function
CZ(t,i){1&t&&(k(0,"p-message",18),m(1,"translate")),2&t&&x("text",f(1,1,"common.savesuccess"))}function
yZ(t,i){1&t&&(k(0,"p-message",19),m(1,"translate")),2&t&&x("text",f(1,1,"common.networkfail"))}function
wZ(t,i){if(1&t){const
e=I();l(0,"div",13)(1,"div",14),_(2,CZ,2,3,"p-message",15),_(3,yZ,2,3,"p-message",16),c(),l(4,"p-button",17),C("onClick",function(){v(e);const
s=d(),r=F(1);return
s.saveForm(),r.form.markAsPristine()}),m(5,"translate"),c()()}if(2&t){const
e=d(),n=F(1);a(2),p("ngIf",e.successCount>0&&e.successCount==e.expectedCount&&0==e.errorCount&&!n.dirt
y),a(1),p("ngIf",e.errorCount>0),a(1),x("label",f(5,4,"common.save")),p("disabled",!n.dirty||e.setupService.schedulingEnabled)}}let
TZ=(()=>{class
t{constructor(e,n,s,r,o){this.configService=e,this.translate=n,this.setupService=s,this.mythService=r,this.router=o,this.hostName="",this.events=[],this.successCount=0,this.errorCount=0,this.expectedCount=0,this.warningText="settings.common.warning",this.kClearSettingValue="<clear_setting_value>",this.jqbObserver={next:u=>{u.bool?this.successCount++:(this.errorCount++,this.currentForm&&this.currentForm.form.markAsDirty())},error:u=>{console.error(u),this.errorCount++,this.currentForm&&this.currentForm.form.markAsDirty()}},this.mythService.GetHostName().subscribe({next:u=>{this.hostName=u.String,this.configService.GetSystemEvents().subscribe(h=>{this.eventList=h,this.events=h.SystemEventList.SystemEvents})},error:()=>this.errorCount++}),this.translate.get(this.warningText).subscribe(u=>{this.warningText=u})}ngOnInit(){}saveForm(){this.succ
essCount=0,this.errorCount=0,this.expectedCount=0,this.events.forEach(e=>{let
n=e.Value.trim();n?this.mythService.PutSetting({HostName:this.hostName,Key:e.Key,Value:n}).subscribe(this.jqbObserver):this.mythService.DeleteSetting({HostName:this.hostName,Key:e.Key}).subscribe(this.jqbObserver),this.expectedCount++})}confirm(e){return
oe(window.confirm(e))}canDeactivate(){return!this.currentForm||!this.currentForm.dirty||this.confirm(this.warningText)}onWindowClose(e){this.currentForm&&this.currentForm.dirty&&(e.preventDefault(),e.returnValue=!1)}}return
t.\u0275fac=function(e){return
new(e||t)(D(zo),D(Oe),D(Me),D(qt),D(It))},t.\u0275cmp=z({type:t,selectors:[["app-system-events"]],viewQuery:function(e,n){if(1&e&&W(_Z,5),2&e){let
s;V(s=B())&&(n.currentForm=s.first)}},hostBindings:function(e,n){1&e&&C("beforeunload",function(r){return
n.onWindowClose(r)},!1,ni)},decls:11,vars:6,consts:[["name","eventsform",1,"ml-3","mr-3"],["eventsform","ngForm"],[1,"m-5"],["pTemplate","content"],["pTempl
ate","footer"],[1,"flex","justify-content-end"],["icon","pi
pi-angle-left","iconPos","left",1,"p-3",3,"label","onClick"],[1,"grid"],["class","mb-4
w-full",4,"ngFor","ngForOf"],[1,"mb-4","w-full"],[1,"form-group","field"],[1,"label","block",3,"for"],["pInputText","",1,"mb-2","form-control","w-full",3,"id","ngModel","name","ngModelChange"],[1,"grid","nogutter"],[1,"col-12"],["severity","success",3,"text",4,"ngIf"],["severity","error",3,"text",4,"ngIf"],["icon","pi
pi-save","iconPos","left",1,"col","pr-1",3,"label","disabled","onClick"],["severity","success",3,"text"],["severity","error",3,"text"]],template:function(e,n){1&e&&(l(0,"form",0,1)(2,"h2"),g(3),m(4,"translate"),c(),l(5,"p-card",2),_(6,vZ,2,1,"ng-template",3),_(7,wZ,6,6,"ng-template",4),c(),l(8,"div",5)(9,"p-button",6),C("onClick",function(){return
n.router.navigate(["setupwizard/storage-groups"])}),m(10,"translate"),c()()()),2&e&&(a(3),S(f(4,2,"settings.sysevents.title")),a(6),x("label",f(10,4,"common.back")))},directives:[z
e,Ue,He,Ne,ne,at,Ye,Te,_e,Q,qe,ve],pipes:[ce],styles:["@media screen and (max-width:
48rem){.p-card-body,.p-card-content,.p-accordion-content{padding:0rem!important}}\n"],encapsulation:2}),t})();const
SZ=["chanform"];function xZ(t,i){if(1&t){const
e=I();l(0,"button",57),C("click",function(){return
v(e),d(2).openNew()}),m(1,"translate"),c()}if(2&t){const
e=d(2);x("label",f(1,2,"settings.chanedit.new_channel")),p("disabled","S"==e.setupService.pageType&&e.setupService.schedulingEnabled)}}function
DZ(t,i){1&t&&g(0),2&t&&T(" ",i.$implicit,"
")}function MZ(t,i){if(1&t){const
e=I();l(0,"p-dropdown",72),C("onChange",function(s){return
v(e).filterCallback(s.value)}),m(1,"translate"),_(2,DZ,1,1,"ng-template",73),c()}if(2&t){const
e=i.$implicit,n=d(3);x("placeholder",f(1,4,"settings.chanedit.all")),p("ngModel",e)("options",n.sourceNames)("showClear",!0)}}function
kZ(t,i){if(1&t){const
e=I();l(0,"p-button",74),C("onClick",function(){return
v(e),d(3).deleteSourceRequest()}),m(1,"translate"),m(2
,"translate"),c()}if(2&t){const
e=d(3);x("pTooltip",f(1,3,"settings.chanedit.delete_source")),x("label",f(2,5,"common.delete")),p("disabled",e.setupService.schedulingEnabled)}}function
IZ(t,i){1&t&&(g(0),m(1,"translate")),2&t&&T("
",f(1,1,"settings.chanedit.delete_message")," ")}function
EZ(t,i){1&t&&k(0,"button",75)}function
RZ(t,i){if(1&t&&(l(0,"tr")(1,"th"),g(2),m(3,"translate"),l(4,"p-columnFilter",58),_(5,MZ,3,6,"ng-template",59),c(),_(6,kZ,3,7,"p-button",60),_(7,IZ,2,3,"ng-template",null,61,we),c()(),l(9,"tr")(10,"th",62),g(11,"\xa0"),c(),l(12,"th",63),g(13),m(14,"translate"),k(15,"p-sortIcon",64),c(),l(16,"th",65),g(17),m(18,"translate"),c(),l(19,"th",66),g(20),m(21,"translate"),c(),l(22,"th",67),g(23),m(24,"translate"),c(),l(25,"th",68),g(26),m(27,"translate"),k(28,"p-sortIcon",69),c(),l(29,"th",65),g(30),m(31,"translate"),c(),l(32,"th",66),g(33),m(34,"translate"),c(),l(35,"th",65),g(36),m(37,"translate"),c(),l(38,"th",65),k(39,"button",70),_(40,EZ,1,0,"button",71),c()()),2&
t){const
e=F(8),n=d(2);a(2),T("",f(3,13,"settings.chanedit.col_source"),":
\xa0
"),a(2),p("showMenu",!1),a(2),p("ngIf","S"==n.setupService.pageType)("ngIfElse",e),a(7),T("
",f(14,15,"settings.chanedit.col_channum"),"
"),a(4),S(f(18,17,"settings.chanedit.col_freqid")),a(3),S(f(21,19,"settings.chanedit.col_callsign")),a(3),S(f(24,21,"settings.chanedit.col_name")),a(3),T("
",f(27,23,"settings.chanedit.col_source"),"
"),a(4),S(f(31,25,"settings.chanedit.col_priority")),a(3),S(f(34,27,"settings.chanedit.col_visibility")),a(3),S(f(37,29,"settings.chanedit.col_useeit")),a(4),p("ngIf","S"==n.setupService.pageType)}}function
LZ(t,i){1&t&&k(0,"img",83),2&t&&x("src",d().$implicit.IconURL,ln)}function
OZ(t,i){1&t&&k(0,"img",84)}function AZ(t,i){if(1&t){const
e=I();l(0,"button",85),C("click",function(){v(e);const
s=d().$implicit;return
d(2).deleteRequest(s)}),m(1,"translate"),c()}if(2&t){const
e=d().$implicit,n=d(2);x("pTooltip",f(1,2,"settings.chanedit.deletechan")),p("disabled",e.ChanId<0||n.s
etupService.schedulingEnabled)}}const
PZ=function(t){return{"line-through":t}};function FZ(t,i){if(1&t){const
e=I();l(0,"tr",76)(1,"td",62),_(2,LZ,1,1,"img",77),_(3,OZ,1,0,"ng-template",null,78,we),c(),l(5,"td",79),g(6),c(),l(7,"td",65),g(8),c(),l(9,"td",66),g(10),c(),l(11,"td",67),g(12),c(),l(13,"td",80),g(14),c(),l(15,"td",65),g(16),c(),l(17,"td",66),g(18),c(),l(19,"td",65),g(20),c(),l(21,"td",65)(22,"button",81),C("click",function(){const
r=v(e).$implicit;return
d(2).editChannel(r)}),m(23,"translate"),c(),_(24,AZ,2,4,"button",82),c()()}if(2&t){const
e=i.$implicit,n=F(4),s=d(2);p("ngClass",U(16,PZ,e.ChanId<0)),a(2),p("ngIf",e.IconURL)("ngIfElse",n),a(4),S(e.ChanNum),a(2),S(e.FrequencyId),a(2),S(e.CallSign),a(2),S(e.ChannelName),a(2),S(e.Source),a(2),S(e.RecPriority),a(2),S(s.getVisibility(e)),a(2),S(e.UseEIT?"Y":"N"),a(2),x("pTooltip",f(23,14,"settings.chanedit.editchan")),p("disabled",e.ChanId<0||"S"==s.setupService.pageType&&s.setupService.schedulingEnabled),a(2),p("ngIf","S"==s
.setupService.pageType)}}function NZ(t,i){if(1&t){const
e=I();l(0,"div",52)(1,"p-table",53),C("onFilter",function(s){return
v(e),d().onFilter(s)}),_(2,xZ,2,4,"ng-template",54),_(3,RZ,41,31,"ng-template",55),_(4,FZ,25,18,"ng-template",56),c()()}if(2&t){const
e=d();a(1),p("value",e.allChannels)("scrollable",!0)("rowHover",!0)}}function
VZ(t,i){1&t&&k(0,"p-progressSpinner")}function
BZ(t,i){1&t&&(k(0,"p-message",91),m(1,"translate")),2&t&&x("text",f(1,1,"common.savesuccess"))}function
HZ(t,i){1&t&&(k(0,"p-message",92),m(1,"translate")),2&t&&x("text",f(1,1,"common.networkfail"))}function
qZ(t,i){if(1&t){const
e=I();l(0,"div",86),_(1,BZ,2,3,"p-message",87),_(2,HZ,2,3,"p-message",88),c(),l(3,"p-button",89),C("onClick",function(){return
v(e),d().closeDialog()}),m(4,"translate"),c(),l(5,"p-button",90),C("onClick",function(){return
v(e),d().saveChannel()}),m(6,"translate"),c()}if(2&t){const
e=d(),n=F(7);a(1),p("ngIf",e.successCount>0&&0==e.errorCount&&!n.dirty),a(1),p("ngIf",e.errorCount>0),
a(1),x("label",f(4,5,"common.close")),a(2),x("label",f(6,7,"common.save")),p("disabled",!n.dirty||""==e.channel.ChannelName.trim()||""==e.channel.ChanNum.trim()||""==e.channel.CallSign.trim())}}function
GZ(t,i){if(1&t){const
e=I();l(0,"p-button",93),C("onClick",function(){return
v(e),d().closeDialog()}),m(1,"translate"),c(),l(2,"p-button",94),C("onClick",function(){return
v(e),d().displayUnsaved=!1}),m(3,"translate"),c()}2&t&&(x("label",f(1,2,"common.nosave")),a(2),x("label",f(3,4,"common.continue")))}function
UZ(t,i){1&t&&(k(0,"p-message",92),m(1,"translate")),2&t&&x("text",f(1,1,"common.networkfail"))}function
zZ(t,i){if(1&t){const
e=I();l(0,"div",86),_(1,UZ,2,3,"p-message",88),c(),l(2,"p-button",89),C("onClick",function(){v(e);const
s=d(),r=F(7);return
s.displayDelete=!1,r.form.markAsPristine()}),m(3,"translate"),c(),l(4,"p-button",95),C("onClick",function(){v(e);const
s=d();return s.deleteChannel(s.channel)}),m(5,"translate"),c()}if(2&t){const
e=d();a(1),p("ngIf",e.errorCount>0)
,a(1),x("label",f(3,3,"common.close")),a(2),x("label",f(5,5,"common.delete"))}}const
jZ=function(t){return{Source:t}};function
$Z(t,i){if(1&t&&(l(0,"p")(1,"b"),g(2),m(3,"translate"),c()()),2&t){const
e=d();a(2),S(Dt(3,1,"settings.chanedit.delete_source_details",U(4,jZ,e.filterEvent.filters.Source.value)))}}function
WZ(t,i){1&t&&(l(0,"p")(1,"b"),g(2),m(3,"translate"),c()()),2&t&&(a(2),S(f(3,1,"settings.chanedit.delete_all_details")))}function
KZ(t,i){if(1&t&&(l(0,"div")(1,"p"),g(2),m(3,"translate"),c()()),2&t){const
e=d();a(2),yo(" ",f(3,3,"common.delete"),"
",e.channel.ChanNum," ",e.channel.ChannelName,"")}}function
QZ(t,i){1&t&&(k(0,"p-message",92),m(1,"translate")),2&t&&x("text",f(1,1,"common.networkfail"))}function
JZ(t,i){if(1&t){const
e=I();l(0,"div",86),_(1,QZ,2,3,"p-message",88),c(),l(2,"p-button",89),C("onClick",function(){v(e);const
s=d(),r=F(7);return
s.displayDeleteSource=!1,s.channelOperation=-1,r.form.markAsPristine()}),m(3,"translate"),c(),l(4,"p-button",96),C("onClick
",function(){return
v(e),d().deleteSource()}),m(5,"translate"),c()}if(2&t){const
e=d();a(1),p("ngIf",e.errorCount>0),a(1),x("label",f(3,4,"common.cancel")),a(2),x("label",f(5,6,"common.delete")),p("disabled",e.working)}}const
YZ=function(){return{height:"75vw",width:"50vw"}},Ol=function(){return{minWidth:"400px"}},ZZ=function(t,i,e){return{ChanNum:t,ChannelName:i,Source:e}};let
bS=(()=>{class
t{constructor(e,n,s,r){this.channelService=e,this.translate=n,this.setupService=s,this.router=r,this.allChannels=[],this.videoSources=[],this.commMethods=[],this.sourceNames=[],this.multiplexes=[],this.tvFormats=[{value:"Default",prompt:"common.default"},{value:"NTSC",prompt:"NTSC"},{value:"NTSC-JP",prompt:"NTSC-JP"},{value:"PAL",prompt:"PAL"},{value:"PAL-60",prompt:"PAL-60"},{value:"PAL-BG",prompt:"PAL-BG"},{value:"PAL-DK",prompt:"PAL-DK"},{value:"PAL-D",prompt:"PAL-D"},{value:"PAL-I",prompt:"PAL-I"},{value:"PAL-M",prompt:"PAL-M"},{value:"PAL-N",prompt:"PAL-N"},{value:"PAL-NC",prompt:"PAL-NC"}
,{value:"SECAM",prompt:"SECAM"},{value:"SECAM-D",prompt:"SECAM-D"},{value:"SECAM-DK",prompt:"SECAM-DK"}],this.visibilities=[{value:"Always
Visible",prompt:"settings.chanedit.always-visible"},{value:"Visible",prompt:"settings.chanedit.visible"},{value:"Not
Visible",prompt:"settings.chanedit.not-visible"},{value:"Never
Visible",prompt:"settings.chanedit.never-visible"}],this.headingNew="settings.chanedit.new_channel",this.headingEdit="settings.chanedit.title",this.warningText="settings.common.warning",this.deleteText="settings.common.ru_sure",this.unassignedText="settings.chanedit.unassigned",this.transDone=0,this.visDone=0,this.numTranslations=10,this.successCount=0,this.errorCount=0,this.selectedAdvanced=!1,this.displayChannelDlg=!1,this.dialogHeader="",this.displayUnsaved=!1,this.displayDelete=!1,this.displayDeleteSource=!1,this.working=!1,this.chansLoaded=!1,this.filterEvent={filters:{Source:{matchMode:"",value:""}}},this.channel=this.resetChannel(),this.channelOperation=0,this.sa
veObserver={next:o=>{if(o.bool)switch(console.log("saveObserver
success",o),this.successCount++,this.currentForm.form.markAsPristine(),this.channelOperation){case
0:this.editingChannel&&(Object.assign(this.editingChannel,this.channel),this.editingChannel.Source=this.getSource(this.editingChannel));break;case
1:this.allChannels.push(this.channel);break;case-1:this.channel.ChanId=-99,this.displayDelete=!1,this.displayDeleteSource=!1,this.currentForm.form.markAsPristine();break;case-2:this.channel.ChanId=-99,this.deleteSource()}else
console.log("saveObserver
error",o),this.errorCount++,this.working=!1},error:o=>{console.log("saveObserver
error",o),this.errorCount++,this.working=!1}},this.translate.get(this.unassignedText).subscribe(o=>{this.unassignedText=o,this.transDone++,this.loadLists()}),this.loadTranslations()}ngOnInit(){this.markPristine()}resetChannel(){return{ATSCMajorChan:0,ATSCMinorChan:0,CallSign:"",ChanFilters:"",ChanId:0,ChanNum:"",ChannelGroups:"",ChannelName:"",CommFree
:!1,CommMethod:-1,DefaultAuth:"",ExtendedVisible:"Visible",FineTune:0,Format:"Default",FrequencyId:"",IconURL:"",InputId:0,Inputs:"",MplexId:0,Programs:[],RecPriority:0,ServiceId:0,ServiceType:0,SourceId:0,TimeOffset:0,UseEIT:!1,Visible:!0,XMLTVID:"",ChanSeq:0}}loadLists(){this.channelService.GetChannelInfoList({Details:!0}).subscribe(e=>{this.allChannels=e.ChannelInfoList.ChannelInfos,this.chansLoaded=!0,this.channelService.GetVideoSourceList().subscribe(n=>{this.videoSources=n.VideoSourceList.VideoSources,this.videoSources.unshift({Id:0,SourceName:this.unassignedText}),this.videoSources.forEach(s=>this.sourceNames.push(s.SourceName)),this.allChannels.forEach((s,r)=>{s.ChanSeq=r,s.Source=this.getSource(s)})})}),this.channelService.GetCommMethodList().subscribe(e=>this.commMethods=e.CommMethodList.CommMethods)}loadMultiplexes(e){this.channelService.GetVideoMultiplexList({SourceID:e}).subscribe(n=>{this.multiplexes=n.VideoMultiplexList.VideoMultiplexes})}loadTranslations(){this.visib
ilities.forEach(e=>{this.translate.get(e.prompt).subscribe(n=>{e.prompt=n,this.transDone++,this.visDone++,this.visDone>=this.visibilities.length&&(this.visibilities=[...this.visibilities])})}),this.translate.get(this.headingNew).subscribe(e=>{this.headingNew=e,this.transDone++}),this.translate.get(this.headingEdit).subscribe(e=>{this.headingEdit=e,this.transDone++}),this.translate.get(this.warningText).subscribe(e=>{this.warningText=e,this.transDone++}),this.translate.get(this.deleteText).subscribe(e=>{this.deleteText=e,this.transDone++}),this.translate.get(this.tvFormats[0].prompt).subscribe(e=>{this.tvFormats[0].prompt=e,this.tvFormats=[...this.tvFormats],this.transDone++})}getSource(e){const
n=this.videoSources.find(s=>e.SourceId==s.Id);return
null!=n?n.SourceName:this.unassignedText}getVisibility(e){const
n=this.visibilities.find(s=>e.ExtendedVisible==s.value);return
null!=n?n.prompt:""}openNew(){this.successCount=0,this.errorCount=0,this.dialogHeader=this.headingNew,this.channe
l=this.resetChannel(),this.displayChannelDlg=!0,this.markPristine()}editChannel(e){this.editingChannel=e,this.successCount=0,this.errorCount=0,this.dialogHeader=this.headingEdit,this.channel=Object.assign({},e),this.displayChannelDlg=!0,this.markPristine(),this.loadMultiplexes(e.SourceId),this.selectedAdvanced=!1}saveChannel(){this.successCount=0,this.errorCount=0,this.displayUnsaved=!1;let
e={CallSign:this.channel.CallSign,ChannelID:this.channel.ChanId,ChannelNumber:this.channel.ChanNum,ChannelName:this.channel.ChannelName,CommMethod:this.channel.CommMethod,ExtendedVisible:this.channel.ExtendedVisible,Format:this.channel.Format,FrequencyID:this.channel.FrequencyId,MplexID:this.channel.MplexId,RecPriority:this.channel.RecPriority,ServiceID:this.channel.ServiceId,SourceID:this.channel.SourceId,TimeOffset:this.channel.TimeOffset,UseEIT:this.channel.UseEIT,XMLTVID:this.channel.XMLTVID};0==this.channel.ChanId?(this.channelOperation=1,this.channelService.GetAvailableChanid().subscribe(n=
{this.channel.ChanId=n.int,e.ChannelID=n.int,this.channelService.AddDBChannel(e).subscribe(this.saveObserver)})):(this.channelOperation=0,this.channelService.UpdateDBChannel(e).subscribe(this.saveObserver))}closeDialog(){this.currentForm.dirty?this.displayUnsaved?(this.displayUnsaved=!1,this.displayChannelDlg=!1,this.editingChannel=void
0,this.currentForm.form.markAsPristine()):this.displayUnsaved=!0:(this.displayChannelDlg=!1,this.displayUnsaved=!1,this.editingChannel=void
0)}deleteRequest(e){this.channel=e,this.displayDelete=!0}deleteChannel(e,n){this.successCount=0,this.errorCount=0,this.channel=e,this.channelOperation=n?-2:-1,console.log("Delete
Channel",e),this.channelService.RemoveDBChannel(e.ChanId).subscribe(this.saveObserver)}deleteSourceRequest(){this.channel=this.resetChannel(),this.displayDeleteSource=!0}deleteSource(){this.working=!0;const
e=this.allChannels.find(n=>n.ChanId>0&&(!this.filterEvent.filters.Source.value||this.filterEvent.filters.Source.value==n.Source));e
?this.deleteChannel(e,!0):(this.displayDelete=!1,this.displayDeleteSource=!1,this.currentForm.form.markAsPristine(),this.working=!1)}onFilter(e){this.filterEvent=e}markPristine(){setTimeout(()=>this.currentForm.form.markAsPristine(),200)}confirm(e){return
oe(window.confirm(e))}canDeactivate(){return!this.currentForm||!this.currentForm.dirty||this.confirm(this.warningText)}onWindowClose(e){this.currentForm&&this.currentForm.dirty&&(e.preventDefault(),e.returnValue=!1)}}return
t.\u0275fac=function(e){return
new(e||t)(D(Or),D(Oe),D(Me),D(It))},t.\u0275cmp=z({type:t,selectors:[["app-channel-editor"]],viewQuery:function(e,n){if(1&e&&W(SZ,5),2&e){let
s;V(s=B())&&(n.currentForm=s.first)}},hostBindings:function(e,n){1&e&&C("beforeunload",function(r){return
n.onWindowClose(r)},!1,ni)},decls:167,vars:197,consts:[["class","block card
w-full","style","height:
90vh",4,"ngIf","ngIfElse"],["loading",""],["name","chanform",1,"ml-3","mr-3"],["chanform","ngForm"],[3,"header","visible","modal","closab
le","closeOnEscape","visibleChange"],[1,"form-group","field"],["for","ChannelName",1,"label","block"],["pInputText","","id","ChannelName","name","ChannelName",1,"mb-2","form-control","w-full",3,"ngModel","ngModelChange"],["ChannelName","ngModel"],[1,"block"],["for","ChanNum",1,"label","block"],["pInputText","","id","ChanNum","name","ChanNum",1,"mb-2","form-control","w-full",3,"ngModel","ngModelChange"],["ChanNum","ngModel"],["for","FrequencyId",1,"label","block"],["pInputText","","id","FrequencyId","name","FrequencyId",1,"mb-2","form-control","w-full",3,"ngModel","ngModelChange"],["FrequencyId","ngModel"],["for","CallSign",1,"label","block"],["pInputText","","id","CallSign","name","CallSign",1,"mb-2","form-control","w-full",3,"ngModel","ngModelChange"],["CallSign","ngModel"],["for","ExtendedVisible",1,"label","block"],["optionLabel","prompt","optionValue","value","name","ExtendedVisible",3,"options","ngModel","editable","maxlength","ngModelChange"],["ExtendedVisible","ngModel"],["fo
r","SourceId",1,"label","block"],["optionLabel","SourceName","optionValue","Id","name","SourceId",3,"options","ngModel","editable","maxlength","ngModelChange"],["SourceId","ngModel"],["for","Format",1,"label","block"],["optionLabel","prompt","optionValue","value","name","Format",3,"options","ngModel","editable","maxlength","ngModelChange"],["Format","ngModel"],["for","RecPriority",1,"label","block"],["name","RecPriority","id","RecPriority",3,"ngModel","showButtons","min","max","step","ngModelChange"],["inputId","UseEIT","name","UseEIT",1,"label","mb-2","w-full",3,"ngModel","binary","label","ngModelChange"],["UseEIT","ngModel"],["for","XMLTVID",1,"label","block"],["pInputText","","id","XMLTVID","name","XMLTVID",1,"mb-2","form-control","w-full",3,"ngModel","ngModelChange"],["XMLTVID","ngModel"],["for","TimeOffset",1,"label","block"],["name","TimeOffset","id","TimeOffset",3,"ngModel","showButtons","min","max","step","ngModelChange"],["for","CommMethod",1,"label","block"],["optionLabel"
,"LocalizedName","optionValue","CommMethod","name","CommMethod",3,"options","ngModel","editable","maxlength","ngModelChange"],["CommMethod","ngModel"],[3,"header","selected","selectedChange"],["for","MplexId",1,"label","block"],["optionLabel","Description","optionValue","MplexId","name","MplexId",3,"options","ngModel","editable","maxlength","ngModelChange"],["MplexId","ngModel"],["for","ServiceId",1,"label","block"],["name","ServiceId","id","ServiceId",3,"ngModel","showButtons","min","max","step","ngModelChange"],["pTemplate","footer"],[3,"header","visible","modal","visibleChange"],[3,"header","visible","modal","draggable","resizable","visibleChange"],[4,"ngIf","ngIfElse"],["all",""],[4,"ngIf"],[1,"block","card","w-full",2,"height","90vh"],["scrollHeight","flex","styleClass","p-datatable-striped","responsiveLayout","scroll",3,"value","scrollable","rowHover","onFilter"],["pTemplate","caption"],["pTemplate","header"],["pTemplate","body"],["pButton","","pRipple","","icon","pi
pi-plus",
1,"p-button-success","mr-2",3,"label","disabled","click"],["field","Source","matchMode","equals",3,"showMenu"],["pTemplate","filter"],["icon","pi
pi-trash","styleClass","p-button-danger",3,"pTooltip","label","disabled","onClick",4,"ngIf","ngIfElse"],["explain",""],[2,"flex-basis","8%"],["pSortableColumn","ChanSeq",2,"flex-basis","9%"],["field","ChanSeq"],[2,"flex-basis","6%"],[2,"flex-basis","10%"],[2,"flex-basis","24%"],["pSortableColumn","Source",2,"flex-basis","16%"],["field","Source"],["pButton","","pRipple","","icon","pi
pi-pencil","disabled","true",1,"p-button-text"],["pButton","","pRipple","","icon","pi
pi-trash","class","p-button-text
p-button-danger","disabled","true",4,"ngIf"],["name","filter",3,"ngModel","options","placeholder","showClear","onChange"],["pTemplate","item"],["icon","pi
pi-trash","styleClass","p-button-danger",3,"pTooltip","label","disabled","onClick"],["pButton","","pRipple","","icon","pi
pi-trash","disabled","true",1,"p-button-text","p-button-danger"],["he
ight","40",3,"ngClass"],["height","32","width","42","style","background-color:#000000","onerror","this.height='0'",3,"src",4,"ngIf","ngIfElse"],["nullIcon",""],[2,"flex-basis","9%"],[2,"flex-basis","16%"],["pButton","","pRipple","","icon","pi
pi-pencil","tooltipPosition","left",1,"p-button-text",3,"disabled","pTooltip","click"],["pButton","","pRipple","","icon","pi
pi-trash","class","p-button-text
p-button-danger","tooltipPosition","left",3,"pTooltip","disabled","click",4,"ngIf"],["height","32","width","42","onerror","this.height='0'",2,"background-color","#000000",3,"src"],["height","32","width","42"],["pButton","","pRipple","","icon","pi
pi-trash","tooltipPosition","left",1,"p-button-text","p-button-danger",3,"pTooltip","disabled","click"],[1,"col-12",2,"text-align","left"],["severity","success",3,"text",4,"ngIf"],["severity","error",3,"text",4,"ngIf"],["icon","pi
pi-times-circle","styleClass","p-button-warning",3,"label","onClick"],["icon","pi
pi-check-circle","styleClass","p-but
ton-success",3,"label","disabled","onClick"],["severity","success",3,"text"],["severity","error",3,"text"],["icon","pi
pi-times-circle","styleClass","p-button-danger",3,"label","onClick"],["icon","pi
pi-check-circle","styleClass","p-button-success",3,"label","onClick"],["icon","pi
pi-check-circle","styleClass","p-button-danger",3,"label","onClick"],["icon","pi
pi-check-circle","styleClass","p-button-danger",3,"disabled","label","onClick"]],template:function(e,n){if(1&e&&(l(0,"h2"),g(1),m(2,"translate"),c(),_(3,NZ,5,3,"div",0),_(4,VZ,1,0,"ng-template",null,1,we),l(6,"form",2,3)(8,"p-dialog",4),C("visibleChange",function(r){return
n.displayChannelDlg=r}),l(9,"div",5)(10,"label",6),g(11),m(12,"translate"),c(),l(13,"input",7,8),C("ngModelChange",function(r){return
n.channel.ChannelName=r}),c(),l(15,"small",9),g(16),m(17,"translate"),c()(),l(18,"div",5)(19,"label",10),g(20),m(21,"translate"),c(),l(22,"input",11,12),C("ngModelChange",function(r){return
n.channel.ChanNum=r}),c(),l(24,"smal
l",9),g(25),m(26,"translate"),c()(),l(27,"div",5)(28,"label",13),g(29),m(30,"translate"),c(),l(31,"input",14,15),C("ngModelChange",function(r){return
n.channel.FrequencyId=r}),c(),l(33,"small",9),g(34),m(35,"translate"),c()(),l(36,"div",5)(37,"label",16),g(38),m(39,"translate"),c(),l(40,"input",17,18),C("ngModelChange",function(r){return
n.channel.CallSign=r}),c(),l(42,"small",9),g(43),m(44,"translate"),c()(),l(45,"div",5)(46,"label",19),g(47),m(48,"translate"),c(),l(49,"p-dropdown",20,21),C("ngModelChange",function(r){return
n.channel.ExtendedVisible=r}),c(),l(51,"small",9),g(52),m(53,"translate"),c()(),l(54,"div",5)(55,"label",22),g(56),m(57,"translate"),c(),l(58,"p-dropdown",23,24),C("ngModelChange",function(r){return
n.channel.SourceId=r}),c(),l(60,"small",9),g(61),m(62,"translate"),c()(),l(63,"div",5)(64,"label",25),g(65),m(66,"translate"),c(),l(67,"p-dropdown",26,27),C("ngModelChange",function(r){return
n.channel.Format=r}),c(),l(69,"small",9),g(70),m(71,"translate"),c()(),l(7
2,"div",5)(73,"label",28),g(74),m(75,"translate"),c(),l(76,"p-inputNumber",29),C("ngModelChange",function(r){return
n.channel.RecPriority=r}),c(),l(77,"small",9),g(78),m(79,"translate"),c()(),l(80,"div",5)(81,"p-checkbox",30,31),C("ngModelChange",function(r){return
n.channel.UseEIT=r}),m(83,"translate"),c(),l(84,"small",9),g(85),m(86,"translate"),c()(),l(87,"div",5)(88,"label",32),g(89),m(90,"translate"),c(),l(91,"input",33,34),C("ngModelChange",function(r){return
n.channel.XMLTVID=r}),c(),l(93,"small",9),g(94),m(95,"translate"),c()(),l(96,"div",5)(97,"label",35),g(98),m(99,"translate"),c(),l(100,"p-inputNumber",36),C("ngModelChange",function(r){return
n.channel.TimeOffset=r}),c(),l(101,"small",9),g(102),m(103,"translate"),c()(),l(104,"div",5)(105,"label",37),g(106),m(107,"translate"),c(),l(108,"p-dropdown",38,39),C("ngModelChange",function(r){return
n.channel.CommMethod=r}),c(),l(110,"small",9),g(111),m(112,"translate"),c()(),l(113,"p-accordion")(114,"p-accordionTab",40),C("selecte
dChange",function(r){return
n.selectedAdvanced=r}),m(115,"translate"),l(116,"div",5)(117,"label",41),g(118),m(119,"translate"),c(),l(120,"p-dropdown",42,43),C("ngModelChange",function(r){return
n.channel.MplexId=r}),c(),l(122,"small",9),g(123),m(124,"translate"),c()(),l(125,"div",5)(126,"label",44),g(127),m(128,"translate"),c(),l(129,"p-inputNumber",45),C("ngModelChange",function(r){return
n.channel.ServiceId=r}),c(),l(130,"small",9),g(131),m(132,"translate"),c()()()(),k(133,"br")(134,"br")(135,"br")(136,"br")(137,"br")(138,"br")(139,"br")(140,"br"),_(141,qZ,7,9,"ng-template",46),c(),l(142,"p-dialog",47),C("visibleChange",function(r){return
n.displayUnsaved=r}),m(143,"translate"),l(144,"p"),g(145),m(146,"translate"),c(),_(147,GZ,4,6,"ng-template",46),c(),l(148,"p-dialog",48),C("visibleChange",function(r){return
n.displayDelete=r}),m(149,"translate"),l(150,"h2"),g(151),m(152,"translate"),c(),l(153,"p"),g(154),m(155,"translate"),c(),_(156,zZ,6,7,"ng-template",46),c(),l(157,"p-dialog",
48),C("visibleChange",function(r){return
n.displayDeleteSource=r}),m(158,"translate"),l(159,"h2"),g(160),m(161,"translate"),c(),_(162,$Z,4,6,"p",49),_(163,WZ,4,3,"ng-template",null,50,we),_(165,KZ,4,5,"div",51),_(166,JZ,6,8,"ng-template",46),c()()),2&e){const
s=F(5),r=F(164);a(1),S(f(2,112,"settings.chanedit.title")),a(2),p("ngIf",n.chansLoaded&&n.transDone>=n.numTranslations)("ngIfElse",s),a(5),q(A(187,YZ)),x("header",n.dialogHeader),p("visible",n.displayChannelDlg)("modal",!0)("closable",!1)("closeOnEscape",!1),a(3),S(f(12,114,"settings.chanedit.channame")),a(2),p("ngModel",n.channel.ChannelName),a(3),T("
",f(17,116,"settings.chanedit.channame_desc"),"
"),a(4),S(f(21,118,"settings.chanedit.channum")),a(2),p("ngModel",n.channel.ChanNum),a(3),T("
",f(26,120,"settings.chanedit.channum_desc"),"
"),a(4),S(f(30,122,"settings.chanedit.freqid")),a(2),p("ngModel",n.channel.FrequencyId),a(3),T("
",f(35,124,"settings.chanedit.freqid_desc"),"
"),a(4),S(f(39,126,"settings.chanedit.callsign")),
a(2),p("ngModel",n.channel.CallSign),a(3),T("
",f(44,128,"settings.chanedit.callsign_desc"),"
"),a(4),S(f(48,130,"settings.chanedit.visible_label")),a(2),q(A(188,Ol)),p("options",n.visibilities)("ngModel",n.channel.ExtendedVisible)("editable",!1)("maxlength",0),a(3),T("
",f(53,132,"settings.chanedit.visible_desc"),"
"),a(4),S(f(57,134,"settings.chanedit.source_label")),a(2),q(A(189,Ol)),p("options",n.videoSources)("ngModel",n.channel.SourceId)("editable",!1)("maxlength",0),a(3),T("
",f(62,136,"settings.chanedit.source_desc"),"
"),a(4),S(f(66,138,"settings.chanedit.format_label")),a(2),q(A(190,Ol)),p("options",n.tvFormats)("ngModel",n.channel.Format)("editable",!1)("maxlength",0),a(3),T("
",f(71,140,"settings.chanedit.format_desc"),"
"),a(4),S(f(75,142,"settings.chanedit.priority_label")),a(2),p("ngModel",n.channel.RecPriority)("showButtons",!0)("min",-99)("max",99)("step",1),a(2),T("
",f(79,144,"settings.chanedit.priority_desc"),"
"),a(3),x("label",f(83,146,"settings.chanedit.eit_la
bel")),p("ngModel",n.channel.UseEIT)("binary",!0),a(4),T("
",f(86,148,"settings.chanedit.eit_desc"),"
"),a(4),S(f(90,150,"settings.chanedit.xmltvid_label")),a(2),p("ngModel",n.channel.XMLTVID),a(3),T("
",f(95,152,"settings.chanedit.xmltvid_desc"),"
"),a(4),S(f(99,154,"settings.chanedit.timeoffset_label")),a(2),p("ngModel",n.channel.TimeOffset)("showButtons",!0)("min",-1440)("max",1440)("step",30),a(2),T("
",f(103,156,"settings.chanedit.timeoffset_desc"),"
"),a(4),S(f(107,158,"settings.chanedit.commmethod_label")),a(2),q(A(191,Ol)),p("options",n.commMethods)("ngModel",n.channel.CommMethod)("editable",!1)("maxlength",0),a(3),T("
",f(112,160,"settings.chanedit.commmethod_desc"),"
"),a(3),x("header",f(115,162,"settings.chanedit_advanced")),p("selected",n.selectedAdvanced),a(4),S(f(119,164,"settings.chanedit.mplex_label")),a(2),q(A(192,Ol)),p("options",n.multiplexes)("ngModel",n.channel.MplexId)("editable",!1)("maxlength",0),a(3),T("
",f(124,166,"settings.chanedit.mplex_desc")," "),a(4),
S(f(128,168,"settings.chanedit.serviceid_label")),a(2),p("ngModel",n.channel.ServiceId)("showButtons",!0)("min",-1)("max",65535)("step",1),a(2),T("
",f(132,170,"settings.chanedit.serviceid_desc"),"
"),a(11),x("header",f(143,172,"common.unsaved_heading")),p("visible",n.displayUnsaved)("modal",!0),a(3),S(f(146,174,"common.unsaved_message")),a(3),x("header",f(149,176,"settings.chanedit.delete_this")),p("visible",n.displayDelete)("modal",!0)("draggable",!1)("resizable",!1),a(3),S(f(152,178,"settings.common.ru_sure")),a(3),S(Dt(155,180,"settings.chanedit.delete_details",Qt(193,ZZ,n.channel.ChanNum,n.channel.ChannelName,n.getSource(n.channel)))),a(3),x("header",f(158,183,"settings.chanedit.delete_source")),p("visible",n.displayDeleteSource)("modal",!0)("draggable",!1)("resizable",!1),a(3),S(f(161,185,"settings.common.ru_sure")),a(2),p("ngIf",n.filterEvent.filters.Source.value)("ngIfElse",r),a(3),p("ngIf",0!=n.channel.ChanId)}},directives:[Q,Dn,ne,On,bt,vg,Ot,Te,_e,ve,Kt,yd,wd,Le,Go,ze,Ue,
He,bn,Ye,_n,pt,sn,Ss,Ts,qe],pipes:[ce],styles:[""]}),t})(),XZ=(()=>{class
t{constructor(e){this.router=e}ngOnInit(){}}return t.\u0275fac=function(e){return
new(e||t)(D(It))},t.\u0275cmp=z({type:t,selectors:[["app-wiz-channeledit"]],decls:11,vars:6,consts:[[1,"m-5"],[1,"flex","justify-content-end"],["icon","pi
pi-angle-left","iconPos","left",1,"p-3",3,"label","onClick"],["icon","pi
pi-angle-right","iconPos","right",1,"p-3",3,"label","onClick"]],template:function(e,n){1&e&&(l(0,"p-card",0),k(1,"app-channel-editor")(2,"br")(3,"br")(4,"br")(5,"br"),l(6,"div",1)(7,"p-button",2),C("onClick",function(){return
n.router.navigate(["setupwizard/input-connections"])}),m(8,"translate"),c(),l(9,"p-button",3),C("onClick",function(){return
n.router.navigate(["setupwizard/storage-groups"])}),m(10,"translate"),c()()()),2&e&&(a(7),x("label",f(8,2,"common.back")),a(2),x("label",f(10,4,"common.next")))},directives:[Ne,bS,ve],pipes:[ce],styles:[""]}),t})(),eX=(()=>{class
t{}return t.\u0275fac=function(e)
{return
new(e||t)},t.\u0275mod=he({type:t}),t.\u0275inj=ue({imports:[[vn.forChild([{path:"setupwizard",component:rS,children:[{path:"selectlanguage",component:nK,canDeactivate:[ji]},{path:"dbsetup",component:RK,canDeactivate:[ji]},{path:"general",component:WJ,canDeactivate:[ji]},{path:"capture-cards",component:hS,canDeactivate:[ji]},{path:"recording-profiles",component:mS,canDeactivate:[ji]},{path:"video-sources",component:UY,canDeactivate:[ji]},{path:"input-connections",component:_S,canDeactivate:[ji]},{path:"channel-editor",component:XZ,canDeactivate:[ji]},{path:"storage-groups",component:gZ,canDeactivate:[ji]},{path:"system-events",component:TZ,canDeactivate:[ji]}]}])],vn]}),t})(),vS=(()=>{class
t{constructor(e){this.httpClient=e,this.guide_hours=3,this.guide_millisecs=60*this.guide_hours*60*1e3,this.startDate=new
Date}toTime(e){return new Date(e).toISOString()}toStartTime(e){return
this.toTime(e)}toEndTime(e){let n=new Date(e),s=new
Date(n.getTime()+this.guide_millisecs);return
this.toTime(s.toISOString())}toHalfHour(e){let n=new Date(e);return
n.setMinutes(n.getMinutes()<30?0:30),n.setSeconds(0),n}AddToChannelGroup(e){return
this.httpClient.post("/Guide/AddToChannelGroup",e)}GetCategoryList(){return
this.httpClient.get("/Guide/GetCategoryList")}GetChannelGroupList(e){let n=(new
ye).set("IncludeEmpty",e);return
this.httpClient.get("/Guide/GetChannelGroupList",{params:n})}GetChannelIcon(e){let
n=(new
ye).set("ChanId",e.ChanId).set("Width",e.Width).set("Height",e.Height);return
this.httpClient.get("/Guide/GetChannelIcon",{params:n})}GetProgramDetails(e){let
n=(new ye).set("ChanId",e.ChanId).set("StartTime",e.StartTime);return
this.httpClient.get("/Guide/GetProgramDetails",{params:n})}GetProgramGuide(e,n){e&&(this.startDate=e);let
s=this.toHalfHour(this.startDate).toISOString(),r={StartTime:this.toStartTime(s),EndTime:this.toEndTime(s),Details:!0,ChannelGroupId:n};return
this.httpClient.post("/Guide/GetProgramGuide",r)}GetProgramList(e){let n=new
ye;for(const
[s,r]of Object.entries(e))n=n.set(s,r);return
this.httpClient.get("/Guide/GetProgramList",{params:n})}GetStoredSearches(e){let
n=(new ye).set("Type",e);return
this.httpClient.get("/Guide/GetStoredSearches",{params:n})}RemoveFromChannelGroup(e){return
this.httpClient.post("/Guide/RemoveFromChannelGroup",e)}}return
t.\u0275fac=function(e){return
new(e||t)(K(Bi))},t.\u0275prov=X({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();function
tX(t,i){if(1&t){const
e=I();l(0,"div",15)(1,"p-dropdown",16),C("ngModelChange",function(s){return
v(e),d(2).channelGroup=s})("onChange",function(){return
v(e),d(2).refresh()}),m(2,"translate"),c()()}if(2&t){const
e=d(2);a(1),x("pTooltip",f(2,3,"dashboard.guide.channel_group")),p("ngModel",e.channelGroup)("options",e.channelGroups)}}function
nX(t,i){if(1&t&&(l(0,"div",17)(1,"b"),g(2),m(3,"translate"),c()()),2&t){const
e=d(2);a(2),Ec(" ",f(3,4,"dashboard.guide.channel"),"
",e.channel.ChanNum," ",e.channel.CallSign,"
",e.channel.ChannelName,"")}}funct
ion
iX(t,i){1&t&&(l(0,"div",17)(1,"b"),g(2),m(3,"translate"),c()()),2&t&&(a(2),T("
",f(3,1,"dashboard.guide.people_search")," "))}function
sX(t,i){1&t&&(l(0,"div",17)(1,"b"),g(2),m(3,"translate"),c()()),2&t&&(a(2),T("
",f(3,1,"dashboard.guide.title_search")," "))}function
rX(t,i){1&t&&(l(0,"div",17)(1,"b"),g(2),m(3,"translate"),c()()),2&t&&(a(2),T("
",f(3,1,"dashboard.guide.full_search")," "))}function
oX(t,i){if(1&t){const
e=I();l(0,"div",18)(1,"input",19),C("ngModelChange",function(s){return
v(e),d(2).searchValue=s}),c(),l(2,"button",20),C("click",function(){return
v(e),d(2).titleSearch()}),m(3,"translate"),c(),l(4,"button",21),C("click",function(){return
v(e),d(2).peopleSearch()}),m(5,"translate"),c(),l(6,"button",22),C("click",function(){return
v(e),d(2).fullSearch()}),m(7,"translate"),c()()}if(2&t){const
e=d(2);a(1),p("ngModel",e.searchValue),a(1),x("pTooltip",f(3,4,"dashboard.guide.title_search")),a(2),x("pTooltip",f(5,6,"dashboard.guide.people_search")),a(2),x("pTooltip",f(7,
8,"dashboard.guide.full_search"))}}function aX(t,i){if(1&t){const
e=I();l(0,"div",7)(1,"button",23),C("click",function(){return
v(e),d(2).onGrid()}),m(2,"translate"),c()()}2&t&&(a(1),x("pTooltip",f(2,1,"dashboard.guide.retgrid")))}const
lX=function(){return{width:"30px",height:"30px"}};function
cX(t,i){1&t&&(l(0,"div"),k(1,"p-progressSpinner"),c()),2&t&&(a(1),q(A(2,lX)))}function
uX(t,i){if(1&t){const
e=I();l(0,"div")(1,"button",24),C("click",function(){v(e);const
s=d(3);return
s.refreshing=!0,s.refresh()}),m(2,"translate"),c()()}2&t&&(a(1),x("pTooltip",f(2,1,"common.refresh")))}const
dX=function(t,i){return[t,i]};function
pX(t,i){if(1&t&&_(0,uX,3,3,"div",14),2&t){const
e=d(2);p("ngIf",Ge(1,dX,e.CHANNEL,e.GRID).indexOf(e.displayType)>-1)}}function
hX(t,i){}function
mX(t,i){if(1&t&&(de(0),l(1,"div",34),k(2,"app-guide-timebar",35),c(),pe()),2&t){const
e=d(4);a(2),p("guide",e)}}function
fX(t,i){if(1&t&&(de(0),k(1,"app-guide-programentry",36),pe()),2&t){const
e=d().$implicit,n=d().$impl
icit,s=d(3);a(1),p("program",e)("guideStartTime",s.m_programGuide.ProgramGuide.StartTime)("guideEndTime",s.m_programGuide.ProgramGuide.EndTime)("guideComponent",s)("channel",n)}}function
gX(t,i){if(1&t&&(de(0),_(1,fX,2,5,"ng-container",14),pe()),2&t){const
e=i.$implicit,n=d(4);a(1),p("ngIf",!n.timeChange&&n.inDisplayWindow(e.StartTime,e.EndTime))}}function
_X(t,i){if(1&t&&(l(0,"div",28),_(1,mX,3,1,"ng-container",14),l(2,"div",29)(3,"div",30),k(4,"app-guide-channelicon",31),c(),l(5,"div",32),_(6,gX,2,1,"ng-container",33),c()()()),2&t){const
e=i.$implicit,n=i.rowIndex,s=d(3);a(1),p("ngIf",n%5==0),a(3),p("channel",e)("guideComponent",s),a(2),p("ngForOf",e.Programs)}}const
bX=function(){return{width:"100%",height:"90vh"}};function
vX(t,i){if(1&t&&(l(0,"div")(1,"p-scrollPanel")(2,"p-dataView",25),_(3,hX,0,0,"ng-template",26),_(4,_X,7,4,"ng-template",27),c()()()),2&t){const
e=d(2);a(1),q(A(4,bX)),a(1),p("value",e.m_programGuide.ProgramGuide.Channels)("totalRecords",e.m_programGuide.Progra
mGuide.TotalAvailable)}}function
CX(t,i){if(1&t&&(l(0,"div"),k(1,"app-programs",37),c()),2&t){const
e=d(2);a(1),p("inter",e.inter)("programs",e.listPrograms)}}const
Cg=function(t,i,e,n){return[t,i,e,n]};function yX(t,i){if(1&t){const
e=I();l(0,"div")(1,"div",5),_(2,tX,3,5,"div",6),l(3,"div",7)(4,"p-calendar",8),C("ngModelChange",function(s){return
v(e),d().m_pickerDate=s})("onClose",function(){return
v(e),d().onDateChange()})("keyup.enter",function(){return
v(e),d().onDateChange()})("onBlur",function(){return
v(e),d().onDateChange()}),m(5,"translate"),c()(),_(6,nX,4,6,"div",9),_(7,iX,4,3,"div",9),_(8,sX,4,3,"div",9),_(9,rX,4,3,"div",9),_(10,oX,8,10,"div",10),_(11,aX,3,3,"div",11),l(12,"div",7),_(13,cX,2,3,"div",0),_(14,pX,1,4,"ng-template",null,12,we),c(),l(16,"div",7)(17,"button",13),C("click",function(){return
v(e),d().showLegend=!0}),m(18,"translate"),c()()(),_(19,vX,5,5,"div",14),_(20,CX,2,2,"div",14),c()}if(2&t){const
e=F(15),n=d();a(2),p("ngIf",n.displayType==n.GRID),a(2),x("p
Tooltip",f(5,22,"dashboard.guide.calendar_tip")),p("ngModel",n.m_pickerDate)("showTime",!0)("stepMinute",30)("dateFormat","yy/mm/dd")("selectOtherMonths",!0)("showIcon",!0)("showOnFocus",!0)("showButtonBar",!0)("clearButtonStyleClass","hidden"),a(2),p("ngIf",n.displayType==n.CHANNEL),a(1),p("ngIf",n.displayType==n.PEOPLESEARCH),a(1),p("ngIf",n.displayType==n.TITLESEARCH),a(1),p("ngIf",n.displayType==n.FULLSEARCH),a(1),p("ngIf",qn(26,Cg,n.GRID,n.TITLESEARCH,n.PEOPLESEARCH,n.FULLSEARCH).indexOf(n.displayType)>-1),a(1),p("ngIf",qn(31,Cg,n.CHANNEL,n.TITLESEARCH,n.PEOPLESEARCH,n.FULLSEARCH).indexOf(n.displayType)>-1),a(2),p("ngIf",n.refreshing)("ngIfElse",e),a(4),x("label",f(18,24,"dashboard.guide.colors")),a(2),p("ngIf",n.displayType==n.GRID),a(1),p("ngIf",qn(36,Cg,n.CHANNEL,n.TITLESEARCH,n.PEOPLESEARCH,n.FULLSEARCH).indexOf(n.displayType)>-1)}}function
wX(t,i){1&t&&k(0,"p-progressSpinner")}function
TX(t,i){if(1&t&&k(0,"app-legend",38),2&t){const
e=d();p("programGuide",e.displayType==e.
GRID?e.m_programGuide:null)("listPrograms",e.displayType==e.GRID?null:e.listPrograms)}}const
SX=function(){return{width:"80vw"}};let CS=(()=>{class
t{constructor(e,n){this.guideService=e,this.translate=n,this.m_startDate=new
Date,this.m_pickerDate=new Date,this.m_endDate=new
Date,this.channelGroups=[],this.m_channelData=[],this.m_channelTotal=10,this.m_rows=10,this.listPrograms=[],this.allGroup={GroupId:0,Name:this.translate.instant("settings.chanedit.all"),Password:""},this.channelGroup=this.allGroup,this.loaded=!1,this.refreshing=!1,this.timeChange=!1,this.inter={summaryComponent:this},this.GRID=1,this.CHANNEL=2,this.TITLESEARCH=3,this.PEOPLESEARCH=4,this.FULLSEARCH=5,this.displayType=this.GRID,this.searchValue="",this.showLegend=!1,this.translate.onLangChange.subscribe(s=>{console.log("Event:
language change, new language
("+s.lang+")"),this.switchLanguage(s.lang),this.fetchData()})}ngOnInit(){this.fetchData()}switchLanguage(e){this.translate.use(e)}fetchData(e){0==this.channelGr
oups.length&&this.guideService.GetChannelGroupList(!1).subscribe(n=>{console.log(n),this.channelGroups=n.ChannelGroupList.ChannelGroups,this.channelGroups.unshift(this.allGroup)}),this.guideService.GetProgramGuide(e,this.channelGroup.GroupId).subscribe(n=>{this.m_programGuide=n,this.m_startDate=new
Date(n.ProgramGuide.StartTime),this.m_pickerDate=new
Date(this.m_startDate),this.m_endDate=new
Date(n.ProgramGuide.EndTime),this.m_channelData=n.ProgramGuide.Channels,this.m_channelTotal=n.ProgramGuide.TotalAvailable,this.loaded=!0,this.refreshing=!1,this.timeChange=!1})}fetchDetails(){let
e=this.m_startDate.getTime(),s={Details:!0,StartTime:new
Date(e+1e3).toISOString()};switch(this.displayType){case
this.CHANNEL:s.ChanId=this.channel.ChanId;break;case
this.TITLESEARCH:s.TitleFilter=this.searchValue,s.Count=1e3;break;case
this.PEOPLESEARCH:s.PersonFilter=this.searchValue,s.Count=1e3;break;case
this.FULLSEARCH:s.KeywordFilter=this.searchValue,s.Count=1e3}this.listPrograms=[],this.guideSer
vice.GetProgramList(s).subscribe(r=>{this.listPrograms=r.ProgramList.Programs,this.loaded=!0,this.refreshing=!1})}inDisplayWindow(e,n){let
s=new Date(e),r=new Date(n),o=new Date(this.m_startDate),u=new
Date(this.m_endDate);return!(r<=o||s>=u)&&s<u}onDateChange(){this.m_pickerDate||(this.m_pickerDate=new
Date),this.m_pickerDate.getTime()!=this.m_startDate.getTime()&&(this.m_startDate=new
Date(this.m_pickerDate),this.timeChange=!0,this.refresh())}refresh(){switch(this.refreshing=!0,this.displayType){case
this.GRID:this.m_startDate&&(this.refreshing=!0,this.fetchData(this.m_startDate));break;case
this.CHANNEL:case this.TITLESEARCH:case this.PEOPLESEARCH:case
this.FULLSEARCH:this.refreshing=!0,this.fetchDetails()}}onChannel(e){this.channel=e,this.displayType=this.CHANNEL,this.refresh()}onGrid(){this.displayType=this.GRID,this.refresh()}titleSearch(){this.searchValue=this.searchValue.trim(),this.searchValue.length>1&&(this.displayType=this.TITLESEARCH,this.refresh())}peopleSearch(){this.
searchValue=this.searchValue.trim(),this.searchValue.length>1&&(this.displayType=this.PEOPLESEARCH,this.refresh())}fullSearch(){this.searchValue=this.searchValue.trim(),this.searchValue.length>1&&(this.displayType=this.FULLSEARCH,this.refresh())}}return
t.\u0275fac=function(e){return
new(e||t)(D(vS),D(Oe))},t.\u0275cmp=z({type:t,selectors:[["app-guide"]],decls:10,vars:14,consts:[[4,"ngIf","ngIfElse"],[3,"inter"],["loading",""],[3,"header","visible","modal","visibleChange"],["pTemplate",""],[1,"flex"],["class","flex
align-items-center
pr-5",4,"ngIf"],[1,"flex","align-items-center"],["tooltipPosition","top",3,"ngModel","showTime","stepMinute","dateFormat","selectOtherMonths","showIcon","showOnFocus","showButtonBar","clearButtonStyleClass","pTooltip","ngModelChange","onClose","keyup.enter","onBlur"],["class","flex
align-items-center p-5",4,"ngIf"],["class","flex
align-items-center pl-5",4,"ngIf"],["class","flex
align-items-center",4,"ngIf"],["refreshBn",""],["type","text","pButton","",
3,"label","click"],[4,"ngIf"],[1,"flex","align-items-center","pr-5"],["name","channelGroup","optionLabel","Name","tooltipPosition","top",3,"ngModel","options","pTooltip","ngModelChange","onChange"],[1,"flex","align-items-center","p-5"],[1,"flex","align-items-center","pl-5"],["type","text","pInputText","","id","searchValue","name","searchValue","placeholder","Search",1,"text-xl",3,"ngModel","ngModelChange"],["pButton","","pRipple","","icon","pi
pi-search","tooltipPosition","top",1,"p-button-text",3,"pTooltip","click"],["pButton","","pRipple","","icon","pi
pi-user","tooltipPosition","top",1,"p-button-text",3,"pTooltip","click"],["pButton","","pRipple","","icon","pi
pi-search-plus","tooltipPosition","top",1,"p-button-text",3,"pTooltip","click"],["pButton","","pRipple","","icon","pi
pi-table","tooltipPosition","top",1,"p-button-text",3,"pTooltip","click"],["pButton","","pRipple","","icon","pi
pi-refresh","tooltipPosition","top",1,"p-button-text",3,"pTooltip","click"],[3,"value","totalRe
cords"],["pTemplate","header","styleClass","timeHeader"],["pTemplate","listItem"],[1,"grid","col-12","p-3"],[1,"grid","flex-grow-1"],[1,"col-1"],[3,"channel","guideComponent"],[1,"col"],[4,"ngFor","ngForOf"],[1,"col-12"],[3,"guide"],[3,"program","guideStartTime","guideEndTime","guideComponent","channel"],[3,"inter","programs"],[3,"programGuide","listPrograms"]],template:function(e,n){if(1&e&&(l(0,"h2"),g(1),m(2,"translate"),c(),_(3,yX,21,41,"div",0),k(4,"app-schedule",1),_(5,wX,1,0,"ng-template",null,2,we),l(7,"p-dialog",3),C("visibleChange",function(r){return
n.showLegend=r}),m(8,"translate"),_(9,TX,1,2,"ng-template",4),c()),2&e){const
s=F(6);a(1),T("",f(2,9,"dashboard.programguide"),"
"),a(2),p("ngIf",n.loaded)("ngIfElse",s),a(1),p("inter",n.inter),a(3),q(A(13,SX)),x("header",f(8,11,"dashboard.guide.colors")),p("visible",n.showLegend)("modal",!0)}},styles:[".channelRow[_ngcontent-%COMP%]{display:block;grid-template-columns:90px
auto;width:100%;height:82px;padding-bottom:2px}.progr
amsBox[_ngcontent-%COMP%], .timebarbox[_ngcontent-%COMP%]{grid-template-columns:90px
auto;grid-template-rows:28px;width:100%}"]}),t})();function
xX(t,i){1&t&&k(0,"img",5),2&t&&x("src",d().channel.IconURL,ln)}function
DX(t,i){1&t&&k(0,"img",6)}let MX=(()=>{class
t{constructor(){}ngOnInit(){}}return t.\u0275fac=function(e){return
new(e||t)},t.\u0275cmp=z({type:t,selectors:[["app-guide-channelicon"]],inputs:{channel:"channel",guideComponent:"guideComponent"},decls:8,vars:4,consts:[[1,"flex","flex-column","align-items-center","channelBox","cursor-pointer",3,"click"],[1,"channelIcon"],["height","57",3,"src",4,"ngIf","ngIfElse"],["nullIcon",""],[1,"channelText"],["height","57",3,"src"],["height","0","width","0"]],template:function(e,n){if(1&e&&(l(0,"div",0),C("click",function(){return
n.guideComponent.onChannel(n.channel)}),l(1,"div",1),_(2,xX,1,1,"img",2),_(3,DX,1,0,"ng-template",null,3,we),c(),l(5,"div",4)(6,"span"),g(7),c()()()),2&e){const
s=F(4);a(2),p("ngIf",n.channel.IconURL)("ngIfE
lse",s),a(5),We("",n.channel.ChanNum,"
",n.channel.CallSign,"")}},directives:[Q],styles:[".channelBox[_ngcontent-%COMP%]{border-radius:10px;background:var(--surface-200);height:120px}.channelIcon[_ngcontent-%COMP%]{height:57px;max-width:86px;margin-top:10px;margin-bottom:3px;overflow:hidden;float:right}.channelText[_ngcontent-%COMP%]{clear:both;font-weight:700;text-align:-webkit-center;overflow:hidden;text-overflow:ellipsis;padding:0
3px}"]}),t})();const
kX=function(){return["WillRecord","Recording"]};function
IX(t,i){if(1&t&&(l(0,"div")(1,"div",5),g(2),c()()),2&t){const
e=d();a(1),p("ngClass",A(2,kX).indexOf(e.program.Recording.StatusName)>-1?"bg-green-500":"bg-pink-400"),a(1),T("
",e.dataService.recStatusText[e.program.Recording.StatusName],"")}}function
EX(t,i){if(1&t&&(l(0,"div")(1,"div",6),g(2),c()()),2&t){const
e=d();a(2),S((e.program.Season>0?"S"+e.program.Season+"E"+e.program.Episode:"")+"
"+e.program.SubTitle)}}const
RX=function(t,i){return[t,i,"guide_type_default"]};let LX
=(()=>{class
t{constructor(e){this.dataService=e,this.editSchedule=!1,this.typeclass="",this.catclass="",this.regex=/[^a-z0-9]/g}ngOnInit(){this.typeclass="guide_type_"+this.program.CatType,this.catclass="guide_cat_"+this.program.Category.toLowerCase().replace(this.regex,"_")}durationToWidth(){let
e=new Date(this.program.StartTime),n=new Date(this.program.EndTime),s=new
Date(this.guideStartTime),r=new
Date(this.guideEndTime),h=e<s?s:e,b=n>r?r:n,y=r.getTime()-s.getTime();return(b.getTime()-h.getTime())/y*100}openDialog(){this.guideComponent.inter.sched&&this.guideComponent.inter.sched.open(this.program,this.channel)}}return
t.\u0275fac=function(e){return
new(e||t)(D(Ll))},t.\u0275cmp=z({type:t,selectors:[["app-guide-programentry"]],inputs:{program:"program",channel:"channel",guideStartTime:"guideStartTime",guideEndTime:"guideEndTime",guideComponent:"guideComponent"},decls:8,vars:11,consts:[["tooltipPosition","top",1,"programBox","cursor-pointer",3,"ngClass","pTooltip","click"],[1,"pr
ogramTitle"],[1,"programBody"],[1,"programCatType"],[4,"ngIf"],[1,"programCatType",3,"ngClass"],[1,"programSubtitle"]],template:function(e,n){1&e&&(l(0,"div",0),C("click",function(){return
n.openDialog()}),l(1,"div",1),g(2),c(),l(3,"div",2)(4,"div",3),g(5),c(),_(6,IX,3,3,"div",4),_(7,EX,3,1,"div",4),c()()),2&e&&(_i("width",n.durationToWidth(),"%"),x("pTooltip",n.program.Description),p("ngClass",Ge(8,RX,n.typeclass,n.catclass)),a(2),S(n.program.Title),a(3),S(n.program.Category),a(1),p("ngIf",n.program.Recording),a(1),p("ngIf",0!=n.program.SubTitle.length))},directives:[Le,Kt,Q],styles:[".programBox[_ngcontent-%COMP%]{float:left;height:120px;padding:0
0 0
2px;color:var(--primary-color-text);background:var(--surface-200);border-radius:10px;overflow:hidden;text-overflow:ellipsis}.programTitle[_ngcontent-%COMP%]{padding:5px
8px 4px
7px;width:100%;height:28px;color:var(--primary-color-text);background:linear-gradient(to
bottom,var(--surface-800) 1%,var(--surface-500) 90%,var(--surface-200
)
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;height:45px;z-index:5}.programCatType[_ngcontent-%COMP%]{position:relative;font-weight:700;margin-right:5px;line-height:15px;padding-top:2px;padding-bottom:3px}.programSubtitle[_ngcontent-%COMP%]{position:relative;z-index:1;line-height:15px}"]}),t})(),OX=(()=>{class
t{constructor(e){this.guideService=e}ngOnInit(){}segmentToStartTime(e){const
n=18e5*e;return(new Date(this.guide.m_startDate.getTime()+n).toLocaleTimeString()+"
").replace(/:.. /," ")}pageLeft(){this.guide.m_pickerDate=new
Date(this.guide.m_startDate.getTime()-this.guideService.guide_millisecs),this.guide.onDateChange()}pageRight(){this.guide.m_pickerDate=new
Date(this.guide.m_startDate.getTime()+this.guideService.guide_millisecs),this.guide.
onDateChange()}}return t.\u0275fac=function(e){return
new(e||t)(D(vS))},t.\u0275cmp=z({type:t,selectors:[["app-guide-timebar"]],inputs:{guide:"guide"},decls:25,vars:7,consts:[[1,"grid"],[1,"col-1","datebox"],[1,"col","segmentbox"],[1,"flex"],[1,"flex-none","cursor-pointer",3,"click"],[1,"flex-none"],[1,"flex-grow-1"]],template:function(e,n){1&e&&(l(0,"div",0)(1,"div",1),g(2),c(),l(3,"div",2)(4,"div",3)(5,"div",4),C("click",function(){return
n.pageLeft()}),g(6,"<<"),c(),l(7,"div",5),g(8),c()()(),l(9,"div",2),g(10),c(),l(11,"div",2),g(12),c(),l(13,"div",2),g(14),c(),l(15,"div",2),g(16),c(),l(17,"div",2)(18,"div",3)(19,"div",5),g(20),c(),l(21,"div",6),g(22,"\xa0"),c(),l(23,"div",4),C("click",function(){return
n.pageRight()}),g(24,">>"),c()()()()),2&e&&(a(2),S(n.guide.m_startDate.toLocaleDateString()),a(6),T("\xa0",n.segmentToStartTime(0),""),a(2),S(n.segmentToStartTime(1)),a(2),S(n.segmentToStartTime(2)),a(2),S(n.segmentToStartTime(3)),a(2),S(n.segmentToStartTime(4)),a(4),S(n.segmentTo
StartTime(5)))},styles:[".timebarbox[_ngcontent-%COMP%]{grid-template-columns:90px
auto;grid-template-rows:28px;width:100%}.datebox[_ngcontent-%COMP%]{padding:5px 8px 4px
7px;color:var(--primary-color-text);background:linear-gradient(to
bottom,var(--surface-800) 1%,var(--surface-500) 90%,var(--surface-200)
99%);border-radius:10px}.segmentsbox[_ngcontent-%COMP%]{display:block;float:left;position:relative;height:100%;width:calc(100%
- 91px)}.segmentbox[_ngcontent-%COMP%]{width:25%;padding:5px 8px 4px
7px;color:var(--primary-color-text);background:linear-gradient(to
bottom,var(--surface-800) 1%,var(--surface-500) 90%,var(--surface-200)
99%);height:auto;border-radius:10px}"]}),t})();function yS(t,i=zf){const n=function
AX(t){return t instanceof Date&&!isNaN(+t)}(t)?+t-i.now():Math.abs(t);return
s=>s.lift(new PX(n,i))}class
PX{constructor(i,e){this.delay=i,this.scheduler=e}call(i,e){return e.subscribe(new
yg(i,this.delay,this.scheduler))}}class yg extends yt{constructor(i,e,n){super(i),t
his.delay=e,this.scheduler=n,this.queue=[],this.active=!1,this.errored=!1}static
dispatch(i){const
e=i.source,n=e.queue,s=i.scheduler,r=i.destination;for(;n.length>0&&n[0].time-s.now()<=0;)n.shift().notification.observe(r);if(n.length>0){const
o=Math.max(0,n[0].time-s.now());this.schedule(i,o)}else
this.unsubscribe(),e.active=!1}_schedule(i){this.active=!0,this.destination.add(i.schedule(yg.dispatch,this.delay,{source:this,destination:this.destination,scheduler:i}))}scheduleNotification(i){if(!0===this.errored)return;const
e=this.scheduler,n=new
FX(e.now()+this.delay,i);this.queue.push(n),!1===this.active&&this._schedule(e)}_next(i){this.scheduleNotification(Kn.createNext(i))}_error(i){this.errored=!0,this.queue=[],this.destination.error(i),this.unsubscribe()}_complete(){this.scheduleNotification(Kn.createComplete()),this.unsubscribe()}}class
FX{constructor(i,e){this.time=i,this.notification=e}}const
NX=["cetonform"],VX=["top"];function
BX(t,i){1&t&&(g(0),m(1,"translate")),2&t&&T("
",f(1,1,"settings.capture.ceton.title")," ")}function
HX(t,i){}function qX(t,i){if(1&t){const
e=I();l(0,"div",8)(1,"div",9)(2,"div",10)(3,"label",11),g(4),m(5,"translate"),c(),l(6,"input",12,13),C("ngModelChange",function(s){return
v(e),d().work.ipAddress=s}),c(),l(8,"small",14),g(9),m(10,"translate"),c()(),l(11,"div",10)(12,"label",15),g(13),m(14,"translate"),c(),l(15,"input",16,13),C("ngModelChange",function(s){return
v(e),d().work.tuner=s}),c(),l(17,"small",14),g(18),m(19,"translate"),c()(),l(20,"div",10)(21,"label",17),g(22),m(23,"translate"),c(),l(24,"input",18,19),C("ngModelChange",function(s){return
v(e),d().card.VideoDevice=s}),c(),l(26,"small",14),g(27),m(28,"translate"),c()(),l(29,"div",10)(30,"label",20),g(31),m(32,"translate"),c(),l(33,"p-inputNumber",21),C("ngModelChange",function(s){return
v(e),d().card.SignalTimeout=s}),c(),l(34,"small",14),g(35),m(36,"translate"),c()(),l(37,"div",10)(38,"label",22),g(39),m(40,"translate"),c(),l(41,"p-inputNumber",23),C("ngModelChange
",function(s){return
v(e),d().card.ChannelTimeout=s}),c(),l(42,"small",14),g(43),m(44,"translate"),c()()()()}if(2&t){const
e=d();a(4),S(f(5,23,"settings.capture.ceton.ipaddress_label")),a(2),p("ngModel",e.work.ipAddress),a(3),T("
",f(10,25,"settings.capture.ceton.ipaddress_desc"),"
"),a(4),S(f(14,27,"settings.capture.ceton.tuner_label")),a(2),p("ngModel",e.work.tuner),a(3),T("
",f(19,29,"settings.capture.ceton.tuner_desc"),"
"),a(4),S(f(23,31,"settings.capture.ceton.deviceid_label")),a(2),p("ngModel",e.card.VideoDevice),a(3),T("
",f(28,33,"settings.capture.ceton.deviceid_desc"),"
"),a(4),S(f(32,35,"settings.capture.sigtimeout_label")),a(2),p("ngModel",e.card.SignalTimeout)("showButtons",!0)("min",250)("max",6e4)("step",250),a(2),T("
",f(36,37,"settings.capture.sigtimeout_desc"),"
"),a(4),S(f(40,39,"settings.capture.tunetimeout_label")),a(2),p("ngModel",e.card.ChannelTimeout)("showButtons",!0)("min",1750)("max",65e3)("step",250),a(2),T("
",f(44,41,"settings.capture.tunetimeout_desc")
," ")}}function
GX(t,i){1&t&&(k(0,"p-message",29),m(1,"translate")),2&t&&x("text",f(1,1,"common.savesuccess"))}function
UX(t,i){1&t&&(k(0,"p-message",30),m(1,"translate")),2&t&&x("text",f(1,1,"common.networkfail"))}function
zX(t,i){if(1&t){const
e=I();l(0,"div",24)(1,"div",25),_(2,GX,2,3,"p-message",26),_(3,UX,2,3,"p-message",27),c(),l(4,"p-button",28),C("onClick",function(){v(e);const
s=d(),r=F(1);return
s.saveForm(),r.form.markAsPristine()}),m(5,"translate"),c()()}if(2&t){const
e=d(),n=F(1);a(2),p("ngIf",e.work.successCount>0&&0==e.work.errorCount&&!n.dirty),a(1),p("ngIf",e.work.errorCount>0),a(1),x("label",f(5,4,"common.save")),p("disabled",!n.dirty||!e.card.VideoDevice||e.setupService.schedulingEnabled)}}let
jX=(()=>{class
t{constructor(e,n){this.captureCardService=e,this.setupService=n,this.work={ipAddress:"",tuner:"",successCount:0,errorCount:0},this.saveObserver={next:s=>{this.card.CardId&&s.bool?this.work.successCount++:!this.card.CardId&&s.int?(this.work.successCount++,this
.card.CardId=s.int):(this.work.errorCount++,this.currentForm.form.markAsDirty())},error:s=>{console.error(s),this.work.errorCount++,this.currentForm.form.markAsDirty()}}}ngOnInit(){if(this.card.VideoDevice){const
e=this.card.VideoDevice.split("-");if(2==e.length){this.work.ipAddress=e[0];const
n=e[1].split(".");2==n.length&&(this.work.tuner=n[1])}}}ngAfterViewInit(){this.currentForm.valueChanges.pipe(yS(50)).subscribe(()=>this.card.VideoDevice=this.work.ipAddress+"-RTP."+this.work.tuner),this.setupService.setCurrentForm(this.currentForm),this.topElement.nativeElement.scrollIntoView({behavior:"smooth",block:"start"})}saveForm(){console.log("save
form
clicked"),this.work.successCount=0,this.work.errorCount=0,this.card.CardId?this.cardList.CaptureCardList.CaptureCards.forEach(e=>{(e.CardId==this.card.CardId||e.ParentId==this.card.CardId)&&(this.captureCardService.UpdateCaptureCard(e.CardId,"videodevice",this.card.VideoDevice).subscribe(this.saveObserver),this.captureCardService.UpdateC
aptureCard(e.CardId,"signal_timeout",String(this.card.SignalTimeout)).subscribe(this.saveObserver),this.captureCardService.UpdateCaptureCard(e.CardId,"channel_timeout",String(this.card.ChannelTimeout)).subscribe(this.saveObserver))}):this.captureCardService.AddCaptureCard(this.card).subscribe(this.saveObserver)}}return
t.\u0275fac=function(e){return
new(e||t)(D(Gt),D(Me))},t.\u0275cmp=z({type:t,selectors:[["app-ceton"]],viewQuery:function(e,n){if(1&e&&(W(NX,5),W(VX,5)),2&e){let
s;V(s=B())&&(n.currentForm=s.first),V(s=B())&&(n.topElement=s.first)}},inputs:{card:"card",cardList:"cardList"},decls:9,vars:0,consts:[["name","cetonform",1,"ml-3","mr-3"],["cetonform","ngForm"],["top",""],[1,"m-5"],["pTemplate","title"],["pTemplate","subtitle"],["pTemplate","content"],["pTemplate","footer"],[1,"grid"],[1,"mb-4","w-full"],[1,"form-group","field"],["for","ip",1,"label","block"],["pInputText","","id","ip","name","ip",1,"mb-2","form-control","w-full",3,"ngModel","ngModelChange"],["ipAddress","ng
Model"],[1,"block"],["for","tuner",1,"label","block"],["pInputText","","id","tuner","name","tuner",1,"mb-2","form-control","w-full",3,"ngModel","ngModelChange"],["for","VideoDevice",1,"label","block"],["pInputText","","id","VideoDevice","name","VideoDevice","disabled","true",1,"mb-2","form-control","w-full",3,"ngModel","ngModelChange"],["VideoDevice","ngModel"],["for","SignalTimeout",1,"label","block"],["name","SignalTimeout","id","SignalTimeout",3,"ngModel","showButtons","min","max","step","ngModelChange"],["for","ChannelTimeout",1,"label","block"],["name","ChannelTimeout","id","ChannelTimeout",3,"ngModel","showButtons","min","max","step","ngModelChange"],[1,"grid","nogutter"],[1,"col-12"],["severity","success",3,"text",4,"ngIf"],["severity","error",3,"text",4,"ngIf"],["icon","pi
pi-save","iconPos","left",1,"col","pr-1",3,"label","disabled","onClick"],["severity","success",3,"text"],["severity","error",3,"text"]],template:function(e,n){1&e&&(l(0,"form",0,1),k(2,"span",null,2),l(4,"
p-card",3),_(5,BX,2,3,"ng-template",4),_(6,HX,0,0,"ng-template",5),_(7,qX,45,43,"ng-template",6),_(8,zX,6,6,"ng-template",7),c()())},directives:[ze,Ue,He,Ne,ne,Ye,Te,_e,pt,Q,qe,ve],pipes:[ce],styles:[""]}),t})();const
$X=["dvbform"],WX=["top"];function
KX(t,i){1&t&&(g(0),m(1,"translate")),2&t&&T("
",f(1,1,"settings.capture.dvb.title")," ")}function
QX(t,i){}const JX=function(){return{minWidth:"80%"}};function
YX(t,i){if(1&t){const
e=I();l(0,"p-dropdown",43,44),C("ngModelChange",function(s){return
v(e),d(2).currentDevice=s})("onChange",function(){return
v(e),d(2).updateDevice()}),c()}if(2&t){const
e=d(2);q(A(6,JX)),p("options",e.captureDeviceList.CaptureDeviceList.CaptureDevices)("ngModel",e.currentDevice)("editable",!1)("maxlength",0)}}function
ZX(t,i){if(1&t&&(l(0,"div")(1,"small",45),g(2),c()()),2&t){const
e=d(2);a(2),T(" ",e.work.warningMessage," ")}}function
XX(t,i){if(1&t){const
e=I();l(0,"input",46,47),C("ngModelChange",function(s){return
v(e),d(2).currentDevice.FrontendName=s
}),c()}2&t&&p("ngModel",d(2).currentDevice.FrontendName)}function
eee(t,i){if(1&t){const
e=I();l(0,"p-dropdown",48,49),C("ngModelChange",function(s){return
v(e),d(2).card.InputName=s}),c()}if(2&t){const
e=d(2);p("options",e.currentDevice.InputNames)("ngModel",e.card.InputName)}}function
tee(t,i){if(1&t){const
e=I();l(0,"p-button",50),C("onClick",function(){return
v(e),d(2).work.displayNewDiseqc=!0}),m(1,"translate"),c()}2&t&&x("label",f(1,1,"settings.capture.dvb.newsatellite_button"))}function
nee(t,i){if(1&t){const
e=I();l(0,"p-button",51),C("onClick",function(){return
v(e),d(2).work.displayNewDiseqc=!1}),m(1,"translate"),c(),l(2,"p-button",52),C("onClick",function(){return
v(e),d(2).newDiseqc()}),m(3,"translate"),c()}if(2&t){const
e=d(2);x("label",f(1,3,"common.cancel")),a(2),x("label",f(3,5,"common.ok")),p("disabled",e.selectedDiseqcType.inactive)}}function
iee(t,i){if(1&t){const
e=I();l(0,"p-button",53),C("onClick",function(){v(e);const
s=d(2);return s.setupRootTrees(),s.work.di
splayConnectDevice=!0}),m(1,"translate"),m(2,"translate"),c()}2&t&&(x("label",f(1,2,"settings.capture.dvb.satellite_connect")),x("pTooltip",f(2,4,"settings.capture.dvb.satellite_connect_tooltip")))}function
see(t,i){if(1&t){const
e=I();l(0,"p-button",51),C("onClick",function(){return
v(e),d(2).work.displayConnectDevice=!1}),m(1,"translate"),c(),l(2,"p-button",52),C("onClick",function(){return
v(e),d(2).selectDiseqc()}),m(3,"translate"),c()}if(2&t){const
e=d(2);x("label",f(1,3,"common.cancel")),a(2),x("label",f(3,5,"common.ok")),p("disabled",!e.work.selectedDiseqcTree)}}function
ree(t,i){if(1&t){const
e=I();l(0,"p-button",54),C("onClick",function(){return
v(e),d(2).canDeleteDiseqc()}),c()}}function oee(t,i){if(1&t){const
e=I();l(0,"p-button",55),C("click",function(){return
v(e),d(2).work.displayDeleteDiseqc=!1}),m(1,"translate"),c(),l(2,"p-button",56),C("click",function(){return
v(e),d(2).deleteDiseqc()}),m(3,"translate"),c()}2&t&&(x("label",f(1,2,"common.no")),a(2),x("label",f(3,4,"
common.yes")))}function aee(t,i){if(1&t){const
e=I();l(0,"p-button",57),C("onClick",function(){return
v(e),d(2).work.displayDisconnect=!0}),m(1,"translate"),c()}2&t&&x("label",f(1,1,"settings.capture.dvb.satellite_disconnect"))}function
lee(t,i){if(1&t){const
e=I();l(0,"p-button",55),C("click",function(){return
v(e),d(2).work.displayDisconnect=!1}),m(1,"translate"),c(),l(2,"p-button",56),C("click",function(){return
v(e),d(2).unSelectDiseqc()}),m(3,"translate"),c()}2&t&&(x("label",f(1,2,"common.no")),a(2),x("label",f(3,4,"common.yes")))}function
cee(t,i){1&t&&(k(0,"p-message",58),m(1,"translate")),2&t&&x("text",f(1,1,"settings.capture.dvb.satellite_disconnect_error"))}function
uee(t,i){if(1&t){const
e=I();l(0,"app-lnb",59),C("baseEvent",function(s){return
v(e),d(2).setDiseqcObject(s)}),c()}if(2&t){const
e=d(2);p("diseqcTree",e.diseqcTree)("diseqcTreeList",e.diseqcTreeList)("dvbComponent",e)}}function
dee(t,i){if(1&t){const
e=I();l(0,"app-rotor",59),C("baseEvent",function(s){return v(
e),d(2).setDiseqcObject(s)}),c()}if(2&t){const
e=d(2);p("diseqcTree",e.diseqcTree)("diseqcTreeList",e.diseqcTreeList)("dvbComponent",e)}}function
pee(t,i){if(1&t){const
e=I();l(0,"app-switch",59),C("baseEvent",function(s){return
v(e),d(2).setDiseqcObject(s)}),c()}if(2&t){const
e=d(2);p("diseqcTree",e.diseqcTree)("diseqcTreeList",e.diseqcTreeList)("dvbComponent",e)}}function
hee(t,i){if(1&t){const
e=I();l(0,"app-unicable",59),C("baseEvent",function(s){return
v(e),d(2).setDiseqcObject(s)}),c()}if(2&t){const
e=d(2);p("diseqcTree",e.diseqcTree)("diseqcTreeList",e.diseqcTreeList)("dvbComponent",e)}}const
Md=function(){return{width:"50vw"}};function mee(t,i){if(1&t){const
e=I();l(0,"div",8)(1,"div",9)(2,"div",10)(3,"label",11),g(4),m(5,"translate"),c(),_(6,YX,2,7,"p-dropdown",12),_(7,ZX,3,1,"div",13),l(8,"small",14),g(9),m(10,"translate"),c()(),l(11,"div",10)(12,"label",15),g(13),m(14,"translate"),c(),_(15,XX,2,1,"input",16),l(16,"small",14),g(17),m(18,"translate"),c()(),l(19,"div",10)(20
,"label",17),g(21),m(22,"translate"),c(),_(23,eee,2,2,"p-dropdown",18),l(24,"small",14),g(25),m(26,"translate"),c()(),l(27,"div",10)(28,"label",19),g(29),m(30,"translate"),c(),l(31,"p-inputNumber",20),C("ngModelChange",function(s){return
v(e),d().card.SignalTimeout=s}),c(),l(32,"small",14),g(33),m(34,"translate"),c()(),l(35,"div",10)(36,"label",21),g(37),m(38,"translate"),c(),l(39,"p-inputNumber",22),C("ngModelChange",function(s){return
v(e),d().card.ChannelTimeout=s}),c(),l(40,"small",14),g(41),m(42,"translate"),c()(),l(43,"div",10)(44,"p-checkbox",23,24),C("ngModelChange",function(s){return
v(e),d().card.DVBWaitForSeqStart=s}),m(46,"translate"),c(),l(47,"small",14),g(48),m(49,"translate"),c()(),l(50,"div",10)(51,"p-checkbox",25,26),C("ngModelChange",function(s){return
v(e),d().card.DVBOnDemand=s}),m(53,"translate"),c(),l(54,"small",14),g(55),m(56,"translate"),c()(),l(57,"div",10)(58,"p-checkbox",27,28),C("ngModelChange",function(s){return
v(e),d().card.DVBEITScan=s}),m(60,"transla
te"),c(),l(61,"small",14),g(62),m(63,"translate"),c()(),l(64,"div",10)(65,"label",29),g(66),m(67,"translate"),c(),l(68,"p-inputNumber",30),C("ngModelChange",function(s){return
v(e),d().card.DVBTuningDelay=s}),c(),l(69,"small",14),g(70),m(71,"translate"),c()()(),l(72,"p-fieldset",31),m(73,"translate"),_(74,tee,2,3,"p-button",32),l(75,"p-dialog",33),C("visibleChange",function(s){return
v(e),d().work.displayNewDiseqc=s}),m(76,"translate"),l(77,"label",34),g(78),m(79,"translate"),c(),l(80,"p-listbox",35),C("ngModelChange",function(s){return
v(e),d().selectedDiseqcType=s})("onDblClick",function(){return
v(e),d().newDiseqc()}),c(),_(81,nee,4,7,"ng-template",7),c(),g(82," \xa0
"),_(83,iee,3,6,"p-button",36),l(84,"p-dialog",33),C("visibleChange",function(s){return
v(e),d().work.displayConnectDevice=s}),m(85,"translate"),l(86,"label",37),g(87),m(88,"translate"),c(),l(89,"p-listbox",38),C("ngModelChange",function(s){return
v(e),d().work.selectedDiseqcTree=s})("onDblClick",function(){return v(
e),d().selectDiseqc()}),c(),_(90,see,4,7,"ng-template",7),c(),_(91,ree,1,0,"p-button",39),l(92,"p-dialog",33),C("visibleChange",function(s){return
v(e),d().work.displayDeleteDiseqc=s}),m(93,"translate"),l(94,"h2"),g(95),m(96,"translate"),c(),l(97,"p"),g(98),m(99,"translate"),c(),_(100,oee,4,6,"ng-template",7),c(),g(101,"
\xa0
"),_(102,aee,2,3,"p-button",40),l(103,"p-dialog",33),C("visibleChange",function(s){return
v(e),d().work.displayDisconnect=s}),m(104,"translate"),l(105,"h2"),g(106),m(107,"translate"),c(),l(108,"p"),g(109),m(110,"translate"),c(),_(111,lee,4,6,"ng-template",7),c(),_(112,cee,2,3,"p-message",41),_(113,uee,1,3,"app-lnb",42),_(114,dee,1,3,"app-rotor",42),_(115,pee,1,3,"app-switch",42),_(116,hee,1,3,"app-unicable",42),c()()}if(2&t){const
e=d();a(4),S(f(5,93,"settings.capture.dvb.device_label")),a(2),p("ngIf",e.work.isReady),a(1),p("ngIf",e.work.warningMessage),a(2),T("
",f(10,95,"settings.capture.device_desc"),"
"),a(4),S(f(14,97,"settings.capture.dvb.frontend_label")
),a(2),p("ngIf",e.work.isReady),a(2),T("
",f(18,99,"settings.capture.frontend_desc"),"
"),a(4),S(f(22,101,"settings.capture.dvb.inputname_label")),a(2),p("ngIf",e.work.isReady),a(2),T("
",f(26,103,"settings.capture.inputname_desc"),"
"),a(4),S(f(30,105,"settings.capture.sigtimeout_label")),a(2),p("ngModel",e.card.SignalTimeout)("showButtons",!0)("min",250)("max",6e4)("step",250),a(2),T("
",f(34,107,"settings.capture.sigtimeout_desc"),"
"),a(4),S(f(38,109,"settings.capture.tunetimeout_label")),a(2),p("ngModel",e.card.ChannelTimeout)("showButtons",!0)("min",1750)("max",65e3)("step",250),a(2),T("
",f(42,111,"settings.capture.tunetimeout_desc"),"
"),a(3),x("label",f(46,113,"settings.capture.dvb.wait_label")),p("ngModel",e.card.DVBWaitForSeqStart)("binary",!0),a(4),T("
",f(49,115,"settings.capture.dvb.wait_desc"),"
"),a(3),x("label",f(53,117,"settings.capture.dvb.ondemand_label")),p("ngModel",e.card.DVBOnDemand)("binary",!0),a(4),T("
",f(56,119,"settings.capture.dvb.ondemand_desc")," "),
a(3),x("label",f(60,121,"settings.capture.dvb.eitscan_label")),p("ngModel",e.card.DVBEITScan)("binary",!0),a(4),T("
",f(63,123,"settings.capture.dvb.eitscan_desc"),"
"),a(4),S(f(67,125,"settings.capture.dvb.tuningdelay_label")),a(2),p("ngModel",e.card.DVBTuningDelay)("showButtons",!0)("min",0)("max",2e3)("step",25),a(2),T("
",f(71,127,"settings.capture.dvb.tuningdelay_desc"),"
"),a(2),x("legend",f(73,129,"settings.capture.dvb.satellite_heading")),p("toggleable",!0)("collapsed",!0),a(2),p("ngIf",!e.diseqcTree),a(1),q(A(151,Md)),x("header",f(76,131,"settings.capture.dvb.newsatellite_heading")),p("visible",e.work.displayNewDiseqc)("modal",!0)("draggable",!1)("resizable",!1),a(3),S(f(79,133,"settings.capture.dvb.newsatellite_devtype")),a(2),p("options",e.captureCardService.diseqcTypes)("ngModel",e.selectedDiseqcType),a(3),p("ngIf",!e.diseqcTree),a(1),q(A(152,Md)),x("header",f(85,135,"settings.capture.dvb.satellite_connect")),p("visible",e.work.displayConnectDevice)("modal",!0)("draggabl
e",!1)("resizable",!1),a(3),S(f(88,137,"settings.capture.dvb.satellite_select")),a(2),p("options",e.diseqcRootTrees)("ngModel",e.work.selectedDiseqcTree),a(2),p("ngIf",e.diseqcTree),a(1),q(A(153,Md)),x("header",f(93,139,"settings.capture.dvb.satellite_delete_header")),p("visible",e.work.displayDeleteDiseqc)("modal",!0)("draggable",!1)("resizable",!1),a(3),S(f(96,141,"settings.common.ru_sure")),a(3),S(f(99,143,"settings.capture.dvb.satellite_delete_desc")),a(4),p("ngIf",e.diseqcTree),a(1),q(A(154,Md)),x("header",f(104,145,"settings.capture.dvb.satellite_disconnect")),p("visible",e.work.displayDisconnect)("modal",!0)("draggable",!1)("resizable",!1),a(3),S(f(107,147,"settings.common.ru_sure")),a(3),S(f(110,149,"settings.capture.dvb.satellite_disconnect_warning")),a(3),p("ngIf",e.work.diseqcError),a(1),p("ngIf",e.diseqcTree&&"lnb"==e.diseqcTree.Type),a(1),p("ngIf",e.diseqcTree&&"rotor"==e.diseqcTree.Type),a(1),p("ngIf",e.diseqcTree&&"switch"==e.diseqcTree.Type),a(1),p("ngIf",e.diseqcTre
e&&"scr"==e.diseqcTree.Type)}}function
fee(t,i){1&t&&(k(0,"p-message",64),m(1,"translate")),2&t&&x("text",f(1,1,"common.savesuccess"))}function
gee(t,i){1&t&&(k(0,"p-message",58),m(1,"translate")),2&t&&x("text",f(1,1,"common.networkfail"))}function
_ee(t,i){if(1&t){const
e=I();l(0,"div",60)(1,"div",61),_(2,fee,2,3,"p-message",62),_(3,gee,2,3,"p-message",41),c(),l(4,"p-button",63),C("onClick",function(){v(e);const
s=d(),r=F(1);return
s.saveForm(),r.form.markAsPristine()}),m(5,"translate"),c()()}if(2&t){const
e=d(),n=F(1);a(2),p("ngIf",e.work.successCount>0&&0==e.work.errorCount&&!n.dirty),a(1),p("ngIf",e.work.errorCount>0),a(1),x("label",f(5,4,"common.save")),p("disabled",!n.dirty||!e.card.VideoDevice||e.setupService.schedulingEnabled)}}let
wS=(()=>{class
t{constructor(e,n,s){this.captureCardService=e,this.setupService=n,this.translate=s,this.work={InputName:"",successCount:0,errorCount:0,inputNames:[""],isReady:!1,warningMessage:"",displayNewDiseqc:!1,displayDeleteDiseqc:!1,displayC
onnectDevice:!1,displayDisconnect:!1,selectedDiseqcTree:0,diseqcError:!1},this.captureDeviceList={CaptureDeviceList:{CaptureDevices:[]}},this.diseqcRootTrees=[],this.diseqcTree=void
0,this.messages={devNotExist:"settings.capture.dvb.devNotExist",unknownName:"settings.capture.dvb.unknownName",devInUse:"settings.capture.dvb.devInUse",noDevSelected:"settings.capture.dvb.noDevSelected"},this.currentDevice={FrontendName:"Unknown",InputNames:[""]},this.selectedDiseqcType={description:"",type:"",inactive:!0},this.saveObserver={next:r=>{r.bool?(console.log("saveObserver
success",r),this.work.successCount++):!this.card.CardId&&r.int?(console.log("saveObserver
success",r),this.work.successCount++,this.card.CardId||(this.card.CardId=r.int,this.cardList.CaptureCardList.CaptureCards.push(this.card),this.captureCardService.UpdateCaptureCard(this.card.CardId,"inputname",this.card.InputName).subscribe(this.saveObserver))):(console.log("saveObserver
error",r),this.work.errorCount++,this.currentForm.
form.markAsDirty())},error:r=>{console.log("saveObserver
error",r),this.work.errorCount++,this.currentForm.form.markAsDirty()}},s.get(this.messages.devNotExist).subscribe(r=>this.messages.devNotExist=r),s.get(this.messages.unknownName).subscribe(r=>this.messages.unknownName=r),s.get(this.messages.devInUse).subscribe(r=>this.messages.devInUse=r),s.get(this.messages.noDevSelected).subscribe(r=>this.messages.noDevSelected=r)}ngOnInit(){null==this.card.DVBWaitForSeqStart&&(this.card.DVBWaitForSeqStart=!0),null==this.card.DVBOnDemand&&(this.card.DVBOnDemand=!0),null==this.card.DVBEITScan&&(this.card.DVBEITScan=!0),null==this.card.CardId&&(this.card.CardId=0),null==this.card.VideoDevice&&(this.card.VideoDevice=""),null==this.card.DiSEqCId&&(this.card.DiSEqCId=0),this.captureCardService.GetCaptureDeviceList("DVB").subscribe({next:e=>{this.captureDeviceList=e,this.setupDevice()},error:e=>{console.log("GetCaptureDeviceList",e),this.work.errorCount++}}),this.setupDiseqc()}ngAfterViewInit(){th
is.setupService.setCurrentForm(this.currentForm),this.topElement.nativeElement.scrollIntoView({behavior:"smooth",block:"start"})}setupDiseqc(){this.diseqcTree=this.diseqcTreeList.DiseqcTreeList.DiseqcTrees.find(e=>e.DiSEqCId==this.card.DiSEqCId),this.work.diseqcError=!1}newDiseqc(){this.work.displayNewDiseqc=!1,this.work.diseqcError=!1,this.diseqcTree={Type:this.selectedDiseqcType.type,Description:this.selectedDiseqcType.description}}setupRootTrees(){this.diseqcRootTrees=this.diseqcTreeList.DiseqcTreeList.DiseqcTrees.filter(e=>!e.ParentId)}selectDiseqc(){this.work.displayConnectDevice=!1,this.work.diseqcError=!1,this.card.DiSEqCId=this.work.selectedDiseqcTree,this.currentForm.form.markAsDirty(),this.setupDiseqc()}unSelectDiseqc(){this.work.displayDisconnect=!1,this.work.diseqcError=!1,this.card.DiSEqCId=0,this.currentForm.form.markAsDirty(),this.diseqcTree=void
0,this.captureCardService.DeleteDiseqcConfig(this.card.CardId).subscribe()}canDeleteDiseqc(){this.work.diseqcError=!1,this.
cardList.CaptureCardList.CaptureCards.filter(n=>n.DiSEqCId==this.card.DiSEqCId).length>1?this.work.diseqcError=!0:this.work.displayDeleteDiseqc=!0}deleteDiseqc(){this.work.displayDeleteDiseqc=!1,this.work.successCount=0,this.work.errorCount=0,this.diseqcTree&&this.diseqcTree.DiSEqCId&&(this.captureCardService.DeleteDiseqcTree(this.diseqcTree.DiSEqCId).subscribe({next:e=>{e.bool?this.work.successCount++:(this.work.errorCount++,console.log("DeleteDiseqcTree",e)),this.parent.loadDiseqc()},error:e=>{console.log("DeleteDiseqcTree",e),this.work.errorCount++}}),this.card.DiSEqCId=0,this.card.CardId&&(this.cardList.CaptureCardList.CaptureCards.forEach(e=>{(e.CardId==this.card.CardId||e.ParentId==this.card.CardId)&&this.captureCardService.UpdateCaptureCard(e.CardId,"DiSEqCId",String(this.card.DiSEqCId)).subscribe(this.saveObserver)}),this.captureCardService.DeleteDiseqcConfig(this.card.CardId).subscribe())),this.diseqcTree=void
0}setDiseqcObject(e){this.diseqcComponent=e}setupDevice(){if(thi
s.card.VideoDevice||this.captureDeviceList.CaptureDeviceList.CaptureDevices.unshift({VideoDevice:"",FrontendName:this.messages.noDevSelected,InputNames:[""]}),this.card.VideoDevice){let
e=this.captureDeviceList.CaptureDeviceList.CaptureDevices.find(n=>n.VideoDevice==this.card.VideoDevice);e?this.currentDevice=e:(this.currentDevice={VideoDevice:this.card.VideoDevice,FrontendName:this.messages.devNotExist,InputNames:[""]},this.captureDeviceList.CaptureDeviceList.CaptureDevices.push(this.currentDevice))}this.currentDevice&&this.card.InputName&&(this.currentDevice.InputNames.includes(this.card.InputName)||this.currentDevice.InputNames.push(this.card.InputName)),this.work.isReady=!0}updateDevice(){this.card.VideoDevice=this.currentDevice.VideoDevice,this.card.InputName=this.currentDevice.DefaultInputName,this.card.SignalTimeout=this.currentDevice.SignalTimeout,this.card.ChannelTimeout=this.currentDevice.ChannelTimeout,this.checkInUse()}checkInUse(){this.work.warningMessage=this.cardList.
CaptureCardList.CaptureCards.find(n=>n.VideoDevice==this.currentDevice.VideoDevice&&n.CardId!=this.card.CardId)?this.messages.devInUse:""}saveForm(){this.work.successCount=0,this.work.errorCount=0,this.work.diseqcError=!1,this.diseqcTree&&this.diseqcComponent?this.diseqcComponent.saveForm(0,{next:e=>{var
n;this.card.DiSEqCId&&e.bool&&this.card.DiSEqCId==(null===(n=this.diseqcTree)||void
0===n?void
0:n.DiSEqCId)?(this.work.successCount++,this.saveCard()):e.int&&this.diseqcTree?(this.card.DiSEqCId=e.int,this.diseqcTree.DiSEqCId=e.int,this.diseqcTreeList.DiseqcTreeList.DiseqcTrees.push(this.diseqcTree),this.saveCard()):(console.log("saveForm",e),this.work.errorCount++,this.currentForm.form.markAsDirty())},error:e=>{console.log("saveForm",e),this.work.errorCount++,this.currentForm.form.markAsDirty()},complete:()=>{}}):this.saveCard()}saveCard(){this.card.CardId?this.cardList.CaptureCardList.CaptureCards.forEach(e=>{(e.CardId==this.card.CardId||e.ParentId==this.card.CardId)&&(this.captur
eCardService.UpdateCaptureCard(e.CardId,"videodevice",this.card.VideoDevice).subscribe(this.saveObserver),this.captureCardService.UpdateCaptureCard(e.CardId,"dvb_wait_for_seqstart",this.card.DVBWaitForSeqStart?"1":"0").subscribe(this.saveObserver),this.captureCardService.UpdateCaptureCard(e.CardId,"dvb_on_demand",this.card.DVBOnDemand?"1":"0").subscribe(this.saveObserver),this.captureCardService.UpdateCaptureCard(e.CardId,"signal_timeout",String(this.card.SignalTimeout)).subscribe(this.saveObserver),this.captureCardService.UpdateCaptureCard(e.CardId,"channel_timeout",String(this.card.ChannelTimeout)).subscribe(this.saveObserver),this.captureCardService.UpdateCaptureCard(e.CardId,"dvb_tuning_delay",String(this.card.DVBTuningDelay)).subscribe(this.saveObserver),this.captureCardService.UpdateCaptureCard(e.CardId,"dvb_eitscan",String(this.card.DVBEITScan?"1":"0")).subscribe(this.saveObserver),this.captureCardService.UpdateCaptureCard(e.CardId,"inputname",this.card.InputName).subscribe(t
his.saveObserver),this.captureCardService.UpdateCaptureCard(e.CardId,"DiSEqCId",String(this.card.DiSEqCId)).subscribe(this.saveObserver))}):this.captureCardService.AddCaptureCard(this.card).subscribe(this.saveObserver)}}return
t.\u0275fac=function(e){return
new(e||t)(D(Gt),D(Me),D(Oe))},t.\u0275cmp=z({type:t,selectors:[["app-dvb"]],viewQuery:function(e,n){if(1&e&&(W($X,5),W(WX,5)),2&e){let
s;V(s=B())&&(n.currentForm=s.first),V(s=B())&&(n.topElement=s.first)}},inputs:{card:"card",cardList:"cardList",diseqcTreeList:"diseqcTreeList",parent:"parent"},decls:9,vars:0,consts:[["name","dvbform",1,"ml-3","mr-3"],["dvbform","ngForm"],["top",""],[1,"m-5"],["pTemplate","title"],["pTemplate","subtitle"],["pTemplate","content"],["pTemplate","footer"],[1,"grid"],[1,"mb-4","w-full"],[1,"form-group","field"],["for","VideoDevice",1,"label","block"],["optionLabel","VideoDevice","name","VideoDevice",3,"options","ngModel","editable","maxlength","style","ngModelChange","onChange",4,"ngIf"],[4,"ngIf"],[1,
"block"],["for","FrontendName",1,"label","block"],["pInputText","","id","FrontendName","name","FrontendName","disabled","true","class","mb-2
form-control
w-full",3,"ngModel","ngModelChange",4,"ngIf"],["for","InputName",1,"label","block"],["name","InputName",3,"options","ngModel","ngModelChange",4,"ngIf"],["for","SignalTimeout",1,"label","block"],["name","SignalTimeout","id","SignalTimeout",3,"ngModel","showButtons","min","max","step","ngModelChange"],["for","ChannelTimeout",1,"label","block"],["name","ChannelTimeout","id","ChannelTimeout",3,"ngModel","showButtons","min","max","step","ngModelChange"],["inputId","DVBWaitForSeqStart","name","DVBWaitForSeqStart",1,"label","mb-2","w-full",3,"ngModel","binary","label","ngModelChange"],["DVBWaitForSeqStart","ngModel"],["inputId","DVBOnDemand","name","DVBOnDemand",1,"label","mb-2","w-full",3,"ngModel","binary","label","ngModelChange"],["DVBOnDemand","ngModel"],["inputId","DVBEITScan","name","DVBEITScan",1,"label","mb-2","w-full",3,"ngModel"
,"binary","label","ngModelChange"],["DVBEITScan","ngModel"],["for","DVBTuningDelay",1,"label","block"],["name","DVBTuningDelay","id","DVBTuningDelay",3,"ngModel","showButtons","min","max","step","ngModelChange"],[1,"mb-4","w-full",3,"legend","toggleable","collapsed"],["icon","pi
pi-plus-circle","styleClass","p-button-plain",3,"label","onClick",4,"ngIf"],[3,"header","visible","modal","draggable","resizable","visibleChange"],["for","disenqcTypes",1,"label","block"],["optionLabel","description","name","disenqcTypes","optionDisabled","inactive",3,"options","ngModel","ngModelChange","onDblClick"],["icon","pi
pi-plus-circle","styleClass","p-button-plain",3,"label","pTooltip","onClick",4,"ngIf"],["for","diseqcRootTrees",1,"label","block"],["optionLabel","Description","name","diseqcRootTrees","optionValue","DiSEqCId",3,"options","ngModel","ngModelChange","onDblClick"],["styleClass","p-button-warning","label","Delete
Satellite Devices","icon","pi
pi-trash",3,"onClick",4,"ngIf"],["icon","pi p
i-minus-circle","styleClass","p-button-warning",3,"label","onClick",4,"ngIf"],["severity","error",3,"text",4,"ngIf"],[3,"diseqcTree","diseqcTreeList","dvbComponent","baseEvent",4,"ngIf"],["optionLabel","VideoDevice","name","VideoDevice",3,"options","ngModel","editable","maxlength","ngModelChange","onChange"],["VideoDevice","ngModel"],[1,"p-error","block"],["pInputText","","id","FrontendName","name","FrontendName","disabled","true",1,"mb-2","form-control","w-full",3,"ngModel","ngModelChange"],["FrontendName","ngModel"],["name","InputName",3,"options","ngModel","ngModelChange"],["InputName","ngModel"],["icon","pi
pi-plus-circle","styleClass","p-button-plain",3,"label","onClick"],["icon","pi
pi-times-circle","styleClass","p-button-plain",3,"label","onClick"],["icon","pi
pi-check-circle","styleClass","p-button-plain",3,"label","disabled","onClick"],["icon","pi
pi-plus-circle","styleClass","p-button-plain",3,"label","pTooltip","onClick"],["styleClass","p-button-warning","label","Delete
S
atellite Devices","icon","pi
pi-trash",3,"onClick"],["icon","pi
pi-times-circle","styleClass","p-button-plain",3,"label","click"],["icon","pi
pi-check-circle","styleClass","p-button-plain",3,"label","click"],["icon","pi
pi-minus-circle","styleClass","p-button-warning",3,"label","onClick"],["severity","error",3,"text"],[3,"diseqcTree","diseqcTreeList","dvbComponent","baseEvent"],[1,"grid","nogutter"],[1,"col-12"],["severity","success",3,"text",4,"ngIf"],["icon","pi
pi-save","iconPos","left",1,"col","pr-1",3,"label","disabled","onClick"],["severity","success",3,"text"]],template:function(e,n){1&e&&(l(0,"form",0,1),k(2,"span",null,2),l(4,"p-card",3),_(5,KX,2,3,"ng-template",4),_(6,QX,0,0,"ng-template",5),_(7,mee,117,155,"ng-template",6),_(8,_ee,6,6,"ng-template",7),c()())},styles:[""]}),t})();const
bee=["lnbform"];function
vee(t,i){1&t&&(g(0),m(1,"translate")),2&t&&T("
",f(1,1,"settings.capture.diseqc.lnb.title")," ")}function
Cee(t,i){}const TS=function(){return{minWidth:"80%"}};funct
ion yee(t,i){if(1&t){const
e=I();l(0,"div",6)(1,"div",7)(2,"div",8)(3,"label",9),g(4),m(5,"translate"),c(),l(6,"input",10,11),C("ngModelChange",function(s){return
v(e),d().diseqcTree.Description=s}),c(),l(8,"small",12),g(9),m(10,"translate"),c()(),l(11,"div",8)(12,"label",13),g(13),m(14,"translate"),c(),l(15,"p-dropdown",14,15),C("ngModelChange",function(s){return
v(e),d().currentPreset=s})("onChange",function(){return
v(e),d().updatePreset()}),c(),l(17,"small",12),g(18),m(19,"translate"),c()(),l(20,"div",8)(21,"label",16),g(22),m(23,"translate"),c(),l(24,"p-dropdown",17,18),C("ngModelChange",function(s){return
v(e),d().currentSubType=s})("onChange",function(){return
v(e),d().updateSubType()}),c(),l(26,"small",12),g(27),m(28,"translate"),c()(),l(29,"div",8)(30,"label",19),g(31),m(32,"translate"),c(),l(33,"p-inputNumber",20),C("ngModelChange",function(s){return
v(e),d().work.LnbLofSwitch=s}),c(),l(34,"small",12),g(35),m(36,"translate"),c()(),l(37,"div",8)(38,"label",21),g(39),m(40,"t
ranslate"),c(),l(41,"p-inputNumber",22),C("ngModelChange",function(s){return
v(e),d().work.LnbLofLo=s}),c(),l(42,"small",12),g(43),m(44,"translate"),c()(),l(45,"div",8)(46,"label",23),g(47),m(48,"translate"),c(),l(49,"p-inputNumber",24),C("ngModelChange",function(s){return
v(e),d().work.LnbLofHi=s}),c(),l(50,"small",12),g(51),m(52,"translate"),c()(),l(53,"div",8)(54,"p-checkbox",25,26),C("ngModelChange",function(s){return
v(e),d().diseqcTree.LnbPolInv=s}),m(56,"translate"),c(),l(57,"small",12),g(58),m(59,"translate"),c()()()()}if(2&t){const
e=d();a(4),S(f(5,41,"settings.capture.diseqc.description_label")),a(2),p("ngModel",e.diseqcTree.Description),a(3),T("
",f(10,43,"settings.capture.diseqc.description_desc"),"
"),a(4),S(f(14,45,"settings.capture.diseqc.lnb.preset_label")),a(2),q(A(69,TS)),p("options",e.lnbPresetList)("ngModel",e.currentPreset)("editable",!1)("maxlength",0)("scrollHeight","400px"),a(3),T("
",f(19,47,"settings.capture.diseqc.lnb.preset_desc"),"
"),a(4),S(f(23,49,"set
tings.capture.diseqc.lnb.type_label")),a(2),q(A(70,TS)),p("options",e.lnbSubTypes)("ngModel",e.currentSubType)("editable",!1)("maxlength",0)("disabled","custom"!=e.currentPreset.SubType),a(3),T("
",f(28,51,"settings.capture.diseqc.lnb.type_desc"),"
"),a(4),S(f(32,53,"settings.capture.diseqc.lnb.lofswitch_label")),a(2),p("ngModel",e.work.LnbLofSwitch)("useGrouping",!1)("disabled","custom"!=e.currentPreset.SubType||"voltage_tone"!=e.diseqcTree.SubType),a(2),T("
",f(36,55,"settings.capture.diseqc.lnb.lofswitch_desc"),"
"),a(4),S(f(40,57,"settings.capture.diseqc.lnb.loflow_label")),a(2),p("ngModel",e.work.LnbLofLo)("useGrouping",!1)("disabled","custom"!=e.currentPreset.SubType),a(2),T("
",f(44,59,"settings.capture.diseqc.lnb.loflow_desc"),"
"),a(4),S(f(48,61,"settings.capture.diseqc.lnb.lofhigh_label")),a(2),p("ngModel",e.work.LnbLofHi)("useGrouping",!1)("disabled","custom"!=e.currentPreset.SubType||!("voltage_tone"==e.diseqcTree.SubType||"bandstacked"==e.diseqcTree.SubType)),a(2),T("
"
,f(52,63,"settings.capture.diseqc.lnb.lofhigh_desc"),"
"),a(3),x("label",f(56,65,"settings.capture.diseqc.lnb.reversed_label")),p("ngModel",e.diseqcTree.LnbPolInv)("binary",!0)("disabled","custom"!=e.currentPreset.SubType),a(4),T("
",f(59,67,"settings.capture.diseqc.lnb.reversed_desc")," ")}}let
kd=(()=>{class
t{constructor(e,n,s){this.captureCardService=e,this.setupService=n,this.translate=s,this.baseEvent=new
H,this.work={LnbLofSwitch:0,LnbLofLo:0,LnbLofHi:0},this.lnbSubTypes=[{Name:"settings.capture.diseqc.subtype_legacy",SubType:"fixed"},{Name:"settings.capture.diseqc.subtype_standard",SubType:"voltage"},{Name:"settings.capture.diseqc.subtype_universal",SubType:"voltage_tone"},{Name:"settings.capture.diseqc.subtype_backstacked",SubType:"bandstacked"}],this.lnbPresetList=[{Name:"settings.capture.diseqc.lnbpreset_universal",SubType:"voltage_tone",LnbLofSwitch:11700,LnbLofLo:9750,LnbLofHi:10600,LnbPolInv:!1},{Name:"settings.capture.diseqc.lnbpreset_single",SubType:"voltage",LnbLofS
witch:0,LnbLofLo:9750,LnbLofHi:0,LnbPolInv:!1},{Name:"settings.capture.diseqc.lnbpreset_circular",SubType:"voltage",LnbLofSwitch:0,LnbLofLo:11250,LnbLofHi:0,LnbPolInv:!1},{Name:"settings.capture.diseqc.lnbpreset_Linear",SubType:"voltage",LnbLofSwitch:0,LnbLofLo:10750,LnbLofHi:0,LnbPolInv:!1},{Name:"settings.capture.diseqc.lnbpreset_cband",SubType:"voltage",LnbLofSwitch:0,LnbLofLo:5150,LnbLofHi:0,LnbPolInv:!1},{Name:"settings.capture.diseqc.lnbpreset_dishpro",SubType:"bandstacked",LnbLofSwitch:0,LnbLofLo:11250,LnbLofHi:14350,LnbPolInv:!1},{Name:"settings.capture.diseqc.lnbpreset_custom",SubType:"custom",LnbLofSwitch:0,LnbLofLo:0,LnbLofHi:0,LnbPolInv:!1}],this.setupDone=!1,this.lnbSubTypes.forEach(r=>s.get(r.Name).subscribe(o=>r.Name=o)),this.lnbPresetList.forEach(r=>s.get(r.Name).subscribe(o=>r.Name=o))}ngOnInit(){if(this.diseqcTree.DiSEqCId){let
e;this.work.LnbLofSwitch=this.diseqcTree.LnbLofSwitch/1e3,this.work.LnbLofLo=this.diseqcTree.LnbLofLo/1e3,this.work.LnbLofHi=this.diseqcTre
e.LnbLofHi/1e3,e=this.lnbPresetList.find(n=>n.SubType==this.diseqcTree.SubType&&n.LnbLofSwitch==this.work.LnbLofSwitch&&n.LnbLofLo==this.work.LnbLofLo&&n.LnbLofHi==this.work.LnbLofHi&&n.LnbPolInv==this.diseqcTree.LnbPolInv),this.currentPreset=null==e?this.lnbPresetList[this.lnbPresetList.length-1]:e}else
this.currentPreset=this.lnbPresetList[0],this.updatePreset()}ngAfterViewInit(){this.baseEvent.emit(this),this.currentForm.valueChanges.subscribe(n=>{this.setupDone&&this.currentForm.dirty&&this.dvbComponent.currentForm.form.markAsDirty()}),new
Je(n=>{setTimeout(()=>{n.next(1),n.complete()},100)}).subscribe(n=>{this.setupDone=!0,this.diseqcTree.DiSEqCId?this.currentForm.form.markAsPristine():(this.currentForm.form.markAsDirty(),this.dvbComponent.currentForm.form.markAsDirty())})}updatePreset(){if("custom"!=this.currentPreset.SubType){let
e=this.lnbSubTypes.find(n=>n.SubType==this.currentPreset.SubType);e&&(this.currentSubType=e,this.updateSubType()),this.work.LnbLofSwitch=this.curren
tPreset.LnbLofSwitch,this.work.LnbLofLo=this.currentPreset.LnbLofLo,this.work.LnbLofHi=this.currentPreset.LnbLofHi,this.diseqcTree.LnbPolInv=this.currentPreset.LnbPolInv}}updateSubType(){this.diseqcTree.SubType=this.currentSubType.SubType}saveForm(e,n){this.diseqcTree.ParentId=e,this.diseqcTree.LnbLofSwitch=1e3*this.work.LnbLofSwitch,this.diseqcTree.LnbLofLo=1e3*this.work.LnbLofLo,this.diseqcTree.LnbLofHi=1e3*this.work.LnbLofHi,this.diseqcTree.DiSEqCId?this.captureCardService.UpdateDiseqcTree(this.diseqcTree).subscribe(n):this.captureCardService.AddDiseqcTree(this.diseqcTree).subscribe({next:s=>{s.int&&s.int>0?(this.diseqcTree.DiSEqCId=s.int,n.next&&n.next(s)):(console.log("UpdateDiseqcTree",s),n.error(s))},error:s=>{console.log("UpdateDiseqcTree",s),n.error(s)}})}}return
t.\u0275fac=function(e){return
new(e||t)(D(Gt),D(Me),D(Oe))},t.\u0275cmp=z({type:t,selectors:[["app-lnb"]],viewQuery:function(e,n){if(1&e&&W(bee,5),2&e){let
s;V(s=B())&&(n.currentForm=s.first)}},inputs:{diseqcTree:
"diseqcTree",diseqcTreeList:"diseqcTreeList",dvbComponent:"dvbComponent"},outputs:{baseEvent:"baseEvent"},decls:6,vars:0,consts:[["name","lnbform",1,"ml-3","mr-3"],["lnbform","ngForm"],[1,"m-5"],["pTemplate","title"],["pTemplate","subtitle"],["pTemplate","content"],[1,"grid"],[1,"mb-4","w-full"],[1,"form-group","field"],["for","Description",1,"label","block"],["pInputText","","id","ip","name","Description",1,"mb-2","form-control","w-full",3,"ngModel","ngModelChange"],["Description","ngModel"],[1,"block"],["for","LnbPreset",1,"label","block"],["optionLabel","Name","name","LnbPreset",3,"options","ngModel","editable","maxlength","scrollHeight","ngModelChange","onChange"],["LnbPreset","ngModel"],["for","SubType",1,"label","block"],["optionLabel","Name","name","SubType",3,"options","ngModel","editable","maxlength","disabled","ngModelChange","onChange"],["SubType","ngModel"],["for","LnbLofSwitch",1,"label","block"],["name","LnbLofSwitch","id","LnbLofSwitch","mode","decimal","inputId","wit
houtgrouping",3,"ngModel","useGrouping","disabled","ngModelChange"],["for","LnbLofLo",1,"label","block"],["name","LnbLofLo","id","LnbLofLo","mode","decimal","inputId","withoutgrouping",3,"ngModel","useGrouping","disabled","ngModelChange"],["for","LnbLofHi",1,"label","block"],["name","LnbLofHi","id","LnbLofHi","mode","decimal","inputId","withoutgrouping",3,"ngModel","useGrouping","disabled","ngModelChange"],["inputId","LnbPolInv","name","LnbPolInv",1,"label","mb-2","w-full",3,"ngModel","binary","label","disabled","ngModelChange"],["LnbPolInv","ngModel"]],template:function(e,n){1&e&&(l(0,"form",0,1)(2,"p-card",2),_(3,vee,2,3,"ng-template",3),_(4,Cee,0,0,"ng-template",4),_(5,yee,60,71,"ng-template",5),c()())},directives:[ze,Ue,He,Ne,ne,Ye,Te,_e,Ot,_n,pt,sn],pipes:[ce],styles:[""]}),t})();const
wee=["rotorform"];function
Tee(t,i){1&t&&(g(0),m(1,"translate")),2&t&&T("
",f(1,1,"settings.capture.diseqc.rotor.title")," ")}function
See(t,i){}function
xee(t,i){1&t&&(l(0,"tr")(1,"th"),g(2,"Pos
ition #"),c(),l(3,"th"),g(4,"Angle (Degrees)"),c()())}function
Dee(t,i){if(1&t){const
e=I();l(0,"p-inputNumber",43),C("ngModelChange",function(s){return
v(e),d().$implicit.Angle=s}),c()}2&t&&p("ngModel",d().$implicit.Angle)("min",-180)("max",180)("maxFractionDigits",5)}function
Mee(t,i){if(1&t&&(l(0,"div"),g(1),c()),2&t){const
e=d(2).$implicit;a(1),T("",e.Angle," (W)")}}function
kee(t,i){if(1&t&&(l(0,"div"),g(1),c()),2&t){const
e=d(2).$implicit;a(1),T(" ",e.Angle," (E)")}}function
Iee(t,i){if(1&t&&(_(0,Mee,2,1,"div",44),_(1,kee,2,1,"div",44)),2&t){const
e=d().$implicit;p("ngIf",e.Angle<0),a(1),p("ngIf",null!=e.Angle&&e.Angle>=0)}}function
Eee(t,i){if(1&t&&(l(0,"tr")(1,"td"),g(2),c(),l(3,"td",40)(4,"p-cellEditor"),_(5,Dee,1,4,"ng-template",41),_(6,Iee,2,2,"ng-template",42),c()()()),2&t){const
e=i.$implicit;a(2),T(" ",e.Num," ")}}const
SS=function(){return{width:"25rem"}};function
Ree(t,i){if(1&t&&(l(0,"div",8)(1,"label",36),g(2),m(3,"translate"),c(),l(4,"div")(5,"p-table",37),_(6,xee
,5,0,"ng-template",38),_(7,Eee,7,1,"ng-template",39),c()(),l(8,"small",12),g(9),m(10,"translate"),c()()),2&t){const
e=d(2);a(2),S(f(3,6,"settings.capture.diseqc.rotor.positions_label")),a(2),q(A(10,SS)),a(1),p("value",e.rotorPositions)("scrollable",!0),a(4),T("
",f(10,8,"settings.capture.diseqc.rotor.positions_desc"),"
")}}function Lee(t,i){if(1&t){const
e=I();l(0,"p-button",45),C("onClick",function(){return
v(e),d(2).work.displayNewDiseqc=!0}),m(1,"translate"),c()}2&t&&x("label",f(1,1,"settings.capture.dvb.newsatellite_button"))}function
Oee(t,i){if(1&t){const
e=I();l(0,"p-button",46),C("onClick",function(){return
v(e),d(2).work.displayNewDiseqc=!1}),m(1,"translate"),c(),l(2,"p-button",47),C("onClick",function(){return
v(e),d(2).newDiseqc()}),m(3,"translate"),c()}if(2&t){const
e=d(2);x("label",f(1,3,"common.cancel")),a(2),x("label",f(3,5,"common.ok")),p("disabled",e.selectedDiseqcType.inactive)}}function
Aee(t,i){if(1&t){const
e=I();l(0,"p-button",48),C("onClick",function(){return
v(e),d(2).work.displayDeleteDiseqc=!0}),c()}2&t&&p("disabled",!d(2).diseqcSubTree)}function
Pee(t,i){if(1&t){const
e=I();l(0,"p-button",49),C("click",function(){return
v(e),d(2).work.displayDeleteDiseqc=!1}),m(1,"translate"),c(),l(2,"p-button",50),C("click",function(){return
v(e),d(2).deleteDiseqc()}),m(3,"translate"),c()}2&t&&(x("label",f(1,2,"common.no")),a(2),x("label",f(3,4,"common.yes")))}function
Fee(t,i){if(1&t){const
e=I();l(0,"app-lnb",51),C("baseEvent",function(s){return
v(e),d(2).setDiseqcObject(s)}),c()}if(2&t){const
e=d(2);p("diseqcTree",e.diseqcSubTree)("diseqcTreeList",e.diseqcTreeList)("dvbComponent",e.dvbComponent)}}function
Nee(t,i){if(1&t){const
e=I();l(0,"app-rotor",51),C("baseEvent",function(s){return
v(e),d(2).setDiseqcObject(s)}),c()}if(2&t){const
e=d(2);p("diseqcTree",e.diseqcSubTree)("diseqcTreeList",e.diseqcTreeList)("dvbComponent",e.dvbComponent)}}function
Vee(t,i){if(1&t){const
e=I();l(0,"app-switch",51),C("baseEvent",function(s){return
v(e),d(2).setDiseq
cObject(s)}),c()}if(2&t){const
e=d(2);p("diseqcTree",e.diseqcSubTree)("diseqcTreeList",e.diseqcTreeList)("dvbComponent",e.dvbComponent)}}function
Bee(t,i){if(1&t){const
e=I();l(0,"app-unicable",51),C("baseEvent",function(s){return
v(e),d(2).setDiseqcObject(s)}),c()}if(2&t){const
e=d(2);p("diseqcTree",e.diseqcSubTree)("diseqcTreeList",e.diseqcTreeList)("dvbComponent",e.dvbComponent)}}const
Hee=function(){return{minWidth:"80%"}},xS=function(){return{width:"50vw"}};function
qee(t,i){if(1&t){const
e=I();l(0,"div",6)(1,"div",7)(2,"div",8)(3,"label",9),g(4),m(5,"translate"),c(),l(6,"input",10,11),C("ngModelChange",function(s){return
v(e),d().diseqcTree.Description=s}),c(),l(8,"small",12),g(9),m(10,"translate"),c()(),l(11,"div",8)(12,"label",13),g(13),m(14,"translate"),c(),l(15,"p-inputNumber",14),C("ngModelChange",function(s){return
v(e),d().diseqcTree.CmdRepeat=s}),c(),l(16,"small",12),k(17,"div",15),m(18,"translate"),c()(),l(19,"div",8)(20,"label",16),g(21),m(22,"translate"),c(),l(23,"p
-dropdown",17,18),C("ngModelChange",function(s){return
v(e),d().currentSubType=s})("onChange",function(){return
v(e),d().updateSubType()}),c(),l(25,"small",12),g(26),m(27,"translate"),c()(),_(28,Ree,11,11,"div",19),l(29,"div",8)(30,"label",20),g(31),m(32,"translate"),c(),l(33,"p-inputNumber",21),C("ngModelChange",function(s){return
v(e),d().diseqcTree.RotorLoSpeed=s}),c(),l(34,"small",12),g(35),m(36,"translate"),c()(),l(37,"div",8)(38,"label",22),g(39),m(40,"translate"),c(),l(41,"p-inputNumber",23),C("ngModelChange",function(s){return
v(e),d().diseqcTree.RotorHiSpeed=s}),c(),l(42,"small",12),g(43),m(44,"translate"),c()(),l(45,"div",8)(46,"label",24),g(47),m(48,"translate"),c(),l(49,"p-inputNumber",25),C("ngModelChange",function(s){return
v(e),d().fields.Latitude=s}),c(),l(50,"small",12),g(51),m(52,"translate"),c()(),l(53,"div",8)(54,"label",26),g(55),m(56,"translate"),c(),l(57,"p-inputNumber",27),C("ngModelChange",function(s){return
v(e),d().fields.Longitude=s}),c(),l(58,"small",12)
,g(59),m(60,"translate"),c()(),l(61,"p-fieldset",28),m(62,"translate"),_(63,Lee,2,3,"p-button",29),l(64,"p-dialog",30),C("visibleChange",function(s){return
v(e),d().work.displayNewDiseqc=s}),m(65,"translate"),l(66,"label",31),g(67),m(68,"translate"),c(),l(69,"p-listbox",32),C("ngModelChange",function(s){return
v(e),d().selectedDiseqcType=s})("onDblClick",function(){return
v(e),d().newDiseqc()}),c(),_(70,Oee,4,7,"ng-template",33),c(),_(71,Aee,1,1,"p-button",34),l(72,"p-dialog",30),C("visibleChange",function(s){return
v(e),d().work.displayDeleteDiseqc=s}),m(73,"translate"),l(74,"h2"),g(75),m(76,"translate"),c(),l(77,"p"),g(78),m(79,"translate"),c(),_(80,Pee,4,6,"ng-template",33),c(),_(81,Fee,1,3,"app-lnb",35),_(82,Nee,1,3,"app-rotor",35),_(83,Vee,1,3,"app-switch",35),_(84,Bee,1,3,"app-unicable",35),c()()()}if(2&t){const
e=d();a(4),S(f(5,65,"settings.capture.diseqc.description_label")),a(2),p("ngModel",e.diseqcTree.Description),a(3),T("
",f(10,67,"settings.capture.diseqc.description_de
sc"),"
"),a(4),S(f(14,69,"settings.capture.diseqc.cmdrepeat_label")),a(2),p("ngModel",e.diseqcTree.CmdRepeat)("showButtons",!0)("min",0)("max",15)("step",1),a(2),p("innerHTML",f(18,71,"settings.capture.diseqc.cmdrepeat_desc"),Bt),a(2),q(A(105,SS)),a(2),S(f(22,73,"settings.capture.diseqc.rotor.type_label")),a(2),q(A(106,Hee)),p("options",e.rotorSubTypes)("ngModel",e.currentSubType)("editable",!1)("maxlength",0),a(3),T("
",f(27,75,"settings.capture.diseqc.rotor.type_desc"),"
"),a(2),p("ngIf","diseqc_1_2"==e.diseqcTree.SubType),a(3),S(f(32,77,"settings.capture.diseqc.rotor.lospeed_label")),a(2),p("ngModel",e.diseqcTree.RotorLoSpeed)("maxFractionDigits",5),a(2),T("
",f(36,79,"settings.capture.diseqc.rotor.lospeed_desc"),"
"),a(4),S(f(40,81,"settings.capture.diseqc.rotor.hispeed_label")),a(2),p("ngModel",e.diseqcTree.RotorHiSpeed)("maxFractionDigits",5),a(2),T("
",f(44,83,"settings.capture.diseqc.rotor.hispeed_desc"),"
"),a(4),S(f(48,85,"settings.capture.diseqc.rotor.latitude_label")),a(
2),p("ngModel",e.fields.Latitude)("maxFractionDigits",5),a(2),T("
",f(52,87,"settings.capture.diseqc.rotor.latitude_desc"),"
"),a(4),S(f(56,89,"settings.capture.diseqc.rotor.longitude_label")),a(2),p("ngModel",e.fields.Longitude)("maxFractionDigits",5),a(2),T("
",f(60,91,"settings.capture.diseqc.rotor.longitude_desc"),"
"),a(2),x("legend",f(62,93,"settings.capture.dvb.satellite_heading")),p("toggleable",!0)("collapsed",!0),a(2),p("ngIf",!e.diseqcSubTree),a(1),q(A(107,xS)),x("header",f(65,95,"settings.capture.dvb.newsatellite_heading")),p("visible",e.work.displayNewDiseqc)("modal",!0)("draggable",!1)("resizable",!1),a(3),S(f(68,97,"settings.capture.dvb.newsatellite_devtype")),a(2),p("options",e.captureCardService.diseqcTypes)("ngModel",e.selectedDiseqcType),a(2),p("ngIf",e.diseqcSubTree),a(1),q(A(108,xS)),x("header",f(73,99,"settings.capture.dvb.satellite_delete_header")),p("visible",e.work.displayDeleteDiseqc)("modal",!0)("draggable",!1)("resizable",!1),a(3),S(f(76,101,"settings.com
mon.ru_sure")),a(3),S(f(79,103,"settings.capture.dvb.satellite_delete_desc")),a(3),p("ngIf",e.diseqcSubTree&&"lnb"==e.diseqcSubTree.Type),a(1),p("ngIf",e.diseqcSubTree&&"rotor"==e.diseqcSubTree.Type),a(1),p("ngIf",e.diseqcSubTree&&"switch"==e.diseqcSubTree.Type),a(1),p("ngIf",e.diseqcSubTree&&"scr"==e.diseqcSubTree.Type)}}let
Al=(()=>{class
t{constructor(e,n,s,r){this.captureCardService=e,this.setupService=n,this.translate=s,this.mythService=r,this.baseEvent=new
H,this.rotorSubTypes=[{Name:"settings.capture.diseqc.subtype_diseqc_1_2",SubType:"diseqc_1_2"},{Name:"settings.capture.diseqc.subtype_diseqc_1_3",SubType:"diseqc_1_3"}],this.selectedDiseqcType={description:"",type:"",inactive:!0},this.rotorPositions=[],this.fields={Latitude:null,Longitude:null},this.work={displayNewDiseqc:!1,displayDeleteDiseqc:!1},this.setupDone=!1,this.rotorSubTypes.forEach(o=>s.get(o.Name).subscribe(u=>o.Name=u))}ngOnInit(){this.mythService.GetSetting({HostName:"_GLOBAL_",Key:"latitude"}).subscribe({next:
e=>{e.String.length>0&&(this.fields.Latitude=Number(e.String))},error:()=>this.dvbComponent.work.errorCount++}),this.mythService.GetSetting({HostName:"_GLOBAL_",Key:"longitude"}).subscribe({next:e=>{e.String.length>0&&(this.fields.Longitude=Number(e.String))},error:()=>this.dvbComponent.work.errorCount++});for(let
e=0;e<48;e++)this.rotorPositions.push({Num:e+1,Angle:null});if(this.diseqcTree.DiSEqCId?this.diseqcTree.RotorPositions.split(":").forEach(n=>{let
s=n.split("=");if(2==s.length&&s[0].length>0&&s[1].length>0){let
r=Number.parseInt(s[1])-1,o=Number.parseFloat(s[0]);r>-1&&r<48&&(this.rotorPositions[r].Angle=o)}}):(this.diseqcTree.RotorHiSpeed=2.5,this.diseqcTree.RotorLoSpeed=1.9,this.diseqcTree.SubType="diseqc_1_3",this.diseqcTree.CmdRepeat=1),this.diseqcTree.SubType){let
e=this.rotorSubTypes.find(n=>n.SubType==this.diseqcTree.SubType);e&&(this.currentSubType=e)}this.diseqcSubTree=this.diseqcTreeList.DiseqcTreeList.DiseqcTrees.find(e=>e.ParentId==this.diseqcTree.DiSEqCId)}ngAf
terViewInit(){this.baseEvent.emit(this),this.currentForm.valueChanges.subscribe(n=>{this.setupDone&&this.currentForm.dirty&&this.dvbComponent.currentForm.form.markAsDirty()}),new
Je(n=>{setTimeout(()=>{n.next(1),n.complete()},100)}).subscribe(n=>{this.setupDone=!0,this.diseqcTree.DiSEqCId?this.currentForm.form.markAsPristine():(this.currentForm.form.markAsDirty(),this.dvbComponent.currentForm.form.markAsDirty())})}updateSubType(){this.diseqcTree.SubType=this.currentSubType.SubType}newDiseqc(){this.work.displayNewDiseqc=!1,this.diseqcSubTree={Type:this.selectedDiseqcType.type,Description:this.selectedDiseqcType.description}}setDiseqcObject(e){this.diseqcSubComponent=e}deleteDiseqc(){this.work.displayDeleteDiseqc=!1,this.dvbComponent.work.errorCount=0,this.diseqcSubTree&&this.diseqcSubTree.DiSEqCId&&this.captureCardService.DeleteDiseqcTree(this.diseqcSubTree.DiSEqCId).subscribe({next:e=>{e.bool||(console.log("DeleteDiseqcTree",e),this.dvbComponent.work.errorCount++)},error:e=>{console
.log("DeleteDiseqcTree",e),this.dvbComponent.work.errorCount++}}),0==this.dvbComponent.work.errorCount&&(this.diseqcSubTree=void
0)}saveForm(e,n){this.diseqcTree.ParentId=e,null!=this.fields.Latitude&&this.mythService.PutSetting({HostName:"_GLOBAL_",Key:"latitude",Value:String(this.fields.Latitude)}).subscribe(this.dvbComponent.saveObserver),null!=this.fields.Longitude&&this.mythService.PutSetting({HostName:"_GLOBAL_",Key:"longitude",Value:String(this.fields.Longitude)}).subscribe(this.dvbComponent.saveObserver),this.diseqcTree.RotorPositions="",this.rotorPositions.forEach(s=>{null!=s.Angle&&(this.diseqcTree.RotorPositions.length>0&&(this.diseqcTree.RotorPositions=this.diseqcTree.RotorPositions+":"),this.diseqcTree.RotorPositions=this.diseqcTree.RotorPositions+s.Angle+"="+s.Num)}),this.diseqcTree.DiSEqCId?(this.captureCardService.UpdateDiseqcTree(this.diseqcTree).subscribe(n),this.diseqcSubComponent&&this.diseqcSubComponent.saveForm(this.diseqcTree.DiSEqCId,{error:s=>{n.error(s)}}))
:this.captureCardService.AddDiseqcTree(this.diseqcTree).subscribe({next:s=>{s.int&&s.int>0?(this.diseqcTree.DiSEqCId=s.int,n.next(s),this.diseqcSubComponent&&this.diseqcSubComponent.saveForm(this.diseqcTree.DiSEqCId,{next:r=>{},error:r=>{n.error(r)}})):(console.log("UpdateDiseqcTree",s),n.error(s))},error:s=>{console.log("UpdateDiseqcTree",s),n.error(s)}})}}return
t.\u0275fac=function(e){return
new(e||t)(D(Gt),D(Me),D(Oe),D(qt))},t.\u0275cmp=z({type:t,selectors:[["app-rotor"]],viewQuery:function(e,n){if(1&e&&W(wee,5),2&e){let
s;V(s=B())&&(n.currentForm=s.first)}},inputs:{diseqcTree:"diseqcTree",diseqcTreeList:"diseqcTreeList",dvbComponent:"dvbComponent"},outputs:{baseEvent:"baseEvent"},decls:6,vars:0,consts:[["name","rotorform",1,"ml-3","mr-3"],["rotorform","ngForm"],[1,"m-5"],["pTemplate","title"],["pTemplate","subtitle"],["pTemplate","content"],[1,"grid"],[1,"mb-4","w-full"],[1,"form-group","field"],["for","Description",1,"label","block"],["pInputText","","id","ip","name","Descrip
tion",1,"mb-2","form-control","w-full",3,"ngModel","ngModelChange"],["Description","ngModel"],[1,"block"],["for","CmdRepeat",1,"label","block"],["name","CmdRepeat","id","CmdRepeat",3,"ngModel","showButtons","min","max","step","ngModelChange"],[3,"innerHTML"],["for","SubType",1,"label","block"],["optionLabel","Name","name","SubType",3,"options","ngModel","editable","maxlength","ngModelChange","onChange"],["SubType","ngModel"],["class","form-group
field",4,"ngIf"],["for","RotorLoSpeed",1,"label","block"],["name","RotorLoSpeed","id","RotorLoSpeed","mode","decimal",3,"ngModel","maxFractionDigits","ngModelChange"],["for","RotorHiSpeed",1,"label","block"],["name","RotorHiSpeed","id","RotorHiSpeed","mode","decimal",3,"ngModel","maxFractionDigits","ngModelChange"],["for","Latitude",1,"label","block"],["name","Latitude","id","Latitude","mode","decimal",3,"ngModel","maxFractionDigits","ngModelChange"],["for","Longitude",1,"label","block"],["name","Longitude","id","Longitude","mode","decimal",
3,"ngModel","maxFractionDigits","ngModelChange"],[1,"mb-4","w-full",3,"legend","toggleable","collapsed"],["icon","pi
pi-plus-circle","styleClass","p-button-plain",3,"label","onClick",4,"ngIf"],[3,"header","visible","modal","draggable","resizable","visibleChange"],["for","disenqcTypes",1,"label","block"],["optionLabel","description","name","disenqcTypes","optionDisabled","inactive",3,"options","ngModel","ngModelChange","onDblClick"],["pTemplate","footer"],["styleClass","p-button-warning","label","Delete
Satellite Devices","icon","pi
pi-trash",3,"disabled","onClick",4,"ngIf"],[3,"diseqcTree","diseqcTreeList","dvbComponent","baseEvent",4,"ngIf"],["for","RotorPositions",1,"label","block"],["dataKey","Num","responsiveLayout","scroll","name","RotorPositions","styleClass","p-datatable-gridlines","scrollHeight","20rem",3,"value","scrollable"],["pTemplate","header"],["pTemplate","body"],["pEditableColumn",""],["pTemplate","input"],["pTemplate","output"],["name","Angle",3,"ngModel","min","max
","maxFractionDigits","ngModelChange"],[4,"ngIf"],["icon","pi
pi-plus-circle","styleClass","p-button-plain",3,"label","onClick"],["icon","pi
pi-times-circle","styleClass","p-button-plain",3,"label","onClick"],["icon","pi
pi-check-circle","styleClass","p-button-plain",3,"label","disabled","onClick"],["styleClass","p-button-warning","label","Delete
Satellite Devices","icon","pi
pi-trash",3,"disabled","onClick"],["icon","pi
pi-times-circle","styleClass","p-button-plain",3,"label","click"],["icon","pi
pi-check-circle","styleClass","p-button-plain",3,"label","click"],[3,"diseqcTree","diseqcTreeList","dvbComponent","baseEvent"]],template:function(e,n){1&e&&(l(0,"form",0,1)(2,"p-card",2),_(3,Tee,2,3,"ng-template",3),_(4,See,0,0,"ng-template",4),_(5,qee,85,109,"ng-template",5),c()())},styles:[""]}),t})();const
Gee=["unicableform"];function
Uee(t,i){1&t&&(g(0),m(1,"translate")),2&t&&T("
",f(1,1,"settings.capture.diseqc.unicable.title")," ")}function
zee(t,i){}function jee(t,i){if(1&t){const
e=I();l(0,"p-button",30),C("onClick",function(){return
v(e),d(2).work.displayNewDiseqc=!0}),m(1,"translate"),c()}2&t&&x("label",f(1,1,"settings.capture.dvb.newsatellite_button"))}function
$ee(t,i){if(1&t){const
e=I();l(0,"p-button",31),C("onClick",function(){return
v(e),d(2).work.displayNewDiseqc=!1}),m(1,"translate"),c(),l(2,"p-button",32),C("onClick",function(){return
v(e),d(2).newDiseqc()}),m(3,"translate"),c()}if(2&t){const
e=d(2);x("label",f(1,3,"common.cancel")),a(2),x("label",f(3,5,"common.ok")),p("disabled",e.selectedDiseqcType.inactive)}}function
Wee(t,i){if(1&t){const
e=I();l(0,"p-button",33),C("onClick",function(){return
v(e),d(2).work.displayDeleteDiseqc=!0}),c()}2&t&&p("disabled",!d(2).diseqcSubTree)}function
Kee(t,i){if(1&t){const
e=I();l(0,"p-button",34),C("click",function(){return
v(e),d(2).work.displayDeleteDiseqc=!1}),m(1,"translate"),c(),l(2,"p-button",35),C("click",function(){return
v(e),d(2).deleteDiseqc()}),m(3,"translate"),c()}2&t&&(x("label",f(1,2,"common.no"
)),a(2),x("label",f(3,4,"common.yes")))}function
Qee(t,i){if(1&t){const
e=I();l(0,"app-lnb",36),C("baseEvent",function(s){return
v(e),d(2).setDiseqcObject(s)}),c()}if(2&t){const
e=d(2);p("diseqcTree",e.diseqcSubTree)("diseqcTreeList",e.diseqcTreeList)("dvbComponent",e.dvbComponent)}}function
Jee(t,i){if(1&t){const
e=I();l(0,"app-rotor",36),C("baseEvent",function(s){return
v(e),d(2).setDiseqcObject(s)}),c()}if(2&t){const
e=d(2);p("diseqcTree",e.diseqcSubTree)("diseqcTreeList",e.diseqcTreeList)("dvbComponent",e.dvbComponent)}}function
Yee(t,i){if(1&t){const
e=I();l(0,"app-switch",36),C("baseEvent",function(s){return
v(e),d(2).setDiseqcObject(s)}),c()}if(2&t){const
e=d(2);p("diseqcTree",e.diseqcSubTree)("diseqcTreeList",e.diseqcTreeList)("dvbComponent",e.dvbComponent)}}function
Zee(t,i){if(1&t){const
e=I();l(0,"app-unicable",36),C("baseEvent",function(s){return
v(e),d(2).setDiseqcObject(s)}),c()}if(2&t){const
e=d(2);p("diseqcTree",e.diseqcSubTree)("diseqcTreeList",e.diseqcTreeList)("dv
bComponent",e.dvbComponent)}}const
DS=function(){return{width:"50vw"}};function Xee(t,i){if(1&t){const
e=I();l(0,"div",6)(1,"div",7)(2,"div",8)(3,"label",9),g(4),m(5,"translate"),c(),l(6,"input",10,11),C("ngModelChange",function(s){return
v(e),d().diseqcTree.Description=s}),c(),l(8,"small",12),g(9),m(10,"translate"),c()(),l(11,"div",8)(12,"label",13),g(13),m(14,"translate"),c(),l(15,"p-inputNumber",14),C("ngModelChange",function(s){return
v(e),d().diseqcTree.ScrUserband=s}),c(),l(16,"small",12),k(17,"div",15),m(18,"translate"),c()(),l(19,"div",8)(20,"label",16),g(21),m(22,"translate"),c(),l(23,"p-inputNumber",17),C("ngModelChange",function(s){return
v(e),d().diseqcTree.ScrFrequency=s}),c(),l(24,"small",12),g(25),m(26,"translate"),c()(),l(27,"div",8)(28,"label",18),g(29),m(30,"translate"),c(),l(31,"p-inputNumber",19),C("ngModelChange",function(s){return
v(e),d().diseqcTree.ScrPin=s}),c(),l(32,"small",12),g(33),m(34,"translate"),c()(),l(35,"div",8)(36,"label",20),g(37),m(38,"translate
"),c(),l(39,"p-inputNumber",21),C("ngModelChange",function(s){return
v(e),d().diseqcTree.CmdRepeat=s}),c(),l(40,"small",12),k(41,"div",15),m(42,"translate"),c()(),l(43,"p-fieldset",22),m(44,"translate"),_(45,jee,2,3,"p-button",23),l(46,"p-dialog",24),C("visibleChange",function(s){return
v(e),d().work.displayNewDiseqc=s}),m(47,"translate"),l(48,"label",25),g(49),m(50,"translate"),c(),l(51,"p-listbox",26),C("ngModelChange",function(s){return
v(e),d().selectedDiseqcType=s})("onDblClick",function(){return
v(e),d().newDiseqc()}),c(),_(52,$ee,4,7,"ng-template",27),c(),_(53,Wee,1,1,"p-button",28),l(54,"p-dialog",24),C("visibleChange",function(s){return
v(e),d().work.displayDeleteDiseqc=s}),m(55,"translate"),l(56,"h2"),g(57),m(58,"translate"),c(),l(59,"p"),g(60),m(61,"translate"),c(),_(62,Kee,4,6,"ng-template",27),c(),_(63,Qee,1,3,"app-lnb",29),_(64,Jee,1,3,"app-rotor",29),_(65,Yee,1,3,"app-switch",29),_(66,Zee,1,3,"app-unicable",29),c()()()}if(2&t){const
e=d();a(4),S(f(5,55,"settings.captu
re.diseqc.description_label")),a(2),p("ngModel",e.diseqcTree.Description),a(3),T("
",f(10,57,"settings.capture.diseqc.description_desc"),"
"),a(4),S(f(14,59,"settings.capture.diseqc.unicable.userband_label")),a(2),p("ngModel",e.diseqcTree.ScrUserband)("showButtons",!0)("min",0)("max",7)("step",1),a(2),p("innerHTML",f(18,61,"settings.capture.diseqc.userband_desc"),Bt),a(4),S(f(22,63,"settings.capture.diseqc.unicable.frequency_label")),a(2),p("ngModel",e.diseqcTree.ScrFrequency)("useGrouping",!1),a(2),T("
",f(26,65,"settings.capture.diseqc.unicable.frequency_desc"),"
"),a(4),S(f(30,67,"settings.capture.diseqc.unicable.pin_label")),a(2),p("ngModel",e.diseqcTree.ScrPin)("useGrouping",!1)("min",-1)("max",255),a(2),T("
",f(34,69,"settings.capture.diseqc.unicable.pin_desc"),"
"),a(4),S(f(38,71,"settings.capture.diseqc.cmdrepeat_label")),a(2),p("ngModel",e.diseqcTree.CmdRepeat)("showButtons",!0)("min",0)("max",15)("step",1),a(2),p("innerHTML",f(42,73,"settings.capture.diseqc.cmdrepeat_desc"
),Bt),a(2),x("legend",f(44,75,"settings.capture.dvb.satellite_heading")),p("toggleable",!0)("collapsed",!0),a(2),p("ngIf",!e.diseqcSubTree),a(1),q(A(87,DS)),x("header",f(47,77,"settings.capture.dvb.newsatellite_heading")),p("visible",e.work.displayNewDiseqc)("modal",!0)("draggable",!1)("resizable",!1),a(3),S(f(50,79,"settings.capture.dvb.newsatellite_devtype")),a(2),p("options",e.captureCardService.diseqcTypes)("ngModel",e.selectedDiseqcType),a(2),p("ngIf",e.diseqcSubTree),a(1),q(A(88,DS)),x("header",f(55,81,"settings.capture.dvb.satellite_delete_header")),p("visible",e.work.displayDeleteDiseqc)("modal",!0)("draggable",!1)("resizable",!1),a(3),S(f(58,83,"settings.common.ru_sure")),a(3),S(f(61,85,"settings.capture.dvb.satellite_delete_desc")),a(3),p("ngIf",e.diseqcSubTree&&"lnb"==e.diseqcSubTree.Type),a(1),p("ngIf",e.diseqcSubTree&&"rotor"==e.diseqcSubTree.Type),a(1),p("ngIf",e.diseqcSubTree&&"switch"==e.diseqcSubTree.Type),a(1),p("ngIf",e.diseqcSubTree&&"scr"==e.diseqcSubTree.Type)}
}let Pl=(()=>{class
t{constructor(e){this.captureCardService=e,this.selectedDiseqcType={description:"",type:"",inactive:!0},this.baseEvent=new
H,this.work={displayNewDiseqc:!1,displayDeleteDiseqc:!1},this.setupDone=!1}ngOnInit(){this.diseqcTree.DiSEqCId||(this.diseqcTree.ScrUserband=0,this.diseqcTree.ScrFrequency=1210,this.diseqcTree.ScrPin=-1,this.diseqcTree.CmdRepeat=1),this.diseqcSubTree=this.diseqcTreeList.DiseqcTreeList.DiseqcTrees.find(e=>e.ParentId==this.diseqcTree.DiSEqCId)}ngAfterViewInit(){this.baseEvent.emit(this),this.currentForm.valueChanges.subscribe(n=>{this.setupDone&&this.currentForm.dirty&&this.dvbComponent.currentForm.form.markAsDirty()}),new
Je(n=>{setTimeout(()=>{n.next(1),n.complete()},100)}).subscribe(n=>{this.setupDone=!0,this.diseqcTree.DiSEqCId?this.currentForm.form.markAsPristine():(this.currentForm.form.markAsDirty(),this.dvbComponent.currentForm.form.markAsDirty())})}newDiseqc(){this.work.displayNewDiseqc=!1,this.diseqcSubTree={Type:this.selectedDiseqcTy
pe.type,Description:this.selectedDiseqcType.description}}setDiseqcObject(e){this.diseqcSubComponent=e}deleteDiseqc(){this.work.displayDeleteDiseqc=!1,this.dvbComponent.work.errorCount=0,this.diseqcSubTree&&this.diseqcSubTree.DiSEqCId&&this.captureCardService.DeleteDiseqcTree(this.diseqcSubTree.DiSEqCId).subscribe({next:e=>{e.bool||(console.log("DeleteDiseqcTree",e),this.dvbComponent.work.errorCount++)},error:e=>{console.log("DeleteDiseqcTree",e),this.dvbComponent.work.errorCount++}}),0==this.dvbComponent.work.errorCount&&(this.diseqcSubTree=void
0)}saveForm(e,n){this.diseqcTree.ParentId=e,this.diseqcTree.DiSEqCId?(this.captureCardService.UpdateDiseqcTree(this.diseqcTree).subscribe(n),this.diseqcSubComponent&&this.diseqcSubComponent.saveForm(this.diseqcTree.DiSEqCId,{error:s=>{n.error(s)}})):this.captureCardService.AddDiseqcTree(this.diseqcTree).subscribe({next:s=>{s.int&&s.int>0?(this.diseqcTree.DiSEqCId=s.int,n.next&&n.next(s),this.diseqcSubComponent&&this.diseqcSubComponent.saveFo
rm(this.diseqcTree.DiSEqCId,{next:r=>{},error:r=>{n.error(r)}})):(console.log("UpdateDiseqcTree",s),n.error(s))},error:s=>{console.log("UpdateDiseqcTree",s),n.error(s)}})}}return
t.\u0275fac=function(e){return
new(e||t)(D(Gt))},t.\u0275cmp=z({type:t,selectors:[["app-unicable"]],viewQuery:function(e,n){if(1&e&&W(Gee,5),2&e){let
s;V(s=B())&&(n.currentForm=s.first)}},inputs:{diseqcTree:"diseqcTree",diseqcTreeList:"diseqcTreeList",dvbComponent:"dvbComponent"},outputs:{baseEvent:"baseEvent"},decls:6,vars:0,consts:[["name","unicableform",1,"ml-3","mr-3"],["unicableform","ngForm"],[1,"m-5"],["pTemplate","title"],["pTemplate","subtitle"],["pTemplate","content"],[1,"grid"],[1,"mb-4","w-full"],[1,"form-group","field"],["for","Description",1,"label","block"],["pInputText","","id","ip","name","Description",1,"mb-2","form-control","w-full",3,"ngModel","ngModelChange"],["Description","ngModel"],[1,"block"],["for","ScrUserband",1,"label","block"],["name","ScrUserband","id","ScrUserband",3,"ngModel
","showButtons","min","max","step","ngModelChange"],[3,"innerHTML"],["for","ScrFrequency",1,"label","block"],["name","ScrFrequency","id","ScrFrequency","mode","decimal","inputId","withoutgrouping",3,"ngModel","useGrouping","ngModelChange"],["for","ScrPin",1,"label","block"],["name","ScrPin","id","ScrPin","mode","decimal","inputId","withoutgrouping",3,"ngModel","useGrouping","min","max","ngModelChange"],["for","CmdRepeat",1,"label","block"],["name","CmdRepeat","id","CmdRepeat",3,"ngModel","showButtons","min","max","step","ngModelChange"],[1,"mb-4","w-full",3,"legend","toggleable","collapsed"],["icon","pi
pi-plus-circle","styleClass","p-button-plain",3,"label","onClick",4,"ngIf"],[3,"header","visible","modal","draggable","resizable","visibleChange"],["for","disenqcTypes",1,"label","block"],["optionLabel","description","name","disenqcTypes","optionDisabled","inactive",3,"options","ngModel","ngModelChange","onDblClick"],["pTemplate","footer"],["styleClass","p-button-warning","label","De
lete Satellite Devices","icon","pi
pi-trash",3,"disabled","onClick",4,"ngIf"],[3,"diseqcTree","diseqcTreeList","dvbComponent","baseEvent",4,"ngIf"],["icon","pi
pi-plus-circle","styleClass","p-button-plain",3,"label","onClick"],["icon","pi
pi-times-circle","styleClass","p-button-plain",3,"label","onClick"],["icon","pi
pi-check-circle","styleClass","p-button-plain",3,"label","disabled","onClick"],["styleClass","p-button-warning","label","Delete
Satellite Devices","icon","pi
pi-trash",3,"disabled","onClick"],["icon","pi
pi-times-circle","styleClass","p-button-plain",3,"label","click"],["icon","pi
pi-check-circle","styleClass","p-button-plain",3,"label","click"],[3,"diseqcTree","diseqcTreeList","dvbComponent","baseEvent"]],template:function(e,n){1&e&&(l(0,"form",0,1)(2,"p-card",2),_(3,Uee,2,3,"ng-template",3),_(4,zee,0,0,"ng-template",4),_(5,Xee,67,89,"ng-template",5),c()())},styles:[""]}),t})();const
ete=["switchform"];function
tte(t,i){1&t&&(g(0),m(1,"translate")),2&t&&T("
",f(1,1,"se
ttings.capture.diseqc.switch.title")," ")}function nte(t,i){}function
ite(t,i){1&t&&(l(0,"div")(1,"small",27),g(2),m(3,"translate"),c()()),2&t&&(a(2),S(f(3,1,"settings.capture.diseqc.switchports_error")))}function
ste(t,i){if(1&t){const
e=I();l(0,"p-button",33),C("onClick",function(){v(e);const
s=d(2).index;return
d(2).displayDeleteThis[s]=!0}),c()}2&t&&p("disabled",!d(2).$implicit)}function
rte(t,i){if(1&t){const
e=I();l(0,"p-button",34),C("click",function(){v(e);const
s=d(2).index;return
d(2).displayDeleteThis[s]=!1}),m(1,"translate"),c(),l(2,"p-button",35),C("click",function(){v(e);const
s=d(2).index;return
d(2).deleteDiseqc(s)}),m(3,"translate"),c()}2&t&&(x("label",f(1,2,"common.no")),a(2),x("label",f(3,4,"common.yes")))}function
ote(t,i){if(1&t){const
e=I();l(0,"app-lnb",36),C("baseEvent",function(s){return
v(e),d(4).setDiseqcObject(s)}),c()}if(2&t){const
e=d(2).$implicit,n=d(2);p("diseqcTree",e)("diseqcTreeList",n.diseqcTreeList)("dvbComponent",n.dvbComponent)}}function
ate(t,
i){if(1&t){const
e=I();l(0,"app-rotor",36),C("baseEvent",function(s){return
v(e),d(4).setDiseqcObject(s)}),c()}if(2&t){const
e=d(2).$implicit,n=d(2);p("diseqcTree",e)("diseqcTreeList",n.diseqcTreeList)("dvbComponent",n.dvbComponent)}}function
lte(t,i){if(1&t){const
e=I();l(0,"app-switch",36),C("baseEvent",function(s){return
v(e),d(4).setDiseqcObject(s)}),c()}if(2&t){const
e=d(2).$implicit,n=d(2);p("diseqcTree",e)("diseqcTreeList",n.diseqcTreeList)("dvbComponent",n.dvbComponent)}}function
cte(t,i){if(1&t){const
e=I();l(0,"app-unicable",36),C("baseEvent",function(s){return
v(e),d(4).setDiseqcObject(s)}),c()}if(2&t){const
e=d(2).$implicit,n=d(2);p("diseqcTree",e)("diseqcTreeList",n.diseqcTreeList)("dvbComponent",n.dvbComponent)}}const
MS=function(){return{width:"50vw"}};function ute(t,i){if(1&t){const
e=I();l(0,"p-fieldset",28),m(1,"translate"),_(2,ste,1,1,"p-button",29),l(3,"p-dialog",30),C("visibleChange",function(s){v(e);const
r=d().index;return d(2).displayDeleteThis[r]=s}),m(4,"tr
anslate"),l(5,"h2"),g(6),m(7,"translate"),c(),l(8,"p"),g(9),m(10,"translate"),c(),_(11,rte,4,6,"ng-template",31),c(),_(12,ote,1,3,"app-lnb",32),_(13,ate,1,3,"app-rotor",32),_(14,lte,1,3,"app-switch",32),_(15,cte,1,3,"app-unicable",32),c()}if(2&t){const
e=d(),n=e.$implicit,s=e.index,r=d(2);x("legend",f(1,17,"settings.capture.dvb.satellite_heading")),p("toggleable",!0)("collapsed",!0),a(2),p("ngIf",n),a(1),q(A(25,MS)),x("header",f(4,19,"settings.capture.dvb.satellite_delete_header")),p("visible",r.displayDeleteThis[s])("modal",!0)("draggable",!1)("resizable",!1),a(3),S(f(7,21,"settings.common.ru_sure")),a(3),S(f(10,23,"settings.capture.dvb.satellite_delete_desc")),a(3),p("ngIf",n&&"lnb"==n.Type),a(1),p("ngIf",n&&"rotor"==n.Type),a(1),p("ngIf",n&&"switch"==n.Type),a(1),p("ngIf",n&&"scr"==n.Type)}}function
dte(t,i){if(1&t&&(l(0,"div"),_(1,ute,16,26,"p-fieldset",26),c()),2&t){const
e=i.$implicit;a(1),p("ngIf",e)}}function pte(t,i){if(1&t){const
e=I();l(0,"p-button",40),C("onClick",functi
on(){return
v(e),d(3).work.displayNewDiseqc=!1}),m(1,"translate"),c(),l(2,"p-button",41),C("onClick",function(){return
v(e),d(3).newDiseqc()}),m(3,"translate"),c()}if(2&t){const
e=d(3);x("label",f(1,3,"common.cancel")),a(2),x("label",f(3,5,"common.ok")),p("disabled",e.selectedDiseqcType.inactive)}}function
hte(t,i){if(1&t){const
e=I();l(0,"p-fieldset",28),m(1,"translate"),l(2,"p-button",37),C("onClick",function(){return
v(e),d(2).work.displayNewDiseqc=!0}),m(3,"translate"),c(),l(4,"p-dialog",30),C("visibleChange",function(s){return
v(e),d(2).work.displayNewDiseqc=s}),m(5,"translate"),l(6,"label",38),g(7),m(8,"translate"),c(),l(9,"p-listbox",39),C("ngModelChange",function(s){return
v(e),d(2).selectedDiseqcType=s})("onDblClick",function(){return
v(e),d(2).newDiseqc()}),c(),_(10,pte,4,7,"ng-template",31),c()()}if(2&t){const
e=d(2);x("legend",f(1,14,"settings.capture.dvb.satellite_heading")),p("toggleable",!0)("collapsed",!1),a(2),x("label",f(3,16,"settings.capture.dvb.newsatellite_butt
on")),a(2),q(A(22,MS)),x("header",f(5,18,"settings.capture.dvb.newsatellite_heading")),p("visible",e.work.displayNewDiseqc)("modal",!0)("draggable",!1)("resizable",!1),a(3),T("
",f(8,20,"settings.capture.dvb.newsatellite_devtype"),"
"),a(2),p("options",e.captureCardService.diseqcTypes)("ngModel",e.selectedDiseqcType)}}const
mte=function(){return{width:"25rem"}},fte=function(){return{minWidth:"80%"}};function
gte(t,i){if(1&t){const
e=I();l(0,"div",6)(1,"div",7)(2,"div",8)(3,"label",9),g(4),m(5,"translate"),c(),l(6,"input",10,11),C("ngModelChange",function(s){return
v(e),d().diseqcTree.Description=s}),c(),l(8,"small",12),g(9),m(10,"translate"),c()(),l(11,"div",8)(12,"label",13),g(13),m(14,"translate"),c(),l(15,"p-inputNumber",14),C("ngModelChange",function(s){return
v(e),d().diseqcTree.CmdRepeat=s}),c(),l(16,"small",12),k(17,"div",15),m(18,"translate"),c()(),l(19,"div",8)(20,"label",16),g(21),m(22,"translate"),c(),l(23,"p-dropdown",17,18),C("ngModelChange",function(s){return
v(e),d().
currentSubType=s})("onChange",function(){return
v(e),d().updateSubType()}),c(),l(25,"small",12),g(26),m(27,"translate"),c()(),l(28,"div",8)(29,"label",19),g(30),m(31,"translate"),c(),l(32,"input",20,21),C("ngModelChange",function(s){return
v(e),d().work.addressText=s}),c(),l(34,"small",12),g(35),m(36,"translate"),c()(),l(37,"div",8)(38,"label",22),g(39),m(40,"translate"),c(),l(41,"p-inputNumber",23),C("ngModelChange",function(s){return
v(e),d().diseqcTree.SwitchPorts=s}),c(),l(42,"small",12),k(43,"div",15),m(44,"translate"),c(),_(45,ite,4,3,"div",24),c(),_(46,dte,2,1,"div",25),_(47,hte,11,23,"p-fieldset",26),c()()}if(2&t){const
e=d();a(4),S(f(5,35,"settings.capture.diseqc.description_label")),a(2),p("ngModel",e.diseqcTree.Description),a(3),T("
",f(10,37,"settings.capture.diseqc.description_desc"),"
"),a(4),S(f(14,39,"settings.capture.diseqc.cmdrepeat_label")),a(2),p("ngModel",e.diseqcTree.CmdRepeat)("showButtons",!0)("min",0)("max",15)("step",1),a(2),p("innerHTML",f(18,41,"settings.
capture.diseqc.cmdrepeat_desc"),Bt),a(2),q(A(55,mte)),a(2),S(f(22,43,"settings.capture.diseqc.switch.type_label")),a(2),q(A(56,fte)),p("options",e.switchSubTypes)("ngModel",e.currentSubType)("editable",!1)("maxlength",0),a(3),T("
",f(27,45,"settings.capture.diseqc.switch.type_desc"),"
"),a(4),S(f(31,47,"settings.capture.diseqc.address_label")),a(2),p("ngModel",e.work.addressText)("disabled",!e.work.enableAddrAndPorts),a(3),T("
",f(36,49,"settings.capture.diseqc.address_desc"),"
"),a(4),T("
",f(40,51,"settings.capture.diseqc.switchports_label"),"
"),a(2),p("ngModel",e.diseqcTree.SwitchPorts)("showButtons",!0)("min",0)("max",255)("step",1)("disabled",!e.work.enableAddrAndPorts),a(2),p("innerHTML",f(44,53,"settings.capture.diseqc.switchports_desc"),Bt),a(2),p("ngIf",e.diseqcSubTreeCount>e.diseqcTree.SwitchPorts),a(1),p("ngForOf",e.diseqcSubTree),a(1),p("ngIf",e.diseqcSubTreeCount<e.diseqcTree.SwitchPorts)}}let
wg=(()=>{class t{constructor(e,n){this.captureCardService=e,this.translate=n
,this.diseqcSubComponent=[],this.baseEvent=new
H,this.switchSubTypes=[{Name:"settings.capture.diseqc.switch.tone",SubType:"tone"},{Name:"settings.capture.diseqc.switch.voltage",SubType:"voltage"},{Name:"settings.capture.diseqc.switch.mini_diseqc",SubType:"mini_diseqc"},{Name:"settings.capture.diseqc.switch.diseqc",SubType:"diseqc"},{Name:"settings.capture.diseqc.switch.diseqc_uncom",SubType:"diseqc_uncom"},{Name:"settings.capture.diseqc.switch.legacy_sw21",SubType:"legacy_sw21"},{Name:"settings.capture.diseqc.switch.legacy_sw42",SubType:"legacy_sw42"},{Name:"settings.capture.diseqc.switch.legacy_sw64",SubType:"legacy_sw64"}],this.diseqcSubTree=[],this.diseqcSubTreeCount=0,this.work={addressText:"",displayNewDiseqc:!1,enableAddrAndPorts:!1},this.displayDeleteThis=[],this.selectedDiseqcType={description:"",type:"",inactive:!0},this.setupDone=!1,this.switchSubTypes.forEach(s=>n.get(s.Name).subscribe(r=>s.Name=r))}ngOnInit(){if(this.diseqcTree.DiSEqCId?this.work.addressText="0x"+this.di
seqcTree.Address.toString(16):(this.diseqcTree.Address=16,this.work.addressText="0x10",this.diseqcTree.SwitchPorts=2,this.diseqcTree.SubType="tone",this.diseqcTree.CmdRepeat=1),this.diseqcTree.SubType){let
e=this.switchSubTypes.find(n=>n.SubType==this.diseqcTree.SubType);e&&(this.currentSubType=e)}this.updateSubType(),this.displayDeleteThis=[],this.diseqcTreeList.DiseqcTreeList.DiseqcTrees.forEach(e=>{e.ParentId==this.diseqcTree.DiSEqCId&&(this.diseqcSubTree.push(e),this.displayDeleteThis.push(!1),this.diseqcSubTreeCount++)})}ngAfterViewInit(){this.baseEvent.emit(this),this.currentForm.valueChanges.subscribe(n=>{this.setupDone&&this.currentForm.dirty&&this.dvbComponent.currentForm.form.markAsDirty()}),new
Je(n=>{setTimeout(()=>{n.next(1),n.complete()},100)}).subscribe(n=>{this.setupDone=!0,this.diseqcTree.DiSEqCId?this.currentForm.form.markAsPristine():(this.currentForm.form.markAsDirty(),this.dvbComponent.currentForm.form.markAsDirty())})}newDiseqc(){this.work.displayNewDiseqc=!1,t
his.diseqcSubTree.push({Type:this.selectedDiseqcType.type,Description:this.selectedDiseqcType.description}),this.displayDeleteThis.push(!1),this.diseqcSubTreeCount++}setDiseqcObject(e){this.diseqcSubComponent.findIndex(s=>s===e)<0&&this.diseqcSubComponent.push(e),console.log("setDiseqcObject",this.diseqcSubComponent.length)}deleteDiseqc(e){this.displayDeleteThis[e]=!1,this.dvbComponent.work.errorCount=0,console.log("Delete",e),null!=this.diseqcSubTree[e]&&(this.diseqcSubTree[e].DiSEqCId&&this.captureCardService.DeleteDiseqcTree(this.diseqcSubTree[e].DiSEqCId).subscribe({next:n=>{n.bool||(console.log("DeleteDiseqcTree",n),this.dvbComponent.work.errorCount++)},error:n=>{console.log("DeleteDiseqcTree",n),this.dvbComponent.work.errorCount++}}),0==this.dvbComponent.work.errorCount&&(this.diseqcSubTree[e]=null,this.diseqcSubTreeCount--))}updateSubType(){switch(this.diseqcTree.SubType=this.currentSubType.SubType,this.diseqcTree.SubType){case"tone":case"voltage":case"mini_diseqc":case"legac
y_sw21":case"legacy_sw42":this.work.addressText="0x10",this.diseqcTree.SwitchPorts=2,this.work.enableAddrAndPorts=!1;break;case"legacy_sw64":this.work.addressText="0x10",this.diseqcTree.SwitchPorts=3,this.work.enableAddrAndPorts=!1;break;case"diseqc_uncom":case"diseqc":this.work.enableAddrAndPorts=!0}}saveForm(e,n){this.diseqcTree.ParentId=e,this.diseqcTree.Address=Number.parseInt(this.work.addressText),this.diseqcTree.DiSEqCId?(this.captureCardService.UpdateDiseqcTree(this.diseqcTree).subscribe(n),this.diseqcSubComponent.forEach(s=>{s&&s.saveForm(this.diseqcTree.DiSEqCId,{error:r=>{n.error(r)}})})):this.captureCardService.AddDiseqcTree(this.diseqcTree).subscribe({next:s=>{s.int&&s.int>0?(this.diseqcTree.DiSEqCId=s.int,n.next&&n.next(s),this.diseqcSubComponent.forEach(r=>{r&&r.saveForm(this.diseqcTree.DiSEqCId,{next:o=>{},error:o=>{n.error(o)}})})):(console.log("UpdateDiseqcTree",s),n.error(s))},error:s=>{console.log("UpdateDiseqcTree",s),n.error(s)}})}}return
t.\u0275fac=function(e
){return
new(e||t)(D(Gt),D(Oe))},t.\u0275cmp=z({type:t,selectors:[["app-switch"]],viewQuery:function(e,n){if(1&e&&W(ete,5),2&e){let
s;V(s=B())&&(n.currentForm=s.first)}},inputs:{diseqcTree:"diseqcTree",diseqcTreeList:"diseqcTreeList",dvbComponent:"dvbComponent"},outputs:{baseEvent:"baseEvent"},decls:6,vars:0,consts:[["name","switchform",1,"ml-3","mr-3"],["switchform","ngForm"],[1,"m-5"],["pTemplate","title"],["pTemplate","subtitle"],["pTemplate","content"],[1,"grid"],[1,"mb-4","w-full"],[1,"form-group","field"],["for","Description",1,"label","block"],["pInputText","","id","ip","name","Description",1,"mb-2","form-control","w-full",3,"ngModel","ngModelChange"],["Description","ngModel"],[1,"block"],["for","CmdRepeat",1,"label","block"],["name","CmdRepeat","id","CmdRepeat",3,"ngModel","showButtons","min","max","step","ngModelChange"],[3,"innerHTML"],["for","SubType",1,"label","block"],["optionLabel","Name","name","SubType",3,"options","ngModel","editable","maxlength","ngModelChange","on
Change"],["SubType","ngModel"],["for","Address",1,"label","block"],["pInputText","","id","Address","name","Address",1,"mb-2","form-control","w-full",3,"ngModel","disabled","ngModelChange"],["Address","ngModel"],["for","SwitchPorts",1,"label","block"],["name","SwitchPorts","id","SwitchPorts",3,"ngModel","showButtons","min","max","step","disabled","ngModelChange"],[4,"ngIf"],[4,"ngFor","ngForOf"],["class","mb-4
w-full",3,"legend","toggleable","collapsed",4,"ngIf"],[1,"p-error","block"],[1,"mb-4","w-full",3,"legend","toggleable","collapsed"],["styleClass","p-button-warning","label","Delete
Satellite Devices","icon","pi
pi-trash",3,"disabled","onClick",4,"ngIf"],[3,"header","visible","modal","draggable","resizable","visibleChange"],["pTemplate","footer"],[3,"diseqcTree","diseqcTreeList","dvbComponent","baseEvent",4,"ngIf"],["styleClass","p-button-warning","label","Delete
Satellite Devices","icon","pi
pi-trash",3,"disabled","onClick"],["icon","pi
pi-times-circle","styleClass","p-button-p
lain",3,"label","click"],["icon","pi
pi-check-circle","styleClass","p-button-plain",3,"label","click"],[3,"diseqcTree","diseqcTreeList","dvbComponent","baseEvent"],["icon","pi
pi-plus-circle","styleClass","p-button-plain",3,"label","onClick"],["for","disenqcTypes",1,"label","block"],["optionLabel","description","name","disenqcTypes","optionDisabled","inactive",3,"options","ngModel","ngModelChange","onDblClick"],["icon","pi
pi-times-circle","styleClass","p-button-plain",3,"label","onClick"],["icon","pi
pi-check-circle","styleClass","p-button-plain",3,"label","disabled","onClick"]],template:function(e,n){1&e&&(l(0,"form",0,1)(2,"p-card",2),_(3,tte,2,3,"ng-template",3),_(4,nte,0,0,"ng-template",4),_(5,gte,48,57,"ng-template",5),c()())},directives:[ze,Ue,He,Ne,ne,Ye,Te,_e,pt,Ot,_n,Q,at,Ui,ve,bn,kd,Al,t,Pl,os],pipes:[ce],styles:[""]}),t})();const
_te=["externalform"],bte=["top"];function
vte(t,i){1&t&&(g(0),m(1,"translate")),2&t&&T("
",f(1,1,"settings.capture.external.title")," ")}functi
on Cte(t,i){}function yte(t,i){if(1&t){const
e=I();l(0,"div",8)(1,"div",9)(2,"div",10)(3,"label",11),g(4),m(5,"translate"),c(),l(6,"input",12,13),C("ngModelChange",function(s){return
v(e),d().card.VideoDevice=s}),c(),l(8,"small",14),g(9),m(10,"translate"),c()(),l(11,"div",10)(12,"label",15),g(13),m(14,"translate"),c(),l(15,"p-inputNumber",16),C("ngModelChange",function(s){return
v(e),d().card.ChannelTimeout=s}),c(),l(16,"small",14),g(17),m(18,"translate"),c()()()()}if(2&t){const
e=d();a(4),S(f(5,10,"settings.capture.external.command_label")),a(2),p("ngModel",e.card.VideoDevice),a(3),T("
",f(10,12,"settings.capture.external.command_desc"),"
"),a(4),S(f(14,14,"settings.capture.tunetimeout_label")),a(2),p("ngModel",e.card.ChannelTimeout)("showButtons",!0)("min",1750)("max",65e3)("step",250),a(2),T("
",f(18,16,"settings.capture.tunetimeout_desc")," ")}}function
wte(t,i){1&t&&(k(0,"p-message",22),m(1,"translate")),2&t&&x("text",f(1,1,"common.savesuccess"))}function
Tte(t,i){1&t&&(k(0,"p-
message",23),m(1,"translate")),2&t&&x("text",f(1,1,"common.networkfail"))}function
Ste(t,i){if(1&t){const
e=I();l(0,"div",17)(1,"div",18),_(2,wte,2,3,"p-message",19),_(3,Tte,2,3,"p-message",20),c(),l(4,"p-button",21),C("onClick",function(){v(e);const
s=d(),r=F(1);return
s.saveForm(),r.form.markAsPristine()}),m(5,"translate"),c()()}if(2&t){const
e=d(),n=F(1);a(2),p("ngIf",e.work.successCount>0&&0==e.work.errorCount&&!n.dirty),a(1),p("ngIf",e.work.errorCount>0),a(1),x("label",f(5,4,"common.save")),p("disabled",!n.dirty||!e.card.VideoDevice||e.setupService.schedulingEnabled)}}let
xte=(()=>{class
t{constructor(e,n){this.captureCardService=e,this.setupService=n,this.work={successCount:0,errorCount:0},this.saveObserver={next:s=>{this.card.CardId&&s.bool?this.work.successCount++:!this.card.CardId&&s.int?(this.work.successCount++,this.card.CardId=s.int):(this.work.errorCount++,this.currentForm.form.markAsDirty())},error:s=>{console.error(s),this.work.errorCount++,this.currentForm.form.markA
sDirty()}}}ngOnInit(){}ngAfterViewInit(){this.setupService.setCurrentForm(this.currentForm),this.topElement.nativeElement.scrollIntoView({behavior:"smooth",block:"start"})}saveForm(){this.work.successCount=0,this.work.errorCount=0,this.card.CardId?this.cardList.CaptureCardList.CaptureCards.forEach(e=>{(e.CardId==this.card.CardId||e.ParentId==this.card.CardId)&&(this.captureCardService.UpdateCaptureCard(e.CardId,"videodevice",this.card.VideoDevice).subscribe(this.saveObserver),this.captureCardService.UpdateCaptureCard(e.CardId,"channel_timeout",String(this.card.ChannelTimeout)).subscribe(this.saveObserver))}):this.captureCardService.AddCaptureCard(this.card).subscribe(this.saveObserver)}}return
t.\u0275fac=function(e){return
new(e||t)(D(Gt),D(Me))},t.\u0275cmp=z({type:t,selectors:[["app-external"]],viewQuery:function(e,n){if(1&e&&(W(_te,5),W(bte,5)),2&e){let
s;V(s=B())&&(n.currentForm=s.first),V(s=B())&&(n.topElement=s.first)}},inputs:{card:"card",cardList:"cardList"},decls:9,vars:0,
consts:[["name","externalform",1,"ml-3","mr-3"],["externalform","ngForm"],["top",""],[1,"m-5"],["pTemplate","title"],["pTemplate","subtitle"],["pTemplate","content"],["pTemplate","footer"],[1,"grid"],[1,"mb-4","w-full"],[1,"form-group","field"],["for","VideoDevice",1,"label","block"],["pInputText","","id","VideoDevice","name","VideoDevice",1,"mb-2","form-control","w-full",3,"ngModel","ngModelChange"],["VideoDevice","ngModel"],[1,"block"],["for","ChannelTimeout",1,"label","block"],["name","ChannelTimeout","id","ChannelTimeout",3,"ngModel","showButtons","min","max","step","ngModelChange"],[1,"grid","nogutter"],[1,"col-12"],["severity","success",3,"text",4,"ngIf"],["severity","error",3,"text",4,"ngIf"],["icon","pi
pi-save","iconPos","left",1,"col","pr-1",3,"label","disabled","onClick"],["severity","success",3,"text"],["severity","error",3,"text"]],template:function(e,n){1&e&&(l(0,"form",0,1),k(2,"span",null,2),l(4,"p-card",3),_(5,vte,2,3,"ng-template",4),_(6,Cte,0,0,"ng-template",5),_(
7,yte,19,18,"ng-template",6),_(8,Ste,6,6,"ng-template",7),c()())},directives:[ze,Ue,He,Ne,ne,Ye,Te,_e,pt,Q,qe,ve],pipes:[ce],styles:[""]}),t})();const
Dte=["hdhomerunform"],Mte=["top"];function
kte(t,i){1&t&&(g(0),m(1,"translate")),2&t&&T("
",f(1,1,"settings.capture.hdhomerun.title")," ")}function
Ite(t,i){}function Ete(t,i){if(1&t){const
e=I();l(0,"p-listbox",20,21),C("ngModelChange",function(s){return
v(e),d(2).selectedDevices=s})("onChange",function(){return
v(e),d(2).updateDevices()}),c()}if(2&t){const
e=d(2);p("options",e.captureDeviceList.CaptureDeviceList.CaptureDevices)("ngModel",e.selectedDevices)("checkbox",!0)("showToggleAll",!1)("multiple",!0)}}const
Rte=function(){return{width:"30rem"}};function Lte(t,i){if(1&t){const
e=I();l(0,"div",8)(1,"div",9)(2,"div",10)(3,"label",11),g(4),m(5,"translate"),c(),l(6,"div"),_(7,Ete,2,5,"p-listbox",12),l(8,"small",13),g(9),m(10,"translate"),c()()(),l(11,"div",10)(12,"label",14),g(13),m(14,"translate"),c(),l(15,"p-inputNumber",15),C("ng
ModelChange",function(s){return
v(e),d().card.SignalTimeout=s}),c(),l(16,"small",13),g(17),m(18,"translate"),c()(),l(19,"div",10)(20,"label",16),g(21),m(22,"translate"),c(),l(23,"p-inputNumber",17),C("ngModelChange",function(s){return
v(e),d().card.ChannelTimeout=s}),c(),l(24,"small",13),g(25),m(26,"translate"),c()(),l(27,"div",10)(28,"p-checkbox",18,19),C("ngModelChange",function(s){return
v(e),d().card.DVBEITScan=s}),m(30,"translate"),c(),l(31,"small",13),g(32),m(33,"translate"),c()()()()}if(2&t){const
e=d();a(4),S(f(5,23,"settings.capture.hdhomerun.device_label")),a(2),q(A(39,Rte)),a(1),p("ngIf",e.work.isReady),a(2),T("
",f(10,25,"settings.capture.hdhomerun.device_desc"),"
"),a(4),S(f(14,27,"settings.capture.sigtimeout_label")),a(2),p("ngModel",e.card.SignalTimeout)("showButtons",!0)("min",250)("max",6e4)("step",250),a(2),T("
",f(18,29,"settings.capture.sigtimeout_desc"),"
"),a(4),S(f(22,31,"settings.capture.tunetimeout_label")),a(2),p("ngModel",e.card.ChannelTimeout)("showButton
s",!0)("min",1750)("max",65e3)("step",250),a(2),T("
",f(26,33,"settings.capture.tunetimeout_desc"),"
"),a(3),x("label",f(30,35,"settings.capture.hdhomerun.eitscan_label")),p("ngModel",e.card.DVBEITScan)("binary",!0),a(4),T("
",f(33,37,"settings.capture.dvb.eitscan_ldesc")," ")}}function
Ote(t,i){1&t&&(k(0,"p-message",27),m(1,"translate")),2&t&&x("text",f(1,1,"common.savesuccess"))}function
Ate(t,i){1&t&&(k(0,"p-message",28),m(1,"translate")),2&t&&x("text",f(1,1,"common.networkfail"))}function
Pte(t,i){if(1&t){const
e=I();l(0,"div",22)(1,"div",23),_(2,Ote,2,3,"p-message",24),_(3,Ate,2,3,"p-message",25),c(),l(4,"p-button",26),C("onClick",function(){v(e);const
s=d(),r=F(1);return
s.saveForm(),r.form.markAsPristine()}),m(5,"translate"),c()()}if(2&t){const
e=d(),n=F(1);a(2),p("ngIf",e.work.successCount>0&&0==e.work.errorCount&&!n.dirty),a(1),p("ngIf",e.work.errorCount>0),a(1),x("label",f(5,4,"common.save")),p("disabled",!n.dirty||!e.card.VideoDevice||e.setupService.schedulingEnabled)}}le
t Fte=(()=>{class
t{constructor(e,n){this.captureCardService=e,this.setupService=n,this.work={isReady:!1,successCount:0,errorCount:0},this.captureDeviceList={CaptureDeviceList:{CaptureDevices:[]}},this.selectedDevices=[],this.saveObserver={next:s=>{this.card.CardId&&s.bool?this.work.successCount++:!this.card.CardId&&s.int?(this.work.successCount++,this.card.CardId=s.int):(this.work.errorCount++,this.currentForm.form.markAsDirty())},error:s=>{console.error(s),this.work.errorCount++,this.currentForm.form.markAsDirty()}}}ngOnInit(){this.captureCardService.GetCaptureDeviceList("HDHOMERUN").subscribe({next:e=>{this.captureDeviceList=e,this.setupDevices()},error:e=>{console.log("GetCaptureDeviceList",e),this.work.errorCount++}})}ngAfterViewInit(){this.setupService.setCurrentForm(this.currentForm),this.topElement.nativeElement.scrollIntoView({behavior:"smooth",block:"start"})}setupDevices(){this.card.VideoDevice&&this.card.VideoDevice.split(",").forEach(n=>{const
s=this.captureDeviceList.C
aptureDeviceList.CaptureDevices.find(r=>n==r.VideoDevice.split("
")[0]);s&&this.selectedDevices.push(s)}),this.work.isReady=!0}updateDevices(){let
e="",n=[];this.selectedDevices.forEach(s=>{n.push(s.VideoDevice.split("
")[0]),this.card.SignalTimeout=s.SignalTimeout,this.card.ChannelTimeout=s.ChannelTimeout}),n.sort(),console.log(n),n.forEach(s=>{e&&(e+=","),e+=s}),this.card.VideoDevice=e}saveForm(){console.log("save
form
clicked"),this.work.successCount=0,this.work.errorCount=0,this.card.CardId?this.cardList.CaptureCardList.CaptureCards.forEach(e=>{(e.CardId==this.card.CardId||e.ParentId==this.card.CardId)&&(this.captureCardService.UpdateCaptureCard(e.CardId,"videodevice",this.card.VideoDevice).subscribe(this.saveObserver),this.captureCardService.UpdateCaptureCard(e.CardId,"signal_timeout",String(this.card.SignalTimeout)).subscribe(this.saveObserver),this.captureCardService.UpdateCaptureCard(e.CardId,"channel_timeout",String(this.card.ChannelTimeout)).subscribe(this.saveObserver),th
is.captureCardService.UpdateCaptureCard(e.CardId,"dvb_eitscan",String(this.card.DVBEITScan?"1":"0")).subscribe(this.saveObserver))}):this.captureCardService.AddCaptureCard(this.card).subscribe(this.saveObserver)}}return
t.\u0275fac=function(e){return
new(e||t)(D(Gt),D(Me))},t.\u0275cmp=z({type:t,selectors:[["app-hdhomerun"]],viewQuery:function(e,n){if(1&e&&(W(Dte,5),W(Mte,5)),2&e){let
s;V(s=B())&&(n.currentForm=s.first),V(s=B())&&(n.topElement=s.first)}},inputs:{card:"card",cardList:"cardList"},decls:9,vars:0,consts:[["name","hdhomerunform",1,"ml-3","mr-3"],["hdhomerunform","ngForm"],["top",""],[1,"m-5"],["pTemplate","title"],["pTemplate","subtitle"],["pTemplate","content"],["pTemplate","footer"],[1,"grid"],[1,"mb-4","w-full"],[1,"form-group","field"],["for","VideoDevice",1,"label","block"],["optionLabel","VideoDevice","name","VideoDevice",3,"options","ngModel","checkbox","showToggleAll","multiple","ngModelChange","onChange",4,"ngIf"],[1,"block"],["for","SignalTimeout",1,"label","bl
ock"],["name","SignalTimeout","id","SignalTimeout",3,"ngModel","showButtons","min","max","step","ngModelChange"],["for","ChannelTimeout",1,"label","block"],["name","ChannelTimeout","id","ChannelTimeout",3,"ngModel","showButtons","min","max","step","ngModelChange"],["inputId","DVBEITScan","name","DVBEITScan",1,"label","mb-2","w-full",3,"ngModel","binary","label","ngModelChange"],["DVBEITScan","ngModel"],["optionLabel","VideoDevice","name","VideoDevice",3,"options","ngModel","checkbox","showToggleAll","multiple","ngModelChange","onChange"],["VideoDevice","ngModel"],[1,"grid","nogutter"],[1,"col-12"],["severity","success",3,"text",4,"ngIf"],["severity","error",3,"text",4,"ngIf"],["icon","pi
pi-save","iconPos","left",1,"col","pr-1",3,"label","disabled","onClick"],["severity","success",3,"text"],["severity","error",3,"text"]],template:function(e,n){1&e&&(l(0,"form",0,1),k(2,"span",null,2),l(4,"p-card",3),_(5,kte,2,3,"ng-template",4),_(6,Ite,0,0,"ng-template",5),_(7,Lte,34,40,"ng-template
",6),_(8,Pte,6,6,"ng-template",7),c()())},directives:[ze,Ue,He,Ne,ne,Q,os,Te,_e,pt,sn,qe,ve],pipes:[ce],styles:[""]}),t})();const
Nte=["iptvform"],Vte=["top"];function
Bte(t,i){1&t&&(g(0),m(1,"translate")),2&t&&T("
",f(1,1,"settings.capture.iptv.title")," ")}function
Hte(t,i){}function qte(t,i){if(1&t){const
e=I();l(0,"div",8)(1,"div",9)(2,"div",10)(3,"label",11),g(4),m(5,"translate"),c(),l(6,"input",12,13),C("ngModelChange",function(s){return
v(e),d().card.VideoDevice=s}),c(),l(8,"small",14),g(9),m(10,"translate"),c()(),l(11,"div",10)(12,"label",15),g(13),m(14,"translate"),c(),l(15,"p-inputNumber",16),C("ngModelChange",function(s){return
v(e),d().card.ChannelTimeout=s}),c(),l(16,"small",14),g(17),m(18,"translate"),c()()()()}if(2&t){const
e=d();a(4),S(f(5,10,"settings.capture.iptv.url_label")),a(2),p("ngModel",e.card.VideoDevice),a(3),T("
",f(10,12,"settings.capture.iptv.url_desc"),"
"),a(4),S(f(14,14,"settings.capture.tunetimeout_label")),a(2),p("ngModel",e.card.ChannelTimeout)("sh
owButtons",!0)("min",1750)("max",65e3)("step",250),a(2),T("
",f(18,16,"settings.capture.tunetimeout_desc")," ")}}function
Gte(t,i){1&t&&(k(0,"p-message",22),m(1,"translate")),2&t&&x("text",f(1,1,"common.savesuccess"))}function
Ute(t,i){1&t&&(k(0,"p-message",23),m(1,"translate")),2&t&&x("text",f(1,1,"common.networkfail"))}function
zte(t,i){if(1&t){const
e=I();l(0,"div",17)(1,"div",18),_(2,Gte,2,3,"p-message",19),_(3,Ute,2,3,"p-message",20),c(),l(4,"p-button",21),C("onClick",function(){v(e);const
s=d(),r=F(1);return
s.saveForm(),r.form.markAsPristine()}),m(5,"translate"),c()()}if(2&t){const
e=d(),n=F(1);a(2),p("ngIf",e.work.successCount>0&&0==e.work.errorCount&&!n.dirty),a(1),p("ngIf",e.work.errorCount>0),a(1),x("label",f(5,4,"common.save")),p("disabled",!n.dirty||!e.card.VideoDevice||e.setupService.schedulingEnabled)}}let
jte=(()=>{class
t{constructor(e,n){this.captureCardService=e,this.setupService=n,this.work={successCount:0,errorCount:0},this.saveObserver={next:s=>{this.card.CardI
d&&s.bool?this.work.successCount++:!this.card.CardId&&s.int?(this.work.successCount++,this.card.CardId=s.int):(this.work.errorCount++,this.currentForm.form.markAsDirty())},error:s=>{console.error(s),this.work.errorCount++,this.currentForm.form.markAsDirty()}}}ngOnInit(){}ngAfterViewInit(){this.setupService.setCurrentForm(this.currentForm),this.topElement.nativeElement.scrollIntoView({behavior:"smooth",block:"start"}),this.card.CardId||new
Je(n=>{setTimeout(()=>{n.next(1),n.complete()},100)}).subscribe(n=>{this.currentForm.form.markAsDirty()})}saveForm(){console.log("save
form
clicked"),this.work.successCount=0,this.work.errorCount=0,this.card.CardId?this.cardList.CaptureCardList.CaptureCards.forEach(e=>{(e.CardId==this.card.CardId||e.ParentId==this.card.CardId)&&(this.captureCardService.UpdateCaptureCard(e.CardId,"videodevice",this.card.VideoDevice).subscribe(this.saveObserver),this.captureCardService.UpdateCaptureCard(e.CardId,"channel_timeout",String(this.card.ChannelTimeout)).sub
scribe(this.saveObserver))}):this.captureCardService.AddCaptureCard(this.card).subscribe(this.saveObserver)}}return
t.\u0275fac=function(e){return
new(e||t)(D(Gt),D(Me))},t.\u0275cmp=z({type:t,selectors:[["app-iptv"]],viewQuery:function(e,n){if(1&e&&(W(Nte,5),W(Vte,5)),2&e){let
s;V(s=B())&&(n.currentForm=s.first),V(s=B())&&(n.topElement=s.first)}},inputs:{card:"card",cardList:"cardList"},decls:9,vars:0,consts:[["name","iptvform",1,"ml-3","mr-3"],["iptvform","ngForm"],["top",""],[1,"m-5"],["pTemplate","title"],["pTemplate","subtitle"],["pTemplate","content"],["pTemplate","footer"],[1,"grid"],[1,"mb-4","w-full"],[1,"form-group","field"],["for","VideoDevice",1,"label","block"],["pInputText","","id","VideoDevice","name","VideoDevice",1,"mb-2","form-control","w-full",3,"ngModel","ngModelChange"],["VideoDevice","ngModel"],[1,"block"],["for","ChannelTimeout",1,"label","block"],["name","ChannelTimeout","id","ChannelTimeout",3,"ngModel","showButtons","min","max","step","ngModelChange"],[1,"g
rid","nogutter"],[1,"col-12"],["severity","success",3,"text",4,"ngIf"],["severity","error",3,"text",4,"ngIf"],["icon","pi
pi-save","iconPos","left",1,"col","pr-1",3,"label","disabled","onClick"],["severity","success",3,"text"],["severity","error",3,"text"]],template:function(e,n){1&e&&(l(0,"form",0,1),k(2,"span",null,2),l(4,"p-card",3),_(5,Bte,2,3,"ng-template",4),_(6,Hte,0,0,"ng-template",5),_(7,qte,19,18,"ng-template",6),_(8,zte,6,6,"ng-template",7),c()())},directives:[ze,Ue,He,Ne,ne,Ye,Te,_e,pt,Q,qe,ve],pipes:[ce],styles:[""]}),t})();const
$te=["importform"],Wte=["top"];function
Kte(t,i){1&t&&(g(0),m(1,"translate")),2&t&&T("
",f(1,1,"settings.capture.import.title")," ")}function
Qte(t,i){}function Jte(t,i){if(1&t){const
e=I();l(0,"div",8)(1,"div",9)(2,"div",10)(3,"label",11),g(4),m(5,"translate"),c(),l(6,"input",12,13),C("ngModelChange",function(s){return
v(e),d().card.VideoDevice=s}),c(),l(8,"small",14),g(9),m(10,"translate"),c()()()()}if(2&t){const
e=d();a(4),S(f(5,3,"settings.
capture.import.file_label")),a(2),p("ngModel",e.card.VideoDevice),a(3),T("
",f(10,5,"settings.capture.import.file_desc")," ")}}function
Yte(t,i){1&t&&(k(0,"p-message",20),m(1,"translate")),2&t&&x("text",f(1,1,"common.savesuccess"))}function
Zte(t,i){1&t&&(k(0,"p-message",21),m(1,"translate")),2&t&&x("text",f(1,1,"common.networkfail"))}function
Xte(t,i){if(1&t){const
e=I();l(0,"div",15)(1,"div",16),_(2,Yte,2,3,"p-message",17),_(3,Zte,2,3,"p-message",18),c(),l(4,"p-button",19),C("onClick",function(){v(e);const
s=d(),r=F(1);return
s.saveForm(),r.form.markAsPristine()}),m(5,"translate"),c()()}if(2&t){const
e=d(),n=F(1);a(2),p("ngIf",e.work.successCount>0&&0==e.work.errorCount&&!n.dirty),a(1),p("ngIf",e.work.errorCount>0),a(1),x("label",f(5,4,"common.save")),p("disabled",!n.dirty||!e.card.VideoDevice||e.setupService.schedulingEnabled)}}let
ene=(()=>{class
t{constructor(e,n){this.captureCardService=e,this.setupService=n,this.work={successCount:0,errorCount:0},this.saveObserver={next:s=>{t
his.card.CardId&&s.bool?this.work.successCount++:!this.card.CardId&&s.int?(this.work.successCount++,this.card.CardId=s.int):(this.work.errorCount++,this.currentForm.form.markAsDirty())},error:s=>{console.error(s),this.work.errorCount++,this.currentForm.form.markAsDirty()}}}ngOnInit(){}ngAfterViewInit(){this.setupService.setCurrentForm(this.currentForm),this.topElement.nativeElement.scrollIntoView({behavior:"smooth",block:"start"})}saveForm(){console.log("save
form
clicked"),this.work.successCount=0,this.work.errorCount=0,this.card.CardId?this.cardList.CaptureCardList.CaptureCards.forEach(e=>{(e.CardId==this.card.CardId||e.ParentId==this.card.CardId)&&this.captureCardService.UpdateCaptureCard(e.CardId,"videodevice",this.card.VideoDevice).subscribe(this.saveObserver)}):this.captureCardService.AddCaptureCard(this.card).subscribe(this.saveObserver)}}return
t.\u0275fac=function(e){return
new(e||t)(D(Gt),D(Me))},t.\u0275cmp=z({type:t,selectors:[["app-import"]],viewQuery:function(e,n){if(1
&e&&(W($te,5),W(Wte,5)),2&e){let
s;V(s=B())&&(n.currentForm=s.first),V(s=B())&&(n.topElement=s.first)}},inputs:{card:"card",cardList:"cardList"},decls:9,vars:0,consts:[["name","importform",1,"ml-3","mr-3"],["importform","ngForm"],["top",""],[1,"m-5"],["pTemplate","title"],["pTemplate","subtitle"],["pTemplate","content"],["pTemplate","footer"],[1,"grid"],[1,"mb-4","w-full"],[1,"form-group","field"],["for","VideoDevice",1,"label","block"],["pInputText","","id","VideoDevice","name","VideoDevice",1,"mb-2","form-control","w-full",3,"ngModel","ngModelChange"],["VideoDevice","ngModel"],[1,"block"],[1,"grid","nogutter"],[1,"col-12"],["severity","success",3,"text",4,"ngIf"],["severity","error",3,"text",4,"ngIf"],["icon","pi
pi-save","iconPos","left",1,"col","pr-1",3,"label","disabled","onClick"],["severity","success",3,"text"],["severity","error",3,"text"]],template:function(e,n){1&e&&(l(0,"form",0,1),k(2,"span",null,2),l(4,"p-card",3),_(5,Kte,2,3,"ng-template",4),_(6,Qte,0,0,"ng-template",5
),_(7,Jte,11,7,"ng-template",6),_(8,Xte,6,6,"ng-template",7),c()())},directives:[ze,Ue,He,Ne,ne,Ye,Te,_e,Q,qe,ve],pipes:[ce],styles:[""]}),t})();const
tne=["demoform"],nne=["top"];function
ine(t,i){1&t&&(g(0),m(1,"translate")),2&t&&T("
",f(1,1,"settings.capture.demo.title")," ")}function
sne(t,i){}function rne(t,i){if(1&t){const
e=I();l(0,"div",8)(1,"div",9)(2,"div",10)(3,"label",11),g(4),m(5,"translate"),c(),l(6,"input",12,13),C("ngModelChange",function(s){return
v(e),d().card.VideoDevice=s}),c(),l(8,"small",14),g(9),m(10,"translate"),c()()()()}if(2&t){const
e=d();a(4),S(f(5,3,"settings.capture.import.file_label")),a(2),p("ngModel",e.card.VideoDevice),a(3),T("
",f(10,5,"settings.capture.demo.file_desc")," ")}}function
one(t,i){1&t&&(k(0,"p-message",20),m(1,"translate")),2&t&&x("text",f(1,1,"common.savesuccess"))}function
ane(t,i){1&t&&(k(0,"p-message",21),m(1,"translate")),2&t&&x("text",f(1,1,"common.networkfail"))}function
lne(t,i){if(1&t){const e=I();l(0,"div",15)(1,"div",16),_(2
,one,2,3,"p-message",17),_(3,ane,2,3,"p-message",18),c(),l(4,"p-button",19),C("onClick",function(){v(e);const
s=d(),r=F(1);return
s.saveForm(),r.form.markAsPristine()}),m(5,"translate"),c()()}if(2&t){const
e=d(),n=F(1);a(2),p("ngIf",e.work.successCount>0&&0==e.work.errorCount&&!n.dirty),a(1),p("ngIf",e.work.errorCount>0),a(1),x("label",f(5,4,"common.save")),p("disabled",!n.dirty||!e.card.VideoDevice||e.setupService.schedulingEnabled)}}let
cne=(()=>{class
t{constructor(e,n){this.captureCardService=e,this.setupService=n,this.work={successCount:0,errorCount:0},this.saveObserver={next:s=>{this.card.CardId&&s.bool?this.work.successCount++:!this.card.CardId&&s.int?(this.work.successCount++,this.card.CardId=s.int):(this.work.errorCount++,this.currentForm.form.markAsDirty())},error:s=>{console.error(s),this.work.errorCount++,this.currentForm.form.markAsDirty()}}}ngOnInit(){}ngAfterViewInit(){this.setupService.setCurrentForm(this.currentForm),this.topElement.nativeElement.scrollIntoView({beh
avior:"smooth",block:"start"})}saveForm(){console.log("save form
clicked"),this.work.successCount=0,this.work.errorCount=0,this.card.CardId?this.cardList.CaptureCardList.CaptureCards.forEach(e=>{(e.CardId==this.card.CardId||e.ParentId==this.card.CardId)&&this.captureCardService.UpdateCaptureCard(e.CardId,"videodevice",this.card.VideoDevice).subscribe(this.saveObserver)}):this.captureCardService.AddCaptureCard(this.card).subscribe(this.saveObserver)}}return
t.\u0275fac=function(e){return
new(e||t)(D(Gt),D(Me))},t.\u0275cmp=z({type:t,selectors:[["app-demo"]],viewQuery:function(e,n){if(1&e&&(W(tne,5),W(nne,5)),2&e){let
s;V(s=B())&&(n.currentForm=s.first),V(s=B())&&(n.topElement=s.first)}},inputs:{card:"card",cardList:"cardList"},decls:9,vars:0,consts:[["name","demoform",1,"ml-3","mr-3"],["demoform","ngForm"],["top",""],[1,"m-5"],["pTemplate","title"],["pTemplate","subtitle"],["pTemplate","content"],["pTemplate","footer"],[1,"grid"],[1,"mb-4","w-full"],[1,"form-group","field"],["for","V
ideoDevice",1,"label","block"],["pInputText","","id","VideoDevice","name","VideoDevice",1,"mb-2","form-control","w-full",3,"ngModel","ngModelChange"],["VideoDevice","ngModel"],[1,"block"],[1,"grid","nogutter"],[1,"col-12"],["severity","success",3,"text",4,"ngIf"],["severity","error",3,"text",4,"ngIf"],["icon","pi
pi-save","iconPos","left",1,"col","pr-1",3,"label","disabled","onClick"],["severity","success",3,"text"],["severity","error",3,"text"]],template:function(e,n){1&e&&(l(0,"form",0,1),k(2,"span",null,2),l(4,"p-card",3),_(5,ine,2,3,"ng-template",4),_(6,sne,0,0,"ng-template",5),_(7,rne,11,7,"ng-template",6),_(8,lne,6,6,"ng-template",7),c()())},directives:[ze,Ue,He,Ne,ne,Ye,Te,_e,Q,qe,ve],pipes:[ce],styles:[""]}),t})();const
une=["connform"];function
dne(t,i){1&t&&(g(0),m(1,"translate")),2&t&&T("
",f(1,1,"settings.iconnection.title")," ")}function
pne(t,i){}function hne(t,i){if(1&t){const
e=I();l(0,"div",12)(1,"label",44),g(2),m(3,"translate"),c(),l(4,"p-inputNumber",45),C("ngMod
elChange",function(s){return
v(e),d(3).work.switchPort=s}),c(),l(5,"small",16),g(6),m(7,"translate"),c()()}if(2&t){const
e=d(3);a(2),S(f(3,7,"settings.iconnection.switchport_label")),a(2),p("ngModel",e.work.switchPort)("showButtons",!0)("min",1)("max",e.diseqcTree.SwitchPorts)("step",1),a(2),T("
",f(7,9,"settings.iconnection.switchport_desc")," ")}}function
mne(t,i){if(1&t){const
e=I();l(0,"div")(1,"div",12)(2,"label",46),g(3),m(4,"translate"),c(),l(5,"p-inputNumber",47),C("ngModelChange",function(s){return
v(e),d(3).work.rotorDegrees=s}),c(),k(6,"br")(7,"br"),l(8,"div",48)(9,"p-radioButton",49),C("ngModelChange",function(s){return
v(e),d(3).work.hemisphere=s}),c(),l(10,"label",50),g(11),m(12,"translate"),c()(),l(13,"div",48)(14,"p-radioButton",51),C("ngModelChange",function(s){return
v(e),d(3).work.hemisphere=s}),c(),l(15,"label",52),g(16),m(17,"translate"),c()(),l(18,"small",16),g(19),m(20,"translate"),c()()()}if(2&t){const
e=d(3);a(3),S(f(4,10,"settings.iconnection.longitude_labe
l")),a(2),p("ngModel",e.work.rotorDegrees)("min",0)("max",180)("maxFractionDigits",4),a(4),p("ngModel",e.work.hemisphere),a(2),S(f(12,12,"settings.iconnection.longitude_east")),a(3),p("ngModel",e.work.hemisphere),a(2),S(f(17,14,"settings.iconnection.longitude_west")),a(3),T("
",f(20,16,"settings.iconnection.longitude_desc")," ")}}function
fne(t,i){if(1&t){const
e=I();l(0,"div",12)(1,"label",53),g(2),m(3,"translate"),c(),l(4,"div",48)(5,"p-radioButton",54),C("ngModelChange",function(s){return
v(e),d(3).work.scrPort=s}),c(),l(6,"label",55),g(7),m(8,"translate"),c()(),l(9,"div",48)(10,"p-radioButton",56),C("ngModelChange",function(s){return
v(e),d(3).work.scrPort=s}),c(),l(11,"label",57),g(12),m(13,"translate"),c()(),l(14,"small",16),g(15),m(16,"translate"),c()()}if(2&t){const
e=d(3);a(2),S(f(3,6,"settings.iconnection.unicablepos_label")),a(3),p("ngModel",e.work.scrPort),a(2),S(f(8,8,"settings.iconnection.unicablepos_porta")),a(3),p("ngModel",e.work.scrPort),a(2),S(f(13,10,"settings.ic
onnection.unicablepos_portb")),a(3),T("
",f(16,12,"settings.iconnection.unicablepos_desc")," ")}}function
gne(t,i){1&t&&(l(0,"div",41),_(1,hne,8,11,"div",42),_(2,mne,21,18,"div",43),_(3,fne,17,14,"div",42),c()),2&t&&(p("ngSwitch",d(2).diseqcTree.Type),a(1),p("ngSwitchCase","switch"),a(1),p("ngSwitchCase","rotor"),a(1),p("ngSwitchCase","scr"))}function
_ne(t,i){if(1&t){const
e=I();l(0,"div",12)(1,"label",58),g(2),m(3,"translate"),c(),l(4,"input",59,60),C("ngModelChange",function(s){return
v(e),d(2).card.InputName=s}),c(),l(6,"small",16),g(7),m(8,"translate"),c()()}if(2&t){const
e=d(2);a(2),S(f(3,3,"settings.iconnection.delivery_label")),a(2),p("ngModel",e.card.InputName),a(3),T("
",f(8,5,"settings.iconnection.delivery_desc")," ")}}function
bne(t,i){if(1&t){const
e=I();l(0,"p-dropdown",63,60),C("ngModelChange",function(s){return
v(e),d(3).card.InputName=s}),c()}if(2&t){const
e=d(3);p("options",e.currentDevice.InputNames)("ngModel",e.card.InputName)}}function
vne(t,i){if(1&t&&(l(0,"div
",12)(1,"label",61),g(2),m(3,"translate"),c(),_(4,bne,2,2,"p-dropdown",62),l(5,"small",16),g(6),m(7,"translate"),c()()),2&t){const
e=d(2);a(2),S(f(3,3,"settings.iconnection.input_label")),a(2),p("ngIf",e.work.isReady),a(2),T("
",f(7,5,"settings.capture.inputname_desc")," ")}}function
Cne(t,i){if(1&t){const
e=I();l(0,"div",12)(1,"label",64),g(2),m(3,"translate"),c(),l(4,"input",65,66),C("ngModelChange",function(s){return
v(e),d(2).card.ExternalCommand=s}),c(),l(6,"small",16),g(7),m(8,"translate"),c()()}if(2&t){const
e=d(2);a(2),S(f(3,3,"settings.iconnection.externalcmd_label")),a(2),p("ngModel",e.card.ExternalCommand),a(3),T("
",f(8,5,"settings.iconnection.externalcmd_desc")," ")}}function
yne(t,i){if(1&t){const
e=I();l(0,"div",12)(1,"label",67),g(2),m(3,"translate"),c(),l(4,"input",68,69),C("ngModelChange",function(s){return
v(e),d(2).card.TuneChan=s}),c(),l(6,"small",16),g(7),m(8,"translate"),c()()}if(2&t){const
e=d(2);a(2),S(f(3,3,"settings.iconnection.tunechan_label")),a(2),p("ng
Model",e.card.TuneChan),a(3),T("
",f(8,5,"settings.iconnection.tunechan_desc")," ")}}const
Id=function(){return{minWidth:"400px"}};function wne(t,i){if(1&t){const
e=I();l(0,"div",12)(1,"label",70),g(2),m(3,"translate"),c(),l(4,"p-dropdown",71,72),C("ngModelChange",function(s){return
v(e),d(2).card.Quicktune=s}),c(),l(6,"small",16),g(7),m(8,"translate"),c()()}if(2&t){const
e=d(2);a(2),S(f(3,8,"settings.iconnection.quicktune_label")),a(2),q(A(12,Id)),p("options",e.quickTuneValues)("ngModel",e.card.Quicktune)("editable",!1)("maxlength",0),a(3),T("
",f(8,10,"settings.iconnection.quicktune_desc")," ")}}function
Tne(t,i){if(1&t){const
e=I();l(0,"div",12)(1,"p-checkbox",73,74),C("ngModelChange",function(s){return
v(e),d(2).card.DishnetEIT=s}),m(3,"translate"),c(),l(4,"small",16),g(5),m(6,"translate"),c()()}if(2&t){const
e=d(2);a(1),x("label",f(3,4,"settings.iconnection.dishneteit_label")),p("ngModel",e.card.DishnetEIT)("binary",!0),a(4),T("
",f(6,6,"settings.iconnection.dishneteit_desc"),"
")}}function
Sne(t,i){if(1&t&&(l(0,"p-fieldset",75),m(1,"translate"),k(2,"app-channelscan",76),c()),2&t){const
e=d(2);x("legend",f(1,7,"settings.iconnection.scan_title")),p("collapsed",!0)("toggleable",!0),a(2),p("card",e.card)("cardList",e.cardList)("iconnection",e)("videoSourceLookup",e.videoSourceLookup)}}function
xne(t,i){if(1&t){const
e=I();l(0,"p-button",77),C("click",function(){return
v(e),d(2).work.fetchChannelsDialog=!1}),m(1,"translate"),c(),l(2,"p-button",78),C("click",function(){return
v(e),d(2).fetchChannels()}),m(3,"translate"),c()}2&t&&(x("label",f(1,2,"common.no")),a(2),x("label",f(3,4,"common.yes")))}const
Dne=function(t){return{num:t}},Mne=function(){return{width:"50vw"}};function
kne(t,i){if(1&t){const
e=I();l(0,"div",8)(1,"div",9),_(2,gne,4,4,"div",10),_(3,_ne,9,7,"div",11),_(4,vne,8,7,"div",11),l(5,"div",12)(6,"label",13),g(7),m(8,"translate"),c(),l(9,"input",14,15),C("ngModelChange",function(s){return
v(e),d().card.DisplayName=s}),c(),l(11,"small",16),g(12),m(
13,"translate"),c()(),l(14,"div",12)(15,"label",17),g(16),m(17,"translate"),c(),l(18,"p-dropdown",18,19),C("ngModelChange",function(s){return
v(e),d().card.SourceId=s})("onChange",function(){return
v(e),d().fillChannelList()}),c(),l(20,"small",16),g(21),m(22,"translate"),c()(),_(23,Cne,9,7,"div",11),_(24,yne,9,7,"div",11),_(25,wne,9,13,"div",11),_(26,Tne,7,8,"div",11),_(27,Sne,3,9,"p-fieldset",20),k(28,"br")(29,"br"),l(30,"div",12)(31,"div",8)(32,"div",21)(33,"p-button",22),C("onClick",function(){return
v(e),d().work.fetchChannelsDialog=!0}),m(34,"translate"),c()(),l(35,"div",21),g(36),m(37,"translate"),c()(),l(38,"small",16),g(39),m(40,"translate"),c()(),l(41,"p-dialog",23),C("visibleChange",function(s){return
v(e),d().work.fetchChannelsDialog=s}),l(42,"p"),g(43),m(44,"translate"),c(),l(45,"p"),g(46),m(47,"translate"),c(),_(48,xne,4,6,"ng-template",7),c(),l(49,"div",12)(50,"label",24),g(51),m(52,"translate"),c(),l(53,"p-dropdown",25,26),C("ngModelChange",function(s){return
v(e),d()
.card.StartChannel=s}),c(),l(55,"small",16),g(56),m(57,"translate"),c()(),l(58,"p-fieldset",27),m(59,"translate"),l(60,"div",12)(61,"label",28),g(62),m(63,"translate"),c(),l(64,"p-inputNumber",29),C("ngModelChange",function(s){return
v(e),d().card.RecLimit=s}),c(),l(65,"small",16),g(66),m(67,"translate"),c()(),l(68,"div",12)(69,"p-checkbox",30,31),C("ngModelChange",function(s){return
v(e),d().card.SchedGroup=s}),m(71,"translate"),c(),l(72,"small",16),g(73),m(74,"translate"),c()(),l(75,"div",12)(76,"label",32),g(77),m(78,"translate"),c(),l(79,"p-inputNumber",33),C("ngModelChange",function(s){return
v(e),d().card.RecPriority=s}),c(),l(80,"small",16),g(81),m(82,"translate"),c()(),l(83,"div",12)(84,"label",34),g(85),m(86,"translate"),c(),l(87,"p-inputNumber",35),C("ngModelChange",function(s){return
v(e),d().card.SchedOrder=s}),c(),l(88,"small",16),g(89),m(90,"translate"),c()(),l(91,"div",12)(92,"label",36),g(93),m(94,"translate"),c(),l(95,"p-inputNumber",37),C("ngModelChange",function(s
){return
v(e),d().card.LiveTVOrder=s}),c(),l(96,"small",16),g(97),m(98,"translate"),c()(),l(99,"div",12)(100,"label",38),g(101),m(102,"translate"),c(),l(103,"p-dropdown",39,40),C("ngModelChange",function(s){return
v(e),d().work.inputGroupName=s}),c(),l(105,"small",16),g(106),m(107,"translate"),c()()()()()}if(2&t){const
e=d(),n=F(1);a(2),p("ngIf",e.diseqcTree),a(1),p("ngIf","DVB"==e.card.CardType),a(1),p("ngIf","DVB"!=e.card.CardType),a(3),S(f(8,80,"settings.iconnection.displayname_label")),a(2),p("ngModel",e.card.DisplayName),a(3),T("
",f(13,82,"settings.iconnection.displayname_desc"),"
"),a(4),S(f(17,84,"settings.iconnection.sourceid_label")),a(2),q(A(129,Id)),p("options",e.videoSourceList.VideoSourceList.VideoSources)("ngModel",e.card.SourceId)("editable",!1)("maxlength",0),a(3),T("
",f(22,86,"settings.iconnection.sourceid_desc"),"
"),a(2),p("ngIf",e.work.isEncoder||e.work.isUnscanable),a(1),p("ngIf",e.work.showPresetTuner),a(1),p("ngIf",!e.work.isEncoder&&!e.work.isUnscanable),a(
1),p("ngIf","DVB"==e.card.CardType),a(1),p("ngIf",!e.work.isUnscanable),a(6),x("label",f(34,88,"settings.iconnection.fetch.label")),p("disabled",!e.card.SourceId||n.dirty||1==e.work.fetchStatus||e.setupService.schedulingEnabled),a(3),T("
\xa0\xa0",Dt(37,90,e.fetchMessages[e.work.fetchStatus],U(130,Dne,e.work.fetchCount)),"
"),a(3),T(" ",f(40,93,"settings.iconnection.fetch.desc"),"
"),a(2),q(A(132,Mne)),p("visible",e.work.fetchChannelsDialog)("modal",!0)("draggable",!1)("resizable",!1),a(2),S(f(44,95,"settings.iconnection.fetch.warning")),a(3),S(f(47,97,"settings.common.ru_sure")),a(5),S(f(52,99,"settings.iconnection.startchan_label")),a(2),q(A(133,Id)),p("options",e.sourceChannels)("ngModel",e.card.StartChannel)("editable",!1),a(3),T("
",f(57,101,"settings.iconnection.startchan_desc"),"
"),a(2),x("legend",f(59,103,"settings.iconnection.interact_title")),p("toggleable",!0)("collapsed",!0),a(4),S(f(63,105,"settings.iconnection.maxrec_label")),a(2),p("ngModel",e.card.RecLimit)("showBut
tons",!0)("min",1)("max",10)("step",1),a(2),T("
",f(67,107,"settings.iconnection.maxrec_desc"),"
"),a(3),x("label",f(71,109,"settings.iconnection.schedgrp_label")),p("ngModel",e.card.SchedGroup)("binary",!0),a(4),T("
",f(74,111,"settings.iconnection.schedgrp_desc"),"
"),a(4),S(f(78,113,"settings.iconnection.recpri_label")),a(2),p("ngModel",e.card.RecPriority)("showButtons",!0)("min",-99)("max",99)("step",1),a(2),T("
",f(82,115,"settings.iconnection.recpri_desc"),"
"),a(4),S(f(86,117,"settings.iconnection.schedorder_label")),a(2),p("ngModel",e.card.SchedOrder)("showButtons",!0)("min",0)("max",99)("step",1),a(2),T("
",f(90,119,"settings.iconnection.schedorder_desc"),"
"),a(4),S(f(94,121,"settings.iconnection.liveorder_label")),a(2),p("ngModel",e.card.LiveTVOrder)("showButtons",!0)("min",0)("max",99)("step",1),a(2),T("
",f(98,123,"settings.iconnection.liveorder_desc"),"
"),a(4),S(f(102,125,"settings.iconnection.inpgroup_label")),a(2),q(A(134,Id)),p("options",e.selectGroups)("ngModel",e
.work.inputGroupName)("editable",!0),a(3),T("
",f(107,127,"settings.iconnection.inpgroup_desc")," ")}}function
Ine(t,i){1&t&&(k(0,"p-message",84),m(1,"translate")),2&t&&x("text",f(1,1,"common.savesuccess"))}function
Ene(t,i){1&t&&(k(0,"p-message",85),m(1,"translate")),2&t&&x("text",f(1,1,"common.networkfail"))}function
Rne(t,i){if(1&t){const
e=I();l(0,"div",79)(1,"div",80),_(2,Ine,2,3,"p-message",81),_(3,Ene,2,3,"p-message",82),c(),l(4,"p-button",83),C("onClick",function(){v(e);const
s=d(),r=F(1);return
s.saveForm(),r.form.markAsPristine()}),m(5,"translate"),c()()}if(2&t){const
e=d(),n=F(1);a(2),p("ngIf",e.work.successCount>0&&0==e.work.errorCount&&!n.dirty),a(1),p("ngIf",e.work.errorCount>0),a(1),x("label",f(5,4,"common.save")),p("disabled",!n.dirty||!e.card.VideoDevice||e.setupService.schedulingEnabled)}}let
kS=(()=>{class
t{constructor(e,n,s,r){this.translate=e,this.channelService=n,this.captureCardService=s,this.setupService=r,this.allChannels=[],this.sourceChannels=[],this.inpu
tGroups=[],this.selectGroups=[],this.captureDeviceList={CaptureDeviceList:{CaptureDevices:[]}},this.currentDevice={FrontendName:"Unknown",InputNames:["MPEG2TS"]},this.work={successCount:0,errorCount:0,expectedCount:0,recLimitUpd:!1,reloadGroups:!1,isEncoder:!1,isUnscanable:!1,hasTuner:!1,showPresetTuner:!1,inputGroupName:"",orgInputGroupName:"",fetchChannelsDialog:!1,fetchStatus:0,fetchCount:0,switchPort:0,rotorDegrees:0,scrPort:"",hemisphere:1,isReady:!1,startScan:!1},this.deviceFree=new
ct,this.orgInputGroupIds=[],this.fetchMessages=["","settings.iconnection.fetch.inprog","settings.iconnection.fetch.complete","settings.iconnection.fetch.failed"],this.messages={devNotExist:"settings.capture.dvb.devNotExist"},this.preEncodedTypes=["DVB","FIREWIRE","HDHOMERUN","FREEBOX","IMPORT","DEMO","ASI","CETON","VBOX","SATIP"],this.unscanableTypes=["FIREWIRE","HDPVR","IMPORT","DEMO","GO7007","MJPEG"],this.hasTunerTypes=["DVB","HDHOMERUN","FREEBOX","CETON","VBOX","SATIP"],this.quickTuneValues=[{p
rompt:"settings.iconnection.quicktune.never",value:0},{prompt:"settings.iconnection.quicktune.livetv",value:1},{prompt:"settings.iconnection.quicktune.always",value:2}],this.saveObserver={next:o=>{o.bool?(this.work.successCount++,this.work.recLimitUpd&&(this.work.successCount==this.work.expectedCount?this.captureCardService.SetInputMaxRecordings(this.card.CardId,this.card.RecLimit).subscribe(this.saveObserver):this.work.successCount==this.work.expectedCount+1&&(this.parentComponent.loadCards(!1),this.work.recLimitUpd=!1)),this.work.successCount==this.work.expectedCount&&this.work.reloadGroups&&(this.loadInputGroups(),this.work.reloadGroups=!1),this.work.successCount==this.work.expectedCount&&this.work.startScan&&this.scanComponent&&(this.work.startScan=!1,this.currentForm.form.markAsPristine(),this.scanComponent.startScan())):(console.log("saveObserver
error",o),this.work.startScan=!1,this.work.errorCount++,this.currentForm.form.markAsDirty())},error:o=>{console.log("saveObserver
er
ror",o),this.work.startScan=!1,this.work.errorCount++,this.currentForm.form.markAsDirty()}},this.quickTuneValues.forEach(o=>e.get(o.prompt).subscribe(u=>o.prompt=u)),this.loadChannels(),this.loadInputGroups()}loadChannels(){this.channelService.GetChannelInfoList({Details:!0}).subscribe(n=>{this.allChannels=n.ChannelInfoList.ChannelInfos,this.fillChannelList()})}fillChannelList(){this.sourceChannels=this.allChannels.filter(e=>e.SourceId==this.card.SourceId),this.sourceChannels.find(e=>e.ChanNum==this.card.StartChannel)||(this.card.StartChannel="")}loadInputGroups(){this.captureCardService.GetInputGroupList().subscribe(e=>{this.inputGroups=e.InputGroupList.InputGroups,this.inputGroups.forEach(n=>{if(Ju("user:")){const
s=n.InputGroupName.substring(5);-1==this.selectGroups.findIndex(r=>s==r.InputGroupName)&&this.selectGroups.push({CardInputId:0,InputGroupId:n.InputGroupId,InputGroupName:s}),n.CardInputId==this.card.CardId&&(this.work.inputGroupName||(this.work.inputGroupName=s,this.work
.orgInputGroupName=s),this.orgInputGroupIds.push(n.InputGroupId))}})})}ngOnInit(){this.work.isEncoder=this.preEncodedTypes.indexOf(this.card.CardType)<0,this.work.isUnscanable=this.unscanableTypes.indexOf(this.card.CardType)>=0,this.work.hasTuner=this.hasTunerTypes.indexOf(this.card.CardType)>=0,(this.work.isEncoder||this.work.isUnscanable)&&(this.work.hasTuner||"EXTERNAL"==this.card.CardType)&&(this.work.showPresetTuner=!0),"DVB"==this.card.CardType&&this.loadDiseqc(),this.card.DisplayName||(this.card.DisplayName="Input
"+this.card.CardId),this.captureCardService.GetCaptureDeviceList(this.card.CardType).subscribe({next:e=>{this.captureDeviceList=e,this.setupDevice(),this.deviceFree.next(!0)},error:e=>{console.log("GetCaptureDeviceList",e),this.work.errorCount++}})}setupDevice(){if(this.card.VideoDevice){let
e=this.captureDeviceList.CaptureDeviceList.CaptureDevices.find(n=>n.VideoDevice==this.card.VideoDevice);e?this.currentDevice=e:(this.currentDevice={VideoDevice:this.card.VideoDe
vice,FrontendName:this.messages.devNotExist,InputNames:["MPEG2TS"]},this.captureDeviceList.CaptureDeviceList.CaptureDevices.push(this.currentDevice))}this.currentDevice&&this.card.InputName&&(this.currentDevice.InputNames.includes(this.card.InputName)||this.currentDevice.InputNames.push(this.card.InputName),this.currentDevice.InputNames.includes("MPEG2TS")||this.currentDevice.InputNames.push("MPEG2TS")),this.work.isReady=!0}loadDiseqc(){this.captureCardService.GetDiseqcTreeList().subscribe({next:e=>{this.diseqcTreeList=e,this.setupDiseqc()},error:e=>{console.log("GetDiseqcTreeList",e),this.work.errorCount++}})}setupDiseqc(){let
e=this.diseqcTreeList.DiseqcTreeList.DiseqcTrees.find(n=>n.DiSEqCId==this.card.DiSEqCId);if(e)switch(this.diseqcTree=e,this.diseqcTree.Type){case"switch":case"rotor":case"scr":this.captureCardService.GetDiseqcConfigList().subscribe({next:n=>{let
s=n.DiseqcConfigList.DiseqcConfigs.find(r=>r.CardId==this.card.CardId&&r.DiSEqCId==this.card.DiSEqCId);if(this.dise
qcConfig=s||{CardId:this.card.CardId,DiSEqCId:this.card.DiSEqCId,Value:""},"switch"==this.diseqcTree.Type)this.work.switchPort=Number.parseInt(this.diseqcConfig.Value)-1,Number.isNaN(this.work.switchPort)&&(this.work.switchPort=0);else
if("rotor"==this.diseqcTree.Type)this.work.rotorDegrees=Number.parseFloat(this.diseqcConfig.Value),Number.isNaN(this.work.rotorDegrees)&&(this.work.rotorDegrees=0),this.work.rotorDegrees<0?(this.work.hemisphere=-1,this.work.rotorDegrees=-this.work.rotorDegrees):this.work.hemisphere=1;else
if("scr"==this.diseqcTree.Type)switch(this.diseqcConfig.Value){case"0":this.work.scrPort="A";break;case"1":this.work.scrPort="B";break;default:this.work.scrPort=""}},error:n=>{console.log("GetDiseqcTreeList",n),this.work.errorCount++}})}}ngAfterViewInit(){this.setupService.setCurrentForm(this.currentForm),this.currentForm.form.markAsDirty(),setTimeout(()=>{this.currentForm.form.markAsPristine()},0)}fetchChannels(){this.work.fetchChannelsDialog=!1;let
e={SourceId:this
.card.SourceId,CardId:this.card.CardId,WaitForFinish:!0};this.work.fetchStatus=1,this.channelService.FetchChannelsFromSource(e).subscribe({next:n=>{this.work.fetchStatus=n.int>0?2:3,this.work.fetchCount=n.int,this.loadChannels()},error:n=>{console.log("fetchChannels",n),this.work.fetchStatus=3,this.work.fetchCount=0}})}saveForm(){this.work.successCount=0,this.work.errorCount=0,this.work.expectedCount=0,this.work.inputGroupName!=this.work.orgInputGroupName?this.work.inputGroupName?this.captureCardService.AddUserInputGroup(this.work.inputGroupName).subscribe({next:n=>{this.saveCard(n.int)},error:n=>{console.log("saveForm
error",n),this.work.errorCount++,this.currentForm.form.markAsDirty()}}):this.saveCard(-1):this.saveCard(0)}saveCard(e){0!=e&&(this.work.reloadGroups=!0);let
n=0;if(this.work.recLimitUpd=!1,this.cardList.CaptureCardList.CaptureCards.forEach(s=>{(s.CardId==this.card.CardId||s.ParentId==this.card.CardId)&&(this.captureCardService.UpdateCaptureCard(s.CardId,"inputname",s.
InputName=this.card.InputName).subscribe(this.saveObserver),this.captureCardService.UpdateCaptureCard(s.CardId,"displayname",s.DisplayName=this.card.DisplayName).subscribe(this.saveObserver),this.captureCardService.UpdateCaptureCard(s.CardId,"sourceid",String(s.SourceId=this.card.SourceId)).subscribe(this.saveObserver),this.captureCardService.UpdateCaptureCard(s.CardId,"quicktune",String(s.Quicktune=this.card.Quicktune)).subscribe(this.saveObserver),this.captureCardService.UpdateCaptureCard(s.CardId,"dishnet_eit",(s.DishnetEIT=this.card.DishnetEIT)?"1":"0").subscribe(this.saveObserver),this.card.StartChannel&&(this.captureCardService.UpdateCaptureCard(s.CardId,"startchan",s.StartChannel=this.card.StartChannel).subscribe(this.saveObserver),this.work.expectedCount++),this.captureCardService.UpdateCaptureCard(s.CardId,"recpriority",String(s.RecPriority=this.card.RecPriority)).subscribe(this.saveObserver),this.captureCardService.UpdateCaptureCard(s.CardId,"livetvorder",String(s.LiveTVOr
der=this.card.LiveTVOrder)).subscribe(this.saveObserver),this.captureCardService.UpdateCaptureCard(s.CardId,"reclimit",String(s.RecLimit=this.card.RecLimit)).subscribe(this.saveObserver),this.card.SchedGroup&&this.card.CardId!=s.CardId?(s.SchedGroup=!1,s.SchedOrder=0):(s.SchedGroup=this.card.SchedGroup,s.SchedOrder=this.card.SchedOrder),this.captureCardService.UpdateCaptureCard(s.CardId,"schedgroup",s.SchedGroup?"1":"0").subscribe(this.saveObserver),this.captureCardService.UpdateCaptureCard(s.CardId,"schedorder",String(s.SchedOrder)).subscribe(this.saveObserver),this.work.expectedCount+=10,0!=e&&this.orgInputGroupIds.forEach(r=>{this.captureCardService.UnlinkInputGroup(s.CardId,r).subscribe(this.saveObserver),this.work.expectedCount++}),e>0&&(this.captureCardService.LinkInputGroup(s.CardId,e).subscribe(this.saveObserver),this.work.expectedCount++),n++)}),n!=this.card.RecLimit&&(this.work.recLimitUpd=!0),this.diseqcConfig){let
s="";if("switch"==this.diseqcTree.Type)s=(this.work.switc
hPort-1).toString();else
if("rotor"==this.diseqcTree.Type)s=(this.work.rotorDegrees*this.work.hemisphere).toString();else
if("scr"==this.diseqcTree.Type)switch(this.work.scrPort){case"A":default:s="0";break;case"B":s="1"}s!=this.diseqcConfig.Value&&(this.diseqcConfig.Value=s,this.captureCardService.DeleteDiseqcConfig(this.card.CardId).subscribe(r=>{this.captureCardService.AddDiseqcConfig(this.diseqcConfig).subscribe(this.saveObserver)}))}}}return
t.\u0275fac=function(e){return
new(e||t)(D(Oe),D(Or),D(Gt),D(Me))},t.\u0275cmp=z({type:t,selectors:[["app-iconnection"]],viewQuery:function(e,n){if(1&e&&W(une,5),2&e){let
s;V(s=B())&&(n.currentForm=s.first)}},inputs:{card:"card",cardList:"cardList",videoSourceLookup:"videoSourceLookup",videoSourceList:"videoSourceList",parentComponent:"parentComponent"},decls:9,vars:0,consts:[["name","connform",1,"ml-3","mr-3"],["connform","ngForm"],["top",""],[1,"m-5"],["pTemplate","title"],["pTemplate","subtitle"],["pTemplate","content"],["pTemplate","foo
ter"],[1,"grid"],[1,"mb-4","w-full"],[3,"ngSwitch",4,"ngIf"],["class","form-group
field",4,"ngIf"],[1,"form-group","field"],["for","DisplayName",1,"label","block"],["pInputText","","id","DisplayName","name","DisplayName",1,"mb-2","form-control","w-full",3,"ngModel","ngModelChange"],["DisplayName","ngModel"],[1,"block"],["for","SourceId",1,"label","block"],["optionLabel","SourceName","optionValue","Id","name","SourceId",3,"options","ngModel","editable","maxlength","ngModelChange","onChange"],["SourceId","ngModel"],["class","mb-4
w-full",3,"legend","collapsed","toggleable",4,"ngIf"],[2,"display","flex","align-items","center"],["icon","pi
pi-download","iconPos","left",3,"label","disabled","onClick"],["header","Fetch
Channels",3,"visible","modal","draggable","resizable","visibleChange"],["for","StartChannel",1,"label","block"],["placeholder","Select
Item","optionLabel","ChanNum","optionValue","ChanNum","scrollHeight","400px","name","StartChannel",3,"options","ngModel","editable","ngMode
lChange"],["StartChannel","ngModel"],[1,"mb-4","w-full",3,"legend","toggleable","collapsed"],["for","RecLimit",1,"label","block"],["name","RecLimit","id","RecLimit",3,"ngModel","showButtons","min","max","step","ngModelChange"],["inputId","SchedGroup","name","SchedGroup",1,"label","mb-2","w-full",3,"ngModel","binary","label","ngModelChange"],["DVBWaitForSeqStart","ngModel"],["for","RecPriority",1,"label","block"],["name","RecPriority","id","RecPriority",3,"ngModel","showButtons","min","max","step","ngModelChange"],["for","SchedOrder",1,"label","block"],["name","SchedOrder","id","SchedOrder",3,"ngModel","showButtons","min","max","step","ngModelChange"],["for","LiveTVOrder",1,"label","block"],["name","LiveTVOrder","id","LiveTVOrder",3,"ngModel","showButtons","min","max","step","ngModelChange"],["for","inputGroupName",1,"label","block"],["placeholder","Optional
Group
Name","optionLabel","InputGroupName","optionValue","InputGroupName","scrollHeight","400px","name","inputGroupName",3,"opt
ions","ngModel","editable","ngModelChange"],["inputGroupName","ngModel"],[3,"ngSwitch"],["class","form-group
field",4,"ngSwitchCase"],[4,"ngSwitchCase"],["for","Port",1,"label","block"],["name","Port","id","Port",3,"ngModel","showButtons","min","max","step","ngModelChange"],["for","Degrees",1,"label","block"],["name","Degrees","id","Degrees",3,"ngModel","min","max","maxFractionDigits","ngModelChange"],[1,"field-radiobutton"],["name","hemisphere","value","1","inputId","east",3,"ngModel","ngModelChange"],["for","east",1,"label","block"],["name","hemisphere","value","-1","inputId","west",3,"ngModel","ngModelChange"],["for","west",1,"label","block"],[1,"label","block"],["name","scrPort","value","A","inputId","portA",3,"ngModel","ngModelChange"],["for","portA",1,"label","block"],["name","scrPort","value","B","inputId","portB",3,"ngModel","ngModelChange"],["for","portB",1,"label","block"],["for","Delivery",1,"label","block"],["pInputText","","id","Delivery","name","Delivery","disabled","t
rue",1,"mb-2","form-control","w-full",3,"ngModel","ngModelChange"],["InputName","ngModel"],["for","InputName",1,"label","block"],["name","InputName",3,"options","ngModel","ngModelChange",4,"ngIf"],["name","InputName",3,"options","ngModel","ngModelChange"],["for","ExternalCommand",1,"label","block"],["pInputText","","id","ExternalCommand","name","ExternalCommand",1,"mb-2","form-control","w-full",3,"ngModel","ngModelChange"],["ExternalCommand","ngModel"],["for","TuneChan",1,"label","block"],["pInputText","","id","TuneChan","name","TuneChan",1,"mb-2","form-control","w-full",3,"ngModel","ngModelChange"],["TuneChan","ngModel"],["for","Quicktune",1,"label","block"],["optionLabel","prompt","optionValue","value","name","Quicktune",3,"options","ngModel","editable","maxlength","ngModelChange"],["Quicktune","ngModel"],["inputId","DishnetEIT","name","DishnetEIT",1,"label","mb-2","w-full",3,"ngModel","binary","label","ngModelChange"],["DishnetEIT","ngModel"],[1,"mb-4","w-full",3,"legend","collap
sed","toggleable"],[3,"card","cardList","iconnection","videoSourceLookup"],["icon","pi
pi-times-circle","styleClass","p-button-plain",3,"label","click"],["icon","pi
pi-check-circle","styleClass","p-button-plain",3,"label","click"],[1,"grid","nogutter"],[1,"col-12"],["severity","success",3,"text",4,"ngIf"],["severity","error",3,"text",4,"ngIf"],["icon","pi
pi-save","iconPos","left",1,"col","pr-1",3,"label","disabled","onClick"],["severity","success",3,"text"],["severity","error",3,"text"]],template:function(e,n){1&e&&(l(0,"form",0,1),k(2,"span",null,2),l(4,"p-card",3),_(5,dne,2,3,"ng-template",4),_(6,pne,0,0,"ng-template",5),_(7,kne,108,135,"ng-template",6),_(8,Rne,6,6,"ng-template",7),c()())},styles:[""]}),t})();function
Lne(t,i){if(1&t){const
e=I();l(0,"p-button",10),C("onClick",function(){return
v(e),d().displayNewDialog=!1}),m(1,"translate"),c(),l(2,"p-button",11),C("onClick",function(){return
v(e),d().newProfile()}),m(3,"translate"),c()}if(2&t){const
e=d();x("label",f(1,3,"commo
n.cancel")),a(2),x("label",f(3,5,"common.ok")),p("disabled",e.rejectName())}}function
One(t,i){1&t&&(l(0,"div",12),k(1,"br")(2,"p-message",13),m(3,"translate"),k(4,"br"),c()),2&t&&(a(2),x("text",f(3,1,"settings.common.successful_delete")))}function
Ane(t,i){1&t&&(l(0,"div",12),k(1,"br")(2,"p-message",14),m(3,"translate"),k(4,"br"),c()),2&t&&(a(2),x("text",f(3,1,"common.networkfail")))}function
Pne(t,i){if(1&t&&(l(0,"div",18)(1,"div",19),g(2),l(3,"b"),g(4),c()()()),2&t){const
e=d(),n=e.$implicit,s=e.index,r=d();a(2),T(" ",n.Name,"
"),a(2),T("\xa0",r.dirtyMessages[s],"")}}function
Fne(t,i){if(1&t){const
e=I();l(0,"p-button",22),C("click",function(){v(e);const
s=d(2).index;return
d().displayDeleteThis[s]=!1}),m(1,"translate"),c(),l(2,"p-button",23),C("click",function(){v(e);const
s=d(2).index;return
d().deleteThis(s)}),m(3,"translate"),c()}2&t&&(x("label",f(1,2,"common.no")),a(2),x("label",f(3,4,"common.yes")))}const
IS=function(){return{width:"50vw"}},Nne=function(t,i){return{ProfileN
ame:t,GroupName:i}};function Vne(t,i){if(1&t){const
e=I();l(0,"p-button",20),C("onClick",function(){v(e);const
s=d().index;return
d().displayDeleteThis[s]=!0}),m(1,"translate"),c(),l(2,"p-dialog",2),C("visibleChange",function(s){v(e);const
r=d().index;return
d().displayDeleteThis[r]=s}),m(3,"translate"),l(4,"h2"),g(5),m(6,"translate"),c(),l(7,"p"),g(8),m(9,"translate"),c(),_(10,Fne,4,6,"ng-template",5),c(),k(11,"app-recprofile",21)}if(2&t){const
e=d(),n=e.index,s=e.$implicit,r=d();x("label",f(1,14,"settings.rprofiles.delete_this")),p("disabled",!r.group.RecProfiles[n].Id||r.setupService.schedulingEnabled),a(2),q(A(23,IS)),x("header",f(3,16,"settings.rprofiles.delete_this")),p("visible",r.displayDeleteThis[n])("modal",!0)("draggable",!1)("resizable",!1),a(3),S(f(6,18,"settings.common.ru_sure")),a(3),S(Dt(9,20,"settings.rprofiles.delete_details",Ge(24,Nne,r.group.RecProfiles[n].Name,r.group.Name))),a(3),p("profile",s)("group",r.group)("parentComponent",r)}}function
Bne(t,i){if(1&t){co
nst
e=I();l(0,"p-accordionTab",15),C("selectedChange",function(s){const
o=v(e).index;return
d().activeTab[o]=s}),_(1,Pne,5,2,"ng-template",16),_(2,Vne,12,27,"ng-template",17),c()}if(2&t){const
e=i.index,n=d();p("disabled",n.disabledTab[e])("selected",n.activeTab[e])}}let
ES=(()=>{class
t{constructor(e,n,s){this.captureCardService=e,this.setupService=n,this.translate=s,this.currentTab=-1,this.deletedTab=-1,this.dirtyMessages=[],this.forms=[],this.disabledTab=[],this.activeTab=[],this.readyCount=0,this.displayNewDialog=!1,this.newProfileName="",this.successCount=0,this.expectedCount=0,this.errorCount=0,this.displayDeleteThis=[],this.dirtyText="settings.common.unsaved",this.warningText="settings.common.warning",this.deletedText="settings.common.deleted",this.newText="settings.common.new",this.delObserver={next:r=>{r.bool?(this.successCount++,this.deletedTab>-1&&(this.dirtyMessages[this.deletedTab]=this.deletedText,this.disabledTab[this.deletedTab]=!0,this.activeTab[this.deletedTab]=!1,
this.deletedTab=-1)):(this.errorCount++,this.deletedTab=-1)},error:r=>{console.error(r),this.errorCount++}},s.get(this.dirtyText).subscribe(r=>this.dirtyText=r),s.get(this.warningText).subscribe(r=>this.warningText=r),s.get(this.deletedText).subscribe(r=>this.deletedText=r),s.get(this.newText).subscribe(r=>this.newText=r)}ngOnInit(){let
e=this.parentComponent.groups.findIndex(n=>n===this.group);this.parentComponent.profileGroups[e]=this}onTabOpen(e){this.showDirty();let
n=this.setupService.getCurrentForm();null!=n&&(this.forms[e.index]=n),this.setupService.setCurrentForm(null),this.currentTab=e.index,this.dirtyMessages[this.currentTab]=""}onTabClose(e){this.showDirty(),this.currentTab=-1}showDirty(){-1==this.currentTab||this.disabledTab[this.currentTab]||(this.dirtyMessages[this.currentTab]=this.forms[this.currentTab]&&this.forms[this.currentTab].dirty?this.dirtyText:this.group.RecProfiles[this.currentTab].Id?"":this.newText)}newProfile(){this.displayNewDialog=!1;for(let
n=0;n<this.
activeTab.length;n++)this.activeTab[n]=!1;this.group.RecProfiles.push({Id:0,Name:this.newProfileName.trim(),VideoCodec:"MPEG-4",AudioCodec:"MP3",RecProfParams:[]}),this.currentTab=this.group.RecProfiles.length-1,this.showDirty()}deleteThis(e){this.errorCount=0,this.successCount=0,this.expectedCount=1,this.displayDeleteThis[e]=!1,this.deletedTab=e,this.captureCardService.DeleteRecProfile(this.group.RecProfiles[e].Id).subscribe(this.delObserver)}rejectName(){let
e=this.newProfileName.trim();return""==e||null!=this.group.RecProfiles.find(n=>n.Name==e)}confirm(e){return
oe(window.confirm(e))}canDeactivate(){let
e=this.setupService.getCurrentForm();return!(this.forms[this.currentTab]&&this.forms[this.currentTab].dirty||this.dirtyMessages.find(n=>n==this.dirtyText)||e&&e.dirty)||this.confirm(this.warningText)}allClean(){let
e=this.setupService.getCurrentForm();return!(this.forms[this.currentTab]&&this.forms[this.currentTab].dirty||this.dirtyMessages.find(n=>n==this.dirtyText)||e&&e.dirty)
}onWindowClose(e){let
n=this.setupService.getCurrentForm();(this.forms[this.currentTab]&&this.forms[this.currentTab].dirty||this.dirtyMessages.find(s=>s==this.dirtyText)||n&&n.dirty)&&(e.preventDefault(),e.returnValue=!1)}}return
t.\u0275fac=function(e){return
new(e||t)(D(Gt),D(Me),D(Oe))},t.\u0275cmp=z({type:t,selectors:[["app-profile-group"]],hostBindings:function(e,n){1&e&&C("beforeunload",function(r){return
n.onWindowClose(r)},!1,ni)},inputs:{group:"group",parentComponent:"parentComponent"},decls:19,vars:24,consts:[[1,"block","card","w-full"],["icon","pi
pi-plus-circle","styleClass","p-button-plain",3,"label","onClick"],[3,"header","visible","modal","draggable","resizable","visibleChange"],["pInputText","","id","Name","name","Name","autofocus","",1,"mb-2","form-control","w-full",3,"ngModel","ngModelChange"],["Name","ngModel"],["pTemplate","footer"],[1,"grid","nogutter"],["class","col-12",4,"ngIf"],[1,"col-12","w-full",3,"onClose","onOpen"],[3,"disabled","selected","selectedChang
e",4,"ngFor","ngForOf"],["icon","pi
pi-times-circle","styleClass","p-button-plain",3,"label","onClick"],["icon","pi
pi-check-circle","styleClass","p-button-plain",3,"label","disabled","onClick"],[1,"col-12"],["severity","success",3,"text"],["severity","error",3,"text"],[3,"disabled","selected","selectedChange"],["pTemplate","header"],["pTemplate","content"],[1,"grid","w-full"],[1,"col-9","pr-1"],["styleClass","p-button-warning","icon","pi
pi-trash",3,"label","disabled","onClick"],[3,"profile","group","parentComponent"],["icon","pi
pi-times-circle","styleClass","p-button-plain",3,"label","click"],["icon","pi
pi-check-circle","styleClass","p-button-plain",3,"label","click"]],template:function(e,n){1&e&&(l(0,"div",0)(1,"h3"),g(2),m(3,"translate"),c(),l(4,"p-button",1),C("onClick",function(){return
n.displayNewDialog=!0}),m(5,"translate"),c(),l(6,"p-dialog",2),C("visibleChange",function(r){return
n.displayNewDialog=r}),m(7,"translate"),l(8,"p"),g(9),m(10,"translate"),c(),l(11,"input",3,
4),C("ngModelChange",function(r){return
n.newProfileName=r}),c(),_(13,Lne,4,7,"ng-template",5),c(),l(14,"div",6),_(15,One,5,3,"div",7),_(16,Ane,5,3,"div",7),c(),l(17,"p-accordion",8),C("onClose",function(r){return
n.onTabClose(r)})("onOpen",function(r){return
n.onTabOpen(r)}),_(18,Bne,3,2,"p-accordionTab",9),c()()),2&e&&(a(2),We("",f(3,15,"settings.rprofiles.grouptitle"),"
",n.group.Name,""),a(2),x("label",f(5,17,"settings.rprofiles.new_profile")),a(2),q(A(23,IS)),x("header",f(7,19,"settings.rprofiles.new_profile")),p("visible",n.displayNewDialog)("modal",!0)("draggable",!1)("resizable",!1),a(3),S(f(10,21,"settings.rprofiles.enter_profile_name")),a(2),p("ngModel",n.newProfileName),a(4),p("ngIf",n.expectedCount&&n.successCount==n.expectedCount),a(1),p("ngIf",n.errorCount>0),a(2),p("ngForOf",n.group.RecProfiles))},styles:[""]}),t})();const
Hne=["recprofform"],qne=["top"];function
Gne(t,i){if(1&t&&(g(0),m(1,"translate")),2&t){const
e=d();We(" ",f(1,2,"settings.rprofiles.proftitle")," "
,e.profile.Name," ")}}function Une(t,i){}function zne(t,i){if(1&t){const
e=I();l(0,"div",12)(1,"p-checkbox",13,14),C("ngModelChange",function(s){v(e);const
r=d(2);return
r.profile.RecProfParams[r.findIx("autotranscode",!1)].Value=s}),m(3,"translate"),c(),l(4,"small",15),g(5),m(6,"translate"),c()()}if(2&t){const
e=d(2);a(1),x("label",f(3,4,"settings.rprofiles.autotranscode_label")),p("ngModel",e.profile.RecProfParams[e.findIx("autotranscode",!1)].Value)("binary",!0),a(4),T("
",f(6,6,"settings.rprofiles.autotranscode_desc")," ")}}function
jne(t,i){if(1&t){const
e=I();l(0,"div",12)(1,"label",16),g(2),m(3,"translate"),c(),l(4,"p-inputNumber",17),C("ngModelChange",function(s){v(e);const
r=d(2);return
r.profile.RecProfParams[r.findIx("width","480")].Value=s}),c(),l(5,"small",15),g(6),m(7,"translate"),c()()}if(2&t){const
e=d(2);a(2),S(f(3,7,"settings.rprofiles.width_label")),a(2),p("ngModel",e.profile.RecProfParams[e.findIx("width","480")].Value)("showButtons",!0)("min",160)("max",720)("st
ep",16),a(2),T(" ",f(7,9,"settings.rprofiles.width_desc"),"
")}}function $ne(t,i){if(1&t){const
e=I();l(0,"div",12)(1,"label",18),g(2),m(3,"translate"),c(),l(4,"p-inputNumber",19),C("ngModelChange",function(s){v(e);const
r=d(2);return
r.profile.RecProfParams[r.findIx("height","480")].Value=s}),c(),l(5,"small",15),g(6),m(7,"translate"),c()()}if(2&t){const
e=d(2);a(2),S(f(3,7,"settings.rprofiles.height_label")),a(2),p("ngModel",e.profile.RecProfParams[e.findIx("height","480")].Value)("showButtons",!0)("min",160)("max",480)("step",16),a(2),T("
",f(7,9,"settings.rprofiles.height_desc")," ")}}const
Ms=function(){return{minWidth:"400px"}};function Wne(t,i){if(1&t){const
e=I();l(0,"div",12)(1,"label",20),g(2),m(3,"translate"),c(),l(4,"p-dropdown",21,22),C("ngModelChange",function(s){v(e);const
r=d(2);return
r.profile.RecProfParams[r.findIx("recordingtype","all")].Value=s}),c(),l(6,"small",15),g(7),m(8,"translate"),c()()}if(2&t){const
e=d(2);a(2),S(f(3,8,"settings.rprofiles.recordingtype_la
bel")),a(2),q(A(12,Ms)),p("options",e.recordingtypeOptions)("ngModel",e.profile.RecProfParams[e.findIx("recordingtype","all")].Value)("editable",!1)("maxlength",0),a(3),T("
",f(8,10,"settings.rprofiles.recordingtype_desc")," ")}}function
Kne(t,i){if(1&t){const
e=I();l(0,"div",12)(1,"p-checkbox",23,24),C("ngModelChange",function(s){v(e);const
r=d(2);return
r.profile.RecProfParams[r.findIx("recordmpts",!1)].Value=s}),m(3,"translate"),c(),l(4,"small",15),g(5),m(6,"translate"),c()()}if(2&t){const
e=d(2);a(1),x("label",f(3,4,"settings.rprofiles.recordmpts_label")),p("ngModel",e.profile.RecProfParams[e.findIx("recordmpts",!1)].Value)("binary",!0),a(4),T("
",f(6,6,"settings.rprofiles.recordmpts_desc")," ")}}function
Qne(t,i){if(1&t){const
e=I();l(0,"div",12)(1,"label",26),g(2),m(3,"translate"),c(),l(4,"p-dropdown",27,28),C("ngModelChange",function(s){return
v(e),d(3).profile.VideoCodec=s}),c(),k(6,"small",15),c()}if(2&t){const
e=d(3);a(2),S(f(3,7,"settings.rprofiles.videocodec_label")),a(2
),q(A(9,Ms)),p("options",e.params.Video)("ngModel",e.profile.VideoCodec)("editable",!1)("maxlength",0)}}function
Jne(t,i){if(1&t){const
e=I();l(0,"div",12)(1,"label",29),g(2),m(3,"translate"),c(),l(4,"p-inputNumber",30),C("ngModelChange",function(s){v(e);const
r=d(3);return
r.profile.RecProfParams[r.findIx("rtjpegquality","170")].Value=s}),c(),l(5,"small",15),g(6),m(7,"translate"),c()()}if(2&t){const
e=d(3);a(2),S(f(3,7,"settings.rprofiles.rtjpegquality_label")),a(2),p("ngModel",e.profile.RecProfParams[e.findIx("rtjpegquality","170")].Value)("showButtons",!0)("min",1)("max",255)("step",1),a(2),T("
",f(7,9,"settings.rprofiles.rtjpegquality_desc")," ")}}function
Yne(t,i){if(1&t){const
e=I();l(0,"div",12)(1,"label",31),g(2),m(3,"translate"),c(),l(4,"p-inputNumber",32),C("ngModelChange",function(s){v(e);const
r=d(3);return
r.profile.RecProfParams[r.findIx("rtjpeglumafilter","0")].Value=s}),c(),l(5,"small",15),g(6),m(7,"translate"),c()()}if(2&t){const
e=d(3);a(2),S(f(3,7,"settings.rprofi
les.rtjpeglumafilter_label")),a(2),p("ngModel",e.profile.RecProfParams[e.findIx("rtjpeglumafilter","0")].Value)("showButtons",!0)("min",0)("max",31)("step",1),a(2),T("
",f(7,9,"settings.rprofiles.rtjpegfilter_desc")," ")}}function
Zne(t,i){if(1&t){const
e=I();l(0,"div",12)(1,"label",33),g(2),m(3,"translate"),c(),l(4,"p-inputNumber",34),C("ngModelChange",function(s){v(e);const
r=d(3);return
r.profile.RecProfParams[r.findIx("rtjpegchromafilter","0")].Value=s}),c(),l(5,"small",15),g(6),m(7,"translate"),c()()}if(2&t){const
e=d(3);a(2),S(f(3,7,"settings.rprofiles.rtjpegchromafilter_label")),a(2),p("ngModel",e.profile.RecProfParams[e.findIx("rtjpegchromafilter","0")].Value)("showButtons",!0)("min",0)("max",31)("step",1),a(2),T("
",f(7,9,"settings.rprofiles.rtjpegfilter_desc")," ")}}function
Xne(t,i){if(1&t){const
e=I();l(0,"div",12)(1,"label",35),g(2),m(3,"translate"),c(),l(4,"p-inputNumber",36),C("ngModelChange",function(s){v(e);const
r=d(3);return r.profile.RecProfParams[r.findIx("mpeg4
bitrate","2200")].Value=s}),c(),l(5,"small",15),g(6),m(7,"translate"),c()()}if(2&t){const
e=d(3);a(2),S(f(3,7,"settings.rprofiles.mpeg4bitrate_label")),a(2),p("ngModel",e.profile.RecProfParams[e.findIx("mpeg4bitrate","2200")].Value)("showButtons",!0)("min",100)("max",8e3)("step",100),a(2),T("
",f(7,9,"settings.rprofiles.mpeg4bitrate_desc")," ")}}function
eie(t,i){if(1&t){const
e=I();l(0,"div",12)(1,"label",37),g(2),m(3,"translate"),c(),l(4,"p-inputNumber",38),C("ngModelChange",function(s){v(e);const
r=d(3);return
r.profile.RecProfParams[r.findIx("mpeg4maxquality","2")].Value=s}),c(),l(5,"small",15),g(6),m(7,"translate"),c()()}if(2&t){const
e=d(3);a(2),S(f(3,7,"settings.rprofiles.mpeg4maxquality_label")),a(2),p("ngModel",e.profile.RecProfParams[e.findIx("mpeg4maxquality","2")].Value)("showButtons",!0)("min",1)("max",31)("step",1),a(2),T("
",f(7,9,"settings.rprofiles.mpeg4quality_desc")," ")}}function
tie(t,i){if(1&t){const
e=I();l(0,"div",12)(1,"label",39),g(2),m(3,"translate"),c(),l
(4,"p-inputNumber",40),C("ngModelChange",function(s){v(e);const
r=d(3);return
r.profile.RecProfParams[r.findIx("mpeg4minquality","15")].Value=s}),c(),l(5,"small",15),g(6),m(7,"translate"),c()()}if(2&t){const
e=d(3);a(2),S(f(3,7,"settings.rprofiles.mpeg4minquality_label")),a(2),p("ngModel",e.profile.RecProfParams[e.findIx("mpeg4minquality","15")].Value)("showButtons",!0)("min",1)("max",31)("step",1),a(2),T("
",f(7,9,"settings.rprofiles.mpeg4quality_desc")," ")}}function
nie(t,i){if(1&t){const
e=I();l(0,"div",12)(1,"label",41),g(2),m(3,"translate"),c(),l(4,"p-inputNumber",42),C("ngModelChange",function(s){v(e);const
r=d(3);return
r.profile.RecProfParams[r.findIx("hardwaremjpegquality","100")].Value=s}),c(),k(5,"small",15),c()}if(2&t){const
e=d(3);a(2),S(f(3,6,"settings.rprofiles.hardwaremjpegquality_label")),a(2),p("ngModel",e.profile.RecProfParams[e.findIx("hardwaremjpegquality","100")].Value)("showButtons",!0)("min",0)("max",100)("step",1)}}const
RS=function(){return["1","2","4"]};f
unction iie(t,i){if(1&t){const
e=I();l(0,"div",12)(1,"label",43),g(2),m(3,"translate"),c(),l(4,"p-dropdown",44,45),C("ngModelChange",function(s){v(e);const
r=d(3);return
r.profile.RecProfParams[r.findIx("hardwaremjpeghdecimation","2")].Value=s}),c(),k(6,"small",15),c()}if(2&t){const
e=d(3);a(2),S(f(3,7,"settings.rprofiles.hardwaremjpeghdecimation_label")),a(2),q(A(9,Ms)),p("options",A(10,RS))("ngModel",e.profile.RecProfParams[e.findIx("hardwaremjpeghdecimation","2")].Value)("editable",!1)("maxlength",0)}}function
sie(t,i){if(1&t){const
e=I();l(0,"div",12)(1,"label",46),g(2),m(3,"translate"),c(),l(4,"p-dropdown",47,48),C("ngModelChange",function(s){v(e);const
r=d(3);return
r.profile.RecProfParams[r.findIx("hardwaremjpegvdecimation","2")].Value=s}),c(),k(6,"small",15),c()}if(2&t){const
e=d(3);a(2),S(f(3,7,"settings.rprofiles.hardwaremjpegvdecimation_label")),a(2),q(A(9,Ms)),p("options",A(10,RS))("ngModel",e.profile.RecProfParams[e.findIx("hardwaremjpegvdecimation","2")].Value)("editab
le",!1)("maxlength",0)}}function rie(t,i){if(1&t){const
e=I();l(0,"div",12)(1,"label",49),g(2),m(3,"translate"),c(),l(4,"p-inputNumber",50),C("ngModelChange",function(s){v(e);const
r=d(3);return
r.profile.RecProfParams[r.findIx("mpeg4qualdiff","3")].Value=s}),c(),l(5,"small",15),g(6),m(7,"translate"),c()()}if(2&t){const
e=d(3);a(2),S(f(3,7,"settings.rprofiles.mpeg4qualdiff_label")),a(2),p("ngModel",e.profile.RecProfParams[e.findIx("mpeg4qualdiff","3")].Value)("showButtons",!0)("min",1)("max",31)("step",1),a(2),T("
",f(7,9,"settings.rprofiles.mpeg4quality_desc")," ")}}function
oie(t,i){if(1&t){const
e=I();l(0,"div",12)(1,"label",51),g(2),m(3,"translate"),c(),l(4,"p-dropdown",52,53),C("ngModelChange",function(s){v(e);const
r=d(3);return
r.profile.RecProfParams[r.findIx("mpeg2streamtype","2")].Value=s}),c(),l(6,"small",15),g(7),m(8,"translate"),c()()}if(2&t){const
e=d(3);a(2),S(f(3,8,"settings.rprofiles.mpeg2streamtype_label")),a(2),q(A(12,Ms)),p("options",e.streamTypeOptions)("ngModel
",e.profile.RecProfParams[e.findIx("mpeg2streamtype","2")].Value)("editable",!1)("maxlength",0),a(3),T("
",f(8,10,"settings.rprofiles.mpeg2streamtype_desc")," ")}}const
aie=function(){return["Square","4:3","16:9","2.21:1"]};function
lie(t,i){if(1&t){const
e=I();l(0,"div",12)(1,"label",54),g(2),m(3,"translate"),c(),l(4,"p-dropdown",55,56),C("ngModelChange",function(s){v(e);const
r=d(3);return
r.profile.RecProfParams[r.findIx("mpeg2aspectratio","Square")].Value=s}),c(),l(6,"small",15),g(7),m(8,"translate"),c()()}if(2&t){const
e=d(3);a(2),S(f(3,8,"settings.rprofiles.mpeg2aspectratio_label")),a(2),q(A(12,Ms)),p("options",A(13,aie))("ngModel",e.profile.RecProfParams[e.findIx("mpeg2aspectratio","Square")].Value)("editable",!1)("maxlength",0),a(3),T("
",f(8,10,"settings.rprofiles.mpeg2aspectratio_desc"),"
")}}function cie(t,i){if(1&t){const
e=I();l(0,"div",12)(1,"label",57),g(2),m(3,"translate"),c(),l(4,"p-inputNumber",58),C("ngModelChange",function(s){v(e);const
r=d(3);return r.profile.Re
cProfParams[r.findIx("mpeg2bitrate","6000")].Value=s}),c(),l(5,"small",15),g(6),m(7,"translate"),c()()}if(2&t){const
e=d(3);a(2),S(f(3,7,"settings.rprofiles.mpeg2bitrate_label")),a(2),p("ngModel",e.profile.RecProfParams[e.findIx("mpeg2bitrate","6000")].Value)("showButtons",!0)("min",1e3)("max",16e3)("step",100),a(2),T("
",f(7,9,"settings.rprofiles.mpeg2bitrate_desc")," ")}}function
uie(t,i){if(1&t){const
e=I();l(0,"div",12)(1,"label",59),g(2),m(3,"translate"),c(),l(4,"p-inputNumber",60),C("ngModelChange",function(s){v(e);const
r=d(3);return
r.profile.RecProfParams[r.findIx("mpeg2maxbitrate","4500")].Value=s}),c(),l(5,"small",15),g(6),m(7,"translate"),c()()}if(2&t){const
e=d(3);a(2),S(f(3,7,"settings.rprofiles.mpeg2maxbitrate_label")),a(2),p("ngModel",e.profile.RecProfParams[e.findIx("mpeg2maxbitrate","4500")].Value)("showButtons",!0)("min",1e3)("max",16e3)("step",100),a(2),T("
",f(7,9,"settings.rprofiles.mpeg2maxbitrate_desc")," ")}}function
die(t,i){if(1&t){const e=I();l(0,"p-field
set",25),m(1,"translate"),l(2,"div",12)(3,"label",61),g(4),m(5,"translate"),c(),l(6,"p-inputNumber",62),C("ngModelChange",function(s){v(e);const
r=d(3);return
r.profile.RecProfParams[r.findIx("low_mpeg4avgbitrate","4500")].Value=s}),c(),l(7,"small",15),g(8),m(9,"translate"),c()(),l(10,"div",12)(11,"label",63),g(12),m(13,"translate"),c(),l(14,"p-inputNumber",64),C("ngModelChange",function(s){v(e);const
r=d(3);return
r.profile.RecProfParams[r.findIx("low_mpeg4peakbitrate","6000")].Value=s}),c(),l(15,"small",15),g(16),m(17,"translate"),c()()()}if(2&t){const
e=d(3);x("legend",f(1,17,"settings.rprofiles.lowres_label")),p("toggleable",!0)("collapsed",!0),a(4),S(f(5,19,"settings.rprofiles.mpeg2bitrate_label")),a(2),p("ngModel",e.profile.RecProfParams[e.findIx("low_mpeg4avgbitrate","4500")].Value)("showButtons",!0)("min",1e3)("max",13500)("step",500),a(2),T("
",f(9,21,"settings.rprofiles.mpeg2bitrate_desc"),"
"),a(4),S(f(13,23,"settings.rprofiles.mpeg2maxbitrate_label")),a(2),p("ngModel",e.
profile.RecProfParams[e.findIx("low_mpeg4peakbitrate","6000")].Value)("showButtons",!0)("min",1100)("max",20200)("step",500),a(2),T("
",f(17,25,"settings.rprofiles.mpeg2maxbitrate_desc"),"
")}}function pie(t,i){if(1&t){const
e=I();l(0,"p-fieldset",25),m(1,"translate"),l(2,"div",12)(3,"label",65),g(4),m(5,"translate"),c(),l(6,"p-inputNumber",66),C("ngModelChange",function(s){v(e);const
r=d(3);return
r.profile.RecProfParams[r.findIx("medium_mpeg4avgbitrate","9000")].Value=s}),c(),l(7,"small",15),g(8),m(9,"translate"),c()(),l(10,"div",12)(11,"label",67),g(12),m(13,"translate"),c(),l(14,"p-inputNumber",68),C("ngModelChange",function(s){v(e);const
r=d(3);return
r.profile.RecProfParams[r.findIx("medium_mpeg4peakbitrate","11000")].Value=s}),c(),l(15,"small",15),g(16),m(17,"translate"),c()()()}if(2&t){const
e=d(3);x("legend",f(1,17,"settings.rprofiles.medres_label")),p("toggleable",!0)("collapsed",!0),a(4),S(f(5,19,"settings.rprofiles.mpeg2bitrate_label")),a(2),p("ngModel",e.profile.RecProf
Params[e.findIx("medium_mpeg4avgbitrate","9000")].Value)("showButtons",!0)("min",1e3)("max",13500)("step",500),a(2),T("
",f(9,21,"settings.rprofiles.mpeg2bitrate_desc"),"
"),a(4),S(f(13,23,"settings.rprofiles.mpeg2maxbitrate_label")),a(2),p("ngModel",e.profile.RecProfParams[e.findIx("medium_mpeg4peakbitrate","11000")].Value)("showButtons",!0)("min",1100)("max",20200)("step",500),a(2),T("
",f(17,25,"settings.rprofiles.mpeg2maxbitrate_desc"),"
")}}function hie(t,i){if(1&t){const
e=I();l(0,"p-fieldset",25),m(1,"translate"),l(2,"div",12)(3,"label",69),g(4),m(5,"translate"),c(),l(6,"p-inputNumber",70),C("ngModelChange",function(s){v(e);const
r=d(3);return
r.profile.RecProfParams[r.findIx("high_mpeg4avgbitrate","13500")].Value=s}),c(),l(7,"small",15),g(8),m(9,"translate"),c()(),l(10,"div",12)(11,"label",71),g(12),m(13,"translate"),c(),l(14,"p-inputNumber",72),C("ngModelChange",function(s){v(e);const
r=d(3);return
r.profile.RecProfParams[r.findIx("high_mpeg4peakbitrate","20200")].Value=s})
,c(),l(15,"small",15),g(16),m(17,"translate"),c()()()}if(2&t){const
e=d(3);x("legend",f(1,17,"settings.rprofiles.highres_label")),p("toggleable",!0)("collapsed",!0),a(4),S(f(5,19,"settings.rprofiles.mpeg2bitrate_label")),a(2),p("ngModel",e.profile.RecProfParams[e.findIx("high_mpeg4avgbitrate","13500")].Value)("showButtons",!0)("min",1e3)("max",13500)("step",500),a(2),T("
",f(9,21,"settings.rprofiles.mpeg2bitrate_desc"),"
"),a(4),S(f(13,23,"settings.rprofiles.mpeg2maxbitrate_label")),a(2),p("ngModel",e.profile.RecProfParams[e.findIx("high_mpeg4peakbitrate","20200")].Value)("showButtons",!0)("min",1100)("max",20200)("step",500),a(2),T("
",f(17,25,"settings.rprofiles.mpeg2maxbitrate_desc"),"
")}}function mie(t,i){if(1&t){const
e=I();l(0,"div",12)(1,"p-checkbox",73,74),C("ngModelChange",function(s){v(e);const
r=d(3);return
r.profile.RecProfParams[r.findIx("scalebitrate",!0)].Value=s}),m(3,"translate"),c(),l(4,"small",15),g(5),m(6,"translate"),c()()}if(2&t){const
e=d(3);a(1),x("label",f(
3,4,"settings.rprofiles.scalebitrate_label")),p("ngModel",e.profile.RecProfParams[e.findIx("scalebitrate",!0)].Value)("binary",!0),a(4),T("
",f(6,6,"settings.rprofiles.scalebitrate_desc")," ")}}function
fie(t,i){if(1&t){const
e=I();l(0,"div",12)(1,"p-checkbox",75,76),C("ngModelChange",function(s){v(e);const
r=d(3);return
r.profile.RecProfParams[r.findIx("mpeg4optionvhq",!1)].Value=s}),m(3,"translate"),c(),l(4,"small",15),g(5),m(6,"translate"),c()()}if(2&t){const
e=d(3);a(1),x("label",f(3,4,"settings.rprofiles.mpeg4optionvhq_label")),p("ngModel",e.profile.RecProfParams[e.findIx("mpeg4optionvhq",!1)].Value)("binary",!0),a(4),T("
",f(6,6,"settings.rprofiles.mpeg4optionvhq_desc")," ")}}function
gie(t,i){if(1&t){const
e=I();l(0,"div",12)(1,"p-checkbox",77,78),C("ngModelChange",function(s){v(e);const
r=d(3);return
r.profile.RecProfParams[r.findIx("mpeg4option4mv",!1)].Value=s}),m(3,"translate"),c(),l(4,"small",15),g(5),m(6,"translate"),c()()}if(2&t){const
e=d(3);a(1),x("label",f(3,4,"sett
ings.rprofiles.mpeg4option4mv_label")),p("ngModel",e.profile.RecProfParams[e.findIx("mpeg4option4mv",!1)].Value)("binary",!0),a(4),T("
",f(6,6,"settings.rprofiles.mpeg4option4mv_desc")," ")}}function
_ie(t,i){if(1&t){const
e=I();l(0,"div",12)(1,"p-checkbox",79,80),C("ngModelChange",function(s){v(e);const
r=d(3);return
r.profile.RecProfParams[r.findIx("mpeg4optionidct",!1)].Value=s}),m(3,"translate"),c(),l(4,"small",15),g(5),m(6,"translate"),c()()}if(2&t){const
e=d(3);a(1),x("label",f(3,4,"settings.rprofiles.mpeg4optionidct_label")),p("ngModel",e.profile.RecProfParams[e.findIx("mpeg4optionidct",!1)].Value)("binary",!0),a(4),T("
",f(6,6,"settings.rprofiles.mpeg4optionidct_desc")," ")}}function
bie(t,i){if(1&t){const
e=I();l(0,"div",12)(1,"p-checkbox",81,82),C("ngModelChange",function(s){v(e);const
r=d(3);return
r.profile.RecProfParams[r.findIx("mpeg4optionime",!1)].Value=s}),m(3,"translate"),c(),l(4,"small",15),g(5),m(6,"translate"),c()()}if(2&t){const
e=d(3);a(1),x("label",f(3,4,"set
tings.rprofiles.mpeg4optionime_label")),p("ngModel",e.profile.RecProfParams[e.findIx("mpeg4optionime",!1)].Value)("binary",!0),a(4),T("
",f(6,6,"settings.rprofiles.mpeg4optionime_desc")," ")}}function
vie(t,i){if(1&t){const
e=I();l(0,"div",12)(1,"label",83),g(2),m(3,"translate"),c(),l(4,"p-inputNumber",84),C("ngModelChange",function(s){v(e);const
r=d(3);return
r.profile.RecProfParams[r.findIx("encodingthreadcount","1")].Value=s}),c(),l(5,"small",15),g(6),m(7,"translate"),c()()}if(2&t){const
e=d(3);a(2),S(f(3,7,"settings.rprofiles.encodingthreadcount_label")),a(2),p("ngModel",e.profile.RecProfParams[e.findIx("encodingthreadcount","1")].Value)("showButtons",!0)("min",1)("max",8)("step",1),a(2),T("
",f(7,9,"settings.rprofiles.encodingthreadcount_desc"),"
")}}function
Cie(t,i){if(1&t&&(l(0,"p-fieldset",25),m(1,"translate"),_(2,Qne,7,10,"div",10),_(3,Jne,8,11,"div",10),_(4,Yne,8,11,"div",10),_(5,Zne,8,11,"div",10),_(6,Xne,8,11,"div",10),_(7,eie,8,11,"div",10),_(8,tie,8,11,"div",10),_(9,n
ie,6,8,"div",10),_(10,iie,7,11,"div",10),_(11,sie,7,11,"div",10),_(12,rie,8,11,"div",10),_(13,oie,9,13,"div",10),_(14,lie,9,14,"div",10),_(15,cie,8,11,"div",10),_(16,uie,8,11,"div",10),_(17,die,18,27,"p-fieldset",11),_(18,pie,18,27,"p-fieldset",11),_(19,hie,18,27,"p-fieldset",11),_(20,mie,7,8,"div",10),_(21,fie,7,8,"div",10),_(22,gie,7,8,"div",10),_(23,_ie,7,8,"div",10),_(24,bie,7,8,"div",10),_(25,vie,8,11,"div",10),c()),2&t){const
e=d(2);x("legend",f(1,27,"settings.rprofiles.video_label")),p("toggleable",!0)("collapsed",!0),a(2),p("ngIf",e.params.Video.length>0),a(1),p("ngIf","RTjpeg"==e.profile.VideoCodec),a(1),p("ngIf","RTjpeg"==e.profile.VideoCodec),a(1),p("ngIf","RTjpeg"==e.profile.VideoCodec),a(1),p("ngIf","MPEG-4"==e.profile.VideoCodec),a(1),p("ngIf","MPEG-4"==e.profile.VideoCodec),a(1),p("ngIf","MPEG-4"==e.profile.VideoCodec),a(1),p("ngIf","Hardware
MJPEG"==e.profile.VideoCodec),a(1),p("ngIf","Hardware
MJPEG"==e.profile.VideoCodec),a(1),p("ngIf","Hardware
MJPEG"==e.profile.V
ideoCodec),a(1),p("ngIf","MPEG-4"==e.profile.VideoCodec),a(1),p("ngIf","MPEG-2
Hardware Encoder"==e.profile.VideoCodec),a(1),p("ngIf","MPEG-2
Hardware
Encoder"==e.profile.VideoCodec),a(1),p("ngIf","MPEG-2"==e.profile.VideoCodec||"MPEG-2
Hardware Encoder"==e.profile.VideoCodec),a(1),p("ngIf","MPEG-2
Hardware Encoder"==e.profile.VideoCodec),a(1),p("ngIf","MPEG-4 AVC
Hardware Encoder"==e.profile.VideoCodec),a(1),p("ngIf","MPEG-4 AVC
Hardware Encoder"==e.profile.VideoCodec),a(1),p("ngIf","MPEG-4 AVC
Hardware
Encoder"==e.profile.VideoCodec),a(1),p("ngIf","MPEG-4"==e.profile.VideoCodec||"MPEG-2"==e.profile.VideoCodec),a(1),p("ngIf","MPEG-4"==e.profile.VideoCodec),a(1),p("ngIf","MPEG-4"==e.profile.VideoCodec),a(1),p("ngIf","MPEG-4"==e.profile.VideoCodec),a(1),p("ngIf","MPEG-4"==e.profile.VideoCodec),a(1),p("ngIf","MPEG-4"==e.profile.VideoCodec||"MPEG-2"==e.profile.VideoCodec)}}function
yie(t,i){if(1&t){const
e=I();l(0,"div",12)(1,"label",85),g(2),m(3,"translate"),c(),l(4,"p-dropdown",86,87
),C("ngModelChange",function(s){return
v(e),d(3).profile.AudioCodec=s}),c(),k(6,"small",15),c()}if(2&t){const
e=d(3);a(2),S(f(3,7,"settings.rprofiles.audiocodec_label")),a(2),q(A(9,Ms)),p("options",e.params.Audio)("ngModel",e.profile.AudioCodec)("editable",!1)("maxlength",0)}}function
wie(t,i){if(1&t){const
e=I();l(0,"div",12)(1,"label",88),g(2),m(3,"translate"),c(),l(4,"p-dropdown",89,90),C("ngModelChange",function(s){v(e);const
r=d(3);return
r.profile.RecProfParams[r.findIx("samplerate","32000")].Value=s}),c(),l(6,"small",15),g(7),m(8,"translate"),c()()}if(2&t){const
e=d(3);a(2),S(f(3,8,"settings.rprofiles.samplerate_label")),a(2),q(A(12,Ms)),p("options",e.samplerateOptions)("ngModel",e.profile.RecProfParams[e.findIx("samplerate","32000")].Value)("editable",!1)("maxlength",0),a(3),T("
",f(8,10,"settings.rprofiles.samplerate_desc")," ")}}function
Tie(t,i){if(1&t){const
e=I();l(0,"div",12)(1,"label",91),g(2),m(3,"translate"),c(),l(4,"p-dropdown",92,93),C("ngModelChange",function(s){
v(e);const r=d(3);return
r.profile.RecProfParams[r.findIx("mpeg2language","32000")].Value=s}),c(),l(6,"small",15),g(7),m(8,"translate"),c()()}if(2&t){const
e=d(3);a(2),S(f(3,8,"settings.rprofiles.mpeg2language_label")),a(2),q(A(12,Ms)),p("options",e.mpeg2languageOptions)("ngModel",e.profile.RecProfParams[e.findIx("mpeg2language","32000")].Value)("editable",!1)("maxlength",0),a(3),T("
",f(8,10,"settings.rprofiles.mpeg2language_desc")," ")}}function
Sie(t,i){if(1&t){const
e=I();l(0,"div",12)(1,"label",94),g(2),m(3,"translate"),c(),l(4,"p-inputNumber",95),C("ngModelChange",function(s){v(e);const
r=d(3);return
r.profile.RecProfParams[r.findIx("mp3quality","1")].Value=s}),c(),l(5,"small",15),g(6),m(7,"translate"),c()()}if(2&t){const
e=d(3);a(2),S(f(3,7,"settings.rprofiles.mp3quality_label")),a(2),p("ngModel",e.profile.RecProfParams[e.findIx("mp3quality","1")].Value)("showButtons",!0)("min",1)("max",9)("step",1),a(2),T("
",f(7,9,"settings.rprofiles.mp3quality_desc")," ")}}function
xie(t,i
){if(1&t){const
e=I();l(0,"div",12)(1,"label",96),g(2),m(3,"translate"),c(),l(4,"p-inputNumber",97),C("ngModelChange",function(s){v(e);const
r=d(3);return
r.profile.RecProfParams[r.findIx("volume","90")].Value=s}),c(),l(5,"small",15),g(6),m(7,"translate"),c()()}if(2&t){const
e=d(3);a(2),S(f(3,7,"settings.rprofiles.volume_label")),a(2),p("ngModel",e.profile.RecProfParams[e.findIx("volume","90")].Value)("showButtons",!0)("min",0)("max",100)("step",1),a(2),T("
",f(7,9,"settings.rprofiles.volume_desc")," ")}}function
Die(t,i){if(1&t){const
e=I();l(0,"div",12)(1,"label",98),g(2),m(3,"translate"),c(),l(4,"p-inputNumber",99),C("ngModelChange",function(s){v(e);const
r=d(3);return
r.profile.RecProfParams[r.findIx("mpeg2audvolume","90")].Value=s}),c(),l(5,"small",15),g(6),m(7,"translate"),c()()}if(2&t){const
e=d(3);a(2),S(f(3,7,"settings.rprofiles.volume_label")),a(2),p("ngModel",e.profile.RecProfParams[e.findIx("mpeg2audvolume","90")].Value)("showButtons",!0)("min",0)("max",100)("step",1),a(
2),T(" ",f(7,9,"settings.rprofiles.mpeg2audvolume_desc"),"
")}}function
Mie(t,i){if(1&t&&(l(0,"p-fieldset",25),m(1,"translate"),_(2,yie,7,10,"div",10),_(3,wie,9,13,"div",10),_(4,Tie,9,13,"div",10),_(5,Sie,8,11,"div",10),_(6,xie,8,11,"div",10),_(7,Die,8,11,"div",10),c()),2&t){const
e=d(2);x("legend",f(1,9,"settings.rprofiles.audio_label")),p("toggleable",!0)("collapsed",!0),a(2),p("ngIf",e.params.Audio.length>0),a(1),p("ngIf","MP3"==e.profile.AudioCodec||"MPEG-2
Hardware
Encoder"==e.profile.AudioCodec||"Uncompressed"==e.profile.AudioCodec),a(1),p("ngIf","MPEG-2
Hardware
Encoder"==e.profile.AudioCodec),a(1),p("ngIf","MP3"==e.profile.AudioCodec),a(1),p("ngIf","MP3"==e.profile.AudioCodec||"Uncompressed"==e.profile.AudioCodec),a(1),p("ngIf","MPEG-2
Hardware Encoder"==e.profile.AudioCodec)}}function
kie(t,i){if(1&t&&(l(0,"div",8)(1,"div",9),_(2,zne,7,8,"div",10),_(3,jne,8,11,"div",10),_(4,$ne,8,11,"div",10),_(5,Wne,9,13,"div",10),_(6,Kne,7,8,"div",10),_(7,Cie,26,29,"p-fieldset",11),_(8,Mi
e,8,11,"p-fieldset",11),c()()),2&t){const
e=d();a(2),p("ngIf",e.params.Param.includes("autotranscode")),a(1),p("ngIf",e.params.Param.includes("width")),a(1),p("ngIf",e.params.Param.includes("height")),a(1),p("ngIf",e.params.Param.includes("recordingtype")),a(1),p("ngIf",e.params.Param.includes("recordmpts")),a(1),p("ngIf",e.params.Video.length>0),a(1),p("ngIf",e.params.Audio.length>0)}}function
Iie(t,i){1&t&&(k(0,"p-message",105),m(1,"translate")),2&t&&x("text",f(1,1,"common.savesuccess"))}function
Eie(t,i){1&t&&(k(0,"p-message",106),m(1,"translate")),2&t&&x("text",f(1,1,"common.networkfail"))}function
Rie(t,i){if(1&t){const
e=I();l(0,"div",100)(1,"div",101),_(2,Iie,2,3,"p-message",102),_(3,Eie,2,3,"p-message",103),c(),l(4,"p-button",104),C("onClick",function(){v(e);const
s=d(),r=F(1);return
s.saveForm(1),r.form.markAsPristine()}),m(5,"translate"),c()()}if(2&t){const
e=d(),n=F(1);a(2),p("ngIf",e.successCount>0&&0==e.errorCount&&!n.dirty),a(1),p("ngIf",e.errorCount>0),a(1),x("label",
f(5,4,"common.save")),p("disabled",!n.dirty||e.setupService.schedulingEnabled)}}let
Lie=(()=>{class
t{constructor(e,n,s){this.translate=e,this.captureCardService=n,this.setupService=s,this.successCount=0,this.errorCount=0,this.expectedCount=0,this.paramList=[{CardType:"V4L",Param:["autotranscode","height","width"],Video:["RTjpeg","MPEG-4"],Audio:["MP3","Uncompressed"]},{CardType:"MPEG",Param:["autotranscode","height","width"],Video:["MPEG-2
Hardware Encoder"],Audio:["MPEG-2 Hardware
Encoder"]},{CardType:"MJPEG",Param:["autotranscode","height","width"],Video:["Hardware
MJPEG"],Audio:["MP3","Uncompressed"]},{CardType:"HDTV",Param:["autotranscode","height","width"],Video:["RTjpeg","MPEG-4"],Audio:["MP3","Uncompressed"]},{CardType:"DVB",Param:["autotranscode","recordingtype","recordmpts"],Video:[],Audio:[]},{CardType:"FIREWIRE",Param:["autotranscode"],Video:[],Audio:[]},{CardType:"GO7007",Param:["autotranscode","height","width"],Video:["MPEG-4","MPEG-2"],Audio:["MP3","Uncompressed"]},{C
ardType:"IMPORT",Param:["autotranscode"],Video:[],Audio:[]},{CardType:"FREEBOX",Param:["autotranscode","recordmpts"],Video:[],Audio:[]},{CardType:"HDHOMERUN",Param:["autotranscode","recordingtype","recordmpts"],Video:[],Audio:[]},{CardType:"CRC_IP",Param:["autotranscode","height","width"],Video:["RTjpeg","MPEG-4"],Audio:["MP3","Uncompressed"]},{CardType:"HDPVR",Param:["autotranscode"],Video:["MPEG-4
AVC Hardware Encoder"],Audio:["AC3 Hardware Encoder","AAC Hardware
Encoder"]},{CardType:"ASI",Param:["autotranscode","recordmpts"],Video:[],Audio:[]},{CardType:"OCUR",Param:["autotranscode","height","width"],Video:["RTjpeg","MPEG-4"],Audio:["MP3","Uncompressed"]},{CardType:"CETON",Param:["autotranscode","recordmpts"],Video:[],Audio:[]},{CardType:"VBOX",Param:["autotranscode","recordmpts"],Video:[],Audio:[]},{CardType:"SATIP",Param:["autotranscode","recordingtype","recordmpts"],Video:[],Audio:[]},{CardType:"V4L2:uvcvideo",Param:["autotranscode","height","width"],Video:["V4L2:MPEG-2
Video"
],Audio:["V4L2:MPEG-1/2 Layer II
encoding"]},{CardType:"TRANSCODE",Param:["autotranscode","height","width"],Video:["RTjpeg","MPEG-4"],Audio:["MP3","Uncompressed"]}],this.params={CardType:"",Param:[""],Video:[""],Audio:[""]},this.videoParamList=[{Codec:"RTjpeg",Param:["rtjpegquality","rtjpeglumafilter","rtjpegchromafilter"]},{Codec:"MPEG-4",Param:["mpeg4bitrate","mpeg4maxquality","mpeg4minquality","mpeg4qualdiff","scalebitrate","mpeg4optionvhq","mpeg4option4mv","mpeg4optionidct","mpeg4optionime","encodingthreadcount"]},{Codec:"MPEG-2",Param:["mpeg2bitrate","scalebitrate","encodingthreadcount"]},{Codec:"Hardware
MJPEG",Param:["hardwaremjpegquality","hardwaremjpeghdecimation","hardwaremjpegvdecimation"]},{Codec:"MPEG-2
Hardware
Encoder",Param:["mpeg2streamtype","mpeg2aspectratio","mpeg2bitrate","mpeg2maxbitrate"]},{Codec:"MPEG-4
AVC Hardware
Encoder",Param:["low_mpeg4avgbitrate","low_mpeg4peakbitrate","medium_mpeg4avgbitrate","medium_mpeg4peakbitrate","high_mpeg4avgbitrate","high_mpeg4
peakbitrate"]},{Codec:"V4L2:MPEG-2
Video",Param:[]}],this.audioParamList=[{Codec:"MP3",Param:["samplerate","mp3quality","volume"]},{Codec:"MPEG-2
Hardware
Encoder",Param:["samplerate","mpeg2language","mpeg2audvolume"]},{Codec:"Uncompressed",Param:["samplerate","volume"]}],this.recordingtypeOptions=[{Name:"settings.rprofiles.rectype_normal",Value:"all"},{Name:"settings.rprofiles.rectype_tv",Value:"tv"},{Name:"settings.rprofiles.rectype_audio",Value:"audio"}],this.samplerateOptions=["32000","44100","48000"],this.streamTypeOptions=["MPEG-2
PS","MPEG-2 TS","MPEG-1 VCD","PES AV","PES
V","PES A","DVD","DVD-Special 1","DVD-Special
2"],this.mpeg2languageOptions=[{Name:"settings.rprofiles.lang_main",Value:"0"},{Name:"settings.rprofiles.lang_sap",Value:"1"},{Name:"settings.rprofiles.lang_dual",Value:"2"}],this.saveObserver={next:r=>{this.profile.Id&&r.bool?this.successCount++:!this.profile.Id&&r.int?(this.successCount++,this.profile.Id=r.int,this.saveForm(2)):(console.log("saveObserver
error"
,r),this.errorCount++,this.currentForm.form.markAsDirty())},error:r=>{console.log("saveObserver
error",r),this.errorCount++,this.currentForm.form.markAsDirty()}},this.recordingtypeOptions.forEach(r=>{e.get(r.Name).subscribe(o=>r.Name=o)}),this.mpeg2languageOptions.forEach(r=>{e.get(r.Name).subscribe(o=>r.Name=o)})}ngOnInit(){let
e=this.paramList.find(n=>n.CardType==this.group.CardType);e&&(this.params=e)}ngAfterViewInit(){this.setupService.setCurrentForm(this.currentForm),this.topElement.nativeElement.scrollIntoView({behavior:"smooth",block:"start"})}findIx(e,n){let
s=this.profile.RecProfParams.findIndex(r=>r.Name==e);return-1==s?s=this.profile.RecProfParams.push({Name:e,Value:n})-1:"boolean"==typeof
n&&"string"==typeof
this.profile.RecProfParams[s].Value&&(this.profile.RecProfParams[s].Value="1"==this.profile.RecProfParams[s].Value),s}saveForm(e){switch(e){case
1:if(this.successCount=0,this.errorCount=0,this.expectedCount=0,this.profile.Id<=0)return
this.captureCardService.AddRecPr
ofile(this.group.Id,this.profile.Name,this.profile.VideoCodec,this.profile.AudioCodec).subscribe(this.saveObserver),void
this.expectedCount++;this.captureCardService.UpdateRecProfile(this.profile.Id,this.profile.VideoCodec,this.profile.AudioCodec).subscribe(this.saveObserver),this.expectedCount++;case
2:this.saveParams(this.params.Param);let
n=this.videoParamList.find(r=>r.Codec==this.profile.VideoCodec);n?this.saveParams(n.Param):(console.log("ERROR
videoparams not found"),this.errorCount++,this.currentForm.form.markAsDirty());let
s=this.audioParamList.find(r=>r.Codec==this.profile.AudioCodec);s?this.saveParams(s.Param):(console.log("ERROR
audioparams not
found"),this.errorCount++,this.currentForm.form.markAsDirty())}}saveParams(e){e.forEach(n=>{let
s=this.profile.RecProfParams[this.findIx(n,"0")].Value;s="boolean"==typeof
s?s?"1":"0":s.toString(),this.captureCardService.UpdateRecProfileParam(this.profile.Id,n,s).subscribe(this.saveObserver),this.expectedCount++})}}return
t.\u0275f
ac=function(e){return
new(e||t)(D(Oe),D(Gt),D(Me))},t.\u0275cmp=z({type:t,selectors:[["app-recprofile"]],viewQuery:function(e,n){if(1&e&&(W(Hne,5),W(qne,5)),2&e){let
s;V(s=B())&&(n.currentForm=s.first),V(s=B())&&(n.topElement=s.first)}},inputs:{profile:"profile",group:"group",parentComponent:"parentComponent"},decls:9,vars:0,consts:[["name","recprofform",1,"ml-3","mr-3"],["recprofform","ngForm"],["top",""],[1,"m-5"],["pTemplate","title"],["pTemplate","subtitle"],["pTemplate","content"],["pTemplate","footer"],[1,"grid"],[1,"mb-4","w-full"],["class","form-group
field",4,"ngIf"],["class","mb-4
w-full",3,"legend","toggleable","collapsed",4,"ngIf"],[1,"form-group","field"],["inputId","autotranscode","name","autotranscode",1,"label","mb-2","w-full",3,"ngModel","binary","label","ngModelChange"],["autotranscode","ngModel"],[1,"block"],["for","width",1,"label","block"],["name","width","id","width",3,"ngModel","showButtons","min","max","step","ngModelChange"],["for","height",1,"label","block"
],["name","height","id","height",3,"ngModel","showButtons","min","max","step","ngModelChange"],["for","recordingtype",1,"label","block"],["optionLabel","Name","optionValue","Value","name","recordingtype",3,"options","ngModel","editable","maxlength","ngModelChange"],["recordingtype","ngModel"],["inputId","recordmpts","name","recordmpts",1,"label","mb-2","w-full",3,"ngModel","binary","label","ngModelChange"],["recordmpts","ngModel"],[1,"mb-4","w-full",3,"legend","toggleable","collapsed"],["for","VideoCodec",1,"label","block"],["name","VideoCodec",3,"options","ngModel","editable","maxlength","ngModelChange"],["VideoCodec","ngModel"],["for","rtjpegquality",1,"label","block"],["name","rtjpegquality","id","rtjpegquality",3,"ngModel","showButtons","min","max","step","ngModelChange"],["for","rtjpeglumafilter",1,"label","block"],["name","rtjpeglumafilter","id","rtjpeglumafilter",3,"ngModel","showButtons","min","max","step","ngModelChange"],["for","rtjpegchromafilter",1,"label","block"],["nam
e","rtjpegchromafilter","id","rtjpegchromafilter",3,"ngModel","showButtons","min","max","step","ngModelChange"],["for","mpeg4bitrate",1,"label","block"],["name","mpeg4bitrate","id","mpeg4bitrate",3,"ngModel","showButtons","min","max","step","ngModelChange"],["for","mpeg4maxquality",1,"label","block"],["name","mpeg4maxquality","id","mpeg4maxquality",3,"ngModel","showButtons","min","max","step","ngModelChange"],["for","mpeg4minquality",1,"label","block"],["name","mpeg4minquality","id","mpeg4minquality",3,"ngModel","showButtons","min","max","step","ngModelChange"],["for","hardwaremjpegquality",1,"label","block"],["name","hardwaremjpegquality","id","hardwaremjpegquality",3,"ngModel","showButtons","min","max","step","ngModelChange"],["for","hardwaremjpeghdecimation",1,"label","block"],["name","hardwaremjpeghdecimation",3,"options","ngModel","editable","maxlength","ngModelChange"],["hardwaremjpeghdecimation","ngModel"],["for","hardwaremjpegvdecimation",1,"label","block"],["name","hardware
mjpegvdecimation",3,"options","ngModel","editable","maxlength","ngModelChange"],["hardwaremjpegvdecimation","ngModel"],["for","mpeg4qualdiff",1,"label","block"],["name","mpeg4qualdiff","id","mpeg4qualdiff",3,"ngModel","showButtons","min","max","step","ngModelChange"],["for","mpeg2streamtype",1,"label","block"],["name","mpeg2streamtype",3,"options","ngModel","editable","maxlength","ngModelChange"],["mpeg2streamtype","ngModel"],["for","mpeg2aspectratio",1,"label","block"],["name","mpeg2aspectratio",3,"options","ngModel","editable","maxlength","ngModelChange"],["mpeg2aspectratio","ngModel"],["for","mpeg2bitrate",1,"label","block"],["name","mpeg2bitrate","id","mpeg2bitrate",3,"ngModel","showButtons","min","max","step","ngModelChange"],["for","mpeg2maxbitrate",1,"label","block"],["name","mpeg2maxbitrate","id","mpeg2maxbitrate",3,"ngModel","showButtons","min","max","step","ngModelChange"],["for","low_mpeg4avgbitrate",1,"label","block"],["name","low_mpeg4avgbitrate","id","low_mpeg4avgbitra
te",3,"ngModel","showButtons","min","max","step","ngModelChange"],["for","low_mpeg4peakbitrate",1,"label","block"],["name","low_mpeg4peakbitrate","id","low_mpeg4peakbitrate",3,"ngModel","showButtons","min","max","step","ngModelChange"],["for","medium_mpeg4avgbitrate",1,"label","block"],["name","medium_mpeg4avgbitrate","id","medium_mpeg4avgbitrate",3,"ngModel","showButtons","min","max","step","ngModelChange"],["for","medium_mpeg4peakbitrate",1,"label","block"],["name","medium_mpeg4peakbitrate","id","medium_mpeg4peakbitrate",3,"ngModel","showButtons","min","max","step","ngModelChange"],["for","high_mpeg4avgbitrate",1,"label","block"],["name","high_mpeg4avgbitrate","id","high_mpeg4avgbitrate",3,"ngModel","showButtons","min","max","step","ngModelChange"],["for","high_mpeg4peakbitrate",1,"label","block"],["name","high_mpeg4peakbitrate","id","high_mpeg4peakbitrate",3,"ngModel","showButtons","min","max","step","ngModelChange"],["inputId","scalebitrate","name","scalebitrate",1,"label","mb-2
","w-full",3,"ngModel","binary","label","ngModelChange"],["scalebitrate","ngModel"],["inputId","mpeg4optionvhq","name","mpeg4optionvhq",1,"label","mb-2","w-full",3,"ngModel","binary","label","ngModelChange"],["mpeg4optionvhq","ngModel"],["inputId","mpeg4option4mv","name","mpeg4option4mv",1,"label","mb-2","w-full",3,"ngModel","binary","label","ngModelChange"],["mpeg4option4mv","ngModel"],["inputId","mpeg4optionidct","name","mpeg4optionidct",1,"label","mb-2","w-full",3,"ngModel","binary","label","ngModelChange"],["mpeg4optionidct","ngModel"],["inputId","mpeg4optionime","name","mpeg4optionime",1,"label","mb-2","w-full",3,"ngModel","binary","label","ngModelChange"],["mpeg4optionime","ngModel"],["for","encodingthreadcount",1,"label","block"],["name","encodingthreadcount","id","encodingthreadcount",3,"ngModel","showButtons","min","max","step","ngModelChange"],["for","AudioCodec",1,"label","block"],["name","AudioCodec",3,"options","ngModel","editable","maxlength","ngModelChange"],["AudioCo
dec","ngModel"],["for","samplerate",1,"label","block"],["name","samplerate",3,"options","ngModel","editable","maxlength","ngModelChange"],["samplerate","ngModel"],["for","mpeg2language",1,"label","block"],["optionLabel","Name","optionValue","Value","name","mpeg2language",3,"options","ngModel","editable","maxlength","ngModelChange"],["mpeg2language","ngModel"],["for","mp3quality",1,"label","block"],["name","mp3quality","id","mp3quality",3,"ngModel","showButtons","min","max","step","ngModelChange"],["for","volume",1,"label","block"],["name","volume","id","volume",3,"ngModel","showButtons","min","max","step","ngModelChange"],["for","mpeg2audvolume",1,"label","block"],["name","mpeg2audvolume","id","mpeg2audvolume",3,"ngModel","showButtons","min","max","step","ngModelChange"],[1,"grid","nogutter"],[1,"col-12"],["severity","success",3,"text",4,"ngIf"],["severity","error",3,"text",4,"ngIf"],["icon","pi
pi-save","iconPos","left",1,"col","pr-1",3,"label","disabled","onClick"],["severity","su
ccess",3,"text"],["severity","error",3,"text"]],template:function(e,n){1&e&&(l(0,"form",0,1),k(2,"span",null,2),l(4,"p-card",3),_(5,Gne,2,4,"ng-template",4),_(6,Une,0,0,"ng-template",5),_(7,kie,9,7,"ng-template",6),_(8,Rie,6,6,"ng-template",7),c()())},directives:[ze,Ue,He,Ne,ne,Q,sn,Te,_e,pt,Ot,_n,Ui,qe,ve],pipes:[ce],styles:[""]}),t})();const
Oie=["v4l2form"],Aie=["top"];function
Pie(t,i){1&t&&(g(0),m(1,"translate")),2&t&&T("
",f(1,1,"settings.capture.v4l2.title")," ")}function
Fie(t,i){}const Nie=function(){return{minWidth:"80%"}};function
Vie(t,i){if(1&t){const
e=I();l(0,"p-dropdown",17,18),C("ngModelChange",function(s){return
v(e),d(2).currentDevice=s})("onChange",function(){return
v(e),d(2).updateDevice()}),c()}if(2&t){const
e=d(2);q(A(6,Nie)),p("options",e.captureDeviceList.CaptureDeviceList.CaptureDevices)("ngModel",e.currentDevice)("editable",!1)("maxlength",0)}}function
Bie(t,i){if(1&t&&(l(0,"div")(1,"small",19),g(2),c()()),2&t){const
e=d(2);a(2),T(" ",e.warningMessage," ")
}}function Hie(t,i){if(1&t){const
e=I();l(0,"input",20,21),C("ngModelChange",function(s){return
v(e),d(2).currentDevice.FrontendName=s}),c()}2&t&&p("ngModel",d(2).currentDevice.FrontendName)}function
qie(t,i){if(1&t&&(l(0,"div",8)(1,"div",9)(2,"div",10)(3,"label",11),g(4),m(5,"translate"),c(),_(6,Vie,2,7,"p-dropdown",12),_(7,Bie,3,1,"div",13),l(8,"small",14),g(9),m(10,"translate"),c()(),l(11,"div",10)(12,"label",15),g(13),m(14,"translate"),c(),_(15,Hie,2,1,"input",16),l(16,"small",14),g(17),m(18,"translate"),c()()()()),2&t){const
e=d();a(4),S(f(5,7,"settings.capture.v4l2.device_label")),a(2),p("ngIf",e.isReady),a(1),p("ngIf",e.warningMessage),a(2),T("
",f(10,9,"settings.capture.device_desc"),"
"),a(4),S(f(14,11,"settings.capture.v4l2.frontend_label")),a(2),p("ngIf",e.isReady),a(2),T("
",f(18,13,"settings.capture.frontend_desc")," ")}}function
Gie(t,i){1&t&&(k(0,"p-message",27),m(1,"translate")),2&t&&x("text",f(1,1,"common.savesuccess"))}function
Uie(t,i){1&t&&(k(0,"p-message",28),m(
1,"translate")),2&t&&x("text",f(1,1,"common.networkfail"))}function
zie(t,i){if(1&t){const
e=I();l(0,"div",22)(1,"div",23),_(2,Gie,2,3,"p-message",24),_(3,Uie,2,3,"p-message",25),c(),l(4,"p-button",26),C("onClick",function(){v(e);const
s=d(),r=F(1);return
s.saveForm(),r.form.markAsPristine()}),m(5,"translate"),c()()}if(2&t){const
e=d(),n=F(1);a(2),p("ngIf",e.successCount>0&&0==e.errorCount&&!n.dirty),a(1),p("ngIf",e.errorCount>0),a(1),x("label",f(5,4,"common.save")),p("disabled",!n.dirty||!e.card.VideoDevice||e.setupService.schedulingEnabled)}}let
jie=(()=>{class
t{constructor(e,n,s){this.captureCardService=e,this.setupService=n,this.translate=s,this.messages={devNotExist:"settings.capture.dvb.devNotExist",unknownName:"settings.capture.dvb.unknownName",devInUse:"settings.capture.dvb.devInUse",noDevSelected:"settings.capture.dvb.noDevSelected"},this.captureDeviceList={CaptureDeviceList:{CaptureDevices:[]}},this.currentDevice={FrontendName:"Unknown",InputNames:[""]},this.isReady=!1,th
is.warningMessage="",this.errorCount=0,this.successCount=0,this.saveObserver={next:r=>{this.card.CardId&&r.bool?this.successCount++:!this.card.CardId&&r.int?(this.successCount++,this.card.CardId=r.int):(this.errorCount++,this.currentForm.form.markAsDirty())},error:r=>{console.error(r),this.errorCount++,this.currentForm.form.markAsDirty()}},s.get(this.messages.devNotExist).subscribe(r=>this.messages.devNotExist=r),s.get(this.messages.unknownName).subscribe(r=>this.messages.unknownName=r),s.get(this.messages.devInUse).subscribe(r=>this.messages.devInUse=r),s.get(this.messages.noDevSelected).subscribe(r=>this.messages.noDevSelected=r)}ngOnInit(){this.captureCardService.GetCaptureDeviceList("V4L2ENC").subscribe({next:e=>{this.captureDeviceList=e,this.setupDevice()},error:e=>{console.log("GetCaptureDeviceList",e),this.errorCount++}})}ngAfterViewInit(){this.setupService.setCurrentForm(this.currentForm),this.topElement.nativeElement.scrollIntoView({behavior:"smooth",block:"start"})}setupDe
vice(){if(this.card.VideoDevice||this.captureDeviceList.CaptureDeviceList.CaptureDevices.unshift({VideoDevice:"",FrontendName:this.messages.noDevSelected,InputNames:[""]}),this.card.VideoDevice){let
e=this.captureDeviceList.CaptureDeviceList.CaptureDevices.find(n=>n.VideoDevice==this.card.VideoDevice);e?this.currentDevice=e:(this.currentDevice={VideoDevice:this.card.VideoDevice,FrontendName:this.messages.devNotExist,InputNames:[""]},this.captureDeviceList.CaptureDeviceList.CaptureDevices.push(this.currentDevice))}this.currentDevice&&this.card.InputName&&(this.currentDevice.InputNames.includes(this.card.InputName)||this.currentDevice.InputNames.push(this.card.InputName)),this.isReady=!0}updateDevice(){this.card.VideoDevice=this.currentDevice.VideoDevice,this.card.InputName=this.currentDevice.DefaultInputName,this.card.SignalTimeout=this.currentDevice.SignalTimeout,this.card.ChannelTimeout=this.currentDevice.ChannelTimeout,this.checkInUse()}checkInUse(){this.warningMessage=this.cardLi
st.CaptureCardList.CaptureCards.find(n=>n.VideoDevice==this.currentDevice.VideoDevice&&n.CardId!=this.card.CardId)?this.messages.devInUse:""}saveForm(){this.successCount=0,this.errorCount=0,this.card.CardId?this.cardList.CaptureCardList.CaptureCards.forEach(e=>{(e.CardId==this.card.CardId||e.ParentId==this.card.CardId)&&this.captureCardService.UpdateCaptureCard(e.CardId,"videodevice",this.card.VideoDevice).subscribe(this.saveObserver)}):this.captureCardService.AddCaptureCard(this.card).subscribe(this.saveObserver)}}return
t.\u0275fac=function(e){return
new(e||t)(D(Gt),D(Me),D(Oe))},t.\u0275cmp=z({type:t,selectors:[["app-v4l2"]],viewQuery:function(e,n){if(1&e&&(W(Oie,5),W(Aie,5)),2&e){let
s;V(s=B())&&(n.currentForm=s.first),V(s=B())&&(n.topElement=s.first)}},inputs:{card:"card",cardList:"cardList"},decls:9,vars:0,consts:[["name","v4l2form",1,"ml-3","mr-3"],["v4l2form","ngForm"],["top",""],[1,"m-5"],["pTemplate","title"],["pTemplate","subtitle"],["pTemplate","content"],["pTemplate","f
ooter"],[1,"grid"],[1,"mb-4","w-full"],[1,"form-group","field"],["for","VideoDevice",1,"label","block"],["optionLabel","VideoDevice","name","VideoDevice",3,"options","ngModel","editable","maxlength","style","ngModelChange","onChange",4,"ngIf"],[4,"ngIf"],[1,"block"],["for","FrontendName",1,"label","block"],["pInputText","","id","FrontendName","name","FrontendName","disabled","true","class","mb-2
form-control
w-full",3,"ngModel","ngModelChange",4,"ngIf"],["optionLabel","VideoDevice","name","VideoDevice",3,"options","ngModel","editable","maxlength","ngModelChange","onChange"],["VideoDevice","ngModel"],[1,"p-error","block"],["pInputText","","id","FrontendName","name","FrontendName","disabled","true",1,"mb-2","form-control","w-full",3,"ngModel","ngModelChange"],["FrontendName","ngModel"],[1,"grid","nogutter"],[1,"col-12"],["severity","success",3,"text",4,"ngIf"],["severity","error",3,"text",4,"ngIf"],["icon","pi
pi-save","iconPos","left",1,"col","pr-1",3,"label","disabled","onClick"],["
severity","success",3,"text"],["severity","error",3,"text"]],template:function(e,n){1&e&&(l(0,"form",0,1),k(2,"span",null,2),l(4,"p-card",3),_(5,Pie,2,3,"ng-template",4),_(6,Fie,0,0,"ng-template",5),_(7,qie,19,15,"ng-template",6),_(8,zie,6,6,"ng-template",7),c()())},directives:[ze,Ue,He,Ne,ne,Q,Ot,Te,_e,_n,Ye,qe,ve],pipes:[ce],styles:[""]}),t})();const
$ie=["hdpvrform"],Wie=["top"];function
Kie(t,i){1&t&&(g(0),m(1,"translate")),2&t&&T("
",f(1,1,"settings.capture.hdpvr.title")," ")}function
Qie(t,i){}const LS=function(){return{minWidth:"80%"}};function
Jie(t,i){if(1&t){const
e=I();l(0,"p-dropdown",21,22),C("ngModelChange",function(s){return
v(e),d(2).currentDevice=s})("onChange",function(){return
v(e),d(2).updateDevice()}),c()}if(2&t){const
e=d(2);q(A(6,LS)),p("options",e.captureDeviceList.CaptureDeviceList.CaptureDevices)("ngModel",e.currentDevice)("editable",!1)("maxlength",0)}}function
Yie(t,i){if(1&t&&(l(0,"div")(1,"small",23),g(2),c()()),2&t){const
e=d(2);a(2),T(" ",e.warningMes
sage," ")}}function Zie(t,i){if(1&t){const
e=I();l(0,"input",24,25),C("ngModelChange",function(s){return
v(e),d(2).currentDevice.FrontendName=s}),c()}2&t&&p("ngModel",d(2).currentDevice.FrontendName)}function
Xie(t,i){if(1&t){const
e=I();l(0,"p-dropdown",26,27),C("ngModelChange",function(s){return
v(e),d(2).card.AudioDevice=s}),c()}if(2&t){const
e=d(2);q(A(6,LS)),p("options",e.currentDevice.AudioDevices)("ngModel",e.card.AudioDevice)("editable",!1)("maxlength",0)}}function
ese(t,i){if(1&t){const
e=I();l(0,"div",8)(1,"div",9)(2,"div",10)(3,"label",11),g(4),m(5,"translate"),c(),_(6,Jie,2,7,"p-dropdown",12),_(7,Yie,3,1,"div",13),l(8,"small",14),g(9),m(10,"translate"),c()(),l(11,"div",10)(12,"label",15),g(13),m(14,"translate"),c(),_(15,Zie,2,1,"input",16),l(16,"small",14),g(17),m(18,"translate"),c()(),l(19,"div",10)(20,"label",17),g(21),m(22,"translate"),c(),_(23,Xie,2,7,"p-dropdown",18),l(24,"small",14),g(25),m(26,"translate"),c()(),l(27,"div",10)(28,"label",19),g(29),m(30,"translate")
,c(),l(31,"p-inputNumber",20),C("ngModelChange",function(s){return
v(e),d().card.ChannelTimeout=s}),c(),l(32,"small",14),g(33),m(34,"translate"),c()()()()}if(2&t){const
e=d();a(4),S(f(5,17,"settings.capture.v4l2.device_label")),a(2),p("ngIf",e.isReady),a(1),p("ngIf",e.warningMessage),a(2),T("
",f(10,19,"settings.capture.device_desc"),"
"),a(4),S(f(14,21,"settings.capture.v4l2.frontend_label")),a(2),p("ngIf",e.isReady),a(2),T("
",f(18,23,"settings.capture.frontend_desc"),"
"),a(4),S(f(22,25,"settings.capture.hdpvr.audiodevice_label")),a(2),p("ngIf",e.isReady),a(2),T("
",f(26,27,"settings.capture.hdpvr.audiodevice_desc"),"
"),a(4),S(f(30,29,"settings.capture.tunetimeout_label")),a(2),p("ngModel",e.card.ChannelTimeout)("showButtons",!0)("min",2e3)("max",65e3)("step",250),a(2),T("
",f(34,31,"settings.capture.tunetimeout_desc")," ")}}function
tse(t,i){1&t&&(k(0,"p-message",33),m(1,"translate")),2&t&&x("text",f(1,1,"common.savesuccess"))}function
nse(t,i){1&t&&(k(0,"p-message",34),m(1,"tr
anslate")),2&t&&x("text",f(1,1,"common.networkfail"))}function
ise(t,i){if(1&t){const
e=I();l(0,"div",28)(1,"div",29),_(2,tse,2,3,"p-message",30),_(3,nse,2,3,"p-message",31),c(),l(4,"p-button",32),C("onClick",function(){v(e);const
s=d(),r=F(1);return
s.saveForm(),r.form.markAsPristine()}),m(5,"translate"),c()()}if(2&t){const
e=d(),n=F(1);a(2),p("ngIf",e.successCount>0&&0==e.errorCount&&!n.dirty),a(1),p("ngIf",e.errorCount>0),a(1),x("label",f(5,4,"common.save")),p("disabled",!n.dirty||!e.card.VideoDevice||e.setupService.schedulingEnabled)}}let
sse=(()=>{class
t{constructor(e,n,s){this.captureCardService=e,this.setupService=n,this.translate=s,this.messages={devNotExist:"settings.capture.dvb.devNotExist",unknownName:"settings.capture.dvb.unknownName",devInUse:"settings.capture.dvb.devInUse",noDevSelected:"settings.capture.dvb.noDevSelected"},this.captureDeviceList={CaptureDeviceList:{CaptureDevices:[]}},this.currentDevice={FrontendName:"Unknown",InputNames:[""]},this.isReady=!1,this.wa
rningMessage="",this.errorCount=0,this.successCount=0,this.saveObserver={next:r=>{this.card.CardId&&r.bool?this.successCount++:!this.card.CardId&&r.int?(this.successCount++,this.card.CardId=r.int):(this.errorCount++,this.currentForm.form.markAsDirty())},error:r=>{console.error(r),this.errorCount++,this.currentForm.form.markAsDirty()}},s.get(this.messages.devNotExist).subscribe(r=>this.messages.devNotExist=r),s.get(this.messages.unknownName).subscribe(r=>this.messages.unknownName=r),s.get(this.messages.devInUse).subscribe(r=>this.messages.devInUse=r),s.get(this.messages.noDevSelected).subscribe(r=>this.messages.noDevSelected=r)}ngOnInit(){this.captureCardService.GetCaptureDeviceList("HDPVR").subscribe({next:e=>{this.captureDeviceList=e,this.setupDevice()},error:e=>{console.log("GetCaptureDeviceList",e),this.errorCount++}})}setupDevice(){if(this.card.VideoDevice||this.captureDeviceList.CaptureDeviceList.CaptureDevices.unshift({VideoDevice:"",FrontendName:this.messages.noDevSelected,In
putNames:[""]}),this.card.VideoDevice){let
e=this.captureDeviceList.CaptureDeviceList.CaptureDevices.find(n=>n.VideoDevice==this.card.VideoDevice);e?this.currentDevice=e:(this.currentDevice={VideoDevice:this.card.VideoDevice,FrontendName:this.messages.devNotExist,InputNames:[""]},this.captureDeviceList.CaptureDeviceList.CaptureDevices.push(this.currentDevice))}this.currentDevice&&this.card.InputName&&(this.currentDevice.InputNames.includes(this.card.InputName)||this.currentDevice.InputNames.push(this.card.InputName)),this.isReady=!0}updateDevice(){this.card.VideoDevice=this.currentDevice.VideoDevice,this.card.InputName=this.currentDevice.DefaultInputName,this.card.AudioDevice="",this.card.ChannelTimeout=this.currentDevice.ChannelTimeout,this.checkInUse()}checkInUse(){this.warningMessage=this.cardList.CaptureCardList.CaptureCards.find(n=>n.VideoDevice==this.currentDevice.VideoDevice&&n.CardId!=this.card.CardId)?this.messages.devInUse:""}saveForm(){this.successCount=0,this.errorCount=
0,this.card.CardId?this.cardList.CaptureCardList.CaptureCards.forEach(e=>{(e.CardId==this.card.CardId||e.ParentId==this.card.CardId)&&(this.captureCardService.UpdateCaptureCard(e.CardId,"videodevice",this.card.VideoDevice).subscribe(this.saveObserver),this.captureCardService.UpdateCaptureCard(e.CardId,"channel_timeout",String(this.card.ChannelTimeout)).subscribe(this.saveObserver),this.captureCardService.UpdateCaptureCard(e.CardId,"audiodevice",String(this.card.AudioDevice)).subscribe(this.saveObserver))}):this.captureCardService.AddCaptureCard(this.card).subscribe(this.saveObserver)}}return
t.\u0275fac=function(e){return
new(e||t)(D(Gt),D(Me),D(Oe))},t.\u0275cmp=z({type:t,selectors:[["app-hdpvr"]],viewQuery:function(e,n){if(1&e&&(W($ie,5),W(Wie,5)),2&e){let
s;V(s=B())&&(n.currentForm=s.first),V(s=B())&&(n.topElement=s.first)}},inputs:{card:"card",cardList:"cardList"},decls:9,vars:0,consts:[["name","hdpvrform",1,"ml-3","mr-3"],["dvbform","ngForm"],["top",""],[1,"m-5"],["pTemplate","
title"],["pTemplate","subtitle"],["pTemplate","content"],["pTemplate","footer"],[1,"grid"],[1,"mb-4","w-full"],[1,"form-group","field"],["for","VideoDevice",1,"label","block"],["optionLabel","VideoDevice","name","VideoDevice",3,"options","ngModel","editable","maxlength","style","ngModelChange","onChange",4,"ngIf"],[4,"ngIf"],[1,"block"],["for","FrontendName",1,"label","block"],["pInputText","","id","FrontendName","name","FrontendName","disabled","true","class","mb-2
form-control
w-full",3,"ngModel","ngModelChange",4,"ngIf"],["for","AudioDevice",1,"label","block"],["name","AudioDevice",3,"options","ngModel","editable","maxlength","style","ngModelChange",4,"ngIf"],["for","ChannelTimeout",1,"label","block"],["name","ChannelTimeout","id","ChannelTimeout",3,"ngModel","showButtons","min","max","step","ngModelChange"],["optionLabel","VideoDevice","name","VideoDevice",3,"options","ngModel","editable","maxlength","ngModelChange","onChange"],["VideoDevice","ngModel"],[1,"p-error","block"],["p
InputText","","id","FrontendName","name","FrontendName","disabled","true",1,"mb-2","form-control","w-full",3,"ngModel","ngModelChange"],["FrontendName","ngModel"],["name","AudioDevice",3,"options","ngModel","editable","maxlength","ngModelChange"],["AudioDevice","ngModel"],[1,"grid","nogutter"],[1,"col-12"],["severity","success",3,"text",4,"ngIf"],["severity","error",3,"text",4,"ngIf"],["icon","pi
pi-save","iconPos","left",1,"col","pr-1",3,"label","disabled","onClick"],["severity","success",3,"text"],["severity","error",3,"text"]],template:function(e,n){1&e&&(l(0,"form",0,1),k(2,"span",null,2),l(4,"p-card",3),_(5,Kie,2,3,"ng-template",4),_(6,Qie,0,0,"ng-template",5),_(7,ese,35,33,"ng-template",6),_(8,ise,6,6,"ng-template",7),c()())},directives:[ze,Ue,He,Ne,ne,Q,Ot,Te,_e,_n,Ye,pt,qe,ve],pipes:[ce],styles:[""]}),t})();const
rse=["satipform"],ose=["top"];function
ase(t,i){1&t&&(g(0),m(1,"translate")),2&t&&T("
",f(1,1,"settings.capture.satip.title")," ")}function
lse(t,i){}const cse=func
tion(){return{minWidth:"83%"}};function use(t,i){if(1&t){const
e=I();l(0,"p-dropdown",25,26),C("ngModelChange",function(s){return
v(e),d(2).currentDevice=s})("onChange",function(){return
v(e),d(2).updateDevice()}),c()}if(2&t){const
e=d(2);q(A(6,cse)),p("options",e.captureDeviceList.CaptureDeviceList.CaptureDevices)("ngModel",e.currentDevice)("editable",!1)("maxlength",0)}}function
dse(t,i){if(1&t&&(l(0,"div")(1,"small",27),g(2),c()()),2&t){const
e=d(2);a(2),T(" ",e.warningMessage," ")}}function
pse(t,i){if(1&t){const
e=I();l(0,"div",8)(1,"div",9)(2,"div",10)(3,"label",11),g(4),m(5,"translate"),c(),_(6,use,2,7,"p-dropdown",12),_(7,dse,3,1,"div",13),l(8,"small",14),g(9),m(10,"translate"),c()(),l(11,"div",10)(12,"label",15),g(13),m(14,"translate"),c(),l(15,"div",16),g(16),c(),l(17,"small",14),g(18),m(19,"translate"),c()(),l(20,"div",10)(21,"label",15),g(22),m(23,"translate"),c(),l(24,"div",16),g(25),c(),l(26,"small",14),g(27),m(28,"translate"),c()(),l(29,"div",10)(30,"label",15),g(31),
m(32,"translate"),c(),l(33,"div",16),g(34),c(),l(35,"small",14),g(36),m(37,"translate"),c()(),l(38,"div",10)(39,"label",15),g(40),m(41,"translate"),c(),l(42,"div",16),g(43),c(),l(44,"small",14),g(45),m(46,"translate"),c()(),l(47,"div",10)(48,"label",17),g(49),m(50,"translate"),c(),l(51,"p-inputNumber",18),C("ngModelChange",function(s){return
v(e),d().card.SignalTimeout=s}),c(),l(52,"small",14),g(53),m(54,"translate"),c()(),l(55,"div",10)(56,"label",19),g(57),m(58,"translate"),c(),l(59,"p-inputNumber",20),C("ngModelChange",function(s){return
v(e),d().card.ChannelTimeout=s}),c(),l(60,"small",14),g(61),m(62,"translate"),c()(),l(63,"div",10)(64,"p-checkbox",21,22),C("ngModelChange",function(s){return
v(e),d().card.DVBEITScan=s}),m(66,"translate"),c(),l(67,"small",14),g(68),m(69,"translate"),c()(),l(70,"div",10)(71,"label",23),g(72),m(73,"translate"),c(),l(74,"p-inputNumber",24),C("ngModelChange",function(s){return
v(e),d().card.DVBDiSEqCType=s}),c(),l(75,"small",14),g(76),m(77,"translat
e"),c()()()()}if(2&t){const
e=d();a(4),S(f(5,41,"settings.capture.satip.device_label")),a(2),p("ngIf",e.isReady),a(1),p("ngIf",e.warningMessage),a(2),T("
",f(10,43,"settings.capture.satip.device_desc"),"
"),a(4),S(f(14,45,"settings.capture.satip.friendly_label")),a(3),T("
",e.currentDevice.Description," \xa0 "),a(2),T("
",f(19,47,"settings.capture.satip.friendly_desc"),"
"),a(4),S(f(23,49,"settings.capture.satip.tunertype_label")),a(3),T("
",e.currentDevice.TunerType," \xa0 "),a(2),T("
",f(28,51,"settings.capture.tunertype_desc"),"
"),a(4),S(f(32,53,"settings.capture.satip.tunerindex_label")),a(3),T("
",e.currentDevice.TunerNumber," \xa0 "),a(2),T("
",f(37,55,"settings.capture.tunerindex_desc"),"
"),a(4),S(f(41,57,"settings.capture.satip.deviceid_label")),a(3),T("
",e.card.VideoDevice," \xa0 "),a(2),T("
",f(46,59,"settings.capture.deviceid_desc"),"
"),a(4),S(f(50,61,"settings.capture.sigtimeout_label")),a(2),p("ngModel",e.card.SignalTimeout)("showButtons",!0)("min",250)("max",6e4)("
step",250),a(2),T("
",f(54,63,"settings.capture.sigtimeout_desc"),"
"),a(4),S(f(58,65,"settings.capture.tunetimeout_label")),a(2),p("ngModel",e.card.ChannelTimeout)("showButtons",!0)("min",2e3)("max",65e3)("step",250),a(2),T("
",f(62,67,"settings.capture.tunetimeout_desc"),"
"),a(3),x("label",f(66,69,"settings.capture.dvb.eitscan_label")),p("ngModel",e.card.DVBEITScan)("binary",!0),a(4),T("
",f(69,71,"settings.capture.dvb.eitscan_desc"),"
"),a(4),S(f(73,73,"settings.capture.satip.diseqcpos_label")),a(2),p("ngModel",e.card.DVBDiSEqCType)("showButtons",!0)("min",1)("max",255)("step",1),a(2),T("
",f(77,75,"settings.capture.satip.diseqcpos_desc")," ")}}function
hse(t,i){1&t&&(k(0,"p-message",33),m(1,"translate")),2&t&&x("text",f(1,1,"common.savesuccess"))}function
mse(t,i){1&t&&(k(0,"p-message",34),m(1,"translate")),2&t&&x("text",f(1,1,"common.networkfail"))}function
fse(t,i){if(1&t){const
e=I();l(0,"div",28)(1,"div",29),_(2,hse,2,3,"p-message",30),_(3,mse,2,3,"p-message",31),c(),l(4,"p
-button",32),C("onClick",function(){v(e);const s=d(),r=F(1);return
s.saveForm(),r.form.markAsPristine()}),m(5,"translate"),c()()}if(2&t){const
e=d(),n=F(1);a(2),p("ngIf",e.successCount>0&&0==e.errorCount&&!n.dirty),a(1),p("ngIf",e.errorCount>0),a(1),x("label",f(5,4,"common.save")),p("disabled",!n.dirty||!e.card.VideoDevice||e.setupService.schedulingEnabled)}}let
gse=(()=>{class
t{constructor(e,n,s){this.captureCardService=e,this.setupService=n,this.translate=s,this.messages={devNotExist:"settings.capture.dvb.devNotExist",unknownName:"settings.capture.dvb.unknownName",devInUse:"settings.capture.dvb.devInUse",noDevSelected:"settings.capture.dvb.noDevSelected"},this.captureDeviceList={CaptureDeviceList:{CaptureDevices:[]}},this.currentDevice={FrontendName:"Unknown",InputNames:[""]},this.isReady=!1,this.warningMessage="",this.errorCount=0,this.successCount=0,this.saveObserver={next:r=>{this.card.CardId&&r.bool?this.successCount++:!this.card.CardId&&r.int?(this.successCount++,this.card.C
ardId=r.int,this.cardList.CaptureCardList.CaptureCards.push(this.card)):(this.errorCount++,this.currentForm.form.markAsDirty())},error:r=>{console.error(r),this.errorCount++,this.currentForm.form.markAsDirty()}},s.get(this.messages.devNotExist).subscribe(r=>this.messages.devNotExist=r),s.get(this.messages.unknownName).subscribe(r=>this.messages.unknownName=r),s.get(this.messages.devInUse).subscribe(r=>this.messages.devInUse=r),s.get(this.messages.noDevSelected).subscribe(r=>this.messages.noDevSelected=r)}ngOnInit(){this.captureCardService.GetCaptureDeviceList("SATIP").subscribe({next:e=>{this.captureDeviceList=e,this.setupDevice()},error:e=>{console.log("GetCaptureDeviceList",e),this.errorCount++}})}ngAfterViewInit(){this.setupService.setCurrentForm(this.currentForm),this.topElement.nativeElement.scrollIntoView({behavior:"smooth",block:"start"})}setupDevice(){if(this.card.VideoDevice||this.captureDeviceList.CaptureDeviceList.CaptureDevices.unshift({VideoDevice:"",VideoDevicePrompt:t
his.messages.noDevSelected}),this.card.VideoDevice){let
e=this.captureDeviceList.CaptureDeviceList.CaptureDevices.find(n=>n.VideoDevice==this.card.VideoDevice);e?this.currentDevice=e:(this.currentDevice={VideoDevice:this.card.VideoDevice,Description:this.messages.devNotExist},this.captureDeviceList.CaptureDeviceList.CaptureDevices.push(this.currentDevice))}this.isReady=!0}updateDevice(){this.card.VideoDevice=this.currentDevice.VideoDevice,this.card.ChannelTimeout=this.currentDevice.ChannelTimeout,this.card.SignalTimeout=this.currentDevice.SignalTimeout,this.checkInUse()}checkInUse(){this.warningMessage=this.cardList.CaptureCardList.CaptureCards.find(n=>n.VideoDevice==this.currentDevice.VideoDevice&&n.CardId!=this.card.CardId)?this.messages.devInUse:""}saveForm(){this.successCount=0,this.errorCount=0,this.card.CardId?this.cardList.CaptureCardList.CaptureCards.forEach(e=>{(e.CardId==this.card.CardId||e.ParentId==this.card.CardId)&&(this.captureCardService.UpdateCaptureCard(e.CardId,"v
ideodevice",this.card.VideoDevice).subscribe(this.saveObserver),this.captureCardService.UpdateCaptureCard(e.CardId,"signal_timeout",String(this.card.SignalTimeout)).subscribe(this.saveObserver),this.captureCardService.UpdateCaptureCard(e.CardId,"channel_timeout",String(this.card.ChannelTimeout)).subscribe(this.saveObserver),this.captureCardService.UpdateCaptureCard(e.CardId,"dvb_eitscan",String(this.card.DVBEITScan?"1":"0")).subscribe(this.saveObserver),this.captureCardService.UpdateCaptureCard(e.CardId,"dvb_diseqc_type",String(this.card.DVBDiSEqCType)).subscribe(this.saveObserver))}):this.captureCardService.AddCaptureCard(this.card).subscribe(this.saveObserver)}}return
t.\u0275fac=function(e){return
new(e||t)(D(Gt),D(Me),D(Oe))},t.\u0275cmp=z({type:t,selectors:[["app-satip"]],viewQuery:function(e,n){if(1&e&&(W(rse,5),W(ose,5)),2&e){let
s;V(s=B())&&(n.currentForm=s.first),V(s=B())&&(n.topElement=s.first)}},inputs:{card:"card",cardList:"cardList"},decls:9,vars:0,consts:[["name","sati
pform",1,"ml-3","mr-3"],["satipform","ngForm"],["top",""],[1,"m-5"],["pTemplate","title"],["pTemplate","subtitle"],["pTemplate","content"],["pTemplate","footer"],[1,"grid"],[1,"mb-4","w-full"],[1,"form-group","field"],["for","VideoDevice",1,"label","block"],["optionLabel","VideoDevicePrompt","name","VideoDevice",3,"options","ngModel","editable","maxlength","style","ngModelChange","onChange",4,"ngIf"],[4,"ngIf"],[1,"block"],[1,"label","block"],[1,"col-10","bg-blue-100","text-gray-900"],["for","SignalTimeout",1,"label","block"],["name","SignalTimeout","id","SignalTimeout",3,"ngModel","showButtons","min","max","step","ngModelChange"],["for","ChannelTimeout",1,"label","block"],["name","ChannelTimeout","id","ChannelTimeout",3,"ngModel","showButtons","min","max","step","ngModelChange"],["inputId","DVBEITScan","name","DVBEITScan",1,"label","mb-2","w-full",3,"ngModel","binary","label","ngModelChange"],["DVBEITScan","ngModel"],["for","DVBDiSEqCType",1,"label","block"],["name","DVBDiSEqCType"
,"id","DVBDiSEqCType",3,"ngModel","showButtons","min","max","step","ngModelChange"],["optionLabel","VideoDevicePrompt","name","VideoDevice",3,"options","ngModel","editable","maxlength","ngModelChange","onChange"],["VideoDevice","ngModel"],[1,"p-error","block"],[1,"grid","nogutter"],[1,"col-12"],["severity","success",3,"text",4,"ngIf"],["severity","error",3,"text",4,"ngIf"],["icon","pi
pi-save","iconPos","left",1,"col","pr-1",3,"label","disabled","onClick"],["severity","success",3,"text"],["severity","error",3,"text"]],template:function(e,n){1&e&&(l(0,"form",0,1),k(2,"span",null,2),l(4,"p-card",3),_(5,ase,2,3,"ng-template",4),_(6,lse,0,0,"ng-template",5),_(7,pse,78,77,"ng-template",6),_(8,fse,6,6,"ng-template",7),c()())},directives:[ze,Ue,He,Ne,ne,Q,Ot,Te,_e,_n,pt,sn,qe,ve],pipes:[ce],styles:[""]}),t})();const
_se=["vboxform"],bse=["top"];function
vse(t,i){1&t&&(g(0),m(1,"translate")),2&t&&T("
",f(1,1,"settings.capture.vbox.title")," ")}function
Cse(t,i){}const yse=function(){return{
minWidth:"83%"}};function wse(t,i){if(1&t){const
e=I();l(0,"p-dropdown",26,27),C("ngModelChange",function(s){return
v(e),d(2).currentDevice=s})("onChange",function(){return
v(e),d(2).updateDevice()}),c()}if(2&t){const
e=d(2);q(A(6,yse)),p("options",e.captureDeviceList.CaptureDeviceList.CaptureDevices)("ngModel",e.currentDevice)("editable",!1)("maxlength",0)}}function
Tse(t,i){if(1&t&&(l(0,"div")(1,"small",28),g(2),c()()),2&t){const
e=d(2);a(2),T(" ",e.warningMessage," ")}}function
Sse(t,i){if(1&t){const
e=I();l(0,"div",8)(1,"div",9)(2,"div",10)(3,"label",11),g(4),m(5,"translate"),c(),_(6,wse,2,7,"p-dropdown",12),_(7,Tse,3,1,"div",13),l(8,"small",14),g(9),m(10,"translate"),c()(),l(11,"div",10)(12,"label",15),g(13),m(14,"translate"),c(),l(15,"div",16),g(16),c(),l(17,"small",14),g(18),m(19,"translate"),c()(),l(20,"div",10)(21,"label",15),g(22),m(23,"translate"),c(),l(24,"div",16),g(25),c(),k(26,"small",14),c(),l(27,"div",10)(28,"label",17),g(29),m(30,"translate"),c(),l(31,"input",18,19
),C("ngModelChange",function(s){return
v(e),d().currentDevice.IPAddress=s}),c(),l(33,"small",14),g(34),m(35,"translate"),c()(),l(36,"div",10)(37,"label",20),g(38),m(39,"translate"),c(),l(40,"input",21,19),C("ngModelChange",function(s){return
v(e),d().currentDevice.TunerNumber=s}),c(),l(42,"small",14),g(43),m(44,"translate"),c()(),l(45,"div",10)(46,"label",22),g(47),m(48,"translate"),c(),l(49,"p-inputNumber",23),C("ngModelChange",function(s){return
v(e),d().card.SignalTimeout=s}),c(),l(50,"small",14),g(51),m(52,"translate"),c()(),l(53,"div",10)(54,"label",24),g(55),m(56,"translate"),c(),l(57,"p-inputNumber",25),C("ngModelChange",function(s){return
v(e),d().card.ChannelTimeout=s}),c(),l(58,"small",14),g(59),m(60,"translate"),c()()()()}if(2&t){const
e=d();a(4),S(f(5,31,"settings.capture.satip.device_label")),a(2),p("ngIf",e.isReady),a(1),p("ngIf",e.warningMessage),a(2),T("
",f(10,33,"settings.capture.vbox.device_desc"),"
"),a(4),S(f(14,35,"settings.capture.vbox.deviceid_label")),a(3),T
(" ",e.card.VideoDevice," \xa0 "),a(2),T("
",f(19,37,"settings.capture.vbox.deviceid_desc"),"
"),a(4),S(f(23,39,"settings.capture.vbox.description_label")),a(3),T("
",e.currentDevice.Description," \xa0
"),a(4),S(f(30,41,"settings.capture.ceton.ipaddress_label")),a(2),p("ngModel",e.currentDevice.IPAddress)("disabled",e.currentDevice!==e.manualDevice),a(3),T("
",f(35,43,"settings.capture.vbox.ipaddress_desc"),"
"),a(4),S(f(39,45,"settings.capture.ceton.tuner_label")),a(2),p("ngModel",e.currentDevice.TunerNumber)("disabled",e.currentDevice!==e.manualDevice),a(3),T("
",f(44,47,"settings.capture.vbox.tuner_desc"),"
"),a(4),S(f(48,49,"settings.capture.sigtimeout_label")),a(2),p("ngModel",e.card.SignalTimeout)("showButtons",!0)("min",250)("max",6e4)("step",250),a(2),T("
",f(52,51,"settings.capture.sigtimeout_desc"),"
"),a(4),S(f(56,53,"settings.capture.tunetimeout_label")),a(2),p("ngModel",e.card.ChannelTimeout)("showButtons",!0)("min",2e3)("max",65e3)("step",250),a(2),T("
",f(60,55,"setti
ngs.capture.tunetimeout_desc")," ")}}function
xse(t,i){1&t&&(k(0,"p-message",34),m(1,"translate")),2&t&&x("text",f(1,1,"common.savesuccess"))}function
Dse(t,i){1&t&&(k(0,"p-message",35),m(1,"translate")),2&t&&x("text",f(1,1,"common.networkfail"))}function
Mse(t,i){if(1&t){const
e=I();l(0,"div",29)(1,"div",30),_(2,xse,2,3,"p-message",31),_(3,Dse,2,3,"p-message",32),c(),l(4,"p-button",33),C("onClick",function(){v(e);const
s=d(),r=F(1);return
s.saveForm(),r.form.markAsPristine()}),m(5,"translate"),c()()}if(2&t){const
e=d(),n=F(1);a(2),p("ngIf",e.successCount>0&&0==e.errorCount&&!n.dirty),a(1),p("ngIf",e.errorCount>0),a(1),x("label",f(5,4,"common.save")),p("disabled",!n.dirty||!e.card.VideoDevice||e.setupService.schedulingEnabled)}}let
kse=(()=>{class
t{constructor(e,n,s){this.captureCardService=e,this.setupService=n,this.translate=s,this.messages={devNotExist:"settings.capture.dvb.devNotExist",unknownName:"settings.capture.dvb.unknownName",devInUse:"settings.capture.dvb.devInUse",noDev
Selected:"settings.capture.dvb.noDevSelected",manuallyEnter:"settings.capture.vbox.manuallyenter"},this.captureDeviceList={CaptureDeviceList:{CaptureDevices:[]}},this.currentDevice={FrontendName:"Unknown",InputNames:[""]},this.isReady=!1,this.warningMessage="",this.errorCount=0,this.successCount=0,this.saveObserver={next:r=>{this.card.CardId&&r.bool?this.successCount++:!this.card.CardId&&r.int?(this.successCount++,this.card.CardId=r.int,this.cardList.CaptureCardList.CaptureCards.push(this.card)):(this.errorCount++,this.currentForm.form.markAsDirty())},error:r=>{console.error(r),this.errorCount++,this.currentForm.form.markAsDirty()}},s.get(this.messages.devNotExist).subscribe(r=>this.messages.devNotExist=r),s.get(this.messages.unknownName).subscribe(r=>this.messages.unknownName=r),s.get(this.messages.devInUse).subscribe(r=>this.messages.devInUse=r),s.get(this.messages.noDevSelected).subscribe(r=>this.messages.noDevSelected=r),s.get(this.messages.manuallyEnter).subscribe(r=>this.messa
ges.manuallyEnter=r)}ngOnInit(){this.captureCardService.GetCaptureDeviceList("VBOX").subscribe({next:e=>{this.captureDeviceList=e,this.setupDevice()},error:e=>{console.log("GetCaptureDeviceList",e),this.errorCount++}})}ngAfterViewInit(){this.setupService.setCurrentForm(this.currentForm),this.topElement.nativeElement.scrollIntoView({behavior:"smooth",block:"start"})}setupDevice(){if(this.manualDevice={VideoDevicePrompt:this.messages.manuallyEnter,VideoDevice:"",Description:"",IPAddress:"",TunerNumber:0,SignalTimeout:7e3,ChannelTimeout:1e4},this.captureDeviceList.CaptureDeviceList.CaptureDevices.unshift(this.manualDevice),this.card.VideoDevice||this.captureDeviceList.CaptureDeviceList.CaptureDevices.unshift({VideoDevice:"",FrontendName:this.messages.noDevSelected}),this.card.VideoDevice){let
e=this.captureDeviceList.CaptureDeviceList.CaptureDevices.find(n=>n.VideoDevice==this.card.VideoDevice);e?this.currentDevice=e:(this.currentDevice={VideoDevice:this.card.VideoDevice,FrontendName:t
his.messages.devNotExist},this.captureDeviceList.CaptureDeviceList.CaptureDevices.push(this.currentDevice))}this.isReady=!0}updateDevice(){this.currentDevice===this.manualDevice?this.subscription=this.currentForm.valueChanges.pipe(yS(50)).subscribe(()=>this.card.VideoDevice=this.manualDevice.IPAddress+"-"+this.manualDevice.TunerNumber):this.subscription&&(this.subscription.unsubscribe(),this.subscription=void
0),this.card.VideoDevice=this.currentDevice.VideoDevice,this.card.ChannelTimeout=this.currentDevice.ChannelTimeout,this.card.SignalTimeout=this.currentDevice.SignalTimeout,this.checkInUse()}checkInUse(){this.warningMessage=this.cardList.CaptureCardList.CaptureCards.find(n=>n.VideoDevice==this.currentDevice.VideoDevice&&n.CardId!=this.card.CardId)?this.messages.devInUse:""}saveForm(){this.successCount=0,this.errorCount=0,this.card.CardId?this.cardList.CaptureCardList.CaptureCards.forEach(e=>{(e.CardId==this.card.CardId||e.ParentId==this.card.CardId)&&(this.captureCardService.Upd
ateCaptureCard(e.CardId,"videodevice",this.card.VideoDevice).subscribe(this.saveObserver),this.captureCardService.UpdateCaptureCard(e.CardId,"signal_timeout",String(this.card.SignalTimeout)).subscribe(this.saveObserver),this.captureCardService.UpdateCaptureCard(e.CardId,"channel_timeout",String(this.card.ChannelTimeout)).subscribe(this.saveObserver))}):this.captureCardService.AddCaptureCard(this.card).subscribe(this.saveObserver)}}return
t.\u0275fac=function(e){return
new(e||t)(D(Gt),D(Me),D(Oe))},t.\u0275cmp=z({type:t,selectors:[["app-vbox"]],viewQuery:function(e,n){if(1&e&&(W(_se,5),W(bse,5)),2&e){let
s;V(s=B())&&(n.currentForm=s.first),V(s=B())&&(n.topElement=s.first)}},inputs:{card:"card",cardList:"cardList"},decls:9,vars:0,consts:[["name","vboxform",1,"ml-3","mr-3"],["vboxform","ngForm"],["top",""],[1,"m-5"],["pTemplate","title"],["pTemplate","subtitle"],["pTemplate","content"],["pTemplate","footer"],[1,"grid"],["u","",1,"mb-4","w-full"],[1,"form-group","field"],["for","VideoDe
vicePrompt",1,"label","block"],["optionLabel","VideoDevicePrompt","name","VideoDevicePrompt",3,"options","ngModel","editable","maxlength","style","ngModelChange","onChange",4,"ngIf"],[4,"ngIf"],[1,"block"],[1,"label","block"],[1,"col-10","bg-blue-100","text-gray-900"],["for","ip",1,"label","block"],["pInputText","","id","ip","name","ip",1,"mb-2","form-control","w-full",3,"ngModel","disabled","ngModelChange"],["ipAddress","ngModel"],["for","tuner",1,"label","block"],["pInputText","","id","tuner","name","tuner",1,"mb-2","form-control","w-full",3,"ngModel","disabled","ngModelChange"],["for","SignalTimeout",1,"label","block"],["name","SignalTimeout","id","SignalTimeout",3,"ngModel","showButtons","min","max","step","ngModelChange"],["for","ChannelTimeout",1,"label","block"],["name","ChannelTimeout","id","ChannelTimeout",3,"ngModel","showButtons","min","max","step","ngModelChange"],["optionLabel","VideoDevicePrompt","name","VideoDevicePrompt",3,"options","ngModel","editable","maxlength","
ngModelChange","onChange"],["VideoDevicePrompt","ngModel"],[1,"p-error","block"],[1,"grid","nogutter"],[1,"col-12"],["severity","success",3,"text",4,"ngIf"],["severity","error",3,"text",4,"ngIf"],["icon","pi
pi-save","iconPos","left",1,"col","pr-1",3,"label","disabled","onClick"],["severity","success",3,"text"],["severity","error",3,"text"]],template:function(e,n){1&e&&(l(0,"form",0,1),k(2,"span",null,2),l(4,"p-card",3),_(5,vse,2,3,"ng-template",4),_(6,Cse,0,0,"ng-template",5),_(7,Sse,61,57,"ng-template",6),_(8,Mse,6,6,"ng-template",7),c()())},directives:[ze,Ue,He,Ne,ne,Q,Ot,Te,_e,_n,Ye,pt,qe,ve],pipes:[ce],styles:[""]}),t})();const
Ise=["firewireform"],Ese=["top"];function
Rse(t,i){1&t&&(g(0),m(1,"translate")),2&t&&T("
",f(1,1,"settings.capture.firewire.title")," ")}function
Lse(t,i){}const Ed=function(){return{minWidth:"83%"}};function
Ose(t,i){if(1&t){const
e=I();l(0,"p-dropdown",30,31),C("ngModelChange",function(s){return
v(e),d(2).currentDevice=s})("onChange",function(){return
v(e),d(2).updateDevice()}),c()}if(2&t){const
e=d(2);q(A(6,Ed)),p("options",e.captureDeviceList.CaptureDeviceList.CaptureDevices)("ngModel",e.currentDevice)("editable",!1)("maxlength",0)}}function
Ase(t,i){if(1&t&&(l(0,"div")(1,"small",32),g(2),c()()),2&t){const
e=d(2);a(2),T(" ",e.warningMessage," ")}}function
Pse(t,i){if(1&t){const
e=I();l(0,"div",8)(1,"div",9)(2,"div",10)(3,"label",11),g(4),m(5,"translate"),c(),_(6,Ose,2,7,"p-dropdown",12),_(7,Ase,3,1,"div",13),k(8,"small",14),c(),l(9,"div",10)(10,"label",15),g(11),m(12,"translate"),c(),l(13,"div",16),g(14),c(),k(15,"small",14),c(),l(16,"div",10)(17,"label",17),g(18),m(19,"translate"),c(),l(20,"p-dropdown",18,19),C("ngModelChange",function(s){return
v(e),d().card.FirewireModel=s}),c(),l(22,"small",14),g(23),m(24,"translate"),c()(),l(25,"div",10)(26,"label",20),g(27),m(28,"translate"),c(),l(29,"p-dropdown",21,22),C("ngModelChange",function(s){return
v(e),d().card.FirewireConnection=s}),c(),k(31,"small",14),c(),l(32,"div",10)(33,"la
bel",23),g(34),m(35,"translate"),c(),l(36,"p-dropdown",24,25),C("ngModelChange",function(s){return
v(e),d().card.FirewireSpeed=s}),c(),k(38,"small",14),c(),l(39,"div",10)(40,"label",26),g(41),m(42,"translate"),c(),l(43,"p-inputNumber",27),C("ngModelChange",function(s){return
v(e),d().card.SignalTimeout=s}),c(),l(44,"small",14),g(45),m(46,"translate"),c()(),l(47,"div",10)(48,"label",28),g(49),m(50,"translate"),c(),l(51,"p-inputNumber",29),C("ngModelChange",function(s){return
v(e),d().card.ChannelTimeout=s}),c(),l(52,"small",14),g(53),m(54,"translate"),c()()()()}if(2&t){const
e=d();a(4),S(f(5,41,"settings.capture.firewire.device_label")),a(2),p("ngIf",e.isReady),a(1),p("ngIf",e.warningMessage),a(4),S(f(12,43,"settings.capture.vbox.description_label")),a(3),T("
",e.currentDevice.Description," \xa0
"),a(4),S(f(19,45,"settings.capture.firewire.model_label")),a(2),q(A(61,Ed)),p("options",e.models)("ngModel",e.card.FirewireModel)("editable",!1)("maxlength",0),a(3),T("
",f(24,47,"settings.c
apture.firewire.model_desc"),"
"),a(4),S(f(28,49,"settings.capture.firewire.connection_label")),a(2),q(A(62,Ed)),p("options",e.connectionTypes)("ngModel",e.card.FirewireConnection)("editable",!1)("maxlength",0),a(5),S(f(35,51,"settings.capture.firewire.speed_label")),a(2),q(A(63,Ed)),p("options",e.speeds)("ngModel",e.card.FirewireSpeed)("editable",!1)("maxlength",0),a(5),S(f(42,53,"settings.capture.sigtimeout_label")),a(2),p("ngModel",e.card.SignalTimeout)("showButtons",!0)("min",250)("max",6e4)("step",250),a(2),T("
",f(46,55,"settings.capture.sigtimeout_desc"),"
"),a(4),S(f(50,57,"settings.capture.tunetimeout_label")),a(2),p("ngModel",e.card.ChannelTimeout)("showButtons",!0)("min",2e3)("max",65e3)("step",250),a(2),T("
",f(54,59,"settings.capture.tunetimeout_desc")," ")}}function
Fse(t,i){1&t&&(k(0,"p-message",38),m(1,"translate")),2&t&&x("text",f(1,1,"common.savesuccess"))}function
Nse(t,i){1&t&&(k(0,"p-message",39),m(1,"translate")),2&t&&x("text",f(1,1,"common.networkfail"))}funct
ion Vse(t,i){if(1&t){const
e=I();l(0,"div",33)(1,"div",34),_(2,Fse,2,3,"p-message",35),_(3,Nse,2,3,"p-message",36),c(),l(4,"p-button",37),C("onClick",function(){v(e);const
s=d(),r=F(1);return
s.saveForm(),r.form.markAsPristine()}),m(5,"translate"),c()()}if(2&t){const
e=d(),n=F(1);a(2),p("ngIf",e.successCount>0&&0==e.errorCount&&!n.dirty),a(1),p("ngIf",e.errorCount>0),a(1),x("label",f(5,4,"common.save")),p("disabled",!n.dirty||!e.card.VideoDevice||e.setupService.schedulingEnabled)}}let
Bse=(()=>{class
t{constructor(e,n,s){this.captureCardService=e,this.setupService=n,this.translate=s,this.messages={devNotExist:"settings.capture.dvb.devNotExist",unknownName:"settings.capture.dvb.unknownName",devInUse:"settings.capture.dvb.devInUse",noDevSelected:"settings.capture.dvb.noDevSelected",manuallyEnter:"settings.capture.vbox.manuallyenter"},this.models=[{name:"settings.capture.firewire.motogeneric",value:"MOTO
GENERIC"},{name:"settings.capture.firewire.sageneric",value:"SA
GENERIC"},{name:"D
CH-3200",value:"DCH-3200"},{name:"DCX-3200",value:"DCX-3200"},{name:"DCT-3412",value:"DCT-3412"},{name:"DCT-3416",value:"DCT-3416"},{name:"DCT-6200",value:"DCT-6200"},{name:"DCT-6212",value:"DCT-6212"},{name:"DCT-6216",value:"DCT-6216"},{name:"QIP-6200",value:"QIP-6200"},{name:"QIP-7100",value:"QIP-7100"},{name:"PACE-550",value:"PACE-550"},{name:"PACE-779",value:"PACE-779"},{name:"SA3250HD",value:"SA3250HD"},{name:"SA4200HD",value:"SA4200HD"},{name:"SA4250HDC",value:"SA4250HDC"},{name:"SA8300HD",value:"SA8300HD"}],this.connectionTypes=[{name:"settings.capture.firewire.pointtopoint",value:0},{name:"settings.capture.firewire.broadcast",value:1}],this.speeds=[{name:"100Mbps",value:0},{name:"200Mbps",value:1},{name:"400Mbps",value:2},{name:"800Mbps",value:3}],this.captureDeviceList={CaptureDeviceList:{CaptureDevices:[]}},this.currentDevice={FrontendName:"Unknown",InputNames:[""]},this.isReady=!1,this.warningMessage="",this.errorCount=0,this.successCount=0,this.saveObserver={next:r=>{thi
s.card.CardId&&r.bool?this.successCount++:!this.card.CardId&&r.int?(this.successCount++,this.card.CardId=r.int,this.cardList.CaptureCardList.CaptureCards.push(this.card)):(this.errorCount++,this.currentForm.form.markAsDirty())},error:r=>{console.error(r),this.errorCount++,this.currentForm.form.markAsDirty()}},s.get(this.messages.devNotExist).subscribe(r=>this.messages.devNotExist=r),s.get(this.messages.unknownName).subscribe(r=>this.messages.unknownName=r),s.get(this.messages.devInUse).subscribe(r=>this.messages.devInUse=r),s.get(this.messages.noDevSelected).subscribe(r=>this.messages.noDevSelected=r),s.get(this.messages.manuallyEnter).subscribe(r=>this.messages.manuallyEnter=r),s.get(this.models[0].name).subscribe(r=>this.models[0].name=r),s.get(this.models[1].name).subscribe(r=>this.models[1].name=r),s.get(this.connectionTypes[0].name).subscribe(r=>this.connectionTypes[0].name=r),s.get(this.connectionTypes[1].name).subscribe(r=>this.connectionTypes[1].name=r)}ngOnInit(){this.captu
reCardService.GetCaptureDeviceList("FIREWIRE").subscribe({next:e=>{this.captureDeviceList=e,this.setupDevice()},error:e=>{console.log("GetCaptureDeviceList",e),this.errorCount++}})}ngAfterViewInit(){this.setupService.setCurrentForm(this.currentForm),this.topElement.nativeElement.scrollIntoView({behavior:"smooth",block:"start"})}setupDevice(){if(this.card.VideoDevice||this.captureDeviceList.CaptureDeviceList.CaptureDevices.unshift({VideoDevice:"",FrontendName:this.messages.noDevSelected}),this.card.VideoDevice){let
e=this.captureDeviceList.CaptureDeviceList.CaptureDevices.find(n=>n.VideoDevice==this.card.VideoDevice);e?this.currentDevice=e:(this.currentDevice={VideoDevice:this.card.VideoDevice,FrontendName:this.messages.devNotExist},this.captureDeviceList.CaptureDeviceList.CaptureDevices.push(this.currentDevice))}this.isReady=!0}updateDevice(){this.card.VideoDevice=this.currentDevice.VideoDevice,this.card.ChannelTimeout=this.currentDevice.ChannelTimeout,this.card.SignalTimeout=this.c
urrentDevice.SignalTimeout,this.card.FirewireModel=this.currentDevice.FirewireModel,this.checkInUse()}checkInUse(){this.warningMessage=this.cardList.CaptureCardList.CaptureCards.find(n=>n.VideoDevice==this.currentDevice.VideoDevice&&n.CardId!=this.card.CardId)?this.messages.devInUse:""}saveForm(){this.successCount=0,this.errorCount=0,this.card.CardId?this.cardList.CaptureCardList.CaptureCards.forEach(e=>{(e.CardId==this.card.CardId||e.ParentId==this.card.CardId)&&(this.captureCardService.UpdateCaptureCard(e.CardId,"videodevice",this.card.VideoDevice).subscribe(this.saveObserver),this.captureCardService.UpdateCaptureCard(e.CardId,"firewire_model",this.card.FirewireModel).subscribe(this.saveObserver),this.captureCardService.UpdateCaptureCard(e.CardId,"firewire_connection",String(this.card.FirewireConnection)).subscribe(this.saveObserver),this.captureCardService.UpdateCaptureCard(e.CardId,"firewire_speed",String(this.card.FirewireSpeed)).subscribe(this.saveObserver),this.captureCardSer
vice.UpdateCaptureCard(e.CardId,"signal_timeout",String(this.card.SignalTimeout)).subscribe(this.saveObserver),this.captureCardService.UpdateCaptureCard(e.CardId,"channel_timeout",String(this.card.ChannelTimeout)).subscribe(this.saveObserver))}):this.captureCardService.AddCaptureCard(this.card).subscribe(this.saveObserver)}}return
t.\u0275fac=function(e){return
new(e||t)(D(Gt),D(Me),D(Oe))},t.\u0275cmp=z({type:t,selectors:[["app-firewire"]],viewQuery:function(e,n){if(1&e&&(W(Ise,5),W(Ese,5)),2&e){let
s;V(s=B())&&(n.currentForm=s.first),V(s=B())&&(n.topElement=s.first)}},inputs:{card:"card",cardList:"cardList"},decls:9,vars:0,consts:[["name","firewireform",1,"ml-3","mr-3"],["firewireform","ngForm"],["top",""],[1,"m-5"],["pTemplate","title"],["pTemplate","subtitle"],["pTemplate","content"],["pTemplate","footer"],[1,"grid"],[1,"mb-4","w-full"],[1,"form-group","field"],["for","VideoDevice",1,"label","block"],["optionLabel","VideoDevice","name","VideoDevice",3,"options","ngModel","editab
le","maxlength","style","ngModelChange","onChange",4,"ngIf"],[4,"ngIf"],[1,"block"],[1,"label","block"],[1,"col-10","bg-blue-100","text-gray-900"],["for","FirewireModel",1,"label","block"],["optionLabel","name","optionValue","value","name","FirewireModel",3,"options","ngModel","editable","maxlength","ngModelChange"],["FirewireModel","ngModel"],["for","FirewireConnection",1,"label","block"],["optionLabel","name","optionValue","value","name","FirewireConnection",3,"options","ngModel","editable","maxlength","ngModelChange"],["FirewireConnection","ngModel"],["for","FirewireSpeed",1,"label","block"],["optionLabel","name","optionValue","value","name","FirewireSpeed",3,"options","ngModel","editable","maxlength","ngModelChange"],["FirewireSpeed","ngModel"],["for","SignalTimeout",1,"label","block"],["name","SignalTimeout","id","SignalTimeout",3,"ngModel","showButtons","min","max","step","ngModelChange"],["for","ChannelTimeout",1,"label","block"],["name","ChannelTimeout","id","ChannelTimeout"
,3,"ngModel","showButtons","min","max","step","ngModelChange"],["optionLabel","VideoDevice","name","VideoDevice",3,"options","ngModel","editable","maxlength","ngModelChange","onChange"],["VideoDevice","ngModel"],[1,"p-error","block"],[1,"grid","nogutter"],[1,"col-12"],["severity","success",3,"text",4,"ngIf"],["severity","error",3,"text",4,"ngIf"],["icon","pi
pi-save","iconPos","left",1,"col","pr-1",3,"label","disabled","onClick"],["severity","success",3,"text"],["severity","error",3,"text"]],template:function(e,n){1&e&&(l(0,"form",0,1),k(2,"span",null,2),l(4,"p-card",3),_(5,Rse,2,3,"ng-template",4),_(6,Lse,0,0,"ng-template",5),_(7,Pse,55,64,"ng-template",6),_(8,Vse,6,6,"ng-template",7),c()())},directives:[ze,Ue,He,Ne,ne,Q,Ot,Te,_e,_n,pt,qe,ve],pipes:[ce],styles:[""]}),t})();const
Hse=["scroll"],ht=function(){return{minWidth:"400px"}};function
qse(t,i){if(1&t){const
e=I();l(0,"div",0)(1,"label",38),g(2),m(3,"translate"),c(),l(4,"p-dropdown",39,40),C("ngModelChange",function(s){return
v(e),d(2).scanRequest.FreqTable=s})("onChange",function(){return
v(e),d(2).onFreqTableChange(!1)}),c(),l(6,"small",4),g(7),m(8,"translate"),c()()}if(2&t){const
e=d(2);a(2),S(f(3,8,"settings.channelscan.freqtable_label")),a(2),q(A(12,ht)),p("options",e.freqTableSelect)("ngModel",e.scanRequest.FreqTable)("editable",!1)("maxlength",0),a(3),T("
",f(8,10,"settings.channelscan.freqtable_desc")," ")}}function
Gse(t,i){if(1&t){const
e=I();l(0,"div",0)(1,"label",41),g(2),m(3,"translate"),c(),l(4,"p-dropdown",42,43),C("ngModelChange",function(s){return
v(e),d(2).scanRequest.FreqTable=s}),c(),l(6,"small",4),g(7),m(8,"translate"),c()()}if(2&t){const
e=d(2);a(2),S(f(3,8,"settings.channelscan.country_label")),a(2),q(A(12,ht)),p("options",e.countryTable)("ngModel",e.scanRequest.FreqTable)("editable",!1)("maxlength",0),a(3),T("
",f(8,10,"settings.channelscan.scantype_dvbt_desc"),"
")}}function Use(t,i){if(1&t){const
e=I();l(0,"div",0)(1,"label",41),g(2),m(3,"translate"),c(),l(4,"p-dropdown",42,43)
,C("ngModelChange",function(s){return
v(e),d(2).scanRequest.FreqTable=s}),c(),k(6,"small",4),c()}if(2&t){const
e=d(2);a(2),S(f(3,7,"settings.channelscan.country_label")),a(2),q(A(9,ht)),p("options",e.networkTable)("ngModel",e.scanRequest.FreqTable)("editable",!1)("maxlength",0)}}function
zse(t,i){if(1&t){const
e=I();l(0,"div",0)(1,"label",44),g(2),m(3,"translate"),c(),l(4,"p-dropdown",45,46),C("ngModelChange",function(s){return
v(e),d(2).scanRequest.Modulation=s})("onChange",function(){return
v(e),d(2).onFreqTableChange(!0)}),c(),l(6,"small",4),g(7),m(8,"translate"),c()()}if(2&t){const
e=d(2);a(2),S(f(3,8,"settings.channelscan.modulation_label")),a(2),q(A(12,ht)),p("options",e.atscModulationTable)("ngModel",e.scanRequest.Modulation)("editable",!1)("maxlength",0),a(3),T("
",f(8,10,"settings.channelscan.atscmodulation_desc"),"
")}}function
jse(t,i){1&t&&(l(0,"div")(1,"small",51),g(2),m(3,"translate"),c()()),2&t&&(a(2),S(f(3,1,"settings.channelscan.invalid_range")))}function
$se(t,i){i
f(1&t){const
e=I();l(0,"div",0)(1,"label",47),g(2),m(3,"translate"),c(),l(4,"p-dropdown",48,49),C("ngModelChange",function(s){return
v(e),d(2).scanRequest.FirstChan=s}),c(),l(6,"small",4),g(7),m(8,"translate"),c(),_(9,jse,4,3,"div",50),c()}if(2&t){const
e=d(2);a(2),S(f(3,9,"settings.channelscan.firstchan_label")),a(2),q(A(13,ht)),p("options",e.channels)("ngModel",e.scanRequest.FirstChan)("editable",!1)("maxlength",0),a(3),T("
",f(8,11,"settings.channelscan.firstchan_desc"),"
"),a(2),p("ngIf",e.channelCount<1)}}function
Wse(t,i){1&t&&(l(0,"div")(1,"small",51),g(2),m(3,"translate"),c()()),2&t&&(a(2),S(f(3,1,"settings.channelscan.invalid_range")))}function
Kse(t,i){if(1&t){const
e=I();l(0,"div",0)(1,"label",52),g(2),m(3,"translate"),c(),l(4,"p-dropdown",53,54),C("ngModelChange",function(s){return
v(e),d(2).scanRequest.LastChan=s}),c(),l(6,"small",4),g(7),m(8,"translate"),c(),_(9,Wse,4,3,"div",50),c()}if(2&t){const
e=d(2);a(2),S(f(3,9,"settings.channelscan.lastchan_label")),a(2),q(A(13,
ht)),p("options",e.channels)("ngModel",e.scanRequest.LastChan)("editable",!1)("maxlength",0),a(3),T("
",f(8,11,"settings.channelscan.lastchan_desc"),"
"),a(2),p("ngIf",e.channelCount<1)}}function
Qse(t,i){if(1&t&&(l(0,"div",0)(1,"label",30),g(2),m(3,"translate"),c(),l(4,"div",29),g(5),c(),l(6,"small",4),g(7),m(8,"translate"),c()()),2&t){const
e=d(2);a(2),S(f(3,3,"settings.channelscan.chancount_label")),a(3),T("
",e.calcCount()," \xa0 "),a(2),T("
",f(8,5,"settings.channelscan.chancount_desc")," ")}}const
Xs=function(){return["DVBT","DVBT2"]};function
Jse(t,i){if(1&t&&(l(0,"p-fieldset",37),m(1,"translate"),_(2,qse,9,13,"div",33),_(3,Gse,9,13,"div",33),_(4,Use,7,10,"div",33),_(5,zse,9,13,"div",33),_(6,$se,10,14,"div",33),_(7,Kse,10,14,"div",33),_(8,Qse,9,7,"div",33),c()),2&t){const
e=d();x("legend",f(1,10,"settings.channelscan.type.full")),p("toggleable",!1)("collapsed",!1),a(2),p("ngIf","ATSC"==e.scanSubType),a(1),p("ngIf",A(12,Xs).includes(e.scanSubType)),a(1),p("ngIf","DVBC"==e.scan
SubType),a(1),p("ngIf","ATSC"==e.scanSubType),a(1),p("ngIf","ATSC"==e.scanSubType),a(1),p("ngIf","ATSC"==e.scanSubType),a(1),p("ngIf","ATSC"==e.scanSubType)}}function
Yse(t,i){if(1&t){const
e=I();l(0,"div",0)(1,"label",61),g(2),m(3,"translate"),c(),l(4,"p-dropdown",62,63),C("ngModelChange",function(s){return
v(e),d(2).satTuning=s})("onChange",function(){return
v(e),d(2).onSatTuningChange()}),c(),l(6,"small",4),g(7),m(8,"translate"),c()()}if(2&t){const
e=d(2);a(2),S(f(3,8,"settings.channelscan.sattuning_label")),a(2),q(A(12,ht)),p("options",e.satTuningTable)("ngModel",e.satTuning)("editable",!1)("maxlength",0),a(3),T("
",f(8,10,"settings.channelscan.sattuning_desc")," ")}}function
Zse(t,i){if(1&t){const
e=I();l(0,"div",0)(1,"label",64),g(2),m(3,"translate"),c(),l(4,"p-dropdown",65,66),C("ngModelChange",function(s){return
v(e),d(2).scanRequest.Bandwidth=s}),c(),l(6,"small",4),g(7),m(8,"translate"),c()()}if(2&t){const
e=d(2);a(2),S(f(3,8,"settings.channelscan.bandwidth_label")),a(2),q(
A(12,ht)),p("options",e.bandwidthTable)("ngModel",e.scanRequest.Bandwidth)("editable",!1)("maxlength",0),a(3),T("
",f(8,10,"settings.channelscan.bandwidth_desc")," ")}}function
Xse(t,i){if(1&t){const
e=I();l(0,"div",0)(1,"label",67),g(2),m(3,"translate"),c(),l(4,"p-dropdown",68,69),C("ngModelChange",function(s){return
v(e),d(2).scanRequest.Polarity=s}),c(),l(6,"small",4),g(7),m(8,"translate"),c()()}if(2&t){const
e=d(2);a(2),S(f(3,8,"settings.channelscan.polarity_label")),a(2),q(A(12,ht)),p("options",e.polarityTable)("ngModel",e.scanRequest.Polarity)("editable",!1)("maxlength",0),a(3),T("
",f(8,10,"settings.channelscan.polarity_desc")," ")}}function
ere(t,i){if(1&t){const
e=I();l(0,"div",0)(1,"label",70),g(2),m(3,"translate"),c(),l(4,"p-dropdown",71,72),C("ngModelChange",function(s){return
v(e),d(2).scanRequest.SymbolRate=s}),c(),l(6,"small",4),g(7),m(8,"translate"),c()()}if(2&t){const
e=d(2);a(2),S(f(3,8,"settings.channelscan.symbolrate_label")),a(2),q(A(12,ht)),p("options",e.dvbcSy
mbolRateTable)("ngModel",e.scanRequest.SymbolRate)("editable",!0)("maxlength",8),a(3),T("
",f(8,10,"settings.channelscan.dvbcsymbolrate_desc"),"
")}}function tre(t,i){if(1&t){const
e=I();l(0,"div",0)(1,"label",73),g(2),m(3,"translate"),c(),l(4,"p-dropdown",74,75),C("ngModelChange",function(s){return
v(e),d(2).scanRequest.SymbolRate=s}),c(),l(6,"small",4),g(7),m(8,"translate"),c()()}if(2&t){const
e=d(2);a(2),S(f(3,8,"settings.channelscan.symbolrate_label")),a(2),q(A(12,ht)),p("options",e.dvbsSymbolRateTable)("ngModel",e.scanRequest.SymbolRate)("editable",!0)("maxlength",8),a(3),T("
",f(8,10,"settings.channelscan.dvbssymbolrate_desc"),"
")}}function nre(t,i){if(1&t){const
e=I();l(0,"div",0)(1,"label",76),g(2),m(3,"translate"),c(),l(4,"p-dropdown",77,78),C("ngModelChange",function(s){return
v(e),d(2).scanRequest.Constellation=s}),c(),l(6,"small",4),g(7),m(8,"translate"),c()()}if(2&t){const
e=d(2);a(2),S(f(3,8,"settings.channelscan.constellation_label")),a(2),q(A(12,ht)),p("options",e.m
odulationTable)("ngModel",e.scanRequest.Constellation)("editable",!1)("maxlength",0),a(3),T("
",f(8,10,"settings.channelscan.constellation_desc"),"
")}}function ire(t,i){if(1&t){const
e=I();l(0,"div",0)(1,"label",79),g(2),m(3,"translate"),c(),l(4,"p-dropdown",80,81),C("ngModelChange",function(s){return
v(e),d(2).scanRequest.Modulation=s}),c(),l(6,"small",4),g(7),m(8,"translate"),c()()}if(2&t){const
e=d(2);a(2),S(f(3,8,"settings.channelscan.modulation_label")),a(2),q(A(12,ht)),p("options",e.modulationTable)("ngModel",e.scanRequest.Modulation)("editable",!1)("maxlength",0),a(3),T("
",f(8,10,"settings.channelscan.Modulation_desc")," ")}}function
sre(t,i){if(1&t){const
e=I();l(0,"div",0)(1,"label",82),g(2),m(3,"translate"),c(),l(4,"p-dropdown",83,84),C("ngModelChange",function(s){return
v(e),d(2).scanRequest.Modulation=s}),c(),l(6,"small",4),g(7),m(8,"translate"),c()()}if(2&t){const
e=d(2);a(2),S(f(3,8,"settings.channelscan.modulation_label")),a(2),q(A(12,ht)),p("options",e.dvbsModulati
onTable)("ngModel",e.scanRequest.Modulation)("editable",!1)("maxlength",0),a(3),T("
",f(8,10,"settings.channelscan.dvbsmodulation_desc"),"
")}}function rre(t,i){if(1&t){const
e=I();l(0,"div",0)(1,"label",85),g(2),m(3,"translate"),c(),l(4,"p-dropdown",86,87),C("ngModelChange",function(s){return
v(e),d(2).scanRequest.ModSys=s}),c(),l(6,"small",4),g(7),m(8,"translate"),c()()}if(2&t){const
e=d(2);a(2),S(f(3,8,"settings.channelscan.modsys_label")),a(2),q(A(12,ht)),p("options",e.dvbtModSysTable)("ngModel",e.scanRequest.ModSys)("editable",!1)("maxlength",0),a(3),T("
",f(8,10,"settings.channelscan.dvbtmodsys_desc")," ")}}function
ore(t,i){if(1&t){const
e=I();l(0,"div",0)(1,"label",88),g(2),m(3,"translate"),c(),l(4,"p-dropdown",89,90),C("ngModelChange",function(s){return
v(e),d(2).scanRequest.ModSys=s}),c(),l(6,"small",4),g(7),m(8,"translate"),c()()}if(2&t){const
e=d(2);a(2),S(f(3,8,"settings.channelscan.modsys_label")),a(2),q(A(12,ht)),p("options",e.dvbcModSysTable)("ngModel",e.scanRequest.
ModSys)("editable",!1)("maxlength",0),a(3),T("
",f(8,10,"settings.channelscan.dvbcmodsys_desc")," ")}}function
are(t,i){if(1&t){const
e=I();l(0,"div",0)(1,"label",91),g(2),m(3,"translate"),c(),l(4,"p-dropdown",92,93),C("ngModelChange",function(s){return
v(e),d(2).scanRequest.ModSys=s}),c(),l(6,"small",4),g(7),m(8,"translate"),c()()}if(2&t){const
e=d(2);a(2),S(f(3,8,"settings.channelscan.modsys_label")),a(2),q(A(12,ht)),p("options",e.dvbsModSysTable)("ngModel",e.scanRequest.ModSys)("editable",!1)("maxlength",0),a(3),T("
",f(8,10,"settings.channelscan.dvbsmodsys_desc")," ")}}function
lre(t,i){if(1&t){const
e=I();l(0,"div",0)(1,"label",94),g(2),m(3,"translate"),c(),l(4,"p-dropdown",95,96),C("ngModelChange",function(s){return
v(e),d(2).scanRequest.CodeRateLP=s}),c(),l(6,"small",4),g(7),m(8,"translate"),c()()}if(2&t){const
e=d(2);a(2),S(f(3,8,"settings.channelscan.coderatelp_label")),a(2),q(A(12,ht)),p("options",e.fecTable)("ngModel",e.scanRequest.CodeRateLP)("editable",!1)("maxlength",0
),a(3),T(" ",f(8,10,"settings.channelscan.coderatelp_desc"),"
")}}function cre(t,i){if(1&t){const
e=I();l(0,"div",0)(1,"label",97),g(2),m(3,"translate"),c(),l(4,"p-dropdown",98,99),C("ngModelChange",function(s){return
v(e),d(2).scanRequest.CodeRateHP=s}),c(),l(6,"small",4),g(7),m(8,"translate"),c()()}if(2&t){const
e=d(2);a(2),S(f(3,8,"settings.channelscan.coderatehp_label")),a(2),q(A(12,ht)),p("options",e.fecTable)("ngModel",e.scanRequest.CodeRateHP)("editable",!1)("maxlength",0),a(3),T("
",f(8,10,"settings.channelscan.coderatehp_desc")," ")}}function
ure(t,i){if(1&t){const
e=I();l(0,"div",0)(1,"label",100),g(2),m(3,"translate"),c(),l(4,"p-dropdown",101,102),C("ngModelChange",function(s){return
v(e),d(2).scanRequest.FEC=s}),c(),l(6,"small",4),g(7),m(8,"translate"),c()()}if(2&t){const
e=d(2);a(2),S(f(3,8,"settings.channelscan.FEC_label")),a(2),q(A(12,ht)),p("options",e.fecTable)("ngModel",e.scanRequest.FEC)("editable",!1)("maxlength",0),a(3),T("
",f(8,10,"settings.channelscan.FEC_des
c")," ")}}function dre(t,i){if(1&t){const
e=I();l(0,"div",0)(1,"label",103),g(2),m(3,"translate"),c(),l(4,"p-dropdown",104,105),C("ngModelChange",function(s){return
v(e),d(2).scanRequest.TransmissionMode=s}),c(),l(6,"small",4),g(7),m(8,"translate"),c()()}if(2&t){const
e=d(2);a(2),S(f(3,8,"settings.channelscan.transmissionmode_label")),a(2),q(A(12,ht)),p("options",e.transmissionModeTable)("ngModel",e.scanRequest.TransmissionMode)("editable",!1)("maxlength",0),a(3),T("
",f(8,10,"settings.channelscan.transmissionmode_desc"),"
")}}function pre(t,i){if(1&t){const
e=I();l(0,"div",0)(1,"label",106),g(2),m(3,"translate"),c(),l(4,"p-dropdown",107,108),C("ngModelChange",function(s){return
v(e),d(2).scanRequest.GuardInterval=s}),c(),l(6,"small",4),g(7),m(8,"translate"),c()()}if(2&t){const
e=d(2);a(2),S(f(3,8,"settings.channelscan.guardinterval_label")),a(2),q(A(12,ht)),p("options",e.guardIntervalTable)("ngModel",e.scanRequest.GuardInterval)("editable",!1)("maxlength",0),a(3),T("
",f(8,10,"sett
ings.channelscan.guardinterval_desc")," ")}}function
hre(t,i){if(1&t){const
e=I();l(0,"div",0)(1,"label",109),g(2),m(3,"translate"),c(),l(4,"p-dropdown",110,111),C("ngModelChange",function(s){return
v(e),d(2).scanRequest.Hierarchy=s}),c(),l(6,"small",4),g(7),m(8,"translate"),c()()}if(2&t){const
e=d(2);a(2),S(f(3,8,"settings.channelscan.hierarchy_label")),a(2),q(A(12,ht)),p("options",e.hierarchyTable)("ngModel",e.scanRequest.Hierarchy)("editable",!1)("maxlength",0),a(3),T("
",f(8,10,"settings.channelscan.hierarchy_desc")," ")}}function
mre(t,i){if(1&t){const
e=I();l(0,"div",0)(1,"label",112),g(2),m(3,"translate"),c(),l(4,"p-dropdown",113,114),C("ngModelChange",function(s){return
v(e),d(2).scanRequest.RollOff=s}),c(),l(6,"small",4),g(7),m(8,"translate"),c()()}if(2&t){const
e=d(2);a(2),S(f(3,8,"settings.channelscan.rolloff_label")),a(2),q(A(12,ht)),p("options",e.rollOffTable)("ngModel",e.scanRequest.RollOff)("editable",!1)("maxlength",0),a(3),T("
",f(8,10,"settings.channelscan.rolloff_
desc")," ")}}const
Tg=function(){return["DVBS","DVBS2"]},fre=function(t){return{unit:t}},gre=function(){return["DVBC","DVBS","DVBS2"]};function
_re(t,i){if(1&t){const
e=I();l(0,"p-fieldset",37),m(1,"translate"),_(2,Yse,9,13,"div",33),l(3,"div",0)(4,"label",55),g(5),m(6,"translate"),c(),l(7,"p-inputNumber",56),C("ngModelChange",function(s){return
v(e),d().scanRequest.Frequency=s}),c(),l(8,"small",4),k(9,"div",57),c()(),_(10,Zse,9,13,"div",33),_(11,Xse,9,13,"div",33),_(12,ere,9,13,"div",33),_(13,tre,9,13,"div",33),l(14,"div",0)(15,"label",58),g(16),m(17,"translate"),c(),l(18,"p-dropdown",59,60),C("ngModelChange",function(s){return
v(e),d().scanRequest.Inversion=s}),c(),l(20,"small",4),g(21),m(22,"translate"),c()(),_(23,nre,9,13,"div",33),_(24,ire,9,13,"div",33),_(25,sre,9,13,"div",33),_(26,rre,9,13,"div",33),_(27,ore,9,13,"div",33),_(28,are,9,13,"div",33),_(29,lre,9,13,"div",33),_(30,cre,9,13,"div",33),_(31,ure,9,13,"div",33),_(32,dre,9,13,"div",33),_(33,pre,9,13,"div",33),_(34,hre,9,
13,"div",33),_(35,mre,9,13,"div",33),c()}if(2&t){const
e=d();x("legend",f(1,35,"settings.channelscan.type.fulltuned")),p("toggleable",!1)("collapsed",!1),a(2),p("ngIf","DVBS2"==e.scanSubType),a(3),S(f(6,37,"settings.channelscan.frequency_label")),a(2),p("ngModel",e.scanRequest.Frequency)("min",0)("max",999999999),a(2),p("translate","settings.channelscan.frequency_desc")("translateParams",U(44,fre,A(43,Tg).includes(e.scanSubType)?"kHZ":"Hz")),a(1),p("ngIf",A(46,Xs).includes(e.scanSubType)),a(1),p("ngIf",A(47,Tg).includes(e.scanSubType)),a(1),p("ngIf","DVBC"==e.scanSubType),a(1),p("ngIf",A(48,Tg).includes(e.scanSubType)),a(3),S(f(17,39,"settings.channelscan.inversion_label")),a(2),q(A(49,ht)),p("options",e.inversionTable)("ngModel",e.scanRequest.Inversion)("editable",!1)("maxlength",0),a(3),T("
",f(22,41,"settings.channelscan.inversion_desc"),"
"),a(2),p("ngIf",A(50,Xs).includes(e.scanSubType)),a(1),p("ngIf","DVBC"==e.scanSubType),a(1),p("ngIf","DVBS2"==e.scanSubType),a(1),p("ngIf","D
VBT2"==e.scanSubType),a(1),p("ngIf","DVBC"==e.scanSubType),a(1),p("ngIf","DVBS2"==e.scanSubType),a(1),p("ngIf",A(51,Xs).includes(e.scanSubType)),a(1),p("ngIf",A(52,Xs).includes(e.scanSubType)),a(1),p("ngIf",A(53,gre).includes(e.scanSubType)),a(1),p("ngIf",A(54,Xs).includes(e.scanSubType)),a(1),p("ngIf",A(55,Xs).includes(e.scanSubType)),a(1),p("ngIf",A(56,Xs).includes(e.scanSubType)),a(1),p("ngIf","DVBS2"==e.scanSubType)}}function
bre(t,i){if(1&t){const
e=I();l(0,"p-fieldset",37),m(1,"translate"),l(2,"div",0)(3,"label",115),g(4),m(5,"translate"),c(),l(6,"p-dropdown",116,117),C("ngModelChange",function(s){return
v(e),d().scanRequest.ScanId=s}),c(),k(8,"small",4),c()()}if(2&t){const
e=d();x("legend",f(1,10,"settings.channelscan.type.import")),p("toggleable",!1)("collapsed",!1),a(4),S(f(5,12,"settings.channelscan.scanimport_label")),a(2),q(A(14,ht)),p("options",e.scans)("ngModel",e.scanRequest.ScanId)("editable",!1)("maxlength",0)}}function
vre(t,i){if(1&t){const e=I();l(0,"div",0)(1,"l
abel",122),g(2),m(3,"translate"),c(),l(4,"p-dropdown",123,124),C("ngModelChange",function(s){return
v(e),d(2).scanRequest.MplexId=s}),c(),k(6,"small",4),c()}if(2&t){const
e=d(2);a(2),S(f(3,7,"settings.channelscan.transport_label")),a(2),q(A(9,ht)),p("options",e.multiplex)("ngModel",e.scanRequest.MplexId)("editable",!1)("maxlength",0)}}function
Cre(t,i){if(1&t){const
e=I();l(0,"p-fieldset",37),m(1,"translate"),_(2,vre,7,10,"div",33),l(3,"div",0)(4,"p-checkbox",118,119),C("ngModelChange",function(s){return
v(e),d().scanRequest.IgnoreSignalTimeout=s}),m(6,"translate"),c(),l(7,"small",4),g(8),m(9,"translate"),c()(),l(10,"div",0)(11,"p-checkbox",120,121),C("ngModelChange",function(s){return
v(e),d().scanRequest.FollowNITSetting=s}),m(13,"translate"),c(),l(14,"small",4),g(15),m(16,"translate"),c()()()}if(2&t){const
e=d();x("legend",f(1,12,"settings.channelscan.type.transports")),p("toggleable",!1)("collapsed",!1),a(2),p("ngIf","ONETRANSPORT"==e.scanRequest.ScanType),a(2),x("label",f(6,14,
"settings.channelscan.ignoresignaltimeout_label")),p("ngModel",e.scanRequest.IgnoreSignalTimeout)("binary",!0),a(4),T("
",f(9,16,"settings.channelscan.ignoresignaltimeout_desc"),"
"),a(3),x("label",f(13,18,"settings.channelscan.follownitsetting_label")),p("ngModel",e.scanRequest.FollowNITSetting)("binary",!0),a(4),T("
",f(16,20,"settings.channelscan.follownitsetting_desc"),"
")}}function
yre(t,i){1&t&&(l(0,"small",4),g(1),m(2,"translate"),c()),2&t&&(a(1),T("
",f(2,1,"settings.channelscan.scan_desc")," "))}function
wre(t,i){if(1&t&&(l(0,"div",0)(1,"div",125)(2,"b"),g(3),c(),g(4,"
\xa0 "),c(),k(5,"br"),c()),2&t){const
e=d();a(3),S(e.scanStatus.DialogMsg)}}function Tre(t,i){if(1&t){const
e=I();l(0,"div",0)(1,"input",126,127),C("ngModelChange",function(s){return
v(e),d().dialogResponse.DialogString=s}),c()()}if(2&t){const
e=d();a(1),p("ngModel",e.dialogResponse.DialogString)}}function
Sre(t,i){if(1&t){const
e=I();l(0,"div",0)(1,"label",128),g(2),m(3,"translate"),c(),l(4,"p-dropdown",129
,3),C("ngModelChange",function(s){return
v(e),d().buttonText=s}),c()()}if(2&t){const
e=d();a(2),S(f(3,7,"settings.channelscan.scanimport_option")),a(2),q(A(9,ht)),p("options",e.scanStatus.DialogButtons)("ngModel",e.buttonText)("editable",!1)("maxlength",0)}}function
xre(t,i){if(1&t){const
e=I();l(0,"div",0)(1,"p-button",130),C("onClick",function(){return
v(e),d().respondDialog()}),m(2,"translate"),c()()}2&t&&(a(1),x("label",f(2,1,"common.submit")))}const
Sg=function(){return{height:"20px"}},Dre=function(){return{width:"100%",height:"400px"}};class
j{constructor(i,e){this.label=i,this.value=e}}class
Ar{constructor(i,e,n,s,r,o,u){this.label=i,this.Frequency=e,this.Polarity=n,this.SymbolRate=s,this.Modulation=r,this.ModSys=o,this.FEC=u}}let
Mre=(()=>{class
t{constructor(e,n,s,r){this.translate=e,this.channelService=n,this.captureCardService=s,this.setupService=r,this.serviceValues=[new
j("settings.channelscan.tv","tv"),new
j("settings.channelscan.tvradio","audio"),new j("settings.chann
elscan.all","all")],this.scanSubType="",this.scanTypes=[],this.freqTableSelect=[new
j("settings.channelscan.freq.usa.broadcast","us"),new
j("settings.channelscan.freq.usa.cablehi","uscablehigh"),new
j("settings.channelscan.freq.usa.cablehrchi","ushrchigh"),new
j("settings.channelscan.freq.usa.cableirchi","usirchigh"),new
j("settings.channelscan.freq.usa.cable","uscable"),new
j("settings.channelscan.freq.usa.cablehrc","ushrc"),new
j("settings.channelscan.freq.usa.cableirc","usirc")],this.countryTable=[new
j("settings.channelscan.country.au","au"),new
j("settings.channelscan.country.cl","cl"),new
j("settings.channelscan.country.cz","cz"),new
j("settings.channelscan.country.dk","dk"),new
j("settings.channelscan.country.fi","fi"),new
j("settings.channelscan.country.fr","fr"),new
j("settings.channelscan.country.de","de"),new
j("settings.channelscan.country.gr","gr"),new
j("settings.channelscan.country.il","il"),new
j("settings.channelscan.country.it","it"),new
j("settings.channelscan.cou
ntry.nl","nl"),new
j("settings.channelscan.country.nz","nz"),new
j("settings.channelscan.country.es","es"),new
j("settings.channelscan.country.se","se"),new
j("settings.channelscan.country.gb","gb")],this.networkTable=[new
j("settings.channelscan.country.de","de"),new
j("settings.channelscan.country.nl","nl"),new
j("settings.channelscan.country.gb","gb")],this.satTuningTable=[new
Ar("(Select
Satellite)",0,"h","27500000","qpsk","DVB-S2","auto"),new
Ar("Thor 5/6/7
0.8W",10872e3,"h","25000000","8psk","DVB-S2","3/4"),new
Ar("Eutelsat
7.0E",10721e3,"h","22000000","qpsk","DVB-S","3/4"),new
Ar("Hotbird
13.0E",12015e3,"h","27500000","8psk","DVB-S2","3/4"),new
Ar("Astra-1
19.2E",11229e3,"v","22000000","8psk","DVB-S2","2/3"),new
Ar("Astra-3
23.5E",12031500,"h","27500000","qpsk","DVB-S2","auto"),new
Ar("Astra-2
28.2E",10714e3,"h","22000000","qpsk","DVB-S","5/6")],this.atscModulationTable=[new
j("settings.channelscan.modulation.atsc.vsb8","vsb8"),new
j("settings.channelscan.modulation
.atsc.qam256","qam256"),new
j("settings.channelscan.modulation.atsc.qam128","qam128"),new
j("settings.channelscan.modulation.atsc.qam64","qam64")],this.bandwidthTable=[new
j("settings.channelscan.auto","a"),new j("6
MHz","6"),new j("7 MHz","7"),new j("8
MHz","8")],this.inversionTable=[new
j("settings.channelscan.auto","a"),new
j("settings.channelscan.on","1"),new
j("settings.channelscan.off","0")],this.modulationTable=[new
j("settings.channelscan.auto","auto"),new
j("QPSK","qpsk"),new j("QAM-16","qam_16"),new
j("QAM-32","qam_32"),new j("QAM-64","qam_64"),new
j("QAM-128","qam_128"),new
j("QAM-256","qam_256")],this.dvbsModulationTable=[new
j("QPSK","qpsk"),new j("8PSK","8psk"),new
j("QAM-16","qam_16"),new j("16PSK","16psk"),new
j("32PSK","32psk")],this.dvbtModSysTable=[new
j("DVB-T","DVB-T"),new
j("DVB-T2","DVB-T2")],this.dvbcModSysTable=[new
j("DVB-C/A","DVB-C/A"),new
j("DVB-C/B","DVB-C/B"),new
j("DVB-C/C","DVB-C/C")],this.dvbsModSysTable=[new
j("DVB-S","DVB-S"),new j("DVB-S2","DVB-S
2")],this.polarityTable=[new
j("settings.channelscan.polarity.horizontal","h"),new
j("settings.channelscan.polarity.vertical","v"),new
j("settings.channelscan.polarity.right","r"),new
j("settings.channelscan.polarity.left","l")],this.fecTable=[new
j("settings.channelscan.auto","auto"),new
j("settings.channelscan.none","none"),new
j("1/2","1/2"),new j("2/3","2/3"),new
j("3/4","3/4"),new j("4/5","4/5"),new
j("5/6","5/6"),new j("6/2","6/2"),new
j("7/8","7/8"),new j("8/9","8/9"),new
j("3/5","3/5"),new
j("9/10","9/10")],this.transmissionModeTable=[new
j("settings.channelscan.auto","a"),new
j("2K","2"),new
j("8K","8")],this.guardIntervalTable=[new
j("settings.channelscan.auto","auto"),new
j("1/4","1/4"),new j("1/8","1/8"),new
j("1/16","1/16"),new
j("1/32","1/32")],this.hierarchyTable=[new
j("settings.channelscan.auto","a"),new
j("settings.channelscan.none","n"),new
j("1","1"),new j("2","2"),new
j("4","4")],this.dvbcSymbolRateTable=[new
j("3450000","3450000"),new
j("5000000","5000000"),new
j("5900000","5900000"),new
j("6875000","6875000"),new
j("6900000","6900000"),new
j("6950000","6950000")],this.dvbsSymbolRateTable=[new
j("3333000","3333000"),new
j("22000000","22000000"),new
j("22500000","22500000"),new
j("23000000","23000000"),new
j("27500000","27500000"),new
j("28000000","28000000"),new
j("28500000","28500000"),new
j("29500000","29500000"),new
j("29700000","29700000"),new
j("29900000","29900000")],this.rollOffTable=[new
j("0.35","0.35"),new j("0.20","0.20"),new
j("0.25","0.25"),new
j("Auto","auto")],this.lockDesc="settings.channelscan.lock_value",this.nolockDesc="settings.channelscan.nolock_value",this.procDesc="processed",this.unprocDesc="unprocessed",this.satTuning=this.satTuningTable[0],this.scanRequest={CardId:0,DesiredServices:"tv",FreeToAirOnly:!0,ChannelNumbersOnly:!1,CompleteChannelsOnly:!0,FullChannelSearch:!0,RemoveDuplicates:!0,AddFullTS:!1,TestDecryptable:!1,ScanType:"",FreqTable:"",Modulation:"",FirstChan:"",LastChan:"",ScanId:0,IgnoreSignalTimeout:!
1,FollowNITSetting:!1,MplexId:0,Frequency:0,Bandwidth:"",Polarity:"",SymbolRate:"",Inversion:"",Constellation:"",ModSys:"",CodeRateLP:"",CodeRateHP:"",FEC:"",TransmissionMode:"",GuardInterval:"",Hierarchy:"",RollOff:""},this.emptyScanStatus={CardId:0,Status:"",SignalLock:!1,Progress:0,SignalNoise:0,SignalStrength:0,StatusLog:"",StatusText:"",StatusTitle:"",DialogMsg:"",DialogInputReq:!1,DialogButtons:[]},this.dialogResponse={CardId:0,DialogString:"",DialogButton:0},this.buttonText="",this.scanStatus=Object.assign({},this.emptyScanStatus),this.channels=[],this.channelCount=1,this.refreshCount=0,this.helpText="",this.scans=[],this.multiplex=[],this.tableTranslate(this.serviceValues),this.tableTranslate(this.freqTableSelect),this.tableTranslate(this.countryTable),this.tableTranslate(this.networkTable),this.tableTranslate(this.atscModulationTable),this.tableTranslate(this.bandwidthTable),this.tableTranslate(this.inversionTable),this.tableTranslate(this.modulationTable),this.tableTransla
te(this.fecTable),this.tableTranslate(this.transmissionModeTable),this.tableTranslate(this.guardIntervalTable),this.tableTranslate(this.hierarchyTable),this.tableTranslate(this.polarityTable),e.get(this.lockDesc).subscribe(o=>this.lockDesc=o),e.get(this.nolockDesc).subscribe(o=>this.nolockDesc=o)}tableTranslate(e){e.forEach(n=>{n.label.startsWith("settings.")&&this.translate.get(n.label).subscribe(s=>n.label=s)})}ngAfterViewInit(){this.refreshStatus(!1),this.getScanList(),this.getmultiplexList(),this.iconnection.scanComponent=this}ngOnInit(){this.iconnection.deviceFree.subscribe(e=>{this.captureCardService.GetCardSubType(this.card.CardId).subscribe(n=>{this.cardSubType=n.CardSubType,this.buildScanTypeList(),this.onFreqTableChange(!1),"DVBT2"==this.cardSubType.InputType&&(this.scanRequest.ModSys="DVB-T2"),"DVBS2"==this.cardSubType.InputType&&(this.scanRequest.ModSys="DVB-S2"),"DVBC"==this.cardSubType.InputType&&(this.scanRequest.SymbolRate="6900000"),["DVBS","DVBS2"].includes(this.ca
rdSubType.InputType)&&(this.scanRequest.SymbolRate="27500000")})}),this.iconnection.captureDeviceList.CaptureDeviceList.CaptureDevices.length>0&&!this.cardSubType&&this.iconnection.deviceFree.next(!0)}buildScanTypeList(){let
e=!1;switch(this.helpText="",this.scanSubType=this.cardSubType.InputType,this.cardSubType.InputType){case"V4L":case"MPEG":this.scanTypes.push({label:"settings.channelscan.type.full",value:"FULL"}),this.scanTypes.push({label:"settings.channelscan.type.import",value:"IMPORT"});break;case"DVBT":case"DVBT2":this.scanTypes.push({label:"settings.channelscan.type.full",value:"FULL"}),this.scanTypes.push({label:"settings.channelscan.type.fulltuned",value:"FULLTUNED"}),this.scanTypes.push({label:"settings.channelscan.type.import",value:"IMPORT"}),this.helpText="settings.channelscan.scantype_dvbt_desc",e=!0;break;case"DVBC":this.scanTypes.push({label:"settings.channelscan.type.fulltuned",value:"FULLTUNED"}),this.scanTypes.push({label:"settings.channelscan.type.full",value
:"FULL"}),this.scanTypes.push({label:"settings.channelscan.type.import",value:"IMPORT"}),e=!0;break;case"DVBS":case"DVBS2":this.scanTypes.push({label:"settings.channelscan.type.fulltuned",value:"FULLTUNED"}),this.scanTypes.push({label:"settings.channelscan.type.import",value:"IMPORT"}),e=!0;break;case"ATSC":this.scanTypes.push({label:"settings.channelscan.type.full",value:"FULL"}),this.scanTypes.push({label:"settings.channelscan.type.import",value:"IMPORT"}),e=!0;break;case"HDHOMERUN":this.cardSubType.HDHRdoesDVBC?(this.scanSubType="DVBC",this.scanTypes.push({label:"settings.channelscan.type.fulltuned",value:"FULLTUNED"}),this.scanTypes.push({label:"settings.channelscan.type.full",value:"FULL"}),this.scanTypes.push({label:"settings.channelscan.type.import",value:"IMPORT"})):this.cardSubType.HDHRdoesDVB?(this.scanSubType="DVBT",this.scanTypes.push({label:"settings.channelscan.type.full",value:"FULL"}),this.scanTypes.push({label:"settings.channelscan.type.fulltuned",value:"FULLTUNED"}
),this.helpText="settings.channelscan.scantype_dvbt_desc"):(this.scanSubType="ATSC",this.scanTypes.push({label:"settings.channelscan.type.full",value:"FULL"})),this.scanTypes.push({label:"settings.channelscan.type.import",value:"IMPORT"}),this.scanTypes.push({label:"settings.channelscan.type.hdhrimport",value:"HDHRIMPORT"}),e=!0;break;case"VBOX":this.scanTypes.push({label:"settings.channelscan.type.vboximport",value:"VBOXIMPORT"});break;case"FREEBOX":this.scanTypes.push({label:"settings.channelscan.type.m3umpts",value:"MPTSIMPORT"}),this.scanTypes.push({label:"settings.channelscan.type.m3u",value:"M3UIMPORT"});break;case"ASI":this.scanTypes.push({label:"settings.channelscan.type.asi",value:"ASI"});break;case"EXTERNAL":this.scanTypes.push({label:"settings.channelscan.type.mpts",value:"MPTS"}),this.scanTypes.push({label:"settings.channelscan.type.externimport",value:"EXTIMPORT"});break;case"ERROR_PROBE":this.scanTypes.push({label:"settings.channelscan.type.errorprobe",value:"ERROR"});
break;default:this.scanTypes.push({label:"settings.channelscan.type.erroropen",value:"ERROR"})}e&&(this.scanTypes.push({label:"settings.channelscan.type.alltransport",value:"ALLTRANSPORT"}),this.scanTypes.push({label:"settings.channelscan.type.onetransport",value:"ONETRANSPORT"})),this.scanTypes.forEach(n=>this.translate.get(n.label).subscribe(s=>n.label=s)),this.helpText&&this.translate.get(this.helpText).subscribe(n=>this.helpText=n)}onScanTypeChange(){this.scanRequest.Frequency="FULLTUNED"==this.scanRequest.ScanType?this.videoSourceLookup[this.card.SourceId].ScanFrequency:0,setTimeout(()=>this.onFreqTableChange(!1),100)}onFreqTableChange(e){this.channels=[];let
n="";if(this.scanRequest.FreqTable.startsWith("us")){if(e||("us"==this.scanRequest.FreqTable?this.scanRequest.Modulation="vsb8":"vsb8"==this.scanRequest.Modulation&&(this.scanRequest.Modulation="qam256")),"vsb8"==this.scanRequest.Modulation?n="ATSC
Channel ":"qam256"==this.scanRequest.Modulation?n="QAM-256 Channel
":"qam12
8"==this.scanRequest.Modulation?n="QAM-128 Channel
":"qam64"==this.scanRequest.Modulation&&(n="QAM-64 Channel
"),"us"==this.scanRequest.FreqTable){if("vsb8"==this.scanRequest.Modulation)for(let
s=2;s<=36;s++)this.channels.push(n+s)}else
if(this.scanRequest.FreqTable.match(/us.*high/))for(let
s=78;s<=158;s++)this.channels.push(n+s);else
if(this.scanRequest.FreqTable.match(/^us/)){this.channels.push(n+"T-13"),this.channels.push(n+"T-14");for(let
s=2;s<=158;s++)this.channels.push(n+s)}this.channels.length>0?setTimeout(()=>{this.scanRequest.FirstChan=this.channels[0],this.scanRequest.LastChan=this.channels[this.channels.length-1]},100):(this.scanRequest.FirstChan="",this.scanRequest.LastChan="")}}onSatTuningChange(){Object.assign(this.scanRequest,this.satTuning)}calcCount(){return
this.channelCount=this.channels.findIndex(e=>e==this.scanRequest.LastChan)-this.channels.findIndex(e=>e==this.scanRequest.FirstChan)+1}getScanList(){this.channelService.GetScanList(this.card.SourceId).subscrib
e(e=>{this.scans=e.ScanList.Scans,this.scans.forEach(n=>{var s=new
Date(n.ScanDate);n.label=s.toLocaleDateString()+"
"+s.toLocaleTimeString()+"
"+(n.Processed?this.procDesc:this.unprocDesc)})})}getmultiplexList(){this.channelService.GetVideoMultiplexList({SourceID:this.card.SourceId}).subscribe(e=>{this.multiplex=e.VideoMultiplexList.VideoMultiplexes})}startScan(){if(this.iconnection.currentForm&&this.iconnection.currentForm.form.dirty)return
this.iconnection.work.startScan=!0,void
this.iconnection.saveForm();this.scanRequest.CardId=this.card.CardId,this.channelService.StartScan(this.scanRequest).subscribe(e=>{setTimeout(()=>this.refreshStatus(!0),500)})}stopScan(){this.channelService.StopScan(this.card.CardId).subscribe()}respondDialog(){this.dialogResponse.CardId=this.card.CardId,this.dialogResponse.DialogButton=this.scanStatus.DialogButtons.indexOf(this.buttonText),this.channelService.SendScanDialogResponse(this.dialogResponse).subscribe(e=>this.iconnection.loadChannels())}refres
hStatus(e){this.channelService.GetScanStatus().subscribe(n=>{this.scanStatus=n.ScanStatus,this.scrollpanel.scrollTop(1e5),"RUNNING"==this.scanStatus.Status?this.refreshCount=5:this.refreshCount--,this.refreshCount>0?setTimeout(()=>this.refreshStatus(!0),500):e&&this.iconnection.loadChannels()})}}return
t.\u0275fac=function(e){return
new(e||t)(D(Oe),D(Or),D(Gt),D(Me))},t.\u0275cmp=z({type:t,selectors:[["app-channelscan"]],viewQuery:function(e,n){if(1&e&&W(Hse,5),2&e){let
s;V(s=B())&&(n.scrollpanel=s.first)}},inputs:{card:"card",cardList:"cardList",iconnection:"iconnection",videoSourceLookup:"videoSourceLookup"},decls:131,vars:137,consts:[[1,"form-group","field"],["for","DesiredServices",1,"label","block"],["optionLabel","label","optionValue","value","name","DesiredServices",3,"options","ngModel","editable","maxlength","ngModelChange"],["DesiredServices","ngModel"],[1,"block"],["inputId","FreeToAirOnly","name","FreeToAirOnly",1,"label","mb-2","w-full",3,"ngModel","binary","label","ngM
odelChange"],["FreeToAirOnly","ngModel"],["inputId","ChannelNumbersOnly","name","ChannelNumbersOnly",1,"label","mb-2","w-full",3,"ngModel","binary","label","ngModelChange"],["ChannelNumbersOnly","ngModel"],["inputId","CompleteChannelsOnly","name","CompleteChannelsOnly",1,"label","mb-2","w-full",3,"ngModel","binary","label","ngModelChange"],["CompleteChannelsOnly","ngModel"],["inputId","FullChannelSearch","name","FullChannelSearch",1,"label","mb-2","w-full",3,"ngModel","binary","label","ngModelChange"],["FullChannelSearch","ngModel"],["inputId","RemoveDuplicates","name","RemoveDuplicates",1,"label","mb-2","w-full",3,"ngModel","binary","label","ngModelChange"],["RemoveDuplicates","ngModel"],["inputId","AddFullTS","name","AddFullTS",1,"label","mb-2","w-full",3,"ngModel","binary","label","ngModelChange"],["AddFullTS","ngModel"],["inputId","TestDecryptable","name","TestDecryptable",1,"label","mb-2","w-full",3,"ngModel","binary","label","ngModelChange"],["TestDecryptable","ngModel"],["for
","ScanType",1,"label","block"],["optionLabel","label","optionValue","value","name","ScanType",3,"options","ngModel","editable","maxlength","ngModelChange","onChange"],["ScanType","ngModel"],["class","mb-4
w-full",3,"legend","toggleable","collapsed",4,"ngIf"],[1,"grid"],[2,"display","flex","align-items","center"],["icon","pi
pi-play","iconPos","left",3,"label","disabled","onClick"],["class","block",4,"ngIf"],[1,"mb-4","w-full",3,"legend","collapsed","toggleable"],[1,"col-6"],[1,"col-10","bg-blue-100","text-gray-900"],[1,"label","block"],[1,"col-10"],[3,"value"],["class","form-group
field",4,"ngIf"],["icon","pi
pi-times-circle","iconPos","left","styleClass","p-button-danger",3,"label","disabled","onClick"],[1,"col-6",2,"white-space","pre-line"],["scroll",""],[1,"mb-4","w-full",3,"legend","toggleable","collapsed"],["for","FreqTable",1,"label","block"],["optionLabel","label","optionValue","value","name","FreqTable",3,"options","ngModel","editable","maxlength","ngModelChange","onChange"
],["FreqTable","ngModel"],["for","Country",1,"label","block"],["optionLabel","label","optionValue","value","name","Country",3,"options","ngModel","editable","maxlength","ngModelChange"],["Country","ngModel"],["for","atscModulation",1,"label","block"],["optionLabel","label","optionValue","value","name","atscModulation",3,"options","ngModel","editable","maxlength","ngModelChange","onChange"],["atscModulation","ngModel"],["for","FirstChan",1,"label","block"],["name","FirstChan",3,"options","ngModel","editable","maxlength","ngModelChange"],["FirstChan","ngModel"],[4,"ngIf"],[1,"p-error","block"],["for","LastChan",1,"label","block"],["name","LastChan",3,"options","ngModel","editable","maxlength","ngModelChange"],["LastChan","ngModel"],["for","Frequency",1,"label","block"],["name","Frequency","id","Frequency",3,"ngModel","min","max","ngModelChange"],[3,"translate","translateParams"],["for","Inversion",1,"label","block"],["name","Inversion","optionLabel","label","optionValue","value",3,"op
tions","ngModel","editable","maxlength","ngModelChange"],["Inversion","ngModel"],["for","SatTuning",1,"label","block"],["name","SatTuning","optionLabel","label",3,"options","ngModel","editable","maxlength","ngModelChange","onChange"],["SatTuning","ngModel"],["for","Bandwidth",1,"label","block"],["name","Bandwidth","optionLabel","label","optionValue","value",3,"options","ngModel","editable","maxlength","ngModelChange"],["Bandwidth","ngModel"],["for","Polarity",1,"label","block"],["name","Polarity","optionLabel","label","optionValue","value",3,"options","ngModel","editable","maxlength","ngModelChange"],["Polarity","ngModel"],["for","dvbcSymbolRate",1,"label","block"],["name","dvbcSymbolRate","optionLabel","label","optionValue","value",3,"options","ngModel","editable","maxlength","ngModelChange"],["dvbcSymbolRate","ngModel"],["for","dvbsSymbolRate",1,"label","block"],["name","dvbsSymbolRate","optionLabel","label","optionValue","value",3,"options","ngModel","editable","maxlength","ngMod
elChange"],["dvbsSymbolRate","ngModel"],["for","Constellation",1,"label","block"],["name","Constellation","optionLabel","label","optionValue","value",3,"options","ngModel","editable","maxlength","ngModelChange"],["Constellation","ngModel"],["for","Modulation",1,"label","block"],["name","Modulation","optionLabel","label","optionValue","value",3,"options","ngModel","editable","maxlength","ngModelChange"],["Modulation","ngModel"],["for","DVBSModulation",1,"label","block"],["name","DVBSModulation","optionLabel","label","optionValue","value",3,"options","ngModel","editable","maxlength","ngModelChange"],["DVBSModulation","ngModel"],["for","DVBTModSys",1,"label","block"],["name","DVBTModSys","optionLabel","label","optionValue","value",3,"options","ngModel","editable","maxlength","ngModelChange"],["DVBTModSys","ngModel"],["for","DVBCModSys",1,"label","block"],["name","DVBCModSys","optionLabel","label","optionValue","value",3,"options","ngModel","editable","maxlength","ngModelChange"],["DVBC
ModSys","ngModel"],["for","DVBSModSys",1,"label","block"],["name","DVBSModSys","optionLabel","label","optionValue","value",3,"options","ngModel","editable","maxlength","ngModelChange"],["DVBSModSys","ngModel"],["for","CodeRateLP",1,"label","block"],["name","CodeRateLP","optionLabel","label","optionValue","value",3,"options","ngModel","editable","maxlength","ngModelChange"],["CodeRateLP","ngModel"],["for","CodeRateHP",1,"label","block"],["name","CodeRateHP","optionLabel","label","optionValue","value",3,"options","ngModel","editable","maxlength","ngModelChange"],["CodeRateHP","ngModel"],["for","FEC",1,"label","block"],["name","FEC","optionLabel","label","optionValue","value",3,"options","ngModel","editable","maxlength","ngModelChange"],["FEC","ngModel"],["for","TransmissionMode",1,"label","block"],["name","TransmissionMode","optionLabel","label","optionValue","value",3,"options","ngModel","editable","maxlength","ngModelChange"],["TransmissionMode","ngModel"],["for","GuardInterval",1,"
label","block"],["name","GuardInterval","optionLabel","label","optionValue","value",3,"options","ngModel","editable","maxlength","ngModelChange"],["GuardInterval","ngModel"],["for","Hierarchy",1,"label","block"],["name","Hierarchy","optionLabel","label","optionValue","value",3,"options","ngModel","editable","maxlength","ngModelChange"],["Hierarchy","ngModel"],["for","RollOff",1,"label","block"],["name","RollOff","optionLabel","label","optionValue","value",3,"options","ngModel","editable","maxlength","ngModelChange"],["RollOff","ngModel"],["for","ScanId",1,"label","block"],["optionLabel","label","optionValue","ScanId","name","ScanId",3,"options","ngModel","editable","maxlength","ngModelChange"],["ScanId","ngModel"],["inputId","IgnoreSignalTimeout","name","IgnoreSignalTimeout",1,"label","mb-2","w-full",3,"ngModel","binary","label","ngModelChange"],["IgnoreSignalTimeout","ngModel"],["inputId","FollowNITSetting","name","FollowNITSetting",1,"label","mb-2","w-full",3,"ngModel","binary","l
abel","ngModelChange"],["FollowNITSetting","ngModel"],["for","MplexId",1,"label","block"],["optionLabel","Description","optionValue","MplexId","name","MplexId",3,"options","ngModel","editable","maxlength","ngModelChange"],["MplexId","ngModel"],[1,"col-10",2,"color","black","background-color","pink"],["pInputText","","id","DialogString","name","DialogString",1,"mb-2","form-control","w-full",3,"ngModel","ngModelChange"],["InputName","ngModel"],["for","DialogButtons",1,"label","block"],["name","DialogButtons",3,"options","ngModel","editable","maxlength","ngModelChange"],["styleClass","p-button-info",1,"gap-3",3,"label","onClick"]],template:function(e,n){1&e&&(l(0,"div",0)(1,"label",1),g(2),m(3,"translate"),c(),l(4,"p-dropdown",2,3),C("ngModelChange",function(r){return
n.scanRequest.DesiredServices=r}),c(),l(6,"small",4),g(7),m(8,"translate"),c()(),l(9,"div",0)(10,"p-checkbox",5,6),C("ngModelChange",function(r){return
n.scanRequest.FreeToAirOnly=r}),m(12,"translate"),c(),l(13,"small",4)
,g(14),m(15,"translate"),c()(),l(16,"div",0)(17,"p-checkbox",7,8),C("ngModelChange",function(r){return
n.scanRequest.ChannelNumbersOnly=r}),m(19,"translate"),c(),l(20,"small",4),g(21),m(22,"translate"),c()(),l(23,"div",0)(24,"p-checkbox",9,10),C("ngModelChange",function(r){return
n.scanRequest.CompleteChannelsOnly=r}),m(26,"translate"),c(),l(27,"small",4),g(28),m(29,"translate"),c()(),l(30,"div",0)(31,"p-checkbox",11,12),C("ngModelChange",function(r){return
n.scanRequest.FullChannelSearch=r}),m(33,"translate"),c(),l(34,"small",4),g(35),m(36,"translate"),c()(),l(37,"div",0)(38,"p-checkbox",13,14),C("ngModelChange",function(r){return
n.scanRequest.RemoveDuplicates=r}),m(40,"translate"),c(),l(41,"small",4),g(42),m(43,"translate"),c()(),l(44,"div",0)(45,"p-checkbox",15,16),C("ngModelChange",function(r){return
n.scanRequest.AddFullTS=r}),m(47,"translate"),c(),l(48,"small",4),g(49),m(50,"translate"),c()(),l(51,"div",0)(52,"p-checkbox",17,18),C("ngModelChange",function(r){return
n.scanRequ
est.TestDecryptable=r}),m(54,"translate"),c(),l(55,"small",4),g(56),m(57,"translate"),c()(),l(58,"div",0)(59,"label",19),g(60),m(61,"translate"),c(),l(62,"p-dropdown",20,21),C("ngModelChange",function(r){return
n.scanRequest.ScanType=r})("onChange",function(){return
n.onScanTypeChange()}),c(),l(64,"small",4),g(65),c()(),_(66,Jse,9,13,"p-fieldset",22),_(67,_re,36,57,"p-fieldset",22),_(68,bre,9,15,"p-fieldset",22),_(69,Cre,17,22,"p-fieldset",22),k(70,"br")(71,"br"),l(72,"div",0)(73,"div",23)(74,"div",24)(75,"p-button",25),C("onClick",function(){return
n.startScan()}),m(76,"translate"),c()()(),_(77,yre,3,3,"small",26),c(),l(78,"p-fieldset",27),m(79,"translate"),l(80,"div",23)(81,"div",28)(82,"div",0)(83,"div",29)(84,"b"),g(85),c()()(),l(86,"div",0)(87,"label",30),g(88),m(89,"translate"),c(),l(90,"div",29),g(91),c()(),l(92,"div",0)(93,"label",30),g(94),m(95,"translate"),c(),l(96,"div",29),g(97),c()(),l(98,"div",0)(99,"label",30),g(100),m(101,"translate"),c(),l(102,"div",31),k(103,"p-pro
gressBar",32),c()(),l(104,"div",0)(105,"label",30),g(106),m(107,"translate"),c(),l(108,"div",31),k(109,"p-progressBar",32),c()(),l(110,"div",0)(111,"label",30),g(112),m(113,"translate"),c(),l(114,"div",31),k(115,"p-progressBar",32),c()(),k(116,"br"),_(117,wre,6,1,"div",33),_(118,Tre,3,1,"div",33),_(119,Sre,6,10,"div",33),_(120,xre,3,3,"div",33),k(121,"br"),l(122,"div",0)(123,"div",24)(124,"p-button",34),C("onClick",function(){return
n.stopScan()}),m(125,"translate"),c()(),k(126,"small",4),c()(),l(127,"div",35)(128,"p-scrollPanel",null,36),g(130),c()()()()),2&e&&(a(2),S(f(3,81,"settings.channelscan.services_label")),a(2),q(A(131,ht)),p("options",n.serviceValues)("ngModel",n.scanRequest.DesiredServices)("editable",!1)("maxlength",0),a(3),T("
",f(8,83,"settings.channelscan.services_desc"),"
"),a(3),x("label",f(12,85,"settings.channelscan.ftaonly_label")),p("ngModel",n.scanRequest.FreeToAirOnly)("binary",!0),a(4),T("
",f(15,87,"settings.channelscan.ftaonly_desc"),"
"),a(3),x("label",f(1
9,89,"settings.channelscan.channelnumbersonly_label")),p("ngModel",n.scanRequest.ChannelNumbersOnly)("binary",!0),a(4),T("
",f(22,91,"settings.channelscan.channelnumbersonly_desc"),"
"),a(3),x("label",f(26,93,"settings.channelscan.completeonly_label")),p("ngModel",n.scanRequest.CompleteChannelsOnly)("binary",!0),a(4),T("
",f(29,95,"settings.channelscan.completeonly_desc"),"
"),a(3),x("label",f(33,97,"settings.channelscan.fullsearch_label")),p("ngModel",n.scanRequest.FullChannelSearch)("binary",!0),a(4),T("
",f(36,99,"settings.channelscan.fullsearch_desc"),"
"),a(3),x("label",f(40,101,"settings.channelscan.removeduplicates_label")),p("ngModel",n.scanRequest.RemoveDuplicates)("binary",!0),a(4),T("
",f(43,103,"settings.channelscan.removeduplicates_desc"),"
"),a(3),x("label",f(47,105,"settings.channelscan.addfullts_label")),p("ngModel",n.scanRequest.AddFullTS)("binary",!0),a(4),T("
",f(50,107,"settings.channelscan.addfullts_desc"),"
"),a(3),x("label",f(54,109,"settings.channelscan.testd
ecryptable_label")),p("ngModel",n.scanRequest.TestDecryptable)("binary",!0),a(4),T("
",f(57,111,"settings.channelscan.testdecryptable_desc"),"
"),a(4),S(f(61,113,"settings.channelscan.scantype_label")),a(2),q(A(132,ht)),p("options",n.scanTypes)("ngModel",n.scanRequest.ScanType)("editable",!1)("maxlength",0),a(3),T("
",n.helpText,"
"),a(1),p("ngIf","FULL"==n.scanRequest.ScanType),a(1),p("ngIf","FULLTUNED"==n.scanRequest.ScanType),a(1),p("ngIf","IMPORT"==n.scanRequest.ScanType),a(1),p("ngIf","ALLTRANSPORT"==n.scanRequest.ScanType||"ONETRANSPORT"==n.scanRequest.ScanType),a(6),x("label",f(76,115,"settings.channelscan.scan_label")),p("disabled",n.setupService.schedulingEnabled||"RUNNING"==n.scanStatus.Status||!n.card.SourceId),a(2),p("ngIf",n.iconnection.currentForm&&n.iconnection.currentForm.form.dirty||!n.card.SourceId),a(1),x("legend",f(79,117,"settings.channelscan.status_title")),p("collapsed",!0)("toggleable",!1)("collapsed",!1),a(7),T("",n.scanStatus.StatusTitle,"
\xa0"),a(3),S(f(8
9,119,"settings.channelscan.status_label")),a(3),T("
",n.scanStatus.StatusText," \xa0
"),a(3),S(f(95,121,"settings.channelscan.lock_label")),a(3),T("
",n.scanStatus.SignalLock?n.lockDesc:n.nolockDesc," \xa0
"),a(3),S(f(101,123,"settings.channelscan.progress_label")),a(3),q(A(133,Sg)),p("value",n.scanStatus.Progress),a(3),S(f(107,125,"settings.channelscan.noise_label")),a(3),q(A(134,Sg)),p("value",n.scanStatus.SignalNoise),a(3),S(f(113,127,"settings.channelscan.strength_label")),a(3),q(A(135,Sg)),p("value",n.scanStatus.SignalStrength),a(2),p("ngIf",n.scanStatus.DialogMsg),a(1),p("ngIf",n.scanStatus.DialogInputReq),a(1),p("ngIf",n.scanStatus.DialogButtons.length>0),a(1),p("ngIf",n.scanStatus.DialogButtons.length>0||n.scanStatus.DialogInputReq),a(4),x("label",f(125,129,"settings.channelscan.stop_label")),p("disabled","RUNNING"!=n.scanStatus.Status||n.scanStatus.DialogButtons.length>0),a(4),q(A(136,Dre)),a(2),T("
",n.scanStatus.StatusLog," "))},directives:[Ot,Te,_e,_n,sn,Q,Ui,pt,mu,ve,t
z,Ye,K2],pipes:[ce],styles:[""]}),t})(),kre=(()=>{class
t{constructor(e){this.httpClient=e}GetBackendStatus(){return
this.httpClient.get("/Status/GetBackendStatus")}}return
t.\u0275fac=function(e){return
new(e||t)(K(Bi))},t.\u0275prov=X({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();var
ci=(()=>(function(t){t[t.kState_Error=-1]="kState_Error",t[t.kState_None=0]="kState_None",t[t.kState_WatchingLiveTV=1]="kState_WatchingLiveTV",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"}(ci||(ci={})),ci))();let
cs=(()=>{class t{constructor(e){this.translate=e,this.allSlashes=new
RegExp(/\//g),this.deSpacer=new RegExp(/ /g),this.recTypeTrans={"Single
Record":"","Record All":"
","Record One":"","Record
Daily":"","Record Weekly":"","Override
Recording":"","Do not Record":"","Recording
Template":"","Not Recording":""};for(const[n,s]of
Object.entries(this.recTypeTrans)){const
r="recrule."+n.replace(this.deSpacer,"");this.translate.get(r).subscribe(o=>{Object.defineProperty(this.recTypeTrans,n,{value:o})})}}formatDate(e,n){if(!e)return"";10==e.length&&(e+="
00:00");let s=new Date(e).toLocaleDateString();return
n?s.replace(this.allSlashes,"/<wbr>"):s}formatTime(e){return e?(new
Date(e).toLocaleTimeString()+" ").replace(/:..
/,""):""}formatDateTime(e,n){return this.formatDate(e,n)+"
"+this.formatTime(e)}}return t.\u0275fac=function(e){return
new(e||t)(K(Oe))},t.\u0275prov=X({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();const
Ire=function(t){return{EndTime:t}};function
Ere(t,i){if(1&t&&(de(0),g(1),m(2,"translate"),pe()),2&t){const
e=d().$implicit,n=d(2);a(1),yo(" '",e.Recording.Title,"' on
",e.Recording.Channel.CallSign,". ",Dt(2,3,"dashboard.status.end
time_text",U(6,Ire,n.utility.formatTime(e.Recording.EndTime)))," ")}}const
Rre=function(t,i,e,n){return{CardId:t,Id:i,InputName:e,DisplayName:n}};function
Lre(t,i){if(1&t&&(l(0,"div")(1,"ul")(2,"li"),g(3),m(4,"translate"),c()()()),2&t){const
e=i.$implicit;a(3),T("",Dt(4,1,"dashboard.status.card_text",qn(4,Rre,e.CardId,e.Id,e.InputName,e.DisplayName)),"
")}}const Ore=function(t,i,e){return{Id:t,HostName:i,State:e}};function
Are(t,i){if(1&t&&(l(0,"div")(1,"ul")(2,"li"),g(3),m(4,"translate"),_(5,Ere,3,8,"ng-container",4),c(),_(6,Lre,5,9,"div",3),c()()),2&t){const
e=i.$implicit,n=d(2);a(3),T("
",Dt(4,3,"dashboard.status.encoder_text",Qt(6,Ore,e.Id,e.HostName,n.EncoderStatusText(e.State))),"
"),a(2),p("ngIf",7==e.State),a(1),p("ngForOf",e.Inputs)}}function
Pre(t,i){if(1&t&&(l(0,"div"),_(1,Are,7,10,"div",3),c()),2&t){const
e=d();a(1),p("ngForOf",e.encoders)}}function
Fre(t,i){1&t&&(l(0,"div"),g(1),m(2,"translate"),c()),2&t&&(a(1),S(f(2,1,"dashboard.status.no_encoders")))}let
Nre=(()=>{cla
ss t{constructor(e){this.utility=e}ngOnInit(){}EncoderStatusText(e){switch(e){case
ci.kState_Error:return"Error";case ci.kState_None:return"Idle";case
ci.kState_WatchingLiveTV:return"Watching Live TV";case
ci.kState_WatchingPreRecorded:return"Watching Pre Recorded";case
ci.kState_WatchingVideo:return"Watching Video";case
ci.kState_WatchingDVD:return"Watching DVD";case
ci.kState_WatchingBD:return"Watching BD";case
ci.kState_WatchingRecording:return"Watching Recording";case
ci.kState_RecordingOnly:return"Recording";case
ci.kState_ChangingState:return"Changing
State";default:return"unknown"}}}return t.\u0275fac=function(e){return
new(e||t)(D(cs))},t.\u0275cmp=z({type:t,selectors:[["app-status-encoders"]],inputs:{encoders:"encoders"},decls:7,vars:5,consts:[[1,"statusBox"],[4,"ngIf","ngIfElse"],["noEncoders",""],[4,"ngFor","ngForOf"],[4,"ngIf"]],template:function(e,n){if(1&e&&(l(0,"div",0)(1,"h2"),g(2),m(3,"translate"),c(),_(4,Pre,2,1,"div",1),c(),_(5,Fre,3,3,"ng-template",null,2,we)),2&
e){const
s=F(6);a(2),S(f(3,3,"dashboard.status.encoder_title")),a(2),p("ngIf",0!=(null==n.encoders?null:n.encoders.length))("ngIfElse",s)}},directives:[Q,at],pipes:[ce],styles:["","div.statusBox[_ngcontent-%COMP%]{width:auto;border-top:1px
solid var(--text-color);border-right:1px solid var(--text-color);border-bottom:1px solid
var(--text-color);border-left:10px solid var(--text-color);padding:10px;border-radius:8px
0 0 8px;margin:20px}"]}),t})();function
Vre(t,i){if(1&t&&(l(0,"li",4)(1,"div",5),g(2),c()()),2&t){const
e=i.$implicit,n=d(2);a(1),x("pTooltip",e.Description),a(1),Ih("
",n.utility.formatDate(e.StartTime),"
",n.utility.formatTime(e.StartTime)," - ",e.Recording.EncoderId," -
",e.Channel.CallSign," - ",e.Title," ")}}const
Bre=function(t){return{length:t}};function
Hre(t,i){if(1&t&&(l(0,"div")(1,"p"),g(2),m(3,"translate"),c(),l(4,"ul"),_(5,Vre,3,6,"li",3),c()()),2&t){const
e=d();a(2),S(Dt(3,2,"dashboard.status.schedule_text",U(5,Bre,null==e.scheduled?null:e.scheduled.length))
),a(3),p("ngForOf",e.scheduled)}}function
qre(t,i){1&t&&(l(0,"p"),g(1),m(2,"translate"),c()),2&t&&(a(1),S(f(2,1,"dashboard.status.schedule_none")))}let
Gre=(()=>{class t{constructor(e){this.utility=e}ngOnInit(){}}return
t.\u0275fac=function(e){return
new(e||t)(D(cs))},t.\u0275cmp=z({type:t,selectors:[["app-status-scheduled"]],inputs:{scheduled:"scheduled"},decls:7,vars:5,consts:[[1,"statusBox"],[4,"ngIf","ngIfElse"],["noSchedule",""],["class","flex",4,"ngFor","ngForOf"],[1,"flex"],["tooltipPosition","bottom",3,"pTooltip"]],template:function(e,n){if(1&e&&(l(0,"div",0)(1,"h2"),g(2),m(3,"translate"),c(),_(4,Hre,6,7,"div",1),c(),_(5,qre,3,3,"ng-template",null,2,we)),2&e){const
s=F(6);a(2),S(f(3,3,"dashboard.status.schedule_title")),a(2),p("ngIf",0!=(null==n.scheduled?null:n.scheduled.length))("ngIfElse",s)}},directives:[Q,at,Kt],pipes:[ce],styles:["","div.statusBox[_ngcontent-%COMP%]{width:auto;border-top:1px
solid var(--text-color);border-right:1px solid var(--text-color);border-bottom
:1px solid var(--text-color);border-left:10px solid
var(--text-color);padding:10px;border-radius:8px 0 0
8px;margin:20px}"]}),t})();function
Ure(t,i){if(1&t&&(l(0,"div")(1,"p"),g(2),m(3,"translate"),c()()),2&t){const
e=i.$implicit,n=d(2);a(2),Eh("",n.utility.formatDate(e.StatusTime),"
",n.utility.formatTime(e.StatusTime)," - ",e.Program.Title," -
",e.LocalizedJobName," -
",f(3,6,"dashboard.status.jobs_status"),":
",e.LocalizedStatus," ")}}function
zre(t,i){if(1&t&&(l(0,"div")(1,"p"),g(2),m(3,"translate"),c(),l(4,"ul"),_(5,Ure,4,8,"div",3),c()()),2&t){const
e=d();a(2),T("",f(3,2,"dashboard.status.jobs_text"),":"),a(3),p("ngForOf",e.jobqueue)}}function
jre(t,i){1&t&&(l(0,"p"),g(1),m(2,"translate"),c()),2&t&&(a(1),S(f(2,1,"dashboard.status.jobs_none")))}let
$re=(()=>{class t{constructor(e){this.utility=e}ngOnInit(){}}return
t.\u0275fac=function(e){return
new(e||t)(D(cs))},t.\u0275cmp=z({type:t,selectors:[["app-status-jobqueue"]],inputs:{jobqueue:"jobqueue"},decls:7,vars:5,consts:[[1,"s
tatusBox"],[4,"ngIf","ngIfElse"],["noJobs",""],[4,"ngFor","ngForOf"]],template:function(e,n){if(1&e&&(l(0,"div",0)(1,"h2"),g(2),m(3,"translate"),c(),_(4,zre,6,4,"div",1),c(),_(5,jre,3,3,"ng-template",null,2,we)),2&e){const
s=F(6);a(2),S(f(3,3,"dashboard.status.jobs_title")),a(2),p("ngIf",0!=(null==n.jobqueue?null:n.jobqueue.length))("ngIfElse",s)}},directives:[Q,at],pipes:[ce],styles:["","div.statusBox[_ngcontent-%COMP%]{width:auto;border-top:1px
solid var(--text-color);border-right:1px solid var(--text-color);border-bottom:1px solid
var(--text-color);border-left:10px solid var(--text-color);padding:10px;border-radius:8px
0 0 8px;margin:20px}"]}),t})();function
Wre(t,i){if(1&t&&(l(0,"div")(1,"p"),g(2),m(3,"translate"),c(),l(4,"ul")(5,"li"),g(6),m(7,"translate"),c(),l(8,"ul")(9,"li"),g(10),m(11,"translate"),c(),l(12,"li"),g(13),m(14,"translate"),c(),l(15,"li"),g(16),m(17,"translate"),c(),l(18,"li"),g(19),m(20,"translate"),c(),l(21,"ul")(22,"li"),g(23),m(24,"translate"),c(),l(25,"li")
,g(26),m(27,"translate"),c(),l(28,"li"),g(29),m(30,"translate"),c()()()()()),2&t){const
e=i.ngIf;a(2),T("",f(3,16,"dashboard.status.mach.disk_summ"),":"),a(4),T("",f(7,18,"dashboard.status.mach.disk_total"),":"),a(4),We("",f(11,20,"dashboard.status.mach.total_space"),":
",e.Total.toLocaleString(),"
MiB"),a(3),We("",f(14,22,"dashboard.status.mach.space_used"),":
",e.Used.toLocaleString(),"
MiB"),a(3),We("",f(17,24,"dashboard.status.mach.space_free"),":
",e.Free.toLocaleString(),"
MiB"),a(3),We("",f(20,26,"dashboard.status.mach.space_after_expire"),":
",(e.Free+e.Expirable).toLocaleString(),""),a(4),We("",f(24,28,"dashboard.status.mach.space_livetv"),":
",e.LiveTV.toLocaleString(),"
MiB"),a(3),We("",f(27,30,"dashboard.status.mach.space_deleted"),":
",e.Deleted.toLocaleString(),"
MiB"),a(3),We("",f(30,32,"dashboard.status.mach.space_expirable"),":
",e.Expirable.toLocaleString()," MiB")}}function
Kre(t,i){1&t&&Y(0)}function
Qre(t,i){if(1&t&&(l(0,"div"),_(1,Kre,1,0,"ng-container",6),c())
,2&t){const e=i.$implicit;d(2);const
n=F(10);a(1),p("ngTemplateOutlet",n)("ngTemplateOutletContext",e)}}const
Jre=function(t,i,e){return{GuideStart:t,GuideEnd:i,GuideStatus:e}},Yre=function(t){return{GuideNext:t}},Zre=function(t,i){return{GuideThru:t,GuideDays:i}};function
Xre(t,i){if(1&t&&(l(0,"div")(1,"div")(2,"p"),g(3),m(4,"translate"),c(),l(5,"ul")(6,"li"),g(7),m(8,"translate"),c(),l(9,"li"),g(10),m(11,"translate"),c(),l(12,"li"),g(13),m(14,"translate"),c()()(),_(15,Wre,31,34,"div",1),l(16,"div")(17,"p"),g(18),m(19,"translate"),c(),_(20,Qre,2,2,"div",5),c(),l(21,"div")(22,"p"),g(23),m(24,"translate"),k(25,"br"),g(26),m(27,"translate"),k(28,"br"),g(29),m(30,"translate"),c()()()),2&t){const
e=d(),n=F(8);a(3),S(f(4,14,"dashboard.status.mach.load")),a(4),We("1
",f(8,16,"dashboard.status.mach.minute"),":
",e.machineinfo.LoadAvg1.toLocaleString(),""),a(3),We("5
",f(11,18,"dashboard.status.mach.minutes"),":
",e.machineinfo.LoadAvg2.toLocaleString(),""),a(3),We("15
",f(14,20,"dashboard.
status.mach.minutes"),":
",e.machineinfo.LoadAvg3.toLocaleString(),""),a(2),p("ngIf",e.getStorageGroupTotal(e.machineinfo.StorageGroups))("ngIfElse",n),a(3),T("",f(19,22,"dashboard.status.mach.disk_details"),":"),a(2),p("ngForOf",e.getStorageGroupDetails(e.machineinfo.StorageGroups)),a(3),S(Dt(24,24,"dashboard.status.mach.mythfill_last",Qt(33,Jre,e.utility.formatDateTime(e.machineinfo.GuideStart),e.utility.formatDateTime(e.machineinfo.GuideEnd),e.machineinfo.GuideStatus))),a(3),T("
",Dt(27,27,"dashboard.status.mach.mythfill_next",U(37,Yre,e.utility.formatDateTime(e.machineinfo.GuideNext))),""),a(3),T("
",Dt(30,30,"dashboard.status.mach.mythfill_until",Ge(39,Zre,e.utility.formatDateTime(e.machineinfo.GuideThru),e.machineinfo.GuideDays)),"
")}}function
eoe(t,i){1&t&&(l(0,"p"),g(1),m(2,"translate"),c()),2&t&&(a(1),S(f(2,1,"dashboard.status.mach.none")))}function
toe(t,i){1&t&&(l(0,"p"),g(1),m(2,"translate"),c()),2&t&&(a(1),S(f(2,1,"dashboard.status.mach.disk_none")))}function
noe(t,i){
if(1&t&&(l(0,"ul")(1,"li"),g(2),m(3,"translate"),c(),l(4,"ul")(5,"li"),g(6),m(7,"translate"),c(),l(8,"li"),g(9),m(10,"translate"),c(),l(11,"li"),g(12),m(13,"translate"),c(),l(14,"li"),g(15),m(16,"translate"),c()()()),2&t){const
e=i.Id,n=i.Directory,s=i.Total,r=i.Used,o=i.Free;a(2),We("",f(3,10,"dashboard.status.mach.myth_drive"),"
#",e,""),a(4),We("",f(7,12,"dashboard.status.mach.disk_dirs"),":
",n,""),a(3),We("",f(10,14,"dashboard.status.mach.total_space"),":
",s.toLocaleString(),"
MiB"),a(3),We("",f(13,16,"dashboard.status.mach.space_used"),":
",r.toLocaleString(),"
MiB"),a(3),We("",f(16,18,"dashboard.status.mach.space_free"),":
",o.toLocaleString()," MiB")}}let ioe=(()=>{class
t{constructor(e){this.utility=e}ngOnInit(){}getStorageGroupTotal(e){return
e.filter(n=>"total"==n.Id)[0]}getStorageGroupDetails(e){return
e.filter(n=>"total"!=n.Id)}}return t.\u0275fac=function(e){return
new(e||t)(D(cs))},t.\u0275cmp=z({type:t,selectors:[["app-status-machineinfo"]],inputs:{machineinfo:"mach
ineinfo"},decls:11,vars:5,consts:[[1,"statusBox"],[4,"ngIf","ngIfElse"],["noMachineInfo",""],["noDiskInfo",""],["printStorageGroup",""],[4,"ngFor","ngForOf"],[4,"ngTemplateOutlet","ngTemplateOutletContext"]],template:function(e,n){if(1&e&&(l(0,"div",0)(1,"h2"),g(2),m(3,"translate"),c(),_(4,Xre,31,42,"div",1),c(),_(5,eoe,3,3,"ng-template",null,2,we),_(7,toe,3,3,"ng-template",null,3,we),_(9,noe,17,20,"ng-template",null,4,we)),2&e){const
s=F(6);a(2),S(f(3,3,"dashboard.status.mach.title")),a(2),p("ngIf",n.machineinfo)("ngIfElse",s)}},directives:[Q,at,Rt],pipes:[ce],styles:["","div.statusBox[_ngcontent-%COMP%]{width:auto;border-top:1px
solid var(--text-color);border-right:1px solid var(--text-color);border-bottom:1px solid
var(--text-color);border-left:10px solid var(--text-color);padding:10px;border-radius:8px
0 0 8px;margin:20px}"]}),t})();const
soe=function(t,i,e){return{Name:t,Type:i,IP:e}};function
roe(t,i){if(1&t&&(l(0,"div")(1,"li"),g(2),m(3,"translate"),c()()),2&t){const
e=i.$imp
licit;a(2),T("",Dt(3,1,"dashboard.status.backends_detail",Qt(4,soe,e.Name,e.Type,e.IP)),"
")}}function
ooe(t,i){if(1&t&&(l(0,"div")(1,"ul"),_(2,roe,4,8,"div",3),c()()),2&t){const
e=d();a(2),p("ngForOf",e.backends)}}function
aoe(t,i){1&t&&(l(0,"p"),g(1),m(2,"translate"),c()),2&t&&(a(1),S(f(2,1,"dashboard.status.backends_none")))}let
loe=(()=>{class t{constructor(){}ngOnInit(){}}return t.\u0275fac=function(e){return
new(e||t)},t.\u0275cmp=z({type:t,selectors:[["app-status-backends"]],inputs:{backends:"backends"},decls:7,vars:5,consts:[[1,"statusBox"],[4,"ngIf","ngIfElse"],["noBackends",""],[4,"ngFor","ngForOf"]],template:function(e,n){if(1&e&&(l(0,"div",0)(1,"h2"),g(2),m(3,"translate"),c(),_(4,ooe,3,1,"div",1),c(),_(5,aoe,3,3,"ng-template",null,2,we)),2&e){const
s=F(6);a(2),S(f(3,3,"dashboard.status.backends_title")),a(2),p("ngIf",0!=(null==n.backends?null:n.backends.length))("ngIfElse",s)}},directives:[Q,at],pipes:[ce],styles:["","div.statusBox[_ngcontent-%COMP%]{width:auto;border-to
p:1px solid var(--text-color);border-right:1px solid var(--text-color);border-bottom:1px
solid var(--text-color);border-left:10px solid
var(--text-color);padding:10px;border-radius:8px 0 0 8px;margin:20px}"]}),t})();const
coe=function(t,i,e,n){return{Name:t,IP:i,Port:e,OnLine:n}};function
uoe(t,i){if(1&t&&(l(0,"div")(1,"li"),g(2),m(3,"translate"),c()()),2&t){const
e=i.$implicit;a(2),T("",Dt(3,1,"dashboard.status.frontends_detail",qn(4,coe,e.Name,e.IP,e.Port,e.OnLine)),"
")}}function
doe(t,i){if(1&t&&(l(0,"div")(1,"ul"),_(2,uoe,4,9,"div",3),c()()),2&t){const
e=d();a(2),p("ngForOf",e.frontends)}}function
poe(t,i){1&t&&(l(0,"p"),g(1),m(2,"translate"),c()),2&t&&(a(1),S(f(2,1,"dashboard.status.frontends_none")))}let
hoe=(()=>{class t{constructor(){}ngOnInit(){}}return t.\u0275fac=function(e){return
new(e||t)},t.\u0275cmp=z({type:t,selectors:[["app-status-frontends"]],inputs:{frontends:"frontends"},decls:7,vars:5,consts:[[1,"statusBox"],[4,"ngIf","ngIfElse"],["noFrontends",""],[4,"ngFor",
"ngForOf"]],template:function(e,n){if(1&e&&(l(0,"div",0)(1,"h2"),g(2),m(3,"translate"),c(),_(4,doe,3,1,"div",1),c(),_(5,poe,3,3,"ng-template",null,2,we)),2&e){const
s=F(6);a(2),S(f(3,3,"dashboard.status.frontends_title")),a(2),p("ngIf",0!=(null==n.frontends?null:n.frontends.length))("ngIfElse",s)}},directives:[Q,at],pipes:[ce],styles:["","div.statusBox[_ngcontent-%COMP%]{width:auto;border-top:1px
solid var(--text-color);border-right:1px solid var(--text-color);border-bottom:1px solid
var(--text-color);border-left:10px solid var(--text-color);padding:10px;border-radius:8px
0 0 8px;margin:20px}"]}),t})();function
moe(t,i){if(1&t&&(l(0,"div",9)(1,"h2"),g(2),m(3,"translate"),c(),l(4,"div"),g(5),c()()),2&t){const
e=d().ngIf;a(2),S(f(3,2,"dashboard.status.misc_title")),a(3),T("
",e.Miscellaneous," ")}}function
foe(t,i){if(1&t&&(l(0,"div"),k(1,"app-status-encoders",2)(2,"app-status-scheduled",3)(3,"app-status-jobqueue",4)(4,"app-status-machineinfo",5)(5,"app-status-backends",6)(6,"app-stat
us-frontends",7),_(7,moe,6,4,"div",8),c()),2&t){const
e=i.ngIf;a(1),p("encoders",e.Encoders),a(1),p("scheduled",e.Scheduled),a(1),p("jobqueue",e.JobQueue),a(1),p("machineinfo",e.MachineInfo),a(1),p("backends",e.Backends),a(1),p("frontends",e.Frontends),a(1),p("ngIf",e.Miscellaneous)}}function
goe(t,i){1&t&&(l(0,"div"),g(1,"Loading..."),c())}let
_oe=(()=>{class
t{constructor(e){this.statusService=e}ngOnInit(){this.m_status$=this.statusService.GetBackendStatus()}}return
t.\u0275fac=function(e){return
new(e||t)(D(kre))},t.\u0275cmp=z({type:t,selectors:[["app-status"]],decls:7,vars:7,consts:[[4,"ngIf","ngIfElse"],["loading",""],[3,"encoders"],[3,"scheduled"],[3,"jobqueue"],[3,"machineinfo"],[3,"backends"],[3,"frontends"],["class","statusBox",4,"ngIf"],[1,"statusBox"]],template:function(e,n){if(1&e&&(l(0,"h2"),g(1),m(2,"translate"),c(),_(3,foe,8,7,"div",0),m(4,"async"),_(5,goe,2,0,"ng-template",null,1,we)),2&e){const
s=F(6);let r;a(1),T("",f(2,3,"dashboard.backendStatus"),"
"),a(2),p("ng
If",null==(r=f(4,5,n.m_status$))?null:r.BackendStatus)("ngIfElse",s)}},directives:[Q,Nre,Gre,$re,ioe,loe,hoe],pipes:[ce,xy],styles:["div.statusBox[_ngcontent-%COMP%]{width:auto;border-top:1px
solid var(--text-color);border-right:1px solid var(--text-color);border-bottom:1px solid
var(--text-color);border-left:10px solid var(--text-color);padding:10px;border-radius:8px
0 0 8px;margin:20px}"]}),t})();const
boe=["recsform"],voe=["menu"];function Coe(t,i){}function
yoe(t,i){1&t&&g(0),2&t&&T(" ",i.$implicit,"
")}function woe(t,i){if(1&t){const
e=I();l(0,"p-dropdown",67),C("onChange",function(s){return
v(e).filterCallback(s.value)}),m(1,"translate"),_(2,yoe,1,1,"ng-template",68),c()}if(2&t){const
e=i.$implicit,n=d(2);x("placeholder",f(1,4,"settings.chanedit.all")),p("ngModel",e)("options",n.recGroups)("showClear",!0)}}function
Toe(t,i){if(1&t){const
e=I();l(0,"tr")(1,"th",43)(2,"button",44),C("click",function(s){return
v(e),d().showContextMenu(null,s)}),m(3,"translate"),c(),g(4),m(5,"tran
slate"),m(6,"translate"),k(7,"p-columnFilter",45),g(8),m(9,"translate"),l(10,"p-columnFilter",46),_(11,woe,3,6,"ng-template",47),c(),l(12,"button",48),C("click",function(){v(e);const
s=d();return
s.refreshing=!0,s.refresh()}),m(13,"translate"),c(),g(14),c()(),l(15,"tr")(16,"th",49),g(17),m(18,"translate"),k(19,"p-sortIcon",50),c(),k(20,"th",51),l(21,"th",52),g(22),m(23,"translate"),c(),l(24,"th",53),g(25),m(26,"translate"),c(),l(27,"th",54),g(28),m(29,"translate"),k(30,"p-sortIcon",55),c(),l(31,"th",56),g(32),m(33,"translate"),k(34,"p-sortIcon",57),c(),l(35,"th",58),g(36),m(37,"translate"),c(),l(38,"th",59),g(39),m(40,"translate"),k(41,"p-sortIcon",60),c(),l(42,"th",61),g(43),m(44,"translate"),c(),l(45,"th",62),g(46),m(47,"translate"),c(),l(48,"th",63)(49,"a",64),k(50,"i",65),c(),k(51,"button",66),c()()}if(2&t){const
e=d();a(2),x("pTooltip",f(3,18,"common.selected_menu")),a(2),We("
\xa0\xa0\xa0\xa0\xa0 ",f(5,20,"dashboard.recordings.filter"),":
\xa0\xa0 ",f(6,22,"dashboard.recording
s.title"),": \xa0
"),a(3),p("matchModeOptions",e.matchModeTitle),a(1),T("
",f(9,24,"dashboard.recordings.recgrp"),": \xa0
"),a(2),p("showMenu",!1),a(2),x("pTooltip",f(13,26,"common.refresh")),a(2),T("
\xa0\xa0\xa0",e.programs.length," Rows "),a(3),T("
",f(18,28,"dashboard.recordings.title"),"
"),a(5),S(f(23,30,"dashboard.recordings.subtitle")),a(3),S(f(26,32,"dashboard.recordings.seas_ep")),a(3),T("
",f(29,34,"dashboard.recordings.orig_airdate")," "),a(4),T("
",f(33,36,"dashboard.recordings.airdate"),"
"),a(4),S(f(37,38,"dashboard.recordings.channel")),a(3),T("
",f(40,40,"dashboard.recordings.recgrp")," "),a(4),T("
",f(44,42,"dashboard.recordings.duration"),"
"),a(3),S(f(47,44,"dashboard.recordings.file_size")),a(5),p("disabled",!0)}}function
Soe(t,i){1&t&&(k(0,"i",80),m(1,"translate")),2&t&&x("pTooltip",f(1,1,"dashboard.recordings.damaged"))}function
xoe(t,i){1&t&&(k(0,"i",81),m(1,"translate")),2&t&&x("pTooltip",f(1,1,"dashboard.recordings.watched"))}function
Doe(t,i){if(1&t&&(l(0,
"div"),g(1),c()),2&t){const e=d().$implicit;a(1),We("
",e.Season,"x",e.Episode," ")}}const
Moe=function(t){return{"line-through":t}};function koe(t,i){if(1&t){const
e=I();l(0,"tr",69),C("contextmenu",function(s){const
o=v(e).$implicit;return
d().onContextMenu(o,s)}),l(1,"td",70),_(2,Soe,2,3,"i",71),g(3),c(),l(4,"td",51),_(5,xoe,2,3,"i",72),c(),l(6,"td",73),g(7),c(),l(8,"td",53),_(9,Doe,2,2,"div",74),c(),l(10,"td",62),k(11,"div",75),c(),l(12,"td",62),k(13,"div",75),c(),l(14,"td",58),g(15),c(),l(16,"td",76),g(17),c(),l(18,"td",61),g(19),m(20,"number"),c(),l(21,"td",62),g(22),m(23,"number"),c(),l(24,"td",63)(25,"a",77),m(26,"translate"),k(27,"i",78),c(),l(28,"button",79),C("click",function(s){const
o=v(e).$implicit;return d().showContextMenu(o,s)}),c()()()}if(2&t){const
e=i.$implicit,n=i.rowIndex,s=d();p("ngClass",U(27,Moe,"Deleted"==e.Recording.RecGroup))("pSelectableRow",e)("pSelectableRowIndex",n),a(2),p("ngIf",e.VideoPropNames.indexOf("DAMAGED")>-1),a(1),T("
",e.Title," "),a(2),p("
ngIf",e.ProgramFlagNames.indexOf("WATCHED")>-1),a(1),x("pTooltip",e.Description),a(1),T("
",e.SubTitle,""),a(2),p("ngIf",e.Season>0||e.Episode>0),a(2),p("innerHTML",s.utility.formatDate(e.Airdate,!0),Bt),a(2),p("innerHTML",s.utility.formatDate(e.StartTime,!0),Bt),a(2),We("
",e.Channel.ChanNum,"
",e.Channel.CallSign,""),a(2),S(e.Recording.RecGroup),a(2),T("",Dt(20,19,s.getDuration(e),"1.0-0"),"
min"),a(3),T("
",Dt(23,22,e.Recording.FileSize/1e6,"1.0-0"),"
MB"),a(3),x("href",s.URLencode("/Content/GetRecording?RecordedId="+e.Recording.RecordedId),ln),x("pTooltip",f(26,25,"dashboard.recordings.download")),a(2),p("id","download_"+n)}}function
Ioe(t,i){1&t&&(k(0,"p-message",87),m(1,"translate")),2&t&&x("text",f(1,1,"common.savesuccess"))}function
Eoe(t,i){1&t&&(k(0,"p-message",88),m(1,"translate")),2&t&&x("text",f(1,1,"common.networkfail"))}function
Roe(t,i){if(1&t){const
e=I();l(0,"div",82),_(1,Ioe,2,3,"p-message",83),_(2,Eoe,2,3,"p-message",84),c(),l(3,"p-button",85),C("onClick",functio
n(){return
v(e),d().closeDialog()}),m(4,"translate"),c(),l(5,"p-button",86),C("onClick",function(){return
v(e),d().saveProgram()}),m(6,"translate"),c()}if(2&t){const
e=d(),n=F(1);a(1),p("ngIf",e.successCount>0&&0==e.errorCount&&!n.dirty),a(1),p("ngIf",e.errorCount>0),a(1),x("label",f(4,5,"common.close")),a(2),x("label",f(6,7,"common.save")),p("disabled",!n.dirty||""==e.program.Title.trim())}}function
Loe(t,i){if(1&t){const
e=I();l(0,"p-button",89),C("onClick",function(){return
v(e),d().displayRecGrpDlg=!1}),m(1,"translate"),c(),l(2,"p-button",90),C("onClick",function(){return
v(e),d().updaterecgrp()}),m(3,"translate"),c()}if(2&t){const
e=d();x("label",f(1,3,"common.cancel")),a(2),x("label",f(3,5,"common.ok")),p("disabled",!e.newRecGroup.trim())}}function
Ooe(t,i){if(1&t){const
e=I();l(0,"p-button",91),C("onClick",function(){return
v(e),d().closeDialog()}),m(1,"translate"),c(),l(2,"p-button",92),C("onClick",function(){return
v(e),d().displayUnsaved=!1}),m(3,"translate"),c()}2&t&&(x("
label",f(1,2,"common.nosave")),a(2),x("label",f(3,4,"common.continue")))}const
Aoe=function(){return{height:"75vw",width:"50vw"}},Poe=function(){return{minWidth:"400px"}};let
Foe=(()=>{class
t{constructor(e,n,s,r,o){this.dvrService=e,this.messageService=n,this.translate=s,this.setupService=r,this.utility=o,this.programs=[],this.selection=[],this.actionList=[],this.recGroups=[],this.newRecGroup="",this.program={Title:"",Recording:{}},this.displayMetadataDlg=!1,this.displayRecGrpDlg=!1,this.displayRunJobs=!1,this.displayUnsaved=!1,this.successCount=0,this.errorCount=0,this.refreshing=!1,this.priorRequest={},this.msg={Success:"common.success",Failed:"common.failed",NetFail:"common.networkfail",CanUndo:"dashboard.recordings.canundel",AlreadyDel:"dashboard.recordings.alreadydel",NonReRec:"dashboard.recordings.nonrerec",ActionsSelected:"dashboard.recordings.actionsselected",JobsSelected:"dashboard.recordings.jobsselected",UndefSelection:"dashboard.undefselection"},this.jobsoffset=3,this.j
obs=[{id:"Transcode",label:"dashboard.recordings.job_Transcode",command:h=>this.runjob(h)},{id:"Commflag",label:"dashboard.recordings.job_Commflag",command:h=>this.runjob(h)},{id:"Metadata",label:"dashboard.recordings.job_Metadata",command:h=>this.runjob(h)},{id:"UserJob1",visible:!1,command:h=>this.runjob(h)},{id:"UserJob2",visible:!1,command:h=>this.runjob(h)},{id:"UserJob3",visible:!1,command:h=>this.runjob(h)},{id:"UserJob4",visible:!1,command:h=>this.runjob(h)}],this.mnu_delete={label:"dashboard.recordings.mnu_delete",command:h=>this.delete(h,!1)},this.mnu_delete_rerec={label:"dashboard.recordings.mnu_delete_rerec",command:h=>this.delete(h,!0)},this.mnu_undelete={label:"dashboard.recordings.mnu_undelete",command:h=>this.undelete(h)},this.mnu_rerec={label:"dashboard.recordings.mnu_rerec",command:h=>this.rerec(h)},this.mnu_markwatched={label:"dashboard.recordings.mnu_markwatched",command:h=>this.markwatched(h,!0)},this.mnu_markunwatched={label:"dashboard.recordings.mnu_markunwatc
hed",command:h=>this.markwatched(h,!1)},this.mnu_markdamaged={label:"dashboard.recordings.mnu_markdamaged",command:h=>this.markdamaged(h,!0)},this.mnu_markundamaged={label:"dashboard.recordings.mnu_markundamaged",command:h=>this.markdamaged(h,!1)},this.mnu_updaterecgrp={label:"dashboard.recordings.mnu_updaterecgrp",command:h=>this.promptrecgrp(h)},this.mnu_updatemeta={label:"dashboard.recordings.mnu_updatemeta",command:h=>this.updatemeta(h)},this.mnu_updaterecrule={label:"dashboard.recordings.mnu_updaterecrule",command:h=>this.updaterecrule(h)},this.mnu_stoprec={label:"dashboard.recordings.mnu_stoprec",command:h=>this.stoprec(h)},this.mnu_runjobs={label:"dashboard.recordings.mnu_runjobs",items:this.jobs},this.menuToShow=[],this.matchModeRecGrp=[{value:_t.EQUALS,label:"common.filter.equals"}],this.matchModeTitle=[{value:_t.STARTS_WITH,label:"common.filter.startswith"},{value:_t.CONTAINS,label:"common.filter.contains"},{value:_t.EQUALS,label:"common.filter.equals"}],this.saveObserver=
{next:h=>{h.bool?(this.successCount++,this.currentForm.form.markAsPristine(),this.editingProgram&&Object.assign(this.editingProgram,this.program)):(console.log("saveObserver
error",h),this.errorCount++)},error:h=>{console.log("saveObserver
error",h),this.errorCount++}},this.JobQCmds=this.setupService.getJobQCommands(),this.dvrService.GetRecGroupList().subscribe(h=>{this.recGroups=h.RecGroupList,this.recGroups.push("Deleted")});for(const[h,b]of
Object.entries(this.msg))this.translate.get(b).subscribe(y=>{Object.defineProperty(this.msg,h,{value:y})});[this.mnu_delete,this.mnu_delete_rerec,this.mnu_undelete,this.mnu_rerec,this.mnu_markwatched,this.mnu_markunwatched,this.mnu_markdamaged,this.mnu_markundamaged,this.mnu_updatemeta,this.mnu_updaterecrule,this.mnu_stoprec,this.mnu_updaterecgrp,this.mnu_runjobs,this.jobs[0],this.jobs[1],this.jobs[2],...this.matchModeRecGrp,...this.matchModeTitle].forEach(h=>{h.label&&this.translate.get(h.label).subscribe(b=>h.label=b)})}ngOnInit(){}loadLazy(
e){this.lazyLoadEvent=e;let
n={StartIndex:0,Count:1};e.first&&(n.StartIndex=e.first),e.rows&&(n.Count=e.rows),e.sortField||(e.sortField="Title"),n.Sort=e.sortField,n.Sort="Airdate"==e.sortField?"originalairdate":"Recording.RecGroup"==e.sortField?"recgroup":e.sortField;let
s=" asc";if(e.sortOrder&&e.sortOrder<0&&(s="
desc"),n.Sort=n.Sort+s,n.Sort+=`,title${s},originalairdate${s},season${s},episode${s}`,e.filters){if(e.filters.Title.value)switch(e.filters.Title.matchMode){case
_t.STARTS_WITH:n.TitleRegEx="^"+e.filters.Title.value;break;case
_t.CONTAINS:n.TitleRegEx=e.filters.Title.value;break;case
_t.EQUALS:n.TitleRegEx="^"+e.filters.Title.value+"$"}e.filters["Recording.RecGroup"].value&&e.filters["Recording.RecGroup"].matchMode==_t.EQUALS&&(n.RecGroup=e.filters["Recording.RecGroup"].value)}(n.TitleRegEx!=this.priorRequest.TitleRegEx||n.RecGroup!=this.priorRequest.RecGroup)&&(this.programs=[],this.selection=[],this.menu.hide(),this.priorRequest=n),this.dvrService.GetRecordedList(n).su
bscribe(r=>{let
o=r.ProgramList;this.programs.length=r.ProgramList.TotalAvailable,this.programs.splice(o.StartIndex,o.Count,...o.Programs),this.programs=[...this.programs],this.refreshing=!1})}refresh(){this.selection=[],this.menu.hide(),this.loadLazy(this.lazyLoadEvent)}URLencode(e){return
encodeURI(e)}getDuration(e){const n=new Date(e.Recording.StartTs).getTime();return(new
Date(e.Recording.EndTs).getTime()-n)/6e4}onContextMenu(e,n){return!(!(0==this.selection.length||n.target&&n.target.id&&n.target.id.startsWith("download_"))&&(this.selection.some(s=>!s)?(this.sendMessage("error",null,"",this.msg.UndefSelection),1):this.selection.some(s=>s.Recording.RecordedId==e.Recording.RecordedId)&&(this.showContextMenu(null,n),1)))}onSelectChange(){this.menu.hide()}showContextMenu(e,n){if(this.actionList.length=0,e&&e.Title?this.actionList.push(e):this.actionList.push(...this.selection),0==this.actionList.length)return;if(this.actionList.some(r=>!r))return
void this.sendMessage("error",null,
"",this.msg.UndefSelection);this.menuToShow.length=0;let
s=[];if(this.actionList.some(r=>"Deleted"==r.Recording.RecGroup)&&s.push(this.mnu_undelete),this.actionList.some(r=>"Deleted"!=r.Recording.RecGroup)&&(s.push(this.mnu_delete),s.push(this.mnu_delete_rerec)),s.push(this.mnu_rerec),this.actionList.some(r=>r.ProgramFlagNames.indexOf("WATCHED")>-1)&&s.push(this.mnu_markunwatched),this.actionList.some(r=>r.ProgramFlagNames.indexOf("WATCHED")<0)&&s.push(this.mnu_markwatched),this.actionList.some(r=>r.VideoPropNames.indexOf("DAMAGED")>-1)&&s.push(this.mnu_markundamaged),this.actionList.some(r=>r.VideoPropNames.indexOf("DAMAGED")<0)&&s.push(this.mnu_markdamaged),s.push(this.mnu_updaterecgrp),1==this.actionList.length?(s.push(this.mnu_updatemeta),this.menuToShow.push({label:this.actionList[0].Title+"
-
"+this.actionList[0].SubTitle,items:s})):this.menuToShow.push({label:this.msg.ActionsSelected.replace(/{{
*num *}}/,this.actionList.length.toString()),items:s}),this.actionList.every(r=>"
Deleted"!=r.Recording.RecGroup)){this.menuToShow.push(1==this.actionList.length?this.mnu_runjobs:{label:this.msg.JobsSelected.replace(/{{
*num *}}/,this.actionList.length.toString()),items:this.jobs});for(let
r=0;r<4;r++)this.JobQCmds.UserJob[r]?(this.jobs[r+this.jobsoffset].visible=!0,this.jobs[r+this.jobsoffset].label=this.JobQCmds.UserJobDesc[r]):this.jobs[r+this.jobsoffset].visible=!1}this.menu.toggle(n)}delete(e,n){let
s=this.actionList.shift();s&&this.dvrService.GetRecorded({RecordedId:s.Recording.RecordedId}).subscribe({next:r=>{"Deleted"==r.Program.Recording.RecGroup?(this.sendMessage("error",s,e.item.label,this.msg.AlreadyDel),s.Recording.RecGroup="Deleted"):this.dvrService.DeleteRecording({RecordedId:s.Recording.RecordedId,AllowRerecord:n}).subscribe({next:o=>{o.bool?(this.sendMessage("success",s,e.item.label,this.msg.Success,this.msg.CanUndo),s.Recording.RecGroup="Deleted"):this.sendMessage("error",s,e.item.label,this.msg.Failed)},error:o=>this.networkError(s,o)}),this.de
lete(e,n)},error:r=>{this.networkError(s,r),this.delete(e,n)}})}undelete(e){let
n=this.actionList.shift();n&&this.dvrService.UnDeleteRecording({RecordedId:n.Recording.RecordedId}).subscribe({next:s=>{s.bool?(n.Recording.RecGroup="Default",this.sendMessage("success",n,e.item.label,this.msg.Success)):this.sendMessage("error",n,e.item.label,this.msg.Failed),this.undelete(e)},error:s=>{this.networkError(n,s),this.undelete(e)}})}networkError(e,n){console.log("network
error",n),this.sendMessage("error",e,"",this.msg.NetFail)}sendMessage(e,n,s,r,o){o=o?"\n"+o:"";let
u=s;null!=n&&(u=s+" "+n.Title+"
"+n.SubTitle+o),this.messageService.add({severity:e,summary:r,detail:u,life:5e3,sticky:"error"==e})}rerec(e){let
n=this.actionList.shift();n&&this.dvrService.AllowReRecord(n.Recording.RecordedId).subscribe({next:s=>{s.bool?this.sendMessage("success",n,e.item.label,this.msg.Success):this.sendMessage("error",n,e.item.label,this.msg.Failed),this.rerec(e)},error:s=>{this.networkError(n,s),this.rerec(
e)}})}markwatched(e,n){let
s=this.actionList.shift();s&&this.dvrService.UpdateRecordedMetadata({RecordedId:s.Recording.RecordedId,Watched:n}).subscribe({next:r=>{r.bool?(this.sendMessage("success",s,e.item.label,this.msg.Success),s.ProgramFlagNames=n?s.ProgramFlagNames+"|WATCHED|":s.ProgramFlagNames.replace(/WATCHED/g,"")):this.sendMessage("error",s,e.item.label,this.msg.Failed),this.markwatched(e,n)},error:r=>{this.networkError(s,r),this.markwatched(e,n)}})}markdamaged(e,n){let
s=this.actionList.shift();s&&this.dvrService.UpdateRecordedMetadata({RecordedId:s.Recording.RecordedId,Damaged:n}).subscribe({next:r=>{r.bool?n?(this.sendMessage("success",s,e.item.label,this.msg.Success,this.msg.NonReRec),s.VideoPropNames=s.VideoPropNames+"|DAMAGED|"):(this.sendMessage("success",s,e.item.label,this.msg.Success),s.VideoPropNames=s.VideoPropNames.replace(/DAMAGED/g,"")):this.sendMessage("error",s,e.item.label,this.msg.Failed),this.markdamaged(e,n)},error:r=>{this.networkError(s,r),this.markda
maged(e,n)}})}promptrecgrp(e){this.newRecGroup=1==this.actionList.length?this.actionList[0].Recording.RecGroup:"",this.displayRecGrpDlg=!0}updaterecgrp(){this.displayRecGrpDlg=!1,this.newRecGroup=this.newRecGroup.trim();let
e=this.actionList.shift();e&&this.newRecGroup&&this.dvrService.UpdateRecordedMetadata({RecordedId:e.Recording.RecordedId,RecGroup:this.newRecGroup}).subscribe({next:n=>{n.bool?(this.sendMessage("success",e,this.mnu_updaterecgrp.label,this.msg.Success),e.Recording.RecGroup=this.newRecGroup):this.sendMessage("error",e,this.mnu_updaterecgrp.label,this.msg.Failed),this.updaterecgrp()},error:n=>{this.networkError(e,n),this.updaterecgrp()}})}updaterecrule(e){}stoprec(e){}runjob(e){let
n=this.actionList.shift();n&&this.dvrService.ManageJobQueue({Action:"Add",JobName:e.item.id,RecordedId:n.Recording.RecordedId}).subscribe({next:s=>{s.int>0?this.sendMessage("success",n,e.item.label,this.msg.Success):this.sendMessage("error",n,e.item.label,this.msg.Failed),this.runjob(e)},
error:s=>{this.networkError(n,s),this.runjob(e)}})}updatemeta(e){this.program=this.actionList.shift(),this.program&&(this.editingProgram=this.program,this.program=Object.assign({},this.program),this.program.Airdate=this.program.Airdate?new
Date(this.program.Airdate+"
00:00"):null,this.displayMetadataDlg=!0,this.currentForm.form.markAsPristine())}saveProgram(){this.successCount=0,this.errorCount=0,this.displayUnsaved=!1,this.dvrService.UpdateRecordedMetadata({RecordedId:this.program.Recording.RecordedId,Description:this.program.Description,Episode:this.program.Episode,Inetref:this.program.Inetref,OriginalAirDate:this.program.Airdate,Season:this.program.Season,SubTitle:this.program.SubTitle,Title:this.program.Title,RecGroup:this.program.Recording.RecGroup}).subscribe(this.saveObserver)}closeDialog(){this.currentForm.dirty?this.displayUnsaved?(this.displayUnsaved=!1,this.displayMetadataDlg=!1,this.editingProgram=void
0,this.currentForm.form.markAsPristine()):this.displayUnsaved=!0:(thi
s.displayMetadataDlg=!1,this.displayUnsaved=!1,this.editingProgram=void 0)}}return
t.\u0275fac=function(e){return
new(e||t)(D(jo),D(Gi),D(Oe),D(Me),D(cs))},t.\u0275cmp=z({type:t,selectors:[["app-recordings"]],viewQuery:function(e,n){if(1&e&&(W(boe,5),W(voe,5)),2&e){let
s;V(s=B())&&(n.currentForm=s.first),V(s=B())&&(n.menu=s.first)}},features:[Pe([Gi])],decls:85,vars:96,consts:[["name","recsform"],["recsform","ngForm"],[2,"white-space","pre-line"],["position","center"],[1,"block","card","w-full",2,"height","90vh"],[1,"font-bold",3,"popup","model"],["menu",""],["scrollHeight","flex","styleClass","p-datatable-striped","selectionMode","multiple","dataKey","Recording.RecordedId",3,"value","scrollable","virtualScroll","rows","lazy","rowHover","selection","metaKeySelection","onLazyLoad","selectionChange","onRowSelect","onRowUnelect"],["pTemplate","caption"],["pTemplate","header"],["pTemplate","body"],[3,"header","visible","modal","closable","closeOnEscape","visibleChange"],[1,"form-group",
"field"],["for","Title",1,"label","block"],["pInputText","","id","Title","name","Title",1,"mb-2","form-control","w-full",3,"ngModel","ngModelChange"],["Title","ngModel"],["for","SubTitle",1,"label","block"],["pInputText","","id","SubTitle","name","SubTitle",1,"mb-2","form-control","w-full",3,"ngModel","ngModelChange"],["SubTitle","ngModel"],["for","Inetref",1,"label","block"],["pInputText","","id","Inetref","name","Inetref",1,"mb-2","form-control","w-full",3,"ngModel","ngModelChange"],["Inetref","ngModel"],["for","Description",1,"label","block"],["pInputTextarea","","id","Description","name","Description",1,"mb-2","form-control","w-full",3,"rows","cols","ngModel","ngModelChange"],["Description","ngModel"],["for","Season",1,"label","block"],["name","Season","id","Season",3,"ngModel","showButtons","min","max","step","ngModelChange"],["for","Episode",1,"label","block"],["name","Episode","id","Episode",3,"ngModel","showButtons","min","max","step","ngModelChange"],["for","Airdate",1,"lab
el","block"],["dateFormat","yy-mm-dd","name","Airdate","id","Airdate",3,"ngModel","ngModelChange"],["for","RecGroup",1,"label","block"],["name","RecGroup",3,"options","ngModel","editable","maxlength","ngModelChange"],["RecGroup","ngModel"],["for","FileName",1,"label","block"],["pTemplate","footer"],[3,"header","visible","modal","draggable","resizable","visibleChange"],["for","newrecgroup",1,"label","block"],["pInputText","","id","newrecgroup","name","newrecgroup",1,"mb-2","form-control","w-full",3,"ngModel","ngModelChange"],["newrecgroup","ngModel"],["name","recgrplist",3,"options","ngModel","ngModelChange"],["recgrplist","ngModel"],[3,"header","visible","modal","visibleChange"],[1,"pl-1"],["pButton","","pRipple","","icon","pi
pi-bars","tooltipPosition","top",1,"p-button-text",".p-button-success",3,"pTooltip","click"],["type","text","field","Title",3,"matchModeOptions"],["field","Recording.RecGroup","matchMode","equals",3,"showMenu"],["pTemplate","filter"],["pButton","","pRipple",""
,"icon","pi
pi-refresh","tooltipPosition","top",1,"p-button-text",".p-button-success",3,"pTooltip","click"],["pSortableColumn","Title",1,"p-1",2,"flex-basis","12%"],["field","Title"],[1,"p-1",2,"flex-basis","2%"],[1,"p-1",2,"flex-basis","18%"],[1,"p-1",2,"flex-basis","4%"],["pSortableColumn","Airdate",1,"justify-content-end","p-1",2,"flex-basis","8%"],["field","Airdate"],["pSortableColumn","StartTime",1,"justify-content-end","p-1",2,"flex-basis","8%"],["field","StartTime"],[1,"p-1",2,"flex-basis","10%"],["pSortableColumn","Recording.RecGroup",1,"p-1",2,"flex-basis","8%"],["field","Recording.RecGroup"],[1,"justify-content-end","p-1",2,"flex-basis","6%"],[1,"justify-content-end","p-1",2,"flex-basis","8%"],[1,"p-1",2,"background","var(--surface-card)"],["target","_blank"],[1,"pi","pi-download"],["pButton","","pRipple","","icon","pi
pi-ellipsis-v",1,"p-button-text","p-button-primary",3,"disabled"],["name","filter",3,"ngModel","options","placeholder","showClear","onChange"],["pTemplate",
"item"],[3,"ngClass","pSelectableRow","pSelectableRowIndex","contextmenu"],[1,"p-1","overflow-hidden",2,"flex-basis","12%"],["class","pi
pi-exclamation-triangle
p-1","tooltipPosition","top",3,"pTooltip",4,"ngIf"],["class","pi
pi-eye","tooltipPosition","top",3,"pTooltip",4,"ngIf"],["tooltipPosition","top",1,"p-1","overflow-hidden",2,"flex-basis","18%",3,"pTooltip"],[4,"ngIf"],[3,"innerHTML"],[1,"p-1",2,"flex-basis","8%"],["target","_blank","tooltipPosition","left",3,"href","pTooltip"],[1,"pi","pi-download","text-primary",3,"id"],["pButton","","pRipple","","icon","pi
pi-ellipsis-v",1,"p-button-text","p-button-primary",3,"click"],["tooltipPosition","top",1,"pi","pi-exclamation-triangle","p-1",3,"pTooltip"],["tooltipPosition","top",1,"pi","pi-eye",3,"pTooltip"],[1,"col-12",2,"text-align","left"],["severity","success",3,"text",4,"ngIf"],["severity","error",3,"text",4,"ngIf"],["icon","pi
pi-times-circle","styleClass","p-button-warning",3,"label","onClick"],["icon","pi
pi-check-circle","st
yleClass","p-button-success",3,"label","disabled","onClick"],["severity","success",3,"text"],["severity","error",3,"text"],["icon","pi
pi-times-circle","styleClass","p-button-plain",3,"label","onClick"],["icon","pi
pi-check-circle","styleClass","p-button-plain",3,"label","disabled","onClick"],["icon","pi
pi-times-circle","styleClass","p-button-danger",3,"label","onClick"],["icon","pi
pi-check-circle","styleClass","p-button-success",3,"label","onClick"]],template:function(e,n){1&e&&(l(0,"form",0,1)(2,"div",2),k(3,"p-toast",3),c(),l(4,"h2"),g(5),m(6,"translate"),c(),l(7,"div",4),k(8,"p-tieredMenu",5,6),l(10,"p-table",7),C("onLazyLoad",function(r){return
n.loadLazy(r)})("selectionChange",function(r){return
n.selection=r})("onRowSelect",function(){return
n.onSelectChange()})("onRowUnelect",function(){return
n.onSelectChange()}),_(11,Coe,0,0,"ng-template",8),_(12,Toe,52,46,"ng-template",9),_(13,koe,29,29,"ng-template",10),c(),l(14,"p-dialog",11),C("visibleChange",function(r){return
n.dis
playMetadataDlg=r}),m(15,"translate"),l(16,"div",12)(17,"label",13),g(18),m(19,"translate"),c(),l(20,"input",14,15),C("ngModelChange",function(r){return
n.program.Title=r}),c()(),l(22,"div",12)(23,"label",16),g(24),m(25,"translate"),c(),l(26,"input",17,18),C("ngModelChange",function(r){return
n.program.SubTitle=r}),c()(),l(28,"div",12)(29,"label",19),g(30),m(31,"translate"),c(),l(32,"input",20,21),C("ngModelChange",function(r){return
n.program.Inetref=r}),c()(),l(34,"div",12)(35,"label",22),g(36),m(37,"translate"),c(),l(38,"textarea",23,24),C("ngModelChange",function(r){return
n.program.Description=r}),c()(),l(40,"div",12)(41,"label",25),g(42),m(43,"translate"),c(),l(44,"p-inputNumber",26),C("ngModelChange",function(r){return
n.program.Season=r}),c()(),l(45,"div",12)(46,"label",27),g(47),m(48,"translate"),c(),l(49,"p-inputNumber",28),C("ngModelChange",function(r){return
n.program.Episode=r}),c()(),l(50,"div",12)(51,"label",29),g(52),m(53,"translate"),c(),l(54,"p-calendar",30),C("ngM
odelChange",function(r){return
n.program.Airdate=r}),c()(),l(55,"div",12)(56,"label",31),g(57),m(58,"translate"),c(),l(59,"p-dropdown",32,33),C("ngModelChange",function(r){return
n.program.Recording.RecGroup=r}),c()(),l(61,"div",12)(62,"label",34),g(63),m(64,"translate"),c(),l(65,"pre"),g(66),c()(),_(67,Roe,7,9,"ng-template",35),c(),l(68,"p-dialog",36),C("visibleChange",function(r){return
n.displayRecGrpDlg=r}),m(69,"translate"),l(70,"div",12)(71,"label",37),g(72),m(73,"translate"),c(),l(74,"input",38,39),C("ngModelChange",function(r){return
n.newRecGroup=r}),c()(),l(76,"p-listbox",40,41),C("ngModelChange",function(r){return
n.newRecGroup=r}),c(),_(78,Loe,4,7,"ng-template",35),c(),l(79,"p-dialog",42),C("visibleChange",function(r){return
n.displayUnsaved=r}),m(80,"translate"),l(81,"p"),g(82),m(83,"translate"),c(),_(84,Ooe,4,6,"ng-template",35),c()()()),2&e&&(a(5),S(f(6,64,"dashboard.recordings.heading")),a(3),p("popup",!0)("model",n.menuToShow),a(2),p("value",n.programs)("scrollable"
,!0)("virtualScroll",!0)("rows",50)("lazy",!0)("rowHover",!0)("selection",n.selection)("metaKeySelection",!0),a(4),q(A(94,Aoe)),x("header",f(15,66,"dashboard.recordings.edit_metadata")),p("visible",n.displayMetadataDlg)("modal",!0)("closable",!1)("closeOnEscape",!1),a(4),S(f(19,68,"dashboard.recordings.title")),a(2),p("ngModel",n.program.Title),a(4),S(f(25,70,"dashboard.recordings.subtitle")),a(2),p("ngModel",n.program.SubTitle),a(4),S(f(31,72,"dashboard.recordings.inetref")),a(2),p("ngModel",n.program.Inetref),a(4),S(f(37,74,"dashboard.recordings.description")),a(2),p("rows",5)("cols",30)("ngModel",n.program.Description),a(4),S(f(43,76,"dashboard.recordings.season")),a(2),p("ngModel",n.program.Season)("showButtons",!0)("min",1)("max",99)("step",1),a(3),S(f(48,78,"dashboard.recordings.episode")),a(2),p("ngModel",n.program.Episode)("showButtons",!0)("min",1)("max",99)("step",1),a(3),S(f(53,80,"dashboard.recordings.orig_airdate")),a(2),p("ngModel",n.program.Airdate),a(3),S(f(58,82,"da
shboard.sched.recgroup_label")),a(2),q(A(95,Poe)),p("options",n.recGroups)("ngModel",n.program.Recording.RecGroup)("editable",!0)("maxlength",64),a(4),S(f(64,84,"dashboard.recordings.filename_label")),a(3),S(n.program.FileName),a(2),x("header",f(69,86,"dashboard.recordings.selrecgroup")),p("visible",n.displayRecGrpDlg)("modal",!0)("draggable",!1)("resizable",!1),a(4),S(f(73,88,"dashboard.sched.recgroup_label")),a(2),p("ngModel",n.newRecGroup),a(2),p("options",n.recGroups)("ngModel",n.newRecGroup),a(3),x("header",f(80,90,"common.unsaved_heading")),p("visible",n.displayUnsaved)("modal",!0),a(3),S(f(83,92,"common.unsaved_message")))},directives:[ze,Ue,He,Td,D$,Dn,ne,On,bt,Kt,vg,Ot,Te,_e,yd,wd,Le,j2,Q,bn,Ye,tS,pt,xr,_n,qe,ve,os],pipes:[ce,eu],styles:["[_nghost-%COMP%]
.p-tieredmenu{border:2px solid}[_nghost-%COMP%] .p-tieredmenu
.p-submenu-list{border:2px solid}"]}),t})();const
Noe=["schedform"],Di=function(){return{minWidth:"400px"}};function
Voe(t,i){if(1&t){const e=I();l(0,"d
iv",5)(1,"label",63),g(2),m(3,"translate"),c(),l(4,"p-dropdown",64,65),C("ngModelChange",function(s){return
v(e),d(2).templateId=s})("onClick",function(){v(e);const s=d(2);return
s.templateChange(s.recRule)})("onChange",function(){v(e);const s=d(2);return
s.templateChange(s.recRule)}),c()()}if(2&t){const
e=d(2);a(2),S(f(3,7,"dashboard.sched.template_label")),a(2),q(A(9,Di)),p("options",e.templates)("ngModel",e.templateId)("editable",!1)("maxlength",0)}}function
Boe(t,i){1&t&&(l(0,"label",68),g(1),m(2,"translate"),c()),2&t&&(a(1),T("
",f(2,1,"dashboard.sched.subtitle_label"),""))}function
Hoe(t,i){1&t&&(l(0,"label",68),g(1),m(2,"translate"),c()),2&t&&(a(1),T("
",f(2,1,"dashboard.sched.add_tables_label"),""))}function
qoe(t,i){if(1&t){const
e=I();l(0,"textarea",69),C("ngModelChange",function(s){return
v(e),d(3).recRule.SubTitle=s}),g(1," "),c()}if(2&t){const
e=d(3);p("ngModel",e.recRule.SubTitle)("disabled","Power
Search"!=e.recRule.SearchType)("rows",e.subTitleRows)}}c
onst Goe=function(){return["None","Power Search"]};function
Uoe(t,i){if(1&t&&(l(0,"div",5),_(1,Boe,3,3,"label",66),_(2,Hoe,3,3,"label",66),_(3,qoe,2,3,"textarea",67),c()),2&t){const
e=d(2);a(1),p("ngIf","None"==e.recRule.SearchType),a(1),p("ngIf","Power
Search"==e.recRule.SearchType),a(1),p("ngIf",A(3,Goe).indexOf(e.recRule.SearchType)>-1)}}function
zoe(t,i){if(1&t&&(l(0,"span"),g(1),c()),2&t){const
e=d(2);a(1),We("S",e.recRule.Season,"
E",e.recRule.Episode,"")}}function
joe(t,i){1&t&&(l(0,"label",74),g(1),m(2,"translate"),c()),2&t&&(a(1),T("
",f(2,1,"dashboard.sched.description_label"),""))}function
$oe(t,i){1&t&&(l(0,"label",74),g(1),m(2,"translate"),c()),2&t&&(a(1),T("
",f(2,1,"dashboard.sched.sqlwhere_label"),""))}function
Woe(t,i){1&t&&(l(0,"label",74),g(1),m(2,"translate"),c()),2&t&&(a(1),T("
",f(2,1,"dashboard.sched.description_label"),""))}function
Koe(t,i){1&t&&(l(0,"label",74),g(1),m(2,"translate"),c()),2&t&&(a(1),T("
",f(2,1,"dashboard.sched.srchValue_label"),""))}const Q
oe=function(){return["None","Manual Search"]};function
Joe(t,i){if(1&t){const
e=I();l(0,"div",5)(1,"div",70),_(2,joe,3,3,"label",71),_(3,$oe,3,3,"label",71),_(4,Woe,3,3,"label",71),_(5,Koe,3,3,"label",72),c(),l(6,"textarea",73),C("ngModelChange",function(s){return
v(e),d(2).recRule.Description=s})("focusout",function(){return
v(e),d(2).onDescriptionBlur()}),g(7," "),c()()}if(2&t){const
e=d(2);a(1),p("ngSwitch",e.recRule.SearchType),a(1),p("ngSwitchCase","None"),a(1),p("ngSwitchCase","Power
Search"),a(1),p("ngSwitchCase","Manual
Search"),a(2),p("ngModel",e.recRule.Description)("disabled",A(7,Qoe).indexOf(e.recRule.SearchType)>-1)("rows",e.descriptionRows)}}function
Yoe(t,i){1&t&&(l(0,"div"),g(1," Examples of SQL Additional
Tables and Where Conditions are in the MythTV wiki
at"),k(2,"br"),l(3,"a",75),g(4,"Power
Search"),c()())}function Zoe(t,i){if(1&t){const
e=I();l(0,"div"),k(1,"p-divider"),l(2,"div",5)(3,"label",76),g(4),m(5,"translate"),c(),l(6,"p-dropdown",77),C("ng
ModelChange",function(s){return
v(e),d(2).channel=s})("onChange",function(){return
v(e),d(2).onChannelChange()}),c()(),l(7,"div",5)(8,"label",78),g(9),m(10,"translate"),c(),l(11,"p-calendar",79),C("ngModelChange",function(s){return
v(e),d(2).reqDate=s})("onClose",function(){return
v(e),d(2).onDateChange()})("keyup.enter",function(){return
v(e),d(2).onDateChange()})("onBlur",function(){return
v(e),d(2).onDateChange()}),c()(),l(12,"div",5)(13,"label",80),g(14),m(15,"translate"),c(),l(16,"p-inputNumber",81),C("ngModelChange",function(s){return
v(e),d(2).reqDuration=s})("ngModelChange",function(){return
v(e),d(2).onDurationChange()}),c()()()}if(2&t){const
e=d(2);a(4),S(f(5,23,"dashboard.sched.channel_label")),a(2),q(A(29,Di)),p("options",e.allChannels)("ngModel",e.channel)("editable",!1)("maxlength",0),a(3),S(f(10,25,"dashboard.sched.starttime_label")),a(2),p("ngModel",e.reqDate)("showTime",!0)("stepMinute",5)("dateFormat","yy/mm/dd")("selectOtherMonths",!0)("showIcon",!0)("showOnFocus"
,!1)("showButtonBar",!0)("clearButtonStyleClass","hidden"),a(3),S(f(15,27,"dashboard.sched.duration_label")),a(2),p("ngModel",e.reqDuration)("showButtons",!0)("min",5)("max",360)("step",5)}}function
Xoe(t,i){if(1&t){const
e=I();l(0,"div",5)(1,"label",82),g(2),m(3,"translate"),c(),l(4,"div",83)(5,"div",84)(6,"p-radioButton",85),C("ngModelChange",function(s){return
v(e),d(2).metaPrefix=s})("ngModelChange",function(){v(e);const s=d(2);return
s.iCheckbox(s.recRule)}),c(),l(7,"label",86),k(8,"img",87),c()(),l(9,"div",88)(10,"a",89),g(11),m(12,"translate"),c(),k(13,"br"),c(),l(14,"div",90)(15,"p-radioButton",91),C("ngModelChange",function(s){return
v(e),d(2).metaPrefix=s})("ngModelChange",function(){v(e);const s=d(2);return
s.iCheckbox(s.recRule)}),c(),l(16,"label",92),k(17,"img",93),c()(),l(18,"div",94)(19,"a",89),g(20),m(21,"translate"),c(),k(22,"br"),c(),l(23,"div",84)(24,"p-radioButton",95),C("ngModelChange",function(s){return
v(e),d(2).metaPrefix=s})("ngModelChange",function(){v(e);c
onst s=d(2);return
s.iCheckbox(s.recRule)}),c(),l(25,"label",96),k(26,"img",97),c()(),l(27,"div",88)(28,"a",89),g(29),m(30,"translate"),c(),k(31,"br"),c()(),g(32),l(33,"input",98,99),C("ngModelChange",function(s){return
v(e),d(2).recRule.Inetref=s})("ngModelChange",function(){v(e);const
s=d(2);return
s.iText(s.recRule)}),c(),l(35,"small",55),g(36),m(37,"translate"),k(38,"br"),c()()}if(2&t){const
e=d(2);a(2),S(f(3,13,"dashboard.sched.inetref_label")),a(4),p(&...
",f(12,15,"dashboard.sched.isearch"),"
thetvdb.com"),a(4),p("ngModel",e.metaPrefix),a(4),x("...
",f(21,17,"dashboard.sched.isearch"),"
tvmaze.com"),a(4),p("ngModel",e.metaPrefix),a(4),x("h...
",f(30,19,"dashboard.sched.isearch")," themoviedb.org"),a(3),T(
" ",e.metaPrefix," \xa0
"),a(1),p("ngModel",e.recRule.Inetref),a(3),T("
",f(37,21,"dashboard.sched.inetref_desc"),"")}}function
eae(t,i){1&t&&(k(0,"p-message",105),m(1,"translate")),2&t&&x("text",f(1,1,"common.savesuccess"))}function
tae(t,i){if(1&t&&(k(0,"p-message",106),m(1,"translate")),2&t){const
e=d(3);La("text","",f(1,2,"common.backenderror"),":
",e.errortext,"")}}function nae(t,i){if(1&t){const
e=I();l(0,"div",100),_(1,eae,2,3,"p-message",101),_(2,tae,2,4,"p-message",102),c(),l(3,"p-button",103),C("onClick",function(){return
v(e),d(2).close()}),m(4,"translate"),c(),l(5,"p-button",104),C("onClick",function(){return
v(e),d(2).save()}),m(6,"translate"),c()}if(2&t){const
e=d(2),n=F(1);a(1),p("ngIf",e.successCount>0&&0==e.errorCount&&!n.dirty),a(1),p("ngIf",e.errorCount>0),a(1),x("label",f(4,5,"common.close")),a(2),x("label",f(6,7,"common.save")),p("disabled",!n.dirty||0==e.recRule.Id&&"Not
Recording"==e.recRule.Type||!e.recRule.Title)}}function iae(t,i){if(1&t){const
e=I();l(0,"
p-button",107),C("onClick",function(){return
v(e),d(2).close()}),m(1,"translate"),c(),l(2,"p-button",108),C("onClick",function(){return
v(e),d(2).displayUnsaved=!1}),m(3,"translate"),c()}2&t&&(x("label",f(1,2,"common.nosave")),a(2),x("label",f(3,4,"common.continue")))}const
sae=function(){return{height:"90vw",width:"700px"}},rae=function(){return["Power
Search","Manual
Search"]},OS=function(){return{minWidth:"400px",maxHeight:"400px",maxWidth:"640px"}};function
oae(t,i){if(1&t){const
e=I();l(0,"div")(1,"p-dialog",3),C("visibleChange",function(s){return
v(e),d().displayDlg=s}),m(2,"translate"),l(3,"p"),g(4),c(),l(5,"p"),g(6),c(),_(7,Voe,6,10,"div",4),l(8,"div",5)(9,"label",6),g(10),m(11,"translate"),c(),l(12,"p-dropdown",7,8),C("ngModelChange",function(s){return
v(e),d().recRule.SearchType=s})("onChange",function(){return
v(e),d().onSearchTypeChange()}),c()(),l(14,"div",5)(15,"label",9),g(16),m(17,"translate"),c(),l(18,"textarea",10),C("ngModelChange",function(s){return
v(e),d().recR
ule.Title=s})("focusout",function(){return v(e),d().onTitleBlur()}),g(19,"
"),c()(),_(20,Uoe,4,4,"div",4),l(21,"p"),_(22,zoe,2,2,"span",2),c(),_(23,Joe,8,8,"div",4),_(24,Yoe,5,0,"div",2),_(25,Zoe,17,30,"div",2),k(26,"p-divider"),l(27,"div",5)(28,"label",11),g(29),m(30,"translate"),c(),l(31,"p-dropdown",12,13),C("ngModelChange",function(s){return
v(e),d().recRule.Type=s}),c()(),l(33,"div",5)(34,"label",14),g(35),m(36,"translate"),c(),l(37,"p-dropdown",15,16),C("ngModelChange",function(s){return
v(e),d().recRule.RecGroup=s}),c()(),l(39,"div",5)(40,"p-checkbox",17,18),C("ngModelChange",function(s){return
v(e),d().recRule.Inactive=s}),m(42,"translate"),c()(),l(43,"div",5)(44,"label",19),g(45),m(46,"translate"),c(),l(47,"p-dropdown",20,21),C("ngModelChange",function(s){return
v(e),d().recRule.PlayGroup=s}),c()(),l(49,"div",5)(50,"label",22),g(51),m(52,"translate"),c(),l(53,"p-inputNumber",23),C("ngModelChange",function(s){return
v(e),d().recRule.StartOffset=s}),c()(),l(54,
"div",5)(55,"label",24),g(56),m(57,"translate"),c(),l(58,"p-inputNumber",25),C("ngModelChange",function(s){return
v(e),d().recRule.EndOffset=s}),c()(),l(59,"div",5)(60,"p-checkbox",26,27),C("ngModelChange",function(s){return
v(e),d().recRule.NewEpisOnly=s}),m(62,"translate"),c()(),l(63,"div",5)(64,"label",28),g(65),m(66,"translate"),c(),l(67,"p-inputNumber",29),C("ngModelChange",function(s){return
v(e),d().recRule.RecPriority=s}),c()(),l(68,"div",5)(69,"label",30),g(70),m(71,"translate"),c(),l(72,"p-dropdown",31,32),C("ngModelChange",function(s){return
v(e),d().recRule.PreferredInput=s}),c()(),l(74,"div",5)(75,"label",33),g(76),m(77,"translate"),c(),l(78,"p-dropdown",34,35),C("ngModelChange",function(s){return
v(e),d().recRule.DupMethod=s}),c()(),l(80,"div",5)(81,"label",36),g(82),m(83,"translate"),c(),l(84,"p-dropdown",37,38),C("ngModelChange",function(s){return
v(e),d().recRule.DupIn=s}),c()(),l(86,"div",5)(87,"label",39),g(88),m(89,"translate"),c(),l(90,"p-dropdown",40,41),C("ngM
odelChange",function(s){return
v(e),d().recRule.AutoExtend=s}),c()(),l(92,"div",5)(93,"label",42),g(94),m(95,"translate"),c(),l(96,"p-multiSelect",43,44),C("ngModelChange",function(s){return
v(e),d().selectedFilters=s})("onChange",function(){v(e);const s=d();return
s.filterToRec(s.recRule)}),c()(),l(98,"div",5)(99,"label",45),g(100),m(101,"translate"),c(),l(102,"p-dropdown",46,47),C("ngModelChange",function(s){return
v(e),d().recRule.RecProfile=s}),c()(),l(104,"div",5)(105,"label",48),g(106),m(107,"translate"),c(),l(108,"p-dropdown",49,50),C("ngModelChange",function(s){return
v(e),d().recRule.StorageGroup=s}),c()(),l(110,"div",5)(111,"label",51),g(112),m(113,"translate"),c(),l(114,"p-inputNumber",52),C("ngModelChange",function(s){return
v(e),d().recRule.MaxEpisodes=s}),c()(),l(115,"div",5)(116,"p-checkbox",53,54),C("ngModelChange",function(s){return
v(e),d().recRule.MaxNewest=s}),m(118,"translate"),c(),l(119,"small",55),g(120),m(121,"translate"),c()(),l(122,"div",5)(123,"p-checkbox"
,56,57),C("ngModelChange",function(s){return
v(e),d().recRule.AutoExpire=s}),m(125,"translate"),c()(),l(126,"div",5)(127,"label",58),g(128),m(129,"translate"),c(),l(130,"p-multiSelect",59,60),C("ngModelChange",function(s){return
v(e),d().selectedPostProc=s})("onChange",function(){v(e);const s=d();return
s.postProcToRec(s.recRule)}),c()(),_(132,Xoe,39,23,"div",4),k(133,"br")(134,"br")(135,"br")(136,"br")(137,"br")(138,"br")(139,"br")(140,"br")(141,"br")(142,"br")(143,"br")(144,"br")(145,"br")(146,"br"),_(147,nae,7,9,"ng-template",61),c(),l(148,"p-dialog",62),C("visibleChange",function(s){return
v(e),d().displayUnsaved=s}),m(149,"translate"),l(150,"p"),g(151),m(152,"translate"),c(),_(153,iae,4,6,"ng-template",61),c()()}if(2&t){const
e=d();a(1),q(A(198,sae)),x("header",f(2,148,"dashboard.sched.heading")),p("visible",e.displayDlg)("modal",!0)("closable",!1)("closeOnEscape",!1),a(3),T("
",e.recRule.CallSign,""),a(2),yo("
",e.utility.formatDate(e.recRule.StartTime)," ",e.utility.formatTim
e(e.recRule.StartTime)," - ",e.utility.formatTime(e.recRule.EndTime),"
"),a(1),p("ngIf","Recording
Template"!=e.recRule.Type),a(3),S(f(11,150,"dashboard.sched.srchtype_label")),a(2),q(A(199,Di)),p("options",e.srchTypeList)("ngModel",e.recRule.SearchType)("editable",!1)("maxlength",0)("disabled",e.srchTypeDisabled),a(4),S(f(17,152,"dashboard.sched.title_label")),a(2),p("ngModel",e.recRule.Title)("disabled",-1==A(200,rae).indexOf(e.recRule.SearchType)&&"Recording
Template"!=e.recRule.Type||e.recRule.Id==(null==e.defaultTemplate?null:e.defaultTemplate.Id))("rows",e.titleRows),a(2),p("ngIf","Recording
Template"!=e.recRule.Type),a(2),p("ngIf",e.recRule.Season&&e.recRule.Episode),a(1),p("ngIf","Recording
Template"!=e.recRule.Type),a(1),p("ngIf","Power
Search"==e.recRule.SearchType),a(1),p("ngIf","Manual
Search"==e.recRule.SearchType),a(4),S(f(30,154,"dashboard.sched.type_label")),a(2),q(A(201,Di)),p("options",e.typeList)("ngModel",e.recRule.Type)("editable",!1)("maxlength",0),a(4),S(f(36,
156,"dashboard.sched.recgroup_label")),a(2),q(A(202,Di)),p("options",e.recGroups)("ngModel",e.recRule.RecGroup)("editable",!0)("maxlength",64),a(3),x("label",f(42,158,"dashboard.sched.active_label")),p("ngModel",e.recRule.Inactive)("binary",!0)("trueValue",!1)("falseValue",!0)("disabled",e.override),a(5),S(f(46,160,"dashboard.sched.playgroup_label")),a(2),q(A(203,Di)),p("options",e.playGroups)("ngModel",e.recRule.PlayGroup)("editable",!1)("maxlength",0),a(4),S(f(52,162,"dashboard.sched.startoffset_label")),a(2),p("ngModel",e.recRule.StartOffset)("showButtons",!0)("min",-480)("max",480)("step",1),a(3),S(f(57,164,"dashboard.sched.endoffset_label")),a(2),p("ngModel",e.recRule.EndOffset)("showButtons",!0)("min",-480)("max",480)("step",1),a(2),x("label",f(62,166,"dashboard.sched.newepis_label")),p("ngModel",e.recRule.NewEpisOnly)("binary",!0),a(5),S(f(66,168,"dashboard.sched.priority_label")),a(2),p("ngModel",e.recRule.RecPriority)("showButtons",!0)("min",-100)("max",100)("step",1),a(3),
S(f(71,170,"dashboard.sched.prefinput_label")),a(2),q(A(204,Di)),p("options",e.inputList.Inputs)("ngModel",e.recRule.PreferredInput)("editable",!1)("maxlength",0),a(4),S(f(77,172,"dashboard.sched.dupmethod_label")),a(2),q(A(205,Di)),p("options",e.dupMethodList)("ngModel",e.recRule.DupMethod)("editable",!1)("maxlength",0),a(4),S(f(83,174,"dashboard.sched.dupin_label")),a(2),q(A(206,Di)),p("options",e.dupInList)("ngModel",e.recRule.DupIn)("editable",!1)("maxlength",0),a(4),S(f(89,176,"dashboard.sched.autoextend_label")),a(2),q(A(207,Di)),p("options",e.autoExtendList)("ngModel",e.recRule.AutoExtend)("editable",!1)("maxlength",0),a(4),S(f(95,178,"dashboard.sched.filters_label")),a(2),q(A(208,OS)),p("options",e.recRuleFilters)("ngModel",e.selectedFilters),a(4),S(f(101,180,"dashboard.sched.recprofile_label")),a(2),q(A(209,Di)),p("options",e.recProfileList)("ngModel",e.recRule.RecProfile)("editable",!1)("maxlength",0),a(4),S(f(107,182,"dashboard.sched.sgroup_label")),a(2),q(A(210,Di)),p("o
ptions",e.recStorageGroups)("ngModel",e.recRule.StorageGroup)("editable",!1)("maxlength",0),a(4),S(f(113,184,"dashboard.sched.maxeps_label")),a(2),p("ngModel",e.recRule.MaxEpisodes)("showButtons",!0)("min",0)("max",100)("step",1),a(2),x("label",f(118,186,"dashboard.sched.maxnewest_label")),p("ngModel",e.recRule.MaxNewest)("binary",!0),a(4),T("
",f(121,188,"dashboard.sched.maxnewest_desc"),"
"),a(3),x("label",f(125,190,"dashboard.sched.autoexpire_label")),p("ngModel",e.recRule.AutoExpire)("binary",!0),a(5),S(f(129,192,"dashboard.sched.postproc_label")),a(2),q(A(211,OS)),p("options",e.postProcList)("ngModel",e.selectedPostProc)("filter",!0),a(2),p("ngIf","Recording
Template"!=e.recRule.Type),a(16),x("header",f(149,194,"common.unsaved_heading")),p("visible",e.displayUnsaved)("modal",!0),a(3),S(f(152,196,"common.unsaved_message"))}}let
Rd=(()=>{class
t{constructor(e,n,s,r,o){this.dvrService=e,this.translate=n,this.mythService=s,this.utility=r,this.channelService=o,this.displayDlg=!1,thi
s.displayUnsaved=!1,this.loadCount=0,this.successCount=0,this.errorCount=0,this.errortext="",this.htmlRegex=new
RegExp("<TITLE>|</TITLE>"),this.srchTypeDisabled=!0,this.titleRows=1,this.subTitleRows=1,this.descriptionRows=5,this.override=!1,this.reqDate=new
Date,this.reqDuration=60,this.recRules=[],this.playGroups=[],this.recGroups=[],this.recStorageGroups=[],this.inputList={Inputs:[]},this.recRuleFilters=[],this.selectedFilters=[],this.templates=[],this.typeList=[],this.allChannels=[],this.srchTypeList=[{prompt:this.translate.instant("recrule.srch_None"),value:"None"},{prompt:this.translate.instant("recrule.srch_PowerSearch"),value:"Power
Search"},{prompt:this.translate.instant("recrule.srch_TitleSearch"),value:"Title
Search"},{prompt:this.translate.instant("recrule.srch_KeywordSearch"),value:"Keyword
Search"},{prompt:this.translate.instant("recrule.srch_PeopleSearch"),value:"People
Search"},{prompt:this.translate.instant("recrule.srch_ManualSearch"),value:"Manual
Search"}],this.du
pMethodList=[{prompt:this.translate.instant("dashboard.sched.dupmethod.none"),value:"None"},{prompt:this.translate.instant("dashboard.sched.dupmethod.s_and_d"),value:"Subtitle
and
Description"},{prompt:this.translate.instant("dashboard.sched.dupmethod.s_then_d"),value:"Subtitle
then
Description"},{prompt:this.translate.instant("dashboard.sched.dupmethod.s"),value:"Subtitle"},{prompt:this.translate.instant("dashboard.sched.dupmethod.d"),value:"Description"}],this.dupInList=[{prompt:this.translate.instant("dashboard.sched.dupin.both"),value:"All
Recordings"},{prompt:this.translate.instant("dashboard.sched.dupin.curr"),value:"Current
Recordings"},{prompt:this.translate.instant("dashboard.sched.dupin.prev"),value:"Previous
Recordings"}],this.autoExtendList=[{prompt:this.translate.instant("dashboard.sched.extend_none"),value:"None"},{prompt:"ESPN",value:"ESPN"},{prompt:"MLB",value:"MLB"}],this.recProfileList=[{prompt:this.translate.instant("dashboard.sched.recprof.default"),value:"Defaul
t"},{prompt:this.translate.instant("dashboard.sched.recprof.livetv"),value:"Live
TV"},{prompt:this.translate.instant("dashboard.sched.recprof.highq"),value:"High
Quality"},{prompt:this.translate.instant("dashboard.sched.recprof.lowq"),value:"Low
Quality"}],this.postProcList=[{prompt:this.translate.instant("dashboard.sched.postproc.autocommflag"),value:"AutoCommflag"},{prompt:this.translate.instant("dashboard.sched.postproc.autometalookup"),value:"AutoMetaLookup"},{prompt:this.translate.instant("dashboard.sched.postproc.autotranscode"),value:"AutoTranscode"},{prompt:"1",value:"AutoUserJob1"},{prompt:"2",value:"AutoUserJob2"},{prompt:"3",value:"AutoUserJob3"},{prompt:"4",value:"AutoUserJob4"}],this.selectedPostProc=[],this.metaPrefix="",this.templateId=0,this.saveObserver={next:u=>{this.recRule?this.recRule.Id&&u.bool?(this.successCount++,this.currentForm.form.markAsPristine(),setTimeout(()=>this.inter.summaryComponent.refresh(),3e3),"Not
Recording"==this.recRule.Type&&(this.recRule.I
d=0)):!this.recRule.Id&&u.uint?(this.successCount++,this.currentForm.form.markAsPristine(),setTimeout(()=>this.inter.summaryComponent.refresh(),3e3),this.recRule.Id=u.uint):(this.errorCount++,this.currentForm.form.markAsDirty()):(console.log("ERROR:
recRule is
undefined"),this.errorCount++)},error:u=>{if(console.error(u),400==u.status){let
h=u.error.split(this.htmlRegex);h.length>1&&(this.errortext=h[1])}this.errorCount++,this.currentForm.form.markAsDirty()}}}ngOnInit(){this.inter.sched=this}loadLists(){let
e;this.recRules=[],this.playGroups=[],this.recGroups=[],this.recStorageGroups=[],this.inputList.Inputs=[],this.recRuleFilters=[],this.loadCount=0,this.errorCount=0,this.dvrService.GetRecordScheduleList({}).subscribe({next:n=>{this.recRules=n.RecRuleList.RecRules,this.loadSuccess()},error:n=>this.loadFail()}),this.dvrService.GetPlayGroupList().subscribe({next:n=>{this.playGroups=n.PlayGroupList,this.playGroups.unshift("Default"),this.loadSuccess()},error:n=>this.loadFail()}),this.
dvrService.GetRecGroupList().subscribe({next:n=>{this.recGroups=n.RecGroupList,this.loadSuccess()},error:n=>this.loadFail()}),this.dvrService.GetRecStorageGroupList().subscribe({next:n=>{this.recStorageGroups=n.RecStorageGroupList,this.loadSuccess()},error:n=>this.loadFail()}),this.dvrService.GetInputList().subscribe({next:n=>{this.inputList=n.InputList,this.inputList.Inputs.unshift({Id:0,CardId:0,SourceId:0,InputName:"",DisplayName:this.translate.instant("dashboard.sched.input_any"),QuickTune:!1,RecPriority:0,ScheduleOrder:0,LiveTVOrder:0}),this.loadSuccess()},error:n=>this.loadFail()}),this.dvrService.GetRecRuleFilterList().subscribe({next:n=>{this.recRuleFilters=n.RecRuleFilterList.RecRuleFilters,this.loadSuccess()},error:n=>this.loadFail()});for(let
n=1;n<5;n++)e=this.translate.instant("settings.services.job_default",{num:n}),this.mythService.GetSetting({HostName:"_GLOBAL_",Key:"UserJobDesc"+n,Default:e}).subscribe({next:s=>{this.postProcList[n+2].prompt=s.String,this.loadSucces
s()},error:()=>this.loadFail()});this.channelService.GetChannelInfoList({Details:!0}).subscribe(n=>{this.allChannels=n.ChannelInfoList.ChannelInfos,this.allChannels.forEach(s=>s.Description=s.ChanNum+"
"+s.ChannelName+"
("+s.CallSign+")")})}loadSuccess(){this.loadCount++,10==this.loadCount&&(this.loadCount=0,this.setupData(),this.displayDlg=!0,this.currentForm.form.markAsPristine())}loadFail(){this.errorCount++}open(e,n,s){this.templateId=0,this.reqProgram=e,this.reqChannel=n,this.reqRecRule=s,this.titleRows=1,e||s?(this.srchTypeDisabled=!0,this.srchTypeList[0].inactive=!1):(this.srchTypeDisabled=!1,this.srchTypeList[0].inactive=!0),this.loadLists()}setupData(){let
e=!1;this.program=this.reqProgram;let
n="";this.reqRecRule&&(n=this.reqRecRule.Type),this.reqRecRule?["Override
Recording","Do not
Record"].indexOf(n)>-1&&!this.reqRecRule.Id?(e=!0,this.recRule=void
0):this.recRule=Object.assign({},this.reqRecRule):this.recRule=void
0,this.channel=this.reqChannel,this.program&&!this.chann
el&&this.program.Channel&&(this.channel=this.program.Channel);var
s=0;if(this.typeList=[],this.templates=[{Id:0,Title:""}],this.defaultTemplate=void
0,this.program&&this.program.Recording&&!e&&(s=this.program.Recording.RecordId),this.recRules.forEach((r,o)=>{r.Id==s&&(this.recRule=r,n=this.recRule.Type),"Recording
Template"==r.Type&&(this.templates.push(r),"Default"==r.Category&&(this.defaultTemplate=r))}),this.recRule||(this.recRule={Id:0}),this.recRule.Title||(this.recRule.Title="",this.recRule.SubTitle="",this.recRule.Description="",this.defaultTemplate&&this.mergeTemplate(this.recRule,this.defaultTemplate)),this.recRule.SearchType||(this.recRule.SearchType="None"),this.program&&this.channel&&"None"==this.recRule.SearchType&&this.mergeProgram(this.recRule,this.program,this.channel),e&&(this.recRule.ParentId=this.program.Recording.RecordId),n||(n="Not
Recording"),!this.recRule.StartTime){let r=new
Date;this.recRule.StartTime=r.toISOString(),this.recRule.FindDay=(r.getDay()+1)%7,th
is.recRule.FindTime=r.toTimeString().slice(0,8)}this.filterFromRec(this.recRule),this.postProcFromRec(this.recRule),this.recRule.Type=n,this.setupTypeList(this.recRule),this.srchTypeDisabled||this.onSearchTypeChange(),this.override&&(this.recRule.Inactive=!1),setTimeout(()=>{this.recRule&&(this.recRule.Type=n),this.currentForm.form.markAsPristine()},10)}setupTypeList(e){let
n=e.Type;if(this.typeList.length=0,this.override=!1,"Recording
Template"==n)this.typeList.push({prompt:this.translate.instant("dashboard.sched.type.mod_template"),value:"Recording
Template"}),"Default"!=e.Category&&e.Id>0&&this.typeList.push({prompt:this.translate.instant("dashboard.sched.type.del_template"),value:"Not
Recording"});else if(["Override Recording","Do not
Record"].indexOf(n)>-1)this.override=!0,this.typeList.push({prompt:this.translate.instant("dashboard.sched.type.del_override"),value:"Not
Recording"},{prompt:this.translate.instant("dashboard.sched.type.rec_override"),value:"Override
Recording"},{p
rompt:this.translate.instant("dashboard.sched.type.dont_rec_override"),value:"Do
not Record"});else{const s="Manual
Search"==e.SearchType,r="None"!=e.SearchType;this.typeList.push({prompt:this.translate.instant("dashboard.sched.type.not"),value:"Not
Recording"}),(e.CallSign&&!r||s)&&this.typeList.push({prompt:this.translate.instant("dashboard.sched.type.this"),value:"Single
Record"}),s||this.typeList.push({prompt:this.translate.instant("dashboard.sched.type.one"),value:"Record
One"}),(!e.CallSign||r)&&this.typeList.push({prompt:this.translate.instant("dashboard.sched.type.weekly"),value:"Record
Weekly"},{prompt:this.translate.instant("dashboard.sched.type.daily"),value:"Record
Daily"}),s||this.typeList.push({prompt:this.translate.instant("dashboard.sched.type.all"),value:"Record
All"})}-1==this.typeList.findIndex(s=>s.value==e.Type)&&(e.Type=this.typeList[0].value)}mergeProgram(e,n,s){e.Title=n.Title,e.SubTitle=n.SubTitle,e.Description=n.Description,e.Category=n.Category,e.StartTime
=n.StartTime,e.EndTime=n.EndTime,e.SeriesId=n.SeriesId,e.ProgramId=n.ProgramId,e.ChanId=s.ChanId,e.CallSign=s.CallSign,e.Season=n.Season,e.Episode=n.Episode;let
r=new
Date(e.StartTime);e.FindDay=(r.getDay()+1)%7,e.FindTime=r.toTimeString().slice(0,8)}filterFromRec(e){this.selectedFilters=[],this.recRuleFilters.forEach(n=>{0!=(e.Filter&1<<n.Id)&&this.selectedFilters.push(n.Id)})}filterToRec(e){e.Filter=0,this.selectedFilters.forEach(n=>{e.Filter|=1<<n})}postProcFromRec(e){this.selectedPostProc=[];let
n=e;this.postProcList.forEach(s=>{n[s.value]&&this.selectedPostProc.push(s.value)})}postProcToRec(e){let
n=e;this.postProcList.forEach(s=>n[s.value]=!1),this.selectedPostProc.forEach(s=>n[s]=!0)}iCheckbox(e){e.Inetref||(e.Inetref=""),e.Inetref=e.Inetref.includes(".py_")?e.Inetref.replace(/^.*\.py_/,this.metaPrefix):this.metaPrefix+e.Inetref}iText(e){this.metaPrefix=e.Inetref.replace(/_.*/,"_"),this.metaPrefix.endsWith(".py_")||(this.metaPrefix="")}templateChange(e){if(this.templateId){co
nst
n=this.templates.find(s=>s.Id==this.templateId);n&&this.mergeTemplate(e,n)}}onSearchTypeChange(){this.recRule&&(this.recRule.Title="",this.reqDate=new
Date,this.reqDate.setMinutes(0),this.reqDate.setSeconds(0,0),this.reqDuration=60,this.onDateChange(),"Manual
Search"==this.recRule.SearchType&&(this.recRule.Description="",setTimeout(()=>this.onChannelChange(),100)),this.subTitleRows="Power
Search"==this.recRule.SearchType?5:1,this.descriptionRows=["None","Power
Search"].indexOf(this.recRule.SearchType)>-1?5:1,this.recRule.SubTitle="",this.recRule.Description="",this.setupTypeList(this.recRule)),this.onTitleBlur(),this.onDescriptionBlur()}onTitleBlur(){if(this.recRule){if(this.recRule.Title=this.recRule.Title.trim(),this.recRule.Title.length>0){let
e;["Manual Search","Power
Search"].indexOf(this.recRule.SearchType)>-1&&this.recRule.Title.length>0&&(e="("+this.trSearch(this.recRule.SearchType)+")"),"Recording
Template"==this.recRule.Type&&this.recRule.Title.length>0&&(e="("+this.tr
anslate.instant("recrule.template")+")"),e&&-1==this.recRule.Title.indexOf(e)&&(this.recRule.Title=this.recRule.Title+"
"+e)}"Manual
Search"==this.recRule.SearchType&&(this.recRule.Description=this.recRule.Title)}}onDescriptionBlur(){this.recRule&&(this.recRule.Description=this.recRule.Description.trim(),["Title
Search","Keyword Search","People
Search"].indexOf(this.recRule.SearchType)>-1&&(this.recRule.Title=this.recRule.Description.length>0?this.recRule.Description+"
("+this.trSearch(this.recRule.SearchType)+")":""))}onChannelChange(){this.recRule&&this.channel&&(this.recRule.ChanId=this.channel.ChanId,this.recRule.CallSign=this.channel.CallSign)}onDateChange(){this.recRule&&(this.recRule.StartTime=this.reqDate.toISOString(),this.recRule.FindDay=(this.reqDate.getDay()+1)%7,this.recRule.FindTime=this.reqDate.toTimeString().slice(0,8),this.onDurationChange())}onDurationChange(){if(this.recRule){let
e=new Date(this.recRule.StartTime),n=new Date(e.getTime()+6e4*this.reqDuration);this.
recRule.EndTime=n.toISOString()}}trSearch(e){return
this.translate.instant("recrule.srch_"+e.replace("
",""))}mergeTemplate(e,n){e.Inactive=n.Inactive,e.RecPriority=n.RecPriority,e.PreferredInput=n.PreferredInput,e.StartOffset=n.StartOffset,e.EndOffset=n.EndOffset,e.DupMethod=n.DupMethod,e.DupIn=n.DupIn,e.NewEpisOnly=n.NewEpisOnly,e.Filter=n.Filter,e.RecProfile=n.RecProfile,e.RecGroup=n.RecGroup,e.StorageGroup=n.StorageGroup,e.PlayGroup=n.PlayGroup,e.AutoExpire=n.AutoExpire,e.MaxEpisodes=n.MaxEpisodes,e.MaxNewest=n.MaxNewest,e.AutoCommflag=n.AutoCommflag,e.AutoMetaLookup=n.AutoMetaLookup,e.AutoTranscode=n.AutoTranscode,e.AutoUserJob1=n.AutoUserJob1,e.AutoUserJob2=n.AutoUserJob2,e.AutoUserJob3=n.AutoUserJob3,e.AutoUserJob4=n.AutoUserJob4,e.Transcoder=n.Transcoder,this.postProcFromRec(e),this.filterFromRec(e)}close(){!this.recRule||0==this.recRule.Id&&"Not
Recording"==this.recRule.Type?this.displayDlg=!1:this.currentForm.dirty?this.displayUnsaved?(this.displayUnsaved=!1,this.displayDl
g=!1,this.currentForm.form.markAsPristine()):this.displayUnsaved=!0:(this.displayDlg=!1,this.displayUnsaved=!1)}save(){if(this.errortext="",this.recRule&&(0!=this.recRule.Id||"Not
Recording"!=this.recRule.Type))if(this.errorCount=0,this.successCount=0,this.recRule.Id>0&&"Not
Recording"==this.recRule.Type)this.dvrService.RemoveRecordSchedule(this.recRule.Id).subscribe(this.saveObserver);else
if(this.recRule.Id>0){const
e=this.createRequest(this.recRule);e.RecordId=this.recRule.Id,this.dvrService.UpdateRecordSchedule(e).subscribe(this.saveObserver)}else{const
e=this.createRequest(this.recRule);this.dvrService.AddRecordSchedule(e).subscribe(this.saveObserver)}}createRequest(e){return{Title:e.Title,Subtitle:e.SubTitle,Description:e.Description,Category:e.Category,StartTime:e.StartTime,EndTime:e.EndTime,SeriesId:e.SeriesId,ProgramId:e.ProgramId,ChanId:e.ChanId,Station:e.CallSign,FindDay:e.FindDay,FindTime:e.FindTime,ParentId:e.ParentId,Inactive:e.Inactive,Season:e.Season,Episode:e.Episod
e,Inetref:e.Inetref,Type:e.Type,SearchType:e.SearchType,RecPriority:e.RecPriority,PreferredInput:e.PreferredInput,StartOffset:e.StartOffset,EndOffset:e.EndOffset,LastRecorded:e.LastRecorded,DupMethod:e.DupMethod,DupIn:e.DupIn,NewEpisOnly:e.NewEpisOnly,Filter:e.Filter,RecProfile:e.RecProfile,RecGroup:e.RecGroup,StorageGroup:e.StorageGroup,PlayGroup:e.PlayGroup,AutoExpire:e.AutoExpire,MaxEpisodes:e.MaxEpisodes,MaxNewest:e.MaxNewest,AutoCommflag:e.AutoCommflag,AutoTranscode:e.AutoTranscode,AutoMetaLookup:e.AutoMetaLookup,AutoUserJob1:e.AutoUserJob1,AutoUserJob2:e.AutoUserJob2,AutoUserJob3:e.AutoUserJob3,AutoUserJob4:e.AutoUserJob4,Transcoder:e.Transcoder,AutoExtend:e.AutoExtend}}URLencode(e){return
encodeURI(e)}confirm(e){return
oe(window.confirm(e))}canDeactivate(){return!this.currentForm||!this.currentForm.dirty||this.confirm(this.translate.instant("settings.common.warning"))}onWindowClose(e){this.currentForm&&this.currentForm.dirty&&(e.preventDefault(),e.returnValue=!1)}}return
t.\u
0275fac=function(e){return
new(e||t)(D(jo),D(Oe),D(qt),D(cs),D(Or))},t.\u0275cmp=z({type:t,selectors:[["app-schedule"]],viewQuery:function(e,n){if(1&e&&W(Noe,5),2&e){let
s;V(s=B())&&(n.currentForm=s.first)}},hostBindings:function(e,n){1&e&&C("beforeunload",function(r){return
n.onWindowClose(r)},!1,ni)},inputs:{inter:"inter"},decls:3,vars:1,consts:[["name","schedform",1,"ml-3","mr-3"],["schedform","ngForm"],[4,"ngIf"],[3,"header","visible","modal","closable","closeOnEscape","visibleChange"],["class","form-group
field",4,"ngIf"],[1,"form-group","field"],["for","SearchType",1,"label","block"],["optionLabel","prompt","optionValue","value","name","SearchType","optionDisabled","inactive",3,"options","ngModel","editable","maxlength","disabled","ngModelChange","onChange"],["SearchType","ngModel"],["for","Title",1,"label","block"],["pInputTextArea","","id","Title","name","Title",1,"text-lg","mb-2","form-control","w-full",3,"ngModel","disabled","rows","ngModelChange","focusout"],["for","Type"
,1,"label","block"],["optionLabel","prompt","optionValue","value","name","Type",3,"options","ngModel","editable","maxlength","ngModelChange"],["Type","ngModel"],["for","RecGroup",1,"label","block"],["name","RecGroup",3,"options","ngModel","editable","maxlength","ngModelChange"],["RecGroup","ngModel"],["inputId","Active","name","Active",1,"label","mb-2","w-full",3,"ngModel","binary","label","trueValue","falseValue","disabled","ngModelChange"],["Active","ngModel"],["for","PlayGroup",1,"label","block"],["PlayGroup","Type","name","PlayGroup",3,"options","ngModel","editable","maxlength","ngModelChange"],["PlayGroup","ngModel"],["for","StartOffset",1,"label","block"],["name","StartOffset","id","StartOffset",3,"ngModel","showButtons","min","max","step","ngModelChange"],["for","EndOffset",1,"label","block"],["name","EndOffset","id","EndOffset",3,"ngModel","showButtons","min","max","step","ngModelChange"],["inputId","NewEpisOnly","name","NewEpisOnly",1,"label","mb-2","w-full",3,"ngModel","bi
nary","label","ngModelChange"],["UseEIT","ngModel"],["for","RecPriority",1,"label","block"],["name","RecPriority","id","RecPriority",3,"ngModel","showButtons","min","max","step","ngModelChange"],["for","PreferredInput",1,"label","block"],["optionLabel","DisplayName","optionValue","Id","name","PreferredInput",3,"options","ngModel","editable","maxlength","ngModelChange"],["PreferredInput","ngModel"],["for","DupMethod",1,"label","block"],["optionLabel","prompt","optionValue","value","name","DupMethod",3,"options","ngModel","editable","maxlength","ngModelChange"],["DupMethod","ngModel"],["for","DupIn",1,"label","block"],["optionLabel","prompt","optionValue","value","name","DupIn",3,"options","ngModel","editable","maxlength","ngModelChange"],["DupIn","ngModel"],["for","AutoExtend",1,"label","block"],["optionLabel","prompt","optionValue","value","name","AutoExtend",3,"options","ngModel","editable","maxlength","ngModelChange"],["AutoExtend","ngModel"],["for","Filters",1,"label","block"],["
optionLabel","Description","optionValue","Id","name","Filters",3,"options","ngModel","ngModelChange","onChange"],["Filters","ngModel"],["for","RecProfile",1,"label","block"],["optionLabel","prompt","optionValue","value","name","RecProfile",3,"options","ngModel","editable","maxlength","ngModelChange"],["RecProfile","ngModel"],["for","StorageGroup",1,"label","block"],["name","StorageGroup",3,"options","ngModel","editable","maxlength","ngModelChange"],["StorageGroup","ngModel"],["for","MaxEpisodes",1,"label","block"],["name","MaxEpisodes","id","MaxEpisodes",3,"ngModel","showButtons","min","max","step","ngModelChange"],["inputId","MaxNewest","name","MaxNewest",1,"label","mb-2","w-full",3,"ngModel","binary","label","ngModelChange"],["MaxNewest","ngModel"],[1,"block"],["inputId","AutoExpire","name","AutoExpire",1,"label","mb-2","w-full",3,"ngModel","binary","label","ngModelChange"],["AutoExpire","ngModel"],["for","PostProc",1,"label","block"],["optionLabel","prompt","optionValue","value",
"name","PostProc",3,"options","ngModel","filter","ngModelChange","onChange"],["PostProc","ngModel"],["pTemplate","footer"],[3,"header","visible","modal","visibleChange"],["for","Template",1,"label","block"],["optionLabel","Title","optionValue","Id","name","Template",1,"pr-2",3,"options","ngModel","editable","maxlength","ngModelChange","onClick","onChange"],["Template","ngModel"],["for","SubTitle","class","label
block",4,"ngIf"],["pInputTextArea","","id","SubTitle","name","SubTitle","class","text-lg
mb-2 form-control
w-full",3,"ngModel","disabled","rows","ngModelChange",4,"ngIf"],["for","SubTitle",1,"label","block"],["pInputTextArea","","id","SubTitle","name","SubTitle",1,"text-lg","mb-2","form-control","w-full",3,"ngModel","disabled","rows","ngModelChange"],[3,"ngSwitch"],["for","Description","class","label
block
mb-2",4,"ngSwitchCase"],["for","Description","class","label
block
mb-2",4,"ngSwitchDefault"],["pInputTextArea","","id","Description","name","Description",1,"text-lg","mb-2"
,"form-control","w-full",3,"ngModel","disabled","rows","ngModelChange","focusout"],["for","Description",1,"label","block","mb-2"],["href","https://www.mythtv.org/wiki/Power_Search","target","_blank"],["for","ChanId",1,"label","block"],["optionLabel","Description","name","Type",3,"options","ngModel","editable","maxlength","ngModelChange","onChange"],["for","StartTime",1,"label","block"],["name","StartTime",3,"ngModel","showTime","stepMinute","dateFormat","selectOtherMonths","showIcon","showOnFocus","showButtonBar","clearButtonStyleClass","ngModelChange","onClose","keyup.enter","onBlur"],["for","Duration",1,"label","block"],["name","Duration","id","Duration",3,"ngModel","showButtons","min","max","step","ngModelChange"],["for","Inetref",1,"label","block"],[1,"grid","p-0"],[1,"col-3","flex","align-items-center"],["name","prefix","value","ttvdb4.py_","inputId","ttvdb",3,"ngModel","ngModelChange"],["for","ttvdb"],["src","images/metadata/thetvdb.png","alt","thtvdb","height","40",1,"pl-1"],
[1,"col-9","flex","align-items-center"],["target","_blank",3,"href"],[1,"col-5","flex","align-items-center"],["name","prefix","value","tvmaze.py_","inputId","tvmaze",3,"ngModel","ngModelChange"],["for","tvmaze"],["src","images/metadata/tvmaze.png","alt","tvmaze","height","40",1,"pl-1"],[1,"col-7","flex","align-items-center"],["name","prefix","value","tmdb3.py_","inputId","tmdb",3,"ngModel","ngModelChange"],["for","tmdb"],["src","images/metadata/themoviedb.svg","alt","themoviedb","height","40",1,"pl-1"],["pInputText","","id","Inetref","name","Inetref",1,"mb-2","form-control","w-full",3,"ngModel","ngModelChange"],["Inetref","ngModel"],[1,"col-12",2,"text-align","left"],["severity","success",3,"text",4,"ngIf"],["severity","error",3,"text",4,"ngIf"],["icon","pi
pi-times-circle","styleClass","p-button-warning",3,"label","onClick"],["icon","pi
pi-check-circle","styleClass","p-button-success",3,"label","disabled","onClick"],["severity","success",3,"text"],["severity","error",3,"text"],["ic
on","pi
pi-times-circle","styleClass","p-button-danger",3,"label","onClick"],["icon","pi
pi-check-circle","styleClass","p-button-success",3,"label","onClick"]],template:function(e,n){1&e&&(l(0,"form",0,1),_(2,oae,154,212,"div",2),c()),2&e&&(a(2),p("ngIf",n.recRule))},directives:[ze,Ue,He,Q,bn,Ot,Te,_e,_n,Ye,gr,Ja,km,x7,xr,pt,sn,X2,Sd,ne,qe,ve],pipes:[ce],styles:[""]}),t})();function
aae(t,i){if(1&t){const
e=I();l(0,"p-checkbox",27,28),C("onChange",function(s){return
v(e).filterCallback(s.checked)}),m(2,"translate"),c()}if(2&t){const
e=i.$implicit;Bn("label","",f(2,3,"dashboard.upcoming.showall"),"
"),p("ngModel",e)("binary",!0)}}function
lae(t,i){if(1&t){const
e=I();l(0,"p-dropdown",29),C("onChange",function(s){return
v(e).filterCallback(s.value)}),m(1,"translate"),c()}if(2&t){const
e=i.$implicit,n=d(2);x("placeholder",f(1,4,"settings.chanedit.all")),p("ngModel",e)("options",n.recRules)("showClear",!0)}}const
cae=function(){return{width:"2rem",height:"2rem"}};function
uae(t,i){1&t&&
(l(0,"div"),k(1,"p-progressSpinner"),c()),2&t&&(a(1),q(A(2,cae)))}function
dae(t,i){if(1&t){const
e=I();l(0,"button",30),C("click",function(){return
v(e),d(2).refresh()}),m(1,"translate"),c()}2&t&&x("pTooltip",f(1,1,"common.refresh"))}function
pae(t,i){if(1&t&&(l(0,"tr")(1,"th")(2,"p-columnFilter",10),_(3,aae,3,5,"ng-template",11),c(),g(4),m(5,"translate"),l(6,"p-columnFilter",12),_(7,lae,2,6,"ng-template",11),c(),_(8,uae,2,3,"div",13),_(9,dae,2,3,"ng-template",null,14,we),g(11),c()(),l(12,"tr")(13,"th",15),g(14),m(15,"translate"),c(),l(16,"th",16),g(17),m(18,"translate"),c(),k(19,"th",17),l(20,"th",18),g(21),m(22,"translate"),c(),l(23,"th",19),g(24),m(25,"translate"),c(),l(26,"th",20),g(27),m(28,"translate"),c(),l(29,"th",21),g(30),m(31,"translate"),c(),l(32,"th",15),g(33),m(34,"translate"),c(),l(35,"th",22),g(36),m(37,"translate"),c(),l(38,"th",18),g(39),m(40,"translate"),c(),l(41,"th",23),g(42),m(43,"translate"),c(),l(44,"th",24),k(45,"button",25),c(),l(46,"th",24),k(47,"button",
26),c()()),2&t){const
e=F(10),n=d();a(2),p("showMenu",!1)("showClearButton",!1),a(2),T("
\xa0\xa0\xa0\xa0\xa0 ",f(5,20,"dashboard.upcoming.recrule"),": \xa0
"),a(2),p("showMenu",!1)("showClearButton",!1),a(2),p("ngIf",n.refreshing)("ngIfElse",e),a(3),T("
\xa0\xa0\xa0",n.programs.length," Rows "),a(3),T("
",f(15,22,"dashboard.upcoming.date")," "),a(3),T("
",f(18,24,"dashboard.upcoming.time"),"
"),a(4),T("",f(22,26,"dashboard.upcoming.encoder"),"
"),a(3),T("
",f(25,28,"dashboard.recordings.title"),""),a(3),S(f(28,30,"dashboard.recordings.subtitle")),a(3),S(f(31,32,"dashboard.recordings.seas_ep")),a(3),T("
",f(34,34,"dashboard.recordings.orig_airdate"),"
"),a(3),S(f(37,36,"dashboard.recordings.channel")),a(3),T("
",f(40,38,"dashboard.recordings.recgrp")," "),a(3),T("
",f(43,40,"dashboard.upcoming.status"),"
"),a(3),p("disabled",!0),a(2),p("disabled",!0)}}function
hae(t,i){if(1&t&&(l(0,"div"),g(1),c()),2&t){const
e=d().$implicit;a(1),We(" ",e.Season,"x",e.Episode,"
")}}const mae=functio
n(){return["WillRecord","Recording","Recorded"]};function
fae(t,i){if(1&t&&(l(0,"div",42),g(1),c()),2&t){const
e=d().$implicit,n=d();p("ngClass",A(2,mae).indexOf(e.Recording.StatusName)>-1?"text-green-500":"text-pink-500"),a(1),T("
",n.dataService.recStatusText[e.Recording.StatusName]," ")}}function
gae(t,i){if(1&t){const
e=I();l(0,"button",43),C("click",function(){v(e);const
s=d().$implicit;return
d().stopRequest(s)}),m(1,"translate"),c()}2&t&&x("pTooltip",f(1,1,"dashboard.recordings.stop_recording"))}function
_ae(t,i){if(1&t){const
e=I();l(0,"button",44),C("click",function(){v(e);const
s=d().$implicit;return
d().override(s)}),m(1,"translate"),c()}2&t&&x("pTooltip",f(1,1,"dashboard.recordings.override_rule"))}const
bae=function(){return["Recording","Failing"]};function
vae(t,i){if(1&t){const
e=I();l(0,"tr")(1,"td",31),k(2,"div",32),c(),l(3,"td",33),g(4),c(),l(5,"td",34),g(6),m(7,"number"),c(),l(8,"td",18),g(9),c(),l(10,"td",35),g(11),c(),l(12,"td",36),g(13),c(),l(14,"td",21),_(15,h
ae,2,2,"div",37),c(),l(16,"td",15),k(17,"div",32),c(),l(18,"td",22),g(19),c(),l(20,"td",18),g(21),c(),l(22,"td",23),_(23,fae,2,3,"div",38),c(),l(24,"td",24),_(25,gae,2,3,"button",39),_(26,_ae,2,3,"ng-template",null,40,we),c(),l(28,"td",24)(29,"button",41),C("click",function(){const
r=v(e).$implicit;return
d().updateRecRule(r)}),m(30,"translate"),c()()()}if(2&t){const
e=i.$implicit,n=F(27),s=d();a(2),p("innerHTML",s.formatStartDate(e),Bt),a(2),T("
",s.formatStartTime(e),""),a(2),T("
",Dt(7,17,s.getDuration(e),"1.0-0"),"
min"),a(3),T("",e.Recording.EncoderName," "),a(2),T("
",e.Title,""),a(1),x("pTooltip",e.Description),a(1),T("
",e.SubTitle.slice(0,50),""),a(2),p("ngIf",e.Season>0||e.Episode>0),a(2),p("innerHTML",s.formatAirDate(e),Bt),a(2),We("
",e.Channel.ChanNum,"
",e.Channel.CallSign,""),a(2),S(e.Recording.RecGroup),a(2),p("ngIf",e.Recording),a(2),p("ngIf",A(22,bae).indexOf(e.Recording.StatusName)>-1)("ngIfElse",n),a(4),x("pTooltip",f(30,20,"dashboard.recordings.edit_rule")),p("d
isabled",e.Recording&&7==e.Recording.RecType)}}function
Cae(t,i){1&t&&(k(0,"p-message",49),m(1,"translate")),2&t&&x("text",f(1,1,"common.networkfail"))}function
yae(t,i){if(1&t){const
e=I();l(0,"div",45),_(1,Cae,2,3,"p-message",46),c(),l(2,"p-button",47),C("onClick",function(){return
v(e),d().displayStop=!1}),m(3,"translate"),c(),l(4,"p-button",48),C("onClick",function(){v(e);const
s=d();return s.stopRecording(s.program)}),m(5,"translate"),c()}if(2&t){const
e=d();a(1),p("ngIf",e.errorCount>0),a(1),x("label",f(3,3,"common.close")),a(2),x("label",f(5,5,"dashboard.recordings.stop_recording"))}}let
wae=(()=>{class
t{constructor(e,n,s,r,o){this.dvrService=e,this.messageService=n,this.translate=s,this.dataService=r,this.utility=o,this.programs=[],this.recRules=[],this.allRecRules=[],this.activeRecRules=[],this.defaultRecRule={Id:0,Title:"settings.chanedit.all"},this.displayUpdateDlg=!1,this.showAllStatuses=!1,this.refreshing=!1,this.loaded=!1,this.inter={summaryComponent:this},this.displa
yStop=!1,this.errorCount=0,this.translate.get(this.defaultRecRule.Title).subscribe(u=>this.defaultRecRule.Title=u),this.loadRecRules()}ngOnInit(){}refresh(){this.refreshing=!0,this.loadRecRules(),this.loadLazy(this.lazyLoadEvent)}loadRecRules(){this.dvrService.GetRecordScheduleList({}).subscribe({next:e=>{this.allRecRules.length=0,this.allRecRules.push(this.defaultRecRule),this.activeRecRules.length=0,this.activeRecRules.push(this.defaultRecRule),e.RecRuleList.RecRules.forEach(n=>{if("Recording
Template"!=n.Type){let s={Id:n.Id,Title:n.Title.substring(0,30)+"
["+this.utility.recTypeTrans[n.Type]+"]"};this.allRecRules.push(s),n.NextRecording&&this.activeRecRules.push(s)}})}})}loadLazy(e){this.lazyLoadEvent=e;let
n={StartIndex:0,Count:1};e.first&&(n.StartIndex=e.first),e.rows&&(n.Count=e.rows,n.Count<100&&(n.Count=100)),e.filters&&(e.filters.ShowAll.value&&(n.ShowAll=!0),e.filters.RecordId.value&&(n.RecordId=e.filters.RecordId.value)),this.recRules.length=0,n.ShowAll?this.recRules.pus
h(...this.allRecRules):this.recRules.push(...this.activeRecRules),this.dvrService.GetUpcomingList(n).subscribe(s=>{let
r=s.ProgramList;this.programs.length=s.ProgramList.TotalAvailable,this.programs.splice(r.StartIndex,r.Count,...r.Programs),this.programs=[...this.programs],this.refreshing=!1})}formatStartDate(e){return
this.utility.formatDate(e.Recording.StartTs,!0)}formatAirDate(e){return
e.Airdate?this.utility.formatDate(e.Airdate+"
00:00",!0):""}formatStartTime(e){return(new
Date(e.Recording.StartTs).toLocaleTimeString()+" ").replace(/:.. /,"
")}getDuration(e){let n=new Date(e.Recording.StartTs).getTime();return(new
Date(e.Recording.EndTs).getTime()-n)/6e4}updateRecRule(e){this.inter.sched&&this.inter.sched.open(e)}override(e){this.inter.sched&&(7==e.Recording.RecType?this.inter.sched.open(e):this.inter.sched.open(e,void
0,{Type:"Override
Recording"}))}stopRequest(e){e.Recording.RecordId&&(this.program=e,this.displayStop=!0)}stopRecording(e){this.errorCount=0,this.dvrService.Sto
pRecording(e.Recording.RecordedId).subscribe({next:n=>{n.bool?(this.displayStop=!1,setTimeout(()=>this.inter.summaryComponent.refresh(),3e3)):this.errorCount++},error:n=>{this.errorCount++}})}}return
t.\u0275fac=function(e){return
new(e||t)(D(jo),D(Gi),D(Oe),D(Ll),D(cs))},t.\u0275cmp=z({type:t,selectors:[["app-upcoming"]],features:[Pe([Gi])],decls:24,vars:25,consts:[[2,"white-space","pre-line"],["position","center"],[1,"block","card","w-full"],[2,"height","90vh"],["scrollHeight","flex","styleClass","p-datatable-striped",3,"value","scrollable","virtualScroll","rows","lazy","rowHover","onLazyLoad"],["pTemplate","header"],["pTemplate","body"],[3,"header","visible","modal","draggable","resizable","visibleChange"],["pTemplate","footer"],[3,"inter"],["field","ShowAll","matchMode","equals",3,"showMenu","showClearButton"],["pTemplate","filter"],["field","RecordId","matchMode","equals",3,"showMenu","showClearButton"],[4,"ngIf","ngIfElse"],["refreshBn",""],[1,"justify-content-end","p-1",2,"fl
ex-basis","8%"],[1,"justify-content-end","p-1",2,"flex-basis","6%"],[1,"justify-content-end","pl-1","pr-3","pt-1","pb-1",2,"flex-basis","7%"],[1,"p-1",2,"flex-basis","8%"],[1,"p-1",2,"flex-basis","12%"],[1,"p-1",2,"flex-basis","18%"],[1,"p-1",2,"flex-basis","4%"],[1,"p-1",2,"flex-basis","10%"],[1,"p-1",2,"flex-basis","7%"],[1,"p-1",2,"flex-basis","2%"],["pButton","","pRipple","","icon","pi
pi-paperclip",1,"p-button-text","p-button-primary",3,"disabled"],["pButton","","pRipple","","icon","pi
pi-pencil",1,"p-button-text","p-button-primary",3,"disabled"],["inputId","showAllStatuses","name","showAllStatuses",3,"ngModel","binary","label","onChange"],["showAll","ngModel"],["name","rulefilter","optionLabel","Title","optionValue","Id",3,"ngModel","options","placeholder","showClear","onChange"],["pButton","","pRipple","","icon","pi
pi-refresh",1,"p-button-text",".p-button-success",3,"pTooltip","click"],[1,"justify-content-end","p-1","overflow-hidden",2,"flex-basis","8%"],[3,"innerHTML"],[1,"
justify-content-end","p-1","overflow-hidden",2,"flex-basis","6%"],[1,"justify-content-end","pl-1","pr-3","pt-1","pb-1","overflow-hidden",2,"flex-basis","7%"],[1,"p-1","overflow-hidden",2,"flex-basis","12%"],["tooltipPosition","top",1,"p-1","overflow-hidden",2,"flex-basis","18%",3,"pTooltip"],[4,"ngIf"],[3,"ngClass",4,"ngIf"],["pButton","","pRipple","","icon","pi
pi-stop-circle","class","p-button-text
p-button-danger","tooltipPosition","left",3,"pTooltip","click",4,"ngIf","ngIfElse"],["overrideBn",""],["pButton","","pRipple","","icon","pi
pi-pencil","tooltipPosition","left",1,"p-button-text","p-button-primary",3,"pTooltip","disabled","click"],[3,"ngClass"],["pButton","","pRipple","","icon","pi
pi-stop-circle","tooltipPosition","left",1,"p-button-text","p-button-danger",3,"pTooltip","click"],["pButton","","pRipple","","icon","pi
pi-paperclip","tooltipPosition","left",1,"p-button-text","p-button-primary",3,"pTooltip","click"],[1,"col-12",2,"text-align","left"],["severity","error",3,"te
xt",4,"ngIf"],["icon","pi
pi-times-circle","styleClass","p-button-warning",3,"label","onClick"],["icon","pi
pi-check-circle","styleClass","p-button-danger",3,"label","onClick"],["severity","error",3,"text"]],template:function(e,n){1&e&&(l(0,"div")(1,"div",0),k(2,"p-toast",1),c(),l(3,"h2"),g(4),m(5,"translate"),c(),l(6,"div",2)(7,"div",3)(8,"p-table",4),C("onLazyLoad",function(r){return
n.loadLazy(r)}),_(9,pae,48,42,"ng-template",5),_(10,vae,31,23,"ng-template",6),c(),l(11,"p-dialog",7),C("visibleChange",function(r){return
n.displayStop=r}),m(12,"translate"),l(13,"h2"),g(14),m(15,"translate"),c(),l(16,"p"),g(17),m(18,"translate"),k(19,"br"),l(20,"b"),g(21),c()(),_(22,yae,6,7,"ng-template",8),c(),k(23,"app-schedule",9),c()()()),2&e&&(a(4),S(f(5,17,"dashboard.upcoming.heading")),a(4),p("value",n.programs)("scrollable",!0)("virtualScroll",!0)("rows",50)("lazy",!0)("rowHover",!0),a(3),x("header",f(12,19,"dashboard.recordings.stop_recording")),p("visible",n.displayStop)("modal",!0)("dragg
able",!1)("resizable",!1),a(3),S(f(15,21,"settings.common.ru_sure")),a(3),T("",f(18,23,"dashboard.recordings.stop_details"),"
"),a(4),We(" ",null==n.program?null:n.program.Title,":
",null==n.program?null:n.program.SubTitle,""),a(2),p("inter",n.inter))},directives:[Td,Dn,ne,vg,sn,Te,_e,Ot,Q,Go,On,bt,Kt,Le,bn,qe,ve,Rd],pipes:[ce,eu],styles:[""]}),t})();function
Tae(t,i){if(1&t){const
e=I();l(0,"button",10),C("click",function(){return
v(e),d(2).newRecRule()}),m(1,"translate"),c(),l(2,"button",11),C("click",function(){return
v(e),d(2).newTemplate()}),m(3,"translate"),c()}2&t&&(x("label",f(1,2,"dashboard.recrules.new_recrule")),a(2),x("label",f(3,4,"dashboard.recrules.new_teplate")))}function
Sae(t,i){1&t&&(l(0,"tr")(1,"th",12),g(2),m(3,"translate"),k(4,"p-sortIcon",13),c(),l(5,"th",14),g(6),m(7,"translate"),c(),l(8,"th",15),g(9),m(10,"translate"),c(),l(11,"th",15),g(12),m(13,"translate"),c(),l(14,"th",15),g(15),m(16,"translate"),c(),l(17,"th",16),g(18),m(19,"translate"),k(20,"p-sortIcon
",17),c(),l(21,"th",18),g(22),m(23,"translate"),k(24,"p-sortIcon",19),c(),l(25,"th",20),g(26,"Active"),c(),l(27,"th",21),k(28,"button",22)(29,"button",23),c()()),2&t&&(a(2),T("
",f(3,9,"dashboard.recordings.title"),"
"),a(4),S(f(7,11,"dashboard.recrule.type")),a(3),S(f(10,13,"common.priority")),a(3),T("
",f(13,15,"dashboard.recordings.recgrp")," "),a(3),T("
",f(16,17,"dashboard.recrules.storgrp")," "),a(3),T("
",f(19,19,"dashboard.recrules.lastrec"),""),a(4),T("
",f(23,21,"dashboard.recrules.nextrec"),""),a(6),p("disabled",!0),a(1),p("disabled",!0))}function
xae(t,i){1&t&&k(0,"i",31)}function
Dae(t,i){1&t&&k(0,"i",32)}function Mae(t,i){if(1&t){const
e=I();l(0,"tr")(1,"td",24),g(2),c(),l(3,"td",14),g(4),c(),l(5,"td",15),g(6),c(),l(7,"td",15),g(8),c(),l(9,"td",15),g(10),c(),l(11,"td",25),g(12),c(),l(13,"td",26),g(14),c(),l(15,"td",20),_(16,xae,1,0,"i",27),_(17,Dae,1,0,"ng-template",null,28,we),c(),l(19,"td",21)(20,"button",29),C("click",function(){const
r=v(e).$implicit;return d(2).up
dateRecRule(r)}),m(21,"translate"),c(),l(22,"button",30),C("click",function(){const
r=v(e).$implicit;return
d(2).deleteRequest(r)}),m(23,"translate"),c()()()}if(2&t){const
e=i.$implicit,n=F(18),s=d(2);a(2),T(" ",e.Title,""),a(2),T("
",s.utility.recTypeTrans[e.Type],""),a(2),S(e.RecPriority),a(2),S(e.RecGroup),a(2),S(e.StorageGroup),a(2),T("
",s.utility.formatDate(e.LastRecorded),""),a(2),We("
",s.utility.formatDate(e.NextRecording),"
",s.utility.formatTime(e.NextRecording),""),a(2),p("ngIf",e.Inactive)("ngIfElse",n),a(4),x("pTooltip",f(21,13,"dashboard.recordings.edit_rule")),a(2),x("pTooltip",f(23,15,"dashboard.recordings.delete_rule")),p("disabled","Recording
Template"==e.Type&&"Default"==e.Category)}}function
kae(t,i){if(1&t&&(l(0,"div",5)(1,"p-table",6),_(2,Tae,4,6,"ng-template",7),_(3,Sae,30,23,"ng-template",8),_(4,Mae,24,17,"ng-template",9),c()()),2&t){const
e=d();a(1),p("value",e.recRules)("scrollable",!0)("rowHover",!0)}}function
Iae(t,i){1&t&&(k(0,"p-message",37),m(1,"trans
late")),2&t&&x("text",f(1,1,"common.networkfail"))}function
Eae(t,i){if(1&t){const
e=I();l(0,"div",33),_(1,Iae,2,3,"p-message",34),c(),l(2,"p-button",35),C("onClick",function(){return
v(e),d().displayDelete=!1}),m(3,"translate"),c(),l(4,"p-button",36),C("onClick",function(){v(e);const
s=d();return s.deleteRule(s.recRule)}),m(5,"translate"),c()}if(2&t){const
e=d();a(1),p("ngIf",e.errorCount>0),a(1),x("label",f(3,3,"common.close")),a(2),x("label",f(5,5,"common.delete"))}}function
Rae(t,i){1&t&&k(0,"p-progressSpinner")}let Lae=(()=>{class
t{constructor(e,n){this.dvrService=e,this.utility=n,this.recRules=[],this.inter={summaryComponent:this},this.deSpacer=new
RegExp(/
/g),this.rulesLoaded=!1,this.errorCount=0,this.successCount=0,this.displayDelete=!1,this.saveObserver={next:s=>{this.recRule?this.recRule.Id&&s.bool?(this.successCount++,this.displayDelete=!1,setTimeout(()=>this.refresh(),1e3)):!this.recRule.Id&&s.uint?(this.successCount++,setTimeout(()=>this.inter.summaryComponent.refresh
(),1e3),this.recRule.Id=s.uint):this.errorCount++:(console.log("ERROR: recRule is
undefined"),this.errorCount++)},error:s=>{console.error(s),this.errorCount++}}}refresh(){this.loadLists()}ngOnInit(){this.loadLists()}loadLists(){this.recRules=[],this.errorCount=0,this.dvrService.GetRecordScheduleList({}).subscribe({next:e=>{this.recRules=e.RecRuleList.RecRules,this.rulesLoaded=!0},error:e=>{this.errorCount++}})}newRecRule(){this.updateRecRule()}updateRecRule(e){this.inter.sched&&this.inter.sched.open(void
0,void 0,e)}newTemplate(){this.updateRecRule({Type:"Recording
Template"})}deleteRequest(e){this.recRule=e,this.displayDelete=!0}deleteRule(e){this.dvrService.RemoveRecordSchedule(e.Id).subscribe(this.saveObserver)}}return
t.\u0275fac=function(e){return
new(e||t)(D(jo),D(cs))},t.\u0275cmp=z({type:t,selectors:[["app-recrules"]],decls:19,vars:21,consts:[["class","block
card w-full","style","height:
90vh",4,"ngIf","ngIfElse"],[3,"header","visible","modal","draggable","resizable","visibl
eChange"],["pTemplate","footer"],[3,"inter"],["loading",""],[1,"block","card","w-full",2,"height","90vh"],["scrollHeight","flex","styleClass","p-datatable-striped","responsiveLayout","scroll",3,"value","scrollable","rowHover"],["pTemplate","caption"],["pTemplate","header"],["pTemplate","body"],["pButton","","pRipple","","icon","pi
pi-plus",1,"p-button-success","mr-2",3,"label","click"],["pButton","","pRipple","","icon","pi
pi-plus",1,"p-button-success","p-button-outlined","mr-2",3,"label","click"],["pSortableColumn","Title",1,"p-1",2,"flex-basis","20%"],["field","Title"],[1,"p-1",2,"flex-basis","20%"],[1,"p-1",2,"flex-basis","10%"],["pSortableColumn","LastRecorded",1,"justify-content-end","pr-5",2,"flex-basis","10%"],["field","LastRecorded"],["pSortableColumn","NextRecording",1,"justify-content-end","pr-5",2,"flex-basis","15%"],["field","NextRecording"],[1,"p-1",2,"flex-basis","5%"],[1,"p-1",2,"flex-basis","6%"],["pButton","","pRipple","","icon","pi
pi-pencil",1,"p-button-text","p-b
utton-primary",3,"disabled"],["pButton","","pRipple","","icon","pi
pi-trash",1,"p-button-text","p-button-danger",3,"disabled"],[1,"p-1","overflow-hidden",2,"flex-basis","20%"],[1,"justify-content-end","p-1","pr-5",2,"flex-basis","10%"],[1,"justify-content-end","p-1","pr-5",2,"flex-basis","15%"],["class","pi
pi-times
text-pink-500",4,"ngIf","ngIfElse"],["checkmark",""],["pButton","","pRipple","","icon","pi
pi-pencil","tooltipPosition","left",1,"p-button-text","p-button-primary",3,"pTooltip","click"],["pButton","","pRipple","","icon","pi
pi-trash","tooltipPosition","left",1,"p-button-text","p-button-danger",3,"pTooltip","disabled","click"],[1,"pi","pi-times","text-pink-500"],[1,"pi","pi-check","text-green-500"],[1,"col-12",2,"text-align","left"],["severity","error",3,"text",4,"ngIf"],["icon","pi
pi-times-circle","styleClass","p-button-warning",3,"label","onClick"],["icon","pi
pi-check-circle","styleClass","p-button-danger",3,"label","onClick"],["severity","error",3,"text"]],template:f
unction(e,n){if(1&e&&(l(0,"h2"),g(1),m(2,"translate"),c(),_(3,kae,5,3,"div",0),l(4,"p-dialog",1),C("visibleChange",function(r){return
n.displayDelete=r}),m(5,"translate"),l(6,"h2"),g(7),m(8,"translate"),c(),l(9,"p"),g(10),m(11,"translate"),k(12,"br"),l(13,"b"),g(14),c()(),_(15,Eae,6,7,"ng-template",2),c(),k(16,"app-schedule",3),_(17,Rae,1,0,"ng-template",null,4,we)),2&e){const
s=F(18);a(1),S(f(2,13,"dashboard.recrules.heading")),a(2),p("ngIf",n.rulesLoaded)("ngIfElse",s),a(1),x("header",f(5,15,"dashboard.recordings.delete_rule")),p("visible",n.displayDelete)("modal",!0)("draggable",!1)("resizable",!1),a(3),S(f(8,17,"settings.common.ru_sure")),a(3),T("",f(11,19,"dashboard.recordings.delete_details"),"
"),a(4),We(" ",null==n.recRule?null:n.recRule.Title,":
",null==n.recRule?null:n.recRule.Type,""),a(2),p("inter",n.inter)}},directives:[Q,Dn,ne,On,bt,yd,wd,Kt,bn,qe,ve,Rd,Go],pipes:[ce],styles:[""]}),t})(),Oae=(()=>{class
t{constructor(e){this.httpClient=e}GetVideoList(e){let n=new ye;fo
r(const[s,r]of Object.entries(e))n=n.set(s,r);return
this.httpClient.get("/Video/GetVideoList",{params:n})}UpdateVideoWatchedStatus(e,n){return
this.httpClient.post("/Video/UpdateVideoWatchedStatus",{Id:e,Watched:n})}UpdateVideoMetadata(e){return
this.httpClient.post("/Video/UpdateVideoMetadata",e)}}return
t.\u0275fac=function(e){return
new(e||t)(K(Bi))},t.\u0275prov=X({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();const
Aae=["vidsform"],Pae=["menu"],Fae=["table"];function
Nae(t,i){}function Vae(t,i){if(1&t){const
e=I();l(0,"div")(1,"p-button",35),C("onClick",function(){const
r=v(e).index;return d(2).breadCrumb(r+1)}),c()()}if(2&t){const
e=i.$implicit;a(1),x("label",e)}}const
Bae=function(){return{width:"30px",height:"30px"}};function
Hae(t,i){1&t&&(l(0,"div"),k(1,"p-progressSpinner"),c()),2&t&&(a(1),q(A(2,Bae)))}function
qae(t,i){if(1&t){const
e=I();l(0,"button",52),C("click",function(){v(e);const s=d(2);return
s.refreshing=!0,s.reLoadVideos()}),m(1,"translate"),c()}2&t&&x(
"pTooltip",f(1,1,"common.refresh"))}function
Gae(t,i){if(1&t){const
e=I();l(0,"tr")(1,"th")(2,"p-button",35),C("onClick",function(){return
v(e),d().breadCrumb(0)}),m(3,"translate"),c(),_(4,Vae,2,1,"div",36),g(5,"
\xa0\xa0\xa0
"),l(6,"p-checkbox",37,38),C("ngModelChange",function(s){return
v(e),d().showAllVideos=s})("onChange",function(){return
v(e),d().showAllChange()}),m(8,"translate"),c(),_(9,Hae,2,3,"div",39),_(10,qae,2,3,"ng-template",null,40,we),g(12),c()(),l(13,"tr")(14,"th",41),g(15),m(16,"translate"),k(17,"p-sortIcon",42),c(),k(18,"th",43),l(19,"th",44),g(20),m(21,"translate"),c(),l(22,"th",45),g(23),m(24,"translate"),c(),l(25,"th",46),g(26),m(27,"translate"),k(28,"p-sortIcon",47),c(),l(29,"th",48),g(30),m(31,"translate"),c(),l(32,"th",45)(33,"a",49),k(34,"i",50),c(),k(35,"button",51),c()()}if(2&t){const
e=F(11),n=d();a(2),x("label",f(3,14,"dashboard.videos.heading")),a(2),p("ngForOf",n.directory),a(2),Bn("label","",f(8,16,"dashboard.videos.showall"),"
"),p("ngModel",n.showA
llVideos)("binary",!0),a(3),p("ngIf",n.refreshing)("ngIfElse",e),a(3),T("
\xa0\xa0\xa0",n.videos.length," Rows "),a(3),T("
",f(16,18,"dashboard.recordings.title"),"
"),a(5),S(f(21,20,"dashboard.recordings.subtitle")),a(3),S(f(24,22,"dashboard.recordings.seas_ep")),a(3),T("
",f(27,24,"dashboard.videos.releasedate")," "),a(4),T("
",f(31,26,"dashboard.recordings.duration"),"
"),a(5),p("disabled",!0)}}function Uae(t,i){if(1&t){const
e=I();l(0,"div")(1,"button",60),C("click",function(){v(e);const
s=d().$implicit;return d().onDirectory(s.Title)}),c()()}if(2&t){const
e=d().$implicit;a(1),x("label",e.Title)}}function
zae(t,i){1&t&&g(0),2&t&&T(" ",d().$implicit.Title,"
")}function jae(t,i){1&t&&k(0,"i",61)}function
$ae(t,i){if(1&t&&(l(0,"div"),g(1),c()),2&t){const
e=d().$implicit;a(1),We(" ",e.Season,"x",e.Episode,"
")}}function
Wae(t,i){if(1&t&&(l(0,"div"),g(1),c()),2&t){const
e=d().$implicit;a(1),T(" ",e.Length," min ")}}function
Kae(t,i){if(1&t){const e=I();l(0,"div")(1,"a",62),m(2,"trans
late"),k(3,"i",63),c(),l(4,"button",64),C("click",function(s){v(e);const
r=d().$implicit;return d().showMenu(r,s)}),c()()}if(2&t){const
e=d().$implicit,n=d();a(1),x("href",n.URLencode("/Content/GetVideo?Id="+e.Id),ln),x("pTooltip",f(2,2,"dashboard.videos.download"))}}function
Qae(t,i){if(1&t&&(l(0,"tr")(1,"td",53),_(2,Uae,2,1,"div",39),_(3,zae,1,1,"ng-template",null,54,we),c(),l(5,"td",43),_(6,jae,1,0,"i",55),c(),l(7,"td",56),g(8),c(),l(9,"td",45),_(10,$ae,2,2,"div",57),c(),l(11,"td",58),k(12,"div",59),c(),l(13,"td",48),_(14,Wae,2,1,"div",57),c(),l(15,"td",45),_(16,Kae,5,4,"div",57),c()()),2&t){const
e=i.$implicit,n=F(4),s=d();a(2),p("ngIf","DIRECTORY"==e.ContentType)("ngIfElse",n),a(4),p("ngIf",e.Watched),a(1),x("pTooltip",e.Description),a(1),T("
",e.SubTitle,""),a(2),p("ngIf",e.Season>0||e.Episode>0),a(2),p("innerHTML",s.utility.formatDate(e.ReleaseDate,!0),Bt),a(2),p("ngIf",e.Length>0),a(2),p("ngIf","DIRECTORY"!=e.ContentType)}}function
Jae(t,i){1&t&&(k(0,"p-message",70),m(1,"tra
nslate")),2&t&&x("text",f(1,1,"common.savesuccess"))}function
Yae(t,i){1&t&&(k(0,"p-message",71),m(1,"translate")),2&t&&x("text",f(1,1,"common.networkfail"))}function
Zae(t,i){if(1&t){const
e=I();l(0,"div",65),_(1,Jae,2,3,"p-message",66),_(2,Yae,2,3,"p-message",67),c(),l(3,"p-button",68),C("onClick",function(){return
v(e),d().closeDialog()}),m(4,"translate"),c(),l(5,"p-button",69),C("onClick",function(){return
v(e),d().saveVideo()}),m(6,"translate"),c()}if(2&t){const
e=d(),n=F(15);a(1),p("ngIf",e.successCount>0&&0==e.errorCount&&!n.dirty),a(1),p("ngIf",e.errorCount>0),a(1),x("label",f(4,5,"common.close")),a(2),x("label",f(6,7,"common.save")),p("disabled",!n.dirty||""==e.video.Title.trim())}}function
Xae(t,i){if(1&t){const
e=I();l(0,"p-button",72),C("onClick",function(){return
v(e),d().closeDialog()}),m(1,"translate"),c(),l(2,"p-button",73),C("onClick",function(){return
v(e),d().displayUnsaved=!1}),m(3,"translate"),c()}2&t&&(x("label",f(1,2,"common.nosave")),a(2),x("label",f(3,4,"com
mon.continue")))}const
ele=function(){return{height:"75vw",width:"50vw"}};let
tle=(()=>{class
t{constructor(e,n,s,r){this.videoService=e,this.translate=n,this.messageService=s,this.utility=r,this.videos=[],this.refreshing=!1,this.successCount=0,this.errorCount=0,this.directory=[],this.video={Title:""},this.displayMetadataDlg=!1,this.displayUnsaved=!1,this.showAllVideos=!1,this.mnu_markwatched={label:"dashboard.recordings.mnu_markwatched",command:u=>this.markwatched(u,!0)},this.mnu_markunwatched={label:"dashboard.recordings.mnu_markunwatched",command:u=>this.markwatched(u,!1)},this.mnu_updatemeta={label:"dashboard.recordings.mnu_updatemeta",command:u=>this.updatemeta(u)},this.menuToShow=[],this.msg={Success:"common.success",Failed:"common.failed",NetFail:"common.networkfail"},this.saveObserver={next:u=>{u.bool?(console.log("saveObserver
success",u),this.successCount++,this.successCount++,this.currentForm.form.markAsPristine(),this.editingVideo&&Object.assign(this.editingVideo,this.vi
deo)):(console.log("saveObserver
error",u),this.errorCount++)},error:u=>{console.log("saveObserver
error",u),this.errorCount++}};for(const[u,h]of
Object.entries(this.msg))this.translate.get(h).subscribe(b=>{Object.defineProperty(this.msg,u,{value:b})});[this.mnu_markwatched,this.mnu_markunwatched,this.mnu_updatemeta].forEach(u=>{u.label&&this.translate.get(u.label).subscribe(h=>u.label=h)})}ngOnInit(){}loadLazy(e){this.lazyLoadEvent=e;let
n={Sort:"title",Folder:this.directory.join("/"),CollapseSubDirs:!this.showAllVideos,StartIndex:0,Count:1};e.sortField&&(n.Sort=e.sortField,e.sortOrder&&(n.Descending=e.sortOrder<0)),n.Sort+=",title,releasedate,season,episode",e.first&&(n.StartIndex=e.first),e.rows&&(n.Count=e.rows),this.videoService.GetVideoList(n).subscribe(s=>{let
r=s.VideoMetadataInfoList;this.videos.length=s.VideoMetadataInfoList.TotalAvailable,this.videos.splice(r.StartIndex,r.Count,...r.VideoMetadataInfos),this.videos=[...this.videos],this.refreshing=!1})}reLoadVideos(){this.
table.resetScrollTop(),this.videos.length=0,this.lazyLoadEvent.first=0,this.lazyLoadEvent.rows=100,this.loadLazy(this.lazyLoadEvent)}showAllChange(){this.refreshing=!0,setTimeout(()=>this.reLoadVideos(),100)}URLencode(e){return
encodeURI(e)}onDirectory(e){this.directory.push(e),this.reLoadVideos()}breadCrumb(e){this.directory.length=e,this.reLoadVideos()}showMenu(e,n){this.video=e,this.menuToShow.length=0,this.menuToShow.push(e.Watched?this.mnu_markunwatched:this.mnu_markwatched),this.menuToShow.push(this.mnu_updatemeta),this.menu.toggle(n)}markwatched(e,n){this.videoService.UpdateVideoWatchedStatus(this.video.Id,n).subscribe({next:s=>{s.bool?(this.sendMessage("success",e.item.label,this.msg.Success),this.video.Watched=n):this.sendMessage("error",e.item.label,this.msg.Failed)},error:s=>this.networkError(s)})}updatemeta(e){this.editingVideo=this.video,this.video=Object.assign({},this.video),this.video.ReleaseDate=this.video.ReleaseDate?new
Date(this.video.ReleaseDate):null,this.displ
ayMetadataDlg=!0}sendMessage(e,n,s,r){this.messageService.add({severity:e,summary:s,detail:n+"
"+this.video.Title+"
"+this.video.SubTitle+(r=r?"\n"+r:""),life:3e3})}saveVideo(){this.successCount=0,this.errorCount=0,this.displayUnsaved=!1,this.videoService.UpdateVideoMetadata({Id:this.video.Id,Episode:this.video.Episode,Inetref:this.video.Inetref,Plot:this.video.Description,ReleaseDate:this.video.ReleaseDate,Season:this.video.Season,SubTitle:this.video.SubTitle,Title:this.video.Title}).subscribe(this.saveObserver)}networkError(e){console.log("network
error",e),this.sendMessage("error","",this.msg.NetFail)}closeDialog(){this.currentForm.dirty?this.displayUnsaved?(this.displayUnsaved=!1,this.displayMetadataDlg=!1,this.editingVideo=void
0,this.currentForm.form.markAsPristine()):this.displayUnsaved=!0:(this.displayMetadataDlg=!1,this.displayUnsaved=!1,this.editingVideo=void
0)}}return t.\u0275fac=function(e){return
new(e||t)(D(Oae),D(Oe),D(Gi),D(cs))},t.\u0275cmp=z({type:t,selectors:[["a
pp-videos"]],viewQuery:function(e,n){if(1&e&&(W(Aae,5),W(Pae,5),W(Fae,5)),2&e){let
s;V(s=B())&&(n.currentForm=s.first),V(s=B())&&(n.menu=s.first),V(s=B())&&(n.table=s.first)}},features:[Pe([Gi])],decls:70,vars:71,consts:[[2,"white-space","pre-line"],["position","center"],[1,"block","card","w-full",2,"height","90vh"],[3,"popup","model"],["menu",""],["name","table","scrollHeight","flex","styleClass","p-datatable-striped","responsiveLayout","scroll",3,"value","scrollable","virtualScroll","rows","lazy","rowHover","onLazyLoad"],["table",""],["pTemplate","caption"],["pTemplate","header"],["pTemplate","body"],["name","vidsform",1,"ml-3","mr-3"],["vidsform","ngForm"],[3,"header","visible","modal","closable","closeOnEscape","visibleChange"],[1,"form-group","field"],["for","Title",1,"label","block"],["pInputText","","id","Title","name","Title",1,"mb-2","form-control","w-full",3,"ngModel","ngModelChange"],["Title","ngModel"],["for","SubTitle",1,"label","block"],["pInputText","","id","SubTitle"
,"name","SubTitle",1,"mb-2","form-control","w-full",3,"ngModel","ngModelChange"],["SubTitle","ngModel"],["for","Inetref",1,"label","block"],["pInputText","","id","Inetref","name","Inetref",1,"mb-2","form-control","w-full",3,"ngModel","ngModelChange"],["Inetref","ngModel"],["for","Description",1,"label","block"],["pInputTextarea","","id","Description","name","Description",1,"mb-2","form-control","w-full",3,"rows","cols","ngModel","ngModelChange"],["Description","ngModel"],["for","Season",1,"label","block"],["name","Season","id","Season",3,"ngModel","showButtons","min","max","step","ngModelChange"],["for","Episode",1,"label","block"],["name","Episode","id","Episode",3,"ngModel","showButtons","min","max","step","ngModelChange"],["for","ReleaseDate",1,"label","block"],["dateFormat","yy-mm-dd","name","ReleaseDate","id","ReleaseDate",3,"ngModel","ngModelChange"],["for","FileName",1,"label","block"],["pTemplate","footer"],[3,"header","visible","modal","visibleChange"],["styleClass","p-butt
on-primary",1,"p-1",3,"label","onClick"],[4,"ngFor","ngForOf"],["inputId","showAllVideos","name","showAllVideos",3,"ngModel","binary","label","ngModelChange","onChange"],["showAll","ngModel"],[4,"ngIf","ngIfElse"],["refreshBn",""],["pSortableColumn","Title",1,"p-1",2,"flex-basis","30%"],["field","Title"],[1,"p-1",2,"flex-basis","3%"],[1,"p-1",2,"flex-basis","30%"],[1,"p-1",2,"flex-basis","6%"],["pSortableColumn","ReleaseDate",1,"justify-content-end","p-1",2,"flex-basis","12%"],["field","ReleaseDate"],[1,"justify-content-end","p-1",2,"flex-basis","10%"],["target","_blank"],[1,"pi","pi-download"],["pButton","","pRipple","","icon","pi
pi-ellipsis-v",1,"p-button-text","p-button-primary",3,"disabled"],["pButton","","pRipple","","icon","pi
pi-refresh",1,"p-button-text",".p-button-success",3,"pTooltip","click"],[1,"p-1","overflow-hidden",2,"flex-basis","30%"],["title",""],["class","pi
pi-eye",4,"ngIf"],["tooltipPosition","top",1,"p-1","overflow-hidden",2,"flex-basis","30%",3,"pTooltip"],[4
,"ngIf"],[1,"justify-content-end","p-1",2,"flex-basis","12%"],[3,"innerHTML"],["pButton","","pRipple","","icon","pi
pi-folder",1,"p-button-text","p-button-primary",3,"label","click"],[1,"pi","pi-eye"],["target","_blank","tooltipPosition","left",3,"href","pTooltip"],[1,"pi","pi-download","text-primary"],["pButton","","pRipple","","icon","pi
pi-ellipsis-v",1,"p-button-text","p-button-primary",3,"click"],[1,"col-12",2,"text-align","left"],["severity","success",3,"text",4,"ngIf"],["severity","error",3,"text",4,"ngIf"],["icon","pi
pi-times-circle","styleClass","p-button-warning",3,"label","onClick"],["icon","pi
pi-check-circle","styleClass","p-button-success",3,"label","disabled","onClick"],["severity","success",3,"text"],["severity","error",3,"text"],["icon","pi
pi-times-circle","styleClass","p-button-danger",3,"label","onClick"],["icon","pi
pi-check-circle","styleClass","p-button-success",3,"label","onClick"]],template:function(e,n){1&e&&(l(0,"div")(1,"div",0),k(2,"p-toast",1),c(),l(3,
"h2"),g(4),m(5,"translate"),c(),l(6,"div",2),k(7,"p-menu",3,4),l(9,"p-table",5,6),C("onLazyLoad",function(r){return
n.loadLazy(r)}),_(11,Nae,0,0,"ng-template",7),_(12,Gae,36,28,"ng-template",8),_(13,Qae,17,9,"ng-template",9),c()(),l(14,"form",10,11)(16,"p-dialog",12),C("visibleChange",function(r){return
n.displayMetadataDlg=r}),m(17,"translate"),l(18,"div",13)(19,"label",14),g(20),m(21,"translate"),c(),l(22,"input",15,16),C("ngModelChange",function(r){return
n.video.Title=r}),c()(),l(24,"div",13)(25,"label",17),g(26),m(27,"translate"),c(),l(28,"input",18,19),C("ngModelChange",function(r){return
n.video.SubTitle=r}),c()(),l(30,"div",13)(31,"label",20),g(32),m(33,"translate"),c(),l(34,"input",21,22),C("ngModelChange",function(r){return
n.video.Inetref=r}),c()(),l(36,"div",13)(37,"label",23),g(38),m(39,"translate"),c(),l(40,"textarea",24,25),C("ngModelChange",function(r){return
n.video.Description=r}),c()(),l(42,"div",13)(43,"label",26),g(44),m(45,"translate"),c(),l(46,"p-inputNumber",
27),C("ngModelChange",function(r){return
n.video.Season=r}),c()(),l(47,"div",13)(48,"label",28),g(49),m(50,"translate"),c(),l(51,"p-inputNumber",29),C("ngModelChange",function(r){return
n.video.Episode=r}),c()(),l(52,"div",13)(53,"label",30),g(54),m(55,"translate"),c(),l(56,"p-calendar",31),C("ngModelChange",function(r){return
n.video.ReleaseDate=r}),c()(),l(57,"div",13)(58,"label",32),g(59),m(60,"translate"),c(),l(61,"pre"),g(62),c()(),_(63,Zae,7,9,"ng-template",33),c(),l(64,"p-dialog",34),C("visibleChange",function(r){return
n.displayUnsaved=r}),m(65,"translate"),l(66,"p"),g(67),m(68,"translate"),c(),_(69,Xae,4,6,"ng-template",33),c()()()),2&e&&(a(4),S(f(5,46,"dashboard.videos.heading")),a(3),p("popup",!0)("model",n.menuToShow),a(2),p("value",n.videos)("scrollable",!0)("virtualScroll",!0)("rows",50)("lazy",!0)("rowHover",!0),a(7),q(A(70,ele)),x("header",f(17,48,"dashboard.recordings.edit_metadata")),p("visible",n.displayMetadataDlg)("modal",!0)("closable",!1)("closeOnEscape",!1),a
(4),S(f(21,50,"dashboard.recordings.title")),a(2),p("ngModel",n.video.Title),a(4),S(f(27,52,"dashboard.recordings.subtitle")),a(2),p("ngModel",n.video.SubTitle),a(4),S(f(33,54,"dashboard.recordings.inetref")),a(2),p("ngModel",n.video.Inetref),a(4),S(f(39,56,"dashboard.recordings.description")),a(2),p("rows",5)("cols",30)("ngModel",n.video.Description),a(4),S(f(45,58,"dashboard.recordings.season")),a(2),p("ngModel",n.video.Season)("showButtons",!0)("min",1)("max",99)("step",1),a(3),S(f(50,60,"dashboard.recordings.episode")),a(2),p("ngModel",n.video.Episode)("showButtons",!0)("min",1)("max",99)("step",1),a(3),S(f(55,62,"dashboard.videos.releasedate")),a(2),p("ngModel",n.video.ReleaseDate),a(3),S(f(60,64,"dashboard.recordings.filename_label")),a(3),S(n.video.FileName),a(2),x("header",f(65,66,"common.unsaved_heading")),p("visible",n.displayUnsaved)("modal",!0),a(3),S(f(68,68,"common.unsaved_message")))},directives:[Td,sS,Dn,ne,ve,at,sn,Te,_e,Q,Go,On,bt,Kt,yd,wd,ze,Ue,He,bn,Ye,tS,pt,xr,q
e],pipes:[ce],styles:[""]}),t})(),nle=(()=>{class t{}return
t.\u0275fac=function(e){return
new(e||t)},t.\u0275mod=he({type:t}),t.\u0275inj=ue({imports:[[vn.forChild([{path:"dashboard",component:oS,children:[{path:"status",component:_oe},{path:"channel-editor",component:bS},{path:"program-guide",component:CS},{path:"recordings",component:Foe},{path:"upcoming",component:wae},{path:"recrules",component:Lae},{path:"videos",component:tle}]}])],vn]}),t})();function
ile(t,i){1&t&&(l(0,"tr")(1,"th",7),g(2),m(3,"translate"),c(),l(4,"th",8),g(5),m(6,"translate"),c(),k(7,"th",9),l(8,"th",10),g(9),m(10,"translate"),c(),l(11,"th",11),g(12),m(13,"translate"),c(),l(14,"th",12),g(15),m(16,"translate"),c(),l(17,"th",7),g(18),m(19,"translate"),c(),l(20,"th",13),g(21),m(22,"translate"),c(),l(23,"th",14),g(24),m(25,"translate"),c(),l(26,"th",15),k(27,"button",16),c()()),2&t&&(a(2),T("
",f(3,9,"dashboard.upcoming.date")," "),a(3),T("
",f(6,11,"dashboard.upcoming.time")," "),a(4),T("
",f(10,13,"dashboard
.recordings.title"),""),a(3),S(f(13,15,"dashboard.recordings.subtitle")),a(3),S(f(16,17,"dashboard.recordings.seas_ep")),a(3),T("
",f(19,19,"dashboard.recordings.orig_airdate"),"
"),a(3),S(f(22,21,"dashboard.recordings.channel")),a(3),T("
",f(25,23,"dashboard.upcoming.status"),"
"),a(3),p("disabled",!0))}function
sle(t,i){if(1&t&&(l(0,"div"),g(1),c()),2&t){const
e=d().$implicit;a(1),We("
",e.Season,"x",e.Episode,"")}}const
rle=function(){return["WillRecord","Recording","Recorded"]};function
ole(t,i){if(1&t&&(l(0,"div",28)(1,"b"),g(2),c()()),2&t){const
e=d().$implicit,n=d();p("ngClass",A(2,rle).indexOf(e.Recording.StatusName)>-1?"bg-green-500":"bg-pink-500"),a(2),S(n.dataService.recStatusText[e.Recording.StatusName])}}function
ale(t,i){if(1&t){const
e=I();l(0,"tr",17)(1,"td",18),k(2,"div",19),c(),l(3,"td",20),g(4),c(),l(5,"td",21),g(6),m(7,"number"),c(),l(8,"td",22),g(9),c(),l(10,"td",23),g(11),c(),l(12,"td",12),_(13,sle,2,2,"div",24),c(),l(14,"td",7),k(15,"div",19),c(),l(16,"td",13)
,g(17),c(),l(18,"td",14),_(19,ole,3,3,"div",25),c(),l(20,"td",26)(21,"button",27),C("click",function(){const
r=v(e).$implicit;return
d().updateRecRule(r)}),m(22,"translate"),c()()()}if(2&t){const
e=i.$implicit,n=d();p("ngClass",n.getClasses(e)),a(2),p("innerHTML",n.formatStartDate(e),Bt),a(2),T("
",n.formatStartTime(e),""),a(2),T("
",Dt(7,14,n.getDuration(e),"1.0-0")," min"),a(3),T("
",e.Title,""),a(1),x("pTooltip",e.Description),a(1),T("
",e.SubTitle.slice(0,50),""),a(2),p("ngIf",e.Season>0||e.Episode>0),a(2),p("innerHTML",n.formatAirDate(e),Bt),a(2),We("
",e.Channel.ChanNum,"
",e.Channel.CallSign,""),a(2),p("ngIf",e.Recording),a(2),x("pTooltip",f(22,17,"dashboard.recordings.edit_rule")),p("disabled",e.Recording&&7==e.Recording.RecType)}}function
lle(t,i){1&t&&(k(0,"p-message",33),m(1,"translate")),2&t&&x("text",f(1,1,"common.networkfail"))}function
cle(t,i){if(1&t){const
e=I();l(0,"div",29),_(1,lle,2,3,"p-message",30),c(),l(2,"p-button",31),C("onClick",function(){return
v(e),d().d
isplayStop=!1}),m(3,"translate"),c(),l(4,"p-button",32),C("onClick",function(){v(e);const
s=d();return s.stopRecording(s.program)}),m(5,"translate"),c()}if(2&t){const
e=d();a(1),p("ngIf",e.errorCount>0),a(1),x("label",f(3,3,"common.close")),a(2),x("label",f(5,5,"dashboard.recordings.stop_recording"))}}let
ule=(()=>{class
t{constructor(e,n,s){this.dataService=e,this.dvrService=n,this.utility=s,this.programs=[],this.displayStop=!1,this.successCount=0,this.errorCount=0,this.regex=/[^a-z0-9]/g}ngOnInit(){}formatStartDate(e){return
this.utility.formatDate(e.StartTime,!0)}formatAirDate(e){return
e.Airdate?this.utility.formatDate(e.Airdate+"
00:00",!0):""}formatStartTime(e){let n=new
Date(e.StartTime).getTime();return(new Date(n).toLocaleTimeString()+"
").replace(/:.. /,"
")}getClasses(e){return["guide_type_"+e.CatType,"guide_cat_"+e.Category.toLowerCase().replace(this.regex,"_"),"guide_type_default"]}getDuration(e){let
n=new Date(e.StartTime).getTime();return(new Date(e.EndTime).getTime()
-n)/6e4}updateRecRule(e){this.inter.sched&&this.inter.sched.open(e)}override(e){this.inter.sched&&(7==e.Recording.RecType?this.inter.sched.open(e):this.inter.sched.open(e,void
0,{Type:"Override
Recording"}))}stopRequest(e){e.Recording.RecordId&&(this.program=e,this.displayStop=!0)}stopRecording(e){this.errorCount=0,this.dvrService.StopRecording(e.Recording.RecordedId).subscribe({next:n=>{n.bool?(this.displayStop=!1,setTimeout(()=>this.inter.summaryComponent.refresh(),3e3)):this.errorCount++},error:n=>{this.errorCount++}})}}return
t.\u0275fac=function(e){return
new(e||t)(D(Ll),D(jo),D(cs))},t.\u0275cmp=z({type:t,selectors:[["app-programs"]],inputs:{programs:"programs",inter:"inter"},decls:17,vars:19,consts:[[2,"height","90vh"],["scrollHeight","flex","styleClass","p-datatable-striped","responsiveLayout","scroll",3,"value","scrollable","rowHover"],["pTemplate","header"],["pTemplate","body"],[3,"header","visible","modal","draggable","resizable","visibleChange"],["pTemplate","footer"],[3
,"inter"],[1,"justify-content-end","p-1",2,"flex-basis","8%"],[1,"justify-content-end","p-1",2,"flex-basis","6%"],[1,"justify-content-end","pl-1","pr-3","pt-1","pb-1",2,"flex-basis","7%"],[1,"p-1",2,"flex-basis","12%"],[1,"p-1",2,"flex-basis","18%"],[1,"p-1",2,"flex-basis","4%"],[1,"p-1",2,"flex-basis","10%"],[1,"p-1",2,"flex-basis","7%"],[1,"p-1",2,"flex-basis","2%"],["pButton","","pRipple","","icon","pi
pi-pencil",1,"p-button-text","p-button-primary",3,"disabled"],[3,"ngClass"],[1,"justify-content-end","p-1","overflow-hidden",2,"flex-basis","8%"],[3,"innerHTML"],[1,"justify-content-end","p-1","overflow-hidden",2,"flex-basis","6%"],[1,"justify-content-end","pl-1","pr-3","pt-1","pb-1","overflow-hidden",2,"flex-basis","7%"],[1,"p-1","overflow-hidden",2,"flex-basis","12%"],["tooltipPosition","top",1,"p-1","overflow-hidden",2,"flex-basis","18%",3,"pTooltip"],[4,"ngIf"],["class","text-white",3,"ngClass",4,"ngIf"],[1,"p-1",2,"flex-basis","2%","background","var(--surface-card)"],["pButton
","","pRipple","","icon","pi
pi-pencil","tooltipPosition","left",1,"p-button-text","p-button-primary",3,"pTooltip","disabled","click"],[1,"text-white",3,"ngClass"],[1,"col-12",2,"text-align","left"],["severity","error",3,"text",4,"ngIf"],["icon","pi
pi-times-circle","styleClass","p-button-warning",3,"label","onClick"],["icon","pi
pi-check-circle","styleClass","p-button-danger",3,"label","onClick"],["severity","error",3,"text"]],template:function(e,n){1&e&&(l(0,"div",0)(1,"p-table",1),_(2,ile,28,25,"ng-template",2),_(3,ale,23,19,"ng-template",3),c(),l(4,"p-dialog",4),C("visibleChange",function(r){return
n.displayStop=r}),m(5,"translate"),l(6,"h2"),g(7),m(8,"translate"),c(),l(9,"p"),g(10),m(11,"translate"),k(12,"br"),l(13,"b"),g(14),c()(),_(15,cle,6,7,"ng-template",5),c(),k(16,"app-schedule",6),c()),2&e&&(a(1),p("value",n.programs)("scrollable",!0)("rowHover",!0),a(3),x("header",f(5,13,"dashboard.recordings.stop_recording")),p("visible",n.displayStop)("modal",!0)("draggable",!1)("resi
zable",!1),a(3),S(f(8,15,"settings.common.ru_sure")),a(3),T("",f(11,17,"dashboard.recordings.stop_details"),"
"),a(4),We(" ",null==n.program?null:n.program.Title,":
",null==n.program?null:n.program.SubTitle,""),a(2),p("inter",n.inter))},directives:[Dn,ne,On,bt,Le,Kt,Q,bn,qe,ve,Rd],pipes:[ce,eu],styles:[".type_series[_ngcontent-%COMP%]{background-color:#00008b;color:#fff}.type_tvshow[_ngcontent-%COMP%]{background-color:#2f4f4f;color:#fff}.type_movie[_ngcontent-%COMP%]{background-color:#8a2be2;color:#fff}.type_sports[_ngcontent-%COMP%]{background-color:#8b0000;color:#fff}"]}),t})();function
dle(t,i){1&t&&(g(0),m(1,"translate")),2&t&&T("
",f(1,1,"dashboard.guide.typecolors")," ")}const
ple=function(t){return[t,"guide_type_default"]};function
hle(t,i){if(1&t&&(l(0,"div",4)(1,"div",5),g(2),c()()),2&t){const
e=i.$implicit;a(1),p("ngClass",U(2,ple,"guide_type_"+e)),a(1),T("
\xa0",e,"")}}function
mle(t,i){1&t&&(g(0),m(1,"translate")),2&t&&T("
",f(1,1,"dashboard.guide.catcolors")," ")}const
fle=function(t){return[t,"px-1"]};function
gle(t,i){if(1&t&&(l(0,"div",4)(1,"div",5),g(2),c()()),2&t){const
e=i.$implicit,n=d();a(1),p("ngClass",U(2,fle,"guide_cat_"+e.toLowerCase().replace(n.regex,"_"))),a(1),T("
",e,"")}}let _le=(()=>{class
t{constructor(){this.catTypes=[],this.categories=[],this.regex=/[^a-z0-9]/g}ngOnInit(){let
e=new Set,n=new
Set;null!=this.programGuide?this.programGuide.ProgramGuide.Channels.forEach(r=>{r.Programs.forEach(o=>{o.CatType&&e.add(o.CatType),o.Category&&n.add(o.Category)})}):null!=this.listPrograms&&this.listPrograms.forEach(r=>{r.CatType&&e.add(r.CatType),r.Category&&n.add(r.Category)}),this.catTypes=[];let
s=e.values();for(;;){let
r=s.next();if(r.done)break;this.catTypes.push(r.value)}for(this.categories=[],s=n.values();;){let
r=s.next();if(r.done)break;this.categories.push(r.value)}this.catTypes.sort(),this.catTypes.push("default"),this.categories.sort()}}return
t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=z({type:t,selectors:[["app-leg
end"]],inputs:{programGuide:"programGuide",listPrograms:"listPrograms"},decls:20,vars:11,consts:[[1,"flex"],["layout","grid",3,"value"],["pTemplate","header"],["pTemplate","gridItem"],[1,"md:col-2","px-3","py-1"],[3,"ngClass"]],template:function(e,n){1&e&&(l(0,"div",0)(1,"div")(2,"p-dataView",1),_(3,dle,2,3,"ng-template",2),_(4,hle,3,4,"ng-template",3),c(),l(5,"p-dataView",1),_(6,mle,2,3,"ng-template",2),_(7,gle,3,4,"ng-template",3),c(),l(8,"p"),g(9),m(10,"translate"),k(11,"br"),g(12),m(13,"translate"),k(14,"br"),g(15),m(16,"translate"),l(17,"code"),g(18,"/usr/share/mythtv/html/assets/guidecolors.css"),c(),g(19,"\xa0."),c()()()),2&e&&(a(2),p("value",n.catTypes),a(3),p("value",n.categories),a(4),S(f(10,5,"dashboard.guide.color_includes")),a(3),T("
",f(13,7,"dashboard.guide.color_expl"),""),a(3),T("
",f(16,9,"dashboard.guide.color_customize"),""))},directives:[LT,ne,Le],pipes:[ce],styles:[""]}),t})();function
ble(t){return new WO(t)}let vle=(()=>{class t{}return t.\u0275fac=function(e
){return
new(e||t)},t.\u0275mod=he({type:t,bootstrap:[VW]}),t.\u0275inj=ue({providers:[],imports:[[qy,IO,TW,UF,Mu,UA,sW,$O.forRoot({defaultLanguage:"en_US",loader:{provide:nl,useFactory:ble,deps:[Bi]}}),k$,eX,nle]]}),t})();Wi(CS,[Q,Ot,Te,_e,Kt,xr,Ye,On,bt,Go,K2,LT,ne,OX,MX,at,LX,ule,Rd,bn,_le],[ce]),Wi(hS,[Ne,ve,bn,os,Te,_e,ne,Q,qe,Ss,at,Ts,gr,Ja,jX,wS,xte,Fte,jte,ene,cne,jie,sse,gse,kse,Bse,km],[ce]),Wi(wS,[ze,Ue,He,Ne,ne,Q,Ot,Te,_e,_n,Ye,pt,sn,Ui,ve,bn,os,Kt,qe,kd,Al,wg,Pl],[ce]),Wi(Al,[ze,Ue,He,Ne,ne,Ye,Te,_e,pt,Ot,_n,Q,Dn,$2,DU,Ui,ve,bn,os,kd,Al,wg,Pl],[ce]),Wi(Pl,[ze,Ue,He,Ne,ne,Ye,Te,_e,pt,Ui,Q,ve,bn,os,kd,Al,wg,Pl],[ce]),Wi(_S,[Ne,Ss,at,Ts,ne,Q,kS,ve],[ce]),Wi(kS,[ze,Ue,He,Ne,ne,Q,gr,Ja,pt,Te,_e,Sd,Ye,Ot,_n,sn,Ui,Mre,ve,bn,qe],[ce]),Wi(mS,[Ne,Ss,at,Ts,ne,Q,ES,ve],[ce]),Wi(ES,[ve,bn,Ye,Te,_e,ne,Q,qe,Ss,at,Ts,Lie],[ce]),function
QR(){if(ZC)throw new Error("Cannot enable prod mode after platform
setup.");YC=!1}(),nO().bootstrapModule(vle).catch(t=>console.error(t))}},Is=>{Is(Is.
s=452)}]);
+\ No newline at end of file
++"use
strict";(self.webpackChunkbackend=self.webpackChunkbackend||[]).push([[179],{452:()=>{function
Is(t){return"function"==typeof t}let Qo=!1;const di={Promise:void 0,set
useDeprecatedSynchronousErrorHandling(t){if(t){const i=new
Error;console.warn("DEPRECATED! RxJS was set to use deprecated synchronous error
handling behavior by code at: \n"+i.stack)}else Qo&&console.log("RxJS:
Back to a better error behavior. Thank you. <3");Qo=t},get
useDeprecatedSynchronousErrorHandling(){return Qo}};function
Es(t){setTimeout(()=>{throw t},0)}const
Fl={closed:!0,next(t){},error(t){if(di.useDeprecatedSynchronousErrorHandling)throw
t;Es(t)},complete(){}},Nr=Array.isArray||(t=>t&&"number"==typeof
t.length);function Ld(t){return null!==t&&"object"==typeof t}const
Nl=(()=>{function t(i){return Error.call(this),this.message=i?`${i.length} errors
occurred during unsubscription:\n${i.map((e,n)=>`${n+1})
${e.toString()}`).join("\n
")}`:"",this.name="UnsubscriptionError",this.errors=i,this}return
t.pro
totype=Object.create(Error.prototype),t})();class
Et{constructor(i){this.closed=!1,this._parentOrParents=null,this._subscriptions=null,i&&(this._ctorUnsubscribe=!0,this._unsubscribe=i)}unsubscribe(){let
i;if(this.closed)return;let{_parentOrParents:e,_ctorUnsubscribe:n,_unsubscribe:s,_subscriptions:r}=this;if(this.closed=!0,this._parentOrParents=null,this._subscriptions=null,e
instanceof Et)e.remove(this);else if(null!==e)for(let
o=0;o<e.length;++o)e[o].remove(this);if(Is(s)){n&&(this._unsubscribe=void
0);try{s.call(this)}catch(o){i=o instanceof Nl?Dg(o.errors):[o]}}if(Nr(r)){let
o=-1,u=r.length;for(;++o<u;){const
h=r[o];if(Ld(h))try{h.unsubscribe()}catch(b){i=i||[],b instanceof
Nl?i=i.concat(Dg(b.errors)):i.push(b)}}}if(i)throw new Nl(i)}add(i){let e=i;if(!i)return
Et.EMPTY;switch(typeof i){case"function":e=new
Et(i);case"object":if(e===this||e.closed||"function"!=typeof
e.unsubscribe)return e;if(this.closed)return e.unsubscribe(),e;if(!(e instanceof
Et)){const r=e;e=new Et,e._subsc
riptions=[r]}break;default:throw new Error("unrecognized teardown "+i+"
added to
Subscription.")}let{_parentOrParents:n}=e;if(null===n)e._parentOrParents=this;else
if(n instanceof Et){if(n===this)return
e;e._parentOrParents=[n,this]}else{if(-1!==n.indexOf(this))return e;n.push(this)}const
s=this._subscriptions;return null===s?this._subscriptions=[e]:s.push(e),e}remove(i){const
e=this._subscriptions;if(e){const n=e.indexOf(i);-1!==n&&e.splice(n,1)}}}var
t;function Dg(t){return t.reduce((i,e)=>i.concat(e instanceof
Nl?e.errors:e),[])}Et.EMPTY=((t=new Et).closed=!0,t);const Vl="function"==typeof
Symbol?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random();class yt
extends
Et{constructor(i,e,n){switch(super(),this.syncErrorValue=null,this.syncErrorThrown=!1,this.syncErrorThrowable=!1,this.isStopped=!1,arguments.length){case
0:this.destination=Fl;break;case
1:if(!i){this.destination=Fl;break}if("object"==typeof i){i instanceof
yt?(this.syncErrorThrowable=i.syncErrorThrowable,this.destin
ation=i,i.add(this)):(this.syncErrorThrowable=!0,this.destination=new
Mg(this,i));break}default:this.syncErrorThrowable=!0,this.destination=new
Mg(this,i,e,n)}}[Vl](){return this}static create(i,e,n){const s=new yt(i,e,n);return
s.syncErrorThrowable=!1,s}next(i){this.isStopped||this._next(i)}error(i){this.isStopped||(this.isStopped=!0,this._error(i))}complete(){this.isStopped||(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe())}_next(i){this.destination.next(i)}_error(i){this.destination.error(i),this.unsubscribe()}_complete(){this.destination.complete(),this.unsubscribe()}_unsubscribeAndRecycle(){const{_parentOrParents:i}=this;return
this._parentOrParents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parentOrParents=i,this}}class
Mg extends yt{constructor(i,e,n,s){super(),this._parentSubscriber=i;let
r,o=this;Is(e)?r=e:e&&(r=e.next,n=e.error,s=e.complete,e!==Fl&&(o=Object.create(e),Is(o.unsubscribe)&&this.add(o.un
subscribe.bind(o)),o.unsubscribe=this.unsubscribe.bind(this))),this._context=o,this._next=r,this._error=n,this._complete=s}next(i){if(!this.isStopped&&this._next){const{_parentSubscriber:e}=this;di.useDeprecatedSynchronousErrorHandling&&e.syncErrorThrowable?this.__tryOrSetError(e,this._next,i)&&this.unsubscribe():this.__tryOrUnsub(this._next,i)}}error(i){if(!this.isStopped){const{_parentSubscriber:e}=this,{useDeprecatedSynchronousErrorHandling:n}=di;if(this._error)n&&e.syncErrorThrowable?(this.__tryOrSetError(e,this._error,i),this.unsubscribe()):(this.__tryOrUnsub(this._error,i),this.unsubscribe());else
if(e.syncErrorThrowable)n?(e.syncErrorValue=i,e.syncErrorThrown=!0):Es(i),this.unsubscribe();else{if(this.unsubscribe(),n)throw
i;Es(i)}}}complete(){if(!this.isStopped){const{_parentSubscriber:i}=this;if(this._complete){const
e=()=>this._complete.call(this._context);di.useDeprecatedSynchronousErrorHandling&&i.syncErrorThrowable?(this.__tryOrSetError(i,e),this.unsubscribe()):(this.__t
ryOrUnsub(e),this.unsubscribe())}else
this.unsubscribe()}}__tryOrUnsub(i,e){try{i.call(this._context,e)}catch(n){if(this.unsubscribe(),di.useDeprecatedSynchronousErrorHandling)throw
n;Es(n)}}__tryOrSetError(i,e,n){if(!di.useDeprecatedSynchronousErrorHandling)throw new
Error("bad call");try{e.call(this._context,n)}catch(s){return
di.useDeprecatedSynchronousErrorHandling?(i.syncErrorValue=s,i.syncErrorThrown=!0,!0):(Es(s),!0)}return!1}_unsubscribe(){const{_parentSubscriber:i}=this;this._context=null,this._parentSubscriber=null,i.unsubscribe()}}const
Jo="function"==typeof
Symbol&&Symbol.observable||"@@observable";function Bl(t){return t}let
Je=(()=>{class
t{constructor(e){this._isScalar=!1,e&&(this._subscribe=e)}lift(e){const n=new
t;return n.source=this,n.operator=e,n}subscribe(e,n,s){const{operator:r}=this,o=function
FS(t,i,e){if(t){if(t instanceof yt)return t;if(t[Vl])return t[Vl]()}return t||i||e?new
yt(t,i,e):new yt(Fl)}(e,n,s);if(o.add(r?r.call(o,this.source):this.source||di.useD
eprecatedSynchronousErrorHandling&&!o.syncErrorThrowable?this._subscribe(o):this._trySubscribe(o)),di.useDeprecatedSynchronousErrorHandling&&o.syncErrorThrowable&&(o.syncErrorThrowable=!1,o.syncErrorThrown))throw
o.syncErrorValue;return o}_trySubscribe(e){try{return
this._subscribe(e)}catch(n){di.useDeprecatedSynchronousErrorHandling&&(e.syncErrorThrown=!0,e.syncErrorValue=n),function
PS(t){for(;t;){const{closed:i,destination:e,isStopped:n}=t;if(i||n)return!1;t=e&&e
instanceof yt?e:null}return!0}(e)?e.error(n):console.warn(n)}}forEach(e,n){return
new(n=Ig(n))((s,r)=>{let
o;o=this.subscribe(u=>{try{e(u)}catch(h){r(h),o&&o.unsubscribe()}},r,s)})}_subscribe(e){const{source:n}=this;return
n&&n.subscribe(e)}[Jo](){return this}pipe(...e){return 0===e.length?this:function
kg(t){return 0===t.length?Bl:1===t.length?t[0]:function(e){return
t.reduce((n,s)=>s(n),e)}}(e)(this)}toPromise(e){return new(e=Ig(e))((n,s)=>{let
r;this.subscribe(o=>r=o,o=>s(o),()=>n(r))})}}return t.create=i=>new t(i),t}
)();function Ig(t){if(t||(t=di.Promise||Promise),!t)throw new Error("no Promise impl
found");return t}const nr=(()=>{function t(){return
Error.call(this),this.message="object
unsubscribed",this.name="ObjectUnsubscribedError",this}return
t.prototype=Object.create(Error.prototype),t})();class Eg extends
Et{constructor(i,e){super(),this.subject=i,this.subscriber=e,this.closed=!1}unsubscribe(){if(this.closed)return;this.closed=!0;const
i=this.subject,e=i.observers;if(this.subject=null,!e||0===e.length||i.isStopped||i.closed)return;const
n=e.indexOf(this.subscriber);-1!==n&&e.splice(n,1)}}class Rg extends
yt{constructor(i){super(i),this.destination=i}}let ct=(()=>{class t extends
Je{constructor(){super(),this.observers=[],this.closed=!1,this.isStopped=!1,this.hasError=!1,this.thrownError=null}[Vl](){return
new Rg(this)}lift(e){const n=new Lg(this,this);return
n.operator=e,n}next(e){if(this.closed)throw new
nr;if(!this.isStopped){const{observers:n}=this,s=n.length,r=n.slice();for(let o=0;
o<s;o++)r[o].next(e)}}error(e){if(this.closed)throw new
nr;this.hasError=!0,this.thrownError=e,this.isStopped=!0;const{observers:n}=this,s=n.length,r=n.slice();for(let
o=0;o<s;o++)r[o].error(e);this.observers.length=0}complete(){if(this.closed)throw new
nr;this.isStopped=!0;const{observers:e}=this,n=e.length,s=e.slice();for(let
r=0;r<n;r++)s[r].complete();this.observers.length=0}unsubscribe(){this.isStopped=!0,this.closed=!0,this.observers=null}_trySubscribe(e){if(this.closed)throw
new nr;return super._trySubscribe(e)}_subscribe(e){if(this.closed)throw new nr;return
this.hasError?(e.error(this.thrownError),Et.EMPTY):this.isStopped?(e.complete(),Et.EMPTY):(this.observers.push(e),new
Eg(this,e))}asObservable(){const e=new Je;return e.source=this,e}}return
t.create=(i,e)=>new Lg(i,e),t})();class Lg extends
ct{constructor(i,e){super(),this.destination=i,this.source=e}next(i){const{destination:e}=this;e&&e.next&&e.next(i)}error(i){const{destination:e}=this;e&&e.error&&this.destination.er
ror(i)}complete(){const{destination:i}=this;i&&i.complete&&this.destination.complete()}_subscribe(i){const{source:e}=this;return
e?this.source.subscribe(i):Et.EMPTY}}function Vr(t){return
t&&"function"==typeof t.schedule}function et(t,i){return
function(n){if("function"!=typeof t)throw new TypeError("argument is not a
function. Are you looking for `mapTo()`?");return n.lift(new NS(t,i))}}class
NS{constructor(i,e){this.project=i,this.thisArg=e}call(i,e){return e.subscribe(new
VS(i,this.project,this.thisArg))}}class VS extends
yt{constructor(i,e,n){super(i),this.project=e,this.count=0,this.thisArg=n||this}_next(i){let
e;try{e=this.project.call(this.thisArg,i,this.count++)}catch(n){return void
this.destination.error(n)}this.destination.next(e)}}const Og=t=>i=>{for(let
e=0,n=t.length;e<n&&!i.closed;e++)i.next(t[e]);i.complete()},Hl=function
HS(){return"function"==typeof
Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}(),Ag=t=>t&&"number"==typeof
t.length&&"function"!=typeof t;funct
ion Pg(t){return!!t&&"function"!=typeof
t.subscribe&&"function"==typeof t.then}const
Od=t=>{if(t&&"function"==typeof t[Jo])return(t=>i=>{const
e=t[Jo]();if("function"!=typeof e.subscribe)throw new TypeError("Provided
object does not correctly implement Symbol.observable");return
e.subscribe(i)})(t);if(Ag(t))return
Og(t);if(Pg(t))return(t=>i=>(t.then(e=>{i.closed||(i.next(e),i.complete())},e=>i.error(e)).then(null,Es),i))(t);if(t&&"function"==typeof
t[Hl])return(t=>i=>{const e=t[Hl]();for(;;){let n;try{n=e.next()}catch(s){return
i.error(s),i}if(n.done){i.complete();break}if(i.next(n.value),i.closed)break}return"function"==typeof
e.return&&i.add(()=>{e.return&&e.return()}),i})(t);{const e=`You
provided ${Ld(t)?"an invalid object":`'${t}'`} where a stream was
expected. You can provide an Observable, Promise, Array, or Iterable.`;throw new
TypeError(e)}};function Ad(t,i){return new Je(e=>{const n=new Et;let s=0;return
n.add(i.schedule(function(){s!==t.length?(e.next(t[s++]),e.closed||n.
add(this.schedule())):e.complete()})),n})}function Mn(t,i){return i?function
KS(t,i){if(null!=t){if(function $S(t){return t&&"function"==typeof
t[Jo]}(t))return function US(t,i){return new Je(e=>{const n=new Et;return
n.add(i.schedule(()=>{const
s=t[Jo]();n.add(s.subscribe({next(r){n.add(i.schedule(()=>e.next(r)))},error(r){n.add(i.schedule(()=>e.error(r)))},complete(){n.add(i.schedule(()=>e.complete()))}}))})),n})}(t,i);if(Pg(t))return
function zS(t,i){return new Je(e=>{const n=new Et;return
n.add(i.schedule(()=>t.then(s=>{n.add(i.schedule(()=>{e.next(s),n.add(i.schedule(()=>e.complete()))}))},s=>{n.add(i.schedule(()=>e.error(s)))}))),n})}(t,i);if(Ag(t))return
Ad(t,i);if(function WS(t){return t&&"function"==typeof
t[Hl]}(t)||"string"==typeof t)return function jS(t,i){if(!t)throw new
Error("Iterable cannot be null");return new Je(e=>{const n=new Et;let
s;return n.add(()=>{s&&"function"==typeof
s.return&&s.return()}),n.add(i.schedule(()=>{s=t[Hl](),n.add(i.schedule(function(){if(e.cl
osed)return;let r,o;try{const u=s.next();r=u.value,o=u.done}catch(u){return void
e.error(u)}o?e.complete():(e.next(r),this.schedule())}))})),n})}(t,i)}throw new
TypeError((null!==t&&typeof t||t)+" is not observable")}(t,i):t
instanceof Je?t:new Je(Od(t))}class Yo extends
yt{constructor(i){super(),this.parent=i}_next(i){this.parent.notifyNext(i)}_error(i){this.parent.notifyError(i),this.unsubscribe()}_complete(){this.parent.notifyComplete(),this.unsubscribe()}}class
Zo extends
yt{notifyNext(i){this.destination.next(i)}notifyError(i){this.destination.error(i)}notifyComplete(){this.destination.complete()}}function
Xo(t,i){if(i.closed)return;if(t instanceof Je)return t.subscribe(i);let
e;try{e=Od(t)(i)}catch(n){i.error(n)}return e}function
yn(t,i,e=Number.POSITIVE_INFINITY){return"function"==typeof
i?n=>n.pipe(yn((s,r)=>Mn(t(s,r)).pipe(et((o,u)=>i(s,o,r,u))),e)):("number"==typeof
i&&(e=i),n=>n.lift(new QS(t,e)))}class
QS{constructor(i,e=Number.POSITIVE_INFINITY){this.project=i,this.conc
urrent=e}call(i,e){return e.subscribe(new JS(i,this.project,this.concurrent))}}class JS
extends
Zo{constructor(i,e,n=Number.POSITIVE_INFINITY){super(i),this.project=e,this.concurrent=n,this.hasCompleted=!1,this.buffer=[],this.active=0,this.index=0}_next(i){this.active<this.concurrent?this._tryNext(i):this.buffer.push(i)}_tryNext(i){let
e;const n=this.index++;try{e=this.project(i,n)}catch(s){return void
this.destination.error(s)}this.active++,this._innerSub(e)}_innerSub(i){const e=new
Yo(this),n=this.destination;n.add(e);const
s=Xo(i,e);s!==e&&n.add(s)}_complete(){this.hasCompleted=!0,0===this.active&&0===this.buffer.length&&this.destination.complete(),this.unsubscribe()}notifyNext(i){this.destination.next(i)}notifyComplete(){const
i=this.buffer;this.active--,i.length>0?this._next(i.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()}}function
ea(t=Number.POSITIVE_INFINITY){return yn(Bl,t)}function Pd(t,i){return i?Ad(t,i):new
Je(Og(t))}function Fd(){return funct
ion(i){return i.lift(new ZS(i))}}class
ZS{constructor(i){this.connectable=i}call(i,e){const{connectable:n}=this;n._refCount++;const
s=new XS(i,n),r=e.subscribe(s);return s.closed||(s.connection=n.connect()),r}}class XS
extends
yt{constructor(i,e){super(i),this.connectable=e}_unsubscribe(){const{connectable:i}=this;if(!i)return
void(this.connection=null);this.connectable=null;const e=i._refCount;if(e<=0)return
void(this.connection=null);if(i._refCount=e-1,e>1)return
void(this.connection=null);const{connection:n}=this,s=i._connection;this.connection=null,s&&(!n||s===n)&&s.unsubscribe()}}class
Fg extends
Je{constructor(i,e){super(),this.source=i,this.subjectFactory=e,this._refCount=0,this._isComplete=!1}_subscribe(i){return
this.getSubject().subscribe(i)}getSubject(){const
i=this._subject;return(!i||i.isStopped)&&(this._subject=this.subjectFactory()),this._subject}connect(){let
i=this._connection;return i||(this._isComplete=!1,i=this._connection=new
Et,i.add(this.source.subscribe(new t
x(this.getSubject(),this))),i.closed&&(this._connection=null,i=Et.EMPTY)),i}refCount(){return
Fd()(this)}}const ex=(()=>{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
tx extends
Rg{constructor(i,e){super(i),this.connectable=e}_error(i){this._unsubscribe(),super._error(i)}_complete(){this.connectable._isComplete=!0,this._unsubscribe(),super._complete()}_unsubscribe(){const
i=this.connectable;if(i){this.connectable=null;const
e=i._connection;i._refCount=0,i._subject=null,i._connection=null,e&&e.unsubscribe()}}}class
sx{constructor(i,e){this.subjectFactory=i,this.selector=e}call(i,e){const{selector:n}=this,s=this.subjectFactory(),r=n(s).subscribe(i);return
r.add(e.subscribe(s)),r}}function rx(){return new ct}
function wt(t){for(let i in t)if(t[i]===wt)return i;throw Error("Could not find
renamed property on target object.")}function Nd(t,i){for(const e in
i)i.hasOwnProperty(e)&&!t.hasOwnProperty(e)&&(t[e]=i[e])}function
ft(t){if("string"==typeof t)return
t;if(Array.isArray(t))return"["+t.map(ft).join(",
")+"]";if(null==t)return""+t;if(t.overriddenName)return`${t.overriddenName}`;if(t.name)return`${t.name}`;const
i=t.toString();if(null==i)return""+i;const
e=i.indexOf("\n");return-1===e?i:i.substring(0,e)}function Vd(t,i){return
null==t||""===t?null===i?"":i:null==i||""===i?t:t+"
"+i}const ax=wt({__forward_ref__:wt});function je(t){return
t.__forward_ref__=je,t.toString=function(){return ft(this())},t}function Ve(t){return
Ng(t)?t():t}function Ng(t){return"function"==typeof
t&&t.hasOwnProperty(ax)&&t.__forward_ref__===je}class re extends
Error{constructor(i,e){super(function Bd(t,i){return`NG0${Math.abs(t)}${i?":
"+i:""}`}(i,e)),this.code=i}}function
Ie(t){return"string"==typeof t?t:null==
t?"":String(t)}function wn(t){return"function"==typeof
t?t.name||t.toString():"object"==typeof
t&&null!=t&&"function"==typeof
t.type?t.type.name||t.type.toString():Ie(t)}function ql(t,i){const e=i?` in
${i}`:"";throw new re(-201,`No provider for ${wn(t)} found${e}`)}function
Jn(t,i){null==t&&function gt(t,i,e,n){throw new Error(`ASSERTION ERROR:
${t}`+(null==n?"":` [Expected=> ${e} ${n} ${i}
<=Actual]`))}(i,t,null,"!=")}function
X(t){return{token:t.token,providedIn:t.providedIn||null,factory:t.factory,value:void
0}}function ue(t){return{providers:t.providers||[],imports:t.imports||[]}}function
Hd(t){return Vg(t,Gl)||Vg(t,Hg)}function Vg(t,i){return
t.hasOwnProperty(i)?t[i]:null}function Bg(t){return
t&&(t.hasOwnProperty(qd)||t.hasOwnProperty(mx))?t[qd]:null}const
Gl=wt({\u0275prov:wt}),qd=wt({\u0275inj:wt}),Hg=wt({ngInjectableDef:wt}),mx=wt({ngInjectorDef:wt});var
xe=(()=>((xe=xe||{})[xe.Default=0]="Default",xe[xe.Host=1]="Host",xe[xe.Self=2]="Self",xe[xe.SkipSelf=4]="SkipSelf",xe[x
e.Optional=8]="Optional",xe))();let Gd;function Rs(t){const i=Gd;return
Gd=t,i}function qg(t,i,e){const n=Hd(t);return
n&&"root"==n.providedIn?void
0===n.value?n.value=n.factory():n.value:e&xe.Optional?null:void 0!==i?i:void
ql(ft(t),"Injector")}function Ls(t){return{toString:t}.toString()}var
Mi=(()=>((Mi=Mi||{})[Mi.OnPush=0]="OnPush",Mi[Mi.Default=1]="Default",Mi))(),ki=(()=>(function(t){t[t.Emulated=0]="Emulated",t[t.None=2]="None",t[t.ShadowDom=3]="ShadowDom"}(ki||(ki={})),ki))();const
gx="undefined"!=typeof
globalThis&&globalThis,_x="undefined"!=typeof
window&&window,bx="undefined"!=typeof
self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof
WorkerGlobalScope&&self,vt=gx||"undefined"!=typeof
global&&global||_x||bx,Br={},Tt=[],Ul=wt({\u0275cmp:wt}),Ud=wt({\u0275dir:wt}),zd=wt({\u0275pipe:wt}),Gg=wt({\u0275mod:wt}),ps=wt({\u0275fac:wt}),ta=wt({__NG_ELEMENT_ID__:wt});let
vx=0;function z(t){return Ls(()=>{const
e={},n={type:t.type,providersResolver:null,decls:t.decls,vars:t
.vars,factory: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===Mi.OnPush,directiveDefs:null,pipeDefs:null,selectors:t.selectors||Tt,viewQuery:t.viewQuery||null,features:t.features||null,data:t.data||{},encapsulation:t.encapsulation||ki.Emulated,id:"c",styles:t.styles||Tt,_:null,setInput:null,schemas:t.schemas||null,tView:null},s=t.directives,r=t.features,o=t.pipes;return
n.id+=vx++,n.inputs=$g(t.inputs,e),n.outputs=$g(t.outputs),r&&r.forEach(u=>u(n)),n.directiveDefs=s?()=>("function"==typeof
s?s():s).map(Ug):null,n.pipeDefs=o?()=>("function"==typeof
o?o():o).map(zg):null,n})}function Wi(t,i,e){const
n=t.\u0275cmp;n.directiveDefs=()=>i.map(Ug),n.pipeDefs=()=>e.map(zg)}function
Ug(t){return Tn(t)||function Os(t){return t[Ud]||n
ull}(t)}function zg(t){return function ir(t){return t[zd]||null}(t)}const jg={};function
he(t){return Ls(()=>{const
i={type:t.type,bootstrap:t.bootstrap||Tt,declarations:t.declarations||Tt,imports:t.imports||Tt,exports:t.exports||Tt,transitiveCompileScopes:null,schemas:t.schemas||null,id:t.id||null};return
null!=t.id&&(jg[t.id]=t.type),i})}function $g(t,i){if(null==t)return Br;const
e={};for(const n in t)if(t.hasOwnProperty(n)){let
s=t[n],r=s;Array.isArray(s)&&(r=s[1],s=s[0]),e[s]=n,i&&(i[s]=r)}return
e}const le=z;function
An(t){return{type:t.type,name:t.name,factory:null,pure:!1!==t.pure,onDestroy:t.type.prototype.ngOnDestroy||null}}function
Tn(t){return t[Ul]||null}function pi(t,i){const e=t[Gg]||null;if(!e&&!0===i)throw
new Error(`Type ${ft(t)} does not have '\u0275mod' property.`);return e}function
Ki(t){return Array.isArray(t)&&"object"==typeof t[1]}function
Ei(t){return Array.isArray(t)&&!0===t[1]}function Wd(t){return
0!=(8&t.flags)}function Wl(t){return 2==(2&t.flags)}functi
on Kl(t){return 1==(1&t.flags)}function Ri(t){return null!==t.template}function
Sx(t){return 0!=(512&t[2])}function ar(t,i){return
t.hasOwnProperty(ps)?t[ps]:null}class
Mx{constructor(i,e,n){this.previousValue=i,this.currentValue=e,this.firstChange=n}isFirstChange(){return
this.firstChange}}function fn(){return Kg}function Kg(t){return
t.type.prototype.ngOnChanges&&(t.setInput=Ix),kx}function kx(){const
t=Jg(this),i=null==t?void 0:t.current;if(i){const e=t.previous;if(e===Br)t.previous=i;else
for(let n in i)e[n]=i[n];t.current=null,this.ngOnChanges(i)}}function Ix(t,i,e,n){const
s=Jg(t)||function Ex(t,i){return
t[Qg]=i}(t,{previous:Br,current:null}),r=s.current||(s.current={}),o=s.previous,u=this.declaredInputs[e],h=o[u];r[u]=new
Mx(h&&h.currentValue,i,o===Br),t[n]=i}fn.ngInherit=!0;const
Qg="__ngSimpleChanges__";function Jg(t){return t[Qg]||null}let Zd;function
Xd(){return void 0!==Zd?Zd:"undefined"!=typeof document?document:void 0}function
$t(t){return!!t.listen}const Yg={createRe
nderer:(t,i)=>Xd()};function Yt(t){for(;Array.isArray(t);)t=t[0];return t}function
Ql(t,i){return Yt(i[t])}function Zn(t,i){return Yt(i[t.index])}function ep(t,i){return
t.data[i]}function zr(t,i){return t[i]}function Xn(t,i){const e=i[t];return
Ki(e)?e:e[0]}function Zg(t){return 4==(4&t[2])}function tp(t){return
128==(128&t[2])}function As(t,i){return null==i?null:t[i]}function
Xg(t){t[18]=0}function np(t,i){t[5]+=i;let
e=t,n=t[3];for(;null!==n&&(1===i&&1===e[5]||-1===i&&0===e[5]);)n[5]+=i,e=n,n=n[3]}const
Ee={lFrame:l_(null),bindingsEnabled:!0};function t_(){return Ee.bindingsEnabled}function
$(){return Ee.lFrame.lView}function tt(){return Ee.lFrame.tView}function v(t){return
Ee.lFrame.contextLView=t,t[8]}function rn(){let
t=n_();for(;null!==t&&64===t.type;)t=t.parent;return t}function n_(){return
Ee.lFrame.currentTNode}function Qi(t,i){const
e=Ee.lFrame;e.currentTNode=t,e.isParent=i}function ip(){return Ee.lFrame.isParent}function
sp(){Ee.lFrame.isParent=!1}function Fn(){const t=
Ee.lFrame;let
i=t.bindingRootIndex;return-1===i&&(i=t.bindingRootIndex=t.tView.bindingStartIndex),i}function
hs(){return Ee.lFrame.bindingIndex}function jr(){return Ee.lFrame.bindingIndex++}function
ms(t){const i=Ee.lFrame,e=i.bindingIndex;return i.bindingIndex=i.bindingIndex+t,e}function
Wx(t,i){const e=Ee.lFrame;e.bindingIndex=e.bindingRootIndex=t,rp(i)}function
rp(t){Ee.lFrame.currentDirectiveIndex=t}function r_(){return
Ee.lFrame.currentQueryIndex}function ap(t){Ee.lFrame.currentQueryIndex=t}function
Qx(t){const i=t[1];return 2===i.type?i.declTNode:1===i.type?t[6]:null}function
o_(t,i,e){if(e&xe.SkipSelf){let
s=i,r=t;for(;!(s=s.parent,null!==s||e&xe.Host||(s=Qx(r),null===s||(r=r[15],10&s.type))););if(null===s)return!1;i=s,t=r}const
n=Ee.lFrame=a_();return n.currentTNode=i,n.lView=t,!0}function Yl(t){const
i=a_(),e=t[1];Ee.lFrame=i,i.currentTNode=e.firstChild,i.lView=t,i.tView=e,i.contextLView=t,i.bindingIndex=e.bindingStartIndex,i.inI18n=!1}function
a_(){const t=Ee.lFrame,i=null
===t?null:t.child;return null===i?l_(t):i}function l_(t){const
i={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=i),i}function c_(){const t=Ee.lFrame;return
Ee.lFrame=t.parent,t.currentTNode=null,t.lView=null,t}const u_=c_;function Zl(){const
t=c_();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
Nn(){return Ee.lFrame.selectedIndex}function Ps(t){Ee.lFrame.selectedIndex=t}function
Vt(){const t=Ee.lFrame;return ep(t.tView,t.selectedIndex)}function Xl(t,i){for(let
e=i.directiveStart,n=i.directiveEnd;e<n;e++){const
r=t.data[e].type.prototype,{ngAfterContentInit:o,ngAfterContentChecked:u,ngAfterViewInit:h,ngAfte
rViewChecked:b,ngOnDestroy:y}=r;o&&(t.contentHooks||(t.contentHooks=[])).push(-e,o),u&&((t.contentHooks||(t.contentHooks=[])).push(e,u),(t.contentCheckHooks||(t.contentCheckHooks=[])).push(e,u)),h&&(t.viewHooks||(t.viewHooks=[])).push(-e,h),b&&((t.viewHooks||(t.viewHooks=[])).push(e,b),(t.viewCheckHooks||(t.viewCheckHooks=[])).push(e,b)),null!=y&&(t.destroyHooks||(t.destroyHooks=[])).push(e,y)}}function
ec(t,i,e){p_(t,i,3,e)}function tc(t,i,e,n){(3&t[2])===e&&p_(t,i,e,n)}function
lp(t,i){let e=t[2];(3&e)===i&&(e&=2047,e+=1,t[2]=e)}function
p_(t,i,e,n){const r=null!=n?n:-1,o=i.length-1;let u=0;for(let h=void
0!==n?65535&t[18]:0;h<o;h++)if("number"==typeof
i[h+1]){if(u=i[h],null!=n&&u>=n)break}else
i[h]<0&&(t[18]+=65536),(u<r||-1==r)&&(iD(t,e,i,h),t[18]=(4294901760&t[18])+h+2),h++}function
iD(t,i,e,n){const
s=e[n]<0,r=e[n+1],u=t[s?-e[n]:e[n]];if(s){if(t[2]>>11<t[18]>>16&&(3&t[2])===i){t[2]+=2048;try{r.call(u)}finally{}}}else
try{r.call(u)}finally{}}class oa{constructor(i,e,n){this.fac
tory=i,this.resolving=!1,this.canSeeViewProviders=e,this.injectImpl=n}}function
nc(t,i,e){const n=$t(t);let s=0;for(;s<e.length;){const
r=e[s];if("number"==typeof r){if(0!==r)break;s++;const
o=e[s++],u=e[s++],h=e[s++];n?t.setAttribute(i,u,h,o):i.setAttributeNS(o,u,h)}else{const
o=r,u=e[++s];up(o)?n&&t.setProperty(i,o,u):n?t.setAttribute(i,o,u):i.setAttribute(o,u),s++}}return
s}function h_(t){return 3===t||4===t||6===t}function up(t){return
64===t.charCodeAt(0)}function
ic(t,i){if(null!==i&&0!==i.length)if(null===t||0===t.length)t=i.slice();else{let
e=-1;for(let n=0;n<i.length;n++){const s=i[n];"number"==typeof
s?e=s:0===e||m_(t,e,s,null,-1===e||2===e?i[++n]:null)}}return t}function m_(t,i,e,n,s){let
r=0,o=t.length;if(-1===i)o=-1;else for(;r<t.length;){const
u=t[r++];if("number"==typeof
u){if(u===i){o=-1;break}if(u>i){o=r-1;break}}}for(;r<t.length;){const
u=t[r];if("number"==typeof u)break;if(u===e){if(null===n)return
void(null!==s&&(t[r+1]=s));if(n===t[r+1])return void(t[r+2]=s)}r++
,null!==n&&r++,null!==s&&r++}-1!==o&&(t.splice(o,0,i),r=o+1),t.splice(r++,0,e),null!==n&&t.splice(r++,0,n),null!==s&&t.splice(r++,0,s)}function
f_(t){return-1!==t}function $r(t){return 32767&t}function Wr(t,i){let e=function
lD(t){return t>>16}(t),n=i;for(;e>0;)n=n[15],e--;return n}let dp=!0;function
sc(t){const i=dp;return dp=t,i}let cD=0;function la(t,i){const e=hp(t,i);if(-1!==e)return
e;const
n=i[1];n.firstCreatePass&&(t.injectorIndex=i.length,pp(n.data,t),pp(i,null),pp(n.blueprint,null));const
s=rc(t,i),r=t.injectorIndex;if(f_(s)){const o=$r(s),u=Wr(s,i),h=u[1].data;for(let
b=0;b<8;b++)i[r+b]=u[o+b]|h[o+b]}return i[r+8]=s,r}function
pp(t,i){t.push(0,0,0,0,0,0,0,0,i)}function
hp(t,i){return-1===t.injectorIndex||t.parent&&t.parent.injectorIndex===t.injectorIndex||null===i[t.injectorIndex+8]?-1:t.injectorIndex}function
rc(t,i){if(t.parent&&-1!==t.parent.injectorIndex)return t.parent.injectorIndex;let
e=0,n=null,s=i;for(;null!==s;){const r=s[1],o=r.type;if(n=2===o?r.declTNode:1===o
?s[6]:null,null===n)return-1;if(e++,s=s[15],-1!==n.injectorIndex)return
n.injectorIndex|e<<16}return-1}function oc(t,i,e){!function uD(t,i,e){let
n;"string"==typeof
e?n=e.charCodeAt(0)||0:e.hasOwnProperty(ta)&&(n=e[ta]),null==n&&(n=e[ta]=cD++);const
s=255&n;i.data[t+(s>>5)]|=1<<s}(t,i,e)}function
b_(t,i,e){if(e&xe.Optional)return t;ql(i,"NodeInjector")}function
v_(t,i,e,n){if(e&xe.Optional&&void
0===n&&(n=null),0==(e&(xe.Self|xe.Host))){const s=t[9],r=Rs(void 0);try{return
s?s.get(i,n,e&xe.Optional):qg(i,n,e&xe.Optional)}finally{Rs(r)}}return
b_(n,i,e)}function C_(t,i,e,n=xe.Default,s){if(null!==t){const r=function
mD(t){if("string"==typeof t)return t.charCodeAt(0)||0;const
i=t.hasOwnProperty(ta)?t[ta]:void 0;return"number"==typeof
i?i>=0?255&i:pD:i}(e);if("function"==typeof r){if(!o_(i,t,n))return
n&xe.Host?b_(s,e,n):v_(i,e,n,s);try{const o=r(n);if(null!=o||n&xe.Optional)return
o;ql(e)}finally{u_()}}else if("number"==typeof r){let
o=null,u=hp(t,i),h=-1,b=n&xe.Host?i[16][6]:null;for
((-1===u||n&xe.SkipSelf)&&(h=-1===u?rc(t,i):i[u+8],-1!==h&&T_(n,!1)?(o=i[1],u=$r(h),i=Wr(h,i)):u=-1);-1!==u;){const
y=i[1];if(w_(r,u,y.data)){const w=hD(u,i,e,o,n,b);if(w!==y_)return
w}h=i[u+8],-1!==h&&T_(n,i[1].data[u+8]===b)&&w_(r,u,i)?(o=y,u=$r(h),i=Wr(h,i)):u=-1}}}return
v_(i,e,n,s)}const y_={};function pD(){return new Kr(rn(),$())}function
hD(t,i,e,n,s,r){const
o=i[1],u=o.data[t+8],y=ac(u,o,e,null==n?Wl(u)&&dp:n!=o&&0!=(3&u.type),s&xe.Host&&r===u);return
null!==y?ca(i,o,y,u):y_}function ac(t,i,e,n,s){const
r=t.providerIndexes,o=i.data,u=1048575&r,h=t.directiveStart,y=r>>20,M=s?u+y:t.directiveEnd;for(let
E=n?u:u+y;E<M;E++){const
L=o[E];if(E<h&&e===L||E>=h&&L.type===e)return E}if(s){const
E=o[h];if(E&&Ri(E)&&E.type===e)return h}return null}function
ca(t,i,e,n){let s=t[e];const r=i.data;if(function sD(t){return t instanceof oa}(s)){const
o=s;o.resolving&&function lx(t,i){const e=i?`. Dependency path: ${i.join("
> ")} > ${t}`:"";throw new re(-200,`Circular dependency in DI
detected
for ${t}${e}`)}(wn(r[e]));const u=sc(o.canSeeViewProviders);o.resolving=!0;const
h=o.injectImpl?Rs(o.injectImpl):null;o_(t,n,xe.Default);try{s=t[e]=o.factory(void
0,r,t,n),i.firstCreatePass&&e>=n.directiveStart&&function
nD(t,i,e){const{ngOnChanges:n,ngOnInit:s,ngDoCheck:r}=i.type.prototype;if(n){const
o=Kg(i);(e.preOrderHooks||(e.preOrderHooks=[])).push(t,o),(e.preOrderCheckHooks||(e.preOrderCheckHooks=[])).push(t,o)}s&&(e.preOrderHooks||(e.preOrderHooks=[])).push(0-t,s),r&&((e.preOrderHooks||(e.preOrderHooks=[])).push(t,r),(e.preOrderCheckHooks||(e.preOrderCheckHooks=[])).push(t,r))}(e,r[e],i)}finally{null!==h&&Rs(h),sc(u),o.resolving=!1,u_()}}return
s}function w_(t,i,e){return!!(e[i+(t>>5)]&1<<t)}function
T_(t,i){return!(t&xe.Self||t&xe.Host&&i)}class
Kr{constructor(i,e){this._tNode=i,this._lView=e}get(i,e,n){return
C_(this._tNode,this._lView,i,n,e)}}function on(t){return Ls(()=>{const
i=t.prototype.constructor,e=i[ps]||mp(i),n=Object.prototype;let
s=Object.getPrototypeOf(t.prot
otype).constructor;for(;s&&s!==n;){const
r=s[ps]||mp(s);if(r&&r!==e)return r;s=Object.getPrototypeOf(s)}return r=>new
r})}function mp(t){return Ng(t)?()=>{const i=mp(Ve(t));return
i&&i()}:ar(t)}function ua(t){return function
dD(t,i){if("class"===i)return t.classes;if("style"===i)return
t.styles;const e=t.attrs;if(e){const n=e.length;let s=0;for(;s<n;){const
r=e[s];if(h_(r))break;if(0===r)s+=2;else if("number"==typeof
r)for(s++;s<n&&"string"==typeof e[s];)s++;else{if(r===i)return
e[s+1];s+=2}}}return null}(rn(),t)}const Jr="__parameters__";function
Zr(t,i,e){return Ls(()=>{const n=function fp(t){return function(...e){if(t){const
n=t(...e);for(const s in n)this[s]=n[s]}}}(i);function s(...r){if(this instanceof s)return
n.apply(this,r),this;const o=new s(...r);return u.annotation=o,u;function u(h,b,y){const
w=h.hasOwnProperty(Jr)?h[Jr]:Object.defineProperty(h,Jr,{value:[]})[Jr];for(;w.length<=y;)w.push(null);return(w[y]=w[y]||[]).push(o),h}}return
e&&(s.prototype=Object.create(e.protot
ype)),s.prototype.ngMetadataName=t,s.annotationCls=s,s})}class
be{constructor(i,e){this._desc=i,this.ngMetadataName="InjectionToken",this.\u0275prov=void
0,"number"==typeof e?this.__NG_ELEMENT_ID__=e:void
0!==e&&(this.\u0275prov=X({token:this,providedIn:e.providedIn||"root",factory:e.factory}))}toString(){return`InjectionToken
${this._desc}`}}const gD=new be("AnalyzeForEntryComponents");function
fi(t,i){void 0===i&&(i=t);for(let e=0;e<t.length;e++){let
n=t[e];Array.isArray(n)?(i===t&&(i=t.slice(0,e)),fi(n,i)):i!==t&&i.push(n)}return
i}function Ji(t,i){t.forEach(e=>Array.isArray(e)?Ji(e,i):i(e))}function
x_(t,i,e){i>=t.length?t.push(e):t.splice(i,0,e)}function lc(t,i){return
i>=t.length-1?t.pop():t.splice(i,1)[0]}function ha(t,i){const e=[];for(let
n=0;n<t;n++)e.push(i);return e}function ei(t,i,e){let n=Xr(t,i);return
n>=0?t[1|n]=e:(n=~n,function vD(t,i,e,n){let s=t.length;if(s==i)t.push(e,n);else
if(1===s)t.push(n,t[0]),t[0]=e;else{for(s--,t.push(t[s-1],t[s]);s>i;)t[s]=t[s-2],s--;t[
i]=e,t[i+1]=n}}(t,n,i,e)),n}function _p(t,i){const e=Xr(t,i);if(e>=0)return
t[1|e]}function Xr(t,i){return function k_(t,i,e){let
n=0,s=t.length>>e;for(;s!==n;){const
r=n+(s-n>>1),o=t[r<<e];if(i===o)return
r<<e;o>i?s=r:n=r+1}return~(s<<e)}(t,i,1)}const
ma={},vp="__NG_DI_FLAG__",uc="ngTempTokenPath",DD=/\n/gm,E_="__source",kD=wt({provide:String,useValue:wt});let
fa;function R_(t){const i=fa;return fa=t,i}function ID(t,i=xe.Default){if(void
0===fa)throw new re(203,"");return null===fa?qg(t,void
0,i):fa.get(t,i&xe.Optional?null:void 0,i)}function K(t,i=xe.Default){return(function
fx(){return Gd}()||ID)(Ve(t),i)}const O_=K;function Cp(t){const i=[];for(let
e=0;e<t.length;e++){const n=Ve(t[e]);if(Array.isArray(n)){if(0===n.length)throw new
re(900,"");let s,r=xe.Default;for(let o=0;o<n.length;o++){const
u=n[o],h=ED(u);"number"==typeof h?-1===h?s=u.token:r|=h:s=u}i.push(K(s,r))}else
i.push(K(n))}return i}function ga(t,i){return t[vp]=i,t.prototype[vp]=i,t}function
ED(t){return t[vp]}const
dc=ga(Zr("Inject",t=>({token:t})),-1),Ns=ga(Zr("Optional"),8),_a=ga(Zr("SkipSelf"),4);var
ti=(()=>((ti=ti||{})[ti.Important=1]="Important",ti[ti.DashCase=2]="DashCase",ti))();const
H_="__ngContext__";function In(t,i){t[H_]=i}function Tp(t){const i=function
va(t){return t[H_]||null}(t);return i?Array.isArray(i)?i:i.lView:null}function
xp(t,i){return undefined(t,i)}function Ca(t){const i=t[3];return Ei(i)?i[3]:i}function
Dp(t){return W_(t[13])}function Mp(t){return W_(t[4])}function
W_(t){for(;null!==t&&!Ei(t);)t=t[4];return t}function
to(t,i,e,n,s){if(null!=n){let r,o=!1;Ei(n)?r=n:Ki(n)&&(o=!0,n=n[0]);const
u=Yt(n);0===t&&null!==e?null==s?X_(i,e,u):lr(i,e,u,s||null,!0):1===t&&null!==e?lr(i,e,u,s||null,!0):2===t?function
Ap(t,i,e){const n=hc(t,i);n&&function
aM(t,i,e,n){$t(t)?t.removeChild(i,e,n):i.removeChild(e)}(t,n,i,e)}(i,u,o):3===t&&i.destroyNode(u),null!=r&&function
uM(t,i,e,n,s){const r=e[7];r!==Yt(e)&&to(i,t,n,r,s);for(let
u=10;u<e.length;u++){const h=e[u];ya(h[1],h,t,i,n,r)}}
(i,t,r,e,s)}}function Ip(t,i,e){if($t(t))return t.createElement(i,e);{const
n=null!==e?function Ax(t){const
i=t.toLowerCase();return"svg"===i?"http://www.w3.org/2000/...
null===n?t.createElement(i):t.createElementNS(n,i)}}function Q_(t,i){const
e=t[9],n=e.indexOf(i),s=i[3];1024&i[2]&&(i[2]&=-1025,np(s,-1)),e.splice(n,1)}function
Ep(t,i){if(t.length<=10)return;const e=10+i,n=t[e];if(n){const
s=n[17];null!==s&&s!==t&&Q_(s,n),i>0&&(t[e-1][4]=n[4]);const
r=lc(t,10+i);!function
XD(t,i){ya(t,i,i[11],2,null,null),i[0]=null,i[6]=null}(n[1],n);const
o=r[19];null!==o&&o.detachView(r[1]),n[3]=null,n[4]=null,n[2]&=-129}return
n}function J_(t,i){if(!(256&i[2])){const
e=i[11];$t(e)&&e.destroyNode&&ya(t,i,e,3,null,null),function nM(t){let
i=t[13];if(!i)return Rp(t[1],t);for(;i;){let e=null;if(Ki(i))e=i[13];else{const
n=i[10];n&&(e=n)}if(!e){for(;i&&!i[4]&&i!==t;)Ki(i)&&Rp(i[1],i),i=i[3];null===i&&(i=t),Ki(i)&&Rp(i[1],i),e=i&&i[4]}i=
e}}(i)}}function Rp(t,i){if(!(256&i[2])){i[2]&=-129,i[2]|=256,function
oM(t,i){let e;if(null!=t&&null!=(e=t.destroyHooks))for(let
n=0;n<e.length;n+=2){const s=i[e[n]];if(!(s instanceof oa)){const
r=e[n+1];if(Array.isArray(r))for(let o=0;o<r.length;o+=2){const
u=s[r[o]],h=r[o+1];try{h.call(u)}finally{}}else try{r.call(s)}finally{}}}}(t,i),function
rM(t,i){const e=t.cleanup,n=i[7];let s=-1;if(null!==e)for(let
r=0;r<e.length-1;r+=2)if("string"==typeof e[r]){const
o=e[r+1],u="function"==typeof
o?o(i):Yt(i[o]),h=n[s=e[r+2]],b=e[r+3];"boolean"==typeof
b?u.removeEventListener(e[r],h,b):b>=0?n[s=b]():n[s=-b].unsubscribe(),r+=2}else{const
o=n[s=e[r+1]];e[r].call(o)}if(null!==n){for(let
r=s+1;r<n.length;r++)n[r]();i[7]=null}}(t,i),1===i[1].type&&$t(i[11])&&i[11].destroy();const
e=i[17];if(null!==e&&Ei(i[3])){e!==i[3]&&Q_(e,i);const
n=i[19];null!==n&&n.detachView(t)}}}function Y_(t,i,e){return function
Z_(t,i,e){let n=i;for(;null!==n&&40&n.type;)n=(i=n).parent;if(null===n)return
e[0];if(2&n.fl
ags){const
s=t.data[n.directiveStart].encapsulation;if(s===ki.None||s===ki.Emulated)return
null}return Zn(n,e)}(t,i.parent,e)}function
lr(t,i,e,n,s){$t(t)?t.insertBefore(i,e,n,s):i.insertBefore(e,n,s)}function
X_(t,i,e){$t(t)?t.appendChild(i,e):i.appendChild(e)}function
eb(t,i,e,n,s){null!==n?lr(t,i,e,n,s):X_(t,i,e)}function hc(t,i){return
$t(t)?t.parentNode(i):i.parentNode}function tb(t,i,e){return ib(t,i,e)}let
gc,_c,ib=function nb(t,i,e){return 40&t.type?Zn(t,e):null};function mc(t,i,e,n){const
s=Y_(t,n,i),r=i[11],u=tb(n.parent||i[6],n,i);if(null!=s)if(Array.isArray(e))for(let
h=0;h<e.length;h++)eb(r,s,e[h],u,!1);else eb(r,s,e,u,!1)}function
fc(t,i){if(null!==i){const e=i.type;if(3&e)return Zn(i,t);if(4&e)return
Op(-1,t[i.index]);if(8&e){const n=i.child;if(null!==n)return fc(t,n);{const
s=t[i.index];return Ei(s)?Op(-1,s):Yt(s)}}if(32&e)return
xp(i,t)()||Yt(t[i.index]);{const n=rb(t,i);return
null!==n?Array.isArray(n)?n[0]:fc(Ca(t[16]),n):fc(t,i.next)}}return null}function rb(t,i)
{return null!==i?t[16][6].projection[i.projection]:null}function Op(t,i){const
e=10+t+1;if(e<i.length){const n=i[e],s=n[1].firstChild;if(null!==s)return
fc(n,s)}return i[7]}function Pp(t,i,e,n,s,r,o){for(;null!=e;){const
u=n[e.index],h=e.type;if(o&&0===i&&(u&&In(Yt(u),n),e.flags|=4),64!=(64&e.flags))if(8&h)Pp(t,i,e.child,n,s,r,!1),to(i,t,s,u,r);else
if(32&h){const b=xp(e,n);let y;for(;y=b();)to(i,t,s,y,r);to(i,t,s,u,r)}else
16&h?ob(t,i,n,e,s,r):to(i,t,s,u,r);e=o?e.projectionNext:e.next}}function
ya(t,i,e,n,s,r){Pp(e,n,t.firstChild,i,s,r,!1)}function ob(t,i,e,n,s,r){const
o=e[16],h=o[6].projection[n.projection];if(Array.isArray(h))for(let
b=0;b<h.length;b++)to(i,t,s,h[b],r);else Pp(t,i,h,o[3],s,r,!0)}function
ab(t,i,e){$t(t)?t.setAttribute(i,"style",e):i.style.cssText=e}function
Fp(t,i,e){$t(t)?""===e?t.removeAttribute(i,"class"):t.setAttribute(i,"class",e):i.className=e}function
cr(t){var i;return(null===(i=function Np(){if(void
0===gc&&(gc=null,vt.trustedTypes))try{gc=vt.trustedTyp
es.createPolicy("angular",{createHTML:t=>t,createScript:t=>t,createScriptURL:t=>t})}catch(t){}return
gc}())||void 0===i?void 0:i.createHTML(t))||t}function lb(t){var
i;return(null===(i=function Vp(){if(void
0===_c&&(_c=null,vt.trustedTypes))try{_c=vt.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:t=>t,createScript:t=>t,createScriptURL:t=>t})}catch(t){}return
_c}())||void 0===i?void 0:i.createHTML(t))||t}class
db{constructor(i){this.changingThisBreaksApplicationSecurity=i}toString(){return`SafeValue
must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see
https://g.co/ng/security#xss)`}}function Vs(t){return t instanceof
db?t.changingThisBreaksApplicationSecurity:t}function wa(t,i){const e=function
CM(t){return t instanceof
db&&t.getTypeName()||null}(t);if(null!=e&&e!==i){if("ResourceURL"===e&&"URL"===i)return!0;throw
new Error(`Required a safe ${i}, got a ${e} (see
https://g.co/ng/security#xss)`)}return
e===i}class yM{constructor(i){this.inertDo
cumentHelper=i}getInertBodyElement(i){i="<body><remove></remove>"+i;try{const
e=(new window.DOMParser).parseFromString(cr(i),"text/html").body;return
null===e?this.inertDocumentHelper.getInertBodyElement(i):(e.removeChild(e.firstChild),e)}catch(e){return
null}}}class
wM{constructor(i){if(this.defaultDoc=i,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert"),null==this.inertDocument.body){const
e=this.inertDocument.createElement("html");this.inertDocument.appendChild(e);const
n=this.inertDocument.createElement("body");e.appendChild(n)}}getInertBodyElement(i){const
e=this.inertDocument.createElement("template");if("content"in e)return
e.innerHTML=cr(i),e;const n=this.inertDocument.createElement("body");return
n.innerHTML=cr(i),this.defaultDoc.documentMode&&this.stripCustomNsAttrs(n),n}stripCustomNsAttrs(i){const
e=i.attributes;for(let s=e.length-1;0<s;s--){const
o=e.item(s).name;("xmlns:ns1"===o||0===o.indexOf("ns1:"))&&i.removeAttribute(o)}let
n=
i.firstChild;for(;n;)n.nodeType===Node.ELEMENT_NODE&&this.stripCustomNsAttrs(n),n=n.nextSibling}}const
SM=/^(?:(?:https?|mailto|ftp|tel|file|sms):|[^&:/?#]*(?:[/?#]|$))/gi,xM=/^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
bc(t){return(t=String(t)).match(SM)||t.match(xM)?t:"unsafe:"+t}function
hb(t){return(t=String(t)).split(",").map(i=>bc(i.trim())).join(",
")}function Yi(t){const i={};for(const e of t.split(","))i[e]=!0;return
i}function Ta(...t){const i={};for(const e of t)for(const n in
e)e.hasOwnProperty(n)&&(i[n]=!0);return i}const
mb=Yi("area,br,col,hr,img,wbr"),fb=Yi("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),gb=Yi("rp,rt"),Bp=Ta(mb,Ta(fb,Yi("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")),Ta(gb,Yi("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")),Ta(gb,fb)),Hp=Yi("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),qp=Yi("srcset"),_b=Ta(Hp,qp,Yi("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,start,summary,tabindex,target,title,translate,type,usemap,valign,value,vspace,width"),Yi("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-grab
bed,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")),DM=Yi("script,style,template");class
MM{constructor(){this.sanitizedSomething=!1,this.buf=[]}sanitizeChildren(i){let
e=i.firstChild,n=!0;for(;e;)if(e.nodeType===Node.ELEMENT_NODE?n=this.startElement(e):e.nodeType===Node.TEXT_NODE?this.chars(e.nodeValue):this.sanitizedSomething=!0,n&&e.firstChild)e=e.firstChild;else
for(;e;){e.nodeType===Node.ELEMENT_NODE&&this.endElement(e);let
s=this.checkClobberedElement(e,e.nextSibling);if(s){e=s;break}e=this.checkClobberedElement(e,e.parentNode)}return
this.buf.join("")}startElement(i){const e=i.nodeName.toLowerCase();if(!Bp.
hasOwnProperty(e))return
this.sanitizedSomething=!0,!DM.hasOwnProperty(e);this.buf.push("<"),this.buf.push(e);const
n=i.attributes;for(let s=0;s<n.length;s++){const
r=n.item(s),o=r.name,u=o.toLowerCase();if(!_b.hasOwnProperty(u)){this.sanitizedSomething=!0;continue}let
h=r.value;Hp[u]&&(h=bc(h)),qp[u]&&(h=hb(h)),this.buf.push("
",o,'="',bb(h),'"')}return
this.buf.push(">"),!0}endElement(i){const
e=i.nodeName.toLowerCase();Bp.hasOwnProperty(e)&&!mb.hasOwnProperty(e)&&(this.buf.push("</"),this.buf.push(e),this.buf.push(">"))}chars(i){this.buf.push(bb(i))}checkClobberedElement(i,e){if(e&&(i.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_CONTAINED_BY)===Node.DOCUMENT_POSITION_CONTAINED_BY)throw
new Error(`Failed to sanitize html because the element is clobbered:
${i.outerHTML}`);return e}}const kM=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,IM=/([^\#-~
|!])/g;function bb(t){return
t.replace(/&/g,"&").replace(kM,function(i){return"&#"+(1024*(i.charCodeAt(0)-55296)+(i.charCodeAt(1)-56320)+65
536)+";"}).replace(IM,function(i){return"&#"+i.charCodeAt(0)+";"}).replace(/</g,"<").replace(/>/g,">")}let
vc;function Gp(t){return"content"in t&&function RM(t){return
t.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===t.nodeName}(t)?t.content:null}var
Zt=(()=>((Zt=Zt||{})[Zt.NONE=0]="NONE",Zt[Zt.HTML=1]="HTML",Zt[Zt.STYLE=2]="STYLE",Zt[Zt.SCRIPT=3]="SCRIPT",Zt[Zt.URL=4]="URL",Zt[Zt.RESOURCE_URL=5]="RESOURCE_URL",Zt))();function
Bt(t){const i=Sa();return
i?lb(i.sanitize(Zt.HTML,t)||""):wa(t,"HTML")?lb(Vs(t)):function
EM(t,i){let e=null;try{vc=vc||function pb(t){const i=new wM(t);return function
TM(){try{return!!(new
window.DOMParser).parseFromString(cr(""),"text/html")}catch(t){return!1}}()?new
yM(i):i}(t);let n=i?String(i):"";e=vc.getInertBodyElement(n);let
s=5,r=n;do{if(0===s)throw new Error("Failed to sanitize html because the input is
unstable");s--,n=r,r=e.innerHTML,e=vc.getInertBodyElement(n)}while(n!==r);return
cr((new MM).sanitizeChildren(Gp(e)||e))}finally{if(e){const n=Gp(
e)||e;for(;n.firstChild;)n.removeChild(n.firstChild)}}}(Xd(),Ie(t))}function ln(t){const
i=Sa();return
i?i.sanitize(Zt.URL,t)||"":wa(t,"URL")?Vs(t):bc(Ie(t))}function
Sa(){const t=$();return t&&t[12]}function zp(t){return t.ngOriginalError}function
qM(t,...i){t.error(...i)}class xa{constructor(){this._console=console}handleError(i){const
e=this._findOriginalError(i),n=function HM(t){return
t&&t.ngErrorLogger||qM}(i);n(this._console,"ERROR",i),e&&n(this._console,"ORIGINAL
ERROR",e)}_findOriginalError(i){let
e=i&&zp(i);for(;e&&zp(e);)e=zp(e);return e||null}}const
KM=(()=>("undefined"!=typeof
requestAnimationFrame&&requestAnimationFrame||setTimeout).bind(vt))();function
ni(t){return t.ownerDocument.defaultView}function Zi(t){return t instanceof
Function?t():t}function yb(t,i,e){let n=t.length;for(;;){const
s=t.indexOf(i,e);if(-1===s)return s;if(0===s||t.charCodeAt(s-1)<=32){const
r=i.length;if(s+r===n||t.charCodeAt(s+r)<=32)return s}e=s+1}}const
wb="ng-template";function YM(t,i,e){let
n=0;for(;n<t.length;){let
s=t[n++];if(e&&"class"===s){if(s=t[n],-1!==yb(s.toLowerCase(),i,0))return!0}else
if(1===s){for(;n<t.length&&"string"==typeof(s=t[n++]);)if(s.toLowerCase()===i)return!0;return!1}}return!1}function
Tb(t){return 4===t.type&&t.value!==wb}function ZM(t,i,e){return
i===(4!==t.type||e?t.value:wb)}function XM(t,i,e){let n=4;const s=t.attrs||[],r=function
nk(t){for(let i=0;i<t.length;i++)if(h_(t[i]))return i;return t.length}(s);let
o=!1;for(let u=0;u<i.length;u++){const h=i[u];if("number"!=typeof
h){if(!o)if(4&n){if(n=2|1&n,""!==h&&!ZM(t,h,e)||""===h&&1===i.length){if(Li(n))return!1;o=!0}}else{const
b=8&n?h:i[++u];if(8&n&&null!==t.attrs){if(!YM(t.attrs,b,e)){if(Li(n))return!1;o=!0}continue}const
w=ek(8&n?"class":h,s,Tb(t),e);if(-1===w){if(Li(n))return!1;o=!0;continue}if(""!==b){let
M;M=w>r?"":s[w+1].toLowerCase();const
E=8&n?M:null;if(E&&-1!==yb(E,b,0)||2&n&&b!==M){if(Li(n))return!1;o=!0}}}}else{if(!o&&!Li(n)&&!Li(h))return!1;if(o&&Li(h))continue;o=!1,n=h|1&n}}retur
n Li(n)||o}function Li(t){return 0==(1&t)}function
ek(t,i,e,n){if(null===i)return-1;let s=0;if(n||!e){let r=!1;for(;s<i.length;){const
o=i[s];if(o===t)return s;if(3===o||6===o)r=!0;else{if(1===o||2===o){let
u=i[++s];for(;"string"==typeof
u;)u=i[++s];continue}if(4===o)break;if(0===o){s+=4;continue}}s+=r?1:2}return-1}return
function ik(t,i){let e=t.indexOf(4);if(e>-1)for(e++;e<t.length;){const
n=t[e];if("number"==typeof n)return-1;if(n===i)return
e;e++}return-1}(i,t)}function Sb(t,i,e=!1){for(let
n=0;n<i.length;n++)if(XM(t,i[n],e))return!0;return!1}function sk(t,i){e:for(let
e=0;e<i.length;e++){const n=i[e];if(t.length===n.length){for(let
s=0;s<t.length;s++)if(t[s]!==n[s])continue e;return!0}}return!1}function xb(t,i){return
t?":not("+i.trim()+")":i}function rk(t){let
i=t[0],e=1,n=2,s="",r=!1;for(;e<t.length;){let
o=t[e];if("string"==typeof o)if(2&n){const
u=t[++e];s+="["+o+(u.length>0?'="'+u+'"':"")+"]"}else
8&n?s+="."+o:4&n&&(s+="
"+o);else""!==s&&!Li(o)&&(i+=xb(r,s),s=""),n=o,r=r||
!Li(n);e++}return""!==s&&(i+=xb(r,s)),i}const Re={};function
a(t){Db(tt(),$(),Nn()+t,!1)}function Db(t,i,e,n){if(!n)if(3==(3&i[2])){const
r=t.preOrderCheckHooks;null!==r&&ec(i,r,e)}else{const
r=t.preOrderHooks;null!==r&&tc(i,r,0,e)}Ps(e)}function Cc(t,i){return
t<<17|i<<2}function Oi(t){return t>>17&32767}function jp(t){return
2|t}function fs(t){return(131068&t)>>2}function
$p(t,i){return-131069&t|i<<2}function Wp(t){return 1|t}function Nb(t,i){const
e=t.contentQueries;if(null!==e)for(let n=0;n<e.length;n+=2){const
s=e[n],r=e[n+1];if(-1!==r){const o=t.data[r];ap(s),o.contentQueries(2,i[r],r)}}}function
Da(t,i,e,n,s,r,o,u,h,b){const y=i.blueprint.slice();return
y[0]=s,y[2]=140|n,Xg(y),y[3]=y[15]=t,y[8]=e,y[10]=o||t&&t[10],y[11]=u||t&&t[11],y[12]=h||t&&t[12]||null,y[9]=b||t&&t[9]||null,y[6]=r,y[16]=2==i.type?t[16]:y,y}function
io(t,i,e,n,s){let r=t.data[i];if(null===r)r=function nh(t,i,e,n,s){const
r=n_(),o=ip(),h=t.data[i]=function Tk(t,i,e,n,s,r){return{type:e,index:n,insertBeforeIn
dex:null,injectorIndex:i?i.injectorIndex:-1,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,propertyBindings:null,flags:0,providerIndexes:0,value:s,attrs:r,mergedAttrs:null,localNames:null,initialInputs:void
0,inputs:null,outputs:null,tViews:null,next:null,projectionNext:null,child:null,parent:i,projection:null,styles:null,stylesWithoutHost:null,residualStyles:void
0,classes:null,classesWithoutHost:null,residualClasses:void
0,classBindings:0,styleBindings:0}}(0,o?r:r&&r.parent,e,i,n,s);return
null===t.firstChild&&(t.firstChild=h),null!==r&&(o?null==r.child&&null!==h.parent&&(r.child=h):null===r.next&&(r.next=h)),h}(t,i,e,n,s),function
$x(){return Ee.lFrame.inI18n}()&&(r.flags|=64);else
if(64&r.type){r.type=e,r.value=n,r.attrs=s;const o=function ra(){const
t=Ee.lFrame,i=t.currentTNode;return
t.isParent?i:i.parent}();r.injectorIndex=null===o?-1:o.injectorIndex}return
Qi(r,!0),r}function so(t,i,e,n){if(0===e)return-1;const s=i.length;for(let
r=0;r<e;r++)i.push(n),t.blueprint.
push(n),t.data.push(null);return s}function Ma(t,i,e){Yl(i);try{const
n=t.viewQuery;null!==n&&dh(1,n,e);const
s=t.template;null!==s&&Vb(t,i,s,1,e),t.firstCreatePass&&(t.firstCreatePass=!1),t.staticContentQueries&&Nb(t,i),t.staticViewQueries&&dh(2,t.viewQuery,e);const
r=t.components;null!==r&&function Ck(t,i){for(let
e=0;e<i.length;e++)qk(t,i[e])}(i,r)}catch(n){throw
t.firstCreatePass&&(t.incompleteFirstPass=!0,t.firstCreatePass=!1),n}finally{i[2]&=-5,Zl()}}function
ro(t,i,e,n){const s=i[2];if(256!=(256&s)){Yl(i);try{Xg(i),function i_(t){return
Ee.lFrame.bindingIndex=t}(t.bindingStartIndex),null!==e&&Vb(t,i,e,2,n);const
o=3==(3&s);if(o){const
b=t.preOrderCheckHooks;null!==b&&ec(i,b,null)}else{const
b=t.preOrderHooks;null!==b&&tc(i,b,0,null),lp(i,0)}if(function Bk(t){for(let
i=Dp(t);null!==i;i=Mp(i)){if(!i[2])continue;const e=i[9];for(let
n=0;n<e.length;n++){const
s=e[n],r=s[3];0==(1024&s[2])&&np(r,1),s[2]|=1024}}}(i),function Vk(t){for(let
i=Dp(t);null!==i;i=Mp(i))for(let e=10;e<i.le
ngth;e++){const
n=i[e],s=n[1];tp(n)&&ro(s,n,s.template,n[8])}}(i),null!==t.contentQueries&&Nb(t,i),o){const
b=t.contentCheckHooks;null!==b&&ec(i,b)}else{const
b=t.contentHooks;null!==b&&tc(i,b,1),lp(i,1)}!function bk(t,i){const
e=t.hostBindingOpCodes;if(null!==e)try{for(let n=0;n<e.length;n++){const
s=e[n];if(s<0)Ps(~s);else{const
r=s,o=e[++n],u=e[++n];Wx(o,r),u(2,i[r])}}}finally{Ps(-1)}}(t,i);const
u=t.components;null!==u&&function vk(t,i){for(let
e=0;e<i.length;e++)Hk(t,i[e])}(i,u);const
h=t.viewQuery;if(null!==h&&dh(2,h,n),o){const
b=t.viewCheckHooks;null!==b&&ec(i,b)}else{const
b=t.viewHooks;null!==b&&tc(i,b,2),lp(i,2)}!0===t.firstUpdatePass&&(t.firstUpdatePass=!1),i[2]&=-73,1024&i[2]&&(i[2]&=-1025,np(i[3],-1))}finally{Zl()}}}function
yk(t,i,e,n){const
s=i[10],o=Zg(i);try{!o&&s.begin&&s.begin(),o&&Ma(t,i,n),ro(t,i,e,n)}finally{!o&&s.end&&s.end()}}function
Vb(t,i,e,n,s){const
r=Nn(),o=2&n;try{Ps(-1),o&&i.length>20&&Db(t,i,20,!1),e(n,s)}finally{Ps(r)}}function
Bb(t,i,e){if(Wd(i)){
const s=i.directiveEnd;for(let r=i.directiveStart;r<s;r++){const
o=t.data[r];o.contentQueries&&o.contentQueries(1,e[r],r)}}}function
ih(t,i,e){!t_()||(function Ek(t,i,e,n){const
s=e.directiveStart,r=e.directiveEnd;t.firstCreatePass||la(e,i),In(n,i);const
o=e.initialInputs;for(let u=s;u<r;u++){const
h=t.data[u],b=Ri(h);b&&Pk(i,e,h);const
y=ca(i,t,u,e);In(y,i),null!==o&&Fk(0,u-s,y,h,0,o),b&&(Xn(e.index,i)[8]=y)}}(t,i,e,Zn(e,i)),128==(128&e.flags)&&function
Rk(t,i,e){const n=e.directiveStart,s=e.directiveEnd,o=e.index,u=function Kx(){return
Ee.lFrame.currentDirectiveIndex}();try{Ps(o);for(let h=n;h<s;h++){const
b=t.data[h],y=i[h];rp(h),(null!==b.hostBindings||0!==b.hostVars||null!==b.hostAttrs)&&Wb(b,y)}}finally{Ps(-1),rp(u)}}(t,i,e))}function
sh(t,i,e=Zn){const n=i.localNames;if(null!==n){let s=i.index+1;for(let
r=0;r<n.length;r+=2){const o=n[r+1],u=-1===o?e(i,t):t[o];t[s++]=u}}}function
Hb(t){const i=t.tView;return
null===i||i.incompleteFirstPass?t.tView=Tc(1,null,t.template,t.decls,
t.vars,t.directiveDefs,t.pipeDefs,t.viewQuery,t.schemas,t.consts):i}function
Tc(t,i,e,n,s,r,o,u,h,b){const y=20+n,w=y+s,M=function wk(t,i){const e=[];for(let
n=0;n<i;n++)e.push(n<t?null:Re);return e}(y,w),E="function"==typeof
b?b():b;return
M[1]={type:t,blueprint:M,template:e,queries:null,viewQuery:u,declTNode:i,data:M.slice().fill(null,y),bindingStartIndex:y,expandoStartIndex:w,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
r?r():r,pipeRegistry:"function"==typeof
o?o():o,firstChild:null,schemas:h,consts:E,incompleteFirstPass:!1}}function
Ub(t,i,e,n){const
s=Xb(i);null===e?s.push(n):(s.push(e),t.firstCreatePass&&ev(t).push(n,s.length-1))}function
zb(t,i,e){for(let n in t)if(t.hasOwnProperty(n)){const s=t[
n];(e=null===e?{}:e).hasOwnProperty(n)?e[n].push(i,s):e[n]=[i,s]}return e}function
ii(t,i,e,n,s,r,o,u){const h=Zn(i,e);let
y,b=i.inputs;!u&&null!=b&&(y=b[n])?(iv(t,e,y,n,s),Wl(i)&&function
Dk(t,i){const
e=Xn(i,t);16&e[2]||(e[2]|=64)}(e,i.index)):3&i.type&&(n=function
xk(t){return"class"===t?"className":"for"===t?"htmlFor":"formaction"===t?"formAction":"innerHtml"===t?"innerHTML":"readonly"===t?"readOnly":"tabindex"===t?"tabIndex":t}(n),s=null!=o?o(s,i.value||"",n):s,$t(r)?r.setProperty(h,n,s):up(n)||(h.setProperty?h.setProperty(n,s):h[n]=s))}function
rh(t,i,e,n){let s=!1;if(t_()){const r=function Lk(t,i,e){const n=t.directiveRegistry;let
s=null;if(n)for(let r=0;r<n.length;r++){const
o=n[r];Sb(e,o.selectors,!1)&&(s||(s=[]),oc(la(e,i),t,o.type),Ri(o)?(Kb(t,e),s.unshift(o)):s.push(o))}return
s}(t,i,e),o=null===n?null:{"":-1};if(null!==r){s=!0,Qb(e,t.data.length,r.length);for(let
y=0;y<r.length;y++){const
w=r[y];w.providersResolver&&w.providersResolver(w)}let
u=!1,h=!1,b=so(t,i,r.length
,null);for(let y=0;y<r.length;y++){const
w=r[y];e.mergedAttrs=ic(e.mergedAttrs,w.hostAttrs),Jb(t,e,i,b,w),Ak(b,w,o),null!==w.contentQueries&&(e.flags|=8),(null!==w.hostBindings||null!==w.hostAttrs||0!==w.hostVars)&&(e.flags|=128);const
M=w.type.prototype;!u&&(M.ngOnChanges||M.ngOnInit||M.ngDoCheck)&&((t.preOrderHooks||(t.preOrderHooks=[])).push(e.index),u=!0),!h&&(M.ngOnChanges||M.ngDoCheck)&&((t.preOrderCheckHooks||(t.preOrderCheckHooks=[])).push(e.index),h=!0),b++}!function
Sk(t,i){const n=i.directiveEnd,s=t.data,r=i.attrs,o=[];let u=null,h=null;for(let
b=i.directiveStart;b<n;b++){const
y=s[b],w=y.inputs,M=null===r||Tb(i)?null:Nk(w,r);o.push(M),u=zb(w,b,u),h=zb(y.outputs,b,h)}null!==u&&(u.hasOwnProperty("class")&&(i.flags|=16),u.hasOwnProperty("style")&&(i.flags|=32)),i.initialInputs=o,i.inputs=u,i.outputs=h}(t,e)}o&&function
Ok(t,i,e){if(i){const n=t.localNames=[];for(let s=0;s<i.length;s+=2){const
r=e[i[s+1]];if(null==r)throw new re(-301,!1);n.push(i[s],r)}}}(e,n,o)}return e.mer
gedAttrs=ic(e.mergedAttrs,e.attrs),s}function $b(t,i,e,n,s,r){const
o=r.hostBindings;if(o){let
u=t.hostBindingOpCodes;null===u&&(u=t.hostBindingOpCodes=[]);const
h=~i.index;(function Ik(t){let i=t.length;for(;i>0;){const
e=t[--i];if("number"==typeof e&&e<0)return e}return
0})(u)!=h&&u.push(h),u.push(n,s,o)}}function
Wb(t,i){null!==t.hostBindings&&t.hostBindings(1,i)}function
Kb(t,i){i.flags|=2,(t.components||(t.components=[])).push(i.index)}function
Ak(t,i,e){if(e){if(i.exportAs)for(let
n=0;n<i.exportAs.length;n++)e[i.exportAs[n]]=t;Ri(i)&&(e[""]=t)}}function
Qb(t,i,e){t.flags|=1,t.directiveStart=i,t.directiveEnd=i+e,t.providerIndexes=i}function
Jb(t,i,e,n,s){t.data[n]=s;const r=s.factory||(s.factory=ar(s.type)),o=new
oa(r,Ri(s),null);t.blueprint[n]=o,e[n]=o,$b(t,i,0,n,so(t,e,s.hostVars,Re),s)}function
Pk(t,i,e){const
n=Zn(i,t),s=Hb(e),r=t[10],o=Sc(t,Da(t,s,null,e.onPush?64:16,n,i,r,r.createRenderer(n,e),null,null));t[i.index]=o}function
Xi(t,i,e,n,s,r){const o=Zn(t,i);!function oh(
t,i,e,n,s,r,o){if(null==r)$t(t)?t.removeAttribute(i,s,e):i.removeAttribute(s);else{const
u=null==o?Ie(r):o(r,n||"",s);$t(t)?t.setAttribute(i,s,u,e):e?i.setAttributeNS(e,s,u):i.setAttribute(s,u)}}(i[11],o,r,t.value,e,n,s)}function
Fk(t,i,e,n,s,r){const o=r[i];if(null!==o){const u=n.setInput;for(let
h=0;h<o.length;){const
b=o[h++],y=o[h++],w=o[h++];null!==u?n.setInput(e,w,b,y):e[y]=w}}}function Nk(t,i){let
e=null,n=0;for(;n<i.length;){const
s=i[n];if(0!==s)if(5!==s){if("number"==typeof
s)break;t.hasOwnProperty(s)&&(null===e&&(e=[]),e.push(s,t[s],i[n+1])),n+=2}else
n+=2;else n+=4}return e}function Yb(t,i,e,n){return new
Array(t,!0,!1,i,null,0,n,e,null,null)}function Hk(t,i){const e=Xn(i,t);if(tp(e)){const
n=e[1];80&e[2]?ro(n,e,n.template,e[8]):e[5]>0&&ah(e)}}function
ah(t){for(let n=Dp(t);null!==n;n=Mp(n))for(let s=10;s<n.length;s++){const
r=n[s];if(1024&r[2]){const o=r[1];ro(o,r,o.template,r[8])}else
r[5]>0&&ah(r)}const e=t[1].components;if(null!==e)for(let
n=0;n<e.length;n++){const s
=Xn(e[n],t);tp(s)&&s[5]>0&&ah(s)}}function qk(t,i){const
e=Xn(i,t),n=e[1];(function Gk(t,i){for(let
e=i.length;e<t.blueprint.length;e++)i.push(t.blueprint[e])})(n,e),Ma(n,e,e[8])}function
Sc(t,i){return t[13]?t[14][4]=i:t[13]=i,t[14]=i,i}function lh(t){for(;t;){t[2]|=64;const
i=Ca(t);if(Sx(t)&&!i)return t;t=i}return null}function Zb(t){!function
ch(t){for(let i=0;i<t.components.length;i++){const
e=t.components[i],n=Tp(e),s=n[1];yk(s,n,s.template,e)}}(t[8])}function
dh(t,i,e){ap(0),i(t,e)}const zk=(()=>Promise.resolve(null))();function Xb(t){return
t[7]||(t[7]=[])}function ev(t){return t.cleanup||(t.cleanup=[])}function nv(t,i){const
e=t[9],n=e?e.get(xa,null):null;n&&n.handleError(i)}function iv(t,i,e,n,s){for(let
r=0;r<e.length;){const
o=e[r++],u=e[r++],h=i[o],b=t.data[o];null!==b.setInput?b.setInput(h,s,n,u):h[u]=s}}function
gs(t,i,e){const n=Ql(i,t);!function
K_(t,i,e){$t(t)?t.setValue(i,e):i.textContent=e}(t[11],n,e)}function xc(t,i,e){let
n=e?t.styles:null,s=e?t.classes:null,r=0
;if(null!==i)for(let o=0;o<i.length;o++){const u=i[o];"number"==typeof
u?r=u:1==r?s=Vd(s,u):2==r&&(n=Vd(n,u+":
"+i[++o]+";"))}e?t.styles=n:t.stylesWithoutHost=n,e?t.classes=s:t.classesWithoutHost=s}const
ph=new be("INJECTOR",-1);class sv{get(i,e=ma){if(e===ma){const n=new
Error(`NullInjectorError: No provider for ${ft(i)}!`);throw
n.name="NullInjectorError",n}return e}}const hh=new be("Set Injector
scope."),ka={},Wk={};let mh;function rv(){return void 0===mh&&(mh=new
sv),mh}function ov(t,i=null,e=null,n){const s=av(t,i,e,n);return
s._resolveInjectorDefTypes(),s}function av(t,i=null,e=null,n){return new
Kk(t,e,i||rv(),n)}class Kk{constructor(i,e,n,s=null){this.parent=n,this.records=new
Map,this.injectorDefTypes=new Set,this.onDestroy=new Set,this._destroyed=!1;const
r=[];e&&Ji(e,u=>this.processProvider(u,i,e)),Ji([i],u=>this.processInjectorType(u,[],r)),this.records.set(ph,oo(void
0,this));const
o=this.records.get(hh);this.scope=null!=o?o.value:null,this.source=s||("object"==typeof
i
?null:ft(i))}get destroyed(){return
this._destroyed}destroy(){this.assertNotDestroyed(),this._destroyed=!0;try{this.onDestroy.forEach(i=>i.ngOnDestroy())}finally{this.records.clear(),this.onDestroy.clear(),this.injectorDefTypes.clear()}}get(i,e=ma,n=xe.Default){this.assertNotDestroyed();const
s=R_(this),r=Rs(void 0);try{if(!(n&xe.SkipSelf)){let u=this.records.get(i);if(void
0===u){const h=function nI(t){return"function"==typeof
t||"object"==typeof t&&t instanceof
be}(i)&&Hd(i);u=h&&this.injectableDefInScope(h)?oo(fh(i),ka):null,this.records.set(i,u)}if(null!=u)return
this.hydrate(i,u)}return(n&xe.Self?rv():this.parent).get(i,e=n&xe.Optional&&e===ma?null:e)}catch(o){if("NullInjectorError"===o.name){if((o[uc]=o[uc]||[]).unshift(ft(i)),s)throw
o;return function RD(t,i,e,n){const s=t[uc];throw
i[E_]&&s.unshift(i[E_]),t.message=function
LD(t,i,e,n=null){t=t&&"\n"===t.charAt(0)&&"\u0275"==t.charAt(1)?t.substr(2):t;let
s=ft(i);if(Array.isArray(i))s=i.map(ft).join(" -> ");else
if("object"==
typeof i){let r=[];for(let o in i)if(i.hasOwnProperty(o)){let
u=i[o];r.push(o+":"+("string"==typeof
u?JSON.stringify(u):ft(u)))}s=`{${r.join(",
")}}`}return`${e}${n?"("+n+")":""}[${s}]:
${t.replace(DD,"\n
")}`}("\n"+t.message,s,e,n),t.ngTokenPath=s,t[uc]=null,t}(o,i,"R3InjectorError",this.source)}throw
o}finally{Rs(r),R_(s)}}_resolveInjectorDefTypes(){this.injectorDefTypes.forEach(i=>this.get(i))}toString(){const
i=[];return this.records.forEach((n,s)=>i.push(ft(s))),`R3Injector[${i.join(",
")}]`}assertNotDestroyed(){if(this._destroyed)throw new
re(205,!1)}processInjectorType(i,e,n){if(!(i=Ve(i)))return!1;let s=Bg(i);const
r=null==s&&i.ngModule||void 0,o=void 0===r?i:r,u=-1!==n.indexOf(o);if(void
0!==r&&(s=Bg(r)),null==s)return!1;if(null!=s.imports&&!u){let
y;n.push(o);try{Ji(s.imports,w=>{this.processInjectorType(w,e,n)&&(void
0===y&&(y=[]),y.push(w))})}finally{}if(void 0!==y)for(let
w=0;w<y.length;w++){const{ngModule:M,providers:E}=y[w];Ji(E,L=>this.processProvider(L,M,E||Tt))}}t
his.injectorDefTypes.add(o);const h=ar(o)||(()=>new
o);this.records.set(o,oo(h,ka));const b=s.providers;if(null!=b&&!u){const
y=i;Ji(b,w=>this.processProvider(w,y,b))}return void 0!==r&&void
0!==i.providers}processProvider(i,e,n){let s=ao(i=Ve(i))?i:Ve(i&&i.provide);const
r=function Jk(t,i,e){return cv(t)?oo(void
0,t.useValue):oo(lv(t),ka)}(i);if(ao(i)||!0!==i.multi)this.records.get(s);else{let
o=this.records.get(s);o||(o=oo(void
0,ka,!0),o.factory=()=>Cp(o.multi),this.records.set(s,o)),s=i,o.multi.push(i)}this.records.set(s,r)}hydrate(i,e){return
e.value===ka&&(e.value=Wk,e.value=e.factory()),"object"==typeof
e.value&&e.value&&function tI(t){return
null!==t&&"object"==typeof t&&"function"==typeof
t.ngOnDestroy}(e.value)&&this.onDestroy.add(e.value),e.value}injectableDefInScope(i){if(!i.providedIn)return!1;const
e=Ve(i.providedIn);return"string"==typeof
e?"any"===e||e===this.scope:this.injectorDefTypes.has(e)}}function fh(t){const
i=Hd(t),e=null!==i?i.factory:ar(t);if(null!==e)retur
n e;if(t instanceof be)throw new re(204,!1);if(t instanceof Function)return function
Qk(t){const i=t.length;if(i>0)throw ha(i,"?"),new re(204,!1);const e=function
px(t){const i=t&&(t[Gl]||t[Hg]);if(i){const e=function
hx(t){if(t.hasOwnProperty("name"))return t.name;const
i=(""+t).match(/^function\s*([^\s(]+)/);return
null===i?"":i[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.`),i}return null}(t);return
null!==e?()=>e.factory(t):()=>new t}(t);throw new re(204,!1)}function lv(t,i,e){let
n;if(ao(t)){const s=Ve(t);return ar(s)||fh(s)}if(cv(t))n=()=>Ve(t.useValue);else
if(function
Zk(t){return!(!t||!t.useFactory)}(t))n=()=>t.useFactory(...Cp(t.deps||[]));else
if(function Yk(t){return!(!t||!t.useExisting)}(t))n=()=>K(Ve(t.useExisting));else{const
s=Ve(t&&(t.useClass||t.provide));if(!fu
nction eI(t){return!!t.deps}(t))return ar(s)||fh(s);n=()=>new s(...Cp(t.deps))}return
n}function oo(t,i,e=!1){return{factory:t,value:i,multi:e?[]:void 0}}function cv(t){return
null!==t&&"object"==typeof t&&kD in t}function
ao(t){return"function"==typeof t}let En=(()=>{class t{static create(e,n){var
s;if(Array.isArray(e))return ov({name:""},n,e,"");{const
r=null!==(s=e.name)&&void 0!==s?s:"";return
ov({name:r},e.parent,e.providers,r)}}}return t.THROW_IF_NOT_FOUND=ma,t.NULL=new
sv,t.\u0275prov=X({token:t,providedIn:"any",factory:()=>K(ph)}),t.__NG_ELEMENT_ID__=-1,t})();function
uI(t,i){Xl(Tp(t)[1],rn())}function ut(t){let i=function yv(t){return
Object.getPrototypeOf(t.prototype).constructor}(t.type),e=!0;const n=[t];for(;i;){let
s;if(Ri(t))s=i.\u0275cmp||i.\u0275dir;else{if(i.\u0275cmp)throw new
re(903,"");s=i.\u0275dir}if(s){if(e){n.push(s);const
o=t;o.inputs=bh(t.inputs),o.declaredInputs=bh(t.declaredInputs),o.outputs=bh(t.outputs);const
u=s.hostBindings;u&&mI(t,u);const h=s.viewQu
ery,b=s.contentQueries;if(h&&pI(t,h),b&&hI(t,b),Nd(t.inputs,s.inputs),Nd(t.declaredInputs,s.declaredInputs),Nd(t.outputs,s.outputs),Ri(s)&&s.data.animation){const
y=t.data;y.animation=(y.animation||[]).concat(s.data.animation)}}const
r=s.features;if(r)for(let o=0;o<r.length;o++){const
u=r[o];u&&u.ngInherit&&u(t),u===ut&&(e=!1)}}i=Object.getPrototypeOf(i)}!function
dI(t){let i=0,e=null;for(let n=t.length-1;n>=0;n--){const
s=t[n];s.hostVars=i+=s.hostVars,s.hostAttrs=ic(s.hostAttrs,e=ic(e,s.hostAttrs))}}(n)}function
bh(t){return t===Br?{}:t===Tt?[]:t}function pI(t,i){const
e=t.viewQuery;t.viewQuery=e?(n,s)=>{i(n,s),e(n,s)}:i}function hI(t,i){const
e=t.contentQueries;t.contentQueries=e?(n,s,r)=>{i(n,s,r),e(n,s,r)}:i}function
mI(t,i){const e=t.hostBindings;t.hostBindings=e?(n,s)=>{i(n,s),e(n,s)}:i}let
Dc=null;function lo(){if(!Dc){const
t=vt.Symbol;if(t&&t.iterator)Dc=t.iterator;else{const
i=Object.getOwnPropertyNames(Map.prototype);for(let e=0;e<i.length;++e){const
n=i[e];"entries"!==n&
&"size"!==n&&Map.prototype[n]===Map.prototype.entries&&(Dc=n)}}}return
Dc}function Ia(t){return!!vh(t)&&(Array.isArray(t)||!(t instanceof
Map)&&lo()in t)}function vh(t){return
null!==t&&("function"==typeof t||"object"==typeof t)}function
es(t,i,e){return t[i]=e}function Ea(t,i){return t[i]}function
Rn(t,i,e){return!Object.is(t[i],e)&&(t[i]=e,!0)}function ur(t,i,e,n){const
s=Rn(t,i,e);return Rn(t,i+1,n)||s}function Mc(t,i,e,n,s){const r=ur(t,i,e,n);return
Rn(t,i+2,s)||r}function gi(t,i,e,n,s,r){const o=ur(t,i,e,n);return
ur(t,i+2,s,r)||o}function ie(t,i,e,n){const s=$();return
Rn(s,jr(),i)&&(tt(),Xi(Vt(),s,t,i,e,n)),ie}function uo(t,i,e,n){return
Rn(t,jr(),e)?i+Ie(e)+n:Re}function po(t,i,e,n,s,r){const u=ur(t,hs(),e,s);return
ms(2),u?i+Ie(e)+n+Ie(s)+r:Re}function _(t,i,e,n,s,r,o,u){const
h=$(),b=tt(),y=t+20,w=b.firstCreatePass?function yI(t,i,e,n,s,r,o,u,h){const
b=i.consts,y=io(i,t,4,o||null,As(b,u));rh(i,e,y,As(b,h)),Xl(i,y);const
w=y.tViews=Tc(2,y,n,s,r,i.directiveRegistry,i.pipeR
egistry,null,i.schemas,b);return
null!==i.queries&&(i.queries.template(i,y),w.queries=i.queries.embeddedTView(y)),y}(y,b,h,i,e,n,s,r,o):b.data[y];Qi(w,!1);const
M=h[11].createComment("");mc(b,h,M,w),In(M,h),Sc(h,h[y]=Yb(M,h,M,w)),Kl(w)&&ih(b,h,w),null!=o&&sh(h,w,u)}function
F(t){return zr(function jx(){return Ee.lFrame.contextLView}(),20+t)}function
D(t,i=xe.Default){const e=$();return null===e?K(t,i):C_(rn(),e,Ve(t),i)}function
Sh(){throw new Error("invalid")}function p(t,i,e){const n=$();return
Rn(n,jr(),i)&&ii(tt(),Vt(),n,t,i,n[11],e,!1),p}function xh(t,i,e,n,s){const
o=s?"class":"style";iv(t,e,i.inputs[o],o,n)}function l(t,i,e,n){const
s=$(),r=tt(),o=20+t,u=s[11],h=s[o]=Ip(u,i,function tD(){return
Ee.lFrame.currentNamespace}()),b=r.firstCreatePass?function GI(t,i,e,n,s,r,o){const
u=i.consts,b=io(i,t,2,s,As(u,r));return
rh(i,e,b,As(u,o)),null!==b.attrs&&xc(b,b.attrs,!1),null!==b.mergedAttrs&&xc(b,b.mergedAttrs,!0),null!==i.queries&&i.queries.elementStart(i,b),b}(o,r,s,0,i,e,n):r.
data[o];Qi(b,!0);const y=b.mergedAttrs;null!==y&&nc(u,h,y);const
w=b.classes;null!==w&&Fp(u,h,w);const M=b.styles;return
null!==M&&ab(u,h,M),64!=(64&b.flags)&&mc(r,s,h,b),0===function
Hx(){return Ee.lFrame.elementDepthCount}()&&In(h,s),function
qx(){Ee.lFrame.elementDepthCount++}(),Kl(b)&&(ih(r,s,b),Bb(r,b,s)),null!==n&&sh(s,b),l}function
c(){let t=rn();ip()?sp():(t=t.parent,Qi(t,!1));const i=t;!function
Gx(){Ee.lFrame.elementDepthCount--}();const e=tt();return
e.firstCreatePass&&(Xl(e,t),Wd(t)&&e.queries.elementEnd(t)),null!=i.classesWithoutHost&&function
oD(t){return
0!=(16&t.flags)}(i)&&xh(e,i,$(),i.classesWithoutHost,!0),null!=i.stylesWithoutHost&&function
aD(t){return
0!=(32&t.flags)}(i)&&xh(e,i,$(),i.stylesWithoutHost,!1),c}function
k(t,i,e,n){return l(t,i,e,n),c(),k}function de(t,i,e){const
n=$(),s=tt(),r=t+20,o=s.firstCreatePass?function UI(t,i,e,n,s){const
r=i.consts,o=As(r,n),u=io(i,t,8,"ng-container",o);return
null!==o&&xc(u,o,!0),rh(i,e,u,As(r,s)),null!==i.queries&&i.que
ries.elementStart(i,u),u}(r,s,n,i,e):s.data[r];Qi(o,!0);const
u=n[r]=n[11].createComment("");return
mc(s,n,u,o),In(u,n),Kl(o)&&(ih(s,n,o),Bb(s,o,n)),null!=e&&sh(n,o),de}function
pe(){let t=rn();const i=tt();return
ip()?sp():(t=t.parent,Qi(t,!1)),i.firstCreatePass&&(Xl(i,t),Wd(t)&&i.queries.elementEnd(t)),pe}function
Y(t,i,e){return de(t,i,e),pe(),Y}function I(){return $()}function
Ra(t){return!!t&&"function"==typeof t.then}function
qv(t){return!!t&&"function"==typeof t.subscribe}const Dh=qv;function
C(t,i,e,n){const s=$(),r=tt(),o=rn();return function Uv(t,i,e,n,s,r,o,u){const
h=Kl(n),y=t.firstCreatePass&&ev(t),w=i[8],M=Xb(i);let
E=!0;if(3&n.type||u){const
N=Zn(n,i),G=u?u(N):N,P=M.length,J=u?se=>u(Yt(se[n.index])):n.index;if($t(e)){let
se=null;if(!u&&h&&(se=function zI(t,i,e,n){const
s=t.cleanup;if(null!=s)for(let r=0;r<s.length-1;r+=2){const
o=s[r];if(o===e&&s[r+1]===n){const u=i[7],h=s[r+2];return
u.length>h?u[h]:null}"string"==typeof o&&(r+=2)}return
null}(t,i,s,n.index)),null!==
se)(se.__ngLastListenerFn__||se).__ngNextListenerFn__=r,se.__ngLastListenerFn__=r,E=!1;else{r=Mh(n,i,w,r,!1);const
ke=e.listen(G,s,r);M.push(r,ke),y&&y.push(s,J,P,P+1)}}else
r=Mh(n,i,w,r,!0),G.addEventListener(s,r,o),M.push(r),y&&y.push(s,J,P,o)}else
r=Mh(n,i,w,r,!1);const L=n.outputs;let O;if(E&&null!==L&&(O=L[s])){const
N=O.length;if(N)for(let G=0;G<N;G+=2){const
mt=i[O[G]][O[G+1]].subscribe(r),Ct=M.length;M.push(r,mt),y&&y.push(s,n.index,Ct,-(Ct+1))}}}(r,s,s[11],o,t,i,!!e,n),C}function
zv(t,i,e,n){try{return!1!==e(n)}catch(s){return nv(t,s),!1}}function Mh(t,i,e,n,s){return
function r(o){if(o===Function)return n;const
u=2&t.flags?Xn(t.index,i):i;0==(32&i[2])&&lh(u);let
h=zv(i,0,n,o),b=r.__ngNextListenerFn__;for(;b;)h=zv(i,0,b,o)&&h,b=b.__ngNextListenerFn__;return
s&&!1===h&&(o.preventDefault(),o.returnValue=!1),h}}function d(t=1){return
function Jx(t){return(Ee.lFrame.contextLView=function
Yx(t,i){for(;t>0;)i=i[15],t--;return i}(t,Ee.lFrame.contextLView))[8]}(t)}function
jI(t,i){
let e=null;const n=function tk(t){const i=t.attrs;if(null!=i){const
e=i.indexOf(5);if(0==(1&e))return i[e+1]}return null}(t);for(let
s=0;s<i.length;s++){const
r=i[s];if("*"!==r){if(null===n?Sb(t,r,!0):sk(n,r))return s}else e=s}return
e}function Sn(t){const i=$()[16][6];if(!i.projection){const
n=i.projection=ha(t?t.length:1,null),s=n.slice();let r=i.child;for(;null!==r;){const
o=t?jI(r,t):0;null!==o&&(s[o]?s[o].projectionNext=r:n[o]=r,s[o]=r),r=r.next}}}function
St(t,i=0,e){const
n=$(),s=tt(),r=io(s,20+t,16,null,e||null);null===r.projection&&(r.projection=i),sp(),64!=(64&r.flags)&&function
cM(t,i,e){ob(i[11],0,i,e,Y_(t,e,i),tb(e.parent||i[6],e,i))}(s,n,r)}function
x(t,i,e){return Bn(t,"",i,"",e),x}function Bn(t,i,e,n,s){const
r=$(),o=uo(r,i,e,n);return o!==Re&&ii(tt(),Vt(),r,t,o,r[11],s,!1),Bn}function
La(t,i,e,n,s,r,o){const u=$(),h=po(u,i,e,n,s,r);return
h!==Re&&ii(tt(),Vt(),u,t,h,u[11],o,!1),La}function Zv(t,i,e,n,s){const
r=t[e+1],o=null===i;let u=n?Oi(r):fs(r),h=!1;for(;0!==u&&(
!1===h||o);){const
y=t[u+1];KI(t[u],i)&&(h=!0,t[u+1]=n?Wp(y):jp(y)),u=n?Oi(y):fs(y)}h&&(t[e+1]=n?jp(r):Wp(r))}function
KI(t,i){return
null===t||null==i||(Array.isArray(t)?t[1]:t)===i||!(!Array.isArray(t)||"string"!=typeof
i)&&Xr(t,i)>=0}const cn={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function
Xv(t){return t.substring(cn.key,cn.keyEnd)}function QI(t){return
t.substring(cn.value,cn.valueEnd)}function e1(t,i){const e=cn.textEnd;return
e===i?-1:(i=cn.keyEnd=function
ZI(t,i,e){for(;i<e&&t.charCodeAt(i)>32;)i++;return
i}(t,cn.key=i,e),Co(t,i,e))}function t1(t,i){const e=cn.textEnd;let
n=cn.key=Co(t,i,e);return e===n?-1:(n=cn.keyEnd=function XI(t,i,e){let
n;for(;i<e&&(45===(n=t.charCodeAt(i))||95===n||(-33&n)>=65&&(-33&n)<=90||n>=48&&n<=57);)i++;return
i}(t,n,e),n=s1(t,n,e),n=cn.value=Co(t,n,e),n=cn.valueEnd=function e3(t,i,e){let
n=-1,s=-1,r=-1,o=i,u=o;for(;o<e;){const h=t.charCodeAt(o++);if(59===h)return
u;34===h||39===h?u=o=r1(t,h,o,e):i===o-4&&85===r&&82===s&&76===n&&40===h?u=o=
r1(t,41,o,e):h>32&&(u=o),r=s,s=n,n=-33&h}return
u}(t,n,e),s1(t,n,e))}function
n1(t){cn.key=0,cn.keyEnd=0,cn.value=0,cn.valueEnd=0,cn.textEnd=t.length}function
Co(t,i,e){for(;i<e&&t.charCodeAt(i)<=32;)i++;return i}function
s1(t,i,e,n){return(i=Co(t,i,e))<e&&i++,i}function r1(t,i,e,n){let
s=-1,r=e;for(;r<n;){const o=t.charCodeAt(r++);if(o==i&&92!==s)return
r;s=92==o&&92===s?0:o}throw new Error}function _i(t,i,e){return
Pi(t,i,e,!1),_i}function si(t,i){return Pi(t,i,null,!0),si}function
q(t){Fi(l1,t3,t,!1)}function t3(t,i){for(let e=function YI(t){return
n1(t),t1(t,Co(t,0,cn.textEnd))}(i);e>=0;e=t1(i,e))l1(t,Xv(i),QI(i))}function
me(t){Fi(ei,ts,t,!0)}function ts(t,i){for(let e=function JI(t){return
n1(t),e1(t,Co(t,0,cn.textEnd))}(i);e>=0;e=e1(i,e))ei(t,Xv(i),!0)}function
Pi(t,i,e,n){const
s=$(),r=tt(),o=ms(2);r.firstUpdatePass&&a1(r,t,o,n),i!==Re&&Rn(s,o,i)&&c1(r,r.data[Nn()],s,s[11],t,s[o+1]=function
c3(t,i){return null==t||("string"==typeof i?t+=i:"object"==typeof
t&&(t=ft(Vs(t)))),t
}(i,e),n,o)}function Fi(t,i,e,n){const
s=tt(),r=ms(2);s.firstUpdatePass&&a1(s,null,r,n);const
o=$();if(e!==Re&&Rn(o,r,e)){const u=s.data[Nn()];if(d1(u,n)&&!o1(s,r)){let
h=n?u.classesWithoutHost:u.stylesWithoutHost;null!==h&&(e=Vd(h,e||"")),xh(s,u,o,e,n)}else!function
l3(t,i,e,n,s,r,o,u){s===Re&&(s=Tt);let
h=0,b=0,y=0<s.length?s[0]:null,w=0<r.length?r[0]:null;for(;null!==y||null!==w;){const
M=h<s.length?s[h+1]:void 0,E=b<r.length?r[b+1]:void 0;let
O,L=null;y===w?(h+=2,b+=2,M!==E&&(L=w,O=E)):null===w||null!==y&&y<w?(h+=2,L=y):(b+=2,L=w,O=E),null!==L&&c1(t,i,e,n,L,O,o,u),y=h<s.length?s[h]:null,w=b<r.length?r[b]:null}}(s,u,o,o[11],o[r+1],o[r+1]=function
a3(t,i,e){if(null==e||""===e)return Tt;const
n=[],s=Vs(e);if(Array.isArray(s))for(let r=0;r<s.length;r++)t(n,s[r],!0);else
if("object"==typeof s)for(const r in
s)s.hasOwnProperty(r)&&t(n,r,s[r]);else"string"==typeof
s&&i(n,s);return n}(t,i,e),n,r)}}function o1(t,i){return
i>=t.expandoStartIndex}function a1(t,i,e,n){const s=t.data;if(null
===s[e+1]){const
r=s[Nn()],o=o1(t,e);d1(r,n)&&null===i&&!o&&(i=!1),i=function
n3(t,i,e,n){const s=function op(t){const
i=Ee.lFrame.currentDirectiveIndex;return-1===i?null:t[i]}(t);let
r=n?i.residualClasses:i.residualStyles;if(null===s)0===(n?i.classBindings:i.styleBindings)&&(e=Oa(e=kh(null,t,i,e,n),i.attrs,n),r=null);else{const
o=i.directiveStylingLast;if(-1===o||t[o]!==s)if(e=kh(s,t,i,e,n),null===r){let h=function
s3(t,i,e){const n=e?i.classBindings:i.styleBindings;if(0!==fs(n))return
t[Oi(n)]}(t,i,n);void
0!==h&&Array.isArray(h)&&(h=kh(null,t,i,h[1],n),h=Oa(h,i.attrs,n),function
r3(t,i,e,n){t[Oi(e?i.classBindings:i.styleBindings)]=n}(t,i,n,h))}else r=function
o3(t,i,e){let n;const s=i.directiveEnd;for(let
r=1+i.directiveStylingLast;r<s;r++)n=Oa(n,t[r].hostAttrs,e);return
Oa(n,i.attrs,e)}(t,i,n)}return void
0!==r&&(n?i.residualClasses=r:i.residualStyles=r),e}(s,r,i,n),function
$I(t,i,e,n,s,r){let o=r?i.classBindings:i.styleBindings,u=Oi(o),h=fs(o);t[n]=e;let
y,b=!1;if(Array.isArra
y(e)){const w=e;y=w[1],(null===y||Xr(w,y)>0)&&(b=!0)}else
y=e;if(s)if(0!==h){const
M=Oi(t[u+1]);t[n+1]=Cc(M,u),0!==M&&(t[M+1]=$p(t[M+1],n)),t[u+1]=function
lk(t,i){return 131071&t|i<<17}(t[u+1],n)}else
t[n+1]=Cc(u,0),0!==u&&(t[u+1]=$p(t[u+1],n)),u=n;else
t[n+1]=Cc(h,0),0===u?u=n:t[h+1]=$p(t[h+1],n),h=n;b&&(t[n+1]=jp(t[n+1])),Zv(t,y,n,!0),Zv(t,y,n,!1),function
WI(t,i,e,n,s){const
r=s?t.residualClasses:t.residualStyles;null!=r&&"string"==typeof
i&&Xr(r,i)>=0&&(e[n+1]=Wp(e[n+1]))}(i,y,t,n,r),o=Cc(u,h),r?i.classBindings=o:i.styleBindings=o}(s,r,i,e,o,n)}}function
kh(t,i,e,n,s){let r=null;const o=e.directiveEnd;let
u=e.directiveStylingLast;for(-1===u?u=e.directiveStart:u++;u<o&&(r=i[u],n=Oa(n,r.hostAttrs,s),r!==t);)u++;return
null!==t&&(e.directiveStylingLast=u),n}function Oa(t,i,e){const n=e?1:2;let
s=-1;if(null!==i)for(let r=0;r<i.length;r++){const o=i[r];"number"==typeof
o?s=o:s===n&&(Array.isArray(t)||(t=void
0===t?[]:["",t]),ei(t,o,!!e||i[++r]))}return void 0===t?null:t}function l1(
t,i,e){ei(t,i,Vs(e))}function c1(t,i,e,n,s,r,o,u){if(!(3&i.type))return;const
h=t.data,b=h[u+1];Ic(function Ib(t){return 1==(1&t)}(b)?u1(h,i,e,s,fs(b),o):void
0)||(Ic(r)||function kb(t){return
2==(2&t)}(b)&&(r=u1(h,null,e,s,u,o)),function dM(t,i,e,n,s){const
r=$t(t);if(i)s?r?t.addClass(e,n):e.classList.add(n):r?t.removeClass(e,n):e.classList.remove(n);else{let
o=-1===n.indexOf("-")?void
0:ti.DashCase;if(null==s)r?t.removeStyle(e,n,o):e.style.removeProperty(n);else{const
u="string"==typeof
s&&s.endsWith("!important");u&&(s=s.slice(0,-10),o|=ti.Important),r?t.setStyle(e,n,s,o):e.style.setProperty(n,s,u?"important":"")}}}(n,o,Ql(Nn(),e),s,r))}function
u1(t,i,e,n,s,r){const o=null===i;let u;for(;s>0;){const
h=t[s],b=Array.isArray(h),y=b?h[1]:h,w=null===y;let M=e[s+1];M===Re&&(M=w?Tt:void
0);let E=w?_p(M,n):y===n?M:void
0;if(b&&!Ic(E)&&(E=_p(h,n)),Ic(E)&&(u=E,o))return u;const
L=t[s+1];s=o?Oi(L):fs(L)}if(null!==i){let
h=r?i.residualClasses:i.residualStyles;null!=h&&(u=_p(h,n))}return u}f
unction Ic(t){return void 0!==t}function d1(t,i){return
0!=(t.flags&(i?16:32))}function g(t,i=""){const
e=$(),n=tt(),s=t+20,r=n.firstCreatePass?io(n,s,1,i,null):n.data[s],o=e[s]=function
kp(t,i){return
$t(t)?t.createText(i):t.createTextNode(i)}(e[11],i);mc(n,e,o,r),Qi(r,!1)}function
S(t){return T("",t,""),S}function T(t,i,e){const
n=$(),s=uo(n,t,i,e);return s!==Re&&gs(n,Nn(),s),T}function We(t,i,e,n,s){const
r=$(),o=po(r,t,i,e,n,s);return o!==Re&&gs(r,Nn(),o),We}function
yo(t,i,e,n,s,r,o){const u=$(),h=function ho(t,i,e,n,s,r,o,u){const
b=Mc(t,hs(),e,s,o);return ms(3),b?i+Ie(e)+n+Ie(s)+r+Ie(o)+u:Re}(u,t,i,e,n,s,r,o);return
h!==Re&&gs(u,Nn(),h),yo}function Ec(t,i,e,n,s,r,o,u,h){const b=$(),y=function
mo(t,i,e,n,s,r,o,u,h,b){const w=gi(t,hs(),e,s,o,h);return
ms(4),w?i+Ie(e)+n+Ie(s)+r+Ie(o)+u+Ie(h)+b:Re}(b,t,i,e,n,s,r,o,u,h);return
y!==Re&&gs(b,Nn(),y),Ec}function Ih(t,i,e,n,s,r,o,u,h,b,y){const w=$(),M=function
fo(t,i,e,n,s,r,o,u,h,b,y,w){const M=hs();let E=gi(t,M,e,s,o,h);return E=Rn
(t,M+4,y)||E,ms(5),E?i+Ie(e)+n+Ie(s)+r+Ie(o)+u+Ie(h)+b+Ie(y)+w:Re}(w,t,i,e,n,s,r,o,u,h,b,y);return
M!==Re&&gs(w,Nn(),M),Ih}function Eh(t,i,e,n,s,r,o,u,h,b,y,w,M){const
E=$(),L=function go(t,i,e,n,s,r,o,u,h,b,y,w,M,E){const L=hs();let O=gi(t,L,e,s,o,h);return
O=ur(t,L+4,y,M)||O,ms(6),O?i+Ie(e)+n+Ie(s)+r+Ie(o)+u+Ie(h)+b+Ie(y)+w+Ie(M)+E:Re}(E,t,i,e,n,s,r,o,u,h,b,y,w,M);return
L!==Re&&gs(E,Nn(),L),Eh}const dr=void 0;var
I3=["en",[["a","p"],["AM","PM"],dr],[["AM","PM"],dr,dr],[["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"]],dr,[["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"]],dr,[["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}",dr,"{1} 'at'
{0}",dr],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US
Dollar",{},"ltr",function k3(t){const
e=Math.floor(Math.abs(t)),n=t.toString().replace(/^[^.]*\.?/,"").length;return
1===e&&0===n?1:5}];let wo={};function Hn(t){const i=function E3(t){return
t.toLowerCase().replace(/_/g,"-")}(t);let e=M1(i);if(e)return e;const
n=i.split("-")[0];if(e=M1(n),e)return e;if("en"===n)return I3;throw
new Error(`Missing locale data for the locale "${t}".`)}function M1(t){return t
in
wo||(wo[t]=vt.ng&&vt.ng.common&&vt.ng.common.locales&&vt.ng.common.locales[t]),wo[t]}var
te=(()=>((te=te||{})[te.LocaleId=0]="LocaleId",te[te.DayPeriodsFormat=1]="DayPeriodsFormat",te[te.DayPeriodsStandalone=2]="DayPeriodsStandalone",te[te.DaysFormat=3]="DaysFormat",te[te.DaysStandalone=4]="DaysStandalone",te[te.MonthsFormat=5]="MonthsFormat",te[t
e.MonthsStandalone=6]="MonthsStandalone",te[te.Eras=7]="Eras",te[te.FirstDayOfWeek=8]="FirstDayOfWeek",te[te.WeekendRange=9]="WeekendRange",te[te.DateFormat=10]="DateFormat",te[te.TimeFormat=11]="TimeFormat",te[te.DateTimeFormat=12]="DateTimeFormat",te[te.NumberSymbols=13]="NumberSymbols",te[te.NumberFormats=14]="NumberFormats",te[te.CurrencyCode=15]="CurrencyCode",te[te.CurrencySymbol=16]="CurrencySymbol",te[te.CurrencyName=17]="CurrencyName",te[te.Currencies=18]="Currencies",te[te.Directionality=19]="Directionality",te[te.PluralCase=20]="PluralCase",te[te.ExtraData=21]="ExtraData",te))();const
Rc="en-US";let k1=Rc;function Oh(t,i,e,n,s){if(t=Ve(t),Array.isArray(t))for(let
r=0;r<t.length;r++)Oh(t[r],i,e,n,s);else{const r=tt(),o=$();let
u=ao(t)?t:Ve(t.provide),h=lv(t);const
b=rn(),y=1048575&b.providerIndexes,w=b.directiveStart,M=b.providerIndexes>>20;if(ao(t)||!t.multi){const
E=new
oa(h,s,D),L=Ph(u,i,s?y:y+M,w);-1===L?(oc(la(b,o),r,u),Ah(r,t,i.length),i.push(u),b.directiveStart++,b.
directiveEnd++,s&&(b.providerIndexes+=1048576),e.push(E),o.push(E)):(e[L]=E,o[L]=E)}else{const
E=Ph(u,i,y+M,w),L=Ph(u,i,y,y+M),O=E>=0&&e[E],N=L>=0&&e[L];if(s&&!N||!s&&!O){oc(la(b,o),r,u);const
G=function kE(t,i,e,n,s){const r=new oa(t,e,D);return
r.multi=[],r.index=i,r.componentProviders=0,Z1(r,s,n&&!e),r}(s?ME:DE,e.length,s,n,h);!s&&N&&(e[L].providerFactory=G),Ah(r,t,i.length,0),i.push(u),b.directiveStart++,b.directiveEnd++,s&&(b.providerIndexes+=1048576),e.push(G),o.push(G)}else
Ah(r,t,E>-1?E:L,Z1(e[s?L:E],h,!s&&n));!s&&n&&N&&e[L].componentProviders++}}}function
Ah(t,i,e,n){const s=ao(i),r=function Xk(t){return!!t.useClass}(i);if(s||r){const
h=(r?Ve(i.useClass):i).prototype.ngOnDestroy;if(h){const
b=t.destroyHooks||(t.destroyHooks=[]);if(!s&&i.multi){const
y=b.indexOf(e);-1===y?b.push(e,[n,h]):b[y+1].push(n,h)}else b.push(e,h)}}}function
Z1(t,i,e){return e&&t.componentProviders++,t.multi.push(i)-1}function
Ph(t,i,e,n){for(let s=e;s<n;s++)if(i[s]===t)return s;return-1}function DE(t
,i,e,n){return Fh(this.multi,[])}function ME(t,i,e,n){const s=this.multi;let
r;if(this.providerFactory){const
o=this.providerFactory.componentProviders,u=ca(e,e[1],this.providerFactory.index,n);r=u.slice(0,o),Fh(s,r);for(let
h=o;h<u.length;h++)r.push(u[h])}else r=[],Fh(s,r);return r}function Fh(t,i){for(let
e=0;e<t.length;e++)i.push((0,t[e])());return i}function Pe(t,i=[]){return
e=>{e.providersResolver=(n,s)=>function xE(t,i,e){const
n=tt();if(n.firstCreatePass){const
s=Ri(t);Oh(e,n.data,n.blueprint,s,!0),Oh(i,n.data,n.blueprint,s,!1)}}(n,s?s(t):t,i)}}class
X1{}class RE{resolveComponentFactory(i){throw function EE(t){const i=Error(`No component
factory found for ${ft(t)}. Did you add it to @NgModule.entryComponents?`);return
i.ngComponent=t,i}(i)}}let Va=(()=>{class t{}return t.NULL=new RE,t})();function
LE(){return So(rn(),$())}function So(t,i){return new De(Zn(t,i))}let De=(()=>{class
t{constructor(e){this.nativeElement=e}}return t.__NG_ELEMENT_ID__=LE,t})();function
OE(t){return
t instanceof De?t.nativeElement:t}class Ba{}let gn=(()=>{class t{}return
t.__NG_ELEMENT_ID__=()=>function PE(){const t=$(),e=Xn(rn().index,t);return function
AE(t){return t[11]}(Ki(e)?e:t)}(),t})(),FE=(()=>{class t{}return
t.\u0275prov=X({token:t,providedIn:"root",factory:()=>null}),t})();class
Ha{constructor(i){this.full=i,this.major=i.split(".")[0],this.minor=i.split(".")[1],this.patch=i.split(".").slice(2).join(".")}}const
NE=new Ha("13.3.12"),Nh={};function Fc(t,i,e,n,s=!1){for(;null!==e;){const
r=i[e.index];if(null!==r&&n.push(Yt(r)),Ei(r))for(let
u=10;u<r.length;u++){const
h=r[u],b=h[1].firstChild;null!==b&&Fc(h[1],h,b,n)}const
o=e.type;if(8&o)Fc(t,i,e.child,n);else if(32&o){const u=xp(e,i);let
h;for(;h=u();)n.push(h)}else if(16&o){const
u=rb(i,e);if(Array.isArray(u))n.push(...u);else{const
h=Ca(i[16]);Fc(h[1],h,u,n,!0)}}e=s?e.projectionNext:e.next}return n}class
qa{constructor(i,e){this._lView=i,this._cdRefInjectingView=e,this._appRef=null,this._attachedToViewContainer=!1}ge
t rootNodes(){const i=this._lView,e=i[1];return Fc(e,i,e.firstChild,[])}get
context(){return this._lView[8]}set context(i){this._lView[8]=i}get destroyed(){return
256==(256&this._lView[2])}destroy(){if(this._appRef)this._appRef.detachView(this);else
if(this._attachedToViewContainer){const i=this._lView[3];if(Ei(i)){const
e=i[8],n=e?e.indexOf(this):-1;n>-1&&(Ep(i,n),lc(e,n))}this._attachedToViewContainer=!1}J_(this._lView[1],this._lView)}onDestroy(i){Ub(this._lView[1],this._lView,null,i)}markForCheck(){lh(this._cdRefInjectingView||this._lView)}detach(){this._lView[2]&=-129}reattach(){this._lView[2]|=128}detectChanges(){!function
uh(t,i,e){const n=i[10];n.begin&&n.begin();try{ro(t,i,t.template,e)}catch(s){throw
nv(i,s),s}finally{n.end&&n.end()}}(this._lView[1],this._lView,this.context)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw
new
re(902,"");this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null,function
tM(t,i){ya(t,i,i[11],2,null,null)}(this._
lView[1],this._lView)}attachToAppRef(i){if(this._attachedToViewContainer)throw new
re(902,"");this._appRef=i}}class VE extends
qa{constructor(i){super(i),this._view=i}detectChanges(){Zb(this._view)}checkNoChanges(){}get
context(){return null}}class tC extends
Va{constructor(i){super(),this.ngModule=i}resolveComponentFactory(i){const e=Tn(i);return
new Vh(e,this.ngModule)}}function nC(t){const i=[];for(let e in
t)t.hasOwnProperty(e)&&i.push({propName:t[e],templateName:e});return i}class Vh
extends
X1{constructor(i,e){super(),this.componentDef=i,this.ngModule=e,this.componentType=i.type,this.selector=function
ok(t){return
t.map(rk).join(",")}(i.selectors),this.ngContentSelectors=i.ngContentSelectors?i.ngContentSelectors:[],this.isBoundToModule=!!e}get
inputs(){return nC(this.componentDef.inputs)}get outputs(){return
nC(this.componentDef.outputs)}create(i,e,n,s){const r=(s=s||this.ngModule)?function
HE(t,i){return{get:(e,n,s)=>{const r=t.get(e,Nh,s);return
r!==Nh||n===Nh?r:i.get(e,n,s)
}}}(i,s.injector):i,o=r.get(Ba,Yg),u=r.get(FE,null),h=o.createRenderer(null,this.componentDef),b=this.componentDef.selectors[0][0]||"div",y=n?function
Gb(t,i,e){if($t(t))return t.selectRootElement(i,e===ki.ShadowDom);let
n="string"==typeof i?t.querySelector(i):i;return
n.textContent="",n}(h,n,this.componentDef.encapsulation):Ip(o.createRenderer(null,this.componentDef),b,function
BE(t){const
i=t.toLowerCase();return"svg"===i?"svg":"math"===i?"math":null}(b)),w=this.componentDef.onPush?576:528,M=function
Cv(t,i){return{components:[],scheduler:t||KM,clean:zk,playerHandler:i||null,flags:0}}(),E=Tc(0,null,null,1,0,null,null,null,null,null),L=Da(null,E,M,w,null,null,o,h,u,r);let
O,N;Yl(L);try{const G=function bv(t,i,e,n,s,r){const o=e[1];e[20]=t;const
h=io(o,20,2,"#host",null),b=h.mergedAttrs=i.hostAttrs;null!==b&&(xc(h,b,!0),null!==t&&(nc(s,t,b),null!==h.classes&&Fp(s,t,h.classes),null!==h.styles&&ab(s,t,h.styles)));const
y=n.createRenderer(t,i),w=Da(e,Hb(i),null,i.onPush?64:16,e[20],h,n
,y,r||null,null);return
o.firstCreatePass&&(oc(la(h,e),o,i.type),Kb(o,h),Qb(h,e.length,1)),Sc(e,w),e[20]=w}(y,this.componentDef,L,o,h);if(y)if(n)nc(h,y,["ng-version",NE.full]);else{const{attrs:P,classes:J}=function
ak(t){const i=[],e=[];let n=1,s=2;for(;n<t.length;){let
r=t[n];if("string"==typeof
r)2===s?""!==r&&i.push(r,t[++n]):8===s&&e.push(r);else{if(!Li(s))break;s=r}n++}return{attrs:i,classes:e}}(this.componentDef.selectors[0]);P&&nc(h,y,P),J&&J.length>0&&Fp(h,y,J.join("
"))}if(N=ep(E,20),void 0!==e){const P=N.projection=[];for(let
J=0;J<this.ngContentSelectors.length;J++){const
se=e[J];P.push(null!=se?Array.from(se):null)}}O=function vv(t,i,e,n,s){const
r=e[1],o=function kk(t,i,e){const
n=rn();t.firstCreatePass&&(e.providersResolver&&e.providersResolver(e),Jb(t,n,i,so(t,i,1,null),e));const
s=ca(i,t,n.directiveStart,n);In(s,i);const r=Zn(n,i);return
r&&In(r,i),s}(r,e,i);if(n.components.push(o),t[8]=o,s&&s.forEach(h=>h(o,i)),i.contentQueries){const
h=rn();i.contentQueries(1,o,h.d
irectiveStart)}const
u=rn();return!r.firstCreatePass||null===i.hostBindings&&null===i.hostAttrs||(Ps(u.index),$b(e[1],u,0,u.directiveStart,u.directiveEnd,i),Wb(i,o)),o}(G,this.componentDef,L,M,[uI]),Ma(E,L,null)}finally{Zl()}return
new GE(this.componentType,O,So(N,L),L,N)}}class GE extends class
IE{}{constructor(i,e,n,s,r){super(),this.location=n,this._rootLView=s,this._tNode=r,this.instance=e,this.hostView=this.changeDetectorRef=new
VE(s),this.componentType=i}get injector(){return new
Kr(this._tNode,this._rootLView)}destroy(){this.hostView.destroy()}onDestroy(i){this.hostView.onDestroy(i)}}class
_s{}class iC{}const xo=new Map;class oC extends
_s{constructor(i,e){super(),this._parent=e,this._bootstrapComponents=[],this.injector=this,this.destroyCbs=[],this.componentFactoryResolver=new
tC(this);const
n=pi(i);this._bootstrapComponents=Zi(n.bootstrap),this._r3Injector=av(i,e,[{provide:_s,useValue:this},{provide:Va,useValue:this.componentFactoryResolver}],ft(i)),this._r3Injector._resolv
eInjectorDefTypes(),this.instance=this.get(i)}get(i,e=En.THROW_IF_NOT_FOUND,n=xe.Default){return
i===En||i===_s||i===ph?this:this._r3Injector.get(i,e,n)}destroy(){const
i=this._r3Injector;!i.destroyed&&i.destroy(),this.destroyCbs.forEach(e=>e()),this.destroyCbs=null}onDestroy(i){this.destroyCbs.push(i)}}class
Bh extends iC{constructor(i){super(),this.moduleType=i,null!==pi(i)&&function
zE(t){const i=new Set;!function e(n){const s=pi(n,!0),r=s.id;null!==r&&(function
sC(t,i,e){if(i&&i!==e)throw new Error(`Duplicate module registered for ${t} -
${ft(i)} vs ${ft(i.name)}`)}(r,xo.get(r),n),xo.set(r,n));const o=Zi(s.imports);for(const u
of o)i.has(u)||(i.add(u),e(u))}(t)}(i)}create(i){return new
oC(this.moduleType,i)}}function A(t,i,e){const n=Fn()+t,s=$();return
s[n]===Re?es(s,n,e?i.call(e):i()):Ea(s,n)}function U(t,i,e,n){return
lC($(),Fn(),t,i,e,n)}function Ge(t,i,e,n,s){return cC($(),Fn(),t,i,e,n,s)}function
Qt(t,i,e,n,s,r){return uC($(),Fn(),t,i,e,n,s,r)}function qn(t,i,e,n,s,r,o){re
turn function dC(t,i,e,n,s,r,o,u,h){const b=i+e;return
gi(t,b,s,r,o,u)?es(t,b+4,h?n.call(h,s,r,o,u):n(s,r,o,u)):Ga(t,b+4)}($(),Fn(),t,i,e,n,s,r,o)}function
pr(t,i,e,n,s,r,o,u){const h=Fn()+t,b=$(),y=gi(b,h,e,n,s,r);return
Rn(b,h+4,o)||y?es(b,h+5,u?i.call(u,e,n,s,r,o):i(e,n,s,r,o)):Ea(b,h+5)}function
Do(t,i,e,n,s,r,o,u,h){const b=Fn()+t,y=$(),w=gi(y,b,e,n,s,r);return
ur(y,b+4,o,u)||w?es(y,b+6,h?i.call(h,e,n,s,r,o,u):i(e,n,s,r,o,u)):Ea(y,b+6)}function
Hh(t,i,e,n){return function pC(t,i,e,n,s,r){let o=i+e,u=!1;for(let
h=0;h<s.length;h++)Rn(t,o++,s[h])&&(u=!0);return
u?es(t,o,n.apply(r,s)):Ga(t,o)}($(),Fn(),t,i,e,n)}function Ga(t,i){const e=t[i];return
e===Re?void 0:e}function lC(t,i,e,n,s,r){const o=i+e;return
Rn(t,o,s)?es(t,o+1,r?n.call(r,s):n(s)):Ga(t,o+1)}function cC(t,i,e,n,s,r,o){const
u=i+e;return ur(t,u,s,r)?es(t,u+2,o?n.call(o,s,r):n(s,r)):Ga(t,u+2)}function
uC(t,i,e,n,s,r,o,u){const h=i+e;return
Mc(t,h,s,r,o)?es(t,h+3,u?n.call(u,s,r,o):n(s,r,o)):Ga(t,h+3)}function m(t,i){const
e=tt();let n;const s=t+20;e.firstCreatePass?(n=function $E(t,i){if(i)for(let
e=i.length-1;e>=0;e--){const n=i[e];if(t===n.name)return
n}}(i,e.pipeRegistry),e.data[s]=n,n.onDestroy&&(e.destroyHooks||(e.destroyHooks=[])).push(s,n.onDestroy)):n=e.data[s];const
r=n.factory||(n.factory=ar(n.type)),o=Rs(D);try{const u=sc(!1),h=r();return sc(u),function
wI(t,i,e,n){e>=t.data.length&&(t.data[e]=null,t.blueprint[e]=null),i[e]=n}(e,$(),s,h),h}finally{Rs(o)}}function
f(t,i,e){const n=t+20,s=$(),r=zr(s,n);return
Ua(s,n)?lC(s,Fn(),i,r.transform,e,r):r.transform(e)}function Dt(t,i,e,n){const
s=t+20,r=$(),o=zr(r,s);return
Ua(r,s)?cC(r,Fn(),i,o.transform,e,n,o):o.transform(e,n)}function Ua(t,i){return
t[1].data[i].pure}function qh(t){return i=>{setTimeout(t,void 0,i)}}const H=class QE
extends
ct{constructor(i=!1){super(),this.__isAsync=i}emit(i){super.next(i)}subscribe(i,e,n){var
s,r,o;let u=i,h=e||(()=>null),b=n;if(i&&"object"==typeof i){const
w=i;u=null===(s=w.next)||void 0===s?void 0:s.bind(w),
h=null===(r=w.error)||void 0===r?void 0:r.bind(w),b=null===(o=w.complete)||void
0===o?void
0:o.bind(w)}this.__isAsync&&(h=qh(h),u&&(u=qh(u)),b&&(b=qh(b)));const
y=super.subscribe({next:u,error:h,complete:b});return i instanceof
Et&&i.add(y),y}};function JE(){return this._results[lo()]()}class
Gh{constructor(i=!1){this._emitDistinctChangesOnly=i,this.dirty=!0,this._results=[],this._changesDetected=!1,this._changes=null,this.length=0,this.first=void
0,this.last=void 0;const e=lo(),n=Gh.prototype;n[e]||(n[e]=JE)}get changes(){return
this._changes||(this._changes=new H)}get(i){return this._results[i]}map(i){return
this._results.map(i)}filter(i){return this._results.filter(i)}find(i){return
this._results.find(i)}reduce(i,e){return
this._results.reduce(i,e)}forEach(i){this._results.forEach(i)}some(i){return
this._results.some(i)}toArray(){return this._results.slice()}toString(){return
this._results.toString()}reset(i,e){const n=this;n.dirty=!1;const
s=fi(i);(this._changesDetected=!functio
n _D(t,i,e){if(t.length!==i.length)return!1;for(let n=0;n<t.length;n++){let
s=t[n],r=i[n];if(e&&(s=e(s),r=e(r)),r!==s)return!1}return!0}(n._results,s,e))&&(n._results=s,n.length=s.length,n.last=s[this.length-1],n.first=s[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
bi=(()=>{class t{}return t.__NG_ELEMENT_ID__=XE,t})();const YE=bi,ZE=class extends
YE{constructor(i,e,n){super(),this._declarationLView=i,this._declarationTContainer=e,this.elementRef=n}createEmbeddedView(i){const
e=this._declarationTContainer.tViews,n=Da(this._declarationLView,e,i,16,null,e.declTNode,null,null,null,null);n[17]=this._declarationLView[this._declarationTContainer.index];const
r=this._declarationLView[19];return
null!==r&&(n[19]=r.createEmbeddedView(e)),Ma(e,n,i),new qa(n)}};function
XE(){return Nc(rn(),$())}function Nc(t,i){return 4&t.typ
e?new ZE(i,t,So(t,i)):null}let vi=(()=>{class t{}return
t.__NG_ELEMENT_ID__=eR,t})();function eR(){return gC(rn(),$())}const tR=vi,mC=class
extends
tR{constructor(i,e,n){super(),this._lContainer=i,this._hostTNode=e,this._hostLView=n}get
element(){return So(this._hostTNode,this._hostLView)}get injector(){return new
Kr(this._hostTNode,this._hostLView)}get parentInjector(){const
i=rc(this._hostTNode,this._hostLView);if(f_(i)){const
e=Wr(i,this._hostLView),n=$r(i);return new Kr(e[1].data[n+8],e)}return new
Kr(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(i){const
e=fC(this._lContainer);return null!==e&&e[i]||null}get length(){return
this._lContainer.length-10}createEmbeddedView(i,e,n){const
s=i.createEmbeddedView(e||{});return this.insert(s,n),s}createComponent(i,e,n,s,r){const
o=i&&!function pa(t){return"function"==typeof t}(i);let
u;if(o)u=e;else{const
w=e||{};u=w.index,n=w.injector,s=w.projectableNodes,r=w.ngModuleRef}const h=o?i:new
Vh(Tn(i)),b=n||
this.parentInjector;if(!r&&null==h.ngModule){const
M=(o?b:this.parentInjector).get(_s,null);M&&(r=M)}const y=h.create(b,s,void
0,r);return this.insert(y.hostView,u),y}insert(i,e){const n=i._lView,s=n[1];if(function
Bx(t){return Ei(t[3])}(n)){const y=this.indexOf(i);if(-1!==y)this.detach(y);else{const
w=n[3],M=new mC(w,w[6],w[3]);M.detach(M.indexOf(i))}}const
r=this._adjustIndex(e),o=this._lContainer;!function iM(t,i,e,n){const
s=10+n,r=e.length;n>0&&(e[s-1][4]=i),n<r-10?(i[4]=e[s],x_(e,10+n,i)):(e.push(i),i[4]=null),i[3]=e;const
o=i[17];null!==o&&e!==o&&function sM(t,i){const
e=t[9];i[16]!==i[3][3][16]&&(t[2]=!0),null===e?t[9]=[i]:e.push(i)}(o,i);const
u=i[19];null!==u&&u.insertView(t),i[2]|=128}(s,n,o,r);const
u=Op(r,o),h=n[11],b=hc(h,o[7]);return null!==b&&function
eM(t,i,e,n,s,r){n[0]=s,n[6]=i,ya(t,n,e,1,s,r)}(s,o[6],h,n,b,u),i.attachToViewContainerRef(),x_(Uh(o),r,i),i}move(i,e){return
this.insert(i,e)}indexOf(i){const e=fC(this._lContainer);return
null!==e?e.indexOf(i):-1}remov
e(i){const
e=this._adjustIndex(i,-1),n=Ep(this._lContainer,e);n&&(lc(Uh(this._lContainer),e),J_(n[1],n))}detach(i){const
e=this._adjustIndex(i,-1),n=Ep(this._lContainer,e);return
n&&null!=lc(Uh(this._lContainer),e)?new qa(n):null}_adjustIndex(i,e=0){return
null==i?this.length+e:i}};function fC(t){return t[8]}function Uh(t){return
t[8]||(t[8]=[])}function gC(t,i){let e;const n=i[t.index];if(Ei(n))e=n;else{let
s;if(8&t.type)s=Yt(n);else{const r=i[11];s=r.createComment("");const
o=Zn(t,i);lr(r,hc(r,o),s,function lM(t,i){return
$t(t)?t.nextSibling(i):i.nextSibling}(r,o),!1)}i[t.index]=e=Yb(n,i,s,t),Sc(i,e)}return new
mC(e,t,i)}class zh{constructor(i){this.queryList=i,this.matches=null}clone(){return new
zh(this.queryList)}setDirty(){this.queryList.setDirty()}}class
jh{constructor(i=[]){this.queries=i}createEmbeddedView(i){const
e=i.queries;if(null!==e){const
n=null!==i.contentQueries?i.contentQueries[0]:e.length,s=[];for(let r=0;r<n;r++){const
o=e.getByIndex(r);s.push(this.queries[o.ind
exInDeclarationView].clone())}return new jh(s)}return
null}insertView(i){this.dirtyQueriesWithMatches(i)}detachView(i){this.dirtyQueriesWithMatches(i)}dirtyQueriesWithMatches(i){for(let
e=0;e<this.queries.length;e++)null!==yC(i,e).matches&&this.queries[e].setDirty()}}class
_C{constructor(i,e,n=null){this.predicate=i,this.flags=e,this.read=n}}class
$h{constructor(i=[]){this.queries=i}elementStart(i,e){for(let
n=0;n<this.queries.length;n++)this.queries[n].elementStart(i,e)}elementEnd(i){for(let
e=0;e<this.queries.length;e++)this.queries[e].elementEnd(i)}embeddedTView(i){let
e=null;for(let n=0;n<this.length;n++){const
s=null!==e?e.length:0,r=this.getByIndex(n).embeddedTView(i,s);r&&(r.indexInDeclarationView=n,null!==e?e.push(r):e=[r])}return
null!==e?new $h(e):null}template(i,e){for(let
n=0;n<this.queries.length;n++)this.queries[n].template(i,e)}getByIndex(i){return
this.queries[i]}get length(){return
this.queries.length}track(i){this.queries.push(i)}}class Wh{constructor(i,e=-1){this.
metadata=i,this.matches=null,this.indexInDeclarationView=-1,this.crossesNgTemplate=!1,this._appliesToNextNode=!0,this._declarationNodeIndex=e}elementStart(i,e){this.isApplyingToNode(e)&&this.matchTNode(i,e)}elementEnd(i){this._declarationNodeIndex===i.index&&(this._appliesToNextNode=!1)}template(i,e){this.elementStart(i,e)}embeddedTView(i,e){return
this.isApplyingToNode(i)?(this.crossesNgTemplate=!0,this.addMatch(-i.index,e),new
Wh(this.metadata)):null}isApplyingToNode(i){if(this._appliesToNextNode&&1!=(1&this.metadata.flags)){const
e=this._declarationNodeIndex;let
n=i.parent;for(;null!==n&&8&n.type&&n.index!==e;)n=n.parent;return
e===(null!==n?n.index:-1)}return this._appliesToNextNode}matchTNode(i,e){const
n=this.metadata.predicate;if(Array.isArray(n))for(let s=0;s<n.length;s++){const
r=n[s];this.matchTNodeWithReadOption(i,e,sR(e,r)),this.matchTNodeWithReadOption(i,e,ac(e,i,r,!1,!1))}else
n===bi?4&e.type&&this.matchTNodeWithReadOption(i,e,-1):this.matchTNodeWithReadOption(i,e,ac(e
,i,n,!1,!1))}matchTNodeWithReadOption(i,e,n){if(null!==n){const
s=this.metadata.read;if(null!==s)if(s===De||s===vi||s===bi&&4&e.type)this.addMatch(e.index,-2);else{const
r=ac(e,i,s,!1,!1);null!==r&&this.addMatch(e.index,r)}else
this.addMatch(e.index,n)}}addMatch(i,e){null===this.matches?this.matches=[i,e]:this.matches.push(i,e)}}function
sR(t,i){const e=t.localNames;if(null!==e)for(let n=0;n<e.length;n+=2)if(e[n]===i)return
e[n+1];return null}function oR(t,i,e,n){return-1===e?function rR(t,i){return
11&t.type?So(t,i):4&t.type?Nc(t,i):null}(i,t):-2===e?function aR(t,i,e){return
e===De?So(i,t):e===bi?Nc(i,t):e===vi?gC(i,t):void 0}(t,i,n):ca(t,t[1],e,i)}function
bC(t,i,e,n){const s=i[19].queries[n];if(null===s.matches){const
r=t.data,o=e.matches,u=[];for(let h=0;h<o.length;h+=2){const
b=o[h];u.push(b<0?null:oR(i,r[b],o[h+1],e.metadata.read))}s.matches=u}return
s.matches}function Kh(t,i,e,n){const
s=t.queries.getByIndex(e),r=s.matches;if(null!==r){const o=bC(t,i,s,e);for(let
u=0;u<r.len
gth;u+=2){const h=r[u];if(h>0)n.push(o[u/2]);else{const b=r[u+1],y=i[-h];for(let
w=10;w<y.length;w++){const
M=y[w];M[17]===M[3]&&Kh(M[1],M,b,n)}if(null!==y[9]){const w=y[9];for(let
M=0;M<w.length;M++){const E=w[M];Kh(E[1],E,b,n)}}}}}return n}function V(t){const
i=$(),e=tt(),n=r_();ap(n+1);const
s=yC(e,n);if(t.dirty&&Zg(i)===(2==(2&s.metadata.flags))){if(null===s.matches)t.reset([]);else{const
r=s.crossesNgTemplate?Kh(e,i,n,[]):bC(e,i,s,n);t.reset(r,OE),t.notifyOnChanges()}return!0}return!1}function
W(t,i,e){const n=tt();n.firstCreatePass&&(CC(n,new
_C(t,i,e),-1),2==(2&i)&&(n.staticViewQueries=!0)),vC(n,$(),i)}function
st(t,i,e,n){const s=tt();if(s.firstCreatePass){const r=rn();CC(s,new
_C(i,e,n),r.index),function cR(t,i){const
e=t.contentQueries||(t.contentQueries=[]);i!==(e.length?e[e.length-1]:-1)&&e.push(t.queries.length-1,i)}(s,t),2==(2&e)&&(s.staticContentQueries=!0)}vC(s,$(),e)}function
B(){return function lR(t,i){return t[19].queries[i].queryList}($(),r_())}function
vC(t,i,e)
{const n=new Gh(4==(4&e));Ub(t,i,n,n.destroy),null===i[19]&&(i[19]=new
jh),i[19].queries.push(new zh(n))}function
CC(t,i,e){null===t.queries&&(t.queries=new $h),t.queries.track(new
Wh(i,e))}function yC(t,i){return t.queries.getByIndex(i)}function we(t,i){return
Nc(t,i)}function Hc(...t){}const em=new be("Application Initializer");let
tm=(()=>{class
t{constructor(e){this.appInits=e,this.resolve=Hc,this.reject=Hc,this.initialized=!1,this.done=!1,this.donePromise=new
Promise((n,s)=>{this.resolve=n,this.reject=s})}runInitializers(){if(this.initialized)return;const
e=[],n=()=>{this.done=!0,this.resolve()};if(this.appInits)for(let
s=0;s<this.appInits.length;s++){const r=this.appInits[s]();if(Ra(r))e.push(r);else
if(Dh(r)){const o=new
Promise((u,h)=>{r.subscribe({complete:u,error:h})});e.push(o)}}Promise.all(e).then(()=>{n()}).catch(s=>{this.reject(s)}),0===e.length&&n(),this.initialized=!0}}return
t.\u0275fac=function(e){return
new(e||t)(K(em,8))},t.\u0275prov=X({token:t,factory:t.\u0275f
ac,providedIn:"root"}),t})();const ja=new
be("AppId",{providedIn:"root",factory:function
VC(){return`${nm()}${nm()}${nm()}`}});function nm(){return
String.fromCharCode(97+Math.floor(25*Math.random()))}const BC=new be("Platform
Initializer"),qc=new be("Platform
ID",{providedIn:"platform",factory:()=>"unknown"}),HC=new
be("appBootstrapListener");let DR=(()=>{class
t{log(e){console.log(e)}warn(e){console.warn(e)}}return t.\u0275fac=function(e){return
new(e||t)},t.\u0275prov=X({token:t,factory:t.\u0275fac,providedIn:"platform"}),t})();const
qs=new
be("LocaleId",{providedIn:"root",factory:()=>O_(qs,xe.Optional|xe.SkipSelf)||function
MR(){return"undefined"!=typeof
$localize&&$localize.locale||Rc}()});class
IR{constructor(i,e){this.ngModuleFactory=i,this.componentFactories=e}}let
qC=(()=>{class t{compileModuleSync(e){return new Bh(e)}compileModuleAsync(e){return
Promise.resolve(this.compileModuleSync(e))}compileModuleAndAllComponentsSync(e){const
n=this.compileModuleSync(e),r=Zi(pi(e).decl
arations).reduce((o,u)=>{const h=Tn(u);return h&&o.push(new
Vh(h)),o},[]);return new IR(n,r)}compileModuleAndAllComponentsAsync(e){return
Promise.resolve(this.compileModuleAndAllComponentsSync(e))}clearCache(){}clearCacheFor(e){}getModuleId(e){}}return
t.\u0275fac=function(e){return
new(e||t)},t.\u0275prov=X({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();const
RR=(()=>Promise.resolve(0))();function im(t){"undefined"==typeof
Zone?RR.then(()=>{t&&t.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",t)}class
nt{constructor({enableLongStackTrace:i=!1,shouldCoalesceEventChangeDetection:e=!1,shouldCoalesceRunChangeDetection:n=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new
H(!1),this.onMicrotaskEmpty=new H(!1),this.onStable=new H(!1),this.onError=new
H(!1),"undefined"==typeof Zone)throw new Error("In this configuration
Angular requires Zone.js");Zone.assertZonePatched();const
s=this;s._nesting=0,s._outer=s._
inner=Zone.current,Zone.TaskTrackingZoneSpec&&(s._inner=s._inner.fork(new
Zone.TaskTrackingZoneSpec)),i&&Zone.longStackTraceZoneSpec&&(s._inner=s._inner.fork(Zone.longStackTraceZoneSpec)),s.shouldCoalesceEventChangeDetection=!n&&e,s.shouldCoalesceRunChangeDetection=n,s.lastRequestAnimationFrameId=-1,s.nativeRequestAnimationFrame=function
LR(){let
t=vt.requestAnimationFrame,i=vt.cancelAnimationFrame;if("undefined"!=typeof
Zone&&t&&i){const
e=t[Zone.__symbol__("OriginalDelegate")];e&&(t=e);const
n=i[Zone.__symbol__("OriginalDelegate")];n&&(i=n)}return{nativeRequestAnimationFrame:t,nativeCancelAnimationFrame:i}}().nativeRequestAnimationFrame,function
PR(t){const i=()=>{!function
AR(t){t.isCheckStableRunning||-1!==t.lastRequestAnimationFrameId||(t.lastRequestAnimationFrameId=t.nativeRequestAnimationFrame.call(vt,()=>{t.fakeTopEventTask||(t.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{t.lastRequestAnimationFrameId=-1,rm(t),t.isCheckStableRunning=!0,sm(t),t.isCheck
StableRunning=!1},void
0,()=>{},()=>{})),t.fakeTopEventTask.invoke()}),rm(t))}(t)};t._inner=t._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(e,n,s,r,o,u)=>{try{return
GC(t),e.invokeTask(s,r,o,u)}finally{(t.shouldCoalesceEventChangeDetection&&"eventTask"===r.type||t.shouldCoalesceRunChangeDetection)&&i(),UC(t)}},onInvoke:(e,n,s,r,o,u,h)=>{try{return
GC(t),e.invoke(s,r,o,u,h)}finally{t.shouldCoalesceRunChangeDetection&&i(),UC(t)}},onHasTask:(e,n,s,r)=>{e.hasTask(s,r),n===s&&("microTask"==r.change?(t._hasPendingMicrotasks=r.microTask,rm(t),sm(t)):"macroTask"==r.change&&(t.hasPendingMacrotasks=r.macroTask))},onHandleError:(e,n,s,r)=>(e.handleError(s,r),t.runOutsideAngular(()=>t.onError.emit(r)),!1)})}(s)}static
isInAngularZone(){return"undefined"!=typeof
Zone&&!0===Zone.current.get("isAngularZone")}static
assertInAngularZone(){if(!nt.isInAngularZone())throw new Error("Expected to be in
Angular Zone, but it is not!")}static assertNotInAngularZone(){if(nt.isInAngu
larZone())throw new Error("Expected to not be in Angular Zone, but it
is!")}run(i,e,n){return this._inner.run(i,e,n)}runTask(i,e,n,s){const
r=this._inner,o=r.scheduleEventTask("NgZoneEvent: "+s,i,OR,Hc,Hc);try{return
r.runTask(o,e,n)}finally{r.cancelTask(o)}}runGuarded(i,e,n){return
this._inner.runGuarded(i,e,n)}runOutsideAngular(i){return this._outer.run(i)}}const
OR={};function
sm(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
rm(t){t.hasPendingMicrotasks=!!(t._hasPendingMicrotasks||(t.shouldCoalesceEventChangeDetection||t.shouldCoalesceRunChangeDetection)&&-1!==t.lastRequestAnimationFrameId)}function
GC(t){t._nesting++,t.isStable&&(t.isStable=!1,t.onUnstable.emit(null))}function
UC(t){t._nesting--,sm(t)}class
FR{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isSta
ble=!0,this.onUnstable=new H,this.onMicrotaskEmpty=new H,this.onStable=new
H,this.onError=new H}run(i,e,n){return i.apply(e,n)}runGuarded(i,e,n){return
i.apply(e,n)}runOutsideAngular(i){return i()}runTask(i,e,n,s){return i.apply(e,n)}}let
om=(()=>{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:()=>{nt.assertNotInAngularZone(),im(()=>{this._isZoneStable=!0,this._runCallbacksIfReady()})}})})}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())im(()=>{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(n=>!n.updateCb||!n.updateCb(e)||(clearTimeout(n.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,n,s){let
r=-1;n&&n>0&&(r=setTimeout(()=>{this._callbacks=this._callbacks.filter(o=>o.timeoutId!==r),e(this._didWork,this.getPendingTasks())},n)),this._callbacks.push({doneCb:e,timeoutId:r,updateCb:s})}whenStable(e,n,s){if(s&&!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,n,s),this._runCallbacksIfReady()}getPendingRequestCount(){return
this._pendingCount}findProviders(e,n,s){return[]}}return t.\u0275fac=function(e){return
new(e||t)(K(nt))},t.\u0275prov=X({token:t,factory:t.\u0275fac}),t})(),NR=(()=>{class
t{constructor(){this._applications=new
Map,am.addToWindow(this)}registerApplication(e,n){this._applications.set(e,n)}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())}findTestabilityInTree(e,n=!0){return
am.findTestabilityInTree(this,e,n)}}return t.\u0275fac=function(e){return
new(e||t)},t.\u0275prov=X({token:t,factory:t.\u0275fac,providedIn:"platform"}),t})();class
VR{addToWindow(i){}findTestabilityInTr
ee(i,e,n){return null}}let am=new VR,hr=null;const zC=new
be("AllowMultipleToken"),jC=new be("PlatformOnDestroy");class
$C{constructor(i,e){this.name=i,this.token=e}}function WC(t,i,e=[]){const n=`Platform:
${i}`,s=new be(n);return(r=[])=>{let o=lm();if(!o||o.injector.get(zC,!1)){const
u=[...e,...r,{provide:s,useValue:!0}];t?t(u):function
GR(t){if(hr&&!hr.get(zC,!1))throw new re(400,"");hr=t;const
i=t.get(KC),e=t.get(BC,null);e&&e.forEach(n=>n())}(function zR(t=[],i){return
En.create({name:i,providers:[{provide:hh,useValue:"platform"},{provide:jC,useValue:()=>hr=null},...t]})}(u,n))}return
function UR(t){const i=lm();if(!i)throw new re(401,"");return i}()}}function
lm(){var t;return null!==(t=null==hr?void 0:hr.get(KC))&&void 0!==t?t:null}let
KC=(()=>{class
t{constructor(e){this._injector=e,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(e,n){const
u=function jR(t,i){let e;return e="noop"===t?new
FR:("zone.js"===t?void 0:t)||new nt({enableLongSta
ckTrace:!1,shouldCoalesceEventChangeDetection:!!(null==i?void
0:i.ngZoneEventCoalescing),shouldCoalesceRunChangeDetection:!!(null==i?void
0:i.ngZoneRunCoalescing)}),e}(n?n.ngZone:void
0,{ngZoneEventCoalescing:n&&n.ngZoneEventCoalescing||!1,ngZoneRunCoalescing:n&&n.ngZoneRunCoalescing||!1}),h=[{provide:nt,useValue:u}];return
u.run(()=>{const
b=En.create({providers:h,parent:this.injector,name:e.moduleType.name}),y=e.create(b),w=y.injector.get(xa,null);if(!w)throw
new re(402,"");return u.runOutsideAngular(()=>{const
M=u.onError.subscribe({next:E=>{w.handleError(E)}});y.onDestroy(()=>{um(this._modules,y),M.unsubscribe()})}),function
$R(t,i,e){try{const n=e();return Ra(n)?n.catch(s=>{throw
i.runOutsideAngular(()=>t.handleError(s)),s}):n}catch(n){throw
i.runOutsideAngular(()=>t.handleError(n)),n}}(w,u,()=>{const
M=y.injector.get(tm);return M.runInitializers(),M.donePromise.then(()=>(function
A3(t){Jn(t,"Expected localeId to be defined"),"string"==typeof
t&&(k1=t.toLowerCase().replace(/_/g
,"-"))}(y.injector.get(qs,Rc)||Rc),this._moduleDoBootstrap(y),y))})})}bootstrapModule(e,n=[]){const
s=QC({},n);return function HR(t,i,e){const n=new Bh(e);return
Promise.resolve(n)}(0,0,e).then(r=>this.bootstrapModuleFactory(r,s))}_moduleDoBootstrap(e){const
n=e.injector.get(cm);if(e._bootstrapComponents.length>0)e._bootstrapComponents.forEach(s=>n.bootstrap(s));else{if(!e.instance.ngDoBootstrap)throw
new
re(403,"");e.instance.ngDoBootstrap(n)}this._modules.push(e)}onDestroy(e){this._destroyListeners.push(e)}get
injector(){return this._injector}destroy(){if(this._destroyed)throw new
re(404,"");this._modules.slice().forEach(n=>n.destroy()),this._destroyListeners.forEach(n=>n());const
e=this._injector.get(jC,null);null==e||e(),this._destroyed=!0}get destroyed(){return
this._destroyed}}return t.\u0275fac=function(e){return
new(e||t)(K(En))},t.\u0275prov=X({token:t,factory:t.\u0275fac,providedIn:"platform"}),t})();function
QC(t,i){return Array.isArray(i)?i.reduce(QC,t):Object.assign(Obj
ect.assign({},t),i)}let cm=(()=>{class
t{constructor(e,n,s,r){this._zone=e,this._injector=n,this._exceptionHandler=s,this._initStatus=r,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
o=new
Je(h=>{this._stable=this._zone.isStable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks,this._zone.runOutsideAngular(()=>{h.next(this._stable),h.complete()})}),u=new
Je(h=>{let
b;this._zone.runOutsideAngular(()=>{b=this._zone.onStable.subscribe(()=>{nt.assertNotInAngularZone(),im(()=>{!this._stable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks&&(this._stable=!0,h.next(!0))})})});const
y=this._zone.onUnstable.subscribe(()=>{nt.assertInAngularZone(),this._stable&&(this._stable=!1,this._zone.runOutsideAngular(()=>{h.next(!1)}))});return()=>{b.unsubscribe(),y.un
subscribe()}});this.isStable=function YS(...t){let
i=Number.POSITIVE_INFINITY,e=null,n=t[t.length-1];return
Vr(n)?(e=t.pop(),t.length>1&&"number"==typeof
t[t.length-1]&&(i=t.pop())):"number"==typeof
n&&(i=t.pop()),null===e&&1===t.length&&t[0]instanceof
Je?t[0]:ea(i)(Pd(t,e))}(o,u.pipe(function ox(){return t=>Fd()(function ix(t,i){return
function(n){let s;if(s="function"==typeof t?t:function(){return
t},"function"==typeof i)return n.lift(new sx(s,i));const
r=Object.create(n,ex);return
r.source=n,r.subjectFactory=s,r}}(rx)(t))}()))}bootstrap(e,n){if(!this._initStatus.done)throw
new re(405,"");let s;s=e instanceof
X1?e:this._injector.get(Va).resolveComponentFactory(e),this.componentTypes.push(s.componentType);const
r=function qR(t){return t.isBoundToModule}(s)?void
0:this._injector.get(_s),u=s.create(En.NULL,[],n||s.selector,r),h=u.location.nativeElement,b=u.injector.get(om,null),y=b&&u.injector.get(NR);return
b&&y&&y.registerApplication(h,b),u.onDestroy(()=>{this.detachView(u.hostView
),um(this.components,u),y&&y.unregisterApplication(h)}),this._loadComponent(u),u}tick(){if(this._runningTick)throw
new re(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
n=e;this._views.push(n),n.attachToAppRef(this)}detachView(e){const
n=e;um(this._views,n),n.detachFromAppRef()}_loadComponent(e){this.attachView(e.hostView),this.tick(),this.components.push(e),this._injector.get(HC,[]).concat(this._bootstrapListeners).forEach(s=>s(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)(K(nt),K(En),K(xa),K(tm))},t.\u0275prov=X({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();function
um(t,i){const e=t.indexOf(i);e>-1&&t.splice(e,1)}let
YC=!0,ZC=!1,rt=(()=>{class t{}return t.__NG_
ELEMENT_ID__=JR,t})();function JR(t){return function
YR(t,i,e){if(Wl(t)&&!e){const n=Xn(t.index,i);return new qa(n,n)}return
47&t.type?new qa(i[16],i):null}(rn(),$(),16==(16&t))}class
ny{constructor(){}supports(i){return Ia(i)}create(i){return new iL(i)}}const
nL=(t,i)=>i;class
iL{constructor(i){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=i||nL}forEachItem(i){let
e;for(e=this._itHead;null!==e;e=e._next)i(e)}forEachOperation(i){let
e=this._itHead,n=this._removalsHead,s=0,r=null;for(;e||n;){const
o=!n||e&&e.currentIndex<sy(n,s,r)?e:n,u=sy(o,s,r),h=o.currentIndex;if(o===n)s--,n=n._nextRemoved;else
if(e=e._next,null==o.previousIndex)s++;else{r||(r=[]);const b=u-s,y=h-s;if(b!=y){for(let
M=0;
M<b;M++){const
E=M<r.length?r[M]:r[M]=0,L=E+M;y<=L&&L<b&&(r[M]=E+1)}r[o.previousIndex]=y-b}}u!==h&&i(o,u,h)}}forEachPreviousItem(i){let
e;for(e=this._previousItHead;null!==e;e=e._nextPrevious)i(e)}forEachAddedItem(i){let
e;for(e=this._additionsHead;null!==e;e=e._nextAdded)i(e)}forEachMovedItem(i){let
e;for(e=this._movesHead;null!==e;e=e._nextMoved)i(e)}forEachRemovedItem(i){let
e;for(e=this._removalsHead;null!==e;e=e._nextRemoved)i(e)}forEachIdentityChange(i){let
e;for(e=this._identityChangesHead;null!==e;e=e._nextIdentityChange)i(e)}diff(i){if(null==i&&(i=[]),!Ia(i))throw
new re(900,"");return
this.check(i)?this:null}onDestroy(){}check(i){this._reset();let
s,r,o,e=this._itHead,n=!1;if(Array.isArray(i)){this.length=i.length;for(let
u=0;u<this.length;u++)r=i[u],o=this._trackByFn(u,r),null!==e&&Object.is(e.trackById,o)?(n&&(e=this._verifyReinsertion(e,r,o,u)),Object.is(e.item,r)||this._addIdentityChange(e,r)):(e=this._mismatch(e,r,o,u),n=!0),e=e._next}else
s=0,function CI(t,i){if(Arra
y.isArray(t))for(let e=0;e<t.length;e++)i(t[e]);else{const e=t[lo()]();let
n;for(;!(n=e.next()).done;)i(n.value)}}(i,u=>{o=this._trackByFn(s,u),null!==e&&Object.is(e.trackById,o)?(n&&(e=this._verifyReinsertion(e,u,o,s)),Object.is(e.item,u)||this._addIdentityChange(e,u)):(e=this._mismatch(e,u,o,s),n=!0),e=e._next,s++}),this.length=s;return
this._truncate(e),this.collection=i,this.isDirty}get isDirty(){return
null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let
i;for(i=this._previousItHead=this._itHead;null!==i;i=i._next)i._nextPrevious=i._next;for(i=this._additionsHead;null!==i;i=i._nextAdded)i.previousIndex=i.currentIndex;for(this._additionsHead=this._additionsTail=null,i=this._movesHead;null!==i;i=i._nextMoved)i.previousIndex=i.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(i,e,n,s)
{let r;return
null===i?r=this._itTail:(r=i._prev,this._remove(i)),null!==(i=null===this._unlinkedRecords?null:this._unlinkedRecords.get(n,null))?(Object.is(i.item,e)||this._addIdentityChange(i,e),this._reinsertAfter(i,r,s)):null!==(i=null===this._linkedRecords?null:this._linkedRecords.get(n,s))?(Object.is(i.item,e)||this._addIdentityChange(i,e),this._moveAfter(i,r,s)):i=this._addAfter(new
sL(e,n),r,s),i}_verifyReinsertion(i,e,n,s){let
r=null===this._unlinkedRecords?null:this._unlinkedRecords.get(n,null);return
null!==r?i=this._reinsertAfter(r,i._prev,s):i.currentIndex!=s&&(i.currentIndex=s,this._addToMoves(i,s)),i}_truncate(i){for(;null!==i;){const
e=i._next;this._addToRemovals(this._unlink(i)),i=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._nextRemove
d=null),null!==this._identityChangesTail&&(this._identityChangesTail._nextIdentityChange=null)}_reinsertAfter(i,e,n){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(i);const
s=i._prevRemoved,r=i._nextRemoved;return
null===s?this._removalsHead=r:s._nextRemoved=r,null===r?this._removalsTail=s:r._prevRemoved=s,this._insertAfter(i,e,n),this._addToMoves(i,n),i}_moveAfter(i,e,n){return
this._unlink(i),this._insertAfter(i,e,n),this._addToMoves(i,n),i}_addAfter(i,e,n){return
this._insertAfter(i,e,n),this._additionsTail=null===this._additionsTail?this._additionsHead=i:this._additionsTail._nextAdded=i,i}_insertAfter(i,e,n){const
s=null===e?this._itHead:e._next;return
i._next=s,i._prev=e,null===s?this._itTail=i:s._prev=i,null===e?this._itHead=i:e._next=i,null===this._linkedRecords&&(this._linkedRecords=new
iy),this._linkedRecords.put(i),i.currentIndex=n,i}_remove(i){return
this._addToRemovals(this._unlink(i))}_unlink(i){null!==this._linkedRecords&&this._linkedRecords.remove(i);const
e=i._prev,n=i._next;return
null===e?this._itHead=n:e._next=n,null===n?this._itTail=e:n._prev=e,i}_addToMoves(i,e){return
i.previousIndex===e||(this._movesTail=null===this._movesTail?this._movesHead=i:this._movesTail._nextMoved=i),i}_addToRemovals(i){return
null===this._unlinkedRecords&&(this._unlinkedRecords=new
iy),this._unlinkedRecords.put(i),i.currentIndex=null,i._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=i,i._prevRemoved=null):(i._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=i),i}_addIdentityChange(i,e){return
i.item=e,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=i:this._identityChangesTail._nextIdentityChange=i,i}}class
sL{constructor(i,e){this.item=i,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._next
Added=null,this._nextMoved=null,this._nextIdentityChange=null}}class
rL{constructor(){this._head=null,this._tail=null}add(i){null===this._head?(this._head=this._tail=i,i._nextDup=null,i._prevDup=null):(this._tail._nextDup=i,i._prevDup=this._tail,i._nextDup=null,this._tail=i)}get(i,e){let
n;for(n=this._head;null!==n;n=n._nextDup)if((null===e||e<=n.currentIndex)&&Object.is(n.trackById,i))return
n;return null}remove(i){const e=i._prevDup,n=i._nextDup;return
null===e?this._head=n:e._nextDup=n,null===n?this._tail=e:n._prevDup=e,null===this._head}}class
iy{constructor(){this.map=new Map}put(i){const e=i.trackById;let
n=this.map.get(e);n||(n=new rL,this.map.set(e,n)),n.add(i)}get(i,e){const
s=this.map.get(i);return s?s.get(i,e):null}remove(i){const e=i.trackById;return
this.map.get(e).remove(i)&&this.map.delete(e),i}get isEmpty(){return
0===this.map.size}clear(){this.map.clear()}}function sy(t,i,e){const
n=t.previousIndex;if(null===n)return n;let s=0;return
e&&n<e.length&&(s=e[n]),n+i+s}cl
ass ry{constructor(){}supports(i){return i instanceof Map||vh(i)}create(){return new
oL}}class oL{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(i){let
e;for(e=this._mapHead;null!==e;e=e._next)i(e)}forEachPreviousItem(i){let
e;for(e=this._previousMapHead;null!==e;e=e._nextPrevious)i(e)}forEachChangedItem(i){let
e;for(e=this._changesHead;null!==e;e=e._nextChanged)i(e)}forEachAddedItem(i){let
e;for(e=this._additionsHead;null!==e;e=e._nextAdded)i(e)}forEachRemovedItem(i){let
e;for(e=this._removalsHead;null!==e;e=e._nextRemoved)i(e)}diff(i){if(i){if(!(i instanceof
Map||vh(i)))throw new re(900,"")}else i=new Map;return
this.check(i)?this:null}onDestroy(){}check(i){this._reset();
let
e=this._mapHead;if(this._appendAfter=null,this._forEach(i,(n,s)=>{if(e&&e.key===s)this._maybeAddToChanges(e,n),this._appendAfter=e,e=e._next;else{const
r=this._getOrCreateRecordForKey(s,n);e=this._insertBeforeOrAppend(e,r)}}),e){e._prev&&(e._prev._next=null),this._removalsHead=e;for(let
n=e;null!==n;n=n._nextRemoved)n===this._mapHead&&(this._mapHead=null),this._records.delete(n.key),n._nextRemoved=n._next,n.previousValue=n.currentValue,n.currentValue=null,n._prev=null,n._next=null}return
this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(i,e){if(i){const
n=i._prev;return
e._next=i,e._prev=n,i._prev=e,n&&(n._next=e),i===this._mapHead&&(this._mapHead=e),this._appendAfter=i,i}return
this._appendAfter?(this._appendAfter._next=e,e._prev=this._appendAfter):this._mapHead=e,this._appendAfter=e,null}_getOrCreateRecordForKey(i,e){if(this._records.has(i)){const
s=this._records.get(i);this._m
aybeAddToChanges(s,e);const r=s._prev,o=s._next;return
r&&(r._next=o),o&&(o._prev=r),s._next=null,s._prev=null,s}const n=new
aL(i);return
this._records.set(i,n),n.currentValue=e,this._addToAdditions(n),n}_reset(){if(this.isDirty){let
i;for(this._previousMapHead=this._mapHead,i=this._previousMapHead;null!==i;i=i._next)i._nextPrevious=i._next;for(i=this._changesHead;null!==i;i=i._nextChanged)i.previousValue=i.currentValue;for(i=this._additionsHead;null!=i;i=i._nextAdded)i.previousValue=i.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(i,e){Object.is(e,i.currentValue)||(i.previousValue=i.currentValue,i.currentValue=e,this._addToChanges(i))}_addToAdditions(i){null===this._additionsHead?this._additionsHead=this._additionsTail=i:(this._additionsTail._nextAdded=i,this._additionsTail=i)}_addToChanges(i){null===this._changesHead?this._changesHead=this._changesTail=i:(this._changesTail._nextChanged=
i,this._changesTail=i)}_forEach(i,e){i instanceof
Map?i.forEach(e):Object.keys(i).forEach(n=>e(i[n],n))}}class
aL{constructor(i){this.key=i,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
oy(){return new $a([new ny])}let $a=(()=>{class
t{constructor(e){this.factories=e}static create(e,n){if(null!=n){const
s=n.factories.slice();e=e.concat(s)}return new t(e)}static
extend(e){return{provide:t,useFactory:n=>t.create(e,n||oy()),deps:[[t,new _a,new
Ns]]}}find(e){const n=this.factories.find(s=>s.supports(e));if(null!=n)return n;throw
new re(901,"")}}return
t.\u0275prov=X({token:t,providedIn:"root",factory:oy}),t})();function
ay(){return new Wa([new ry])}let Wa=(()=>{class
t{constructor(e){this.factories=e}static create(e,n){if(n){const
s=n.factories.slice();e=e.concat(s)}return new t(e)}static
extend(e){return{provide:t,useFactory:n=>t.create(e,n||ay()),deps:[
[t,new _a,new Ns]]}}find(e){const n=this.factories.find(r=>r.supports(e));if(n)return
n;throw new re(901,"")}}return
t.\u0275prov=X({token:t,providedIn:"root",factory:ay}),t})();const
uL=WC(null,"core",[]);let dL=(()=>{class t{constructor(e){}}return
t.\u0275fac=function(e){return
new(e||t)(K(cm))},t.\u0275mod=he({type:t}),t.\u0275inj=ue({}),t})(),zc=null;function
ns(){return zc}const Xt=new be("DocumentToken");let fr=(()=>{class
t{historyGo(e){throw new Error("Not implemented")}}return
t.\u0275fac=function(e){return
new(e||t)},t.\u0275prov=X({token:t,factory:function(){return function fL(){return
K(ly)}()},providedIn:"platform"}),t})();const gL=new be("Location
Initialized");let ly=(()=>{class t extends
fr{constructor(e){super(),this._doc=e,this._init()}_init(){this.location=window.location,this._history=window.history}getBaseHrefFromDOM(){return
ns().getBaseHref(this._doc)}onPopState(e){const
n=ns().getGlobalEventTarget(this._doc,"window");return
n.addEventListener("popstate",e,!1
),()=>n.removeEventListener("popstate",e)}onHashChange(e){const
n=ns().getGlobalEventTarget(this._doc,"window");return
n.addEventListener("hashchange",e,!1),()=>n.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,n,s){cy()?this._history.pushState(e,n,s):this.location.hash=s}replaceState(e,n,s){cy()?this._history.replaceState(e,n,s):this.location.hash=s}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)(K(Xt))},t.\u0275prov=X({token:t,factory:function(){return function _L(){return
new ly(K(Xt))}()},providedIn:"platform"}),t})();funct
ion cy(){return!!window.history.pushState}function fm(t,i){if(0==t.length)return
i;if(0==i.length)return t;let e=0;return
t.endsWith("/")&&e++,i.startsWith("/")&&e++,2==e?t+i.substring(1):1==e?t+i:t+"/"+i}function
uy(t){const i=t.match(/#|\?|$/),e=i&&i.index||t.length;return
t.slice(0,e-("/"===t[e-1]?1:0))+t.slice(e)}function bs(t){return
t&&"?"!==t[0]?"?"+t:t}let ko=(()=>{class
t{historyGo(e){throw new Error("Not implemented")}}return
t.\u0275fac=function(e){return
new(e||t)},t.\u0275prov=X({token:t,factory:function(){return function bL(t){const
i=K(Xt).location;return new
dy(K(fr),i&&i.origin||"")}()},providedIn:"root"}),t})();const
gm=new be("appBaseHref");let dy=(()=>{class t extends
ko{constructor(e,n){if(super(),this._platformLocation=e,this._removeListenerFns=[],null==n&&(n=this._platformLocation.getBaseHrefFromDOM()),null==n)throw
new Error("No base href set. Please provide a value for the APP_BASE_HREF token or
add a base element to the document.");this._baseHref=n}ngOnDest
roy(){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 fm(this._baseHref,e)}path(e=!1){const
n=this._platformLocation.pathname+bs(this._platformLocation.search),s=this._platformLocation.hash;return
s&&e?`${n}${s}`:n}pushState(e,n,s,r){const
o=this.prepareExternalUrl(s+bs(r));this._platformLocation.pushState(e,n,o)}replaceState(e,n,s,r){const
o=this.prepareExternalUrl(s+bs(r));this._platformLocation.replaceState(e,n,o)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}historyGo(e=0){var
n,s;null===(s=(n=this._platformLocation).historyGo)||void 0===s||s.call(n,e)}}return
t.\u0275fac=function(e){return
new(e||t)(K(fr),K(gm,8))},t.\u0275prov=X({token:t,factory:t.\u0275fac}),t})(),vL=(()=>{class
t extends ko{constructor(e,n){super(),this._platformLocation=e
,this._baseHref="",this._removeListenerFns=[],null!=n&&(this._baseHref=n)}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 n=this._platformLocation.hash;return
null==n&&(n="#"),n.length>0?n.substring(1):n}prepareExternalUrl(e){const
n=fm(this._baseHref,e);return n.length>0?"#"+n:n}pushState(e,n,s,r){let
o=this.prepareExternalUrl(s+bs(r));0==o.length&&(o=this._platformLocation.pathname),this._platformLocation.pushState(e,n,o)}replaceState(e,n,s,r){let
o=this.prepareExternalUrl(s+bs(r));0==o.length&&(o=this._platformLocation.pathname),this._platformLocation.replaceState(e,n,o)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}historyGo(e=0){var
n,s;null===(s=(n=this._platformLocation).historyGo)||void 0===s||s.call(n,e)}}return
t.\u0275fac=function(e){re
turn
new(e||t)(K(fr),K(gm,8))},t.\u0275prov=X({token:t,factory:t.\u0275fac}),t})(),_m=(()=>{class
t{constructor(e,n){this._subject=new
H,this._urlChangeListeners=[],this._platformStrategy=e;const
s=this._platformStrategy.getBaseHref();this._platformLocation=n,this._baseHref=uy(py(s)),this._platformStrategy.onPopState(r=>{this._subject.emit({url:this.path(!0),pop:!0,state:r.state,type:r.type})})}path(e=!1){return
this.normalize(this._platformStrategy.path(e))}getState(){return
this._platformLocation.getState()}isCurrentPathEqualTo(e,n=""){return
this.path()==this.normalize(e+bs(n))}normalize(e){return t.stripTrailingSlash(function
yL(t,i){return
t&&i.startsWith(t)?i.substring(t.length):i}(this._baseHref,py(e)))}prepareExternalUrl(e){return
e&&"/"!==e[0]&&(e="/"+e),this._platformStrategy.prepareExternalUrl(e)}go(e,n="",s=null){this._platformStrategy.pushState(s,"",e,n),this._notifyUrlChangeListeners(this.prepareExternalUrl(e+bs(n)),s)}replaceState(e,n="",s=null){this._platformStrategy
.replaceState(s,"",e,n),this._notifyUrlChangeListeners(this.prepareExternalUrl(e+bs(n)),s)}forward(){this._platformStrategy.forward()}back(){this._platformStrategy.back()}historyGo(e=0){var
n,s;null===(s=(n=this._platformStrategy).historyGo)||void
0===s||s.call(n,e)}onUrlChange(e){this._urlChangeListeners.push(e),this._urlChangeSubscription||(this._urlChangeSubscription=this.subscribe(n=>{this._notifyUrlChangeListeners(n.url,n.state)}))}_notifyUrlChangeListeners(e="",n){this._urlChangeListeners.forEach(s=>s(e,n))}subscribe(e,n,s){return
this._subject.subscribe({next:e,error:n,complete:s})}}return
t.normalizeQueryParams=bs,t.joinWithSlash=fm,t.stripTrailingSlash=uy,t.\u0275fac=function(e){return
new(e||t)(K(ko),K(fr))},t.\u0275prov=X({token:t,factory:function(){return function
CL(){return new _m(K(ko),K(fr))}()},providedIn:"root"}),t})();function
py(t){return t.replace(/\/index.html$/,"")}var
Wn=(()=>((Wn=Wn||{})[Wn.Decimal=0]="Decimal",Wn[Wn.Percent=1]="Percent",Wn[Wn.Currency=2]="C
urrency",Wn[Wn.Scientific=3]="Scientific",Wn))(),ge=(()=>((ge=ge||{})[ge.Decimal=0]="Decimal",ge[ge.Group=1]="Group",ge[ge.List=2]="List",ge[ge.PercentSign=3]="PercentSign",ge[ge.PlusSign=4]="PlusSign",ge[ge.MinusSign=5]="MinusSign",ge[ge.Exponential=6]="Exponential",ge[ge.SuperscriptingExponent=7]="SuperscriptingExponent",ge[ge.PerMille=8]="PerMille",ge[ge.Infinity=9]="Infinity",ge[ge.NaN=10]="NaN",ge[ge.TimeSeparator=11]="TimeSeparator",ge[ge.CurrencyDecimal=12]="CurrencyDecimal",ge[ge.CurrencyGroup=13]="CurrencyGroup",ge))();function
Ci(t,i){const e=Hn(t),n=e[te.NumberSymbols][i];if(void
0===n){if(i===ge.CurrencyDecimal)return
e[te.NumberSymbols][ge.Decimal];if(i===ge.CurrencyGroup)return
e[te.NumberSymbols][ge.Group]}return n}const WL=/^(\d+)?\.((\d+)(-(\d+))?)?$/;function
xm(t){const i=parseInt(t);if(isNaN(i))throw new Error("Invalid integer literal when
parsing "+t);return i}function yy(t,i){i=encodeURIComponent(i);for(const e of
t.split(";")){const n=e.indexOf("="),[s,r]=-1==
n?[e,""]:[e.slice(0,n),e.slice(n+1)];if(s.trim()===i)return
decodeURIComponent(r)}return null}let Le=(()=>{class
t{constructor(e,n,s,r){this._iterableDiffers=e,this._keyValueDiffers=n,this._ngEl=s,this._renderer=r,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&&(Ia(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._keyValueDiffer.diff(this._rawClass);e&&this._applyKeyValueChanges(e)}}_applyKeyValueChanges(e){e.forEachAddedItem(n=>this._toggleClass(n.key,n.currentValue)),e.forEachChangedItem(n=>this._toggleClass(n.key,n.currentValue)),e.forEachRemovedItem(n=>{n.previousValue&&this._toggleClass(n.key,!1)})}_applyIterableChanges(e){e.forEachAddedItem(n=>{if("string"!=typeof
n.item)throw new Error(`NgClass can only toggle CSS classes expressed as strings, got
${ft(n.item)}`);this._toggleClass(n.item,!0)}),e.forEachRemovedItem(n=>this._toggleClass(n.item,!1))}_applyClasses(e){e&&(Array.isArray(e)||e
instanceof
Set?e.forEach(n=>this._toggleClass(n,!0)):Object.keys(e).forEach(n=>this._toggleClass(n,!!e[n])))}_removeClasses(e){e&&(Array.isArray(e)||e
instanceof
Set?e.forEach(n=>this._toggleClass(n,!1)):Object.keys(e).forEach(n=>this._toggleClass(n,!1)))}_toggleClass(e,n){(e=e.trim())&&e.split(/\s+/g).forEach(s=>{n?this._renderer.addClass(this._ngEl.nativeEle
ment,s):this._renderer.removeClass(this._ngEl.nativeElement,s)})}}return
t.\u0275fac=function(e){return
new(e||t)(D($a),D(Wa),D(De),D(gn))},t.\u0275dir=le({type:t,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"}}),t})();class
o4{constructor(i,e,n,s){this.$implicit=i,this.ngForOf=e,this.index=n,this.count=s}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 at=(()=>{class
t{constructor(e,n,s){this._viewContainer=e,this._template=n,this._differs=s,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;!this._differ&&e&&(this._differ=this._differs.find(e).create(this.ngForTrackBy))}if(this._differ){const
e=th
is._differ.diff(this._ngForOf);e&&this._applyChanges(e)}}_applyChanges(e){const
n=this._viewContainer;e.forEachOperation((s,r,o)=>{if(null==s.previousIndex)n.createEmbeddedView(this._template,new
o4(s.item,this._ngForOf,-1,-1),null===o?void 0:o);else if(null==o)n.remove(null===r?void
0:r);else if(null!==r){const u=n.get(r);n.move(u,o),wy(u,s)}});for(let
s=0,r=n.length;s<r;s++){const
u=n.get(s).context;u.index=s,u.count=r,u.ngForOf=this._ngForOf}e.forEachIdentityChange(s=>{wy(n.get(s.currentIndex),s)})}static
ngTemplateContextGuard(e,n){return!0}}return t.\u0275fac=function(e){return
new(e||t)(D(vi),D(bi),D($a))},t.\u0275dir=le({type:t,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"}}),t})();function
wy(t,i){t.context.$implicit=i.item}let Q=(()=>{class
t{constructor(e,n){this._viewContainer=e,this._context=new
a4,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=n
ull,this._thenTemplateRef=n}set
ngIf(e){this._context.$implicit=this._context.ngIf=e,this._updateView()}set
ngIfThen(e){Ty("ngIfThen",e),this._thenTemplateRef=e,this._thenViewRef=null,this._updateView()}set
ngIfElse(e){Ty("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,n){return!0}}return t.\u0275fac=function(e){return
new(e||t)(D(vi),D(bi))},t.\u0275dir=le({type:t,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"}}),t})();class
a4{constructor(){this.$implicit=null,this.n
gIf=null}}function Ty(t,i){if(i&&!i.createEmbeddedView)throw new Error(`${t} must
be a TemplateRef, but received '${ft(i)}'.`)}class
Mm{constructor(i,e){this._viewContainerRef=i,this._templateRef=e,this._created=!1}create(){this._created=!0,this._viewContainerRef.createEmbeddedView(this._templateRef)}destroy(){this._created=!1,this._viewContainerRef.clear()}enforceState(i){i&&!this._created?this.create():!i&&this._created&&this.destroy()}}let
gr=(()=>{class
t{constructor(){this._defaultUsed=!1,this._caseCount=0,this._lastCaseCheckIndex=0,this._lastCasesMatched=!1}set
ngSwitch(e){this._ngSwitch=e,0===this._caseCount&&this._updateDefaultCases(!0)}_addCase(){return
this._caseCount++}_addDefault(e){this._defaultViews||(this._defaultViews=[]),this._defaultViews.push(e)}_matchCase(e){const
n=e==this._ngSwitch;return
this._lastCasesMatched=this._lastCasesMatched||n,this._lastCaseCheckIndex++,this._lastCaseCheckIndex===this._caseCount&&(this._updateDefaultCases(!this._lastCasesMatched),this
._lastCaseCheckIndex=0,this._lastCasesMatched=!1),n}_updateDefaultCases(e){if(this._defaultViews&&e!==this._defaultUsed){this._defaultUsed=e;for(let
n=0;n<this._defaultViews.length;n++)this._defaultViews[n].enforceState(e)}}}return
t.\u0275fac=function(e){return
new(e||t)},t.\u0275dir=le({type:t,selectors:[["","ngSwitch",""]],inputs:{ngSwitch:"ngSwitch"}}),t})(),Ja=(()=>{class
t{constructor(e,n,s){this.ngSwitch=s,s._addCase(),this._view=new
Mm(e,n)}ngDoCheck(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase))}}return
t.\u0275fac=function(e){return
new(e||t)(D(vi),D(bi),D(gr,9))},t.\u0275dir=le({type:t,selectors:[["","ngSwitchCase",""]],inputs:{ngSwitchCase:"ngSwitchCase"}}),t})(),km=(()=>{class
t{constructor(e,n,s){s._addDefault(new Mm(e,n))}}return t.\u0275fac=function(e){return
new(e||t)(D(vi),D(bi),D(gr,9))},t.\u0275dir=le({type:t,selectors:[["","ngSwitchDefault",""]]}),t})(),lt=(()=>{class
t{constructor(e,n,s){this._ngEl=e,this._differs=n,this._renderer=s,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,n){const[s,r]=e.split(".");null!=(n=null!=n&&r?`${n}${r}`:n)?this._renderer.setStyle(this._ngEl.nativeElement,s,n):this._renderer.removeStyle(this._ngEl.nativeElement,s)}_applyChanges(e){e.forEachRemovedItem(n=>this._setStyle(n.key,null)),e.forEachAddedItem(n=>this._setStyle(n.key,n.currentValue)),e.forEachChangedItem(n=>this._setStyle(n.key,n.currentValue))}}return
t.\u0275fac=function(e){return
new(e||t)(D(De),D(Wa),D(gn))},t.\u0275dir=le({type:t,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"}}),t})(),Rt=(()=>{class
t{constructor(e){this._viewContainerRef=e,this._viewRef=null,this.ngTemplateOutletContext=null,this.ngTemplateOutlet=null}ngOnChanges(e){if(e.ngTemplateOutlet){const
n=this._viewContainerRef;this._viewRef&&n.remove(n.indexOf(thi
s._viewRef)),this._viewRef=this.ngTemplateOutlet?n.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)(D(vi))},t.\u0275dir=le({type:t,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet"},features:[fn]}),t})();function
Vi(t,i){return new re(2100,"")}class c4{createSubscription(i,e){return
i.subscribe({next:e,error:n=>{throw
n}})}dispose(i){i.unsubscribe()}onDestroy(i){i.unsubscribe()}}class
u4{createSubscription(i,e){return i.then(e,n=>{throw
n})}dispose(i){}onDestroy(i){}}const d4=new u4,p4=new c4;let xy=(()=>{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,n=>this._updateLatestValue(e,n))}_selectStrategy(e){if(Ra(e))return
d4;if(qv(e))return p4;throw
Vi()}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null}_updateLatestValue(e,n){e===this._obj&&(this._latestValue=n,this._ref.markForCheck())}}return
t.\u0275fac=function(e){return
new(e||t)(D(rt,16))},t.\u0275pipe=An({name:"async",type:t,pure:!1}),t})(),eu=(()=>{class
t{constructor(e){this._locale=e}transform(e,n,s){if(!function
Im(t){return!(null==t||""===t||t!=t)}(e))return
null;s=s||this._locale;try{return function XL(t,i,e){return function
Tm(t,i,e,n,s,r,o=!1){let u="",h=!1;if(isFinite(t)){let b=function t4(t){let
n,s,r,o,u,i=Math.abs(t)+"",e=0;for((s=i.indexOf("."))>-1&&(i=i.replace(".","")),(
r=i.search(/e/i))>0?(s<0&&(s=r),s+=+i.slice(r+1),i=i.substring(0,r)):s<0&&(s=i.length),r=0;"0"===i.charAt(r);r++);if(r===(u=i.length))n=[0],s=1;else{for(u--;"0"===i.charAt(u);)u--;for(s-=r,n=[],o=0;r<=u;r++,o++)n[o]=Number(i.charAt(r))}return
s>22&&(n=n.splice(0,21),e=s-1,s=1),{digits:n,exponent:e,integerLen:s}}(t);o&&(b=function
e4(t){if(0===t.digits[0])return t;const i=t.digits.length-t.integerLen;return
t.exponent?t.exponent+=2:(0===i?t.digits.push(0,0):1===i&&t.digits.push(0),t.integerLen+=2),t}(b));let
y=i.minInt,w=i.minFrac,M=i.maxFrac;if(r){const P=r.match(WL);if(null===P)throw new
Error(`${r} is not a valid digit info`);const
J=P[1],se=P[3],ke=P[5];null!=J&&(y=xm(J)),null!=se&&(w=xm(se)),null!=ke?M=xm(ke):null!=se&&w>M&&(M=w)}!function
n4(t,i,e){if(i>e)throw new Error(`The minimum number of digits after fraction (${i}) is
higher than the maximum (${e}).`);let n=t.digits,s=n.length-t.integerLen;const
r=Math.min(Math.max(i,s),e);let o=r+t.integerLen,u=n[o];if(o>0){n.splice(Mat
h.max(t.integerLen,o));for(let
w=o;w<n.length;w++)n[w]=0}else{s=Math.max(0,s),t.integerLen=1,n.length=Math.max(1,o=r+1),n[0]=0;for(let
w=1;w<o;w++)n[w]=0}if(u>=5)if(o-1<0){for(let
w=0;w>o;w--)n.unshift(0),t.integerLen++;n.unshift(1),t.integerLen++}else
n[o-1]++;for(;s<Math.max(0,r);s++)n.push(0);let h=0!==r;const
b=i+t.integerLen,y=n.reduceRight(function(w,M,E,L){return
L[E]=(M+=w)<10?M:M-10,h&&(0===L[E]&&E>=b?L.pop():h=!1),M>=10?1:0},0);y&&(n.unshift(y),t.integerLen++)}(b,w,M);let
E=b.digits,L=b.integerLen;const O=b.exponent;let
N=[];for(h=E.every(P=>!P);L<y;L++)E.unshift(0);for(;L<0;L++)E.unshift(0);L>0?N=E.splice(L,E.length):(N=E,E=[0]);const
G=[];for(E.length>=i.lgSize&&G.unshift(E.splice(-i.lgSize,E.length).join(""));E.length>i.gSize;)G.unshift(E.splice(-i.gSize,E.length).join(""));E.length&&G.unshift(E.join("")),u=G.join(Ci(e,n)),N.length&&(u+=Ci(e,s)+N.join("")),O&&(u+=Ci(e,ge.Exponential)+"+"+O)}else
u=Ci(e,ge.Infinity);return u=t<0&&!h?i.negPre+u+i.negSuf:i.posPre+u+i.posSu
f,u}(t,function Sm(t,i="-"){const
e={minInt:1,minFrac:0,maxFrac:0,posPre:"",posSuf:"",negPre:"",negSuf:"",gSize:0,lgSize:0},n=t.split(";"),s=n[0],r=n[1],o=-1!==s.indexOf(".")?s.split("."):[s.substring(0,s.lastIndexOf("0")+1),s.substring(s.lastIndexOf("0")+1)],u=o[0],h=o[1]||"";e.posPre=u.substr(0,u.indexOf("#"));for(let
y=0;y<h.length;y++){const
w=h.charAt(y);"0"===w?e.minFrac=e.maxFrac=y+1:"#"===w?e.maxFrac=y+1:e.posSuf+=w}const
b=u.split(",");if(e.gSize=b[1]?b[1].length:0,e.lgSize=b[2]||b[1]?(b[2]||b[1]).length:0,r){const
y=s.length-e.posPre.length-e.posSuf.length,w=r.indexOf("#");e.negPre=r.substr(0,w).replace(/'/g,""),e.negSuf=r.substr(w+y).replace(/'/g,"")}else
e.negPre=i+e.posPre,e.negSuf=e.posSuf;return e}(function bm(t,i){return
Hn(t)[te.NumberFormats][i]}(i,Wn.Decimal),Ci(i,ge.MinusSign)),i,ge.Group,ge.Decimal,e)}(function
Em(t){if("string"==typeof t&&!isNaN(Number(t)-parseFloat(t)))return
Number(t);if("number"!=typeof t)throw new Error(`${t} is not a number`);return
t}(e),
s,n)}catch(r){throw Vi()}}}return t.\u0275fac=function(e){return
new(e||t)(D(qs,16))},t.\u0275pipe=An({name:"number",type:t,pure:!0}),t})();let
My=(()=>{class t{transform(e,n,s){if(null==e)return null;if(!this.supports(e))throw
Vi();return e.slice(n,s)}supports(e){return"string"==typeof
e||Array.isArray(e)}}return t.\u0275fac=function(e){return
new(e||t)},t.\u0275pipe=An({name:"slice",type:t,pure:!1}),t})(),Fe=(()=>{class
t{}return t.\u0275fac=function(e){return
new(e||t)},t.\u0275mod=he({type:t}),t.\u0275inj=ue({}),t})();const
ky="browser";let R4=(()=>{class t{}return
t.\u0275prov=X({token:t,providedIn:"root",factory:()=>new
L4(K(Xt),window)}),t})();class
L4{constructor(i,e){this.document=i,this.window=e,this.offset=()=>[0,0]}setOffset(i){this.offset=Array.isArray(i)?()=>i:i}getScrollPosition(){return
this.supportsScrolling()?[this.window.pageXOffset,this.window.pageYOffset]:[0,0]}scrollToPosition(i){this.supportsScrolling()&&this.window.scrollTo(i[0],i[1])}scrollToAnchor(i){if(!th
is.supportsScrolling())return;const e=function O4(t,i){const
e=t.getElementById(i)||t.getElementsByName(i)[0];if(e)return
e;if("function"==typeof
t.createTreeWalker&&t.body&&(t.body.createShadowRoot||t.body.attachShadow)){const
n=t.createTreeWalker(t.body,NodeFilter.SHOW_ELEMENT);let s=n.currentNode;for(;s;){const
r=s.shadowRoot;if(r){const
o=r.getElementById(i)||r.querySelector(`[name="${i}"]`);if(o)return
o}s=n.nextNode()}}return
null}(this.document,i);e&&(this.scrollToElement(e),e.focus())}setHistoryScrollRestoration(i){if(this.supportScrollRestoration()){const
e=this.window.history;e&&e.scrollRestoration&&(e.scrollRestoration=i)}}scrollToElement(i){const
e=i.getBoundingClientRect(),n=e.left+this.window.pageXOffset,s=e.top+this.window.pageYOffset,r=this.offset();this.window.scrollTo(n-r[0],s-r[1])}supportScrollRestoration(){try{if(!this.supportsScrolling())return!1;const
i=Iy(this.window.history)||Iy(Object.getPrototypeOf(this.window.history));return!(!i||!i.writable&&!i.set)}cat
ch(i){return!1}}supportsScrolling(){try{return!!this.window&&!!this.window.scrollTo&&"pageXOffset"in
this.window}catch(i){return!1}}}function Iy(t){return
Object.getOwnPropertyDescriptor(t,"scrollRestoration")}class Ey{}class Rm
extends class A4 extends class
mL{}{constructor(){super(...arguments),this.supportsDOMEvents=!0}}{static
makeCurrent(){!function hL(t){zc||(zc=t)}(new Rm)}onAndCancel(i,e,n){return
i.addEventListener(e,n,!1),()=>{i.removeEventListener(e,n,!1)}}dispatchEvent(i,e){i.dispatchEvent(e)}remove(i){i.parentNode&&i.parentNode.removeChild(i)}createElement(i,e){return(e=e||this.getDefaultDocument()).createElement(i)}createHtmlDocument(){return
document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return
document}isElementNode(i){return i.nodeType===Node.ELEMENT_NODE}isShadowRoot(i){return i
instanceof
DocumentFragment}getGlobalEventTarget(i,e){return"window"===e?window:"document"===e?i:"body"===e?i.body:null}getBaseHref(i){const
e=function P4(){r
eturn
Ya=Ya||document.querySelector("base"),Ya?Ya.getAttribute("href"):null}();return
null==e?null:function
F4(t){tu=tu||document.createElement("a"),tu.setAttribute("href",t);const
i=tu.pathname;return"/"===i.charAt(0)?i:`/${i}`}(e)}resetBaseElement(){Ya=null}getUserAgent(){return
window.navigator.userAgent}getCookie(i){return yy(document.cookie,i)}}let tu,Ya=null;const
Ry=new be("TRANSITION_ID"),V4=[{provide:em,useFactory:function
N4(t,i,e){return()=>{e.get(tm).donePromise.then(()=>{const
n=ns(),s=i.querySelectorAll(`style[ng-transition="${t}"]`);for(let
r=0;r<s.length;r++)n.remove(s[r])})}},deps:[Ry,Xt,En],multi:!0}];class Lm{static
init(){!function BR(t){am=t}(new
Lm)}addToWindow(i){vt.getAngularTestability=(n,s=!0)=>{const
r=i.findTestabilityInTree(n,s);if(null==r)throw new Error("Could not find testability
for element.");return
r},vt.getAllAngularTestabilities=()=>i.getAllTestabilities(),vt.getAllAngularRootElements=()=>i.getAllRootElements(),vt.frameworkStabilizers||(vt.framew
orkStabilizers=[]),vt.frameworkStabilizers.push(n=>{const
s=vt.getAllAngularTestabilities();let r=s.length,o=!1;const
u=function(h){o=o||h,r--,0==r&&n(o)};s.forEach(function(h){h.whenStable(u)})})}findTestabilityInTree(i,e,n){if(null==e)return
null;const s=i.getTestability(e);return
null!=s?s:n?ns().isShadowRoot(e)?this.findTestabilityInTree(i,e.host,!0):this.findTestabilityInTree(i,e.parentElement,!0):null}}let
B4=(()=>{class t{build(){return new XMLHttpRequest}}return
t.\u0275fac=function(e){return
new(e||t)},t.\u0275prov=X({token:t,factory:t.\u0275fac}),t})();const nu=new
be("EventManagerPlugins");let iu=(()=>{class
t{constructor(e,n){this._zone=n,this._eventNameToPlugin=new
Map,e.forEach(s=>s.manager=this),this._plugins=e.slice().reverse()}addEventListener(e,n,s){return
this._findPluginFor(n).addEventListener(e,n,s)}addGlobalEventListener(e,n,s){return
this._findPluginFor(n).addGlobalEventListener(e,n,s)}getZone(){return
this._zone}_findPluginFor(e){const n=this._eventNameToPlug
in.get(e);if(n)return n;const s=this._plugins;for(let r=0;r<s.length;r++){const
o=s[r];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)(K(nu),K(nt))},t.\u0275prov=X({token:t,factory:t.\u0275fac}),t})();class
Ly{constructor(i){this._doc=i}addGlobalEventListener(i,e,n){const
s=ns().getGlobalEventTarget(this._doc,i);if(!s)throw new Error(`Unsupported event target
${s} for event ${e}`);return this.addEventListener(s,e,n)}}let Oy=(()=>{class
t{constructor(){this._stylesSet=new Set}addStyles(e){const n=new
Set;e.forEach(s=>{this._stylesSet.has(s)||(this._stylesSet.add(s),n.add(s))}),this.onStylesAdded(n)}onStylesAdded(e){}getAllStyles(){return
Array.from(this._stylesSet)}}return t.\u0275fac=function(e){return
new(e||t)},t.\u0275prov=X({token:t,factory:t.\u0275fac}),t})(),Za=(()=>{class t extends
Oy{constructor(e){super(),this._doc=e,this._hostNodes=new Map,this._hostN
odes.set(e.head,[])}_addStylesToHost(e,n,s){e.forEach(r=>{const
o=this._doc.createElement("style");o.textContent=r,s.push(n.appendChild(o))})}addHost(e){const
n=[];this._addStylesToHost(this._stylesSet,e,n),this._hostNodes.set(e,n)}removeHost(e){const
n=this._hostNodes.get(e);n&&n.forEach(Ay),this._hostNodes.delete(e)}onStylesAdded(e){this._hostNodes.forEach((n,s)=>{this._addStylesToHost(e,s,n)})}ngOnDestroy(){this._hostNodes.forEach(e=>e.forEach(Ay))}}return
t.\u0275fac=function(e){return
new(e||t)(K(Xt))},t.\u0275prov=X({token:t,factory:t.\u0275fac}),t})();function
Ay(t){ns().remove(t)}const
Om={svg:"http://www.w3.org/2000/svg",xhtml:"http://www.w3....
su(t,i,e){for(let n=0;n<i.length;n++){let
s=i[n];Array.isArray(s)?su(t,s,e):(s=s.replace(Am,t),e.push(s))}return e}function
Ny(t){return i=>{if
("__ngUnwrap__"===i)return
t;!1===t(i)&&(i.preventDefault(),i.returnValue=!1)}}let ru=(()=>{class
t{constructor(e,n,s){this.eventManager=e,this.sharedStylesHost=n,this.appId=s,this.rendererByCompId=new
Map,this.defaultRenderer=new Pm(e)}createRenderer(e,n){if(!e||!n)return
this.defaultRenderer;switch(n.encapsulation){case ki.Emulated:{let
s=this.rendererByCompId.get(n.id);return s||(s=new
j4(this.eventManager,this.sharedStylesHost,n,this.appId),this.rendererByCompId.set(n.id,s)),s.applyToHost(e),s}case
1:case ki.ShadowDom:return new
$4(this.eventManager,this.sharedStylesHost,e,n);default:if(!this.rendererByCompId.has(n.id)){const
s=su(n.id,n.styles,[]);this.sharedStylesHost.addStyles(s),this.rendererByCompId.set(n.id,this.defaultRenderer)}return
this.defaultRenderer}}begin(){}end(){}}return t.\u0275fac=function(e){return
new(e||t)(K(iu),K(Za),K(ja))},t.\u0275prov=X({token:t,factory:t.\u0275fac}),t})();class
Pm{constructor(i){this.eventManager=i,this.data=Object.create(null),this.des
troyNode=null}destroy(){}createElement(i,e){return
e?document.createElementNS(Om[e]||e,i):document.createElement(i)}createComment(i){return
document.createComment(i)}createText(i){return
document.createTextNode(i)}appendChild(i,e){i.appendChild(e)}insertBefore(i,e,n){i&&i.insertBefore(e,n)}removeChild(i,e){i&&i.removeChild(e)}selectRootElement(i,e){let
n="string"==typeof i?document.querySelector(i):i;if(!n)throw new Error(`The
selector "${i}" did not match any elements`);return
e||(n.textContent=""),n}parentNode(i){return i.parentNode}nextSibling(i){return
i.nextSibling}setAttribute(i,e,n,s){if(s){e=s+":"+e;const
r=Om[s];r?i.setAttributeNS(r,e,n):i.setAttribute(e,n)}else
i.setAttribute(e,n)}removeAttribute(i,e,n){if(n){const
s=Om[n];s?i.removeAttributeNS(s,e):i.removeAttribute(`${n}:${e}`)}else
i.removeAttribute(e)}addClass(i,e){i.classList.add(e)}removeClass(i,e){i.classList.remove(e)}setStyle(i,e,n,s){s&(ti.DashCase|ti.Important)?i.style.setProperty(e,n,s&ti.Important?"important":
""):i.style[e]=n}removeStyle(i,e,n){n&ti.DashCase?i.style.removeProperty(e):i.style[e]=""}setProperty(i,e,n){i[e]=n}setValue(i,e){i.nodeValue=e}listen(i,e,n){return"string"==typeof
i?this.eventManager.addGlobalEventListener(i,e,Ny(n)):this.eventManager.addEventListener(i,e,Ny(n))}}class
j4 extends Pm{constructor(i,e,n,s){super(i),this.component=n;const
r=su(s+"-"+n.id,n.styles,[]);e.addStyles(r),this.contentAttr=function
G4(t){return"_ngcontent-%COMP%".replace(Am,t)}(s+"-"+n.id),this.hostAttr=function
U4(t){return"_nghost-%COMP%".replace(Am,t)}(s+"-"+n.id)}applyToHost(i){super.setAttribute(i,this.hostAttr,"")}createElement(i,e){const
n=super.createElement(i,e);return
super.setAttribute(n,this.contentAttr,""),n}}class $4 extends
Pm{constructor(i,e,n,s){super(i),this.sharedStylesHost=e,this.hostEl=n,this.shadowRoot=n.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const
r=su(s.id,s.styles,[]);for(let o=0;o<r.length;o++){const
u=document.createElement("style"
);u.textContent=r[o],this.shadowRoot.appendChild(u)}}nodeOrShadowRoot(i){return
i===this.hostEl?this.shadowRoot:i}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}appendChild(i,e){return
super.appendChild(this.nodeOrShadowRoot(i),e)}insertBefore(i,e,n){return
super.insertBefore(this.nodeOrShadowRoot(i),e,n)}removeChild(i,e){return
super.removeChild(this.nodeOrShadowRoot(i),e)}parentNode(i){return
this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(i)))}}let W4=(()=>{class t
extends Ly{constructor(e){super(e)}supports(e){return!0}addEventListener(e,n,s){return
e.addEventListener(n,s,!1),()=>this.removeEventListener(e,n,s)}removeEventListener(e,n,s){return
e.removeEventListener(n,s)}}return t.\u0275fac=function(e){return
new(e||t)(K(Xt))},t.\u0275prov=X({token:t,factory:t.\u0275fac}),t})();const
By=["alt","control","meta","shift"],Q4={"\b":"Backspace","\t":"Tab","\x7f":"Delete","\x1b":"Escape",Del:"Delete",Esc:"Escape",Left:"ArrowLeft",Right:"ArrowRight",Up:"ArrowU
p",Down:"ArrowDown",Menu:"ContextMenu",Scroll:"ScrollLock",Win:"OS"},Hy={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"},J4={alt:t=>t.altKey,control:t=>t.ctrlKey,meta:t=>t.metaKey,shift:t=>t.shiftKey};let
Y4=(()=>{class t extends Ly{constructor(e){super(e)}supports(e){return
null!=t.parseEventName(e)}addEventListener(e,n,s){const
r=t.parseEventName(n),o=t.eventCallback(r.fullKey,s,this.manager.getZone());return
this.manager.getZone().runOutsideAngular(()=>ns().onAndCancel(e,r.domEventName,o))}static
parseEventName(e){const
n=e.toLowerCase().split("."),s=n.shift();if(0===n.length||"keydown"!==s&&"keyup"!==s)return
null;const r=t._normalizeKey(n.pop());let o="";if(By.forEach(h=>{const
b=n.indexOf(h);b>-1&&(n.splice(b,1),o+=h+".")}),o+=r,0!=n.length||0===r.length)return
null;const u={};return u.domEventName=s,u.fullKey=o,u}static getEventFullKey(e){let
n="",s=function Z4(t){let i=t.key;if(null==i){if(i=t.keyIdentifier,null==
i)return"Unidentified";i.startsWith("U+")&&(i=String.fromCharCode(parseInt(i.substring(2),16)),3===t.location&&Hy.hasOwnProperty(i)&&(i=Hy[i]))}return
Q4[i]||i}(e);return s=s.toLowerCase(),"
"===s?s="space":"."===s&&(s="dot"),By.forEach(r=>{r!=s&&J4[r](e)&&(n+=r+".")}),n+=s,n}static
eventCallback(e,n,s){return
r=>{t.getEventFullKey(r)===e&&s.runGuarded(()=>n(r))}}static
_normalizeKey(e){return"esc"===e?"escape":e}}return
t.\u0275fac=function(e){return
new(e||t)(K(Xt))},t.\u0275prov=X({token:t,factory:t.\u0275fac}),t})();const
nO=WC(uL,"browser",[{provide:qc,useValue:ky},{provide:BC,useValue:function
X4(){Rm.makeCurrent(),Lm.init()},multi:!0},{provide:Xt,useFactory:function tO(){return
function
Px(t){Zd=t}(document),document},deps:[]}]),iO=[{provide:hh,useValue:"root"},{provide:xa,useFactory:function
eO(){return new
xa},deps:[]},{provide:nu,useClass:W4,multi:!0,deps:[Xt,nt,qc]},{provide:nu,useClass:Y4,multi:!0,deps:[Xt]},{provide:ru,useClass:ru,deps:[iu,Za,ja]},{provide:Ba,useExistin
g:ru},{provide:Oy,useExisting:Za},{provide:Za,useClass:Za,deps:[Xt]},{provide:om,useClass:om,deps:[nt]},{provide:iu,useClass:iu,deps:[nu,nt]},{provide:Ey,useClass:B4,deps:[]}];let
qy=(()=>{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:ja,useValue:e.appId},{provide:Ry,useExisting:ja},V4]}}}return
t.\u0275fac=function(e){return
new(e||t)(K(t,12))},t.\u0275mod=he({type:t}),t.\u0275inj=ue({providers:iO,imports:[Fe,dL]}),t})();function
oe(...t){let i=t[t.length-1];return Vr(i)?(t.pop(),Ad(t,i)):Pd(t)}function _r(t,i){return
yn(t,i,1)}function Us(t,i){return function(n){return n.lift(new
mO(t,i))}}"undefined"!=typeof window&&window;class
mO{constructor(i,e){this.predicate=i,this.thisArg=e}call(i,e){return e.subscribe(new
fO(i,this.predicate,this.thisArg))}}class fO
extends
yt{constructor(i,e,n){super(i),this.predicate=e,this.thisArg=n,this.count=0}_next(i){let
e;try{e=this.predicate.call(this.thisArg,i,this.count++)}catch(n){return void
this.destination.error(n)}e&&this.destination.next(i)}}class zy{}class jy{}class
Cs{constructor(i){this.normalizedNames=new
Map,this.lazyUpdate=null,i?this.lazyInit="string"==typeof
i?()=>{this.headers=new Map,i.split("\n").forEach(e=>{const
n=e.indexOf(":");if(n>0){const
s=e.slice(0,n),r=s.toLowerCase(),o=e.slice(n+1).trim();this.maybeSetNormalizedName(s,r),this.headers.has(r)?this.headers.get(r).push(o):this.headers.set(r,[o])}})}:()=>{this.headers=new
Map,Object.keys(i).forEach(e=>{let n=i[e];const
s=e.toLowerCase();"string"==typeof
n&&(n=[n]),n.length>0&&(this.headers.set(s,n),this.maybeSetNormalizedName(e,s))})}:this.headers=new
Map}has(i){return this.init(),this.headers.has(i.toLowerCase())}get(i){this.init();const
e=this.headers.get(i.toLowerCase());return
e&&e.length>0?e[0]:null}keys(){return this.init
(),Array.from(this.normalizedNames.values())}getAll(i){return
this.init(),this.headers.get(i.toLowerCase())||null}append(i,e){return
this.clone({name:i,value:e,op:"a"})}set(i,e){return
this.clone({name:i,value:e,op:"s"})}delete(i,e){return
this.clone({name:i,value:e,op:"d"})}maybeSetNormalizedName(i,e){this.normalizedNames.has(e)||this.normalizedNames.set(e,i)}init(){this.lazyInit&&(this.lazyInit
instanceof
Cs?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(i=>this.applyUpdate(i)),this.lazyUpdate=null))}copyFrom(i){i.init(),Array.from(i.headers.keys()).forEach(e=>{this.headers.set(e,i.headers.get(e)),this.normalizedNames.set(e,i.normalizedNames.get(e))})}clone(i){const
e=new Cs;return e.lazyInit=this.lazyInit&&this.lazyInit instanceof
Cs?this.lazyInit:this,e.lazyUpdate=(this.lazyUpdate||[]).concat([i]),e}applyUpdate(i){const
e=i.name.toLowerCase();switch(i.op){case"a":case"s":let
n=i.value;if("string"==typeof n&&(n=[n]),0===n
.length)return;this.maybeSetNormalizedName(i.name,e);const
s=("a"===i.op?this.headers.get(e):void
0)||[];s.push(...n),this.headers.set(e,s);break;case"d":const
r=i.value;if(r){let
o=this.headers.get(e);if(!o)return;o=o.filter(u=>-1===r.indexOf(u)),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(i){this.init(),Array.from(this.normalizedNames.keys()).forEach(e=>i(this.normalizedNames.get(e),this.headers.get(e)))}}class
gO{encodeKey(i){return $y(i)}encodeValue(i){return $y(i)}decodeKey(i){return
decodeURIComponent(i)}decodeValue(i){return decodeURIComponent(i)}}const
bO=/%(\d[a-f0-9])/gi,vO={40:"@","3A":":",24:"$","2C":",","3B":";","2B":"+","3D":"=","3F":"?","2F":"/"};function
$y(t){return encodeURIComponent(t).replace(bO,(i,e)=>{var n;return
null!==(n=vO[e])&&void 0!==n?n:i})}function Wy(t){return`${t}`}class
ye{constructor(i={}){if(this.updates=null,this.cloneFrom=null,this.
encoder=i.encoder||new gO,i.fromString){if(i.fromObject)throw new Error("Cannot
specify both fromString and fromObject.");this.map=function _O(t,i){const e=new
Map;return
t.length>0&&t.replace(/^\?/,"").split("&").forEach(s=>{const
r=s.indexOf("="),[o,u]=-1==r?[i.decodeKey(s),""]:[i.decodeKey(s.slice(0,r)),i.decodeValue(s.slice(r+1))],h=e.get(o)||[];h.push(u),e.set(o,h)}),e}(i.fromString,this.encoder)}else
i.fromObject?(this.map=new Map,Object.keys(i.fromObject).forEach(e=>{const
n=i.fromObject[e];this.map.set(e,Array.isArray(n)?n:[n])})):this.map=null}has(i){return
this.init(),this.map.has(i)}get(i){this.init();const e=this.map.get(i);return
e?e[0]:null}getAll(i){return this.init(),this.map.get(i)||null}keys(){return
this.init(),Array.from(this.map.keys())}append(i,e){return
this.clone({param:i,value:e,op:"a"})}appendAll(i){const e=[];return
Object.keys(i).forEach(n=>{const
s=i[n];Array.isArray(s)?s.forEach(r=>{e.push({param:n,value:r,op:"a"})}):e.push({param:n,value:s,op:"a"})}),t
his.clone(e)}set(i,e){return
this.clone({param:i,value:e,op:"s"})}delete(i,e){return
this.clone({param:i,value:e,op:"d"})}toString(){return
this.init(),this.keys().map(i=>{const e=this.encoder.encodeKey(i);return
this.map.get(i).map(n=>e+"="+this.encoder.encodeValue(n)).join("&")}).filter(i=>""!==i).join("&")}clone(i){const
e=new ye({encoder:this.encoder});return
e.cloneFrom=this.cloneFrom||this,e.updates=(this.updates||[]).concat(i),e}init(){null===this.map&&(this.map=new
Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(i=>this.map.set(i,this.cloneFrom.map.get(i))),this.updates.forEach(i=>{switch(i.op){case"a":case"s":const
e=("a"===i.op?this.map.get(i.param):void
0)||[];e.push(Wy(i.value)),this.map.set(i.param,e);break;case"d":if(void
0===i.value){this.map.delete(i.param);break}{let n=this.map.get(i.param)||[];const
s=n.indexOf(Wy(i.value));-1!==s&&n.splice(s,1),n.length>0?this.map.set(i.param,n):this.map.delete(i.param)}}}),this.cloneFrom=this.upda
tes=null)}}class CO{constructor(){this.map=new Map}set(i,e){return
this.map.set(i,e),this}get(i){return
this.map.has(i)||this.map.set(i,i.defaultValue()),this.map.get(i)}delete(i){return
this.map.delete(i),this}has(i){return this.map.has(i)}keys(){return
this.map.keys()}}function Ky(t){return"undefined"!=typeof ArrayBuffer&&t
instanceof ArrayBuffer}function Qy(t){return"undefined"!=typeof Blob&&t
instanceof Blob}function Jy(t){return"undefined"!=typeof FormData&&t
instanceof FormData}class Xa{constructor(i,e,n,s){let
r;if(this.url=e,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=i.toUpperCase(),function
yO(t){switch(t){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||s?(this.body=void
0!==n?n:null,r=s):r=n,r&&(this.reportProgress=!!r.reportProgress,this.withCredentials=!!r.withCredentials,r.responseType&&(this.responseType=r.responseType),r.headers&&(this.headers=r.headers),r.con
text&&(this.context=r.context),r.params&&(this.params=r.params)),this.headers||(this.headers=new
Cs),this.context||(this.context=new CO),this.params){const
o=this.params.toString();if(0===o.length)this.urlWithParams=e;else{const
u=e.indexOf("?");this.urlWithParams=e+(-1===u?"?":u<e.length-1?"&":"")+o}}else
this.params=new ye,this.urlWithParams=e}serializeBody(){return
null===this.body?null:Ky(this.body)||Qy(this.body)||Jy(this.body)||function
wO(t){return"undefined"!=typeof URLSearchParams&&t instanceof
URLSearchParams}(this.body)||"string"==typeof this.body?this.body:this.body
instanceof ye?this.body.toString():"object"==typeof
this.body||"boolean"==typeof
this.body||Array.isArray(this.body)?JSON.stringify(this.body):this.body.toString()}detectContentTypeHeader(){return
null===this.body||Jy(this.body)?null:Qy(this.body)?this.body.type||null:Ky(this.body)?null:"string"==typeof
this.body?"text/plain":this.body instanceof
ye?"application/x-www-form-urlencoded;charset=UTF-8":"object"==
typeof this.body||"number"==typeof this.body||"boolean"==typeof
this.body?"application/json":null}clone(i={}){var e;const
n=i.method||this.method,s=i.url||this.url,r=i.responseType||this.responseType,o=void
0!==i.body?i.body:this.body,u=void
0!==i.withCredentials?i.withCredentials:this.withCredentials,h=void
0!==i.reportProgress?i.reportProgress:this.reportProgress;let
b=i.headers||this.headers,y=i.params||this.params;const
w=null!==(e=i.context)&&void 0!==e?e:this.context;return void
0!==i.setHeaders&&(b=Object.keys(i.setHeaders).reduce((M,E)=>M.set(E,i.setHeaders[E]),b)),i.setParams&&(y=Object.keys(i.setParams).reduce((M,E)=>M.set(E,i.setParams[E]),y)),new
Xa(n,s,o,{params:y,headers:b,context:w,reportProgress:h,responseType:r,withCredentials:u})}}var
nn=(()=>((nn=nn||{})[nn.Sent=0]="Sent",nn[nn.UploadProgress=1]="UploadProgress",nn[nn.ResponseHeader=2]="ResponseHeader",nn[nn.DownloadProgress=3]="DownloadProgress",nn[nn.Response=4]="Response",nn[nn.User=5]="User",nn))();class
Nm{co
nstructor(i,e=200,n="OK"){this.headers=i.headers||new Cs,this.status=void
0!==i.status?i.status:e,this.statusText=i.statusText||n,this.url=i.url||null,this.ok=this.status>=200&&this.status<300}}class
Vm extends Nm{constructor(i={}){super(i),this.type=nn.ResponseHeader}clone(i={}){return
new Vm({headers:i.headers||this.headers,status:void
0!==i.status?i.status:this.status,statusText:i.statusText||this.statusText,url:i.url||this.url||void
0})}}class ou extends Nm{constructor(i={}){super(i),this.type=nn.Response,this.body=void
0!==i.body?i.body:null}clone(i={}){return new ou({body:void
0!==i.body?i.body:this.body,headers:i.headers||this.headers,status:void
0!==i.status?i.status:this.status,statusText:i.statusText||this.statusText,url:i.url||this.url||void
0})}}class Yy extends Nm{constructor(i){super(i,0,"Unknown
Error"),this.name="HttpErrorResponse",this.ok=!1,this.message=this.status>=200&&this.status<300?`Http
failure during parsing for ${i.url||"(unknown url)"}`:`Http failure respo
nse for ${i.url||"(unknown url)"}: ${i.status}
${i.statusText}`,this.error=i.error||null}}function
Bm(t,i){return{body:i,headers:t.headers,context:t.context,observe:t.observe,params:t.params,reportProgress:t.reportProgress,responseType:t.responseType,withCredentials:t.withCredentials}}let
Bi=(()=>{class t{constructor(e){this.handler=e}request(e,n,s={}){let r;if(e instanceof
Xa)r=e;else{let h,b;h=s.headers instanceof Cs?s.headers:new
Cs(s.headers),s.params&&(b=s.params instanceof ye?s.params:new
ye({fromObject:s.params})),r=new Xa(e,n,void
0!==s.body?s.body:null,{headers:h,context:s.context,params:b,reportProgress:s.reportProgress,responseType:s.responseType||"json",withCredentials:s.withCredentials})}const
o=oe(r).pipe(_r(h=>this.handler.handle(h)));if(e instanceof
Xa||"events"===s.observe)return o;const u=o.pipe(Us(h=>h instanceof
ou));switch(s.observe||"body"){case"body":switch(r.responseType){case"arraybuffer":return
u.pipe(et(h=>{if(null!==h.body&&!(h.body instanceof ArrayBuffer
))throw new Error("Response is not an ArrayBuffer.");return
h.body}));case"blob":return u.pipe(et(h=>{if(null!==h.body&&!(h.body
instanceof Blob))throw new Error("Response is not a Blob.");return
h.body}));case"text":return
u.pipe(et(h=>{if(null!==h.body&&"string"!=typeof h.body)throw new
Error("Response is not a string.");return h.body}));default:return
u.pipe(et(h=>h.body))}case"response":return u;default:throw new
Error(`Unreachable: unhandled observe type ${s.observe}}`)}}delete(e,n={}){return
this.request("DELETE",e,n)}get(e,n={}){return
this.request("GET",e,n)}head(e,n={}){return
this.request("HEAD",e,n)}jsonp(e,n){return
this.request("JSONP",e,{params:(new
ye).append(n,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(e,n={}){return
this.request("OPTIONS",e,n)}patch(e,n,s={}){return
this.request("PATCH",e,Bm(s,n))}post(e,n,s={}){return
this.request("POST",e,Bm(s,n))}put(e,n,s={}){return
this.request("PUT",e,Bm(s,n))}}return t.\u0275fac=function(e){return new(e||t
)(K(zy))},t.\u0275prov=X({token:t,factory:t.\u0275fac}),t})();class
Zy{constructor(i,e){this.next=i,this.interceptor=e}handle(i){return
this.interceptor.intercept(i,this.next)}}const Xy=new
be("HTTP_INTERCEPTORS");let TO=(()=>{class t{intercept(e,n){return
n.handle(e)}}return t.\u0275fac=function(e){return
new(e||t)},t.\u0275prov=X({token:t,factory:t.\u0275fac}),t})();const
SO=/^\)\]\}',?\n/;let e0=(()=>{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 Je(n=>{const
s=this.xhrFactory.build();if(s.open(e.method,e.urlWithParams),e.withCredentials&&(s.withCredentials=!0),e.headers.forEach((E,L)=>s.setRequestHeader(E,L.join(","))),e.headers.has("Accept")||s.setRequestHeader("Accept","application/json,
text/plain, */*"),!e.headers.has("Content-Type")){const
E=e.detectContentTypeHeader();null!==E&&s.setRequestHeader("Content-Type",E)}if(e.responseType){const
E
=e.responseType.toLowerCase();s.responseType="json"!==E?E:"text"}const
r=e.serializeBody();let o=null;const u=()=>{if(null!==o)return o;const
E=s.statusText||"OK",L=new Cs(s.getAllResponseHeaders()),O=function
xO(t){return"responseURL"in
t&&t.responseURL?t.responseURL:/^X-Request-URL:/m.test(t.getAllResponseHeaders())?t.getResponseHeader("X-Request-URL"):null}(s)||e.url;return
o=new
Vm({headers:L,status:s.status,statusText:E,url:O}),o},h=()=>{let{headers:E,status:L,statusText:O,url:N}=u(),G=null;204!==L&&(G=void
0===s.response?s.responseText:s.response),0===L&&(L=G?200:0);let
P=L>=200&&L<300;if("json"===e.responseType&&"string"==typeof
G){const
J=G;G=G.replace(SO,"");try{G=""!==G?JSON.parse(G):null}catch(se){G=J,P&&(P=!1,G={error:se,text:G})}}P?(n.next(new
ou({body:G,headers:E,status:L,statusText:O,url:N||void 0})),n.complete()):n.error(new
Yy({error:G,headers:E,status:L,statusText:O,url:N||void
0}))},b=E=>{const{url:L}=u(),O=new
Yy({error:E,status:s.status||0,statusText:s.statusTex
t||"Unknown Error",url:L||void 0});n.error(O)};let y=!1;const
w=E=>{y||(n.next(u()),y=!0);let
L={type:nn.DownloadProgress,loaded:E.loaded};E.lengthComputable&&(L.total=E.total),"text"===e.responseType&&!!s.responseText&&(L.partialText=s.responseText),n.next(L)},M=E=>{let
L={type:nn.UploadProgress,loaded:E.loaded};E.lengthComputable&&(L.total=E.total),n.next(L)};return
s.addEventListener("load",h),s.addEventListener("error",b),s.addEventListener("timeout",b),s.addEventListener("abort",b),e.reportProgress&&(s.addEventListener("progress",w),null!==r&&s.upload&&s.upload.addEventListener("progress",M)),s.send(r),n.next({type:nn.Sent}),()=>{s.removeEventListener("error",b),s.removeEventListener("abort",b),s.removeEventListener("load",h),s.removeEventListener("timeout",b),e.reportProgress&&(s.removeEventListener("progress",w),null!==r&&s.upload&&s.upload.removeEventListener("progress",M)),s.readyState!==s.DONE&&s.abort()}})}}return
t.\u0275fac=function(e){return new(e||t)(K(Ey))},t.\u0275p
rov=X({token:t,factory:t.\u0275fac}),t})();const Hm=new
be("XSRF_COOKIE_NAME"),qm=new be("XSRF_HEADER_NAME");class t0{}let
DO=(()=>{class
t{constructor(e,n,s){this.doc=e,this.platform=n,this.cookieName=s,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=yy(e,this.cookieName),this.lastCookieString=e),this.lastToken}}return
t.\u0275fac=function(e){return
new(e||t)(K(Xt),K(qc),K(Hm))},t.\u0275prov=X({token:t,factory:t.\u0275fac}),t})(),Gm=(()=>{class
t{constructor(e,n){this.tokenService=e,this.headerName=n}intercept(e,n){const
s=e.url.toLowerCase();if("GET"===e.method||"HEAD"===e.method||s.startsWith("http://")||s.startsWith("https://"))return
n.handle(e);const r=this.tokenService.getToken();return
null!==r&&!e.headers.has(this.headerName)&&(e=e.clone({headers:e.headers.set(this.headerName,r)})),n.handle(e)}}return
t.\u0275fac=f
unction(e){return
new(e||t)(K(t0),K(qm))},t.\u0275prov=X({token:t,factory:t.\u0275fac}),t})(),MO=(()=>{class
t{constructor(e,n){this.backend=e,this.injector=n,this.chain=null}handle(e){if(null===this.chain){const
n=this.injector.get(Xy,[]);this.chain=n.reduceRight((s,r)=>new
Zy(s,r),this.backend)}return this.chain.handle(e)}}return t.\u0275fac=function(e){return
new(e||t)(K(jy),K(En))},t.\u0275prov=X({token:t,factory:t.\u0275fac}),t})(),kO=(()=>{class
t{static disable(){return{ngModule:t,providers:[{provide:Gm,useClass:TO}]}}static
withOptions(e={}){return{ngModule:t,providers:[e.cookieName?{provide:Hm,useValue:e.cookieName}:[],e.headerName?{provide:qm,useValue:e.headerName}:[]]}}}return
t.\u0275fac=function(e){return
new(e||t)},t.\u0275mod=he({type:t}),t.\u0275inj=ue({providers:[Gm,{provide:Xy,useExisting:Gm,multi:!0},{provide:t0,useClass:DO},{provide:Hm,useValue:"XSRF-TOKEN"},{provide:qm,useValue:"X-XSRF-TOKEN"}]}),t})(),IO=(()=>{class
t{}return t.\u0275fac=function(e){return new(
e||t)},t.\u0275mod=he({type:t}),t.\u0275inj=ue({providers:[Bi,{provide:zy,useClass:MO},e0,{provide:jy,useExisting:e0}],imports:[[kO.withOptions({cookieName:"XSRF-TOKEN",headerName:"X-XSRF-TOKEN"})]]}),t})();function
is(t){return!!t&&(t instanceof Je||"function"==typeof
t.lift&&"function"==typeof t.subscribe)}function
n0(...t){if(1===t.length){const i=t[0];if(Nr(i))return
au(i,null);if(Ld(i)&&Object.getPrototypeOf(i)===Object.prototype){const
e=Object.keys(i);return au(e.map(n=>i[n]),e)}}if("function"==typeof
t[t.length-1]){const i=t.pop();return
au(t=1===t.length&&Nr(t[0])?t[0]:t,null).pipe(et(e=>i(...e)))}return
au(t,null)}function au(t,i){return new Je(e=>{const n=t.length;if(0===n)return void
e.complete();const s=new Array(n);let r=0,o=0;for(let u=0;u<n;u++){const h=Mn(t[u]);let
b=!1;e.add(h.subscribe({next:y=>{b||(b=!0,o++),s[u]=y},error:y=>e.error(y),complete:()=>{r++,(r===n||!b)&&(o===n&&e.next(i?i.reduce((y,w,M)=>(y[w]=s[M],y),{}):s),e.complete())}}))}})}function
el(...t){ret
urn function EO(){return ea(1)}()(oe(...t))}const Io=new Je(t=>t.complete());function
lu(t){return t?function RO(t){return new
Je(i=>t.schedule(()=>i.complete()))}(t):Io}function cu(t){return new Je(i=>{let
e;try{e=t()}catch(s){return void i.error(s)}return(e?Mn(e):lu()).subscribe(i)})}const
s0=(()=>{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 br(t){return
i=>0===t?lu():i.lift(new LO(t))}class
LO{constructor(i){if(this.total=i,this.total<0)throw new s0}call(i,e){return
e.subscribe(new OO(i,this.total))}}class OO extends
yt{constructor(i,e){super(i),this.total=e,this.count=0}_next(i){const
e=this.total,n=++this.count;n<=e&&(this.destination.next(i),n===e&&(this.destination.complete(),this.unsubscribe()))}}class
AO extends Et{constructor(i,e){super()}schedule(i,e=0){return this}}class uu extends
AO{constructor(i,e){super(i,e),this.scheduler=i,this.wor
k=e,this.pending=!1}schedule(i,e=0){if(this.closed)return this;this.state=i;const
n=this.id,s=this.scheduler;return
null!=n&&(this.id=this.recycleAsyncId(s,n,e)),this.pending=!0,this.delay=e,this.id=this.id||this.requestAsyncId(s,this.id,e),this}requestAsyncId(i,e,n=0){return
setInterval(i.flush.bind(i,this),n)}recycleAsyncId(i,e,n=0){if(null!==n&&this.delay===n&&!1===this.pending)return
e;clearInterval(e)}execute(i,e){if(this.closed)return new Error("executing a
cancelled action");this.pending=!1;const n=this._execute(i,e);if(n)return
n;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(i,e){let
s,n=!1;try{this.work(i)}catch(r){n=!0,s=!!r&&r||new Error(r)}if(n)return
this.unsubscribe(),s}_unsubscribe(){const
i=this.id,e=this.scheduler,n=e.actions,s=n.indexOf(this);this.work=null,this.state=null,this.pending=!1,this.scheduler=null,-1!==s&&n.splice(s,1),null!=i&&(this.id=this.recycleAsyncId(e,i,null)),this.delay=null}}let
r0=(()=>{cl
ass t{constructor(e,n=t.now){this.SchedulerAction=e,this.now=n}schedule(e,n=0,s){return
new this.SchedulerAction(this,e).schedule(s,n)}}return t.now=()=>Date.now(),t})();class
Hi extends
r0{constructor(i,e=r0.now){super(i,()=>Hi.delegate&&Hi.delegate!==this?Hi.delegate.now():e()),this.actions=[],this.active=!1,this.scheduled=void
0}schedule(i,e=0,n){return
Hi.delegate&&Hi.delegate!==this?Hi.delegate.schedule(i,e,n):super.schedule(i,e,n)}flush(i){const{actions:e}=this;if(this.active)return
void e.push(i);let
n;this.active=!0;do{if(n=i.execute(i.state,i.delay))break}while(i=e.shift());if(this.active=!1,n){for(;i=e.shift();)i.unsubscribe();throw
n}}}const NO=new class FO extends Hi{}(class PO extends
uu{constructor(i,e){super(i,e),this.scheduler=i,this.work=e}schedule(i,e=0){return
e>0?super.schedule(i,e):(this.delay=e,this.state=i,this.scheduler.flush(this),this)}execute(i,e){return
e>0||this.closed?super.execute(i,e):this._execute(i,e)}requestAsyncId(i,e,n=0){return
null!==n&&n>0||nu
ll===n&&this.delay>0?super.requestAsyncId(i,e,n):i.flush(this)}});function
tl(t,i){return new
Je(i?e=>i.schedule(VO,0,{error:t,subscriber:e}):e=>e.error(t))}function
VO({error:t,subscriber:i}){i.error(t)}class
Kn{constructor(i,e,n){this.kind=i,this.value=e,this.error=n,this.hasValue="N"===i}observe(i){switch(this.kind){case"N":return
i.next&&i.next(this.value);case"E":return
i.error&&i.error(this.error);case"C":return
i.complete&&i.complete()}}do(i,e,n){switch(this.kind){case"N":return
i&&i(this.value);case"E":return
e&&e(this.error);case"C":return n&&n()}}accept(i,e,n){return
i&&"function"==typeof
i.next?this.observe(i):this.do(i,e,n)}toObservable(){switch(this.kind){case"N":return
oe(this.value);case"E":return tl(this.error);case"C":return lu()}throw
new Error("unexpected notification kind value")}static createNext(i){return void
0!==i?new Kn("N",i):Kn.undefinedValueNotification}static createError(i){return
new Kn("E",void 0,i)}static createComplete(){return Kn.completeNotificatio
n}}Kn.completeNotification=new Kn("C"),Kn.undefinedValueNotification=new
Kn("N",void 0);class du extends
yt{constructor(i,e,n=0){super(i),this.scheduler=e,this.delay=n}static
dispatch(i){const{notification:e,destination:n}=i;e.observe(n),this.unsubscribe()}scheduleMessage(i){this.destination.add(this.scheduler.schedule(du.dispatch,this.delay,new
HO(i,this.destination)))}_next(i){this.scheduleMessage(Kn.createNext(i))}_error(i){this.scheduleMessage(Kn.createError(i)),this.unsubscribe()}_complete(){this.scheduleMessage(Kn.createComplete()),this.unsubscribe()}}class
HO{constructor(i,e){this.notification=i,this.destination=e}}class qO extends
ct{constructor(i=Number.POSITIVE_INFINITY,e=Number.POSITIVE_INFINITY,n){super(),this.scheduler=n,this._events=[],this._infiniteTimeWindow=!1,this._bufferSize=i<1?1:i,this._windowTime=e<1?1:e,e===Number.POSITIVE_INFINITY?(this._infiniteTimeWindow=!0,this.next=this.nextInfiniteTimeWindow):this.next=this.nextTimeWindow}nextInfiniteTimeWindow(i){if(!th
is.isStopped){const
e=this._events;e.push(i),e.length>this._bufferSize&&e.shift()}super.next(i)}nextTimeWindow(i){this.isStopped||(this._events.push(new
GO(this._getNow(),i)),this._trimBufferThenGetEvents()),super.next(i)}_subscribe(i){const
e=this._infiniteTimeWindow,n=e?this._events:this._trimBufferThenGetEvents(),s=this.scheduler,r=n.length;let
o;if(this.closed)throw new
nr;if(this.isStopped||this.hasError?o=Et.EMPTY:(this.observers.push(i),o=new
Eg(this,i)),s&&i.add(i=new du(i,s)),e)for(let
u=0;u<r&&!i.closed;u++)i.next(n[u]);else for(let
u=0;u<r&&!i.closed;u++)i.next(n[u].value);return
this.hasError?i.error(this.thrownError):this.isStopped&&i.complete(),o}_getNow(){return(this.scheduler||NO).now()}_trimBufferThenGetEvents(){const
i=this._getNow(),e=this._bufferSize,n=this._windowTime,s=this._events,r=s.length;let
o=0;for(;o<r&&!(i-s[o].time<n);)o++;return
r>e&&(o=Math.max(o,r-e)),o>0&&s.splice(0,o),s}}class
GO{constructor(i,e){this.time=i,this.value=e}}function Um(t,i,e){let n;
return n=t&&"object"==typeof
t?t:{bufferSize:t,windowTime:i,refCount:!1,scheduler:e},s=>s.lift(function
UO({bufferSize:t=Number.POSITIVE_INFINITY,windowTime:i=Number.POSITIVE_INFINITY,refCount:e,scheduler:n}){let
s,o,r=0,u=!1,h=!1;return function(y){let w;r++,!s||u?(u=!1,s=new
qO(t,i,n),w=s.subscribe(this),o=y.subscribe({next(M){s.next(M)},error(M){u=!0,s.error(M)},complete(){h=!0,o=void
0,s.complete()}}),h&&(o=void
0)):w=s.subscribe(this),this.add(()=>{r--,w.unsubscribe(),w=void
0,o&&!h&&e&&0===r&&(o.unsubscribe(),o=void 0,s=void
0)})}}(n))}function qi(t,i){return"function"==typeof
i?e=>e.pipe(qi((n,s)=>Mn(t(n,s)).pipe(et((r,o)=>i(n,r,s,o))))):e=>e.lift(new
zO(t))}class zO{constructor(i){this.project=i}call(i,e){return e.subscribe(new
jO(i,this.project))}}class jO extends
Zo{constructor(i,e){super(i),this.project=e,this.index=0}_next(i){let e;const
n=this.index++;try{e=this.project(i,n)}catch(s){return void
this.destination.error(s)}this._innerSub(e)}_innerSub(i){const e=this.inner
Subscription;e&&e.unsubscribe();const n=new
Yo(this),s=this.destination;s.add(n),this.innerSubscription=Xo(i,n),this.innerSubscription!==n&&s.add(this.innerSubscription)}_complete(){const{innerSubscription:i}=this;(!i||i.closed)&&super._complete(),this.unsubscribe()}_unsubscribe(){this.innerSubscription=void
0}notifyComplete(){this.innerSubscription=void
0,this.isStopped&&super._complete()}notifyNext(i){this.destination.next(i)}}class
nl{}let o0=(()=>{class t extends nl{getTranslation(e){return oe({})}}return
t.\u0275fac=function(){let i;return
function(n){return(i||(i=on(t)))(n||t)}}(),t.\u0275prov=X({token:t,factory:t.\u0275fac}),t})();class
zm{}let a0=(()=>{class t{handle(e){return e.key}}return t.\u0275fac=function(e){return
new(e||t)},t.\u0275prov=X({token:t,factory:t.\u0275fac}),t})();function
il(t,i){if(t===i)return!0;if(null===t||null===i)return!1;if(t!=t&&i!=i)return!0;let
s,r,o,e=typeof t;if(e==typeof
i&&"object"==e){if(!Array.isArray(t)){if(Array.isArray(i))return!1;for(r
in o=Object.create(null),t){if(!il(t[r],i[r]))return!1;o[r]=!0}for(r in i)if(!(r in
o)&&void
0!==i[r])return!1;return!0}if(!Array.isArray(i))return!1;if((s=t.length)==i.length){for(r=0;r<s;r++)if(!il(t[r],i[r]))return!1;return!0}}return!1}function
ri(t){return null!=t}function jm(t){return t&&"object"==typeof
t&&!Array.isArray(t)}function l0(t,i){let e=Object.assign({},t);return
jm(t)&&jm(i)&&Object.keys(i).forEach(n=>{jm(i[n])?n in
t?e[n]=l0(t[n],i[n]):Object.assign(e,{[n]:i[n]}):Object.assign(e,{[n]:i[n]})}),e}class
pu{}let c0=(()=>{class t extends
pu{constructor(){super(...arguments),this.templateMatcher=/{{\s?([^{}\s]*)\s?}}/g}interpolate(e,n){let
s;return s="string"==typeof
e?this.interpolateString(e,n):"function"==typeof
e?this.interpolateFunction(e,n):e,s}getValue(e,n){let s="string"==typeof
n?n.split("."):[n];n="";do{n+=s.shift(),!ri(e)||!ri(e[n])||"object"!=typeof
e[n]&&s.length?s.length?n+=".":e=void
0:(e=e[n],n="")}while(s.length);return e}interpolateFunction(e,n){return
e(n)}interpolateString(e,n){return n?e.replace(this.templateMatcher,(s,r)=>{let
o=this.getValue(n,r);return ri(o)?o:s}):e}}return t.\u0275fac=function(){let i;return
function(n){return(i||(i=on(t)))(n||t)}}(),t.\u0275prov=X({token:t,factory:t.\u0275fac}),t})();class
hu{}let u0=(()=>{class t extends hu{compile(e,n){return
e}compileTranslations(e,n){return e}}return t.\u0275fac=function(){let i;return
function(n){return(i||(i=on(t)))(n||t)}}(),t.\u0275prov=X({token:t,factory:t.\u0275fac}),t})();class
d0{constructor(){this.currentLang=this.defaultLang,this.translations={},this.langs=[],this.onTranslationChange=new
H,this.onLangChange=new H,this.onDefaultLangChange=new H}}const $m=new
be("USE_STORE"),Wm=new be("USE_DEFAULT_LANG"),Km=new
be("DEFAULT_LANGUAGE"),Qm=new be("USE_EXTEND");let Oe=(()=>{class
t{constructor(e,n,s,r,o,u=!0,h=!1,b=!1,y){this.store=e,this.currentLoader=n,this.compiler=s,this.parser=r,this.missingTranslationHandler=o,this.useDefaultLang=u,this.isolate=h,this.extend
=b,this.pending=!1,this._onTranslationChange=new H,this._onLangChange=new
H,this._onDefaultLangChange=new
H,this._langs=[],this._translations={},this._translationRequests={},y&&this.setDefaultLang(y)}get
onTranslationChange(){return
this.isolate?this._onTranslationChange:this.store.onTranslationChange}get
onLangChange(){return this.isolate?this._onLangChange:this.store.onLangChange}get
onDefaultLangChange(){return
this.isolate?this._onDefaultLangChange:this.store.onDefaultLangChange}get
defaultLang(){return this.isolate?this._defaultLang:this.store.defaultLang}set
defaultLang(e){this.isolate?this._defaultLang=e:this.store.defaultLang=e}get
currentLang(){return this.isolate?this._currentLang:this.store.currentLang}set
currentLang(e){this.isolate?this._currentLang=e:this.store.currentLang=e}get
langs(){return this.isolate?this._langs:this.store.langs}set
langs(e){this.isolate?this._langs=e:this.store.langs=e}get translations(){return
this.isolate?this._translations:this.store.translat
ions}set
translations(e){this.isolate?this._translations=e:this.store.translations=e}setDefaultLang(e){if(e===this.defaultLang)return;let
n=this.retrieveTranslations(e);void
0!==n?(null==this.defaultLang&&(this.defaultLang=e),n.pipe(br(1)).subscribe(s=>{this.changeDefaultLang(e)})):this.changeDefaultLang(e)}getDefaultLang(){return
this.defaultLang}use(e){if(e===this.currentLang)return oe(this.translations[e]);let
n=this.retrieveTranslations(e);return void
0!==n?(this.currentLang||(this.currentLang=e),n.pipe(br(1)).subscribe(s=>{this.changeLang(e)}),n):(this.changeLang(e),oe(this.translations[e]))}retrieveTranslations(e){let
n;return(void
0===this.translations[e]||this.extend)&&(this._translationRequests[e]=this._translationRequests[e]||this.getTranslation(e),n=this._translationRequests[e]),n}getTranslation(e){this.pending=!0;const
n=this.currentLoader.getTranslation(e).pipe(Um(1),br(1));return
this.loadingTranslations=n.pipe(et(s=>this.compiler.compileTranslations(s,e)),Um(1),br(1))
,this.loadingTranslations.subscribe({next:s=>{this.translations[e]=this.extend&&this.translations[e]?Object.assign(Object.assign({},s),this.translations[e]):s,this.updateLangs(),this.pending=!1},error:s=>{this.pending=!1}}),n}setTranslation(e,n,s=!1){n=this.compiler.compileTranslations(n,e),this.translations[e]=(s||this.extend)&&this.translations[e]?l0(this.translations[e],n):n,this.updateLangs(),this.onTranslationChange.emit({lang:e,translations:this.translations[e]})}getLangs(){return
this.langs}addLangs(e){e.forEach(n=>{-1===this.langs.indexOf(n)&&this.langs.push(n)})}updateLangs(){this.addLangs(Object.keys(this.translations))}getParsedResult(e,n,s){let
r;if(n instanceof Array){let o={},u=!1;for(let h of
n)o[h]=this.getParsedResult(e,h,s),is(o[h])&&(u=!0);return
u?n0(n.map(b=>is(o[b])?o[b]:oe(o[b]))).pipe(et(b=>{let y={};return
b.forEach((w,M)=>{y[n[M]]=w}),y})):o}if(e&&(r=this.parser.interpolate(this.parser.getValue(e,n),s)),void
0===r&&null!=this.defaultLang&&this.defaultLang!=
=this.currentLang&&this.useDefaultLang&&(r=this.parser.interpolate(this.parser.getValue(this.translations[this.defaultLang],n),s)),void
0===r){let o={key:n,translateService:this};void
0!==s&&(o.interpolateParams=s),r=this.missingTranslationHandler.handle(o)}return
void 0!==r?r:n}get(e,n){if(!ri(e)||!e.length)throw new Error('Parameter
"key" required');if(this.pending)return
this.loadingTranslations.pipe(_r(s=>is(s=this.getParsedResult(s,e,n))?s:oe(s)));{let
s=this.getParsedResult(this.translations[this.currentLang],e,n);return
is(s)?s:oe(s)}}getStreamOnTranslationChange(e,n){if(!ri(e)||!e.length)throw new
Error('Parameter "key" required');return
el(cu(()=>this.get(e,n)),this.onTranslationChange.pipe(qi(s=>{const
r=this.getParsedResult(s.translations,e,n);return"function"==typeof
r.subscribe?r:oe(r)})))}stream(e,n){if(!ri(e)||!e.length)throw new Error('Parameter
"key" required');return
el(cu(()=>this.get(e,n)),this.onLangChange.pipe(qi(s=>{const
r=this.getParsedResult(s.translations,
e,n);return is(r)?r:oe(r)})))}instant(e,n){if(!ri(e)||!e.length)throw new
Error('Parameter "key" required');let
s=this.getParsedResult(this.translations[this.currentLang],e,n);if(is(s)){if(e instanceof
Array){let r={};return e.forEach((o,u)=>{r[e[u]]=e[u]}),r}return e}return
s}set(e,n,s=this.currentLang){this.translations[s][e]=this.compiler.compile(n,s),this.updateLangs(),this.onTranslationChange.emit({lang:s,translations:this.translations[s]})}changeLang(e){this.currentLang=e,this.onLangChange.emit({lang:e,translations:this.translations[e]}),null==this.defaultLang&&this.changeDefaultLang(e)}changeDefaultLang(e){this.defaultLang=e,this.onDefaultLangChange.emit({lang:e,translations:this.translations[e]})}reloadLang(e){return
this.resetLang(e),this.getTranslation(e)}resetLang(e){this._translationRequests[e]=void
0,this.translations[e]=void 0}getBrowserLang(){if("undefined"==typeof
window||void 0===window.navigator)return;let
e=window.navigator.languages?window.navigator.languages[0]:
null;return
e=e||window.navigator.language||window.navigator.browserLanguage||window.navigator.userLanguage,void
0!==e?(-1!==e.indexOf("-")&&(e=e.split("-")[0]),-1!==e.indexOf("_")&&(e=e.split("_")[0]),e):void
0}getBrowserCultureLang(){if("undefined"==typeof window||void
0===window.navigator)return;let
e=window.navigator.languages?window.navigator.languages[0]:null;return
e=e||window.navigator.language||window.navigator.browserLanguage||window.navigator.userLanguage,e}}return
t.\u0275fac=function(e){return
new(e||t)(K(d0),K(nl),K(hu),K(pu),K(zm),K(Wm),K($m),K(Qm),K(Km))},t.\u0275prov=X({token:t,factory:t.\u0275fac}),t})(),mu=(()=>{class
t{constructor(e,n,s){this.translateService=e,this.element=n,this._ref=s,this.onTranslationChangeSub||(this.onTranslationChangeSub=this.translateService.onTranslationChange.subscribe(r=>{r.lang===this.translateService.currentLang&&this.checkNodes(!0,r.translations)})),this.onLangChangeSub||(this.onLangChangeSub=this.translateService.onLangChange.subsc
ribe(r=>{this.checkNodes(!0,r.translations)})),this.onDefaultLangChangeSub||(this.onDefaultLangChangeSub=this.translateService.onDefaultLangChange.subscribe(r=>{this.checkNodes(!0)}))}set
translate(e){e&&(this.key=e,this.checkNodes())}set
translateParams(e){il(this.currentParams,e)||(this.currentParams=e,this.checkNodes(!0))}ngAfterViewChecked(){this.checkNodes()}checkNodes(e=!1,n){let
s=this.element.nativeElement.childNodes;s.length||(this.setContent(this.element.nativeElement,this.key),s=this.element.nativeElement.childNodes);for(let
r=0;r<s.length;++r){let o=s[r];if(3===o.nodeType){let
u;if(e&&(o.lastKey=null),ri(o.lookupKey))u=o.lookupKey;else
if(this.key)u=this.key;else{let
h=this.getContent(o),b=h.trim();b.length&&(o.lookupKey=b,h!==o.currentValue?(u=b,o.originalContent=h||o.originalContent):o.originalContent?u=o.originalContent.trim():h!==o.currentValue&&(u=b,o.originalContent=h||o.originalContent))}this.updateValue(u,o,n)}}}updateValue(e,n,s){if(e){if(n.lastKey===e&&this.las
tParams===this.currentParams)return;this.lastParams=this.currentParams;let
r=o=>{o!==e&&(n.lastKey=e),n.originalContent||(n.originalContent=this.getContent(n)),n.currentValue=ri(o)?o:n.originalContent||e,this.setContent(n,this.key?n.currentValue:n.originalContent.replace(e,n.currentValue)),this._ref.markForCheck()};if(ri(s)){let
o=this.translateService.getParsedResult(s,e,this.currentParams);is(o)?o.subscribe({next:r}):r(o)}else
this.translateService.get(e,this.currentParams).subscribe(r)}}getContent(e){return
ri(e.textContent)?e.textContent:e.data}setContent(e,n){ri(e.textContent)?e.textContent=n:e.data=n}ngOnDestroy(){this.onLangChangeSub&&this.onLangChangeSub.unsubscribe(),this.onDefaultLangChangeSub&&this.onDefaultLangChangeSub.unsubscribe(),this.onTranslationChangeSub&&this.onTranslationChangeSub.unsubscribe()}}return
t.\u0275fac=function(e){return
new(e||t)(D(Oe),D(De),D(rt))},t.\u0275dir=le({type:t,selectors:[["","translate",""],["","ngx-translate",""]],inputs:{translate:"tra
nslate",translateParams:"translateParams"}}),t})(),ce=(()=>{class
t{constructor(e,n){this.translate=e,this._ref=n,this.value="",this.lastKey=null,this.lastParams=[]}updateValue(e,n,s){let
r=o=>{this.value=void 0!==o?o:e,this.lastKey=e,this._ref.markForCheck()};if(s){let
o=this.translate.getParsedResult(s,e,n);is(o.subscribe)?o.subscribe(r):r(o)}this.translate.get(e,n).subscribe(r)}transform(e,...n){if(!e||!e.length)return
e;if(il(e,this.lastKey)&&il(n,this.lastParams))return this.value;let
s;if(ri(n[0])&&n.length)if("string"==typeof
n[0]&&n[0].length){let
r=n[0].replace(/(\')?([a-zA-Z0-9_]+)(\')?(\s)?:/g,'"$2":').replace(/:(\s)?(\')(.*?)(\')/g,':"$3"');try{s=JSON.parse(r)}catch(o){throw
new SyntaxError(`Wrong parameter in TranslatePipe. Expected a valid Object, received:
${n[0]}`)}}else"object"==typeof
n[0]&&!Array.isArray(n[0])&&(s=n[0]);return
this.lastKey=e,this.lastParams=n,this.updateValue(e,s),this._dispose(),this.onTranslationChange||(this.onTranslationChange=this.translate.o
nTranslationChange.subscribe(r=>{this.lastKey&&r.lang===this.translate.currentLang&&(this.lastKey=null,this.updateValue(e,s,r.translations))})),this.onLangChange||(this.onLangChange=this.translate.onLangChange.subscribe(r=>{this.lastKey&&(this.lastKey=null,this.updateValue(e,s,r.translations))})),this.onDefaultLangChange||(this.onDefaultLangChange=this.translate.onDefaultLangChange.subscribe(()=>{this.lastKey&&(this.lastKey=null,this.updateValue(e,s))})),this.value}_dispose(){void
0!==this.onTranslationChange&&(this.onTranslationChange.unsubscribe(),this.onTranslationChange=void
0),void
0!==this.onLangChange&&(this.onLangChange.unsubscribe(),this.onLangChange=void
0),void
0!==this.onDefaultLangChange&&(this.onDefaultLangChange.unsubscribe(),this.onDefaultLangChange=void
0)}ngOnDestroy(){this._dispose()}}return t.\u0275fac=function(e){return
new(e||t)(D(Oe,16),D(rt,16))},t.\u0275pipe=An({name:"translate",type:t,pure:!1}),t.\u0275prov=X({token:t,factory:t.\u0275fac}),t})(),$O=(()=>{cl
ass t{static
forRoot(e={}){return{ngModule:t,providers:[e.loader||{provide:nl,useClass:o0},e.compiler||{provide:hu,useClass:u0},e.parser||{provide:pu,useClass:c0},e.missingTranslationHandler||{provide:zm,useClass:a0},d0,{provide:$m,useValue:e.isolate},{provide:Wm,useValue:e.useDefaultLang},{provide:Qm,useValue:e.extend},{provide:Km,useValue:e.defaultLanguage},Oe]}}static
forChild(e={}){return{ngModule:t,providers:[e.loader||{provide:nl,useClass:o0},e.compiler||{provide:hu,useClass:u0},e.parser||{provide:pu,useClass:c0},e.missingTranslationHandler||{provide:zm,useClass:a0},{provide:$m,useValue:e.isolate},{provide:Wm,useValue:e.useDefaultLang},{provide:Qm,useValue:e.extend},{provide:Km,useValue:e.defaultLanguage},Oe]}}}return
t.\u0275fac=function(e){return
new(e||t)},t.\u0275mod=he({type:t}),t.\u0275inj=ue({}),t})();class
WO{constructor(i,e="/assets/i18n/",n=".json"){this.http=i,this.prefix=e,this.suffix=n}getTranslation(i){return
this.http.get(`${this.prefix}${i}${this.suffix}`)}}let
p0=(()=>{class
t{constructor(e,n){this._renderer=e,this._elementRef=n,this.onChange=s=>{},this.onTouched=()=>{}}setProperty(e,n){this._renderer.setProperty(this._elementRef.nativeElement,e,n)}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)(D(gn),D(De))},t.\u0275dir=le({type:t}),t})(),vr=(()=>{class t extends
p0{}return t.\u0275fac=function(){let i;return
function(n){return(i||(i=on(t)))(n||t)}}(),t.\u0275dir=le({type:t,features:[ut]}),t})();const
dn=new
be("NgValueAccessor"),QO={provide:dn,useExisting:je(()=>Ye),multi:!0},YO=new
be("CompositionEventMode");let Ye=(()=>{class t extends
p0{constructor(e,n,s){super(e,n),this._compositionMode=s,this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function
JO(){const t=ns()?ns().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)(D(gn),D(De),D(YO,8))},t.\u0275dir=le({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,n){1&e&&C("input",function(r){return
n._handleInput(r.target.value)})("blur",function(){return
n.onTouched()})("compositionstart",function(){return
n._compositionStart()})("compositionend",function(r){return
n._compositionEnd(r.target.value)})},features:[Pe([QO]),ut]}),t})();function zs(t){return
null==t||0===t.length}const Ln=new be("NgValidators"),js=new
be("NgAsyncValidators");function
_0(t){return zs(t.value)?{required:!0}:null}function fu(t){return null}function
T0(t){return null!=t}function S0(t){const i=Ra(t)?Mn(t):t;return Dh(i),i}function
x0(t){let i={};return
t.forEach(e=>{i=null!=e?Object.assign(Object.assign({},i),e):i}),0===Object.keys(i).length?null:i}function
D0(t,i){return i.map(e=>e(t))}function M0(t){return t.map(i=>function
XO(t){return!t.validate}(i)?i:e=>i.validate(e))}function Jm(t){return null!=t?function
k0(t){if(!t)return null;const i=t.filter(T0);return 0==i.length?null:function(e){return
x0(D0(e,i))}}(M0(t)):null}function Ym(t){return null!=t?function I0(t){if(!t)return
null;const i=t.filter(T0);return 0==i.length?null:function(e){return
n0(D0(e,i).map(S0)).pipe(et(x0))}}(M0(t)):null}function E0(t,i){return
null===t?[i]:Array.isArray(t)?[...t,i]:[t,i]}function Zm(t){return
t?Array.isArray(t)?t:[t]:[]}function gu(t,i){return
Array.isArray(t)?t.includes(i):t===i}function O0(t,i){const e=Zm(i);return
Zm(t).forEach(s=>{gu(e,s)||e.push(s)}),e}f
unction A0(t,i){return Zm(i).filter(e=>!gu(t,e))}class
P0{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.valueChang
es:null}get path(){return
null}_setValidators(i){this._rawValidators=i||[],this._composedValidatorFn=Jm(this._rawValidators)}_setAsyncValidators(i){this._rawAsyncValidators=i||[],this._composedAsyncValidatorFn=Ym(this._rawAsyncValidators)}get
validator(){return this._composedValidatorFn||null}get asyncValidator(){return
this._composedAsyncValidatorFn||null}_registerOnDestroy(i){this._onDestroyCallbacks.push(i)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(i=>i()),this._onDestroyCallbacks=[]}reset(i){this.control&&this.control.reset(i)}hasError(i,e){return!!this.control&&this.control.hasError(i,e)}getError(i,e){return
this.control?this.control.getError(i,e):null}}class ss extends
P0{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}class
Un extends P0{get formDirective(){return null}get path(){return null}}class
F0{constructor(i){this._cd=i}is(i){var
e,n,s;return"submitted"===i?!!(null===(e=this._cd)||void 0===e?void 0:e.submit
ted):!!(null===(s=null===(n=this._cd)||void 0===n?void 0:n.control)||void 0===s?void
0:s[i])}}let Te=(()=>{class t extends F0{constructor(e){super(e)}}return
t.\u0275fac=function(e){return
new(e||t)(D(ss,2))},t.\u0275dir=le({type:t,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(e,n){2&e&&si("ng-untouched",n.is("untouched"))("ng-touched",n.is("touched"))("ng-pristine",n.is("pristine"))("ng-dirty",n.is("dirty"))("ng-valid",n.is("valid"))("ng-invalid",n.is("invalid"))("ng-pending",n.is("pending"))},features:[ut]}),t})(),Ue=(()=>{class
t extends F0{constructor(e){super(e)}}return t.\u0275fac=function(e){return
new(e||t)(D(Un,10))},t.\u0275dir=le({type:t,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(e,n){2&e&&si("ng-untouched",n.is("untouched"))("ng-touched",n.is("touched"))("ng-pristine",n.is
("pristine"))("ng-dirty",n.is("dirty"))("ng-valid",n.is("valid"))("ng-invalid",n.is("invalid"))("ng-pending",n.is("pending"))("ng-submitted",n.is("submitted"))},features:[ut]}),t})();function
sl(t,i){tf(t,i),i.valueAccessor.writeValue(t.value),function
aA(t,i){i.valueAccessor.registerOnChange(e=>{t._pendingValue=e,t._pendingChange=!0,t._pendingDirty=!0,"change"===t.updateOn&&V0(t,i)})}(t,i),function
cA(t,i){const
e=(n,s)=>{i.valueAccessor.writeValue(n),s&&i.viewToModelUpdate(n)};t.registerOnChange(e),i._registerOnDestroy(()=>{t._unregisterOnChange(e)})}(t,i),function
lA(t,i){i.valueAccessor.registerOnTouched(()=>{t._pendingTouched=!0,"blur"===t.updateOn&&t._pendingChange&&V0(t,i),"submit"!==t.updateOn&&t.markAsTouched()})}(t,i),function
oA(t,i){if(i.valueAccessor.setDisabledState){const
e=n=>{i.valueAccessor.setDisabledState(n)};t.registerOnDisabledChange(e),i._registerOnDestroy(()=>{t._unregisterOnDisabledChange(e)})}}(t,i)}function
Cu(t,i){t.forEach(e=>{e.registerOnValidatorChange
&&e.registerOnValidatorChange(i)})}function tf(t,i){const e=function R0(t){return
t._rawValidators}(t);null!==i.validator?t.setValidators(E0(e,i.validator)):"function"==typeof
e&&t.setValidators([e]);const n=function L0(t){return
t._rawAsyncValidators}(t);null!==i.asyncValidator?t.setAsyncValidators(E0(n,i.asyncValidator)):"function"==typeof
n&&t.setAsyncValidators([n]);const
s=()=>t.updateValueAndValidity();Cu(i._rawValidators,s),Cu(i._rawAsyncValidators,s)}function
V0(t,i){t._pendingDirty&&t.markAsDirty(),t.setValue(t._pendingValue,{emitModelToViewChange:!1}),i.viewToModelUpdate(t._pendingValue),t._pendingChange=!1}function
rf(t,i){const e=t.indexOf(i);e>-1&&t.splice(e,1)}const
rl="VALID",wu="INVALID",Eo="PENDING",ol="DISABLED";function
af(t){return(Tu(t)?t.validators:t)||null}function G0(t){return
Array.isArray(t)?Jm(t):t||null}function
lf(t,i){return(Tu(i)?i.asyncValidators:t)||null}function U0(t){return
Array.isArray(t)?Ym(t):t||null}function Tu(t){return null!=t&&!Array.isArra
y(t)&&"object"==typeof t}const cf=t=>t instanceof df;function
j0(t){return(t=>t instanceof K0)(t)?t.value:t.getRawValue()}function $0(t,i){const
e=cf(t),n=t.controls;if(!(e?Object.keys(n):n).length)throw new
re(1e3,"");if(!n[i])throw new re(1001,"")}function
W0(t,i){cf(t),t._forEachChild((n,s)=>{if(void 0===i[s])throw new
re(1002,"")})}class
uf{constructor(i,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=i,this._rawAsyncValidators=e,this._composedValidatorFn=G0(this._rawValidators),this._composedAsyncValidatorFn=U0(this._rawAsyncValidators)}get
validator(){return this._composedValidatorFn}set
validator(i){this._rawValidators=this._composedValidatorFn=i}get asyncValidator(){return
this._composedAsyncValidatorFn}set
asyncValidator(i){this._rawAsyncValidators=this._composedAsyncValidatorFn=i}get
parent(){return this._par
ent}get valid(){return this.status===rl}get invalid(){return this.status===wu}get
pending(){return this.status==Eo}get disabled(){return this.status===ol}get
enabled(){return this.status!==ol}get dirty(){return!this.pristine}get
untouched(){return!this.touched}get updateOn(){return
this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(i){this._rawValidators=i,this._composedValidatorFn=G0(i)}setAsyncValidators(i){this._rawAsyncValidators=i,this._composedAsyncValidatorFn=U0(i)}addValidators(i){this.setValidators(O0(i,this._rawValidators))}addAsyncValidators(i){this.setAsyncValidators(O0(i,this._rawAsyncValidators))}removeValidators(i){this.setValidators(A0(i,this._rawValidators))}removeAsyncValidators(i){this.setAsyncValidators(A0(i,this._rawAsyncValidators))}hasValidator(i){return
gu(this._rawValidators,i)}hasAsyncValidator(i){return
gu(this._rawAsyncValidators,i)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}mar
kAsTouched(i={}){this.touched=!0,this._parent&&!i.onlySelf&&this._parent.markAsTouched(i)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild(i=>i.markAllAsTouched())}markAsUntouched(i={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild(e=>{e.markAsUntouched({onlySelf:!0})}),this._parent&&!i.onlySelf&&this._parent._updateTouched(i)}markAsDirty(i={}){this.pristine=!1,this._parent&&!i.onlySelf&&this._parent.markAsDirty(i)}markAsPristine(i={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(e=>{e.markAsPristine({onlySelf:!0})}),this._parent&&!i.onlySelf&&this._parent._updatePristine(i)}markAsPending(i={}){this.status=Eo,!1!==i.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!i.onlySelf&&this._parent.markAsPending(i)}disable(i={}){const
e=this._parentMarkedDirty(i.onlySelf);this.status=ol,this.errors=null,this._forEachChild(n=>{n.disable(Object.assign(Object.assign({},i),{onlySelf:!0}))}),this._updateValue(),!1!==i.emitEvent&&(this.
valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(Object.assign(Object.assign({},i),{skipPristineCheck:e})),this._onDisabledChange.forEach(n=>n(!0))}enable(i={}){const
e=this._parentMarkedDirty(i.onlySelf);this.status=rl,this._forEachChild(n=>{n.enable(Object.assign(Object.assign({},i),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:i.emitEvent}),this._updateAncestors(Object.assign(Object.assign({},i),{skipPristineCheck:e})),this._onDisabledChange.forEach(n=>n(!1))}_updateAncestors(i){this._parent&&!i.onlySelf&&(this._parent.updateValueAndValidity(i),i.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(i){this._parent=i}updateValueAndValidity(i={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===rl||this.status===Eo)&&this._runAsyncValidator(i.emitEvent))
,!1!==i.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!i.onlySelf&&this._parent.updateValueAndValidity(i)}_updateTreeValidity(i={emitEvent:!0}){this._forEachChild(e=>e._updateTreeValidity(i)),this.updateValueAndValidity({onlySelf:!0,emitEvent:i.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?ol:rl}_runValidator(){return
this.validator?this.validator(this):null}_runAsyncValidator(i){if(this.asyncValidator){this.status=Eo,this._hasOwnPendingAsyncValidator=!0;const
e=S0(this.asyncValidator(this));this._asyncValidationSubscription=e.subscribe(n=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors(n,{emitEvent:i})})}}_cancelExistingSubscription(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}setErrors(i,e={}){this.errors=i,this._updateControlsErrors(!1!==e.emitEvent)}get(i){return
function hA(t,i,e){if(null==i||(Array.isArray(i)||(i=i.s
plit(e)),Array.isArray(i)&&0===i.length))return null;let n=t;return
i.forEach(s=>{n=cf(n)?n.controls.hasOwnProperty(s)?n.controls[s]:null:(t=>t
instanceof fA)(n)&&n.at(s)||null}),n}(this,i,".")}getError(i,e){const
n=e?this.get(e):this;return
n&&n.errors?n.errors[i]:null}hasError(i,e){return!!this.getError(i,e)}get
root(){let i=this;for(;i._parent;)i=i._parent;return
i}_updateControlsErrors(i){this.status=this._calculateStatus(),i&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(i)}_initObservables(){this.valueChanges=new
H,this.statusChanges=new H}_calculateStatus(){return
this._allControlsDisabled()?ol:this.errors?wu:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(Eo)?Eo:this._anyControlsHaveStatus(wu)?wu:rl}_anyControlsHaveStatus(i){return
this._anyControls(e=>e.status===i)}_anyControlsDirty(){return
this._anyControls(i=>i.dirty)}_anyControlsTouched(){return
this._anyControls(i=>i.touched)}_updatePristine(i={}){this.pristine=!th
is._anyControlsDirty(),this._parent&&!i.onlySelf&&this._parent._updatePristine(i)}_updateTouched(i={}){this.touched=this._anyControlsTouched(),this._parent&&!i.onlySelf&&this._parent._updateTouched(i)}_isBoxedValue(i){return"object"==typeof
i&&null!==i&&2===Object.keys(i).length&&"value"in
i&&"disabled"in
i}_registerOnCollectionChange(i){this._onCollectionChange=i}_setUpdateStrategy(i){Tu(i)&&null!=i.updateOn&&(this._updateOn=i.updateOn)}_parentMarkedDirty(i){return!i&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}}class
K0 extends
uf{constructor(i=null,e,n){super(af(e),lf(n,e)),this.defaultValue=null,this._onChange=[],this._pendingChange=!1,this._applyFormState(i),this._setUpdateStrategy(e),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),Tu(e)&&e.initialValueIsDefault&&(this.defaultValue=this._isBoxedValue(i)?i.value:i)}setValue(i,e={}){this.value=this._pendingValue=i,this._onChange.length&&!1!==e.emitMod
elToViewChange&&this._onChange.forEach(n=>n(this.value,!1!==e.emitViewToModelChange)),this.updateValueAndValidity(e)}patchValue(i,e={}){this.setValue(i,e)}reset(i=this.defaultValue,e={}){this._applyFormState(i),this.markAsPristine(e),this.markAsUntouched(e),this.setValue(this.value,e),this._pendingChange=!1}_updateValue(){}_anyControls(i){return!1}_allControlsDisabled(){return
this.disabled}registerOnChange(i){this._onChange.push(i)}_unregisterOnChange(i){rf(this._onChange,i)}registerOnDisabledChange(i){this._onDisabledChange.push(i)}_unregisterOnDisabledChange(i){rf(this._onDisabledChange,i)}_forEachChild(i){}_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(i){this._isBoxedValue(i)?(this.value=this._pendingValue=i.value,i.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.e
nable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=i}}class df extends
uf{constructor(i,e,n){super(af(e),lf(n,e)),this.controls=i,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}registerControl(i,e){return
this.controls[i]?this.controls[i]:(this.controls[i]=e,e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange),e)}addControl(i,e,n={}){this.registerControl(i,e),this.updateValueAndValidity({emitEvent:n.emitEvent}),this._onCollectionChange()}removeControl(i,e={}){this.controls[i]&&this.controls[i]._registerOnCollectionChange(()=>{}),delete
this.controls[i],this.updateValueAndValidity({emitEvent:e.emitEvent}),this._onCollectionChange()}setControl(i,e,n={}){this.controls[i]&&this.controls[i]._registerOnCollectionChange(()=>{}),delete
this.controls[i],e&&this.registerControl(i,e),this.updateValueAndValidity({emitEvent:n.emitEvent}),this._onCollectionChange
()}contains(i){return
this.controls.hasOwnProperty(i)&&this.controls[i].enabled}setValue(i,e={}){W0(this,i),Object.keys(i).forEach(n=>{$0(this,n),this.controls[n].setValue(i[n],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(i,e={}){null!=i&&(Object.keys(i).forEach(n=>{this.controls[n]&&this.controls[n].patchValue(i[n],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e))}reset(i={},e={}){this._forEachChild((n,s)=>{n.reset(i[s],{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e),this._updateTouched(e),this.updateValueAndValidity(e)}getRawValue(){return
this._reduceChildren({},(i,e,n)=>(i[n]=j0(e),i))}_syncPendingControls(){let
i=this._reduceChildren(!1,(e,n)=>!!n._syncPendingControls()||e);return
i&&this.updateValueAndValidity({onlySelf:!0}),i}_forEachChild(i){Object.keys(this.controls).forEach(e=>{const
n=this.controls[e];n&&i(n,e)})}_setUpControls(){this._forEachChild(i=>{i.setParent(this),i._registerOnCollectionChange(t
his._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(i){for(const
e of Object.keys(this.controls)){const
n=this.controls[e];if(this.contains(e)&&i(n))return!0}return!1}_reduceValue(){return
this._reduceChildren({},(i,e,n)=>((e.enabled||this.disabled)&&(i[n]=e.value),i))}_reduceChildren(i,e){let
n=i;return this._forEachChild((s,r)=>{n=e(n,s,r)}),n}_allControlsDisabled(){for(const i
of Object.keys(this.controls))if(this.controls[i].enabled)return!1;return
Object.keys(this.controls).length>0||this.disabled}}class fA extends
uf{constructor(i,e,n){super(af(e),lf(n,e)),this.controls=i,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}at(i){return
this.controls[i]}push(i,e={}){this.controls.push(i),this._registerControl(i),this.updateValueAndValidity({emitEvent:e.emitEvent}),this._onCollectionChange()}insert(i,e,n={}){this.controls.splice(i,0,e),this._registerC
ontrol(e),this.updateValueAndValidity({emitEvent:n.emitEvent})}removeAt(i,e={}){this.controls[i]&&this.controls[i]._registerOnCollectionChange(()=>{}),this.controls.splice(i,1),this.updateValueAndValidity({emitEvent:e.emitEvent})}setControl(i,e,n={}){this.controls[i]&&this.controls[i]._registerOnCollectionChange(()=>{}),this.controls.splice(i,1),e&&(this.controls.splice(i,0,e),this._registerControl(e)),this.updateValueAndValidity({emitEvent:n.emitEvent}),this._onCollectionChange()}get
length(){return
this.controls.length}setValue(i,e={}){W0(this,i),i.forEach((n,s)=>{$0(this,s),this.at(s).setValue(n,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(i,e={}){null!=i&&(i.forEach((n,s)=>{this.at(s)&&this.at(s).patchValue(n,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e))}reset(i=[],e={}){this._forEachChild((n,s)=>{n.reset(i[s],{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e),this._updateTouched(e),this.updateValueAndValid
ity(e)}getRawValue(){return
this.controls.map(i=>j0(i))}clear(i={}){this.controls.length<1||(this._forEachChild(e=>e._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity({emitEvent:i.emitEvent}))}_syncPendingControls(){let
i=this.controls.reduce((e,n)=>!!n._syncPendingControls()||e,!1);return
i&&this.updateValueAndValidity({onlySelf:!0}),i}_forEachChild(i){this.controls.forEach((e,n)=>{i(e,n)})}_updateValue(){this.value=this.controls.filter(i=>i.enabled||this.disabled).map(i=>i.value)}_anyControls(i){return
this.controls.some(e=>e.enabled&&i(e))}_setUpControls(){this._forEachChild(i=>this._registerControl(i))}_allControlsDisabled(){for(const
i of this.controls)if(i.enabled)return!1;return
this.controls.length>0||this.disabled}_registerControl(i){i.setParent(this),i._registerOnCollectionChange(this._onCollectionChange)}}const
gA={provide:Un,useExisting:je(()=>He)},al=(()=>Promise.resolve(null))();let
He=(()=>{class t extends Un{constructor(e,n){sup
er(),this.submitted=!1,this._directives=new Set,this.ngSubmit=new H,this.form=new
df({},Jm(e),Ym(n))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return
this}get control(){return this.form}get path(){return[]}get controls(){return
this.form.controls}addControl(e){al.then(()=>{const
n=this._findContainer(e.path);e.control=n.registerControl(e.name,e.control),sl(e.control,e),e.control.updateValueAndValidity({emitEvent:!1}),this._directives.add(e)})}getControl(e){return
this.form.get(e.path)}removeControl(e){al.then(()=>{const
n=this._findContainer(e.path);n&&n.removeControl(e.name),this._directives.delete(e)})}addFormGroup(e){al.then(()=>{const
n=this._findContainer(e.path),s=new df({});(function
B0(t,i){tf(t,i)})(s,e),n.registerControl(e.name,s),s.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(e){al.then(()=>{const
n=this._findContainer(e.path);n&&n.removeControl(e.name)})}getFormGroup(e){return
this.form.get(e.path)}updateModel(e,n){al.then(()=>{this.form
.get(e.path).setValue(n)})}setValue(e){this.control.setValue(e)}onSubmit(e){return
this.submitted=!0,function q0(t,i){t._syncPendingControls(),i.forEach(e=>{const
n=e.control;"submit"===n.updateOn&&n._pendingChange&&(e.viewToModelUpdate(n._pendingValue),n._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)(D(Ln,10),D(js,10))},t.\u0275dir=le({type:t,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(e,n){1&e&&C("submit",function(r){return
n.onSubmit(r)})("reset",function(){return
n.onReset()})},inputs:{options:["ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[Pe([gA]),ut]}
),t})();const
bA={provide:ss,useExisting:je(()=>_e)},Y0=(()=>Promise.resolve(null))();let
_e=(()=>{class t extends
ss{constructor(e,n,s,r,o){super(),this._changeDetectorRef=o,this.control=new
K0,this._registered=!1,this.update=new
H,this._parent=e,this._setValidators(n),this._setAsyncValidators(s),this.valueAccessor=function
sf(t,i){if(!i)return null;let e,n,s;return
Array.isArray(i),i.forEach(r=>{r.constructor===Ye?e=r:function pA(t){return
Object.getPrototypeOf(t.constructor)===vr}(r)?n=r:s=r}),s||n||e||null}(0,r)}ngOnChanges(e){if(this._checkForErrors(),!this._registered||"name"in
e){if(this._registered&&(this._checkName(),this.formDirective)){const
n=e.name.previousValue;this.formDirective.removeControl({name:n,path:this._getPath(n)})}this._setUpControl()}"isDisabled"in
e&&this._updateDisabled(e),function
nf(t,i){if(!t.hasOwnProperty("model"))return!1;const
e=t.model;return!!e.isFirstChange()||!Object.is(i,e.currentValue)}(e,this.viewModel)&&(this._updateValue(this.model),this.v
iewModel=this.model)}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}get
path(){return this._getPath(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}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.control._updateOn=this.options.updateOn)}_isStandalone(){return!this._parent||!(!this.options||!this.options.standalone)}_setUpStandalone(){sl(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){Y0.then(()=>{var
n;this.control.setValue(e,{emitViewToModelChange:!1}),null===(n=this._c
hangeDetectorRef)||void 0===n||n.markForCheck()})}_updateDisabled(e){const
n=e.isDisabled.currentValue,s=""===n||n&&"false"!==n;Y0.then(()=>{var
r;s&&!this.control.disabled?this.control.disable():!s&&this.control.disabled&&this.control.enable(),null===(r=this._changeDetectorRef)||void
0===r||r.markForCheck()})}_getPath(e){return this._parent?function
bu(t,i){return[...i.path,t]}(e,this._parent):[e]}}return t.\u0275fac=function(e){return
new(e||t)(D(Un,9),D(Ln,10),D(js,10),D(dn,10),D(rt,8))},t.\u0275dir=le({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:[Pe([bA]),ut,fn]}),t})(),ze=(()=>{class
t{}return t.\u0275fac=function(e){return
new(e||t)},t.\u0275dir=le({type:t,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]}),t})();const
vA={
provide:dn,useExisting:je(()=>Su),multi:!0};let Su=(()=>{class t extends
vr{writeValue(e){this.setProperty("value",null==e?"":e)}registerOnChange(e){this.onChange=n=>{e(""==n?null:parseFloat(n))}}}return
t.\u0275fac=function(){let i;return
function(n){return(i||(i=on(t)))(n||t)}}(),t.\u0275dir=le({type:t,selectors:[["input","type","number","formControlName",""],["input","type","number","formControl",""],["input","type","number","ngModel",""]],hostBindings:function(e,n){1&e&&C("input",function(r){return
n.onChange(r.target.value)})("blur",function(){return
n.onTouched()})},features:[Pe([vA]),ut]}),t})(),Z0=(()=>{class t{}return
t.\u0275fac=function(e){return
new(e||t)},t.\u0275mod=he({type:t}),t.\u0275inj=ue({}),t})();const pf=new
be("NgModelWithFormControlWarning");function
aw(t){return"number"==typeof t?t:parseFloat(t)}let Cr=(()=>{class
t{constructor(){this._validator=fu}ngOnChanges(e){if(this.inputName in e){const
n=this.normalizeInput(e[this.inputName].currentValue);this._enable
d=this.enabled(n),this._validator=this._enabled?this.createValidator(n):fu,this._onChange&&this._onChange()}}validate(e){return
this._validator(e)}registerOnValidatorChange(e){this._onChange=e}enabled(e){return
null!=e}}return t.\u0275fac=function(e){return
new(e||t)},t.\u0275dir=le({type:t,features:[fn]}),t})();const
PA={provide:Ln,useExisting:je(()=>xu),multi:!0};let xu=(()=>{class t extends
Cr{constructor(){super(...arguments),this.inputName="max",this.normalizeInput=e=>aw(e),this.createValidator=e=>function
g0(t){return i=>{if(zs(i.value)||zs(t))return null;const
e=parseFloat(i.value);return!isNaN(e)&&e>t?{max:{max:t,actual:i.value}}:null}}(e)}}return
t.\u0275fac=function(){let i;return
function(n){return(i||(i=on(t)))(n||t)}}(),t.\u0275dir=le({type:t,selectors:[["input","type","number","max","","formControlName",""],["input","type","number","max","","formControl",""],["input","type","number","max","","ngModel",""]],hostVars:1,hostBindings:function(e,n){2&e&&ie("max",n._enabled?
n.max:null)},inputs:{max:"max"},features:[Pe([PA]),ut]}),t})();const
FA={provide:Ln,useExisting:je(()=>Du),multi:!0};let Du=(()=>{class t extends
Cr{constructor(){super(...arguments),this.inputName="min",this.normalizeInput=e=>aw(e),this.createValidator=e=>function
f0(t){return i=>{if(zs(i.value)||zs(t))return null;const
e=parseFloat(i.value);return!isNaN(e)&&e<t?{min:{min:t,actual:i.value}}:null}}(e)}}return
t.\u0275fac=function(){let i;return
function(n){return(i||(i=on(t)))(n||t)}}(),t.\u0275dir=le({type:t,selectors:[["input","type","number","min","","formControlName",""],["input","type","number","min","","formControl",""],["input","type","number","min","","ngModel",""]],hostVars:1,hostBindings:function(e,n){2&e&&ie("min",n._enabled?n.min:null)},inputs:{min:"min"},features:[Pe([FA]),ut]}),t})();const
NA={provide:Ln,useExisting:je(()=>ll),multi:!0};let ll=(()=>{class t extends
Cr{constructor(){super(...arguments),this.inputName="required",this.normalizeInput=e=>function
AA(t){retu
rn
null!=t&&!1!==t&&"false"!=`${t}`}(e),this.createValidator=e=>_0}enabled(e){return
e}}return t.\u0275fac=function(){let i;return
function(n){return(i||(i=on(t)))(n||t)}}(),t.\u0275dir=le({type:t,selectors:[["","required","","formControlName","",3,"type","checkbox"],["","required","","formControl","",3,"type","checkbox"],["","required","","ngModel","",3,"type","checkbox"]],hostVars:1,hostBindings:function(e,n){2&e&&ie("required",n._enabled?"":null)},inputs:{required:"required"},features:[Pe([NA]),ut]}),t})();const
qA={provide:Ln,useExisting:je(()=>_n),multi:!0};let _n=(()=>{class t extends
Cr{constructor(){super(...arguments),this.inputName="maxlength",this.normalizeInput=e=>function
ow(t){return"number"==typeof
t?t:parseInt(t,10)}(e),this.createValidator=e=>function y0(t){return i=>function
m0(t){return null!=t&&"number"==typeof
t.length}(i.value)&&i.value.length>t?{maxlength:{requiredLength:t,actualLength:i.value.length}}:null}(e)}}return
t.\u0275fac=function(){let i;return funct
ion(n){return(i||(i=on(t)))(n||t)}}(),t.\u0275dir=le({type:t,selectors:[["","maxlength","","formControlName",""],["","maxlength","","formControl",""],["","maxlength","","ngModel",""]],hostVars:1,hostBindings:function(e,n){2&e&&ie("maxlength",n._enabled?n.maxlength:null)},inputs:{maxlength:"maxlength"},features:[Pe([qA]),ut]}),t})(),pw=(()=>{class
t{}return t.\u0275fac=function(e){return
new(e||t)},t.\u0275mod=he({type:t}),t.\u0275inj=ue({imports:[[Z0]]}),t})(),Mu=(()=>{class
t{}return t.\u0275fac=function(e){return
new(e||t)},t.\u0275mod=he({type:t}),t.\u0275inj=ue({imports:[pw]}),t})(),UA=(()=>{class
t{static
withConfig(e){return{ngModule:t,providers:[{provide:pf,useValue:e.warnOnNgModelWithFormControl}]}}}return
t.\u0275fac=function(e){return
new(e||t)},t.\u0275mod=he({type:t}),t.\u0275inj=ue({imports:[pw]}),t})();class hw{}const
ys="*";function wi(t,i){return{type:7,name:t,definitions:i,options:{}}}function
kt(t,i=null){return{type:4,styles:i,timings:t}}function mw(t,i=null){retu
rn{type:2,steps:t,options:i}}function it(t){return{type:6,styles:t,offset:null}}function
ws(t,i,e){return{type:0,name:t,styles:i,options:e}}function
Lt(t,i,e=null){return{type:1,expr:t,animation:i,options:e}}function
ku(t,i=null){return{type:8,animation:t,options:i}}function
jA(t=null){return{type:9,options:t}}function
fw(t,i=null){return{type:10,animation:t,options:i}}function
$A(t,i,e=null){return{type:11,selector:t,animation:i,options:e}}function
gw(t){Promise.resolve(null).then(t)}class
cl{constructor(i=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=i+e}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(i=>i()),this._onDoneFns=[])}onStart(i){this._onStartFns.push(i)}onDone(i){this._onDoneFns.push(i)}onDestroy(i){this._onDestroyFns.push(i)}hasStarted(){return
this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.trig
gerMicrotask()),this._started=!0}triggerMicrotask(){gw(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(i=>i()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(i=>i()),this._onDestroyFns=[])}reset(){this._started=!1}setPosition(i){this._position=this.totalTime?i*this.totalTime:1}getPosition(){return
this.totalTime?this._position/this.totalTime:1}triggerCallback(i){const
e="start"==i?this._onStartFns:this._onDoneFns;e.forEach(n=>n()),e.length=0}}class
_w{constructor(i){this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=i;let
e=0,n=0,s=0;const
r=this.players.length;0==r?gw(()=>this._onFinish()):this.players.forEach(o=>{o.onDone(()=>{++e==r&&this._onFinish()}),o.onDestroy(()=>{++n==r&&this._onDestroy()}),o.onStart(()=>{++s=
=r&&this._onStart()})}),this.totalTime=this.players.reduce((o,u)=>Math.max(o,u.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(i=>i()),this._onDoneFns=[])}init(){this.players.forEach(i=>i.init())}onStart(i){this._onStartFns.push(i)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(i=>i()),this._onStartFns=[])}onDone(i){this._onDoneFns.push(i)}onDestroy(i){this._onDestroyFns.push(i)}hasStarted(){return
this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(i=>i.play())}pause(){this.players.forEach(i=>i.pause())}restart(){this.players.forEach(i=>i.restart())}finish(){this._onFinish(),this.players.forEach(i=>i.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(i=>i.destroy()),this._onDestroyFns.forEach(i=>i()),this._onDestroyFns=[])}reset(){this.players.forEach(i=>i.reset()),this._destroyed=!1,this._finished=!1,this._st
arted=!1}setPosition(i){const e=i*this.totalTime;this.players.forEach(n=>{const
s=n.totalTime?Math.min(1,e/n.totalTime):1;n.setPosition(s)})}getPosition(){const
i=this.players.reduce((e,n)=>null===e||n.totalTime>e.totalTime?n:e,null);return
null!=i?i.getPosition():0}beforeDestroy(){this.players.forEach(i=>{i.beforeDestroy&&i.beforeDestroy()})}triggerCallback(i){const
e="start"==i?this._onStartFns:this._onDoneFns;e.forEach(n=>n()),e.length=0}}const
Ze=!1;function bw(t){return new re(3e3,Ze)}function
DP(){return"undefined"!=typeof window&&void 0!==window.document}function
vf(){return"undefined"!=typeof process&&"[object
process]"==={}.toString.call(process)}function $s(t){switch(t.length){case 0:return
new cl;case 1:return t[0];default:return new _w(t)}}function vw(t,i,e,n,s={},r={}){const
o=[],u=[];let h=-1,b=null;if(n.forEach(y=>{const
w=y.offset,M=w==h,E=M&&b||{};Object.keys(y).forEach(L=>{let
O=L,N=y[L];if("offset"!==L)switch(O=i.normalizePropertyName(O,o),N){case"!":N=s[L];break;
case
ys:N=r[L];break;default:N=i.normalizeStyleValue(L,O,N,o)}E[O]=N}),M||u.push(E),b=E,h=w}),o.length)throw
function fP(t){return new re(3502,Ze)}();return u}function
Cf(t,i,e,n){switch(i){case"start":t.onStart(()=>n(e&&yf(e,"start",t)));break;case"done":t.onDone(()=>n(e&&yf(e,"done",t)));break;case"destroy":t.onDestroy(()=>n(e&&yf(e,"destroy",t)))}}function
yf(t,i,e){const
n=e.totalTime,r=wf(t.element,t.triggerName,t.fromState,t.toState,i||t.phaseName,null==n?t.totalTime:n,!!e.disabled),o=t._data;return
null!=o&&(r._data=o),r}function
wf(t,i,e,n,s="",r=0,o){return{element:t,triggerName:i,fromState:e,toState:n,phaseName:s,totalTime:r,disabled:!!o}}function
oi(t,i,e){let n;return t instanceof
Map?(n=t.get(i),n||t.set(i,n=e)):(n=t[i],n||(n=t[i]=e)),n}function Cw(t){const
i=t.indexOf(":");return[t.substring(1,i),t.substr(i+1)]}let
Tf=(t,i)=>!1,yw=(t,i,e)=>[],ww=null;function Sf(t){const
i=t.parentNode||t.host;return i===ww?null:i}(vf()||"undefined"!=typeof
Element)&&(DP()?(ww=(()=>doc
ument.documentElement)(),Tf=(t,i)=>{for(;i;){if(i===t)return!0;i=Sf(i)}return!1}):Tf=(t,i)=>t.contains(i),yw=(t,i,e)=>{if(e)return
Array.from(t.querySelectorAll(i));const n=t.querySelector(i);return n?[n]:[]});let
yr=null,Tw=!1;function Sw(t){yr||(yr=function kP(){return"undefined"!=typeof
document?document.body:null}()||{},Tw=!!yr.style&&"WebkitAppearance"in
yr.style);let i=!0;return yr.style&&!function
MP(t){return"ebkit"==t.substring(1,6)}(t)&&(i=t in
yr.style,!i&&Tw&&(i="Webkit"+t.charAt(0).toUpperCase()+t.substr(1)in
yr.style)),i}const xw=Tf,Dw=yw;let Mw=(()=>{class t{validateStyleProperty(e){return
Sw(e)}matchesElement(e,n){return!1}containsElement(e,n){return
xw(e,n)}getParentElement(e){return Sf(e)}query(e,n,s){return
Dw(e,n,s)}computeStyle(e,n,s){return s||""}animate(e,n,s,r,o,u=[],h){return new
cl(s,r)}}return t.\u0275fac=function(e){return
new(e||t)},t.\u0275prov=X({token:t,factory:t.\u0275fac}),t})(),xf=(()=>{class t{}return
t.NOOP=new Mw,t})();const Df="ng-enter",Eu="ng
-leave",Ru="ng-trigger",Lu=".ng-trigger",Iw="ng-animating",Mf=".ng-animating";function
wr(t){if("number"==typeof t)return t;const
i=t.match(/^(-?[\.\d]+)(m?s)/);return!i||i.length<2?0:kf(parseFloat(i[1]),i[2])}function
kf(t,i){return"s"===i?1e3*t:t}function Ou(t,i,e){return
t.hasOwnProperty("duration")?t:function RP(t,i,e){let
s,r=0,o="";if("string"==typeof t){const
u=t.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===u)return
i.push(bw()),{duration:0,delay:0,easing:""};s=kf(parseFloat(u[1]),u[2]);const
h=u[3];null!=h&&(r=kf(parseFloat(h),u[4]));const b=u[5];b&&(o=b)}else
s=t;if(!e){let u=!1,h=i.length;s<0&&(i.push(function WA(){return new
re(3100,Ze)}()),u=!0),r<0&&(i.push(function KA(){return new
re(3101,Ze)}()),u=!0),u&&i.splice(h,0,bw())}return{duration:s,delay:r,easing:o}}(t,i,e)}function
Ro(t,i={}){return Object.keys(t).forEach(e=>{i[e]=t[e]}),i}function
Ws(t,i,e={}){if(i)for(let n in t)e[n]=t[n];else Ro(t,e);return e}function Rw(t,i,
e){return e?i+":"+e+";":""}function Lw(t){let
i="";for(let e=0;e<t.style.length;e++){const
n=t.style.item(e);i+=Rw(0,n,t.style.getPropertyValue(n))}for(const e in
t.style)t.style.hasOwnProperty(e)&&!e.startsWith("_")&&(i+=Rw(0,AP(e),t.style[e]));t.setAttribute("style",i)}function
rs(t,i,e){t.style&&(Object.keys(i).forEach(n=>{const
s=Ef(n);e&&!e.hasOwnProperty(n)&&(e[n]=t.style[s]),t.style[s]=i[n]}),vf()&&Lw(t))}function
Tr(t,i){t.style&&(Object.keys(i).forEach(e=>{const
n=Ef(e);t.style[n]=""}),vf()&&Lw(t))}function ul(t){return
Array.isArray(t)?1==t.length?t[0]:mw(t):t}const If=new
RegExp("{{\\s*(.+?)\\s*}}","g");function Ow(t){let
i=[];if("string"==typeof t){let
e;for(;e=If.exec(t);)i.push(e[1]);If.lastIndex=0}return i}function Au(t,i,e){const
n=t.toString(),s=n.replace(If,(r,o)=>{let u=i[o];return
i.hasOwnProperty(o)||(e.push(function JA(t){return new
re(3003,Ze)}()),u=""),u.toString()});return s==n?t:s}function Pu(t){const
i=[];let e=t.next();for(;!e.done;)i.push(e.value),e=t.ne
xt();return i}const OP=/-+([a-z0-9])/g;function Ef(t){return
t.replace(OP,(...i)=>i[1].toUpperCase())}function AP(t){return
t.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}function
ai(t,i,e){switch(i.type){case 7:return t.visitTrigger(i,e);case 0:return
t.visitState(i,e);case 1:return t.visitTransition(i,e);case 2:return
t.visitSequence(i,e);case 3:return t.visitGroup(i,e);case 4:return
t.visitAnimate(i,e);case 5:return t.visitKeyframes(i,e);case 6:return
t.visitStyle(i,e);case 8:return t.visitReference(i,e);case 9:return
t.visitAnimateChild(i,e);case 10:return t.visitAnimateRef(i,e);case 11:return
t.visitQuery(i,e);case 12:return t.visitStagger(i,e);default:throw function YA(t){return
new re(3004,Ze)}()}}function Aw(t,i){return window.getComputedStyle(t)[i]}function
HP(t,i){const e=[];return"string"==typeof
t?t.split(/\s*,\s*/).forEach(n=>function qP(t,i,e){if(":"==t[0]){const
h=function GP(t,i){switch(t){case":enter":return"void =>
*";case":leave":return"* => void";case":increm
ent":return(e,n)=>parseFloat(n)>parseFloat(e);case":decrement":return(e,n)=>parseFloat(n)<parseFloat(e);default:return
i.push(function dP(t){return new re(3016,Ze)}()),"* =>
*"}}(t,e);if("function"==typeof h)return void i.push(h);t=h}const
n=t.match(/^(\*|[-\w]+)\s*(<?[=-]>)\s*(\*|[-\w]+)$/);if(null==n||n.length<4)return
e.push(function uP(t){return new re(3015,Ze)}()),i;const
s=n[1],r=n[2],o=n[3];i.push(Pw(s,o));"<"==r[0]&&!("*"==s&&"*"==o)&&i.push(Pw(o,s))}(n,e,i)):e.push(t),e}const
Bu=new Set(["true","1"]),Hu=new
Set(["false","0"]);function Pw(t,i){const
e=Bu.has(t)||Hu.has(t),n=Bu.has(i)||Hu.has(i);return(s,r)=>{let
o="*"==t||t==s,u="*"==i||i==r;return!o&&e&&"boolean"==typeof
s&&(o=s?Bu.has(t):Hu.has(t)),!u&&n&&"boolean"==typeof
r&&(u=r?Bu.has(i):Hu.has(i)),o&&u}}const UP=new
RegExp("s*:selfs*,?","g");function Rf(t,i,e,n){return new
zP(t).build(i,e,n)}class zP{constructor(i){this._driver=i}build(i,e,n){const s=new
WP(e);this._resetContextStyleTimingState(s);const r=ai(this,ul(i)
,s);return
s.unsupportedCSSPropertiesFound.size&&s.unsupportedCSSPropertiesFound.keys(),r}_resetContextStyleTimingState(i){i.currentQuerySelector="",i.collectedStyles={},i.collectedStyles[""]={},i.currentTime=0}visitTrigger(i,e){let
n=e.queryCount=0,s=e.depCount=0;const
r=[],o=[];return"(a)"==i.name.charAt(0)&&e.errors.push(function
XA(){return new
re(3006,Ze)}()),i.definitions.forEach(u=>{if(this._resetContextStyleTimingState(e),0==u.type){const
h=u,b=h.name;b.toString().split(/\s*,\s*/).forEach(y=>{h.name=y,r.push(this.visitState(h,e))}),h.name=b}else
if(1==u.type){const
h=this.visitTransition(u,e);n+=h.queryCount,s+=h.depCount,o.push(h)}else
e.errors.push(function eP(){return new
re(3007,Ze)}())}),{type:7,name:i.name,states:r,transitions:o,queryCount:n,depCount:s,options:null}}visitState(i,e){const
n=this.visitStyle(i.styles,e),s=i.options&&i.options.params||null;if(n.containsDynamicStyles){const
r=new Set,o=s||{};n.styles.forEach(u=>{if(qu(u)){const
h=u;Object.keys(h).forEach(b=>{
Ow(h[b]).forEach(y=>{o.hasOwnProperty(y)||r.add(y)})})}}),r.size&&(Pu(r.values()),e.errors.push(function
tP(t,i){return new
re(3008,Ze)}()))}return{type:0,name:i.name,style:n,options:s?{params:s}:null}}visitTransition(i,e){e.queryCount=0,e.depCount=0;const
n=ai(this,ul(i.animation),e);return{type:1,matchers:HP(i.expr,e.errors),animation:n,queryCount:e.queryCount,depCount:e.depCount,options:Sr(i.options)}}visitSequence(i,e){return{type:2,steps:i.steps.map(n=>ai(this,n,e)),options:Sr(i.options)}}visitGroup(i,e){const
n=e.currentTime;let s=0;const r=i.steps.map(o=>{e.currentTime=n;const
u=ai(this,o,e);return s=Math.max(s,e.currentTime),u});return
e.currentTime=s,{type:3,steps:r,options:Sr(i.options)}}visitAnimate(i,e){const n=function
QP(t,i){if(t.hasOwnProperty("duration"))return t;if("number"==typeof
t)return Lf(Ou(t,i).duration,0,"");const
e=t;if(e.split(/\s+/).some(r=>"{"==r.charAt(0)&&"{"==r.charAt(1))){const
r=Lf(0,0,"");return r.dynamic=!0,r.strValue=e,r}const s=Ou(e,i);return L
f(s.duration,s.delay,s.easing)}(i.timings,e.errors);e.currentAnimateTimings=n;let
s,r=i.styles?i.styles:it({});if(5==r.type)s=this.visitKeyframes(r,e);else{let
o=i.styles,u=!1;if(!o){u=!0;const
b={};n.easing&&(b.easing=n.easing),o=it(b)}e.currentTime+=n.duration+n.delay;const
h=this.visitStyle(o,e);h.isEmptyStep=u,s=h}return
e.currentAnimateTimings=null,{type:4,timings:n,style:s,options:null}}visitStyle(i,e){const
n=this._makeStyleAst(i,e);return this._validateStyleAst(n,e),n}_makeStyleAst(i,e){const
n=[];Array.isArray(i.styles)?i.styles.forEach(o=>{"string"==typeof
o?o==ys?n.push(o):e.errors.push(function nP(t){return new
re(3002,Ze)}()):n.push(o)}):n.push(i.styles);let s=!1,r=null;return
n.forEach(o=>{if(qu(o)){const u=o,h=u.easing;if(h&&(r=h,delete
u.easing),!s)for(let b in
u)if(u[b].toString().indexOf("{{")>=0){s=!0;break}}}),{type:6,styles:n,easing:r,offset:i.offset,containsDynamicStyles:s,options:null}}_validateStyleAst(i,e){const
n=e.currentAnimateTimings;let s=e.currentTime,
r=e.currentTime;n&&r>0&&(r-=n.duration+n.delay),i.styles.forEach(o=>{"string"!=typeof
o&&Object.keys(o).forEach(u=>{if(!this._driver.validateStyleProperty(u))return
delete o[u],void e.unsupportedCSSPropertiesFound.add(u);const
h=e.collectedStyles[e.currentQuerySelector],b=h[u];let
y=!0;b&&(r!=s&&r>=b.startTime&&s<=b.endTime&&(e.errors.push(function
iP(t,i,e,n,s){return new
re(3010,Ze)}()),y=!1),r=b.startTime),y&&(h[u]={startTime:r,endTime:s}),e.options&&function
LP(t,i,e){const
n=i.params||{},s=Ow(t);s.length&&s.forEach(r=>{n.hasOwnProperty(r)||e.push(function
QA(t){return new re(3001,Ze)}())})}(o[u],e.options,e.errors)})})}visitKeyframes(i,e){const
n={type:5,styles:[],options:null};if(!e.currentAnimateTimings)return
e.errors.push(function sP(){return new re(3011,Ze)}()),n;let r=0;const o=[];let
u=!1,h=!1,b=0;const y=i.steps.map(G=>{const P=this._makeStyleAst(G,e);let
J=null!=P.offset?P.offset:function KP(t){if("string"==typeof t)return null;let
i=null;if(Array.isArray(t))t.forEach(
e=>{if(qu(e)&&e.hasOwnProperty("offset")){const
n=e;i=parseFloat(n.offset),delete n.offset}});else
if(qu(t)&&t.hasOwnProperty("offset")){const
e=t;i=parseFloat(e.offset),delete e.offset}return i}(P.styles),se=0;return
null!=J&&(r++,se=P.offset=J),h=h||se<0||se>1,u=u||se<b,b=se,o.push(se),P});h&&e.errors.push(function
rP(){return new re(3012,Ze)}()),u&&e.errors.push(function oP(){return new
re(3200,Ze)}());const w=i.steps.length;let
M=0;r>0&&r<w?e.errors.push(function aP(){return new
re(3202,Ze)}()):0==r&&(M=1/(w-1));const
E=w-1,L=e.currentTime,O=e.currentAnimateTimings,N=O.duration;return
y.forEach((G,P)=>{const
J=M>0?P==E?1:M*P:o[P],se=J*N;e.currentTime=L+O.delay+se,O.duration=se,this._validateStyleAst(G,e),G.offset=J,n.styles.push(G)}),n}visitReference(i,e){return{type:8,animation:ai(this,ul(i.animation),e),options:Sr(i.options)}}visitAnimateChild(i,e){return
e.depCount++,{type:9,options:Sr(i.options)}}visitAnimateRef(i,e){return{type:10,animation:this.visitReference(i.animation,e
),options:Sr(i.options)}}visitQuery(i,e){const
n=e.currentQuerySelector,s=i.options||{};e.queryCount++,e.currentQuery=i;const[r,o]=function
jP(t){const i=!!t.split(/\s*,\s*/).find(e=>":self"==e);return
i&&(t=t.replace(UP,"")),t=t.replace(/@\*/g,Lu).replace(/@\w+/g,e=>Lu+"-"+e.substr(1)).replace(/:animating/g,Mf),[t,i]}(i.selector);e.currentQuerySelector=n.length?n+"
"+r:r,oi(e.collectedStyles,e.currentQuerySelector,{});const
u=ai(this,ul(i.animation),e);return
e.currentQuery=null,e.currentQuerySelector=n,{type:11,selector:r,limit:s.limit||0,optional:!!s.optional,includeSelf:o,animation:u,originalSelector:i.selector,options:Sr(i.options)}}visitStagger(i,e){e.currentQuery||e.errors.push(function
lP(){return new re(3013,Ze)}());const
n="full"===i.timings?{duration:0,delay:0,easing:"full"}:Ou(i.timings,e.errors,!0);return{type:12,animation:ai(this,ul(i.animation),e),timings:n,options:null}}}class
WP{constructor(i){this.errors=i,this.queryCount=0,this.depCount=0,this.currentTransition=nu
ll,this.currentQuery=null,this.currentQuerySelector=null,this.currentAnimateTimings=null,this.currentTime=0,this.collectedStyles={},this.options=null,this.unsupportedCSSPropertiesFound=new
Set}}function qu(t){return!Array.isArray(t)&&"object"==typeof t}function
Sr(t){return t?(t=Ro(t)).params&&(t.params=function $P(t){return
t?Ro(t):null}(t.params)):t={},t}function
Lf(t,i,e){return{duration:t,delay:i,easing:e}}function
Of(t,i,e,n,s,r,o=null,u=!1){return{type:1,element:t,keyframes:i,preStyleProps:e,postStyleProps:n,duration:s,delay:r,totalTime:s+r,easing:o,subTimeline:u}}class
Gu{constructor(){this._map=new Map}get(i){return this._map.get(i)||[]}append(i,e){let
n=this._map.get(i);n||this._map.set(i,n=[]),n.push(...e)}has(i){return
this._map.has(i)}clear(){this._map.clear()}}const ZP=new
RegExp(":enter","g"),eF=new
RegExp(":leave","g");function
Af(t,i,e,n,s,r={},o={},u,h,b=[]){return(new tF).buildKeyframes(t,i,e,n,s,r,o,u,h,b)}class
tF{buildKeyframes(i,e,n,s,r,o,u,h,b,y=[]){b=b||new G
u;const w=new
Pf(i,e,b,s,r,y,[]);w.options=h,w.currentTimeline.setStyles([o],null,w.errors,h),ai(this,n,w);const
M=w.timelines.filter(E=>E.containsAnimation());if(Object.keys(u).length){let E;for(let
L=M.length-1;L>=0;L--){const
O=M[L];if(O.element===e){E=O;break}}E&&!E.allowOnlyTimelineStyles()&&E.setStyles([u],null,w.errors,h)}return
M.length?M.map(E=>E.buildKeyframes()):[Of(e,[],[],[],0,0,"",!1)]}visitTrigger(i,e){}visitState(i,e){}visitTransition(i,e){}visitAnimateChild(i,e){const
n=e.subInstructions.get(e.element);if(n){const
s=e.createSubContext(i.options),r=e.currentTimeline.currentTime,o=this._visitSubInstructions(n,s,s.options);r!=o&&e.transformIntoNewTimeline(o)}e.previousNode=i}visitAnimateRef(i,e){const
n=e.createSubContext(i.options);n.transformIntoNewTimeline(),this.visitReference(i.animation,n),e.transformIntoNewTimeline(n.currentTimeline.currentTime),e.previousNode=i}_visitSubInstructions(i,e,n){let
r=e.currentTimeline.currentTime;const o=null!=n.duration?wr(n.durati
on):null,u=null!=n.delay?wr(n.delay):null;return 0!==o&&i.forEach(h=>{const
b=e.appendInstructionToTimeline(h,o,u);r=Math.max(r,b.duration+b.delay)}),r}visitReference(i,e){e.updateOptions(i.options,!0),ai(this,i.animation,e),e.previousNode=i}visitSequence(i,e){const
n=e.subContextCount;let s=e;const
r=i.options;if(r&&(r.params||r.delay)&&(s=e.createSubContext(r),s.transformIntoNewTimeline(),null!=r.delay)){6==s.previousNode.type&&(s.currentTimeline.snapshotCurrentStyles(),s.previousNode=Uu);const
o=wr(r.delay);s.delayNextStep(o)}i.steps.length&&(i.steps.forEach(o=>ai(this,o,s)),s.currentTimeline.applyStylesToKeyframe(),s.subContextCount>n&&s.transformIntoNewTimeline()),e.previousNode=i}visitGroup(i,e){const
n=[];let s=e.currentTimeline.currentTime;const
r=i.options&&i.options.delay?wr(i.options.delay):0;i.steps.forEach(o=>{const
u=e.createSubContext(i.options);r&&u.delayNextStep(r),ai(this,o,u),s=Math.max(s,u.currentTimeline.currentTime),n.push(u.currentTimeline)}),n.forEach(o=>e.cu
rrentTimeline.mergeTimelineCollectedStyles(o)),e.transformIntoNewTimeline(s),e.previousNode=i}_visitTiming(i,e){if(i.dynamic){const
n=i.strValue;return
Ou(e.params?Au(n,e.params,e.errors):n,e.errors)}return{duration:i.duration,delay:i.delay,easing:i.easing}}visitAnimate(i,e){const
n=e.currentAnimateTimings=this._visitTiming(i.timings,e),s=e.currentTimeline;n.delay&&(e.incrementTime(n.delay),s.snapshotCurrentStyles());const
r=i.style;5==r.type?this.visitKeyframes(r,e):(e.incrementTime(n.duration),this.visitStyle(r,e),s.applyStylesToKeyframe()),e.currentAnimateTimings=null,e.previousNode=i}visitStyle(i,e){const
n=e.currentTimeline,s=e.currentAnimateTimings;!s&&n.getCurrentStyleProperties().length&&n.forwardFrame();const
r=s&&s.easing||i.easing;i.isEmptyStep?n.applyEmptyStep(r):n.setStyles(i.styles,r,e.errors,e.options),e.previousNode=i}visitKeyframes(i,e){const
n=e.currentAnimateTimings,s=e.currentTimeline.duration,r=n.duration,u=e.createSubContext().currentTimeline;u.easing=n.easing,
i.styles.forEach(h=>{u.forwardTime((h.offset||0)*r),u.setStyles(h.styles,h.easing,e.errors,e.options),u.applyStylesToKeyframe()}),e.currentTimeline.mergeTimelineCollectedStyles(u),e.transformIntoNewTimeline(s+r),e.previousNode=i}visitQuery(i,e){const
n=e.currentTimeline.currentTime,s=i.options||{},r=s.delay?wr(s.delay):0;r&&(6===e.previousNode.type||0==n&&e.currentTimeline.getCurrentStyleProperties().length)&&(e.currentTimeline.snapshotCurrentStyles(),e.previousNode=Uu);let
o=n;const
u=e.invokeQuery(i.selector,i.originalSelector,i.limit,i.includeSelf,!!s.optional,e.errors);e.currentQueryTotal=u.length;let
h=null;u.forEach((b,y)=>{e.currentQueryIndex=y;const
w=e.createSubContext(i.options,b);r&&w.delayNextStep(r),b===e.element&&(h=w.currentTimeline),ai(this,i.animation,w),w.currentTimeline.applyStylesToKeyframe(),o=Math.max(o,w.currentTimeline.currentTime)}),e.currentQueryIndex=0,e.currentQueryTotal=0,e.transformIntoNewTimeline(o),h&&(e.currentTimeline.mergeTimelineCollectedStyles(h)
,e.currentTimeline.snapshotCurrentStyles()),e.previousNode=i}visitStagger(i,e){const
n=e.parentContext,s=e.currentTimeline,r=i.timings,o=Math.abs(r.duration),u=o*(e.currentQueryTotal-1);let
h=o*e.currentQueryIndex;switch(r.duration<0?"reverse":r.easing){case"reverse":h=u-h;break;case"full":h=n.currentStaggerTime}const
y=e.currentTimeline;h&&y.delayNextStep(h);const
w=y.currentTime;ai(this,i.animation,e),e.previousNode=i,n.currentStaggerTime=s.currentTime-w+(s.startTime-n.currentTimeline.startTime)}}const
Uu={};class
Pf{constructor(i,e,n,s,r,o,u,h){this._driver=i,this.element=e,this.subInstructions=n,this._enterClassName=s,this._leaveClassName=r,this.errors=o,this.timelines=u,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=Uu,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=h||new
zu(this._driver,e,0),u.push(this.currentTimeline)}get params(){return
this.options.params}upd
ateOptions(i,e){if(!i)return;const n=i;let
s=this.options;null!=n.duration&&(s.duration=wr(n.duration)),null!=n.delay&&(s.delay=wr(n.delay));const
r=n.params;if(r){let
o=s.params;o||(o=this.options.params={}),Object.keys(r).forEach(u=>{(!e||!o.hasOwnProperty(u))&&(o[u]=Au(r[u],o,this.errors))})}}_copyOptions(){const
i={};if(this.options){const e=this.options.params;if(e){const
n=i.params={};Object.keys(e).forEach(s=>{n[s]=e[s]})}}return
i}createSubContext(i=null,e,n){const s=e||this.element,r=new
Pf(this._driver,s,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(s,n||0));return
r.previousNode=this.previousNode,r.currentAnimateTimings=this.currentAnimateTimings,r.options=this._copyOptions(),r.updateOptions(i),r.currentQueryIndex=this.currentQueryIndex,r.currentQueryTotal=this.currentQueryTotal,r.parentContext=this,this.subContextCount++,r}transformIntoNewTimeline(i){return
this.previousNode=Uu,this.currentTimeline=thi
s.currentTimeline.fork(this.element,i),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(i,e,n){const
s={duration:null!=e?e:i.duration,delay:this.currentTimeline.currentTime+(null!=n?n:0)+i.delay,easing:""},r=new
nF(this._driver,i.element,i.keyframes,i.preStyleProps,i.postStyleProps,s,i.stretchStartingKeyframe);return
this.timelines.push(r),s}incrementTime(i){this.currentTimeline.forwardTime(this.currentTimeline.duration+i)}delayNextStep(i){i>0&&this.currentTimeline.delayNextStep(i)}invokeQuery(i,e,n,s,r,o){let
u=[];if(s&&u.push(this.element),i.length>0){i=(i=i.replace(ZP,"."+this._enterClassName)).replace(eF,"."+this._leaveClassName);let
b=this._driver.query(this.element,i,1!=n);0!==n&&(b=n<0?b.slice(b.length+n,b.length):b.slice(0,n)),u.push(...b)}return!r&&0==u.length&&o.push(function
cP(t){return new re(3014,Ze)}()),u}}class
zu{constructor(i,e,n,s){this._driver=i,this.element=e,this.startTime=n,this._elementTimelineStylesLookup=s,this.dura
tion=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(i){const
e=1==this._keyframes.size&&Object.keys(this._pendingStyles).length;this.duration||e?(this.forwardTime(this.currentTime+i),e&&this.snapshotCurrentStyles()
):this.startTime+=i}fork(i,e){return this.applyStylesToKeyframe(),new
zu(this._driver,i,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(i){this.applyStylesToKeyframe(),this.duration=i,this._loadKeyframe()}_updateStyle(i,e){this._localTimelineStyles[i]=e,this._globalTimelineStyles[i]=e,this._styleSummary[i]={time:this.currentTime,value:e}}allowOnlyTimelineStyles(){return
this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(i){i&&(this._previousKeyframe.easing=i),Object.keys(this._globalTimelineStyles).forEach(e=>{this._backFill[e]=this._globalTimelineStyles[e]||ys,this._currentKeyframe[e]=ys}),this._currentEmptyStepKeyfra
me=this._currentKeyframe}setStyles(i,e,n,s){e&&(this._previousKeyframe.easing=e);const
r=s&&s.params||{},o=function iF(t,i){const e={};let n;return
t.forEach(s=>{"*"===s?(n=n||Object.keys(i),n.forEach(r=>{e[r]=ys})):Ws(s,!1,e)}),e}(i,this._globalTimelineStyles);Object.keys(o).forEach(u=>{const
h=Au(o[u],r,n);this._pendingStyles[u]=h,this._localTimelineStyles.hasOwnProperty(u)||(this._backFill[u]=this._globalTimelineStyles.hasOwnProperty(u)?this._globalTimelineStyles[u]:ys),this._updateStyle(u,h)})}applyStylesToKeyframe(){const
i=this._pendingStyles,e=Object.keys(i);0!=e.length&&(this._pendingStyles={},e.forEach(n=>{this._currentKeyframe[n]=i[n]}),Object.keys(this._localTimelineStyles).forEach(n=>{this._currentKeyframe.hasOwnProperty(n)||(this._currentKeyframe[n]=this._localTimelineStyles[n])}))}snapshotCurrentStyles(){Object.keys(this._localTimelineStyles).forEach(i=>{const
e=this._localTimelineStyles[i];this._pendingStyles[i]=e,this._updateStyle(i,e)})}getFinalKeyframe(){return
thi
s._keyframes.get(this.duration)}get properties(){const i=[];for(let e in
this._currentKeyframe)i.push(e);return
i}mergeTimelineCollectedStyles(i){Object.keys(i._styleSummary).forEach(e=>{const
n=this._styleSummary[e],s=i._styleSummary[e];(!n||s.time>n.time)&&this._updateStyle(e,s.value)})}buildKeyframes(){this.applyStylesToKeyframe();const
i=new Set,e=new Set,n=1===this._keyframes.size&&0===this.duration;let
s=[];this._keyframes.forEach((u,h)=>{const
b=Ws(u,!0);Object.keys(b).forEach(y=>{const
w=b[y];"!"==w?i.add(y):w==ys&&e.add(y)}),n||(b.offset=h/this.duration),s.push(b)});const
r=i.size?Pu(i.values()):[],o=e.size?Pu(e.values()):[];if(n){const
u=s[0],h=Ro(u);u.offset=0,h.offset=1,s=[u,h]}return
Of(this.element,s,r,o,this.duration,this.startTime,this.easing,!1)}}class nF extends
zu{constructor(i,e,n,s,r,o,u=!1){super(i,e,o.delay),this.keyframes=n,this.preStyleProps=s,this.postStyleProps=r,this._stretchStartingKeyframe=u,this.timings={duration:o.duration,delay:o.delay,easing:o.easin
g}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let
i=this.keyframes,{delay:e,duration:n,easing:s}=this.timings;if(this._stretchStartingKeyframe&&e){const
r=[],o=n+e,u=e/o,h=Ws(i[0],!1);h.offset=0,r.push(h);const
b=Ws(i[0],!1);b.offset=Vw(u),r.push(b);const y=i.length-1;for(let w=1;w<=y;w++){let
M=Ws(i[w],!1);M.offset=Vw((e+M.offset*n)/o),r.push(M)}n=o,e=0,s="",i=r}return
Of(this.element,i,this.preStyleProps,this.postStyleProps,n,e,s,!0)}}function
Vw(t,i=3){const e=Math.pow(10,i-1);return Math.round(t*e)/e}class Ff{}class sF extends
Ff{normalizePropertyName(i,e){return Ef(i)}normalizeStyleValue(i,e,n,s){let
r="";const
o=n.toString().trim();if(rF[e]&&0!==n&&"0"!==n)if("number"==typeof
n)r="px";else{const
u=n.match(/^[+-]?[\d\.]+([a-z]*)$/);u&&0==u[1].length&&s.push(function
ZA(t,i){return new re(3005,Ze)}())}return o+r}}const rF=(()=>function oF(t){const
i={};return
t.forEach(e=>i[e]=!0),i}("width,height,minWidth,minHeight,maxWidth,maxHeight,left,top,bottom,rig
ht,fontSize,outlineWidth,outlineOffset,paddingTop,paddingLeft,paddingBottom,paddingRight,marginTop,marginLeft,marginBottom,marginRight,borderRadius,borderWidth,borderTopWidth,borderLeftWidth,borderRightWidth,borderBottomWidth,textIndent,perspective".split(",")))();function
Bw(t,i,e,n,s,r,o,u,h,b,y,w,M){return{type:0,element:t,triggerName:i,isRemovalTransition:s,fromState:e,fromStyles:r,toState:n,toStyles:o,timelines:u,queriedElements:h,preStyleProps:b,postStyleProps:y,totalTime:w,errors:M}}const
Nf={};class
Hw{constructor(i,e,n){this._triggerName=i,this.ast=e,this._stateStyles=n}match(i,e,n,s){return
function aF(t,i,e,n,s){return
t.some(r=>r(i,e,n,s))}(this.ast.matchers,i,e,n,s)}buildStyles(i,e,n){const
s=this._stateStyles["*"],r=this._stateStyles[i],o=s?s.buildStyles(e,n):{};return
r?r.buildStyles(e,n):o}build(i,e,n,s,r,o,u,h,b,y){const
w=[],M=this.ast.options&&this.ast.options.params||Nf,L=this.buildStyles(n,u&&u.params||Nf,w),O=h&&h.params||Nf,N=this.buildStyles(s,O,w),G=new
Set,
P=new Map,J=new
Map,se="void"===s,ke={params:Object.assign(Object.assign({},M),O)},mt=y?[]:Af(i,e,this.ast.animation,r,o,L,N,ke,b,w);let
Ct=0;if(mt.forEach(At=>{Ct=Math.max(At.duration+At.delay,Ct)}),w.length)return
Bw(e,this._triggerName,n,s,se,L,N,[],[],P,J,Ct,w);mt.forEach(At=>{const
hn=At.element,$o=oi(P,hn,{});At.preStyleProps.forEach($i=>$o[$i]=!0);const
ks=oi(J,hn,{});At.postStyleProps.forEach($i=>ks[$i]=!0),hn!==e&&G.add(hn)});const
Ut=Pu(G.values());return Bw(e,this._triggerName,n,s,se,L,N,mt,Ut,P,J,Ct)}}class
lF{constructor(i,e,n){this.styles=i,this.defaultParams=e,this.normalizer=n}buildStyles(i,e){const
n={},s=Ro(this.defaultParams);return Object.keys(i).forEach(r=>{const
o=i[r];null!=o&&(s[r]=o)}),this.styles.styles.forEach(r=>{if("string"!=typeof
r){const o=r;Object.keys(o).forEach(u=>{let
h=o[u];h.length>1&&(h=Au(h,s,e));const
b=this.normalizer.normalizePropertyName(u,e);h=this.normalizer.normalizeStyleValue(u,b,h,e),n[b]=h})}}),n}}class
uF{constructor(i,e,n){this.nam
e=i,this.ast=e,this._normalizer=n,this.transitionFactories=[],this.states={},e.states.forEach(s=>{this.states[s.name]=new
lF(s.style,s.options&&s.options.params||{},n)}),qw(this.states,"true","1"),qw(this.states,"false","0"),e.transitions.forEach(s=>{this.transitionFactories.push(new
Hw(i,s,this.states))}),this.fallbackTransition=function dF(t,i,e){return new
Hw(t,{type:1,animation:{type:2,steps:[],options:null},matchers:[(o,u)=>!0],options:null,queryCount:0,depCount:0},i)}(i,this.states)}get
containsQueries(){return this.ast.queryCount>0}matchTransition(i,e,n,s){return
this.transitionFactories.find(o=>o.match(i,e,n,s))||null}matchStyles(i,e,n){return
this.fallbackTransition.buildStyles(i,e,n)}}function
qw(t,i,e){t.hasOwnProperty(i)?t.hasOwnProperty(e)||(t[e]=t[i]):t.hasOwnProperty(e)&&(t[i]=t[e])}const
pF=new Gu;class
hF{constructor(i,e,n){this.bodyNode=i,this._driver=e,this._normalizer=n,this._animations={},this._playersById={},this.players=[]}register(i,e){const
n=[],r=Rf(this._d
river,e,n,[]);if(n.length)throw function gP(t){return new
re(3503,Ze)}();this._animations[i]=r}_buildPlayer(i,e,n){const
s=i.element,r=vw(0,this._normalizer,0,i.keyframes,e,n);return
this._driver.animate(s,r,i.duration,i.delay,i.easing,[],!0)}create(i,e,n={}){const
s=[],r=this._animations[i];let o;const u=new
Map;if(r?(o=Af(this._driver,e,r,Df,Eu,{},{},n,pF,s),o.forEach(y=>{const
w=oi(u,y.element,{});y.postStyleProps.forEach(M=>w[M]=null)})):(s.push(function
_P(){return new re(3300,Ze)}()),o=[]),s.length)throw function bP(t){return new
re(3504,Ze)}();u.forEach((y,w)=>{Object.keys(y).forEach(M=>{y[M]=this._driver.computeStyle(w,M,ys)})});const
b=$s(o.map(y=>{const w=u.get(y.element);return this._buildPlayer(y,{},w)}));return
this._playersById[i]=b,b.onDestroy(()=>this.destroy(i)),this.players.push(b),b}destroy(i){const
e=this._getPlayer(i);e.destroy(),delete this._playersById[i];const
n=this.players.indexOf(e);n>=0&&this.players.splice(n,1)}_getPlayer(i){const
e=this._playersById[i];
if(!e)throw function vP(t){return new re(3301,Ze)}();return e}listen(i,e,n,s){const
r=wf(e,"","","");return
Cf(this._getPlayer(i),n,r,s),()=>{}}command(i,e,n,s){if("register"==n)return
void this.register(i,s[0]);if("create"==n)return void
this.create(i,e,s[0]||{});const
r=this._getPlayer(i);switch(n){case"play":r.play();break;case"pause":r.pause();break;case"reset":r.reset();break;case"restart":r.restart();break;case"finish":r.finish();break;case"init":r.init();break;case"setPosition":r.setPosition(parseFloat(s[0]));break;case"destroy":this.destroy(i)}}}const
Gw="ng-animate-queued",Vf="ng-animate-disabled",bF=[],Uw={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},vF={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},Ti="__ng_removed";class
Bf{constructor(i,e=""){this.namespaceId=e;const
n=i&&i.hasOwnProperty("value");if(this.value=function TF(t){return
null!=t?t:null}(n?i.value:i),n){const r=Ro(i);delete r.v
alue,this.options=r}else
this.options={};this.options.params||(this.options.params={})}get params(){return
this.options.params}absorbOptions(i){const e=i.params;if(e){const
n=this.options.params;Object.keys(e).forEach(s=>{null==n[s]&&(n[s]=e[s])})}}}const
dl="void",Hf=new Bf(dl);class
CF{constructor(i,e,n){this.id=i,this.hostElement=e,this._engine=n,this.players=[],this._triggers={},this._queue=[],this._elementListeners=new
Map,this._hostClassName="ng-tns-"+i,Si(e,this._hostClassName)}listen(i,e,n,s){if(!this._triggers.hasOwnProperty(e))throw
function CP(t,i){return new re(3302,Ze)}();if(null==n||0==n.length)throw function
yP(t){return new re(3303,Ze)}();if(!function
SF(t){return"start"==t||"done"==t}(n))throw function wP(t,i){return
new re(3400,Ze)}();const
r=oi(this._elementListeners,i,[]),o={name:e,phase:n,callback:s};r.push(o);const
u=oi(this._engine.statesByElement,i,{});return
u.hasOwnProperty(e)||(Si(i,Ru),Si(i,Ru+"-"+e),u[e]=Hf),()=>{this._engine.afterFlush(()=>{const
h=r.in
dexOf(o);h>=0&&r.splice(h,1),this._triggers[e]||delete
u[e]})}}register(i,e){return!this._triggers[i]&&(this._triggers[i]=e,!0)}_getTrigger(i){const
e=this._triggers[i];if(!e)throw function TP(t){return new re(3401,Ze)}();return
e}trigger(i,e,n,s=!0){const r=this._getTrigger(e),o=new qf(this.id,e,i);let
u=this._engine.statesByElement.get(i);u||(Si(i,Ru),Si(i,Ru+"-"+e),this._engine.statesByElement.set(i,u={}));let
h=u[e];const b=new
Bf(n,this.id);if(!(n&&n.hasOwnProperty("value"))&&h&&b.absorbOptions(h.options),u[e]=b,h||(h=Hf),b.value!==dl&&h.value===b.value){if(!function
MF(t,i){const e=Object.keys(t),n=Object.keys(i);if(e.length!=n.length)return!1;for(let
s=0;s<e.length;s++){const
r=e[s];if(!i.hasOwnProperty(r)||t[r]!==i[r])return!1}return!0}(h.params,b.params)){const
O=[],N=r.matchStyles(h.value,h.params,O),G=r.matchStyles(b.value,b.params,O);O.length?this._engine.reportError(O):this._engine.afterFlush(()=>{Tr(i,N),rs(i,G)})}return}const
M=oi(this._engine.playersByElement,i,[]);M
.forEach(O=>{O.namespaceId==this.id&&O.triggerName==e&&O.queued&&O.destroy()});let
E=r.matchTransition(h.value,b.value,i,b.params),L=!1;if(!E){if(!s)return;E=r.fallbackTransition,L=!0}return
this._engine.totalQueuedPlayers++,this._queue.push({element:i,triggerName:e,transition:E,fromState:h,toState:b,player:o,isFallbackTransition:L}),L||(Si(i,Gw),o.onStart(()=>{Lo(i,Gw)})),o.onDone(()=>{let
O=this.players.indexOf(o);O>=0&&this.players.splice(O,1);const
N=this._engine.playersByElement.get(i);if(N){let
G=N.indexOf(o);G>=0&&N.splice(G,1)}}),this.players.push(o),M.push(o),o}deregister(i){delete
this._triggers[i],this._engine.statesByElement.forEach((e,n)=>{delete
e[i]}),this._elementListeners.forEach((e,n)=>{this._elementListeners.set(n,e.filter(s=>s.name!=i))})}clearElementCache(i){this._engine.statesByElement.delete(i),this._elementListeners.delete(i);const
e=this._engine.playersByElement.get(i);e&&(e.forEach(n=>n.destroy()),this._engine.playersByElement.delete(i))}_signalRemovalForIn
nerTriggers(i,e){const
n=this._engine.driver.query(i,Lu,!0);n.forEach(s=>{if(s[Ti])return;const
r=this._engine.fetchNamespacesByElement(s);r.size?r.forEach(o=>o.triggerLeaveAnimation(s,e,!1,!0)):this.clearElementCache(s)}),this._engine.afterFlushAnimationsDone(()=>n.forEach(s=>this.clearElementCache(s)))}triggerLeaveAnimation(i,e,n,s){const
r=this._engine.statesByElement.get(i),o=new Map;if(r){const
u=[];if(Object.keys(r).forEach(h=>{if(o.set(h,r[h].value),this._triggers[h]){const
b=this.trigger(i,h,dl,s);b&&u.push(b)}}),u.length)return
this._engine.markElementAsRemoved(this.id,i,!0,e,o),n&&$s(u).onDone(()=>this._engine.processLeaveNode(i)),!0}return!1}prepareLeaveAnimationListeners(i){const
e=this._elementListeners.get(i),n=this._engine.statesByElement.get(i);if(e&&n){const
s=new Set;e.forEach(r=>{const o=r.name;if(s.has(o))return;s.add(o);const
h=this._triggers[o].fallbackTransition,b=n[o]||Hf,y=new Bf(dl),w=new
qf(this.id,o,i);this._engine.totalQueuedPlayers++,this._queue.push({e
lement:i,triggerName:o,transition:h,fromState:b,toState:y,player:w,isFallbackTransition:!0})})}}removeNode(i,e){const
n=this._engine;if(i.childElementCount&&this._signalRemovalForInnerTriggers(i,e),this.triggerLeaveAnimation(i,e,!0))return;let
s=!1;if(n.totalAnimations){const
r=n.players.length?n.playersByQueriedElement.get(i):[];if(r&&r.length)s=!0;else{let
o=i;for(;o=o.parentNode;)if(n.statesByElement.get(o)){s=!0;break}}}if(this.prepareLeaveAnimationListeners(i),s)n.markElementAsRemoved(this.id,i,!1,e);else{const
r=i[Ti];(!r||r===Uw)&&(n.afterFlush(()=>this.clearElementCache(i)),n.destroyInnerAnimations(i),n._onRemovalComplete(i,e))}}insertNode(i,e){Si(i,this._hostClassName)}drainQueuedTransitions(i){const
e=[];return this._queue.forEach(n=>{const s=n.player;if(s.destroyed)return;const
r=n.element,o=this._elementListeners.get(r);o&&o.forEach(u=>{if(u.name==n.triggerName){const
h=wf(r,n.triggerName,n.fromState.value,n.toState.value);h._data=i,Cf(n.player,u.phase,h,u.callback)}}),s
.markedForDestroy?this._engine.afterFlush(()=>{s.destroy()}):e.push(n)}),this._queue=[],e.sort((n,s)=>{const
r=n.transition.ast.depCount,o=s.transition.ast.depCount;return
0==r||0==o?r-o:this._engine.driver.containsElement(n.element,s.element)?1:-1})}destroy(i){this.players.forEach(e=>e.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,i)}elementContainsData(i){let
e=!1;return
this._elementListeners.has(i)&&(e=!0),e=!!this._queue.find(n=>n.element===i)||e,e}}class
yF{constructor(i,e,n){this.bodyNode=i,this.driver=e,this._normalizer=n,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=(s,r)=>{}}_onRem
ovalComplete(i,e){this.onRemovalComplete(i,e)}get queuedPlayers(){const i=[];return
this._namespaceList.forEach(e=>{e.players.forEach(n=>{n.queued&&i.push(n)})}),i}createNamespace(i,e){const
n=new CF(i,e,this);return
this.bodyNode&&this.driver.containsElement(this.bodyNode,e)?this._balanceNamespaceList(n,e):(this.newHostElements.set(e,n),this.collectEnterElement(e)),this._namespaceLookup[i]=n}_balanceNamespaceList(i,e){const
n=this._namespaceList,s=this.namespacesByHostElement,r=n.length-1;if(r>=0){let
o=!1;if(void 0!==this.driver.getParentElement){let
u=this.driver.getParentElement(e);for(;u;){const h=s.get(u);if(h){const
b=n.indexOf(h);n.splice(b+1,0,i),o=!0;break}u=this.driver.getParentElement(u)}}else
for(let
u=r;u>=0;u--)if(this.driver.containsElement(n[u].hostElement,e)){n.splice(u+1,0,i),o=!0;break}o||n.unshift(i)}else
n.push(i);return s.set(e,i),i}register(i,e){let n=this._namespaceLookup[i];return
n||(n=this.createNamespace(i,e)),n}registerTrigger(i,e,n){let s=this._namespa
ceLookup[i];s&&s.register(e,n)&&this.totalAnimations++}destroy(i,e){if(!i)return;const
n=this._fetchNamespace(i);this.afterFlush(()=>{this.namespacesByHostElement.delete(n.hostElement),delete
this._namespaceLookup[i];const
s=this._namespaceList.indexOf(n);s>=0&&this._namespaceList.splice(s,1)}),this.afterFlushAnimationsDone(()=>n.destroy(e))}_fetchNamespace(i){return
this._namespaceLookup[i]}fetchNamespacesByElement(i){const e=new
Set,n=this.statesByElement.get(i);if(n){const s=Object.keys(n);for(let
r=0;r<s.length;r++){const o=n[s[r]].namespaceId;if(o){const
u=this._fetchNamespace(o);u&&e.add(u)}}}return e}trigger(i,e,n,s){if(ju(e)){const
r=this._fetchNamespace(i);if(r)return
r.trigger(e,n,s),!0}return!1}insertNode(i,e,n,s){if(!ju(e))return;const
r=e[Ti];if(r&&r.setForRemoval){r.setForRemoval=!1,r.setForMove=!0;const
o=this.collectedLeaveElements.indexOf(e);o>=0&&this.collectedLeaveElements.splice(o,1)}if(i){const
o=this._fetchNamespace(i);o&&o.insertNode(e,n)}s&&this.collectEnterE
lement(e)}collectEnterElement(i){this.collectedEnterElements.push(i)}markElementAsDisabled(i,e){e?this.disabledNodes.has(i)||(this.disabledNodes.add(i),Si(i,Vf)):this.disabledNodes.has(i)&&(this.disabledNodes.delete(i),Lo(i,Vf))}removeNode(i,e,n,s){if(ju(e)){const
r=i?this._fetchNamespace(i):null;if(r?r.removeNode(e,s):this.markElementAsRemoved(i,e,!1,s),n){const
o=this.namespacesByHostElement.get(e);o&&o.id!==i&&o.removeNode(e,s)}}else
this._onRemovalComplete(e,s)}markElementAsRemoved(i,e,n,s,r){this.collectedLeaveElements.push(e),e[Ti]={namespaceId:i,setForRemoval:s,hasAnimation:n,removedBeforeQueried:!1,previousTriggersValues:r}}listen(i,e,n,s,r){return
ju(e)?this._fetchNamespace(i).listen(e,n,s,r):()=>{}}_buildInstruction(i,e,n,s,r){return
i.transition.build(this.driver,i.element,i.fromState.value,i.toState.value,n,s,i.fromState.options,i.toState.options,e,r)}destroyInnerAnimations(i){let
e=this.driver.query(i,Lu,!0);e.forEach(n=>this.destroyActiveAnimationsForElement(n)),0!=thi
s.playersByQueriedElement.size&&(e=this.driver.query(i,Mf,!0),e.forEach(n=>this.finishActiveQueriedAnimationOnElement(n)))}destroyActiveAnimationsForElement(i){const
e=this.playersByElement.get(i);e&&e.forEach(n=>{n.queued?n.markedForDestroy=!0:n.destroy()})}finishActiveQueriedAnimationOnElement(i){const
e=this.playersByQueriedElement.get(i);e&&e.forEach(n=>n.finish())}whenRenderingDone(){return
new Promise(i=>{if(this.players.length)return
$s(this.players).onDone(()=>i());i()})}processLeaveNode(i){var e;const
n=i[Ti];if(n&&n.setForRemoval){if(i[Ti]=Uw,n.namespaceId){this.destroyInnerAnimations(i);const
s=this._fetchNamespace(n.namespaceId);s&&s.clearElementCache(i)}this._onRemovalComplete(i,n.setForRemoval)}(null===(e=i.classList)||void
0===e?void
0:e.contains(Vf))&&this.markElementAsDisabled(i,!1),this.driver.query(i,".ng-animate-disabled",!0).forEach(s=>{this.markElementAsDisabled(s,!1)})}flush(i=-1){let
e=[];if(this.newHostElements.size&&(this.newHostElements.forEach((n,s)=>this
._balanceNamespaceList(n,s)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let
n=0;n<this.collectedEnterElements.length;n++)Si(this.collectedEnterElements[n],"ng-star-inserted");if(this._namespaceList.length&&(this.totalQueuedPlayers||this.collectedLeaveElements.length)){const
n=[];try{e=this._flushAnimations(n,i)}finally{for(let s=0;s<n.length;s++)n[s]()}}else
for(let
n=0;n<this.collectedLeaveElements.length;n++)this.processLeaveNode(this.collectedLeaveElements[n]);if(this.totalQueuedPlayers=0,this.collectedEnterElements.length=0,this.collectedLeaveElements.length=0,this._flushFns.forEach(n=>n()),this._flushFns=[],this._whenQuietFns.length){const
n=this._whenQuietFns;this._whenQuietFns=[],e.length?$s(e).onDone(()=>{n.forEach(s=>s())}):n.forEach(s=>s())}}reportError(i){throw
function SP(t){return new re(3402,Ze)}()}_flushAnimations(i,e){const n=new Gu,s=[],r=new
Map,o=[],u=new Map,h=new Map,b=new Map,y=new Set;this.disabledNodes.forEach(a
e=>{y.add(ae);const fe=this.driver.query(ae,".ng-animate-queued",!0);for(let
Se=0;Se<fe.length;Se++)y.add(fe[Se])});const
w=this.bodyNode,M=Array.from(this.statesByElement.keys()),E=$w(M,this.collectedEnterElements),L=new
Map;let O=0;E.forEach((ae,fe)=>{const
Se=Df+O++;L.set(fe,Se),ae.forEach(ot=>Si(ot,Se))});const N=[],G=new Set,P=new
Set;for(let ae=0;ae<this.collectedLeaveElements.length;ae++){const
fe=this.collectedLeaveElements[ae],Se=fe[Ti];Se&&Se.setForRemoval&&(N.push(fe),G.add(fe),Se.hasAnimation?this.driver.query(fe,".ng-star-inserted",!0).forEach(ot=>G.add(ot)):P.add(fe))}const
J=new Map,se=$w(M,Array.from(G));se.forEach((ae,fe)=>{const
Se=Eu+O++;J.set(fe,Se),ae.forEach(ot=>Si(ot,Se))}),i.push(()=>{E.forEach((ae,fe)=>{const
Se=L.get(fe);ae.forEach(ot=>Lo(ot,Se))}),se.forEach((ae,fe)=>{const
Se=J.get(fe);ae.forEach(ot=>Lo(ot,Se))}),N.forEach(ae=>{this.processLeaveNode(ae)})});const
ke=[],mt=[];for(let
ae=this._namespaceList.length-1;ae>=0;ae--)this._namespaceList[ae].drainQ
ueuedTransitions(e).forEach(Se=>{const
ot=Se.player,Cn=Se.element;if(ke.push(ot),this.collectedEnterElements.length){const
$n=Cn[Ti];if($n&&$n.setForMove){if($n.previousTriggersValues&&$n.previousTriggersValues.has(Se.triggerName)){const
Pr=$n.previousTriggersValues.get(Se.triggerName),tr=this.statesByElement.get(Se.element);tr&&tr[Se.triggerName]&&(tr[Se.triggerName].value=Pr)}return
void ot.destroy()}}const
us=!w||!this.driver.containsElement(w,Cn),ui=J.get(Cn),er=L.get(Cn),zt=this._buildInstruction(Se,n,er,ui,us);if(zt.errors&&zt.errors.length)return
void mt.push(zt);if(us)return
ot.onStart(()=>Tr(Cn,zt.fromStyles)),ot.onDestroy(()=>rs(Cn,zt.toStyles)),void
s.push(ot);if(Se.isFallbackTransition)return
ot.onStart(()=>Tr(Cn,zt.fromStyles)),ot.onDestroy(()=>rs(Cn,zt.toStyles)),void
s.push(ot);const
AS=[];zt.timelines.forEach($n=>{$n.stretchStartingKeyframe=!0,this.disabledNodes.has($n.element)||AS.push($n)}),zt.timelines=AS,n.append(Cn,zt.timelines),o.push({instruction:zt,player:ot,
element:Cn}),zt.queriedElements.forEach($n=>oi(u,$n,[]).push(ot)),zt.preStyleProps.forEach(($n,Pr)=>{const
tr=Object.keys($n);if(tr.length){let Fr=h.get(Pr);Fr||h.set(Pr,Fr=new
Set),tr.forEach(xg=>Fr.add(xg))}}),zt.postStyleProps.forEach(($n,Pr)=>{const
tr=Object.keys($n);let Fr=b.get(Pr);Fr||b.set(Pr,Fr=new
Set),tr.forEach(xg=>Fr.add(xg))})});if(mt.length){const
ae=[];mt.forEach(fe=>{ae.push(function xP(t,i){return new
re(3505,Ze)}())}),ke.forEach(fe=>fe.destroy()),this.reportError(ae)}const Ct=new
Map,Ut=new Map;o.forEach(ae=>{const
fe=ae.element;n.has(fe)&&(Ut.set(fe,fe),this._beforeAnimationBuild(ae.player.namespaceId,ae.instruction,Ct))}),s.forEach(ae=>{const
fe=ae.element;this._getPreviousPlayers(fe,!1,ae.namespaceId,ae.triggerName,null).forEach(ot=>{oi(Ct,fe,[]).push(ot),ot.destroy()})});const
At=N.filter(ae=>Kw(ae,h,b)),hn=new
Map;jw(hn,this.driver,P,b,ys).forEach(ae=>{Kw(ae,h,b)&&At.push(ae)});const
ks=new Map;E.forEach((ae,fe)=>{jw(ks,this.driver,new Set(ae),h,"!")}),At.fo
rEach(ae=>{const
fe=hn.get(ae),Se=ks.get(ae);hn.set(ae,Object.assign(Object.assign({},fe),Se))});const
$i=[],Wo=[],Ko={};o.forEach(ae=>{const{element:fe,player:Se,instruction:ot}=ae;if(n.has(fe)){if(y.has(fe))return
Se.onDestroy(()=>rs(fe,ot.toStyles)),Se.disabled=!0,Se.overrideTotalTime(ot.totalTime),void
s.push(Se);let Cn=Ko;if(Ut.size>1){let ui=fe;const er=[];for(;ui=ui.parentNode;){const
zt=Ut.get(ui);if(zt){Cn=zt;break}er.push(ui)}er.forEach(zt=>Ut.set(zt,Cn))}const
us=this._buildAnimation(Se.namespaceId,ot,Ct,r,ks,hn);if(Se.setRealPlayer(us),Cn===Ko)$i.push(Se);else{const
ui=this.playersByElement.get(Cn);ui&&ui.length&&(Se.parentPlayer=$s(ui)),s.push(Se)}}else
Tr(fe,ot.fromStyles),Se.onDestroy(()=>rs(fe,ot.toStyles)),Wo.push(Se),y.has(fe)&&s.push(Se)}),Wo.forEach(ae=>{const
fe=r.get(ae.element);if(fe&&fe.length){const
Se=$s(fe);ae.setRealPlayer(Se)}}),s.forEach(ae=>{ae.parentPlayer?ae.syncPlayerEvents(ae.parentPlayer):ae.destroy()});for(let
ae=0;ae<N.length;ae++){const fe=N[ae
],Se=fe[Ti];if(Lo(fe,Eu),Se&&Se.hasAnimation)continue;let ot=[];if(u.size){let
us=u.get(fe);us&&us.length&&ot.push(...us);let
ui=this.driver.query(fe,Mf,!0);for(let er=0;er<ui.length;er++){let
zt=u.get(ui[er]);zt&&zt.length&&ot.push(...zt)}}const
Cn=ot.filter(us=>!us.destroyed);Cn.length?xF(this,fe,Cn):this.processLeaveNode(fe)}return
N.length=0,$i.forEach(ae=>{this.players.push(ae),ae.onDone(()=>{ae.destroy();const
fe=this.players.indexOf(ae);this.players.splice(fe,1)}),ae.play()}),$i}elementContainsData(i,e){let
n=!1;const s=e[Ti];return
s&&s.setForRemoval&&(n=!0),this.playersByElement.has(e)&&(n=!0),this.playersByQueriedElement.has(e)&&(n=!0),this.statesByElement.has(e)&&(n=!0),this._fetchNamespace(i).elementContainsData(e)||n}afterFlush(i){this._flushFns.push(i)}afterFlushAnimationsDone(i){this._whenQuietFns.push(i)}_getPreviousPlayers(i,e,n,s,r){let
o=[];if(e){const u=this.playersByQueriedElement.get(i);u&&(o=u)}else{const
u=this.playersByElement.get(i);if(u){const h=!r||r==dl;
u.forEach(b=>{b.queued||!h&&b.triggerName!=s||o.push(b)})}}return(n||s)&&(o=o.filter(u=>!(n&&n!=u.namespaceId||s&&s!=u.triggerName))),o}_beforeAnimationBuild(i,e,n){const
r=e.element,o=e.isRemovalTransition?void 0:i,u=e.isRemovalTransition?void
0:e.triggerName;for(const h of e.timelines){const
b=h.element,y=b!==r,w=oi(n,b,[]);this._getPreviousPlayers(b,y,o,u,e.toState).forEach(E=>{const
L=E.getRealPlayer();L.beforeDestroy&&L.beforeDestroy(),E.destroy(),w.push(E)})}Tr(r,e.fromStyles)}_buildAnimation(i,e,n,s,r,o){const
u=e.triggerName,h=e.element,b=[],y=new Set,w=new Set,M=e.timelines.map(L=>{const
O=L.element;y.add(O);const N=O[Ti];if(N&&N.removedBeforeQueried)return new
cl(L.duration,L.delay);const G=O!==h,P=function DF(t){const i=[];return
Ww(t,i),i}((n.get(O)||bF).map(Ct=>Ct.getRealPlayer())).filter(Ct=>!!Ct.element&&Ct.element===O),J=r.get(O),se=o.get(O),ke=vw(0,this._normalizer,0,L.keyframes,J,se),mt=this._buildPlayer(L,ke,P);if(L.subTimeline&&s&&w.add(O),G){const
Ct=new qf(i,u,
O);Ct.setRealPlayer(mt),b.push(Ct)}return
mt});b.forEach(L=>{oi(this.playersByQueriedElement,L.element,[]).push(L),L.onDone(()=>function
wF(t,i,e){let n;if(t instanceof Map){if(n=t.get(i),n){if(n.length){const
s=n.indexOf(e);n.splice(s,1)}0==n.length&&t.delete(i)}}else
if(n=t[i],n){if(n.length){const s=n.indexOf(e);n.splice(s,1)}0==n.length&&delete
t[i]}return
n}(this.playersByQueriedElement,L.element,L))}),y.forEach(L=>Si(L,Iw));const
E=$s(M);return
E.onDestroy(()=>{y.forEach(L=>Lo(L,Iw)),rs(h,e.toStyles)}),w.forEach(L=>{oi(s,L,[]).push(E)}),E}_buildPlayer(i,e,n){return
e.length>0?this.driver.animate(i.element,e,i.duration,i.delay,i.easing,n):new
cl(i.duration,i.delay)}}class
qf{constructor(i,e,n){this.namespaceId=i,this.triggerName=e,this.element=n,this._player=new
cl,this._containsRealPlayer=!1,this._queuedCallbacks={},this.destroyed=!1,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}setRealPlayer(i){this._containsRealPlayer||(this._player=i,Object.keys(
this._queuedCallbacks).forEach(e=>{this._queuedCallbacks[e].forEach(n=>Cf(i,e,void
0,n))}),this._queuedCallbacks={},this._containsRealPlayer=!0,this.overrideTotalTime(i.totalTime),this.queued=!1)}getRealPlayer(){return
this._player}overrideTotalTime(i){this.totalTime=i}syncPlayerEvents(i){const
e=this._player;e.triggerCallback&&i.onStart(()=>e.triggerCallback("start")),i.onDone(()=>this.finish()),i.onDestroy(()=>this.destroy())}_queueEvent(i,e){oi(this._queuedCallbacks,i,[]).push(e)}onDone(i){this.queued&&this._queueEvent("done",i),this._player.onDone(i)}onStart(i){this.queued&&this._queueEvent("start",i),this._player.onStart(i)}onDestroy(i){this.queued&&this._queueEvent("destroy",i),this._player.onDestroy(i)}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,th
is._player.destroy()}reset(){!this.queued&&this._player.reset()}setPosition(i){this.queued||this._player.setPosition(i)}getPosition(){return
this.queued?0:this._player.getPosition()}triggerCallback(i){const
e=this._player;e.triggerCallback&&e.triggerCallback(i)}}function ju(t){return
t&&1===t.nodeType}function zw(t,i){const e=t.style.display;return
t.style.display=null!=i?i:"none",e}function jw(t,i,e,n,s){const
r=[];e.forEach(h=>r.push(zw(h)));const o=[];n.forEach((h,b)=>{const
y={};h.forEach(w=>{const
M=y[w]=i.computeStyle(b,w,s);(!M||0==M.length)&&(b[Ti]=vF,o.push(b))}),t.set(b,y)});let
u=0;return e.forEach(h=>zw(h,r[u++])),o}function $w(t,i){const e=new
Map;if(t.forEach(u=>e.set(u,[])),0==i.length)return e;const s=new Set(i),r=new
Map;function o(u){if(!u)return 1;let h=r.get(u);if(h)return h;const b=u.parentNode;return
h=e.has(b)?b:s.has(b)?1:o(b),r.set(u,h),h}return i.forEach(u=>{const
h=o(u);1!==h&&e.get(h).push(u)}),e}function Si(t,i){var
e;null===(e=t.classList)||void 0===e||
e.add(i)}function Lo(t,i){var e;null===(e=t.classList)||void 0===e||e.remove(i)}function
xF(t,i,e){$s(e).onDone(()=>t.processLeaveNode(i))}function Ww(t,i){for(let
e=0;e<t.length;e++){const n=t[e];n instanceof _w?Ww(n.players,i):i.push(n)}}function
Kw(t,i,e){const n=e.get(t);if(!n)return!1;let s=i.get(t);return
s?n.forEach(r=>s.add(r)):i.set(t,n),e.delete(t),!0}class
$u{constructor(i,e,n){this.bodyNode=i,this._driver=e,this._normalizer=n,this._triggerCache={},this.onRemovalComplete=(s,r)=>{},this._transitionEngine=new
yF(i,e,n),this._timelineEngine=new
hF(i,e,n),this._transitionEngine.onRemovalComplete=(s,r)=>this.onRemovalComplete(s,r)}registerTrigger(i,e,n,s,r){const
o=i+"-"+s;let u=this._triggerCache[o];if(!u){const
h=[],y=Rf(this._driver,r,h,[]);if(h.length)throw function mP(t,i){return new
re(3404,Ze)}();u=function cF(t,i,e){return new
uF(t,i,e)}(s,y,this._normalizer),this._triggerCache[o]=u}this._transitionEngine.registerTrigger(e,s,u)}register(i,e){this._transitionEngine.regi
ster(i,e)}destroy(i,e){this._transitionEngine.destroy(i,e)}onInsert(i,e,n,s){this._transitionEngine.insertNode(i,e,n,s)}onRemove(i,e,n,s){this._transitionEngine.removeNode(i,e,s||!1,n)}disableAnimations(i,e){this._transitionEngine.markElementAsDisabled(i,e)}process(i,e,n,s){if("(a)"==n.charAt(0)){const[r,o]=Cw(n);this._timelineEngine.command(r,e,o,s)}else
this._transitionEngine.trigger(i,e,n,s)}listen(i,e,n,s,r){if("(a)"==n.charAt(0)){const[o,u]=Cw(n);return
this._timelineEngine.listen(o,e,u,r)}return
this._transitionEngine.listen(i,e,n,s,r)}flush(i=-1){this._transitionEngine.flush(i)}get
players(){return
this._transitionEngine.players.concat(this._timelineEngine.players)}whenRenderingDone(){return
this._transitionEngine.whenRenderingDone()}}let IF=(()=>{class
t{constructor(e,n,s){this._element=e,this._startStyles=n,this._endStyles=s,this._state=0;let
r=t.initialStylesByElement.get(e);r||t.initialStylesByElement.set(e,r={}),this._initialStyles=r}start(){this._state<1&&(this._startStyles
&&rs(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(rs(this._element,this._initialStyles),this._endStyles&&(rs(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(t.initialStylesByElement.delete(this._element),this._startStyles&&(Tr(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(Tr(this._element,this._endStyles),this._endStyles=null),rs(this._element,this._initialStyles),this._state=3)}}return
t.initialStylesByElement=new WeakMap,t})();function Gf(t){let i=null;const
e=Object.keys(t);for(let n=0;n<e.length;n++){const
s=e[n];EF(s)&&(i=i||{},i[s]=t[s])}return i}function
EF(t){return"display"===t||"position"===t}class
Qw{constructor(i,e,n,s){this.element=i,this.keyframes=e,this.options=n,this._specialStyles=s,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=n.duration,this._delay=n.delay||0,this.time=this._duration+this._delay}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(i=>i()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;const
i=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,i,this.options),this._finalKeyframe=i.length?i[i.length-1]:{},this.domPlayer.addEventListener("finish",()=>this._onFinish())}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_triggerWebAnimation(i,e,n){return
i.animate(e,n)}onStart(i){this._onStartFns.push(i)}onDone(i){this._onDoneFns.push(i)}onDestroy(i){this._onDestroyFns.push(i)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(i=>i()),this._onStartFns=[],this._started=!0,this._specialStyles&&this._specialStyles.start()),this.domPlaye
r.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(i=>i()),this._onDestroyFns=[])}setPosition(i){void
0===this.domPlayer&&this.init(),this.domPlayer.currentTime=i*this.time}getPosition(){return
this.domPlayer.currentTime/this.time}get totalTime(){return
this._delay+this._duration}beforeDestroy(){const i={};if(this.hasStarted()){const
e=this._finalKeyframe;Object.keys(e).forEach(n=>{"offset"!=n&&(i[n]=this._finished?e[n]:Aw(this.element,n))})}this.currentSnapshot=i}triggerCallback(i){cons
t
e="start"==i?this._onStartFns:this._onDoneFns;e.forEach(n=>n()),e.length=0}}class
RF{validateStyleProperty(i){return
Sw(i)}matchesElement(i,e){return!1}containsElement(i,e){return
xw(i,e)}getParentElement(i){return Sf(i)}query(i,e,n){return
Dw(i,e,n)}computeStyle(i,e,n){return
window.getComputedStyle(i)[e]}animate(i,e,n,s,r,o=[]){const
h={duration:n,delay:s,fill:0==s?"both":"forwards"};r&&(h.easing=r);const
b={},y=o.filter(M=>M instanceof Qw);(function PP(t,i){return
0===t||0===i})(n,s)&&y.forEach(M=>{let
E=M.currentSnapshot;Object.keys(E).forEach(L=>b[L]=E[L])}),e=function FP(t,i,e){const
n=Object.keys(e);if(n.length&&i.length){let
r=i[0],o=[];if(n.forEach(u=>{r.hasOwnProperty(u)||o.push(u),r[u]=e[u]}),o.length)for(var
s=1;s<i.length;s++){let u=i[s];o.forEach(function(h){u[h]=Aw(t,h)})}}return
i}(i,e=e.map(M=>Ws(M,!1)),b);const w=function kF(t,i){let e=null,n=null;return
Array.isArray(i)&&i.length?(e=Gf(i[0]),i.length>1&&(n=Gf(i[i.length-1]))):i&&(e=Gf(i)),e||n?new
IF(t,e,n):null
}(i,e);return new Qw(i,e,h,w)}}let LF=(()=>{class t extends
hw{constructor(e,n){super(),this._nextAnimationId=0,this._renderer=e.createRenderer(n.body,{id:"0",encapsulation:ki.None,styles:[],data:{animation:[]}})}build(e){const
n=this._nextAnimationId.toString();this._nextAnimationId++;const
s=Array.isArray(e)?mw(e):e;return Jw(this._renderer,null,n,"register",[s]),new
OF(n,this._renderer)}}return t.\u0275fac=function(e){return
new(e||t)(K(Ba),K(Xt))},t.\u0275prov=X({token:t,factory:t.\u0275fac}),t})();class OF
extends class zA{}{constructor(i,e){super(),this._id=i,this._renderer=e}create(i,e){return
new AF(this._id,i,e||{},this._renderer)}}class
AF{constructor(i,e,n,s){this.id=i,this.element=e,this._renderer=s,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",n)}_listen(i,e){return
this._renderer.listen(this.element,`@@${this.id}:${i}`,e)}_command(i,...e){return
Jw(this._renderer,this.element,this.id,i,e)}onDone(i){this._listen("done",i)}onStart(i){thi
s._listen("start",i)}onDestroy(i){this._listen("destroy",i)}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(i){this._command("setPosition",i)}getPosition(){var
i,e;return null!==(e=null===(i=this._renderer.engine.players[+this.id])||void 0===i?void
0:i.getPosition())&&void 0!==e?e:0}}function Jw(t,i,e,n,s){return
t.setProperty(i,`@@${e}:${n}`,s)}const Yw="@.disabled";let PF=(()=>{class
t{constructor(e,n,s){this.delegate=e,this.engine=n,this._zone=s,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new
Map,this._cdRecurDepth=0,this.promise=Promise.resolve(0),n.onRemovalComplete=(r,o)=>{const
u=null==o?void 0:o.parentNode(r);u&&o.removeChild(u,r)}}createRenderer(e,n){const
r=this.delegate.crea
teRenderer(e,n);if(!(e&&n&&n.data&&n.data.animation)){let
y=this._rendererCache.get(r);return y||(y=new
Zw("",r,this.engine),this._rendererCache.set(r,y)),y}const
o=n.id,u=n.id+"-"+this._currentId;this._currentId++,this.engine.register(u,e);const
h=y=>{Array.isArray(y)?y.forEach(h):this.engine.registerTrigger(o,u,e,y.name,y)};return
n.data.animation.forEach(h),new
FF(this,u,r,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){this.promise.then(()=>{this._microtaskId++})}scheduleListenerCallback(e,n,s){e>=0&&e<this._microtaskId?this._zone.run(()=>n(s)):(0==this._animationCallbacksBuffer.length&&Promise.resolve(null).then(()=>{this._zone.run(()=>{this._animationCallbacksBuffer.forEach(r=>{const[o,u]=r;o(u)}),this._animationCallbacksBuffer=[]})}),this._animationCallbacksBuffer.push([n,s]))}end(){this._cdRecurDepth--,0==this._cdRecurDepth&&this._zone.runOutsideAngular(()=>{this._scheduleCountTask(),this.engine.flush(this._microtaskI
d)}),this.delegate.end&&this.delegate.end()}whenRenderingDone(){return
this.engine.whenRenderingDone()}}return t.\u0275fac=function(e){return
new(e||t)(K(Ba),K($u),K(nt))},t.\u0275prov=X({token:t,factory:t.\u0275fac}),t})();class
Zw{constructor(i,e,n){this.namespaceId=i,this.delegate=e,this.engine=n,this.destroyNode=this.delegate.destroyNode?s=>e.destroyNode(s):null}get
data(){return
this.delegate.data}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.delegate.destroy()}createElement(i,e){return
this.delegate.createElement(i,e)}createComment(i){return
this.delegate.createComment(i)}createText(i){return
this.delegate.createText(i)}appendChild(i,e){this.delegate.appendChild(i,e),this.engine.onInsert(this.namespaceId,e,i,!1)}insertBefore(i,e,n,s=!0){this.delegate.insertBefore(i,e,n),this.engine.onInsert(this.namespaceId,e,i,s)}removeChild(i,e,n){this.engine.onRemove(this.namespaceId,e,this.delegate,n)}selectRootElement(i,e){return
this.delegate.selectRootElement(i,e)}p
arentNode(i){return this.delegate.parentNode(i)}nextSibling(i){return
this.delegate.nextSibling(i)}setAttribute(i,e,n,s){this.delegate.setAttribute(i,e,n,s)}removeAttribute(i,e,n){this.delegate.removeAttribute(i,e,n)}addClass(i,e){this.delegate.addClass(i,e)}removeClass(i,e){this.delegate.removeClass(i,e)}setStyle(i,e,n,s){this.delegate.setStyle(i,e,n,s)}removeStyle(i,e,n){this.delegate.removeStyle(i,e,n)}setProperty(i,e,n){"@"==e.charAt(0)&&e==Yw?this.disableAnimations(i,!!n):this.delegate.setProperty(i,e,n)}setValue(i,e){this.delegate.setValue(i,e)}listen(i,e,n){return
this.delegate.listen(i,e,n)}disableAnimations(i,e){this.engine.disableAnimations(i,e)}}class
FF extends
Zw{constructor(i,e,n,s){super(e,n,s),this.factory=i,this.namespaceId=e}setProperty(i,e,n){"(a)"==e.charAt(0)?"."==e.charAt(1)&&e==Yw?this.disableAnimations(i,n=void
0===n||!!n):this.engine.process(this.namespaceId,i,e.substr(1),n):this.delegate.setProperty(i,e,n)}listen(i,e,n){if("@"==e.charAt(0)){const
s=function N
F(t){switch(t){case"body":return document.body;case"document":return
document;case"window":return window;default:return t}}(i);let
r=e.substr(1),o="";return"(a)"!=r.charAt(0)&&([r,o]=function
VF(t){const
i=t.indexOf(".");return[t.substring(0,i),t.substr(i+1)]}(r)),this.engine.listen(this.namespaceId,s,r,o,u=>{this.factory.scheduleListenerCallback(u._data||-1,n,u)})}return
this.delegate.listen(i,e,n)}}let BF=(()=>{class t extends
$u{constructor(e,n,s){super(e.body,n,s)}ngOnDestroy(){this.flush()}}return
t.\u0275fac=function(e){return
new(e||t)(K(Xt),K(xf),K(Ff))},t.\u0275prov=X({token:t,factory:t.\u0275fac}),t})();const
Xw=new
be("AnimationModuleType"),eT=[{provide:hw,useClass:LF},{provide:Ff,useFactory:function
HF(){return new sF}},{provide:$u,useClass:BF},{provide:Ba,useFactory:function
qF(t,i,e){return new PF(t,i,e)},deps:[ru,$u,nt]}],tT=[{provide:xf,useFactory:()=>new
RF},{provide:Xw,useValue:"BrowserAnimations"},...eT],GF=[{provide:xf,useClass:Mw},{provide:Xw,useValue:"NoopAnimati
ons"},...eT];let UF=(()=>{class t{static
withConfig(e){return{ngModule:t,providers:e.disableAnimations?GF:tT}}}return
t.\u0275fac=function(e){return
new(e||t)},t.\u0275mod=he({type:t}),t.\u0275inj=ue({providers:tT,imports:[qy]}),t})();class
Z{static equals(i,e,n){return
n?this.resolveFieldData(i,n)===this.resolveFieldData(e,n):this.equalsByValue(i,e)}static
equalsByValue(i,e){if(i===e)return!0;if(i&&e&&"object"==typeof
i&&"object"==typeof e){var
r,o,u,n=Array.isArray(i),s=Array.isArray(e);if(n&&s){if((o=i.length)!=e.length)return!1;for(r=o;0!=r--;)if(!this.equalsByValue(i[r],e[r]))return!1;return!0}if(n!=s)return!1;var
h=i instanceof Date,b=e instanceof Date;if(h!=b)return!1;if(h&&b)return
i.getTime()==e.getTime();var y=i instanceof RegExp,w=e instanceof
RegExp;if(y!=w)return!1;if(y&&w)return i.toString()==e.toString();var
M=Object.keys(i);if((o=M.length)!==Object.keys(e).length)return!1;for(r=o;0!=r--;)if(!Object.prototype.hasOwnProperty.call(e,M[r]))return!1;for(r=o;0!=r--;)if(!th
is.equalsByValue(i[u=M[r]],e[u]))return!1;return!0}return i!=i&&e!=e}static
resolveFieldData(i,e){if(i&&e){if(this.isFunction(e))return
e(i);if(-1==e.indexOf("."))return i[e];{let n=e.split("."),s=i;for(let
r=0,o=n.length;r<o;++r){if(null==s)return null;s=s[n[r]]}return s}}return null}static
isFunction(i){return!!(i&&i.constructor&&i.call&&i.apply)}static
reorderArray(i,e,n){i&&e!==n&&(n>=i.length&&(n%=i.length,e%=i.length),i.splice(n,0,i.splice(e,1)[0]))}static
insertIntoOrderedArray(i,e,n,s){if(n.length>0){let r=!1;for(let
o=0;o<n.length;o++)if(this.findIndexInList(n[o],s)>e){n.splice(o,0,i),r=!0;break}r||n.push(i)}else
n.push(i)}static findIndexInList(i,e){let n=-1;if(e)for(let
s=0;s<e.length;s++)if(e[s]==i){n=s;break}return n}static
contains(i,e){if(null!=i&&e&&e.length)for(let n of
e)if(this.equals(i,n))return!0;return!1}static removeAccents(i){return
i&&i.search(/[\xC0-\xFF]/g)>-1&&(i=i.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")),i}static
isEmpty(i){return null==i||""===i||Array.isArray(i)&&0===i.length||!(i
instanceof Date)&&"object"==typeof
i&&0===Object.keys(i).length}static isNotEmpty(i){return!this.isEmpty(i)}}var
nT=0;function pl(){return"pr_id_"+ ++nT}var dt=function zF(){let t=[];const
s=r=>r&&parseInt(r.style.zIndex,10)||0;return{get:s,set:(r,o,u)=>{o&&(o.style.zIndex=String(((r,o)=>{let
u=t.length>0?t[t.length-1]:{key:r,value:o},h=u.value+(u.key===r?0:o)+1;return
t.push({key:r,value:h}),h})(r,u)))},clear:r=>{r&&((r=>{t=t.filter(o=>o.value!==r)})(s(r)
),r.style.zIndex="")},getCurrent:()=>t.length>0?t[t.length-1].value:0}}();const
iT=["*"];let _t=(()=>{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.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})(),zn=(()=>{class
t{constructor(){this.ripple=!1,this.filterMatchModeOptions={text:[_t.STARTS_WITH,_t.CONTAINS,_t.NOT_CONTAINS,_t.ENDS_WITH,_t.EQUALS,_t.NOT_EQUALS],numeric:[_t.EQUALS,_t.NOT_EQUALS,_t.LESS_THAN,_t.LESS_THAN_OR_EQUAL_TO,_t.GREATER_THAN,_t.GREATER_THAN_OR_EQUAL_TO],date:[_t.DATE_IS,_t.DATE_IS_NOT,_t.DATE_BEFORE,_t.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:1e3,tooltip:1100},this.translationSource=new
ct,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=X({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),Ft=(()=>{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.A
CCEPT="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="dayNamesMin",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})(),hl=(()=>{class
t{constructor(){this.filters={startsWith:(e,n,s)=>{if(null==n||""===n.trim())return!0;if(null==e)return!1;let
r=Z.removeAccents(n.toString()).toLocaleLowerCase(s);return
Z.removeAccents(e.toString()).toLocaleLowerCase(s).slice(0,r.length)===r},contains:(e,n,s)=>{if(null==n||"string"==typeof
n&&""===n.trim())return!0;if(null==e)return!1;let
r=Z.removeAccents(n.toString()).toLocaleLowerCase(s);return-1!==Z.removeAccents(e.toString()).toLocaleLowerCase(s).indexOf(r)},notContains:(e,n,s)=>{if(nul
l==n||"string"==typeof
n&&""===n.trim())return!0;if(null==e)return!1;let
r=Z.removeAccents(n.toString()).toLocaleLowerCase(s);return-1===Z.removeAccents(e.toString()).toLocaleLowerCase(s).indexOf(r)},endsWith:(e,n,s)=>{if(null==n||""===n.trim())return!0;if(null==e)return!1;let
r=Z.removeAccents(n.toString()).toLocaleLowerCase(s),o=Z.removeAccents(e.toString()).toLocaleLowerCase(s);return-1!==o.indexOf(r,o.length-r.length)},equals:(e,n,s)=>null==n||"string"==typeof
n&&""===n.trim()||null!=e&&(e.getTime&&n.getTime?e.getTime()===n.getTime():Z.removeAccents(e.toString()).toLocaleLowerCase(s)==Z.removeAccents(n.toString()).toLocaleLowerCase(s)),notEquals:(e,n,s)=>!(null==n||"string"==typeof
n&&""===n.trim()||null!=e&&(e.getTime&&n.getTime?e.getTime()===n.getTime():Z.removeAccents(e.toString()).toLocaleLowerCase(s)==Z.removeAccents(n.toString()).toLocaleLowerCase(s))),in:(e,n)=>{if(null==n||0===n.length)return!0;for(let
s=0;s<n.length;s++)if(Z.equals(e,n[s]))return!0;return!1},between:(e,
n)=>null==n||null==n[0]||null==n[1]||null!=e&&(e.getTime?n[0].getTime()<=e.getTime()&&e.getTime()<=n[1].getTime():n[0]<=e&&e<=n[1]),lt:(e,n,s)=>null==n||null!=e&&(e.getTime&&n.getTime?e.getTime()<n.getTime():e<n),lte:(e,n,s)=>null==n||null!=e&&(e.getTime&&n.getTime?e.getTime()<=n.getTime():e<=n),gt:(e,n,s)=>null==n||null!=e&&(e.getTime&&n.getTime?e.getTime()>n.getTime():e>n),gte:(e,n,s)=>null==n||null!=e&&(e.getTime&&n.getTime?e.getTime()>=n.getTime():e>=n),is:(e,n,s)=>this.filters.equals(e,n,s),isNot:(e,n,s)=>this.filters.notEquals(e,n,s),before:(e,n,s)=>this.filters.lt(e,n,s),after:(e,n,s)=>this.filters.gt(e,n,s),dateIs:(e,n)=>null==n||null!=e&&e.toDateString()===n.toDateString(),dateIsNot:(e,n)=>null==n||null!=e&&e.toDateString()!==n.toDateString(),dateBefore:(e,n)=>null==n||null!=e&&e.getTime()<n.getTime(),dateAfter:(e,n)=>null==n||null!=e&&e.getTime()>n.getTime()}}filter(e,n,s,r,o){let
u=[];if(e)for(let h of e)for(let b of n){let
y=Z.resolveFieldData(h,b);if(this.filters[r](y,s
,o)){u.push(h);break}}return u}register(e,n){this.filters[e]=n}}return
t.\u0275fac=function(e){return
new(e||t)},t.\u0275prov=X({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),Gi=(()=>{class
t{constructor(){this.messageSource=new ct,this.clearSource=new
ct,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=X({token:t,factory:t.\u0275fac}),t})(),Ks=(()=>{class
t{constructor(){this.clickSource=new
ct,this.clickObservable=this.clickSource.asObservable()}add(e){e&&this.clickSource.next(e)}}return
t.\u0275fac=function(e){return
new(e||t)},t.\u0275prov=X({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),ml=(()=>{class
t{}return t.AND="and",t.OR="or",t})(),Oo=(()=>{class t{}return
t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=z({
type:t,selectors:[["p-header"]],ngContentSelectors:iT,decls:1,vars:0,template:function(e,n){1&e&&(Sn(),St(0))},encapsulation:2}),t})(),fl=(()=>{class
t{}return t.\u0275fac=function(e){return
new(e||t)},t.\u0275cmp=z({type:t,selectors:[["p-footer"]],ngContentSelectors:iT,decls:1,vars:0,template:function(e,n){1&e&&(Sn(),St(0))},encapsulation:2}),t})(),ne=(()=>{class
t{constructor(e){this.template=e}getType(){return this.name}}return
t.\u0275fac=function(e){return
new(e||t)(D(bi))},t.\u0275dir=le({type:t,selectors:[["","pTemplate",""]],inputs:{type:"type",name:["pTemplate","name"]}}),t})(),Nt=(()=>{class
t{}return t.\u0275fac=function(e){return
new(e||t)},t.\u0275mod=he({type:t}),t.\u0275inj=ue({imports:[[Fe]]}),t})();function
jF(t,i){if(1&t&&(l(0,"span",9),g(1),c()),2&t){const
e=d();a(1),T(" ",e.header," ")}}function
$F(t,i){1&t&&Y(0)}function
WF(t,i){1&t&&St(0,1,["*ngIf","hasHeaderFacet"])}function
KF(t,i){1&t&&Y(0)}function
QF(t,i){if(1&t&&(de(0),_(1,KF,1,0,"ng-container",5),pe()),2
&t){const e=d();a(1),p("ngTemplateOutlet",e.contentTemplate)}}const
JF=["*",[["p-header"]]],YF=function(t){return{"p-accordion-tab-active":t}},ZF=function(t,i){return{"p-highlight":t,"p-disabled":i}},sT=function(t){return{transitionParams:t}},XF=function(t){return{value:"visible",params:t}},eN=function(t){return{value:"hidden",params:t}},tN=["*","p-header"],nN=["*"];let
iN=0,Ts=(()=>{class
t{constructor(e,n){this.changeDetector=n,this.cache=!0,this.selectedChange=new
H,this.transitionOptions="400ms cubic-bezier(0.86, 0, 0.07,
1)",this.id="p-accordiontab-"+iN++,this.accordion=e}get selected(){return
this._selected}set
selected(e){this._selected=e,this.loaded||(this._selected&&this.cache&&(this.loaded=!0),this.changeDetector.detectChanges())}ngAfterContentInit(){this.templates.forEach(e=>{switch(e.getType()){case"content":default:this.contentTemplate=e.template;break;case"header":this.headerTemplate=e.template}})}toggle(e){if(this.disabled)return!1;let
n=this.findTabIndex();if(this.se
lected)this.selected=!1,this.accordion.onClose.emit({originalEvent:e,index:n});else{if(!this.accordion.multiple)for(var
s=0;s<this.accordion.tabs.length;s++)this.accordion.tabs[s].selected&&(this.accordion.tabs[s].selected=!1,this.accordion.tabs[s].selectedChange.emit(!1),this.accordion.tabs[s].changeDetector.markForCheck());this.selected=!0,this.loaded=!0,this.accordion.onOpen.emit({originalEvent:e,index:n})}this.selectedChange.emit(this.selected),this.accordion.updateActiveIndex(),this.changeDetector.markForCheck(),e.preventDefault()}findTabIndex(){let
e=-1;for(var
n=0;n<this.accordion.tabs.length;n++)if(this.accordion.tabs[n]==this){e=n;break}return
e}get hasHeaderFacet(){return
this.headerFacet&&this.headerFacet.length>0}onKeydown(e){(32===e.which||13===e.which)&&(this.toggle(e),e.preventDefault())}ngOnDestroy(){this.accordion.tabs.splice(this.findTabIndex(),1)}}return
t.\u0275fac=function(e){return
new(e||t)(D(je(()=>Ss)),D(rt))},t.\u0275cmp=z({type:t,selectors:[["p-accordionTa
b"]],contentQueries:function(e,n,s){if(1&e&&(st(s,Oo,4),st(s,ne,4)),2&e){let
r;V(r=B())&&(n.headerFacet=r),V(r=B())&&(n.templates=r)}},hostAttrs:[1,"p-element"],inputs:{header:"header",disabled:"disabled",cache:"cache",transitionOptions:"transitionOptions",selected:"selected"},outputs:{selectedChange:"selectedChange"},ngContentSelectors:tN,decls:11,vars:28,consts:[[1,"p-accordion-tab",3,"ngClass"],[1,"p-accordion-header",3,"ngClass"],["role","tab",1,"p-accordion-header-link",3,"click","keydown"],[1,"p-accordion-toggle-icon",3,"ngClass"],["class","p-accordion-header-text",4,"ngIf"],[4,"ngTemplateOutlet"],[4,"ngIf"],["role","region",1,"p-toggleable-content"],[1,"p-accordion-content"],[1,"p-accordion-header-text"]],template:function(e,n){1&e&&(Sn(JF),l(0,"div",0)(1,"div",1)(2,"a",2),C("click",function(r){return
n.toggle(r)})("keydown",function(r){return
n.onKeydown(r)}),k(3,"span",3),_(4,jF,2,1,"span",4),_(5,$F,1,0,"ng-container",5),_(6,WF,1,0,"ng-content",6),c()(),l(7,"div",7)(8,"div"
,8),St(9),_(10,QF,2,1,"ng-container",6),c()()()),2&e&&(p("ngClass",U(15,YF,n.selected)),a(1),p("ngClass",Ge(17,ZF,n.selected,n.disabled)),a(1),ie("tabindex",n.disabled?null:0)("id",n.id)("aria-controls",n.id+"-content")("aria-expanded",n.selected),a(1),p("ngClass",n.selected?n.accordion.collapseIcon:n.accordion.expandIcon),a(1),p("ngIf",!n.hasHeaderFacet),a(1),p("ngTemplateOutlet",n.headerTemplate),a(1),p("ngIf",n.hasHeaderFacet),a(1),p("@tabContent",n.selected?U(22,XF,U(20,sT,n.transitionOptions)):U(26,eN,U(24,sT,n.transitionOptions))),ie("id",n.id+"-content")("aria-hidden",!n.selected)("aria-labelledby",n.id),a(3),p("ngIf",n.contentTemplate&&(n.cache?n.loaded:n.selected)))},directives:[Le,Q,Rt],styles:[".p-accordion-header-link{cursor:pointer;display:flex;align-items:center;-webkit-user-select:none;user-select:none;position:relative;text-decoration:none}.p-accordion-header-link:focus{z-index:1}.p-accordion-header-text{line-height:1}\n"],encapsulation:2,data:{animation:[wi("tabCont
ent",[ws("hidden",it({height:"0",overflow:"hidden"})),ws("visible",it({height:"*"})),Lt("visible
<=>
hidden",[it({overflow:"hidden"}),kt("{{transitionParams}}")]),Lt("void
=> *",kt(0))])]},changeDetection:0}),t})(),Ss=(()=>{class
t{constructor(e,n){this.el=e,this.changeDetector=n,this.onClose=new H,this.onOpen=new
H,this.expandIcon="pi pi-fw pi-chevron-right",this.collapseIcon="pi pi-fw
pi-chevron-down",this.activeIndexChange=new
H,this.tabs=[]}ngAfterContentInit(){this.initTabs(),this.tabListSubscription=this.tabList.changes.subscribe(e=>{this.initTabs()})}initTabs(){this.tabs=this.tabList.toArray(),this.updateSelectionState(),this.changeDetector.markForCheck()}getBlockableElement(){return
this.el.nativeElement.children[0]}get activeIndex(){return this._activeIndex}set
activeIndex(e){this._activeIndex=e,this.preventActiveIndexPropagation?this.preventActiveIndexPropagation=!1:this.updateSelectionState()}updateSelectionState(){if(this.tabs&&this.tabs.length&&null!=this._activeIndex)f
or(let e=0;e<this.tabs.length;e++){let
n=this.multiple?this._activeIndex.includes(e):e===this._activeIndex;n!==this.tabs[e].selected&&(this.tabs[e].selected=n,this.tabs[e].selectedChange.emit(n),this.tabs[e].changeDetector.markForCheck())}}updateActiveIndex(){let
e=this.multiple?[]:null;this.tabs.forEach((n,s)=>{if(n.selected){if(!this.multiple)return
void(e=s);e.push(s)}}),this.preventActiveIndexPropagation=!0,this.activeIndexChange.emit(e)}ngOnDestroy(){this.tabListSubscription&&this.tabListSubscription.unsubscribe()}}return
t.\u0275fac=function(e){return
new(e||t)(D(De),D(rt))},t.\u0275cmp=z({type:t,selectors:[["p-accordion"]],contentQueries:function(e,n,s){if(1&e&&st(s,Ts,4),2&e){let
r;V(r=B())&&(n.tabList=r)}},hostAttrs:[1,"p-element"],inputs:{multiple:"multiple",style:"style",styleClass:"styleClass",expandIcon:"expandIcon",collapseIcon:"collapseIcon",activeIndex:"activeIndex"},outputs:{onClose:"onClose",onOpen:"onOpen",activeIndexChange:"activeIndexChange"},ngContentSelectors:
nN,decls:2,vars:4,consts:[["role","tablist",3,"ngClass","ngStyle"]],template:function(e,n){1&e&&(Sn(),l(0,"div",0),St(1),c()),2&e&&(me(n.styleClass),p("ngClass","p-accordion
p-component")("ngStyle",n.style))},directives:[Le,lt],encapsulation:2,changeDetection:0}),t})(),sN=(()=>{class
t{}return t.\u0275fac=function(e){return
new(e||t)},t.\u0275mod=he({type:t}),t.\u0275inj=ue({imports:[[Fe],Nt]}),t})(),R=(()=>{class
t{static addClass(e,n){e.classList?e.classList.add(n):e.className+=" "+n}static
addMultipleClasses(e,n){if(e.classList){let s=n.trim().split(" ");for(let
r=0;r<s.length;r++)e.classList.add(s[r])}else{let s=n.split(" ");for(let
r=0;r<s.length;r++)e.className+=" "+s[r]}}static
removeClass(e,n){e.classList?e.classList.remove(n):e.className=e.className.replace(new
RegExp("(^|\\b)"+n.split("
").join("|")+"(\\b|$)","gi")," ")}static
hasClass(e,n){return e.classList?e.classList.contains(n):new RegExp("(^|
)"+n+"( |$)","gi").test(e.className)}static siblings(e){return
Array.protot
ype.filter.call(e.parentNode.children,function(n){return n!==e})}static find(e,n){return
Array.from(e.querySelectorAll(n))}static findSingle(e,n){return
e?e.querySelector(n):null}static index(e){let n=e.parentNode.childNodes,s=0;for(var
r=0;r<n.length;r++){if(n[r]==e)return s;1==n[r].nodeType&&s++}return-1}static
indexWithinGroup(e,n){let s=e.parentNode?e.parentNode.childNodes:[],r=0;for(var
o=0;o<s.length;o++){if(s[o]==e)return
r;s[o].attributes&&s[o].attributes[n]&&1==s[o].nodeType&&r++}return-1}static
relativePosition(e,n){let
s=e.offsetParent?{width:e.offsetWidth,height:e.offsetHeight}:this.getHiddenElementDimensions(e);const
r=n.offsetHeight,o=n.getBoundingClientRect(),u=this.getViewport();let
h,b;o.top+r+s.height>u.height?(h=-1*s.height,e.style.transformOrigin="bottom",o.top+h<0&&(h=-1*o.top)):(h=r,e.style.transformOrigin="top"),b=s.width>u.width?-1*o.left:o.left+s.width>u.width?-1*(o.left+s.width-u.width):0,e.style.top=h+"px",e.style.left=b+"px"}static
absolutePosition(e,n){l
et
E,L,s=e.offsetParent?{width:e.offsetWidth,height:e.offsetHeight}:this.getHiddenElementDimensions(e),r=s.height,o=s.width,u=n.offsetHeight,h=n.offsetWidth,b=n.getBoundingClientRect(),y=this.getWindowScrollTop(),w=this.getWindowScrollLeft(),M=this.getViewport();b.top+u+r>M.height?(E=b.top+y-r,e.style.transformOrigin="bottom",E<0&&(E=y)):(E=u+b.top+y,e.style.transformOrigin="top"),L=b.left+o>M.width?Math.max(0,b.left+w+h-o):b.left+w,e.style.top=E+"px",e.style.left=L+"px"}static
getParents(e,n=[]){return
null===e.parentNode?n:this.getParents(e.parentNode,n.concat([e.parentNode]))}static
getScrollableParents(e){let n=[];if(e){let s=this.getParents(e);const
r=/(auto|scroll)/,o=u=>{let h=window.getComputedStyle(u,null);return
r.test(h.getPropertyValue("overflow"))||r.test(h.getPropertyValue("overflowX"))||r.test(h.getPropertyValue("overflowY"))};for(let
u of s){let h=1===u.nodeType&&u.dataset.scrollselectors;if(h){let
b=h.split(",");for(let y of b){let
w=this.findSingle(u,y);w&&o(w)&&n.
push(w)}}9!==u.nodeType&&o(u)&&n.push(u)}}return n}static
getHiddenElementOuterHeight(e){e.style.visibility="hidden",e.style.display="block";let
n=e.offsetHeight;return
e.style.display="none",e.style.visibility="visible",n}static
getHiddenElementOuterWidth(e){e.style.visibility="hidden",e.style.display="block";let
n=e.offsetWidth;return
e.style.display="none",e.style.visibility="visible",n}static
getHiddenElementDimensions(e){let n={};return
e.style.visibility="hidden",e.style.display="block",n.width=e.offsetWidth,n.height=e.offsetHeight,e.style.display="none",e.style.visibility="visible",n}static
scrollInView(e,n){let
s=getComputedStyle(e).getPropertyValue("borderTopWidth"),r=s?parseFloat(s):0,o=getComputedStyle(e).getPropertyValue("paddingTop"),u=o?parseFloat(o):0,h=e.getBoundingClientRect(),y=n.getBoundingClientRect().top+document.body.scrollTop-(h.top+document.body.scrollTop)-r-u,w=e.scrollTop,M=e.clientHeight,E=this.getOuterHeight(n);y<0?e.scrollTop=w+y:y+E>M&&(e.scrollTop=w+y-
M+E)}static fadeIn(e,n){e.style.opacity=0;let s=+new
Date,r=0,o=function(){r=+e.style.opacity.replace(",",".")+((new
Date).getTime()-s)/n,e.style.opacity=r,s=+new
Date,+r<1&&(window.requestAnimationFrame&&requestAnimationFrame(o)||setTimeout(o,16))};o()}static
fadeOut(e,n){var s=1,u=50/n;let
h=setInterval(()=>{(s-=u)<=0&&(s=0,clearInterval(h)),e.style.opacity=s},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,n){var
s=Element.prototype;return(s.matches||s.webkitMatchesSelector||s.mozMatchesSelector||s.msMatchesSelector||function(o){return-1!==[].indexOf.call(document.querySelectorAll(o),this)}).call(e,n)}static
getOuterWidth(e,n){let s=e.offsetWidth;if(n){let
r=getComputedStyle(e);s+=parseFloat(r.marginLeft)+parseFloat(r.marginRight)}return
s}static getHorizontalPadding(e){let n
=getComputedStyle(e);return parseFloat(n.paddingLeft)+parseFloat(n.paddingRight)}static
getHorizontalMargin(e){let n=getComputedStyle(e);return
parseFloat(n.marginLeft)+parseFloat(n.marginRight)}static innerWidth(e){let
n=e.offsetWidth,s=getComputedStyle(e);return
n+=parseFloat(s.paddingLeft)+parseFloat(s.paddingRight),n}static width(e){let
n=e.offsetWidth,s=getComputedStyle(e);return
n-=parseFloat(s.paddingLeft)+parseFloat(s.paddingRight),n}static getInnerHeight(e){let
n=e.offsetHeight,s=getComputedStyle(e);return
n+=parseFloat(s.paddingTop)+parseFloat(s.paddingBottom),n}static getOuterHeight(e,n){let
s=e.offsetHeight;if(n){let
r=getComputedStyle(e);s+=parseFloat(r.marginTop)+parseFloat(r.marginBottom)}return
s}static getHeight(e){let n=e.offsetHeight,s=getComputedStyle(e);return
n-=parseFloat(s.paddingTop)+parseFloat(s.paddingBottom)+parseFloat(s.borderTopWidth)+parseFloat(s.borderBottomWidth),n}static
getWidth(e){let n=e.offsetWidth,s=getComputedStyle(e);return n-=parseFloat(s.pa
ddingLeft)+parseFloat(s.paddingRight)+parseFloat(s.borderLeftWidth)+parseFloat(s.borderRightWidth),n}static
getViewport(){let
e=window,n=document,s=n.documentElement,r=n.getElementsByTagName("body")[0];return{width:e.innerWidth||s.clientWidth||r.clientWidth,height:e.innerHeight||s.clientHeight||r.clientHeight}}static
getOffset(e){var
n=e.getBoundingClientRect();return{top:n.top+(window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0),left:n.left+(window.pageXOffset||document.documentElement.scrollLeft||document.body.scrollLeft||0)}}static
replaceElementWith(e,n){let s=e.parentNode;if(!s)throw"Can't replace
element";return s.replaceChild(n,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,n){if(this.isElement(n))n.appendChild(e);else{if(!n.el||!n.el.nativeElement)throw"Cannot
append "+n+" to "+e;n.el.nativeElement.appendChild(e)}}static
removeChild(e,n){if(this.isElement(n))n.removeChild(e);else{if(!n.el||!n.el.nativeElement)throw"Cannot
remove "+e+" from "+n;n.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 n=getComputedStyle(e);return
e.offsetWidth-e.clientWidth-parseFloat(n.borderLeftWidth)-parseFloat(n.borderRightWidth)}{if(null!==this.calculatedScrollbarWidth)return
this.calculatedScrollbarWidth;let
n=document.createElement("div");n.className="p-scrollbar-measure",do
cument.body.appendChild(n);let s=n.offsetWidth-n.clientWidth;return
document.body.removeChild(n),this.calculatedScrollbarWidth=s,s}}static
calculateScrollbarHeight(){if(null!==this.calculatedScrollbarHeight)return
this.calculatedScrollbarHeight;let
e=document.createElement("div");e.className="p-scrollbar-measure",document.body.appendChild(e);let
n=e.offsetHeight-e.clientHeight;return
document.body.removeChild(e),this.calculatedScrollbarWidth=n,n}static
invokeElementMethod(e,n,s){e[n].apply(e,s)}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(),n=/(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:n[1]||"",version:n[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
n=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)'),s=[];for(let
r of
n)"none"!=getComputedStyle(r).display&&"hidden"!=getComputedStyle(r).visibility&&s.push(r);return
s}static generateZIndex(){return this.zindex=this.zindex||999,++this.zindex}}return
t.zindex=1e3,t.calculatedScrollbarWidth=null,t.calculatedScrollbarHeight=null,t})();class
Qs{constructor(i,e=(()=>{})){this.element=i,this.listener=e}bindScrollListener(){this.scrollableParents=R.getScrollableParents(this.element);for(let
i=0;i<this.scrollableParents.length;i++)this.scrollableParents[i].addEventListener("scroll",this.listener)}unbindScrollL
istener(){if(this.scrollableParents)for(let
i=0;i<this.scrollableParents.length;i++)this.scrollableParents[i].removeEventListener("scroll",this.listener)}destroy(){this.unbindScrollListener(),this.element=null,this.listener=null,this.scrollableParents=null}}let
bt=(()=>{class
t{constructor(e,n,s){this.el=e,this.zone=n,this.config=s}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
n=this.getInk();if(!n||"none"===getComputedStyle(n,null).display)return;if(R.removeClass(n,"p-ink-active"),!R.getHeight(n)&&!R.getWidth(n)){let
u=Math.max(R.getOuterWidth(this.el.nativeElement),R.getOuterHeight(this.el.nativeElement));n.style.height=u+"px",n.style.width=u+"px"}let
s=R.getOffset(this.el.nativeElement),r=e.pageX-s.left+document.body.scrollTop-R.getWidth(n)/2,o=e.pageY-s.top+document.body.scrollLeft-R
.getHeight(n)/2;n.style.top=o+"px",n.style.left=r+"px",R.addClass(n,"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&&R.removeClass(e,"p-ink-active")}onAnimationEnd(e){R.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),R.removeElement(e))}ngOnDestroy(){this.config&&this.config.ripple&&this.remove()}}return
t.\u0275fac=function(e){return
new(e||t)(D(De),D(nt),D(zn,8))},t.\u0275dir=le({type:t,selectors:[["","pRipple",""]],host
Attrs:[1,"p-ripple","p-element"]}),t})(),pn=(()=>{class t{}return
t.\u0275fac=function(e){return
new(e||t)},t.\u0275mod=he({type:t}),t.\u0275inj=ue({imports:[[Fe]]}),t})();function
rN(t,i){1&t&&Y(0)}const
oN=function(t,i,e,n){return{"p-button-icon":!0,"p-button-icon-left":t,"p-button-icon-right":i,"p-button-icon-top":e,"p-button-icon-bottom":n}};function
aN(t,i){if(1&t&&k(0,"span",4),2&t){const
e=d();me(e.loading?"p-button-loading-icon
"+e.loadingIcon:e.icon),p("ngClass",qn(4,oN,"left"===e.iconPos&&e.label,"right"===e.iconPos&&e.label,"top"===e.iconPos&&e.label,"bottom"===e.iconPos&&e.label)),ie("aria-hidden",!0)}}function
lN(t,i){if(1&t&&(l(0,"span",5),g(1),c()),2&t){const
e=d();ie("aria-hidden",e.icon&&!e.label),a(1),S(e.label||"\xa0")}}function
cN(t,i){if(1&t&&(l(0,"span",4),g(1),c()),2&t){const
e=d();me(e.badgeClass),p("ngClass",e.badgeStyleClass()),a(1),S(e.badge)}}const
uN=function(t,i,e,n,s){return{"p-button
p-component":!0,"p-button-icon-only":t,"p-button-vertical":i,"p-disa
bled":e,"p-button-loading":n,"p-button-loading-label-only":s}},dN=["*"];let
On=(()=>{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,R.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(){let
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=documen
t.createElement("span");e.className="p-button-icon",e.setAttribute("aria-hidden","true");let
n=this.label?"p-button-icon-"+this.iconPos:null;n&&R.addClass(e,n);let
s=this.getIconClass();s&&R.addMultipleClasses(e,s);let
r=R.findSingle(this.el.nativeElement,".p-button-label");r?this.el.nativeElement.insertBefore(e,r):this.el.nativeElement.appendChild(e)}getIconClass(){return
this.loading?"p-button-loading-icon
"+this.loadingIcon:this._icon}setIconClass(){let
e=R.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=R.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&&(R.findSingle(this.el.nativeElement,".p-button-label").textContent=this._label||" ",(this.loading||this.icon)&&this.setIconClass(),t
his.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)(D(De))},t.\u0275dir=le({type:t,selectors:[["","pButton",""]],hostAttrs:[1,"p-element"],inputs:{iconPos:"iconPos",loadingIcon:"loadingIcon",label:"label",icon:"icon",loading:"loading"}}),t})(),ve=(()=>{class
t{constructor(){this.type="button",this.iconPos="left",this.loading=!1,this.loadingIcon="pi
pi-spinner pi-spin",this.onClick=new H,this.onFocus=new H,this.onBlur=new
H}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=z({type:t,selectors:[["p-button"]],contentQueries:function(e,n,s){if(1&e&&st(s,ne,4),2&e){let
r;V(r=B())&&(n.templates=r)}},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",ariaLabel:"ariaLabel"},outputs:{onClick:"onClick",onFocus:"onFocus",onBlur:"onBlur"},ngContentSelectors:dN,decls:6,vars:17,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,n){1&e&&(Sn(),l(0,"button",0),C("click",function(r){return
n.onClick.emit(r)})("focus",function(r){return
n.onFocus.emit(r)})("blur",function(r){return
n.onBlur.emit(r)}),St(1),_(2,rN,1,0,"ng-container",1),_(3,aN,1,9,"span",2),_(4,lN,2,2,"span",3),_(5,c
N,2,4,"span",2),c()),2&e&&(me(n.styleClass),p("ngStyle",n.style)("disabled",n.disabled||n.loading)("ngClass",pr(11,uN,n.icon&&!n.label,("top"===n.iconPos||"bottom"===n.iconPos)&&n.label,n.disabled||n.loading,n.loading,n.loading&&!n.icon&&n.label)),ie("type",n.type)("aria-label",n.ariaLabel),a(2),p("ngTemplateOutlet",n.contentTemplate),a(1),p("ngIf",!n.contentTemplate&&(n.icon||n.loading)),a(1),p("ngIf",!n.contentTemplate),a(1),p("ngIf",!n.contentTemplate&&n.badge))},directives:[bt,lt,Le,Rt,Q],encapsulation:2,changeDetection:0}),t})(),gl=(()=>{class
t{}return t.\u0275fac=function(e){return
new(e||t)},t.\u0275mod=he({type:t}),t.\u0275inj=ue({imports:[[Fe,pn]]}),t})();const
pN=["container"],hN=["inputfield"],mN=["contentWrapper"];function
fN(t,i){if(1&t){const e=I();l(0,"i",8),C("click",function(){return
v(e),d(2).clear()}),c()}}function gN(t,i){if(1&t){const
e=I();l(0,"button",9),C("click",function(s){v(e),d();const
r=F(1);return d().onButtonClick(s,r)}),c()}if(2&t){const e=d(2);p("ic
on",e.icon)("disabled",e.disabled),ie("aria-label",e.iconAriaLabel)}}function
_N(t,i){if(1&t){const
e=I();l(0,"input",4,5),C("focus",function(s){return
v(e),d().onInputFocus(s)})("keydown",function(s){return
v(e),d().onInputKeydown(s)})("click",function(){return
v(e),d().onInputClick()})("blur",function(s){return
v(e),d().onInputBlur(s)})("input",function(s){return
v(e),d().onUserInput(s)}),c(),_(2,fN,1,0,"i",6),_(3,gN,1,3,"button",7)}if(2&t){const
e=d();me(e.inputStyleClass),p("value",e.inputFieldValue)("readonly",e.readonlyInput)("ngStyle",e.inputStyle)("placeholder",e.placeholder||"")("disabled",e.disabled)("ngClass","p-inputtext
p-component"),ie("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),a(2),p("ngIf",e.showClear&&!e.disabled&&null!=e.value),a(1),p("ngIf",e.showIcon)}}function
bN(t,i){1&t&&Y(0)}function vN(t,i){if(1&t){const
e=I();l(0,"button",30),C
("keydown",function(s){return
v(e),d(4).onContainerButtonKeydown(s)})("click",function(s){return
v(e),d(4).onPrevButtonClick(s)}),k(1,"span",31),c()}}function
CN(t,i){if(1&t){const
e=I();l(0,"button",32),C("click",function(s){return
v(e),d(4).switchToMonthView(s)})("keydown",function(s){return
v(e),d(4).onContainerButtonKeydown(s)}),g(1),c()}if(2&t){const
e=d().$implicit,n=d(3);p("disabled",n.switchViewButtonDisabled()),a(1),T("
",n.getMonthName(e.month)," ")}}function yN(t,i){if(1&t){const
e=I();l(0,"button",33),C("click",function(s){return
v(e),d(4).switchToYearView(s)})("keydown",function(s){return
v(e),d(4).onContainerButtonKeydown(s)}),g(1),c()}if(2&t){const
e=d().$implicit,n=d(3);p("disabled",n.switchViewButtonDisabled()),a(1),T("
",n.getYear(e)," ")}}function
wN(t,i){if(1&t&&(de(0),g(1),pe()),2&t){const
e=d(5);a(1),We("",e.yearPickerValues()[0]," -
",e.yearPickerValues()[e.yearPickerValues().length-1],"")}}function
TN(t,i){1&t&&Y(0)}const rT=function(t){return{$implicit:t}};f
unction
SN(t,i){if(1&t&&(l(0,"span",34),_(1,wN,2,2,"ng-container",13),_(2,TN,1,0,"ng-container",35),c()),2&t){const
e=d(4);a(1),p("ngIf",!e.decadeTemplate),a(1),p("ngTemplateOutlet",e.decadeTemplate)("ngTemplateOutletContext",U(3,rT,e.yearPickerValues))}}function
xN(t,i){if(1&t&&(l(0,"th",41)(1,"span"),g(2),c()()),2&t){const
e=d(5);a(2),S(e.getTranslation("weekHeader"))}}function
DN(t,i){if(1&t&&(l(0,"th",42)(1,"span"),g(2),c()()),2&t){const
e=i.$implicit;a(2),S(e)}}function
MN(t,i){if(1&t&&(l(0,"td",45)(1,"span",46),g(2),c()()),2&t){const
e=d().index,n=d(2).$implicit;a(2),T(" ",n.weekNumbers[e],"
")}}function kN(t,i){if(1&t&&(de(0),g(1),pe()),2&t){const
e=d(2).$implicit;a(1),S(e.day)}}function IN(t,i){1&t&&Y(0)}const
EN=function(t,i){return{"p-highlight":t,"p-disabled":i}};function
RN(t,i){if(1&t){const
e=I();de(0),l(1,"span",48),C("click",function(s){v(e);const
r=d().$implicit;return d(6).onDateSelect(s,r)})("keydown",function(s){v(e);const
r=d().$implicit,o=d(3).index;return d(3)
.onDateCellKeydown(s,r,o)}),_(2,kN,2,1,"ng-container",13),_(3,IN,1,0,"ng-container",35),c(),pe()}if(2&t){const
e=d().$implicit,n=d(6);a(1),p("ngClass",Ge(4,EN,n.isSelected(e),!e.selectable)),a(1),p("ngIf",!n.dateTemplate),a(1),p("ngTemplateOutlet",n.dateTemplate)("ngTemplateOutletContext",U(7,rT,e))}}const
LN=function(t,i){return{"p-datepicker-other-month":t,"p-datepicker-today":i}};function
ON(t,i){if(1&t&&(l(0,"td",47),_(1,RN,4,9,"ng-container",13),c()),2&t){const
e=i.$implicit,n=d(6);p("ngClass",Ge(2,LN,e.otherMonth,e.today)),a(1),p("ngIf",!e.otherMonth||n.showOtherMonths)}}function
AN(t,i){if(1&t&&(l(0,"tr"),_(1,MN,3,1,"td",43),_(2,ON,2,5,"td",44),c()),2&t){const
e=i.$implicit,n=d(5);a(1),p("ngIf",n.showWeek),a(1),p("ngForOf",e)}}function
PN(t,i){if(1&t&&(l(0,"div",36)(1,"table",37)(2,"thead")(3,"tr"),_(4,xN,3,1,"th",38),_(5,DN,3,1,"th",39),c()(),l(6,"tbody"),_(7,AN,3,2,"tr",40),c()()()),2&t){const
e=d().$implicit,n=d(3);a(4),p("ngIf",n.showWeek),a(1),p("ngForOf",n.weekDays),a(2
),p("ngForOf",e.dates)}}function FN(t,i){if(1&t){const
e=I();l(0,"div",20)(1,"div",21),_(2,vN,2,0,"button",22),l(3,"div",23),_(4,CN,2,2,"button",24),_(5,yN,2,2,"button",25),_(6,SN,3,5,"span",26),c(),l(7,"button",27),C("keydown",function(s){return
v(e),d(3).onContainerButtonKeydown(s)})("click",function(s){return
v(e),d(3).onNextButtonClick(s)}),k(8,"span",28),c()(),_(9,PN,8,3,"div",29),c()}if(2&t){const
e=i.index,n=d(3);a(2),p("ngIf",0===e),a(2),p("ngIf","date"===n.currentView),a(1),p("ngIf","year"!==n.currentView),a(1),p("ngIf","year"===n.currentView),a(1),_i("display",1===n.numberOfMonths||e===n.numberOfMonths-1?"inline-flex":"none"),a(2),p("ngIf","date"===n.currentView)}}const
oT=function(t){return{"p-highlight":t}};function NN(t,i){if(1&t){const
e=I();l(0,"span",51),C("click",function(s){const o=v(e).index;return
d(4).onMonthSelect(s,o)})("keydown",function(s){const o=v(e).index;return
d(4).onMonthCellKeydown(s,o)}),g(1),c()}if(2&t){const
e=i.$implicit,n=i.index,s=d(4);p("ngClas
s",U(2,oT,s.isMonthSelected(n))),a(1),T(" ",e," ")}}function
VN(t,i){if(1&t&&(l(0,"div",49),_(1,NN,2,4,"span",50),c()),2&t){const
e=d(3);a(1),p("ngForOf",e.monthPickerValues())}}function
BN(t,i){if(1&t){const
e=I();l(0,"span",54),C("click",function(s){const
o=v(e).$implicit;return d(4).onYearSelect(s,o)})("keydown",function(s){const
o=v(e).$implicit;return d(4).onYearCellKeydown(s,o)}),g(1),c()}if(2&t){const
e=i.$implicit,n=d(4);p("ngClass",U(2,oT,n.isYearSelected(e))),a(1),T("
",e," ")}}function
HN(t,i){if(1&t&&(l(0,"div",52),_(1,BN,2,4,"span",53),c()),2&t){const
e=d(3);a(1),p("ngForOf",e.yearPickerValues())}}function
qN(t,i){if(1&t&&(de(0),l(1,"div",16),_(2,FN,10,7,"div",17),c(),_(3,VN,2,1,"div",18),_(4,HN,2,1,"div",19),pe()),2&t){const
e=d(2);a(2),p("ngForOf",e.months),a(1),p("ngIf","month"===e.currentView),a(1),p("ngIf","year"===e.currentView)}}function
GN(t,i){1&t&&(de(0),g(1,"0"),pe())}function
UN(t,i){1&t&&(de(0),g(1,"0"),pe())}function
zN(t,i){if(1&t&&(l(0,"div",60)(1,"span"
),g(2),c()()),2&t){const e=d(3);a(2),S(e.timeSeparator)}}function
jN(t,i){1&t&&(de(0),g(1,"0"),pe())}function
$N(t,i){if(1&t){const
e=I();l(0,"div",65)(1,"button",57),C("keydown",function(s){return
v(e),d(3).onContainerButtonKeydown(s)})("keydown.enter",function(s){return
v(e),d(3).incrementSecond(s)})("keydown.space",function(s){return
v(e),d(3).incrementSecond(s)})("mousedown",function(s){return
v(e),d(3).onTimePickerElementMouseDown(s,2,1)})("mouseup",function(s){return
v(e),d(3).onTimePickerElementMouseUp(s)})("keyup.enter",function(s){return
v(e),d(3).onTimePickerElementMouseUp(s)})("keyup.space",function(s){return
v(e),d(3).onTimePickerElementMouseUp(s)})("mouseleave",function(){return
v(e),d(3).onTimePickerElementMouseLeave()}),k(2,"span",58),c(),l(3,"span"),_(4,jN,2,0,"ng-container",13),g(5),c(),l(6,"button",57),C("keydown",function(s){return
v(e),d(3).onContainerButtonKeydown(s)})("keydown.enter",function(s){return
v(e),d(3).decrementSecond(s)})("keydown.space",function(s){
return v(e),d(3).decrementSecond(s)})("mousedown",function(s){return
v(e),d(3).onTimePickerElementMouseDown(s,2,-1)})("mouseup",function(s){return
v(e),d(3).onTimePickerElementMouseUp(s)})("keyup.enter",function(s){return
v(e),d(3).onTimePickerElementMouseUp(s)})("keyup.space",function(s){return
v(e),d(3).onTimePickerElementMouseUp(s)})("mouseleave",function(){return
v(e),d(3).onTimePickerElementMouseLeave()}),k(7,"span",59),c()()}if(2&t){const
e=d(3);a(4),p("ngIf",e.currentSecond<10),a(1),S(e.currentSecond)}}function
WN(t,i){if(1&t){const
e=I();l(0,"div",66)(1,"button",67),C("keydown",function(s){return
v(e),d(3).onContainerButtonKeydown(s)})("click",function(s){return
v(e),d(3).toggleAMPM(s)})("keydown.enter",function(s){return
v(e),d(3).toggleAMPM(s)}),k(2,"span",58),c(),l(3,"span"),g(4),c(),l(5,"button",67),C("keydown",function(s){return
v(e),d(3).onContainerButtonKeydown(s)})("click",function(s){return
v(e),d(3).toggleAMPM(s)})("keydown.enter",function(s){return v(e),d(3).toggl
eAMPM(s)}),k(6,"span",59),c()()}if(2&t){const
e=d(3);a(4),S(e.pm?"PM":"AM")}}function KN(t,i){if(1&t){const
e=I();l(0,"div",55)(1,"div",56)(2,"button",57),C("keydown",function(s){return
v(e),d(2).onContainerButtonKeydown(s)})("keydown.enter",function(s){return
v(e),d(2).incrementHour(s)})("keydown.space",function(s){return
v(e),d(2).incrementHour(s)})("mousedown",function(s){return
v(e),d(2).onTimePickerElementMouseDown(s,0,1)})("mouseup",function(s){return
v(e),d(2).onTimePickerElementMouseUp(s)})("keyup.enter",function(s){return
v(e),d(2).onTimePickerElementMouseUp(s)})("keyup.space",function(s){return
v(e),d(2).onTimePickerElementMouseUp(s)})("mouseleave",function(){return
v(e),d(2).onTimePickerElementMouseLeave()}),k(3,"span",58),c(),l(4,"span"),_(5,GN,2,0,"ng-container",13),g(6),c(),l(7,"button",57),C("keydown",function(s){return
v(e),d(2).onContainerButtonKeydown(s)})("keydown.enter",function(s){return
v(e),d(2).decrementHour(s)})("keydown.space",function(s){return v(e),d(2).d
ecrementHour(s)})("mousedown",function(s){return
v(e),d(2).onTimePickerElementMouseDown(s,0,-1)})("mouseup",function(s){return
v(e),d(2).onTimePickerElementMouseUp(s)})("keyup.enter",function(s){return
v(e),d(2).onTimePickerElementMouseUp(s)})("keyup.space",function(s){return
v(e),d(2).onTimePickerElementMouseUp(s)})("mouseleave",function(){return
v(e),d(2).onTimePickerElementMouseLeave()}),k(8,"span",59),c()(),l(9,"div",60)(10,"span"),g(11),c()(),l(12,"div",61)(13,"button",57),C("keydown",function(s){return
v(e),d(2).onContainerButtonKeydown(s)})("keydown.enter",function(s){return
v(e),d(2).incrementMinute(s)})("keydown.space",function(s){return
v(e),d(2).incrementMinute(s)})("mousedown",function(s){return
v(e),d(2).onTimePickerElementMouseDown(s,1,1)})("mouseup",function(s){return
v(e),d(2).onTimePickerElementMouseUp(s)})("keyup.enter",function(s){return
v(e),d(2).onTimePickerElementMouseUp(s)})("keyup.space",function(s){return
v(e),d(2).onTimePickerElementMouseUp(s)})("mouseleave
",function(){return
v(e),d(2).onTimePickerElementMouseLeave()}),k(14,"span",58),c(),l(15,"span"),_(16,UN,2,0,"ng-container",13),g(17),c(),l(18,"button",57),C("keydown",function(s){return
v(e),d(2).onContainerButtonKeydown(s)})("keydown.enter",function(s){return
v(e),d(2).decrementMinute(s)})("keydown.space",function(s){return
v(e),d(2).decrementMinute(s)})("mousedown",function(s){return
v(e),d(2).onTimePickerElementMouseDown(s,1,-1)})("mouseup",function(s){return
v(e),d(2).onTimePickerElementMouseUp(s)})("keyup.enter",function(s){return
v(e),d(2).onTimePickerElementMouseUp(s)})("keyup.space",function(s){return
v(e),d(2).onTimePickerElementMouseUp(s)})("mouseleave",function(){return
v(e),d(2).onTimePickerElementMouseLeave()}),k(19,"span",59),c()(),_(20,zN,3,1,"div",62),_(21,$N,8,2,"div",63),_(22,WN,7,1,"div",64),c()}if(2&t){const
e=d(2);a(5),p("ngIf",e.currentHour<10),a(1),S(e.currentHour),a(5),S(e.timeSeparator),a(5),p("ngIf",e.currentMinute<10),a(1),S(e.currentMinute),a(3),p("ngIf"
,e.showSeconds),a(1),p("ngIf",e.showSeconds),a(1),p("ngIf","12"==e.hourFormat)}}const
aT=function(t){return[t]};function QN(t,i){if(1&t){const
e=I();l(0,"div",68)(1,"button",69),C("keydown",function(s){return
v(e),d(2).onContainerButtonKeydown(s)})("click",function(s){return
v(e),d(2).onTodayButtonClick(s)}),c(),l(2,"button",69),C("keydown",function(s){return
v(e),d(2).onContainerButtonKeydown(s)})("click",function(s){return
v(e),d(2).onClearButtonClick(s)}),c()()}if(2&t){const
e=d(2);a(1),p("label",e.getTranslation("today"))("ngClass",U(4,aT,e.todayButtonStyleClass)),a(1),p("label",e.getTranslation("clear"))("ngClass",U(6,aT,e.clearButtonStyleClass))}}function
JN(t,i){1&t&&Y(0)}const YN=function(t,i,e,n,s,r){return{"p-datepicker
p-component":!0,"p-datepicker-inline":t,"p-disabled":i,"p-datepicker-timeonly":e,"p-datepicker-multiple-month":n,"p-datepicker-monthpicker":s,"p-datepicker-touch-ui":r}},lT=function(t,i){return{showTransitionParams:t,hideTransitionParams:i}},ZN=function(t){
return{value:"visibleTouchUI",params:t}},XN=function(t){return{value:"visible",params:t}};function
e5(t,i){if(1&t){const
e=I();l(0,"div",10,11),C("(a)overlayAnimation.start",function(s){return
v(e),d().onOverlayAnimationStart(s)})("(a)overlayAnimation.done",function(s){return
v(e),d().onOverlayAnimationDone(s)})("click",function(s){return
v(e),d().onOverlayClick(s)}),St(2),_(3,bN,1,0,"ng-container",12),_(4,qN,5,3,"ng-container",13),_(5,KN,23,8,"div",14),_(6,QN,3,8,"div",15),St(7,1),_(8,JN,1,0,"ng-container",12),c()}if(2&t){const
e=d();me(e.panelStyleClass),p("ngStyle",e.panelStyle)("ngClass",Do(11,YN,e.inline,e.disabled,e.timeOnly,e.numberOfMonths>1,"month"===e.view,e.touchUI))("@overlayAnimation",e.touchUI?U(21,ZN,Ge(18,lT,e.showTransitionOptions,e.hideTransitionOptions)):U(26,XN,Ge(23,lT,e.showTransitionOptions,e.hideTransitionOptions)))("@.disabled",!0===e.inline),a(3),p("ngTemplateOutlet",e.headerTemplate),a(1),p("ngIf",!e.timeOnly),a(1),p("ngIf",(e.showTime||e.timeOnly)&&"date"===e
.currentView),a(1),p("ngIf",e.showButtonBar),a(2),p("ngTemplateOutlet",e.footerTemplate)}}const
t5=[[["p-header"]],[["p-footer"]]],n5=function(t,i,e,n){return{"p-calendar":!0,"p-calendar-w-btn":t,"p-calendar-timeonly":i,"p-calendar-disabled":e,"p-focus":n}},s5=["p-header","p-footer"],r5={provide:dn,useExisting:je(()=>xr),multi:!0};let
xr=(()=>{class
t{constructor(e,n,s,r,o,u){this.el=e,this.renderer=n,this.cd=s,this.zone=r,this.config=o,this.overlayService=u,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.showClear=!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
H,this.onBlur=new H,this.onClose=new H,this.onSelect=new H,this.onClear=new
H,this.onInput=new H,this.onTodayClick=new H,this.onClearClick=new
H,this.onMonthChange=new H,this.onYearChange=new H,this.onClickOutside=new
H,this.onShow=new
H,this.onModelChange=()=>{},this.onModelTouched=()=>{},this.inputFieldValue=null,this.navigationState=null,this._numberOfMonths=1,this._view="date",this.convertTo24Hour=function(h,b){return"12"==this.hourFormat?12===h?b?12:0:b?h+12:h:h}}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){co
nst n=e||new
Date;this.currentMonth=n.getMonth(),this.currentYear=n.getFullYear(),this.initTime(n),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 year
Range(e){if(this._yearRange=e,e){const
n=e.split(":"),s=parseInt(n[0]),r=parseInt(n[1]);this.populateYearOptions(s,r)}}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._firstDayOfWeek}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=pl();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.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=R.getOuterWidth(this.containerViewChild.nativeElemen
t)+"px")))}getTranslation(e){return
this.config.getTranslation(e)}populateYearOptions(e,n){this.yearOptions=[];for(let
s=e;s<=n;s++)this.yearOptions.push(s)}createWeekDays(){this.weekDays=[];let
e=this.getFirstDateOfWeek(),n=this.getTranslation(Ft.DAY_NAMES_MIN);for(let
s=0;s<7;s++)this.weekDays.push(n[e]),e=6==e?0:++e}monthPickerValues(){let e=[];for(let
n=0;n<=11;n++)e.push(this.config.getTranslation("monthNamesShort")[n]);return
e}yearPickerValues(){let e=[],n=this.currentYear-this.currentYear%10;for(let
s=0;s<10;s++)e.push(n+s);return e}createMonths(e,n){this.months=this.months=[];for(let
s=0;s<this.numberOfMonths;s++){let
r=e+s,o=n;r>11&&(r=r%11-1,o=n+1),this.months.push(this.createMonth(r,o))}}getWeekNumber(e){let
n=new Date(e.getTime());n.setDate(n.getDate()+4-(n.getDay()||7));let s=n.getTime();return
n.setMonth(0),n.setDate(1),Math.floor(Math.round((s-n.getTime())/864e5)/7)+1}createMonth(e,n){let
s=[],r=this.getFirstDayOfMonthIndex(e,n),o=this.getDaysCountInMonth(e,n),u=this
.getDaysCountInPrevMonth(e,n),h=1,b=new Date,y=[],w=Math.ceil((o+r)/7);for(let
M=0;M<w;M++){let E=[];if(0==M){for(let O=u-r+1;O<=u;O++){let
N=this.getPreviousMonthAndYear(e,n);E.push({day:O,month:N.month,year:N.year,otherMonth:!0,today:this.isToday(b,O,N.month,N.year),selectable:this.isSelectable(O,N.month,N.year,!0)})}let
L=7-E.length;for(let
O=0;O<L;O++)E.push({day:h,month:e,year:n,today:this.isToday(b,h,e,n),selectable:this.isSelectable(h,e,n,!1)}),h++}else
for(let L=0;L<7;L++){if(h>o){let
O=this.getNextMonthAndYear(e,n);E.push({day:h-o,month:O.month,year:O.year,otherMonth:!0,today:this.isToday(b,h-o,O.month,O.year),selectable:this.isSelectable(h-o,O.month,O.year,!0)})}else
E.push({day:h,month:e,year:n,today:this.isToday(b,h,e,n),selectable:this.isSelectable(h,e,n,!1)});h++}this.showWeek&&y.push(this.getWeekNumber(new
Date(E[0].year,E[0].month,E[0].day))),s.push(E)}return{month:e,year:n,dates:s,weekNumbers:y}}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"===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({m
onth: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[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.setCurrentView("month"),e.preventDefault()}switchToYearView(e){this.setCurrentView("year"),e.preventDefault()}onDateSelect(e,n){!this.disabled&&n.selectable?(this.isMultipleSelection()&&this.isSelected(n)?(this
.value=this.value.filter((s,r)=>!this.isDateEquals(s,n)),0===this.value.length&&(this.value=null),this.updateModel(this.value)):this.shouldSelectDate(n)&&this.selectDate(n),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,n){"month"===this.view?this.onDateSelect(e,{year:this.currentYear,month:n,day:1,selectable:!0}):(this.currentMonth=n,this.createMonths(this.currentMonth,this.currentYear),this.setCurrentView("date"),this.onMonthChange.emit({month:this.currentMonth+1,year:this.currentYear}))}onYearSelect(e,n){"year"===this.view?this.onDateSelect(e,{year:n,month:0,day:1,selectable:!0}):(this.currentYear=n,this.setCurrentView("month"),this.onYearChange.emit({m
onth: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
n=0;n<this.value.length;n++)e+=this.formatDateTime(this.value[n]),n!==this.value.length-1&&(e+=this.multipleSeparator+"
");else
if(this.isRangeSelection()&&this.value&&this.value.length){let
s=this.value[1];e=this.formatDateTime(this.value[0]),s&&(e+="
"+this.rangeSeparator+"
"+this.formatDateTime(s))}this.inputFieldValue=e,this.updateFilledState(),this.inputfieldViewChild&&this.inputfieldViewChild.nativeElement&&(this.inputfieldViewChild.nativeElement.value=this.inputFieldValue)}formatDateTime(e){let
n=this.keepInvalid?e:null;return
this.isValidDate(e)&&(this.timeOnly?n=this.formatTime(e):(n=this.formatDate(e,this.getDateFormat()),this.showTime&&(n+="
"+this.formatTime(e)))),n}setCurrentHourPM(e){"12"==this.hourFormat?(this.pm=e>11,this.currentHour=e>=12?12==e?12:e-12:0==e?12:e):this.curr
entHour=e}setCurrentView(e){this.currentView=e,this.cd.detectChanges(),this.alignOverlay()}selectDate(e){let
n=new
Date(e.year,e.month,e.day);if(this.showTime&&(n.setHours("12"==this.hourFormat?12===this.currentHour?this.pm?12:0:this.pm?this.currentHour+12:this.currentHour:this.currentHour),n.setMinutes(this.currentMinute),n.setSeconds(this.currentSecond)),this.minDate&&this.minDate>n&&(n=this.minDate,this.setCurrentHourPM(n.getHours()),this.currentMinute=n.getMinutes(),this.currentSecond=n.getSeconds()),this.maxDate&&this.maxDate<n&&(n=this.maxDate,this.setCurrentHourPM(n.getHours()),this.currentMinute=n.getMinutes(),this.currentSecond=n.getSeconds()),this.isSingleSelection())this.updateModel(n);else
if(this.isMultipleSelection())this.updateModel(this.value?[...this.value,n]:[n]);else
if(this.isRangeSelection())if(this.value&&this.value.length){let
s=this.value[0],r=this.value[1];!r&&n.getTime()>=s.getTime()?r=n:(s=n,r=null),this.updateModel([s,r])}else
this.updateModel([n,null]);t
his.onSelect.emit(n)}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
n=null;this.value&&(n=this.value.map(s=>this.formatDateTime(s))),this.onModelChange(n)}}getFirstDayOfMonthIndex(e,n){let
s=new Date;s.setDate(1),s.setMonth(e),s.setFullYear(n);let
r=s.getDay()+this.getSundayIndex();return r>=7?r-7:r}getDaysCountInMonth(e,n){return
32-this.daylightSavingAdjust(new Date(n,e,32)).getDate()}getDaysCountInPrevMonth(e,n){let
s=this.getPreviousMonthAndYear(e,n);return
this.getDaysCountInMonth(s.month,s.year)}getPreviousMonthAndYear(e,n){let s,r;return
0===e?(s=11,r=n-1):(s=e-1,r=n),{month:s,year:r}}getNextMonthAndYear(e,n){let s,r;return
11===e?(s=0,r=n+1):(s=e+1,r=n),{month:s,year:r}}getSundayIndex(){let
e=this.getFirstDateOfWeek();return
e>0?7-e:0}isSelected(e){if(!this.value)return!1;if(this.isSingleSelection())return
this.isDateEq
uals(this.value,e);if(this.isMultipleSelection()){let n=!1;for(let s of
this.value)if(n=this.isDateEquals(s,e),n)break;return n}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
n=this.isRangeSelection()?this.value[0]:this.value;return!this.isMultipleSelection()&&n.getMonth()===e&&n.getFullYear()===this.currentYear}return!1}isYearSelected(e){if(this.isComparable()){let
n=this.isRangeSelection()?this.value[0]:this.value;return!this.isMultipleSelection()&&n.getFullYear()===e}return!1}isDateEquals(e,n){return!!(e&&e
instanceof
Date)&&e.getDate()===n.day&&e.getMonth()===n.month&&e.getFullYear()===n.year}isDateBetween(e,n,s){if(e&&n){let
o=new Date(s.year,s.month,s.day);return
e.getTime()<=o.getTime()&&n.getTime()>=o.g
etTime()}return!1}isSingleSelection(){return"single"===this.selectionMode}isRangeSelection(){return"range"===this.selectionMode}isMultipleSelection(){return"multiple"===this.selectionMode}isToday(e,n,s,r){return
e.getDate()===n&&e.getMonth()===s&&e.getFullYear()===r}isSelectable(e,n,s,r){let
o=!0,u=!0,h=!0,b=!0;return!(r&&!this.selectOtherMonths)&&(this.minDate&&(this.minDate.getFullYear()>s||this.minDate.getFullYear()===s&&(this.minDate.getMonth()>n||this.minDate.getMonth()===n&&this.minDate.getDate()>e))&&(o=!1),this.maxDate&&(this.maxDate.getFullYear()<s||this.maxDate.getFullYear()===s&&(this.maxDate.getMonth()<n||this.maxDate.getMonth()===n&&this.maxDate.getDate()<e))&&(u=!1),this.disabledDates&&(h=!this.isDateDisabled(e,n,s)),this.disabledDays&&(b=!this.isDayDisabled(e,n,s)),o&&u&&h&&b)}isDateDisabled(e,n,s){if(this.disabledDates)for(let
r of
this.disabledDates)if(r.getFullYear()===s&&r.getMonth()===n&&r.getDate()===e)return!0;return!1}isDayDisabled(e,n,s){if(this.disabledDays)
{let o=new
Date(s,n,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,n){this.overlayVisible?this.hideOverlay():(n.focus(),this.showOverlay())}clear(){this.inputFieldValue=null,this.value=null,this.onModelChange(this.value),this.onClear.emit()}onOverlayClick(e){this.overlayService.add({originalEvent:e,target:this.el.nativeElement})}getMonthName(e){return
this.config.getTranslation("monthNames")[e]}getYear(e){return"month"===this.currentView?this.currentYear:e.year}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},thi
s.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&&(R.getFocusableElements(this.contentViewChild.nativeElement).forEach(n=>n.tabIndex="-1"),this.overlayVisible&&(this.overlayVisible=!1))}onDateCellKeydown(e,n,s){const
r=e.currentTarget,o=r.parentElement;switch(e.which){case 40:{r.tabIndex="-1";let
u=R.index(o),h=o.parentElement.nextElementSibling;h?R.hasClass(h.children[u].children[0],"p-disabled")?(this.navigationState={backward:!1},this.navForward(e)):(h.children[u].children[0].tabIndex="0",h.children[u].children[0].focus()):(this.navigationState={backward:!1},this.navForward(e)),e.preventDefault();break}case
38:{r.tabIndex="-1";let u=R.index(o),h=o.parentE
lement.previousElementSibling;if(h){let
b=h.children[u].children[0];R.hasClass(b,"p-disabled")?(this.navigationState={backward:!0},this.navBackward(e)):(b.tabIndex="0",b.focus())}else
this.navigationState={backward:!0},this.navBackward(e);e.preventDefault();break}case
37:{r.tabIndex="-1";let u=o.previousElementSibling;if(u){let
h=u.children[0];R.hasClass(h,"p-disabled")||R.hasClass(h.parentElement,"p-datepicker-weeknumber")?this.navigateToMonth(!0,s):(h.tabIndex="0",h.focus())}else
this.navigateToMonth(!0,s);e.preventDefault();break}case 39:{r.tabIndex="-1";let
u=o.nextElementSibling;if(u){let
h=u.children[0];R.hasClass(h,"p-disabled")?this.navigateToMonth(!1,s):(h.tabIndex="0",h.focus())}else
this.navigateToMonth(!1,s);e.preventDefault();break}case 13:case
32:this.onDateSelect(e,n),e.preventDefault();break;case
27:this.overlayVisible=!1,e.preventDefault();break;case
9:this.inline||this.trapFocus(e)}}onMonthCellKeydown(e,n){const
s=e.currentTarget;switch(e.which){case 38:case 40:{s.
tabIndex="-1";var r=s.parentElement.children,o=R.index(s);let
u=r[40===e.which?o+3:o-3];u&&(u.tabIndex="0",u.focus()),e.preventDefault();break}case
37:{s.tabIndex="-1";let
u=s.previousElementSibling;u?(u.tabIndex="0",u.focus()):(this.navigationState={backward:!0},this.navBackward(e)),e.preventDefault();break}case
39:{s.tabIndex="-1";let
u=s.nextElementSibling;u?(u.tabIndex="0",u.focus()):(this.navigationState={backward:!1},this.navForward(e)),e.preventDefault();break}case
13:this.onMonthSelect(e,n),e.preventDefault();break;case 13:case 32:case
27:this.overlayVisible=!1,e.preventDefault();break;case
9:this.inline||this.trapFocus(e)}}onYearCellKeydown(e,n){const
s=e.currentTarget;switch(e.which){case 38:case 40:{s.tabIndex="-1";var
r=s.parentElement.children,o=R.index(s);let
u=r[40===e.which?o+2:o-2];u&&(u.tabIndex="0",u.focus()),e.preventDefault();break}case
37:{s.tabIndex="-1";let
u=s.previousElementSibling;u?(u.tabIndex="0",u.focus()):(this.navigationState={backward:!0},this.navBac
kward(e)),e.preventDefault();break}case 39:{s.tabIndex="-1";let
u=s.nextElementSibling;u?(u.tabIndex="0",u.focus()):(this.navigationState={backward:!1},this.navForward(e)),e.preventDefault();break}case
13:case 32:this.onYearSelect(e,n),e.preventDefault();break;case
27:this.overlayVisible=!1,e.preventDefault();break;case
9:this.trapFocus(e)}}navigateToMonth(e,n){if(e)if(1===this.numberOfMonths||0===n)this.navigationState={backward:!0},this.navBackward(event);else{let
r=R.find(this.contentViewChild.nativeElement.children[n-1],".p-datepicker-calendar td
span:not(.p-disabled):not(.p-ink)"),o=r[r.length-1];o.tabIndex="0",o.focus()}else
if(1===this.numberOfMonths||n===this.numberOfMonths-1)this.navigationState={backward:!1},this.navForward(event);else{let
r=R.findSingle(this.contentViewChild.nativeElement.children[n+1],".p-datepicker-calendar
td
span:not(.p-disabled):not(.p-ink)");r.tabIndex="0",r.focus()}}updateFocus(){let
e;if(this.navigationState){if(this.navigationState.button)this.in
itFocusableCell(),this.navigationState.backward?R.findSingle(this.contentViewChild.nativeElement,".p-datepicker-prev").focus():R.findSingle(this.contentViewChild.nativeElement,".p-datepicker-next").focus();else{if(this.navigationState.backward){let
n;n=R.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)"),n&&n.length>0&&(e=n[n.length-1])}else
e=R.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 n=R.find(this.conte
ntViewChild.nativeElement,".p-monthpicker
.p-monthpicker-month:not(.p-disabled)"),s=R.findSingle(this.contentViewChild.nativeElement,".p-monthpicker
.p-monthpicker-month.p-highlight");n.forEach(r=>r.tabIndex=-1),e=s||n[0],0===n.length&&R.find(this.contentViewChild.nativeElement,'.p-monthpicker
.p-monthpicker-month.p-disabled[tabindex =
"0"]').forEach(o=>o.tabIndex=-1)}else
if("year"===this.currentView){let
n=R.find(this.contentViewChild.nativeElement,".p-yearpicker
.p-yearpicker-year:not(.p-disabled)"),s=R.findSingle(this.contentViewChild.nativeElement,".p-yearpicker
.p-yearpicker-year.p-highlight");n.forEach(r=>r.tabIndex=-1),e=s||n[0],0===n.length&&R.find(this.contentViewChild.nativeElement,'.p-yearpicker
.p-yearpicker-year.p-disabled[tabindex =
"0"]').forEach(o=>o.tabIndex=-1)}else
if(e=R.findSingle(this.contentViewChild.nativeElement,"span.p-highlight"),!e){let
n=R.findSingle(this.contentViewChild.nativeElement,"td.p-datepicker-today
span:not(.p-disabled):not(.p-ink)");e=n||R.fi
ndSingle(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
n=R.getFocusableElements(this.contentViewChild.nativeElement);if(n&&n.length>0)if(n[0].ownerDocument.activeElement){let
s=n.indexOf(n[0].ownerDocument.activeElement);if(e.shiftKey)if(-1==s||0===s)if(this.focusTrap)n[n.length-1].focus();else{if(-1===s)return
this.hideOverlay();if(0===s)return}else n[s-1].focus();else
if(-1==s||s===n.length-1){if(!this.focusTrap&&-1!=s)return
this.hideOverlay();n[0].focus()}else n[s+1].focus()}else
n[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,n,s,r){let
o=this.value;const
u=this.convertTo24Hour(e,r);this.isRangeSelection()&&(o=this.value[1]||this.value[0]),this.isMultipleSelection()&&(o=this.value[this.value.length-1]);const
h=o?o.toDateString():null;return!(this.minDate&&h&&this.minDate.toDateString()===h&&(this.minDate.getHours()>u||this.minDate.getHours()===u&&(this.minDate.getMinutes()>n||this.minDate.getMinutes()===n&&this.minDate.getSeconds()>s))||this.maxDate&&h&&this.maxDate.toDateString()===h&&(this.maxDate.getHours()<u||this.maxDate.getHours()===u&&(this.maxDate.getMinutes()<n||this.maxDate.getMinutes()===n&&this.maxDate.getSeconds()<s)))}incrementHour(e){let
s=this.currentHour+this.stepHour,r=this.pm;"24"==this.hourFormat?s=s>=24?s-24:s:"12"==this.hourFormat&&(this.currentHour<12&&s>11&&(r=!this.pm),s=s>=13?s-12:s),this.validateTime(s,this.currentMinute,this.currentSecond,r)&&(this.currentHou
r=s,this.pm=r),e.preventDefault()}onTimePickerElementMouseDown(e,n,s){this.disabled||(this.repeat(e,null,n,s),e.preventDefault())}onTimePickerElementMouseUp(e){this.disabled||(this.clearTimePickerTimer(),this.updateTime())}onTimePickerElementMouseLeave(){!this.disabled&&this.timePickerTimer&&(this.clearTimePickerTimer(),this.updateTime())}repeat(e,n,s,r){let
o=n||500;switch(this.clearTimePickerTimer(),this.timePickerTimer=setTimeout(()=>{this.repeat(e,100,s,r),this.cd.markForCheck()},o),s){case
0:1===r?this.incrementHour(e):this.decrementHour(e);break;case
1:1===r?this.incrementMinute(e):this.decrementMinute(e);break;case
2:1===r?this.incrementSecond(e):this.decrementSecond(e)}this.updateInputfield()}clearTimePickerTimer(){this.timePickerTimer&&(clearTimeout(this.timePickerTimer),this.timePickerTimer=null)}decrementHour(e){let
n=this.currentHour-this.stepHour,s=this.pm;"24"==this.hourFormat?n=n<0?24+n:n:"12"==this.hourFormat&&(12===this.currentHour&&(s=!this.pm),n=n<=0?12+n:n),this.
validateTime(n,this.currentMinute,this.currentSecond,s)&&(this.currentHour=n,this.pm=s),e.preventDefault()}incrementMinute(e){let
n=this.currentMinute+this.stepMinute;n=n>59?n-60:n,this.validateTime(this.currentHour,n,this.currentSecond,this.pm)&&(this.currentMinute=n),e.preventDefault()}decrementMinute(e){let
n=this.currentMinute-this.stepMinute;n=n<0?60+n:n,this.validateTime(this.currentHour,n,this.currentSecond,this.pm)&&(this.currentMinute=n),e.preventDefault()}incrementSecond(e){let
n=this.currentSecond+this.stepSecond;n=n>59?n-60:n,this.validateTime(this.currentHour,this.currentMinute,n,this.pm)&&(this.currentSecond=n),e.preventDefault()}decrementSecond(e){let
n=this.currentSecond-this.stepSecond;n=n<0?60+n:n,this.validateTime(this.currentHour,this.currentMinute,n,this.pm)&&(this.currentSecond=n),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
n=!this.pm;this.validateTime(this.currentHour,this.currentMinute,this.currentSecond,n)&&(this.pm=n,this.updateTime()),e.preventDefault()}onUserInput(e){if(!this.isKeydown)return;this.isKeydown=!1;let
n=e.target.value;try{let
s=this.parseValueFromString(n);this.isValidSelection(s)&&(this.updateModel(s),this.updateUI())}catch(s){this.updateModel(this.keepInvalid?n:null)}this.filled=null!=n&&n.length,this.onInput.emit(e)}isValidSelection(e){let
n=!0;return
this.isSingleSelection()?this.isSelectable(e.getDate(),e.getMonth(),e.getFullYear(),!1)||(n=!1):e.eve
ry(s=>this.isSelectable(s.getDate(),s.getMonth(),s.getFullYear(),!1))&&this.isRangeSelection()&&(n=e.length>1&&e[1]>e[0]),n}parseValueFromString(e){if(!e||0===e.trim().length)return
null;let n;if(this.isSingleSelection())n=this.parseDateTime(e);else
if(this.isMultipleSelection()){let s=e.split(this.multipleSeparator);n=[];for(let r of
s)n.push(this.parseDateTime(r.trim()))}else if(this.isRangeSelection()){let
s=e.split(" "+this.rangeSeparator+" ");n=[];for(let
r=0;r<s.length;r++)n[r]=this.parseDateTime(s[r].trim())}return n}parseDateTime(e){let
n,s=e.split(" ");if(this.timeOnly)n=new
Date,this.populateTime(n,s[0],s[1]);else{const
r=this.getDateFormat();if(this.showTime){let
o="12"==this.hourFormat?s.pop():null,u=s.pop();n=this.parseDate(s.join("
"),r),this.populateTime(n,u,o)}else n=this.parseDate(e,r)}return
n}populateTime(e,n,s){if("12"==this.hourFormat&&!s)throw"Invalid
Time";this.pm="PM"===s||"pm"===s;let
r=this.parseTime(n);e.setHours(r.hour),e.setMinutes(r.minute),e.setSeconds
(r.second)}isValidDate(e){return e instanceof
Date&&Z.isNotEmpty(e)}updateUI(){let
e=this.value;Array.isArray(e)&&(e=e[0]);let
n=this.defaultDate&&this.isValidDate(this.defaultDate)&&!this.value?this.defaultDate:e&&this.isValidDate(e)?e:new
Date;this.currentMonth=n.getMonth(),this.currentYear=n.getFullYear(),this.createMonths(this.currentMonth,this.currentYear),(this.showTime||this.timeOnly)&&(this.setCurrentHourPM(n.getHours()),this.currentMinute=n.getMinutes(),this.currentSecond=n.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.over
lay.setAttribute(this.attributeSelector,""),this.appendOverlay(),this.updateFocus(),this.autoZIndex&&(this.touchUI?dt.set("modal",this.overlay,this.baseZIndex||this.config.zIndex.modal):dt.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&&dt.clear(e.element)}}appendOverlay(){this.appendTo&&("body"===this.appendTo?document.body.appendChild(this.overlay):R.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=R.getOuterWidth(t
his.overlay)+"px",this.overlay.style.minWidth=R.getOuterWidth(this.inputfieldViewChild.nativeElement)+"px"):this.overlay.style.width=R.getOuterWidth(this.inputfieldViewChild.nativeElement)+"px",R.absolutePosition(this.overlay,this.inputfieldViewChild.nativeElement)):R.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),R.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",s=>{this.disableModality()}),document.body.appendChild(this.mask),R.addClass(document.body,"p-overflow-hidden"))}disableModality(){this.mask&&(R.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 n,e=document.body.children;for(let
s=0;s<e.length;s++)if(R.hasClass(e[s],"p-datepicker-mask-scrollblocker")){n=!0;break}n||R.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){if(this.value=e,this.value&&"string"==typeof
this.value)try{this.value=this.parseValueFromString(this.value)}catch(n){this.keepInvalid&&(this.value=e)}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||th
is.getTranslation("dateFormat")}getFirstDateOfWeek(){return
this._firstDayOfWeek||this.getTranslation(Ft.FIRST_DAY_OF_WEEK)}formatDate(e,n){if(!e)return"";let
s;const r=y=>{const w=s+1<n.length&&n.charAt(s+1)===y;return
w&&s++,w},o=(y,w,M)=>{let
E=""+w;if(r(y))for(;E.length<M;)E="0"+E;return
E},u=(y,w,M,E)=>r(y)?E[w]:M[w];let
h="",b=!1;if(e)for(s=0;s<n.length;s++)if(b)"'"!==n.charAt(s)||r("'")?h+=n.charAt(s):b=!1;else
switch(n.charAt(s)){case"d":h+=o("d",e.getDate(),2);break;case"D":h+=u("D",e.getDay(),this.getTranslation(Ft.DAY_NAMES_SHORT),this.getTranslation(Ft.DAY_NAMES));break;case"o":h+=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":h+=o("m",e.getMonth()+1,2);break;case"M":h+=u("M",e.getMonth(),this.getTranslation(Ft.MONTH_NAMES_SHORT),this.getTranslation(Ft.MONTH_NAMES));break;case"y":h+=r("y")?e.getFullYear():(e.getFullYear()%100<10?"0":"")+e.getFullYear()%100;break;case"@":h+=e.
getTime();break;case"!":h+=1e4*e.getTime()+this.ticksTo1970;break;case"'":r("'")?h+="'":b=!0;break;default:h+=n.charAt(s)}return
h}formatTime(e){if(!e)return"";let
n="",s=e.getHours(),r=e.getMinutes(),o=e.getSeconds();return"12"==this.hourFormat&&s>11&&12!=s&&(s-=12),n+="12"==this.hourFormat&&0===s?12:s<10?"0"+s:s,n+=":",n+=r<10?"0"+r:r,this.showSeconds&&(n+=":",n+=o<10?"0"+o:o),"12"==this.hourFormat&&(n+=e.getHours()>11?"
PM":" AM"),n}parseTime(e){let
n=e.split(":");if(n.length!==(this.showSeconds?3:2))throw"Invalid
time";let
r=parseInt(n[0]),o=parseInt(n[1]),u=this.showSeconds?parseInt(n[2]):null;if(isNaN(r)||isNaN(o)||r>23||o>59||"12"==this.hourFormat&&r>12||this.showSeconds&&(isNaN(u)||u>59))throw"Invalid
time";return"12"==this.hourFormat&&(12!==r&&this.pm?r+=12:!this.pm&&12===r&&(r-=12)),{hour:r,minute:o,second:u}}parseDate(e,n){if(null==n||null==e)throw"Invalid
arguments";if(""===(e="object"==typeof
e?e.toString():e+""))return null;let s,r,o,L,u=0,h="string"!=typeof
this.short
YearCutoff?this.shortYearCutoff:(new
Date).getFullYear()%100+parseInt(this.shortYearCutoff,10),b=-1,y=-1,w=-1,M=-1,E=!1,O=J=>{let
se=s+1<n.length&&n.charAt(s+1)===J;return se&&s++,se},N=J=>{let
se=O(J),ke="@"===J?14:"!"===J?20:"y"===J&&se?4:"o"===J?3:2,Ct=new
RegExp("^\\d{"+("y"===J?ke:1)+","+ke+"}"),Ut=e.substring(u).match(Ct);if(!Ut)throw"Missing
number at position "+u;return
u+=Ut[0].length,parseInt(Ut[0],10)},G=(J,se,ke)=>{let mt=-1,Ct=O(J)?ke:se,Ut=[];for(let
At=0;At<Ct.length;At++)Ut.push([At,Ct[At]]);Ut.sort((At,hn)=>-(At[1].length-hn[1].length));for(let
At=0;At<Ut.length;At++){let
hn=Ut[At][1];if(e.substr(u,hn.length).toLowerCase()===hn.toLowerCase()){mt=Ut[At][0],u+=hn.length;break}}if(-1!==mt)return
mt+1;throw"Unknown name at position
"+u},P=()=>{if(e.charAt(u)!==n.charAt(s))throw"Unexpected literal at position
"+u;u++};for("month"===this.view&&(w=1),s=0;s<n.length;s++)if(E)"'"!==n.charAt(s)||O("'")?P():E=!1;else
switch(n.charAt(s)){case"d":w=N("d");break;case"D":G("D",thi
s.getTranslation(Ft.DAY_NAMES_SHORT),this.getTranslation(Ft.DAY_NAMES));break;case"o":M=N("o");break;case"m":y=N("m");break;case"M":y=G("M",this.getTranslation(Ft.MONTH_NAMES_SHORT),this.getTranslation(Ft.MONTH_NAMES));break;case"y":b=N("y");break;case"@":L=new
Date(N("@")),b=L.getFullYear(),y=L.getMonth()+1,w=L.getDate();break;case"!":L=new
Date((N("!")-this.ticksTo1970)/1e4),b=L.getFullYear(),y=L.getMonth()+1,w=L.getDate();break;case"'":O("'")?P():E=!0;break;default:P()}if(u<e.length&&(o=e.substr(u),!/^\s+/.test(o)))throw"Extra/unparsed
characters found in date: "+o;if(-1===b?b=(new
Date).getFullYear():b<100&&(b+=(new Date).getFullYear()-(new
Date).getFullYear()%100+(b<=h?0:-100)),M>-1)for(y=1,w=M;r=this.getDaysCountInMonth(b,y-1),!(w<=r);)y++,w-=r;if(L=this.daylightSavingAdjust(new
Date(b,y-1,w)),L.getFullYear()!==b||L.getMonth()+1!==y||L.getDate()!==w)throw"Invalid
date";return L}daylightSavingAdjust(e){return
e?(e.setHours(e.getHours()>12?e.getHours()+2:0),e):null}updateFilledS
tate(){this.filled=this.inputFieldValue&&""!=this.inputFieldValue}onTodayButtonClick(e){let
n=new
Date,s={day:n.getDate(),month:n.getMonth(),year:n.getFullYear(),otherMonth:n.getMonth()!==this.currentMonth||n.getFullYear()!==this.currentYear,today:!0,selectable:!0};this.onDateSelect(e,s),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
n=[...this.responsiveOptions].filter(s=>!(!s.breakpoint||!s.numMonths)).sort((s,r)=>-1*s.breakpoint.localeCompare(r.breakpoint,void
0,{numeric:!0}));for(let s=0;s<n.length;s++){let{breakpoint:r,numMonths:o}=n[s],u=`\n
.p-datepicker[${this.at
tributeSelector}] .p-datepicker-group:nth-child(${o}) .p-datepicker-next {\n
display: inline-flex !important;\n }\n
`;for(let h=o;h<this.numberOfMonths;h++)u+=`\n
.p-datepicker[${this.attributeSelector}] .p-datepicker-group:nth-child(${h+1}) {\n
display: none !important;\n }\n
`;e+=`\n @media screen and (max-width: ${r}) {\n
${u}\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",n=>{this.
isOutsideClicked(n)&&this.overlayVisible&&this.zone.run(()=>{this.hideOverlay(),this.onClickOutside.emit(n),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
Qs(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
R.hasClass(e.target,"p-datepicker-prev")||R.hasClass(e.target,"p-datepicker-prev-icon")||R.hasClass(e.target,"p-datepicker-next")||R.hasClass(e.target,"p-datepicker-next-icon")}onWindowResize(){this.overlayVisible&&!R.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&&dt.clear(this.overlay),this.destroyResponsiveStyleElement(),this.clearTimePickerTimer(),this.restoreOverlayAppend(),this.onOverlayHide()}}return
t.\u0275fac=function(e){return
new(e||t)(D(De),D(gn),D(rt),D(nt),D(zn),D(Ks))},t.\u0275cmp=z({type:t,selecto
rs:[["p-calendar"]],contentQueries:function(e,n,s){if(1&e&&st(s,ne,4),2&e){let
r;V(r=B())&&(n.templates=r)}},viewQuery:function(e,n){if(1&e&&(W(pN,5),W(hN,5),W(mN,5)),2&e){let
s;V(s=B())&&(n.containerViewChild=s.first),V(s=B())&&(n.inputfieldViewChild=s.first),V(s=B())&&(n.content=s.first)}},hostAttrs:[1,"p-element","p-inputwrapper"],hostVars:6,hostBindings:function(e,n){2&e&&si("p-inputwrapper-filled",n.filled)("p-inputwrapper-focus",n.focus)("p-calendar-clearable",n.showClear&&!n.disabled)},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:"readonly
Input",shortYearCutoff:"shortYearCutoff",monthNavigator:"monthNavigator",yearNavigator:"yearNavigator",hourFormat:"hourFormat",timeOnly:"timeOnly",stepHour:"stepHour",stepMinute:"stepMinute",stepSecond:"stepSecond",showSeconds:"showSeconds",required:"required",showOnFocus:"showOnFocus",showWeek:"showWeek",showClear:"showClear",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",minDate:"minDate",maxDate:"maxDate",disabledDates:"disabledDates",disabl
edDays:"disabledDays",yearRange:"yearRange",showTime:"showTime",responsiveOptions:"responsiveOptions",numberOfMonths:"numberOfMonths",firstDayOfWeek:"firstDayOfWeek",locale:"locale"},outputs:{onFocus:"onFocus",onBlur:"onBlur",onClose:"onClose",onSelect:"onSelect",onClear:"onClear",onInput:"onInput",onTodayClick:"onTodayClick",onClearClick:"onClearClick",onMonthChange:"onMonthChange",onYearChange:"onYearChange",onClickOutside:"onClickOutside",onShow:"onShow"},features:[Pe([r5])],ngContentSelectors:s5,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",""],["class","p-calendar-clear-icon
pi
pi-times",3,"click",4,"ngIf"],["type","button","pButton","","pRipple","","class","p-datepicker-trigger","tabindex","0",3,"icon","disabled","click",4,"ngIf"],[1,"p-calenda
r-clear-icon","pi","pi-times",3,"click"],["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-chevr
on-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"],["pR
ipple","",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,n){1&e&&(Sn(t5),l(0,"span",0,1),_(2,_N,4,17,"ng-template",2),_(3,e5,9,28,"div",3),c()),2&e&&(me(n.styleClass),p("ngC
lass",qn(6,n5,n.showIcon,n.timeOnly,n.disabled,n.focus))("ngStyle",n.style),a(2),p("ngIf",!n.inline),a(1),p("ngIf",n.inline||n.overlayVisible))},directives:[Le,lt,Q,On,bt,Rt,at],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;p
osition: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;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:translat
e(-50%,-50%)}.p-yearpicker-year{width:50%;display:inline-flex;align-items:center;justify-content:center;cursor:pointer;overflow:hidden;position:relative}.p-calendar-clear-icon{position:absolute;top:50%;margin-top:-.5rem;cursor:pointer}.p-calendar-clearable{position:relative}\n"],encapsulation:2,data:{animation:[wi("overlayAnimation",[ws("visibleTouchUI",it({transform:"translate(-50%,-50%)",opacity:1})),Lt("void
=>
visible",[it({opacity:0,transform:"scaleY(0.8)"}),kt("{{showTransitionParams}}",it({opacity:1,transform:"*"}))]),Lt("visible
=> void",[kt("{{hideTransitionParams}}",it({opacity:0}))]),Lt("void
=> visibleTouchUI",[it({opacity:0,transform:"translate3d(-50%, -40%, 0)
scale(0.9)"}),kt("{{showTransitionParams}}")]),Lt("visibleTouchUI
=>
void",[kt("{{hideTransitionParams}}",it({opacity:0,transform:"translate3d(-50%,
-40%, 0) scale(0.9)"}))])])]},changeDetection:0}),t})(),cT=(()=>{class t{}return
t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=he({type:t}),t.\u0275inj=ue({i
mports:[[Fe,gl,Nt,pn],gl,Nt]}),t})();function o5(t,i){1&t&&Y(0)}function
a5(t,i){if(1&t&&(l(0,"div",8),St(1,1),_(2,o5,1,0,"ng-container",6),c()),2&t){const
e=d();a(2),p("ngTemplateOutlet",e.headerTemplate)}}function
l5(t,i){1&t&&Y(0)}function
c5(t,i){if(1&t&&(l(0,"div",9),g(1),_(2,l5,1,0,"ng-container",6),c()),2&t){const
e=d();a(1),T(" ",e.header,"
"),a(1),p("ngTemplateOutlet",e.titleTemplate)}}function
u5(t,i){1&t&&Y(0)}function
d5(t,i){if(1&t&&(l(0,"div",10),g(1),_(2,u5,1,0,"ng-container",6),c()),2&t){const
e=d();a(1),T(" ",e.subheader,"
"),a(1),p("ngTemplateOutlet",e.subtitleTemplate)}}function
p5(t,i){1&t&&Y(0)}function h5(t,i){1&t&&Y(0)}function
m5(t,i){if(1&t&&(l(0,"div",11),St(1,2),_(2,h5,1,0,"ng-container",6),c()),2&t){const
e=d();a(2),p("ngTemplateOutlet",e.footerTemplate)}}const
f5=["*",[["p-header"]],[["p-footer"]]],g5=["*","p-header","p-footer"];let
Ne=(()=>{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.template;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)(D(De))},t.\u0275cmp=z({type:t,selectors:[["p-card"]],contentQueries:function(e,n,s){if(1&e&&(st(s,Oo,5),st(s,fl,5),st(s,ne,4)),2&e){let
r;V(r=B())&&(n.headerFacet=r.first),V(r=B())&&(n.footerFacet=r.first),V(r=B())&&(n.templates=r)}},hostAttrs:[1,"p-element"],inputs:{header:"header",subheader:"subheader",style:"style",styleClass:"styleClass"},ngContentSelectors:g5,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:function(e,n){1&e&&(Sn(f5),l(0,"div",0),_(1,a5,3,1,"div",1),l(2,"div",2),_(3,c5,3,2,"div",3),_(4,d5,3,2,"div",4),l(5,"div",5),St(6),_(7,p5,1,0,"ng-container",6),c(),_(8,m5,3,1,"div",7),c()()),2&e&&(me(n.styleClass),p("ngClass","p-card
p-component")("ngStyle",n.style),a(1),p("ngIf",n.headerFacet||n.headerTemplate),a(2),p("ngIf",n.header||n.titleTemplate),a(1),p("ngIf",n.subheader||n.subtitleTemplate),a(3),p("ngTemplateOutlet",n.contentTemplate),a(1),p("ngIf",n.footerFacet||n.footerTemplate))},directives:[Le,lt,Q,Rt],styles:[".p-card-header
img{width:100%}\n"],encapsulation:2,changeDetection:0}),t})(),_5=(()=>{class
t{}return t.\u0275fac=function(e){return
new(e||t)},t.\u0275mod=he({type:t}),t.\u0275inj=ue({imports:[[Fe],Nt]}),t})();const
b5=["cb"],v5=function(t,i,e){return{"p-checkbox-label":!0,"p-checkbox-label-active":t,"p-disabled":i,"p-checkbox-label-focus":e}};function
C5(t,i){if(1&t){const e=I();l(0,"label",7)
,C("click",function(s){v(e);const r=d(),o=F(3);return
r.onClick(s,o,!0)}),g(1),c()}if(2&t){const
e=d();me(e.labelStyleClass),p("ngClass",Qt(5,v5,e.checked(),e.disabled,e.focused)),ie("for",e.inputId),a(1),S(e.label)}}const
y5=function(t,i,e){return{"p-checkbox
p-component":!0,"p-checkbox-checked":t,"p-checkbox-disabled":i,"p-checkbox-focused":e}},w5=function(t,i,e){return{"p-highlight":t,"p-disabled":i,"p-focus":e}},T5={provide:dn,useExisting:je(()=>sn),multi:!0};let
sn=(()=>{class t{constructor(e){this.cd=e,this.checkboxIcon="pi
pi-check",this.trueValue=!0,this.falseValue=!1,this.onChange=new
H,this.onModelChange=()=>{},this.onModelTouched=()=>{},this.focused=!1}onClick(e,n,s){e.preventDefault(),!this.disabled&&!this.readonly&&(this.updateModel(e),s&&n.focus())}updateModel(e){let
n;this.binary?(n=this.checked()?this.falseValue:this.trueValue,this.model=n,this.onModelChange(n)):(n=this.checked()?this.model.filter(s=>!Z.equals(s,this.value)):this.model?[...this.model,this.value]:[thi
s.value],this.onModelChange(n),this.model=n,this.formControl&&this.formControl.setValue(n)),this.onChange.emit({checked:n,originalEvent:e})}handleChange(e){this.readonly||this.updateModel(e)}onFocus(){this.focused=!0}onBlur(){this.focused=!1,this.onModelTouched()}focus(){this.inputViewChild.nativeElement.focus()}writeValue(e){this.model=e,this.cd.markForCheck()}registerOnChange(e){this.onModelChange=e}registerOnTouched(e){this.onModelTouched=e}setDisabledState(e){this.disabled=e,this.cd.markForCheck()}checked(){return
this.binary?this.model===this.trueValue:Z.contains(this.value,this.model)}}return
t.\u0275fac=function(e){return
new(e||t)(D(rt))},t.\u0275cmp=z({type:t,selectors:[["p-checkbox"]],viewQuery:function(e,n){if(1&e&&W(b5,5),2&e){let
s;V(s=B())&&(n.inputViewChild=s.first)}},hostAttrs:[1,"p-element"],inputs:{value:"value",name:"name",disabled:"disabled",binary:"binary",label:"label",ariaLabelledBy:"ariaLabelledBy",ariaLabel:"ariaLabel",tabindex:"tabindex",inputId:"inputId",s
tyle:"style",styleClass:"styleClass",labelStyleClass:"labelStyleClass",formControl:"formControl",checkboxIcon:"checkboxIcon",readonly:"readonly",required:"required",trueValue:"trueValue",falseValue:"falseValue"},outputs:{onChange:"onChange"},features:[Pe([T5])],decls:7,vars:26,consts:[[3,"ngStyle","ngClass"],[1,"p-hidden-accessible"],["type","checkbox",3,"readonly","value","checked","disabled","focus","blur","change"],["cb",""],[1,"p-checkbox-box",3,"ngClass","click"],[1,"p-checkbox-icon",3,"ngClass"],[3,"class","ngClass","click",4,"ngIf"],[3,"ngClass","click"]],template:function(e,n){if(1&e){const
s=I();l(0,"div",0)(1,"div",1)(2,"input",2,3),C("focus",function(){return
n.onFocus()})("blur",function(){return
n.onBlur()})("change",function(o){return
n.handleChange(o)}),c()(),l(4,"div",4),C("click",function(o){v(s);const
u=F(3);return
n.onClick(o,u,!0)}),k(5,"span",5),c()(),_(6,C5,2,9,"label",6)}2&e&&(me(n.styleClass),p("ngStyle",n.style)("ngClass",Qt(18,y5,n.checked(),n.disabled,n.fo
cused)),a(2),p("readonly",n.readonly)("value",n.value)("checked",n.checked())("disabled",n.disabled),ie("id",n.inputId)("name",n.name)("tabindex",n.tabindex)("aria-labelledby",n.ariaLabelledBy)("aria-label",n.ariaLabel)("aria-checked",n.checked())("required",n.required),a(2),p("ngClass",Qt(22,w5,n.checked(),n.disabled,n.focused)),a(1),p("ngClass",n.checked()?n.checkboxIcon:null),a(1),p("ngIf",n.label))},directives:[lt,Le,Q],styles:[".p-checkbox{display:inline-flex;cursor:pointer;-webkit-user-select:none;user-select:none;vertical-align:bottom;position:relative}.p-checkbox-disabled{cursor:default!important;pointer-events:none}.p-checkbox-box{display:flex;justify-content:center;align-items:center}p-checkbox{display:inline-flex;vertical-align:bottom;align-items:center}.p-checkbox-label{line-height:1}\n"],encapsulation:2,changeDetection:0}),t})(),S5=(()=>{class
t{}return t.\u0275fac=function(e){return
new(e||t)},t.\u0275mod=he({type:t}),t.\u0275inj=ue({imports:[[Fe]]}),t})();function Ku(
t,i=0){return function
D5(t){return!isNaN(parseFloat(t))&&!isNaN(Number(t))}(t)?Number(t):i}function
Uf(t,i,e,n){return Is(e)&&(n=e,e=void
0),n?Uf(t,i,e).pipe(et(s=>Nr(s)?n(...s):n(s))):new Je(s=>{uT(t,i,function
r(o){s.next(arguments.length>1?Array.prototype.slice.call(arguments):o)},s,e)})}function
uT(t,i,e,n,s){let r;if(function E5(t){return t&&"function"==typeof
t.addEventListener&&"function"==typeof t.removeEventListener}(t)){const
o=t;t.addEventListener(i,e,s),r=()=>o.removeEventListener(i,e,s)}else if(function
I5(t){return t&&"function"==typeof
t.on&&"function"==typeof t.off}(t)){const
o=t;t.on(i,e),r=()=>o.off(i,e)}else if(function k5(t){return
t&&"function"==typeof
t.addListener&&"function"==typeof t.removeListener}(t)){const
o=t;t.addListener(i,e),r=()=>o.removeListener(i,e)}else{if(!t||!t.length)throw new
TypeError("Invalid event target");for(let
o=0,u=t.length;o<u;o++)uT(t[o],i,e,n,s)}n.add(r)}const O5=new class L5 extends
Hi{flush(i){this.active=!0,this.scheduled=void 0
;const{actions:e}=this;let
n,s=-1,r=e.length;i=i||e.shift();do{if(n=i.execute(i.state,i.delay))break}while(++s<r&&(i=e.shift()));if(this.active=!1,n){for(;++s<r&&(i=e.shift());)i.unsubscribe();throw
n}}}(class R5 extends
uu{constructor(i,e){super(i,e),this.scheduler=i,this.work=e}requestAsyncId(i,e,n=0){return
null!==n&&n>0?super.requestAsyncId(i,e,n):(i.actions.push(this),i.scheduled||(i.scheduled=requestAnimationFrame(()=>i.flush(null))))}recycleAsyncId(i,e,n=0){if(null!==n&&n>0||null===n&&this.delay>0)return
super.recycleAsyncId(i,e,n);0===i.actions.length&&(cancelAnimationFrame(e),i.scheduled=void
0)}});let A5=1;const P5=Promise.resolve(),Qu={};function dT(t){return t in
Qu&&(delete Qu[t],!0)}const pT={setImmediate(t){const i=A5++;return
Qu[i]=!0,P5.then(()=>dT(i)&&t()),i},clearImmediate(t){dT(t)}},V5=new class N5
extends Hi{flush(i){this.active=!0,this.scheduled=void 0;const{actions:e}=this;let
n,s=-1,r=e.length;i=i||e.shift();do{if(n=i.execute(i.state,i.delay))break}while(++s<
r&&(i=e.shift()));if(this.active=!1,n){for(;++s<r&&(i=e.shift());)i.unsubscribe();throw
n}}}(class F5 extends
uu{constructor(i,e){super(i,e),this.scheduler=i,this.work=e}requestAsyncId(i,e,n=0){return
null!==n&&n>0?super.requestAsyncId(i,e,n):(i.actions.push(this),i.scheduled||(i.scheduled=pT.setImmediate(i.flush.bind(i,null))))}recycleAsyncId(i,e,n=0){if(null!==n&&n>0||null===n&&this.delay>0)return
super.recycleAsyncId(i,e,n);0===i.actions.length&&(pT.clearImmediate(e),i.scheduled=void
0)}});class H5{constructor(i,e){this.compare=i,this.keySelector=e}call(i,e){return
e.subscribe(new q5(i,this.compare,this.keySelector))}}class q5 extends
yt{constructor(i,e,n){super(i),this.keySelector=n,this.hasKey=!1,"function"==typeof
e&&(this.compare=e)}compare(i,e){return i===e}_next(i){let
e;try{const{keySelector:s}=this;e=s?s(i):i}catch(s){return this.destination.error(s)}let
n=!1;if(this.hasKey)try{const{compare:s}=this;n=s(this.key,e)}catch(s){return
this.destination.error(s)}else this.hasKe
y=!0;n||(this.key=e,this.destination.next(i))}}const zf=new Hi(uu);class
U5{constructor(i){this.durationSelector=i}call(i,e){return e.subscribe(new
z5(i,this.durationSelector))}}class z5 extends
Zo{constructor(i,e){super(i),this.durationSelector=e,this.hasValue=!1}_next(i){if(this.value=i,this.hasValue=!0,!this.throttled){let
e;try{const{durationSelector:s}=this;e=s(i)}catch(s){return
this.destination.error(s)}const n=Xo(e,new
Yo(this));!n||n.closed?this.clearThrottle():this.add(this.throttled=n)}}clearThrottle(){const{value:i,hasValue:e,throttled:n}=this;n&&(this.remove(n),this.throttled=void
0,n.unsubscribe()),e&&(this.value=void
0,this.hasValue=!1,this.destination.next(i))}notifyNext(){this.clearThrottle()}notifyComplete(){this.clearThrottle()}}function
hT(t){return!Nr(t)&&t-parseFloat(t)+1>=0}function
$5(t){const{index:i,period:e,subscriber:n}=t;if(n.next(i),!n.closed){if(-1===e)return
n.complete();t.index=i+1,this.schedule(t,e)}}function jf(t,i=zf){return function
G5(t){return
function(e){return e.lift(new U5(t))}}(()=>function j5(t=0,i,e){let n=-1;return
hT(i)?n=Number(i)<1?1:Number(i):Vr(i)&&(e=i),Vr(e)||(e=zf),new Je(s=>{const
r=hT(t)?t:+t-e.now();return
e.schedule($5,r,{index:0,period:n,subscriber:s})})}(t,i))}function $f(t){return
i=>i.lift(new W5(t))}class W5{constructor(i){this.notifier=i}call(i,e){const n=new
K5(i),s=Xo(this.notifier,new Yo(n));return
s&&!n.seenValue?(n.add(s),e.subscribe(n)):n}}class K5 extends
Zo{constructor(i){super(i),this.seenValue=!1}notifyNext(){this.seenValue=!0,this.complete()}notifyComplete(){}}function
Ju(...t){const i=t[t.length-1];return Vr(i)?(t.pop(),e=>el(t,e,i)):e=>el(t,e)}class
J5{call(i,e){return e.subscribe(new Y5(i))}}class Y5 extends
yt{constructor(i){super(i),this.hasPrev=!1}_next(i){let
e;this.hasPrev?e=[this.prev,i]:this.hasPrev=!0,this.prev=i,e&&this.destination.next(e)}}let
Wf;try{Wf="undefined"!=typeof
Intl&&Intl.v8BreakIterator}catch(t){Wf=!1}let Yu,Dr,mT=(()=>{class
t{constructor(e){this._platformId=e
,this.isBrowser=this._platformId?function E4(t){return
t===ky}(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),this.BLINK=this.isBrowser&&!(!window.chrome&&!Wf)&&"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)(K(qc))},t.\u0275prov=X({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();function
bl(){if("object"!=typeof document||!document)return 0;if(null==Yu)
{const
t=document.createElement("div"),i=t.style;t.dir="rtl",i.width="1px",i.overflow="auto",i.visibility="hidden",i.pointerEvents="none",i.position="absolute";const
e=document.createElement("div"),n=e.style;n.width="2px",n.height="1px",t.appendChild(e),document.body.appendChild(t),Yu=0,0===t.scrollLeft&&(t.scrollLeft=1,Yu=0===t.scrollLeft?1:2),t.remove()}return
Yu}const tV=new be("cdk-dir-doc",{providedIn:"root",factory:function
nV(){return
O_(Xt)}}),iV=/^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)/i;let
gT=(()=>{class t{constructor(e){if(this.value="ltr",this.change=new
H,e){const s=e.documentElement?e.documentElement.dir:null;this.value=function sV(t){const
i=(null==t?void
0:t.toLowerCase())||"";return"auto"===i&&"undefined"!=typeof
navigator&&(null==navigator?void
0:navigator.language)?iV.test(navigator.language)?"rtl":"ltr":"rtl"===i?"rtl":"ltr"}((e.body?e.body.dir:null)||s||"ltr")}}ngOnDestroy(){this.change.c
omplete()}}return t.\u0275fac=function(e){return
new(e||t)(K(tV,8))},t.\u0275prov=X({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),_T=(()=>{class
t{}return t.\u0275fac=function(e){return
new(e||t)},t.\u0275mod=he({type:t}),t.\u0275inj=ue({}),t})();class aV extends class
rV{}{constructor(i){super(),this._data=i}connect(){return
is(this._data)?this._data:oe(this._data)}disconnect(){}}class
lV{constructor(){this.viewCacheSize=20,this._viewCache=[]}applyChanges(i,e,n,s,r){i.forEachOperation((o,u,h)=>{let
b,y;null==o.previousIndex?(b=this._insertView(()=>n(o,u,h),h,e,s(o)),y=b?1:0):null==h?(this._detachAndCacheView(u,e),y=3):(b=this._moveView(u,h,e,s(o)),y=2),r&&r({context:null==b?void
0:b.context,operation:y,record:o})})}detach(){for(const i of
this._viewCache)i.destroy();this._viewCache=[]}_insertView(i,e,n,s){const
r=this._insertViewFromCache(e,n);if(r)return void(r.context.$implicit=s);const
o=i();return n.createEmbeddedView(o.templateRef,o.context,o.index)}_detachAndCacheVie
w(i,e){const n=e.detach(i);this._maybeCacheView(n,e)}_moveView(i,e,n,s){const
r=n.get(i);return
n.move(r,e),r.context.$implicit=s,r}_maybeCacheView(i,e){if(this._viewCache.length<this.viewCacheSize)this._viewCache.push(i);else{const
n=e.indexOf(i);-1===n?i.destroy():e.remove(n)}}_insertViewFromCache(i,e){const
n=this._viewCache.pop();return n&&e.insert(n,i),n||null}}const bT=new
be("_ViewRepeater"),cV=["contentWrapper"],uV=["*"],vT=new
be("VIRTUAL_SCROLL_STRATEGY");class
dV{constructor(i,e,n){this._scrolledIndexChange=new
ct,this.scrolledIndexChange=this._scrolledIndexChange.pipe(function B5(t,i){return
e=>e.lift(new
H5(t,i))}()),this._viewport=null,this._itemSize=i,this._minBufferPx=e,this._maxBufferPx=n}attach(i){this._viewport=i,this._updateTotalContentSize(),this._updateRenderedRange()}detach(){this._scrolledIndexChange.complete(),this._viewport=null}updateItemAndBufferSize(i,e,n){this._itemSize=i,this._minBufferPx=e,this._maxBufferPx=n,this._updateTotalContentSize(),this._updat
eRenderedRange()}onContentScrolled(){this._updateRenderedRange()}onDataLengthChanged(){this._updateTotalContentSize(),this._updateRenderedRange()}onContentRendered(){}onRenderedOffsetChanged(){}scrollToIndex(i,e){this._viewport&&this._viewport.scrollToOffset(i*this._itemSize,e)}_updateTotalContentSize(){!this._viewport||this._viewport.setTotalContentSize(this._viewport.getDataLength()*this._itemSize)}_updateRenderedRange(){if(!this._viewport)return;const
i=this._viewport.getRenderedRange(),e={start:i.start,end:i.end},n=this._viewport.getViewportSize(),s=this._viewport.getDataLength();let
r=this._viewport.measureScrollOffset(),o=this._itemSize>0?r/this._itemSize:0;if(e.end>s){const
h=Math.ceil(n/this._itemSize),b=Math.max(0,Math.min(o,s-h));o!=b&&(o=b,r=b*this._itemSize,e.start=Math.floor(o)),e.end=Math.max(0,Math.min(s,e.start+h))}const
u=r-e.start*this._itemSize;if(u<this._minBufferPx&&0!=e.start){const
h=Math.ceil((this._maxBufferPx-u)/this._itemSize);e.start=Math.max(0,e.start-h)
,e.end=Math.min(s,Math.ceil(o+(n+this._minBufferPx)/this._itemSize))}else{const
h=e.end*this._itemSize-(r+n);if(h<this._minBufferPx&&e.end!=s){const
b=Math.ceil((this._maxBufferPx-h)/this._itemSize);b>0&&(e.end=Math.min(s,e.end+b),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
pV(t){return t._scrollStrategy}let Qf=(()=>{class
t{constructor(){this._itemSize=20,this._minBufferPx=100,this._maxBufferPx=200,this._scrollStrategy=new
dV(this.itemSize,this.minBufferPx,this.maxBufferPx)}get itemSize(){return
this._itemSize}set itemSize(e){this._itemSize=Ku(e)}get minBufferPx(){return
this._minBufferPx}set minBufferPx(e){this._minBufferPx=Ku(e)}get maxBufferPx(){return
this._maxBufferPx}set
maxBufferPx(e){this._maxBufferPx=Ku(e)}ngOnChanges(){this._scrollStrategy.updateItemAndBufferSize(this.itemSize,this.minBufferPx,t
his.maxBufferPx)}}return t.\u0275fac=function(e){return
new(e||t)},t.\u0275dir=le({type:t,selectors:[["cdk-virtual-scroll-viewport","itemSize",""]],inputs:{itemSize:"itemSize",minBufferPx:"minBufferPx",maxBufferPx:"maxBufferPx"},features:[Pe([{provide:vT,useFactory:pV,deps:[je(()=>t)]}]),fn]}),t})(),CT=(()=>{class
t{constructor(e,n,s){this._ngZone=e,this._platform=n,this._scrolled=new
ct,this._globalSubscription=null,this._scrolledCount=0,this.scrollContainers=new
Map,this._document=s}register(e){this.scrollContainers.has(e)||this.scrollContainers.set(e,e.elementScrolled().subscribe(()=>this._scrolled.next(e)))}deregister(e){const
n=this.scrollContainers.get(e);n&&(n.unsubscribe(),this.scrollContainers.delete(e))}scrolled(e=20){return
this._platform.isBrowser?new
Je(n=>{this._globalSubscription||this._addGlobalListener();const
s=e>0?this._scrolled.pipe(jf(e)).subscribe(n):this._scrolled.subscribe(n);return
this._scrolledCount++,()=>{s.unsubscribe(),this._scrolledCount--,this._scroll
edCount||this._removeGlobalListener()}}):oe()}ngOnDestroy(){this._removeGlobalListener(),this.scrollContainers.forEach((e,n)=>this.deregister(n)),this._scrolled.complete()}ancestorScrolled(e,n){const
s=this.getAncestorScrollContainers(e);return
this.scrolled(n).pipe(Us(r=>!r||s.indexOf(r)>-1))}getAncestorScrollContainers(e){const
n=[];return
this.scrollContainers.forEach((s,r)=>{this._scrollableContainsElement(r,e)&&n.push(r)}),n}_getWindow(){return
this._document.defaultView||window}_scrollableContainsElement(e,n){let s=function
M5(t){return t instanceof
De?t.nativeElement:t}(n),r=e.getElementRef().nativeElement;do{if(s==r)return!0}while(s=s.parentElement);return!1}_addGlobalListener(){this._globalSubscription=this._ngZone.runOutsideAngular(()=>Uf(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)(K(nt),K(mT),K(Xt,8))},t.\u0275prov=X({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),yT=(()=>{class
t{constructor(e,n,s,r){this.elementRef=e,this.scrollDispatcher=n,this.ngZone=s,this.dir=r,this._destroyed=new
ct,this._elementScrolled=new
Je(o=>this.ngZone.runOutsideAngular(()=>Uf(this.elementRef.nativeElement,"scroll").pipe($f(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
n=this.elementRef.nativeElement,s=this.dir&&"rtl"==this.dir.value;null==e.left&&(e.left=s?e.end:e.start),null==e.right&&(e.right=s?e.start:e.end),null!=e.bottom&&(e.top=n.scrollHeight-n.clientHeight-e.bottom),s&&0!=bl()?(null!=e.left&&(e.right=n.scrollWidth-n.clientWidth-e.left),2==bl()?e.left=e.right:1==bl()&&(e.left=e.right?-e.right:e.right)):null!=e.right&&(e.
left=n.scrollWidth-n.clientWidth-e.right),this._applyScrollToOptions(e)}_applyScrollToOptions(e){const
n=this.elementRef.nativeElement;!function X5(){if(null==Dr){if("object"!=typeof
document||!document||"function"!=typeof Element||!Element)return
Dr=!1,Dr;if("scrollBehavior"in document.documentElement.style)Dr=!0;else{const
t=Element.prototype.scrollTo;Dr=!!t&&!/\{\s*\[native
code\]\s*\}/.test(t.toString())}}return
Dr}()?(null!=e.top&&(n.scrollTop=e.top),null!=e.left&&(n.scrollLeft=e.left)):n.scrollTo(e)}measureScrollOffset(e){const
n="left",s="right",r=this.elementRef.nativeElement;if("top"==e)return
r.scrollTop;if("bottom"==e)return
r.scrollHeight-r.clientHeight-r.scrollTop;const
o=this.dir&&"rtl"==this.dir.value;return"start"==e?e=o?s:n:"end"==e&&(e=o?n:s),o&&2==bl()?e==n?r.scrollWidth-r.clientWidth-r.scrollLeft:r.scrollLeft:o&&1==bl()?e==n?r.scrollLeft+r.scrollWidth-r.clientWidth:-r.scrollLeft:e==n?r.scrollLeft:r.scrollWidth-r.clientWidth-r.scrollLeft}}return
t.\u0275fac=functi
on(e){return
new(e||t)(D(De),D(CT),D(nt),D(gT,8))},t.\u0275dir=le({type:t,selectors:[["","cdk-scrollable",""],["","cdkScrollable",""]]}),t})(),fV=(()=>{class
t{constructor(e,n,s){this._platform=e,this._change=new
ct,this._changeListener=r=>{this._change.next(r)},this._document=s,n.runOutsideAngular(()=>{if(e.isBrowser){const
r=this._getWindow();r.addEventListener("resize",this._changeListener),r.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:n,height
:s}=this.getViewportSize();return{top:e.top,left:e.left,bottom:e.top+s,right:e.left+n,height:s,width:n}}getViewportScrollPosition(){if(!this._platform.isBrowser)return{top:0,left:0};const
e=this._document,n=this._getWindow(),s=e.documentElement,r=s.getBoundingClientRect();return{top:-r.top||e.body.scrollTop||n.scrollY||s.scrollTop||0,left:-r.left||e.body.scrollLeft||n.scrollX||s.scrollLeft||0}}change(e=20){return
e>0?this._change.pipe(jf(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)(K(mT),K(nt),K(Xt,8))},t.\u0275prov=X({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();const
_V="undefined"!=typeof requestAnimationFrame?O5:V5;let Po=(()=>{class t
extends
yT{constructor(e,n,s,r,o,u,h){super(e,u,s,o),this.elementRef=e,this._changeDetectorRef=n,this._scrollSt
rategy=r,this._detachedSubject=new ct,this._renderedRangeSubject=new
ct,this._orientation="vertical",this._appendOnly=!1,this.scrolledIndexChange=new
Je(b=>this._scrollStrategy.scrolledIndexChange.subscribe(y=>Promise.resolve().then(()=>this.ngZone.run(()=>b.next(y))))),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=Et.EMPTY,this._viewportChanges=h.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
x5(t){return null!=t&&"false"!=`${t}`}(e)}ngOnInit()
{super.ngOnInit(),this.ngZone.runOutsideAngular(()=>Promise.resolve().then(()=>{this._measureViewportSize(),this._scrollStrategy.attach(this),this.elementScrolled().pipe(Ju(null),jf(0,_V)).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($f(this._detachedSubject)).subscribe(n=>{const
s=n.length;s!==this._dataLength&&(this._dataLength=s,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._c
alculateSpacerSize(),this._markChangeDetectionNeeded())}setRenderedRange(e){(function
gV(t,i){return
t.start==i.start&&t.end==i.end})(this._renderedRange,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,n="to-start"){const
r="horizontal"==this.orientation,o=r?"X":"Y";let
h=`translate${o}(${Number((r&&this.dir&&"rtl"==this.dir.value?-1:1)*e)}px)`;this._renderedContentOffset=e=this.appendOnly&&"to-start"===n?0:e,"to-end"===n&&(h+=`
translate${o}(-100%)`,this._renderedContentOffsetNeedsRewrite=!0),this._renderedContentTransform!=h&&(this._renderedContentTransform=h,this._markChangeDetectionNeeded(()=>{this._renderedContentOffsetNeedsRewrite?(this._renderedContentOffset-=this.measureRen
deredContentSize(),this._renderedContentOffsetNeedsRewrite=!1,this.setRenderedContentOffset(this._renderedContentOffset)):this._scrollStrategy.onRenderedOffsetChanged()}))}scrollToOffset(e,n="auto"){const
s={behavior:n};"horizontal"===this.orientation?s.start=e:s.top=e,this.scrollTo(s)}scrollToIndex(e,n="auto"){this._scrollStrategy.scrollToIndex(e,n)}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 n of
e)n()}_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)(D(De),D(rt),D(nt),D(vT,8),D(gT,8),D(CT),D(fV))},t.\u0275cmp=z({type:t,selectors:[["cdk-virtual-scroll-viewport"]],viewQuery:function(e,n){if(1&e&&W(cV,7),2&e){let
s;V(s=B())&&(n._contentWrapper=s.first)}},hostAttrs:[1,"cdk-virtual-scroll-viewport"],hostVars:4,hostBindings:function(e,n){2&e&&si("cdk-vi
rtual-scroll-orientation-horizontal","horizontal"===n.orientation)("cdk-virtual-scroll-orientation-vertical","horizontal"!==n.orientation)},inputs:{orientation:"orientation",appendOnly:"appendOnly"},outputs:{scrolledIndexChange:"scrolledIndexChange"},features:[Pe([{provide:yT,useExisting:t}]),ut],ngContentSelectors:uV,decls:4,vars:4,consts:[[1,"cdk-virtual-scroll-content-wrapper"],["contentWrapper",""],[1,"cdk-virtual-scroll-spacer"]],template:function(e,n){1&e&&(Sn(),l(0,"div",0,1),St(2),c(),k(3,"div",2)),2&e&&(a(3),_i("width",n._totalContentWidth)("height",n._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-wrappe
r{min-height:100%}.cdk-virtual-scroll-orientation-horizontal
.cdk-virtual-scroll-content-wrapper>dl:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-horizontal
.cdk-virtual-scroll-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-virtua
l-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-scroll-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
wT(t,i,e){if(!e.getBoundingClientRect)return 0;const
s=e.getBoundingClientRect();return"horizontal"===t?"start"===i?s.left:s.right:"start"===i?s.top:s.bottom}let
Jf=(()=>{class
t{constructor(e,n,s,r,o,u){this._viewContainerRef=e,this._template=n,this._differs=s,this._viewRepeater=r,this._viewport=o,this.viewChange=new
ct,this._dataSourceChanges=new
ct,this.dataStream=this._dataSourceChanges.pipe(Ju(null),function Q5(){return
t=>t.lift(new
J5)}(),qi(([h,b])=>this._changeDataSource(h,b)),Um(1)),this._differ=null,this._needsUpdate=!1,this._destroyed=new
ct,this.dataStream.subscribe(h=>{this._dat
a=h,this._onRenderedDataChange()}),this._viewport.renderedRangeStream.pipe($f(this._destroyed)).subscribe(h=>{this._renderedRange=h,this.viewChange.observers.length&&u.run(()=>this.viewChange.next(this._renderedRange)),this._onRenderedDataChange()}),this._viewport.attach(this)}get
cdkVirtualForOf(){return this._cdkVirtualForOf}set
cdkVirtualForOf(e){this._cdkVirtualForOf=e,function oV(t){return
t&&"function"==typeof
t.connect}(e)?this._dataSourceChanges.next(e):this._dataSourceChanges.next(new
aV(is(e)?e:Array.from(e||[])))}get cdkVirtualForTrackBy(){return
this._cdkVirtualForTrackBy}set
cdkVirtualForTrackBy(e){this._needsUpdate=!0,this._cdkVirtualForTrackBy=e?(n,s)=>e(n+(this._renderedRange?this._renderedRange.start:0),s):void
0}set cdkVirtualForTemplate(e){e&&(this._needsUpdate=!0,this._template=e)}get
cdkVirtualForTemplateCacheSize(){return this._viewRepeater.viewCacheSize}set
cdkVirtualForTemplateCacheSize(e){this._viewRepeater.viewCacheSize=Ku(e)}measureRangeSize(e,n){if(e.star
t>=e.end)return 0;const s=e.start-this._renderedRange.start,r=e.end-e.start;let
o,u;for(let h=0;h<r;h++){const
b=this._viewContainerRef.get(h+s);if(b&&b.rootNodes.length){o=u=b.rootNodes[0];break}}for(let
h=r-1;h>-1;h--){const
b=this._viewContainerRef.get(h+s);if(b&&b.rootNodes.length){u=b.rootNodes[b.rootNodes.length-1];break}}return
o&&u?wT(n,"end",u)-wT(n,"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.complete(),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,n)=>this.cdkVirtualForTrackBy?th
is.cdkVirtualForTrackBy(e,n):n)),this._needsUpdate=!0)}_changeDataSource(e,n){return
e&&e.disconnect(this),this._needsUpdate=!0,n?n.connect(this):oe()}_updateContext(){const
e=this._data.length;let n=this._viewContainerRef.length;for(;n--;){const
s=this._viewContainerRef.get(n);s.context.index=this._renderedRange.start+n,s.context.count=e,this._updateComputedContextProperties(s.context),s.detectChanges()}}_applyChanges(e){this._viewRepeater.applyChanges(e,this._viewContainerRef,(r,o,u)=>this._getEmbeddedViewArgs(r,u),r=>r.item),e.forEachIdentityChange(r=>{this._viewContainerRef.get(r.currentIndex).context.$implicit=r.item});const
n=this._data.length;let s=this._viewContainerRef.length;for(;s--;){const
r=this._viewContainerRef.get(s);r.context.index=this._renderedRange.start+s,r.context.count=n,this._updateComputedContextProperties(r.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,n)
{return{templateRef:this._template,context:{$implicit:e.item,cdkVirtualForOf:this._cdkVirtualForOf,index:-1,count:-1,first:!1,last:!1,odd:!1,even:!1},index:n}}}return
t.\u0275fac=function(e){return
new(e||t)(D(vi),D(bi),D($a),D(bT),D(Po,4),D(nt))},t.\u0275dir=le({type:t,selectors:[["","cdkVirtualFor","","cdkVirtualForOf",""]],inputs:{cdkVirtualForOf:"cdkVirtualForOf",cdkVirtualForTrackBy:"cdkVirtualForTrackBy",cdkVirtualForTemplate:"cdkVirtualForTemplate",cdkVirtualForTemplateCacheSize:"cdkVirtualForTemplateCacheSize"},features:[Pe([{provide:bT,useClass:lV}])]}),t})(),TT=(()=>{class
t{}return t.\u0275fac=function(e){return
new(e||t)},t.\u0275mod=he({type:t}),t.\u0275inj=ue({}),t})(),Fo=(()=>{class t{}return
t.\u0275fac=function(e){return
new(e||t)},t.\u0275mod=he({type:t}),t.\u0275inj=ue({imports:[[_T,TT],_T,TT]}),t})(),Kt=(()=>{class
t{constructor(e,n,s){this.el=e,this.zone=n,this.config=s,this.escape=!0,this._tooltipOptions={tooltipPosition:"right",tooltipEvent:"hover",appendTo:"b
ody",tooltipZIndex:"auto",escape:!0,positionTop:0,positionLeft:0}}get
disabled(){return this._disabled}set
disabled(e){this._disabled=e,this.deactivate()}ngAfterViewInit(){this.zone.runOutsideAngular(()=>{if("hover"===this.getOption("tooltipEvent"))this.mouseEnterListener=this.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);else
if("focus"===this.getOption("tooltipEvent")){this.focusListener=this.onFocus.bind(this),this.blurListener=this.onBlur.bind(this);let
e=this.getTarget(this.el.nativeElement);e.addEventListener("focus",this.focusListener),e.addEventListener("blur",this.blurListener)}})}ngOnChanges(e){e.tooltipPosition&&this.setOption({tooltipPosition:e.tooltipPosition.currentValue}),e.tool
tipEvent&&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.align()):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.createElement("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")?R.appendChild(this.container,this.el.nativeElement):R.appendChild(this.container,this.getOption("appendTo")),this.container.style.display="inline-block"}show(){!this.getOption("tooltipLabel")||this.getOption("disabled")||(this.create(),this.align(),R.fadeIn(this.container,250),"auto"===this.getOption("tooltipZIndex")?dt.set("tooltip",this.container,this.config.zIndex.tool
tip):this.container.style.zIndex=this.getOption("tooltipZIndex"),this.bindDocumentResizeListener(),this.bindScrollListener())}hide(){"auto"===this.getOption("tooltipZIndex")&&dt.clear(this.container),this.remove()}updateText(){this.getOption("escape")?(this.tooltipText.innerHTML="",this.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.isOutOfBound
s()&&(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+R.getWindowScrollLeft(),top:e.top+R.getWindowScrollTop()}}return{left:0,top:0}}alignRight(){this.preAlign("right");let
e=this.getHostOffset(),n=e.left+R.getOuterWidth(this.el.nativeElement),s=e.top+(R.getOuterHeight(this.el.nativeElement)-R.getOuterHeight(this.container))/2;this.container.style.left=n+this.getOption("positionLeft")+"px",this.container.style.top=s+this.getOption("positionTop")+"px"}alignLeft(){this.preAlign("left");let
e=this.getHostOffset(),n=e.left-R.getOuterWidth(this.container),s=e.top+(R.getOuterHeight(this.el.nativeElement)-R.getOuterHeight(this.container))/2;this.container.style.left=n+this.getOption("positionLeft")+"px",this.container.style.top=s+this.getOption("positionTop")+"px"}alignTop(){
this.preAlign("top");let
e=this.getHostOffset(),n=e.left+(R.getOuterWidth(this.el.nativeElement)-R.getOuterWidth(this.container))/2,s=e.top-R.getOuterHeight(this.container);this.container.style.left=n+this.getOption("positionLeft")+"px",this.container.style.top=s+this.getOption("positionTop")+"px"}alignBottom(){this.preAlign("bottom");let
e=this.getHostOffset(),n=e.left+(R.getOuterWidth(this.el.nativeElement)-R.getOuterWidth(this.container))/2,s=e.top+R.getOuterHeight(this.el.nativeElement);this.container.style.left=n+this.getOption("positionLeft")+"px",this.container.style.top=s+this.getOption("positionTop")+"px"}setOption(e){this._tooltipOptions=Object.assign(Object.assign({},this._tooltipOptions),e)}getOption(e){return
this._tooltipOptions[e]}getTarget(e){return
R.hasClass(e,"p-inputwrapper")?R.findSingle(e,"input"):e}preAlign(e){this.container.style.left="-999px",this.container.style.top="-999px";let
n="p-tooltip p-component p-tooltip-"+e;this.container.className=this.getOption(
"tooltipStyleClass")?n+"
"+this.getOption("tooltipStyleClass"):n}isOutOfBounds(){let
e=this.container.getBoundingClientRect(),n=e.top,s=e.left,r=R.getOuterWidth(this.container),o=R.getOuterHeight(this.container),u=R.getViewport();return
s+r>u.width||s<0||n<0||n+o>u.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
Qs(this.el.nativeElement,()=>{this.container&&this.hide()})),this.scrollHandler.bindScrollListener()}unbindScrollListener(){this.scrollHandler&&this.scrollHandler.unbindScrollListener()}unbindEvents(){if("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);else
if("focus"===this.getOption("tooltipEvent")){let
e=this.getTarget(this.el.nativeElement);e.removeEventListener("focus",this.focusListener),e.removeEventListener("blur",this.blurListener)}this.unbindDocumentResizeListener()}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):R.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.clea
rShowTimeout(),this.clearHideTimeout()}ngOnDestroy(){this.unbindEvents(),this.container&&dt.clear(this.container),this.remove(),this.scrollHandler&&(this.scrollHandler.destroy(),this.scrollHandler=null)}}return
t.\u0275fac=function(e){return
new(e||t)(D(De),D(nt),D(zn))},t.\u0275dir=le({type:t,selectors:[["","pTooltip",""]],hostAttrs:[1,"p-element"],inputs:{tooltipPosition:"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:[fn]}),t})(),jn=(()=>{class
t{}return t.\u0275fac=function(e){return
new(e||t)},t.\u0275mod=he({type:t}),t.\u0275inj=ue({imports:[[Fe]]}),t})();function
bV(t,i){if(1&t&&(l(0,"span"),g(1),c()),2&t){const
e=d();a(1),S(e.label|
|"empty")}}function vV(t,i){1&t&&Y(0)}const
ST=function(t){return{height:t}},CV=function(t,i){return{"p-dropdown-item":!0,"p-highlight":t,"p-disabled":i}},Yf=function(t){return{$implicit:t}},yV=["container"],wV=["filter"],TV=["in"],SV=["editableInput"];function
xV(t,i){if(1&t&&(de(0),g(1),pe()),2&t){const
e=d(2);a(1),S(e.label||"empty")}}function DV(t,i){1&t&&Y(0)}const
MV=function(t){return{"p-dropdown-label
p-inputtext":!0,"p-dropdown-label-empty":t}};function
kV(t,i){if(1&t&&(l(0,"span",12),_(1,xV,2,1,"ng-container",13),_(2,DV,1,0,"ng-container",14),c()),2&t){const
e=d();p("ngClass",U(9,MV,null==e.label||0===e.label.length))("pTooltip",e.tooltip)("tooltipPosition",e.tooltipPosition)("positionStyle",e.tooltipPositionStyle)("tooltipStyleClass",e.tooltipStyleClass),ie("id",e.labelId),a(1),p("ngIf",!e.selectedItemTemplate),a(1),p("ngTemplateOutlet",e.selectedItemTemplate)("ngTemplateOutletContext",U(11,Yf,e.selectedOption))}}const
IV=function(t){return{"p-dropdown-label p-inputtext p
-placeholder":!0,"p-dropdown-label-empty":t}};function
EV(t,i){if(1&t&&(l(0,"span",15),g(1),c()),2&t){const
e=d();p("ngClass",U(2,IV,null==e.placeholder||0===e.placeholder.length)),a(1),S(e.placeholder||"empty")}}function
RV(t,i){if(1&t){const
e=I();l(0,"input",16,17),C("click",function(){return
v(e),d().onEditableInputClick()})("input",function(s){return
v(e),d().onEditableInputChange(s)})("focus",function(s){return
v(e),d().onEditableInputFocus(s)})("blur",function(s){return
v(e),d().onInputBlur(s)}),c()}if(2&t){const
e=d();p("disabled",e.disabled),ie("maxlength",e.maxlength)("placeholder",e.placeholder)("aria-expanded",e.overlayVisible)}}function
LV(t,i){if(1&t){const
e=I();l(0,"i",18),C("click",function(s){return
v(e),d().clear(s)}),c()}}function OV(t,i){1&t&&Y(0)}function
AV(t,i){if(1&t){const
e=I();l(0,"div",26)(1,"div",27),C("click",function(s){return
s.stopPropagation()}),l(2,"input",28,29),C("keydown.enter",function(s){return
s.preventDefault()})("keydown",function(s){retur
n v(e),d(2).onKeydown(s,!1)})("input",function(s){return
v(e),d(2).onFilterInputChange(s)}),c(),k(4,"span",30),c()()}if(2&t){const
e=d(2);a(2),p("value",e.filterValue||""),ie("placeholder",e.filterPlaceholder)("aria-label",e.ariaFilterLabel)("aria-activedescendant",e.overlayVisible?"p-highlighted-option":e.labelId)}}function
PV(t,i){if(1&t&&(l(0,"span"),g(1),c()),2&t){const
e=d().$implicit,n=d(3);a(1),S(n.getOptionGroupLabel(e)||"empty")}}function
FV(t,i){1&t&&Y(0)}function NV(t,i){1&t&&Y(0)}const
xT=function(t,i){return{$implicit:t,selectedOption:i}};function
VV(t,i){if(1&t&&(l(0,"li",32),_(1,PV,2,1,"span",13),_(2,FV,1,0,"ng-container",14),c(),_(3,NV,1,0,"ng-container",14)),2&t){const
e=i.$implicit;d(2);const
n=F(8),s=d();a(1),p("ngIf",!s.groupTemplate),a(1),p("ngTemplateOutlet",s.groupTemplate)("ngTemplateOutletContext",U(5,Yf,e)),a(1),p("ngTemplateOutlet",n)("ngTemplateOutletContext",Ge(7,xT,s.getOptionGroupChildren(e),s.selectedOption))}}function
BV(t,i){if(1&t&&(de(0),_(1,VV,4,
10,"ng-template",31),pe()),2&t){const
e=d(2);a(1),p("ngForOf",e.optionsToDisplay)}}function
HV(t,i){1&t&&Y(0)}function
qV(t,i){if(1&t&&(de(0),_(1,HV,1,0,"ng-container",14),pe()),2&t){d();const
e=F(8),n=d();a(1),p("ngTemplateOutlet",e)("ngTemplateOutletContext",Ge(2,xT,n.optionsToDisplay,n.selectedOption))}}function
GV(t,i){if(1&t){const
e=I();l(0,"p-dropdownItem",35),C("onClick",function(s){return
v(e),d(4).onItemClick(s)}),c()}if(2&t){const
e=i.$implicit,n=d(2).selectedOption,s=d(2);p("option",e)("selected",n==e)("label",s.getOptionLabel(e))("disabled",s.isOptionDisabled(e))("template",s.itemTemplate)}}function
UV(t,i){if(1&t&&(de(0),_(1,GV,1,5,"ng-template",31),pe()),2&t){const
e=d().$implicit;a(1),p("ngForOf",e)}}function zV(t,i){if(1&t){const
e=I();de(0),l(1,"p-dropdownItem",35),C("onClick",function(s){return
v(e),d(5).onItemClick(s)}),c(),pe()}if(2&t){const
e=i.$implicit,n=d(3).selectedOption,s=d(2);a(1),p("option",e)("selected",n==e)("label",s.getOptionLabel(e))("disabled",s.i
sOptionDisabled(e))("template",s.itemTemplate)}}function
jV(t,i){if(1&t){const
e=I();l(0,"cdk-virtual-scroll-viewport",37,38),C("scrolledIndexChange",function(){return
v(e),d(4).scrollToSelectedVirtualScrollElement()}),_(2,zV,2,5,"ng-container",39),c()}if(2&t){const
e=d(2).$implicit,n=d(2);p("ngStyle",U(3,ST,n.scrollHeight))("itemSize",n.itemSize),a(2),p("cdkVirtualForOf",e)}}function
$V(t,i){if(1&t&&_(0,jV,3,5,"cdk-virtual-scroll-viewport",36),2&t){const
e=d(3);p("ngIf",e.virtualScroll&&e.optionsToDisplay&&e.optionsToDisplay.length)}}function
WV(t,i){if(1&t&&(_(0,UV,2,1,"ng-container",33),_(1,$V,1,1,"ng-template",null,34,we)),2&t){const
e=F(2);p("ngIf",!d(2).virtualScroll)("ngIfElse",e)}}function
KV(t,i){if(1&t&&(de(0),g(1),pe()),2&t){const e=d(3);a(1),T("
",e.emptyFilterMessageLabel," ")}}function
QV(t,i){1&t&&Y(0,null,41)}function
JV(t,i){if(1&t&&(l(0,"li",40),_(1,KV,2,1,"ng-container",33),_(2,QV,2,0,"ng-container",20),c()),2&t){const
e=d(2);a(1),p("ngIf",!e.emptyFilterTemplate&&
!e.emptyTemplate)("ngIfElse",e.emptyFilter),a(1),p("ngTemplateOutlet",e.emptyFilterTemplate||e.emptyTemplate)}}function
YV(t,i){if(1&t&&(de(0),g(1),pe()),2&t){const e=d(3);a(1),T("
",e.emptyMessageLabel," ")}}function
ZV(t,i){1&t&&Y(0,null,42)}function
XV(t,i){if(1&t&&(l(0,"li",40),_(1,YV,2,1,"ng-container",33),_(2,ZV,2,0,"ng-container",20),c()),2&t){const
e=d(2);a(1),p("ngIf",!e.emptyTemplate)("ngIfElse",e.empty),a(1),p("ngTemplateOutlet",e.emptyTemplate)}}function
e6(t,i){1&t&&Y(0)}const
t6=function(t,i){return{showTransitionParams:t,hideTransitionParams:i}},n6=function(t){return{value:"visible",params:t}},i6=function(t){return{"p-dropdown-virtualscroll":t}};function
s6(t,i){if(1&t){const
e=I();l(0,"div",19),C("click",function(s){return
v(e),d().onOverlayClick(s)})("(a)overlayAnimation.start",function(s){return
v(e),d().onOverlayAnimationStart(s)})("(a)overlayAnimation.start",function(s){return
v(e),d().onOverlayAnimationEnd(s)}),_(1,OV,1,0,"ng-container",20),_(2,AV,5,4,"div",21),l(3,
"div",22)(4,"ul",23),_(5,BV,2,1,"ng-container",13),_(6,qV,2,5,"ng-container",13),_(7,WV,3,2,"ng-template",null,24,we),_(9,JV,3,3,"li",25),_(10,XV,3,3,"li",25),c()(),_(11,e6,1,0,"ng-container",20),c()}if(2&t){const
e=d();me(e.panelStyleClass),p("ngClass","p-dropdown-panel
p-component")("@overlayAnimation",U(19,n6,Ge(16,t6,e.showTransitionOptions,e.hideTransitionOptions)))("ngStyle",e.panelStyle),a(1),p("ngTemplateOutlet",e.headerTemplate),a(1),p("ngIf",e.filter),a(1),_i("max-height",e.virtualScroll?"auto":e.scrollHeight||"auto"),a(1),p("ngClass",U(21,i6,e.virtualScroll)),ie("id",e.listId),a(1),p("ngIf",e.group),a(1),p("ngIf",!e.group),a(3),p("ngIf",e.filterValue&&e.isEmpty()),a(1),p("ngIf",!e.filterValue&&e.isEmpty()),a(1),p("ngTemplateOutlet",e.footerTemplate)}}const
r6=function(t,i,e,n){return{"p-dropdown
p-component":!0,"p-disabled":t,"p-dropdown-open":i,"p-focus":e,"p-dropdown-clearable":n}},o6={provide:dn,useExisting:je(()=>Ot),multi:!0};let
a6=(()=>{class t{constructor(){this.o
nClick=new
H}onOptionClick(e){this.onClick.emit({originalEvent:e,option:this.option})}}return
t.\u0275fac=function(e){return
new(e||t)},t.\u0275cmp=z({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,n){1&e&&(l(0,"li",0),C("click",function(r){return
n.onOptionClick(r)}),_(1,bV,2,1,"span",1),_(2,vV,1,0,"ng-container",2),c()),2&e&&(p("ngStyle",U(8,ST,n.itemSize+"px"))("id",n.selected?"p-highlighted-option":"")("ngClass",Ge(10,CV,n.selected,n.disabled)),ie("aria-label",n.label)("aria-selected",n.selected),a(1),p("ngIf",!n.template),a(1),p("ngTemplateOutlet",n.template)("ngTemplateOutletContext",U(13,Yf,n.option)))},directives:[bt,lt,Le,Q,Rt]
,encapsulation:2}),t})(),Ot=(()=>{class
t{constructor(e,n,s,r,o,u,h){this.el=e,this.renderer=n,this.cd=s,this.zone=r,this.filterService=o,this.config=u,this.overlayService=h,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
H,this.onFilter=new H,this.onFocus=new H,this.onBlur=new H,this.onClick=new
H,this.onShow=new H,this.onHide=new H,this.onClear=new
H,this.onModelChange=()=>{},this.onModelTouched=()=>{},this.viewPortOffsetTop=0,this.id=pl()}get
disabled(){return this._disabled}set
disabled(e){e&&(this.focused=!1,this.overlayVisible&&this.hide()),t
his._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.optionsToDisplay=this._options,this.updateSelectedOption(this.value),this.selectedOption=this.findOption(this.value,this.optionsToDisplay),this.selectedOption||(this.value=null,this.onModelChange(this.value)),this.optionsChanged=!0,this._filterValue&&this._filterValue.length&&this.activateFilt
er()}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(Ft.EMPTY_MESSAGE)}get
emptyFilterMessageLabel(){return
this.emptyFilterMessage||this.config.getTranslation(Ft.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?Z.resolveFieldData(e,this.optionLabel):null!=e.label?e.label:e}getOptionValue(e){return
this.optionValue?Z.resolveFieldData(e,this.optionValue):this.optionLabel||void
0===e.value?e:e.value}isOptionDisabled
(e){return this.optionDisabled?Z.resolveFieldData(e,this.optionDisabled):void
0!==e.disabled&&e.disabled}getOptionGroupLabel(e){return
this.optionGroupLabel?Z.resolveFieldData(e,this.optionGroupLabel):null!=e.label?e.label:e}getOptionGroupChildren(e){return
this.optionGroupChildren?Z.resolveFieldData(e,this.optionGroupChildren):e.items}onItemClick(e){const
n=e.option;this.isOptionDisabled(n)||(this.selectItem(e.originalEvent,n),this.accessibleViewChild.nativeElement.focus()),setTimeout(()=>{this.hide()},150)}selectItem(e,n){this.selectedOption!=n&&(this.selectedOption=n,this.value=this.getOptionValue(n),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))}ngAfterViewChecked(){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
n=this.viewPort.getRenderedRange();this.updateVirtualScrollSelectedIndex(!1),(n.start>this.virtualScrollSelectedIndex||n.end<this.virtualScrollSelectedIndex)&&this.viewPort.scrollToIndex(this.virtualScrollSelectedIndex)}R.findSingle(this.overlay,"li.p-highlight")&&R.scrollInView(this.itemsWrapper,R.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}updateSelectedOption(e){this.selectedOption=this.findOption(e,this.optionsToDisplay),this.autoDisplayFirst&&!this.placeholder&&!this.selectedOption&&
this.optionsToDisplay&&this.optionsToDisplay.length&&!this.editable&&(this.selectedOption=this.group?this.optionsToDisplay[0].items[0]: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
R.hasClass(e.target,"p-dropdown-clear-icon")||e.target.isSameNode(this.accessibleViewChild.nativeElement)||this.editableInputViewChild&&e.target.isSameNode(this.editableInputViewChild.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.cd.markForCheck()}onOverlayAnimationStart(e){switch(e.toState){case"visible":if(this.overlay=e.element,this.itemsWrapper=R.findSingle(this.overlay,this.virtualScroll?".cdk-virtual-scroll-viewport":".p-dropdown-items-wrapper"),this.appendOverlay(),this.autoZIndex&&dt.set("overlay",this.overlay,this.baseZIndex+this.config.zIndex.overlay),this.alignOverlay(),this.bindDocumentClickListener(),this.bindDocumentResizeListener(),this.bindScrollListener(),this.options
&&this.options.length&&!this.virtualScroll){let
s=R.findSingle(this.itemsWrapper,".p-dropdown-item.p-highlight");s&&s.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&&dt.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.viewPortOffsetTop=0),this.virtualScrollSelectedIndex=this.findOptionIndex(this.getOptionValue(this.selectedOption),this.optionsToDisplay))}appen
dOverlay(){this.appendTo&&("body"===this.appendTo?document.body.appendChild(this.overlay):R.appendChild(this.overlay,this.appendTo),this.overlay.style.minWidth||(this.overlay.style.minWidth=R.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?R.absolutePosition(this.overlay,this.containerViewChild.nativeElement):R.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.preventModelTouched=!1}findPrevEnabledOption(e){let
n;if(this.optionsToDisplay&&this.optionsToDisplay.length){for(let
s=e-1;0<=s;s--){let r=this.op
tionsToDisplay[s];if(!this.isOptionDisabled(r)){n=r;break}}if(!n)for(let
s=this.optionsToDisplay.length-1;s>=e;s--){let
r=this.optionsToDisplay[s];if(!this.isOptionDisabled(r)){n=r;break}}}return
n}findNextEnabledOption(e){let
n;if(this.optionsToDisplay&&this.optionsToDisplay.length){for(let
s=e+1;s<this.optionsToDisplay.length;s++){let
r=this.optionsToDisplay[s];if(!this.isOptionDisabled(r)){n=r;break}}if(!n)for(let
s=0;s<e;s++){let
r=this.optionsToDisplay[s];if(!this.isOptionDisabled(r)){n=r;break}}}return
n}onKeydown(e,n){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
s=this.selectedOption?this.findOptionGroupIndex(this.getOptionValue(this.selectedOption),this.optionsToDisplay):-1;if(-1!==s){let
r=s.itemIndex+1;r<this.getOptionGroupChildren(this.optionsToDisplay[s.groupIndex]).length?(this.selectItem(e,this.getOptionGroupChildren(this.optionsToDisplay[s.gro
upIndex])[r]),this.selectedOptionUpdated=!0):this.optionsToDisplay[s.groupIndex+1]&&(this.selectItem(e,this.getOptionGroupChildren(this.optionsToDisplay[s.groupIndex+1])[0]),this.selectedOptionUpdated=!0)}else
this.optionsToDisplay&&this.optionsToDisplay.length>0&&this.selectItem(e,this.getOptionGroupChildren(this.optionsToDisplay[0])[0])}else{let
s=this.selectedOption?this.findOptionIndex(this.getOptionValue(this.selectedOption),this.optionsToDisplay):-1,r=this.findNextEnabledOption(s);r&&(this.selectItem(e,r),this.selectedOptionUpdated=!0)}e.preventDefault();break;case
38:if(this.group){let
s=this.selectedOption?this.findOptionGroupIndex(this.getOptionValue(this.selectedOption),this.optionsToDisplay):-1;if(-1!==s){let
r=s.itemIndex-1;if(r>=0)this.selectItem(e,this.getOptionGroupChildren(this.optionsToDisplay[s.groupIndex])[r]),this.selectedOptionUpdated=!0;else
if(r<0){let
o=this.optionsToDisplay[s.groupIndex-1];o&&(this.selectItem(e,this.getOptionGroupChildren(o)[this.getOptionGr
oupChildren(o).length-1]),this.selectedOptionUpdated=!0)}}}else{let
s=this.selectedOption?this.findOptionIndex(this.getOptionValue(this.selectedOption),this.optionsToDisplay):-1,r=this.findPrevEnabledOption(s);r&&(this.selectItem(e,r),this.selectedOptionUpdated=!0)}e.preventDefault();break;case
32:n&&(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:n&&!e.metaKey&&this.search(e)}}search(e){this.searchTimeout&&clearTimeout(this.searchTimeout);const
n=e.key;let
s;if(this.previousSearchChar=this.currentSearchChar,this.currentSearchChar=n,this.searchValue=this.previousSearchChar===this.currentSearchChar?this.currentSearchChar:this.searchValue?this.searchValue+n:n,this.group){let
r=this.selectedOption?this.findOptionGroupIndex(this.getOptionValue(this.selectedO
ption),this.optionsToDisplay):{groupIndex:0,itemIndex:0};s=this.searchOptionWithinGroup(r)}else{let
r=this.selectedOption?this.findOptionIndex(this.getOptionValue(this.selectedOption),this.optionsToDisplay):-1;s=this.searchOption(++r)}s&&!this.isOptionDisabled(s)&&(this.selectItem(e,s),this.selectedOptionUpdated=!0),this.searchTimeout=setTimeout(()=>{this.searchValue=null},250)}searchOption(e){let
n;return
this.searchValue&&(n=this.searchOptionInRange(e,this.optionsToDisplay.length),n||(n=this.searchOptionInRange(0,e))),n}searchOptionInRange(e,n){for(let
s=e;s<n;s++){let
r=this.optionsToDisplay[s];if(this.getOptionLabel(r).toLocaleLowerCase(this.filterLocale).startsWith(this.searchValue.toLocaleLowerCase(this.filterLocale))&&!this.isOptionDisabled(r))return
r}return null}searchOptionWithinGroup(e){if(this.searchValue){for(let
s=e.groupIndex;s<this.optionsToDisplay.length;s++)for(let
r=e.groupIndex===s?e.itemIndex+1:0;r<this.getOptionGroupChildren(this.optionsToDisplay[s]).length;r++
){let
o=this.getOptionGroupChildren(this.optionsToDisplay[s])[r];if(this.getOptionLabel(o).toLocaleLowerCase(this.filterLocale).startsWith(this.searchValue.toLocaleLowerCase(this.filterLocale))&&!this.isOptionDisabled(o))return
o}for(let s=0;s<=e.groupIndex;s++)for(let
r=0;r<(e.groupIndex===s?e.itemIndex:this.getOptionGroupChildren(this.optionsToDisplay[s]).length);r++){let
o=this.getOptionGroupChildren(this.optionsToDisplay[s])[r];if(this.getOptionLabel(o).toLocaleLowerCase(this.filterLocale).startsWith(this.searchValue.toLocaleLowerCase(this.filterLocale))&&!this.isOptionDisabled(o))return
o}}return null}findOptionIndex(e,n){let s=-1;if(n)for(let
r=0;r<n.length;r++)if(null==e&&null==this.getOptionValue(n[r])||Z.equals(e,this.getOptionValue(n[r]),this.dataKey)){s=r;break}return
s}findOptionGroupIndex(e,n){let s,r;if(n)for(let
o=0;o<n.length&&(s=o,r=this.findOptionIndex(e,this.getOptionGroupChildren(n[o])),-1===r);o++);return-1!==r?{groupIndex:s,itemIndex:r}:-1}findOption(e,n,s){if(
this.group&&!s){let r;if(n&&n.length)for(let o of
n)if(r=this.findOption(e,this.getOptionGroupChildren(o),!0),r)break;return r}{let
r=this.findOptionIndex(e,n);return-1!=r?n[r]:null}}onFilterInputChange(e){let
n=e.target.value;n&&n.length?(this._filterValue=n,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
n=[];for(let s of this.options){let
r=this.filterService.filter(this.getOptionGroupChildren(s),e,this.filterValue,this.filterMatchMode,this.filterLocale);r&&r.length&&n.push(Object.assign(Object.assign({},s),{[this.optionGroupChildren]:r}))}this.optionsToDisplay=n}else
this.optionsToDisplay=this.filterService.filter(this.options,e,this.filterValue,this.filterMatchMode,this.filterLocale);this.optionsChanged=!0}}applyFocus(){this.ed
itable?R.findSingle(this.el.nativeElement,".p-dropdown-label.p-inputtext").focus():R.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",n=>{!this.preventDocumentDefault&&this.isOutsideClicked(n)&&(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.documentResizeListener),this.documentResizeListener=null)}onWindowResize(){this.overlayVisible&&!R.isTouchDevice()&&this.hide()}bindScrollList
ener(){this.scrollHandler||(this.scrollHandler=new
Qs(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&&dt.clear(this.overlay),this.restoreOverlayAppend(),this.onOverlayHide()}}return
t.\u0275fac=function(e){return
new(e||t)(D(De),D(gn),D(rt),D(nt),D(hl),D(zn),D(Ks))},t.\u0275cmp=z({type:t,selectors:[["p-dropdown"]],contentQueries:function(e,n,s){if(1&e&&st(s,ne,4
),2&e){let
r;V(r=B())&&(n.templates=r)}},viewQuery:function(e,n){if(1&e&&(W(yV,5),W(wV,5),W(TV,5),W(Po,5),W(SV,5)),2&e){let
s;V(s=B())&&(n.containerViewChild=s.first),V(s=B())&&(n.filterViewChild=s.first),V(s=B())&&(n.accessibleViewChild=s.first),V(s=B())&&(n.viewPort=s.first),V(s=B())&&(n.editableInputViewChild=s.first)}},hostAttrs:[1,"p-element","p-inputwrapper"],hostVars:4,hostBindings:function(e,n){2&e&&si("p-inputwrapper-filled",n.filled)("p-inputwrapper-focus",n.focused||n.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:"inputId",selectId:"selectId",dataKey:"dataKey",filterBy:"filterBy",autofocus:"autofocus",resetFilterOnHide:"resetFilterOnHide",dropdown
Icon:"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",ariaLabel:"ariaLabel",ariaLabelledBy:"ariaLabelledBy",filterMatchMode:"filterMatchMode",maxlength:"maxlength",tooltip:"tooltip",tooltipPosition:"tooltipPosition",tooltipPositionStyle:"tooltipPositionStyle",tooltipStyleClass:"tooltipStyleClass",autofocusFilter:"autofocusFilter",disabled:"disabled",options:"options",filterValue:"filterValue"},outputs:{onChange:"onChange",onFilter:"onFilter",onFocus:"onFocus",onBlur:"onBlur",onClick:"onClick",onShow:
"onShow",onHide:"onHide",onClear:"onClear"},features:[Pe([o6])],decls:12,vars:25,consts:[[3,"ngClass","ngStyle","click"],["container",""],[1,"p-hidden-accessible"],["type","text","readonly","","aria-haspopup","listbox","aria-haspopup","listbox","role","combobox",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-label","dropdown
trigger","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"],["typ
e","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","scrolledIndexChange",4,"ngIf"],[3,"ngStyle","itemSize","scrolledIndexChange"],["viewport","
"],[4,"cdkVirtualFor","cdkVirtualForOf"],[1,"p-dropdown-empty-message"],["emptyFilter",""],["empty",""]],template:function(e,n){1&e&&(l(0,"div",0,1),C("click",function(r){return
n.onMouseclick(r)}),l(2,"div",2)(3,"input",3,4),C("focus",function(r){return
n.onInputFocus(r)})("blur",function(r){return
n.onInputBlur(r)})("keydown",function(r){return
n.onKeydown(r,!0)}),c()(),_(5,kV,3,13,"span",5),_(6,EV,2,4,"span",6),_(7,RV,2,4,"input",7),_(8,LV,1,0,"i",8),l(9,"div",9),k(10,"span",10),c(),_(11,s6,12,23,"div",11),c()),2&e&&(me(n.styleClass),p("ngClass",qn(20,r6,n.disabled,n.overlayVisible,n.focused,n.showClear&&!n.disabled))("ngStyle",n.style),a(3),p("disabled",n.disabled),ie("id",n.inputId)("placeholder",n.placeholder)("aria-label",n.ariaLabel)("aria-expanded",!1)("aria-labelledby",n.ariaLabelledBy)("tabindex",n.tabindex)("autofocus",n.autofocus)("aria-activedescendant",n.overlayVisible?n.labelId:null),a(2),p("ngIf",!n.editable&&null!=n.label),a(1),p("ngIf",!n.editable&&null==n.label),
a(1),p("ngIf",n.editable),a(1),p("ngIf",null!=n.value&&n.showClear&&!n.disabled),a(1),ie("aria-expanded",n.overlayVisible),a(1),p("ngClass",n.dropdownIcon),a(1),p("ngIf",n.overlayVisible))},directives:[a6,Po,Le,lt,Q,Kt,Rt,at,Qf,Jf],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:[wi("overlayAnimation",[Lt(":enter",[it({opacity:0,transform:"scaleY(0.8)"}),kt("{{showTransitionParams}}")]),Lt(":leave",[kt("{{hideTransitionParams}}",it({opacity:0}))])])]},changeDetection:0}),t})(),Zu=(()=>{class
t{}return t.\u0275fac=function(e){return
new(e||t)},t.\u0275mod=he({type:t}),t.\u0275inj=ue({imports:[[Fe,Nt,Fo,jn,pn],Nt,Fo]}),t})(),DT=(()=>{class
t{constructor(e,n,s){this.el=e,this.ngModel=n,this.cd=s}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.\u0275f
ac=function(e){return
new(e||t)(D(De),D(_e,8),D(rt))},t.\u0275dir=le({type:t,selectors:[["","pInputText",""]],hostAttrs:[1,"p-inputtext","p-component","p-element"],hostVars:2,hostBindings:function(e,n){1&e&&C("input",function(r){return
n.onInput(r)}),2&e&&si("p-filled",n.filled)}}),t})(),MT=(()=>{class
t{}return t.\u0275fac=function(e){return
new(e||t)},t.\u0275mod=he({type:t}),t.\u0275inj=ue({imports:[[Fe]]}),t})();const
l6=["input"];function c6(t,i){if(1&t){const
e=I();l(0,"i",6),C("click",function(){return
v(e),d().clear()}),c()}}const kT=function(){return{"p-inputnumber-button
p-inputnumber-button-up":!0}},IT=function(){return{"p-inputnumber-button
p-inputnumber-button-down":!0}};function u6(t,i){if(1&t){const
e=I();l(0,"span",7)(1,"button",8),C("mousedown",function(s){return
v(e),d().onUpButtonMouseDown(s)})("mouseup",function(){return
v(e),d().onUpButtonMouseUp()})("mouseleave",function(){return
v(e),d().onUpButtonMouseLeave()})("keydown",function(s){return
v(e),d().onUpButton
KeyDown(s)})("keyup",function(){return
v(e),d().onUpButtonKeyUp()}),c(),l(2,"button",8),C("mousedown",function(s){return
v(e),d().onDownButtonMouseDown(s)})("mouseup",function(){return
v(e),d().onDownButtonMouseUp()})("mouseleave",function(){return
v(e),d().onDownButtonMouseLeave()})("keydown",function(s){return
v(e),d().onDownButtonKeyDown(s)})("keyup",function(){return
v(e),d().onDownButtonKeyUp()}),c()()}if(2&t){const
e=d();a(1),me(e.incrementButtonClass),p("ngClass",A(10,kT))("icon",e.incrementButtonIcon)("disabled",e.disabled),a(1),me(e.decrementButtonClass),p("ngClass",A(11,IT))("icon",e.decrementButtonIcon)("disabled",e.disabled)}}function
d6(t,i){if(1&t){const
e=I();l(0,"button",8),C("mousedown",function(s){return
v(e),d().onUpButtonMouseDown(s)})("mouseup",function(){return
v(e),d().onUpButtonMouseUp()})("mouseleave",function(){return
v(e),d().onUpButtonMouseLeave()})("keydown",function(s){return
v(e),d().onUpButtonKeyDown(s)})("keyup",function(){return v(e),d().onUpButtonK
eyUp()}),c()}if(2&t){const
e=d();me(e.incrementButtonClass),p("ngClass",A(5,kT))("icon",e.incrementButtonIcon)("disabled",e.disabled)}}function
p6(t,i){if(1&t){const
e=I();l(0,"button",8),C("mousedown",function(s){return
v(e),d().onDownButtonMouseDown(s)})("mouseup",function(){return
v(e),d().onDownButtonMouseUp()})("mouseleave",function(){return
v(e),d().onDownButtonMouseLeave()})("keydown",function(s){return
v(e),d().onDownButtonKeyDown(s)})("keyup",function(){return
v(e),d().onDownButtonKeyUp()}),c()}if(2&t){const
e=d();me(e.decrementButtonClass),p("ngClass",A(5,IT))("icon",e.decrementButtonIcon)("disabled",e.disabled)}}const
h6=function(t,i,e){return{"p-inputnumber
p-component":!0,"p-inputnumber-buttons-stacked":t,"p-inputnumber-buttons-horizontal":i,"p-inputnumber-buttons-vertical":e}},m6={provide:dn,useExisting:je(()=>pt),multi:!0};let
pt=(()=>{class
t{constructor(e,n){this.el=e,this.cd=n,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.showClear=!1,this.onInput=new
H,this.onFocus=new H,this.onBlur=new H,this.onKeyDown=new H,this.onClear=new
H,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","minFractionDigits","maxFractionDigits","prefix","suffix"].some(s=>!!e[s])&&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}}constr
uctParser(){this.numberFormat=new Intl.NumberFormat(this.locale,this.getOptions());const
e=[...new
Intl.NumberFormat(this.locale,{useGrouping:!1}).format(9876543210)].reverse(),n=new
Map(e.map((s,r)=>[s,r]));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=s=>n.get(s)}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 th
is.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 s=new
Intl.NumberFormat(this.locale,this.getOptions()).format(e);return
this.prefix&&(s=this.prefix+s),this.suffix&&(s+=this.suffix),s}return
e.toString()}return""}parseValue(e){let
n=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(n){if("-"===n)return
n;let s=+n;return isNaN(s)?null:s}return null}repeat(e,n,s){if(this.readonly)return;let
r=n||500;this.clearTimer(),this.timer=setTimeout(()=>{this.repeat(e,40,s)},r),this.spin(e,s)}spin(e,n){let
s=this.step*n,r=this.parseValue(this.i
nput.nativeElement.value)||0,o=this.validateValue(r+s);this.maxlength&&this.maxlength<this.formatValue(o).length||(this.updateInput(o,null,"spin",null),this.updateModel(e,o),this.handleOnInput(e,r,o))}clear(){this.value=null,this.onModelChange(this.value),this.onClear.emit()}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()}onDownButtonMouseUp(){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
n=e.target.selectionStart,s=e.target.selectionEnd,r=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(r.charAt(n-1))||e.preventDefault();break;case
39:this.isNumeralChar(r.charAt(n))||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(),n===s){const
u=r.charAt(n-1),{decimalCharIndex:h,decimalCharIndexWithoutPrefix:b}=this.getDecimalCharIndexes(r);if(this.isNumeralChar(u)){const
y=this.getDecimalLength(r);if(this._group.test(u))this._group.lastIndex=0,o=r.slice(0,n-2)+r.slice(n-1);else
if(this._decimal.test(u))this._decimal.la
stIndex=0,y?this.input.nativeElement.setSelectionRange(n-1,n-1):o=r.slice(0,n-1)+r.slice(n);else
if(h>0&&n>h){const
w=this.isDecimalMode()&&(this.minFractionDigits||0)<y?"":"0";o=r.slice(0,n-1)+w+r.slice(n)}else
1===b?(o=r.slice(0,n-1)+"0"+r.slice(n),o=this.parseValue(o)>0?o:""):o=r.slice(0,n-1)+r.slice(n)}this.updateValue(e,o,null,"delete-single")}else
o=this.deleteRange(r,n,s),this.updateValue(e,o,null,"delete-range");break;case
46:if(e.preventDefault(),n===s){const
u=r.charAt(n),{decimalCharIndex:h,decimalCharIndexWithoutPrefix:b}=this.getDecimalCharIndexes(r);if(this.isNumeralChar(u)){const
y=this.getDecimalLength(r);if(this._group.test(u))this._group.lastIndex=0,o=r.slice(0,n)+r.slice(n+2);else
if(this._decimal.test(u))this._decimal.lastIndex=0,y?this.input.nativeElement.setSelectionRange(n+1,n+1):o=r.slice(0,n)+r.slice(n+1);else
if(h>0&&n>h){const
w=this.isDecimalMode()&&(this.minFractionDigits||0)<y?"":"0";o=r.slice(0,n)+w+r.slice(n+1)}else
1===b?(o=r.slice(0,n)+"0"+r.slice(n
+1),o=this.parseValue(o)>0?o:""):o=r.slice(0,n)+r.slice(n+1)}this.updateValue(e,o,null,"delete-back-single")}else
o=this.deleteRange(r,n,s),this.updateValue(e,o,null,"delete-range")}this.onKeyDown.emit(e)}onInputKeyPress(e){if(this.readonly)return;e.preventDefault();let
n=e.which||e.keyCode,s=String.fromCharCode(n);const
r=this.isDecimalSign(s),o=this.isMinusSign(s);(48<=n&&n<=57||o||r)&&this.insert(e,s,{isDecimalSign:r,isMinusSign:o})}onPaste(e){if(!this.disabled&&!this.readonly){e.preventDefault();let
n=(e.clipboardData||window.clipboardData).getData("Text");if(n){let
s=this.parseValue(n);null!=s&&this.insert(e,s.toString())}}}allowMinusSign(){return
null==this.min||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
n=e.search(this._decimal);this._decimal.lastIndex=0;const r=e.repl
ace(this._prefix,"").trim().replace(/\s/g,"").replace(this._currency,"").search(this._decimal);return
this._decimal.lastIndex=0,{decimalCharIndex:n,decimalCharIndexWithoutPrefix:r}}getCharIndexes(e){const
n=e.search(this._decimal);this._decimal.lastIndex=0;const
s=e.search(this._minusSign);this._minusSign.lastIndex=0;const
r=e.search(this._suffix);this._suffix.lastIndex=0;const o=e.search(this._currency);return
this._currency.lastIndex=0,{decimalCharIndex:n,minusCharIndex:s,suffixCharIndex:r,currencyCharIndex:o}}insert(e,n,s={isDecimalSign:!1,isMinusSign:!1}){const
r=n.search(this._minusSign);if(this._minusSign.lastIndex=0,!this.allowMinusSign()&&-1!==r)return;let
o=this.input.nativeElement.selectionStart,u=this.input.nativeElement.selectionEnd,h=this.input.nativeElement.value.trim();const{decimalCharIndex:b,minusCharIndex:y,suffixCharIndex:w,currencyCharIndex:M}=this.getCharIndexes(h);let
E;if(s.isMinusSign)0===o&&(E=h,(-1===y||0!==u)&&(E=this.insertText(h,n,0,u)),this.updateValue(
e,E,n,"insert"));else
if(s.isDecimalSign)b>0&&o===b?this.updateValue(e,h,n,"insert"):(b>o&&b<u||-1===b&&this.maxFractionDigits)&&(E=this.insertText(h,n,o,u),this.updateValue(e,E,n,"insert"));else{const
L=this.numberFormat.resolvedOptions().maximumFractionDigits,O=o!==u?"range-insert":"insert";if(b>0&&o>b){if(o+n.length-(b+1)<=L){const
N=M>=o?M-1:w>=o?w:h.length;E=h.slice(0,o)+n+h.slice(o+n.length,N)+h.slice(N),this.updateValue(e,E,n,O)}}else
E=this.insertText(h,n,o,u),this.updateValue(e,E,n,O)}}insertText(e,n,s,r){if(2===("."===n?n:n.split(".")).length){const
u=e.slice(s,r).search(this._decimal);return
this._decimal.lastIndex=0,u>0?e.slice(0,s)+this.formatValue(n)+e.slice(r):e||this.formatValue(n)}return
r-s===e.length?this.formatValue(n):0===s?n+e.slice(r):r===e.length?e.slice(0,s)+n:e.slice(0,s)+n+e.slice(r)}deleteRange(e,n,s){let
r;return
r=s-n===e.length?"":0===n?e.slice(s):s===e.length?e.slice(0,n):e.slice(0,n)+e.slice(s),r}initCursor(){let
e=this.input.nativeElement.selectionS
tart,n=this.input.nativeElement.value,s=n.length,r=null,o=(this.prefixChar||"").length;n=n.replace(this._prefix,""),e-=o;let
u=n.charAt(e);if(this.isNumeralChar(u))return e+o;let
h=e-1;for(;h>=0;){if(u=n.charAt(h),this.isNumeralChar(u)){r=h+o;break}h--}if(null!==r)this.input.nativeElement.setSelectionRange(r+1,r+1);else{for(h=e;h<s;){if(u=n.charAt(h),this.isNumeralChar(u)){r=h+o;break}h++}null!==r&&this.input.nativeElement.setSelectionRange(r,r)}return
r||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))}resetRegex(){this._numeral.lastIndex=0,this._decimal.lastIndex=0,this._group.lastIndex=0,this._minusSign.lastIndex=0}updateValue(e,n,s,r){let
o=this.input.nativeElement.value,u=null;null!=n&&(u=this.parseValue(n),u=u||this.allowEmpty?u:0,this.updateInput(u,s,r,n),this.handleOnInput(e,o,u))}handleOnInput(e,n,s){this.isValueChange
d(n,s)&&this.onInput.emit({originalEvent:e,value:s})}isValueChanged(e,n){return
null===n&&null!==e||null!=n&&n!==("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,n,s,r){n=n||"";let
o=this.input.nativeElement.value,u=this.formatValue(e),h=o.length;if(u!==r&&(u=this.concatValues(u,r)),0===h){this.input.nativeElement.value=u,this.input.nativeElement.setSelectionRange(0,0);const
y=this.initCursor()+n.length;this.input.nativeElement.setSelectionRange(y,y)}else{let
b=this.input.nativeElement.selectionStart,y=this.input.nativeElement.selectionEnd;if(this.maxlength&&this.maxlength<u.length)return;this.input.nativeElement.value=u;let
w=u.length;if("range-insert"===s){const
M=this.parseValue((o||"").slice(0,b)),L=(null!==M?M.toString():"").split("").join(`(${this.groupChar})?`),O=new
RegExp(L,"g");O.test(u);const
N=n.split("").join(`(${this.groupChar})?`),G=new RegExp(
N,"g");G.test(u.slice(O.lastIndex)),y=O.lastIndex+G.lastIndex,this.input.nativeElement.setSelectionRange(y,y)}else
if(w===h)"insert"===s||"delete-back-single"===s?this.input.nativeElement.setSelectionRange(y+1,y+1):"delete-single"===s?this.input.nativeElement.setSelectionRange(y-1,y-1):("delete-range"===s||"spin"===s)&&this.input.nativeElement.setSelectionRange(y,y);else
if("delete-back-single"===s){let
M=o.charAt(y-1),E=o.charAt(y),L=h-w,O=this._group.test(E);O&&1===L?y+=1:!O&&this.isNumeralChar(M)&&(y+=-1*L+1),this._group.lastIndex=0,this.input.nativeElement.setSelectionRange(y,y)}else
if("-"===o&&"insert"===s){this.input.nativeElement.setSelectionRange(0,0);const
E=this.initCursor()+n.length+1;this.input.nativeElement.setSelectionRange(E,E)}else
y+=w-h,this.input.nativeElement.setSelectionRange(y,y)}this.input.nativeElement.setAttribute("aria-valuenow",e)}concatValues(e,n){if(e&&n){let
s=n.search(this._decimal);return
this._decimal.lastIndex=0,-1!==s?e.split(this._decimal)[0]+n.s
lice(s):e}return e}getDecimalLength(e){if(e){const
n=e.split(this._decimal);if(2===n.length)return
n[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
n=this.validateValue(this.parseValue(this.input.nativeElement.value));this.input.nativeElement.value=this.formatValue(n),this.input.nativeElement.setAttribute("aria-valuenow",n),this.updateModel(e,n),this.onBlur.emit(e)}formattedValue(){return
this.formatValue(this.value||this.allowEmpty?this.value:0)}updateModel(e,n){this.value!==n&&(this.value=n,this.onModelChange(n)),this.onModelTouched()}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)}getF
ormatter(){return this.numberFormat}}return t.\u0275fac=function(e){return
new(e||t)(D(De),D(rt))},t.\u0275cmp=z({type:t,selectors:[["p-inputNumber"]],viewQuery:function(e,n){if(1&e&&W(l6,5),2&e){let
s;V(s=B())&&(n.input=s.first)}},hostAttrs:[1,"p-element","p-inputwrapper"],hostVars:6,hostBindings:function(e,n){2&e&&si("p-inputwrapper-filled",n.filled)("p-inputwrapper-focus",n.focused)("p-inputnumber-clearable",n.showClear&&"vertical"!=n.buttonLayout)},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",showClear:"showClear",disabled:"disabled"},outputs:{onInput:"onInput",onFocus:"onFocus",onBlur:"onBlur",onKeyDown:"onKeyDown",onClear:"onClear"},features:[Pe([m6]),fn],decls:7,vars:32,consts:[[3,"ngClass","ngStyle"],["pInputText","","inputmode","decimal",3,"ngClass","ngStyle","value","disabled","readonly","input","keydown","keypress","paste","click","focus","blur"],["input",""],["class","p-inputnumber-clear-icon
pi
pi-times",3,"click",4,"ngIf"],["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-c
lear-icon","pi","pi-times",3,"click"],[1,"p-inputnumber-button-group"],["type","button","pButton","",3,"ngClass","icon","disabled","mousedown","mouseup","mouseleave","keydown","keyup"]],template:function(e,n){1&e&&(l(0,"span",0)(1,"input",1,2),C("input",function(r){return
n.onUserInput(r)})("keydown",function(r){return
n.onInputKeyDown(r)})("keypress",function(r){return
n.onInputKeyPress(r)})("paste",function(r){return
n.onPaste(r)})("click",function(){return
n.onInputClick()})("focus",function(r){return
n.onInputFocus(r)})("blur",function(r){return
n.onInputBlur(r)}),c(),_(3,c6,1,0,"i",3),_(4,u6,3,12,"span",4),_(5,d6,1,6,"button",5),_(6,p6,1,6,"button",5),c()),2&e&&(me(n.styleClass),p("ngClass",Qt(28,h6,n.showButtons&&"stacked"===n.buttonLayout,n.showButtons&&"horizontal"===n.buttonLayout,n.showButtons&&"vertical"===n.buttonLayout))("ngStyle",n.style),a(1),me(n.inputStyleClass),p("ngClass","p-inputnumber-input")("ngStyle",n.inputStyle)("value",n.formattedValue())("disabled",n.disab
led)("readonly",n.readonly),ie("placeholder",n.placeholder)("title",n.title)("id",n.inputId)("size",n.size)("name",n.name)("autocomplete",n.autocomplete)("maxlength",n.maxlength)("tabindex",n.tabindex)("aria-label",n.ariaLabel)("aria-required",n.ariaRequired)("required",n.required)("min",n.min)("max",n.max),a(2),p("ngIf","vertical"!=n.buttonLayout&&n.showClear&&n.value),a(1),p("ngIf",n.showButtons&&"stacked"===n.buttonLayout),a(1),p("ngIf",n.showButtons&&"stacked"!==n.buttonLayout),a(1),p("ngIf",n.showButtons&&"stacked"!==n.buttonLayout))},directives:[Le,lt,DT,Q,On],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{border-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-inputnumber-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%}.p-inputnumber-clear-icon{position:absolute;top:50%;margin-top:-.5rem;cursor:pointer}.p-inputnumber-clearable{position:relative}\n"],encapsulation:2,changeDetection:0}),t})(),Xu=(()=>{class
t{}return t.\u0275fac=function(e){return
new(e||t)},t.\u0275mod=he({type:t}),t.\u0275inj=ue({imports:[[Fe,MT,gl]]}),t})();function
f6(t,i){1&t&&Y(0)}const Zf=function(t){return{$implicit:t}};function
g6(t,i){if(1&t&&(l(0,"div",15),_(1,f6,1,0,"ng-container",16),c()),2&t){const
e=d(2);a(1),p("ngTempl
ateOutlet",e.templateLeft)("ngTemplateOutletContext",U(2,Zf,e.paginatorState))}}function
_6(t,i){if(1&t&&(l(0,"span",17),g(1),c()),2&t){const
e=d(2);a(1),S(e.currentPageReport)}}const
ed=function(t){return{"p-disabled":t}};function b6(t,i){if(1&t){const
e=I();l(0,"button",18),C("click",function(s){return
v(e),d(2).changePageToFirst(s)}),k(1,"span",19),c()}if(2&t){const
e=d(2);p("disabled",e.isFirstPage()||e.empty())("ngClass",U(2,ed,e.isFirstPage()||e.empty()))}}const
v6=function(t){return{"p-highlight":t}};function C6(t,i){if(1&t){const
e=I();l(0,"button",22),C("click",function(s){const
o=v(e).$implicit;return d(3).onPageLinkClick(s,o-1)}),g(1),c()}if(2&t){const
e=i.$implicit,n=d(3);p("ngClass",U(2,v6,e-1==n.getPage())),a(1),S(e)}}function
y6(t,i){if(1&t&&(l(0,"span",20),_(1,C6,2,4,"button",21),c()),2&t){const
e=d(2);a(1),p("ngForOf",e.pageLinks)}}function
w6(t,i){1&t&&g(0),2&t&&S(d(3).currentPageReport)}function
T6(t,i){if(1&t){const
e=I();l(0,"p-dropdown",23),C("onChange",functio
n(s){return
v(e),d(2).onPageDropdownChange(s)}),_(1,w6,1,1,"ng-template",24),c()}if(2&t){const
e=d(2);p("options",e.pageItems)("ngModel",e.getPage())("disabled",e.empty())("appendTo",e.dropdownAppendTo)("scrollHeight",e.dropdownScrollHeight)}}function
S6(t,i){if(1&t){const
e=I();l(0,"button",25),C("click",function(s){return
v(e),d(2).changePageToLast(s)}),k(1,"span",26),c()}if(2&t){const
e=d(2);p("disabled",e.isLastPage()||e.empty())("ngClass",U(2,ed,e.isLastPage()||e.empty()))}}function
x6(t,i){if(1&t){const
e=I();l(0,"p-inputNumber",27),C("ngModelChange",function(s){return
v(e),d(2).changePage(s-1)}),c()}if(2&t){const
e=d(2);p("ngModel",e.currentPage())("disabled",e.empty())}}function
D6(t,i){1&t&&Y(0)}function
M6(t,i){if(1&t&&_(0,D6,1,0,"ng-container",16),2&t){const
e=i.$implicit;p("ngTemplateOutlet",d(4).dropdownItemTemplate)("ngTemplateOutletContext",U(2,Zf,e))}}function
k6(t,i){1&t&&(de(0),_(1,M6,1,4,"ng-template",30),pe())}function
I6(t,i){if(1&t){const e=I();l(0,"p-dropdown"
,28),C("ngModelChange",function(s){return
v(e),d(2).rows=s})("onChange",function(s){return
v(e),d(2).onRppChange(s)}),_(1,k6,2,0,"ng-container",29),c()}if(2&t){const
e=d(2);p("options",e.rowsPerPageItems)("ngModel",e.rows)("disabled",e.empty())("appendTo",e.dropdownAppendTo)("scrollHeight",e.dropdownScrollHeight),a(1),p("ngIf",e.dropdownItemTemplate)}}function
E6(t,i){1&t&&Y(0)}function
R6(t,i){if(1&t&&(l(0,"div",31),_(1,E6,1,0,"ng-container",16),c()),2&t){const
e=d(2);a(1),p("ngTemplateOutlet",e.templateRight)("ngTemplateOutletContext",U(2,Zf,e.paginatorState))}}function
L6(t,i){if(1&t){const
e=I();l(0,"div",1),_(1,g6,2,4,"div",2),_(2,_6,2,1,"span",3),_(3,b6,2,4,"button",4),l(4,"button",5),C("click",function(s){return
v(e),d().changePageToPrev(s)}),k(5,"span",6),c(),_(6,y6,2,1,"span",7),_(7,T6,2,5,"p-dropdown",8),l(8,"button",9),C("click",function(s){return
v(e),d().changePageToNext(s)}),k(9,"span",10),c(),_(10,S6,2,4,"button",11),_(11,x6,1,2,"p-inputNumber",12),_(12,I6,2,6,"p-drop
down",13),_(13,R6,2,4,"div",14),c()}if(2&t){const
e=d();me(e.styleClass),p("ngStyle",e.style)("ngClass","p-paginator
p-component"),a(1),p("ngIf",e.templateLeft),a(1),p("ngIf",e.showCurrentPageReport),a(1),p("ngIf",e.showFirstLastIcon),a(1),p("disabled",e.isFirstPage()||e.empty())("ngClass",U(17,ed,e.isFirstPage()||e.empty())),a(2),p("ngIf",e.showPageLinks),a(1),p("ngIf",e.showJumpToPageDropdown),a(1),p("disabled",e.isLastPage()||e.empty())("ngClass",U(19,ed,e.isLastPage()||e.empty())),a(2),p("ngIf",e.showFirstLastIcon),a(1),p("ngIf",e.showJumpToPageInput),a(1),p("ngIf",e.rowsPerPageOptions),a(1),p("ngIf",e.templateRight)}}let
ET=(()=>{class t{constructor(e){this.cd=e,this.pageLinkSize=5,this.onPageChange=new
H,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.updateRowsPerPageOptions()),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(),n=Math.min(this.pageLinkSize,e),s=Math.max(0,Math.ceil(this.getPage()-n/2)),r=Math.min(e-1,s+n-1);return
s=Math.max(0,
s-(this.pageLinkSize-(r-s+1))),[s,r]}updatePageLinks(){this.pageLinks=[];let
e=this.calculatePageLinkBoundaries(),s=e[1];for(let
r=e[0];r<=s;r++)this.pageLinks.push(r+1);if(this.showJumpToPageDropdown){this.pageItems=[];for(let
r=0;r<this.getPageCount();r++)this.pageItems.push({label:String(r+1),value:r})}}changePage(e){var
n=this.getPageCount();if(e>=0&&e<n){this._first=this.rows*e;var
s={page:e,first:this.first,rows:this.rows,pageCount:n};this.updatePageLinks(),this.onPageChange.emit(s),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,n){this.changePage(n),e.preventDefault()}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)(D(rt))},t.\u0275cmp=z({type:t,selectors:[["p-paginator"]],hostAttrs:[1,"p-element"],inputs:{pageLi
nkSize:"pageLinkSize",style:"style",styleClass:"styleClass",alwaysShow:"alwaysShow",templateLeft:"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:[fn],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-fir
st","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,n){1&e&&_(0,L6,14,21,"div",0),2&e&&p("ng
If",!!n.alwaysShow||n.pageLinks&&n.pageLinks.length>1)},directives:[Ot,pt,Q,lt,Le,Rt,bt,at,Te,_e,ne],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})(),RT=(()=>{class
t{}return t.\u0275fac=function(e){return
new(e||t)},t.\u0275mod=he({type:t}),t.\u0275inj=ue({imports:[[Fe,Zu,Xu,Mu,Nt,pn],Zu,Xu,Mu,Nt]}),t})();function
O6(t,i){if(1&t&&(l(0,"div",10)(1,"div",11),k(2,"i"),c()()),2&t){const
e=d();a(2),me("p-dataview-loading-icon pi-spin "+e.loadingIcon)}}function
A6(t,i){1&t&&Y(0)}functi
on
P6(t,i){if(1&t&&(l(0,"div",12),St(1),_(2,A6,1,0,"ng-container",13),c()),2&t){const
e=d();a(2),p("ngTemplateOutlet",e.headerTemplate)}}function
F6(t,i){if(1&t){const
e=I();l(0,"p-paginator",14),C("onPageChange",function(s){return
v(e),d().paginate(s)}),c()}if(2&t){const
e=d();p("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
N6(t,i){1&t&&Y(0)}const V6=function(t,i){return{$implicit:t,row
Index:i}};function
B6(t,i){if(1&t&&_(0,N6,1,0,"ng-container",15),2&t){const
e=i.$implicit,n=i.index;p("ngTemplateOutlet",d().itemTemplate)("ngTemplateOutletContext",Ge(2,V6,e,n))}}function
H6(t,i){if(1&t&&(de(0),g(1),pe()),2&t){const e=d(2);a(1),T("
",e.emptyMessageLabel," ")}}function
q6(t,i){1&t&&Y(0,null,19)}function
G6(t,i){if(1&t&&(l(0,"div",16)(1,"div",17),_(2,H6,2,1,"ng-container",18),_(3,q6,2,0,"ng-container",13),c()()),2&t){const
e=d();a(2),p("ngIf",!e.emptyMessageTemplate)("ngIfElse",e.emptyFilter),a(1),p("ngTemplateOutlet",e.emptyMessageTemplate)}}function
U6(t,i){if(1&t){const
e=I();l(0,"p-paginator",20),C("onPageChange",function(s){return
v(e),d().paginate(s)}),c()}if(2&t){const
e=d();p("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
z6(t,i){1&t&&Y(0)}function
j6(t,i){if(1&t&&(l(0,"div",21),St(1,1),_(2,z6,1,0,"ng-container",13),c()),2&t){const
e=d();a(2),p("ngTemplateOutlet",e.footerTemplate)}}const
$6=[[["p-header"]],[["p-footer"]]],W6=function(t,i){return{"p-dataview
p-component":!0,"p-dataview-list":t,"p-dataview-grid":i}},K6=["p-header","p-footer"];let
LT=(()=>{class
t{constructor(e,n,s,r){this.el=e,this.cd=n,this.filterService=s,this.config=r,this.pageLinks=5,this.paginatorPosition="bottom",this.alwaysShowPaginator=!0,this.paginatorDropdownScrollHeight="200px",this.currentPageReportTemplate="{currentPage}
of {totalPages}",this.showFirstLastIcon=!0,t
his.showPageLinks=!0,this.emptyMessage="",this.onLazyLoad=new
H,this.trackBy=(o,u)=>u,this.loadingIcon="pi
pi-spinner",this.first=0,this.onPage=new H,this.onSort=new H,this.onChangeLayout=new
H,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.pagi
natorRightTemplate=e.template;break;case"paginatordropdownitem":this.paginatorDropdownItemTemplate=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,n)=>{let
s=Z.resolveFieldData(e,this.sortField),r
=Z.resolveFieldData(n,this.sortField),o=null;return
o=null==s&&null!=r?-1:null!=s&&null==r?1:null==s&&null==r?0:"string"==typeof
s&&"string"==typeof
r?s.localeCompare(r):s<r?-1:s>r?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(Ft.EMPTY_MESSAGE)}filter(e,n="contains"){if(this.filterValue=e,this.value&&this.value.length){let
s=this.filterBy.split(",");this.filteredValue=this.filterService.filter(this.value,s,e,n,this.filterLocale),this.filteredValue.length===this.value.length&&(this.filteredValue=null),this.paginator&&(this.first=0,this.totalRecords=this.filteredValu
e?this.filteredValue.length:this.value?this.value.length:0),this.cd.markForCheck()}}hasFilter(){return
this.filterValue&&this.filterValue.trim().length>0}ngOnDestroy(){this.translationSubscription&&this.translationSubscription.unsubscribe()}}return
t.\u0275fac=function(e){return
new(e||t)(D(De),D(rt),D(hl),D(zn))},t.\u0275cmp=z({type:t,selectors:[["p-dataView"]],contentQueries:function(e,n,s){if(1&e&&(st(s,Oo,5),st(s,fl,5),st(s,ne,4)),2&e){let
r;V(r=B())&&(n.header=r.first),V(r=B())&&(n.footer=r.first),V(r=B())&&(n.templates=r)}},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",showJum
pToPageDropdown:"showJumpToPageDropdown",showFirstLastIcon:"showFirstLastIcon",showPageLinks:"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:[fn],ngContentSelectors:K6,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-emptymessage"],[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,n){1&e&&(Sn($6),l(0,"div",0),_(1,O6,3,2,"div",1),_(2,P6,3,1,"div",2),_(3,F6,1,16,"p-paginator",3),l(4,"div",4)(5,"div",5),_(6,B6,1,5,"ng-template",6),m(7,"slice"),_(8,G6,4,3,"div",7),c()(),_(9,U6,1,16,"p-paginator",8),_(10,j6,3,1,"div",9),c()),2&e&&(me(n.styleClass),p("ngClass",Ge(16,W6,"list"===n.layout,"grid"===n.layout))("ngStyle",n.style),a(1),p("ngIf",n.loading),a(1),p("ngIf",n.header||n.headerTemplate),a(1),p("ngIf",n.paginator&&("top"===n.paginatorPosition||"bot
h"==n.paginatorPosition)),a(3),p("ngForOf",n.paginator?function
hC(t,i,e,n,s){const r=t+20,o=$(),u=zr(o,r);return
Ua(o,r)?uC(o,Fn(),i,u.transform,e,n,s,u):u.transform(e,n,s)}(7,12,n.filteredValue||n.value,n.lazy?0:n.first,(n.lazy?0:n.first)+n.rows):n.filteredValue||n.value)("ngForTrackBy",n.trackBy),a(2),p("ngIf",n.isEmpty()),a(1),p("ngIf",n.paginator&&("bottom"===n.paginatorPosition||"both"==n.paginatorPosition)),a(1),p("ngIf",n.footer||n.footerTemplate))},directives:[ET,Le,lt,Q,Rt,at],pipes:[My],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})(),Q6=(()=>{class
t{}return t.\u0275fac=function(e){return
new(e||t)},t.\u0275mod=he({type:t}),t.\u0275inj=ue({imports:[[Fe,Nt,RT],Nt]}),t})(),J6=(()=>{class
t{constructor(e){this.el=e}onkeydown(e){if(!0!==this.pFocusTrapDisabled){e.preventDefault();let
n=R.getFocusableElements(this.el.n
ativeElement);if(n&&n.length>0)if(n[0].ownerDocument.activeElement){let
s=n.indexOf(n[0].ownerDocument.activeElement);e.shiftKey?-1==s||0===s?n[n.length-1].focus():n[s-1].focus():-1==s||s===n.length-1?n[0].focus():n[s+1].focus()}else
n[0].focus()}}}return t.\u0275fac=function(e){return
new(e||t)(D(De))},t.\u0275dir=le({type:t,selectors:[["","pFocusTrap",""]],hostAttrs:[1,"p-element"],hostBindings:function(e,n){1&e&&C("keydown.tab",function(r){return
n.onkeydown(r)})("keydown.shift.tab",function(r){return
n.onkeydown(r)})},inputs:{pFocusTrapDisabled:"pFocusTrapDisabled"}}),t})(),Y6=(()=>{class
t{}return t.\u0275fac=function(e){return
new(e||t)},t.\u0275mod=he({type:t}),t.\u0275inj=ue({imports:[[Fe]]}),t})();const
Z6=["titlebar"],X6=["content"],e7=["footer"];function
t7(t,i){if(1&t&&(l(0,"span",17),g(1),c()),2&t){const
e=d(4);ie("id",e.id+"-label"),a(1),S(e.header)}}function
n7(t,i){1&t&&(l(0,"span",17),St(1,1),c()),2&t&&ie("id",d(4).id+"-label")}function
i7(t,i){1&t&&Y(0)}const s7=fu
nction(){return{"p-dialog-header-icon p-dialog-header-maximize
p-link":!0}};function r7(t,i){if(1&t){const
e=I();l(0,"button",18),C("click",function(){return
v(e),d(4).maximize()})("keydown.enter",function(){return
v(e),d(4).maximize()}),k(1,"span",19),c()}if(2&t){const
e=d(4);p("ngClass",A(2,s7)),a(1),p("ngClass",e.maximized?e.minimizeIcon:e.maximizeIcon)}}const
o7=function(){return{"p-dialog-header-icon p-dialog-header-close
p-link":!0}};function a7(t,i){if(1&t){const
e=I();l(0,"button",20),C("click",function(s){return
v(e),d(4).close(s)})("keydown.enter",function(s){return
v(e),d(4).close(s)}),k(1,"span",21),c()}if(2&t){const
e=d(4);p("ngClass",A(4,o7)),ie("aria-label",e.closeAriaLabel)("tabindex",e.closeTabindex),a(1),p("ngClass",e.closeIcon)}}function
l7(t,i){if(1&t){const
e=I();l(0,"div",11,12),C("mousedown",function(s){return
v(e),d(3).initDrag(s)}),_(2,t7,2,2,"span",13),_(3,n7,2,1,"span",13),_(4,i7,1,0,"ng-container",8),l(5,"div",14),_(6,r7,2,3,"button",15),_(7,a7,2,5,"butto
n",16),c()()}if(2&t){const
e=d(3);a(2),p("ngIf",!e.headerFacet&&!e.headerTemplate),a(1),p("ngIf",e.headerFacet),a(1),p("ngTemplateOutlet",e.headerTemplate),a(2),p("ngIf",e.maximizable),a(1),p("ngIf",e.closable)}}function
c7(t,i){1&t&&Y(0)}function u7(t,i){1&t&&Y(0)}function
d7(t,i){if(1&t&&(l(0,"div",22,23),St(2,2),_(3,u7,1,0,"ng-container",8),c()),2&t){const
e=d(3);a(3),p("ngTemplateOutlet",e.footerTemplate)}}function
p7(t,i){if(1&t){const
e=I();l(0,"div",24),C("mousedown",function(s){return
v(e),d(3).initResize(s)}),c()}}const h7=function(t,i,e,n){return{"p-dialog
p-component":!0,"p-dialog-rtl":t,"p-dialog-draggable":i,"p-dialog-resizable":e,"p-dialog-maximized":n}},m7=function(t,i){return{transform:t,transition:i}},f7=function(t){return{value:"visible",params:t}};function
g7(t,i){if(1&t){const
e=I();l(0,"div",3,4),C("(a)animation.start",function(s){return
v(e),d(2).onAnimationStart(s)})("(a)animation.done",function(s){return
v(e),d(2).onAnimationEnd(s)}),_(2,l7,8,5,"div",5),l(3,"div"
,6,7),St(5),_(6,c7,1,0,"ng-container",8),c(),_(7,d7,4,1,"div",9),_(8,p7,1,0,"div",10),c()}if(2&t){const
e=d(2);me(e.styleClass),p("ngClass",qn(15,h7,e.rtl,e.draggable,e.resizable,e.maximized))("ngStyle",e.style)("pFocusTrapDisabled",!1===e.focusTrap)("@animation",U(23,f7,Ge(20,m7,e.transformOptions,e.transitionOptions))),ie("aria-labelledby",e.id+"-label"),a(2),p("ngIf",e.showHeader),a(1),me(e.contentStyleClass),p("ngClass","p-dialog-content")("ngStyle",e.contentStyle),a(3),p("ngTemplateOutlet",e.contentTemplate),a(1),p("ngIf",e.footerFacet||e.footerTemplate),a(1),p("ngIf",e.resizable)}}const
_7=function(t,i,e,n,s,r,o,u,h,b){return{"p-dialog-mask":!0,"p-component-overlay
p-component-overlay-enter":t,"p-dialog-mask-scrollblocker":i,"p-dialog-left":e,"p-dialog-right":n,"p-dialog-top":s,"p-dialog-top-left":r,"p-dialog-top-right":o,"p-dialog-bottom":u,"p-dialog-bottom-left":h,"p-dialog-bottom-right":b}};function
b7(t,i){if(1&t&&(l(0,"div",1),_(1,g7,9,25,"div",2),c()),2&t){const
e=d();me
(e.maskStyleClass),p("ngClass",Hh(4,_7,[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])),a(1),p("ngIf",e.visible)}}const
v7=["*",[["p-header"]],[["p-footer"]]],C7=["*","p-header","p-footer"],y7=ku([it({transform:"{{transform}}",opacity:0}),kt("{{transition}}")]),w7=ku([kt("{{transition}}",it({transform:"{{transform}}",opacity:0}))]);let
bn=(()=>{class
t{constructor(e,n,s,r,o){this.el=e,this.renderer=n,this.zone=s,this.cd=r,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 H,this.onHide=new H,this.visibleChange=new
H,this.onResizeInit=new H,this.onResizeEnd=new H,this.onDragEnd=new H,this.onMaximize=new
H,this.id=pl(),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.contentTemplat
e=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=R.findSingle(this.container,"[autofocus]");e&&this.zone.runOutsideAngular(()=>{setTimeout(()=>e.focus(),5)})}close(e){this.visibleChange.emit(!1),e.preventDefault()}enableModali
ty(){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&&R.addClass(document.body,"p-overflow-hidden")}disableModality(){this.wrapper&&(this.dismissableMask&&this.unbindMaskClickListener(),this.modal&&R.removeClass(document.body,"p-overflow-hidden"),this.cd.destroyed||this.cd.detectChanges())}maximize(){this.maximized=!this.maximized,!this.modal&&!this.blockScroll&&(this.maximized?R.addClass(document.body,"p-overflow-hidden"):R.removeClass(document.body,"p-overflow-hidden")),this.onMaximize.emit({maximized:this.maximized})}unbindMaskClickListener(){this.maskClickListener&&(this.maskClickListener(),this.maskClickListener=null)}moveOnTop(){this.autoZIndex&&(dt.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.styl
eElement=document.createElement("style"),this.styleElement.type="text/css",document.head.appendChild(this.styleElement);let
e="";for(let n in this.breakpoints)e+=`\n @media screen and
(max-width: ${n}) {\n .p-dialog[${this.id}] {\n
width: ${this.breakpoints[n]} !important;\n }\n
}\n
`;this.styleElement.innerHTML=e}}initDrag(e){R.hasClass(e.target,"p-dialog-header-icon")||R.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",R.addClass(document.body,"p-unselectable-text"))}onKeydown(e){if(this.focusTrap&&9===e.which){e.preventDefault();let
n=R.getFocusableElements(this.container);if(n&&n.length>0)if(n[0].ownerDocument.activeElement){let
s=n.indexOf(n[0].ownerDocument.activeElement);e.shiftKey?-1==s||0===s?n[n.length-1].focus():n[s-1].focus():-1=
=s||s===n.length-1?n[0].focus():n[s+1].focus()}else
n[0].focus()}}onDrag(e){if(this.dragging){let
n=R.getOuterWidth(this.container),s=R.getOuterHeight(this.container),r=e.pageX-this.lastPageX,o=e.pageY-this.lastPageY,u=this.container.getBoundingClientRect(),h=u.left+r,b=u.top+o,y=R.getViewport();this.container.style.position="fixed",this.keepInViewport?(h>=this.minX&&h+n<y.width&&(this._style.left=h+"px",this.lastPageX=e.pageX,this.container.style.left=h+"px"),b>=this.minY&&b+s<y.height&&(this._style.top=b+"px",this.lastPageY=e.pageY,this.container.style.top=b+"px")):(this.lastPageX=e.pageX,this.container.style.left=h+"px",this.lastPageY=e.pageY,this.container.style.top=b+"px")}}endDrag(e){this.dragging&&(this.dragging=!1,R.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,R.addClass(document.body,"p-unselectable-text"),this.onResizeInit.emit(e))}onResize(e){if(this.resizing){let
n=e.pageX-this.lastPageX,s=e.pageY-this.lastPageY,r=R.getOuterWidth(this.container),o=R.getOuterHeight(this.container),u=R.getOuterHeight(this.contentViewChild.nativeElement),h=r+n,b=o+s,y=this.container.style.minWidth,w=this.container.style.minHeight,M=this.container.getBoundingClientRect(),E=R.getViewport();(!parseInt(this.container.style.top)||!parseInt(this.container.style.left))&&(h+=n,b+=s),(!y||h>parseInt(y))&&M.left+h<E.width&&(this._style.width=h+"px",this.container.style.width=this._style.width),(!w||b>parseInt(w))&&M.top+b<E.height&&(this.contentViewChild.nativeElement.style.height=u+b-o+"px",this._style.height&&(this._style.height=b+"px",this.container.style.height=this._style.height)),this.lastPageX=e.pageX,this.lastPageY=e.pageY}}resizeEnd(e){this.resizing&&(this.resiz
ing=!1,R.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.documen
tDragEndListener)})}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.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",n=>{27==n.which&&
this.close(n)})}unbindDocumentEscapeListener(){this.documentEscapeListener&&(this.documentEscapeListener(),this.documentEscapeListener=null)}appendContainer(){this.appendTo&&("body"===this.appendTo?document.body.appendChild(this.wrapper):R.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&&R.addClass(document.body,"p-overflow-hidden"),this.focusOnShow&&this.focus();break;case"void":this.wrapper&&this.modal&&R.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&&(R.removeClass(document.body,"p-overflow-hidden"),this.maximized=!1),this.modal&&this.disableModality(),this.blockScroll&&R.removeClass(document.body,"p-overflow-hidden"),this.container&&this.autoZIndex&&dt.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.\u0275fac=function(e){return
new(e||t)(D(De),D(gn),D(nt),D(rt),D(zn))},t.\u0275cmp=z({type:t,selectors:[["p-dialog"]],contentQueries:function(e,n,s){if(1&e&&(st(s,Oo,5),st(s,fl,5),st(s,ne,4)),2&e){let
r;V(r=B())&&(n.headerFacet=r.first),V(r=B())&&(n.footerFacet=r.first),V(r=B())&&(n.templates=r)}},viewQuery:function(e,n){if(1&e&&(W(Z6,5),W(X6,5),W(e7,5)),2&e){l
et
s;V(s=B())&&(n.headerViewChild=s.first),V(s=B())&&(n.contentViewChild=s.first),V(s=B())&&(n.footerViewChild=s.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:"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:"maximizeIco
n",visible:"visible",style:"style",position:"position"},outputs:{onShow:"onShow",onHide:"onHide",visibleChange:"visibleChange",onResizeInit:"onResizeInit",onResizeEnd:"onResizeEnd",onDragEnd:"onDragEnd",onMaximize:"onMaximize"},ngContentSelectors:C7,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","keydo
wn.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,n){1&e&&(Sn(v7),_(0,b7,2,15,"div",0)),2&e&&p("ngIf",n.maskVisible)},directives:[Q,Le,J6,lt,Rt,bt],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-draggable
.p-dialog-header{curs
or:move}.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:[wi("animation",[Lt("void
=> visible",[fw(y7)]),Lt("visible =>
void",[fw(w7)])])]},changeDetection:0}),t})(),T7=(()=>{class t{}return
t.\u0275fac=function(e){return
new(e||t)},t.\u0275mod=he({type:t}),t.\u0275inj=ue({imports:[[Fe,Y6,pn],Nt]}),t})();const
S7=["*"];let x7=(()=>{class
t{constructor(){this.layout="horizontal",this.type="solid"}containerClass(){return{"p-divider
p-component":!0,"p-divider-horizontal":"horizontal"===this.layout,"p-divider-vertical":"vertical"===this.layout,"p-divider-solid":"solid"===this.type,"p-divider-dashed":"dashed"===this.type,"p-d
ivider-dotted":"dotted"===this.type,"p-divider-left":"horizontal"===this.layout&&(!this.align||"left"===this.align),"p-divider-center":"horizontal"===this.layout&&"center"===this.align||"vertical"===this.layout&&(!this.align||"center"===this.align),"p-divider-right":"horizontal"===this.layout&&"right"===this.align,"p-divider-top":"vertical"===this.layout&&"top"===this.align,"p-divider-bottom":"vertical"===this.layout&&"bottom"===this.align}}}return
t.\u0275fac=function(e){return
new(e||t)},t.\u0275cmp=z({type:t,selectors:[["p-divider"]],hostAttrs:[1,"p-element"],inputs:{styleClass:"styleClass",style:"style",layout:"layout",type:"type",align:"align"},ngContentSelectors:S7,decls:3,vars:4,consts:[["role","separator",3,"ngClass","ngStyle"],[1,"p-divider-content"]],template:function(e,n){1&e&&(Sn(),l(0,"div",0)(1,"div",1),St(2),c()()),2&e&&(me(n.styleClass),p("ngClass",n.containerClass())("ngStyle",n.style))},directives:[Le,lt],styles:['.p-divider-horizontal{display:flex;width:100%;posit
ion:relative;align-items:center}.p-divider-horizontal:before{position:absolute;display:block;top:50%;left:0;width:100%;content:""}.p-divider-horizontal.p-divider-left{justify-content:flex-start}.p-divider-horizontal.p-divider-right{justify-content:flex-end}.p-divider-horizontal.p-divider-center{justify-content:center}.p-divider-content{z-index:1}.p-divider-vertical{min-height:100%;margin:0
1rem;display:flex;position:relative;justify-content:center}.p-divider-vertical:before{position:absolute;display:block;top:0;left:50%;height:100%;content:""}.p-divider-vertical.p-divider-top{align-items:flex-start}.p-divider-vertical.p-divider-center{align-items:center}.p-divider-vertical.p-divider-bottom{align-items:flex-end}.p-divider-solid.p-divider-horizontal:before{border-top-style:solid}.p-divider-solid.p-divider-vertical:before{border-left-style:solid}.p-divider-dashed.p-divider-horizontal:before{border-top-style:dashed}.p-divider-dashed.p-divider-vertical:before{border-left-style:dashed}.p-
divider-dotted.p-divider-horizontal:before{border-top-style:dotted}.p-divider-dotted.p-divider-horizontal:before{border-left-style:dotted}\n'],encapsulation:2,changeDetection:0}),t})(),D7=(()=>{class
t{}return t.\u0275fac=function(e){return
new(e||t)},t.\u0275mod=he({type:t}),t.\u0275inj=ue({imports:[[Fe]]}),t})();const
M7=function(t,i){return{"pi-minus":t,"pi-plus":i}};function
k7(t,i){if(1&t&&k(0,"span",9),2&t){const
e=d(2);p("ngClass",Ge(1,M7,!e.collapsed,e.collapsed))}}function
I7(t,i){1&t&&Y(0)}function E7(t,i){if(1&t){const
e=I();de(0),l(1,"a",7),C("click",function(s){return
v(e),d().toggle(s)})("keydown.enter",function(s){return
v(e),d().toggle(s)}),_(2,k7,1,4,"span",8),_(3,I7,1,0,"ng-container",6),c(),pe()}if(2&t){const
e=d(),n=F(4);a(1),ie("aria-controls",e.id+"-content")("aria-expanded",!e.collapsed),a(1),p("ngIf",e.toggleable),a(1),p("ngTemplateOutlet",n)}}function
R7(t,i){1&t&&Y(0)}function
L7(t,i){if(1&t&&(l(0,"span",10),g(1),c(),St(2,1),_(3,R7,1,0,"ng-container",6)),2&
t){const
e=d();a(1),S(e.legend),a(2),p("ngTemplateOutlet",e.headerTemplate)}}function
O7(t,i){1&t&&Y(0)}const
A7=["*",[["p-header"]]],P7=function(t){return{"p-fieldset
p-component":!0,"p-fieldset-toggleable":t}},F7=function(t){return{transitionParams:t,height:"0"}},N7=function(t){return{value:"hidden",params:t}},V7=function(t){return{transitionParams:t,height:"*"}},B7=function(t){return{value:"visible",params:t}},H7=["*","p-header"];let
q7=0,Ui=(()=>{class
t{constructor(e){this.el=e,this.collapsed=!1,this.collapsedChange=new
H,this.onBeforeToggle=new H,this.onAfterToggle=new H,this.transitionOptions="400ms
cubic-bezier(0.86, 0, 0.07,
1)",this.id="p-fieldset-"+q7++}ngAfterContentInit(){this.templates.forEach(e=>{switch(e.getType()){case"header":this.headerTemplate=e.template;break;case"content":this.contentTemplate=e.template}})}toggle(e){if(this.animating)return!1;this.animating=!0,this.onBeforeToggle.emit({originalEvent:e,collapsed:this.collapsed}),this.collapsed?this.expand(e):thi
s.collapse(e),this.onAfterToggle.emit({originalEvent:e,collapsed:this.collapsed}),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(){this.animating=!1}}return
t.\u0275fac=function(e){return
new(e||t)(D(De))},t.\u0275cmp=z({type:t,selectors:[["p-fieldset"]],contentQueries:function(e,n,s){if(1&e&&st(s,ne,4),2&e){let
r;V(r=B())&&(n.templates=r)}},hostAttrs:[1,"p-element"],inputs:{legend:"legend",toggleable:"toggleable",collapsed:"collapsed",style:"style",styleClass:"styleClass",transitionOptions:"transitionOptions"},outputs:{collapsedChange:"collapsedChange",onBeforeToggle:"onBeforeToggle",onAfterToggle:"onAfterToggle"},ngContentSelectors:H7,decls:9,vars:22,consts:[[3,"ngClass","ngStyle"],[1,"p-fieldset-legend"],[4,"ngIf","ngIfElse"],["legendContent",""],["role","region",1,"p-toggleable-content"],[1,"
p-fieldset-content"],[4,"ngTemplateOutlet"],["tabindex","0","pRipple","",3,"click","keydown.enter"],["class","p-fieldset-toggler
pi",3,"ngClass",4,"ngIf"],[1,"p-fieldset-toggler","pi",3,"ngClass"],[1,"p-fieldset-legend-text"]],template:function(e,n){if(1&e&&(Sn(A7),l(0,"fieldset",0)(1,"legend",1),_(2,E7,4,4,"ng-container",2),_(3,L7,4,2,"ng-template",null,3,we),c(),l(5,"div",4),C("@fieldsetContent.done",function(){return
n.onToggleDone()}),l(6,"div",5),St(7),_(8,O7,1,0,"ng-container",6),c()()()),2&e){const
s=F(4);me(n.styleClass),p("ngClass",U(12,P7,n.toggleable))("ngStyle",n.style),ie("id",n.id),a(2),p("ngIf",n.toggleable)("ngIfElse",s),a(3),p("@fieldsetContent",n.collapsed?U(16,N7,U(14,F7,n.transitionOptions)):U(20,B7,U(18,V7,n.animating?n.transitionOptions:"0ms"))),ie("id",n.id+"-content")("aria-labelledby",n.id)("aria-hidden",n.collapsed),a(3),p("ngTemplateOutlet",n.contentTemplate)}},directives:[Le,lt,Q,bt,Rt],styles:[".p-fieldset-legend>a,.p-fieldset-legend>span{display:flex;al
ign-items:center;justify-content:center}.p-fieldset-toggleable .p-fieldset-legend
a{cursor:pointer;-webkit-user-select:none;user-select:none;overflow:hidden;position:relative}.p-fieldset-legend-text{line-height:1}\n"],encapsulation:2,data:{animation:[wi("fieldsetContent",[ws("hidden",it({height:"0",overflow:"hidden"})),ws("visible",it({height:"*"})),Lt("visible
<=>
hidden",[it({overflow:"hidden"}),kt("{{transitionParams}}")]),Lt("void
=> *",kt(0))])]},changeDetection:0}),t})(),G7=(()=>{class t{}return
t.\u0275fac=function(e){return
new(e||t)},t.\u0275mod=he({type:t}),t.\u0275inj=ue({imports:[[Fe,pn],Nt]}),t})();const
U7=["headerchkbox"];function z7(t,i){1&t&&Y(0)}function
j7(t,i){if(1&t&&(l(0,"div",6),St(1),_(2,z7,1,0,"ng-container",7),c()),2&t){const
e=d();a(2),p("ngTemplateOutlet",e.headerTemplate)}}const
OT=function(t){return{"p-checkbox-disabled":t}},$7=function(t,i,e){return{"p-highlight":t,"p-focus":i,"p-disabled":e}},AT=function(t){return{"pi
pi-check":t}};function W7(t,i){if
(1&t){const
e=I();l(0,"div",10)(1,"div",11)(2,"input",12),C("focus",function(){return
v(e),d(2).onHeaderCheckboxFocus()})("blur",function(){return
v(e),d(2).onHeaderCheckboxBlur()})("keydown.space",function(s){return
v(e),d(2).toggleAll(s)}),c()(),l(3,"div",13,14),C("click",function(s){return
v(e),d(2).toggleAll(s)}),k(5,"span",15),c()()}if(2&t){const
e=d(2);p("ngClass",U(5,OT,e.disabled||e.toggleAllDisabled)),a(2),p("checked",e.allChecked)("disabled",e.disabled||e.toggleAllDisabled),a(1),p("ngClass",Qt(7,$7,e.allChecked,e.headerCheckboxFocus,e.disabled||e.toggleAllDisabled)),a(2),p("ngClass",U(11,AT,e.allChecked))}}function
K7(t,i){if(1&t){const
e=I();l(0,"div",16)(1,"input",17),C("input",function(s){return
v(e),d(2).onFilter(s)}),c(),k(2,"span",18),c()}if(2&t){const
e=d(2);a(1),p("value",e.filterValue||"")("disabled",e.disabled),ie("placeholder",e.filterPlaceHolder)("aria-label",e.ariaFilterLabel)}}function
Q7(t,i){if(1&t&&(l(0,"div",6),_(1,W7,6,13,"div",8),_(2,K7,3,4,"div",9),c()
),2&t){const
e=d();a(1),p("ngIf",e.checkbox&&e.multiple&&e.showToggleAll),a(1),p("ngIf",e.filter)}}function
J7(t,i){if(1&t&&(l(0,"span"),g(1),c()),2&t){const
e=d().$implicit,n=d(2);a(1),S(n.getOptionGroupLabel(e)||"empty")}}function
Y7(t,i){1&t&&Y(0)}function Z7(t,i){1&t&&Y(0)}const
Xf=function(t){return{$implicit:t}};function
X7(t,i){if(1&t&&(l(0,"li",20),_(1,J7,2,1,"span",3),_(2,Y7,1,0,"ng-container",21),c(),_(3,Z7,1,0,"ng-container",21)),2&t){const
e=i.$implicit,n=d(2),s=F(8);a(1),p("ngIf",!n.groupTemplate),a(1),p("ngTemplateOutlet",n.groupTemplate)("ngTemplateOutletContext",U(5,Xf,e)),a(1),p("ngTemplateOutlet",s)("ngTemplateOutletContext",U(7,Xf,n.getOptionGroupChildren(e)))}}function
eB(t,i){if(1&t&&(de(0),_(1,X7,4,9,"ng-template",19),pe()),2&t){const
e=d();a(1),p("ngForOf",e.optionsToRender)}}function
tB(t,i){1&t&&Y(0)}function
nB(t,i){if(1&t&&(de(0),_(1,tB,1,0,"ng-container",21),pe()),2&t){const
e=d(),n=F(8);a(1),p("ngTemplateOutlet",n)("ngTemplateOutletContext",U(2,Xf,e.opti
onsToRender))}}const iB=function(t){return{"p-highlight":t}};function
sB(t,i){if(1&t&&(l(0,"div",10)(1,"div",25),k(2,"span",15),c()()),2&t){const
e=d().$implicit,n=d(2);p("ngClass",U(3,OT,n.disabled||n.isOptionDisabled(e))),a(1),p("ngClass",U(5,iB,n.isSelected(e))),a(1),p("ngClass",U(7,AT,n.isSelected(e)))}}function
rB(t,i){if(1&t&&(l(0,"span"),g(1),c()),2&t){const
e=d().$implicit,n=d(2);a(1),S(n.getOptionLabel(e))}}function
oB(t,i){1&t&&Y(0)}const
aB=function(t,i){return{"p-listbox-item":!0,"p-highlight":t,"p-disabled":i}},lB=function(t,i){return{$implicit:t,index:i}};function
cB(t,i){if(1&t){const
e=I();l(0,"li",24),C("click",function(s){const o=v(e).$implicit;return
d(2).onOptionClick(s,o)})("dblclick",function(s){const o=v(e).$implicit;return
d(2).onOptionDoubleClick(s,o)})("touchend",function(){const
r=v(e).$implicit;return d(2).onOptionTouchEnd(r)})("keydown",function(s){const
o=v(e).$implicit;return
d(2).onOptionKeyDown(s,o)}),_(1,sB,3,9,"div",8),_(2,rB,2,1,"span",3),_(3,oB,1
,0,"ng-container",21),c()}if(2&t){const
e=i.$implicit,n=i.index,s=d(2);p("ngClass",Ge(8,aB,s.isSelected(e),s.isOptionDisabled(e))),ie("tabindex",s.disabled||s.isOptionDisabled(e)?null:"0")("aria-label",s.getOptionLabel(e))("aria-selected",s.isSelected(e)),a(1),p("ngIf",s.checkbox&&s.multiple),a(1),p("ngIf",!s.itemTemplate),a(1),p("ngTemplateOutlet",s.itemTemplate)("ngTemplateOutletContext",Ge(11,lB,e,n))}}function
uB(t,i){if(1&t&&(de(0),g(1),pe()),2&t){const e=d(3);a(1),T("
",e.emptyFilterMessageLabel," ")}}function
dB(t,i){1&t&&Y(0,null,28)}function
pB(t,i){if(1&t&&(l(0,"li",26),_(1,uB,2,1,"ng-container",27),_(2,dB,2,0,"ng-container",7),c()),2&t){const
e=d(2);a(1),p("ngIf",!e.emptyFilterTemplate&&!e.emptyTemplate)("ngIfElse",e.emptyFilter),a(1),p("ngTemplateOutlet",e.emptyFilterTemplate||e.emptyTemplate)}}function
hB(t,i){if(1&t&&(de(0),g(1),pe()),2&t){const e=d(3);a(1),T("
",e.emptyMessageLabel," ")}}function
mB(t,i){1&t&&Y(0,null,29)}function
fB(t,i){if(1&t&&(l(0,"li",26),_(1,hB,
2,1,"ng-container",27),_(2,mB,2,0,"ng-container",7),c()),2&t){const
e=d(2);a(1),p("ngIf",!e.emptyTemplate)("ngIfElse",e.empty),a(1),p("ngTemplateOutlet",e.emptyTemplate)}}function
gB(t,i){if(1&t&&(_(0,cB,4,14,"li",22),_(1,pB,3,3,"li",23),_(2,fB,3,3,"li",23)),2&t){const
e=i.$implicit,n=d();p("ngForOf",e),a(1),p("ngIf",n.hasFilter()&&n.isEmpty(e)),a(1),p("ngIf",!n.hasFilter()&&n.isEmpty(e))}}function
_B(t,i){1&t&&Y(0)}function
bB(t,i){if(1&t&&(l(0,"div",30),St(1,1),_(2,_B,1,0,"ng-container",7),c()),2&t){const
e=d();a(2),p("ngTemplateOutlet",e.footerTemplate)}}const
vB=[[["p-header"]],[["p-footer"]]],CB=function(t){return{"p-listbox
p-component":!0,"p-disabled":t}},yB=["p-header","p-footer"],wB={provide:dn,useExisting:je(()=>os),multi:!0};let
os=(()=>{class
t{constructor(e,n,s,r){this.el=e,this.cd=n,this.filterService=s,this.config=r,this.checkbox=!1,this.filter=!1,this.filterMatchMode="contains",this.metaKeySelection=!0,this.showToggleAll=!0,this.optionGroupChildren="items",this.onCha
nge=new H,this.onClick=new H,this.onDblClick=new
H,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?Z.resolveFieldData(e,this.optionLabel):null!=e.label?e.label:e}getOptionGroupChildren(e){return
this.optionGroupChildren?Z.resolveFieldData(e,this.optionG
roupChildren):e.items}getOptionGroupLabel(e){return
this.optionGroupLabel?Z.resolveFieldData(e,this.optionGroupLabel):null!=e.label?e.label:e}getOptionValue(e){return
this.optionValue?Z.resolveFieldData(e,this.optionValue):this.optionLabel||void
0===e.value?e:e.value}isOptionDisabled(e){return
this.optionDisabled?Z.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,n){this.disabled||this.isOptionDisabled(n)||this.readonly||(this.multiple?this.checkbox?this.onOptionClickCheckbox(e,n):this.onOptionClickMultiple(e,n):this.onOptionClickSingle(e,n),this.onClick.emit({originalEvent:e,option:n,value:this.value}),this.optionTouched=!1)}onOptionTouchEnd(e){this.disabled||this.isOptionDisabled(e)||this.readonly||(this.optionTouched=!0)}onOptionDoubleClick(e,n){this.d
isabled||this.isOptionDisabled(n)||this.readonly||this.onDblClick.emit({originalEvent:e,option:n,value:this.value})}onOptionClickSingle(e,n){let
s=this.isSelected(n),r=!1;if(!this.optionTouched&&this.metaKeySelection){let
u=e.metaKey||e.ctrlKey;s?u&&(this.value=null,r=!0):(this.value=this.getOptionValue(n),r=!0)}else
this.value=s?null:this.getOptionValue(n),r=!0;r&&(this.onModelChange(this.value),this.onChange.emit({originalEvent:e,value:this.value}))}onOptionClickMultiple(e,n){let
s=this.isSelected(n),r=!1;if(!this.optionTouched&&this.metaKeySelection){let
u=e.metaKey||e.ctrlKey;s?(u?this.removeOption(n):this.value=[this.getOptionValue(n)],r=!0):(this.value=u&&this.value||[],this.value=[...this.value,this.getOptionValue(n)],r=!0)}else
s?this.removeOption(n):this.value=[...this.value||[],this.getOptionValue(n)],r=!0;r&&(this.onModelChange(this.value),this.onChange.emit({originalEvent:e,value:this.value}))}onOptionClickCheckbox(e,n){this.disabled||this.readonly||(this.isSelected(n)?t
his.removeOption(n):(this.value=this.value?this.value:[],this.value=[...this.value,this.getOptionValue(n)]),this.onModelChange(this.value),this.onChange.emit({originalEvent:e,value:this.value}))}removeOption(e){this.value=this.value.filter(n=>!Z.equals(n,this.getOptionValue(e),this.dataKey))}isSelected(e){let
n=!1,s=this.getOptionValue(e);if(this.multiple){if(this.value)for(let r of
this.value)if(Z.equals(r,s,this.dataKey)){n=!0;break}}else
n=Z.equals(this.value,s,this.dataKey);return n}get allChecked(){let
e=this.optionsToRender;if(!e||0===e.length)return!1;{let
n=0,s=0,r=0,o=this.group?0:this.optionsToRender.length;for(let u of
e)if(this.group)for(let h of this.getOptionGroupChildren(u)){let
b=this.isOptionDisabled(h),y=this.isSelected(h);if(b)y?n++:s++;else{if(!y)return!1;r++}o++}else{let
h=this.isOptionDisabled(u),b=this.isSelected(u);if(h)b?n++:s++;else{if(!b)return!1;r++}}return
o===n||o===r||r&&o===r+s+n}}get optionsToRender(){return
this._filteredOptions||this.options}get em
ptyMessageLabel(){return
this.emptyMessage||this.config.getTranslation(Ft.EMPTY_MESSAGE)}get
emptyFilterMessageLabel(){return
this.emptyFilterMessage||this.config.getTranslation(Ft.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(","),n=[];for(let s of
this.options){let
r=this.filterService.filter(this.getOptionGroupChildren(s),e,this.filterValue,this.filterMatchMode,this.filterLocale);r&&r.length&&n.push(Object.assign(Object.assign({},s),{[this.optionGroupChildren]:r}))}this._filteredOptions=n}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.optionsToRend
er;if(!e||0===e.length)return!0;for(let n of
e)if(!this.isOptionDisabled(n))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
n=[];this.optionsToRender.forEach(s=>{if(this.group){let
r=this.getOptionGroupChildren(s);r&&r.forEach(o=>{let
u=this.isOptionDisabled(o);(!u||u&&this.isSelected(o))&&n.push(this.getOptionValue(o))})}else{let
r=this.isOptionDisabled(s);(!r||r&&this.isSelected(s))&&n.push(this.getOptionValue(s))}}),this.value=n}uncheckAll(){let
n=[];this.optionsToRender.forEach(s=>{this.group?s.items&&s.items.forEach(r=>{this.isOptionDisabled(r)&&this.isSelected(r)&&n.push(this.getOptionValue(r))}):this.isOptionDisabled(s)&&this.isSelected(s)&&n.push(this.getOptionValue(s))}),this.value=n}onOptionKeyDown(e,n){if(this.readonly)return;let
s=e.currentTarget;switch(e.which){cas
e 40:var r=this.findNextItem(s);r&&r.focus(),e.preventDefault();break;case 38:var
o=this.findPrevItem(s);o&&o.focus(),e.preventDefault();break;case
13:this.onOptionClick(e,n),e.preventDefault()}}findNextItem(e){let
n=e.nextElementSibling;return
n?R.hasClass(n,"p-disabled")||R.isHidden(n)||R.hasClass(n,"p-listbox-item-group")?this.findNextItem(n):n:null}findPrevItem(e){let
n=e.previousElementSibling;return
n?R.hasClass(n,"p-disabled")||R.isHidden(n)||R.hasClass(n,"p-listbox-item-group")?this.findPrevItem(n):n:null}onHeaderCheckboxFocus(){this.headerCheckboxFocus=!0}onHeaderCheckboxBlur(){this.headerCheckboxFocus=!1}ngOnDestroy(){this.translationSubscription&&this.translationSubscription.unsubscribe()}}return
t.\u0275fac=function(e){return
new(e||t)(D(De),D(rt),D(hl),D(zn))},t.\u0275cmp=z({type:t,selectors:[["p-listbox"]],contentQueries:function(e,n,s){if(1&e&&(st(s,Oo,5),st(s,fl,5),st(s,ne,4)),2&e){let
r;V(r=B())&&(n.headerFacet=r.first),V(r=B())&&(n.footerFacet=r.first),V(r=B())&&(n
.templates=r)}},viewQuery:function(e,n){if(1&e&&W(U7,5),2&e){let
s;V(s=B())&&(n.headerCheckboxViewChild=s.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:[Pe([wB])],ngContentSelectors:yB,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,n){1&e&&(Sn(vB),l(0,"div",0),_(1,j7,3,1,"div",1),_(2,Q7,3,2,"div",1),l(3,"div",0)(4,"ul",2),_(5,eB,2,1,"ng-container",3),_(6,nB,2,4,"ng-container",3),_(7,gB,3,3,"ng-template",null,4,we),c()(),_(9,bB,3,1,"div",5),c()),2&e&&(me(n.styleClass),p("ngClass",U(13,CB,n.disabled))("ngStyle",n.style),a(1),p("ngIf",n.headerFacet||n.headerTemplate),a(1),p("ngIf",n.checkbox&&n.multiple&&n.showToggleAll||n.filter),a(1),me(n.listStyleClass),p("ngClass","p-listbox-list-wrapper")("ngStyle",n.listStyle),a(2),p("ngIf",n.group),a(1),p("ngIf",!n.group),a(3),p("ngIf",n.footerFacet||n.footerTemplate))},directives:[Le,lt,Q,Rt,at,bt],styles:[".p-listbox-list-wrapper{overflow:auto}.p-listbox-list{list-style-type:none;margin:0;padding:0}.p-listbox-it
em{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})(),TB=(()=>{class
t{}return t.\u0275fac=function(e){return
new(e||t)},t.\u0275mod=he({type:t}),t.\u0275inj=ue({imports:[[Fe,Nt,pn],Nt]}),t})();class
zi extends ct{constructor(i){super(),this._value=i}get value(){return
this.getValue()}_subscribe(i){const e=super._subscribe(i);return
e&&!e.closed&&i.next(this._value),e}getValue(){if(this.hasError)throw
this.thrownError;if(this.closed)throw new nr;return
this._value}next(i){super.next(this._value=i)}}class SB extends
yt{notifyNext(i,e,n,s,r){this.destination.next(e)}notifyError(i,e){this.destination.error(i)}notifyComplete(i){this.destination.complete()}}class
xB ex
tends
yt{constructor(i,e,n){super(),this.parent=i,this.outerValue=e,this.outerIndex=n,this.index=0}_next(i){this.parent.notifyNext(this.outerValue,i,this.outerIndex,this.index++,this)}_error(i){this.parent.notifyError(i,this),this.unsubscribe()}_complete(){this.parent.notifyComplete(this),this.unsubscribe()}}function
DB(t,i,e,n,s=new xB(t,e,n)){if(!s.closed)return i instanceof
Je?i.subscribe(s):Od(i)(s)}const PT={};class
kB{constructor(i){this.resultSelector=i}call(i,e){return e.subscribe(new
IB(i,this.resultSelector))}}class IB extends
SB{constructor(i,e){super(i),this.resultSelector=e,this.active=0,this.values=[],this.observables=[]}_next(i){this.values.push(PT),this.observables.push(i)}_complete(){const
i=this.observables,e=i.length;if(0===e)this.destination.complete();else{this.active=e,this.toRespond=e;for(let
n=0;n<e;n++)this.add(DB(this,i[n],void
0,n))}}notifyComplete(i){0==(this.active-=1)&&this.destination.complete()}notifyNext(i,e,n){const
s=this.values,o=this.toRespond?s[
n]===PT?--this.toRespond:this.toRespond:0;s[n]=e,0===o&&(this.resultSelector?this._tryResultSelector(s):this.destination.next(s.slice()))}_tryResultSelector(i){let
e;try{e=this.resultSelector.apply(this,i)}catch(n){return void
this.destination.error(n)}this.destination.next(e)}}const td=(()=>{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 FT(t,i){let e=!1;return
arguments.length>=2&&(e=!0),function(s){return s.lift(new EB(t,i,e))}}class
EB{constructor(i,e,n=!1){this.accumulator=i,this.seed=e,this.hasSeed=n}call(i,e){return
e.subscribe(new RB(i,this.accumulator,this.seed,this.hasSeed))}}class RB extends
yt{constructor(i,e,n,s){super(i),this.accumulator=e,this._seed=n,this.hasSeed=s,this.index=0}get
seed(){return this._seed}set
seed(i){this.hasSeed=!0,this._seed=i}_next(i){if(this.hasSeed)return
this._tryNext(i);this.seed=i,this.destination.next(i)}_tryNext(i){cons
t e=this.index++;let
n;try{n=this.accumulator(this.seed,i,e)}catch(s){this.destination.error(s)}this.seed=n,this.destination.next(n)}}function
Mr(t){return function(e){const n=new LB(t),s=e.lift(n);return n.caught=s}}class
LB{constructor(i){this.selector=i}call(i,e){return e.subscribe(new
OB(i,this.selector,this.caught))}}class OB extends
Zo{constructor(i,e,n){super(i),this.selector=e,this.caught=n}error(i){if(!this.isStopped){let
e;try{e=this.selector(i,this.caught)}catch(r){return void
super.error(r)}this._unsubscribeAndRecycle();const n=new Yo(this);this.add(n);const
s=Xo(e,n);s!==n&&this.add(s)}}}function eg(t){return function(e){return
0===t?lu():e.lift(new AB(t))}}class
AB{constructor(i){if(this.total=i,this.total<0)throw new s0}call(i,e){return
e.subscribe(new PB(i,this.total))}}class PB extends
yt{constructor(i,e){super(i),this.total=e,this.ring=new Array,this.count=0}_next(i){const
e=this.ring,n=this.total,s=this.count++;e.length<n?e.push(i):e[s%n]=i}_complete(){const
i=thi
s.destination;let e=this.count;if(e>0){const
n=this.count>=this.total?this.total:this.count,s=this.ring;for(let
r=0;r<n;r++){const o=e++%n;i.next(s[o])}}i.complete()}}function NT(t=VB){return
i=>i.lift(new FB(t))}class FB{constructor(i){this.errorFactory=i}call(i,e){return
e.subscribe(new NB(i,this.errorFactory))}}class NB extends
yt{constructor(i,e){super(i),this.errorFactory=e,this.hasValue=!1}_next(i){this.hasValue=!0,this.destination.next(i)}_complete(){if(this.hasValue)return
this.destination.complete();{let
i;try{i=this.errorFactory()}catch(e){i=e}this.destination.error(i)}}}function VB(){return
new td}function VT(t=null){return i=>i.lift(new BB(t))}class
BB{constructor(i){this.defaultValue=i}call(i,e){return e.subscribe(new
HB(i,this.defaultValue))}}class HB extends
yt{constructor(i,e){super(i),this.defaultValue=e,this.isEmpty=!0}_next(i){this.isEmpty=!1,this.destination.next(i)}_complete(){this.isEmpty&&this.destination.next(this.defaultValue),this.destination.complete()}}fu
nction No(t,i){const e=arguments.length>=2;return
n=>n.pipe(t?Us((s,r)=>t(s,r,n)):Bl,br(1),e?VT(i):NT(()=>new td))}function
Js(){}function li(t,i,e){return function(s){return s.lift(new GB(t,i,e))}}class
GB{constructor(i,e,n){this.nextOrObserver=i,this.error=e,this.complete=n}call(i,e){return
e.subscribe(new UB(i,this.nextOrObserver,this.error,this.complete))}}class UB extends
yt{constructor(i,e,n,s){super(i),this._tapNext=Js,this._tapError=Js,this._tapComplete=Js,this._tapError=n||Js,this._tapComplete=s||Js,Is(e)?(this._context=this,this._tapNext=e):e&&(this._context=e,this._tapNext=e.next||Js,this._tapError=e.error||Js,this._tapComplete=e.complete||Js)}_next(i){try{this._tapNext.call(this._context,i)}catch(e){return
void
this.destination.error(e)}this.destination.next(i)}_error(i){try{this._tapError.call(this._context,i)}catch(e){return
void
this.destination.error(e)}this.destination.error(i)}_complete(){try{this._tapComplete.call(this._context)}catch(i){return
void this.destinati
on.error(i)}return this.destination.complete()}}class
jB{constructor(i){this.callback=i}call(i,e){return e.subscribe(new
$B(i,this.callback))}}class $B extends yt{constructor(i,e){super(i),this.add(new
Et(e))}}class xs{constructor(i,e){this.id=i,this.url=e}}class tg extends
xs{constructor(i,e,n="imperative",s=null){super(i,e),this.navigationTrigger=n,this.restoredState=s}toString(){return`NavigationStart(id:
${this.id}, url: '${this.url}')`}}class vl extends
xs{constructor(i,e,n){super(i,e),this.urlAfterRedirects=n}toString(){return`NavigationEnd(id:
${this.id}, url: '${this.url}', urlAfterRedirects:
'${this.urlAfterRedirects}')`}}class BT extends
xs{constructor(i,e,n){super(i,e),this.reason=n}toString(){return`NavigationCancel(id:
${this.id}, url: '${this.url}')`}}class WB extends
xs{constructor(i,e,n){super(i,e),this.error=n}toString(){return`NavigationError(id:
${this.id}, url: '${this.url}', error: ${this.error})`}}class KB extends
xs{constructor(i,e,n,s){super(i,e),this.urlAfte
rRedirects=n,this.state=s}toString(){return`RoutesRecognized(id: ${this.id}, url:
'${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state:
${this.state})`}}class QB extends
xs{constructor(i,e,n,s){super(i,e),this.urlAfterRedirects=n,this.state=s}toString(){return`GuardsCheckStart(id:
${this.id}, url: '${this.url}', urlAfterRedirects:
'${this.urlAfterRedirects}', state: ${this.state})`}}class JB extends
xs{constructor(i,e,n,s,r){super(i,e),this.urlAfterRedirects=n,this.state=s,this.shouldActivate=r}toString(){return`GuardsCheckEnd(id:
${this.id}, url: '${this.url}', urlAfterRedirects:
'${this.urlAfterRedirects}', state: ${this.state}, shouldActivate:
${this.shouldActivate})`}}class YB extends
xs{constructor(i,e,n,s){super(i,e),this.urlAfterRedirects=n,this.state=s}toString(){return`ResolveStart(id:
${this.id}, url: '${this.url}', urlAfterRedirects:
'${this.urlAfterRedirects}', state: ${this.state})`}}class ZB extends
xs{constructor(i,e,n,s){super(i,e),this.urlAfterRedire
cts=n,this.state=s}toString(){return`ResolveEnd(id: ${this.id}, url:
'${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state:
${this.state})`}}class
HT{constructor(i){this.route=i}toString(){return`RouteConfigLoadStart(path:
${this.route.path})`}}class
qT{constructor(i){this.route=i}toString(){return`RouteConfigLoadEnd(path:
${this.route.path})`}}class
XB{constructor(i){this.snapshot=i}toString(){return`ChildActivationStart(path:
'${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class
e8{constructor(i){this.snapshot=i}toString(){return`ChildActivationEnd(path:
'${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class
t8{constructor(i){this.snapshot=i}toString(){return`ActivationStart(path:
'${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class
n8{constructor(i){this.snapshot=i}toString(){return`ActivationEnd(path:
'${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class
GT{constructor(i,e,n){t
his.routerEvent=i,this.position=e,this.anchor=n}toString(){return`Scroll(anchor:
'${this.anchor}', position: '${this.position?`${this.position[0]},
${this.position[1]}`:null}')`}}const Ke="primary";class
i8{constructor(i){this.params=i||{}}has(i){return
Object.prototype.hasOwnProperty.call(this.params,i)}get(i){if(this.has(i)){const
e=this.params[i];return Array.isArray(e)?e[0]:e}return
null}getAll(i){if(this.has(i)){const e=this.params[i];return
Array.isArray(e)?e:[e]}return[]}get keys(){return Object.keys(this.params)}}function
Vo(t){return new i8(t)}const UT="ngNavigationCancelingError";function
ng(t){const i=Error("NavigationCancelingError: "+t);return i[UT]=!0,i}function
r8(t,i,e){const
n=e.path.split("/");if(n.length>t.length||"full"===e.pathMatch&&(i.hasChildren()||n.length<t.length))return
null;const s={};for(let r=0;r<n.length;r++){const
o=n[r],u=t[r];if(o.startsWith(":"))s[o.substring(1)]=u;else if(o!==u.path)return
null}return{consumed:t.slice(0,n.length),posParams:s}}fun
ction as(t,i){const e=t?Object.keys(t):void 0,n=i?Object.keys(i):void
0;if(!e||!n||e.length!=n.length)return!1;let s;for(let
r=0;r<e.length;r++)if(s=e[r],!zT(t[s],i[s]))return!1;return!0}function
zT(t,i){if(Array.isArray(t)&&Array.isArray(i)){if(t.length!==i.length)return!1;const
e=[...t].sort(),n=[...i].sort();return e.every((s,r)=>n[r]===s)}return t===i}function
jT(t){return Array.prototype.concat.apply([],t)}function $T(t){return
t.length>0?t[t.length-1]:null}function xn(t,i){for(const e in
t)t.hasOwnProperty(e)&&i(t[e],e)}function ls(t){return
Dh(t)?t:Ra(t)?Mn(Promise.resolve(t)):oe(t)}const l8={exact:function
QT(t,i,e){if(!Ir(t.segments,i.segments)||!nd(t.segments,i.segments,e)||t.numberOfChildren!==i.numberOfChildren)return!1;for(const
n in
i.children)if(!t.children[n]||!QT(t.children[n],i.children[n],e))return!1;return!0},subset:JT},WT={exact:function
c8(t,i){return as(t,i)},subset:function u8(t,i){return
Object.keys(i).length<=Object.keys(t).length&&Object.keys(i).every(e=>z
T(t[e],i[e]))},ignored:()=>!0};function KT(t,i,e){return
l8[e.paths](t.root,i.root,e.matrixParams)&&WT[e.queryParams](t.queryParams,i.queryParams)&&!("exact"===e.fragment&&t.fragment!==i.fragment)}function
JT(t,i,e){return YT(t,i,i.segments,e)}function
YT(t,i,e,n){if(t.segments.length>e.length){const
s=t.segments.slice(0,e.length);return!(!Ir(s,e)||i.hasChildren()||!nd(s,e,n))}if(t.segments.length===e.length){if(!Ir(t.segments,e)||!nd(t.segments,e,n))return!1;for(const
s in
i.children)if(!t.children[s]||!JT(t.children[s],i.children[s],n))return!1;return!0}{const
s=e.slice(0,t.segments.length),r=e.slice(t.segments.length);return!!(Ir(t.segments,s)&&nd(t.segments,s,n)&&t.children[Ke])&&YT(t.children[Ke],i,r,n)}}function
nd(t,i,e){return i.every((n,s)=>WT[e](t[s].parameters,n.parameters))}class
kr{constructor(i,e,n){this.root=i,this.queryParams=e,this.fragment=n}get
queryParamMap(){return
this._queryParamMap||(this._queryParamMap=Vo(this.queryParams)),this._queryParamMap}toString(){ret
urn h8.serialize(this)}}class
Xe{constructor(i,e){this.segments=i,this.children=e,this.parent=null,xn(e,(n,s)=>n.parent=this)}hasChildren(){return
this.numberOfChildren>0}get numberOfChildren(){return
Object.keys(this.children).length}toString(){return id(this)}}class
Cl{constructor(i,e){this.path=i,this.parameters=e}get parameterMap(){return
this._parameterMap||(this._parameterMap=Vo(this.parameters)),this._parameterMap}toString(){return
n2(this)}}function Ir(t,i){return
t.length===i.length&&t.every((e,n)=>e.path===i[n].path)}class ZT{}class
XT{parse(i){const e=new w8(i);return new
kr(e.parseRootSegment(),e.parseQueryParams(),e.parseFragment())}serialize(i){const
e=`/${yl(i.root,!0)}`,n=function g8(t){const i=Object.keys(t).map(e=>{const
n=t[e];return
Array.isArray(n)?n.map(s=>`${sd(e)}=${sd(s)}`).join("&"):`${sd(e)}=${sd(n)}`}).filter(e=>!!e);return
i.length?`?${i.join("&")}`:""}(i.queryParams),s="string"==typeof
i.fragment?`#${function m8(t){return encodeURI(t)}(i.fragment)}`:"";
return`${e}${n}${s}`}}const h8=new XT;function id(t){return
t.segments.map(i=>n2(i)).join("/")}function
yl(t,i){if(!t.hasChildren())return id(t);if(i){const
e=t.children[Ke]?yl(t.children[Ke],!1):"",n=[];return
xn(t.children,(s,r)=>{r!==Ke&&n.push(`${r}:${yl(s,!1)}`)}),n.length>0?`${e}(${n.join("//")})`:e}{const
e=function p8(t,i){let e=[];return
xn(t.children,(n,s)=>{s===Ke&&(e=e.concat(i(n,s)))}),xn(t.children,(n,s)=>{s!==Ke&&(e=e.concat(i(n,s)))}),e}(t,(n,s)=>s===Ke?[yl(t.children[Ke],!1)]:[`${s}:${yl(n,!1)}`]);return
1===Object.keys(t.children).length&&null!=t.children[Ke]?`${id(t)}/${e[0]}`:`${id(t)}/(${e.join("//")})`}}function
e2(t){return
encodeURIComponent(t).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function
sd(t){return e2(t).replace(/%3B/gi,";")}function ig(t){return
e2(t).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function
rd(t){return decodeURIComponent(t)}function t2(t){return
rd(t.replace(/\+/g,"%20"))}funct
ion n2(t){return`${ig(t.path)}${function f8(t){return
Object.keys(t).map(i=>`;${ig(i)}=${ig(t[i])}`).join("")}(t.parameters)}`}const
_8=/^[^\/()?;=#]+/;function od(t){const i=t.match(_8);return i?i[0]:""}const
b8=/^[^=?&#]+/,C8=/^[^&#]+/;class
w8{constructor(i){this.url=i,this.remaining=i}parseRootSegment(){return
this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new
Xe([],{}):new Xe([],this.parseChildren())}parseQueryParams(){const
i={};if(this.consumeOptional("?"))do{this.parseQueryParam(i)}while(this.consumeOptional("&"));return
i}parseFragment(){return
this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(""===this.remaining)return{};this.consumeOptional("/");const
i=[];for(this.peekStartsWith("(")||i.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),i.push(this.parseSegment());let
e={};this.peekStartsWith("/(")&&(this.capture
("/"),e=this.parseParens(!0));let n={};return
this.peekStartsWith("(")&&(n=this.parseParens(!1)),(i.length>0||Object.keys(e).length>0)&&(n[Ke]=new
Xe(i,e)),n}parseSegment(){const
i=od(this.remaining);if(""===i&&this.peekStartsWith(";"))throw
new Error(`Empty path url segment cannot have parameters:
'${this.remaining}'.`);return this.capture(i),new
Cl(rd(i),this.parseMatrixParams())}parseMatrixParams(){const
i={};for(;this.consumeOptional(";");)this.parseParam(i);return
i}parseParam(i){const e=od(this.remaining);if(!e)return;this.capture(e);let
n="";if(this.consumeOptional("=")){const
s=od(this.remaining);s&&(n=s,this.capture(n))}i[rd(e)]=rd(n)}parseQueryParam(i){const
e=function v8(t){const i=t.match(b8);return
i?i[0]:""}(this.remaining);if(!e)return;this.capture(e);let
n="";if(this.consumeOptional("=")){const o=function y8(t){const
i=t.match(C8);return
i?i[0]:""}(this.remaining);o&&(n=o,this.capture(n))}const
s=t2(e),r=t2(n);if(i.hasOwnProperty(s)){let o=i[s];Array.isArray(o)||(o=[
o],i[s]=o),o.push(r)}else i[s]=r}parseParens(i){const
e={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const
n=od(this.remaining),s=this.remaining[n.length];if("/"!==s&&")"!==s&&";"!==s)throw
new Error(`Cannot parse url '${this.url}'`);let
r;n.indexOf(":")>-1?(r=n.substr(0,n.indexOf(":")),this.capture(r),this.capture(":")):i&&(r=Ke);const
o=this.parseChildren();e[r]=1===Object.keys(o).length?o[Ke]:new
Xe([],o),this.consumeOptional("//")}return e}peekStartsWith(i){return
this.remaining.startsWith(i)}consumeOptional(i){return!!this.peekStartsWith(i)&&(this.remaining=this.remaining.substring(i.length),!0)}capture(i){if(!this.consumeOptional(i))throw
new Error(`Expected "${i}".`)}}class s2{constructor(i){this._root=i}get
root(){return this._root.value}parent(i){const e=this.pathFromRoot(i);return
e.length>1?e[e.length-2]:null}children(i){const e=sg(i,this._root);return
e?e.children.map(n=>n.value):[]}firstChild(i){const e=sg(i,this._root);return
e&&e.chil
dren.length>0?e.children[0].value:null}siblings(i){const e=rg(i,this._root);return
e.length<2?[]:e[e.length-2].children.map(s=>s.value).filter(s=>s!==i)}pathFromRoot(i){return
rg(i,this._root).map(e=>e.value)}}function sg(t,i){if(t===i.value)return i;for(const e
of i.children){const n=sg(t,e);if(n)return n}return null}function
rg(t,i){if(t===i.value)return[i];for(const e of i.children){const
n=rg(t,e);if(n.length)return n.unshift(i),n}return[]}class
Ds{constructor(i,e){this.value=i,this.children=e}toString(){return`TreeNode(${this.value})`}}function
Bo(t){const i={};return t&&t.children.forEach(e=>i[e.value.outlet]=e),i}class
r2 extends s2{constructor(i,e){super(i),this.snapshot=e,og(this,i)}toString(){return
this.snapshot.toString()}}function o2(t,i){const e=function T8(t,i){const o=new
ad([],{},{},"",{},Ke,i,null,t.root,-1,{});return new l2("",new
Ds(o,[]))}(t,i),n=new zi([new Cl("",{})]),s=new zi({}),r=new zi({}),o=new
zi({}),u=new zi(""),h=new Er(n,s,o,u,r,Ke,i,e.root);return h.
snapshot=e.root,new r2(new Ds(h,[]),e)}class
Er{constructor(i,e,n,s,r,o,u,h){this.url=i,this.params=e,this.queryParams=n,this.fragment=s,this.data=r,this.outlet=o,this.component=u,this._futureSnapshot=h}get
routeConfig(){return this._futureSnapshot.routeConfig}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=this.params.pipe(et(i=>Vo(i)))),this._paramMap}get
queryParamMap(){return
this._queryParamMap||(this._queryParamMap=this.queryParams.pipe(et(i=>Vo(i)))),this._queryParamMap}toString(){return
this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function
a2(t,i="emptyOnly"){const e=t.pathFromRoot;let
n=0;if("always"!==i)for(n=e.length-1;n>=1;){const
s=e[n],r=e[n-1];if(s.routeConfig&&""===s.r
outeConfig.path)n--;else{if(r.component)break;n--}}return function S8(t){return
t.reduce((i,e)=>({params:Object.assign(Object.assign({},i.params),e.params),data:Object.assign(Object.assign({},i.data),e.data),resolve:Object.assign(Object.assign({},i.resolve),e._resolvedData)}),{params:{},data:{},resolve:{}})}(e.slice(n))}class
ad{constructor(i,e,n,s,r,o,u,h,b,y,w){this.url=i,this.params=e,this.queryParams=n,this.fragment=s,this.data=r,this.outlet=o,this.component=u,this.routeConfig=h,this._urlSegment=b,this._lastPathIndex=y,this._resolve=w}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=Vo(this.params)),this._paramMap}get queryParamMap(){return
this._queryParamMap||(this._queryParamMap=Vo(this.queryParams)),this._
queryParamMap}toString(){return`Route(url:'${this.url.map(n=>n.toString()).join("/")}',
path:'${this.routeConfig?this.routeConfig.path:""}')`}}class l2 extends
s2{constructor(i,e){super(e),this.url=i,og(this,e)}toString(){return
c2(this._root)}}function
og(t,i){i.value._routerState=t,i.children.forEach(e=>og(t,e))}function c2(t){const
i=t.children.length>0?` { ${t.children.map(c2).join(", ")} }
`:"";return`${t.value}${i}`}function ag(t){if(t.snapshot){const
i=t.snapshot,e=t._futureSnapshot;t.snapshot=e,as(i.queryParams,e.queryParams)||t.queryParams.next(e.queryParams),i.fragment!==e.fragment&&t.fragment.next(e.fragment),as(i.params,e.params)||t.params.next(e.params),function
o8(t,i){if(t.length!==i.length)return!1;for(let
e=0;e<t.length;++e)if(!as(t[e],i[e]))return!1;return!0}(i.url,e.url)||t.url.next(e.url),as(i.data,e.data)||t.data.next(e.data)}else
t.snapshot=t._futureSnapshot,t.data.next(t._futureSnapshot.data)}function lg(t,i){const
e=as(t.params,i.params)&&function d8(t,i){ret
urn
Ir(t,i)&&t.every((e,n)=>as(e.parameters,i[n].parameters))}(t.url,i.url);return
e&&!(!t.parent!=!i.parent)&&(!t.parent||lg(t.parent,i.parent))}function
wl(t,i,e){if(e&&t.shouldReuseRoute(i.value,e.value.snapshot)){const
n=e.value;n._futureSnapshot=i.value;const s=function D8(t,i,e){return
i.children.map(n=>{for(const s of
e.children)if(t.shouldReuseRoute(n.value,s.value.snapshot))return wl(t,n,s);return
wl(t,n)})}(t,i,e);return new Ds(n,s)}{if(t.shouldAttach(i.value)){const
r=t.retrieve(i.value);if(null!==r){const o=r.route;return
o.value._futureSnapshot=i.value,o.children=i.children.map(u=>wl(t,u)),o}}const
n=function M8(t){return new Er(new zi(t.url),new zi(t.params),new zi(t.queryParams),new
zi(t.fragment),new
zi(t.data),t.outlet,t.component,t)}(i.value),s=i.children.map(r=>wl(t,r));return new
Ds(n,s)}}function ld(t){return"object"==typeof
t&&null!=t&&!t.outlets&&!t.segmentPath}function
Tl(t){return"object"==typeof t&&null!=t&&t.outlets}function
cg(t,i,e,n,s){let r={};if(n&&xn
(n,(u,h)=>{r[h]=Array.isArray(u)?u.map(b=>`${b}`):`${u}`}),t===i)return new
kr(e,r,s);const o=u2(t,i,e);return new kr(o,r,s)}function u2(t,i,e){const n={};return
xn(t.children,(s,r)=>{n[r]=s===i?e:u2(s,i,e)}),new Xe(t.segments,n)}class
d2{constructor(i,e,n){if(this.isAbsolute=i,this.numberOfDoubleDots=e,this.commands=n,i&&n.length>0&&ld(n[0]))throw
new Error("Root segment cannot have matrix parameters");const
s=n.find(Tl);if(s&&s!==$T(n))throw new Error("{outlets:{}} has to be the last
command")}toRoot(){return
this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class
ug{constructor(i,e,n){this.segmentGroup=i,this.processChildren=e,this.index=n}}function
p2(t,i,e){if(t||(t=new Xe([],{})),0===t.segments.length&&t.hasChildren())return
cd(t,i,e);const n=function O8(t,i,e){let n=0,s=i;const
r={match:!1,pathIndex:0,commandIndex:0};for(;s<t.segments.length;){if(n>=e.length)return
r;const o=t.segments[s],u=e[n];if(Tl(u))break;const
h=`${u}`,b=n<e.length-1?e[n+1]:null;if(s>0&&
void 0===h)break;if(h&&b&&"object"==typeof b&&void
0===b.outlets){if(!m2(h,b,o))return r;n+=2}else{if(!m2(h,{},o))return
r;n++}s++}return{match:!0,pathIndex:s,commandIndex:n}}(t,i,e),s=e.slice(n.commandIndex);if(n.match&&n.pathIndex<t.segments.length){const
r=new Xe(t.segments.slice(0,n.pathIndex),{});return r.children[Ke]=new
Xe(t.segments.slice(n.pathIndex),t.children),cd(r,0,s)}return
n.match&&0===s.length?new
Xe(t.segments,{}):n.match&&!t.hasChildren()?dg(t,i,e):n.match?cd(t,0,s):dg(t,i,e)}function
cd(t,i,e){if(0===e.length)return new Xe(t.segments,{});{const n=function L8(t){return
Tl(t[0])?t[0].outlets:{[Ke]:t}}(e),s={};return xn(n,(r,o)=>{"string"==typeof
r&&(r=[r]),null!==r&&(s[o]=p2(t.children[o],i,r))}),xn(t.children,(r,o)=>{void
0===n[o]&&(s[o]=r)}),new Xe(t.segments,s)}}function dg(t,i,e){const
n=t.segments.slice(0,i);let s=0;for(;s<e.length;){const r=e[s];if(Tl(r)){const
h=A8(r.outlets);return new Xe(n,h)}if(0===s&&ld(e[0])){n.push(new
Cl(t.segments[i].path,h2(e[0]))),s
++;continue}const
o=Tl(r)?r.outlets[Ke]:`${r}`,u=s<e.length-1?e[s+1]:null;o&&u&&ld(u)?(n.push(new
Cl(o,h2(u))),s+=2):(n.push(new Cl(o,{})),s++)}return new Xe(n,{})}function A8(t){const
i={};return xn(t,(e,n)=>{"string"==typeof
e&&(e=[e]),null!==e&&(i[n]=dg(new Xe([],{}),0,e))}),i}function h2(t){const
i={};return xn(t,(e,n)=>i[n]=`${e}`),i}function m2(t,i,e){return
t==e.path&&as(i,e.parameters)}class
F8{constructor(i,e,n,s){this.routeReuseStrategy=i,this.futureState=e,this.currState=n,this.forwardEvent=s}activate(i){const
e=this.futureState._root,n=this.currState?this.currState._root:null;this.deactivateChildRoutes(e,n,i),ag(this.futureState.root),this.activateChildRoutes(e,n,i)}deactivateChildRoutes(i,e,n){const
s=Bo(e);i.children.forEach(r=>{const
o=r.value.outlet;this.deactivateRoutes(r,s[o],n),delete
s[o]}),xn(s,(r,o)=>{this.deactivateRouteAndItsChildren(r,n)})}deactivateRoutes(i,e,n){const
s=i.value,r=e?e.value:null;if(s===r)if(s.component){const
o=n.getContext(s.outlet);o&&this
.deactivateChildRoutes(i,e,o.children)}else this.deactivateChildRoutes(i,e,n);else
r&&this.deactivateRouteAndItsChildren(e,n)}deactivateRouteAndItsChildren(i,e){i.value.component&&this.routeReuseStrategy.shouldDetach(i.value.snapshot)?this.detachAndStoreRouteSubtree(i,e):this.deactivateRouteAndOutlet(i,e)}detachAndStoreRouteSubtree(i,e){const
n=e.getContext(i.value.outlet),s=n&&i.value.component?n.children:e,r=Bo(i);for(const
o of
Object.keys(r))this.deactivateRouteAndItsChildren(r[o],s);if(n&&n.outlet){const
o=n.outlet.detach(),u=n.children.onOutletDeactivated();this.routeReuseStrategy.store(i.value.snapshot,{componentRef:o,route:i,contexts:u})}}deactivateRouteAndOutlet(i,e){const
n=e.getContext(i.value.outlet),s=n&&i.value.component?n.children:e,r=Bo(i);for(const
o of
Object.keys(r))this.deactivateRouteAndItsChildren(r[o],s);n&&n.outlet&&(n.outlet.deactivate(),n.children.onOutletDeactivated(),n.attachRef=null,n.resolver=null,n.route=null)}activateChildRoutes(i,e,n){const
s=Bo(e);i
.children.forEach(r=>{this.activateRoutes(r,s[r.value.outlet],n),this.forwardEvent(new
n8(r.value.snapshot))}),i.children.length&&this.forwardEvent(new
e8(i.value.snapshot))}activateRoutes(i,e,n){const
s=i.value,r=e?e.value:null;if(ag(s),s===r)if(s.component){const
o=n.getOrCreateContext(s.outlet);this.activateChildRoutes(i,e,o.children)}else
this.activateChildRoutes(i,e,n);else if(s.component){const
o=n.getOrCreateContext(s.outlet);if(this.routeReuseStrategy.shouldAttach(s.snapshot)){const
u=this.routeReuseStrategy.retrieve(s.snapshot);this.routeReuseStrategy.store(s.snapshot,null),o.children.onOutletReAttached(u.contexts),o.attachRef=u.componentRef,o.route=u.route.value,o.outlet&&o.outlet.attach(u.componentRef,u.route.value),ag(u.route.value),this.activateChildRoutes(i,null,o.children)}else{const
u=function N8(t){for(let i=t.parent;i;i=i.parent){const
e=i.routeConfig;if(e&&e._loadedConfig)return
e._loadedConfig;if(e&&e.component)return null}return
null}(s.snapshot),h=u?u.module.co
mponentFactoryResolver:null;o.attachRef=null,o.route=s,o.resolver=h,o.outlet&&o.outlet.activateWith(s,h),this.activateChildRoutes(i,null,o.children)}}else
this.activateChildRoutes(i,null,n)}}class
pg{constructor(i,e){this.routes=i,this.module=e}}function
Ys(t){return"function"==typeof t}function Rr(t){return t instanceof kr}const
Sl=Symbol("INITIAL_VALUE");function xl(){return qi(t=>function MB(...t){let
i,e;return Vr(t[t.length-1])&&(e=t.pop()),"function"==typeof
t[t.length-1]&&(i=t.pop()),1===t.length&&Nr(t[0])&&(t=t[0]),Pd(t,e).lift(new
kB(i))}(t.map(i=>i.pipe(br(1),Ju(Sl)))).pipe(FT((i,e)=>{let n=!1;return
e.reduce((s,r,o)=>s!==Sl?s:(r===Sl&&(n=!0),n||!1!==r&&o!==e.length-1&&!Rr(r)?s:r),i)},Sl),Us(i=>i!==Sl),et(i=>Rr(i)?i:!0===i),br(1)))}class
U8{constructor(){this.outlet=null,this.route=null,this.resolver=null,this.children=new
Dl,this.attachRef=null}}class Dl{constructor(){this.contexts=new
Map}onChildOutletCreated(i,e){const n=this.getOrCreateContext(i);n.outlet=e,this.contex
ts.set(i,n)}onChildOutletDestroyed(i){const
e=this.getContext(i);e&&(e.outlet=null,e.attachRef=null)}onOutletDeactivated(){const
i=this.contexts;return this.contexts=new
Map,i}onOutletReAttached(i){this.contexts=i}getOrCreateContext(i){let
e=this.getContext(i);return e||(e=new U8,this.contexts.set(i,e)),e}getContext(i){return
this.contexts.get(i)||null}}let Ml=(()=>{class
t{constructor(e,n,s,r,o){this.parentContexts=e,this.location=n,this.resolver=s,this.changeDetector=o,this.activated=null,this._activatedRoute=null,this.activateEvents=new
H,this.deactivateEvents=new H,this.attachEvents=new H,this.detachEvents=new
H,this.name=r||Ke,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,n){this.activated=e,this._activatedRoute=n,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,n){if(this.isActivated)throw
new Error("Cannot activate an already activated
outlet");this._activatedRoute=e;const
o=(n=n||this.resolver).resolveComponentFactory(e._futureSnapshot.routeConfig.component),u=this.p
arentContexts.getOrCreateContext(this.name).children,h=new
z8(e,u,this.location.injector);this.activated=this.location.createComponent(o,this.location.length,h),this.changeDetector.markForCheck(),this.activateEvents.emit(this.activated.instance)}}return
t.\u0275fac=function(e){return
new(e||t)(D(Dl),D(vi),D(Va),ua("name"),D(rt))},t.\u0275dir=le({type:t,selectors:[["router-outlet"]],outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"]}),t})();class
z8{constructor(i,e,n){this.route=i,this.childContexts=e,this.parent=n}get(i,e){return
i===Er?this.route:i===Dl?this.childContexts:this.parent.get(i,e)}}let f2=(()=>{class
t{}return t.\u0275fac=function(e){return
new(e||t)},t.\u0275cmp=z({type:t,selectors:[["ng-component"]],decls:1,vars:0,template:function(e,n){1&e&&k(0,"router-outlet")},directives:[Ml],encapsulation:2}),t})();function
g2(t,i=""){for(let e=0;e<t.length;e++){const n=t[e];j8(n,$8(i,n))}}function
j8(t
,i){t.children&&g2(t.children,i)}function $8(t,i){return
i?t||i.path?t&&!i.path?`${t}/`:!t&&i.path?i.path:`${t}/${i.path}`:"":t}function
hg(t){const
i=t.children&&t.children.map(hg),e=i?Object.assign(Object.assign({},t),{children:i}):Object.assign({},t);return!e.component&&(i||e.loadChildren)&&e.outlet&&e.outlet!==Ke&&(e.component=f2),e}function
xi(t){return t.outlet||Ke}function _2(t,i){const e=t.filter(n=>xi(n)===i);return
e.push(...t.filter(n=>xi(n)!==i)),e}const
b2={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function
ud(t,i,e){var
n;if(""===i.path)return"full"===i.pathMatch&&(t.hasChildren()||e.length>0)?Object.assign({},b2):{matched:!0,consumedSegments:[],remainingSegments:e,parameters:{},positionalParamSegments:{}};const
r=(i.matcher||r8)(e,t,i);if(!r)return Object.assign({},b2);const
o={};xn(r.posParams,(h,b)=>{o[b]=h.path});const
u=r.consumed.length>0?Object.assign(Object.assign({},o),r.consumed[r.consumed.length-1].paramete
rs):o;return{matched:!0,consumedSegments:r.consumed,remainingSegments:e.slice(r.consumed.length),parameters:u,positionalParamSegments:null!==(n=r.posParams)&&void
0!==n?n:{}}}function
dd(t,i,e,n,s="corrected"){if(e.length>0&&function Q8(t,i,e){return
e.some(n=>pd(t,i,n)&&xi(n)!==Ke)}(t,e,n)){const o=new Xe(i,function
K8(t,i,e,n){const s={};s[Ke]=n,n._sourceSegment=t,n._segmentIndexShift=i.length;for(const
r of e)if(""===r.path&&xi(r)!==Ke){const o=new
Xe([],{});o._sourceSegment=t,o._segmentIndexShift=i.length,s[xi(r)]=o}return s}(t,i,n,new
Xe(e,t.children)));return
o._sourceSegment=t,o._segmentIndexShift=i.length,{segmentGroup:o,slicedSegments:[]}}if(0===e.length&&function
J8(t,i,e){return e.some(n=>pd(t,i,n))}(t,e,n)){const o=new Xe(t.segments,function
W8(t,i,e,n,s,r){const o={};for(const u of n)if(pd(t,e,u)&&!s[xi(u)]){const h=new
Xe([],{});h._sourceSegment=t,h._segmentIndexShift="legacy"===r?t.segments.length:i.length,o[xi(u)]=h}return
Object.assign(Object.assign({},s),o)}(t,i,e,
n,t.children,s));return
o._sourceSegment=t,o._segmentIndexShift=i.length,{segmentGroup:o,slicedSegments:e}}const
r=new Xe(t.segments,t.children);return
r._sourceSegment=t,r._segmentIndexShift=i.length,{segmentGroup:r,slicedSegments:e}}function
pd(t,i,e){return(!(t.hasChildren()||i.length>0)||"full"!==e.pathMatch)&&""===e.path}function
v2(t,i,e,n){return!!(xi(t)===n||n!==Ke&&pd(i,e,t))&&("**"===t.path||ud(i,t,e).matched)}function
C2(t,i,e){return 0===i.length&&!t.children[e]}class
hd{constructor(i){this.segmentGroup=i||null}}class
y2{constructor(i){this.urlTree=i}}function kl(t){return tl(new hd(t))}function
w2(t){return tl(new y2(t))}function Y8(t){return tl(new Error(`Only absolute redirects can
have named outlets. redirectTo: '${t}'`))}class
eH{constructor(i,e,n,s,r){this.configLoader=e,this.urlSerializer=n,this.urlTree=s,this.config=r,this.allowRedirects=!0,this.ngModule=i.get(_s)}apply(){const
i=dd(this.urlTree.root,[],[],this.config).segmentGroup,e=new Xe(i.segments,i.children)
;return
this.expandSegmentGroup(this.ngModule,this.config,e,Ke).pipe(et(r=>this.createUrlTree(mg(r),this.urlTree.queryParams,this.urlTree.fragment))).pipe(Mr(r=>{if(r
instanceof y2)return this.allowRedirects=!1,this.match(r.urlTree);throw r instanceof
hd?this.noMatchError(r):r}))}match(i){return
this.expandSegmentGroup(this.ngModule,this.config,i.root,Ke).pipe(et(s=>this.createUrlTree(mg(s),i.queryParams,i.fragment))).pipe(Mr(s=>{throw
s instanceof hd?this.noMatchError(s):s}))}noMatchError(i){return new Error(`Cannot match
any routes. URL Segment: '${i.segmentGroup}'`)}createUrlTree(i,e,n){const
s=i.segments.length>0?new Xe([],{[Ke]:i}):i;return new
kr(s,e,n)}expandSegmentGroup(i,e,n,s){return
0===n.segments.length&&n.hasChildren()?this.expandChildren(i,e,n).pipe(et(r=>new
Xe([],r))):this.expandSegment(i,n,e,n.segments,s,!0)}expandChildren(i,e,n){const
s=[];for(const r of
Object.keys(n.children))"primary"===r?s.unshift(r):s.push(r);return
Mn(s).pipe(_r(r=>{const o=n.children[r],u=_2
(e,r);return
this.expandSegmentGroup(i,u,o,r).pipe(et(h=>({segment:h,outlet:r})))}),FT((r,o)=>(r[o.outlet]=o.segment,r),{}),function
qB(t,i){const e=arguments.length>=2;return
n=>n.pipe(t?Us((s,r)=>t(s,r,n)):Bl,eg(1),e?VT(i):NT(()=>new
td))}())}expandSegment(i,e,n,s,r,o){return
Mn(n).pipe(_r(u=>this.expandSegmentAgainstRoute(i,e,n,u,s,r,o).pipe(Mr(b=>{if(b
instanceof hd)return oe(null);throw b}))),No(u=>!!u),Mr((u,h)=>{if(u instanceof
td||"EmptyError"===u.name)return C2(e,s,r)?oe(new Xe([],{})):kl(e);throw
u}))}expandSegmentAgainstRoute(i,e,n,s,r,o,u){return v2(s,e,r,o)?void
0===s.redirectTo?this.matchSegmentAgainstRoute(i,e,s,r,o):u&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(i,e,n,s,r,o):kl(e):kl(e)}expandSegmentAgainstRouteUsingRedirect(i,e,n,s,r,o){return"**"===s.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(i,n,s,o):this.expandRegularSegmentAgainstRouteUsingRedirect(i,e,n,s,r,o)}expandWildCardWithParamsAgainstRouteUsingRedirect(i,e,n,s){const
r=this.applyRedirectCommands([],n.redirectTo,{});return
n.redirectTo.startsWith("/")?w2(r):this.lineralizeSegments(n,r).pipe(yn(o=>{const
u=new Xe(o,{});return
this.expandSegment(i,u,e,o,s,!1)}))}expandRegularSegmentAgainstRouteUsingRedirect(i,e,n,s,r,o){const{matched:u,consumedSegments:h,remainingSegments:b,positionalParamSegments:y}=ud(e,s,r);if(!u)return
kl(e);const w=this.applyRedirectCommands(h,s.redirectTo,y);return
s.redirectTo.startsWith("/")?w2(w):this.lineralizeSegments(s,w).pipe(yn(M=>this.expandSegment(i,e,n,M.concat(b),o,!1)))}matchSegmentAgainstRoute(i,e,n,s,r){if("**"===n.path)return
n.loadChildren?(n._loadedConfig?oe(n._loadedConfig):this.configLoader.load(i.injector,n)).pipe(et(w=>(n._loadedConfig=w,new
Xe(s,{})))):oe(new
Xe(s,{}));const{matched:o,consumedSegments:u,remainingSegments:h}=ud(e,n,s);return
o?this.getChildConfig(i,n,s).pipe(yn(y=>{const
w=y.module,M=y.routes,{segmentGroup:E,slicedSegments:L}=dd(e,u,h,M),O=new
Xe(E.segments,E.children);if(0===L.length&&O
.hasChildren())return this.expandChildren(w,M,O).pipe(et(J=>new
Xe(u,J)));if(0===M.length&&0===L.length)return oe(new Xe(u,{}));const
N=xi(n)===r;return this.expandSegment(w,O,M,L,N?Ke:r,!0).pipe(et(P=>new
Xe(u.concat(P.segments),P.children)))})):kl(e)}getChildConfig(i,e,n){return
e.children?oe(new pg(e.children,i)):e.loadChildren?void
0!==e._loadedConfig?oe(e._loadedConfig):this.runCanLoadGuards(i.injector,e,n).pipe(yn(s=>s?this.configLoader.load(i.injector,e).pipe(et(r=>(e._loadedConfig=r,r))):function
Z8(t){return tl(ng(`Cannot load children because the guard of the route "path:
'${t.path}'" returned false`))}(e))):oe(new
pg([],i))}runCanLoadGuards(i,e,n){const s=e.canLoad;if(!s||0===s.length)return
oe(!0);const r=s.map(o=>{const u=i.get(o);let h;if(function B8(t){return
t&&Ys(t.canLoad)}(u))h=u.canLoad(e,n);else{if(!Ys(u))throw new Error("Invalid
CanLoad guard");h=u(e,n)}return ls(h)});return
oe(r).pipe(xl(),li(o=>{if(!Rr(o))return;const u=ng(`Redirecting to
"${this.urlSerialize
r.serialize(o)}"`);throw u.url=o,u}),et(o=>!0===o))}lineralizeSegments(i,e){let
n=[],s=e.root;for(;;){if(n=n.concat(s.segments),0===s.numberOfChildren)return
oe(n);if(s.numberOfChildren>1||!s.children[Ke])return
Y8(i.redirectTo);s=s.children[Ke]}}applyRedirectCommands(i,e,n){return
this.applyRedirectCreatreUrlTree(e,this.urlSerializer.parse(e),i,n)}applyRedirectCreatreUrlTree(i,e,n,s){const
r=this.createSegmentGroup(i,e.root,n,s);return new
kr(r,this.createQueryParams(e.queryParams,this.urlTree.queryParams),e.fragment)}createQueryParams(i,e){const
n={};return xn(i,(s,r)=>{if("string"==typeof
s&&s.startsWith(":")){const u=s.substring(1);n[r]=e[u]}else
n[r]=s}),n}createSegmentGroup(i,e,n,s){const r=this.createSegments(i,e.segments,n,s);let
o={};return xn(e.children,(u,h)=>{o[h]=this.createSegmentGroup(i,u,n,s)}),new
Xe(r,o)}createSegments(i,e,n,s){return
e.map(r=>r.path.startsWith(":")?this.findPosParam(i,r,s):this.findOrReturn(r,n))}findPosParam(i,e,n){const
s=n[e.path.substring(1)];
if(!s)throw new Error(`Cannot redirect to '${i}'. Cannot find
'${e.path}'.`);return s}findOrReturn(i,e){let n=0;for(const s of
e){if(s.path===i.path)return e.splice(n),s;n++}return i}}function mg(t){const
i={};for(const n of Object.keys(t.children)){const
r=mg(t.children[n]);(r.segments.length>0||r.hasChildren())&&(i[n]=r)}return
function tH(t){if(1===t.numberOfChildren&&t.children[Ke]){const
i=t.children[Ke];return new Xe(t.segments.concat(i.segments),i.children)}return t}(new
Xe(t.segments,i))}class
T2{constructor(i){this.path=i,this.route=this.path[this.path.length-1]}}class
md{constructor(i,e){this.component=i,this.route=e}}function iH(t,i,e){const
n=t._root;return Il(n,i?i._root:null,e,[n.value])}function fd(t,i,e){const n=function
rH(t){if(!t)return null;for(let i=t.parent;i;i=i.parent){const
e=i.routeConfig;if(e&&e._loadedConfig)return e._loadedConfig}return
null}(i);return(n?n.module.injector:e).get(t)}function
Il(t,i,e,n,s={canDeactivateChecks:[],canActivateChecks:[]}){cons
t r=Bo(i);return t.children.forEach(o=>{(function
oH(t,i,e,n,s={canDeactivateChecks:[],canActivateChecks:[]}){const
r=t.value,o=i?i.value:null,u=e?e.getContext(t.value.outlet):null;if(o&&r.routeConfig===o.routeConfig){const
h=function aH(t,i,e){if("function"==typeof e)return
e(t,i);switch(e){case"pathParamsChange":return!Ir(t.url,i.url);case"pathParamsOrQueryParamsChange":return!Ir(t.url,i.url)||!as(t.queryParams,i.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!lg(t,i)||!as(t.queryParams,i.queryParams);default:return!lg(t,i)}}(o,r,r.routeConfig.runGuardsAndResolvers);h?s.canActivateChecks.push(new
T2(n)):(r.data=o.data,r._resolvedData=o._resolvedData),Il(t,i,r.component?u?u.children:null:e,n,s),h&&u&&u.outlet&&u.outlet.isActivated&&s.canDeactivateChecks.push(new
md(u.outlet.component,o))}else o&&El(i,u,s),s.canActivateChecks.push(new
T2(n)),Il(t,null,r.component?u?u.children:null:e,n,s)})(o,r[o.value.outlet],e,n.concat([o.value]),s),delete
r[o.value.outlet
]}),xn(r,(o,u)=>El(o,e.getContext(u),s)),s}function El(t,i,e){const
n=Bo(t),s=t.value;xn(n,(r,o)=>{El(r,s.component?i?i.children.getContext(o):null:i,e)}),e.canDeactivateChecks.push(new
md(s.component&&i&&i.outlet&&i.outlet.isActivated?i.outlet.component:null,s))}class
gH{}function S2(t){return new Je(i=>i.error(t))}class
bH{constructor(i,e,n,s,r,o){this.rootComponentType=i,this.config=e,this.urlTree=n,this.url=s,this.paramsInheritanceStrategy=r,this.relativeLinkResolution=o}recognize(){const
i=dd(this.urlTree.root,[],[],this.config.filter(o=>void
0===o.redirectTo),this.relativeLinkResolution).segmentGroup,e=this.processSegmentGroup(this.config,i,Ke);if(null===e)return
null;const n=new
ad([],Object.freeze({}),Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,{},Ke,this.rootComponentType,null,this.urlTree.root,-1,{}),s=new
Ds(n,e),r=new l2(this.url,s);return
this.inheritParamsAndData(r._root),r}inheritParamsAndData(i){const
e=i.value,n=a2(e,this.paramsIn
heritanceStrategy);e.params=Object.freeze(n.params),e.data=Object.freeze(n.data),i.children.forEach(s=>this.inheritParamsAndData(s))}processSegmentGroup(i,e,n){return
0===e.segments.length&&e.hasChildren()?this.processChildren(i,e):this.processSegment(i,e,e.segments,n)}processChildren(i,e){const
n=[];for(const r of Object.keys(e.children)){const
o=e.children[r],u=_2(i,r),h=this.processSegmentGroup(u,o,r);if(null===h)return
null;n.push(...h)}const s=x2(n);return function
vH(t){t.sort((i,e)=>i.value.outlet===Ke?-1:e.value.outlet===Ke?1:i.value.outlet.localeCompare(e.value.outlet))}(s),s}processSegment(i,e,n,s){for(const
r of i){const o=this.processSegmentAgainstRoute(r,e,n,s);if(null!==o)return o}return
C2(e,n,s)?[]:null}processSegmentAgainstRoute(i,e,n,s){if(i.redirectTo||!v2(i,e,n,s))return
null;let r,o=[],u=[];if("**"===i.path){const
E=n.length>0?$T(n).parameters:{};r=new
ad(n,E,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,k2(i),xi(i),i.component,
i,D2(e),M2(e)+n.length,I2(i))}else{const E=ud(e,i,n);if(!E.matched)return
null;o=E.consumedSegments,u=E.remainingSegments,r=new
ad(o,E.parameters,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,k2(i),xi(i),i.component,i,D2(e),M2(e)+o.length,I2(i))}const
h=function CH(t){return
t.children?t.children:t.loadChildren?t._loadedConfig.routes:[]}(i),{segmentGroup:b,slicedSegments:y}=dd(e,o,u,h.filter(E=>void
0===E.redirectTo),this.relativeLinkResolution);if(0===y.length&&b.hasChildren()){const
E=this.processChildren(h,b);return null===E?null:[new
Ds(r,E)]}if(0===h.length&&0===y.length)return[new Ds(r,[])];const
w=xi(i)===s,M=this.processSegment(h,b,y,w?Ke:s);return null===M?null:[new
Ds(r,M)]}}function yH(t){const i=t.value.routeConfig;return
i&&""===i.path&&void 0===i.redirectTo}function x2(t){const
i=[],e=new Set;for(const n of t){if(!yH(n)){i.push(n);continue}const
s=i.find(r=>n.value.routeConfig===r.value.routeConfig);void
0!==s?(s.children.push(...n.chi
ldren),e.add(s)):i.push(n)}for(const n of e){const s=x2(n.children);i.push(new
Ds(n.value,s))}return i.filter(n=>!e.has(n))}function D2(t){let
i=t;for(;i._sourceSegment;)i=i._sourceSegment;return i}function M2(t){let
i=t,e=i._segmentIndexShift?i._segmentIndexShift:0;for(;i._sourceSegment;)i=i._sourceSegment,e+=i._segmentIndexShift?i._segmentIndexShift:0;return
e-1}function k2(t){return t.data||{}}function I2(t){return t.resolve||{}}function
E2(t){return[...Object.keys(t),...Object.getOwnPropertySymbols(t)]}function fg(t){return
qi(i=>{const e=t(i);return e?Mn(e).pipe(et(()=>i)):oe(i)})}class IH extends class
kH{shouldDetach(i){return!1}store(i,e){}shouldAttach(i){return!1}retrieve(i){return
null}shouldReuseRoute(i,e){return i.routeConfig===e.routeConfig}}{}const gg=new
be("ROUTES");class
R2{constructor(i,e,n,s){this.injector=i,this.compiler=e,this.onLoadStartListener=n,this.onLoadEndListener=s}load(i,e){if(e._loader$)return
e._loader$;this.onLoadStartListener&&this.onLoadStartListen
er(e);const
s=this.loadModuleFactory(e.loadChildren).pipe(et(r=>{this.onLoadEndListener&&this.onLoadEndListener(e);const
o=r.create(i);return new pg(jT(o.injector.get(gg,void
0,xe.Self|xe.Optional)).map(hg),o)}),Mr(r=>{throw e._loader$=void 0,r}));return
e._loader$=new Fg(s,()=>new ct).pipe(Fd()),e._loader$}loadModuleFactory(i){return
ls(i()).pipe(yn(e=>e instanceof
iC?oe(e):Mn(this.compiler.compileModuleAsync(e))))}}class
RH{shouldProcessUrl(i){return!0}extract(i){return i}merge(i,e){return i}}function
LH(t){throw t}function OH(t,i,e){return i.parse("/")}function L2(t,i){return
oe(null)}const
AH={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},PH={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};let
It=(()=>{class
t{constructor(e,n,s,r,o,u,h){this.rootComponentType=e,this.urlSerializer=n,this.rootContexts=s,this.location=r,this.config=h,this.lastSuccessfulNavigation=null,this.currentNavigation=null,this.disposed=!1,this.nav
igationId=0,this.currentPageId=0,this.isNgZoneEnabled=!1,this.events=new
ct,this.errorHandler=LH,this.malformedUriErrorHandler=OH,this.navigated=!1,this.lastSuccessfulId=-1,this.hooks={beforePreactivation:L2,afterPreactivation:L2},this.urlHandlingStrategy=new
RH,this.routeReuseStrategy=new
IH,this.onSameUrlNavigation="ignore",this.paramsInheritanceStrategy="emptyOnly",this.urlUpdateStrategy="deferred",this.relativeLinkResolution="corrected",this.canceledNavigationResolution="replace",this.ngModule=o.get(_s),this.console=o.get(DR);const
w=o.get(nt);this.isNgZoneEnabled=w instanceof
nt&&nt.isInAngularZone(),this.resetConfig(h),this.currentUrlTree=function
a8(){return new kr(new
Xe([],{}),{},null)}(),this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.configLoader=new
R2(o,u,M=>this.triggerEvent(new HT(M)),M=>this.triggerEvent(new
qT(M))),this.routerState=o2(this.currentUrlTree,this.rootComponentType),this.transitions=new
zi({id:0,targetPageId:0,currentUrlT
ree: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 n=this.events;return
e.pipe(Us(s=>0!==s.id),et(s=>Object.assign(Object.assign({},s),{extractedUrl:this.urlHandlingStrategy.extract(s.rawUrl)})),qi(s=>{let
r=!1,o=!1;return
oe(s).pipe(li(u=>{this.currentNavigation={id:u.id,initialUrl:u.currentRawUrl,extractedU
rl:u.extractedUrl,trigger:u.source,extras:u.extras,previousNavigation:this.lastSuccessfulNavigation?Object.assign(Object.assign({},this.lastSuccessfulNavigation),{previousNavigation:null}):null}}),qi(u=>{const
h=this.browserUrlTree.toString(),b=!this.navigated||u.extractedUrl.toString()!==h||h!==this.currentUrlTree.toString();if(("reload"===this.onSameUrlNavigation||b)&&this.urlHandlingStrategy.shouldProcessUrl(u.rawUrl))return
O2(u.source)&&(this.browserUrlTree=u.extractedUrl),oe(u).pipe(qi(w=>{const
M=this.transitions.getValue();return n.next(new
tg(w.id,this.serializeUrl(w.extractedUrl),w.source,w.restoredState)),M!==this.transitions.getValue()?Io:Promise.resolve(w)}),function
nH(t,i,e,n){return qi(s=>function X8(t,i,e,n,s){return new
eH(t,i,e,n,s).apply()}(t,i,e,s.extractedUrl,n).pipe(et(r=>Object.assign(Object.assign({},s),{urlAfterRedirects:r}))))}(this.ngModule.injector,this.configLoader,this.urlSerializer,this.config),li(w=>{this.currentNavigation=Object.assign(Object.assign
({},this.currentNavigation),{finalUrl:w.urlAfterRedirects})}),function
wH(t,i,e,n,s){return yn(r=>function
_H(t,i,e,n,s="emptyOnly",r="legacy"){try{const o=new
bH(t,i,e,n,s,r).recognize();return null===o?S2(new gH):oe(o)}catch(o){return
S2(o)}}(t,i,r.urlAfterRedirects,e(r.urlAfterRedirects),n,s).pipe(et(o=>Object.assign(Object.assign({},r),{targetSnapshot:o}))))}(this.rootComponentType,this.config,w=>this.serializeUrl(w),this.paramsInheritanceStrategy,this.relativeLinkResolution),li(w=>{if("eager"===this.urlUpdateStrategy){if(!w.extras.skipLocationChange){const
E=this.urlHandlingStrategy.merge(w.urlAfterRedirects,w.rawUrl);this.setBrowserUrl(E,w)}this.browserUrlTree=w.urlAfterRedirects}const
M=new
KB(w.id,this.serializeUrl(w.extractedUrl),this.serializeUrl(w.urlAfterRedirects),w.targetSnapshot);n.next(M)}));if(b&&this.rawUrlTree&&this.urlHandlingStrategy.shouldProcessUrl(this.rawUrlTree)){const{id:M,extractedUrl:E,source:L,restoredState:O,extras:N}=u,G=new
tg(M,this.serializeUrl(E),
L,O);n.next(G);const P=o2(E,this.rootComponentType).snapshot;return
oe(Object.assign(Object.assign({},u),{targetSnapshot:P,urlAfterRedirects:E,extras:Object.assign(Object.assign({},N),{skipLocationChange:!1,replaceUrl:!1})}))}return
this.rawUrlTree=u.rawUrl,u.resolve(null),Io}),fg(u=>{const{targetSnapshot:h,id:b,extractedUrl:y,rawUrl:w,extras:{skipLocationChange:M,replaceUrl:E}}=u;return
this.hooks.beforePreactivation(h,{navigationId:b,appliedUrlTree:y,rawUrlTree:w,skipLocationChange:!!M,replaceUrl:!!E})}),li(u=>{const
h=new
QB(u.id,this.serializeUrl(u.extractedUrl),this.serializeUrl(u.urlAfterRedirects),u.targetSnapshot);this.triggerEvent(h)}),et(u=>Object.assign(Object.assign({},u),{guards:iH(u.targetSnapshot,u.currentSnapshot,this.rootContexts)})),function
lH(t,i){return
yn(e=>{const{targetSnapshot:n,currentSnapshot:s,guards:{canActivateChecks:r,canDeactivateChecks:o}}=e;return
0===o.length&&0===r.length?oe(Object.assign(Object.assign({},e),{guardsResult:!0})):function
cH(t,i,e,n
){return Mn(t).pipe(yn(s=>function fH(t,i,e,n,s){const
r=i&&i.routeConfig?i.routeConfig.canDeactivate:null;return
r&&0!==r.length?oe(r.map(u=>{const h=fd(u,i,s);let b;if(function G8(t){return
t&&Ys(t.canDeactivate)}(h))b=ls(h.canDeactivate(t,i,e,n));else{if(!Ys(h))throw new
Error("Invalid CanDeactivate guard");b=ls(h(t,i,e,n))}return
b.pipe(No())})).pipe(xl()):oe(!0)}(s.component,s.route,e,i,n)),No(s=>!0!==s,!0))}(o,n,s,t).pipe(yn(u=>u&&function
V8(t){return"boolean"==typeof t}(u)?function uH(t,i,e,n){return
Mn(i).pipe(_r(s=>el(function pH(t,i){return null!==t&&i&&i(new
XB(t)),oe(!0)}(s.route.parent,n),function dH(t,i){return
null!==t&&i&&i(new t8(t)),oe(!0)}(s.route,n),function mH(t,i,e){const
n=i[i.length-1],r=i.slice(0,i.length-1).reverse().map(o=>function sH(t){const
i=t.routeConfig?t.routeConfig.canActivateChild:null;return
i&&0!==i.length?{node:t,guards:i}:null}(o)).filter(o=>null!==o).map(o=>cu(()=>oe(o.guards.map(h=>{const
b=fd(h,o.node,e);let y;if(function q8(t){return t&&Y
s(t.canActivateChild)}(b))y=ls(b.canActivateChild(n,t));else{if(!Ys(b))throw new
Error("Invalid CanActivateChild guard");y=ls(b(n,t))}return
y.pipe(No())})).pipe(xl())));return oe(r).pipe(xl())}(t,s.path,e),function hH(t,i,e){const
n=i.routeConfig?i.routeConfig.canActivate:null;if(!n||0===n.length)return oe(!0);const
s=n.map(r=>cu(()=>{const o=fd(r,i,e);let u;if(function H8(t){return
t&&Ys(t.canActivate)}(o))u=ls(o.canActivate(i,t));else{if(!Ys(o))throw new
Error("Invalid CanActivate guard");u=ls(o(i,t))}return u.pipe(No())}));return
oe(s).pipe(xl())}(t,s.route,e))),No(s=>!0!==s,!0))}(n,r,t,i):oe(u)),et(u=>Object.assign(Object.assign({},e),{guardsResult:u})))})}(this.ngModule.injector,u=>this.triggerEvent(u)),li(u=>{if(Rr(u.guardsResult)){const
b=ng(`Redirecting to "${this.serializeUrl(u.guardsResult)}"`);throw
b.url=u.guardsResult,b}const h=new
JB(u.id,this.serializeUrl(u.extractedUrl),this.serializeUrl(u.urlAfterRedirects),u.targetSnapshot,!!u.guardsResult);this.triggerEvent(h)}),
Us(u=>!!u.guardsResult||(this.restoreHistory(u),this.cancelNavigationTransition(u,""),!1)),fg(u=>{if(u.guards.canActivateChecks.length)return
oe(u).pipe(li(h=>{const b=new
YB(h.id,this.serializeUrl(h.extractedUrl),this.serializeUrl(h.urlAfterRedirects),h.targetSnapshot);this.triggerEvent(b)}),qi(h=>{let
b=!1;return oe(h).pipe(function TH(t,i){return
yn(e=>{const{targetSnapshot:n,guards:{canActivateChecks:s}}=e;if(!s.length)return
oe(e);let r=0;return Mn(s).pipe(_r(o=>function SH(t,i,e,n){return function
xH(t,i,e,n){const s=E2(t);if(0===s.length)return oe({});const r={};return
Mn(s).pipe(yn(o=>function DH(t,i,e,n){const s=fd(t,i,n);return
ls(s.resolve?s.resolve(i,e):s(i,e))}(t[o],i,e,n).pipe(li(u=>{r[o]=u}))),eg(1),yn(()=>E2(r).length===s.length?oe(r):Io))}(t._resolve,t,i,n).pipe(et(r=>(t._resolvedData=r,t.data=Object.assign(Object.assign({},t.data),a2(t,e).resolve),null)))}(o.route,n,t,i)),li(()=>r++),eg(1),yn(o=>r===s.length?oe(e):Io))})}(this.paramsInheritanceStrategy,this.ngModul
e.injector),li({next:()=>b=!0,complete:()=>{b||(this.restoreHistory(h),this.cancelNavigationTransition(h,"At
least one route resolver didn't emit any value."))}}))}),li(h=>{const b=new
ZB(h.id,this.serializeUrl(h.extractedUrl),this.serializeUrl(h.urlAfterRedirects),h.targetSnapshot);this.triggerEvent(b)}))}),fg(u=>{const{targetSnapshot:h,id:b,extractedUrl:y,rawUrl:w,extras:{skipLocationChange:M,replaceUrl:E}}=u;return
this.hooks.afterPreactivation(h,{navigationId:b,appliedUrlTree:y,rawUrlTree:w,skipLocationChange:!!M,replaceUrl:!!E})}),et(u=>{const
h=function x8(t,i,e){const n=wl(t,i._root,e?e._root:void 0);return new
r2(n,i)}(this.routeReuseStrategy,u.targetSnapshot,u.currentRouterState);return
Object.assign(Object.assign({},u),{targetRouterState:h})}),li(u=>{this.currentUrlTree=u.urlAfterRedirects,this.rawUrlTree=this.urlHandlingStrategy.merge(u.urlAfterRedirects,u.rawUrl),this.routerState=u.targetRouterState,"deferred"===this.urlUpdateStrategy&&(u.extras.skipLocationChange||this.
setBrowserUrl(this.rawUrlTree,u),this.browserUrlTree=u.urlAfterRedirects)}),((t,i,e)=>et(n=>(new
F8(i,n.targetRouterState,n.currentRouterState,e).activate(t),n)))(this.rootContexts,this.routeReuseStrategy,u=>this.triggerEvent(u)),li({next(){r=!0},complete(){r=!0}}),function
zB(t){return i=>i.lift(new jB(t))}(()=>{var
u;r||o||this.cancelNavigationTransition(s,`Navigation ID ${s.id} is not equal to the
current navigation id ${this.navigationId}`),(null===(u=this.currentNavigation)||void
0===u?void
0:u.id)===s.id&&(this.currentNavigation=null)}),Mr(u=>{if(o=!0,function
s8(t){return t&&t[UT]}(u)){const
h=Rr(u.url);h||(this.navigated=!0,this.restoreHistory(s,!0));const b=new
BT(s.id,this.serializeUrl(s.extractedUrl),u.message);n.next(b),h?setTimeout(()=>{const
y=this.urlHandlingStrategy.merge(u.url,this.rawUrlTree),w={skipLocationChange:s.extras.skipLocationChange,replaceUrl:"eager"===this.urlUpdateStrategy||O2(s.source)};this.scheduleNavigation(y,"imperative",null,w,{resolve:s.resolve,r
eject:s.reject,promise:s.promise})},0):s.resolve(!1)}else{this.restoreHistory(s,!0);const
h=new
WB(s.id,this.serializeUrl(s.extractedUrl),u);n.next(h);try{s.resolve(this.errorHandler(u))}catch(b){s.reject(b)}}return
Io}))}))}resetRootComponentType(e){this.rootComponentType=e,this.routerState.root.component=this.rootComponentType}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
n="popstate"===e.type?"popstate":"hashchange";"popstate"===n&&setTimeout(()=>{var
s;const r={replaceUrl:!0},o=(null===(s=e.state)||void 0===s?void
0:s.navigationId)?e.state:null;if(o){const h=Object.assign({},o);delete
h.navigationId,delete
h.\u0275routerPageId,0!==Object.keys(h).length&&(r.state=h)}const u=this
.parseUrl(e.url);this.scheduleNavigation(u,n,o,r)},0)}))}get url(){return
this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return
this.currentNavigation}triggerEvent(e){this.events.next(e)}resetConfig(e){g2(e),this.config=e.map(hg),this.navigated=!1,this.lastSuccessfulId=-1}ngOnDestroy(){this.dispose()}dispose(){this.transitions.complete(),this.locationSubscription&&(this.locationSubscription.unsubscribe(),this.locationSubscription=void
0),this.disposed=!0}createUrlTree(e,n={}){const{relativeTo:s,queryParams:r,fragment:o,queryParamsHandling:u,preserveFragment:h}=n,b=s||this.routerState.root,y=h?this.currentUrlTree.fragment:o;let
w=null;switch(u){case"merge":w=Object.assign(Object.assign({},this.currentUrlTree.queryParams),r);break;case"preserve":w=this.currentUrlTree.queryParams;break;default:w=r||null}return
null!==w&&(w=this.removeEmptyProps(w)),function
k8(t,i,e,n,s){if(0===e.length)return cg(i.root,i.root,i.root,n,s);const r=function
I8(t){if("string"==typeof t[0]&&
1===t.length&&"/"===t[0])return new d2(!0,0,t);let i=0,e=!1;const
n=t.reduce((s,r,o)=>{if("object"==typeof
r&&null!=r){if(r.outlets){const u={};return
xn(r.outlets,(h,b)=>{u[b]="string"==typeof
h?h.split("/"):h}),[...s,{outlets:u}]}if(r.segmentPath)return[...s,r.segmentPath]}return"string"!=typeof
r?[...s,r]:0===o?(r.split("/").forEach((u,h)=>{0==h&&"."===u||(0==h&&""===u?e=!0:".."===u?i++:""!=u&&s.push(u))}),s):[...s,r]},[]);return
new d2(e,i,n)}(e);if(r.toRoot())return cg(i.root,i.root,new Xe([],{}),n,s);const
o=function E8(t,i,e){if(t.isAbsolute)return new
ug(i.root,!0,0);if(-1===e.snapshot._lastPathIndex){const r=e.snapshot._urlSegment;return
new ug(r,r===i.root,0)}const n=ld(t.commands[0])?0:1;return function R8(t,i,e){let
n=t,s=i,r=e;for(;r>s;){if(r-=s,n=n.parent,!n)throw new Error("Invalid number of
'../'");s=n.segments.length}return new
ug(n,!1,s-r)}(e.snapshot._urlSegment,e.snapshot._lastPathIndex+n,t.numberOfDoubleDots)}(r,i,t),u=o.processChildren?cd(o.segmentGroup,o.index
,r.commands):p2(o.segmentGroup,o.index,r.commands);return
cg(i.root,o.segmentGroup,u,n,s)}(b,this.currentUrlTree,e,w,null!=y?y:null)}navigateByUrl(e,n={skipLocationChange:!1}){const
s=Rr(e)?e:this.parseUrl(e),r=this.urlHandlingStrategy.merge(s,this.rawUrlTree);return
this.scheduleNavigation(r,"imperative",null,n)}navigate(e,n={skipLocationChange:!1}){return
function FH(t){for(let i=0;i<t.length;i++){const e=t[i];if(null==e)throw new Error(`The
requested path contains ${e} segment at index
${i}`)}}(e),this.navigateByUrl(this.createUrlTree(e,n),n)}serializeUrl(e){return
this.urlSerializer.serialize(e)}parseUrl(e){let
n;try{n=this.urlSerializer.parse(e)}catch(s){n=this.malformedUriErrorHandler(s,this.urlSerializer,e)}return
n}isActive(e,n){let
s;if(s=!0===n?Object.assign({},AH):!1===n?Object.assign({},PH):n,Rr(e))return
KT(this.currentUrlTree,e,s);const r=this.parseUrl(e);return
KT(this.currentUrlTree,r,s)}removeEmptyProps(e){return
Object.keys(e).reduce((n,s)=>{const r=e[s];return nul
l!=r&&(n[s]=r),n},{})}processNavigations(){this.navigations.subscribe(e=>{this.navigated=!0,this.lastSuccessfulId=e.id,this.currentPageId=e.targetPageId,this.events.next(new
vl(e.id,this.serializeUrl(e.extractedUrl),this.serializeUrl(this.currentUrlTree))),this.lastSuccessfulNavigation=this.currentNavigation,e.resolve(!0)},e=>{this.console.warn(`Unhandled
Navigation Error: ${e}`)})}scheduleNavigation(e,n,s,r,o){var u,h;if(this.disposed)return
Promise.resolve(!1);let b,y,w;o?(b=o.resolve,y=o.reject,w=o.promise):w=new
Promise((L,O)=>{b=L,y=O});const M=++this.navigationId;let
E;return"computed"===this.canceledNavigationResolution?(0===this.currentPageId&&(s=this.location.getState()),E=s&&s.\u0275routerPageId?s.\u0275routerPageId:r.replaceUrl||r.skipLocationChange?null!==(u=this.browserPageId)&&void
0!==u?u:0:(null!==(h=this.browserPageId)&&void
0!==h?h:0)+1):E=0,this.setTransition({id:M,targetPageId:E,source:n,restoredState:s,currentUrlTree:this.currentUrlTree,currentRawUrl:this.rawUrl
Tree,rawUrl:e,extras:r,resolve:b,reject:y,promise:w,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),w.catch(L=>Promise.reject(L))}setBrowserUrl(e,n){const
s=this.urlSerializer.serialize(e),r=Object.assign(Object.assign({},n.extras.state),this.generateNgRouterState(n.id,n.targetPageId));this.location.isCurrentPathEqualTo(s)||n.extras.replaceUrl?this.location.replaceState(s,"",r):this.location.go(s,"",r)}restoreHistory(e,n=!1){var
s,r;if("computed"===this.canceledNavigationResolution){const
o=this.currentPageId-e.targetPageId;"popstate"!==e.source&&"eager"!==this.urlUpdateStrategy&&this.currentUrlTree!==(null===(s=this.currentNavigation)||void
0===s?void
0:s.finalUrl)||0===o?this.currentUrlTree===(null===(r=this.currentNavigation)||void
0===r?void
0:r.finalUrl)&&0===o&&(this.resetState(e),this.browserUrlTree=e.currentUrlTree,this.resetUrlToCurrentUrlTree()):this.location.historyGo(o)}else"replace"===this.canceledNavigationResolution&&(n&&this.resetState
(e),this.resetUrlToCurrentUrlTree())}resetState(e){this.routerState=e.currentRouterState,this.currentUrlTree=e.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,e.rawUrl)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}cancelNavigationTransition(e,n){const
s=new
BT(e.id,this.serializeUrl(e.extractedUrl),n);this.triggerEvent(s),e.resolve(!1)}generateNgRouterState(e,n){return"computed"===this.canceledNavigationResolution?{navigationId:e,\u0275routerPageId:n}:{navigationId:e}}}return
t.\u0275fac=function(e){Sh()},t.\u0275prov=X({token:t,factory:t.\u0275fac}),t})();function
O2(t){return"imperative"!==t}let gd=(()=>{class
t{constructor(e,n,s,r,o){this.router=e,this.route=n,this.tabIndexAttribute=s,this.renderer=r,this.el=o,this.commands=null,this.onChanges=new
ct,this.setTabIndexIfNotOnNativeEl("0")}setTabIndexIfNotOnNativeEl(e){if(n
ull!=this.tabIndexAttribute)return;const
n=this.renderer,s=this.el.nativeElement;null!==e?n.setAttribute(s,"tabindex",e):n.removeAttribute(s,"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:qo(this.skipLocationChange),replaceUrl:qo(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:qo(this.preserveFragment)})}}return
t.\u0275fac=function(e){return
new(e||t)(D(It),D(Er),ua("tabindex"),D(gn),D(De))},t.\u0275dir=le({type:t,selectors:[["","routerLink","",5,"a",
5,"area"]],hostBindings:function(e,n){1&e&&C("click",function(){return
n.onClick()})},inputs:{queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",preserveFragment:"preserveFragment",skipLocationChange:"skipLocationChange",replaceUrl:"replaceUrl",state:"state",relativeTo:"relativeTo",routerLink:"routerLink"},features:[fn]}),t})(),Ho=(()=>{class
t{constructor(e,n,s){this.router=e,this.route=n,this.locationStrategy=s,this.commands=null,this.href=null,this.onChanges=new
ct,this.subscription=e.events.subscribe(r=>{r instanceof
vl&&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,n,s,r,o){if(0!==e||n||s||r||o||"string"==typeof
this.target&&"_self"!=this.target||null===this.urlTree)return!0;const
u={skipLocationChange:qo(this.skipLocationChange),replaceUrl:qo(this.replaceUrl),sta
te:this.state};return
this.router.navigateByUrl(this.urlTree,u),!1}updateTargetUrlAndHref(){this.href=null!==this.urlTree?this.locationStrategy.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:qo(this.preserveFragment)})}}return
t.\u0275fac=function(e){return
new(e||t)(D(It),D(Er),D(ko))},t.\u0275dir=le({type:t,selectors:[["a","routerLink",""],["area","routerLink",""]],hostVars:2,hostBindings:function(e,n){1&e&&C("click",function(r){return
n.onClick(r.button,r.ctrlKey,r.shiftKey,r.altKey,r.metaKey)}),2&e&&ie("target",n.target)("href",n.href,ln)},inputs:{target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",preserveFragment:"preserveFragment",skipLocationChang
e:"skipLocationChange",replaceUrl:"replaceUrl",state:"state",relativeTo:"relativeTo",routerLink:"routerLink"},features:[fn]}),t})();function
qo(t){return""===t||!!t}let _d=(()=>{class
t{constructor(e,n,s,r,o,u){this.router=e,this.element=n,this.renderer=s,this.cdr=r,this.link=o,this.linkWithHref=u,this.classes=[],this.isActive=!1,this.routerLinkActiveOptions={exact:!1},this.isActiveChange=new
H,this.routerEventsSubscription=e.events.subscribe(h=>{h instanceof
vl&&this.update()})}ngAfterContentInit(){oe(this.links.changes,this.linksWithHrefs.changes,oe(null)).pipe(ea()).subscribe(e=>{this.update(),this.subscribeToEachLinkOnChanges()})}subscribeToEachLinkOnChanges(){var
e;null===(e=this.linkInputChangesSubscription)||void 0===e||e.unsubscribe();const
n=[...this.links.toArray(),...this.linksWithHrefs.toArray(),this.link,this.linkWithHref].filter(s=>!!s).map(s=>s.onChanges);this.linkInputChangesSubscription=Mn(n).pipe(ea()).subscribe(s=>{this.isActive!==this.isLinkActive(this.router)(s)
&&this.update()})}set routerLinkActive(e){const
n=Array.isArray(e)?e:e.split("
");this.classes=n.filter(s=>!!s)}ngOnChanges(e){this.update()}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(n=>{e?this.renderer.addClass(this.element.nativeElement,n):this.renderer.removeClass(this.element.nativeElement,n)}),this.isActiveChange.emit(e))})}isLinkActive(e){const
n=function
NH(t){return!!t.paths}(this.routerLinkActiveOptions)?this.routerLinkActiveOptions:this.routerLinkActiveOptions.exact||!1;return
s=>!!s.urlTree&&e.isActive(s.urlTree,n)}hasActiveLinks(){const
e=this.isLinkActive(this.router);return
this.link&&e(this.link)||this.linkWithHref&&e(this.linkWithHref)||this.links.some(e)||this.linksWit
hHrefs.some(e)}}return t.\u0275fac=function(e){return
new(e||t)(D(It),D(De),D(gn),D(rt),D(gd,8),D(Ho,8))},t.\u0275dir=le({type:t,selectors:[["","routerLinkActive",""]],contentQueries:function(e,n,s){if(1&e&&(st(s,gd,5),st(s,Ho,5)),2&e){let
r;V(r=B())&&(n.links=r),V(r=B())&&(n.linksWithHrefs=r)}},inputs:{routerLinkActiveOptions:"routerLinkActiveOptions",routerLinkActive:"routerLinkActive"},outputs:{isActiveChange:"isActiveChange"},exportAs:["routerLinkActive"],features:[fn]}),t})();class
A2{}class P2{preload(i,e){return oe(null)}}let F2=(()=>{class
t{constructor(e,n,s,r){this.router=e,this.injector=s,this.preloadingStrategy=r,this.loader=new
R2(s,n,h=>e.triggerEvent(new HT(h)),h=>e.triggerEvent(new
qT(h)))}setUpPreloading(){this.subscription=this.router.events.pipe(Us(e=>e instanceof
vl),_r(()=>this.preload())).subscribe(()=>{})}preload(){const
e=this.injector.get(_s);return
this.processRoutes(e,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}proc
essRoutes(e,n){const s=[];for(const r of
n)if(r.loadChildren&&!r.canLoad&&r._loadedConfig){const
o=r._loadedConfig;s.push(this.processRoutes(o.module,o.routes))}else
r.loadChildren&&!r.canLoad?s.push(this.preloadConfig(e,r)):r.children&&s.push(this.processRoutes(e,r.children));return
Mn(s).pipe(ea(),et(r=>{}))}preloadConfig(e,n){return
this.preloadingStrategy.preload(n,()=>(n._loadedConfig?oe(n._loadedConfig):this.loader.load(e.injector,n)).pipe(yn(r=>(n._loadedConfig=r,this.processRoutes(r.module,r.routes)))))}}return
t.\u0275fac=function(e){return
new(e||t)(K(It),K(qC),K(En),K(A2))},t.\u0275prov=X({token:t,factory:t.\u0275fac}),t})(),_g=(()=>{class
t{constructor(e,n,s={}){this.router=e,this.viewportScroller=n,this.options=s,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},s.scrollPositionRestoration=s.scrollPositionRestoration||"disabled",s.anchorScrolling=s.anchorScrolling||"disabled"}init(){"disabled"!==this.options.scrollPositionRestoration&&this.viewp
ortScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}createScrollEvents(){return
this.router.events.subscribe(e=>{e instanceof
tg?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=e.navigationTrigger,this.restoredId=e.restoredState?e.restoredState.navigationId:0):e
instanceof
vl&&(this.lastId=e.id,this.scheduleScrollEvent(e,this.router.parseUrl(e.urlAfterRedirects).fragment))})}consumeScrollEvents(){return
this.router.events.subscribe(e=>{e instanceof
GT&&(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.scrollToPosit
ion([0,0]))})}scheduleScrollEvent(e,n){this.router.triggerEvent(new
GT(e,"popstate"===this.lastSource?this.store[this.restoredId]:null,n))}ngOnDestroy(){this.routerEventsSubscription&&this.routerEventsSubscription.unsubscribe(),this.scrollEventsSubscription&&this.scrollEventsSubscription.unsubscribe()}}return
t.\u0275fac=function(e){Sh()},t.\u0275prov=X({token:t,factory:t.\u0275fac}),t})();const
Lr=new be("ROUTER_CONFIGURATION"),N2=new
be("ROUTER_FORROOT_GUARD"),BH=[_m,{provide:ZT,useClass:XT},{provide:It,useFactory:function
zH(t,i,e,n,s,r,o={},u,h){const b=new It(null,t,i,e,n,s,jT(r));return
u&&(b.urlHandlingStrategy=u),h&&(b.routeReuseStrategy=h),function
jH(t,i){t.errorHandler&&(i.errorHandler=t.errorHandler),t.malformedUriErrorHandler&&(i.malformedUriErrorHandler=t.malformedUriErrorHandler),t.onSameUrlNavigation&&(i.onSameUrlNavigation=t.onSameUrlNavigation),t.paramsInheritanceStrategy&&(i.paramsInheritanceStrategy=t.paramsInheritanceStrategy),t.relativeLinkResolution&&(i.relati
veLinkResolution=t.relativeLinkResolution),t.urlUpdateStrategy&&(i.urlUpdateStrategy=t.urlUpdateStrategy),t.canceledNavigationResolution&&(i.canceledNavigationResolution=t.canceledNavigationResolution)}(o,b),o.enableTracing&&b.events.subscribe(y=>{var
w,M;null===(w=console.group)||void 0===w||w.call(console,`Router Event:
${y.constructor.name}`),console.log(y.toString()),console.log(y),null===(M=console.groupEnd)||void
0===M||M.call(console)}),b},deps:[ZT,Dl,_m,En,qC,gg,Lr,[class EH{},new Ns],[class MH{},new
Ns]]},Dl,{provide:Er,useFactory:function $H(t){return
t.routerState.root},deps:[It]},F2,P2,class VH{preload(i,e){return
e().pipe(Mr(()=>oe(null)))}},{provide:Lr,useValue:{enableTracing:!1}}];function
HH(){return new $C("Router",It)}let vn=(()=>{class t{constructor(e,n){}static
forRoot(e,n){return{ngModule:t,providers:[BH,V2(e),{provide:N2,useFactory:UH,deps:[[It,new
Ns,new _a]]},{provide:Lr,useValue:n||{}},{provide:ko,useFactory:GH,deps:[fr,[new
dc(gm),new Ns],Lr]},{provide:_g,u
seFactory:qH,deps:[It,R4,Lr]},{provide:A2,useExisting:n&&n.preloadingStrategy?n.preloadingStrategy:P2},{provide:$C,multi:!0,useFactory:HH},[bg,{provide:em,multi:!0,useFactory:WH,deps:[bg]},{provide:B2,useFactory:KH,deps:[bg]},{provide:HC,multi:!0,useExisting:B2}]]}}static
forChild(e){return{ngModule:t,providers:[V2(e)]}}}return t.\u0275fac=function(e){return
new(e||t)(K(N2,8),K(It,8))},t.\u0275mod=he({type:t}),t.\u0275inj=ue({}),t})();function
qH(t,i,e){return e.scrollOffset&&i.setOffset(e.scrollOffset),new
_g(t,i,e)}function GH(t,i,e={}){return e.useHash?new vL(t,i):new dy(t,i)}function
UH(t){return"guarded"}function
V2(t){return[{provide:gD,multi:!0,useValue:t},{provide:gg,multi:!0,useValue:t}]}let
bg=(()=>{class
t{constructor(e){this.injector=e,this.initNavigation=!1,this.destroyed=!1,this.resultOfPreactivationDone=new
ct}appInitializer(){return
this.injector.get(gL,Promise.resolve(null)).then(()=>{if(this.destroyed)return
Promise.resolve(!0);let n=null;const s=new Promise(u=>n=u
),r=this.injector.get(It),o=this.injector.get(Lr);return"disabled"===o.initialNavigation?(r.setUpLocationChangeListener(),n(!0)):"enabled"===o.initialNavigation||"enabledBlocking"===o.initialNavigation?(r.hooks.afterPreactivation=()=>this.initNavigation?oe(null):(this.initNavigation=!0,n(!0),this.resultOfPreactivationDone),r.initialNavigation()):n(!0),s})}bootstrapListener(e){const
n=this.injector.get(Lr),s=this.injector.get(F2),r=this.injector.get(_g),o=this.injector.get(It),u=this.injector.get(cm);e===u.components[0]&&(("enabledNonBlocking"===n.initialNavigation||void
0===n.initialNavigation)&&o.initialNavigation(),s.setUpPreloading(),r.init(),o.resetRootComponentType(u.componentTypes[0]),this.resultOfPreactivationDone.next(null),this.resultOfPreactivationDone.complete())}ngOnDestroy(){this.destroyed=!0}}return
t.\u0275fac=function(e){return
new(e||t)(K(En))},t.\u0275prov=X({token:t,factory:t.\u0275fac}),t})();function
WH(t){return t.appInitializer.bind(t)}function KH(t){return t.
bootstrapListener.bind(t)}const B2=new be("Router Initializer");let
m9=(()=>{class t{}return t.\u0275fac=function(e){return
new(e||t)},t.\u0275mod=he({type:t}),t.\u0275inj=ue({imports:[[Fe,vn,pn,jn],vn,jn]}),t})();function
f9(t,i){1&t&&k(0,"span",6),2&t&&p("innerHTML",d(3).text,Bt)}function
g9(t,i){if(1&t&&(l(0,"div"),_(1,f9,1,1,"span",5),c()),2&t){const
e=d(2);a(1),p("ngIf",!e.escape)}}function
_9(t,i){if(1&t&&(l(0,"span",8),g(1),c()),2&t){const
e=d(3);a(1),S(e.text)}}function
b9(t,i){1&t&&_(0,_9,2,1,"span",7),2&t&&p("ngIf",d(2).escape)}const
v9=function(t,i,e,n,s){return{"p-inline-message-info":t,"p-inline-message-warn":i,"p-inline-message-error":e,"p-inline-message-success":n,"p-inline-message-icon-only":s}};function
C9(t,i){if(1&t&&(l(0,"div",1),k(1,"span",2),_(2,g9,2,1,"div",3),_(3,b9,1,1,"ng-template",null,4,we),c()),2&t){const
e=F(4),n=d();me(n.styleClass),p("ngStyle",n.style)("ngClass",pr(7,v9,"info"===n.severity,"warn"===n.severity,"error"===n.severity,"success"===n.severit
y,null==n.text)),a(1),p("ngClass",n.icon),a(1),p("ngIf",!n.escape)("ngIfElse",e)}}let
qe=(()=>{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=z({type:t,selectors:[["p-message"]],hostAttrs:[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,"inne
rHTML"],["class","p-inline-message-text",4,"ngIf"],[1,"p-inline-message-text"]],template:function(e,n){1&e&&_(0,C9,5,13,"div",0),2&e&&p("ngIf",n.severity)},directives:[Q,lt,Le],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})(),y9=(()=>{class
t{}return t.\u0275fac=function(e){return
new(e||t)},t.\u0275mod=he({type:t}),t.\u0275inj=ue({imports:[[Fe]]}),t})(),A9=(()=>{class
t{}return t.\u0275fac=function(e){return
new(e||t)},t.\u0275mod=he({type:t}),t.\u0275inj=ue({imports:[[Fe,pn]]}),t})();function
P9(t,i){1&t&&Y(0)}function F9(t,i){if(1&t){const
e=I();l(0,"button",5),C("click",function(s){return
v(e),d(2).onCloseClick(s)})("keydown.enter",function(){return
v(e),d(2).hide()}),k(1,"span",6),c()}2&t&&ie("aria-label",d(2).ariaCloseLabel)}const
N9=function(t,i){return{sho
wTransitionParams:t,hideTransitionParams:i}},V9=function(t,i){return{value:t,params:i}};function
B9(t,i){if(1&t){const
e=I();l(0,"div",1),C("click",function(s){return
v(e),d().onOverlayClick(s)})("(a)animation.start",function(s){return
v(e),d().onAnimationStart(s)})("(a)animation.done",function(s){return
v(e),d().onAnimationEnd(s)}),l(1,"div",2),C("click",function(){return
v(e),d().onContentClick()})("mousedown",function(){return
v(e),d().onContentClick()}),St(2),_(3,P9,1,0,"ng-container",3),c(),_(4,F9,2,1,"button",4),c()}if(2&t){const
e=d();me(e.styleClass),p("ngClass","p-overlaypanel
p-component")("ngStyle",e.style)("@animation",Ge(10,V9,e.overlayVisible?"open":"close",Ge(7,N9,e.showTransitionOptions,e.hideTransitionOptions))),a(3),p("ngTemplateOutlet",e.contentTemplate),a(1),p("ngIf",e.showCloseIcon)}}const
H9=["*"];let q9=(()=>{class
t{constructor(e,n,s,r,o,u){this.el=e,this.renderer=n,this.cd=s,this.zone=r,this.config=o,this.overlayService=u,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 H,this.onHide=new
H,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=R.isIOS()?"touchstart":"click";this.documentClickListener=this.renderer.listen(this.el?this.el.nativeElement.ownerDocument:"document",e,s=>{!this.container.contains(s.target)&&this.target!==s.target&&!this.target.contains(s.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,n){this.overlayVisible?(this.hasTargetC
hanged(e,n)&&(this.destroyCallback=()=>{this.show(null,n||e.currentTarget||e.target)}),this.hide()):this.show(e,n)}show(e,n){this.target=n||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,n){return
null!=this.target&&this.target!==(n||e.currentTarget||e.target)}appendContainer(){this.appendTo&&("body"===this.appendTo?document.body.appendChild(this.container):R.appendChild(this.container,this.appendTo))}restoreAppend(){this.container&&this.appendTo&&this.el.nativeElement.appendChild(this.container)}align(){this.autoZIndex&&dt.set("overlay",this.container,this.baseZIndex+this.config.zIndex.overlay),R.absolutePosition(this.container,this.target);const
e=R.getOffset(this.container),n=R.getOffset(this.target);let
s=0;e.left<n.left&&(s=n.left-e.left),this.container.style.setProperty("--overl
ayArrowLeft",`${s}px`),e.top<n.top&&R.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=n=>{this.container&&this.container.contains(n.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&&dt.clear(this.container),this.overlaySubscription&&this.overlaySubscription.unsubscribe(),this.onContainerDestroy(),this.onHide.emit({}),this.render=!1}}focus(){let
e=R.findSingle(this.container,"[autofocus]");e&&this.zone.runOutsideAngula
r(()=>{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
Qs(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.autoZI
ndex&&dt.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)(D(De),D(gn),D(rt),D(nt),D(zn),D(Ks))},t.\u0275cmp=z({type:t,selectors:[["p-overlayPanel"]],contentQueries:function(e,n,s){if(1&e&&st(s,ne,4),2&e){let
r;V(r=B())&&(n.templates=r)}},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:H9,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,n){1&e&&(Sn(),_(0,B9,5,13,"div",0)),2&e&&p("ngIf",n.render)},directives:[Q,Le,lt,Rt,bt],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;ri
ght: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:[wi("animation",[ws("void",it({transform:"scaleY(0.8)",opacity:0})),ws("close",it({opacity:0})),ws("open",it({transform:"translateY(0)",opacity:1})),Lt("void
=> open",kt("{{showTransitionParams}}")),Lt("open =>
close",kt("{{hideTransitionParams}}"))])]},changeDetection:0}),t})(),G9=(()=>{class
t{}return t.\u0275fac=function(e){return
new(e||t)},t.\u0275mod=he({type:t}),t.\u0275inj=ue({imports:[[Fe,pn,Nt],Nt]}),t})(),J9=(()=>{class
t{}return t.\u0275fac=function(e){return
new(e||t)},t.\u0275mod=he({type:t}),t.\u0275inj=ue({imports:[[Fe,Nt,pn],Nt]}),t})(),Go=(()=>{class
t{constructor(){this.strokeWidth="2",this.fill="none",this.animationDuration="2s"}}return
t.\u0275fac=function(e){return
new(e||t)},t.\u0275cmp=z({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,n){1&e&&(l(0,"div",0),function
d_(){Ee.lFrame.currentNamespace="svg"}(),l(1,"svg",1),k(2,"circle",2),c()()),2&e&&(p("ngStyle",n.style)("ngClass",n.styleClass),a(1),_i("animation-duration",n.animationDuration),a(1),ie("fill",n.fill)("stroke-width",n.strokeWidth))},directives:[lt,Le],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-rota
te 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})(),Y9=(()=>{class
t{}return t.\u0275fac=function(e){return
new(e||t)},t.\u0275mod=he({type:t}),t.\u0275inj=ue({imports:[[Fe]]}),t})();ku([it({transform:"{{transform}}",opacity:0}),kt("{{transition}}")]),ku([kt("{{transition}}",it(
{transform:"{{transform}}",opacity:0}))]);let iq=(()=>{class t{}return
t.\u0275fac=function(e){return
new(e||t)},t.\u0275mod=he({type:t}),t.\u0275inj=ue({imports:[[Fe,pn]]}),t})(),sq=(()=>{class
t{}return t.\u0275fac=function(e){return
new(e||t)},t.\u0275mod=he({type:t}),t.\u0275inj=ue({imports:[[Fe]]}),t})(),hq=(()=>{class
t{}return t.\u0275fac=function(e){return
new(e||t)},t.\u0275mod=he({type:t}),t.\u0275inj=ue({imports:[[Fe,vn,jn],vn,jn]}),t})();function
mq(t,i){1&t&&k(0,"span",8),2&t&&(me(d(2).$implicit.icon),p("ngClass","p-button-icon
p-button-icon-left"))}function
fq(t,i){if(1&t&&(de(0),_(1,mq,1,3,"span",6),l(2,"span",7),g(3),c(),pe()),2&t){const
e=d().$implicit,n=d();a(1),p("ngIf",e.icon),a(2),S(n.getOptionLabel(e))}}function
gq(t,i){1&t&&Y(0)}const _q=function(t,i){return{$implicit:t,index:i}};function
bq(t,i){if(1&t&&_(0,gq,1,0,"ng-container",9),2&t){const
e=d(),n=e.$implicit,s=e.index;p("ngTemplateOutlet",d().itemTemplate)("ngTemplateOutletContext",Ge(2,_q,n,s))}}const
vq
=function(t,i,e){return{"p-highlight":t,"p-disabled":i,"p-button-icon-only":e}};function
Cq(t,i){if(1&t){const
e=I();l(0,"div",2,3),C("click",function(s){const
r=v(e),o=r.$implicit,u=r.index;return
d().onItemClick(s,o,u)})("keydown.enter",function(s){const
r=v(e),o=r.$implicit,u=r.index;return
d().onItemClick(s,o,u)})("blur",function(){return
v(e),d().onBlur()}),_(2,fq,4,2,"ng-container",4),_(3,bq,1,5,"ng-template",null,5,we),c()}if(2&t){const
e=i.$implicit,n=F(4),s=d();me(e.styleClass),p("ngClass",Qt(10,vq,s.isSelected(e),s.disabled||s.isOptionDisabled(e),e.icon&&!s.getOptionLabel(e))),ie("aria-pressed",s.isSelected(e))("title",e.title)("aria-label",e.label)("tabindex",s.disabled?null:s.tabindex)("aria-labelledby",s.getOptionLabel(e)),a(2),p("ngIf",!s.itemTemplate)("ngIfElse",n)}}const
yq={provide:dn,useExisting:je(()=>wq),multi:!0};let wq=(()=>{class
t{constructor(e){this.cd=e,this.tabindex=0,this.onOptionClick=new H,this.onChange=new
H,this.onModelChange=()=>{},this.onModelTouche
d=()=>{}}getOptionLabel(e){return
this.optionLabel?Z.resolveFieldData(e,this.optionLabel):null!=e.label?e.label:e}getOptionValue(e){return
this.optionValue?Z.resolveFieldData(e,this.optionValue):this.optionLabel||void
0===e.value?e:e.value}isOptionDisabled(e){return
this.optionDisabled?Z.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,n,s){if(!this.disabled&&!this.isOptionDisabled(n)){if(this.multiple)this.isSelected(n)?this.removeOption(n):this.value=[...this.value||[],this.getOptionValue(n)],this.onModelChange(this.value),this.onChange.emit({originalEvent:e,value:this.value});else{let
r=this.getOptionValue(n);this.value!==r&&(this.value=this.getOptionValue(n),this.onModelChange(this.value),this.onChange.emit({originalEvent:e,value:this.value}))}this.onOp
tionClick.emit({originalEvent:e,option:n,index:s})}}onBlur(){this.onModelTouched()}removeOption(e){this.value=this.value.filter(n=>!Z.equals(n,this.getOptionValue(e),this.dataKey))}isSelected(e){let
n=!1,s=this.getOptionValue(e);if(this.multiple){if(this.value)for(let r of
this.value)if(Z.equals(r,s,this.dataKey)){n=!0;break}}else
n=Z.equals(this.getOptionValue(e),this.value,this.dataKey);return n}}return
t.\u0275fac=function(e){return
new(e||t)(D(rt))},t.\u0275cmp=z({type:t,selectors:[["p-selectButton"]],contentQueries:function(e,n,s){if(1&e&&st(s,bi,5),2&e){let
r;V(r=B())&&(n.itemTemplate=r.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:[Pe([yq])],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,n){1&e&&(l(0,"div",0),_(1,Cq,5,14,"div",1),c()),2&e&&(me(n.styleClass),p("ngClass","p-selectbutton
p-buttonset
p-component")("ngStyle",n.style),a(1),p("ngForOf",n.options))},directives:[Le,lt,at,bt,Q,Rt],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:cen
ter}.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}\n"],encapsulation:2,changeDetection:0}),t})(),Tq=(()=>{class
t{}return t.\u0275fac=function(e){return
new(e||t)},t.\u0275mod=he({type:t}),t.\u0275inj=ue({imports:[[Fe,pn]]}),t})();const
Sq=function(t,i,e){return{"p-checkbox-label-active":t,"p-disabled":i,"p-checkbox-label-focus":e}};function
xq(t,i){if(1&t){const
e=I();l(0,"label",7),C("click",function(s){v(e);const
r=d(),o=F(3);return r.onClick(s,o)}),g(1),c()}if(2&t){const e=d();p(
"ngClass",Qt(3,Sq,null!=e.value,e.disabled,e.focused)),ie("for",e.inputId),a(1),S(e.label)}}const
Dq=function(t,i){return{"p-checkbox
p-component":!0,"p-checkbox-disabled":t,"p-checkbox-focused":i}},Mq=function(t,i,e){return{"p-highlight":t,"p-disabled":i,"p-focus":e}},kq={provide:dn,useExisting:je(()=>G2),multi:!0};let
G2=(()=>{class t{constructor(e){this.cd=e,this.checkboxTrueIcon="pi
pi-check",this.checkboxFalseIcon="pi pi-times",this.onChange=new
H,this.onModelChange=()=>{},this.onModelTouched=()=>{}}onClick(e,n){!this.disabled&&!this.readonly&&(this.toggle(e),this.focused=!0,n.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.onModelTouch
ed()}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)(D(rt))},t.\u0275cmp=z({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:[Pe([kq])],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,n){if(1&e){const
s=I();l(0,"div",0)(1,"div",1)(2,"input",2,3),C("keyup",function(o){return
n.onKeyup(o)})("keydown",function(o){return
n.onKeydown(o)})("focus",function(){return
n.onFocus()})("blur",function(){return
n.onBlur()}),c()(),l(4,"div",4),C("click",function(o){v(s);const
u=F(3);return
n.onClick(o,u)}),k(5,"span",5),c()(),_(6,xq,2,7,"label",6)}2&e&&(me(n.styleClass),p("ngStyle",n.style)("ngClass",Ge(14,Dq,n.disabled,n.focused)),a(2),p("name",n.name)("readonly",n.readonly)("disabled",n.disabled),ie("id",n.inputId)("tabindex",n.tabindex)("aria-labelledby",n.ariaLabelledBy),a(2),p("ngClass",Qt(17,Mq,null!=n.value,n.disabled,n.focused)),ie("aria-checked",!0===n.value),a(1),p("ngClass",!0===n.value?n.checkboxTrueIcon:!1===n.value?n.checkboxFalseIcon:""),a(1),p("ngIf",n.label))},directives:[lt,Le,Q],encapsulation:2,changeDetection:0}),t})(),Iq=(()=>{class
t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=he({type:t}),
t.\u0275inj=ue({imports:[[Fe]]}),t})();const
Eq=["container"],Rq=["resizeHelper"],Lq=["reorderIndicatorUp"],Oq=["reorderIndicatorDown"],Aq=["wrapper"],Pq=["table"],Fq=["tableHeader"];function
Nq(t,i){if(1&t&&(l(0,"div",14),k(1,"i"),c()),2&t){const
e=d();a(1),me("p-datatable-loading-icon pi-spin "+e.loadingIcon)}}function
Vq(t,i){1&t&&Y(0)}function
Bq(t,i){if(1&t&&(l(0,"div",15),_(1,Vq,1,0,"ng-container",16),c()),2&t){const
e=d();a(1),p("ngTemplateOutlet",e.captionTemplate)}}function
Hq(t,i){if(1&t){const
e=I();l(0,"p-paginator",17),C("onPageChange",function(s){return
v(e),d().onPageChange(s)}),c()}if(2&t){const
e=d();p("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)("currentPageRe
portTemplate",e.currentPageReportTemplate)("showFirstLastIcon",e.showFirstLastIcon)("dropdownItemTemplate",e.paginatorDropdownItemTemplate)("showCurrentPageReport",e.showCurrentPageReport)("showJumpToPageDropdown",e.showJumpToPageDropdown)("showJumpToPageInput",e.showJumpToPageInput)("showPageLinks",e.showPageLinks)}}function
qq(t,i){1&t&&Y(0)}function Gq(t,i){1&t&&Y(0)}function
Uq(t,i){if(1&t&&k(0,"tbody",25),2&t){const
e=d(2);p("value",e.frozenValue)("frozenRows",!0)("pTableBody",e.columns)("pTableBodyTemplate",e.frozenBodyTemplate)("frozen",!0)}}function
zq(t,i){1&t&&Y(0)}const Zs=function(t){return{$implicit:t}};function
jq(t,i){if(1&t&&(l(0,"tfoot",26),_(1,zq,1,0,"ng-container",20),c()),2&t){const
e=d(2);a(1),p("ngTemplateOutlet",e.footerGroupedTemplate||e.footerTemplate)("ngTemplateOutletContext",U(2,Zs,e.columns))}}function
$q(t,i){if(1&t&&(l(0,"table",18,19),_(2,qq,1,0,"ng-container",20),l(3,"thead",21),_(4,Gq,1,0,"ng-container",20),c(),_(5,Uq,1,5,"tbody",22),k(6,"tbody",23)
,_(7,jq,2,4,"tfoot",24),c()),2&t){const
e=d();p("ngClass",e.tableStyleClass)("ngStyle",e.tableStyle),ie("id",e.id+"-table"),a(2),p("ngTemplateOutlet",e.colGroupTemplate)("ngTemplateOutletContext",U(12,Zs,e.columns)),a(2),p("ngTemplateOutlet",e.headerGroupedTemplate||e.headerTemplate)("ngTemplateOutletContext",U(14,Zs,e.columns)),a(1),p("ngIf",e.frozenValue||e.frozenBodyTemplate),a(1),p("value",e.dataToRender)("pTableBody",e.columns)("pTableBodyTemplate",e.bodyTemplate),a(1),p("ngIf",e.footerGroupedTemplate||e.footerTemplate)}}function
Wq(t,i){1&t&&Y(0)}function Kq(t,i){1&t&&Y(0)}function
Qq(t,i){if(1&t&&k(0,"tbody",25),2&t){const
e=d(2);p("value",e.frozenValue)("frozenRows",!0)("pTableBody",e.columns)("pTableBodyTemplate",e.bodyTemplate)("frozen",!0)}}function
Jq(t,i){1&t&&Y(0)}function
Yq(t,i){if(1&t&&(l(0,"tfoot",26),_(1,Jq,1,0,"ng-container",20),c()),2&t){const
e=d(2);a(1),p("ngTemplateOutlet",e.footerGroupedTemplate||e.footerTemplate)("ngTemplateOutletContext",U(2,Zs,e.columns))
}}function Zq(t,i){if(1&t){const
e=I();l(0,"cdk-virtual-scroll-viewport",27),C("scrolledIndexChange",function(s){return
v(e),d().onScrollIndexChange(s)}),l(1,"table",18,19),_(3,Wq,1,0,"ng-container",20),l(4,"thead",21,28),_(6,Kq,1,0,"ng-container",20),c(),_(7,Qq,1,5,"tbody",22),k(8,"tbody",23),_(9,Yq,2,4,"tfoot",24),c()()}if(2&t){const
e=d();_i("height","flex"!==e.scrollHeight?e.scrollHeight:void
0),p("itemSize",e.virtualRowHeight)("minBufferPx",e.minBufferPx)("maxBufferPx",e.maxBufferPx),a(1),p("ngClass",e.tableStyleClass)("ngStyle",e.tableStyle),ie("id",e.id+"-table"),a(2),p("ngTemplateOutlet",e.colGroupTemplate)("ngTemplateOutletContext",U(17,Zs,e.columns)),a(3),p("ngTemplateOutlet",e.headerGroupedTemplate||e.headerTemplate)("ngTemplateOutletContext",U(19,Zs,e.columns)),a(1),p("ngIf",e.frozenValue||e.frozenBodyTemplate),a(1),p("value",e.dataToRender)("pTableBody",e.columns)("pTableBodyTemplate",e.bodyTemplate),a(1),p("ngIf",e.footerGroupedTemplate||e.footerTemplate)}}function
Xq(
t,i){if(1&t){const
e=I();l(0,"p-paginator",29),C("onPageChange",function(s){return
v(e),d().onPageChange(s)}),c()}if(2&t){const
e=d();p("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
eG(t,i){1&t&&Y(0)}function
tG(t,i){if(1&t&&(l(0,"div",30),_(1,eG,1,0,"ng-container",16),c()),2&t){const
e=d();a(1),p("ngTemplateOutlet",e.summaryTemplate)}}functio
n nG(t,i){1&t&&k(0,"div",31,32)}function
iG(t,i){1&t&&k(0,"span",33,34)}function
sG(t,i){1&t&&k(0,"span",35,36)}const
rG=function(t,i,e,n,s,r,o,u,h,b,y,w,M,E){return{"p-datatable
p-component":!0,"p-datatable-hoverable-rows":t,"p-datatable-auto-layout":i,"p-datatable-resizable":e,"p-datatable-resizable-fit":n,"p-datatable-scrollable":s,"p-datatable-scrollable-vertical":r,"p-datatable-scrollable-horizontal":o,"p-datatable-scrollable-both":u,"p-datatable-flex-scrollable":h,"p-datatable-responsive-stack":b,"p-datatable-responsive-scroll":y,"p-datatable-responsive":w,"p-datatable-grouped-header":M,"p-datatable-grouped-footer":E}},oG=function(t){return{height:t}},aG=["pTableBody",""];function
lG(t,i){1&t&&Y(0)}const
bd=function(t,i,e,n,s){return{$implicit:t,rowIndex:i,columns:e,editing:n,frozen:s}};function
cG(t,i){if(1&t&&(de(0,3),_(1,lG,1,0,"ng-container",4),pe()),2&t){const
e=d(),n=e.$implicit,s=e.index,r=d(2);a(1),p("ngTemplateOutlet",r.dt.groupHeaderTemplate)("ngTemplateOutletContext
",pr(2,bd,n,r.dt.paginator?r.dt.first+s:s,r.columns,"row"===r.dt.editMode&&r.dt.isRowEditing(n),r.frozen))}}function
uG(t,i){1&t&&Y(0)}function
dG(t,i){if(1&t&&(de(0),_(1,uG,1,0,"ng-container",4),pe()),2&t){const
e=d(),n=e.$implicit,s=e.index,r=d(2);a(1),p("ngTemplateOutlet",r.template)("ngTemplateOutletContext",pr(2,bd,n,r.dt.paginator?r.dt.first+s:s,r.columns,"row"===r.dt.editMode&&r.dt.isRowEditing(n),r.frozen))}}function
pG(t,i){1&t&&Y(0)}const
hG=function(t,i,e,n,s,r,o){return{$implicit:t,rowIndex:i,columns:e,editing:n,frozen:s,rowgroup:r,rowspan:o}};function
mG(t,i){if(1&t&&(de(0),_(1,pG,1,0,"ng-container",4),pe()),2&t){const
e=d(),n=e.$implicit,s=e.index,r=d(2);a(1),p("ngTemplateOutlet",r.template)("ngTemplateOutletContext",function
aC(t,i,e,n,s,r,o,u,h,b){const y=Fn()+t,w=$();let M=gi(w,y,e,n,s,r);return
Mc(w,y+4,o,u,h)||M?es(w,y+7,b?i.call(b,e,n,s,r,o,u,h):i(e,n,s,r,o,u,h)):Ea(w,y+7)}(2,hG,n,r.dt.paginator?r.dt.first+s:s,r.columns,"row"===r.dt.editMode&&r.dt.isRowEditing(n)
,r.frozen,r.shouldRenderRowspan(r.value,n,s),r.calculateRowGroupSize(r.value,n,s)))}}function
fG(t,i){1&t&&Y(0)}function
gG(t,i){if(1&t&&(de(0,3),_(1,fG,1,0,"ng-container",4),pe()),2&t){const
e=d(),n=e.$implicit,s=e.index,r=d(2);a(1),p("ngTemplateOutlet",r.dt.groupFooterTemplate)("ngTemplateOutletContext",pr(2,bd,n,r.dt.paginator?r.dt.first+s:s,r.columns,"row"===r.dt.editMode&&r.dt.isRowEditing(n),r.frozen))}}function
_G(t,i){if(1&t&&(_(0,cG,2,8,"ng-container",2),_(1,dG,2,8,"ng-container",0),_(2,mG,2,10,"ng-container",0),_(3,gG,2,8,"ng-container",2)),2&t){const
e=i.$implicit,n=i.index,s=d(2);p("ngIf",s.dt.groupHeaderTemplate&&"subheader"===s.dt.rowGroupMode&&s.shouldRenderRowGroupHeader(s.value,e,n)),a(1),p("ngIf","rowspan"!==s.dt.rowGroupMode),a(1),p("ngIf","rowspan"===s.dt.rowGroupMode),a(1),p("ngIf",s.dt.groupFooterTemplate&&"subheader"===s.dt.rowGroupMode&&s.shouldRenderRowGroupFooter(s.value,e,n))}}function
bG(t,i){if(1&t&&(de(0),_(1,_G,4,4,"ng-template",1),pe()),2&t){const
e=d
();a(1),p("ngForOf",e.value)("ngForTrackBy",e.dt.rowTrackBy)}}function
vG(t,i){1&t&&Y(0)}function
CG(t,i){if(1&t&&_(0,vG,1,0,"ng-container",4),2&t){const
e=i.$implicit,n=i.index,s=d(2);p("ngTemplateOutlet",e?s.template:s.dt.loadingBodyTemplate)("ngTemplateOutletContext",pr(2,bd,e,s.dt.paginator?s.dt.first+n:n,s.columns,"row"===s.dt.editMode&&s.dt.isRowEditing(e),s.frozen))}}function
yG(t,i){if(1&t&&(de(0),_(1,CG,1,8,"ng-template",5),pe()),2&t){const
e=d();a(1),p("cdkVirtualForOf",e.dt.filteredValue||e.dt.value)("cdkVirtualForTrackBy",e.dt.rowTrackBy)("cdkVirtualForTemplateCacheSize",0)}}function
wG(t,i){1&t&&Y(0)}const
vd=function(t,i,e,n,s,r){return{$implicit:t,rowIndex:i,columns:e,expanded:n,editing:s,frozen:r}};function
TG(t,i){if(1&t&&(de(0),_(1,wG,1,0,"ng-container",4),pe()),2&t){const
e=d(),n=e.$implicit,s=e.index,r=d(2);a(1),p("ngTemplateOutlet",r.template)("ngTemplateOutletContext",Do(2,vd,n,r.dt.paginator?r.dt.first+s:s,r.columns,r.dt.isRowExpanded(n),"row"===r.dt.editMode&
&r.dt.isRowEditing(n),r.frozen))}}function SG(t,i){1&t&&Y(0)}function
xG(t,i){if(1&t&&(de(0,3),_(1,SG,1,0,"ng-container",4),pe()),2&t){const
e=d(),n=e.$implicit,s=e.index,r=d(2);a(1),p("ngTemplateOutlet",r.dt.groupHeaderTemplate)("ngTemplateOutletContext",Do(2,vd,n,r.dt.paginator?r.dt.first+s:s,r.columns,r.dt.isRowExpanded(n),"row"===r.dt.editMode&&r.dt.isRowEditing(n),r.frozen))}}function
DG(t,i){1&t&&Y(0)}function MG(t,i){1&t&&Y(0)}function
kG(t,i){if(1&t&&(de(0,3),_(1,MG,1,0,"ng-container",4),pe()),2&t){const
e=d(2),n=e.$implicit,s=e.index,r=d(2);a(1),p("ngTemplateOutlet",r.dt.groupFooterTemplate)("ngTemplateOutletContext",Do(2,vd,n,r.dt.paginator?r.dt.first+s:s,r.columns,r.dt.isRowExpanded(n),"row"===r.dt.editMode&&r.dt.isRowEditing(n),r.frozen))}}const
U2=function(t,i,e,n){return{$implicit:t,rowIndex:i,columns:e,frozen:n}};function
IG(t,i){if(1&t&&(de(0),_(1,DG,1,0,"ng-container",4),_(2,kG,2,9,"ng-container",2),pe()),2&t){const
e=d(),n=e.$implicit,s=e.index,r=d(2);a(1),p("ngTem
plateOutlet",r.dt.expandedRowTemplate)("ngTemplateOutletContext",qn(3,U2,n,r.dt.paginator?r.dt.first+s:s,r.columns,r.frozen)),a(1),p("ngIf",r.dt.groupFooterTemplate&&"subheader"===r.dt.rowGroupMode&&r.shouldRenderRowGroupFooter(r.value,n,s))}}function
EG(t,i){if(1&t&&(_(0,TG,2,9,"ng-container",0),_(1,xG,2,9,"ng-container",2),_(2,IG,3,8,"ng-container",0)),2&t){const
e=i.$implicit,n=i.index,s=d(2);p("ngIf",!s.dt.groupHeaderTemplate),a(1),p("ngIf",s.dt.groupHeaderTemplate&&"subheader"===s.dt.rowGroupMode&&s.shouldRenderRowGroupHeader(s.value,e,n)),a(1),p("ngIf",s.dt.isRowExpanded(e))}}function
RG(t,i){if(1&t&&(de(0),_(1,EG,3,3,"ng-template",1),pe()),2&t){const
e=d();a(1),p("ngForOf",e.value)("ngForTrackBy",e.dt.rowTrackBy)}}function
LG(t,i){1&t&&Y(0)}function OG(t,i){1&t&&Y(0)}function
AG(t,i){if(1&t&&(de(0),_(1,OG,1,0,"ng-container",4),pe()),2&t){const
e=d(),n=e.$implicit,s=e.index,r=d(2);a(1),p("ngTemplateOutlet",r.dt.frozenExpandedRowTemplate)("ngTemplateOutletContext",qn(2,U2,n,r.d
t.paginator?r.dt.first+s:s,r.columns,r.frozen))}}function
PG(t,i){if(1&t&&(_(0,LG,1,0,"ng-container",4),_(1,AG,2,7,"ng-container",0)),2&t){const
e=i.$implicit,n=i.index,s=d(2);p("ngTemplateOutlet",s.template)("ngTemplateOutletContext",Do(3,vd,e,s.dt.paginator?s.dt.first+n:n,s.columns,s.dt.isRowExpanded(e),"row"===s.dt.editMode&&s.dt.isRowEditing(e),s.frozen)),a(1),p("ngIf",s.dt.isRowExpanded(e))}}function
FG(t,i){if(1&t&&(de(0),_(1,PG,2,10,"ng-template",1),pe()),2&t){const
e=d();a(1),p("ngForOf",e.value)("ngForTrackBy",e.dt.rowTrackBy)}}function
NG(t,i){1&t&&Y(0)}const
z2=function(t,i){return{$implicit:t,frozen:i}};function
VG(t,i){if(1&t&&(de(0),_(1,NG,1,0,"ng-container",4),pe()),2&t){const
e=d();a(1),p("ngTemplateOutlet",e.dt.loadingBodyTemplate)("ngTemplateOutletContext",Ge(2,z2,e.columns,e.frozen))}}function
BG(t,i){1&t&&Y(0)}function
HG(t,i){if(1&t&&(de(0),_(1,BG,1,0,"ng-container",4),pe()),2&t){const
e=d();a(1),p("ngTemplateOutlet",e.dt.emptyMessageTemplate)("ngTemplateOutletC
ontext",Ge(2,z2,e.columns,e.frozen))}}function
qG(t,i){if(1&t&&(l(0,"span",2),g(1),c()),2&t){const
e=d();a(1),S(e.getBadgeValue())}}const
GG=function(t,i,e){return{"pi-sort-amount-up-alt":t,"pi-sort-amount-down":i,"pi-sort-alt":e}};function
UG(t,i){1&t&&Y(0)}function
zG(t,i){if(1&t&&(de(0),_(1,UG,1,0,"ng-container",1),pe()),2&t){const
e=d();a(1),p("ngTemplateOutlet",e.inputTemplate)}}function
jG(t,i){1&t&&Y(0)}function
$G(t,i){if(1&t&&(de(0),_(1,jG,1,0,"ng-container",1),pe()),2&t){const
e=d();a(1),p("ngTemplateOutlet",e.outputTemplate)}}function
WG(t,i){1&t&&Y(0)}const
KG=function(t,i){return{$implicit:t,filterCallback:i}};function
QG(t,i){if(1&t&&(de(0),_(1,WG,1,0,"ng-container",2),pe()),2&t){const
e=d();a(1),p("ngTemplateOutlet",e.filterTemplate)("ngTemplateOutletContext",Ge(2,KG,e.filterConstraint.value,e.filterCallback))}}function
JG(t,i){if(1&t){const
e=I();l(0,"input",8),C("input",function(s){return
v(e),d(2).onModelChange(s.target.value)})("keydown.enter",function(s){return v
(e),d(2).onTextInputEnterKeyDown(s)}),c()}if(2&t){const
e=d(2);p("value",null==e.filterConstraint?null:e.filterConstraint.value),ie("placeholder",e.placeholder)}}function
YG(t,i){if(1&t){const
e=I();l(0,"p-inputNumber",9),C("ngModelChange",function(s){return
v(e),d(2).onModelChange(s)})("onKeyDown",function(s){return
v(e),d(2).onNumericInputKeyDown(s)}),c()}if(2&t){const
e=d(2);p("ngModel",null==e.filterConstraint?null:e.filterConstraint.value)("showButtons",!0)("minFractionDigits",e.minFractionDigits)("maxFractionDigits",e.maxFractionDigits)("prefix",e.prefix)("suffix",e.suffix)("placeholder",e.placeholder)("mode",e.currency?"currency":"decimal")("locale",e.locale)("localeMatcher",e.localeMatcher)("currency",e.currency)("currencyDisplay",e.currencyDisplay)("useGrouping",e.useGrouping)}}function
ZG(t,i){if(1&t){const
e=I();l(0,"p-triStateCheckbox",10),C("ngModelChange",function(s){return
v(e),d(2).onModelChange(s)}),c()}if(2&t){const
e=d(2);p("ngModel",null==e.filterConstraint?null:
e.filterConstraint.value)}}function XG(t,i){if(1&t){const
e=I();l(0,"p-calendar",11),C("ngModelChange",function(s){return
v(e),d(2).onModelChange(s)}),c()}if(2&t){const
e=d(2);p("placeholder",e.placeholder)("ngModel",null==e.filterConstraint?null:e.filterConstraint.value)}}function
eU(t,i){1&t&&(de(0,3),_(1,JG,1,2,"input",4),_(2,YG,1,13,"p-inputNumber",5),_(3,ZG,1,1,"p-triStateCheckbox",6),_(4,XG,1,2,"p-calendar",7),pe()),2&t&&(p("ngSwitch",d().type),a(1),p("ngSwitchCase","text"),a(1),p("ngSwitchCase","numeric"),a(1),p("ngSwitchCase","boolean"),a(1),p("ngSwitchCase","date"))}const
tU=["icon"];function
nU(t,i){if(1&t&&k(0,"p-columnFilterFormElement",5),2&t){const
e=d();p("type",e.type)("field",e.field)("filterConstraint",e.dt.filters[e.field])("filterTemplate",e.filterTemplate)("placeholder",e.placeholder)("minFractionDigits",e.minFractionDigits)("maxFractionDigits",e.maxFractionDigits)("prefix",e.prefix)("suffix",e.suffix)("locale",e.locale)("localeMatcher",e.localeMatcher)("currenc
y",e.currency)("currencyDisplay",e.currencyDisplay)("useGrouping",e.useGrouping)}}const
iU=function(t,i){return{"p-column-filter-menu-button-open":t,"p-column-filter-menu-button-active":i}};function
sU(t,i){if(1&t){const
e=I();l(0,"button",6,7),C("click",function(){return
v(e),d().toggleMenu()})("keydown",function(s){return
v(e),d().onToggleButtonKeyDown(s)}),k(2,"span",8),c()}if(2&t){const
e=d();p("ngClass",Ge(2,iU,e.overlayVisible,e.hasFilter())),ie("aria-expanded",e.overlayVisible)}}const
rU=function(t){return{"p-hidden-space":t}};function oU(t,i){if(1&t){const
e=I();l(0,"button",9,7),C("click",function(){return
v(e),d().clearFilter()}),k(2,"span",10),c()}if(2&t){const
e=d();p("ngClass",U(1,rU,!e.hasRowFilter()))}}function
aU(t,i){1&t&&Y(0)}const
lU=function(t){return{"p-highlight":t}};function cU(t,i){if(1&t){const
e=I();l(0,"li",19),C("click",function(){const r=v(e).$implicit;return
d(3).onRowMatchModeChange(r.value)})("keydown",function(s){return
v(e),d(3).onRowMatchModeKeyDow
n(s)})("keydown.enter",function(){const r=v(e).$implicit;return
d(3).onRowMatchModeChange(r.value)}),g(1),c()}if(2&t){const
e=i.$implicit,n=i.index,s=d(3);p("ngClass",U(3,lU,s.isRowMatchModeSelected(e.value))),ie("tabindex",0===n?"0":null),a(1),S(e.label)}}function
uU(t,i){if(1&t){const
e=I();l(0,"ul",15),_(1,cU,2,5,"li",16),k(2,"li",17),l(3,"li",18),C("click",function(){return
v(e),d(2).onRowClearItemClick()})("keydown",function(s){return
v(e),d(2).onRowMatchModeKeyDown(s)})("keydown.enter",function(){return
v(e),d(2).onRowClearItemClick()}),g(4),c()()}if(2&t){const
e=d(2);a(1),p("ngForOf",e.matchModes),a(3),S(e.noFilterLabel)}}function
dU(t,i){if(1&t){const
e=I();l(0,"div",27)(1,"p-dropdown",28),C("ngModelChange",function(s){return
v(e),d(3).onOperatorChange(s)}),c()()}if(2&t){const
e=d(3);a(1),p("options",e.operatorOptions)("ngModel",e.operator)}}function
pU(t,i){if(1&t){const
e=I();l(0,"p-dropdown",33),C("ngModelChange",function(s){v(e);const
r=d().$implicit;return d(3).onMenuMa
tchModeChange(s,r)}),c()}if(2&t){const
e=d().$implicit;p("options",d(3).matchModes)("ngModel",e.matchMode)}}function
hU(t,i){if(1&t){const
e=I();l(0,"button",34),C("click",function(){v(e);const
s=d().$implicit;return
d(3).removeConstraint(s)}),c()}2&t&&p("label",d(4).removeRuleButtonLabel)}function
mU(t,i){if(1&t&&(l(0,"div",29),_(1,pU,1,2,"p-dropdown",30),k(2,"p-columnFilterFormElement",31),l(3,"div"),_(4,hU,1,1,"button",32),c()()),2&t){const
e=i.$implicit,n=d(3);a(1),p("ngIf",n.showMatchModes&&n.matchModes),a(1),p("type",n.type)("field",n.field)("filterConstraint",e)("filterTemplate",n.filterTemplate)("placeholder",n.placeholder)("minFractionDigits",n.minFractionDigits)("maxFractionDigits",n.maxFractionDigits)("prefix",n.prefix)("suffix",n.suffix)("locale",n.locale)("localeMatcher",n.localeMatcher)("currency",n.currency)("currencyDisplay",n.currencyDisplay)("useGrouping",n.useGrouping),a(2),p("ngIf",n.showRemoveIcon)}}function
fU(t,i){if(1&t){const e=I();l(0,"div",35)(1,"button",3
6),C("click",function(){return
v(e),d(3).addConstraint()}),c()()}if(2&t){const
e=d(3);a(1),p("label",e.addRuleButtonLabel)}}function gU(t,i){if(1&t){const
e=I();l(0,"button",37),C("click",function(){return
v(e),d(3).clearFilter()}),c()}2&t&&p("label",d(3).clearButtonLabel)}function
_U(t,i){if(1&t){const
e=I();l(0,"button",38),C("click",function(){return
v(e),d(3).applyFilter()}),c()}2&t&&p("label",d(3).applyButtonLabel)}function
bU(t,i){if(1&t&&(_(0,dU,2,2,"div",20),l(1,"div",21),_(2,mU,5,16,"div",22),c(),_(3,fU,2,1,"div",23),l(4,"div",24),_(5,gU,1,1,"button",25),_(6,_U,1,1,"button",26),c()),2&t){const
e=d(2);p("ngIf",e.isShowOperator),a(2),p("ngForOf",e.fieldConstraints),a(1),p("ngIf",e.isShowAddConstraint),a(2),p("ngIf",e.showClearButton),a(1),p("ngIf",e.showApplyButton)}}function
vU(t,i){1&t&&Y(0)}const CU=function(t){return{"p-column-filter-overlay
p-component p-fluid":!0,"p-column-filter-overlay-menu":t}};function
yU(t,i){if(1&t){const e=I();l(0,"div",11),C("click",function(){r
eturn v(e),d().onContentClick()})("(a)overlayAnimation.start",function(s){return
v(e),d().onOverlayAnimationStart(s)})("(a)overlayAnimation.done",function(s){return
v(e),d().onOverlayAnimationEnd(s)})("keydown.escape",function(){return
v(e),d().onEscape()}),_(1,aU,1,0,"ng-container",12),_(2,uU,5,2,"ul",13),_(3,bU,7,5,"ng-template",null,14,we),_(5,vU,1,0,"ng-container",12),c()}if(2&t){const
e=F(4),n=d();p("ngClass",U(8,CU,"menu"===n.display))("@overlayAnimation","visible"),a(1),p("ngTemplateOutlet",n.headerTemplate)("ngTemplateOutletContext",U(10,Zs,n.field)),a(1),p("ngIf","row"===n.display)("ngIfElse",e),a(3),p("ngTemplateOutlet",n.footerTemplate)("ngTemplateOutletContext",U(12,Zs,n.field))}}const
wU=function(t,i){return{"p-column-filter-row":t,"p-column-filter-menu":i}};let
Cd=(()=>{class t{constructor(){this.sortSource=new ct,this.selectionSource=new
ct,this.contextMenuSource=new ct,this.valueSource=new ct,this.totalRecordsSource=new
ct,this.columnsSource=new ct,this.resetSource=new c
t,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=X({token:t,factory:t.\u0275fac}),t})(),Dn=(()=>{class
t{constructor(e,n,s,r,o,u){this.el=e,this.zone=n,this.tableService=s,this.cd=r,this.filterService=o,this.overlayService=u,this.pageLinks=5,this.alwaysShowPaginator=!0,thi
s.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
H,this.selectionChange=new H,this.contextMenuSelectionChange=new
H,this.contextMenuSelectionMode="separate",this.rowTrackBy=(h,b)=>b,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
H,t
his.onRowUnselect=new H,this.onPage=new H,this.onSort=new H,this.onFilter=new
H,this.onLazyLoad=new H,this.onRowExpand=new H,this.onRowCollapse=new
H,this.onContextMenuSelect=new H,this.onColResize=new H,this.onColReorder=new
H,this.onRowReorder=new H,this.onEditInit=new H,this.onEditComplete=new
H,this.onEditCancel=new H,this.onHeaderCheckboxToggle=new H,this.sortFunction=new
H,this.firstChange=new H,this.rowsChange=new H,this.onStateSave=new
H,this.onStateRestore=new
H,this._value=[],this._totalRecords=0,this._first=0,this.selectionKeys={},this._sortOrder=1,this._selectAll=null,this.columnResizing=!1,this.rowGroupHeaderStyleObject={},this.id=pl(),this.virtualScrollInitialized=!1}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.forEac
h(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.frozenFooterTemplate=e.template;break;case"f
rozencolgroup":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():"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.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)&&this.sortMultiple()),e.selecti
on&&(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(Z.resolveFieldData(e,this.dataKey))]=1;else
this.selectionKeys[String(Z.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=null,this.scrollable&&this.res
etScrollTop()}sort(e){let
n=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
s=n.metaKey||n.ctrlKey,r=this.getSortMeta(e.field);r?s?r.order=-1*r.order:(this._multiSortMeta=[{field:e.field,order:-1*r.order}],this.resetPageOnSort&&(this._first=0,this.firstChange.emit(this._first),this.scrollable&&this.resetScrollTop())):((!s||!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,n=this.sortField?this.sortOrder:this.groupRowsByOrder;if(this.groupRowsBy&&this.so
rtField&&this.groupRowsBy!==this.sortField)return
this._multiSortMeta=[this.getGroupRowsMeta(),{field:this.sortField,order:this.sortOrder}],void
this.sortMultiple();if(e&&n){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:n}):(this.value.sort((r,o)=>{let
u=Z.resolveFieldData(r,e),h=Z.resolveFieldData(o,e),b=null;return
b=null==u&&null!=h?-1:null!=u&&null==h?1:null==u&&null==h?0:"string"==typeof
u&&"string"==typeof
h?u.localeCompare(h):u<h?-1:u>h?1:0,n*b}),this._value=[...this.value]),this.hasFilter()&&this._filter());let
s={field:e,order:n};this.onSort.emit(s),this.tableService.onSort(s)}}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,n)=>this.multisortField(e,n,this.multiSortMeta,0)),this._value=[...this.value]),this.hasFilter()&&this._filter()),this.onSort.emit({multisortmeta:this.multiSortMeta}),this.tableService.onSort(this.multiSortMeta))}multisortField(e,n,s,r){let
o=Z.resolveFieldData(e,s[r].field),u=Z.resolveFieldData(n,s[r].field),h=null;if(null==o&&null!=u)h=-1;else
if(null!=o&&null==u)h=1;else if(null==o&&null==u)h=0;else
if("string"==typeof o||o instanceof
String){if(o.localeCompare&&o!=u)return s[r].order*o.localeCompare(u)}else
h=o<u?-1:1;return
o==u?s.length-1>r?this.multisortField(e,n,s,r+1):0:s[r].order*h}getSortMeta(e){if(this.multiSortMeta&&this.multiSortMeta.length)for(let
n=0;n<this.multiSortMeta.length;n++)if(this.multiSortMeta[n].field===e)return
this.multiSortMeta[n];return null}isSorted(
e){if("single"===this.sortMode)return
this.sortField&&this.sortField===e;if("multiple"===this.sortMode){let
n=!1;if(this.multiSortMeta)for(let
s=0;s<this.multiSortMeta.length;s++)if(this.multiSortMeta[s].field==e){n=!0;break}return
n}}handleRowClick(e){let
n=e.originalEvent.target,s=n.nodeName,r=n.parentElement&&n.parentElement.nodeName;if("INPUT"!=s&&"BUTTON"!=s&&"A"!=s&&"INPUT"!=r&&"BUTTON"!=r&&"A"!=r&&!R.hasClass(e.originalEvent.target,"p-clickable")){if(this.selectionMode){let
o=e.rowData,u=e.rowIndex;if(this.preventSelectionSetterPropagation=!0,this.isMultipleSelectionMode()&&e.originalEvent.shiftKey&&null!=this.anchorRowIndex)R.clearSelection(),null!=this.rangeRowIndex&&this.clearSelectionRange(e.originalEvent),this.rangeRowIndex=u,this.selectRange(e.originalEvent,u);else{let
h=this.isSelected(o);if(!h&&!this.isRowSelectable(o,u))return;let
b=!this.rowTouched&&this.metaKeySelection,y=this.dataKey?String(Z.resolveFieldData(o,this.dataKey)):null;if(this.anchorRowIndex=u,this.ran
geRowIndex=u,b){let
w=e.originalEvent.metaKey||e.originalEvent.ctrlKey;if(h&&w){if(this.isSingleSelectionMode())this._selection=null,this.selectionKeys={},this.selectionChange.emit(null);else{let
M=this.findIndexInSelection(o);this._selection=this.selection.filter((E,L)=>L!=M),this.selectionChange.emit(this.selection),y&&delete
this.selectionKeys[y]}this.onRowUnselect.emit({originalEvent:e.originalEvent,data:o,type:"row"})}else
this.isSingleSelectionMode()?(this._selection=o,this.selectionChange.emit(o),y&&(this.selectionKeys={},this.selectionKeys[y]=1)):this.isMultipleSelectionMode()&&(w?this._selection=this.selection||[]:(this._selection=[],this.selectionKeys={}),this._selection=[...this.selection,o],this.selectionChange.emit(this.selection),y&&(this.selectionKeys[y]=1)),this.onRowSelect.emit({originalEvent:e.originalEvent,data:o,type:"row",index:u})}else
if("single"===this.selectionMode)h?(this._selection=null,this.selectionKeys={},this.selectionChange.emit(this.selection),this.o
nRowUnselect.emit({originalEvent:e.originalEvent,data:o,type:"row",index:u})):(this._selection=o,this.selectionChange.emit(this.selection),this.onRowSelect.emit({originalEvent:e.originalEvent,data:o,type:"row",index:u}),y&&(this.selectionKeys={},this.selectionKeys[y]=1));else
if("multiple"===this.selectionMode)if(h){let
w=this.findIndexInSelection(o);this._selection=this.selection.filter((M,E)=>E!=w),this.selectionChange.emit(this.selection),this.onRowUnselect.emit({originalEvent:e.originalEvent,data:o,type:"row",index:u}),y&&delete
this.selectionKeys[y]}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:u}),y&&(this.selectionKeys[y]=1)}this.tableService.onSelectionChange(),this.isStateful()&&this.saveState()}this.rowTouched=!1}}handleRowTouchEnd(e){this.rowTouched=!0}handleRowRightClick(e){if(this.contextMenu){const
n=e.rowData,s=e.rowIndex;if("separate"
===this.contextMenuSelectionMode)this.contextMenuSelection=n,this.contextMenuSelectionChange.emit(n),this.onContextMenuSelect.emit({originalEvent:e.originalEvent,data:n,index:e.rowIndex}),this.contextMenu.show(e.originalEvent),this.tableService.onContextMenu(n);else
if("joint"===this.contextMenuSelectionMode){this.preventSelectionSetterPropagation=!0;let
r=this.isSelected(n),o=this.dataKey?String(Z.resolveFieldData(n,this.dataKey)):null;if(!r){if(!this.isRowSelectable(n,s))return;this.isSingleSelectionMode()?(this.selection=n,this.selectionChange.emit(n),o&&(this.selectionKeys={},this.selectionKeys[o]=1)):this.isMultipleSelectionMode()&&(this._selection=this.selection?[...this.selection,n]:[n],this.selectionChange.emit(this.selection),o&&(this.selectionKeys[o]=1))}this.tableService.onSelectionChange(),this.contextMenu.show(e.originalEvent),this.onContextMenuSelect.emit({originalEvent:e,data:n,index:e.rowIndex})}}}selectRange(e,n){let
s,r;this.anchorRowIndex>n?(s=n,r=this.anchorRowIn
dex):this.anchorRowIndex<n?(s=this.anchorRowIndex,r=n):(s=n,r=n),this.lazy&&this.paginator&&(s-=this.first,r-=this.first);let
o=[];for(let u=s;u<=r;u++){let
h=this.filteredValue?this.filteredValue[u]:this.value[u];if(!this.isSelected(h)){if(!this.isRowSelectable(h,n))continue;o.push(h),this._selection=[...this.selection,h];let
b=this.dataKey?String(Z.resolveFieldData(h,this.dataKey)):null;b&&(this.selectionKeys[b]=1)}}this.selectionChange.emit(this.selection),this.onRowSelect.emit({originalEvent:e,data:o,type:"row"})}clearSelectionRange(e){let
n,s;this.rangeRowIndex>this.anchorRowIndex?(n=this.anchorRowIndex,s=this.rangeRowIndex):this.rangeRowIndex<this.anchorRowIndex?(n=this.rangeRowIndex,s=this.anchorRowIndex):(n=this.rangeRowIndex,s=this.rangeRowIndex);for(let
r=n;r<=s;r++){let
o=this.value[r],u=this.findIndexInSelection(o);this._selection=this.selection.filter((b,y)=>y!=u);let
h=this.dataKey?String(Z.resolveFieldData(o,this.dataKey)):null;h&&delete
this.selectionKeys[h],this.onR
owUnselect.emit({originalEvent:e,data:o,type:"row"})}}isSelected(e){return!(!e||!this.selection)&&(this.dataKey?void
0!==this.selectionKeys[Z.resolveFieldData(e,this.dataKey)]:this.selection instanceof
Array?this.findIndexInSelection(e)>-1:this.equals(e,this.selection))}findIndexInSelection(e){let
n=-1;if(this.selection&&this.selection.length)for(let
s=0;s<this.selection.length;s++)if(this.equals(e,this.selection[s])){n=s;break}return
n}isRowSelectable(e,n){return!(this.rowSelectable&&!this.rowSelectable({data:e,index:n}))}toggleRowWithRadio(e,n){if(this.preventSelectionSetterPropagation=!0,this.selection!=n){if(!this.isRowSelectable(n,e.rowIndex))return;this._selection=n,this.selectionChange.emit(this.selection),this.onRowSelect.emit({originalEvent:e.originalEvent,index:e.rowIndex,data:n,type:"radiobutton"}),this.dataKey&&(this.selectionKeys={},this.selectionKeys[String(Z.resolveFieldData(n,this.dataKey))]=1)}else
this._selection=null,this.selectionChange.emit(this.selection),this.
onRowUnselect.emit({originalEvent:e.originalEvent,index:e.rowIndex,data:n,type:"radiobutton"});this.tableService.onSelectionChange(),this.isStateful()&&this.saveState()}toggleRowWithCheckbox(e,n){this.selection=this.selection||[];let
s=this.isSelected(n),r=this.dataKey?String(Z.resolveFieldData(n,this.dataKey)):null;if(this.preventSelectionSetterPropagation=!0,s){let
o=this.findIndexInSelection(n);this._selection=this.selection.filter((u,h)=>h!=o),this.selectionChange.emit(this.selection),this.onRowUnselect.emit({originalEvent:e.originalEvent,index:e.rowIndex,data:n,type:"checkbox"}),r&&delete
this.selectionKeys[r]}else{if(!this.isRowSelectable(n,e.rowIndex))return;this._selection=this.selection?[...this.selection,n]:[n],this.selectionChange.emit(this.selection),this.onRowSelect.emit({originalEvent:e.originalEvent,index:e.rowIndex,data:n,type:"checkbox"}),r&&(this.selectionKeys[r]=1)}this.tableService.onSelectionChange(),this.isStateful()&&this.saveState()}toggleRowsWithCheckbox(e,n
){if(null!==this._selectAll)this.selectAllChange.emit({originalEvent:e,checked:n});else{const
s=this.selectionPageOnly?this.dataToRender:this.filteredValue||this.value||[];let
r=this.selectionPageOnly&&this._selection?this._selection.filter(o=>!s.some(u=>this.equals(o,u))):[];n&&(r=this.frozenValue?[...r,...this.frozenValue,...s]:[...r,...s],r=this.rowSelectable?r.filter((o,u)=>this.rowSelectable({data:o,index:u})):r),this._selection=r,this.preventSelectionSetterPropagation=!0,this.updateSelectionKeys(),this.selectionChange.emit(this._selection),this.tableService.onSelectionChange(),this.onHeaderCheckboxToggle.emit({originalEvent:e,checked:n}),this.isStateful()&&this.saveState()}}equals(e,n){return"equals"===this.compareSelectionBy?e===n:Z.equals(e,n,this.dataKey)}filter(e,n,s){this.filterTimeout&&clearTimeout(this.filterTimeout),this.isFilterBlank(e)?this.filters[n]&&delete
this.filters[n]:this.filters[n]={value:e,matchMode:s},this.filterTimeout=setTimeout(()=>{this._filter(),this.
filterTimeout=null},this.filterDelay),this.anchorRowIndex=null}filterGlobal(e,n){this.filter(e,"global",n)}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
n=0;n<this.value.length;n++){let u,s=!0,r=!1,o=!1;for(let h in
this.filters)if(this.filters.hasOwnProperty(h)&&"global"!==h){o=!0;let
b=h,y=this.filters[b];if(Array.isArray(y)){for(let w of
y)if(s=this.executeLocalFilter(b,this.value[n],w),w.operator===ml.OR&&s||w.operator===ml.AND&&!s)break}else
s=this.executeLocalFilter(b,this.value[n],y);if(!s)b
reak}if(this.filters.global&&!r&&e)for(let
h=0;h<e.length&&(r=this.filterService.filters[this.filters.global.matchMode](Z.resolveFieldData(this.value[n],e[h].field||e[h]),this.filters.global.value,this.filterLocale),!r);h++);u=this.filters.global?o?o&&s&&r:r:o&&s,u&&this.filteredValue.push(this.value[n])}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,n,s){let
r=s.value,o=s.matchMode||_t.STARTS_WITH,u=Z.resolveFieldData(n,e);return this.f
ilterService.filters[o](u,r,this.filterLocale)}hasFilter(){let e=!0;for(let n in
this.filters)if(this.filters.hasOwnProperty(n)){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()}getExportHeader(e){return
e[this.exportHeader]||e.header||e.field}exportCSV(e){let
n,s="",r=this.columns;e&&e.selectionOnly?n=this.selection||[]:(n=this.filteredValue||this.value,this.f
rozenValue&&(n=n?[...this.frozenValue,...n]:this.frozenValue));for(let
h=0;h<r.length;h++){let
b=r[h];!1!==b.exportable&&b.field&&(s+='"'+this.getExportHeader(b)+'"',h<r.length-1&&(s+=this.csvSeparator))}n.forEach((h,b)=>{s+="\n";for(let
y=0;y<r.length;y++){let w=r[y];if(!1!==w.exportable&&w.field){let
M=Z.resolveFieldData(h,w.field);M=null!=M?this.exportFunction?this.exportFunction({data:M,field:w.field}):String(M).replace(/"/g,'""'):"",s+='"'+M+'"',y<r.length-1&&(s+=this.csvSeparator)}}});let
o=new
Blob([s],{type:"text/csv;charset=utf-8;"}),u=document.createElement("a");u.style.display="none",document.body.appendChild(u),void
0!==u.download?(u.setAttribute("href",URL.createObjectURL(o)),u.setAttribute("download",this.exportFilename+".csv"),u.click()):(s="data:text/csv;charset=utf-8,"+s,window.open(encodeURI(s))),document.body.removeChild(u)}resetScrollTop(){this.virtualScroll?this.scrollToVirtualIndex(0):this.scrollTo({top:0})}scrollToVirtualIndex(e){this.virtualScrollBody&&this.v
irtualScrollBody.scrollToIndex(e)}onScrollIndexChange(e){this.lazy&&(this.virtualScrollTimeout&&clearTimeout(this.virtualScrollTimeout),this.virtualScrollTimeout=setTimeout(()=>{let
n=Math.floor(e/this.rows),s=0===n?0:(n-1)*this.rows,r=0===n?2*this.rows:3*this.rows;n!==this.virtualPage&&(this.virtualPage=n,this.lazyLoadOnInit||this.virtualScrollInitialized?this.onLazyLoad.emit({first:s,rows:r,sortField:this.sortField,sortOrder:this.sortOrder,filters:this.filters,globalFilter:this.filters&&this.filters.global?this.filters.global.value:null,multiSortMeta:this.multiSortMeta}):this.virtualScrollInitialized=!0)},this.virtualScrollDelay))}scrollTo(e){this.virtualScrollBody?this.virtualScrollBody.scrollTo(e):this.wrapperViewChild&&this.wrapperViewChild.nativeElement&&(this.wrapperViewChild.nativeElement.scrollTo?this.wrapperViewChild.nativeElement.scrollTo(e):(this.wrapperViewChild.nativeElement.scrollLeft=e.left,this.wrapperViewChild.nativeElement.scrollTop=e.top))}updateEditingCell(e,n,s
,r){this.editingCell=e,this.editingCellData=n,this.editingCellField=s,this.editingCellRowIndex=r,this.bindDocumentEditListener()}isEditingCellValid(){return
this.editingCell&&0===R.find(this.editingCell,".ng-invalid.ng-dirty").length}bindDocumentEditListener(){this.documentEditListener||(this.documentEditListener=e=>{this.editingCell&&!this.selfClick&&this.isEditingCellValid()&&(R.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.do
cumentEditListener=null)}initRowEdit(e){let
n=String(Z.resolveFieldData(e,this.dataKey));this.editingRowKeys[n]=!0}saveRowEdit(e,n){if(0===R.find(n,".ng-invalid.ng-dirty").length){let
s=String(Z.resolveFieldData(e,this.dataKey));delete
this.editingRowKeys[s]}}cancelRowEdit(e){let
n=String(Z.resolveFieldData(e,this.dataKey));delete
this.editingRowKeys[n]}toggleRow(e,n){if(!this.dataKey)throw new Error("dataKey must
be defined to use row expansion");let
s=String(Z.resolveFieldData(e,this.dataKey));null!=this.expandedRowKeys[s]?(delete
this.expandedRowKeys[s],this.onRowCollapse.emit({originalEvent:n,data:e})):("single"===this.rowExpandMode&&(this.expandedRowKeys={}),this.expandedRowKeys[s]=!0,this.onRowExpand.emit({originalEvent:n,data:e})),n&&n.preventDefault(),this.isStateful()&&this.saveState()}isRowExpanded(e){return!0===this.expandedRowKeys[String(Z.resolveFieldData(e,this.dataKey))]}isRowEditing(e){return!0===this.editingRowKeys[String(Z.resolveFieldData(e,this.dataKey))]}isSingl
eSelectionMode(){return"single"===this.selectionMode}isMultipleSelectionMode(){return"multiple"===this.selectionMode}onColumnResizeBegin(e){let
n=R.getOffset(this.containerViewChild.nativeElement).left;this.resizeColumnElement=e.target.parentElement,this.columnResizing=!0,this.lastResizerHelperX=e.pageX-n+this.containerViewChild.nativeElement.scrollLeft,this.onColumnResize(e),e.preventDefault()}onColumnResize(e){let
n=R.getOffset(this.containerViewChild.nativeElement).left;R.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-n+this.containerViewChild.nativeElement.scrollLeft+"px",this.resizeHelperViewChild.nativeElement.style.display="block"}onColumnResizeEnd(){let
e=this.resizeHelperViewChild.nativeElement.offsetLeft-this.lastResizerHelperX
,s=this.resizeColumnElement.offsetWidth+e;if(s>=(this.resizeColumnElement.style.minWidth||15)){if("fit"===this.columnResizeMode){let
u=this.resizeColumnElement.nextElementSibling.offsetWidth-e;s>15&&u>15&&this.resizeTableCells(s,u)}else
if("expand"===this.columnResizeMode){let
o=this.tableViewChild.nativeElement.offsetWidth+e;this.tableViewChild.nativeElement.style.width=o+"px",this.tableViewChild.nativeElement.style.minWidth=o+"px",this.resizeTableCells(s,null)}this.onColResize.emit({element:this.resizeColumnElement,delta:e}),this.isStateful()&&this.saveState()}this.resizeHelperViewChild.nativeElement.style.display="none",R.removeClass(this.containerViewChild.nativeElement,"p-unselectable-text")}resizeTableCells(e,n){let
s=R.index(this.resizeColumnElement),r=[];const
o=R.findSingle(this.containerViewChild.nativeElement,".p-datatable-thead");R.find(o,"tr
>
th").forEach(b=>r.push(R.getOuterWidth(b))),this.destroyStyleElement(),this.createStyleElement();let
h="";r.forEach((b,y)=>{let
w=y===s?e:n&&y===s+1?n:b;h+=`\n #${this.id} .p-datatable-thead
> tr > th:nth-child(${y+1}),\n #${this.id} .p-datatable-tbody > tr
> td:nth-child(${y+1}),\n #${this.id} .p-datatable-tfoot > tr >
td:nth-child(${y+1}) {\n ${this.scrollable?`flex: 1 1 ${w}px
!important`:`width: ${w}px !important`}\n }\n
`}),this.styleElement.innerHTML=h}onColumnDragStart(e,n){this.reorderIconWidth=R.getHiddenElementOuterWidth(this.reorderIndicatorUpViewChild.nativeElement),this.reorderIconHeight=R.getHiddenElementOuterHeight(this.reorderIndicatorDownViewChild.nativeElement),this.draggedColumn=n,e.dataTransfer.setData("text","b")}onColumnDragEnter(e,n){if(this.reorderableColumns&&this.draggedColumn&&n){e.preventDefault();let
s=R.getOffset(this.containerViewChild.nativeElement),r=R.getOffset(n);if(this.draggedColumn!=n){let
o=R.indexWithinGroup(this.draggedColumn,"preorderablecolumn"),u=R.indexWithinGroup(n,"preorder
ablecolumn"),h=r.left-s.left,y=r.left+n.offsetWidth/2;this.reorderIndicatorUpViewChild.nativeElement.style.top=r.top-s.top-(this.reorderIconHeight-1)+"px",this.reorderIndicatorDownViewChild.nativeElement.style.top=r.top-s.top+n.offsetHeight+"px",e.pageX>y?(this.reorderIndicatorUpViewChild.nativeElement.style.left=h+n.offsetWidth-Math.ceil(this.reorderIconWidth/2)+"px",this.reorderIndicatorDownViewChild.nativeElement.style.left=h+n.offsetWidth-Math.ceil(this.reorderIconWidth/2)+"px",this.dropPosition=1):(this.reorderIndicatorUpViewChild.nativeElement.style.left=h-Math.ceil(this.reorderIconWidth/2)+"px",this.reorderIndicatorDownViewChild.nativeElement.style.left=h-Math.ceil(this.reorderIconWidth/2)+"px",this.dropPosition=-1),u-o==1&&-1===this.dropPosition||u-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,n){if(e.preventDefault(),this.draggedColumn){let
s=R.indexWithinGroup(this.draggedColumn,"preorderablecolumn"),r=R.indexWithinGroup(n,"preorderablecolumn"),o=s!=r;o&&(r-s==1&&-1===this.dropPosition||s-r==1&&1===this.dropPosition)&&(o=!1),o&&r<s&&1===this.dropPosition&&(r+=1),o&&r>s&&-1===this.dropPosition&&(r-=1),o&&(Z.reorderArray(this.columns,s,r),this.onColReorder.emit({dragIndex:s,dropIndex:r,columns:this.columns}),this.isStateful()&&this.zone.runOutsideAngular(()=>{setTimeout(()=>{this.saveState()})})),this.reorderIndicatorUpViewChild.nativeElement.style.display="none",this.reorderIndicatorDownViewChild.nativeElement.style.d
isplay="none",this.draggedColumn.draggable=!1,this.draggedColumn=null,this.dropPosition=null}}onRowDragStart(e,n){this.rowDragging=!0,this.draggedRowIndex=n,e.dataTransfer.setData("text","b")}onRowDragOver(e,n,s){if(this.rowDragging&&this.draggedRowIndex!==n){let
r=R.getOffset(s).top+R.getWindowScrollTop(),o=e.pageY,u=r+R.getOuterHeight(s)/2,h=s.previousElementSibling;o<u?(R.removeClass(s,"p-datatable-dragpoint-bottom"),this.droppedRowIndex=n,h?R.addClass(h,"p-datatable-dragpoint-bottom"):R.addClass(s,"p-datatable-dragpoint-top")):(h?R.removeClass(h,"p-datatable-dragpoint-bottom"):R.addClass(s,"p-datatable-dragpoint-top"),this.droppedRowIndex=n+1,R.addClass(s,"p-datatable-dragpoint-bottom"))}}onRowDragLeave(e,n){let
s=n.previousElementSibling;s&&R.removeClass(s,"p-datatable-dragpoint-bottom"),R.removeClass(n,"p-datatable-dragpoint-bottom"),R.removeClass(n,"p-datatable-dragpoint-top")}onRowDragEnd(e){this.rowDragging=!1,this.draggedRowIndex=null,this.droppedRowIndex=null}onRowDrop(e,
n){if(null!=this.droppedRowIndex){let
s=this.draggedRowIndex>this.droppedRowIndex?this.droppedRowIndex:0===this.droppedRowIndex?0:this.droppedRowIndex-1;Z.reorderArray(this.value,this.draggedRowIndex,s),this.virtualScroll&&(this._value=[...this._value]),this.onRowReorder.emit({dragIndex:this.draggedRowIndex,dropIndex:s})}this.onRowDragLeave(e,n),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
n={};this.paginator&&(n.first=this.first,n.rows=this.rows),this.sortField&&(n.sortField=this.sortField,n.sortOrder=this.sortOrder),this.multiSortMeta&&(
n.multiSortMeta=this.multiSortMeta),this.hasFilter()&&(n.filters=this.filters),this.resizableColumns&&this.saveColumnWidths(n),this.reorderableColumns&&this.saveColumnOrder(n),this.selection&&(n.selection=this.selection),Object.keys(this.expandedRowKeys).length&&(n.expandedRowKeys=this.expandedRowKeys),e.setItem(this.stateKey,JSON.stringify(n)),this.onStateSave.emit(n)}clearState(){const
e=this.getStorage();this.stateKey&&e.removeItem(this.stateKey)}restoreState(){const
n=this.getStorage().getItem(this.stateKey),s=/\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}.\d{3}Z/;if(n){let
o=JSON.parse(n,function(o,u){return"string"==typeof u&&s.test(u)?new
Date(u):u});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.filt
ers&&(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
n=[];R.find(this.containerViewChild.nativeElement,".p-datatable-thead > tr >
th").forEach(r=>n.push(R.getOuterWidth(r))),e.columnWidths=n.join(","),"expand"===this.columnResizeMode&&(e.tableWidth=R.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),Z.isNotEmpty(e))
{this.createStyleElement();let n="";e.forEach((s,r)=>{n+=`\n
#${this.id} .p-datatable-thead > tr > th:nth-child(${r+1}),\n
#${this.id} .p-datatable-tbody > tr > td:nth-child(${r+1}),\n
#${this.id} .p-datatable-tfoot > tr > td:nth-child(${r+1}) {\n
${this.scrollable?`flex: 1 1 ${s}px !important`:`width: ${s}px !important`}\n
}\n
`}),this.styleElement.innerHTML=n}}}saveColumnOrder(e){if(this.columns){let
n=[];this.columns.map(s=>{n.push(s.field||s.key)}),e.columnOrder=n}}restoreColumnOrder(){const
n=this.getStorage().getItem(this.stateKey);if(n){let r=JSON.parse(n).columnOrder;if(r){let
o=[];r.map(u=>{let
h=this.findColumnByKey(u);h&&o.push(h)}),this.columnOrderStateRestored=!0,this.columns=o}}}findColumnByKey(e){if(!this.columns)return
null;for(let n of this.columns)if(n.key===e||n.field===e)return
n}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.virtualScrollInitialized=null,this.virtualScrollSubscription&&this.virtualScrollSubscription.unsubscribe(),this.destroyStyleElement(),this.destroyResponsiveStyle()}}return
t.\u0275fac=function(e){return
new(e||t)(D(De),D(nt),D(Cd),D(rt),D(hl),D(Ks))},t.\u0275cmp=z({type:t,selectors:[["p-table"]],contentQueries:function(e,n,s){if(1&e&&st(s,ne,4),2&e){let
r;V(r=B())&&(n.templates=r)}},viewQuery:function(e,n){if(1&e&&(W(Eq,5),W(Rq,5),W(Lq,5),W(Oq,5),W(Aq,5),W(Pq
,5),W(Fq,5),W(Po,5)),2&e){let
s;V(s=B())&&(n.containerViewChild=s.first),V(s=B())&&(n.resizeHelperViewChild=s.first),V(s=B())&&(n.reorderIndicatorUpViewChild=s.first),V(s=B())&&(n.reorderIndicatorDownViewChild=s.first),V(s=B())&&(n.wrapperViewChild=s.first),V(s=B())&&(n.tableViewChild=s.first),V(s=B())&&(n.tableHeaderViewChild=s.first),V(s=B())&&(n.virtualScrollBody=s.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",sho
wJumpToPageInput:"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",filterLocale:"filterLocale",expandedRowKeys:"expandedRowKeys",editingRowKeys:"editingRowKeys",rowExpandMode:"rowExpandMode",scrollable:"scrollable",scrollDirection:"scrollDirection",rowGroupMode:"rowGroupMode",scrollHeight:"scrollHeight",virtualScroll:"virtualScroll",virtualScrollDelay:"virtualScrol
lDelay",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",exportHeader:"exportHeader",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",c
ontextMenuSelectionChange:"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:[Pe([Cd]),fn],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","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","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","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"],["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,n){1&e&&(l(0,"div",0,1),_(
2,Nq,2,2,"div",2),_(3,Bq,2,1,"div",3),_(4,Hq,1,17,"p-paginator",4),l(5,"div",5,6),_(7,$q,8,16,"table",7),_(8,Zq,10,21,"cdk-virtual-scroll-viewport",8),c(),_(9,Xq,1,17,"p-paginator",9),_(10,tG,2,1,"div",10),_(11,nG,2,0,"div",11),_(12,iG,2,0,"span",12),_(13,sG,2,0,"span",13),c()),2&e&&(me(n.styleClass),p("ngStyle",n.style)("ngClass",Hh(16,rG,[n.rowHover||n.selectionMode,n.autoLayout,n.resizableColumns,n.resizableColumns&&"fit"===n.columnResizeMode,n.scrollable,n.scrollable&&"vertical"===n.scrollDirection,n.scrollable&&"horizontal"===n.scrollDirection,n.scrollable&&"both"===n.scrollDirection,n.scrollable&&"flex"===n.scrollHeight,"stack"===n.responsiveLayout,"scroll"===n.responsiveLayout,n.responsive,null!=n.headerGroupedTemplate,null!=n.footerGroupedTemplate])),ie("id",n.id),a(2),p("ngIf",n.loading&&n.showLoader),a(1),p("ngIf",n.captionTemplate),a(1),p("ngIf",n.paginator&&("top"===n.paginatorPosition||"both"==n.paginatorPosition)),a(1),p("ngStyle",U(31,oG,n.scrollHeight)),a(2),p("ngIf"
,!n.virtualScroll),a(1),p("ngIf",n.virtualScroll),a(1),p("ngIf",n.paginator&&("bottom"===n.paginatorPosition||"both"==n.paginatorPosition)),a(1),p("ngIf",n.summaryTemplate),a(1),p("ngIf",n.resizableColumns),a(1),p("ngIf",n.reorderableColumns),a(1),p("ngIf",n.reorderableColumns))},directives:function(){return[ET,TU,Po,lt,Le,Q,Rt,Qf]},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-responsi
ve-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-vi
rtual-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-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-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-s
pace:nowrap}.p-datatable-resizable
.p-resizable-column:not(.p-frozen-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-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{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;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})(),TU=(()=>{cla
ss
t{constructor(e,n,s,r){this.dt=e,this.tableService=n,this.cd=s,this.el=r,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,n,s){let
r=Z.resolveFieldData(n,this.dt.groupRowsBy),o=e[s-1];return!o||r!==Z.resolveFieldData(o,this.dt.groupRowsBy)}shouldRenderRowGroupFooter(e,n,s){let
r=Z.resolveFieldData(n,this.dt.groupRowsBy),o=e[s+1];return!o||r!==Z.resolveFieldData(o,this.dt.groupRowsBy)}shouldRenderRowspan(e,n,s){let
r=Z.resolveFieldData(n,this.dt.groupRowsBy),o=e[s-1];return!o||r!==Z.resolveFieldData(o,
this.dt.groupRowsBy)}calculateRowGroupSize(e,n,s){let
r=Z.resolveFieldData(n,this.dt.groupRowsBy),o=r,u=0;for(;r===o;){u++;let
h=e[++s];if(!h)break;o=Z.resolveFieldData(h,this.dt.groupRowsBy)}return
1===u?null:u}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}updateFrozenRowStickyPosition(){this.el.nativeElement.style.top=R.getOuterHeight(this.el.nativeElement.previousElementSibling)+"px"}updateFrozenRowGroupHeaderStickyPosition(){if(this.el.nativeElement.previousElementSibling){let
e=R.getOuterHeight(this.el.nativeElement.previousElementSibling);this.dt.rowGroupHeaderStyleObject.top=e+"px"}}}return
t.\u0275fac=function(e){return
new(e||t)(D(Dn),D(Cd),D(rt),D(De))},t.\u0275cmp=z({type:t,selectors:[["","pTableBody",""]],hostAttrs:[1,"p-element"],inputs:{columns:["pTableBody","columns"],template:["pTableBodyTemplate","template"],value:"value",frozen:"frozen",frozenRows:"frozenRows"},attrs:aG,decls:6,vars:6,consts:[[4,"ngIf"],["ngFor","",3,"ngForOf","ngForTrackBy"],["r
ole","row",4,"ngIf"],["role","row"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],["cdkVirtualFor","",3,"cdkVirtualForOf","cdkVirtualForTrackBy","cdkVirtualForTemplateCacheSize"]],template:function(e,n){1&e&&(_(0,bG,2,2,"ng-container",0),_(1,yG,2,3,"ng-container",0),_(2,RG,2,2,"ng-container",0),_(3,FG,2,2,"ng-container",0),_(4,VG,2,5,"ng-container",0),_(5,HG,2,5,"ng-container",0)),2&e&&(p("ngIf",!n.dt.expandedRowTemplate&&!n.dt.virtualScroll),a(1),p("ngIf",!n.dt.expandedRowTemplate&&n.dt.virtualScroll),a(1),p("ngIf",n.dt.expandedRowTemplate&&!(n.frozen&&n.dt.frozenExpandedRowTemplate)),a(1),p("ngIf",n.dt.frozenExpandedRowTemplate&&n.frozen),a(1),p("ngIf",n.dt.loading),a(1),p("ngIf",n.dt.isEmpty()&&!n.dt.loading))},directives:[Q,at,Rt,Jf],encapsulation:2}),t})(),SU=(()=>{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)(D(Dn)
)},t.\u0275dir=le({type:t,selectors:[["","pRowGroupHeader",""]],hostAttrs:[1,"p-rowgroup-header","p-element"],hostVars:2,hostBindings:function(e,n){2&e&&_i("top",n.getFrozenRowGroupHeaderStickyPosition)}}),t})(),yd=(()=>{class
t{constructor(e){this.dt=e,this.isEnabled()&&(this.subscription=this.dt.tableService.sortSource$.subscribe(n=>{this.updateSortState()}))}ngOnInit(){this.isEnabled()&&this.updateSortState()}updateSortState(){this.sorted=this.dt.isSorted(this.field),this.sortOrder=this.sorted?1===this.dt.sortOrder?"ascending":"descending":"none"}onClick(e){this.isEnabled()&&!this.isFilterElement(e.target)&&(this.updateSortState(),this.dt.sort({originalEvent:e,field:this.field}),R.clearSelection())}onEnterKey(e){this.onClick(e)}isEnabled(){return!0!==this.pSortableColumnDisabled}isFilterElement(e){return
R.hasClass(e,"pi-filter-icon")||R.hasClass(e,"p-column-filter-menu-button")}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}}return
t.\u0275fac=function(e){retur
n
new(e||t)(D(Dn))},t.\u0275dir=le({type:t,selectors:[["","pSortableColumn",""]],hostAttrs:[1,"p-element"],hostVars:7,hostBindings:function(e,n){1&e&&C("click",function(r){return
n.onClick(r)})("keydown.enter",function(r){return
n.onEnterKey(r)}),2&e&&(ie("tabindex",n.isEnabled()?"0":null)("role","columnheader")("aria-sort",n.sortOrder),si("p-sortable-column",n.isEnabled())("p-highlight",n.sorted))},inputs:{field:["pSortableColumn","field"],pSortableColumnDisabled:"pSortableColumnDisabled"}}),t})(),wd=(()=>{class
t{constructor(e,n){this.dt=e,this.cd=n,this.subscription=this.dt.tableService.sortSource$.subscribe(s=>{this.updateSortState()})}ngOnInit(){this.updateSortState()}onClick(e){e.preventDefault()}updateSortState(){if("single"===this.dt.sortMode)this.sortOrder=this.dt.isSorted(this.field)?this.dt.sortOrder:0;else
if("multiple"===this.dt.sortMode){let
e=this.dt.getSortMeta(this.field);this.sortOrder=e?e.order:0}this.cd.markForCheck()}getMultiSortMetaIndex(){let
e=this.dt._multiS
ortMeta,n=-1;if(e&&"multiple"===this.dt.sortMode&&(this.dt.showInitialSortBadge||e.length>1))for(let
s=0;s<e.length;s++){let
r=e[s];if(r.field===this.field||r.field===this.field){n=s;break}}return
n}getBadgeValue(){let e=this.getMultiSortMetaIndex();return
this.dt.groupRowsBy&&e>-1?e:e+1}isMultiSorted(){return"multiple"===this.dt.sortMode&&this.getMultiSortMetaIndex()>-1}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}}return
t.\u0275fac=function(e){return
new(e||t)(D(Dn),D(rt))},t.\u0275cmp=z({type:t,selectors:[["p-sortIcon"]],hostAttrs:[1,"p-element"],inputs:{field:"field"},decls:2,vars:6,consts:[[1,"p-sortable-column-icon","pi","pi-fw",3,"ngClass"],["class","p-sortable-column-badge",4,"ngIf"],[1,"p-sortable-column-badge"]],template:function(e,n){1&e&&(k(0,"i",0),_(1,qG,2,1,"span",1)),2&e&&(p("ngClass",Qt(2,GG,1===n.sortOrder,-1===n.sortOrder,0===n.sortOrder)),a(1),p("ngIf",n.isMultiSorted()))},directives:[Le,Q],encapsulation:2,changeDetection:0}),t})(),j2=(()=>{c
lass
t{constructor(e,n){this.dt=e,this.tableService=n,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
s=this.findNextSelectableRow(e.currentTarget);s&&s.focus(),e.preventDefault()}onArrowUpKeyDown(e){if(!this.isEnabled())return;const
s=this.findPrevSelectableRow(e.currentTarget);s&&s.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.virtua
lScrollBody.elementRef.nativeElement.focus()}findNextSelectableRow(e){let
n=e.nextElementSibling;return
n?R.hasClass(n,"p-selectable-row")?n:this.findNextSelectableRow(n):null}findPrevSelectableRow(e){let
n=e.previousElementSibling;return
n?R.hasClass(n,"p-selectable-row")?n:this.findPrevSelectableRow(n):null}isEnabled(){return!0!==this.pSelectableRowDisabled}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}}return
t.\u0275fac=function(e){return
new(e||t)(D(Dn),D(Cd))},t.\u0275dir=le({type:t,selectors:[["","pSelectableRow",""]],hostAttrs:[1,"p-element"],hostVars:5,hostBindings:function(e,n){1&e&&C("click",function(r){return
n.onClick(r)})("touchend",function(r){return
n.onTouchEnd(r)})("keydown.arrowdown",function(r){return
n.onArrowDownKeyDown(r)})("keydown.arrowup",function(r){return
n.onArrowUpKeyDown(r)})("keydown.enter",function(r){return
n.onEnterKeyDown(r)})("keydown.shift.enter",function(r){return
n.onEnterKeyDown(r)})("keydown.meta.enter",function(r){return
n.onEnterKeyDown(r)})("keydown.pagedown",function(){return
n.onPageDownKeyDown()})("keydown.pageup",function(){return
n.onPageDownKeyDown()})("keydown.home",function(){return
n.onPageDownKeyDown()})("keydown.end",function(){return
n.onPageDownKeyDown()})("keydown.space",function(){return
n.onSpaceKeydown()}),2&e&&(ie("tabindex",n.isEnabled()?0:void
0),si("p-selectable-row",n.isEnabled())("p-highlight",n.selected))},inputs:{data:["pSelectableRow","data"],index:["pSelectableRowIndex","index"],pSelectableRowDisabled:"pSelectableRowDisabled"}}),t})(),$2=(()=>{class
t{constructor(e,n,s){this.dt=e,this.el=n,this.zone=s}ngAfterViewInit(){this.isEnabled()&&R.addClass(this.el.nativeElement,"p-editable-column")}onClick(e){if(this.isEnabled())if(this.dt.selfClick=!0,this.dt.editingCell){if(this.dt.editingCell!==this.el.nativeElement){if(!this.dt.isEditingCellValid())return;this.closeEditingCell(!0,e),this.openCell()}}else
this.openCell()}openCell(){this.dt.updateEditingCell(this.el.nativeEleme
nt,this.data,this.field,this.rowIndex),R.addClass(this.el.nativeElement,"p-cell-editing"),this.dt.onEditInit.emit({field:this.field,data:this.data,index:this.rowIndex}),this.zone.runOutsideAngular(()=>{setTimeout(()=>{let
n=R.findSingle(this.el.nativeElement,this.pFocusCellSelector||"input, textarea,
select");n&&n.focus()},50)}),this.overlayEventListener=e=>{this.el&&this.el.nativeElement.contains(e.target)&&(this.dt.selfClick=!0)},this.dt.overlaySubscription=this.dt.overlayService.clickObservable.subscribe(this.overlayEventListener)}closeEditingCell(e,n){e?this.dt.onEditComplete.emit({field:this.dt.editingCellField,data:this.dt.editingCellData,originalEvent:n,index:this.dt.editingCellRowIndex}):this.dt.onEditCancel.emit({field:this.dt.editingCellField,data:this.dt.editingCellData,originalEvent:n,index:this.dt.editingCellRowIndex}),R.removeClass(this.dt.editingCell,"p-cell-editing"),this.dt.editingCell=null,this.dt.editingCellData=null,this.dt.editingCellField=null,this.dt.unbindDoc
umentEditListener(),this.dt.overlaySubscription&&this.dt.overlaySubscription.unsubscribe()}onEnterKeyDown(e){this.isEnabled()&&(this.dt.isEditingCellValid()&&this.closeEditingCell(!0,e),e.preventDefault())}onEscapeKeyDown(e){this.isEnabled()&&(this.dt.isEditingCellValid()&&this.closeEditingCell(!1,e),e.preventDefault())}onShiftKeyDown(e){this.isEnabled()&&(e.shiftKey?this.moveToPreviousCell(e):this.moveToNextCell(e))}onArrowDown(e){if(this.isEnabled()){let
n=this.findCell(e.target);if(n){let
s=R.index(n),r=this.findNextEditableColumnByIndex(n,s);r&&(this.dt.isEditingCellValid()&&this.closeEditingCell(!0,e),R.invokeElementMethod(e.target,"blur"),R.invokeElementMethod(r,"click")),e.preventDefault()}}}onArrowUp(e){if(this.isEnabled()){let
n=this.findCell(e.target);if(n){let
s=R.index(n),r=this.findPrevEditableColumnByIndex(n,s);r&&(this.dt.isEditingCellValid()&&this.closeEditingCell(!0,e),R.invokeElementMethod(e.target,"blur"),R.invokeElementMethod(r,"click")),e.preventDefault()}}}onAr
rowLeft(e){this.isEnabled()&&this.moveToPreviousCell(e)}onArrowRight(e){this.isEnabled()&&this.moveToNextCell(e)}findCell(e){if(e){let
n=e;for(;n&&!R.hasClass(n,"p-cell-editing");)n=n.parentElement;return
n}return null}moveToPreviousCell(e){let n=this.findCell(e.target);if(n){let
s=this.findPreviousEditableColumn(n);s&&(this.dt.isEditingCellValid()&&this.closeEditingCell(!0,e),R.invokeElementMethod(e.target,"blur"),R.invokeElementMethod(s,"click"),e.preventDefault())}}moveToNextCell(e){let
n=this.findCell(e.target);if(n){let
s=this.findNextEditableColumn(n);s&&(this.dt.isEditingCellValid()&&this.closeEditingCell(!0,e),R.invokeElementMethod(e.target,"blur"),R.invokeElementMethod(s,"click"),e.preventDefault())}}findPreviousEditableColumn(e){let
n=e.previousElementSibling;if(!n){let
s=e.parentElement.previousElementSibling;s&&(n=s.lastElementChild)}return
n?R.hasClass(n,"p-editable-column")?n:this.findPreviousEditableColumn(n):null}findNextEditableColumn(e){let
n=e.nextElementSibling;i
f(!n){let s=e.parentElement.nextElementSibling;s&&(n=s.firstElementChild)}return
n?R.hasClass(n,"p-editable-column")?n:this.findNextEditableColumn(n):null}findNextEditableColumnByIndex(e,n){let
s=e.parentElement.nextElementSibling;if(s){let r=s.children[n];return
r&&R.hasClass(r,"p-editable-column")?r:null}return
null}findPrevEditableColumnByIndex(e,n){let
s=e.parentElement.previousElementSibling;if(s){let r=s.children[n];return
r&&R.hasClass(r,"p-editable-column")?r:null}return
null}isEnabled(){return!0!==this.pEditableColumnDisabled}ngOnDestroy(){this.dt.overlaySubscription&&this.dt.overlaySubscription.unsubscribe()}}return
t.\u0275fac=function(e){return
new(e||t)(D(Dn),D(De),D(nt))},t.\u0275dir=le({type:t,selectors:[["","pEditableColumn",""]],hostAttrs:[1,"p-element"],hostBindings:function(e,n){1&e&&C("click",function(r){return
n.onClick(r)})("keydown.enter",function(r){return
n.onEnterKeyDown(r)})("keydown.escape",function(r){return
n.onEscapeKeyDown(r)})("keydown.tab",function(
r){return n.onShiftKeyDown(r)})("keydown.shift.tab",function(r){return
n.onShiftKeyDown(r)})("keydown.meta.tab",function(r){return
n.onShiftKeyDown(r)})("keydown.arrowdown",function(r){return
n.onArrowDown(r)})("keydown.arrowup",function(r){return
n.onArrowUp(r)})("keydown.arrowleft",function(r){return
n.onArrowLeft(r)})("keydown.arrowright",function(r){return
n.onArrowRight(r)})},inputs:{data:["pEditableColumn","data"],field:["pEditableColumnField","field"],rowIndex:["pEditableColumnRowIndex","rowIndex"],pEditableColumnDisabled:"pEditableColumnDisabled",pFocusCellSelector:"pFocusCellSelector"}}),t})(),xU=(()=>{class
t{constructor(e){this.el=e}isEnabled(){return!0!==this.pEditableRowDisabled}}return
t.\u0275fac=function(e){return
new(e||t)(D(De))},t.\u0275dir=le({type:t,selectors:[["","pEditableRow",""]],hostAttrs:[1,"p-element"],inputs:{data:["pEditableRow","data"],pEditableRowDisabled:"pEditableRowDisabled"}}),t})(),DU=(()=>{class
t{constructor(e,n,s){this.dt=e,this.editableColumn
=n,this.editableRow=s}ngAfterContentInit(){this.templates.forEach(e=>{switch(e.getType()){case"input":this.inputTemplate=e.template;break;case"output":this.outputTemplate=e.template}})}get
editing(){return
this.dt.editingCell&&this.editableColumn&&this.dt.editingCell===this.editableColumn.el.nativeElement||this.editableRow&&"row"===this.dt.editMode&&this.dt.isRowEditing(this.editableRow.data)}}return
t.\u0275fac=function(e){return
new(e||t)(D(Dn),D($2,8),D(xU,8))},t.\u0275cmp=z({type:t,selectors:[["p-cellEditor"]],contentQueries:function(e,n,s){if(1&e&&st(s,ne,4),2&e){let
r;V(r=B())&&(n.templates=r)}},hostAttrs:[1,"p-element"],decls:2,vars:2,consts:[[4,"ngIf"],[4,"ngTemplateOutlet"]],template:function(e,n){1&e&&(_(0,zG,2,1,"ng-container",0),_(1,$G,2,1,"ng-container",0)),2&e&&(p("ngIf",n.editing),a(1),p("ngIf",!n.editing))},directives:[Q,Rt],encapsulation:2}),t})(),MU=(()=>{class
t{constructor(e){this.dt=e,this.useGrouping=!0}ngOnInit(){this.filterCallback=e=>{this.filterConstraint.v
alue=e,this.dt._filter()}}onModelChange(e){this.filterConstraint.value=e,("boolean"===this.type||""===e)&&this.dt._filter()}onTextInputEnterKeyDown(e){this.dt._filter(),e.preventDefault()}onNumericInputKeyDown(e){"Enter"===e.key&&(this.dt._filter(),e.preventDefault())}}return
t.\u0275fac=function(e){return
new(e||t)(D(Dn))},t.\u0275cmp=z({type:t,selectors:[["p-columnFilterFormElement"]],hostAttrs:[1,"p-element"],inputs:{field:"field",type:"type",filterConstraint:"filterConstraint",filterTemplate:"filterTemplate",placeholder:"placeholder",minFractionDigits:"minFractionDigits",maxFractionDigits:"maxFractionDigits",prefix:"prefix",suffix:"suffix",locale:"locale",localeMatcher:"localeMatcher",currency:"currency",currencyDisplay:"currencyDisplay",useGrouping:"useGrouping"},decls:3,vars:2,consts:[[4,"ngIf","ngIfElse"],["builtInElement",""],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[3,"ngSwitch"],["type","text","pInputText","",3,"value","input","keydown.enter",4,"ngSwitchCase"],[3,"
ngModel","showButtons","minFractionDigits","maxFractionDigits","prefix","suffix","placeholder","mode","locale","localeMatcher","currency","currencyDisplay","useGrouping","ngModelChange","onKeyDown",4,"ngSwitchCase"],[3,"ngModel","ngModelChange",4,"ngSwitchCase"],[3,"placeholder","ngModel","ngModelChange",4,"ngSwitchCase"],["type","text","pInputText","",3,"value","input","keydown.enter"],[3,"ngModel","showButtons","minFractionDigits","maxFractionDigits","prefix","suffix","placeholder","mode","locale","localeMatcher","currency","currencyDisplay","useGrouping","ngModelChange","onKeyDown"],[3,"ngModel","ngModelChange"],[3,"placeholder","ngModel","ngModelChange"]],template:function(e,n){if(1&e&&(_(0,QG,2,5,"ng-container",0),_(1,eU,5,5,"ng-template",null,1,we)),2&e){const
s=F(2);p("ngIf",n.filterTemplate)("ngIfElse",s)}},directives:[pt,G2,xr,Q,Rt,gr,Ja,DT,Te,_e],encapsulation:2}),t})(),vg=(()=>{class
t{constructor(e,n,s,r,o){this.el=e,this.dt=n,this.renderer=s,this.config=r,this.overlaySe
rvice=o,this.type="text",this.display="row",this.showMenu=!0,this.operator=ml.AND,this.showOperator=!0,this.showClearButton=!0,this.showApplyButton=!0,this.showMatchModes=!0,this.showAddButton=!0,this.hideOnClear=!1,this.maxConstraints=2,this.useGrouping=!0}ngOnInit(){this.dt.filters[this.field]||this.initFieldFilterConstraint(),this.translationSubscription=this.config.translationObserver.subscribe(()=>{this.generateMatchModeOptions(),this.generateOperatorOptions()}),this.resetSubscription=this.dt.tableService.resetSource$.subscribe(()=>{this.initFieldFilterConstraint()}),this.generateMatchModeOptions(),this.generateOperatorOptions()}generateMatchModeOptions(){var
e;this.matchModes=this.matchModeOptions||(null===(e=this.config.filterMatchModeOptions[this.type])||void
0===e?void
0:e.map(n=>({label:this.config.getTranslation(n),value:n})))}generateOperatorOptions(){this.operatorOptions=[{label:this.config.getTranslation(Ft.MATCH_ALL),value:ml.AND},{label:this.config.getTranslation(Ft.
MATCH_ANY),value:ml.OR}]}ngAfterContentInit(){this.templates.forEach(e=>{switch(e.getType()){case"header":this.headerTemplate=e.template;break;case"filter":default:this.filterTemplate=e.template;break;case"footer":this.footerTemplate=e.template}})}initFieldFilterConstraint(){let
e=this.getDefaultMatchMode();this.dt.filters[this.field]="row"==this.display?{value:null,matchMode:e}:[{value:null,matchMode:e,operator:this.operator}]}onMenuMatchModeChange(e,n){n.matchMode=e,this.showApplyButton||this.dt._filter()}onRowMatchModeChange(e){this.dt.filters[this.field].matchMode=e,this.dt._filter(),this.hide()}onRowMatchModeKeyDown(e){let
n=e.target;switch(e.key){case"ArrowDown":var
s=this.findNextItem(n);s&&(n.removeAttribute("tabindex"),s.tabIndex="0",s.focus()),e.preventDefault();break;case"ArrowUp":var
r=this.findPrevItem(n);r&&(n.removeAttribute("tabindex"),r.tabIndex="0",r.focus()),e.preventDefault()}}onRowClearItemClick(){this.clearFilter(),this.hide()}isRowMatchModeSelected(e){return
t
his.dt.filters[this.field].matchMode===e}addConstraint(){this.dt.filters[this.field].push({value:null,matchMode:this.getDefaultMatchMode(),operator:this.getDefaultOperator()}),this.dt._filter()}removeConstraint(e){this.dt.filters[this.field]=this.dt.filters[this.field].filter(n=>n!==e),this.dt._filter()}onOperatorChange(e){this.dt.filters[this.field].forEach(n=>{n.operator=e,this.operator=e}),this.showApplyButton||this.dt._filter()}toggleMenu(){this.overlayVisible=!this.overlayVisible}onToggleButtonKeyDown(e){switch(e.key){case"Escape":case"Tab":this.overlayVisible=!1;break;case"ArrowDown":if(this.overlayVisible){let
n=R.getFocusableElements(this.overlay);n&&n[0].focus(),e.preventDefault()}else
e.altKey&&(this.overlayVisible=!0,e.preventDefault())}}onEscape(){this.overlayVisible=!1,this.icon.nativeElement.focus()}findNextItem(e){let
n=e.nextElementSibling;return
n?R.hasClass(n,"p-column-filter-separator")?this.findNextItem(n):n:e.parentElement.firstElementChild}findPrevItem(e){let
n
=e.previousElementSibling;return
n?R.hasClass(n,"p-column-filter-separator")?this.findPrevItem(n):n:e.parentElement.lastElementChild}onContentClick(){this.selfClick=!0}onOverlayAnimationStart(e){switch(e.toState){case"visible":this.overlay=e.element,document.body.appendChild(this.overlay),dt.set("overlay",this.overlay,this.config.zIndex.overlay),R.absolutePosition(this.overlay,this.icon.nativeElement),this.bindDocumentClickListener(),this.bindDocumentResizeListener(),this.bindScrollListener(),this.overlayEventListener=n=>{this.overlay&&this.overlay.contains(n.target)&&(this.selfClick=!0)},this.overlaySubscription=this.overlayService.clickObservable.subscribe(this.overlayEventListener);break;case"void":this.onOverlayHide(),this.overlaySubscription&&this.overlaySubscription.unsubscribe()}}onOverlayAnimationEnd(e){"void"===e.toState&&dt.clear(e.element)}getDefaultMatchMode(){return
this.matchMode?this.matchMode:"text"===this.type?_t.STARTS_WITH:"numeric"===this.type?_t.EQUALS:"date"===
this.type?_t.DATE_IS:_t.CONTAINS}getDefaultOperator(){return
this.dt.filters?this.dt.filters[this.field][0].operator:this.operator}hasRowFilter(){return
this.dt.filters[this.field]&&!this.dt.isFilterBlank(this.dt.filters[this.field].value)}get
fieldConstraints(){return this.dt.filters?this.dt.filters[this.field]:null}get
showRemoveIcon(){return!!this.fieldConstraints&&this.fieldConstraints.length>1}get
showMenuButton(){return
this.showMenu&&("row"!==this.display||"boolean"!==this.type)}get
isShowOperator(){return this.showOperator&&"boolean"!==this.type}get
isShowAddConstraint(){return
this.showAddButton&&"boolean"!==this.type&&this.fieldConstraints&&this.fieldConstraints.length<this.maxConstraints}get
applyButtonLabel(){return this.config.getTranslation(Ft.APPLY)}get
clearButtonLabel(){return this.config.getTranslation(Ft.CLEAR)}get
addRuleButtonLabel(){return this.config.getTranslation(Ft.ADD_RULE)}get
removeRuleButtonLabel(){return this.config.getTranslation(Ft.REMOVE_RULE)}get n
oFilterLabel(){return this.config.getTranslation(Ft.NO_FILTER)}hasFilter(){let
e=this.dt.filters[this.field];return!!e&&(Array.isArray(e)?!this.dt.isFilterBlank(e[0].value):!this.dt.isFilterBlank(e.value))}isOutsideClicked(e){return!(this.overlay.isSameNode(e.target)||this.overlay.contains(e.target)||this.icon.nativeElement.isSameNode(e.target)||this.icon.nativeElement.contains(e.target)||R.hasClass(e.target,"p-column-filter-add-button")||R.hasClass(e.target.parentElement,"p-column-filter-add-button")||R.hasClass(e.target,"p-column-filter-remove-button")||R.hasClass(e.target.parentElement,"p-column-filter-remove-button"))}bindDocumentClickListener(){this.documentClickListener||(this.documentClickListener=this.renderer.listen(this.el?this.el.nativeElement.ownerDocument:"document","mousedown",n=>{this.overlayVisible&&!this.selfClick&&this.isOutsideClicked(n)&&this.hide(),this.selfClick=!1}))}unbindDocumentClickListener(){this.documentClickListener&&(this.documentClickListener(),this.d
ocumentClickListener=null,this.selfClick=!1)}bindDocumentResizeListener(){this.documentResizeListener=()=>this.hide(),window.addEventListener("resize",this.documentResizeListener)}unbindDocumentResizeListener(){this.documentResizeListener&&(window.removeEventListener("resize",this.documentResizeListener),this.documentResizeListener=null)}bindScrollListener(){this.scrollHandler||(this.scrollHandler=new
Qs(this.icon.nativeElement,()=>{this.overlayVisible&&this.hide()})),this.scrollHandler.bindScrollListener()}unbindScrollListener(){this.scrollHandler&&this.scrollHandler.unbindScrollListener()}hide(){this.overlayVisible=!1}onOverlayHide(){this.unbindDocumentClickListener(),this.unbindDocumentResizeListener(),this.unbindScrollListener(),this.overlay=null}clearFilter(){this.initFieldFilterConstraint(),this.dt._filter(),this.hideOnClear&&this.hide()}applyFilter(){this.dt._filter(),this.hide()}ngOnDestroy(){this.overlay&&(this.el.nativeElement.appendChild(this.overlay),dt.clear(this.overla
y),this.onOverlayHide()),this.translationSubscription&&this.translationSubscription.unsubscribe(),this.resetSubscription&&this.resetSubscription.unsubscribe(),this.overlaySubscription&&this.overlaySubscription.unsubscribe()}}return
t.\u0275fac=function(e){return
new(e||t)(D(De),D(Dn),D(gn),D(zn),D(Ks))},t.\u0275cmp=z({type:t,selectors:[["p-columnFilter"]],contentQueries:function(e,n,s){if(1&e&&st(s,ne,4),2&e){let
r;V(r=B())&&(n.templates=r)}},viewQuery:function(e,n){if(1&e&&W(tU,5),2&e){let
s;V(s=B())&&(n.icon=s.first)}},hostAttrs:[1,"p-element"],inputs:{field:"field",type:"type",display:"display",showMenu:"showMenu",matchMode:"matchMode",operator:"operator",showOperator:"showOperator",showClearButton:"showClearButton",showApplyButton:"showApplyButton",showMatchModes:"showMatchModes",showAddButton:"showAddButton",hideOnClear:"hideOnClear",placeholder:"placeholder",matchModeOptions:"matchModeOptions",maxConstraints:"maxConstraints",minFractionDigits:"minFractionDigits",maxFractionDig
its:"maxFractionDigits",prefix:"prefix",suffix:"suffix",locale:"locale",localeMatcher:"localeMatcher",currency:"currency",currencyDisplay:"currencyDisplay",useGrouping:"useGrouping"},decls:5,vars:8,consts:[[1,"p-column-filter",3,"ngClass"],["class","p-fluid",3,"type","field","filterConstraint","filterTemplate","placeholder","minFractionDigits","maxFractionDigits","prefix","suffix","locale","localeMatcher","currency","currencyDisplay","useGrouping",4,"ngIf"],["type","button","class","p-column-filter-menu-button
p-link","aria-haspopup","true",3,"ngClass","click","keydown",4,"ngIf"],["type","button","class","p-column-filter-clear-button
p-link",3,"ngClass","click",4,"ngIf"],[3,"ngClass","click","keydown.escape",4,"ngIf"],[1,"p-fluid",3,"type","field","filterConstraint","filterTemplate","placeholder","minFractionDigits","maxFractionDigits","prefix","suffix","locale","localeMatcher","currency","currencyDisplay","useGrouping"],["type","button","aria-haspopup","true",1,"p-column-filter-men
u-button","p-link",3,"ngClass","click","keydown"],["icon",""],[1,"pi","pi-filter-icon","pi-filter"],["type","button",1,"p-column-filter-clear-button","p-link",3,"ngClass","click"],[1,"pi","pi-filter-slash"],[3,"ngClass","click","keydown.escape"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],["class","p-column-filter-row-items",4,"ngIf","ngIfElse"],["menu",""],[1,"p-column-filter-row-items"],["class","p-column-filter-row-item",3,"ngClass","click","keydown","keydown.enter",4,"ngFor","ngForOf"],[1,"p-column-filter-separator"],[1,"p-column-filter-row-item",3,"click","keydown","keydown.enter"],[1,"p-column-filter-row-item",3,"ngClass","click","keydown","keydown.enter"],["class","p-column-filter-operator",4,"ngIf"],[1,"p-column-filter-constraints"],["class","p-column-filter-constraint",4,"ngFor","ngForOf"],["class","p-column-filter-add-rule",4,"ngIf"],[1,"p-column-filter-buttonbar"],["type","button","pButton","","class","p-button-outlined
p-button-sm","pRipple","",3,"label","click",4,"
ngIf"],["type","button","pButton","","class","p-button-sm","pRipple","",3,"label","click",4,"ngIf"],[1,"p-column-filter-operator"],["styleClass","p-column-filter-operator-dropdown",3,"options","ngModel","ngModelChange"],[1,"p-column-filter-constraint"],["styleClass","p-column-filter-matchmode-dropdown",3,"options","ngModel","ngModelChange",4,"ngIf"],[3,"type","field","filterConstraint","filterTemplate","placeholder","minFractionDigits","maxFractionDigits","prefix","suffix","locale","localeMatcher","currency","currencyDisplay","useGrouping"],["type","button","pButton","","icon","pi
pi-trash","class","p-column-filter-remove-button p-button-text
p-button-danger
p-button-sm","pRipple","",3,"label","click",4,"ngIf"],["styleClass","p-column-filter-matchmode-dropdown",3,"options","ngModel","ngModelChange"],["type","button","pButton","","icon","pi
pi-trash","pRipple","",1,"p-column-filter-remove-button","p-button-text","p-button-danger","p-button-sm",3,"label","click"],[1,"p-column-filter-a
dd-rule"],["type","button","pButton","","icon","pi
pi-plus","pRipple","",1,"p-column-filter-add-button","p-button-text","p-button-sm",3,"label","click"],["type","button","pButton","","pRipple","",1,"p-button-outlined","p-button-sm",3,"label","click"],["type","button","pButton","","pRipple","",1,"p-button-sm",3,"label","click"]],template:function(e,n){1&e&&(l(0,"div",0),_(1,nU,1,14,"p-columnFilterFormElement",1),_(2,sU,3,5,"button",2),_(3,oU,3,3,"button",3),_(4,yU,6,14,"div",4),c()),2&e&&(p("ngClass",Ge(5,wU,"row"===n.display,"menu"===n.display)),a(1),p("ngIf","row"===n.display),a(1),p("ngIf",n.showMenuButton),a(1),p("ngIf",n.showClearButton&&"row"===n.display),a(1),p("ngIf",n.showMenu&&n.overlayVisible))},directives:[MU,Ot,Le,Q,Rt,at,Te,_e,On],encapsulation:2,data:{animation:[wi("overlayAnimation",[Lt(":enter",[it({opacity:0,transform:"scaleY(0.8)"}),kt(".12s
cubic-bezier(0, 0, 0.2, 1)")]),Lt(":leave",[kt(".1s
linear",it({opacity:0}))])])]}}),t})(),kU=(()=>{class t{}return t.\u0275f
ac=function(e){return
new(e||t)},t.\u0275mod=he({type:t}),t.\u0275inj=ue({imports:[[Fe,RT,MT,Zu,Fo,Mu,gl,Tq,cT,Xu,Iq],Nt,Fo]}),t})();const
W2=["container"],IU=function(t,i,e,n){return{"pi-info-circle":t,"pi-exclamation-triangle":i,"pi-times-circle":e,"pi-check":n}};function
EU(t,i){if(1&t&&(de(0),k(1,"span",6),l(2,"div",7)(3,"div",8),g(4),c(),l(5,"div",9),g(6),c()(),pe()),2&t){const
e=d();a(1),me("p-toast-message-icon pi"+(e.message.icon?"
"+e.message.icon:"")),p("ngClass",qn(5,IU,"info"==e.message.severity,"warn"==e.message.severity,"error"==e.message.severity,"success"==e.message.severity)),a(3),S(e.message.summary),a(2),S(e.message.detail)}}function
RU(t,i){1&t&&Y(0)}function LU(t,i){if(1&t){const
e=I();l(0,"button",10),C("click",function(s){return
v(e),d().onCloseIconClick(s)})("keydown.enter",function(s){return
v(e),d().onCloseIconClick(s)}),k(1,"span",11),c()}}const
OU=function(t){return[t,"p-toast-message"]},AU=function(t,i,e,n){return{showTransformParams:t,hideTransformParam
s:i,showTransitionParams:e,hideTransitionParams:n}},PU=function(t){return{value:"visible",params:t}},FU=function(t){return{$implicit:t}};function
NU(t,i){if(1&t){const
e=I();l(0,"p-toastItem",3),C("onClose",function(s){return
v(e),d().onMessageClose(s)})("(a)toastAnimation.start",function(s){return
v(e),d().onAnimationStart(s)})("(a)toastAnimation.done",function(s){return
v(e),d().onAnimationEnd(s)}),c()}if(2&t){const
e=i.$implicit,n=i.index,s=d();p("message",e)("index",n)("template",s.template)("@toastAnimation",void
0)("showTransformOptions",s.showTransformOptions)("hideTransformOptions",s.hideTransformOptions)("showTransitionOptions",s.showTransitionOptions)("hideTransitionOptions",s.hideTransitionOptions)}}let
VU=(()=>{class t{constructor(e){this.zone=e,this.onClose=new
H}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||3
e3)})}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)(D(nt))},t.\u0275cmp=z({type:t,selectors:[["p-toastItem"]],viewQuery:function(e,n){if(1&e&&W(W2,5),2&e){let
s;V(s=B())&&(n.containerViewChild=s.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,n){1&e&&(l(0,"div",0,1),C("mouseenter",function(){return
n.onMouseEnter()})("mouseleave",function(){return
n.onMouseLeave()}),l(2,"div",2),_(3,EU,7,10,"ng-container",3),_(4,RU,1,0,"ng-container",4),_(5,LU,2,0,"button",5),c()()),2&e&&(me(n.message.styleClass),p("ngClass",U(10,OU,"p-toast-message-"+n.message.severity))("(a)messageState",U(17,PU,qn(12,AU,n.showTransformOptions,n.hideTransformOptions,n.showTransitionOptions,n.hideTransitionOptions))),ie("id",n.message.id),a(2),p("ngClass",n.message.contentStyleClass),a(1),p("ngIf",!n.template),a(1),p("ngTemplateOutlet",n.template)("ngTemplateOutletContext",U(
19,FU,n.message)),a(1),p("ngIf",!1!==n.message.closable))},directives:[Le,Q,Rt,bt],encapsulation:2,data:{animation:[wi("messageState",[ws("visible",it({transform:"translateY(0)",opacity:1})),Lt("void
=>
*",[it({transform:"{{showTransformParams}}",opacity:0}),kt("{{showTransitionParams}}")]),Lt("*
=>
void",[kt("{{hideTransitionParams}}",it({height:0,opacity:0,transform:"{{hideTransformParams}}"}))])])]},changeDetection:0}),t})(),Td=(()=>{class
t{constructor(e,n,s){this.messageService=e,this.cd=n,this.config=s,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
H,this.id=pl()}ngOnInit(){this.messageSubscription=this.messageService.messageObserver.subscribe(e=>{if(e)if(e
instanceof Array){const n=e.filter(s=>this.canAdd(s));this
.add(n)}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
n=this.key===e.key;return
n&&this.preventOpenDuplicates&&(n=!this.containsMessage(this.messages,e)),n&&this.preventDuplicates&&(n=!this.containsMessage(this.messagesArchieve,e)),n}containsMessage(e,n){return!!e&&null!=e.find(s=>s.summary===n.summary&&s.detail==n.detail&&s.severity===n.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.fromSt
ate&&(this.containerViewChild.nativeElement.setAttribute(this.id,""),this.autoZIndex&&dt.set("modal",this.containerViewChild.nativeElement,this.baseZIndex||this.config.zIndex.modal))}onAnimationEnd(e){"void"===e.toState&&this.autoZIndex&&Z.isEmpty(this.messages)&&dt.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 n in this.breakpoints){let s="";for(let r in
this.breakpoints[n])s+=r+":"+this.breakpoints[n][r]+"
!important;";e+=`\n @media screen and (max-width: ${n}) {\n
.p-toast[${this.id}] {\n ${s}\n
}\n }\n
`}this.styleElement.innerHTML=e}}destroyStyle(){this.styleElement&&(document.head.removeChild(this.styleElement),this.styleElement=null)}ngOnDestroy(){this.messageSubscription&&t
his.messageSubscription.unsubscribe(),this.containerViewChild&&this.autoZIndex&&dt.clear(this.containerViewChild.nativeElement),this.clearSubscription&&this.clearSubscription.unsubscribe(),this.destroyStyle()}}return
t.\u0275fac=function(e){return
new(e||t)(D(Gi),D(rt),D(zn))},t.\u0275cmp=z({type:t,selectors:[["p-toast"]],contentQueries:function(e,n,s){if(1&e&&st(s,ne,4),2&e){let
r;V(r=B())&&(n.templates=r)}},viewQuery:function(e,n){if(1&e&&W(W2,5),2&e){let
s;V(s=B())&&(n.containerViewChild=s.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:function(e,n){1&e&&(l(0,"div",0,1),_(2,NU,1,8,"p-toastItem",2),c()),2&e&&(me(n.styleClass),p("ngClass","p-toast
p-component
p-toast-"+n.position)("ngStyle",n.style),a(2),p("ngForOf",n.messages))},directives:[VU,Le,lt,at],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{bot
tom: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:[wi("toastAnimation",[Lt(":enter,
:leave",[$A("@*",jA())])])]},changeDetection:0}),t})(),BU=(()=>{class
t{}return t.\u0275fac=function(e){return
new(e||t)},t.\u0275mod=he({type:t}),t.\u0275inj=ue({imports:[[Fe,pn],Nt]}),t})(),GU=(()=>{class
t{}return t.\u0275fac=function(e){return
new(e||t)},t.\u0275mod=he({type:t}),t.\u0275inj=ue({imports:[[Fe]]}),t})();const
UU=["rb"],zU=function(t,i,e){return{"p-radiobutton-label":!0,"p-radiobutton-label-active":t,"p-disabled":i,"p-radiobutton-label-focus":e}};function
jU(t,i){if(1&t){const
e=I();l(0,"label",4),C("click",function(s){return
v(e),d().select(s)}),g(1),c()}if(2&t){const
e=d(),n=F(3);me(e.labelStyleClass),p("ngClass",Qt(5,zU,n.ch
ecked,e.disabled,e.focused)),ie("for",e.inputId),a(1),S(e.label)}}const
$U=function(t,i,e){return{"p-radiobutton
p-component":!0,"p-radiobutton-checked":t,"p-radiobutton-disabled":i,"p-radiobutton-focused":e}},WU=function(t,i,e){return{"p-radiobutton-box":!0,"p-highlight":t,"p-disabled":i,"p-focus":e}},KU={provide:dn,useExisting:je(()=>Sd),multi:!0};let
QU=(()=>{class
t{constructor(){this.accessors=[]}add(e,n){this.accessors.push([e,n])}remove(e){this.accessors=this.accessors.filter(n=>n[1]!==e)}select(e){this.accessors.forEach(n=>{this.isSameGroup(n,e)&&n[1]!==e&&n[1].writeValue(e.value)})}isSameGroup(e,n){return!!e[0].control&&e[0].control.root===n.control.control.root&&e[1].name===n.name}}return
t.\u0275fac=function(e){return
new(e||t)},t.\u0275prov=X({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),Sd=(()=>{class
t{constructor(e,n,s){this.cd=e,this.injector=n,this.registry=s,this.onClick=new
H,this.onFocus=new H,this.onBlur=new H,this.onModelChange=()=>{},this.onModelTouch
ed=()=>{}}ngOnInit(){this.control=this.injector.get(ss),this.checkName(),this.registry.add(this.control,this)}handleClick(e,n,s){e.preventDefault(),!this.disabled&&(this.select(e),s&&n.focus())}select(e){this.disabled||(this.inputViewChild.nativeElement.checked=!0,this.checked=!0,this.onModelChange(this.value),this.registry.select(this),this.onClick.emit(e))}writeValue(e){this.checked=e==this.value,this.inputViewChild&&this.inputViewChild.nativeElement&&(this.inputViewChild.nativeElement.checked=this.checked),this.cd.markForCheck()}registerOnChange(e){this.onModelChange=e}registerOnTouched(e){this.onModelTouched=e}setDisabledState(e){this.disabled=e,this.cd.markForCheck()}onInputFocus(e){this.focused=!0,this.onFocus.emit(e)}onInputBlur(e){this.focused=!1,this.onModelTouched(),this.onBlur.emit(e)}onChange(e){this.select(e)}focus(){this.inputViewChild.nativeElement.focus()}ngOnDestroy(){this.registry.remove(this)}checkName(){this.name&&this.formControlName&&this.name!==this.formContro
lName&&this.throwNameError(),!this.name&&this.formControlName&&(this.name=this.formControlName)}throwNameError(){throw
new Error('\n If you define both a name and a formControlName attribute on
your radio button, their values\n must match. Ex: <p-radioButton
formControlName="food" name="food"></p-radioButton>\n
')}}return t.\u0275fac=function(e){return
new(e||t)(D(rt),D(En),D(QU))},t.\u0275cmp=z({type:t,selectors:[["p-radioButton"]],viewQuery:function(e,n){if(1&e&&W(UU,5),2&e){let
s;V(s=B())&&(n.inputViewChild=s.first)}},hostAttrs:[1,"p-element"],inputs:{value:"value",formControlName:"formControlName",name:"name",disabled:"disabled",label:"label",tabindex:"tabindex",inputId:"inputId",ariaLabelledBy:"ariaLabelledBy",ariaLabel:"ariaLabel",style:"style",styleClass:"styleClass",labelStyleClass:"labelStyleClass"},outputs:{onClick:"onClick",onFocus:"onFocus",onBlur:"onBlur"},features:[Pe([KU])],decls:7,vars:23,consts:[[3,"ngStyle","ngClass"],[1,"p-hidden-accessibl
e"],["type","radio",3,"checked","disabled","change","focus","blur"],["rb",""],[3,"ngClass","click"],[1,"p-radiobutton-icon"],[3,"class","ngClass","click",4,"ngIf"]],template:function(e,n){if(1&e){const
s=I();l(0,"div",0)(1,"div",1)(2,"input",2,3),C("change",function(o){return
n.onChange(o)})("focus",function(o){return
n.onInputFocus(o)})("blur",function(o){return
n.onInputBlur(o)}),c()(),l(4,"div",4),C("click",function(o){v(s);const
u=F(3);return
n.handleClick(o,u,!0)}),k(5,"span",5),c()(),_(6,jU,2,9,"label",6)}2&e&&(me(n.styleClass),p("ngStyle",n.style)("ngClass",Qt(15,$U,n.checked,n.disabled,n.focused)),a(2),p("checked",n.checked)("disabled",n.disabled),ie("id",n.inputId)("name",n.name)("value",n.value)("tabindex",n.tabindex)("aria-checked",n.checked)("aria-label",n.ariaLabel)("aria-labelledby",n.ariaLabelledBy),a(2),p("ngClass",Qt(19,WU,n.checked,n.disabled,n.focused)),a(2),p("ngIf",n.label))},directives:[lt,Le,Q],encapsulation:2,changeDetection:0}),t})(),JU=(()=>{class
t{}return
t.\u0275fac=function(e){return
new(e||t)},t.\u0275mod=he({type:t}),t.\u0275inj=ue({imports:[[Fe]]}),t})();function
YU(t,i){if(1&t&&(l(0,"div",5),g(1),c()),2&t){const
e=d(2);_i("display",null!=e.value&&0!==e.value?"flex":"none"),a(1),We("",e.value,"",e.unit,"")}}function
ZU(t,i){if(1&t&&(l(0,"div",3),_(1,YU,2,4,"div",4),c()),2&t){const
e=d();_i("width",e.value+"%"),a(1),p("ngIf",e.showValue)}}function
XU(t,i){1&t&&(l(0,"div",6),k(1,"div",7),c())}const
ez=function(t,i){return{"p-progressbar
p-component":!0,"p-progressbar-determinate":t,"p-progressbar-indeterminate":i}};let
tz=(()=>{class
t{constructor(){this.showValue=!0,this.unit="%",this.mode="determinate"}}return
t.\u0275fac=function(e){return
new(e||t)},t.\u0275cmp=z({type:t,selectors:[["p-progressBar"]],hostAttrs:[1,"p-element"],inputs:{value:"value",showValue:"showValue",style:"style",styleClass:"styleClass",unit:"unit",mode:"mode"},decls:3,vars:10,consts:[["role","progressbar","aria-valuemin","0","aria-valuemax","100",3,"ngSty
le","ngClass"],["class","p-progressbar-value
p-progressbar-value-animate","style","display:flex",3,"width",4,"ngIf"],["class","p-progressbar-indeterminate-container",4,"ngIf"],[1,"p-progressbar-value","p-progressbar-value-animate",2,"display","flex"],["class","p-progressbar-label",3,"display",4,"ngIf"],[1,"p-progressbar-label"],[1,"p-progressbar-indeterminate-container"],[1,"p-progressbar-value","p-progressbar-value-animate"]],template:function(e,n){1&e&&(l(0,"div",0),_(1,ZU,2,3,"div",1),_(2,XU,2,0,"div",2),c()),2&e&&(me(n.styleClass),p("ngStyle",n.style)("ngClass",Ge(7,ez,"determinate"===n.mode,"indeterminate"===n.mode)),ie("aria-valuenow",n.value),a(1),p("ngIf","determinate"===n.mode),a(1),p("ngIf","indeterminate"===n.mode))},directives:[lt,Le,Q],styles:['.p-progressbar{position:relative;overflow:hidden}.p-progressbar-determinate
.p-progressbar-value{height:100%;width:0%;position:absolute;display:none;border:0
none;display:flex;align-items:center;justify-content:center;overflow:hi
dden}.p-progressbar-determinate
.p-progressbar-label{display:inline-flex}.p-progressbar-determinate
.p-progressbar-value-animate{transition:width 1s ease-in-out}.p-progressbar-indeterminate
.p-progressbar-value:before{content:"";position:absolute;background-color:inherit;top:0;left:0;bottom:0;will-change:left,right;animation:p-progressbar-indeterminate-anim
2.1s cubic-bezier(.65,.815,.735,.395) infinite}.p-progressbar-indeterminate
.p-progressbar-value:after{content:"";position:absolute;background-color:inherit;top:0;left:0;bottom:0;will-change:left,right;animation:p-progressbar-indeterminate-anim-short
2.1s cubic-bezier(.165,.84,.44,1) infinite;animation-delay:1.15s}@keyframes
p-progressbar-indeterminate-anim{0%{left:-35%;right:100%}60%{left:100%;right:-90%}to{left:100%;right:-90%}}@keyframes
p-progressbar-indeterminate-anim-short{0%{left:-200%;right:100%}60%{left:107%;right:-8%}to{left:107%;right:-8%}}\n'],encapsulation:2,changeDetection:0}),t})(),nz=(()=>{class
t{}return t.\u0275
fac=function(e){return
new(e||t)},t.\u0275mod=he({type:t}),t.\u0275inj=ue({imports:[[Fe]]}),t})();const
iz=["container"],sz=["content"],rz=["xBar"],oz=["yBar"];function
az(t,i){1&t&&Y(0)}const lz=["*"];let K2=(()=>{class
t{constructor(e,n,s){this.el=e,this.zone=n,this.cd=s,this.timeoutFrame=r=>setTimeout(r,0)}ngAfterViewInit(){this.zone.runOutsideAngular(()=>{this.moveBar(),this.moveBar=this.moveBar.bind(this),this.onXBarMouseDown=this.onXBarMouseDown.bind(this),this.onYBarMouseDown=this.onYBarMouseDown.bind(this),this.onDocumentMouseMove=this.onDocumentMouseMove.bind(this),this.onDocumentMouseUp=this.onDocumentMouseUp.bind(this),window.addEventListener("resize",this.moveBar),this.contentViewChild.nativeElement.addEventListener("scroll",this.moveBar),this.contentViewChild.nativeElement.addEventListener("mouseenter",this.moveBar),this.xBarViewChild.nativeElement.addEventListener("mousedown",this.onXBarMouseDown),this.yBarViewChild.nativeElement.addEventListener("mousedown",this.onYBa
rMouseDown),this.calculateContainerHeight(),this.initialized=!0})}ngAfterContentInit(){this.templates.forEach(e=>{e.getType(),this.contentTemplate=e.template})}calculateContainerHeight(){let
e=this.containerViewChild.nativeElement,n=this.contentViewChild.nativeElement,s=this.xBarViewChild.nativeElement,r=getComputedStyle(e),o=getComputedStyle(s),u=R.getHeight(e)-parseInt(o.height,10);"none"!=r["max-height"]&&0==u&&(e.style.height=n.offsetHeight+parseInt(o.height,10)>parseInt(r["max-height"],10)?r["max-height"]:n.offsetHeight+parseFloat(r.paddingTop)+parseFloat(r.paddingBottom)+parseFloat(r.borderTopWidth)+parseFloat(r.borderBottomWidth)+"px")}moveBar(){let
e=this.containerViewChild.nativeElement,n=this.contentViewChild.nativeElement,s=this.xBarViewChild.nativeElement,r=n.scrollWidth,o=n.clientWidth,u=-1*(e.clientHeight-s.clientHeight);this.scrollXRatio=o/r;let
h=this.yBarViewChild.nativeElement,b=n.scrollHeight,y=n.clientHeight,w=-1*(e.clientWidth-h.clientWidth);this.scrollYRatio=y/
b,this.requestAnimationFrame(()=>{if(this.scrollXRatio>=1)R.addClass(s,"p-scrollpanel-hidden");else{R.removeClass(s,"p-scrollpanel-hidden");const
M=Math.max(100*this.scrollXRatio,10);s.style.cssText="width:"+M+"%;
left:"+n.scrollLeft*(100-M)/(r-o)+"%;bottom:"+u+"px;"}if(this.scrollYRatio>=1)R.addClass(h,"p-scrollpanel-hidden");else{R.removeClass(h,"p-scrollpanel-hidden");const
M=Math.max(100*this.scrollYRatio,10);h.style.cssText="height:"+M+"%; top:
calc("+n.scrollTop*(100-M)/(b-y)+"% -
"+s.clientHeight+"px);right:"+w+"px;"}}),this.cd.markForCheck()}onYBarMouseDown(e){this.isYBarClicked=!0,this.lastPageY=e.pageY,R.addClass(this.yBarViewChild.nativeElement,"p-scrollpanel-grabbed"),R.addClass(document.body,"p-scrollpanel-grabbed"),document.addEventListener("mousemove",this.onDocumentMouseMove),document.addEventListener("mouseup",this.onDocumentMouseUp),e.preventDefault()}onXBarMouseDown(e){this.isXBarClicked=!0,this.lastPageX=e.pageX,R.addClass(this.xBarViewChild.nativeElement,"p-scro
llpanel-grabbed"),R.addClass(document.body,"p-scrollpanel-grabbed"),document.addEventListener("mousemove",this.onDocumentMouseMove),document.addEventListener("mouseup",this.onDocumentMouseUp),e.preventDefault()}onDocumentMouseMove(e){this.isXBarClicked?this.onMouseMoveForXBar(e):(this.isYBarClicked||this.onMouseMoveForXBar(e),this.onMouseMoveForYBar(e))}onMouseMoveForXBar(e){let
n=e.pageX-this.lastPageX;this.lastPageX=e.pageX,this.requestAnimationFrame(()=>{this.contentViewChild.nativeElement.scrollLeft+=n/this.scrollXRatio})}onMouseMoveForYBar(e){let
n=e.pageY-this.lastPageY;this.lastPageY=e.pageY,this.requestAnimationFrame(()=>{this.contentViewChild.nativeElement.scrollTop+=n/this.scrollYRatio})}scrollTop(e){let
n=this.contentViewChild.nativeElement.scrollHeight-this.contentViewChild.nativeElement.clientHeight;this.contentViewChild.nativeElement.scrollTop=e=e>n?n:e>0?e:0}onDocumentMouseUp(e){R.removeClass(this.yBarViewChild.nativeElement,"p-scrollpanel-grabbed"),R.removeClass(this
.xBarViewChild.nativeElement,"p-scrollpanel-grabbed"),R.removeClass(document.body,"p-scrollpanel-grabbed"),document.removeEventListener("mousemove",this.onDocumentMouseMove),document.removeEventListener("mouseup",this.onDocumentMouseUp),this.isXBarClicked=!1,this.isYBarClicked=!1}requestAnimationFrame(e){(window.requestAnimationFrame||this.timeoutFrame)(e)}ngOnDestroy(){this.initialized&&(window.removeEventListener("resize",this.moveBar),this.contentViewChild.nativeElement.removeEventListener("scroll",this.moveBar),this.contentViewChild.nativeElement.removeEventListener("mouseenter",this.moveBar),this.xBarViewChild.nativeElement.removeEventListener("mousedown",this.onXBarMouseDown),this.yBarViewChild.nativeElement.removeEventListener("mousedown",this.onYBarMouseDown))}refresh(){this.moveBar()}}return
t.\u0275fac=function(e){return
new(e||t)(D(De),D(nt),D(rt))},t.\u0275cmp=z({type:t,selectors:[["p-scrollPanel"]],contentQueries:function(e,n,s){if(1&e&&st(s,ne,4),2&e){let
r;V(r=B())&&(
n.templates=r)}},viewQuery:function(e,n){if(1&e&&(W(iz,5),W(sz,5),W(rz,5),W(oz,5)),2&e){let
s;V(s=B())&&(n.containerViewChild=s.first),V(s=B())&&(n.contentViewChild=s.first),V(s=B())&&(n.xBarViewChild=s.first),V(s=B())&&(n.yBarViewChild=s.first)}},hostAttrs:[1,"p-element"],inputs:{style:"style",styleClass:"styleClass"},ngContentSelectors:lz,decls:11,vars:5,consts:[[3,"ngClass","ngStyle"],["container",""],[1,"p-scrollpanel-wrapper"],[1,"p-scrollpanel-content"],["content",""],[4,"ngTemplateOutlet"],[1,"p-scrollpanel-bar","p-scrollpanel-bar-x"],["xBar",""],[1,"p-scrollpanel-bar","p-scrollpanel-bar-y"],["yBar",""]],template:function(e,n){1&e&&(Sn(),l(0,"div",0,1)(2,"div",2)(3,"div",3,4),St(5),_(6,az,1,0,"ng-container",5),c()(),k(7,"div",6,7)(9,"div",8,9),c()),2&e&&(me(n.styleClass),p("ngClass","p-scrollpanel
p-component")("ngStyle",n.style),a(6),p("ngTemplateOutlet",n.contentTemplate))},directives:[Le,lt,Rt],styles:[".p-scrollpanel-wrapper{overflow:hidden;width:100%;height:100%;position
:relative;z-index:1;float:left}.p-scrollpanel-content{height:calc(100% +
18px);width:calc(100% + 18px);padding:0 18px 18px
0;position:relative;overflow:auto;box-sizing:border-box}.p-scrollpanel-bar{position:relative;background:#c1c1c1;border-radius:3px;z-index:2;cursor:pointer;opacity:0;transition:opacity
.25s
linear}.p-scrollpanel-bar-y{width:9px;top:0}.p-scrollpanel-bar-x{height:9px;bottom:0}.p-scrollpanel-hidden{visibility:hidden}.p-scrollpanel:hover
.p-scrollpanel-bar,.p-scrollpanel:active
.p-scrollpanel-bar{opacity:1}.p-scrollpanel-grabbed{-webkit-user-select:none;user-select:none}\n"],encapsulation:2,changeDetection:0}),t})(),cz=(()=>{class
t{}return t.\u0275fac=function(e){return
new(e||t)},t.\u0275mod=he({type:t}),t.\u0275inj=ue({imports:[[Fe]]}),t})();const
uz=["content"],dz=["navbar"],pz=["inkbar"],hz=["prevBtn"],mz=["nextBtn"];function
fz(t,i){if(1&t){const
e=I();l(0,"button",11,12),C("click",function(){return
v(e),d().navBackward()}),k(2,"span",13),c()}}function gz(t,i){
if(1&t&&k(0,"span",23),2&t){const
e=d(3).$implicit;p("ngClass",e.icon)("ngStyle",e.iconStyle)}}function
_z(t,i){if(1&t&&(l(0,"span",24),g(1),c()),2&t){const
e=d(3).$implicit;a(1),S(e.label)}}function
bz(t,i){1&t&&k(0,"span",25),2&t&&p("innerHTML",d(3).$implicit.label,Bt)}function
vz(t,i){if(1&t&&(de(0),_(1,gz,1,2,"span",20),_(2,_z,2,1,"span",21),_(3,bz,1,1,"ng-template",null,22,we),pe()),2&t){const
e=F(4),n=d(2).$implicit;a(1),p("ngIf",n.icon),a(1),p("ngIf",!1!==n.escape)("ngIfElse",e)}}function
Cz(t,i){1&t&&Y(0)}const Q2=function(t,i){return{$implicit:t,index:i}};function
yz(t,i){if(1&t){const
e=I();l(0,"a",17),C("click",function(s){v(e);const
r=d().$implicit;return
d().itemClick(s,r)})("keydown.enter",function(s){v(e);const
r=d().$implicit;return
d().itemClick(s,r)}),_(1,vz,5,3,"ng-container",18),_(2,Cz,1,0,"ng-container",19),c()}if(2&t){const
e=d(),n=e.$implicit,s=e.index,r=d();p("target",n.target),ie("href",n.url,ln)("tabindex",n.disabled?null:"0")("title",n.title)("id",n.id),a(
1),p("ngIf",!r.itemTemplate),a(1),p("ngTemplateOutlet",r.itemTemplate)("ngTemplateOutletContext",Ge(8,Q2,n,s))}}function
wz(t,i){if(1&t&&k(0,"span",23),2&t){const
e=d(3).$implicit;p("ngClass",e.icon)("ngStyle",e.iconStyle)}}function
Tz(t,i){if(1&t&&(l(0,"span",24),g(1),c()),2&t){const
e=d(3).$implicit;a(1),S(e.label)}}function
Sz(t,i){1&t&&k(0,"span",25),2&t&&p("innerHTML",d(3).$implicit.label,Bt)}function
xz(t,i){if(1&t&&(de(0),_(1,wz,1,2,"span",20),_(2,Tz,2,1,"span",21),_(3,Sz,1,1,"ng-template",null,27,we),pe()),2&t){const
e=F(4),n=d(2).$implicit;a(1),p("ngIf",n.icon),a(1),p("ngIf",!1!==n.escape)("ngIfElse",e)}}function
Dz(t,i){1&t&&Y(0)}const Mz=function(){return{exact:!1}};function
kz(t,i){if(1&t){const
e=I();l(0,"a",26),C("click",function(s){v(e);const
r=d().$implicit;return
d().itemClick(s,r)})("keydown.enter",function(s){v(e);const
r=d().$implicit;return
d().itemClick(s,r)}),_(1,xz,5,3,"ng-container",18),_(2,Dz,1,0,"ng-container",19),c()}if(2&t){const
e=d(),n=e.$implicit,s=e.
index,r=d();p("routerLink",n.routerLink)("queryParams",n.queryParams)("routerLinkActive","p-menuitem-link-active")("routerLinkActiveOptions",n.routerLinkActiveOptions||A(17,Mz))("target",n.target)("fragment",n.fragment)("queryParamsHandling",n.queryParamsHandling)("preserveFragment",n.preserveFragment)("skipLocationChange",n.skipLocationChange)("replaceUrl",n.replaceUrl)("state",n.state),ie("tabindex",n.disabled?null:"0")("title",n.title)("id",n.id),a(1),p("ngIf",!r.itemTemplate),a(1),p("ngTemplateOutlet",r.itemTemplate)("ngTemplateOutletContext",Ge(18,Q2,n,s))}}const
Iz=function(t,i,e){return{"p-tabmenuitem":!0,"p-disabled":t,"p-highlight":i,"p-hidden":e}};function
Ez(t,i){if(1&t&&(l(0,"li",14),_(1,yz,3,11,"a",15),_(2,kz,3,21,"a",16),c()),2&t){const
e=i.$implicit,n=d();me(e.styleClass),p("ngStyle",e.style)("ngClass",Qt(9,Iz,e.disabled,n.isActive(e),!1===e.visible))("tooltipOptions",e.tooltipOptions),ie("aria-selected",n.isActive(e))("aria-expanded",n.isActive(e)),a(1),p("ngIf",!e.r
outerLink),a(1),p("ngIf",e.routerLink)}}function Rz(t,i){if(1&t){const
e=I();l(0,"button",28,29),C("click",function(){return
v(e),d().navForward()}),k(2,"span",30),c()}}const
Lz=function(t){return{"p-tabmenu
p-component":!0,"p-tabmenu-scrollable":t}};let J2=(()=>{class
t{constructor(e,n,s){this.router=e,this.route=n,this.cd=s,this.backwardIsDisabled=!0,this.forwardIsDisabled=!1}ngAfterContentInit(){this.templates.forEach(e=>{e.getType(),this.itemTemplate=e.template})}ngAfterViewInit(){this.updateInkBar()}ngAfterViewChecked(){this.tabChanged&&(this.updateInkBar(),this.tabChanged=!1)}isActive(e){if(e.routerLink){let
n=Array.isArray(e.routerLink)?e.routerLink:[e.routerLink];return
this.router.isActive(this.router.createUrlTree(n,{relativeTo:this.route}).toString(),!1)}return
e===this.activeItem}itemClick(e,n){n.disabled?e.preventDefault():(!n.url&&!n.routerLink&&e.preventDefault(),n.command&&n.command({originalEvent:e,item:n}),this.activeItem=n,this.tabChanged=!0)}updateInkBar(){let
e=
R.findSingle(this.navbar.nativeElement,"li.p-highlight");e&&(this.inkbar.nativeElement.style.width=R.getWidth(e)+"px",this.inkbar.nativeElement.style.left=R.getOffset(e).left-R.getOffset(this.navbar.nativeElement).left+"px")}getVisibleButtonWidths(){var
e,n;return[null===(e=this.prevBtn)||void 0===e?void
0:e.nativeElement,null===(n=this.nextBtn)||void 0===n?void
0:n.nativeElement].reduce((s,r)=>r?s+R.getWidth(r):s,0)}updateButtonState(){const
e=this.content.nativeElement,{scrollLeft:n,scrollWidth:s}=e,r=R.getWidth(e);this.backwardIsDisabled=0===n,this.forwardIsDisabled=parseInt(n)===s-r}updateScrollBar(e){this.navbar.nativeElement.children[e].scrollIntoView({block:"nearest"})}onScroll(e){this.scrollable&&this.updateButtonState(),e.preventDefault()}navBackward(){const
e=this.content.nativeElement,n=R.getWidth(e)-this.getVisibleButtonWidths(),s=e.scrollLeft-n;e.scrollLeft=s<=0?0:s}navForward(){const
e=this.content.nativeElement,n=R.getWidth(e)-this.getVisibleButtonWidths(),s=e.scrollL
eft+n,r=e.scrollWidth-n;e.scrollLeft=s>=r?r:s}}return t.\u0275fac=function(e){return
new(e||t)(D(It),D(Er),D(rt))},t.\u0275cmp=z({type:t,selectors:[["p-tabMenu"]],contentQueries:function(e,n,s){if(1&e&&st(s,ne,4),2&e){let
r;V(r=B())&&(n.templates=r)}},viewQuery:function(e,n){if(1&e&&(W(uz,5),W(dz,5),W(pz,5),W(hz,5),W(mz,5)),2&e){let
s;V(s=B())&&(n.content=s.first),V(s=B())&&(n.navbar=s.first),V(s=B())&&(n.inkbar=s.first),V(s=B())&&(n.prevBtn=s.first),V(s=B())&&(n.nextBtn=s.first)}},hostAttrs:[1,"p-element"],inputs:{model:"model",activeItem:"activeItem",scrollable:"scrollable",popup:"popup",style:"style",styleClass:"styleClass"},decls:11,vars:9,consts:[[3,"ngClass","ngStyle"],[1,"p-tabmenu-nav-container"],["class","p-tabmenu-nav-prev
p-tabmenu-nav-btn
p-link","type","button","pRipple","",3,"click",4,"ngIf"],[1,"p-tabmenu-nav-content",3,"scroll"],["content",""],["role","tablist",1,"p-tabmenu-nav","p-reset"],["navbar",""],["role","tab","pTooltip","",3,"ngStyle","class","ngClass","toolt
ipOptions",4,"ngFor","ngForOf"],[1,"p-tabmenu-ink-bar"],["inkbar",""],["class","p-tabmenu-nav-next
p-tabmenu-nav-btn
p-link","type","button","pRipple","",3,"click",4,"ngIf"],["type","button","pRipple","",1,"p-tabmenu-nav-prev","p-tabmenu-nav-btn","p-link",3,"click"],["prevBtn",""],[1,"pi","pi-chevron-left"],["role","tab","pTooltip","",3,"ngStyle","ngClass","tooltipOptions"],["class","p-menuitem-link","role","presentation","pRipple","",3,"target","click","keydown.enter",4,"ngIf"],["role","presentation","class","p-menuitem-link","pRipple","",3,"routerLink","queryParams","routerLinkActive","routerLinkActiveOptions","target","fragment","queryParamsHandling","preserveFragment","skipLocationChange","replaceUrl","state","click","keydown.enter",4,"ngIf"],["role","presentation","pRipple","",1,"p-menuitem-link",3,"target","click","keydown.enter"],[4,"ngIf"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],["class","p-menuitem-icon",3,"ngClass","ngStyle",4,"ngIf"],["class","p-menuitem-text",4,
"ngIf","ngIfElse"],["htmlLabel",""],[1,"p-menuitem-icon",3,"ngClass","ngStyle"],[1,"p-menuitem-text"],[1,"p-menuitem-text",3,"innerHTML"],["role","presentation","pRipple","",1,"p-menuitem-link",3,"routerLink","queryParams","routerLinkActive","routerLinkActiveOptions","target","fragment","queryParamsHandling","preserveFragment","skipLocationChange","replaceUrl","state","click","keydown.enter"],["htmlRouteLabel",""],["type","button","pRipple","",1,"p-tabmenu-nav-next","p-tabmenu-nav-btn","p-link",3,"click"],["nextBtn",""],[1,"pi","pi-chevron-right"]],template:function(e,n){1&e&&(l(0,"div",0)(1,"div",1),_(2,fz,3,0,"button",2),l(3,"div",3,4),C("scroll",function(r){return
n.onScroll(r)}),l(5,"ul",5,6),_(7,Ez,3,13,"li",7),k(8,"li",8,9),c()(),_(10,Rz,3,0,"button",10),c()()),2&e&&(me(n.styleClass),p("ngClass",U(7,Lz,n.scrollable))("ngStyle",n.style),a(2),p("ngIf",n.scrollable&&!n.backwardIsDisabled),a(5),p("ngForOf",n.model),a(3),p("ngIf",n.scrollable&&!n.forwardIsDisabled))},directives:[Le
,lt,Q,bt,at,Kt,Rt,Ho,_d],styles:[".p-tabmenu-nav-container{position:relative}.p-tabmenu-scrollable
.p-tabmenu-nav-container{overflow:hidden}.p-tabmenu-nav-content{overflow-x:auto;overflow-y:hidden;scroll-behavior:smooth;scrollbar-width:none;overscroll-behavior:contain
auto}.p-tabmenu-nav-btn{position:absolute;top:0;z-index:2;height:100%;display:flex;align-items:center;justify-content:center}.p-tabmenu-nav-prev{left:0}.p-tabmenu-nav-next{right:0}.p-tabview-nav-content::-webkit-scrollbar{display:none}.p-tabmenu-nav{display:flex;margin:0;padding:0;list-style-type:none;flex-wrap:nowrap}.p-tabmenu-nav
a{cursor:pointer;-webkit-user-select:none;user-select:none;display:flex;align-items:center;position:relative;text-decoration:none;overflow:hidden}.p-tabmenu-nav
a:focus{z-index:1}.p-tabmenu-nav
.p-menuitem-text{line-height:1;white-space:nowrap}.p-tabmenu-ink-bar{display:none;z-index:1}.p-tabmenu-nav-content::-webkit-scrollbar{display:none}\n"],encapsulation:2,changeDetection:0}),t})(),Oz=((
)=>{class t{}return t.\u0275fac=function(e){return
new(e||t)},t.\u0275mod=he({type:t}),t.\u0275inj=ue({imports:[[Fe,vn,Nt,pn,jn],vn,Nt,jn]}),t})();function
Az(t,i){if(1&t&&(l(0,"span"),g(1),c()),2&t){const
e=d();a(1),S(e.label)}}function Pz(t,i){1&t&&Y(0)}const
Y2=function(t){return{height:t}},Fz=function(t,i){return{"p-highlight":t,"p-disabled":i}},Nz=function(t){return{"p-highlight":t}},Z2=function(t){return{"pi
pi-check":t}},Rl=function(t){return{$implicit:t}},Vz=["container"],Bz=["filterInput"],Hz=["in"];function
qz(t,i){if(1&t&&(de(0),g(1),pe()),2&t){const
e=d(2);a(1),S(e.valuesAsString||"empty")}}function Gz(t,i){if(1&t){const
e=I();l(0,"span",18),C("click",function(s){v(e);const
r=d().$implicit;return d(3).removeChip(r,s)}),c()}}function
Uz(t,i){if(1&t&&(l(0,"div",14,15)(2,"span",16),g(3),c(),_(4,Gz,1,0,"span",17),c()),2&t){const
e=i.$implicit,n=d(3);a(3),S(n.findLabelByValue(e)),a(1),p("ngIf",!n.disabled)}}function
zz(t,i){if(1&t&&(de(0),g(1),pe()),2&t){const e=d(3);a(1),S(e
.placeholder||e.defaultLabel||"empty")}}function
jz(t,i){if(1&t&&(de(0),_(1,Uz,5,2,"div",13),_(2,zz,2,1,"ng-container",7),pe()),2&t){const
e=d(2);a(1),p("ngForOf",e.value),a(1),p("ngIf",!e.value||0===e.value.length)}}function
$z(t,i){if(1&t&&(de(0),_(1,qz,2,1,"ng-container",7),_(2,jz,3,2,"ng-container",7),pe()),2&t){const
e=d();a(1),p("ngIf","comma"===e.display),a(1),p("ngIf","chip"===e.display)}}function
Wz(t,i){1&t&&Y(0)}function Kz(t,i){if(1&t){const
e=I();l(0,"i",19),C("click",function(s){return
v(e),d().clear(s)}),c()}}function Qz(t,i){1&t&&Y(0)}const
Jz=function(t){return{"p-checkbox-disabled":t}},Yz=function(t,i,e){return{"p-highlight":t,"p-focus":i,"p-disabled":e}};function
Zz(t,i){if(1&t){const
e=I();l(0,"div",32)(1,"div",2)(2,"input",33),C("focus",function(){return
v(e),d(3).onHeaderCheckboxFocus()})("blur",function(){return
v(e),d(3).onHeaderCheckboxBlur()})("keydown.space",function(s){return
v(e),d(3).toggleAll(s)}),c()(),l(3,"div",34),C("click",function(s){return
v(e),d
(3).toggleAll(s)}),k(4,"span",35),c()()}if(2&t){const
e=d(3);p("ngClass",U(6,Jz,e.disabled||e.toggleAllDisabled)),a(2),p("checked",e.allChecked)("disabled",e.disabled||e.toggleAllDisabled),a(1),p("ngClass",Qt(8,Yz,e.allChecked,e.headerCheckboxFocus,e.disabled||e.toggleAllDisabled)),ie("aria-checked",e.allChecked),a(1),p("ngClass",U(12,Z2,e.allChecked))}}function
Xz(t,i){if(1&t){const
e=I();l(0,"div",36)(1,"input",37,38),C("input",function(s){return
v(e),d(3).onFilterInputChange(s)}),c(),k(3,"span",39),c()}if(2&t){const
e=d(3);a(1),p("value",e.filterValue||"")("disabled",e.disabled),ie("autocomplete",e.autocomplete)("placeholder",e.filterPlaceHolder)("aria-label",e.ariaFilterLabel)}}function
ej(t,i){if(1&t){const
e=I();l(0,"div",26),St(1),_(2,Qz,1,0,"ng-container",27),_(3,Zz,5,14,"div",28),_(4,Xz,4,5,"div",29),l(5,"button",30),C("click",function(s){return
v(e),d(2).close(s)}),k(6,"span",31),c()()}if(2&t){const
e=d(2);a(2),p("ngTemplateOutlet",e.headerTemplate),a(1),p("ngIf",e.showTog
gleAll&&!e.selectionLimit),a(1),p("ngIf",e.filter)}}function
tj(t,i){if(1&t&&(l(0,"span"),g(1),c()),2&t){const
e=d().$implicit,n=d(3);a(1),S(n.getOptionGroupLabel(e)||"empty")}}function
nj(t,i){1&t&&Y(0)}function ij(t,i){1&t&&Y(0)}function
sj(t,i){if(1&t&&(l(0,"li",41),_(1,tj,2,1,"span",7),_(2,nj,1,0,"ng-container",8),c(),_(3,ij,1,0,"ng-container",8)),2&t){const
e=i.$implicit;d(2);const
n=F(7),s=d();a(1),p("ngIf",!s.groupTemplate),a(1),p("ngTemplateOutlet",s.groupTemplate)("ngTemplateOutletContext",U(5,Rl,e)),a(1),p("ngTemplateOutlet",n)("ngTemplateOutletContext",U(7,Rl,s.getOptionGroupChildren(e)))}}function
rj(t,i){if(1&t&&(de(0),_(1,sj,4,9,"ng-template",40),pe()),2&t){const
e=d(2);a(1),p("ngForOf",e.optionsToRender)}}function
oj(t,i){1&t&&Y(0)}function
aj(t,i){if(1&t&&(de(0),_(1,oj,1,0,"ng-container",8),pe()),2&t){d();const
e=F(7),n=d();a(1),p("ngTemplateOutlet",e)("ngTemplateOutletContext",U(2,Rl,n.optionsToRender))}}function
lj(t,i){if(1&t){const e=I();l(0,"p-multiSelectItem",4
5),C("onClick",function(s){return
v(e),d(4).onOptionClick(s)})("onKeydown",function(s){return
v(e),d(4).onOptionKeydown(s)}),c()}if(2&t){const
e=i.$implicit,n=d(4);p("option",e)("selected",n.isSelected(e))("label",n.getOptionLabel(e))("disabled",n.isOptionDisabled(e))("template",n.itemTemplate)}}function
cj(t,i){if(1&t&&(de(0),_(1,lj,1,5,"ng-template",40),pe()),2&t){const
e=d().$implicit;a(1),p("ngForOf",e)}}function uj(t,i){if(1&t){const
e=I();de(0),l(1,"p-multiSelectItem",50),C("onClick",function(s){return
v(e),d(5).onOptionClick(s)})("onKeydown",function(s){return
v(e),d(5).onOptionKeydown(s)}),c(),pe()}if(2&t){const
e=i.$implicit,n=d(5);a(1),p("option",e)("selected",n.isSelected(e))("label",n.getOptionLabel(e))("disabled",n.isOptionDisabled(e))("template",n.itemTemplate)("itemSize",n.itemSize)}}function
dj(t,i){if(1&t&&(l(0,"cdk-virtual-scroll-viewport",47,48),_(2,uj,2,6,"ng-container",49),c()),2&t){const
e=d(2).$implicit,n=d(2);p("ngStyle",U(3,Y2,n.scrollHeight))("itemSize",n.i
temSize),a(2),p("cdkVirtualForOf",e)}}function
pj(t,i){if(1&t&&_(0,dj,3,5,"cdk-virtual-scroll-viewport",46),2&t){const
e=d(3);p("ngIf",e.virtualScroll&&!e.emptyOptions)}}function
hj(t,i){if(1&t&&(de(0),g(1),pe()),2&t){const e=d(4);a(1),T("
",e.emptyFilterMessageLabel," ")}}function
mj(t,i){1&t&&Y(0,null,52)}function
fj(t,i){if(1&t&&(l(0,"li",51),_(1,hj,2,1,"ng-container",42),_(2,mj,2,0,"ng-container",27),c()),2&t){const
e=d(3);a(1),p("ngIf",!e.emptyFilterTemplate&&!e.emptyTemplate)("ngIfElse",e.emptyFilter),a(1),p("ngTemplateOutlet",e.emptyFilterTemplate||e.emptyTemplate)}}function
gj(t,i){if(1&t&&(de(0),g(1),pe()),2&t){const e=d(4);a(1),T("
",e.emptyMessageLabel," ")}}function
_j(t,i){1&t&&Y(0,null,53)}function
bj(t,i){if(1&t&&(l(0,"li",51),_(1,gj,2,1,"ng-container",42),_(2,_j,2,0,"ng-container",27),c()),2&t){const
e=d(3);a(1),p("ngIf",!e.emptyTemplate)("ngIfElse",e.empty),a(1),p("ngTemplateOutlet",e.emptyTemplate)}}function
vj(t,i){if(1&t&&(_(0,cj,2,1,"ng-container",42),_(1,pj,1,1
,"ng-template",null,43,we),_(3,fj,3,3,"li",44),_(4,bj,3,3,"li",44)),2&t){const
e=F(2),n=d(2);p("ngIf",!n.virtualScroll)("ngIfElse",e),a(3),p("ngIf",n.hasFilter()&&n.emptyOptions),a(1),p("ngIf",!n.hasFilter()&&n.emptyOptions)}}function
Cj(t,i){1&t&&Y(0)}function
yj(t,i){if(1&t&&(l(0,"div",54),St(1,1),_(2,Cj,1,0,"ng-container",27),c()),2&t){const
e=d(2);a(2),p("ngTemplateOutlet",e.footerTemplate)}}const
wj=function(){return["p-multiselect-panel
p-component"]},Tj=function(t,i){return{showTransitionParams:t,hideTransitionParams:i}},Sj=function(t){return{value:"visible",params:t}},xj=function(t){return{"p-multiselect-virtualscroll":t}};function
Dj(t,i){if(1&t){const
e=I();l(0,"div",20),C("(a)overlayAnimation.start",function(s){return
v(e),d().onOverlayAnimationStart(s)})("(a)overlayAnimation.done",function(s){return
v(e),d().onOverlayAnimationEnd(s)})("keydown",function(s){return
v(e),d().onKeydown(s)})("click",function(s){return
v(e),d().onOverlayClick(s)}),_(1,ej,7,3,"div",21),l(2,"div",22
)(3,"ul",23),_(4,rj,2,1,"ng-container",7),_(5,aj,2,4,"ng-container",7),_(6,vj,5,4,"ng-template",null,24,we),c()(),_(8,yj,3,1,"div",25),c()}if(2&t){const
e=d();me(e.panelStyleClass),p("ngClass",A(12,wj))("@overlayAnimation",U(16,Sj,Ge(13,Tj,e.showTransitionOptions,e.hideTransitionOptions)))("ngStyle",e.panelStyle),a(1),p("ngIf",e.showHeader),a(1),_i("max-height",e.virtualScroll?"auto":e.scrollHeight||"auto"),a(1),p("ngClass",U(18,xj,e.virtualScroll)),a(1),p("ngIf",e.group),a(1),p("ngIf",!e.group),a(3),p("ngIf",e.footerFacet||e.footerTemplate)}}const
Mj=[[["p-header"]],[["p-footer"]]],kj=function(t,i,e,n){return{"p-multiselect
p-component":!0,"p-multiselect-open":t,"p-multiselect-chip":i,"p-focus":e,"p-disabled":n}},Ij=function(t,i){return{"p-placeholder":t,"p-multiselect-label-empty":i}},Ej=function(){return{"p-multiselect-trigger":!0}},Rj=["p-header","p-footer"],Lj={provide:dn,useExisting:je(()=>X2),multi:!0};let
Oj=(()=>{class t{constructor(){this.onClick=new H,this.onKeydown=new H
}onOptionClick(e){this.onClick.emit({originalEvent:e,option:this.option})}onOptionKeydown(e){this.onKeydown.emit({originalEvent:e,option:this.option})}}return
t.\u0275fac=function(e){return
new(e||t)},t.\u0275cmp=z({type:t,selectors:[["p-multiSelectItem"]],hostAttrs:[1,"p-element"],inputs:{option:"option",selected:"selected",label:"label",disabled:"disabled",itemSize:"itemSize",template:"template"},outputs:{onClick:"onClick",onKeydown:"onKeydown"},decls:6,vars:20,consts:[["pRipple","",1,"p-multiselect-item",3,"ngStyle","ngClass","click","keydown"],[1,"p-checkbox","p-component"],[1,"p-checkbox-box",3,"ngClass"],[1,"p-checkbox-icon",3,"ngClass"],[4,"ngIf"],[4,"ngTemplateOutlet","ngTemplateOutletContext"]],template:function(e,n){1&e&&(l(0,"li",0),C("click",function(r){return
n.onOptionClick(r)})("keydown",function(r){return
n.onOptionKeydown(r)}),l(1,"div",1)(2,"div",2),k(3,"span",3),c()(),_(4,Az,2,1,"span",4),_(5,Pz,1,0,"ng-container",5),c()),2&e&&(p("ngStyle",U(9,Y2,n.itemSize+"px"))
("ngClass",Ge(11,Fz,n.selected,n.disabled)),ie("aria-label",n.label)("tabindex",n.disabled?null:"0"),a(2),p("ngClass",U(14,Nz,n.selected)),a(1),p("ngClass",U(16,Z2,n.selected)),a(1),p("ngIf",!n.template),a(1),p("ngTemplateOutlet",n.template)("ngTemplateOutletContext",U(18,Rl,n.option)))},directives:[bt,lt,Le,Q,Rt],encapsulation:2}),t})(),X2=(()=>{class
t{constructor(e,n,s,r,o,u){this.el=e,this.renderer=n,this.cd=s,this.filterService=r,this.config=o,this.overlayService=u,this.filter=!0,this.displaySelectedLabel=!0,this.maxSelectedLabels=3,this.selectedItemsLabel="ellipsis",this.showToggleAll=!0,this.emptyFilterMessage="",this.emptyMessage="",this.resetFilterOnHide=!1,this.dropdownIcon="pi
pi-chevron-down",this.optionGroupChildren="items",this.showHeader=!0,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.tooltipPosi
tionStyle="absolute",this.autofocusFilter=!0,this.display="comma",this.autocomplete="on",this.showClear=!1,this.onChange=new
H,this.onFilter=new H,this.onFocus=new H,this.onBlur=new H,this.onClick=new
H,this.onClear=new H,this.onPanelShow=new H,this.onPanelHide=new
H,this.scrollHeight="200px",this.onModelChange=()=>{},this.onModelTouched=()=>{}}set
defaultLabel(e){this._defaultLabel=e,this.updateLabel()}get defaultLabel(){return
this._defaultLabel}set placeholder(e){this._placeholder=e,this.updateLabel()}get
placeholder(){return this._placeholder}get options(){return this._options}set
options(e){this._options=e,this.updateLabel()}get filterValue(){return
this._filterValue}set
filterValue(e){this._filterValue=e,this.activateFilter()}ngOnInit(){this.updateLabel()}ngAfterContentInit(){this.templates.forEach(e=>{switch(e.getType()){case"item":default:this.itemTemplate=e.template;break;case"group":this.groupTemplate=e.template;break;case"selectedItems":this.selectedItemsTemplate=e.templa
te;break;case"header":this.headerTemplate=e.template;break;case"emptyfilter":this.emptyFilterTemplate=e.template;break;case"empty":this.emptyTemplate=e.template;break;case"footer":this.footerTemplate=e.template}})}ngAfterViewInit(){this.overlayVisible&&this.show()}ngAfterViewChecked(){this.filtered&&(this.alignOverlay(),this.filtered=!1)}getOptionLabel(e){return
this.optionLabel?Z.resolveFieldData(e,this.optionLabel):null!=e.label?e.label:e}getOptionValue(e){return
this.optionValue?Z.resolveFieldData(e,this.optionValue):this.optionLabel||void
0===e.value?e:e.value}getOptionGroupLabel(e){return
this.optionGroupLabel?Z.resolveFieldData(e,this.optionGroupLabel):null!=e.label?e.label:e}getOptionGroupChildren(e){return
this.optionGroupChildren?Z.resolveFieldData(e,this.optionGroupChildren):e.items}isOptionDisabled(e){return(this.optionDisabled?Z.resolveFieldData(e,this.optionDisabled):void
0!==e.disabled&&e.disabled)||this.maxSelectionLimitReached&&!this.isSelected(e)}writeValue(e){this.
value=e,this.updateLabel(),this.updateFilledState(),this.checkSelectionLimit(),this.cd.markForCheck()}checkSelectionLimit(){this.maxSelectionLimitReached=!(!this.selectionLimit||!this.value||this.value.length!==this.selectionLimit)}updateFilledState(){this.filled=this.value&&this.value.length>0}registerOnChange(e){this.onModelChange=e}registerOnTouched(e){this.onModelTouched=e}setDisabledState(e){this.disabled=e,this.cd.markForCheck()}onOptionClick(e){let
n=e.option;if(this.isOptionDisabled(n))return;let
s=this.getOptionValue(n),r=this.findSelectionIndex(s);-1!=r?(this.value=this.value.filter((o,u)=>u!=r),this.selectionLimit&&(this.maxSelectionLimitReached=!1)):((!this.selectionLimit||!this.value||this.value.length<this.selectionLimit)&&(this.value=[...this.value||[],s]),this.checkSelectionLimit()),this.onModelChange(this.value),this.onChange.emit({originalEvent:e.originalEvent,value:this.value,itemValue:s}),this.updateLabel(),this.updateFilledState()}isSelected(e){return-1!=this.fi
ndSelectionIndex(this.getOptionValue(e))}findSelectionIndex(e){let
n=-1;if(this.value)for(let
s=0;s<this.value.length;s++)if(Z.equals(this.value[s],e,this.dataKey)){n=s;break}return
n}get toggleAllDisabled(){let e=this.optionsToRender;if(!e||0===e.length)return!0;for(let
n of
e)if(!this.isOptionDisabled(n))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}),this.updateFilledState(),this.updateLabel(),e.preventDefault())}checkAll(){let
n=[];this.optionsToRender.forEach(s=>{if(this.group){let
r=this.getOptionGroupChildren(s);r&&r.forEach(o=>{let
u=this.isOptionDisabled(o);(!u||u&&this.isSelected(o))&&n.push(this.getOptionValue(o))})}else{let
r=this.isOptionDisabled(s);(!r||r&&this.isSelected(s))&&n.push(this.getOptionValue(s))}}),this.value=n}uncheckAll(){let
n=[];this.optionsToRender.forEach(s=>{this.group?s.items&&s
.items.forEach(r=>{this.isOptionDisabled(r)&&this.isSelected(r)&&n.push(this.getOptionValue(r))}):this.isOptionDisabled(s)&&this.isSelected(s)&&n.push(this.getOptionValue(s))}),this.value=n}show(){this.overlayVisible||(this.overlayVisible=!0,this.preventDocumentDefault=!0,this.cd.markForCheck())}onOverlayClick(e){this.overlayService.add({originalEvent:e,target:this.el.nativeElement})}onOverlayAnimationStart(e){switch(e.toState){case"visible":this.overlay=e.element,this.appendOverlay(),this.autoZIndex&&dt.set("overlay",this.overlay,this.baseZIndex+this.config.zIndex.overlay),this.alignOverlay(),this.bindDocumentClickListener(),this.bindDocumentResizeListener(),this.bindScrollListener(),this.filterInputChild&&this.filterInputChild.nativeElement&&(this.preventModelTouched=!0,this.autofocusFilter&&this.filterInputChild.nativeElement.focus()),this.onPanelShow.emit();break;case"void":this.onOverlayHide()}}onOverlayAnimationEnd(e){"void"===e.toState&&dt.clear(e.element)}appendOverlay(){thi
s.appendTo&&("body"===this.appendTo?document.body.appendChild(this.overlay):R.appendChild(this.overlay,this.appendTo),this.overlay.style.minWidth||(this.overlay.style.minWidth=R.getWidth(this.containerViewChild.nativeElement)+"px"))}restoreOverlayAppend(){this.overlay&&this.appendTo&&this.el.nativeElement.appendChild(this.overlay)}alignOverlay(){this.overlay&&(this.appendTo?R.absolutePosition(this.overlay,this.containerViewChild.nativeElement):R.relativePosition(this.overlay,this.containerViewChild.nativeElement))}hide(){this.overlayVisible=!1,this.unbindDocumentClickListener(),this.resetFilterOnHide&&(this.filterInputChild.nativeElement.value="",this._filterValue=null,this._filteredOptions=null),this.onPanelHide.emit(),this.cd.markForCheck()}close(e){this.hide(),e.preventDefault(),e.stopPropagation()}clear(e){this.value=null,this.updateLabel(),this.updateFilledState(),this.onClear.emit(),this.onModelChange(this.value),e.stopPropagation()}onMouseclick(e,n){this.disabled||this.readon
ly||e.target.isSameNode(this.accessibleViewChild.nativeElement)||(this.onClick.emit(e),!this.isOverlayClick(e)&&!R.hasClass(e.target,"p-multiselect-token-icon")&&(this.overlayVisible?this.hide():(n.focus(),this.show())))}removeChip(e,n){this.value=this.value.filter(s=>!Z.equals(s,e,this.dataKey)),this.onModelChange(this.value),this.checkSelectionLimit(),this.onChange.emit({originalEvent:n,value:this.value,itemValue:e}),this.updateLabel(),this.updateFilledState()}isOverlayClick(e){let
n=e.target;return!!this.overlay&&(this.overlay.isSameNode(n)||this.overlay.contains(n))}isOutsideClicked(e){return!(this.el.nativeElement.isSameNode(e.target)||this.el.nativeElement.contains(e.target)||this.isOverlayClick(e))}onInputFocus(e){this.focus=!0,this.onFocus.emit({originalEvent:e})}onInputBlur(e){this.focus=!1,this.onBlur.emit({originalEvent:e}),this.preventModelTouched||this.onModelTouched(),this.preventModelTouched=!1}onOptionKeydown(e){if(!this.readonly)switch(e.originalEvent.which){case
40
:var
n=this.findNextItem(e.originalEvent.target.parentElement);n&&n.focus(),e.originalEvent.preventDefault();break;case
38:var
s=this.findPrevItem(e.originalEvent.target.parentElement);s&&s.focus(),e.originalEvent.preventDefault();break;case
13:this.onOptionClick(e),e.originalEvent.preventDefault();break;case
9:this.hide()}}findNextItem(e){let n=e.nextElementSibling;return
n?R.hasClass(n.children[0],"p-disabled")||R.isHidden(n.children[0])||R.hasClass(n,"p-multiselect-item-group")?this.findNextItem(n):n.children[0]:null}findPrevItem(e){let
n=e.previousElementSibling;return
n?R.hasClass(n.children[0],"p-disabled")||R.isHidden(n.children[0])||R.hasClass(n,"p-multiselect-item-group")?this.findPrevItem(n):n.children[0]:null}onKeydown(e){switch(e.which){case
40:!this.overlayVisible&&e.altKey&&(this.show(),e.preventDefault());break;case
32:this.overlayVisible||(this.show(),e.preventDefault());break;case
27:this.hide()}}updateLabel(){if(this.value&&this.options&&this.value.length&&this.dis
playSelectedLabel){let e="";for(let n=0;n<this.value.length;n++){let
s=this.findLabelByValue(this.value[n]);s&&(e.length>0&&(e+=",
"),e+=s)}if(this.value.length<=this.maxSelectedLabels||"ellipsis"===this.selectedItemsLabel)this.valuesAsString=e;else{let
n=/{(.*?)}/;this.valuesAsString=n.test(this.selectedItemsLabel)?this.selectedItemsLabel.replace(this.selectedItemsLabel.match(n)[0],this.value.length+""):this.selectedItemsLabel}}else
this.valuesAsString=this.placeholder||this.defaultLabel}findLabelByValue(e){if(this.group){let
n=null;for(let s=0;s<this.options.length;s++){let
r=this.getOptionGroupChildren(this.options[s]);if(r&&(n=this.searchLabelByValue(e,r),n))break}return
n}return this.searchLabelByValue(e,this.options)}searchLabelByValue(e,n){let
s=null;for(let r=0;r<n.length;r++){let
o=n[r],u=this.getOptionValue(o);if(null==e&&null==u||Z.equals(e,u,this.dataKey)){s=this.getOptionLabel(o);break}}return
s}get allChecked(){let e=this.optionsToRender;if(!e||0===e.length)return!1;{l
et n=0,s=0,r=0,o=this.group?0:this.optionsToRender.length;for(let u of
e)if(this.group)for(let h of this.getOptionGroupChildren(u)){let
b=this.isOptionDisabled(h),y=this.isSelected(h);if(b)y?n++:s++;else{if(!y)return!1;r++}o++}else{let
h=this.isOptionDisabled(u),b=this.isSelected(u);if(h)b?n++:s++;else{if(!b)return!1;r++}}return
o===n||o===r||r&&o===r+s+n}}get optionsToRender(){return
this._filteredOptions||this.options}get emptyOptions(){let
e=this.optionsToRender;return!e||0===e.length}get emptyMessageLabel(){return
this.emptyMessage||this.config.getTranslation(Ft.EMPTY_MESSAGE)}get
emptyFilterMessageLabel(){return
this.emptyFilterMessage||this.config.getTranslation(Ft.EMPTY_FILTER_MESSAGE)}hasFilter(){return
this._filterValue&&this._filterValue.trim().length>0}onFilterInputChange(e){this._filterValue=e.target.value,this.activateFilter(),this.onFilter.emit({originalEvent:e,filter:this._filterValue}),this.cd.detectChanges(),this.alignOverlay()}activateFilter(){if(this.hasFilter()&&
this._options){let
e=(this.filterBy||this.optionLabel||"label").split(",");if(this.group){let
n=[];for(let s of this.options){let
r=this.filterService.filter(this.getOptionGroupChildren(s),e,this.filterValue,this.filterMatchMode,this.filterLocale);r&&r.length&&n.push(Object.assign(Object.assign({},s),{[this.optionGroupChildren]:r}))}this._filteredOptions=n}else
this._filteredOptions=this.filterService.filter(this.options,e,this._filterValue,this.filterMatchMode,this.filterLocale)}else
this._filteredOptions=null}onHeaderCheckboxFocus(){this.headerCheckboxFocus=!0}onHeaderCheckboxBlur(){this.headerCheckboxFocus=!1}bindDocumentClickListener(){this.documentClickListener||(this.documentClickListener=this.renderer.listen(this.el?this.el.nativeElement.ownerDocument:"document","click",n=>{!this.preventDocumentDefault&&this.isOutsideClicked(n)&&this.hide(),this.preventDocumentDefault=!1}))}unbindDocumentClickListener(){this.documentClickListener&&(this.documentClickListener(),this.documentCl
ickListener=null)}bindDocumentResizeListener(){this.documentResizeListener=this.onWindowResize.bind(this),window.addEventListener("resize",this.documentResizeListener)}unbindDocumentResizeListener(){this.documentResizeListener&&(window.removeEventListener("resize",this.documentResizeListener),this.documentResizeListener=null)}onWindowResize(){R.isAndroid()||this.hide()}bindScrollListener(){this.scrollHandler||(this.scrollHandler=new
Qs(this.containerViewChild.nativeElement,()=>{this.overlayVisible&&this.hide()})),this.scrollHandler.bindScrollListener()}unbindScrollListener(){this.scrollHandler&&this.scrollHandler.unbindScrollListener()}onOverlayHide(){this.unbindDocumentClickListener(),this.unbindDocumentResizeListener(),this.unbindScrollListener(),this.overlay=null,this.onModelTouched()}ngOnDestroy(){this.scrollHandler&&(this.scrollHandler.destroy(),this.scrollHandler=null),this.overlay&&dt.clear(this.overlay),this.restoreOverlayAppend(),this.onOverlayHide()}}return
t.\u0275fac=fun
ction(e){return
new(e||t)(D(De),D(gn),D(rt),D(hl),D(zn),D(Ks))},t.\u0275cmp=z({type:t,selectors:[["p-multiSelect"]],contentQueries:function(e,n,s){if(1&e&&(st(s,fl,5),st(s,Oo,5),st(s,ne,4)),2&e){let
r;V(r=B())&&(n.footerFacet=r.first),V(r=B())&&(n.headerFacet=r.first),V(r=B())&&(n.templates=r)}},viewQuery:function(e,n){if(1&e&&(W(Vz,5),W(Bz,5),W(Hz,5)),2&e){let
s;V(s=B())&&(n.containerViewChild=s.first),V(s=B())&&(n.filterInputChild=s.first),V(s=B())&&(n.accessibleViewChild=s.first)}},hostAttrs:[1,"p-element","p-inputwrapper"],hostVars:6,hostBindings:function(e,n){2&e&&si("p-inputwrapper-filled",n.filled)("p-inputwrapper-focus",n.focus||n.overlayVisible)("p-multiselect-clearable",n.showClear&&!n.disabled)},inputs:{style:"style",styleClass:"styleClass",panelStyle:"panelStyle",panelStyleClass:"panelStyleClass",inputId:"inputId",disabled:"disabled",readonly:"readonly",group:"group",filter:"filter",filterPlaceHolder:"filterPlaceHolder",filterLocale:"filterLocale",overlayVisible:"overlay
Visible",tabindex:"tabindex",appendTo:"appendTo",dataKey:"dataKey",name:"name",label:"label",ariaLabelledBy:"ariaLabelledBy",displaySelectedLabel:"displaySelectedLabel",maxSelectedLabels:"maxSelectedLabels",selectionLimit:"selectionLimit",selectedItemsLabel:"selectedItemsLabel",showToggleAll:"showToggleAll",emptyFilterMessage:"emptyFilterMessage",emptyMessage:"emptyMessage",resetFilterOnHide:"resetFilterOnHide",dropdownIcon:"dropdownIcon",optionLabel:"optionLabel",optionValue:"optionValue",optionDisabled:"optionDisabled",optionGroupLabel:"optionGroupLabel",optionGroupChildren:"optionGroupChildren",showHeader:"showHeader",autoZIndex:"autoZIndex",baseZIndex:"baseZIndex",filterBy:"filterBy",virtualScroll:"virtualScroll",itemSize:"itemSize",showTransitionOptions:"showTransitionOptions",hideTransitionOptions:"hideTransitionOptions",ariaFilterLabel:"ariaFilterLabel",filterMatchMode:"filterMatchMode",tooltip:"tooltip",tooltipPosition:"tooltipPosition",tooltipPositionStyle:"tooltipPositionS
tyle",tooltipStyleClass:"tooltipStyleClass",autofocusFilter:"autofocusFilter",display:"display",autocomplete:"autocomplete",showClear:"showClear",scrollHeight:"scrollHeight",defaultLabel:"defaultLabel",placeholder:"placeholder",options:"options",filterValue:"filterValue"},outputs:{onChange:"onChange",onFilter:"onFilter",onFocus:"onFocus",onBlur:"onBlur",onClick:"onClick",onClear:"onClear",onPanelShow:"onPanelShow",onPanelHide:"onPanelHide"},features:[Pe([Lj])],ngContentSelectors:Rj,decls:13,vars:34,consts:[[3,"ngClass","ngStyle","click"],["container",""],[1,"p-hidden-accessible"],["type","text","readonly","readonly","aria-haspopup","listbox","role","listbox",3,"disabled","focus","blur","keydown"],["in",""],[1,"p-multiselect-label-container",3,"pTooltip","tooltipPosition","positionStyle","tooltipStyleClass"],[1,"p-multiselect-label",3,"ngClass"],[4,"ngIf"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],["class","p-multiselect-clear-icon
pi pi-times",3,"click",4,"ngIf"],[3,"ngClass"
],[1,"p-multiselect-trigger-icon",3,"ngClass"],["onOverlayAnimationEnd","",3,"ngClass","ngStyle","class","keydown","click",4,"ngIf"],["class","p-multiselect-token",4,"ngFor","ngForOf"],[1,"p-multiselect-token"],["token",""],[1,"p-multiselect-token-label"],["class","p-multiselect-token-icon
pi
pi-times-circle",3,"click",4,"ngIf"],[1,"p-multiselect-token-icon","pi","pi-times-circle",3,"click"],[1,"p-multiselect-clear-icon","pi","pi-times",3,"click"],["onOverlayAnimationEnd","",3,"ngClass","ngStyle","keydown","click"],["class","p-multiselect-header",4,"ngIf"],[1,"p-multiselect-items-wrapper"],["role","listbox","aria-multiselectable","true",1,"p-multiselect-items","p-component",3,"ngClass"],["itemslist",""],["class","p-multiselect-footer",4,"ngIf"],[1,"p-multiselect-header"],[4,"ngTemplateOutlet"],["class","p-checkbox
p-component",3,"ngClass",4,"ngIf"],["class","p-multiselect-filter-container",4,"ngIf"],["type","button","pRipple","",1,"p-multiselect-close","p-link",3,"click"],[1,"p-mult
iselect-close-icon","pi","pi-times"],[1,"p-checkbox","p-component",3,"ngClass"],["type","checkbox","readonly","readonly",3,"checked","disabled","focus","blur","keydown.space"],["role","checkbox",1,"p-checkbox-box",3,"ngClass","click"],[1,"p-checkbox-icon",3,"ngClass"],[1,"p-multiselect-filter-container"],["type","text","role","textbox",1,"p-multiselect-filter","p-inputtext","p-component",3,"value","disabled","input"],["filterInput",""],[1,"p-multiselect-filter-icon","pi","pi-search"],["ngFor","",3,"ngForOf"],[1,"p-multiselect-item-group"],[4,"ngIf","ngIfElse"],["virtualScrollList",""],["class","p-multiselect-empty-message",4,"ngIf"],[3,"option","selected","label","disabled","template","onClick","onKeydown"],[3,"ngStyle","itemSize",4,"ngIf"],[3,"ngStyle","itemSize"],["viewport",""],[4,"cdkVirtualFor","cdkVirtualForOf"],[3,"option","selected","label","disabled","template","itemSize","onClick","onKeydown"],[1,"p-multiselect-empty-message"],["emptyFilter",""],["empty",""],[1,"p-multisel
ect-footer"]],template:function(e,n){if(1&e){const
s=I();Sn(Mj),l(0,"div",0,1),C("click",function(o){v(s);const
u=F(4);return
n.onMouseclick(o,u)}),l(2,"div",2)(3,"input",3,4),C("focus",function(o){return
n.onInputFocus(o)})("blur",function(o){return
n.onInputBlur(o)})("keydown",function(o){return
n.onKeydown(o)}),c()(),l(5,"div",5)(6,"div",6),_(7,$z,3,2,"ng-container",7),_(8,Wz,1,0,"ng-container",8),c(),_(9,Kz,1,0,"i",9),c(),l(10,"div",10),k(11,"span",11),c(),_(12,Dj,9,20,"div",12),c()}2&e&&(me(n.styleClass),p("ngClass",qn(23,kj,n.overlayVisible,"chip"===n.display,n.focus,n.disabled))("ngStyle",n.style),a(3),p("disabled",n.disabled),ie("label",n.label)("id",n.inputId)("name",n.name)("tabindex",n.tabindex)("aria-expanded",n.overlayVisible)("aria-labelledby",n.ariaLabelledBy),a(2),p("pTooltip",n.tooltip)("tooltipPosition",n.tooltipPosition)("positionStyle",n.tooltipPositionStyle)("tooltipStyleClass",n.tooltipStyleClass),a(1),p("ngClass",Ge(28,Ij,n.valuesAsString===(n.defaultLabel||n.
placeholder),!(null!=n.valuesAsString&&0!==n.valuesAsString.length||null!=n.placeholder&&0!==n.placeholder.length))),a(1),p("ngIf",!n.selectedItemsTemplate),a(1),p("ngTemplateOutlet",n.selectedItemsTemplate)("ngTemplateOutletContext",U(31,Rl,n.value)),a(1),p("ngIf",null!=n.value&&n.filled&&!n.disabled&&n.showClear),a(1),p("ngClass",A(33,Ej)),a(1),p("ngClass",n.dropdownIcon),a(1),p("ngIf",n.overlayVisible))},directives:[Oj,Po,Le,lt,Kt,Q,at,Rt,bt,Qf,Jf],styles:[".p-multiselect{display:inline-flex;cursor:pointer;position:relative;-webkit-user-select:none;user-select:none}.p-multiselect-trigger{display:flex;align-items:center;justify-content:center;flex-shrink:0}.p-multiselect-label-container{overflow:hidden;flex:1
1
auto;cursor:pointer}.p-multiselect-label{display:block;white-space:nowrap;cursor:pointer;overflow:hidden;text-overflow:ellipsis}.p-multiselect-label-empty{overflow:hidden;visibility:hidden}.p-multiselect-token{cursor:default;display:inline-flex;align-items:center;flex:0
0 a
uto}.p-multiselect-token-icon{cursor:pointer}.p-multiselect
.p-multiselect-panel{min-width:100%}.p-multiselect-panel{position:absolute;top:0;left:0}.p-multiselect-items-wrapper{overflow:auto}.p-multiselect-items{margin:0;padding:0;list-style-type:none}.p-multiselect-item{cursor:pointer;display:flex;align-items:center;font-weight:400;white-space:nowrap;position:relative;overflow:hidden}.p-multiselect-header{display:flex;align-items:center;justify-content:space-between}.p-multiselect-filter-container{position:relative;flex:1
1
auto}.p-multiselect-filter-icon{position:absolute;top:50%;margin-top:-.5rem}.p-multiselect-filter-container
.p-inputtext{width:100%}.p-multiselect-close{display:flex;align-items:center;justify-content:center;flex-shrink:0;overflow:hidden;position:relative}.p-fluid
.p-multiselect{display:flex}.p-multiselect-clear-icon{position:absolute;top:50%;margin-top:-.5rem;cursor:pointer}.p-multiselect-clearable{position:relative}\n"],encapsulation:2,data:{animation:[wi("ove
rlayAnimation",[Lt(":enter",[it({opacity:0,transform:"scaleY(0.8)"}),kt("{{showTransitionParams}}")]),Lt(":leave",[kt("{{hideTransitionParams}}",it({opacity:0}))])])]},changeDetection:0}),t})(),Aj=(()=>{class
t{}return t.\u0275fac=function(e){return
new(e||t)},t.\u0275mod=he({type:t}),t.\u0275inj=ue({imports:[[Fe,Nt,Fo,jn,pn],Nt,Fo]}),t})(),e$=(()=>{class
t{}return t.\u0275fac=function(e){return
new(e||t)},t.\u0275mod=he({type:t}),t.\u0275inj=ue({imports:[[Fe,vn,jn],vn,jn]}),t})(),tS=(()=>{class
t{constructor(e,n,s,r){this.el=e,this.ngModel=n,this.control=s,this.cd=r,this.onResize=new
H}ngOnInit(){this.ngModel&&(this.ngModelSubscription=this.ngModel.valueChanges.subscribe(()=>{this.updateState()})),this.control&&(this.ngControlSubscription=this.control.valueChanges.subscribe(()=>{this.updateState()}))}ngAfterViewInit(){this.autoResize&&this.resize(),this.updateFilledState(),this.cd.detectChanges()}onInput(e){this.updateState()}updateFilledState(){this.filled=this.el.nativeElement.va
lue&&this.el.nativeElement.value.length}onFocus(e){this.autoResize&&this.resize(e)}onBlur(e){this.autoResize&&this.resize(e)}resize(e){this.el.nativeElement.style.height="auto",this.el.nativeElement.style.height=this.el.nativeElement.scrollHeight+"px",parseFloat(this.el.nativeElement.style.height)>=parseFloat(this.el.nativeElement.style.maxHeight)?(this.el.nativeElement.style.overflowY="scroll",this.el.nativeElement.style.height=this.el.nativeElement.style.maxHeight):this.el.nativeElement.style.overflow="hidden",this.onResize.emit(e||{})}updateState(){this.updateFilledState(),this.autoResize&&this.resize()}ngOnDestroy(){this.ngModelSubscription&&this.ngModelSubscription.unsubscribe(),this.ngControlSubscription&&this.ngControlSubscription.unsubscribe()}}return
t.\u0275fac=function(e){return
new(e||t)(D(De),D(_e,8),D(ss,8),D(rt))},t.\u0275dir=le({type:t,selectors:[["","pInputTextarea",""]],hostAttrs:[1,"p-inputtextarea","p-inputtext","p-component","p-element"],hostVars:4,hostBindings:
function(e,n){1&e&&C("input",function(r){return
n.onInput(r)})("focus",function(r){return
n.onFocus(r)})("blur",function(r){return
n.onBlur(r)}),2&e&&si("p-filled",n.filled)("p-inputtextarea-resizable",n.autoResize)},inputs:{autoResize:"autoResize"},outputs:{onResize:"onResize"}}),t})(),t$=(()=>{class
t{}return t.\u0275fac=function(e){return
new(e||t)},t.\u0275mod=he({type:t}),t.\u0275inj=ue({imports:[[Fe]]}),t})();const
n$=["sublist"],i$=function(t){return{"p-hidden":t}};function
s$(t,i){if(1&t&&k(0,"li",5),2&t){const
e=d().$implicit;p("ngClass",U(1,i$,!1===e.visible))}}function
r$(t,i){if(1&t&&k(0,"span",16),2&t){const
e=d(3).$implicit;p("ngClass",e.icon)("ngStyle",e.iconStyle)}}function
o$(t,i){if(1&t&&(l(0,"span",17),g(1),c()),2&t){const
e=d(3).$implicit;a(1),S(e.label)}}function
a$(t,i){1&t&&k(0,"span",18),2&t&&p("innerHTML",d(3).$implicit.label,Bt)}function
l$(t,i){1&t&&k(0,"span",19)}const
nS=function(t){return{"p-menuitem-link":!0,"p-disabled":t}};function
c$(t,i){if(1&t){co
nst e=I();l(0,"a",11),C("keydown",function(s){v(e);const
r=d(2).$implicit;return d().onItemKeyDown(s,r)})("click",function(s){v(e);const
r=d(2).$implicit;return
d().onItemClick(s,r)})("mouseenter",function(s){v(e);const
r=d(2).$implicit;return
d().onItemMouseEnter(s,r)}),_(1,r$,1,2,"span",12),_(2,o$,2,1,"span",13),_(3,a$,1,1,"ng-template",null,14,we),_(5,l$,1,0,"span",15),c()}if(2&t){const
e=F(4),n=d(2).$implicit,s=d();p("target",n.target)("ngClass",U(13,nS,n.disabled)),ie("href",n.url,ln)("data-automationid",n.automationId)("title",n.title)("id",n.id)("tabindex",n.disabled?null:"0")("aria-haspopup",null!=s.item.items)("aria-expanded",s.item===s.activeItem),a(1),p("ngIf",n.icon),a(1),p("ngIf",!1!==n.escape)("ngIfElse",e),a(3),p("ngIf",n.items)}}function
u$(t,i){if(1&t&&k(0,"span",16),2&t){const
e=d(3).$implicit;p("ngClass",e.icon)("ngStyle",e.iconStyle)}}function
d$(t,i){if(1&t&&(l(0,"span",17),g(1),c()),2&t){const
e=d(3).$implicit;a(1),S(e.label)}}function
p$(t,i){1&t&&k(0,"span",1
8),2&t&&p("innerHTML",d(3).$implicit.label,Bt)}function
h$(t,i){1&t&&k(0,"span",19)}const
m$=function(){return{exact:!1}};function f$(t,i){if(1&t){const
e=I();l(0,"a",20),C("keydown",function(s){v(e);const
r=d(2).$implicit;return d().onItemKeyDown(s,r)})("click",function(s){v(e);const
r=d(2).$implicit;return
d().onItemClick(s,r)})("mouseenter",function(s){v(e);const
r=d(2).$implicit;return
d().onItemMouseEnter(s,r)}),_(1,u$,1,2,"span",12),_(2,d$,2,1,"span",13),_(3,p$,1,1,"ng-template",null,21,we),_(5,h$,1,0,"span",15),c()}if(2&t){const
e=F(4),n=d(2).$implicit;p("routerLink",n.routerLink)("queryParams",n.queryParams)("routerLinkActive","p-menuitem-link-active")("routerLinkActiveOptions",n.routerLinkActiveOptions||A(20,m$))("target",n.target)("ngClass",U(21,nS,n.disabled))("fragment",n.fragment)("queryParamsHandling",n.queryParamsHandling)("preserveFragment",n.preserveFragment)("skipLocationChange",n.skipLocationChange)("replaceUrl",n.replaceUrl)("state",n.state),ie("data-automationid
",n.automationId)("title",n.title)("id",n.id)("tabindex",n.disabled?null:"0"),a(1),p("ngIf",n.icon),a(1),p("ngIf",!1!==n.escape)("ngIfElse",e),a(3),p("ngIf",n.items)}}function
g$(t,i){if(1&t){const
e=I();l(0,"p-tieredMenuSub",22),C("keydownItem",function(s){return
v(e),d(3).onChildItemKeyDown(s)})("leafClick",function(){return
v(e),d(3).onLeafClick()}),c()}if(2&t){const
e=d(2).$implicit,n=d();p("parentActive",e===n.activeItem)("item",e)("mobileActive",n.mobileActive)("autoDisplay",n.autoDisplay)("popup",n.popup)}}const
_$=function(t,i){return{"p-menuitem":!0,"p-menuitem-active":t,"p-hidden":i}};function
b$(t,i){if(1&t&&(l(0,"li",6,7),_(2,c$,6,15,"a",8),_(3,f$,6,23,"a",9),_(4,g$,1,5,"p-tieredMenuSub",10),c()),2&t){const
e=d().$implicit,n=d();me(e.styleClass),p("ngClass",Ge(8,_$,e===n.activeItem,!1===e.visible))("ngStyle",e.style)("tooltipOptions",e.tooltipOptions),a(2),p("ngIf",!e.routerLink),a(1),p("ngIf",e.routerLink),a(1),p("ngIf",e.items)}}function
v$(t,i){if(1&t&&(_(0,s$,1,3,"li
",3),_(1,b$,5,11,"li",4)),2&t){const
e=i.$implicit;p("ngIf",e.separator),a(1),p("ngIf",!e.separator)}}const
C$=function(t){return{"p-submenu-list":t}},y$=function(t){return{"p-tieredmenu
p-component":!0,"p-tieredmenu-overlay":t}},w$=function(t,i){return{showTransitionParams:t,hideTransitionParams:i}},T$=function(t){return{value:"visible",params:t}};function
S$(t,i){if(1&t){const
e=I();l(0,"div",1),C("click",function(s){return
v(e),d().onOverlayClick(s)})("(a)overlayAnimation.start",function(s){return
v(e),d().onOverlayAnimationStart(s)})("(a)overlayAnimation.done",function(s){return
v(e),d().onOverlayAnimationEnd(s)}),l(1,"p-tieredMenuSub",2),C("leafClick",function(){return
v(e),d().onLeafClick()}),c()()}if(2&t){const
e=d();me(e.styleClass),p("ngClass",U(12,y$,e.popup))("ngStyle",e.style)("@overlayAnimation",U(17,T$,Ge(14,w$,e.showTransitionOptions,e.hideTransitionOptions)))("@.disabled",!0!==e.popup),a(1),p("item",e.model)("parentActive",e.parentActive)("baseZIndex",e.baseZIndex)("auto
ZIndex",e.autoZIndex)("autoDisplay",e.autoDisplay)("popup",e.popup)}}let
x$=(()=>{class
t{constructor(e,n,s){this.el=e,this.renderer=n,this.cd=s,this.autoZIndex=!0,this.baseZIndex=0,this.leafClick=new
H,this.keydownItem=new H,this.menuHoverActive=!1}get parentActive(){return
this._parentActive}set
parentActive(e){this.root||(this._parentActive=e,e?this.positionSubmenu():this.activeItem=null)}onItemClick(e,n){n.disabled?e.preventDefault():(!n.url&&!n.routerLink&&e.preventDefault(),n.command&&n.command({originalEvent:e,item:n}),n.items&&(this.activeItem&&n===this.activeItem?(this.activeItem=null,this.unbindDocumentClickListener()):(this.activeItem=n,this.root&&this.bindDocumentClickListener())),n.items||this.onLeafClick())}onItemMouseEnter(e,n){n.disabled||this.mobileActive?e.preventDefault():this.root?(this.activeItem||this.autoDisplay||this.popup)&&(this.activeItem=n,this.bindDocumentClickListener()):(this.activeItem=n,this.bindDocumentClickListener())}onLeafClick(){this.activeItem=
null,this.root&&this.unbindDocumentClickListener(),this.leafClick.emit()}onItemKeyDown(e,n){let
s=e.currentTarget.parentElement;switch(e.key){case"ArrowDown":var
r=this.findNextItem(s);r&&r.children[0].focus(),e.preventDefault();break;case"ArrowUp":var
o=this.findPrevItem(s);o&&o.children[0].focus(),e.preventDefault();break;case"ArrowRight":n.items&&(this.activeItem=n,this.root&&this.bindDocumentClickListener(),setTimeout(()=>{s.children[1].children[0].children[0].children[0].focus()},50)),e.preventDefault()}this.keydownItem.emit({originalEvent:e,element:s})}positionSubmenu(){let
e=this.sublistViewChild&&this.sublistViewChild.nativeElement;if(e){const
n=e.parentElement.parentElement,s=R.getOffset(n),r=R.getViewport(),o=e.offsetParent?e.offsetWidth:R.getHiddenElementOuterWidth(e),u=R.getOuterWidth(n.children[0]);parseInt(s.left,10)+u+o>r.width-R.calculateScrollbarWidth()&&R.addClass(e,"p-submenu-list-flipped")}}findNextItem(e){let
n=e.nextElementSibling;return n?R.hasClass(n,"p-disab
led")||!R.hasClass(n,"p-menuitem")?this.findNextItem(n):n:null}findPrevItem(e){let
n=e.previousElementSibling;return
n?R.hasClass(n,"p-disabled")||!R.hasClass(n,"p-menuitem")?this.findPrevItem(n):n:null}onChildItemKeyDown(e){"ArrowLeft"===e.originalEvent.key&&(this.activeItem=null,this.root&&this.unbindDocumentClickListener(),e.element.parentElement.parentElement.parentElement.children[0].focus())}bindDocumentClickListener(){this.documentClickListener||(this.documentClickListener=e=>{this.el&&!this.el.nativeElement.contains(e.target)&&(this.activeItem=null,this.cd.markForCheck(),this.unbindDocumentClickListener())},document.addEventListener("click",this.documentClickListener))}unbindDocumentClickListener(){this.documentClickListener&&(document.removeEventListener("click",this.documentClickListener),this.documentClickListener=null)}ngOnDestroy(){this.unbindDocumentClickListener()}}return
t.\u0275fac=function(e){return
new(e||t)(D(De),D(gn),D(rt))},t.\u0275cmp=z({type:t,selectors:[["p
-tieredMenuSub"]],viewQuery:function(e,n){if(1&e&&W(n$,5),2&e){let
s;V(s=B())&&(n.sublistViewChild=s.first)}},hostAttrs:[1,"p-element"],inputs:{item:"item",root:"root",autoDisplay:"autoDisplay",autoZIndex:"autoZIndex",baseZIndex:"baseZIndex",mobileActive:"mobileActive",popup:"popup",parentActive:"parentActive"},outputs:{leafClick:"leafClick",keydownItem:"keydownItem"},decls:3,vars:4,consts:[[3,"ngClass"],["sublist",""],["ngFor","",3,"ngForOf"],["class","p-menu-separator",3,"ngClass",4,"ngIf"],["pTooltip","",3,"ngClass","ngStyle","class","tooltipOptions",4,"ngIf"],[1,"p-menu-separator",3,"ngClass"],["pTooltip","",3,"ngClass","ngStyle","tooltipOptions"],["listItem",""],["pRipple","",3,"target","ngClass","keydown","click","mouseenter",4,"ngIf"],["role","menuitem","pRipple","",3,"routerLink","queryParams","routerLinkActive","routerLinkActiveOptions","target","ngClass","fragment","queryParamsHandling","preserveFragment","skipLocationChange","replaceUrl","state","keydown","click","mouseen
ter",4,"ngIf"],[3,"parentActive","item","mobileActive","autoDisplay","popup","keydownItem","leafClick",4,"ngIf"],["pRipple","",3,"target","ngClass","keydown","click","mouseenter"],["class","p-menuitem-icon",3,"ngClass","ngStyle",4,"ngIf"],["class","p-menuitem-text",4,"ngIf","ngIfElse"],["htmlLabel",""],["class","p-submenu-icon
pi
pi-angle-right",4,"ngIf"],[1,"p-menuitem-icon",3,"ngClass","ngStyle"],[1,"p-menuitem-text"],[1,"p-menuitem-text",3,"innerHTML"],[1,"p-submenu-icon","pi","pi-angle-right"],["role","menuitem","pRipple","",3,"routerLink","queryParams","routerLinkActive","routerLinkActiveOptions","target","ngClass","fragment","queryParamsHandling","preserveFragment","skipLocationChange","replaceUrl","state","keydown","click","mouseenter"],["htmlRouteLabel",""],[3,"parentActive","item","mobileActive","autoDisplay","popup","keydownItem","leafClick"]],template:function(e,n){1&e&&(l(0,"ul",0,1),_(2,v$,2,2,"ng-template",2),c()),2&e&&(p("ngClass",U(2,C$,!n.root)),a(2),p("ngForOf",n.r
oot?n.item:n.item.items))},directives:[t,Le,at,Q,Kt,lt,bt,Ho,_d],encapsulation:2}),t})(),D$=(()=>{class
t{constructor(e,n,s,r,o){this.el=e,this.renderer=n,this.cd=s,this.config=r,this.overlayService=o,this.autoZIndex=!0,this.baseZIndex=0,this.showTransitionOptions=".12s
cubic-bezier(0, 0, 0.2, 1)",this.hideTransitionOptions=".1s
linear"}toggle(e){this.visible?this.hide():this.show(e),this.preventDocumentDefault=!0}show(e){this.target=e.currentTarget,this.relativeAlign=e.relativeAlign,this.visible=!0,this.parentActive=!0,this.preventDocumentDefault=!0,this.cd.markForCheck()}onOverlayClick(e){this.popup&&this.overlayService.add({originalEvent:e,target:this.el.nativeElement}),this.preventDocumentDefault=!0}onOverlayAnimationStart(e){switch(e.toState){case"visible":this.popup&&(this.container=e.element,this.moveOnTop(),this.appendOverlay(),this.alignOverlay(),this.bindDocumentClickListener(),this.bindDocumentResizeListener(),this.bindScrollListener());break;case"void":this.onOverlayHide
()}}alignOverlay(){this.relativeAlign?R.relativePosition(this.container,this.target):R.absolutePosition(this.container,this.target)}onOverlayAnimationEnd(e){"void"===e.toState&&dt.clear(e.element)}appendOverlay(){this.appendTo&&("body"===this.appendTo?document.body.appendChild(this.container):R.appendChild(this.container,this.appendTo))}restoreOverlayAppend(){this.container&&this.appendTo&&this.el.nativeElement.appendChild(this.container)}moveOnTop(){this.autoZIndex&&dt.set("menu",this.container,this.baseZIndex+this.config.zIndex.menu)}hide(){this.visible=!1,this.relativeAlign=!1,this.parentActive=!1,this.cd.markForCheck()}onWindowResize(){this.hide()}onLeafClick(){this.popup&&this.hide(),this.unbindDocumentClickListener()}bindDocumentClickListener(){this.documentClickListener||(this.documentClickListener=this.renderer.listen(this.el?this.el.nativeElement.ownerDocument:"document","click",()=>{!this.preventDocumentDefault&&this.popup&&this.hide(),this.preventDocumentDefault=!1}))}unb
indDocumentClickListener(){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.documentResizeListener),this.documentResizeListener=null)}bindScrollListener(){this.scrollHandler||(this.scrollHandler=new
Qs(this.target,()=>{this.visible&&this.hide()})),this.scrollHandler.bindScrollListener()}unbindScrollListener(){this.scrollHandler&&this.scrollHandler.unbindScrollListener()}onOverlayHide(){this.unbindDocumentClickListener(),this.unbindDocumentResizeListener(),this.unbindScrollListener(),this.preventDocumentDefault=!1,this.cd.destroyed||(this.target=null)}ngOnDestroy(){this.popup&&(this.scrollHandler&&(this.scrollHandler.destroy(),this.scrollHandler=null),this.container&&this.autoZIndex&&dt.clear(th
is.container),this.restoreOverlayAppend(),this.onOverlayHide())}}return
t.\u0275fac=function(e){return
new(e||t)(D(De),D(gn),D(rt),D(zn),D(Ks))},t.\u0275cmp=z({type:t,selectors:[["p-tieredMenu"]],hostAttrs:[1,"p-element"],inputs:{model:"model",popup:"popup",style:"style",styleClass:"styleClass",appendTo:"appendTo",autoZIndex:"autoZIndex",baseZIndex:"baseZIndex",autoDisplay:"autoDisplay",showTransitionOptions:"showTransitionOptions",hideTransitionOptions:"hideTransitionOptions"},decls:1,vars:1,consts:[[3,"ngClass","class","ngStyle","click",4,"ngIf"],[3,"ngClass","ngStyle","click"],["root","root",3,"item","parentActive","baseZIndex","autoZIndex","autoDisplay","popup","leafClick"]],template:function(e,n){1&e&&_(0,S$,2,19,"div",0),2&e&&p("ngIf",!n.popup||n.visible)},directives:[x$,Q,Le,lt],styles:[".p-tieredmenu-overlay{position:absolute;top:0;left:0}.p-tieredmenu
ul{margin:0;padding:0;list-style:none}.p-tieredmenu
.p-submenu-list{position:absolute;min-width:100%;z-index:1;display:none}
.p-tieredmenu
.p-menuitem-link{cursor:pointer;display:flex;align-items:center;text-decoration:none;overflow:hidden;position:relative}.p-tieredmenu
.p-menuitem-text{line-height:1}.p-tieredmenu .p-menuitem{position:relative}.p-tieredmenu
.p-menuitem-link .p-submenu-icon{margin-left:auto}.p-tieredmenu
.p-menuitem-active>p-tieredmenusub>.p-submenu-list{display:block;left:100%;top:0}.p-tieredmenu
.p-menuitem-active>p-tieredmenusub>.p-submenu-list.p-submenu-list-flipped{left:-100%}\n"],encapsulation:2,data:{animation:[wi("overlayAnimation",[Lt(":enter",[it({opacity:0,transform:"scaleY(0.8)"}),kt("{{showTransitionParams}}")]),Lt(":leave",[kt("{{hideTransitionParams}}",it({opacity:0}))])])]},changeDetection:0}),t})(),M$=(()=>{class
t{}return t.\u0275fac=function(e){return
new(e||t)},t.\u0275mod=he({type:t}),t.\u0275inj=ue({imports:[[Fe,vn,pn,jn],vn,jn]}),t})(),k$=(()=>{class
t{}return t.\u0275fac=function(e){return
new(e||t)},t.\u0275mod=he({type:t}),t.\u0275inj=ue({imports:[sN,gl,cT,_5,S5,
Q6,T7,D7,Zu,G7,Xu,TB,m9,y9,A9,G9,J9,Y9,pn,iq,sq,hq,kU,BU,GU,jn,JU,nz,cz,Oz,Aj,e$,t$,M$]}),t})();const
I$=["pMenuItemContent",""];function
E$(t,i){if(1&t&&k(0,"span",6),2&t){const
e=d(2);me(e.item.iconClass),p("ngClass",e.item.icon)("ngStyle",e.item.iconStyle)}}function
R$(t,i){if(1&t&&(l(0,"span",7),g(1),c()),2&t){const
e=d(2);a(1),S(e.item.label)}}function
L$(t,i){1&t&&k(0,"span",8),2&t&&p("innerHTML",d(2).item.label,Bt)}const
iS=function(t){return{"p-disabled":t}};function O$(t,i){if(1&t){const
e=I();l(0,"a",2),C("keydown",function(s){return
v(e),d().onItemKeyDown(s)})("click",function(s){v(e);const r=d();return
r.menu.itemClick(s,r.item)}),_(1,E$,1,4,"span",3),_(2,R$,2,1,"span",4),_(3,L$,1,1,"ng-template",null,5,we),c()}if(2&t){const
e=F(4),n=d();p("target",n.item.target)("ngClass",U(11,iS,n.item.disabled))("target",n.item.target),ie("href",n.item.url||null,ln)("tabindex",n.item.disabled?null:"0")("data-automationid",n.item.automationId)("title",n.item.title)("id",n.item.id),a(1)
,p("ngIf",n.item.icon),a(1),p("ngIf",!1!==n.item.escape)("ngIfElse",e)}}function
A$(t,i){1&t&&k(0,"span",12),2&t&&p("ngClass",d(2).item.icon)}function
P$(t,i){if(1&t&&(l(0,"span",7),g(1),c()),2&t){const
e=d(2);a(1),S(e.item.label)}}function
F$(t,i){1&t&&k(0,"span",8),2&t&&p("innerHTML",d(2).item.label,Bt)}const
N$=function(){return{exact:!1}};function V$(t,i){if(1&t){const
e=I();l(0,"a",9),C("keydown",function(s){return
v(e),d().onItemKeyDown(s)})("click",function(s){v(e);const r=d();return
r.menu.itemClick(s,r.item)}),_(1,A$,1,1,"span",10),_(2,P$,2,1,"span",4),_(3,F$,1,1,"ng-template",null,11,we),c()}if(2&t){const
e=F(4),n=d();p("routerLink",n.item.routerLink)("queryParams",n.item.queryParams)("routerLinkActive","p-menuitem-link-active")("routerLinkActiveOptions",n.item.routerLinkActiveOptions||A(19,N$))("target",n.item.target)("ngClass",U(20,iS,n.item.disabled))("fragment",n.item.fragment)("queryParamsHandling",n.item.queryParamsHandling)("preserveFragment",n.item.preserveFragment
)("skipLocationChange",n.item.skipLocationChange)("replaceUrl",n.item.replaceUrl)("state",n.item.state),ie("data-automationid",n.item.automationId)("id",n.item.id)("tabindex",n.item.disabled?null:"0")("title",n.item.title),a(1),p("ngIf",n.item.icon),a(1),p("ngIf",!1!==n.item.escape)("ngIfElse",e)}}const
B$=["container"],Uo=function(t){return{"p-hidden":t}};function
H$(t,i){if(1&t&&k(0,"li",8),2&t){const
e=d().$implicit;p("ngClass",U(1,Uo,!1===e.visible))}}function
q$(t,i){if(1&t&&(l(0,"span"),g(1),c()),2&t){const
e=d(2).$implicit;a(1),S(e.label)}}function
G$(t,i){1&t&&k(0,"span",12),2&t&&p("innerHTML",d(2).$implicit.label,Bt)}function
U$(t,i){if(1&t&&(l(0,"li",9),_(1,q$,2,1,"span",10),_(2,G$,1,1,"ng-template",null,11,we),c()),2&t){const
e=F(3),n=d().$implicit;p("ngClass",U(5,Uo,!1===n.visible))("tooltipOptions",n.tooltipOptions),ie("data-automationid",n.automationId),a(1),p("ngIf",!1!==n.escape)("ngIfElse",e)}}function
z$(t,i){if(1&t&&k(0,"li",8),2&t){const
e=d().$implicit,n=d().$im
plicit;p("ngClass",U(1,Uo,!1===e.visible||!1===n.visible))}}function
j$(t,i){if(1&t&&k(0,"li",14),2&t){const
e=d().$implicit,n=d().$implicit;me(e.styleClass),p("pMenuItemContent",e)("ngClass",U(6,Uo,!1===e.visible||!1===n.visible))("ngStyle",e.style)("tooltipOptions",e.tooltipOptions)}}function
$$(t,i){if(1&t&&(_(0,z$,1,3,"li",6),_(1,j$,1,8,"li",13)),2&t){const
e=i.$implicit;p("ngIf",e.separator),a(1),p("ngIf",!e.separator)}}function
W$(t,i){if(1&t&&(_(0,H$,1,3,"li",6),_(1,U$,4,7,"li",7),_(2,$$,2,2,"ng-template",5)),2&t){const
e=i.$implicit;p("ngIf",e.separator),a(1),p("ngIf",!e.separator),a(1),p("ngForOf",e.items)}}function
K$(t,i){1&t&&_(0,W$,3,3,"ng-template",5),2&t&&p("ngForOf",d(2).model)}function
Q$(t,i){if(1&t&&k(0,"li",8),2&t){const
e=d().$implicit;p("ngClass",U(1,Uo,!1===e.visible))}}function
J$(t,i){if(1&t&&k(0,"li",14),2&t){const
e=d().$implicit;me(e.styleClass),p("pMenuItemContent",e)("ngClass",U(6,Uo,!1===e.visible))("ngStyle",e.style)("tooltipOptions",e.tooltipOptions)
}}function
Y$(t,i){if(1&t&&(_(0,Q$,1,3,"li",6),_(1,J$,1,8,"li",13)),2&t){const
e=i.$implicit;p("ngIf",e.separator),a(1),p("ngIf",!e.separator)}}function
Z$(t,i){1&t&&_(0,Y$,2,2,"ng-template",5),2&t&&p("ngForOf",d(2).model)}const
X$=function(t){return{"p-menu
p-component":!0,"p-menu-overlay":t}},eW=function(t,i){return{showTransitionParams:t,hideTransitionParams:i}},tW=function(t){return{value:"visible",params:t}};function
nW(t,i){if(1&t){const
e=I();l(0,"div",1,2),C("click",function(s){return
v(e),d().onOverlayClick(s)})("(a)overlayAnimation.start",function(s){return
v(e),d().onOverlayAnimationStart(s)})("(a)overlayAnimation.done",function(s){return
v(e),d().onOverlayAnimationEnd(s)}),l(2,"ul",3),_(3,K$,1,1,null,4),_(4,Z$,1,1,null,4),c()()}if(2&t){const
e=d();me(e.styleClass),p("ngClass",U(8,X$,e.popup))("ngStyle",e.style)("@overlayAnimation",U(13,tW,Ge(10,eW,e.showTransitionOptions,e.hideTransitionOptions)))("@.disabled",!0!==e.popup),a(3),p("ngIf",e.hasSubMenu()),a(1),p("ngIf",!e.hasS
ubMenu())}}let iW=(()=>{class t{constructor(e){this.menu=e}onItemKeyDown(e){let
n=e.currentTarget.parentElement;switch(e.code){case"ArrowDown":var
s=this.findNextItem(n);s&&s.children[0].focus(),e.preventDefault();break;case"ArrowUp":var
r=this.findPrevItem(n);r&&r.children[0].focus(),e.preventDefault();break;case"Space":case"Enter":n&&!R.hasClass(n,"p-disabled")&&n.children[0].click(),e.preventDefault()}}findNextItem(e){let
n=e.nextElementSibling;return
n?R.hasClass(n,"p-disabled")||!R.hasClass(n,"p-menuitem")?this.findNextItem(n):n:null}findPrevItem(e){let
n=e.previousElementSibling;return
n?R.hasClass(n,"p-disabled")||!R.hasClass(n,"p-menuitem")?this.findPrevItem(n):n:null}}return
t.\u0275fac=function(e){return
new(e||t)(D(je(()=>sS)))},t.\u0275cmp=z({type:t,selectors:[["","pMenuItemContent",""]],hostAttrs:[1,"p-element"],inputs:{item:["pMenuItemContent","item"]},attrs:I$,decls:2,vars:2,consts:[["class","p-menuitem-link","role","menuitem",3,"target","ngClass","keydown","click",4,
"ngIf"],["class","p-menuitem-link","role","menuitem","pRipple","",3,"routerLink","queryParams","routerLinkActive","routerLinkActiveOptions","target","ngClass","fragment","queryParamsHandling","preserveFragment","skipLocationChange","replaceUrl","state","keydown","click",4,"ngIf"],["role","menuitem",1,"p-menuitem-link",3,"target","ngClass","keydown","click"],["class","p-menuitem-icon",3,"ngClass","class","ngStyle",4,"ngIf"],["class","p-menuitem-text",4,"ngIf","ngIfElse"],["htmlLabel",""],[1,"p-menuitem-icon",3,"ngClass","ngStyle"],[1,"p-menuitem-text"],[1,"p-menuitem-text",3,"innerHTML"],["role","menuitem","pRipple","",1,"p-menuitem-link",3,"routerLink","queryParams","routerLinkActive","routerLinkActiveOptions","target","ngClass","fragment","queryParamsHandling","preserveFragment","skipLocationChange","replaceUrl","state","keydown","click"],["class","p-menuitem-icon",3,"ngClass",4,"ngIf"],["htmlRouteLabel",""],[1,"p-menuitem-icon",3,"ngClass"]],template:function(e,n){1&e&&(_(0,O$,5,1
3,"a",0),_(1,V$,5,22,"a",1)),2&e&&(p("ngIf",!n.item.routerLink),a(1),p("ngIf",n.item.routerLink))},directives:[Q,Le,lt,Ho,bt,_d],encapsulation:2}),t})(),sS=(()=>{class
t{constructor(e,n,s,r,o){this.el=e,this.renderer=n,this.cd=s,this.config=r,this.overlayService=o,this.autoZIndex=!0,this.baseZIndex=0,this.showTransitionOptions=".12s
cubic-bezier(0, 0, 0.2, 1)",this.hideTransitionOptions=".1s
linear",this.onShow=new H,this.onHide=new
H}toggle(e){this.visible?this.hide():this.show(e),this.preventDocumentDefault=!0}show(e){this.target=e.currentTarget,this.relativeAlign=e.relativeAlign,this.visible=!0,this.preventDocumentDefault=!0,this.cd.markForCheck()}onOverlayAnimationStart(e){switch(e.toState){case"visible":this.popup&&(this.container=e.element,this.moveOnTop(),this.onShow.emit({}),this.appendOverlay(),this.alignOverlay(),this.bindDocumentClickListener(),this.bindDocumentResizeListener(),this.bindScrollListener());break;case"void":this.onOverlayHide(),this.onHide.emit({})}}onOverla
yAnimationEnd(e){"void"===e.toState&&this.autoZIndex&&dt.clear(e.element)}alignOverlay(){this.relativeAlign?R.relativePosition(this.container,this.target):R.absolutePosition(this.container,this.target)}appendOverlay(){this.appendTo&&("body"===this.appendTo?document.body.appendChild(this.container):R.appendChild(this.container,this.appendTo))}restoreOverlayAppend(){this.container&&this.appendTo&&this.el.nativeElement.appendChild(this.container)}moveOnTop(){this.autoZIndex&&dt.set("menu",this.container,this.baseZIndex+this.config.zIndex.menu)}hide(){this.visible=!1,this.relativeAlign=!1,this.cd.markForCheck()}onWindowResize(){this.hide()}itemClick(e,n){n.disabled?e.preventDefault():(!n.url&&!n.routerLink&&e.preventDefault(),n.command&&n.command({originalEvent:e,item:n}),this.popup&&this.hide())}onOverlayClick(e){this.popup&&this.overlayService.add({originalEvent:e,target:this.el.nativeElement}),this.preventDocumentDefault=!0}bindDocumentClickListener(){this.documentClickListener||(thi
s.documentClickListener=this.renderer.listen(this.el?this.el.nativeElement.ownerDocument:"document","click",()=>{this.preventDocumentDefault||this.hide(),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.documentResizeListener),this.documentResizeListener=null)}bindScrollListener(){this.scrollHandler||(this.scrollHandler=new
Qs(this.target,()=>{this.visible&&this.hide()})),this.scrollHandler.bindScrollListener()}unbindScrollListener(){this.scrollHandler&&this.scrollHandler.unbindScrollListener()}onOverlayHide(){this.unbindDocumentClickListener(),this.unbindDocumentResizeListener(),this.unbindScrollListener(),this.preventDocumentDefa
ult=!1,this.cd.destroyed||(this.target=null)}ngOnDestroy(){this.popup&&(this.scrollHandler&&(this.scrollHandler.destroy(),this.scrollHandler=null),this.container&&this.autoZIndex&&dt.clear(this.container),this.restoreOverlayAppend(),this.onOverlayHide())}hasSubMenu(){if(this.model)for(var
e of this.model)if(e.items)return!0;return!1}}return t.\u0275fac=function(e){return
new(e||t)(D(De),D(gn),D(rt),D(zn),D(Ks))},t.\u0275cmp=z({type:t,selectors:[["p-menu"]],viewQuery:function(e,n){if(1&e&&W(B$,5),2&e){let
s;V(s=B())&&(n.containerViewChild=s.first)}},hostAttrs:[1,"p-element"],inputs:{model:"model",popup:"popup",style:"style",styleClass:"styleClass",appendTo:"appendTo",autoZIndex:"autoZIndex",baseZIndex:"baseZIndex",showTransitionOptions:"showTransitionOptions",hideTransitionOptions:"hideTransitionOptions"},outputs:{onShow:"onShow",onHide:"onHide"},decls:1,vars:1,consts:[[3,"ngClass","class","ngStyle","click",4,"ngIf"],[3,"ngClass","ngStyle","click"],["container",""],["role","menu",1,"
p-menu-list","p-reset"],[4,"ngIf"],["ngFor","",3,"ngForOf"],["class","p-menu-separator","role","separator",3,"ngClass",4,"ngIf"],["class","p-submenu-header","pTooltip","","role","none",3,"ngClass","tooltipOptions",4,"ngIf"],["role","separator",1,"p-menu-separator",3,"ngClass"],["pTooltip","","role","none",1,"p-submenu-header",3,"ngClass","tooltipOptions"],[4,"ngIf","ngIfElse"],["htmlSubmenuLabel",""],[3,"innerHTML"],["class","p-menuitem","pTooltip","","role","none",3,"pMenuItemContent","ngClass","ngStyle","class","tooltipOptions",4,"ngIf"],["pTooltip","","role","none",1,"p-menuitem",3,"pMenuItemContent","ngClass","ngStyle","tooltipOptions"]],template:function(e,n){1&e&&_(0,nW,5,15,"div",0),2&e&&p("ngIf",!n.popup||n.visible)},directives:[iW,Q,Le,lt,at,Kt],styles:[".p-menu-overlay{position:absolute;top:0;left:0}.p-menu
ul{margin:0;padding:0;list-style:none}.p-menu
.p-menuitem-link{cursor:pointer;display:flex;align-items:center;text-decoration:none;overflow:hidden;position:relative}.p-
menu
.p-menuitem-text{line-height:1}\n"],encapsulation:2,data:{animation:[wi("overlayAnimation",[Lt(":enter",[it({opacity:0,transform:"scaleY(0.8)"}),kt("{{showTransitionParams}}")]),Lt(":leave",[kt("{{hideTransitionParams}}",it({opacity:0}))])])]},changeDetection:0}),t})(),sW=(()=>{class
t{}return t.\u0275fac=function(e){return
new(e||t)},t.\u0275mod=he({type:t}),t.\u0275inj=ue({imports:[[Fe,vn,pn,jn],vn,jn]}),t})(),zo=(()=>{class
t{constructor(e){this.httpClient=e}GetDatabaseStatus(){return
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")}GetIPAddresses(e){let n=(new
ye).set("Protocol",e);return
this.httpClient.get("/Config/GetIPAddresses",{params:n})}GetSystemEvents(e){let
n=new ye;return
e&&n.set("Host",e),this.httpClient.get("/Config/GetSystemEvents",{params:n
})}}return t.\u0275fac=function(e){return
new(e||t)(K(Bi))},t.\u0275prov=X({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),qt=(()=>{class
t{constructor(e){this.httpClient=e}AddStorageGroupDir(e){return
this.httpClient.post("/Myth/AddStorageGroupDir",e)}BackupDatabase(){return
this.httpClient.post("/Myth/BackupDatabase",{body:void
0})}CheckDatabase(e){return
this.httpClient.post("/Myth/CheckDatabase",e)}DelayShutdown(){return
this.httpClient.post("Myth/DelayShutdown",{body:void 0})}GetBackendInfo(){return
this.httpClient.get("/Myth/GetBackendInfo")}GetConnectionInfo(e){let n=(new
ye).set("Pin",e);return
this.httpClient.get("/Myth/GetConnectionInfo",{params:n})}GetFrontends(e){let
n=(new ye).set("OnLine",e);return
this.httpClient.get("/Myth/GetFrontends",{params:n})}GetHostName(){return
this.httpClient.get("/Myth/GetHostName")}GetHosts(){return
this.httpClient.get("/Myth/GetHosts")}GetKeys(){return
this.httpClient.get("/Myth/GetKeys")}GetSetting(e){let n=(new
ye).set("HostName"
,e.HostName).set("Key",e.Key).set("Default",e.Default?e.Default:"");return
this.httpClient.get("/Myth/GetSetting",{params:n})}GetSettingList(e){let n=(new
ye).set("HostName",e);return
this.httpClient.get("/Myth/GetSettingList",{params:n})}GetStorageGroupDirs(e){return
void 0===e||void 0===e.GroupName&&void
0===e.HostName?this.httpClient.get("/Myth/GetStorageGroupDirs"):this.httpClient.post("/Myth/GetStorageGroupDirs",e)}GetDirListing(e){let
n=(new ye).set("DirName",e);return
this.httpClient.get("/Myth/GetDirListing",{params:n})}GetTimeZone(){return
this.httpClient.get("/Myth/GetTimeZone")}ManageDigestUser(e){return
this.httpClient.post("/Myth/ManageDigestUser",e)}ManageUrlProtection(e){return
this.httpClient.post("/Myth/ManageUrlProtection",e)}ProfileDelete(){return
this.httpClient.post("/Myth/ProfileDelete",{body:void 0})}ProfileSubmit(){return
this.httpClient.post("/Myth/ProfileSubmit",{body:void 0})}ProfileText(){return
this.httpClient.get("/Myth/ProfileText")}ProfileURL(){return
this.httpClient.get("/Myth/ProfileURL")}ProfileUpdated(){return
this.httpClient.get("/Myth/ProfileUpdated")}PutSetting(e){return
this.httpClient.post("/Myth/PutSetting",e)}DeleteSetting(e){return
this.httpClient.post("/Myth/DeleteSetting",e)}RemoveStorageGroupDir(e){return
this.httpClient.post("/Myth/RemoveStorageGroupDir",e)}SetConnectionInfo(e){return
this.httpClient.post("/Myth/SetConnectionInfo",e)}TestDBSettings(e){return
this.httpClient.post("/Myth/TestDBSettings",e)}ManageScheduler(e){return
this.httpClient.post("/Myth/ManageScheduler",e)}Shutdown(e){return
this.httpClient.post("/Myth/Shutdown",e)}}return t.\u0275fac=function(e){return
new(e||t)(K(Bi))},t.\u0275prov=X({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),xd=(()=>{class
t{constructor(e,n){this.configService=e,this.mythService=n,this.m_wizardData={Country:{Code:"",Country:"",NativeCountry:"",Image:""},Language:{Code:"",Language:"",NativeLanguage:"",Image:""},Database:{Host:"localhost",Port:3306,UserName:"myth
tv",Password:"mythtv",Ping:!1,Name:"mythconverg",Type:"QMYSQL",LocalHostName:"my-unique-identifier-goes-here",LocalEnabled:!1,DoTest:!0,WOLEnabled:!1,WOLReconnect:0,WOLRetry:0,WOLCommand:""},DatabaseStatus:{DatabaseStatus:{Host:"",Port:0,UserName:"",Password:"",Ping:!1,Name:"",Type:"",LocalHostName:"",LocalEnabled:!1,Connected:!1,HaveDatabase:!1,SchemaVersion:0,WOLEnabled:!1,WOLReconnect:0,WOLRetry:0,WOLCommand:""}}},this.m_topElement=null,this.m_hostName="",this.m_languageSetting="",this.m_languages=[],this.m_countrySetting="",this.m_countries=[],this.fullMenu=[],this.dbSetupMenu=[],this.wizardItems=[],this.mythService.GetHostName().subscribe(s=>{this.m_hostName=s.String})}ngOnInit(){}Init(){this.initDatabaseStatus(),this.initLanguages()}getWizardData(){return
this.Init(),this.m_wizardData}initDatabaseStatus(){this.dbPromise=new
Promise((e,n)=>{this.configService.GetDatabaseStatus().subscribe(s=>{this.m_wizardData.DatabaseStatus=s,this.m_wizardData.Database.Host=s.DatabaseStatus.Ho
st,this.m_wizardData.Database.Port=s.DatabaseStatus.Port,this.m_wizardData.Database.UserName=s.DatabaseStatus.UserName,this.m_wizardData.Database.Password=s.DatabaseStatus.Password,this.m_wizardData.Database.Name=s.DatabaseStatus.Name,this.m_wizardData.Database.LocalEnabled=s.DatabaseStatus.LocalEnabled,this.m_wizardData.Database.LocalHostName=s.DatabaseStatus.LocalHostName,this.m_wizardData.Database.WOLEnabled=s.DatabaseStatus.WOLEnabled,this.m_wizardData.Database.WOLReconnect=s.DatabaseStatus.WOLReconnect,this.m_wizardData.Database.WOLRetry=s.DatabaseStatus.WOLRetry,this.m_wizardData.Database.WOLCommand=s.DatabaseStatus.WOLCommand,e(!0)},s=>{console.log("Failed
to get database
status",s.statusText),n(!0)})})}initLanguages(){this.configService.GetCountries().subscribe(e=>{this.m_countries=e.CountryList.Countries,this.initCountry()}),this.configService.GetLanguages().subscribe(e=>{this.m_languages=e.LanguageList.Languages,this.initLanguage()})}initCountry(){this.mythService.GetSetti
ng({HostName:"_GLOBAL_",Key:"Country",Default:"US"}).subscribe(e=>{this.m_wizardData.Country=this.findCountryByCode(e.String)})}findCountryByCode(e){for(var
n=0;n<this.m_countries.length;n++)if(this.m_countries[n].Code===e)return
this.m_countries[n];return
this.m_countries[0]}initLanguage(){this.mythService.GetSetting({HostName:"_GLOBAL_",Key:"Language",Default:"en_US"}).subscribe(e=>{this.m_wizardData.Language=this.findLanguageByCode(e.String)})}findLanguageByCode(e){for(var
n=0;n<this.m_languages.length;n++)if(this.m_languages[n].Code===e)return
this.m_languages[n];return
this.m_languages[0]}updateDatabaseStatus(){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)(K(zo),K(qt))},t.\u0275prov=X({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),Me=(()=>{class
t{constructor(e,n){this.mythService=e,this.translate=n,this.m_hostName="
",this.m_initialized=!1,this.requesterForm=null,this.m_HostAddressData={successCount:0,errorCount:0,thisHostName:this.m_hostName,BackendServerPort:6543,BackendStatusPort:6544,SecurityPin:"0000",AllowConnFromAll:!1,ListenOnAllIps:!0,BackendServerIP:"127.0.0.1",BackendServerIP6:"::1",AllowLinkLocal:!0,BackendServerAddr:"",IsMasterBackend:!0,MasterServerName:this.m_hostName},this.HostAddressObs={next:s=>{s.bool?this.m_HostAddressData.successCount++:(this.m_HostAddressData.errorCount++,this.requesterForm&&this.requesterForm.form.markAsDirty())},error:s=>{console.error(s),this.m_HostAddressData.errorCount++,this.requesterForm&&this.requesterForm.form.markAsDirty()}},this.JobQCommandsObs={next:s=>{s.bool?this.m_JobQCommands.successCount++:(this.m_JobQCommands.errorCount++,this.requesterForm&&this.requesterForm.form.markAsDirty())},error:s=>{console.error(s),this.m_JobQCommands.errorCount++,this.requesterForm&&this.requesterForm.form.markAsDirty()}},this.currentForm=null,this.schedulingEna
bled=!0,this.isDatabaseIgnored=!1,this.DBTimezoneSupport=!1,this.WebOnlyStartup="",this.pageType=""}Init(){this.m_initialized=!0}getHostAddressData(){return
this.mythService.GetHostName().subscribe({next:e=>{this.m_hostName=e.String,this.m_HostAddressData.thisHostName=this.m_hostName,this.m_HostAddressData.MasterServerName=this.m_hostName,this.getHostSettings()},error:()=>this.m_HostAddressData.errorCount++}),this.m_HostAddressData}getHostSettings(){this.mythService.GetSetting({HostName:this.m_hostName,Key:"BackendServerPort",Default:"6543"}).subscribe({next:e=>this.m_HostAddressData.BackendServerPort=Number(e.String),error:()=>this.m_HostAddressData.errorCount++}),this.mythService.GetSetting({HostName:this.m_hostName,Key:"BackendStatusPort",Default:"6544"}).subscribe({next:e=>this.m_HostAddressData.BackendStatusPort=Number(e.String),error:()=>this.m_HostAddressData.errorCount++}),this.mythService.GetSetting({HostName:this.m_hostName,Key:"SecurityPin",Default:"0000"}).subscribe({nex
t:e=>this.m_HostAddressData.SecurityPin=e.String,error:()=>this.m_HostAddressData.errorCount++}),this.mythService.GetSetting({HostName:this.m_hostName,Key:"AllowConnFromAll",Default:"0"}).subscribe({next:e=>this.m_HostAddressData.AllowConnFromAll="1"==e.String,error:()=>this.m_HostAddressData.errorCount++}),this.mythService.GetSetting({HostName:this.m_hostName,Key:"ListenOnAllIps",Default:"1"}).subscribe({next:e=>this.m_HostAddressData.ListenOnAllIps="1"==e.String,error:()=>this.m_HostAddressData.errorCount++}),this.mythService.GetSetting({HostName:this.m_hostName,Key:"BackendServerIP"}).subscribe({next:e=>this.m_HostAddressData.BackendServerIP=e.String,error:()=>this.m_HostAddressData.errorCount++}),this.mythService.GetSetting({HostName:this.m_hostName,Key:"BackendServerIP6"}).subscribe({next:e=>this.m_HostAddressData.BackendServerIP6=e.String,error:()=>this.m_HostAddressData.errorCount++}),this.mythService.GetSetting({HostName:this.m_hostName,Key:"UseLinkLocal"}).subscribe({next:e
=>this.m_HostAddressData.AllowLinkLocal="1"==e.String,error:()=>this.m_HostAddressData.errorCount++}),this.mythService.GetSetting({HostName:this.m_hostName,Key:"BackendServerAddr"}).subscribe({next:e=>this.m_HostAddressData.BackendServerAddr=e.String,error:()=>this.m_HostAddressData.errorCount++}),this.mythService.GetSetting({HostName:"_GLOBAL_",Key:"MasterServerName",Default:this.m_hostName}).subscribe({next:e=>{this.m_HostAddressData.MasterServerName=e.String,this.m_HostAddressData.IsMasterBackend=this.m_HostAddressData.MasterServerName==this.m_hostName},error:()=>this.m_HostAddressData.errorCount++})}saveHostAddressData(e){this.requesterForm=e,this.m_HostAddressData.successCount=0,this.m_HostAddressData.errorCount=0,this.mythService.PutSetting({HostName:this.m_hostName,Key:"BackendServerPort",Value:String(this.m_HostAddressData.BackendServerPort)}).subscribe(this.HostAddressObs),this.mythService.PutSetting({HostName:this.m_hostName,Key:"BackendStatusPort",Value:String(this.m_Host
AddressData.BackendStatusPort)}).subscribe(this.HostAddressObs),this.mythService.PutSetting({HostName:this.m_hostName,Key:"SecurityPin",Value:this.m_HostAddressData.SecurityPin}).subscribe(this.HostAddressObs),this.mythService.PutSetting({HostName:this.m_hostName,Key:"AllowConnFromAll",Value:this.m_HostAddressData.AllowConnFromAll?"1":"0"}).subscribe(this.HostAddressObs),this.mythService.PutSetting({HostName:this.m_hostName,Key:"ListenOnAllIps",Value:this.m_HostAddressData.ListenOnAllIps?"1":"0"}).subscribe(this.HostAddressObs),this.mythService.PutSetting({HostName:this.m_hostName,Key:"BackendServerIP",Value:this.m_HostAddressData.BackendServerIP}).subscribe(this.HostAddressObs),this.mythService.PutSetting({HostName:this.m_hostName,Key:"BackendServerIP6",Value:this.m_HostAddressData.BackendServerIP6}).subscribe(this.HostAddressObs),this.mythService.PutSetting({HostName:this.m_hostName,Key:"AllowLinkLocal",Value:this.m_HostAddressData.AllowLinkLocal?"1":"0"}).subscribe(this.HostAddre
ssObs),this.mythService.PutSetting({HostName:this.m_hostName,Key:"BackendServerAddr",Value:this.m_HostAddressData.BackendServerAddr}).subscribe(this.HostAddressObs),this.mythService.PutSetting({HostName:"_GLOBAL_",Key:"MasterServerName",Value:this.m_HostAddressData.MasterServerName}).subscribe(this.HostAddressObs)}getLocaleData(){return
this.m_LocaleData={successCount:0,errorCount:0,TVFormat:"PAL",VbiFormat:"None",FreqTable:"us-bcast"},this.mythService.GetSetting({HostName:"_GLOBAL_",Key:"TVFormat"}).subscribe({next:e=>this.m_LocaleData.TVFormat=e.String,error:()=>this.m_LocaleData.errorCount++}),this.mythService.GetSetting({HostName:"_GLOBAL_",Key:"VbiFormat"}).subscribe({next:e=>this.m_LocaleData.VbiFormat=e.String,error:()=>this.m_LocaleData.errorCount++}),this.mythService.GetSetting({HostName:"_GLOBAL_",Key:"FreqTable"}).subscribe({next:e=>this.m_LocaleData.FreqTable=e.String,error:()=>this.m_LocaleData.errorCount++}),this.m_LocaleData}getSetupData(){return
this.getHostAddressDa
ta(),this.getLocaleData(),this.m_setupData={General:{HostAddress:this.m_HostAddressData,Locale:this.m_LocaleData}},this.m_setupData}parseTime(e,n){let
s=n.split(":");e.setHours(Number(s[0])),e.setMinutes(Number(s[1]))}formatTime(e){let
n=e.getHours(),s=e.getMinutes(),r="";return
n<10&&(r+="0"),r+=String(n),r+=":",s<10&&(r+="0"),r+=String(s),r}getJobQCommands(){if("object"==typeof
this.m_JobQCommands)return
this.m_JobQCommands;this.m_JobQCommands={successCount:0,errorCount:0,UserJobDesc:[],UserJob:[]};for(let
e=0;e<4;e++){let
n=e+1;this.translate.get("settings.services.job_default",{num:n}).subscribe(s=>this.m_JobQCommands.UserJobDesc[e]=s),this.mythService.GetSetting({HostName:"_GLOBAL_",Key:"UserJobDesc"+n,Default:""}).subscribe({next:s=>{s.String&&s.String.length>0&&(this.m_JobQCommands.UserJobDesc[e]=s.String)},error:()=>this.m_JobQCommands.errorCount++}),this.mythService.GetSetting({HostName:"_GLOBAL_",Key:"UserJob"+n,Default:""}).subscribe({next:s=>this.m_JobQCommands.UserJob[e
]=s.String,error:()=>this.m_JobQCommands.errorCount++})}return
this.m_JobQCommands}saveJobQCommands(e){this.requesterForm=e,this.m_JobQCommands.successCount=0,this.m_JobQCommands.errorCount=0;for(let
n=0;n<4;n++){let
s=n+1;this.mythService.PutSetting({HostName:"_GLOBAL_",Key:"UserJobDesc"+s,Value:this.m_JobQCommands.UserJobDesc[n]}).subscribe(this.JobQCommandsObs),this.mythService.PutSetting({HostName:"_GLOBAL_",Key:"UserJob"+s,Value:this.m_JobQCommands.UserJob[n]}).subscribe(this.JobQCommandsObs)}}getCurrentForm(){return
this.currentForm}setCurrentForm(e){this.currentForm=e}}return
t.\u0275fac=function(e){return
new(e||t)(K(qt),K(Oe))},t.\u0275prov=X({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),jo=(()=>{class
t{constructor(e){this.httpClient=e}AddDontRecordSchedule(e){return
this.httpClient.post("/Dvr/AddDontRecordSchedule",e)}AddRecordSchedule(e){return
this.httpClient.post("/Dvr/AddRecordSchedule",e)}UpdateRecordSchedule(e){return
this.httpClient.post("/Dvr/UpdateRecord
Schedule",e)}RemoveRecordSchedule(e){return
this.httpClient.post("/Dvr/RemoveRecordSchedule",{RecordId:e})}AddRecordedCredits(e){return
this.httpClient.post("/Dvr/AddRecordedCredits",e)}AddRecordedProgram(e){return
this.httpClient.post("/Dvr/AddRecordedProgram",e)}AllowReRecord(e){return
this.httpClient.post("/Dvr/AllowReRecord",{RecordedId:e})}DeleteRecording(e){return
this.httpClient.post("/Dvr/DeleteRecording",e)}UnDeleteRecording(e){return
this.httpClient.post("/Dvr/UnDeleteRecording",e)}UpdateRecordedMetadata(e){return
this.httpClient.post("/Dvr/UpdateRecordedMetadata",e)}DisableRecordSchedule(e){return
this.httpClient.post("/Dvr/DisableRecordSchedule",{RecordId:e})}DupInToDescription(e){let
n=(new ye).set("DupIn",e);return
this.httpClient.get("/Dvr/DupInToDescription",{params:n})}DupInToString(e){let
n=(new ye).set("DupIn",e);return
this.httpClient.get("/Dvr/DupInToString",{params:n})}DupMethodToDescription(e){let
n=(new ye).set("DupMethod",e);return this.httpClient.get("/Dvr/
DupMethodToDescription",{params:n})}DupMethodToString(e){let n=(new
ye).set("DupMethod",e);return
this.httpClient.get("/Dvr/DupMethodToString",{params:n})}EnableRecordSchedule(e){return
this.httpClient.post("/Dvr/EnableRecordSchedule",e)}GetConflictList(e){let
n=(new
ye).set("StartIndex",e.StartIndex).set("Count",e.Count).set("RecordId",e.RecordId);return
this.httpClient.get("/Dvr/GetConflictList",{params:n})}GetEncoderList(){return
this.httpClient.get("/Dvr/GetEncoderList")}GetExpiringList(e){let n=(new
ye).set("StartIndex",e.StartIndex).set("Count",e.Count);return
this.httpClient.get("/Dvr/GetExpiringList",{params:n})}GetInputList(){return
this.httpClient.get("/Dvr/GetInputList")}GetLastPlayPos(e){let n=(new
ye).set("RecordedId",e.RecordedId).set("ChanId",e.ChanId).set("StartTime",e.StartTime).set("OffsetType",e.OffsetType);return
this.httpClient.get("/Dvr/GetLastPlayPos",{params:n})}GetOldRecordedList(e){let
n=(new
ye).set("Descending",e.Descending).set("StartIndex",e.StartIndex)
.set("Count",e.Count).set("StartTime",e.StartTime).set("EndTime",e.EndTime).set("Title",e.Title).set("SeriesId",e.SeriesId).set("RecordId",e.RecordId).set("Sort",e.Sort);return
this.httpClient.get("/Dvr/GetOldRecordedList",{params:n})}GetPlayGroupList(){return
this.httpClient.get("/Dvr/GetPlayGroupList")}GetProgramCategories(e){return(new
ye).set("OnlyRecorded",e),this.httpClient.get("/Dvr/GetProgramCategories")}GetRecGroupList(){return
this.httpClient.get("/Dvr/GetRecGroupList")}GetRecRuleFilterList(){return
this.httpClient.get("/Dvr/GetRecRuleFilterList")}GetRecStorageGroupList(){return
this.httpClient.get("/Dvr/GetRecStorageGroupList")}GetRecordSchedule(e){let
n=new ye;for(const[s,r]of Object.entries(e))n=n.set(s,r);return
this.httpClient.get("/Dvr/GetRecordSchedule",{params:n})}GetRecordScheduleList(e){let
n=new ye;for(const[s,r]of Object.entries(e))n=n.set(s,r);return
this.httpClient.get("/Dvr/GetRecordScheduleList",{params:n})}GetRecorded(e){let
n=new ye;for(const[s,r]of Objec
t.entries(e))n=n.set(s,r);return
this.httpClient.get("/Dvr/GetRecorded",{params:n})}GetRecordedList(e){let n=new
ye;for(const[s,r]of Object.entries(e))n=n.set(s,r);return
this.httpClient.get("/Dvr/GetRecordedList",{params:n})}GetUpcomingList(e){let
n=new ye;for(const[s,r]of Object.entries(e))n=n.set(s,r);return
this.httpClient.get("/Dvr/GetUpcomingList",{params:n})}RecStatusToString(e){let
n=(new ye).set("RecStatus",e);return
this.httpClient.get("/Dvr/RecStatusToString",{params:n})}ManageJobQueue(e){return
this.httpClient.post("/Dvr/ManageJobQueue",e)}StopRecording(e){return
this.httpClient.post("/Dvr/StopRecording",{RecordedId:e})}}return
t.\u0275fac=function(e){return
new(e||t)(K(Bi))},t.\u0275prov=X({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();function
rW(t,i){if(1&t&&(l(0,"div",9),k(1,"p-message",10),m(2,"translate"),c()),2&t){const
e=d();a(1),x("text",f(2,2,"settings.main.webonly."+e.setupService.WebOnlyStartup)),p("styleClass","font-bold")}}function
oW(t,i){1&t&&(k(0
,"p-message",10),m(1,"translate")),2&t&&(x("text",f(1,2,"settings.main.mustenable")),p("styleClass","font-bold"))}function
aW(t,i){1&t&&(k(0,"p-message",10),m(1,"translate")),2&t&&(x("text",f(1,2,"settings.main.mustrestart")),p("styleClass","font-bold"))}function
lW(t,i){if(1&t&&(l(0,"div",9),_(1,oW,2,4,"p-message",11),_(2,aW,2,4,"ng-template",null,12,we),c()),2&t){const
e=F(3),n=d();a(1),p("ngIf",n.setupService.schedulingEnabled)("ngIfElse",e)}}function
cW(t,i){if(1&t){const
e=I();l(0,"div",13)(1,"div",14)(2,"p-button",15),C("onClick",function(){return
v(e),d().disableSched()}),m(3,"translate"),c()(),l(4,"div",14),g(5),m(6,"translate"),c()()}2&t&&(a(2),x("label",f(3,2,"settings.main.enableupdates_label")),a(3),S(f(6,4,"settings.main.enableupdates_desc")))}function
uW(t,i){1&t&&(l(0,"div",14)(1,"div",17),g(2),m(3,"translate"),c()()),2&t&&(a(2),S(f(3,1,"settings.main.restart_desc")))}function
dW(t,i){1&t&&(l(0,"div",14),g(1),m(2,"translate"),c()),2&t&&(a(1),T("
",f(2,1,"settings.main
.slave_enabled"),""))}function pW(t,i){if(1&t){const
e=I();l(0,"div",13)(1,"div",14)(2,"p-button",15),C("onClick",function(){return
v(e),d().restart()}),m(3,"translate"),c()(),_(4,uW,4,3,"div",16),_(5,dW,3,3,"div",16),c()}if(2&t){const
e=d();a(2),x("label",f(3,3,"WEBONLYPARM"==e.setupService.WebOnlyStartup?"settings.main.shutdown_label":"settings.main.restart_label")),a(2),p("ngIf",!e.masterServerName||!e.hostName||e.masterServerName==e.hostName),a(1),p("ngIf",e.masterServerName&&e.hostName&&e.masterServerName!=e.hostName)}}const
hW=function(t,i,e){return{Title:t,StartTime:i,Status:e}};function
mW(t,i){if(1&t&&(l(0,"small",18),g(1),m(2,"translate"),c()),2&t){const
e=d();a(1),T("
",Dt(2,1,"settings.main.upcomingrec",Qt(4,hW,e.upComing[0].Title,e.recStartTime,e.recStatusDesc)),"
")}}function
fW(t,i){1&t&&(l(0,"div")(1,"p"),g(2),m(3,"translate"),c(),l(4,"p"),g(5),m(6,"translate"),c()()),2&t&&(a(2),T("",f(3,2,"settings.main.slave_instructions"),"
"),a(3),T("",f(6,4,"settings.main.slave_
warning")," "))}function
gW(t,i){1&t&&k(0,"p-progressSpinner")}function
_W(t,i){1&t&&(k(0,"p-message",19),m(1,"translate")),2&t&&x("text",f(1,1,"settings.main.restarting"))}function
bW(t,i){1&t&&(k(0,"p-message",20),m(1,"translate")),2&t&&x("text",f(1,1,"common.networkfail"))}let
vW=(()=>{class
t{constructor(e,n,s,r,o,u){this.mythService=e,this.setupService=n,this.dvrService=s,this.wizardService=r,this.messageService=o,this.translate=u,this.errorCount=0,this.retryCount=0,this.upComing=[],this.recStatusDesc="",this.recStartTime="",this.ready=!1,this.delay=0,this.busy=!1,this.hostName="",this.masterServerName="",this.getBackendInfo(),this.refreshInfo()}refreshInfo(){setTimeout(()=>{this.getBackendInfo(),this.refreshInfo()},12e4)}getBackendInfo(){0==this.retryCount&&(this.errorCount=0),this.ready=!1,this.recStatusDesc="",this.recStartTime="",this.upComing=[],this.mythService.GetHostName().subscribe({next:e=>{this.hostName=e.String,this.mythService.GetSetting({HostName:"_GLOBAL_",Key:"M
asterServerName",Default:this.hostName}).subscribe({next:n=>{this.masterServerName=n.String},error:()=>this.errorCount++})},error:()=>this.errorCount++}),this.mythService.GetBackendInfo().subscribe({next:e=>{this.setupService.schedulingEnabled=e.BackendInfo.Env.SchedulingEnabled,this.setupService.isDatabaseIgnored=e.BackendInfo.Env.IsDatabaseIgnored,this.setupService.DBTimezoneSupport=e.BackendInfo.Env.DBTimezoneSupport,this.setupService.WebOnlyStartup=e.BackendInfo.Env.WebOnlyStartup,this.wizardService.wizardItems=this.setupService.isDatabaseIgnored?this.wizardService.dbSetupMenu:this.wizardService.fullMenu,this.wizardService.getWizardData(),this.retryCount>0&&this.errorCount>0?(this.retryCount=0,this.errorCount=0):this.retryCount>0&&0==this.errorCount&&setTimeout(()=>this.getBackendInfo(),2e3),0==this.retryCount&&(setTimeout(()=>this.getUpcoming(),this.delay),this.delay=0)},error:()=>{this.setupService.schedulingEnabled=!0,this.errorCount++,this.errorCount<this.retryCount?setTimeo
ut(()=>this.getBackendInfo(),2e3):this.retryCount=0}})}getUpcoming(){this.errorCount=0,this.dvrService.GetUpcomingList({Count:1}).subscribe({next:e=>{if(this.upComing=e.ProgramList.Programs,this.ready=!0,this.upComing.length>0){this.dvrService.RecStatusToString(this.upComing[0].Recording.Status).subscribe({next:s=>this.recStatusDesc=s.String,error:()=>this.errorCount++});var
n=new
Date(this.upComing[0].Recording.StartTs);this.recStartTime=n.toLocaleString()}},error:()=>this.errorCount++})}disableSched(){this.mythService.ManageScheduler({Disable:!0}).subscribe({next:e=>this.getBackendInfo(),error:()=>this.errorCount++})}restart(){let
e="WEBONLYPARM"!=this.setupService.WebOnlyStartup;this.mythService.Shutdown({Restart:e}).subscribe({next:n=>{n.bool?(this.retryCount=e?30:9999,this.getBackendInfo()):this.errorCount++},error:()=>this.errorCount++}),this.delay=5e3}ngOnInit(){}}return
t.\u0275fac=function(e){return
new(e||t)(D(qt),D(Me),D(jo),D(xd),D(Gi),D(Oe))},t.\u0275cmp=z({type:t,selec
tors:[["app-backend-warning"]],features:[Pe([Gi])],decls:15,vars:9,consts:[[1,"block","card","w-full"],[1,"block"],[1,"m-5"],["class","flex
mb-3",4,"ngIf"],["class","flex",4,"ngIf"],["class","pb-0
m-0",4,"ngIf"],[4,"ngIf"],["severity","info",3,"text",4,"ngIf"],["severity","error",3,"text",4,"ngIf"],[1,"flex","mb-3"],["severity","warn",3,"styleClass","text"],["severity","warn",3,"styleClass","text",4,"ngIf","ngIfElse"],["mustrestart",""],[1,"flex"],[1,"flex","align-items-center"],["icon","pi
pi-save","iconPos","left",1,"pr-5","pb-1","pt-0","m-0",3,"label","onClick"],["class","flex
align-items-center",4,"ngIf"],[1,"text-pink-500"],[1,"pb-0","m-0"],["severity","info",3,"text"],["severity","error",3,"text"]],template:function(e,n){1&e&&(l(0,"div",0)(1,"div",1)(2,"p-card",2),_(3,rW,3,4,"div",3),_(4,lW,4,2,"div",3),_(5,cW,7,6,"div",4),_(6,pW,6,5,"div",4),l(7,"div"),_(8,mW,3,8,"small",5),c(),_(9,fW,7,6,"div",6),l(10,"div"),_(11,gW,1,0,"p-progressSpinner",6),_(12,_W,2,3,"p-message",7),l(13,
"p"),_(14,bW,2,3,"p-message",8),c()()()()()),2&e&&(a(3),p("ngIf",0==n.retryCount&&"NONE"!=n.setupService.WebOnlyStartup),a(1),p("ngIf",0==n.retryCount),a(1),p("ngIf",n.setupService.schedulingEnabled&&0==n.retryCount),a(1),p("ngIf",!n.setupService.schedulingEnabled&&0==n.retryCount),a(2),p("ngIf",n.upComing.length>0),a(1),p("ngIf",n.masterServerName&&n.hostName&&n.masterServerName!=n.hostName&&0==n.retryCount),a(2),p("ngIf",n.retryCount>0),a(1),p("ngIf",n.retryCount>0),a(2),p("ngIf",!n.setupService.isDatabaseIgnored&&n.errorCount>0&&0==n.retryCount))},directives:[Ne,Q,qe,ve,Go],pipes:[ce],styles:[""]}),t})();const
CW=["top"];let rS=(()=>{class
t{constructor(e,n,s){this.wizardService=e,this.setupService=n,this.translate=s,this.fullMenu=[],this.dbSetupMenu=[],this.activeIndex=0,n.pageType="S"}ngOnInit(){this.translate.get("setupwizard.steps.selectlanguage").subscribe(e=>{this.fullMenu=[{label:this.translate.instant("setupwizard.steps.dbsetup"),routerLink:"dbsetup"},{label:this.translat
e.instant("setupwizard.steps.selectlanguage"),routerLink:"selectlanguage"},{label:this.translate.instant("setupwizard.steps.general"),routerLink:"general"},{label:this.translate.instant("setupwizard.steps.capture_cards"),routerLink:"capture-cards"},{label:this.translate.instant("setupwizard.steps.recording_profiles"),routerLink:"recording-profiles"},{label:this.translate.instant("setupwizard.steps.video_sources"),routerLink:"video-sources"},{label:this.translate.instant("setupwizard.steps.input_connections"),routerLink:"input-connections"},{label:this.translate.instant("setupwizard.steps.channel_editor"),routerLink:"channel-editor"},{label:this.translate.instant("setupwizard.steps.storage_groups"),routerLink:"storage-groups"},{label:this.translate.instant("setupwizard.steps.system_events"),routerLink:"system-events"}],this.wizardService.fullMenu=this.fullMenu,this.activeItem=this.fullMenu[0],this.dbSetupMenu=[this.fullMenu[0]],this.wizardService.dbSetupMenu=this.dbSetupMenu,this.wiz
ardService.wizardItems=this.wizardService.fullMenu})}ngAfterViewInit(){this.wizardService.m_topElement=this.topElement}}return
t.\u0275fac=function(e){return
new(e||t)(D(xd),D(Me),D(Oe))},t.\u0275cmp=z({type:t,selectors:[["app-settings"]],viewQuery:function(e,n){if(1&e&&W(CW,5),2&e){let
s;V(s=B())&&(n.topElement=s.first)}},decls:17,vars:12,consts:[["top",""],[1,"content-section","implementation"],[1,"card"],[1,"flex","flex-row"],["pButton","","pRipple","","icon","pi
pi-angle-double-left",1,"p-button-text","p-button-primary",3,"pTooltip","click"],[1,"col-11"],[3,"model","activeItem","scrollable"],["menu",""],["pButton","","pRipple","","icon","pi
pi-angle-double-right",1,"p-button-text","p-button-primary",3,"pTooltip","click"]],template:function(e,n){if(1&e){const
s=I();k(0,"span",null,0),l(2,"div",1)(3,"h1"),g(4),m(5,"translate"),c(),l(6,"div",2)(7,"div",3)(8,"button",4),C("click",function(){return
v(s),F(12).navBackward()}),m(9,"translate"),c(),l(10,"div",5),k(11,"p-tabMenu",6,7),c(
),l(13,"button",8),C("click",function(){return
v(s),F(12).navForward()}),m(14,"translate"),c()()(),k(15,"app-backend-warning")(16,"router-outlet"),c()}2&e&&(a(4),S(f(5,6,"settings.main.title")),a(4),x("pTooltip",f(9,8,"dashboard.scrolltabsleft")),a(3),p("model",n.wizardService.wizardItems)("activeItem",n.activeItem)("scrollable",!1),a(2),x("pTooltip",f(14,10,"dashboard.scrolltabsright")))},directives:[On,bt,Kt,J2,vW,Ml],pipes:[ce],styles:['.warning[_ngcontent-%COMP%]{color:#cc8925;background-color:#fff2e2}.connected[_ngcontent-%COMP%]{color:#1ea97c;background-color:#e4f8f0}.medium-width[_ngcontent-%COMP%]{width:"600"}']}),t})();function
yW(t,i){if(1&t){const
e=I();l(0,"div"),k(1,"h1"),l(2,"div",1)(3,"button",2),C("click",function(){return
v(e),F(7).navBackward()}),m(4,"translate"),c(),l(5,"div",3),k(6,"p-tabMenu",4,5),c(),l(8,"button",6),C("click",function(){return
v(e),F(7).navForward()}),m(9,"translate"),c()(),k(10,"router-outlet"),c()}if(2&t){const
e=d();a(3),x("pTooltip",f(4,5,"
dashboard.scrolltabsleft")),a(3),p("model",e.fullMenu)("activeItem",e.activeItem)("scrollable",!1),a(2),x("pTooltip",f(9,7,"dashboard.scrolltabsright"))}}let
oS=(()=>{class
t{constructor(e,n){this.translate=e,this.setupService=n,this.translateDone=!1,this.fullMenu=[{label:"dashboard.backendStatus",routerLink:"status"},{label:"dashboard.channeleditor",routerLink:"channel-editor"},{label:"dashboard.programguide",routerLink:"program-guide"},{label:"dashboard.recordings.heading",routerLink:"recordings"},{label:"dashboard.upcoming.heading",routerLink:"upcoming"},{label:"dashboard.recrules.heading",routerLink:"recrules"},{label:"dashboard.videos.heading",routerLink:"videos"}],this.activeItem=this.fullMenu[0],n.pageType="D",this.fullMenu.forEach(s=>{s.label&&this.translate.get(s.label).subscribe(r=>{s.label=r,this.translateDone=!0})})}ngOnInit(){}}return
t.\u0275fac=function(e){return
new(e||t)(D(Oe),D(Me))},t.\u0275cmp=z({type:t,selectors:[["app-dashboard"]],decls:1,vars:1,consts:[[4,"ngI
f"],[1,"flex","flex-row"],["pButton","","pRipple","","icon","pi
pi-angle-double-left",1,"p-button-text","p-button-primary",3,"pTooltip","click"],[1,"col-11"],[3,"model","activeItem","scrollable"],["menu",""],["pButton","","pRipple","","icon","pi
pi-angle-double-right",1,"p-button-text","p-button-primary",3,"pTooltip","click"]],template:function(e,n){1&e&&_(0,yW,11,9,"div",0),2&e&&p("ngIf",n.translateDone)},directives:[Q,On,bt,Kt,J2,Ml],pipes:[ce],styles:["[_nghost-%COMP%]
.dark-panel.p-panel
.p-panel-header{background:#c0c0c0}"]}),t})(),ji=(()=>{class
t{constructor(){}canDeactivate(e,n,s,r){return!e.canDeactivate||e.canDeactivate()}}return
t.\u0275fac=function(e){return
new(e||t)},t.\u0275prov=X({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();const
wW=[{path:"dashboard",component:oS},{path:"setupwizard",component:rS}];let
TW=(()=>{class t{}return t.\u0275fac=function(e){return
new(e||t)},t.\u0275mod=he({type:t}),t.\u0275inj=ue({providers:[ji],imports:[[vn.forRoot(wW)],vn]
}),t})(),SW=(()=>{class
t{constructor(e,n){this.http=e,this.document=n}switchTheme(e){let
n=this.document.getElementById("app-theme");n&&(n.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)(K(Bi),K(Xt))},t.\u0275prov=X({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),Ll=(()=>{class
t{constructor(e){this.translate=e,this.m_showSidebar=!0,this.recStatusText={Pending:"",Failing:"",MissedFuture:"",Tuning:"",Failed:"",TunerBusy:"",LowDiskSpace:"",Cancelled:"",Missed:"",Aborted:"",Recorded:"",Recording:"",WillRecord:"",Unknown:"",DontRecord:"",PreviousRecording:"",CurrentRecording:"",EarlierShowing:"",TooManyRecordings:"",NotListed:"",Conflict:"",LaterShowing:"",Repeat:"",Inactive:"",NeverRecord:"",Offline:""},this.getTranslations()}getTranslations(){for(const[e,n]of
Object.entries(this.recStatusText))this.translate.get("data.recstatus."+e).subscribe(s=>{Objec
t.defineProperty(this.recStatusText,e,{value:s})})}toggleShowSidebar(){this.m_showSidebar=!this.m_showSidebar}showSidebar(e){this.m_showSidebar=e}}return
t.\u0275fac=function(e){return
new(e||t)(K(Oe))},t.\u0275prov=X({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();function
xW(t,i){if(1&t&&(l(0,"div"),k(1,"img",26),c()),2&t){const
e=d(2);a(1),Bn("src","images/themes/",e.m_selectedTheme.Image,"",ln)}}function
DW(t,i){if(1&t&&(l(0,"div"),k(1,"img",27),c()),2&t){const
e=d(2);a(1),Bn("src","images/locale/",e.m_selectedLanguage.Image,"",ln)}}function
MW(t,i){if(1&t){const
e=I();l(0,"div",7)(1,"div",8)(2,"a",9),C("click",function(){return
v(e),d().toggleShowSidebar()}),k(3,"i",10)(4,"span",11),c(),k(5,"img",12),l(6,"div",13)(7,"h1"),g(8),m(9,"translate"),c()()(),l(10,"div",14)(11,"button",15),C("click",function(){return
v(e),d().showTopBar=!1}),m(12,"translate"),c()(),l(13,"div",16)(14,"a",17),C("click",function(){return
v(e),d().toggleShowNavbar()}),k(15,"i",18)(16,"span",11),c(),
l(17,"ul",19)(18,"li",20)(19,"a",21),C("click",function(s){return
v(e),d(),F(5).toggle(s)}),m(20,"translate"),_(21,xW,2,1,"div",22),l(22,"span",23),g(23),m(24,"translate"),c(),k(25,"span",24),c()(),l(26,"li",20)(27,"a",25),C("click",function(s){return
v(e),d(),F(8).toggle(s)}),m(28,"translate"),_(29,DW,2,1,"div",22),l(30,"span",23),g(31),m(32,"translate"),c(),k(33,"span",24),c()()()()()}if(2&t){const
e=d();a(8),S(f(9,9,"navbar.mainheading")),a(3),x("pTooltip",f(12,11,"navbar.hide")),a(6),p("hidden",e.m_showNavbar),a(2),x("pTooltip",f(20,13,"navbar.switchTheme")),a(2),p("ngIf",e.m_selectedTheme),a(2),S(f(24,15,"navbar.switchTheme")),a(4),x("pTooltip",f(28,17,"navbar.changeLanguage")),a(2),p("ngIf",e.m_selectedLanguage),a(2),S(f(32,19,"navbar.changeLanguage"))}}function
kW(t,i){if(1&t){const
e=I();l(0,"div",28)(1,"button",29),C("click",function(){return
v(e),d().showTopBar=!0}),m(2,"translate"),c()()}2&t&&(a(1),x("pTooltip",f(2,1,"navbar.show")))}function
IW(t,i){if(1&t&&(l(0,"tr",33)
(1,"td",34)(2,"span",35),g(3),c()()()),2&t){const
e=i.$implicit;a(3),S(e.Category)}}function EW(t,i){if(1&t){const
e=I();l(0,"tr",36),C("click",function(){const r=v(e).$implicit;return
d(2).changeTheme(r)}),l(1,"td",37),k(2,"img",38),c(),l(3,"td"),g(4),c()()}if(2&t){const
n=i.$implicit;p("pSelectableRow",i.$implicit),a(2),Bn("src","images/themes/",n.Image,"",ln),p("alt",n.image),a(2),S(n.Name)}}function
RW(t,i){1&t&&(l(0,"p-table",30),_(1,IW,4,1,"ng-template",31),_(2,EW,5,4,"ng-template",32),c()),2&t&&p("value",d().m_themes$)("paginator",!1)("scrollable",!0)}function
LW(t,i){if(1&t){const
e=I();l(0,"tr",36),C("click",function(){const
r=v(e).$implicit,o=d(2);return
F(8).hide(),o.changeLanguage(r)}),l(1,"td",37),k(2,"img",38),c(),l(3,"td")(4,"pre")(5,"span",40),g(6),c(),k(7,"br"),g(8),c()()()}if(2&t){const
n=i.$implicit;p("pSelectableRow",i.$implicit),a(2),Bn("src","images/locale/",n.Image,"",ln),p("alt",n.image),a(4),S(n.Language),a(2),T("",n.NativeLanguage,"
")}}function OW(t,i){1&t
&&(l(0,"p-table",39),_(1,LW,9,5,"ng-template",32),c()),2&t&&p("value",d().m_languages)("paginator",!1)("scrollable",!0)}const
AW=function(){return{width:"350px"}},PW=function(){return{width:"450px"}};let
FW=(()=>{class
t{constructor(e,n,s,r,o,u,h){this.themeService=e,this.configService=n,this.translateService=s,this.primeconfigService=r,this.dataService=o,this.mythService=u,this.router=h,this.m_showNavbar=!0,this.showTopBar=!0,this.m_devMode=function
KR(){return
ZC=!0,YC}(),this.m_haveDatabase=!0,this.themeService.getThemes().then(b=>{this.m_themes$=b,this.m_selectedTheme=this.findThemeByName(localStorage.getItem("Theme")||"Indigo
Light"),this.themeService.switchTheme(this.m_selectedTheme.CSS)}),this.configService.GetLanguages().subscribe(b=>{this.m_languages=b.LanguageList.Languages,this.m_selectedLanguage=this.findLanguageByCode(localStorage.getItem("Language")||"en_US")}),this.mythService.GetBackendInfo().subscribe(b=>{var
y=this.router.url;b.BackendInfo.Env.IsDatabaseIgnored||!b
.BackendInfo.Env.SchedulingEnabled&&!y.startsWith("/setupwizard/")?h.navigate(["setupwizard/dbsetup"]):"/"==y&&h.navigate(["dashboard/status"])})}ngOnInit(){}findThemeByName(e){for(var
n=0;n<this.m_themes$.length;n++)if(this.m_themes$[n].Name===e)return
this.m_themes$[n];return
this.m_themes$[0]}changeTheme(e){this.m_selectedTheme=e,this.themeService.switchTheme(e.CSS),localStorage.setItem("Theme",this.m_selectedTheme.Name)}findLanguageByCode(e){for(var
n=0;n<this.m_languages.length;n++)if(this.m_languages[n].Code===e)return
this.m_languages[n];return
this.m_languages[0]}changeLanguage(e){console.log("Language changed to
",e.NativeLanguage),this.m_selectedLanguage=e,localStorage.setItem("Language",this.m_selectedLanguage.Code),this.translateService.use(this.m_selectedLanguage.Code),this.translateService.get("primeng").subscribe(n=>this.primeconfigService.setTranslation(n))}toggleShowNavbar(){this.m_showNavbar=!this.m_showNavbar}toggleShowSidebar(){this.dataService.toggleShowSidebar(
)}}return t.\u0275fac=function(e){return
new(e||t)(D(SW),D(zo),D(Oe),D(zn),D(Ll),D(qt),D(It))},t.\u0275cmp=z({type:t,selectors:[["app-navbar"]],decls:10,vars:10,consts:[[1,"flex","flex-column","relative","flex-auto"],["class","toolbar
flex justify-content-between align-items-center pm-8 surface-section relative lg:static
surface-border","style","height:
80px;",4,"ngIf","ngIfElse"],["hidden",""],[3,"showCloseIcon"],["themePanel",""],["pTemplate",""],["languagePanel",""],[1,"toolbar","flex","justify-content-between","align-items-center","pm-8","surface-section","relative","lg:static","surface-border",2,"height","80px"],[1,"toolbar","flex","align-items-left","flex-shrink-0",2,"height","80px"],["pRipple","",1,"p-ripple","p-element","my-3","mx-1","flex","align-items-center","cursor-pointer","p-3","lg:hidden","lg:justify-content-center","hover:bg-gray-800","border-round","text-300","hover:text-0","transition-duration-150","transition-colors",3,"click"],[1,"pi","pi-bars","mr-1","lg:ml-1",
"text-base","lg:text-xl"],["ng","","serve","",1,"p-ink"],["src","images/mythtv.png","alt","Image","height","80",1,"py-2","pl-1"],[1,"hidden","md:inline-flex"],[1,"toolbar","flex","flex-grow-1","align-items-end",2,"height","80px"],["pButton","","pRipple","","icon","pi
pi-angle-up",1,"p-button-text","lg:col-offset-3","p-button-secondary",3,"pTooltip","click"],[1,"pr-2","toolbar",2,"height","80px"],["pRipple","",1,"toolbar","p-ripple","p-element","my-2","mx-2","flex","align-items-center","cursor-pointer","p-3","md:hidden","md:justify-content-center","hover:bg-gray-800","border-round","text-300","hover:text-0","transition-duration-150","transition-colors",2,"height","80px",3,"click"],[1,"pi","pi-ellipsis-v","mr-1","md:mr-0","text-base","md:text-xl"],[1,"toolbar","list-none","p-0","m-0","md:flex","md:align-items-center","select-none","md:flex-row","surface-section","border-1","md:border-none","surface-border","right-0","top-100","z-2","shadow-2","md:shadow-none","absolute","md:static",3,
"hidden"],[1,"toolbar",2,"height","80px"],["pRipple","","tooltipPosition","bottom",1,"p-ripple","p-element","my-3","mx-1","flex","align-items-center","cursor-pointer","p-2","lg:justify-content-center","hover:bg-gray-800","border-round","text-300","hover:text-0","transition-duration-150","transition-colors",3,"pTooltip","click"],[4,"ngIf"],[1,"font-medium","inline","md:hidden"],[1,"p-ink"],["pRipple","","tooltipPosition","bottom",1,"p-ripple","p-element","my-3","mx-1","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,"pTooltip","click"],[1,"mr-2","lg:mr-0",2,"width","32px","height","32px",3,"src"],[1,"mr-2","lg:mr-0",2,"width","32px",3,"src"],[1,"toolbar","block","flex","flex-grow-1","justify-content-center","align-items-end",2,"height","2rem"],["pButton","","pRipple","","icon","pi
pi-angle-down",1,"p-button-text","p-button-secondary",3,"pTooltip",
"click"],["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"],["selectionMode","single","sortField","NativeLanguage","sortMode","single","scrollHeight","500px","responsiveLayout","scroll",3,"value","paginator","scrollable"],[1,"font-bold"]],template:function(e,n){if(1&e&&(l(0,"div",0),_(1,MW,34,21,"div",1),_(2,kW,3,3,"ng-template",null,2,we),c(),l(4,"p-overlayPanel",3,4),_(6,RW,3,3,"ng-template",5),c(),l(7,"p-overlayPanel",3,6),_(9,OW,2,3,"ng-template",5),c()),2&e){const
s=F(3);a(1),p("ngIf",n.showTopBar)("ngIfElse",s),a(3),q(A(8,AW)),p("showCloseIcon",!0),a(3),q(A(9,PW)),p("showCloseIcon",!0)}},directives:[Q,bt,On,Kt,q9,ne,Dn,SU,j2],pipes:[ce
],styles:[".toolbar[_ngcontent-%COMP%]{background-color:#000;color:#4682b4}.theme-image[_ngcontent-%COMP%]{width:50px}"]}),t})(),NW=(()=>{class
t{constructor(e){this.dataService=e}ngOnInit(){}}return t.\u0275fac=function(e){return
new(e||t)(D(Ll))},t.\u0275cmp=z({type:t,selectors:[["app-sidenav"]],decls:32,vars:25,consts:[[1,"navbar","flex","relative","lg:static","surface-ground"],["id","sidebar",1,"bg-gray-900","lg:block","flex-shrink-0","absolute","lg:static","left-0","top-0","z-2","border-gray-800","w-18rem","lg:w-5rem","select-none",3,"hidden"],[1,"flex","flex-column","h-full"],[1,"mt-1","select-none"],[1,"list-none","p-3","lg:py-3","lg:px-2","m-0"],[3,"routerLink","pTooltip","tooltipDisabled","click"],["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"],["pRipple","",1,"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-cog","mr-2","lg:mr-0","text-base","lg:text-xl"],[1,"pi","pi-map","mr-2","lg:mr-0","text-base","lg:text-xl"],[1,"contentarea","px-0","lg:px-3","w-full"]],template:function(e,n){1&e&&(de(0),l(1,"div",0)(2,"div",1)(3,"div",2)(4,"div",3)(5,"ul",4)(6,"li",5),C("click",function(){return
n.dataService.showSidebar(!0)}),m(7,"translate"),l(8,"a",6),k(9,"i",7),l(10,"span",8),g(11),m(12,"translate"),c(),k(13,"span",9),c()(),l(14,"li",5),C("click",function(){return
n.dataService.showSidebar(!0)}),m(15,"translate"),l(16,"a",10),k(17,"i",11),l(18,"span",8),g(19),m(20,"translate"),c(),k(21,"span",9),c()(),l(22,"li",5),C("click",function(){return
n.dataService.showSidebar(!0)}),m(23,"translate"),l(24,"
a",10),k(25,"i",12),l(26,"span",8),g(27),m(28,"translate"),c(),k(29,"span",9),c()()()()()(),l(30,"div",13),k(31,"router-outlet"),c()(),pe()),2&e&&(a(2),p("hidden",n.dataService.m_showSidebar),a(4),x("pTooltip",f(7,13,"navbar.dashboard")),p("routerLink","dashboard/status")("tooltipDisabled",!1===n.dataService.m_showSidebar),a(5),S(f(12,15,"navbar.dashboard")),a(3),x("pTooltip",f(15,17,"navbar.backendSetup")),p("routerLink","setupwizard/dbsetup")("tooltipDisabled",!1===n.dataService.m_showSidebar),a(5),S(f(20,19,"navbar.backendSetup")),a(3),x("pTooltip",f(23,21,"dashboard.programguide")),p("routerLink","dashboard/program-guide")("tooltipDisabled",!1===n.dataService.m_showSidebar),a(5),S(f(28,23,"dashboard.programguide")))},directives:[gd,Kt,bt,Ml],pipes:[ce],styles:[".sidebar[_ngcontent-%COMP%]{width:70px;height:100%;margin:0}.navbar[_ngcontent-%COMP%]{min-height:calc(100vh
- 85px);max-height:calc(100vh -
85px)}.contentarea[_ngcontent-%COMP%]{overflow:scroll;height:calc(100vh - 85px)}
"]}),t})(),VW=(()=>{class
t{constructor(e,n){this.config=e,this.translate=n,this.title="MythTV
Backend",n.setDefaultLang("en_US"),n.use(localStorage.getItem("Language")||"en_US"),n.get("primeng").subscribe(s=>this.config.setTranslation(s)),this.config.ripple=!0}}return
t.\u0275fac=function(e){return
new(e||t)(D(zn),D(Oe))},t.\u0275cmp=z({type:t,selectors:[["app-root"]],decls:2,vars:0,template:function(e,n){1&e&&k(0,"app-navbar")(1,"app-sidenav")},directives:[FW,NW],styles:[""]}),t})();const
BW=["langform"],HW=["countryrow"],qW=["languagerow"];function
GW(t,i){1&t&&(g(0),m(1,"translate")),2&t&&T("
",f(1,1,"setupwizard.localSetup")," ")}function
UW(t,i){1&t&&(g(0),m(1,"translate")),2&t&&T("
",f(1,1,"setupwizard.countryAndLanguage")," ")}function
zW(t,i){1&t&&(l(0,"h2"),g(1),m(2,"translate"),c()),2&t&&(a(1),S(f(2,1,"setupwizard.selectCountry")))}function
jW(t,i){if(1&t&&(l(0,"div",18,19),k(2,"img",20),l(3,"pre")(4,"span",21),g(5),c(),g(6),c()()),2&t){const
e=i.$implicit;ie("id",e.Code)
,a(2),Bn("src","images/locale/",e.Image,"",ln),a(3),S(e.Country),a(1),We("",null!==e.NativeCountry?"
- "+e.NativeCountry:""," (",e.Code,")")}}function
$W(t,i){if(1&t&&(l(0,"div",22),k(1,"p-message",23),m(2,"translate"),c()),2&t){const
e=d(2);a(1),La("text","",f(2,2,"setupwizard.selectedCountry"),"
",e.m_wizardData.Country.Country,"")}}function
WW(t,i){1&t&&(l(0,"div",22),k(1,"p-message",24),m(2,"translate"),c()),2&t&&(a(1),x("text",f(2,1,"setupwizard.noCountry")))}function
KW(t,i){1&t&&(l(0,"h2"),g(1),m(2,"translate"),c()),2&t&&(a(1),S(f(2,1,"setupwizard.selectLanguage")))}function
QW(t,i){if(1&t&&(l(0,"div",18,25),k(2,"img",20),l(3,"pre")(4,"span",21),g(5),c(),g(6),c()()),2&t){const
e=i.$implicit;ie("id",e.Code),a(2),Bn("src","images/locale/",e.Image,"",ln),a(3),S(e.Language),a(1),We("
- ",e.NativeLanguage," (",e.Code,")")}}function
JW(t,i){if(1&t&&(l(0,"div",22),k(1,"p-message",23),m(2,"translate"),c()),2&t){const
e=d(2);a(1),La("text","",f(2,2,"setupwizard.selectedLanguage"),"
",
e.m_wizardData.Language.NativeLanguage,"")}}function
YW(t,i){1&t&&(l(0,"div",22),k(1,"p-message",26),m(2,"translate"),c()),2&t&&(a(1),x("text",f(2,1,"setupwizard.noLanguage")))}const
aS=function(){return{"max-height":"460px","min-height":"460px"}};function
ZW(t,i){if(1&t){const
e=I();l(0,"div",8)(1,"div",9)(2,"p-listbox",10),C("ngModelChange",function(s){return
v(e),d().m_wizardData.Country=s}),_(3,zW,3,3,"ng-template",11),_(4,jW,7,5,"ng-template",12),c(),_(5,$W,3,4,"div",13),_(6,WW,3,3,"ng-template",null,14,we),c(),l(8,"div",15)(9,"p-listbox",16),C("ngModelChange",function(s){return
v(e),d().m_wizardData.Language=s}),_(10,KW,3,3,"ng-template",11),_(11,QW,7,5,"ng-template",12),c(),_(12,JW,3,4,"div",13),_(13,YW,3,3,"ng-template",null,17,we),c()()}if(2&t){const
e=F(7),n=F(14),s=d();a(2),p("options",s.m_countries)("ngModel",s.m_wizardData.Country)("multiple",!1)("filter",!0)("listStyle",A(14,aS)),a(3),p("ngIf",""!=s.m_wizardData.Country.Code)("ngIfElse",e),a(4),p("options",s.m_language
s)("ngModel",s.m_wizardData.Language)("multiple",!1)("filter",!0)("listStyle",A(15,aS)),a(3),p("ngIf",""!=s.m_wizardData.Language.Code)("ngIfElse",n)}}function
XW(t,i){1&t&&(k(0,"p-message",23),m(1,"translate")),2&t&&x("text",f(1,1,"common.savesuccess"))}function
eK(t,i){1&t&&(k(0,"p-message",24),m(1,"translate")),2&t&&x("text",f(1,1,"common.networkfail"))}function
tK(t,i){if(1&t){const
e=I();l(0,"div",27)(1,"div",28),_(2,XW,2,3,"p-message",29),_(3,eK,2,3,"p-message",30),c(),l(4,"p-button",31),C("onClick",function(){v(e);const
s=d(),r=F(2);return
s.saveForm(),r.form.markAsPristine()}),m(5,"translate"),c(),l(6,"p-button",32),C("onClick",function(){return
v(e),d().router.navigate(["setupwizard/dbsetup"])}),m(7,"translate"),c(),l(8,"p-button",33),C("onClick",function(){return
v(e),d().router.navigate(["setupwizard/general"])}),m(9,"translate"),c()()}if(2&t){const
e=d(),n=F(2);a(2),p("ngIf",e.successCount>0&&e.successCount==e.expectedCount&&0==e.errorCount&&!n.dirty),a(1),p("ngIf",e.err
orCount>0),a(1),x("label",f(5,7,"common.save")),p("disabled",!n.dirty||e.setupService.schedulingEnabled),a(2),x("label",f(7,9,"common.back")),a(2),x("label",f(9,11,"common.next")),p("disabled",""==e.m_wizardData.Country.Code||""==e.m_wizardData.Language.Code)}}let
nK=(()=>{class
t{constructor(e,n,s,r,o,u){this.router=e,this.translate=n,this.setupService=s,this.configService=r,this.wizardService=o,this.mythService=u,this.m_countries=[],this.m_languages=[],this.successCount=0,this.errorCount=0,this.expectedCount=0,this.warningText="settings.common.warning",this.saveObserver={next:h=>{h.bool?(this.successCount++,this.successCount>=this.expectedCount&&localStorage.setItem("Language",this.m_wizardData.Language.Code),this.translate.use(this.m_wizardData.Language.Code)):(this.errorCount++,this.currentForm&&this.currentForm.form.markAsDirty())},error:h=>{console.error(h),this.errorCount++,this.currentForm&&this.currentForm.form.markAsDirty()}},this.translate.get(this.warningText).subscribe(
h=>{this.warningText=h})}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(),setTimeout(()=>this.scrollIntoView(),1e3)}ngAfterViewInit(){}scrollIntoView(){if(""!=this.m_wizardData.Country.Code){const
e=this.countryRowElement.find(n=>n.nativeElement.getAttribute("id")===this.m_wizardData.Country.Code);e?e.nativeElement.scrollIntoView({behavior:"instant",inline:"start",block:"center"}):console.log("Failed
to find element by ID")}if(""!=this.m_wizardData.Language.Code){const
e=this.languageRowElement.find(n=>n.nativeElement.getAttribute("id")===this.m_wizardData.Language.Code);e&&e.nativeElement.scrollIntoView({behavior:"instant",inline:"start",block:"center"})}null!=this.wizardService.m_topElement&&this.wizardService.m_topElement.nativeElement.scrollIntoView({behavior:"instant",block:"start"})}sav
eForm(){this.successCount=0,this.errorCount=0,this.expectedCount=2,this.mythService.PutSetting({HostName:"_GLOBAL_",Key:"Country",Value:this.m_wizardData.Country.Code}).subscribe(this.saveObserver),this.mythService.PutSetting({HostName:"_GLOBAL_",Key:"Language",Value:this.m_wizardData.Language.Code}).subscribe(this.saveObserver)}confirm(e){return
oe(window.confirm(e))}canDeactivate(){return!this.currentForm||!this.currentForm.dirty||this.confirm(this.warningText)}onWindowClose(e){this.currentForm&&this.currentForm.dirty&&(e.preventDefault(),e.returnValue=!1)}}return
t.\u0275fac=function(e){return
new(e||t)(D(It),D(Oe),D(Me),D(zo),D(xd),D(qt))},t.\u0275cmp=z({type:t,selectors:[["app-selectlanguage"]],viewQuery:function(e,n){if(1&e&&(W(BW,5),W(HW,5,De),W(qW,5,De)),2&e){let
s;V(s=B())&&(n.currentForm=s.first),V(s=B())&&(n.countryRowElement=s),V(s=B())&&(n.languageRowElement=s)}},hostBindings:function(e,n){1&e&&C("beforeunload",function(r){return
n.onWindowClose(r)},!1,ni)},decls:8,vars
:0,consts:[[1,"wizard-content","m-0","md:m-3"],["name","langform",1,"mx-0","md:mx-3"],["langform","ngForm"],[1,"m-0","md:m-5"],["pTemplate","title"],["pTemplate","subtitle"],["pTemplate","content"],["pTemplate","footer"],[1,"grid","m-0","md:m-3"],[1,"col-12","md:col-6","pt-2"],["optionLabel","Country","name","countries",3,"options","ngModel","multiple","filter","listStyle","ngModelChange"],["pTemplate","header"],["pTemplate","item"],["class","pt-5",4,"ngIf","ngIfElse"],["noCountry",""],[1,"col-12","md:col-6"],["optionLabel","Language","name","languages",3,"options","ngModel","multiple","filter","listStyle","ngModelChange"],["noLanguage",""],[1,"language-item"],["countryrow",""],[1,"pr-3",2,"width","70px",3,"src"],[1,"font-bold"],[1,"pt-5"],["severity","success",3,"text"],["severity","error",3,"text"],["languagerow",""],["severity","error",1,"pt-2",3,"text"],[1,"grid","nogutter","m-5"],[1,"col-12"],["severity","success",3,"text",4,"ngIf"],["severity","error",3,"text",4,"ngIf"],["icon
","pi
pi-save","iconPos","left",1,"col","pr-1",3,"label","disabled","onClick"],["icon","pi
pi-angle-left","iconPos","left",1,"pr-3",3,"label","onClick"],["icon","pi
pi-angle-right","iconPos","right",3,"label","disabled","onClick"]],template:function(e,n){1&e&&(l(0,"div",0)(1,"form",1,2)(3,"p-card",3),_(4,GW,2,3,"ng-template",4),_(5,UW,2,3,"ng-template",5),_(6,ZW,15,16,"ng-template",6),_(7,tK,10,13,"ng-template",7),c()()())},directives:[ze,Ue,He,Ne,ne,os,Te,_e,Q,qe,ve],pipes:[ce],styles:[".language-item{display:flex;align-items:center}@media
screen and (max-width:
48rem){.p-card-body,.p-card-content,.p-accordion-content{padding:0rem!important}}\n"],encapsulation:2}),t})();class
iK{constructor(i,e){this._document=e;const
n=this._textarea=this._document.createElement("textarea"),s=n.style;s.position="fixed",s.top=s.opacity="0",s.left="-999em",n.setAttribute("aria-hidden","true"),n.value=i,this._document.body.appendChild(n)}copy(){const
i=this._textarea;let e=!1;try{if(i){const n=this._
document.activeElement;i.select(),i.setSelectionRange(0,i.value.length),e=this._document.execCommand("copy"),n&&n.focus()}}catch(n){}return
e}destroy(){const i=this._textarea;i&&(i.remove(),this._textarea=void 0)}}let
lS=(()=>{class t{constructor(e){this._document=e}copy(e){const
n=this.beginCopy(e),s=n.copy();return n.destroy(),s}beginCopy(e){return new
iK(e,this._document)}}return t.\u0275fac=function(e){return
new(e||t)(K(Xt))},t.\u0275prov=X({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();const
sK=["databaseForm"];function
rK(t,i){1&t&&(g(0),m(1,"translate")),2&t&&T("
",f(1,1,"setupwizard.databaseSetup")," ")}function
oK(t,i){1&t&&(g(0),m(1,"translate")),2&t&&T("
",f(1,1,"setupwizard.enterDBLoginDetails")," ")}function
aK(t,i){1&t&&(l(0,"div")(1,"small",42),g(2),m(3,"translate"),c()()),2&t&&(a(2),S(f(3,1,"setupwizard.IPorAddressRequired")))}function
lK(t,i){1&t&&(l(0,"div")(1,"small",43),g(2),m(3,"translate"),c()()),2&t&&(a(2),S(f(3,1,"setupwizard.portRequired")))}functio
n
cK(t,i){1&t&&(l(0,"div")(1,"small",43),g(2),m(3,"translate"),c()()),2&t&&(a(2),S(f(3,1,"setupwizard.userRequired")))}function
uK(t,i){1&t&&(l(0,"div")(1,"small",43),g(2),m(3,"translate"),c()()),2&t&&(a(2),S(f(3,1,"setupwizard.passwordRequired")))}function
dK(t,i){1&t&&(l(0,"div")(1,"small",43),g(2),m(3,"translate"),c()()),2&t&&(a(2),S(f(3,1,"setupwizard.databaseNameRequired")))}function
pK(t,i){if(1&t){const
e=I();l(0,"div",30)(1,"label",44),g(2),m(3,"translate"),c(),l(4,"input",45,46),C("ngModelChange",function(s){return
v(e),d(2).database.LocalHostName=s}),c(),l(6,"small",47),g(7),m(8,"translate"),c()()}if(2&t){const
e=d(2);a(2),S(f(3,3,"setupwizard.LocalHostName_label")),a(2),p("ngModel",e.database.LocalHostName),a(3),S(f(8,5,"setupwizard.LocalHostName_desc"))}}function
hK(t,i){if(1&t){const
e=I();l(0,"div",8)(1,"label",48),g(2),m(3,"translate"),c(),l(4,"p-inputNumber",49),C("ngModelChange",function(s){return
v(e),d(2).database.WOLReconnect=s}),c(),l(5,"small",32),g(6),m(7,"tra
nslate"),c()()}if(2&t){const e=d(2);a(2),T("
",f(3,8,"settings.vsource.WOLReconnect_label"),"
"),a(2),p("ngModel",e.database.WOLReconnect)("min",0)("max",60)("step",1)("useGrouping",!1)("showButtons",!0),a(2),T("
",f(7,10,"settings.vsource.WOLReconnect_desc")," ")}}function
mK(t,i){if(1&t){const
e=I();l(0,"div",8)(1,"label",50),g(2),m(3,"translate"),c(),l(4,"p-inputNumber",51),C("ngModelChange",function(s){return
v(e),d(2).database.WOLRetry=s}),c(),l(5,"small",32),g(6),m(7,"translate"),c()()}if(2&t){const
e=d(2);a(2),T(" ",f(3,8,"settings.vsource.WOLRetry_label"),"
"),a(2),p("ngModel",e.database.WOLRetry)("min",1)("max",10)("step",1)("useGrouping",!1)("showButtons",!0),a(2),T("
",f(7,10,"settings.vsource.WOLRetry_desc")," ")}}function
fK(t,i){if(1&t){const
e=I();l(0,"div",30)(1,"label",52),g(2),m(3,"translate"),c(),l(4,"input",53,54),C("ngModelChange",function(s){return
v(e),d(2).database.WOLCommand=s}),c(),l(6,"small",55),g(7),m(8,"translate"),c()()}if(2&t){const
e=d(2);a(2),S(f(3,
3,"setupwizard.WOLCommand_label")),a(2),p("ngModel",e.database.WOLCommand),a(3),S(f(8,5,"setupwizard.WOLCommand_desc"))}}function
gK(t,i){1&t&&(l(0,"div"),k(1,"p-message",56),m(2,"translate"),c()),2&t&&(a(1),x("text",f(2,1,"setupwizard.connectedToDatabase")))}function
_K(t,i){1&t&&(l(0,"div",57,39),k(2,"p-message",58),m(3,"translate"),c()),2&t&&(a(2),x("text",f(3,1,"setupwizard.notConnectedToDatabase")))}const
cS=function(t){return{Name:t}};function
bK(t,i){if(1&t&&(l(0,"div"),k(1,"p-message",56),m(2,"translate"),c()),2&t){const
e=d(2);a(1),x("text",Dt(2,1,"setupwizard.dbsetup.havedb",U(4,cS,e.m_wizardData.Database.Name)))}}function
vK(t,i){if(1&t&&(l(0,"div",59,40),k(2,"p-message",60),m(3,"translate"),c()),2&t){const
e=d(2);a(2),x("text",Dt(3,1,"setupwizard.dbsetup.havenotdb",U(4,cS,e.m_wizardData.Database.Name)))}}const
CK=function(t){return{SchemaVersion:t}};function
yK(t,i){if(1&t&&(l(0,"div"),k(1,"p-message",61),m(2,"translate"),c()),2&t){const
e=d(2);a(1),x("text",Dt(2,1,"setu
pwizard.dbsetup.schemaver",U(4,CK,e.m_wizardData.DatabaseStatus.DatabaseStatus.SchemaVersion)))}}function
wK(t,i){1&t&&(l(0,"div",62,40),k(2,"p-message",63),m(3,"translate"),c()),2&t&&(a(2),x("text",f(3,1,"setupwizard.databaseSchemaUnknown")))}function
TK(t,i){if(1&t){const
e=I();l(0,"div")(1,"p"),g(2),m(3,"translate"),c(),l(4,"div",68)(5,"div",69),g(6,"
Sql Server Type:
"),c(),l(7,"div",70)(8,"p-radioButton",71),C("ngModelChange",function(s){return
v(e),d(3).dbtype=s})("ngModelChange",function(){return
v(e),d(3).setCommandList()}),c(),l(9,"label",72),g(10,"MySql"),c()(),l(11,"div",73)(12,"p-radioButton",74),C("ngModelChange",function(s){return
v(e),d(3).dbtype=s})("ngModelChange",function(){return
v(e),d(3).setCommandList()}),c(),l(13,"label",75),g(14,"MariaDB"),c()()(),l(15,"table",76)(16,"tr")(17,"td",65),g(18),c(),l(19,"td",66)(20,"button",67),C("click",function(){v(e);const
s=d(3);return
s.copyToclipboard(s.commandlist)}),m(21,"translate"),c()()()(),l(22,"p"),g(23),m(24,"transl
ate"),c(),l(25,"table")(26,"tr")(27,"td",65),g(28),c(),l(29,"td",66)(30,"button",67),C("click",function(){v(e);const
s=d(3);return
s.copyToclipboard(s.mySqlCommand)}),m(31,"translate"),c()()()()()}if(2&t){const
e=d(3);a(2),T(" ",f(3,8,"setupwizard.sqlinstructions"),"
"),a(6),p("ngModel",e.dbtype),a(4),p("ngModel",e.dbtype),a(6),T("
",e.commandlist,"
"),a(2),x("pTooltip",f(21,10,"settings.common.clipboard_tooltip")),a(3),S(f(24,12,"setupwizard.runcommand")),a(5),T("
",e.mySqlCommand,"
"),a(2),x("pTooltip",f(31,14,"settings.common.clipboard_tooltip"))}}function
SK(t,i){if(1&t){const
e=I();l(0,"div")(1,"h2"),g(2),m(3,"translate"),c(),_(4,TK,32,16,"div",13),l(5,"p",64),g(6),m(7,"translate"),c(),l(8,"table")(9,"tr")(10,"td",65),g(11),c(),l(12,"td",66)(13,"button",67),C("click",function(){v(e);const
s=d(2);return
s.copyToclipboard(s.tzCommand)}),m(14,"translate"),c()()()(),l(15,"p"),g(16),m(17,"translate"),c(),l(18,"p"),g(19),m(20,"translate"),c(),l(21,"p"),g(22),m(23,"translate"),c()()}i
f(2&t){const
e=d(2);a(2),S(f(3,8,"common.instructions")),a(2),p("ngIf",e.connectionFail),a(2),S(f(7,10,"setupwizard.tztables")),a(5),T("
",e.tzCommand,"
"),a(2),x("pTooltip",f(14,12,"settings.common.clipboard_tooltip")),a(3),T("",f(17,14,"setupwizard.ignoremessages"),"
"),a(3),S(f(20,16,"setupwizard.savethis")),a(3),S(f(23,18,"setupwizard.restartbe"))}}const
xK=function(t){return{"is-invalid":t}};function DK(t,i){if(1&t){const
e=I();l(0,"div",7)(1,"div",8)(2,"label",9),g(3),m(4,"translate"),c(),l(5,"input",10,11),C("ngModelChange",function(s){return
v(e),d().database.Host=s}),c(),l(7,"small",12),g(8),m(9,"translate"),c(),_(10,aK,4,3,"div",13),c(),l(11,"div",8)(12,"label",14),g(13),m(14,"translate"),c(),l(15,"input",15,16),C("ngModelChange",function(s){return
v(e),d().database.Port=s}),c(),l(17,"small",17),g(18),m(19,"translate"),c(),_(20,lK,4,3,"div",13),c(),l(21,"div",8)(22,"label",18),g(23),m(24,"translate"),c(),l(25,"input",19,20),C("ngModelChange",function(s){return
v(e),d().dat
abase.UserName=s}),c(),l(27,"small",21),g(28),m(29,"translate"),c(),_(30,cK,4,3,"div",13),c(),l(31,"div",8)(32,"label",22),g(33),m(34,"translate"),c(),l(35,"input",23,24),C("ngModelChange",function(s){return
v(e),d().database.Password=s}),c(),l(37,"small",25),g(38),m(39,"translate"),c(),_(40,uK,4,3,"div",13),c(),l(41,"div",8)(42,"label",26),g(43),m(44,"translate"),c(),l(45,"input",27,28),C("ngModelChange",function(s){return
v(e),d().database.Name=s}),c(),l(47,"small",29),g(48),m(49,"translate"),c(),_(50,dK,4,3,"div",13),c(),l(51,"div",30)(52,"p-checkbox",31),C("ngModelChange",function(s){return
v(e),d().database.LocalEnabled=s}),m(53,"translate"),c(),l(54,"small",32),g(55),m(56,"translate"),c()(),_(57,pK,9,7,"div",33),l(58,"div",30)(59,"p-checkbox",34),C("ngModelChange",function(s){return
v(e),d().database.WOLEnabled=s}),m(60,"translate"),c(),l(61,"small",32),g(62),m(63,"translate"),c()(),_(64,hK,8,12,"div",35),_(65,mK,8,12,"div",35),_(66,fK,9,7,"div",33),c(),l(67,"div")(68,"p-butto
n",36),C("click",function(){return
v(e),d().saveForm(!1)}),m(69,"translate"),c()(),l(70,"div",37),_(71,gK,3,3,"div",38),_(72,_K,4,3,"ng-template",null,39,we),_(74,bK,3,6,"div",38),_(75,vK,4,6,"ng-template",null,40,we),_(77,yK,3,6,"div",38),_(78,wK,4,3,"ng-template",null,41,we),c(),_(80,SK,24,20,"div",13)}if(2&t){const
e=F(6),n=F(16),s=F(26),r=F(36),o=F(46),u=F(73),h=F(76),b=F(79),y=d(),w=F(2);a(3),S(f(4,42,"setupwizard.MySQLServerIP")),a(2),p("ngModel",y.database.Host)("ngClass",U(72,xK,e.invalid)),a(3),S(f(9,44,"setupwizard.ipaddress_help")),a(2),p("ngIf",e.invalid&&(e.dirty||e.touched)),a(3),S(f(14,46,"setupwizard.MySQLServerPort")),a(2),p("ngModel",y.database.Port),a(3),S(f(19,48,"setupwizard.port_help")),a(2),p("ngIf",n.invalid&&(n.dirty||n.touched)),a(3),S(f(24,50,"setupwizard.MySQLUser")),a(2),p("ngModel",y.database.UserName),a(3),S(f(29,52,"setupwizard.user_help")),a(2),p("ngIf",s.invalid&&(s.dirty||s.touched)),a(3),S(f(34,54,"setupwizard.MySQLPassword")),a(2),p("ngModel",y.d
atabase.Password),a(3),S(f(39,56,"setupwizard.password_help")),a(2),p("ngIf",r.invalid&&(r.dirty||r.touched)),a(3),S(f(44,58,"setupwizard.MySQLDatabaseName")),a(2),p("ngModel",y.database.Name),a(3),S(f(49,60,"setupwizard.dbname_help")),a(2),p("ngIf",o.invalid&&(o.dirty||o.touched)),a(2),x("label",f(53,62,"setupwizard.LocalEnabled_label")),p("ngModel",y.database.LocalEnabled)("binary",!0),a(3),T("
",f(56,64,"setupwizard.LocalEnabled_desc"),"
"),a(2),p("ngIf",y.database.LocalEnabled),a(2),x("label",f(60,66,"setupwizard.WOLEnabled_label")),p("ngModel",y.database.WOLEnabled)("binary",!0),a(3),T("
",f(63,68,"setupwizard.WOLEnabled_desc"),"
"),a(2),p("ngIf",y.database.WOLEnabled),a(1),p("ngIf",y.database.WOLEnabled),a(1),p("ngIf",y.database.WOLEnabled),a(2),x("label",f(69,70,"setupwizard.testConnection")),p("disabled",null==w.invalid||w.invalid),a(3),p("ngIf",y.m_wizardData.DatabaseStatus.DatabaseStatus.Connected)("ngIfElse",u),a(3),p("ngIf",y.m_wizardData.DatabaseStatus.DatabaseStatus.Ha
veDatabase)("ngIfElse",h),a(3),p("ngIf",y.m_wizardData.DatabaseStatus.DatabaseStatus.Connected&&y.m_wizardData.DatabaseStatus.DatabaseStatus.HaveDatabase)("ngIfElse",b),a(3),p("ngIf",y.setupService.isDatabaseIgnored)}}function
MK(t,i){1&t&&(k(0,"p-message",83),m(1,"translate")),2&t&&x("text",f(1,1,"common.savesuccess"))}function
kK(t,i){1&t&&(k(0,"p-message",60),m(1,"translate")),2&t&&x("text",f(1,1,"common.networkfail"))}function
IK(t,i){1&t&&(k(0,"p-message",60),m(1,"translate")),2&t&&x("text",f(1,1,"setupwizard.connectionfail"))}function
EK(t,i){if(1&t){const
e=I();l(0,"div",77)(1,"div",78),_(2,MK,2,3,"p-message",79),_(3,kK,2,3,"p-message",80),_(4,IK,2,3,"p-message",80),c(),l(5,"p-button",81),C("onClick",function(){v(e);const
s=d(),r=F(2);return
s.saveForm(!0),r.form.markAsPristine()}),m(6,"translate"),c(),l(7,"p-button",82),C("onClick",function(){return
v(e),d().router.navigate(["setupwizard/selectlanguage"])}),m(8,"translate"),c()()}if(2&t){const
e=d(),n=F(2);a(2),p("ngIf",e.su
ccessCount>0&&e.successCount==e.expectedCount&&0==e.errorCount&&!n.dirty),a(1),p("ngIf",e.errorCount>0),a(1),p("ngIf",e.connectionFail),a(1),x("label",f(6,7,"common.save")),p("disabled",(!n.dirty||e.setupService.schedulingEnabled)&&!e.setupService.isDatabaseIgnored),a(2),x("label",f(8,9,"common.next")),p("disabled",e.setupService.isDatabaseIgnored)}}let
RK=(()=>{class
t{constructor(e,n,s,r,o,u,h,b){this.router=e,this.configService=n,this.mythService=s,this.wizardService=r,this.translate=o,this.messageService=u,this.setupService=h,this.clipboard=b,this.successCount=0,this.errorCount=0,this.expectedCount=2,this.connectionFail=!1,this.commandlist="",this.mySqlCommand="sudo
mysql -u root < setup.sql",this.tzCommand="mysql_tzinfo_to_sql
/usr/share/zoneinfo | sudo mysql -u root
mysql",this.dbtype="MySQL",this.msg_testconnection="setupwizard.testConnection",this.msg_connectionsuccess="setupwizard.connectionsuccess",this.msg_connectionfail="setupwizard.connectionfail",this.warningText="sett
ings.common.warning",this.saveObserver={next:y=>{y.bool?this.successCount++:(this.errorCount++,this.currentForm&&this.currentForm.form.markAsDirty())},error:y=>{console.error(y),this.errorCount++,this.currentForm&&this.currentForm.form.markAsDirty()}},this.translate.get(this.msg_testconnection).subscribe(y=>this.msg_testconnection=y),this.translate.get(this.msg_connectionsuccess).subscribe(y=>this.msg_connectionsuccess=y),this.translate.get(this.msg_connectionfail).subscribe(y=>this.msg_connectionfail=y),this.translate.get(this.warningText).subscribe(y=>this.warningText=y)}ngOnInit(){this.wizardService.initDatabaseStatus(),this.m_wizardData=this.wizardService.getWizardData(),this.database=Object.assign({},this.m_wizardData.Database),this.wizardService.dbPromise.then(()=>{this.database=Object.assign({},this.m_wizardData.Database)},()=>this.errorCount++)}copyToclipboard(e){this.clipboard.copy(e)}saveForm(e){this.successCount=0,this.errorCount=0,this.expectedCount=1,this.connectionFail
=!1;const
n={HostName:this.database.Host,UserName:this.database.UserName,Password:this.database.Password,DBName:this.database.Name,dbPort:this.database.Port};this.commandlist="",this.mythService.TestDBSettings(n).subscribe(s=>{s.bool?e?this.configService.SetDatabaseCredentials(this.database).subscribe(this.saveObserver):this.messageService.add({severity:"success",life:5e3,summary:this.msg_testconnection,detail:this.msg_connectionsuccess}):(this.messageService.add({severity:"error",life:5e3,summary:this.msg_testconnection,detail:this.msg_connectionfail}),this.connectionFail=!0,this.setCommandList())})}setCommandList(){let
e="";"MySQL"==this.dbtype&&(e="WITH
mysql_native_password"),this.commandlist=`CREATE DATABASE IF NOT EXISTS
${this.database.Name};\nCREATE USER IF NOT EXISTS
'${this.database.UserName}'@'localhost' IDENTIFIED ${e} by
'${this.database.Password}';\nCREATE USER IF NOT EXISTS
'${this.database.UserName}'@'%' IDENTIFIED ${e} by
'${this.database.Password}';\nGRANT ALL ON $
{this.database.Name}.* TO '${this.database.UserName}'@'localhost';\nGRANT
ALL ON ${this.database.Name}.* TO
'${this.database.UserName}'@'%';`}confirm(e){return
oe(window.confirm(e))}canDeactivate(){return!this.currentForm||!this.currentForm.dirty||this.confirm(this.warningText)}onWindowClose(e){this.currentForm&&this.currentForm.dirty&&(e.preventDefault(),e.returnValue=!1)}}return
t.\u0275fac=function(e){return
new(e||t)(D(It),D(zo),D(qt),D(xd),D(Oe),D(Gi),D(Me),D(lS))},t.\u0275cmp=z({type:t,selectors:[["app-dbsetup"]],viewQuery:function(e,n){if(1&e&&W(sK,5),2&e){let
s;V(s=B())&&(n.currentForm=s.first)}},hostBindings:function(e,n){1&e&&C("beforeunload",function(r){return
n.onWindowClose(r)},!1,ni)},features:[Pe([Gi])],decls:8,vars:0,consts:[["name","databaseForm",1,"mx-0","md:mx-3"],["databaseForm","ngForm"],[1,"m-0","md: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,"label","block"],["pInputText","","id","ipaddress","type","text","aria-describedby","ipaddress-help","name","hostname","placeholder","Ex.
127.0.0.1 or
localhost","required","",1,"mb-2","form-control","w-full",3,"ngModel","ngClass","ngModelChange"],["host","ngModel"],["id","ipaddress-help"],[4,"ngIf"],["for","port",1,"label","block"],["pInputText","","id","port","type","number","aria-describedby","port-help","name","port","placeholder","Ex.
3306","min","0","max","65536",1,"mb-2","form-control","w-full",3,"ngModel","ngModelChange"],["port","ngModel"],["id","port-help"],["for","user",1,"label","block"],["pInputText","","id","user","type","text","aria-describedby","user-help","name","user","placeholder","Ex.
mythtv","required","",1,"mb-2","form-control","w-full",3,"ngModel","ngModelChange"],["user","ngModel"],["id","user-help"],["for","password",1,"label","block"],["pInputText","","id","password","type","text","aria-describedby","password-help","name","password",
"placeholder","Ex.
mythtv","required","",1,"mb-2","form-control","w-full",3,"ngModel","ngModelChange"],["password","ngModel"],["id","password-help"],["for","dbname",1,"label","block"],["pInputText","","id","dbname","type","text","aria-describedby","dbname-help","name","dbname","placeholder","Ex.
mythconverg","required","",1,"mb-2","form-control","w-full",3,"ngModel","ngModelChange"],["dbname","ngModel"],["id","dbname-help"],[1,"field","col-12"],["name","LocalEnabled",1,"mb-2","w-full","label","block",3,"ngModel","binary","label","ngModelChange"],[1,"block"],["class","field
col-12",4,"ngIf"],["name","WOLEnabled",1,"mb-2","w-full","label","block",3,"ngModel","binary","label","ngModelChange"],["class","field
col-12
md:col-6",4,"ngIf"],["type","button",1,"mr-1","p-button-raised","p-button-secondary",3,"label","disabled","click"],[1,"pt-4",2,"display","flex"],[4,"ngIf","ngIfElse"],["notconnected",""],["nodatabase",""],["noschema",""],["id","address-help",1,"p-error","block"],[1,"p-error"
,"block"],["for","LocalHostName",1,"label","block"],["pInputText","","id","LocalHostName","type","text","aria-describedby","LocalHostName-help","name","LocalHostName",1,"mb-2","form-control","w-full",3,"ngModel","ngModelChange"],["LocalHostName","ngModel"],["id","LocalHostName-help"],["for","WOLReconnect",1,"label","block"],["name","WOLReconnect","id","WOLReconnect",3,"ngModel","min","max","step","useGrouping","showButtons","ngModelChange"],["for","WOLRetry",1,"label","block"],["name","WOLRetry","id","WOLRetry",3,"ngModel","min","max","step","useGrouping","showButtons","ngModelChange"],["for","WOLCommand",1,"label","block"],["pInputText","","id","WOLCommand","type","text","aria-describedby","WOLCommand-help","name","WOLCommand",1,"mb-2","form-control","w-full",3,"ngModel","ngModelChange"],["WOLCommand","ngModel"],["id","WOLCommand-help"],["severity","success",1,"pr-2",3,"text"],[1,"pr-2","notconnected"],["severity","error",1,"",3,"text"],[1,"pr-2","nodatabase"],["severity","error",3
,"text"],["severity","info",1,"pr-2",3,"text"],[1,"pr-2","noschema"],["severity","info",3,"text"],[1,""],[1,"align-items-center","bg-blue-100","text-gray-900",2,"font-family","monospace"],[1,"align-items-center"],["pButton","","pRipple","","type","button","icon","pi
pi-copy",1,"p-button-rounded","p-button-text",3,"pTooltip","click"],[1,"flex","pb-3"],[1,"flex-none","flex","align-items-center","label","block","pr-5"],[1,"flex-none","flex","align-items-center","pr-5"],["name","dbtype","value","MySQL","inputId","mysql",3,"ngModel","ngModelChange"],["for","mysql"],[1,"flex-none","flex","align-items-center"],["name","dbtype","value","MariaDB","inputId","mariadb",3,"ngModel","ngModelChange"],["for","mariadb"],[2,"white-space","pre-line"],[1,"grid","nogutter","m-5"],[1,"col-12"],["severity","success",3,"text",4,"ngIf"],["severity","error",3,"text",4,"ngIf"],["icon","pi
pi-save","iconPos","left",1,"col","pr-1",3,"label","disabled","onClick"],["icon","pi
pi-angle-right","iconPos","right",1,"
pr-3",3,"label","disabled","onClick"],["severity","success",3,"text"]],template:function(e,n){1&e&&(k(0,"p-toast"),l(1,"form",0,1)(3,"p-card",2),_(4,rK,2,3,"ng-template",3),_(5,oK,2,3,"ng-template",4),_(6,DK,81,74,"ng-template",5),_(7,EK,9,11,"ng-template",6),c()())},directives:[Td,ze,Ue,He,Ne,ne,Ye,ll,Te,_e,Le,Q,Du,xu,Su,sn,pt,ve,qe,Sd,On,bt,Kt],pipes:[ce],styles:[".is-invalid{border-color:red}@media
screen and (max-width:
48rem){.p-card-body,.p-card-content,.p-accordion-content{padding:0rem!important}}\n"],encapsulation:2}),t})();const
LK=["hostaddress"];function
OK(t,i){1&t&&(g(0),m(1,"translate")),2&t&&T("
",f(1,1,"settings.hostaddress.title")," ")}function
AK(t,i){1&t&&(g(0),m(1,"translate")),2&t&&T("
",f(1,1,"settings.hostaddress.subtitle")," ")}function
PK(t,i){1&t&&(l(0,"div")(1,"small",40),g(2),m(3,"translate"),c()()),2&t&&(a(2),S(f(3,1,"setupwizard.portRequired")))}function
FK(t,i){1&t&&(l(0,"div")(1,"small",40),g(2),m(3,"translate"),c()()),2&t&&(a(2),S(f(3,1,"setupwizard.
portRequired")))}function
NK(t,i){1&t&&(l(0,"div")(1,"small",40),g(2),m(3,"translate"),c()()),2&t&&(a(2),T("
",f(3,1,"settings.hostaddress.pin_reqd")," "))}function
VK(t,i){1&t&&(l(0,"div")(1,"small",52),g(2,"IPv4
address"),c()())}function
BK(t,i){1&t&&(l(0,"div")(1,"small",40),g(2,"IPv6
address"),c()())}function HK(t,i){if(1&t){const
e=I();l(0,"div")(1,"div",9)(2,"label",41),g(3),m(4,"translate"),c(),l(5,"p-dropdown",42,43),C("ngModelChange",function(s){return
v(e),d(2).m_HostAddressData.BackendServerIP=s}),c(),l(7,"small",44),g(8),m(9,"translate"),c(),_(10,VK,3,0,"div",14),c(),l(11,"div",9)(12,"label",45),g(13),m(14,"translate"),c(),l(15,"p-dropdown",46,47),C("ngModelChange",function(s){return
v(e),d(2).m_HostAddressData.BackendServerIP6=s}),c(),l(17,"small",48),g(18),m(19,"translate"),c(),_(20,BK,3,0,"div",14),c(),l(21,"div",9)(22,"p-checkbox",49,50),C("ngModelChange",function(s){return
v(e),d(2).m_HostAddressData.AllowLinkLocal=s}),m(24,"translate"),c(),l(25,"small",51),g(26),m(
27,"translate"),c()()()}if(2&t){const
e=F(6),n=F(16),s=d(2);a(3),S(f(4,14,"settings.hostaddress.ipv4_label")),a(2),p("options",s.m_IPsV4)("ngModel",s.m_HostAddressData.BackendServerIP),a(3),T("
",f(9,16,"settings.hostaddress.ipv4_desc"),"
"),a(2),p("ngIf",e.invalid&&(e.dirty||e.touched)),a(3),T("
",f(14,18,"settings.hostaddress.ipv6_label"),"
"),a(2),p("options",s.m_IPsV6)("ngModel",s.m_HostAddressData.BackendServerIP6),a(3),T("
",f(19,20,"settings.hostaddress.ipv6_desc"),"
"),a(2),p("ngIf",n.invalid&&(n.dirty||n.touched)),a(2),x("label",f(24,22,"settings.hostaddress.listenlinklocal_label")),p("ngModel",s.m_HostAddressData.AllowLinkLocal)("binary",!0),a(4),T("
",f(27,24,"settings.hostaddress.listenlinklocal_desc"),"
")}}function
qK(t,i){1&t&&(l(0,"div")(1,"small",40),g(2,"Primary
IP address / DNS name is required"),c()())}function
GK(t,i){1&t&&(l(0,"div")(1,"small",53),g(2),m(3,"translate"),c()()),2&t&&(a(2),T("
",f(3,1,"settings.hostaddress.ismaster_hint")," "))}function
UK(t,i){1&
t&&(l(0,"div")(1,"small",54),g(2,"Hostname of master
backend is required"),c()())}const
uS=function(t){return{"is-invalid":t}};function zK(t,i){if(1&t){const
e=I();l(0,"div",7)(1,"p-fieldset",8),m(2,"translate"),l(3,"div",9)(4,"label",10),g(5),m(6,"translate"),c(),l(7,"input",11,12),C("ngModelChange",function(s){return
v(e),d().m_HostAddressData.BackendServerPort=s}),c(),l(9,"small",13),g(10),m(11,"translate"),c(),_(12,PK,4,3,"div",14),c(),l(13,"div",9)(14,"label",15),g(15),m(16,"translate"),c(),l(17,"input",16,17),C("ngModelChange",function(s){return
v(e),d().m_HostAddressData.BackendStatusPort=s}),c(),l(19,"small",18),g(20),m(21,"translate"),c(),_(22,FK,4,3,"div",14),c()(),l(23,"p-fieldset",8),m(24,"translate"),l(25,"div",9)(26,"label",19),g(27),m(28,"translate"),c(),l(29,"input",20,21),C("ngModelChange",function(s){return
v(e),d().m_HostAddressData.SecurityPin=s}),c(),l(31,"small",22),g(32),m(33,"translate"),c(),_(34,NK,4,3,"div",14),c()(),l(35,"p-fieldset",8),m(36,"translate"),l
(37,"div",9)(38,"p-checkbox",23,24),C("ngModelChange",function(s){return
v(e),d().m_HostAddressData.AllowConnFromAll=s}),m(40,"translate"),c(),l(41,"small",22),k(42,"div",25),m(43,"translate"),c()()(),l(44,"p-fieldset",8),m(45,"translate"),l(46,"div",9)(47,"p-checkbox",26,27),C("ngModelChange",function(s){return
v(e),d().m_HostAddressData.ListenOnAllIps=s}),m(49,"translate"),c(),l(50,"small",28),g(51),m(52,"translate"),c()(),_(53,HK,28,26,"div",14),c(),l(54,"p-fieldset",8),m(55,"translate"),l(56,"div",9)(57,"div",9)(58,"label",29),g(59),m(60,"translate"),c(),l(61,"p-dropdown",30,31),C("ngModelChange",function(s){return
v(e),d().m_HostAddressData.BackendServerAddr=s}),c(),l(63,"small",32),g(64),m(65,"translate"),c()(),_(66,qK,3,0,"div",14),c()(),l(67,"p-fieldset",8),m(68,"translate"),l(69,"div",9)(70,"p-checkbox",33,34),C("ngModelChange",function(s){return
v(e),d().m_HostAddressData.IsMasterBackend=s})("onChange",function(){return
v(e),d().setMaster()}),m(72,"translate"),c(),l(73,"sm
all",35),g(74),m(75,"translate"),c(),_(76,GK,4,3,"div",14),c(),l(77,"div",9)(78,"label",36),g(79),m(80,"translate"),c(),l(81,"input",37,38),C("ngModelChange",function(s){return
v(e),d().m_HostAddressData.MasterServerName=s}),c(),l(83,"small",39),k(84,"div",25),m(85,"translate"),c(),_(86,UK,3,0,"div",14),c()()()}if(2&t){const
e=F(8),n=F(18),s=F(30),r=F(62),o=F(82),u=d();a(1),x("legend",f(2,44,"settings.hostaddress.panel.ports")),a(4),T("
",f(6,46,"settings.hostaddress.backendport_label"),"
"),a(2),p("ngModel",u.m_HostAddressData.BackendServerPort)("ngClass",U(88,uS,e.invalid)),a(3),T("
",f(11,48,"settings.hostaddress.backendport_desc"),"
"),a(2),p("ngIf",e.invalid&&(e.dirty||e.touched)),a(3),T("
",f(16,50,"settings.hostaddress.statusport_label"),"
"),a(2),p("ngModel",u.m_HostAddressData.BackendStatusPort)("ngClass",U(90,uS,n.invalid)),a(3),S(f(21,52,"settings.hostaddress.statusport_desc")),a(2),p("ngIf",n.invalid&&(n.dirty||n.touched)),a(1),x("legend",f(24,54,"settings.hostaddress.pa
nel.pin")),a(4),T("
",f(28,56,"settings.hostaddress.pin_label"),"
"),a(2),p("ngModel",u.m_HostAddressData.SecurityPin),a(3),T("
",f(33,58,"settings.hostaddress.pin_desc"),"
"),a(2),p("ngIf",s.invalid&&(s.dirty||s.touched)),a(1),x("legend",f(36,60,"settings.hostaddress.panel.allowconn")),a(3),x("label",f(40,62,"settings.hostaddress.allowconn_label")),p("ngModel",u.m_HostAddressData.AllowConnFromAll)("binary",!0),a(4),p("innerHTML",f(43,64,"settings.hostaddress.allowconn_desc"),Bt),a(2),x("legend",f(45,66,"settings.hostaddress.panel.iplisten")),a(3),x("label",f(49,68,"settings.hostaddress.listenall_label")),p("ngModel",u.m_HostAddressData.ListenOnAllIps)("binary",!0),a(4),T("
",f(52,70,"settings.hostaddress.listenall_desc"),"
"),a(2),p("ngIf",!u.m_HostAddressData.ListenOnAllIps),a(1),x("legend",f(55,72,"settings.hostaddress.panel.primaryadd")),a(5),T("
",f(60,74,"settings.hostaddress.primaryip_label"),"
"),a(2),p("options",u.m_IPsAll)("ngModel",u.m_HostAddressData.BackendServerAddr)("
editable",!0),a(3),T("
",f(65,76,"settings.hostaddress.primaryip_desc"),"
"),a(2),p("ngIf",r.invalid&&(r.dirty||r.touched)),a(1),x("legend",f(68,78,"settings.hostaddress.panel.masterbe")),a(3),x("label",f(72,80,"settings.hostaddress.ismaster_label")),p("ngModel",u.m_HostAddressData.IsMasterBackend)("binary",!0),a(4),T("
",f(75,82,"settings.hostaddress.ismaster_desc"),"
"),a(2),p("ngIf",u.m_showChangeHint),a(3),S(f(80,84,"settings.hostaddress.master_label")),a(2),p("ngModel",u.m_HostAddressData.MasterServerName),a(3),p("innerHTML",f(85,86,"settings.hostaddress.master_desc"),Bt),a(2),p("ngIf",o.invalid&&(o.dirty||o.touched))}}function
jK(t,i){1&t&&(k(0,"p-message",60),m(1,"translate")),2&t&&x("text",f(1,1,"common.savesuccess"))}function
$K(t,i){1&t&&(k(0,"p-message",61),m(1,"translate")),2&t&&x("text",f(1,1,"common.networkfail"))}function
WK(t,i){if(1&t){const
e=I();l(0,"div",55)(1,"div",56),_(2,jK,2,3,"p-message",57),_(3,$K,2,3,"p-message",58),c(),l(4,"p-button",59),C("onClick",funct
ion(){v(e);const s=d(),r=F(1);return
s.saveForm(),r.form.markAsPristine()}),m(5,"translate"),c()()}if(2&t){const
e=d(),n=F(1);a(2),p("ngIf",e.m_HostAddressData.successCount>0&&0==e.m_HostAddressData.errorCount&&!n.dirty),a(1),p("ngIf",e.m_HostAddressData.errorCount>0),a(1),x("label",f(5,4,"common.save")),p("disabled",!n.dirty||e.setupService.schedulingEnabled)}}let
KK=(()=>{class
t{constructor(e,n){this.setupService=e,this.configService=n,this.m_IsMasterBackend=!1,this.m_showChangeHint=!1,this.m_HostAddressData=this.setupService.getHostAddressData(),setTimeout(()=>n.GetIPAddresses("All").subscribe(s=>this.m_IPsAll=s.IPAddresses),500),n.GetIPAddresses("IPv4").subscribe(s=>this.m_IPsV4=s.IPAddresses),n.GetIPAddresses("IPv6").subscribe(s=>this.m_IPsV6=s.IPAddresses)}ngOnInit(){}ngAfterViewInit(){this.setupService.setCurrentForm(this.currentForm)}setMaster(){void
0===this.m_savedMaster&&(this.m_savedMaster=this.m_HostAddressData.MasterServerName),this.m_HostAddressData.IsMasterBackend?(
this.m_HostAddressData.MasterServerName=this.m_HostAddressData.thisHostName,this.m_showChangeHint=!1):this.m_HostAddressData.MasterServerName==this.m_savedMaster?this.m_showChangeHint=!0:this.m_HostAddressData.MasterServerName=this.m_savedMaster}saveForm(){console.log("save
form clicked"),this.setupService.saveHostAddressData(this.currentForm)}}return
t.\u0275fac=function(e){return
new(e||t)(D(Me),D(zo))},t.\u0275cmp=z({type:t,selectors:[["app-host-address"]],viewQuery:function(e,n){if(1&e&&W(LK,5),2&e){let
s;V(s=B())&&(n.currentForm=s.first)}},decls:7,vars:0,consts:[["name","hostaddress",1,"mx-0","md:mx-3"],["hostaddress","ngForm"],[1,"m-0","md:m-5"],["pTemplate","title"],["pTemplate","subtitle"],["pTemplate","content"],["pTemplate","footer"],[1,"grid"],[1,"mb-4","w-full",3,"legend"],[1,"form-group","field"],["for","backendserverport",1,"label","block"],["pInputText","","id","backendserverport","type","number","name","backendserverport","placeholder","Ex.
6543","required","","min",
"0","max","65536",1,"mb-2","form-control","w-10rem",3,"ngModel","ngClass","ngModelChange"],["backendserverport","ngModel"],["id","backendserverport-help",1,"block"],[4,"ngIf"],["for","backendstatusport",1,"label","block"],["pInputText","","id","backendstatusport","type","number","name","backendstatusport","placeholder","Ex.
6544","required","","min","0","max","65536",1,"mb-2","form-control","w-10rem",3,"ngModel","ngClass","ngModelChange"],["backendstatusport","ngModel"],["id","backendstatusport-help",1,"block"],["for","securitypin",1,"label","block"],["pInputText","","id","securitypin","type","text","name","securitypin","placeholder","Ex.
1234","required","",1,"mb-2","form-control","w-10rem",3,"ngModel","ngModelChange"],["securitypin","ngModel"],["id","securitypin-help",1,"block"],["inputId","AllowConnFromAll","name","AllowConnFromAll",1,"mb-2","w-full",3,"ngModel","binary","label","ngModelChange"],["AllowConnFromAll","ngModel"],[3,"innerHTML"],["inputId","ListenOnAllIps","name","Li
stenOnAllIps",1,"mb-2","w-full",3,"ngModel","binary","label","ngModelChange"],["ListenOnAllIps","ngModel"],["id","ListenOnAllIps-help",1,"block"],["for","BackendServerAddr",1,"label","block","w-full"],["name","BackendServerAddr","aria-describedby","BackendServerAddr-help",1,"block","mb-2","w-full",3,"options","ngModel","editable","ngModelChange"],["BackendServerAddr","ngModel"],["id","BackendServerAddr-help",1,"block","w-full"],["inputId","IsMasterBackend","name","IsMasterBackend",1,"mb-2","w-full",3,"ngModel","binary","label","ngModelChange","onChange"],["IsMasterBackend","ngModel"],["id","IsMasterBackend-help",1,"block"],["for","MasterServerName",1,"label","block"],["pInputText","","id","MasterServerName","type","text","name","MasterServerName","placeholder","Ex.
masterbe","disabled","disabled",1,"mb-2","form-control","w-15rem","read-only",3,"ngModel","ngModelChange"],["MasterServerName","ngModel"],["id","MasterServerName-help",1,"block"],[1,"p-error","block"],["for","BackendServe
rIP",1,"label","block"],["name","BackendServerIP","aria-describedby","BackendServerIP-help",1,"block","w-15rem","mb-2",3,"options","ngModel","ngModelChange"],["BackendServerIP","ngModel"],["id","BackendServerIP-help",1,"block"],["for","BackendServerIP6",1,"label","block"],["name","BackendServerIP6","aria-describedby","BackendServerIP6-help",1,"block","w-15rem","mb-2",3,"options","ngModel","ngModelChange"],["BackendServerIP6","ngModel"],["id","BackendServerIP6-help",1,"block"],["inputId","AllowLinkLocal","name","AllowLinkLocal",1,"mb-2","w-full",3,"ngModel","binary","label","ngModelChange"],["AllowLinkLocal","ngModel"],["id","AllowLinkLocal-help",1,"block"],["id","LocalServerIP-help",1,"p-error","block"],["id","IsMasterBackend-help",1,"p-error","block"],["id","MasterServerName-help",1,"p-error","block"],[1,"grid","nogutter"],[1,"col-12"],["severity","success",3,"text",4,"ngIf"],["severity","error",3,"text",4,"ngIf"],["icon","pi
pi-save","iconPos","left",1,"col","pr-1",3,"label","disa
bled","onClick"],["severity","success",3,"text"],["severity","error",3,"text"]],template:function(e,n){1&e&&(l(0,"form",0,1)(2,"p-card",2),_(3,OK,2,3,"ng-template",3),_(4,AK,2,3,"ng-template",4),_(5,zK,87,92,"ng-template",5),_(6,WK,6,6,"ng-template",6),c()())},directives:[ze,Ue,He,Ne,ne,Ui,Du,xu,Su,Ye,ll,Te,_e,Le,Q,sn,Ot,qe,ve],pipes:[ce],styles:["[_nghost-%COMP%]
.p-dropdown{width:18rem}.read-only[_ngcontent-%COMP%]{opacity:1;background-color:#e0e0e0;border-style:solid;height:2rem}"]}),t})();const
QK=["locale"];function
JK(t,i){1&t&&(g(0),m(1,"translate")),2&t&&T("
",f(1,1,"settings.locale.title")," ")}function
YK(t,i){1&t&&(g(0),m(1,"translate")),2&t&&T("
",f(1,1,"settings.locale.subtitle")," ")}function
ZK(t,i){if(1&t){const
e=I();l(0,"div",7)(1,"p-fieldset",8),m(2,"translate"),l(3,"div",9)(4,"label",10),g(5,"TV
Format"),c(),l(6,"p-dropdown",11),C("ngModelChange",function(s){return
v(e),d().TVFormat=s}),c(),l(7,"small",12),g(8),m(9,"translate"),c()(),l(10,"div",9)(11,"label",
13),g(12),m(13,"translate"),c(),l(14,"p-dropdown",14),C("ngModelChange",function(s){return
v(e),d().VbiFormat=s}),c(),l(15,"small",15),g(16),m(17,"translate"),c()()(),l(18,"p-fieldset",8),m(19,"translate"),l(20,"div",9)(21,"label",16),g(22),m(23,"translate"),c(),l(24,"p-dropdown",17),C("ngModelChange",function(s){return
v(e),d().FreqTable=s}),c(),l(25,"small",18),g(26),m(27,"translate"),c()()()()}if(2&t){const
e=d();a(1),x("legend",f(2,13,"settings.locale.tvformat_label")),a(5),p("options",e.m_TVFormats)("ngModel",e.TVFormat),a(2),T("
",f(9,15,"settings.locale.tvformat_desc"),"
"),a(4),S(f(13,17,"settings.locale.vbiformat_label")),a(2),p("options",e.m_vbiFormats)("ngModel",e.VbiFormat),a(2),T("
",f(17,19,"settings.locale.vbiformat_desc"),"
"),a(2),x("legend",f(19,21,"settings.locale.freqtable_label")),a(4),S(f(23,23,"settings.locale.channfreq_label")),a(2),p("options",e.m_FreqTables)("ngModel",e.FreqTable),a(2),T("
",f(27,25,"settings.locale.channfreq_desc")," ")}}function
XK(t,i){1
&t&&(k(0,"p-message",24),m(1,"translate")),2&t&&x("text",f(1,1,"common.savesuccess"))}function
eQ(t,i){1&t&&(k(0,"p-message",25),m(1,"translate")),2&t&&x("text",f(1,1,"common.networkfail"))}function
tQ(t,i){if(1&t){const
e=I();l(0,"div",19)(1,"div",20),_(2,XK,2,3,"p-message",21),_(3,eQ,2,3,"p-message",22),c(),l(4,"p-button",23),C("onClick",function(){v(e);const
s=d(),r=F(1);return
s.saveForm(),r.form.markAsPristine()}),m(5,"translate"),c()()}if(2&t){const
e=d(),n=F(1);a(2),p("ngIf",e.successCount>0&&0==e.errorCount&&!n.dirty),a(1),p("ngIf",e.errorCount>0),a(1),x("label",f(5,4,"common.save")),p("disabled",!n.dirty||e.setupService.schedulingEnabled)}}const
nQ=function(){return{width:"100%"}};let iQ=(()=>{class
t{constructor(e,n){this.setupService=e,this.mythService=n,this.successCount=0,this.errorCount=0,this.TVFormat="PAL",this.VbiFormat="None",this.FreqTable="us-bcast",this.LocaleObs={next:s=>{s.bool?this.successCount++:(this.errorCount++,this.currentForm&&this.currentForm.form.mark
AsDirty())},error:s=>{console.error(s),this.errorCount++,this.currentForm&&this.currentForm.form.markAsDirty()}},this.m_TVFormats=["NTSC","NTSC-JP","PAL","PAL-60","PAL-BG","PAL-DK","PAL-D","PAL-I","PAL-M","PAL-N","PAL-NC","SECAM","SECAM-D","DECAM-DK"],this.m_vbiFormats=["None","PAL
teletext","NTSC closed
caption"],this.m_FreqTables=["us-bcast","us-cable","us-cable-hrc","us-cable-irc","japan-bcast","japan-cable","europe-west","europe-east","italy","newzealand","australia","ireland","france","china-bcast","southafrica","argentina","australia-optus","singapore","malaysia","israel-hot-matav","try-all"],this.getLocaleData()}getLocaleData(){this.mythService.GetSetting({HostName:"_GLOBAL_",Key:"TVFormat"}).subscribe({next:e=>this.TVFormat=e.String,error:()=>this.errorCount++}),this.mythService.GetSetting({HostName:"_GLOBAL_",Key:"VbiFormat"}).subscribe({next:e=>this.VbiFormat=e.String,error:()=>this.errorCount++}),this.mythService.GetSetting({HostName:"_GLOBAL_",Key:"FreqTable"}).subscribe
({next:e=>this.FreqTable=e.String,error:()=>this.errorCount++})}ngOnInit(){}ngAfterViewInit(){this.setupService.setCurrentForm(this.currentForm)}saveForm(){this.successCount=0,this.errorCount=0,this.mythService.PutSetting({HostName:"_GLOBAL_",Key:"TVFormat",Value:this.TVFormat}).subscribe(this.LocaleObs),this.mythService.PutSetting({HostName:"_GLOBAL_",Key:"VbiFormat",Value:this.VbiFormat}).subscribe(this.LocaleObs),this.mythService.PutSetting({HostName:"_GLOBAL_",Key:"FreqTable",Value:this.FreqTable}).subscribe(this.LocaleObs)}}return
t.\u0275fac=function(e){return
new(e||t)(D(Me),D(qt))},t.\u0275cmp=z({type:t,selectors:[["app-locale"]],viewQuery:function(e,n){if(1&e&&W(QK,5),2&e){let
s;V(s=B())&&(n.currentForm=s.first)}},decls:7,vars:3,consts:[["name","locale",1,"ml-3","mr-3",3,"ngSubmit"],["locale","ngForm"],[1,"m-5"],["pTemplate","title"],["pTemplate","subtitle"],["pTemplate","TV
Formats"],["pTemplate","footer"],[1,"grid"],[1,"mb-4","w-full",3,"legend"],[1,"form-group","field"],
["for","tvformat",1,"label","block"],["name","tvformat","aria-describedby","tvformat-help",1,"w-full","mb-2",3,"options","ngModel","ngModelChange"],["id","tvformat-help",1,"block","mt-2"],["for","vbiformat",1,"label","block"],["name","vbiformat","aria-describedby","vbiformat-help",1,"mb-5","w-full",3,"options","ngModel","ngModelChange"],["id","vbiformat-help",1,"block","mt-2"],["for","freqtable",1,"label","block"],["name","freqtable",1,"mb-2","w-full",3,"options","ngModel","ngModelChange"],["id","freqtable-help",1,"block","pt-2"],[1,"grid","nogutter"],[1,"col-12"],["severity","success",3,"text",4,"ngIf"],["severity","error",3,"text",4,"ngIf"],["icon","pi
pi-save","iconPos","left",1,"col","pr-1",3,"label","disabled","onClick"],["severity","success",3,"text"],["severity","error",3,"text"]],template:function(e,n){1&e&&(l(0,"form",0,1),C("ngSubmit",function(){return
n.saveForm()}),l(2,"p-card",2),_(3,JK,2,3,"ng-template",3),_(4,YK,2,3,"ng-template",4),_(5,ZK,28,27,"ng-template",5),_(6,t
Q,6,6,"ng-template",6),c()()),2&e&&(a(2),q(A(2,nQ)))},directives:[ze,Ue,He,Ne,ne,Ui,Ot,Te,_e,Q,qe,ve],pipes:[ce],styles:["[_nghost-%COMP%]
.p-dropdown{width:18rem}"]}),t})();const sQ=["miscsettings"];function
rQ(t,i){1&t&&(g(0),m(1,"translate")),2&t&&T("
",f(1,1,"settings.misc.title")," ")}function
oQ(t,i){1&t&&(g(0),m(1,"translate")),2&t&&T("
",f(1,1,"settings.misc.subtitle")," ")}function
aQ(t,i){if(1&t){const
e=I();l(0,"div",7)(1,"p-fieldset",8),m(2,"translate"),l(3,"div",9)(4,"p-checkbox",10),C("ngModelChange",function(s){return
v(e),d().MasterBackendOverride=s}),m(5,"translate"),c(),l(6,"small",11),g(7),m(8,"translate"),c()(),l(9,"div",9)(10,"p-checkbox",12),C("ngModelChange",function(s){return
v(e),d().DeletesFollowLinks=s}),m(11,"translate"),c(),l(12,"small",11),g(13),m(14,"translate"),c()(),l(15,"div",9)(16,"p-checkbox",13),C("ngModelChange",function(s){return
v(e),d().TruncateDeletesSlowly=s}),m(17,"translate"),c(),l(18,"small",11),g(19),m(20,"translate"),c()(),l(21,"di
v",9)(22,"label",14),g(23),m(24,"translate"),c(),l(25,"p-inputNumber",15),C("ngModelChange",function(s){return
v(e),d().HDRingbufferSize=s}),c(),l(26,"small",11),g(27),m(28,"translate"),c()(),l(29,"div",9)(30,"label",16),g(31),m(32,"translate"),c(),l(33,"p-dropdown",17),C("ngModelChange",function(s){return
v(e),d().StorageScheduler=s}),c(),l(34,"small",11),g(35),m(36,"translate"),c()()(),l(37,"p-fieldset",8),m(38,"translate"),l(39,"div",9)(40,"label",18),g(41),m(42,"translate"),c(),l(43,"p-dropdown",19),C("ngModelChange",function(s){return
v(e),d().UPNPWmpSource=s}),c(),l(44,"small",11),g(45),m(46,"translate"),c()()(),l(47,"div",20)(48,"div",9)(49,"label",21),g(50),m(51,"translate"),c(),l(52,"input",22),C("ngModelChange",function(s){return
v(e),d().MiscStatusScript=s}),c(),l(53,"small",11),g(54),m(55,"translate"),l(56,"a",23),g(57,"Miscellaneous
Status
Information"),c()()(),l(58,"div",9)(59,"p-checkbox",24),C("ngModelChange",function(s){return
v(e),d().DisableAutomaticBackup=s}),m(6
0,"translate"),c(),l(61,"small",11),g(62),m(63,"translate"),c()(),l(64,"div",9)(65,"p-checkbox",25),C("ngModelChange",function(s){return
v(e),d().DisableFirewireReset=s}),m(66,"translate"),c(),l(67,"small",11),g(68),m(69,"translate"),c()()()()}if(2&t){const
e=d();a(1),x("legend",f(2,44,"settings.misc.panel_filemgmt")),p("toggleable",!0)("collapsed",!0),a(3),x("label",f(5,46,"settings.misc.mbo_label")),p("ngModel",e.MasterBackendOverride)("binary",!0),a(3),T("
",f(8,48,"settings.misc.mbo_desc"),"
"),a(3),x("label",f(11,50,"settings.misc.follow_label")),p("ngModel",e.DeletesFollowLinks)("binary",!0),a(3),T("
",f(14,52,"settings.misc.follow_desc"),"
"),a(3),x("label",f(17,54,"settings.misc.slowly_label")),p("ngModel",e.TruncateDeletesSlowly)("binary",!0),a(3),T("
",f(20,56,"settings.misc.slowly_desc"),"
"),a(4),S(f(24,58,"settings.misc.ringbuf_label")),a(2),p("ngModel",e.HDRingbufferSize)("showButtons",!0)("min",4700)("max",94e3)("step",4700),a(2),T("
",f(28,60,"settings.misc.ringbuf_d
esc"),"
"),a(4),S(f(32,62,"settings.misc.sg_label")),a(2),p("options",e.soptions)("ngModel",e.StorageScheduler),a(2),T("
",f(36,64,"settings.misc.sg_desc"),"
"),a(2),x("legend",f(38,66,"settings.misc.panel_upnp")),p("toggleable",!0)("collapsed",!0),a(4),S(f(42,68,"settings.misc.upnp_label")),a(2),p("options",e.uoptions)("ngModel",e.UPNPWmpSource),a(2),T("
",f(46,70,"settings.misc.upnp_desc"),"
"),a(5),S(f(51,72,"settings.misc.statapp_label")),a(2),p("ngModel",e.MiscStatusScript),a(2),T("
",f(55,74,"settings.misc.statapp_desc"),"
"),a(5),x("label",f(60,76,"settings.misc.disback_label")),p("ngModel",e.DisableAutomaticBackup)("binary",!0),a(3),T("
",f(63,78,"settings.misc.disback_desc"),"
"),a(3),x("label",f(66,80,"settings.misc.disfwr_label")),p("ngModel",e.DisableFirewireReset)("binary",!0),a(3),T("
",f(69,82,"settings.misc.disfwr_desc")," ")}}function
lQ(t,i){1&t&&(k(0,"p-message",31),m(1,"translate")),2&t&&x("text",f(1,1,"common.savesuccess"))}function
cQ(t,i){1&t&&(k(0,"p-message"
,32),m(1,"translate")),2&t&&x("text",f(1,1,"common.networkfail"))}function
uQ(t,i){if(1&t){const
e=I();l(0,"div",26)(1,"div",27),_(2,lQ,2,3,"p-message",28),_(3,cQ,2,3,"p-message",29),c(),l(4,"p-button",30),C("onClick",function(){v(e);const
s=d(),r=F(1);return
s.saveForm(),r.form.markAsPristine()}),m(5,"translate"),c()()}if(2&t){const
e=d(),n=F(1);a(2),p("ngIf",e.successCount>0&&0==e.errorCount&&!n.dirty),a(1),p("ngIf",e.errorCount>0&&!n.dirty),a(1),x("label",f(5,4,"common.save")),p("disabled",!n.dirty||e.setupService.schedulingEnabled)}}let
dQ=(()=>{class
t{constructor(e,n,s){this.setupService=e,this.translate=n,this.mythService=s,this.successCount=0,this.errorCount=0,this.MasterBackendOverride=!1,this.DeletesFollowLinks=!1,this.TruncateDeletesSlowly=!1,this.HDRingbufferSize=9400,this.StorageScheduler="BalancedFreeSpace",this.UPNPWmpSource="0",this.MiscStatusScript="",this.DisableAutomaticBackup=!1,this.DisableFirewireReset=!1,this.hostName="",this.soptions=[{name:"settings.misc.sg_
balfree",code:"BalancedFreeSpace"},{name:"settings.misc.sg_balpercent",code:"BalancedPercFreeSpace"},{name:"settings.misc.bal_io",code:"BalancedDiskIO"},{name:"settings.misc.sg_combination",code:"Combination"}],this.uoptions=[{name:"settings.misc.upnp_recs",code:"0"},{name:"settings.misc.upnp_videos",code:"1"}],this.miscObserver={next:r=>{r.bool?this.successCount++:(this.errorCount++,this.currentForm&&this.currentForm.form.markAsDirty())},error:r=>{console.error(r),this.errorCount++,this.currentForm&&this.currentForm.form.markAsDirty()}},n.get(this.soptions[0].name).subscribe(r=>this.soptions[0].name=r),n.get(this.soptions[1].name).subscribe(r=>this.soptions[1].name=r),n.get(this.soptions[2].name).subscribe(r=>this.soptions[2].name=r),n.get(this.soptions[3].name).subscribe(r=>this.soptions[3].name=r),n.get(this.uoptions[0].name).subscribe(r=>this.uoptions[0].name=r),n.get(this.uoptions[1].name).subscribe(r=>this.uoptions[1].name=r),this.mythService.GetHostName().subscribe({next:r=>{
this.hostName=r.String,this.getMiscellaneousData()},error:()=>this.errorCount++})}getMiscellaneousData(){this.mythService.GetSetting({HostName:"_GLOBAL_",Key:"MasterBackendOverride",Default:"0"}).subscribe({next:e=>this.MasterBackendOverride="1"==e.String,error:()=>this.errorCount++}),this.mythService.GetSetting({HostName:"_GLOBAL_",Key:"DeletesFollowLinks",Default:"0"}).subscribe({next:e=>this.DeletesFollowLinks="1"==e.String,error:()=>this.errorCount++}),this.mythService.GetSetting({HostName:this.hostName,Key:"TruncateDeletesSlowly",Default:"0"}).subscribe({next:e=>this.TruncateDeletesSlowly="1"==e.String,error:()=>this.errorCount++}),this.mythService.GetSetting({HostName:"_GLOBAL_",Key:"HDRingbufferSize",Default:"9400"}).subscribe({next:e=>this.HDRingbufferSize=Number(e.String),error:()=>this.errorCount++}),this.mythService.GetSetting({HostName:"_GLOBAL_",Key:"StorageScheduler",Default:"BalancedFreeSpace"}).subscribe({next:e=>this.StorageScheduler=e.String,error:()=>this.errorCou
nt++}),this.mythService.GetSetting({HostName:"_GLOBAL_",Key:"UPNPWmpSource",Default:"0"}).subscribe({next:e=>this.UPNPWmpSource=e.String,error:()=>this.errorCount++}),this.mythService.GetSetting({HostName:this.hostName,Key:"MiscStatusScript",Default:""}).subscribe({next:e=>this.MiscStatusScript=e.String,error:()=>this.errorCount++}),this.mythService.GetSetting({HostName:"_GLOBAL_",Key:"DisableAutomaticBackup",Default:"0"}).subscribe({next:e=>this.DisableAutomaticBackup="1"==e.String,error:()=>this.errorCount++}),this.mythService.GetSetting({HostName:this.hostName,Key:"DisableFirewireReset",Default:"0"}).subscribe({next:e=>this.DisableFirewireReset="1"==e.String,error:()=>this.errorCount++})}ngOnInit(){}ngAfterViewInit(){this.setupService.setCurrentForm(this.currentForm)}saveForm(){this.successCount=0,this.errorCount=0,this.mythService.PutSetting({HostName:"_GLOBAL_",Key:"MasterBackendOverride",Value:this.MasterBackendOverride?"1":"0"}).subscribe(this.miscObserver),this.mythService.P
utSetting({HostName:"_GLOBAL_",Key:"DeletesFollowLinks",Value:this.DeletesFollowLinks?"1":"0"}).subscribe(this.miscObserver),this.mythService.PutSetting({HostName:this.hostName,Key:"TruncateDeletesSlowly",Value:this.TruncateDeletesSlowly?"1":"0"}).subscribe(this.miscObserver),this.mythService.PutSetting({HostName:"_GLOBAL_",Key:"HDRingbufferSize",Value:String(this.HDRingbufferSize)}).subscribe(this.miscObserver),this.mythService.PutSetting({HostName:"_GLOBAL_",Key:"StorageScheduler",Value:this.StorageScheduler}).subscribe(this.miscObserver),this.mythService.PutSetting({HostName:"_GLOBAL_",Key:"UPNPWmpSource",Value:this.UPNPWmpSource}).subscribe(this.miscObserver),this.mythService.PutSetting({HostName:this.hostName,Key:"MiscStatusScript",Value:this.MiscStatusScript}).subscribe(this.miscObserver),this.mythService.PutSetting({HostName:"_GLOBAL_",Key:"DisableAutomaticBackup",Value:this.DisableAutomaticBackup?"1":"0"}).subscribe(this.miscObserver),this.mythService.PutSetting({HostName:th
is.hostName,Key:"DisableFirewireReset",Value:this.DisableFirewireReset?"1":"0"}).subscribe(this.miscObserver)}}return
t.\u0275fac=function(e){return
new(e||t)(D(Me),D(Oe),D(qt))},t.\u0275cmp=z({type:t,selectors:[["app-misc-settings"]],viewQuery:function(e,n){if(1&e&&W(sQ,5),2&e){let
s;V(s=B())&&(n.currentForm=s.first)}},decls:7,vars:0,consts:[["name","miscsettings",1,"ml-3","mr-3"],["miscsettings","ngForm"],[1,"m-5"],["pTemplate","title"],["pTemplate","subtitle"],["pTemplate","content"],["pTemplate","footer"],[1,"grid"],[1,"mb-4","w-full",3,"legend","toggleable","collapsed"],[1,"form-group","field"],["name","MasterBackendOverride",1,"mb-2","w-full","label",3,"ngModel","binary","label","ngModelChange"],[1,"block"],["name","DeletesFollowLinks",1,"mb-2","w-full","label",3,"ngModel","binary","label","ngModelChange"],["name","TruncateDeletesSlowly",1,"mb-2","w-full","label",3,"ngModel","binary","label","ngModelChange"],["for","HDRingbufferSize",1,"label","block"],["name","HDRingbufferSiz
e","id","HDRingbufferSize",3,"ngModel"...
t",4,"ngIf"],["severity","error",3,"text",4,"ngIf"],["icon","pi
pi-save","iconPos","left",1,"col","pr-1",3,"label","disabled","onClick"],["severity","success",3,"text"],["severity","error",3,"text"]],template:function(e,n){1&e&&(l(0,"form",0,1)(2,"p-card",2),_(3,rQ,2,3,"ng-template",3),_(4,oQ,2,3,"ng-template",4),_(5,aQ,70,84,"ng-template",5),_(6,uQ,6,6,"ng-template",6),c()())},directives:[ze,Ue,He,Ne,ne,Ui,sn,Te,_e,pt,Ot,Ye,Q,qe,ve],pipes:[ce],styles:["a[_ngcontent-%COMP%]:link,
a[_ngcontent-%COMP%]:visited,
a[_ngcontent-%COMP%]:active{background-color:#fff}"]}),t})();const
pQ=["eitscanopt"];function
hQ(t,i){1&t&&(g(0),m(1,"translate")),2&t&&T("
",f(1,1,"settings.eit.title")," ")}function
mQ(t,i){1&t&&(g(0),m(1,"translate")),2&t&&T("
",f(1,1,"settings.eit.subtitle")," ")}function
fQ(t,i){if(1&t){const
e=I();l(0,"div",7)(1,"div",8)(2,"div",9)(3,"label",10),g(4),m(5,"translate"),c(),l(6,"p-inputNumber",11),C("ngModelChange",function(s){return
v(e),d().EITTransportTimeout=s}),c(),l(7,
"small",12),g(8),m(9,"translate"),c()(),l(10,"div",9)(11,"label",13),g(12),m(13,"translate"),c(),l(14,"p-inputNumber",14),C("ngModelChange",function(s){return
v(e),d().EITCrawIdleStart=s}),c(),l(15,"small",12),g(16),m(17,"translate"),c()(),l(18,"div",9)(19,"label",15),g(20),m(21,"translate"),c(),l(22,"p-inputNumber",16),C("ngModelChange",function(s){return
v(e),d().EITScanPeriod=s}),c(),l(23,"small",12),g(24),m(25,"translate"),c()()()()}if(2&t){const
e=d();a(4),S(f(5,21,"settings.eit.timeout_label")),a(2),p("ngModel",e.EITTransportTimeout)("showButtons",!0)("min",1)("max",15)("step",1),a(2),T("
",f(9,23,"settings.eit.timeout_desc"),"
"),a(4),S(f(13,25,"settings.eit.crawl_label")),a(2),p("ngModel",e.EITCrawIdleStart)("showButtons",!0)("min",30)("max",7200)("step",30),a(2),T("
",f(17,27,"settings.eit.crawl_desc"),"
"),a(4),S(f(21,29,"settings.eit.scan_label")),a(2),p("ngModel",e.EITScanPeriod)("showButtons",!0)("min",5)("max",60)("step",5),a(2),T("
",f(25,31,"settings.eit.scan_desc"),
" ")}}function
gQ(t,i){1&t&&(k(0,"p-message",22),m(1,"translate")),2&t&&x("text",f(1,1,"common.savesuccess"))}function
_Q(t,i){1&t&&(k(0,"p-message",23),m(1,"translate")),2&t&&x("text",f(1,1,"common.networkfail"))}function
bQ(t,i){if(1&t){const
e=I();l(0,"div",17)(1,"div",18),_(2,gQ,2,3,"p-message",19),_(3,_Q,2,3,"p-message",20),c(),l(4,"p-button",21),C("onClick",function(){v(e);const
s=d(),r=F(1);return
s.saveForm(),r.form.markAsPristine()}),m(5,"translate"),c()()}if(2&t){const
e=d(),n=F(1);a(2),p("ngIf",e.successCount>0&&0==e.errorCount&&!n.dirty),a(1),p("ngIf",e.errorCount>0),a(1),x("label",f(5,4,"common.save")),p("disabled",!n.dirty||e.setupService.schedulingEnabled)}}let
vQ=(()=>{class
t{constructor(e,n){this.setupService=e,this.mythService=n,this.successCount=0,this.errorCount=0,this.EITTransportTimeout=5,this.EITCrawIdleStart=60,this.EITScanPeriod=15,this.eitObserver={next:s=>{s.bool?this.successCount++:(this.errorCount++,this.currentForm&&this.currentForm.form.markAsDirty())
},error:s=>{console.error(s),this.errorCount++,this.currentForm&&this.currentForm.form.markAsDirty()}},this.getEITScanner()}ngOnInit(){}ngAfterViewInit(){this.setupService.setCurrentForm(this.currentForm)}getEITScanner(){this.mythService.GetSetting({HostName:"_GLOBAL_",Key:"EITTransportTimeout",Default:"5"}).subscribe({next:e=>this.EITTransportTimeout=Number(e.String),error:()=>this.errorCount++}),this.mythService.GetSetting({HostName:"_GLOBAL_",Key:"EITCrawIdleStart",Default:"60"}).subscribe({next:e=>this.EITCrawIdleStart=Number(e.String),error:()=>this.errorCount++}),this.mythService.GetSetting({HostName:"_GLOBAL_",Key:"EITScanPeriod",Default:"15"}).subscribe({next:e=>this.EITScanPeriod=Number(e.String),error:()=>this.errorCount++})}saveForm(){this.successCount=0,this.errorCount=0,this.mythService.PutSetting({HostName:"_GLOBAL_",Key:"EITTransportTimeout",Value:String(this.EITTransportTimeout)}).subscribe(this.eitObserver),this.mythService.PutSetting({HostName:"_GLOBAL_",Key:"EITCr
awIdleStart",Value:String(this.EITCrawIdleStart)}).subscribe(this.eitObserver),this.mythService.PutSetting({HostName:"_GLOBAL_",Key:"EITScanPeriod",Value:String(this.EITScanPeriod)}).subscribe(this.eitObserver)}}return
t.\u0275fac=function(e){return
new(e||t)(D(Me),D(qt))},t.\u0275cmp=z({type:t,selectors:[["app-eit-scanner"]],viewQuery:function(e,n){if(1&e&&W(pQ,5),2&e){let
s;V(s=B())&&(n.currentForm=s.first)}},decls:7,vars:0,consts:[["name","eitscanopt",1,"ml-3","mr-3"],["eitscanopt","ngForm"],[1,"m-5"],["pTemplate","title"],["pTemplate","subtitle"],["pTemplate","content"],["pTemplate","footer"],[1,"grid"],[1,"mb-4","w-full"],[1,"form-group","field"],["for","EITTransportTimeout",1,"label","block"],["name","EITTransportTimeout","id","EITTransportTimeout",3,"ngModel","showButtons","min","max","step","ngModelChange"],[1,"block"],["for","EITCrawIdleStart",1,"label","block"],["name","EITCrawIdleStart","id","EITCrawIdleStart",3,"ngModel","showButtons","min","max","step","ngModelChange"],
["for","EITScanPeriod",1,"label","block"],["name","EITScanPeriod","id","EITScanPeriod",3,"ngModel","showButtons","min","max","step","ngModelChange"],[1,"grid","nogutter"],[1,"col-12"],["severity","success",3,"text",4,"ngIf"],["severity","error",3,"text",4,"ngIf"],["icon","pi
pi-save","iconPos","left",1,"col","pr-1",3,"label","disabled","onClick"],["severity","success",3,"text"],["severity","error",3,"text"]],template:function(e,n){1&e&&(l(0,"form",0,1)(2,"p-card",2),_(3,hQ,2,3,"ng-template",3),_(4,mQ,2,3,"ng-template",4),_(5,fQ,26,33,"ng-template",5),_(6,bQ,6,6,"ng-template",6),c()())},directives:[ze,Ue,He,Ne,ne,pt,Te,_e,Q,qe,ve],pipes:[ce],styles:[""]}),t})();const
CQ=["shutwakeopt"];function
yQ(t,i){1&t&&(g(0),m(1,"translate")),2&t&&T("
",f(1,1,"settings.shutwake.title")," ")}function
wQ(t,i){1&t&&(g(0),m(1,"translate")),2&t&&T("
",f(1,1,"settings.shutwake.subtitle")," ")}function
TQ(t,i){if(1&t){const
e=I();l(0,"div",7)(1,"div",8)(2,"div",9)(3,"label",10),g(4),m(5,"translate"),c(
),l(6,"input",11),C("ngModelChange",function(s){return
v(e),d().startupCommand=s}),c(),l(7,"small",12),g(8),m(9,"translate"),c()(),l(10,"div",9)(11,"p-checkbox",13),C("ngModelChange",function(s){return
v(e),d().blockSDWUwithoutClient=s}),m(12,"translate"),c(),l(13,"small",12),g(14),m(15,"translate"),c()(),l(16,"div",9)(17,"label",14),g(18),m(19,"translate"),c(),l(20,"p-inputNumber",15),C("ngModelChange",function(s){return
v(e),d().idleTimeoutSecs=s}),c(),l(21,"small",12),g(22),m(23,"translate"),c()(),l(24,"div",9)(25,"label",16),g(26),m(27,"translate"),c(),l(28,"p-inputNumber",17),C("ngModelChange",function(s){return
v(e),d().idleWaitForRecordingTime=s}),c(),l(29,"small",12),g(30),m(31,"translate"),c()(),l(32,"div",9)(33,"label",18),g(34),m(35,"translate"),c(),l(36,"p-inputNumber",19),C("ngModelChange",function(s){return
v(e),d().StartupSecsBeforeRecording=s}),c(),l(37,"small",12),g(38),m(39,"translate"),c()(),l(40,"div",9)(41,"label",20),g(42),m(43,"translate"),c(),l(44,"input",21)
,C("ngModelChange",function(s){return
v(e),d().WakeupTimeFormat=s}),c(),l(45,"small",12),g(46),m(47,"translate"),c()(),l(48,"div",9)(49,"label",22),g(50),m(51,"translate"),c(),l(52,"input",23),C("ngModelChange",function(s){return
v(e),d().SetWakeuptimeCommand=s}),c(),l(53,"small",12),g(54),m(55,"translate"),c()(),l(56,"div",9)(57,"label",24),g(58),m(59,"translate"),c(),l(60,"input",25),C("ngModelChange",function(s){return
v(e),d().ServerHaltCommand=s}),c(),l(61,"small",12),g(62),m(63,"translate"),c()(),l(64,"div",9)(65,"label",26),g(66),m(67,"translate"),c(),l(68,"input",27),C("ngModelChange",function(s){return
v(e),d().preSDWUCheckCommand=s}),c(),l(69,"small",12),g(70),m(71,"translate"),c()()()()}if(2&t){const
e=d();a(4),S(f(5,40,"settings.shutwake.startcmd_label")),a(2),p("ngModel",e.startupCommand),a(2),T("
",f(9,42,"settings.shutwake.startcmd_desc"),"
"),a(3),x("label",f(12,44,"settings.shutwake.block_label")),p("ngModel",e.blockSDWUwithoutClient)("binary",!0),a(3),T("
",f(15,46
,"settings.shutwake.block_desc"),"
"),a(4),T("",f(19,48,"settings.shutwake.idletime_label"),"}"),a(2),p("ngModel",e.idleTimeoutSecs)("showButtons",!0)("min",0)("max",1200)("step",5),a(2),T("
",f(23,50,"settings.shutwake.idletime_desc"),"
"),a(4),S(f(27,52,"settings.shutwake.maxwait_label")),a(2),p("ngModel",e.idleWaitForRecordingTime)("showButtons",!0)("min",0)("max",300)("step",1),a(2),T("
",f(31,54,"settings.shutwake.maxwait_desc"),"
"),a(4),S(f(35,56,"settings.shutwake.startbefore_label")),a(2),p("ngModel",e.StartupSecsBeforeRecording)("showButtons",!0)("min",0)("max",300)("step",1),a(2),T("
",f(39,58,"settings.shutwake.startbefore_desc"),"
"),a(4),S(f(43,60,"settings.shutwake.timeformat_label")),a(2),p("ngModel",e.WakeupTimeFormat),a(2),T("
",f(47,62,"settings.shutwake.timeformat_desc"),"
"),a(4),S(f(51,64,"settings.shutwake.timecmd_label")),a(2),p("ngModel",e.SetWakeuptimeCommand),a(2),T("
",f(55,66,"settings.shutwake.timecmd_desc"),"
"),a(4),S(f(59,68,"settings.shutwake.server
halt_label")),a(2),p("ngModel",e.ServerHaltCommand),a(2),T("
",f(63,70,"settings.shutwake.serverhalt_desc"),"
"),a(4),S(f(67,72,"settings.shutwake.preshut_label")),a(2),p("ngModel",e.preSDWUCheckCommand),a(2),T("
",f(71,74,"settings.shutwake.preshut_desc")," ")}}function
SQ(t,i){1&t&&(k(0,"p-message",33),m(1,"translate")),2&t&&x("text",f(1,1,"common.savesuccess"))}function
xQ(t,i){1&t&&(k(0,"p-message",34),m(1,"translate")),2&t&&x("text",f(1,1,"common.networkfail"))}function
DQ(t,i){if(1&t){const
e=I();l(0,"div",28)(1,"div",29),_(2,SQ,2,3,"p-message",30),_(3,xQ,2,3,"p-message",31),c(),l(4,"p-button",32),C("onClick",function(){v(e);const
s=d(),r=F(1);return
s.saveForm(),r.form.markAsPristine()}),m(5,"translate"),c()()}if(2&t){const
e=d(),n=F(1);a(2),p("ngIf",e.successCount>0&&0==e.errorCount&&!n.dirty),a(1),p("ngIf",e.errorCount>0),a(1),x("label",f(5,4,"common.save")),p("disabled",!n.dirty||e.setupService.schedulingEnabled)}}let
MQ=(()=>{class t{constructor(e,n){this.setupService=e,t
his.mythService=n,this.successCount=0,this.errorCount=0,this.startupCommand="",this.blockSDWUwithoutClient=!0,this.idleTimeoutSecs=0,this.idleWaitForRecordingTime=15,this.StartupSecsBeforeRecording=120,this.WakeupTimeFormat="hh
=mm
yyyy-MM-dd",this.SetWakeuptimeCommand="",this.ServerHaltCommand="sudo
/sbin/halt
-p",this.preSDWUCheckCommand="",this.swObserver={next:s=>{s.bool?this.successCount++:(this.errorCount++,this.currentForm&&this.currentForm.form.markAsDirty())},error:s=>{console.error(s),this.errorCount++,this.currentForm&&this.currentForm.form.markAsDirty()}},this.getShutWake()}ngOnInit(){}ngAfterViewInit(){this.setupService.setCurrentForm(this.currentForm)}getShutWake(){this.mythService.GetSetting({HostName:"_GLOBAL_",Key:"startupCommand",Default:""}).subscribe({next:e=>this.startupCommand=e.String,error:()=>this.errorCount++}),this.mythService.GetSetting({HostName:"_GLOBAL_",Key:"blockSDWUwithoutClient",Default:"1"}).subscribe({next:e=>this.blockSDWUwithoutClient="1"==e.St
ring,error:()=>this.errorCount++}),this.mythService.GetSetting({HostName:"_GLOBAL_",Key:"idleTimeoutSecs",Default:"0"}).subscribe({next:e=>this.idleTimeoutSecs=Number(e.String),error:()=>this.errorCount++}),this.mythService.GetSetting({HostName:"_GLOBAL_",Key:"idleWaitForRecordingTime",Default:""}).subscribe({next:e=>this.idleWaitForRecordingTime=Number(e.String),error:()=>this.errorCount++}),this.mythService.GetSetting({HostName:"_GLOBAL_",Key:"StartupSecsBeforeRecording",Default:"120"}).subscribe({next:e=>this.StartupSecsBeforeRecording=Number(e.String),error:()=>this.errorCount++}),this.mythService.GetSetting({HostName:"_GLOBAL_",Key:"WakeupTimeFormat",Default:"hh:mm
yyyy-MM-dd"}).subscribe({next:e=>this.WakeupTimeFormat=e.String,error:()=>this.errorCount++}),this.mythService.GetSetting({HostName:"_GLOBAL_",Key:"SetWakeuptimeCommand",Default:""}).subscribe({next:e=>this.SetWakeuptimeCommand=e.String,error:()=>this.errorCount++}),this.mythService.GetSetting({HostName:"_GLOBAL_",Ke
y:"ServerHaltCommand",Default:"sudo /sbin/halt
-p"}).subscribe({next:e=>this.ServerHaltCommand=e.String,error:()=>this.errorCount++}),this.mythService.GetSetting({HostName:"_GLOBAL_",Key:"preSDWUCheckCommand",Default:""}).subscribe({next:e=>this.preSDWUCheckCommand=e.String,error:()=>this.errorCount++})}saveForm(){this.successCount=0,this.errorCount=0,this.mythService.PutSetting({HostName:"_GLOBAL_",Key:"startupCommand",Value:this.startupCommand}).subscribe(this.swObserver),this.mythService.PutSetting({HostName:"_GLOBAL_",Key:"blockSDWUwithoutClient",Value:this.blockSDWUwithoutClient?"1":"0"}).subscribe(this.swObserver),this.mythService.PutSetting({HostName:"_GLOBAL_",Key:"idleTimeoutSecs",Value:String(this.idleTimeoutSecs)}).subscribe(this.swObserver),this.mythService.PutSetting({HostName:"_GLOBAL_",Key:"idleWaitForRecordingTime",Value:String(this.idleWaitForRecordingTime)}).subscribe(this.swObserver),this.mythService.PutSetting({HostName:"_GLOBAL_",Key:"StartupSecsBeforeRecording"
,Value:String(this.StartupSecsBeforeRecording)}).subscribe(this.swObserver),this.mythService.PutSetting({HostName:"_GLOBAL_",Key:"WakeupTimeFormat",Value:this.WakeupTimeFormat}).subscribe(this.swObserver),this.mythService.PutSetting({HostName:"_GLOBAL_",Key:"SetWakeuptimeCommand",Value:this.SetWakeuptimeCommand}).subscribe(this.swObserver),this.mythService.PutSetting({HostName:"_GLOBAL_",Key:"ServerHaltCommand",Value:this.ServerHaltCommand}).subscribe(this.swObserver),this.mythService.PutSetting({HostName:"_GLOBAL_",Key:"preSDWUCheckCommand",Value:this.preSDWUCheckCommand}).subscribe(this.swObserver)}}return
t.\u0275fac=function(e){return
new(e||t)(D(Me),D(qt))},t.\u0275cmp=z({type:t,selectors:[["app-shutdown-wakeup"]],viewQuery:function(e,n){if(1&e&&W(CQ,5),2&e){let
s;V(s=B())&&(n.currentForm=s.first)}},decls:7,vars:0,consts:[["name","shutwakeopt",1,"ml-3","mr-3"],["shutwakeopt","ngForm"],[1,"m-5"],["pTemplate","title"],["pTemplate","subtitle"],["pTemplate","content"],["pTemplate",
"footer"],[1,"grid"],[1,"mb-4","w-full"],[1,"form-group","field"],["for","startupCommand",1,"label","block"],["pInputText","","id","startupCommand","name","startupCommand",1,"mb-2","form-control","w-full",3,"ngModel","ngModelChange"],[1,"block"],["inputId","blockSDWUwithoutClient","name","blockSDWUwithoutClient",1,"mb-2","w-full","label",3,"ngModel","binary","label","ngModelChange"],["for","idleTimeoutSecs",1,"label","block"],["name","idleTimeoutSecs","id","idleTimeoutSecs",3,"ngModel","showButtons","min","max","step","ngModelChange"],["for","idleWaitForRecordingTime",1,"label","block"],["name","idleWaitForRecordingTime","id","idleWaitForRecordingTime",3,"ngModel","showButtons","min","max","step","ngModelChange"],["for","StartupSecsBeforeRecording",1,"label","block"],["name","StartupSecsBeforeRecording","id","StartupSecsBeforeRecording",3,"ngModel","showButtons","min","max","step","ngModelChange"],["for","WakeupTimeFormat",1,"label","block"],["pInputText","","id","WakeupTimeFormat",
"name","WakeupTimeFormat",1,"mb-2","form-control","w-full",3,"ngModel","ngModelChange"],["for","SetWakeuptimeCommand",1,"label","block"],["pInputText","","id","SetWakeuptimeCommand","name","SetWakeuptimeCommand",1,"mb-2","form-control","w-full",3,"ngModel","ngModelChange"],["for","ServerHaltCommand",1,"label","block"],["pInputText","","id","ServerHaltCommand","name","ServerHaltCommand",1,"mb-2","form-control","w-full",3,"ngModel","ngModelChange"],["for","preSDWUCheckCommand",1,"label","block"],["pInputText","","id","preSDWUCheckCommand","name","preSDWUCheckCommand",1,"mb-2","form-control","w-full",3,"ngModel","ngModelChange"],[1,"grid","nogutter"],[1,"col-12"],["severity","success",3,"text",4,"ngIf"],["severity","error",3,"text",4,"ngIf"],["icon","pi
pi-save","iconPos","left",1,"col","pr-1",3,"label","disabled","onClick"],["severity","success",3,"text"],["severity","error",3,"text"]],template:function(e,n){1&e&&(l(0,"form",0,1)(2,"p-card",2),_(3,yQ,2,3,"ng-template",3),_(4,wQ,2,3,"n
g-template",4),_(5,TQ,72,76,"ng-template",5),_(6,DQ,6,6,"ng-template",6),c()())},directives:[ze,Ue,He,Ne,ne,Ye,Te,_e,sn,pt,Q,qe,ve],pipes:[ce],styles:[""]}),t})();const
kQ=["backendwakeup"];function
IQ(t,i){1&t&&(g(0),m(1,"translate")),2&t&&T("
",f(1,1,"settings.backendwake.title")," ")}function
EQ(t,i){1&t&&(g(0),m(1,"translate")),2&t&&T("
",f(1,1,"settings.backendwake.subtitle")," ")}function
RQ(t,i){if(1&t){const
e=I();l(0,"div",7)(1,"p-fieldset",8),m(2,"translate"),l(3,"div",9)(4,"label",10),g(5),m(6,"translate"),c(),l(7,"p-inputNumber",11),C("ngModelChange",function(s){return
v(e),d().WOLbackendReconnectWaitTime=s}),c(),l(8,"small",12),g(9),m(10,"translate"),c()(),l(11,"div",9)(12,"label",13),g(13),m(14,"translate"),c(),l(15,"p-inputNumber",14),C("ngModelChange",function(s){return
v(e),d().WOLbackendConnectRetry=s}),c(),l(16,"small",12),g(17),m(18,"translate"),c()(),l(19,"div",9)(20,"label",15),g(21),m(22,"translate"),c(),l(23,"input",16),C("ngModelChange",function(s){return
v(
e),d().WOLbackendCommand=s}),c(),l(24,"small",12),g(25),m(26,"translate"),c()()(),l(27,"p-fieldset",8),m(28,"translate"),l(29,"div",9)(30,"label",17),g(31),m(32,"translate"),c(),l(33,"input",18),C("ngModelChange",function(s){return
v(e),d().SleepCommand=s}),c(),l(34,"small",12),g(35),m(36,"translate"),c()(),l(37,"div",9)(38,"label",19),g(39),m(40,"translate"),c(),l(41,"input",20),C("ngModelChange",function(s){return
v(e),d().WakeUpCommand=s}),c(),l(42,"small",12),g(43),m(44,"translate"),c()()()()}if(2&t){const
e=d();a(1),x("legend",f(2,29,"settings.backendwake.master.title")),p("toggleable",!0)("collapsed",!0),a(4),S(f(6,31,"settings.backendwake.master.delay_label")),a(2),p("ngModel",e.WOLbackendReconnectWaitTime)("showButtons",!0)("min",0)("max",1200)("step",5),a(2),T("
",f(10,33,"settings.backendwake.master.delay_desc"),"
"),a(4),S(f(14,35,"settings.backendwake.master.attempts_label")),a(2),p("ngModel",e.WOLbackendConnectRetry)("showButtons",!0)("min",1)("max",60)("step",1),a(2),T
(" ",f(18,37,"settings.backendwake.master.attempts_desc"),"
"),a(4),S(f(22,39,"settings.backendwake.master.cmd_label")),a(2),p("ngModel",e.WOLbackendCommand),a(2),T("
",f(26,41,"settings.backendwake.master.cmd_desc"),"
"),a(2),x("legend",f(28,43,"settings.backendwake.slave.title")),p("toggleable",!0)("collapsed",!0),a(4),S(f(32,45,"settings.backendwake.slave.sleep_label")),a(2),p("ngModel",e.SleepCommand),a(2),T("
",f(36,47,"settings.backendwake.slave.sleep_desc"),"
"),a(4),S(f(40,49,"settings.backendwake.slave.wake_label")),a(2),p("ngModel",e.WakeUpCommand),a(2),T("
",f(44,51,"settings.backendwake.slave.wake_desc")," ")}}function
LQ(t,i){1&t&&(k(0,"p-message",26),m(1,"translate")),2&t&&x("text",f(1,1,"common.savesuccess"))}function
OQ(t,i){1&t&&(k(0,"p-message",27),m(1,"translate")),2&t&&x("text",f(1,1,"common.networkfail"))}function
AQ(t,i){if(1&t){const
e=I();l(0,"div",21)(1,"div",22),_(2,LQ,2,3,"p-message",23),_(3,OQ,2,3,"p-message",24),c(),l(4,"p-button",25),C("onClick",functio
n(){v(e);const s=d(),r=F(1);return
s.saveForm(),r.form.markAsPristine()}),m(5,"translate"),c()()}if(2&t){const
e=d(),n=F(1);a(2),p("ngIf",e.successCount>0&&0==e.errorCount&&!n.dirty),a(1),p("ngIf",e.errorCount>0),a(1),x("label",f(5,4,"common.save")),p("disabled",!n.dirty||e.setupService.schedulingEnabled)}}let
PQ=(()=>{class
t{constructor(e,n){this.setupService=e,this.mythService=n,this.hostName="",this.successCount=0,this.errorCount=0,this.WOLbackendReconnectWaitTime=0,this.WOLbackendConnectRetry=5,this.WOLbackendCommand="",this.SleepCommand="",this.WakeUpCommand="",this.bewObserver={next:s=>{s.bool?this.successCount++:(this.errorCount++,this.currentForm&&this.currentForm.form.markAsDirty())},error:s=>{console.error(s),this.errorCount++,this.currentForm&&this.currentForm.form.markAsDirty()}}}ngOnInit(){}ngAfterViewInit(){this.setupService.setCurrentForm(this.currentForm)}getBackendWake(){this.mythService.GetHostName().subscribe({next:e=>{this.hostName=e.String,this.getSettings()},e
rror:()=>this.errorCount++})}getSettings(){this.mythService.GetSetting({HostName:"_GLOBAL_",Key:"WOLbackendReconnectWaitTime",Default:"0"}).subscribe({next:e=>this.WOLbackendReconnectWaitTime=Number(e.String),error:()=>this.errorCount++}),this.mythService.GetSetting({HostName:"_GLOBAL_",Key:"WOLbackendConnectRetry",Default:"5"}).subscribe({next:e=>this.WOLbackendConnectRetry=Number(e.String),error:()=>this.errorCount++}),this.mythService.GetSetting({HostName:"_GLOBAL_",Key:"WOLbackendCommand",Default:""}).subscribe({next:e=>this.WOLbackendCommand=e.String,error:()=>this.errorCount++}),this.mythService.GetSetting({HostName:this.hostName,Key:"SleepCommand",Default:""}).subscribe({next:e=>this.SleepCommand=e.String,error:()=>this.errorCount++}),this.mythService.GetSetting({HostName:this.hostName,Key:"WakeUpCommand",Default:""}).subscribe({next:e=>this.WakeUpCommand=e.String,error:()=>this.errorCount++})}saveForm(){this.successCount=0,this.errorCount=0,this.mythService.PutSetting({HostN
ame:"_GLOBAL_",Key:"WOLbackendReconnectWaitTime",Value:String(this.WOLbackendReconnectWaitTime)}).subscribe(this.bewObserver),this.mythService.PutSetting({HostName:"_GLOBAL_",Key:"WOLbackendConnectRetry",Value:String(this.WOLbackendConnectRetry)}).subscribe(this.bewObserver),this.mythService.PutSetting({HostName:"_GLOBAL_",Key:"WOLbackendCommand",Value:this.WOLbackendCommand}).subscribe(this.bewObserver),this.mythService.PutSetting({HostName:this.hostName,Key:"SleepCommand",Value:this.SleepCommand}).subscribe(this.bewObserver),this.mythService.PutSetting({HostName:this.hostName,Key:"WakeUpCommand",Value:this.WakeUpCommand}).subscribe(this.bewObserver)}}return
t.\u0275fac=function(e){return
new(e||t)(D(Me),D(qt))},t.\u0275cmp=z({type:t,selectors:[["app-backend-wakeup"]],viewQuery:function(e,n){if(1&e&&W(kQ,5),2&e){let
s;V(s=B())&&(n.currentForm=s.first)}},decls:7,vars:0,consts:[["name","backendwakeup",1,"ml-3","mr-3"],["backendwakeup","ngForm"],[1,"m-5"],["pTemplate","title"],["pTemp
late","subtitle"],["pTemplate","content"],["pTemplate","footer"],[1,"grid"],[1,"mb-4","w-full",3,"legend","toggleable","collapsed"],[1,"form-group","field"],["for","WOLbackendReconnectWaitTime",1,"label","block"],["name","WOLbackendReconnectWaitTime","id","WOLbackendReconnectWaitTime",3,"ngModel","showButtons","min","max","step","ngModelChange"],[1,"block"],["for","WOLbackendConnectRetry",1,"label","block"],["name","WOLbackendConnectRetry","id","WOLbackendConnectRetry",3,"ngModel","showButtons","min","max","step","ngModelChange"],["for","WOLbackendCommand",1,"label","block"],["pInputText","","id","WOLbackendCommand","name","WOLbackendCommand",1,"mb-2","form-control","w-full",3,"ngModel","ngModelChange"],["for","SleepCommand",1,"label","block"],["pInputText","","id","SleepCommand","name","SleepCommand",1,"mb-2","form-control","w-full",3,"ngModel","ngModelChange"],["for","WakeUpCommand",1,"label","block"],["pInputText","","id","WakeUpCommand","name","WakeUpCommand",1,"mb-2","form-cont
rol","w-full",3,"ngModel","ngModelChange"],[1,"grid","nogutter"],[1,"col-12"],["severity","success",3,"text",4,"ngIf"],["severity","error",3,"text",4,"ngIf"],["icon","pi
pi-save","iconPos","left",1,"col","pr-1",3,"label","disabled","onClick"],["severity","success",3,"text"],["severity","error",3,"text"]],template:function(e,n){1&e&&(l(0,"form",0,1)(2,"p-card",2),_(3,IQ,2,3,"ng-template",3),_(4,EQ,2,3,"ng-template",4),_(5,RQ,45,53,"ng-template",5),_(6,AQ,6,6,"ng-template",6),c()())},directives:[ze,Ue,He,Ne,ne,Ui,pt,Te,_e,Ye,Q,qe,ve],pipes:[ce],styles:[""]}),t})();const
FQ=["backendcontrol"];function
NQ(t,i){1&t&&(g(0),m(1,"translate")),2&t&&T("
",f(1,1,"settings.backendctrl.title")," ")}function
VQ(t,i){1&t&&(g(0),m(1,"translate")),2&t&&T("
",f(1,1,"settings.backendctrl.subtitle")," ")}function
BQ(t,i){if(1&t){const
e=I();l(0,"div",7)(1,"div",8)(2,"div",9)(3,"label",10),g(4),m(5,"translate"),c(),l(6,"input",11,12),C("ngModelChange",function(s){return
v(e),d().BackendStopCommand=s}),c
(),l(8,"small",13),g(9),m(10,"translate"),c()(),l(11,"div",9)(12,"label",14),g(13),m(14,"translate"),c(),l(15,"input",15,12),C("ngModelChange",function(s){return
v(e),d().BackendStartCommand=s}),c(),l(17,"small",13),g(18),m(19,"translate"),c()()()()}if(2&t){const
e=d();a(4),S(f(5,6,"settings.backendctrl.stop_label")),a(2),p("ngModel",e.BackendStopCommand),a(3),T("
",f(10,8,"settings.backendctrl.stop_desc"),"
"),a(4),S(f(14,10,"settings.backendctrl.start_label")),a(2),p("ngModel",e.BackendStartCommand),a(3),T("
",f(19,12,"settings.backendctrl.start_desc")," ")}}function
HQ(t,i){1&t&&(k(0,"p-message",21),m(1,"translate")),2&t&&x("text",f(1,1,"common.savesuccess"))}function
qQ(t,i){1&t&&(k(0,"p-message",22),m(1,"translate")),2&t&&x("text",f(1,1,"common.networkfail"))}function
GQ(t,i){if(1&t){const
e=I();l(0,"div",16)(1,"div",17),_(2,HQ,2,3,"p-message",18),_(3,qQ,2,3,"p-message",19),c(),l(4,"p-button",20),C("onClick",function(){v(e);const
s=d(),r=F(1);return s.saveForm(),r.form.markAsPr
istine()}),m(5,"translate"),c()()}if(2&t){const
e=d(),n=F(1);a(2),p("ngIf",e.successCount>0&&0==e.errorCount&&!n.dirty),a(1),p("ngIf",e.errorCount>0),a(1),x("label",f(5,4,"common.save")),p("disabled",!n.dirty||e.setupService.schedulingEnabled)}}let
UQ=(()=>{class
t{constructor(e,n){this.setupService=e,this.mythService=n,this.successCount=0,this.errorCount=0,this.BackendStopCommand="killall
mythbackend",this.BackendStartCommand="mythbackend",this.becObserver={next:s=>{s.bool?this.successCount++:(this.errorCount++,this.currentForm&&this.currentForm.form.markAsDirty())},error:s=>{console.error(s),this.errorCount++,this.currentForm&&this.currentForm.form.markAsDirty()}}}ngOnInit(){}ngAfterViewInit(){this.setupService.setCurrentForm(this.currentForm)}getBackendControl(){this.mythService.GetSetting({HostName:"_GLOBAL_",Key:"BackendStopCommand",Default:"killall
mythbackend"}).subscribe({next:e=>this.BackendStopCommand=e.String,error:()=>this.errorCount++}),this.mythService.GetSetting({Host
Name:"_GLOBAL_",Key:"BackendStartCommand",Default:"mythbackend"}).subscribe({next:e=>this.BackendStartCommand=e.String,error:()=>this.errorCount++})}saveForm(){this.successCount=0,this.errorCount=0,this.mythService.PutSetting({HostName:"_GLOBAL_",Key:"BackendStopCommand",Value:this.BackendStopCommand}).subscribe(this.becObserver),this.mythService.PutSetting({HostName:"_GLOBAL_",Key:"BackendStartCommand",Value:this.BackendStartCommand}).subscribe(this.becObserver)}}return
t.\u0275fac=function(e){return
new(e||t)(D(Me),D(qt))},t.\u0275cmp=z({type:t,selectors:[["app-backend-control"]],viewQuery:function(e,n){if(1&e&&W(FQ,5),2&e){let
s;V(s=B())&&(n.currentForm=s.first)}},decls:7,vars:0,consts:[["name","backendcontrol",1,"ml-3","mr-3"],["backendcontrol","ngForm"],[1,"m-5"],["pTemplate","title"],["pTemplate","subtitle"],["pTemplate","content"],["pTemplate","footer"],[1,"grid"],[1,"mb-4","w-full"],[1,"form-group","field"],["for","BackendStopCommand",1,"label","block"],["pInputText","","id"
,"BackendStopCommand","name","BackendStopCommand",1,"mb-2","form-control","w-full",3,"ngModel","ngModelChange"],["MiscStatusScript","ngModel"],[1,"block"],["for","BackendStartCommand",1,"label","block"],["pInputText","","id","BackendStartCommand","name","BackendStartCommand",1,"mb-2","form-control","w-full",3,"ngModel","ngModelChange"],[1,"grid","nogutter"],[1,"col-12"],["severity","success",3,"text",4,"ngIf"],["severity","error",3,"text",4,"ngIf"],["icon","pi
pi-save","iconPos","left",1,"col","pr-1",3,"label","disabled","onClick"],["severity","success",3,"text"],["severity","error",3,"text"]],template:function(e,n){1&e&&(l(0,"form",0,1)(2,"p-card",2),_(3,NQ,2,3,"ng-template",3),_(4,VQ,2,3,"ng-template",4),_(5,BQ,20,14,"ng-template",5),_(6,GQ,6,6,"ng-template",6),c()())},directives:[ze,Ue,He,Ne,ne,Ye,Te,_e,Q,qe,ve],pipes:[ce],styles:[""]}),t})();const
zQ=["jobqbackend"],jQ=["JobQueueWindowStartHT"],$Q=["JobQueueWindowEndHT"];function
WQ(t,i){1&t&&(g(0),m(1,"translate")),2&t&&T("
",f
(1,1,"settings.jobqbackend.title")," ")}function
KQ(t,i){1&t&&(g(0),m(1,"translate")),2&t&&T("
",f(1,1,"settings.jobqbackend.subtitle")," ")}function
QQ(t,i){if(1&t){const
e=I();l(0,"div",7)(1,"div",8)(2,"div",9)(3,"label",10),g(4),m(5,"translate"),c(),l(6,"p-inputNumber",11),C("ngModelChange",function(s){return
v(e),d().JobQueueMaxSimultaneousJobs=s}),c(),l(7,"small",12),g(8),m(9,"translate"),c()(),l(10,"div",9)(11,"label",13),g(12),m(13,"translate"),c(),l(14,"p-inputNumber",14),C("ngModelChange",function(s){return
v(e),d().JobQueueCheckFrequency=s}),c(),l(15,"small",12),g(16),m(17,"translate"),c()(),l(18,"div",9)(19,"label",15),g(20),m(21,"translate"),c(),l(22,"p-calendar",16,17),C("ngModelChange",function(s){return
v(e),d().JobQueueWindowStart=s}),c(),l(24,"small",12),g(25),m(26,"translate"),c()(),l(27,"div",9)(28,"label",18),g(29),m(30,"translate"),c(),l(31,"p-calendar",19,20),C("ngModelChange",function(s){return
v(e),d().JobQueueWindowEnd=s}),c(),l(33,"small",12),g(34),m(35,"tr
anslate"),c()(),l(36,"div",9)(37,"label",21),g(38),m(39,"translate"),c(),l(40,"p-dropdown",22),C("ngModelChange",function(s){return
v(e),d().JobQueueCPU=s}),c(),l(41,"small",12),g(42),m(43,"translate"),c()(),l(44,"div",9)(45,"p-checkbox",23),C("ngModelChange",function(s){return
v(e),d().JobAllowMetadata=s}),m(46,"translate"),c(),l(47,"small",12),g(48),m(49,"translate"),c()(),l(50,"div",9)(51,"p-checkbox",24),C("ngModelChange",function(s){return
v(e),d().JobAllowCommFlag=s}),m(52,"translate"),c(),l(53,"small",12),g(54),m(55,"translate"),c()(),l(56,"div",9)(57,"p-checkbox",25),C("ngModelChange",function(s){return
v(e),d().JobAllowTranscode=s}),m(58,"translate"),c(),l(59,"small",12),g(60),m(61,"translate"),c()(),l(62,"div",9)(63,"p-checkbox",26),C("ngModelChange",function(s){return
v(e),d().JobAllowPreview=s}),m(64,"translate"),c(),l(65,"small",12),g(66),m(67,"translate"),c()(),l(68,"div",9)(69,"p-checkbox",27),C("ngModelChange",function(s){return
v(e),d().JobAllowUserJob1=s}),c(),l(70
,"small",12),g(71),m(72,"translate"),c()(),l(73,"div",9)(74,"p-checkbox",28),C("ngModelChange",function(s){return
v(e),d().JobAllowUserJob2=s}),c(),l(75,"small",12),g(76),m(77,"translate"),c()(),l(78,"div",9)(79,"p-checkbox",29),C("ngModelChange",function(s){return
v(e),d().JobAllowUserJob3=s}),c(),l(80,"small",12),g(81),m(82,"translate"),c()(),l(83,"div",9)(84,"p-checkbox",30),C("ngModelChange",function(s){return
v(e),d().JobAllowUserJob4=s}),c(),l(85,"small",12),g(86),m(87,"translate"),c()()()()}if(2&t){const
e=d();a(4),S(f(5,60,"settings.jobqbackend.maxjobs_label")),a(2),p("ngModel",e.JobQueueMaxSimultaneousJobs)("showButtons",!0)("min",1)("max",10)("step",1),a(2),T("
",f(9,62,"settings.jobqbackend.maxjobs_desc"),"
"),a(4),S(f(13,64,"settings.jobqbackend.freq_label")),a(2),p("ngModel",e.JobQueueCheckFrequency)("showButtons",!0)("min",5)("max",300)("step",5),a(2),T("
",f(17,66,"settings.jobqbackend.freq_desc"),"
"),a(4),S(f(21,68,"settings.jobqbackend.start_label")),a(2),p("ngMode
l",e.JobQueueWindowStart)("timeOnly",!0)("readonlyInput",!0),a(3),T("
",f(26,70,"settings.jobqbackend.start_desc"),"
"),a(4),S(f(30,72,"settings.jobqbackend.end_label")),a(2),p("ngModel",e.JobQueueWindowEnd)("timeOnly",!0)("readonlyInput",!0),a(3),T("
",f(35,74,"settings.jobqbackend.end_desc"),"
"),a(4),S(f(39,76,"settings.jobqbackend.cpu_label")),a(2),p("options",e.cpuOptions)("ngModel",e.JobQueueCPU),a(2),T("
",f(43,78,"settings.jobqbackend.cpu_desc"),"
"),a(3),x("label",f(46,80,"settings.jobqbackend.meta_label")),p("ngModel",e.JobAllowMetadata)("binary",!0),a(3),T("
",f(49,82,"settings.jobqbackend.allow_desc"),"
"),a(3),x("label",f(52,84,"settings.jobqbackend.comm_label")),p("ngModel",e.JobAllowCommFlag)("binary",!0),a(3),T("
",f(55,86,"settings.jobqbackend.allow_desc"),"
"),a(3),x("label",f(58,88,"settings.jobqbackend.trans_label")),p("ngModel",e.JobAllowTranscode)("binary",!0),a(3),T("
",f(61,90,"settings.jobqbackend.allow_desc"),"
"),a(3),x("label",f(64,92,"settings.jobqbacken
d.preview_label")),p("ngModel",e.JobAllowPreview)("binary",!0),a(3),T("
",f(67,94,"settings.jobqbackend.allow_desc"),"
"),a(3),x("label",e.JobQCmds.UserJobDesc[0]),p("ngModel",e.JobAllowUserJob1)("binary",!0),a(2),T("
",f(72,96,"settings.jobqbackend.allow_desc"),"
"),a(3),x("label",e.JobQCmds.UserJobDesc[1]),p("ngModel",e.JobAllowUserJob2)("binary",!0),a(2),T("
",f(77,98,"settings.jobqbackend.allow_desc"),"
"),a(3),x("label",e.JobQCmds.UserJobDesc[2]),p("ngModel",e.JobAllowUserJob3)("binary",!0),a(2),T("
",f(82,100,"settings.jobqbackend.allow_desc"),"
"),a(3),x("label",e.JobQCmds.UserJobDesc[3]),p("ngModel",e.JobAllowUserJob4)("binary",!0),a(2),T("
",f(87,102,"settings.jobqbackend.allow_desc")," ")}}function
JQ(t,i){1&t&&(k(0,"p-message",36),m(1,"translate")),2&t&&x("text",f(1,1,"common.savesuccess"))}function
YQ(t,i){1&t&&(k(0,"p-message",37),m(1,"translate")),2&t&&x("text",f(1,1,"common.networkfail"))}function
ZQ(t,i){if(1&t){const
e=I();l(0,"div",31)(1,"div",32),_(2,JQ,2,3,"p-mes
sage",33),_(3,YQ,2,3,"p-message",34),c(),l(4,"p-button",35),C("onClick",function(){v(e);const
s=d(),r=F(1);return
s.saveForm(),r.form.markAsPristine()}),m(5,"translate"),c()()}if(2&t){const
e=d(),n=F(1);a(2),p("ngIf",e.successCount>0&&0==e.errorCount&&!n.dirty),a(1),p("ngIf",e.errorCount>0),a(1),x("label",f(5,4,"common.save")),p("disabled",!n.dirty||e.setupService.schedulingEnabled)}}let
XQ=(()=>{class
t{constructor(e,n,s){this.setupService=e,this.translate=n,this.mythService=s,this.successCount=0,this.errorCount=0,this.hostName="",this.JobQueueMaxSimultaneousJobs=1,this.JobQueueCheckFrequency=60,this.JobQueueWindowStart=new
Date(0),this.JobQueueWindowStartHT$=new Je,this.JobQueueWindowEnd=new
Date(0),this.JobQueueWindowEndHT$=new
Je,this.JobQueueCPU="0",this.JobAllowMetadata=!0,this.JobAllowCommFlag=!0,this.JobAllowTranscode=!0,this.JobAllowPreview=!0,this.JobAllowUserJob1=!1,this.JobAllowUserJob2=!1,this.JobAllowUserJob3=!1,this.JobAllowUserJob4=!1,this.cpuOptions=[{name:"settings
.jobqbackend.cpu_low",code:"0"},{name:"settings.jobqbackend.cpu_med",code:"1"},{name:"settings.jobqbackend.cpu_high",code:"2"}],this.jqbObserver={next:r=>{r.bool?this.successCount++:(this.errorCount++,this.currentForm&&this.currentForm.form.markAsDirty())},error:r=>{console.error(r),this.errorCount++,this.currentForm&&this.currentForm.form.markAsDirty()}},this.getJobQBackend(),this.JobQueueWindowStartHT$.subscribe({complete:()=>this.JobQueueWindowStartHT.updateInputfield()}),this.JobQueueWindowEndHT$.subscribe({complete:()=>this.JobQueueWindowEndHT.updateInputfield()}),this.JobQCmds=this.setupService.getJobQCommands(),n.get(this.cpuOptions[0].name).subscribe(r=>this.cpuOptions[0].name=r),n.get(this.cpuOptions[1].name).subscribe(r=>this.cpuOptions[1].name=r),n.get(this.cpuOptions[2].name).subscribe(r=>this.cpuOptions[2].name=r)}ngOnInit(){}ngAfterViewInit(){this.setupService.setCurrentForm(this.currentForm)}getJobQBackend(){this.successCount=0,this.errorCount=0,this.setupService.pars
eTime(this.JobQueueWindowStart,"00:00"),this.setupService.parseTime(this.JobQueueWindowEnd,"23:59"),this.mythService.GetHostName().subscribe({next:e=>{this.hostName=e.String,this.getSettings()},error:()=>this.errorCount++})}getSettings(){this.mythService.GetSetting({HostName:this.hostName,Key:"JobQueueMaxSimultaneousJobs",Default:"1"}).subscribe({next:e=>this.JobQueueMaxSimultaneousJobs=Number(e.String),error:()=>this.errorCount++}),this.mythService.GetSetting({HostName:this.hostName,Key:"JobQueueCheckFrequency",Default:"60"}).subscribe({next:e=>this.JobQueueCheckFrequency=Number(e.String),error:()=>this.errorCount++}),this.JobQueueWindowStartHT$=this.mythService.GetSetting({HostName:this.hostName,Key:"JobQueueWindowStart",Default:"00:00"}),this.JobQueueWindowStartHT$.subscribe({next:e=>{this.setupService.parseTime(this.JobQueueWindowStart,e.String),this.JobQueueWindowStartHT.updateInputfield()},error:()=>this.errorCount++}),this.JobQueueWindowEndHT$=this.mythService.GetSetting({Hos
tName:this.hostName,Key:"JobQueueWindowEnd",Default:"23:59"}),this.JobQueueWindowEndHT$.subscribe({next:e=>{this.setupService.parseTime(this.JobQueueWindowEnd,e.String),this.JobQueueWindowEndHT.updateInputfield()},error:()=>this.errorCount++}),this.mythService.GetSetting({HostName:this.hostName,Key:"JobQueueCPU",Default:"0"}).subscribe({next:e=>this.JobQueueCPU=e.String,error:()=>this.errorCount++}),this.mythService.GetSetting({HostName:this.hostName,Key:"JobAllowMetadata",Default:"1"}).subscribe({next:e=>this.JobAllowMetadata="1"==e.String,error:()=>this.errorCount++}),this.mythService.GetSetting({HostName:this.hostName,Key:"JobAllowCommFlag",Default:"1"}).subscribe({next:e=>this.JobAllowCommFlag="1"==e.String,error:()=>this.errorCount++}),this.mythService.GetSetting({HostName:this.hostName,Key:"JobAllowTranscode",Default:"1"}).subscribe({next:e=>this.JobAllowTranscode="1"==e.String,error:()=>this.errorCount++}),this.mythService.GetSetting({HostName:this.hostName,Key:"JobAllowPrevi
ew",Default:"1"}).subscribe({next:e=>this.JobAllowPreview="1"==e.String,error:()=>this.errorCount++}),this.mythService.GetSetting({HostName:this.hostName,Key:"JobAllowUserJob1",Default:"0"}).subscribe({next:e=>this.JobAllowUserJob1="1"==e.String,error:()=>this.errorCount++}),this.mythService.GetSetting({HostName:this.hostName,Key:"JobAllowUserJob2",Default:"0"}).subscribe({next:e=>this.JobAllowUserJob2="1"==e.String,error:()=>this.errorCount++}),this.mythService.GetSetting({HostName:this.hostName,Key:"JobAllowUserJob3",Default:"0"}).subscribe({next:e=>this.JobAllowUserJob3="1"==e.String,error:()=>this.errorCount++}),this.mythService.GetSetting({HostName:this.hostName,Key:"JobAllowUserJob4",Default:"0"}).subscribe({next:e=>this.JobAllowUserJob4="1"==e.String,error:()=>this.errorCount++})}saveForm(){this.successCount=0,this.errorCount=0,this.mythService.PutSetting({HostName:this.hostName,Key:"JobQueueMaxSimultaneousJobs",Value:String(this.JobQueueMaxSimultaneousJobs)}).subscribe(this.
jqbObserver),this.mythService.PutSetting({HostName:this.hostName,Key:"JobQueueCheckFrequency",Value:String(this.JobQueueCheckFrequency)}).subscribe(this.jqbObserver),this.mythService.PutSetting({HostName:this.hostName,Key:"JobQueueWindowStart",Value:this.setupService.formatTime(this.JobQueueWindowStart)}).subscribe(this.jqbObserver),this.mythService.PutSetting({HostName:this.hostName,Key:"JobQueueWindowEnd",Value:this.setupService.formatTime(this.JobQueueWindowEnd)}).subscribe(this.jqbObserver),this.mythService.PutSetting({HostName:this.hostName,Key:"JobQueueCPU",Value:this.JobQueueCPU}).subscribe(this.jqbObserver),this.mythService.PutSetting({HostName:this.hostName,Key:"JobAllowMetadata",Value:this.JobAllowMetadata?"1":"0"}).subscribe(this.jqbObserver),this.mythService.PutSetting({HostName:this.hostName,Key:"JobAllowCommFlag",Value:this.JobAllowCommFlag?"1":"0"}).subscribe(this.jqbObserver),this.mythService.PutSetting({HostName:this.hostName,Key:"JobAllowTranscode",Value:this.JobAl
lowTranscode?"1":"0"}).subscribe(this.jqbObserver),this.mythService.PutSetting({HostName:this.hostName,Key:"JobAllowPreview",Value:this.JobAllowPreview?"1":"0"}).subscribe(this.jqbObserver),this.mythService.PutSetting({HostName:this.hostName,Key:"JobAllowUserJob1",Value:this.JobAllowUserJob1?"1":"0"}).subscribe(this.jqbObserver),this.mythService.PutSetting({HostName:this.hostName,Key:"JobAllowUserJob2",Value:this.JobAllowUserJob2?"1":"0"}).subscribe(this.jqbObserver),this.mythService.PutSetting({HostName:this.hostName,Key:"JobAllowUserJob3",Value:this.JobAllowUserJob3?"1":"0"}).subscribe(this.jqbObserver),this.mythService.PutSetting({HostName:this.hostName,Key:"JobAllowUserJob4",Value:this.JobAllowUserJob4?"1":"0"}).subscribe(this.jqbObserver)}}return
t.\u0275fac=function(e){return
new(e||t)(D(Me),D(Oe),D(qt))},t.\u0275cmp=z({type:t,selectors:[["app-jobqueue-backend"]],viewQuery:function(e,n){if(1&e&&(W(zQ,5),W(jQ,5),W($Q,5)),2&e){let
s;V(s=B())&&(n.currentForm=s.first),V(s=B())&&(n
.JobQueueWindowStartHT=s.first),V(s=B())&&(n.JobQueueWindowEndHT=s.first)}},decls:7,vars:0,consts:[["name","jobqbackend",1,"ml-3","mr-3"],["jobqbackend","ngForm"],[1,"m-5"],["pTemplate","title"],["pTemplate","subtitle"],["pTemplate","content"],["pTemplate","footer"],[1,"grid"],[1,"mb-4","w-full"],[1,"form-group","field"],["for","JobQueueMaxSimultaneousJobs",1,"label","block"],["name","JobQueueMaxSimultaneousJobs","id","JobQueueMaxSimultaneousJobs",3,"ngModel","showButtons","min","max","step","ngModelChange"],[1,"block"],["for","JobQueueCheckFrequency",1,"label","block"],["name","JobQueueCheckFrequency","id","JobQueueCheckFrequency",3,"ngModel","showButtons","min","max","step","ngModelChange"],["for","JobQueueWindowStart",1,"label","block"],["name","JobQueueWindowStart","id","JobQueueWindowStart","ngControl","JobQueueWindowStart",3,"ngModel","timeOnly","readonlyInput","ngModelChange"],["JobQueueWindowStartHT",""],["for","JobQueueWindowEnd",1,"label","block"],["name","JobQueueWindowEn
d","id","JobQueueWindowEnd","ngControl","JobQueueWindowEnd",3,"ngModel","timeOnly","readonlyInput","ngModelChange"],["JobQueueWindowEndHT",""],["for","JobQueueCPU",1,"label","block"],["optionLabel","name","optionValue","code","name","JobQueueCPU",1,"block","w-15rem","mb-2",3,"options","ngModel","ngModelChange"],["inputId","JobAllowMetadata","name","JobAllowMetadata",1,"label","mb-2","w-full",3,"ngModel","binary","label","ngModelChange"],["inputId","JobAllowCommFlag","name","JobAllowCommFlag",1,"label","mb-2","w-full",3,"ngModel","binary","label","ngModelChange"],["inputId","JobAllowTranscode","name","JobAllowTranscode",1,"label","mb-2","w-full",3,"ngModel","binary","label","ngModelChange"],["inputId","JobAllowPreview","name","JobAllowPreview",1,"label","mb-2","w-full",3,"ngModel","binary","label","ngModelChange"],["inputId","JobAllowUserJob1","name","JobAllowUserJob1",1,"label","mb-2","w-full",3,"ngModel","binary","label","ngModelChange"],["inputId","JobAllowUserJob2","name","JobAll
owUserJob2",1,"label","mb-2","w-full",3,"ngModel","binary","label","ngModelChange"],["inputId","JobAllowUserJob3","name","JobAllowUserJob3",1,"label","mb-2","w-full",3,"ngModel","binary","label","ngModelChange"],["inputId","JobAllowUserJob4","name","JobAllowUserJob4",1,"label","mb-2","w-full",3,"ngModel","binary","label","ngModelChange"],[1,"grid","nogutter"],[1,"col-12"],["severity","success",3,"text",4,"ngIf"],["severity","error",3,"text",4,"ngIf"],["icon","pi
pi-save","iconPos","left",1,"col","pr-1",3,"label","disabled","onClick"],["severity","success",3,"text"],["severity","error",3,"text"]],template:function(e,n){1&e&&(l(0,"form",0,1)(2,"p-card",2),_(3,WQ,2,3,"ng-template",3),_(4,KQ,2,3,"ng-template",4),_(5,QQ,88,104,"ng-template",5),_(6,ZQ,6,6,"ng-template",6),c()())},directives:[ze,Ue,He,Ne,ne,pt,Te,_e,xr,Ot,sn,Q,qe,ve],pipes:[ce],styles:[""]}),t})();const
eJ=["jobqglobal"];function
tJ(t,i){1&t&&(g(0),m(1,"translate")),2&t&&T("
",f(1,1,"settings.jobqglobal.title")," ")}functi
on nJ(t,i){}function iJ(t,i){if(1&t){const
e=I();l(0,"div",7)(1,"div",8)(2,"div",9)(3,"p-checkbox",10),C("ngModelChange",function(s){return
v(e),d().JobsRunOnRecordHost=s}),m(4,"translate"),c(),l(5,"small",11),g(6),m(7,"translate"),c()(),l(8,"div",9)(9,"p-checkbox",12),C("ngModelChange",function(s){return
v(e),d().AutoCommflagWhileRecording=s}),m(10,"translate"),c(),l(11,"small",11),g(12),m(13,"translate"),c()(),l(14,"div",9)(15,"label",13),g(16),m(17,"translate"),c(),l(18,"input",14),C("ngModelChange",function(s){return
v(e),d().JobQueueCommFlagCommand=s}),c(),l(19,"small",11),g(20),m(21,"translate"),c()(),l(22,"div",9)(23,"label",15),g(24),m(25,"translate"),c(),l(26,"input",16),C("ngModelChange",function(s){return
v(e),d().JobQueueTranscodeCommand=s}),c(),l(27,"small",11),g(28),m(29,"translate"),c()(),l(30,"div",9)(31,"p-checkbox",17),C("ngModelChange",function(s){return
v(e),d().AutoTranscodeBeforeAutoCommflag=s}),m(32,"translate"),c(),l(33,"small",11),g(34),m(35,"translate"),c()
(),l(36,"div",9)(37,"p-checkbox",18),C("ngModelChange",function(s){return
v(e),d().SaveTranscoding=s}),m(38,"translate"),c(),l(39,"small",11),g(40),m(41,"translate"),c()()()()}if(2&t){const
e=d();a(3),x("label",f(4,22,"settings.jobqglobal.runonrechost_label")),p("ngModel",e.JobsRunOnRecordHost)("binary",!0),a(3),T("
",f(7,24,"settings.jobqglobal.runonrechost_desc"),"
"),a(3),x("label",f(10,26,"settings.jobqglobal.startcomm_label")),p("ngModel",e.AutoCommflagWhileRecording)("binary",!0),a(3),T("
",f(13,28,"settings.jobqglobal.startcomm_desc"),"
"),a(4),S(f(17,30,"settings.jobqglobal.commcmd_label")),a(2),p("ngModel",e.JobQueueCommFlagCommand),a(2),T("
",f(21,32,"settings.jobqglobal.commcmd_desc"),"
"),a(4),S(f(25,34,"settings.jobqglobal.transcmd_label")),a(2),p("ngModel",e.JobQueueTranscodeCommand),a(2),T("
",f(29,36,"settings.jobqglobal.transcmd_desc"),"
"),a(3),x("label",f(32,38,"settings.jobqglobal.transfirst_label")),p("ngModel",e.AutoTranscodeBeforeAutoCommflag)("binary",!0),a(3
),T(" ",f(35,40,"settings.jobqglobal.transfirst_desc"),"
"),a(3),x("label",f(38,42,"settings.jobqglobal.transsave_label")),p("ngModel",e.SaveTranscoding)("binary",!0),a(3),T("
",f(41,44,"settings.jobqglobal.transsave_desc")," ")}}function
sJ(t,i){1&t&&(k(0,"p-message",24),m(1,"translate")),2&t&&x("text",f(1,1,"common.savesuccess"))}function
rJ(t,i){1&t&&(k(0,"p-message",25),m(1,"translate")),2&t&&x("text",f(1,1,"common.networkfail"))}function
oJ(t,i){if(1&t){const
e=I();l(0,"div",19)(1,"div",20),_(2,sJ,2,3,"p-message",21),_(3,rJ,2,3,"p-message",22),c(),l(4,"p-button",23),C("onClick",function(){v(e);const
s=d(),r=F(1);return
s.saveForm(),r.form.markAsPristine()}),m(5,"translate"),c()()}if(2&t){const
e=d(),n=F(1);a(2),p("ngIf",e.successCount>0&&0==e.errorCount&&!n.dirty),a(1),p("ngIf",e.errorCount>0),a(1),x("label",f(5,4,"common.save")),p("disabled",!n.dirty||e.setupService.schedulingEnabled)}}let
aJ=(()=>{class
t{constructor(e,n){this.setupService=e,this.mythService=n,this.successCou
nt=0,this.errorCount=0,this.JobsRunOnRecordHost=!1,this.AutoCommflagWhileRecording=!1,this.JobQueueCommFlagCommand="mythcommflag",this.JobQueueTranscodeCommand="mythtranscode",this.AutoTranscodeBeforeAutoCommflag=!1,this.SaveTranscoding=!1,this.JobQGlobalObs={next:s=>{s.bool?this.successCount++:(this.errorCount++,this.currentForm&&this.currentForm.form.markAsDirty())},error:s=>{console.error(s),this.errorCount++,this.currentForm&&this.currentForm.form.markAsDirty()}},this.getJobQGlobal()}ngOnInit(){}ngAfterViewInit(){this.setupService.setCurrentForm(this.currentForm)}getJobQGlobal(){this.mythService.GetSetting({HostName:"_GLOBAL_",Key:"JobsRunOnRecordHost",Default:"0"}).subscribe({next:e=>this.JobsRunOnRecordHost="1"==e.String,error:()=>this.errorCount++}),this.mythService.GetSetting({HostName:"_GLOBAL_",Key:"AutoCommflagWhileRecording",Default:"0"}).subscribe({next:e=>this.AutoCommflagWhileRecording="1"==e.String,error:()=>this.errorCount++}),this.mythService.GetSetting({HostName:"
_GLOBAL_",Key:"JobQueueCommFlagCommand",Default:"mythcommflag"}).subscribe({next:e=>this.JobQueueCommFlagCommand=e.String,error:()=>this.errorCount++}),this.mythService.GetSetting({HostName:"_GLOBAL_",Key:"JobQueueTranscodeCommand",Default:"mythtranscode"}).subscribe({next:e=>this.JobQueueTranscodeCommand=e.String,error:()=>this.errorCount++}),this.mythService.GetSetting({HostName:"_GLOBAL_",Key:"AutoTranscodeBeforeAutoCommflag",Default:"0"}).subscribe({next:e=>this.AutoTranscodeBeforeAutoCommflag="1"==e.String,error:()=>this.errorCount++}),this.mythService.GetSetting({HostName:"_GLOBAL_",Key:"SaveTranscoding",Default:"0"}).subscribe({next:e=>this.SaveTranscoding="1"==e.String,error:()=>this.errorCount++})}saveForm(){this.successCount=0,this.errorCount=0,this.successCount=0,this.errorCount=0,this.mythService.PutSetting({HostName:"_GLOBAL_",Key:"JobsRunOnRecordHost",Value:this.JobsRunOnRecordHost?"1":"0"}).subscribe(this.JobQGlobalObs),this.mythService.PutSetting({HostName:"_GLOBAL_"
,Key:"AutoCommflagWhileRecording",Value:this.AutoCommflagWhileRecording?"1":"0"}).subscribe(this.JobQGlobalObs),this.mythService.PutSetting({HostName:"_GLOBAL_",Key:"JobQueueCommFlagCommand",Value:this.JobQueueCommFlagCommand}).subscribe(this.JobQGlobalObs),this.mythService.PutSetting({HostName:"_GLOBAL_",Key:"JobQueueTranscodeCommand",Value:this.JobQueueTranscodeCommand}).subscribe(this.JobQGlobalObs),this.mythService.PutSetting({HostName:"_GLOBAL_",Key:"AutoTranscodeBeforeAutoCommflag",Value:this.AutoTranscodeBeforeAutoCommflag?"1":"0"}).subscribe(this.JobQGlobalObs),this.mythService.PutSetting({HostName:"_GLOBAL_",Key:"SaveTranscoding",Value:this.SaveTranscoding?"1":"0"}).subscribe(this.JobQGlobalObs)}}return
t.\u0275fac=function(e){return
new(e||t)(D(Me),D(qt))},t.\u0275cmp=z({type:t,selectors:[["app-jobqueue-global"]],viewQuery:function(e,n){if(1&e&&W(eJ,5),2&e){let
s;V(s=B())&&(n.currentForm=s.first)}},decls:7,vars:0,consts:[["name","jobqglobal",1,"ml-3","mr-3"],["jobqglobal",
"ngForm"],[1,"m-5"],["pTemplate","title"],["pTemplate","subtitle"],["pTemplate","content"],["pTemplate","footer"],[1,"grid"],[1,"mb-4","w-full"],[1,"form-group","field"],["inputId","JobsRunOnRecordHost","name","JobsRunOnRecordHost",1,"label","mb-2","w-full",3,"ngModel","binary","label","ngModelChange"],[1,"block"],["inputId","AutoCommflagWhileRecording","name","AutoCommflagWhileRecording",1,"label","mb-2","w-full",3,"ngModel","binary","label","ngModelChange"],["for","JobQueueCommFlagCommand",1,"label","block"],["pInputText","","id","JobQueueCommFlagCommand","name","JobQueueCommFlagCommand",1,"mb-2","form-control","w-full",3,"ngModel","ngModelChange"],["for","JobQueueTranscodeCommand",1,"label","block"],["pInputText","","id","JobQueueTranscodeCommand","name","JobQueueTranscodeCommand",1,"mb-2","form-control","w-full",3,"ngModel","ngModelChange"],["inputId","AutoTranscodeBeforeAutoCommflag","name","AutoTranscodeBeforeAutoCommflag",1,"label","mb-2","w-full",3,"ngModel","binary","label"
,"ngModelChange"],["inputId","SaveTranscoding","name","SaveTranscoding",1,"label","mb-2","w-full",3,"ngModel","binary","label","ngModelChange"],[1,"grid","nogutter"],[1,"col-12"],["severity","success",3,"text",4,"ngIf"],["severity","error",3,"text",4,"ngIf"],["icon","pi
pi-save","iconPos","left",1,"col","pr-1",3,"label","disabled","onClick"],["severity","success",3,"text"],["severity","error",3,"text"]],template:function(e,n){1&e&&(l(0,"form",0,1)(2,"p-card",2),_(3,tJ,2,3,"ng-template",3),_(4,nJ,0,0,"ng-template",4),_(5,iJ,42,46,"ng-template",5),_(6,oJ,6,6,"ng-template",6),c()())},directives:[ze,Ue,He,Ne,ne,sn,Te,_e,Ye,Q,qe,ve],pipes:[ce],styles:[""]}),t})();const
lJ=["jobqcommands"];function
cJ(t,i){1&t&&(g(0),m(1,"translate")),2&t&&T("
",f(1,1,"settings.jobqcommands.title")," ")}function
uJ(t,i){1&t&&(g(0),m(1,"translate")),2&t&&T("
",f(1,1,"settings.jobqcommands.subtitle")," ")}const
dS=function(t){return{num:t}};function dJ(t,i){if(1&t){const
e=I();l(0,"div")(1,"div",10)(2,"labe
l",11),k(3,"div",12),c(),l(4,"input",13,14),C("ngModelChange",function(s){const
o=v(e).$implicit;return
d(2).JobQCommandsData.UserJobDesc[o]=s}),c(),l(6,"small",15),g(7),m(8,"translate"),c()(),l(9,"div",10)(10,"label",11),k(11,"div",12),c(),l(12,"input",13,16),C("ngModelChange",function(s){const
o=v(e).$implicit;return
d(2).JobQCommandsData.UserJob[o]=s}),c(),l(14,"small",15),g(15),m(16,"translate"),c()()()}if(2&t){const
e=i.$implicit,n=d(2);a(2),Bn("for","UserJobDesc",e,""),a(1),p("translate","settings.jobqcommands.job_label")("translateParams",U(18,dS,e+1)),a(1),Bn("id","UserJobDesc",e,"")("name","UserJobDesc",e,""),p("ngModel",n.JobQCommandsData.UserJobDesc[e]),a(3),T("
",f(8,14,"settings.jobqcommands.job_desc"),"
"),a(3),Bn("for","UserJob",e,""),a(1),p("translate","settings.jobqcommands.command_label")("translateParams",U(20,dS,e+1)),a(1),Bn("id","UserJob",e,"")("name","UserJob",e,""),p("ngModel",n.JobQCommandsData.UserJob[e]),a(3),T("
",f(16,16,"settings.jobqcommands.command_de
sc")," ")}}function
pJ(t,i){if(1&t&&(l(0,"div",7)(1,"div",8),_(2,dJ,17,22,"div",9),c()()),2&t){const
e=d();a(2),p("ngForOf",e.items)}}function
hJ(t,i){1&t&&(k(0,"p-message",22),m(1,"translate")),2&t&&x("text",f(1,1,"common.savesuccess"))}function
mJ(t,i){1&t&&(k(0,"p-message",23),m(1,"translate")),2&t&&x("text",f(1,1,"common.networkfail"))}function
fJ(t,i){if(1&t){const
e=I();l(0,"div",17)(1,"div",18),_(2,hJ,2,3,"p-message",19),_(3,mJ,2,3,"p-message",20),c(),l(4,"p-button",21),C("onClick",function(){v(e);const
s=d(),r=F(1);return
s.saveForm(),r.form.markAsPristine()}),m(5,"translate"),c()()}if(2&t){const
e=d(),n=F(1);a(2),p("ngIf",e.JobQCommandsData.successCount>0&&0==e.JobQCommandsData.errorCount&&!n.dirty),a(1),p("ngIf",e.JobQCommandsData.errorCount>0),a(1),x("label",f(5,4,"common.save")),p("disabled",!n.dirty||e.setupService.schedulingEnabled)}}let
gJ=(()=>{class
t{constructor(e){this.setupService=e,this.items=[0,1,2,3],this.JobQCommandsData=this.setupService.getJobQCommands()}ng
OnInit(){}ngAfterViewInit(){this.setupService.setCurrentForm(this.currentForm)}saveForm(){this.setupService.saveJobQCommands(this.currentForm)}}return
t.\u0275fac=function(e){return
new(e||t)(D(Me))},t.\u0275cmp=z({type:t,selectors:[["app-jobqueue-commands"]],viewQuery:function(e,n){if(1&e&&W(lJ,5),2&e){let
s;V(s=B())&&(n.currentForm=s.first)}},decls:7,vars:0,consts:[["name","jobqcommands",1,"ml-3","mr-3"],["jobqcommands","ngForm"],[1,"m-5"],["pTemplate","title"],["pTemplate","subtitle"],["pTemplate","content"],["pTemplate","footer"],[1,"grid"],[1,"mb-4","w-full"],[4,"ngFor","ngForOf"],[1,"form-group","field"],[1,"label","block",3,"for"],[3,"translate","translateParams"],["pInputText","",1,"mb-2","form-control","w-full",3,"id","ngModel","name","ngModelChange"],["UserJobDesc{{item}}","ngModel"],[1,"block"],["UserJob{{item}}","ngModel"],[1,"grid","nogutter"],[1,"col-12"],["severity","success",3,"text",4,"ngIf"],["severity","error",3,"text",4,"ngIf"],["icon","pi
pi-save","iconPos","lef
t",1,"col","pr-1",3,"label","disabled","onClick"],["severity","success",3,"text"],["severity","error",3,"text"]],template:function(e,n){1&e&&(l(0,"form",0,1)(2,"p-card",2),_(3,cJ,2,3,"ng-template",3),_(4,uJ,2,3,"ng-template",4),_(5,pJ,3,1,"ng-template",5),_(6,fJ,6,6,"ng-template",6),c()())},directives:[ze,Ue,He,Ne,ne,at,mu,Ye,Te,_e,Q,qe,ve],pipes:[ce],styles:[""]}),t})();const
_J=["epgdownload"];function
bJ(t,i){1&t&&(g(0),m(1,"translate")),2&t&&T("
",f(1,1,"settings.epgdownload.title")," ")}function
vJ(t,i){}function CJ(t,i){if(1&t){const
e=I();l(0,"div",7)(1,"div",8)(2,"div",9)(3,"p-checkbox",10),C("ngModelChange",function(s){return
v(e),d().MythFillEnabled=s}),m(4,"translate"),c(),l(5,"small",11),g(6),m(7,"translate"),c()()()()}if(2&t){const
e=d();a(3),x("label",f(4,4,"settings.epgdownload.enabled_label")),p("ngModel",e.MythFillEnabled)("binary",!0),a(3),T("
",f(7,6,"settings.epgdownload.enabled_desc")," ")}}function
yJ(t,i){1&t&&(k(0,"p-message",17),m(1,"translate")),2&t&&x("tex
t",f(1,1,"common.savesuccess"))}function
wJ(t,i){1&t&&(k(0,"p-message",18),m(1,"translate")),2&t&&x("text",f(1,1,"common.networkfail"))}function
TJ(t,i){if(1&t){const
e=I();l(0,"div",12)(1,"div",13),_(2,yJ,2,3,"p-message",14),_(3,wJ,2,3,"p-message",15),c(),l(4,"p-button",16),C("onClick",function(){v(e);const
s=d(),r=F(1);return
s.saveForm(),r.form.markAsPristine()}),m(5,"translate"),c()()}if(2&t){const
e=d(),n=F(1);a(2),p("ngIf",e.successCount>0&&0==e.errorCount&&!n.dirty),a(1),p("ngIf",e.errorCount>0),a(1),x("label",f(5,4,"common.save")),p("disabled",!n.dirty||e.setupService.schedulingEnabled)}}let
SJ=(()=>{class
t{constructor(e,n){this.setupService=e,this.mythService=n,this.successCount=0,this.errorCount=0,this.MythFillEnabled=!0,this.EpgDownloadObs={next:s=>{s.bool?this.successCount++:(this.errorCount++,this.currentForm&&this.currentForm.form.markAsDirty())},error:s=>{console.error(s),this.errorCount++,this.currentForm&&this.currentForm.form.markAsDirty()}},this.getEpgDownload()}
ngOnInit(){}ngAfterViewInit(){this.setupService.setCurrentForm(this.currentForm)}getEpgDownload(){this.successCount=0,this.errorCount=0,this.mythService.GetSetting({HostName:"_GLOBAL_",Key:"MythFillEnabled",Default:"1"}).subscribe({next:e=>this.MythFillEnabled="1"==e.String,error:()=>this.errorCount++})}saveForm(){console.log("save
form
clicked"),this.successCount=0,this.errorCount=0,this.mythService.PutSetting({HostName:"_GLOBAL_",Key:"MythFillEnabled",Value:this.MythFillEnabled?"1":"0"}).subscribe(this.EpgDownloadObs)}}return
t.\u0275fac=function(e){return
new(e||t)(D(Me),D(qt))},t.\u0275cmp=z({type:t,selectors:[["app-epg-downloading"]],viewQuery:function(e,n){if(1&e&&W(_J,5),2&e){let
s;V(s=B())&&(n.currentForm=s.first)}},decls:7,vars:0,consts:[["name","epgdownload",1,"ml-3","mr-3"],["epgdownload","ngForm"],[1,"m-5"],["pTemplate","title"],["pTemplate","subtitle"],["pTemplate","content"],["pTemplate","footer"],[1,"grid"],[1,"mb-4","w-full"],[1,"form-group","field"],["inputId","Myth
FillEnabled","name","MythFillEnabled",1,"label","mb-2","w-full",3,"ngModel","binary","label","ngModelChange"],[1,"block"],[1,"grid","nogutter"],[1,"col-12"],["severity","success",3,"text",4,"ngIf"],["severity","error",3,"text",4,"ngIf"],["icon","pi
pi-save","iconPos","left",1,"col","pr-1",3,"label","disabled","onClick"],["severity","success",3,"text"],["severity","error",3,"text"]],template:function(e,n){1&e&&(l(0,"form",0,1)(2,"p-card",2),_(3,bJ,2,3,"ng-template",3),_(4,vJ,0,0,"ng-template",4),_(5,CJ,8,8,"ng-template",5),_(6,TJ,6,6,"ng-template",6),c()())},directives:[ze,Ue,He,Ne,ne,sn,Te,_e,Q,qe,ve],pipes:[ce],styles:[""]}),t})();function
xJ(t,i){if(1&t&&(l(0,"b"),g(1),c()),2&t){const
e=d();a(1),T("\xa0",e.dirtyMessages[0],"")}}function
DJ(t,i){1&t&&k(0,"app-host-address")}function
MJ(t,i){if(1&t&&(l(0,"b"),g(1),c()),2&t){const
e=d();a(1),T("\xa0",e.dirtyMessages[1],"")}}function
kJ(t,i){1&t&&k(0,"app-locale")}function
IJ(t,i){if(1&t&&(l(0,"b"),g(1),c()),2&t){const
e=d();a(1),T("\
xa0",e.dirtyMessages[2],"")}}function
EJ(t,i){1&t&&k(0,"app-misc-settings")}function
RJ(t,i){if(1&t&&(l(0,"b"),g(1),c()),2&t){const
e=d();a(1),T("\xa0",e.dirtyMessages[3],"")}}function
LJ(t,i){1&t&&k(0,"app-eit-scanner")}function
OJ(t,i){if(1&t&&(l(0,"b"),g(1),c()),2&t){const
e=d();a(1),T("\xa0",e.dirtyMessages[4],"")}}function
AJ(t,i){1&t&&k(0,"app-shutdown-wakeup")}function
PJ(t,i){if(1&t&&(l(0,"b"),g(1),c()),2&t){const
e=d();a(1),T("\xa0",e.dirtyMessages[5],"")}}function
FJ(t,i){1&t&&k(0,"app-backend-wakeup")}function
NJ(t,i){if(1&t&&(l(0,"b"),g(1),c()),2&t){const
e=d();a(1),T("\xa0",e.dirtyMessages[6],"")}}function
VJ(t,i){1&t&&k(0,"app-backend-control")}function
BJ(t,i){if(1&t&&(l(0,"b"),g(1),c()),2&t){const
e=d();a(1),T("\xa0",e.dirtyMessages[7],"")}}function
HJ(t,i){1&t&&k(0,"app-jobqueue-backend")}function
qJ(t,i){if(1&t&&(l(0,"b"),g(1),c()),2&t){const
e=d();a(1),T("\xa0",e.dirtyMessages[8],"")}}function
GJ(t,i){1&t&&k(0,"app-jobqueue-global")}function
UJ(t,i){if(1&t&&(l(0,"
b"),g(1),c()),2&t){const
e=d();a(1),T("\xa0",e.dirtyMessages[9],"")}}function
zJ(t,i){1&t&&k(0,"app-jobqueue-commands")}function
jJ(t,i){if(1&t&&(l(0,"b"),g(1),c()),2&t){const
e=d();a(1),T("\xa0",e.dirtyMessages[10],"")}}function
$J(t,i){1&t&&k(0,"app-epg-downloading")}let WJ=(()=>{class
t{constructor(e,n,s){this.setupService=e,this.translate=n,this.router=s,this.m_showHelp=!1,this.currentTab=-1,this.dirtyMessages=["","","","","","","","","","","","","","","",""],this.forms=[,,,,,,,,,,,,,,,,],this.dirtyText="settings.common.unsaved",this.warningText="settings.common.warning",this.setupService.setCurrentForm(null),n.get(this.dirtyText).subscribe(r=>this.dirtyText=r),n.get(this.warningText).subscribe(r=>this.warningText=r)}ngOnInit(){}onTabOpen(e){this.showDirty(),void
0===this.forms[e.index]&&(this.forms[e.index]=this.setupService.getCurrentForm()),this.currentTab=e.index,console.log("onTabOpen"),console.log(e),this.dirtyMessages[this.currentTab]=""}onTabClose(e){this.showDirty()}sho
wDirty(){-1!=this.currentTab&&(this.dirtyMessages[this.currentTab]=this.forms[this.currentTab].dirty?this.dirtyText:"")}showHelp(){this.m_showHelp=!0}confirm(e){return
oe(window.confirm(e))}canDeactivate(){return!(this.forms[this.currentTab]&&this.forms[this.currentTab].dirty||this.dirtyMessages.find(e=>e.length>0))||this.confirm(this.warningText)}onWindowClose(e){(this.forms[this.currentTab]&&this.forms[this.currentTab].dirty||this.dirtyMessages.find(n=>n.length>0))&&(e.preventDefault(),e.returnValue=!1)}}return
t.\u0275fac=function(e){return
new(e||t)(D(Me),D(Oe),D(It))},t.\u0275cmp=z({type:t,selectors:[["app-general-settings"]],hostBindings:function(e,n){1&e&&C("beforeunload",function(r){return
n.onWindowClose(r)},!1,ni)},decls:54,vars:42,consts:[[1,"col-12","w-full","p-0",3,"onClose","onOpen"],[3,"header"],["pTemplate","header"],["pTemplate","content"],[1,"flex","justify-content-end"],["icon","pi
pi-angle-left","iconPos","left",1,"p-3",3,"label","onClick"],["icon","pi
pi-angle-r
ight","iconPos","right",1,"p-3",3,"label","onClick"]],template:function(e,n){1&e&&(l(0,"p-card")(1,"h2"),g(2),m(3,"translate"),c(),l(4,"p-accordion",0),C("onClose",function(r){return
n.onTabClose(r)})("onOpen",function(r){return
n.onTabOpen(r)}),l(5,"p-accordionTab",1),m(6,"translate"),_(7,xJ,2,1,"ng-template",2),_(8,DJ,1,0,"ng-template",3),c(),l(9,"p-accordionTab",1),m(10,"translate"),_(11,MJ,2,1,"ng-template",2),_(12,kJ,1,0,"ng-template",3),c(),l(13,"p-accordionTab",1),m(14,"translate"),_(15,IJ,2,1,"ng-template",2),_(16,EJ,1,0,"ng-template",3),c(),l(17,"p-accordionTab",1),m(18,"translate"),_(19,RJ,2,1,"ng-template",2),_(20,LJ,1,0,"ng-template",3),c(),l(21,"p-accordionTab",1),m(22,"translate"),_(23,OJ,2,1,"ng-template",2),_(24,AJ,1,0,"ng-template",3),c(),l(25,"p-accordionTab",1),m(26,"translate"),_(27,PJ,2,1,"ng-template",2),_(28,FJ,1,0,"ng-template",3),c(),l(29,"p-accordionTab",1),m(30,"translate"),_(31,NJ,2,1,"ng-template",2),_(32,VJ,1,0,"ng-template",3),c(),l(33,"p-accordionTab"
,1),m(34,"translate"),_(35,BJ,2,1,"ng-template",2),_(36,HJ,1,0,"ng-template",3),c(),l(37,"p-accordionTab",1),m(38,"translate"),_(39,qJ,2,1,"ng-template",2),_(40,GJ,1,0,"ng-template",3),c(),l(41,"p-accordionTab",1),m(42,"translate"),_(43,UJ,2,1,"ng-template",2),_(44,zJ,1,0,"ng-template",3),c(),l(45,"p-accordionTab",1),m(46,"translate"),_(47,jJ,2,1,"ng-template",2),_(48,$J,1,0,"ng-template",3),c()(),l(49,"div",4)(50,"p-button",5),C("onClick",function(){return
n.router.navigate(["setupwizard/selectlanguage"])}),m(51,"translate"),c(),l(52,"p-button",6),C("onClick",function(){return
n.router.navigate(["setupwizard/capture-cards"])}),m(53,"translate"),c()()()),2&e&&(a(2),S(f(3,14,"settings.general.title")),a(3),x("header",f(6,16,"settings.hostaddress.title")),a(4),x("header",f(10,18,"settings.locale.title")),a(4),x("header",f(14,20,"settings.misc.title")),a(4),x("header",f(18,22,"settings.eit.title")),a(4),x("header",f(22,24,"settings.shutwake.title")),a(4),x("header",f(26,26,"settings.ba
ckendwake.title")),a(4),x("header",f(30,28,"settings.backendctrl.title")),a(4),x("header",f(34,30,"settings.jobqbackend.title")),a(4),x("header",f(38,32,"settings.jobqglobal.title")),a(4),x("header",f(42,34,"settings.jobqcommands.title")),a(4),x("header",f(46,36,"settings.epgdownload.title")),a(5),x("label",f(51,38,"common.back")),a(2),x("label",f(53,40,"common.next")))},directives:[Ne,Ss,Ts,ne,KK,iQ,dQ,vQ,MQ,PQ,UQ,XQ,aJ,gJ,SJ,ve],pipes:[ce],styles:["@media
screen and (max-width:
48rem){.p-card-body,.p-card-content,.p-accordion-content{padding:0rem!important}}\n"],encapsulation:2}),t})(),Gt=(()=>{class
t{constructor(e){this.httpClient=e,this.diseqcTypes=[{description:"Switch",type:"switch",inactive:!1},{description:"Rotor",type:"rotor",inactive:!1},{description:"Unicable",type:"scr",inactive:!1},{description:"LNB",type:"lnb",inactive:!1}]}GetCaptureCardList(e,n){let
s=(new ye).set("HostName",e).set("CardType",n);return
this.httpClient.get("/Capture/GetCaptureCardList",{params:s})}Ge
tCardTypeList(){return
this.httpClient.get("/Capture/GetCardTypeList",{})}UpdateCaptureCard(e,n,s){return
this.httpClient.post("/Capture/UpdateCaptureCard",{Cardid:e,Setting:n,Value:s})}DeleteCaptureCard(e){return
this.httpClient.post("/Capture/RemoveCardInput",{CardInputId:e})}AddCaptureCard(e){return
this.httpClient.post("/Capture/AddCaptureCard",e)}GetCaptureDeviceList(e){let
n=(new ye).set("CardType",e);return
this.httpClient.get("/Capture/GetCaptureDeviceList",{params:n})}GetDiseqcTreeList(){return
this.httpClient.get("/Capture/GetDiseqcTreeList",{})}AddDiseqcTree(e){return
this.httpClient.post("/Capture/AddDiseqcTree",e)}UpdateDiseqcTree(e){return
this.httpClient.post("/Capture/UpdateDiseqcTree",e)}DeleteDiseqcTree(e){return
this.httpClient.post("/Capture/RemoveDiseqcTree",{DiseqcId:e})}GetDiseqcConfigList(){return
this.httpClient.get("/Capture/GetDiseqcConfigList",{})}AddDiseqcConfig(e){return
this.httpClient.post("/Capture/AddDiseqcConfig",e)}DeleteDiseqcConfig(e){return
con
sole.log(e),this.httpClient.post("/Capture/RemoveDiseqcConfig",{CardId:e})}GetInputGroupList(){return
this.httpClient.get("/Capture/GetUserInputGroupList",{})}SetInputMaxRecordings(e,n){return
this.httpClient.post("/Capture/SetInputMaxRecordings",{InputId:e,Max:n})}AddUserInputGroup(e){return
this.httpClient.post("/Capture/AddUserInputGroup",{Name:e})}LinkInputGroup(e,n){return
this.httpClient.post("/Capture/LinkInputGroup",{InputId:e,InputGroupId:n})}UnlinkInputGroup(e,n){return
this.httpClient.post("/Capture/UnlinkInputGroup",{InputId:e,InputGroupId:n})}GetRecProfileGroupList(e,n,s){let
r=(new
ye).set("GroupId",e).set("ProfileId",n).set("OnlyInUse",s);return
this.httpClient.get("/Capture/GetRecProfileGroupList",{params:r})}AddRecProfile(e,n,s,r){return
this.httpClient.post("/Capture/AddRecProfile",{GroupId:e,ProfileName:n,VideoCodec:s,AudioCodec:r})}DeleteRecProfile(e){return
this.httpClient.post("/Capture/DeleteRecProfile",{ProfileId:e})}UpdateRecProfile(e,n,s){return
this.httpCl
ient.post("/Capture/UpdateRecProfile",{ProfileId:e,VideoCodec:n,AudioCodec:s})}UpdateRecProfileParam(e,n,s){return
this.httpClient.post("/Capture/UpdateRecProfileParam",{ProfileId:e,Name:n,Value:s})}GetCardSubType(e){let
n=(new ye).set("cardid",e);return
this.httpClient.get("/Capture/GetCardSubType",{params:n})}}return
t.\u0275fac=function(e){return
new(e||t)(K(Bi))},t.\u0275prov=X({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();function
KJ(t,i){if(1&t){const
e=I();l(0,"p-button",14),C("onClick",function(){return
v(e),d().displayModal=!1}),m(1,"translate"),c(),l(2,"p-button",15),C("onClick",function(){return
v(e),d().newCard()}),m(3,"translate"),c()}if(2&t){const
e=d();x("label",f(1,3,"common.cancel")),a(2),x("label",f(3,5,"common.ok")),p("disabled",""==e.selectedCardType.CardType)}}function
QJ(t,i){if(1&t){const
e=I();l(0,"p-button",16),C("click",function(){return
v(e),d().displayDeleteAllonHost=!1}),m(1,"translate"),c(),l(2,"p-button",17),C("click",function(){return
v(e),d(
).deleteAllOnHost()}),m(3,"translate"),c()}2&t&&(x("label",f(1,2,"common.no")),a(2),x("label",f(3,4,"common.yes")))}function
JJ(t,i){if(1&t){const
e=I();l(0,"p-button",16),C("click",function(){return
v(e),d().displayDeleteAll=!1}),m(1,"translate"),c(),l(2,"p-button",17),C("click",function(){return
v(e),d().deleteAllOnAllHosts()}),m(3,"translate"),c()}2&t&&(x("label",f(1,2,"common.no")),a(2),x("label",f(3,4,"common.yes")))}function
YJ(t,i){1&t&&(l(0,"div",18),k(1,"br")(2,"p-message",19),m(3,"translate"),k(4,"br"),c()),2&t&&(a(2),x("text",f(3,1,"settings.common.successful_delete")))}function
ZJ(t,i){1&t&&(l(0,"div",18),k(1,"br")(2,"p-message",20),m(3,"translate"),k(4,"br"),c()),2&t&&(a(2),x("text",f(3,1,"common.networkfail")))}function
XJ(t,i){if(1&t&&(l(0,"div",24)(1,"div",25),g(2),l(3,"b"),g(4),c()()()),2&t){const
e=d().index,n=d();a(2),yo(" ",n.m_CaptureCardsFiltered[e].CardType,"
",n.m_CaptureCardsFiltered[e].VideoDevice,"
(",n.m_CaptureCardsFiltered[e].DisplayName,") "),a(2),T("\
xa0",n.dirtyMessages[e],"")}}function eY(t,i){if(1&t){const
e=I();l(0,"p-button",16),C("click",function(){v(e);const
s=d(2).index;return
d().displayDeleteThis[s]=!1}),m(1,"translate"),c(),l(2,"p-button",17),C("click",function(){v(e);const
s=d(2).index;return
d().deleteThis(s)}),m(3,"translate"),c()}2&t&&(x("label",f(1,2,"common.no")),a(2),x("label",f(3,4,"common.yes")))}function
tY(t,i){if(1&t&&k(0,"app-ceton",31),2&t){const
e=d(2).index,n=d();p("card",n.m_CaptureCardsFiltered[e])("cardList",n.m_CaptureCardList)}}function
nY(t,i){if(1&t&&k(0,"app-dvb",32),2&t){const
e=d(2).index,n=d();p("card",n.m_CaptureCardsFiltered[e])("cardList",n.m_CaptureCardList)("diseqcTreeList",n.diseqcTreeList)("parent",n)}}function
iY(t,i){if(1&t&&k(0,"app-external",31),2&t){const
e=d(2).index,n=d();p("card",n.m_CaptureCardsFiltered[e])("cardList",n.m_CaptureCardList)}}function
sY(t,i){if(1&t&&k(0,"app-hdhomerun",31),2&t){const
e=d(2).index,n=d();p("card",n.m_CaptureCardsFiltered[e])("cardList",n.m_Captur
eCardList)}}function
rY(t,i){if(1&t&&k(0,"app-iptv",31),2&t){const
e=d(2).index,n=d();p("card",n.m_CaptureCardsFiltered[e])("cardList",n.m_CaptureCardList)}}function
oY(t,i){if(1&t&&k(0,"app-import",31),2&t){const
e=d(2).index,n=d();p("card",n.m_CaptureCardsFiltered[e])("cardList",n.m_CaptureCardList)}}function
aY(t,i){if(1&t&&k(0,"app-demo",31),2&t){const
e=d(2).index,n=d();p("card",n.m_CaptureCardsFiltered[e])("cardList",n.m_CaptureCardList)}}function
lY(t,i){if(1&t&&k(0,"app-v4l2",31),2&t){const
e=d(2).index,n=d();p("card",n.m_CaptureCardsFiltered[e])("cardList",n.m_CaptureCardList)}}function
cY(t,i){if(1&t&&k(0,"app-hdpvr",31),2&t){const
e=d(2).index,n=d();p("card",n.m_CaptureCardsFiltered[e])("cardList",n.m_CaptureCardList)}}function
uY(t,i){if(1&t&&k(0,"app-satip",31),2&t){const
e=d(2).index,n=d();p("card",n.m_CaptureCardsFiltered[e])("cardList",n.m_CaptureCardList)}}function
dY(t,i){if(1&t&&k(0,"app-vbox",31),2&t){const
e=d(2).index,n=d();p("card",n.m_CaptureCardsFiltered[e])
("cardList",n.m_CaptureCardList)}}function
pY(t,i){if(1&t&&k(0,"app-firewire",31),2&t){const
e=d(2).index,n=d();p("card",n.m_CaptureCardsFiltered[e])("cardList",n.m_CaptureCardList)}}function
hY(t,i){1&t&&(l(0,"div"),k(1,"br"),g(2,"Not Supported
"),c())}const
Dd=function(){return{width:"50vw"}},mY=function(t,i,e){return{CardType:t,VideoDevice:i,DisplayName:e}};function
fY(t,i){if(1&t){const
e=I();l(0,"p-button",26),C("onClick",function(){v(e);const
s=d().index;return
d().displayDeleteThis[s]=!0}),m(1,"translate"),c(),l(2,"p-dialog",2),C("visibleChange",function(s){v(e);const
r=d().index;return
d().displayDeleteThis[r]=s}),m(3,"translate"),l(4,"h2"),g(5),m(6,"translate"),c(),l(7,"p"),g(8),m(9,"translate"),c(),_(10,eY,4,6,"ng-template",4),c(),l(11,"div",27),_(12,tY,1,2,"app-ceton",28),_(13,nY,1,4,"app-dvb",29),_(14,iY,1,2,"app-external",28),_(15,sY,1,2,"app-hdhomerun",28),_(16,rY,1,2,"app-iptv",28),_(17,oY,1,2,"app-import",28),_(18,aY,1,2,"app-demo",28),_(19,lY,1,2,"app-v4l2",28),_(20
,cY,1,2,"app-hdpvr",28),_(21,uY,1,2,"app-satip",28),_(22,dY,1,2,"app-vbox",28),_(23,pY,1,2,"app-firewire",28),_(24,hY,3,0,"div",30),c()}if(2&t){const
e=d().index,n=d();x("label",f(1,24,"settings.capture.delete_this")),p("disabled",!n.m_CaptureCardsFiltered[e].CardId||n.setupService.schedulingEnabled),a(2),q(A(33,Dd)),x("header",f(3,26,"settings.capture.delete_this")),p("visible",n.displayDeleteThis[e])("modal",!0)("draggable",!1)("resizable",!1),a(3),S(f(6,28,"settings.common.ru_sure")),a(3),S(Dt(9,30,"settings.capture.delete_details",Qt(34,mY,n.m_CaptureCardsFiltered[e].CardType,n.m_CaptureCardsFiltered[e].VideoDevice,n.m_CaptureCardsFiltered[e].DisplayName))),a(3),p("ngSwitch",n.m_CaptureCardsFiltered[e].CardType),a(1),p("ngSwitchCase","CETON"),a(1),p("ngSwitchCase","DVB"),a(1),p("ngSwitchCase","EXTERNAL"),a(1),p("ngSwitchCase","HDHOMERUN"),a(1),p("ngSwitchCase","FREEBOX"),a(1),p("ngSwitchCase","IMPORT"),a(1),p("ngSwitchCase","DEMO"),a(1),p("ngSwitchCase","V4L2ENC"),a(1),p("ngSwit
chCase","HDPVR"),a(1),p("ngSwitchCase","SATIP"),a(1),p("ngSwitchCase","VBOX"),a(1),p("ngSwitchCase","FIREWIRE")}}function
gY(t,i){if(1&t){const
e=I();l(0,"p-accordionTab",21),C("selectedChange",function(s){const
o=v(e).index;return
d().activeTab[o]=s}),_(1,XJ,5,4,"ng-template",22),_(2,fY,25,38,"ng-template",23),c()}if(2&t){const
e=i.index,n=d();p("disabled",n.disabledTab[e])("selected",n.activeTab[e])}}const
_Y=function(){return{height:"50vh"}},pS=function(t){return{host:t}};let
hS=(()=>{class
t{constructor(e,n,s,r,o){this.mythService=e,this.router=n,this.captureCardService=s,this.setupService=r,this.translate=o,this.currentTab=-1,this.deletedTab=-1,this.dirtyMessages=[],this.forms=[],this.disabledTab=[],this.activeTab=[],this.displayDeleteThis=[],this.dirtyText="settings.common.unsaved",this.warningText="settings.common.warning",this.deletedText="settings.common.deleted",this.newText="settings.common.new",this.m_hostName="",this.displayModal=!1,this.selectedCardType={CardType:"",De
scription:""},this.displayDeleteAllonHost=!1,this.displayDeleteAll=!1,this.successCount=0,this.expectedCount=0,this.errorCount=0,this.deleteAll=!1,this.delObserver={next:u=>{u.bool?(this.successCount++,this.successCount==this.expectedCount&&(this.deleteAll?(this.loadCards(!0),this.deleteAll=!1):this.deletedTab>-1&&(this.dirtyMessages[this.deletedTab]=this.deletedText,this.disabledTab[this.deletedTab]=!0,this.activeTab[this.deletedTab]=!1,this.deletedTab=-1))):(this.errorCount++,this.deletedTab=-1,this.deleteAll=!1)},error:u=>{console.error(u),this.errorCount++,this.deleteAll=!1}},this.setupService.setCurrentForm(null),this.mythService.GetHostName().subscribe(u=>{this.m_hostName=u.String,this.loadCards(!0)}),o.get(this.dirtyText).subscribe(u=>this.dirtyText=u),o.get(this.warningText).subscribe(u=>this.warningText=u),o.get(this.deletedText).subscribe(u=>this.deletedText=u),o.get(this.newText).subscribe(u=>this.newText=u),this.captureCardService.GetCardTypeList().subscribe(u=>{this.car
dTypes=u.CardTypeList.CardTypes,this.cardTypes.forEach(h=>{h.Inactive=t.supportedCardTypes.indexOf(h.CardType)<0})})}loadCards(e){this.m_CaptureCardList$=this.captureCardService.GetCaptureCardList("",""),this.m_CaptureCardList$.subscribe(n=>{this.m_CaptureCardList=n,e&&this.filterCards()})}filterCards(){this.m_CaptureCardsFiltered=this.m_CaptureCardList.CaptureCardList.CaptureCards.filter(e=>0==e.ParentId&&e.HostName==this.m_hostName),this.dirtyMessages=[],this.forms=[],this.disabledTab=[],this.activeTab=[],this.displayDeleteThis=[];for(let
e=0;e<this.m_CaptureCardsFiltered.length;e++)this.dirtyMessages.push(""),this.disabledTab.push(!1),this.activeTab.push(!1),this.displayDeleteThis.push(!1)}ngOnInit(){this.loadDiseqc()}loadDiseqc(){this.captureCardService.GetDiseqcTreeList().subscribe({next:e=>{this.diseqcTreeList=e},error:e=>{console.log("GetDiseqcTreeList",e),this.errorCount++}})}onTabOpen(e){this.successCount+this.errorCount>=this.expectedCount&&(this.errorCount=0,this.successC
ount=0,this.expectedCount=0),this.showDirty();let
n=this.setupService.getCurrentForm();null!=n&&(this.forms[e.index]=n),this.setupService.setCurrentForm(null),this.currentTab=e.index,this.dirtyMessages[this.currentTab]=""}onTabClose(e){this.showDirty(),this.currentTab=-1}showDirty(){-1==this.currentTab||!this.forms[this.currentTab]||this.disabledTab[this.currentTab]||(this.dirtyMessages[this.currentTab]=this.forms[this.currentTab].dirty?this.dirtyText:this.m_CaptureCardsFiltered[this.currentTab].CardId?"":this.newText)}newCard(){this.displayModal=!1;let
e={CardType:this.selectedCardType.CardType,HostName:this.m_hostName,ChannelTimeout:3e3,SignalTimeout:1e3};switch(e.CardType){case"EXTERNAL":e.ChannelTimeout=2e4;break;case"FREEBOX":e.VideoDevice="http://mafreebox.freebox.fr/freeboxtv/playlist.m3u",e.ChannelTimeout=3e4;break;case"SATIP":e.DVBDiSEqCType=1}for(let
n=0;n<this.activeTab.length;n++)this.activeTab[n]=!1;this.dirtyMessages.push(this.newText),this.disabledTab.push(!1),this.ac
tiveTab.push(!1),this.displayDeleteThis.push(!1),this.m_CaptureCardsFiltered.push(e),this.selectedCardType={CardType:"",Description:""}}deleteThis(e){let
n=this.m_CaptureCardsFiltered[e].CardId;if(!this.deleteAll){if(this.successCount+this.errorCount<this.expectedCount)return;this.errorCount=0,this.successCount=0,this.expectedCount=0,this.displayDeleteThis[e]=!1,this.deletedTab=e}this.m_CaptureCardList.CaptureCardList.CaptureCards.forEach(s=>{s.ParentId==n&&(console.log("DeleteThis
(parent):",s.CardId),this.expectedCount++,this.captureCardService.DeleteCaptureCard(s.CardId).subscribe(this.delObserver))}),this.m_CaptureCardsFiltered[e].DiSEqCId=0,console.log("DeleteThis:",n),this.expectedCount++,this.captureCardService.DeleteCaptureCard(n).subscribe(this.delObserver)}deleteAllOnHost(){if(!(this.successCount+this.errorCount<this.expectedCount)){this.errorCount=0,this.successCount=0,this.expectedCount=0,this.displayDeleteAllonHost=!1,this.deletedTab=-1,this.deleteAll=!0;for(let
e=0;e<t
his.m_CaptureCardsFiltered.length;e++)!this.disabledTab[e]&&this.m_CaptureCardsFiltered[e].CardId&&this.deleteThis(e)}}deleteAllOnAllHosts(){this.successCount+this.errorCount<this.expectedCount||(this.displayDeleteAll=!1,this.deleteAllOnHost(),this.m_CaptureCardList.CaptureCardList.CaptureCards.forEach(e=>{e.HostName!=this.m_hostName&&(e.DiSEqCId=0,console.log("DeleteThis
(other
host):",e.CardId),this.expectedCount++,this.captureCardService.DeleteCaptureCard(e.CardId).subscribe(this.delObserver))}))}confirm(e){return
oe(window.confirm(e))}canDeactivate(){let
e=this.setupService.getCurrentForm();return!(this.forms[this.currentTab]&&this.forms[this.currentTab].dirty||this.dirtyMessages.find(n=>n==this.dirtyText)||e&&e.dirty)||this.confirm(this.warningText)}onWindowClose(e){let
n=this.setupService.getCurrentForm();(this.forms[this.currentTab]&&this.forms[this.currentTab].dirty||this.dirtyMessages.find(s=>s==this.dirtyText)||n&&n.dirty)&&(e.preventDefault(),e.returnValue=!1)}}return
t.s
upportedCardTypes=["CETON","DVB","EXTERNAL","HDHOMERUN","FREEBOX","IMPORT","DEMO","V4L2ENC","HDPVR","SATIP","VBOX","FIREWIRE"],t.\u0275fac=function(e){return
new(e||t)(D(qt),D(It),D(Gt),D(Me),D(Oe))},t.\u0275cmp=z({type:t,selectors:[["app-capture-cards"]],hostBindings:function(e,n){1&e&&C("beforeunload",function(r){return
n.onWindowClose(r)},!1,ni)},decls:42,vars:72,consts:[[1,"m-5"],["icon","pi
pi-plus-circle","styleClass","p-button-plain",3,"label","onClick"],[3,"header","visible","modal","draggable","resizable","visibleChange"],["optionLabel","Description","optionDisabled","Inactive",3,"options","ngModel","listStyle","ngModelChange","onDblClick"],["pTemplate","footer"],["styleClass","p-button-warning","icon","pi
pi-trash",3,"label","disabled","click"],["styleClass","p-button-danger","icon","pi
pi-trash","iconPos","left",3,"label","disabled","click"],[1,"grid","nogutter"],["class","col-12",4,"ngIf"],[1,"col-12","w-full",3,"onClose","onOpen"],[3,"disabled","selected","selectedChang
e",4,"ngFor","ngForOf"],[1,"flex","justify-content-end"],["icon","pi
pi-angle-left","iconPos","left",1,"p-3",3,"label","onClick"],["icon","pi
pi-angle-right","iconPos","right",1,"p-3",3,"label","onClick"],["icon","pi
pi-times-circle","styleClass","p-button-plain",3,"label","onClick"],["icon","pi
pi-check-circle","styleClass","p-button-plain",3,"label","disabled","onClick"],["icon","pi
pi-times-circle","styleClass","p-button-plain",3,"label","click"],["icon","pi
pi-check-circle","styleClass","p-button-plain",3,"label","click"],[1,"col-12"],["severity","success",3,"text"],["severity","error",3,"text"],[3,"disabled","selected","selectedChange"],["pTemplate","header"],["pTemplate","content"],[1,"grid","w-full"],[1,"col-11","pr-1"],["styleClass","p-button-warning","icon","pi
pi-trash",3,"label","disabled","onClick"],[3,"ngSwitch"],[3,"card","cardList",4,"ngSwitchCase"],[3,"card","cardList","diseqcTreeList","parent",4,"ngSwitchCase"],[4,"ngSwitchDefault"],[3,"card","cardList"],[3,"card","
cardList","diseqcTreeList","parent"]],template:function(e,n){1&e&&(l(0,"p-card",0)(1,"h2"),g(2),m(3,"translate"),c(),l(4,"p-button",1),C("onClick",function(){return
n.displayModal=!0}),m(5,"translate"),c(),l(6,"p-dialog",2),C("visibleChange",function(r){return
n.displayModal=r}),m(7,"translate"),l(8,"p"),g(9),m(10,"translate"),c(),l(11,"p-listbox",3),C("ngModelChange",function(r){return
n.selectedCardType=r})("onDblClick",function(){return
n.newCard()}),c(),_(12,KJ,4,7,"ng-template",4),c(),g(13," \xa0
"),l(14,"p-button",5),C("click",function(){return
n.displayDeleteAllonHost=!0}),m(15,"translate"),c(),l(16,"p-dialog",2),C("visibleChange",function(r){return
n.displayDeleteAllonHost=r}),m(17,"translate"),l(18,"h2"),g(19),m(20,"translate"),c(),_(21,QJ,4,6,"ng-template",4),c(),g(22,"
\xa0 "),l(23,"p-button",6),C("click",function(){return
n.displayDeleteAll=!0}),m(24,"translate"),c(),l(25,"p-dialog",2),C("visibleChange",function(r){return
n.displayDeleteAll=r}),m(26,"translate"),l(27,"h2
"),g(28),m(29,"translate"),c(),_(30,JJ,4,6,"ng-template",4),c(),k(31,"br"),l(32,"div",7),_(33,YJ,5,3,"div",8),_(34,ZJ,5,3,"div",8),c(),l(35,"p-accordion",9),C("onClose",function(r){return
n.onTabClose(r)})("onOpen",function(r){return
n.onTabOpen(r)}),_(36,gY,3,2,"p-accordionTab",10),c(),l(37,"div",11)(38,"p-button",12),C("onClick",function(){return
n.router.navigate(["setupwizard/general"])}),m(39,"translate"),c(),l(40,"p-button",13),C("onClick",function(){return
n.router.navigate(["setupwizard/recording-profiles"])}),m(41,"translate"),c()()()),2&e&&(a(2),S(f(3,38,"settings.capture.title")),a(2),x("label",f(5,40,"settings.capture.new_capture_card")),a(2),q(A(64,Dd)),x("header",f(7,42,"settings.capture.new_capture_card")),p("visible",n.displayModal)("modal",!0)("draggable",!1)("resizable",!1),a(3),S(f(10,44,"settings.capture.select_type")),a(2),p("options",n.cardTypes)("ngModel",n.selectedCardType)("listStyle",A(65,_Y)),a(3),x("label",Dt(15,46,"settings.capture.delete_on_host",U(66,p
S,n.m_hostName))),p("disabled",n.setupService.schedulingEnabled),a(2),q(A(68,Dd)),x("header",Dt(17,49,"settings.capture.delete_on_host",U(69,pS,n.m_hostName))),p("visible",n.displayDeleteAllonHost)("modal",!0)("draggable",!1)("resizable",!1),a(3),S(f(20,52,"settings.common.ru_sure")),a(4),x("label",f(24,54,"settings.capture.delete_all")),p("disabled",n.setupService.schedulingEnabled),a(2),q(A(71,Dd)),x("header",f(26,56,"settings.capture.delete_all_all")),p("visible",n.displayDeleteAll)("modal",!0)("draggable",!1)("resizable",!1),a(3),S(f(29,58,"settings.common.ru_sure")),a(5),p("ngIf",n.expectedCount&&n.successCount==n.expectedCount),a(1),p("ngIf",n.errorCount>0),a(2),p("ngForOf",n.m_CaptureCardsFiltered),a(2),x("label",f(39,60,"common.back")),a(2),x("label",f(41,62,"common.next")))},styles:["@media
screen and (max-width:
48rem){.p-card-body,.p-card-content,.p-accordion-content{padding:0rem!important}}\n"],encapsulation:2}),t})();function
bY(t,i){if(1&t&&(l(0,"div",10)(1,"div",11),g
(2),l(3,"b"),g(4),c()()()),2&t){const
e=d(2),n=e.$implicit,s=e.index,r=d();a(2),T(" ",n.Name,"
"),a(2),T("\xa0",r.dirtyMessages[s],"")}}function
vY(t,i){1&t&&_(0,bY,5,2,"div",9),2&t&&p("ngIf",d(2).readyCount>0)}function
CY(t,i){if(1&t&&k(0,"app-profile-group",12),2&t){const
e=d().$implicit,n=d();p("group",e)("parentComponent",n)}}function
yY(t,i){if(1&t){const
e=I();l(0,"p-accordionTab",6),C("selectedChange",function(s){const
o=v(e).index;return
d().activeTab[o]=s}),_(1,vY,1,1,"ng-template",7),_(2,CY,1,2,"ng-template",8),c()}if(2&t){const
e=i.index;p("selected",d().activeTab[e])}}let mS=(()=>{class
t{constructor(e,n,s,r){this.captureCardService=e,this.router=n,this.translate=s,this.setupService=r,this.currentTab=-1,this.deletedTab=-1,this.dirtyMessages=[],this.activeTab=[],this.readyCount=0,this.profileGroups=[],this.dirtyText="settings.common.unsaved",this.warningText="settings.common.warning",this.groups=[],this.setupService.setCurrentForm(null),this.loadGroups(),s.get(this.dirtyT
ext).subscribe(o=>this.dirtyText=o),s.get(this.warningText).subscribe(o=>this.warningText=o)}loadGroups(){this.captureCardService.GetRecProfileGroupList(0,0,!0).subscribe(n=>{this.groups=n.RecProfileGroupList.RecProfileGroups,this.readyCount++})}ngOnInit(){}onTabOpen(e){this.currentTab=e.index,this.dirtyMessages[this.currentTab]=""}onTabClose(e){this.showDirty(),this.currentTab=-1}showDirty(){-1==this.currentTab||!this.profileGroups[this.currentTab]||(this.dirtyMessages[this.currentTab]=this.profileGroups[this.currentTab].allClean()?"":this.dirtyText)}confirm(e){return
oe(window.confirm(e))}canDeactivate(){let e=!0;return
this.profileGroups.forEach(n=>{n.allClean()||(e=!1)}),!!e||this.confirm(this.warningText)}onWindowClose(e){let
n=!0;this.profileGroups.forEach(s=>{s.allClean()||(n=!1)}),n||(e.preventDefault(),e.returnValue=!1)}}return
t.\u0275fac=function(e){return
new(e||t)(D(Gt),D(It),D(Oe),D(Me))},t.\u0275cmp=z({type:t,selectors:[["app-recording-profiles"]],hostBindings:functio
n(e,n){1&e&&C("beforeunload",function(r){return
n.onWindowClose(r)},!1,ni)},decls:11,vars:10,consts:[[1,"md:m-5"],[1,"col-12","w-full",3,"onOpen","onClose"],[3,"selected","selectedChange",4,"ngFor","ngForOf"],[1,"flex","justify-content-end"],["icon","pi
pi-angle-left","iconPos","left",1,"p-3",3,"label","onClick"],["icon","pi
pi-angle-right","iconPos","right",1,"p-3",3,"label","onClick"],[3,"selected","selectedChange"],["pTemplate","header"],["pTemplate","content"],["class","grid
w-full",4,"ngIf"],[1,"grid","w-full"],[1,"col-9","pr-1"],[3,"group","parentComponent"]],template:function(e,n){1&e&&(l(0,"p-card",0)(1,"h2"),g(2),m(3,"translate"),c(),l(4,"p-accordion",1),C("onOpen",function(r){return
n.onTabOpen(r)})("onClose",function(r){return
n.onTabClose(r)}),_(5,yY,3,1,"p-accordionTab",2),c(),l(6,"div",3)(7,"p-button",4),C("onClick",function(){return
n.router.navigate(["setupwizard/capture-cards"])}),m(8,"translate"),c(),l(9,"p-button",5),C("onClick",function(){return
n.router.navigat
e(["setupwizard/video-sources"])}),m(10,"translate"),c()()()),2&e&&(a(2),S(f(3,4,"settings.rprofiles.title")),a(3),p("ngForOf",n.groups),a(2),x("label",f(8,6,"common.back")),a(2),x("label",f(10,8,"common.next")))},styles:["@media
screen and (max-width:
48rem){.p-card-body,.p-card-content,.p-accordion-content{padding:0rem!important}}\n"],encapsulation:2}),t})(),Or=(()=>{class
t{constructor(e){this.httpClient=e}AddDBChannel(e){return
this.httpClient.post("/Channel/AddDBChannel",e)}UpdateDBChannel(e){return
this.httpClient.post("/Channel/UpdateDBChannel",e)}AddVideoSource(e){return
this.httpClient.post("/Channel/AddVideoSource",e)}FetchChannelsFromSource(e){let
n=(new
ye).set("SourceId",e.SourceId).set("CardId",e.CardId).set("WaitForFinish",e.WaitForFinish);return
this.httpClient.get("/Channel/FetchChannelsFromSource",{params:n})}GetChannelInfo(e){let
n=(new ye).set("ChanID",e);return
this.httpClient.get("/Channel/GetChannelInfo",{params:n})}GetChannelInfoList(e){let
n=new ye;return vo
id 0!==e.SourceID&&(n=n.set("SourceID",e.SourceID)),void
0!==e.ChannelGroupID&&(n=n.set("ChannelGroupID",e.ChannelGroupID)),void
0!==e.StartIndex&&(n=n.set("StartIndex",e.StartIndex)),void
0!==e.Count&&(n=n.set("Count",e.Count)),void
0!==e.OnlyVisible&&(n=n.set("OnlyVisible",e.OnlyVisible)),void
0!==e.Details&&(n=n.set("Details",e.Details)),void
0!==e.OrderByName&&(n=n.set("OrderByName",e.OrderByName)),void
0!==e.GroupByCallsign&&(n=n.set("GroupByCallsign",e.GroupByCallsign)),void
0!==e.OnlyTunable&&(n=n.set("OnlyTunable",e.OnlyTunable)),this.httpClient.get("/Channel/GetChannelInfoList",{params:n})}GetDDLineupList(e){let
n=(new
ye).set("Source",e.Source).set("UserId",e.UserId).set("Password",e.Password);return
this.httpClient.get("/Channel/GetDDLineupList",{params:n})}GetVideoMultiplex(e){let
n=(new ye).set("MplexID",e);return
this.httpClient.get("/Channel/GetVideoMultiplex",{params:n})}GetVideoMultiplexList(e){let
n=(new ye).set("SourceID",e.SourceID);return e.StartIndex&&(n=n.set(
"StartIndex",e.StartIndex)),e.Count&&(n=n.set("Count",e.Count)),this.httpClient.get("/Channel/GetVideoMultiplexList",{params:n})}GetVideoSource(e){let
n=(new ye).set("SourceID",e);return
this.httpClient.get("/Channel/GetVideoSource",{params:n})}GetVideoSourceList(){return
this.httpClient.get("/Channel/GetVideoSourceList")}GetXMLTVIdList(e){let n=(new
ye).set("SourceID",e);return
this.httpClient.get("/Channel/GetXMLTVIdList",{params:n})}GetAvailableChanid(){return
this.httpClient.get("/Channel/GetAvailableChanid",{})}RemoveDBChannel(e){return
this.httpClient.post("/Channel/RemoveDBChannel",{ChannelID:e})}RemoveVideoSource(e){return
this.httpClient.post("/Channel/RemoveVideoSource",{SourceId:e})}UpdateVideoSource(e){return
this.httpClient.post("/Channel/UpdateVideoSource",e)}GetGrabberList(){return
this.httpClient.get("/Channel/GetGrabberList")}GetFreqTableList(){return
this.httpClient.get("/Channel/GetFreqTableList")}GetCommMethodList(){return
this.httpClient.get("/Channel/GetCommMet
hodList")}StartScan(e){return
this.httpClient.post("/Channel/StartScan",e)}GetScanStatus(){return
this.httpClient.get("/Channel/GetScanStatus")}StopScan(e){return
this.httpClient.post("/Channel/StopScan",{Cardid:e})}GetScanList(e){let n=(new
ye).set("SourceID",e);return
this.httpClient.get("/Channel/GetScanList",{params:n})}SendScanDialogResponse(e){return
this.httpClient.post("/Channel/SendScanDialogResponse",e)}}return
t.\u0275fac=function(e){return
new(e||t)(K(Bi))},t.\u0275prov=X({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();const
wY=["vsourceform"],TY=["top"];function
SY(t,i){1&t&&(g(0),m(1,"translate")),2&t&&T("
",f(1,1,"settings.vsource.item_title")," ")}function
xY(t,i){}function
DY(t,i){if(1&t&&(l(0,"div")(1,"small",34),g(2),c()()),2&t){const
e=d(2);a(2),T(" ",e.work.errorMessage," ")}}const
fS=function(){return{minWidth:"80%"}};function MY(t,i){if(1&t){const
e=I();l(0,"p-dropdown",35,36),C("ngModelChange",function(s){return
v(e),d(2).videoSource.Grabber=s})("onCha
nge",function(){return v(e),d(2).checkName()}),c()}if(2&t){const
e=d(2);q(A(5,fS)),p("options",e.grabberList.GrabberList.Grabbers)("ngModel",e.videoSource.Grabber)("editable",!1)}}function
kY(t,i){if(1&t){const
e=I();l(0,"div",10)(1,"label",37),g(2),m(3,"translate"),c(),l(4,"p"),g(5),m(6,"translate"),l(7,"a",38),g(8,"XMLTV"),c()(),l(9,"table")(10,"tr")(11,"td",39),g(12),c(),l(13,"td",40)(14,"button",41),C("click",function(){return
v(e),d(2).copyConfigure()}),m(15,"translate"),c()()()()()}if(2&t){const
e=d(2);a(2),T(" ",f(3,4,"settings.vsource.grabberconfig_label"),"
"),a(3),T(" ",f(6,6,"settings.vsource.grabberconfig_desc"),"
"),a(7),T(" ",e.configCommand,"
"),a(2),x("pTooltip",f(15,8,"settings.common.clipboard_tooltip"))}}function
IY(t,i){if(1&t){const
e=I();l(0,"p-dropdown",42,43),C("ngModelChange",function(s){return
v(e),d(2).videoSource.FreqTable=s}),c()}if(2&t){const
e=d(2);q(A(5,fS)),p("options",e.freqTableList.FreqTableList)("ngModel",e.videoSource.FreqTable)("editable",!1)}}
function EY(t,i){if(1&t){const
e=I();l(0,"div",8)(1,"div",9)(2,"div",10)(3,"label",11),g(4),m(5,"translate"),c(),l(6,"input",12,13),C("ngModelChange",function(s){return
v(e),d().videoSource.SourceName=s})("change",function(){return
v(e),d().checkName()}),c(),_(8,DY,3,1,"div",14),l(9,"small",15),g(10),m(11,"translate"),c()(),l(12,"div",10)(13,"label",16),g(14),m(15,"translate"),c(),_(16,MY,2,6,"p-dropdown",17),l(17,"small",15),g(18),m(19,"translate"),c()(),_(20,kY,16,10,"div",18),l(21,"div",10)(22,"p-checkbox",19,20),C("ngModelChange",function(s){return
v(e),d().videoSource.UseEIT=s}),m(24,"translate"),c(),l(25,"small",15),g(26),m(27,"translate"),c()(),l(28,"div",10)(29,"label",21),g(30),m(31,"translate"),c(),_(32,IY,2,6,"p-dropdown",22),l(33,"small",15),g(34),m(35,"translate"),c()(),l(36,"div",10)(37,"label",23),g(38),m(39,"translate"),c(),l(40,"p-inputNumber",24),C("ngModelChange",function(s){return
v(e),d().videoSource.ScanFrequency=s}),c(),l(41,"small",15),g(42),m(43,"translate")
,c()(),l(44,"div",10)(45,"label",25),g(46),m(47,"translate"),c(),l(48,"p-inputNumber",26),C("ngModelChange",function(s){return
v(e),d().videoSource.NITId=s}),c(),l(49,"small",15),g(50),m(51,"translate"),c()(),l(52,"div",10)(53,"label",27),g(54),m(55,"translate"),c(),l(56,"p-inputNumber",28),C("ngModelChange",function(s){return
v(e),d().videoSource.BouquetId=s}),c(),l(57,"small",15),g(58),m(59,"translate"),l(60,"a",29),g(61,"DVB
UK"),c()()(),l(62,"div",10)(63,"label",30),g(64),m(65,"translate"),c(),l(66,"p-inputNumber",31),C("ngModelChange",function(s){return
v(e),d().videoSource.RegionId=s}),c(),l(67,"small",15),g(68),m(69,"translate"),l(70,"a",29),g(71,"DVB
UK"),c()()(),l(72,"div",10)(73,"label",32),g(74),m(75,"translate"),c(),l(76,"p-inputNumber",33),C("ngModelChange",function(s){return
v(e),d().videoSource.LCNOffset=s}),c(),l(77,"small",15),g(78),m(79,"translate"),c()()()()}if(2&t){const
e=d();a(4),S(f(5,54,"settings.vsource.source_label")),a(2),p("ngModel",e.videoSource.SourceNa
me)("disabled",e.videoSource.Id>0)("maxlength",50),a(2),p("ngIf",e.work.errorMessage),a(2),T("
",f(11,56,"settings.vsource.source_desc")," "),a(4),T("
",f(15,58,"settings.vsource.grabber_label"),"
"),a(2),p("ngIf",e.grabberList.GrabberList.Grabbers.length>0),a(2),T("
",f(19,60,"settings.vsource.grabber_desc"),"
"),a(2),p("ngIf",e.configCommand.length>0),a(2),x("label",f(24,62,"settings.vsource.eit_label")),p("ngModel",e.videoSource.UseEIT)("binary",!0),a(4),T("
",f(27,64,"settings.vsource.eit_desc")," "),a(4),T("
",f(31,66,"settings.vsource.freqtable_label"),"
"),a(2),p("ngIf",e.freqTableList.FreqTableList.length>0),a(2),T("
",f(35,68,"settings.vsource.freqtable_desc")," "),a(4),T("
",f(39,70,"settings.vsource.scanfreq_label"),"
"),a(2),p("ngModel",e.videoSource.ScanFrequency)("min",0)("max",999999999),a(2),T("
",f(43,72,"settings.vsource.scanfreq_desc")," "),a(4),T("
",f(47,74,"settings.vsource.netid_label"),"
"),a(2),p("ngModel",e.videoSource.NITId)("showButtons",!0)("min",-1)("ma
x",65535)("step",1)("useGrouping",!1),a(2),T("
",f(51,76,"settings.vsource.netid_desc")," "),a(4),T("
",f(55,78,"settings.vsource.bouquet_label"),"
"),a(2),p("ngModel",e.videoSource.BouquetId)("showButtons",!0)("min",0)("max",65535)("step",1)("useGrouping",!1),a(2),T("
",f(59,80,"settings.vsource.bouquet_desc")," "),a(6),T("
",f(65,82,"settings.vsource.region_label"),"
"),a(2),p("ngModel",e.videoSource.RegionId)("showButtons",!0)("min",0)("max",100)("step",1)("useGrouping",!1),a(2),T("
",f(69,84,"settings.vsource.region_desc")," "),a(6),T("
",f(75,86,"settings.vsource.lcnoffset_label"),"
"),a(2),p("ngModel",e.videoSource.LCNOffset)("showButtons",!0)("min",0)("max",2e4)("step",100)("useGrouping",!1),a(2),T("
",f(79,88,"settings.vsource.lcnoffset_desc")," ")}}function
RY(t,i){1&t&&(k(0,"p-message",49),m(1,"translate")),2&t&&x("text",f(1,1,"common.savesuccess"))}function
LY(t,i){1&t&&(k(0,"p-message",50),m(1,"translate")),2&t&&x("text",f(1,1,"common.networkfail"))}function
OY(t,i){if(1
&t){const
e=I();l(0,"div",44)(1,"div",45),_(2,RY,2,3,"p-message",46),_(3,LY,2,3,"p-message",47),c(),l(4,"p-button",48),C("onClick",function(){v(e);const
s=d(),r=F(1);return
s.saveForm(),r.form.markAsPristine()}),m(5,"translate"),c()()}if(2&t){const
e=d(),n=F(1);a(2),p("ngIf",e.work.successCount>0&&0==e.work.errorCount&&!n.dirty),a(1),p("ngIf",e.work.errorCount>0),a(1),x("label",f(5,4,"common.save")),p("disabled",!n.dirty||!e.videoSource.SourceName||e.work.validateError||e.setupService.schedulingEnabled)}}let
AY=(()=>{class
t{constructor(e,n,s,r,o){this.channelService=e,this.translate=n,this.setupService=s,this.clipboard=r,this.mythService=o,this.grabberList={GrabberList:{Grabbers:[]}},this.freqTableList={FreqTableList:[]},this.work={successCount:0,errorCount:0,errorMessage:"",validateError:!1},this.messages={nameInUse:"settings.vsource.nameInUse",nameRequired:"settings.vsource.nameRequired"},this.configCommand="",this.saveObserver={next:u=>{u.bool?this.work.successCount++:!this.vide
oSource.Id&&u.int?(this.work.successCount++,this.videoSource.Id||(this.videoSource.Id=u.int)):(console.log("saveObserver
error",u),this.work.errorCount++,this.currentForm.form.markAsDirty())},error:u=>{console.log("saveObserver
error",u),this.work.errorCount++,this.currentForm.form.markAsDirty()}},n.get(this.messages.nameInUse).subscribe(u=>this.messages.nameInUse=u),n.get(this.messages.nameRequired).subscribe(u=>this.messages.nameRequired=u)}ngOnInit(){this.channelService.GetGrabberList().subscribe(e=>{this.grabberList=e}),this.channelService.GetFreqTableList().subscribe(e=>{this.freqTableList=e}),this.mythService.GetBackendInfo().subscribe(e=>{this.backendInfo=e,this.setupConf()})}ngAfterViewInit(){this.setupService.setCurrentForm(this.currentForm),this.topElement.nativeElement.scrollIntoView({behavior:"smooth",block:"start"})}copyConfigure(){this.clipboard.copy(this.configCommand)}checkName(){this.work.errorMessage="",this.work.validateError=!1,this.videoSource.SourceName=this.vi
deoSource.SourceName.trim(),this.videoSourceList.VideoSourceList.VideoSources.find(n=>n.SourceName==this.videoSource.SourceName&&n.Id!=this.videoSource.Id)&&(this.work.errorMessage=this.messages.nameInUse,this.work.validateError=!0),""==this.videoSource.SourceName&&(this.work.errorMessage=this.messages.nameRequired,this.work.validateError=!0),this.setupConf()}setupConf(){this.configCommand="eitonly"==this.videoSource.Grabber||"/bin/true"==this.videoSource.Grabber||""==this.videoSource.Grabber||""==this.videoSource.SourceName||this.work.validateError?"":"sudo
-u "+this.backendInfo.BackendInfo.Env.USER+"
"+this.videoSource.Grabber+' --configure --config-file
"'+this.backendInfo.BackendInfo.Env.MYTHCONFDIR+"/"+this.videoSource.SourceName+'.xmltv"'}saveForm(){if(this.work.successCount=0,this.work.errorCount=0,this.videoSource.Id){let
e=this.videoSource;e.SourceID=this.videoSource.Id,this.channelService.UpdateVideoSource(e).subscribe(this.saveObserver)}else
this.channelService.AddVideoSo
urce(this.videoSource).subscribe(this.saveObserver)}}return
t.\u0275fac=function(e){return
new(e||t)(D(Or),D(Oe),D(Me),D(lS),D(qt))},t.\u0275cmp=z({type:t,selectors:[["app-vsource"]],viewQuery:function(e,n){if(1&e&&(W(wY,5),W(TY,5)),2&e){let
s;V(s=B())&&(n.currentForm=s.first),V(s=B())&&(n.topElement=s.first)}},inputs:{videoSource:"videoSource",videoSourceList:"videoSourceList"},decls:9,vars:0,consts:[["name","vsourceform",1,"ml-3","mr-3"],["vsourceform","ngForm"],["top",""],[1,"m-5"],["pTemplate","title"],["pTemplate","subtitle"],["pTemplate","content"],["pTemplate","footer"],[1,"grid"],[1,"mb-4","w-full"],[1,"form-group","field"],["for","SourceName",1,"label","block"],["pInputText","","id","SourceName","name","SourceName",1,"mb-2","form-control","w-full",3,"ngModel","disabled","maxlength","ngModelChange","change"],["SourceName","ngModel"],[4,"ngIf"],[1,"block"],["for","Grabber",1,"label","block"],["optionLabel","DisplayName","optionValue","Program","name","Grabber",3,"options","ng
Model","editable","style","ngModelChange","onChange",4,"ngIf"],["class","form-group
field",4,"ngIf"],["inputId","UseEIT",&...
ffset",1,"label","block"],["name",&quo...
pi-copy",1,"p-button-rounded","p-button-text",3,"pTooltip","click"],["name","FreqTable",3,"options","ngModel","editable","ngModelChange"],["FreqTable","ngModel"],[1,"grid","nogutter"],[1,"col-12"],["severity","success",3,"text",4,"ngIf"],["severity","error",3,"text",4,"ngIf"],["icon","pi
pi-save","iconPos","left",1,"col","pr-1",3,"label","disabled","onClick"],["severity","success",3,"text"],["severity","error",3,"text
"]],template:function(e,n){1&e&&(l(0,"form",0,1),k(2,"span",null,2),l(4,"p-card",3),_(5,SY,2,3,"ng-template",4),_(6,xY,0,0,"ng-template",5),_(7,EY,80,90,"ng-template",6),_(8,OY,6,6,"ng-template",7),c()())},directives:[ze,Ue,He,Ne,ne,Ye,Te,_e,_n,Q,Ot,On,bt,Kt,sn,pt,qe,ve],pipes:[ce],styles:["a[_ngcontent-%COMP%]:link,
a[_ngcontent-%COMP%]:visited,
a[_ngcontent-%COMP%]:active{background-color:#fff}"]}),t})();function
PY(t,i){if(1&t){const
e=I();l(0,"p-button",12),C("click",function(){return
v(e),d().displayDeleteAll=!1}),m(1,"translate"),c(),l(2,"p-button",13),C("click",function(){return
v(e),d().deleteAllSources()}),m(3,"translate"),c()}2&t&&(x("label",f(1,2,"common.no")),a(2),x("label",f(3,4,"common.yes")))}function
FY(t,i){1&t&&(l(0,"div",14),k(1,"br")(2,"p-message",15),m(3,"translate"),k(4,"br"),c()),2&t&&(a(2),x("text",f(3,1,"settings.common.successful_delete")))}function
NY(t,i){1&t&&(l(0,"div",14),k(1,"br")(2,"p-message",16),m(3,"translate"),k(4,"br"),c()),2&t&&(a(2),x("text",f
(3,1,"common.networkfail")))}function
VY(t,i){if(1&t&&(l(0,"div",20)(1,"div",21),g(2),l(3,"b"),g(4),c()()()),2&t){const
e=d().index,n=d();a(2),We("
",n.videoSourceList.VideoSourceList.VideoSources[e].SourceName,"
(",n.videoSourceList.VideoSourceList.VideoSources[e].Grabber,")
"),a(2),T("\xa0",n.dirtyMessages[e],"")}}function
BY(t,i){if(1&t){const
e=I();l(0,"p-button",12),C("click",function(){v(e);const
s=d(2).index;return
d().displayDeleteThis[s]=!1}),m(1,"translate"),c(),l(2,"p-button",13),C("click",function(){v(e);const
s=d(2).index;return
d().deleteThis(s)}),m(3,"translate"),c()}2&t&&(x("label",f(1,2,"common.no")),a(2),x("label",f(3,4,"common.yes")))}const
gS=function(){return{width:"50vw"}},HY=function(t,i){return{Grabber:t,DisplayName:i}};function
qY(t,i){if(1&t){const
e=I();l(0,"p-button",22),C("onClick",function(){v(e);const
s=d().index;return
d().displayDeleteThis[s]=!0}),m(1,"translate"),c(),l(2,"p-dialog",3),C("visibleChange",function(s){v(e);const
r=d().index;return d().d
isplayDeleteThis[r]=s}),m(3,"translate"),l(4,"h2"),g(5),m(6,"translate"),c(),l(7,"p"),g(8),m(9,"translate"),c(),_(10,BY,4,6,"ng-template",4),c(),k(11,"app-vsource",23)}if(2&t){const
e=d().index,n=d();x("label",f(1,13,"settings.vsource.delete_this")),p("disabled",!n.videoSourceList.VideoSourceList.VideoSources[e].Id||n.setupService.schedulingEnabled),a(2),q(A(22,gS)),x("header",f(3,15,"settings.vsource.delete_this")),p("visible",n.displayDeleteThis[e])("modal",!0)("draggable",!1)("resizable",!1),a(3),S(f(6,17,"settings.common.ru_sure")),a(3),S(Dt(9,19,"settings.vsource.delete_details",Ge(23,HY,n.videoSourceList.VideoSourceList.VideoSources[e].Grabber,n.videoSourceList.VideoSourceList.VideoSources[e].SourceName))),a(3),p("videoSource",n.videoSourceList.VideoSourceList.VideoSources[e])("videoSourceList",n.videoSourceList)}}function
GY(t,i){if(1&t){const
e=I();l(0,"p-accordionTab",17),C("selectedChange",function(s){const
o=v(e).index;return d().activeTab[o]=s}),_(1,VY,5,3,"ng-template",
18),_(2,qY,12,26,"ng-template",19),c()}if(2&t){const
e=i.index,n=d();p("disabled",n.disabledTab[e])("selected",n.activeTab[e])}}let
UY=(()=>{class
t{constructor(e,n,s,r){this.setupService=e,this.translate=n,this.channelService=s,this.router=r,this.currentTab=-1,this.deletedTab=-1,this.dirtyMessages=[],this.forms=[],this.disabledTab=[],this.activeTab=[],this.displayDeleteThis=[],this.dirtyText="settings.common.unsaved",this.warningText="settings.common.warning",this.deletedText="settings.common.deleted",this.newText="settings.common.new",this.successCount=0,this.expectedCount=0,this.errorCount=0,this.displayDeleteAll=!1,this.deleteAll=!1,this.videoSourceList={VideoSourceList:{VideoSources:[],AsOf:"",Version:"",ProtoVer:""}},this.delObserver={next:o=>{o.bool?(this.successCount++,this.successCount==this.expectedCount&&(this.deleteAll?(this.loadSources(),this.deleteAll=!1):this.deletedTab>-1&&(this.dirtyMessages[this.deletedTab]=this.deletedText,this.disabledTab[this.deletedTab]=!0,this
.activeTab[this.deletedTab]=!1,this.deletedTab=-1))):(this.errorCount++,this.deletedTab=-1,this.deleteAll=!1)},error:o=>{console.error(o),this.errorCount++,this.deleteAll=!1}},this.setupService.setCurrentForm(null),this.loadSources(),n.get(this.dirtyText).subscribe(o=>this.dirtyText=o),n.get(this.warningText).subscribe(o=>this.warningText=o),n.get(this.deletedText).subscribe(o=>this.deletedText=o),n.get(this.newText).subscribe(o=>this.newText=o)}loadSources(){this.channelService.GetVideoSourceList().subscribe(e=>{this.videoSourceList=e,this.dirtyMessages=[],this.forms=[],this.disabledTab=[],this.activeTab=[],this.displayDeleteThis=[];for(let
n=0;n<this.videoSourceList.VideoSourceList.VideoSources.length;n++)this.dirtyMessages.push(""),this.forms.push({}),this.disabledTab.push(!1),this.activeTab.push(!1),this.displayDeleteThis.push(!1)})}ngOnInit(){}onTabOpen(e){this.successCount+this.errorCount>=this.expectedCount&&(this.errorCount=0,this.successCount=0,this.expectedCount=0),this.sh
owDirty();let
n=this.setupService.getCurrentForm();null!=n&&(this.forms[e.index]=n),this.setupService.setCurrentForm(null),this.currentTab=e.index,this.dirtyMessages[this.currentTab]=""}onTabClose(e){this.showDirty(),this.currentTab=-1}showDirty(){-1==this.currentTab||!this.forms[this.currentTab]||this.disabledTab[this.currentTab]||(this.dirtyMessages[this.currentTab]=this.forms[this.currentTab].dirty?this.dirtyText:this.videoSourceList.VideoSourceList.VideoSources[this.currentTab].Id?"":this.newText)}newSource(){for(let
n=0;n<this.activeTab.length;n++)this.activeTab[n]=!1;this.dirtyMessages.push(this.newText),this.disabledTab.push(!1),this.activeTab.push(!1),this.displayDeleteThis.push(!1),this.videoSourceList.VideoSourceList.VideoSources.push({Grabber:"eitonly",FreqTable:"default",ScanFrequency:0,NITId:-1,BouquetId:0,RegionId:0,LCNOffset:0,SourceName:""})}deleteAllSources(){if(!(this.successCount+this.errorCount<this.expectedCount)){this.errorCount=0,this.successCount=0,this.expec
tedCount=0,this.displayDeleteAll=!1,this.deletedTab=-1,this.deleteAll=!0;for(let
e=0;e<this.videoSourceList.VideoSourceList.VideoSources.length;e++)!this.disabledTab[e]&&this.videoSourceList.VideoSourceList.VideoSources[e].Id&&this.deleteThis(e)}}deleteThis(e){let
n=this.videoSourceList.VideoSourceList.VideoSources[e].Id;if(!this.deleteAll){if(this.successCount+this.errorCount<this.expectedCount)return;this.errorCount=0,this.successCount=0,this.expectedCount=0,this.displayDeleteThis[e]=!1,this.deletedTab=e}this.expectedCount++,this.channelService.RemoveVideoSource(n).subscribe(this.delObserver)}confirm(e){return
oe(window.confirm(e))}canDeactivate(){let
e=this.setupService.getCurrentForm();return!(this.forms[this.currentTab]&&this.forms[this.currentTab].dirty||this.dirtyMessages.find(n=>n==this.dirtyText)||e&&e.dirty)||this.confirm(this.warningText)}onWindowClose(e){let
n=this.setupService.getCurrentForm();(this.forms[this.currentTab]&&this.forms[this.currentTab].dirty||this.dirtyMe
ssages.find(s=>s==this.dirtyText)||n&&n.dirty)&&(e.preventDefault(),e.returnValue=!1)}}return
t.\u0275fac=function(e){return
new(e||t)(D(Me),D(Oe),D(Or),D(It))},t.\u0275cmp=z({type:t,selectors:[["app-video-sources"]],hostBindings:function(e,n){1&e&&C("beforeunload",function(r){return
n.onWindowClose(r)},!1,ni)},decls:26,vars:32,consts:[[1,"m-5"],["icon","pi
pi-plus-circle","styleClass","p-button-plain",3,"label","onClick"],["styleClass","p-button-danger","icon","pi
pi-trash","iconPos","left",3,"label","disabled","click"],[3,"header","visible","modal","draggable","resizable","visibleChange"],["pTemplate","footer"],[1,"grid","nogutter"],["class","col-12",4,"ngIf"],[1,"col-12","w-full",3,"onClose","onOpen"],[3,"disabled","selected","selectedChange",4,"ngFor","ngForOf"],[1,"flex","justify-content-end"],["icon","pi
pi-angle-left","iconPos","left",1,"p-3",3,"label","onClick"],["icon","pi
pi-angle-right","iconPos","right",1,"p-3",3,"label","onClick"],["icon","pi
pi-times-circle","styleClas
s","p-button-plain",3,"label","click"],["icon","pi
pi-check-circle","styleClass","p-button-plain",3,"label","click"],[1,"col-12"],["severity","success",3,"text"],["severity","error",3,"text"],[3,"disabled","selected","selectedChange"],["pTemplate","header"],["pTemplate","content"],[1,"grid","w-full"],[1,"col-9","pr-1"],["styleClass","p-button-warning","icon","pi
pi-trash",3,"label","disabled","onClick"],[3,"videoSource","videoSourceList"]],template:function(e,n){1&e&&(l(0,"p-card",0)(1,"h2"),g(2),m(3,"translate"),c(),l(4,"p-button",1),C("onClick",function(){return
n.newSource()}),m(5,"translate"),c(),g(6," \xa0
"),l(7,"p-button",2),C("click",function(){return
n.displayDeleteAll=!0}),m(8,"translate"),c(),l(9,"p-dialog",3),C("visibleChange",function(r){return
n.displayDeleteAll=r}),m(10,"translate"),l(11,"h2"),g(12),m(13,"translate"),c(),_(14,PY,4,6,"ng-template",4),c(),k(15,"br"),l(16,"div",5),_(17,FY,5,3,"div",6),_(18,NY,5,3,"div",6),c(),l(19,"p-accordion",7),C("onClose",function(r)
{return n.onTabClose(r)})("onOpen",function(r){return
n.onTabOpen(r)}),_(20,GY,3,2,"p-accordionTab",8),c(),l(21,"div",9)(22,"p-button",10),C("onClick",function(){return
n.router.navigate(["setupwizard/recording-profiles"])}),m(23,"translate"),c(),l(24,"p-button",11),C("onClick",function(){return
n.router.navigate(["setupwizard/input-connections"])}),m(25,"translate"),c()()()),2&e&&(a(2),S(f(3,17,"settings.vsource.title")),a(2),x("label",f(5,19,"settings.vsource.new_video_source")),a(3),x("label",f(8,21,"settings.vsource.delete_all")),p("disabled",n.setupService.schedulingEnabled),a(2),q(A(31,gS)),x("header",f(10,23,"settings.vsource.delete_all")),p("visible",n.displayDeleteAll)("modal",!0)("draggable",!1)("resizable",!1),a(3),S(f(13,25,"settings.common.ru_sure")),a(5),p("ngIf",n.expectedCount&&n.successCount==n.expectedCount),a(1),p("ngIf",n.errorCount>0),a(2),p("ngForOf",n.videoSourceList.VideoSourceList.VideoSources),a(2),x("label",f(23,27,"common.back")),a(2),x("label",f(25,29,"c
ommon.next")))},directives:[Ne,ve,bn,ne,Q,qe,Ss,at,Ts,AY],pipes:[ce],styles:["@media
screen and (max-width:
48rem){.p-card-body,.p-card-content,.p-accordion-content{padding:0rem!important}}\n"],encapsulation:2}),t})();function
zY(t,i){if(1&t&&(l(0,"div",10)(1,"div",11),g(2),l(3,"b"),g(4),c()()()),2&t){const
e=d(2),n=e.$implicit,s=e.index,r=d();a(2),Ec(" ",n.CardType,"
",n.VideoDevice," (",n.DisplayName,") =>
",r.videoSourceLookup[n.SourceId].SourceName,"
"),a(2),T("\xa0",r.dirtyMessages[s],"")}}function
jY(t,i){1&t&&_(0,zY,5,5,"div",9),2&t&&p("ngIf",d(2).readyCount>1)}function
$Y(t,i){if(1&t&&k(0,"app-iconnection",12),2&t){const
e=d().index,n=d();p("card",n.m_CaptureCardsFiltered[e])("cardList",n.m_CaptureCardList)("videoSourceLookup",n.videoSourceLookup)("videoSourceList",n.videoSourceList)("parentComponent",n)}}function
WY(t,i){if(1&t){const
e=I();l(0,"p-accordionTab",6),C("selectedChange",function(s){const
o=v(e).index;return d().activeTab[o]=s}),_(1,jY,1,1,"ng-template",7),_(2,$
Y,1,5,"ng-template",8),c()}if(2&t){const
e=i.index;p("selected",d().activeTab[e])}}let _S=(()=>{class
t{constructor(e,n,s,r,o,u){this.mythService=e,this.router=n,this.captureCardService=s,this.setupService=r,this.translate=o,this.channelService=u,this.currentTab=-1,this.deletedTab=-1,this.dirtyMessages=[],this.forms=[],this.activeTab=[],this.readyCount=0,this.dirtyText="settings.common.unsaved",this.warningText="settings.common.warning",this.m_hostName="",this.m_CaptureCardsFiltered=[],this.videoSourceList={VideoSourceList:{VideoSources:[],AsOf:"",Version:"",ProtoVer:""}},this.videoSourceLookup=[],this.setupService.setCurrentForm(null),this.mythService.GetHostName().subscribe(h=>{this.m_hostName=h.String,this.loadCards(!0)}),this.loadSources(),o.get(this.dirtyText).subscribe(h=>this.dirtyText=h),o.get(this.warningText).subscribe(h=>this.warningText=h)}loadCards(e){this.m_CaptureCardList$=this.captureCardService.GetCaptureCardList("",""),this.m_CaptureCardList$.subscribe(n=>{this.m_C
aptureCardList=n,e&&this.filterCards(),this.readyCount++})}filterCards(){this.m_CaptureCardsFiltered=this.m_CaptureCardList.CaptureCardList.CaptureCards.filter(e=>0==e.ParentId&&e.HostName==this.m_hostName),this.dirtyMessages=[],this.forms=[],this.activeTab=[];for(let
e=0;e<this.m_CaptureCardsFiltered.length;e++)this.dirtyMessages.push(""),this.activeTab.push(!1)}loadSources(){this.channelService.GetVideoSourceList().subscribe(e=>{this.videoSourceList=e,this.videoSourceList.VideoSourceList.VideoSources.unshift({Id:0,SourceName:"(None)",ScanFrequency:0}),this.videoSourceLookup=[],this.videoSourceList.VideoSourceList.VideoSources.forEach(n=>{this.videoSourceLookup[n.Id]=n}),this.readyCount++})}ngOnInit(){}onTabOpen(e){this.showDirty();let
n=this.setupService.getCurrentForm();null!=n&&(this.forms[e.index]=n),this.setupService.setCurrentForm(null),this.currentTab=e.index,this.dirtyMessages[this.currentTab]=""}onTabClose(e){this.showDirty(),this.currentTab=-1}showDirty(){-1==this.current
Tab||!this.forms[this.currentTab]||(this.dirtyMessages[this.currentTab]=this.forms[this.currentTab].dirty?this.dirtyText:"")}confirm(e){return
oe(window.confirm(e))}canDeactivate(){let
e=this.setupService.getCurrentForm();return!(this.forms[this.currentTab]&&this.forms[this.currentTab].dirty||this.dirtyMessages.find(n=>n==this.dirtyText)||e&&e.dirty)||this.confirm(this.warningText)}onWindowClose(e){let
n=this.setupService.getCurrentForm();(this.forms[this.currentTab]&&this.forms[this.currentTab].dirty||this.dirtyMessages.find(s=>s==this.dirtyText)||n&&n.dirty)&&(e.preventDefault(),e.returnValue=!1)}}return
t.\u0275fac=function(e){return
new(e||t)(D(qt),D(It),D(Gt),D(Me),D(Oe),D(Or))},t.\u0275cmp=z({type:t,selectors:[["app-input-connections"]],hostBindings:function(e,n){1&e&&C("beforeunload",function(r){return
n.onWindowClose(r)},!1,ni)},decls:11,vars:10,consts:[[1,"m-5"],[1,"col-12","w-full",3,"onClose","onOpen"],[3,"selected","selectedChange",4,"ngFor","ngForOf"],[1,"flex","justify
-content-end"],["icon","pi
pi-angle-left","iconPos","left",1,"p-3",3,"label","onClick"],["icon","pi
pi-angle-right","iconPos","right",1,"p-3",3,"label","onClick"],[3,"selected","selectedChange"],["pTemplate","header"],["pTemplate","content"],["class","grid
w-full",4,"ngIf"],[1,"grid","w-full"],[1,"col-9","pr-1"],[3,"card","cardList","videoSourceLookup","videoSourceList","parentComponent"]],template:function(e,n){1&e&&(l(0,"p-card",0)(1,"h2"),g(2),m(3,"translate"),c(),l(4,"p-accordion",1),C("onClose",function(r){return
n.onTabClose(r)})("onOpen",function(r){return
n.onTabOpen(r)}),_(5,WY,3,1,"p-accordionTab",2),c(),l(6,"div",3)(7,"p-button",4),C("onClick",function(){return
n.router.navigate(["setupwizard/video-sources"])}),m(8,"translate"),c(),l(9,"p-button",5),C("onClick",function(){return
n.router.navigate(["setupwizard/channel-editor"])}),m(10,"translate"),c()()()),2&e&&(a(2),S(f(3,4,"settings.iconnections.title")),a(3),p("ngForOf",n.m_CaptureCardsFiltered),a(2),x("label",f(8,6,"
common.back")),a(2),x("label",f(10,8,"common.next")))},styles:["@media
screen and (max-width:
48rem){.p-card-body,.p-card-content,.p-accordion-content{padding:0rem!important}}\n"],encapsulation:2}),t})();const
KY=["sgroupform"],QY=function(t){return{name:t}};function
JY(t,i){if(1&t&&k(0,"span",8),2&t){const
e=d();p("translate","settings.sgroups.sgroup_title")("translateParams",U(2,QY,e.sgroup.LocalizedName))}}function
YY(t,i){}function
ZY(t,i){1&t&&(l(0,"div")(1,"b"),g(2),m(3,"translate"),c()()),2&t&&(a(2),S(f(3,1,"settings.sgroups.deleted_label")))}function
XY(t,i){if(1&t){const
e=I();l(0,"tr")(1,"td",20),g(2),c(),l(3,"td",21)(4,"button",22),C("click",function(){const
r=v(e).index;return
d(2).editDirectory(r)}),c()(),l(5,"td",21)(6,"button",23),C("click",function(){const
r=v(e).index;return
d(2).deleteDirectory(r)}),c()(),l(7,"td"),_(8,ZY,4,3,"div",24),c()()}if(2&t){const
e=i.index,n=d(2);a(2),T(" ",n.editDirs[e],"
"),a(2),p("disabled",!n.editDirs[e]),a(2),p("disabled",!n.editDirs[
e]),a(2),p("ngIf",!n.editDirs[e])}}function eZ(t,i){if(1&t){const
e=I();l(0,"p-button",25),C("onClick",function(){return
v(e),d(2).showEditDlg=!1}),m(1,"translate"),c(),l(2,"p-button",26),C("onClick",function(){v(e);const
s=d(2);return
s.editDirs[s.editDlgNum]=s.editDirName,s.showEditDlg=!1}),m(3,"translate"),c()}2&t&&(x("label",f(1,2,"common.cancel")),a(2),x("label",f(3,4,"common.ok")))}const
tZ=function(){return{width:"50vw"}},nZ=function(){return{height:"50vh"}};function
iZ(t,i){if(1&t){const
e=I();l(0,"div",9)(1,"div",10)(2,"table"),_(3,XY,9,4,"tr",11),c(),l(4,"p-dialog",12),C("visibleChange",function(s){return
v(e),d().showEditDlg=s}),m(5,"translate"),l(6,"div",13)(7,"label",14),g(8),m(9,"translate"),c(),l(10,"input",15,16),C("ngModelChange",function(s){return
v(e),d().editDirName=s})("change",function(){return
v(e),d().textChange()}),c()(),l(12,"p-listbox",17,18),C("ngModelChange",function(s){return
v(e),d().selectedDir=s})("onClick",function(){return v(e),d().selectDir()}),c(
),_(14,eZ,4,6,"ng-template",7),c(),k(15,"br"),l(16,"p-button",19),C("onClick",function(){return
v(e),d().addDirectory()}),m(17,"translate"),c()()()}if(2&t){const
e=d();a(3),p("ngForOf",e.editDirs),a(1),q(A(20,tZ)),x("header",f(5,14,"settings.sgroups.seldir_title")),p("visible",e.showEditDlg)("modal",!0)("draggable",!1)("resizable",!1),a(4),S(f(9,16,"settings.sgroups.dirname_label")),a(2),p("ngModel",e.editDirName),a(2),p("options",e.dirSelect)("ngModel",e.selectedDir)("listStyle",A(21,nZ)),a(4),x("label",f(17,18,"settings.sgroups.adddir_button"))}}function
sZ(t,i){1&t&&(k(0,"p-message",32),m(1,"translate")),2&t&&x("text",f(1,1,"common.savesuccess"))}function
rZ(t,i){1&t&&(k(0,"p-message",33),m(1,"translate")),2&t&&x("text",f(1,1,"common.networkfail"))}function
oZ(t,i){if(1&t){const
e=I();l(0,"div",27)(1,"div",28),_(2,sZ,2,3,"p-message",29),_(3,rZ,2,3,"p-message",30),c(),l(4,"p-button",31),C("onClick",function(){v(e);const
s=d(),r=F(1);return s.saveForm(),r.form.markAsPristine()}),m(
5,"translate"),c()()}if(2&t){const
e=d(),n=F(1);a(2),p("ngIf",e.successCount>0&&0==e.errorCount&&!n.dirty),a(1),p("ngIf",e.errorCount>0),a(1),x("label",f(5,4,"common.save")),p("disabled",!n.dirty||e.setupService.schedulingEnabled)}}let
aZ=(()=>{class
t{constructor(e,n,s){this.mythService=e,this.setupService=n,this.translate=s,this.successCount=0,this.errorCount=0,this.expectCount=0,this.showEditDlg=!1,this.editDlgNum=-1,this.editDirName="",this.editDirs=[],this.dirSelect=[],this.selectedDir="",this.upString="UP
1
LEVEL",this.saveObserver={next:r=>{r.bool?(this.successCount++,this.successCount==this.expectCount&&(this.sgroup.DirNames=this.editDirs.filter(o=>o.length>1))):(this.errorCount++,this.currentForm.form.markAsDirty())},error:r=>{console.error(r),this.errorCount++,this.currentForm.form.markAsDirty()}},s.get("settings.sgroups.updir").subscribe(r=>this.upString="//
** "+r+"
**")}ngOnInit(){this.editDirs=this.sgroup.DirNames.slice()}ngAfterViewInit(){this.setupService.setCurrentF
orm(this.currentForm)}selectDir(){for(;"/"==this.editDirName.charAt(this.editDirName.length-1);)this.editDirName=this.editDirName.substring(0,this.editDirName.length-1);if(this.selectedDir.startsWith("//")){let
e=this.editDirName.lastIndexOf("/");this.editDirName=this.editDirName.substring(0,e),0==this.editDirName.length&&(this.editDirName="/")}else
this.editDirName=this.editDirName+"/"+this.selectedDir;this.fillDirList()}textChange(){this.fillDirList()}fillDirList(){0!=this.editDirName.indexOf("/")&&(this.editDirName="/"+this.editDirName),this.mythService.GetDirListing(this.editDirName).subscribe(e=>{"/"!=this.editDirName&&e.DirListing.unshift(this.upString),this.dirSelect=e.DirListing})}addDirectory(){this.editDirs.push("/"),this.editDirectory(this.editDirs.length-1)}editDirectory(e){this.editDirName=this.editDirs[e],this.editDlgNum=e,this.showEditDlg=!0,this.fillDirList()}deleteDirectory(e){this.editDirs[e]="",this.currentForm.form.markAsDirty()}saveForm(){this.successCount=0,thi
s.errorCount=0,this.expectCount=0;for(let
e=0;e<this.editDirs.length;e++){"/"==this.editDirs[e]&&(this.editDirs[e]="");for(let
n=e+1;n<this.editDirs.length;n++)this.editDirs[e]==this.editDirs[n]&&(this.editDirs[n]="")}this.editDirs.forEach(e=>{""!=e&&-1==this.sgroup.DirNames.indexOf(e)&&(this.mythService.AddStorageGroupDir({GroupName:this.sgroup.GroupName,DirName:e,HostName:this.hostName}).subscribe(this.saveObserver),this.expectCount++)}),this.sgroup.DirNames.forEach(e=>{-1==this.editDirs.indexOf(e)&&(this.mythService.RemoveStorageGroupDir({GroupName:this.sgroup.GroupName,DirName:e,HostName:this.hostName}).subscribe(this.saveObserver),this.expectCount++)})}}return
t.\u0275fac=function(e){return
new(e||t)(D(qt),D(Me),D(Oe))},t.\u0275cmp=z({type:t,selectors:[["app-sgroup"]],viewQuery:function(e,n){if(1&e&&W(KY,5),2&e){let
s;V(s=B())&&(n.currentForm=s.first)}},inputs:{sgroup:"sgroup",hostName:"hostName"},decls:9,vars:0,consts:[["name","sgroupform",1,"ml-3","mr-3"],["sgroupform","ngFor
m"],["top",""],[1,"m-5"],["pTemplate","title"],["pTemplate","subtitle"],["pTemplate","content"],["pTemplate","footer"],[3,"translate","translateParams"],[1,"grid"],[1,"mb-4","w-full"],[4,"ngFor","ngForOf"],[3,"header","visible","modal","draggable","resizable","visibleChange"],[1,"form-group","field"],["for","DirName",1,"label","block"],["pInputText","","id","DirName","name","DirName",1,"mb-2","form-control","w-full",2,"font-family","monospace",3,"ngModel","ngModelChange","change"],["DirName","ngModel"],["name","ListDirs",3,"options","ngModel","listStyle","ngModelChange","onClick"],["ListDirs","ngModel"],["icon","pi
pi-plus-circle","styleClass","p-button-plain",3,"label","onClick"],[1,"align-items-center","bg-blue-100","text-gray-900",2,"font-family","monospace"],[1,"align-items-center"],["pButton","","pRipple","","type","button","icon","pi
pi-pencil","pTooltip","Edit",1,"p-button-rounded","p-button-text",3,"disabled","click"],["pButton","","pRipple","","type","button","icon","pi
pi-
trash","pTooltip","Delete",1,"p-button-rounded","p-button-text",3,"disabled","click"],[4,"ngIf"],["icon","pi
pi-times-circle","styleClass","p-button-plain",3,"label","onClick"],["icon","pi
pi-check-circle","styleClass","p-button-plain",3,"label","onClick"],[1,"grid","nogutter"],[1,"col-12"],["severity","success",3,"text",4,"ngIf"],["severity","error",3,"text",4,"ngIf"],["icon","pi
pi-save","iconPos","left",1,"col","pr-1",3,"label","disabled","onClick"],["severity","success",3,"text"],["severity","error",3,"text"]],template:function(e,n){1&e&&(l(0,"form",0,1),k(2,"span",null,2),l(4,"p-card",3),_(5,JY,1,4,"ng-template",4),_(6,YY,0,0,"ng-template",5),_(7,iZ,18,22,"ng-template",6),_(8,oZ,6,6,"ng-template",7),c()())},directives:[ze,Ue,He,Ne,ne,mu,at,On,bt,Kt,Q,bn,Ye,Te,_e,os,ve,qe],pipes:[ce],styles:[""]}),t})();function
lZ(t,i){if(1&t){const
e=I();l(0,"p-button",14),C("onClick",function(){return
v(e),d().displayNewDlg=!1}),m(1,"translate"),c(),l(2,"p-button",15),C("onClick",function(){r
eturn v(e),d().newGroup()}),m(3,"translate"),c()}if(2&t){const
e=d();x("label",f(1,3,"common.cancel")),a(2),x("label",f(3,5,"common.ok")),p("disabled",""==e.newGroupName)}}const
cZ=function(t){return{name:t}};function
uZ(t,i){if(1&t&&k(0,"span",23),2&t){const
e=d(2).index,n=d();p("translate","settings.sgroups.tab_create_title")("translateParams",U(2,cZ,n.storageGroups[e].LocalizedName))}}function
dZ(t,i){if(1&t&&g(0),2&t){const e=d(2).index;T("
",d().storageGroups[e].LocalizedName," ")}}function
pZ(t,i){if(1&t&&(l(0,"div",19)(1,"div",20),_(2,uZ,1,4,"span",21),_(3,dZ,1,1,"ng-template",null,22,we),l(5,"b"),g(6),c()()()),2&t){const
e=F(4),n=d().index,s=d();a(2),p("ngIf",0==s.storageGroups[n].DirNames.length)("ngIfElse",e),a(4),T("\xa0",s.dirtyMessages[n],"")}}function
hZ(t,i){if(1&t&&k(0,"app-sgroup",24),2&t){const
e=d().index,n=d();p("sgroup",n.storageGroups[e])("hostName",n.hostName)}}function
mZ(t,i){if(1&t){const
e=I();l(0,"p-accordionTab",16),C("selectedChange",function(s){const o
=v(e).index;return
d().activeTab[o]=s}),_(1,pZ,7,3,"ng-template",17),_(2,hZ,1,2,"ng-template",18),c()}if(2&t){const
e=i.index;p("selected",d().activeTab[e])}}const
fZ=function(){return{width:"50vw"}};let gZ=(()=>{class
t{constructor(e,n,s,r){this.setupService=e,this.translate=n,this.mythService=s,this.router=r,this.forms=[],this.dirtyMessages=[],this.currentTab=-1,this.activeTab=[],this.dirtyText="settings.common.unsaved",this.warningText="settings.common.warning",this.deletedText="settings.common.deleted",this.newText="settings.common.new",this.hostName="",this.storageGroupDirs=[],this.storageGroups=[{GroupName:"Default",LocalizedName:"",DirNames:[]},{GroupName:"LiveTV",LocalizedName:"",DirNames:[]},{GroupName:"DB
Backups",LocalizedName:"",DirNames:[]},{GroupName:"Videos",LocalizedName:"",DirNames:[]},{GroupName:"Trailers",LocalizedName:"",DirNames:[]},{GroupName:"Coverart",LocalizedName:"",DirNames:[]},{GroupName:"Fanart",LocalizedName:"",DirNames:[]},{GroupName:"Screenshots",Loca
lizedName:"",DirNames:[]},{GroupName:"Banners",LocalizedName:"",DirNames:[]},{GroupName:"Photographs",LocalizedName:"",DirNames:[]},{GroupName:"Music",LocalizedName:"",DirNames:[]},{GroupName:"MusicArt",LocalizedName:"",DirNames:[]}],this.displayNewDlg=!1,this.newGroupName="",this.setupService.setCurrentForm(null),this.mythService.GetHostName().subscribe(o=>{this.hostName=o.String,this.loadGroups()}),n.get(this.dirtyText).subscribe(o=>this.dirtyText=o),n.get(this.warningText).subscribe(o=>this.warningText=o),n.get(this.deletedText).subscribe(o=>this.deletedText=o),n.get(this.newText).subscribe(o=>this.newText=o),this.storageGroups.forEach(o=>n.get("settings.sgroups.special."+o.GroupName).subscribe(u=>o.LocalizedName=u))}loadGroups(){this.mythService.GetStorageGroupDirs({HostName:this.hostName}).subscribe(e=>{this.storageGroupDirs=e.StorageGroupDirList.StorageGroupDirs,this.storageGroupDirs.forEach(n=>{let
s=this.storageGroups.find(r=>r.GroupName==n.GroupName);s?s.DirNames.push(n.Dir
Name):this.storageGroups.push({GroupName:n.GroupName,LocalizedName:n.GroupName,DirNames:[n.DirName]})})})}ngOnInit(){}onTabOpen(e){this.showDirty();let
n=this.setupService.getCurrentForm();null!=n&&(this.forms[e.index]=n),this.setupService.setCurrentForm(null),this.currentTab=e.index,this.dirtyMessages[this.currentTab]=""}onTabClose(e){this.showDirty(),this.currentTab=-1}showDirty(){-1==this.currentTab||!this.forms[this.currentTab]||(this.dirtyMessages[this.currentTab]=this.forms[this.currentTab].dirty?this.dirtyText:"")}newGroup(){this.displayNewDlg=!1,!this.storageGroups.find(n=>n.GroupName==this.newGroupName)&&(this.storageGroups.push({GroupName:this.newGroupName,LocalizedName:this.newGroupName,DirNames:[]}),this.newGroupName="")}confirm(e){return
oe(window.confirm(e))}canDeactivate(){let
e=this.setupService.getCurrentForm();return!(this.forms[this.currentTab]&&this.forms[this.currentTab].dirty||this.dirtyMessages.find(n=>n==this.dirtyText)||e&&e.dirty)||this.confirm(this.warning
Text)}onWindowClose(e){let
n=this.setupService.getCurrentForm();(this.forms[this.currentTab]&&this.forms[this.currentTab].dirty||this.dirtyMessages.find(s=>s==this.dirtyText)||n&&n.dirty)&&(e.preventDefault(),e.returnValue=!1)}}return
t.\u0275fac=function(e){return
new(e||t)(D(Me),D(Oe),D(qt),D(It))},t.\u0275cmp=z({type:t,selectors:[["app-storage-groups"]],hostBindings:function(e,n){1&e&&C("beforeunload",function(r){return
n.onWindowClose(r)},!1,ni)},decls:25,vars:24,consts:[[1,"m-5"],["label","New
Storage Group","icon","pi
pi-plus-circle","styleClass","p-button-plain",3,"onClick"],["header","New
Storage
Group",3,"visible","modal","draggable","resizable","visibleChange"],[1,"form-group","field"],["for","GroupName",1,"block"],["pInputText","","id","GroupName","name","GroupName",1,"mb-2","form-control","w-full",3,"ngModel","ngModelChange"],["GroupName","ngModel"],[1,"block"],["pTemplate","footer"],[1,"col-12","w-full",3,"onClose","onOpen"],[3,"selected","selectedChange",4,"ngFor","ngF
orOf"],[1,"flex","justify-content-end"],["icon","pi
pi-angle-left","iconPos","left",1,"p-3",3,"label","onClick"],["icon","pi
pi-angle-right","iconPos","right",1,"p-3",3,"label","onClick"],["icon","pi
pi-times-circle","styleClass","p-button-plain",3,"label","onClick"],["icon","pi
pi-check-circle","styleClass","p-button-plain",3,"label","disabled","onClick"],[3,"selected","selectedChange"],["pTemplate","header"],["pTemplate","content"],[1,"grid","w-full"],[1,"col-9","pr-1"],[3,"translate","translateParams",4,"ngIf","ngIfElse"],["onlyName",""],[3,"translate","translateParams"],[3,"sgroup","hostName"]],template:function(e,n){1&e&&(l(0,"p-card",0)(1,"h2"),g(2),m(3,"translate"),c(),l(4,"p-button",1),C("onClick",function(){return
n.displayNewDlg=!0}),c(),l(5,"p-dialog",2),C("visibleChange",function(r){return
n.displayNewDlg=r}),l(6,"p"),g(7),m(8,"translate"),c(),l(9,"div",3)(10,"label",4),g(11),m(12,"translate"),c(),l(13,"input",5,6),C("ngModelChange",function(r){return
n.newGroupName=r}),
c(),k(15,"small",7),c(),_(16,lZ,4,7,"ng-template",8),c(),k(17,"br"),l(18,"p-accordion",9),C("onClose",function(r){return
n.onTabClose(r)})("onOpen",function(r){return
n.onTabOpen(r)}),_(19,mZ,3,1,"p-accordionTab",10),c(),l(20,"div",11)(21,"p-button",12),C("onClick",function(){return
n.router.navigate(["setupwizard/channel-editor"])}),m(22,"translate"),c(),l(23,"p-button",13),C("onClick",function(){return
n.router.navigate(["setupwizard/system-events"])}),m(24,"translate"),c()()()),2&e&&(a(2),S(f(3,13,"settings.sgroups.title")),a(3),q(A(23,fZ)),p("visible",n.displayNewDlg)("modal",!0)("draggable",!1)("resizable",!1),a(2),S(f(8,15,"settings.sgroups.name_prompt")),a(4),S(f(12,17,"settings.sgroups.name_label")),a(2),p("ngModel",n.newGroupName),a(6),p("ngForOf",n.storageGroups),a(2),x("label",f(22,19,"common.back")),a(2),x("label",f(24,21,"common.next")))},directives:[Ne,ve,bn,Ye,Te,_e,ne,Ss,at,Ts,Q,mu,aZ],pipes:[ce],styles:["@media
screen and (max-width: 48rem){.p-card-body,.p-card-cont
ent,.p-accordion-content{padding:0rem!important}}\n"],encapsulation:2}),t})();const
_Z=["eventsform"];function bZ(t,i){if(1&t){const
e=I();l(0,"div",9)(1,"div",10)(2,"label",11),g(3),c(),l(4,"input",12),C("ngModelChange",function(s){return
v(e).$implicit.Value=s}),c()()()}if(2&t){const
e=i.$implicit;a(2),x("for",e.Key),a(1),S(e.LocalizedName),a(1),x("id",e.Key),x("name",e.Key),p("ngModel",e.Value)}}function
vZ(t,i){if(1&t&&(l(0,"div",7),_(1,bZ,5,5,"div",8),c()),2&t){const
e=d();a(1),p("ngForOf",e.events)}}function
CZ(t,i){1&t&&(k(0,"p-message",18),m(1,"translate")),2&t&&x("text",f(1,1,"common.savesuccess"))}function
yZ(t,i){1&t&&(k(0,"p-message",19),m(1,"translate")),2&t&&x("text",f(1,1,"common.networkfail"))}function
wZ(t,i){if(1&t){const
e=I();l(0,"div",13)(1,"div",14),_(2,CZ,2,3,"p-message",15),_(3,yZ,2,3,"p-message",16),c(),l(4,"p-button",17),C("onClick",function(){v(e);const
s=d(),r=F(1);return
s.saveForm(),r.form.markAsPristine()}),m(5,"translate"),c()()}if(2&t){const
e=d(),n=
F(1);a(2),p("ngIf",e.successCount>0&&e.successCount==e.expectedCount&&0==e.errorCount&&!n.dirty),a(1),p("ngIf",e.errorCount>0),a(1),x("label",f(5,4,"common.save")),p("disabled",!n.dirty||e.setupService.schedulingEnabled)}}let
TZ=(()=>{class
t{constructor(e,n,s,r,o){this.configService=e,this.translate=n,this.setupService=s,this.mythService=r,this.router=o,this.hostName="",this.events=[],this.successCount=0,this.errorCount=0,this.expectedCount=0,this.warningText="settings.common.warning",this.kClearSettingValue="<clear_setting_value>",this.jqbObserver={next:u=>{u.bool?this.successCount++:(this.errorCount++,this.currentForm&&this.currentForm.form.markAsDirty())},error:u=>{console.error(u),this.errorCount++,this.currentForm&&this.currentForm.form.markAsDirty()}},this.mythService.GetHostName().subscribe({next:u=>{this.hostName=u.String,this.configService.GetSystemEvents().subscribe(h=>{this.eventList=h,this.events=h.SystemEventList.SystemEvents})},error:()=>this.errorCount++}),this.trans
late.get(this.warningText).subscribe(u=>{this.warningText=u})}ngOnInit(){}saveForm(){this.successCount=0,this.errorCount=0,this.expectedCount=0,this.events.forEach(e=>{let
n=e.Value.trim();n?this.mythService.PutSetting({HostName:this.hostName,Key:e.Key,Value:n}).subscribe(this.jqbObserver):this.mythService.DeleteSetting({HostName:this.hostName,Key:e.Key}).subscribe(this.jqbObserver),this.expectedCount++})}confirm(e){return
oe(window.confirm(e))}canDeactivate(){return!this.currentForm||!this.currentForm.dirty||this.confirm(this.warningText)}onWindowClose(e){this.currentForm&&this.currentForm.dirty&&(e.preventDefault(),e.returnValue=!1)}}return
t.\u0275fac=function(e){return
new(e||t)(D(zo),D(Oe),D(Me),D(qt),D(It))},t.\u0275cmp=z({type:t,selectors:[["app-system-events"]],viewQuery:function(e,n){if(1&e&&W(_Z,5),2&e){let
s;V(s=B())&&(n.currentForm=s.first)}},hostBindings:function(e,n){1&e&&C("beforeunload",function(r){return
n.onWindowClose(r)},!1,ni)},decls:11,vars:6,consts:[["name","e
ventsform",1,"ml-3","mr-3"],["eventsform","ngForm"],[1,"m-5"],["pTemplate","content"],["pTemplate","footer"],[1,"flex","justify-content-end"],["icon","pi
pi-angle-left","iconPos","left",1,"p-3",3,"label","onClick"],[1,"grid"],["class","mb-4
w-full",4,"ngFor","ngForOf"],[1,"mb-4","w-full"],[1,"form-group","field"],[1,"label","block",3,"for"],["pInputText","",1,"mb-2","form-control","w-full",3,"id","ngModel","name","ngModelChange"],[1,"grid","nogutter"],[1,"col-12"],["severity","success",3,"text",4,"ngIf"],["severity","error",3,"text",4,"ngIf"],["icon","pi
pi-save","iconPos","left",1,"col","pr-1",3,"label","disabled","onClick"],["severity","success",3,"text"],["severity","error",3,"text"]],template:function(e,n){1&e&&(l(0,"form",0,1)(2,"h2"),g(3),m(4,"translate"),c(),l(5,"p-card",2),_(6,vZ,2,1,"ng-template",3),_(7,wZ,6,6,"ng-template",4),c(),l(8,"div",5)(9,"p-button",6),C("onClick",function(){return
n.router.navigate(["setupwizard/storage-groups"])}),m(10,"translate"),c()()()),2&e&&(a
(3),S(f(4,2,"settings.sysevents.title")),a(6),x("label",f(10,4,"common.back")))},directives:[ze,Ue,He,Ne,ne,at,Ye,Te,_e,Q,qe,ve],pipes:[ce],styles:["@media
screen and (max-width:
48rem){.p-card-body,.p-card-content,.p-accordion-content{padding:0rem!important}}\n"],encapsulation:2}),t})();const
SZ=["chanform"];function xZ(t,i){if(1&t){const
e=I();l(0,"button",57),C("click",function(){return
v(e),d(2).openNew()}),m(1,"translate"),c()}if(2&t){const
e=d(2);x("label",f(1,2,"settings.chanedit.new_channel")),p("disabled","S"==e.setupService.pageType&&e.setupService.schedulingEnabled)}}function
DZ(t,i){1&t&&g(0),2&t&&T(" ",i.$implicit,"
")}function MZ(t,i){if(1&t){const
e=I();l(0,"p-dropdown",72),C("onChange",function(s){return
v(e).filterCallback(s.value)}),m(1,"translate"),_(2,DZ,1,1,"ng-template",73),c()}if(2&t){const
e=i.$implicit,n=d(3);x("placeholder",f(1,4,"settings.chanedit.all")),p("ngModel",e)("options",n.sourceNames)("showClear",!0)}}function
kZ(t,i){if(1&t){const e=I();l(0,"p-bu
tton",74),C("onClick",function(){return
v(e),d(3).deleteSourceRequest()}),m(1,"translate"),m(2,"translate"),c()}if(2&t){const
e=d(3);x("pTooltip",f(1,3,"settings.chanedit.delete_source")),x("label",f(2,5,"common.delete")),p("disabled",e.setupService.schedulingEnabled)}}function
IZ(t,i){1&t&&(g(0),m(1,"translate")),2&t&&T("
",f(1,1,"settings.chanedit.delete_message")," ")}function
EZ(t,i){1&t&&k(0,"button",75)}function
RZ(t,i){if(1&t&&(l(0,"tr")(1,"th"),g(2),m(3,"translate"),l(4,"p-columnFilter",58),_(5,MZ,3,6,"ng-template",59),c(),_(6,kZ,3,7,"p-button",60),_(7,IZ,2,3,"ng-template",null,61,we),c()(),l(9,"tr")(10,"th",62),g(11,"\xa0"),c(),l(12,"th",63),g(13),m(14,"translate"),k(15,"p-sortIcon",64),c(),l(16,"th",65),g(17),m(18,"translate"),c(),l(19,"th",66),g(20),m(21,"translate"),c(),l(22,"th",67),g(23),m(24,"translate"),c(),l(25,"th",68),g(26),m(27,"translate"),k(28,"p-sortIcon",69),c(),l(29,"th",65),g(30),m(31,"translate"),c(),l(32,"th",66),g(33),m(34,"translate"),c(),l(35,"th",65),
g(36),m(37,"translate"),c(),l(38,"th",65),k(39,"button",70),_(40,EZ,1,0,"button",71),c()()),2&t){const
e=F(8),n=d(2);a(2),T("",f(3,13,"settings.chanedit.col_source"),":
\xa0
"),a(2),p("showMenu",!1),a(2),p("ngIf","S"==n.setupService.pageType)("ngIfElse",e),a(7),T("
",f(14,15,"settings.chanedit.col_channum"),"
"),a(4),S(f(18,17,"settings.chanedit.col_freqid")),a(3),S(f(21,19,"settings.chanedit.col_callsign")),a(3),S(f(24,21,"settings.chanedit.col_name")),a(3),T("
",f(27,23,"settings.chanedit.col_source"),"
"),a(4),S(f(31,25,"settings.chanedit.col_priority")),a(3),S(f(34,27,"settings.chanedit.col_visibility")),a(3),S(f(37,29,"settings.chanedit.col_useeit")),a(4),p("ngIf","S"==n.setupService.pageType)}}function
LZ(t,i){1&t&&k(0,"img",83),2&t&&x("src",d().$implicit.IconURL,ln)}function
OZ(t,i){1&t&&k(0,"img",84)}function AZ(t,i){if(1&t){const
e=I();l(0,"button",85),C("click",function(){v(e);const
s=d().$implicit;return
d(2).deleteRequest(s)}),m(1,"translate"),c()}if(2&t){const e=d().$im
plicit,n=d(2);x("pTooltip",f(1,2,"settings.chanedit.deletechan")),p("disabled",e.ChanId<0||n.setupService.schedulingEnabled)}}const
PZ=function(t){return{"line-through":t}};function FZ(t,i){if(1&t){const
e=I();l(0,"tr",76)(1,"td",62),_(2,LZ,1,1,"img",77),_(3,OZ,1,0,"ng-template",null,78,we),c(),l(5,"td",79),g(6),c(),l(7,"td",65),g(8),c(),l(9,"td",66),g(10),c(),l(11,"td",67),g(12),c(),l(13,"td",80),g(14),c(),l(15,"td",65),g(16),c(),l(17,"td",66),g(18),c(),l(19,"td",65),g(20),c(),l(21,"td",65)(22,"button",81),C("click",function(){const
r=v(e).$implicit;return
d(2).editChannel(r)}),m(23,"translate"),c(),_(24,AZ,2,4,"button",82),c()()}if(2&t){const
e=i.$implicit,n=F(4),s=d(2);p("ngClass",U(16,PZ,e.ChanId<0)),a(2),p("ngIf",e.IconURL)("ngIfElse",n),a(4),S(e.ChanNum),a(2),S(e.FrequencyId),a(2),S(e.CallSign),a(2),S(e.ChannelName),a(2),S(e.Source),a(2),S(e.RecPriority),a(2),S(s.getVisibility(e)),a(2),S(e.UseEIT?"Y":"N"),a(2),x("pTooltip",f(23,14,"settings.chanedit.editchan")),p("disabled",e.
ChanId<0||"S"==s.setupService.pageType&&s.setupService.schedulingEnabled),a(2),p("ngIf","S"==s.setupService.pageType)}}function
NZ(t,i){if(1&t){const
e=I();l(0,"div",52)(1,"p-table",53),C("onFilter",function(s){return
v(e),d().onFilter(s)}),_(2,xZ,2,4,"ng-template",54),_(3,RZ,41,31,"ng-template",55),_(4,FZ,25,18,"ng-template",56),c()()}if(2&t){const
e=d();a(1),p("value",e.allChannels)("scrollable",!0)("rowHover",!0)}}function
VZ(t,i){1&t&&k(0,"p-progressSpinner")}function
BZ(t,i){1&t&&(k(0,"p-message",91),m(1,"translate")),2&t&&x("text",f(1,1,"common.savesuccess"))}function
HZ(t,i){1&t&&(k(0,"p-message",92),m(1,"translate")),2&t&&x("text",f(1,1,"common.networkfail"))}function
qZ(t,i){if(1&t){const
e=I();l(0,"div",86),_(1,BZ,2,3,"p-message",87),_(2,HZ,2,3,"p-message",88),c(),l(3,"p-button",89),C("onClick",function(){return
v(e),d().closeDialog()}),m(4,"translate"),c(),l(5,"p-button",90),C("onClick",function(){return
v(e),d().saveChannel()}),m(6,"translate"),c()}if(2&t){const e=d(),n=
F(7);a(1),p("ngIf",e.successCount>0&&0==e.errorCount&&!n.dirty),a(1),p("ngIf",e.errorCount>0),a(1),x("label",f(4,5,"common.close")),a(2),x("label",f(6,7,"common.save")),p("disabled",!n.dirty||""==e.channel.ChannelName.trim()||""==e.channel.ChanNum.trim()||""==e.channel.CallSign.trim())}}function
GZ(t,i){if(1&t){const
e=I();l(0,"p-button",93),C("onClick",function(){return
v(e),d().closeDialog()}),m(1,"translate"),c(),l(2,"p-button",94),C("onClick",function(){return
v(e),d().displayUnsaved=!1}),m(3,"translate"),c()}2&t&&(x("label",f(1,2,"common.nosave")),a(2),x("label",f(3,4,"common.continue")))}function
UZ(t,i){1&t&&(k(0,"p-message",92),m(1,"translate")),2&t&&x("text",f(1,1,"common.networkfail"))}function
zZ(t,i){if(1&t){const
e=I();l(0,"div",86),_(1,UZ,2,3,"p-message",88),c(),l(2,"p-button",89),C("onClick",function(){v(e);const
s=d(),r=F(7);return
s.displayDelete=!1,r.form.markAsPristine()}),m(3,"translate"),c(),l(4,"p-button",95),C("onClick",function(){v(e);const
s=d();return s.del
eteChannel(s.channel)}),m(5,"translate"),c()}if(2&t){const
e=d();a(1),p("ngIf",e.errorCount>0),a(1),x("label",f(3,3,"common.close")),a(2),x("label",f(5,5,"common.delete"))}}const
jZ=function(t){return{Source:t}};function
$Z(t,i){if(1&t&&(l(0,"p")(1,"b"),g(2),m(3,"translate"),c()()),2&t){const
e=d();a(2),S(Dt(3,1,"settings.chanedit.delete_source_details",U(4,jZ,e.filterEvent.filters.Source.value)))}}function
WZ(t,i){1&t&&(l(0,"p")(1,"b"),g(2),m(3,"translate"),c()()),2&t&&(a(2),S(f(3,1,"settings.chanedit.delete_all_details")))}function
KZ(t,i){if(1&t&&(l(0,"div")(1,"p"),g(2),m(3,"translate"),c()()),2&t){const
e=d();a(2),yo(" ",f(3,3,"common.delete"),"
",e.channel.ChanNum," ",e.channel.ChannelName,"")}}function
QZ(t,i){1&t&&(k(0,"p-message",92),m(1,"translate")),2&t&&x("text",f(1,1,"common.networkfail"))}function
JZ(t,i){if(1&t){const
e=I();l(0,"div",86),_(1,QZ,2,3,"p-message",88),c(),l(2,"p-button",89),C("onClick",function(){v(e);const
s=d(),r=F(7);return s.displayDeleteSource=!1,s.ch
annelOperation=-1,r.form.markAsPristine()}),m(3,"translate"),c(),l(4,"p-button",96),C("onClick",function(){return
v(e),d().deleteSource()}),m(5,"translate"),c()}if(2&t){const
e=d();a(1),p("ngIf",e.errorCount>0),a(1),x("label",f(3,4,"common.cancel")),a(2),x("label",f(5,6,"common.delete")),p("disabled",e.working)}}const
YZ=function(){return{height:"75vw",width:"50vw"}},Ol=function(){return{minWidth:"400px"}},ZZ=function(t,i,e){return{ChanNum:t,ChannelName:i,Source:e}};let
bS=(()=>{class
t{constructor(e,n,s,r){this.channelService=e,this.translate=n,this.setupService=s,this.router=r,this.allChannels=[],this.videoSources=[],this.commMethods=[],this.sourceNames=[],this.multiplexes=[],this.tvFormats=[{value:"Default",prompt:"common.default"},{value:"NTSC",prompt:"NTSC"},{value:"NTSC-JP",prompt:"NTSC-JP"},{value:"PAL",prompt:"PAL"},{value:"PAL-60",prompt:"PAL-60"},{value:"PAL-BG",prompt:"PAL-BG"},{value:"PAL-DK",prompt:"PAL-DK"},{value:"PAL-D",prompt:"PAL-D"},{value:"PAL-I",prompt:"PAL-I"},
{value:"PAL-M",prompt:"PAL-M"},{value:"PAL-N",prompt:"PAL-N"},{value:"PAL-NC",prompt:"PAL-NC"},{value:"SECAM",prompt:"SECAM"},{value:"SECAM-D",prompt:"SECAM-D"},{value:"SECAM-DK",prompt:"SECAM-DK"}],this.visibilities=[{value:"Always
Visible",prompt:"settings.chanedit.always-visible"},{value:"Visible",prompt:"settings.chanedit.visible"},{value:"Not
Visible",prompt:"settings.chanedit.not-visible"},{value:"Never
Visible",prompt:"settings.chanedit.never-visible"}],this.headingNew="settings.chanedit.new_channel",this.headingEdit="settings.chanedit.title",this.warningText="settings.common.warning",this.deleteText="settings.common.ru_sure",this.unassignedText="settings.chanedit.unassigned",this.transDone=0,this.visDone=0,this.numTranslations=10,this.successCount=0,this.errorCount=0,this.selectedAdvanced=!1,this.displayChannelDlg=!1,this.dialogHeader="",this.displayUnsaved=!1,this.displayDelete=!1,this.displayDeleteSource=!1,this.working=!1,this.chansLoaded=!1,this.filterEvent={filters:{Sou
rce:{matchMode:"",value:""}}},this.channel=this.resetChannel(),this.channelOperation=0,this.saveObserver={next:o=>{if(o.bool)switch(console.log("saveObserver
success",o),this.successCount++,this.currentForm.form.markAsPristine(),this.channelOperation){case
0:this.editingChannel&&(Object.assign(this.editingChannel,this.channel),this.editingChannel.Source=this.getSource(this.editingChannel));break;case
1:this.allChannels.push(this.channel);break;case-1:this.channel.ChanId=-99,this.displayDelete=!1,this.displayDeleteSource=!1,this.currentForm.form.markAsPristine();break;case-2:this.channel.ChanId=-99,this.deleteSource()}else
console.log("saveObserver
error",o),this.errorCount++,this.working=!1},error:o=>{console.log("saveObserver
error",o),this.errorCount++,this.working=!1}},this.translate.get(this.unassignedText).subscribe(o=>{this.unassignedText=o,this.transDone++,this.loadLists()}),this.loadTranslations()}ngOnInit(){this.markPristine()}resetChannel(){return{ATSCMajorChan:0,ATSCMinor
Chan:0,CallSign:"",ChanFilters:"",ChanId:0,ChanNum:"",ChannelGroups:"",ChannelName:"",CommFree:!1,CommMethod:-1,DefaultAuth:"",ExtendedVisible:"Visible",FineTune:0,Format:"Default",FrequencyId:"",IconURL:"",InputId:0,Inputs:"",MplexId:0,Programs:[],RecPriority:0,ServiceId:0,ServiceType:0,SourceId:0,TimeOffset:0,UseEIT:!1,Visible:!0,XMLTVID:"",ChanSeq:0}}loadLists(){this.channelService.GetChannelInfoList({Details:!0}).subscribe(e=>{this.allChannels=e.ChannelInfoList.ChannelInfos,this.chansLoaded=!0,this.channelService.GetVideoSourceList().subscribe(n=>{this.videoSources=n.VideoSourceList.VideoSources,this.videoSources.unshift({Id:0,SourceName:this.unassignedText}),this.videoSources.forEach(s=>this.sourceNames.push(s.SourceName)),this.allChannels.forEach((s,r)=>{s.ChanSeq=r,s.Source=this.getSource(s)})})}),this.channelService.GetCommMethodList().subscribe(e=>this.commMethods=e.CommMethodList.CommMethods)}loadMultiplexes(e){this.channelService.GetVideoMultiplexList({SourceID:e}).subscr
ibe(n=>{this.multiplexes=n.VideoMultiplexList.VideoMultiplexes})}loadTranslations(){this.visibilities.forEach(e=>{this.translate.get(e.prompt).subscribe(n=>{e.prompt=n,this.transDone++,this.visDone++,this.visDone>=this.visibilities.length&&(this.visibilities=[...this.visibilities])})}),this.translate.get(this.headingNew).subscribe(e=>{this.headingNew=e,this.transDone++}),this.translate.get(this.headingEdit).subscribe(e=>{this.headingEdit=e,this.transDone++}),this.translate.get(this.warningText).subscribe(e=>{this.warningText=e,this.transDone++}),this.translate.get(this.deleteText).subscribe(e=>{this.deleteText=e,this.transDone++}),this.translate.get(this.tvFormats[0].prompt).subscribe(e=>{this.tvFormats[0].prompt=e,this.tvFormats=[...this.tvFormats],this.transDone++})}getSource(e){const
n=this.videoSources.find(s=>e.SourceId==s.Id);return
null!=n?n.SourceName:this.unassignedText}getVisibility(e){const
n=this.visibilities.find(s=>e.ExtendedVisible==s.value);return
null!=n?n.prompt:""
}openNew(){this.successCount=0,this.errorCount=0,this.dialogHeader=this.headingNew,this.channel=this.resetChannel(),this.displayChannelDlg=!0,this.markPristine()}editChannel(e){this.editingChannel=e,this.successCount=0,this.errorCount=0,this.dialogHeader=this.headingEdit,this.channel=Object.assign({},e),this.displayChannelDlg=!0,this.markPristine(),this.loadMultiplexes(e.SourceId),this.selectedAdvanced=!1}saveChannel(){this.successCount=0,this.errorCount=0,this.displayUnsaved=!1;let
e={CallSign:this.channel.CallSign,ChannelID:this.channel.ChanId,ChannelNumber:this.channel.ChanNum,ChannelName:this.channel.ChannelName,CommMethod:this.channel.CommMethod,ExtendedVisible:this.channel.ExtendedVisible,Format:this.channel.Format,FrequencyID:this.channel.FrequencyId,MplexID:this.channel.MplexId,RecPriority:this.channel.RecPriority,ServiceID:this.channel.ServiceId,SourceID:this.channel.SourceId,TimeOffset:this.channel.TimeOffset,UseEIT:this.channel.UseEIT,XMLTVID:this.channel.XMLTVID};0==this
.channel.ChanId?(this.channelOperation=1,this.channelService.GetAvailableChanid().subscribe(n=>{this.channel.ChanId=n.int,e.ChannelID=n.int,this.channelService.AddDBChannel(e).subscribe(this.saveObserver)})):(this.channelOperation=0,this.channelService.UpdateDBChannel(e).subscribe(this.saveObserver))}closeDialog(){this.currentForm.dirty?this.displayUnsaved?(this.displayUnsaved=!1,this.displayChannelDlg=!1,this.editingChannel=void
0,this.currentForm.form.markAsPristine()):this.displayUnsaved=!0:(this.displayChannelDlg=!1,this.displayUnsaved=!1,this.editingChannel=void
0)}deleteRequest(e){this.channel=e,this.displayDelete=!0}deleteChannel(e,n){this.successCount=0,this.errorCount=0,this.channel=e,this.channelOperation=n?-2:-1,console.log("Delete
Channel",e),this.channelService.RemoveDBChannel(e.ChanId).subscribe(this.saveObserver)}deleteSourceRequest(){this.channel=this.resetChannel(),this.displayDeleteSource=!0}deleteSource(){this.working=!0;const
e=this.allChannels.find(n=>n.ChanId>0
&&(!this.filterEvent.filters.Source.value||this.filterEvent.filters.Source.value==n.Source));e?this.deleteChannel(e,!0):(this.displayDelete=!1,this.displayDeleteSource=!1,this.currentForm.form.markAsPristine(),this.working=!1)}onFilter(e){this.filterEvent=e}markPristine(){setTimeout(()=>this.currentForm.form.markAsPristine(),200)}confirm(e){return
oe(window.confirm(e))}canDeactivate(){return!this.currentForm||!this.currentForm.dirty||this.confirm(this.warningText)}onWindowClose(e){this.currentForm&&this.currentForm.dirty&&(e.preventDefault(),e.returnValue=!1)}}return
t.\u0275fac=function(e){return
new(e||t)(D(Or),D(Oe),D(Me),D(It))},t.\u0275cmp=z({type:t,selectors:[["app-channel-editor"]],viewQuery:function(e,n){if(1&e&&W(SZ,5),2&e){let
s;V(s=B())&&(n.currentForm=s.first)}},hostBindings:function(e,n){1&e&&C("beforeunload",function(r){return
n.onWindowClose(r)},!1,ni)},decls:167,vars:197,consts:[["class","block card
w-full","style","height:
90vh",4,"ngIf","ngIfElse"],["loading",""],[
"name","chanform",1,"ml-3","mr-3"],["chanform","ngForm"],[3,"header","visible","modal","closable","closeOnEscape","visibleChange"],[1,"form-group","field"],["for","ChannelName",1,"label","block"],["pInputText","","id","ChannelName","name","ChannelName",1,"mb-2","form-control","w-full",3,"ngModel","ngModelChange"],["ChannelName","ngModel"],[1,"block"],["for","ChanNum",1,"label","block"],["pInputText","","id","ChanNum","name","ChanNum",1,"mb-2","form-control","w-full",3,"ngModel","ngModelChange"],["ChanNum","ngModel"],["for","FrequencyId",1,"label","block"],["pInputText","","id","FrequencyId","name","FrequencyId",1,"mb-2","form-control","w-full",3,"ngModel","ngModelChange"],["FrequencyId","ngModel"],["for","CallSign",1,"label","block"],["pInputText","","id","CallSign","name","CallSign",1,"mb-2","form-control","w-full",3,"ngModel","ngModelChange"],["CallSign","ngModel"],["for","ExtendedVisible",1,"label","block"],["optionLabel","prompt","optionValue","value","name","ExtendedVisible",3,
"options","ngModel","editable","maxlength","ngModelChange"],["ExtendedVisible","ngModel"],["for","SourceId",1,"label","block"],["optionLabel","SourceName","optionValue","Id","name","SourceId",3,"options","ngModel","editable","maxlength","ngModelChange"],["SourceId","ngModel"],["for","Format",1,"label","block"],["optionLabel","prompt","optionValue","value","name","Format",3,"options","ngModel","editable","maxlength","ngModelChange"],["Format","ngModel"],["for","RecPriority",1,"label","block"],["name","RecPriority","id","RecPriority",3,"ngModel","showButtons","min","max","step","ngModelChange"],["inputId","UseEIT","name","UseEIT",1,"label","mb-2","w-full",3,"ngModel","binary","label","ngModelChange"],["UseEIT","ngModel"],["for","XMLTVID",1,"label","block"],["pInputText","","id","XMLTVID","name","XMLTVID",1,"mb-2","form-control","w-full",3,"ngModel","ngModelChange"],["XMLTVID","ngModel"],["for","TimeOffset",1,"label","block"],["name","TimeOffset","id","TimeOffset",3,"ngModel","showButt
ons","min","max","step","ngModelChange"],["for","CommMethod",1,"label","block"],["optionLabel","LocalizedName","optionValue","CommMethod","name","CommMethod",3,"options","ngModel","editable","maxlength","ngModelChange"],["CommMethod","ngModel"],[3,"header","selected","selectedChange"],["for","MplexId",1,"label","block"],["optionLabel","Description","optionValue","MplexId","name","MplexId",3,"options","ngModel","editable","maxlength","ngModelChange"],["MplexId","ngModel"],["for","ServiceId",1,"label","block"],["name","ServiceId","id","ServiceId",3,"ngModel","showButtons","min","max","step","ngModelChange"],["pTemplate","footer"],[3,"header","visible","modal","visibleChange"],[3,"header","visible","modal","draggable","resizable","visibleChange"],[4,"ngIf","ngIfElse"],["all",""],[4,"ngIf"],[1,"block","card","w-full",2,"height","90vh"],["scrollHeight","flex","styleClass","p-datatable-striped","responsiveLayout","scroll",3,"value","scrollable","rowHover","onFilter"],["pTemplate","caption
"],["pTemplate","header"],["pTemplate","body"],["pButton","","pRipple","","icon","pi
pi-plus",1,"p-button-success","mr-2",3,"label","disabled","click"],["field","Source","matchMode","equals",3,"showMenu"],["pTemplate","filter"],["icon","pi
pi-trash","styleClass","p-button-danger",3,"pTooltip","label","disabled","onClick",4,"ngIf","ngIfElse"],["explain",""],[2,"flex-basis","8%"],["pSortableColumn","ChanSeq",2,"flex-basis","9%"],["field","ChanSeq"],[2,"flex-basis","6%"],[2,"flex-basis","10%"],[2,"flex-basis","24%"],["pSortableColumn","Source",2,"flex-basis","16%"],["field","Source"],["pButton","","pRipple","","icon","pi
pi-pencil","disabled","true",1,"p-button-text"],["pButton","","pRipple","","icon","pi
pi-trash","class","p-button-text
p-button-danger","disabled","true",4,"ngIf"],["name","filter",3,"ngModel","options","placeholder","showClear","onChange"],["pTemplate","item"],["icon","pi
pi-trash","styleClass","p-button-danger",3,"pTooltip","label","disabled","onClick"],["pButton",""
,"pRipple","","icon","pi
pi-trash","disabled","true",1,"p-button-text","p-button-danger"],["height","40",3,"ngClass"],["height","32","width","42","style","background-color:#000000","onerror","this.height='0'",3,"src",4,"ngIf","ngIfElse"],["nullIcon",""],[2,"flex-basis","9%"],[2,"flex-basis","16%"],["pButton","","pRipple","","icon","pi
pi-pencil","tooltipPosition","left",1,"p-button-text",3,"disabled","pTooltip","click"],["pButton","","pRipple","","icon","pi
pi-trash","class","p-button-text
p-button-danger","tooltipPosition","left",3,"pTooltip","disabled","click",4,"ngIf"],["height","32","width","42","onerror","this.height='0'",2,"background-color","#000000",3,"src"],["height","32","width","42"],["pButton","","pRipple","","icon","pi
pi-trash","tooltipPosition","left",1,"p-button-text","p-button-danger",3,"pTooltip","disabled","click"],[1,"col-12",2,"text-align","left"],["severity","success",3,"text",4,"ngIf"],["severity","error",3,"text",4,"ngIf"],["icon","pi
pi-times-circle","styleC
lass","p-button-warning",3,"label","onClick"],["icon","pi
pi-check-circle","styleClass","p-button-success",3,"label","disabled","onClick"],["severity","success",3,"text"],["severity","error",3,"text"],["icon","pi
pi-times-circle","styleClass","p-button-danger",3,"label","onClick"],["icon","pi
pi-check-circle","styleClass","p-button-success",3,"label","onClick"],["icon","pi
pi-check-circle","styleClass","p-button-danger",3,"label","onClick"],["icon","pi
pi-check-circle","styleClass","p-button-danger",3,"disabled","label","onClick"]],template:function(e,n){if(1&e&&(l(0,"h2"),g(1),m(2,"translate"),c(),_(3,NZ,5,3,"div",0),_(4,VZ,1,0,"ng-template",null,1,we),l(6,"form",2,3)(8,"p-dialog",4),C("visibleChange",function(r){return
n.displayChannelDlg=r}),l(9,"div",5)(10,"label",6),g(11),m(12,"translate"),c(),l(13,"input",7,8),C("ngModelChange",function(r){return
n.channel.ChannelName=r}),c(),l(15,"small",9),g(16),m(17,"translate"),c()(),l(18,"div",5)(19,"label",10),g(20),m(21,"translate"),c()
,l(22,"input",11,12),C("ngModelChange",function(r){return
n.channel.ChanNum=r}),c(),l(24,"small",9),g(25),m(26,"translate"),c()(),l(27,"div",5)(28,"label",13),g(29),m(30,"translate"),c(),l(31,"input",14,15),C("ngModelChange",function(r){return
n.channel.FrequencyId=r}),c(),l(33,"small",9),g(34),m(35,"translate"),c()(),l(36,"div",5)(37,"label",16),g(38),m(39,"translate"),c(),l(40,"input",17,18),C("ngModelChange",function(r){return
n.channel.CallSign=r}),c(),l(42,"small",9),g(43),m(44,"translate"),c()(),l(45,"div",5)(46,"label",19),g(47),m(48,"translate"),c(),l(49,"p-dropdown",20,21),C("ngModelChange",function(r){return
n.channel.ExtendedVisible=r}),c(),l(51,"small",9),g(52),m(53,"translate"),c()(),l(54,"div",5)(55,"label",22),g(56),m(57,"translate"),c(),l(58,"p-dropdown",23,24),C("ngModelChange",function(r){return
n.channel.SourceId=r}),c(),l(60,"small",9),g(61),m(62,"translate"),c()(),l(63,"div",5)(64,"label",25),g(65),m(66,"translate"),c(),l(67,"p-dropdown",26,27),C("ngModelChange"
,function(r){return
n.channel.Format=r}),c(),l(69,"small",9),g(70),m(71,"translate"),c()(),l(72,"div",5)(73,"label",28),g(74),m(75,"translate"),c(),l(76,"p-inputNumber",29),C("ngModelChange",function(r){return
n.channel.RecPriority=r}),c(),l(77,"small",9),g(78),m(79,"translate"),c()(),l(80,"div",5)(81,"p-checkbox",30,31),C("ngModelChange",function(r){return
n.channel.UseEIT=r}),m(83,"translate"),c(),l(84,"small",9),g(85),m(86,"translate"),c()(),l(87,"div",5)(88,"label",32),g(89),m(90,"translate"),c(),l(91,"input",33,34),C("ngModelChange",function(r){return
n.channel.XMLTVID=r}),c(),l(93,"small",9),g(94),m(95,"translate"),c()(),l(96,"div",5)(97,"label",35),g(98),m(99,"translate"),c(),l(100,"p-inputNumber",36),C("ngModelChange",function(r){return
n.channel.TimeOffset=r}),c(),l(101,"small",9),g(102),m(103,"translate"),c()(),l(104,"div",5)(105,"label",37),g(106),m(107,"translate"),c(),l(108,"p-dropdown",38,39),C("ngModelChange",function(r){return
n.channel.CommMethod=r}),c(),l(110,"smal
l",9),g(111),m(112,"translate"),c()(),l(113,"p-accordion")(114,"p-accordionTab",40),C("selectedChange",function(r){return
n.selectedAdvanced=r}),m(115,"translate"),l(116,"div",5)(117,"label",41),g(118),m(119,"translate"),c(),l(120,"p-dropdown",42,43),C("ngModelChange",function(r){return
n.channel.MplexId=r}),c(),l(122,"small",9),g(123),m(124,"translate"),c()(),l(125,"div",5)(126,"label",44),g(127),m(128,"translate"),c(),l(129,"p-inputNumber",45),C("ngModelChange",function(r){return
n.channel.ServiceId=r}),c(),l(130,"small",9),g(131),m(132,"translate"),c()()()(),k(133,"br")(134,"br")(135,"br")(136,"br")(137,"br")(138,"br")(139,"br")(140,"br"),_(141,qZ,7,9,"ng-template",46),c(),l(142,"p-dialog",47),C("visibleChange",function(r){return
n.displayUnsaved=r}),m(143,"translate"),l(144,"p"),g(145),m(146,"translate"),c(),_(147,GZ,4,6,"ng-template",46),c(),l(148,"p-dialog",48),C("visibleChange",function(r){return
n.displayDelete=r}),m(149,"translate"),l(150,"h2"),g(151),m(152,"translate"),c()
,l(153,"p"),g(154),m(155,"translate"),c(),_(156,zZ,6,7,"ng-template",46),c(),l(157,"p-dialog",48),C("visibleChange",function(r){return
n.displayDeleteSource=r}),m(158,"translate"),l(159,"h2"),g(160),m(161,"translate"),c(),_(162,$Z,4,6,"p",49),_(163,WZ,4,3,"ng-template",null,50,we),_(165,KZ,4,5,"div",51),_(166,JZ,6,8,"ng-template",46),c()()),2&e){const
s=F(5),r=F(164);a(1),S(f(2,112,"settings.chanedit.title")),a(2),p("ngIf",n.chansLoaded&&n.transDone>=n.numTranslations)("ngIfElse",s),a(5),q(A(187,YZ)),x("header",n.dialogHeader),p("visible",n.displayChannelDlg)("modal",!0)("closable",!1)("closeOnEscape",!1),a(3),S(f(12,114,"settings.chanedit.channame")),a(2),p("ngModel",n.channel.ChannelName),a(3),T("
",f(17,116,"settings.chanedit.channame_desc"),"
"),a(4),S(f(21,118,"settings.chanedit.channum")),a(2),p("ngModel",n.channel.ChanNum),a(3),T("
",f(26,120,"settings.chanedit.channum_desc"),"
"),a(4),S(f(30,122,"settings.chanedit.freqid")),a(2),p("ngModel",n.channel.FrequencyId),a(3),T("
",
f(35,124,"settings.chanedit.freqid_desc"),"
"),a(4),S(f(39,126,"settings.chanedit.callsign")),a(2),p("ngModel",n.channel.CallSign),a(3),T("
",f(44,128,"settings.chanedit.callsign_desc"),"
"),a(4),S(f(48,130,"settings.chanedit.visible_label")),a(2),q(A(188,Ol)),p("options",n.visibilities)("ngModel",n.channel.ExtendedVisible)("editable",!1)("maxlength",0),a(3),T("
",f(53,132,"settings.chanedit.visible_desc"),"
"),a(4),S(f(57,134,"settings.chanedit.source_label")),a(2),q(A(189,Ol)),p("options",n.videoSources)("ngModel",n.channel.SourceId)("editable",!1)("maxlength",0),a(3),T("
",f(62,136,"settings.chanedit.source_desc"),"
"),a(4),S(f(66,138,"settings.chanedit.format_label")),a(2),q(A(190,Ol)),p("options",n.tvFormats)("ngModel",n.channel.Format)("editable",!1)("maxlength",0),a(3),T("
",f(71,140,"settings.chanedit.format_desc"),"
"),a(4),S(f(75,142,"settings.chanedit.priority_label")),a(2),p("ngModel",n.channel.RecPriority)("showButtons",!0)("min",-99)("max",99)("step",1),a(2),T("
",f(79
,144,"settings.chanedit.priority_desc"),"
"),a(3),x("label",f(83,146,"settings.chanedit.eit_label")),p("ngModel",n.channel.UseEIT)("binary",!0),a(4),T("
",f(86,148,"settings.chanedit.eit_desc"),"
"),a(4),S(f(90,150,"settings.chanedit.xmltvid_label")),a(2),p("ngModel",n.channel.XMLTVID),a(3),T("
",f(95,152,"settings.chanedit.xmltvid_desc"),"
"),a(4),S(f(99,154,"settings.chanedit.timeoffset_label")),a(2),p("ngModel",n.channel.TimeOffset)("showButtons",!0)("min",-1440)("max",1440)("step",30),a(2),T("
",f(103,156,"settings.chanedit.timeoffset_desc"),"
"),a(4),S(f(107,158,"settings.chanedit.commmethod_label")),a(2),q(A(191,Ol)),p("options",n.commMethods)("ngModel",n.channel.CommMethod)("editable",!1)("maxlength",0),a(3),T("
",f(112,160,"settings.chanedit.commmethod_desc"),"
"),a(3),x("header",f(115,162,"settings.chanedit_advanced")),p("selected",n.selectedAdvanced),a(4),S(f(119,164,"settings.chanedit.mplex_label")),a(2),q(A(192,Ol)),p("options",n.multiplexes)("ngModel",n.channel.MplexId)
("editable",!1)("maxlength",0),a(3),T("
",f(124,166,"settings.chanedit.mplex_desc"),"
"),a(4),S(f(128,168,"settings.chanedit.serviceid_label")),a(2),p("ngModel",n.channel.ServiceId)("showButtons",!0)("min",-1)("max",65535)("step",1),a(2),T("
",f(132,170,"settings.chanedit.serviceid_desc"),"
"),a(11),x("header",f(143,172,"common.unsaved_heading")),p("visible",n.displayUnsaved)("modal",!0),a(3),S(f(146,174,"common.unsaved_message")),a(3),x("header",f(149,176,"settings.chanedit.delete_this")),p("visible",n.displayDelete)("modal",!0)("draggable",!1)("resizable",!1),a(3),S(f(152,178,"settings.common.ru_sure")),a(3),S(Dt(155,180,"settings.chanedit.delete_details",Qt(193,ZZ,n.channel.ChanNum,n.channel.ChannelName,n.getSource(n.channel)))),a(3),x("header",f(158,183,"settings.chanedit.delete_source")),p("visible",n.displayDeleteSource)("modal",!0)("draggable",!1)("resizable",!1),a(3),S(f(161,185,"settings.common.ru_sure")),a(2),p("ngIf",n.filterEvent.filters.Source.value)("ngIfElse",r),a(3),
p("ngIf",0!=n.channel.ChanId)}},directives:[Q,Dn,ne,On,bt,vg,Ot,Te,_e,ve,Kt,yd,wd,Le,Go,ze,Ue,He,bn,Ye,_n,pt,sn,Ss,Ts,qe],pipes:[ce],styles:[""]}),t})(),XZ=(()=>{class
t{constructor(e){this.router=e}ngOnInit(){}}return t.\u0275fac=function(e){return
new(e||t)(D(It))},t.\u0275cmp=z({type:t,selectors:[["app-wiz-channeledit"]],decls:11,vars:6,consts:[[1,"m-5"],[1,"flex","justify-content-end"],["icon","pi
pi-angle-left","iconPos","left",1,"p-3",3,"label","onClick"],["icon","pi
pi-angle-right","iconPos","right",1,"p-3",3,"label","onClick"]],template:function(e,n){1&e&&(l(0,"p-card",0),k(1,"app-channel-editor")(2,"br")(3,"br")(4,"br")(5,"br"),l(6,"div",1)(7,"p-button",2),C("onClick",function(){return
n.router.navigate(["setupwizard/input-connections"])}),m(8,"translate"),c(),l(9,"p-button",3),C("onClick",function(){return
n.router.navigate(["setupwizard/storage-groups"])}),m(10,"translate"),c()()()),2&e&&(a(7),x("label",f(8,2,"common.back")),a(2),x("label",f(10,4,"common.next")))},directi
ves:[Ne,bS,ve],pipes:[ce],styles:[""]}),t})(),eX=(()=>{class t{}return
t.\u0275fac=function(e){return
new(e||t)},t.\u0275mod=he({type:t}),t.\u0275inj=ue({imports:[[vn.forChild([{path:"setupwizard",component:rS,children:[{path:"selectlanguage",component:nK,canDeactivate:[ji]},{path:"dbsetup",component:RK,canDeactivate:[ji]},{path:"general",component:WJ,canDeactivate:[ji]},{path:"capture-cards",component:hS,canDeactivate:[ji]},{path:"recording-profiles",component:mS,canDeactivate:[ji]},{path:"video-sources",component:UY,canDeactivate:[ji]},{path:"input-connections",component:_S,canDeactivate:[ji]},{path:"channel-editor",component:XZ,canDeactivate:[ji]},{path:"storage-groups",component:gZ,canDeactivate:[ji]},{path:"system-events",component:TZ,canDeactivate:[ji]}]}])],vn]}),t})(),vS=(()=>{class
t{constructor(e){this.httpClient=e,this.guide_hours=3,this.guide_millisecs=60*this.guide_hours*60*1e3,this.startDate=new
Date}toTime(e){return new Date(e).toISOString()}toStartTime(e){return this
.toTime(e)}toEndTime(e){let n=new Date(e),s=new
Date(n.getTime()+this.guide_millisecs);return
this.toTime(s.toISOString())}toHalfHour(e){let n=new Date(e);return
n.setMinutes(n.getMinutes()<30?0:30),n.setSeconds(0),n}AddToChannelGroup(e){return
this.httpClient.post("/Guide/AddToChannelGroup",e)}GetCategoryList(){return
this.httpClient.get("/Guide/GetCategoryList")}GetChannelGroupList(e){let n=(new
ye).set("IncludeEmpty",e);return
this.httpClient.get("/Guide/GetChannelGroupList",{params:n})}GetChannelIcon(e){let
n=(new
ye).set("ChanId",e.ChanId).set("Width",e.Width).set("Height",e.Height);return
this.httpClient.get("/Guide/GetChannelIcon",{params:n})}GetProgramDetails(e){let
n=(new ye).set("ChanId",e.ChanId).set("StartTime",e.StartTime);return
this.httpClient.get("/Guide/GetProgramDetails",{params:n})}GetProgramGuide(e,n){e&&(this.startDate=e);let
s=this.toHalfHour(this.startDate).toISOString(),r={StartTime:this.toStartTime(s),EndTime:this.toEndTime(s),Details:!0,ChannelGroupId:n};re
turn this.httpClient.post("/Guide/GetProgramGuide",r)}GetProgramList(e){let
n=new ye;for(const[s,r]of Object.entries(e))n=n.set(s,r);return
this.httpClient.get("/Guide/GetProgramList",{params:n})}GetStoredSearches(e){let
n=(new ye).set("Type",e);return
this.httpClient.get("/Guide/GetStoredSearches",{params:n})}RemoveFromChannelGroup(e){return
this.httpClient.post("/Guide/RemoveFromChannelGroup",e)}}return
t.\u0275fac=function(e){return
new(e||t)(K(Bi))},t.\u0275prov=X({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();function
tX(t,i){if(1&t){const
e=I();l(0,"div",15)(1,"p-dropdown",16),C("ngModelChange",function(s){return
v(e),d(2).channelGroup=s})("onChange",function(){return
v(e),d(2).refresh()}),m(2,"translate"),c()()}if(2&t){const
e=d(2);a(1),x("pTooltip",f(2,3,"dashboard.guide.channel_group")),p("ngModel",e.channelGroup)("options",e.channelGroups)}}function
nX(t,i){if(1&t&&(l(0,"div",17)(1,"b"),g(2),m(3,"translate"),c()()),2&t){const
e=d(2);a(2),Ec(" ",f(3,4,"dashboard.gui
de.channel")," ",e.channel.ChanNum," ",e.channel.CallSign,"
",e.channel.ChannelName,"")}}function
iX(t,i){1&t&&(l(0,"div",17)(1,"b"),g(2),m(3,"translate"),c()()),2&t&&(a(2),T("
",f(3,1,"dashboard.guide.people_search")," "))}function
sX(t,i){1&t&&(l(0,"div",17)(1,"b"),g(2),m(3,"translate"),c()()),2&t&&(a(2),T("
",f(3,1,"dashboard.guide.title_search")," "))}function
rX(t,i){1&t&&(l(0,"div",17)(1,"b"),g(2),m(3,"translate"),c()()),2&t&&(a(2),T("
",f(3,1,"dashboard.guide.full_search")," "))}function
oX(t,i){if(1&t){const
e=I();l(0,"div",18)(1,"input",19),C("ngModelChange",function(s){return
v(e),d(2).searchValue=s}),c(),l(2,"button",20),C("click",function(){return
v(e),d(2).titleSearch()}),m(3,"translate"),c(),l(4,"button",21),C("click",function(){return
v(e),d(2).peopleSearch()}),m(5,"translate"),c(),l(6,"button",22),C("click",function(){return
v(e),d(2).fullSearch()}),m(7,"translate"),c()()}if(2&t){const
e=d(2);a(1),p("ngModel",e.searchValue),a(1),x("pTooltip",f(3,4,"dashboard.guide.ti
tle_search")),a(2),x("pTooltip",f(5,6,"dashboard.guide.people_search")),a(2),x("pTooltip",f(7,8,"dashboard.guide.full_search"))}}function
aX(t,i){if(1&t){const
e=I();l(0,"div",7)(1,"button",23),C("click",function(){return
v(e),d(2).onGrid()}),m(2,"translate"),c()()}2&t&&(a(1),x("pTooltip",f(2,1,"dashboard.guide.retgrid")))}const
lX=function(){return{width:"30px",height:"30px"}};function
cX(t,i){1&t&&(l(0,"div"),k(1,"p-progressSpinner"),c()),2&t&&(a(1),q(A(2,lX)))}function
uX(t,i){if(1&t){const
e=I();l(0,"div")(1,"button",24),C("click",function(){v(e);const
s=d(3);return
s.refreshing=!0,s.refresh()}),m(2,"translate"),c()()}2&t&&(a(1),x("pTooltip",f(2,1,"common.refresh")))}const
dX=function(t,i){return[t,i]};function
pX(t,i){if(1&t&&_(0,uX,3,3,"div",14),2&t){const
e=d(2);p("ngIf",Ge(1,dX,e.CHANNEL,e.GRID).indexOf(e.displayType)>-1)}}function
hX(t,i){}function
mX(t,i){if(1&t&&(de(0),l(1,"div",34),k(2,"app-guide-timebar",35),c(),pe()),2&t){const
e=d(4);a(2),p("guide",e)}}function fX(t,i
){if(1&t&&(de(0),k(1,"app-guide-programentry",36),pe()),2&t){const
e=d().$implicit,n=d().$implicit,s=d(3);a(1),p("program",e)("guideStartTime",s.m_programGuide.ProgramGuide.StartTime)("guideEndTime",s.m_programGuide.ProgramGuide.EndTime)("guideComponent",s)("channel",n)}}function
gX(t,i){if(1&t&&(de(0),_(1,fX,2,5,"ng-container",14),pe()),2&t){const
e=i.$implicit,n=d(4);a(1),p("ngIf",!n.timeChange&&n.inDisplayWindow(e.StartTime,e.EndTime))}}function
_X(t,i){if(1&t&&(l(0,"div",28),_(1,mX,3,1,"ng-container",14),l(2,"div",29)(3,"div",30),k(4,"app-guide-channelicon",31),c(),l(5,"div",32),_(6,gX,2,1,"ng-container",33),c()()()),2&t){const
e=i.$implicit,n=i.rowIndex,s=d(3);a(1),p("ngIf",n%5==0),a(3),p("channel",e)("guideComponent",s),a(2),p("ngForOf",e.Programs)}}const
bX=function(){return{width:"100%",height:"90vh"}};function
vX(t,i){if(1&t&&(l(0,"div")(1,"p-scrollPanel")(2,"p-dataView",25),_(3,hX,0,0,"ng-template",26),_(4,_X,7,4,"ng-template",27),c()()()),2&t){const
e=d(2);a(1),q(A(4,bX))
,a(1),p("value",e.m_programGuide.ProgramGuide.Channels)("totalRecords",e.m_programGuide.ProgramGuide.TotalAvailable)}}function
CX(t,i){if(1&t&&(l(0,"div"),k(1,"app-programs",37),c()),2&t){const
e=d(2);a(1),p("inter",e.inter)("programs",e.listPrograms)}}const
Cg=function(t,i,e,n){return[t,i,e,n]};function yX(t,i){if(1&t){const
e=I();l(0,"div")(1,"div",5),_(2,tX,3,5,"div",6),l(3,"div",7)(4,"p-calendar",8),C("ngModelChange",function(s){return
v(e),d().m_pickerDate=s})("onClose",function(){return
v(e),d().onDateChange()})("keyup.enter",function(){return
v(e),d().onDateChange()})("onBlur",function(){return
v(e),d().onDateChange()}),m(5,"translate"),c()(),_(6,nX,4,6,"div",9),_(7,iX,4,3,"div",9),_(8,sX,4,3,"div",9),_(9,rX,4,3,"div",9),_(10,oX,8,10,"div",10),_(11,aX,3,3,"div",11),l(12,"div",7),_(13,cX,2,3,"div",0),_(14,pX,1,4,"ng-template",null,12,we),c(),l(16,"div",7)(17,"button",13),C("click",function(){return
v(e),d().showLegend=!0}),m(18,"translate"),c()()(),_(19,vX,5,5,"div",14),_(20,C
X,2,2,"div",14),c()}if(2&t){const
e=F(15),n=d();a(2),p("ngIf",n.displayType==n.GRID),a(2),x("pTooltip",f(5,22,"dashboard.guide.calendar_tip")),p("ngModel",n.m_pickerDate)("showTime",!0)("stepMinute",30)("dateFormat","yy/mm/dd")("selectOtherMonths",!0)("showIcon",!0)("showOnFocus",!0)("showButtonBar",!0)("clearButtonStyleClass","hidden"),a(2),p("ngIf",n.displayType==n.CHANNEL),a(1),p("ngIf",n.displayType==n.PEOPLESEARCH),a(1),p("ngIf",n.displayType==n.TITLESEARCH),a(1),p("ngIf",n.displayType==n.FULLSEARCH),a(1),p("ngIf",qn(26,Cg,n.GRID,n.TITLESEARCH,n.PEOPLESEARCH,n.FULLSEARCH).indexOf(n.displayType)>-1),a(1),p("ngIf",qn(31,Cg,n.CHANNEL,n.TITLESEARCH,n.PEOPLESEARCH,n.FULLSEARCH).indexOf(n.displayType)>-1),a(2),p("ngIf",n.refreshing)("ngIfElse",e),a(4),x("label",f(18,24,"dashboard.guide.colors")),a(2),p("ngIf",n.displayType==n.GRID),a(1),p("ngIf",qn(36,Cg,n.CHANNEL,n.TITLESEARCH,n.PEOPLESEARCH,n.FULLSEARCH).indexOf(n.displayType)>-1)}}function
wX(t,i){1&t&&k(0,"p-progressSpinner")}fun
ction TX(t,i){if(1&t&&k(0,"app-legend",38),2&t){const
e=d();p("programGuide",e.displayType==e.GRID?e.m_programGuide:null)("listPrograms",e.displayType==e.GRID?null:e.listPrograms)}}const
SX=function(){return{width:"80vw"}};let CS=(()=>{class
t{constructor(e,n){this.guideService=e,this.translate=n,this.m_startDate=new
Date,this.m_pickerDate=new Date,this.m_endDate=new
Date,this.channelGroups=[],this.m_channelData=[],this.m_channelTotal=10,this.m_rows=10,this.listPrograms=[],this.allGroup={GroupId:0,Name:this.translate.instant("settings.chanedit.all"),Password:""},this.channelGroup=this.allGroup,this.loaded=!1,this.refreshing=!1,this.timeChange=!1,this.inter={summaryComponent:this},this.GRID=1,this.CHANNEL=2,this.TITLESEARCH=3,this.PEOPLESEARCH=4,this.FULLSEARCH=5,this.displayType=this.GRID,this.searchValue="",this.showLegend=!1,this.translate.onLangChange.subscribe(s=>{console.log("Event:
language change, new language
("+s.lang+")"),this.switchLanguage(s.lang),this.fetchData()})}ngOn
Init(){this.fetchData()}switchLanguage(e){this.translate.use(e)}fetchData(e){0==this.channelGroups.length&&this.guideService.GetChannelGroupList(!1).subscribe(n=>{console.log(n),this.channelGroups=n.ChannelGroupList.ChannelGroups,this.channelGroups.unshift(this.allGroup)}),this.guideService.GetProgramGuide(e,this.channelGroup.GroupId).subscribe(n=>{this.m_programGuide=n,this.m_startDate=new
Date(n.ProgramGuide.StartTime),this.m_pickerDate=new
Date(this.m_startDate),this.m_endDate=new
Date(n.ProgramGuide.EndTime),this.m_channelData=n.ProgramGuide.Channels,this.m_channelTotal=n.ProgramGuide.TotalAvailable,this.loaded=!0,this.refreshing=!1,this.timeChange=!1})}fetchDetails(){let
e=this.m_startDate.getTime(),s={Details:!0,StartTime:new
Date(e+1e3).toISOString()};switch(this.displayType){case
this.CHANNEL:s.ChanId=this.channel.ChanId;break;case
this.TITLESEARCH:s.TitleFilter=this.searchValue,s.Count=1e3;break;case
this.PEOPLESEARCH:s.PersonFilter=this.searchValue,s.Count=1e3;break;case t
his.FULLSEARCH:s.KeywordFilter=this.searchValue,s.Count=1e3}this.listPrograms=[],this.guideService.GetProgramList(s).subscribe(r=>{this.listPrograms=r.ProgramList.Programs,this.loaded=!0,this.refreshing=!1})}inDisplayWindow(e,n){let
s=new Date(e),r=new Date(n),o=new Date(this.m_startDate),u=new
Date(this.m_endDate);return!(r<=o||s>=u)&&s<u}onDateChange(){this.m_pickerDate||(this.m_pickerDate=new
Date),this.m_pickerDate.getTime()!=this.m_startDate.getTime()&&(this.m_startDate=new
Date(this.m_pickerDate),this.timeChange=!0,this.refresh())}refresh(){switch(this.refreshing=!0,this.displayType){case
this.GRID:this.m_startDate&&(this.refreshing=!0,this.fetchData(this.m_startDate));break;case
this.CHANNEL:case this.TITLESEARCH:case this.PEOPLESEARCH:case
this.FULLSEARCH:this.refreshing=!0,this.fetchDetails()}}onChannel(e){this.channel=e,this.displayType=this.CHANNEL,this.refresh()}onGrid(){this.displayType=this.GRID,this.refresh()}titleSearch(){this.searchValue=this.searchValue.trim(),this
.searchValue.length>1&&(this.displayType=this.TITLESEARCH,this.refresh())}peopleSearch(){this.searchValue=this.searchValue.trim(),this.searchValue.length>1&&(this.displayType=this.PEOPLESEARCH,this.refresh())}fullSearch(){this.searchValue=this.searchValue.trim(),this.searchValue.length>1&&(this.displayType=this.FULLSEARCH,this.refresh())}}return
t.\u0275fac=function(e){return
new(e||t)(D(vS),D(Oe))},t.\u0275cmp=z({type:t,selectors:[["app-guide"]],decls:10,vars:14,consts:[[4,"ngIf","ngIfElse"],[3,"inter"],["loading",""],[3,"header","visible","modal","visibleChange"],["pTemplate",""],[1,"flex"],["class","flex
align-items-center
pr-5",4,"ngIf"],[1,"flex","align-items-center"],["tooltipPosition","top",3,"ngModel","showTime","stepMinute","dateFormat","selectOtherMonths","showIcon","showOnFocus","showButtonBar","clearButtonStyleClass","pTooltip","ngModelChange","onClose","keyup.enter","onBlur"],["class","flex
align-items-center p-5",4,"ngIf"],["class","flex
align-items-center pl-5",4,"ngI
f"],["class","flex
align-items-center",4,"ngIf"],["refreshBn",""],["type","text","pButton","",3,"label","click"],[4,"ngIf"],[1,"flex","align-items-center","pr-5"],["name","channelGroup","optionLabel","Name","tooltipPosition","top",3,"ngModel","options","pTooltip","ngModelChange","onChange"],[1,"flex","align-items-center","p-5"],[1,"flex","align-items-center","pl-5"],["type","text","pInputText","","id","searchValue","name","searchValue","placeholder","Search",1,"text-xl",3,"ngModel","ngModelChange"],["pButton","","pRipple","","icon","pi
pi-search","tooltipPosition","top",1,"p-button-text",3,"pTooltip","click"],["pButton","","pRipple","","icon","pi
pi-user","tooltipPosition","top",1,"p-button-text",3,"pTooltip","click"],["pButton","","pRipple","","icon","pi
pi-search-plus","tooltipPosition","top",1,"p-button-text",3,"pTooltip","click"],["pButton","","pRipple","","icon","pi
pi-table","tooltipPosition","top",1,"p-button-text",3,"pTooltip","click"],["pButton","","pRipple","","icon","pi
p
i-refresh","tooltipPosition","top",1,"p-button-text",3,"pTooltip","click"],[3,"value","totalRecords"],["pTemplate","header","styleClass","timeHeader"],["pTemplate","listItem"],[1,"grid","col-12","p-3"],[1,"grid","flex-grow-1"],[1,"col-1"],[3,"channel","guideComponent"],[1,"col"],[4,"ngFor","ngForOf"],[1,"col-12"],[3,"guide"],[3,"program","guideStartTime","guideEndTime","guideComponent","channel"],[3,"inter","programs"],[3,"programGuide","listPrograms"]],template:function(e,n){if(1&e&&(l(0,"h2"),g(1),m(2,"translate"),c(),_(3,yX,21,41,"div",0),k(4,"app-schedule",1),_(5,wX,1,0,"ng-template",null,2,we),l(7,"p-dialog",3),C("visibleChange",function(r){return
n.showLegend=r}),m(8,"translate"),_(9,TX,1,2,"ng-template",4),c()),2&e){const
s=F(6);a(1),T("",f(2,9,"dashboard.programguide"),"
"),a(2),p("ngIf",n.loaded)("ngIfElse",s),a(1),p("inter",n.inter),a(3),q(A(13,SX)),x("header",f(8,11,"dashboard.guide.colors")),p("visible",n.showLegend)("modal",!0)}},styles:[".channelRow[_ngcontent-%COMP%]{
display:block;grid-template-columns:90px
auto;width:100%;height:82px;padding-bottom:2px}.programsBox[_ngcontent-%COMP%],
.timebarbox[_ngcontent-%COMP%]{grid-template-columns:90px
auto;grid-template-rows:28px;width:100%}"]}),t})();function
xX(t,i){1&t&&k(0,"img",5),2&t&&x("src",d().channel.IconURL,ln)}function
DX(t,i){1&t&&k(0,"img",6)}let MX=(()=>{class
t{constructor(){}ngOnInit(){}}return t.\u0275fac=function(e){return
new(e||t)},t.\u0275cmp=z({type:t,selectors:[["app-guide-channelicon"]],inputs:{channel:"channel",guideComponent:"guideComponent"},decls:8,vars:4,consts:[[1,"flex","flex-column","align-items-center","channelBox","cursor-pointer",3,"click"],[1,"channelIcon"],["height","57",3,"src",4,"ngIf","ngIfElse"],["nullIcon",""],[1,"channelText"],["height","57",3,"src"],["height","0","width","0"]],template:function(e,n){if(1&e&&(l(0,"div",0),C("click",function(){return
n.guideComponent.onChannel(n.channel)}),l(1,"div",1),_(2,xX,1,1,"img",2),_(3,DX,1,0,"ng-template",null,3,we),c(),
l(5,"div",4)(6,"span"),g(7),c()()()),2&e){const
s=F(4);a(2),p("ngIf",n.channel.IconURL)("ngIfElse",s),a(5),We("",n.channel.ChanNum,"
",n.channel.CallSign,"")}},directives:[Q],styles:[".channelBox[_ngcontent-%COMP%]{border-radius:10px;background:var(--surface-200);height:120px}.channelIcon[_ngcontent-%COMP%]{height:57px;max-width:86px;margin-top:10px;margin-bottom:3px;overflow:hidden;float:right}.channelText[_ngcontent-%COMP%]{clear:both;font-weight:700;text-align:-webkit-center;overflow:hidden;text-overflow:ellipsis;padding:0
3px}"]}),t})();const
kX=function(){return["WillRecord","Recording"]};function
IX(t,i){if(1&t&&(l(0,"div")(1,"div",5),g(2),c()()),2&t){const
e=d();a(1),p("ngClass",A(2,kX).indexOf(e.program.Recording.StatusName)>-1?"bg-green-500":"bg-pink-400"),a(1),T("
",e.dataService.recStatusText[e.program.Recording.StatusName],"")}}function
EX(t,i){if(1&t&&(l(0,"div")(1,"div",6),g(2),c()()),2&t){const
e=d();a(2),S((e.program.Season>0?"S"+e.program.Season+"E"+e.program.Episod
e:"")+" "+e.program.SubTitle)}}const
RX=function(t,i){return[t,i,"guide_type_default"]};let LX=(()=>{class
t{constructor(e){this.dataService=e,this.editSchedule=!1,this.typeclass="",this.catclass="",this.regex=/[^a-z0-9]/g}ngOnInit(){this.typeclass="guide_type_"+this.program.CatType,this.catclass="guide_cat_"+this.program.Category.toLowerCase().replace(this.regex,"_")}durationToWidth(){let
e=new Date(this.program.StartTime),n=new Date(this.program.EndTime),s=new
Date(this.guideStartTime),r=new
Date(this.guideEndTime),h=e<s?s:e,b=n>r?r:n,y=r.getTime()-s.getTime();return(b.getTime()-h.getTime())/y*100}openDialog(){this.guideComponent.inter.sched&&this.guideComponent.inter.sched.open(this.program,this.channel)}}return
t.\u0275fac=function(e){return
new(e||t)(D(Ll))},t.\u0275cmp=z({type:t,selectors:[["app-guide-programentry"]],inputs:{program:"program",channel:"channel",guideStartTime:"guideStartTime",guideEndTime:"guideEndTime",guideComponent:"guideComponent"},decls:8,vars:11,consts:[[
"tooltipPosition","top",1,"programBox","cursor-pointer",3,"ngClass","pTooltip","click"],[1,"programTitle"],[1,"programBody"],[1,"programCatType"],[4,"ngIf"],[1,"programCatType",3,"ngClass"],[1,"programSubtitle"]],template:function(e,n){1&e&&(l(0,"div",0),C("click",function(){return
n.openDialog()}),l(1,"div",1),g(2),c(),l(3,"div",2)(4,"div",3),g(5),c(),_(6,IX,3,3,"div",4),_(7,EX,3,1,"div",4),c()()),2&e&&(_i("width",n.durationToWidth(),"%"),x("pTooltip",n.program.Description),p("ngClass",Ge(8,RX,n.typeclass,n.catclass)),a(2),S(n.program.Title),a(3),S(n.program.Category),a(1),p("ngIf",n.program.Recording),a(1),p("ngIf",0!=n.program.SubTitle.length))},directives:[Le,Kt,Q],styles:[".programBox[_ngcontent-%COMP%]{float:left;height:120px;padding:0
0 0
2px;color:var(--primary-color-text);background:var(--surface-200);border-radius:10px;overflow:hidden;text-overflow:ellipsis}.programTitle[_ngcontent-%COMP%]{padding:5px
8px 4px 7px;width:100%;height:28px;color:var(--primary-color-text);backg
round:linear-gradient(to bottom,var(--surface-800) 1%,var(--surface-500)
90%,var(--surface-200)
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;height:45px;z-index:5}.programCatType[_ngcontent-%COMP%]{position:relative;font-weight:700;margin-right:5px;line-height:15px;padding-top:2px;padding-bottom:3px}.programSubtitle[_ngcontent-%COMP%]{position:relative;z-index:1;line-height:15px}"]}),t})(),OX=(()=>{class
t{constructor(e){this.guideService=e}ngOnInit(){}segmentToStartTime(e){const
n=18e5*e;return(new Date(this.guide.m_startDate.getTime()+n).toLocaleTimeString()+"
").replace(/:.. /," ")}pageLeft(){this.guide.m_pickerDate=new
Date(this.guide.m_startDate.getTime()-this.guideService.guide_millisecs),this.guide.onDateChange()}pageRight(){this.guide.m_picke
rDate=new
Date(this.guide.m_startDate.getTime()+this.guideService.guide_millisecs),this.guide.onDateChange()}}return
t.\u0275fac=function(e){return
new(e||t)(D(vS))},t.\u0275cmp=z({type:t,selectors:[["app-guide-timebar"]],inputs:{guide:"guide"},decls:25,vars:7,consts:[[1,"grid"],[1,"col-1","datebox"],[1,"col","segmentbox"],[1,"flex"],[1,"flex-none","cursor-pointer",3,"click"],[1,"flex-none"],[1,"flex-grow-1"]],template:function(e,n){1&e&&(l(0,"div",0)(1,"div",1),g(2),c(),l(3,"div",2)(4,"div",3)(5,"div",4),C("click",function(){return
n.pageLeft()}),g(6,"<<"),c(),l(7,"div",5),g(8),c()()(),l(9,"div",2),g(10),c(),l(11,"div",2),g(12),c(),l(13,"div",2),g(14),c(),l(15,"div",2),g(16),c(),l(17,"div",2)(18,"div",3)(19,"div",5),g(20),c(),l(21,"div",6),g(22,"\xa0"),c(),l(23,"div",4),C("click",function(){return
n.pageRight()}),g(24,">>"),c()()()()),2&e&&(a(2),S(n.guide.m_startDate.toLocaleDateString()),a(6),T("\xa0",n.segmentToStartTime(0),""),a(2),S(n.segmentToStartTime(1)),a(2),S(n.segmentToSt
artTime(2)),a(2),S(n.segmentToStartTime(3)),a(2),S(n.segmentToStartTime(4)),a(4),S(n.segmentToStartTime(5)))},styles:[".timebarbox[_ngcontent-%COMP%]{grid-template-columns:90px
auto;grid-template-rows:28px;width:100%}.datebox[_ngcontent-%COMP%]{padding:5px 8px 4px
7px;color:var(--primary-color-text);background:linear-gradient(to
bottom,var(--surface-800) 1%,var(--surface-500) 90%,var(--surface-200)
99%);border-radius:10px}.segmentsbox[_ngcontent-%COMP%]{display:block;float:left;position:relative;height:100%;width:calc(100%
- 91px)}.segmentbox[_ngcontent-%COMP%]{width:25%;padding:5px 8px 4px
7px;color:var(--primary-color-text);background:linear-gradient(to
bottom,var(--surface-800) 1%,var(--surface-500) 90%,var(--surface-200)
99%);height:auto;border-radius:10px}"]}),t})();function yS(t,i=zf){const n=function
AX(t){return t instanceof Date&&!isNaN(+t)}(t)?+t-i.now():Math.abs(t);return
s=>s.lift(new PX(n,i))}class
PX{constructor(i,e){this.delay=i,this.scheduler=e}call(i,e){return e.sub
scribe(new yg(i,this.delay,this.scheduler))}}class yg extends
yt{constructor(i,e,n){super(i),this.delay=e,this.scheduler=n,this.queue=[],this.active=!1,this.errored=!1}static
dispatch(i){const
e=i.source,n=e.queue,s=i.scheduler,r=i.destination;for(;n.length>0&&n[0].time-s.now()<=0;)n.shift().notification.observe(r);if(n.length>0){const
o=Math.max(0,n[0].time-s.now());this.schedule(i,o)}else
this.unsubscribe(),e.active=!1}_schedule(i){this.active=!0,this.destination.add(i.schedule(yg.dispatch,this.delay,{source:this,destination:this.destination,scheduler:i}))}scheduleNotification(i){if(!0===this.errored)return;const
e=this.scheduler,n=new
FX(e.now()+this.delay,i);this.queue.push(n),!1===this.active&&this._schedule(e)}_next(i){this.scheduleNotification(Kn.createNext(i))}_error(i){this.errored=!0,this.queue=[],this.destination.error(i),this.unsubscribe()}_complete(){this.scheduleNotification(Kn.createComplete()),this.unsubscribe()}}class
FX{constructor(i,e){this.time=i,this.notificatio
n=e}}const NX=["cetonform"],VX=["top"];function
BX(t,i){1&t&&(g(0),m(1,"translate")),2&t&&T("
",f(1,1,"settings.capture.ceton.title")," ")}function
HX(t,i){}function qX(t,i){if(1&t){const
e=I();l(0,"div",8)(1,"div",9)(2,"div",10)(3,"label",11),g(4),m(5,"translate"),c(),l(6,"input",12,13),C("ngModelChange",function(s){return
v(e),d().work.ipAddress=s}),c(),l(8,"small",14),g(9),m(10,"translate"),c()(),l(11,"div",10)(12,"label",15),g(13),m(14,"translate"),c(),l(15,"input",16,13),C("ngModelChange",function(s){return
v(e),d().work.tuner=s}),c(),l(17,"small",14),g(18),m(19,"translate"),c()(),l(20,"div",10)(21,"label",17),g(22),m(23,"translate"),c(),l(24,"input",18,19),C("ngModelChange",function(s){return
v(e),d().card.VideoDevice=s}),c(),l(26,"small",14),g(27),m(28,"translate"),c()(),l(29,"div",10)(30,"label",20),g(31),m(32,"translate"),c(),l(33,"p-inputNumber",21),C("ngModelChange",function(s){return
v(e),d().card.SignalTimeout=s}),c(),l(34,"small",14),g(35),m(36,"translate"),c()(),l(37,
"div",10)(38,"label",22),g(39),m(40,"translate"),c(),l(41,"p-inputNumber",23),C("ngModelChange",function(s){return
v(e),d().card.ChannelTimeout=s}),c(),l(42,"small",14),g(43),m(44,"translate"),c()()()()}if(2&t){const
e=d();a(4),S(f(5,23,"settings.capture.ceton.ipaddress_label")),a(2),p("ngModel",e.work.ipAddress),a(3),T("
",f(10,25,"settings.capture.ceton.ipaddress_desc"),"
"),a(4),S(f(14,27,"settings.capture.ceton.tuner_label")),a(2),p("ngModel",e.work.tuner),a(3),T("
",f(19,29,"settings.capture.ceton.tuner_desc"),"
"),a(4),S(f(23,31,"settings.capture.ceton.deviceid_label")),a(2),p("ngModel",e.card.VideoDevice),a(3),T("
",f(28,33,"settings.capture.ceton.deviceid_desc"),"
"),a(4),S(f(32,35,"settings.capture.sigtimeout_label")),a(2),p("ngModel",e.card.SignalTimeout)("showButtons",!0)("min",250)("max",6e4)("step",250),a(2),T("
",f(36,37,"settings.capture.sigtimeout_desc"),"
"),a(4),S(f(40,39,"settings.capture.tunetimeout_label")),a(2),p("ngModel",e.card.ChannelTimeout)("showButtons",!
0)("min",1750)("max",65e3)("step",250),a(2),T("
",f(44,41,"settings.capture.tunetimeout_desc")," ")}}function
GX(t,i){1&t&&(k(0,"p-message",29),m(1,"translate")),2&t&&x("text",f(1,1,"common.savesuccess"))}function
UX(t,i){1&t&&(k(0,"p-message",30),m(1,"translate")),2&t&&x("text",f(1,1,"common.networkfail"))}function
zX(t,i){if(1&t){const
e=I();l(0,"div",24)(1,"div",25),_(2,GX,2,3,"p-message",26),_(3,UX,2,3,"p-message",27),c(),l(4,"p-button",28),C("onClick",function(){v(e);const
s=d(),r=F(1);return
s.saveForm(),r.form.markAsPristine()}),m(5,"translate"),c()()}if(2&t){const
e=d(),n=F(1);a(2),p("ngIf",e.work.successCount>0&&0==e.work.errorCount&&!n.dirty),a(1),p("ngIf",e.work.errorCount>0),a(1),x("label",f(5,4,"common.save")),p("disabled",!n.dirty||!e.card.VideoDevice||e.setupService.schedulingEnabled)}}let
jX=(()=>{class
t{constructor(e,n){this.captureCardService=e,this.setupService=n,this.work={ipAddress:"",tuner:"",successCount:0,errorCount:0},this.saveObserver={next:s=>{this.card.C
ardId&&s.bool?this.work.successCount++:!this.card.CardId&&s.int?(this.work.successCount++,this.card.CardId=s.int):(this.work.errorCount++,this.currentForm.form.markAsDirty())},error:s=>{console.error(s),this.work.errorCount++,this.currentForm.form.markAsDirty()}}}ngOnInit(){if(this.card.VideoDevice){const
e=this.card.VideoDevice.split("-");if(2==e.length){this.work.ipAddress=e[0];const
n=e[1].split(".");2==n.length&&(this.work.tuner=n[1])}}}ngAfterViewInit(){this.currentForm.valueChanges.pipe(yS(50)).subscribe(()=>this.card.VideoDevice=this.work.ipAddress+"-RTP."+this.work.tuner),this.setupService.setCurrentForm(this.currentForm),this.topElement.nativeElement.scrollIntoView({behavior:"smooth",block:"start"})}saveForm(){console.log("save
form
clicked"),this.work.successCount=0,this.work.errorCount=0,this.card.CardId?this.cardList.CaptureCardList.CaptureCards.forEach(e=>{(e.CardId==this.card.CardId||e.ParentId==this.card.CardId)&&(this.captureCardService.UpdateCaptureCard(e.CardId,"vi
deodevice",this.card.VideoDevice).subscribe(this.saveObserver),this.captureCardService.UpdateCaptureCard(e.CardId,"signal_timeout",String(this.card.SignalTimeout)).subscribe(this.saveObserver),this.captureCardService.UpdateCaptureCard(e.CardId,"channel_timeout",String(this.card.ChannelTimeout)).subscribe(this.saveObserver))}):this.captureCardService.AddCaptureCard(this.card).subscribe(this.saveObserver)}}return
t.\u0275fac=function(e){return
new(e||t)(D(Gt),D(Me))},t.\u0275cmp=z({type:t,selectors:[["app-ceton"]],viewQuery:function(e,n){if(1&e&&(W(NX,5),W(VX,5)),2&e){let
s;V(s=B())&&(n.currentForm=s.first),V(s=B())&&(n.topElement=s.first)}},inputs:{card:"card",cardList:"cardList"},decls:9,vars:0,consts:[["name","cetonform",1,"ml-3","mr-3"],["cetonform","ngForm"],["top",""],[1,"m-5"],["pTemplate","title"],["pTemplate","subtitle"],["pTemplate","content"],["pTemplate","footer"],[1,"grid"],[1,"mb-4","w-full"],[1,"form-group","field"],["for","ip",1,"label","block"],["pInputText","","id","
ip","name","ip",1,"mb-2","form-control","w-full",3,"ngModel","ngModelChange"],["ipAddress","ngModel"],[1,"block"],["for","tuner",1,"label","block"],["pInputText","","id","tuner","name","tuner",1,"mb-2","form-control","w-full",3,"ngModel","ngModelChange"],["for","VideoDevice",1,"label","block"],["pInputText","","id","VideoDevice","name","VideoDevice","disabled","true",1,"mb-2","form-control","w-full",3,"ngModel","ngModelChange"],["VideoDevice","ngModel"],["for","SignalTimeout",1,"label","block"],["name","SignalTimeout","id","SignalTimeout",3,"ngModel","showButtons","min","max","step","ngModelChange"],["for","ChannelTimeout",1,"label","block"],["name","ChannelTimeout","id","ChannelTimeout",3,"ngModel","showButtons","min","max","step","ngModelChange"],[1,"grid","nogutter"],[1,"col-12"],["severity","success",3,"text",4,"ngIf"],["severity","error",3,"text",4,"ngIf"],["icon","pi
pi-save","iconPos","left",1,"col","pr-1",3,"label","disabled","onClick"],["severity","success",3,"text"],["seve
rity","error",3,"text"]],template:function(e,n){1&e&&(l(0,"form",0,1),k(2,"span",null,2),l(4,"p-card",3),_(5,BX,2,3,"ng-template",4),_(6,HX,0,0,"ng-template",5),_(7,qX,45,43,"ng-template",6),_(8,zX,6,6,"ng-template",7),c()())},directives:[ze,Ue,He,Ne,ne,Ye,Te,_e,pt,Q,qe,ve],pipes:[ce],styles:[""]}),t})();const
$X=["dvbform"],WX=["top"];function
KX(t,i){1&t&&(g(0),m(1,"translate")),2&t&&T("
",f(1,1,"settings.capture.dvb.title")," ")}function
QX(t,i){}const JX=function(){return{minWidth:"80%"}};function
YX(t,i){if(1&t){const
e=I();l(0,"p-dropdown",43,44),C("ngModelChange",function(s){return
v(e),d(2).currentDevice=s})("onChange",function(){return
v(e),d(2).updateDevice()}),c()}if(2&t){const
e=d(2);q(A(6,JX)),p("options",e.captureDeviceList.CaptureDeviceList.CaptureDevices)("ngModel",e.currentDevice)("editable",!1)("maxlength",0)}}function
ZX(t,i){if(1&t&&(l(0,"div")(1,"small",45),g(2),c()()),2&t){const
e=d(2);a(2),T(" ",e.work.warningMessage," ")}}function
XX(t,i){if(1&t){const e=I();
l(0,"input",46,47),C("ngModelChange",function(s){return
v(e),d(2).currentDevice.FrontendName=s}),c()}2&t&&p("ngModel",d(2).currentDevice.FrontendName)}function
eee(t,i){if(1&t){const
e=I();l(0,"p-dropdown",48,49),C("ngModelChange",function(s){return
v(e),d(2).card.InputName=s}),c()}if(2&t){const
e=d(2);p("options",e.currentDevice.InputNames)("ngModel",e.card.InputName)}}function
tee(t,i){if(1&t){const
e=I();l(0,"p-button",50),C("onClick",function(){return
v(e),d(2).work.displayNewDiseqc=!0}),m(1,"translate"),c()}2&t&&x("label",f(1,1,"settings.capture.dvb.newsatellite_button"))}function
nee(t,i){if(1&t){const
e=I();l(0,"p-button",51),C("onClick",function(){return
v(e),d(2).work.displayNewDiseqc=!1}),m(1,"translate"),c(),l(2,"p-button",52),C("onClick",function(){return
v(e),d(2).newDiseqc()}),m(3,"translate"),c()}if(2&t){const
e=d(2);x("label",f(1,3,"common.cancel")),a(2),x("label",f(3,5,"common.ok")),p("disabled",e.selectedDiseqcType.inactive)}}function
iee(t,i){if(1&t){const e=I();l
(0,"p-button",53),C("onClick",function(){v(e);const s=d(2);return
s.setupRootTrees(),s.work.displayConnectDevice=!0}),m(1,"translate"),m(2,"translate"),c()}2&t&&(x("label",f(1,2,"settings.capture.dvb.satellite_connect")),x("pTooltip",f(2,4,"settings.capture.dvb.satellite_connect_tooltip")))}function
see(t,i){if(1&t){const
e=I();l(0,"p-button",51),C("onClick",function(){return
v(e),d(2).work.displayConnectDevice=!1}),m(1,"translate"),c(),l(2,"p-button",52),C("onClick",function(){return
v(e),d(2).selectDiseqc()}),m(3,"translate"),c()}if(2&t){const
e=d(2);x("label",f(1,3,"common.cancel")),a(2),x("label",f(3,5,"common.ok")),p("disabled",!e.work.selectedDiseqcTree)}}function
ree(t,i){if(1&t){const
e=I();l(0,"p-button",54),C("onClick",function(){return
v(e),d(2).canDeleteDiseqc()}),c()}}function oee(t,i){if(1&t){const
e=I();l(0,"p-button",55),C("click",function(){return
v(e),d(2).work.displayDeleteDiseqc=!1}),m(1,"translate"),c(),l(2,"p-button",56),C("click",function(){return
v(e),d(2).de
leteDiseqc()}),m(3,"translate"),c()}2&t&&(x("label",f(1,2,"common.no")),a(2),x("label",f(3,4,"common.yes")))}function
aee(t,i){if(1&t){const
e=I();l(0,"p-button",57),C("onClick",function(){return
v(e),d(2).work.displayDisconnect=!0}),m(1,"translate"),c()}2&t&&x("label",f(1,1,"settings.capture.dvb.satellite_disconnect"))}function
lee(t,i){if(1&t){const
e=I();l(0,"p-button",55),C("click",function(){return
v(e),d(2).work.displayDisconnect=!1}),m(1,"translate"),c(),l(2,"p-button",56),C("click",function(){return
v(e),d(2).unSelectDiseqc()}),m(3,"translate"),c()}2&t&&(x("label",f(1,2,"common.no")),a(2),x("label",f(3,4,"common.yes")))}function
cee(t,i){1&t&&(k(0,"p-message",58),m(1,"translate")),2&t&&x("text",f(1,1,"settings.capture.dvb.satellite_disconnect_error"))}function
uee(t,i){if(1&t){const
e=I();l(0,"app-lnb",59),C("baseEvent",function(s){return
v(e),d(2).setDiseqcObject(s)}),c()}if(2&t){const
e=d(2);p("diseqcTree",e.diseqcTree)("diseqcTreeList",e.diseqcTreeList)("dvbComponent",e)}
}function dee(t,i){if(1&t){const
e=I();l(0,"app-rotor",59),C("baseEvent",function(s){return
v(e),d(2).setDiseqcObject(s)}),c()}if(2&t){const
e=d(2);p("diseqcTree",e.diseqcTree)("diseqcTreeList",e.diseqcTreeList)("dvbComponent",e)}}function
pee(t,i){if(1&t){const
e=I();l(0,"app-switch",59),C("baseEvent",function(s){return
v(e),d(2).setDiseqcObject(s)}),c()}if(2&t){const
e=d(2);p("diseqcTree",e.diseqcTree)("diseqcTreeList",e.diseqcTreeList)("dvbComponent",e)}}function
hee(t,i){if(1&t){const
e=I();l(0,"app-unicable",59),C("baseEvent",function(s){return
v(e),d(2).setDiseqcObject(s)}),c()}if(2&t){const
e=d(2);p("diseqcTree",e.diseqcTree)("diseqcTreeList",e.diseqcTreeList)("dvbComponent",e)}}const
Md=function(){return{width:"50vw"}};function mee(t,i){if(1&t){const
e=I();l(0,"div",8)(1,"div",9)(2,"div",10)(3,"label",11),g(4),m(5,"translate"),c(),_(6,YX,2,7,"p-dropdown",12),_(7,ZX,3,1,"div",13),l(8,"small",14),g(9),m(10,"translate"),c()(),l(11,"div",10)(12,"label",15),g(13),m(14,"translate"
),c(),_(15,XX,2,1,"input",16),l(16,"small",14),g(17),m(18,"translate"),c()(),l(19,"div",10)(20,"label",17),g(21),m(22,"translate"),c(),_(23,eee,2,2,"p-dropdown",18),l(24,"small",14),g(25),m(26,"translate"),c()(),l(27,"div",10)(28,"label",19),g(29),m(30,"translate"),c(),l(31,"p-inputNumber",20),C("ngModelChange",function(s){return
v(e),d().card.SignalTimeout=s}),c(),l(32,"small",14),g(33),m(34,"translate"),c()(),l(35,"div",10)(36,"label",21),g(37),m(38,"translate"),c(),l(39,"p-inputNumber",22),C("ngModelChange",function(s){return
v(e),d().card.ChannelTimeout=s}),c(),l(40,"small",14),g(41),m(42,"translate"),c()(),l(43,"div",10)(44,"p-checkbox",23,24),C("ngModelChange",function(s){return
v(e),d().card.DVBWaitForSeqStart=s}),m(46,"translate"),c(),l(47,"small",14),g(48),m(49,"translate"),c()(),l(50,"div",10)(51,"p-checkbox",25,26),C("ngModelChange",function(s){return
v(e),d().card.DVBOnDemand=s}),m(53,"translate"),c(),l(54,"small",14),g(55),m(56,"translate"),c()(),l(57,"div",10)(58,"p-ch
eckbox",27,28),C("ngModelChange",function(s){return
v(e),d().card.DVBEITScan=s}),m(60,"translate"),c(),l(61,"small",14),g(62),m(63,"translate"),c()(),l(64,"div",10)(65,"label",29),g(66),m(67,"translate"),c(),l(68,"p-inputNumber",30),C("ngModelChange",function(s){return
v(e),d().card.DVBTuningDelay=s}),c(),l(69,"small",14),g(70),m(71,"translate"),c()()(),l(72,"p-fieldset",31),m(73,"translate"),_(74,tee,2,3,"p-button",32),l(75,"p-dialog",33),C("visibleChange",function(s){return
v(e),d().work.displayNewDiseqc=s}),m(76,"translate"),l(77,"label",34),g(78),m(79,"translate"),c(),l(80,"p-listbox",35),C("ngModelChange",function(s){return
v(e),d().selectedDiseqcType=s})("onDblClick",function(){return
v(e),d().newDiseqc()}),c(),_(81,nee,4,7,"ng-template",7),c(),g(82," \xa0
"),_(83,iee,3,6,"p-button",36),l(84,"p-dialog",33),C("visibleChange",function(s){return
v(e),d().work.displayConnectDevice=s}),m(85,"translate"),l(86,"label",37),g(87),m(88,"translate"),c(),l(89,"p-listbox",38),C("ngModelCha
nge",function(s){return
v(e),d().work.selectedDiseqcTree=s})("onDblClick",function(){return
v(e),d().selectDiseqc()}),c(),_(90,see,4,7,"ng-template",7),c(),_(91,ree,1,0,"p-button",39),l(92,"p-dialog",33),C("visibleChange",function(s){return
v(e),d().work.displayDeleteDiseqc=s}),m(93,"translate"),l(94,"h2"),g(95),m(96,"translate"),c(),l(97,"p"),g(98),m(99,"translate"),c(),_(100,oee,4,6,"ng-template",7),c(),g(101,"
\xa0
"),_(102,aee,2,3,"p-button",40),l(103,"p-dialog",33),C("visibleChange",function(s){return
v(e),d().work.displayDisconnect=s}),m(104,"translate"),l(105,"h2"),g(106),m(107,"translate"),c(),l(108,"p"),g(109),m(110,"translate"),c(),_(111,lee,4,6,"ng-template",7),c(),_(112,cee,2,3,"p-message",41),_(113,uee,1,3,"app-lnb",42),_(114,dee,1,3,"app-rotor",42),_(115,pee,1,3,"app-switch",42),_(116,hee,1,3,"app-unicable",42),c()()}if(2&t){const
e=d();a(4),S(f(5,93,"settings.capture.dvb.device_label")),a(2),p("ngIf",e.work.isReady),a(1),p("ngIf",e.work.warningMessage),a(2),T("
",f(10
,95,"settings.capture.device_desc"),"
"),a(4),S(f(14,97,"settings.capture.dvb.frontend_label")),a(2),p("ngIf",e.work.isReady),a(2),T("
",f(18,99,"settings.capture.frontend_desc"),"
"),a(4),S(f(22,101,"settings.capture.dvb.inputname_label")),a(2),p("ngIf",e.work.isReady),a(2),T("
",f(26,103,"settings.capture.inputname_desc"),"
"),a(4),S(f(30,105,"settings.capture.sigtimeout_label")),a(2),p("ngModel",e.card.SignalTimeout)("showButtons",!0)("min",250)("max",6e4)("step",250),a(2),T("
",f(34,107,"settings.capture.sigtimeout_desc"),"
"),a(4),S(f(38,109,"settings.capture.tunetimeout_label")),a(2),p("ngModel",e.card.ChannelTimeout)("showButtons",!0)("min",1750)("max",65e3)("step",250),a(2),T("
",f(42,111,"settings.capture.tunetimeout_desc"),"
"),a(3),x("label",f(46,113,"settings.capture.dvb.wait_label")),p("ngModel",e.card.DVBWaitForSeqStart)("binary",!0),a(4),T("
",f(49,115,"settings.capture.dvb.wait_desc"),"
"),a(3),x("label",f(53,117,"settings.capture.dvb.ondemand_label")),p("ngModel",e.
card.DVBOnDemand)("binary",!0),a(4),T("
",f(56,119,"settings.capture.dvb.ondemand_desc"),"
"),a(3),x("label",f(60,121,"settings.capture.dvb.eitscan_label")),p("ngModel",e.card.DVBEITScan)("binary",!0),a(4),T("
",f(63,123,"settings.capture.dvb.eitscan_desc"),"
"),a(4),S(f(67,125,"settings.capture.dvb.tuningdelay_label")),a(2),p("ngModel",e.card.DVBTuningDelay)("showButtons",!0)("min",0)("max",2e3)("step",25),a(2),T("
",f(71,127,"settings.capture.dvb.tuningdelay_desc"),"
"),a(2),x("legend",f(73,129,"settings.capture.dvb.satellite_heading")),p("toggleable",!0)("collapsed",!0),a(2),p("ngIf",!e.diseqcTree),a(1),q(A(151,Md)),x("header",f(76,131,"settings.capture.dvb.newsatellite_heading")),p("visible",e.work.displayNewDiseqc)("modal",!0)("draggable",!1)("resizable",!1),a(3),S(f(79,133,"settings.capture.dvb.newsatellite_devtype")),a(2),p("options",e.captureCardService.diseqcTypes)("ngModel",e.selectedDiseqcType),a(3),p("ngIf",!e.diseqcTree),a(1),q(A(152,Md)),x("header",f(85,135,"settings.c
apture.dvb.satellite_connect")),p("visible",e.work.displayConnectDevice)("modal",!0)("draggable",!1)("resizable",!1),a(3),S(f(88,137,"settings.capture.dvb.satellite_select")),a(2),p("options",e.diseqcRootTrees)("ngModel",e.work.selectedDiseqcTree),a(2),p("ngIf",e.diseqcTree),a(1),q(A(153,Md)),x("header",f(93,139,"settings.capture.dvb.satellite_delete_header")),p("visible",e.work.displayDeleteDiseqc)("modal",!0)("draggable",!1)("resizable",!1),a(3),S(f(96,141,"settings.common.ru_sure")),a(3),S(f(99,143,"settings.capture.dvb.satellite_delete_desc")),a(4),p("ngIf",e.diseqcTree),a(1),q(A(154,Md)),x("header",f(104,145,"settings.capture.dvb.satellite_disconnect")),p("visible",e.work.displayDisconnect)("modal",!0)("draggable",!1)("resizable",!1),a(3),S(f(107,147,"settings.common.ru_sure")),a(3),S(f(110,149,"settings.capture.dvb.satellite_disconnect_warning")),a(3),p("ngIf",e.work.diseqcError),a(1),p("ngIf",e.diseqcTree&&"lnb"==e.diseqcTree.Type),a(1),p("ngIf",e.diseqcTree&&"rotor"==e.diseq
cTree.Type),a(1),p("ngIf",e.diseqcTree&&"switch"==e.diseqcTree.Type),a(1),p("ngIf",e.diseqcTree&&"scr"==e.diseqcTree.Type)}}function
fee(t,i){1&t&&(k(0,"p-message",64),m(1,"translate")),2&t&&x("text",f(1,1,"common.savesuccess"))}function
gee(t,i){1&t&&(k(0,"p-message",58),m(1,"translate")),2&t&&x("text",f(1,1,"common.networkfail"))}function
_ee(t,i){if(1&t){const
e=I();l(0,"div",60)(1,"div",61),_(2,fee,2,3,"p-message",62),_(3,gee,2,3,"p-message",41),c(),l(4,"p-button",63),C("onClick",function(){v(e);const
s=d(),r=F(1);return
s.saveForm(),r.form.markAsPristine()}),m(5,"translate"),c()()}if(2&t){const
e=d(),n=F(1);a(2),p("ngIf",e.work.successCount>0&&0==e.work.errorCount&&!n.dirty),a(1),p("ngIf",e.work.errorCount>0),a(1),x("label",f(5,4,"common.save")),p("disabled",!n.dirty||!e.card.VideoDevice||e.setupService.schedulingEnabled)}}let
wS=(()=>{class
t{constructor(e,n,s){this.captureCardService=e,this.setupService=n,this.translate=s,this.work={InputName:"",successCount:0,errorCount:0,in
putNames:[""],isReady:!1,warningMessage:"",displayNewDiseqc:!1,displayDeleteDiseqc:!1,displayConnectDevice:!1,displayDisconnect:!1,selectedDiseqcTree:0,diseqcError:!1},this.captureDeviceList={CaptureDeviceList:{CaptureDevices:[]}},this.diseqcRootTrees=[],this.diseqcTree=void
0,this.messages={devNotExist:"settings.capture.dvb.devNotExist",unknownName:"settings.capture.dvb.unknownName",devInUse:"settings.capture.dvb.devInUse",noDevSelected:"settings.capture.dvb.noDevSelected"},this.currentDevice={FrontendName:"Unknown",InputNames:[""]},this.selectedDiseqcType={description:"",type:"",inactive:!0},this.saveObserver={next:r=>{r.bool?(console.log("saveObserver
success",r),this.work.successCount++):!this.card.CardId&&r.int?(console.log("saveObserver
success",r),this.work.successCount++,this.card.CardId||(this.card.CardId=r.int,this.cardList.CaptureCardList.CaptureCards.push(this.card),this.captureCardService.UpdateCaptureCard(this.card.CardId,"inputname",this.card.InputName).subscribe(this
.saveObserver))):(console.log("saveObserver
error",r),this.work.errorCount++,this.currentForm.form.markAsDirty())},error:r=>{console.log("saveObserver
error",r),this.work.errorCount++,this.currentForm.form.markAsDirty()}},s.get(this.messages.devNotExist).subscribe(r=>this.messages.devNotExist=r),s.get(this.messages.unknownName).subscribe(r=>this.messages.unknownName=r),s.get(this.messages.devInUse).subscribe(r=>this.messages.devInUse=r),s.get(this.messages.noDevSelected).subscribe(r=>this.messages.noDevSelected=r)}ngOnInit(){null==this.card.DVBWaitForSeqStart&&(this.card.DVBWaitForSeqStart=!0),null==this.card.DVBOnDemand&&(this.card.DVBOnDemand=!0),null==this.card.DVBEITScan&&(this.card.DVBEITScan=!0),null==this.card.CardId&&(this.card.CardId=0),null==this.card.VideoDevice&&(this.card.VideoDevice=""),null==this.card.DiSEqCId&&(this.card.DiSEqCId=0),this.captureCardService.GetCaptureDeviceList("DVB").subscribe({next:e=>{this.captureDeviceList=e,this.setupDevice()},error:e=>{console.l
og("GetCaptureDeviceList",e),this.work.errorCount++}}),this.setupDiseqc()}ngAfterViewInit(){this.setupService.setCurrentForm(this.currentForm),this.topElement.nativeElement.scrollIntoView({behavior:"smooth",block:"start"})}setupDiseqc(){this.diseqcTree=this.diseqcTreeList.DiseqcTreeList.DiseqcTrees.find(e=>e.DiSEqCId==this.card.DiSEqCId),this.work.diseqcError=!1}newDiseqc(){this.work.displayNewDiseqc=!1,this.work.diseqcError=!1,this.diseqcTree={Type:this.selectedDiseqcType.type,Description:this.selectedDiseqcType.description}}setupRootTrees(){this.diseqcRootTrees=this.diseqcTreeList.DiseqcTreeList.DiseqcTrees.filter(e=>!e.ParentId)}selectDiseqc(){this.work.displayConnectDevice=!1,this.work.diseqcError=!1,this.card.DiSEqCId=this.work.selectedDiseqcTree,this.currentForm.form.markAsDirty(),this.setupDiseqc()}unSelectDiseqc(){this.work.displayDisconnect=!1,this.work.diseqcError=!1,this.card.DiSEqCId=0,this.currentForm.form.markAsDirty(),this.diseqcTree=void
0,this.captureCardService.Del
eteDiseqcConfig(this.card.CardId).subscribe()}canDeleteDiseqc(){this.work.diseqcError=!1,this.cardList.CaptureCardList.CaptureCards.filter(n=>n.DiSEqCId==this.card.DiSEqCId).length>1?this.work.diseqcError=!0:this.work.displayDeleteDiseqc=!0}deleteDiseqc(){this.work.displayDeleteDiseqc=!1,this.work.successCount=0,this.work.errorCount=0,this.diseqcTree&&this.diseqcTree.DiSEqCId&&(this.captureCardService.DeleteDiseqcTree(this.diseqcTree.DiSEqCId).subscribe({next:e=>{e.bool?this.work.successCount++:(this.work.errorCount++,console.log("DeleteDiseqcTree",e)),this.parent.loadDiseqc()},error:e=>{console.log("DeleteDiseqcTree",e),this.work.errorCount++}}),this.card.DiSEqCId=0,this.card.CardId&&(this.cardList.CaptureCardList.CaptureCards.forEach(e=>{(e.CardId==this.card.CardId||e.ParentId==this.card.CardId)&&this.captureCardService.UpdateCaptureCard(e.CardId,"DiSEqCId",String(this.card.DiSEqCId)).subscribe(this.saveObserver)}),this.captureCardService.DeleteDiseqcConfig(this.card.CardId).subsc
ribe())),this.diseqcTree=void
0}setDiseqcObject(e){this.diseqcComponent=e}setupDevice(){if(this.card.VideoDevice||this.captureDeviceList.CaptureDeviceList.CaptureDevices.unshift({VideoDevice:"",FrontendName:this.messages.noDevSelected,InputNames:[""]}),this.card.VideoDevice){let
e=this.captureDeviceList.CaptureDeviceList.CaptureDevices.find(n=>n.VideoDevice==this.card.VideoDevice);e?this.currentDevice=e:(this.currentDevice={VideoDevice:this.card.VideoDevice,FrontendName:this.messages.devNotExist,InputNames:[""]},this.captureDeviceList.CaptureDeviceList.CaptureDevices.push(this.currentDevice))}this.currentDevice&&this.card.InputName&&(this.currentDevice.InputNames.includes(this.card.InputName)||this.currentDevice.InputNames.push(this.card.InputName)),this.work.isReady=!0}updateDevice(){this.card.VideoDevice=this.currentDevice.VideoDevice,this.card.InputName=this.currentDevice.DefaultInputName,this.card.SignalTimeout=this.currentDevice.SignalTimeout,this.card.ChannelTimeout=this.curre
ntDevice.ChannelTimeout,this.checkInUse()}checkInUse(){this.work.warningMessage=this.cardList.CaptureCardList.CaptureCards.find(n=>n.VideoDevice==this.currentDevice.VideoDevice&&n.CardId!=this.card.CardId)?this.messages.devInUse:""}saveForm(){this.work.successCount=0,this.work.errorCount=0,this.work.diseqcError=!1,this.diseqcTree&&this.diseqcComponent?this.diseqcComponent.saveForm(0,{next:e=>{var
n;this.card.DiSEqCId&&e.bool&&this.card.DiSEqCId==(null===(n=this.diseqcTree)||void
0===n?void
0:n.DiSEqCId)?(this.work.successCount++,this.saveCard()):e.int&&this.diseqcTree?(this.card.DiSEqCId=e.int,this.diseqcTree.DiSEqCId=e.int,this.diseqcTreeList.DiseqcTreeList.DiseqcTrees.push(this.diseqcTree),this.saveCard()):(console.log("saveForm",e),this.work.errorCount++,this.currentForm.form.markAsDirty())},error:e=>{console.log("saveForm",e),this.work.errorCount++,this.currentForm.form.markAsDirty()},complete:()=>{}}):this.saveCard()}saveCard(){this.card.CardId?this.cardList.CaptureCardList.Cap
tureCards.forEach(e=>{(e.CardId==this.card.CardId||e.ParentId==this.card.CardId)&&(this.captureCardService.UpdateCaptureCard(e.CardId,"videodevice",this.card.VideoDevice).subscribe(this.saveObserver),this.captureCardService.UpdateCaptureCard(e.CardId,"dvb_wait_for_seqstart",this.card.DVBWaitForSeqStart?"1":"0").subscribe(this.saveObserver),this.captureCardService.UpdateCaptureCard(e.CardId,"dvb_on_demand",this.card.DVBOnDemand?"1":"0").subscribe(this.saveObserver),this.captureCardService.UpdateCaptureCard(e.CardId,"signal_timeout",String(this.card.SignalTimeout)).subscribe(this.saveObserver),this.captureCardService.UpdateCaptureCard(e.CardId,"channel_timeout",String(this.card.ChannelTimeout)).subscribe(this.saveObserver),this.captureCardService.UpdateCaptureCard(e.CardId,"dvb_tuning_delay",String(this.card.DVBTuningDelay)).subscribe(this.saveObserver),this.captureCardService.UpdateCaptureCard(e.CardId,"dvb_eitscan",String(this.card.DVBEITScan?"1":"0")).subscribe(this.saveObserver),t
his.captureCardService.UpdateCaptureCard(e.CardId,"inputname",this.card.InputName).subscribe(this.saveObserver),this.captureCardService.UpdateCaptureCard(e.CardId,"DiSEqCId",String(this.card.DiSEqCId)).subscribe(this.saveObserver))}):this.captureCardService.AddCaptureCard(this.card).subscribe(this.saveObserver)}}return
t.\u0275fac=function(e){return
new(e||t)(D(Gt),D(Me),D(Oe))},t.\u0275cmp=z({type:t,selectors:[["app-dvb"]],viewQuery:function(e,n){if(1&e&&(W($X,5),W(WX,5)),2&e){let
s;V(s=B())&&(n.currentForm=s.first),V(s=B())&&(n.topElement=s.first)}},inputs:{card:"card",cardList:"cardList",diseqcTreeList:"diseqcTreeList",parent:"parent"},decls:9,vars:0,consts:[["name","dvbform",1,"ml-3","mr-3"],["dvbform","ngForm"],["top",""],[1,"m-5"],["pTemplate","title"],["pTemplate","subtitle"],["pTemplate","content"],["pTemplate","footer"],[1,"grid"],[1,"mb-4","w-full"],[1,"form-group","field"],["for","VideoDevice",1,"label","block"],["optionLabel","VideoDevice","name","VideoDevice",3,"options
","ngModel","editable","maxlength","style","ngModelChange","onChange",4,"ngIf"],[4,"ngIf"],[1,"block"],["for","FrontendName",1,"label","block"],["pInputText","","id","FrontendName","name","FrontendName","disabled","true","class","mb-2
form-control
w-full",3,"ngModel","ngModelChange",4,"ngIf"],["for","InputName",1,"label","block"],["name","InputName",3,"options","ngModel","ngModelChange",4,"ngIf"],["for","SignalTimeout",1,"label","block"],["name","SignalTimeout","id","SignalTimeout",3,"ngModel","showButtons","min","max","step","ngModelChange"],["for","ChannelTimeout",1,"label","block"],["name","ChannelTimeout","id","ChannelTimeout",3,"ngModel","showButtons","min","max","step","ngModelChange"],["inputId","DVBWaitForSeqStart","name","DVBWaitForSeqStart",1,"label","mb-2","w-full",3,"ngModel","binary","label","ngModelChange"],["DVBWaitForSeqStart","ngModel"],["inputId","DVBOnDemand","name","DVBOnDemand",1,"label","mb-2","w-full",3,"ngModel","binary","label","ngModelChange"],["DVBOnDemand
","ngModel"],["inputId","DVBEITScan","name","DVBEITScan",1,"label","mb-2","w-full",3,"ngModel","binary","label","ngModelChange"],["DVBEITScan","ngModel"],["for","DVBTuningDelay",1,"label","block"],["name","DVBTuningDelay","id","DVBTuningDelay",3,"ngModel","showButtons","min","max","step","ngModelChange"],[1,"mb-4","w-full",3,"legend","toggleable","collapsed"],["icon","pi
pi-plus-circle","styleClass","p-button-plain",3,"label","onClick",4,"ngIf"],[3,"header","visible","modal","draggable","resizable","visibleChange"],["for","disenqcTypes",1,"label","block"],["optionLabel","description","name","disenqcTypes","optionDisabled","inactive",3,"options","ngModel","ngModelChange","onDblClick"],["icon","pi
pi-plus-circle","styleClass","p-button-plain",3,"label","pTooltip","onClick",4,"ngIf"],["for","diseqcRootTrees",1,"label","block"],["optionLabel","Description","name","diseqcRootTrees","optionValue","DiSEqCId",3,"options","ngModel","ngModelChange","onDblClick"],["styleClass","p-button-warnin
g","label","Delete Satellite Devices","icon","pi
pi-trash",3,"onClick",4,"ngIf"],["icon","pi
pi-minus-circle","styleClass","p-button-warning",3,"label","onClick",4,"ngIf"],["severity","error",3,"text",4,"ngIf"],[3,"diseqcTree","diseqcTreeList","dvbComponent","baseEvent",4,"ngIf"],["optionLabel","VideoDevice","name","VideoDevice",3,"options","ngModel","editable","maxlength","ngModelChange","onChange"],["VideoDevice","ngModel"],[1,"p-error","block"],["pInputText","","id","FrontendName","name","FrontendName","disabled","true",1,"mb-2","form-control","w-full",3,"ngModel","ngModelChange"],["FrontendName","ngModel"],["name","InputName",3,"options","ngModel","ngModelChange"],["InputName","ngModel"],["icon","pi
pi-plus-circle","styleClass","p-button-plain",3,"label","onClick"],["icon","pi
pi-times-circle","styleClass","p-button-plain",3,"label","onClick"],["icon","pi
pi-check-circle","styleClass","p-button-plain",3,"label","disabled","onClick"],["icon","pi
pi-plus-circle","styleClass","p-bu
tton-plain",3,"label","pTooltip","onClick"],["styleClass","p-button-warning","label","Delete
Satellite Devices","icon","pi
pi-trash",3,"onClick"],["icon","pi
pi-times-circle","styleClass","p-button-plain",3,"label","click"],["icon","pi
pi-check-circle","styleClass","p-button-plain",3,"label","click"],["icon","pi
pi-minus-circle","styleClass","p-button-warning",3,"label","onClick"],["severity","error",3,"text"],[3,"diseqcTree","diseqcTreeList","dvbComponent","baseEvent"],[1,"grid","nogutter"],[1,"col-12"],["severity","success",3,"text",4,"ngIf"],["icon","pi
pi-save","iconPos","left",1,"col","pr-1",3,"label","disabled","onClick"],["severity","success",3,"text"]],template:function(e,n){1&e&&(l(0,"form",0,1),k(2,"span",null,2),l(4,"p-card",3),_(5,KX,2,3,"ng-template",4),_(6,QX,0,0,"ng-template",5),_(7,mee,117,155,"ng-template",6),_(8,_ee,6,6,"ng-template",7),c()())},styles:[""]}),t})();const
bee=["lnbform"];function
vee(t,i){1&t&&(g(0),m(1,"translate")),2&t&&T("
",f(1,1,"settings.captur
e.diseqc.lnb.title")," ")}function Cee(t,i){}const
TS=function(){return{minWidth:"80%"}};function yee(t,i){if(1&t){const
e=I();l(0,"div",6)(1,"div",7)(2,"div",8)(3,"label",9),g(4),m(5,"translate"),c(),l(6,"input",10,11),C("ngModelChange",function(s){return
v(e),d().diseqcTree.Description=s}),c(),l(8,"small",12),g(9),m(10,"translate"),c()(),l(11,"div",8)(12,"label",13),g(13),m(14,"translate"),c(),l(15,"p-dropdown",14,15),C("ngModelChange",function(s){return
v(e),d().currentPreset=s})("onChange",function(){return
v(e),d().updatePreset()}),c(),l(17,"small",12),g(18),m(19,"translate"),c()(),l(20,"div",8)(21,"label",16),g(22),m(23,"translate"),c(),l(24,"p-dropdown",17,18),C("ngModelChange",function(s){return
v(e),d().currentSubType=s})("onChange",function(){return
v(e),d().updateSubType()}),c(),l(26,"small",12),g(27),m(28,"translate"),c()(),l(29,"div",8)(30,"label",19),g(31),m(32,"translate"),c(),l(33,"p-inputNumber",20),C("ngModelChange",function(s){return
v(e),d().work.LnbLofSwitch=s})
,c(),l(34,"small",12),g(35),m(36,"translate"),c()(),l(37,"div",8)(38,"label",21),g(39),m(40,"translate"),c(),l(41,"p-inputNumber",22),C("ngModelChange",function(s){return
v(e),d().work.LnbLofLo=s}),c(),l(42,"small",12),g(43),m(44,"translate"),c()(),l(45,"div",8)(46,"label",23),g(47),m(48,"translate"),c(),l(49,"p-inputNumber",24),C("ngModelChange",function(s){return
v(e),d().work.LnbLofHi=s}),c(),l(50,"small",12),g(51),m(52,"translate"),c()(),l(53,"div",8)(54,"p-checkbox",25,26),C("ngModelChange",function(s){return
v(e),d().diseqcTree.LnbPolInv=s}),m(56,"translate"),c(),l(57,"small",12),g(58),m(59,"translate"),c()()()()}if(2&t){const
e=d();a(4),S(f(5,41,"settings.capture.diseqc.description_label")),a(2),p("ngModel",e.diseqcTree.Description),a(3),T("
",f(10,43,"settings.capture.diseqc.description_desc"),"
"),a(4),S(f(14,45,"settings.capture.diseqc.lnb.preset_label")),a(2),q(A(69,TS)),p("options",e.lnbPresetList)("ngModel",e.currentPreset)("editable",!1)("maxlength",0)("scrollHeight","
400px"),a(3),T("
",f(19,47,"settings.capture.diseqc.lnb.preset_desc"),"
"),a(4),S(f(23,49,"settings.capture.diseqc.lnb.type_label")),a(2),q(A(70,TS)),p("options",e.lnbSubTypes)("ngModel",e.currentSubType)("editable",!1)("maxlength",0)("disabled","custom"!=e.currentPreset.SubType),a(3),T("
",f(28,51,"settings.capture.diseqc.lnb.type_desc"),"
"),a(4),S(f(32,53,"settings.capture.diseqc.lnb.lofswitch_label")),a(2),p("ngModel",e.work.LnbLofSwitch)("useGrouping",!1)("disabled","custom"!=e.currentPreset.SubType||"voltage_tone"!=e.diseqcTree.SubType),a(2),T("
",f(36,55,"settings.capture.diseqc.lnb.lofswitch_desc"),"
"),a(4),S(f(40,57,"settings.capture.diseqc.lnb.loflow_label")),a(2),p("ngModel",e.work.LnbLofLo)("useGrouping",!1)("disabled","custom"!=e.currentPreset.SubType),a(2),T("
",f(44,59,"settings.capture.diseqc.lnb.loflow_desc"),"
"),a(4),S(f(48,61,"settings.capture.diseqc.lnb.lofhigh_label")),a(2),p("ngModel",e.work.LnbLofHi)("useGrouping",!1)("disabled","custom"!=e.currentPreset.Sub
Type||!("voltage_tone"==e.diseqcTree.SubType||"bandstacked"==e.diseqcTree.SubType)),a(2),T("
",f(52,63,"settings.capture.diseqc.lnb.lofhigh_desc"),"
"),a(3),x("label",f(56,65,"settings.capture.diseqc.lnb.reversed_label")),p("ngModel",e.diseqcTree.LnbPolInv)("binary",!0)("disabled","custom"!=e.currentPreset.SubType),a(4),T("
",f(59,67,"settings.capture.diseqc.lnb.reversed_desc")," ")}}let
kd=(()=>{class
t{constructor(e,n,s){this.captureCardService=e,this.setupService=n,this.translate=s,this.baseEvent=new
H,this.work={LnbLofSwitch:0,LnbLofLo:0,LnbLofHi:0},this.lnbSubTypes=[{Name:"settings.capture.diseqc.subtype_legacy",SubType:"fixed"},{Name:"settings.capture.diseqc.subtype_standard",SubType:"voltage"},{Name:"settings.capture.diseqc.subtype_universal",SubType:"voltage_tone"},{Name:"settings.capture.diseqc.subtype_backstacked",SubType:"bandstacked"}],this.lnbPresetList=[{Name:"settings.capture.diseqc.lnbpreset_universal",SubType:"voltage_tone",LnbLofSwitch:11700,LnbLofLo:9750,LnbLofHi:
10600,LnbPolInv:!1},{Name:"settings.capture.diseqc.lnbpreset_single",SubType:"voltage",LnbLofSwitch:0,LnbLofLo:9750,LnbLofHi:0,LnbPolInv:!1},{Name:"settings.capture.diseqc.lnbpreset_circular",SubType:"voltage",LnbLofSwitch:0,LnbLofLo:11250,LnbLofHi:0,LnbPolInv:!1},{Name:"settings.capture.diseqc.lnbpreset_Linear",SubType:"voltage",LnbLofSwitch:0,LnbLofLo:10750,LnbLofHi:0,LnbPolInv:!1},{Name:"settings.capture.diseqc.lnbpreset_cband",SubType:"voltage",LnbLofSwitch:0,LnbLofLo:5150,LnbLofHi:0,LnbPolInv:!1},{Name:"settings.capture.diseqc.lnbpreset_dishpro",SubType:"bandstacked",LnbLofSwitch:0,LnbLofLo:11250,LnbLofHi:14350,LnbPolInv:!1},{Name:"settings.capture.diseqc.lnbpreset_custom",SubType:"custom",LnbLofSwitch:0,LnbLofLo:0,LnbLofHi:0,LnbPolInv:!1}],this.setupDone=!1,this.lnbSubTypes.forEach(r=>s.get(r.Name).subscribe(o=>r.Name=o)),this.lnbPresetList.forEach(r=>s.get(r.Name).subscribe(o=>r.Name=o))}ngOnInit(){if(this.diseqcTree.DiSEqCId){let
e;this.work.LnbLofSwitch=this.diseqcTree.LnbL
ofSwitch/1e3,this.work.LnbLofLo=this.diseqcTree.LnbLofLo/1e3,this.work.LnbLofHi=this.diseqcTree.LnbLofHi/1e3,e=this.lnbPresetList.find(n=>n.SubType==this.diseqcTree.SubType&&n.LnbLofSwitch==this.work.LnbLofSwitch&&n.LnbLofLo==this.work.LnbLofLo&&n.LnbLofHi==this.work.LnbLofHi&&n.LnbPolInv==this.diseqcTree.LnbPolInv),this.currentPreset=null==e?this.lnbPresetList[this.lnbPresetList.length-1]:e}else
this.currentPreset=this.lnbPresetList[0],this.updatePreset()}ngAfterViewInit(){this.baseEvent.emit(this),this.currentForm.valueChanges.subscribe(n=>{this.setupDone&&this.currentForm.dirty&&this.dvbComponent.currentForm.form.markAsDirty()}),new
Je(n=>{setTimeout(()=>{n.next(1),n.complete()},100)}).subscribe(n=>{this.setupDone=!0,this.diseqcTree.DiSEqCId?this.currentForm.form.markAsPristine():(this.currentForm.form.markAsDirty(),this.dvbComponent.currentForm.form.markAsDirty())})}updatePreset(){if("custom"!=this.currentPreset.SubType){let
e=this.lnbSubTypes.find(n=>n.SubType==this.currentPres
et.SubType);e&&(this.currentSubType=e,this.updateSubType()),this.work.LnbLofSwitch=this.currentPreset.LnbLofSwitch,this.work.LnbLofLo=this.currentPreset.LnbLofLo,this.work.LnbLofHi=this.currentPreset.LnbLofHi,this.diseqcTree.LnbPolInv=this.currentPreset.LnbPolInv}}updateSubType(){this.diseqcTree.SubType=this.currentSubType.SubType}saveForm(e,n){this.diseqcTree.ParentId=e,this.diseqcTree.LnbLofSwitch=1e3*this.work.LnbLofSwitch,this.diseqcTree.LnbLofLo=1e3*this.work.LnbLofLo,this.diseqcTree.LnbLofHi=1e3*this.work.LnbLofHi,this.diseqcTree.DiSEqCId?this.captureCardService.UpdateDiseqcTree(this.diseqcTree).subscribe(n):this.captureCardService.AddDiseqcTree(this.diseqcTree).subscribe({next:s=>{s.int&&s.int>0?(this.diseqcTree.DiSEqCId=s.int,n.next&&n.next(s)):(console.log("UpdateDiseqcTree",s),n.error(s))},error:s=>{console.log("UpdateDiseqcTree",s),n.error(s)}})}}return
t.\u0275fac=function(e){return
new(e||t)(D(Gt),D(Me),D(Oe))},t.\u0275cmp=z({type:t,selectors:[["app-lnb"]],viewQuery:fun
ction(e,n){if(1&e&&W(bee,5),2&e){let
s;V(s=B())&&(n.currentForm=s.first)}},inputs:{diseqcTree:"diseqcTree",diseqcTreeList:"diseqcTreeList",dvbComponent:"dvbComponent"},outputs:{baseEvent:"baseEvent"},decls:6,vars:0,consts:[["name","lnbform",1,"ml-3","mr-3"],["lnbform","ngForm"],[1,"m-5"],["pTemplate","title"],["pTemplate","subtitle"],["pTemplate","content"],[1,"grid"],[1,"mb-4","w-full"],[1,"form-group","field"],["for","Description",1,"label","block"],["pInputText","","id","ip","name","Description",1,"mb-2","form-control","w-full",3,"ngModel","ngModelChange"],["Description","ngModel"],[1,"block"],["for","LnbPreset",1,"label","block"],["optionLabel","Name","name","LnbPreset",3,"options","ngModel","editable","maxlength","scrollHeight","ngModelChange","onChange"],["LnbPreset","ngModel"],["for","SubType",1,"label","block"],["optionLabel","Name","name","SubType",3,"options","ngModel","editable","maxlength","disabled","ngModelChange","onChange"],["SubType","ngModel"],["for","LnbLofSwitch"
,1,"label","block"],["name","LnbLofSwitch","id","LnbLofSwitch","mode","decimal","inputId","withoutgrouping",3,"ngModel","useGrouping","disabled","ngModelChange"],["for","LnbLofLo",1,"label","block"],["name","LnbLofLo","id","LnbLofLo","mode","decimal","inputId","withoutgrouping",3,"ngModel","useGrouping","disabled","ngModelChange"],["for","LnbLofHi",1,"label","block"],["name","LnbLofHi","id","LnbLofHi","mode","decimal","inputId","withoutgrouping",3,"ngModel","useGrouping","disabled","ngModelChange"],["inputId","LnbPolInv","name","LnbPolInv",1,"label","mb-2","w-full",3,"ngModel","binary","label","disabled","ngModelChange"],["LnbPolInv","ngModel"]],template:function(e,n){1&e&&(l(0,"form",0,1)(2,"p-card",2),_(3,vee,2,3,"ng-template",3),_(4,Cee,0,0,"ng-template",4),_(5,yee,60,71,"ng-template",5),c()())},directives:[ze,Ue,He,Ne,ne,Ye,Te,_e,Ot,_n,pt,sn],pipes:[ce],styles:[""]}),t})();const
wee=["rotorform"];function
Tee(t,i){1&t&&(g(0),m(1,"translate")),2&t&&T("
",f(1,1,"settings.capture.d
iseqc.rotor.title")," ")}function See(t,i){}function
xee(t,i){1&t&&(l(0,"tr")(1,"th"),g(2,"Position
#"),c(),l(3,"th"),g(4,"Angle (Degrees)"),c()())}function
Dee(t,i){if(1&t){const
e=I();l(0,"p-inputNumber",43),C("ngModelChange",function(s){return
v(e),d().$implicit.Angle=s}),c()}2&t&&p("ngModel",d().$implicit.Angle)("min",-180)("max",180)("maxFractionDigits",5)}function
Mee(t,i){if(1&t&&(l(0,"div"),g(1),c()),2&t){const
e=d(2).$implicit;a(1),T("",e.Angle," (W)")}}function
kee(t,i){if(1&t&&(l(0,"div"),g(1),c()),2&t){const
e=d(2).$implicit;a(1),T(" ",e.Angle," (E)")}}function
Iee(t,i){if(1&t&&(_(0,Mee,2,1,"div",44),_(1,kee,2,1,"div",44)),2&t){const
e=d().$implicit;p("ngIf",e.Angle<0),a(1),p("ngIf",null!=e.Angle&&e.Angle>=0)}}function
Eee(t,i){if(1&t&&(l(0,"tr")(1,"td"),g(2),c(),l(3,"td",40)(4,"p-cellEditor"),_(5,Dee,1,4,"ng-template",41),_(6,Iee,2,2,"ng-template",42),c()()()),2&t){const
e=i.$implicit;a(2),T(" ",e.Num," ")}}const
SS=function(){return{width:"25rem"}};function Ree(t,i){if
(1&t&&(l(0,"div",8)(1,"label",36),g(2),m(3,"translate"),c(),l(4,"div")(5,"p-table",37),_(6,xee,5,0,"ng-template",38),_(7,Eee,7,1,"ng-template",39),c()(),l(8,"small",12),g(9),m(10,"translate"),c()()),2&t){const
e=d(2);a(2),S(f(3,6,"settings.capture.diseqc.rotor.positions_label")),a(2),q(A(10,SS)),a(1),p("value",e.rotorPositions)("scrollable",!0),a(4),T("
",f(10,8,"settings.capture.diseqc.rotor.positions_desc"),"
")}}function Lee(t,i){if(1&t){const
e=I();l(0,"p-button",45),C("onClick",function(){return
v(e),d(2).work.displayNewDiseqc=!0}),m(1,"translate"),c()}2&t&&x("label",f(1,1,"settings.capture.dvb.newsatellite_button"))}function
Oee(t,i){if(1&t){const
e=I();l(0,"p-button",46),C("onClick",function(){return
v(e),d(2).work.displayNewDiseqc=!1}),m(1,"translate"),c(),l(2,"p-button",47),C("onClick",function(){return
v(e),d(2).newDiseqc()}),m(3,"translate"),c()}if(2&t){const
e=d(2);x("label",f(1,3,"common.cancel")),a(2),x("label",f(3,5,"common.ok")),p("disabled",e.selectedDiseqcType.inac
tive)}}function Aee(t,i){if(1&t){const
e=I();l(0,"p-button",48),C("onClick",function(){return
v(e),d(2).work.displayDeleteDiseqc=!0}),c()}2&t&&p("disabled",!d(2).diseqcSubTree)}function
Pee(t,i){if(1&t){const
e=I();l(0,"p-button",49),C("click",function(){return
v(e),d(2).work.displayDeleteDiseqc=!1}),m(1,"translate"),c(),l(2,"p-button",50),C("click",function(){return
v(e),d(2).deleteDiseqc()}),m(3,"translate"),c()}2&t&&(x("label",f(1,2,"common.no")),a(2),x("label",f(3,4,"common.yes")))}function
Fee(t,i){if(1&t){const
e=I();l(0,"app-lnb",51),C("baseEvent",function(s){return
v(e),d(2).setDiseqcObject(s)}),c()}if(2&t){const
e=d(2);p("diseqcTree",e.diseqcSubTree)("diseqcTreeList",e.diseqcTreeList)("dvbComponent",e.dvbComponent)}}function
Nee(t,i){if(1&t){const
e=I();l(0,"app-rotor",51),C("baseEvent",function(s){return
v(e),d(2).setDiseqcObject(s)}),c()}if(2&t){const
e=d(2);p("diseqcTree",e.diseqcSubTree)("diseqcTreeList",e.diseqcTreeList)("dvbComponent",e.dvbComponent)}}function
Vee(t,i
){if(1&t){const
e=I();l(0,"app-switch",51),C("baseEvent",function(s){return
v(e),d(2).setDiseqcObject(s)}),c()}if(2&t){const
e=d(2);p("diseqcTree",e.diseqcSubTree)("diseqcTreeList",e.diseqcTreeList)("dvbComponent",e.dvbComponent)}}function
Bee(t,i){if(1&t){const
e=I();l(0,"app-unicable",51),C("baseEvent",function(s){return
v(e),d(2).setDiseqcObject(s)}),c()}if(2&t){const
e=d(2);p("diseqcTree",e.diseqcSubTree)("diseqcTreeList",e.diseqcTreeList)("dvbComponent",e.dvbComponent)}}const
Hee=function(){return{minWidth:"80%"}},xS=function(){return{width:"50vw"}};function
qee(t,i){if(1&t){const
e=I();l(0,"div",6)(1,"div",7)(2,"div",8)(3,"label",9),g(4),m(5,"translate"),c(),l(6,"input",10,11),C("ngModelChange",function(s){return
v(e),d().diseqcTree.Description=s}),c(),l(8,"small",12),g(9),m(10,"translate"),c()(),l(11,"div",8)(12,"label",13),g(13),m(14,"translate"),c(),l(15,"p-inputNumber",14),C("ngModelChange",function(s){return
v(e),d().diseqcTree.CmdRepeat=s}),c(),l(16,"small",12),k(17,"div
",15),m(18,"translate"),c()(),l(19,"div",8)(20,"label",16),g(21),m(22,"translate"),c(),l(23,"p-dropdown",17,18),C("ngModelChange",function(s){return
v(e),d().currentSubType=s})("onChange",function(){return
v(e),d().updateSubType()}),c(),l(25,"small",12),g(26),m(27,"translate"),c()(),_(28,Ree,11,11,"div",19),l(29,"div",8)(30,"label",20),g(31),m(32,"translate"),c(),l(33,"p-inputNumber",21),C("ngModelChange",function(s){return
v(e),d().diseqcTree.RotorLoSpeed=s}),c(),l(34,"small",12),g(35),m(36,"translate"),c()(),l(37,"div",8)(38,"label",22),g(39),m(40,"translate"),c(),l(41,"p-inputNumber",23),C("ngModelChange",function(s){return
v(e),d().diseqcTree.RotorHiSpeed=s}),c(),l(42,"small",12),g(43),m(44,"translate"),c()(),l(45,"div",8)(46,"label",24),g(47),m(48,"translate"),c(),l(49,"p-inputNumber",25),C("ngModelChange",function(s){return
v(e),d().fields.Latitude=s}),c(),l(50,"small",12),g(51),m(52,"translate"),c()(),l(53,"div",8)(54,"label",26),g(55),m(56,"translate"),c(),l(57,"p-inputNumbe
r",27),C("ngModelChange",function(s){return
v(e),d().fields.Longitude=s}),c(),l(58,"small",12),g(59),m(60,"translate"),c()(),l(61,"p-fieldset",28),m(62,"translate"),_(63,Lee,2,3,"p-button",29),l(64,"p-dialog",30),C("visibleChange",function(s){return
v(e),d().work.displayNewDiseqc=s}),m(65,"translate"),l(66,"label",31),g(67),m(68,"translate"),c(),l(69,"p-listbox",32),C("ngModelChange",function(s){return
v(e),d().selectedDiseqcType=s})("onDblClick",function(){return
v(e),d().newDiseqc()}),c(),_(70,Oee,4,7,"ng-template",33),c(),_(71,Aee,1,1,"p-button",34),l(72,"p-dialog",30),C("visibleChange",function(s){return
v(e),d().work.displayDeleteDiseqc=s}),m(73,"translate"),l(74,"h2"),g(75),m(76,"translate"),c(),l(77,"p"),g(78),m(79,"translate"),c(),_(80,Pee,4,6,"ng-template",33),c(),_(81,Fee,1,3,"app-lnb",35),_(82,Nee,1,3,"app-rotor",35),_(83,Vee,1,3,"app-switch",35),_(84,Bee,1,3,"app-unicable",35),c()()()}if(2&t){const
e=d();a(4),S(f(5,65,"settings.capture.diseqc.description_label")),a(2),p(
"ngModel",e.diseqcTree.Description),a(3),T("
",f(10,67,"settings.capture.diseqc.description_desc"),"
"),a(4),S(f(14,69,"settings.capture.diseqc.cmdrepeat_label")),a(2),p("ngModel",e.diseqcTree.CmdRepeat)("showButtons",!0)("min",0)("max",15)("step",1),a(2),p("innerHTML",f(18,71,"settings.capture.diseqc.cmdrepeat_desc"),Bt),a(2),q(A(105,SS)),a(2),S(f(22,73,"settings.capture.diseqc.rotor.type_label")),a(2),q(A(106,Hee)),p("options",e.rotorSubTypes)("ngModel",e.currentSubType)("editable",!1)("maxlength",0),a(3),T("
",f(27,75,"settings.capture.diseqc.rotor.type_desc"),"
"),a(2),p("ngIf","diseqc_1_2"==e.diseqcTree.SubType),a(3),S(f(32,77,"settings.capture.diseqc.rotor.lospeed_label")),a(2),p("ngModel",e.diseqcTree.RotorLoSpeed)("maxFractionDigits",5),a(2),T("
",f(36,79,"settings.capture.diseqc.rotor.lospeed_desc"),"
"),a(4),S(f(40,81,"settings.capture.diseqc.rotor.hispeed_label")),a(2),p("ngModel",e.diseqcTree.RotorHiSpeed)("maxFractionDigits",5),a(2),T("
",f(44,83,"settings.capture.diseq
c.rotor.hispeed_desc"),"
"),a(4),S(f(48,85,"settings.capture.diseqc.rotor.latitude_label")),a(2),p("ngModel",e.fields.Latitude)("maxFractionDigits",5),a(2),T("
",f(52,87,"settings.capture.diseqc.rotor.latitude_desc"),"
"),a(4),S(f(56,89,"settings.capture.diseqc.rotor.longitude_label")),a(2),p("ngModel",e.fields.Longitude)("maxFractionDigits",5),a(2),T("
",f(60,91,"settings.capture.diseqc.rotor.longitude_desc"),"
"),a(2),x("legend",f(62,93,"settings.capture.dvb.satellite_heading")),p("toggleable",!0)("collapsed",!0),a(2),p("ngIf",!e.diseqcSubTree),a(1),q(A(107,xS)),x("header",f(65,95,"settings.capture.dvb.newsatellite_heading")),p("visible",e.work.displayNewDiseqc)("modal",!0)("draggable",!1)("resizable",!1),a(3),S(f(68,97,"settings.capture.dvb.newsatellite_devtype")),a(2),p("options",e.captureCardService.diseqcTypes)("ngModel",e.selectedDiseqcType),a(2),p("ngIf",e.diseqcSubTree),a(1),q(A(108,xS)),x("header",f(73,99,"settings.capture.dvb.satellite_delete_header")),p("visible",e.work.
displayDeleteDiseqc)("modal",!0)("draggable",!1)("resizable",!1),a(3),S(f(76,101,"settings.common.ru_sure")),a(3),S(f(79,103,"settings.capture.dvb.satellite_delete_desc")),a(3),p("ngIf",e.diseqcSubTree&&"lnb"==e.diseqcSubTree.Type),a(1),p("ngIf",e.diseqcSubTree&&"rotor"==e.diseqcSubTree.Type),a(1),p("ngIf",e.diseqcSubTree&&"switch"==e.diseqcSubTree.Type),a(1),p("ngIf",e.diseqcSubTree&&"scr"==e.diseqcSubTree.Type)}}let
Al=(()=>{class
t{constructor(e,n,s,r){this.captureCardService=e,this.setupService=n,this.translate=s,this.mythService=r,this.baseEvent=new
H,this.rotorSubTypes=[{Name:"settings.capture.diseqc.subtype_diseqc_1_2",SubType:"diseqc_1_2"},{Name:"settings.capture.diseqc.subtype_diseqc_1_3",SubType:"diseqc_1_3"}],this.selectedDiseqcType={description:"",type:"",inactive:!0},this.rotorPositions=[],this.fields={Latitude:null,Longitude:null},this.work={displayNewDiseqc:!1,displayDeleteDiseqc:!1},this.setupDone=!1,this.rotorSubTypes.forEach(o=>s.get(o.Name).subscribe(u=>o.Name=u))
}ngOnInit(){this.mythService.GetSetting({HostName:"_GLOBAL_",Key:"latitude"}).subscribe({next:e=>{e.String.length>0&&(this.fields.Latitude=Number(e.String))},error:()=>this.dvbComponent.work.errorCount++}),this.mythService.GetSetting({HostName:"_GLOBAL_",Key:"longitude"}).subscribe({next:e=>{e.String.length>0&&(this.fields.Longitude=Number(e.String))},error:()=>this.dvbComponent.work.errorCount++});for(let
e=0;e<48;e++)this.rotorPositions.push({Num:e+1,Angle:null});if(this.diseqcTree.DiSEqCId?this.diseqcTree.RotorPositions.split(":").forEach(n=>{let
s=n.split("=");if(2==s.length&&s[0].length>0&&s[1].length>0){let
r=Number.parseInt(s[1])-1,o=Number.parseFloat(s[0]);r>-1&&r<48&&(this.rotorPositions[r].Angle=o)}}):(this.diseqcTree.RotorHiSpeed=2.5,this.diseqcTree.RotorLoSpeed=1.9,this.diseqcTree.SubType="diseqc_1_3",this.diseqcTree.CmdRepeat=1),this.diseqcTree.SubType){let
e=this.rotorSubTypes.find(n=>n.SubType==this.diseqcTree.SubType);e&&(this.currentSubType=e)}this.diseqcSubTree=thi
s.diseqcTreeList.DiseqcTreeList.DiseqcTrees.find(e=>e.ParentId==this.diseqcTree.DiSEqCId)}ngAfterViewInit(){this.baseEvent.emit(this),this.currentForm.valueChanges.subscribe(n=>{this.setupDone&&this.currentForm.dirty&&this.dvbComponent.currentForm.form.markAsDirty()}),new
Je(n=>{setTimeout(()=>{n.next(1),n.complete()},100)}).subscribe(n=>{this.setupDone=!0,this.diseqcTree.DiSEqCId?this.currentForm.form.markAsPristine():(this.currentForm.form.markAsDirty(),this.dvbComponent.currentForm.form.markAsDirty())})}updateSubType(){this.diseqcTree.SubType=this.currentSubType.SubType}newDiseqc(){this.work.displayNewDiseqc=!1,this.diseqcSubTree={Type:this.selectedDiseqcType.type,Description:this.selectedDiseqcType.description}}setDiseqcObject(e){this.diseqcSubComponent=e}deleteDiseqc(){this.work.displayDeleteDiseqc=!1,this.dvbComponent.work.errorCount=0,this.diseqcSubTree&&this.diseqcSubTree.DiSEqCId&&this.captureCardService.DeleteDiseqcTree(this.diseqcSubTree.DiSEqCId).subscribe({next:e=>{e.bo
ol||(console.log("DeleteDiseqcTree",e),this.dvbComponent.work.errorCount++)},error:e=>{console.log("DeleteDiseqcTree",e),this.dvbComponent.work.errorCount++}}),0==this.dvbComponent.work.errorCount&&(this.diseqcSubTree=void
0)}saveForm(e,n){this.diseqcTree.ParentId=e,null!=this.fields.Latitude&&this.mythService.PutSetting({HostName:"_GLOBAL_",Key:"latitude",Value:String(this.fields.Latitude)}).subscribe(this.dvbComponent.saveObserver),null!=this.fields.Longitude&&this.mythService.PutSetting({HostName:"_GLOBAL_",Key:"longitude",Value:String(this.fields.Longitude)}).subscribe(this.dvbComponent.saveObserver),this.diseqcTree.RotorPositions="",this.rotorPositions.forEach(s=>{null!=s.Angle&&(this.diseqcTree.RotorPositions.length>0&&(this.diseqcTree.RotorPositions=this.diseqcTree.RotorPositions+":"),this.diseqcTree.RotorPositions=this.diseqcTree.RotorPositions+s.Angle+"="+s.Num)}),this.diseqcTree.DiSEqCId?(this.captureCardService.UpdateDiseqcTree(this.diseqcTree).subscribe(n),this.diseqcSub
Component&&this.diseqcSubComponent.saveForm(this.diseqcTree.DiSEqCId,{error:s=>{n.error(s)}})):this.captureCardService.AddDiseqcTree(this.diseqcTree).subscribe({next:s=>{s.int&&s.int>0?(this.diseqcTree.DiSEqCId=s.int,n.next(s),this.diseqcSubComponent&&this.diseqcSubComponent.saveForm(this.diseqcTree.DiSEqCId,{next:r=>{},error:r=>{n.error(r)}})):(console.log("UpdateDiseqcTree",s),n.error(s))},error:s=>{console.log("UpdateDiseqcTree",s),n.error(s)}})}}return
t.\u0275fac=function(e){return
new(e||t)(D(Gt),D(Me),D(Oe),D(qt))},t.\u0275cmp=z({type:t,selectors:[["app-rotor"]],viewQuery:function(e,n){if(1&e&&W(wee,5),2&e){let
s;V(s=B())&&(n.currentForm=s.first)}},inputs:{diseqcTree:"diseqcTree",diseqcTreeList:"diseqcTreeList",dvbComponent:"dvbComponent"},outputs:{baseEvent:"baseEvent"},decls:6,vars:0,consts:[["name","rotorform",1,"ml-3","mr-3"],["rotorform","ngForm"],[1,"m-5"],["pTemplate","title"],["pTemplate","subtitle"],["pTemplate","content"],[1,"grid"],[1,"mb-4","w-full"],[1,"form-grou
p","field"],["for","Description",1,"label","block"],["pInputText","","id","ip","name","Description",1,"mb-2","form-control","w-full",3,"ngModel","ngModelChange"],["Description","ngModel"],[1,"block"],["for","CmdRepeat",1,"label","block"],["name","CmdRepeat","id","CmdRepeat",3,"ngModel","showButtons","min","max","step","ngModelChange"],[3,"innerHTML"],["for","SubType",1,"label","block"],["optionLabel","Name","name","SubType",3,"options","ngModel","editable","maxlength","ngModelChange","onChange"],["SubType","ngModel"],["class","form-group
field",4,"ngIf"],["for","RotorLoSpeed",1,"label","block"],["name","RotorLoSpeed","id","RotorLoSpeed","mode","decimal",3,"ngModel","maxFractionDigits","ngModelChange"],["for","RotorHiSpeed",1,"label","block"],["name","RotorHiSpeed","id","RotorHiSpeed","mode","decimal",3,"ngModel","maxFractionDigits","ngModelChange"],["for","Latitude",1,"label","block"],["name","Latitude","id","Latitude","mode","decimal",3,"ngModel","maxFractionDigits","ngModelChange"
],["for","Longitude",1,"label","block"],["name","Longitude","id","Longitude","mode","decimal",3,"ngModel","maxFractionDigits","ngModelChange"],[1,"mb-4","w-full",3,"legend","toggleable","collapsed"],["icon","pi
pi-plus-circle","styleClass","p-button-plain",3,"label","onClick",4,"ngIf"],[3,"header","visible","modal","draggable","resizable","visibleChange"],["for","disenqcTypes",1,"label","block"],["optionLabel","description","name","disenqcTypes","optionDisabled","inactive",3,"options","ngModel","ngModelChange","onDblClick"],["pTemplate","footer"],["styleClass","p-button-warning","label","Delete
Satellite Devices","icon","pi
pi-trash",3,"disabled","onClick",4,"ngIf"],[3,"diseqcTree","diseqcTreeList","dvbComponent","baseEvent",4,"ngIf"],["for","RotorPositions",1,"label","block"],["dataKey","Num","responsiveLayout","scroll","name","RotorPositions","styleClass","p-datatable-gridlines","scrollHeight","20rem",3,"value","scrollable"],["pTemplate","header"],["pTemplate","body"],["pEditableC
olumn",""],["pTemplate","input"],["pTemplate","output"],["name","Angle",3,"ngModel","min","max","maxFractionDigits","ngModelChange"],[4,"ngIf"],["icon","pi
pi-plus-circle","styleClass","p-button-plain",3,"label","onClick"],["icon","pi
pi-times-circle","styleClass","p-button-plain",3,"label","onClick"],["icon","pi
pi-check-circle","styleClass","p-button-plain",3,"label","disabled","onClick"],["styleClass","p-button-warning","label","Delete
Satellite Devices","icon","pi
pi-trash",3,"disabled","onClick"],["icon","pi
pi-times-circle","styleClass","p-button-plain",3,"label","click"],["icon","pi
pi-check-circle","styleClass","p-button-plain",3,"label","click"],[3,"diseqcTree","diseqcTreeList","dvbComponent","baseEvent"]],template:function(e,n){1&e&&(l(0,"form",0,1)(2,"p-card",2),_(3,Tee,2,3,"ng-template",3),_(4,See,0,0,"ng-template",4),_(5,qee,85,109,"ng-template",5),c()())},styles:[""]}),t})();const
Gee=["unicableform"];function
Uee(t,i){1&t&&(g(0),m(1,"translate")),2&t&&T("
",f(1,1,"set
tings.capture.diseqc.unicable.title")," ")}function zee(t,i){}function
jee(t,i){if(1&t){const
e=I();l(0,"p-button",30),C("onClick",function(){return
v(e),d(2).work.displayNewDiseqc=!0}),m(1,"translate"),c()}2&t&&x("label",f(1,1,"settings.capture.dvb.newsatellite_button"))}function
$ee(t,i){if(1&t){const
e=I();l(0,"p-button",31),C("onClick",function(){return
v(e),d(2).work.displayNewDiseqc=!1}),m(1,"translate"),c(),l(2,"p-button",32),C("onClick",function(){return
v(e),d(2).newDiseqc()}),m(3,"translate"),c()}if(2&t){const
e=d(2);x("label",f(1,3,"common.cancel")),a(2),x("label",f(3,5,"common.ok")),p("disabled",e.selectedDiseqcType.inactive)}}function
Wee(t,i){if(1&t){const
e=I();l(0,"p-button",33),C("onClick",function(){return
v(e),d(2).work.displayDeleteDiseqc=!0}),c()}2&t&&p("disabled",!d(2).diseqcSubTree)}function
Kee(t,i){if(1&t){const
e=I();l(0,"p-button",34),C("click",function(){return
v(e),d(2).work.displayDeleteDiseqc=!1}),m(1,"translate"),c(),l(2,"p-button",35),C("click",funct
ion(){return
v(e),d(2).deleteDiseqc()}),m(3,"translate"),c()}2&t&&(x("label",f(1,2,"common.no")),a(2),x("label",f(3,4,"common.yes")))}function
Qee(t,i){if(1&t){const
e=I();l(0,"app-lnb",36),C("baseEvent",function(s){return
v(e),d(2).setDiseqcObject(s)}),c()}if(2&t){const
e=d(2);p("diseqcTree",e.diseqcSubTree)("diseqcTreeList",e.diseqcTreeList)("dvbComponent",e.dvbComponent)}}function
Jee(t,i){if(1&t){const
e=I();l(0,"app-rotor",36),C("baseEvent",function(s){return
v(e),d(2).setDiseqcObject(s)}),c()}if(2&t){const
e=d(2);p("diseqcTree",e.diseqcSubTree)("diseqcTreeList",e.diseqcTreeList)("dvbComponent",e.dvbComponent)}}function
Yee(t,i){if(1&t){const
e=I();l(0,"app-switch",36),C("baseEvent",function(s){return
v(e),d(2).setDiseqcObject(s)}),c()}if(2&t){const
e=d(2);p("diseqcTree",e.diseqcSubTree)("diseqcTreeList",e.diseqcTreeList)("dvbComponent",e.dvbComponent)}}function
Zee(t,i){if(1&t){const
e=I();l(0,"app-unicable",36),C("baseEvent",function(s){return
v(e),d(2).setDiseqcObject(s)}),c
()}if(2&t){const
e=d(2);p("diseqcTree",e.diseqcSubTree)("diseqcTreeList",e.diseqcTreeList)("dvbComponent",e.dvbComponent)}}const
DS=function(){return{width:"50vw"}};function Xee(t,i){if(1&t){const
e=I();l(0,"div",6)(1,"div",7)(2,"div",8)(3,"label",9),g(4),m(5,"translate"),c(),l(6,"input",10,11),C("ngModelChange",function(s){return
v(e),d().diseqcTree.Description=s}),c(),l(8,"small",12),g(9),m(10,"translate"),c()(),l(11,"div",8)(12,"label",13),g(13),m(14,"translate"),c(),l(15,"p-inputNumber",14),C("ngModelChange",function(s){return
v(e),d().diseqcTree.ScrUserband=s}),c(),l(16,"small",12),k(17,"div",15),m(18,"translate"),c()(),l(19,"div",8)(20,"label",16),g(21),m(22,"translate"),c(),l(23,"p-inputNumber",17),C("ngModelChange",function(s){return
v(e),d().diseqcTree.ScrFrequency=s}),c(),l(24,"small",12),g(25),m(26,"translate"),c()(),l(27,"div",8)(28,"label",18),g(29),m(30,"translate"),c(),l(31,"p-inputNumber",19),C("ngModelChange",function(s){return
v(e),d().diseqcTree.ScrPin=s}),c(),l(3
2,"small",12),g(33),m(34,"translate"),c()(),l(35,"div",8)(36,"label",20),g(37),m(38,"translate"),c(),l(39,"p-inputNumber",21),C("ngModelChange",function(s){return
v(e),d().diseqcTree.CmdRepeat=s}),c(),l(40,"small",12),k(41,"div",15),m(42,"translate"),c()(),l(43,"p-fieldset",22),m(44,"translate"),_(45,jee,2,3,"p-button",23),l(46,"p-dialog",24),C("visibleChange",function(s){return
v(e),d().work.displayNewDiseqc=s}),m(47,"translate"),l(48,"label",25),g(49),m(50,"translate"),c(),l(51,"p-listbox",26),C("ngModelChange",function(s){return
v(e),d().selectedDiseqcType=s})("onDblClick",function(){return
v(e),d().newDiseqc()}),c(),_(52,$ee,4,7,"ng-template",27),c(),_(53,Wee,1,1,"p-button",28),l(54,"p-dialog",24),C("visibleChange",function(s){return
v(e),d().work.displayDeleteDiseqc=s}),m(55,"translate"),l(56,"h2"),g(57),m(58,"translate"),c(),l(59,"p"),g(60),m(61,"translate"),c(),_(62,Kee,4,6,"ng-template",27),c(),_(63,Qee,1,3,"app-lnb",29),_(64,Jee,1,3,"app-rotor",29),_(65,Yee,1,3,"app-switch"
,29),_(66,Zee,1,3,"app-unicable",29),c()()()}if(2&t){const
e=d();a(4),S(f(5,55,"settings.capture.diseqc.description_label")),a(2),p("ngModel",e.diseqcTree.Description),a(3),T("
",f(10,57,"settings.capture.diseqc.description_desc"),"
"),a(4),S(f(14,59,"settings.capture.diseqc.unicable.userband_label")),a(2),p("ngModel",e.diseqcTree.ScrUserband)("showButtons",!0)("min",0)("max",7)("step",1),a(2),p("innerHTML",f(18,61,"settings.capture.diseqc.userband_desc"),Bt),a(4),S(f(22,63,"settings.capture.diseqc.unicable.frequency_label")),a(2),p("ngModel",e.diseqcTree.ScrFrequency)("useGrouping",!1),a(2),T("
",f(26,65,"settings.capture.diseqc.unicable.frequency_desc"),"
"),a(4),S(f(30,67,"settings.capture.diseqc.unicable.pin_label")),a(2),p("ngModel",e.diseqcTree.ScrPin)("useGrouping",!1)("min",-1)("max",255),a(2),T("
",f(34,69,"settings.capture.diseqc.unicable.pin_desc"),"
"),a(4),S(f(38,71,"settings.capture.diseqc.cmdrepeat_label")),a(2),p("ngModel",e.diseqcTree.CmdRepeat)("showButtons",!0)("m
in",0)("max",15)("step",1),a(2),p("innerHTML",f(42,73,"settings.capture.diseqc.cmdrepeat_desc"),Bt),a(2),x("legend",f(44,75,"settings.capture.dvb.satellite_heading")),p("toggleable",!0)("collapsed",!0),a(2),p("ngIf",!e.diseqcSubTree),a(1),q(A(87,DS)),x("header",f(47,77,"settings.capture.dvb.newsatellite_heading")),p("visible",e.work.displayNewDiseqc)("modal",!0)("draggable",!1)("resizable",!1),a(3),S(f(50,79,"settings.capture.dvb.newsatellite_devtype")),a(2),p("options",e.captureCardService.diseqcTypes)("ngModel",e.selectedDiseqcType),a(2),p("ngIf",e.diseqcSubTree),a(1),q(A(88,DS)),x("header",f(55,81,"settings.capture.dvb.satellite_delete_header")),p("visible",e.work.displayDeleteDiseqc)("modal",!0)("draggable",!1)("resizable",!1),a(3),S(f(58,83,"settings.common.ru_sure")),a(3),S(f(61,85,"settings.capture.dvb.satellite_delete_desc")),a(3),p("ngIf",e.diseqcSubTree&&"lnb"==e.diseqcSubTree.Type),a(1),p("ngIf",e.diseqcSubTree&&"rotor"==e.diseqcSubTree.Type),a(1),p("ngIf",e.diseqcSubTree
&&"switch"==e.diseqcSubTree.Type),a(1),p("ngIf",e.diseqcSubTree&&"scr"==e.diseqcSubTree.Type)}}let
Pl=(()=>{class
t{constructor(e){this.captureCardService=e,this.selectedDiseqcType={description:"",type:"",inactive:!0},this.baseEvent=new
H,this.work={displayNewDiseqc:!1,displayDeleteDiseqc:!1},this.setupDone=!1}ngOnInit(){this.diseqcTree.DiSEqCId||(this.diseqcTree.ScrUserband=0,this.diseqcTree.ScrFrequency=1210,this.diseqcTree.ScrPin=-1,this.diseqcTree.CmdRepeat=1),this.diseqcSubTree=this.diseqcTreeList.DiseqcTreeList.DiseqcTrees.find(e=>e.ParentId==this.diseqcTree.DiSEqCId)}ngAfterViewInit(){this.baseEvent.emit(this),this.currentForm.valueChanges.subscribe(n=>{this.setupDone&&this.currentForm.dirty&&this.dvbComponent.currentForm.form.markAsDirty()}),new
Je(n=>{setTimeout(()=>{n.next(1),n.complete()},100)}).subscribe(n=>{this.setupDone=!0,this.diseqcTree.DiSEqCId?this.currentForm.form.markAsPristine():(this.currentForm.form.markAsDirty(),this.dvbComponent.currentForm.form.markAsDirty
())})}newDiseqc(){this.work.displayNewDiseqc=!1,this.diseqcSubTree={Type:this.selectedDiseqcType.type,Description:this.selectedDiseqcType.description}}setDiseqcObject(e){this.diseqcSubComponent=e}deleteDiseqc(){this.work.displayDeleteDiseqc=!1,this.dvbComponent.work.errorCount=0,this.diseqcSubTree&&this.diseqcSubTree.DiSEqCId&&this.captureCardService.DeleteDiseqcTree(this.diseqcSubTree.DiSEqCId).subscribe({next:e=>{e.bool||(console.log("DeleteDiseqcTree",e),this.dvbComponent.work.errorCount++)},error:e=>{console.log("DeleteDiseqcTree",e),this.dvbComponent.work.errorCount++}}),0==this.dvbComponent.work.errorCount&&(this.diseqcSubTree=void
0)}saveForm(e,n){this.diseqcTree.ParentId=e,this.diseqcTree.DiSEqCId?(this.captureCardService.UpdateDiseqcTree(this.diseqcTree).subscribe(n),this.diseqcSubComponent&&this.diseqcSubComponent.saveForm(this.diseqcTree.DiSEqCId,{error:s=>{n.error(s)}})):this.captureCardService.AddDiseqcTree(this.diseqcTree).subscribe({next:s=>{s.int&&s.int>0?(this.diseq
cTree.DiSEqCId=s.int,n.next&&n.next(s),this.diseqcSubComponent&&this.diseqcSubComponent.saveForm(this.diseqcTree.DiSEqCId,{next:r=>{},error:r=>{n.error(r)}})):(console.log("UpdateDiseqcTree",s),n.error(s))},error:s=>{console.log("UpdateDiseqcTree",s),n.error(s)}})}}return
t.\u0275fac=function(e){return
new(e||t)(D(Gt))},t.\u0275cmp=z({type:t,selectors:[["app-unicable"]],viewQuery:function(e,n){if(1&e&&W(Gee,5),2&e){let
s;V(s=B())&&(n.currentForm=s.first)}},inputs:{diseqcTree:"diseqcTree",diseqcTreeList:"diseqcTreeList",dvbComponent:"dvbComponent"},outputs:{baseEvent:"baseEvent"},decls:6,vars:0,consts:[["name","unicableform",1,"ml-3","mr-3"],["unicableform","ngForm"],[1,"m-5"],["pTemplate","title"],["pTemplate","subtitle"],["pTemplate","content"],[1,"grid"],[1,"mb-4","w-full"],[1,"form-group","field"],["for","Description",1,"label","block"],["pInputText","","id","ip","name","Description",1,"mb-2","form-control","w-full",3,"ngModel","ngModelChange"],["Description","ngModel"],[1,"block
"],["for","ScrUserband",1,"label","block"],["name","ScrUserband","id","ScrUserband",3,"ngModel","showButtons","min","max","step","ngModelChange"],[3,"innerHTML"],["for","ScrFrequency",1,"label","block"],["name","ScrFrequency","id","ScrFrequency","mode","decimal","inputId","withoutgrouping",3,"ngModel","useGrouping","ngModelChange"],["for","ScrPin",1,"label","block"],["name","ScrPin","id","ScrPin","mode","decimal","inputId","withoutgrouping",3,"ngModel","useGrouping","min","max","ngModelChange"],["for","CmdRepeat",1,"label","block"],["name","CmdRepeat","id","CmdRepeat",3,"ngModel","showButtons","min","max","step","ngModelChange"],[1,"mb-4","w-full",3,"legend","toggleable","collapsed"],["icon","pi
pi-plus-circle","styleClass","p-button-plain",3,"label","onClick",4,"ngIf"],[3,"header","visible","modal","draggable","resizable","visibleChange"],["for","disenqcTypes",1,"label","block"],["optionLabel","description","name","disenqcTypes","optionDisabled","inactive",3,"options","ngModel","ng
ModelChange","onDblClick"],["pTemplate","footer"],["styleClass","p-button-warning","label","Delete
Satellite Devices","icon","pi
pi-trash",3,"disabled","onClick",4,"ngIf"],[3,"diseqcTree","diseqcTreeList","dvbComponent","baseEvent",4,"ngIf"],["icon","pi
pi-plus-circle","styleClass","p-button-plain",3,"label","onClick"],["icon","pi
pi-times-circle","styleClass","p-button-plain",3,"label","onClick"],["icon","pi
pi-check-circle","styleClass","p-button-plain",3,"label","disabled","onClick"],["styleClass","p-button-warning","label","Delete
Satellite Devices","icon","pi
pi-trash",3,"disabled","onClick"],["icon","pi
pi-times-circle","styleClass","p-button-plain",3,"label","click"],["icon","pi
pi-check-circle","styleClass","p-button-plain",3,"label","click"],[3,"diseqcTree","diseqcTreeList","dvbComponent","baseEvent"]],template:function(e,n){1&e&&(l(0,"form",0,1)(2,"p-card",2),_(3,Uee,2,3,"ng-template",3),_(4,zee,0,0,"ng-template",4),_(5,Xee,67,89,"ng-template",5),c()())},styles:[""]}),t})(
);const ete=["switchform"];function
tte(t,i){1&t&&(g(0),m(1,"translate")),2&t&&T("
",f(1,1,"settings.capture.diseqc.switch.title")," ")}function
nte(t,i){}function
ite(t,i){1&t&&(l(0,"div")(1,"small",27),g(2),m(3,"translate"),c()()),2&t&&(a(2),S(f(3,1,"settings.capture.diseqc.switchports_error")))}function
ste(t,i){if(1&t){const
e=I();l(0,"p-button",33),C("onClick",function(){v(e);const
s=d(2).index;return
d(2).displayDeleteThis[s]=!0}),c()}2&t&&p("disabled",!d(2).$implicit)}function
rte(t,i){if(1&t){const
e=I();l(0,"p-button",34),C("click",function(){v(e);const
s=d(2).index;return
d(2).displayDeleteThis[s]=!1}),m(1,"translate"),c(),l(2,"p-button",35),C("click",function(){v(e);const
s=d(2).index;return
d(2).deleteDiseqc(s)}),m(3,"translate"),c()}2&t&&(x("label",f(1,2,"common.no")),a(2),x("label",f(3,4,"common.yes")))}function
ote(t,i){if(1&t){const
e=I();l(0,"app-lnb",36),C("baseEvent",function(s){return
v(e),d(4).setDiseqcObject(s)}),c()}if(2&t){const e=d(2).$implicit,n=d(2);p("dis
eqcTree",e)("diseqcTreeList",n.diseqcTreeList)("dvbComponent",n.dvbComponent)}}function
ate(t,i){if(1&t){const
e=I();l(0,"app-rotor",36),C("baseEvent",function(s){return
v(e),d(4).setDiseqcObject(s)}),c()}if(2&t){const
e=d(2).$implicit,n=d(2);p("diseqcTree",e)("diseqcTreeList",n.diseqcTreeList)("dvbComponent",n.dvbComponent)}}function
lte(t,i){if(1&t){const
e=I();l(0,"app-switch",36),C("baseEvent",function(s){return
v(e),d(4).setDiseqcObject(s)}),c()}if(2&t){const
e=d(2).$implicit,n=d(2);p("diseqcTree",e)("diseqcTreeList",n.diseqcTreeList)("dvbComponent",n.dvbComponent)}}function
cte(t,i){if(1&t){const
e=I();l(0,"app-unicable",36),C("baseEvent",function(s){return
v(e),d(4).setDiseqcObject(s)}),c()}if(2&t){const
e=d(2).$implicit,n=d(2);p("diseqcTree",e)("diseqcTreeList",n.diseqcTreeList)("dvbComponent",n.dvbComponent)}}const
MS=function(){return{width:"50vw"}};function ute(t,i){if(1&t){const
e=I();l(0,"p-fieldset",28),m(1,"translate"),_(2,ste,1,1,"p-button",29),l(3,"p-dialog",30),C("
visibleChange",function(s){v(e);const r=d().index;return
d(2).displayDeleteThis[r]=s}),m(4,"translate"),l(5,"h2"),g(6),m(7,"translate"),c(),l(8,"p"),g(9),m(10,"translate"),c(),_(11,rte,4,6,"ng-template",31),c(),_(12,ote,1,3,"app-lnb",32),_(13,ate,1,3,"app-rotor",32),_(14,lte,1,3,"app-switch",32),_(15,cte,1,3,"app-unicable",32),c()}if(2&t){const
e=d(),n=e.$implicit,s=e.index,r=d(2);x("legend",f(1,17,"settings.capture.dvb.satellite_heading")),p("toggleable",!0)("collapsed",!0),a(2),p("ngIf",n),a(1),q(A(25,MS)),x("header",f(4,19,"settings.capture.dvb.satellite_delete_header")),p("visible",r.displayDeleteThis[s])("modal",!0)("draggable",!1)("resizable",!1),a(3),S(f(7,21,"settings.common.ru_sure")),a(3),S(f(10,23,"settings.capture.dvb.satellite_delete_desc")),a(3),p("ngIf",n&&"lnb"==n.Type),a(1),p("ngIf",n&&"rotor"==n.Type),a(1),p("ngIf",n&&"switch"==n.Type),a(1),p("ngIf",n&&"scr"==n.Type)}}function
dte(t,i){if(1&t&&(l(0,"div"),_(1,ute,16,26,"p-fieldset",26),c()),2&t){const
e=i.$implicit
;a(1),p("ngIf",e)}}function pte(t,i){if(1&t){const
e=I();l(0,"p-button",40),C("onClick",function(){return
v(e),d(3).work.displayNewDiseqc=!1}),m(1,"translate"),c(),l(2,"p-button",41),C("onClick",function(){return
v(e),d(3).newDiseqc()}),m(3,"translate"),c()}if(2&t){const
e=d(3);x("label",f(1,3,"common.cancel")),a(2),x("label",f(3,5,"common.ok")),p("disabled",e.selectedDiseqcType.inactive)}}function
hte(t,i){if(1&t){const
e=I();l(0,"p-fieldset",28),m(1,"translate"),l(2,"p-button",37),C("onClick",function(){return
v(e),d(2).work.displayNewDiseqc=!0}),m(3,"translate"),c(),l(4,"p-dialog",30),C("visibleChange",function(s){return
v(e),d(2).work.displayNewDiseqc=s}),m(5,"translate"),l(6,"label",38),g(7),m(8,"translate"),c(),l(9,"p-listbox",39),C("ngModelChange",function(s){return
v(e),d(2).selectedDiseqcType=s})("onDblClick",function(){return
v(e),d(2).newDiseqc()}),c(),_(10,pte,4,7,"ng-template",31),c()()}if(2&t){const
e=d(2);x("legend",f(1,14,"settings.capture.dvb.satellite_heading")),p(
"toggleable",!0)("collapsed",!1),a(2),x("label",f(3,16,"settings.capture.dvb.newsatellite_button")),a(2),q(A(22,MS)),x("header",f(5,18,"settings.capture.dvb.newsatellite_heading")),p("visible",e.work.displayNewDiseqc)("modal",!0)("draggable",!1)("resizable",!1),a(3),T("
",f(8,20,"settings.capture.dvb.newsatellite_devtype"),"
"),a(2),p("options",e.captureCardService.diseqcTypes)("ngModel",e.selectedDiseqcType)}}const
mte=function(){return{width:"25rem"}},fte=function(){return{minWidth:"80%"}};function
gte(t,i){if(1&t){const
e=I();l(0,"div",6)(1,"div",7)(2,"div",8)(3,"label",9),g(4),m(5,"translate"),c(),l(6,"input",10,11),C("ngModelChange",function(s){return
v(e),d().diseqcTree.Description=s}),c(),l(8,"small",12),g(9),m(10,"translate"),c()(),l(11,"div",8)(12,"label",13),g(13),m(14,"translate"),c(),l(15,"p-inputNumber",14),C("ngModelChange",function(s){return
v(e),d().diseqcTree.CmdRepeat=s}),c(),l(16,"small",12),k(17,"div",15),m(18,"translate"),c()(),l(19,"div",8)(20,"label",16),g(21)
,m(22,"translate"),c(),l(23,"p-dropdown",17,18),C("ngModelChange",function(s){return
v(e),d().currentSubType=s})("onChange",function(){return
v(e),d().updateSubType()}),c(),l(25,"small",12),g(26),m(27,"translate"),c()(),l(28,"div",8)(29,"label",19),g(30),m(31,"translate"),c(),l(32,"input",20,21),C("ngModelChange",function(s){return
v(e),d().work.addressText=s}),c(),l(34,"small",12),g(35),m(36,"translate"),c()(),l(37,"div",8)(38,"label",22),g(39),m(40,"translate"),c(),l(41,"p-inputNumber",23),C("ngModelChange",function(s){return
v(e),d().diseqcTree.SwitchPorts=s}),c(),l(42,"small",12),k(43,"div",15),m(44,"translate"),c(),_(45,ite,4,3,"div",24),c(),_(46,dte,2,1,"div",25),_(47,hte,11,23,"p-fieldset",26),c()()}if(2&t){const
e=d();a(4),S(f(5,35,"settings.capture.diseqc.description_label")),a(2),p("ngModel",e.diseqcTree.Description),a(3),T("
",f(10,37,"settings.capture.diseqc.description_desc"),"
"),a(4),S(f(14,39,"settings.capture.diseqc.cmdrepeat_label")),a(2),p("ngModel",e.diseqcTree.C
mdRepeat)("showButtons",!0)("min",0)("max",15)("step",1),a(2),p("innerHTML",f(18,41,"settings.capture.diseqc.cmdrepeat_desc"),Bt),a(2),q(A(55,mte)),a(2),S(f(22,43,"settings.capture.diseqc.switch.type_label")),a(2),q(A(56,fte)),p("options",e.switchSubTypes)("ngModel",e.currentSubType)("editable",!1)("maxlength",0),a(3),T("
",f(27,45,"settings.capture.diseqc.switch.type_desc"),"
"),a(4),S(f(31,47,"settings.capture.diseqc.address_label")),a(2),p("ngModel",e.work.addressText)("disabled",!e.work.enableAddrAndPorts),a(3),T("
",f(36,49,"settings.capture.diseqc.address_desc"),"
"),a(4),T("
",f(40,51,"settings.capture.diseqc.switchports_label"),"
"),a(2),p("ngModel",e.diseqcTree.SwitchPorts)("showButtons",!0)("min",0)("max",255)("step",1)("disabled",!e.work.enableAddrAndPorts),a(2),p("innerHTML",f(44,53,"settings.capture.diseqc.switchports_desc"),Bt),a(2),p("ngIf",e.diseqcSubTreeCount>e.diseqcTree.SwitchPorts),a(1),p("ngForOf",e.diseqcSubTree),a(1),p("ngIf",e.diseqcSubTreeCount<e.diseqcTree.
SwitchPorts)}}let wg=(()=>{class
t{constructor(e,n){this.captureCardService=e,this.translate=n,this.diseqcSubComponent=[],this.baseEvent=new
H,this.switchSubTypes=[{Name:"settings.capture.diseqc.switch.tone",SubType:"tone"},{Name:"settings.capture.diseqc.switch.voltage",SubType:"voltage"},{Name:"settings.capture.diseqc.switch.mini_diseqc",SubType:"mini_diseqc"},{Name:"settings.capture.diseqc.switch.diseqc",SubType:"diseqc"},{Name:"settings.capture.diseqc.switch.diseqc_uncom",SubType:"diseqc_uncom"},{Name:"settings.capture.diseqc.switch.legacy_sw21",SubType:"legacy_sw21"},{Name:"settings.capture.diseqc.switch.legacy_sw42",SubType:"legacy_sw42"},{Name:"settings.capture.diseqc.switch.legacy_sw64",SubType:"legacy_sw64"}],this.diseqcSubTree=[],this.diseqcSubTreeCount=0,this.work={addressText:"",displayNewDiseqc:!1,enableAddrAndPorts:!1},this.displayDeleteThis=[],this.selectedDiseqcType={description:"",type:"",inactive:!0},this.setupDone=!1,this.switchSubTypes.forEach(s=>n.get(s.Name).sub
scribe(r=>s.Name=r))}ngOnInit(){if(this.diseqcTree.DiSEqCId?this.work.addressText="0x"+this.diseqcTree.Address.toString(16):(this.diseqcTree.Address=16,this.work.addressText="0x10",this.diseqcTree.SwitchPorts=2,this.diseqcTree.SubType="tone",this.diseqcTree.CmdRepeat=1),this.diseqcTree.SubType){let
e=this.switchSubTypes.find(n=>n.SubType==this.diseqcTree.SubType);e&&(this.currentSubType=e)}this.updateSubType(),this.displayDeleteThis=[],this.diseqcTreeList.DiseqcTreeList.DiseqcTrees.forEach(e=>{e.ParentId==this.diseqcTree.DiSEqCId&&(this.diseqcSubTree.push(e),this.displayDeleteThis.push(!1),this.diseqcSubTreeCount++)})}ngAfterViewInit(){this.baseEvent.emit(this),this.currentForm.valueChanges.subscribe(n=>{this.setupDone&&this.currentForm.dirty&&this.dvbComponent.currentForm.form.markAsDirty()}),new
Je(n=>{setTimeout(()=>{n.next(1),n.complete()},100)}).subscribe(n=>{this.setupDone=!0,this.diseqcTree.DiSEqCId?this.currentForm.form.markAsPristine():(this.currentForm.form.markAsDirty(),t
his.dvbComponent.currentForm.form.markAsDirty())})}newDiseqc(){this.work.displayNewDiseqc=!1,this.diseqcSubTree.push({Type:this.selectedDiseqcType.type,Description:this.selectedDiseqcType.description}),this.displayDeleteThis.push(!1),this.diseqcSubTreeCount++}setDiseqcObject(e){this.diseqcSubComponent.findIndex(s=>s===e)<0&&this.diseqcSubComponent.push(e),console.log("setDiseqcObject",this.diseqcSubComponent.length)}deleteDiseqc(e){this.displayDeleteThis[e]=!1,this.dvbComponent.work.errorCount=0,console.log("Delete",e),null!=this.diseqcSubTree[e]&&(this.diseqcSubTree[e].DiSEqCId&&this.captureCardService.DeleteDiseqcTree(this.diseqcSubTree[e].DiSEqCId).subscribe({next:n=>{n.bool||(console.log("DeleteDiseqcTree",n),this.dvbComponent.work.errorCount++)},error:n=>{console.log("DeleteDiseqcTree",n),this.dvbComponent.work.errorCount++}}),0==this.dvbComponent.work.errorCount&&(this.diseqcSubTree[e]=null,this.diseqcSubTreeCount--))}updateSubType(){switch(this.diseqcTree.SubType=this.current
SubType.SubType,this.diseqcTree.SubType){case"tone":case"voltage":case"mini_diseqc":case"legacy_sw21":case"legacy_sw42":this.work.addressText="0x10",this.diseqcTree.SwitchPorts=2,this.work.enableAddrAndPorts=!1;break;case"legacy_sw64":this.work.addressText="0x10",this.diseqcTree.SwitchPorts=3,this.work.enableAddrAndPorts=!1;break;case"diseqc_uncom":case"diseqc":this.work.enableAddrAndPorts=!0}}saveForm(e,n){this.diseqcTree.ParentId=e,this.diseqcTree.Address=Number.parseInt(this.work.addressText),this.diseqcTree.DiSEqCId?(this.captureCardService.UpdateDiseqcTree(this.diseqcTree).subscribe(n),this.diseqcSubComponent.forEach(s=>{s&&s.saveForm(this.diseqcTree.DiSEqCId,{error:r=>{n.error(r)}})})):this.captureCardService.AddDiseqcTree(this.diseqcTree).subscribe({next:s=>{s.int&&s.int>0?(this.diseqcTree.DiSEqCId=s.int,n.next&&n.next(s),this.diseqcSubComponent.forEach(r=>{r&&r.saveForm(this.diseqcTree.DiSEqCId,{next:o=>{},error:o=>{n.error(o)}})})):(console.log("UpdateDiseqcTree",s),n.error
(s))},error:s=>{console.log("UpdateDiseqcTree",s),n.error(s)}})}}return
t.\u0275fac=function(e){return
new(e||t)(D(Gt),D(Oe))},t.\u0275cmp=z({type:t,selectors:[["app-switch"]],viewQuery:function(e,n){if(1&e&&W(ete,5),2&e){let
s;V(s=B())&&(n.currentForm=s.first)}},inputs:{diseqcTree:"diseqcTree",diseqcTreeList:"diseqcTreeList",dvbComponent:"dvbComponent"},outputs:{baseEvent:"baseEvent"},decls:6,vars:0,consts:[["name","switchform",1,"ml-3","mr-3"],["switchform","ngForm"],[1,"m-5"],["pTemplate","title"],["pTemplate","subtitle"],["pTemplate","content"],[1,"grid"],[1,"mb-4","w-full"],[1,"form-group","field"],["for","Description",1,"label","block"],["pInputText","","id","ip","name","Description",1,"mb-2","form-control","w-full",3,"ngModel","ngModelChange"],["Description","ngModel"],[1,"block"],["for","CmdRepeat",1,"label","block"],["name","CmdRepeat","id","CmdRepeat",3,"ngModel","showButtons","min","max","step","ngModelChange"],[3,"innerHTML"],["for","SubType",1,"label","block"],["optionL
abel","Name","name","SubType",3,"options","ngModel","editable","maxlength","ngModelChange","onChange"],["SubType","ngModel"],["for","Address",1,"label","block"],["pInputText","","id","Address","name","Address",1,"mb-2","form-control","w-full",3,"ngModel","disabled","ngModelChange"],["Address","ngModel"],["for","SwitchPorts",1,"label","block"],["name","SwitchPorts","id","SwitchPorts",3,"ngModel","showButtons","min","max","step","disabled","ngModelChange"],[4,"ngIf"],[4,"ngFor","ngForOf"],["class","mb-4
w-full",3,"legend","toggleable","collapsed",4,"ngIf"],[1,"p-error","block"],[1,"mb-4","w-full",3,"legend","toggleable","collapsed"],["styleClass","p-button-warning","label","Delete
Satellite Devices","icon","pi
pi-trash",3,"disabled","onClick",4,"ngIf"],[3,"header","visible","modal","draggable","resizable","visibleChange"],["pTemplate","footer"],[3,"diseqcTree","diseqcTreeList","dvbComponent","baseEvent",4,"ngIf"],["styleClass","p-button-warning","label","Delete
Satellite Devices","ico
n","pi
pi-trash",3,"disabled","onClick"],["icon","pi
pi-times-circle","styleClass","p-button-plain",3,"label","click"],["icon","pi
pi-check-circle","styleClass","p-button-plain",3,"label","click"],[3,"diseqcTree","diseqcTreeList","dvbComponent","baseEvent"],["icon","pi
pi-plus-circle","styleClass","p-button-plain",3,"label","onClick"],["for","disenqcTypes",1,"label","block"],["optionLabel","description","name","disenqcTypes","optionDisabled","inactive",3,"options","ngModel","ngModelChange","onDblClick"],["icon","pi
pi-times-circle","styleClass","p-button-plain",3,"label","onClick"],["icon","pi
pi-check-circle","styleClass","p-button-plain",3,"label","disabled","onClick"]],template:function(e,n){1&e&&(l(0,"form",0,1)(2,"p-card",2),_(3,tte,2,3,"ng-template",3),_(4,nte,0,0,"ng-template",4),_(5,gte,48,57,"ng-template",5),c()())},directives:[ze,Ue,He,Ne,ne,Ye,Te,_e,pt,Ot,_n,Q,at,Ui,ve,bn,kd,Al,t,Pl,os],pipes:[ce],styles:[""]}),t})();const
_te=["externalform"],bte=["top"];function vte(t,i
){1&t&&(g(0),m(1,"translate")),2&t&&T("
",f(1,1,"settings.capture.external.title")," ")}function
Cte(t,i){}function yte(t,i){if(1&t){const
e=I();l(0,"div",8)(1,"div",9)(2,"div",10)(3,"label",11),g(4),m(5,"translate"),c(),l(6,"input",12,13),C("ngModelChange",function(s){return
v(e),d().card.VideoDevice=s}),c(),l(8,"small",14),g(9),m(10,"translate"),c()(),l(11,"div",10)(12,"label",15),g(13),m(14,"translate"),c(),l(15,"p-inputNumber",16),C("ngModelChange",function(s){return
v(e),d().card.ChannelTimeout=s}),c(),l(16,"small",14),g(17),m(18,"translate"),c()()()()}if(2&t){const
e=d();a(4),S(f(5,10,"settings.capture.external.command_label")),a(2),p("ngModel",e.card.VideoDevice),a(3),T("
",f(10,12,"settings.capture.external.command_desc"),"
"),a(4),S(f(14,14,"settings.capture.tunetimeout_label")),a(2),p("ngModel",e.card.ChannelTimeout)("showButtons",!0)("min",1750)("max",65e3)("step",250),a(2),T("
",f(18,16,"settings.capture.tunetimeout_desc")," ")}}function
wte(t,i){1&t&&(k(0,"p-message",22
),m(1,"translate")),2&t&&x("text",f(1,1,"common.savesuccess"))}function
Tte(t,i){1&t&&(k(0,"p-message",23),m(1,"translate")),2&t&&x("text",f(1,1,"common.networkfail"))}function
Ste(t,i){if(1&t){const
e=I();l(0,"div",17)(1,"div",18),_(2,wte,2,3,"p-message",19),_(3,Tte,2,3,"p-message",20),c(),l(4,"p-button",21),C("onClick",function(){v(e);const
s=d(),r=F(1);return
s.saveForm(),r.form.markAsPristine()}),m(5,"translate"),c()()}if(2&t){const
e=d(),n=F(1);a(2),p("ngIf",e.work.successCount>0&&0==e.work.errorCount&&!n.dirty),a(1),p("ngIf",e.work.errorCount>0),a(1),x("label",f(5,4,"common.save")),p("disabled",!n.dirty||!e.card.VideoDevice||e.setupService.schedulingEnabled)}}let
xte=(()=>{class
t{constructor(e,n){this.captureCardService=e,this.setupService=n,this.work={successCount:0,errorCount:0},this.saveObserver={next:s=>{this.card.CardId&&s.bool?this.work.successCount++:!this.card.CardId&&s.int?(this.work.successCount++,this.card.CardId=s.int):(this.work.errorCount++,this.currentForm.form
.markAsDirty())},error:s=>{console.error(s),this.work.errorCount++,this.currentForm.form.markAsDirty()}}}ngOnInit(){}ngAfterViewInit(){this.setupService.setCurrentForm(this.currentForm),this.topElement.nativeElement.scrollIntoView({behavior:"smooth",block:"start"})}saveForm(){this.work.successCount=0,this.work.errorCount=0,this.card.CardId?this.cardList.CaptureCardList.CaptureCards.forEach(e=>{(e.CardId==this.card.CardId||e.ParentId==this.card.CardId)&&(this.captureCardService.UpdateCaptureCard(e.CardId,"videodevice",this.card.VideoDevice).subscribe(this.saveObserver),this.captureCardService.UpdateCaptureCard(e.CardId,"channel_timeout",String(this.card.ChannelTimeout)).subscribe(this.saveObserver))}):this.captureCardService.AddCaptureCard(this.card).subscribe(this.saveObserver)}}return
t.\u0275fac=function(e){return
new(e||t)(D(Gt),D(Me))},t.\u0275cmp=z({type:t,selectors:[["app-external"]],viewQuery:function(e,n){if(1&e&&(W(_te,5),W(bte,5)),2&e){let
s;V(s=B())&&(n.currentForm=s.firs
t),V(s=B())&&(n.topElement=s.first)}},inputs:{card:"card",cardList:"cardList"},decls:9,vars:0,consts:[["name","externalform",1,"ml-3","mr-3"],["externalform","ngForm"],["top",""],[1,"m-5"],["pTemplate","title"],["pTemplate","subtitle"],["pTemplate","content"],["pTemplate","footer"],[1,"grid"],[1,"mb-4","w-full"],[1,"form-group","field"],["for","VideoDevice",1,"label","block"],["pInputText","","id","VideoDevice","name","VideoDevice",1,"mb-2","form-control","w-full",3,"ngModel","ngModelChange"],["VideoDevice","ngModel"],[1,"block"],["for","ChannelTimeout",1,"label","block"],["name","ChannelTimeout","id","ChannelTimeout",3,"ngModel","showButtons","min","max","step","ngModelChange"],[1,"grid","nogutter"],[1,"col-12"],["severity","success",3,"text",4,"ngIf"],["severity","error",3,"text",4,"ngIf"],["icon","pi
pi-save","iconPos","left",1,"col","pr-1",3,"label","disabled","onClick"],["severity","success",3,"text"],["severity","error",3,"text"]],template:function(e,n){1&e&&(l(0,"form",0,1),k
(2,"span",null,2),l(4,"p-card",3),_(5,vte,2,3,"ng-template",4),_(6,Cte,0,0,"ng-template",5),_(7,yte,19,18,"ng-template",6),_(8,Ste,6,6,"ng-template",7),c()())},directives:[ze,Ue,He,Ne,ne,Ye,Te,_e,pt,Q,qe,ve],pipes:[ce],styles:[""]}),t})();const
Dte=["hdhomerunform"],Mte=["top"];function
kte(t,i){1&t&&(g(0),m(1,"translate")),2&t&&T("
",f(1,1,"settings.capture.hdhomerun.title")," ")}function
Ite(t,i){}function Ete(t,i){if(1&t){const
e=I();l(0,"p-listbox",20,21),C("ngModelChange",function(s){return
v(e),d(2).selectedDevices=s})("onChange",function(){return
v(e),d(2).updateDevices()}),c()}if(2&t){const
e=d(2);p("options",e.captureDeviceList.CaptureDeviceList.CaptureDevices)("ngModel",e.selectedDevices)("checkbox",!0)("showToggleAll",!1)("multiple",!0)}}const
Rte=function(){return{width:"30rem"}};function Lte(t,i){if(1&t){const
e=I();l(0,"div",8)(1,"div",9)(2,"div",10)(3,"label",11),g(4),m(5,"translate"),c(),l(6,"div"),_(7,Ete,2,5,"p-listbox",12),l(8,"small",13),g(9),m(10,"translate"),c(
)()(),l(11,"div",10)(12,"label",14),g(13),m(14,"translate"),c(),l(15,"p-inputNumber",15),C("ngModelChange",function(s){return
v(e),d().card.SignalTimeout=s}),c(),l(16,"small",13),g(17),m(18,"translate"),c()(),l(19,"div",10)(20,"label",16),g(21),m(22,"translate"),c(),l(23,"p-inputNumber",17),C("ngModelChange",function(s){return
v(e),d().card.ChannelTimeout=s}),c(),l(24,"small",13),g(25),m(26,"translate"),c()(),l(27,"div",10)(28,"p-checkbox",18,19),C("ngModelChange",function(s){return
v(e),d().card.DVBEITScan=s}),m(30,"translate"),c(),l(31,"small",13),g(32),m(33,"translate"),c()()()()}if(2&t){const
e=d();a(4),S(f(5,23,"settings.capture.hdhomerun.device_label")),a(2),q(A(39,Rte)),a(1),p("ngIf",e.work.isReady),a(2),T("
",f(10,25,"settings.capture.hdhomerun.device_desc"),"
"),a(4),S(f(14,27,"settings.capture.sigtimeout_label")),a(2),p("ngModel",e.card.SignalTimeout)("showButtons",!0)("min",250)("max",6e4)("step",250),a(2),T("
",f(18,29,"settings.capture.sigtimeout_desc")," "),a(4),S(f(22
,31,"settings.capture.tunetimeout_label")),a(2),p("ngModel",e.card.ChannelTimeout)("showButtons",!0)("min",1750)("max",65e3)("step",250),a(2),T("
",f(26,33,"settings.capture.tunetimeout_desc"),"
"),a(3),x("label",f(30,35,"settings.capture.hdhomerun.eitscan_label")),p("ngModel",e.card.DVBEITScan)("binary",!0),a(4),T("
",f(33,37,"settings.capture.dvb.eitscan_ldesc")," ")}}function
Ote(t,i){1&t&&(k(0,"p-message",27),m(1,"translate")),2&t&&x("text",f(1,1,"common.savesuccess"))}function
Ate(t,i){1&t&&(k(0,"p-message",28),m(1,"translate")),2&t&&x("text",f(1,1,"common.networkfail"))}function
Pte(t,i){if(1&t){const
e=I();l(0,"div",22)(1,"div",23),_(2,Ote,2,3,"p-message",24),_(3,Ate,2,3,"p-message",25),c(),l(4,"p-button",26),C("onClick",function(){v(e);const
s=d(),r=F(1);return
s.saveForm(),r.form.markAsPristine()}),m(5,"translate"),c()()}if(2&t){const
e=d(),n=F(1);a(2),p("ngIf",e.work.successCount>0&&0==e.work.errorCount&&!n.dirty),a(1),p("ngIf",e.work.errorCount>0),a(1),x("label",f(5,4,"co
mmon.save")),p("disabled",!n.dirty||!e.card.VideoDevice||e.setupService.schedulingEnabled)}}let
Fte=(()=>{class
t{constructor(e,n){this.captureCardService=e,this.setupService=n,this.work={isReady:!1,successCount:0,errorCount:0},this.captureDeviceList={CaptureDeviceList:{CaptureDevices:[]}},this.selectedDevices=[],this.saveObserver={next:s=>{this.card.CardId&&s.bool?this.work.successCount++:!this.card.CardId&&s.int?(this.work.successCount++,this.card.CardId=s.int):(this.work.errorCount++,this.currentForm.form.markAsDirty())},error:s=>{console.error(s),this.work.errorCount++,this.currentForm.form.markAsDirty()}}}ngOnInit(){this.captureCardService.GetCaptureDeviceList("HDHOMERUN").subscribe({next:e=>{this.captureDeviceList=e,this.setupDevices()},error:e=>{console.log("GetCaptureDeviceList",e),this.work.errorCount++}})}ngAfterViewInit(){this.setupService.setCurrentForm(this.currentForm),this.topElement.nativeElement.scrollIntoView({behavior:"smooth",block:"start"})}setupDevices(){this.c
ard.VideoDevice&&this.card.VideoDevice.split(",").forEach(n=>{const
s=this.captureDeviceList.CaptureDeviceList.CaptureDevices.find(r=>n==r.VideoDevice.split("
")[0]);s&&this.selectedDevices.push(s)}),this.work.isReady=!0}updateDevices(){let
e="",n=[];this.selectedDevices.forEach(s=>{n.push(s.VideoDevice.split("
")[0]),this.card.SignalTimeout=s.SignalTimeout,this.card.ChannelTimeout=s.ChannelTimeout}),n.sort(),console.log(n),n.forEach(s=>{e&&(e+=","),e+=s}),this.card.VideoDevice=e}saveForm(){console.log("save
form
clicked"),this.work.successCount=0,this.work.errorCount=0,this.card.CardId?this.cardList.CaptureCardList.CaptureCards.forEach(e=>{(e.CardId==this.card.CardId||e.ParentId==this.card.CardId)&&(this.captureCardService.UpdateCaptureCard(e.CardId,"videodevice",this.card.VideoDevice).subscribe(this.saveObserver),this.captureCardService.UpdateCaptureCard(e.CardId,"signal_timeout",String(this.card.SignalTimeout)).subscribe(this.saveObserver),this.captureCardService.UpdateCaptureCar
d(e.CardId,"channel_timeout",String(this.card.ChannelTimeout)).subscribe(this.saveObserver),this.captureCardService.UpdateCaptureCard(e.CardId,"dvb_eitscan",String(this.card.DVBEITScan?"1":"0")).subscribe(this.saveObserver))}):this.captureCardService.AddCaptureCard(this.card).subscribe(this.saveObserver)}}return
t.\u0275fac=function(e){return
new(e||t)(D(Gt),D(Me))},t.\u0275cmp=z({type:t,selectors:[["app-hdhomerun"]],viewQuery:function(e,n){if(1&e&&(W(Dte,5),W(Mte,5)),2&e){let
s;V(s=B())&&(n.currentForm=s.first),V(s=B())&&(n.topElement=s.first)}},inputs:{card:"card",cardList:"cardList"},decls:9,vars:0,consts:[["name","hdhomerunform",1,"ml-3","mr-3"],["hdhomerunform","ngForm"],["top",""],[1,"m-5"],["pTemplate","title"],["pTemplate","subtitle"],["pTemplate","content"],["pTemplate","footer"],[1,"grid"],[1,"mb-4","w-full"],[1,"form-group","field"],["for","VideoDevice",1,"label","block"],["optionLabel","VideoDevice","name","VideoDevice",3,"options","ngModel","checkbox","showToggleAll","m
ultiple","ngModelChange","onChange",4,"ngIf"],[1,"block"],["for","SignalTimeout",1,"label","block"],["name","SignalTimeout","id","SignalTimeout",3,"ngModel","showButtons","min","max","step","ngModelChange"],["for","ChannelTimeout",1,"label","block"],["name","ChannelTimeout","id","ChannelTimeout",3,"ngModel","showButtons","min","max","step","ngModelChange"],["inputId","DVBEITScan","name","DVBEITScan",1,"label","mb-2","w-full",3,"ngModel","binary","label","ngModelChange"],["DVBEITScan","ngModel"],["optionLabel","VideoDevice","name","VideoDevice",3,"options","ngModel","checkbox","showToggleAll","multiple","ngModelChange","onChange"],["VideoDevice","ngModel"],[1,"grid","nogutter"],[1,"col-12"],["severity","success",3,"text",4,"ngIf"],["severity","error",3,"text",4,"ngIf"],["icon","pi
pi-save","iconPos","left",1,"col","pr-1",3,"label","disabled","onClick"],["severity","success",3,"text"],["severity","error",3,"text"]],template:function(e,n){1&e&&(l(0,"form",0,1),k(2,"span",null,2),l(4,"p
-card",3),_(5,kte,2,3,"ng-template",4),_(6,Ite,0,0,"ng-template",5),_(7,Lte,34,40,"ng-template",6),_(8,Pte,6,6,"ng-template",7),c()())},directives:[ze,Ue,He,Ne,ne,Q,os,Te,_e,pt,sn,qe,ve],pipes:[ce],styles:[""]}),t})();const
Nte=["iptvform"],Vte=["top"];function
Bte(t,i){1&t&&(g(0),m(1,"translate")),2&t&&T("
",f(1,1,"settings.capture.iptv.title")," ")}function
Hte(t,i){}function qte(t,i){if(1&t){const
e=I();l(0,"div",8)(1,"div",9)(2,"div",10)(3,"label",11),g(4),m(5,"translate"),c(),l(6,"input",12,13),C("ngModelChange",function(s){return
v(e),d().card.VideoDevice=s}),c(),l(8,"small",14),g(9),m(10,"translate"),c()(),l(11,"div",10)(12,"label",15),g(13),m(14,"translate"),c(),l(15,"p-inputNumber",16),C("ngModelChange",function(s){return
v(e),d().card.ChannelTimeout=s}),c(),l(16,"small",14),g(17),m(18,"translate"),c()()()()}if(2&t){const
e=d();a(4),S(f(5,10,"settings.capture.iptv.url_label")),a(2),p("ngModel",e.card.VideoDevice),a(3),T("
",f(10,12,"settings.capture.iptv.url_desc")," "),a(4
),S(f(14,14,"settings.capture.tunetimeout_label")),a(2),p("ngModel",e.card.ChannelTimeout)("showButtons",!0)("min",1750)("max",65e3)("step",250),a(2),T("
",f(18,16,"settings.capture.tunetimeout_desc")," ")}}function
Gte(t,i){1&t&&(k(0,"p-message",22),m(1,"translate")),2&t&&x("text",f(1,1,"common.savesuccess"))}function
Ute(t,i){1&t&&(k(0,"p-message",23),m(1,"translate")),2&t&&x("text",f(1,1,"common.networkfail"))}function
zte(t,i){if(1&t){const
e=I();l(0,"div",17)(1,"div",18),_(2,Gte,2,3,"p-message",19),_(3,Ute,2,3,"p-message",20),c(),l(4,"p-button",21),C("onClick",function(){v(e);const
s=d(),r=F(1);return
s.saveForm(),r.form.markAsPristine()}),m(5,"translate"),c()()}if(2&t){const
e=d(),n=F(1);a(2),p("ngIf",e.work.successCount>0&&0==e.work.errorCount&&!n.dirty),a(1),p("ngIf",e.work.errorCount>0),a(1),x("label",f(5,4,"common.save")),p("disabled",!n.dirty||!e.card.VideoDevice||e.setupService.schedulingEnabled)}}let
jte=(()=>{class t{constructor(e,n){this.captureCardService=e,this.setu
pService=n,this.work={successCount:0,errorCount:0},this.saveObserver={next:s=>{this.card.CardId&&s.bool?this.work.successCount++:!this.card.CardId&&s.int?(this.work.successCount++,this.card.CardId=s.int):(this.work.errorCount++,this.currentForm.form.markAsDirty())},error:s=>{console.error(s),this.work.errorCount++,this.currentForm.form.markAsDirty()}}}ngOnInit(){}ngAfterViewInit(){this.setupService.setCurrentForm(this.currentForm),this.topElement.nativeElement.scrollIntoView({behavior:"smooth",block:"start"}),this.card.CardId||new
Je(n=>{setTimeout(()=>{n.next(1),n.complete()},100)}).subscribe(n=>{this.currentForm.form.markAsDirty()})}saveForm(){console.log("save
form
clicked"),this.work.successCount=0,this.work.errorCount=0,this.card.CardId?this.cardList.CaptureCardList.CaptureCards.forEach(e=>{(e.CardId==this.card.CardId||e.ParentId==this.card.CardId)&&(this.captureCardService.UpdateCaptureCard(e.CardId,"videodevice",this.card.VideoDevice).subscribe(this.saveObserver),this.capture
CardService.UpdateCaptureCard(e.CardId,"channel_timeout",String(this.card.ChannelTimeout)).subscribe(this.saveObserver))}):this.captureCardService.AddCaptureCard(this.card).subscribe(this.saveObserver)}}return
t.\u0275fac=function(e){return
new(e||t)(D(Gt),D(Me))},t.\u0275cmp=z({type:t,selectors:[["app-iptv"]],viewQuery:function(e,n){if(1&e&&(W(Nte,5),W(Vte,5)),2&e){let
s;V(s=B())&&(n.currentForm=s.first),V(s=B())&&(n.topElement=s.first)}},inputs:{card:"card",cardList:"cardList"},decls:9,vars:0,consts:[["name","iptvform",1,"ml-3","mr-3"],["iptvform","ngForm"],["top",""],[1,"m-5"],["pTemplate","title"],["pTemplate","subtitle"],["pTemplate","content"],["pTemplate","footer"],[1,"grid"],[1,"mb-4","w-full"],[1,"form-group","field"],["for","VideoDevice",1,"label","block"],["pInputText","","id","VideoDevice","name","VideoDevice",1,"mb-2","form-control","w-full",3,"ngModel","ngModelChange"],["VideoDevice","ngModel"],[1,"block"],["for","ChannelTimeout",1,"label","block"],["name","ChannelTime
out","id","ChannelTimeout",3,"ngModel","showButtons","min","max","step","ngModelChange"],[1,"grid","nogutter"],[1,"col-12"],["severity","success",3,"text",4,"ngIf"],["severity","error",3,"text",4,"ngIf"],["icon","pi
pi-save","iconPos","left",1,"col","pr-1",3,"label","disabled","onClick"],["severity","success",3,"text"],["severity","error",3,"text"]],template:function(e,n){1&e&&(l(0,"form",0,1),k(2,"span",null,2),l(4,"p-card",3),_(5,Bte,2,3,"ng-template",4),_(6,Hte,0,0,"ng-template",5),_(7,qte,19,18,"ng-template",6),_(8,zte,6,6,"ng-template",7),c()())},directives:[ze,Ue,He,Ne,ne,Ye,Te,_e,pt,Q,qe,ve],pipes:[ce],styles:[""]}),t})();const
$te=["importform"],Wte=["top"];function
Kte(t,i){1&t&&(g(0),m(1,"translate")),2&t&&T("
",f(1,1,"settings.capture.import.title")," ")}function
Qte(t,i){}function Jte(t,i){if(1&t){const
e=I();l(0,"div",8)(1,"div",9)(2,"div",10)(3,"label",11),g(4),m(5,"translate"),c(),l(6,"input",12,13),C("ngModelChange",function(s){return
v(e),d().card.VideoDevice=s}),c(
),l(8,"small",14),g(9),m(10,"translate"),c()()()()}if(2&t){const
e=d();a(4),S(f(5,3,"settings.capture.import.file_label")),a(2),p("ngModel",e.card.VideoDevice),a(3),T("
",f(10,5,"settings.capture.import.file_desc")," ")}}function
Yte(t,i){1&t&&(k(0,"p-message",20),m(1,"translate")),2&t&&x("text",f(1,1,"common.savesuccess"))}function
Zte(t,i){1&t&&(k(0,"p-message",21),m(1,"translate")),2&t&&x("text",f(1,1,"common.networkfail"))}function
Xte(t,i){if(1&t){const
e=I();l(0,"div",15)(1,"div",16),_(2,Yte,2,3,"p-message",17),_(3,Zte,2,3,"p-message",18),c(),l(4,"p-button",19),C("onClick",function(){v(e);const
s=d(),r=F(1);return
s.saveForm(),r.form.markAsPristine()}),m(5,"translate"),c()()}if(2&t){const
e=d(),n=F(1);a(2),p("ngIf",e.work.successCount>0&&0==e.work.errorCount&&!n.dirty),a(1),p("ngIf",e.work.errorCount>0),a(1),x("label",f(5,4,"common.save")),p("disabled",!n.dirty||!e.card.VideoDevice||e.setupService.schedulingEnabled)}}let
ene=(()=>{class t{constructor(e,n){this.captureCardServi
ce=e,this.setupService=n,this.work={successCount:0,errorCount:0},this.saveObserver={next:s=>{this.card.CardId&&s.bool?this.work.successCount++:!this.card.CardId&&s.int?(this.work.successCount++,this.card.CardId=s.int):(this.work.errorCount++,this.currentForm.form.markAsDirty())},error:s=>{console.error(s),this.work.errorCount++,this.currentForm.form.markAsDirty()}}}ngOnInit(){}ngAfterViewInit(){this.setupService.setCurrentForm(this.currentForm),this.topElement.nativeElement.scrollIntoView({behavior:"smooth",block:"start"})}saveForm(){console.log("save
form
clicked"),this.work.successCount=0,this.work.errorCount=0,this.card.CardId?this.cardList.CaptureCardList.CaptureCards.forEach(e=>{(e.CardId==this.card.CardId||e.ParentId==this.card.CardId)&&this.captureCardService.UpdateCaptureCard(e.CardId,"videodevice",this.card.VideoDevice).subscribe(this.saveObserver)}):this.captureCardService.AddCaptureCard(this.card).subscribe(this.saveObserver)}}return
t.\u0275fac=function(e){return new(e||
t)(D(Gt),D(Me))},t.\u0275cmp=z({type:t,selectors:[["app-import"]],viewQuery:function(e,n){if(1&e&&(W($te,5),W(Wte,5)),2&e){let
s;V(s=B())&&(n.currentForm=s.first),V(s=B())&&(n.topElement=s.first)}},inputs:{card:"card",cardList:"cardList"},decls:9,vars:0,consts:[["name","importform",1,"ml-3","mr-3"],["importform","ngForm"],["top",""],[1,"m-5"],["pTemplate","title"],["pTemplate","subtitle"],["pTemplate","content"],["pTemplate","footer"],[1,"grid"],[1,"mb-4","w-full"],[1,"form-group","field"],["for","VideoDevice",1,"label","block"],["pInputText","","id","VideoDevice","name","VideoDevice",1,"mb-2","form-control","w-full",3,"ngModel","ngModelChange"],["VideoDevice","ngModel"],[1,"block"],[1,"grid","nogutter"],[1,"col-12"],["severity","success",3,"text",4,"ngIf"],["severity","error",3,"text",4,"ngIf"],["icon","pi
pi-save","iconPos","left",1,"col","pr-1",3,"label","disabled","onClick"],["severity","success",3,"text"],["severity","error",3,"text"]],template:function(e,n){1&e&&(l(0,"form",0,
1),k(2,"span",null,2),l(4,"p-card",3),_(5,Kte,2,3,"ng-template",4),_(6,Qte,0,0,"ng-template",5),_(7,Jte,11,7,"ng-template",6),_(8,Xte,6,6,"ng-template",7),c()())},directives:[ze,Ue,He,Ne,ne,Ye,Te,_e,Q,qe,ve],pipes:[ce],styles:[""]}),t})();const
tne=["demoform"],nne=["top"];function
ine(t,i){1&t&&(g(0),m(1,"translate")),2&t&&T("
",f(1,1,"settings.capture.demo.title")," ")}function
sne(t,i){}function rne(t,i){if(1&t){const
e=I();l(0,"div",8)(1,"div",9)(2,"div",10)(3,"label",11),g(4),m(5,"translate"),c(),l(6,"input",12,13),C("ngModelChange",function(s){return
v(e),d().card.VideoDevice=s}),c(),l(8,"small",14),g(9),m(10,"translate"),c()()()()}if(2&t){const
e=d();a(4),S(f(5,3,"settings.capture.import.file_label")),a(2),p("ngModel",e.card.VideoDevice),a(3),T("
",f(10,5,"settings.capture.demo.file_desc")," ")}}function
one(t,i){1&t&&(k(0,"p-message",20),m(1,"translate")),2&t&&x("text",f(1,1,"common.savesuccess"))}function
ane(t,i){1&t&&(k(0,"p-message",21),m(1,"translate")),2&t&&x("text",f(
1,1,"common.networkfail"))}function lne(t,i){if(1&t){const
e=I();l(0,"div",15)(1,"div",16),_(2,one,2,3,"p-message",17),_(3,ane,2,3,"p-message",18),c(),l(4,"p-button",19),C("onClick",function(){v(e);const
s=d(),r=F(1);return
s.saveForm(),r.form.markAsPristine()}),m(5,"translate"),c()()}if(2&t){const
e=d(),n=F(1);a(2),p("ngIf",e.work.successCount>0&&0==e.work.errorCount&&!n.dirty),a(1),p("ngIf",e.work.errorCount>0),a(1),x("label",f(5,4,"common.save")),p("disabled",!n.dirty||!e.card.VideoDevice||e.setupService.schedulingEnabled)}}let
cne=(()=>{class
t{constructor(e,n){this.captureCardService=e,this.setupService=n,this.work={successCount:0,errorCount:0},this.saveObserver={next:s=>{this.card.CardId&&s.bool?this.work.successCount++:!this.card.CardId&&s.int?(this.work.successCount++,this.card.CardId=s.int):(this.work.errorCount++,this.currentForm.form.markAsDirty())},error:s=>{console.error(s),this.work.errorCount++,this.currentForm.form.markAsDirty()}}}ngOnInit(){}ngAfterViewInit(){this.s
etupService.setCurrentForm(this.currentForm),this.topElement.nativeElement.scrollIntoView({behavior:"smooth",block:"start"})}saveForm(){console.log("save
form
clicked"),this.work.successCount=0,this.work.errorCount=0,this.card.CardId?this.cardList.CaptureCardList.CaptureCards.forEach(e=>{(e.CardId==this.card.CardId||e.ParentId==this.card.CardId)&&this.captureCardService.UpdateCaptureCard(e.CardId,"videodevice",this.card.VideoDevice).subscribe(this.saveObserver)}):this.captureCardService.AddCaptureCard(this.card).subscribe(this.saveObserver)}}return
t.\u0275fac=function(e){return
new(e||t)(D(Gt),D(Me))},t.\u0275cmp=z({type:t,selectors:[["app-demo"]],viewQuery:function(e,n){if(1&e&&(W(tne,5),W(nne,5)),2&e){let
s;V(s=B())&&(n.currentForm=s.first),V(s=B())&&(n.topElement=s.first)}},inputs:{card:"card",cardList:"cardList"},decls:9,vars:0,consts:[["name","demoform",1,"ml-3","mr-3"],["demoform","ngForm"],["top",""],[1,"m-5"],["pTemplate","title"],["pTemplate","subtitle"],["pTemplate","cont
ent"],["pTemplate","footer"],[1,"grid"],[1,"mb-4","w-full"],[1,"form-group","field"],["for","VideoDevice",1,"label","block"],["pInputText","","id","VideoDevice","name","VideoDevice",1,"mb-2","form-control","w-full",3,"ngModel","ngModelChange"],["VideoDevice","ngModel"],[1,"block"],[1,"grid","nogutter"],[1,"col-12"],["severity","success",3,"text",4,"ngIf"],["severity","error",3,"text",4,"ngIf"],["icon","pi
pi-save","iconPos","left",1,"col","pr-1",3,"label","disabled","onClick"],["severity","success",3,"text"],["severity","error",3,"text"]],template:function(e,n){1&e&&(l(0,"form",0,1),k(2,"span",null,2),l(4,"p-card",3),_(5,ine,2,3,"ng-template",4),_(6,sne,0,0,"ng-template",5),_(7,rne,11,7,"ng-template",6),_(8,lne,6,6,"ng-template",7),c()())},directives:[ze,Ue,He,Ne,ne,Ye,Te,_e,Q,qe,ve],pipes:[ce],styles:[""]}),t})();const
une=["connform"];function
dne(t,i){1&t&&(g(0),m(1,"translate")),2&t&&T("
",f(1,1,"settings.iconnection.title")," ")}function
pne(t,i){}function hne(t,i){if(1&t){cons
t
e=I();l(0,"div",12)(1,"label",44),g(2),m(3,"translate"),c(),l(4,"p-inputNumber",45),C("ngModelChange",function(s){return
v(e),d(3).work.switchPort=s}),c(),l(5,"small",16),g(6),m(7,"translate"),c()()}if(2&t){const
e=d(3);a(2),S(f(3,7,"settings.iconnection.switchport_label")),a(2),p("ngModel",e.work.switchPort)("showButtons",!0)("min",1)("max",e.diseqcTree.SwitchPorts)("step",1),a(2),T("
",f(7,9,"settings.iconnection.switchport_desc")," ")}}function
mne(t,i){if(1&t){const
e=I();l(0,"div")(1,"div",12)(2,"label",46),g(3),m(4,"translate"),c(),l(5,"p-inputNumber",47),C("ngModelChange",function(s){return
v(e),d(3).work.rotorDegrees=s}),c(),k(6,"br")(7,"br"),l(8,"div",48)(9,"p-radioButton",49),C("ngModelChange",function(s){return
v(e),d(3).work.hemisphere=s}),c(),l(10,"label",50),g(11),m(12,"translate"),c()(),l(13,"div",48)(14,"p-radioButton",51),C("ngModelChange",function(s){return
v(e),d(3).work.hemisphere=s}),c(),l(15,"label",52),g(16),m(17,"translate"),c()(),l(18,"small",16),g(19),m(2
0,"translate"),c()()()}if(2&t){const
e=d(3);a(3),S(f(4,10,"settings.iconnection.longitude_label")),a(2),p("ngModel",e.work.rotorDegrees)("min",0)("max",180)("maxFractionDigits",4),a(4),p("ngModel",e.work.hemisphere),a(2),S(f(12,12,"settings.iconnection.longitude_east")),a(3),p("ngModel",e.work.hemisphere),a(2),S(f(17,14,"settings.iconnection.longitude_west")),a(3),T("
",f(20,16,"settings.iconnection.longitude_desc")," ")}}function
fne(t,i){if(1&t){const
e=I();l(0,"div",12)(1,"label",53),g(2),m(3,"translate"),c(),l(4,"div",48)(5,"p-radioButton",54),C("ngModelChange",function(s){return
v(e),d(3).work.scrPort=s}),c(),l(6,"label",55),g(7),m(8,"translate"),c()(),l(9,"div",48)(10,"p-radioButton",56),C("ngModelChange",function(s){return
v(e),d(3).work.scrPort=s}),c(),l(11,"label",57),g(12),m(13,"translate"),c()(),l(14,"small",16),g(15),m(16,"translate"),c()()}if(2&t){const
e=d(3);a(2),S(f(3,6,"settings.iconnection.unicablepos_label")),a(3),p("ngModel",e.work.scrPort),a(2),S(f(8,8,"settings
.iconnection.unicablepos_porta")),a(3),p("ngModel",e.work.scrPort),a(2),S(f(13,10,"settings.iconnection.unicablepos_portb")),a(3),T("
",f(16,12,"settings.iconnection.unicablepos_desc")," ")}}function
gne(t,i){1&t&&(l(0,"div",41),_(1,hne,8,11,"div",42),_(2,mne,21,18,"div",43),_(3,fne,17,14,"div",42),c()),2&t&&(p("ngSwitch",d(2).diseqcTree.Type),a(1),p("ngSwitchCase","switch"),a(1),p("ngSwitchCase","rotor"),a(1),p("ngSwitchCase","scr"))}function
_ne(t,i){if(1&t){const
e=I();l(0,"div",12)(1,"label",58),g(2),m(3,"translate"),c(),l(4,"input",59,60),C("ngModelChange",function(s){return
v(e),d(2).card.InputName=s}),c(),l(6,"small",16),g(7),m(8,"translate"),c()()}if(2&t){const
e=d(2);a(2),S(f(3,3,"settings.iconnection.delivery_label")),a(2),p("ngModel",e.card.InputName),a(3),T("
",f(8,5,"settings.iconnection.delivery_desc")," ")}}function
bne(t,i){if(1&t){const
e=I();l(0,"p-dropdown",63,60),C("ngModelChange",function(s){return
v(e),d(3).card.InputName=s}),c()}if(2&t){const e=d(3);p("options
",e.currentDevice.InputNames)("ngModel",e.card.InputName)}}function
vne(t,i){if(1&t&&(l(0,"div",12)(1,"label",61),g(2),m(3,"translate"),c(),_(4,bne,2,2,"p-dropdown",62),l(5,"small",16),g(6),m(7,"translate"),c()()),2&t){const
e=d(2);a(2),S(f(3,3,"settings.iconnection.input_label")),a(2),p("ngIf",e.work.isReady),a(2),T("
",f(7,5,"settings.capture.inputname_desc")," ")}}function
Cne(t,i){if(1&t){const
e=I();l(0,"div",12)(1,"label",64),g(2),m(3,"translate"),c(),l(4,"input",65,66),C("ngModelChange",function(s){return
v(e),d(2).card.ExternalCommand=s}),c(),l(6,"small",16),g(7),m(8,"translate"),c()()}if(2&t){const
e=d(2);a(2),S(f(3,3,"settings.iconnection.externalcmd_label")),a(2),p("ngModel",e.card.ExternalCommand),a(3),T("
",f(8,5,"settings.iconnection.externalcmd_desc")," ")}}function
yne(t,i){if(1&t){const
e=I();l(0,"div",12)(1,"label",67),g(2),m(3,"translate"),c(),l(4,"input",68,69),C("ngModelChange",function(s){return
v(e),d(2).card.TuneChan=s}),c(),l(6,"small",16),g(7),m(8,"translat
e"),c()()}if(2&t){const
e=d(2);a(2),S(f(3,3,"settings.iconnection.tunechan_label")),a(2),p("ngModel",e.card.TuneChan),a(3),T("
",f(8,5,"settings.iconnection.tunechan_desc")," ")}}const
Id=function(){return{minWidth:"400px"}};function wne(t,i){if(1&t){const
e=I();l(0,"div",12)(1,"label",70),g(2),m(3,"translate"),c(),l(4,"p-dropdown",71,72),C("ngModelChange",function(s){return
v(e),d(2).card.Quicktune=s}),c(),l(6,"small",16),g(7),m(8,"translate"),c()()}if(2&t){const
e=d(2);a(2),S(f(3,8,"settings.iconnection.quicktune_label")),a(2),q(A(12,Id)),p("options",e.quickTuneValues)("ngModel",e.card.Quicktune)("editable",!1)("maxlength",0),a(3),T("
",f(8,10,"settings.iconnection.quicktune_desc")," ")}}function
Tne(t,i){if(1&t){const
e=I();l(0,"div",12)(1,"p-checkbox",73,74),C("ngModelChange",function(s){return
v(e),d(2).card.DishnetEIT=s}),m(3,"translate"),c(),l(4,"small",16),g(5),m(6,"translate"),c()()}if(2&t){const
e=d(2);a(1),x("label",f(3,4,"settings.iconnection.dishneteit_label")),p("ngMod
el",e.card.DishnetEIT)("binary",!0),a(4),T("
",f(6,6,"settings.iconnection.dishneteit_desc")," ")}}function
Sne(t,i){if(1&t&&(l(0,"p-fieldset",75),m(1,"translate"),k(2,"app-channelscan",76),c()),2&t){const
e=d(2);x("legend",f(1,7,"settings.iconnection.scan_title")),p("collapsed",!0)("toggleable",!0),a(2),p("card",e.card)("cardList",e.cardList)("iconnection",e)("videoSourceLookup",e.videoSourceLookup)}}function
xne(t,i){if(1&t){const
e=I();l(0,"p-button",77),C("click",function(){return
v(e),d(2).work.fetchChannelsDialog=!1}),m(1,"translate"),c(),l(2,"p-button",78),C("click",function(){return
v(e),d(2).fetchChannels()}),m(3,"translate"),c()}2&t&&(x("label",f(1,2,"common.no")),a(2),x("label",f(3,4,"common.yes")))}const
Dne=function(t){return{num:t}},Mne=function(){return{width:"50vw"}};function
kne(t,i){if(1&t){const
e=I();l(0,"div",8)(1,"div",9),_(2,gne,4,4,"div",10),_(3,_ne,9,7,"div",11),_(4,vne,8,7,"div",11),l(5,"div",12)(6,"label",13),g(7),m(8,"translate"),c(),l(9,"input",14,15),C(
"ngModelChange",function(s){return
v(e),d().card.DisplayName=s}),c(),l(11,"small",16),g(12),m(13,"translate"),c()(),l(14,"div",12)(15,"label",17),g(16),m(17,"translate"),c(),l(18,"p-dropdown",18,19),C("ngModelChange",function(s){return
v(e),d().card.SourceId=s})("onChange",function(){return
v(e),d().fillChannelList()}),c(),l(20,"small",16),g(21),m(22,"translate"),c()(),_(23,Cne,9,7,"div",11),_(24,yne,9,7,"div",11),_(25,wne,9,13,"div",11),_(26,Tne,7,8,"div",11),_(27,Sne,3,9,"p-fieldset",20),k(28,"br")(29,"br"),l(30,"div",12)(31,"div",8)(32,"div",21)(33,"p-button",22),C("onClick",function(){return
v(e),d().work.fetchChannelsDialog=!0}),m(34,"translate"),c()(),l(35,"div",21),g(36),m(37,"translate"),c()(),l(38,"small",16),g(39),m(40,"translate"),c()(),l(41,"p-dialog",23),C("visibleChange",function(s){return
v(e),d().work.fetchChannelsDialog=s}),l(42,"p"),g(43),m(44,"translate"),c(),l(45,"p"),g(46),m(47,"translate"),c(),_(48,xne,4,6,"ng-template",7),c(),l(49,"div",12)(50,"label",24),g(51
),m(52,"translate"),c(),l(53,"p-dropdown",25,26),C("ngModelChange",function(s){return
v(e),d().card.StartChannel=s}),c(),l(55,"small",16),g(56),m(57,"translate"),c()(),l(58,"p-fieldset",27),m(59,"translate"),l(60,"div",12)(61,"label",28),g(62),m(63,"translate"),c(),l(64,"p-inputNumber",29),C("ngModelChange",function(s){return
v(e),d().card.RecLimit=s}),c(),l(65,"small",16),g(66),m(67,"translate"),c()(),l(68,"div",12)(69,"p-checkbox",30,31),C("ngModelChange",function(s){return
v(e),d().card.SchedGroup=s}),m(71,"translate"),c(),l(72,"small",16),g(73),m(74,"translate"),c()(),l(75,"div",12)(76,"label",32),g(77),m(78,"translate"),c(),l(79,"p-inputNumber",33),C("ngModelChange",function(s){return
v(e),d().card.RecPriority=s}),c(),l(80,"small",16),g(81),m(82,"translate"),c()(),l(83,"div",12)(84,"label",34),g(85),m(86,"translate"),c(),l(87,"p-inputNumber",35),C("ngModelChange",function(s){return
v(e),d().card.SchedOrder=s}),c(),l(88,"small",16),g(89),m(90,"translate"),c()(),l(91,"div",12)(92
,"label",36),g(93),m(94,"translate"),c(),l(95,"p-inputNumber",37),C("ngModelChange",function(s){return
v(e),d().card.LiveTVOrder=s}),c(),l(96,"small",16),g(97),m(98,"translate"),c()(),l(99,"div",12)(100,"label",38),g(101),m(102,"translate"),c(),l(103,"p-dropdown",39,40),C("ngModelChange",function(s){return
v(e),d().work.inputGroupName=s}),c(),l(105,"small",16),g(106),m(107,"translate"),c()()()()()}if(2&t){const
e=d(),n=F(1);a(2),p("ngIf",e.diseqcTree),a(1),p("ngIf","DVB"==e.card.CardType),a(1),p("ngIf","DVB"!=e.card.CardType),a(3),S(f(8,80,"settings.iconnection.displayname_label")),a(2),p("ngModel",e.card.DisplayName),a(3),T("
",f(13,82,"settings.iconnection.displayname_desc"),"
"),a(4),S(f(17,84,"settings.iconnection.sourceid_label")),a(2),q(A(129,Id)),p("options",e.videoSourceList.VideoSourceList.VideoSources)("ngModel",e.card.SourceId)("editable",!1)("maxlength",0),a(3),T("
",f(22,86,"settings.iconnection.sourceid_desc"),"
"),a(2),p("ngIf",e.work.isEncoder||e.work.isUnscanable),a
(1),p("ngIf",e.work.showPresetTuner),a(1),p("ngIf",!e.work.isEncoder&&!e.work.isUnscanable),a(1),p("ngIf","DVB"==e.card.CardType),a(1),p("ngIf",!e.work.isUnscanable),a(6),x("label",f(34,88,"settings.iconnection.fetch.label")),p("disabled",!e.card.SourceId||n.dirty||1==e.work.fetchStatus||e.setupService.schedulingEnabled),a(3),T("
\xa0\xa0",Dt(37,90,e.fetchMessages[e.work.fetchStatus],U(130,Dne,e.work.fetchCount)),"
"),a(3),T(" ",f(40,93,"settings.iconnection.fetch.desc"),"
"),a(2),q(A(132,Mne)),p("visible",e.work.fetchChannelsDialog)("modal",!0)("draggable",!1)("resizable",!1),a(2),S(f(44,95,"settings.iconnection.fetch.warning")),a(3),S(f(47,97,"settings.common.ru_sure")),a(5),S(f(52,99,"settings.iconnection.startchan_label")),a(2),q(A(133,Id)),p("options",e.sourceChannels)("ngModel",e.card.StartChannel)("editable",!1),a(3),T("
",f(57,101,"settings.iconnection.startchan_desc"),"
"),a(2),x("legend",f(59,103,"settings.iconnection.interact_title")),p("toggleable",!0)("collapsed",!0),a(
4),S(f(63,105,"settings.iconnection.maxrec_label")),a(2),p("ngModel",e.card.RecLimit)("showButtons",!0)("min",1)("max",10)("step",1),a(2),T("
",f(67,107,"settings.iconnection.maxrec_desc"),"
"),a(3),x("label",f(71,109,"settings.iconnection.schedgrp_label")),p("ngModel",e.card.SchedGroup)("binary",!0),a(4),T("
",f(74,111,"settings.iconnection.schedgrp_desc"),"
"),a(4),S(f(78,113,"settings.iconnection.recpri_label")),a(2),p("ngModel",e.card.RecPriority)("showButtons",!0)("min",-99)("max",99)("step",1),a(2),T("
",f(82,115,"settings.iconnection.recpri_desc"),"
"),a(4),S(f(86,117,"settings.iconnection.schedorder_label")),a(2),p("ngModel",e.card.SchedOrder)("showButtons",!0)("min",0)("max",99)("step",1),a(2),T("
",f(90,119,"settings.iconnection.schedorder_desc"),"
"),a(4),S(f(94,121,"settings.iconnection.liveorder_label")),a(2),p("ngModel",e.card.LiveTVOrder)("showButtons",!0)("min",0)("max",99)("step",1),a(2),T("
",f(98,123,"settings.iconnection.liveorder_desc"),"
"),a(4),S(f(102,125,"se
ttings.iconnection.inpgroup_label")),a(2),q(A(134,Id)),p("options",e.selectGroups)("ngModel",e.work.inputGroupName)("editable",!0),a(3),T("
",f(107,127,"settings.iconnection.inpgroup_desc")," ")}}function
Ine(t,i){1&t&&(k(0,"p-message",84),m(1,"translate")),2&t&&x("text",f(1,1,"common.savesuccess"))}function
Ene(t,i){1&t&&(k(0,"p-message",85),m(1,"translate")),2&t&&x("text",f(1,1,"common.networkfail"))}function
Rne(t,i){if(1&t){const
e=I();l(0,"div",79)(1,"div",80),_(2,Ine,2,3,"p-message",81),_(3,Ene,2,3,"p-message",82),c(),l(4,"p-button",83),C("onClick",function(){v(e);const
s=d(),r=F(1);return
s.saveForm(),r.form.markAsPristine()}),m(5,"translate"),c()()}if(2&t){const
e=d(),n=F(1);a(2),p("ngIf",e.work.successCount>0&&0==e.work.errorCount&&!n.dirty),a(1),p("ngIf",e.work.errorCount>0),a(1),x("label",f(5,4,"common.save")),p("disabled",!n.dirty||!e.card.VideoDevice||e.setupService.schedulingEnabled)}}let
kS=(()=>{class t{constructor(e,n,s,r){this.translate=e,this.channelService=n,this
.captureCardService=s,this.setupService=r,this.allChannels=[],this.sourceChannels=[],this.inputGroups=[],this.selectGroups=[],this.captureDeviceList={CaptureDeviceList:{CaptureDevices:[]}},this.currentDevice={FrontendName:"Unknown",InputNames:["MPEG2TS"]},this.work={successCount:0,errorCount:0,expectedCount:0,recLimitUpd:!1,reloadGroups:!1,isEncoder:!1,isUnscanable:!1,hasTuner:!1,showPresetTuner:!1,inputGroupName:"",orgInputGroupName:"",fetchChannelsDialog:!1,fetchStatus:0,fetchCount:0,switchPort:0,rotorDegrees:0,scrPort:"",hemisphere:1,isReady:!1,startScan:!1},this.deviceFree=new
ct,this.orgInputGroupIds=[],this.fetchMessages=["","settings.iconnection.fetch.inprog","settings.iconnection.fetch.complete","settings.iconnection.fetch.failed"],this.messages={devNotExist:"settings.capture.dvb.devNotExist"},this.preEncodedTypes=["DVB","FIREWIRE","HDHOMERUN","FREEBOX","IMPORT","DEMO","ASI","CETON","VBOX","SATIP"],this.unscanableTypes=["FIREWIRE","HDPVR","IMPORT","DEMO","GO7007","MJPEG"],th
is.hasTunerTypes=["DVB","HDHOMERUN","FREEBOX","CETON","VBOX","SATIP"],this.quickTuneValues=[{prompt:"settings.iconnection.quicktune.never",value:0},{prompt:"settings.iconnection.quicktune.livetv",value:1},{prompt:"settings.iconnection.quicktune.always",value:2}],this.saveObserver={next:o=>{o.bool?(this.work.successCount++,this.work.recLimitUpd&&(this.work.successCount==this.work.expectedCount?this.captureCardService.SetInputMaxRecordings(this.card.CardId,this.card.RecLimit).subscribe(this.saveObserver):this.work.successCount==this.work.expectedCount+1&&(this.parentComponent.loadCards(!1),this.work.recLimitUpd=!1)),this.work.successCount==this.work.expectedCount&&this.work.reloadGroups&&(this.loadInputGroups(),this.work.reloadGroups=!1),this.work.successCount==this.work.expectedCount&&this.work.startScan&&this.scanComponent&&(this.work.startScan=!1,this.currentForm.form.markAsPristine(),this.scanComponent.startScan())):(console.log("saveObserver
error",o),this.work.startScan=!1,this.
work.errorCount++,this.currentForm.form.markAsDirty())},error:o=>{console.log("saveObserver
error",o),this.work.startScan=!1,this.work.errorCount++,this.currentForm.form.markAsDirty()}},this.quickTuneValues.forEach(o=>e.get(o.prompt).subscribe(u=>o.prompt=u)),this.loadChannels(),this.loadInputGroups()}loadChannels(){this.channelService.GetChannelInfoList({Details:!0}).subscribe(n=>{this.allChannels=n.ChannelInfoList.ChannelInfos,this.fillChannelList()})}fillChannelList(){this.sourceChannels=this.allChannels.filter(e=>e.SourceId==this.card.SourceId),this.sourceChannels.find(e=>e.ChanNum==this.card.StartChannel)||(this.card.StartChannel="")}loadInputGroups(){this.captureCardService.GetInputGroupList().subscribe(e=>{this.inputGroups=e.InputGroupList.InputGroups,this.inputGroups.forEach(n=>{if(Ju("user:")){const
s=n.InputGroupName.substring(5);-1==this.selectGroups.findIndex(r=>s==r.InputGroupName)&&this.selectGroups.push({CardInputId:0,InputGroupId:n.InputGroupId,InputGroupName:s}),n.C
ardInputId==this.card.CardId&&(this.work.inputGroupName||(this.work.inputGroupName=s,this.work.orgInputGroupName=s),this.orgInputGroupIds.push(n.InputGroupId))}})})}ngOnInit(){this.work.isEncoder=this.preEncodedTypes.indexOf(this.card.CardType)<0,this.work.isUnscanable=this.unscanableTypes.indexOf(this.card.CardType)>=0,this.work.hasTuner=this.hasTunerTypes.indexOf(this.card.CardType)>=0,(this.work.isEncoder||this.work.isUnscanable)&&(this.work.hasTuner||"EXTERNAL"==this.card.CardType)&&(this.work.showPresetTuner=!0),"DVB"==this.card.CardType&&this.loadDiseqc(),this.card.DisplayName||(this.card.DisplayName="Input
"+this.card.CardId),this.captureCardService.GetCaptureDeviceList(this.card.CardType).subscribe({next:e=>{this.captureDeviceList=e,this.setupDevice(),this.deviceFree.next(!0)},error:e=>{console.log("GetCaptureDeviceList",e),this.work.errorCount++}})}setupDevice(){if(this.card.VideoDevice){let
e=this.captureDeviceList.CaptureDeviceList.CaptureDevices.find(n=>n.VideoDevice==th
is.card.VideoDevice);e?this.currentDevice=e:(this.currentDevice={VideoDevice:this.card.VideoDevice,FrontendName:this.messages.devNotExist,InputNames:["MPEG2TS"]},this.captureDeviceList.CaptureDeviceList.CaptureDevices.push(this.currentDevice))}this.currentDevice&&this.card.InputName&&(this.currentDevice.InputNames.includes(this.card.InputName)||this.currentDevice.InputNames.push(this.card.InputName),this.currentDevice.InputNames.includes("MPEG2TS")||this.currentDevice.InputNames.push("MPEG2TS")),this.work.isReady=!0}loadDiseqc(){this.captureCardService.GetDiseqcTreeList().subscribe({next:e=>{this.diseqcTreeList=e,this.setupDiseqc()},error:e=>{console.log("GetDiseqcTreeList",e),this.work.errorCount++}})}setupDiseqc(){let
e=this.diseqcTreeList.DiseqcTreeList.DiseqcTrees.find(n=>n.DiSEqCId==this.card.DiSEqCId);if(e)switch(this.diseqcTree=e,this.diseqcTree.Type){case"switch":case"rotor":case"scr":this.captureCardService.GetDiseqcConfigList().subscribe({next:n=>{let
s=n.DiseqcConfigList.
DiseqcConfigs.find(r=>r.CardId==this.card.CardId&&r.DiSEqCId==this.card.DiSEqCId);if(this.diseqcConfig=s||{CardId:this.card.CardId,DiSEqCId:this.card.DiSEqCId,Value:""},"switch"==this.diseqcTree.Type)this.work.switchPort=Number.parseInt(this.diseqcConfig.Value)-1,Number.isNaN(this.work.switchPort)&&(this.work.switchPort=0);else
if("rotor"==this.diseqcTree.Type)this.work.rotorDegrees=Number.parseFloat(this.diseqcConfig.Value),Number.isNaN(this.work.rotorDegrees)&&(this.work.rotorDegrees=0),this.work.rotorDegrees<0?(this.work.hemisphere=-1,this.work.rotorDegrees=-this.work.rotorDegrees):this.work.hemisphere=1;else
if("scr"==this.diseqcTree.Type)switch(this.diseqcConfig.Value){case"0":this.work.scrPort="A";break;case"1":this.work.scrPort="B";break;default:this.work.scrPort=""}},error:n=>{console.log("GetDiseqcTreeList",n),this.work.errorCount++}})}}ngAfterViewInit(){this.setupService.setCurrentForm(this.currentForm),this.currentForm.form.markAsDirty(),setTimeout(()=>{this.currentForm.f
orm.markAsPristine()},0)}fetchChannels(){this.work.fetchChannelsDialog=!1;let
e={SourceId:this.card.SourceId,CardId:this.card.CardId,WaitForFinish:!0};this.work.fetchStatus=1,this.channelService.FetchChannelsFromSource(e).subscribe({next:n=>{this.work.fetchStatus=n.int>0?2:3,this.work.fetchCount=n.int,this.loadChannels()},error:n=>{console.log("fetchChannels",n),this.work.fetchStatus=3,this.work.fetchCount=0}})}saveForm(){this.work.successCount=0,this.work.errorCount=0,this.work.expectedCount=0,this.work.inputGroupName!=this.work.orgInputGroupName?this.work.inputGroupName?this.captureCardService.AddUserInputGroup(this.work.inputGroupName).subscribe({next:n=>{this.saveCard(n.int)},error:n=>{console.log("saveForm
error",n),this.work.errorCount++,this.currentForm.form.markAsDirty()}}):this.saveCard(-1):this.saveCard(0)}saveCard(e){0!=e&&(this.work.reloadGroups=!0);let
n=0;if(this.work.recLimitUpd=!1,this.cardList.CaptureCardList.CaptureCards.forEach(s=>{(s.CardId==this.card.CardId||s.P
arentId==this.card.CardId)&&(this.captureCardService.UpdateCaptureCard(s.CardId,"inputname",s.InputName=this.card.InputName).subscribe(this.saveObserver),this.captureCardService.UpdateCaptureCard(s.CardId,"displayname",s.DisplayName=this.card.DisplayName).subscribe(this.saveObserver),this.captureCardService.UpdateCaptureCard(s.CardId,"sourceid",String(s.SourceId=this.card.SourceId)).subscribe(this.saveObserver),this.captureCardService.UpdateCaptureCard(s.CardId,"quicktune",String(s.Quicktune=this.card.Quicktune)).subscribe(this.saveObserver),this.captureCardService.UpdateCaptureCard(s.CardId,"dishnet_eit",(s.DishnetEIT=this.card.DishnetEIT)?"1":"0").subscribe(this.saveObserver),this.card.StartChannel&&(this.captureCardService.UpdateCaptureCard(s.CardId,"startchan",s.StartChannel=this.card.StartChannel).subscribe(this.saveObserver),this.work.expectedCount++),this.captureCardService.UpdateCaptureCard(s.CardId,"recpriority",String(s.RecPriority=this.card.RecPriority)).subscribe(this.sa
veObserver),this.captureCardService.UpdateCaptureCard(s.CardId,"livetvorder",String(s.LiveTVOrder=this.card.LiveTVOrder)).subscribe(this.saveObserver),this.captureCardService.UpdateCaptureCard(s.CardId,"reclimit",String(s.RecLimit=this.card.RecLimit)).subscribe(this.saveObserver),this.card.SchedGroup&&this.card.CardId!=s.CardId?(s.SchedGroup=!1,s.SchedOrder=0):(s.SchedGroup=this.card.SchedGroup,s.SchedOrder=this.card.SchedOrder),this.captureCardService.UpdateCaptureCard(s.CardId,"schedgroup",s.SchedGroup?"1":"0").subscribe(this.saveObserver),this.captureCardService.UpdateCaptureCard(s.CardId,"schedorder",String(s.SchedOrder)).subscribe(this.saveObserver),this.work.expectedCount+=10,0!=e&&this.orgInputGroupIds.forEach(r=>{this.captureCardService.UnlinkInputGroup(s.CardId,r).subscribe(this.saveObserver),this.work.expectedCount++}),e>0&&(this.captureCardService.LinkInputGroup(s.CardId,e).subscribe(this.saveObserver),this.work.expectedCount++),n++)}),n!=this.card.RecLimit&&(this.work.re
cLimitUpd=!0),this.diseqcConfig){let
s="";if("switch"==this.diseqcTree.Type)s=(this.work.switchPort-1).toString();else
if("rotor"==this.diseqcTree.Type)s=(this.work.rotorDegrees*this.work.hemisphere).toString();else
if("scr"==this.diseqcTree.Type)switch(this.work.scrPort){case"A":default:s="0";break;case"B":s="1"}s!=this.diseqcConfig.Value&&(this.diseqcConfig.Value=s,this.captureCardService.DeleteDiseqcConfig(this.card.CardId).subscribe(r=>{this.captureCardService.AddDiseqcConfig(this.diseqcConfig).subscribe(this.saveObserver)}))}}}return
t.\u0275fac=function(e){return
new(e||t)(D(Oe),D(Or),D(Gt),D(Me))},t.\u0275cmp=z({type:t,selectors:[["app-iconnection"]],viewQuery:function(e,n){if(1&e&&W(une,5),2&e){let
s;V(s=B())&&(n.currentForm=s.first)}},inputs:{card:"card",cardList:"cardList",videoSourceLookup:"videoSourceLookup",videoSourceList:"videoSourceList",parentComponent:"parentComponent"},decls:9,vars:0,consts:[["name","connform",1,"ml-3","mr-3"],["connform","ngForm"],["top",""],[1,"
m-5"],["pTemplate","title"],["pTemplate","subtitle"],["pTemplate","content"],["pTemplate","footer"],[1,"grid"],[1,"mb-4","w-full"],[3,"ngSwitch",4,"ngIf"],["class","form-group
field",4,"ngIf"],[1,"form-group","field"],["for","DisplayName",1,"label","block"],["pInputText","","id","DisplayName","name","DisplayName",1,"mb-2","form-control","w-full",3,"ngModel","ngModelChange"],["DisplayName","ngModel"],[1,"block"],["for","SourceId",1,"label","block"],["optionLabel","SourceName","optionValue","Id","name","SourceId",3,"options","ngModel","editable","maxlength","ngModelChange","onChange"],["SourceId","ngModel"],["class","mb-4
w-full",3,"legend","collapsed","toggleable",4,"ngIf"],[2,"display","flex","align-items","center"],["icon","pi
pi-download","iconPos","left",3,"label","disabled","onClick"],["header","Fetch
Channels",3,"visible","modal","draggable","resizable","visibleChange"],["for","StartChannel",1,"label","block"],["placeholder","Select
Item","optionLabel","ChanNum","optionValue","
ChanNum","scrollHeight","400px","name","StartChannel",3,"options","ngModel","editable","ngModelChange"],["StartChannel","ngModel"],[1,"mb-4","w-full",3,"legend","toggleable","collapsed"],["for","RecLimit",1,"label","block"],["name","RecLimit","id","RecLimit",3,"ngModel","showButtons","min","max","step","ngModelChange"],["inputId","SchedGroup","name","SchedGroup",1,"label","mb-2","w-full",3,"ngModel","binary","label","ngModelChange"],["DVBWaitForSeqStart","ngModel"],["for","RecPriority",1,"label","block"],["name","RecPriority","id","RecPriority",3,"ngModel","showButtons","min","max","step","ngModelChange"],["for","SchedOrder",1,"label","block"],["name","SchedOrder","id","SchedOrder",3,"ngModel","showButtons","min","max","step","ngModelChange"],["for","LiveTVOrder",1,"label","block"],["name","LiveTVOrder","id","LiveTVOrder",3,"ngModel","showButtons","min","max","step","ngModelChange"],["for","inputGroupName",1,"label","block"],["placeholder","Optional
Group Name","optionLabel","InputG
roupName","optionValue","InputGroupName","scrollHeight","400px","name","inputGroupName",3,"options","ngModel","editable","ngModelChange"],["inputGroupName","ngModel"],[3,"ngSwitch"],["class","form-group
field",4,"ngSwitchCase"],[4,"ngSwitchCase"],["for","Port",1,"label","block"],["name","Port","id","Port",3,"ngModel","showButtons","min","max","step","ngModelChange"],["for","Degrees",1,"label","block"],["name","Degrees","id","Degrees",3,"ngModel","min","max","maxFractionDigits","ngModelChange"],[1,"field-radiobutton"],["name","hemisphere","value","1","inputId","east",3,"ngModel","ngModelChange"],["for","east",1,"label","block"],["name","hemisphere","value","-1","inputId","west",3,"ngModel","ngModelChange"],["for","west",1,"label","block"],[1,"label","block"],["name","scrPort","value","A","inputId","portA",3,"ngModel","ngModelChange"],["for","portA",1,"label","block"],["name","scrPort","value","B","inputId","portB",3,"ngModel","ngModelChange"],["for","portB",1,"label","block"],["for",
"Delivery",1,"label","block"],["pInputText","","id","Delivery","name","Delivery","disabled","true",1,"mb-2","form-control","w-full",3,"ngModel","ngModelChange"],["InputName","ngModel"],["for","InputName",1,"label","block"],["name","InputName",3,"options","ngModel","ngModelChange",4,"ngIf"],["name","InputName",3,"options","ngModel","ngModelChange"],["for","ExternalCommand",1,"label","block"],["pInputText","","id","ExternalCommand","name","ExternalCommand",1,"mb-2","form-control","w-full",3,"ngModel","ngModelChange"],["ExternalCommand","ngModel"],["for","TuneChan",1,"label","block"],["pInputText","","id","TuneChan","name","TuneChan",1,"mb-2","form-control","w-full",3,"ngModel","ngModelChange"],["TuneChan","ngModel"],["for","Quicktune",1,"label","block"],["optionLabel","prompt","optionValue","value","name","Quicktune",3,"options","ngModel","editable","maxlength","ngModelChange"],["Quicktune","ngModel"],["inputId","DishnetEIT","name","DishnetEIT",1,"label","mb-2","w-full",3,"ngModel","b
inary","label","ngModelChange"],["DishnetEIT","ngModel"],[1,"mb-4","w-full",3,"legend","collapsed","toggleable"],[3,"card","cardList","iconnection","videoSourceLookup"],["icon","pi
pi-times-circle","styleClass","p-button-plain",3,"label","click"],["icon","pi
pi-check-circle","styleClass","p-button-plain",3,"label","click"],[1,"grid","nogutter"],[1,"col-12"],["severity","success",3,"text",4,"ngIf"],["severity","error",3,"text",4,"ngIf"],["icon","pi
pi-save","iconPos","left",1,"col","pr-1",3,"label","disabled","onClick"],["severity","success",3,"text"],["severity","error",3,"text"]],template:function(e,n){1&e&&(l(0,"form",0,1),k(2,"span",null,2),l(4,"p-card",3),_(5,dne,2,3,"ng-template",4),_(6,pne,0,0,"ng-template",5),_(7,kne,108,135,"ng-template",6),_(8,Rne,6,6,"ng-template",7),c()())},styles:[""]}),t})();function
Lne(t,i){if(1&t){const
e=I();l(0,"p-button",10),C("onClick",function(){return
v(e),d().displayNewDialog=!1}),m(1,"translate"),c(),l(2,"p-button",11),C("onClick",function(){
return v(e),d().newProfile()}),m(3,"translate"),c()}if(2&t){const
e=d();x("label",f(1,3,"common.cancel")),a(2),x("label",f(3,5,"common.ok")),p("disabled",e.rejectName())}}function
One(t,i){1&t&&(l(0,"div",12),k(1,"br")(2,"p-message",13),m(3,"translate"),k(4,"br"),c()),2&t&&(a(2),x("text",f(3,1,"settings.common.successful_delete")))}function
Ane(t,i){1&t&&(l(0,"div",12),k(1,"br")(2,"p-message",14),m(3,"translate"),k(4,"br"),c()),2&t&&(a(2),x("text",f(3,1,"common.networkfail")))}function
Pne(t,i){if(1&t&&(l(0,"div",18)(1,"div",19),g(2),l(3,"b"),g(4),c()()()),2&t){const
e=d(),n=e.$implicit,s=e.index,r=d();a(2),T(" ",n.Name,"
"),a(2),T("\xa0",r.dirtyMessages[s],"")}}function
Fne(t,i){if(1&t){const
e=I();l(0,"p-button",22),C("click",function(){v(e);const
s=d(2).index;return
d().displayDeleteThis[s]=!1}),m(1,"translate"),c(),l(2,"p-button",23),C("click",function(){v(e);const
s=d(2).index;return
d().deleteThis(s)}),m(3,"translate"),c()}2&t&&(x("label",f(1,2,"common.no")),a(2),x("label",f(3
,4,"common.yes")))}const
IS=function(){return{width:"50vw"}},Nne=function(t,i){return{ProfileName:t,GroupName:i}};function
Vne(t,i){if(1&t){const
e=I();l(0,"p-button",20),C("onClick",function(){v(e);const
s=d().index;return
d().displayDeleteThis[s]=!0}),m(1,"translate"),c(),l(2,"p-dialog",2),C("visibleChange",function(s){v(e);const
r=d().index;return
d().displayDeleteThis[r]=s}),m(3,"translate"),l(4,"h2"),g(5),m(6,"translate"),c(),l(7,"p"),g(8),m(9,"translate"),c(),_(10,Fne,4,6,"ng-template",5),c(),k(11,"app-recprofile",21)}if(2&t){const
e=d(),n=e.index,s=e.$implicit,r=d();x("label",f(1,14,"settings.rprofiles.delete_this")),p("disabled",!r.group.RecProfiles[n].Id||r.setupService.schedulingEnabled),a(2),q(A(23,IS)),x("header",f(3,16,"settings.rprofiles.delete_this")),p("visible",r.displayDeleteThis[n])("modal",!0)("draggable",!1)("resizable",!1),a(3),S(f(6,18,"settings.common.ru_sure")),a(3),S(Dt(9,20,"settings.rprofiles.delete_details",Ge(24,Nne,r.group.RecProfiles[n].Name,r.group.N
ame))),a(3),p("profile",s)("group",r.group)("parentComponent",r)}}function
Bne(t,i){if(1&t){const
e=I();l(0,"p-accordionTab",15),C("selectedChange",function(s){const
o=v(e).index;return
d().activeTab[o]=s}),_(1,Pne,5,2,"ng-template",16),_(2,Vne,12,27,"ng-template",17),c()}if(2&t){const
e=i.index,n=d();p("disabled",n.disabledTab[e])("selected",n.activeTab[e])}}let
ES=(()=>{class
t{constructor(e,n,s){this.captureCardService=e,this.setupService=n,this.translate=s,this.currentTab=-1,this.deletedTab=-1,this.dirtyMessages=[],this.forms=[],this.disabledTab=[],this.activeTab=[],this.readyCount=0,this.displayNewDialog=!1,this.newProfileName="",this.successCount=0,this.expectedCount=0,this.errorCount=0,this.displayDeleteThis=[],this.dirtyText="settings.common.unsaved",this.warningText="settings.common.warning",this.deletedText="settings.common.deleted",this.newText="settings.common.new",this.delObserver={next:r=>{r.bool?(this.successCount++,this.deletedTab>-1&&(this.dirtyMessages[this.deleted
Tab]=this.deletedText,this.disabledTab[this.deletedTab]=!0,this.activeTab[this.deletedTab]=!1,this.deletedTab=-1)):(this.errorCount++,this.deletedTab=-1)},error:r=>{console.error(r),this.errorCount++}},s.get(this.dirtyText).subscribe(r=>this.dirtyText=r),s.get(this.warningText).subscribe(r=>this.warningText=r),s.get(this.deletedText).subscribe(r=>this.deletedText=r),s.get(this.newText).subscribe(r=>this.newText=r)}ngOnInit(){let
e=this.parentComponent.groups.findIndex(n=>n===this.group);this.parentComponent.profileGroups[e]=this}onTabOpen(e){this.showDirty();let
n=this.setupService.getCurrentForm();null!=n&&(this.forms[e.index]=n),this.setupService.setCurrentForm(null),this.currentTab=e.index,this.dirtyMessages[this.currentTab]=""}onTabClose(e){this.showDirty(),this.currentTab=-1}showDirty(){-1==this.currentTab||this.disabledTab[this.currentTab]||(this.dirtyMessages[this.currentTab]=this.forms[this.currentTab]&&this.forms[this.currentTab].dirty?this.dirtyText:this.group.RecProfiles[
this.currentTab].Id?"":this.newText)}newProfile(){this.displayNewDialog=!1;for(let
n=0;n<this.activeTab.length;n++)this.activeTab[n]=!1;this.group.RecProfiles.push({Id:0,Name:this.newProfileName.trim(),VideoCodec:"MPEG-4",AudioCodec:"MP3",RecProfParams:[]}),this.currentTab=this.group.RecProfiles.length-1,this.showDirty()}deleteThis(e){this.errorCount=0,this.successCount=0,this.expectedCount=1,this.displayDeleteThis[e]=!1,this.deletedTab=e,this.captureCardService.DeleteRecProfile(this.group.RecProfiles[e].Id).subscribe(this.delObserver)}rejectName(){let
e=this.newProfileName.trim();return""==e||null!=this.group.RecProfiles.find(n=>n.Name==e)}confirm(e){return
oe(window.confirm(e))}canDeactivate(){let
e=this.setupService.getCurrentForm();return!(this.forms[this.currentTab]&&this.forms[this.currentTab].dirty||this.dirtyMessages.find(n=>n==this.dirtyText)||e&&e.dirty)||this.confirm(this.warningText)}allClean(){let
e=this.setupService.getCurrentForm();return!(this.forms[this.currentTab]&
&this.forms[this.currentTab].dirty||this.dirtyMessages.find(n=>n==this.dirtyText)||e&&e.dirty)}onWindowClose(e){let
n=this.setupService.getCurrentForm();(this.forms[this.currentTab]&&this.forms[this.currentTab].dirty||this.dirtyMessages.find(s=>s==this.dirtyText)||n&&n.dirty)&&(e.preventDefault(),e.returnValue=!1)}}return
t.\u0275fac=function(e){return
new(e||t)(D(Gt),D(Me),D(Oe))},t.\u0275cmp=z({type:t,selectors:[["app-profile-group"]],hostBindings:function(e,n){1&e&&C("beforeunload",function(r){return
n.onWindowClose(r)},!1,ni)},inputs:{group:"group",parentComponent:"parentComponent"},decls:19,vars:24,consts:[[1,"block","card","w-full"],["icon","pi
pi-plus-circle","styleClass","p-button-plain",3,"label","onClick"],[3,"header","visible","modal","draggable","resizable","visibleChange"],["pInputText","","id","Name","name","Name","autofocus","",1,"mb-2","form-control","w-full",3,"ngModel","ngModelChange"],["Name","ngModel"],["pTemplate","footer"],[1,"grid","nogutter"],["class","col-12
",4,"ngIf"],[1,"col-12","w-full",3,"onClose","onOpen"],[3,"disabled","selected","selectedChange",4,"ngFor","ngForOf"],["icon","pi
pi-times-circle","styleClass","p-button-plain",3,"label","onClick"],["icon","pi
pi-check-circle","styleClass","p-button-plain",3,"label","disabled","onClick"],[1,"col-12"],["severity","success",3,"text"],["severity","error",3,"text"],[3,"disabled","selected","selectedChange"],["pTemplate","header"],["pTemplate","content"],[1,"grid","w-full"],[1,"col-9","pr-1"],["styleClass","p-button-warning","icon","pi
pi-trash",3,"label","disabled","onClick"],[3,"profile","group","parentComponent"],["icon","pi
pi-times-circle","styleClass","p-button-plain",3,"label","click"],["icon","pi
pi-check-circle","styleClass","p-button-plain",3,"label","click"]],template:function(e,n){1&e&&(l(0,"div",0)(1,"h3"),g(2),m(3,"translate"),c(),l(4,"p-button",1),C("onClick",function(){return
n.displayNewDialog=!0}),m(5,"translate"),c(),l(6,"p-dialog",2),C("visibleChange",function(r){retu
rn
n.displayNewDialog=r}),m(7,"translate"),l(8,"p"),g(9),m(10,"translate"),c(),l(11,"input",3,4),C("ngModelChange",function(r){return
n.newProfileName=r}),c(),_(13,Lne,4,7,"ng-template",5),c(),l(14,"div",6),_(15,One,5,3,"div",7),_(16,Ane,5,3,"div",7),c(),l(17,"p-accordion",8),C("onClose",function(r){return
n.onTabClose(r)})("onOpen",function(r){return
n.onTabOpen(r)}),_(18,Bne,3,2,"p-accordionTab",9),c()()),2&e&&(a(2),We("",f(3,15,"settings.rprofiles.grouptitle"),"
",n.group.Name,""),a(2),x("label",f(5,17,"settings.rprofiles.new_profile")),a(2),q(A(23,IS)),x("header",f(7,19,"settings.rprofiles.new_profile")),p("visible",n.displayNewDialog)("modal",!0)("draggable",!1)("resizable",!1),a(3),S(f(10,21,"settings.rprofiles.enter_profile_name")),a(2),p("ngModel",n.newProfileName),a(4),p("ngIf",n.expectedCount&&n.successCount==n.expectedCount),a(1),p("ngIf",n.errorCount>0),a(2),p("ngForOf",n.group.RecProfiles))},styles:[""]}),t})();const
Hne=["recprofform"],qne=["top"];function Gne(t,i){if(
1&t&&(g(0),m(1,"translate")),2&t){const e=d();We("
",f(1,2,"settings.rprofiles.proftitle")," ",e.profile.Name,"
")}}function Une(t,i){}function zne(t,i){if(1&t){const
e=I();l(0,"div",12)(1,"p-checkbox",13,14),C("ngModelChange",function(s){v(e);const
r=d(2);return
r.profile.RecProfParams[r.findIx("autotranscode",!1)].Value=s}),m(3,"translate"),c(),l(4,"small",15),g(5),m(6,"translate"),c()()}if(2&t){const
e=d(2);a(1),x("label",f(3,4,"settings.rprofiles.autotranscode_label")),p("ngModel",e.profile.RecProfParams[e.findIx("autotranscode",!1)].Value)("binary",!0),a(4),T("
",f(6,6,"settings.rprofiles.autotranscode_desc")," ")}}function
jne(t,i){if(1&t){const
e=I();l(0,"div",12)(1,"label",16),g(2),m(3,"translate"),c(),l(4,"p-inputNumber",17),C("ngModelChange",function(s){v(e);const
r=d(2);return
r.profile.RecProfParams[r.findIx("width","480")].Value=s}),c(),l(5,"small",15),g(6),m(7,"translate"),c()()}if(2&t){const
e=d(2);a(2),S(f(3,7,"settings.rprofiles.width_label")),a(2),p("ngModel",e.pro
file.RecProfParams[e.findIx("width","480")].Value)("showButtons",!0)("min",160)("max",720)("step",16),a(2),T("
",f(7,9,"settings.rprofiles.width_desc")," ")}}function
$ne(t,i){if(1&t){const
e=I();l(0,"div",12)(1,"label",18),g(2),m(3,"translate"),c(),l(4,"p-inputNumber",19),C("ngModelChange",function(s){v(e);const
r=d(2);return
r.profile.RecProfParams[r.findIx("height","480")].Value=s}),c(),l(5,"small",15),g(6),m(7,"translate"),c()()}if(2&t){const
e=d(2);a(2),S(f(3,7,"settings.rprofiles.height_label")),a(2),p("ngModel",e.profile.RecProfParams[e.findIx("height","480")].Value)("showButtons",!0)("min",160)("max",480)("step",16),a(2),T("
",f(7,9,"settings.rprofiles.height_desc")," ")}}const
Ms=function(){return{minWidth:"400px"}};function Wne(t,i){if(1&t){const
e=I();l(0,"div",12)(1,"label",20),g(2),m(3,"translate"),c(),l(4,"p-dropdown",21,22),C("ngModelChange",function(s){v(e);const
r=d(2);return
r.profile.RecProfParams[r.findIx("recordingtype","all")].Value=s}),c(),l(6,"small",15),g(7)
,m(8,"translate"),c()()}if(2&t){const
e=d(2);a(2),S(f(3,8,"settings.rprofiles.recordingtype_label")),a(2),q(A(12,Ms)),p("options",e.recordingtypeOptions)("ngModel",e.profile.RecProfParams[e.findIx("recordingtype","all")].Value)("editable",!1)("maxlength",0),a(3),T("
",f(8,10,"settings.rprofiles.recordingtype_desc")," ")}}function
Kne(t,i){if(1&t){const
e=I();l(0,"div",12)(1,"p-checkbox",23,24),C("ngModelChange",function(s){v(e);const
r=d(2);return
r.profile.RecProfParams[r.findIx("recordmpts",!1)].Value=s}),m(3,"translate"),c(),l(4,"small",15),g(5),m(6,"translate"),c()()}if(2&t){const
e=d(2);a(1),x("label",f(3,4,"settings.rprofiles.recordmpts_label")),p("ngModel",e.profile.RecProfParams[e.findIx("recordmpts",!1)].Value)("binary",!0),a(4),T("
",f(6,6,"settings.rprofiles.recordmpts_desc")," ")}}function
Qne(t,i){if(1&t){const
e=I();l(0,"div",12)(1,"label",26),g(2),m(3,"translate"),c(),l(4,"p-dropdown",27,28),C("ngModelChange",function(s){return
v(e),d(3).profile.VideoCodec=s}),c(),k(6
,"small",15),c()}if(2&t){const
e=d(3);a(2),S(f(3,7,"settings.rprofiles.videocodec_label")),a(2),q(A(9,Ms)),p("options",e.params.Video)("ngModel",e.profile.VideoCodec)("editable",!1)("maxlength",0)}}function
Jne(t,i){if(1&t){const
e=I();l(0,"div",12)(1,"label",29),g(2),m(3,"translate"),c(),l(4,"p-inputNumber",30),C("ngModelChange",function(s){v(e);const
r=d(3);return
r.profile.RecProfParams[r.findIx("rtjpegquality","170")].Value=s}),c(),l(5,"small",15),g(6),m(7,"translate"),c()()}if(2&t){const
e=d(3);a(2),S(f(3,7,"settings.rprofiles.rtjpegquality_label")),a(2),p("ngModel",e.profile.RecProfParams[e.findIx("rtjpegquality","170")].Value)("showButtons",!0)("min",1)("max",255)("step",1),a(2),T("
",f(7,9,"settings.rprofiles.rtjpegquality_desc")," ")}}function
Yne(t,i){if(1&t){const
e=I();l(0,"div",12)(1,"label",31),g(2),m(3,"translate"),c(),l(4,"p-inputNumber",32),C("ngModelChange",function(s){v(e);const
r=d(3);return
r.profile.RecProfParams[r.findIx("rtjpeglumafilter","0")].Value=s}),c(),
l(5,"small",15),g(6),m(7,"translate"),c()()}if(2&t){const
e=d(3);a(2),S(f(3,7,"settings.rprofiles.rtjpeglumafilter_label")),a(2),p("ngModel",e.profile.RecProfParams[e.findIx("rtjpeglumafilter","0")].Value)("showButtons",!0)("min",0)("max",31)("step",1),a(2),T("
",f(7,9,"settings.rprofiles.rtjpegfilter_desc")," ")}}function
Zne(t,i){if(1&t){const
e=I();l(0,"div",12)(1,"label",33),g(2),m(3,"translate"),c(),l(4,"p-inputNumber",34),C("ngModelChange",function(s){v(e);const
r=d(3);return
r.profile.RecProfParams[r.findIx("rtjpegchromafilter","0")].Value=s}),c(),l(5,"small",15),g(6),m(7,"translate"),c()()}if(2&t){const
e=d(3);a(2),S(f(3,7,"settings.rprofiles.rtjpegchromafilter_label")),a(2),p("ngModel",e.profile.RecProfParams[e.findIx("rtjpegchromafilter","0")].Value)("showButtons",!0)("min",0)("max",31)("step",1),a(2),T("
",f(7,9,"settings.rprofiles.rtjpegfilter_desc")," ")}}function
Xne(t,i){if(1&t){const
e=I();l(0,"div",12)(1,"label",35),g(2),m(3,"translate"),c(),l(4,"p-inputNumber",36),
C("ngModelChange",function(s){v(e);const r=d(3);return
r.profile.RecProfParams[r.findIx("mpeg4bitrate","2200")].Value=s}),c(),l(5,"small",15),g(6),m(7,"translate"),c()()}if(2&t){const
e=d(3);a(2),S(f(3,7,"settings.rprofiles.mpeg4bitrate_label")),a(2),p("ngModel",e.profile.RecProfParams[e.findIx("mpeg4bitrate","2200")].Value)("showButtons",!0)("min",100)("max",8e3)("step",100),a(2),T("
",f(7,9,"settings.rprofiles.mpeg4bitrate_desc")," ")}}function
eie(t,i){if(1&t){const
e=I();l(0,"div",12)(1,"label",37),g(2),m(3,"translate"),c(),l(4,"p-inputNumber",38),C("ngModelChange",function(s){v(e);const
r=d(3);return
r.profile.RecProfParams[r.findIx("mpeg4maxquality","2")].Value=s}),c(),l(5,"small",15),g(6),m(7,"translate"),c()()}if(2&t){const
e=d(3);a(2),S(f(3,7,"settings.rprofiles.mpeg4maxquality_label")),a(2),p("ngModel",e.profile.RecProfParams[e.findIx("mpeg4maxquality","2")].Value)("showButtons",!0)("min",1)("max",31)("step",1),a(2),T("
",f(7,9,"settings.rprofiles.mpeg4quality_desc")," ")}
}function tie(t,i){if(1&t){const
e=I();l(0,"div",12)(1,"label",39),g(2),m(3,"translate"),c(),l(4,"p-inputNumber",40),C("ngModelChange",function(s){v(e);const
r=d(3);return
r.profile.RecProfParams[r.findIx("mpeg4minquality","15")].Value=s}),c(),l(5,"small",15),g(6),m(7,"translate"),c()()}if(2&t){const
e=d(3);a(2),S(f(3,7,"settings.rprofiles.mpeg4minquality_label")),a(2),p("ngModel",e.profile.RecProfParams[e.findIx("mpeg4minquality","15")].Value)("showButtons",!0)("min",1)("max",31)("step",1),a(2),T("
",f(7,9,"settings.rprofiles.mpeg4quality_desc")," ")}}function
nie(t,i){if(1&t){const
e=I();l(0,"div",12)(1,"label",41),g(2),m(3,"translate"),c(),l(4,"p-inputNumber",42),C("ngModelChange",function(s){v(e);const
r=d(3);return
r.profile.RecProfParams[r.findIx("hardwaremjpegquality","100")].Value=s}),c(),k(5,"small",15),c()}if(2&t){const
e=d(3);a(2),S(f(3,6,"settings.rprofiles.hardwaremjpegquality_label")),a(2),p("ngModel",e.profile.RecProfParams[e.findIx("hardwaremjpegquality","100")].Valu
e)("showButtons",!0)("min",0)("max",100)("step",1)}}const
RS=function(){return["1","2","4"]};function
iie(t,i){if(1&t){const
e=I();l(0,"div",12)(1,"label",43),g(2),m(3,"translate"),c(),l(4,"p-dropdown",44,45),C("ngModelChange",function(s){v(e);const
r=d(3);return
r.profile.RecProfParams[r.findIx("hardwaremjpeghdecimation","2")].Value=s}),c(),k(6,"small",15),c()}if(2&t){const
e=d(3);a(2),S(f(3,7,"settings.rprofiles.hardwaremjpeghdecimation_label")),a(2),q(A(9,Ms)),p("options",A(10,RS))("ngModel",e.profile.RecProfParams[e.findIx("hardwaremjpeghdecimation","2")].Value)("editable",!1)("maxlength",0)}}function
sie(t,i){if(1&t){const
e=I();l(0,"div",12)(1,"label",46),g(2),m(3,"translate"),c(),l(4,"p-dropdown",47,48),C("ngModelChange",function(s){v(e);const
r=d(3);return
r.profile.RecProfParams[r.findIx("hardwaremjpegvdecimation","2")].Value=s}),c(),k(6,"small",15),c()}if(2&t){const
e=d(3);a(2),S(f(3,7,"settings.rprofiles.hardwaremjpegvdecimation_label")),a(2),q(A(9,Ms)),p("options",A(10,R
S))("ngModel",e.profile.RecProfParams[e.findIx("hardwaremjpegvdecimation","2")].Value)("editable",!1)("maxlength",0)}}function
rie(t,i){if(1&t){const
e=I();l(0,"div",12)(1,"label",49),g(2),m(3,"translate"),c(),l(4,"p-inputNumber",50),C("ngModelChange",function(s){v(e);const
r=d(3);return
r.profile.RecProfParams[r.findIx("mpeg4qualdiff","3")].Value=s}),c(),l(5,"small",15),g(6),m(7,"translate"),c()()}if(2&t){const
e=d(3);a(2),S(f(3,7,"settings.rprofiles.mpeg4qualdiff_label")),a(2),p("ngModel",e.profile.RecProfParams[e.findIx("mpeg4qualdiff","3")].Value)("showButtons",!0)("min",1)("max",31)("step",1),a(2),T("
",f(7,9,"settings.rprofiles.mpeg4quality_desc")," ")}}function
oie(t,i){if(1&t){const
e=I();l(0,"div",12)(1,"label",51),g(2),m(3,"translate"),c(),l(4,"p-dropdown",52,53),C("ngModelChange",function(s){v(e);const
r=d(3);return
r.profile.RecProfParams[r.findIx("mpeg2streamtype","2")].Value=s}),c(),l(6,"small",15),g(7),m(8,"translate"),c()()}if(2&t){const
e=d(3);a(2),S(f(3,8,"settings
.rprofiles.mpeg2streamtype_label")),a(2),q(A(12,Ms)),p("options",e.streamTypeOptions)("ngModel",e.profile.RecProfParams[e.findIx("mpeg2streamtype","2")].Value)("editable",!1)("maxlength",0),a(3),T("
",f(8,10,"settings.rprofiles.mpeg2streamtype_desc")," ")}}const
aie=function(){return["Square","4:3","16:9","2.21:1"]};function
lie(t,i){if(1&t){const
e=I();l(0,"div",12)(1,"label",54),g(2),m(3,"translate"),c(),l(4,"p-dropdown",55,56),C("ngModelChange",function(s){v(e);const
r=d(3);return
r.profile.RecProfParams[r.findIx("mpeg2aspectratio","Square")].Value=s}),c(),l(6,"small",15),g(7),m(8,"translate"),c()()}if(2&t){const
e=d(3);a(2),S(f(3,8,"settings.rprofiles.mpeg2aspectratio_label")),a(2),q(A(12,Ms)),p("options",A(13,aie))("ngModel",e.profile.RecProfParams[e.findIx("mpeg2aspectratio","Square")].Value)("editable",!1)("maxlength",0),a(3),T("
",f(8,10,"settings.rprofiles.mpeg2aspectratio_desc"),"
")}}function cie(t,i){if(1&t){const
e=I();l(0,"div",12)(1,"label",57),g(2),m(3,"translate"),c
(),l(4,"p-inputNumber",58),C("ngModelChange",function(s){v(e);const
r=d(3);return
r.profile.RecProfParams[r.findIx("mpeg2bitrate","6000")].Value=s}),c(),l(5,"small",15),g(6),m(7,"translate"),c()()}if(2&t){const
e=d(3);a(2),S(f(3,7,"settings.rprofiles.mpeg2bitrate_label")),a(2),p("ngModel",e.profile.RecProfParams[e.findIx("mpeg2bitrate","6000")].Value)("showButtons",!0)("min",1e3)("max",16e3)("step",100),a(2),T("
",f(7,9,"settings.rprofiles.mpeg2bitrate_desc")," ")}}function
uie(t,i){if(1&t){const
e=I();l(0,"div",12)(1,"label",59),g(2),m(3,"translate"),c(),l(4,"p-inputNumber",60),C("ngModelChange",function(s){v(e);const
r=d(3);return
r.profile.RecProfParams[r.findIx("mpeg2maxbitrate","4500")].Value=s}),c(),l(5,"small",15),g(6),m(7,"translate"),c()()}if(2&t){const
e=d(3);a(2),S(f(3,7,"settings.rprofiles.mpeg2maxbitrate_label")),a(2),p("ngModel",e.profile.RecProfParams[e.findIx("mpeg2maxbitrate","4500")].Value)("showButtons",!0)("min",1e3)("max",16e3)("step",100),a(2),T("
",f(7,9,"sett
ings.rprofiles.mpeg2maxbitrate_desc")," ")}}function
die(t,i){if(1&t){const
e=I();l(0,"p-fieldset",25),m(1,"translate"),l(2,"div",12)(3,"label",61),g(4),m(5,"translate"),c(),l(6,"p-inputNumber",62),C("ngModelChange",function(s){v(e);const
r=d(3);return
r.profile.RecProfParams[r.findIx("low_mpeg4avgbitrate","4500")].Value=s}),c(),l(7,"small",15),g(8),m(9,"translate"),c()(),l(10,"div",12)(11,"label",63),g(12),m(13,"translate"),c(),l(14,"p-inputNumber",64),C("ngModelChange",function(s){v(e);const
r=d(3);return
r.profile.RecProfParams[r.findIx("low_mpeg4peakbitrate","6000")].Value=s}),c(),l(15,"small",15),g(16),m(17,"translate"),c()()()}if(2&t){const
e=d(3);x("legend",f(1,17,"settings.rprofiles.lowres_label")),p("toggleable",!0)("collapsed",!0),a(4),S(f(5,19,"settings.rprofiles.mpeg2bitrate_label")),a(2),p("ngModel",e.profile.RecProfParams[e.findIx("low_mpeg4avgbitrate","4500")].Value)("showButtons",!0)("min",1e3)("max",13500)("step",500),a(2),T("
",f(9,21,"settings.rprofiles.mpeg2bitra
te_desc"),"
"),a(4),S(f(13,23,"settings.rprofiles.mpeg2maxbitrate_label")),a(2),p("ngModel",e.profile.RecProfParams[e.findIx("low_mpeg4peakbitrate","6000")].Value)("showButtons",!0)("min",1100)("max",20200)("step",500),a(2),T("
",f(17,25,"settings.rprofiles.mpeg2maxbitrate_desc"),"
")}}function pie(t,i){if(1&t){const
e=I();l(0,"p-fieldset",25),m(1,"translate"),l(2,"div",12)(3,"label",65),g(4),m(5,"translate"),c(),l(6,"p-inputNumber",66),C("ngModelChange",function(s){v(e);const
r=d(3);return
r.profile.RecProfParams[r.findIx("medium_mpeg4avgbitrate","9000")].Value=s}),c(),l(7,"small",15),g(8),m(9,"translate"),c()(),l(10,"div",12)(11,"label",67),g(12),m(13,"translate"),c(),l(14,"p-inputNumber",68),C("ngModelChange",function(s){v(e);const
r=d(3);return
r.profile.RecProfParams[r.findIx("medium_mpeg4peakbitrate","11000")].Value=s}),c(),l(15,"small",15),g(16),m(17,"translate"),c()()()}if(2&t){const
e=d(3);x("legend",f(1,17,"settings.rprofiles.medres_label")),p("toggleable",!0)("collapsed",
!0),a(4),S(f(5,19,"settings.rprofiles.mpeg2bitrate_label")),a(2),p("ngModel",e.profile.RecProfParams[e.findIx("medium_mpeg4avgbitrate","9000")].Value)("showButtons",!0)("min",1e3)("max",13500)("step",500),a(2),T("
",f(9,21,"settings.rprofiles.mpeg2bitrate_desc"),"
"),a(4),S(f(13,23,"settings.rprofiles.mpeg2maxbitrate_label")),a(2),p("ngModel",e.profile.RecProfParams[e.findIx("medium_mpeg4peakbitrate","11000")].Value)("showButtons",!0)("min",1100)("max",20200)("step",500),a(2),T("
",f(17,25,"settings.rprofiles.mpeg2maxbitrate_desc"),"
")}}function hie(t,i){if(1&t){const
e=I();l(0,"p-fieldset",25),m(1,"translate"),l(2,"div",12)(3,"label",69),g(4),m(5,"translate"),c(),l(6,"p-inputNumber",70),C("ngModelChange",function(s){v(e);const
r=d(3);return
r.profile.RecProfParams[r.findIx("high_mpeg4avgbitrate","13500")].Value=s}),c(),l(7,"small",15),g(8),m(9,"translate"),c()(),l(10,"div",12)(11,"label",71),g(12),m(13,"translate"),c(),l(14,"p-inputNumber",72),C("ngModelChange",function(s){v(e);co
nst r=d(3);return
r.profile.RecProfParams[r.findIx("high_mpeg4peakbitrate","20200")].Value=s}),c(),l(15,"small",15),g(16),m(17,"translate"),c()()()}if(2&t){const
e=d(3);x("legend",f(1,17,"settings.rprofiles.highres_label")),p("toggleable",!0)("collapsed",!0),a(4),S(f(5,19,"settings.rprofiles.mpeg2bitrate_label")),a(2),p("ngModel",e.profile.RecProfParams[e.findIx("high_mpeg4avgbitrate","13500")].Value)("showButtons",!0)("min",1e3)("max",13500)("step",500),a(2),T("
",f(9,21,"settings.rprofiles.mpeg2bitrate_desc"),"
"),a(4),S(f(13,23,"settings.rprofiles.mpeg2maxbitrate_label")),a(2),p("ngModel",e.profile.RecProfParams[e.findIx("high_mpeg4peakbitrate","20200")].Value)("showButtons",!0)("min",1100)("max",20200)("step",500),a(2),T("
",f(17,25,"settings.rprofiles.mpeg2maxbitrate_desc"),"
")}}function mie(t,i){if(1&t){const
e=I();l(0,"div",12)(1,"p-checkbox",73,74),C("ngModelChange",function(s){v(e);const
r=d(3);return
r.profile.RecProfParams[r.findIx("scalebitrate",!0)].Value=s}),m(3,"tran
slate"),c(),l(4,"small",15),g(5),m(6,"translate"),c()()}if(2&t){const
e=d(3);a(1),x("label",f(3,4,"settings.rprofiles.scalebitrate_label")),p("ngModel",e.profile.RecProfParams[e.findIx("scalebitrate",!0)].Value)("binary",!0),a(4),T("
",f(6,6,"settings.rprofiles.scalebitrate_desc")," ")}}function
fie(t,i){if(1&t){const
e=I();l(0,"div",12)(1,"p-checkbox",75,76),C("ngModelChange",function(s){v(e);const
r=d(3);return
r.profile.RecProfParams[r.findIx("mpeg4optionvhq",!1)].Value=s}),m(3,"translate"),c(),l(4,"small",15),g(5),m(6,"translate"),c()()}if(2&t){const
e=d(3);a(1),x("label",f(3,4,"settings.rprofiles.mpeg4optionvhq_label")),p("ngModel",e.profile.RecProfParams[e.findIx("mpeg4optionvhq",!1)].Value)("binary",!0),a(4),T("
",f(6,6,"settings.rprofiles.mpeg4optionvhq_desc")," ")}}function
gie(t,i){if(1&t){const
e=I();l(0,"div",12)(1,"p-checkbox",77,78),C("ngModelChange",function(s){v(e);const
r=d(3);return
r.profile.RecProfParams[r.findIx("mpeg4option4mv",!1)].Value=s}),m(3,"translate"),c
(),l(4,"small",15),g(5),m(6,"translate"),c()()}if(2&t){const
e=d(3);a(1),x("label",f(3,4,"settings.rprofiles.mpeg4option4mv_label")),p("ngModel",e.profile.RecProfParams[e.findIx("mpeg4option4mv",!1)].Value)("binary",!0),a(4),T("
",f(6,6,"settings.rprofiles.mpeg4option4mv_desc")," ")}}function
_ie(t,i){if(1&t){const
e=I();l(0,"div",12)(1,"p-checkbox",79,80),C("ngModelChange",function(s){v(e);const
r=d(3);return
r.profile.RecProfParams[r.findIx("mpeg4optionidct",!1)].Value=s}),m(3,"translate"),c(),l(4,"small",15),g(5),m(6,"translate"),c()()}if(2&t){const
e=d(3);a(1),x("label",f(3,4,"settings.rprofiles.mpeg4optionidct_label")),p("ngModel",e.profile.RecProfParams[e.findIx("mpeg4optionidct",!1)].Value)("binary",!0),a(4),T("
",f(6,6,"settings.rprofiles.mpeg4optionidct_desc")," ")}}function
bie(t,i){if(1&t){const
e=I();l(0,"div",12)(1,"p-checkbox",81,82),C("ngModelChange",function(s){v(e);const
r=d(3);return
r.profile.RecProfParams[r.findIx("mpeg4optionime",!1)].Value=s}),m(3,"translate"),
c(),l(4,"small",15),g(5),m(6,"translate"),c()()}if(2&t){const
e=d(3);a(1),x("label",f(3,4,"settings.rprofiles.mpeg4optionime_label")),p("ngModel",e.profile.RecProfParams[e.findIx("mpeg4optionime",!1)].Value)("binary",!0),a(4),T("
",f(6,6,"settings.rprofiles.mpeg4optionime_desc")," ")}}function
vie(t,i){if(1&t){const
e=I();l(0,"div",12)(1,"label",83),g(2),m(3,"translate"),c(),l(4,"p-inputNumber",84),C("ngModelChange",function(s){v(e);const
r=d(3);return
r.profile.RecProfParams[r.findIx("encodingthreadcount","1")].Value=s}),c(),l(5,"small",15),g(6),m(7,"translate"),c()()}if(2&t){const
e=d(3);a(2),S(f(3,7,"settings.rprofiles.encodingthreadcount_label")),a(2),p("ngModel",e.profile.RecProfParams[e.findIx("encodingthreadcount","1")].Value)("showButtons",!0)("min",1)("max",8)("step",1),a(2),T("
",f(7,9,"settings.rprofiles.encodingthreadcount_desc"),"
")}}function
Cie(t,i){if(1&t&&(l(0,"p-fieldset",25),m(1,"translate"),_(2,Qne,7,10,"div",10),_(3,Jne,8,11,"div",10),_(4,Yne,8,11,"div",10),_(5
,Zne,8,11,"div",10),_(6,Xne,8,11,"div",10),_(7,eie,8,11,"div",10),_(8,tie,8,11,"div",10),_(9,nie,6,8,"div",10),_(10,iie,7,11,"div",10),_(11,sie,7,11,"div",10),_(12,rie,8,11,"div",10),_(13,oie,9,13,"div",10),_(14,lie,9,14,"div",10),_(15,cie,8,11,"div",10),_(16,uie,8,11,"div",10),_(17,die,18,27,"p-fieldset",11),_(18,pie,18,27,"p-fieldset",11),_(19,hie,18,27,"p-fieldset",11),_(20,mie,7,8,"div",10),_(21,fie,7,8,"div",10),_(22,gie,7,8,"div",10),_(23,_ie,7,8,"div",10),_(24,bie,7,8,"div",10),_(25,vie,8,11,"div",10),c()),2&t){const
e=d(2);x("legend",f(1,27,"settings.rprofiles.video_label")),p("toggleable",!0)("collapsed",!0),a(2),p("ngIf",e.params.Video.length>0),a(1),p("ngIf","RTjpeg"==e.profile.VideoCodec),a(1),p("ngIf","RTjpeg"==e.profile.VideoCodec),a(1),p("ngIf","RTjpeg"==e.profile.VideoCodec),a(1),p("ngIf","MPEG-4"==e.profile.VideoCodec),a(1),p("ngIf","MPEG-4"==e.profile.VideoCodec),a(1),p("ngIf","MPEG-4"==e.profile.VideoCodec),a(1),p("ngIf","Hardware
MJPEG"==e.profile.VideoCodec),a(1
),p("ngIf","Hardware
MJPEG"==e.profile.VideoCodec),a(1),p("ngIf","Hardware
MJPEG"==e.profile.VideoCodec),a(1),p("ngIf","MPEG-4"==e.profile.VideoCodec),a(1),p("ngIf","MPEG-2
Hardware Encoder"==e.profile.VideoCodec),a(1),p("ngIf","MPEG-2
Hardware
Encoder"==e.profile.VideoCodec),a(1),p("ngIf","MPEG-2"==e.profile.VideoCodec||"MPEG-2
Hardware Encoder"==e.profile.VideoCodec),a(1),p("ngIf","MPEG-2
Hardware Encoder"==e.profile.VideoCodec),a(1),p("ngIf","MPEG-4 AVC
Hardware Encoder"==e.profile.VideoCodec),a(1),p("ngIf","MPEG-4 AVC
Hardware Encoder"==e.profile.VideoCodec),a(1),p("ngIf","MPEG-4 AVC
Hardware
Encoder"==e.profile.VideoCodec),a(1),p("ngIf","MPEG-4"==e.profile.VideoCodec||"MPEG-2"==e.profile.VideoCodec),a(1),p("ngIf","MPEG-4"==e.profile.VideoCodec),a(1),p("ngIf","MPEG-4"==e.profile.VideoCodec),a(1),p("ngIf","MPEG-4"==e.profile.VideoCodec),a(1),p("ngIf","MPEG-4"==e.profile.VideoCodec),a(1),p("ngIf","MPEG-4"==e.profile.VideoCodec||"MPEG-2"==e.profile.VideoCodec)}}function
yie(t,i){if
(1&t){const
e=I();l(0,"div",12)(1,"label",85),g(2),m(3,"translate"),c(),l(4,"p-dropdown",86,87),C("ngModelChange",function(s){return
v(e),d(3).profile.AudioCodec=s}),c(),k(6,"small",15),c()}if(2&t){const
e=d(3);a(2),S(f(3,7,"settings.rprofiles.audiocodec_label")),a(2),q(A(9,Ms)),p("options",e.params.Audio)("ngModel",e.profile.AudioCodec)("editable",!1)("maxlength",0)}}function
wie(t,i){if(1&t){const
e=I();l(0,"div",12)(1,"label",88),g(2),m(3,"translate"),c(),l(4,"p-dropdown",89,90),C("ngModelChange",function(s){v(e);const
r=d(3);return
r.profile.RecProfParams[r.findIx("samplerate","32000")].Value=s}),c(),l(6,"small",15),g(7),m(8,"translate"),c()()}if(2&t){const
e=d(3);a(2),S(f(3,8,"settings.rprofiles.samplerate_label")),a(2),q(A(12,Ms)),p("options",e.samplerateOptions)("ngModel",e.profile.RecProfParams[e.findIx("samplerate","32000")].Value)("editable",!1)("maxlength",0),a(3),T("
",f(8,10,"settings.rprofiles.samplerate_desc")," ")}}function
Tie(t,i){if(1&t){const e=I();l(0,"div",12)(
1,"label",91),g(2),m(3,"translate"),c(),l(4,"p-dropdown",92,93),C("ngModelChange",function(s){v(e);const
r=d(3);return
r.profile.RecProfParams[r.findIx("mpeg2language","32000")].Value=s}),c(),l(6,"small",15),g(7),m(8,"translate"),c()()}if(2&t){const
e=d(3);a(2),S(f(3,8,"settings.rprofiles.mpeg2language_label")),a(2),q(A(12,Ms)),p("options",e.mpeg2languageOptions)("ngModel",e.profile.RecProfParams[e.findIx("mpeg2language","32000")].Value)("editable",!1)("maxlength",0),a(3),T("
",f(8,10,"settings.rprofiles.mpeg2language_desc")," ")}}function
Sie(t,i){if(1&t){const
e=I();l(0,"div",12)(1,"label",94),g(2),m(3,"translate"),c(),l(4,"p-inputNumber",95),C("ngModelChange",function(s){v(e);const
r=d(3);return
r.profile.RecProfParams[r.findIx("mp3quality","1")].Value=s}),c(),l(5,"small",15),g(6),m(7,"translate"),c()()}if(2&t){const
e=d(3);a(2),S(f(3,7,"settings.rprofiles.mp3quality_label")),a(2),p("ngModel",e.profile.RecProfParams[e.findIx("mp3quality","1")].Value)("showButtons",!0)("min",1)("m
ax",9)("step",1),a(2),T("
",f(7,9,"settings.rprofiles.mp3quality_desc")," ")}}function
xie(t,i){if(1&t){const
e=I();l(0,"div",12)(1,"label",96),g(2),m(3,"translate"),c(),l(4,"p-inputNumber",97),C("ngModelChange",function(s){v(e);const
r=d(3);return
r.profile.RecProfParams[r.findIx("volume","90")].Value=s}),c(),l(5,"small",15),g(6),m(7,"translate"),c()()}if(2&t){const
e=d(3);a(2),S(f(3,7,"settings.rprofiles.volume_label")),a(2),p("ngModel",e.profile.RecProfParams[e.findIx("volume","90")].Value)("showButtons",!0)("min",0)("max",100)("step",1),a(2),T("
",f(7,9,"settings.rprofiles.volume_desc")," ")}}function
Die(t,i){if(1&t){const
e=I();l(0,"div",12)(1,"label",98),g(2),m(3,"translate"),c(),l(4,"p-inputNumber",99),C("ngModelChange",function(s){v(e);const
r=d(3);return
r.profile.RecProfParams[r.findIx("mpeg2audvolume","90")].Value=s}),c(),l(5,"small",15),g(6),m(7,"translate"),c()()}if(2&t){const
e=d(3);a(2),S(f(3,7,"settings.rprofiles.volume_label")),a(2),p("ngModel",e.profile.RecProfPar
ams[e.findIx("mpeg2audvolume","90")].Value)("showButtons",!0)("min",0)("max",100)("step",1),a(2),T("
",f(7,9,"settings.rprofiles.mpeg2audvolume_desc")," ")}}function
Mie(t,i){if(1&t&&(l(0,"p-fieldset",25),m(1,"translate"),_(2,yie,7,10,"div",10),_(3,wie,9,13,"div",10),_(4,Tie,9,13,"div",10),_(5,Sie,8,11,"div",10),_(6,xie,8,11,"div",10),_(7,Die,8,11,"div",10),c()),2&t){const
e=d(2);x("legend",f(1,9,"settings.rprofiles.audio_label")),p("toggleable",!0)("collapsed",!0),a(2),p("ngIf",e.params.Audio.length>0),a(1),p("ngIf","MP3"==e.profile.AudioCodec||"MPEG-2
Hardware
Encoder"==e.profile.AudioCodec||"Uncompressed"==e.profile.AudioCodec),a(1),p("ngIf","MPEG-2
Hardware
Encoder"==e.profile.AudioCodec),a(1),p("ngIf","MP3"==e.profile.AudioCodec),a(1),p("ngIf","MP3"==e.profile.AudioCodec||"Uncompressed"==e.profile.AudioCodec),a(1),p("ngIf","MPEG-2
Hardware Encoder"==e.profile.AudioCodec)}}function
kie(t,i){if(1&t&&(l(0,"div",8)(1,"div",9),_(2,zne,7,8,"div",10),_(3,jne,8,11,"div",10),_(4,$ne,8,1
1,"div",10),_(5,Wne,9,13,"div",10),_(6,Kne,7,8,"div",10),_(7,Cie,26,29,"p-fieldset",11),_(8,Mie,8,11,"p-fieldset",11),c()()),2&t){const
e=d();a(2),p("ngIf",e.params.Param.includes("autotranscode")),a(1),p("ngIf",e.params.Param.includes("width")),a(1),p("ngIf",e.params.Param.includes("height")),a(1),p("ngIf",e.params.Param.includes("recordingtype")),a(1),p("ngIf",e.params.Param.includes("recordmpts")),a(1),p("ngIf",e.params.Video.length>0),a(1),p("ngIf",e.params.Audio.length>0)}}function
Iie(t,i){1&t&&(k(0,"p-message",105),m(1,"translate")),2&t&&x("text",f(1,1,"common.savesuccess"))}function
Eie(t,i){1&t&&(k(0,"p-message",106),m(1,"translate")),2&t&&x("text",f(1,1,"common.networkfail"))}function
Rie(t,i){if(1&t){const
e=I();l(0,"div",100)(1,"div",101),_(2,Iie,2,3,"p-message",102),_(3,Eie,2,3,"p-message",103),c(),l(4,"p-button",104),C("onClick",function(){v(e);const
s=d(),r=F(1);return
s.saveForm(1),r.form.markAsPristine()}),m(5,"translate"),c()()}if(2&t){const
e=d(),n=F(1);a(2),p("ng
If",e.successCount>0&&0==e.errorCount&&!n.dirty),a(1),p("ngIf",e.errorCount>0),a(1),x("label",f(5,4,"common.save")),p("disabled",!n.dirty||e.setupService.schedulingEnabled)}}let
Lie=(()=>{class
t{constructor(e,n,s){this.translate=e,this.captureCardService=n,this.setupService=s,this.successCount=0,this.errorCount=0,this.expectedCount=0,this.paramList=[{CardType:"V4L",Param:["autotranscode","height","width"],Video:["RTjpeg","MPEG-4"],Audio:["MP3","Uncompressed"]},{CardType:"MPEG",Param:["autotranscode","height","width"],Video:["MPEG-2
Hardware Encoder"],Audio:["MPEG-2 Hardware
Encoder"]},{CardType:"MJPEG",Param:["autotranscode","height","width"],Video:["Hardware
MJPEG"],Audio:["MP3","Uncompressed"]},{CardType:"HDTV",Param:["autotranscode","height","width"],Video:["RTjpeg","MPEG-4"],Audio:["MP3","Uncompressed"]},{CardType:"DVB",Param:["autotranscode","recordingtype","recordmpts"],Video:[],Audio:[]},{CardType:"FIREWIRE",Param:["autotranscode"],Video:[],Audio:[]},{CardType:"GO7007",Param
:["autotranscode","height","width"],Video:["MPEG-4","MPEG-2"],Audio:["MP3","Uncompressed"]},{CardType:"IMPORT",Param:["autotranscode"],Video:[],Audio:[]},{CardType:"FREEBOX",Param:["autotranscode","recordmpts"],Video:[],Audio:[]},{CardType:"HDHOMERUN",Param:["autotranscode","recordingtype","recordmpts"],Video:[],Audio:[]},{CardType:"CRC_IP",Param:["autotranscode","height","width"],Video:["RTjpeg","MPEG-4"],Audio:["MP3","Uncompressed"]},{CardType:"HDPVR",Param:["autotranscode"],Video:["MPEG-4
AVC Hardware Encoder"],Audio:["AC3 Hardware Encoder","AAC Hardware
Encoder"]},{CardType:"ASI",Param:["autotranscode","recordmpts"],Video:[],Audio:[]},{CardType:"OCUR",Param:["autotranscode","height","width"],Video:["RTjpeg","MPEG-4"],Audio:["MP3","Uncompressed"]},{CardType:"CETON",Param:["autotranscode","recordmpts"],Video:[],Audio:[]},{CardType:"VBOX",Param:["autotranscode","recordmpts"],Video:[],Audio:[]},{CardType:"SATIP",Param:["autotranscode","recordingtype","recordmpts"],Video:[],Audio:[]}
,{CardType:"V4L2:uvcvideo",Param:["autotranscode","height","width"],Video:["V4L2:MPEG-2
Video"],Audio:["V4L2:MPEG-1/2 Layer II
encoding"]},{CardType:"TRANSCODE",Param:["autotranscode","height","width"],Video:["RTjpeg","MPEG-4"],Audio:["MP3","Uncompressed"]}],this.params={CardType:"",Param:[""],Video:[""],Audio:[""]},this.videoParamList=[{Codec:"RTjpeg",Param:["rtjpegquality","rtjpeglumafilter","rtjpegchromafilter"]},{Codec:"MPEG-4",Param:["mpeg4bitrate","mpeg4maxquality","mpeg4minquality","mpeg4qualdiff","scalebitrate","mpeg4optionvhq","mpeg4option4mv","mpeg4optionidct","mpeg4optionime","encodingthreadcount"]},{Codec:"MPEG-2",Param:["mpeg2bitrate","scalebitrate","encodingthreadcount"]},{Codec:"Hardware
MJPEG",Param:["hardwaremjpegquality","hardwaremjpeghdecimation","hardwaremjpegvdecimation"]},{Codec:"MPEG-2
Hardware
Encoder",Param:["mpeg2streamtype","mpeg2aspectratio","mpeg2bitrate","mpeg2maxbitrate"]},{Codec:"MPEG-4
AVC Hardware Encoder",Param:["low_mpeg4avgbitrate","low_mpeg4peak
bitrate","medium_mpeg4avgbitrate","medium_mpeg4peakbitrate","high_mpeg4avgbitrate","high_mpeg4peakbitrate"]},{Codec:"V4L2:MPEG-2
Video",Param:[]}],this.audioParamList=[{Codec:"MP3",Param:["samplerate","mp3quality","volume"]},{Codec:"MPEG-2
Hardware
Encoder",Param:["samplerate","mpeg2language","mpeg2audvolume"]},{Codec:"Uncompressed",Param:["samplerate","volume"]}],this.recordingtypeOptions=[{Name:"settings.rprofiles.rectype_normal",Value:"all"},{Name:"settings.rprofiles.rectype_tv",Value:"tv"},{Name:"settings.rprofiles.rectype_audio",Value:"audio"}],this.samplerateOptions=["32000","44100","48000"],this.streamTypeOptions=["MPEG-2
PS","MPEG-2 TS","MPEG-1 VCD","PES AV","PES
V","PES A","DVD","DVD-Special 1","DVD-Special
2"],this.mpeg2languageOptions=[{Name:"settings.rprofiles.lang_main",Value:"0"},{Name:"settings.rprofiles.lang_sap",Value:"1"},{Name:"settings.rprofiles.lang_dual",Value:"2"}],this.saveObserver={next:r=>{this.profile.Id&&r.bool?this.successCount++:!this.profile.Id&&r.int?
(this.successCount++,this.profile.Id=r.int,this.saveForm(2)):(console.log("saveObserver
error",r),this.errorCount++,this.currentForm.form.markAsDirty())},error:r=>{console.log("saveObserver
error",r),this.errorCount++,this.currentForm.form.markAsDirty()}},this.recordingtypeOptions.forEach(r=>{e.get(r.Name).subscribe(o=>r.Name=o)}),this.mpeg2languageOptions.forEach(r=>{e.get(r.Name).subscribe(o=>r.Name=o)})}ngOnInit(){let
e=this.paramList.find(n=>n.CardType==this.group.CardType);e&&(this.params=e)}ngAfterViewInit(){this.setupService.setCurrentForm(this.currentForm),this.topElement.nativeElement.scrollIntoView({behavior:"smooth",block:"start"})}findIx(e,n){let
s=this.profile.RecProfParams.findIndex(r=>r.Name==e);return-1==s?s=this.profile.RecProfParams.push({Name:e,Value:n})-1:"boolean"==typeof
n&&"string"==typeof
this.profile.RecProfParams[s].Value&&(this.profile.RecProfParams[s].Value="1"==this.profile.RecProfParams[s].Value),s}saveForm(e){switch(e){case
1:if(this.successCount=0,thi
s.errorCount=0,this.expectedCount=0,this.profile.Id<=0)return
this.captureCardService.AddRecProfile(this.group.Id,this.profile.Name,this.profile.VideoCodec,this.profile.AudioCodec).subscribe(this.saveObserver),void
this.expectedCount++;this.captureCardService.UpdateRecProfile(this.profile.Id,this.profile.VideoCodec,this.profile.AudioCodec).subscribe(this.saveObserver),this.expectedCount++;case
2:this.saveParams(this.params.Param);let
n=this.videoParamList.find(r=>r.Codec==this.profile.VideoCodec);n?this.saveParams(n.Param):(console.log("ERROR
videoparams not found"),this.errorCount++,this.currentForm.form.markAsDirty());let
s=this.audioParamList.find(r=>r.Codec==this.profile.AudioCodec);s?this.saveParams(s.Param):(console.log("ERROR
audioparams not
found"),this.errorCount++,this.currentForm.form.markAsDirty())}}saveParams(e){e.forEach(n=>{let
s=this.profile.RecProfParams[this.findIx(n,"0")].Value;s="boolean"==typeof
s?s?"1":"0":s.toString(),this.captureCardService.UpdateRecProfilePa
ram(this.profile.Id,n,s).subscribe(this.saveObserver),this.expectedCount++})}}return
t.\u0275fac=function(e){return
new(e||t)(D(Oe),D(Gt),D(Me))},t.\u0275cmp=z({type:t,selectors:[["app-recprofile"]],viewQuery:function(e,n){if(1&e&&(W(Hne,5),W(qne,5)),2&e){let
s;V(s=B())&&(n.currentForm=s.first),V(s=B())&&(n.topElement=s.first)}},inputs:{profile:"profile",group:"group",parentComponent:"parentComponent"},decls:9,vars:0,consts:[["name","recprofform",1,"ml-3","mr-3"],["recprofform","ngForm"],["top",""],[1,"m-5"],["pTemplate","title"],["pTemplate","subtitle"],["pTemplate","content"],["pTemplate","footer"],[1,"grid"],[1,"mb-4","w-full"],["class","form-group
field",4,"ngIf"],["class","mb-4
w-full",3,"legend","toggleable","collapsed",4,"ngIf"],[1,"form-group","field"],["inputId","autotranscode","name","autotranscode",1,"label","mb-2","w-full",3,"ngModel","binary","label","ngModelChange"],["autotranscode","ngModel"],[1,"block"],["for","width",1,"label","block"],["name","width","id","width",3
,"ngModel","showButtons","min","max","step","ngModelChange"],["for","height",1,"label","block"],["name","height","id","height",3,"ngModel","showButtons","min","max","step","ngModelChange"],["for","recordingtype",1,"label","block"],["optionLabel","Name","optionValue","Value","name","recordingtype",3,"options","ngModel","editable","maxlength","ngModelChange"],["recordingtype","ngModel"],["inputId","recordmpts","name","recordmpts",1,"label","mb-2","w-full",3,"ngModel","binary","label","ngModelChange"],["recordmpts","ngModel"],[1,"mb-4","w-full",3,"legend","toggleable","collapsed"],["for","VideoCodec",1,"label","block"],["name","VideoCodec",3,"options","ngModel","editable","maxlength","ngModelChange"],["VideoCodec","ngModel"],["for","rtjpegquality",1,"label","block"],["name","rtjpegquality","id","rtjpegquality",3,"ngModel","showButtons","min","max","step","ngModelChange"],["for","rtjpeglumafilter",1,"label","block"],["name","rtjpeglumafilter","id","rtjpeglumafilter",3,"ngModel","showBut
tons","min","max","step","ngModelChange"],["for","rtjpegchromafilter",1,"label","block"],["name","rtjpegchromafilter","id","rtjpegchromafilter",3,"ngModel","showButtons","min","max","step","ngModelChange"],["for","mpeg4bitrate",1,"label","block"],["name","mpeg4bitrate","id","mpeg4bitrate",3,"ngModel","showButtons","min","max","step","ngModelChange"],["for","mpeg4maxquality",1,"label","block"],["name","mpeg4maxquality","id","mpeg4maxquality",3,"ngModel","showButtons","min","max","step","ngModelChange"],["for","mpeg4minquality",1,"label","block"],["name","mpeg4minquality","id","mpeg4minquality",3,"ngModel","showButtons","min","max","step","ngModelChange"],["for","hardwaremjpegquality",1,"label","block"],["name","hardwaremjpegquality","id","hardwaremjpegquality",3,"ngModel","showButtons","min","max","step","ngModelChange"],["for","hardwaremjpeghdecimation",1,"label","block"],["name","hardwaremjpeghdecimation",3,"options","ngModel","editable","maxlength","ngModelChange"],["hardwaremjpeg
hdecimation","ngModel"],["for","hardwaremjpegvdecimation",1,"label","block"],["name","hardwaremjpegvdecimation",3,"options","ngModel","editable","maxlength","ngModelChange"],["hardwaremjpegvdecimation","ngModel"],["for","mpeg4qualdiff",1,"label","block"],["name","mpeg4qualdiff","id","mpeg4qualdiff",3,"ngModel","showButtons","min","max","step","ngModelChange"],["for","mpeg2streamtype",1,"label","block"],["name","mpeg2streamtype",3,"options","ngModel","editable","maxlength","ngModelChange"],["mpeg2streamtype","ngModel"],["for","mpeg2aspectratio",1,"label","block"],["name","mpeg2aspectratio",3,"options","ngModel","editable","maxlength","ngModelChange"],["mpeg2aspectratio","ngModel"],["for","mpeg2bitrate",1,"label","block"],["name","mpeg2bitrate","id","mpeg2bitrate",3,"ngModel","showButtons","min","max","step","ngModelChange"],["for","mpeg2maxbitrate",1,"label","block"],["name","mpeg2maxbitrate","id","mpeg2maxbitrate",3,"ngModel","showButtons","min","max","step","ngModelChange"],["for",
"low_mpeg4avgbitrate",1,"label","block"],["name","low_mpeg4avgbitrate","id","low_mpeg4avgbitrate",3,"ngModel","showButtons","min","max","step","ngModelChange"],["for","low_mpeg4peakbitrate",1,"label","block"],["name","low_mpeg4peakbitrate","id","low_mpeg4peakbitrate",3,"ngModel","showButtons","min","max","step","ngModelChange"],["for","medium_mpeg4avgbitrate",1,"label","block"],["name","medium_mpeg4avgbitrate","id","medium_mpeg4avgbitrate",3,"ngModel","showButtons","min","max","step","ngModelChange"],["for","medium_mpeg4peakbitrate",1,"label","block"],["name","medium_mpeg4peakbitrate","id","medium_mpeg4peakbitrate",3,"ngModel","showButtons","min","max","step","ngModelChange"],["for","high_mpeg4avgbitrate",1,"label","block"],["name","high_mpeg4avgbitrate","id","high_mpeg4avgbitrate",3,"ngModel","showButtons","min","max","step","ngModelChange"],["for","high_mpeg4peakbitrate",1,"label","block"],["name","high_mpeg4peakbitrate","id","high_mpeg4peakbitrate",3,"ngModel","showButtons","min"
,"max","step","ngModelChange"],["inputId","scalebitrate","name","scalebitrate",1,"label","mb-2","w-full",3,"ngModel","binary","label","ngModelChange"],["scalebitrate","ngModel"],["inputId","mpeg4optionvhq","name","mpeg4optionvhq",1,"label","mb-2","w-full",3,"ngModel","binary","label","ngModelChange"],["mpeg4optionvhq","ngModel"],["inputId","mpeg4option4mv","name","mpeg4option4mv",1,"label","mb-2","w-full",3,"ngModel","binary","label","ngModelChange"],["mpeg4option4mv","ngModel"],["inputId","mpeg4optionidct","name","mpeg4optionidct",1,"label","mb-2","w-full",3,"ngModel","binary","label","ngModelChange"],["mpeg4optionidct","ngModel"],["inputId","mpeg4optionime","name","mpeg4optionime",1,"label","mb-2","w-full",3,"ngModel","binary","label","ngModelChange"],["mpeg4optionime","ngModel"],["for","encodingthreadcount",1,"label","block"],["name","encodingthreadcount","id","encodingthreadcount",3,"ngModel","showButtons","min","max","step","ngModelChange"],["for","AudioCodec",1,"label","block"
],["name","AudioCodec",3,"options","ngModel","editable","maxlength","ngModelChange"],["AudioCodec","ngModel"],["for","samplerate",1,"label","block"],["name","samplerate",3,"options","ngModel","editable","maxlength","ngModelChange"],["samplerate","ngModel"],["for","mpeg2language",1,"label","block"],["optionLabel","Name","optionValue","Value","name","mpeg2language",3,"options","ngModel","editable","maxlength","ngModelChange"],["mpeg2language","ngModel"],["for","mp3quality",1,"label","block"],["name","mp3quality","id","mp3quality",3,"ngModel","showButtons","min","max","step","ngModelChange"],["for","volume",1,"label","block"],["name","volume","id","volume",3,"ngModel","showButtons","min","max","step","ngModelChange"],["for","mpeg2audvolume",1,"label","block"],["name","mpeg2audvolume","id","mpeg2audvolume",3,"ngModel","showButtons","min","max","step","ngModelChange"],[1,"grid","nogutter"],[1,"col-12"],["severity","success",3,"text",4,"ngIf"],["severity","error",3,"text",4,"ngIf"],["icon
","pi
pi-save","iconPos","left",1,"col","pr-1",3,"label","disabled","onClick"],["severity","success",3,"text"],["severity","error",3,"text"]],template:function(e,n){1&e&&(l(0,"form",0,1),k(2,"span",null,2),l(4,"p-card",3),_(5,Gne,2,4,"ng-template",4),_(6,Une,0,0,"ng-template",5),_(7,kie,9,7,"ng-template",6),_(8,Rie,6,6,"ng-template",7),c()())},directives:[ze,Ue,He,Ne,ne,Q,sn,Te,_e,pt,Ot,_n,Ui,qe,ve],pipes:[ce],styles:[""]}),t})();const
Oie=["v4l2form"],Aie=["top"];function
Pie(t,i){1&t&&(g(0),m(1,"translate")),2&t&&T("
",f(1,1,"settings.capture.v4l2.title")," ")}function
Fie(t,i){}const Nie=function(){return{minWidth:"80%"}};function
Vie(t,i){if(1&t){const
e=I();l(0,"p-dropdown",17,18),C("ngModelChange",function(s){return
v(e),d(2).currentDevice=s})("onChange",function(){return
v(e),d(2).updateDevice()}),c()}if(2&t){const
e=d(2);q(A(6,Nie)),p("options",e.captureDeviceList.CaptureDeviceList.CaptureDevices)("ngModel",e.currentDevice)("editable",!1)("maxlength",0)}}function
Bie(t,i){if
(1&t&&(l(0,"div")(1,"small",19),g(2),c()()),2&t){const
e=d(2);a(2),T(" ",e.warningMessage," ")}}function
Hie(t,i){if(1&t){const
e=I();l(0,"input",20,21),C("ngModelChange",function(s){return
v(e),d(2).currentDevice.FrontendName=s}),c()}2&t&&p("ngModel",d(2).currentDevice.FrontendName)}function
qie(t,i){if(1&t&&(l(0,"div",8)(1,"div",9)(2,"div",10)(3,"label",11),g(4),m(5,"translate"),c(),_(6,Vie,2,7,"p-dropdown",12),_(7,Bie,3,1,"div",13),l(8,"small",14),g(9),m(10,"translate"),c()(),l(11,"div",10)(12,"label",15),g(13),m(14,"translate"),c(),_(15,Hie,2,1,"input",16),l(16,"small",14),g(17),m(18,"translate"),c()()()()),2&t){const
e=d();a(4),S(f(5,7,"settings.capture.v4l2.device_label")),a(2),p("ngIf",e.isReady),a(1),p("ngIf",e.warningMessage),a(2),T("
",f(10,9,"settings.capture.device_desc"),"
"),a(4),S(f(14,11,"settings.capture.v4l2.frontend_label")),a(2),p("ngIf",e.isReady),a(2),T("
",f(18,13,"settings.capture.frontend_desc")," ")}}function
Gie(t,i){1&t&&(k(0,"p-message",27),m(1,"translat
e")),2&t&&x("text",f(1,1,"common.savesuccess"))}function
Uie(t,i){1&t&&(k(0,"p-message",28),m(1,"translate")),2&t&&x("text",f(1,1,"common.networkfail"))}function
zie(t,i){if(1&t){const
e=I();l(0,"div",22)(1,"div",23),_(2,Gie,2,3,"p-message",24),_(3,Uie,2,3,"p-message",25),c(),l(4,"p-button",26),C("onClick",function(){v(e);const
s=d(),r=F(1);return
s.saveForm(),r.form.markAsPristine()}),m(5,"translate"),c()()}if(2&t){const
e=d(),n=F(1);a(2),p("ngIf",e.successCount>0&&0==e.errorCount&&!n.dirty),a(1),p("ngIf",e.errorCount>0),a(1),x("label",f(5,4,"common.save")),p("disabled",!n.dirty||!e.card.VideoDevice||e.setupService.schedulingEnabled)}}let
jie=(()=>{class
t{constructor(e,n,s){this.captureCardService=e,this.setupService=n,this.translate=s,this.messages={devNotExist:"settings.capture.dvb.devNotExist",unknownName:"settings.capture.dvb.unknownName",devInUse:"settings.capture.dvb.devInUse",noDevSelected:"settings.capture.dvb.noDevSelected"},this.captureDeviceList={CaptureDeviceList:{Capt
ureDevices:[]}},this.currentDevice={FrontendName:"Unknown",InputNames:[""]},this.isReady=!1,this.warningMessage="",this.errorCount=0,this.successCount=0,this.saveObserver={next:r=>{this.card.CardId&&r.bool?this.successCount++:!this.card.CardId&&r.int?(this.successCount++,this.card.CardId=r.int):(this.errorCount++,this.currentForm.form.markAsDirty())},error:r=>{console.error(r),this.errorCount++,this.currentForm.form.markAsDirty()}},s.get(this.messages.devNotExist).subscribe(r=>this.messages.devNotExist=r),s.get(this.messages.unknownName).subscribe(r=>this.messages.unknownName=r),s.get(this.messages.devInUse).subscribe(r=>this.messages.devInUse=r),s.get(this.messages.noDevSelected).subscribe(r=>this.messages.noDevSelected=r)}ngOnInit(){this.captureCardService.GetCaptureDeviceList("V4L2ENC").subscribe({next:e=>{this.captureDeviceList=e,this.setupDevice()},error:e=>{console.log("GetCaptureDeviceList",e),this.errorCount++}})}ngAfterViewInit(){this.setupService.setCurrentForm(this.curren
tForm),this.topElement.nativeElement.scrollIntoView({behavior:"smooth",block:"start"})}setupDevice(){if(this.card.VideoDevice||this.captureDeviceList.CaptureDeviceList.CaptureDevices.unshift({VideoDevice:"",FrontendName:this.messages.noDevSelected,InputNames:[""]}),this.card.VideoDevice){let
e=this.captureDeviceList.CaptureDeviceList.CaptureDevices.find(n=>n.VideoDevice==this.card.VideoDevice);e?this.currentDevice=e:(this.currentDevice={VideoDevice:this.card.VideoDevice,FrontendName:this.messages.devNotExist,InputNames:[""]},this.captureDeviceList.CaptureDeviceList.CaptureDevices.push(this.currentDevice))}this.currentDevice&&this.card.InputName&&(this.currentDevice.InputNames.includes(this.card.InputName)||this.currentDevice.InputNames.push(this.card.InputName)),this.isReady=!0}updateDevice(){this.card.VideoDevice=this.currentDevice.VideoDevice,this.card.InputName=this.currentDevice.DefaultInputName,this.card.SignalTimeout=this.currentDevice.SignalTimeout,this.card.ChannelTimeout=th
is.currentDevice.ChannelTimeout,this.checkInUse()}checkInUse(){this.warningMessage=this.cardList.CaptureCardList.CaptureCards.find(n=>n.VideoDevice==this.currentDevice.VideoDevice&&n.CardId!=this.card.CardId)?this.messages.devInUse:""}saveForm(){this.successCount=0,this.errorCount=0,this.card.CardId?this.cardList.CaptureCardList.CaptureCards.forEach(e=>{(e.CardId==this.card.CardId||e.ParentId==this.card.CardId)&&this.captureCardService.UpdateCaptureCard(e.CardId,"videodevice",this.card.VideoDevice).subscribe(this.saveObserver)}):this.captureCardService.AddCaptureCard(this.card).subscribe(this.saveObserver)}}return
t.\u0275fac=function(e){return
new(e||t)(D(Gt),D(Me),D(Oe))},t.\u0275cmp=z({type:t,selectors:[["app-v4l2"]],viewQuery:function(e,n){if(1&e&&(W(Oie,5),W(Aie,5)),2&e){let
s;V(s=B())&&(n.currentForm=s.first),V(s=B())&&(n.topElement=s.first)}},inputs:{card:"card",cardList:"cardList"},decls:9,vars:0,consts:[["name","v4l2form",1,"ml-3","mr-3"],["v4l2form","ngForm"],["top",""],[1
,"m-5"],["pTemplate","title"],["pTemplate","subtitle"],["pTemplate","content"],["pTemplate","footer"],[1,"grid"],[1,"mb-4","w-full"],[1,"form-group","field"],["for","VideoDevice",1,"label","block"],["optionLabel","VideoDevice","name","VideoDevice",3,"options","ngModel","editable","maxlength","style","ngModelChange","onChange",4,"ngIf"],[4,"ngIf"],[1,"block"],["for","FrontendName",1,"label","block"],["pInputText","","id","FrontendName","name","FrontendName","disabled","true","class","mb-2
form-control
w-full",3,"ngModel","ngModelChange",4,"ngIf"],["optionLabel","VideoDevice","name","VideoDevice",3,"options","ngModel","editable","maxlength","ngModelChange","onChange"],["VideoDevice","ngModel"],[1,"p-error","block"],["pInputText","","id","FrontendName","name","FrontendName","disabled","true",1,"mb-2","form-control","w-full",3,"ngModel","ngModelChange"],["FrontendName","ngModel"],[1,"grid","nogutter"],[1,"col-12"],["severity","success",3,"text",4,"ngIf"],["severity","error",3,"text",4,"
ngIf"],["icon","pi
pi-save","iconPos","left",1,"col","pr-1",3,"label","disabled","onClick"],["severity","success",3,"text"],["severity","error",3,"text"]],template:function(e,n){1&e&&(l(0,"form",0,1),k(2,"span",null,2),l(4,"p-card",3),_(5,Pie,2,3,"ng-template",4),_(6,Fie,0,0,"ng-template",5),_(7,qie,19,15,"ng-template",6),_(8,zie,6,6,"ng-template",7),c()())},directives:[ze,Ue,He,Ne,ne,Q,Ot,Te,_e,_n,Ye,qe,ve],pipes:[ce],styles:[""]}),t})();const
$ie=["hdpvrform"],Wie=["top"];function
Kie(t,i){1&t&&(g(0),m(1,"translate")),2&t&&T("
",f(1,1,"settings.capture.hdpvr.title")," ")}function
Qie(t,i){}const LS=function(){return{minWidth:"80%"}};function
Jie(t,i){if(1&t){const
e=I();l(0,"p-dropdown",21,22),C("ngModelChange",function(s){return
v(e),d(2).currentDevice=s})("onChange",function(){return
v(e),d(2).updateDevice()}),c()}if(2&t){const
e=d(2);q(A(6,LS)),p("options",e.captureDeviceList.CaptureDeviceList.CaptureDevices)("ngModel",e.currentDevice)("editable",!1)("maxlength",0)}}function
Yi
e(t,i){if(1&t&&(l(0,"div")(1,"small",23),g(2),c()()),2&t){const
e=d(2);a(2),T(" ",e.warningMessage," ")}}function
Zie(t,i){if(1&t){const
e=I();l(0,"input",24,25),C("ngModelChange",function(s){return
v(e),d(2).currentDevice.FrontendName=s}),c()}2&t&&p("ngModel",d(2).currentDevice.FrontendName)}function
Xie(t,i){if(1&t){const
e=I();l(0,"p-dropdown",26,27),C("ngModelChange",function(s){return
v(e),d(2).card.AudioDevice=s}),c()}if(2&t){const
e=d(2);q(A(6,LS)),p("options",e.currentDevice.AudioDevices)("ngModel",e.card.AudioDevice)("editable",!1)("maxlength",0)}}function
ese(t,i){if(1&t){const
e=I();l(0,"div",8)(1,"div",9)(2,"div",10)(3,"label",11),g(4),m(5,"translate"),c(),_(6,Jie,2,7,"p-dropdown",12),_(7,Yie,3,1,"div",13),l(8,"small",14),g(9),m(10,"translate"),c()(),l(11,"div",10)(12,"label",15),g(13),m(14,"translate"),c(),_(15,Zie,2,1,"input",16),l(16,"small",14),g(17),m(18,"translate"),c()(),l(19,"div",10)(20,"label",17),g(21),m(22,"translate"),c(),_(23,Xie,2,7,"p-dropdown",18),l(24,"
small",14),g(25),m(26,"translate"),c()(),l(27,"div",10)(28,"label",19),g(29),m(30,"translate"),c(),l(31,"p-inputNumber",20),C("ngModelChange",function(s){return
v(e),d().card.ChannelTimeout=s}),c(),l(32,"small",14),g(33),m(34,"translate"),c()()()()}if(2&t){const
e=d();a(4),S(f(5,17,"settings.capture.v4l2.device_label")),a(2),p("ngIf",e.isReady),a(1),p("ngIf",e.warningMessage),a(2),T("
",f(10,19,"settings.capture.device_desc"),"
"),a(4),S(f(14,21,"settings.capture.v4l2.frontend_label")),a(2),p("ngIf",e.isReady),a(2),T("
",f(18,23,"settings.capture.frontend_desc"),"
"),a(4),S(f(22,25,"settings.capture.hdpvr.audiodevice_label")),a(2),p("ngIf",e.isReady),a(2),T("
",f(26,27,"settings.capture.hdpvr.audiodevice_desc"),"
"),a(4),S(f(30,29,"settings.capture.tunetimeout_label")),a(2),p("ngModel",e.card.ChannelTimeout)("showButtons",!0)("min",2e3)("max",65e3)("step",250),a(2),T("
",f(34,31,"settings.capture.tunetimeout_desc")," ")}}function
tse(t,i){1&t&&(k(0,"p-message",33),m(1,"translate")),
2&t&&x("text",f(1,1,"common.savesuccess"))}function
nse(t,i){1&t&&(k(0,"p-message",34),m(1,"translate")),2&t&&x("text",f(1,1,"common.networkfail"))}function
ise(t,i){if(1&t){const
e=I();l(0,"div",28)(1,"div",29),_(2,tse,2,3,"p-message",30),_(3,nse,2,3,"p-message",31),c(),l(4,"p-button",32),C("onClick",function(){v(e);const
s=d(),r=F(1);return
s.saveForm(),r.form.markAsPristine()}),m(5,"translate"),c()()}if(2&t){const
e=d(),n=F(1);a(2),p("ngIf",e.successCount>0&&0==e.errorCount&&!n.dirty),a(1),p("ngIf",e.errorCount>0),a(1),x("label",f(5,4,"common.save")),p("disabled",!n.dirty||!e.card.VideoDevice||e.setupService.schedulingEnabled)}}let
sse=(()=>{class
t{constructor(e,n,s){this.captureCardService=e,this.setupService=n,this.translate=s,this.messages={devNotExist:"settings.capture.dvb.devNotExist",unknownName:"settings.capture.dvb.unknownName",devInUse:"settings.capture.dvb.devInUse",noDevSelected:"settings.capture.dvb.noDevSelected"},this.captureDeviceList={CaptureDeviceList:{CaptureDe
vices:[]}},this.currentDevice={FrontendName:"Unknown",InputNames:[""]},this.isReady=!1,this.warningMessage="",this.errorCount=0,this.successCount=0,this.saveObserver={next:r=>{this.card.CardId&&r.bool?this.successCount++:!this.card.CardId&&r.int?(this.successCount++,this.card.CardId=r.int):(this.errorCount++,this.currentForm.form.markAsDirty())},error:r=>{console.error(r),this.errorCount++,this.currentForm.form.markAsDirty()}},s.get(this.messages.devNotExist).subscribe(r=>this.messages.devNotExist=r),s.get(this.messages.unknownName).subscribe(r=>this.messages.unknownName=r),s.get(this.messages.devInUse).subscribe(r=>this.messages.devInUse=r),s.get(this.messages.noDevSelected).subscribe(r=>this.messages.noDevSelected=r)}ngOnInit(){this.captureCardService.GetCaptureDeviceList("HDPVR").subscribe({next:e=>{this.captureDeviceList=e,this.setupDevice()},error:e=>{console.log("GetCaptureDeviceList",e),this.errorCount++}})}setupDevice(){if(this.card.VideoDevice||this.captureDeviceList.Captur
eDeviceList.CaptureDevices.unshift({VideoDevice:"",FrontendName:this.messages.noDevSelected,InputNames:[""]}),this.card.VideoDevice){let
e=this.captureDeviceList.CaptureDeviceList.CaptureDevices.find(n=>n.VideoDevice==this.card.VideoDevice);e?this.currentDevice=e:(this.currentDevice={VideoDevice:this.card.VideoDevice,FrontendName:this.messages.devNotExist,InputNames:[""]},this.captureDeviceList.CaptureDeviceList.CaptureDevices.push(this.currentDevice))}this.currentDevice&&this.card.InputName&&(this.currentDevice.InputNames.includes(this.card.InputName)||this.currentDevice.InputNames.push(this.card.InputName)),this.isReady=!0}updateDevice(){this.card.VideoDevice=this.currentDevice.VideoDevice,this.card.InputName=this.currentDevice.DefaultInputName,this.card.AudioDevice="",this.card.ChannelTimeout=this.currentDevice.ChannelTimeout,this.checkInUse()}checkInUse(){this.warningMessage=this.cardList.CaptureCardList.CaptureCards.find(n=>n.VideoDevice==this.currentDevice.VideoDevice&&n.CardI
d!=this.card.CardId)?this.messages.devInUse:""}saveForm(){this.successCount=0,this.errorCount=0,this.card.CardId?this.cardList.CaptureCardList.CaptureCards.forEach(e=>{(e.CardId==this.card.CardId||e.ParentId==this.card.CardId)&&(this.captureCardService.UpdateCaptureCard(e.CardId,"videodevice",this.card.VideoDevice).subscribe(this.saveObserver),this.captureCardService.UpdateCaptureCard(e.CardId,"channel_timeout",String(this.card.ChannelTimeout)).subscribe(this.saveObserver),this.captureCardService.UpdateCaptureCard(e.CardId,"audiodevice",String(this.card.AudioDevice)).subscribe(this.saveObserver))}):this.captureCardService.AddCaptureCard(this.card).subscribe(this.saveObserver)}}return
t.\u0275fac=function(e){return
new(e||t)(D(Gt),D(Me),D(Oe))},t.\u0275cmp=z({type:t,selectors:[["app-hdpvr"]],viewQuery:function(e,n){if(1&e&&(W($ie,5),W(Wie,5)),2&e){let
s;V(s=B())&&(n.currentForm=s.first),V(s=B())&&(n.topElement=s.first)}},inputs:{card:"card",cardList:"cardList"},decls:9,vars:0,consts:
[["name","hdpvrform",1,"ml-3","mr-3"],["dvbform","ngForm"],["top",""],[1,"m-5"],["pTemplate","title"],["pTemplate","subtitle"],["pTemplate","content"],["pTemplate","footer"],[1,"grid"],[1,"mb-4","w-full"],[1,"form-group","field"],["for","VideoDevice",1,"label","block"],["optionLabel","VideoDevice","name","VideoDevice",3,"options","ngModel","editable","maxlength","style","ngModelChange","onChange",4,"ngIf"],[4,"ngIf"],[1,"block"],["for","FrontendName",1,"label","block"],["pInputText","","id","FrontendName","name","FrontendName","disabled","true","class","mb-2
form-control
w-full",3,"ngModel","ngModelChange",4,"ngIf"],["for","AudioDevice",1,"label","block"],["name","AudioDevice",3,"options","ngModel","editable","maxlength","style","ngModelChange",4,"ngIf"],["for","ChannelTimeout",1,"label","block"],["name","ChannelTimeout","id","ChannelTimeout",3,"ngModel","showButtons","min","max","step","ngModelChange"],["optionLabel","VideoDevice","name","VideoDevice",3,"options","ngModel","editabl
e","maxlength","ngModelChange","onChange"],["VideoDevice","ngModel"],[1,"p-error","block"],["pInputText","","id","FrontendName","name","FrontendName","disabled","true",1,"mb-2","form-control","w-full",3,"ngModel","ngModelChange"],["FrontendName","ngModel"],["name","AudioDevice",3,"options","ngModel","editable","maxlength","ngModelChange"],["AudioDevice","ngModel"],[1,"grid","nogutter"],[1,"col-12"],["severity","success",3,"text",4,"ngIf"],["severity","error",3,"text",4,"ngIf"],["icon","pi
pi-save","iconPos","left",1,"col","pr-1",3,"label","disabled","onClick"],["severity","success",3,"text"],["severity","error",3,"text"]],template:function(e,n){1&e&&(l(0,"form",0,1),k(2,"span",null,2),l(4,"p-card",3),_(5,Kie,2,3,"ng-template",4),_(6,Qie,0,0,"ng-template",5),_(7,ese,35,33,"ng-template",6),_(8,ise,6,6,"ng-template",7),c()())},directives:[ze,Ue,He,Ne,ne,Q,Ot,Te,_e,_n,Ye,pt,qe,ve],pipes:[ce],styles:[""]}),t})();const
rse=["satipform"],ose=["top"];function
ase(t,i){1&t&&(g(0),m(1,"transl
ate")),2&t&&T("
",f(1,1,"settings.capture.satip.title")," ")}function
lse(t,i){}const cse=function(){return{minWidth:"83%"}};function
use(t,i){if(1&t){const
e=I();l(0,"p-dropdown",25,26),C("ngModelChange",function(s){return
v(e),d(2).currentDevice=s})("onChange",function(){return
v(e),d(2).updateDevice()}),c()}if(2&t){const
e=d(2);q(A(6,cse)),p("options",e.captureDeviceList.CaptureDeviceList.CaptureDevices)("ngModel",e.currentDevice)("editable",!1)("maxlength",0)}}function
dse(t,i){if(1&t&&(l(0,"div")(1,"small",27),g(2),c()()),2&t){const
e=d(2);a(2),T(" ",e.warningMessage," ")}}function
pse(t,i){if(1&t){const
e=I();l(0,"div",8)(1,"div",9)(2,"div",10)(3,"label",11),g(4),m(5,"translate"),c(),_(6,use,2,7,"p-dropdown",12),_(7,dse,3,1,"div",13),l(8,"small",14),g(9),m(10,"translate"),c()(),l(11,"div",10)(12,"label",15),g(13),m(14,"translate"),c(),l(15,"div",16),g(16),c(),l(17,"small",14),g(18),m(19,"translate"),c()(),l(20,"div",10)(21,"label",15),g(22),m(23,"translate"),c(),l(24,"div",16)
,g(25),c(),l(26,"small",14),g(27),m(28,"translate"),c()(),l(29,"div",10)(30,"label",15),g(31),m(32,"translate"),c(),l(33,"div",16),g(34),c(),l(35,"small",14),g(36),m(37,"translate"),c()(),l(38,"div",10)(39,"label",15),g(40),m(41,"translate"),c(),l(42,"div",16),g(43),c(),l(44,"small",14),g(45),m(46,"translate"),c()(),l(47,"div",10)(48,"label",17),g(49),m(50,"translate"),c(),l(51,"p-inputNumber",18),C("ngModelChange",function(s){return
v(e),d().card.SignalTimeout=s}),c(),l(52,"small",14),g(53),m(54,"translate"),c()(),l(55,"div",10)(56,"label",19),g(57),m(58,"translate"),c(),l(59,"p-inputNumber",20),C("ngModelChange",function(s){return
v(e),d().card.ChannelTimeout=s}),c(),l(60,"small",14),g(61),m(62,"translate"),c()(),l(63,"div",10)(64,"p-checkbox",21,22),C("ngModelChange",function(s){return
v(e),d().card.DVBEITScan=s}),m(66,"translate"),c(),l(67,"small",14),g(68),m(69,"translate"),c()(),l(70,"div",10)(71,"label",23),g(72),m(73,"translate"),c(),l(74,"p-inputNumber",24),C("ngModelChange
",function(s){return
v(e),d().card.DVBDiSEqCType=s}),c(),l(75,"small",14),g(76),m(77,"translate"),c()()()()}if(2&t){const
e=d();a(4),S(f(5,41,"settings.capture.satip.device_label")),a(2),p("ngIf",e.isReady),a(1),p("ngIf",e.warningMessage),a(2),T("
",f(10,43,"settings.capture.satip.device_desc"),"
"),a(4),S(f(14,45,"settings.capture.satip.friendly_label")),a(3),T("
",e.currentDevice.Description," \xa0 "),a(2),T("
",f(19,47,"settings.capture.satip.friendly_desc"),"
"),a(4),S(f(23,49,"settings.capture.satip.tunertype_label")),a(3),T("
",e.currentDevice.TunerType," \xa0 "),a(2),T("
",f(28,51,"settings.capture.tunertype_desc"),"
"),a(4),S(f(32,53,"settings.capture.satip.tunerindex_label")),a(3),T("
",e.currentDevice.TunerNumber," \xa0 "),a(2),T("
",f(37,55,"settings.capture.tunerindex_desc"),"
"),a(4),S(f(41,57,"settings.capture.satip.deviceid_label")),a(3),T("
",e.card.VideoDevice," \xa0 "),a(2),T("
",f(46,59,"settings.capture.deviceid_desc"),"
"),a(4),S(f(50,61,"settings.capture.sigtim
eout_label")),a(2),p("ngModel",e.card.SignalTimeout)("showButtons",!0)("min",250)("max",6e4)("step",250),a(2),T("
",f(54,63,"settings.capture.sigtimeout_desc"),"
"),a(4),S(f(58,65,"settings.capture.tunetimeout_label")),a(2),p("ngModel",e.card.ChannelTimeout)("showButtons",!0)("min",2e3)("max",65e3)("step",250),a(2),T("
",f(62,67,"settings.capture.tunetimeout_desc"),"
"),a(3),x("label",f(66,69,"settings.capture.dvb.eitscan_label")),p("ngModel",e.card.DVBEITScan)("binary",!0),a(4),T("
",f(69,71,"settings.capture.dvb.eitscan_desc"),"
"),a(4),S(f(73,73,"settings.capture.satip.diseqcpos_label")),a(2),p("ngModel",e.card.DVBDiSEqCType)("showButtons",!0)("min",1)("max",255)("step",1),a(2),T("
",f(77,75,"settings.capture.satip.diseqcpos_desc")," ")}}function
hse(t,i){1&t&&(k(0,"p-message",33),m(1,"translate")),2&t&&x("text",f(1,1,"common.savesuccess"))}function
mse(t,i){1&t&&(k(0,"p-message",34),m(1,"translate")),2&t&&x("text",f(1,1,"common.networkfail"))}function
fse(t,i){if(1&t){const e=I(
);l(0,"div",28)(1,"div",29),_(2,hse,2,3,"p-message",30),_(3,mse,2,3,"p-message",31),c(),l(4,"p-button",32),C("onClick",function(){v(e);const
s=d(),r=F(1);return
s.saveForm(),r.form.markAsPristine()}),m(5,"translate"),c()()}if(2&t){const
e=d(),n=F(1);a(2),p("ngIf",e.successCount>0&&0==e.errorCount&&!n.dirty),a(1),p("ngIf",e.errorCount>0),a(1),x("label",f(5,4,"common.save")),p("disabled",!n.dirty||!e.card.VideoDevice||e.setupService.schedulingEnabled)}}let
gse=(()=>{class
t{constructor(e,n,s){this.captureCardService=e,this.setupService=n,this.translate=s,this.messages={devNotExist:"settings.capture.dvb.devNotExist",unknownName:"settings.capture.dvb.unknownName",devInUse:"settings.capture.dvb.devInUse",noDevSelected:"settings.capture.dvb.noDevSelected"},this.captureDeviceList={CaptureDeviceList:{CaptureDevices:[]}},this.currentDevice={FrontendName:"Unknown",InputNames:[""]},this.isReady=!1,this.warningMessage="",this.errorCount=0,this.successCount=0,this.saveObserver={next:r=>{this.car
d.CardId&&r.bool?this.successCount++:!this.card.CardId&&r.int?(this.successCount++,this.card.CardId=r.int,this.cardList.CaptureCardList.CaptureCards.push(this.card)):(this.errorCount++,this.currentForm.form.markAsDirty())},error:r=>{console.error(r),this.errorCount++,this.currentForm.form.markAsDirty()}},s.get(this.messages.devNotExist).subscribe(r=>this.messages.devNotExist=r),s.get(this.messages.unknownName).subscribe(r=>this.messages.unknownName=r),s.get(this.messages.devInUse).subscribe(r=>this.messages.devInUse=r),s.get(this.messages.noDevSelected).subscribe(r=>this.messages.noDevSelected=r)}ngOnInit(){this.captureCardService.GetCaptureDeviceList("SATIP").subscribe({next:e=>{this.captureDeviceList=e,this.setupDevice()},error:e=>{console.log("GetCaptureDeviceList",e),this.errorCount++}})}ngAfterViewInit(){this.setupService.setCurrentForm(this.currentForm),this.topElement.nativeElement.scrollIntoView({behavior:"smooth",block:"start"})}setupDevice(){if(this.card.VideoDevice||this.
captureDeviceList.CaptureDeviceList.CaptureDevices.unshift({VideoDevice:"",VideoDevicePrompt:this.messages.noDevSelected}),this.card.VideoDevice){let
e=this.captureDeviceList.CaptureDeviceList.CaptureDevices.find(n=>n.VideoDevice==this.card.VideoDevice);e?this.currentDevice=e:(this.currentDevice={VideoDevice:this.card.VideoDevice,Description:this.messages.devNotExist},this.captureDeviceList.CaptureDeviceList.CaptureDevices.push(this.currentDevice))}this.isReady=!0}updateDevice(){this.card.VideoDevice=this.currentDevice.VideoDevice,this.card.ChannelTimeout=this.currentDevice.ChannelTimeout,this.card.SignalTimeout=this.currentDevice.SignalTimeout,this.checkInUse()}checkInUse(){this.warningMessage=this.cardList.CaptureCardList.CaptureCards.find(n=>n.VideoDevice==this.currentDevice.VideoDevice&&n.CardId!=this.card.CardId)?this.messages.devInUse:""}saveForm(){this.successCount=0,this.errorCount=0,this.card.CardId?this.cardList.CaptureCardList.CaptureCards.forEach(e=>{(e.CardId==this.card
.CardId||e.ParentId==this.card.CardId)&&(this.captureCardService.UpdateCaptureCard(e.CardId,"videodevice",this.card.VideoDevice).subscribe(this.saveObserver),this.captureCardService.UpdateCaptureCard(e.CardId,"signal_timeout",String(this.card.SignalTimeout)).subscribe(this.saveObserver),this.captureCardService.UpdateCaptureCard(e.CardId,"channel_timeout",String(this.card.ChannelTimeout)).subscribe(this.saveObserver),this.captureCardService.UpdateCaptureCard(e.CardId,"dvb_eitscan",String(this.card.DVBEITScan?"1":"0")).subscribe(this.saveObserver),this.captureCardService.UpdateCaptureCard(e.CardId,"dvb_diseqc_type",String(this.card.DVBDiSEqCType)).subscribe(this.saveObserver))}):this.captureCardService.AddCaptureCard(this.card).subscribe(this.saveObserver)}}return
t.\u0275fac=function(e){return
new(e||t)(D(Gt),D(Me),D(Oe))},t.\u0275cmp=z({type:t,selectors:[["app-satip"]],viewQuery:function(e,n){if(1&e&&(W(rse,5),W(ose,5)),2&e){let
s;V(s=B())&&(n.currentForm=s.first),V(s=B())&&(n.topEl
ement=s.first)}},inputs:{card:"card",cardList:"cardList"},decls:9,vars:0,consts:[["name","satipform",1,"ml-3","mr-3"],["satipform","ngForm"],["top",""],[1,"m-5"],["pTemplate","title"],["pTemplate","subtitle"],["pTemplate","content"],["pTemplate","footer"],[1,"grid"],[1,"mb-4","w-full"],[1,"form-group","field"],["for","VideoDevice",1,"label","block"],["optionLabel","VideoDevicePrompt","name","VideoDevice",3,"options","ngModel","editable","maxlength","style","ngModelChange","onChange",4,"ngIf"],[4,"ngIf"],[1,"block"],[1,"label","block"],[1,"col-10","bg-blue-100","text-gray-900"],["for","SignalTimeout",1,"label","block"],["name","SignalTimeout","id","SignalTimeout",3,"ngModel","showButtons","min","max","step","ngModelChange"],["for","ChannelTimeout",1,"label","block"],["name","ChannelTimeout","id","ChannelTimeout",3,"ngModel","showButtons","min","max","step","ngModelChange"],["inputId","DVBEITScan","name","DVBEITScan",1,"label","mb-2","w-full",3,"ngModel","binary","label","ngModelChang
e"],["DVBEITScan","ngModel"],["for","DVBDiSEqCType",1,"label","block"],["name","DVBDiSEqCType","id","DVBDiSEqCType",3,"ngModel","showButtons","min","max","step","ngModelChange"],["optionLabel","VideoDevicePrompt","name","VideoDevice",3,"options","ngModel","editable","maxlength","ngModelChange","onChange"],["VideoDevice","ngModel"],[1,"p-error","block"],[1,"grid","nogutter"],[1,"col-12"],["severity","success",3,"text",4,"ngIf"],["severity","error",3,"text",4,"ngIf"],["icon","pi
pi-save","iconPos","left",1,"col","pr-1",3,"label","disabled","onClick"],["severity","success",3,"text"],["severity","error",3,"text"]],template:function(e,n){1&e&&(l(0,"form",0,1),k(2,"span",null,2),l(4,"p-card",3),_(5,ase,2,3,"ng-template",4),_(6,lse,0,0,"ng-template",5),_(7,pse,78,77,"ng-template",6),_(8,fse,6,6,"ng-template",7),c()())},directives:[ze,Ue,He,Ne,ne,Q,Ot,Te,_e,_n,pt,sn,qe,ve],pipes:[ce],styles:[""]}),t})();const
_se=["vboxform"],bse=["top"];function
vse(t,i){1&t&&(g(0),m(1,"translate")),2&t&&T
(" ",f(1,1,"settings.capture.vbox.title")," ")}function
Cse(t,i){}const yse=function(){return{minWidth:"83%"}};function
wse(t,i){if(1&t){const
e=I();l(0,"p-dropdown",26,27),C("ngModelChange",function(s){return
v(e),d(2).currentDevice=s})("onChange",function(){return
v(e),d(2).updateDevice()}),c()}if(2&t){const
e=d(2);q(A(6,yse)),p("options",e.captureDeviceList.CaptureDeviceList.CaptureDevices)("ngModel",e.currentDevice)("editable",!1)("maxlength",0)}}function
Tse(t,i){if(1&t&&(l(0,"div")(1,"small",28),g(2),c()()),2&t){const
e=d(2);a(2),T(" ",e.warningMessage," ")}}function
Sse(t,i){if(1&t){const
e=I();l(0,"div",8)(1,"div",9)(2,"div",10)(3,"label",11),g(4),m(5,"translate"),c(),_(6,wse,2,7,"p-dropdown",12),_(7,Tse,3,1,"div",13),l(8,"small",14),g(9),m(10,"translate"),c()(),l(11,"div",10)(12,"label",15),g(13),m(14,"translate"),c(),l(15,"div",16),g(16),c(),l(17,"small",14),g(18),m(19,"translate"),c()(),l(20,"div",10)(21,"label",15),g(22),m(23,"translate"),c(),l(24,"div",16),g(25),c(),k(2
6,"small",14),c(),l(27,"div",10)(28,"label",17),g(29),m(30,"translate"),c(),l(31,"input",18,19),C("ngModelChange",function(s){return
v(e),d().currentDevice.IPAddress=s}),c(),l(33,"small",14),g(34),m(35,"translate"),c()(),l(36,"div",10)(37,"label",20),g(38),m(39,"translate"),c(),l(40,"input",21,19),C("ngModelChange",function(s){return
v(e),d().currentDevice.TunerNumber=s}),c(),l(42,"small",14),g(43),m(44,"translate"),c()(),l(45,"div",10)(46,"label",22),g(47),m(48,"translate"),c(),l(49,"p-inputNumber",23),C("ngModelChange",function(s){return
v(e),d().card.SignalTimeout=s}),c(),l(50,"small",14),g(51),m(52,"translate"),c()(),l(53,"div",10)(54,"label",24),g(55),m(56,"translate"),c(),l(57,"p-inputNumber",25),C("ngModelChange",function(s){return
v(e),d().card.ChannelTimeout=s}),c(),l(58,"small",14),g(59),m(60,"translate"),c()()()()}if(2&t){const
e=d();a(4),S(f(5,31,"settings.capture.satip.device_label")),a(2),p("ngIf",e.isReady),a(1),p("ngIf",e.warningMessage),a(2),T("
",f(10,33,"settings.
capture.vbox.device_desc"),"
"),a(4),S(f(14,35,"settings.capture.vbox.deviceid_label")),a(3),T("
",e.card.VideoDevice," \xa0 "),a(2),T("
",f(19,37,"settings.capture.vbox.deviceid_desc"),"
"),a(4),S(f(23,39,"settings.capture.vbox.description_label")),a(3),T("
",e.currentDevice.Description," \xa0
"),a(4),S(f(30,41,"settings.capture.ceton.ipaddress_label")),a(2),p("ngModel",e.currentDevice.IPAddress)("disabled",e.currentDevice!==e.manualDevice),a(3),T("
",f(35,43,"settings.capture.vbox.ipaddress_desc"),"
"),a(4),S(f(39,45,"settings.capture.ceton.tuner_label")),a(2),p("ngModel",e.currentDevice.TunerNumber)("disabled",e.currentDevice!==e.manualDevice),a(3),T("
",f(44,47,"settings.capture.vbox.tuner_desc"),"
"),a(4),S(f(48,49,"settings.capture.sigtimeout_label")),a(2),p("ngModel",e.card.SignalTimeout)("showButtons",!0)("min",250)("max",6e4)("step",250),a(2),T("
",f(52,51,"settings.capture.sigtimeout_desc"),"
"),a(4),S(f(56,53,"settings.capture.tunetimeout_label")),a(2),p("ngModel",e.card.
ChannelTimeout)("showButtons",!0)("min",2e3)("max",65e3)("step",250),a(2),T("
",f(60,55,"settings.capture.tunetimeout_desc")," ")}}function
xse(t,i){1&t&&(k(0,"p-message",34),m(1,"translate")),2&t&&x("text",f(1,1,"common.savesuccess"))}function
Dse(t,i){1&t&&(k(0,"p-message",35),m(1,"translate")),2&t&&x("text",f(1,1,"common.networkfail"))}function
Mse(t,i){if(1&t){const
e=I();l(0,"div",29)(1,"div",30),_(2,xse,2,3,"p-message",31),_(3,Dse,2,3,"p-message",32),c(),l(4,"p-button",33),C("onClick",function(){v(e);const
s=d(),r=F(1);return
s.saveForm(),r.form.markAsPristine()}),m(5,"translate"),c()()}if(2&t){const
e=d(),n=F(1);a(2),p("ngIf",e.successCount>0&&0==e.errorCount&&!n.dirty),a(1),p("ngIf",e.errorCount>0),a(1),x("label",f(5,4,"common.save")),p("disabled",!n.dirty||!e.card.VideoDevice||e.setupService.schedulingEnabled)}}let
kse=(()=>{class
t{constructor(e,n,s){this.captureCardService=e,this.setupService=n,this.translate=s,this.messages={devNotExist:"settings.capture.dvb.devNotExist"
,unknownName:"settings.capture.dvb.unknownName",devInUse:"settings.capture.dvb.devInUse",noDevSelected:"settings.capture.dvb.noDevSelected",manuallyEnter:"settings.capture.vbox.manuallyenter"},this.captureDeviceList={CaptureDeviceList:{CaptureDevices:[]}},this.currentDevice={FrontendName:"Unknown",InputNames:[""]},this.isReady=!1,this.warningMessage="",this.errorCount=0,this.successCount=0,this.saveObserver={next:r=>{this.card.CardId&&r.bool?this.successCount++:!this.card.CardId&&r.int?(this.successCount++,this.card.CardId=r.int,this.cardList.CaptureCardList.CaptureCards.push(this.card)):(this.errorCount++,this.currentForm.form.markAsDirty())},error:r=>{console.error(r),this.errorCount++,this.currentForm.form.markAsDirty()}},s.get(this.messages.devNotExist).subscribe(r=>this.messages.devNotExist=r),s.get(this.messages.unknownName).subscribe(r=>this.messages.unknownName=r),s.get(this.messages.devInUse).subscribe(r=>this.messages.devInUse=r),s.get(this.messages.noDevSelected).subscrib
e(r=>this.messages.noDevSelected=r),s.get(this.messages.manuallyEnter).subscribe(r=>this.messages.manuallyEnter=r)}ngOnInit(){this.captureCardService.GetCaptureDeviceList("VBOX").subscribe({next:e=>{this.captureDeviceList=e,this.setupDevice()},error:e=>{console.log("GetCaptureDeviceList",e),this.errorCount++}})}ngAfterViewInit(){this.setupService.setCurrentForm(this.currentForm),this.topElement.nativeElement.scrollIntoView({behavior:"smooth",block:"start"})}setupDevice(){if(this.manualDevice={VideoDevicePrompt:this.messages.manuallyEnter,VideoDevice:"",Description:"",IPAddress:"",TunerNumber:0,SignalTimeout:7e3,ChannelTimeout:1e4},this.captureDeviceList.CaptureDeviceList.CaptureDevices.unshift(this.manualDevice),this.card.VideoDevice||this.captureDeviceList.CaptureDeviceList.CaptureDevices.unshift({VideoDevice:"",FrontendName:this.messages.noDevSelected}),this.card.VideoDevice){let
e=this.captureDeviceList.CaptureDeviceList.CaptureDevices.find(n=>n.VideoDevice==this.card.VideoDevice
);e?this.currentDevice=e:(this.currentDevice={VideoDevice:this.card.VideoDevice,FrontendName:this.messages.devNotExist},this.captureDeviceList.CaptureDeviceList.CaptureDevices.push(this.currentDevice))}this.isReady=!0}updateDevice(){this.currentDevice===this.manualDevice?this.subscription=this.currentForm.valueChanges.pipe(yS(50)).subscribe(()=>this.card.VideoDevice=this.manualDevice.IPAddress+"-"+this.manualDevice.TunerNumber):this.subscription&&(this.subscription.unsubscribe(),this.subscription=void
0),this.card.VideoDevice=this.currentDevice.VideoDevice,this.card.ChannelTimeout=this.currentDevice.ChannelTimeout,this.card.SignalTimeout=this.currentDevice.SignalTimeout,this.checkInUse()}checkInUse(){this.warningMessage=this.cardList.CaptureCardList.CaptureCards.find(n=>n.VideoDevice==this.currentDevice.VideoDevice&&n.CardId!=this.card.CardId)?this.messages.devInUse:""}saveForm(){this.successCount=0,this.errorCount=0,this.card.CardId?this.cardList.CaptureCardList.CaptureCards.forEac
h(e=>{(e.CardId==this.card.CardId||e.ParentId==this.card.CardId)&&(this.captureCardService.UpdateCaptureCard(e.CardId,"videodevice",this.card.VideoDevice).subscribe(this.saveObserver),this.captureCardService.UpdateCaptureCard(e.CardId,"signal_timeout",String(this.card.SignalTimeout)).subscribe(this.saveObserver),this.captureCardService.UpdateCaptureCard(e.CardId,"channel_timeout",String(this.card.ChannelTimeout)).subscribe(this.saveObserver))}):this.captureCardService.AddCaptureCard(this.card).subscribe(this.saveObserver)}}return
t.\u0275fac=function(e){return
new(e||t)(D(Gt),D(Me),D(Oe))},t.\u0275cmp=z({type:t,selectors:[["app-vbox"]],viewQuery:function(e,n){if(1&e&&(W(_se,5),W(bse,5)),2&e){let
s;V(s=B())&&(n.currentForm=s.first),V(s=B())&&(n.topElement=s.first)}},inputs:{card:"card",cardList:"cardList"},decls:9,vars:0,consts:[["name","vboxform",1,"ml-3","mr-3"],["vboxform","ngForm"],["top",""],[1,"m-5"],["pTemplate","title"],["pTemplate","subtitle"],["pTemplate","content"],["pTemp
late","footer"],[1,"grid"],["u","",1,"mb-4","w-full"],[1,"form-group","field"],["for","VideoDevicePrompt",1,"label","block"],["optionLabel","VideoDevicePrompt","name","VideoDevicePrompt",3,"options","ngModel","editable","maxlength","style","ngModelChange","onChange",4,"ngIf"],[4,"ngIf"],[1,"block"],[1,"label","block"],[1,"col-10","bg-blue-100","text-gray-900"],["for","ip",1,"label","block"],["pInputText","","id","ip","name","ip",1,"mb-2","form-control","w-full",3,"ngModel","disabled","ngModelChange"],["ipAddress","ngModel"],["for","tuner",1,"label","block"],["pInputText","","id","tuner","name","tuner",1,"mb-2","form-control","w-full",3,"ngModel","disabled","ngModelChange"],["for","SignalTimeout",1,"label","block"],["name","SignalTimeout","id","SignalTimeout",3,"ngModel","showButtons","min","max","step","ngModelChange"],["for","ChannelTimeout",1,"label","block"],["name","ChannelTimeout","id","ChannelTimeout",3,"ngModel","showButtons","min","max","step","ngModelChange"],["optionLabel"
,"VideoDevicePrompt","name","VideoDevicePrompt",3,"options","ngModel","editable","maxlength","ngModelChange","onChange"],["VideoDevicePrompt","ngModel"],[1,"p-error","block"],[1,"grid","nogutter"],[1,"col-12"],["severity","success",3,"text",4,"ngIf"],["severity","error",3,"text",4,"ngIf"],["icon","pi
pi-save","iconPos","left",1,"col","pr-1",3,"label","disabled","onClick"],["severity","success",3,"text"],["severity","error",3,"text"]],template:function(e,n){1&e&&(l(0,"form",0,1),k(2,"span",null,2),l(4,"p-card",3),_(5,vse,2,3,"ng-template",4),_(6,Cse,0,0,"ng-template",5),_(7,Sse,61,57,"ng-template",6),_(8,Mse,6,6,"ng-template",7),c()())},directives:[ze,Ue,He,Ne,ne,Q,Ot,Te,_e,_n,Ye,pt,qe,ve],pipes:[ce],styles:[""]}),t})();const
Ise=["firewireform"],Ese=["top"];function
Rse(t,i){1&t&&(g(0),m(1,"translate")),2&t&&T("
",f(1,1,"settings.capture.firewire.title")," ")}function
Lse(t,i){}const Ed=function(){return{minWidth:"83%"}};function
Ose(t,i){if(1&t){const e=I();l(0,"p-dropdown",30,31),
C("ngModelChange",function(s){return
v(e),d(2).currentDevice=s})("onChange",function(){return
v(e),d(2).updateDevice()}),c()}if(2&t){const
e=d(2);q(A(6,Ed)),p("options",e.captureDeviceList.CaptureDeviceList.CaptureDevices)("ngModel",e.currentDevice)("editable",!1)("maxlength",0)}}function
Ase(t,i){if(1&t&&(l(0,"div")(1,"small",32),g(2),c()()),2&t){const
e=d(2);a(2),T(" ",e.warningMessage," ")}}function
Pse(t,i){if(1&t){const
e=I();l(0,"div",8)(1,"div",9)(2,"div",10)(3,"label",11),g(4),m(5,"translate"),c(),_(6,Ose,2,7,"p-dropdown",12),_(7,Ase,3,1,"div",13),k(8,"small",14),c(),l(9,"div",10)(10,"label",15),g(11),m(12,"translate"),c(),l(13,"div",16),g(14),c(),k(15,"small",14),c(),l(16,"div",10)(17,"label",17),g(18),m(19,"translate"),c(),l(20,"p-dropdown",18,19),C("ngModelChange",function(s){return
v(e),d().card.FirewireModel=s}),c(),l(22,"small",14),g(23),m(24,"translate"),c()(),l(25,"div",10)(26,"label",20),g(27),m(28,"translate"),c(),l(29,"p-dropdown",21,22),C("ngModelChange",function
(s){return
v(e),d().card.FirewireConnection=s}),c(),k(31,"small",14),c(),l(32,"div",10)(33,"label",23),g(34),m(35,"translate"),c(),l(36,"p-dropdown",24,25),C("ngModelChange",function(s){return
v(e),d().card.FirewireSpeed=s}),c(),k(38,"small",14),c(),l(39,"div",10)(40,"label",26),g(41),m(42,"translate"),c(),l(43,"p-inputNumber",27),C("ngModelChange",function(s){return
v(e),d().card.SignalTimeout=s}),c(),l(44,"small",14),g(45),m(46,"translate"),c()(),l(47,"div",10)(48,"label",28),g(49),m(50,"translate"),c(),l(51,"p-inputNumber",29),C("ngModelChange",function(s){return
v(e),d().card.ChannelTimeout=s}),c(),l(52,"small",14),g(53),m(54,"translate"),c()()()()}if(2&t){const
e=d();a(4),S(f(5,41,"settings.capture.firewire.device_label")),a(2),p("ngIf",e.isReady),a(1),p("ngIf",e.warningMessage),a(4),S(f(12,43,"settings.capture.vbox.description_label")),a(3),T("
",e.currentDevice.Description," \xa0
"),a(4),S(f(19,45,"settings.capture.firewire.model_label")),a(2),q(A(61,Ed)),p("options",e.models
)("ngModel",e.card.FirewireModel)("editable",!1)("maxlength",0),a(3),T("
",f(24,47,"settings.capture.firewire.model_desc"),"
"),a(4),S(f(28,49,"settings.capture.firewire.connection_label")),a(2),q(A(62,Ed)),p("options",e.connectionTypes)("ngModel",e.card.FirewireConnection)("editable",!1)("maxlength",0),a(5),S(f(35,51,"settings.capture.firewire.speed_label")),a(2),q(A(63,Ed)),p("options",e.speeds)("ngModel",e.card.FirewireSpeed)("editable",!1)("maxlength",0),a(5),S(f(42,53,"settings.capture.sigtimeout_label")),a(2),p("ngModel",e.card.SignalTimeout)("showButtons",!0)("min",250)("max",6e4)("step",250),a(2),T("
",f(46,55,"settings.capture.sigtimeout_desc"),"
"),a(4),S(f(50,57,"settings.capture.tunetimeout_label")),a(2),p("ngModel",e.card.ChannelTimeout)("showButtons",!0)("min",2e3)("max",65e3)("step",250),a(2),T("
",f(54,59,"settings.capture.tunetimeout_desc")," ")}}function
Fse(t,i){1&t&&(k(0,"p-message",38),m(1,"translate")),2&t&&x("text",f(1,1,"common.savesuccess"))}function
Nse(t,i
){1&t&&(k(0,"p-message",39),m(1,"translate")),2&t&&x("text",f(1,1,"common.networkfail"))}function
Vse(t,i){if(1&t){const
e=I();l(0,"div",33)(1,"div",34),_(2,Fse,2,3,"p-message",35),_(3,Nse,2,3,"p-message",36),c(),l(4,"p-button",37),C("onClick",function(){v(e);const
s=d(),r=F(1);return
s.saveForm(),r.form.markAsPristine()}),m(5,"translate"),c()()}if(2&t){const
e=d(),n=F(1);a(2),p("ngIf",e.successCount>0&&0==e.errorCount&&!n.dirty),a(1),p("ngIf",e.errorCount>0),a(1),x("label",f(5,4,"common.save")),p("disabled",!n.dirty||!e.card.VideoDevice||e.setupService.schedulingEnabled)}}let
Bse=(()=>{class
t{constructor(e,n,s){this.captureCardService=e,this.setupService=n,this.translate=s,this.messages={devNotExist:"settings.capture.dvb.devNotExist",unknownName:"settings.capture.dvb.unknownName",devInUse:"settings.capture.dvb.devInUse",noDevSelected:"settings.capture.dvb.noDevSelected",manuallyEnter:"settings.capture.vbox.manuallyenter"},this.models=[{name:"settings.capture.firewire.motogeneric",
value:"MOTO
GENERIC"},{name:"settings.capture.firewire.sageneric",value:"SA
GENERIC"},{name:"DCH-3200",value:"DCH-3200"},{name:"DCX-3200",value:"DCX-3200"},{name:"DCT-3412",value:"DCT-3412"},{name:"DCT-3416",value:"DCT-3416"},{name:"DCT-6200",value:"DCT-6200"},{name:"DCT-6212",value:"DCT-6212"},{name:"DCT-6216",value:"DCT-6216"},{name:"QIP-6200",value:"QIP-6200"},{name:"QIP-7100",value:"QIP-7100"},{name:"PACE-550",value:"PACE-550"},{name:"PACE-779",value:"PACE-779"},{name:"SA3250HD",value:"SA3250HD"},{name:"SA4200HD",value:"SA4200HD"},{name:"SA4250HDC",value:"SA4250HDC"},{name:"SA8300HD",value:"SA8300HD"}],this.connectionTypes=[{name:"settings.capture.firewire.pointtopoint",value:0},{name:"settings.capture.firewire.broadcast",value:1}],this.speeds=[{name:"100Mbps",value:0},{name:"200Mbps",value:1},{name:"400Mbps",value:2},{name:"800Mbps",value:3}],this.captureDeviceList={CaptureDeviceList:{CaptureDevices:[]}},this.currentDevice={FrontendName:"Unknown",InputNames:[""]},this.isReady=!
1,this.warningMessage="",this.errorCount=0,this.successCount=0,this.saveObserver={next:r=>{this.card.CardId&&r.bool?this.successCount++:!this.card.CardId&&r.int?(this.successCount++,this.card.CardId=r.int,this.cardList.CaptureCardList.CaptureCards.push(this.card)):(this.errorCount++,this.currentForm.form.markAsDirty())},error:r=>{console.error(r),this.errorCount++,this.currentForm.form.markAsDirty()}},s.get(this.messages.devNotExist).subscribe(r=>this.messages.devNotExist=r),s.get(this.messages.unknownName).subscribe(r=>this.messages.unknownName=r),s.get(this.messages.devInUse).subscribe(r=>this.messages.devInUse=r),s.get(this.messages.noDevSelected).subscribe(r=>this.messages.noDevSelected=r),s.get(this.messages.manuallyEnter).subscribe(r=>this.messages.manuallyEnter=r),s.get(this.models[0].name).subscribe(r=>this.models[0].name=r),s.get(this.models[1].name).subscribe(r=>this.models[1].name=r),s.get(this.connectionTypes[0].name).subscribe(r=>this.connectionTypes[0].name=r),s.get(th
is.connectionTypes[1].name).subscribe(r=>this.connectionTypes[1].name=r)}ngOnInit(){this.captureCardService.GetCaptureDeviceList("FIREWIRE").subscribe({next:e=>{this.captureDeviceList=e,this.setupDevice()},error:e=>{console.log("GetCaptureDeviceList",e),this.errorCount++}})}ngAfterViewInit(){this.setupService.setCurrentForm(this.currentForm),this.topElement.nativeElement.scrollIntoView({behavior:"smooth",block:"start"})}setupDevice(){if(this.card.VideoDevice||this.captureDeviceList.CaptureDeviceList.CaptureDevices.unshift({VideoDevice:"",FrontendName:this.messages.noDevSelected}),this.card.VideoDevice){let
e=this.captureDeviceList.CaptureDeviceList.CaptureDevices.find(n=>n.VideoDevice==this.card.VideoDevice);e?this.currentDevice=e:(this.currentDevice={VideoDevice:this.card.VideoDevice,FrontendName:this.messages.devNotExist},this.captureDeviceList.CaptureDeviceList.CaptureDevices.push(this.currentDevice))}this.isReady=!0}updateDevice(){this.card.VideoDevice=this.currentDevice.VideoDe
vice,this.card.ChannelTimeout=this.currentDevice.ChannelTimeout,this.card.SignalTimeout=this.currentDevice.SignalTimeout,this.card.FirewireModel=this.currentDevice.FirewireModel,this.checkInUse()}checkInUse(){this.warningMessage=this.cardList.CaptureCardList.CaptureCards.find(n=>n.VideoDevice==this.currentDevice.VideoDevice&&n.CardId!=this.card.CardId)?this.messages.devInUse:""}saveForm(){this.successCount=0,this.errorCount=0,this.card.CardId?this.cardList.CaptureCardList.CaptureCards.forEach(e=>{(e.CardId==this.card.CardId||e.ParentId==this.card.CardId)&&(this.captureCardService.UpdateCaptureCard(e.CardId,"videodevice",this.card.VideoDevice).subscribe(this.saveObserver),this.captureCardService.UpdateCaptureCard(e.CardId,"firewire_model",this.card.FirewireModel).subscribe(this.saveObserver),this.captureCardService.UpdateCaptureCard(e.CardId,"firewire_connection",String(this.card.FirewireConnection)).subscribe(this.saveObserver),this.captureCardService.UpdateCaptureCard(e.CardId,"fir
ewire_speed",String(this.card.FirewireSpeed)).subscribe(this.saveObserver),this.captureCardService.UpdateCaptureCard(e.CardId,"signal_timeout",String(this.card.SignalTimeout)).subscribe(this.saveObserver),this.captureCardService.UpdateCaptureCard(e.CardId,"channel_timeout",String(this.card.ChannelTimeout)).subscribe(this.saveObserver))}):this.captureCardService.AddCaptureCard(this.card).subscribe(this.saveObserver)}}return
t.\u0275fac=function(e){return
new(e||t)(D(Gt),D(Me),D(Oe))},t.\u0275cmp=z({type:t,selectors:[["app-firewire"]],viewQuery:function(e,n){if(1&e&&(W(Ise,5),W(Ese,5)),2&e){let
s;V(s=B())&&(n.currentForm=s.first),V(s=B())&&(n.topElement=s.first)}},inputs:{card:"card",cardList:"cardList"},decls:9,vars:0,consts:[["name","firewireform",1,"ml-3","mr-3"],["firewireform","ngForm"],["top",""],[1,"m-5"],["pTemplate","title"],["pTemplate","subtitle"],["pTemplate","content"],["pTemplate","footer"],[1,"grid"],[1,"mb-4","w-full"],[1,"form-group","field"],["for","VideoDevice",1,"l
abel","block"],["optionLabel","VideoDevice","name","VideoDevice",3,"options","ngModel","editable","maxlength","style","ngModelChange","onChange",4,"ngIf"],[4,"ngIf"],[1,"block"],[1,"label","block"],[1,"col-10","bg-blue-100","text-gray-900"],["for","FirewireModel",1,"label","block"],["optionLabel","name","optionValue","value","name","FirewireModel",3,"options","ngModel","editable","maxlength","ngModelChange"],["FirewireModel","ngModel"],["for","FirewireConnection",1,"label","block"],["optionLabel","name","optionValue","value","name","FirewireConnection",3,"options","ngModel","editable","maxlength","ngModelChange"],["FirewireConnection","ngModel"],["for","FirewireSpeed",1,"label","block"],["optionLabel","name","optionValue","value","name","FirewireSpeed",3,"options","ngModel","editable","maxlength","ngModelChange"],["FirewireSpeed","ngModel"],["for","SignalTimeout",1,"label","block"],["name","SignalTimeout","id","SignalTimeout",3,"ngModel","showButtons","min","max","step","ngModelChan
ge"],["for","ChannelTimeout",1,"label","block"],["name","ChannelTimeout","id","ChannelTimeout",3,"ngModel","showButtons","min","max","step","ngModelChange"],["optionLabel","VideoDevice","name","VideoDevice",3,"options","ngModel","editable","maxlength","ngModelChange","onChange"],["VideoDevice","ngModel"],[1,"p-error","block"],[1,"grid","nogutter"],[1,"col-12"],["severity","success",3,"text",4,"ngIf"],["severity","error",3,"text",4,"ngIf"],["icon","pi
pi-save","iconPos","left",1,"col","pr-1",3,"label","disabled","onClick"],["severity","success",3,"text"],["severity","error",3,"text"]],template:function(e,n){1&e&&(l(0,"form",0,1),k(2,"span",null,2),l(4,"p-card",3),_(5,Rse,2,3,"ng-template",4),_(6,Lse,0,0,"ng-template",5),_(7,Pse,55,64,"ng-template",6),_(8,Vse,6,6,"ng-template",7),c()())},directives:[ze,Ue,He,Ne,ne,Q,Ot,Te,_e,_n,pt,qe,ve],pipes:[ce],styles:[""]}),t})();const
Hse=["scroll"],ht=function(){return{minWidth:"400px"}};function
qse(t,i){if(1&t){const e=I();l(0,"div",0)(1,"lab
el",38),g(2),m(3,"translate"),c(),l(4,"p-dropdown",39,40),C("ngModelChange",function(s){return
v(e),d(2).scanRequest.FreqTable=s})("onChange",function(){return
v(e),d(2).onFreqTableChange(!1)}),c(),l(6,"small",4),g(7),m(8,"translate"),c()()}if(2&t){const
e=d(2);a(2),S(f(3,8,"settings.channelscan.freqtable_label")),a(2),q(A(12,ht)),p("options",e.freqTableSelect)("ngModel",e.scanRequest.FreqTable)("editable",!1)("maxlength",0),a(3),T("
",f(8,10,"settings.channelscan.freqtable_desc")," ")}}function
Gse(t,i){if(1&t){const
e=I();l(0,"div",0)(1,"label",41),g(2),m(3,"translate"),c(),l(4,"p-dropdown",42,43),C("ngModelChange",function(s){return
v(e),d(2).scanRequest.FreqTable=s}),c(),l(6,"small",4),g(7),m(8,"translate"),c()()}if(2&t){const
e=d(2);a(2),S(f(3,8,"settings.channelscan.country_label")),a(2),q(A(12,ht)),p("options",e.countryTable)("ngModel",e.scanRequest.FreqTable)("editable",!1)("maxlength",0),a(3),T("
",f(8,10,"settings.channelscan.scantype_dvbt_desc"),"
")}}function Use(t,i){if
(1&t){const
e=I();l(0,"div",0)(1,"label",41),g(2),m(3,"translate"),c(),l(4,"p-dropdown",42,43),C("ngModelChange",function(s){return
v(e),d(2).scanRequest.FreqTable=s}),c(),k(6,"small",4),c()}if(2&t){const
e=d(2);a(2),S(f(3,7,"settings.channelscan.country_label")),a(2),q(A(9,ht)),p("options",e.networkTable)("ngModel",e.scanRequest.FreqTable)("editable",!1)("maxlength",0)}}function
zse(t,i){if(1&t){const
e=I();l(0,"div",0)(1,"label",44),g(2),m(3,"translate"),c(),l(4,"p-dropdown",45,46),C("ngModelChange",function(s){return
v(e),d(2).scanRequest.Modulation=s})("onChange",function(){return
v(e),d(2).onFreqTableChange(!0)}),c(),l(6,"small",4),g(7),m(8,"translate"),c()()}if(2&t){const
e=d(2);a(2),S(f(3,8,"settings.channelscan.modulation_label")),a(2),q(A(12,ht)),p("options",e.atscModulationTable)("ngModel",e.scanRequest.Modulation)("editable",!1)("maxlength",0),a(3),T("
",f(8,10,"settings.channelscan.atscmodulation_desc"),"
")}}function
jse(t,i){1&t&&(l(0,"div")(1,"small",51),g(2),m(3,"tra
nslate"),c()()),2&t&&(a(2),S(f(3,1,"settings.channelscan.invalid_range")))}function
$se(t,i){if(1&t){const
e=I();l(0,"div",0)(1,"label",47),g(2),m(3,"translate"),c(),l(4,"p-dropdown",48,49),C("ngModelChange",function(s){return
v(e),d(2).scanRequest.FirstChan=s}),c(),l(6,"small",4),g(7),m(8,"translate"),c(),_(9,jse,4,3,"div",50),c()}if(2&t){const
e=d(2);a(2),S(f(3,9,"settings.channelscan.firstchan_label")),a(2),q(A(13,ht)),p("options",e.channels)("ngModel",e.scanRequest.FirstChan)("editable",!1)("maxlength",0),a(3),T("
",f(8,11,"settings.channelscan.firstchan_desc"),"
"),a(2),p("ngIf",e.channelCount<1)}}function
Wse(t,i){1&t&&(l(0,"div")(1,"small",51),g(2),m(3,"translate"),c()()),2&t&&(a(2),S(f(3,1,"settings.channelscan.invalid_range")))}function
Kse(t,i){if(1&t){const
e=I();l(0,"div",0)(1,"label",52),g(2),m(3,"translate"),c(),l(4,"p-dropdown",53,54),C("ngModelChange",function(s){return
v(e),d(2).scanRequest.LastChan=s}),c(),l(6,"small",4),g(7),m(8,"translate"),c(),_(9,Wse,4,3,"div",
50),c()}if(2&t){const
e=d(2);a(2),S(f(3,9,"settings.channelscan.lastchan_label")),a(2),q(A(13,ht)),p("options",e.channels)("ngModel",e.scanRequest.LastChan)("editable",!1)("maxlength",0),a(3),T("
",f(8,11,"settings.channelscan.lastchan_desc"),"
"),a(2),p("ngIf",e.channelCount<1)}}function
Qse(t,i){if(1&t&&(l(0,"div",0)(1,"label",30),g(2),m(3,"translate"),c(),l(4,"div",29),g(5),c(),l(6,"small",4),g(7),m(8,"translate"),c()()),2&t){const
e=d(2);a(2),S(f(3,3,"settings.channelscan.chancount_label")),a(3),T("
",e.calcCount()," \xa0 "),a(2),T("
",f(8,5,"settings.channelscan.chancount_desc")," ")}}const
Xs=function(){return["DVBT","DVBT2"]};function
Jse(t,i){if(1&t&&(l(0,"p-fieldset",37),m(1,"translate"),_(2,qse,9,13,"div",33),_(3,Gse,9,13,"div",33),_(4,Use,7,10,"div",33),_(5,zse,9,13,"div",33),_(6,$se,10,14,"div",33),_(7,Kse,10,14,"div",33),_(8,Qse,9,7,"div",33),c()),2&t){const
e=d();x("legend",f(1,10,"settings.channelscan.type.full")),p("toggleable",!1)("collapsed",!1),a(2),p("ngIf","ATSC
"==e.scanSubType),a(1),p("ngIf",A(12,Xs).includes(e.scanSubType)),a(1),p("ngIf","DVBC"==e.scanSubType),a(1),p("ngIf","ATSC"==e.scanSubType),a(1),p("ngIf","ATSC"==e.scanSubType),a(1),p("ngIf","ATSC"==e.scanSubType),a(1),p("ngIf","ATSC"==e.scanSubType)}}function
Yse(t,i){if(1&t){const
e=I();l(0,"div",0)(1,"label",61),g(2),m(3,"translate"),c(),l(4,"p-dropdown",62,63),C("ngModelChange",function(s){return
v(e),d(2).satTuning=s})("onChange",function(){return
v(e),d(2).onSatTuningChange()}),c(),l(6,"small",4),g(7),m(8,"translate"),c()()}if(2&t){const
e=d(2);a(2),S(f(3,8,"settings.channelscan.sattuning_label")),a(2),q(A(12,ht)),p("options",e.satTuningTable)("ngModel",e.satTuning)("editable",!1)("maxlength",0),a(3),T("
",f(8,10,"settings.channelscan.sattuning_desc")," ")}}function
Zse(t,i){if(1&t){const
e=I();l(0,"div",0)(1,"label",64),g(2),m(3,"translate"),c(),l(4,"p-dropdown",65,66),C("ngModelChange",function(s){return
v(e),d(2).scanRequest.Bandwidth=s}),c(),l(6,"small",4),g(7),m(8,"transl
ate"),c()()}if(2&t){const
e=d(2);a(2),S(f(3,8,"settings.channelscan.bandwidth_label")),a(2),q(A(12,ht)),p("options",e.bandwidthTable)("ngModel",e.scanRequest.Bandwidth)("editable",!1)("maxlength",0),a(3),T("
",f(8,10,"settings.channelscan.bandwidth_desc")," ")}}function
Xse(t,i){if(1&t){const
e=I();l(0,"div",0)(1,"label",67),g(2),m(3,"translate"),c(),l(4,"p-dropdown",68,69),C("ngModelChange",function(s){return
v(e),d(2).scanRequest.Polarity=s}),c(),l(6,"small",4),g(7),m(8,"translate"),c()()}if(2&t){const
e=d(2);a(2),S(f(3,8,"settings.channelscan.polarity_label")),a(2),q(A(12,ht)),p("options",e.polarityTable)("ngModel",e.scanRequest.Polarity)("editable",!1)("maxlength",0),a(3),T("
",f(8,10,"settings.channelscan.polarity_desc")," ")}}function
ere(t,i){if(1&t){const
e=I();l(0,"div",0)(1,"label",70),g(2),m(3,"translate"),c(),l(4,"p-dropdown",71,72),C("ngModelChange",function(s){return
v(e),d(2).scanRequest.SymbolRate=s}),c(),l(6,"small",4),g(7),m(8,"translate"),c()()}if(2&t){const
e=d(2
);a(2),S(f(3,8,"settings.channelscan.symbolrate_label")),a(2),q(A(12,ht)),p("options",e.dvbcSymbolRateTable)("ngModel",e.scanRequest.SymbolRate)("editable",!0)("maxlength",8),a(3),T("
",f(8,10,"settings.channelscan.dvbcsymbolrate_desc"),"
")}}function tre(t,i){if(1&t){const
e=I();l(0,"div",0)(1,"label",73),g(2),m(3,"translate"),c(),l(4,"p-dropdown",74,75),C("ngModelChange",function(s){return
v(e),d(2).scanRequest.SymbolRate=s}),c(),l(6,"small",4),g(7),m(8,"translate"),c()()}if(2&t){const
e=d(2);a(2),S(f(3,8,"settings.channelscan.symbolrate_label")),a(2),q(A(12,ht)),p("options",e.dvbsSymbolRateTable)("ngModel",e.scanRequest.SymbolRate)("editable",!0)("maxlength",8),a(3),T("
",f(8,10,"settings.channelscan.dvbssymbolrate_desc"),"
")}}function nre(t,i){if(1&t){const
e=I();l(0,"div",0)(1,"label",76),g(2),m(3,"translate"),c(),l(4,"p-dropdown",77,78),C("ngModelChange",function(s){return
v(e),d(2).scanRequest.Constellation=s}),c(),l(6,"small",4),g(7),m(8,"translate"),c()()}if(2&t){const
e=d
(2);a(2),S(f(3,8,"settings.channelscan.constellation_label")),a(2),q(A(12,ht)),p("options",e.modulationTable)("ngModel",e.scanRequest.Constellation)("editable",!1)("maxlength",0),a(3),T("
",f(8,10,"settings.channelscan.constellation_desc"),"
")}}function ire(t,i){if(1&t){const
e=I();l(0,"div",0)(1,"label",79),g(2),m(3,"translate"),c(),l(4,"p-dropdown",80,81),C("ngModelChange",function(s){return
v(e),d(2).scanRequest.Modulation=s}),c(),l(6,"small",4),g(7),m(8,"translate"),c()()}if(2&t){const
e=d(2);a(2),S(f(3,8,"settings.channelscan.modulation_label")),a(2),q(A(12,ht)),p("options",e.modulationTable)("ngModel",e.scanRequest.Modulation)("editable",!1)("maxlength",0),a(3),T("
",f(8,10,"settings.channelscan.Modulation_desc")," ")}}function
sre(t,i){if(1&t){const
e=I();l(0,"div",0)(1,"label",82),g(2),m(3,"translate"),c(),l(4,"p-dropdown",83,84),C("ngModelChange",function(s){return
v(e),d(2).scanRequest.Modulation=s}),c(),l(6,"small",4),g(7),m(8,"translate"),c()()}if(2&t){const
e=d(2);a(2)
,S(f(3,8,"settings.channelscan.modulation_label")),a(2),q(A(12,ht)),p("options",e.dvbsModulationTable)("ngModel",e.scanRequest.Modulation)("editable",!1)("maxlength",0),a(3),T("
",f(8,10,"settings.channelscan.dvbsmodulation_desc"),"
")}}function rre(t,i){if(1&t){const
e=I();l(0,"div",0)(1,"label",85),g(2),m(3,"translate"),c(),l(4,"p-dropdown",86,87),C("ngModelChange",function(s){return
v(e),d(2).scanRequest.ModSys=s}),c(),l(6,"small",4),g(7),m(8,"translate"),c()()}if(2&t){const
e=d(2);a(2),S(f(3,8,"settings.channelscan.modsys_label")),a(2),q(A(12,ht)),p("options",e.dvbtModSysTable)("ngModel",e.scanRequest.ModSys)("editable",!1)("maxlength",0),a(3),T("
",f(8,10,"settings.channelscan.dvbtmodsys_desc")," ")}}function
ore(t,i){if(1&t){const
e=I();l(0,"div",0)(1,"label",88),g(2),m(3,"translate"),c(),l(4,"p-dropdown",89,90),C("ngModelChange",function(s){return
v(e),d(2).scanRequest.ModSys=s}),c(),l(6,"small",4),g(7),m(8,"translate"),c()()}if(2&t){const
e=d(2);a(2),S(f(3,8,"settings.channe
lscan.modsys_label")),a(2),q(A(12,ht)),p("options",e.dvbcModSysTable)("ngModel",e.scanRequest.ModSys)("editable",!1)("maxlength",0),a(3),T("
",f(8,10,"settings.channelscan.dvbcmodsys_desc")," ")}}function
are(t,i){if(1&t){const
e=I();l(0,"div",0)(1,"label",91),g(2),m(3,"translate"),c(),l(4,"p-dropdown",92,93),C("ngModelChange",function(s){return
v(e),d(2).scanRequest.ModSys=s}),c(),l(6,"small",4),g(7),m(8,"translate"),c()()}if(2&t){const
e=d(2);a(2),S(f(3,8,"settings.channelscan.modsys_label")),a(2),q(A(12,ht)),p("options",e.dvbsModSysTable)("ngModel",e.scanRequest.ModSys)("editable",!1)("maxlength",0),a(3),T("
",f(8,10,"settings.channelscan.dvbsmodsys_desc")," ")}}function
lre(t,i){if(1&t){const
e=I();l(0,"div",0)(1,"label",94),g(2),m(3,"translate"),c(),l(4,"p-dropdown",95,96),C("ngModelChange",function(s){return
v(e),d(2).scanRequest.CodeRateLP=s}),c(),l(6,"small",4),g(7),m(8,"translate"),c()()}if(2&t){const
e=d(2);a(2),S(f(3,8,"settings.channelscan.coderatelp_label")),a(2),q(A(12
,ht)),p("options",e.fecTable)("ngModel",e.scanRequest.CodeRateLP)("editable",!1)("maxlength",0),a(3),T("
",f(8,10,"settings.channelscan.coderatelp_desc")," ")}}function
cre(t,i){if(1&t){const
e=I();l(0,"div",0)(1,"label",97),g(2),m(3,"translate"),c(),l(4,"p-dropdown",98,99),C("ngModelChange",function(s){return
v(e),d(2).scanRequest.CodeRateHP=s}),c(),l(6,"small",4),g(7),m(8,"translate"),c()()}if(2&t){const
e=d(2);a(2),S(f(3,8,"settings.channelscan.coderatehp_label")),a(2),q(A(12,ht)),p("options",e.fecTable)("ngModel",e.scanRequest.CodeRateHP)("editable",!1)("maxlength",0),a(3),T("
",f(8,10,"settings.channelscan.coderatehp_desc")," ")}}function
ure(t,i){if(1&t){const
e=I();l(0,"div",0)(1,"label",100),g(2),m(3,"translate"),c(),l(4,"p-dropdown",101,102),C("ngModelChange",function(s){return
v(e),d(2).scanRequest.FEC=s}),c(),l(6,"small",4),g(7),m(8,"translate"),c()()}if(2&t){const
e=d(2);a(2),S(f(3,8,"settings.channelscan.FEC_label")),a(2),q(A(12,ht)),p("options",e.fecTable)("ngModel",e.
scanRequest.FEC)("editable",!1)("maxlength",0),a(3),T("
",f(8,10,"settings.channelscan.FEC_desc")," ")}}function
dre(t,i){if(1&t){const
e=I();l(0,"div",0)(1,"label",103),g(2),m(3,"translate"),c(),l(4,"p-dropdown",104,105),C("ngModelChange",function(s){return
v(e),d(2).scanRequest.TransmissionMode=s}),c(),l(6,"small",4),g(7),m(8,"translate"),c()()}if(2&t){const
e=d(2);a(2),S(f(3,8,"settings.channelscan.transmissionmode_label")),a(2),q(A(12,ht)),p("options",e.transmissionModeTable)("ngModel",e.scanRequest.TransmissionMode)("editable",!1)("maxlength",0),a(3),T("
",f(8,10,"settings.channelscan.transmissionmode_desc"),"
")}}function pre(t,i){if(1&t){const
e=I();l(0,"div",0)(1,"label",106),g(2),m(3,"translate"),c(),l(4,"p-dropdown",107,108),C("ngModelChange",function(s){return
v(e),d(2).scanRequest.GuardInterval=s}),c(),l(6,"small",4),g(7),m(8,"translate"),c()()}if(2&t){const
e=d(2);a(2),S(f(3,8,"settings.channelscan.guardinterval_label")),a(2),q(A(12,ht)),p("options",e.guardIntervalTable
)("ngModel",e.scanRequest.GuardInterval)("editable",!1)("maxlength",0),a(3),T("
",f(8,10,"settings.channelscan.guardinterval_desc"),"
")}}function hre(t,i){if(1&t){const
e=I();l(0,"div",0)(1,"label",109),g(2),m(3,"translate"),c(),l(4,"p-dropdown",110,111),C("ngModelChange",function(s){return
v(e),d(2).scanRequest.Hierarchy=s}),c(),l(6,"small",4),g(7),m(8,"translate"),c()()}if(2&t){const
e=d(2);a(2),S(f(3,8,"settings.channelscan.hierarchy_label")),a(2),q(A(12,ht)),p("options",e.hierarchyTable)("ngModel",e.scanRequest.Hierarchy)("editable",!1)("maxlength",0),a(3),T("
",f(8,10,"settings.channelscan.hierarchy_desc")," ")}}function
mre(t,i){if(1&t){const
e=I();l(0,"div",0)(1,"label",112),g(2),m(3,"translate"),c(),l(4,"p-dropdown",113,114),C("ngModelChange",function(s){return
v(e),d(2).scanRequest.RollOff=s}),c(),l(6,"small",4),g(7),m(8,"translate"),c()()}if(2&t){const
e=d(2);a(2),S(f(3,8,"settings.channelscan.rolloff_label")),a(2),q(A(12,ht)),p("options",e.rollOffTable)("ngModel",e.scanR
equest.RollOff)("editable",!1)("maxlength",0),a(3),T("
",f(8,10,"settings.channelscan.rolloff_desc")," ")}}const
Tg=function(){return["DVBS","DVBS2"]},fre=function(t){return{unit:t}},gre=function(){return["DVBC","DVBS","DVBS2"]};function
_re(t,i){if(1&t){const
e=I();l(0,"p-fieldset",37),m(1,"translate"),_(2,Yse,9,13,"div",33),l(3,"div",0)(4,"label",55),g(5),m(6,"translate"),c(),l(7,"p-inputNumber",56),C("ngModelChange",function(s){return
v(e),d().scanRequest.Frequency=s}),c(),l(8,"small",4),k(9,"div",57),c()(),_(10,Zse,9,13,"div",33),_(11,Xse,9,13,"div",33),_(12,ere,9,13,"div",33),_(13,tre,9,13,"div",33),l(14,"div",0)(15,"label",58),g(16),m(17,"translate"),c(),l(18,"p-dropdown",59,60),C("ngModelChange",function(s){return
v(e),d().scanRequest.Inversion=s}),c(),l(20,"small",4),g(21),m(22,"translate"),c()(),_(23,nre,9,13,"div",33),_(24,ire,9,13,"div",33),_(25,sre,9,13,"div",33),_(26,rre,9,13,"div",33),_(27,ore,9,13,"div",33),_(28,are,9,13,"div",33),_(29,lre,9,13,"div",33),_(30,cre,9,13
,"div",33),_(31,ure,9,13,"div",33),_(32,dre,9,13,"div",33),_(33,pre,9,13,"div",33),_(34,hre,9,13,"div",33),_(35,mre,9,13,"div",33),c()}if(2&t){const
e=d();x("legend",f(1,35,"settings.channelscan.type.fulltuned")),p("toggleable",!1)("collapsed",!1),a(2),p("ngIf","DVBS2"==e.scanSubType),a(3),S(f(6,37,"settings.channelscan.frequency_label")),a(2),p("ngModel",e.scanRequest.Frequency)("min",0)("max",999999999),a(2),p("translate","settings.channelscan.frequency_desc")("translateParams",U(44,fre,A(43,Tg).includes(e.scanSubType)?"kHZ":"Hz")),a(1),p("ngIf",A(46,Xs).includes(e.scanSubType)),a(1),p("ngIf",A(47,Tg).includes(e.scanSubType)),a(1),p("ngIf","DVBC"==e.scanSubType),a(1),p("ngIf",A(48,Tg).includes(e.scanSubType)),a(3),S(f(17,39,"settings.channelscan.inversion_label")),a(2),q(A(49,ht)),p("options",e.inversionTable)("ngModel",e.scanRequest.Inversion)("editable",!1)("maxlength",0),a(3),T("
",f(22,41,"settings.channelscan.inversion_desc"),"
"),a(2),p("ngIf",A(50,Xs).includes(e.scanSubType
)),a(1),p("ngIf","DVBC"==e.scanSubType),a(1),p("ngIf","DVBS2"==e.scanSubType),a(1),p("ngIf","DVBT2"==e.scanSubType),a(1),p("ngIf","DVBC"==e.scanSubType),a(1),p("ngIf","DVBS2"==e.scanSubType),a(1),p("ngIf",A(51,Xs).includes(e.scanSubType)),a(1),p("ngIf",A(52,Xs).includes(e.scanSubType)),a(1),p("ngIf",A(53,gre).includes(e.scanSubType)),a(1),p("ngIf",A(54,Xs).includes(e.scanSubType)),a(1),p("ngIf",A(55,Xs).includes(e.scanSubType)),a(1),p("ngIf",A(56,Xs).includes(e.scanSubType)),a(1),p("ngIf","DVBS2"==e.scanSubType)}}function
bre(t,i){if(1&t){const
e=I();l(0,"p-fieldset",37),m(1,"translate"),l(2,"div",0)(3,"label",115),g(4),m(5,"translate"),c(),l(6,"p-dropdown",116,117),C("ngModelChange",function(s){return
v(e),d().scanRequest.ScanId=s}),c(),k(8,"small",4),c()()}if(2&t){const
e=d();x("legend",f(1,10,"settings.channelscan.type.import")),p("toggleable",!1)("collapsed",!1),a(4),S(f(5,12,"settings.channelscan.scanimport_label")),a(2),q(A(14,ht)),p("options",e.scans)("ngModel",e.scanRequest.
ScanId)("editable",!1)("maxlength",0)}}function
vre(t,i){if(1&t){const
e=I();l(0,"div",0)(1,"label",122),g(2),m(3,"translate"),c(),l(4,"p-dropdown",123,124),C("ngModelChange",function(s){return
v(e),d(2).scanRequest.MplexId=s}),c(),k(6,"small",4),c()}if(2&t){const
e=d(2);a(2),S(f(3,7,"settings.channelscan.transport_label")),a(2),q(A(9,ht)),p("options",e.multiplex)("ngModel",e.scanRequest.MplexId)("editable",!1)("maxlength",0)}}function
Cre(t,i){if(1&t){const
e=I();l(0,"p-fieldset",37),m(1,"translate"),_(2,vre,7,10,"div",33),l(3,"div",0)(4,"p-checkbox",118,119),C("ngModelChange",function(s){return
v(e),d().scanRequest.IgnoreSignalTimeout=s}),m(6,"translate"),c(),l(7,"small",4),g(8),m(9,"translate"),c()(),l(10,"div",0)(11,"p-checkbox",120,121),C("ngModelChange",function(s){return
v(e),d().scanRequest.FollowNITSetting=s}),m(13,"translate"),c(),l(14,"small",4),g(15),m(16,"translate"),c()()()}if(2&t){const
e=d();x("legend",f(1,12,"settings.channelscan.type.transports")),p("toggleable",!1
)("collapsed",!1),a(2),p("ngIf","ONETRANSPORT"==e.scanRequest.ScanType),a(2),x("label",f(6,14,"settings.channelscan.ignoresignaltimeout_label")),p("ngModel",e.scanRequest.IgnoreSignalTimeout)("binary",!0),a(4),T("
",f(9,16,"settings.channelscan.ignoresignaltimeout_desc"),"
"),a(3),x("label",f(13,18,"settings.channelscan.follownitsetting_label")),p("ngModel",e.scanRequest.FollowNITSetting)("binary",!0),a(4),T("
",f(16,20,"settings.channelscan.follownitsetting_desc"),"
")}}function
yre(t,i){1&t&&(l(0,"small",4),g(1),m(2,"translate"),c()),2&t&&(a(1),T("
",f(2,1,"settings.channelscan.scan_desc")," "))}function
wre(t,i){if(1&t&&(l(0,"div",0)(1,"div",125)(2,"b"),g(3),c(),g(4,"
\xa0 "),c(),k(5,"br"),c()),2&t){const
e=d();a(3),S(e.scanStatus.DialogMsg)}}function Tre(t,i){if(1&t){const
e=I();l(0,"div",0)(1,"input",126,127),C("ngModelChange",function(s){return
v(e),d().dialogResponse.DialogString=s}),c()()}if(2&t){const
e=d();a(1),p("ngModel",e.dialogResponse.DialogString)}}function Sre(t,i){
if(1&t){const
e=I();l(0,"div",0)(1,"label",128),g(2),m(3,"translate"),c(),l(4,"p-dropdown",129,3),C("ngModelChange",function(s){return
v(e),d().buttonText=s}),c()()}if(2&t){const
e=d();a(2),S(f(3,7,"settings.channelscan.scanimport_option")),a(2),q(A(9,ht)),p("options",e.scanStatus.DialogButtons)("ngModel",e.buttonText)("editable",!1)("maxlength",0)}}function
xre(t,i){if(1&t){const
e=I();l(0,"div",0)(1,"p-button",130),C("onClick",function(){return
v(e),d().respondDialog()}),m(2,"translate"),c()()}2&t&&(a(1),x("label",f(2,1,"common.submit")))}const
Sg=function(){return{height:"20px"}},Dre=function(){return{width:"100%",height:"400px"}};class
j{constructor(i,e){this.label=i,this.value=e}}class
Ar{constructor(i,e,n,s,r,o,u){this.label=i,this.Frequency=e,this.Polarity=n,this.SymbolRate=s,this.Modulation=r,this.ModSys=o,this.FEC=u}}let
Mre=(()=>{class
t{constructor(e,n,s,r){this.translate=e,this.channelService=n,this.captureCardService=s,this.setupService=r,this.serviceValues=[new
j("sett
ings.channelscan.tv","tv"),new
j("settings.channelscan.tvradio","audio"),new
j("settings.channelscan.all","all")],this.scanSubType="",this.scanTypes=[],this.freqTableSelect=[new
j("settings.channelscan.freq.usa.broadcast","us"),new
j("settings.channelscan.freq.usa.cablehi","uscablehigh"),new
j("settings.channelscan.freq.usa.cablehrchi","ushrchigh"),new
j("settings.channelscan.freq.usa.cableirchi","usirchigh"),new
j("settings.channelscan.freq.usa.cable","uscable"),new
j("settings.channelscan.freq.usa.cablehrc","ushrc"),new
j("settings.channelscan.freq.usa.cableirc","usirc")],this.countryTable=[new
j("settings.channelscan.country.au","au"),new
j("settings.channelscan.country.cl","cl"),new
j("settings.channelscan.country.cz","cz"),new
j("settings.channelscan.country.dk","dk"),new
j("settings.channelscan.country.fi","fi"),new
j("settings.channelscan.country.fr","fr"),new
j("settings.channelscan.country.de","de"),new
j("settings.channelscan.country.gr","gr"),new
j("settings.channelscan.c
ountry.il","il"),new
j("settings.channelscan.country.it","it"),new
j("settings.channelscan.country.nl","nl"),new
j("settings.channelscan.country.nz","nz"),new
j("settings.channelscan.country.es","es"),new
j("settings.channelscan.country.se","se"),new
j("settings.channelscan.country.gb","gb")],this.networkTable=[new
j("settings.channelscan.country.de","de"),new
j("settings.channelscan.country.nl","nl"),new
j("settings.channelscan.country.gb","gb")],this.satTuningTable=[new
Ar("(Select
Satellite)",0,"h","27500000","qpsk","DVB-S2","auto"),new
Ar("Thor 5/6/7
0.8W",10872e3,"h","25000000","8psk","DVB-S2","3/4"),new
Ar("Eutelsat
7.0E",10721e3,"h","22000000","qpsk","DVB-S","3/4"),new
Ar("Hotbird
13.0E",12015e3,"h","27500000","8psk","DVB-S2","3/4"),new
Ar("Astra-1
19.2E",11229e3,"v","22000000","8psk","DVB-S2","2/3"),new
Ar("Astra-3
23.5E",12031500,"h","27500000","qpsk","DVB-S2","auto"),new
Ar("Astra-2
28.2E",10714e3,"h","22000000","qpsk","DVB-S","5/6")],this.atscModulationTable=[ne
w j("settings.channelscan.modulation.atsc.vsb8","vsb8"),new
j("settings.channelscan.modulation.atsc.qam256","qam256"),new
j("settings.channelscan.modulation.atsc.qam128","qam128"),new
j("settings.channelscan.modulation.atsc.qam64","qam64")],this.bandwidthTable=[new
j("settings.channelscan.auto","a"),new j("6
MHz","6"),new j("7 MHz","7"),new j("8
MHz","8")],this.inversionTable=[new
j("settings.channelscan.auto","a"),new
j("settings.channelscan.on","1"),new
j("settings.channelscan.off","0")],this.modulationTable=[new
j("settings.channelscan.auto","auto"),new
j("QPSK","qpsk"),new j("QAM-16","qam_16"),new
j("QAM-32","qam_32"),new j("QAM-64","qam_64"),new
j("QAM-128","qam_128"),new
j("QAM-256","qam_256")],this.dvbsModulationTable=[new
j("QPSK","qpsk"),new j("8PSK","8psk"),new
j("QAM-16","qam_16"),new j("16PSK","16psk"),new
j("32PSK","32psk")],this.dvbtModSysTable=[new
j("DVB-T","DVB-T"),new
j("DVB-T2","DVB-T2")],this.dvbcModSysTable=[new
j("DVB-C/A","DVB-C/A"),new
j("DVB-C/B","DVB-C/B"),
new j("DVB-C/C","DVB-C/C")],this.dvbsModSysTable=[new
j("DVB-S","DVB-S"),new
j("DVB-S2","DVB-S2")],this.polarityTable=[new
j("settings.channelscan.polarity.horizontal","h"),new
j("settings.channelscan.polarity.vertical","v"),new
j("settings.channelscan.polarity.right","r"),new
j("settings.channelscan.polarity.left","l")],this.fecTable=[new
j("settings.channelscan.auto","auto"),new
j("settings.channelscan.none","none"),new
j("1/2","1/2"),new j("2/3","2/3"),new
j("3/4","3/4"),new j("4/5","4/5"),new
j("5/6","5/6"),new j("6/2","6/2"),new
j("7/8","7/8"),new j("8/9","8/9"),new
j("3/5","3/5"),new
j("9/10","9/10")],this.transmissionModeTable=[new
j("settings.channelscan.auto","a"),new
j("2K","2"),new
j("8K","8")],this.guardIntervalTable=[new
j("settings.channelscan.auto","auto"),new
j("1/4","1/4"),new j("1/8","1/8"),new
j("1/16","1/16"),new
j("1/32","1/32")],this.hierarchyTable=[new
j("settings.channelscan.auto","a"),new
j("settings.channelscan.none","n"),new
j("1","1"),new j("2","2"),new j
("4","4")],this.dvbcSymbolRateTable=[new
j("3450000","3450000"),new
j("5000000","5000000"),new
j("5900000","5900000"),new
j("6875000","6875000"),new
j("6900000","6900000"),new
j("6950000","6950000")],this.dvbsSymbolRateTable=[new
j("3333000","3333000"),new
j("22000000","22000000"),new
j("22500000","22500000"),new
j("23000000","23000000"),new
j("27500000","27500000"),new
j("28000000","28000000"),new
j("28500000","28500000"),new
j("29500000","29500000"),new
j("29700000","29700000"),new
j("29900000","29900000")],this.rollOffTable=[new
j("0.35","0.35"),new j("0.20","0.20"),new
j("0.25","0.25"),new
j("Auto","auto")],this.lockDesc="settings.channelscan.lock_value",this.nolockDesc="settings.channelscan.nolock_value",this.procDesc="processed",this.unprocDesc="unprocessed",this.satTuning=this.satTuningTable[0],this.scanRequest={CardId:0,DesiredServices:"tv",FreeToAirOnly:!0,ChannelNumbersOnly:!1,CompleteChannelsOnly:!0,FullChannelSearch:!0,RemoveDuplicates:!0,AddFullTS:!1,TestDecryptable:!1,
ScanType:"",FreqTable:"",Modulation:"",FirstChan:"",LastChan:"",ScanId:0,IgnoreSignalTimeout:!1,FollowNITSetting:!1,MplexId:0,Frequency:0,Bandwidth:"",Polarity:"",SymbolRate:"",Inversion:"",Constellation:"",ModSys:"",CodeRateLP:"",CodeRateHP:"",FEC:"",TransmissionMode:"",GuardInterval:"",Hierarchy:"",RollOff:""},this.emptyScanStatus={CardId:0,Status:"",SignalLock:!1,Progress:0,SignalNoise:0,SignalStrength:0,StatusLog:"",StatusText:"",StatusTitle:"",DialogMsg:"",DialogInputReq:!1,DialogButtons:[]},this.dialogResponse={CardId:0,DialogString:"",DialogButton:0},this.buttonText="",this.scanStatus=Object.assign({},this.emptyScanStatus),this.channels=[],this.channelCount=1,this.refreshCount=0,this.helpText="",this.scans=[],this.multiplex=[],this.tableTranslate(this.serviceValues),this.tableTranslate(this.freqTableSelect),this.tableTranslate(this.countryTable),this.tableTranslate(this.networkTable),this.tableTranslate(this.atscModulationTable),this.tableTranslate(this.bandwidthTable),this.t
ableTranslate(this.inversionTable),this.tableTranslate(this.modulationTable),this.tableTranslate(this.fecTable),this.tableTranslate(this.transmissionModeTable),this.tableTranslate(this.guardIntervalTable),this.tableTranslate(this.hierarchyTable),this.tableTranslate(this.polarityTable),e.get(this.lockDesc).subscribe(o=>this.lockDesc=o),e.get(this.nolockDesc).subscribe(o=>this.nolockDesc=o)}tableTranslate(e){e.forEach(n=>{n.label.startsWith("settings.")&&this.translate.get(n.label).subscribe(s=>n.label=s)})}ngAfterViewInit(){this.refreshStatus(!1),this.getScanList(),this.getmultiplexList(),this.iconnection.scanComponent=this}ngOnInit(){this.iconnection.deviceFree.subscribe(e=>{this.captureCardService.GetCardSubType(this.card.CardId).subscribe(n=>{this.cardSubType=n.CardSubType,this.buildScanTypeList(),this.onFreqTableChange(!1),"DVBT2"==this.cardSubType.InputType&&(this.scanRequest.ModSys="DVB-T2"),"DVBS2"==this.cardSubType.InputType&&(this.scanRequest.ModSys="DVB-S2"),"DVBC"==this.ca
rdSubType.InputType&&(this.scanRequest.SymbolRate="6900000"),["DVBS","DVBS2"].includes(this.cardSubType.InputType)&&(this.scanRequest.SymbolRate="27500000")})}),this.iconnection.captureDeviceList.CaptureDeviceList.CaptureDevices.length>0&&!this.cardSubType&&this.iconnection.deviceFree.next(!0)}buildScanTypeList(){let
e=!1;switch(this.helpText="",this.scanSubType=this.cardSubType.InputType,this.cardSubType.InputType){case"V4L":case"MPEG":this.scanTypes.push({label:"settings.channelscan.type.full",value:"FULL"}),this.scanTypes.push({label:"settings.channelscan.type.import",value:"IMPORT"});break;case"DVBT":case"DVBT2":this.scanTypes.push({label:"settings.channelscan.type.full",value:"FULL"}),this.scanTypes.push({label:"settings.channelscan.type.fulltuned",value:"FULLTUNED"}),this.scanTypes.push({label:"settings.channelscan.type.import",value:"IMPORT"}),this.helpText="settings.channelscan.scantype_dvbt_desc",e=!0;break;case"DVBC":this.scanTypes.push({label:"settings.channelscan.type.fu
lltuned",value:"FULLTUNED"}),this.scanTypes.push({label:"settings.channelscan.type.full",value:"FULL"}),this.scanTypes.push({label:"settings.channelscan.type.import",value:"IMPORT"}),e=!0;break;case"DVBS":case"DVBS2":this.scanTypes.push({label:"settings.channelscan.type.fulltuned",value:"FULLTUNED"}),this.scanTypes.push({label:"settings.channelscan.type.import",value:"IMPORT"}),e=!0;break;case"ATSC":this.scanTypes.push({label:"settings.channelscan.type.full",value:"FULL"}),this.scanTypes.push({label:"settings.channelscan.type.import",value:"IMPORT"}),e=!0;break;case"HDHOMERUN":this.cardSubType.HDHRdoesDVBC?(this.scanSubType="DVBC",this.scanTypes.push({label:"settings.channelscan.type.fulltuned",value:"FULLTUNED"}),this.scanTypes.push({label:"settings.channelscan.type.full",value:"FULL"}),this.scanTypes.push({label:"settings.channelscan.type.import",value:"IMPORT"})):this.cardSubType.HDHRdoesDVB?(this.scanSubType="DVBT",this.scanTypes.push({label:"settings.channelscan.type.full",valu
e:"FULL"}),this.scanTypes.push({label:"settings.channelscan.type.fulltuned",value:"FULLTUNED"}),this.helpText="settings.channelscan.scantype_dvbt_desc"):(this.scanSubType="ATSC",this.scanTypes.push({label:"settings.channelscan.type.full",value:"FULL"})),this.scanTypes.push({label:"settings.channelscan.type.import",value:"IMPORT"}),this.scanTypes.push({label:"settings.channelscan.type.hdhrimport",value:"HDHRIMPORT"}),e=!0;break;case"VBOX":this.scanTypes.push({label:"settings.channelscan.type.vboximport",value:"VBOXIMPORT"});break;case"FREEBOX":this.scanTypes.push({label:"settings.channelscan.type.m3umpts",value:"MPTSIMPORT"}),this.scanTypes.push({label:"settings.channelscan.type.m3u",value:"M3UIMPORT"});break;case"ASI":this.scanTypes.push({label:"settings.channelscan.type.asi",value:"ASI"});break;case"EXTERNAL":this.scanTypes.push({label:"settings.channelscan.type.mpts",value:"MPTS"}),this.scanTypes.push({label:"settings.channelscan.type.externimport",value:"EXTIMPORT"});break;case"E
RROR_PROBE":this.scanTypes.push({label:"settings.channelscan.type.errorprobe",value:"ERROR"});break;default:this.scanTypes.push({label:"settings.channelscan.type.erroropen",value:"ERROR"})}e&&(this.scanTypes.push({label:"settings.channelscan.type.alltransport",value:"ALLTRANSPORT"}),this.scanTypes.push({label:"settings.channelscan.type.onetransport",value:"ONETRANSPORT"})),this.scanTypes.forEach(n=>this.translate.get(n.label).subscribe(s=>n.label=s)),this.helpText&&this.translate.get(this.helpText).subscribe(n=>this.helpText=n)}onScanTypeChange(){this.scanRequest.Frequency="FULLTUNED"==this.scanRequest.ScanType?this.videoSourceLookup[this.card.SourceId].ScanFrequency:0,setTimeout(()=>this.onFreqTableChange(!1),100)}onFreqTableChange(e){this.channels=[];let
n="";if(this.scanRequest.FreqTable.startsWith("us")){if(e||("us"==this.scanRequest.FreqTable?this.scanRequest.Modulation="vsb8":"vsb8"==this.scanRequest.Modulation&&(this.scanRequest.Modulation="qam256")),"vsb8"==this.scanRequest.
Modulation?n="ATSC Channel
":"qam256"==this.scanRequest.Modulation?n="QAM-256 Channel
":"qam128"==this.scanRequest.Modulation?n="QAM-128 Channel
":"qam64"==this.scanRequest.Modulation&&(n="QAM-64 Channel
"),"us"==this.scanRequest.FreqTable){if("vsb8"==this.scanRequest.Modulation)for(let
s=2;s<=36;s++)this.channels.push(n+s)}else
if(this.scanRequest.FreqTable.match(/us.*high/))for(let
s=78;s<=158;s++)this.channels.push(n+s);else
if(this.scanRequest.FreqTable.match(/^us/)){this.channels.push(n+"T-13"),this.channels.push(n+"T-14");for(let
s=2;s<=158;s++)this.channels.push(n+s)}this.channels.length>0?setTimeout(()=>{this.scanRequest.FirstChan=this.channels[0],this.scanRequest.LastChan=this.channels[this.channels.length-1]},100):(this.scanRequest.FirstChan="",this.scanRequest.LastChan="")}}onSatTuningChange(){Object.assign(this.scanRequest,this.satTuning)}calcCount(){return
this.channelCount=this.channels.findIndex(e=>e==this.scanRequest.LastChan)-this.channels.findIndex(e=>e==this.scanR
equest.FirstChan)+1}getScanList(){this.channelService.GetScanList(this.card.SourceId).subscribe(e=>{this.scans=e.ScanList.Scans,this.scans.forEach(n=>{var
s=new Date(n.ScanDate);n.label=s.toLocaleDateString()+"
"+s.toLocaleTimeString()+"
"+(n.Processed?this.procDesc:this.unprocDesc)})})}getmultiplexList(){this.channelService.GetVideoMultiplexList({SourceID:this.card.SourceId}).subscribe(e=>{this.multiplex=e.VideoMultiplexList.VideoMultiplexes})}startScan(){if(this.iconnection.currentForm&&this.iconnection.currentForm.form.dirty)return
this.iconnection.work.startScan=!0,void
this.iconnection.saveForm();this.scanRequest.CardId=this.card.CardId,this.channelService.StartScan(this.scanRequest).subscribe(e=>{setTimeout(()=>this.refreshStatus(!0),500)})}stopScan(){this.channelService.StopScan(this.card.CardId).subscribe()}respondDialog(){this.dialogResponse.CardId=this.card.CardId,this.dialogResponse.DialogButton=this.scanStatus.DialogButtons.indexOf(this.buttonText),this.channelService.Se
ndScanDialogResponse(this.dialogResponse).subscribe(e=>this.iconnection.loadChannels())}refreshStatus(e){this.channelService.GetScanStatus().subscribe(n=>{this.scanStatus=n.ScanStatus,this.scrollpanel.scrollTop(1e5),"RUNNING"==this.scanStatus.Status?this.refreshCount=5:this.refreshCount--,this.refreshCount>0?setTimeout(()=>this.refreshStatus(!0),500):e&&this.iconnection.loadChannels()})}}return
t.\u0275fac=function(e){return
new(e||t)(D(Oe),D(Or),D(Gt),D(Me))},t.\u0275cmp=z({type:t,selectors:[["app-channelscan"]],viewQuery:function(e,n){if(1&e&&W(Hse,5),2&e){let
s;V(s=B())&&(n.scrollpanel=s.first)}},inputs:{card:"card",cardList:"cardList",iconnection:"iconnection",videoSourceLookup:"videoSourceLookup"},decls:131,vars:137,consts:[[1,"form-group","field"],["for","DesiredServices",1,"label","block"],["optionLabel","label","optionValue","value","name","DesiredServices",3,"options","ngModel","editable","maxlength","ngModelChange"],["DesiredServices","ngModel"],[1,"block"],["inputId","Fre
eToAirOnly","name","FreeToAirOnly",1,"label","mb-2","w-full",3,"ngModel","binary","label","ngModelChange"],["FreeToAirOnly","ngModel"],["inputId","ChannelNumbersOnly","name","ChannelNumbersOnly",1,"label","mb-2","w-full",3,"ngModel","binary","label","ngModelChange"],["ChannelNumbersOnly","ngModel"],["inputId","CompleteChannelsOnly","name","CompleteChannelsOnly",1,"label","mb-2","w-full",3,"ngModel","binary","label","ngModelChange"],["CompleteChannelsOnly","ngModel"],["inputId","FullChannelSearch","name","FullChannelSearch",1,"label","mb-2","w-full",3,"ngModel","binary","label","ngModelChange"],["FullChannelSearch","ngModel"],["inputId","RemoveDuplicates","name","RemoveDuplicates",1,"label","mb-2","w-full",3,"ngModel","binary","label","ngModelChange"],["RemoveDuplicates","ngModel"],["inputId","AddFullTS","name","AddFullTS",1,"label","mb-2","w-full",3,"ngModel","binary","label","ngModelChange"],["AddFullTS","ngModel"],["inputId","TestDecryptable","name","TestDecryptable",1,"label","mb
-2","w-full",3,"ngModel","binary","label","ngModelChange"],["TestDecryptable","ngModel"],["for","ScanType",1,"label","block"],["optionLabel","label","optionValue","value","name","ScanType",3,"options","ngModel","editable","maxlength","ngModelChange","onChange"],["ScanType","ngModel"],["class","mb-4
w-full",3,"legend","toggleable","collapsed",4,"ngIf"],[1,"grid"],[2,"display","flex","align-items","center"],["icon","pi
pi-play","iconPos","left",3,"label","disabled","onClick"],["class","block",4,"ngIf"],[1,"mb-4","w-full",3,"legend","collapsed","toggleable"],[1,"col-6"],[1,"col-10","bg-blue-100","text-gray-900"],[1,"label","block"],[1,"col-10"],[3,"value"],["class","form-group
field",4,"ngIf"],["icon","pi
pi-times-circle","iconPos","left","styleClass","p-button-danger",3,"label","disabled","onClick"],[1,"col-6",2,"white-space","pre-line"],["scroll",""],[1,"mb-4","w-full",3,"legend","toggleable","collapsed"],["for","FreqTable",1,"label","block"],["optionLabel","label","optionValue","val
ue","name","FreqTable",3,"options","ngModel","editable","maxlength","ngModelChange","onChange"],["FreqTable","ngModel"],["for","Country",1,"label","block"],["optionLabel","label","optionValue","value","name","Country",3,"options","ngModel","editable","maxlength","ngModelChange"],["Country","ngModel"],["for","atscModulation",1,"label","block"],["optionLabel","label","optionValue","value","name","atscModulation",3,"options","ngModel","editable","maxlength","ngModelChange","onChange"],["atscModulation","ngModel"],["for","FirstChan",1,"label","block"],["name","FirstChan",3,"options","ngModel","editable","maxlength","ngModelChange"],["FirstChan","ngModel"],[4,"ngIf"],[1,"p-error","block"],["for","LastChan",1,"label","block"],["name","LastChan",3,"options","ngModel","editable","maxlength","ngModelChange"],["LastChan","ngModel"],["for","Frequency",1,"label","block"],["name","Frequency","id","Frequency",3,"ngModel","min","max","ngModelChange"],[3,"translate","translateParams"],["for","Inver
sion",1,"label","block"],["name","Inversion","optionLabel","label","optionValue","value",3,"options","ngModel","editable","maxlength","ngModelChange"],["Inversion","ngModel"],["for","SatTuning",1,"label","block"],["name","SatTuning","optionLabel","label",3,"options","ngModel","editable","maxlength","ngModelChange","onChange"],["SatTuning","ngModel"],["for","Bandwidth",1,"label","block"],["name","Bandwidth","optionLabel","label","optionValue","value",3,"options","ngModel","editable","maxlength","ngModelChange"],["Bandwidth","ngModel"],["for","Polarity",1,"label","block"],["name","Polarity","optionLabel","label","optionValue","value",3,"options","ngModel","editable","maxlength","ngModelChange"],["Polarity","ngModel"],["for","dvbcSymbolRate",1,"label","block"],["name","dvbcSymbolRate","optionLabel","label","optionValue","value",3,"options","ngModel","editable","maxlength","ngModelChange"],["dvbcSymbolRate","ngModel"],["for","dvbsSymbolRate",1,"label","block"],["name","dvbsSymbolRate","
optionLabel","label","optionValue","value",3,"options","ngModel","editable","maxlength","ngModelChange"],["dvbsSymbolRate","ngModel"],["for","Constellation",1,"label","block"],["name","Constellation","optionLabel","label","optionValue","value",3,"options","ngModel","editable","maxlength","ngModelChange"],["Constellation","ngModel"],["for","Modulation",1,"label","block"],["name","Modulation","optionLabel","label","optionValue","value",3,"options","ngModel","editable","maxlength","ngModelChange"],["Modulation","ngModel"],["for","DVBSModulation",1,"label","block"],["name","DVBSModulation","optionLabel","label","optionValue","value",3,"options","ngModel","editable","maxlength","ngModelChange"],["DVBSModulation","ngModel"],["for","DVBTModSys",1,"label","block"],["name","DVBTModSys","optionLabel","label","optionValue","value",3,"options","ngModel","editable","maxlength","ngModelChange"],["DVBTModSys","ngModel"],["for","DVBCModSys",1,"label","block"],["name","DVBCModSys","optionLabel","lab
el","optionValue","value",3,"options","ngModel","editable","maxlength","ngModelChange"],["DVBCModSys","ngModel"],["for","DVBSModSys",1,"label","block"],["name","DVBSModSys","optionLabel","label","optionValue","value",3,"options","ngModel","editable","maxlength","ngModelChange"],["DVBSModSys","ngModel"],["for","CodeRateLP",1,"label","block"],["name","CodeRateLP","optionLabel","label","optionValue","value",3,"options","ngModel","editable","maxlength","ngModelChange"],["CodeRateLP","ngModel"],["for","CodeRateHP",1,"label","block"],["name","CodeRateHP","optionLabel","label","optionValue","value",3,"options","ngModel","editable","maxlength","ngModelChange"],["CodeRateHP","ngModel"],["for","FEC",1,"label","block"],["name","FEC","optionLabel","label","optionValue","value",3,"options","ngModel","editable","maxlength","ngModelChange"],["FEC","ngModel"],["for","TransmissionMode",1,"label","block"],["name","TransmissionMode","optionLabel","label","optionValue","value",3,"options","ngModel","ed
itable","maxlength","ngModelChange"],["TransmissionMode","ngModel"],["for","GuardInterval",1,"label","block"],["name","GuardInterval","optionLabel","label","optionValue","value",3,"options","ngModel","editable","maxlength","ngModelChange"],["GuardInterval","ngModel"],["for","Hierarchy",1,"label","block"],["name","Hierarchy","optionLabel","label","optionValue","value",3,"options","ngModel","editable","maxlength","ngModelChange"],["Hierarchy","ngModel"],["for","RollOff",1,"label","block"],["name","RollOff","optionLabel","label","optionValue","value",3,"options","ngModel","editable","maxlength","ngModelChange"],["RollOff","ngModel"],["for","ScanId",1,"label","block"],["optionLabel","label","optionValue","ScanId","name","ScanId",3,"options","ngModel","editable","maxlength","ngModelChange"],["ScanId","ngModel"],["inputId","IgnoreSignalTimeout","name","IgnoreSignalTimeout",1,"label","mb-2","w-full",3,"ngModel","binary","label","ngModelChange"],["IgnoreSignalTimeout","ngModel"],["inputId",
"FollowNITSetting","name","FollowNITSetting",1,"label","mb-2","w-full",3,"ngModel","binary","label","ngModelChange"],["FollowNITSetting","ngModel"],["for","MplexId",1,"label","block"],["optionLabel","Description","optionValue","MplexId","name","MplexId",3,"options","ngModel","editable","maxlength","ngModelChange"],["MplexId","ngModel"],[1,"col-10",2,"color","black","background-color","pink"],["pInputText","","id","DialogString","name","DialogString",1,"mb-2","form-control","w-full",3,"ngModel","ngModelChange"],["InputName","ngModel"],["for","DialogButtons",1,"label","block"],["name","DialogButtons",3,"options","ngModel","editable","maxlength","ngModelChange"],["styleClass","p-button-info",1,"gap-3",3,"label","onClick"]],template:function(e,n){1&e&&(l(0,"div",0)(1,"label",1),g(2),m(3,"translate"),c(),l(4,"p-dropdown",2,3),C("ngModelChange",function(r){return
n.scanRequest.DesiredServices=r}),c(),l(6,"small",4),g(7),m(8,"translate"),c()(),l(9,"div",0)(10,"p-checkbox",5,6),C("ngModelCh
ange",function(r){return
n.scanRequest.FreeToAirOnly=r}),m(12,"translate"),c(),l(13,"small",4),g(14),m(15,"translate"),c()(),l(16,"div",0)(17,"p-checkbox",7,8),C("ngModelChange",function(r){return
n.scanRequest.ChannelNumbersOnly=r}),m(19,"translate"),c(),l(20,"small",4),g(21),m(22,"translate"),c()(),l(23,"div",0)(24,"p-checkbox",9,10),C("ngModelChange",function(r){return
n.scanRequest.CompleteChannelsOnly=r}),m(26,"translate"),c(),l(27,"small",4),g(28),m(29,"translate"),c()(),l(30,"div",0)(31,"p-checkbox",11,12),C("ngModelChange",function(r){return
n.scanRequest.FullChannelSearch=r}),m(33,"translate"),c(),l(34,"small",4),g(35),m(36,"translate"),c()(),l(37,"div",0)(38,"p-checkbox",13,14),C("ngModelChange",function(r){return
n.scanRequest.RemoveDuplicates=r}),m(40,"translate"),c(),l(41,"small",4),g(42),m(43,"translate"),c()(),l(44,"div",0)(45,"p-checkbox",15,16),C("ngModelChange",function(r){return
n.scanRequest.AddFullTS=r}),m(47,"translate"),c(),l(48,"small",4),g(49),m(50,"translat
e"),c()(),l(51,"div",0)(52,"p-checkbox",17,18),C("ngModelChange",function(r){return
n.scanRequest.TestDecryptable=r}),m(54,"translate"),c(),l(55,"small",4),g(56),m(57,"translate"),c()(),l(58,"div",0)(59,"label",19),g(60),m(61,"translate"),c(),l(62,"p-dropdown",20,21),C("ngModelChange",function(r){return
n.scanRequest.ScanType=r})("onChange",function(){return
n.onScanTypeChange()}),c(),l(64,"small",4),g(65),c()(),_(66,Jse,9,13,"p-fieldset",22),_(67,_re,36,57,"p-fieldset",22),_(68,bre,9,15,"p-fieldset",22),_(69,Cre,17,22,"p-fieldset",22),k(70,"br")(71,"br"),l(72,"div",0)(73,"div",23)(74,"div",24)(75,"p-button",25),C("onClick",function(){return
n.startScan()}),m(76,"translate"),c()()(),_(77,yre,3,3,"small",26),c(),l(78,"p-fieldset",27),m(79,"translate"),l(80,"div",23)(81,"div",28)(82,"div",0)(83,"div",29)(84,"b"),g(85),c()()(),l(86,"div",0)(87,"label",30),g(88),m(89,"translate"),c(),l(90,"div",29),g(91),c()(),l(92,"div",0)(93,"label",30),g(94),m(95,"translate"),c(),l(96,"div",29),g(97)
,c()(),l(98,"div",0)(99,"label",30),g(100),m(101,"translate"),c(),l(102,"div",31),k(103,"p-progressBar",32),c()(),l(104,"div",0)(105,"label",30),g(106),m(107,"translate"),c(),l(108,"div",31),k(109,"p-progressBar",32),c()(),l(110,"div",0)(111,"label",30),g(112),m(113,"translate"),c(),l(114,"div",31),k(115,"p-progressBar",32),c()(),k(116,"br"),_(117,wre,6,1,"div",33),_(118,Tre,3,1,"div",33),_(119,Sre,6,10,"div",33),_(120,xre,3,3,"div",33),k(121,"br"),l(122,"div",0)(123,"div",24)(124,"p-button",34),C("onClick",function(){return
n.stopScan()}),m(125,"translate"),c()(),k(126,"small",4),c()(),l(127,"div",35)(128,"p-scrollPanel",null,36),g(130),c()()()()),2&e&&(a(2),S(f(3,81,"settings.channelscan.services_label")),a(2),q(A(131,ht)),p("options",n.serviceValues)("ngModel",n.scanRequest.DesiredServices)("editable",!1)("maxlength",0),a(3),T("
",f(8,83,"settings.channelscan.services_desc"),"
"),a(3),x("label",f(12,85,"settings.channelscan.ftaonly_label")),p("ngModel",n.scanRequest.FreeToAirOnly
)("binary",!0),a(4),T("
",f(15,87,"settings.channelscan.ftaonly_desc"),"
"),a(3),x("label",f(19,89,"settings.channelscan.channelnumbersonly_label")),p("ngModel",n.scanRequest.ChannelNumbersOnly)("binary",!0),a(4),T("
",f(22,91,"settings.channelscan.channelnumbersonly_desc"),"
"),a(3),x("label",f(26,93,"settings.channelscan.completeonly_label")),p("ngModel",n.scanRequest.CompleteChannelsOnly)("binary",!0),a(4),T("
",f(29,95,"settings.channelscan.completeonly_desc"),"
"),a(3),x("label",f(33,97,"settings.channelscan.fullsearch_label")),p("ngModel",n.scanRequest.FullChannelSearch)("binary",!0),a(4),T("
",f(36,99,"settings.channelscan.fullsearch_desc"),"
"),a(3),x("label",f(40,101,"settings.channelscan.removeduplicates_label")),p("ngModel",n.scanRequest.RemoveDuplicates)("binary",!0),a(4),T("
",f(43,103,"settings.channelscan.removeduplicates_desc"),"
"),a(3),x("label",f(47,105,"settings.channelscan.addfullts_label")),p("ngModel",n.scanRequest.AddFullTS)("binary",!0),a(4),T("
",f(50,107,"
settings.channelscan.addfullts_desc"),"
"),a(3),x("label",f(54,109,"settings.channelscan.testdecryptable_label")),p("ngModel",n.scanRequest.TestDecryptable)("binary",!0),a(4),T("
",f(57,111,"settings.channelscan.testdecryptable_desc"),"
"),a(4),S(f(61,113,"settings.channelscan.scantype_label")),a(2),q(A(132,ht)),p("options",n.scanTypes)("ngModel",n.scanRequest.ScanType)("editable",!1)("maxlength",0),a(3),T("
",n.helpText,"
"),a(1),p("ngIf","FULL"==n.scanRequest.ScanType),a(1),p("ngIf","FULLTUNED"==n.scanRequest.ScanType),a(1),p("ngIf","IMPORT"==n.scanRequest.ScanType),a(1),p("ngIf","ALLTRANSPORT"==n.scanRequest.ScanType||"ONETRANSPORT"==n.scanRequest.ScanType),a(6),x("label",f(76,115,"settings.channelscan.scan_label")),p("disabled",n.setupService.schedulingEnabled||"RUNNING"==n.scanStatus.Status||!n.card.SourceId),a(2),p("ngIf",n.iconnection.currentForm&&n.iconnection.currentForm.form.dirty||!n.card.SourceId),a(1),x("legend",f(79,117,"settings.channelscan.status_title")),p("collapse
d",!0)("toggleable",!1)("collapsed",!1),a(7),T("",n.scanStatus.StatusTitle,"
\xa0"),a(3),S(f(89,119,"settings.channelscan.status_label")),a(3),T("
",n.scanStatus.StatusText," \xa0
"),a(3),S(f(95,121,"settings.channelscan.lock_label")),a(3),T("
",n.scanStatus.SignalLock?n.lockDesc:n.nolockDesc," \xa0
"),a(3),S(f(101,123,"settings.channelscan.progress_label")),a(3),q(A(133,Sg)),p("value",n.scanStatus.Progress),a(3),S(f(107,125,"settings.channelscan.noise_label")),a(3),q(A(134,Sg)),p("value",n.scanStatus.SignalNoise),a(3),S(f(113,127,"settings.channelscan.strength_label")),a(3),q(A(135,Sg)),p("value",n.scanStatus.SignalStrength),a(2),p("ngIf",n.scanStatus.DialogMsg),a(1),p("ngIf",n.scanStatus.DialogInputReq),a(1),p("ngIf",n.scanStatus.DialogButtons.length>0),a(1),p("ngIf",n.scanStatus.DialogButtons.length>0||n.scanStatus.DialogInputReq),a(4),x("label",f(125,129,"settings.channelscan.stop_label")),p("disabled","RUNNING"!=n.scanStatus.Status||n.scanStatus.DialogButtons.length>0),a(4),q(A
(136,Dre)),a(2),T(" ",n.scanStatus.StatusLog,"
"))},directives:[Ot,Te,_e,_n,sn,Q,Ui,pt,mu,ve,tz,Ye,K2],pipes:[ce],styles:[""]}),t})(),kre=(()=>{class
t{constructor(e){this.httpClient=e}GetBackendStatus(){return
this.httpClient.get("/Status/GetBackendStatus")}}return
t.\u0275fac=function(e){return
new(e||t)(K(Bi))},t.\u0275prov=X({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();var
ci=(()=>(function(t){t[t.kState_Error=-1]="kState_Error",t[t.kState_None=0]="kState_None",t[t.kState_WatchingLiveTV=1]="kState_WatchingLiveTV",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"}(ci||(ci={})),ci))();let
cs=(()=>{class t{constructor(e){this.translate=e,this.allSlashes=new Reg
Exp(/\//g),this.deSpacer=new RegExp(/ /g),this.recTypeTrans={"Single
Record":"","Record All":"","Record
One":"","Record Daily":"","Record
Weekly":"","Override Recording":"","Do not
Record":"","Recording Template":"","Not
Recording":""};for(const[n,s]of Object.entries(this.recTypeTrans)){const
r="recrule."+n.replace(this.deSpacer,"");this.translate.get(r).subscribe(o=>{Object.defineProperty(this.recTypeTrans,n,{value:o})})}}formatDate(e,n){if(!e)return"";10==e.length&&(e+="
00:00");let s=new Date(e).toLocaleDateString();return
n?s.replace(this.allSlashes,"/<wbr>"):s}formatTime(e){return e?(new
Date(e).toLocaleTimeString()+" ").replace(/:..
/,""):""}formatDateTime(e,n){return this.formatDate(e,n)+"
"+this.formatTime(e)}}return t.\u0275fac=function(e){return
new(e||t)(K(Oe))},t.\u0275prov=X({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();const
Ire=function(t){return{EndTime:t}};function
Ere(t,i){if(1&t&&(de(0),g(1),m(2,"translate"),pe()),2&t){const
e=d().$implicit,n=d(2);a(1),yo
(" '",e.Recording.Title,"' on
",e.Recording.Channel.CallSign,".
",Dt(2,3,"dashboard.status.endtime_text",U(6,Ire,n.utility.formatTime(e.Recording.EndTime))),"
")}}const
Rre=function(t,i,e,n){return{CardId:t,Id:i,InputName:e,DisplayName:n}};function
Lre(t,i){if(1&t&&(l(0,"div")(1,"ul")(2,"li"),g(3),m(4,"translate"),c()()()),2&t){const
e=i.$implicit;a(3),T("",Dt(4,1,"dashboard.status.card_text",qn(4,Rre,e.CardId,e.Id,e.InputName,e.DisplayName)),"
")}}const Ore=function(t,i,e){return{Id:t,HostName:i,State:e}};function
Are(t,i){if(1&t&&(l(0,"div")(1,"ul")(2,"li"),g(3),m(4,"translate"),_(5,Ere,3,8,"ng-container",4),c(),_(6,Lre,5,9,"div",3),c()()),2&t){const
e=i.$implicit,n=d(2);a(3),T("
",Dt(4,3,"dashboard.status.encoder_text",Qt(6,Ore,e.Id,e.HostName,n.EncoderStatusText(e.State))),"
"),a(2),p("ngIf",7==e.State),a(1),p("ngForOf",e.Inputs)}}function
Pre(t,i){if(1&t&&(l(0,"div"),_(1,Are,7,10,"div",3),c()),2&t){const
e=d();a(1),p("ngForOf",e.encoders)}}function
Fre(t,i){1&t&&(l(0,"div"),g(1
),m(2,"translate"),c()),2&t&&(a(1),S(f(2,1,"dashboard.status.no_encoders")))}let
Nre=(()=>{class
t{constructor(e){this.utility=e}ngOnInit(){}EncoderStatusText(e){switch(e){case
ci.kState_Error:return"Error";case ci.kState_None:return"Idle";case
ci.kState_WatchingLiveTV:return"Watching Live TV";case
ci.kState_WatchingPreRecorded:return"Watching Pre Recorded";case
ci.kState_WatchingVideo:return"Watching Video";case
ci.kState_WatchingDVD:return"Watching DVD";case
ci.kState_WatchingBD:return"Watching BD";case
ci.kState_WatchingRecording:return"Watching Recording";case
ci.kState_RecordingOnly:return"Recording";case
ci.kState_ChangingState:return"Changing
State";default:return"unknown"}}}return t.\u0275fac=function(e){return
new(e||t)(D(cs))},t.\u0275cmp=z({type:t,selectors:[["app-status-encoders"]],inputs:{encoders:"encoders"},decls:7,vars:5,consts:[[1,"statusBox"],[4,"ngIf","ngIfElse"],["noEncoders",""],[4,"ngFor","ngForOf"],[4,"ngIf"]],template:function(e,n){if(1&e&&(l(0,"div",0)(1,"h2
"),g(2),m(3,"translate"),c(),_(4,Pre,2,1,"div",1),c(),_(5,Fre,3,3,"ng-template",null,2,we)),2&e){const
s=F(6);a(2),S(f(3,3,"dashboard.status.encoder_title")),a(2),p("ngIf",0!=(null==n.encoders?null:n.encoders.length))("ngIfElse",s)}},directives:[Q,at],pipes:[ce],styles:["","div.statusBox[_ngcontent-%COMP%]{width:auto;border-top:1px
solid var(--text-color);border-right:1px solid var(--text-color);border-bottom:1px solid
var(--text-color);border-left:10px solid var(--text-color);padding:10px;border-radius:8px
0 0 8px;margin:20px}"]}),t})();function
Vre(t,i){if(1&t&&(l(0,"li",4)(1,"div",5),g(2),c()()),2&t){const
e=i.$implicit,n=d(2);a(1),x("pTooltip",e.Description),a(1),Ih("
",n.utility.formatDate(e.StartTime),"
",n.utility.formatTime(e.StartTime)," - ",e.Recording.EncoderId," -
",e.Channel.CallSign," - ",e.Title," ")}}const
Bre=function(t){return{length:t}};function
Hre(t,i){if(1&t&&(l(0,"div")(1,"p"),g(2),m(3,"translate"),c(),l(4,"ul"),_(5,Vre,3,6,"li",3),c()()),2&t){const
e=d();a(2)
,S(Dt(3,2,"dashboard.status.schedule_text",U(5,Bre,null==e.scheduled?null:e.scheduled.length))),a(3),p("ngForOf",e.scheduled)}}function
qre(t,i){1&t&&(l(0,"p"),g(1),m(2,"translate"),c()),2&t&&(a(1),S(f(2,1,"dashboard.status.schedule_none")))}let
Gre=(()=>{class t{constructor(e){this.utility=e}ngOnInit(){}}return
t.\u0275fac=function(e){return
new(e||t)(D(cs))},t.\u0275cmp=z({type:t,selectors:[["app-status-scheduled"]],inputs:{scheduled:"scheduled"},decls:7,vars:5,consts:[[1,"statusBox"],[4,"ngIf","ngIfElse"],["noSchedule",""],["class","flex",4,"ngFor","ngForOf"],[1,"flex"],["tooltipPosition","bottom",3,"pTooltip"]],template:function(e,n){if(1&e&&(l(0,"div",0)(1,"h2"),g(2),m(3,"translate"),c(),_(4,Hre,6,7,"div",1),c(),_(5,qre,3,3,"ng-template",null,2,we)),2&e){const
s=F(6);a(2),S(f(3,3,"dashboard.status.schedule_title")),a(2),p("ngIf",0!=(null==n.scheduled?null:n.scheduled.length))("ngIfElse",s)}},directives:[Q,at,Kt],pipes:[ce],styles:["","div.statusBox[_ngcontent-%COMP%]{width:auto
;border-top:1px solid var(--text-color);border-right:1px solid
var(--text-color);border-bottom:1px solid var(--text-color);border-left:10px solid
var(--text-color);padding:10px;border-radius:8px 0 0
8px;margin:20px}"]}),t})();function
Ure(t,i){if(1&t&&(l(0,"div")(1,"p"),g(2),m(3,"translate"),c()()),2&t){const
e=i.$implicit,n=d(2);a(2),Eh("",n.utility.formatDate(e.StatusTime),"
",n.utility.formatTime(e.StatusTime)," - ",e.Program.Title," -
",e.LocalizedJobName," -
",f(3,6,"dashboard.status.jobs_status"),":
",e.LocalizedStatus," ")}}function
zre(t,i){if(1&t&&(l(0,"div")(1,"p"),g(2),m(3,"translate"),c(),l(4,"ul"),_(5,Ure,4,8,"div",3),c()()),2&t){const
e=d();a(2),T("",f(3,2,"dashboard.status.jobs_text"),":"),a(3),p("ngForOf",e.jobqueue)}}function
jre(t,i){1&t&&(l(0,"p"),g(1),m(2,"translate"),c()),2&t&&(a(1),S(f(2,1,"dashboard.status.jobs_none")))}let
$re=(()=>{class t{constructor(e){this.utility=e}ngOnInit(){}}return
t.\u0275fac=function(e){return new(e||t)(D(cs))},t.\u0275cmp=z({type:t
,selectors:[["app-status-jobqueue"]],inputs:{jobqueue:"jobqueue"},decls:7,vars:5,consts:[[1,"statusBox"],[4,"ngIf","ngIfElse"],["noJobs",""],[4,"ngFor","ngForOf"]],template:function(e,n){if(1&e&&(l(0,"div",0)(1,"h2"),g(2),m(3,"translate"),c(),_(4,zre,6,4,"div",1),c(),_(5,jre,3,3,"ng-template",null,2,we)),2&e){const
s=F(6);a(2),S(f(3,3,"dashboard.status.jobs_title")),a(2),p("ngIf",0!=(null==n.jobqueue?null:n.jobqueue.length))("ngIfElse",s)}},directives:[Q,at],pipes:[ce],styles:["","div.statusBox[_ngcontent-%COMP%]{width:auto;border-top:1px
solid var(--text-color);border-right:1px solid var(--text-color);border-bottom:1px solid
var(--text-color);border-left:10px solid var(--text-color);padding:10px;border-radius:8px
0 0 8px;margin:20px}"]}),t})();function
Wre(t,i){if(1&t&&(l(0,"div")(1,"p"),g(2),m(3,"translate"),c(),l(4,"ul")(5,"li"),g(6),m(7,"translate"),c(),l(8,"ul")(9,"li"),g(10),m(11,"translate"),c(),l(12,"li"),g(13),m(14,"translate"),c(),l(15,"li"),g(16),m(17,"translate"),c(),l(1
8,"li"),g(19),m(20,"translate"),c(),l(21,"ul")(22,"li"),g(23),m(24,"translate"),c(),l(25,"li"),g(26),m(27,"translate"),c(),l(28,"li"),g(29),m(30,"translate"),c()()()()()),2&t){const
e=i.ngIf;a(2),T("",f(3,16,"dashboard.status.mach.disk_summ"),":"),a(4),T("",f(7,18,"dashboard.status.mach.disk_total"),":"),a(4),We("",f(11,20,"dashboard.status.mach.total_space"),":
",e.Total.toLocaleString(),"
MiB"),a(3),We("",f(14,22,"dashboard.status.mach.space_used"),":
",e.Used.toLocaleString(),"
MiB"),a(3),We("",f(17,24,"dashboard.status.mach.space_free"),":
",e.Free.toLocaleString(),"
MiB"),a(3),We("",f(20,26,"dashboard.status.mach.space_after_expire"),":
",(e.Free+e.Expirable).toLocaleString(),""),a(4),We("",f(24,28,"dashboard.status.mach.space_livetv"),":
",e.LiveTV.toLocaleString(),"
MiB"),a(3),We("",f(27,30,"dashboard.status.mach.space_deleted"),":
",e.Deleted.toLocaleString(),"
MiB"),a(3),We("",f(30,32,"dashboard.status.mach.space_expirable"),":
",e.Expirable.toLocaleString()," MiB")}}functi
on Kre(t,i){1&t&&Y(0)}function
Qre(t,i){if(1&t&&(l(0,"div"),_(1,Kre,1,0,"ng-container",6),c()),2&t){const
e=i.$implicit;d(2);const
n=F(10);a(1),p("ngTemplateOutlet",n)("ngTemplateOutletContext",e)}}const
Jre=function(t,i,e){return{GuideStart:t,GuideEnd:i,GuideStatus:e}},Yre=function(t){return{GuideNext:t}},Zre=function(t,i){return{GuideThru:t,GuideDays:i}};function
Xre(t,i){if(1&t&&(l(0,"div")(1,"div")(2,"p"),g(3),m(4,"translate"),c(),l(5,"ul")(6,"li"),g(7),m(8,"translate"),c(),l(9,"li"),g(10),m(11,"translate"),c(),l(12,"li"),g(13),m(14,"translate"),c()()(),_(15,Wre,31,34,"div",1),l(16,"div")(17,"p"),g(18),m(19,"translate"),c(),_(20,Qre,2,2,"div",5),c(),l(21,"div")(22,"p"),g(23),m(24,"translate"),k(25,"br"),g(26),m(27,"translate"),k(28,"br"),g(29),m(30,"translate"),c()()()),2&t){const
e=d(),n=F(8);a(3),S(f(4,14,"dashboard.status.mach.load")),a(4),We("1
",f(8,16,"dashboard.status.mach.minute"),":
",e.machineinfo.LoadAvg1.toLocaleString(),""),a(3),We("5
",f(11,18,"dashboard.status.mac
h.minutes"),":
",e.machineinfo.LoadAvg2.toLocaleString(),""),a(3),We("15
",f(14,20,"dashboard.status.mach.minutes"),":
",e.machineinfo.LoadAvg3.toLocaleString(),""),a(2),p("ngIf",e.getStorageGroupTotal(e.machineinfo.StorageGroups))("ngIfElse",n),a(3),T("",f(19,22,"dashboard.status.mach.disk_details"),":"),a(2),p("ngForOf",e.getStorageGroupDetails(e.machineinfo.StorageGroups)),a(3),S(Dt(24,24,"dashboard.status.mach.mythfill_last",Qt(33,Jre,e.utility.formatDateTime(e.machineinfo.GuideStart),e.utility.formatDateTime(e.machineinfo.GuideEnd),e.machineinfo.GuideStatus))),a(3),T("
",Dt(27,27,"dashboard.status.mach.mythfill_next",U(37,Yre,e.utility.formatDateTime(e.machineinfo.GuideNext))),""),a(3),T("
",Dt(30,30,"dashboard.status.mach.mythfill_until",Ge(39,Zre,e.utility.formatDateTime(e.machineinfo.GuideThru),e.machineinfo.GuideDays)),"
")}}function
eoe(t,i){1&t&&(l(0,"p"),g(1),m(2,"translate"),c()),2&t&&(a(1),S(f(2,1,"dashboard.status.mach.none")))}function
toe(t,i){1&t&&(l(0,"p"),g(1),m(
2,"translate"),c()),2&t&&(a(1),S(f(2,1,"dashboard.status.mach.disk_none")))}function
noe(t,i){if(1&t&&(l(0,"ul")(1,"li"),g(2),m(3,"translate"),c(),l(4,"ul")(5,"li"),g(6),m(7,"translate"),c(),l(8,"li"),g(9),m(10,"translate"),c(),l(11,"li"),g(12),m(13,"translate"),c(),l(14,"li"),g(15),m(16,"translate"),c()()()),2&t){const
e=i.Id,n=i.Directory,s=i.Total,r=i.Used,o=i.Free;a(2),We("",f(3,10,"dashboard.status.mach.myth_drive"),"
#",e,""),a(4),We("",f(7,12,"dashboard.status.mach.disk_dirs"),":
",n,""),a(3),We("",f(10,14,"dashboard.status.mach.total_space"),":
",s.toLocaleString(),"
MiB"),a(3),We("",f(13,16,"dashboard.status.mach.space_used"),":
",r.toLocaleString(),"
MiB"),a(3),We("",f(16,18,"dashboard.status.mach.space_free"),":
",o.toLocaleString()," MiB")}}let ioe=(()=>{class
t{constructor(e){this.utility=e}ngOnInit(){}getStorageGroupTotal(e){return
e.filter(n=>"total"==n.Id)[0]}getStorageGroupDetails(e){return
e.filter(n=>"total"!=n.Id)}}return t.\u0275fac=function(e){return new(e||t)(
D(cs))},t.\u0275cmp=z({type:t,selectors:[["app-status-machineinfo"]],inputs:{machineinfo:"machineinfo"},decls:11,vars:5,consts:[[1,"statusBox"],[4,"ngIf","ngIfElse"],["noMachineInfo",""],["noDiskInfo",""],["printStorageGroup",""],[4,"ngFor","ngForOf"],[4,"ngTemplateOutlet","ngTemplateOutletContext"]],template:function(e,n){if(1&e&&(l(0,"div",0)(1,"h2"),g(2),m(3,"translate"),c(),_(4,Xre,31,42,"div",1),c(),_(5,eoe,3,3,"ng-template",null,2,we),_(7,toe,3,3,"ng-template",null,3,we),_(9,noe,17,20,"ng-template",null,4,we)),2&e){const
s=F(6);a(2),S(f(3,3,"dashboard.status.mach.title")),a(2),p("ngIf",n.machineinfo)("ngIfElse",s)}},directives:[Q,at,Rt],pipes:[ce],styles:["","div.statusBox[_ngcontent-%COMP%]{width:auto;border-top:1px
solid var(--text-color);border-right:1px solid var(--text-color);border-bottom:1px solid
var(--text-color);border-left:10px solid var(--text-color);padding:10px;border-radius:8px
0 0 8px;margin:20px}"]}),t})();const
soe=function(t,i,e){return{Name:t,Type:i,IP:e}};
function
roe(t,i){if(1&t&&(l(0,"div")(1,"li"),g(2),m(3,"translate"),c()()),2&t){const
e=i.$implicit;a(2),T("",Dt(3,1,"dashboard.status.backends_detail",Qt(4,soe,e.Name,e.Type,e.IP)),"
")}}function
ooe(t,i){if(1&t&&(l(0,"div")(1,"ul"),_(2,roe,4,8,"div",3),c()()),2&t){const
e=d();a(2),p("ngForOf",e.backends)}}function
aoe(t,i){1&t&&(l(0,"p"),g(1),m(2,"translate"),c()),2&t&&(a(1),S(f(2,1,"dashboard.status.backends_none")))}let
loe=(()=>{class t{constructor(){}ngOnInit(){}}return t.\u0275fac=function(e){return
new(e||t)},t.\u0275cmp=z({type:t,selectors:[["app-status-backends"]],inputs:{backends:"backends"},decls:7,vars:5,consts:[[1,"statusBox"],[4,"ngIf","ngIfElse"],["noBackends",""],[4,"ngFor","ngForOf"]],template:function(e,n){if(1&e&&(l(0,"div",0)(1,"h2"),g(2),m(3,"translate"),c(),_(4,ooe,3,1,"div",1),c(),_(5,aoe,3,3,"ng-template",null,2,we)),2&e){const
s=F(6);a(2),S(f(3,3,"dashboard.status.backends_title")),a(2),p("ngIf",0!=(null==n.backends?null:n.backends.length))("ngIfElse",s)}},
directives:[Q,at],pipes:[ce],styles:["","div.statusBox[_ngcontent-%COMP%]{width:auto;border-top:1px
solid var(--text-color);border-right:1px solid var(--text-color);border-bottom:1px solid
var(--text-color);border-left:10px solid var(--text-color);padding:10px;border-radius:8px
0 0 8px;margin:20px}"]}),t})();const
coe=function(t,i,e,n){return{Name:t,IP:i,Port:e,OnLine:n}};function
uoe(t,i){if(1&t&&(l(0,"div")(1,"li"),g(2),m(3,"translate"),c()()),2&t){const
e=i.$implicit;a(2),T("",Dt(3,1,"dashboard.status.frontends_detail",qn(4,coe,e.Name,e.IP,e.Port,e.OnLine)),"
")}}function
doe(t,i){if(1&t&&(l(0,"div")(1,"ul"),_(2,uoe,4,9,"div",3),c()()),2&t){const
e=d();a(2),p("ngForOf",e.frontends)}}function
poe(t,i){1&t&&(l(0,"p"),g(1),m(2,"translate"),c()),2&t&&(a(1),S(f(2,1,"dashboard.status.frontends_none")))}let
hoe=(()=>{class t{constructor(){}ngOnInit(){}}return t.\u0275fac=function(e){return
new(e||t)},t.\u0275cmp=z({type:t,selectors:[["app-status-frontends"]],inputs:{frontends:"frontends
"},decls:7,vars:5,consts:[[1,"statusBox"],[4,"ngIf","ngIfElse"],["noFrontends",""],[4,"ngFor","ngForOf"]],template:function(e,n){if(1&e&&(l(0,"div",0)(1,"h2"),g(2),m(3,"translate"),c(),_(4,doe,3,1,"div",1),c(),_(5,poe,3,3,"ng-template",null,2,we)),2&e){const
s=F(6);a(2),S(f(3,3,"dashboard.status.frontends_title")),a(2),p("ngIf",0!=(null==n.frontends?null:n.frontends.length))("ngIfElse",s)}},directives:[Q,at],pipes:[ce],styles:["","div.statusBox[_ngcontent-%COMP%]{width:auto;border-top:1px
solid var(--text-color);border-right:1px solid var(--text-color);border-bottom:1px solid
var(--text-color);border-left:10px solid var(--text-color);padding:10px;border-radius:8px
0 0 8px;margin:20px}"]}),t})();function
moe(t,i){if(1&t&&(l(0,"div",9)(1,"h2"),g(2),m(3,"translate"),c(),l(4,"div"),g(5),c()()),2&t){const
e=d().ngIf;a(2),S(f(3,2,"dashboard.status.misc_title")),a(3),T("
",e.Miscellaneous," ")}}function
foe(t,i){if(1&t&&(l(0,"div"),k(1,"app-status-encoders",2)(2,"app-status-scheduled",3)(3
,"app-status-jobqueue",4)(4,"app-status-machineinfo",5)(5,"app-status-backends",6)(6,"app-status-frontends",7),_(7,moe,6,4,"div",8),c()),2&t){const
e=i.ngIf;a(1),p("encoders",e.Encoders),a(1),p("scheduled",e.Scheduled),a(1),p("jobqueue",e.JobQueue),a(1),p("machineinfo",e.MachineInfo),a(1),p("backends",e.Backends),a(1),p("frontends",e.Frontends),a(1),p("ngIf",e.Miscellaneous)}}function
goe(t,i){1&t&&(l(0,"div"),g(1,"Loading..."),c())}let
_oe=(()=>{class
t{constructor(e){this.statusService=e}ngOnInit(){this.m_status$=this.statusService.GetBackendStatus()}}return
t.\u0275fac=function(e){return
new(e||t)(D(kre))},t.\u0275cmp=z({type:t,selectors:[["app-status"]],decls:7,vars:7,consts:[[4,"ngIf","ngIfElse"],["loading",""],[3,"encoders"],[3,"scheduled"],[3,"jobqueue"],[3,"machineinfo"],[3,"backends"],[3,"frontends"],["class","statusBox",4,"ngIf"],[1,"statusBox"]],template:function(e,n){if(1&e&&(l(0,"h2"),g(1),m(2,"translate"),c(),_(3,foe,8,7,"div",0),m(4,"async"),_(5,goe,2,0,"ng-template",
null,1,we)),2&e){const s=F(6);let
r;a(1),T("",f(2,3,"dashboard.backendStatus"),"
"),a(2),p("ngIf",null==(r=f(4,5,n.m_status$))?null:r.BackendStatus)("ngIfElse",s)}},directives:[Q,Nre,Gre,$re,ioe,loe,hoe],pipes:[ce,xy],styles:["div.statusBox[_ngcontent-%COMP%]{width:auto;border-top:1px
solid var(--text-color);border-right:1px solid var(--text-color);border-bottom:1px solid
var(--text-color);border-left:10px solid var(--text-color);padding:10px;border-radius:8px
0 0 8px;margin:20px}"]}),t})();const
boe=["recsform"],voe=["menu"];function Coe(t,i){}function
yoe(t,i){1&t&&g(0),2&t&&T(" ",i.$implicit,"
")}function woe(t,i){if(1&t){const
e=I();l(0,"p-dropdown",67),C("onChange",function(s){return
v(e).filterCallback(s.value)}),m(1,"translate"),_(2,yoe,1,1,"ng-template",68),c()}if(2&t){const
e=i.$implicit,n=d(2);x("placeholder",f(1,4,"settings.chanedit.all")),p("ngModel",e)("options",n.recGroups)("showClear",!0)}}function
Toe(t,i){if(1&t){const
e=I();l(0,"tr")(1,"th",43)(2,"button",44),C("cl
ick",function(s){return
v(e),d().showContextMenu(null,s)}),m(3,"translate"),c(),g(4),m(5,"translate"),m(6,"translate"),k(7,"p-columnFilter",45),g(8),m(9,"translate"),l(10,"p-columnFilter",46),_(11,woe,3,6,"ng-template",47),c(),l(12,"button",48),C("click",function(){v(e);const
s=d();return
s.refreshing=!0,s.refresh()}),m(13,"translate"),c(),g(14),c()(),l(15,"tr")(16,"th",49),g(17),m(18,"translate"),k(19,"p-sortIcon",50),c(),k(20,"th",51),l(21,"th",52),g(22),m(23,"translate"),c(),l(24,"th",53),g(25),m(26,"translate"),c(),l(27,"th",54),g(28),m(29,"translate"),k(30,"p-sortIcon",55),c(),l(31,"th",56),g(32),m(33,"translate"),k(34,"p-sortIcon",57),c(),l(35,"th",58),g(36),m(37,"translate"),c(),l(38,"th",59),g(39),m(40,"translate"),k(41,"p-sortIcon",60),c(),l(42,"th",61),g(43),m(44,"translate"),c(),l(45,"th",62),g(46),m(47,"translate"),c(),l(48,"th",63)(49,"a",64),k(50,"i",65),c(),k(51,"button",66),c()()}if(2&t){const
e=d();a(2),x("pTooltip",f(3,18,"common.selected_menu")),a(2),We("
\xa0\xa0
\xa0\xa0\xa0 ",f(5,20,"dashboard.recordings.filter"),": \xa0\xa0
",f(6,22,"dashboard.recordings.title"),": \xa0
"),a(3),p("matchModeOptions",e.matchModeTitle),a(1),T("
",f(9,24,"dashboard.recordings.recgrp"),": \xa0
"),a(2),p("showMenu",!1),a(2),x("pTooltip",f(13,26,"common.refresh")),a(2),T("
\xa0\xa0\xa0",e.programs.length," Rows "),a(3),T("
",f(18,28,"dashboard.recordings.title"),"
"),a(5),S(f(23,30,"dashboard.recordings.subtitle")),a(3),S(f(26,32,"dashboard.recordings.seas_ep")),a(3),T("
",f(29,34,"dashboard.recordings.orig_airdate")," "),a(4),T("
",f(33,36,"dashboard.recordings.airdate"),"
"),a(4),S(f(37,38,"dashboard.recordings.channel")),a(3),T("
",f(40,40,"dashboard.recordings.recgrp")," "),a(4),T("
",f(44,42,"dashboard.recordings.duration"),"
"),a(3),S(f(47,44,"dashboard.recordings.file_size")),a(5),p("disabled",!0)}}function
Soe(t,i){1&t&&(k(0,"i",80),m(1,"translate")),2&t&&x("pTooltip",f(1,1,"dashboard.recordings.damaged"))}function
xoe(t,i){1&t&&(k(0,"i",81),m(1,"transla
te")),2&t&&x("pTooltip",f(1,1,"dashboard.recordings.watched"))}function
Doe(t,i){if(1&t&&(l(0,"div"),g(1),c()),2&t){const
e=d().$implicit;a(1),We(" ",e.Season,"x",e.Episode,"
")}}const Moe=function(t){return{"line-through":t}};function
koe(t,i){if(1&t){const
e=I();l(0,"tr",69),C("contextmenu",function(s){const
o=v(e).$implicit;return
d().onContextMenu(o,s)}),l(1,"td",70),_(2,Soe,2,3,"i",71),g(3),c(),l(4,"td",51),_(5,xoe,2,3,"i",72),c(),l(6,"td",73),g(7),c(),l(8,"td",53),_(9,Doe,2,2,"div",74),c(),l(10,"td",62),k(11,"div",75),c(),l(12,"td",62),k(13,"div",75),c(),l(14,"td",58),g(15),c(),l(16,"td",76),g(17),c(),l(18,"td",61),g(19),m(20,"number"),c(),l(21,"td",62),g(22),m(23,"number"),c(),l(24,"td",63)(25,"a",77),m(26,"translate"),k(27,"i",78),c(),l(28,"button",79),C("click",function(s){const
o=v(e).$implicit;return d().showContextMenu(o,s)}),c()()()}if(2&t){const
e=i.$implicit,n=i.rowIndex,s=d();p("ngClass",U(27,Moe,"Deleted"==e.Recording.RecGroup))("pSelectableRow",e)("pSelectableRowIn
dex",n),a(2),p("ngIf",e.VideoPropNames.indexOf("DAMAGED")>-1),a(1),T("
",e.Title,"
"),a(2),p("ngIf",e.ProgramFlagNames.indexOf("WATCHED")>-1),a(1),x("pTooltip",e.Description),a(1),T("
",e.SubTitle,""),a(2),p("ngIf",e.Season>0||e.Episode>0),a(2),p("innerHTML",s.utility.formatDate(e.Airdate,!0),Bt),a(2),p("innerHTML",s.utility.formatDate(e.StartTime,!0),Bt),a(2),We("
",e.Channel.ChanNum,"
",e.Channel.CallSign,""),a(2),S(e.Recording.RecGroup),a(2),T("",Dt(20,19,s.getDuration(e),"1.0-0"),"
min"),a(3),T("
",Dt(23,22,e.Recording.FileSize/1e6,"1.0-0"),"
MB"),a(3),x("href",s.URLencode("/Content/GetRecording?RecordedId="+e.Recording.RecordedId),ln),x("pTooltip",f(26,25,"dashboard.recordings.download")),a(2),p("id","download_"+n)}}function
Ioe(t,i){1&t&&(k(0,"p-message",87),m(1,"translate")),2&t&&x("text",f(1,1,"common.savesuccess"))}function
Eoe(t,i){1&t&&(k(0,"p-message",88),m(1,"translate")),2&t&&x("text",f(1,1,"common.networkfail"))}function
Roe(t,i){if(1&t){const e=I();l(0,"div",82),_(1,
Ioe,2,3,"p-message",83),_(2,Eoe,2,3,"p-message",84),c(),l(3,"p-button",85),C("onClick",function(){return
v(e),d().closeDialog()}),m(4,"translate"),c(),l(5,"p-button",86),C("onClick",function(){return
v(e),d().saveProgram()}),m(6,"translate"),c()}if(2&t){const
e=d(),n=F(1);a(1),p("ngIf",e.successCount>0&&0==e.errorCount&&!n.dirty),a(1),p("ngIf",e.errorCount>0),a(1),x("label",f(4,5,"common.close")),a(2),x("label",f(6,7,"common.save")),p("disabled",!n.dirty||""==e.program.Title.trim())}}function
Loe(t,i){if(1&t){const
e=I();l(0,"p-button",89),C("onClick",function(){return
v(e),d().displayRecGrpDlg=!1}),m(1,"translate"),c(),l(2,"p-button",90),C("onClick",function(){return
v(e),d().updaterecgrp()}),m(3,"translate"),c()}if(2&t){const
e=d();x("label",f(1,3,"common.cancel")),a(2),x("label",f(3,5,"common.ok")),p("disabled",!e.newRecGroup.trim())}}function
Ooe(t,i){if(1&t){const
e=I();l(0,"p-button",91),C("onClick",function(){return
v(e),d().closeDialog()}),m(1,"translate"),c(),l(2,"p-button"
,92),C("onClick",function(){return
v(e),d().displayUnsaved=!1}),m(3,"translate"),c()}2&t&&(x("label",f(1,2,"common.nosave")),a(2),x("label",f(3,4,"common.continue")))}const
Aoe=function(){return{height:"75vw",width:"50vw"}},Poe=function(){return{minWidth:"400px"}};let
Foe=(()=>{class
t{constructor(e,n,s,r,o){this.dvrService=e,this.messageService=n,this.translate=s,this.setupService=r,this.utility=o,this.programs=[],this.selection=[],this.actionList=[],this.recGroups=[],this.newRecGroup="",this.program={Title:"",Recording:{}},this.displayMetadataDlg=!1,this.displayRecGrpDlg=!1,this.displayRunJobs=!1,this.displayUnsaved=!1,this.successCount=0,this.errorCount=0,this.refreshing=!1,this.priorRequest={},this.msg={Success:"common.success",Failed:"common.failed",NetFail:"common.networkfail",CanUndo:"dashboard.recordings.canundel",AlreadyDel:"dashboard.recordings.alreadydel",NonReRec:"dashboard.recordings.nonrerec",ActionsSelected:"dashboard.recordings.actionsselected",JobsSelected:"dashboar
d.recordings.jobsselected",UndefSelection:"dashboard.undefselection"},this.jobsoffset=3,this.jobs=[{id:"Transcode",label:"dashboard.recordings.job_Transcode",command:h=>this.runjob(h)},{id:"Commflag",label:"dashboard.recordings.job_Commflag",command:h=>this.runjob(h)},{id:"Metadata",label:"dashboard.recordings.job_Metadata",command:h=>this.runjob(h)},{id:"UserJob1",visible:!1,command:h=>this.runjob(h)},{id:"UserJob2",visible:!1,command:h=>this.runjob(h)},{id:"UserJob3",visible:!1,command:h=>this.runjob(h)},{id:"UserJob4",visible:!1,command:h=>this.runjob(h)}],this.mnu_delete={label:"dashboard.recordings.mnu_delete",command:h=>this.delete(h,!1)},this.mnu_delete_rerec={label:"dashboard.recordings.mnu_delete_rerec",command:h=>this.delete(h,!0)},this.mnu_undelete={label:"dashboard.recordings.mnu_undelete",command:h=>this.undelete(h)},this.mnu_rerec={label:"dashboard.recordings.mnu_rerec",command:h=>this.rerec(h)},this.mnu_markwatched={label:"dashboard.recordings.mnu_markwatched",command
:h=>this.markwatched(h,!0)},this.mnu_markunwatched={label:"dashboard.recordings.mnu_markunwatched",command:h=>this.markwatched(h,!1)},this.mnu_markdamaged={label:"dashboard.recordings.mnu_markdamaged",command:h=>this.markdamaged(h,!0)},this.mnu_markundamaged={label:"dashboard.recordings.mnu_markundamaged",command:h=>this.markdamaged(h,!1)},this.mnu_updaterecgrp={label:"dashboard.recordings.mnu_updaterecgrp",command:h=>this.promptrecgrp(h)},this.mnu_updatemeta={label:"dashboard.recordings.mnu_updatemeta",command:h=>this.updatemeta(h)},this.mnu_updaterecrule={label:"dashboard.recordings.mnu_updaterecrule",command:h=>this.updaterecrule(h)},this.mnu_stoprec={label:"dashboard.recordings.mnu_stoprec",command:h=>this.stoprec(h)},this.mnu_runjobs={label:"dashboard.recordings.mnu_runjobs",items:this.jobs},this.menuToShow=[],this.matchModeRecGrp=[{value:_t.EQUALS,label:"common.filter.equals"}],this.matchModeTitle=[{value:_t.STARTS_WITH,label:"common.filter.startswith"},{value:_t.CONTAINS,labe
l:"common.filter.contains"},{value:_t.EQUALS,label:"common.filter.equals"}],this.saveObserver={next:h=>{h.bool?(this.successCount++,this.currentForm.form.markAsPristine(),this.editingProgram&&Object.assign(this.editingProgram,this.program)):(console.log("saveObserver
error",h),this.errorCount++)},error:h=>{console.log("saveObserver
error",h),this.errorCount++}},this.JobQCmds=this.setupService.getJobQCommands(),this.dvrService.GetRecGroupList().subscribe(h=>{this.recGroups=h.RecGroupList,this.recGroups.push("Deleted")});for(const[h,b]of
Object.entries(this.msg))this.translate.get(b).subscribe(y=>{Object.defineProperty(this.msg,h,{value:y})});[this.mnu_delete,this.mnu_delete_rerec,this.mnu_undelete,this.mnu_rerec,this.mnu_markwatched,this.mnu_markunwatched,this.mnu_markdamaged,this.mnu_markundamaged,this.mnu_updatemeta,this.mnu_updaterecrule,this.mnu_stoprec,this.mnu_updaterecgrp,this.mnu_runjobs,this.jobs[0],this.jobs[1],this.jobs[2],...this.matchModeRecGrp,...this.matchModeTitle].fo
rEach(h=>{h.label&&this.translate.get(h.label).subscribe(b=>h.label=b)})}ngOnInit(){}loadLazy(e){this.lazyLoadEvent=e;let
n={StartIndex:0,Count:1};e.first&&(n.StartIndex=e.first),e.rows&&(n.Count=e.rows),e.sortField||(e.sortField="Title"),n.Sort=e.sortField,n.Sort="Airdate"==e.sortField?"originalairdate":"Recording.RecGroup"==e.sortField?"recgroup":e.sortField;let
s=" asc";if(e.sortOrder&&e.sortOrder<0&&(s="
desc"),n.Sort=n.Sort+s,n.Sort+=`,title${s},originalairdate${s},season${s},episode${s}`,e.filters){if(e.filters.Title.value)switch(e.filters.Title.matchMode){case
_t.STARTS_WITH:n.TitleRegEx="^"+e.filters.Title.value;break;case
_t.CONTAINS:n.TitleRegEx=e.filters.Title.value;break;case
_t.EQUALS:n.TitleRegEx="^"+e.filters.Title.value+"$"}e.filters["Recording.RecGroup"].value&&e.filters["Recording.RecGroup"].matchMode==_t.EQUALS&&(n.RecGroup=e.filters["Recording.RecGroup"].value)}(n.TitleRegEx!=this.priorRequest.TitleRegEx||n.RecGroup!=this.priorRequest.RecGroup)&&(this.programs=[]
,this.selection=[],this.menu.hide(),this.priorRequest=n),this.dvrService.GetRecordedList(n).subscribe(r=>{let
o=r.ProgramList;this.programs.length=r.ProgramList.TotalAvailable,this.programs.splice(o.StartIndex,o.Count,...o.Programs),this.programs=[...this.programs],this.refreshing=!1})}refresh(){this.selection=[],this.menu.hide(),this.loadLazy(this.lazyLoadEvent)}URLencode(e){return
encodeURI(e)}getDuration(e){const n=new Date(e.Recording.StartTs).getTime();return(new
Date(e.Recording.EndTs).getTime()-n)/6e4}onContextMenu(e,n){return!(!(0==this.selection.length||n.target&&n.target.id&&n.target.id.startsWith("download_"))&&(this.selection.some(s=>!s)?(this.sendMessage("error",null,"",this.msg.UndefSelection),1):this.selection.some(s=>s.Recording.RecordedId==e.Recording.RecordedId)&&(this.showContextMenu(null,n),1)))}onSelectChange(){this.menu.hide()}showContextMenu(e,n){if(this.actionList.length=0,e&&e.Title?this.actionList.push(e):this.actionList.push(...this.selection),0==this.acti
onList.length)return;if(this.actionList.some(r=>!r))return void
this.sendMessage("error",null,"",this.msg.UndefSelection);this.menuToShow.length=0;let
s=[];if(this.actionList.some(r=>"Deleted"==r.Recording.RecGroup)&&s.push(this.mnu_undelete),this.actionList.some(r=>"Deleted"!=r.Recording.RecGroup)&&(s.push(this.mnu_delete),s.push(this.mnu_delete_rerec)),s.push(this.mnu_rerec),this.actionList.some(r=>r.ProgramFlagNames.indexOf("WATCHED")>-1)&&s.push(this.mnu_markunwatched),this.actionList.some(r=>r.ProgramFlagNames.indexOf("WATCHED")<0)&&s.push(this.mnu_markwatched),this.actionList.some(r=>r.VideoPropNames.indexOf("DAMAGED")>-1)&&s.push(this.mnu_markundamaged),this.actionList.some(r=>r.VideoPropNames.indexOf("DAMAGED")<0)&&s.push(this.mnu_markdamaged),s.push(this.mnu_updaterecgrp),1==this.actionList.length?(s.push(this.mnu_updatemeta),this.menuToShow.push({label:this.actionList[0].Title+"
-
"+this.actionList[0].SubTitle,items:s})):this.menuToShow.push({label:this.msg.ActionsSelected
.replace(/{{ *num
*}}/,this.actionList.length.toString()),items:s}),this.actionList.every(r=>"Deleted"!=r.Recording.RecGroup)){this.menuToShow.push(1==this.actionList.length?this.mnu_runjobs:{label:this.msg.JobsSelected.replace(/{{
*num *}}/,this.actionList.length.toString()),items:this.jobs});for(let
r=0;r<4;r++)this.JobQCmds.UserJob[r]?(this.jobs[r+this.jobsoffset].visible=!0,this.jobs[r+this.jobsoffset].label=this.JobQCmds.UserJobDesc[r]):this.jobs[r+this.jobsoffset].visible=!1}this.menu.toggle(n)}delete(e,n){let
s=this.actionList.shift();s&&this.dvrService.GetRecorded({RecordedId:s.Recording.RecordedId}).subscribe({next:r=>{"Deleted"==r.Program.Recording.RecGroup?(this.sendMessage("error",s,e.item.label,this.msg.AlreadyDel),s.Recording.RecGroup="Deleted"):this.dvrService.DeleteRecording({RecordedId:s.Recording.RecordedId,AllowRerecord:n}).subscribe({next:o=>{o.bool?(this.sendMessage("success",s,e.item.label,this.msg.Success,this.msg.CanUndo),s.Recording.RecGroup="Deleted"):this.
sendMessage("error",s,e.item.label,this.msg.Failed)},error:o=>this.networkError(s,o)}),this.delete(e,n)},error:r=>{this.networkError(s,r),this.delete(e,n)}})}undelete(e){let
n=this.actionList.shift();n&&this.dvrService.UnDeleteRecording({RecordedId:n.Recording.RecordedId}).subscribe({next:s=>{s.bool?(n.Recording.RecGroup="Default",this.sendMessage("success",n,e.item.label,this.msg.Success)):this.sendMessage("error",n,e.item.label,this.msg.Failed),this.undelete(e)},error:s=>{this.networkError(n,s),this.undelete(e)}})}networkError(e,n){console.log("network
error",n),this.sendMessage("error",e,"",this.msg.NetFail)}sendMessage(e,n,s,r,o){o=o?"\n"+o:"";let
u=s;null!=n&&(u=s+" "+n.Title+"
"+n.SubTitle+o),this.messageService.add({severity:e,summary:r,detail:u,life:5e3,sticky:"error"==e})}rerec(e){let
n=this.actionList.shift();n&&this.dvrService.AllowReRecord(n.Recording.RecordedId).subscribe({next:s=>{s.bool?this.sendMessage("success",n,e.item.label,this.msg.Success):this.sendMessage("erro
r",n,e.item.label,this.msg.Failed),this.rerec(e)},error:s=>{this.networkError(n,s),this.rerec(e)}})}markwatched(e,n){let
s=this.actionList.shift();s&&this.dvrService.UpdateRecordedMetadata({RecordedId:s.Recording.RecordedId,Watched:n}).subscribe({next:r=>{r.bool?(this.sendMessage("success",s,e.item.label,this.msg.Success),s.ProgramFlagNames=n?s.ProgramFlagNames+"|WATCHED|":s.ProgramFlagNames.replace(/WATCHED/g,"")):this.sendMessage("error",s,e.item.label,this.msg.Failed),this.markwatched(e,n)},error:r=>{this.networkError(s,r),this.markwatched(e,n)}})}markdamaged(e,n){let
s=this.actionList.shift();s&&this.dvrService.UpdateRecordedMetadata({RecordedId:s.Recording.RecordedId,Damaged:n}).subscribe({next:r=>{r.bool?n?(this.sendMessage("success",s,e.item.label,this.msg.Success,this.msg.NonReRec),s.VideoPropNames=s.VideoPropNames+"|DAMAGED|"):(this.sendMessage("success",s,e.item.label,this.msg.Success),s.VideoPropNames=s.VideoPropNames.replace(/DAMAGED/g,"")):this.sendMessage("error",s,e.i
tem.label,this.msg.Failed),this.markdamaged(e,n)},error:r=>{this.networkError(s,r),this.markdamaged(e,n)}})}promptrecgrp(e){this.newRecGroup=1==this.actionList.length?this.actionList[0].Recording.RecGroup:"",this.displayRecGrpDlg=!0}updaterecgrp(){this.displayRecGrpDlg=!1,this.newRecGroup=this.newRecGroup.trim();let
e=this.actionList.shift();e&&this.newRecGroup&&this.dvrService.UpdateRecordedMetadata({RecordedId:e.Recording.RecordedId,RecGroup:this.newRecGroup}).subscribe({next:n=>{n.bool?(this.sendMessage("success",e,this.mnu_updaterecgrp.label,this.msg.Success),e.Recording.RecGroup=this.newRecGroup):this.sendMessage("error",e,this.mnu_updaterecgrp.label,this.msg.Failed),this.updaterecgrp()},error:n=>{this.networkError(e,n),this.updaterecgrp()}})}updaterecrule(e){}stoprec(e){}runjob(e){let
n=this.actionList.shift();n&&this.dvrService.ManageJobQueue({Action:"Add",JobName:e.item.id,RecordedId:n.Recording.RecordedId}).subscribe({next:s=>{s.int>0?this.sendMessage("success",n,e.item.lab
el,this.msg.Success):this.sendMessage("error",n,e.item.label,this.msg.Failed),this.runjob(e)},error:s=>{this.networkError(n,s),this.runjob(e)}})}updatemeta(e){this.program=this.actionList.shift(),this.program&&(this.editingProgram=this.program,this.program=Object.assign({},this.program),this.program.Airdate=this.program.Airdate?new
Date(this.program.Airdate+"
00:00"):null,this.displayMetadataDlg=!0,this.currentForm.form.markAsPristine())}saveProgram(){this.successCount=0,this.errorCount=0,this.displayUnsaved=!1,this.dvrService.UpdateRecordedMetadata({RecordedId:this.program.Recording.RecordedId,Description:this.program.Description,Episode:this.program.Episode,Inetref:this.program.Inetref,OriginalAirDate:this.program.Airdate,Season:this.program.Season,SubTitle:this.program.SubTitle,Title:this.program.Title,RecGroup:this.program.Recording.RecGroup}).subscribe(this.saveObserver)}closeDialog(){this.currentForm.dirty?this.displayUnsaved?(this.displayUnsaved=!1,this.displayMetadataDlg=!1,
this.editingProgram=void
0,this.currentForm.form.markAsPristine()):this.displayUnsaved=!0:(this.displayMetadataDlg=!1,this.displayUnsaved=!1,this.editingProgram=void
0)}}return t.\u0275fac=function(e){return
new(e||t)(D(jo),D(Gi),D(Oe),D(Me),D(cs))},t.\u0275cmp=z({type:t,selectors:[["app-recordings"]],viewQuery:function(e,n){if(1&e&&(W(boe,5),W(voe,5)),2&e){let
s;V(s=B())&&(n.currentForm=s.first),V(s=B())&&(n.menu=s.first)}},features:[Pe([Gi])],decls:85,vars:96,consts:[["name","recsform"],["recsform","ngForm"],[2,"white-space","pre-line"],["position","center"],[1,"block","card","w-full",2,"height","90vh"],[1,"font-bold",3,"popup","model"],["menu",""],["scrollHeight","flex","styleClass","p-datatable-striped","selectionMode","multiple","dataKey","Recording.RecordedId",3,"value","scrollable","virtualScroll","rows","lazy","rowHover","selection","metaKeySelection","onLazyLoad","selectionChange","onRowSelect","onRowUnelect"],["pTemplate","caption"],["pTemplate","header"],["pTemplate","bod
y"],[3,"header","visible","modal","closable","closeOnEscape","visibleChange"],[1,"form-group","field"],["for","Title",1,"label","block"],["pInputText","","id","Title","name","Title",1,"mb-2","form-control","w-full",3,"ngModel","ngModelChange"],["Title","ngModel"],["for","SubTitle",1,"label","block"],["pInputText","","id","SubTitle","name","SubTitle",1,"mb-2","form-control","w-full",3,"ngModel","ngModelChange"],["SubTitle","ngModel"],["for","Inetref",1,"label","block"],["pInputText","","id","Inetref","name","Inetref",1,"mb-2","form-control","w-full",3,"ngModel","ngModelChange"],["Inetref","ngModel"],["for","Description",1,"label","block"],["pInputTextarea","","id","Description","name","Description",1,"mb-2","form-control","w-full",3,"rows","cols","ngModel","ngModelChange"],["Description","ngModel"],["for","Season",1,"label","block"],["name","Season","id","Season",3,"ngModel","showButtons","min","max","step","ngModelChange"],["for","Episode",1,"label","block"],["name","Episode","id","
Episode",3,"ngModel","showButtons","min","max","step","ngModelChange"],["for","Airdate",1,"label","block"],["dateFormat","yy-mm-dd","name","Airdate","id","Airdate",3,"ngModel","ngModelChange"],["for","RecGroup",1,"label","block"],["name","RecGroup",3,"options","ngModel","editable","maxlength","ngModelChange"],["RecGroup","ngModel"],["for","FileName",1,"label","block"],["pTemplate","footer"],[3,"header","visible","modal","draggable","resizable","visibleChange"],["for","newrecgroup",1,"label","block"],["pInputText","","id","newrecgroup","name","newrecgroup",1,"mb-2","form-control","w-full",3,"ngModel","ngModelChange"],["newrecgroup","ngModel"],["name","recgrplist",3,"options","ngModel","ngModelChange"],["recgrplist","ngModel"],[3,"header","visible","modal","visibleChange"],[1,"pl-1"],["pButton","","pRipple","","icon","pi
pi-bars","tooltipPosition","top",1,"p-button-text",".p-button-success",3,"pTooltip","click"],["type","text","field","Title",3,"matchModeOptions"],["field","Recording.
RecGroup","matchMode","equals",3,"showMenu"],["pTemplate","filter"],["pButton","","pRipple","","icon","pi
pi-refresh","tooltipPosition","top",1,"p-button-text",".p-button-success",3,"pTooltip","click"],["pSortableColumn","Title",1,"p-1",2,"flex-basis","12%"],["field","Title"],[1,"p-1",2,"flex-basis","2%"],[1,"p-1",2,"flex-basis","18%"],[1,"p-1",2,"flex-basis","4%"],["pSortableColumn","Airdate",1,"justify-content-end","p-1",2,"flex-basis","8%"],["field","Airdate"],["pSortableColumn","StartTime",1,"justify-content-end","p-1",2,"flex-basis","8%"],["field","StartTime"],[1,"p-1",2,"flex-basis","10%"],["pSortableColumn","Recording.RecGroup",1,"p-1",2,"flex-basis","8%"],["field","Recording.RecGroup"],[1,"justify-content-end","p-1",2,"flex-basis","6%"],[1,"justify-content-end","p-1",2,"flex-basis","8%"],[1,"p-1",2,"background","var(--surface-card)"],["target","_blank"],[1,"pi","pi-download"],["pButton","","pRipple","","icon","pi
pi-ellipsis-v",1,"p-button-text","p-button-primary",3,"disable
d"],["name","filter",3,"ngModel","options","placeholder","showClear","onChange"],["pTemplate","item"],[3,"ngClass","pSelectableRow","pSelectableRowIndex","contextmenu"],[1,"p-1","overflow-hidden",2,"flex-basis","12%"],["class","pi
pi-exclamation-triangle
p-1","tooltipPosition","top",3,"pTooltip",4,"ngIf"],["class","pi
pi-eye","tooltipPosition","top",3,"pTooltip",4,"ngIf"],["tooltipPosition","top",1,"p-1","overflow-hidden",2,"flex-basis","18%",3,"pTooltip"],[4,"ngIf"],[3,"innerHTML"],[1,"p-1",2,"flex-basis","8%"],["target","_blank","tooltipPosition","left",3,"href","pTooltip"],[1,"pi","pi-download","text-primary",3,"id"],["pButton","","pRipple","","icon","pi
pi-ellipsis-v",1,"p-button-text","p-button-primary",3,"click"],["tooltipPosition","top",1,"pi","pi-exclamation-triangle","p-1",3,"pTooltip"],["tooltipPosition","top",1,"pi","pi-eye",3,"pTooltip"],[1,"col-12",2,"text-align","left"],["severity","success",3,"text",4,"ngIf"],["severity","error",3,"text",4,"ngIf"],["icon","pi
pi-times
-circle","styleClass","p-button-warning",3,"label","onClick"],["icon","pi
pi-check-circle","styleClass","p-button-success",3,"label","disabled","onClick"],["severity","success",3,"text"],["severity","error",3,"text"],["icon","pi
pi-times-circle","styleClass","p-button-plain",3,"label","onClick"],["icon","pi
pi-check-circle","styleClass","p-button-plain",3,"label","disabled","onClick"],["icon","pi
pi-times-circle","styleClass","p-button-danger",3,"label","onClick"],["icon","pi
pi-check-circle","styleClass","p-button-success",3,"label","onClick"]],template:function(e,n){1&e&&(l(0,"form",0,1)(2,"div",2),k(3,"p-toast",3),c(),l(4,"h2"),g(5),m(6,"translate"),c(),l(7,"div",4),k(8,"p-tieredMenu",5,6),l(10,"p-table",7),C("onLazyLoad",function(r){return
n.loadLazy(r)})("selectionChange",function(r){return
n.selection=r})("onRowSelect",function(){return
n.onSelectChange()})("onRowUnelect",function(){return
n.onSelectChange()}),_(11,Coe,0,0,"ng-template",8),_(12,Toe,52,46,"ng-template",9),_(13,
koe,29,29,"ng-template",10),c(),l(14,"p-dialog",11),C("visibleChange",function(r){return
n.displayMetadataDlg=r}),m(15,"translate"),l(16,"div",12)(17,"label",13),g(18),m(19,"translate"),c(),l(20,"input",14,15),C("ngModelChange",function(r){return
n.program.Title=r}),c()(),l(22,"div",12)(23,"label",16),g(24),m(25,"translate"),c(),l(26,"input",17,18),C("ngModelChange",function(r){return
n.program.SubTitle=r}),c()(),l(28,"div",12)(29,"label",19),g(30),m(31,"translate"),c(),l(32,"input",20,21),C("ngModelChange",function(r){return
n.program.Inetref=r}),c()(),l(34,"div",12)(35,"label",22),g(36),m(37,"translate"),c(),l(38,"textarea",23,24),C("ngModelChange",function(r){return
n.program.Description=r}),c()(),l(40,"div",12)(41,"label",25),g(42),m(43,"translate"),c(),l(44,"p-inputNumber",26),C("ngModelChange",function(r){return
n.program.Season=r}),c()(),l(45,"div",12)(46,"label",27),g(47),m(48,"translate"),c(),l(49,"p-inputNumber",28),C("ngModelChange",function(r){return
n.program.Episode=r}
),c()(),l(50,"div",12)(51,"label",29),g(52),m(53,"translate"),c(),l(54,"p-calendar",30),C("ngModelChange",function(r){return
n.program.Airdate=r}),c()(),l(55,"div",12)(56,"label",31),g(57),m(58,"translate"),c(),l(59,"p-dropdown",32,33),C("ngModelChange",function(r){return
n.program.Recording.RecGroup=r}),c()(),l(61,"div",12)(62,"label",34),g(63),m(64,"translate"),c(),l(65,"pre"),g(66),c()(),_(67,Roe,7,9,"ng-template",35),c(),l(68,"p-dialog",36),C("visibleChange",function(r){return
n.displayRecGrpDlg=r}),m(69,"translate"),l(70,"div",12)(71,"label",37),g(72),m(73,"translate"),c(),l(74,"input",38,39),C("ngModelChange",function(r){return
n.newRecGroup=r}),c()(),l(76,"p-listbox",40,41),C("ngModelChange",function(r){return
n.newRecGroup=r}),c(),_(78,Loe,4,7,"ng-template",35),c(),l(79,"p-dialog",42),C("visibleChange",function(r){return
n.displayUnsaved=r}),m(80,"translate"),l(81,"p"),g(82),m(83,"translate"),c(),_(84,Ooe,4,6,"ng-template",35),c()()()),2&e&&(a(5),S(f(6,64,"dashboard.recordin
gs.heading")),a(3),p("popup",!0)("model",n.menuToShow),a(2),p("value",n.programs)("scrollable",!0)("virtualScroll",!0)("rows",50)("lazy",!0)("rowHover",!0)("selection",n.selection)("metaKeySelection",!0),a(4),q(A(94,Aoe)),x("header",f(15,66,"dashboard.recordings.edit_metadata")),p("visible",n.displayMetadataDlg)("modal",!0)("closable",!1)("closeOnEscape",!1),a(4),S(f(19,68,"dashboard.recordings.title")),a(2),p("ngModel",n.program.Title),a(4),S(f(25,70,"dashboard.recordings.subtitle")),a(2),p("ngModel",n.program.SubTitle),a(4),S(f(31,72,"dashboard.recordings.inetref")),a(2),p("ngModel",n.program.Inetref),a(4),S(f(37,74,"dashboard.recordings.description")),a(2),p("rows",5)("cols",30)("ngModel",n.program.Description),a(4),S(f(43,76,"dashboard.recordings.season")),a(2),p("ngModel",n.program.Season)("showButtons",!0)("min",1)("max",99)("step",1),a(3),S(f(48,78,"dashboard.recordings.episode")),a(2),p("ngModel",n.program.Episode)("showButtons",!0)("min",1)("max",99)("step",1),a(3),S(f(53,8
0,"dashboard.recordings.orig_airdate")),a(2),p("ngModel",n.program.Airdate),a(3),S(f(58,82,"dashboard.sched.recgroup_label")),a(2),q(A(95,Poe)),p("options",n.recGroups)("ngModel",n.program.Recording.RecGroup)("editable",!0)("maxlength",64),a(4),S(f(64,84,"dashboard.recordings.filename_label")),a(3),S(n.program.FileName),a(2),x("header",f(69,86,"dashboard.recordings.selrecgroup")),p("visible",n.displayRecGrpDlg)("modal",!0)("draggable",!1)("resizable",!1),a(4),S(f(73,88,"dashboard.sched.recgroup_label")),a(2),p("ngModel",n.newRecGroup),a(2),p("options",n.recGroups)("ngModel",n.newRecGroup),a(3),x("header",f(80,90,"common.unsaved_heading")),p("visible",n.displayUnsaved)("modal",!0),a(3),S(f(83,92,"common.unsaved_message")))},directives:[ze,Ue,He,Td,D$,Dn,ne,On,bt,Kt,vg,Ot,Te,_e,yd,wd,Le,j2,Q,bn,Ye,tS,pt,xr,_n,qe,ve,os],pipes:[ce,eu],styles:["[_nghost-%COMP%]
.p-tieredmenu{border:2px solid}[_nghost-%COMP%] .p-tieredmenu
.p-submenu-list{border:2px solid}"]}),t})();const Noe=["sc
hedform"],Di=function(){return{minWidth:"400px"}};function
Voe(t,i){if(1&t){const
e=I();l(0,"div",5)(1,"label",63),g(2),m(3,"translate"),c(),l(4,"p-dropdown",64,65),C("ngModelChange",function(s){return
v(e),d(2).templateId=s})("onClick",function(){v(e);const s=d(2);return
s.templateChange(s.recRule)})("onChange",function(){v(e);const s=d(2);return
s.templateChange(s.recRule)}),c()()}if(2&t){const
e=d(2);a(2),S(f(3,7,"dashboard.sched.template_label")),a(2),q(A(9,Di)),p("options",e.templates)("ngModel",e.templateId)("editable",!1)("maxlength",0)}}function
Boe(t,i){1&t&&(l(0,"label",68),g(1),m(2,"translate"),c()),2&t&&(a(1),T("
",f(2,1,"dashboard.sched.subtitle_label"),""))}function
Hoe(t,i){1&t&&(l(0,"label",68),g(1),m(2,"translate"),c()),2&t&&(a(1),T("
",f(2,1,"dashboard.sched.add_tables_label"),""))}function
qoe(t,i){if(1&t){const
e=I();l(0,"textarea",69),C("ngModelChange",function(s){return
v(e),d(3).recRule.SubTitle=s}),g(1," "),c()}if(2&t){const
e=d(3);p("ngModel",
e.recRule.SubTitle)("disabled","Power
Search"!=e.recRule.SearchType)("rows",e.subTitleRows)}}const
Goe=function(){return["None","Power Search"]};function
Uoe(t,i){if(1&t&&(l(0,"div",5),_(1,Boe,3,3,"label",66),_(2,Hoe,3,3,"label",66),_(3,qoe,2,3,"textarea",67),c()),2&t){const
e=d(2);a(1),p("ngIf","None"==e.recRule.SearchType),a(1),p("ngIf","Power
Search"==e.recRule.SearchType),a(1),p("ngIf",A(3,Goe).indexOf(e.recRule.SearchType)>-1)}}function
zoe(t,i){if(1&t&&(l(0,"span"),g(1),c()),2&t){const
e=d(2);a(1),We("S",e.recRule.Season,"
E",e.recRule.Episode,"")}}function
joe(t,i){1&t&&(l(0,"label",74),g(1),m(2,"translate"),c()),2&t&&(a(1),T("
",f(2,1,"dashboard.sched.description_label"),""))}function
$oe(t,i){1&t&&(l(0,"label",74),g(1),m(2,"translate"),c()),2&t&&(a(1),T("
",f(2,1,"dashboard.sched.sqlwhere_label"),""))}function
Woe(t,i){1&t&&(l(0,"label",74),g(1),m(2,"translate"),c()),2&t&&(a(1),T("
",f(2,1,"dashboard.sched.description_label"),""))}function
Koe(t,i){1&t&&(l(0,"label",74),g(1
),m(2,"translate"),c()),2&t&&(a(1),T("
",f(2,1,"dashboard.sched.srchValue_label"),""))}const
Qoe=function(){return["None","Manual Search"]};function
Joe(t,i){if(1&t){const
e=I();l(0,"div",5)(1,"div",70),_(2,joe,3,3,"label",71),_(3,$oe,3,3,"label",71),_(4,Woe,3,3,"label",71),_(5,Koe,3,3,"label",72),c(),l(6,"textarea",73),C("ngModelChange",function(s){return
v(e),d(2).recRule.Description=s})("focusout",function(){return
v(e),d(2).onDescriptionBlur()}),g(7," "),c()()}if(2&t){const
e=d(2);a(1),p("ngSwitch",e.recRule.SearchType),a(1),p("ngSwitchCase","None"),a(1),p("ngSwitchCase","Power
Search"),a(1),p("ngSwitchCase","Manual
Search"),a(2),p("ngModel",e.recRule.Description)("disabled",A(7,Qoe).indexOf(e.recRule.SearchType)>-1)("rows",e.descriptionRows)}}function
Yoe(t,i){1&t&&(l(0,"div"),g(1," Examples of SQL Additional
Tables and Where Conditions are in the MythTV wiki
at"),k(2,"br"),l(3,"a",75),g(4,"Power
Search"),c()())}function Zoe(t,i){if(1&t){const e=I();l(0,"div"),k(
1,"p-divider"),l(2,"div",5)(3,"label",76),g(4),m(5,"translate"),c(),l(6,"p-dropdown",77),C("ngModelChange",function(s){return
v(e),d(2).channel=s})("onChange",function(){return
v(e),d(2).onChannelChange()}),c()(),l(7,"div",5)(8,"label",78),g(9),m(10,"translate"),c(),l(11,"p-calendar",79),C("ngModelChange",function(s){return
v(e),d(2).reqDate=s})("onClose",function(){return
v(e),d(2).onDateChange()})("keyup.enter",function(){return
v(e),d(2).onDateChange()})("onBlur",function(){return
v(e),d(2).onDateChange()}),c()(),l(12,"div",5)(13,"label",80),g(14),m(15,"translate"),c(),l(16,"p-inputNumber",81),C("ngModelChange",function(s){return
v(e),d(2).reqDuration=s})("ngModelChange",function(){return
v(e),d(2).onDurationChange()}),c()()()}if(2&t){const
e=d(2);a(4),S(f(5,23,"dashboard.sched.channel_label")),a(2),q(A(29,Di)),p("options",e.allChannels)("ngModel",e.channel)("editable",!1)("maxlength",0),a(3),S(f(10,25,"dashboard.sched.starttime_label")),a(2),p("ngModel",e.reqDate)("showTime",!0)
("stepMinute",5)("dateFormat","yy/mm/dd")("selectOtherMonths",!0)("showIcon",!0)("showOnFocus",!1)("showButtonBar",!0)("clearButtonStyleClass","hidden"),a(3),S(f(15,27,"dashboard.sched.duration_label")),a(2),p("ngModel",e.reqDuration)("showButtons",!0)("min",5)("max",360)("step",5)}}function
Xoe(t,i){if(1&t){const
e=I();l(0,"div",5)(1,"label",82),g(2),m(3,"translate"),c(),l(4,"div",83)(5,"div",84)(6,"p-radioButton",85),C("ngModelChange",function(s){return
v(e),d(2).metaPrefix=s})("ngModelChange",function(){v(e);const s=d(2);return
s.iCheckbox(s.recRule)}),c(),l(7,"label",86),k(8,"img",87),c()(),l(9,"div",88)(10,"a",89),g(11),m(12,"translate"),c(),k(13,"br"),c(),l(14,"div",90)(15,"p-radioButton",91),C("ngModelChange",function(s){return
v(e),d(2).metaPrefix=s})("ngModelChange",function(){v(e);const s=d(2);return
s.iCheckbox(s.recRule)}),c(),l(16,"label",92),k(17,"img",93),c()(),l(18,"div",94)(19,"a",89),g(20),m(21,"translate"),c(),k(22,"br"),c(),l(23,"div",84)(24,"p-radioButton",95),C
("ngModelChange",function(s){return
v(e),d(2).metaPrefix=s})("ngModelChange",function(){v(e);const s=d(2);return
s.iCheckbox(s.recRule)}),c(),l(25,"label",96),k(26,"img",97),c()(),l(27,"div",88)(28,"a",89),g(29),m(30,"translate"),c(),k(31,"br"),c()(),g(32),l(33,"input",98,99),C("ngModelChange",function(s){return
v(e),d(2).recRule.Inetref=s})("ngModelChange",function(){v(e);const
s=d(2);return
s.iText(s.recRule)}),c(),l(35,"small",55),g(36),m(37,"translate"),k(38,"br"),c()()}if(2&t){const
e=d(2);a(2),S(f(3,13,"dashboard.sched.inetref_label")),a(4),p(&...
",f(12,15,"dashboard.sched.isearch"),"
thetvdb.com"),a(4),p("ngModel",e.metaPrefix),a(4),x("...
",f(21,17,"dashboard.sched.isearch"),"
tvmaze.com"),a(4),p("ngModel",e.metaPrefix),a(4),x("h...
+e.recRule.Title),ln),a(1),T("
",f(30,19,"dashboard.sched.isearch"),"
themoviedb.org"),a(3),T(" ",e.metaPrefix," \xa0
"),a(1),p("ngModel",e.recRule.Inetref),a(3),T("
",f(37,21,"dashboard.sched.inetref_desc"),"")}}function
eae(t,i){1&t&&(k(0,"p-message",105),m(1,"translate")),2&t&&x("text",f(1,1,"common.savesuccess"))}function
tae(t,i){if(1&t&&(k(0,"p-message",106),m(1,"translate")),2&t){const
e=d(3);La("text","",f(1,2,"common.backenderror"),":
",e.errortext,"")}}function nae(t,i){if(1&t){const
e=I();l(0,"div",100),_(1,eae,2,3,"p-message",101),_(2,tae,2,4,"p-message",102),c(),l(3,"p-button",103),C("onClick",function(){return
v(e),d(2).close()}),m(4,"translate"),c(),l(5,"p-button",104),C("onClick",function(){return
v(e),d(2).save()}),m(6,"translate"),c()}if(2&t){const
e=d(2),n=F(1);a(1),p("ngIf",e.successCount>0&&0==e.errorCount&&!n.dirty),a(1),p("ngIf",e.errorCount>0),a(1),x("label",f(4,5,"common.close")),a(2),x("label",f(6,7,"common.save")),p("disabled",!n.dirty||0==e.recRule.Id&&"
Not Recording"==e.recRule.Type||!e.recRule.Title)}}function
iae(t,i){if(1&t){const
e=I();l(0,"p-button",107),C("onClick",function(){return
v(e),d(2).close()}),m(1,"translate"),c(),l(2,"p-button",108),C("onClick",function(){return
v(e),d(2).displayUnsaved=!1}),m(3,"translate"),c()}2&t&&(x("label",f(1,2,"common.nosave")),a(2),x("label",f(3,4,"common.continue")))}const
sae=function(){return{height:"90vw",width:"700px"}},rae=function(){return["Power
Search","Manual
Search"]},OS=function(){return{minWidth:"400px",maxHeight:"400px",maxWidth:"640px"}};function
oae(t,i){if(1&t){const
e=I();l(0,"div")(1,"p-dialog",3),C("visibleChange",function(s){return
v(e),d().displayDlg=s}),m(2,"translate"),l(3,"p"),g(4),c(),l(5,"p"),g(6),c(),_(7,Voe,6,10,"div",4),l(8,"div",5)(9,"label",6),g(10),m(11,"translate"),c(),l(12,"p-dropdown",7,8),C("ngModelChange",function(s){return
v(e),d().recRule.SearchType=s})("onChange",function(){return
v(e),d().onSearchTypeChange()}),c()(),l(14,"div",5)(15,"label",9),g(16
),m(17,"translate"),c(),l(18,"textarea",10),C("ngModelChange",function(s){return
v(e),d().recRule.Title=s})("focusout",function(){return
v(e),d().onTitleBlur()}),g(19,"
"),c()(),_(20,Uoe,4,4,"div",4),l(21,"p"),_(22,zoe,2,2,"span",2),c(),_(23,Joe,8,8,"div",4),_(24,Yoe,5,0,"div",2),_(25,Zoe,17,30,"div",2),k(26,"p-divider"),l(27,"div",5)(28,"label",11),g(29),m(30,"translate"),c(),l(31,"p-dropdown",12,13),C("ngModelChange",function(s){return
v(e),d().recRule.Type=s}),c()(),l(33,"div",5)(34,"label",14),g(35),m(36,"translate"),c(),l(37,"p-dropdown",15,16),C("ngModelChange",function(s){return
v(e),d().recRule.RecGroup=s}),c()(),l(39,"div",5)(40,"p-checkbox",17,18),C("ngModelChange",function(s){return
v(e),d().recRule.Inactive=s}),m(42,"translate"),c()(),l(43,"div",5)(44,"label",19),g(45),m(46,"translate"),c(),l(47,"p-dropdown",20,21),C("ngModelChange",function(s){return
v(e),d().recRule.PlayGroup=s}),c()(),l(49,"div",5)(50,"label",22),g(51),m(52,"translate"),c(),l(53,"p-inpu
tNumber",23),C("ngModelChange",function(s){return
v(e),d().recRule.StartOffset=s}),c()(),l(54,"div",5)(55,"label",24),g(56),m(57,"translate"),c(),l(58,"p-inputNumber",25),C("ngModelChange",function(s){return
v(e),d().recRule.EndOffset=s}),c()(),l(59,"div",5)(60,"p-checkbox",26,27),C("ngModelChange",function(s){return
v(e),d().recRule.NewEpisOnly=s}),m(62,"translate"),c()(),l(63,"div",5)(64,"label",28),g(65),m(66,"translate"),c(),l(67,"p-inputNumber",29),C("ngModelChange",function(s){return
v(e),d().recRule.RecPriority=s}),c()(),l(68,"div",5)(69,"label",30),g(70),m(71,"translate"),c(),l(72,"p-dropdown",31,32),C("ngModelChange",function(s){return
v(e),d().recRule.PreferredInput=s}),c()(),l(74,"div",5)(75,"label",33),g(76),m(77,"translate"),c(),l(78,"p-dropdown",34,35),C("ngModelChange",function(s){return
v(e),d().recRule.DupMethod=s}),c()(),l(80,"div",5)(81,"label",36),g(82),m(83,"translate"),c(),l(84,"p-dropdown",37,38),C("ngModelChange",function(s){return
v(e),d().recRule.DupIn=s}),
c()(),l(86,"div",5)(87,"label",39),g(88),m(89,"translate"),c(),l(90,"p-dropdown",40,41),C("ngModelChange",function(s){return
v(e),d().recRule.AutoExtend=s}),c()(),l(92,"div",5)(93,"label",42),g(94),m(95,"translate"),c(),l(96,"p-multiSelect",43,44),C("ngModelChange",function(s){return
v(e),d().selectedFilters=s})("onChange",function(){v(e);const s=d();return
s.filterToRec(s.recRule)}),c()(),l(98,"div",5)(99,"label",45),g(100),m(101,"translate"),c(),l(102,"p-dropdown",46,47),C("ngModelChange",function(s){return
v(e),d().recRule.RecProfile=s}),c()(),l(104,"div",5)(105,"label",48),g(106),m(107,"translate"),c(),l(108,"p-dropdown",49,50),C("ngModelChange",function(s){return
v(e),d().recRule.StorageGroup=s}),c()(),l(110,"div",5)(111,"label",51),g(112),m(113,"translate"),c(),l(114,"p-inputNumber",52),C("ngModelChange",function(s){return
v(e),d().recRule.MaxEpisodes=s}),c()(),l(115,"div",5)(116,"p-checkbox",53,54),C("ngModelChange",function(s){return
v(e),d().recRule.MaxNewest=s}),m(118,"tra
nslate"),c(),l(119,"small",55),g(120),m(121,"translate"),c()(),l(122,"div",5)(123,"p-checkbox",56,57),C("ngModelChange",function(s){return
v(e),d().recRule.AutoExpire=s}),m(125,"translate"),c()(),l(126,"div",5)(127,"label",58),g(128),m(129,"translate"),c(),l(130,"p-multiSelect",59,60),C("ngModelChange",function(s){return
v(e),d().selectedPostProc=s})("onChange",function(){v(e);const s=d();return
s.postProcToRec(s.recRule)}),c()(),_(132,Xoe,39,23,"div",4),k(133,"br")(134,"br")(135,"br")(136,"br")(137,"br")(138,"br")(139,"br")(140,"br")(141,"br")(142,"br")(143,"br")(144,"br")(145,"br")(146,"br"),_(147,nae,7,9,"ng-template",61),c(),l(148,"p-dialog",62),C("visibleChange",function(s){return
v(e),d().displayUnsaved=s}),m(149,"translate"),l(150,"p"),g(151),m(152,"translate"),c(),_(153,iae,4,6,"ng-template",61),c()()}if(2&t){const
e=d();a(1),q(A(198,sae)),x("header",f(2,148,"dashboard.sched.heading")),p("visible",e.displayDlg)("modal",!0)("closable",!1)("closeOnEscape",!1),a(3),T("
",e.recR
ule.CallSign,""),a(2),yo("
",e.utility.formatDate(e.recRule.StartTime),"
",e.utility.formatTime(e.recRule.StartTime)," -
",e.utility.formatTime(e.recRule.EndTime),"
"),a(1),p("ngIf","Recording
Template"!=e.recRule.Type),a(3),S(f(11,150,"dashboard.sched.srchtype_label")),a(2),q(A(199,Di)),p("options",e.srchTypeList)("ngModel",e.recRule.SearchType)("editable",!1)("maxlength",0)("disabled",e.srchTypeDisabled),a(4),S(f(17,152,"dashboard.sched.title_label")),a(2),p("ngModel",e.recRule.Title)("disabled",-1==A(200,rae).indexOf(e.recRule.SearchType)&&"Recording
Template"!=e.recRule.Type||e.recRule.Id==(null==e.defaultTemplate?null:e.defaultTemplate.Id))("rows",e.titleRows),a(2),p("ngIf","Recording
Template"!=e.recRule.Type),a(2),p("ngIf",e.recRule.Season&&e.recRule.Episode),a(1),p("ngIf","Recording
Template"!=e.recRule.Type),a(1),p("ngIf","Power
Search"==e.recRule.SearchType),a(1),p("ngIf","Manual
Search"==e.recRule.SearchType),a(4),S(f(30,154,"dashboard.sched.type_label")),a(2),q(A(201,Di)
),p("options",e.typeList)("ngModel",e.recRule.Type)("editable",!1)("maxlength",0),a(4),S(f(36,156,"dashboard.sched.recgroup_label")),a(2),q(A(202,Di)),p("options",e.recGroups)("ngModel",e.recRule.RecGroup)("editable",!0)("maxlength",64),a(3),x("label",f(42,158,"dashboard.sched.active_label")),p("ngModel",e.recRule.Inactive)("binary",!0)("trueValue",!1)("falseValue",!0)("disabled",e.override),a(5),S(f(46,160,"dashboard.sched.playgroup_label")),a(2),q(A(203,Di)),p("options",e.playGroups)("ngModel",e.recRule.PlayGroup)("editable",!1)("maxlength",0),a(4),S(f(52,162,"dashboard.sched.startoffset_label")),a(2),p("ngModel",e.recRule.StartOffset)("showButtons",!0)("min",-480)("max",480)("step",1),a(3),S(f(57,164,"dashboard.sched.endoffset_label")),a(2),p("ngModel",e.recRule.EndOffset)("showButtons",!0)("min",-480)("max",480)("step",1),a(2),x("label",f(62,166,"dashboard.sched.newepis_label")),p("ngModel",e.recRule.NewEpisOnly)("binary",!0),a(5),S(f(66,168,"dashboard.sched.priority_label")),a(
2),p("ngModel",e.recRule.RecPriority)("showButtons",!0)("min",-100)("max",100)("step",1),a(3),S(f(71,170,"dashboard.sched.prefinput_label")),a(2),q(A(204,Di)),p("options",e.inputList.Inputs)("ngModel",e.recRule.PreferredInput)("editable",!1)("maxlength",0),a(4),S(f(77,172,"dashboard.sched.dupmethod_label")),a(2),q(A(205,Di)),p("options",e.dupMethodList)("ngModel",e.recRule.DupMethod)("editable",!1)("maxlength",0),a(4),S(f(83,174,"dashboard.sched.dupin_label")),a(2),q(A(206,Di)),p("options",e.dupInList)("ngModel",e.recRule.DupIn)("editable",!1)("maxlength",0),a(4),S(f(89,176,"dashboard.sched.autoextend_label")),a(2),q(A(207,Di)),p("options",e.autoExtendList)("ngModel",e.recRule.AutoExtend)("editable",!1)("maxlength",0),a(4),S(f(95,178,"dashboard.sched.filters_label")),a(2),q(A(208,OS)),p("options",e.recRuleFilters)("ngModel",e.selectedFilters),a(4),S(f(101,180,"dashboard.sched.recprofile_label")),a(2),q(A(209,Di)),p("options",e.recProfileList)("ngModel",e.recRule.RecProfile)("editabl
e",!1)("maxlength",0),a(4),S(f(107,182,"dashboard.sched.sgroup_label")),a(2),q(A(210,Di)),p("options",e.recStorageGroups)("ngModel",e.recRule.StorageGroup)("editable",!1)("maxlength",0),a(4),S(f(113,184,"dashboard.sched.maxeps_label")),a(2),p("ngModel",e.recRule.MaxEpisodes)("showButtons",!0)("min",0)("max",100)("step",1),a(2),x("label",f(118,186,"dashboard.sched.maxnewest_label")),p("ngModel",e.recRule.MaxNewest)("binary",!0),a(4),T("
",f(121,188,"dashboard.sched.maxnewest_desc"),"
"),a(3),x("label",f(125,190,"dashboard.sched.autoexpire_label")),p("ngModel",e.recRule.AutoExpire)("binary",!0),a(5),S(f(129,192,"dashboard.sched.postproc_label")),a(2),q(A(211,OS)),p("options",e.postProcList)("ngModel",e.selectedPostProc)("filter",!0),a(2),p("ngIf","Recording
Template"!=e.recRule.Type),a(16),x("header",f(149,194,"common.unsaved_heading")),p("visible",e.displayUnsaved)("modal",!0),a(3),S(f(152,196,"common.unsaved_message"))}}let
Rd=(()=>{class t{constructor(e,n,s,r,o){this.dvrService=e,t
his.translate=n,this.mythService=s,this.utility=r,this.channelService=o,this.displayDlg=!1,this.displayUnsaved=!1,this.loadCount=0,this.successCount=0,this.errorCount=0,this.errortext="",this.htmlRegex=new
RegExp("<TITLE>|</TITLE>"),this.srchTypeDisabled=!0,this.titleRows=1,this.subTitleRows=1,this.descriptionRows=5,this.override=!1,this.reqDate=new
Date,this.reqDuration=60,this.recRules=[],this.playGroups=[],this.recGroups=[],this.recStorageGroups=[],this.inputList={Inputs:[]},this.recRuleFilters=[],this.selectedFilters=[],this.templates=[],this.typeList=[],this.allChannels=[],this.srchTypeList=[{prompt:this.translate.instant("recrule.srch_None"),value:"None"},{prompt:this.translate.instant("recrule.srch_PowerSearch"),value:"Power
Search"},{prompt:this.translate.instant("recrule.srch_TitleSearch"),value:"Title
Search"},{prompt:this.translate.instant("recrule.srch_KeywordSearch"),value:"Keyword
Search"},{prompt:this.translate.instant("recrule.srch_PeopleSearch"),value:"People
Search
"},{prompt:this.translate.instant("recrule.srch_ManualSearch"),value:"Manual
Search"}],this.dupMethodList=[{prompt:this.translate.instant("dashboard.sched.dupmethod.none"),value:"None"},{prompt:this.translate.instant("dashboard.sched.dupmethod.s_and_d"),value:"Subtitle
and
Description"},{prompt:this.translate.instant("dashboard.sched.dupmethod.s_then_d"),value:"Subtitle
then
Description"},{prompt:this.translate.instant("dashboard.sched.dupmethod.s"),value:"Subtitle"},{prompt:this.translate.instant("dashboard.sched.dupmethod.d"),value:"Description"}],this.dupInList=[{prompt:this.translate.instant("dashboard.sched.dupin.both"),value:"All
Recordings"},{prompt:this.translate.instant("dashboard.sched.dupin.curr"),value:"Current
Recordings"},{prompt:this.translate.instant("dashboard.sched.dupin.prev"),value:"Previous
Recordings"}],this.autoExtendList=[{prompt:this.translate.instant("dashboard.sched.extend_none"),value:"None"},{prompt:"ESPN",value:"ESPN"},{prompt:"MLB",value:"MLB"}],this.r
ecProfileList=[{prompt:this.translate.instant("dashboard.sched.recprof.default"),value:"Default"},{prompt:this.translate.instant("dashboard.sched.recprof.livetv"),value:"Live
TV"},{prompt:this.translate.instant("dashboard.sched.recprof.highq"),value:"High
Quality"},{prompt:this.translate.instant("dashboard.sched.recprof.lowq"),value:"Low
Quality"}],this.postProcList=[{prompt:this.translate.instant("dashboard.sched.postproc.autocommflag"),value:"AutoCommflag"},{prompt:this.translate.instant("dashboard.sched.postproc.autometalookup"),value:"AutoMetaLookup"},{prompt:this.translate.instant("dashboard.sched.postproc.autotranscode"),value:"AutoTranscode"},{prompt:"1",value:"AutoUserJob1"},{prompt:"2",value:"AutoUserJob2"},{prompt:"3",value:"AutoUserJob3"},{prompt:"4",value:"AutoUserJob4"}],this.selectedPostProc=[],this.metaPrefix="",this.templateId=0,this.saveObserver={next:u=>{this.recRule?this.recRule.Id&&u.bool?(this.successCount++,this.currentForm.form.markAsPristine(),setTimeout(()=>
this.inter.summaryComponent.refresh(),3e3),"Not
Recording"==this.recRule.Type&&(this.recRule.Id=0)):!this.recRule.Id&&u.uint?(this.successCount++,this.currentForm.form.markAsPristine(),setTimeout(()=>this.inter.summaryComponent.refresh(),3e3),this.recRule.Id=u.uint):(this.errorCount++,this.currentForm.form.markAsDirty()):(console.log("ERROR:
recRule is
undefined"),this.errorCount++)},error:u=>{if(console.error(u),400==u.status){let
h=u.error.split(this.htmlRegex);h.length>1&&(this.errortext=h[1])}this.errorCount++,this.currentForm.form.markAsDirty()}}}ngOnInit(){this.inter.sched=this}loadLists(){let
e;this.recRules=[],this.playGroups=[],this.recGroups=[],this.recStorageGroups=[],this.inputList.Inputs=[],this.recRuleFilters=[],this.loadCount=0,this.errorCount=0,this.dvrService.GetRecordScheduleList({}).subscribe({next:n=>{this.recRules=n.RecRuleList.RecRules,this.loadSuccess()},error:n=>this.loadFail()}),this.dvrService.GetPlayGroupList().subscribe({next:n=>{this.playGroups=n.PlayGro
upList,this.playGroups.unshift("Default"),this.loadSuccess()},error:n=>this.loadFail()}),this.dvrService.GetRecGroupList().subscribe({next:n=>{this.recGroups=n.RecGroupList,this.loadSuccess()},error:n=>this.loadFail()}),this.dvrService.GetRecStorageGroupList().subscribe({next:n=>{this.recStorageGroups=n.RecStorageGroupList,this.loadSuccess()},error:n=>this.loadFail()}),this.dvrService.GetInputList().subscribe({next:n=>{this.inputList=n.InputList,this.inputList.Inputs.unshift({Id:0,CardId:0,SourceId:0,InputName:"",DisplayName:this.translate.instant("dashboard.sched.input_any"),QuickTune:!1,RecPriority:0,ScheduleOrder:0,LiveTVOrder:0}),this.loadSuccess()},error:n=>this.loadFail()}),this.dvrService.GetRecRuleFilterList().subscribe({next:n=>{this.recRuleFilters=n.RecRuleFilterList.RecRuleFilters,this.loadSuccess()},error:n=>this.loadFail()});for(let
n=1;n<5;n++)e=this.translate.instant("settings.services.job_default",{num:n}),this.mythService.GetSetting({HostName:"_GLOBAL_",Key:"UserJob
Desc"+n,Default:e}).subscribe({next:s=>{this.postProcList[n+2].prompt=s.String,this.loadSuccess()},error:()=>this.loadFail()});this.channelService.GetChannelInfoList({Details:!0}).subscribe(n=>{this.allChannels=n.ChannelInfoList.ChannelInfos,this.allChannels.forEach(s=>s.Description=s.ChanNum+"
"+s.ChannelName+"
("+s.CallSign+")")})}loadSuccess(){this.loadCount++,10==this.loadCount&&(this.loadCount=0,this.setupData(),this.displayDlg=!0,this.currentForm.form.markAsPristine())}loadFail(){this.errorCount++}open(e,n,s){this.templateId=0,this.reqProgram=e,this.reqChannel=n,this.reqRecRule=s,this.titleRows=1,e||s?(this.srchTypeDisabled=!0,this.srchTypeList[0].inactive=!1):(this.srchTypeDisabled=!1,this.srchTypeList[0].inactive=!0),this.loadLists()}setupData(){let
e=!1;this.program=this.reqProgram;let
n="";this.reqRecRule&&(n=this.reqRecRule.Type),this.reqRecRule?["Override
Recording","Do not
Record"].indexOf(n)>-1&&!this.reqRecRule.Id?(e=!0,this.recRule=void
0):this.recRule=Object.assign(
{},this.reqRecRule):this.recRule=void
0,this.channel=this.reqChannel,this.program&&!this.channel&&this.program.Channel&&(this.channel=this.program.Channel);var
s=0;if(this.typeList=[],this.templates=[{Id:0,Title:""}],this.defaultTemplate=void
0,this.program&&this.program.Recording&&!e&&(s=this.program.Recording.RecordId),this.recRules.forEach((r,o)=>{r.Id==s&&(this.recRule=r,n=this.recRule.Type),"Recording
Template"==r.Type&&(this.templates.push(r),"Default"==r.Category&&(this.defaultTemplate=r))}),this.recRule||(this.recRule={Id:0}),this.recRule.Title||(this.recRule.Title="",this.recRule.SubTitle="",this.recRule.Description="",this.defaultTemplate&&this.mergeTemplate(this.recRule,this.defaultTemplate)),this.recRule.SearchType||(this.recRule.SearchType="None"),this.program&&this.channel&&"None"==this.recRule.SearchType&&this.mergeProgram(this.recRule,this.program,this.channel),e&&(this.recRule.ParentId=this.program.Recording.RecordId),n||(n="Not
Recording"),!this.recRule.StartTime){
let r=new
Date;this.recRule.StartTime=r.toISOString(),this.recRule.FindDay=(r.getDay()+1)%7,this.recRule.FindTime=r.toTimeString().slice(0,8)}this.filterFromRec(this.recRule),this.postProcFromRec(this.recRule),this.recRule.Type=n,this.setupTypeList(this.recRule),this.srchTypeDisabled||this.onSearchTypeChange(),this.override&&(this.recRule.Inactive=!1),setTimeout(()=>{this.recRule&&(this.recRule.Type=n),this.currentForm.form.markAsPristine()},10)}setupTypeList(e){let
n=e.Type;if(this.typeList.length=0,this.override=!1,"Recording
Template"==n)this.typeList.push({prompt:this.translate.instant("dashboard.sched.type.mod_template"),value:"Recording
Template"}),"Default"!=e.Category&&e.Id>0&&this.typeList.push({prompt:this.translate.instant("dashboard.sched.type.del_template"),value:"Not
Recording"});else if(["Override Recording","Do not
Record"].indexOf(n)>-1)this.override=!0,this.typeList.push({prompt:this.translate.instant("dashboard.sched.type.del_override"),value:"Not
Recording"},{pro
mpt:this.translate.instant("dashboard.sched.type.rec_override"),value:"Override
Recording"},{prompt:this.translate.instant("dashboard.sched.type.dont_rec_override"),value:"Do
not Record"});else{const s="Manual
Search"==e.SearchType,r="None"!=e.SearchType;this.typeList.push({prompt:this.translate.instant("dashboard.sched.type.not"),value:"Not
Recording"}),(e.CallSign&&!r||s)&&this.typeList.push({prompt:this.translate.instant("dashboard.sched.type.this"),value:"Single
Record"}),s||this.typeList.push({prompt:this.translate.instant("dashboard.sched.type.one"),value:"Record
One"}),(!e.CallSign||r)&&this.typeList.push({prompt:this.translate.instant("dashboard.sched.type.weekly"),value:"Record
Weekly"},{prompt:this.translate.instant("dashboard.sched.type.daily"),value:"Record
Daily"}),s||this.typeList.push({prompt:this.translate.instant("dashboard.sched.type.all"),value:"Record
All"})}-1==this.typeList.findIndex(s=>s.value==e.Type)&&(e.Type=this.typeList[0].value)}mergeProgram(e,n,s){e.Tit
le=n.Title,e.SubTitle=n.SubTitle,e.Description=n.Description,e.Category=n.Category,e.StartTime=n.StartTime,e.EndTime=n.EndTime,e.SeriesId=n.SeriesId,e.ProgramId=n.ProgramId,e.ChanId=s.ChanId,e.CallSign=s.CallSign,e.Season=n.Season,e.Episode=n.Episode;let
r=new
Date(e.StartTime);e.FindDay=(r.getDay()+1)%7,e.FindTime=r.toTimeString().slice(0,8)}filterFromRec(e){this.selectedFilters=[],this.recRuleFilters.forEach(n=>{0!=(e.Filter&1<<n.Id)&&this.selectedFilters.push(n.Id)})}filterToRec(e){e.Filter=0,this.selectedFilters.forEach(n=>{e.Filter|=1<<n})}postProcFromRec(e){this.selectedPostProc=[];let
n=e;this.postProcList.forEach(s=>{n[s.value]&&this.selectedPostProc.push(s.value)})}postProcToRec(e){let
n=e;this.postProcList.forEach(s=>n[s.value]=!1),this.selectedPostProc.forEach(s=>n[s]=!0)}iCheckbox(e){e.Inetref||(e.Inetref=""),e.Inetref=e.Inetref.includes(".py_")?e.Inetref.replace(/^.*\.py_/,this.metaPrefix):this.metaPrefix+e.Inetref}iText(e){this.metaPrefix=e.Inetref.replace(/_.*/,"_"),t
his.metaPrefix.endsWith(".py_")||(this.metaPrefix="")}templateChange(e){if(this.templateId){const
n=this.templates.find(s=>s.Id==this.templateId);n&&this.mergeTemplate(e,n)}}onSearchTypeChange(){this.recRule&&(this.recRule.Title="",this.reqDate=new
Date,this.reqDate.setMinutes(0),this.reqDate.setSeconds(0,0),this.reqDuration=60,this.onDateChange(),"Manual
Search"==this.recRule.SearchType&&(this.recRule.Description="",setTimeout(()=>this.onChannelChange(),100)),this.subTitleRows="Power
Search"==this.recRule.SearchType?5:1,this.descriptionRows=["None","Power
Search"].indexOf(this.recRule.SearchType)>-1?5:1,this.recRule.SubTitle="",this.recRule.Description="",this.setupTypeList(this.recRule)),this.onTitleBlur(),this.onDescriptionBlur()}onTitleBlur(){if(this.recRule){if(this.recRule.Title=this.recRule.Title.trim(),this.recRule.Title.length>0){let
e;["Manual Search","Power
Search"].indexOf(this.recRule.SearchType)>-1&&this.recRule.Title.length>0&&(e="("+this.trSearch(this.recRule.SearchT
ype)+")"),"Recording
Template"==this.recRule.Type&&this.recRule.Title.length>0&&(e="("+this.translate.instant("recrule.template")+")"),e&&-1==this.recRule.Title.indexOf(e)&&(this.recRule.Title=this.recRule.Title+"
"+e)}"Manual
Search"==this.recRule.SearchType&&(this.recRule.Description=this.recRule.Title)}}onDescriptionBlur(){this.recRule&&(this.recRule.Description=this.recRule.Description.trim(),["Title
Search","Keyword Search","People
Search"].indexOf(this.recRule.SearchType)>-1&&(this.recRule.Title=this.recRule.Description.length>0?this.recRule.Description+"
("+this.trSearch(this.recRule.SearchType)+")":""))}onChannelChange(){this.recRule&&this.channel&&(this.recRule.ChanId=this.channel.ChanId,this.recRule.CallSign=this.channel.CallSign)}onDateChange(){this.recRule&&(this.recRule.StartTime=this.reqDate.toISOString(),this.recRule.FindDay=(this.reqDate.getDay()+1)%7,this.recRule.FindTime=this.reqDate.toTimeString().slice(0,8),this.onDurationChange())}onDurationChange(){if(this.recR
ule){let e=new Date(this.recRule.StartTime),n=new
Date(e.getTime()+6e4*this.reqDuration);this.recRule.EndTime=n.toISOString()}}trSearch(e){return
this.translate.instant("recrule.srch_"+e.replace("
",""))}mergeTemplate(e,n){e.Inactive=n.Inactive,e.RecPriority=n.RecPriority,e.PreferredInput=n.PreferredInput,e.StartOffset=n.StartOffset,e.EndOffset=n.EndOffset,e.DupMethod=n.DupMethod,e.DupIn=n.DupIn,e.NewEpisOnly=n.NewEpisOnly,e.Filter=n.Filter,e.RecProfile=n.RecProfile,e.RecGroup=n.RecGroup,e.StorageGroup=n.StorageGroup,e.PlayGroup=n.PlayGroup,e.AutoExpire=n.AutoExpire,e.MaxEpisodes=n.MaxEpisodes,e.MaxNewest=n.MaxNewest,e.AutoCommflag=n.AutoCommflag,e.AutoMetaLookup=n.AutoMetaLookup,e.AutoTranscode=n.AutoTranscode,e.AutoUserJob1=n.AutoUserJob1,e.AutoUserJob2=n.AutoUserJob2,e.AutoUserJob3=n.AutoUserJob3,e.AutoUserJob4=n.AutoUserJob4,e.Transcoder=n.Transcoder,this.postProcFromRec(e),this.filterFromRec(e)}close(){!this.recRule||0==this.recRule.Id&&"Not
Recording"==this.recRule.Type?this.d
isplayDlg=!1:this.currentForm.dirty?this.displayUnsaved?(this.displayUnsaved=!1,this.displayDlg=!1,this.currentForm.form.markAsPristine()):this.displayUnsaved=!0:(this.displayDlg=!1,this.displayUnsaved=!1)}save(){if(this.errortext="",this.recRule&&(0!=this.recRule.Id||"Not
Recording"!=this.recRule.Type))if(this.errorCount=0,this.successCount=0,this.recRule.Id>0&&"Not
Recording"==this.recRule.Type)this.dvrService.RemoveRecordSchedule(this.recRule.Id).subscribe(this.saveObserver);else
if(this.recRule.Id>0){const
e=this.createRequest(this.recRule);e.RecordId=this.recRule.Id,this.dvrService.UpdateRecordSchedule(e).subscribe(this.saveObserver)}else{const
e=this.createRequest(this.recRule);this.dvrService.AddRecordSchedule(e).subscribe(this.saveObserver)}}createRequest(e){return{Title:e.Title,Subtitle:e.SubTitle,Description:e.Description,Category:e.Category,StartTime:e.StartTime,EndTime:e.EndTime,SeriesId:e.SeriesId,ProgramId:e.ProgramId,ChanId:e.ChanId,Station:e.CallSign,FindDay:e.FindDa
y,FindTime:e.FindTime,ParentId:e.ParentId,Inactive:e.Inactive,Season:e.Season,Episode:e.Episode,Inetref:e.Inetref,Type:e.Type,SearchType:e.SearchType,RecPriority:e.RecPriority,PreferredInput:e.PreferredInput,StartOffset:e.StartOffset,EndOffset:e.EndOffset,LastRecorded:e.LastRecorded,DupMethod:e.DupMethod,DupIn:e.DupIn,NewEpisOnly:e.NewEpisOnly,Filter:e.Filter,RecProfile:e.RecProfile,RecGroup:e.RecGroup,StorageGroup:e.StorageGroup,PlayGroup:e.PlayGroup,AutoExpire:e.AutoExpire,MaxEpisodes:e.MaxEpisodes,MaxNewest:e.MaxNewest,AutoCommflag:e.AutoCommflag,AutoTranscode:e.AutoTranscode,AutoMetaLookup:e.AutoMetaLookup,AutoUserJob1:e.AutoUserJob1,AutoUserJob2:e.AutoUserJob2,AutoUserJob3:e.AutoUserJob3,AutoUserJob4:e.AutoUserJob4,Transcoder:e.Transcoder,AutoExtend:e.AutoExtend}}URLencode(e){return
encodeURI(e)}confirm(e){return
oe(window.confirm(e))}canDeactivate(){return!this.currentForm||!this.currentForm.dirty||this.confirm(this.translate.instant("settings.common.warning"))}onWindowClose(e
){this.currentForm&&this.currentForm.dirty&&(e.preventDefault(),e.returnValue=!1)}}return
t.\u0275fac=function(e){return
new(e||t)(D(jo),D(Oe),D(qt),D(cs),D(Or))},t.\u0275cmp=z({type:t,selectors:[["app-schedule"]],viewQuery:function(e,n){if(1&e&&W(Noe,5),2&e){let
s;V(s=B())&&(n.currentForm=s.first)}},hostBindings:function(e,n){1&e&&C("beforeunload",function(r){return
n.onWindowClose(r)},!1,ni)},inputs:{inter:"inter"},decls:3,vars:1,consts:[["name","schedform",1,"ml-3","mr-3"],["schedform","ngForm"],[4,"ngIf"],[3,"header","visible","modal","closable","closeOnEscape","visibleChange"],["class","form-group
field",4,"ngIf"],[1,"form-group","field"],["for","SearchType",1,"label","block"],["optionLabel","prompt","optionValue","value","name","SearchType","optionDisabled","inactive",3,"options","ngModel","editable","maxlength","disabled","ngModelChange","onChange"],["SearchType","ngModel"],["for","Title",1,"label","block"],["pInputTextArea","","id","Title","name","Title",1,"text-lg","mb-2","
form-control","w-full",3,"ngModel","disabled","rows","ngModelChange","focusout"],["for","Type",1,"label","block"],["optionLabel","prompt","optionValue","value","name","Type",3,"options","ngModel","editable","maxlength","ngModelChange"],["Type","ngModel"],["for","RecGroup",1,"label","block"],["name","RecGroup",3,"options","ngModel","editable","maxlength","ngModelChange"],["RecGroup","ngModel"],["inputId","Active","name","Active",1,"label","mb-2","w-full",3,"ngModel","binary","label","trueValue","falseValue","disabled","ngModelChange"],["Active","ngModel"],["for","PlayGroup",1,"label","block"],["PlayGroup","Type","name","PlayGroup",3,"options","ngModel","editable","maxlength","ngModelChange"],["PlayGroup","ngModel"],["for","StartOffset",1,"label","block"],["name","StartOffset","id","StartOffset",3,"ngModel","showButtons","min","max","step","ngModelChange"],["for","EndOffset",1,"label","block"],["name","EndOffset","id","EndOffset",3,"ngModel","showButtons","min","max","step","ngModelCh
ange"],["inputId","NewEpisOnly","name","NewEpisOnly",1,"label","mb-2","w-full",3,"ngModel","binary","label","ngModelChange"],["UseEIT","ngModel"],["for","RecPriority",1,"label","block"],["name","RecPriority","id","RecPriority",3,"ngModel","showButtons","min","max","step","ngModelChange"],["for","PreferredInput",1,"label","block"],["optionLabel","DisplayName","optionValue","Id","name","PreferredInput",3,"options","ngModel","editable","maxlength","ngModelChange"],["PreferredInput","ngModel"],["for","DupMethod",1,"label","block"],["optionLabel","prompt","optionValue","value","name","DupMethod",3,"options","ngModel","editable","maxlength","ngModelChange"],["DupMethod","ngModel"],["for","DupIn",1,"label","block"],["optionLabel","prompt","optionValue","value","name","DupIn",3,"options","ngModel","editable","maxlength","ngModelChange"],["DupIn","ngModel"],["for","AutoExtend",1,"label","block"],["optionLabel","prompt","optionValue","value","name","AutoExtend",3,"options","ngModel","editable
","maxlength","ngModelChange"],["AutoExtend","ngModel"],["for","Filters",1,"label","block"],["optionLabel","Description","optionValue","Id","name","Filters",3,"options","ngModel","ngModelChange","onChange"],["Filters","ngModel"],["for","RecProfile",1,"label","block"],["optionLabel","prompt","optionValue","value","name","RecProfile",3,"options","ngModel","editable","maxlength","ngModelChange"],["RecProfile","ngModel"],["for","StorageGroup",1,"label","block"],["name","StorageGroup",3,"options","ngModel","editable","maxlength","ngModelChange"],["StorageGroup","ngModel"],["for","MaxEpisodes",1,"label","block"],["name","MaxEpisodes","id","MaxEpisodes",3,"ngModel","showButtons","min","max","step","ngModelChange"],["inputId","MaxNewest","name","MaxNewest",1,"label","mb-2","w-full",3,"ngModel","binary","label","ngModelChange"],["MaxNewest","ngModel"],[1,"block"],["inputId","AutoExpire","name","AutoExpire",1,"label","mb-2","w-full",3,"ngModel","binary","label","ngModelChange"],["AutoExpire",
"ngModel"],["for","PostProc",1,"label","block"],["optionLabel","prompt","optionValue","value","name","PostProc",3,"options","ngModel","filter","ngModelChange","onChange"],["PostProc","ngModel"],["pTemplate","footer"],[3,"header","visible","modal","visibleChange"],["for","Template",1,"label","block"],["optionLabel","Title","optionValue","Id","name","Template",1,"pr-2",3,"options","ngModel","editable","maxlength","ngModelChange","onClick","onChange"],["Template","ngModel"],["for","SubTitle","class","label
block",4,"ngIf"],["pInputTextArea","","id","SubTitle","name","SubTitle","class","text-lg
mb-2 form-control
w-full",3,"ngModel","disabled","rows","ngModelChange",4,"ngIf"],["for","SubTitle",1,"label","block"],["pInputTextArea","","id","SubTitle","name","SubTitle",1,"text-lg","mb-2","form-control","w-full",3,"ngModel","disabled","rows","ngModelChange"],[3,"ngSwitch"],["for","Description","class","label
block
mb-2",4,"ngSwitchCase"],["for","Description","class","label
block mb-2",4,"ngS
witchDefault"],["pInputTextArea","","id&quo...
],["for","ttvdb"],["src","images/metadata/thetvdb.png","alt","thtvdb","height","40",1,"pl-1"],[1,"col-9","flex","align-items-center"],["target","_blank",3,"href"],[1,"col-5","flex","align-items-center"],["name","prefix","value","tvmaze.py_","inputId","tvmaze",3,"ngModel","ngModelChange"],["for","tvmaze"],["src","images/metadata/tvmaze.png","alt","tvmaze","height","40",1,"pl-1"],[1,"col-7","flex","align-items-center"],["name","prefix","value","tmdb3.py_","inputId","tmdb",3,"ngModel","ngModelChange"],["for","tmdb"],["src","images/metadata/themoviedb.svg","alt","themoviedb","height","40",1,"pl-1"],["pInputText","","id","Inetref","name","Inetref",1,"mb-2","form-control","w-full",3,"ngModel","ngModelChange"],["Inetref","ngModel"],[1,"col-12",2,"text-align","left"],["severity","success",3,"text",4,"ngIf"],["severity","error",3,"text",4,"ngIf"],["icon","pi
pi-times-circle","styleClass","p-button-warning",3,"label","onClick"],["icon","pi
pi-check-circle","styleClass","p-button-success",3,"l
abel","disabled","onClick"],["severity","success",3,"text"],["severity","error",3,"text"],["icon","pi
pi-times-circle","styleClass","p-button-danger",3,"label","onClick"],["icon","pi
pi-check-circle","styleClass","p-button-success",3,"label","onClick"]],template:function(e,n){1&e&&(l(0,"form",0,1),_(2,oae,154,212,"div",2),c()),2&e&&(a(2),p("ngIf",n.recRule))},directives:[ze,Ue,He,Q,bn,Ot,Te,_e,_n,Ye,gr,Ja,km,x7,xr,pt,sn,X2,Sd,ne,qe,ve],pipes:[ce],styles:[""]}),t})();function
aae(t,i){if(1&t){const
e=I();l(0,"p-checkbox",27,28),C("onChange",function(s){return
v(e).filterCallback(s.checked)}),m(2,"translate"),c()}if(2&t){const
e=i.$implicit;Bn("label","",f(2,3,"dashboard.upcoming.showall"),"
"),p("ngModel",e)("binary",!0)}}function
lae(t,i){if(1&t){const
e=I();l(0,"p-dropdown",29),C("onChange",function(s){return
v(e).filterCallback(s.value)}),m(1,"translate"),c()}if(2&t){const
e=i.$implicit,n=d(2);x("placeholder",f(1,4,"settings.chanedit.all")),p("ngModel",e)("options",n.recRules)("sh
owClear",!0)}}const
cae=function(){return{width:"2rem",height:"2rem"}};function
uae(t,i){1&t&&(l(0,"div"),k(1,"p-progressSpinner"),c()),2&t&&(a(1),q(A(2,cae)))}function
dae(t,i){if(1&t){const
e=I();l(0,"button",30),C("click",function(){return
v(e),d(2).refresh()}),m(1,"translate"),c()}2&t&&x("pTooltip",f(1,1,"common.refresh"))}function
pae(t,i){if(1&t&&(l(0,"tr")(1,"th")(2,"p-columnFilter",10),_(3,aae,3,5,"ng-template",11),c(),g(4),m(5,"translate"),l(6,"p-columnFilter",12),_(7,lae,2,6,"ng-template",11),c(),_(8,uae,2,3,"div",13),_(9,dae,2,3,"ng-template",null,14,we),g(11),c()(),l(12,"tr")(13,"th",15),g(14),m(15,"translate"),c(),l(16,"th",16),g(17),m(18,"translate"),c(),k(19,"th",17),l(20,"th",18),g(21),m(22,"translate"),c(),l(23,"th",19),g(24),m(25,"translate"),c(),l(26,"th",20),g(27),m(28,"translate"),c(),l(29,"th",21),g(30),m(31,"translate"),c(),l(32,"th",15),g(33),m(34,"translate"),c(),l(35,"th",22),g(36),m(37,"translate"),c(),l(38,"th",18),g(39),m(40,"translate"),c(),l(41,"th",23
),g(42),m(43,"translate"),c(),l(44,"th",24),k(45,"button",25),c(),l(46,"th",24),k(47,"button",26),c()()),2&t){const
e=F(10),n=d();a(2),p("showMenu",!1)("showClearButton",!1),a(2),T("
\xa0\xa0\xa0\xa0\xa0 ",f(5,20,"dashboard.upcoming.recrule"),": \xa0
"),a(2),p("showMenu",!1)("showClearButton",!1),a(2),p("ngIf",n.refreshing)("ngIfElse",e),a(3),T("
\xa0\xa0\xa0",n.programs.length," Rows "),a(3),T("
",f(15,22,"dashboard.upcoming.date")," "),a(3),T("
",f(18,24,"dashboard.upcoming.time"),"
"),a(4),T("",f(22,26,"dashboard.upcoming.encoder"),"
"),a(3),T("
",f(25,28,"dashboard.recordings.title"),""),a(3),S(f(28,30,"dashboard.recordings.subtitle")),a(3),S(f(31,32,"dashboard.recordings.seas_ep")),a(3),T("
",f(34,34,"dashboard.recordings.orig_airdate"),"
"),a(3),S(f(37,36,"dashboard.recordings.channel")),a(3),T("
",f(40,38,"dashboard.recordings.recgrp")," "),a(3),T("
",f(43,40,"dashboard.upcoming.status"),"
"),a(3),p("disabled",!0),a(2),p("disabled",!0)}}function
hae(t,i){if(1&t&&(l(0,"div"),g
(1),c()),2&t){const e=d().$implicit;a(1),We("
",e.Season,"x",e.Episode," ")}}const
mae=function(){return["WillRecord","Recording","Recorded"]};function
fae(t,i){if(1&t&&(l(0,"div",42),g(1),c()),2&t){const
e=d().$implicit,n=d();p("ngClass",A(2,mae).indexOf(e.Recording.StatusName)>-1?"text-green-500":"text-pink-500"),a(1),T("
",n.dataService.recStatusText[e.Recording.StatusName]," ")}}function
gae(t,i){if(1&t){const
e=I();l(0,"button",43),C("click",function(){v(e);const
s=d().$implicit;return
d().stopRequest(s)}),m(1,"translate"),c()}2&t&&x("pTooltip",f(1,1,"dashboard.recordings.stop_recording"))}function
_ae(t,i){if(1&t){const
e=I();l(0,"button",44),C("click",function(){v(e);const
s=d().$implicit;return
d().override(s)}),m(1,"translate"),c()}2&t&&x("pTooltip",f(1,1,"dashboard.recordings.override_rule"))}const
bae=function(){return["Recording","Failing"]};function
vae(t,i){if(1&t){const
e=I();l(0,"tr")(1,"td",31),k(2,"div",32),c(),l(3,"td",33),g(4),c(),l(5,"td",34),g(6),m(7,"number"),
c(),l(8,"td",18),g(9),c(),l(10,"td",35),g(11),c(),l(12,"td",36),g(13),c(),l(14,"td",21),_(15,hae,2,2,"div",37),c(),l(16,"td",15),k(17,"div",32),c(),l(18,"td",22),g(19),c(),l(20,"td",18),g(21),c(),l(22,"td",23),_(23,fae,2,3,"div",38),c(),l(24,"td",24),_(25,gae,2,3,"button",39),_(26,_ae,2,3,"ng-template",null,40,we),c(),l(28,"td",24)(29,"button",41),C("click",function(){const
r=v(e).$implicit;return
d().updateRecRule(r)}),m(30,"translate"),c()()()}if(2&t){const
e=i.$implicit,n=F(27),s=d();a(2),p("innerHTML",s.formatStartDate(e),Bt),a(2),T("
",s.formatStartTime(e),""),a(2),T("
",Dt(7,17,s.getDuration(e),"1.0-0"),"
min"),a(3),T("",e.Recording.EncoderName," "),a(2),T("
",e.Title,""),a(1),x("pTooltip",e.Description),a(1),T("
",e.SubTitle.slice(0,50),""),a(2),p("ngIf",e.Season>0||e.Episode>0),a(2),p("innerHTML",s.formatAirDate(e),Bt),a(2),We("
",e.Channel.ChanNum,"
",e.Channel.CallSign,""),a(2),S(e.Recording.RecGroup),a(2),p("ngIf",e.Recording),a(2),p("ngIf",A(22,bae).indexOf(e.Recording.S
tatusName)>-1)("ngIfElse",n),a(4),x("pTooltip",f(30,20,"dashboard.recordings.edit_rule")),p("disabled",e.Recording&&7==e.Recording.RecType)}}function
Cae(t,i){1&t&&(k(0,"p-message",49),m(1,"translate")),2&t&&x("text",f(1,1,"common.networkfail"))}function
yae(t,i){if(1&t){const
e=I();l(0,"div",45),_(1,Cae,2,3,"p-message",46),c(),l(2,"p-button",47),C("onClick",function(){return
v(e),d().displayStop=!1}),m(3,"translate"),c(),l(4,"p-button",48),C("onClick",function(){v(e);const
s=d();return s.stopRecording(s.program)}),m(5,"translate"),c()}if(2&t){const
e=d();a(1),p("ngIf",e.errorCount>0),a(1),x("label",f(3,3,"common.close")),a(2),x("label",f(5,5,"dashboard.recordings.stop_recording"))}}let
wae=(()=>{class
t{constructor(e,n,s,r,o){this.dvrService=e,this.messageService=n,this.translate=s,this.dataService=r,this.utility=o,this.programs=[],this.recRules=[],this.allRecRules=[],this.activeRecRules=[],this.defaultRecRule={Id:0,Title:"settings.chanedit.all"},this.displayUpdateDlg=!1,this.showA
llStatuses=!1,this.refreshing=!1,this.loaded=!1,this.inter={summaryComponent:this},this.displayStop=!1,this.errorCount=0,this.translate.get(this.defaultRecRule.Title).subscribe(u=>this.defaultRecRule.Title=u),this.loadRecRules()}ngOnInit(){}refresh(){this.refreshing=!0,this.loadRecRules(),this.loadLazy(this.lazyLoadEvent)}loadRecRules(){this.dvrService.GetRecordScheduleList({}).subscribe({next:e=>{this.allRecRules.length=0,this.allRecRules.push(this.defaultRecRule),this.activeRecRules.length=0,this.activeRecRules.push(this.defaultRecRule),e.RecRuleList.RecRules.forEach(n=>{if("Recording
Template"!=n.Type){let s={Id:n.Id,Title:n.Title.substring(0,30)+"
["+this.utility.recTypeTrans[n.Type]+"]"};this.allRecRules.push(s),n.NextRecording&&this.activeRecRules.push(s)}})}})}loadLazy(e){this.lazyLoadEvent=e;let
n={StartIndex:0,Count:1};e.first&&(n.StartIndex=e.first),e.rows&&(n.Count=e.rows,n.Count<100&&(n.Count=100)),e.filters&&(e.filters.ShowAll.value&&(n.ShowAll=!0),e.filters.RecordId.va
lue&&(n.RecordId=e.filters.RecordId.value)),this.recRules.length=0,n.ShowAll?this.recRules.push(...this.allRecRules):this.recRules.push(...this.activeRecRules),this.dvrService.GetUpcomingList(n).subscribe(s=>{let
r=s.ProgramList;this.programs.length=s.ProgramList.TotalAvailable,this.programs.splice(r.StartIndex,r.Count,...r.Programs),this.programs=[...this.programs],this.refreshing=!1})}formatStartDate(e){return
this.utility.formatDate(e.Recording.StartTs,!0)}formatAirDate(e){return
e.Airdate?this.utility.formatDate(e.Airdate+"
00:00",!0):""}formatStartTime(e){return(new
Date(e.Recording.StartTs).toLocaleTimeString()+" ").replace(/:.. /,"
")}getDuration(e){let n=new Date(e.Recording.StartTs).getTime();return(new
Date(e.Recording.EndTs).getTime()-n)/6e4}updateRecRule(e){this.inter.sched&&this.inter.sched.open(e)}override(e){this.inter.sched&&(7==e.Recording.RecType?this.inter.sched.open(e):this.inter.sched.open(e,void
0,{Type:"Override Recording"}))}stopRequest(e){e.Recording.RecordI
d&&(this.program=e,this.displayStop=!0)}stopRecording(e){this.errorCount=0,this.dvrService.StopRecording(e.Recording.RecordedId).subscribe({next:n=>{n.bool?(this.displayStop=!1,setTimeout(()=>this.inter.summaryComponent.refresh(),3e3)):this.errorCount++},error:n=>{this.errorCount++}})}}return
t.\u0275fac=function(e){return
new(e||t)(D(jo),D(Gi),D(Oe),D(Ll),D(cs))},t.\u0275cmp=z({type:t,selectors:[["app-upcoming"]],features:[Pe([Gi])],decls:24,vars:25,consts:[[2,"white-space","pre-line"],["position","center"],[1,"block","card","w-full"],[2,"height","90vh"],["scrollHeight","flex","styleClass","p-datatable-striped",3,"value","scrollable","virtualScroll","rows","lazy","rowHover","onLazyLoad"],["pTemplate","header"],["pTemplate","body"],[3,"header","visible","modal","draggable","resizable","visibleChange"],["pTemplate","footer"],[3,"inter"],["field","ShowAll","matchMode","equals",3,"showMenu","showClearButton"],["pTemplate","filter"],["field","RecordId","matchMode","equals",3,"showMenu",
"showClearButton"],[4,"ngIf","ngIfElse"],["refreshBn",""],[1,"justify-content-end","p-1",2,"flex-basis","8%"],[1,"justify-content-end","p-1",2,"flex-basis","6%"],[1,"justify-content-end","pl-1","pr-3","pt-1","pb-1",2,"flex-basis","7%"],[1,"p-1",2,"flex-basis","8%"],[1,"p-1",2,"flex-basis","12%"],[1,"p-1",2,"flex-basis","18%"],[1,"p-1",2,"flex-basis","4%"],[1,"p-1",2,"flex-basis","10%"],[1,"p-1",2,"flex-basis","7%"],[1,"p-1",2,"flex-basis","2%"],["pButton","","pRipple","","icon","pi
pi-paperclip",1,"p-button-text","p-button-primary",3,"disabled"],["pButton","","pRipple","","icon","pi
pi-pencil",1,"p-button-text","p-button-primary",3,"disabled"],["inputId","showAllStatuses","name","showAllStatuses",3,"ngModel","binary","label","onChange"],["showAll","ngModel"],["name","rulefilter","optionLabel","Title","optionValue","Id",3,"ngModel","options","placeholder","showClear","onChange"],["pButton","","pRipple","","icon","pi
pi-refresh",1,"p-button-text",".p-button-success",3,"pTooltip","clic
k"],[1,"justify-content-end","p-1","overflow-hidden",2,"flex-basis","8%"],[3,"innerHTML"],[1,"justify-content-end","p-1","overflow-hidden",2,"flex-basis","6%"],[1,"justify-content-end","pl-1","pr-3","pt-1","pb-1","overflow-hidden",2,"flex-basis","7%"],[1,"p-1","overflow-hidden",2,"flex-basis","12%"],["tooltipPosition","top",1,"p-1","overflow-hidden",2,"flex-basis","18%",3,"pTooltip"],[4,"ngIf"],[3,"ngClass",4,"ngIf"],["pButton","","pRipple","","icon","pi
pi-stop-circle","class","p-button-text
p-button-danger","tooltipPosition","left",3,"pTooltip","click",4,"ngIf","ngIfElse"],["overrideBn",""],["pButton","","pRipple","","icon","pi
pi-pencil","tooltipPosition","left",1,"p-button-text","p-button-primary",3,"pTooltip","disabled","click"],[3,"ngClass"],["pButton","","pRipple","","icon","pi
pi-stop-circle","tooltipPosition","left",1,"p-button-text","p-button-danger",3,"pTooltip","click"],["pButton","","pRipple","","icon","pi
pi-paperclip","tooltipPosition","left",1,"p-button-text","p-butt
on-primary",3,"pTooltip","click"],[1,"col-12",2,"text-align","left"],["severity","error",3,"text",4,"ngIf"],["icon","pi
pi-times-circle","styleClass","p-button-warning",3,"label","onClick"],["icon","pi
pi-check-circle","styleClass","p-button-danger",3,"label","onClick"],["severity","error",3,"text"]],template:function(e,n){1&e&&(l(0,"div")(1,"div",0),k(2,"p-toast",1),c(),l(3,"h2"),g(4),m(5,"translate"),c(),l(6,"div",2)(7,"div",3)(8,"p-table",4),C("onLazyLoad",function(r){return
n.loadLazy(r)}),_(9,pae,48,42,"ng-template",5),_(10,vae,31,23,"ng-template",6),c(),l(11,"p-dialog",7),C("visibleChange",function(r){return
n.displayStop=r}),m(12,"translate"),l(13,"h2"),g(14),m(15,"translate"),c(),l(16,"p"),g(17),m(18,"translate"),k(19,"br"),l(20,"b"),g(21),c()(),_(22,yae,6,7,"ng-template",8),c(),k(23,"app-schedule",9),c()()()),2&e&&(a(4),S(f(5,17,"dashboard.upcoming.heading")),a(4),p("value",n.programs)("scrollable",!0)("virtualScroll",!0)("rows",50)("lazy",!0)("rowHover",!0),a(3),x("header"
,f(12,19,"dashboard.recordings.stop_recording")),p("visible",n.displayStop)("modal",!0)("draggable",!1)("resizable",!1),a(3),S(f(15,21,"settings.common.ru_sure")),a(3),T("",f(18,23,"dashboard.recordings.stop_details"),"
"),a(4),We(" ",null==n.program?null:n.program.Title,":
",null==n.program?null:n.program.SubTitle,""),a(2),p("inter",n.inter))},directives:[Td,Dn,ne,vg,sn,Te,_e,Ot,Q,Go,On,bt,Kt,Le,bn,qe,ve,Rd],pipes:[ce,eu],styles:[""]}),t})();function
Tae(t,i){if(1&t){const
e=I();l(0,"button",10),C("click",function(){return
v(e),d(2).newRecRule()}),m(1,"translate"),c(),l(2,"button",11),C("click",function(){return
v(e),d(2).newTemplate()}),m(3,"translate"),c()}2&t&&(x("label",f(1,2,"dashboard.recrules.new_recrule")),a(2),x("label",f(3,4,"dashboard.recrules.new_teplate")))}function
Sae(t,i){1&t&&(l(0,"tr")(1,"th",12),g(2),m(3,"translate"),k(4,"p-sortIcon",13),c(),l(5,"th",14),g(6),m(7,"translate"),c(),l(8,"th",15),g(9),m(10,"translate"),c(),l(11,"th",15),g(12),m(13,"translate"),c(),l(
14,"th",15),g(15),m(16,"translate"),c(),l(17,"th",16),g(18),m(19,"translate"),k(20,"p-sortIcon",17),c(),l(21,"th",18),g(22),m(23,"translate"),k(24,"p-sortIcon",19),c(),l(25,"th",20),g(26,"Active"),c(),l(27,"th",21),k(28,"button",22)(29,"button",23),c()()),2&t&&(a(2),T("
",f(3,9,"dashboard.recordings.title"),"
"),a(4),S(f(7,11,"dashboard.recrule.type")),a(3),S(f(10,13,"common.priority")),a(3),T("
",f(13,15,"dashboard.recordings.recgrp")," "),a(3),T("
",f(16,17,"dashboard.recrules.storgrp")," "),a(3),T("
",f(19,19,"dashboard.recrules.lastrec"),""),a(4),T("
",f(23,21,"dashboard.recrules.nextrec"),""),a(6),p("disabled",!0),a(1),p("disabled",!0))}function
xae(t,i){1&t&&k(0,"i",31)}function
Dae(t,i){1&t&&k(0,"i",32)}function Mae(t,i){if(1&t){const
e=I();l(0,"tr")(1,"td",24),g(2),c(),l(3,"td",14),g(4),c(),l(5,"td",15),g(6),c(),l(7,"td",15),g(8),c(),l(9,"td",15),g(10),c(),l(11,"td",25),g(12),c(),l(13,"td",26),g(14),c(),l(15,"td",20),_(16,xae,1,0,"i",27),_(17,Dae,1,0,"ng-template",null,28,we
),c(),l(19,"td",21)(20,"button",29),C("click",function(){const
r=v(e).$implicit;return
d(2).updateRecRule(r)}),m(21,"translate"),c(),l(22,"button",30),C("click",function(){const
r=v(e).$implicit;return
d(2).deleteRequest(r)}),m(23,"translate"),c()()()}if(2&t){const
e=i.$implicit,n=F(18),s=d(2);a(2),T(" ",e.Title,""),a(2),T("
",s.utility.recTypeTrans[e.Type],""),a(2),S(e.RecPriority),a(2),S(e.RecGroup),a(2),S(e.StorageGroup),a(2),T("
",s.utility.formatDate(e.LastRecorded),""),a(2),We("
",s.utility.formatDate(e.NextRecording),"
",s.utility.formatTime(e.NextRecording),""),a(2),p("ngIf",e.Inactive)("ngIfElse",n),a(4),x("pTooltip",f(21,13,"dashboard.recordings.edit_rule")),a(2),x("pTooltip",f(23,15,"dashboard.recordings.delete_rule")),p("disabled","Recording
Template"==e.Type&&"Default"==e.Category)}}function
kae(t,i){if(1&t&&(l(0,"div",5)(1,"p-table",6),_(2,Tae,4,6,"ng-template",7),_(3,Sae,30,23,"ng-template",8),_(4,Mae,24,17,"ng-template",9),c()()),2&t){const
e=d();a(1),p("value",e.rec
Rules)("scrollable",!0)("rowHover",!0)}}function
Iae(t,i){1&t&&(k(0,"p-message",37),m(1,"translate")),2&t&&x("text",f(1,1,"common.networkfail"))}function
Eae(t,i){if(1&t){const
e=I();l(0,"div",33),_(1,Iae,2,3,"p-message",34),c(),l(2,"p-button",35),C("onClick",function(){return
v(e),d().displayDelete=!1}),m(3,"translate"),c(),l(4,"p-button",36),C("onClick",function(){v(e);const
s=d();return s.deleteRule(s.recRule)}),m(5,"translate"),c()}if(2&t){const
e=d();a(1),p("ngIf",e.errorCount>0),a(1),x("label",f(3,3,"common.close")),a(2),x("label",f(5,5,"common.delete"))}}function
Rae(t,i){1&t&&k(0,"p-progressSpinner")}let Lae=(()=>{class
t{constructor(e,n){this.dvrService=e,this.utility=n,this.recRules=[],this.inter={summaryComponent:this},this.deSpacer=new
RegExp(/
/g),this.rulesLoaded=!1,this.errorCount=0,this.successCount=0,this.displayDelete=!1,this.saveObserver={next:s=>{this.recRule?this.recRule.Id&&s.bool?(this.successCount++,this.displayDelete=!1,setTimeout(()=>this.refresh(),1e3)):!t
his.recRule.Id&&s.uint?(this.successCount++,setTimeout(()=>this.inter.summaryComponent.refresh(),1e3),this.recRule.Id=s.uint):this.errorCount++:(console.log("ERROR:
recRule is
undefined"),this.errorCount++)},error:s=>{console.error(s),this.errorCount++}}}refresh(){this.loadLists()}ngOnInit(){this.loadLists()}loadLists(){this.recRules=[],this.errorCount=0,this.dvrService.GetRecordScheduleList({}).subscribe({next:e=>{this.recRules=e.RecRuleList.RecRules,this.rulesLoaded=!0},error:e=>{this.errorCount++}})}newRecRule(){this.updateRecRule()}updateRecRule(e){this.inter.sched&&this.inter.sched.open(void
0,void 0,e)}newTemplate(){this.updateRecRule({Type:"Recording
Template"})}deleteRequest(e){this.recRule=e,this.displayDelete=!0}deleteRule(e){this.dvrService.RemoveRecordSchedule(e.Id).subscribe(this.saveObserver)}}return
t.\u0275fac=function(e){return
new(e||t)(D(jo),D(cs))},t.\u0275cmp=z({type:t,selectors:[["app-recrules"]],decls:19,vars:21,consts:[["class","block
card w-full","style","he
ight:
90vh",4,"ngIf","ngIfElse"],[3,"header","visible","modal","draggable","resizable","visibleChange"],["pTemplate","footer"],[3,"inter"],["loading",""],[1,"block","card","w-full",2,"height","90vh"],["scrollHeight","flex","styleClass","p-datatable-striped","responsiveLayout","scroll",3,"value","scrollable","rowHover"],["pTemplate","caption"],["pTemplate","header"],["pTemplate","body"],["pButton","","pRipple","","icon","pi
pi-plus",1,"p-button-success","mr-2",3,"label","click"],["pButton","","pRipple","","icon","pi
pi-plus",1,"p-button-success","p-button-outlined","mr-2",3,"label","click"],["pSortableColumn","Title",1,"p-1",2,"flex-basis","20%"],["field","Title"],[1,"p-1",2,"flex-basis","20%"],[1,"p-1",2,"flex-basis","10%"],["pSortableColumn","LastRecorded",1,"justify-content-end","pr-5",2,"flex-basis","10%"],["field","LastRecorded"],["pSortableColumn","NextRecording",1,"justify-content-end","pr-5",2,"flex-basis","15%"],["field","NextRecording"],[1,"p-1",2,"flex-basis","5%"],[1,"p-1
",2,"flex-basis","6%"],["pButton","","pRipple","","icon","pi
pi-pencil",1,"p-button-text","p-button-primary",3,"disabled"],["pButton","","pRipple","","icon","pi
pi-trash",1,"p-button-text","p-button-danger",3,"disabled"],[1,"p-1","overflow-hidden",2,"flex-basis","20%"],[1,"justify-content-end","p-1","pr-5",2,"flex-basis","10%"],[1,"justify-content-end","p-1","pr-5",2,"flex-basis","15%"],["class","pi
pi-times
text-pink-500",4,"ngIf","ngIfElse"],["checkmark",""],["pButton","","pRipple","","icon","pi
pi-pencil","tooltipPosition","left",1,"p-button-text","p-button-primary",3,"pTooltip","click"],["pButton","","pRipple","","icon","pi
pi-trash","tooltipPosition","left",1,"p-button-text","p-button-danger",3,"pTooltip","disabled","click"],[1,"pi","pi-times","text-pink-500"],[1,"pi","pi-check","text-green-500"],[1,"col-12",2,"text-align","left"],["severity","error",3,"text",4,"ngIf"],["icon","pi
pi-times-circle","styleClass","p-button-warning",3,"label","onClick"],["icon","pi
pi-check-circle"
,"styleClass","p-button-danger",3,"label","onClick"],["severity","error",3,"text"]],template:function(e,n){if(1&e&&(l(0,"h2"),g(1),m(2,"translate"),c(),_(3,kae,5,3,"div",0),l(4,"p-dialog",1),C("visibleChange",function(r){return
n.displayDelete=r}),m(5,"translate"),l(6,"h2"),g(7),m(8,"translate"),c(),l(9,"p"),g(10),m(11,"translate"),k(12,"br"),l(13,"b"),g(14),c()(),_(15,Eae,6,7,"ng-template",2),c(),k(16,"app-schedule",3),_(17,Rae,1,0,"ng-template",null,4,we)),2&e){const
s=F(18);a(1),S(f(2,13,"dashboard.recrules.heading")),a(2),p("ngIf",n.rulesLoaded)("ngIfElse",s),a(1),x("header",f(5,15,"dashboard.recordings.delete_rule")),p("visible",n.displayDelete)("modal",!0)("draggable",!1)("resizable",!1),a(3),S(f(8,17,"settings.common.ru_sure")),a(3),T("",f(11,19,"dashboard.recordings.delete_details"),"
"),a(4),We(" ",null==n.recRule?null:n.recRule.Title,":
",null==n.recRule?null:n.recRule.Type,""),a(2),p("inter",n.inter)}},directives:[Q,Dn,ne,On,bt,yd,wd,Kt,bn,qe,ve,Rd,Go],pipes:[ce],styles:[
""]}),t})(),Oae=(()=>{class
t{constructor(e){this.httpClient=e}GetVideoList(e){let n=new ye;for(const[s,r]of
Object.entries(e))n=n.set(s,r);return
this.httpClient.get("/Video/GetVideoList",{params:n})}UpdateVideoWatchedStatus(e,n){return
this.httpClient.post("/Video/UpdateVideoWatchedStatus",{Id:e,Watched:n})}UpdateVideoMetadata(e){return
this.httpClient.post("/Video/UpdateVideoMetadata",e)}}return
t.\u0275fac=function(e){return
new(e||t)(K(Bi))},t.\u0275prov=X({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();const
Aae=["vidsform"],Pae=["menu"],Fae=["table"];function
Nae(t,i){}function Vae(t,i){if(1&t){const
e=I();l(0,"div")(1,"p-button",35),C("onClick",function(){const
r=v(e).index;return d(2).breadCrumb(r+1)}),c()()}if(2&t){const
e=i.$implicit;a(1),x("label",e)}}const
Bae=function(){return{width:"30px",height:"30px"}};function
Hae(t,i){1&t&&(l(0,"div"),k(1,"p-progressSpinner"),c()),2&t&&(a(1),q(A(2,Bae)))}function
qae(t,i){if(1&t){const e=I();l(0,"button",52),C("click",funct
ion(){v(e);const s=d(2);return
s.refreshing=!0,s.reLoadVideos()}),m(1,"translate"),c()}2&t&&x("pTooltip",f(1,1,"common.refresh"))}function
Gae(t,i){if(1&t){const
e=I();l(0,"tr")(1,"th")(2,"p-button",35),C("onClick",function(){return
v(e),d().breadCrumb(0)}),m(3,"translate"),c(),_(4,Vae,2,1,"div",36),g(5,"
\xa0\xa0\xa0
"),l(6,"p-checkbox",37,38),C("ngModelChange",function(s){return
v(e),d().showAllVideos=s})("onChange",function(){return
v(e),d().showAllChange()}),m(8,"translate"),c(),_(9,Hae,2,3,"div",39),_(10,qae,2,3,"ng-template",null,40,we),g(12),c()(),l(13,"tr")(14,"th",41),g(15),m(16,"translate"),k(17,"p-sortIcon",42),c(),k(18,"th",43),l(19,"th",44),g(20),m(21,"translate"),c(),l(22,"th",45),g(23),m(24,"translate"),c(),l(25,"th",46),g(26),m(27,"translate"),k(28,"p-sortIcon",47),c(),l(29,"th",48),g(30),m(31,"translate"),c(),l(32,"th",45)(33,"a",49),k(34,"i",50),c(),k(35,"button",51),c()()}if(2&t){const
e=F(11),n=d();a(2),x("label",f(3,14,"dashboard.videos.heading")),a(2),p("ngForO
f",n.directory),a(2),Bn("label","",f(8,16,"dashboard.videos.showall"),"
"),p("ngModel",n.showAllVideos)("binary",!0),a(3),p("ngIf",n.refreshing)("ngIfElse",e),a(3),T("
\xa0\xa0\xa0",n.videos.length," Rows "),a(3),T("
",f(16,18,"dashboard.recordings.title"),"
"),a(5),S(f(21,20,"dashboard.recordings.subtitle")),a(3),S(f(24,22,"dashboard.recordings.seas_ep")),a(3),T("
",f(27,24,"dashboard.videos.releasedate")," "),a(4),T("
",f(31,26,"dashboard.recordings.duration"),"
"),a(5),p("disabled",!0)}}function Uae(t,i){if(1&t){const
e=I();l(0,"div")(1,"button",60),C("click",function(){v(e);const
s=d().$implicit;return d().onDirectory(s.Title)}),c()()}if(2&t){const
e=d().$implicit;a(1),x("label",e.Title)}}function
zae(t,i){1&t&&g(0),2&t&&T(" ",d().$implicit.Title,"
")}function jae(t,i){1&t&&k(0,"i",61)}function
$ae(t,i){if(1&t&&(l(0,"div"),g(1),c()),2&t){const
e=d().$implicit;a(1),We(" ",e.Season,"x",e.Episode,"
")}}function
Wae(t,i){if(1&t&&(l(0,"div"),g(1),c()),2&t){const
e=d().$implicit;a(1),
T(" ",e.Length," min ")}}function Kae(t,i){if(1&t){const
e=I();l(0,"div")(1,"a",62),m(2,"translate"),k(3,"i",63),c(),l(4,"button",64),C("click",function(s){v(e);const
r=d().$implicit;return d().showMenu(r,s)}),c()()}if(2&t){const
e=d().$implicit,n=d();a(1),x("href",n.URLencode("/Content/GetVideo?Id="+e.Id),ln),x("pTooltip",f(2,2,"dashboard.videos.download"))}}function
Qae(t,i){if(1&t&&(l(0,"tr")(1,"td",53),_(2,Uae,2,1,"div",39),_(3,zae,1,1,"ng-template",null,54,we),c(),l(5,"td",43),_(6,jae,1,0,"i",55),c(),l(7,"td",56),g(8),c(),l(9,"td",45),_(10,$ae,2,2,"div",57),c(),l(11,"td",58),k(12,"div",59),c(),l(13,"td",48),_(14,Wae,2,1,"div",57),c(),l(15,"td",45),_(16,Kae,5,4,"div",57),c()()),2&t){const
e=i.$implicit,n=F(4),s=d();a(2),p("ngIf","DIRECTORY"==e.ContentType)("ngIfElse",n),a(4),p("ngIf",e.Watched),a(1),x("pTooltip",e.Description),a(1),T("
",e.SubTitle,""),a(2),p("ngIf",e.Season>0||e.Episode>0),a(2),p("innerHTML",s.utility.formatDate(e.ReleaseDate,!0),Bt),a(2),p("ngIf",e.Length>0),a
(2),p("ngIf","DIRECTORY"!=e.ContentType)}}function
Jae(t,i){1&t&&(k(0,"p-message",70),m(1,"translate")),2&t&&x("text",f(1,1,"common.savesuccess"))}function
Yae(t,i){1&t&&(k(0,"p-message",71),m(1,"translate")),2&t&&x("text",f(1,1,"common.networkfail"))}function
Zae(t,i){if(1&t){const
e=I();l(0,"div",65),_(1,Jae,2,3,"p-message",66),_(2,Yae,2,3,"p-message",67),c(),l(3,"p-button",68),C("onClick",function(){return
v(e),d().closeDialog()}),m(4,"translate"),c(),l(5,"p-button",69),C("onClick",function(){return
v(e),d().saveVideo()}),m(6,"translate"),c()}if(2&t){const
e=d(),n=F(15);a(1),p("ngIf",e.successCount>0&&0==e.errorCount&&!n.dirty),a(1),p("ngIf",e.errorCount>0),a(1),x("label",f(4,5,"common.close")),a(2),x("label",f(6,7,"common.save")),p("disabled",!n.dirty||""==e.video.Title.trim())}}function
Xae(t,i){if(1&t){const
e=I();l(0,"p-button",72),C("onClick",function(){return
v(e),d().closeDialog()}),m(1,"translate"),c(),l(2,"p-button",73),C("onClick",function(){return
v(e),d().displayUnsav
ed=!1}),m(3,"translate"),c()}2&t&&(x("label",f(1,2,"common.nosave")),a(2),x("label",f(3,4,"common.continue")))}const
ele=function(){return{height:"75vw",width:"50vw"}};let
tle=(()=>{class
t{constructor(e,n,s,r){this.videoService=e,this.translate=n,this.messageService=s,this.utility=r,this.videos=[],this.refreshing=!1,this.successCount=0,this.errorCount=0,this.directory=[],this.video={Title:""},this.displayMetadataDlg=!1,this.displayUnsaved=!1,this.showAllVideos=!1,this.mnu_markwatched={label:"dashboard.recordings.mnu_markwatched",command:u=>this.markwatched(u,!0)},this.mnu_markunwatched={label:"dashboard.recordings.mnu_markunwatched",command:u=>this.markwatched(u,!1)},this.mnu_updatemeta={label:"dashboard.recordings.mnu_updatemeta",command:u=>this.updatemeta(u)},this.menuToShow=[],this.msg={Success:"common.success",Failed:"common.failed",NetFail:"common.networkfail"},this.saveObserver={next:u=>{u.bool?(console.log("saveObserver
success",u),this.successCount++,this.successCount++,thi
s.currentForm.form.markAsPristine(),this.editingVideo&&Object.assign(this.editingVideo,this.video)):(console.log("saveObserver
error",u),this.errorCount++)},error:u=>{console.log("saveObserver
error",u),this.errorCount++}};for(const[u,h]of
Object.entries(this.msg))this.translate.get(h).subscribe(b=>{Object.defineProperty(this.msg,u,{value:b})});[this.mnu_markwatched,this.mnu_markunwatched,this.mnu_updatemeta].forEach(u=>{u.label&&this.translate.get(u.label).subscribe(h=>u.label=h)})}ngOnInit(){}loadLazy(e){this.lazyLoadEvent=e;let
n={Sort:"title",Folder:this.directory.join("/"),CollapseSubDirs:!this.showAllVideos,StartIndex:0,Count:1};e.sortField&&(n.Sort=e.sortField,e.sortOrder&&(n.Descending=e.sortOrder<0)),n.Sort+=",title,releasedate,season,episode",e.first&&(n.StartIndex=e.first),e.rows&&(n.Count=e.rows),this.videoService.GetVideoList(n).subscribe(s=>{let
r=s.VideoMetadataInfoList;this.videos.length=s.VideoMetadataInfoList.TotalAvailable,this.videos.splice(r.StartIndex,r.Count,.
..r.VideoMetadataInfos),this.videos=[...this.videos],this.refreshing=!1})}reLoadVideos(){this.table.resetScrollTop(),this.videos.length=0,this.lazyLoadEvent.first=0,this.lazyLoadEvent.rows=100,this.loadLazy(this.lazyLoadEvent)}showAllChange(){this.refreshing=!0,setTimeout(()=>this.reLoadVideos(),100)}URLencode(e){return
encodeURI(e)}onDirectory(e){this.directory.push(e),this.reLoadVideos()}breadCrumb(e){this.directory.length=e,this.reLoadVideos()}showMenu(e,n){this.video=e,this.menuToShow.length=0,this.menuToShow.push(e.Watched?this.mnu_markunwatched:this.mnu_markwatched),this.menuToShow.push(this.mnu_updatemeta),this.menu.toggle(n)}markwatched(e,n){this.videoService.UpdateVideoWatchedStatus(this.video.Id,n).subscribe({next:s=>{s.bool?(this.sendMessage("success",e.item.label,this.msg.Success),this.video.Watched=n):this.sendMessage("error",e.item.label,this.msg.Failed)},error:s=>this.networkError(s)})}updatemeta(e){this.editingVideo=this.video,this.video=Object.assign({},this.video),
this.video.ReleaseDate=this.video.ReleaseDate?new
Date(this.video.ReleaseDate):null,this.displayMetadataDlg=!0}sendMessage(e,n,s,r){this.messageService.add({severity:e,summary:s,detail:n+"
"+this.video.Title+"
"+this.video.SubTitle+(r=r?"\n"+r:""),life:3e3})}saveVideo(){this.successCount=0,this.errorCount=0,this.displayUnsaved=!1,this.videoService.UpdateVideoMetadata({Id:this.video.Id,Episode:this.video.Episode,Inetref:this.video.Inetref,Plot:this.video.Description,ReleaseDate:this.video.ReleaseDate,Season:this.video.Season,SubTitle:this.video.SubTitle,Title:this.video.Title}).subscribe(this.saveObserver)}networkError(e){console.log("network
error",e),this.sendMessage("error","",this.msg.NetFail)}closeDialog(){this.currentForm.dirty?this.displayUnsaved?(this.displayUnsaved=!1,this.displayMetadataDlg=!1,this.editingVideo=void
0,this.currentForm.form.markAsPristine()):this.displayUnsaved=!0:(this.displayMetadataDlg=!1,this.displayUnsaved=!1,this.editingVideo=void
0)}}return t.\u0275fa
c=function(e){return
new(e||t)(D(Oae),D(Oe),D(Gi),D(cs))},t.\u0275cmp=z({type:t,selectors:[["app-videos"]],viewQuery:function(e,n){if(1&e&&(W(Aae,5),W(Pae,5),W(Fae,5)),2&e){let
s;V(s=B())&&(n.currentForm=s.first),V(s=B())&&(n.menu=s.first),V(s=B())&&(n.table=s.first)}},features:[Pe([Gi])],decls:70,vars:71,consts:[[2,"white-space","pre-line"],["position","center"],[1,"block","card","w-full",2,"height","90vh"],[3,"popup","model"],["menu",""],["name","table","scrollHeight","flex","styleClass","p-datatable-striped","responsiveLayout","scroll",3,"value","scrollable","virtualScroll","rows","lazy","rowHover","onLazyLoad"],["table",""],["pTemplate","caption"],["pTemplate","header"],["pTemplate","body"],["name","vidsform",1,"ml-3","mr-3"],["vidsform","ngForm"],[3,"header","visible","modal","closable","closeOnEscape","visibleChange"],[1,"form-group","field"],["for","Title",1,"label","block"],["pInputText","","id","Title","name","Title",1,"mb-2","form-control","w-full",3,"ngModel","ngModelChan
ge"],["Title","ngModel"],["for","SubTitle",1,"label","block"],["pInputText","","id","SubTitle","name","SubTitle",1,"mb-2","form-control","w-full",3,"ngModel","ngModelChange"],["SubTitle","ngModel"],["for","Inetref",1,"label","block"],["pInputText","","id","Inetref","name","Inetref",1,"mb-2","form-control","w-full",3,"ngModel","ngModelChange"],["Inetref","ngModel"],["for","Description",1,"label","block"],["pInputTextarea","","id","Description","name","Description",1,"mb-2","form-control","w-full",3,"rows","cols","ngModel","ngModelChange"],["Description","ngModel"],["for","Season",1,"label","block"],["name","Season","id","Season",3,"ngModel","showButtons","min","max","step","ngModelChange"],["for","Episode",1,"label","block"],["name","Episode","id","Episode",3,"ngModel","showButtons","min","max","step","ngModelChange"],["for","ReleaseDate",1,"label","block"],["dateFormat","yy-mm-dd","name","ReleaseDate","id","ReleaseDate",3,"ngModel","ngModelChange"],["for","FileName",1,"label","block
"],["pTemplate","footer"],[3,"header","visible","modal","visibleChange"],["styleClass","p-button-primary",1,"p-1",3,"label","onClick"],[4,"ngFor","ngForOf"],["inputId","showAllVideos","name","showAllVideos",3,"ngModel","binary","label","ngModelChange","onChange"],["showAll","ngModel"],[4,"ngIf","ngIfElse"],["refreshBn",""],["pSortableColumn","Title",1,"p-1",2,"flex-basis","30%"],["field","Title"],[1,"p-1",2,"flex-basis","3%"],[1,"p-1",2,"flex-basis","30%"],[1,"p-1",2,"flex-basis","6%"],["pSortableColumn","ReleaseDate",1,"justify-content-end","p-1",2,"flex-basis","12%"],["field","ReleaseDate"],[1,"justify-content-end","p-1",2,"flex-basis","10%"],["target","_blank"],[1,"pi","pi-download"],["pButton","","pRipple","","icon","pi
pi-ellipsis-v",1,"p-button-text","p-button-primary",3,"disabled"],["pButton","","pRipple","","icon","pi
pi-refresh",1,"p-button-text",".p-button-success",3,"pTooltip","click"],[1,"p-1","overflow-hidden",2,"flex-basis","30%"],["title",""],["class","pi
pi-eye",4,"n
gIf"],["tooltipPosition","top",1,"p-1","overflow-hidden",2,"flex-basis","30%",3,"pTooltip"],[4,"ngIf"],[1,"justify-content-end","p-1",2,"flex-basis","12%"],[3,"innerHTML"],["pButton","","pRipple","","icon","pi
pi-folder",1,"p-button-text","p-button-primary",3,"label","click"],[1,"pi","pi-eye"],["target","_blank","tooltipPosition","left",3,"href","pTooltip"],[1,"pi","pi-download","text-primary"],["pButton","","pRipple","","icon","pi
pi-ellipsis-v",1,"p-button-text","p-button-primary",3,"click"],[1,"col-12",2,"text-align","left"],["severity","success",3,"text",4,"ngIf"],["severity","error",3,"text",4,"ngIf"],["icon","pi
pi-times-circle","styleClass","p-button-warning",3,"label","onClick"],["icon","pi
pi-check-circle","styleClass","p-button-success",3,"label","disabled","onClick"],["severity","success",3,"text"],["severity","error",3,"text"],["icon","pi
pi-times-circle","styleClass","p-button-danger",3,"label","onClick"],["icon","pi
pi-check-circle","styleClass","p-button-success",3,"l
abel","onClick"]],template:function(e,n){1&e&&(l(0,"div")(1,"div",0),k(2,"p-toast",1),c(),l(3,"h2"),g(4),m(5,"translate"),c(),l(6,"div",2),k(7,"p-menu",3,4),l(9,"p-table",5,6),C("onLazyLoad",function(r){return
n.loadLazy(r)}),_(11,Nae,0,0,"ng-template",7),_(12,Gae,36,28,"ng-template",8),_(13,Qae,17,9,"ng-template",9),c()(),l(14,"form",10,11)(16,"p-dialog",12),C("visibleChange",function(r){return
n.displayMetadataDlg=r}),m(17,"translate"),l(18,"div",13)(19,"label",14),g(20),m(21,"translate"),c(),l(22,"input",15,16),C("ngModelChange",function(r){return
n.video.Title=r}),c()(),l(24,"div",13)(25,"label",17),g(26),m(27,"translate"),c(),l(28,"input",18,19),C("ngModelChange",function(r){return
n.video.SubTitle=r}),c()(),l(30,"div",13)(31,"label",20),g(32),m(33,"translate"),c(),l(34,"input",21,22),C("ngModelChange",function(r){return
n.video.Inetref=r}),c()(),l(36,"div",13)(37,"label",23),g(38),m(39,"translate"),c(),l(40,"textarea",24,25),C("ngModelChange",function(r){return
n.video.Descrip
tion=r}),c()(),l(42,"div",13)(43,"label",26),g(44),m(45,"translate"),c(),l(46,"p-inputNumber",27),C("ngModelChange",function(r){return
n.video.Season=r}),c()(),l(47,"div",13)(48,"label",28),g(49),m(50,"translate"),c(),l(51,"p-inputNumber",29),C("ngModelChange",function(r){return
n.video.Episode=r}),c()(),l(52,"div",13)(53,"label",30),g(54),m(55,"translate"),c(),l(56,"p-calendar",31),C("ngModelChange",function(r){return
n.video.ReleaseDate=r}),c()(),l(57,"div",13)(58,"label",32),g(59),m(60,"translate"),c(),l(61,"pre"),g(62),c()(),_(63,Zae,7,9,"ng-template",33),c(),l(64,"p-dialog",34),C("visibleChange",function(r){return
n.displayUnsaved=r}),m(65,"translate"),l(66,"p"),g(67),m(68,"translate"),c(),_(69,Xae,4,6,"ng-template",33),c()()()),2&e&&(a(4),S(f(5,46,"dashboard.videos.heading")),a(3),p("popup",!0)("model",n.menuToShow),a(2),p("value",n.videos)("scrollable",!0)("virtualScroll",!0)("rows",50)("lazy",!0)("rowHover",!0),a(7),q(A(70,ele)),x("header",f(17,48,"dashboard.recordings.edit_
metadata")),p("visible",n.displayMetadataDlg)("modal",!0)("closable",!1)("closeOnEscape",!1),a(4),S(f(21,50,"dashboard.recordings.title")),a(2),p("ngModel",n.video.Title),a(4),S(f(27,52,"dashboard.recordings.subtitle")),a(2),p("ngModel",n.video.SubTitle),a(4),S(f(33,54,"dashboard.recordings.inetref")),a(2),p("ngModel",n.video.Inetref),a(4),S(f(39,56,"dashboard.recordings.description")),a(2),p("rows",5)("cols",30)("ngModel",n.video.Description),a(4),S(f(45,58,"dashboard.recordings.season")),a(2),p("ngModel",n.video.Season)("showButtons",!0)("min",1)("max",99)("step",1),a(3),S(f(50,60,"dashboard.recordings.episode")),a(2),p("ngModel",n.video.Episode)("showButtons",!0)("min",1)("max",99)("step",1),a(3),S(f(55,62,"dashboard.videos.releasedate")),a(2),p("ngModel",n.video.ReleaseDate),a(3),S(f(60,64,"dashboard.recordings.filename_label")),a(3),S(n.video.FileName),a(2),x("header",f(65,66,"common.unsaved_heading")),p("visible",n.displayUnsaved)("modal",!0),a(3),S(f(68,68,"common.unsaved_mes
sage")))},directives:[Td,sS,Dn,ne,ve,at,sn,Te,_e,Q,Go,On,bt,Kt,yd,wd,ze,Ue,He,bn,Ye,tS,pt,xr,qe],pipes:[ce],styles:[""]}),t})(),nle=(()=>{class
t{}return t.\u0275fac=function(e){return
new(e||t)},t.\u0275mod=he({type:t}),t.\u0275inj=ue({imports:[[vn.forChild([{path:"dashboard",component:oS,children:[{path:"status",component:_oe},{path:"channel-editor",component:bS},{path:"program-guide",component:CS},{path:"recordings",component:Foe},{path:"upcoming",component:wae},{path:"recrules",component:Lae},{path:"videos",component:tle}]}])],vn]}),t})();function
ile(t,i){1&t&&(l(0,"tr")(1,"th",7),g(2),m(3,"translate"),c(),l(4,"th",8),g(5),m(6,"translate"),c(),k(7,"th",9),l(8,"th",10),g(9),m(10,"translate"),c(),l(11,"th",11),g(12),m(13,"translate"),c(),l(14,"th",12),g(15),m(16,"translate"),c(),l(17,"th",7),g(18),m(19,"translate"),c(),l(20,"th",13),g(21),m(22,"translate"),c(),l(23,"th",14),g(24),m(25,"translate"),c(),l(26,"th",15),k(27,"button",16),c()()),2&t&&(a(2),T("
",f(3,9,"dashboard.upcomi
ng.date")," "),a(3),T("
",f(6,11,"dashboard.upcoming.time")," "),a(4),T("
",f(10,13,"dashboard.recordings.title"),""),a(3),S(f(13,15,"dashboard.recordings.subtitle")),a(3),S(f(16,17,"dashboard.recordings.seas_ep")),a(3),T("
",f(19,19,"dashboard.recordings.orig_airdate"),"
"),a(3),S(f(22,21,"dashboard.recordings.channel")),a(3),T("
",f(25,23,"dashboard.upcoming.status"),"
"),a(3),p("disabled",!0))}function
sle(t,i){if(1&t&&(l(0,"div"),g(1),c()),2&t){const
e=d().$implicit;a(1),We("
",e.Season,"x",e.Episode,"")}}const
rle=function(){return["WillRecord","Recording","Recorded"]};function
ole(t,i){if(1&t&&(l(0,"div",28)(1,"b"),g(2),c()()),2&t){const
e=d().$implicit,n=d();p("ngClass",A(2,rle).indexOf(e.Recording.StatusName)>-1?"bg-green-500":"bg-pink-500"),a(2),S(n.dataService.recStatusText[e.Recording.StatusName])}}function
ale(t,i){if(1&t){const
e=I();l(0,"tr",17)(1,"td",18),k(2,"div",19),c(),l(3,"td",20),g(4),c(),l(5,"td",21),g(6),m(7,"number"),c(),l(8,"td",22),g(9),c(),l(10,"td",23),g(
11),c(),l(12,"td",12),_(13,sle,2,2,"div",24),c(),l(14,"td",7),k(15,"div",19),c(),l(16,"td",13),g(17),c(),l(18,"td",14),_(19,ole,3,3,"div",25),c(),l(20,"td",26)(21,"button",27),C("click",function(){const
r=v(e).$implicit;return
d().updateRecRule(r)}),m(22,"translate"),c()()()}if(2&t){const
e=i.$implicit,n=d();p("ngClass",n.getClasses(e)),a(2),p("innerHTML",n.formatStartDate(e),Bt),a(2),T("
",n.formatStartTime(e),""),a(2),T("
",Dt(7,14,n.getDuration(e),"1.0-0")," min"),a(3),T("
",e.Title,""),a(1),x("pTooltip",e.Description),a(1),T("
",e.SubTitle.slice(0,50),""),a(2),p("ngIf",e.Season>0||e.Episode>0),a(2),p("innerHTML",n.formatAirDate(e),Bt),a(2),We("
",e.Channel.ChanNum,"
",e.Channel.CallSign,""),a(2),p("ngIf",e.Recording),a(2),x("pTooltip",f(22,17,"dashboard.recordings.edit_rule")),p("disabled",e.Recording&&7==e.Recording.RecType)}}function
lle(t,i){1&t&&(k(0,"p-message",33),m(1,"translate")),2&t&&x("text",f(1,1,"common.networkfail"))}function
cle(t,i){if(1&t){const e=I();l(0,"div",2
9),_(1,lle,2,3,"p-message",30),c(),l(2,"p-button",31),C("onClick",function(){return
v(e),d().displayStop=!1}),m(3,"translate"),c(),l(4,"p-button",32),C("onClick",function(){v(e);const
s=d();return s.stopRecording(s.program)}),m(5,"translate"),c()}if(2&t){const
e=d();a(1),p("ngIf",e.errorCount>0),a(1),x("label",f(3,3,"common.close")),a(2),x("label",f(5,5,"dashboard.recordings.stop_recording"))}}let
ule=(()=>{class
t{constructor(e,n,s){this.dataService=e,this.dvrService=n,this.utility=s,this.programs=[],this.displayStop=!1,this.successCount=0,this.errorCount=0,this.regex=/[^a-z0-9]/g}ngOnInit(){}formatStartDate(e){return
this.utility.formatDate(e.StartTime,!0)}formatAirDate(e){return
e.Airdate?this.utility.formatDate(e.Airdate+"
00:00",!0):""}formatStartTime(e){let n=new
Date(e.StartTime).getTime();return(new Date(n).toLocaleTimeString()+"
").replace(/:.. /,"
")}getClasses(e){return["guide_type_"+e.CatType,"guide_cat_"+e.Category.toLowerCase().replace(this.regex,"_"),"guide_type_defau
lt"]}getDuration(e){let n=new Date(e.StartTime).getTime();return(new
Date(e.EndTime).getTime()-n)/6e4}updateRecRule(e){this.inter.sched&&this.inter.sched.open(e)}override(e){this.inter.sched&&(7==e.Recording.RecType?this.inter.sched.open(e):this.inter.sched.open(e,void
0,{Type:"Override
Recording"}))}stopRequest(e){e.Recording.RecordId&&(this.program=e,this.displayStop=!0)}stopRecording(e){this.errorCount=0,this.dvrService.StopRecording(e.Recording.RecordedId).subscribe({next:n=>{n.bool?(this.displayStop=!1,setTimeout(()=>this.inter.summaryComponent.refresh(),3e3)):this.errorCount++},error:n=>{this.errorCount++}})}}return
t.\u0275fac=function(e){return
new(e||t)(D(Ll),D(jo),D(cs))},t.\u0275cmp=z({type:t,selectors:[["app-programs"]],inputs:{programs:"programs",inter:"inter"},decls:17,vars:19,consts:[[2,"height","90vh"],["scrollHeight","flex","styleClass","p-datatable-striped","responsiveLayout","scroll",3,"value","scrollable","rowHover"],["pTemplate","header"],["pTemplate","body"],[3
,"header","visible","modal","draggable","resizable","visibleChange"],["pTemplate","footer"],[3,"inter"],[1,"justify-content-end","p-1",2,"flex-basis","8%"],[1,"justify-content-end","p-1",2,"flex-basis","6%"],[1,"justify-content-end","pl-1","pr-3","pt-1","pb-1",2,"flex-basis","7%"],[1,"p-1",2,"flex-basis","12%"],[1,"p-1",2,"flex-basis","18%"],[1,"p-1",2,"flex-basis","4%"],[1,"p-1",2,"flex-basis","10%"],[1,"p-1",2,"flex-basis","7%"],[1,"p-1",2,"flex-basis","2%"],["pButton","","pRipple","","icon","pi
pi-pencil",1,"p-button-text","p-button-primary",3,"disabled"],[3,"ngClass"],[1,"justify-content-end","p-1","overflow-hidden",2,"flex-basis","8%"],[3,"innerHTML"],[1,"justify-content-end","p-1","overflow-hidden",2,"flex-basis","6%"],[1,"justify-content-end","pl-1","pr-3","pt-1","pb-1","overflow-hidden",2,"flex-basis","7%"],[1,"p-1","overflow-hidden",2,"flex-basis","12%"],["tooltipPosition","top",1,"p-1","overflow-hidden",2,"flex-basis","18%",3,"pTooltip"],[4,"ngIf"],["class","text-white",3,
"ngClass",4,"ngIf"],[1,"p-1",2,"flex-basis","2%","background","var(--surface-card)"],["pButton","","pRipple","","icon","pi
pi-pencil","tooltipPosition","left",1,"p-button-text","p-button-primary",3,"pTooltip","disabled","click"],[1,"text-white",3,"ngClass"],[1,"col-12",2,"text-align","left"],["severity","error",3,"text",4,"ngIf"],["icon","pi
pi-times-circle","styleClass","p-button-warning",3,"label","onClick"],["icon","pi
pi-check-circle","styleClass","p-button-danger",3,"label","onClick"],["severity","error",3,"text"]],template:function(e,n){1&e&&(l(0,"div",0)(1,"p-table",1),_(2,ile,28,25,"ng-template",2),_(3,ale,23,19,"ng-template",3),c(),l(4,"p-dialog",4),C("visibleChange",function(r){return
n.displayStop=r}),m(5,"translate"),l(6,"h2"),g(7),m(8,"translate"),c(),l(9,"p"),g(10),m(11,"translate"),k(12,"br"),l(13,"b"),g(14),c()(),_(15,cle,6,7,"ng-template",5),c(),k(16,"app-schedule",6),c()),2&e&&(a(1),p("value",n.programs)("scrollable",!0)("rowHover",!0),a(3),x("header",f(5,13,"dashb
oard.recordings.stop_recording")),p("visible",n.displayStop)("modal",!0)("draggable",!1)("resizable",!1),a(3),S(f(8,15,"settings.common.ru_sure")),a(3),T("",f(11,17,"dashboard.recordings.stop_details"),"
"),a(4),We(" ",null==n.program?null:n.program.Title,":
",null==n.program?null:n.program.SubTitle,""),a(2),p("inter",n.inter))},directives:[Dn,ne,On,bt,Le,Kt,Q,bn,qe,ve,Rd],pipes:[ce,eu],styles:[".type_series[_ngcontent-%COMP%]{background-color:#00008b;color:#fff}.type_tvshow[_ngcontent-%COMP%]{background-color:#2f4f4f;color:#fff}.type_movie[_ngcontent-%COMP%]{background-color:#8a2be2;color:#fff}.type_sports[_ngcontent-%COMP%]{background-color:#8b0000;color:#fff}"]}),t})();function
dle(t,i){1&t&&(g(0),m(1,"translate")),2&t&&T("
",f(1,1,"dashboard.guide.typecolors")," ")}const
ple=function(t){return[t,"guide_type_default"]};function
hle(t,i){if(1&t&&(l(0,"div",4)(1,"div",5),g(2),c()()),2&t){const
e=i.$implicit;a(1),p("ngClass",U(2,ple,"guide_type_"+e)),a(1),T("
\xa0",e,"")}}function m
le(t,i){1&t&&(g(0),m(1,"translate")),2&t&&T("
",f(1,1,"dashboard.guide.catcolors")," ")}const
fle=function(t){return[t,"px-1"]};function
gle(t,i){if(1&t&&(l(0,"div",4)(1,"div",5),g(2),c()()),2&t){const
e=i.$implicit,n=d();a(1),p("ngClass",U(2,fle,"guide_cat_"+e.toLowerCase().replace(n.regex,"_"))),a(1),T("
",e,"")}}let _le=(()=>{class
t{constructor(){this.catTypes=[],this.categories=[],this.regex=/[^a-z0-9]/g}ngOnInit(){let
e=new Set,n=new
Set;null!=this.programGuide?this.programGuide.ProgramGuide.Channels.forEach(r=>{r.Programs.forEach(o=>{o.CatType&&e.add(o.CatType),o.Category&&n.add(o.Category)})}):null!=this.listPrograms&&this.listPrograms.forEach(r=>{r.CatType&&e.add(r.CatType),r.Category&&n.add(r.Category)}),this.catTypes=[];let
s=e.values();for(;;){let
r=s.next();if(r.done)break;this.catTypes.push(r.value)}for(this.categories=[],s=n.values();;){let
r=s.next();if(r.done)break;this.categories.push(r.value)}this.catTypes.sort(),this.catTypes.push("default"),this.categories.sort(
)}}return t.\u0275fac=function(e){return
new(e||t)},t.\u0275cmp=z({type:t,selectors:[["app-legend"]],inputs:{programGuide:"programGuide",listPrograms:"listPrograms"},decls:20,vars:11,consts:[[1,"flex"],["layout","grid",3,"value"],["pTemplate","header"],["pTemplate","gridItem"],[1,"md:col-2","px-3","py-1"],[3,"ngClass"]],template:function(e,n){1&e&&(l(0,"div",0)(1,"div")(2,"p-dataView",1),_(3,dle,2,3,"ng-template",2),_(4,hle,3,4,"ng-template",3),c(),l(5,"p-dataView",1),_(6,mle,2,3,"ng-template",2),_(7,gle,3,4,"ng-template",3),c(),l(8,"p"),g(9),m(10,"translate"),k(11,"br"),g(12),m(13,"translate"),k(14,"br"),g(15),m(16,"translate"),l(17,"code"),g(18,"/usr/share/mythtv/html/assets/guidecolors.css"),c(),g(19,"\xa0."),c()()()),2&e&&(a(2),p("value",n.catTypes),a(3),p("value",n.categories),a(4),S(f(10,5,"dashboard.guide.color_includes")),a(3),T("
",f(13,7,"dashboard.guide.color_expl"),""),a(3),T("
",f(16,9,"dashboard.guide.color_customize"),""))},directives:[LT,ne,Le],pipes:[ce],styles:[""]
}),t})();function ble(t){return new WO(t)}let vle=(()=>{class t{}return
t.\u0275fac=function(e){return
new(e||t)},t.\u0275mod=he({type:t,bootstrap:[VW]}),t.\u0275inj=ue({providers:[],imports:[[qy,IO,TW,UF,Mu,UA,sW,$O.forRoot({defaultLanguage:"en_US",loader:{provide:nl,useFactory:ble,deps:[Bi]}}),k$,eX,nle]]}),t})();Wi(CS,[Q,Ot,Te,_e,Kt,xr,Ye,On,bt,Go,K2,LT,ne,OX,MX,at,LX,ule,Rd,bn,_le],[ce]),Wi(hS,[Ne,ve,bn,os,Te,_e,ne,Q,qe,Ss,at,Ts,gr,Ja,jX,wS,xte,Fte,jte,ene,cne,jie,sse,gse,kse,Bse,km],[ce]),Wi(wS,[ze,Ue,He,Ne,ne,Q,Ot,Te,_e,_n,Ye,pt,sn,Ui,ve,bn,os,Kt,qe,kd,Al,wg,Pl],[ce]),Wi(Al,[ze,Ue,He,Ne,ne,Ye,Te,_e,pt,Ot,_n,Q,Dn,$2,DU,Ui,ve,bn,os,kd,Al,wg,Pl],[ce]),Wi(Pl,[ze,Ue,He,Ne,ne,Ye,Te,_e,pt,Ui,Q,ve,bn,os,kd,Al,wg,Pl],[ce]),Wi(_S,[Ne,Ss,at,Ts,ne,Q,kS,ve],[ce]),Wi(kS,[ze,Ue,He,Ne,ne,Q,gr,Ja,pt,Te,_e,Sd,Ye,Ot,_n,sn,Ui,Mre,ve,bn,qe],[ce]),Wi(mS,[Ne,Ss,at,Ts,ne,Q,ES,ve],[ce]),Wi(ES,[ve,bn,Ye,Te,_e,ne,Q,qe,Ss,at,Ts,Lie],[ce]),function
QR(){if(ZC)throw new Error("Cannot enable prod mode after
platform
setup.");YC=!1}(),nO().bootstrapModule(vle).catch(t=>console.error(t))}},Is=>{Is(Is.s=452)}]);
+\ No newline at end of file
+
+From 95fb10412c7ffc5ad8c75435dabf6e5997588983 Mon Sep 17 00:00:00 2001
+From: Peter Bennett <pbennett(a)mythtv.org>
+Date: Sun, 10 Mar 2024 12:14:26 -0400
+Subject: [PATCH 16/21] Fix Daylight savings bug in service API
+
+Scheduling a recording for 8PM - 9PM in New York time zone on the
+day before spring forward failed with an incorrect error message
+"Duration Invalid". Fixed by applying the correct time zone.
+
+(cherry picked from commit 7e5e536249838cdd4884b53a20569471de3ec3d1)
+---
+ mythtv/libs/libmythtv/recordingrule.cpp | 4 ++--
+ 1 file changed, 2 insertions(+), 2 deletions(-)
+
+diff --git a/mythtv/libs/libmythtv/recordingrule.cpp
b/mythtv/libs/libmythtv/recordingrule.cpp
+index 643b2ef6e50..7ac1c2b97a8 100644
+--- a/mythtv/libs/libmythtv/recordingrule.cpp
++++ b/mythtv/libs/libmythtv/recordingrule.cpp
+@@ -960,8 +960,8 @@ bool RecordingRule::IsValid(QString &msg) const
+ msg = QString("Invalid start/end date/time.");
+ return false;
+ }
+- int secsto = QDateTime(m_startdate, m_starttime)
+- .secsTo(QDateTime(m_enddate, m_endtime));
++ qint64 secsto = QDateTime(m_startdate, m_starttime, Qt::UTC)
++ .secsTo(QDateTime(m_enddate, m_endtime, Qt::UTC));
+ if (secsto <= 0 || secsto > (8 * 3600))
+ {
+ msg = QString("Invalid duration.");
+
+From 80b4c05a853a97c52b785cecdfae8974c9f342fb Mon Sep 17 00:00:00 2001
+From: Peter Bennett <pbennett(a)mythtv.org>
+Date: Mon, 11 Mar 2024 11:00:19 -0400
+Subject: [PATCH 17/21] web app: Fix bug with updating manual record rules
+
+Manual record rules were showing the wrong channel when opened for
+update.
+
+(cherry picked from commit d153db16c7f510bfba8485683da0c0b5db605896)
+---
+ .../html/backend/src/app/schedule/schedule.component.html | 2 +-
+ .../html/backend/src/app/schedule/schedule.component.ts | 8 ++++++--
+ 2 files changed, 7 insertions(+), 3 deletions(-)
+
+diff --git a/mythtv/html/backend/src/app/schedule/schedule.component.html
b/mythtv/html/backend/src/app/schedule/schedule.component.html
+index ee934577f83..b0e5e1ce2a2 100644
+--- a/mythtv/html/backend/src/app/schedule/schedule.component.html
++++ b/mythtv/html/backend/src/app/schedule/schedule.component.html
+@@ -78,7 +78,7 @@
+ <label for="ChanId" class="label block">{{
'dashboard.sched.channel_label' | translate
+ }}</label>
+ <p-dropdown [options]="allChannels"
[(ngModel)]="channel" [editable]="false"
+- optionLabel="Description" [maxlength]="0"
[style]="{'minWidth':'400px'}" name="Type"
++ optionLabel="Description" [maxlength]="0"
[style]="{'minWidth':'400px'}" name="Channel"
+ (onChange)="onChannelChange()">
+ </p-dropdown>
+ </div>
+diff --git a/mythtv/html/backend/src/app/schedule/schedule.component.ts
b/mythtv/html/backend/src/app/schedule/schedule.component.ts
+index 6ee10df3317..8ca4fa68f35 100644
+--- a/mythtv/html/backend/src/app/schedule/schedule.component.ts
++++ b/mythtv/html/backend/src/app/schedule/schedule.component.ts
+@@ -216,12 +216,13 @@ export class ScheduleComponent implements OnInit {
+ this.allChannels = data.ChannelInfoList.ChannelInfos;
+ this.allChannels.forEach(channel => channel.Description
+ = channel.ChanNum + ' ' + channel.ChannelName + ' (' +
channel.CallSign + ')')
++ this.loadSuccess();
+ });
+ }
+
+ loadSuccess() {
+ this.loadCount++;
+- if (this.loadCount == 10) {
++ if (this.loadCount == 11) {
+ this.loadCount = 0;
+ this.setupData();
+ this.displayDlg = true;
+@@ -267,7 +268,10 @@ export class ScheduleComponent implements OnInit {
+ }
+ else
+ this.recRule = undefined;
+- this.channel = this.reqChannel;
++ if (this.reqChannel)
++ this.channel = this.reqChannel;
++ else if (this.reqRecRule)
++ this.channel = this.allChannels.find((entry) => entry.ChanId ==
this.reqRecRule?.ChanId);
+ if (this.program) {
+ if (!this.channel && this.program.Channel)
+ this.channel = this.program.Channel;
+
+From 5590d0d5ebc8a37a1b9a3468c5705052491cb8ca Mon Sep 17 00:00:00 2001
+From: Peter Bennett <pbennett(a)mythtv.org>
+Date: Mon, 11 Mar 2024 11:03:47 -0400
+Subject: [PATCH 18/21] web app rebuild
+
+---
+ mythtv/html/apps/backend/main.js | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/mythtv/html/apps/backend/main.js b/mythtv/html/apps/backend/main.js
+index b2b13efb802..51e4327832a 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],{452:()=>{function
Is(t){return"function"==typeof t}let Qo=!1;const di={Promise:void 0,set
useDeprecatedSynchronousErrorHandling(t){if(t){const i=new
Error;console.warn("DEPRECATED! RxJS was set to use deprecated synchronous error
handling behavior by code at: \n"+i.stack)}else Qo&&console.log("RxJS:
Back to a better error behavior. Thank you. <3");Qo=t},get
useDeprecatedSynchronousErrorHandling(){return Qo}};function
Es(t){setTimeout(()=>{throw t},0)}const
Fl={closed:!0,next(t){},error(t){if(di.useDeprecatedSynchronousErrorHandling)throw
t;Es(t)},complete(){}},Nr=Array.isArray||(t=>t&&"number"==typeof
t.length);function Ld(t){return null!==t&&"object"==typeof t}const
Nl=(()=>{function t(i){return Error.call(this),this.message=i?`${i.length} errors
occurred during unsubscription:\n${i.map((e,n)=>`${n+1})
${e.toString()}`).join("\n
")}`:"",this.name="UnsubscriptionError",this.errors=i,this}return
t.pro
totype=Object.create(Error.prototype),t})();class
Et{constructor(i){this.closed=!1,this._parentOrParents=null,this._subscriptions=null,i&&(this._ctorUnsubscribe=!0,this._unsubscribe=i)}unsubscribe(){let
i;if(this.closed)return;let{_parentOrParents:e,_ctorUnsubscribe:n,_unsubscribe:s,_subscriptions:r}=this;if(this.closed=!0,this._parentOrParents=null,this._subscriptions=null,e
instanceof Et)e.remove(this);else if(null!==e)for(let
o=0;o<e.length;++o)e[o].remove(this);if(Is(s)){n&&(this._unsubscribe=void
0);try{s.call(this)}catch(o){i=o instanceof Nl?Dg(o.errors):[o]}}if(Nr(r)){let
o=-1,u=r.length;for(;++o<u;){const
h=r[o];if(Ld(h))try{h.unsubscribe()}catch(b){i=i||[],b instanceof
Nl?i=i.concat(Dg(b.errors)):i.push(b)}}}if(i)throw new Nl(i)}add(i){let e=i;if(!i)return
Et.EMPTY;switch(typeof i){case"function":e=new
Et(i);case"object":if(e===this||e.closed||"function"!=typeof
e.unsubscribe)return e;if(this.closed)return e.unsubscribe(),e;if(!(e instanceof
Et)){const r=e;e=new Et,e._subsc
riptions=[r]}break;default:throw new Error("unrecognized teardown "+i+"
added to
Subscription.")}let{_parentOrParents:n}=e;if(null===n)e._parentOrParents=this;else
if(n instanceof Et){if(n===this)return
e;e._parentOrParents=[n,this]}else{if(-1!==n.indexOf(this))return e;n.push(this)}const
s=this._subscriptions;return null===s?this._subscriptions=[e]:s.push(e),e}remove(i){const
e=this._subscriptions;if(e){const n=e.indexOf(i);-1!==n&&e.splice(n,1)}}}var
t;function Dg(t){return t.reduce((i,e)=>i.concat(e instanceof
Nl?e.errors:e),[])}Et.EMPTY=((t=new Et).closed=!0,t);const Vl="function"==typeof
Symbol?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random();class yt
extends
Et{constructor(i,e,n){switch(super(),this.syncErrorValue=null,this.syncErrorThrown=!1,this.syncErrorThrowable=!1,this.isStopped=!1,arguments.length){case
0:this.destination=Fl;break;case
1:if(!i){this.destination=Fl;break}if("object"==typeof i){i instanceof
yt?(this.syncErrorThrowable=i.syncErrorThrowable,this.destin
ation=i,i.add(this)):(this.syncErrorThrowable=!0,this.destination=new
Mg(this,i));break}default:this.syncErrorThrowable=!0,this.destination=new
Mg(this,i,e,n)}}[Vl](){return this}static create(i,e,n){const s=new yt(i,e,n);return
s.syncErrorThrowable=!1,s}next(i){this.isStopped||this._next(i)}error(i){this.isStopped||(this.isStopped=!0,this._error(i))}complete(){this.isStopped||(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe())}_next(i){this.destination.next(i)}_error(i){this.destination.error(i),this.unsubscribe()}_complete(){this.destination.complete(),this.unsubscribe()}_unsubscribeAndRecycle(){const{_parentOrParents:i}=this;return
this._parentOrParents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parentOrParents=i,this}}class
Mg extends yt{constructor(i,e,n,s){super(),this._parentSubscriber=i;let
r,o=this;Is(e)?r=e:e&&(r=e.next,n=e.error,s=e.complete,e!==Fl&&(o=Object.create(e),Is(o.unsubscribe)&&this.add(o.un
subscribe.bind(o)),o.unsubscribe=this.unsubscribe.bind(this))),this._context=o,this._next=r,this._error=n,this._complete=s}next(i){if(!this.isStopped&&this._next){const{_parentSubscriber:e}=this;di.useDeprecatedSynchronousErrorHandling&&e.syncErrorThrowable?this.__tryOrSetError(e,this._next,i)&&this.unsubscribe():this.__tryOrUnsub(this._next,i)}}error(i){if(!this.isStopped){const{_parentSubscriber:e}=this,{useDeprecatedSynchronousErrorHandling:n}=di;if(this._error)n&&e.syncErrorThrowable?(this.__tryOrSetError(e,this._error,i),this.unsubscribe()):(this.__tryOrUnsub(this._error,i),this.unsubscribe());else
if(e.syncErrorThrowable)n?(e.syncErrorValue=i,e.syncErrorThrown=!0):Es(i),this.unsubscribe();else{if(this.unsubscribe(),n)throw
i;Es(i)}}}complete(){if(!this.isStopped){const{_parentSubscriber:i}=this;if(this._complete){const
e=()=>this._complete.call(this._context);di.useDeprecatedSynchronousErrorHandling&&i.syncErrorThrowable?(this.__tryOrSetError(i,e),this.unsubscribe()):(this.__t
ryOrUnsub(e),this.unsubscribe())}else
this.unsubscribe()}}__tryOrUnsub(i,e){try{i.call(this._context,e)}catch(n){if(this.unsubscribe(),di.useDeprecatedSynchronousErrorHandling)throw
n;Es(n)}}__tryOrSetError(i,e,n){if(!di.useDeprecatedSynchronousErrorHandling)throw new
Error("bad call");try{e.call(this._context,n)}catch(s){return
di.useDeprecatedSynchronousErrorHandling?(i.syncErrorValue=s,i.syncErrorThrown=!0,!0):(Es(s),!0)}return!1}_unsubscribe(){const{_parentSubscriber:i}=this;this._context=null,this._parentSubscriber=null,i.unsubscribe()}}const
Jo="function"==typeof
Symbol&&Symbol.observable||"@@observable";function Bl(t){return t}let
Je=(()=>{class
t{constructor(e){this._isScalar=!1,e&&(this._subscribe=e)}lift(e){const n=new
t;return n.source=this,n.operator=e,n}subscribe(e,n,s){const{operator:r}=this,o=function
FS(t,i,e){if(t){if(t instanceof yt)return t;if(t[Vl])return t[Vl]()}return t||i||e?new
yt(t,i,e):new yt(Fl)}(e,n,s);if(o.add(r?r.call(o,this.source):this.source||di.useD
eprecatedSynchronousErrorHandling&&!o.syncErrorThrowable?this._subscribe(o):this._trySubscribe(o)),di.useDeprecatedSynchronousErrorHandling&&o.syncErrorThrowable&&(o.syncErrorThrowable=!1,o.syncErrorThrown))throw
o.syncErrorValue;return o}_trySubscribe(e){try{return
this._subscribe(e)}catch(n){di.useDeprecatedSynchronousErrorHandling&&(e.syncErrorThrown=!0,e.syncErrorValue=n),function
PS(t){for(;t;){const{closed:i,destination:e,isStopped:n}=t;if(i||n)return!1;t=e&&e
instanceof yt?e:null}return!0}(e)?e.error(n):console.warn(n)}}forEach(e,n){return
new(n=Ig(n))((s,r)=>{let
o;o=this.subscribe(u=>{try{e(u)}catch(h){r(h),o&&o.unsubscribe()}},r,s)})}_subscribe(e){const{source:n}=this;return
n&&n.subscribe(e)}[Jo](){return this}pipe(...e){return 0===e.length?this:function
kg(t){return 0===t.length?Bl:1===t.length?t[0]:function(e){return
t.reduce((n,s)=>s(n),e)}}(e)(this)}toPromise(e){return new(e=Ig(e))((n,s)=>{let
r;this.subscribe(o=>r=o,o=>s(o),()=>n(r))})}}return t.create=i=>new t(i),t}
)();function Ig(t){if(t||(t=di.Promise||Promise),!t)throw new Error("no Promise impl
found");return t}const nr=(()=>{function t(){return
Error.call(this),this.message="object
unsubscribed",this.name="ObjectUnsubscribedError",this}return
t.prototype=Object.create(Error.prototype),t})();class Eg extends
Et{constructor(i,e){super(),this.subject=i,this.subscriber=e,this.closed=!1}unsubscribe(){if(this.closed)return;this.closed=!0;const
i=this.subject,e=i.observers;if(this.subject=null,!e||0===e.length||i.isStopped||i.closed)return;const
n=e.indexOf(this.subscriber);-1!==n&&e.splice(n,1)}}class Rg extends
yt{constructor(i){super(i),this.destination=i}}let ct=(()=>{class t extends
Je{constructor(){super(),this.observers=[],this.closed=!1,this.isStopped=!1,this.hasError=!1,this.thrownError=null}[Vl](){return
new Rg(this)}lift(e){const n=new Lg(this,this);return
n.operator=e,n}next(e){if(this.closed)throw new
nr;if(!this.isStopped){const{observers:n}=this,s=n.length,r=n.slice();for(let o=0;
o<s;o++)r[o].next(e)}}error(e){if(this.closed)throw new
nr;this.hasError=!0,this.thrownError=e,this.isStopped=!0;const{observers:n}=this,s=n.length,r=n.slice();for(let
o=0;o<s;o++)r[o].error(e);this.observers.length=0}complete(){if(this.closed)throw new
nr;this.isStopped=!0;const{observers:e}=this,n=e.length,s=e.slice();for(let
r=0;r<n;r++)s[r].complete();this.observers.length=0}unsubscribe(){this.isStopped=!0,this.closed=!0,this.observers=null}_trySubscribe(e){if(this.closed)throw
new nr;return super._trySubscribe(e)}_subscribe(e){if(this.closed)throw new nr;return
this.hasError?(e.error(this.thrownError),Et.EMPTY):this.isStopped?(e.complete(),Et.EMPTY):(this.observers.push(e),new
Eg(this,e))}asObservable(){const e=new Je;return e.source=this,e}}return
t.create=(i,e)=>new Lg(i,e),t})();class Lg extends
ct{constructor(i,e){super(),this.destination=i,this.source=e}next(i){const{destination:e}=this;e&&e.next&&e.next(i)}error(i){const{destination:e}=this;e&&e.error&&this.destination.er
ror(i)}complete(){const{destination:i}=this;i&&i.complete&&this.destination.complete()}_subscribe(i){const{source:e}=this;return
e?this.source.subscribe(i):Et.EMPTY}}function Vr(t){return
t&&"function"==typeof t.schedule}function et(t,i){return
function(n){if("function"!=typeof t)throw new TypeError("argument is not a
function. Are you looking for `mapTo()`?");return n.lift(new NS(t,i))}}class
NS{constructor(i,e){this.project=i,this.thisArg=e}call(i,e){return e.subscribe(new
VS(i,this.project,this.thisArg))}}class VS extends
yt{constructor(i,e,n){super(i),this.project=e,this.count=0,this.thisArg=n||this}_next(i){let
e;try{e=this.project.call(this.thisArg,i,this.count++)}catch(n){return void
this.destination.error(n)}this.destination.next(e)}}const Og=t=>i=>{for(let
e=0,n=t.length;e<n&&!i.closed;e++)i.next(t[e]);i.complete()},Hl=function
HS(){return"function"==typeof
Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}(),Ag=t=>t&&"number"==typeof
t.length&&"function"!=typeof t;funct
ion Pg(t){return!!t&&"function"!=typeof
t.subscribe&&"function"==typeof t.then}const
Od=t=>{if(t&&"function"==typeof t[Jo])return(t=>i=>{const
e=t[Jo]();if("function"!=typeof e.subscribe)throw new TypeError("Provided
object does not correctly implement Symbol.observable");return
e.subscribe(i)})(t);if(Ag(t))return
Og(t);if(Pg(t))return(t=>i=>(t.then(e=>{i.closed||(i.next(e),i.complete())},e=>i.error(e)).then(null,Es),i))(t);if(t&&"function"==typeof
t[Hl])return(t=>i=>{const e=t[Hl]();for(;;){let n;try{n=e.next()}catch(s){return
i.error(s),i}if(n.done){i.complete();break}if(i.next(n.value),i.closed)break}return"function"==typeof
e.return&&i.add(()=>{e.return&&e.return()}),i})(t);{const e=`You
provided ${Ld(t)?"an invalid object":`'${t}'`} where a stream was
expected. You can provide an Observable, Promise, Array, or Iterable.`;throw new
TypeError(e)}};function Ad(t,i){return new Je(e=>{const n=new Et;let s=0;return
n.add(i.schedule(function(){s!==t.length?(e.next(t[s++]),e.closed||n.
add(this.schedule())):e.complete()})),n})}function Mn(t,i){return i?function
KS(t,i){if(null!=t){if(function $S(t){return t&&"function"==typeof
t[Jo]}(t))return function US(t,i){return new Je(e=>{const n=new Et;return
n.add(i.schedule(()=>{const
s=t[Jo]();n.add(s.subscribe({next(r){n.add(i.schedule(()=>e.next(r)))},error(r){n.add(i.schedule(()=>e.error(r)))},complete(){n.add(i.schedule(()=>e.complete()))}}))})),n})}(t,i);if(Pg(t))return
function zS(t,i){return new Je(e=>{const n=new Et;return
n.add(i.schedule(()=>t.then(s=>{n.add(i.schedule(()=>{e.next(s),n.add(i.schedule(()=>e.complete()))}))},s=>{n.add(i.schedule(()=>e.error(s)))}))),n})}(t,i);if(Ag(t))return
Ad(t,i);if(function WS(t){return t&&"function"==typeof
t[Hl]}(t)||"string"==typeof t)return function jS(t,i){if(!t)throw new
Error("Iterable cannot be null");return new Je(e=>{const n=new Et;let
s;return n.add(()=>{s&&"function"==typeof
s.return&&s.return()}),n.add(i.schedule(()=>{s=t[Hl](),n.add(i.schedule(function(){if(e.cl
osed)return;let r,o;try{const u=s.next();r=u.value,o=u.done}catch(u){return void
e.error(u)}o?e.complete():(e.next(r),this.schedule())}))})),n})}(t,i)}throw new
TypeError((null!==t&&typeof t||t)+" is not observable")}(t,i):t
instanceof Je?t:new Je(Od(t))}class Yo extends
yt{constructor(i){super(),this.parent=i}_next(i){this.parent.notifyNext(i)}_error(i){this.parent.notifyError(i),this.unsubscribe()}_complete(){this.parent.notifyComplete(),this.unsubscribe()}}class
Zo extends
yt{notifyNext(i){this.destination.next(i)}notifyError(i){this.destination.error(i)}notifyComplete(){this.destination.complete()}}function
Xo(t,i){if(i.closed)return;if(t instanceof Je)return t.subscribe(i);let
e;try{e=Od(t)(i)}catch(n){i.error(n)}return e}function
yn(t,i,e=Number.POSITIVE_INFINITY){return"function"==typeof
i?n=>n.pipe(yn((s,r)=>Mn(t(s,r)).pipe(et((o,u)=>i(s,o,r,u))),e)):("number"==typeof
i&&(e=i),n=>n.lift(new QS(t,e)))}class
QS{constructor(i,e=Number.POSITIVE_INFINITY){this.project=i,this.conc
urrent=e}call(i,e){return e.subscribe(new JS(i,this.project,this.concurrent))}}class JS
extends
Zo{constructor(i,e,n=Number.POSITIVE_INFINITY){super(i),this.project=e,this.concurrent=n,this.hasCompleted=!1,this.buffer=[],this.active=0,this.index=0}_next(i){this.active<this.concurrent?this._tryNext(i):this.buffer.push(i)}_tryNext(i){let
e;const n=this.index++;try{e=this.project(i,n)}catch(s){return void
this.destination.error(s)}this.active++,this._innerSub(e)}_innerSub(i){const e=new
Yo(this),n=this.destination;n.add(e);const
s=Xo(i,e);s!==e&&n.add(s)}_complete(){this.hasCompleted=!0,0===this.active&&0===this.buffer.length&&this.destination.complete(),this.unsubscribe()}notifyNext(i){this.destination.next(i)}notifyComplete(){const
i=this.buffer;this.active--,i.length>0?this._next(i.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()}}function
ea(t=Number.POSITIVE_INFINITY){return yn(Bl,t)}function Pd(t,i){return i?Ad(t,i):new
Je(Og(t))}function Fd(){return funct
ion(i){return i.lift(new ZS(i))}}class
ZS{constructor(i){this.connectable=i}call(i,e){const{connectable:n}=this;n._refCount++;const
s=new XS(i,n),r=e.subscribe(s);return s.closed||(s.connection=n.connect()),r}}class XS
extends
yt{constructor(i,e){super(i),this.connectable=e}_unsubscribe(){const{connectable:i}=this;if(!i)return
void(this.connection=null);this.connectable=null;const e=i._refCount;if(e<=0)return
void(this.connection=null);if(i._refCount=e-1,e>1)return
void(this.connection=null);const{connection:n}=this,s=i._connection;this.connection=null,s&&(!n||s===n)&&s.unsubscribe()}}class
Fg extends
Je{constructor(i,e){super(),this.source=i,this.subjectFactory=e,this._refCount=0,this._isComplete=!1}_subscribe(i){return
this.getSubject().subscribe(i)}getSubject(){const
i=this._subject;return(!i||i.isStopped)&&(this._subject=this.subjectFactory()),this._subject}connect(){let
i=this._connection;return i||(this._isComplete=!1,i=this._connection=new
Et,i.add(this.source.subscribe(new t
x(this.getSubject(),this))),i.closed&&(this._connection=null,i=Et.EMPTY)),i}refCount(){return
Fd()(this)}}const ex=(()=>{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
tx extends
Rg{constructor(i,e){super(i),this.connectable=e}_error(i){this._unsubscribe(),super._error(i)}_complete(){this.connectable._isComplete=!0,this._unsubscribe(),super._complete()}_unsubscribe(){const
i=this.connectable;if(i){this.connectable=null;const
e=i._connection;i._refCount=0,i._subject=null,i._connection=null,e&&e.unsubscribe()}}}class
sx{constructor(i,e){this.subjectFactory=i,this.selector=e}call(i,e){const{selector:n}=this,s=this.subjectFactory(),r=n(s).subscribe(i);return
r.add(e.subscribe(s)),r}}function rx(){return new ct}
function wt(t){for(let i in t)if(t[i]===wt)return i;throw Error("Could not find
renamed property on target object.")}function Nd(t,i){for(const e in
i)i.hasOwnProperty(e)&&!t.hasOwnProperty(e)&&(t[e]=i[e])}function
ft(t){if("string"==typeof t)return
t;if(Array.isArray(t))return"["+t.map(ft).join(",
")+"]";if(null==t)return""+t;if(t.overriddenName)return`${t.overriddenName}`;if(t.name)return`${t.name}`;const
i=t.toString();if(null==i)return""+i;const
e=i.indexOf("\n");return-1===e?i:i.substring(0,e)}function Vd(t,i){return
null==t||""===t?null===i?"":i:null==i||""===i?t:t+"
"+i}const ax=wt({__forward_ref__:wt});function je(t){return
t.__forward_ref__=je,t.toString=function(){return ft(this())},t}function Ve(t){return
Ng(t)?t():t}function Ng(t){return"function"==typeof
t&&t.hasOwnProperty(ax)&&t.__forward_ref__===je}class re extends
Error{constructor(i,e){super(function Bd(t,i){return`NG0${Math.abs(t)}${i?":
"+i:""}`}(i,e)),this.code=i}}function
Ie(t){return"string"==typeof t?t:null==
t?"":String(t)}function wn(t){return"function"==typeof
t?t.name||t.toString():"object"==typeof
t&&null!=t&&"function"==typeof
t.type?t.type.name||t.type.toString():Ie(t)}function ql(t,i){const e=i?` in
${i}`:"";throw new re(-201,`No provider for ${wn(t)} found${e}`)}function
Jn(t,i){null==t&&function gt(t,i,e,n){throw new Error(`ASSERTION ERROR:
${t}`+(null==n?"":` [Expected=> ${e} ${n} ${i}
<=Actual]`))}(i,t,null,"!=")}function
X(t){return{token:t.token,providedIn:t.providedIn||null,factory:t.factory,value:void
0}}function ue(t){return{providers:t.providers||[],imports:t.imports||[]}}function
Hd(t){return Vg(t,Gl)||Vg(t,Hg)}function Vg(t,i){return
t.hasOwnProperty(i)?t[i]:null}function Bg(t){return
t&&(t.hasOwnProperty(qd)||t.hasOwnProperty(mx))?t[qd]:null}const
Gl=wt({\u0275prov:wt}),qd=wt({\u0275inj:wt}),Hg=wt({ngInjectableDef:wt}),mx=wt({ngInjectorDef:wt});var
xe=(()=>((xe=xe||{})[xe.Default=0]="Default",xe[xe.Host=1]="Host",xe[xe.Self=2]="Self",xe[xe.SkipSelf=4]="SkipSelf",xe[x
e.Optional=8]="Optional",xe))();let Gd;function Rs(t){const i=Gd;return
Gd=t,i}function qg(t,i,e){const n=Hd(t);return
n&&"root"==n.providedIn?void
0===n.value?n.value=n.factory():n.value:e&xe.Optional?null:void 0!==i?i:void
ql(ft(t),"Injector")}function Ls(t){return{toString:t}.toString()}var
Mi=(()=>((Mi=Mi||{})[Mi.OnPush=0]="OnPush",Mi[Mi.Default=1]="Default",Mi))(),ki=(()=>(function(t){t[t.Emulated=0]="Emulated",t[t.None=2]="None",t[t.ShadowDom=3]="ShadowDom"}(ki||(ki={})),ki))();const
gx="undefined"!=typeof
globalThis&&globalThis,_x="undefined"!=typeof
window&&window,bx="undefined"!=typeof
self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof
WorkerGlobalScope&&self,vt=gx||"undefined"!=typeof
global&&global||_x||bx,Br={},Tt=[],Ul=wt({\u0275cmp:wt}),Ud=wt({\u0275dir:wt}),zd=wt({\u0275pipe:wt}),Gg=wt({\u0275mod:wt}),ps=wt({\u0275fac:wt}),ta=wt({__NG_ELEMENT_ID__:wt});let
vx=0;function z(t){return Ls(()=>{const
e={},n={type:t.type,providersResolver:null,decls:t.decls,vars:t
.vars,factory: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===Mi.OnPush,directiveDefs:null,pipeDefs:null,selectors:t.selectors||Tt,viewQuery:t.viewQuery||null,features:t.features||null,data:t.data||{},encapsulation:t.encapsulation||ki.Emulated,id:"c",styles:t.styles||Tt,_:null,setInput:null,schemas:t.schemas||null,tView:null},s=t.directives,r=t.features,o=t.pipes;return
n.id+=vx++,n.inputs=$g(t.inputs,e),n.outputs=$g(t.outputs),r&&r.forEach(u=>u(n)),n.directiveDefs=s?()=>("function"==typeof
s?s():s).map(Ug):null,n.pipeDefs=o?()=>("function"==typeof
o?o():o).map(zg):null,n})}function Wi(t,i,e){const
n=t.\u0275cmp;n.directiveDefs=()=>i.map(Ug),n.pipeDefs=()=>e.map(zg)}function
Ug(t){return Tn(t)||function Os(t){return t[Ud]||n
ull}(t)}function zg(t){return function ir(t){return t[zd]||null}(t)}const jg={};function
he(t){return Ls(()=>{const
i={type:t.type,bootstrap:t.bootstrap||Tt,declarations:t.declarations||Tt,imports:t.imports||Tt,exports:t.exports||Tt,transitiveCompileScopes:null,schemas:t.schemas||null,id:t.id||null};return
null!=t.id&&(jg[t.id]=t.type),i})}function $g(t,i){if(null==t)return Br;const
e={};for(const n in t)if(t.hasOwnProperty(n)){let
s=t[n],r=s;Array.isArray(s)&&(r=s[1],s=s[0]),e[s]=n,i&&(i[s]=r)}return
e}const le=z;function
An(t){return{type:t.type,name:t.name,factory:null,pure:!1!==t.pure,onDestroy:t.type.prototype.ngOnDestroy||null}}function
Tn(t){return t[Ul]||null}function pi(t,i){const e=t[Gg]||null;if(!e&&!0===i)throw
new Error(`Type ${ft(t)} does not have '\u0275mod' property.`);return e}function
Ki(t){return Array.isArray(t)&&"object"==typeof t[1]}function
Ei(t){return Array.isArray(t)&&!0===t[1]}function Wd(t){return
0!=(8&t.flags)}function Wl(t){return 2==(2&t.flags)}functi
on Kl(t){return 1==(1&t.flags)}function Ri(t){return null!==t.template}function
Sx(t){return 0!=(512&t[2])}function ar(t,i){return
t.hasOwnProperty(ps)?t[ps]:null}class
Mx{constructor(i,e,n){this.previousValue=i,this.currentValue=e,this.firstChange=n}isFirstChange(){return
this.firstChange}}function fn(){return Kg}function Kg(t){return
t.type.prototype.ngOnChanges&&(t.setInput=Ix),kx}function kx(){const
t=Jg(this),i=null==t?void 0:t.current;if(i){const e=t.previous;if(e===Br)t.previous=i;else
for(let n in i)e[n]=i[n];t.current=null,this.ngOnChanges(i)}}function Ix(t,i,e,n){const
s=Jg(t)||function Ex(t,i){return
t[Qg]=i}(t,{previous:Br,current:null}),r=s.current||(s.current={}),o=s.previous,u=this.declaredInputs[e],h=o[u];r[u]=new
Mx(h&&h.currentValue,i,o===Br),t[n]=i}fn.ngInherit=!0;const
Qg="__ngSimpleChanges__";function Jg(t){return t[Qg]||null}let Zd;function
Xd(){return void 0!==Zd?Zd:"undefined"!=typeof document?document:void 0}function
$t(t){return!!t.listen}const Yg={createRe
nderer:(t,i)=>Xd()};function Yt(t){for(;Array.isArray(t);)t=t[0];return t}function
Ql(t,i){return Yt(i[t])}function Zn(t,i){return Yt(i[t.index])}function ep(t,i){return
t.data[i]}function zr(t,i){return t[i]}function Xn(t,i){const e=i[t];return
Ki(e)?e:e[0]}function Zg(t){return 4==(4&t[2])}function tp(t){return
128==(128&t[2])}function As(t,i){return null==i?null:t[i]}function
Xg(t){t[18]=0}function np(t,i){t[5]+=i;let
e=t,n=t[3];for(;null!==n&&(1===i&&1===e[5]||-1===i&&0===e[5]);)n[5]+=i,e=n,n=n[3]}const
Ee={lFrame:l_(null),bindingsEnabled:!0};function t_(){return Ee.bindingsEnabled}function
$(){return Ee.lFrame.lView}function tt(){return Ee.lFrame.tView}function v(t){return
Ee.lFrame.contextLView=t,t[8]}function rn(){let
t=n_();for(;null!==t&&64===t.type;)t=t.parent;return t}function n_(){return
Ee.lFrame.currentTNode}function Qi(t,i){const
e=Ee.lFrame;e.currentTNode=t,e.isParent=i}function ip(){return Ee.lFrame.isParent}function
sp(){Ee.lFrame.isParent=!1}function Fn(){const t=
Ee.lFrame;let
i=t.bindingRootIndex;return-1===i&&(i=t.bindingRootIndex=t.tView.bindingStartIndex),i}function
hs(){return Ee.lFrame.bindingIndex}function jr(){return Ee.lFrame.bindingIndex++}function
ms(t){const i=Ee.lFrame,e=i.bindingIndex;return i.bindingIndex=i.bindingIndex+t,e}function
Wx(t,i){const e=Ee.lFrame;e.bindingIndex=e.bindingRootIndex=t,rp(i)}function
rp(t){Ee.lFrame.currentDirectiveIndex=t}function r_(){return
Ee.lFrame.currentQueryIndex}function ap(t){Ee.lFrame.currentQueryIndex=t}function
Qx(t){const i=t[1];return 2===i.type?i.declTNode:1===i.type?t[6]:null}function
o_(t,i,e){if(e&xe.SkipSelf){let
s=i,r=t;for(;!(s=s.parent,null!==s||e&xe.Host||(s=Qx(r),null===s||(r=r[15],10&s.type))););if(null===s)return!1;i=s,t=r}const
n=Ee.lFrame=a_();return n.currentTNode=i,n.lView=t,!0}function Yl(t){const
i=a_(),e=t[1];Ee.lFrame=i,i.currentTNode=e.firstChild,i.lView=t,i.tView=e,i.contextLView=t,i.bindingIndex=e.bindingStartIndex,i.inI18n=!1}function
a_(){const t=Ee.lFrame,i=null
===t?null:t.child;return null===i?l_(t):i}function l_(t){const
i={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=i),i}function c_(){const t=Ee.lFrame;return
Ee.lFrame=t.parent,t.currentTNode=null,t.lView=null,t}const u_=c_;function Zl(){const
t=c_();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
Nn(){return Ee.lFrame.selectedIndex}function Ps(t){Ee.lFrame.selectedIndex=t}function
Vt(){const t=Ee.lFrame;return ep(t.tView,t.selectedIndex)}function Xl(t,i){for(let
e=i.directiveStart,n=i.directiveEnd;e<n;e++){const
r=t.data[e].type.prototype,{ngAfterContentInit:o,ngAfterContentChecked:u,ngAfterViewInit:h,ngAfte
rViewChecked:b,ngOnDestroy:y}=r;o&&(t.contentHooks||(t.contentHooks=[])).push(-e,o),u&&((t.contentHooks||(t.contentHooks=[])).push(e,u),(t.contentCheckHooks||(t.contentCheckHooks=[])).push(e,u)),h&&(t.viewHooks||(t.viewHooks=[])).push(-e,h),b&&((t.viewHooks||(t.viewHooks=[])).push(e,b),(t.viewCheckHooks||(t.viewCheckHooks=[])).push(e,b)),null!=y&&(t.destroyHooks||(t.destroyHooks=[])).push(e,y)}}function
ec(t,i,e){p_(t,i,3,e)}function tc(t,i,e,n){(3&t[2])===e&&p_(t,i,e,n)}function
lp(t,i){let e=t[2];(3&e)===i&&(e&=2047,e+=1,t[2]=e)}function
p_(t,i,e,n){const r=null!=n?n:-1,o=i.length-1;let u=0;for(let h=void
0!==n?65535&t[18]:0;h<o;h++)if("number"==typeof
i[h+1]){if(u=i[h],null!=n&&u>=n)break}else
i[h]<0&&(t[18]+=65536),(u<r||-1==r)&&(iD(t,e,i,h),t[18]=(4294901760&t[18])+h+2),h++}function
iD(t,i,e,n){const
s=e[n]<0,r=e[n+1],u=t[s?-e[n]:e[n]];if(s){if(t[2]>>11<t[18]>>16&&(3&t[2])===i){t[2]+=2048;try{r.call(u)}finally{}}}else
try{r.call(u)}finally{}}class oa{constructor(i,e,n){this.fac
tory=i,this.resolving=!1,this.canSeeViewProviders=e,this.injectImpl=n}}function
nc(t,i,e){const n=$t(t);let s=0;for(;s<e.length;){const
r=e[s];if("number"==typeof r){if(0!==r)break;s++;const
o=e[s++],u=e[s++],h=e[s++];n?t.setAttribute(i,u,h,o):i.setAttributeNS(o,u,h)}else{const
o=r,u=e[++s];up(o)?n&&t.setProperty(i,o,u):n?t.setAttribute(i,o,u):i.setAttribute(o,u),s++}}return
s}function h_(t){return 3===t||4===t||6===t}function up(t){return
64===t.charCodeAt(0)}function
ic(t,i){if(null!==i&&0!==i.length)if(null===t||0===t.length)t=i.slice();else{let
e=-1;for(let n=0;n<i.length;n++){const s=i[n];"number"==typeof
s?e=s:0===e||m_(t,e,s,null,-1===e||2===e?i[++n]:null)}}return t}function m_(t,i,e,n,s){let
r=0,o=t.length;if(-1===i)o=-1;else for(;r<t.length;){const
u=t[r++];if("number"==typeof
u){if(u===i){o=-1;break}if(u>i){o=r-1;break}}}for(;r<t.length;){const
u=t[r];if("number"==typeof u)break;if(u===e){if(null===n)return
void(null!==s&&(t[r+1]=s));if(n===t[r+1])return void(t[r+2]=s)}r++
,null!==n&&r++,null!==s&&r++}-1!==o&&(t.splice(o,0,i),r=o+1),t.splice(r++,0,e),null!==n&&t.splice(r++,0,n),null!==s&&t.splice(r++,0,s)}function
f_(t){return-1!==t}function $r(t){return 32767&t}function Wr(t,i){let e=function
lD(t){return t>>16}(t),n=i;for(;e>0;)n=n[15],e--;return n}let dp=!0;function
sc(t){const i=dp;return dp=t,i}let cD=0;function la(t,i){const e=hp(t,i);if(-1!==e)return
e;const
n=i[1];n.firstCreatePass&&(t.injectorIndex=i.length,pp(n.data,t),pp(i,null),pp(n.blueprint,null));const
s=rc(t,i),r=t.injectorIndex;if(f_(s)){const o=$r(s),u=Wr(s,i),h=u[1].data;for(let
b=0;b<8;b++)i[r+b]=u[o+b]|h[o+b]}return i[r+8]=s,r}function
pp(t,i){t.push(0,0,0,0,0,0,0,0,i)}function
hp(t,i){return-1===t.injectorIndex||t.parent&&t.parent.injectorIndex===t.injectorIndex||null===i[t.injectorIndex+8]?-1:t.injectorIndex}function
rc(t,i){if(t.parent&&-1!==t.parent.injectorIndex)return t.parent.injectorIndex;let
e=0,n=null,s=i;for(;null!==s;){const r=s[1],o=r.type;if(n=2===o?r.declTNode:1===o
?s[6]:null,null===n)return-1;if(e++,s=s[15],-1!==n.injectorIndex)return
n.injectorIndex|e<<16}return-1}function oc(t,i,e){!function uD(t,i,e){let
n;"string"==typeof
e?n=e.charCodeAt(0)||0:e.hasOwnProperty(ta)&&(n=e[ta]),null==n&&(n=e[ta]=cD++);const
s=255&n;i.data[t+(s>>5)]|=1<<s}(t,i,e)}function
b_(t,i,e){if(e&xe.Optional)return t;ql(i,"NodeInjector")}function
v_(t,i,e,n){if(e&xe.Optional&&void
0===n&&(n=null),0==(e&(xe.Self|xe.Host))){const s=t[9],r=Rs(void 0);try{return
s?s.get(i,n,e&xe.Optional):qg(i,n,e&xe.Optional)}finally{Rs(r)}}return
b_(n,i,e)}function C_(t,i,e,n=xe.Default,s){if(null!==t){const r=function
mD(t){if("string"==typeof t)return t.charCodeAt(0)||0;const
i=t.hasOwnProperty(ta)?t[ta]:void 0;return"number"==typeof
i?i>=0?255&i:pD:i}(e);if("function"==typeof r){if(!o_(i,t,n))return
n&xe.Host?b_(s,e,n):v_(i,e,n,s);try{const o=r(n);if(null!=o||n&xe.Optional)return
o;ql(e)}finally{u_()}}else if("number"==typeof r){let
o=null,u=hp(t,i),h=-1,b=n&xe.Host?i[16][6]:null;for
((-1===u||n&xe.SkipSelf)&&(h=-1===u?rc(t,i):i[u+8],-1!==h&&T_(n,!1)?(o=i[1],u=$r(h),i=Wr(h,i)):u=-1);-1!==u;){const
y=i[1];if(w_(r,u,y.data)){const w=hD(u,i,e,o,n,b);if(w!==y_)return
w}h=i[u+8],-1!==h&&T_(n,i[1].data[u+8]===b)&&w_(r,u,i)?(o=y,u=$r(h),i=Wr(h,i)):u=-1}}}return
v_(i,e,n,s)}const y_={};function pD(){return new Kr(rn(),$())}function
hD(t,i,e,n,s,r){const
o=i[1],u=o.data[t+8],y=ac(u,o,e,null==n?Wl(u)&&dp:n!=o&&0!=(3&u.type),s&xe.Host&&r===u);return
null!==y?ca(i,o,y,u):y_}function ac(t,i,e,n,s){const
r=t.providerIndexes,o=i.data,u=1048575&r,h=t.directiveStart,y=r>>20,M=s?u+y:t.directiveEnd;for(let
E=n?u:u+y;E<M;E++){const
L=o[E];if(E<h&&e===L||E>=h&&L.type===e)return E}if(s){const
E=o[h];if(E&&Ri(E)&&E.type===e)return h}return null}function
ca(t,i,e,n){let s=t[e];const r=i.data;if(function sD(t){return t instanceof oa}(s)){const
o=s;o.resolving&&function lx(t,i){const e=i?`. Dependency path: ${i.join("
> ")} > ${t}`:"";throw new re(-200,`Circular dependency in DI
detected
for ${t}${e}`)}(wn(r[e]));const u=sc(o.canSeeViewProviders);o.resolving=!0;const
h=o.injectImpl?Rs(o.injectImpl):null;o_(t,n,xe.Default);try{s=t[e]=o.factory(void
0,r,t,n),i.firstCreatePass&&e>=n.directiveStart&&function
nD(t,i,e){const{ngOnChanges:n,ngOnInit:s,ngDoCheck:r}=i.type.prototype;if(n){const
o=Kg(i);(e.preOrderHooks||(e.preOrderHooks=[])).push(t,o),(e.preOrderCheckHooks||(e.preOrderCheckHooks=[])).push(t,o)}s&&(e.preOrderHooks||(e.preOrderHooks=[])).push(0-t,s),r&&((e.preOrderHooks||(e.preOrderHooks=[])).push(t,r),(e.preOrderCheckHooks||(e.preOrderCheckHooks=[])).push(t,r))}(e,r[e],i)}finally{null!==h&&Rs(h),sc(u),o.resolving=!1,u_()}}return
s}function w_(t,i,e){return!!(e[i+(t>>5)]&1<<t)}function
T_(t,i){return!(t&xe.Self||t&xe.Host&&i)}class
Kr{constructor(i,e){this._tNode=i,this._lView=e}get(i,e,n){return
C_(this._tNode,this._lView,i,n,e)}}function on(t){return Ls(()=>{const
i=t.prototype.constructor,e=i[ps]||mp(i),n=Object.prototype;let
s=Object.getPrototypeOf(t.prot
otype).constructor;for(;s&&s!==n;){const
r=s[ps]||mp(s);if(r&&r!==e)return r;s=Object.getPrototypeOf(s)}return r=>new
r})}function mp(t){return Ng(t)?()=>{const i=mp(Ve(t));return
i&&i()}:ar(t)}function ua(t){return function
dD(t,i){if("class"===i)return t.classes;if("style"===i)return
t.styles;const e=t.attrs;if(e){const n=e.length;let s=0;for(;s<n;){const
r=e[s];if(h_(r))break;if(0===r)s+=2;else if("number"==typeof
r)for(s++;s<n&&"string"==typeof e[s];)s++;else{if(r===i)return
e[s+1];s+=2}}}return null}(rn(),t)}const Jr="__parameters__";function
Zr(t,i,e){return Ls(()=>{const n=function fp(t){return function(...e){if(t){const
n=t(...e);for(const s in n)this[s]=n[s]}}}(i);function s(...r){if(this instanceof s)return
n.apply(this,r),this;const o=new s(...r);return u.annotation=o,u;function u(h,b,y){const
w=h.hasOwnProperty(Jr)?h[Jr]:Object.defineProperty(h,Jr,{value:[]})[Jr];for(;w.length<=y;)w.push(null);return(w[y]=w[y]||[]).push(o),h}}return
e&&(s.prototype=Object.create(e.protot
ype)),s.prototype.ngMetadataName=t,s.annotationCls=s,s})}class
be{constructor(i,e){this._desc=i,this.ngMetadataName="InjectionToken",this.\u0275prov=void
0,"number"==typeof e?this.__NG_ELEMENT_ID__=e:void
0!==e&&(this.\u0275prov=X({token:this,providedIn:e.providedIn||"root",factory:e.factory}))}toString(){return`InjectionToken
${this._desc}`}}const gD=new be("AnalyzeForEntryComponents");function
fi(t,i){void 0===i&&(i=t);for(let e=0;e<t.length;e++){let
n=t[e];Array.isArray(n)?(i===t&&(i=t.slice(0,e)),fi(n,i)):i!==t&&i.push(n)}return
i}function Ji(t,i){t.forEach(e=>Array.isArray(e)?Ji(e,i):i(e))}function
x_(t,i,e){i>=t.length?t.push(e):t.splice(i,0,e)}function lc(t,i){return
i>=t.length-1?t.pop():t.splice(i,1)[0]}function ha(t,i){const e=[];for(let
n=0;n<t;n++)e.push(i);return e}function ei(t,i,e){let n=Xr(t,i);return
n>=0?t[1|n]=e:(n=~n,function vD(t,i,e,n){let s=t.length;if(s==i)t.push(e,n);else
if(1===s)t.push(n,t[0]),t[0]=e;else{for(s--,t.push(t[s-1],t[s]);s>i;)t[s]=t[s-2],s--;t[
i]=e,t[i+1]=n}}(t,n,i,e)),n}function _p(t,i){const e=Xr(t,i);if(e>=0)return
t[1|e]}function Xr(t,i){return function k_(t,i,e){let
n=0,s=t.length>>e;for(;s!==n;){const
r=n+(s-n>>1),o=t[r<<e];if(i===o)return
r<<e;o>i?s=r:n=r+1}return~(s<<e)}(t,i,1)}const
ma={},vp="__NG_DI_FLAG__",uc="ngTempTokenPath",DD=/\n/gm,E_="__source",kD=wt({provide:String,useValue:wt});let
fa;function R_(t){const i=fa;return fa=t,i}function ID(t,i=xe.Default){if(void
0===fa)throw new re(203,"");return null===fa?qg(t,void
0,i):fa.get(t,i&xe.Optional?null:void 0,i)}function K(t,i=xe.Default){return(function
fx(){return Gd}()||ID)(Ve(t),i)}const O_=K;function Cp(t){const i=[];for(let
e=0;e<t.length;e++){const n=Ve(t[e]);if(Array.isArray(n)){if(0===n.length)throw new
re(900,"");let s,r=xe.Default;for(let o=0;o<n.length;o++){const
u=n[o],h=ED(u);"number"==typeof h?-1===h?s=u.token:r|=h:s=u}i.push(K(s,r))}else
i.push(K(n))}return i}function ga(t,i){return t[vp]=i,t.prototype[vp]=i,t}function
ED(t){return t[vp]}const
dc=ga(Zr("Inject",t=>({token:t})),-1),Ns=ga(Zr("Optional"),8),_a=ga(Zr("SkipSelf"),4);var
ti=(()=>((ti=ti||{})[ti.Important=1]="Important",ti[ti.DashCase=2]="DashCase",ti))();const
H_="__ngContext__";function In(t,i){t[H_]=i}function Tp(t){const i=function
va(t){return t[H_]||null}(t);return i?Array.isArray(i)?i:i.lView:null}function
xp(t,i){return undefined(t,i)}function Ca(t){const i=t[3];return Ei(i)?i[3]:i}function
Dp(t){return W_(t[13])}function Mp(t){return W_(t[4])}function
W_(t){for(;null!==t&&!Ei(t);)t=t[4];return t}function
to(t,i,e,n,s){if(null!=n){let r,o=!1;Ei(n)?r=n:Ki(n)&&(o=!0,n=n[0]);const
u=Yt(n);0===t&&null!==e?null==s?X_(i,e,u):lr(i,e,u,s||null,!0):1===t&&null!==e?lr(i,e,u,s||null,!0):2===t?function
Ap(t,i,e){const n=hc(t,i);n&&function
aM(t,i,e,n){$t(t)?t.removeChild(i,e,n):i.removeChild(e)}(t,n,i,e)}(i,u,o):3===t&&i.destroyNode(u),null!=r&&function
uM(t,i,e,n,s){const r=e[7];r!==Yt(e)&&to(i,t,n,r,s);for(let
u=10;u<e.length;u++){const h=e[u];ya(h[1],h,t,i,n,r)}}
(i,t,r,e,s)}}function Ip(t,i,e){if($t(t))return t.createElement(i,e);{const
n=null!==e?function Ax(t){const
i=t.toLowerCase();return"svg"===i?"http://www.w3.org/2000/...
null===n?t.createElement(i):t.createElementNS(n,i)}}function Q_(t,i){const
e=t[9],n=e.indexOf(i),s=i[3];1024&i[2]&&(i[2]&=-1025,np(s,-1)),e.splice(n,1)}function
Ep(t,i){if(t.length<=10)return;const e=10+i,n=t[e];if(n){const
s=n[17];null!==s&&s!==t&&Q_(s,n),i>0&&(t[e-1][4]=n[4]);const
r=lc(t,10+i);!function
XD(t,i){ya(t,i,i[11],2,null,null),i[0]=null,i[6]=null}(n[1],n);const
o=r[19];null!==o&&o.detachView(r[1]),n[3]=null,n[4]=null,n[2]&=-129}return
n}function J_(t,i){if(!(256&i[2])){const
e=i[11];$t(e)&&e.destroyNode&&ya(t,i,e,3,null,null),function nM(t){let
i=t[13];if(!i)return Rp(t[1],t);for(;i;){let e=null;if(Ki(i))e=i[13];else{const
n=i[10];n&&(e=n)}if(!e){for(;i&&!i[4]&&i!==t;)Ki(i)&&Rp(i[1],i),i=i[3];null===i&&(i=t),Ki(i)&&Rp(i[1],i),e=i&&i[4]}i=
e}}(i)}}function Rp(t,i){if(!(256&i[2])){i[2]&=-129,i[2]|=256,function
oM(t,i){let e;if(null!=t&&null!=(e=t.destroyHooks))for(let
n=0;n<e.length;n+=2){const s=i[e[n]];if(!(s instanceof oa)){const
r=e[n+1];if(Array.isArray(r))for(let o=0;o<r.length;o+=2){const
u=s[r[o]],h=r[o+1];try{h.call(u)}finally{}}else try{r.call(s)}finally{}}}}(t,i),function
rM(t,i){const e=t.cleanup,n=i[7];let s=-1;if(null!==e)for(let
r=0;r<e.length-1;r+=2)if("string"==typeof e[r]){const
o=e[r+1],u="function"==typeof
o?o(i):Yt(i[o]),h=n[s=e[r+2]],b=e[r+3];"boolean"==typeof
b?u.removeEventListener(e[r],h,b):b>=0?n[s=b]():n[s=-b].unsubscribe(),r+=2}else{const
o=n[s=e[r+1]];e[r].call(o)}if(null!==n){for(let
r=s+1;r<n.length;r++)n[r]();i[7]=null}}(t,i),1===i[1].type&&$t(i[11])&&i[11].destroy();const
e=i[17];if(null!==e&&Ei(i[3])){e!==i[3]&&Q_(e,i);const
n=i[19];null!==n&&n.detachView(t)}}}function Y_(t,i,e){return function
Z_(t,i,e){let n=i;for(;null!==n&&40&n.type;)n=(i=n).parent;if(null===n)return
e[0];if(2&n.fl
ags){const
s=t.data[n.directiveStart].encapsulation;if(s===ki.None||s===ki.Emulated)return
null}return Zn(n,e)}(t,i.parent,e)}function
lr(t,i,e,n,s){$t(t)?t.insertBefore(i,e,n,s):i.insertBefore(e,n,s)}function
X_(t,i,e){$t(t)?t.appendChild(i,e):i.appendChild(e)}function
eb(t,i,e,n,s){null!==n?lr(t,i,e,n,s):X_(t,i,e)}function hc(t,i){return
$t(t)?t.parentNode(i):i.parentNode}function tb(t,i,e){return ib(t,i,e)}let
gc,_c,ib=function nb(t,i,e){return 40&t.type?Zn(t,e):null};function mc(t,i,e,n){const
s=Y_(t,n,i),r=i[11],u=tb(n.parent||i[6],n,i);if(null!=s)if(Array.isArray(e))for(let
h=0;h<e.length;h++)eb(r,s,e[h],u,!1);else eb(r,s,e,u,!1)}function
fc(t,i){if(null!==i){const e=i.type;if(3&e)return Zn(i,t);if(4&e)return
Op(-1,t[i.index]);if(8&e){const n=i.child;if(null!==n)return fc(t,n);{const
s=t[i.index];return Ei(s)?Op(-1,s):Yt(s)}}if(32&e)return
xp(i,t)()||Yt(t[i.index]);{const n=rb(t,i);return
null!==n?Array.isArray(n)?n[0]:fc(Ca(t[16]),n):fc(t,i.next)}}return null}function rb(t,i)
{return null!==i?t[16][6].projection[i.projection]:null}function Op(t,i){const
e=10+t+1;if(e<i.length){const n=i[e],s=n[1].firstChild;if(null!==s)return
fc(n,s)}return i[7]}function Pp(t,i,e,n,s,r,o){for(;null!=e;){const
u=n[e.index],h=e.type;if(o&&0===i&&(u&&In(Yt(u),n),e.flags|=4),64!=(64&e.flags))if(8&h)Pp(t,i,e.child,n,s,r,!1),to(i,t,s,u,r);else
if(32&h){const b=xp(e,n);let y;for(;y=b();)to(i,t,s,y,r);to(i,t,s,u,r)}else
16&h?ob(t,i,n,e,s,r):to(i,t,s,u,r);e=o?e.projectionNext:e.next}}function
ya(t,i,e,n,s,r){Pp(e,n,t.firstChild,i,s,r,!1)}function ob(t,i,e,n,s,r){const
o=e[16],h=o[6].projection[n.projection];if(Array.isArray(h))for(let
b=0;b<h.length;b++)to(i,t,s,h[b],r);else Pp(t,i,h,o[3],s,r,!0)}function
ab(t,i,e){$t(t)?t.setAttribute(i,"style",e):i.style.cssText=e}function
Fp(t,i,e){$t(t)?""===e?t.removeAttribute(i,"class"):t.setAttribute(i,"class",e):i.className=e}function
cr(t){var i;return(null===(i=function Np(){if(void
0===gc&&(gc=null,vt.trustedTypes))try{gc=vt.trustedTyp
es.createPolicy("angular",{createHTML:t=>t,createScript:t=>t,createScriptURL:t=>t})}catch(t){}return
gc}())||void 0===i?void 0:i.createHTML(t))||t}function lb(t){var
i;return(null===(i=function Vp(){if(void
0===_c&&(_c=null,vt.trustedTypes))try{_c=vt.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:t=>t,createScript:t=>t,createScriptURL:t=>t})}catch(t){}return
_c}())||void 0===i?void 0:i.createHTML(t))||t}class
db{constructor(i){this.changingThisBreaksApplicationSecurity=i}toString(){return`SafeValue
must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see
https://g.co/ng/security#xss)`}}function Vs(t){return t instanceof
db?t.changingThisBreaksApplicationSecurity:t}function wa(t,i){const e=function
CM(t){return t instanceof
db&&t.getTypeName()||null}(t);if(null!=e&&e!==i){if("ResourceURL"===e&&"URL"===i)return!0;throw
new Error(`Required a safe ${i}, got a ${e} (see
https://g.co/ng/security#xss)`)}return
e===i}class yM{constructor(i){this.inertDo
cumentHelper=i}getInertBodyElement(i){i="<body><remove></remove>"+i;try{const
e=(new window.DOMParser).parseFromString(cr(i),"text/html").body;return
null===e?this.inertDocumentHelper.getInertBodyElement(i):(e.removeChild(e.firstChild),e)}catch(e){return
null}}}class
wM{constructor(i){if(this.defaultDoc=i,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert"),null==this.inertDocument.body){const
e=this.inertDocument.createElement("html");this.inertDocument.appendChild(e);const
n=this.inertDocument.createElement("body");e.appendChild(n)}}getInertBodyElement(i){const
e=this.inertDocument.createElement("template");if("content"in e)return
e.innerHTML=cr(i),e;const n=this.inertDocument.createElement("body");return
n.innerHTML=cr(i),this.defaultDoc.documentMode&&this.stripCustomNsAttrs(n),n}stripCustomNsAttrs(i){const
e=i.attributes;for(let s=e.length-1;0<s;s--){const
o=e.item(s).name;("xmlns:ns1"===o||0===o.indexOf("ns1:"))&&i.removeAttribute(o)}let
n=
i.firstChild;for(;n;)n.nodeType===Node.ELEMENT_NODE&&this.stripCustomNsAttrs(n),n=n.nextSibling}}const
SM=/^(?:(?:https?|mailto|ftp|tel|file|sms):|[^&:/?#]*(?:[/?#]|$))/gi,xM=/^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
bc(t){return(t=String(t)).match(SM)||t.match(xM)?t:"unsafe:"+t}function
hb(t){return(t=String(t)).split(",").map(i=>bc(i.trim())).join(",
")}function Yi(t){const i={};for(const e of t.split(","))i[e]=!0;return
i}function Ta(...t){const i={};for(const e of t)for(const n in
e)e.hasOwnProperty(n)&&(i[n]=!0);return i}const
mb=Yi("area,br,col,hr,img,wbr"),fb=Yi("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),gb=Yi("rp,rt"),Bp=Ta(mb,Ta(fb,Yi("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")),Ta(gb,Yi("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")),Ta(gb,fb)),Hp=Yi("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),qp=Yi("srcset"),_b=Ta(Hp,qp,Yi("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,start,summary,tabindex,target,title,translate,type,usemap,valign,value,vspace,width"),Yi("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-grab
bed,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")),DM=Yi("script,style,template");class
MM{constructor(){this.sanitizedSomething=!1,this.buf=[]}sanitizeChildren(i){let
e=i.firstChild,n=!0;for(;e;)if(e.nodeType===Node.ELEMENT_NODE?n=this.startElement(e):e.nodeType===Node.TEXT_NODE?this.chars(e.nodeValue):this.sanitizedSomething=!0,n&&e.firstChild)e=e.firstChild;else
for(;e;){e.nodeType===Node.ELEMENT_NODE&&this.endElement(e);let
s=this.checkClobberedElement(e,e.nextSibling);if(s){e=s;break}e=this.checkClobberedElement(e,e.parentNode)}return
this.buf.join("")}startElement(i){const e=i.nodeName.toLowerCase();if(!Bp.
hasOwnProperty(e))return
this.sanitizedSomething=!0,!DM.hasOwnProperty(e);this.buf.push("<"),this.buf.push(e);const
n=i.attributes;for(let s=0;s<n.length;s++){const
r=n.item(s),o=r.name,u=o.toLowerCase();if(!_b.hasOwnProperty(u)){this.sanitizedSomething=!0;continue}let
h=r.value;Hp[u]&&(h=bc(h)),qp[u]&&(h=hb(h)),this.buf.push("
",o,'="',bb(h),'"')}return
this.buf.push(">"),!0}endElement(i){const
e=i.nodeName.toLowerCase();Bp.hasOwnProperty(e)&&!mb.hasOwnProperty(e)&&(this.buf.push("</"),this.buf.push(e),this.buf.push(">"))}chars(i){this.buf.push(bb(i))}checkClobberedElement(i,e){if(e&&(i.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_CONTAINED_BY)===Node.DOCUMENT_POSITION_CONTAINED_BY)throw
new Error(`Failed to sanitize html because the element is clobbered:
${i.outerHTML}`);return e}}const kM=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,IM=/([^\#-~
|!])/g;function bb(t){return
t.replace(/&/g,"&").replace(kM,function(i){return"&#"+(1024*(i.charCodeAt(0)-55296)+(i.charCodeAt(1)-56320)+65
536)+";"}).replace(IM,function(i){return"&#"+i.charCodeAt(0)+";"}).replace(/</g,"<").replace(/>/g,">")}let
vc;function Gp(t){return"content"in t&&function RM(t){return
t.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===t.nodeName}(t)?t.content:null}var
Zt=(()=>((Zt=Zt||{})[Zt.NONE=0]="NONE",Zt[Zt.HTML=1]="HTML",Zt[Zt.STYLE=2]="STYLE",Zt[Zt.SCRIPT=3]="SCRIPT",Zt[Zt.URL=4]="URL",Zt[Zt.RESOURCE_URL=5]="RESOURCE_URL",Zt))();function
Bt(t){const i=Sa();return
i?lb(i.sanitize(Zt.HTML,t)||""):wa(t,"HTML")?lb(Vs(t)):function
EM(t,i){let e=null;try{vc=vc||function pb(t){const i=new wM(t);return function
TM(){try{return!!(new
window.DOMParser).parseFromString(cr(""),"text/html")}catch(t){return!1}}()?new
yM(i):i}(t);let n=i?String(i):"";e=vc.getInertBodyElement(n);let
s=5,r=n;do{if(0===s)throw new Error("Failed to sanitize html because the input is
unstable");s--,n=r,r=e.innerHTML,e=vc.getInertBodyElement(n)}while(n!==r);return
cr((new MM).sanitizeChildren(Gp(e)||e))}finally{if(e){const n=Gp(
e)||e;for(;n.firstChild;)n.removeChild(n.firstChild)}}}(Xd(),Ie(t))}function ln(t){const
i=Sa();return
i?i.sanitize(Zt.URL,t)||"":wa(t,"URL")?Vs(t):bc(Ie(t))}function
Sa(){const t=$();return t&&t[12]}function zp(t){return t.ngOriginalError}function
qM(t,...i){t.error(...i)}class xa{constructor(){this._console=console}handleError(i){const
e=this._findOriginalError(i),n=function HM(t){return
t&&t.ngErrorLogger||qM}(i);n(this._console,"ERROR",i),e&&n(this._console,"ORIGINAL
ERROR",e)}_findOriginalError(i){let
e=i&&zp(i);for(;e&&zp(e);)e=zp(e);return e||null}}const
KM=(()=>("undefined"!=typeof
requestAnimationFrame&&requestAnimationFrame||setTimeout).bind(vt))();function
ni(t){return t.ownerDocument.defaultView}function Zi(t){return t instanceof
Function?t():t}function yb(t,i,e){let n=t.length;for(;;){const
s=t.indexOf(i,e);if(-1===s)return s;if(0===s||t.charCodeAt(s-1)<=32){const
r=i.length;if(s+r===n||t.charCodeAt(s+r)<=32)return s}e=s+1}}const
wb="ng-template";function YM(t,i,e){let
n=0;for(;n<t.length;){let
s=t[n++];if(e&&"class"===s){if(s=t[n],-1!==yb(s.toLowerCase(),i,0))return!0}else
if(1===s){for(;n<t.length&&"string"==typeof(s=t[n++]);)if(s.toLowerCase()===i)return!0;return!1}}return!1}function
Tb(t){return 4===t.type&&t.value!==wb}function ZM(t,i,e){return
i===(4!==t.type||e?t.value:wb)}function XM(t,i,e){let n=4;const s=t.attrs||[],r=function
nk(t){for(let i=0;i<t.length;i++)if(h_(t[i]))return i;return t.length}(s);let
o=!1;for(let u=0;u<i.length;u++){const h=i[u];if("number"!=typeof
h){if(!o)if(4&n){if(n=2|1&n,""!==h&&!ZM(t,h,e)||""===h&&1===i.length){if(Li(n))return!1;o=!0}}else{const
b=8&n?h:i[++u];if(8&n&&null!==t.attrs){if(!YM(t.attrs,b,e)){if(Li(n))return!1;o=!0}continue}const
w=ek(8&n?"class":h,s,Tb(t),e);if(-1===w){if(Li(n))return!1;o=!0;continue}if(""!==b){let
M;M=w>r?"":s[w+1].toLowerCase();const
E=8&n?M:null;if(E&&-1!==yb(E,b,0)||2&n&&b!==M){if(Li(n))return!1;o=!0}}}}else{if(!o&&!Li(n)&&!Li(h))return!1;if(o&&Li(h))continue;o=!1,n=h|1&n}}retur
n Li(n)||o}function Li(t){return 0==(1&t)}function
ek(t,i,e,n){if(null===i)return-1;let s=0;if(n||!e){let r=!1;for(;s<i.length;){const
o=i[s];if(o===t)return s;if(3===o||6===o)r=!0;else{if(1===o||2===o){let
u=i[++s];for(;"string"==typeof
u;)u=i[++s];continue}if(4===o)break;if(0===o){s+=4;continue}}s+=r?1:2}return-1}return
function ik(t,i){let e=t.indexOf(4);if(e>-1)for(e++;e<t.length;){const
n=t[e];if("number"==typeof n)return-1;if(n===i)return
e;e++}return-1}(i,t)}function Sb(t,i,e=!1){for(let
n=0;n<i.length;n++)if(XM(t,i[n],e))return!0;return!1}function sk(t,i){e:for(let
e=0;e<i.length;e++){const n=i[e];if(t.length===n.length){for(let
s=0;s<t.length;s++)if(t[s]!==n[s])continue e;return!0}}return!1}function xb(t,i){return
t?":not("+i.trim()+")":i}function rk(t){let
i=t[0],e=1,n=2,s="",r=!1;for(;e<t.length;){let
o=t[e];if("string"==typeof o)if(2&n){const
u=t[++e];s+="["+o+(u.length>0?'="'+u+'"':"")+"]"}else
8&n?s+="."+o:4&n&&(s+="
"+o);else""!==s&&!Li(o)&&(i+=xb(r,s),s=""),n=o,r=r||
!Li(n);e++}return""!==s&&(i+=xb(r,s)),i}const Re={};function
a(t){Db(tt(),$(),Nn()+t,!1)}function Db(t,i,e,n){if(!n)if(3==(3&i[2])){const
r=t.preOrderCheckHooks;null!==r&&ec(i,r,e)}else{const
r=t.preOrderHooks;null!==r&&tc(i,r,0,e)}Ps(e)}function Cc(t,i){return
t<<17|i<<2}function Oi(t){return t>>17&32767}function jp(t){return
2|t}function fs(t){return(131068&t)>>2}function
$p(t,i){return-131069&t|i<<2}function Wp(t){return 1|t}function Nb(t,i){const
e=t.contentQueries;if(null!==e)for(let n=0;n<e.length;n+=2){const
s=e[n],r=e[n+1];if(-1!==r){const o=t.data[r];ap(s),o.contentQueries(2,i[r],r)}}}function
Da(t,i,e,n,s,r,o,u,h,b){const y=i.blueprint.slice();return
y[0]=s,y[2]=140|n,Xg(y),y[3]=y[15]=t,y[8]=e,y[10]=o||t&&t[10],y[11]=u||t&&t[11],y[12]=h||t&&t[12]||null,y[9]=b||t&&t[9]||null,y[6]=r,y[16]=2==i.type?t[16]:y,y}function
io(t,i,e,n,s){let r=t.data[i];if(null===r)r=function nh(t,i,e,n,s){const
r=n_(),o=ip(),h=t.data[i]=function Tk(t,i,e,n,s,r){return{type:e,index:n,insertBeforeIn
dex:null,injectorIndex:i?i.injectorIndex:-1,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,propertyBindings:null,flags:0,providerIndexes:0,value:s,attrs:r,mergedAttrs:null,localNames:null,initialInputs:void
0,inputs:null,outputs:null,tViews:null,next:null,projectionNext:null,child:null,parent:i,projection:null,styles:null,stylesWithoutHost:null,residualStyles:void
0,classes:null,classesWithoutHost:null,residualClasses:void
0,classBindings:0,styleBindings:0}}(0,o?r:r&&r.parent,e,i,n,s);return
null===t.firstChild&&(t.firstChild=h),null!==r&&(o?null==r.child&&null!==h.parent&&(r.child=h):null===r.next&&(r.next=h)),h}(t,i,e,n,s),function
$x(){return Ee.lFrame.inI18n}()&&(r.flags|=64);else
if(64&r.type){r.type=e,r.value=n,r.attrs=s;const o=function ra(){const
t=Ee.lFrame,i=t.currentTNode;return
t.isParent?i:i.parent}();r.injectorIndex=null===o?-1:o.injectorIndex}return
Qi(r,!0),r}function so(t,i,e,n){if(0===e)return-1;const s=i.length;for(let
r=0;r<e;r++)i.push(n),t.blueprint.
push(n),t.data.push(null);return s}function Ma(t,i,e){Yl(i);try{const
n=t.viewQuery;null!==n&&dh(1,n,e);const
s=t.template;null!==s&&Vb(t,i,s,1,e),t.firstCreatePass&&(t.firstCreatePass=!1),t.staticContentQueries&&Nb(t,i),t.staticViewQueries&&dh(2,t.viewQuery,e);const
r=t.components;null!==r&&function Ck(t,i){for(let
e=0;e<i.length;e++)qk(t,i[e])}(i,r)}catch(n){throw
t.firstCreatePass&&(t.incompleteFirstPass=!0,t.firstCreatePass=!1),n}finally{i[2]&=-5,Zl()}}function
ro(t,i,e,n){const s=i[2];if(256!=(256&s)){Yl(i);try{Xg(i),function i_(t){return
Ee.lFrame.bindingIndex=t}(t.bindingStartIndex),null!==e&&Vb(t,i,e,2,n);const
o=3==(3&s);if(o){const
b=t.preOrderCheckHooks;null!==b&&ec(i,b,null)}else{const
b=t.preOrderHooks;null!==b&&tc(i,b,0,null),lp(i,0)}if(function Bk(t){for(let
i=Dp(t);null!==i;i=Mp(i)){if(!i[2])continue;const e=i[9];for(let
n=0;n<e.length;n++){const
s=e[n],r=s[3];0==(1024&s[2])&&np(r,1),s[2]|=1024}}}(i),function Vk(t){for(let
i=Dp(t);null!==i;i=Mp(i))for(let e=10;e<i.le
ngth;e++){const
n=i[e],s=n[1];tp(n)&&ro(s,n,s.template,n[8])}}(i),null!==t.contentQueries&&Nb(t,i),o){const
b=t.contentCheckHooks;null!==b&&ec(i,b)}else{const
b=t.contentHooks;null!==b&&tc(i,b,1),lp(i,1)}!function bk(t,i){const
e=t.hostBindingOpCodes;if(null!==e)try{for(let n=0;n<e.length;n++){const
s=e[n];if(s<0)Ps(~s);else{const
r=s,o=e[++n],u=e[++n];Wx(o,r),u(2,i[r])}}}finally{Ps(-1)}}(t,i);const
u=t.components;null!==u&&function vk(t,i){for(let
e=0;e<i.length;e++)Hk(t,i[e])}(i,u);const
h=t.viewQuery;if(null!==h&&dh(2,h,n),o){const
b=t.viewCheckHooks;null!==b&&ec(i,b)}else{const
b=t.viewHooks;null!==b&&tc(i,b,2),lp(i,2)}!0===t.firstUpdatePass&&(t.firstUpdatePass=!1),i[2]&=-73,1024&i[2]&&(i[2]&=-1025,np(i[3],-1))}finally{Zl()}}}function
yk(t,i,e,n){const
s=i[10],o=Zg(i);try{!o&&s.begin&&s.begin(),o&&Ma(t,i,n),ro(t,i,e,n)}finally{!o&&s.end&&s.end()}}function
Vb(t,i,e,n,s){const
r=Nn(),o=2&n;try{Ps(-1),o&&i.length>20&&Db(t,i,20,!1),e(n,s)}finally{Ps(r)}}function
Bb(t,i,e){if(Wd(i)){
const s=i.directiveEnd;for(let r=i.directiveStart;r<s;r++){const
o=t.data[r];o.contentQueries&&o.contentQueries(1,e[r],r)}}}function
ih(t,i,e){!t_()||(function Ek(t,i,e,n){const
s=e.directiveStart,r=e.directiveEnd;t.firstCreatePass||la(e,i),In(n,i);const
o=e.initialInputs;for(let u=s;u<r;u++){const
h=t.data[u],b=Ri(h);b&&Pk(i,e,h);const
y=ca(i,t,u,e);In(y,i),null!==o&&Fk(0,u-s,y,h,0,o),b&&(Xn(e.index,i)[8]=y)}}(t,i,e,Zn(e,i)),128==(128&e.flags)&&function
Rk(t,i,e){const n=e.directiveStart,s=e.directiveEnd,o=e.index,u=function Kx(){return
Ee.lFrame.currentDirectiveIndex}();try{Ps(o);for(let h=n;h<s;h++){const
b=t.data[h],y=i[h];rp(h),(null!==b.hostBindings||0!==b.hostVars||null!==b.hostAttrs)&&Wb(b,y)}}finally{Ps(-1),rp(u)}}(t,i,e))}function
sh(t,i,e=Zn){const n=i.localNames;if(null!==n){let s=i.index+1;for(let
r=0;r<n.length;r+=2){const o=n[r+1],u=-1===o?e(i,t):t[o];t[s++]=u}}}function
Hb(t){const i=t.tView;return
null===i||i.incompleteFirstPass?t.tView=Tc(1,null,t.template,t.decls,
t.vars,t.directiveDefs,t.pipeDefs,t.viewQuery,t.schemas,t.consts):i}function
Tc(t,i,e,n,s,r,o,u,h,b){const y=20+n,w=y+s,M=function wk(t,i){const e=[];for(let
n=0;n<i;n++)e.push(n<t?null:Re);return e}(y,w),E="function"==typeof
b?b():b;return
M[1]={type:t,blueprint:M,template:e,queries:null,viewQuery:u,declTNode:i,data:M.slice().fill(null,y),bindingStartIndex:y,expandoStartIndex:w,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
r?r():r,pipeRegistry:"function"==typeof
o?o():o,firstChild:null,schemas:h,consts:E,incompleteFirstPass:!1}}function
Ub(t,i,e,n){const
s=Xb(i);null===e?s.push(n):(s.push(e),t.firstCreatePass&&ev(t).push(n,s.length-1))}function
zb(t,i,e){for(let n in t)if(t.hasOwnProperty(n)){const s=t[
n];(e=null===e?{}:e).hasOwnProperty(n)?e[n].push(i,s):e[n]=[i,s]}return e}function
ii(t,i,e,n,s,r,o,u){const h=Zn(i,e);let
y,b=i.inputs;!u&&null!=b&&(y=b[n])?(iv(t,e,y,n,s),Wl(i)&&function
Dk(t,i){const
e=Xn(i,t);16&e[2]||(e[2]|=64)}(e,i.index)):3&i.type&&(n=function
xk(t){return"class"===t?"className":"for"===t?"htmlFor":"formaction"===t?"formAction":"innerHtml"===t?"innerHTML":"readonly"===t?"readOnly":"tabindex"===t?"tabIndex":t}(n),s=null!=o?o(s,i.value||"",n):s,$t(r)?r.setProperty(h,n,s):up(n)||(h.setProperty?h.setProperty(n,s):h[n]=s))}function
rh(t,i,e,n){let s=!1;if(t_()){const r=function Lk(t,i,e){const n=t.directiveRegistry;let
s=null;if(n)for(let r=0;r<n.length;r++){const
o=n[r];Sb(e,o.selectors,!1)&&(s||(s=[]),oc(la(e,i),t,o.type),Ri(o)?(Kb(t,e),s.unshift(o)):s.push(o))}return
s}(t,i,e),o=null===n?null:{"":-1};if(null!==r){s=!0,Qb(e,t.data.length,r.length);for(let
y=0;y<r.length;y++){const
w=r[y];w.providersResolver&&w.providersResolver(w)}let
u=!1,h=!1,b=so(t,i,r.length
,null);for(let y=0;y<r.length;y++){const
w=r[y];e.mergedAttrs=ic(e.mergedAttrs,w.hostAttrs),Jb(t,e,i,b,w),Ak(b,w,o),null!==w.contentQueries&&(e.flags|=8),(null!==w.hostBindings||null!==w.hostAttrs||0!==w.hostVars)&&(e.flags|=128);const
M=w.type.prototype;!u&&(M.ngOnChanges||M.ngOnInit||M.ngDoCheck)&&((t.preOrderHooks||(t.preOrderHooks=[])).push(e.index),u=!0),!h&&(M.ngOnChanges||M.ngDoCheck)&&((t.preOrderCheckHooks||(t.preOrderCheckHooks=[])).push(e.index),h=!0),b++}!function
Sk(t,i){const n=i.directiveEnd,s=t.data,r=i.attrs,o=[];let u=null,h=null;for(let
b=i.directiveStart;b<n;b++){const
y=s[b],w=y.inputs,M=null===r||Tb(i)?null:Nk(w,r);o.push(M),u=zb(w,b,u),h=zb(y.outputs,b,h)}null!==u&&(u.hasOwnProperty("class")&&(i.flags|=16),u.hasOwnProperty("style")&&(i.flags|=32)),i.initialInputs=o,i.inputs=u,i.outputs=h}(t,e)}o&&function
Ok(t,i,e){if(i){const n=t.localNames=[];for(let s=0;s<i.length;s+=2){const
r=e[i[s+1]];if(null==r)throw new re(-301,!1);n.push(i[s],r)}}}(e,n,o)}return e.mer
gedAttrs=ic(e.mergedAttrs,e.attrs),s}function $b(t,i,e,n,s,r){const
o=r.hostBindings;if(o){let
u=t.hostBindingOpCodes;null===u&&(u=t.hostBindingOpCodes=[]);const
h=~i.index;(function Ik(t){let i=t.length;for(;i>0;){const
e=t[--i];if("number"==typeof e&&e<0)return e}return
0})(u)!=h&&u.push(h),u.push(n,s,o)}}function
Wb(t,i){null!==t.hostBindings&&t.hostBindings(1,i)}function
Kb(t,i){i.flags|=2,(t.components||(t.components=[])).push(i.index)}function
Ak(t,i,e){if(e){if(i.exportAs)for(let
n=0;n<i.exportAs.length;n++)e[i.exportAs[n]]=t;Ri(i)&&(e[""]=t)}}function
Qb(t,i,e){t.flags|=1,t.directiveStart=i,t.directiveEnd=i+e,t.providerIndexes=i}function
Jb(t,i,e,n,s){t.data[n]=s;const r=s.factory||(s.factory=ar(s.type)),o=new
oa(r,Ri(s),null);t.blueprint[n]=o,e[n]=o,$b(t,i,0,n,so(t,e,s.hostVars,Re),s)}function
Pk(t,i,e){const
n=Zn(i,t),s=Hb(e),r=t[10],o=Sc(t,Da(t,s,null,e.onPush?64:16,n,i,r,r.createRenderer(n,e),null,null));t[i.index]=o}function
Xi(t,i,e,n,s,r){const o=Zn(t,i);!function oh(
t,i,e,n,s,r,o){if(null==r)$t(t)?t.removeAttribute(i,s,e):i.removeAttribute(s);else{const
u=null==o?Ie(r):o(r,n||"",s);$t(t)?t.setAttribute(i,s,u,e):e?i.setAttributeNS(e,s,u):i.setAttribute(s,u)}}(i[11],o,r,t.value,e,n,s)}function
Fk(t,i,e,n,s,r){const o=r[i];if(null!==o){const u=n.setInput;for(let
h=0;h<o.length;){const
b=o[h++],y=o[h++],w=o[h++];null!==u?n.setInput(e,w,b,y):e[y]=w}}}function Nk(t,i){let
e=null,n=0;for(;n<i.length;){const
s=i[n];if(0!==s)if(5!==s){if("number"==typeof
s)break;t.hasOwnProperty(s)&&(null===e&&(e=[]),e.push(s,t[s],i[n+1])),n+=2}else
n+=2;else n+=4}return e}function Yb(t,i,e,n){return new
Array(t,!0,!1,i,null,0,n,e,null,null)}function Hk(t,i){const e=Xn(i,t);if(tp(e)){const
n=e[1];80&e[2]?ro(n,e,n.template,e[8]):e[5]>0&&ah(e)}}function
ah(t){for(let n=Dp(t);null!==n;n=Mp(n))for(let s=10;s<n.length;s++){const
r=n[s];if(1024&r[2]){const o=r[1];ro(o,r,o.template,r[8])}else
r[5]>0&&ah(r)}const e=t[1].components;if(null!==e)for(let
n=0;n<e.length;n++){const s
=Xn(e[n],t);tp(s)&&s[5]>0&&ah(s)}}function qk(t,i){const
e=Xn(i,t),n=e[1];(function Gk(t,i){for(let
e=i.length;e<t.blueprint.length;e++)i.push(t.blueprint[e])})(n,e),Ma(n,e,e[8])}function
Sc(t,i){return t[13]?t[14][4]=i:t[13]=i,t[14]=i,i}function lh(t){for(;t;){t[2]|=64;const
i=Ca(t);if(Sx(t)&&!i)return t;t=i}return null}function Zb(t){!function
ch(t){for(let i=0;i<t.components.length;i++){const
e=t.components[i],n=Tp(e),s=n[1];yk(s,n,s.template,e)}}(t[8])}function
dh(t,i,e){ap(0),i(t,e)}const zk=(()=>Promise.resolve(null))();function Xb(t){return
t[7]||(t[7]=[])}function ev(t){return t.cleanup||(t.cleanup=[])}function nv(t,i){const
e=t[9],n=e?e.get(xa,null):null;n&&n.handleError(i)}function iv(t,i,e,n,s){for(let
r=0;r<e.length;){const
o=e[r++],u=e[r++],h=i[o],b=t.data[o];null!==b.setInput?b.setInput(h,s,n,u):h[u]=s}}function
gs(t,i,e){const n=Ql(i,t);!function
K_(t,i,e){$t(t)?t.setValue(i,e):i.textContent=e}(t[11],n,e)}function xc(t,i,e){let
n=e?t.styles:null,s=e?t.classes:null,r=0
;if(null!==i)for(let o=0;o<i.length;o++){const u=i[o];"number"==typeof
u?r=u:1==r?s=Vd(s,u):2==r&&(n=Vd(n,u+":
"+i[++o]+";"))}e?t.styles=n:t.stylesWithoutHost=n,e?t.classes=s:t.classesWithoutHost=s}const
ph=new be("INJECTOR",-1);class sv{get(i,e=ma){if(e===ma){const n=new
Error(`NullInjectorError: No provider for ${ft(i)}!`);throw
n.name="NullInjectorError",n}return e}}const hh=new be("Set Injector
scope."),ka={},Wk={};let mh;function rv(){return void 0===mh&&(mh=new
sv),mh}function ov(t,i=null,e=null,n){const s=av(t,i,e,n);return
s._resolveInjectorDefTypes(),s}function av(t,i=null,e=null,n){return new
Kk(t,e,i||rv(),n)}class Kk{constructor(i,e,n,s=null){this.parent=n,this.records=new
Map,this.injectorDefTypes=new Set,this.onDestroy=new Set,this._destroyed=!1;const
r=[];e&&Ji(e,u=>this.processProvider(u,i,e)),Ji([i],u=>this.processInjectorType(u,[],r)),this.records.set(ph,oo(void
0,this));const
o=this.records.get(hh);this.scope=null!=o?o.value:null,this.source=s||("object"==typeof
i
?null:ft(i))}get destroyed(){return
this._destroyed}destroy(){this.assertNotDestroyed(),this._destroyed=!0;try{this.onDestroy.forEach(i=>i.ngOnDestroy())}finally{this.records.clear(),this.onDestroy.clear(),this.injectorDefTypes.clear()}}get(i,e=ma,n=xe.Default){this.assertNotDestroyed();const
s=R_(this),r=Rs(void 0);try{if(!(n&xe.SkipSelf)){let u=this.records.get(i);if(void
0===u){const h=function nI(t){return"function"==typeof
t||"object"==typeof t&&t instanceof
be}(i)&&Hd(i);u=h&&this.injectableDefInScope(h)?oo(fh(i),ka):null,this.records.set(i,u)}if(null!=u)return
this.hydrate(i,u)}return(n&xe.Self?rv():this.parent).get(i,e=n&xe.Optional&&e===ma?null:e)}catch(o){if("NullInjectorError"===o.name){if((o[uc]=o[uc]||[]).unshift(ft(i)),s)throw
o;return function RD(t,i,e,n){const s=t[uc];throw
i[E_]&&s.unshift(i[E_]),t.message=function
LD(t,i,e,n=null){t=t&&"\n"===t.charAt(0)&&"\u0275"==t.charAt(1)?t.substr(2):t;let
s=ft(i);if(Array.isArray(i))s=i.map(ft).join(" -> ");else
if("object"==
typeof i){let r=[];for(let o in i)if(i.hasOwnProperty(o)){let
u=i[o];r.push(o+":"+("string"==typeof
u?JSON.stringify(u):ft(u)))}s=`{${r.join(",
")}}`}return`${e}${n?"("+n+")":""}[${s}]:
${t.replace(DD,"\n
")}`}("\n"+t.message,s,e,n),t.ngTokenPath=s,t[uc]=null,t}(o,i,"R3InjectorError",this.source)}throw
o}finally{Rs(r),R_(s)}}_resolveInjectorDefTypes(){this.injectorDefTypes.forEach(i=>this.get(i))}toString(){const
i=[];return this.records.forEach((n,s)=>i.push(ft(s))),`R3Injector[${i.join(",
")}]`}assertNotDestroyed(){if(this._destroyed)throw new
re(205,!1)}processInjectorType(i,e,n){if(!(i=Ve(i)))return!1;let s=Bg(i);const
r=null==s&&i.ngModule||void 0,o=void 0===r?i:r,u=-1!==n.indexOf(o);if(void
0!==r&&(s=Bg(r)),null==s)return!1;if(null!=s.imports&&!u){let
y;n.push(o);try{Ji(s.imports,w=>{this.processInjectorType(w,e,n)&&(void
0===y&&(y=[]),y.push(w))})}finally{}if(void 0!==y)for(let
w=0;w<y.length;w++){const{ngModule:M,providers:E}=y[w];Ji(E,L=>this.processProvider(L,M,E||Tt))}}t
his.injectorDefTypes.add(o);const h=ar(o)||(()=>new
o);this.records.set(o,oo(h,ka));const b=s.providers;if(null!=b&&!u){const
y=i;Ji(b,w=>this.processProvider(w,y,b))}return void 0!==r&&void
0!==i.providers}processProvider(i,e,n){let s=ao(i=Ve(i))?i:Ve(i&&i.provide);const
r=function Jk(t,i,e){return cv(t)?oo(void
0,t.useValue):oo(lv(t),ka)}(i);if(ao(i)||!0!==i.multi)this.records.get(s);else{let
o=this.records.get(s);o||(o=oo(void
0,ka,!0),o.factory=()=>Cp(o.multi),this.records.set(s,o)),s=i,o.multi.push(i)}this.records.set(s,r)}hydrate(i,e){return
e.value===ka&&(e.value=Wk,e.value=e.factory()),"object"==typeof
e.value&&e.value&&function tI(t){return
null!==t&&"object"==typeof t&&"function"==typeof
t.ngOnDestroy}(e.value)&&this.onDestroy.add(e.value),e.value}injectableDefInScope(i){if(!i.providedIn)return!1;const
e=Ve(i.providedIn);return"string"==typeof
e?"any"===e||e===this.scope:this.injectorDefTypes.has(e)}}function fh(t){const
i=Hd(t),e=null!==i?i.factory:ar(t);if(null!==e)retur
n e;if(t instanceof be)throw new re(204,!1);if(t instanceof Function)return function
Qk(t){const i=t.length;if(i>0)throw ha(i,"?"),new re(204,!1);const e=function
px(t){const i=t&&(t[Gl]||t[Hg]);if(i){const e=function
hx(t){if(t.hasOwnProperty("name"))return t.name;const
i=(""+t).match(/^function\s*([^\s(]+)/);return
null===i?"":i[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.`),i}return null}(t);return
null!==e?()=>e.factory(t):()=>new t}(t);throw new re(204,!1)}function lv(t,i,e){let
n;if(ao(t)){const s=Ve(t);return ar(s)||fh(s)}if(cv(t))n=()=>Ve(t.useValue);else
if(function
Zk(t){return!(!t||!t.useFactory)}(t))n=()=>t.useFactory(...Cp(t.deps||[]));else
if(function Yk(t){return!(!t||!t.useExisting)}(t))n=()=>K(Ve(t.useExisting));else{const
s=Ve(t&&(t.useClass||t.provide));if(!fu
nction eI(t){return!!t.deps}(t))return ar(s)||fh(s);n=()=>new s(...Cp(t.deps))}return
n}function oo(t,i,e=!1){return{factory:t,value:i,multi:e?[]:void 0}}function cv(t){return
null!==t&&"object"==typeof t&&kD in t}function
ao(t){return"function"==typeof t}let En=(()=>{class t{static create(e,n){var
s;if(Array.isArray(e))return ov({name:""},n,e,"");{const
r=null!==(s=e.name)&&void 0!==s?s:"";return
ov({name:r},e.parent,e.providers,r)}}}return t.THROW_IF_NOT_FOUND=ma,t.NULL=new
sv,t.\u0275prov=X({token:t,providedIn:"any",factory:()=>K(ph)}),t.__NG_ELEMENT_ID__=-1,t})();function
uI(t,i){Xl(Tp(t)[1],rn())}function ut(t){let i=function yv(t){return
Object.getPrototypeOf(t.prototype).constructor}(t.type),e=!0;const n=[t];for(;i;){let
s;if(Ri(t))s=i.\u0275cmp||i.\u0275dir;else{if(i.\u0275cmp)throw new
re(903,"");s=i.\u0275dir}if(s){if(e){n.push(s);const
o=t;o.inputs=bh(t.inputs),o.declaredInputs=bh(t.declaredInputs),o.outputs=bh(t.outputs);const
u=s.hostBindings;u&&mI(t,u);const h=s.viewQu
ery,b=s.contentQueries;if(h&&pI(t,h),b&&hI(t,b),Nd(t.inputs,s.inputs),Nd(t.declaredInputs,s.declaredInputs),Nd(t.outputs,s.outputs),Ri(s)&&s.data.animation){const
y=t.data;y.animation=(y.animation||[]).concat(s.data.animation)}}const
r=s.features;if(r)for(let o=0;o<r.length;o++){const
u=r[o];u&&u.ngInherit&&u(t),u===ut&&(e=!1)}}i=Object.getPrototypeOf(i)}!function
dI(t){let i=0,e=null;for(let n=t.length-1;n>=0;n--){const
s=t[n];s.hostVars=i+=s.hostVars,s.hostAttrs=ic(s.hostAttrs,e=ic(e,s.hostAttrs))}}(n)}function
bh(t){return t===Br?{}:t===Tt?[]:t}function pI(t,i){const
e=t.viewQuery;t.viewQuery=e?(n,s)=>{i(n,s),e(n,s)}:i}function hI(t,i){const
e=t.contentQueries;t.contentQueries=e?(n,s,r)=>{i(n,s,r),e(n,s,r)}:i}function
mI(t,i){const e=t.hostBindings;t.hostBindings=e?(n,s)=>{i(n,s),e(n,s)}:i}let
Dc=null;function lo(){if(!Dc){const
t=vt.Symbol;if(t&&t.iterator)Dc=t.iterator;else{const
i=Object.getOwnPropertyNames(Map.prototype);for(let e=0;e<i.length;++e){const
n=i[e];"entries"!==n&
&"size"!==n&&Map.prototype[n]===Map.prototype.entries&&(Dc=n)}}}return
Dc}function Ia(t){return!!vh(t)&&(Array.isArray(t)||!(t instanceof
Map)&&lo()in t)}function vh(t){return
null!==t&&("function"==typeof t||"object"==typeof t)}function
es(t,i,e){return t[i]=e}function Ea(t,i){return t[i]}function
Rn(t,i,e){return!Object.is(t[i],e)&&(t[i]=e,!0)}function ur(t,i,e,n){const
s=Rn(t,i,e);return Rn(t,i+1,n)||s}function Mc(t,i,e,n,s){const r=ur(t,i,e,n);return
Rn(t,i+2,s)||r}function gi(t,i,e,n,s,r){const o=ur(t,i,e,n);return
ur(t,i+2,s,r)||o}function ie(t,i,e,n){const s=$();return
Rn(s,jr(),i)&&(tt(),Xi(Vt(),s,t,i,e,n)),ie}function uo(t,i,e,n){return
Rn(t,jr(),e)?i+Ie(e)+n:Re}function po(t,i,e,n,s,r){const u=ur(t,hs(),e,s);return
ms(2),u?i+Ie(e)+n+Ie(s)+r:Re}function _(t,i,e,n,s,r,o,u){const
h=$(),b=tt(),y=t+20,w=b.firstCreatePass?function yI(t,i,e,n,s,r,o,u,h){const
b=i.consts,y=io(i,t,4,o||null,As(b,u));rh(i,e,y,As(b,h)),Xl(i,y);const
w=y.tViews=Tc(2,y,n,s,r,i.directiveRegistry,i.pipeR
egistry,null,i.schemas,b);return
null!==i.queries&&(i.queries.template(i,y),w.queries=i.queries.embeddedTView(y)),y}(y,b,h,i,e,n,s,r,o):b.data[y];Qi(w,!1);const
M=h[11].createComment("");mc(b,h,M,w),In(M,h),Sc(h,h[y]=Yb(M,h,M,w)),Kl(w)&&ih(b,h,w),null!=o&&sh(h,w,u)}function
F(t){return zr(function jx(){return Ee.lFrame.contextLView}(),20+t)}function
D(t,i=xe.Default){const e=$();return null===e?K(t,i):C_(rn(),e,Ve(t),i)}function
Sh(){throw new Error("invalid")}function p(t,i,e){const n=$();return
Rn(n,jr(),i)&&ii(tt(),Vt(),n,t,i,n[11],e,!1),p}function xh(t,i,e,n,s){const
o=s?"class":"style";iv(t,e,i.inputs[o],o,n)}function l(t,i,e,n){const
s=$(),r=tt(),o=20+t,u=s[11],h=s[o]=Ip(u,i,function tD(){return
Ee.lFrame.currentNamespace}()),b=r.firstCreatePass?function GI(t,i,e,n,s,r,o){const
u=i.consts,b=io(i,t,2,s,As(u,r));return
rh(i,e,b,As(u,o)),null!==b.attrs&&xc(b,b.attrs,!1),null!==b.mergedAttrs&&xc(b,b.mergedAttrs,!0),null!==i.queries&&i.queries.elementStart(i,b),b}(o,r,s,0,i,e,n):r.
data[o];Qi(b,!0);const y=b.mergedAttrs;null!==y&&nc(u,h,y);const
w=b.classes;null!==w&&Fp(u,h,w);const M=b.styles;return
null!==M&&ab(u,h,M),64!=(64&b.flags)&&mc(r,s,h,b),0===function
Hx(){return Ee.lFrame.elementDepthCount}()&&In(h,s),function
qx(){Ee.lFrame.elementDepthCount++}(),Kl(b)&&(ih(r,s,b),Bb(r,b,s)),null!==n&&sh(s,b),l}function
c(){let t=rn();ip()?sp():(t=t.parent,Qi(t,!1));const i=t;!function
Gx(){Ee.lFrame.elementDepthCount--}();const e=tt();return
e.firstCreatePass&&(Xl(e,t),Wd(t)&&e.queries.elementEnd(t)),null!=i.classesWithoutHost&&function
oD(t){return
0!=(16&t.flags)}(i)&&xh(e,i,$(),i.classesWithoutHost,!0),null!=i.stylesWithoutHost&&function
aD(t){return
0!=(32&t.flags)}(i)&&xh(e,i,$(),i.stylesWithoutHost,!1),c}function
k(t,i,e,n){return l(t,i,e,n),c(),k}function de(t,i,e){const
n=$(),s=tt(),r=t+20,o=s.firstCreatePass?function UI(t,i,e,n,s){const
r=i.consts,o=As(r,n),u=io(i,t,8,"ng-container",o);return
null!==o&&xc(u,o,!0),rh(i,e,u,As(r,s)),null!==i.queries&&i.que
ries.elementStart(i,u),u}(r,s,n,i,e):s.data[r];Qi(o,!0);const
u=n[r]=n[11].createComment("");return
mc(s,n,u,o),In(u,n),Kl(o)&&(ih(s,n,o),Bb(s,o,n)),null!=e&&sh(n,o),de}function
pe(){let t=rn();const i=tt();return
ip()?sp():(t=t.parent,Qi(t,!1)),i.firstCreatePass&&(Xl(i,t),Wd(t)&&i.queries.elementEnd(t)),pe}function
Y(t,i,e){return de(t,i,e),pe(),Y}function I(){return $()}function
Ra(t){return!!t&&"function"==typeof t.then}function
qv(t){return!!t&&"function"==typeof t.subscribe}const Dh=qv;function
C(t,i,e,n){const s=$(),r=tt(),o=rn();return function Uv(t,i,e,n,s,r,o,u){const
h=Kl(n),y=t.firstCreatePass&&ev(t),w=i[8],M=Xb(i);let
E=!0;if(3&n.type||u){const
N=Zn(n,i),G=u?u(N):N,P=M.length,J=u?se=>u(Yt(se[n.index])):n.index;if($t(e)){let
se=null;if(!u&&h&&(se=function zI(t,i,e,n){const
s=t.cleanup;if(null!=s)for(let r=0;r<s.length-1;r+=2){const
o=s[r];if(o===e&&s[r+1]===n){const u=i[7],h=s[r+2];return
u.length>h?u[h]:null}"string"==typeof o&&(r+=2)}return
null}(t,i,s,n.index)),null!==
se)(se.__ngLastListenerFn__||se).__ngNextListenerFn__=r,se.__ngLastListenerFn__=r,E=!1;else{r=Mh(n,i,w,r,!1);const
ke=e.listen(G,s,r);M.push(r,ke),y&&y.push(s,J,P,P+1)}}else
r=Mh(n,i,w,r,!0),G.addEventListener(s,r,o),M.push(r),y&&y.push(s,J,P,o)}else
r=Mh(n,i,w,r,!1);const L=n.outputs;let O;if(E&&null!==L&&(O=L[s])){const
N=O.length;if(N)for(let G=0;G<N;G+=2){const
mt=i[O[G]][O[G+1]].subscribe(r),Ct=M.length;M.push(r,mt),y&&y.push(s,n.index,Ct,-(Ct+1))}}}(r,s,s[11],o,t,i,!!e,n),C}function
zv(t,i,e,n){try{return!1!==e(n)}catch(s){return nv(t,s),!1}}function Mh(t,i,e,n,s){return
function r(o){if(o===Function)return n;const
u=2&t.flags?Xn(t.index,i):i;0==(32&i[2])&&lh(u);let
h=zv(i,0,n,o),b=r.__ngNextListenerFn__;for(;b;)h=zv(i,0,b,o)&&h,b=b.__ngNextListenerFn__;return
s&&!1===h&&(o.preventDefault(),o.returnValue=!1),h}}function d(t=1){return
function Jx(t){return(Ee.lFrame.contextLView=function
Yx(t,i){for(;t>0;)i=i[15],t--;return i}(t,Ee.lFrame.contextLView))[8]}(t)}function
jI(t,i){
let e=null;const n=function tk(t){const i=t.attrs;if(null!=i){const
e=i.indexOf(5);if(0==(1&e))return i[e+1]}return null}(t);for(let
s=0;s<i.length;s++){const
r=i[s];if("*"!==r){if(null===n?Sb(t,r,!0):sk(n,r))return s}else e=s}return
e}function Sn(t){const i=$()[16][6];if(!i.projection){const
n=i.projection=ha(t?t.length:1,null),s=n.slice();let r=i.child;for(;null!==r;){const
o=t?jI(r,t):0;null!==o&&(s[o]?s[o].projectionNext=r:n[o]=r,s[o]=r),r=r.next}}}function
St(t,i=0,e){const
n=$(),s=tt(),r=io(s,20+t,16,null,e||null);null===r.projection&&(r.projection=i),sp(),64!=(64&r.flags)&&function
cM(t,i,e){ob(i[11],0,i,e,Y_(t,e,i),tb(e.parent||i[6],e,i))}(s,n,r)}function
x(t,i,e){return Bn(t,"",i,"",e),x}function Bn(t,i,e,n,s){const
r=$(),o=uo(r,i,e,n);return o!==Re&&ii(tt(),Vt(),r,t,o,r[11],s,!1),Bn}function
La(t,i,e,n,s,r,o){const u=$(),h=po(u,i,e,n,s,r);return
h!==Re&&ii(tt(),Vt(),u,t,h,u[11],o,!1),La}function Zv(t,i,e,n,s){const
r=t[e+1],o=null===i;let u=n?Oi(r):fs(r),h=!1;for(;0!==u&&(
!1===h||o);){const
y=t[u+1];KI(t[u],i)&&(h=!0,t[u+1]=n?Wp(y):jp(y)),u=n?Oi(y):fs(y)}h&&(t[e+1]=n?jp(r):Wp(r))}function
KI(t,i){return
null===t||null==i||(Array.isArray(t)?t[1]:t)===i||!(!Array.isArray(t)||"string"!=typeof
i)&&Xr(t,i)>=0}const cn={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function
Xv(t){return t.substring(cn.key,cn.keyEnd)}function QI(t){return
t.substring(cn.value,cn.valueEnd)}function e1(t,i){const e=cn.textEnd;return
e===i?-1:(i=cn.keyEnd=function
ZI(t,i,e){for(;i<e&&t.charCodeAt(i)>32;)i++;return
i}(t,cn.key=i,e),Co(t,i,e))}function t1(t,i){const e=cn.textEnd;let
n=cn.key=Co(t,i,e);return e===n?-1:(n=cn.keyEnd=function XI(t,i,e){let
n;for(;i<e&&(45===(n=t.charCodeAt(i))||95===n||(-33&n)>=65&&(-33&n)<=90||n>=48&&n<=57);)i++;return
i}(t,n,e),n=s1(t,n,e),n=cn.value=Co(t,n,e),n=cn.valueEnd=function e3(t,i,e){let
n=-1,s=-1,r=-1,o=i,u=o;for(;o<e;){const h=t.charCodeAt(o++);if(59===h)return
u;34===h||39===h?u=o=r1(t,h,o,e):i===o-4&&85===r&&82===s&&76===n&&40===h?u=o=
r1(t,41,o,e):h>32&&(u=o),r=s,s=n,n=-33&h}return
u}(t,n,e),s1(t,n,e))}function
n1(t){cn.key=0,cn.keyEnd=0,cn.value=0,cn.valueEnd=0,cn.textEnd=t.length}function
Co(t,i,e){for(;i<e&&t.charCodeAt(i)<=32;)i++;return i}function
s1(t,i,e,n){return(i=Co(t,i,e))<e&&i++,i}function r1(t,i,e,n){let
s=-1,r=e;for(;r<n;){const o=t.charCodeAt(r++);if(o==i&&92!==s)return
r;s=92==o&&92===s?0:o}throw new Error}function _i(t,i,e){return
Pi(t,i,e,!1),_i}function si(t,i){return Pi(t,i,null,!0),si}function
q(t){Fi(l1,t3,t,!1)}function t3(t,i){for(let e=function YI(t){return
n1(t),t1(t,Co(t,0,cn.textEnd))}(i);e>=0;e=t1(i,e))l1(t,Xv(i),QI(i))}function
me(t){Fi(ei,ts,t,!0)}function ts(t,i){for(let e=function JI(t){return
n1(t),e1(t,Co(t,0,cn.textEnd))}(i);e>=0;e=e1(i,e))ei(t,Xv(i),!0)}function
Pi(t,i,e,n){const
s=$(),r=tt(),o=ms(2);r.firstUpdatePass&&a1(r,t,o,n),i!==Re&&Rn(s,o,i)&&c1(r,r.data[Nn()],s,s[11],t,s[o+1]=function
c3(t,i){return null==t||("string"==typeof i?t+=i:"object"==typeof
t&&(t=ft(Vs(t)))),t
}(i,e),n,o)}function Fi(t,i,e,n){const
s=tt(),r=ms(2);s.firstUpdatePass&&a1(s,null,r,n);const
o=$();if(e!==Re&&Rn(o,r,e)){const u=s.data[Nn()];if(d1(u,n)&&!o1(s,r)){let
h=n?u.classesWithoutHost:u.stylesWithoutHost;null!==h&&(e=Vd(h,e||"")),xh(s,u,o,e,n)}else!function
l3(t,i,e,n,s,r,o,u){s===Re&&(s=Tt);let
h=0,b=0,y=0<s.length?s[0]:null,w=0<r.length?r[0]:null;for(;null!==y||null!==w;){const
M=h<s.length?s[h+1]:void 0,E=b<r.length?r[b+1]:void 0;let
O,L=null;y===w?(h+=2,b+=2,M!==E&&(L=w,O=E)):null===w||null!==y&&y<w?(h+=2,L=y):(b+=2,L=w,O=E),null!==L&&c1(t,i,e,n,L,O,o,u),y=h<s.length?s[h]:null,w=b<r.length?r[b]:null}}(s,u,o,o[11],o[r+1],o[r+1]=function
a3(t,i,e){if(null==e||""===e)return Tt;const
n=[],s=Vs(e);if(Array.isArray(s))for(let r=0;r<s.length;r++)t(n,s[r],!0);else
if("object"==typeof s)for(const r in
s)s.hasOwnProperty(r)&&t(n,r,s[r]);else"string"==typeof
s&&i(n,s);return n}(t,i,e),n,r)}}function o1(t,i){return
i>=t.expandoStartIndex}function a1(t,i,e,n){const s=t.data;if(null
===s[e+1]){const
r=s[Nn()],o=o1(t,e);d1(r,n)&&null===i&&!o&&(i=!1),i=function
n3(t,i,e,n){const s=function op(t){const
i=Ee.lFrame.currentDirectiveIndex;return-1===i?null:t[i]}(t);let
r=n?i.residualClasses:i.residualStyles;if(null===s)0===(n?i.classBindings:i.styleBindings)&&(e=Oa(e=kh(null,t,i,e,n),i.attrs,n),r=null);else{const
o=i.directiveStylingLast;if(-1===o||t[o]!==s)if(e=kh(s,t,i,e,n),null===r){let h=function
s3(t,i,e){const n=e?i.classBindings:i.styleBindings;if(0!==fs(n))return
t[Oi(n)]}(t,i,n);void
0!==h&&Array.isArray(h)&&(h=kh(null,t,i,h[1],n),h=Oa(h,i.attrs,n),function
r3(t,i,e,n){t[Oi(e?i.classBindings:i.styleBindings)]=n}(t,i,n,h))}else r=function
o3(t,i,e){let n;const s=i.directiveEnd;for(let
r=1+i.directiveStylingLast;r<s;r++)n=Oa(n,t[r].hostAttrs,e);return
Oa(n,i.attrs,e)}(t,i,n)}return void
0!==r&&(n?i.residualClasses=r:i.residualStyles=r),e}(s,r,i,n),function
$I(t,i,e,n,s,r){let o=r?i.classBindings:i.styleBindings,u=Oi(o),h=fs(o);t[n]=e;let
y,b=!1;if(Array.isArra
y(e)){const w=e;y=w[1],(null===y||Xr(w,y)>0)&&(b=!0)}else
y=e;if(s)if(0!==h){const
M=Oi(t[u+1]);t[n+1]=Cc(M,u),0!==M&&(t[M+1]=$p(t[M+1],n)),t[u+1]=function
lk(t,i){return 131071&t|i<<17}(t[u+1],n)}else
t[n+1]=Cc(u,0),0!==u&&(t[u+1]=$p(t[u+1],n)),u=n;else
t[n+1]=Cc(h,0),0===u?u=n:t[h+1]=$p(t[h+1],n),h=n;b&&(t[n+1]=jp(t[n+1])),Zv(t,y,n,!0),Zv(t,y,n,!1),function
WI(t,i,e,n,s){const
r=s?t.residualClasses:t.residualStyles;null!=r&&"string"==typeof
i&&Xr(r,i)>=0&&(e[n+1]=Wp(e[n+1]))}(i,y,t,n,r),o=Cc(u,h),r?i.classBindings=o:i.styleBindings=o}(s,r,i,e,o,n)}}function
kh(t,i,e,n,s){let r=null;const o=e.directiveEnd;let
u=e.directiveStylingLast;for(-1===u?u=e.directiveStart:u++;u<o&&(r=i[u],n=Oa(n,r.hostAttrs,s),r!==t);)u++;return
null!==t&&(e.directiveStylingLast=u),n}function Oa(t,i,e){const n=e?1:2;let
s=-1;if(null!==i)for(let r=0;r<i.length;r++){const o=i[r];"number"==typeof
o?s=o:s===n&&(Array.isArray(t)||(t=void
0===t?[]:["",t]),ei(t,o,!!e||i[++r]))}return void 0===t?null:t}function l1(
t,i,e){ei(t,i,Vs(e))}function c1(t,i,e,n,s,r,o,u){if(!(3&i.type))return;const
h=t.data,b=h[u+1];Ic(function Ib(t){return 1==(1&t)}(b)?u1(h,i,e,s,fs(b),o):void
0)||(Ic(r)||function kb(t){return
2==(2&t)}(b)&&(r=u1(h,null,e,s,u,o)),function dM(t,i,e,n,s){const
r=$t(t);if(i)s?r?t.addClass(e,n):e.classList.add(n):r?t.removeClass(e,n):e.classList.remove(n);else{let
o=-1===n.indexOf("-")?void
0:ti.DashCase;if(null==s)r?t.removeStyle(e,n,o):e.style.removeProperty(n);else{const
u="string"==typeof
s&&s.endsWith("!important");u&&(s=s.slice(0,-10),o|=ti.Important),r?t.setStyle(e,n,s,o):e.style.setProperty(n,s,u?"important":"")}}}(n,o,Ql(Nn(),e),s,r))}function
u1(t,i,e,n,s,r){const o=null===i;let u;for(;s>0;){const
h=t[s],b=Array.isArray(h),y=b?h[1]:h,w=null===y;let M=e[s+1];M===Re&&(M=w?Tt:void
0);let E=w?_p(M,n):y===n?M:void
0;if(b&&!Ic(E)&&(E=_p(h,n)),Ic(E)&&(u=E,o))return u;const
L=t[s+1];s=o?Oi(L):fs(L)}if(null!==i){let
h=r?i.residualClasses:i.residualStyles;null!=h&&(u=_p(h,n))}return u}f
unction Ic(t){return void 0!==t}function d1(t,i){return
0!=(t.flags&(i?16:32))}function g(t,i=""){const
e=$(),n=tt(),s=t+20,r=n.firstCreatePass?io(n,s,1,i,null):n.data[s],o=e[s]=function
kp(t,i){return
$t(t)?t.createText(i):t.createTextNode(i)}(e[11],i);mc(n,e,o,r),Qi(r,!1)}function
S(t){return T("",t,""),S}function T(t,i,e){const
n=$(),s=uo(n,t,i,e);return s!==Re&&gs(n,Nn(),s),T}function We(t,i,e,n,s){const
r=$(),o=po(r,t,i,e,n,s);return o!==Re&&gs(r,Nn(),o),We}function
yo(t,i,e,n,s,r,o){const u=$(),h=function ho(t,i,e,n,s,r,o,u){const
b=Mc(t,hs(),e,s,o);return ms(3),b?i+Ie(e)+n+Ie(s)+r+Ie(o)+u:Re}(u,t,i,e,n,s,r,o);return
h!==Re&&gs(u,Nn(),h),yo}function Ec(t,i,e,n,s,r,o,u,h){const b=$(),y=function
mo(t,i,e,n,s,r,o,u,h,b){const w=gi(t,hs(),e,s,o,h);return
ms(4),w?i+Ie(e)+n+Ie(s)+r+Ie(o)+u+Ie(h)+b:Re}(b,t,i,e,n,s,r,o,u,h);return
y!==Re&&gs(b,Nn(),y),Ec}function Ih(t,i,e,n,s,r,o,u,h,b,y){const w=$(),M=function
fo(t,i,e,n,s,r,o,u,h,b,y,w){const M=hs();let E=gi(t,M,e,s,o,h);return E=Rn
(t,M+4,y)||E,ms(5),E?i+Ie(e)+n+Ie(s)+r+Ie(o)+u+Ie(h)+b+Ie(y)+w:Re}(w,t,i,e,n,s,r,o,u,h,b,y);return
M!==Re&&gs(w,Nn(),M),Ih}function Eh(t,i,e,n,s,r,o,u,h,b,y,w,M){const
E=$(),L=function go(t,i,e,n,s,r,o,u,h,b,y,w,M,E){const L=hs();let O=gi(t,L,e,s,o,h);return
O=ur(t,L+4,y,M)||O,ms(6),O?i+Ie(e)+n+Ie(s)+r+Ie(o)+u+Ie(h)+b+Ie(y)+w+Ie(M)+E:Re}(E,t,i,e,n,s,r,o,u,h,b,y,w,M);return
L!==Re&&gs(E,Nn(),L),Eh}const dr=void 0;var
I3=["en",[["a","p"],["AM","PM"],dr],[["AM","PM"],dr,dr],[["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"]],dr,[["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"]],dr,[["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}",dr,"{1} 'at'
{0}",dr],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US
Dollar",{},"ltr",function k3(t){const
e=Math.floor(Math.abs(t)),n=t.toString().replace(/^[^.]*\.?/,"").length;return
1===e&&0===n?1:5}];let wo={};function Hn(t){const i=function E3(t){return
t.toLowerCase().replace(/_/g,"-")}(t);let e=M1(i);if(e)return e;const
n=i.split("-")[0];if(e=M1(n),e)return e;if("en"===n)return I3;throw
new Error(`Missing locale data for the locale "${t}".`)}function M1(t){return t
in
wo||(wo[t]=vt.ng&&vt.ng.common&&vt.ng.common.locales&&vt.ng.common.locales[t]),wo[t]}var
te=(()=>((te=te||{})[te.LocaleId=0]="LocaleId",te[te.DayPeriodsFormat=1]="DayPeriodsFormat",te[te.DayPeriodsStandalone=2]="DayPeriodsStandalone",te[te.DaysFormat=3]="DaysFormat",te[te.DaysStandalone=4]="DaysStandalone",te[te.MonthsFormat=5]="MonthsFormat",te[t
e.MonthsStandalone=6]="MonthsStandalone",te[te.Eras=7]="Eras",te[te.FirstDayOfWeek=8]="FirstDayOfWeek",te[te.WeekendRange=9]="WeekendRange",te[te.DateFormat=10]="DateFormat",te[te.TimeFormat=11]="TimeFormat",te[te.DateTimeFormat=12]="DateTimeFormat",te[te.NumberSymbols=13]="NumberSymbols",te[te.NumberFormats=14]="NumberFormats",te[te.CurrencyCode=15]="CurrencyCode",te[te.CurrencySymbol=16]="CurrencySymbol",te[te.CurrencyName=17]="CurrencyName",te[te.Currencies=18]="Currencies",te[te.Directionality=19]="Directionality",te[te.PluralCase=20]="PluralCase",te[te.ExtraData=21]="ExtraData",te))();const
Rc="en-US";let k1=Rc;function Oh(t,i,e,n,s){if(t=Ve(t),Array.isArray(t))for(let
r=0;r<t.length;r++)Oh(t[r],i,e,n,s);else{const r=tt(),o=$();let
u=ao(t)?t:Ve(t.provide),h=lv(t);const
b=rn(),y=1048575&b.providerIndexes,w=b.directiveStart,M=b.providerIndexes>>20;if(ao(t)||!t.multi){const
E=new
oa(h,s,D),L=Ph(u,i,s?y:y+M,w);-1===L?(oc(la(b,o),r,u),Ah(r,t,i.length),i.push(u),b.directiveStart++,b.
directiveEnd++,s&&(b.providerIndexes+=1048576),e.push(E),o.push(E)):(e[L]=E,o[L]=E)}else{const
E=Ph(u,i,y+M,w),L=Ph(u,i,y,y+M),O=E>=0&&e[E],N=L>=0&&e[L];if(s&&!N||!s&&!O){oc(la(b,o),r,u);const
G=function kE(t,i,e,n,s){const r=new oa(t,e,D);return
r.multi=[],r.index=i,r.componentProviders=0,Z1(r,s,n&&!e),r}(s?ME:DE,e.length,s,n,h);!s&&N&&(e[L].providerFactory=G),Ah(r,t,i.length,0),i.push(u),b.directiveStart++,b.directiveEnd++,s&&(b.providerIndexes+=1048576),e.push(G),o.push(G)}else
Ah(r,t,E>-1?E:L,Z1(e[s?L:E],h,!s&&n));!s&&n&&N&&e[L].componentProviders++}}}function
Ah(t,i,e,n){const s=ao(i),r=function Xk(t){return!!t.useClass}(i);if(s||r){const
h=(r?Ve(i.useClass):i).prototype.ngOnDestroy;if(h){const
b=t.destroyHooks||(t.destroyHooks=[]);if(!s&&i.multi){const
y=b.indexOf(e);-1===y?b.push(e,[n,h]):b[y+1].push(n,h)}else b.push(e,h)}}}function
Z1(t,i,e){return e&&t.componentProviders++,t.multi.push(i)-1}function
Ph(t,i,e,n){for(let s=e;s<n;s++)if(i[s]===t)return s;return-1}function DE(t
,i,e,n){return Fh(this.multi,[])}function ME(t,i,e,n){const s=this.multi;let
r;if(this.providerFactory){const
o=this.providerFactory.componentProviders,u=ca(e,e[1],this.providerFactory.index,n);r=u.slice(0,o),Fh(s,r);for(let
h=o;h<u.length;h++)r.push(u[h])}else r=[],Fh(s,r);return r}function Fh(t,i){for(let
e=0;e<t.length;e++)i.push((0,t[e])());return i}function Pe(t,i=[]){return
e=>{e.providersResolver=(n,s)=>function xE(t,i,e){const
n=tt();if(n.firstCreatePass){const
s=Ri(t);Oh(e,n.data,n.blueprint,s,!0),Oh(i,n.data,n.blueprint,s,!1)}}(n,s?s(t):t,i)}}class
X1{}class RE{resolveComponentFactory(i){throw function EE(t){const i=Error(`No component
factory found for ${ft(t)}. Did you add it to @NgModule.entryComponents?`);return
i.ngComponent=t,i}(i)}}let Va=(()=>{class t{}return t.NULL=new RE,t})();function
LE(){return So(rn(),$())}function So(t,i){return new De(Zn(t,i))}let De=(()=>{class
t{constructor(e){this.nativeElement=e}}return t.__NG_ELEMENT_ID__=LE,t})();function
OE(t){return
t instanceof De?t.nativeElement:t}class Ba{}let gn=(()=>{class t{}return
t.__NG_ELEMENT_ID__=()=>function PE(){const t=$(),e=Xn(rn().index,t);return function
AE(t){return t[11]}(Ki(e)?e:t)}(),t})(),FE=(()=>{class t{}return
t.\u0275prov=X({token:t,providedIn:"root",factory:()=>null}),t})();class
Ha{constructor(i){this.full=i,this.major=i.split(".")[0],this.minor=i.split(".")[1],this.patch=i.split(".").slice(2).join(".")}}const
NE=new Ha("13.3.12"),Nh={};function Fc(t,i,e,n,s=!1){for(;null!==e;){const
r=i[e.index];if(null!==r&&n.push(Yt(r)),Ei(r))for(let
u=10;u<r.length;u++){const
h=r[u],b=h[1].firstChild;null!==b&&Fc(h[1],h,b,n)}const
o=e.type;if(8&o)Fc(t,i,e.child,n);else if(32&o){const u=xp(e,i);let
h;for(;h=u();)n.push(h)}else if(16&o){const
u=rb(i,e);if(Array.isArray(u))n.push(...u);else{const
h=Ca(i[16]);Fc(h[1],h,u,n,!0)}}e=s?e.projectionNext:e.next}return n}class
qa{constructor(i,e){this._lView=i,this._cdRefInjectingView=e,this._appRef=null,this._attachedToViewContainer=!1}ge
t rootNodes(){const i=this._lView,e=i[1];return Fc(e,i,e.firstChild,[])}get
context(){return this._lView[8]}set context(i){this._lView[8]=i}get destroyed(){return
256==(256&this._lView[2])}destroy(){if(this._appRef)this._appRef.detachView(this);else
if(this._attachedToViewContainer){const i=this._lView[3];if(Ei(i)){const
e=i[8],n=e?e.indexOf(this):-1;n>-1&&(Ep(i,n),lc(e,n))}this._attachedToViewContainer=!1}J_(this._lView[1],this._lView)}onDestroy(i){Ub(this._lView[1],this._lView,null,i)}markForCheck(){lh(this._cdRefInjectingView||this._lView)}detach(){this._lView[2]&=-129}reattach(){this._lView[2]|=128}detectChanges(){!function
uh(t,i,e){const n=i[10];n.begin&&n.begin();try{ro(t,i,t.template,e)}catch(s){throw
nv(i,s),s}finally{n.end&&n.end()}}(this._lView[1],this._lView,this.context)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw
new
re(902,"");this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null,function
tM(t,i){ya(t,i,i[11],2,null,null)}(this._
lView[1],this._lView)}attachToAppRef(i){if(this._attachedToViewContainer)throw new
re(902,"");this._appRef=i}}class VE extends
qa{constructor(i){super(i),this._view=i}detectChanges(){Zb(this._view)}checkNoChanges(){}get
context(){return null}}class tC extends
Va{constructor(i){super(),this.ngModule=i}resolveComponentFactory(i){const e=Tn(i);return
new Vh(e,this.ngModule)}}function nC(t){const i=[];for(let e in
t)t.hasOwnProperty(e)&&i.push({propName:t[e],templateName:e});return i}class Vh
extends
X1{constructor(i,e){super(),this.componentDef=i,this.ngModule=e,this.componentType=i.type,this.selector=function
ok(t){return
t.map(rk).join(",")}(i.selectors),this.ngContentSelectors=i.ngContentSelectors?i.ngContentSelectors:[],this.isBoundToModule=!!e}get
inputs(){return nC(this.componentDef.inputs)}get outputs(){return
nC(this.componentDef.outputs)}create(i,e,n,s){const r=(s=s||this.ngModule)?function
HE(t,i){return{get:(e,n,s)=>{const r=t.get(e,Nh,s);return
r!==Nh||n===Nh?r:i.get(e,n,s)
}}}(i,s.injector):i,o=r.get(Ba,Yg),u=r.get(FE,null),h=o.createRenderer(null,this.componentDef),b=this.componentDef.selectors[0][0]||"div",y=n?function
Gb(t,i,e){if($t(t))return t.selectRootElement(i,e===ki.ShadowDom);let
n="string"==typeof i?t.querySelector(i):i;return
n.textContent="",n}(h,n,this.componentDef.encapsulation):Ip(o.createRenderer(null,this.componentDef),b,function
BE(t){const
i=t.toLowerCase();return"svg"===i?"svg":"math"===i?"math":null}(b)),w=this.componentDef.onPush?576:528,M=function
Cv(t,i){return{components:[],scheduler:t||KM,clean:zk,playerHandler:i||null,flags:0}}(),E=Tc(0,null,null,1,0,null,null,null,null,null),L=Da(null,E,M,w,null,null,o,h,u,r);let
O,N;Yl(L);try{const G=function bv(t,i,e,n,s,r){const o=e[1];e[20]=t;const
h=io(o,20,2,"#host",null),b=h.mergedAttrs=i.hostAttrs;null!==b&&(xc(h,b,!0),null!==t&&(nc(s,t,b),null!==h.classes&&Fp(s,t,h.classes),null!==h.styles&&ab(s,t,h.styles)));const
y=n.createRenderer(t,i),w=Da(e,Hb(i),null,i.onPush?64:16,e[20],h,n
,y,r||null,null);return
o.firstCreatePass&&(oc(la(h,e),o,i.type),Kb(o,h),Qb(h,e.length,1)),Sc(e,w),e[20]=w}(y,this.componentDef,L,o,h);if(y)if(n)nc(h,y,["ng-version",NE.full]);else{const{attrs:P,classes:J}=function
ak(t){const i=[],e=[];let n=1,s=2;for(;n<t.length;){let
r=t[n];if("string"==typeof
r)2===s?""!==r&&i.push(r,t[++n]):8===s&&e.push(r);else{if(!Li(s))break;s=r}n++}return{attrs:i,classes:e}}(this.componentDef.selectors[0]);P&&nc(h,y,P),J&&J.length>0&&Fp(h,y,J.join("
"))}if(N=ep(E,20),void 0!==e){const P=N.projection=[];for(let
J=0;J<this.ngContentSelectors.length;J++){const
se=e[J];P.push(null!=se?Array.from(se):null)}}O=function vv(t,i,e,n,s){const
r=e[1],o=function kk(t,i,e){const
n=rn();t.firstCreatePass&&(e.providersResolver&&e.providersResolver(e),Jb(t,n,i,so(t,i,1,null),e));const
s=ca(i,t,n.directiveStart,n);In(s,i);const r=Zn(n,i);return
r&&In(r,i),s}(r,e,i);if(n.components.push(o),t[8]=o,s&&s.forEach(h=>h(o,i)),i.contentQueries){const
h=rn();i.contentQueries(1,o,h.d
irectiveStart)}const
u=rn();return!r.firstCreatePass||null===i.hostBindings&&null===i.hostAttrs||(Ps(u.index),$b(e[1],u,0,u.directiveStart,u.directiveEnd,i),Wb(i,o)),o}(G,this.componentDef,L,M,[uI]),Ma(E,L,null)}finally{Zl()}return
new GE(this.componentType,O,So(N,L),L,N)}}class GE extends class
IE{}{constructor(i,e,n,s,r){super(),this.location=n,this._rootLView=s,this._tNode=r,this.instance=e,this.hostView=this.changeDetectorRef=new
VE(s),this.componentType=i}get injector(){return new
Kr(this._tNode,this._rootLView)}destroy(){this.hostView.destroy()}onDestroy(i){this.hostView.onDestroy(i)}}class
_s{}class iC{}const xo=new Map;class oC extends
_s{constructor(i,e){super(),this._parent=e,this._bootstrapComponents=[],this.injector=this,this.destroyCbs=[],this.componentFactoryResolver=new
tC(this);const
n=pi(i);this._bootstrapComponents=Zi(n.bootstrap),this._r3Injector=av(i,e,[{provide:_s,useValue:this},{provide:Va,useValue:this.componentFactoryResolver}],ft(i)),this._r3Injector._resolv
eInjectorDefTypes(),this.instance=this.get(i)}get(i,e=En.THROW_IF_NOT_FOUND,n=xe.Default){return
i===En||i===_s||i===ph?this:this._r3Injector.get(i,e,n)}destroy(){const
i=this._r3Injector;!i.destroyed&&i.destroy(),this.destroyCbs.forEach(e=>e()),this.destroyCbs=null}onDestroy(i){this.destroyCbs.push(i)}}class
Bh extends iC{constructor(i){super(),this.moduleType=i,null!==pi(i)&&function
zE(t){const i=new Set;!function e(n){const s=pi(n,!0),r=s.id;null!==r&&(function
sC(t,i,e){if(i&&i!==e)throw new Error(`Duplicate module registered for ${t} -
${ft(i)} vs ${ft(i.name)}`)}(r,xo.get(r),n),xo.set(r,n));const o=Zi(s.imports);for(const u
of o)i.has(u)||(i.add(u),e(u))}(t)}(i)}create(i){return new
oC(this.moduleType,i)}}function A(t,i,e){const n=Fn()+t,s=$();return
s[n]===Re?es(s,n,e?i.call(e):i()):Ea(s,n)}function U(t,i,e,n){return
lC($(),Fn(),t,i,e,n)}function Ge(t,i,e,n,s){return cC($(),Fn(),t,i,e,n,s)}function
Qt(t,i,e,n,s,r){return uC($(),Fn(),t,i,e,n,s,r)}function qn(t,i,e,n,s,r,o){re
turn function dC(t,i,e,n,s,r,o,u,h){const b=i+e;return
gi(t,b,s,r,o,u)?es(t,b+4,h?n.call(h,s,r,o,u):n(s,r,o,u)):Ga(t,b+4)}($(),Fn(),t,i,e,n,s,r,o)}function
pr(t,i,e,n,s,r,o,u){const h=Fn()+t,b=$(),y=gi(b,h,e,n,s,r);return
Rn(b,h+4,o)||y?es(b,h+5,u?i.call(u,e,n,s,r,o):i(e,n,s,r,o)):Ea(b,h+5)}function
Do(t,i,e,n,s,r,o,u,h){const b=Fn()+t,y=$(),w=gi(y,b,e,n,s,r);return
ur(y,b+4,o,u)||w?es(y,b+6,h?i.call(h,e,n,s,r,o,u):i(e,n,s,r,o,u)):Ea(y,b+6)}function
Hh(t,i,e,n){return function pC(t,i,e,n,s,r){let o=i+e,u=!1;for(let
h=0;h<s.length;h++)Rn(t,o++,s[h])&&(u=!0);return
u?es(t,o,n.apply(r,s)):Ga(t,o)}($(),Fn(),t,i,e,n)}function Ga(t,i){const e=t[i];return
e===Re?void 0:e}function lC(t,i,e,n,s,r){const o=i+e;return
Rn(t,o,s)?es(t,o+1,r?n.call(r,s):n(s)):Ga(t,o+1)}function cC(t,i,e,n,s,r,o){const
u=i+e;return ur(t,u,s,r)?es(t,u+2,o?n.call(o,s,r):n(s,r)):Ga(t,u+2)}function
uC(t,i,e,n,s,r,o,u){const h=i+e;return
Mc(t,h,s,r,o)?es(t,h+3,u?n.call(u,s,r,o):n(s,r,o)):Ga(t,h+3)}function m(t,i){const
e=tt();let n;const s=t+20;e.firstCreatePass?(n=function $E(t,i){if(i)for(let
e=i.length-1;e>=0;e--){const n=i[e];if(t===n.name)return
n}}(i,e.pipeRegistry),e.data[s]=n,n.onDestroy&&(e.destroyHooks||(e.destroyHooks=[])).push(s,n.onDestroy)):n=e.data[s];const
r=n.factory||(n.factory=ar(n.type)),o=Rs(D);try{const u=sc(!1),h=r();return sc(u),function
wI(t,i,e,n){e>=t.data.length&&(t.data[e]=null,t.blueprint[e]=null),i[e]=n}(e,$(),s,h),h}finally{Rs(o)}}function
f(t,i,e){const n=t+20,s=$(),r=zr(s,n);return
Ua(s,n)?lC(s,Fn(),i,r.transform,e,r):r.transform(e)}function Dt(t,i,e,n){const
s=t+20,r=$(),o=zr(r,s);return
Ua(r,s)?cC(r,Fn(),i,o.transform,e,n,o):o.transform(e,n)}function Ua(t,i){return
t[1].data[i].pure}function qh(t){return i=>{setTimeout(t,void 0,i)}}const H=class QE
extends
ct{constructor(i=!1){super(),this.__isAsync=i}emit(i){super.next(i)}subscribe(i,e,n){var
s,r,o;let u=i,h=e||(()=>null),b=n;if(i&&"object"==typeof i){const
w=i;u=null===(s=w.next)||void 0===s?void 0:s.bind(w),
h=null===(r=w.error)||void 0===r?void 0:r.bind(w),b=null===(o=w.complete)||void
0===o?void
0:o.bind(w)}this.__isAsync&&(h=qh(h),u&&(u=qh(u)),b&&(b=qh(b)));const
y=super.subscribe({next:u,error:h,complete:b});return i instanceof
Et&&i.add(y),y}};function JE(){return this._results[lo()]()}class
Gh{constructor(i=!1){this._emitDistinctChangesOnly=i,this.dirty=!0,this._results=[],this._changesDetected=!1,this._changes=null,this.length=0,this.first=void
0,this.last=void 0;const e=lo(),n=Gh.prototype;n[e]||(n[e]=JE)}get changes(){return
this._changes||(this._changes=new H)}get(i){return this._results[i]}map(i){return
this._results.map(i)}filter(i){return this._results.filter(i)}find(i){return
this._results.find(i)}reduce(i,e){return
this._results.reduce(i,e)}forEach(i){this._results.forEach(i)}some(i){return
this._results.some(i)}toArray(){return this._results.slice()}toString(){return
this._results.toString()}reset(i,e){const n=this;n.dirty=!1;const
s=fi(i);(this._changesDetected=!functio
n _D(t,i,e){if(t.length!==i.length)return!1;for(let n=0;n<t.length;n++){let
s=t[n],r=i[n];if(e&&(s=e(s),r=e(r)),r!==s)return!1}return!0}(n._results,s,e))&&(n._results=s,n.length=s.length,n.last=s[this.length-1],n.first=s[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
bi=(()=>{class t{}return t.__NG_ELEMENT_ID__=XE,t})();const YE=bi,ZE=class extends
YE{constructor(i,e,n){super(),this._declarationLView=i,this._declarationTContainer=e,this.elementRef=n}createEmbeddedView(i){const
e=this._declarationTContainer.tViews,n=Da(this._declarationLView,e,i,16,null,e.declTNode,null,null,null,null);n[17]=this._declarationLView[this._declarationTContainer.index];const
r=this._declarationLView[19];return
null!==r&&(n[19]=r.createEmbeddedView(e)),Ma(e,n,i),new qa(n)}};function
XE(){return Nc(rn(),$())}function Nc(t,i){return 4&t.typ
e?new ZE(i,t,So(t,i)):null}let vi=(()=>{class t{}return
t.__NG_ELEMENT_ID__=eR,t})();function eR(){return gC(rn(),$())}const tR=vi,mC=class
extends
tR{constructor(i,e,n){super(),this._lContainer=i,this._hostTNode=e,this._hostLView=n}get
element(){return So(this._hostTNode,this._hostLView)}get injector(){return new
Kr(this._hostTNode,this._hostLView)}get parentInjector(){const
i=rc(this._hostTNode,this._hostLView);if(f_(i)){const
e=Wr(i,this._hostLView),n=$r(i);return new Kr(e[1].data[n+8],e)}return new
Kr(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(i){const
e=fC(this._lContainer);return null!==e&&e[i]||null}get length(){return
this._lContainer.length-10}createEmbeddedView(i,e,n){const
s=i.createEmbeddedView(e||{});return this.insert(s,n),s}createComponent(i,e,n,s,r){const
o=i&&!function pa(t){return"function"==typeof t}(i);let
u;if(o)u=e;else{const
w=e||{};u=w.index,n=w.injector,s=w.projectableNodes,r=w.ngModuleRef}const h=o?i:new
Vh(Tn(i)),b=n||
this.parentInjector;if(!r&&null==h.ngModule){const
M=(o?b:this.parentInjector).get(_s,null);M&&(r=M)}const y=h.create(b,s,void
0,r);return this.insert(y.hostView,u),y}insert(i,e){const n=i._lView,s=n[1];if(function
Bx(t){return Ei(t[3])}(n)){const y=this.indexOf(i);if(-1!==y)this.detach(y);else{const
w=n[3],M=new mC(w,w[6],w[3]);M.detach(M.indexOf(i))}}const
r=this._adjustIndex(e),o=this._lContainer;!function iM(t,i,e,n){const
s=10+n,r=e.length;n>0&&(e[s-1][4]=i),n<r-10?(i[4]=e[s],x_(e,10+n,i)):(e.push(i),i[4]=null),i[3]=e;const
o=i[17];null!==o&&e!==o&&function sM(t,i){const
e=t[9];i[16]!==i[3][3][16]&&(t[2]=!0),null===e?t[9]=[i]:e.push(i)}(o,i);const
u=i[19];null!==u&&u.insertView(t),i[2]|=128}(s,n,o,r);const
u=Op(r,o),h=n[11],b=hc(h,o[7]);return null!==b&&function
eM(t,i,e,n,s,r){n[0]=s,n[6]=i,ya(t,n,e,1,s,r)}(s,o[6],h,n,b,u),i.attachToViewContainerRef(),x_(Uh(o),r,i),i}move(i,e){return
this.insert(i,e)}indexOf(i){const e=fC(this._lContainer);return
null!==e?e.indexOf(i):-1}remov
e(i){const
e=this._adjustIndex(i,-1),n=Ep(this._lContainer,e);n&&(lc(Uh(this._lContainer),e),J_(n[1],n))}detach(i){const
e=this._adjustIndex(i,-1),n=Ep(this._lContainer,e);return
n&&null!=lc(Uh(this._lContainer),e)?new qa(n):null}_adjustIndex(i,e=0){return
null==i?this.length+e:i}};function fC(t){return t[8]}function Uh(t){return
t[8]||(t[8]=[])}function gC(t,i){let e;const n=i[t.index];if(Ei(n))e=n;else{let
s;if(8&t.type)s=Yt(n);else{const r=i[11];s=r.createComment("");const
o=Zn(t,i);lr(r,hc(r,o),s,function lM(t,i){return
$t(t)?t.nextSibling(i):i.nextSibling}(r,o),!1)}i[t.index]=e=Yb(n,i,s,t),Sc(i,e)}return new
mC(e,t,i)}class zh{constructor(i){this.queryList=i,this.matches=null}clone(){return new
zh(this.queryList)}setDirty(){this.queryList.setDirty()}}class
jh{constructor(i=[]){this.queries=i}createEmbeddedView(i){const
e=i.queries;if(null!==e){const
n=null!==i.contentQueries?i.contentQueries[0]:e.length,s=[];for(let r=0;r<n;r++){const
o=e.getByIndex(r);s.push(this.queries[o.ind
exInDeclarationView].clone())}return new jh(s)}return
null}insertView(i){this.dirtyQueriesWithMatches(i)}detachView(i){this.dirtyQueriesWithMatches(i)}dirtyQueriesWithMatches(i){for(let
e=0;e<this.queries.length;e++)null!==yC(i,e).matches&&this.queries[e].setDirty()}}class
_C{constructor(i,e,n=null){this.predicate=i,this.flags=e,this.read=n}}class
$h{constructor(i=[]){this.queries=i}elementStart(i,e){for(let
n=0;n<this.queries.length;n++)this.queries[n].elementStart(i,e)}elementEnd(i){for(let
e=0;e<this.queries.length;e++)this.queries[e].elementEnd(i)}embeddedTView(i){let
e=null;for(let n=0;n<this.length;n++){const
s=null!==e?e.length:0,r=this.getByIndex(n).embeddedTView(i,s);r&&(r.indexInDeclarationView=n,null!==e?e.push(r):e=[r])}return
null!==e?new $h(e):null}template(i,e){for(let
n=0;n<this.queries.length;n++)this.queries[n].template(i,e)}getByIndex(i){return
this.queries[i]}get length(){return
this.queries.length}track(i){this.queries.push(i)}}class Wh{constructor(i,e=-1){this.
metadata=i,this.matches=null,this.indexInDeclarationView=-1,this.crossesNgTemplate=!1,this._appliesToNextNode=!0,this._declarationNodeIndex=e}elementStart(i,e){this.isApplyingToNode(e)&&this.matchTNode(i,e)}elementEnd(i){this._declarationNodeIndex===i.index&&(this._appliesToNextNode=!1)}template(i,e){this.elementStart(i,e)}embeddedTView(i,e){return
this.isApplyingToNode(i)?(this.crossesNgTemplate=!0,this.addMatch(-i.index,e),new
Wh(this.metadata)):null}isApplyingToNode(i){if(this._appliesToNextNode&&1!=(1&this.metadata.flags)){const
e=this._declarationNodeIndex;let
n=i.parent;for(;null!==n&&8&n.type&&n.index!==e;)n=n.parent;return
e===(null!==n?n.index:-1)}return this._appliesToNextNode}matchTNode(i,e){const
n=this.metadata.predicate;if(Array.isArray(n))for(let s=0;s<n.length;s++){const
r=n[s];this.matchTNodeWithReadOption(i,e,sR(e,r)),this.matchTNodeWithReadOption(i,e,ac(e,i,r,!1,!1))}else
n===bi?4&e.type&&this.matchTNodeWithReadOption(i,e,-1):this.matchTNodeWithReadOption(i,e,ac(e
,i,n,!1,!1))}matchTNodeWithReadOption(i,e,n){if(null!==n){const
s=this.metadata.read;if(null!==s)if(s===De||s===vi||s===bi&&4&e.type)this.addMatch(e.index,-2);else{const
r=ac(e,i,s,!1,!1);null!==r&&this.addMatch(e.index,r)}else
this.addMatch(e.index,n)}}addMatch(i,e){null===this.matches?this.matches=[i,e]:this.matches.push(i,e)}}function
sR(t,i){const e=t.localNames;if(null!==e)for(let n=0;n<e.length;n+=2)if(e[n]===i)return
e[n+1];return null}function oR(t,i,e,n){return-1===e?function rR(t,i){return
11&t.type?So(t,i):4&t.type?Nc(t,i):null}(i,t):-2===e?function aR(t,i,e){return
e===De?So(i,t):e===bi?Nc(i,t):e===vi?gC(i,t):void 0}(t,i,n):ca(t,t[1],e,i)}function
bC(t,i,e,n){const s=i[19].queries[n];if(null===s.matches){const
r=t.data,o=e.matches,u=[];for(let h=0;h<o.length;h+=2){const
b=o[h];u.push(b<0?null:oR(i,r[b],o[h+1],e.metadata.read))}s.matches=u}return
s.matches}function Kh(t,i,e,n){const
s=t.queries.getByIndex(e),r=s.matches;if(null!==r){const o=bC(t,i,s,e);for(let
u=0;u<r.len
gth;u+=2){const h=r[u];if(h>0)n.push(o[u/2]);else{const b=r[u+1],y=i[-h];for(let
w=10;w<y.length;w++){const
M=y[w];M[17]===M[3]&&Kh(M[1],M,b,n)}if(null!==y[9]){const w=y[9];for(let
M=0;M<w.length;M++){const E=w[M];Kh(E[1],E,b,n)}}}}}return n}function V(t){const
i=$(),e=tt(),n=r_();ap(n+1);const
s=yC(e,n);if(t.dirty&&Zg(i)===(2==(2&s.metadata.flags))){if(null===s.matches)t.reset([]);else{const
r=s.crossesNgTemplate?Kh(e,i,n,[]):bC(e,i,s,n);t.reset(r,OE),t.notifyOnChanges()}return!0}return!1}function
W(t,i,e){const n=tt();n.firstCreatePass&&(CC(n,new
_C(t,i,e),-1),2==(2&i)&&(n.staticViewQueries=!0)),vC(n,$(),i)}function
st(t,i,e,n){const s=tt();if(s.firstCreatePass){const r=rn();CC(s,new
_C(i,e,n),r.index),function cR(t,i){const
e=t.contentQueries||(t.contentQueries=[]);i!==(e.length?e[e.length-1]:-1)&&e.push(t.queries.length-1,i)}(s,t),2==(2&e)&&(s.staticContentQueries=!0)}vC(s,$(),e)}function
B(){return function lR(t,i){return t[19].queries[i].queryList}($(),r_())}function
vC(t,i,e)
{const n=new Gh(4==(4&e));Ub(t,i,n,n.destroy),null===i[19]&&(i[19]=new
jh),i[19].queries.push(new zh(n))}function
CC(t,i,e){null===t.queries&&(t.queries=new $h),t.queries.track(new
Wh(i,e))}function yC(t,i){return t.queries.getByIndex(i)}function we(t,i){return
Nc(t,i)}function Hc(...t){}const em=new be("Application Initializer");let
tm=(()=>{class
t{constructor(e){this.appInits=e,this.resolve=Hc,this.reject=Hc,this.initialized=!1,this.done=!1,this.donePromise=new
Promise((n,s)=>{this.resolve=n,this.reject=s})}runInitializers(){if(this.initialized)return;const
e=[],n=()=>{this.done=!0,this.resolve()};if(this.appInits)for(let
s=0;s<this.appInits.length;s++){const r=this.appInits[s]();if(Ra(r))e.push(r);else
if(Dh(r)){const o=new
Promise((u,h)=>{r.subscribe({complete:u,error:h})});e.push(o)}}Promise.all(e).then(()=>{n()}).catch(s=>{this.reject(s)}),0===e.length&&n(),this.initialized=!0}}return
t.\u0275fac=function(e){return
new(e||t)(K(em,8))},t.\u0275prov=X({token:t,factory:t.\u0275f
ac,providedIn:"root"}),t})();const ja=new
be("AppId",{providedIn:"root",factory:function
VC(){return`${nm()}${nm()}${nm()}`}});function nm(){return
String.fromCharCode(97+Math.floor(25*Math.random()))}const BC=new be("Platform
Initializer"),qc=new be("Platform
ID",{providedIn:"platform",factory:()=>"unknown"}),HC=new
be("appBootstrapListener");let DR=(()=>{class
t{log(e){console.log(e)}warn(e){console.warn(e)}}return t.\u0275fac=function(e){return
new(e||t)},t.\u0275prov=X({token:t,factory:t.\u0275fac,providedIn:"platform"}),t})();const
qs=new
be("LocaleId",{providedIn:"root",factory:()=>O_(qs,xe.Optional|xe.SkipSelf)||function
MR(){return"undefined"!=typeof
$localize&&$localize.locale||Rc}()});class
IR{constructor(i,e){this.ngModuleFactory=i,this.componentFactories=e}}let
qC=(()=>{class t{compileModuleSync(e){return new Bh(e)}compileModuleAsync(e){return
Promise.resolve(this.compileModuleSync(e))}compileModuleAndAllComponentsSync(e){const
n=this.compileModuleSync(e),r=Zi(pi(e).decl
arations).reduce((o,u)=>{const h=Tn(u);return h&&o.push(new
Vh(h)),o},[]);return new IR(n,r)}compileModuleAndAllComponentsAsync(e){return
Promise.resolve(this.compileModuleAndAllComponentsSync(e))}clearCache(){}clearCacheFor(e){}getModuleId(e){}}return
t.\u0275fac=function(e){return
new(e||t)},t.\u0275prov=X({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();const
RR=(()=>Promise.resolve(0))();function im(t){"undefined"==typeof
Zone?RR.then(()=>{t&&t.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",t)}class
nt{constructor({enableLongStackTrace:i=!1,shouldCoalesceEventChangeDetection:e=!1,shouldCoalesceRunChangeDetection:n=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new
H(!1),this.onMicrotaskEmpty=new H(!1),this.onStable=new H(!1),this.onError=new
H(!1),"undefined"==typeof Zone)throw new Error("In this configuration
Angular requires Zone.js");Zone.assertZonePatched();const
s=this;s._nesting=0,s._outer=s._
inner=Zone.current,Zone.TaskTrackingZoneSpec&&(s._inner=s._inner.fork(new
Zone.TaskTrackingZoneSpec)),i&&Zone.longStackTraceZoneSpec&&(s._inner=s._inner.fork(Zone.longStackTraceZoneSpec)),s.shouldCoalesceEventChangeDetection=!n&&e,s.shouldCoalesceRunChangeDetection=n,s.lastRequestAnimationFrameId=-1,s.nativeRequestAnimationFrame=function
LR(){let
t=vt.requestAnimationFrame,i=vt.cancelAnimationFrame;if("undefined"!=typeof
Zone&&t&&i){const
e=t[Zone.__symbol__("OriginalDelegate")];e&&(t=e);const
n=i[Zone.__symbol__("OriginalDelegate")];n&&(i=n)}return{nativeRequestAnimationFrame:t,nativeCancelAnimationFrame:i}}().nativeRequestAnimationFrame,function
PR(t){const i=()=>{!function
AR(t){t.isCheckStableRunning||-1!==t.lastRequestAnimationFrameId||(t.lastRequestAnimationFrameId=t.nativeRequestAnimationFrame.call(vt,()=>{t.fakeTopEventTask||(t.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{t.lastRequestAnimationFrameId=-1,rm(t),t.isCheckStableRunning=!0,sm(t),t.isCheck
StableRunning=!1},void
0,()=>{},()=>{})),t.fakeTopEventTask.invoke()}),rm(t))}(t)};t._inner=t._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(e,n,s,r,o,u)=>{try{return
GC(t),e.invokeTask(s,r,o,u)}finally{(t.shouldCoalesceEventChangeDetection&&"eventTask"===r.type||t.shouldCoalesceRunChangeDetection)&&i(),UC(t)}},onInvoke:(e,n,s,r,o,u,h)=>{try{return
GC(t),e.invoke(s,r,o,u,h)}finally{t.shouldCoalesceRunChangeDetection&&i(),UC(t)}},onHasTask:(e,n,s,r)=>{e.hasTask(s,r),n===s&&("microTask"==r.change?(t._hasPendingMicrotasks=r.microTask,rm(t),sm(t)):"macroTask"==r.change&&(t.hasPendingMacrotasks=r.macroTask))},onHandleError:(e,n,s,r)=>(e.handleError(s,r),t.runOutsideAngular(()=>t.onError.emit(r)),!1)})}(s)}static
isInAngularZone(){return"undefined"!=typeof
Zone&&!0===Zone.current.get("isAngularZone")}static
assertInAngularZone(){if(!nt.isInAngularZone())throw new Error("Expected to be in
Angular Zone, but it is not!")}static assertNotInAngularZone(){if(nt.isInAngu
larZone())throw new Error("Expected to not be in Angular Zone, but it
is!")}run(i,e,n){return this._inner.run(i,e,n)}runTask(i,e,n,s){const
r=this._inner,o=r.scheduleEventTask("NgZoneEvent: "+s,i,OR,Hc,Hc);try{return
r.runTask(o,e,n)}finally{r.cancelTask(o)}}runGuarded(i,e,n){return
this._inner.runGuarded(i,e,n)}runOutsideAngular(i){return this._outer.run(i)}}const
OR={};function
sm(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
rm(t){t.hasPendingMicrotasks=!!(t._hasPendingMicrotasks||(t.shouldCoalesceEventChangeDetection||t.shouldCoalesceRunChangeDetection)&&-1!==t.lastRequestAnimationFrameId)}function
GC(t){t._nesting++,t.isStable&&(t.isStable=!1,t.onUnstable.emit(null))}function
UC(t){t._nesting--,sm(t)}class
FR{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isSta
ble=!0,this.onUnstable=new H,this.onMicrotaskEmpty=new H,this.onStable=new
H,this.onError=new H}run(i,e,n){return i.apply(e,n)}runGuarded(i,e,n){return
i.apply(e,n)}runOutsideAngular(i){return i()}runTask(i,e,n,s){return i.apply(e,n)}}let
om=(()=>{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:()=>{nt.assertNotInAngularZone(),im(()=>{this._isZoneStable=!0,this._runCallbacksIfReady()})}})})}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())im(()=>{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(n=>!n.updateCb||!n.updateCb(e)||(clearTimeout(n.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,n,s){let
r=-1;n&&n>0&&(r=setTimeout(()=>{this._callbacks=this._callbacks.filter(o=>o.timeoutId!==r),e(this._didWork,this.getPendingTasks())},n)),this._callbacks.push({doneCb:e,timeoutId:r,updateCb:s})}whenStable(e,n,s){if(s&&!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,n,s),this._runCallbacksIfReady()}getPendingRequestCount(){return
this._pendingCount}findProviders(e,n,s){return[]}}return t.\u0275fac=function(e){return
new(e||t)(K(nt))},t.\u0275prov=X({token:t,factory:t.\u0275fac}),t})(),NR=(()=>{class
t{constructor(){this._applications=new
Map,am.addToWindow(this)}registerApplication(e,n){this._applications.set(e,n)}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())}findTestabilityInTree(e,n=!0){return
am.findTestabilityInTree(this,e,n)}}return t.\u0275fac=function(e){return
new(e||t)},t.\u0275prov=X({token:t,factory:t.\u0275fac,providedIn:"platform"}),t})();class
VR{addToWindow(i){}findTestabilityInTr
ee(i,e,n){return null}}let am=new VR,hr=null;const zC=new
be("AllowMultipleToken"),jC=new be("PlatformOnDestroy");class
$C{constructor(i,e){this.name=i,this.token=e}}function WC(t,i,e=[]){const n=`Platform:
${i}`,s=new be(n);return(r=[])=>{let o=lm();if(!o||o.injector.get(zC,!1)){const
u=[...e,...r,{provide:s,useValue:!0}];t?t(u):function
GR(t){if(hr&&!hr.get(zC,!1))throw new re(400,"");hr=t;const
i=t.get(KC),e=t.get(BC,null);e&&e.forEach(n=>n())}(function zR(t=[],i){return
En.create({name:i,providers:[{provide:hh,useValue:"platform"},{provide:jC,useValue:()=>hr=null},...t]})}(u,n))}return
function UR(t){const i=lm();if(!i)throw new re(401,"");return i}()}}function
lm(){var t;return null!==(t=null==hr?void 0:hr.get(KC))&&void 0!==t?t:null}let
KC=(()=>{class
t{constructor(e){this._injector=e,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(e,n){const
u=function jR(t,i){let e;return e="noop"===t?new
FR:("zone.js"===t?void 0:t)||new nt({enableLongSta
ckTrace:!1,shouldCoalesceEventChangeDetection:!!(null==i?void
0:i.ngZoneEventCoalescing),shouldCoalesceRunChangeDetection:!!(null==i?void
0:i.ngZoneRunCoalescing)}),e}(n?n.ngZone:void
0,{ngZoneEventCoalescing:n&&n.ngZoneEventCoalescing||!1,ngZoneRunCoalescing:n&&n.ngZoneRunCoalescing||!1}),h=[{provide:nt,useValue:u}];return
u.run(()=>{const
b=En.create({providers:h,parent:this.injector,name:e.moduleType.name}),y=e.create(b),w=y.injector.get(xa,null);if(!w)throw
new re(402,"");return u.runOutsideAngular(()=>{const
M=u.onError.subscribe({next:E=>{w.handleError(E)}});y.onDestroy(()=>{um(this._modules,y),M.unsubscribe()})}),function
$R(t,i,e){try{const n=e();return Ra(n)?n.catch(s=>{throw
i.runOutsideAngular(()=>t.handleError(s)),s}):n}catch(n){throw
i.runOutsideAngular(()=>t.handleError(n)),n}}(w,u,()=>{const
M=y.injector.get(tm);return M.runInitializers(),M.donePromise.then(()=>(function
A3(t){Jn(t,"Expected localeId to be defined"),"string"==typeof
t&&(k1=t.toLowerCase().replace(/_/g
,"-"))}(y.injector.get(qs,Rc)||Rc),this._moduleDoBootstrap(y),y))})})}bootstrapModule(e,n=[]){const
s=QC({},n);return function HR(t,i,e){const n=new Bh(e);return
Promise.resolve(n)}(0,0,e).then(r=>this.bootstrapModuleFactory(r,s))}_moduleDoBootstrap(e){const
n=e.injector.get(cm);if(e._bootstrapComponents.length>0)e._bootstrapComponents.forEach(s=>n.bootstrap(s));else{if(!e.instance.ngDoBootstrap)throw
new
re(403,"");e.instance.ngDoBootstrap(n)}this._modules.push(e)}onDestroy(e){this._destroyListeners.push(e)}get
injector(){return this._injector}destroy(){if(this._destroyed)throw new
re(404,"");this._modules.slice().forEach(n=>n.destroy()),this._destroyListeners.forEach(n=>n());const
e=this._injector.get(jC,null);null==e||e(),this._destroyed=!0}get destroyed(){return
this._destroyed}}return t.\u0275fac=function(e){return
new(e||t)(K(En))},t.\u0275prov=X({token:t,factory:t.\u0275fac,providedIn:"platform"}),t})();function
QC(t,i){return Array.isArray(i)?i.reduce(QC,t):Object.assign(Obj
ect.assign({},t),i)}let cm=(()=>{class
t{constructor(e,n,s,r){this._zone=e,this._injector=n,this._exceptionHandler=s,this._initStatus=r,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
o=new
Je(h=>{this._stable=this._zone.isStable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks,this._zone.runOutsideAngular(()=>{h.next(this._stable),h.complete()})}),u=new
Je(h=>{let
b;this._zone.runOutsideAngular(()=>{b=this._zone.onStable.subscribe(()=>{nt.assertNotInAngularZone(),im(()=>{!this._stable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks&&(this._stable=!0,h.next(!0))})})});const
y=this._zone.onUnstable.subscribe(()=>{nt.assertInAngularZone(),this._stable&&(this._stable=!1,this._zone.runOutsideAngular(()=>{h.next(!1)}))});return()=>{b.unsubscribe(),y.un
subscribe()}});this.isStable=function YS(...t){let
i=Number.POSITIVE_INFINITY,e=null,n=t[t.length-1];return
Vr(n)?(e=t.pop(),t.length>1&&"number"==typeof
t[t.length-1]&&(i=t.pop())):"number"==typeof
n&&(i=t.pop()),null===e&&1===t.length&&t[0]instanceof
Je?t[0]:ea(i)(Pd(t,e))}(o,u.pipe(function ox(){return t=>Fd()(function ix(t,i){return
function(n){let s;if(s="function"==typeof t?t:function(){return
t},"function"==typeof i)return n.lift(new sx(s,i));const
r=Object.create(n,ex);return
r.source=n,r.subjectFactory=s,r}}(rx)(t))}()))}bootstrap(e,n){if(!this._initStatus.done)throw
new re(405,"");let s;s=e instanceof
X1?e:this._injector.get(Va).resolveComponentFactory(e),this.componentTypes.push(s.componentType);const
r=function qR(t){return t.isBoundToModule}(s)?void
0:this._injector.get(_s),u=s.create(En.NULL,[],n||s.selector,r),h=u.location.nativeElement,b=u.injector.get(om,null),y=b&&u.injector.get(NR);return
b&&y&&y.registerApplication(h,b),u.onDestroy(()=>{this.detachView(u.hostView
),um(this.components,u),y&&y.unregisterApplication(h)}),this._loadComponent(u),u}tick(){if(this._runningTick)throw
new re(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
n=e;this._views.push(n),n.attachToAppRef(this)}detachView(e){const
n=e;um(this._views,n),n.detachFromAppRef()}_loadComponent(e){this.attachView(e.hostView),this.tick(),this.components.push(e),this._injector.get(HC,[]).concat(this._bootstrapListeners).forEach(s=>s(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)(K(nt),K(En),K(xa),K(tm))},t.\u0275prov=X({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();function
um(t,i){const e=t.indexOf(i);e>-1&&t.splice(e,1)}let
YC=!0,ZC=!1,rt=(()=>{class t{}return t.__NG_
ELEMENT_ID__=JR,t})();function JR(t){return function
YR(t,i,e){if(Wl(t)&&!e){const n=Xn(t.index,i);return new qa(n,n)}return
47&t.type?new qa(i[16],i):null}(rn(),$(),16==(16&t))}class
ny{constructor(){}supports(i){return Ia(i)}create(i){return new iL(i)}}const
nL=(t,i)=>i;class
iL{constructor(i){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=i||nL}forEachItem(i){let
e;for(e=this._itHead;null!==e;e=e._next)i(e)}forEachOperation(i){let
e=this._itHead,n=this._removalsHead,s=0,r=null;for(;e||n;){const
o=!n||e&&e.currentIndex<sy(n,s,r)?e:n,u=sy(o,s,r),h=o.currentIndex;if(o===n)s--,n=n._nextRemoved;else
if(e=e._next,null==o.previousIndex)s++;else{r||(r=[]);const b=u-s,y=h-s;if(b!=y){for(let
M=0;
M<b;M++){const
E=M<r.length?r[M]:r[M]=0,L=E+M;y<=L&&L<b&&(r[M]=E+1)}r[o.previousIndex]=y-b}}u!==h&&i(o,u,h)}}forEachPreviousItem(i){let
e;for(e=this._previousItHead;null!==e;e=e._nextPrevious)i(e)}forEachAddedItem(i){let
e;for(e=this._additionsHead;null!==e;e=e._nextAdded)i(e)}forEachMovedItem(i){let
e;for(e=this._movesHead;null!==e;e=e._nextMoved)i(e)}forEachRemovedItem(i){let
e;for(e=this._removalsHead;null!==e;e=e._nextRemoved)i(e)}forEachIdentityChange(i){let
e;for(e=this._identityChangesHead;null!==e;e=e._nextIdentityChange)i(e)}diff(i){if(null==i&&(i=[]),!Ia(i))throw
new re(900,"");return
this.check(i)?this:null}onDestroy(){}check(i){this._reset();let
s,r,o,e=this._itHead,n=!1;if(Array.isArray(i)){this.length=i.length;for(let
u=0;u<this.length;u++)r=i[u],o=this._trackByFn(u,r),null!==e&&Object.is(e.trackById,o)?(n&&(e=this._verifyReinsertion(e,r,o,u)),Object.is(e.item,r)||this._addIdentityChange(e,r)):(e=this._mismatch(e,r,o,u),n=!0),e=e._next}else
s=0,function CI(t,i){if(Arra
y.isArray(t))for(let e=0;e<t.length;e++)i(t[e]);else{const e=t[lo()]();let
n;for(;!(n=e.next()).done;)i(n.value)}}(i,u=>{o=this._trackByFn(s,u),null!==e&&Object.is(e.trackById,o)?(n&&(e=this._verifyReinsertion(e,u,o,s)),Object.is(e.item,u)||this._addIdentityChange(e,u)):(e=this._mismatch(e,u,o,s),n=!0),e=e._next,s++}),this.length=s;return
this._truncate(e),this.collection=i,this.isDirty}get isDirty(){return
null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let
i;for(i=this._previousItHead=this._itHead;null!==i;i=i._next)i._nextPrevious=i._next;for(i=this._additionsHead;null!==i;i=i._nextAdded)i.previousIndex=i.currentIndex;for(this._additionsHead=this._additionsTail=null,i=this._movesHead;null!==i;i=i._nextMoved)i.previousIndex=i.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(i,e,n,s)
{let r;return
null===i?r=this._itTail:(r=i._prev,this._remove(i)),null!==(i=null===this._unlinkedRecords?null:this._unlinkedRecords.get(n,null))?(Object.is(i.item,e)||this._addIdentityChange(i,e),this._reinsertAfter(i,r,s)):null!==(i=null===this._linkedRecords?null:this._linkedRecords.get(n,s))?(Object.is(i.item,e)||this._addIdentityChange(i,e),this._moveAfter(i,r,s)):i=this._addAfter(new
sL(e,n),r,s),i}_verifyReinsertion(i,e,n,s){let
r=null===this._unlinkedRecords?null:this._unlinkedRecords.get(n,null);return
null!==r?i=this._reinsertAfter(r,i._prev,s):i.currentIndex!=s&&(i.currentIndex=s,this._addToMoves(i,s)),i}_truncate(i){for(;null!==i;){const
e=i._next;this._addToRemovals(this._unlink(i)),i=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._nextRemove
d=null),null!==this._identityChangesTail&&(this._identityChangesTail._nextIdentityChange=null)}_reinsertAfter(i,e,n){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(i);const
s=i._prevRemoved,r=i._nextRemoved;return
null===s?this._removalsHead=r:s._nextRemoved=r,null===r?this._removalsTail=s:r._prevRemoved=s,this._insertAfter(i,e,n),this._addToMoves(i,n),i}_moveAfter(i,e,n){return
this._unlink(i),this._insertAfter(i,e,n),this._addToMoves(i,n),i}_addAfter(i,e,n){return
this._insertAfter(i,e,n),this._additionsTail=null===this._additionsTail?this._additionsHead=i:this._additionsTail._nextAdded=i,i}_insertAfter(i,e,n){const
s=null===e?this._itHead:e._next;return
i._next=s,i._prev=e,null===s?this._itTail=i:s._prev=i,null===e?this._itHead=i:e._next=i,null===this._linkedRecords&&(this._linkedRecords=new
iy),this._linkedRecords.put(i),i.currentIndex=n,i}_remove(i){return
this._addToRemovals(this._unlink(i))}_unlink(i){null!==this._linkedRecords&&this._linkedRecords.remove(i);const
e=i._prev,n=i._next;return
null===e?this._itHead=n:e._next=n,null===n?this._itTail=e:n._prev=e,i}_addToMoves(i,e){return
i.previousIndex===e||(this._movesTail=null===this._movesTail?this._movesHead=i:this._movesTail._nextMoved=i),i}_addToRemovals(i){return
null===this._unlinkedRecords&&(this._unlinkedRecords=new
iy),this._unlinkedRecords.put(i),i.currentIndex=null,i._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=i,i._prevRemoved=null):(i._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=i),i}_addIdentityChange(i,e){return
i.item=e,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=i:this._identityChangesTail._nextIdentityChange=i,i}}class
sL{constructor(i,e){this.item=i,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._next
Added=null,this._nextMoved=null,this._nextIdentityChange=null}}class
rL{constructor(){this._head=null,this._tail=null}add(i){null===this._head?(this._head=this._tail=i,i._nextDup=null,i._prevDup=null):(this._tail._nextDup=i,i._prevDup=this._tail,i._nextDup=null,this._tail=i)}get(i,e){let
n;for(n=this._head;null!==n;n=n._nextDup)if((null===e||e<=n.currentIndex)&&Object.is(n.trackById,i))return
n;return null}remove(i){const e=i._prevDup,n=i._nextDup;return
null===e?this._head=n:e._nextDup=n,null===n?this._tail=e:n._prevDup=e,null===this._head}}class
iy{constructor(){this.map=new Map}put(i){const e=i.trackById;let
n=this.map.get(e);n||(n=new rL,this.map.set(e,n)),n.add(i)}get(i,e){const
s=this.map.get(i);return s?s.get(i,e):null}remove(i){const e=i.trackById;return
this.map.get(e).remove(i)&&this.map.delete(e),i}get isEmpty(){return
0===this.map.size}clear(){this.map.clear()}}function sy(t,i,e){const
n=t.previousIndex;if(null===n)return n;let s=0;return
e&&n<e.length&&(s=e[n]),n+i+s}cl
ass ry{constructor(){}supports(i){return i instanceof Map||vh(i)}create(){return new
oL}}class oL{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(i){let
e;for(e=this._mapHead;null!==e;e=e._next)i(e)}forEachPreviousItem(i){let
e;for(e=this._previousMapHead;null!==e;e=e._nextPrevious)i(e)}forEachChangedItem(i){let
e;for(e=this._changesHead;null!==e;e=e._nextChanged)i(e)}forEachAddedItem(i){let
e;for(e=this._additionsHead;null!==e;e=e._nextAdded)i(e)}forEachRemovedItem(i){let
e;for(e=this._removalsHead;null!==e;e=e._nextRemoved)i(e)}diff(i){if(i){if(!(i instanceof
Map||vh(i)))throw new re(900,"")}else i=new Map;return
this.check(i)?this:null}onDestroy(){}check(i){this._reset();
let
e=this._mapHead;if(this._appendAfter=null,this._forEach(i,(n,s)=>{if(e&&e.key===s)this._maybeAddToChanges(e,n),this._appendAfter=e,e=e._next;else{const
r=this._getOrCreateRecordForKey(s,n);e=this._insertBeforeOrAppend(e,r)}}),e){e._prev&&(e._prev._next=null),this._removalsHead=e;for(let
n=e;null!==n;n=n._nextRemoved)n===this._mapHead&&(this._mapHead=null),this._records.delete(n.key),n._nextRemoved=n._next,n.previousValue=n.currentValue,n.currentValue=null,n._prev=null,n._next=null}return
this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(i,e){if(i){const
n=i._prev;return
e._next=i,e._prev=n,i._prev=e,n&&(n._next=e),i===this._mapHead&&(this._mapHead=e),this._appendAfter=i,i}return
this._appendAfter?(this._appendAfter._next=e,e._prev=this._appendAfter):this._mapHead=e,this._appendAfter=e,null}_getOrCreateRecordForKey(i,e){if(this._records.has(i)){const
s=this._records.get(i);this._m
aybeAddToChanges(s,e);const r=s._prev,o=s._next;return
r&&(r._next=o),o&&(o._prev=r),s._next=null,s._prev=null,s}const n=new
aL(i);return
this._records.set(i,n),n.currentValue=e,this._addToAdditions(n),n}_reset(){if(this.isDirty){let
i;for(this._previousMapHead=this._mapHead,i=this._previousMapHead;null!==i;i=i._next)i._nextPrevious=i._next;for(i=this._changesHead;null!==i;i=i._nextChanged)i.previousValue=i.currentValue;for(i=this._additionsHead;null!=i;i=i._nextAdded)i.previousValue=i.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(i,e){Object.is(e,i.currentValue)||(i.previousValue=i.currentValue,i.currentValue=e,this._addToChanges(i))}_addToAdditions(i){null===this._additionsHead?this._additionsHead=this._additionsTail=i:(this._additionsTail._nextAdded=i,this._additionsTail=i)}_addToChanges(i){null===this._changesHead?this._changesHead=this._changesTail=i:(this._changesTail._nextChanged=
i,this._changesTail=i)}_forEach(i,e){i instanceof
Map?i.forEach(e):Object.keys(i).forEach(n=>e(i[n],n))}}class
aL{constructor(i){this.key=i,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
oy(){return new $a([new ny])}let $a=(()=>{class
t{constructor(e){this.factories=e}static create(e,n){if(null!=n){const
s=n.factories.slice();e=e.concat(s)}return new t(e)}static
extend(e){return{provide:t,useFactory:n=>t.create(e,n||oy()),deps:[[t,new _a,new
Ns]]}}find(e){const n=this.factories.find(s=>s.supports(e));if(null!=n)return n;throw
new re(901,"")}}return
t.\u0275prov=X({token:t,providedIn:"root",factory:oy}),t})();function
ay(){return new Wa([new ry])}let Wa=(()=>{class
t{constructor(e){this.factories=e}static create(e,n){if(n){const
s=n.factories.slice();e=e.concat(s)}return new t(e)}static
extend(e){return{provide:t,useFactory:n=>t.create(e,n||ay()),deps:[
[t,new _a,new Ns]]}}find(e){const n=this.factories.find(r=>r.supports(e));if(n)return
n;throw new re(901,"")}}return
t.\u0275prov=X({token:t,providedIn:"root",factory:ay}),t})();const
uL=WC(null,"core",[]);let dL=(()=>{class t{constructor(e){}}return
t.\u0275fac=function(e){return
new(e||t)(K(cm))},t.\u0275mod=he({type:t}),t.\u0275inj=ue({}),t})(),zc=null;function
ns(){return zc}const Xt=new be("DocumentToken");let fr=(()=>{class
t{historyGo(e){throw new Error("Not implemented")}}return
t.\u0275fac=function(e){return
new(e||t)},t.\u0275prov=X({token:t,factory:function(){return function fL(){return
K(ly)}()},providedIn:"platform"}),t})();const gL=new be("Location
Initialized");let ly=(()=>{class t extends
fr{constructor(e){super(),this._doc=e,this._init()}_init(){this.location=window.location,this._history=window.history}getBaseHrefFromDOM(){return
ns().getBaseHref(this._doc)}onPopState(e){const
n=ns().getGlobalEventTarget(this._doc,"window");return
n.addEventListener("popstate",e,!1
),()=>n.removeEventListener("popstate",e)}onHashChange(e){const
n=ns().getGlobalEventTarget(this._doc,"window");return
n.addEventListener("hashchange",e,!1),()=>n.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,n,s){cy()?this._history.pushState(e,n,s):this.location.hash=s}replaceState(e,n,s){cy()?this._history.replaceState(e,n,s):this.location.hash=s}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)(K(Xt))},t.\u0275prov=X({token:t,factory:function(){return function _L(){return
new ly(K(Xt))}()},providedIn:"platform"}),t})();funct
ion cy(){return!!window.history.pushState}function fm(t,i){if(0==t.length)return
i;if(0==i.length)return t;let e=0;return
t.endsWith("/")&&e++,i.startsWith("/")&&e++,2==e?t+i.substring(1):1==e?t+i:t+"/"+i}function
uy(t){const i=t.match(/#|\?|$/),e=i&&i.index||t.length;return
t.slice(0,e-("/"===t[e-1]?1:0))+t.slice(e)}function bs(t){return
t&&"?"!==t[0]?"?"+t:t}let ko=(()=>{class
t{historyGo(e){throw new Error("Not implemented")}}return
t.\u0275fac=function(e){return
new(e||t)},t.\u0275prov=X({token:t,factory:function(){return function bL(t){const
i=K(Xt).location;return new
dy(K(fr),i&&i.origin||"")}()},providedIn:"root"}),t})();const
gm=new be("appBaseHref");let dy=(()=>{class t extends
ko{constructor(e,n){if(super(),this._platformLocation=e,this._removeListenerFns=[],null==n&&(n=this._platformLocation.getBaseHrefFromDOM()),null==n)throw
new Error("No base href set. Please provide a value for the APP_BASE_HREF token or
add a base element to the document.");this._baseHref=n}ngOnDest
roy(){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 fm(this._baseHref,e)}path(e=!1){const
n=this._platformLocation.pathname+bs(this._platformLocation.search),s=this._platformLocation.hash;return
s&&e?`${n}${s}`:n}pushState(e,n,s,r){const
o=this.prepareExternalUrl(s+bs(r));this._platformLocation.pushState(e,n,o)}replaceState(e,n,s,r){const
o=this.prepareExternalUrl(s+bs(r));this._platformLocation.replaceState(e,n,o)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}historyGo(e=0){var
n,s;null===(s=(n=this._platformLocation).historyGo)||void 0===s||s.call(n,e)}}return
t.\u0275fac=function(e){return
new(e||t)(K(fr),K(gm,8))},t.\u0275prov=X({token:t,factory:t.\u0275fac}),t})(),vL=(()=>{class
t extends ko{constructor(e,n){super(),this._platformLocation=e
,this._baseHref="",this._removeListenerFns=[],null!=n&&(this._baseHref=n)}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 n=this._platformLocation.hash;return
null==n&&(n="#"),n.length>0?n.substring(1):n}prepareExternalUrl(e){const
n=fm(this._baseHref,e);return n.length>0?"#"+n:n}pushState(e,n,s,r){let
o=this.prepareExternalUrl(s+bs(r));0==o.length&&(o=this._platformLocation.pathname),this._platformLocation.pushState(e,n,o)}replaceState(e,n,s,r){let
o=this.prepareExternalUrl(s+bs(r));0==o.length&&(o=this._platformLocation.pathname),this._platformLocation.replaceState(e,n,o)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}historyGo(e=0){var
n,s;null===(s=(n=this._platformLocation).historyGo)||void 0===s||s.call(n,e)}}return
t.\u0275fac=function(e){re
turn
new(e||t)(K(fr),K(gm,8))},t.\u0275prov=X({token:t,factory:t.\u0275fac}),t})(),_m=(()=>{class
t{constructor(e,n){this._subject=new
H,this._urlChangeListeners=[],this._platformStrategy=e;const
s=this._platformStrategy.getBaseHref();this._platformLocation=n,this._baseHref=uy(py(s)),this._platformStrategy.onPopState(r=>{this._subject.emit({url:this.path(!0),pop:!0,state:r.state,type:r.type})})}path(e=!1){return
this.normalize(this._platformStrategy.path(e))}getState(){return
this._platformLocation.getState()}isCurrentPathEqualTo(e,n=""){return
this.path()==this.normalize(e+bs(n))}normalize(e){return t.stripTrailingSlash(function
yL(t,i){return
t&&i.startsWith(t)?i.substring(t.length):i}(this._baseHref,py(e)))}prepareExternalUrl(e){return
e&&"/"!==e[0]&&(e="/"+e),this._platformStrategy.prepareExternalUrl(e)}go(e,n="",s=null){this._platformStrategy.pushState(s,"",e,n),this._notifyUrlChangeListeners(this.prepareExternalUrl(e+bs(n)),s)}replaceState(e,n="",s=null){this._platformStrategy
.replaceState(s,"",e,n),this._notifyUrlChangeListeners(this.prepareExternalUrl(e+bs(n)),s)}forward(){this._platformStrategy.forward()}back(){this._platformStrategy.back()}historyGo(e=0){var
n,s;null===(s=(n=this._platformStrategy).historyGo)||void
0===s||s.call(n,e)}onUrlChange(e){this._urlChangeListeners.push(e),this._urlChangeSubscription||(this._urlChangeSubscription=this.subscribe(n=>{this._notifyUrlChangeListeners(n.url,n.state)}))}_notifyUrlChangeListeners(e="",n){this._urlChangeListeners.forEach(s=>s(e,n))}subscribe(e,n,s){return
this._subject.subscribe({next:e,error:n,complete:s})}}return
t.normalizeQueryParams=bs,t.joinWithSlash=fm,t.stripTrailingSlash=uy,t.\u0275fac=function(e){return
new(e||t)(K(ko),K(fr))},t.\u0275prov=X({token:t,factory:function(){return function
CL(){return new _m(K(ko),K(fr))}()},providedIn:"root"}),t})();function
py(t){return t.replace(/\/index.html$/,"")}var
Wn=(()=>((Wn=Wn||{})[Wn.Decimal=0]="Decimal",Wn[Wn.Percent=1]="Percent",Wn[Wn.Currency=2]="C
urrency",Wn[Wn.Scientific=3]="Scientific",Wn))(),ge=(()=>((ge=ge||{})[ge.Decimal=0]="Decimal",ge[ge.Group=1]="Group",ge[ge.List=2]="List",ge[ge.PercentSign=3]="PercentSign",ge[ge.PlusSign=4]="PlusSign",ge[ge.MinusSign=5]="MinusSign",ge[ge.Exponential=6]="Exponential",ge[ge.SuperscriptingExponent=7]="SuperscriptingExponent",ge[ge.PerMille=8]="PerMille",ge[ge.Infinity=9]="Infinity",ge[ge.NaN=10]="NaN",ge[ge.TimeSeparator=11]="TimeSeparator",ge[ge.CurrencyDecimal=12]="CurrencyDecimal",ge[ge.CurrencyGroup=13]="CurrencyGroup",ge))();function
Ci(t,i){const e=Hn(t),n=e[te.NumberSymbols][i];if(void
0===n){if(i===ge.CurrencyDecimal)return
e[te.NumberSymbols][ge.Decimal];if(i===ge.CurrencyGroup)return
e[te.NumberSymbols][ge.Group]}return n}const WL=/^(\d+)?\.((\d+)(-(\d+))?)?$/;function
xm(t){const i=parseInt(t);if(isNaN(i))throw new Error("Invalid integer literal when
parsing "+t);return i}function yy(t,i){i=encodeURIComponent(i);for(const e of
t.split(";")){const n=e.indexOf("="),[s,r]=-1==
n?[e,""]:[e.slice(0,n),e.slice(n+1)];if(s.trim()===i)return
decodeURIComponent(r)}return null}let Le=(()=>{class
t{constructor(e,n,s,r){this._iterableDiffers=e,this._keyValueDiffers=n,this._ngEl=s,this._renderer=r,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&&(Ia(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._keyValueDiffer.diff(this._rawClass);e&&this._applyKeyValueChanges(e)}}_applyKeyValueChanges(e){e.forEachAddedItem(n=>this._toggleClass(n.key,n.currentValue)),e.forEachChangedItem(n=>this._toggleClass(n.key,n.currentValue)),e.forEachRemovedItem(n=>{n.previousValue&&this._toggleClass(n.key,!1)})}_applyIterableChanges(e){e.forEachAddedItem(n=>{if("string"!=typeof
n.item)throw new Error(`NgClass can only toggle CSS classes expressed as strings, got
${ft(n.item)}`);this._toggleClass(n.item,!0)}),e.forEachRemovedItem(n=>this._toggleClass(n.item,!1))}_applyClasses(e){e&&(Array.isArray(e)||e
instanceof
Set?e.forEach(n=>this._toggleClass(n,!0)):Object.keys(e).forEach(n=>this._toggleClass(n,!!e[n])))}_removeClasses(e){e&&(Array.isArray(e)||e
instanceof
Set?e.forEach(n=>this._toggleClass(n,!1)):Object.keys(e).forEach(n=>this._toggleClass(n,!1)))}_toggleClass(e,n){(e=e.trim())&&e.split(/\s+/g).forEach(s=>{n?this._renderer.addClass(this._ngEl.nativeEle
ment,s):this._renderer.removeClass(this._ngEl.nativeElement,s)})}}return
t.\u0275fac=function(e){return
new(e||t)(D($a),D(Wa),D(De),D(gn))},t.\u0275dir=le({type:t,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"}}),t})();class
o4{constructor(i,e,n,s){this.$implicit=i,this.ngForOf=e,this.index=n,this.count=s}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 at=(()=>{class
t{constructor(e,n,s){this._viewContainer=e,this._template=n,this._differs=s,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;!this._differ&&e&&(this._differ=this._differs.find(e).create(this.ngForTrackBy))}if(this._differ){const
e=th
is._differ.diff(this._ngForOf);e&&this._applyChanges(e)}}_applyChanges(e){const
n=this._viewContainer;e.forEachOperation((s,r,o)=>{if(null==s.previousIndex)n.createEmbeddedView(this._template,new
o4(s.item,this._ngForOf,-1,-1),null===o?void 0:o);else if(null==o)n.remove(null===r?void
0:r);else if(null!==r){const u=n.get(r);n.move(u,o),wy(u,s)}});for(let
s=0,r=n.length;s<r;s++){const
u=n.get(s).context;u.index=s,u.count=r,u.ngForOf=this._ngForOf}e.forEachIdentityChange(s=>{wy(n.get(s.currentIndex),s)})}static
ngTemplateContextGuard(e,n){return!0}}return t.\u0275fac=function(e){return
new(e||t)(D(vi),D(bi),D($a))},t.\u0275dir=le({type:t,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"}}),t})();function
wy(t,i){t.context.$implicit=i.item}let Q=(()=>{class
t{constructor(e,n){this._viewContainer=e,this._context=new
a4,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=n
ull,this._thenTemplateRef=n}set
ngIf(e){this._context.$implicit=this._context.ngIf=e,this._updateView()}set
ngIfThen(e){Ty("ngIfThen",e),this._thenTemplateRef=e,this._thenViewRef=null,this._updateView()}set
ngIfElse(e){Ty("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,n){return!0}}return t.\u0275fac=function(e){return
new(e||t)(D(vi),D(bi))},t.\u0275dir=le({type:t,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"}}),t})();class
a4{constructor(){this.$implicit=null,this.n
gIf=null}}function Ty(t,i){if(i&&!i.createEmbeddedView)throw new Error(`${t} must
be a TemplateRef, but received '${ft(i)}'.`)}class
Mm{constructor(i,e){this._viewContainerRef=i,this._templateRef=e,this._created=!1}create(){this._created=!0,this._viewContainerRef.createEmbeddedView(this._templateRef)}destroy(){this._created=!1,this._viewContainerRef.clear()}enforceState(i){i&&!this._created?this.create():!i&&this._created&&this.destroy()}}let
gr=(()=>{class
t{constructor(){this._defaultUsed=!1,this._caseCount=0,this._lastCaseCheckIndex=0,this._lastCasesMatched=!1}set
ngSwitch(e){this._ngSwitch=e,0===this._caseCount&&this._updateDefaultCases(!0)}_addCase(){return
this._caseCount++}_addDefault(e){this._defaultViews||(this._defaultViews=[]),this._defaultViews.push(e)}_matchCase(e){const
n=e==this._ngSwitch;return
this._lastCasesMatched=this._lastCasesMatched||n,this._lastCaseCheckIndex++,this._lastCaseCheckIndex===this._caseCount&&(this._updateDefaultCases(!this._lastCasesMatched),this
._lastCaseCheckIndex=0,this._lastCasesMatched=!1),n}_updateDefaultCases(e){if(this._defaultViews&&e!==this._defaultUsed){this._defaultUsed=e;for(let
n=0;n<this._defaultViews.length;n++)this._defaultViews[n].enforceState(e)}}}return
t.\u0275fac=function(e){return
new(e||t)},t.\u0275dir=le({type:t,selectors:[["","ngSwitch",""]],inputs:{ngSwitch:"ngSwitch"}}),t})(),Ja=(()=>{class
t{constructor(e,n,s){this.ngSwitch=s,s._addCase(),this._view=new
Mm(e,n)}ngDoCheck(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase))}}return
t.\u0275fac=function(e){return
new(e||t)(D(vi),D(bi),D(gr,9))},t.\u0275dir=le({type:t,selectors:[["","ngSwitchCase",""]],inputs:{ngSwitchCase:"ngSwitchCase"}}),t})(),km=(()=>{class
t{constructor(e,n,s){s._addDefault(new Mm(e,n))}}return t.\u0275fac=function(e){return
new(e||t)(D(vi),D(bi),D(gr,9))},t.\u0275dir=le({type:t,selectors:[["","ngSwitchDefault",""]]}),t})(),lt=(()=>{class
t{constructor(e,n,s){this._ngEl=e,this._differs=n,this._renderer=s,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,n){const[s,r]=e.split(".");null!=(n=null!=n&&r?`${n}${r}`:n)?this._renderer.setStyle(this._ngEl.nativeElement,s,n):this._renderer.removeStyle(this._ngEl.nativeElement,s)}_applyChanges(e){e.forEachRemovedItem(n=>this._setStyle(n.key,null)),e.forEachAddedItem(n=>this._setStyle(n.key,n.currentValue)),e.forEachChangedItem(n=>this._setStyle(n.key,n.currentValue))}}return
t.\u0275fac=function(e){return
new(e||t)(D(De),D(Wa),D(gn))},t.\u0275dir=le({type:t,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"}}),t})(),Rt=(()=>{class
t{constructor(e){this._viewContainerRef=e,this._viewRef=null,this.ngTemplateOutletContext=null,this.ngTemplateOutlet=null}ngOnChanges(e){if(e.ngTemplateOutlet){const
n=this._viewContainerRef;this._viewRef&&n.remove(n.indexOf(thi
s._viewRef)),this._viewRef=this.ngTemplateOutlet?n.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)(D(vi))},t.\u0275dir=le({type:t,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet"},features:[fn]}),t})();function
Vi(t,i){return new re(2100,"")}class c4{createSubscription(i,e){return
i.subscribe({next:e,error:n=>{throw
n}})}dispose(i){i.unsubscribe()}onDestroy(i){i.unsubscribe()}}class
u4{createSubscription(i,e){return i.then(e,n=>{throw
n})}dispose(i){}onDestroy(i){}}const d4=new u4,p4=new c4;let xy=(()=>{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,n=>this._updateLatestValue(e,n))}_selectStrategy(e){if(Ra(e))return
d4;if(qv(e))return p4;throw
Vi()}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null}_updateLatestValue(e,n){e===this._obj&&(this._latestValue=n,this._ref.markForCheck())}}return
t.\u0275fac=function(e){return
new(e||t)(D(rt,16))},t.\u0275pipe=An({name:"async",type:t,pure:!1}),t})(),eu=(()=>{class
t{constructor(e){this._locale=e}transform(e,n,s){if(!function
Im(t){return!(null==t||""===t||t!=t)}(e))return
null;s=s||this._locale;try{return function XL(t,i,e){return function
Tm(t,i,e,n,s,r,o=!1){let u="",h=!1;if(isFinite(t)){let b=function t4(t){let
n,s,r,o,u,i=Math.abs(t)+"",e=0;for((s=i.indexOf("."))>-1&&(i=i.replace(".","")),(
r=i.search(/e/i))>0?(s<0&&(s=r),s+=+i.slice(r+1),i=i.substring(0,r)):s<0&&(s=i.length),r=0;"0"===i.charAt(r);r++);if(r===(u=i.length))n=[0],s=1;else{for(u--;"0"===i.charAt(u);)u--;for(s-=r,n=[],o=0;r<=u;r++,o++)n[o]=Number(i.charAt(r))}return
s>22&&(n=n.splice(0,21),e=s-1,s=1),{digits:n,exponent:e,integerLen:s}}(t);o&&(b=function
e4(t){if(0===t.digits[0])return t;const i=t.digits.length-t.integerLen;return
t.exponent?t.exponent+=2:(0===i?t.digits.push(0,0):1===i&&t.digits.push(0),t.integerLen+=2),t}(b));let
y=i.minInt,w=i.minFrac,M=i.maxFrac;if(r){const P=r.match(WL);if(null===P)throw new
Error(`${r} is not a valid digit info`);const
J=P[1],se=P[3],ke=P[5];null!=J&&(y=xm(J)),null!=se&&(w=xm(se)),null!=ke?M=xm(ke):null!=se&&w>M&&(M=w)}!function
n4(t,i,e){if(i>e)throw new Error(`The minimum number of digits after fraction (${i}) is
higher than the maximum (${e}).`);let n=t.digits,s=n.length-t.integerLen;const
r=Math.min(Math.max(i,s),e);let o=r+t.integerLen,u=n[o];if(o>0){n.splice(Mat
h.max(t.integerLen,o));for(let
w=o;w<n.length;w++)n[w]=0}else{s=Math.max(0,s),t.integerLen=1,n.length=Math.max(1,o=r+1),n[0]=0;for(let
w=1;w<o;w++)n[w]=0}if(u>=5)if(o-1<0){for(let
w=0;w>o;w--)n.unshift(0),t.integerLen++;n.unshift(1),t.integerLen++}else
n[o-1]++;for(;s<Math.max(0,r);s++)n.push(0);let h=0!==r;const
b=i+t.integerLen,y=n.reduceRight(function(w,M,E,L){return
L[E]=(M+=w)<10?M:M-10,h&&(0===L[E]&&E>=b?L.pop():h=!1),M>=10?1:0},0);y&&(n.unshift(y),t.integerLen++)}(b,w,M);let
E=b.digits,L=b.integerLen;const O=b.exponent;let
N=[];for(h=E.every(P=>!P);L<y;L++)E.unshift(0);for(;L<0;L++)E.unshift(0);L>0?N=E.splice(L,E.length):(N=E,E=[0]);const
G=[];for(E.length>=i.lgSize&&G.unshift(E.splice(-i.lgSize,E.length).join(""));E.length>i.gSize;)G.unshift(E.splice(-i.gSize,E.length).join(""));E.length&&G.unshift(E.join("")),u=G.join(Ci(e,n)),N.length&&(u+=Ci(e,s)+N.join("")),O&&(u+=Ci(e,ge.Exponential)+"+"+O)}else
u=Ci(e,ge.Infinity);return u=t<0&&!h?i.negPre+u+i.negSuf:i.posPre+u+i.posSu
f,u}(t,function Sm(t,i="-"){const
e={minInt:1,minFrac:0,maxFrac:0,posPre:"",posSuf:"",negPre:"",negSuf:"",gSize:0,lgSize:0},n=t.split(";"),s=n[0],r=n[1],o=-1!==s.indexOf(".")?s.split("."):[s.substring(0,s.lastIndexOf("0")+1),s.substring(s.lastIndexOf("0")+1)],u=o[0],h=o[1]||"";e.posPre=u.substr(0,u.indexOf("#"));for(let
y=0;y<h.length;y++){const
w=h.charAt(y);"0"===w?e.minFrac=e.maxFrac=y+1:"#"===w?e.maxFrac=y+1:e.posSuf+=w}const
b=u.split(",");if(e.gSize=b[1]?b[1].length:0,e.lgSize=b[2]||b[1]?(b[2]||b[1]).length:0,r){const
y=s.length-e.posPre.length-e.posSuf.length,w=r.indexOf("#");e.negPre=r.substr(0,w).replace(/'/g,""),e.negSuf=r.substr(w+y).replace(/'/g,"")}else
e.negPre=i+e.posPre,e.negSuf=e.posSuf;return e}(function bm(t,i){return
Hn(t)[te.NumberFormats][i]}(i,Wn.Decimal),Ci(i,ge.MinusSign)),i,ge.Group,ge.Decimal,e)}(function
Em(t){if("string"==typeof t&&!isNaN(Number(t)-parseFloat(t)))return
Number(t);if("number"!=typeof t)throw new Error(`${t} is not a number`);return
t}(e),
s,n)}catch(r){throw Vi()}}}return t.\u0275fac=function(e){return
new(e||t)(D(qs,16))},t.\u0275pipe=An({name:"number",type:t,pure:!0}),t})();let
My=(()=>{class t{transform(e,n,s){if(null==e)return null;if(!this.supports(e))throw
Vi();return e.slice(n,s)}supports(e){return"string"==typeof
e||Array.isArray(e)}}return t.\u0275fac=function(e){return
new(e||t)},t.\u0275pipe=An({name:"slice",type:t,pure:!1}),t})(),Fe=(()=>{class
t{}return t.\u0275fac=function(e){return
new(e||t)},t.\u0275mod=he({type:t}),t.\u0275inj=ue({}),t})();const
ky="browser";let R4=(()=>{class t{}return
t.\u0275prov=X({token:t,providedIn:"root",factory:()=>new
L4(K(Xt),window)}),t})();class
L4{constructor(i,e){this.document=i,this.window=e,this.offset=()=>[0,0]}setOffset(i){this.offset=Array.isArray(i)?()=>i:i}getScrollPosition(){return
this.supportsScrolling()?[this.window.pageXOffset,this.window.pageYOffset]:[0,0]}scrollToPosition(i){this.supportsScrolling()&&this.window.scrollTo(i[0],i[1])}scrollToAnchor(i){if(!th
is.supportsScrolling())return;const e=function O4(t,i){const
e=t.getElementById(i)||t.getElementsByName(i)[0];if(e)return
e;if("function"==typeof
t.createTreeWalker&&t.body&&(t.body.createShadowRoot||t.body.attachShadow)){const
n=t.createTreeWalker(t.body,NodeFilter.SHOW_ELEMENT);let s=n.currentNode;for(;s;){const
r=s.shadowRoot;if(r){const
o=r.getElementById(i)||r.querySelector(`[name="${i}"]`);if(o)return
o}s=n.nextNode()}}return
null}(this.document,i);e&&(this.scrollToElement(e),e.focus())}setHistoryScrollRestoration(i){if(this.supportScrollRestoration()){const
e=this.window.history;e&&e.scrollRestoration&&(e.scrollRestoration=i)}}scrollToElement(i){const
e=i.getBoundingClientRect(),n=e.left+this.window.pageXOffset,s=e.top+this.window.pageYOffset,r=this.offset();this.window.scrollTo(n-r[0],s-r[1])}supportScrollRestoration(){try{if(!this.supportsScrolling())return!1;const
i=Iy(this.window.history)||Iy(Object.getPrototypeOf(this.window.history));return!(!i||!i.writable&&!i.set)}cat
ch(i){return!1}}supportsScrolling(){try{return!!this.window&&!!this.window.scrollTo&&"pageXOffset"in
this.window}catch(i){return!1}}}function Iy(t){return
Object.getOwnPropertyDescriptor(t,"scrollRestoration")}class Ey{}class Rm
extends class A4 extends class
mL{}{constructor(){super(...arguments),this.supportsDOMEvents=!0}}{static
makeCurrent(){!function hL(t){zc||(zc=t)}(new Rm)}onAndCancel(i,e,n){return
i.addEventListener(e,n,!1),()=>{i.removeEventListener(e,n,!1)}}dispatchEvent(i,e){i.dispatchEvent(e)}remove(i){i.parentNode&&i.parentNode.removeChild(i)}createElement(i,e){return(e=e||this.getDefaultDocument()).createElement(i)}createHtmlDocument(){return
document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return
document}isElementNode(i){return i.nodeType===Node.ELEMENT_NODE}isShadowRoot(i){return i
instanceof
DocumentFragment}getGlobalEventTarget(i,e){return"window"===e?window:"document"===e?i:"body"===e?i.body:null}getBaseHref(i){const
e=function P4(){r
eturn
Ya=Ya||document.querySelector("base"),Ya?Ya.getAttribute("href"):null}();return
null==e?null:function
F4(t){tu=tu||document.createElement("a"),tu.setAttribute("href",t);const
i=tu.pathname;return"/"===i.charAt(0)?i:`/${i}`}(e)}resetBaseElement(){Ya=null}getUserAgent(){return
window.navigator.userAgent}getCookie(i){return yy(document.cookie,i)}}let tu,Ya=null;const
Ry=new be("TRANSITION_ID"),V4=[{provide:em,useFactory:function
N4(t,i,e){return()=>{e.get(tm).donePromise.then(()=>{const
n=ns(),s=i.querySelectorAll(`style[ng-transition="${t}"]`);for(let
r=0;r<s.length;r++)n.remove(s[r])})}},deps:[Ry,Xt,En],multi:!0}];class Lm{static
init(){!function BR(t){am=t}(new
Lm)}addToWindow(i){vt.getAngularTestability=(n,s=!0)=>{const
r=i.findTestabilityInTree(n,s);if(null==r)throw new Error("Could not find testability
for element.");return
r},vt.getAllAngularTestabilities=()=>i.getAllTestabilities(),vt.getAllAngularRootElements=()=>i.getAllRootElements(),vt.frameworkStabilizers||(vt.framew
orkStabilizers=[]),vt.frameworkStabilizers.push(n=>{const
s=vt.getAllAngularTestabilities();let r=s.length,o=!1;const
u=function(h){o=o||h,r--,0==r&&n(o)};s.forEach(function(h){h.whenStable(u)})})}findTestabilityInTree(i,e,n){if(null==e)return
null;const s=i.getTestability(e);return
null!=s?s:n?ns().isShadowRoot(e)?this.findTestabilityInTree(i,e.host,!0):this.findTestabilityInTree(i,e.parentElement,!0):null}}let
B4=(()=>{class t{build(){return new XMLHttpRequest}}return
t.\u0275fac=function(e){return
new(e||t)},t.\u0275prov=X({token:t,factory:t.\u0275fac}),t})();const nu=new
be("EventManagerPlugins");let iu=(()=>{class
t{constructor(e,n){this._zone=n,this._eventNameToPlugin=new
Map,e.forEach(s=>s.manager=this),this._plugins=e.slice().reverse()}addEventListener(e,n,s){return
this._findPluginFor(n).addEventListener(e,n,s)}addGlobalEventListener(e,n,s){return
this._findPluginFor(n).addGlobalEventListener(e,n,s)}getZone(){return
this._zone}_findPluginFor(e){const n=this._eventNameToPlug
in.get(e);if(n)return n;const s=this._plugins;for(let r=0;r<s.length;r++){const
o=s[r];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)(K(nu),K(nt))},t.\u0275prov=X({token:t,factory:t.\u0275fac}),t})();class
Ly{constructor(i){this._doc=i}addGlobalEventListener(i,e,n){const
s=ns().getGlobalEventTarget(this._doc,i);if(!s)throw new Error(`Unsupported event target
${s} for event ${e}`);return this.addEventListener(s,e,n)}}let Oy=(()=>{class
t{constructor(){this._stylesSet=new Set}addStyles(e){const n=new
Set;e.forEach(s=>{this._stylesSet.has(s)||(this._stylesSet.add(s),n.add(s))}),this.onStylesAdded(n)}onStylesAdded(e){}getAllStyles(){return
Array.from(this._stylesSet)}}return t.\u0275fac=function(e){return
new(e||t)},t.\u0275prov=X({token:t,factory:t.\u0275fac}),t})(),Za=(()=>{class t extends
Oy{constructor(e){super(),this._doc=e,this._hostNodes=new Map,this._hostN
odes.set(e.head,[])}_addStylesToHost(e,n,s){e.forEach(r=>{const
o=this._doc.createElement("style");o.textContent=r,s.push(n.appendChild(o))})}addHost(e){const
n=[];this._addStylesToHost(this._stylesSet,e,n),this._hostNodes.set(e,n)}removeHost(e){const
n=this._hostNodes.get(e);n&&n.forEach(Ay),this._hostNodes.delete(e)}onStylesAdded(e){this._hostNodes.forEach((n,s)=>{this._addStylesToHost(e,s,n)})}ngOnDestroy(){this._hostNodes.forEach(e=>e.forEach(Ay))}}return
t.\u0275fac=function(e){return
new(e||t)(K(Xt))},t.\u0275prov=X({token:t,factory:t.\u0275fac}),t})();function
Ay(t){ns().remove(t)}const
Om={svg:"http://www.w3.org/2000/svg",xhtml:"http://www.w3....
su(t,i,e){for(let n=0;n<i.length;n++){let
s=i[n];Array.isArray(s)?su(t,s,e):(s=s.replace(Am,t),e.push(s))}return e}function
Ny(t){return i=>{if
("__ngUnwrap__"===i)return
t;!1===t(i)&&(i.preventDefault(),i.returnValue=!1)}}let ru=(()=>{class
t{constructor(e,n,s){this.eventManager=e,this.sharedStylesHost=n,this.appId=s,this.rendererByCompId=new
Map,this.defaultRenderer=new Pm(e)}createRenderer(e,n){if(!e||!n)return
this.defaultRenderer;switch(n.encapsulation){case ki.Emulated:{let
s=this.rendererByCompId.get(n.id);return s||(s=new
j4(this.eventManager,this.sharedStylesHost,n,this.appId),this.rendererByCompId.set(n.id,s)),s.applyToHost(e),s}case
1:case ki.ShadowDom:return new
$4(this.eventManager,this.sharedStylesHost,e,n);default:if(!this.rendererByCompId.has(n.id)){const
s=su(n.id,n.styles,[]);this.sharedStylesHost.addStyles(s),this.rendererByCompId.set(n.id,this.defaultRenderer)}return
this.defaultRenderer}}begin(){}end(){}}return t.\u0275fac=function(e){return
new(e||t)(K(iu),K(Za),K(ja))},t.\u0275prov=X({token:t,factory:t.\u0275fac}),t})();class
Pm{constructor(i){this.eventManager=i,this.data=Object.create(null),this.des
troyNode=null}destroy(){}createElement(i,e){return
e?document.createElementNS(Om[e]||e,i):document.createElement(i)}createComment(i){return
document.createComment(i)}createText(i){return
document.createTextNode(i)}appendChild(i,e){i.appendChild(e)}insertBefore(i,e,n){i&&i.insertBefore(e,n)}removeChild(i,e){i&&i.removeChild(e)}selectRootElement(i,e){let
n="string"==typeof i?document.querySelector(i):i;if(!n)throw new Error(`The
selector "${i}" did not match any elements`);return
e||(n.textContent=""),n}parentNode(i){return i.parentNode}nextSibling(i){return
i.nextSibling}setAttribute(i,e,n,s){if(s){e=s+":"+e;const
r=Om[s];r?i.setAttributeNS(r,e,n):i.setAttribute(e,n)}else
i.setAttribute(e,n)}removeAttribute(i,e,n){if(n){const
s=Om[n];s?i.removeAttributeNS(s,e):i.removeAttribute(`${n}:${e}`)}else
i.removeAttribute(e)}addClass(i,e){i.classList.add(e)}removeClass(i,e){i.classList.remove(e)}setStyle(i,e,n,s){s&(ti.DashCase|ti.Important)?i.style.setProperty(e,n,s&ti.Important?"important":
""):i.style[e]=n}removeStyle(i,e,n){n&ti.DashCase?i.style.removeProperty(e):i.style[e]=""}setProperty(i,e,n){i[e]=n}setValue(i,e){i.nodeValue=e}listen(i,e,n){return"string"==typeof
i?this.eventManager.addGlobalEventListener(i,e,Ny(n)):this.eventManager.addEventListener(i,e,Ny(n))}}class
j4 extends Pm{constructor(i,e,n,s){super(i),this.component=n;const
r=su(s+"-"+n.id,n.styles,[]);e.addStyles(r),this.contentAttr=function
G4(t){return"_ngcontent-%COMP%".replace(Am,t)}(s+"-"+n.id),this.hostAttr=function
U4(t){return"_nghost-%COMP%".replace(Am,t)}(s+"-"+n.id)}applyToHost(i){super.setAttribute(i,this.hostAttr,"")}createElement(i,e){const
n=super.createElement(i,e);return
super.setAttribute(n,this.contentAttr,""),n}}class $4 extends
Pm{constructor(i,e,n,s){super(i),this.sharedStylesHost=e,this.hostEl=n,this.shadowRoot=n.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const
r=su(s.id,s.styles,[]);for(let o=0;o<r.length;o++){const
u=document.createElement("style"
);u.textContent=r[o],this.shadowRoot.appendChild(u)}}nodeOrShadowRoot(i){return
i===this.hostEl?this.shadowRoot:i}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}appendChild(i,e){return
super.appendChild(this.nodeOrShadowRoot(i),e)}insertBefore(i,e,n){return
super.insertBefore(this.nodeOrShadowRoot(i),e,n)}removeChild(i,e){return
super.removeChild(this.nodeOrShadowRoot(i),e)}parentNode(i){return
this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(i)))}}let W4=(()=>{class t
extends Ly{constructor(e){super(e)}supports(e){return!0}addEventListener(e,n,s){return
e.addEventListener(n,s,!1),()=>this.removeEventListener(e,n,s)}removeEventListener(e,n,s){return
e.removeEventListener(n,s)}}return t.\u0275fac=function(e){return
new(e||t)(K(Xt))},t.\u0275prov=X({token:t,factory:t.\u0275fac}),t})();const
By=["alt","control","meta","shift"],Q4={"\b":"Backspace","\t":"Tab","\x7f":"Delete","\x1b":"Escape",Del:"Delete",Esc:"Escape",Left:"ArrowLeft",Right:"ArrowRight",Up:"ArrowU
p",Down:"ArrowDown",Menu:"ContextMenu",Scroll:"ScrollLock",Win:"OS"},Hy={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"},J4={alt:t=>t.altKey,control:t=>t.ctrlKey,meta:t=>t.metaKey,shift:t=>t.shiftKey};let
Y4=(()=>{class t extends Ly{constructor(e){super(e)}supports(e){return
null!=t.parseEventName(e)}addEventListener(e,n,s){const
r=t.parseEventName(n),o=t.eventCallback(r.fullKey,s,this.manager.getZone());return
this.manager.getZone().runOutsideAngular(()=>ns().onAndCancel(e,r.domEventName,o))}static
parseEventName(e){const
n=e.toLowerCase().split("."),s=n.shift();if(0===n.length||"keydown"!==s&&"keyup"!==s)return
null;const r=t._normalizeKey(n.pop());let o="";if(By.forEach(h=>{const
b=n.indexOf(h);b>-1&&(n.splice(b,1),o+=h+".")}),o+=r,0!=n.length||0===r.length)return
null;const u={};return u.domEventName=s,u.fullKey=o,u}static getEventFullKey(e){let
n="",s=function Z4(t){let i=t.key;if(null==i){if(i=t.keyIdentifier,null==
i)return"Unidentified";i.startsWith("U+")&&(i=String.fromCharCode(parseInt(i.substring(2),16)),3===t.location&&Hy.hasOwnProperty(i)&&(i=Hy[i]))}return
Q4[i]||i}(e);return s=s.toLowerCase(),"
"===s?s="space":"."===s&&(s="dot"),By.forEach(r=>{r!=s&&J4[r](e)&&(n+=r+".")}),n+=s,n}static
eventCallback(e,n,s){return
r=>{t.getEventFullKey(r)===e&&s.runGuarded(()=>n(r))}}static
_normalizeKey(e){return"esc"===e?"escape":e}}return
t.\u0275fac=function(e){return
new(e||t)(K(Xt))},t.\u0275prov=X({token:t,factory:t.\u0275fac}),t})();const
nO=WC(uL,"browser",[{provide:qc,useValue:ky},{provide:BC,useValue:function
X4(){Rm.makeCurrent(),Lm.init()},multi:!0},{provide:Xt,useFactory:function tO(){return
function
Px(t){Zd=t}(document),document},deps:[]}]),iO=[{provide:hh,useValue:"root"},{provide:xa,useFactory:function
eO(){return new
xa},deps:[]},{provide:nu,useClass:W4,multi:!0,deps:[Xt,nt,qc]},{provide:nu,useClass:Y4,multi:!0,deps:[Xt]},{provide:ru,useClass:ru,deps:[iu,Za,ja]},{provide:Ba,useExistin
g:ru},{provide:Oy,useExisting:Za},{provide:Za,useClass:Za,deps:[Xt]},{provide:om,useClass:om,deps:[nt]},{provide:iu,useClass:iu,deps:[nu,nt]},{provide:Ey,useClass:B4,deps:[]}];let
qy=(()=>{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:ja,useValue:e.appId},{provide:Ry,useExisting:ja},V4]}}}return
t.\u0275fac=function(e){return
new(e||t)(K(t,12))},t.\u0275mod=he({type:t}),t.\u0275inj=ue({providers:iO,imports:[Fe,dL]}),t})();function
oe(...t){let i=t[t.length-1];return Vr(i)?(t.pop(),Ad(t,i)):Pd(t)}function _r(t,i){return
yn(t,i,1)}function Us(t,i){return function(n){return n.lift(new
mO(t,i))}}"undefined"!=typeof window&&window;class
mO{constructor(i,e){this.predicate=i,this.thisArg=e}call(i,e){return e.subscribe(new
fO(i,this.predicate,this.thisArg))}}class fO
extends
yt{constructor(i,e,n){super(i),this.predicate=e,this.thisArg=n,this.count=0}_next(i){let
e;try{e=this.predicate.call(this.thisArg,i,this.count++)}catch(n){return void
this.destination.error(n)}e&&this.destination.next(i)}}class zy{}class jy{}class
Cs{constructor(i){this.normalizedNames=new
Map,this.lazyUpdate=null,i?this.lazyInit="string"==typeof
i?()=>{this.headers=new Map,i.split("\n").forEach(e=>{const
n=e.indexOf(":");if(n>0){const
s=e.slice(0,n),r=s.toLowerCase(),o=e.slice(n+1).trim();this.maybeSetNormalizedName(s,r),this.headers.has(r)?this.headers.get(r).push(o):this.headers.set(r,[o])}})}:()=>{this.headers=new
Map,Object.keys(i).forEach(e=>{let n=i[e];const
s=e.toLowerCase();"string"==typeof
n&&(n=[n]),n.length>0&&(this.headers.set(s,n),this.maybeSetNormalizedName(e,s))})}:this.headers=new
Map}has(i){return this.init(),this.headers.has(i.toLowerCase())}get(i){this.init();const
e=this.headers.get(i.toLowerCase());return
e&&e.length>0?e[0]:null}keys(){return this.init
(),Array.from(this.normalizedNames.values())}getAll(i){return
this.init(),this.headers.get(i.toLowerCase())||null}append(i,e){return
this.clone({name:i,value:e,op:"a"})}set(i,e){return
this.clone({name:i,value:e,op:"s"})}delete(i,e){return
this.clone({name:i,value:e,op:"d"})}maybeSetNormalizedName(i,e){this.normalizedNames.has(e)||this.normalizedNames.set(e,i)}init(){this.lazyInit&&(this.lazyInit
instanceof
Cs?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(i=>this.applyUpdate(i)),this.lazyUpdate=null))}copyFrom(i){i.init(),Array.from(i.headers.keys()).forEach(e=>{this.headers.set(e,i.headers.get(e)),this.normalizedNames.set(e,i.normalizedNames.get(e))})}clone(i){const
e=new Cs;return e.lazyInit=this.lazyInit&&this.lazyInit instanceof
Cs?this.lazyInit:this,e.lazyUpdate=(this.lazyUpdate||[]).concat([i]),e}applyUpdate(i){const
e=i.name.toLowerCase();switch(i.op){case"a":case"s":let
n=i.value;if("string"==typeof n&&(n=[n]),0===n
.length)return;this.maybeSetNormalizedName(i.name,e);const
s=("a"===i.op?this.headers.get(e):void
0)||[];s.push(...n),this.headers.set(e,s);break;case"d":const
r=i.value;if(r){let
o=this.headers.get(e);if(!o)return;o=o.filter(u=>-1===r.indexOf(u)),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(i){this.init(),Array.from(this.normalizedNames.keys()).forEach(e=>i(this.normalizedNames.get(e),this.headers.get(e)))}}class
gO{encodeKey(i){return $y(i)}encodeValue(i){return $y(i)}decodeKey(i){return
decodeURIComponent(i)}decodeValue(i){return decodeURIComponent(i)}}const
bO=/%(\d[a-f0-9])/gi,vO={40:"@","3A":":",24:"$","2C":",","3B":";","2B":"+","3D":"=","3F":"?","2F":"/"};function
$y(t){return encodeURIComponent(t).replace(bO,(i,e)=>{var n;return
null!==(n=vO[e])&&void 0!==n?n:i})}function Wy(t){return`${t}`}class
ye{constructor(i={}){if(this.updates=null,this.cloneFrom=null,this.
encoder=i.encoder||new gO,i.fromString){if(i.fromObject)throw new Error("Cannot
specify both fromString and fromObject.");this.map=function _O(t,i){const e=new
Map;return
t.length>0&&t.replace(/^\?/,"").split("&").forEach(s=>{const
r=s.indexOf("="),[o,u]=-1==r?[i.decodeKey(s),""]:[i.decodeKey(s.slice(0,r)),i.decodeValue(s.slice(r+1))],h=e.get(o)||[];h.push(u),e.set(o,h)}),e}(i.fromString,this.encoder)}else
i.fromObject?(this.map=new Map,Object.keys(i.fromObject).forEach(e=>{const
n=i.fromObject[e];this.map.set(e,Array.isArray(n)?n:[n])})):this.map=null}has(i){return
this.init(),this.map.has(i)}get(i){this.init();const e=this.map.get(i);return
e?e[0]:null}getAll(i){return this.init(),this.map.get(i)||null}keys(){return
this.init(),Array.from(this.map.keys())}append(i,e){return
this.clone({param:i,value:e,op:"a"})}appendAll(i){const e=[];return
Object.keys(i).forEach(n=>{const
s=i[n];Array.isArray(s)?s.forEach(r=>{e.push({param:n,value:r,op:"a"})}):e.push({param:n,value:s,op:"a"})}),t
his.clone(e)}set(i,e){return
this.clone({param:i,value:e,op:"s"})}delete(i,e){return
this.clone({param:i,value:e,op:"d"})}toString(){return
this.init(),this.keys().map(i=>{const e=this.encoder.encodeKey(i);return
this.map.get(i).map(n=>e+"="+this.encoder.encodeValue(n)).join("&")}).filter(i=>""!==i).join("&")}clone(i){const
e=new ye({encoder:this.encoder});return
e.cloneFrom=this.cloneFrom||this,e.updates=(this.updates||[]).concat(i),e}init(){null===this.map&&(this.map=new
Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(i=>this.map.set(i,this.cloneFrom.map.get(i))),this.updates.forEach(i=>{switch(i.op){case"a":case"s":const
e=("a"===i.op?this.map.get(i.param):void
0)||[];e.push(Wy(i.value)),this.map.set(i.param,e);break;case"d":if(void
0===i.value){this.map.delete(i.param);break}{let n=this.map.get(i.param)||[];const
s=n.indexOf(Wy(i.value));-1!==s&&n.splice(s,1),n.length>0?this.map.set(i.param,n):this.map.delete(i.param)}}}),this.cloneFrom=this.upda
tes=null)}}class CO{constructor(){this.map=new Map}set(i,e){return
this.map.set(i,e),this}get(i){return
this.map.has(i)||this.map.set(i,i.defaultValue()),this.map.get(i)}delete(i){return
this.map.delete(i),this}has(i){return this.map.has(i)}keys(){return
this.map.keys()}}function Ky(t){return"undefined"!=typeof ArrayBuffer&&t
instanceof ArrayBuffer}function Qy(t){return"undefined"!=typeof Blob&&t
instanceof Blob}function Jy(t){return"undefined"!=typeof FormData&&t
instanceof FormData}class Xa{constructor(i,e,n,s){let
r;if(this.url=e,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=i.toUpperCase(),function
yO(t){switch(t){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||s?(this.body=void
0!==n?n:null,r=s):r=n,r&&(this.reportProgress=!!r.reportProgress,this.withCredentials=!!r.withCredentials,r.responseType&&(this.responseType=r.responseType),r.headers&&(this.headers=r.headers),r.con
text&&(this.context=r.context),r.params&&(this.params=r.params)),this.headers||(this.headers=new
Cs),this.context||(this.context=new CO),this.params){const
o=this.params.toString();if(0===o.length)this.urlWithParams=e;else{const
u=e.indexOf("?");this.urlWithParams=e+(-1===u?"?":u<e.length-1?"&":"")+o}}else
this.params=new ye,this.urlWithParams=e}serializeBody(){return
null===this.body?null:Ky(this.body)||Qy(this.body)||Jy(this.body)||function
wO(t){return"undefined"!=typeof URLSearchParams&&t instanceof
URLSearchParams}(this.body)||"string"==typeof this.body?this.body:this.body
instanceof ye?this.body.toString():"object"==typeof
this.body||"boolean"==typeof
this.body||Array.isArray(this.body)?JSON.stringify(this.body):this.body.toString()}detectContentTypeHeader(){return
null===this.body||Jy(this.body)?null:Qy(this.body)?this.body.type||null:Ky(this.body)?null:"string"==typeof
this.body?"text/plain":this.body instanceof
ye?"application/x-www-form-urlencoded;charset=UTF-8":"object"==
typeof this.body||"number"==typeof this.body||"boolean"==typeof
this.body?"application/json":null}clone(i={}){var e;const
n=i.method||this.method,s=i.url||this.url,r=i.responseType||this.responseType,o=void
0!==i.body?i.body:this.body,u=void
0!==i.withCredentials?i.withCredentials:this.withCredentials,h=void
0!==i.reportProgress?i.reportProgress:this.reportProgress;let
b=i.headers||this.headers,y=i.params||this.params;const
w=null!==(e=i.context)&&void 0!==e?e:this.context;return void
0!==i.setHeaders&&(b=Object.keys(i.setHeaders).reduce((M,E)=>M.set(E,i.setHeaders[E]),b)),i.setParams&&(y=Object.keys(i.setParams).reduce((M,E)=>M.set(E,i.setParams[E]),y)),new
Xa(n,s,o,{params:y,headers:b,context:w,reportProgress:h,responseType:r,withCredentials:u})}}var
nn=(()=>((nn=nn||{})[nn.Sent=0]="Sent",nn[nn.UploadProgress=1]="UploadProgress",nn[nn.ResponseHeader=2]="ResponseHeader",nn[nn.DownloadProgress=3]="DownloadProgress",nn[nn.Response=4]="Response",nn[nn.User=5]="User",nn))();class
Nm{co
nstructor(i,e=200,n="OK"){this.headers=i.headers||new Cs,this.status=void
0!==i.status?i.status:e,this.statusText=i.statusText||n,this.url=i.url||null,this.ok=this.status>=200&&this.status<300}}class
Vm extends Nm{constructor(i={}){super(i),this.type=nn.ResponseHeader}clone(i={}){return
new Vm({headers:i.headers||this.headers,status:void
0!==i.status?i.status:this.status,statusText:i.statusText||this.statusText,url:i.url||this.url||void
0})}}class ou extends Nm{constructor(i={}){super(i),this.type=nn.Response,this.body=void
0!==i.body?i.body:null}clone(i={}){return new ou({body:void
0!==i.body?i.body:this.body,headers:i.headers||this.headers,status:void
0!==i.status?i.status:this.status,statusText:i.statusText||this.statusText,url:i.url||this.url||void
0})}}class Yy extends Nm{constructor(i){super(i,0,"Unknown
Error"),this.name="HttpErrorResponse",this.ok=!1,this.message=this.status>=200&&this.status<300?`Http
failure during parsing for ${i.url||"(unknown url)"}`:`Http failure respo
nse for ${i.url||"(unknown url)"}: ${i.status}
${i.statusText}`,this.error=i.error||null}}function
Bm(t,i){return{body:i,headers:t.headers,context:t.context,observe:t.observe,params:t.params,reportProgress:t.reportProgress,responseType:t.responseType,withCredentials:t.withCredentials}}let
Bi=(()=>{class t{constructor(e){this.handler=e}request(e,n,s={}){let r;if(e instanceof
Xa)r=e;else{let h,b;h=s.headers instanceof Cs?s.headers:new
Cs(s.headers),s.params&&(b=s.params instanceof ye?s.params:new
ye({fromObject:s.params})),r=new Xa(e,n,void
0!==s.body?s.body:null,{headers:h,context:s.context,params:b,reportProgress:s.reportProgress,responseType:s.responseType||"json",withCredentials:s.withCredentials})}const
o=oe(r).pipe(_r(h=>this.handler.handle(h)));if(e instanceof
Xa||"events"===s.observe)return o;const u=o.pipe(Us(h=>h instanceof
ou));switch(s.observe||"body"){case"body":switch(r.responseType){case"arraybuffer":return
u.pipe(et(h=>{if(null!==h.body&&!(h.body instanceof ArrayBuffer
))throw new Error("Response is not an ArrayBuffer.");return
h.body}));case"blob":return u.pipe(et(h=>{if(null!==h.body&&!(h.body
instanceof Blob))throw new Error("Response is not a Blob.");return
h.body}));case"text":return
u.pipe(et(h=>{if(null!==h.body&&"string"!=typeof h.body)throw new
Error("Response is not a string.");return h.body}));default:return
u.pipe(et(h=>h.body))}case"response":return u;default:throw new
Error(`Unreachable: unhandled observe type ${s.observe}}`)}}delete(e,n={}){return
this.request("DELETE",e,n)}get(e,n={}){return
this.request("GET",e,n)}head(e,n={}){return
this.request("HEAD",e,n)}jsonp(e,n){return
this.request("JSONP",e,{params:(new
ye).append(n,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(e,n={}){return
this.request("OPTIONS",e,n)}patch(e,n,s={}){return
this.request("PATCH",e,Bm(s,n))}post(e,n,s={}){return
this.request("POST",e,Bm(s,n))}put(e,n,s={}){return
this.request("PUT",e,Bm(s,n))}}return t.\u0275fac=function(e){return new(e||t
)(K(zy))},t.\u0275prov=X({token:t,factory:t.\u0275fac}),t})();class
Zy{constructor(i,e){this.next=i,this.interceptor=e}handle(i){return
this.interceptor.intercept(i,this.next)}}const Xy=new
be("HTTP_INTERCEPTORS");let TO=(()=>{class t{intercept(e,n){return
n.handle(e)}}return t.\u0275fac=function(e){return
new(e||t)},t.\u0275prov=X({token:t,factory:t.\u0275fac}),t})();const
SO=/^\)\]\}',?\n/;let e0=(()=>{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 Je(n=>{const
s=this.xhrFactory.build();if(s.open(e.method,e.urlWithParams),e.withCredentials&&(s.withCredentials=!0),e.headers.forEach((E,L)=>s.setRequestHeader(E,L.join(","))),e.headers.has("Accept")||s.setRequestHeader("Accept","application/json,
text/plain, */*"),!e.headers.has("Content-Type")){const
E=e.detectContentTypeHeader();null!==E&&s.setRequestHeader("Content-Type",E)}if(e.responseType){const
E
=e.responseType.toLowerCase();s.responseType="json"!==E?E:"text"}const
r=e.serializeBody();let o=null;const u=()=>{if(null!==o)return o;const
E=s.statusText||"OK",L=new Cs(s.getAllResponseHeaders()),O=function
xO(t){return"responseURL"in
t&&t.responseURL?t.responseURL:/^X-Request-URL:/m.test(t.getAllResponseHeaders())?t.getResponseHeader("X-Request-URL"):null}(s)||e.url;return
o=new
Vm({headers:L,status:s.status,statusText:E,url:O}),o},h=()=>{let{headers:E,status:L,statusText:O,url:N}=u(),G=null;204!==L&&(G=void
0===s.response?s.responseText:s.response),0===L&&(L=G?200:0);let
P=L>=200&&L<300;if("json"===e.responseType&&"string"==typeof
G){const
J=G;G=G.replace(SO,"");try{G=""!==G?JSON.parse(G):null}catch(se){G=J,P&&(P=!1,G={error:se,text:G})}}P?(n.next(new
ou({body:G,headers:E,status:L,statusText:O,url:N||void 0})),n.complete()):n.error(new
Yy({error:G,headers:E,status:L,statusText:O,url:N||void
0}))},b=E=>{const{url:L}=u(),O=new
Yy({error:E,status:s.status||0,statusText:s.statusTex
t||"Unknown Error",url:L||void 0});n.error(O)};let y=!1;const
w=E=>{y||(n.next(u()),y=!0);let
L={type:nn.DownloadProgress,loaded:E.loaded};E.lengthComputable&&(L.total=E.total),"text"===e.responseType&&!!s.responseText&&(L.partialText=s.responseText),n.next(L)},M=E=>{let
L={type:nn.UploadProgress,loaded:E.loaded};E.lengthComputable&&(L.total=E.total),n.next(L)};return
s.addEventListener("load",h),s.addEventListener("error",b),s.addEventListener("timeout",b),s.addEventListener("abort",b),e.reportProgress&&(s.addEventListener("progress",w),null!==r&&s.upload&&s.upload.addEventListener("progress",M)),s.send(r),n.next({type:nn.Sent}),()=>{s.removeEventListener("error",b),s.removeEventListener("abort",b),s.removeEventListener("load",h),s.removeEventListener("timeout",b),e.reportProgress&&(s.removeEventListener("progress",w),null!==r&&s.upload&&s.upload.removeEventListener("progress",M)),s.readyState!==s.DONE&&s.abort()}})}}return
t.\u0275fac=function(e){return new(e||t)(K(Ey))},t.\u0275p
rov=X({token:t,factory:t.\u0275fac}),t})();const Hm=new
be("XSRF_COOKIE_NAME"),qm=new be("XSRF_HEADER_NAME");class t0{}let
DO=(()=>{class
t{constructor(e,n,s){this.doc=e,this.platform=n,this.cookieName=s,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=yy(e,this.cookieName),this.lastCookieString=e),this.lastToken}}return
t.\u0275fac=function(e){return
new(e||t)(K(Xt),K(qc),K(Hm))},t.\u0275prov=X({token:t,factory:t.\u0275fac}),t})(),Gm=(()=>{class
t{constructor(e,n){this.tokenService=e,this.headerName=n}intercept(e,n){const
s=e.url.toLowerCase();if("GET"===e.method||"HEAD"===e.method||s.startsWith("http://")||s.startsWith("https://"))return
n.handle(e);const r=this.tokenService.getToken();return
null!==r&&!e.headers.has(this.headerName)&&(e=e.clone({headers:e.headers.set(this.headerName,r)})),n.handle(e)}}return
t.\u0275fac=f
unction(e){return
new(e||t)(K(t0),K(qm))},t.\u0275prov=X({token:t,factory:t.\u0275fac}),t})(),MO=(()=>{class
t{constructor(e,n){this.backend=e,this.injector=n,this.chain=null}handle(e){if(null===this.chain){const
n=this.injector.get(Xy,[]);this.chain=n.reduceRight((s,r)=>new
Zy(s,r),this.backend)}return this.chain.handle(e)}}return t.\u0275fac=function(e){return
new(e||t)(K(jy),K(En))},t.\u0275prov=X({token:t,factory:t.\u0275fac}),t})(),kO=(()=>{class
t{static disable(){return{ngModule:t,providers:[{provide:Gm,useClass:TO}]}}static
withOptions(e={}){return{ngModule:t,providers:[e.cookieName?{provide:Hm,useValue:e.cookieName}:[],e.headerName?{provide:qm,useValue:e.headerName}:[]]}}}return
t.\u0275fac=function(e){return
new(e||t)},t.\u0275mod=he({type:t}),t.\u0275inj=ue({providers:[Gm,{provide:Xy,useExisting:Gm,multi:!0},{provide:t0,useClass:DO},{provide:Hm,useValue:"XSRF-TOKEN"},{provide:qm,useValue:"X-XSRF-TOKEN"}]}),t})(),IO=(()=>{class
t{}return t.\u0275fac=function(e){return new(
e||t)},t.\u0275mod=he({type:t}),t.\u0275inj=ue({providers:[Bi,{provide:zy,useClass:MO},e0,{provide:jy,useExisting:e0}],imports:[[kO.withOptions({cookieName:"XSRF-TOKEN",headerName:"X-XSRF-TOKEN"})]]}),t})();function
is(t){return!!t&&(t instanceof Je||"function"==typeof
t.lift&&"function"==typeof t.subscribe)}function
n0(...t){if(1===t.length){const i=t[0];if(Nr(i))return
au(i,null);if(Ld(i)&&Object.getPrototypeOf(i)===Object.prototype){const
e=Object.keys(i);return au(e.map(n=>i[n]),e)}}if("function"==typeof
t[t.length-1]){const i=t.pop();return
au(t=1===t.length&&Nr(t[0])?t[0]:t,null).pipe(et(e=>i(...e)))}return
au(t,null)}function au(t,i){return new Je(e=>{const n=t.length;if(0===n)return void
e.complete();const s=new Array(n);let r=0,o=0;for(let u=0;u<n;u++){const h=Mn(t[u]);let
b=!1;e.add(h.subscribe({next:y=>{b||(b=!0,o++),s[u]=y},error:y=>e.error(y),complete:()=>{r++,(r===n||!b)&&(o===n&&e.next(i?i.reduce((y,w,M)=>(y[w]=s[M],y),{}):s),e.complete())}}))}})}function
el(...t){ret
urn function EO(){return ea(1)}()(oe(...t))}const Io=new Je(t=>t.complete());function
lu(t){return t?function RO(t){return new
Je(i=>t.schedule(()=>i.complete()))}(t):Io}function cu(t){return new Je(i=>{let
e;try{e=t()}catch(s){return void i.error(s)}return(e?Mn(e):lu()).subscribe(i)})}const
s0=(()=>{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 br(t){return
i=>0===t?lu():i.lift(new LO(t))}class
LO{constructor(i){if(this.total=i,this.total<0)throw new s0}call(i,e){return
e.subscribe(new OO(i,this.total))}}class OO extends
yt{constructor(i,e){super(i),this.total=e,this.count=0}_next(i){const
e=this.total,n=++this.count;n<=e&&(this.destination.next(i),n===e&&(this.destination.complete(),this.unsubscribe()))}}class
AO extends Et{constructor(i,e){super()}schedule(i,e=0){return this}}class uu extends
AO{constructor(i,e){super(i,e),this.scheduler=i,this.wor
k=e,this.pending=!1}schedule(i,e=0){if(this.closed)return this;this.state=i;const
n=this.id,s=this.scheduler;return
null!=n&&(this.id=this.recycleAsyncId(s,n,e)),this.pending=!0,this.delay=e,this.id=this.id||this.requestAsyncId(s,this.id,e),this}requestAsyncId(i,e,n=0){return
setInterval(i.flush.bind(i,this),n)}recycleAsyncId(i,e,n=0){if(null!==n&&this.delay===n&&!1===this.pending)return
e;clearInterval(e)}execute(i,e){if(this.closed)return new Error("executing a
cancelled action");this.pending=!1;const n=this._execute(i,e);if(n)return
n;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(i,e){let
s,n=!1;try{this.work(i)}catch(r){n=!0,s=!!r&&r||new Error(r)}if(n)return
this.unsubscribe(),s}_unsubscribe(){const
i=this.id,e=this.scheduler,n=e.actions,s=n.indexOf(this);this.work=null,this.state=null,this.pending=!1,this.scheduler=null,-1!==s&&n.splice(s,1),null!=i&&(this.id=this.recycleAsyncId(e,i,null)),this.delay=null}}let
r0=(()=>{cl
ass t{constructor(e,n=t.now){this.SchedulerAction=e,this.now=n}schedule(e,n=0,s){return
new this.SchedulerAction(this,e).schedule(s,n)}}return t.now=()=>Date.now(),t})();class
Hi extends
r0{constructor(i,e=r0.now){super(i,()=>Hi.delegate&&Hi.delegate!==this?Hi.delegate.now():e()),this.actions=[],this.active=!1,this.scheduled=void
0}schedule(i,e=0,n){return
Hi.delegate&&Hi.delegate!==this?Hi.delegate.schedule(i,e,n):super.schedule(i,e,n)}flush(i){const{actions:e}=this;if(this.active)return
void e.push(i);let
n;this.active=!0;do{if(n=i.execute(i.state,i.delay))break}while(i=e.shift());if(this.active=!1,n){for(;i=e.shift();)i.unsubscribe();throw
n}}}const NO=new class FO extends Hi{}(class PO extends
uu{constructor(i,e){super(i,e),this.scheduler=i,this.work=e}schedule(i,e=0){return
e>0?super.schedule(i,e):(this.delay=e,this.state=i,this.scheduler.flush(this),this)}execute(i,e){return
e>0||this.closed?super.execute(i,e):this._execute(i,e)}requestAsyncId(i,e,n=0){return
null!==n&&n>0||nu
ll===n&&this.delay>0?super.requestAsyncId(i,e,n):i.flush(this)}});function
tl(t,i){return new
Je(i?e=>i.schedule(VO,0,{error:t,subscriber:e}):e=>e.error(t))}function
VO({error:t,subscriber:i}){i.error(t)}class
Kn{constructor(i,e,n){this.kind=i,this.value=e,this.error=n,this.hasValue="N"===i}observe(i){switch(this.kind){case"N":return
i.next&&i.next(this.value);case"E":return
i.error&&i.error(this.error);case"C":return
i.complete&&i.complete()}}do(i,e,n){switch(this.kind){case"N":return
i&&i(this.value);case"E":return
e&&e(this.error);case"C":return n&&n()}}accept(i,e,n){return
i&&"function"==typeof
i.next?this.observe(i):this.do(i,e,n)}toObservable(){switch(this.kind){case"N":return
oe(this.value);case"E":return tl(this.error);case"C":return lu()}throw
new Error("unexpected notification kind value")}static createNext(i){return void
0!==i?new Kn("N",i):Kn.undefinedValueNotification}static createError(i){return
new Kn("E",void 0,i)}static createComplete(){return Kn.completeNotificatio
n}}Kn.completeNotification=new Kn("C"),Kn.undefinedValueNotification=new
Kn("N",void 0);class du extends
yt{constructor(i,e,n=0){super(i),this.scheduler=e,this.delay=n}static
dispatch(i){const{notification:e,destination:n}=i;e.observe(n),this.unsubscribe()}scheduleMessage(i){this.destination.add(this.scheduler.schedule(du.dispatch,this.delay,new
HO(i,this.destination)))}_next(i){this.scheduleMessage(Kn.createNext(i))}_error(i){this.scheduleMessage(Kn.createError(i)),this.unsubscribe()}_complete(){this.scheduleMessage(Kn.createComplete()),this.unsubscribe()}}class
HO{constructor(i,e){this.notification=i,this.destination=e}}class qO extends
ct{constructor(i=Number.POSITIVE_INFINITY,e=Number.POSITIVE_INFINITY,n){super(),this.scheduler=n,this._events=[],this._infiniteTimeWindow=!1,this._bufferSize=i<1?1:i,this._windowTime=e<1?1:e,e===Number.POSITIVE_INFINITY?(this._infiniteTimeWindow=!0,this.next=this.nextInfiniteTimeWindow):this.next=this.nextTimeWindow}nextInfiniteTimeWindow(i){if(!th
is.isStopped){const
e=this._events;e.push(i),e.length>this._bufferSize&&e.shift()}super.next(i)}nextTimeWindow(i){this.isStopped||(this._events.push(new
GO(this._getNow(),i)),this._trimBufferThenGetEvents()),super.next(i)}_subscribe(i){const
e=this._infiniteTimeWindow,n=e?this._events:this._trimBufferThenGetEvents(),s=this.scheduler,r=n.length;let
o;if(this.closed)throw new
nr;if(this.isStopped||this.hasError?o=Et.EMPTY:(this.observers.push(i),o=new
Eg(this,i)),s&&i.add(i=new du(i,s)),e)for(let
u=0;u<r&&!i.closed;u++)i.next(n[u]);else for(let
u=0;u<r&&!i.closed;u++)i.next(n[u].value);return
this.hasError?i.error(this.thrownError):this.isStopped&&i.complete(),o}_getNow(){return(this.scheduler||NO).now()}_trimBufferThenGetEvents(){const
i=this._getNow(),e=this._bufferSize,n=this._windowTime,s=this._events,r=s.length;let
o=0;for(;o<r&&!(i-s[o].time<n);)o++;return
r>e&&(o=Math.max(o,r-e)),o>0&&s.splice(0,o),s}}class
GO{constructor(i,e){this.time=i,this.value=e}}function Um(t,i,e){let n;
return n=t&&"object"==typeof
t?t:{bufferSize:t,windowTime:i,refCount:!1,scheduler:e},s=>s.lift(function
UO({bufferSize:t=Number.POSITIVE_INFINITY,windowTime:i=Number.POSITIVE_INFINITY,refCount:e,scheduler:n}){let
s,o,r=0,u=!1,h=!1;return function(y){let w;r++,!s||u?(u=!1,s=new
qO(t,i,n),w=s.subscribe(this),o=y.subscribe({next(M){s.next(M)},error(M){u=!0,s.error(M)},complete(){h=!0,o=void
0,s.complete()}}),h&&(o=void
0)):w=s.subscribe(this),this.add(()=>{r--,w.unsubscribe(),w=void
0,o&&!h&&e&&0===r&&(o.unsubscribe(),o=void 0,s=void
0)})}}(n))}function qi(t,i){return"function"==typeof
i?e=>e.pipe(qi((n,s)=>Mn(t(n,s)).pipe(et((r,o)=>i(n,r,s,o))))):e=>e.lift(new
zO(t))}class zO{constructor(i){this.project=i}call(i,e){return e.subscribe(new
jO(i,this.project))}}class jO extends
Zo{constructor(i,e){super(i),this.project=e,this.index=0}_next(i){let e;const
n=this.index++;try{e=this.project(i,n)}catch(s){return void
this.destination.error(s)}this._innerSub(e)}_innerSub(i){const e=this.inner
Subscription;e&&e.unsubscribe();const n=new
Yo(this),s=this.destination;s.add(n),this.innerSubscription=Xo(i,n),this.innerSubscription!==n&&s.add(this.innerSubscription)}_complete(){const{innerSubscription:i}=this;(!i||i.closed)&&super._complete(),this.unsubscribe()}_unsubscribe(){this.innerSubscription=void
0}notifyComplete(){this.innerSubscription=void
0,this.isStopped&&super._complete()}notifyNext(i){this.destination.next(i)}}class
nl{}let o0=(()=>{class t extends nl{getTranslation(e){return oe({})}}return
t.\u0275fac=function(){let i;return
function(n){return(i||(i=on(t)))(n||t)}}(),t.\u0275prov=X({token:t,factory:t.\u0275fac}),t})();class
zm{}let a0=(()=>{class t{handle(e){return e.key}}return t.\u0275fac=function(e){return
new(e||t)},t.\u0275prov=X({token:t,factory:t.\u0275fac}),t})();function
il(t,i){if(t===i)return!0;if(null===t||null===i)return!1;if(t!=t&&i!=i)return!0;let
s,r,o,e=typeof t;if(e==typeof
i&&"object"==e){if(!Array.isArray(t)){if(Array.isArray(i))return!1;for(r
in o=Object.create(null),t){if(!il(t[r],i[r]))return!1;o[r]=!0}for(r in i)if(!(r in
o)&&void
0!==i[r])return!1;return!0}if(!Array.isArray(i))return!1;if((s=t.length)==i.length){for(r=0;r<s;r++)if(!il(t[r],i[r]))return!1;return!0}}return!1}function
ri(t){return null!=t}function jm(t){return t&&"object"==typeof
t&&!Array.isArray(t)}function l0(t,i){let e=Object.assign({},t);return
jm(t)&&jm(i)&&Object.keys(i).forEach(n=>{jm(i[n])?n in
t?e[n]=l0(t[n],i[n]):Object.assign(e,{[n]:i[n]}):Object.assign(e,{[n]:i[n]})}),e}class
pu{}let c0=(()=>{class t extends
pu{constructor(){super(...arguments),this.templateMatcher=/{{\s?([^{}\s]*)\s?}}/g}interpolate(e,n){let
s;return s="string"==typeof
e?this.interpolateString(e,n):"function"==typeof
e?this.interpolateFunction(e,n):e,s}getValue(e,n){let s="string"==typeof
n?n.split("."):[n];n="";do{n+=s.shift(),!ri(e)||!ri(e[n])||"object"!=typeof
e[n]&&s.length?s.length?n+=".":e=void
0:(e=e[n],n="")}while(s.length);return e}interpolateFunction(e,n){return
e(n)}interpolateString(e,n){return n?e.replace(this.templateMatcher,(s,r)=>{let
o=this.getValue(n,r);return ri(o)?o:s}):e}}return t.\u0275fac=function(){let i;return
function(n){return(i||(i=on(t)))(n||t)}}(),t.\u0275prov=X({token:t,factory:t.\u0275fac}),t})();class
hu{}let u0=(()=>{class t extends hu{compile(e,n){return
e}compileTranslations(e,n){return e}}return t.\u0275fac=function(){let i;return
function(n){return(i||(i=on(t)))(n||t)}}(),t.\u0275prov=X({token:t,factory:t.\u0275fac}),t})();class
d0{constructor(){this.currentLang=this.defaultLang,this.translations={},this.langs=[],this.onTranslationChange=new
H,this.onLangChange=new H,this.onDefaultLangChange=new H}}const $m=new
be("USE_STORE"),Wm=new be("USE_DEFAULT_LANG"),Km=new
be("DEFAULT_LANGUAGE"),Qm=new be("USE_EXTEND");let Oe=(()=>{class
t{constructor(e,n,s,r,o,u=!0,h=!1,b=!1,y){this.store=e,this.currentLoader=n,this.compiler=s,this.parser=r,this.missingTranslationHandler=o,this.useDefaultLang=u,this.isolate=h,this.extend
=b,this.pending=!1,this._onTranslationChange=new H,this._onLangChange=new
H,this._onDefaultLangChange=new
H,this._langs=[],this._translations={},this._translationRequests={},y&&this.setDefaultLang(y)}get
onTranslationChange(){return
this.isolate?this._onTranslationChange:this.store.onTranslationChange}get
onLangChange(){return this.isolate?this._onLangChange:this.store.onLangChange}get
onDefaultLangChange(){return
this.isolate?this._onDefaultLangChange:this.store.onDefaultLangChange}get
defaultLang(){return this.isolate?this._defaultLang:this.store.defaultLang}set
defaultLang(e){this.isolate?this._defaultLang=e:this.store.defaultLang=e}get
currentLang(){return this.isolate?this._currentLang:this.store.currentLang}set
currentLang(e){this.isolate?this._currentLang=e:this.store.currentLang=e}get
langs(){return this.isolate?this._langs:this.store.langs}set
langs(e){this.isolate?this._langs=e:this.store.langs=e}get translations(){return
this.isolate?this._translations:this.store.translat
ions}set
translations(e){this.isolate?this._translations=e:this.store.translations=e}setDefaultLang(e){if(e===this.defaultLang)return;let
n=this.retrieveTranslations(e);void
0!==n?(null==this.defaultLang&&(this.defaultLang=e),n.pipe(br(1)).subscribe(s=>{this.changeDefaultLang(e)})):this.changeDefaultLang(e)}getDefaultLang(){return
this.defaultLang}use(e){if(e===this.currentLang)return oe(this.translations[e]);let
n=this.retrieveTranslations(e);return void
0!==n?(this.currentLang||(this.currentLang=e),n.pipe(br(1)).subscribe(s=>{this.changeLang(e)}),n):(this.changeLang(e),oe(this.translations[e]))}retrieveTranslations(e){let
n;return(void
0===this.translations[e]||this.extend)&&(this._translationRequests[e]=this._translationRequests[e]||this.getTranslation(e),n=this._translationRequests[e]),n}getTranslation(e){this.pending=!0;const
n=this.currentLoader.getTranslation(e).pipe(Um(1),br(1));return
this.loadingTranslations=n.pipe(et(s=>this.compiler.compileTranslations(s,e)),Um(1),br(1))
,this.loadingTranslations.subscribe({next:s=>{this.translations[e]=this.extend&&this.translations[e]?Object.assign(Object.assign({},s),this.translations[e]):s,this.updateLangs(),this.pending=!1},error:s=>{this.pending=!1}}),n}setTranslation(e,n,s=!1){n=this.compiler.compileTranslations(n,e),this.translations[e]=(s||this.extend)&&this.translations[e]?l0(this.translations[e],n):n,this.updateLangs(),this.onTranslationChange.emit({lang:e,translations:this.translations[e]})}getLangs(){return
this.langs}addLangs(e){e.forEach(n=>{-1===this.langs.indexOf(n)&&this.langs.push(n)})}updateLangs(){this.addLangs(Object.keys(this.translations))}getParsedResult(e,n,s){let
r;if(n instanceof Array){let o={},u=!1;for(let h of
n)o[h]=this.getParsedResult(e,h,s),is(o[h])&&(u=!0);return
u?n0(n.map(b=>is(o[b])?o[b]:oe(o[b]))).pipe(et(b=>{let y={};return
b.forEach((w,M)=>{y[n[M]]=w}),y})):o}if(e&&(r=this.parser.interpolate(this.parser.getValue(e,n),s)),void
0===r&&null!=this.defaultLang&&this.defaultLang!=
=this.currentLang&&this.useDefaultLang&&(r=this.parser.interpolate(this.parser.getValue(this.translations[this.defaultLang],n),s)),void
0===r){let o={key:n,translateService:this};void
0!==s&&(o.interpolateParams=s),r=this.missingTranslationHandler.handle(o)}return
void 0!==r?r:n}get(e,n){if(!ri(e)||!e.length)throw new Error('Parameter
"key" required');if(this.pending)return
this.loadingTranslations.pipe(_r(s=>is(s=this.getParsedResult(s,e,n))?s:oe(s)));{let
s=this.getParsedResult(this.translations[this.currentLang],e,n);return
is(s)?s:oe(s)}}getStreamOnTranslationChange(e,n){if(!ri(e)||!e.length)throw new
Error('Parameter "key" required');return
el(cu(()=>this.get(e,n)),this.onTranslationChange.pipe(qi(s=>{const
r=this.getParsedResult(s.translations,e,n);return"function"==typeof
r.subscribe?r:oe(r)})))}stream(e,n){if(!ri(e)||!e.length)throw new Error('Parameter
"key" required');return
el(cu(()=>this.get(e,n)),this.onLangChange.pipe(qi(s=>{const
r=this.getParsedResult(s.translations,
e,n);return is(r)?r:oe(r)})))}instant(e,n){if(!ri(e)||!e.length)throw new
Error('Parameter "key" required');let
s=this.getParsedResult(this.translations[this.currentLang],e,n);if(is(s)){if(e instanceof
Array){let r={};return e.forEach((o,u)=>{r[e[u]]=e[u]}),r}return e}return
s}set(e,n,s=this.currentLang){this.translations[s][e]=this.compiler.compile(n,s),this.updateLangs(),this.onTranslationChange.emit({lang:s,translations:this.translations[s]})}changeLang(e){this.currentLang=e,this.onLangChange.emit({lang:e,translations:this.translations[e]}),null==this.defaultLang&&this.changeDefaultLang(e)}changeDefaultLang(e){this.defaultLang=e,this.onDefaultLangChange.emit({lang:e,translations:this.translations[e]})}reloadLang(e){return
this.resetLang(e),this.getTranslation(e)}resetLang(e){this._translationRequests[e]=void
0,this.translations[e]=void 0}getBrowserLang(){if("undefined"==typeof
window||void 0===window.navigator)return;let
e=window.navigator.languages?window.navigator.languages[0]:
null;return
e=e||window.navigator.language||window.navigator.browserLanguage||window.navigator.userLanguage,void
0!==e?(-1!==e.indexOf("-")&&(e=e.split("-")[0]),-1!==e.indexOf("_")&&(e=e.split("_")[0]),e):void
0}getBrowserCultureLang(){if("undefined"==typeof window||void
0===window.navigator)return;let
e=window.navigator.languages?window.navigator.languages[0]:null;return
e=e||window.navigator.language||window.navigator.browserLanguage||window.navigator.userLanguage,e}}return
t.\u0275fac=function(e){return
new(e||t)(K(d0),K(nl),K(hu),K(pu),K(zm),K(Wm),K($m),K(Qm),K(Km))},t.\u0275prov=X({token:t,factory:t.\u0275fac}),t})(),mu=(()=>{class
t{constructor(e,n,s){this.translateService=e,this.element=n,this._ref=s,this.onTranslationChangeSub||(this.onTranslationChangeSub=this.translateService.onTranslationChange.subscribe(r=>{r.lang===this.translateService.currentLang&&this.checkNodes(!0,r.translations)})),this.onLangChangeSub||(this.onLangChangeSub=this.translateService.onLangChange.subsc
ribe(r=>{this.checkNodes(!0,r.translations)})),this.onDefaultLangChangeSub||(this.onDefaultLangChangeSub=this.translateService.onDefaultLangChange.subscribe(r=>{this.checkNodes(!0)}))}set
translate(e){e&&(this.key=e,this.checkNodes())}set
translateParams(e){il(this.currentParams,e)||(this.currentParams=e,this.checkNodes(!0))}ngAfterViewChecked(){this.checkNodes()}checkNodes(e=!1,n){let
s=this.element.nativeElement.childNodes;s.length||(this.setContent(this.element.nativeElement,this.key),s=this.element.nativeElement.childNodes);for(let
r=0;r<s.length;++r){let o=s[r];if(3===o.nodeType){let
u;if(e&&(o.lastKey=null),ri(o.lookupKey))u=o.lookupKey;else
if(this.key)u=this.key;else{let
h=this.getContent(o),b=h.trim();b.length&&(o.lookupKey=b,h!==o.currentValue?(u=b,o.originalContent=h||o.originalContent):o.originalContent?u=o.originalContent.trim():h!==o.currentValue&&(u=b,o.originalContent=h||o.originalContent))}this.updateValue(u,o,n)}}}updateValue(e,n,s){if(e){if(n.lastKey===e&&this.las
tParams===this.currentParams)return;this.lastParams=this.currentParams;let
r=o=>{o!==e&&(n.lastKey=e),n.originalContent||(n.originalContent=this.getContent(n)),n.currentValue=ri(o)?o:n.originalContent||e,this.setContent(n,this.key?n.currentValue:n.originalContent.replace(e,n.currentValue)),this._ref.markForCheck()};if(ri(s)){let
o=this.translateService.getParsedResult(s,e,this.currentParams);is(o)?o.subscribe({next:r}):r(o)}else
this.translateService.get(e,this.currentParams).subscribe(r)}}getContent(e){return
ri(e.textContent)?e.textContent:e.data}setContent(e,n){ri(e.textContent)?e.textContent=n:e.data=n}ngOnDestroy(){this.onLangChangeSub&&this.onLangChangeSub.unsubscribe(),this.onDefaultLangChangeSub&&this.onDefaultLangChangeSub.unsubscribe(),this.onTranslationChangeSub&&this.onTranslationChangeSub.unsubscribe()}}return
t.\u0275fac=function(e){return
new(e||t)(D(Oe),D(De),D(rt))},t.\u0275dir=le({type:t,selectors:[["","translate",""],["","ngx-translate",""]],inputs:{translate:"tra
nslate",translateParams:"translateParams"}}),t})(),ce=(()=>{class
t{constructor(e,n){this.translate=e,this._ref=n,this.value="",this.lastKey=null,this.lastParams=[]}updateValue(e,n,s){let
r=o=>{this.value=void 0!==o?o:e,this.lastKey=e,this._ref.markForCheck()};if(s){let
o=this.translate.getParsedResult(s,e,n);is(o.subscribe)?o.subscribe(r):r(o)}this.translate.get(e,n).subscribe(r)}transform(e,...n){if(!e||!e.length)return
e;if(il(e,this.lastKey)&&il(n,this.lastParams))return this.value;let
s;if(ri(n[0])&&n.length)if("string"==typeof
n[0]&&n[0].length){let
r=n[0].replace(/(\')?([a-zA-Z0-9_]+)(\')?(\s)?:/g,'"$2":').replace(/:(\s)?(\')(.*?)(\')/g,':"$3"');try{s=JSON.parse(r)}catch(o){throw
new SyntaxError(`Wrong parameter in TranslatePipe. Expected a valid Object, received:
${n[0]}`)}}else"object"==typeof
n[0]&&!Array.isArray(n[0])&&(s=n[0]);return
this.lastKey=e,this.lastParams=n,this.updateValue(e,s),this._dispose(),this.onTranslationChange||(this.onTranslationChange=this.translate.o
nTranslationChange.subscribe(r=>{this.lastKey&&r.lang===this.translate.currentLang&&(this.lastKey=null,this.updateValue(e,s,r.translations))})),this.onLangChange||(this.onLangChange=this.translate.onLangChange.subscribe(r=>{this.lastKey&&(this.lastKey=null,this.updateValue(e,s,r.translations))})),this.onDefaultLangChange||(this.onDefaultLangChange=this.translate.onDefaultLangChange.subscribe(()=>{this.lastKey&&(this.lastKey=null,this.updateValue(e,s))})),this.value}_dispose(){void
0!==this.onTranslationChange&&(this.onTranslationChange.unsubscribe(),this.onTranslationChange=void
0),void
0!==this.onLangChange&&(this.onLangChange.unsubscribe(),this.onLangChange=void
0),void
0!==this.onDefaultLangChange&&(this.onDefaultLangChange.unsubscribe(),this.onDefaultLangChange=void
0)}ngOnDestroy(){this._dispose()}}return t.\u0275fac=function(e){return
new(e||t)(D(Oe,16),D(rt,16))},t.\u0275pipe=An({name:"translate",type:t,pure:!1}),t.\u0275prov=X({token:t,factory:t.\u0275fac}),t})(),$O=(()=>{cl
ass t{static
forRoot(e={}){return{ngModule:t,providers:[e.loader||{provide:nl,useClass:o0},e.compiler||{provide:hu,useClass:u0},e.parser||{provide:pu,useClass:c0},e.missingTranslationHandler||{provide:zm,useClass:a0},d0,{provide:$m,useValue:e.isolate},{provide:Wm,useValue:e.useDefaultLang},{provide:Qm,useValue:e.extend},{provide:Km,useValue:e.defaultLanguage},Oe]}}static
forChild(e={}){return{ngModule:t,providers:[e.loader||{provide:nl,useClass:o0},e.compiler||{provide:hu,useClass:u0},e.parser||{provide:pu,useClass:c0},e.missingTranslationHandler||{provide:zm,useClass:a0},{provide:$m,useValue:e.isolate},{provide:Wm,useValue:e.useDefaultLang},{provide:Qm,useValue:e.extend},{provide:Km,useValue:e.defaultLanguage},Oe]}}}return
t.\u0275fac=function(e){return
new(e||t)},t.\u0275mod=he({type:t}),t.\u0275inj=ue({}),t})();class
WO{constructor(i,e="/assets/i18n/",n=".json"){this.http=i,this.prefix=e,this.suffix=n}getTranslation(i){return
this.http.get(`${this.prefix}${i}${this.suffix}`)}}let
p0=(()=>{class
t{constructor(e,n){this._renderer=e,this._elementRef=n,this.onChange=s=>{},this.onTouched=()=>{}}setProperty(e,n){this._renderer.setProperty(this._elementRef.nativeElement,e,n)}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)(D(gn),D(De))},t.\u0275dir=le({type:t}),t})(),vr=(()=>{class t extends
p0{}return t.\u0275fac=function(){let i;return
function(n){return(i||(i=on(t)))(n||t)}}(),t.\u0275dir=le({type:t,features:[ut]}),t})();const
dn=new
be("NgValueAccessor"),QO={provide:dn,useExisting:je(()=>Ye),multi:!0},YO=new
be("CompositionEventMode");let Ye=(()=>{class t extends
p0{constructor(e,n,s){super(e,n),this._compositionMode=s,this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function
JO(){const t=ns()?ns().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)(D(gn),D(De),D(YO,8))},t.\u0275dir=le({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,n){1&e&&C("input",function(r){return
n._handleInput(r.target.value)})("blur",function(){return
n.onTouched()})("compositionstart",function(){return
n._compositionStart()})("compositionend",function(r){return
n._compositionEnd(r.target.value)})},features:[Pe([QO]),ut]}),t})();function zs(t){return
null==t||0===t.length}const Ln=new be("NgValidators"),js=new
be("NgAsyncValidators");function
_0(t){return zs(t.value)?{required:!0}:null}function fu(t){return null}function
T0(t){return null!=t}function S0(t){const i=Ra(t)?Mn(t):t;return Dh(i),i}function
x0(t){let i={};return
t.forEach(e=>{i=null!=e?Object.assign(Object.assign({},i),e):i}),0===Object.keys(i).length?null:i}function
D0(t,i){return i.map(e=>e(t))}function M0(t){return t.map(i=>function
XO(t){return!t.validate}(i)?i:e=>i.validate(e))}function Jm(t){return null!=t?function
k0(t){if(!t)return null;const i=t.filter(T0);return 0==i.length?null:function(e){return
x0(D0(e,i))}}(M0(t)):null}function Ym(t){return null!=t?function I0(t){if(!t)return
null;const i=t.filter(T0);return 0==i.length?null:function(e){return
n0(D0(e,i).map(S0)).pipe(et(x0))}}(M0(t)):null}function E0(t,i){return
null===t?[i]:Array.isArray(t)?[...t,i]:[t,i]}function Zm(t){return
t?Array.isArray(t)?t:[t]:[]}function gu(t,i){return
Array.isArray(t)?t.includes(i):t===i}function O0(t,i){const e=Zm(i);return
Zm(t).forEach(s=>{gu(e,s)||e.push(s)}),e}f
unction A0(t,i){return Zm(i).filter(e=>!gu(t,e))}class
P0{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.valueChang
es:null}get path(){return
null}_setValidators(i){this._rawValidators=i||[],this._composedValidatorFn=Jm(this._rawValidators)}_setAsyncValidators(i){this._rawAsyncValidators=i||[],this._composedAsyncValidatorFn=Ym(this._rawAsyncValidators)}get
validator(){return this._composedValidatorFn||null}get asyncValidator(){return
this._composedAsyncValidatorFn||null}_registerOnDestroy(i){this._onDestroyCallbacks.push(i)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(i=>i()),this._onDestroyCallbacks=[]}reset(i){this.control&&this.control.reset(i)}hasError(i,e){return!!this.control&&this.control.hasError(i,e)}getError(i,e){return
this.control?this.control.getError(i,e):null}}class ss extends
P0{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}class
Un extends P0{get formDirective(){return null}get path(){return null}}class
F0{constructor(i){this._cd=i}is(i){var
e,n,s;return"submitted"===i?!!(null===(e=this._cd)||void 0===e?void 0:e.submit
ted):!!(null===(s=null===(n=this._cd)||void 0===n?void 0:n.control)||void 0===s?void
0:s[i])}}let Te=(()=>{class t extends F0{constructor(e){super(e)}}return
t.\u0275fac=function(e){return
new(e||t)(D(ss,2))},t.\u0275dir=le({type:t,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(e,n){2&e&&si("ng-untouched",n.is("untouched"))("ng-touched",n.is("touched"))("ng-pristine",n.is("pristine"))("ng-dirty",n.is("dirty"))("ng-valid",n.is("valid"))("ng-invalid",n.is("invalid"))("ng-pending",n.is("pending"))},features:[ut]}),t})(),Ue=(()=>{class
t extends F0{constructor(e){super(e)}}return t.\u0275fac=function(e){return
new(e||t)(D(Un,10))},t.\u0275dir=le({type:t,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(e,n){2&e&&si("ng-untouched",n.is("untouched"))("ng-touched",n.is("touched"))("ng-pristine",n.is
("pristine"))("ng-dirty",n.is("dirty"))("ng-valid",n.is("valid"))("ng-invalid",n.is("invalid"))("ng-pending",n.is("pending"))("ng-submitted",n.is("submitted"))},features:[ut]}),t})();function
sl(t,i){tf(t,i),i.valueAccessor.writeValue(t.value),function
aA(t,i){i.valueAccessor.registerOnChange(e=>{t._pendingValue=e,t._pendingChange=!0,t._pendingDirty=!0,"change"===t.updateOn&&V0(t,i)})}(t,i),function
cA(t,i){const
e=(n,s)=>{i.valueAccessor.writeValue(n),s&&i.viewToModelUpdate(n)};t.registerOnChange(e),i._registerOnDestroy(()=>{t._unregisterOnChange(e)})}(t,i),function
lA(t,i){i.valueAccessor.registerOnTouched(()=>{t._pendingTouched=!0,"blur"===t.updateOn&&t._pendingChange&&V0(t,i),"submit"!==t.updateOn&&t.markAsTouched()})}(t,i),function
oA(t,i){if(i.valueAccessor.setDisabledState){const
e=n=>{i.valueAccessor.setDisabledState(n)};t.registerOnDisabledChange(e),i._registerOnDestroy(()=>{t._unregisterOnDisabledChange(e)})}}(t,i)}function
Cu(t,i){t.forEach(e=>{e.registerOnValidatorChange
&&e.registerOnValidatorChange(i)})}function tf(t,i){const e=function R0(t){return
t._rawValidators}(t);null!==i.validator?t.setValidators(E0(e,i.validator)):"function"==typeof
e&&t.setValidators([e]);const n=function L0(t){return
t._rawAsyncValidators}(t);null!==i.asyncValidator?t.setAsyncValidators(E0(n,i.asyncValidator)):"function"==typeof
n&&t.setAsyncValidators([n]);const
s=()=>t.updateValueAndValidity();Cu(i._rawValidators,s),Cu(i._rawAsyncValidators,s)}function
V0(t,i){t._pendingDirty&&t.markAsDirty(),t.setValue(t._pendingValue,{emitModelToViewChange:!1}),i.viewToModelUpdate(t._pendingValue),t._pendingChange=!1}function
rf(t,i){const e=t.indexOf(i);e>-1&&t.splice(e,1)}const
rl="VALID",wu="INVALID",Eo="PENDING",ol="DISABLED";function
af(t){return(Tu(t)?t.validators:t)||null}function G0(t){return
Array.isArray(t)?Jm(t):t||null}function
lf(t,i){return(Tu(i)?i.asyncValidators:t)||null}function U0(t){return
Array.isArray(t)?Ym(t):t||null}function Tu(t){return null!=t&&!Array.isArra
y(t)&&"object"==typeof t}const cf=t=>t instanceof df;function
j0(t){return(t=>t instanceof K0)(t)?t.value:t.getRawValue()}function $0(t,i){const
e=cf(t),n=t.controls;if(!(e?Object.keys(n):n).length)throw new
re(1e3,"");if(!n[i])throw new re(1001,"")}function
W0(t,i){cf(t),t._forEachChild((n,s)=>{if(void 0===i[s])throw new
re(1002,"")})}class
uf{constructor(i,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=i,this._rawAsyncValidators=e,this._composedValidatorFn=G0(this._rawValidators),this._composedAsyncValidatorFn=U0(this._rawAsyncValidators)}get
validator(){return this._composedValidatorFn}set
validator(i){this._rawValidators=this._composedValidatorFn=i}get asyncValidator(){return
this._composedAsyncValidatorFn}set
asyncValidator(i){this._rawAsyncValidators=this._composedAsyncValidatorFn=i}get
parent(){return this._par
ent}get valid(){return this.status===rl}get invalid(){return this.status===wu}get
pending(){return this.status==Eo}get disabled(){return this.status===ol}get
enabled(){return this.status!==ol}get dirty(){return!this.pristine}get
untouched(){return!this.touched}get updateOn(){return
this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(i){this._rawValidators=i,this._composedValidatorFn=G0(i)}setAsyncValidators(i){this._rawAsyncValidators=i,this._composedAsyncValidatorFn=U0(i)}addValidators(i){this.setValidators(O0(i,this._rawValidators))}addAsyncValidators(i){this.setAsyncValidators(O0(i,this._rawAsyncValidators))}removeValidators(i){this.setValidators(A0(i,this._rawValidators))}removeAsyncValidators(i){this.setAsyncValidators(A0(i,this._rawAsyncValidators))}hasValidator(i){return
gu(this._rawValidators,i)}hasAsyncValidator(i){return
gu(this._rawAsyncValidators,i)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}mar
kAsTouched(i={}){this.touched=!0,this._parent&&!i.onlySelf&&this._parent.markAsTouched(i)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild(i=>i.markAllAsTouched())}markAsUntouched(i={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild(e=>{e.markAsUntouched({onlySelf:!0})}),this._parent&&!i.onlySelf&&this._parent._updateTouched(i)}markAsDirty(i={}){this.pristine=!1,this._parent&&!i.onlySelf&&this._parent.markAsDirty(i)}markAsPristine(i={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(e=>{e.markAsPristine({onlySelf:!0})}),this._parent&&!i.onlySelf&&this._parent._updatePristine(i)}markAsPending(i={}){this.status=Eo,!1!==i.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!i.onlySelf&&this._parent.markAsPending(i)}disable(i={}){const
e=this._parentMarkedDirty(i.onlySelf);this.status=ol,this.errors=null,this._forEachChild(n=>{n.disable(Object.assign(Object.assign({},i),{onlySelf:!0}))}),this._updateValue(),!1!==i.emitEvent&&(this.
valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(Object.assign(Object.assign({},i),{skipPristineCheck:e})),this._onDisabledChange.forEach(n=>n(!0))}enable(i={}){const
e=this._parentMarkedDirty(i.onlySelf);this.status=rl,this._forEachChild(n=>{n.enable(Object.assign(Object.assign({},i),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:i.emitEvent}),this._updateAncestors(Object.assign(Object.assign({},i),{skipPristineCheck:e})),this._onDisabledChange.forEach(n=>n(!1))}_updateAncestors(i){this._parent&&!i.onlySelf&&(this._parent.updateValueAndValidity(i),i.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(i){this._parent=i}updateValueAndValidity(i={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===rl||this.status===Eo)&&this._runAsyncValidator(i.emitEvent))
,!1!==i.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!i.onlySelf&&this._parent.updateValueAndValidity(i)}_updateTreeValidity(i={emitEvent:!0}){this._forEachChild(e=>e._updateTreeValidity(i)),this.updateValueAndValidity({onlySelf:!0,emitEvent:i.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?ol:rl}_runValidator(){return
this.validator?this.validator(this):null}_runAsyncValidator(i){if(this.asyncValidator){this.status=Eo,this._hasOwnPendingAsyncValidator=!0;const
e=S0(this.asyncValidator(this));this._asyncValidationSubscription=e.subscribe(n=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors(n,{emitEvent:i})})}}_cancelExistingSubscription(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}setErrors(i,e={}){this.errors=i,this._updateControlsErrors(!1!==e.emitEvent)}get(i){return
function hA(t,i,e){if(null==i||(Array.isArray(i)||(i=i.s
plit(e)),Array.isArray(i)&&0===i.length))return null;let n=t;return
i.forEach(s=>{n=cf(n)?n.controls.hasOwnProperty(s)?n.controls[s]:null:(t=>t
instanceof fA)(n)&&n.at(s)||null}),n}(this,i,".")}getError(i,e){const
n=e?this.get(e):this;return
n&&n.errors?n.errors[i]:null}hasError(i,e){return!!this.getError(i,e)}get
root(){let i=this;for(;i._parent;)i=i._parent;return
i}_updateControlsErrors(i){this.status=this._calculateStatus(),i&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(i)}_initObservables(){this.valueChanges=new
H,this.statusChanges=new H}_calculateStatus(){return
this._allControlsDisabled()?ol:this.errors?wu:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(Eo)?Eo:this._anyControlsHaveStatus(wu)?wu:rl}_anyControlsHaveStatus(i){return
this._anyControls(e=>e.status===i)}_anyControlsDirty(){return
this._anyControls(i=>i.dirty)}_anyControlsTouched(){return
this._anyControls(i=>i.touched)}_updatePristine(i={}){this.pristine=!th
is._anyControlsDirty(),this._parent&&!i.onlySelf&&this._parent._updatePristine(i)}_updateTouched(i={}){this.touched=this._anyControlsTouched(),this._parent&&!i.onlySelf&&this._parent._updateTouched(i)}_isBoxedValue(i){return"object"==typeof
i&&null!==i&&2===Object.keys(i).length&&"value"in
i&&"disabled"in
i}_registerOnCollectionChange(i){this._onCollectionChange=i}_setUpdateStrategy(i){Tu(i)&&null!=i.updateOn&&(this._updateOn=i.updateOn)}_parentMarkedDirty(i){return!i&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}}class
K0 extends
uf{constructor(i=null,e,n){super(af(e),lf(n,e)),this.defaultValue=null,this._onChange=[],this._pendingChange=!1,this._applyFormState(i),this._setUpdateStrategy(e),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),Tu(e)&&e.initialValueIsDefault&&(this.defaultValue=this._isBoxedValue(i)?i.value:i)}setValue(i,e={}){this.value=this._pendingValue=i,this._onChange.length&&!1!==e.emitMod
elToViewChange&&this._onChange.forEach(n=>n(this.value,!1!==e.emitViewToModelChange)),this.updateValueAndValidity(e)}patchValue(i,e={}){this.setValue(i,e)}reset(i=this.defaultValue,e={}){this._applyFormState(i),this.markAsPristine(e),this.markAsUntouched(e),this.setValue(this.value,e),this._pendingChange=!1}_updateValue(){}_anyControls(i){return!1}_allControlsDisabled(){return
this.disabled}registerOnChange(i){this._onChange.push(i)}_unregisterOnChange(i){rf(this._onChange,i)}registerOnDisabledChange(i){this._onDisabledChange.push(i)}_unregisterOnDisabledChange(i){rf(this._onDisabledChange,i)}_forEachChild(i){}_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(i){this._isBoxedValue(i)?(this.value=this._pendingValue=i.value,i.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.e
nable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=i}}class df extends
uf{constructor(i,e,n){super(af(e),lf(n,e)),this.controls=i,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}registerControl(i,e){return
this.controls[i]?this.controls[i]:(this.controls[i]=e,e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange),e)}addControl(i,e,n={}){this.registerControl(i,e),this.updateValueAndValidity({emitEvent:n.emitEvent}),this._onCollectionChange()}removeControl(i,e={}){this.controls[i]&&this.controls[i]._registerOnCollectionChange(()=>{}),delete
this.controls[i],this.updateValueAndValidity({emitEvent:e.emitEvent}),this._onCollectionChange()}setControl(i,e,n={}){this.controls[i]&&this.controls[i]._registerOnCollectionChange(()=>{}),delete
this.controls[i],e&&this.registerControl(i,e),this.updateValueAndValidity({emitEvent:n.emitEvent}),this._onCollectionChange
()}contains(i){return
this.controls.hasOwnProperty(i)&&this.controls[i].enabled}setValue(i,e={}){W0(this,i),Object.keys(i).forEach(n=>{$0(this,n),this.controls[n].setValue(i[n],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(i,e={}){null!=i&&(Object.keys(i).forEach(n=>{this.controls[n]&&this.controls[n].patchValue(i[n],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e))}reset(i={},e={}){this._forEachChild((n,s)=>{n.reset(i[s],{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e),this._updateTouched(e),this.updateValueAndValidity(e)}getRawValue(){return
this._reduceChildren({},(i,e,n)=>(i[n]=j0(e),i))}_syncPendingControls(){let
i=this._reduceChildren(!1,(e,n)=>!!n._syncPendingControls()||e);return
i&&this.updateValueAndValidity({onlySelf:!0}),i}_forEachChild(i){Object.keys(this.controls).forEach(e=>{const
n=this.controls[e];n&&i(n,e)})}_setUpControls(){this._forEachChild(i=>{i.setParent(this),i._registerOnCollectionChange(t
his._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(i){for(const
e of Object.keys(this.controls)){const
n=this.controls[e];if(this.contains(e)&&i(n))return!0}return!1}_reduceValue(){return
this._reduceChildren({},(i,e,n)=>((e.enabled||this.disabled)&&(i[n]=e.value),i))}_reduceChildren(i,e){let
n=i;return this._forEachChild((s,r)=>{n=e(n,s,r)}),n}_allControlsDisabled(){for(const i
of Object.keys(this.controls))if(this.controls[i].enabled)return!1;return
Object.keys(this.controls).length>0||this.disabled}}class fA extends
uf{constructor(i,e,n){super(af(e),lf(n,e)),this.controls=i,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}at(i){return
this.controls[i]}push(i,e={}){this.controls.push(i),this._registerControl(i),this.updateValueAndValidity({emitEvent:e.emitEvent}),this._onCollectionChange()}insert(i,e,n={}){this.controls.splice(i,0,e),this._registerC
ontrol(e),this.updateValueAndValidity({emitEvent:n.emitEvent})}removeAt(i,e={}){this.controls[i]&&this.controls[i]._registerOnCollectionChange(()=>{}),this.controls.splice(i,1),this.updateValueAndValidity({emitEvent:e.emitEvent})}setControl(i,e,n={}){this.controls[i]&&this.controls[i]._registerOnCollectionChange(()=>{}),this.controls.splice(i,1),e&&(this.controls.splice(i,0,e),this._registerControl(e)),this.updateValueAndValidity({emitEvent:n.emitEvent}),this._onCollectionChange()}get
length(){return
this.controls.length}setValue(i,e={}){W0(this,i),i.forEach((n,s)=>{$0(this,s),this.at(s).setValue(n,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(i,e={}){null!=i&&(i.forEach((n,s)=>{this.at(s)&&this.at(s).patchValue(n,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e))}reset(i=[],e={}){this._forEachChild((n,s)=>{n.reset(i[s],{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e),this._updateTouched(e),this.updateValueAndValid
ity(e)}getRawValue(){return
this.controls.map(i=>j0(i))}clear(i={}){this.controls.length<1||(this._forEachChild(e=>e._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity({emitEvent:i.emitEvent}))}_syncPendingControls(){let
i=this.controls.reduce((e,n)=>!!n._syncPendingControls()||e,!1);return
i&&this.updateValueAndValidity({onlySelf:!0}),i}_forEachChild(i){this.controls.forEach((e,n)=>{i(e,n)})}_updateValue(){this.value=this.controls.filter(i=>i.enabled||this.disabled).map(i=>i.value)}_anyControls(i){return
this.controls.some(e=>e.enabled&&i(e))}_setUpControls(){this._forEachChild(i=>this._registerControl(i))}_allControlsDisabled(){for(const
i of this.controls)if(i.enabled)return!1;return
this.controls.length>0||this.disabled}_registerControl(i){i.setParent(this),i._registerOnCollectionChange(this._onCollectionChange)}}const
gA={provide:Un,useExisting:je(()=>He)},al=(()=>Promise.resolve(null))();let
He=(()=>{class t extends Un{constructor(e,n){sup
er(),this.submitted=!1,this._directives=new Set,this.ngSubmit=new H,this.form=new
df({},Jm(e),Ym(n))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return
this}get control(){return this.form}get path(){return[]}get controls(){return
this.form.controls}addControl(e){al.then(()=>{const
n=this._findContainer(e.path);e.control=n.registerControl(e.name,e.control),sl(e.control,e),e.control.updateValueAndValidity({emitEvent:!1}),this._directives.add(e)})}getControl(e){return
this.form.get(e.path)}removeControl(e){al.then(()=>{const
n=this._findContainer(e.path);n&&n.removeControl(e.name),this._directives.delete(e)})}addFormGroup(e){al.then(()=>{const
n=this._findContainer(e.path),s=new df({});(function
B0(t,i){tf(t,i)})(s,e),n.registerControl(e.name,s),s.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(e){al.then(()=>{const
n=this._findContainer(e.path);n&&n.removeControl(e.name)})}getFormGroup(e){return
this.form.get(e.path)}updateModel(e,n){al.then(()=>{this.form
.get(e.path).setValue(n)})}setValue(e){this.control.setValue(e)}onSubmit(e){return
this.submitted=!0,function q0(t,i){t._syncPendingControls(),i.forEach(e=>{const
n=e.control;"submit"===n.updateOn&&n._pendingChange&&(e.viewToModelUpdate(n._pendingValue),n._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)(D(Ln,10),D(js,10))},t.\u0275dir=le({type:t,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(e,n){1&e&&C("submit",function(r){return
n.onSubmit(r)})("reset",function(){return
n.onReset()})},inputs:{options:["ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[Pe([gA]),ut]}
),t})();const
bA={provide:ss,useExisting:je(()=>_e)},Y0=(()=>Promise.resolve(null))();let
_e=(()=>{class t extends
ss{constructor(e,n,s,r,o){super(),this._changeDetectorRef=o,this.control=new
K0,this._registered=!1,this.update=new
H,this._parent=e,this._setValidators(n),this._setAsyncValidators(s),this.valueAccessor=function
sf(t,i){if(!i)return null;let e,n,s;return
Array.isArray(i),i.forEach(r=>{r.constructor===Ye?e=r:function pA(t){return
Object.getPrototypeOf(t.constructor)===vr}(r)?n=r:s=r}),s||n||e||null}(0,r)}ngOnChanges(e){if(this._checkForErrors(),!this._registered||"name"in
e){if(this._registered&&(this._checkName(),this.formDirective)){const
n=e.name.previousValue;this.formDirective.removeControl({name:n,path:this._getPath(n)})}this._setUpControl()}"isDisabled"in
e&&this._updateDisabled(e),function
nf(t,i){if(!t.hasOwnProperty("model"))return!1;const
e=t.model;return!!e.isFirstChange()||!Object.is(i,e.currentValue)}(e,this.viewModel)&&(this._updateValue(this.model),this.v
iewModel=this.model)}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}get
path(){return this._getPath(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}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.control._updateOn=this.options.updateOn)}_isStandalone(){return!this._parent||!(!this.options||!this.options.standalone)}_setUpStandalone(){sl(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){Y0.then(()=>{var
n;this.control.setValue(e,{emitViewToModelChange:!1}),null===(n=this._c
hangeDetectorRef)||void 0===n||n.markForCheck()})}_updateDisabled(e){const
n=e.isDisabled.currentValue,s=""===n||n&&"false"!==n;Y0.then(()=>{var
r;s&&!this.control.disabled?this.control.disable():!s&&this.control.disabled&&this.control.enable(),null===(r=this._changeDetectorRef)||void
0===r||r.markForCheck()})}_getPath(e){return this._parent?function
bu(t,i){return[...i.path,t]}(e,this._parent):[e]}}return t.\u0275fac=function(e){return
new(e||t)(D(Un,9),D(Ln,10),D(js,10),D(dn,10),D(rt,8))},t.\u0275dir=le({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:[Pe([bA]),ut,fn]}),t})(),ze=(()=>{class
t{}return t.\u0275fac=function(e){return
new(e||t)},t.\u0275dir=le({type:t,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]}),t})();const
vA={
provide:dn,useExisting:je(()=>Su),multi:!0};let Su=(()=>{class t extends
vr{writeValue(e){this.setProperty("value",null==e?"":e)}registerOnChange(e){this.onChange=n=>{e(""==n?null:parseFloat(n))}}}return
t.\u0275fac=function(){let i;return
function(n){return(i||(i=on(t)))(n||t)}}(),t.\u0275dir=le({type:t,selectors:[["input","type","number","formControlName",""],["input","type","number","formControl",""],["input","type","number","ngModel",""]],hostBindings:function(e,n){1&e&&C("input",function(r){return
n.onChange(r.target.value)})("blur",function(){return
n.onTouched()})},features:[Pe([vA]),ut]}),t})(),Z0=(()=>{class t{}return
t.\u0275fac=function(e){return
new(e||t)},t.\u0275mod=he({type:t}),t.\u0275inj=ue({}),t})();const pf=new
be("NgModelWithFormControlWarning");function
aw(t){return"number"==typeof t?t:parseFloat(t)}let Cr=(()=>{class
t{constructor(){this._validator=fu}ngOnChanges(e){if(this.inputName in e){const
n=this.normalizeInput(e[this.inputName].currentValue);this._enable
d=this.enabled(n),this._validator=this._enabled?this.createValidator(n):fu,this._onChange&&this._onChange()}}validate(e){return
this._validator(e)}registerOnValidatorChange(e){this._onChange=e}enabled(e){return
null!=e}}return t.\u0275fac=function(e){return
new(e||t)},t.\u0275dir=le({type:t,features:[fn]}),t})();const
PA={provide:Ln,useExisting:je(()=>xu),multi:!0};let xu=(()=>{class t extends
Cr{constructor(){super(...arguments),this.inputName="max",this.normalizeInput=e=>aw(e),this.createValidator=e=>function
g0(t){return i=>{if(zs(i.value)||zs(t))return null;const
e=parseFloat(i.value);return!isNaN(e)&&e>t?{max:{max:t,actual:i.value}}:null}}(e)}}return
t.\u0275fac=function(){let i;return
function(n){return(i||(i=on(t)))(n||t)}}(),t.\u0275dir=le({type:t,selectors:[["input","type","number","max","","formControlName",""],["input","type","number","max","","formControl",""],["input","type","number","max","","ngModel",""]],hostVars:1,hostBindings:function(e,n){2&e&&ie("max",n._enabled?
n.max:null)},inputs:{max:"max"},features:[Pe([PA]),ut]}),t})();const
FA={provide:Ln,useExisting:je(()=>Du),multi:!0};let Du=(()=>{class t extends
Cr{constructor(){super(...arguments),this.inputName="min",this.normalizeInput=e=>aw(e),this.createValidator=e=>function
f0(t){return i=>{if(zs(i.value)||zs(t))return null;const
e=parseFloat(i.value);return!isNaN(e)&&e<t?{min:{min:t,actual:i.value}}:null}}(e)}}return
t.\u0275fac=function(){let i;return
function(n){return(i||(i=on(t)))(n||t)}}(),t.\u0275dir=le({type:t,selectors:[["input","type","number","min","","formControlName",""],["input","type","number","min","","formControl",""],["input","type","number","min","","ngModel",""]],hostVars:1,hostBindings:function(e,n){2&e&&ie("min",n._enabled?n.min:null)},inputs:{min:"min"},features:[Pe([FA]),ut]}),t})();const
NA={provide:Ln,useExisting:je(()=>ll),multi:!0};let ll=(()=>{class t extends
Cr{constructor(){super(...arguments),this.inputName="required",this.normalizeInput=e=>function
AA(t){retu
rn
null!=t&&!1!==t&&"false"!=`${t}`}(e),this.createValidator=e=>_0}enabled(e){return
e}}return t.\u0275fac=function(){let i;return
function(n){return(i||(i=on(t)))(n||t)}}(),t.\u0275dir=le({type:t,selectors:[["","required","","formControlName","",3,"type","checkbox"],["","required","","formControl","",3,"type","checkbox"],["","required","","ngModel","",3,"type","checkbox"]],hostVars:1,hostBindings:function(e,n){2&e&&ie("required",n._enabled?"":null)},inputs:{required:"required"},features:[Pe([NA]),ut]}),t})();const
qA={provide:Ln,useExisting:je(()=>_n),multi:!0};let _n=(()=>{class t extends
Cr{constructor(){super(...arguments),this.inputName="maxlength",this.normalizeInput=e=>function
ow(t){return"number"==typeof
t?t:parseInt(t,10)}(e),this.createValidator=e=>function y0(t){return i=>function
m0(t){return null!=t&&"number"==typeof
t.length}(i.value)&&i.value.length>t?{maxlength:{requiredLength:t,actualLength:i.value.length}}:null}(e)}}return
t.\u0275fac=function(){let i;return funct
ion(n){return(i||(i=on(t)))(n||t)}}(),t.\u0275dir=le({type:t,selectors:[["","maxlength","","formControlName",""],["","maxlength","","formControl",""],["","maxlength","","ngModel",""]],hostVars:1,hostBindings:function(e,n){2&e&&ie("maxlength",n._enabled?n.maxlength:null)},inputs:{maxlength:"maxlength"},features:[Pe([qA]),ut]}),t})(),pw=(()=>{class
t{}return t.\u0275fac=function(e){return
new(e||t)},t.\u0275mod=he({type:t}),t.\u0275inj=ue({imports:[[Z0]]}),t})(),Mu=(()=>{class
t{}return t.\u0275fac=function(e){return
new(e||t)},t.\u0275mod=he({type:t}),t.\u0275inj=ue({imports:[pw]}),t})(),UA=(()=>{class
t{static
withConfig(e){return{ngModule:t,providers:[{provide:pf,useValue:e.warnOnNgModelWithFormControl}]}}}return
t.\u0275fac=function(e){return
new(e||t)},t.\u0275mod=he({type:t}),t.\u0275inj=ue({imports:[pw]}),t})();class hw{}const
ys="*";function wi(t,i){return{type:7,name:t,definitions:i,options:{}}}function
kt(t,i=null){return{type:4,styles:i,timings:t}}function mw(t,i=null){retu
rn{type:2,steps:t,options:i}}function it(t){return{type:6,styles:t,offset:null}}function
ws(t,i,e){return{type:0,name:t,styles:i,options:e}}function
Lt(t,i,e=null){return{type:1,expr:t,animation:i,options:e}}function
ku(t,i=null){return{type:8,animation:t,options:i}}function
jA(t=null){return{type:9,options:t}}function
fw(t,i=null){return{type:10,animation:t,options:i}}function
$A(t,i,e=null){return{type:11,selector:t,animation:i,options:e}}function
gw(t){Promise.resolve(null).then(t)}class
cl{constructor(i=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=i+e}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(i=>i()),this._onDoneFns=[])}onStart(i){this._onStartFns.push(i)}onDone(i){this._onDoneFns.push(i)}onDestroy(i){this._onDestroyFns.push(i)}hasStarted(){return
this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.trig
gerMicrotask()),this._started=!0}triggerMicrotask(){gw(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(i=>i()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(i=>i()),this._onDestroyFns=[])}reset(){this._started=!1}setPosition(i){this._position=this.totalTime?i*this.totalTime:1}getPosition(){return
this.totalTime?this._position/this.totalTime:1}triggerCallback(i){const
e="start"==i?this._onStartFns:this._onDoneFns;e.forEach(n=>n()),e.length=0}}class
_w{constructor(i){this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=i;let
e=0,n=0,s=0;const
r=this.players.length;0==r?gw(()=>this._onFinish()):this.players.forEach(o=>{o.onDone(()=>{++e==r&&this._onFinish()}),o.onDestroy(()=>{++n==r&&this._onDestroy()}),o.onStart(()=>{++s=
=r&&this._onStart()})}),this.totalTime=this.players.reduce((o,u)=>Math.max(o,u.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(i=>i()),this._onDoneFns=[])}init(){this.players.forEach(i=>i.init())}onStart(i){this._onStartFns.push(i)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(i=>i()),this._onStartFns=[])}onDone(i){this._onDoneFns.push(i)}onDestroy(i){this._onDestroyFns.push(i)}hasStarted(){return
this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(i=>i.play())}pause(){this.players.forEach(i=>i.pause())}restart(){this.players.forEach(i=>i.restart())}finish(){this._onFinish(),this.players.forEach(i=>i.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(i=>i.destroy()),this._onDestroyFns.forEach(i=>i()),this._onDestroyFns=[])}reset(){this.players.forEach(i=>i.reset()),this._destroyed=!1,this._finished=!1,this._st
arted=!1}setPosition(i){const e=i*this.totalTime;this.players.forEach(n=>{const
s=n.totalTime?Math.min(1,e/n.totalTime):1;n.setPosition(s)})}getPosition(){const
i=this.players.reduce((e,n)=>null===e||n.totalTime>e.totalTime?n:e,null);return
null!=i?i.getPosition():0}beforeDestroy(){this.players.forEach(i=>{i.beforeDestroy&&i.beforeDestroy()})}triggerCallback(i){const
e="start"==i?this._onStartFns:this._onDoneFns;e.forEach(n=>n()),e.length=0}}const
Ze=!1;function bw(t){return new re(3e3,Ze)}function
DP(){return"undefined"!=typeof window&&void 0!==window.document}function
vf(){return"undefined"!=typeof process&&"[object
process]"==={}.toString.call(process)}function $s(t){switch(t.length){case 0:return
new cl;case 1:return t[0];default:return new _w(t)}}function vw(t,i,e,n,s={},r={}){const
o=[],u=[];let h=-1,b=null;if(n.forEach(y=>{const
w=y.offset,M=w==h,E=M&&b||{};Object.keys(y).forEach(L=>{let
O=L,N=y[L];if("offset"!==L)switch(O=i.normalizePropertyName(O,o),N){case"!":N=s[L];break;
case
ys:N=r[L];break;default:N=i.normalizeStyleValue(L,O,N,o)}E[O]=N}),M||u.push(E),b=E,h=w}),o.length)throw
function fP(t){return new re(3502,Ze)}();return u}function
Cf(t,i,e,n){switch(i){case"start":t.onStart(()=>n(e&&yf(e,"start",t)));break;case"done":t.onDone(()=>n(e&&yf(e,"done",t)));break;case"destroy":t.onDestroy(()=>n(e&&yf(e,"destroy",t)))}}function
yf(t,i,e){const
n=e.totalTime,r=wf(t.element,t.triggerName,t.fromState,t.toState,i||t.phaseName,null==n?t.totalTime:n,!!e.disabled),o=t._data;return
null!=o&&(r._data=o),r}function
wf(t,i,e,n,s="",r=0,o){return{element:t,triggerName:i,fromState:e,toState:n,phaseName:s,totalTime:r,disabled:!!o}}function
oi(t,i,e){let n;return t instanceof
Map?(n=t.get(i),n||t.set(i,n=e)):(n=t[i],n||(n=t[i]=e)),n}function Cw(t){const
i=t.indexOf(":");return[t.substring(1,i),t.substr(i+1)]}let
Tf=(t,i)=>!1,yw=(t,i,e)=>[],ww=null;function Sf(t){const
i=t.parentNode||t.host;return i===ww?null:i}(vf()||"undefined"!=typeof
Element)&&(DP()?(ww=(()=>doc
ument.documentElement)(),Tf=(t,i)=>{for(;i;){if(i===t)return!0;i=Sf(i)}return!1}):Tf=(t,i)=>t.contains(i),yw=(t,i,e)=>{if(e)return
Array.from(t.querySelectorAll(i));const n=t.querySelector(i);return n?[n]:[]});let
yr=null,Tw=!1;function Sw(t){yr||(yr=function kP(){return"undefined"!=typeof
document?document.body:null}()||{},Tw=!!yr.style&&"WebkitAppearance"in
yr.style);let i=!0;return yr.style&&!function
MP(t){return"ebkit"==t.substring(1,6)}(t)&&(i=t in
yr.style,!i&&Tw&&(i="Webkit"+t.charAt(0).toUpperCase()+t.substr(1)in
yr.style)),i}const xw=Tf,Dw=yw;let Mw=(()=>{class t{validateStyleProperty(e){return
Sw(e)}matchesElement(e,n){return!1}containsElement(e,n){return
xw(e,n)}getParentElement(e){return Sf(e)}query(e,n,s){return
Dw(e,n,s)}computeStyle(e,n,s){return s||""}animate(e,n,s,r,o,u=[],h){return new
cl(s,r)}}return t.\u0275fac=function(e){return
new(e||t)},t.\u0275prov=X({token:t,factory:t.\u0275fac}),t})(),xf=(()=>{class t{}return
t.NOOP=new Mw,t})();const Df="ng-enter",Eu="ng
-leave",Ru="ng-trigger",Lu=".ng-trigger",Iw="ng-animating",Mf=".ng-animating";function
wr(t){if("number"==typeof t)return t;const
i=t.match(/^(-?[\.\d]+)(m?s)/);return!i||i.length<2?0:kf(parseFloat(i[1]),i[2])}function
kf(t,i){return"s"===i?1e3*t:t}function Ou(t,i,e){return
t.hasOwnProperty("duration")?t:function RP(t,i,e){let
s,r=0,o="";if("string"==typeof t){const
u=t.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===u)return
i.push(bw()),{duration:0,delay:0,easing:""};s=kf(parseFloat(u[1]),u[2]);const
h=u[3];null!=h&&(r=kf(parseFloat(h),u[4]));const b=u[5];b&&(o=b)}else
s=t;if(!e){let u=!1,h=i.length;s<0&&(i.push(function WA(){return new
re(3100,Ze)}()),u=!0),r<0&&(i.push(function KA(){return new
re(3101,Ze)}()),u=!0),u&&i.splice(h,0,bw())}return{duration:s,delay:r,easing:o}}(t,i,e)}function
Ro(t,i={}){return Object.keys(t).forEach(e=>{i[e]=t[e]}),i}function
Ws(t,i,e={}){if(i)for(let n in t)e[n]=t[n];else Ro(t,e);return e}function Rw(t,i,
e){return e?i+":"+e+";":""}function Lw(t){let
i="";for(let e=0;e<t.style.length;e++){const
n=t.style.item(e);i+=Rw(0,n,t.style.getPropertyValue(n))}for(const e in
t.style)t.style.hasOwnProperty(e)&&!e.startsWith("_")&&(i+=Rw(0,AP(e),t.style[e]));t.setAttribute("style",i)}function
rs(t,i,e){t.style&&(Object.keys(i).forEach(n=>{const
s=Ef(n);e&&!e.hasOwnProperty(n)&&(e[n]=t.style[s]),t.style[s]=i[n]}),vf()&&Lw(t))}function
Tr(t,i){t.style&&(Object.keys(i).forEach(e=>{const
n=Ef(e);t.style[n]=""}),vf()&&Lw(t))}function ul(t){return
Array.isArray(t)?1==t.length?t[0]:mw(t):t}const If=new
RegExp("{{\\s*(.+?)\\s*}}","g");function Ow(t){let
i=[];if("string"==typeof t){let
e;for(;e=If.exec(t);)i.push(e[1]);If.lastIndex=0}return i}function Au(t,i,e){const
n=t.toString(),s=n.replace(If,(r,o)=>{let u=i[o];return
i.hasOwnProperty(o)||(e.push(function JA(t){return new
re(3003,Ze)}()),u=""),u.toString()});return s==n?t:s}function Pu(t){const
i=[];let e=t.next();for(;!e.done;)i.push(e.value),e=t.ne
xt();return i}const OP=/-+([a-z0-9])/g;function Ef(t){return
t.replace(OP,(...i)=>i[1].toUpperCase())}function AP(t){return
t.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}function
ai(t,i,e){switch(i.type){case 7:return t.visitTrigger(i,e);case 0:return
t.visitState(i,e);case 1:return t.visitTransition(i,e);case 2:return
t.visitSequence(i,e);case 3:return t.visitGroup(i,e);case 4:return
t.visitAnimate(i,e);case 5:return t.visitKeyframes(i,e);case 6:return
t.visitStyle(i,e);case 8:return t.visitReference(i,e);case 9:return
t.visitAnimateChild(i,e);case 10:return t.visitAnimateRef(i,e);case 11:return
t.visitQuery(i,e);case 12:return t.visitStagger(i,e);default:throw function YA(t){return
new re(3004,Ze)}()}}function Aw(t,i){return window.getComputedStyle(t)[i]}function
HP(t,i){const e=[];return"string"==typeof
t?t.split(/\s*,\s*/).forEach(n=>function qP(t,i,e){if(":"==t[0]){const
h=function GP(t,i){switch(t){case":enter":return"void =>
*";case":leave":return"* => void";case":increm
ent":return(e,n)=>parseFloat(n)>parseFloat(e);case":decrement":return(e,n)=>parseFloat(n)<parseFloat(e);default:return
i.push(function dP(t){return new re(3016,Ze)}()),"* =>
*"}}(t,e);if("function"==typeof h)return void i.push(h);t=h}const
n=t.match(/^(\*|[-\w]+)\s*(<?[=-]>)\s*(\*|[-\w]+)$/);if(null==n||n.length<4)return
e.push(function uP(t){return new re(3015,Ze)}()),i;const
s=n[1],r=n[2],o=n[3];i.push(Pw(s,o));"<"==r[0]&&!("*"==s&&"*"==o)&&i.push(Pw(o,s))}(n,e,i)):e.push(t),e}const
Bu=new Set(["true","1"]),Hu=new
Set(["false","0"]);function Pw(t,i){const
e=Bu.has(t)||Hu.has(t),n=Bu.has(i)||Hu.has(i);return(s,r)=>{let
o="*"==t||t==s,u="*"==i||i==r;return!o&&e&&"boolean"==typeof
s&&(o=s?Bu.has(t):Hu.has(t)),!u&&n&&"boolean"==typeof
r&&(u=r?Bu.has(i):Hu.has(i)),o&&u}}const UP=new
RegExp("s*:selfs*,?","g");function Rf(t,i,e,n){return new
zP(t).build(i,e,n)}class zP{constructor(i){this._driver=i}build(i,e,n){const s=new
WP(e);this._resetContextStyleTimingState(s);const r=ai(this,ul(i)
,s);return
s.unsupportedCSSPropertiesFound.size&&s.unsupportedCSSPropertiesFound.keys(),r}_resetContextStyleTimingState(i){i.currentQuerySelector="",i.collectedStyles={},i.collectedStyles[""]={},i.currentTime=0}visitTrigger(i,e){let
n=e.queryCount=0,s=e.depCount=0;const
r=[],o=[];return"(a)"==i.name.charAt(0)&&e.errors.push(function
XA(){return new
re(3006,Ze)}()),i.definitions.forEach(u=>{if(this._resetContextStyleTimingState(e),0==u.type){const
h=u,b=h.name;b.toString().split(/\s*,\s*/).forEach(y=>{h.name=y,r.push(this.visitState(h,e))}),h.name=b}else
if(1==u.type){const
h=this.visitTransition(u,e);n+=h.queryCount,s+=h.depCount,o.push(h)}else
e.errors.push(function eP(){return new
re(3007,Ze)}())}),{type:7,name:i.name,states:r,transitions:o,queryCount:n,depCount:s,options:null}}visitState(i,e){const
n=this.visitStyle(i.styles,e),s=i.options&&i.options.params||null;if(n.containsDynamicStyles){const
r=new Set,o=s||{};n.styles.forEach(u=>{if(qu(u)){const
h=u;Object.keys(h).forEach(b=>{
Ow(h[b]).forEach(y=>{o.hasOwnProperty(y)||r.add(y)})})}}),r.size&&(Pu(r.values()),e.errors.push(function
tP(t,i){return new
re(3008,Ze)}()))}return{type:0,name:i.name,style:n,options:s?{params:s}:null}}visitTransition(i,e){e.queryCount=0,e.depCount=0;const
n=ai(this,ul(i.animation),e);return{type:1,matchers:HP(i.expr,e.errors),animation:n,queryCount:e.queryCount,depCount:e.depCount,options:Sr(i.options)}}visitSequence(i,e){return{type:2,steps:i.steps.map(n=>ai(this,n,e)),options:Sr(i.options)}}visitGroup(i,e){const
n=e.currentTime;let s=0;const r=i.steps.map(o=>{e.currentTime=n;const
u=ai(this,o,e);return s=Math.max(s,e.currentTime),u});return
e.currentTime=s,{type:3,steps:r,options:Sr(i.options)}}visitAnimate(i,e){const n=function
QP(t,i){if(t.hasOwnProperty("duration"))return t;if("number"==typeof
t)return Lf(Ou(t,i).duration,0,"");const
e=t;if(e.split(/\s+/).some(r=>"{"==r.charAt(0)&&"{"==r.charAt(1))){const
r=Lf(0,0,"");return r.dynamic=!0,r.strValue=e,r}const s=Ou(e,i);return L
f(s.duration,s.delay,s.easing)}(i.timings,e.errors);e.currentAnimateTimings=n;let
s,r=i.styles?i.styles:it({});if(5==r.type)s=this.visitKeyframes(r,e);else{let
o=i.styles,u=!1;if(!o){u=!0;const
b={};n.easing&&(b.easing=n.easing),o=it(b)}e.currentTime+=n.duration+n.delay;const
h=this.visitStyle(o,e);h.isEmptyStep=u,s=h}return
e.currentAnimateTimings=null,{type:4,timings:n,style:s,options:null}}visitStyle(i,e){const
n=this._makeStyleAst(i,e);return this._validateStyleAst(n,e),n}_makeStyleAst(i,e){const
n=[];Array.isArray(i.styles)?i.styles.forEach(o=>{"string"==typeof
o?o==ys?n.push(o):e.errors.push(function nP(t){return new
re(3002,Ze)}()):n.push(o)}):n.push(i.styles);let s=!1,r=null;return
n.forEach(o=>{if(qu(o)){const u=o,h=u.easing;if(h&&(r=h,delete
u.easing),!s)for(let b in
u)if(u[b].toString().indexOf("{{")>=0){s=!0;break}}}),{type:6,styles:n,easing:r,offset:i.offset,containsDynamicStyles:s,options:null}}_validateStyleAst(i,e){const
n=e.currentAnimateTimings;let s=e.currentTime,
r=e.currentTime;n&&r>0&&(r-=n.duration+n.delay),i.styles.forEach(o=>{"string"!=typeof
o&&Object.keys(o).forEach(u=>{if(!this._driver.validateStyleProperty(u))return
delete o[u],void e.unsupportedCSSPropertiesFound.add(u);const
h=e.collectedStyles[e.currentQuerySelector],b=h[u];let
y=!0;b&&(r!=s&&r>=b.startTime&&s<=b.endTime&&(e.errors.push(function
iP(t,i,e,n,s){return new
re(3010,Ze)}()),y=!1),r=b.startTime),y&&(h[u]={startTime:r,endTime:s}),e.options&&function
LP(t,i,e){const
n=i.params||{},s=Ow(t);s.length&&s.forEach(r=>{n.hasOwnProperty(r)||e.push(function
QA(t){return new re(3001,Ze)}())})}(o[u],e.options,e.errors)})})}visitKeyframes(i,e){const
n={type:5,styles:[],options:null};if(!e.currentAnimateTimings)return
e.errors.push(function sP(){return new re(3011,Ze)}()),n;let r=0;const o=[];let
u=!1,h=!1,b=0;const y=i.steps.map(G=>{const P=this._makeStyleAst(G,e);let
J=null!=P.offset?P.offset:function KP(t){if("string"==typeof t)return null;let
i=null;if(Array.isArray(t))t.forEach(
e=>{if(qu(e)&&e.hasOwnProperty("offset")){const
n=e;i=parseFloat(n.offset),delete n.offset}});else
if(qu(t)&&t.hasOwnProperty("offset")){const
e=t;i=parseFloat(e.offset),delete e.offset}return i}(P.styles),se=0;return
null!=J&&(r++,se=P.offset=J),h=h||se<0||se>1,u=u||se<b,b=se,o.push(se),P});h&&e.errors.push(function
rP(){return new re(3012,Ze)}()),u&&e.errors.push(function oP(){return new
re(3200,Ze)}());const w=i.steps.length;let
M=0;r>0&&r<w?e.errors.push(function aP(){return new
re(3202,Ze)}()):0==r&&(M=1/(w-1));const
E=w-1,L=e.currentTime,O=e.currentAnimateTimings,N=O.duration;return
y.forEach((G,P)=>{const
J=M>0?P==E?1:M*P:o[P],se=J*N;e.currentTime=L+O.delay+se,O.duration=se,this._validateStyleAst(G,e),G.offset=J,n.styles.push(G)}),n}visitReference(i,e){return{type:8,animation:ai(this,ul(i.animation),e),options:Sr(i.options)}}visitAnimateChild(i,e){return
e.depCount++,{type:9,options:Sr(i.options)}}visitAnimateRef(i,e){return{type:10,animation:this.visitReference(i.animation,e
),options:Sr(i.options)}}visitQuery(i,e){const
n=e.currentQuerySelector,s=i.options||{};e.queryCount++,e.currentQuery=i;const[r,o]=function
jP(t){const i=!!t.split(/\s*,\s*/).find(e=>":self"==e);return
i&&(t=t.replace(UP,"")),t=t.replace(/@\*/g,Lu).replace(/@\w+/g,e=>Lu+"-"+e.substr(1)).replace(/:animating/g,Mf),[t,i]}(i.selector);e.currentQuerySelector=n.length?n+"
"+r:r,oi(e.collectedStyles,e.currentQuerySelector,{});const
u=ai(this,ul(i.animation),e);return
e.currentQuery=null,e.currentQuerySelector=n,{type:11,selector:r,limit:s.limit||0,optional:!!s.optional,includeSelf:o,animation:u,originalSelector:i.selector,options:Sr(i.options)}}visitStagger(i,e){e.currentQuery||e.errors.push(function
lP(){return new re(3013,Ze)}());const
n="full"===i.timings?{duration:0,delay:0,easing:"full"}:Ou(i.timings,e.errors,!0);return{type:12,animation:ai(this,ul(i.animation),e),timings:n,options:null}}}class
WP{constructor(i){this.errors=i,this.queryCount=0,this.depCount=0,this.currentTransition=nu
ll,this.currentQuery=null,this.currentQuerySelector=null,this.currentAnimateTimings=null,this.currentTime=0,this.collectedStyles={},this.options=null,this.unsupportedCSSPropertiesFound=new
Set}}function qu(t){return!Array.isArray(t)&&"object"==typeof t}function
Sr(t){return t?(t=Ro(t)).params&&(t.params=function $P(t){return
t?Ro(t):null}(t.params)):t={},t}function
Lf(t,i,e){return{duration:t,delay:i,easing:e}}function
Of(t,i,e,n,s,r,o=null,u=!1){return{type:1,element:t,keyframes:i,preStyleProps:e,postStyleProps:n,duration:s,delay:r,totalTime:s+r,easing:o,subTimeline:u}}class
Gu{constructor(){this._map=new Map}get(i){return this._map.get(i)||[]}append(i,e){let
n=this._map.get(i);n||this._map.set(i,n=[]),n.push(...e)}has(i){return
this._map.has(i)}clear(){this._map.clear()}}const ZP=new
RegExp(":enter","g"),eF=new
RegExp(":leave","g");function
Af(t,i,e,n,s,r={},o={},u,h,b=[]){return(new tF).buildKeyframes(t,i,e,n,s,r,o,u,h,b)}class
tF{buildKeyframes(i,e,n,s,r,o,u,h,b,y=[]){b=b||new G
u;const w=new
Pf(i,e,b,s,r,y,[]);w.options=h,w.currentTimeline.setStyles([o],null,w.errors,h),ai(this,n,w);const
M=w.timelines.filter(E=>E.containsAnimation());if(Object.keys(u).length){let E;for(let
L=M.length-1;L>=0;L--){const
O=M[L];if(O.element===e){E=O;break}}E&&!E.allowOnlyTimelineStyles()&&E.setStyles([u],null,w.errors,h)}return
M.length?M.map(E=>E.buildKeyframes()):[Of(e,[],[],[],0,0,"",!1)]}visitTrigger(i,e){}visitState(i,e){}visitTransition(i,e){}visitAnimateChild(i,e){const
n=e.subInstructions.get(e.element);if(n){const
s=e.createSubContext(i.options),r=e.currentTimeline.currentTime,o=this._visitSubInstructions(n,s,s.options);r!=o&&e.transformIntoNewTimeline(o)}e.previousNode=i}visitAnimateRef(i,e){const
n=e.createSubContext(i.options);n.transformIntoNewTimeline(),this.visitReference(i.animation,n),e.transformIntoNewTimeline(n.currentTimeline.currentTime),e.previousNode=i}_visitSubInstructions(i,e,n){let
r=e.currentTimeline.currentTime;const o=null!=n.duration?wr(n.durati
on):null,u=null!=n.delay?wr(n.delay):null;return 0!==o&&i.forEach(h=>{const
b=e.appendInstructionToTimeline(h,o,u);r=Math.max(r,b.duration+b.delay)}),r}visitReference(i,e){e.updateOptions(i.options,!0),ai(this,i.animation,e),e.previousNode=i}visitSequence(i,e){const
n=e.subContextCount;let s=e;const
r=i.options;if(r&&(r.params||r.delay)&&(s=e.createSubContext(r),s.transformIntoNewTimeline(),null!=r.delay)){6==s.previousNode.type&&(s.currentTimeline.snapshotCurrentStyles(),s.previousNode=Uu);const
o=wr(r.delay);s.delayNextStep(o)}i.steps.length&&(i.steps.forEach(o=>ai(this,o,s)),s.currentTimeline.applyStylesToKeyframe(),s.subContextCount>n&&s.transformIntoNewTimeline()),e.previousNode=i}visitGroup(i,e){const
n=[];let s=e.currentTimeline.currentTime;const
r=i.options&&i.options.delay?wr(i.options.delay):0;i.steps.forEach(o=>{const
u=e.createSubContext(i.options);r&&u.delayNextStep(r),ai(this,o,u),s=Math.max(s,u.currentTimeline.currentTime),n.push(u.currentTimeline)}),n.forEach(o=>e.cu
rrentTimeline.mergeTimelineCollectedStyles(o)),e.transformIntoNewTimeline(s),e.previousNode=i}_visitTiming(i,e){if(i.dynamic){const
n=i.strValue;return
Ou(e.params?Au(n,e.params,e.errors):n,e.errors)}return{duration:i.duration,delay:i.delay,easing:i.easing}}visitAnimate(i,e){const
n=e.currentAnimateTimings=this._visitTiming(i.timings,e),s=e.currentTimeline;n.delay&&(e.incrementTime(n.delay),s.snapshotCurrentStyles());const
r=i.style;5==r.type?this.visitKeyframes(r,e):(e.incrementTime(n.duration),this.visitStyle(r,e),s.applyStylesToKeyframe()),e.currentAnimateTimings=null,e.previousNode=i}visitStyle(i,e){const
n=e.currentTimeline,s=e.currentAnimateTimings;!s&&n.getCurrentStyleProperties().length&&n.forwardFrame();const
r=s&&s.easing||i.easing;i.isEmptyStep?n.applyEmptyStep(r):n.setStyles(i.styles,r,e.errors,e.options),e.previousNode=i}visitKeyframes(i,e){const
n=e.currentAnimateTimings,s=e.currentTimeline.duration,r=n.duration,u=e.createSubContext().currentTimeline;u.easing=n.easing,
i.styles.forEach(h=>{u.forwardTime((h.offset||0)*r),u.setStyles(h.styles,h.easing,e.errors,e.options),u.applyStylesToKeyframe()}),e.currentTimeline.mergeTimelineCollectedStyles(u),e.transformIntoNewTimeline(s+r),e.previousNode=i}visitQuery(i,e){const
n=e.currentTimeline.currentTime,s=i.options||{},r=s.delay?wr(s.delay):0;r&&(6===e.previousNode.type||0==n&&e.currentTimeline.getCurrentStyleProperties().length)&&(e.currentTimeline.snapshotCurrentStyles(),e.previousNode=Uu);let
o=n;const
u=e.invokeQuery(i.selector,i.originalSelector,i.limit,i.includeSelf,!!s.optional,e.errors);e.currentQueryTotal=u.length;let
h=null;u.forEach((b,y)=>{e.currentQueryIndex=y;const
w=e.createSubContext(i.options,b);r&&w.delayNextStep(r),b===e.element&&(h=w.currentTimeline),ai(this,i.animation,w),w.currentTimeline.applyStylesToKeyframe(),o=Math.max(o,w.currentTimeline.currentTime)}),e.currentQueryIndex=0,e.currentQueryTotal=0,e.transformIntoNewTimeline(o),h&&(e.currentTimeline.mergeTimelineCollectedStyles(h)
,e.currentTimeline.snapshotCurrentStyles()),e.previousNode=i}visitStagger(i,e){const
n=e.parentContext,s=e.currentTimeline,r=i.timings,o=Math.abs(r.duration),u=o*(e.currentQueryTotal-1);let
h=o*e.currentQueryIndex;switch(r.duration<0?"reverse":r.easing){case"reverse":h=u-h;break;case"full":h=n.currentStaggerTime}const
y=e.currentTimeline;h&&y.delayNextStep(h);const
w=y.currentTime;ai(this,i.animation,e),e.previousNode=i,n.currentStaggerTime=s.currentTime-w+(s.startTime-n.currentTimeline.startTime)}}const
Uu={};class
Pf{constructor(i,e,n,s,r,o,u,h){this._driver=i,this.element=e,this.subInstructions=n,this._enterClassName=s,this._leaveClassName=r,this.errors=o,this.timelines=u,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=Uu,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=h||new
zu(this._driver,e,0),u.push(this.currentTimeline)}get params(){return
this.options.params}upd
ateOptions(i,e){if(!i)return;const n=i;let
s=this.options;null!=n.duration&&(s.duration=wr(n.duration)),null!=n.delay&&(s.delay=wr(n.delay));const
r=n.params;if(r){let
o=s.params;o||(o=this.options.params={}),Object.keys(r).forEach(u=>{(!e||!o.hasOwnProperty(u))&&(o[u]=Au(r[u],o,this.errors))})}}_copyOptions(){const
i={};if(this.options){const e=this.options.params;if(e){const
n=i.params={};Object.keys(e).forEach(s=>{n[s]=e[s]})}}return
i}createSubContext(i=null,e,n){const s=e||this.element,r=new
Pf(this._driver,s,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(s,n||0));return
r.previousNode=this.previousNode,r.currentAnimateTimings=this.currentAnimateTimings,r.options=this._copyOptions(),r.updateOptions(i),r.currentQueryIndex=this.currentQueryIndex,r.currentQueryTotal=this.currentQueryTotal,r.parentContext=this,this.subContextCount++,r}transformIntoNewTimeline(i){return
this.previousNode=Uu,this.currentTimeline=thi
s.currentTimeline.fork(this.element,i),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(i,e,n){const
s={duration:null!=e?e:i.duration,delay:this.currentTimeline.currentTime+(null!=n?n:0)+i.delay,easing:""},r=new
nF(this._driver,i.element,i.keyframes,i.preStyleProps,i.postStyleProps,s,i.stretchStartingKeyframe);return
this.timelines.push(r),s}incrementTime(i){this.currentTimeline.forwardTime(this.currentTimeline.duration+i)}delayNextStep(i){i>0&&this.currentTimeline.delayNextStep(i)}invokeQuery(i,e,n,s,r,o){let
u=[];if(s&&u.push(this.element),i.length>0){i=(i=i.replace(ZP,"."+this._enterClassName)).replace(eF,"."+this._leaveClassName);let
b=this._driver.query(this.element,i,1!=n);0!==n&&(b=n<0?b.slice(b.length+n,b.length):b.slice(0,n)),u.push(...b)}return!r&&0==u.length&&o.push(function
cP(t){return new re(3014,Ze)}()),u}}class
zu{constructor(i,e,n,s){this._driver=i,this.element=e,this.startTime=n,this._elementTimelineStylesLookup=s,this.dura
tion=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(i){const
e=1==this._keyframes.size&&Object.keys(this._pendingStyles).length;this.duration||e?(this.forwardTime(this.currentTime+i),e&&this.snapshotCurrentStyles()
):this.startTime+=i}fork(i,e){return this.applyStylesToKeyframe(),new
zu(this._driver,i,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(i){this.applyStylesToKeyframe(),this.duration=i,this._loadKeyframe()}_updateStyle(i,e){this._localTimelineStyles[i]=e,this._globalTimelineStyles[i]=e,this._styleSummary[i]={time:this.currentTime,value:e}}allowOnlyTimelineStyles(){return
this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(i){i&&(this._previousKeyframe.easing=i),Object.keys(this._globalTimelineStyles).forEach(e=>{this._backFill[e]=this._globalTimelineStyles[e]||ys,this._currentKeyframe[e]=ys}),this._currentEmptyStepKeyfra
me=this._currentKeyframe}setStyles(i,e,n,s){e&&(this._previousKeyframe.easing=e);const
r=s&&s.params||{},o=function iF(t,i){const e={};let n;return
t.forEach(s=>{"*"===s?(n=n||Object.keys(i),n.forEach(r=>{e[r]=ys})):Ws(s,!1,e)}),e}(i,this._globalTimelineStyles);Object.keys(o).forEach(u=>{const
h=Au(o[u],r,n);this._pendingStyles[u]=h,this._localTimelineStyles.hasOwnProperty(u)||(this._backFill[u]=this._globalTimelineStyles.hasOwnProperty(u)?this._globalTimelineStyles[u]:ys),this._updateStyle(u,h)})}applyStylesToKeyframe(){const
i=this._pendingStyles,e=Object.keys(i);0!=e.length&&(this._pendingStyles={},e.forEach(n=>{this._currentKeyframe[n]=i[n]}),Object.keys(this._localTimelineStyles).forEach(n=>{this._currentKeyframe.hasOwnProperty(n)||(this._currentKeyframe[n]=this._localTimelineStyles[n])}))}snapshotCurrentStyles(){Object.keys(this._localTimelineStyles).forEach(i=>{const
e=this._localTimelineStyles[i];this._pendingStyles[i]=e,this._updateStyle(i,e)})}getFinalKeyframe(){return
thi
s._keyframes.get(this.duration)}get properties(){const i=[];for(let e in
this._currentKeyframe)i.push(e);return
i}mergeTimelineCollectedStyles(i){Object.keys(i._styleSummary).forEach(e=>{const
n=this._styleSummary[e],s=i._styleSummary[e];(!n||s.time>n.time)&&this._updateStyle(e,s.value)})}buildKeyframes(){this.applyStylesToKeyframe();const
i=new Set,e=new Set,n=1===this._keyframes.size&&0===this.duration;let
s=[];this._keyframes.forEach((u,h)=>{const
b=Ws(u,!0);Object.keys(b).forEach(y=>{const
w=b[y];"!"==w?i.add(y):w==ys&&e.add(y)}),n||(b.offset=h/this.duration),s.push(b)});const
r=i.size?Pu(i.values()):[],o=e.size?Pu(e.values()):[];if(n){const
u=s[0],h=Ro(u);u.offset=0,h.offset=1,s=[u,h]}return
Of(this.element,s,r,o,this.duration,this.startTime,this.easing,!1)}}class nF extends
zu{constructor(i,e,n,s,r,o,u=!1){super(i,e,o.delay),this.keyframes=n,this.preStyleProps=s,this.postStyleProps=r,this._stretchStartingKeyframe=u,this.timings={duration:o.duration,delay:o.delay,easing:o.easin
g}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let
i=this.keyframes,{delay:e,duration:n,easing:s}=this.timings;if(this._stretchStartingKeyframe&&e){const
r=[],o=n+e,u=e/o,h=Ws(i[0],!1);h.offset=0,r.push(h);const
b=Ws(i[0],!1);b.offset=Vw(u),r.push(b);const y=i.length-1;for(let w=1;w<=y;w++){let
M=Ws(i[w],!1);M.offset=Vw((e+M.offset*n)/o),r.push(M)}n=o,e=0,s="",i=r}return
Of(this.element,i,this.preStyleProps,this.postStyleProps,n,e,s,!0)}}function
Vw(t,i=3){const e=Math.pow(10,i-1);return Math.round(t*e)/e}class Ff{}class sF extends
Ff{normalizePropertyName(i,e){return Ef(i)}normalizeStyleValue(i,e,n,s){let
r="";const
o=n.toString().trim();if(rF[e]&&0!==n&&"0"!==n)if("number"==typeof
n)r="px";else{const
u=n.match(/^[+-]?[\d\.]+([a-z]*)$/);u&&0==u[1].length&&s.push(function
ZA(t,i){return new re(3005,Ze)}())}return o+r}}const rF=(()=>function oF(t){const
i={};return
t.forEach(e=>i[e]=!0),i}("width,height,minWidth,minHeight,maxWidth,maxHeight,left,top,bottom,rig
ht,fontSize,outlineWidth,outlineOffset,paddingTop,paddingLeft,paddingBottom,paddingRight,marginTop,marginLeft,marginBottom,marginRight,borderRadius,borderWidth,borderTopWidth,borderLeftWidth,borderRightWidth,borderBottomWidth,textIndent,perspective".split(",")))();function
Bw(t,i,e,n,s,r,o,u,h,b,y,w,M){return{type:0,element:t,triggerName:i,isRemovalTransition:s,fromState:e,fromStyles:r,toState:n,toStyles:o,timelines:u,queriedElements:h,preStyleProps:b,postStyleProps:y,totalTime:w,errors:M}}const
Nf={};class
Hw{constructor(i,e,n){this._triggerName=i,this.ast=e,this._stateStyles=n}match(i,e,n,s){return
function aF(t,i,e,n,s){return
t.some(r=>r(i,e,n,s))}(this.ast.matchers,i,e,n,s)}buildStyles(i,e,n){const
s=this._stateStyles["*"],r=this._stateStyles[i],o=s?s.buildStyles(e,n):{};return
r?r.buildStyles(e,n):o}build(i,e,n,s,r,o,u,h,b,y){const
w=[],M=this.ast.options&&this.ast.options.params||Nf,L=this.buildStyles(n,u&&u.params||Nf,w),O=h&&h.params||Nf,N=this.buildStyles(s,O,w),G=new
Set,
P=new Map,J=new
Map,se="void"===s,ke={params:Object.assign(Object.assign({},M),O)},mt=y?[]:Af(i,e,this.ast.animation,r,o,L,N,ke,b,w);let
Ct=0;if(mt.forEach(At=>{Ct=Math.max(At.duration+At.delay,Ct)}),w.length)return
Bw(e,this._triggerName,n,s,se,L,N,[],[],P,J,Ct,w);mt.forEach(At=>{const
hn=At.element,$o=oi(P,hn,{});At.preStyleProps.forEach($i=>$o[$i]=!0);const
ks=oi(J,hn,{});At.postStyleProps.forEach($i=>ks[$i]=!0),hn!==e&&G.add(hn)});const
Ut=Pu(G.values());return Bw(e,this._triggerName,n,s,se,L,N,mt,Ut,P,J,Ct)}}class
lF{constructor(i,e,n){this.styles=i,this.defaultParams=e,this.normalizer=n}buildStyles(i,e){const
n={},s=Ro(this.defaultParams);return Object.keys(i).forEach(r=>{const
o=i[r];null!=o&&(s[r]=o)}),this.styles.styles.forEach(r=>{if("string"!=typeof
r){const o=r;Object.keys(o).forEach(u=>{let
h=o[u];h.length>1&&(h=Au(h,s,e));const
b=this.normalizer.normalizePropertyName(u,e);h=this.normalizer.normalizeStyleValue(u,b,h,e),n[b]=h})}}),n}}class
uF{constructor(i,e,n){this.nam
e=i,this.ast=e,this._normalizer=n,this.transitionFactories=[],this.states={},e.states.forEach(s=>{this.states[s.name]=new
lF(s.style,s.options&&s.options.params||{},n)}),qw(this.states,"true","1"),qw(this.states,"false","0"),e.transitions.forEach(s=>{this.transitionFactories.push(new
Hw(i,s,this.states))}),this.fallbackTransition=function dF(t,i,e){return new
Hw(t,{type:1,animation:{type:2,steps:[],options:null},matchers:[(o,u)=>!0],options:null,queryCount:0,depCount:0},i)}(i,this.states)}get
containsQueries(){return this.ast.queryCount>0}matchTransition(i,e,n,s){return
this.transitionFactories.find(o=>o.match(i,e,n,s))||null}matchStyles(i,e,n){return
this.fallbackTransition.buildStyles(i,e,n)}}function
qw(t,i,e){t.hasOwnProperty(i)?t.hasOwnProperty(e)||(t[e]=t[i]):t.hasOwnProperty(e)&&(t[i]=t[e])}const
pF=new Gu;class
hF{constructor(i,e,n){this.bodyNode=i,this._driver=e,this._normalizer=n,this._animations={},this._playersById={},this.players=[]}register(i,e){const
n=[],r=Rf(this._d
river,e,n,[]);if(n.length)throw function gP(t){return new
re(3503,Ze)}();this._animations[i]=r}_buildPlayer(i,e,n){const
s=i.element,r=vw(0,this._normalizer,0,i.keyframes,e,n);return
this._driver.animate(s,r,i.duration,i.delay,i.easing,[],!0)}create(i,e,n={}){const
s=[],r=this._animations[i];let o;const u=new
Map;if(r?(o=Af(this._driver,e,r,Df,Eu,{},{},n,pF,s),o.forEach(y=>{const
w=oi(u,y.element,{});y.postStyleProps.forEach(M=>w[M]=null)})):(s.push(function
_P(){return new re(3300,Ze)}()),o=[]),s.length)throw function bP(t){return new
re(3504,Ze)}();u.forEach((y,w)=>{Object.keys(y).forEach(M=>{y[M]=this._driver.computeStyle(w,M,ys)})});const
b=$s(o.map(y=>{const w=u.get(y.element);return this._buildPlayer(y,{},w)}));return
this._playersById[i]=b,b.onDestroy(()=>this.destroy(i)),this.players.push(b),b}destroy(i){const
e=this._getPlayer(i);e.destroy(),delete this._playersById[i];const
n=this.players.indexOf(e);n>=0&&this.players.splice(n,1)}_getPlayer(i){const
e=this._playersById[i];
if(!e)throw function vP(t){return new re(3301,Ze)}();return e}listen(i,e,n,s){const
r=wf(e,"","","");return
Cf(this._getPlayer(i),n,r,s),()=>{}}command(i,e,n,s){if("register"==n)return
void this.register(i,s[0]);if("create"==n)return void
this.create(i,e,s[0]||{});const
r=this._getPlayer(i);switch(n){case"play":r.play();break;case"pause":r.pause();break;case"reset":r.reset();break;case"restart":r.restart();break;case"finish":r.finish();break;case"init":r.init();break;case"setPosition":r.setPosition(parseFloat(s[0]));break;case"destroy":this.destroy(i)}}}const
Gw="ng-animate-queued",Vf="ng-animate-disabled",bF=[],Uw={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},vF={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},Ti="__ng_removed";class
Bf{constructor(i,e=""){this.namespaceId=e;const
n=i&&i.hasOwnProperty("value");if(this.value=function TF(t){return
null!=t?t:null}(n?i.value:i),n){const r=Ro(i);delete r.v
alue,this.options=r}else
this.options={};this.options.params||(this.options.params={})}get params(){return
this.options.params}absorbOptions(i){const e=i.params;if(e){const
n=this.options.params;Object.keys(e).forEach(s=>{null==n[s]&&(n[s]=e[s])})}}}const
dl="void",Hf=new Bf(dl);class
CF{constructor(i,e,n){this.id=i,this.hostElement=e,this._engine=n,this.players=[],this._triggers={},this._queue=[],this._elementListeners=new
Map,this._hostClassName="ng-tns-"+i,Si(e,this._hostClassName)}listen(i,e,n,s){if(!this._triggers.hasOwnProperty(e))throw
function CP(t,i){return new re(3302,Ze)}();if(null==n||0==n.length)throw function
yP(t){return new re(3303,Ze)}();if(!function
SF(t){return"start"==t||"done"==t}(n))throw function wP(t,i){return
new re(3400,Ze)}();const
r=oi(this._elementListeners,i,[]),o={name:e,phase:n,callback:s};r.push(o);const
u=oi(this._engine.statesByElement,i,{});return
u.hasOwnProperty(e)||(Si(i,Ru),Si(i,Ru+"-"+e),u[e]=Hf),()=>{this._engine.afterFlush(()=>{const
h=r.in
dexOf(o);h>=0&&r.splice(h,1),this._triggers[e]||delete
u[e]})}}register(i,e){return!this._triggers[i]&&(this._triggers[i]=e,!0)}_getTrigger(i){const
e=this._triggers[i];if(!e)throw function TP(t){return new re(3401,Ze)}();return
e}trigger(i,e,n,s=!0){const r=this._getTrigger(e),o=new qf(this.id,e,i);let
u=this._engine.statesByElement.get(i);u||(Si(i,Ru),Si(i,Ru+"-"+e),this._engine.statesByElement.set(i,u={}));let
h=u[e];const b=new
Bf(n,this.id);if(!(n&&n.hasOwnProperty("value"))&&h&&b.absorbOptions(h.options),u[e]=b,h||(h=Hf),b.value!==dl&&h.value===b.value){if(!function
MF(t,i){const e=Object.keys(t),n=Object.keys(i);if(e.length!=n.length)return!1;for(let
s=0;s<e.length;s++){const
r=e[s];if(!i.hasOwnProperty(r)||t[r]!==i[r])return!1}return!0}(h.params,b.params)){const
O=[],N=r.matchStyles(h.value,h.params,O),G=r.matchStyles(b.value,b.params,O);O.length?this._engine.reportError(O):this._engine.afterFlush(()=>{Tr(i,N),rs(i,G)})}return}const
M=oi(this._engine.playersByElement,i,[]);M
.forEach(O=>{O.namespaceId==this.id&&O.triggerName==e&&O.queued&&O.destroy()});let
E=r.matchTransition(h.value,b.value,i,b.params),L=!1;if(!E){if(!s)return;E=r.fallbackTransition,L=!0}return
this._engine.totalQueuedPlayers++,this._queue.push({element:i,triggerName:e,transition:E,fromState:h,toState:b,player:o,isFallbackTransition:L}),L||(Si(i,Gw),o.onStart(()=>{Lo(i,Gw)})),o.onDone(()=>{let
O=this.players.indexOf(o);O>=0&&this.players.splice(O,1);const
N=this._engine.playersByElement.get(i);if(N){let
G=N.indexOf(o);G>=0&&N.splice(G,1)}}),this.players.push(o),M.push(o),o}deregister(i){delete
this._triggers[i],this._engine.statesByElement.forEach((e,n)=>{delete
e[i]}),this._elementListeners.forEach((e,n)=>{this._elementListeners.set(n,e.filter(s=>s.name!=i))})}clearElementCache(i){this._engine.statesByElement.delete(i),this._elementListeners.delete(i);const
e=this._engine.playersByElement.get(i);e&&(e.forEach(n=>n.destroy()),this._engine.playersByElement.delete(i))}_signalRemovalForIn
nerTriggers(i,e){const
n=this._engine.driver.query(i,Lu,!0);n.forEach(s=>{if(s[Ti])return;const
r=this._engine.fetchNamespacesByElement(s);r.size?r.forEach(o=>o.triggerLeaveAnimation(s,e,!1,!0)):this.clearElementCache(s)}),this._engine.afterFlushAnimationsDone(()=>n.forEach(s=>this.clearElementCache(s)))}triggerLeaveAnimation(i,e,n,s){const
r=this._engine.statesByElement.get(i),o=new Map;if(r){const
u=[];if(Object.keys(r).forEach(h=>{if(o.set(h,r[h].value),this._triggers[h]){const
b=this.trigger(i,h,dl,s);b&&u.push(b)}}),u.length)return
this._engine.markElementAsRemoved(this.id,i,!0,e,o),n&&$s(u).onDone(()=>this._engine.processLeaveNode(i)),!0}return!1}prepareLeaveAnimationListeners(i){const
e=this._elementListeners.get(i),n=this._engine.statesByElement.get(i);if(e&&n){const
s=new Set;e.forEach(r=>{const o=r.name;if(s.has(o))return;s.add(o);const
h=this._triggers[o].fallbackTransition,b=n[o]||Hf,y=new Bf(dl),w=new
qf(this.id,o,i);this._engine.totalQueuedPlayers++,this._queue.push({e
lement:i,triggerName:o,transition:h,fromState:b,toState:y,player:w,isFallbackTransition:!0})})}}removeNode(i,e){const
n=this._engine;if(i.childElementCount&&this._signalRemovalForInnerTriggers(i,e),this.triggerLeaveAnimation(i,e,!0))return;let
s=!1;if(n.totalAnimations){const
r=n.players.length?n.playersByQueriedElement.get(i):[];if(r&&r.length)s=!0;else{let
o=i;for(;o=o.parentNode;)if(n.statesByElement.get(o)){s=!0;break}}}if(this.prepareLeaveAnimationListeners(i),s)n.markElementAsRemoved(this.id,i,!1,e);else{const
r=i[Ti];(!r||r===Uw)&&(n.afterFlush(()=>this.clearElementCache(i)),n.destroyInnerAnimations(i),n._onRemovalComplete(i,e))}}insertNode(i,e){Si(i,this._hostClassName)}drainQueuedTransitions(i){const
e=[];return this._queue.forEach(n=>{const s=n.player;if(s.destroyed)return;const
r=n.element,o=this._elementListeners.get(r);o&&o.forEach(u=>{if(u.name==n.triggerName){const
h=wf(r,n.triggerName,n.fromState.value,n.toState.value);h._data=i,Cf(n.player,u.phase,h,u.callback)}}),s
.markedForDestroy?this._engine.afterFlush(()=>{s.destroy()}):e.push(n)}),this._queue=[],e.sort((n,s)=>{const
r=n.transition.ast.depCount,o=s.transition.ast.depCount;return
0==r||0==o?r-o:this._engine.driver.containsElement(n.element,s.element)?1:-1})}destroy(i){this.players.forEach(e=>e.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,i)}elementContainsData(i){let
e=!1;return
this._elementListeners.has(i)&&(e=!0),e=!!this._queue.find(n=>n.element===i)||e,e}}class
yF{constructor(i,e,n){this.bodyNode=i,this.driver=e,this._normalizer=n,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=(s,r)=>{}}_onRem
ovalComplete(i,e){this.onRemovalComplete(i,e)}get queuedPlayers(){const i=[];return
this._namespaceList.forEach(e=>{e.players.forEach(n=>{n.queued&&i.push(n)})}),i}createNamespace(i,e){const
n=new CF(i,e,this);return
this.bodyNode&&this.driver.containsElement(this.bodyNode,e)?this._balanceNamespaceList(n,e):(this.newHostElements.set(e,n),this.collectEnterElement(e)),this._namespaceLookup[i]=n}_balanceNamespaceList(i,e){const
n=this._namespaceList,s=this.namespacesByHostElement,r=n.length-1;if(r>=0){let
o=!1;if(void 0!==this.driver.getParentElement){let
u=this.driver.getParentElement(e);for(;u;){const h=s.get(u);if(h){const
b=n.indexOf(h);n.splice(b+1,0,i),o=!0;break}u=this.driver.getParentElement(u)}}else
for(let
u=r;u>=0;u--)if(this.driver.containsElement(n[u].hostElement,e)){n.splice(u+1,0,i),o=!0;break}o||n.unshift(i)}else
n.push(i);return s.set(e,i),i}register(i,e){let n=this._namespaceLookup[i];return
n||(n=this.createNamespace(i,e)),n}registerTrigger(i,e,n){let s=this._namespa
ceLookup[i];s&&s.register(e,n)&&this.totalAnimations++}destroy(i,e){if(!i)return;const
n=this._fetchNamespace(i);this.afterFlush(()=>{this.namespacesByHostElement.delete(n.hostElement),delete
this._namespaceLookup[i];const
s=this._namespaceList.indexOf(n);s>=0&&this._namespaceList.splice(s,1)}),this.afterFlushAnimationsDone(()=>n.destroy(e))}_fetchNamespace(i){return
this._namespaceLookup[i]}fetchNamespacesByElement(i){const e=new
Set,n=this.statesByElement.get(i);if(n){const s=Object.keys(n);for(let
r=0;r<s.length;r++){const o=n[s[r]].namespaceId;if(o){const
u=this._fetchNamespace(o);u&&e.add(u)}}}return e}trigger(i,e,n,s){if(ju(e)){const
r=this._fetchNamespace(i);if(r)return
r.trigger(e,n,s),!0}return!1}insertNode(i,e,n,s){if(!ju(e))return;const
r=e[Ti];if(r&&r.setForRemoval){r.setForRemoval=!1,r.setForMove=!0;const
o=this.collectedLeaveElements.indexOf(e);o>=0&&this.collectedLeaveElements.splice(o,1)}if(i){const
o=this._fetchNamespace(i);o&&o.insertNode(e,n)}s&&this.collectEnterE
lement(e)}collectEnterElement(i){this.collectedEnterElements.push(i)}markElementAsDisabled(i,e){e?this.disabledNodes.has(i)||(this.disabledNodes.add(i),Si(i,Vf)):this.disabledNodes.has(i)&&(this.disabledNodes.delete(i),Lo(i,Vf))}removeNode(i,e,n,s){if(ju(e)){const
r=i?this._fetchNamespace(i):null;if(r?r.removeNode(e,s):this.markElementAsRemoved(i,e,!1,s),n){const
o=this.namespacesByHostElement.get(e);o&&o.id!==i&&o.removeNode(e,s)}}else
this._onRemovalComplete(e,s)}markElementAsRemoved(i,e,n,s,r){this.collectedLeaveElements.push(e),e[Ti]={namespaceId:i,setForRemoval:s,hasAnimation:n,removedBeforeQueried:!1,previousTriggersValues:r}}listen(i,e,n,s,r){return
ju(e)?this._fetchNamespace(i).listen(e,n,s,r):()=>{}}_buildInstruction(i,e,n,s,r){return
i.transition.build(this.driver,i.element,i.fromState.value,i.toState.value,n,s,i.fromState.options,i.toState.options,e,r)}destroyInnerAnimations(i){let
e=this.driver.query(i,Lu,!0);e.forEach(n=>this.destroyActiveAnimationsForElement(n)),0!=thi
s.playersByQueriedElement.size&&(e=this.driver.query(i,Mf,!0),e.forEach(n=>this.finishActiveQueriedAnimationOnElement(n)))}destroyActiveAnimationsForElement(i){const
e=this.playersByElement.get(i);e&&e.forEach(n=>{n.queued?n.markedForDestroy=!0:n.destroy()})}finishActiveQueriedAnimationOnElement(i){const
e=this.playersByQueriedElement.get(i);e&&e.forEach(n=>n.finish())}whenRenderingDone(){return
new Promise(i=>{if(this.players.length)return
$s(this.players).onDone(()=>i());i()})}processLeaveNode(i){var e;const
n=i[Ti];if(n&&n.setForRemoval){if(i[Ti]=Uw,n.namespaceId){this.destroyInnerAnimations(i);const
s=this._fetchNamespace(n.namespaceId);s&&s.clearElementCache(i)}this._onRemovalComplete(i,n.setForRemoval)}(null===(e=i.classList)||void
0===e?void
0:e.contains(Vf))&&this.markElementAsDisabled(i,!1),this.driver.query(i,".ng-animate-disabled",!0).forEach(s=>{this.markElementAsDisabled(s,!1)})}flush(i=-1){let
e=[];if(this.newHostElements.size&&(this.newHostElements.forEach((n,s)=>this
._balanceNamespaceList(n,s)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let
n=0;n<this.collectedEnterElements.length;n++)Si(this.collectedEnterElements[n],"ng-star-inserted");if(this._namespaceList.length&&(this.totalQueuedPlayers||this.collectedLeaveElements.length)){const
n=[];try{e=this._flushAnimations(n,i)}finally{for(let s=0;s<n.length;s++)n[s]()}}else
for(let
n=0;n<this.collectedLeaveElements.length;n++)this.processLeaveNode(this.collectedLeaveElements[n]);if(this.totalQueuedPlayers=0,this.collectedEnterElements.length=0,this.collectedLeaveElements.length=0,this._flushFns.forEach(n=>n()),this._flushFns=[],this._whenQuietFns.length){const
n=this._whenQuietFns;this._whenQuietFns=[],e.length?$s(e).onDone(()=>{n.forEach(s=>s())}):n.forEach(s=>s())}}reportError(i){throw
function SP(t){return new re(3402,Ze)}()}_flushAnimations(i,e){const n=new Gu,s=[],r=new
Map,o=[],u=new Map,h=new Map,b=new Map,y=new Set;this.disabledNodes.forEach(a
e=>{y.add(ae);const fe=this.driver.query(ae,".ng-animate-queued",!0);for(let
Se=0;Se<fe.length;Se++)y.add(fe[Se])});const
w=this.bodyNode,M=Array.from(this.statesByElement.keys()),E=$w(M,this.collectedEnterElements),L=new
Map;let O=0;E.forEach((ae,fe)=>{const
Se=Df+O++;L.set(fe,Se),ae.forEach(ot=>Si(ot,Se))});const N=[],G=new Set,P=new
Set;for(let ae=0;ae<this.collectedLeaveElements.length;ae++){const
fe=this.collectedLeaveElements[ae],Se=fe[Ti];Se&&Se.setForRemoval&&(N.push(fe),G.add(fe),Se.hasAnimation?this.driver.query(fe,".ng-star-inserted",!0).forEach(ot=>G.add(ot)):P.add(fe))}const
J=new Map,se=$w(M,Array.from(G));se.forEach((ae,fe)=>{const
Se=Eu+O++;J.set(fe,Se),ae.forEach(ot=>Si(ot,Se))}),i.push(()=>{E.forEach((ae,fe)=>{const
Se=L.get(fe);ae.forEach(ot=>Lo(ot,Se))}),se.forEach((ae,fe)=>{const
Se=J.get(fe);ae.forEach(ot=>Lo(ot,Se))}),N.forEach(ae=>{this.processLeaveNode(ae)})});const
ke=[],mt=[];for(let
ae=this._namespaceList.length-1;ae>=0;ae--)this._namespaceList[ae].drainQ
ueuedTransitions(e).forEach(Se=>{const
ot=Se.player,Cn=Se.element;if(ke.push(ot),this.collectedEnterElements.length){const
$n=Cn[Ti];if($n&&$n.setForMove){if($n.previousTriggersValues&&$n.previousTriggersValues.has(Se.triggerName)){const
Pr=$n.previousTriggersValues.get(Se.triggerName),tr=this.statesByElement.get(Se.element);tr&&tr[Se.triggerName]&&(tr[Se.triggerName].value=Pr)}return
void ot.destroy()}}const
us=!w||!this.driver.containsElement(w,Cn),ui=J.get(Cn),er=L.get(Cn),zt=this._buildInstruction(Se,n,er,ui,us);if(zt.errors&&zt.errors.length)return
void mt.push(zt);if(us)return
ot.onStart(()=>Tr(Cn,zt.fromStyles)),ot.onDestroy(()=>rs(Cn,zt.toStyles)),void
s.push(ot);if(Se.isFallbackTransition)return
ot.onStart(()=>Tr(Cn,zt.fromStyles)),ot.onDestroy(()=>rs(Cn,zt.toStyles)),void
s.push(ot);const
AS=[];zt.timelines.forEach($n=>{$n.stretchStartingKeyframe=!0,this.disabledNodes.has($n.element)||AS.push($n)}),zt.timelines=AS,n.append(Cn,zt.timelines),o.push({instruction:zt,player:ot,
element:Cn}),zt.queriedElements.forEach($n=>oi(u,$n,[]).push(ot)),zt.preStyleProps.forEach(($n,Pr)=>{const
tr=Object.keys($n);if(tr.length){let Fr=h.get(Pr);Fr||h.set(Pr,Fr=new
Set),tr.forEach(xg=>Fr.add(xg))}}),zt.postStyleProps.forEach(($n,Pr)=>{const
tr=Object.keys($n);let Fr=b.get(Pr);Fr||b.set(Pr,Fr=new
Set),tr.forEach(xg=>Fr.add(xg))})});if(mt.length){const
ae=[];mt.forEach(fe=>{ae.push(function xP(t,i){return new
re(3505,Ze)}())}),ke.forEach(fe=>fe.destroy()),this.reportError(ae)}const Ct=new
Map,Ut=new Map;o.forEach(ae=>{const
fe=ae.element;n.has(fe)&&(Ut.set(fe,fe),this._beforeAnimationBuild(ae.player.namespaceId,ae.instruction,Ct))}),s.forEach(ae=>{const
fe=ae.element;this._getPreviousPlayers(fe,!1,ae.namespaceId,ae.triggerName,null).forEach(ot=>{oi(Ct,fe,[]).push(ot),ot.destroy()})});const
At=N.filter(ae=>Kw(ae,h,b)),hn=new
Map;jw(hn,this.driver,P,b,ys).forEach(ae=>{Kw(ae,h,b)&&At.push(ae)});const
ks=new Map;E.forEach((ae,fe)=>{jw(ks,this.driver,new Set(ae),h,"!")}),At.fo
rEach(ae=>{const
fe=hn.get(ae),Se=ks.get(ae);hn.set(ae,Object.assign(Object.assign({},fe),Se))});const
$i=[],Wo=[],Ko={};o.forEach(ae=>{const{element:fe,player:Se,instruction:ot}=ae;if(n.has(fe)){if(y.has(fe))return
Se.onDestroy(()=>rs(fe,ot.toStyles)),Se.disabled=!0,Se.overrideTotalTime(ot.totalTime),void
s.push(Se);let Cn=Ko;if(Ut.size>1){let ui=fe;const er=[];for(;ui=ui.parentNode;){const
zt=Ut.get(ui);if(zt){Cn=zt;break}er.push(ui)}er.forEach(zt=>Ut.set(zt,Cn))}const
us=this._buildAnimation(Se.namespaceId,ot,Ct,r,ks,hn);if(Se.setRealPlayer(us),Cn===Ko)$i.push(Se);else{const
ui=this.playersByElement.get(Cn);ui&&ui.length&&(Se.parentPlayer=$s(ui)),s.push(Se)}}else
Tr(fe,ot.fromStyles),Se.onDestroy(()=>rs(fe,ot.toStyles)),Wo.push(Se),y.has(fe)&&s.push(Se)}),Wo.forEach(ae=>{const
fe=r.get(ae.element);if(fe&&fe.length){const
Se=$s(fe);ae.setRealPlayer(Se)}}),s.forEach(ae=>{ae.parentPlayer?ae.syncPlayerEvents(ae.parentPlayer):ae.destroy()});for(let
ae=0;ae<N.length;ae++){const fe=N[ae
],Se=fe[Ti];if(Lo(fe,Eu),Se&&Se.hasAnimation)continue;let ot=[];if(u.size){let
us=u.get(fe);us&&us.length&&ot.push(...us);let
ui=this.driver.query(fe,Mf,!0);for(let er=0;er<ui.length;er++){let
zt=u.get(ui[er]);zt&&zt.length&&ot.push(...zt)}}const
Cn=ot.filter(us=>!us.destroyed);Cn.length?xF(this,fe,Cn):this.processLeaveNode(fe)}return
N.length=0,$i.forEach(ae=>{this.players.push(ae),ae.onDone(()=>{ae.destroy();const
fe=this.players.indexOf(ae);this.players.splice(fe,1)}),ae.play()}),$i}elementContainsData(i,e){let
n=!1;const s=e[Ti];return
s&&s.setForRemoval&&(n=!0),this.playersByElement.has(e)&&(n=!0),this.playersByQueriedElement.has(e)&&(n=!0),this.statesByElement.has(e)&&(n=!0),this._fetchNamespace(i).elementContainsData(e)||n}afterFlush(i){this._flushFns.push(i)}afterFlushAnimationsDone(i){this._whenQuietFns.push(i)}_getPreviousPlayers(i,e,n,s,r){let
o=[];if(e){const u=this.playersByQueriedElement.get(i);u&&(o=u)}else{const
u=this.playersByElement.get(i);if(u){const h=!r||r==dl;
u.forEach(b=>{b.queued||!h&&b.triggerName!=s||o.push(b)})}}return(n||s)&&(o=o.filter(u=>!(n&&n!=u.namespaceId||s&&s!=u.triggerName))),o}_beforeAnimationBuild(i,e,n){const
r=e.element,o=e.isRemovalTransition?void 0:i,u=e.isRemovalTransition?void
0:e.triggerName;for(const h of e.timelines){const
b=h.element,y=b!==r,w=oi(n,b,[]);this._getPreviousPlayers(b,y,o,u,e.toState).forEach(E=>{const
L=E.getRealPlayer();L.beforeDestroy&&L.beforeDestroy(),E.destroy(),w.push(E)})}Tr(r,e.fromStyles)}_buildAnimation(i,e,n,s,r,o){const
u=e.triggerName,h=e.element,b=[],y=new Set,w=new Set,M=e.timelines.map(L=>{const
O=L.element;y.add(O);const N=O[Ti];if(N&&N.removedBeforeQueried)return new
cl(L.duration,L.delay);const G=O!==h,P=function DF(t){const i=[];return
Ww(t,i),i}((n.get(O)||bF).map(Ct=>Ct.getRealPlayer())).filter(Ct=>!!Ct.element&&Ct.element===O),J=r.get(O),se=o.get(O),ke=vw(0,this._normalizer,0,L.keyframes,J,se),mt=this._buildPlayer(L,ke,P);if(L.subTimeline&&s&&w.add(O),G){const
Ct=new qf(i,u,
O);Ct.setRealPlayer(mt),b.push(Ct)}return
mt});b.forEach(L=>{oi(this.playersByQueriedElement,L.element,[]).push(L),L.onDone(()=>function
wF(t,i,e){let n;if(t instanceof Map){if(n=t.get(i),n){if(n.length){const
s=n.indexOf(e);n.splice(s,1)}0==n.length&&t.delete(i)}}else
if(n=t[i],n){if(n.length){const s=n.indexOf(e);n.splice(s,1)}0==n.length&&delete
t[i]}return
n}(this.playersByQueriedElement,L.element,L))}),y.forEach(L=>Si(L,Iw));const
E=$s(M);return
E.onDestroy(()=>{y.forEach(L=>Lo(L,Iw)),rs(h,e.toStyles)}),w.forEach(L=>{oi(s,L,[]).push(E)}),E}_buildPlayer(i,e,n){return
e.length>0?this.driver.animate(i.element,e,i.duration,i.delay,i.easing,n):new
cl(i.duration,i.delay)}}class
qf{constructor(i,e,n){this.namespaceId=i,this.triggerName=e,this.element=n,this._player=new
cl,this._containsRealPlayer=!1,this._queuedCallbacks={},this.destroyed=!1,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}setRealPlayer(i){this._containsRealPlayer||(this._player=i,Object.keys(
this._queuedCallbacks).forEach(e=>{this._queuedCallbacks[e].forEach(n=>Cf(i,e,void
0,n))}),this._queuedCallbacks={},this._containsRealPlayer=!0,this.overrideTotalTime(i.totalTime),this.queued=!1)}getRealPlayer(){return
this._player}overrideTotalTime(i){this.totalTime=i}syncPlayerEvents(i){const
e=this._player;e.triggerCallback&&i.onStart(()=>e.triggerCallback("start")),i.onDone(()=>this.finish()),i.onDestroy(()=>this.destroy())}_queueEvent(i,e){oi(this._queuedCallbacks,i,[]).push(e)}onDone(i){this.queued&&this._queueEvent("done",i),this._player.onDone(i)}onStart(i){this.queued&&this._queueEvent("start",i),this._player.onStart(i)}onDestroy(i){this.queued&&this._queueEvent("destroy",i),this._player.onDestroy(i)}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,th
is._player.destroy()}reset(){!this.queued&&this._player.reset()}setPosition(i){this.queued||this._player.setPosition(i)}getPosition(){return
this.queued?0:this._player.getPosition()}triggerCallback(i){const
e=this._player;e.triggerCallback&&e.triggerCallback(i)}}function ju(t){return
t&&1===t.nodeType}function zw(t,i){const e=t.style.display;return
t.style.display=null!=i?i:"none",e}function jw(t,i,e,n,s){const
r=[];e.forEach(h=>r.push(zw(h)));const o=[];n.forEach((h,b)=>{const
y={};h.forEach(w=>{const
M=y[w]=i.computeStyle(b,w,s);(!M||0==M.length)&&(b[Ti]=vF,o.push(b))}),t.set(b,y)});let
u=0;return e.forEach(h=>zw(h,r[u++])),o}function $w(t,i){const e=new
Map;if(t.forEach(u=>e.set(u,[])),0==i.length)return e;const s=new Set(i),r=new
Map;function o(u){if(!u)return 1;let h=r.get(u);if(h)return h;const b=u.parentNode;return
h=e.has(b)?b:s.has(b)?1:o(b),r.set(u,h),h}return i.forEach(u=>{const
h=o(u);1!==h&&e.get(h).push(u)}),e}function Si(t,i){var
e;null===(e=t.classList)||void 0===e||
e.add(i)}function Lo(t,i){var e;null===(e=t.classList)||void 0===e||e.remove(i)}function
xF(t,i,e){$s(e).onDone(()=>t.processLeaveNode(i))}function Ww(t,i){for(let
e=0;e<t.length;e++){const n=t[e];n instanceof _w?Ww(n.players,i):i.push(n)}}function
Kw(t,i,e){const n=e.get(t);if(!n)return!1;let s=i.get(t);return
s?n.forEach(r=>s.add(r)):i.set(t,n),e.delete(t),!0}class
$u{constructor(i,e,n){this.bodyNode=i,this._driver=e,this._normalizer=n,this._triggerCache={},this.onRemovalComplete=(s,r)=>{},this._transitionEngine=new
yF(i,e,n),this._timelineEngine=new
hF(i,e,n),this._transitionEngine.onRemovalComplete=(s,r)=>this.onRemovalComplete(s,r)}registerTrigger(i,e,n,s,r){const
o=i+"-"+s;let u=this._triggerCache[o];if(!u){const
h=[],y=Rf(this._driver,r,h,[]);if(h.length)throw function mP(t,i){return new
re(3404,Ze)}();u=function cF(t,i,e){return new
uF(t,i,e)}(s,y,this._normalizer),this._triggerCache[o]=u}this._transitionEngine.registerTrigger(e,s,u)}register(i,e){this._transitionEngine.regi
ster(i,e)}destroy(i,e){this._transitionEngine.destroy(i,e)}onInsert(i,e,n,s){this._transitionEngine.insertNode(i,e,n,s)}onRemove(i,e,n,s){this._transitionEngine.removeNode(i,e,s||!1,n)}disableAnimations(i,e){this._transitionEngine.markElementAsDisabled(i,e)}process(i,e,n,s){if("(a)"==n.charAt(0)){const[r,o]=Cw(n);this._timelineEngine.command(r,e,o,s)}else
this._transitionEngine.trigger(i,e,n,s)}listen(i,e,n,s,r){if("(a)"==n.charAt(0)){const[o,u]=Cw(n);return
this._timelineEngine.listen(o,e,u,r)}return
this._transitionEngine.listen(i,e,n,s,r)}flush(i=-1){this._transitionEngine.flush(i)}get
players(){return
this._transitionEngine.players.concat(this._timelineEngine.players)}whenRenderingDone(){return
this._transitionEngine.whenRenderingDone()}}let IF=(()=>{class
t{constructor(e,n,s){this._element=e,this._startStyles=n,this._endStyles=s,this._state=0;let
r=t.initialStylesByElement.get(e);r||t.initialStylesByElement.set(e,r={}),this._initialStyles=r}start(){this._state<1&&(this._startStyles
&&rs(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(rs(this._element,this._initialStyles),this._endStyles&&(rs(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(t.initialStylesByElement.delete(this._element),this._startStyles&&(Tr(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(Tr(this._element,this._endStyles),this._endStyles=null),rs(this._element,this._initialStyles),this._state=3)}}return
t.initialStylesByElement=new WeakMap,t})();function Gf(t){let i=null;const
e=Object.keys(t);for(let n=0;n<e.length;n++){const
s=e[n];EF(s)&&(i=i||{},i[s]=t[s])}return i}function
EF(t){return"display"===t||"position"===t}class
Qw{constructor(i,e,n,s){this.element=i,this.keyframes=e,this.options=n,this._specialStyles=s,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=n.duration,this._delay=n.delay||0,this.time=this._duration+this._delay}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(i=>i()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;const
i=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,i,this.options),this._finalKeyframe=i.length?i[i.length-1]:{},this.domPlayer.addEventListener("finish",()=>this._onFinish())}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_triggerWebAnimation(i,e,n){return
i.animate(e,n)}onStart(i){this._onStartFns.push(i)}onDone(i){this._onDoneFns.push(i)}onDestroy(i){this._onDestroyFns.push(i)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(i=>i()),this._onStartFns=[],this._started=!0,this._specialStyles&&this._specialStyles.start()),this.domPlaye
r.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(i=>i()),this._onDestroyFns=[])}setPosition(i){void
0===this.domPlayer&&this.init(),this.domPlayer.currentTime=i*this.time}getPosition(){return
this.domPlayer.currentTime/this.time}get totalTime(){return
this._delay+this._duration}beforeDestroy(){const i={};if(this.hasStarted()){const
e=this._finalKeyframe;Object.keys(e).forEach(n=>{"offset"!=n&&(i[n]=this._finished?e[n]:Aw(this.element,n))})}this.currentSnapshot=i}triggerCallback(i){cons
t
e="start"==i?this._onStartFns:this._onDoneFns;e.forEach(n=>n()),e.length=0}}class
RF{validateStyleProperty(i){return
Sw(i)}matchesElement(i,e){return!1}containsElement(i,e){return
xw(i,e)}getParentElement(i){return Sf(i)}query(i,e,n){return
Dw(i,e,n)}computeStyle(i,e,n){return
window.getComputedStyle(i)[e]}animate(i,e,n,s,r,o=[]){const
h={duration:n,delay:s,fill:0==s?"both":"forwards"};r&&(h.easing=r);const
b={},y=o.filter(M=>M instanceof Qw);(function PP(t,i){return
0===t||0===i})(n,s)&&y.forEach(M=>{let
E=M.currentSnapshot;Object.keys(E).forEach(L=>b[L]=E[L])}),e=function FP(t,i,e){const
n=Object.keys(e);if(n.length&&i.length){let
r=i[0],o=[];if(n.forEach(u=>{r.hasOwnProperty(u)||o.push(u),r[u]=e[u]}),o.length)for(var
s=1;s<i.length;s++){let u=i[s];o.forEach(function(h){u[h]=Aw(t,h)})}}return
i}(i,e=e.map(M=>Ws(M,!1)),b);const w=function kF(t,i){let e=null,n=null;return
Array.isArray(i)&&i.length?(e=Gf(i[0]),i.length>1&&(n=Gf(i[i.length-1]))):i&&(e=Gf(i)),e||n?new
IF(t,e,n):null
}(i,e);return new Qw(i,e,h,w)}}let LF=(()=>{class t extends
hw{constructor(e,n){super(),this._nextAnimationId=0,this._renderer=e.createRenderer(n.body,{id:"0",encapsulation:ki.None,styles:[],data:{animation:[]}})}build(e){const
n=this._nextAnimationId.toString();this._nextAnimationId++;const
s=Array.isArray(e)?mw(e):e;return Jw(this._renderer,null,n,"register",[s]),new
OF(n,this._renderer)}}return t.\u0275fac=function(e){return
new(e||t)(K(Ba),K(Xt))},t.\u0275prov=X({token:t,factory:t.\u0275fac}),t})();class OF
extends class zA{}{constructor(i,e){super(),this._id=i,this._renderer=e}create(i,e){return
new AF(this._id,i,e||{},this._renderer)}}class
AF{constructor(i,e,n,s){this.id=i,this.element=e,this._renderer=s,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",n)}_listen(i,e){return
this._renderer.listen(this.element,`@@${this.id}:${i}`,e)}_command(i,...e){return
Jw(this._renderer,this.element,this.id,i,e)}onDone(i){this._listen("done",i)}onStart(i){thi
s._listen("start",i)}onDestroy(i){this._listen("destroy",i)}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(i){this._command("setPosition",i)}getPosition(){var
i,e;return null!==(e=null===(i=this._renderer.engine.players[+this.id])||void 0===i?void
0:i.getPosition())&&void 0!==e?e:0}}function Jw(t,i,e,n,s){return
t.setProperty(i,`@@${e}:${n}`,s)}const Yw="@.disabled";let PF=(()=>{class
t{constructor(e,n,s){this.delegate=e,this.engine=n,this._zone=s,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new
Map,this._cdRecurDepth=0,this.promise=Promise.resolve(0),n.onRemovalComplete=(r,o)=>{const
u=null==o?void 0:o.parentNode(r);u&&o.removeChild(u,r)}}createRenderer(e,n){const
r=this.delegate.crea
teRenderer(e,n);if(!(e&&n&&n.data&&n.data.animation)){let
y=this._rendererCache.get(r);return y||(y=new
Zw("",r,this.engine),this._rendererCache.set(r,y)),y}const
o=n.id,u=n.id+"-"+this._currentId;this._currentId++,this.engine.register(u,e);const
h=y=>{Array.isArray(y)?y.forEach(h):this.engine.registerTrigger(o,u,e,y.name,y)};return
n.data.animation.forEach(h),new
FF(this,u,r,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){this.promise.then(()=>{this._microtaskId++})}scheduleListenerCallback(e,n,s){e>=0&&e<this._microtaskId?this._zone.run(()=>n(s)):(0==this._animationCallbacksBuffer.length&&Promise.resolve(null).then(()=>{this._zone.run(()=>{this._animationCallbacksBuffer.forEach(r=>{const[o,u]=r;o(u)}),this._animationCallbacksBuffer=[]})}),this._animationCallbacksBuffer.push([n,s]))}end(){this._cdRecurDepth--,0==this._cdRecurDepth&&this._zone.runOutsideAngular(()=>{this._scheduleCountTask(),this.engine.flush(this._microtaskI
d)}),this.delegate.end&&this.delegate.end()}whenRenderingDone(){return
this.engine.whenRenderingDone()}}return t.\u0275fac=function(e){return
new(e||t)(K(Ba),K($u),K(nt))},t.\u0275prov=X({token:t,factory:t.\u0275fac}),t})();class
Zw{constructor(i,e,n){this.namespaceId=i,this.delegate=e,this.engine=n,this.destroyNode=this.delegate.destroyNode?s=>e.destroyNode(s):null}get
data(){return
this.delegate.data}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.delegate.destroy()}createElement(i,e){return
this.delegate.createElement(i,e)}createComment(i){return
this.delegate.createComment(i)}createText(i){return
this.delegate.createText(i)}appendChild(i,e){this.delegate.appendChild(i,e),this.engine.onInsert(this.namespaceId,e,i,!1)}insertBefore(i,e,n,s=!0){this.delegate.insertBefore(i,e,n),this.engine.onInsert(this.namespaceId,e,i,s)}removeChild(i,e,n){this.engine.onRemove(this.namespaceId,e,this.delegate,n)}selectRootElement(i,e){return
this.delegate.selectRootElement(i,e)}p
arentNode(i){return this.delegate.parentNode(i)}nextSibling(i){return
this.delegate.nextSibling(i)}setAttribute(i,e,n,s){this.delegate.setAttribute(i,e,n,s)}removeAttribute(i,e,n){this.delegate.removeAttribute(i,e,n)}addClass(i,e){this.delegate.addClass(i,e)}removeClass(i,e){this.delegate.removeClass(i,e)}setStyle(i,e,n,s){this.delegate.setStyle(i,e,n,s)}removeStyle(i,e,n){this.delegate.removeStyle(i,e,n)}setProperty(i,e,n){"@"==e.charAt(0)&&e==Yw?this.disableAnimations(i,!!n):this.delegate.setProperty(i,e,n)}setValue(i,e){this.delegate.setValue(i,e)}listen(i,e,n){return
this.delegate.listen(i,e,n)}disableAnimations(i,e){this.engine.disableAnimations(i,e)}}class
FF extends
Zw{constructor(i,e,n,s){super(e,n,s),this.factory=i,this.namespaceId=e}setProperty(i,e,n){"(a)"==e.charAt(0)?"."==e.charAt(1)&&e==Yw?this.disableAnimations(i,n=void
0===n||!!n):this.engine.process(this.namespaceId,i,e.substr(1),n):this.delegate.setProperty(i,e,n)}listen(i,e,n){if("@"==e.charAt(0)){const
s=function N
F(t){switch(t){case"body":return document.body;case"document":return
document;case"window":return window;default:return t}}(i);let
r=e.substr(1),o="";return"(a)"!=r.charAt(0)&&([r,o]=function
VF(t){const
i=t.indexOf(".");return[t.substring(0,i),t.substr(i+1)]}(r)),this.engine.listen(this.namespaceId,s,r,o,u=>{this.factory.scheduleListenerCallback(u._data||-1,n,u)})}return
this.delegate.listen(i,e,n)}}let BF=(()=>{class t extends
$u{constructor(e,n,s){super(e.body,n,s)}ngOnDestroy(){this.flush()}}return
t.\u0275fac=function(e){return
new(e||t)(K(Xt),K(xf),K(Ff))},t.\u0275prov=X({token:t,factory:t.\u0275fac}),t})();const
Xw=new
be("AnimationModuleType"),eT=[{provide:hw,useClass:LF},{provide:Ff,useFactory:function
HF(){return new sF}},{provide:$u,useClass:BF},{provide:Ba,useFactory:function
qF(t,i,e){return new PF(t,i,e)},deps:[ru,$u,nt]}],tT=[{provide:xf,useFactory:()=>new
RF},{provide:Xw,useValue:"BrowserAnimations"},...eT],GF=[{provide:xf,useClass:Mw},{provide:Xw,useValue:"NoopAnimati
ons"},...eT];let UF=(()=>{class t{static
withConfig(e){return{ngModule:t,providers:e.disableAnimations?GF:tT}}}return
t.\u0275fac=function(e){return
new(e||t)},t.\u0275mod=he({type:t}),t.\u0275inj=ue({providers:tT,imports:[qy]}),t})();class
Z{static equals(i,e,n){return
n?this.resolveFieldData(i,n)===this.resolveFieldData(e,n):this.equalsByValue(i,e)}static
equalsByValue(i,e){if(i===e)return!0;if(i&&e&&"object"==typeof
i&&"object"==typeof e){var
r,o,u,n=Array.isArray(i),s=Array.isArray(e);if(n&&s){if((o=i.length)!=e.length)return!1;for(r=o;0!=r--;)if(!this.equalsByValue(i[r],e[r]))return!1;return!0}if(n!=s)return!1;var
h=i instanceof Date,b=e instanceof Date;if(h!=b)return!1;if(h&&b)return
i.getTime()==e.getTime();var y=i instanceof RegExp,w=e instanceof
RegExp;if(y!=w)return!1;if(y&&w)return i.toString()==e.toString();var
M=Object.keys(i);if((o=M.length)!==Object.keys(e).length)return!1;for(r=o;0!=r--;)if(!Object.prototype.hasOwnProperty.call(e,M[r]))return!1;for(r=o;0!=r--;)if(!th
is.equalsByValue(i[u=M[r]],e[u]))return!1;return!0}return i!=i&&e!=e}static
resolveFieldData(i,e){if(i&&e){if(this.isFunction(e))return
e(i);if(-1==e.indexOf("."))return i[e];{let n=e.split("."),s=i;for(let
r=0,o=n.length;r<o;++r){if(null==s)return null;s=s[n[r]]}return s}}return null}static
isFunction(i){return!!(i&&i.constructor&&i.call&&i.apply)}static
reorderArray(i,e,n){i&&e!==n&&(n>=i.length&&(n%=i.length,e%=i.length),i.splice(n,0,i.splice(e,1)[0]))}static
insertIntoOrderedArray(i,e,n,s){if(n.length>0){let r=!1;for(let
o=0;o<n.length;o++)if(this.findIndexInList(n[o],s)>e){n.splice(o,0,i),r=!0;break}r||n.push(i)}else
n.push(i)}static findIndexInList(i,e){let n=-1;if(e)for(let
s=0;s<e.length;s++)if(e[s]==i){n=s;break}return n}static
contains(i,e){if(null!=i&&e&&e.length)for(let n of
e)if(this.equals(i,n))return!0;return!1}static removeAccents(i){return
i&&i.search(/[\xC0-\xFF]/g)>-1&&(i=i.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")),i}static
isEmpty(i){return null==i||""===i||Array.isArray(i)&&0===i.length||!(i
instanceof Date)&&"object"==typeof
i&&0===Object.keys(i).length}static isNotEmpty(i){return!this.isEmpty(i)}}var
nT=0;function pl(){return"pr_id_"+ ++nT}var dt=function zF(){let t=[];const
s=r=>r&&parseInt(r.style.zIndex,10)||0;return{get:s,set:(r,o,u)=>{o&&(o.style.zIndex=String(((r,o)=>{let
u=t.length>0?t[t.length-1]:{key:r,value:o},h=u.value+(u.key===r?0:o)+1;return
t.push({key:r,value:h}),h})(r,u)))},clear:r=>{r&&((r=>{t=t.filter(o=>o.value!==r)})(s(r)
),r.style.zIndex="")},getCurrent:()=>t.length>0?t[t.length-1].value:0}}();const
iT=["*"];let _t=(()=>{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.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})(),zn=(()=>{class
t{constructor(){this.ripple=!1,this.filterMatchModeOptions={text:[_t.STARTS_WITH,_t.CONTAINS,_t.NOT_CONTAINS,_t.ENDS_WITH,_t.EQUALS,_t.NOT_EQUALS],numeric:[_t.EQUALS,_t.NOT_EQUALS,_t.LESS_THAN,_t.LESS_THAN_OR_EQUAL_TO,_t.GREATER_THAN,_t.GREATER_THAN_OR_EQUAL_TO],date:[_t.DATE_IS,_t.DATE_IS_NOT,_t.DATE_BEFORE,_t.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:1e3,tooltip:1100},this.translationSource=new
ct,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=X({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),Ft=(()=>{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.A
CCEPT="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="dayNamesMin",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})(),hl=(()=>{class
t{constructor(){this.filters={startsWith:(e,n,s)=>{if(null==n||""===n.trim())return!0;if(null==e)return!1;let
r=Z.removeAccents(n.toString()).toLocaleLowerCase(s);return
Z.removeAccents(e.toString()).toLocaleLowerCase(s).slice(0,r.length)===r},contains:(e,n,s)=>{if(null==n||"string"==typeof
n&&""===n.trim())return!0;if(null==e)return!1;let
r=Z.removeAccents(n.toString()).toLocaleLowerCase(s);return-1!==Z.removeAccents(e.toString()).toLocaleLowerCase(s).indexOf(r)},notContains:(e,n,s)=>{if(nul
l==n||"string"==typeof
n&&""===n.trim())return!0;if(null==e)return!1;let
r=Z.removeAccents(n.toString()).toLocaleLowerCase(s);return-1===Z.removeAccents(e.toString()).toLocaleLowerCase(s).indexOf(r)},endsWith:(e,n,s)=>{if(null==n||""===n.trim())return!0;if(null==e)return!1;let
r=Z.removeAccents(n.toString()).toLocaleLowerCase(s),o=Z.removeAccents(e.toString()).toLocaleLowerCase(s);return-1!==o.indexOf(r,o.length-r.length)},equals:(e,n,s)=>null==n||"string"==typeof
n&&""===n.trim()||null!=e&&(e.getTime&&n.getTime?e.getTime()===n.getTime():Z.removeAccents(e.toString()).toLocaleLowerCase(s)==Z.removeAccents(n.toString()).toLocaleLowerCase(s)),notEquals:(e,n,s)=>!(null==n||"string"==typeof
n&&""===n.trim()||null!=e&&(e.getTime&&n.getTime?e.getTime()===n.getTime():Z.removeAccents(e.toString()).toLocaleLowerCase(s)==Z.removeAccents(n.toString()).toLocaleLowerCase(s))),in:(e,n)=>{if(null==n||0===n.length)return!0;for(let
s=0;s<n.length;s++)if(Z.equals(e,n[s]))return!0;return!1},between:(e,
n)=>null==n||null==n[0]||null==n[1]||null!=e&&(e.getTime?n[0].getTime()<=e.getTime()&&e.getTime()<=n[1].getTime():n[0]<=e&&e<=n[1]),lt:(e,n,s)=>null==n||null!=e&&(e.getTime&&n.getTime?e.getTime()<n.getTime():e<n),lte:(e,n,s)=>null==n||null!=e&&(e.getTime&&n.getTime?e.getTime()<=n.getTime():e<=n),gt:(e,n,s)=>null==n||null!=e&&(e.getTime&&n.getTime?e.getTime()>n.getTime():e>n),gte:(e,n,s)=>null==n||null!=e&&(e.getTime&&n.getTime?e.getTime()>=n.getTime():e>=n),is:(e,n,s)=>this.filters.equals(e,n,s),isNot:(e,n,s)=>this.filters.notEquals(e,n,s),before:(e,n,s)=>this.filters.lt(e,n,s),after:(e,n,s)=>this.filters.gt(e,n,s),dateIs:(e,n)=>null==n||null!=e&&e.toDateString()===n.toDateString(),dateIsNot:(e,n)=>null==n||null!=e&&e.toDateString()!==n.toDateString(),dateBefore:(e,n)=>null==n||null!=e&&e.getTime()<n.getTime(),dateAfter:(e,n)=>null==n||null!=e&&e.getTime()>n.getTime()}}filter(e,n,s,r,o){let
u=[];if(e)for(let h of e)for(let b of n){let
y=Z.resolveFieldData(h,b);if(this.filters[r](y,s
,o)){u.push(h);break}}return u}register(e,n){this.filters[e]=n}}return
t.\u0275fac=function(e){return
new(e||t)},t.\u0275prov=X({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),Gi=(()=>{class
t{constructor(){this.messageSource=new ct,this.clearSource=new
ct,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=X({token:t,factory:t.\u0275fac}),t})(),Ks=(()=>{class
t{constructor(){this.clickSource=new
ct,this.clickObservable=this.clickSource.asObservable()}add(e){e&&this.clickSource.next(e)}}return
t.\u0275fac=function(e){return
new(e||t)},t.\u0275prov=X({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),ml=(()=>{class
t{}return t.AND="and",t.OR="or",t})(),Oo=(()=>{class t{}return
t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=z({
type:t,selectors:[["p-header"]],ngContentSelectors:iT,decls:1,vars:0,template:function(e,n){1&e&&(Sn(),St(0))},encapsulation:2}),t})(),fl=(()=>{class
t{}return t.\u0275fac=function(e){return
new(e||t)},t.\u0275cmp=z({type:t,selectors:[["p-footer"]],ngContentSelectors:iT,decls:1,vars:0,template:function(e,n){1&e&&(Sn(),St(0))},encapsulation:2}),t})(),ne=(()=>{class
t{constructor(e){this.template=e}getType(){return this.name}}return
t.\u0275fac=function(e){return
new(e||t)(D(bi))},t.\u0275dir=le({type:t,selectors:[["","pTemplate",""]],inputs:{type:"type",name:["pTemplate","name"]}}),t})(),Nt=(()=>{class
t{}return t.\u0275fac=function(e){return
new(e||t)},t.\u0275mod=he({type:t}),t.\u0275inj=ue({imports:[[Fe]]}),t})();function
jF(t,i){if(1&t&&(l(0,"span",9),g(1),c()),2&t){const
e=d();a(1),T(" ",e.header," ")}}function
$F(t,i){1&t&&Y(0)}function
WF(t,i){1&t&&St(0,1,["*ngIf","hasHeaderFacet"])}function
KF(t,i){1&t&&Y(0)}function
QF(t,i){if(1&t&&(de(0),_(1,KF,1,0,"ng-container",5),pe()),2
&t){const e=d();a(1),p("ngTemplateOutlet",e.contentTemplate)}}const
JF=["*",[["p-header"]]],YF=function(t){return{"p-accordion-tab-active":t}},ZF=function(t,i){return{"p-highlight":t,"p-disabled":i}},sT=function(t){return{transitionParams:t}},XF=function(t){return{value:"visible",params:t}},eN=function(t){return{value:"hidden",params:t}},tN=["*","p-header"],nN=["*"];let
iN=0,Ts=(()=>{class
t{constructor(e,n){this.changeDetector=n,this.cache=!0,this.selectedChange=new
H,this.transitionOptions="400ms cubic-bezier(0.86, 0, 0.07,
1)",this.id="p-accordiontab-"+iN++,this.accordion=e}get selected(){return
this._selected}set
selected(e){this._selected=e,this.loaded||(this._selected&&this.cache&&(this.loaded=!0),this.changeDetector.detectChanges())}ngAfterContentInit(){this.templates.forEach(e=>{switch(e.getType()){case"content":default:this.contentTemplate=e.template;break;case"header":this.headerTemplate=e.template}})}toggle(e){if(this.disabled)return!1;let
n=this.findTabIndex();if(this.se
lected)this.selected=!1,this.accordion.onClose.emit({originalEvent:e,index:n});else{if(!this.accordion.multiple)for(var
s=0;s<this.accordion.tabs.length;s++)this.accordion.tabs[s].selected&&(this.accordion.tabs[s].selected=!1,this.accordion.tabs[s].selectedChange.emit(!1),this.accordion.tabs[s].changeDetector.markForCheck());this.selected=!0,this.loaded=!0,this.accordion.onOpen.emit({originalEvent:e,index:n})}this.selectedChange.emit(this.selected),this.accordion.updateActiveIndex(),this.changeDetector.markForCheck(),e.preventDefault()}findTabIndex(){let
e=-1;for(var
n=0;n<this.accordion.tabs.length;n++)if(this.accordion.tabs[n]==this){e=n;break}return
e}get hasHeaderFacet(){return
this.headerFacet&&this.headerFacet.length>0}onKeydown(e){(32===e.which||13===e.which)&&(this.toggle(e),e.preventDefault())}ngOnDestroy(){this.accordion.tabs.splice(this.findTabIndex(),1)}}return
t.\u0275fac=function(e){return
new(e||t)(D(je(()=>Ss)),D(rt))},t.\u0275cmp=z({type:t,selectors:[["p-accordionTa
b"]],contentQueries:function(e,n,s){if(1&e&&(st(s,Oo,4),st(s,ne,4)),2&e){let
r;V(r=B())&&(n.headerFacet=r),V(r=B())&&(n.templates=r)}},hostAttrs:[1,"p-element"],inputs:{header:"header",disabled:"disabled",cache:"cache",transitionOptions:"transitionOptions",selected:"selected"},outputs:{selectedChange:"selectedChange"},ngContentSelectors:tN,decls:11,vars:28,consts:[[1,"p-accordion-tab",3,"ngClass"],[1,"p-accordion-header",3,"ngClass"],["role","tab",1,"p-accordion-header-link",3,"click","keydown"],[1,"p-accordion-toggle-icon",3,"ngClass"],["class","p-accordion-header-text",4,"ngIf"],[4,"ngTemplateOutlet"],[4,"ngIf"],["role","region",1,"p-toggleable-content"],[1,"p-accordion-content"],[1,"p-accordion-header-text"]],template:function(e,n){1&e&&(Sn(JF),l(0,"div",0)(1,"div",1)(2,"a",2),C("click",function(r){return
n.toggle(r)})("keydown",function(r){return
n.onKeydown(r)}),k(3,"span",3),_(4,jF,2,1,"span",4),_(5,$F,1,0,"ng-container",5),_(6,WF,1,0,"ng-content",6),c()(),l(7,"div",7)(8,"div"
,8),St(9),_(10,QF,2,1,"ng-container",6),c()()()),2&e&&(p("ngClass",U(15,YF,n.selected)),a(1),p("ngClass",Ge(17,ZF,n.selected,n.disabled)),a(1),ie("tabindex",n.disabled?null:0)("id",n.id)("aria-controls",n.id+"-content")("aria-expanded",n.selected),a(1),p("ngClass",n.selected?n.accordion.collapseIcon:n.accordion.expandIcon),a(1),p("ngIf",!n.hasHeaderFacet),a(1),p("ngTemplateOutlet",n.headerTemplate),a(1),p("ngIf",n.hasHeaderFacet),a(1),p("@tabContent",n.selected?U(22,XF,U(20,sT,n.transitionOptions)):U(26,eN,U(24,sT,n.transitionOptions))),ie("id",n.id+"-content")("aria-hidden",!n.selected)("aria-labelledby",n.id),a(3),p("ngIf",n.contentTemplate&&(n.cache?n.loaded:n.selected)))},directives:[Le,Q,Rt],styles:[".p-accordion-header-link{cursor:pointer;display:flex;align-items:center;-webkit-user-select:none;user-select:none;position:relative;text-decoration:none}.p-accordion-header-link:focus{z-index:1}.p-accordion-header-text{line-height:1}\n"],encapsulation:2,data:{animation:[wi("tabCont
ent",[ws("hidden",it({height:"0",overflow:"hidden"})),ws("visible",it({height:"*"})),Lt("visible
<=>
hidden",[it({overflow:"hidden"}),kt("{{transitionParams}}")]),Lt("void
=> *",kt(0))])]},changeDetection:0}),t})(),Ss=(()=>{class
t{constructor(e,n){this.el=e,this.changeDetector=n,this.onClose=new H,this.onOpen=new
H,this.expandIcon="pi pi-fw pi-chevron-right",this.collapseIcon="pi pi-fw
pi-chevron-down",this.activeIndexChange=new
H,this.tabs=[]}ngAfterContentInit(){this.initTabs(),this.tabListSubscription=this.tabList.changes.subscribe(e=>{this.initTabs()})}initTabs(){this.tabs=this.tabList.toArray(),this.updateSelectionState(),this.changeDetector.markForCheck()}getBlockableElement(){return
this.el.nativeElement.children[0]}get activeIndex(){return this._activeIndex}set
activeIndex(e){this._activeIndex=e,this.preventActiveIndexPropagation?this.preventActiveIndexPropagation=!1:this.updateSelectionState()}updateSelectionState(){if(this.tabs&&this.tabs.length&&null!=this._activeIndex)f
or(let e=0;e<this.tabs.length;e++){let
n=this.multiple?this._activeIndex.includes(e):e===this._activeIndex;n!==this.tabs[e].selected&&(this.tabs[e].selected=n,this.tabs[e].selectedChange.emit(n),this.tabs[e].changeDetector.markForCheck())}}updateActiveIndex(){let
e=this.multiple?[]:null;this.tabs.forEach((n,s)=>{if(n.selected){if(!this.multiple)return
void(e=s);e.push(s)}}),this.preventActiveIndexPropagation=!0,this.activeIndexChange.emit(e)}ngOnDestroy(){this.tabListSubscription&&this.tabListSubscription.unsubscribe()}}return
t.\u0275fac=function(e){return
new(e||t)(D(De),D(rt))},t.\u0275cmp=z({type:t,selectors:[["p-accordion"]],contentQueries:function(e,n,s){if(1&e&&st(s,Ts,4),2&e){let
r;V(r=B())&&(n.tabList=r)}},hostAttrs:[1,"p-element"],inputs:{multiple:"multiple",style:"style",styleClass:"styleClass",expandIcon:"expandIcon",collapseIcon:"collapseIcon",activeIndex:"activeIndex"},outputs:{onClose:"onClose",onOpen:"onOpen",activeIndexChange:"activeIndexChange"},ngContentSelectors:
nN,decls:2,vars:4,consts:[["role","tablist",3,"ngClass","ngStyle"]],template:function(e,n){1&e&&(Sn(),l(0,"div",0),St(1),c()),2&e&&(me(n.styleClass),p("ngClass","p-accordion
p-component")("ngStyle",n.style))},directives:[Le,lt],encapsulation:2,changeDetection:0}),t})(),sN=(()=>{class
t{}return t.\u0275fac=function(e){return
new(e||t)},t.\u0275mod=he({type:t}),t.\u0275inj=ue({imports:[[Fe],Nt]}),t})(),R=(()=>{class
t{static addClass(e,n){e.classList?e.classList.add(n):e.className+=" "+n}static
addMultipleClasses(e,n){if(e.classList){let s=n.trim().split(" ");for(let
r=0;r<s.length;r++)e.classList.add(s[r])}else{let s=n.split(" ");for(let
r=0;r<s.length;r++)e.className+=" "+s[r]}}static
removeClass(e,n){e.classList?e.classList.remove(n):e.className=e.className.replace(new
RegExp("(^|\\b)"+n.split("
").join("|")+"(\\b|$)","gi")," ")}static
hasClass(e,n){return e.classList?e.classList.contains(n):new RegExp("(^|
)"+n+"( |$)","gi").test(e.className)}static siblings(e){return
Array.protot
ype.filter.call(e.parentNode.children,function(n){return n!==e})}static find(e,n){return
Array.from(e.querySelectorAll(n))}static findSingle(e,n){return
e?e.querySelector(n):null}static index(e){let n=e.parentNode.childNodes,s=0;for(var
r=0;r<n.length;r++){if(n[r]==e)return s;1==n[r].nodeType&&s++}return-1}static
indexWithinGroup(e,n){let s=e.parentNode?e.parentNode.childNodes:[],r=0;for(var
o=0;o<s.length;o++){if(s[o]==e)return
r;s[o].attributes&&s[o].attributes[n]&&1==s[o].nodeType&&r++}return-1}static
relativePosition(e,n){let
s=e.offsetParent?{width:e.offsetWidth,height:e.offsetHeight}:this.getHiddenElementDimensions(e);const
r=n.offsetHeight,o=n.getBoundingClientRect(),u=this.getViewport();let
h,b;o.top+r+s.height>u.height?(h=-1*s.height,e.style.transformOrigin="bottom",o.top+h<0&&(h=-1*o.top)):(h=r,e.style.transformOrigin="top"),b=s.width>u.width?-1*o.left:o.left+s.width>u.width?-1*(o.left+s.width-u.width):0,e.style.top=h+"px",e.style.left=b+"px"}static
absolutePosition(e,n){l
et
E,L,s=e.offsetParent?{width:e.offsetWidth,height:e.offsetHeight}:this.getHiddenElementDimensions(e),r=s.height,o=s.width,u=n.offsetHeight,h=n.offsetWidth,b=n.getBoundingClientRect(),y=this.getWindowScrollTop(),w=this.getWindowScrollLeft(),M=this.getViewport();b.top+u+r>M.height?(E=b.top+y-r,e.style.transformOrigin="bottom",E<0&&(E=y)):(E=u+b.top+y,e.style.transformOrigin="top"),L=b.left+o>M.width?Math.max(0,b.left+w+h-o):b.left+w,e.style.top=E+"px",e.style.left=L+"px"}static
getParents(e,n=[]){return
null===e.parentNode?n:this.getParents(e.parentNode,n.concat([e.parentNode]))}static
getScrollableParents(e){let n=[];if(e){let s=this.getParents(e);const
r=/(auto|scroll)/,o=u=>{let h=window.getComputedStyle(u,null);return
r.test(h.getPropertyValue("overflow"))||r.test(h.getPropertyValue("overflowX"))||r.test(h.getPropertyValue("overflowY"))};for(let
u of s){let h=1===u.nodeType&&u.dataset.scrollselectors;if(h){let
b=h.split(",");for(let y of b){let
w=this.findSingle(u,y);w&&o(w)&&n.
push(w)}}9!==u.nodeType&&o(u)&&n.push(u)}}return n}static
getHiddenElementOuterHeight(e){e.style.visibility="hidden",e.style.display="block";let
n=e.offsetHeight;return
e.style.display="none",e.style.visibility="visible",n}static
getHiddenElementOuterWidth(e){e.style.visibility="hidden",e.style.display="block";let
n=e.offsetWidth;return
e.style.display="none",e.style.visibility="visible",n}static
getHiddenElementDimensions(e){let n={};return
e.style.visibility="hidden",e.style.display="block",n.width=e.offsetWidth,n.height=e.offsetHeight,e.style.display="none",e.style.visibility="visible",n}static
scrollInView(e,n){let
s=getComputedStyle(e).getPropertyValue("borderTopWidth"),r=s?parseFloat(s):0,o=getComputedStyle(e).getPropertyValue("paddingTop"),u=o?parseFloat(o):0,h=e.getBoundingClientRect(),y=n.getBoundingClientRect().top+document.body.scrollTop-(h.top+document.body.scrollTop)-r-u,w=e.scrollTop,M=e.clientHeight,E=this.getOuterHeight(n);y<0?e.scrollTop=w+y:y+E>M&&(e.scrollTop=w+y-
M+E)}static fadeIn(e,n){e.style.opacity=0;let s=+new
Date,r=0,o=function(){r=+e.style.opacity.replace(",",".")+((new
Date).getTime()-s)/n,e.style.opacity=r,s=+new
Date,+r<1&&(window.requestAnimationFrame&&requestAnimationFrame(o)||setTimeout(o,16))};o()}static
fadeOut(e,n){var s=1,u=50/n;let
h=setInterval(()=>{(s-=u)<=0&&(s=0,clearInterval(h)),e.style.opacity=s},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,n){var
s=Element.prototype;return(s.matches||s.webkitMatchesSelector||s.mozMatchesSelector||s.msMatchesSelector||function(o){return-1!==[].indexOf.call(document.querySelectorAll(o),this)}).call(e,n)}static
getOuterWidth(e,n){let s=e.offsetWidth;if(n){let
r=getComputedStyle(e);s+=parseFloat(r.marginLeft)+parseFloat(r.marginRight)}return
s}static getHorizontalPadding(e){let n
=getComputedStyle(e);return parseFloat(n.paddingLeft)+parseFloat(n.paddingRight)}static
getHorizontalMargin(e){let n=getComputedStyle(e);return
parseFloat(n.marginLeft)+parseFloat(n.marginRight)}static innerWidth(e){let
n=e.offsetWidth,s=getComputedStyle(e);return
n+=parseFloat(s.paddingLeft)+parseFloat(s.paddingRight),n}static width(e){let
n=e.offsetWidth,s=getComputedStyle(e);return
n-=parseFloat(s.paddingLeft)+parseFloat(s.paddingRight),n}static getInnerHeight(e){let
n=e.offsetHeight,s=getComputedStyle(e);return
n+=parseFloat(s.paddingTop)+parseFloat(s.paddingBottom),n}static getOuterHeight(e,n){let
s=e.offsetHeight;if(n){let
r=getComputedStyle(e);s+=parseFloat(r.marginTop)+parseFloat(r.marginBottom)}return
s}static getHeight(e){let n=e.offsetHeight,s=getComputedStyle(e);return
n-=parseFloat(s.paddingTop)+parseFloat(s.paddingBottom)+parseFloat(s.borderTopWidth)+parseFloat(s.borderBottomWidth),n}static
getWidth(e){let n=e.offsetWidth,s=getComputedStyle(e);return n-=parseFloat(s.pa
ddingLeft)+parseFloat(s.paddingRight)+parseFloat(s.borderLeftWidth)+parseFloat(s.borderRightWidth),n}static
getViewport(){let
e=window,n=document,s=n.documentElement,r=n.getElementsByTagName("body")[0];return{width:e.innerWidth||s.clientWidth||r.clientWidth,height:e.innerHeight||s.clientHeight||r.clientHeight}}static
getOffset(e){var
n=e.getBoundingClientRect();return{top:n.top+(window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0),left:n.left+(window.pageXOffset||document.documentElement.scrollLeft||document.body.scrollLeft||0)}}static
replaceElementWith(e,n){let s=e.parentNode;if(!s)throw"Can't replace
element";return s.replaceChild(n,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,n){if(this.isElement(n))n.appendChild(e);else{if(!n.el||!n.el.nativeElement)throw"Cannot
append "+n+" to "+e;n.el.nativeElement.appendChild(e)}}static
removeChild(e,n){if(this.isElement(n))n.removeChild(e);else{if(!n.el||!n.el.nativeElement)throw"Cannot
remove "+e+" from "+n;n.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 n=getComputedStyle(e);return
e.offsetWidth-e.clientWidth-parseFloat(n.borderLeftWidth)-parseFloat(n.borderRightWidth)}{if(null!==this.calculatedScrollbarWidth)return
this.calculatedScrollbarWidth;let
n=document.createElement("div");n.className="p-scrollbar-measure",do
cument.body.appendChild(n);let s=n.offsetWidth-n.clientWidth;return
document.body.removeChild(n),this.calculatedScrollbarWidth=s,s}}static
calculateScrollbarHeight(){if(null!==this.calculatedScrollbarHeight)return
this.calculatedScrollbarHeight;let
e=document.createElement("div");e.className="p-scrollbar-measure",document.body.appendChild(e);let
n=e.offsetHeight-e.clientHeight;return
document.body.removeChild(e),this.calculatedScrollbarWidth=n,n}static
invokeElementMethod(e,n,s){e[n].apply(e,s)}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(),n=/(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:n[1]||"",version:n[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
n=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)'),s=[];for(let
r of
n)"none"!=getComputedStyle(r).display&&"hidden"!=getComputedStyle(r).visibility&&s.push(r);return
s}static generateZIndex(){return this.zindex=this.zindex||999,++this.zindex}}return
t.zindex=1e3,t.calculatedScrollbarWidth=null,t.calculatedScrollbarHeight=null,t})();class
Qs{constructor(i,e=(()=>{})){this.element=i,this.listener=e}bindScrollListener(){this.scrollableParents=R.getScrollableParents(this.element);for(let
i=0;i<this.scrollableParents.length;i++)this.scrollableParents[i].addEventListener("scroll",this.listener)}unbindScrollL
istener(){if(this.scrollableParents)for(let
i=0;i<this.scrollableParents.length;i++)this.scrollableParents[i].removeEventListener("scroll",this.listener)}destroy(){this.unbindScrollListener(),this.element=null,this.listener=null,this.scrollableParents=null}}let
bt=(()=>{class
t{constructor(e,n,s){this.el=e,this.zone=n,this.config=s}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
n=this.getInk();if(!n||"none"===getComputedStyle(n,null).display)return;if(R.removeClass(n,"p-ink-active"),!R.getHeight(n)&&!R.getWidth(n)){let
u=Math.max(R.getOuterWidth(this.el.nativeElement),R.getOuterHeight(this.el.nativeElement));n.style.height=u+"px",n.style.width=u+"px"}let
s=R.getOffset(this.el.nativeElement),r=e.pageX-s.left+document.body.scrollTop-R.getWidth(n)/2,o=e.pageY-s.top+document.body.scrollLeft-R
.getHeight(n)/2;n.style.top=o+"px",n.style.left=r+"px",R.addClass(n,"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&&R.removeClass(e,"p-ink-active")}onAnimationEnd(e){R.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),R.removeElement(e))}ngOnDestroy(){this.config&&this.config.ripple&&this.remove()}}return
t.\u0275fac=function(e){return
new(e||t)(D(De),D(nt),D(zn,8))},t.\u0275dir=le({type:t,selectors:[["","pRipple",""]],host
Attrs:[1,"p-ripple","p-element"]}),t})(),pn=(()=>{class t{}return
t.\u0275fac=function(e){return
new(e||t)},t.\u0275mod=he({type:t}),t.\u0275inj=ue({imports:[[Fe]]}),t})();function
rN(t,i){1&t&&Y(0)}const
oN=function(t,i,e,n){return{"p-button-icon":!0,"p-button-icon-left":t,"p-button-icon-right":i,"p-button-icon-top":e,"p-button-icon-bottom":n}};function
aN(t,i){if(1&t&&k(0,"span",4),2&t){const
e=d();me(e.loading?"p-button-loading-icon
"+e.loadingIcon:e.icon),p("ngClass",qn(4,oN,"left"===e.iconPos&&e.label,"right"===e.iconPos&&e.label,"top"===e.iconPos&&e.label,"bottom"===e.iconPos&&e.label)),ie("aria-hidden",!0)}}function
lN(t,i){if(1&t&&(l(0,"span",5),g(1),c()),2&t){const
e=d();ie("aria-hidden",e.icon&&!e.label),a(1),S(e.label||"\xa0")}}function
cN(t,i){if(1&t&&(l(0,"span",4),g(1),c()),2&t){const
e=d();me(e.badgeClass),p("ngClass",e.badgeStyleClass()),a(1),S(e.badge)}}const
uN=function(t,i,e,n,s){return{"p-button
p-component":!0,"p-button-icon-only":t,"p-button-vertical":i,"p-disa
bled":e,"p-button-loading":n,"p-button-loading-label-only":s}},dN=["*"];let
On=(()=>{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,R.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(){let
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=documen
t.createElement("span");e.className="p-button-icon",e.setAttribute("aria-hidden","true");let
n=this.label?"p-button-icon-"+this.iconPos:null;n&&R.addClass(e,n);let
s=this.getIconClass();s&&R.addMultipleClasses(e,s);let
r=R.findSingle(this.el.nativeElement,".p-button-label");r?this.el.nativeElement.insertBefore(e,r):this.el.nativeElement.appendChild(e)}getIconClass(){return
this.loading?"p-button-loading-icon
"+this.loadingIcon:this._icon}setIconClass(){let
e=R.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=R.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&&(R.findSingle(this.el.nativeElement,".p-button-label").textContent=this._label||" ",(this.loading||this.icon)&&this.setIconClass(),t
his.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)(D(De))},t.\u0275dir=le({type:t,selectors:[["","pButton",""]],hostAttrs:[1,"p-element"],inputs:{iconPos:"iconPos",loadingIcon:"loadingIcon",label:"label",icon:"icon",loading:"loading"}}),t})(),ve=(()=>{class
t{constructor(){this.type="button",this.iconPos="left",this.loading=!1,this.loadingIcon="pi
pi-spinner pi-spin",this.onClick=new H,this.onFocus=new H,this.onBlur=new
H}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=z({type:t,selectors:[["p-button"]],contentQueries:function(e,n,s){if(1&e&&st(s,ne,4),2&e){let
r;V(r=B())&&(n.templates=r)}},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",ariaLabel:"ariaLabel"},outputs:{onClick:"onClick",onFocus:"onFocus",onBlur:"onBlur"},ngContentSelectors:dN,decls:6,vars:17,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,n){1&e&&(Sn(),l(0,"button",0),C("click",function(r){return
n.onClick.emit(r)})("focus",function(r){return
n.onFocus.emit(r)})("blur",function(r){return
n.onBlur.emit(r)}),St(1),_(2,rN,1,0,"ng-container",1),_(3,aN,1,9,"span",2),_(4,lN,2,2,"span",3),_(5,c
N,2,4,"span",2),c()),2&e&&(me(n.styleClass),p("ngStyle",n.style)("disabled",n.disabled||n.loading)("ngClass",pr(11,uN,n.icon&&!n.label,("top"===n.iconPos||"bottom"===n.iconPos)&&n.label,n.disabled||n.loading,n.loading,n.loading&&!n.icon&&n.label)),ie("type",n.type)("aria-label",n.ariaLabel),a(2),p("ngTemplateOutlet",n.contentTemplate),a(1),p("ngIf",!n.contentTemplate&&(n.icon||n.loading)),a(1),p("ngIf",!n.contentTemplate),a(1),p("ngIf",!n.contentTemplate&&n.badge))},directives:[bt,lt,Le,Rt,Q],encapsulation:2,changeDetection:0}),t})(),gl=(()=>{class
t{}return t.\u0275fac=function(e){return
new(e||t)},t.\u0275mod=he({type:t}),t.\u0275inj=ue({imports:[[Fe,pn]]}),t})();const
pN=["container"],hN=["inputfield"],mN=["contentWrapper"];function
fN(t,i){if(1&t){const e=I();l(0,"i",8),C("click",function(){return
v(e),d(2).clear()}),c()}}function gN(t,i){if(1&t){const
e=I();l(0,"button",9),C("click",function(s){v(e),d();const
r=F(1);return d().onButtonClick(s,r)}),c()}if(2&t){const e=d(2);p("ic
on",e.icon)("disabled",e.disabled),ie("aria-label",e.iconAriaLabel)}}function
_N(t,i){if(1&t){const
e=I();l(0,"input",4,5),C("focus",function(s){return
v(e),d().onInputFocus(s)})("keydown",function(s){return
v(e),d().onInputKeydown(s)})("click",function(){return
v(e),d().onInputClick()})("blur",function(s){return
v(e),d().onInputBlur(s)})("input",function(s){return
v(e),d().onUserInput(s)}),c(),_(2,fN,1,0,"i",6),_(3,gN,1,3,"button",7)}if(2&t){const
e=d();me(e.inputStyleClass),p("value",e.inputFieldValue)("readonly",e.readonlyInput)("ngStyle",e.inputStyle)("placeholder",e.placeholder||"")("disabled",e.disabled)("ngClass","p-inputtext
p-component"),ie("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),a(2),p("ngIf",e.showClear&&!e.disabled&&null!=e.value),a(1),p("ngIf",e.showIcon)}}function
bN(t,i){1&t&&Y(0)}function vN(t,i){if(1&t){const
e=I();l(0,"button",30),C
("keydown",function(s){return
v(e),d(4).onContainerButtonKeydown(s)})("click",function(s){return
v(e),d(4).onPrevButtonClick(s)}),k(1,"span",31),c()}}function
CN(t,i){if(1&t){const
e=I();l(0,"button",32),C("click",function(s){return
v(e),d(4).switchToMonthView(s)})("keydown",function(s){return
v(e),d(4).onContainerButtonKeydown(s)}),g(1),c()}if(2&t){const
e=d().$implicit,n=d(3);p("disabled",n.switchViewButtonDisabled()),a(1),T("
",n.getMonthName(e.month)," ")}}function yN(t,i){if(1&t){const
e=I();l(0,"button",33),C("click",function(s){return
v(e),d(4).switchToYearView(s)})("keydown",function(s){return
v(e),d(4).onContainerButtonKeydown(s)}),g(1),c()}if(2&t){const
e=d().$implicit,n=d(3);p("disabled",n.switchViewButtonDisabled()),a(1),T("
",n.getYear(e)," ")}}function
wN(t,i){if(1&t&&(de(0),g(1),pe()),2&t){const
e=d(5);a(1),We("",e.yearPickerValues()[0]," -
",e.yearPickerValues()[e.yearPickerValues().length-1],"")}}function
TN(t,i){1&t&&Y(0)}const rT=function(t){return{$implicit:t}};f
unction
SN(t,i){if(1&t&&(l(0,"span",34),_(1,wN,2,2,"ng-container",13),_(2,TN,1,0,"ng-container",35),c()),2&t){const
e=d(4);a(1),p("ngIf",!e.decadeTemplate),a(1),p("ngTemplateOutlet",e.decadeTemplate)("ngTemplateOutletContext",U(3,rT,e.yearPickerValues))}}function
xN(t,i){if(1&t&&(l(0,"th",41)(1,"span"),g(2),c()()),2&t){const
e=d(5);a(2),S(e.getTranslation("weekHeader"))}}function
DN(t,i){if(1&t&&(l(0,"th",42)(1,"span"),g(2),c()()),2&t){const
e=i.$implicit;a(2),S(e)}}function
MN(t,i){if(1&t&&(l(0,"td",45)(1,"span",46),g(2),c()()),2&t){const
e=d().index,n=d(2).$implicit;a(2),T(" ",n.weekNumbers[e],"
")}}function kN(t,i){if(1&t&&(de(0),g(1),pe()),2&t){const
e=d(2).$implicit;a(1),S(e.day)}}function IN(t,i){1&t&&Y(0)}const
EN=function(t,i){return{"p-highlight":t,"p-disabled":i}};function
RN(t,i){if(1&t){const
e=I();de(0),l(1,"span",48),C("click",function(s){v(e);const
r=d().$implicit;return d(6).onDateSelect(s,r)})("keydown",function(s){v(e);const
r=d().$implicit,o=d(3).index;return d(3)
.onDateCellKeydown(s,r,o)}),_(2,kN,2,1,"ng-container",13),_(3,IN,1,0,"ng-container",35),c(),pe()}if(2&t){const
e=d().$implicit,n=d(6);a(1),p("ngClass",Ge(4,EN,n.isSelected(e),!e.selectable)),a(1),p("ngIf",!n.dateTemplate),a(1),p("ngTemplateOutlet",n.dateTemplate)("ngTemplateOutletContext",U(7,rT,e))}}const
LN=function(t,i){return{"p-datepicker-other-month":t,"p-datepicker-today":i}};function
ON(t,i){if(1&t&&(l(0,"td",47),_(1,RN,4,9,"ng-container",13),c()),2&t){const
e=i.$implicit,n=d(6);p("ngClass",Ge(2,LN,e.otherMonth,e.today)),a(1),p("ngIf",!e.otherMonth||n.showOtherMonths)}}function
AN(t,i){if(1&t&&(l(0,"tr"),_(1,MN,3,1,"td",43),_(2,ON,2,5,"td",44),c()),2&t){const
e=i.$implicit,n=d(5);a(1),p("ngIf",n.showWeek),a(1),p("ngForOf",e)}}function
PN(t,i){if(1&t&&(l(0,"div",36)(1,"table",37)(2,"thead")(3,"tr"),_(4,xN,3,1,"th",38),_(5,DN,3,1,"th",39),c()(),l(6,"tbody"),_(7,AN,3,2,"tr",40),c()()()),2&t){const
e=d().$implicit,n=d(3);a(4),p("ngIf",n.showWeek),a(1),p("ngForOf",n.weekDays),a(2
),p("ngForOf",e.dates)}}function FN(t,i){if(1&t){const
e=I();l(0,"div",20)(1,"div",21),_(2,vN,2,0,"button",22),l(3,"div",23),_(4,CN,2,2,"button",24),_(5,yN,2,2,"button",25),_(6,SN,3,5,"span",26),c(),l(7,"button",27),C("keydown",function(s){return
v(e),d(3).onContainerButtonKeydown(s)})("click",function(s){return
v(e),d(3).onNextButtonClick(s)}),k(8,"span",28),c()(),_(9,PN,8,3,"div",29),c()}if(2&t){const
e=i.index,n=d(3);a(2),p("ngIf",0===e),a(2),p("ngIf","date"===n.currentView),a(1),p("ngIf","year"!==n.currentView),a(1),p("ngIf","year"===n.currentView),a(1),_i("display",1===n.numberOfMonths||e===n.numberOfMonths-1?"inline-flex":"none"),a(2),p("ngIf","date"===n.currentView)}}const
oT=function(t){return{"p-highlight":t}};function NN(t,i){if(1&t){const
e=I();l(0,"span",51),C("click",function(s){const o=v(e).index;return
d(4).onMonthSelect(s,o)})("keydown",function(s){const o=v(e).index;return
d(4).onMonthCellKeydown(s,o)}),g(1),c()}if(2&t){const
e=i.$implicit,n=i.index,s=d(4);p("ngClas
s",U(2,oT,s.isMonthSelected(n))),a(1),T(" ",e," ")}}function
VN(t,i){if(1&t&&(l(0,"div",49),_(1,NN,2,4,"span",50),c()),2&t){const
e=d(3);a(1),p("ngForOf",e.monthPickerValues())}}function
BN(t,i){if(1&t){const
e=I();l(0,"span",54),C("click",function(s){const
o=v(e).$implicit;return d(4).onYearSelect(s,o)})("keydown",function(s){const
o=v(e).$implicit;return d(4).onYearCellKeydown(s,o)}),g(1),c()}if(2&t){const
e=i.$implicit,n=d(4);p("ngClass",U(2,oT,n.isYearSelected(e))),a(1),T("
",e," ")}}function
HN(t,i){if(1&t&&(l(0,"div",52),_(1,BN,2,4,"span",53),c()),2&t){const
e=d(3);a(1),p("ngForOf",e.yearPickerValues())}}function
qN(t,i){if(1&t&&(de(0),l(1,"div",16),_(2,FN,10,7,"div",17),c(),_(3,VN,2,1,"div",18),_(4,HN,2,1,"div",19),pe()),2&t){const
e=d(2);a(2),p("ngForOf",e.months),a(1),p("ngIf","month"===e.currentView),a(1),p("ngIf","year"===e.currentView)}}function
GN(t,i){1&t&&(de(0),g(1,"0"),pe())}function
UN(t,i){1&t&&(de(0),g(1,"0"),pe())}function
zN(t,i){if(1&t&&(l(0,"div",60)(1,"span"
),g(2),c()()),2&t){const e=d(3);a(2),S(e.timeSeparator)}}function
jN(t,i){1&t&&(de(0),g(1,"0"),pe())}function
$N(t,i){if(1&t){const
e=I();l(0,"div",65)(1,"button",57),C("keydown",function(s){return
v(e),d(3).onContainerButtonKeydown(s)})("keydown.enter",function(s){return
v(e),d(3).incrementSecond(s)})("keydown.space",function(s){return
v(e),d(3).incrementSecond(s)})("mousedown",function(s){return
v(e),d(3).onTimePickerElementMouseDown(s,2,1)})("mouseup",function(s){return
v(e),d(3).onTimePickerElementMouseUp(s)})("keyup.enter",function(s){return
v(e),d(3).onTimePickerElementMouseUp(s)})("keyup.space",function(s){return
v(e),d(3).onTimePickerElementMouseUp(s)})("mouseleave",function(){return
v(e),d(3).onTimePickerElementMouseLeave()}),k(2,"span",58),c(),l(3,"span"),_(4,jN,2,0,"ng-container",13),g(5),c(),l(6,"button",57),C("keydown",function(s){return
v(e),d(3).onContainerButtonKeydown(s)})("keydown.enter",function(s){return
v(e),d(3).decrementSecond(s)})("keydown.space",function(s){
return v(e),d(3).decrementSecond(s)})("mousedown",function(s){return
v(e),d(3).onTimePickerElementMouseDown(s,2,-1)})("mouseup",function(s){return
v(e),d(3).onTimePickerElementMouseUp(s)})("keyup.enter",function(s){return
v(e),d(3).onTimePickerElementMouseUp(s)})("keyup.space",function(s){return
v(e),d(3).onTimePickerElementMouseUp(s)})("mouseleave",function(){return
v(e),d(3).onTimePickerElementMouseLeave()}),k(7,"span",59),c()()}if(2&t){const
e=d(3);a(4),p("ngIf",e.currentSecond<10),a(1),S(e.currentSecond)}}function
WN(t,i){if(1&t){const
e=I();l(0,"div",66)(1,"button",67),C("keydown",function(s){return
v(e),d(3).onContainerButtonKeydown(s)})("click",function(s){return
v(e),d(3).toggleAMPM(s)})("keydown.enter",function(s){return
v(e),d(3).toggleAMPM(s)}),k(2,"span",58),c(),l(3,"span"),g(4),c(),l(5,"button",67),C("keydown",function(s){return
v(e),d(3).onContainerButtonKeydown(s)})("click",function(s){return
v(e),d(3).toggleAMPM(s)})("keydown.enter",function(s){return v(e),d(3).toggl
eAMPM(s)}),k(6,"span",59),c()()}if(2&t){const
e=d(3);a(4),S(e.pm?"PM":"AM")}}function KN(t,i){if(1&t){const
e=I();l(0,"div",55)(1,"div",56)(2,"button",57),C("keydown",function(s){return
v(e),d(2).onContainerButtonKeydown(s)})("keydown.enter",function(s){return
v(e),d(2).incrementHour(s)})("keydown.space",function(s){return
v(e),d(2).incrementHour(s)})("mousedown",function(s){return
v(e),d(2).onTimePickerElementMouseDown(s,0,1)})("mouseup",function(s){return
v(e),d(2).onTimePickerElementMouseUp(s)})("keyup.enter",function(s){return
v(e),d(2).onTimePickerElementMouseUp(s)})("keyup.space",function(s){return
v(e),d(2).onTimePickerElementMouseUp(s)})("mouseleave",function(){return
v(e),d(2).onTimePickerElementMouseLeave()}),k(3,"span",58),c(),l(4,"span"),_(5,GN,2,0,"ng-container",13),g(6),c(),l(7,"button",57),C("keydown",function(s){return
v(e),d(2).onContainerButtonKeydown(s)})("keydown.enter",function(s){return
v(e),d(2).decrementHour(s)})("keydown.space",function(s){return v(e),d(2).d
ecrementHour(s)})("mousedown",function(s){return
v(e),d(2).onTimePickerElementMouseDown(s,0,-1)})("mouseup",function(s){return
v(e),d(2).onTimePickerElementMouseUp(s)})("keyup.enter",function(s){return
v(e),d(2).onTimePickerElementMouseUp(s)})("keyup.space",function(s){return
v(e),d(2).onTimePickerElementMouseUp(s)})("mouseleave",function(){return
v(e),d(2).onTimePickerElementMouseLeave()}),k(8,"span",59),c()(),l(9,"div",60)(10,"span"),g(11),c()(),l(12,"div",61)(13,"button",57),C("keydown",function(s){return
v(e),d(2).onContainerButtonKeydown(s)})("keydown.enter",function(s){return
v(e),d(2).incrementMinute(s)})("keydown.space",function(s){return
v(e),d(2).incrementMinute(s)})("mousedown",function(s){return
v(e),d(2).onTimePickerElementMouseDown(s,1,1)})("mouseup",function(s){return
v(e),d(2).onTimePickerElementMouseUp(s)})("keyup.enter",function(s){return
v(e),d(2).onTimePickerElementMouseUp(s)})("keyup.space",function(s){return
v(e),d(2).onTimePickerElementMouseUp(s)})("mouseleave
",function(){return
v(e),d(2).onTimePickerElementMouseLeave()}),k(14,"span",58),c(),l(15,"span"),_(16,UN,2,0,"ng-container",13),g(17),c(),l(18,"button",57),C("keydown",function(s){return
v(e),d(2).onContainerButtonKeydown(s)})("keydown.enter",function(s){return
v(e),d(2).decrementMinute(s)})("keydown.space",function(s){return
v(e),d(2).decrementMinute(s)})("mousedown",function(s){return
v(e),d(2).onTimePickerElementMouseDown(s,1,-1)})("mouseup",function(s){return
v(e),d(2).onTimePickerElementMouseUp(s)})("keyup.enter",function(s){return
v(e),d(2).onTimePickerElementMouseUp(s)})("keyup.space",function(s){return
v(e),d(2).onTimePickerElementMouseUp(s)})("mouseleave",function(){return
v(e),d(2).onTimePickerElementMouseLeave()}),k(19,"span",59),c()(),_(20,zN,3,1,"div",62),_(21,$N,8,2,"div",63),_(22,WN,7,1,"div",64),c()}if(2&t){const
e=d(2);a(5),p("ngIf",e.currentHour<10),a(1),S(e.currentHour),a(5),S(e.timeSeparator),a(5),p("ngIf",e.currentMinute<10),a(1),S(e.currentMinute),a(3),p("ngIf"
,e.showSeconds),a(1),p("ngIf",e.showSeconds),a(1),p("ngIf","12"==e.hourFormat)}}const
aT=function(t){return[t]};function QN(t,i){if(1&t){const
e=I();l(0,"div",68)(1,"button",69),C("keydown",function(s){return
v(e),d(2).onContainerButtonKeydown(s)})("click",function(s){return
v(e),d(2).onTodayButtonClick(s)}),c(),l(2,"button",69),C("keydown",function(s){return
v(e),d(2).onContainerButtonKeydown(s)})("click",function(s){return
v(e),d(2).onClearButtonClick(s)}),c()()}if(2&t){const
e=d(2);a(1),p("label",e.getTranslation("today"))("ngClass",U(4,aT,e.todayButtonStyleClass)),a(1),p("label",e.getTranslation("clear"))("ngClass",U(6,aT,e.clearButtonStyleClass))}}function
JN(t,i){1&t&&Y(0)}const YN=function(t,i,e,n,s,r){return{"p-datepicker
p-component":!0,"p-datepicker-inline":t,"p-disabled":i,"p-datepicker-timeonly":e,"p-datepicker-multiple-month":n,"p-datepicker-monthpicker":s,"p-datepicker-touch-ui":r}},lT=function(t,i){return{showTransitionParams:t,hideTransitionParams:i}},ZN=function(t){
return{value:"visibleTouchUI",params:t}},XN=function(t){return{value:"visible",params:t}};function
e5(t,i){if(1&t){const
e=I();l(0,"div",10,11),C("(a)overlayAnimation.start",function(s){return
v(e),d().onOverlayAnimationStart(s)})("(a)overlayAnimation.done",function(s){return
v(e),d().onOverlayAnimationDone(s)})("click",function(s){return
v(e),d().onOverlayClick(s)}),St(2),_(3,bN,1,0,"ng-container",12),_(4,qN,5,3,"ng-container",13),_(5,KN,23,8,"div",14),_(6,QN,3,8,"div",15),St(7,1),_(8,JN,1,0,"ng-container",12),c()}if(2&t){const
e=d();me(e.panelStyleClass),p("ngStyle",e.panelStyle)("ngClass",Do(11,YN,e.inline,e.disabled,e.timeOnly,e.numberOfMonths>1,"month"===e.view,e.touchUI))("@overlayAnimation",e.touchUI?U(21,ZN,Ge(18,lT,e.showTransitionOptions,e.hideTransitionOptions)):U(26,XN,Ge(23,lT,e.showTransitionOptions,e.hideTransitionOptions)))("@.disabled",!0===e.inline),a(3),p("ngTemplateOutlet",e.headerTemplate),a(1),p("ngIf",!e.timeOnly),a(1),p("ngIf",(e.showTime||e.timeOnly)&&"date"===e
.currentView),a(1),p("ngIf",e.showButtonBar),a(2),p("ngTemplateOutlet",e.footerTemplate)}}const
t5=[[["p-header"]],[["p-footer"]]],n5=function(t,i,e,n){return{"p-calendar":!0,"p-calendar-w-btn":t,"p-calendar-timeonly":i,"p-calendar-disabled":e,"p-focus":n}},s5=["p-header","p-footer"],r5={provide:dn,useExisting:je(()=>xr),multi:!0};let
xr=(()=>{class
t{constructor(e,n,s,r,o,u){this.el=e,this.renderer=n,this.cd=s,this.zone=r,this.config=o,this.overlayService=u,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.showClear=!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
H,this.onBlur=new H,this.onClose=new H,this.onSelect=new H,this.onClear=new
H,this.onInput=new H,this.onTodayClick=new H,this.onClearClick=new
H,this.onMonthChange=new H,this.onYearChange=new H,this.onClickOutside=new
H,this.onShow=new
H,this.onModelChange=()=>{},this.onModelTouched=()=>{},this.inputFieldValue=null,this.navigationState=null,this._numberOfMonths=1,this._view="date",this.convertTo24Hour=function(h,b){return"12"==this.hourFormat?12===h?b?12:0:b?h+12:h:h}}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){co
nst n=e||new
Date;this.currentMonth=n.getMonth(),this.currentYear=n.getFullYear(),this.initTime(n),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 year
Range(e){if(this._yearRange=e,e){const
n=e.split(":"),s=parseInt(n[0]),r=parseInt(n[1]);this.populateYearOptions(s,r)}}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._firstDayOfWeek}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=pl();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.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=R.getOuterWidth(this.containerViewChild.nativeElemen
t)+"px")))}getTranslation(e){return
this.config.getTranslation(e)}populateYearOptions(e,n){this.yearOptions=[];for(let
s=e;s<=n;s++)this.yearOptions.push(s)}createWeekDays(){this.weekDays=[];let
e=this.getFirstDateOfWeek(),n=this.getTranslation(Ft.DAY_NAMES_MIN);for(let
s=0;s<7;s++)this.weekDays.push(n[e]),e=6==e?0:++e}monthPickerValues(){let e=[];for(let
n=0;n<=11;n++)e.push(this.config.getTranslation("monthNamesShort")[n]);return
e}yearPickerValues(){let e=[],n=this.currentYear-this.currentYear%10;for(let
s=0;s<10;s++)e.push(n+s);return e}createMonths(e,n){this.months=this.months=[];for(let
s=0;s<this.numberOfMonths;s++){let
r=e+s,o=n;r>11&&(r=r%11-1,o=n+1),this.months.push(this.createMonth(r,o))}}getWeekNumber(e){let
n=new Date(e.getTime());n.setDate(n.getDate()+4-(n.getDay()||7));let s=n.getTime();return
n.setMonth(0),n.setDate(1),Math.floor(Math.round((s-n.getTime())/864e5)/7)+1}createMonth(e,n){let
s=[],r=this.getFirstDayOfMonthIndex(e,n),o=this.getDaysCountInMonth(e,n),u=this
.getDaysCountInPrevMonth(e,n),h=1,b=new Date,y=[],w=Math.ceil((o+r)/7);for(let
M=0;M<w;M++){let E=[];if(0==M){for(let O=u-r+1;O<=u;O++){let
N=this.getPreviousMonthAndYear(e,n);E.push({day:O,month:N.month,year:N.year,otherMonth:!0,today:this.isToday(b,O,N.month,N.year),selectable:this.isSelectable(O,N.month,N.year,!0)})}let
L=7-E.length;for(let
O=0;O<L;O++)E.push({day:h,month:e,year:n,today:this.isToday(b,h,e,n),selectable:this.isSelectable(h,e,n,!1)}),h++}else
for(let L=0;L<7;L++){if(h>o){let
O=this.getNextMonthAndYear(e,n);E.push({day:h-o,month:O.month,year:O.year,otherMonth:!0,today:this.isToday(b,h-o,O.month,O.year),selectable:this.isSelectable(h-o,O.month,O.year,!0)})}else
E.push({day:h,month:e,year:n,today:this.isToday(b,h,e,n),selectable:this.isSelectable(h,e,n,!1)});h++}this.showWeek&&y.push(this.getWeekNumber(new
Date(E[0].year,E[0].month,E[0].day))),s.push(E)}return{month:e,year:n,dates:s,weekNumbers:y}}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"===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({m
onth: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[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.setCurrentView("month"),e.preventDefault()}switchToYearView(e){this.setCurrentView("year"),e.preventDefault()}onDateSelect(e,n){!this.disabled&&n.selectable?(this.isMultipleSelection()&&this.isSelected(n)?(this
.value=this.value.filter((s,r)=>!this.isDateEquals(s,n)),0===this.value.length&&(this.value=null),this.updateModel(this.value)):this.shouldSelectDate(n)&&this.selectDate(n),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,n){"month"===this.view?this.onDateSelect(e,{year:this.currentYear,month:n,day:1,selectable:!0}):(this.currentMonth=n,this.createMonths(this.currentMonth,this.currentYear),this.setCurrentView("date"),this.onMonthChange.emit({month:this.currentMonth+1,year:this.currentYear}))}onYearSelect(e,n){"year"===this.view?this.onDateSelect(e,{year:n,month:0,day:1,selectable:!0}):(this.currentYear=n,this.setCurrentView("month"),this.onYearChange.emit({m
onth: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
n=0;n<this.value.length;n++)e+=this.formatDateTime(this.value[n]),n!==this.value.length-1&&(e+=this.multipleSeparator+"
");else
if(this.isRangeSelection()&&this.value&&this.value.length){let
s=this.value[1];e=this.formatDateTime(this.value[0]),s&&(e+="
"+this.rangeSeparator+"
"+this.formatDateTime(s))}this.inputFieldValue=e,this.updateFilledState(),this.inputfieldViewChild&&this.inputfieldViewChild.nativeElement&&(this.inputfieldViewChild.nativeElement.value=this.inputFieldValue)}formatDateTime(e){let
n=this.keepInvalid?e:null;return
this.isValidDate(e)&&(this.timeOnly?n=this.formatTime(e):(n=this.formatDate(e,this.getDateFormat()),this.showTime&&(n+="
"+this.formatTime(e)))),n}setCurrentHourPM(e){"12"==this.hourFormat?(this.pm=e>11,this.currentHour=e>=12?12==e?12:e-12:0==e?12:e):this.curr
entHour=e}setCurrentView(e){this.currentView=e,this.cd.detectChanges(),this.alignOverlay()}selectDate(e){let
n=new
Date(e.year,e.month,e.day);if(this.showTime&&(n.setHours("12"==this.hourFormat?12===this.currentHour?this.pm?12:0:this.pm?this.currentHour+12:this.currentHour:this.currentHour),n.setMinutes(this.currentMinute),n.setSeconds(this.currentSecond)),this.minDate&&this.minDate>n&&(n=this.minDate,this.setCurrentHourPM(n.getHours()),this.currentMinute=n.getMinutes(),this.currentSecond=n.getSeconds()),this.maxDate&&this.maxDate<n&&(n=this.maxDate,this.setCurrentHourPM(n.getHours()),this.currentMinute=n.getMinutes(),this.currentSecond=n.getSeconds()),this.isSingleSelection())this.updateModel(n);else
if(this.isMultipleSelection())this.updateModel(this.value?[...this.value,n]:[n]);else
if(this.isRangeSelection())if(this.value&&this.value.length){let
s=this.value[0],r=this.value[1];!r&&n.getTime()>=s.getTime()?r=n:(s=n,r=null),this.updateModel([s,r])}else
this.updateModel([n,null]);t
his.onSelect.emit(n)}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
n=null;this.value&&(n=this.value.map(s=>this.formatDateTime(s))),this.onModelChange(n)}}getFirstDayOfMonthIndex(e,n){let
s=new Date;s.setDate(1),s.setMonth(e),s.setFullYear(n);let
r=s.getDay()+this.getSundayIndex();return r>=7?r-7:r}getDaysCountInMonth(e,n){return
32-this.daylightSavingAdjust(new Date(n,e,32)).getDate()}getDaysCountInPrevMonth(e,n){let
s=this.getPreviousMonthAndYear(e,n);return
this.getDaysCountInMonth(s.month,s.year)}getPreviousMonthAndYear(e,n){let s,r;return
0===e?(s=11,r=n-1):(s=e-1,r=n),{month:s,year:r}}getNextMonthAndYear(e,n){let s,r;return
11===e?(s=0,r=n+1):(s=e+1,r=n),{month:s,year:r}}getSundayIndex(){let
e=this.getFirstDateOfWeek();return
e>0?7-e:0}isSelected(e){if(!this.value)return!1;if(this.isSingleSelection())return
this.isDateEq
uals(this.value,e);if(this.isMultipleSelection()){let n=!1;for(let s of
this.value)if(n=this.isDateEquals(s,e),n)break;return n}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
n=this.isRangeSelection()?this.value[0]:this.value;return!this.isMultipleSelection()&&n.getMonth()===e&&n.getFullYear()===this.currentYear}return!1}isYearSelected(e){if(this.isComparable()){let
n=this.isRangeSelection()?this.value[0]:this.value;return!this.isMultipleSelection()&&n.getFullYear()===e}return!1}isDateEquals(e,n){return!!(e&&e
instanceof
Date)&&e.getDate()===n.day&&e.getMonth()===n.month&&e.getFullYear()===n.year}isDateBetween(e,n,s){if(e&&n){let
o=new Date(s.year,s.month,s.day);return
e.getTime()<=o.getTime()&&n.getTime()>=o.g
etTime()}return!1}isSingleSelection(){return"single"===this.selectionMode}isRangeSelection(){return"range"===this.selectionMode}isMultipleSelection(){return"multiple"===this.selectionMode}isToday(e,n,s,r){return
e.getDate()===n&&e.getMonth()===s&&e.getFullYear()===r}isSelectable(e,n,s,r){let
o=!0,u=!0,h=!0,b=!0;return!(r&&!this.selectOtherMonths)&&(this.minDate&&(this.minDate.getFullYear()>s||this.minDate.getFullYear()===s&&(this.minDate.getMonth()>n||this.minDate.getMonth()===n&&this.minDate.getDate()>e))&&(o=!1),this.maxDate&&(this.maxDate.getFullYear()<s||this.maxDate.getFullYear()===s&&(this.maxDate.getMonth()<n||this.maxDate.getMonth()===n&&this.maxDate.getDate()<e))&&(u=!1),this.disabledDates&&(h=!this.isDateDisabled(e,n,s)),this.disabledDays&&(b=!this.isDayDisabled(e,n,s)),o&&u&&h&&b)}isDateDisabled(e,n,s){if(this.disabledDates)for(let
r of
this.disabledDates)if(r.getFullYear()===s&&r.getMonth()===n&&r.getDate()===e)return!0;return!1}isDayDisabled(e,n,s){if(this.disabledDays)
{let o=new
Date(s,n,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,n){this.overlayVisible?this.hideOverlay():(n.focus(),this.showOverlay())}clear(){this.inputFieldValue=null,this.value=null,this.onModelChange(this.value),this.onClear.emit()}onOverlayClick(e){this.overlayService.add({originalEvent:e,target:this.el.nativeElement})}getMonthName(e){return
this.config.getTranslation("monthNames")[e]}getYear(e){return"month"===this.currentView?this.currentYear:e.year}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},thi
s.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&&(R.getFocusableElements(this.contentViewChild.nativeElement).forEach(n=>n.tabIndex="-1"),this.overlayVisible&&(this.overlayVisible=!1))}onDateCellKeydown(e,n,s){const
r=e.currentTarget,o=r.parentElement;switch(e.which){case 40:{r.tabIndex="-1";let
u=R.index(o),h=o.parentElement.nextElementSibling;h?R.hasClass(h.children[u].children[0],"p-disabled")?(this.navigationState={backward:!1},this.navForward(e)):(h.children[u].children[0].tabIndex="0",h.children[u].children[0].focus()):(this.navigationState={backward:!1},this.navForward(e)),e.preventDefault();break}case
38:{r.tabIndex="-1";let u=R.index(o),h=o.parentE
lement.previousElementSibling;if(h){let
b=h.children[u].children[0];R.hasClass(b,"p-disabled")?(this.navigationState={backward:!0},this.navBackward(e)):(b.tabIndex="0",b.focus())}else
this.navigationState={backward:!0},this.navBackward(e);e.preventDefault();break}case
37:{r.tabIndex="-1";let u=o.previousElementSibling;if(u){let
h=u.children[0];R.hasClass(h,"p-disabled")||R.hasClass(h.parentElement,"p-datepicker-weeknumber")?this.navigateToMonth(!0,s):(h.tabIndex="0",h.focus())}else
this.navigateToMonth(!0,s);e.preventDefault();break}case 39:{r.tabIndex="-1";let
u=o.nextElementSibling;if(u){let
h=u.children[0];R.hasClass(h,"p-disabled")?this.navigateToMonth(!1,s):(h.tabIndex="0",h.focus())}else
this.navigateToMonth(!1,s);e.preventDefault();break}case 13:case
32:this.onDateSelect(e,n),e.preventDefault();break;case
27:this.overlayVisible=!1,e.preventDefault();break;case
9:this.inline||this.trapFocus(e)}}onMonthCellKeydown(e,n){const
s=e.currentTarget;switch(e.which){case 38:case 40:{s.
tabIndex="-1";var r=s.parentElement.children,o=R.index(s);let
u=r[40===e.which?o+3:o-3];u&&(u.tabIndex="0",u.focus()),e.preventDefault();break}case
37:{s.tabIndex="-1";let
u=s.previousElementSibling;u?(u.tabIndex="0",u.focus()):(this.navigationState={backward:!0},this.navBackward(e)),e.preventDefault();break}case
39:{s.tabIndex="-1";let
u=s.nextElementSibling;u?(u.tabIndex="0",u.focus()):(this.navigationState={backward:!1},this.navForward(e)),e.preventDefault();break}case
13:this.onMonthSelect(e,n),e.preventDefault();break;case 13:case 32:case
27:this.overlayVisible=!1,e.preventDefault();break;case
9:this.inline||this.trapFocus(e)}}onYearCellKeydown(e,n){const
s=e.currentTarget;switch(e.which){case 38:case 40:{s.tabIndex="-1";var
r=s.parentElement.children,o=R.index(s);let
u=r[40===e.which?o+2:o-2];u&&(u.tabIndex="0",u.focus()),e.preventDefault();break}case
37:{s.tabIndex="-1";let
u=s.previousElementSibling;u?(u.tabIndex="0",u.focus()):(this.navigationState={backward:!0},this.navBac
kward(e)),e.preventDefault();break}case 39:{s.tabIndex="-1";let
u=s.nextElementSibling;u?(u.tabIndex="0",u.focus()):(this.navigationState={backward:!1},this.navForward(e)),e.preventDefault();break}case
13:case 32:this.onYearSelect(e,n),e.preventDefault();break;case
27:this.overlayVisible=!1,e.preventDefault();break;case
9:this.trapFocus(e)}}navigateToMonth(e,n){if(e)if(1===this.numberOfMonths||0===n)this.navigationState={backward:!0},this.navBackward(event);else{let
r=R.find(this.contentViewChild.nativeElement.children[n-1],".p-datepicker-calendar td
span:not(.p-disabled):not(.p-ink)"),o=r[r.length-1];o.tabIndex="0",o.focus()}else
if(1===this.numberOfMonths||n===this.numberOfMonths-1)this.navigationState={backward:!1},this.navForward(event);else{let
r=R.findSingle(this.contentViewChild.nativeElement.children[n+1],".p-datepicker-calendar
td
span:not(.p-disabled):not(.p-ink)");r.tabIndex="0",r.focus()}}updateFocus(){let
e;if(this.navigationState){if(this.navigationState.button)this.in
itFocusableCell(),this.navigationState.backward?R.findSingle(this.contentViewChild.nativeElement,".p-datepicker-prev").focus():R.findSingle(this.contentViewChild.nativeElement,".p-datepicker-next").focus();else{if(this.navigationState.backward){let
n;n=R.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)"),n&&n.length>0&&(e=n[n.length-1])}else
e=R.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 n=R.find(this.conte
ntViewChild.nativeElement,".p-monthpicker
.p-monthpicker-month:not(.p-disabled)"),s=R.findSingle(this.contentViewChild.nativeElement,".p-monthpicker
.p-monthpicker-month.p-highlight");n.forEach(r=>r.tabIndex=-1),e=s||n[0],0===n.length&&R.find(this.contentViewChild.nativeElement,'.p-monthpicker
.p-monthpicker-month.p-disabled[tabindex =
"0"]').forEach(o=>o.tabIndex=-1)}else
if("year"===this.currentView){let
n=R.find(this.contentViewChild.nativeElement,".p-yearpicker
.p-yearpicker-year:not(.p-disabled)"),s=R.findSingle(this.contentViewChild.nativeElement,".p-yearpicker
.p-yearpicker-year.p-highlight");n.forEach(r=>r.tabIndex=-1),e=s||n[0],0===n.length&&R.find(this.contentViewChild.nativeElement,'.p-yearpicker
.p-yearpicker-year.p-disabled[tabindex =
"0"]').forEach(o=>o.tabIndex=-1)}else
if(e=R.findSingle(this.contentViewChild.nativeElement,"span.p-highlight"),!e){let
n=R.findSingle(this.contentViewChild.nativeElement,"td.p-datepicker-today
span:not(.p-disabled):not(.p-ink)");e=n||R.fi
ndSingle(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
n=R.getFocusableElements(this.contentViewChild.nativeElement);if(n&&n.length>0)if(n[0].ownerDocument.activeElement){let
s=n.indexOf(n[0].ownerDocument.activeElement);if(e.shiftKey)if(-1==s||0===s)if(this.focusTrap)n[n.length-1].focus();else{if(-1===s)return
this.hideOverlay();if(0===s)return}else n[s-1].focus();else
if(-1==s||s===n.length-1){if(!this.focusTrap&&-1!=s)return
this.hideOverlay();n[0].focus()}else n[s+1].focus()}else
n[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,n,s,r){let
o=this.value;const
u=this.convertTo24Hour(e,r);this.isRangeSelection()&&(o=this.value[1]||this.value[0]),this.isMultipleSelection()&&(o=this.value[this.value.length-1]);const
h=o?o.toDateString():null;return!(this.minDate&&h&&this.minDate.toDateString()===h&&(this.minDate.getHours()>u||this.minDate.getHours()===u&&(this.minDate.getMinutes()>n||this.minDate.getMinutes()===n&&this.minDate.getSeconds()>s))||this.maxDate&&h&&this.maxDate.toDateString()===h&&(this.maxDate.getHours()<u||this.maxDate.getHours()===u&&(this.maxDate.getMinutes()<n||this.maxDate.getMinutes()===n&&this.maxDate.getSeconds()<s)))}incrementHour(e){let
s=this.currentHour+this.stepHour,r=this.pm;"24"==this.hourFormat?s=s>=24?s-24:s:"12"==this.hourFormat&&(this.currentHour<12&&s>11&&(r=!this.pm),s=s>=13?s-12:s),this.validateTime(s,this.currentMinute,this.currentSecond,r)&&(this.currentHou
r=s,this.pm=r),e.preventDefault()}onTimePickerElementMouseDown(e,n,s){this.disabled||(this.repeat(e,null,n,s),e.preventDefault())}onTimePickerElementMouseUp(e){this.disabled||(this.clearTimePickerTimer(),this.updateTime())}onTimePickerElementMouseLeave(){!this.disabled&&this.timePickerTimer&&(this.clearTimePickerTimer(),this.updateTime())}repeat(e,n,s,r){let
o=n||500;switch(this.clearTimePickerTimer(),this.timePickerTimer=setTimeout(()=>{this.repeat(e,100,s,r),this.cd.markForCheck()},o),s){case
0:1===r?this.incrementHour(e):this.decrementHour(e);break;case
1:1===r?this.incrementMinute(e):this.decrementMinute(e);break;case
2:1===r?this.incrementSecond(e):this.decrementSecond(e)}this.updateInputfield()}clearTimePickerTimer(){this.timePickerTimer&&(clearTimeout(this.timePickerTimer),this.timePickerTimer=null)}decrementHour(e){let
n=this.currentHour-this.stepHour,s=this.pm;"24"==this.hourFormat?n=n<0?24+n:n:"12"==this.hourFormat&&(12===this.currentHour&&(s=!this.pm),n=n<=0?12+n:n),this.
validateTime(n,this.currentMinute,this.currentSecond,s)&&(this.currentHour=n,this.pm=s),e.preventDefault()}incrementMinute(e){let
n=this.currentMinute+this.stepMinute;n=n>59?n-60:n,this.validateTime(this.currentHour,n,this.currentSecond,this.pm)&&(this.currentMinute=n),e.preventDefault()}decrementMinute(e){let
n=this.currentMinute-this.stepMinute;n=n<0?60+n:n,this.validateTime(this.currentHour,n,this.currentSecond,this.pm)&&(this.currentMinute=n),e.preventDefault()}incrementSecond(e){let
n=this.currentSecond+this.stepSecond;n=n>59?n-60:n,this.validateTime(this.currentHour,this.currentMinute,n,this.pm)&&(this.currentSecond=n),e.preventDefault()}decrementSecond(e){let
n=this.currentSecond-this.stepSecond;n=n<0?60+n:n,this.validateTime(this.currentHour,this.currentMinute,n,this.pm)&&(this.currentSecond=n),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
n=!this.pm;this.validateTime(this.currentHour,this.currentMinute,this.currentSecond,n)&&(this.pm=n,this.updateTime()),e.preventDefault()}onUserInput(e){if(!this.isKeydown)return;this.isKeydown=!1;let
n=e.target.value;try{let
s=this.parseValueFromString(n);this.isValidSelection(s)&&(this.updateModel(s),this.updateUI())}catch(s){this.updateModel(this.keepInvalid?n:null)}this.filled=null!=n&&n.length,this.onInput.emit(e)}isValidSelection(e){let
n=!0;return
this.isSingleSelection()?this.isSelectable(e.getDate(),e.getMonth(),e.getFullYear(),!1)||(n=!1):e.eve
ry(s=>this.isSelectable(s.getDate(),s.getMonth(),s.getFullYear(),!1))&&this.isRangeSelection()&&(n=e.length>1&&e[1]>e[0]),n}parseValueFromString(e){if(!e||0===e.trim().length)return
null;let n;if(this.isSingleSelection())n=this.parseDateTime(e);else
if(this.isMultipleSelection()){let s=e.split(this.multipleSeparator);n=[];for(let r of
s)n.push(this.parseDateTime(r.trim()))}else if(this.isRangeSelection()){let
s=e.split(" "+this.rangeSeparator+" ");n=[];for(let
r=0;r<s.length;r++)n[r]=this.parseDateTime(s[r].trim())}return n}parseDateTime(e){let
n,s=e.split(" ");if(this.timeOnly)n=new
Date,this.populateTime(n,s[0],s[1]);else{const
r=this.getDateFormat();if(this.showTime){let
o="12"==this.hourFormat?s.pop():null,u=s.pop();n=this.parseDate(s.join("
"),r),this.populateTime(n,u,o)}else n=this.parseDate(e,r)}return
n}populateTime(e,n,s){if("12"==this.hourFormat&&!s)throw"Invalid
Time";this.pm="PM"===s||"pm"===s;let
r=this.parseTime(n);e.setHours(r.hour),e.setMinutes(r.minute),e.setSeconds
(r.second)}isValidDate(e){return e instanceof
Date&&Z.isNotEmpty(e)}updateUI(){let
e=this.value;Array.isArray(e)&&(e=e[0]);let
n=this.defaultDate&&this.isValidDate(this.defaultDate)&&!this.value?this.defaultDate:e&&this.isValidDate(e)?e:new
Date;this.currentMonth=n.getMonth(),this.currentYear=n.getFullYear(),this.createMonths(this.currentMonth,this.currentYear),(this.showTime||this.timeOnly)&&(this.setCurrentHourPM(n.getHours()),this.currentMinute=n.getMinutes(),this.currentSecond=n.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.over
lay.setAttribute(this.attributeSelector,""),this.appendOverlay(),this.updateFocus(),this.autoZIndex&&(this.touchUI?dt.set("modal",this.overlay,this.baseZIndex||this.config.zIndex.modal):dt.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&&dt.clear(e.element)}}appendOverlay(){this.appendTo&&("body"===this.appendTo?document.body.appendChild(this.overlay):R.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=R.getOuterWidth(t
his.overlay)+"px",this.overlay.style.minWidth=R.getOuterWidth(this.inputfieldViewChild.nativeElement)+"px"):this.overlay.style.width=R.getOuterWidth(this.inputfieldViewChild.nativeElement)+"px",R.absolutePosition(this.overlay,this.inputfieldViewChild.nativeElement)):R.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),R.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",s=>{this.disableModality()}),document.body.appendChild(this.mask),R.addClass(document.body,"p-overflow-hidden"))}disableModality(){this.mask&&(R.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 n,e=document.body.children;for(let
s=0;s<e.length;s++)if(R.hasClass(e[s],"p-datepicker-mask-scrollblocker")){n=!0;break}n||R.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){if(this.value=e,this.value&&"string"==typeof
this.value)try{this.value=this.parseValueFromString(this.value)}catch(n){this.keepInvalid&&(this.value=e)}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||th
is.getTranslation("dateFormat")}getFirstDateOfWeek(){return
this._firstDayOfWeek||this.getTranslation(Ft.FIRST_DAY_OF_WEEK)}formatDate(e,n){if(!e)return"";let
s;const r=y=>{const w=s+1<n.length&&n.charAt(s+1)===y;return
w&&s++,w},o=(y,w,M)=>{let
E=""+w;if(r(y))for(;E.length<M;)E="0"+E;return
E},u=(y,w,M,E)=>r(y)?E[w]:M[w];let
h="",b=!1;if(e)for(s=0;s<n.length;s++)if(b)"'"!==n.charAt(s)||r("'")?h+=n.charAt(s):b=!1;else
switch(n.charAt(s)){case"d":h+=o("d",e.getDate(),2);break;case"D":h+=u("D",e.getDay(),this.getTranslation(Ft.DAY_NAMES_SHORT),this.getTranslation(Ft.DAY_NAMES));break;case"o":h+=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":h+=o("m",e.getMonth()+1,2);break;case"M":h+=u("M",e.getMonth(),this.getTranslation(Ft.MONTH_NAMES_SHORT),this.getTranslation(Ft.MONTH_NAMES));break;case"y":h+=r("y")?e.getFullYear():(e.getFullYear()%100<10?"0":"")+e.getFullYear()%100;break;case"@":h+=e.
getTime();break;case"!":h+=1e4*e.getTime()+this.ticksTo1970;break;case"'":r("'")?h+="'":b=!0;break;default:h+=n.charAt(s)}return
h}formatTime(e){if(!e)return"";let
n="",s=e.getHours(),r=e.getMinutes(),o=e.getSeconds();return"12"==this.hourFormat&&s>11&&12!=s&&(s-=12),n+="12"==this.hourFormat&&0===s?12:s<10?"0"+s:s,n+=":",n+=r<10?"0"+r:r,this.showSeconds&&(n+=":",n+=o<10?"0"+o:o),"12"==this.hourFormat&&(n+=e.getHours()>11?"
PM":" AM"),n}parseTime(e){let
n=e.split(":");if(n.length!==(this.showSeconds?3:2))throw"Invalid
time";let
r=parseInt(n[0]),o=parseInt(n[1]),u=this.showSeconds?parseInt(n[2]):null;if(isNaN(r)||isNaN(o)||r>23||o>59||"12"==this.hourFormat&&r>12||this.showSeconds&&(isNaN(u)||u>59))throw"Invalid
time";return"12"==this.hourFormat&&(12!==r&&this.pm?r+=12:!this.pm&&12===r&&(r-=12)),{hour:r,minute:o,second:u}}parseDate(e,n){if(null==n||null==e)throw"Invalid
arguments";if(""===(e="object"==typeof
e?e.toString():e+""))return null;let s,r,o,L,u=0,h="string"!=typeof
this.short
YearCutoff?this.shortYearCutoff:(new
Date).getFullYear()%100+parseInt(this.shortYearCutoff,10),b=-1,y=-1,w=-1,M=-1,E=!1,O=J=>{let
se=s+1<n.length&&n.charAt(s+1)===J;return se&&s++,se},N=J=>{let
se=O(J),ke="@"===J?14:"!"===J?20:"y"===J&&se?4:"o"===J?3:2,Ct=new
RegExp("^\\d{"+("y"===J?ke:1)+","+ke+"}"),Ut=e.substring(u).match(Ct);if(!Ut)throw"Missing
number at position "+u;return
u+=Ut[0].length,parseInt(Ut[0],10)},G=(J,se,ke)=>{let mt=-1,Ct=O(J)?ke:se,Ut=[];for(let
At=0;At<Ct.length;At++)Ut.push([At,Ct[At]]);Ut.sort((At,hn)=>-(At[1].length-hn[1].length));for(let
At=0;At<Ut.length;At++){let
hn=Ut[At][1];if(e.substr(u,hn.length).toLowerCase()===hn.toLowerCase()){mt=Ut[At][0],u+=hn.length;break}}if(-1!==mt)return
mt+1;throw"Unknown name at position
"+u},P=()=>{if(e.charAt(u)!==n.charAt(s))throw"Unexpected literal at position
"+u;u++};for("month"===this.view&&(w=1),s=0;s<n.length;s++)if(E)"'"!==n.charAt(s)||O("'")?P():E=!1;else
switch(n.charAt(s)){case"d":w=N("d");break;case"D":G("D",thi
s.getTranslation(Ft.DAY_NAMES_SHORT),this.getTranslation(Ft.DAY_NAMES));break;case"o":M=N("o");break;case"m":y=N("m");break;case"M":y=G("M",this.getTranslation(Ft.MONTH_NAMES_SHORT),this.getTranslation(Ft.MONTH_NAMES));break;case"y":b=N("y");break;case"@":L=new
Date(N("@")),b=L.getFullYear(),y=L.getMonth()+1,w=L.getDate();break;case"!":L=new
Date((N("!")-this.ticksTo1970)/1e4),b=L.getFullYear(),y=L.getMonth()+1,w=L.getDate();break;case"'":O("'")?P():E=!0;break;default:P()}if(u<e.length&&(o=e.substr(u),!/^\s+/.test(o)))throw"Extra/unparsed
characters found in date: "+o;if(-1===b?b=(new
Date).getFullYear():b<100&&(b+=(new Date).getFullYear()-(new
Date).getFullYear()%100+(b<=h?0:-100)),M>-1)for(y=1,w=M;r=this.getDaysCountInMonth(b,y-1),!(w<=r);)y++,w-=r;if(L=this.daylightSavingAdjust(new
Date(b,y-1,w)),L.getFullYear()!==b||L.getMonth()+1!==y||L.getDate()!==w)throw"Invalid
date";return L}daylightSavingAdjust(e){return
e?(e.setHours(e.getHours()>12?e.getHours()+2:0),e):null}updateFilledS
tate(){this.filled=this.inputFieldValue&&""!=this.inputFieldValue}onTodayButtonClick(e){let
n=new
Date,s={day:n.getDate(),month:n.getMonth(),year:n.getFullYear(),otherMonth:n.getMonth()!==this.currentMonth||n.getFullYear()!==this.currentYear,today:!0,selectable:!0};this.onDateSelect(e,s),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
n=[...this.responsiveOptions].filter(s=>!(!s.breakpoint||!s.numMonths)).sort((s,r)=>-1*s.breakpoint.localeCompare(r.breakpoint,void
0,{numeric:!0}));for(let s=0;s<n.length;s++){let{breakpoint:r,numMonths:o}=n[s],u=`\n
.p-datepicker[${this.at
tributeSelector}] .p-datepicker-group:nth-child(${o}) .p-datepicker-next {\n
display: inline-flex !important;\n }\n
`;for(let h=o;h<this.numberOfMonths;h++)u+=`\n
.p-datepicker[${this.attributeSelector}] .p-datepicker-group:nth-child(${h+1}) {\n
display: none !important;\n }\n
`;e+=`\n @media screen and (max-width: ${r}) {\n
${u}\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",n=>{this.
isOutsideClicked(n)&&this.overlayVisible&&this.zone.run(()=>{this.hideOverlay(),this.onClickOutside.emit(n),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
Qs(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
R.hasClass(e.target,"p-datepicker-prev")||R.hasClass(e.target,"p-datepicker-prev-icon")||R.hasClass(e.target,"p-datepicker-next")||R.hasClass(e.target,"p-datepicker-next-icon")}onWindowResize(){this.overlayVisible&&!R.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&&dt.clear(this.overlay),this.destroyResponsiveStyleElement(),this.clearTimePickerTimer(),this.restoreOverlayAppend(),this.onOverlayHide()}}return
t.\u0275fac=function(e){return
new(e||t)(D(De),D(gn),D(rt),D(nt),D(zn),D(Ks))},t.\u0275cmp=z({type:t,selecto
rs:[["p-calendar"]],contentQueries:function(e,n,s){if(1&e&&st(s,ne,4),2&e){let
r;V(r=B())&&(n.templates=r)}},viewQuery:function(e,n){if(1&e&&(W(pN,5),W(hN,5),W(mN,5)),2&e){let
s;V(s=B())&&(n.containerViewChild=s.first),V(s=B())&&(n.inputfieldViewChild=s.first),V(s=B())&&(n.content=s.first)}},hostAttrs:[1,"p-element","p-inputwrapper"],hostVars:6,hostBindings:function(e,n){2&e&&si("p-inputwrapper-filled",n.filled)("p-inputwrapper-focus",n.focus)("p-calendar-clearable",n.showClear&&!n.disabled)},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:"readonly
Input",shortYearCutoff:"shortYearCutoff",monthNavigator:"monthNavigator",yearNavigator:"yearNavigator",hourFormat:"hourFormat",timeOnly:"timeOnly",stepHour:"stepHour",stepMinute:"stepMinute",stepSecond:"stepSecond",showSeconds:"showSeconds",required:"required",showOnFocus:"showOnFocus",showWeek:"showWeek",showClear:"showClear",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",minDate:"minDate",maxDate:"maxDate",disabledDates:"disabledDates",disabl
edDays:"disabledDays",yearRange:"yearRange",showTime:"showTime",responsiveOptions:"responsiveOptions",numberOfMonths:"numberOfMonths",firstDayOfWeek:"firstDayOfWeek",locale:"locale"},outputs:{onFocus:"onFocus",onBlur:"onBlur",onClose:"onClose",onSelect:"onSelect",onClear:"onClear",onInput:"onInput",onTodayClick:"onTodayClick",onClearClick:"onClearClick",onMonthChange:"onMonthChange",onYearChange:"onYearChange",onClickOutside:"onClickOutside",onShow:"onShow"},features:[Pe([r5])],ngContentSelectors:s5,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",""],["class","p-calendar-clear-icon
pi
pi-times",3,"click",4,"ngIf"],["type","button","pButton","","pRipple","","class","p-datepicker-trigger","tabindex","0",3,"icon","disabled","click",4,"ngIf"],[1,"p-calenda
r-clear-icon","pi","pi-times",3,"click"],["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-chevr
on-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"],["pR
ipple","",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,n){1&e&&(Sn(t5),l(0,"span",0,1),_(2,_N,4,17,"ng-template",2),_(3,e5,9,28,"div",3),c()),2&e&&(me(n.styleClass),p("ngC
lass",qn(6,n5,n.showIcon,n.timeOnly,n.disabled,n.focus))("ngStyle",n.style),a(2),p("ngIf",!n.inline),a(1),p("ngIf",n.inline||n.overlayVisible))},directives:[Le,lt,Q,On,bt,Rt,at],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;p
osition: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;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:translat
e(-50%,-50%)}.p-yearpicker-year{width:50%;display:inline-flex;align-items:center;justify-content:center;cursor:pointer;overflow:hidden;position:relative}.p-calendar-clear-icon{position:absolute;top:50%;margin-top:-.5rem;cursor:pointer}.p-calendar-clearable{position:relative}\n"],encapsulation:2,data:{animation:[wi("overlayAnimation",[ws("visibleTouchUI",it({transform:"translate(-50%,-50%)",opacity:1})),Lt("void
=>
visible",[it({opacity:0,transform:"scaleY(0.8)"}),kt("{{showTransitionParams}}",it({opacity:1,transform:"*"}))]),Lt("visible
=> void",[kt("{{hideTransitionParams}}",it({opacity:0}))]),Lt("void
=> visibleTouchUI",[it({opacity:0,transform:"translate3d(-50%, -40%, 0)
scale(0.9)"}),kt("{{showTransitionParams}}")]),Lt("visibleTouchUI
=>
void",[kt("{{hideTransitionParams}}",it({opacity:0,transform:"translate3d(-50%,
-40%, 0) scale(0.9)"}))])])]},changeDetection:0}),t})(),cT=(()=>{class t{}return
t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=he({type:t}),t.\u0275inj=ue({i
mports:[[Fe,gl,Nt,pn],gl,Nt]}),t})();function o5(t,i){1&t&&Y(0)}function
a5(t,i){if(1&t&&(l(0,"div",8),St(1,1),_(2,o5,1,0,"ng-container",6),c()),2&t){const
e=d();a(2),p("ngTemplateOutlet",e.headerTemplate)}}function
l5(t,i){1&t&&Y(0)}function
c5(t,i){if(1&t&&(l(0,"div",9),g(1),_(2,l5,1,0,"ng-container",6),c()),2&t){const
e=d();a(1),T(" ",e.header,"
"),a(1),p("ngTemplateOutlet",e.titleTemplate)}}function
u5(t,i){1&t&&Y(0)}function
d5(t,i){if(1&t&&(l(0,"div",10),g(1),_(2,u5,1,0,"ng-container",6),c()),2&t){const
e=d();a(1),T(" ",e.subheader,"
"),a(1),p("ngTemplateOutlet",e.subtitleTemplate)}}function
p5(t,i){1&t&&Y(0)}function h5(t,i){1&t&&Y(0)}function
m5(t,i){if(1&t&&(l(0,"div",11),St(1,2),_(2,h5,1,0,"ng-container",6),c()),2&t){const
e=d();a(2),p("ngTemplateOutlet",e.footerTemplate)}}const
f5=["*",[["p-header"]],[["p-footer"]]],g5=["*","p-header","p-footer"];let
Ne=(()=>{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.template;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)(D(De))},t.\u0275cmp=z({type:t,selectors:[["p-card"]],contentQueries:function(e,n,s){if(1&e&&(st(s,Oo,5),st(s,fl,5),st(s,ne,4)),2&e){let
r;V(r=B())&&(n.headerFacet=r.first),V(r=B())&&(n.footerFacet=r.first),V(r=B())&&(n.templates=r)}},hostAttrs:[1,"p-element"],inputs:{header:"header",subheader:"subheader",style:"style",styleClass:"styleClass"},ngContentSelectors:g5,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:function(e,n){1&e&&(Sn(f5),l(0,"div",0),_(1,a5,3,1,"div",1),l(2,"div",2),_(3,c5,3,2,"div",3),_(4,d5,3,2,"div",4),l(5,"div",5),St(6),_(7,p5,1,0,"ng-container",6),c(),_(8,m5,3,1,"div",7),c()()),2&e&&(me(n.styleClass),p("ngClass","p-card
p-component")("ngStyle",n.style),a(1),p("ngIf",n.headerFacet||n.headerTemplate),a(2),p("ngIf",n.header||n.titleTemplate),a(1),p("ngIf",n.subheader||n.subtitleTemplate),a(3),p("ngTemplateOutlet",n.contentTemplate),a(1),p("ngIf",n.footerFacet||n.footerTemplate))},directives:[Le,lt,Q,Rt],styles:[".p-card-header
img{width:100%}\n"],encapsulation:2,changeDetection:0}),t})(),_5=(()=>{class
t{}return t.\u0275fac=function(e){return
new(e||t)},t.\u0275mod=he({type:t}),t.\u0275inj=ue({imports:[[Fe],Nt]}),t})();const
b5=["cb"],v5=function(t,i,e){return{"p-checkbox-label":!0,"p-checkbox-label-active":t,"p-disabled":i,"p-checkbox-label-focus":e}};function
C5(t,i){if(1&t){const e=I();l(0,"label",7)
,C("click",function(s){v(e);const r=d(),o=F(3);return
r.onClick(s,o,!0)}),g(1),c()}if(2&t){const
e=d();me(e.labelStyleClass),p("ngClass",Qt(5,v5,e.checked(),e.disabled,e.focused)),ie("for",e.inputId),a(1),S(e.label)}}const
y5=function(t,i,e){return{"p-checkbox
p-component":!0,"p-checkbox-checked":t,"p-checkbox-disabled":i,"p-checkbox-focused":e}},w5=function(t,i,e){return{"p-highlight":t,"p-disabled":i,"p-focus":e}},T5={provide:dn,useExisting:je(()=>sn),multi:!0};let
sn=(()=>{class t{constructor(e){this.cd=e,this.checkboxIcon="pi
pi-check",this.trueValue=!0,this.falseValue=!1,this.onChange=new
H,this.onModelChange=()=>{},this.onModelTouched=()=>{},this.focused=!1}onClick(e,n,s){e.preventDefault(),!this.disabled&&!this.readonly&&(this.updateModel(e),s&&n.focus())}updateModel(e){let
n;this.binary?(n=this.checked()?this.falseValue:this.trueValue,this.model=n,this.onModelChange(n)):(n=this.checked()?this.model.filter(s=>!Z.equals(s,this.value)):this.model?[...this.model,this.value]:[thi
s.value],this.onModelChange(n),this.model=n,this.formControl&&this.formControl.setValue(n)),this.onChange.emit({checked:n,originalEvent:e})}handleChange(e){this.readonly||this.updateModel(e)}onFocus(){this.focused=!0}onBlur(){this.focused=!1,this.onModelTouched()}focus(){this.inputViewChild.nativeElement.focus()}writeValue(e){this.model=e,this.cd.markForCheck()}registerOnChange(e){this.onModelChange=e}registerOnTouched(e){this.onModelTouched=e}setDisabledState(e){this.disabled=e,this.cd.markForCheck()}checked(){return
this.binary?this.model===this.trueValue:Z.contains(this.value,this.model)}}return
t.\u0275fac=function(e){return
new(e||t)(D(rt))},t.\u0275cmp=z({type:t,selectors:[["p-checkbox"]],viewQuery:function(e,n){if(1&e&&W(b5,5),2&e){let
s;V(s=B())&&(n.inputViewChild=s.first)}},hostAttrs:[1,"p-element"],inputs:{value:"value",name:"name",disabled:"disabled",binary:"binary",label:"label",ariaLabelledBy:"ariaLabelledBy",ariaLabel:"ariaLabel",tabindex:"tabindex",inputId:"inputId",s
tyle:"style",styleClass:"styleClass",labelStyleClass:"labelStyleClass",formControl:"formControl",checkboxIcon:"checkboxIcon",readonly:"readonly",required:"required",trueValue:"trueValue",falseValue:"falseValue"},outputs:{onChange:"onChange"},features:[Pe([T5])],decls:7,vars:26,consts:[[3,"ngStyle","ngClass"],[1,"p-hidden-accessible"],["type","checkbox",3,"readonly","value","checked","disabled","focus","blur","change"],["cb",""],[1,"p-checkbox-box",3,"ngClass","click"],[1,"p-checkbox-icon",3,"ngClass"],[3,"class","ngClass","click",4,"ngIf"],[3,"ngClass","click"]],template:function(e,n){if(1&e){const
s=I();l(0,"div",0)(1,"div",1)(2,"input",2,3),C("focus",function(){return
n.onFocus()})("blur",function(){return
n.onBlur()})("change",function(o){return
n.handleChange(o)}),c()(),l(4,"div",4),C("click",function(o){v(s);const
u=F(3);return
n.onClick(o,u,!0)}),k(5,"span",5),c()(),_(6,C5,2,9,"label",6)}2&e&&(me(n.styleClass),p("ngStyle",n.style)("ngClass",Qt(18,y5,n.checked(),n.disabled,n.fo
cused)),a(2),p("readonly",n.readonly)("value",n.value)("checked",n.checked())("disabled",n.disabled),ie("id",n.inputId)("name",n.name)("tabindex",n.tabindex)("aria-labelledby",n.ariaLabelledBy)("aria-label",n.ariaLabel)("aria-checked",n.checked())("required",n.required),a(2),p("ngClass",Qt(22,w5,n.checked(),n.disabled,n.focused)),a(1),p("ngClass",n.checked()?n.checkboxIcon:null),a(1),p("ngIf",n.label))},directives:[lt,Le,Q],styles:[".p-checkbox{display:inline-flex;cursor:pointer;-webkit-user-select:none;user-select:none;vertical-align:bottom;position:relative}.p-checkbox-disabled{cursor:default!important;pointer-events:none}.p-checkbox-box{display:flex;justify-content:center;align-items:center}p-checkbox{display:inline-flex;vertical-align:bottom;align-items:center}.p-checkbox-label{line-height:1}\n"],encapsulation:2,changeDetection:0}),t})(),S5=(()=>{class
t{}return t.\u0275fac=function(e){return
new(e||t)},t.\u0275mod=he({type:t}),t.\u0275inj=ue({imports:[[Fe]]}),t})();function Ku(
t,i=0){return function
D5(t){return!isNaN(parseFloat(t))&&!isNaN(Number(t))}(t)?Number(t):i}function
Uf(t,i,e,n){return Is(e)&&(n=e,e=void
0),n?Uf(t,i,e).pipe(et(s=>Nr(s)?n(...s):n(s))):new Je(s=>{uT(t,i,function
r(o){s.next(arguments.length>1?Array.prototype.slice.call(arguments):o)},s,e)})}function
uT(t,i,e,n,s){let r;if(function E5(t){return t&&"function"==typeof
t.addEventListener&&"function"==typeof t.removeEventListener}(t)){const
o=t;t.addEventListener(i,e,s),r=()=>o.removeEventListener(i,e,s)}else if(function
I5(t){return t&&"function"==typeof
t.on&&"function"==typeof t.off}(t)){const
o=t;t.on(i,e),r=()=>o.off(i,e)}else if(function k5(t){return
t&&"function"==typeof
t.addListener&&"function"==typeof t.removeListener}(t)){const
o=t;t.addListener(i,e),r=()=>o.removeListener(i,e)}else{if(!t||!t.length)throw new
TypeError("Invalid event target");for(let
o=0,u=t.length;o<u;o++)uT(t[o],i,e,n,s)}n.add(r)}const O5=new class L5 extends
Hi{flush(i){this.active=!0,this.scheduled=void 0
;const{actions:e}=this;let
n,s=-1,r=e.length;i=i||e.shift();do{if(n=i.execute(i.state,i.delay))break}while(++s<r&&(i=e.shift()));if(this.active=!1,n){for(;++s<r&&(i=e.shift());)i.unsubscribe();throw
n}}}(class R5 extends
uu{constructor(i,e){super(i,e),this.scheduler=i,this.work=e}requestAsyncId(i,e,n=0){return
null!==n&&n>0?super.requestAsyncId(i,e,n):(i.actions.push(this),i.scheduled||(i.scheduled=requestAnimationFrame(()=>i.flush(null))))}recycleAsyncId(i,e,n=0){if(null!==n&&n>0||null===n&&this.delay>0)return
super.recycleAsyncId(i,e,n);0===i.actions.length&&(cancelAnimationFrame(e),i.scheduled=void
0)}});let A5=1;const P5=Promise.resolve(),Qu={};function dT(t){return t in
Qu&&(delete Qu[t],!0)}const pT={setImmediate(t){const i=A5++;return
Qu[i]=!0,P5.then(()=>dT(i)&&t()),i},clearImmediate(t){dT(t)}},V5=new class N5
extends Hi{flush(i){this.active=!0,this.scheduled=void 0;const{actions:e}=this;let
n,s=-1,r=e.length;i=i||e.shift();do{if(n=i.execute(i.state,i.delay))break}while(++s<
r&&(i=e.shift()));if(this.active=!1,n){for(;++s<r&&(i=e.shift());)i.unsubscribe();throw
n}}}(class F5 extends
uu{constructor(i,e){super(i,e),this.scheduler=i,this.work=e}requestAsyncId(i,e,n=0){return
null!==n&&n>0?super.requestAsyncId(i,e,n):(i.actions.push(this),i.scheduled||(i.scheduled=pT.setImmediate(i.flush.bind(i,null))))}recycleAsyncId(i,e,n=0){if(null!==n&&n>0||null===n&&this.delay>0)return
super.recycleAsyncId(i,e,n);0===i.actions.length&&(pT.clearImmediate(e),i.scheduled=void
0)}});class H5{constructor(i,e){this.compare=i,this.keySelector=e}call(i,e){return
e.subscribe(new q5(i,this.compare,this.keySelector))}}class q5 extends
yt{constructor(i,e,n){super(i),this.keySelector=n,this.hasKey=!1,"function"==typeof
e&&(this.compare=e)}compare(i,e){return i===e}_next(i){let
e;try{const{keySelector:s}=this;e=s?s(i):i}catch(s){return this.destination.error(s)}let
n=!1;if(this.hasKey)try{const{compare:s}=this;n=s(this.key,e)}catch(s){return
this.destination.error(s)}else this.hasKe
y=!0;n||(this.key=e,this.destination.next(i))}}const zf=new Hi(uu);class
U5{constructor(i){this.durationSelector=i}call(i,e){return e.subscribe(new
z5(i,this.durationSelector))}}class z5 extends
Zo{constructor(i,e){super(i),this.durationSelector=e,this.hasValue=!1}_next(i){if(this.value=i,this.hasValue=!0,!this.throttled){let
e;try{const{durationSelector:s}=this;e=s(i)}catch(s){return
this.destination.error(s)}const n=Xo(e,new
Yo(this));!n||n.closed?this.clearThrottle():this.add(this.throttled=n)}}clearThrottle(){const{value:i,hasValue:e,throttled:n}=this;n&&(this.remove(n),this.throttled=void
0,n.unsubscribe()),e&&(this.value=void
0,this.hasValue=!1,this.destination.next(i))}notifyNext(){this.clearThrottle()}notifyComplete(){this.clearThrottle()}}function
hT(t){return!Nr(t)&&t-parseFloat(t)+1>=0}function
$5(t){const{index:i,period:e,subscriber:n}=t;if(n.next(i),!n.closed){if(-1===e)return
n.complete();t.index=i+1,this.schedule(t,e)}}function jf(t,i=zf){return function
G5(t){return
function(e){return e.lift(new U5(t))}}(()=>function j5(t=0,i,e){let n=-1;return
hT(i)?n=Number(i)<1?1:Number(i):Vr(i)&&(e=i),Vr(e)||(e=zf),new Je(s=>{const
r=hT(t)?t:+t-e.now();return
e.schedule($5,r,{index:0,period:n,subscriber:s})})}(t,i))}function $f(t){return
i=>i.lift(new W5(t))}class W5{constructor(i){this.notifier=i}call(i,e){const n=new
K5(i),s=Xo(this.notifier,new Yo(n));return
s&&!n.seenValue?(n.add(s),e.subscribe(n)):n}}class K5 extends
Zo{constructor(i){super(i),this.seenValue=!1}notifyNext(){this.seenValue=!0,this.complete()}notifyComplete(){}}function
Ju(...t){const i=t[t.length-1];return Vr(i)?(t.pop(),e=>el(t,e,i)):e=>el(t,e)}class
J5{call(i,e){return e.subscribe(new Y5(i))}}class Y5 extends
yt{constructor(i){super(i),this.hasPrev=!1}_next(i){let
e;this.hasPrev?e=[this.prev,i]:this.hasPrev=!0,this.prev=i,e&&this.destination.next(e)}}let
Wf;try{Wf="undefined"!=typeof
Intl&&Intl.v8BreakIterator}catch(t){Wf=!1}let Yu,Dr,mT=(()=>{class
t{constructor(e){this._platformId=e
,this.isBrowser=this._platformId?function E4(t){return
t===ky}(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),this.BLINK=this.isBrowser&&!(!window.chrome&&!Wf)&&"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)(K(qc))},t.\u0275prov=X({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();function
bl(){if("object"!=typeof document||!document)return 0;if(null==Yu)
{const
t=document.createElement("div"),i=t.style;t.dir="rtl",i.width="1px",i.overflow="auto",i.visibility="hidden",i.pointerEvents="none",i.position="absolute";const
e=document.createElement("div"),n=e.style;n.width="2px",n.height="1px",t.appendChild(e),document.body.appendChild(t),Yu=0,0===t.scrollLeft&&(t.scrollLeft=1,Yu=0===t.scrollLeft?1:2),t.remove()}return
Yu}const tV=new be("cdk-dir-doc",{providedIn:"root",factory:function
nV(){return
O_(Xt)}}),iV=/^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)/i;let
gT=(()=>{class t{constructor(e){if(this.value="ltr",this.change=new
H,e){const s=e.documentElement?e.documentElement.dir:null;this.value=function sV(t){const
i=(null==t?void
0:t.toLowerCase())||"";return"auto"===i&&"undefined"!=typeof
navigator&&(null==navigator?void
0:navigator.language)?iV.test(navigator.language)?"rtl":"ltr":"rtl"===i?"rtl":"ltr"}((e.body?e.body.dir:null)||s||"ltr")}}ngOnDestroy(){this.change.c
omplete()}}return t.\u0275fac=function(e){return
new(e||t)(K(tV,8))},t.\u0275prov=X({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),_T=(()=>{class
t{}return t.\u0275fac=function(e){return
new(e||t)},t.\u0275mod=he({type:t}),t.\u0275inj=ue({}),t})();class aV extends class
rV{}{constructor(i){super(),this._data=i}connect(){return
is(this._data)?this._data:oe(this._data)}disconnect(){}}class
lV{constructor(){this.viewCacheSize=20,this._viewCache=[]}applyChanges(i,e,n,s,r){i.forEachOperation((o,u,h)=>{let
b,y;null==o.previousIndex?(b=this._insertView(()=>n(o,u,h),h,e,s(o)),y=b?1:0):null==h?(this._detachAndCacheView(u,e),y=3):(b=this._moveView(u,h,e,s(o)),y=2),r&&r({context:null==b?void
0:b.context,operation:y,record:o})})}detach(){for(const i of
this._viewCache)i.destroy();this._viewCache=[]}_insertView(i,e,n,s){const
r=this._insertViewFromCache(e,n);if(r)return void(r.context.$implicit=s);const
o=i();return n.createEmbeddedView(o.templateRef,o.context,o.index)}_detachAndCacheVie
w(i,e){const n=e.detach(i);this._maybeCacheView(n,e)}_moveView(i,e,n,s){const
r=n.get(i);return
n.move(r,e),r.context.$implicit=s,r}_maybeCacheView(i,e){if(this._viewCache.length<this.viewCacheSize)this._viewCache.push(i);else{const
n=e.indexOf(i);-1===n?i.destroy():e.remove(n)}}_insertViewFromCache(i,e){const
n=this._viewCache.pop();return n&&e.insert(n,i),n||null}}const bT=new
be("_ViewRepeater"),cV=["contentWrapper"],uV=["*"],vT=new
be("VIRTUAL_SCROLL_STRATEGY");class
dV{constructor(i,e,n){this._scrolledIndexChange=new
ct,this.scrolledIndexChange=this._scrolledIndexChange.pipe(function B5(t,i){return
e=>e.lift(new
H5(t,i))}()),this._viewport=null,this._itemSize=i,this._minBufferPx=e,this._maxBufferPx=n}attach(i){this._viewport=i,this._updateTotalContentSize(),this._updateRenderedRange()}detach(){this._scrolledIndexChange.complete(),this._viewport=null}updateItemAndBufferSize(i,e,n){this._itemSize=i,this._minBufferPx=e,this._maxBufferPx=n,this._updateTotalContentSize(),this._updat
eRenderedRange()}onContentScrolled(){this._updateRenderedRange()}onDataLengthChanged(){this._updateTotalContentSize(),this._updateRenderedRange()}onContentRendered(){}onRenderedOffsetChanged(){}scrollToIndex(i,e){this._viewport&&this._viewport.scrollToOffset(i*this._itemSize,e)}_updateTotalContentSize(){!this._viewport||this._viewport.setTotalContentSize(this._viewport.getDataLength()*this._itemSize)}_updateRenderedRange(){if(!this._viewport)return;const
i=this._viewport.getRenderedRange(),e={start:i.start,end:i.end},n=this._viewport.getViewportSize(),s=this._viewport.getDataLength();let
r=this._viewport.measureScrollOffset(),o=this._itemSize>0?r/this._itemSize:0;if(e.end>s){const
h=Math.ceil(n/this._itemSize),b=Math.max(0,Math.min(o,s-h));o!=b&&(o=b,r=b*this._itemSize,e.start=Math.floor(o)),e.end=Math.max(0,Math.min(s,e.start+h))}const
u=r-e.start*this._itemSize;if(u<this._minBufferPx&&0!=e.start){const
h=Math.ceil((this._maxBufferPx-u)/this._itemSize);e.start=Math.max(0,e.start-h)
,e.end=Math.min(s,Math.ceil(o+(n+this._minBufferPx)/this._itemSize))}else{const
h=e.end*this._itemSize-(r+n);if(h<this._minBufferPx&&e.end!=s){const
b=Math.ceil((this._maxBufferPx-h)/this._itemSize);b>0&&(e.end=Math.min(s,e.end+b),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
pV(t){return t._scrollStrategy}let Qf=(()=>{class
t{constructor(){this._itemSize=20,this._minBufferPx=100,this._maxBufferPx=200,this._scrollStrategy=new
dV(this.itemSize,this.minBufferPx,this.maxBufferPx)}get itemSize(){return
this._itemSize}set itemSize(e){this._itemSize=Ku(e)}get minBufferPx(){return
this._minBufferPx}set minBufferPx(e){this._minBufferPx=Ku(e)}get maxBufferPx(){return
this._maxBufferPx}set
maxBufferPx(e){this._maxBufferPx=Ku(e)}ngOnChanges(){this._scrollStrategy.updateItemAndBufferSize(this.itemSize,this.minBufferPx,t
his.maxBufferPx)}}return t.\u0275fac=function(e){return
new(e||t)},t.\u0275dir=le({type:t,selectors:[["cdk-virtual-scroll-viewport","itemSize",""]],inputs:{itemSize:"itemSize",minBufferPx:"minBufferPx",maxBufferPx:"maxBufferPx"},features:[Pe([{provide:vT,useFactory:pV,deps:[je(()=>t)]}]),fn]}),t})(),CT=(()=>{class
t{constructor(e,n,s){this._ngZone=e,this._platform=n,this._scrolled=new
ct,this._globalSubscription=null,this._scrolledCount=0,this.scrollContainers=new
Map,this._document=s}register(e){this.scrollContainers.has(e)||this.scrollContainers.set(e,e.elementScrolled().subscribe(()=>this._scrolled.next(e)))}deregister(e){const
n=this.scrollContainers.get(e);n&&(n.unsubscribe(),this.scrollContainers.delete(e))}scrolled(e=20){return
this._platform.isBrowser?new
Je(n=>{this._globalSubscription||this._addGlobalListener();const
s=e>0?this._scrolled.pipe(jf(e)).subscribe(n):this._scrolled.subscribe(n);return
this._scrolledCount++,()=>{s.unsubscribe(),this._scrolledCount--,this._scroll
edCount||this._removeGlobalListener()}}):oe()}ngOnDestroy(){this._removeGlobalListener(),this.scrollContainers.forEach((e,n)=>this.deregister(n)),this._scrolled.complete()}ancestorScrolled(e,n){const
s=this.getAncestorScrollContainers(e);return
this.scrolled(n).pipe(Us(r=>!r||s.indexOf(r)>-1))}getAncestorScrollContainers(e){const
n=[];return
this.scrollContainers.forEach((s,r)=>{this._scrollableContainsElement(r,e)&&n.push(r)}),n}_getWindow(){return
this._document.defaultView||window}_scrollableContainsElement(e,n){let s=function
M5(t){return t instanceof
De?t.nativeElement:t}(n),r=e.getElementRef().nativeElement;do{if(s==r)return!0}while(s=s.parentElement);return!1}_addGlobalListener(){this._globalSubscription=this._ngZone.runOutsideAngular(()=>Uf(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)(K(nt),K(mT),K(Xt,8))},t.\u0275prov=X({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),yT=(()=>{class
t{constructor(e,n,s,r){this.elementRef=e,this.scrollDispatcher=n,this.ngZone=s,this.dir=r,this._destroyed=new
ct,this._elementScrolled=new
Je(o=>this.ngZone.runOutsideAngular(()=>Uf(this.elementRef.nativeElement,"scroll").pipe($f(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
n=this.elementRef.nativeElement,s=this.dir&&"rtl"==this.dir.value;null==e.left&&(e.left=s?e.end:e.start),null==e.right&&(e.right=s?e.start:e.end),null!=e.bottom&&(e.top=n.scrollHeight-n.clientHeight-e.bottom),s&&0!=bl()?(null!=e.left&&(e.right=n.scrollWidth-n.clientWidth-e.left),2==bl()?e.left=e.right:1==bl()&&(e.left=e.right?-e.right:e.right)):null!=e.right&&(e.
left=n.scrollWidth-n.clientWidth-e.right),this._applyScrollToOptions(e)}_applyScrollToOptions(e){const
n=this.elementRef.nativeElement;!function X5(){if(null==Dr){if("object"!=typeof
document||!document||"function"!=typeof Element||!Element)return
Dr=!1,Dr;if("scrollBehavior"in document.documentElement.style)Dr=!0;else{const
t=Element.prototype.scrollTo;Dr=!!t&&!/\{\s*\[native
code\]\s*\}/.test(t.toString())}}return
Dr}()?(null!=e.top&&(n.scrollTop=e.top),null!=e.left&&(n.scrollLeft=e.left)):n.scrollTo(e)}measureScrollOffset(e){const
n="left",s="right",r=this.elementRef.nativeElement;if("top"==e)return
r.scrollTop;if("bottom"==e)return
r.scrollHeight-r.clientHeight-r.scrollTop;const
o=this.dir&&"rtl"==this.dir.value;return"start"==e?e=o?s:n:"end"==e&&(e=o?n:s),o&&2==bl()?e==n?r.scrollWidth-r.clientWidth-r.scrollLeft:r.scrollLeft:o&&1==bl()?e==n?r.scrollLeft+r.scrollWidth-r.clientWidth:-r.scrollLeft:e==n?r.scrollLeft:r.scrollWidth-r.clientWidth-r.scrollLeft}}return
t.\u0275fac=functi
on(e){return
new(e||t)(D(De),D(CT),D(nt),D(gT,8))},t.\u0275dir=le({type:t,selectors:[["","cdk-scrollable",""],["","cdkScrollable",""]]}),t})(),fV=(()=>{class
t{constructor(e,n,s){this._platform=e,this._change=new
ct,this._changeListener=r=>{this._change.next(r)},this._document=s,n.runOutsideAngular(()=>{if(e.isBrowser){const
r=this._getWindow();r.addEventListener("resize",this._changeListener),r.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:n,height
:s}=this.getViewportSize();return{top:e.top,left:e.left,bottom:e.top+s,right:e.left+n,height:s,width:n}}getViewportScrollPosition(){if(!this._platform.isBrowser)return{top:0,left:0};const
e=this._document,n=this._getWindow(),s=e.documentElement,r=s.getBoundingClientRect();return{top:-r.top||e.body.scrollTop||n.scrollY||s.scrollTop||0,left:-r.left||e.body.scrollLeft||n.scrollX||s.scrollLeft||0}}change(e=20){return
e>0?this._change.pipe(jf(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)(K(mT),K(nt),K(Xt,8))},t.\u0275prov=X({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();const
_V="undefined"!=typeof requestAnimationFrame?O5:V5;let Po=(()=>{class t
extends
yT{constructor(e,n,s,r,o,u,h){super(e,u,s,o),this.elementRef=e,this._changeDetectorRef=n,this._scrollSt
rategy=r,this._detachedSubject=new ct,this._renderedRangeSubject=new
ct,this._orientation="vertical",this._appendOnly=!1,this.scrolledIndexChange=new
Je(b=>this._scrollStrategy.scrolledIndexChange.subscribe(y=>Promise.resolve().then(()=>this.ngZone.run(()=>b.next(y))))),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=Et.EMPTY,this._viewportChanges=h.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
x5(t){return null!=t&&"false"!=`${t}`}(e)}ngOnInit()
{super.ngOnInit(),this.ngZone.runOutsideAngular(()=>Promise.resolve().then(()=>{this._measureViewportSize(),this._scrollStrategy.attach(this),this.elementScrolled().pipe(Ju(null),jf(0,_V)).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($f(this._detachedSubject)).subscribe(n=>{const
s=n.length;s!==this._dataLength&&(this._dataLength=s,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._c
alculateSpacerSize(),this._markChangeDetectionNeeded())}setRenderedRange(e){(function
gV(t,i){return
t.start==i.start&&t.end==i.end})(this._renderedRange,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,n="to-start"){const
r="horizontal"==this.orientation,o=r?"X":"Y";let
h=`translate${o}(${Number((r&&this.dir&&"rtl"==this.dir.value?-1:1)*e)}px)`;this._renderedContentOffset=e=this.appendOnly&&"to-start"===n?0:e,"to-end"===n&&(h+=`
translate${o}(-100%)`,this._renderedContentOffsetNeedsRewrite=!0),this._renderedContentTransform!=h&&(this._renderedContentTransform=h,this._markChangeDetectionNeeded(()=>{this._renderedContentOffsetNeedsRewrite?(this._renderedContentOffset-=this.measureRen
deredContentSize(),this._renderedContentOffsetNeedsRewrite=!1,this.setRenderedContentOffset(this._renderedContentOffset)):this._scrollStrategy.onRenderedOffsetChanged()}))}scrollToOffset(e,n="auto"){const
s={behavior:n};"horizontal"===this.orientation?s.start=e:s.top=e,this.scrollTo(s)}scrollToIndex(e,n="auto"){this._scrollStrategy.scrollToIndex(e,n)}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 n of
e)n()}_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)(D(De),D(rt),D(nt),D(vT,8),D(gT,8),D(CT),D(fV))},t.\u0275cmp=z({type:t,selectors:[["cdk-virtual-scroll-viewport"]],viewQuery:function(e,n){if(1&e&&W(cV,7),2&e){let
s;V(s=B())&&(n._contentWrapper=s.first)}},hostAttrs:[1,"cdk-virtual-scroll-viewport"],hostVars:4,hostBindings:function(e,n){2&e&&si("cdk-vi
rtual-scroll-orientation-horizontal","horizontal"===n.orientation)("cdk-virtual-scroll-orientation-vertical","horizontal"!==n.orientation)},inputs:{orientation:"orientation",appendOnly:"appendOnly"},outputs:{scrolledIndexChange:"scrolledIndexChange"},features:[Pe([{provide:yT,useExisting:t}]),ut],ngContentSelectors:uV,decls:4,vars:4,consts:[[1,"cdk-virtual-scroll-content-wrapper"],["contentWrapper",""],[1,"cdk-virtual-scroll-spacer"]],template:function(e,n){1&e&&(Sn(),l(0,"div",0,1),St(2),c(),k(3,"div",2)),2&e&&(a(3),_i("width",n._totalContentWidth)("height",n._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-wrappe
r{min-height:100%}.cdk-virtual-scroll-orientation-horizontal
.cdk-virtual-scroll-content-wrapper>dl:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-horizontal
.cdk-virtual-scroll-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-virtua
l-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-scroll-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
wT(t,i,e){if(!e.getBoundingClientRect)return 0;const
s=e.getBoundingClientRect();return"horizontal"===t?"start"===i?s.left:s.right:"start"===i?s.top:s.bottom}let
Jf=(()=>{class
t{constructor(e,n,s,r,o,u){this._viewContainerRef=e,this._template=n,this._differs=s,this._viewRepeater=r,this._viewport=o,this.viewChange=new
ct,this._dataSourceChanges=new
ct,this.dataStream=this._dataSourceChanges.pipe(Ju(null),function Q5(){return
t=>t.lift(new
J5)}(),qi(([h,b])=>this._changeDataSource(h,b)),Um(1)),this._differ=null,this._needsUpdate=!1,this._destroyed=new
ct,this.dataStream.subscribe(h=>{this._dat
a=h,this._onRenderedDataChange()}),this._viewport.renderedRangeStream.pipe($f(this._destroyed)).subscribe(h=>{this._renderedRange=h,this.viewChange.observers.length&&u.run(()=>this.viewChange.next(this._renderedRange)),this._onRenderedDataChange()}),this._viewport.attach(this)}get
cdkVirtualForOf(){return this._cdkVirtualForOf}set
cdkVirtualForOf(e){this._cdkVirtualForOf=e,function oV(t){return
t&&"function"==typeof
t.connect}(e)?this._dataSourceChanges.next(e):this._dataSourceChanges.next(new
aV(is(e)?e:Array.from(e||[])))}get cdkVirtualForTrackBy(){return
this._cdkVirtualForTrackBy}set
cdkVirtualForTrackBy(e){this._needsUpdate=!0,this._cdkVirtualForTrackBy=e?(n,s)=>e(n+(this._renderedRange?this._renderedRange.start:0),s):void
0}set cdkVirtualForTemplate(e){e&&(this._needsUpdate=!0,this._template=e)}get
cdkVirtualForTemplateCacheSize(){return this._viewRepeater.viewCacheSize}set
cdkVirtualForTemplateCacheSize(e){this._viewRepeater.viewCacheSize=Ku(e)}measureRangeSize(e,n){if(e.star
t>=e.end)return 0;const s=e.start-this._renderedRange.start,r=e.end-e.start;let
o,u;for(let h=0;h<r;h++){const
b=this._viewContainerRef.get(h+s);if(b&&b.rootNodes.length){o=u=b.rootNodes[0];break}}for(let
h=r-1;h>-1;h--){const
b=this._viewContainerRef.get(h+s);if(b&&b.rootNodes.length){u=b.rootNodes[b.rootNodes.length-1];break}}return
o&&u?wT(n,"end",u)-wT(n,"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.complete(),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,n)=>this.cdkVirtualForTrackBy?th
is.cdkVirtualForTrackBy(e,n):n)),this._needsUpdate=!0)}_changeDataSource(e,n){return
e&&e.disconnect(this),this._needsUpdate=!0,n?n.connect(this):oe()}_updateContext(){const
e=this._data.length;let n=this._viewContainerRef.length;for(;n--;){const
s=this._viewContainerRef.get(n);s.context.index=this._renderedRange.start+n,s.context.count=e,this._updateComputedContextProperties(s.context),s.detectChanges()}}_applyChanges(e){this._viewRepeater.applyChanges(e,this._viewContainerRef,(r,o,u)=>this._getEmbeddedViewArgs(r,u),r=>r.item),e.forEachIdentityChange(r=>{this._viewContainerRef.get(r.currentIndex).context.$implicit=r.item});const
n=this._data.length;let s=this._viewContainerRef.length;for(;s--;){const
r=this._viewContainerRef.get(s);r.context.index=this._renderedRange.start+s,r.context.count=n,this._updateComputedContextProperties(r.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,n)
{return{templateRef:this._template,context:{$implicit:e.item,cdkVirtualForOf:this._cdkVirtualForOf,index:-1,count:-1,first:!1,last:!1,odd:!1,even:!1},index:n}}}return
t.\u0275fac=function(e){return
new(e||t)(D(vi),D(bi),D($a),D(bT),D(Po,4),D(nt))},t.\u0275dir=le({type:t,selectors:[["","cdkVirtualFor","","cdkVirtualForOf",""]],inputs:{cdkVirtualForOf:"cdkVirtualForOf",cdkVirtualForTrackBy:"cdkVirtualForTrackBy",cdkVirtualForTemplate:"cdkVirtualForTemplate",cdkVirtualForTemplateCacheSize:"cdkVirtualForTemplateCacheSize"},features:[Pe([{provide:bT,useClass:lV}])]}),t})(),TT=(()=>{class
t{}return t.\u0275fac=function(e){return
new(e||t)},t.\u0275mod=he({type:t}),t.\u0275inj=ue({}),t})(),Fo=(()=>{class t{}return
t.\u0275fac=function(e){return
new(e||t)},t.\u0275mod=he({type:t}),t.\u0275inj=ue({imports:[[_T,TT],_T,TT]}),t})(),Kt=(()=>{class
t{constructor(e,n,s){this.el=e,this.zone=n,this.config=s,this.escape=!0,this._tooltipOptions={tooltipPosition:"right",tooltipEvent:"hover",appendTo:"b
ody",tooltipZIndex:"auto",escape:!0,positionTop:0,positionLeft:0}}get
disabled(){return this._disabled}set
disabled(e){this._disabled=e,this.deactivate()}ngAfterViewInit(){this.zone.runOutsideAngular(()=>{if("hover"===this.getOption("tooltipEvent"))this.mouseEnterListener=this.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);else
if("focus"===this.getOption("tooltipEvent")){this.focusListener=this.onFocus.bind(this),this.blurListener=this.onBlur.bind(this);let
e=this.getTarget(this.el.nativeElement);e.addEventListener("focus",this.focusListener),e.addEventListener("blur",this.blurListener)}})}ngOnChanges(e){e.tooltipPosition&&this.setOption({tooltipPosition:e.tooltipPosition.currentValue}),e.tool
tipEvent&&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.align()):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.createElement("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")?R.appendChild(this.container,this.el.nativeElement):R.appendChild(this.container,this.getOption("appendTo")),this.container.style.display="inline-block"}show(){!this.getOption("tooltipLabel")||this.getOption("disabled")||(this.create(),this.align(),R.fadeIn(this.container,250),"auto"===this.getOption("tooltipZIndex")?dt.set("tooltip",this.container,this.config.zIndex.tool
tip):this.container.style.zIndex=this.getOption("tooltipZIndex"),this.bindDocumentResizeListener(),this.bindScrollListener())}hide(){"auto"===this.getOption("tooltipZIndex")&&dt.clear(this.container),this.remove()}updateText(){this.getOption("escape")?(this.tooltipText.innerHTML="",this.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.isOutOfBound
s()&&(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+R.getWindowScrollLeft(),top:e.top+R.getWindowScrollTop()}}return{left:0,top:0}}alignRight(){this.preAlign("right");let
e=this.getHostOffset(),n=e.left+R.getOuterWidth(this.el.nativeElement),s=e.top+(R.getOuterHeight(this.el.nativeElement)-R.getOuterHeight(this.container))/2;this.container.style.left=n+this.getOption("positionLeft")+"px",this.container.style.top=s+this.getOption("positionTop")+"px"}alignLeft(){this.preAlign("left");let
e=this.getHostOffset(),n=e.left-R.getOuterWidth(this.container),s=e.top+(R.getOuterHeight(this.el.nativeElement)-R.getOuterHeight(this.container))/2;this.container.style.left=n+this.getOption("positionLeft")+"px",this.container.style.top=s+this.getOption("positionTop")+"px"}alignTop(){
this.preAlign("top");let
e=this.getHostOffset(),n=e.left+(R.getOuterWidth(this.el.nativeElement)-R.getOuterWidth(this.container))/2,s=e.top-R.getOuterHeight(this.container);this.container.style.left=n+this.getOption("positionLeft")+"px",this.container.style.top=s+this.getOption("positionTop")+"px"}alignBottom(){this.preAlign("bottom");let
e=this.getHostOffset(),n=e.left+(R.getOuterWidth(this.el.nativeElement)-R.getOuterWidth(this.container))/2,s=e.top+R.getOuterHeight(this.el.nativeElement);this.container.style.left=n+this.getOption("positionLeft")+"px",this.container.style.top=s+this.getOption("positionTop")+"px"}setOption(e){this._tooltipOptions=Object.assign(Object.assign({},this._tooltipOptions),e)}getOption(e){return
this._tooltipOptions[e]}getTarget(e){return
R.hasClass(e,"p-inputwrapper")?R.findSingle(e,"input"):e}preAlign(e){this.container.style.left="-999px",this.container.style.top="-999px";let
n="p-tooltip p-component p-tooltip-"+e;this.container.className=this.getOption(
"tooltipStyleClass")?n+"
"+this.getOption("tooltipStyleClass"):n}isOutOfBounds(){let
e=this.container.getBoundingClientRect(),n=e.top,s=e.left,r=R.getOuterWidth(this.container),o=R.getOuterHeight(this.container),u=R.getViewport();return
s+r>u.width||s<0||n<0||n+o>u.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
Qs(this.el.nativeElement,()=>{this.container&&this.hide()})),this.scrollHandler.bindScrollListener()}unbindScrollListener(){this.scrollHandler&&this.scrollHandler.unbindScrollListener()}unbindEvents(){if("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);else
if("focus"===this.getOption("tooltipEvent")){let
e=this.getTarget(this.el.nativeElement);e.removeEventListener("focus",this.focusListener),e.removeEventListener("blur",this.blurListener)}this.unbindDocumentResizeListener()}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):R.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.clea
rShowTimeout(),this.clearHideTimeout()}ngOnDestroy(){this.unbindEvents(),this.container&&dt.clear(this.container),this.remove(),this.scrollHandler&&(this.scrollHandler.destroy(),this.scrollHandler=null)}}return
t.\u0275fac=function(e){return
new(e||t)(D(De),D(nt),D(zn))},t.\u0275dir=le({type:t,selectors:[["","pTooltip",""]],hostAttrs:[1,"p-element"],inputs:{tooltipPosition:"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:[fn]}),t})(),jn=(()=>{class
t{}return t.\u0275fac=function(e){return
new(e||t)},t.\u0275mod=he({type:t}),t.\u0275inj=ue({imports:[[Fe]]}),t})();function
bV(t,i){if(1&t&&(l(0,"span"),g(1),c()),2&t){const
e=d();a(1),S(e.label|
|"empty")}}function vV(t,i){1&t&&Y(0)}const
ST=function(t){return{height:t}},CV=function(t,i){return{"p-dropdown-item":!0,"p-highlight":t,"p-disabled":i}},Yf=function(t){return{$implicit:t}},yV=["container"],wV=["filter"],TV=["in"],SV=["editableInput"];function
xV(t,i){if(1&t&&(de(0),g(1),pe()),2&t){const
e=d(2);a(1),S(e.label||"empty")}}function DV(t,i){1&t&&Y(0)}const
MV=function(t){return{"p-dropdown-label
p-inputtext":!0,"p-dropdown-label-empty":t}};function
kV(t,i){if(1&t&&(l(0,"span",12),_(1,xV,2,1,"ng-container",13),_(2,DV,1,0,"ng-container",14),c()),2&t){const
e=d();p("ngClass",U(9,MV,null==e.label||0===e.label.length))("pTooltip",e.tooltip)("tooltipPosition",e.tooltipPosition)("positionStyle",e.tooltipPositionStyle)("tooltipStyleClass",e.tooltipStyleClass),ie("id",e.labelId),a(1),p("ngIf",!e.selectedItemTemplate),a(1),p("ngTemplateOutlet",e.selectedItemTemplate)("ngTemplateOutletContext",U(11,Yf,e.selectedOption))}}const
IV=function(t){return{"p-dropdown-label p-inputtext p
-placeholder":!0,"p-dropdown-label-empty":t}};function
EV(t,i){if(1&t&&(l(0,"span",15),g(1),c()),2&t){const
e=d();p("ngClass",U(2,IV,null==e.placeholder||0===e.placeholder.length)),a(1),S(e.placeholder||"empty")}}function
RV(t,i){if(1&t){const
e=I();l(0,"input",16,17),C("click",function(){return
v(e),d().onEditableInputClick()})("input",function(s){return
v(e),d().onEditableInputChange(s)})("focus",function(s){return
v(e),d().onEditableInputFocus(s)})("blur",function(s){return
v(e),d().onInputBlur(s)}),c()}if(2&t){const
e=d();p("disabled",e.disabled),ie("maxlength",e.maxlength)("placeholder",e.placeholder)("aria-expanded",e.overlayVisible)}}function
LV(t,i){if(1&t){const
e=I();l(0,"i",18),C("click",function(s){return
v(e),d().clear(s)}),c()}}function OV(t,i){1&t&&Y(0)}function
AV(t,i){if(1&t){const
e=I();l(0,"div",26)(1,"div",27),C("click",function(s){return
s.stopPropagation()}),l(2,"input",28,29),C("keydown.enter",function(s){return
s.preventDefault()})("keydown",function(s){retur
n v(e),d(2).onKeydown(s,!1)})("input",function(s){return
v(e),d(2).onFilterInputChange(s)}),c(),k(4,"span",30),c()()}if(2&t){const
e=d(2);a(2),p("value",e.filterValue||""),ie("placeholder",e.filterPlaceholder)("aria-label",e.ariaFilterLabel)("aria-activedescendant",e.overlayVisible?"p-highlighted-option":e.labelId)}}function
PV(t,i){if(1&t&&(l(0,"span"),g(1),c()),2&t){const
e=d().$implicit,n=d(3);a(1),S(n.getOptionGroupLabel(e)||"empty")}}function
FV(t,i){1&t&&Y(0)}function NV(t,i){1&t&&Y(0)}const
xT=function(t,i){return{$implicit:t,selectedOption:i}};function
VV(t,i){if(1&t&&(l(0,"li",32),_(1,PV,2,1,"span",13),_(2,FV,1,0,"ng-container",14),c(),_(3,NV,1,0,"ng-container",14)),2&t){const
e=i.$implicit;d(2);const
n=F(8),s=d();a(1),p("ngIf",!s.groupTemplate),a(1),p("ngTemplateOutlet",s.groupTemplate)("ngTemplateOutletContext",U(5,Yf,e)),a(1),p("ngTemplateOutlet",n)("ngTemplateOutletContext",Ge(7,xT,s.getOptionGroupChildren(e),s.selectedOption))}}function
BV(t,i){if(1&t&&(de(0),_(1,VV,4,
10,"ng-template",31),pe()),2&t){const
e=d(2);a(1),p("ngForOf",e.optionsToDisplay)}}function
HV(t,i){1&t&&Y(0)}function
qV(t,i){if(1&t&&(de(0),_(1,HV,1,0,"ng-container",14),pe()),2&t){d();const
e=F(8),n=d();a(1),p("ngTemplateOutlet",e)("ngTemplateOutletContext",Ge(2,xT,n.optionsToDisplay,n.selectedOption))}}function
GV(t,i){if(1&t){const
e=I();l(0,"p-dropdownItem",35),C("onClick",function(s){return
v(e),d(4).onItemClick(s)}),c()}if(2&t){const
e=i.$implicit,n=d(2).selectedOption,s=d(2);p("option",e)("selected",n==e)("label",s.getOptionLabel(e))("disabled",s.isOptionDisabled(e))("template",s.itemTemplate)}}function
UV(t,i){if(1&t&&(de(0),_(1,GV,1,5,"ng-template",31),pe()),2&t){const
e=d().$implicit;a(1),p("ngForOf",e)}}function zV(t,i){if(1&t){const
e=I();de(0),l(1,"p-dropdownItem",35),C("onClick",function(s){return
v(e),d(5).onItemClick(s)}),c(),pe()}if(2&t){const
e=i.$implicit,n=d(3).selectedOption,s=d(2);a(1),p("option",e)("selected",n==e)("label",s.getOptionLabel(e))("disabled",s.i
sOptionDisabled(e))("template",s.itemTemplate)}}function
jV(t,i){if(1&t){const
e=I();l(0,"cdk-virtual-scroll-viewport",37,38),C("scrolledIndexChange",function(){return
v(e),d(4).scrollToSelectedVirtualScrollElement()}),_(2,zV,2,5,"ng-container",39),c()}if(2&t){const
e=d(2).$implicit,n=d(2);p("ngStyle",U(3,ST,n.scrollHeight))("itemSize",n.itemSize),a(2),p("cdkVirtualForOf",e)}}function
$V(t,i){if(1&t&&_(0,jV,3,5,"cdk-virtual-scroll-viewport",36),2&t){const
e=d(3);p("ngIf",e.virtualScroll&&e.optionsToDisplay&&e.optionsToDisplay.length)}}function
WV(t,i){if(1&t&&(_(0,UV,2,1,"ng-container",33),_(1,$V,1,1,"ng-template",null,34,we)),2&t){const
e=F(2);p("ngIf",!d(2).virtualScroll)("ngIfElse",e)}}function
KV(t,i){if(1&t&&(de(0),g(1),pe()),2&t){const e=d(3);a(1),T("
",e.emptyFilterMessageLabel," ")}}function
QV(t,i){1&t&&Y(0,null,41)}function
JV(t,i){if(1&t&&(l(0,"li",40),_(1,KV,2,1,"ng-container",33),_(2,QV,2,0,"ng-container",20),c()),2&t){const
e=d(2);a(1),p("ngIf",!e.emptyFilterTemplate&&
!e.emptyTemplate)("ngIfElse",e.emptyFilter),a(1),p("ngTemplateOutlet",e.emptyFilterTemplate||e.emptyTemplate)}}function
YV(t,i){if(1&t&&(de(0),g(1),pe()),2&t){const e=d(3);a(1),T("
",e.emptyMessageLabel," ")}}function
ZV(t,i){1&t&&Y(0,null,42)}function
XV(t,i){if(1&t&&(l(0,"li",40),_(1,YV,2,1,"ng-container",33),_(2,ZV,2,0,"ng-container",20),c()),2&t){const
e=d(2);a(1),p("ngIf",!e.emptyTemplate)("ngIfElse",e.empty),a(1),p("ngTemplateOutlet",e.emptyTemplate)}}function
e6(t,i){1&t&&Y(0)}const
t6=function(t,i){return{showTransitionParams:t,hideTransitionParams:i}},n6=function(t){return{value:"visible",params:t}},i6=function(t){return{"p-dropdown-virtualscroll":t}};function
s6(t,i){if(1&t){const
e=I();l(0,"div",19),C("click",function(s){return
v(e),d().onOverlayClick(s)})("(a)overlayAnimation.start",function(s){return
v(e),d().onOverlayAnimationStart(s)})("(a)overlayAnimation.start",function(s){return
v(e),d().onOverlayAnimationEnd(s)}),_(1,OV,1,0,"ng-container",20),_(2,AV,5,4,"div",21),l(3,
"div",22)(4,"ul",23),_(5,BV,2,1,"ng-container",13),_(6,qV,2,5,"ng-container",13),_(7,WV,3,2,"ng-template",null,24,we),_(9,JV,3,3,"li",25),_(10,XV,3,3,"li",25),c()(),_(11,e6,1,0,"ng-container",20),c()}if(2&t){const
e=d();me(e.panelStyleClass),p("ngClass","p-dropdown-panel
p-component")("@overlayAnimation",U(19,n6,Ge(16,t6,e.showTransitionOptions,e.hideTransitionOptions)))("ngStyle",e.panelStyle),a(1),p("ngTemplateOutlet",e.headerTemplate),a(1),p("ngIf",e.filter),a(1),_i("max-height",e.virtualScroll?"auto":e.scrollHeight||"auto"),a(1),p("ngClass",U(21,i6,e.virtualScroll)),ie("id",e.listId),a(1),p("ngIf",e.group),a(1),p("ngIf",!e.group),a(3),p("ngIf",e.filterValue&&e.isEmpty()),a(1),p("ngIf",!e.filterValue&&e.isEmpty()),a(1),p("ngTemplateOutlet",e.footerTemplate)}}const
r6=function(t,i,e,n){return{"p-dropdown
p-component":!0,"p-disabled":t,"p-dropdown-open":i,"p-focus":e,"p-dropdown-clearable":n}},o6={provide:dn,useExisting:je(()=>Ot),multi:!0};let
a6=(()=>{class t{constructor(){this.o
nClick=new
H}onOptionClick(e){this.onClick.emit({originalEvent:e,option:this.option})}}return
t.\u0275fac=function(e){return
new(e||t)},t.\u0275cmp=z({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,n){1&e&&(l(0,"li",0),C("click",function(r){return
n.onOptionClick(r)}),_(1,bV,2,1,"span",1),_(2,vV,1,0,"ng-container",2),c()),2&e&&(p("ngStyle",U(8,ST,n.itemSize+"px"))("id",n.selected?"p-highlighted-option":"")("ngClass",Ge(10,CV,n.selected,n.disabled)),ie("aria-label",n.label)("aria-selected",n.selected),a(1),p("ngIf",!n.template),a(1),p("ngTemplateOutlet",n.template)("ngTemplateOutletContext",U(13,Yf,n.option)))},directives:[bt,lt,Le,Q,Rt]
,encapsulation:2}),t})(),Ot=(()=>{class
t{constructor(e,n,s,r,o,u,h){this.el=e,this.renderer=n,this.cd=s,this.zone=r,this.filterService=o,this.config=u,this.overlayService=h,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
H,this.onFilter=new H,this.onFocus=new H,this.onBlur=new H,this.onClick=new
H,this.onShow=new H,this.onHide=new H,this.onClear=new
H,this.onModelChange=()=>{},this.onModelTouched=()=>{},this.viewPortOffsetTop=0,this.id=pl()}get
disabled(){return this._disabled}set
disabled(e){e&&(this.focused=!1,this.overlayVisible&&this.hide()),t
his._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.optionsToDisplay=this._options,this.updateSelectedOption(this.value),this.selectedOption=this.findOption(this.value,this.optionsToDisplay),this.selectedOption||(this.value=null,this.onModelChange(this.value)),this.optionsChanged=!0,this._filterValue&&this._filterValue.length&&this.activateFilt
er()}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(Ft.EMPTY_MESSAGE)}get
emptyFilterMessageLabel(){return
this.emptyFilterMessage||this.config.getTranslation(Ft.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?Z.resolveFieldData(e,this.optionLabel):null!=e.label?e.label:e}getOptionValue(e){return
this.optionValue?Z.resolveFieldData(e,this.optionValue):this.optionLabel||void
0===e.value?e:e.value}isOptionDisabled
(e){return this.optionDisabled?Z.resolveFieldData(e,this.optionDisabled):void
0!==e.disabled&&e.disabled}getOptionGroupLabel(e){return
this.optionGroupLabel?Z.resolveFieldData(e,this.optionGroupLabel):null!=e.label?e.label:e}getOptionGroupChildren(e){return
this.optionGroupChildren?Z.resolveFieldData(e,this.optionGroupChildren):e.items}onItemClick(e){const
n=e.option;this.isOptionDisabled(n)||(this.selectItem(e.originalEvent,n),this.accessibleViewChild.nativeElement.focus()),setTimeout(()=>{this.hide()},150)}selectItem(e,n){this.selectedOption!=n&&(this.selectedOption=n,this.value=this.getOptionValue(n),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))}ngAfterViewChecked(){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
n=this.viewPort.getRenderedRange();this.updateVirtualScrollSelectedIndex(!1),(n.start>this.virtualScrollSelectedIndex||n.end<this.virtualScrollSelectedIndex)&&this.viewPort.scrollToIndex(this.virtualScrollSelectedIndex)}R.findSingle(this.overlay,"li.p-highlight")&&R.scrollInView(this.itemsWrapper,R.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}updateSelectedOption(e){this.selectedOption=this.findOption(e,this.optionsToDisplay),this.autoDisplayFirst&&!this.placeholder&&!this.selectedOption&&
this.optionsToDisplay&&this.optionsToDisplay.length&&!this.editable&&(this.selectedOption=this.group?this.optionsToDisplay[0].items[0]: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
R.hasClass(e.target,"p-dropdown-clear-icon")||e.target.isSameNode(this.accessibleViewChild.nativeElement)||this.editableInputViewChild&&e.target.isSameNode(this.editableInputViewChild.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.cd.markForCheck()}onOverlayAnimationStart(e){switch(e.toState){case"visible":if(this.overlay=e.element,this.itemsWrapper=R.findSingle(this.overlay,this.virtualScroll?".cdk-virtual-scroll-viewport":".p-dropdown-items-wrapper"),this.appendOverlay(),this.autoZIndex&&dt.set("overlay",this.overlay,this.baseZIndex+this.config.zIndex.overlay),this.alignOverlay(),this.bindDocumentClickListener(),this.bindDocumentResizeListener(),this.bindScrollListener(),this.options
&&this.options.length&&!this.virtualScroll){let
s=R.findSingle(this.itemsWrapper,".p-dropdown-item.p-highlight");s&&s.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&&dt.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.viewPortOffsetTop=0),this.virtualScrollSelectedIndex=this.findOptionIndex(this.getOptionValue(this.selectedOption),this.optionsToDisplay))}appen
dOverlay(){this.appendTo&&("body"===this.appendTo?document.body.appendChild(this.overlay):R.appendChild(this.overlay,this.appendTo),this.overlay.style.minWidth||(this.overlay.style.minWidth=R.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?R.absolutePosition(this.overlay,this.containerViewChild.nativeElement):R.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.preventModelTouched=!1}findPrevEnabledOption(e){let
n;if(this.optionsToDisplay&&this.optionsToDisplay.length){for(let
s=e-1;0<=s;s--){let r=this.op
tionsToDisplay[s];if(!this.isOptionDisabled(r)){n=r;break}}if(!n)for(let
s=this.optionsToDisplay.length-1;s>=e;s--){let
r=this.optionsToDisplay[s];if(!this.isOptionDisabled(r)){n=r;break}}}return
n}findNextEnabledOption(e){let
n;if(this.optionsToDisplay&&this.optionsToDisplay.length){for(let
s=e+1;s<this.optionsToDisplay.length;s++){let
r=this.optionsToDisplay[s];if(!this.isOptionDisabled(r)){n=r;break}}if(!n)for(let
s=0;s<e;s++){let
r=this.optionsToDisplay[s];if(!this.isOptionDisabled(r)){n=r;break}}}return
n}onKeydown(e,n){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
s=this.selectedOption?this.findOptionGroupIndex(this.getOptionValue(this.selectedOption),this.optionsToDisplay):-1;if(-1!==s){let
r=s.itemIndex+1;r<this.getOptionGroupChildren(this.optionsToDisplay[s.groupIndex]).length?(this.selectItem(e,this.getOptionGroupChildren(this.optionsToDisplay[s.gro
upIndex])[r]),this.selectedOptionUpdated=!0):this.optionsToDisplay[s.groupIndex+1]&&(this.selectItem(e,this.getOptionGroupChildren(this.optionsToDisplay[s.groupIndex+1])[0]),this.selectedOptionUpdated=!0)}else
this.optionsToDisplay&&this.optionsToDisplay.length>0&&this.selectItem(e,this.getOptionGroupChildren(this.optionsToDisplay[0])[0])}else{let
s=this.selectedOption?this.findOptionIndex(this.getOptionValue(this.selectedOption),this.optionsToDisplay):-1,r=this.findNextEnabledOption(s);r&&(this.selectItem(e,r),this.selectedOptionUpdated=!0)}e.preventDefault();break;case
38:if(this.group){let
s=this.selectedOption?this.findOptionGroupIndex(this.getOptionValue(this.selectedOption),this.optionsToDisplay):-1;if(-1!==s){let
r=s.itemIndex-1;if(r>=0)this.selectItem(e,this.getOptionGroupChildren(this.optionsToDisplay[s.groupIndex])[r]),this.selectedOptionUpdated=!0;else
if(r<0){let
o=this.optionsToDisplay[s.groupIndex-1];o&&(this.selectItem(e,this.getOptionGroupChildren(o)[this.getOptionGr
oupChildren(o).length-1]),this.selectedOptionUpdated=!0)}}}else{let
s=this.selectedOption?this.findOptionIndex(this.getOptionValue(this.selectedOption),this.optionsToDisplay):-1,r=this.findPrevEnabledOption(s);r&&(this.selectItem(e,r),this.selectedOptionUpdated=!0)}e.preventDefault();break;case
32:n&&(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:n&&!e.metaKey&&this.search(e)}}search(e){this.searchTimeout&&clearTimeout(this.searchTimeout);const
n=e.key;let
s;if(this.previousSearchChar=this.currentSearchChar,this.currentSearchChar=n,this.searchValue=this.previousSearchChar===this.currentSearchChar?this.currentSearchChar:this.searchValue?this.searchValue+n:n,this.group){let
r=this.selectedOption?this.findOptionGroupIndex(this.getOptionValue(this.selectedO
ption),this.optionsToDisplay):{groupIndex:0,itemIndex:0};s=this.searchOptionWithinGroup(r)}else{let
r=this.selectedOption?this.findOptionIndex(this.getOptionValue(this.selectedOption),this.optionsToDisplay):-1;s=this.searchOption(++r)}s&&!this.isOptionDisabled(s)&&(this.selectItem(e,s),this.selectedOptionUpdated=!0),this.searchTimeout=setTimeout(()=>{this.searchValue=null},250)}searchOption(e){let
n;return
this.searchValue&&(n=this.searchOptionInRange(e,this.optionsToDisplay.length),n||(n=this.searchOptionInRange(0,e))),n}searchOptionInRange(e,n){for(let
s=e;s<n;s++){let
r=this.optionsToDisplay[s];if(this.getOptionLabel(r).toLocaleLowerCase(this.filterLocale).startsWith(this.searchValue.toLocaleLowerCase(this.filterLocale))&&!this.isOptionDisabled(r))return
r}return null}searchOptionWithinGroup(e){if(this.searchValue){for(let
s=e.groupIndex;s<this.optionsToDisplay.length;s++)for(let
r=e.groupIndex===s?e.itemIndex+1:0;r<this.getOptionGroupChildren(this.optionsToDisplay[s]).length;r++
){let
o=this.getOptionGroupChildren(this.optionsToDisplay[s])[r];if(this.getOptionLabel(o).toLocaleLowerCase(this.filterLocale).startsWith(this.searchValue.toLocaleLowerCase(this.filterLocale))&&!this.isOptionDisabled(o))return
o}for(let s=0;s<=e.groupIndex;s++)for(let
r=0;r<(e.groupIndex===s?e.itemIndex:this.getOptionGroupChildren(this.optionsToDisplay[s]).length);r++){let
o=this.getOptionGroupChildren(this.optionsToDisplay[s])[r];if(this.getOptionLabel(o).toLocaleLowerCase(this.filterLocale).startsWith(this.searchValue.toLocaleLowerCase(this.filterLocale))&&!this.isOptionDisabled(o))return
o}}return null}findOptionIndex(e,n){let s=-1;if(n)for(let
r=0;r<n.length;r++)if(null==e&&null==this.getOptionValue(n[r])||Z.equals(e,this.getOptionValue(n[r]),this.dataKey)){s=r;break}return
s}findOptionGroupIndex(e,n){let s,r;if(n)for(let
o=0;o<n.length&&(s=o,r=this.findOptionIndex(e,this.getOptionGroupChildren(n[o])),-1===r);o++);return-1!==r?{groupIndex:s,itemIndex:r}:-1}findOption(e,n,s){if(
this.group&&!s){let r;if(n&&n.length)for(let o of
n)if(r=this.findOption(e,this.getOptionGroupChildren(o),!0),r)break;return r}{let
r=this.findOptionIndex(e,n);return-1!=r?n[r]:null}}onFilterInputChange(e){let
n=e.target.value;n&&n.length?(this._filterValue=n,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
n=[];for(let s of this.options){let
r=this.filterService.filter(this.getOptionGroupChildren(s),e,this.filterValue,this.filterMatchMode,this.filterLocale);r&&r.length&&n.push(Object.assign(Object.assign({},s),{[this.optionGroupChildren]:r}))}this.optionsToDisplay=n}else
this.optionsToDisplay=this.filterService.filter(this.options,e,this.filterValue,this.filterMatchMode,this.filterLocale);this.optionsChanged=!0}}applyFocus(){this.ed
itable?R.findSingle(this.el.nativeElement,".p-dropdown-label.p-inputtext").focus():R.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",n=>{!this.preventDocumentDefault&&this.isOutsideClicked(n)&&(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.documentResizeListener),this.documentResizeListener=null)}onWindowResize(){this.overlayVisible&&!R.isTouchDevice()&&this.hide()}bindScrollList
ener(){this.scrollHandler||(this.scrollHandler=new
Qs(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&&dt.clear(this.overlay),this.restoreOverlayAppend(),this.onOverlayHide()}}return
t.\u0275fac=function(e){return
new(e||t)(D(De),D(gn),D(rt),D(nt),D(hl),D(zn),D(Ks))},t.\u0275cmp=z({type:t,selectors:[["p-dropdown"]],contentQueries:function(e,n,s){if(1&e&&st(s,ne,4
),2&e){let
r;V(r=B())&&(n.templates=r)}},viewQuery:function(e,n){if(1&e&&(W(yV,5),W(wV,5),W(TV,5),W(Po,5),W(SV,5)),2&e){let
s;V(s=B())&&(n.containerViewChild=s.first),V(s=B())&&(n.filterViewChild=s.first),V(s=B())&&(n.accessibleViewChild=s.first),V(s=B())&&(n.viewPort=s.first),V(s=B())&&(n.editableInputViewChild=s.first)}},hostAttrs:[1,"p-element","p-inputwrapper"],hostVars:4,hostBindings:function(e,n){2&e&&si("p-inputwrapper-filled",n.filled)("p-inputwrapper-focus",n.focused||n.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:"inputId",selectId:"selectId",dataKey:"dataKey",filterBy:"filterBy",autofocus:"autofocus",resetFilterOnHide:"resetFilterOnHide",dropdown
Icon:"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",ariaLabel:"ariaLabel",ariaLabelledBy:"ariaLabelledBy",filterMatchMode:"filterMatchMode",maxlength:"maxlength",tooltip:"tooltip",tooltipPosition:"tooltipPosition",tooltipPositionStyle:"tooltipPositionStyle",tooltipStyleClass:"tooltipStyleClass",autofocusFilter:"autofocusFilter",disabled:"disabled",options:"options",filterValue:"filterValue"},outputs:{onChange:"onChange",onFilter:"onFilter",onFocus:"onFocus",onBlur:"onBlur",onClick:"onClick",onShow:
"onShow",onHide:"onHide",onClear:"onClear"},features:[Pe([o6])],decls:12,vars:25,consts:[[3,"ngClass","ngStyle","click"],["container",""],[1,"p-hidden-accessible"],["type","text","readonly","","aria-haspopup","listbox","aria-haspopup","listbox","role","combobox",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-label","dropdown
trigger","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"],["typ
e","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","scrolledIndexChange",4,"ngIf"],[3,"ngStyle","itemSize","scrolledIndexChange"],["viewport","
"],[4,"cdkVirtualFor","cdkVirtualForOf"],[1,"p-dropdown-empty-message"],["emptyFilter",""],["empty",""]],template:function(e,n){1&e&&(l(0,"div",0,1),C("click",function(r){return
n.onMouseclick(r)}),l(2,"div",2)(3,"input",3,4),C("focus",function(r){return
n.onInputFocus(r)})("blur",function(r){return
n.onInputBlur(r)})("keydown",function(r){return
n.onKeydown(r,!0)}),c()(),_(5,kV,3,13,"span",5),_(6,EV,2,4,"span",6),_(7,RV,2,4,"input",7),_(8,LV,1,0,"i",8),l(9,"div",9),k(10,"span",10),c(),_(11,s6,12,23,"div",11),c()),2&e&&(me(n.styleClass),p("ngClass",qn(20,r6,n.disabled,n.overlayVisible,n.focused,n.showClear&&!n.disabled))("ngStyle",n.style),a(3),p("disabled",n.disabled),ie("id",n.inputId)("placeholder",n.placeholder)("aria-label",n.ariaLabel)("aria-expanded",!1)("aria-labelledby",n.ariaLabelledBy)("tabindex",n.tabindex)("autofocus",n.autofocus)("aria-activedescendant",n.overlayVisible?n.labelId:null),a(2),p("ngIf",!n.editable&&null!=n.label),a(1),p("ngIf",!n.editable&&null==n.label),
a(1),p("ngIf",n.editable),a(1),p("ngIf",null!=n.value&&n.showClear&&!n.disabled),a(1),ie("aria-expanded",n.overlayVisible),a(1),p("ngClass",n.dropdownIcon),a(1),p("ngIf",n.overlayVisible))},directives:[a6,Po,Le,lt,Q,Kt,Rt,at,Qf,Jf],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:[wi("overlayAnimation",[Lt(":enter",[it({opacity:0,transform:"scaleY(0.8)"}),kt("{{showTransitionParams}}")]),Lt(":leave",[kt("{{hideTransitionParams}}",it({opacity:0}))])])]},changeDetection:0}),t})(),Zu=(()=>{class
t{}return t.\u0275fac=function(e){return
new(e||t)},t.\u0275mod=he({type:t}),t.\u0275inj=ue({imports:[[Fe,Nt,Fo,jn,pn],Nt,Fo]}),t})(),DT=(()=>{class
t{constructor(e,n,s){this.el=e,this.ngModel=n,this.cd=s}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.\u0275f
ac=function(e){return
new(e||t)(D(De),D(_e,8),D(rt))},t.\u0275dir=le({type:t,selectors:[["","pInputText",""]],hostAttrs:[1,"p-inputtext","p-component","p-element"],hostVars:2,hostBindings:function(e,n){1&e&&C("input",function(r){return
n.onInput(r)}),2&e&&si("p-filled",n.filled)}}),t})(),MT=(()=>{class
t{}return t.\u0275fac=function(e){return
new(e||t)},t.\u0275mod=he({type:t}),t.\u0275inj=ue({imports:[[Fe]]}),t})();const
l6=["input"];function c6(t,i){if(1&t){const
e=I();l(0,"i",6),C("click",function(){return
v(e),d().clear()}),c()}}const kT=function(){return{"p-inputnumber-button
p-inputnumber-button-up":!0}},IT=function(){return{"p-inputnumber-button
p-inputnumber-button-down":!0}};function u6(t,i){if(1&t){const
e=I();l(0,"span",7)(1,"button",8),C("mousedown",function(s){return
v(e),d().onUpButtonMouseDown(s)})("mouseup",function(){return
v(e),d().onUpButtonMouseUp()})("mouseleave",function(){return
v(e),d().onUpButtonMouseLeave()})("keydown",function(s){return
v(e),d().onUpButton
KeyDown(s)})("keyup",function(){return
v(e),d().onUpButtonKeyUp()}),c(),l(2,"button",8),C("mousedown",function(s){return
v(e),d().onDownButtonMouseDown(s)})("mouseup",function(){return
v(e),d().onDownButtonMouseUp()})("mouseleave",function(){return
v(e),d().onDownButtonMouseLeave()})("keydown",function(s){return
v(e),d().onDownButtonKeyDown(s)})("keyup",function(){return
v(e),d().onDownButtonKeyUp()}),c()()}if(2&t){const
e=d();a(1),me(e.incrementButtonClass),p("ngClass",A(10,kT))("icon",e.incrementButtonIcon)("disabled",e.disabled),a(1),me(e.decrementButtonClass),p("ngClass",A(11,IT))("icon",e.decrementButtonIcon)("disabled",e.disabled)}}function
d6(t,i){if(1&t){const
e=I();l(0,"button",8),C("mousedown",function(s){return
v(e),d().onUpButtonMouseDown(s)})("mouseup",function(){return
v(e),d().onUpButtonMouseUp()})("mouseleave",function(){return
v(e),d().onUpButtonMouseLeave()})("keydown",function(s){return
v(e),d().onUpButtonKeyDown(s)})("keyup",function(){return v(e),d().onUpButtonK
eyUp()}),c()}if(2&t){const
e=d();me(e.incrementButtonClass),p("ngClass",A(5,kT))("icon",e.incrementButtonIcon)("disabled",e.disabled)}}function
p6(t,i){if(1&t){const
e=I();l(0,"button",8),C("mousedown",function(s){return
v(e),d().onDownButtonMouseDown(s)})("mouseup",function(){return
v(e),d().onDownButtonMouseUp()})("mouseleave",function(){return
v(e),d().onDownButtonMouseLeave()})("keydown",function(s){return
v(e),d().onDownButtonKeyDown(s)})("keyup",function(){return
v(e),d().onDownButtonKeyUp()}),c()}if(2&t){const
e=d();me(e.decrementButtonClass),p("ngClass",A(5,IT))("icon",e.decrementButtonIcon)("disabled",e.disabled)}}const
h6=function(t,i,e){return{"p-inputnumber
p-component":!0,"p-inputnumber-buttons-stacked":t,"p-inputnumber-buttons-horizontal":i,"p-inputnumber-buttons-vertical":e}},m6={provide:dn,useExisting:je(()=>pt),multi:!0};let
pt=(()=>{class
t{constructor(e,n){this.el=e,this.cd=n,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.showClear=!1,this.onInput=new
H,this.onFocus=new H,this.onBlur=new H,this.onKeyDown=new H,this.onClear=new
H,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","minFractionDigits","maxFractionDigits","prefix","suffix"].some(s=>!!e[s])&&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}}constr
uctParser(){this.numberFormat=new Intl.NumberFormat(this.locale,this.getOptions());const
e=[...new
Intl.NumberFormat(this.locale,{useGrouping:!1}).format(9876543210)].reverse(),n=new
Map(e.map((s,r)=>[s,r]));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=s=>n.get(s)}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 th
is.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 s=new
Intl.NumberFormat(this.locale,this.getOptions()).format(e);return
this.prefix&&(s=this.prefix+s),this.suffix&&(s+=this.suffix),s}return
e.toString()}return""}parseValue(e){let
n=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(n){if("-"===n)return
n;let s=+n;return isNaN(s)?null:s}return null}repeat(e,n,s){if(this.readonly)return;let
r=n||500;this.clearTimer(),this.timer=setTimeout(()=>{this.repeat(e,40,s)},r),this.spin(e,s)}spin(e,n){let
s=this.step*n,r=this.parseValue(this.i
nput.nativeElement.value)||0,o=this.validateValue(r+s);this.maxlength&&this.maxlength<this.formatValue(o).length||(this.updateInput(o,null,"spin",null),this.updateModel(e,o),this.handleOnInput(e,r,o))}clear(){this.value=null,this.onModelChange(this.value),this.onClear.emit()}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()}onDownButtonMouseUp(){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
n=e.target.selectionStart,s=e.target.selectionEnd,r=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(r.charAt(n-1))||e.preventDefault();break;case
39:this.isNumeralChar(r.charAt(n))||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(),n===s){const
u=r.charAt(n-1),{decimalCharIndex:h,decimalCharIndexWithoutPrefix:b}=this.getDecimalCharIndexes(r);if(this.isNumeralChar(u)){const
y=this.getDecimalLength(r);if(this._group.test(u))this._group.lastIndex=0,o=r.slice(0,n-2)+r.slice(n-1);else
if(this._decimal.test(u))this._decimal.la
stIndex=0,y?this.input.nativeElement.setSelectionRange(n-1,n-1):o=r.slice(0,n-1)+r.slice(n);else
if(h>0&&n>h){const
w=this.isDecimalMode()&&(this.minFractionDigits||0)<y?"":"0";o=r.slice(0,n-1)+w+r.slice(n)}else
1===b?(o=r.slice(0,n-1)+"0"+r.slice(n),o=this.parseValue(o)>0?o:""):o=r.slice(0,n-1)+r.slice(n)}this.updateValue(e,o,null,"delete-single")}else
o=this.deleteRange(r,n,s),this.updateValue(e,o,null,"delete-range");break;case
46:if(e.preventDefault(),n===s){const
u=r.charAt(n),{decimalCharIndex:h,decimalCharIndexWithoutPrefix:b}=this.getDecimalCharIndexes(r);if(this.isNumeralChar(u)){const
y=this.getDecimalLength(r);if(this._group.test(u))this._group.lastIndex=0,o=r.slice(0,n)+r.slice(n+2);else
if(this._decimal.test(u))this._decimal.lastIndex=0,y?this.input.nativeElement.setSelectionRange(n+1,n+1):o=r.slice(0,n)+r.slice(n+1);else
if(h>0&&n>h){const
w=this.isDecimalMode()&&(this.minFractionDigits||0)<y?"":"0";o=r.slice(0,n)+w+r.slice(n+1)}else
1===b?(o=r.slice(0,n)+"0"+r.slice(n
+1),o=this.parseValue(o)>0?o:""):o=r.slice(0,n)+r.slice(n+1)}this.updateValue(e,o,null,"delete-back-single")}else
o=this.deleteRange(r,n,s),this.updateValue(e,o,null,"delete-range")}this.onKeyDown.emit(e)}onInputKeyPress(e){if(this.readonly)return;e.preventDefault();let
n=e.which||e.keyCode,s=String.fromCharCode(n);const
r=this.isDecimalSign(s),o=this.isMinusSign(s);(48<=n&&n<=57||o||r)&&this.insert(e,s,{isDecimalSign:r,isMinusSign:o})}onPaste(e){if(!this.disabled&&!this.readonly){e.preventDefault();let
n=(e.clipboardData||window.clipboardData).getData("Text");if(n){let
s=this.parseValue(n);null!=s&&this.insert(e,s.toString())}}}allowMinusSign(){return
null==this.min||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
n=e.search(this._decimal);this._decimal.lastIndex=0;const r=e.repl
ace(this._prefix,"").trim().replace(/\s/g,"").replace(this._currency,"").search(this._decimal);return
this._decimal.lastIndex=0,{decimalCharIndex:n,decimalCharIndexWithoutPrefix:r}}getCharIndexes(e){const
n=e.search(this._decimal);this._decimal.lastIndex=0;const
s=e.search(this._minusSign);this._minusSign.lastIndex=0;const
r=e.search(this._suffix);this._suffix.lastIndex=0;const o=e.search(this._currency);return
this._currency.lastIndex=0,{decimalCharIndex:n,minusCharIndex:s,suffixCharIndex:r,currencyCharIndex:o}}insert(e,n,s={isDecimalSign:!1,isMinusSign:!1}){const
r=n.search(this._minusSign);if(this._minusSign.lastIndex=0,!this.allowMinusSign()&&-1!==r)return;let
o=this.input.nativeElement.selectionStart,u=this.input.nativeElement.selectionEnd,h=this.input.nativeElement.value.trim();const{decimalCharIndex:b,minusCharIndex:y,suffixCharIndex:w,currencyCharIndex:M}=this.getCharIndexes(h);let
E;if(s.isMinusSign)0===o&&(E=h,(-1===y||0!==u)&&(E=this.insertText(h,n,0,u)),this.updateValue(
e,E,n,"insert"));else
if(s.isDecimalSign)b>0&&o===b?this.updateValue(e,h,n,"insert"):(b>o&&b<u||-1===b&&this.maxFractionDigits)&&(E=this.insertText(h,n,o,u),this.updateValue(e,E,n,"insert"));else{const
L=this.numberFormat.resolvedOptions().maximumFractionDigits,O=o!==u?"range-insert":"insert";if(b>0&&o>b){if(o+n.length-(b+1)<=L){const
N=M>=o?M-1:w>=o?w:h.length;E=h.slice(0,o)+n+h.slice(o+n.length,N)+h.slice(N),this.updateValue(e,E,n,O)}}else
E=this.insertText(h,n,o,u),this.updateValue(e,E,n,O)}}insertText(e,n,s,r){if(2===("."===n?n:n.split(".")).length){const
u=e.slice(s,r).search(this._decimal);return
this._decimal.lastIndex=0,u>0?e.slice(0,s)+this.formatValue(n)+e.slice(r):e||this.formatValue(n)}return
r-s===e.length?this.formatValue(n):0===s?n+e.slice(r):r===e.length?e.slice(0,s)+n:e.slice(0,s)+n+e.slice(r)}deleteRange(e,n,s){let
r;return
r=s-n===e.length?"":0===n?e.slice(s):s===e.length?e.slice(0,n):e.slice(0,n)+e.slice(s),r}initCursor(){let
e=this.input.nativeElement.selectionS
tart,n=this.input.nativeElement.value,s=n.length,r=null,o=(this.prefixChar||"").length;n=n.replace(this._prefix,""),e-=o;let
u=n.charAt(e);if(this.isNumeralChar(u))return e+o;let
h=e-1;for(;h>=0;){if(u=n.charAt(h),this.isNumeralChar(u)){r=h+o;break}h--}if(null!==r)this.input.nativeElement.setSelectionRange(r+1,r+1);else{for(h=e;h<s;){if(u=n.charAt(h),this.isNumeralChar(u)){r=h+o;break}h++}null!==r&&this.input.nativeElement.setSelectionRange(r,r)}return
r||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))}resetRegex(){this._numeral.lastIndex=0,this._decimal.lastIndex=0,this._group.lastIndex=0,this._minusSign.lastIndex=0}updateValue(e,n,s,r){let
o=this.input.nativeElement.value,u=null;null!=n&&(u=this.parseValue(n),u=u||this.allowEmpty?u:0,this.updateInput(u,s,r,n),this.handleOnInput(e,o,u))}handleOnInput(e,n,s){this.isValueChange
d(n,s)&&this.onInput.emit({originalEvent:e,value:s})}isValueChanged(e,n){return
null===n&&null!==e||null!=n&&n!==("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,n,s,r){n=n||"";let
o=this.input.nativeElement.value,u=this.formatValue(e),h=o.length;if(u!==r&&(u=this.concatValues(u,r)),0===h){this.input.nativeElement.value=u,this.input.nativeElement.setSelectionRange(0,0);const
y=this.initCursor()+n.length;this.input.nativeElement.setSelectionRange(y,y)}else{let
b=this.input.nativeElement.selectionStart,y=this.input.nativeElement.selectionEnd;if(this.maxlength&&this.maxlength<u.length)return;this.input.nativeElement.value=u;let
w=u.length;if("range-insert"===s){const
M=this.parseValue((o||"").slice(0,b)),L=(null!==M?M.toString():"").split("").join(`(${this.groupChar})?`),O=new
RegExp(L,"g");O.test(u);const
N=n.split("").join(`(${this.groupChar})?`),G=new RegExp(
N,"g");G.test(u.slice(O.lastIndex)),y=O.lastIndex+G.lastIndex,this.input.nativeElement.setSelectionRange(y,y)}else
if(w===h)"insert"===s||"delete-back-single"===s?this.input.nativeElement.setSelectionRange(y+1,y+1):"delete-single"===s?this.input.nativeElement.setSelectionRange(y-1,y-1):("delete-range"===s||"spin"===s)&&this.input.nativeElement.setSelectionRange(y,y);else
if("delete-back-single"===s){let
M=o.charAt(y-1),E=o.charAt(y),L=h-w,O=this._group.test(E);O&&1===L?y+=1:!O&&this.isNumeralChar(M)&&(y+=-1*L+1),this._group.lastIndex=0,this.input.nativeElement.setSelectionRange(y,y)}else
if("-"===o&&"insert"===s){this.input.nativeElement.setSelectionRange(0,0);const
E=this.initCursor()+n.length+1;this.input.nativeElement.setSelectionRange(E,E)}else
y+=w-h,this.input.nativeElement.setSelectionRange(y,y)}this.input.nativeElement.setAttribute("aria-valuenow",e)}concatValues(e,n){if(e&&n){let
s=n.search(this._decimal);return
this._decimal.lastIndex=0,-1!==s?e.split(this._decimal)[0]+n.s
lice(s):e}return e}getDecimalLength(e){if(e){const
n=e.split(this._decimal);if(2===n.length)return
n[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
n=this.validateValue(this.parseValue(this.input.nativeElement.value));this.input.nativeElement.value=this.formatValue(n),this.input.nativeElement.setAttribute("aria-valuenow",n),this.updateModel(e,n),this.onBlur.emit(e)}formattedValue(){return
this.formatValue(this.value||this.allowEmpty?this.value:0)}updateModel(e,n){this.value!==n&&(this.value=n,this.onModelChange(n)),this.onModelTouched()}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)}getF
ormatter(){return this.numberFormat}}return t.\u0275fac=function(e){return
new(e||t)(D(De),D(rt))},t.\u0275cmp=z({type:t,selectors:[["p-inputNumber"]],viewQuery:function(e,n){if(1&e&&W(l6,5),2&e){let
s;V(s=B())&&(n.input=s.first)}},hostAttrs:[1,"p-element","p-inputwrapper"],hostVars:6,hostBindings:function(e,n){2&e&&si("p-inputwrapper-filled",n.filled)("p-inputwrapper-focus",n.focused)("p-inputnumber-clearable",n.showClear&&"vertical"!=n.buttonLayout)},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",showClear:"showClear",disabled:"disabled"},outputs:{onInput:"onInput",onFocus:"onFocus",onBlur:"onBlur",onKeyDown:"onKeyDown",onClear:"onClear"},features:[Pe([m6]),fn],decls:7,vars:32,consts:[[3,"ngClass","ngStyle"],["pInputText","","inputmode","decimal",3,"ngClass","ngStyle","value","disabled","readonly","input","keydown","keypress","paste","click","focus","blur"],["input",""],["class","p-inputnumber-clear-icon
pi
pi-times",3,"click",4,"ngIf"],["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-c
lear-icon","pi","pi-times",3,"click"],[1,"p-inputnumber-button-group"],["type","button","pButton","",3,"ngClass","icon","disabled","mousedown","mouseup","mouseleave","keydown","keyup"]],template:function(e,n){1&e&&(l(0,"span",0)(1,"input",1,2),C("input",function(r){return
n.onUserInput(r)})("keydown",function(r){return
n.onInputKeyDown(r)})("keypress",function(r){return
n.onInputKeyPress(r)})("paste",function(r){return
n.onPaste(r)})("click",function(){return
n.onInputClick()})("focus",function(r){return
n.onInputFocus(r)})("blur",function(r){return
n.onInputBlur(r)}),c(),_(3,c6,1,0,"i",3),_(4,u6,3,12,"span",4),_(5,d6,1,6,"button",5),_(6,p6,1,6,"button",5),c()),2&e&&(me(n.styleClass),p("ngClass",Qt(28,h6,n.showButtons&&"stacked"===n.buttonLayout,n.showButtons&&"horizontal"===n.buttonLayout,n.showButtons&&"vertical"===n.buttonLayout))("ngStyle",n.style),a(1),me(n.inputStyleClass),p("ngClass","p-inputnumber-input")("ngStyle",n.inputStyle)("value",n.formattedValue())("disabled",n.disab
led)("readonly",n.readonly),ie("placeholder",n.placeholder)("title",n.title)("id",n.inputId)("size",n.size)("name",n.name)("autocomplete",n.autocomplete)("maxlength",n.maxlength)("tabindex",n.tabindex)("aria-label",n.ariaLabel)("aria-required",n.ariaRequired)("required",n.required)("min",n.min)("max",n.max),a(2),p("ngIf","vertical"!=n.buttonLayout&&n.showClear&&n.value),a(1),p("ngIf",n.showButtons&&"stacked"===n.buttonLayout),a(1),p("ngIf",n.showButtons&&"stacked"!==n.buttonLayout),a(1),p("ngIf",n.showButtons&&"stacked"!==n.buttonLayout))},directives:[Le,lt,DT,Q,On],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{border-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-inputnumber-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%}.p-inputnumber-clear-icon{position:absolute;top:50%;margin-top:-.5rem;cursor:pointer}.p-inputnumber-clearable{position:relative}\n"],encapsulation:2,changeDetection:0}),t})(),Xu=(()=>{class
t{}return t.\u0275fac=function(e){return
new(e||t)},t.\u0275mod=he({type:t}),t.\u0275inj=ue({imports:[[Fe,MT,gl]]}),t})();function
f6(t,i){1&t&&Y(0)}const Zf=function(t){return{$implicit:t}};function
g6(t,i){if(1&t&&(l(0,"div",15),_(1,f6,1,0,"ng-container",16),c()),2&t){const
e=d(2);a(1),p("ngTempl
ateOutlet",e.templateLeft)("ngTemplateOutletContext",U(2,Zf,e.paginatorState))}}function
_6(t,i){if(1&t&&(l(0,"span",17),g(1),c()),2&t){const
e=d(2);a(1),S(e.currentPageReport)}}const
ed=function(t){return{"p-disabled":t}};function b6(t,i){if(1&t){const
e=I();l(0,"button",18),C("click",function(s){return
v(e),d(2).changePageToFirst(s)}),k(1,"span",19),c()}if(2&t){const
e=d(2);p("disabled",e.isFirstPage()||e.empty())("ngClass",U(2,ed,e.isFirstPage()||e.empty()))}}const
v6=function(t){return{"p-highlight":t}};function C6(t,i){if(1&t){const
e=I();l(0,"button",22),C("click",function(s){const
o=v(e).$implicit;return d(3).onPageLinkClick(s,o-1)}),g(1),c()}if(2&t){const
e=i.$implicit,n=d(3);p("ngClass",U(2,v6,e-1==n.getPage())),a(1),S(e)}}function
y6(t,i){if(1&t&&(l(0,"span",20),_(1,C6,2,4,"button",21),c()),2&t){const
e=d(2);a(1),p("ngForOf",e.pageLinks)}}function
w6(t,i){1&t&&g(0),2&t&&S(d(3).currentPageReport)}function
T6(t,i){if(1&t){const
e=I();l(0,"p-dropdown",23),C("onChange",functio
n(s){return
v(e),d(2).onPageDropdownChange(s)}),_(1,w6,1,1,"ng-template",24),c()}if(2&t){const
e=d(2);p("options",e.pageItems)("ngModel",e.getPage())("disabled",e.empty())("appendTo",e.dropdownAppendTo)("scrollHeight",e.dropdownScrollHeight)}}function
S6(t,i){if(1&t){const
e=I();l(0,"button",25),C("click",function(s){return
v(e),d(2).changePageToLast(s)}),k(1,"span",26),c()}if(2&t){const
e=d(2);p("disabled",e.isLastPage()||e.empty())("ngClass",U(2,ed,e.isLastPage()||e.empty()))}}function
x6(t,i){if(1&t){const
e=I();l(0,"p-inputNumber",27),C("ngModelChange",function(s){return
v(e),d(2).changePage(s-1)}),c()}if(2&t){const
e=d(2);p("ngModel",e.currentPage())("disabled",e.empty())}}function
D6(t,i){1&t&&Y(0)}function
M6(t,i){if(1&t&&_(0,D6,1,0,"ng-container",16),2&t){const
e=i.$implicit;p("ngTemplateOutlet",d(4).dropdownItemTemplate)("ngTemplateOutletContext",U(2,Zf,e))}}function
k6(t,i){1&t&&(de(0),_(1,M6,1,4,"ng-template",30),pe())}function
I6(t,i){if(1&t){const e=I();l(0,"p-dropdown"
,28),C("ngModelChange",function(s){return
v(e),d(2).rows=s})("onChange",function(s){return
v(e),d(2).onRppChange(s)}),_(1,k6,2,0,"ng-container",29),c()}if(2&t){const
e=d(2);p("options",e.rowsPerPageItems)("ngModel",e.rows)("disabled",e.empty())("appendTo",e.dropdownAppendTo)("scrollHeight",e.dropdownScrollHeight),a(1),p("ngIf",e.dropdownItemTemplate)}}function
E6(t,i){1&t&&Y(0)}function
R6(t,i){if(1&t&&(l(0,"div",31),_(1,E6,1,0,"ng-container",16),c()),2&t){const
e=d(2);a(1),p("ngTemplateOutlet",e.templateRight)("ngTemplateOutletContext",U(2,Zf,e.paginatorState))}}function
L6(t,i){if(1&t){const
e=I();l(0,"div",1),_(1,g6,2,4,"div",2),_(2,_6,2,1,"span",3),_(3,b6,2,4,"button",4),l(4,"button",5),C("click",function(s){return
v(e),d().changePageToPrev(s)}),k(5,"span",6),c(),_(6,y6,2,1,"span",7),_(7,T6,2,5,"p-dropdown",8),l(8,"button",9),C("click",function(s){return
v(e),d().changePageToNext(s)}),k(9,"span",10),c(),_(10,S6,2,4,"button",11),_(11,x6,1,2,"p-inputNumber",12),_(12,I6,2,6,"p-drop
down",13),_(13,R6,2,4,"div",14),c()}if(2&t){const
e=d();me(e.styleClass),p("ngStyle",e.style)("ngClass","p-paginator
p-component"),a(1),p("ngIf",e.templateLeft),a(1),p("ngIf",e.showCurrentPageReport),a(1),p("ngIf",e.showFirstLastIcon),a(1),p("disabled",e.isFirstPage()||e.empty())("ngClass",U(17,ed,e.isFirstPage()||e.empty())),a(2),p("ngIf",e.showPageLinks),a(1),p("ngIf",e.showJumpToPageDropdown),a(1),p("disabled",e.isLastPage()||e.empty())("ngClass",U(19,ed,e.isLastPage()||e.empty())),a(2),p("ngIf",e.showFirstLastIcon),a(1),p("ngIf",e.showJumpToPageInput),a(1),p("ngIf",e.rowsPerPageOptions),a(1),p("ngIf",e.templateRight)}}let
ET=(()=>{class t{constructor(e){this.cd=e,this.pageLinkSize=5,this.onPageChange=new
H,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.updateRowsPerPageOptions()),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(),n=Math.min(this.pageLinkSize,e),s=Math.max(0,Math.ceil(this.getPage()-n/2)),r=Math.min(e-1,s+n-1);return
s=Math.max(0,
s-(this.pageLinkSize-(r-s+1))),[s,r]}updatePageLinks(){this.pageLinks=[];let
e=this.calculatePageLinkBoundaries(),s=e[1];for(let
r=e[0];r<=s;r++)this.pageLinks.push(r+1);if(this.showJumpToPageDropdown){this.pageItems=[];for(let
r=0;r<this.getPageCount();r++)this.pageItems.push({label:String(r+1),value:r})}}changePage(e){var
n=this.getPageCount();if(e>=0&&e<n){this._first=this.rows*e;var
s={page:e,first:this.first,rows:this.rows,pageCount:n};this.updatePageLinks(),this.onPageChange.emit(s),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,n){this.changePage(n),e.preventDefault()}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)(D(rt))},t.\u0275cmp=z({type:t,selectors:[["p-paginator"]],hostAttrs:[1,"p-element"],inputs:{pageLi
nkSize:"pageLinkSize",style:"style",styleClass:"styleClass",alwaysShow:"alwaysShow",templateLeft:"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:[fn],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-fir
st","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,n){1&e&&_(0,L6,14,21,"div",0),2&e&&p("ng
If",!!n.alwaysShow||n.pageLinks&&n.pageLinks.length>1)},directives:[Ot,pt,Q,lt,Le,Rt,bt,at,Te,_e,ne],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})(),RT=(()=>{class
t{}return t.\u0275fac=function(e){return
new(e||t)},t.\u0275mod=he({type:t}),t.\u0275inj=ue({imports:[[Fe,Zu,Xu,Mu,Nt,pn],Zu,Xu,Mu,Nt]}),t})();function
O6(t,i){if(1&t&&(l(0,"div",10)(1,"div",11),k(2,"i"),c()()),2&t){const
e=d();a(2),me("p-dataview-loading-icon pi-spin "+e.loadingIcon)}}function
A6(t,i){1&t&&Y(0)}functi
on
P6(t,i){if(1&t&&(l(0,"div",12),St(1),_(2,A6,1,0,"ng-container",13),c()),2&t){const
e=d();a(2),p("ngTemplateOutlet",e.headerTemplate)}}function
F6(t,i){if(1&t){const
e=I();l(0,"p-paginator",14),C("onPageChange",function(s){return
v(e),d().paginate(s)}),c()}if(2&t){const
e=d();p("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
N6(t,i){1&t&&Y(0)}const V6=function(t,i){return{$implicit:t,row
Index:i}};function
B6(t,i){if(1&t&&_(0,N6,1,0,"ng-container",15),2&t){const
e=i.$implicit,n=i.index;p("ngTemplateOutlet",d().itemTemplate)("ngTemplateOutletContext",Ge(2,V6,e,n))}}function
H6(t,i){if(1&t&&(de(0),g(1),pe()),2&t){const e=d(2);a(1),T("
",e.emptyMessageLabel," ")}}function
q6(t,i){1&t&&Y(0,null,19)}function
G6(t,i){if(1&t&&(l(0,"div",16)(1,"div",17),_(2,H6,2,1,"ng-container",18),_(3,q6,2,0,"ng-container",13),c()()),2&t){const
e=d();a(2),p("ngIf",!e.emptyMessageTemplate)("ngIfElse",e.emptyFilter),a(1),p("ngTemplateOutlet",e.emptyMessageTemplate)}}function
U6(t,i){if(1&t){const
e=I();l(0,"p-paginator",20),C("onPageChange",function(s){return
v(e),d().paginate(s)}),c()}if(2&t){const
e=d();p("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
z6(t,i){1&t&&Y(0)}function
j6(t,i){if(1&t&&(l(0,"div",21),St(1,1),_(2,z6,1,0,"ng-container",13),c()),2&t){const
e=d();a(2),p("ngTemplateOutlet",e.footerTemplate)}}const
$6=[[["p-header"]],[["p-footer"]]],W6=function(t,i){return{"p-dataview
p-component":!0,"p-dataview-list":t,"p-dataview-grid":i}},K6=["p-header","p-footer"];let
LT=(()=>{class
t{constructor(e,n,s,r){this.el=e,this.cd=n,this.filterService=s,this.config=r,this.pageLinks=5,this.paginatorPosition="bottom",this.alwaysShowPaginator=!0,this.paginatorDropdownScrollHeight="200px",this.currentPageReportTemplate="{currentPage}
of {totalPages}",this.showFirstLastIcon=!0,t
his.showPageLinks=!0,this.emptyMessage="",this.onLazyLoad=new
H,this.trackBy=(o,u)=>u,this.loadingIcon="pi
pi-spinner",this.first=0,this.onPage=new H,this.onSort=new H,this.onChangeLayout=new
H,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.pagi
natorRightTemplate=e.template;break;case"paginatordropdownitem":this.paginatorDropdownItemTemplate=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,n)=>{let
s=Z.resolveFieldData(e,this.sortField),r
=Z.resolveFieldData(n,this.sortField),o=null;return
o=null==s&&null!=r?-1:null!=s&&null==r?1:null==s&&null==r?0:"string"==typeof
s&&"string"==typeof
r?s.localeCompare(r):s<r?-1:s>r?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(Ft.EMPTY_MESSAGE)}filter(e,n="contains"){if(this.filterValue=e,this.value&&this.value.length){let
s=this.filterBy.split(",");this.filteredValue=this.filterService.filter(this.value,s,e,n,this.filterLocale),this.filteredValue.length===this.value.length&&(this.filteredValue=null),this.paginator&&(this.first=0,this.totalRecords=this.filteredValu
e?this.filteredValue.length:this.value?this.value.length:0),this.cd.markForCheck()}}hasFilter(){return
this.filterValue&&this.filterValue.trim().length>0}ngOnDestroy(){this.translationSubscription&&this.translationSubscription.unsubscribe()}}return
t.\u0275fac=function(e){return
new(e||t)(D(De),D(rt),D(hl),D(zn))},t.\u0275cmp=z({type:t,selectors:[["p-dataView"]],contentQueries:function(e,n,s){if(1&e&&(st(s,Oo,5),st(s,fl,5),st(s,ne,4)),2&e){let
r;V(r=B())&&(n.header=r.first),V(r=B())&&(n.footer=r.first),V(r=B())&&(n.templates=r)}},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",showJum
pToPageDropdown:"showJumpToPageDropdown",showFirstLastIcon:"showFirstLastIcon",showPageLinks:"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:[fn],ngContentSelectors:K6,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-emptymessage"],[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,n){1&e&&(Sn($6),l(0,"div",0),_(1,O6,3,2,"div",1),_(2,P6,3,1,"div",2),_(3,F6,1,16,"p-paginator",3),l(4,"div",4)(5,"div",5),_(6,B6,1,5,"ng-template",6),m(7,"slice"),_(8,G6,4,3,"div",7),c()(),_(9,U6,1,16,"p-paginator",8),_(10,j6,3,1,"div",9),c()),2&e&&(me(n.styleClass),p("ngClass",Ge(16,W6,"list"===n.layout,"grid"===n.layout))("ngStyle",n.style),a(1),p("ngIf",n.loading),a(1),p("ngIf",n.header||n.headerTemplate),a(1),p("ngIf",n.paginator&&("top"===n.paginatorPosition||"bot
h"==n.paginatorPosition)),a(3),p("ngForOf",n.paginator?function
hC(t,i,e,n,s){const r=t+20,o=$(),u=zr(o,r);return
Ua(o,r)?uC(o,Fn(),i,u.transform,e,n,s,u):u.transform(e,n,s)}(7,12,n.filteredValue||n.value,n.lazy?0:n.first,(n.lazy?0:n.first)+n.rows):n.filteredValue||n.value)("ngForTrackBy",n.trackBy),a(2),p("ngIf",n.isEmpty()),a(1),p("ngIf",n.paginator&&("bottom"===n.paginatorPosition||"both"==n.paginatorPosition)),a(1),p("ngIf",n.footer||n.footerTemplate))},directives:[ET,Le,lt,Q,Rt,at],pipes:[My],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})(),Q6=(()=>{class
t{}return t.\u0275fac=function(e){return
new(e||t)},t.\u0275mod=he({type:t}),t.\u0275inj=ue({imports:[[Fe,Nt,RT],Nt]}),t})(),J6=(()=>{class
t{constructor(e){this.el=e}onkeydown(e){if(!0!==this.pFocusTrapDisabled){e.preventDefault();let
n=R.getFocusableElements(this.el.n
ativeElement);if(n&&n.length>0)if(n[0].ownerDocument.activeElement){let
s=n.indexOf(n[0].ownerDocument.activeElement);e.shiftKey?-1==s||0===s?n[n.length-1].focus():n[s-1].focus():-1==s||s===n.length-1?n[0].focus():n[s+1].focus()}else
n[0].focus()}}}return t.\u0275fac=function(e){return
new(e||t)(D(De))},t.\u0275dir=le({type:t,selectors:[["","pFocusTrap",""]],hostAttrs:[1,"p-element"],hostBindings:function(e,n){1&e&&C("keydown.tab",function(r){return
n.onkeydown(r)})("keydown.shift.tab",function(r){return
n.onkeydown(r)})},inputs:{pFocusTrapDisabled:"pFocusTrapDisabled"}}),t})(),Y6=(()=>{class
t{}return t.\u0275fac=function(e){return
new(e||t)},t.\u0275mod=he({type:t}),t.\u0275inj=ue({imports:[[Fe]]}),t})();const
Z6=["titlebar"],X6=["content"],e7=["footer"];function
t7(t,i){if(1&t&&(l(0,"span",17),g(1),c()),2&t){const
e=d(4);ie("id",e.id+"-label"),a(1),S(e.header)}}function
n7(t,i){1&t&&(l(0,"span",17),St(1,1),c()),2&t&&ie("id",d(4).id+"-label")}function
i7(t,i){1&t&&Y(0)}const s7=fu
nction(){return{"p-dialog-header-icon p-dialog-header-maximize
p-link":!0}};function r7(t,i){if(1&t){const
e=I();l(0,"button",18),C("click",function(){return
v(e),d(4).maximize()})("keydown.enter",function(){return
v(e),d(4).maximize()}),k(1,"span",19),c()}if(2&t){const
e=d(4);p("ngClass",A(2,s7)),a(1),p("ngClass",e.maximized?e.minimizeIcon:e.maximizeIcon)}}const
o7=function(){return{"p-dialog-header-icon p-dialog-header-close
p-link":!0}};function a7(t,i){if(1&t){const
e=I();l(0,"button",20),C("click",function(s){return
v(e),d(4).close(s)})("keydown.enter",function(s){return
v(e),d(4).close(s)}),k(1,"span",21),c()}if(2&t){const
e=d(4);p("ngClass",A(4,o7)),ie("aria-label",e.closeAriaLabel)("tabindex",e.closeTabindex),a(1),p("ngClass",e.closeIcon)}}function
l7(t,i){if(1&t){const
e=I();l(0,"div",11,12),C("mousedown",function(s){return
v(e),d(3).initDrag(s)}),_(2,t7,2,2,"span",13),_(3,n7,2,1,"span",13),_(4,i7,1,0,"ng-container",8),l(5,"div",14),_(6,r7,2,3,"button",15),_(7,a7,2,5,"butto
n",16),c()()}if(2&t){const
e=d(3);a(2),p("ngIf",!e.headerFacet&&!e.headerTemplate),a(1),p("ngIf",e.headerFacet),a(1),p("ngTemplateOutlet",e.headerTemplate),a(2),p("ngIf",e.maximizable),a(1),p("ngIf",e.closable)}}function
c7(t,i){1&t&&Y(0)}function u7(t,i){1&t&&Y(0)}function
d7(t,i){if(1&t&&(l(0,"div",22,23),St(2,2),_(3,u7,1,0,"ng-container",8),c()),2&t){const
e=d(3);a(3),p("ngTemplateOutlet",e.footerTemplate)}}function
p7(t,i){if(1&t){const
e=I();l(0,"div",24),C("mousedown",function(s){return
v(e),d(3).initResize(s)}),c()}}const h7=function(t,i,e,n){return{"p-dialog
p-component":!0,"p-dialog-rtl":t,"p-dialog-draggable":i,"p-dialog-resizable":e,"p-dialog-maximized":n}},m7=function(t,i){return{transform:t,transition:i}},f7=function(t){return{value:"visible",params:t}};function
g7(t,i){if(1&t){const
e=I();l(0,"div",3,4),C("(a)animation.start",function(s){return
v(e),d(2).onAnimationStart(s)})("(a)animation.done",function(s){return
v(e),d(2).onAnimationEnd(s)}),_(2,l7,8,5,"div",5),l(3,"div"
,6,7),St(5),_(6,c7,1,0,"ng-container",8),c(),_(7,d7,4,1,"div",9),_(8,p7,1,0,"div",10),c()}if(2&t){const
e=d(2);me(e.styleClass),p("ngClass",qn(15,h7,e.rtl,e.draggable,e.resizable,e.maximized))("ngStyle",e.style)("pFocusTrapDisabled",!1===e.focusTrap)("@animation",U(23,f7,Ge(20,m7,e.transformOptions,e.transitionOptions))),ie("aria-labelledby",e.id+"-label"),a(2),p("ngIf",e.showHeader),a(1),me(e.contentStyleClass),p("ngClass","p-dialog-content")("ngStyle",e.contentStyle),a(3),p("ngTemplateOutlet",e.contentTemplate),a(1),p("ngIf",e.footerFacet||e.footerTemplate),a(1),p("ngIf",e.resizable)}}const
_7=function(t,i,e,n,s,r,o,u,h,b){return{"p-dialog-mask":!0,"p-component-overlay
p-component-overlay-enter":t,"p-dialog-mask-scrollblocker":i,"p-dialog-left":e,"p-dialog-right":n,"p-dialog-top":s,"p-dialog-top-left":r,"p-dialog-top-right":o,"p-dialog-bottom":u,"p-dialog-bottom-left":h,"p-dialog-bottom-right":b}};function
b7(t,i){if(1&t&&(l(0,"div",1),_(1,g7,9,25,"div",2),c()),2&t){const
e=d();me
(e.maskStyleClass),p("ngClass",Hh(4,_7,[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])),a(1),p("ngIf",e.visible)}}const
v7=["*",[["p-header"]],[["p-footer"]]],C7=["*","p-header","p-footer"],y7=ku([it({transform:"{{transform}}",opacity:0}),kt("{{transition}}")]),w7=ku([kt("{{transition}}",it({transform:"{{transform}}",opacity:0}))]);let
bn=(()=>{class
t{constructor(e,n,s,r,o){this.el=e,this.renderer=n,this.zone=s,this.cd=r,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 H,this.onHide=new H,this.visibleChange=new
H,this.onResizeInit=new H,this.onResizeEnd=new H,this.onDragEnd=new H,this.onMaximize=new
H,this.id=pl(),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.contentTemplat
e=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=R.findSingle(this.container,"[autofocus]");e&&this.zone.runOutsideAngular(()=>{setTimeout(()=>e.focus(),5)})}close(e){this.visibleChange.emit(!1),e.preventDefault()}enableModali
ty(){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&&R.addClass(document.body,"p-overflow-hidden")}disableModality(){this.wrapper&&(this.dismissableMask&&this.unbindMaskClickListener(),this.modal&&R.removeClass(document.body,"p-overflow-hidden"),this.cd.destroyed||this.cd.detectChanges())}maximize(){this.maximized=!this.maximized,!this.modal&&!this.blockScroll&&(this.maximized?R.addClass(document.body,"p-overflow-hidden"):R.removeClass(document.body,"p-overflow-hidden")),this.onMaximize.emit({maximized:this.maximized})}unbindMaskClickListener(){this.maskClickListener&&(this.maskClickListener(),this.maskClickListener=null)}moveOnTop(){this.autoZIndex&&(dt.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.styl
eElement=document.createElement("style"),this.styleElement.type="text/css",document.head.appendChild(this.styleElement);let
e="";for(let n in this.breakpoints)e+=`\n @media screen and
(max-width: ${n}) {\n .p-dialog[${this.id}] {\n
width: ${this.breakpoints[n]} !important;\n }\n
}\n
`;this.styleElement.innerHTML=e}}initDrag(e){R.hasClass(e.target,"p-dialog-header-icon")||R.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",R.addClass(document.body,"p-unselectable-text"))}onKeydown(e){if(this.focusTrap&&9===e.which){e.preventDefault();let
n=R.getFocusableElements(this.container);if(n&&n.length>0)if(n[0].ownerDocument.activeElement){let
s=n.indexOf(n[0].ownerDocument.activeElement);e.shiftKey?-1==s||0===s?n[n.length-1].focus():n[s-1].focus():-1=
=s||s===n.length-1?n[0].focus():n[s+1].focus()}else
n[0].focus()}}onDrag(e){if(this.dragging){let
n=R.getOuterWidth(this.container),s=R.getOuterHeight(this.container),r=e.pageX-this.lastPageX,o=e.pageY-this.lastPageY,u=this.container.getBoundingClientRect(),h=u.left+r,b=u.top+o,y=R.getViewport();this.container.style.position="fixed",this.keepInViewport?(h>=this.minX&&h+n<y.width&&(this._style.left=h+"px",this.lastPageX=e.pageX,this.container.style.left=h+"px"),b>=this.minY&&b+s<y.height&&(this._style.top=b+"px",this.lastPageY=e.pageY,this.container.style.top=b+"px")):(this.lastPageX=e.pageX,this.container.style.left=h+"px",this.lastPageY=e.pageY,this.container.style.top=b+"px")}}endDrag(e){this.dragging&&(this.dragging=!1,R.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,R.addClass(document.body,"p-unselectable-text"),this.onResizeInit.emit(e))}onResize(e){if(this.resizing){let
n=e.pageX-this.lastPageX,s=e.pageY-this.lastPageY,r=R.getOuterWidth(this.container),o=R.getOuterHeight(this.container),u=R.getOuterHeight(this.contentViewChild.nativeElement),h=r+n,b=o+s,y=this.container.style.minWidth,w=this.container.style.minHeight,M=this.container.getBoundingClientRect(),E=R.getViewport();(!parseInt(this.container.style.top)||!parseInt(this.container.style.left))&&(h+=n,b+=s),(!y||h>parseInt(y))&&M.left+h<E.width&&(this._style.width=h+"px",this.container.style.width=this._style.width),(!w||b>parseInt(w))&&M.top+b<E.height&&(this.contentViewChild.nativeElement.style.height=u+b-o+"px",this._style.height&&(this._style.height=b+"px",this.container.style.height=this._style.height)),this.lastPageX=e.pageX,this.lastPageY=e.pageY}}resizeEnd(e){this.resizing&&(this.resiz
ing=!1,R.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.documen
tDragEndListener)})}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.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",n=>{27==n.which&&
this.close(n)})}unbindDocumentEscapeListener(){this.documentEscapeListener&&(this.documentEscapeListener(),this.documentEscapeListener=null)}appendContainer(){this.appendTo&&("body"===this.appendTo?document.body.appendChild(this.wrapper):R.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&&R.addClass(document.body,"p-overflow-hidden"),this.focusOnShow&&this.focus();break;case"void":this.wrapper&&this.modal&&R.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&&(R.removeClass(document.body,"p-overflow-hidden"),this.maximized=!1),this.modal&&this.disableModality(),this.blockScroll&&R.removeClass(document.body,"p-overflow-hidden"),this.container&&this.autoZIndex&&dt.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.\u0275fac=function(e){return
new(e||t)(D(De),D(gn),D(nt),D(rt),D(zn))},t.\u0275cmp=z({type:t,selectors:[["p-dialog"]],contentQueries:function(e,n,s){if(1&e&&(st(s,Oo,5),st(s,fl,5),st(s,ne,4)),2&e){let
r;V(r=B())&&(n.headerFacet=r.first),V(r=B())&&(n.footerFacet=r.first),V(r=B())&&(n.templates=r)}},viewQuery:function(e,n){if(1&e&&(W(Z6,5),W(X6,5),W(e7,5)),2&e){l
et
s;V(s=B())&&(n.headerViewChild=s.first),V(s=B())&&(n.contentViewChild=s.first),V(s=B())&&(n.footerViewChild=s.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:"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:"maximizeIco
n",visible:"visible",style:"style",position:"position"},outputs:{onShow:"onShow",onHide:"onHide",visibleChange:"visibleChange",onResizeInit:"onResizeInit",onResizeEnd:"onResizeEnd",onDragEnd:"onDragEnd",onMaximize:"onMaximize"},ngContentSelectors:C7,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","keydo
wn.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,n){1&e&&(Sn(v7),_(0,b7,2,15,"div",0)),2&e&&p("ngIf",n.maskVisible)},directives:[Q,Le,J6,lt,Rt,bt],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-draggable
.p-dialog-header{curs
or:move}.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:[wi("animation",[Lt("void
=> visible",[fw(y7)]),Lt("visible =>
void",[fw(w7)])])]},changeDetection:0}),t})(),T7=(()=>{class t{}return
t.\u0275fac=function(e){return
new(e||t)},t.\u0275mod=he({type:t}),t.\u0275inj=ue({imports:[[Fe,Y6,pn],Nt]}),t})();const
S7=["*"];let x7=(()=>{class
t{constructor(){this.layout="horizontal",this.type="solid"}containerClass(){return{"p-divider
p-component":!0,"p-divider-horizontal":"horizontal"===this.layout,"p-divider-vertical":"vertical"===this.layout,"p-divider-solid":"solid"===this.type,"p-divider-dashed":"dashed"===this.type,"p-d
ivider-dotted":"dotted"===this.type,"p-divider-left":"horizontal"===this.layout&&(!this.align||"left"===this.align),"p-divider-center":"horizontal"===this.layout&&"center"===this.align||"vertical"===this.layout&&(!this.align||"center"===this.align),"p-divider-right":"horizontal"===this.layout&&"right"===this.align,"p-divider-top":"vertical"===this.layout&&"top"===this.align,"p-divider-bottom":"vertical"===this.layout&&"bottom"===this.align}}}return
t.\u0275fac=function(e){return
new(e||t)},t.\u0275cmp=z({type:t,selectors:[["p-divider"]],hostAttrs:[1,"p-element"],inputs:{styleClass:"styleClass",style:"style",layout:"layout",type:"type",align:"align"},ngContentSelectors:S7,decls:3,vars:4,consts:[["role","separator",3,"ngClass","ngStyle"],[1,"p-divider-content"]],template:function(e,n){1&e&&(Sn(),l(0,"div",0)(1,"div",1),St(2),c()()),2&e&&(me(n.styleClass),p("ngClass",n.containerClass())("ngStyle",n.style))},directives:[Le,lt],styles:['.p-divider-horizontal{display:flex;width:100%;posit
ion:relative;align-items:center}.p-divider-horizontal:before{position:absolute;display:block;top:50%;left:0;width:100%;content:""}.p-divider-horizontal.p-divider-left{justify-content:flex-start}.p-divider-horizontal.p-divider-right{justify-content:flex-end}.p-divider-horizontal.p-divider-center{justify-content:center}.p-divider-content{z-index:1}.p-divider-vertical{min-height:100%;margin:0
1rem;display:flex;position:relative;justify-content:center}.p-divider-vertical:before{position:absolute;display:block;top:0;left:50%;height:100%;content:""}.p-divider-vertical.p-divider-top{align-items:flex-start}.p-divider-vertical.p-divider-center{align-items:center}.p-divider-vertical.p-divider-bottom{align-items:flex-end}.p-divider-solid.p-divider-horizontal:before{border-top-style:solid}.p-divider-solid.p-divider-vertical:before{border-left-style:solid}.p-divider-dashed.p-divider-horizontal:before{border-top-style:dashed}.p-divider-dashed.p-divider-vertical:before{border-left-style:dashed}.p-
divider-dotted.p-divider-horizontal:before{border-top-style:dotted}.p-divider-dotted.p-divider-horizontal:before{border-left-style:dotted}\n'],encapsulation:2,changeDetection:0}),t})(),D7=(()=>{class
t{}return t.\u0275fac=function(e){return
new(e||t)},t.\u0275mod=he({type:t}),t.\u0275inj=ue({imports:[[Fe]]}),t})();const
M7=function(t,i){return{"pi-minus":t,"pi-plus":i}};function
k7(t,i){if(1&t&&k(0,"span",9),2&t){const
e=d(2);p("ngClass",Ge(1,M7,!e.collapsed,e.collapsed))}}function
I7(t,i){1&t&&Y(0)}function E7(t,i){if(1&t){const
e=I();de(0),l(1,"a",7),C("click",function(s){return
v(e),d().toggle(s)})("keydown.enter",function(s){return
v(e),d().toggle(s)}),_(2,k7,1,4,"span",8),_(3,I7,1,0,"ng-container",6),c(),pe()}if(2&t){const
e=d(),n=F(4);a(1),ie("aria-controls",e.id+"-content")("aria-expanded",!e.collapsed),a(1),p("ngIf",e.toggleable),a(1),p("ngTemplateOutlet",n)}}function
R7(t,i){1&t&&Y(0)}function
L7(t,i){if(1&t&&(l(0,"span",10),g(1),c(),St(2,1),_(3,R7,1,0,"ng-container",6)),2&
t){const
e=d();a(1),S(e.legend),a(2),p("ngTemplateOutlet",e.headerTemplate)}}function
O7(t,i){1&t&&Y(0)}const
A7=["*",[["p-header"]]],P7=function(t){return{"p-fieldset
p-component":!0,"p-fieldset-toggleable":t}},F7=function(t){return{transitionParams:t,height:"0"}},N7=function(t){return{value:"hidden",params:t}},V7=function(t){return{transitionParams:t,height:"*"}},B7=function(t){return{value:"visible",params:t}},H7=["*","p-header"];let
q7=0,Ui=(()=>{class
t{constructor(e){this.el=e,this.collapsed=!1,this.collapsedChange=new
H,this.onBeforeToggle=new H,this.onAfterToggle=new H,this.transitionOptions="400ms
cubic-bezier(0.86, 0, 0.07,
1)",this.id="p-fieldset-"+q7++}ngAfterContentInit(){this.templates.forEach(e=>{switch(e.getType()){case"header":this.headerTemplate=e.template;break;case"content":this.contentTemplate=e.template}})}toggle(e){if(this.animating)return!1;this.animating=!0,this.onBeforeToggle.emit({originalEvent:e,collapsed:this.collapsed}),this.collapsed?this.expand(e):thi
s.collapse(e),this.onAfterToggle.emit({originalEvent:e,collapsed:this.collapsed}),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(){this.animating=!1}}return
t.\u0275fac=function(e){return
new(e||t)(D(De))},t.\u0275cmp=z({type:t,selectors:[["p-fieldset"]],contentQueries:function(e,n,s){if(1&e&&st(s,ne,4),2&e){let
r;V(r=B())&&(n.templates=r)}},hostAttrs:[1,"p-element"],inputs:{legend:"legend",toggleable:"toggleable",collapsed:"collapsed",style:"style",styleClass:"styleClass",transitionOptions:"transitionOptions"},outputs:{collapsedChange:"collapsedChange",onBeforeToggle:"onBeforeToggle",onAfterToggle:"onAfterToggle"},ngContentSelectors:H7,decls:9,vars:22,consts:[[3,"ngClass","ngStyle"],[1,"p-fieldset-legend"],[4,"ngIf","ngIfElse"],["legendContent",""],["role","region",1,"p-toggleable-content"],[1,"
p-fieldset-content"],[4,"ngTemplateOutlet"],["tabindex","0","pRipple","",3,"click","keydown.enter"],["class","p-fieldset-toggler
pi",3,"ngClass",4,"ngIf"],[1,"p-fieldset-toggler","pi",3,"ngClass"],[1,"p-fieldset-legend-text"]],template:function(e,n){if(1&e&&(Sn(A7),l(0,"fieldset",0)(1,"legend",1),_(2,E7,4,4,"ng-container",2),_(3,L7,4,2,"ng-template",null,3,we),c(),l(5,"div",4),C("@fieldsetContent.done",function(){return
n.onToggleDone()}),l(6,"div",5),St(7),_(8,O7,1,0,"ng-container",6),c()()()),2&e){const
s=F(4);me(n.styleClass),p("ngClass",U(12,P7,n.toggleable))("ngStyle",n.style),ie("id",n.id),a(2),p("ngIf",n.toggleable)("ngIfElse",s),a(3),p("@fieldsetContent",n.collapsed?U(16,N7,U(14,F7,n.transitionOptions)):U(20,B7,U(18,V7,n.animating?n.transitionOptions:"0ms"))),ie("id",n.id+"-content")("aria-labelledby",n.id)("aria-hidden",n.collapsed),a(3),p("ngTemplateOutlet",n.contentTemplate)}},directives:[Le,lt,Q,bt,Rt],styles:[".p-fieldset-legend>a,.p-fieldset-legend>span{display:flex;al
ign-items:center;justify-content:center}.p-fieldset-toggleable .p-fieldset-legend
a{cursor:pointer;-webkit-user-select:none;user-select:none;overflow:hidden;position:relative}.p-fieldset-legend-text{line-height:1}\n"],encapsulation:2,data:{animation:[wi("fieldsetContent",[ws("hidden",it({height:"0",overflow:"hidden"})),ws("visible",it({height:"*"})),Lt("visible
<=>
hidden",[it({overflow:"hidden"}),kt("{{transitionParams}}")]),Lt("void
=> *",kt(0))])]},changeDetection:0}),t})(),G7=(()=>{class t{}return
t.\u0275fac=function(e){return
new(e||t)},t.\u0275mod=he({type:t}),t.\u0275inj=ue({imports:[[Fe,pn],Nt]}),t})();const
U7=["headerchkbox"];function z7(t,i){1&t&&Y(0)}function
j7(t,i){if(1&t&&(l(0,"div",6),St(1),_(2,z7,1,0,"ng-container",7),c()),2&t){const
e=d();a(2),p("ngTemplateOutlet",e.headerTemplate)}}const
OT=function(t){return{"p-checkbox-disabled":t}},$7=function(t,i,e){return{"p-highlight":t,"p-focus":i,"p-disabled":e}},AT=function(t){return{"pi
pi-check":t}};function W7(t,i){if
(1&t){const
e=I();l(0,"div",10)(1,"div",11)(2,"input",12),C("focus",function(){return
v(e),d(2).onHeaderCheckboxFocus()})("blur",function(){return
v(e),d(2).onHeaderCheckboxBlur()})("keydown.space",function(s){return
v(e),d(2).toggleAll(s)}),c()(),l(3,"div",13,14),C("click",function(s){return
v(e),d(2).toggleAll(s)}),k(5,"span",15),c()()}if(2&t){const
e=d(2);p("ngClass",U(5,OT,e.disabled||e.toggleAllDisabled)),a(2),p("checked",e.allChecked)("disabled",e.disabled||e.toggleAllDisabled),a(1),p("ngClass",Qt(7,$7,e.allChecked,e.headerCheckboxFocus,e.disabled||e.toggleAllDisabled)),a(2),p("ngClass",U(11,AT,e.allChecked))}}function
K7(t,i){if(1&t){const
e=I();l(0,"div",16)(1,"input",17),C("input",function(s){return
v(e),d(2).onFilter(s)}),c(),k(2,"span",18),c()}if(2&t){const
e=d(2);a(1),p("value",e.filterValue||"")("disabled",e.disabled),ie("placeholder",e.filterPlaceHolder)("aria-label",e.ariaFilterLabel)}}function
Q7(t,i){if(1&t&&(l(0,"div",6),_(1,W7,6,13,"div",8),_(2,K7,3,4,"div",9),c()
),2&t){const
e=d();a(1),p("ngIf",e.checkbox&&e.multiple&&e.showToggleAll),a(1),p("ngIf",e.filter)}}function
J7(t,i){if(1&t&&(l(0,"span"),g(1),c()),2&t){const
e=d().$implicit,n=d(2);a(1),S(n.getOptionGroupLabel(e)||"empty")}}function
Y7(t,i){1&t&&Y(0)}function Z7(t,i){1&t&&Y(0)}const
Xf=function(t){return{$implicit:t}};function
X7(t,i){if(1&t&&(l(0,"li",20),_(1,J7,2,1,"span",3),_(2,Y7,1,0,"ng-container",21),c(),_(3,Z7,1,0,"ng-container",21)),2&t){const
e=i.$implicit,n=d(2),s=F(8);a(1),p("ngIf",!n.groupTemplate),a(1),p("ngTemplateOutlet",n.groupTemplate)("ngTemplateOutletContext",U(5,Xf,e)),a(1),p("ngTemplateOutlet",s)("ngTemplateOutletContext",U(7,Xf,n.getOptionGroupChildren(e)))}}function
eB(t,i){if(1&t&&(de(0),_(1,X7,4,9,"ng-template",19),pe()),2&t){const
e=d();a(1),p("ngForOf",e.optionsToRender)}}function
tB(t,i){1&t&&Y(0)}function
nB(t,i){if(1&t&&(de(0),_(1,tB,1,0,"ng-container",21),pe()),2&t){const
e=d(),n=F(8);a(1),p("ngTemplateOutlet",n)("ngTemplateOutletContext",U(2,Xf,e.opti
onsToRender))}}const iB=function(t){return{"p-highlight":t}};function
sB(t,i){if(1&t&&(l(0,"div",10)(1,"div",25),k(2,"span",15),c()()),2&t){const
e=d().$implicit,n=d(2);p("ngClass",U(3,OT,n.disabled||n.isOptionDisabled(e))),a(1),p("ngClass",U(5,iB,n.isSelected(e))),a(1),p("ngClass",U(7,AT,n.isSelected(e)))}}function
rB(t,i){if(1&t&&(l(0,"span"),g(1),c()),2&t){const
e=d().$implicit,n=d(2);a(1),S(n.getOptionLabel(e))}}function
oB(t,i){1&t&&Y(0)}const
aB=function(t,i){return{"p-listbox-item":!0,"p-highlight":t,"p-disabled":i}},lB=function(t,i){return{$implicit:t,index:i}};function
cB(t,i){if(1&t){const
e=I();l(0,"li",24),C("click",function(s){const o=v(e).$implicit;return
d(2).onOptionClick(s,o)})("dblclick",function(s){const o=v(e).$implicit;return
d(2).onOptionDoubleClick(s,o)})("touchend",function(){const
r=v(e).$implicit;return d(2).onOptionTouchEnd(r)})("keydown",function(s){const
o=v(e).$implicit;return
d(2).onOptionKeyDown(s,o)}),_(1,sB,3,9,"div",8),_(2,rB,2,1,"span",3),_(3,oB,1
,0,"ng-container",21),c()}if(2&t){const
e=i.$implicit,n=i.index,s=d(2);p("ngClass",Ge(8,aB,s.isSelected(e),s.isOptionDisabled(e))),ie("tabindex",s.disabled||s.isOptionDisabled(e)?null:"0")("aria-label",s.getOptionLabel(e))("aria-selected",s.isSelected(e)),a(1),p("ngIf",s.checkbox&&s.multiple),a(1),p("ngIf",!s.itemTemplate),a(1),p("ngTemplateOutlet",s.itemTemplate)("ngTemplateOutletContext",Ge(11,lB,e,n))}}function
uB(t,i){if(1&t&&(de(0),g(1),pe()),2&t){const e=d(3);a(1),T("
",e.emptyFilterMessageLabel," ")}}function
dB(t,i){1&t&&Y(0,null,28)}function
pB(t,i){if(1&t&&(l(0,"li",26),_(1,uB,2,1,"ng-container",27),_(2,dB,2,0,"ng-container",7),c()),2&t){const
e=d(2);a(1),p("ngIf",!e.emptyFilterTemplate&&!e.emptyTemplate)("ngIfElse",e.emptyFilter),a(1),p("ngTemplateOutlet",e.emptyFilterTemplate||e.emptyTemplate)}}function
hB(t,i){if(1&t&&(de(0),g(1),pe()),2&t){const e=d(3);a(1),T("
",e.emptyMessageLabel," ")}}function
mB(t,i){1&t&&Y(0,null,29)}function
fB(t,i){if(1&t&&(l(0,"li",26),_(1,hB,
2,1,"ng-container",27),_(2,mB,2,0,"ng-container",7),c()),2&t){const
e=d(2);a(1),p("ngIf",!e.emptyTemplate)("ngIfElse",e.empty),a(1),p("ngTemplateOutlet",e.emptyTemplate)}}function
gB(t,i){if(1&t&&(_(0,cB,4,14,"li",22),_(1,pB,3,3,"li",23),_(2,fB,3,3,"li",23)),2&t){const
e=i.$implicit,n=d();p("ngForOf",e),a(1),p("ngIf",n.hasFilter()&&n.isEmpty(e)),a(1),p("ngIf",!n.hasFilter()&&n.isEmpty(e))}}function
_B(t,i){1&t&&Y(0)}function
bB(t,i){if(1&t&&(l(0,"div",30),St(1,1),_(2,_B,1,0,"ng-container",7),c()),2&t){const
e=d();a(2),p("ngTemplateOutlet",e.footerTemplate)}}const
vB=[[["p-header"]],[["p-footer"]]],CB=function(t){return{"p-listbox
p-component":!0,"p-disabled":t}},yB=["p-header","p-footer"],wB={provide:dn,useExisting:je(()=>os),multi:!0};let
os=(()=>{class
t{constructor(e,n,s,r){this.el=e,this.cd=n,this.filterService=s,this.config=r,this.checkbox=!1,this.filter=!1,this.filterMatchMode="contains",this.metaKeySelection=!0,this.showToggleAll=!0,this.optionGroupChildren="items",this.onCha
nge=new H,this.onClick=new H,this.onDblClick=new
H,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?Z.resolveFieldData(e,this.optionLabel):null!=e.label?e.label:e}getOptionGroupChildren(e){return
this.optionGroupChildren?Z.resolveFieldData(e,this.optionG
roupChildren):e.items}getOptionGroupLabel(e){return
this.optionGroupLabel?Z.resolveFieldData(e,this.optionGroupLabel):null!=e.label?e.label:e}getOptionValue(e){return
this.optionValue?Z.resolveFieldData(e,this.optionValue):this.optionLabel||void
0===e.value?e:e.value}isOptionDisabled(e){return
this.optionDisabled?Z.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,n){this.disabled||this.isOptionDisabled(n)||this.readonly||(this.multiple?this.checkbox?this.onOptionClickCheckbox(e,n):this.onOptionClickMultiple(e,n):this.onOptionClickSingle(e,n),this.onClick.emit({originalEvent:e,option:n,value:this.value}),this.optionTouched=!1)}onOptionTouchEnd(e){this.disabled||this.isOptionDisabled(e)||this.readonly||(this.optionTouched=!0)}onOptionDoubleClick(e,n){this.d
isabled||this.isOptionDisabled(n)||this.readonly||this.onDblClick.emit({originalEvent:e,option:n,value:this.value})}onOptionClickSingle(e,n){let
s=this.isSelected(n),r=!1;if(!this.optionTouched&&this.metaKeySelection){let
u=e.metaKey||e.ctrlKey;s?u&&(this.value=null,r=!0):(this.value=this.getOptionValue(n),r=!0)}else
this.value=s?null:this.getOptionValue(n),r=!0;r&&(this.onModelChange(this.value),this.onChange.emit({originalEvent:e,value:this.value}))}onOptionClickMultiple(e,n){let
s=this.isSelected(n),r=!1;if(!this.optionTouched&&this.metaKeySelection){let
u=e.metaKey||e.ctrlKey;s?(u?this.removeOption(n):this.value=[this.getOptionValue(n)],r=!0):(this.value=u&&this.value||[],this.value=[...this.value,this.getOptionValue(n)],r=!0)}else
s?this.removeOption(n):this.value=[...this.value||[],this.getOptionValue(n)],r=!0;r&&(this.onModelChange(this.value),this.onChange.emit({originalEvent:e,value:this.value}))}onOptionClickCheckbox(e,n){this.disabled||this.readonly||(this.isSelected(n)?t
his.removeOption(n):(this.value=this.value?this.value:[],this.value=[...this.value,this.getOptionValue(n)]),this.onModelChange(this.value),this.onChange.emit({originalEvent:e,value:this.value}))}removeOption(e){this.value=this.value.filter(n=>!Z.equals(n,this.getOptionValue(e),this.dataKey))}isSelected(e){let
n=!1,s=this.getOptionValue(e);if(this.multiple){if(this.value)for(let r of
this.value)if(Z.equals(r,s,this.dataKey)){n=!0;break}}else
n=Z.equals(this.value,s,this.dataKey);return n}get allChecked(){let
e=this.optionsToRender;if(!e||0===e.length)return!1;{let
n=0,s=0,r=0,o=this.group?0:this.optionsToRender.length;for(let u of
e)if(this.group)for(let h of this.getOptionGroupChildren(u)){let
b=this.isOptionDisabled(h),y=this.isSelected(h);if(b)y?n++:s++;else{if(!y)return!1;r++}o++}else{let
h=this.isOptionDisabled(u),b=this.isSelected(u);if(h)b?n++:s++;else{if(!b)return!1;r++}}return
o===n||o===r||r&&o===r+s+n}}get optionsToRender(){return
this._filteredOptions||this.options}get em
ptyMessageLabel(){return
this.emptyMessage||this.config.getTranslation(Ft.EMPTY_MESSAGE)}get
emptyFilterMessageLabel(){return
this.emptyFilterMessage||this.config.getTranslation(Ft.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(","),n=[];for(let s of
this.options){let
r=this.filterService.filter(this.getOptionGroupChildren(s),e,this.filterValue,this.filterMatchMode,this.filterLocale);r&&r.length&&n.push(Object.assign(Object.assign({},s),{[this.optionGroupChildren]:r}))}this._filteredOptions=n}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.optionsToRend
er;if(!e||0===e.length)return!0;for(let n of
e)if(!this.isOptionDisabled(n))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
n=[];this.optionsToRender.forEach(s=>{if(this.group){let
r=this.getOptionGroupChildren(s);r&&r.forEach(o=>{let
u=this.isOptionDisabled(o);(!u||u&&this.isSelected(o))&&n.push(this.getOptionValue(o))})}else{let
r=this.isOptionDisabled(s);(!r||r&&this.isSelected(s))&&n.push(this.getOptionValue(s))}}),this.value=n}uncheckAll(){let
n=[];this.optionsToRender.forEach(s=>{this.group?s.items&&s.items.forEach(r=>{this.isOptionDisabled(r)&&this.isSelected(r)&&n.push(this.getOptionValue(r))}):this.isOptionDisabled(s)&&this.isSelected(s)&&n.push(this.getOptionValue(s))}),this.value=n}onOptionKeyDown(e,n){if(this.readonly)return;let
s=e.currentTarget;switch(e.which){cas
e 40:var r=this.findNextItem(s);r&&r.focus(),e.preventDefault();break;case 38:var
o=this.findPrevItem(s);o&&o.focus(),e.preventDefault();break;case
13:this.onOptionClick(e,n),e.preventDefault()}}findNextItem(e){let
n=e.nextElementSibling;return
n?R.hasClass(n,"p-disabled")||R.isHidden(n)||R.hasClass(n,"p-listbox-item-group")?this.findNextItem(n):n:null}findPrevItem(e){let
n=e.previousElementSibling;return
n?R.hasClass(n,"p-disabled")||R.isHidden(n)||R.hasClass(n,"p-listbox-item-group")?this.findPrevItem(n):n:null}onHeaderCheckboxFocus(){this.headerCheckboxFocus=!0}onHeaderCheckboxBlur(){this.headerCheckboxFocus=!1}ngOnDestroy(){this.translationSubscription&&this.translationSubscription.unsubscribe()}}return
t.\u0275fac=function(e){return
new(e||t)(D(De),D(rt),D(hl),D(zn))},t.\u0275cmp=z({type:t,selectors:[["p-listbox"]],contentQueries:function(e,n,s){if(1&e&&(st(s,Oo,5),st(s,fl,5),st(s,ne,4)),2&e){let
r;V(r=B())&&(n.headerFacet=r.first),V(r=B())&&(n.footerFacet=r.first),V(r=B())&&(n
.templates=r)}},viewQuery:function(e,n){if(1&e&&W(U7,5),2&e){let
s;V(s=B())&&(n.headerCheckboxViewChild=s.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:[Pe([wB])],ngContentSelectors:yB,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,n){1&e&&(Sn(vB),l(0,"div",0),_(1,j7,3,1,"div",1),_(2,Q7,3,2,"div",1),l(3,"div",0)(4,"ul",2),_(5,eB,2,1,"ng-container",3),_(6,nB,2,4,"ng-container",3),_(7,gB,3,3,"ng-template",null,4,we),c()(),_(9,bB,3,1,"div",5),c()),2&e&&(me(n.styleClass),p("ngClass",U(13,CB,n.disabled))("ngStyle",n.style),a(1),p("ngIf",n.headerFacet||n.headerTemplate),a(1),p("ngIf",n.checkbox&&n.multiple&&n.showToggleAll||n.filter),a(1),me(n.listStyleClass),p("ngClass","p-listbox-list-wrapper")("ngStyle",n.listStyle),a(2),p("ngIf",n.group),a(1),p("ngIf",!n.group),a(3),p("ngIf",n.footerFacet||n.footerTemplate))},directives:[Le,lt,Q,Rt,at,bt],styles:[".p-listbox-list-wrapper{overflow:auto}.p-listbox-list{list-style-type:none;margin:0;padding:0}.p-listbox-it
em{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})(),TB=(()=>{class
t{}return t.\u0275fac=function(e){return
new(e||t)},t.\u0275mod=he({type:t}),t.\u0275inj=ue({imports:[[Fe,Nt,pn],Nt]}),t})();class
zi extends ct{constructor(i){super(),this._value=i}get value(){return
this.getValue()}_subscribe(i){const e=super._subscribe(i);return
e&&!e.closed&&i.next(this._value),e}getValue(){if(this.hasError)throw
this.thrownError;if(this.closed)throw new nr;return
this._value}next(i){super.next(this._value=i)}}class SB extends
yt{notifyNext(i,e,n,s,r){this.destination.next(e)}notifyError(i,e){this.destination.error(i)}notifyComplete(i){this.destination.complete()}}class
xB ex
tends
yt{constructor(i,e,n){super(),this.parent=i,this.outerValue=e,this.outerIndex=n,this.index=0}_next(i){this.parent.notifyNext(this.outerValue,i,this.outerIndex,this.index++,this)}_error(i){this.parent.notifyError(i,this),this.unsubscribe()}_complete(){this.parent.notifyComplete(this),this.unsubscribe()}}function
DB(t,i,e,n,s=new xB(t,e,n)){if(!s.closed)return i instanceof
Je?i.subscribe(s):Od(i)(s)}const PT={};class
kB{constructor(i){this.resultSelector=i}call(i,e){return e.subscribe(new
IB(i,this.resultSelector))}}class IB extends
SB{constructor(i,e){super(i),this.resultSelector=e,this.active=0,this.values=[],this.observables=[]}_next(i){this.values.push(PT),this.observables.push(i)}_complete(){const
i=this.observables,e=i.length;if(0===e)this.destination.complete();else{this.active=e,this.toRespond=e;for(let
n=0;n<e;n++)this.add(DB(this,i[n],void
0,n))}}notifyComplete(i){0==(this.active-=1)&&this.destination.complete()}notifyNext(i,e,n){const
s=this.values,o=this.toRespond?s[
n]===PT?--this.toRespond:this.toRespond:0;s[n]=e,0===o&&(this.resultSelector?this._tryResultSelector(s):this.destination.next(s.slice()))}_tryResultSelector(i){let
e;try{e=this.resultSelector.apply(this,i)}catch(n){return void
this.destination.error(n)}this.destination.next(e)}}const td=(()=>{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 FT(t,i){let e=!1;return
arguments.length>=2&&(e=!0),function(s){return s.lift(new EB(t,i,e))}}class
EB{constructor(i,e,n=!1){this.accumulator=i,this.seed=e,this.hasSeed=n}call(i,e){return
e.subscribe(new RB(i,this.accumulator,this.seed,this.hasSeed))}}class RB extends
yt{constructor(i,e,n,s){super(i),this.accumulator=e,this._seed=n,this.hasSeed=s,this.index=0}get
seed(){return this._seed}set
seed(i){this.hasSeed=!0,this._seed=i}_next(i){if(this.hasSeed)return
this._tryNext(i);this.seed=i,this.destination.next(i)}_tryNext(i){cons
t e=this.index++;let
n;try{n=this.accumulator(this.seed,i,e)}catch(s){this.destination.error(s)}this.seed=n,this.destination.next(n)}}function
Mr(t){return function(e){const n=new LB(t),s=e.lift(n);return n.caught=s}}class
LB{constructor(i){this.selector=i}call(i,e){return e.subscribe(new
OB(i,this.selector,this.caught))}}class OB extends
Zo{constructor(i,e,n){super(i),this.selector=e,this.caught=n}error(i){if(!this.isStopped){let
e;try{e=this.selector(i,this.caught)}catch(r){return void
super.error(r)}this._unsubscribeAndRecycle();const n=new Yo(this);this.add(n);const
s=Xo(e,n);s!==n&&this.add(s)}}}function eg(t){return function(e){return
0===t?lu():e.lift(new AB(t))}}class
AB{constructor(i){if(this.total=i,this.total<0)throw new s0}call(i,e){return
e.subscribe(new PB(i,this.total))}}class PB extends
yt{constructor(i,e){super(i),this.total=e,this.ring=new Array,this.count=0}_next(i){const
e=this.ring,n=this.total,s=this.count++;e.length<n?e.push(i):e[s%n]=i}_complete(){const
i=thi
s.destination;let e=this.count;if(e>0){const
n=this.count>=this.total?this.total:this.count,s=this.ring;for(let
r=0;r<n;r++){const o=e++%n;i.next(s[o])}}i.complete()}}function NT(t=VB){return
i=>i.lift(new FB(t))}class FB{constructor(i){this.errorFactory=i}call(i,e){return
e.subscribe(new NB(i,this.errorFactory))}}class NB extends
yt{constructor(i,e){super(i),this.errorFactory=e,this.hasValue=!1}_next(i){this.hasValue=!0,this.destination.next(i)}_complete(){if(this.hasValue)return
this.destination.complete();{let
i;try{i=this.errorFactory()}catch(e){i=e}this.destination.error(i)}}}function VB(){return
new td}function VT(t=null){return i=>i.lift(new BB(t))}class
BB{constructor(i){this.defaultValue=i}call(i,e){return e.subscribe(new
HB(i,this.defaultValue))}}class HB extends
yt{constructor(i,e){super(i),this.defaultValue=e,this.isEmpty=!0}_next(i){this.isEmpty=!1,this.destination.next(i)}_complete(){this.isEmpty&&this.destination.next(this.defaultValue),this.destination.complete()}}fu
nction No(t,i){const e=arguments.length>=2;return
n=>n.pipe(t?Us((s,r)=>t(s,r,n)):Bl,br(1),e?VT(i):NT(()=>new td))}function
Js(){}function li(t,i,e){return function(s){return s.lift(new GB(t,i,e))}}class
GB{constructor(i,e,n){this.nextOrObserver=i,this.error=e,this.complete=n}call(i,e){return
e.subscribe(new UB(i,this.nextOrObserver,this.error,this.complete))}}class UB extends
yt{constructor(i,e,n,s){super(i),this._tapNext=Js,this._tapError=Js,this._tapComplete=Js,this._tapError=n||Js,this._tapComplete=s||Js,Is(e)?(this._context=this,this._tapNext=e):e&&(this._context=e,this._tapNext=e.next||Js,this._tapError=e.error||Js,this._tapComplete=e.complete||Js)}_next(i){try{this._tapNext.call(this._context,i)}catch(e){return
void
this.destination.error(e)}this.destination.next(i)}_error(i){try{this._tapError.call(this._context,i)}catch(e){return
void
this.destination.error(e)}this.destination.error(i)}_complete(){try{this._tapComplete.call(this._context)}catch(i){return
void this.destinati
on.error(i)}return this.destination.complete()}}class
jB{constructor(i){this.callback=i}call(i,e){return e.subscribe(new
$B(i,this.callback))}}class $B extends yt{constructor(i,e){super(i),this.add(new
Et(e))}}class xs{constructor(i,e){this.id=i,this.url=e}}class tg extends
xs{constructor(i,e,n="imperative",s=null){super(i,e),this.navigationTrigger=n,this.restoredState=s}toString(){return`NavigationStart(id:
${this.id}, url: '${this.url}')`}}class vl extends
xs{constructor(i,e,n){super(i,e),this.urlAfterRedirects=n}toString(){return`NavigationEnd(id:
${this.id}, url: '${this.url}', urlAfterRedirects:
'${this.urlAfterRedirects}')`}}class BT extends
xs{constructor(i,e,n){super(i,e),this.reason=n}toString(){return`NavigationCancel(id:
${this.id}, url: '${this.url}')`}}class WB extends
xs{constructor(i,e,n){super(i,e),this.error=n}toString(){return`NavigationError(id:
${this.id}, url: '${this.url}', error: ${this.error})`}}class KB extends
xs{constructor(i,e,n,s){super(i,e),this.urlAfte
rRedirects=n,this.state=s}toString(){return`RoutesRecognized(id: ${this.id}, url:
'${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state:
${this.state})`}}class QB extends
xs{constructor(i,e,n,s){super(i,e),this.urlAfterRedirects=n,this.state=s}toString(){return`GuardsCheckStart(id:
${this.id}, url: '${this.url}', urlAfterRedirects:
'${this.urlAfterRedirects}', state: ${this.state})`}}class JB extends
xs{constructor(i,e,n,s,r){super(i,e),this.urlAfterRedirects=n,this.state=s,this.shouldActivate=r}toString(){return`GuardsCheckEnd(id:
${this.id}, url: '${this.url}', urlAfterRedirects:
'${this.urlAfterRedirects}', state: ${this.state}, shouldActivate:
${this.shouldActivate})`}}class YB extends
xs{constructor(i,e,n,s){super(i,e),this.urlAfterRedirects=n,this.state=s}toString(){return`ResolveStart(id:
${this.id}, url: '${this.url}', urlAfterRedirects:
'${this.urlAfterRedirects}', state: ${this.state})`}}class ZB extends
xs{constructor(i,e,n,s){super(i,e),this.urlAfterRedire
cts=n,this.state=s}toString(){return`ResolveEnd(id: ${this.id}, url:
'${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state:
${this.state})`}}class
HT{constructor(i){this.route=i}toString(){return`RouteConfigLoadStart(path:
${this.route.path})`}}class
qT{constructor(i){this.route=i}toString(){return`RouteConfigLoadEnd(path:
${this.route.path})`}}class
XB{constructor(i){this.snapshot=i}toString(){return`ChildActivationStart(path:
'${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class
e8{constructor(i){this.snapshot=i}toString(){return`ChildActivationEnd(path:
'${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class
t8{constructor(i){this.snapshot=i}toString(){return`ActivationStart(path:
'${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class
n8{constructor(i){this.snapshot=i}toString(){return`ActivationEnd(path:
'${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class
GT{constructor(i,e,n){t
his.routerEvent=i,this.position=e,this.anchor=n}toString(){return`Scroll(anchor:
'${this.anchor}', position: '${this.position?`${this.position[0]},
${this.position[1]}`:null}')`}}const Ke="primary";class
i8{constructor(i){this.params=i||{}}has(i){return
Object.prototype.hasOwnProperty.call(this.params,i)}get(i){if(this.has(i)){const
e=this.params[i];return Array.isArray(e)?e[0]:e}return
null}getAll(i){if(this.has(i)){const e=this.params[i];return
Array.isArray(e)?e:[e]}return[]}get keys(){return Object.keys(this.params)}}function
Vo(t){return new i8(t)}const UT="ngNavigationCancelingError";function
ng(t){const i=Error("NavigationCancelingError: "+t);return i[UT]=!0,i}function
r8(t,i,e){const
n=e.path.split("/");if(n.length>t.length||"full"===e.pathMatch&&(i.hasChildren()||n.length<t.length))return
null;const s={};for(let r=0;r<n.length;r++){const
o=n[r],u=t[r];if(o.startsWith(":"))s[o.substring(1)]=u;else if(o!==u.path)return
null}return{consumed:t.slice(0,n.length),posParams:s}}fun
ction as(t,i){const e=t?Object.keys(t):void 0,n=i?Object.keys(i):void
0;if(!e||!n||e.length!=n.length)return!1;let s;for(let
r=0;r<e.length;r++)if(s=e[r],!zT(t[s],i[s]))return!1;return!0}function
zT(t,i){if(Array.isArray(t)&&Array.isArray(i)){if(t.length!==i.length)return!1;const
e=[...t].sort(),n=[...i].sort();return e.every((s,r)=>n[r]===s)}return t===i}function
jT(t){return Array.prototype.concat.apply([],t)}function $T(t){return
t.length>0?t[t.length-1]:null}function xn(t,i){for(const e in
t)t.hasOwnProperty(e)&&i(t[e],e)}function ls(t){return
Dh(t)?t:Ra(t)?Mn(Promise.resolve(t)):oe(t)}const l8={exact:function
QT(t,i,e){if(!Ir(t.segments,i.segments)||!nd(t.segments,i.segments,e)||t.numberOfChildren!==i.numberOfChildren)return!1;for(const
n in
i.children)if(!t.children[n]||!QT(t.children[n],i.children[n],e))return!1;return!0},subset:JT},WT={exact:function
c8(t,i){return as(t,i)},subset:function u8(t,i){return
Object.keys(i).length<=Object.keys(t).length&&Object.keys(i).every(e=>z
T(t[e],i[e]))},ignored:()=>!0};function KT(t,i,e){return
l8[e.paths](t.root,i.root,e.matrixParams)&&WT[e.queryParams](t.queryParams,i.queryParams)&&!("exact"===e.fragment&&t.fragment!==i.fragment)}function
JT(t,i,e){return YT(t,i,i.segments,e)}function
YT(t,i,e,n){if(t.segments.length>e.length){const
s=t.segments.slice(0,e.length);return!(!Ir(s,e)||i.hasChildren()||!nd(s,e,n))}if(t.segments.length===e.length){if(!Ir(t.segments,e)||!nd(t.segments,e,n))return!1;for(const
s in
i.children)if(!t.children[s]||!JT(t.children[s],i.children[s],n))return!1;return!0}{const
s=e.slice(0,t.segments.length),r=e.slice(t.segments.length);return!!(Ir(t.segments,s)&&nd(t.segments,s,n)&&t.children[Ke])&&YT(t.children[Ke],i,r,n)}}function
nd(t,i,e){return i.every((n,s)=>WT[e](t[s].parameters,n.parameters))}class
kr{constructor(i,e,n){this.root=i,this.queryParams=e,this.fragment=n}get
queryParamMap(){return
this._queryParamMap||(this._queryParamMap=Vo(this.queryParams)),this._queryParamMap}toString(){ret
urn h8.serialize(this)}}class
Xe{constructor(i,e){this.segments=i,this.children=e,this.parent=null,xn(e,(n,s)=>n.parent=this)}hasChildren(){return
this.numberOfChildren>0}get numberOfChildren(){return
Object.keys(this.children).length}toString(){return id(this)}}class
Cl{constructor(i,e){this.path=i,this.parameters=e}get parameterMap(){return
this._parameterMap||(this._parameterMap=Vo(this.parameters)),this._parameterMap}toString(){return
n2(this)}}function Ir(t,i){return
t.length===i.length&&t.every((e,n)=>e.path===i[n].path)}class ZT{}class
XT{parse(i){const e=new w8(i);return new
kr(e.parseRootSegment(),e.parseQueryParams(),e.parseFragment())}serialize(i){const
e=`/${yl(i.root,!0)}`,n=function g8(t){const i=Object.keys(t).map(e=>{const
n=t[e];return
Array.isArray(n)?n.map(s=>`${sd(e)}=${sd(s)}`).join("&"):`${sd(e)}=${sd(n)}`}).filter(e=>!!e);return
i.length?`?${i.join("&")}`:""}(i.queryParams),s="string"==typeof
i.fragment?`#${function m8(t){return encodeURI(t)}(i.fragment)}`:"";
return`${e}${n}${s}`}}const h8=new XT;function id(t){return
t.segments.map(i=>n2(i)).join("/")}function
yl(t,i){if(!t.hasChildren())return id(t);if(i){const
e=t.children[Ke]?yl(t.children[Ke],!1):"",n=[];return
xn(t.children,(s,r)=>{r!==Ke&&n.push(`${r}:${yl(s,!1)}`)}),n.length>0?`${e}(${n.join("//")})`:e}{const
e=function p8(t,i){let e=[];return
xn(t.children,(n,s)=>{s===Ke&&(e=e.concat(i(n,s)))}),xn(t.children,(n,s)=>{s!==Ke&&(e=e.concat(i(n,s)))}),e}(t,(n,s)=>s===Ke?[yl(t.children[Ke],!1)]:[`${s}:${yl(n,!1)}`]);return
1===Object.keys(t.children).length&&null!=t.children[Ke]?`${id(t)}/${e[0]}`:`${id(t)}/(${e.join("//")})`}}function
e2(t){return
encodeURIComponent(t).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function
sd(t){return e2(t).replace(/%3B/gi,";")}function ig(t){return
e2(t).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function
rd(t){return decodeURIComponent(t)}function t2(t){return
rd(t.replace(/\+/g,"%20"))}funct
ion n2(t){return`${ig(t.path)}${function f8(t){return
Object.keys(t).map(i=>`;${ig(i)}=${ig(t[i])}`).join("")}(t.parameters)}`}const
_8=/^[^\/()?;=#]+/;function od(t){const i=t.match(_8);return i?i[0]:""}const
b8=/^[^=?&#]+/,C8=/^[^&#]+/;class
w8{constructor(i){this.url=i,this.remaining=i}parseRootSegment(){return
this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new
Xe([],{}):new Xe([],this.parseChildren())}parseQueryParams(){const
i={};if(this.consumeOptional("?"))do{this.parseQueryParam(i)}while(this.consumeOptional("&"));return
i}parseFragment(){return
this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(""===this.remaining)return{};this.consumeOptional("/");const
i=[];for(this.peekStartsWith("(")||i.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),i.push(this.parseSegment());let
e={};this.peekStartsWith("/(")&&(this.capture
("/"),e=this.parseParens(!0));let n={};return
this.peekStartsWith("(")&&(n=this.parseParens(!1)),(i.length>0||Object.keys(e).length>0)&&(n[Ke]=new
Xe(i,e)),n}parseSegment(){const
i=od(this.remaining);if(""===i&&this.peekStartsWith(";"))throw
new Error(`Empty path url segment cannot have parameters:
'${this.remaining}'.`);return this.capture(i),new
Cl(rd(i),this.parseMatrixParams())}parseMatrixParams(){const
i={};for(;this.consumeOptional(";");)this.parseParam(i);return
i}parseParam(i){const e=od(this.remaining);if(!e)return;this.capture(e);let
n="";if(this.consumeOptional("=")){const
s=od(this.remaining);s&&(n=s,this.capture(n))}i[rd(e)]=rd(n)}parseQueryParam(i){const
e=function v8(t){const i=t.match(b8);return
i?i[0]:""}(this.remaining);if(!e)return;this.capture(e);let
n="";if(this.consumeOptional("=")){const o=function y8(t){const
i=t.match(C8);return
i?i[0]:""}(this.remaining);o&&(n=o,this.capture(n))}const
s=t2(e),r=t2(n);if(i.hasOwnProperty(s)){let o=i[s];Array.isArray(o)||(o=[
o],i[s]=o),o.push(r)}else i[s]=r}parseParens(i){const
e={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const
n=od(this.remaining),s=this.remaining[n.length];if("/"!==s&&")"!==s&&";"!==s)throw
new Error(`Cannot parse url '${this.url}'`);let
r;n.indexOf(":")>-1?(r=n.substr(0,n.indexOf(":")),this.capture(r),this.capture(":")):i&&(r=Ke);const
o=this.parseChildren();e[r]=1===Object.keys(o).length?o[Ke]:new
Xe([],o),this.consumeOptional("//")}return e}peekStartsWith(i){return
this.remaining.startsWith(i)}consumeOptional(i){return!!this.peekStartsWith(i)&&(this.remaining=this.remaining.substring(i.length),!0)}capture(i){if(!this.consumeOptional(i))throw
new Error(`Expected "${i}".`)}}class s2{constructor(i){this._root=i}get
root(){return this._root.value}parent(i){const e=this.pathFromRoot(i);return
e.length>1?e[e.length-2]:null}children(i){const e=sg(i,this._root);return
e?e.children.map(n=>n.value):[]}firstChild(i){const e=sg(i,this._root);return
e&&e.chil
dren.length>0?e.children[0].value:null}siblings(i){const e=rg(i,this._root);return
e.length<2?[]:e[e.length-2].children.map(s=>s.value).filter(s=>s!==i)}pathFromRoot(i){return
rg(i,this._root).map(e=>e.value)}}function sg(t,i){if(t===i.value)return i;for(const e
of i.children){const n=sg(t,e);if(n)return n}return null}function
rg(t,i){if(t===i.value)return[i];for(const e of i.children){const
n=rg(t,e);if(n.length)return n.unshift(i),n}return[]}class
Ds{constructor(i,e){this.value=i,this.children=e}toString(){return`TreeNode(${this.value})`}}function
Bo(t){const i={};return t&&t.children.forEach(e=>i[e.value.outlet]=e),i}class
r2 extends s2{constructor(i,e){super(i),this.snapshot=e,og(this,i)}toString(){return
this.snapshot.toString()}}function o2(t,i){const e=function T8(t,i){const o=new
ad([],{},{},"",{},Ke,i,null,t.root,-1,{});return new l2("",new
Ds(o,[]))}(t,i),n=new zi([new Cl("",{})]),s=new zi({}),r=new zi({}),o=new
zi({}),u=new zi(""),h=new Er(n,s,o,u,r,Ke,i,e.root);return h.
snapshot=e.root,new r2(new Ds(h,[]),e)}class
Er{constructor(i,e,n,s,r,o,u,h){this.url=i,this.params=e,this.queryParams=n,this.fragment=s,this.data=r,this.outlet=o,this.component=u,this._futureSnapshot=h}get
routeConfig(){return this._futureSnapshot.routeConfig}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=this.params.pipe(et(i=>Vo(i)))),this._paramMap}get
queryParamMap(){return
this._queryParamMap||(this._queryParamMap=this.queryParams.pipe(et(i=>Vo(i)))),this._queryParamMap}toString(){return
this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function
a2(t,i="emptyOnly"){const e=t.pathFromRoot;let
n=0;if("always"!==i)for(n=e.length-1;n>=1;){const
s=e[n],r=e[n-1];if(s.routeConfig&&""===s.r
outeConfig.path)n--;else{if(r.component)break;n--}}return function S8(t){return
t.reduce((i,e)=>({params:Object.assign(Object.assign({},i.params),e.params),data:Object.assign(Object.assign({},i.data),e.data),resolve:Object.assign(Object.assign({},i.resolve),e._resolvedData)}),{params:{},data:{},resolve:{}})}(e.slice(n))}class
ad{constructor(i,e,n,s,r,o,u,h,b,y,w){this.url=i,this.params=e,this.queryParams=n,this.fragment=s,this.data=r,this.outlet=o,this.component=u,this.routeConfig=h,this._urlSegment=b,this._lastPathIndex=y,this._resolve=w}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=Vo(this.params)),this._paramMap}get queryParamMap(){return
this._queryParamMap||(this._queryParamMap=Vo(this.queryParams)),this._
queryParamMap}toString(){return`Route(url:'${this.url.map(n=>n.toString()).join("/")}',
path:'${this.routeConfig?this.routeConfig.path:""}')`}}class l2 extends
s2{constructor(i,e){super(e),this.url=i,og(this,e)}toString(){return
c2(this._root)}}function
og(t,i){i.value._routerState=t,i.children.forEach(e=>og(t,e))}function c2(t){const
i=t.children.length>0?` { ${t.children.map(c2).join(", ")} }
`:"";return`${t.value}${i}`}function ag(t){if(t.snapshot){const
i=t.snapshot,e=t._futureSnapshot;t.snapshot=e,as(i.queryParams,e.queryParams)||t.queryParams.next(e.queryParams),i.fragment!==e.fragment&&t.fragment.next(e.fragment),as(i.params,e.params)||t.params.next(e.params),function
o8(t,i){if(t.length!==i.length)return!1;for(let
e=0;e<t.length;++e)if(!as(t[e],i[e]))return!1;return!0}(i.url,e.url)||t.url.next(e.url),as(i.data,e.data)||t.data.next(e.data)}else
t.snapshot=t._futureSnapshot,t.data.next(t._futureSnapshot.data)}function lg(t,i){const
e=as(t.params,i.params)&&function d8(t,i){ret
urn
Ir(t,i)&&t.every((e,n)=>as(e.parameters,i[n].parameters))}(t.url,i.url);return
e&&!(!t.parent!=!i.parent)&&(!t.parent||lg(t.parent,i.parent))}function
wl(t,i,e){if(e&&t.shouldReuseRoute(i.value,e.value.snapshot)){const
n=e.value;n._futureSnapshot=i.value;const s=function D8(t,i,e){return
i.children.map(n=>{for(const s of
e.children)if(t.shouldReuseRoute(n.value,s.value.snapshot))return wl(t,n,s);return
wl(t,n)})}(t,i,e);return new Ds(n,s)}{if(t.shouldAttach(i.value)){const
r=t.retrieve(i.value);if(null!==r){const o=r.route;return
o.value._futureSnapshot=i.value,o.children=i.children.map(u=>wl(t,u)),o}}const
n=function M8(t){return new Er(new zi(t.url),new zi(t.params),new zi(t.queryParams),new
zi(t.fragment),new
zi(t.data),t.outlet,t.component,t)}(i.value),s=i.children.map(r=>wl(t,r));return new
Ds(n,s)}}function ld(t){return"object"==typeof
t&&null!=t&&!t.outlets&&!t.segmentPath}function
Tl(t){return"object"==typeof t&&null!=t&&t.outlets}function
cg(t,i,e,n,s){let r={};if(n&&xn
(n,(u,h)=>{r[h]=Array.isArray(u)?u.map(b=>`${b}`):`${u}`}),t===i)return new
kr(e,r,s);const o=u2(t,i,e);return new kr(o,r,s)}function u2(t,i,e){const n={};return
xn(t.children,(s,r)=>{n[r]=s===i?e:u2(s,i,e)}),new Xe(t.segments,n)}class
d2{constructor(i,e,n){if(this.isAbsolute=i,this.numberOfDoubleDots=e,this.commands=n,i&&n.length>0&&ld(n[0]))throw
new Error("Root segment cannot have matrix parameters");const
s=n.find(Tl);if(s&&s!==$T(n))throw new Error("{outlets:{}} has to be the last
command")}toRoot(){return
this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class
ug{constructor(i,e,n){this.segmentGroup=i,this.processChildren=e,this.index=n}}function
p2(t,i,e){if(t||(t=new Xe([],{})),0===t.segments.length&&t.hasChildren())return
cd(t,i,e);const n=function O8(t,i,e){let n=0,s=i;const
r={match:!1,pathIndex:0,commandIndex:0};for(;s<t.segments.length;){if(n>=e.length)return
r;const o=t.segments[s],u=e[n];if(Tl(u))break;const
h=`${u}`,b=n<e.length-1?e[n+1]:null;if(s>0&&
void 0===h)break;if(h&&b&&"object"==typeof b&&void
0===b.outlets){if(!m2(h,b,o))return r;n+=2}else{if(!m2(h,{},o))return
r;n++}s++}return{match:!0,pathIndex:s,commandIndex:n}}(t,i,e),s=e.slice(n.commandIndex);if(n.match&&n.pathIndex<t.segments.length){const
r=new Xe(t.segments.slice(0,n.pathIndex),{});return r.children[Ke]=new
Xe(t.segments.slice(n.pathIndex),t.children),cd(r,0,s)}return
n.match&&0===s.length?new
Xe(t.segments,{}):n.match&&!t.hasChildren()?dg(t,i,e):n.match?cd(t,0,s):dg(t,i,e)}function
cd(t,i,e){if(0===e.length)return new Xe(t.segments,{});{const n=function L8(t){return
Tl(t[0])?t[0].outlets:{[Ke]:t}}(e),s={};return xn(n,(r,o)=>{"string"==typeof
r&&(r=[r]),null!==r&&(s[o]=p2(t.children[o],i,r))}),xn(t.children,(r,o)=>{void
0===n[o]&&(s[o]=r)}),new Xe(t.segments,s)}}function dg(t,i,e){const
n=t.segments.slice(0,i);let s=0;for(;s<e.length;){const r=e[s];if(Tl(r)){const
h=A8(r.outlets);return new Xe(n,h)}if(0===s&&ld(e[0])){n.push(new
Cl(t.segments[i].path,h2(e[0]))),s
++;continue}const
o=Tl(r)?r.outlets[Ke]:`${r}`,u=s<e.length-1?e[s+1]:null;o&&u&&ld(u)?(n.push(new
Cl(o,h2(u))),s+=2):(n.push(new Cl(o,{})),s++)}return new Xe(n,{})}function A8(t){const
i={};return xn(t,(e,n)=>{"string"==typeof
e&&(e=[e]),null!==e&&(i[n]=dg(new Xe([],{}),0,e))}),i}function h2(t){const
i={};return xn(t,(e,n)=>i[n]=`${e}`),i}function m2(t,i,e){return
t==e.path&&as(i,e.parameters)}class
F8{constructor(i,e,n,s){this.routeReuseStrategy=i,this.futureState=e,this.currState=n,this.forwardEvent=s}activate(i){const
e=this.futureState._root,n=this.currState?this.currState._root:null;this.deactivateChildRoutes(e,n,i),ag(this.futureState.root),this.activateChildRoutes(e,n,i)}deactivateChildRoutes(i,e,n){const
s=Bo(e);i.children.forEach(r=>{const
o=r.value.outlet;this.deactivateRoutes(r,s[o],n),delete
s[o]}),xn(s,(r,o)=>{this.deactivateRouteAndItsChildren(r,n)})}deactivateRoutes(i,e,n){const
s=i.value,r=e?e.value:null;if(s===r)if(s.component){const
o=n.getContext(s.outlet);o&&this
.deactivateChildRoutes(i,e,o.children)}else this.deactivateChildRoutes(i,e,n);else
r&&this.deactivateRouteAndItsChildren(e,n)}deactivateRouteAndItsChildren(i,e){i.value.component&&this.routeReuseStrategy.shouldDetach(i.value.snapshot)?this.detachAndStoreRouteSubtree(i,e):this.deactivateRouteAndOutlet(i,e)}detachAndStoreRouteSubtree(i,e){const
n=e.getContext(i.value.outlet),s=n&&i.value.component?n.children:e,r=Bo(i);for(const
o of
Object.keys(r))this.deactivateRouteAndItsChildren(r[o],s);if(n&&n.outlet){const
o=n.outlet.detach(),u=n.children.onOutletDeactivated();this.routeReuseStrategy.store(i.value.snapshot,{componentRef:o,route:i,contexts:u})}}deactivateRouteAndOutlet(i,e){const
n=e.getContext(i.value.outlet),s=n&&i.value.component?n.children:e,r=Bo(i);for(const
o of
Object.keys(r))this.deactivateRouteAndItsChildren(r[o],s);n&&n.outlet&&(n.outlet.deactivate(),n.children.onOutletDeactivated(),n.attachRef=null,n.resolver=null,n.route=null)}activateChildRoutes(i,e,n){const
s=Bo(e);i
.children.forEach(r=>{this.activateRoutes(r,s[r.value.outlet],n),this.forwardEvent(new
n8(r.value.snapshot))}),i.children.length&&this.forwardEvent(new
e8(i.value.snapshot))}activateRoutes(i,e,n){const
s=i.value,r=e?e.value:null;if(ag(s),s===r)if(s.component){const
o=n.getOrCreateContext(s.outlet);this.activateChildRoutes(i,e,o.children)}else
this.activateChildRoutes(i,e,n);else if(s.component){const
o=n.getOrCreateContext(s.outlet);if(this.routeReuseStrategy.shouldAttach(s.snapshot)){const
u=this.routeReuseStrategy.retrieve(s.snapshot);this.routeReuseStrategy.store(s.snapshot,null),o.children.onOutletReAttached(u.contexts),o.attachRef=u.componentRef,o.route=u.route.value,o.outlet&&o.outlet.attach(u.componentRef,u.route.value),ag(u.route.value),this.activateChildRoutes(i,null,o.children)}else{const
u=function N8(t){for(let i=t.parent;i;i=i.parent){const
e=i.routeConfig;if(e&&e._loadedConfig)return
e._loadedConfig;if(e&&e.component)return null}return
null}(s.snapshot),h=u?u.module.co
mponentFactoryResolver:null;o.attachRef=null,o.route=s,o.resolver=h,o.outlet&&o.outlet.activateWith(s,h),this.activateChildRoutes(i,null,o.children)}}else
this.activateChildRoutes(i,null,n)}}class
pg{constructor(i,e){this.routes=i,this.module=e}}function
Ys(t){return"function"==typeof t}function Rr(t){return t instanceof kr}const
Sl=Symbol("INITIAL_VALUE");function xl(){return qi(t=>function MB(...t){let
i,e;return Vr(t[t.length-1])&&(e=t.pop()),"function"==typeof
t[t.length-1]&&(i=t.pop()),1===t.length&&Nr(t[0])&&(t=t[0]),Pd(t,e).lift(new
kB(i))}(t.map(i=>i.pipe(br(1),Ju(Sl)))).pipe(FT((i,e)=>{let n=!1;return
e.reduce((s,r,o)=>s!==Sl?s:(r===Sl&&(n=!0),n||!1!==r&&o!==e.length-1&&!Rr(r)?s:r),i)},Sl),Us(i=>i!==Sl),et(i=>Rr(i)?i:!0===i),br(1)))}class
U8{constructor(){this.outlet=null,this.route=null,this.resolver=null,this.children=new
Dl,this.attachRef=null}}class Dl{constructor(){this.contexts=new
Map}onChildOutletCreated(i,e){const n=this.getOrCreateContext(i);n.outlet=e,this.contex
ts.set(i,n)}onChildOutletDestroyed(i){const
e=this.getContext(i);e&&(e.outlet=null,e.attachRef=null)}onOutletDeactivated(){const
i=this.contexts;return this.contexts=new
Map,i}onOutletReAttached(i){this.contexts=i}getOrCreateContext(i){let
e=this.getContext(i);return e||(e=new U8,this.contexts.set(i,e)),e}getContext(i){return
this.contexts.get(i)||null}}let Ml=(()=>{class
t{constructor(e,n,s,r,o){this.parentContexts=e,this.location=n,this.resolver=s,this.changeDetector=o,this.activated=null,this._activatedRoute=null,this.activateEvents=new
H,this.deactivateEvents=new H,this.attachEvents=new H,this.detachEvents=new
H,this.name=r||Ke,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,n){this.activated=e,this._activatedRoute=n,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,n){if(this.isActivated)throw
new Error("Cannot activate an already activated
outlet");this._activatedRoute=e;const
o=(n=n||this.resolver).resolveComponentFactory(e._futureSnapshot.routeConfig.component),u=this.p
arentContexts.getOrCreateContext(this.name).children,h=new
z8(e,u,this.location.injector);this.activated=this.location.createComponent(o,this.location.length,h),this.changeDetector.markForCheck(),this.activateEvents.emit(this.activated.instance)}}return
t.\u0275fac=function(e){return
new(e||t)(D(Dl),D(vi),D(Va),ua("name"),D(rt))},t.\u0275dir=le({type:t,selectors:[["router-outlet"]],outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"]}),t})();class
z8{constructor(i,e,n){this.route=i,this.childContexts=e,this.parent=n}get(i,e){return
i===Er?this.route:i===Dl?this.childContexts:this.parent.get(i,e)}}let f2=(()=>{class
t{}return t.\u0275fac=function(e){return
new(e||t)},t.\u0275cmp=z({type:t,selectors:[["ng-component"]],decls:1,vars:0,template:function(e,n){1&e&&k(0,"router-outlet")},directives:[Ml],encapsulation:2}),t})();function
g2(t,i=""){for(let e=0;e<t.length;e++){const n=t[e];j8(n,$8(i,n))}}function
j8(t
,i){t.children&&g2(t.children,i)}function $8(t,i){return
i?t||i.path?t&&!i.path?`${t}/`:!t&&i.path?i.path:`${t}/${i.path}`:"":t}function
hg(t){const
i=t.children&&t.children.map(hg),e=i?Object.assign(Object.assign({},t),{children:i}):Object.assign({},t);return!e.component&&(i||e.loadChildren)&&e.outlet&&e.outlet!==Ke&&(e.component=f2),e}function
xi(t){return t.outlet||Ke}function _2(t,i){const e=t.filter(n=>xi(n)===i);return
e.push(...t.filter(n=>xi(n)!==i)),e}const
b2={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function
ud(t,i,e){var
n;if(""===i.path)return"full"===i.pathMatch&&(t.hasChildren()||e.length>0)?Object.assign({},b2):{matched:!0,consumedSegments:[],remainingSegments:e,parameters:{},positionalParamSegments:{}};const
r=(i.matcher||r8)(e,t,i);if(!r)return Object.assign({},b2);const
o={};xn(r.posParams,(h,b)=>{o[b]=h.path});const
u=r.consumed.length>0?Object.assign(Object.assign({},o),r.consumed[r.consumed.length-1].paramete
rs):o;return{matched:!0,consumedSegments:r.consumed,remainingSegments:e.slice(r.consumed.length),parameters:u,positionalParamSegments:null!==(n=r.posParams)&&void
0!==n?n:{}}}function
dd(t,i,e,n,s="corrected"){if(e.length>0&&function Q8(t,i,e){return
e.some(n=>pd(t,i,n)&&xi(n)!==Ke)}(t,e,n)){const o=new Xe(i,function
K8(t,i,e,n){const s={};s[Ke]=n,n._sourceSegment=t,n._segmentIndexShift=i.length;for(const
r of e)if(""===r.path&&xi(r)!==Ke){const o=new
Xe([],{});o._sourceSegment=t,o._segmentIndexShift=i.length,s[xi(r)]=o}return s}(t,i,n,new
Xe(e,t.children)));return
o._sourceSegment=t,o._segmentIndexShift=i.length,{segmentGroup:o,slicedSegments:[]}}if(0===e.length&&function
J8(t,i,e){return e.some(n=>pd(t,i,n))}(t,e,n)){const o=new Xe(t.segments,function
W8(t,i,e,n,s,r){const o={};for(const u of n)if(pd(t,e,u)&&!s[xi(u)]){const h=new
Xe([],{});h._sourceSegment=t,h._segmentIndexShift="legacy"===r?t.segments.length:i.length,o[xi(u)]=h}return
Object.assign(Object.assign({},s),o)}(t,i,e,
n,t.children,s));return
o._sourceSegment=t,o._segmentIndexShift=i.length,{segmentGroup:o,slicedSegments:e}}const
r=new Xe(t.segments,t.children);return
r._sourceSegment=t,r._segmentIndexShift=i.length,{segmentGroup:r,slicedSegments:e}}function
pd(t,i,e){return(!(t.hasChildren()||i.length>0)||"full"!==e.pathMatch)&&""===e.path}function
v2(t,i,e,n){return!!(xi(t)===n||n!==Ke&&pd(i,e,t))&&("**"===t.path||ud(i,t,e).matched)}function
C2(t,i,e){return 0===i.length&&!t.children[e]}class
hd{constructor(i){this.segmentGroup=i||null}}class
y2{constructor(i){this.urlTree=i}}function kl(t){return tl(new hd(t))}function
w2(t){return tl(new y2(t))}function Y8(t){return tl(new Error(`Only absolute redirects can
have named outlets. redirectTo: '${t}'`))}class
eH{constructor(i,e,n,s,r){this.configLoader=e,this.urlSerializer=n,this.urlTree=s,this.config=r,this.allowRedirects=!0,this.ngModule=i.get(_s)}apply(){const
i=dd(this.urlTree.root,[],[],this.config).segmentGroup,e=new Xe(i.segments,i.children)
;return
this.expandSegmentGroup(this.ngModule,this.config,e,Ke).pipe(et(r=>this.createUrlTree(mg(r),this.urlTree.queryParams,this.urlTree.fragment))).pipe(Mr(r=>{if(r
instanceof y2)return this.allowRedirects=!1,this.match(r.urlTree);throw r instanceof
hd?this.noMatchError(r):r}))}match(i){return
this.expandSegmentGroup(this.ngModule,this.config,i.root,Ke).pipe(et(s=>this.createUrlTree(mg(s),i.queryParams,i.fragment))).pipe(Mr(s=>{throw
s instanceof hd?this.noMatchError(s):s}))}noMatchError(i){return new Error(`Cannot match
any routes. URL Segment: '${i.segmentGroup}'`)}createUrlTree(i,e,n){const
s=i.segments.length>0?new Xe([],{[Ke]:i}):i;return new
kr(s,e,n)}expandSegmentGroup(i,e,n,s){return
0===n.segments.length&&n.hasChildren()?this.expandChildren(i,e,n).pipe(et(r=>new
Xe([],r))):this.expandSegment(i,n,e,n.segments,s,!0)}expandChildren(i,e,n){const
s=[];for(const r of
Object.keys(n.children))"primary"===r?s.unshift(r):s.push(r);return
Mn(s).pipe(_r(r=>{const o=n.children[r],u=_2
(e,r);return
this.expandSegmentGroup(i,u,o,r).pipe(et(h=>({segment:h,outlet:r})))}),FT((r,o)=>(r[o.outlet]=o.segment,r),{}),function
qB(t,i){const e=arguments.length>=2;return
n=>n.pipe(t?Us((s,r)=>t(s,r,n)):Bl,eg(1),e?VT(i):NT(()=>new
td))}())}expandSegment(i,e,n,s,r,o){return
Mn(n).pipe(_r(u=>this.expandSegmentAgainstRoute(i,e,n,u,s,r,o).pipe(Mr(b=>{if(b
instanceof hd)return oe(null);throw b}))),No(u=>!!u),Mr((u,h)=>{if(u instanceof
td||"EmptyError"===u.name)return C2(e,s,r)?oe(new Xe([],{})):kl(e);throw
u}))}expandSegmentAgainstRoute(i,e,n,s,r,o,u){return v2(s,e,r,o)?void
0===s.redirectTo?this.matchSegmentAgainstRoute(i,e,s,r,o):u&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(i,e,n,s,r,o):kl(e):kl(e)}expandSegmentAgainstRouteUsingRedirect(i,e,n,s,r,o){return"**"===s.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(i,n,s,o):this.expandRegularSegmentAgainstRouteUsingRedirect(i,e,n,s,r,o)}expandWildCardWithParamsAgainstRouteUsingRedirect(i,e,n,s){const
r=this.applyRedirectCommands([],n.redirectTo,{});return
n.redirectTo.startsWith("/")?w2(r):this.lineralizeSegments(n,r).pipe(yn(o=>{const
u=new Xe(o,{});return
this.expandSegment(i,u,e,o,s,!1)}))}expandRegularSegmentAgainstRouteUsingRedirect(i,e,n,s,r,o){const{matched:u,consumedSegments:h,remainingSegments:b,positionalParamSegments:y}=ud(e,s,r);if(!u)return
kl(e);const w=this.applyRedirectCommands(h,s.redirectTo,y);return
s.redirectTo.startsWith("/")?w2(w):this.lineralizeSegments(s,w).pipe(yn(M=>this.expandSegment(i,e,n,M.concat(b),o,!1)))}matchSegmentAgainstRoute(i,e,n,s,r){if("**"===n.path)return
n.loadChildren?(n._loadedConfig?oe(n._loadedConfig):this.configLoader.load(i.injector,n)).pipe(et(w=>(n._loadedConfig=w,new
Xe(s,{})))):oe(new
Xe(s,{}));const{matched:o,consumedSegments:u,remainingSegments:h}=ud(e,n,s);return
o?this.getChildConfig(i,n,s).pipe(yn(y=>{const
w=y.module,M=y.routes,{segmentGroup:E,slicedSegments:L}=dd(e,u,h,M),O=new
Xe(E.segments,E.children);if(0===L.length&&O
.hasChildren())return this.expandChildren(w,M,O).pipe(et(J=>new
Xe(u,J)));if(0===M.length&&0===L.length)return oe(new Xe(u,{}));const
N=xi(n)===r;return this.expandSegment(w,O,M,L,N?Ke:r,!0).pipe(et(P=>new
Xe(u.concat(P.segments),P.children)))})):kl(e)}getChildConfig(i,e,n){return
e.children?oe(new pg(e.children,i)):e.loadChildren?void
0!==e._loadedConfig?oe(e._loadedConfig):this.runCanLoadGuards(i.injector,e,n).pipe(yn(s=>s?this.configLoader.load(i.injector,e).pipe(et(r=>(e._loadedConfig=r,r))):function
Z8(t){return tl(ng(`Cannot load children because the guard of the route "path:
'${t.path}'" returned false`))}(e))):oe(new
pg([],i))}runCanLoadGuards(i,e,n){const s=e.canLoad;if(!s||0===s.length)return
oe(!0);const r=s.map(o=>{const u=i.get(o);let h;if(function B8(t){return
t&&Ys(t.canLoad)}(u))h=u.canLoad(e,n);else{if(!Ys(u))throw new Error("Invalid
CanLoad guard");h=u(e,n)}return ls(h)});return
oe(r).pipe(xl(),li(o=>{if(!Rr(o))return;const u=ng(`Redirecting to
"${this.urlSerialize
r.serialize(o)}"`);throw u.url=o,u}),et(o=>!0===o))}lineralizeSegments(i,e){let
n=[],s=e.root;for(;;){if(n=n.concat(s.segments),0===s.numberOfChildren)return
oe(n);if(s.numberOfChildren>1||!s.children[Ke])return
Y8(i.redirectTo);s=s.children[Ke]}}applyRedirectCommands(i,e,n){return
this.applyRedirectCreatreUrlTree(e,this.urlSerializer.parse(e),i,n)}applyRedirectCreatreUrlTree(i,e,n,s){const
r=this.createSegmentGroup(i,e.root,n,s);return new
kr(r,this.createQueryParams(e.queryParams,this.urlTree.queryParams),e.fragment)}createQueryParams(i,e){const
n={};return xn(i,(s,r)=>{if("string"==typeof
s&&s.startsWith(":")){const u=s.substring(1);n[r]=e[u]}else
n[r]=s}),n}createSegmentGroup(i,e,n,s){const r=this.createSegments(i,e.segments,n,s);let
o={};return xn(e.children,(u,h)=>{o[h]=this.createSegmentGroup(i,u,n,s)}),new
Xe(r,o)}createSegments(i,e,n,s){return
e.map(r=>r.path.startsWith(":")?this.findPosParam(i,r,s):this.findOrReturn(r,n))}findPosParam(i,e,n){const
s=n[e.path.substring(1)];
if(!s)throw new Error(`Cannot redirect to '${i}'. Cannot find
'${e.path}'.`);return s}findOrReturn(i,e){let n=0;for(const s of
e){if(s.path===i.path)return e.splice(n),s;n++}return i}}function mg(t){const
i={};for(const n of Object.keys(t.children)){const
r=mg(t.children[n]);(r.segments.length>0||r.hasChildren())&&(i[n]=r)}return
function tH(t){if(1===t.numberOfChildren&&t.children[Ke]){const
i=t.children[Ke];return new Xe(t.segments.concat(i.segments),i.children)}return t}(new
Xe(t.segments,i))}class
T2{constructor(i){this.path=i,this.route=this.path[this.path.length-1]}}class
md{constructor(i,e){this.component=i,this.route=e}}function iH(t,i,e){const
n=t._root;return Il(n,i?i._root:null,e,[n.value])}function fd(t,i,e){const n=function
rH(t){if(!t)return null;for(let i=t.parent;i;i=i.parent){const
e=i.routeConfig;if(e&&e._loadedConfig)return e._loadedConfig}return
null}(i);return(n?n.module.injector:e).get(t)}function
Il(t,i,e,n,s={canDeactivateChecks:[],canActivateChecks:[]}){cons
t r=Bo(i);return t.children.forEach(o=>{(function
oH(t,i,e,n,s={canDeactivateChecks:[],canActivateChecks:[]}){const
r=t.value,o=i?i.value:null,u=e?e.getContext(t.value.outlet):null;if(o&&r.routeConfig===o.routeConfig){const
h=function aH(t,i,e){if("function"==typeof e)return
e(t,i);switch(e){case"pathParamsChange":return!Ir(t.url,i.url);case"pathParamsOrQueryParamsChange":return!Ir(t.url,i.url)||!as(t.queryParams,i.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!lg(t,i)||!as(t.queryParams,i.queryParams);default:return!lg(t,i)}}(o,r,r.routeConfig.runGuardsAndResolvers);h?s.canActivateChecks.push(new
T2(n)):(r.data=o.data,r._resolvedData=o._resolvedData),Il(t,i,r.component?u?u.children:null:e,n,s),h&&u&&u.outlet&&u.outlet.isActivated&&s.canDeactivateChecks.push(new
md(u.outlet.component,o))}else o&&El(i,u,s),s.canActivateChecks.push(new
T2(n)),Il(t,null,r.component?u?u.children:null:e,n,s)})(o,r[o.value.outlet],e,n.concat([o.value]),s),delete
r[o.value.outlet
]}),xn(r,(o,u)=>El(o,e.getContext(u),s)),s}function El(t,i,e){const
n=Bo(t),s=t.value;xn(n,(r,o)=>{El(r,s.component?i?i.children.getContext(o):null:i,e)}),e.canDeactivateChecks.push(new
md(s.component&&i&&i.outlet&&i.outlet.isActivated?i.outlet.component:null,s))}class
gH{}function S2(t){return new Je(i=>i.error(t))}class
bH{constructor(i,e,n,s,r,o){this.rootComponentType=i,this.config=e,this.urlTree=n,this.url=s,this.paramsInheritanceStrategy=r,this.relativeLinkResolution=o}recognize(){const
i=dd(this.urlTree.root,[],[],this.config.filter(o=>void
0===o.redirectTo),this.relativeLinkResolution).segmentGroup,e=this.processSegmentGroup(this.config,i,Ke);if(null===e)return
null;const n=new
ad([],Object.freeze({}),Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,{},Ke,this.rootComponentType,null,this.urlTree.root,-1,{}),s=new
Ds(n,e),r=new l2(this.url,s);return
this.inheritParamsAndData(r._root),r}inheritParamsAndData(i){const
e=i.value,n=a2(e,this.paramsIn
heritanceStrategy);e.params=Object.freeze(n.params),e.data=Object.freeze(n.data),i.children.forEach(s=>this.inheritParamsAndData(s))}processSegmentGroup(i,e,n){return
0===e.segments.length&&e.hasChildren()?this.processChildren(i,e):this.processSegment(i,e,e.segments,n)}processChildren(i,e){const
n=[];for(const r of Object.keys(e.children)){const
o=e.children[r],u=_2(i,r),h=this.processSegmentGroup(u,o,r);if(null===h)return
null;n.push(...h)}const s=x2(n);return function
vH(t){t.sort((i,e)=>i.value.outlet===Ke?-1:e.value.outlet===Ke?1:i.value.outlet.localeCompare(e.value.outlet))}(s),s}processSegment(i,e,n,s){for(const
r of i){const o=this.processSegmentAgainstRoute(r,e,n,s);if(null!==o)return o}return
C2(e,n,s)?[]:null}processSegmentAgainstRoute(i,e,n,s){if(i.redirectTo||!v2(i,e,n,s))return
null;let r,o=[],u=[];if("**"===i.path){const
E=n.length>0?$T(n).parameters:{};r=new
ad(n,E,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,k2(i),xi(i),i.component,
i,D2(e),M2(e)+n.length,I2(i))}else{const E=ud(e,i,n);if(!E.matched)return
null;o=E.consumedSegments,u=E.remainingSegments,r=new
ad(o,E.parameters,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,k2(i),xi(i),i.component,i,D2(e),M2(e)+o.length,I2(i))}const
h=function CH(t){return
t.children?t.children:t.loadChildren?t._loadedConfig.routes:[]}(i),{segmentGroup:b,slicedSegments:y}=dd(e,o,u,h.filter(E=>void
0===E.redirectTo),this.relativeLinkResolution);if(0===y.length&&b.hasChildren()){const
E=this.processChildren(h,b);return null===E?null:[new
Ds(r,E)]}if(0===h.length&&0===y.length)return[new Ds(r,[])];const
w=xi(i)===s,M=this.processSegment(h,b,y,w?Ke:s);return null===M?null:[new
Ds(r,M)]}}function yH(t){const i=t.value.routeConfig;return
i&&""===i.path&&void 0===i.redirectTo}function x2(t){const
i=[],e=new Set;for(const n of t){if(!yH(n)){i.push(n);continue}const
s=i.find(r=>n.value.routeConfig===r.value.routeConfig);void
0!==s?(s.children.push(...n.chi
ldren),e.add(s)):i.push(n)}for(const n of e){const s=x2(n.children);i.push(new
Ds(n.value,s))}return i.filter(n=>!e.has(n))}function D2(t){let
i=t;for(;i._sourceSegment;)i=i._sourceSegment;return i}function M2(t){let
i=t,e=i._segmentIndexShift?i._segmentIndexShift:0;for(;i._sourceSegment;)i=i._sourceSegment,e+=i._segmentIndexShift?i._segmentIndexShift:0;return
e-1}function k2(t){return t.data||{}}function I2(t){return t.resolve||{}}function
E2(t){return[...Object.keys(t),...Object.getOwnPropertySymbols(t)]}function fg(t){return
qi(i=>{const e=t(i);return e?Mn(e).pipe(et(()=>i)):oe(i)})}class IH extends class
kH{shouldDetach(i){return!1}store(i,e){}shouldAttach(i){return!1}retrieve(i){return
null}shouldReuseRoute(i,e){return i.routeConfig===e.routeConfig}}{}const gg=new
be("ROUTES");class
R2{constructor(i,e,n,s){this.injector=i,this.compiler=e,this.onLoadStartListener=n,this.onLoadEndListener=s}load(i,e){if(e._loader$)return
e._loader$;this.onLoadStartListener&&this.onLoadStartListen
er(e);const
s=this.loadModuleFactory(e.loadChildren).pipe(et(r=>{this.onLoadEndListener&&this.onLoadEndListener(e);const
o=r.create(i);return new pg(jT(o.injector.get(gg,void
0,xe.Self|xe.Optional)).map(hg),o)}),Mr(r=>{throw e._loader$=void 0,r}));return
e._loader$=new Fg(s,()=>new ct).pipe(Fd()),e._loader$}loadModuleFactory(i){return
ls(i()).pipe(yn(e=>e instanceof
iC?oe(e):Mn(this.compiler.compileModuleAsync(e))))}}class
RH{shouldProcessUrl(i){return!0}extract(i){return i}merge(i,e){return i}}function
LH(t){throw t}function OH(t,i,e){return i.parse("/")}function L2(t,i){return
oe(null)}const
AH={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},PH={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};let
It=(()=>{class
t{constructor(e,n,s,r,o,u,h){this.rootComponentType=e,this.urlSerializer=n,this.rootContexts=s,this.location=r,this.config=h,this.lastSuccessfulNavigation=null,this.currentNavigation=null,this.disposed=!1,this.nav
igationId=0,this.currentPageId=0,this.isNgZoneEnabled=!1,this.events=new
ct,this.errorHandler=LH,this.malformedUriErrorHandler=OH,this.navigated=!1,this.lastSuccessfulId=-1,this.hooks={beforePreactivation:L2,afterPreactivation:L2},this.urlHandlingStrategy=new
RH,this.routeReuseStrategy=new
IH,this.onSameUrlNavigation="ignore",this.paramsInheritanceStrategy="emptyOnly",this.urlUpdateStrategy="deferred",this.relativeLinkResolution="corrected",this.canceledNavigationResolution="replace",this.ngModule=o.get(_s),this.console=o.get(DR);const
w=o.get(nt);this.isNgZoneEnabled=w instanceof
nt&&nt.isInAngularZone(),this.resetConfig(h),this.currentUrlTree=function
a8(){return new kr(new
Xe([],{}),{},null)}(),this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.configLoader=new
R2(o,u,M=>this.triggerEvent(new HT(M)),M=>this.triggerEvent(new
qT(M))),this.routerState=o2(this.currentUrlTree,this.rootComponentType),this.transitions=new
zi({id:0,targetPageId:0,currentUrlT
ree: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 n=this.events;return
e.pipe(Us(s=>0!==s.id),et(s=>Object.assign(Object.assign({},s),{extractedUrl:this.urlHandlingStrategy.extract(s.rawUrl)})),qi(s=>{let
r=!1,o=!1;return
oe(s).pipe(li(u=>{this.currentNavigation={id:u.id,initialUrl:u.currentRawUrl,extractedU
rl:u.extractedUrl,trigger:u.source,extras:u.extras,previousNavigation:this.lastSuccessfulNavigation?Object.assign(Object.assign({},this.lastSuccessfulNavigation),{previousNavigation:null}):null}}),qi(u=>{const
h=this.browserUrlTree.toString(),b=!this.navigated||u.extractedUrl.toString()!==h||h!==this.currentUrlTree.toString();if(("reload"===this.onSameUrlNavigation||b)&&this.urlHandlingStrategy.shouldProcessUrl(u.rawUrl))return
O2(u.source)&&(this.browserUrlTree=u.extractedUrl),oe(u).pipe(qi(w=>{const
M=this.transitions.getValue();return n.next(new
tg(w.id,this.serializeUrl(w.extractedUrl),w.source,w.restoredState)),M!==this.transitions.getValue()?Io:Promise.resolve(w)}),function
nH(t,i,e,n){return qi(s=>function X8(t,i,e,n,s){return new
eH(t,i,e,n,s).apply()}(t,i,e,s.extractedUrl,n).pipe(et(r=>Object.assign(Object.assign({},s),{urlAfterRedirects:r}))))}(this.ngModule.injector,this.configLoader,this.urlSerializer,this.config),li(w=>{this.currentNavigation=Object.assign(Object.assign
({},this.currentNavigation),{finalUrl:w.urlAfterRedirects})}),function
wH(t,i,e,n,s){return yn(r=>function
_H(t,i,e,n,s="emptyOnly",r="legacy"){try{const o=new
bH(t,i,e,n,s,r).recognize();return null===o?S2(new gH):oe(o)}catch(o){return
S2(o)}}(t,i,r.urlAfterRedirects,e(r.urlAfterRedirects),n,s).pipe(et(o=>Object.assign(Object.assign({},r),{targetSnapshot:o}))))}(this.rootComponentType,this.config,w=>this.serializeUrl(w),this.paramsInheritanceStrategy,this.relativeLinkResolution),li(w=>{if("eager"===this.urlUpdateStrategy){if(!w.extras.skipLocationChange){const
E=this.urlHandlingStrategy.merge(w.urlAfterRedirects,w.rawUrl);this.setBrowserUrl(E,w)}this.browserUrlTree=w.urlAfterRedirects}const
M=new
KB(w.id,this.serializeUrl(w.extractedUrl),this.serializeUrl(w.urlAfterRedirects),w.targetSnapshot);n.next(M)}));if(b&&this.rawUrlTree&&this.urlHandlingStrategy.shouldProcessUrl(this.rawUrlTree)){const{id:M,extractedUrl:E,source:L,restoredState:O,extras:N}=u,G=new
tg(M,this.serializeUrl(E),
L,O);n.next(G);const P=o2(E,this.rootComponentType).snapshot;return
oe(Object.assign(Object.assign({},u),{targetSnapshot:P,urlAfterRedirects:E,extras:Object.assign(Object.assign({},N),{skipLocationChange:!1,replaceUrl:!1})}))}return
this.rawUrlTree=u.rawUrl,u.resolve(null),Io}),fg(u=>{const{targetSnapshot:h,id:b,extractedUrl:y,rawUrl:w,extras:{skipLocationChange:M,replaceUrl:E}}=u;return
this.hooks.beforePreactivation(h,{navigationId:b,appliedUrlTree:y,rawUrlTree:w,skipLocationChange:!!M,replaceUrl:!!E})}),li(u=>{const
h=new
QB(u.id,this.serializeUrl(u.extractedUrl),this.serializeUrl(u.urlAfterRedirects),u.targetSnapshot);this.triggerEvent(h)}),et(u=>Object.assign(Object.assign({},u),{guards:iH(u.targetSnapshot,u.currentSnapshot,this.rootContexts)})),function
lH(t,i){return
yn(e=>{const{targetSnapshot:n,currentSnapshot:s,guards:{canActivateChecks:r,canDeactivateChecks:o}}=e;return
0===o.length&&0===r.length?oe(Object.assign(Object.assign({},e),{guardsResult:!0})):function
cH(t,i,e,n
){return Mn(t).pipe(yn(s=>function fH(t,i,e,n,s){const
r=i&&i.routeConfig?i.routeConfig.canDeactivate:null;return
r&&0!==r.length?oe(r.map(u=>{const h=fd(u,i,s);let b;if(function G8(t){return
t&&Ys(t.canDeactivate)}(h))b=ls(h.canDeactivate(t,i,e,n));else{if(!Ys(h))throw new
Error("Invalid CanDeactivate guard");b=ls(h(t,i,e,n))}return
b.pipe(No())})).pipe(xl()):oe(!0)}(s.component,s.route,e,i,n)),No(s=>!0!==s,!0))}(o,n,s,t).pipe(yn(u=>u&&function
V8(t){return"boolean"==typeof t}(u)?function uH(t,i,e,n){return
Mn(i).pipe(_r(s=>el(function pH(t,i){return null!==t&&i&&i(new
XB(t)),oe(!0)}(s.route.parent,n),function dH(t,i){return
null!==t&&i&&i(new t8(t)),oe(!0)}(s.route,n),function mH(t,i,e){const
n=i[i.length-1],r=i.slice(0,i.length-1).reverse().map(o=>function sH(t){const
i=t.routeConfig?t.routeConfig.canActivateChild:null;return
i&&0!==i.length?{node:t,guards:i}:null}(o)).filter(o=>null!==o).map(o=>cu(()=>oe(o.guards.map(h=>{const
b=fd(h,o.node,e);let y;if(function q8(t){return t&&Y
s(t.canActivateChild)}(b))y=ls(b.canActivateChild(n,t));else{if(!Ys(b))throw new
Error("Invalid CanActivateChild guard");y=ls(b(n,t))}return
y.pipe(No())})).pipe(xl())));return oe(r).pipe(xl())}(t,s.path,e),function hH(t,i,e){const
n=i.routeConfig?i.routeConfig.canActivate:null;if(!n||0===n.length)return oe(!0);const
s=n.map(r=>cu(()=>{const o=fd(r,i,e);let u;if(function H8(t){return
t&&Ys(t.canActivate)}(o))u=ls(o.canActivate(i,t));else{if(!Ys(o))throw new
Error("Invalid CanActivate guard");u=ls(o(i,t))}return u.pipe(No())}));return
oe(s).pipe(xl())}(t,s.route,e))),No(s=>!0!==s,!0))}(n,r,t,i):oe(u)),et(u=>Object.assign(Object.assign({},e),{guardsResult:u})))})}(this.ngModule.injector,u=>this.triggerEvent(u)),li(u=>{if(Rr(u.guardsResult)){const
b=ng(`Redirecting to "${this.serializeUrl(u.guardsResult)}"`);throw
b.url=u.guardsResult,b}const h=new
JB(u.id,this.serializeUrl(u.extractedUrl),this.serializeUrl(u.urlAfterRedirects),u.targetSnapshot,!!u.guardsResult);this.triggerEvent(h)}),
Us(u=>!!u.guardsResult||(this.restoreHistory(u),this.cancelNavigationTransition(u,""),!1)),fg(u=>{if(u.guards.canActivateChecks.length)return
oe(u).pipe(li(h=>{const b=new
YB(h.id,this.serializeUrl(h.extractedUrl),this.serializeUrl(h.urlAfterRedirects),h.targetSnapshot);this.triggerEvent(b)}),qi(h=>{let
b=!1;return oe(h).pipe(function TH(t,i){return
yn(e=>{const{targetSnapshot:n,guards:{canActivateChecks:s}}=e;if(!s.length)return
oe(e);let r=0;return Mn(s).pipe(_r(o=>function SH(t,i,e,n){return function
xH(t,i,e,n){const s=E2(t);if(0===s.length)return oe({});const r={};return
Mn(s).pipe(yn(o=>function DH(t,i,e,n){const s=fd(t,i,n);return
ls(s.resolve?s.resolve(i,e):s(i,e))}(t[o],i,e,n).pipe(li(u=>{r[o]=u}))),eg(1),yn(()=>E2(r).length===s.length?oe(r):Io))}(t._resolve,t,i,n).pipe(et(r=>(t._resolvedData=r,t.data=Object.assign(Object.assign({},t.data),a2(t,e).resolve),null)))}(o.route,n,t,i)),li(()=>r++),eg(1),yn(o=>r===s.length?oe(e):Io))})}(this.paramsInheritanceStrategy,this.ngModul
e.injector),li({next:()=>b=!0,complete:()=>{b||(this.restoreHistory(h),this.cancelNavigationTransition(h,"At
least one route resolver didn't emit any value."))}}))}),li(h=>{const b=new
ZB(h.id,this.serializeUrl(h.extractedUrl),this.serializeUrl(h.urlAfterRedirects),h.targetSnapshot);this.triggerEvent(b)}))}),fg(u=>{const{targetSnapshot:h,id:b,extractedUrl:y,rawUrl:w,extras:{skipLocationChange:M,replaceUrl:E}}=u;return
this.hooks.afterPreactivation(h,{navigationId:b,appliedUrlTree:y,rawUrlTree:w,skipLocationChange:!!M,replaceUrl:!!E})}),et(u=>{const
h=function x8(t,i,e){const n=wl(t,i._root,e?e._root:void 0);return new
r2(n,i)}(this.routeReuseStrategy,u.targetSnapshot,u.currentRouterState);return
Object.assign(Object.assign({},u),{targetRouterState:h})}),li(u=>{this.currentUrlTree=u.urlAfterRedirects,this.rawUrlTree=this.urlHandlingStrategy.merge(u.urlAfterRedirects,u.rawUrl),this.routerState=u.targetRouterState,"deferred"===this.urlUpdateStrategy&&(u.extras.skipLocationChange||this.
setBrowserUrl(this.rawUrlTree,u),this.browserUrlTree=u.urlAfterRedirects)}),((t,i,e)=>et(n=>(new
F8(i,n.targetRouterState,n.currentRouterState,e).activate(t),n)))(this.rootContexts,this.routeReuseStrategy,u=>this.triggerEvent(u)),li({next(){r=!0},complete(){r=!0}}),function
zB(t){return i=>i.lift(new jB(t))}(()=>{var
u;r||o||this.cancelNavigationTransition(s,`Navigation ID ${s.id} is not equal to the
current navigation id ${this.navigationId}`),(null===(u=this.currentNavigation)||void
0===u?void
0:u.id)===s.id&&(this.currentNavigation=null)}),Mr(u=>{if(o=!0,function
s8(t){return t&&t[UT]}(u)){const
h=Rr(u.url);h||(this.navigated=!0,this.restoreHistory(s,!0));const b=new
BT(s.id,this.serializeUrl(s.extractedUrl),u.message);n.next(b),h?setTimeout(()=>{const
y=this.urlHandlingStrategy.merge(u.url,this.rawUrlTree),w={skipLocationChange:s.extras.skipLocationChange,replaceUrl:"eager"===this.urlUpdateStrategy||O2(s.source)};this.scheduleNavigation(y,"imperative",null,w,{resolve:s.resolve,r
eject:s.reject,promise:s.promise})},0):s.resolve(!1)}else{this.restoreHistory(s,!0);const
h=new
WB(s.id,this.serializeUrl(s.extractedUrl),u);n.next(h);try{s.resolve(this.errorHandler(u))}catch(b){s.reject(b)}}return
Io}))}))}resetRootComponentType(e){this.rootComponentType=e,this.routerState.root.component=this.rootComponentType}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
n="popstate"===e.type?"popstate":"hashchange";"popstate"===n&&setTimeout(()=>{var
s;const r={replaceUrl:!0},o=(null===(s=e.state)||void 0===s?void
0:s.navigationId)?e.state:null;if(o){const h=Object.assign({},o);delete
h.navigationId,delete
h.\u0275routerPageId,0!==Object.keys(h).length&&(r.state=h)}const u=this
.parseUrl(e.url);this.scheduleNavigation(u,n,o,r)},0)}))}get url(){return
this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return
this.currentNavigation}triggerEvent(e){this.events.next(e)}resetConfig(e){g2(e),this.config=e.map(hg),this.navigated=!1,this.lastSuccessfulId=-1}ngOnDestroy(){this.dispose()}dispose(){this.transitions.complete(),this.locationSubscription&&(this.locationSubscription.unsubscribe(),this.locationSubscription=void
0),this.disposed=!0}createUrlTree(e,n={}){const{relativeTo:s,queryParams:r,fragment:o,queryParamsHandling:u,preserveFragment:h}=n,b=s||this.routerState.root,y=h?this.currentUrlTree.fragment:o;let
w=null;switch(u){case"merge":w=Object.assign(Object.assign({},this.currentUrlTree.queryParams),r);break;case"preserve":w=this.currentUrlTree.queryParams;break;default:w=r||null}return
null!==w&&(w=this.removeEmptyProps(w)),function
k8(t,i,e,n,s){if(0===e.length)return cg(i.root,i.root,i.root,n,s);const r=function
I8(t){if("string"==typeof t[0]&&
1===t.length&&"/"===t[0])return new d2(!0,0,t);let i=0,e=!1;const
n=t.reduce((s,r,o)=>{if("object"==typeof
r&&null!=r){if(r.outlets){const u={};return
xn(r.outlets,(h,b)=>{u[b]="string"==typeof
h?h.split("/"):h}),[...s,{outlets:u}]}if(r.segmentPath)return[...s,r.segmentPath]}return"string"!=typeof
r?[...s,r]:0===o?(r.split("/").forEach((u,h)=>{0==h&&"."===u||(0==h&&""===u?e=!0:".."===u?i++:""!=u&&s.push(u))}),s):[...s,r]},[]);return
new d2(e,i,n)}(e);if(r.toRoot())return cg(i.root,i.root,new Xe([],{}),n,s);const
o=function E8(t,i,e){if(t.isAbsolute)return new
ug(i.root,!0,0);if(-1===e.snapshot._lastPathIndex){const r=e.snapshot._urlSegment;return
new ug(r,r===i.root,0)}const n=ld(t.commands[0])?0:1;return function R8(t,i,e){let
n=t,s=i,r=e;for(;r>s;){if(r-=s,n=n.parent,!n)throw new Error("Invalid number of
'../'");s=n.segments.length}return new
ug(n,!1,s-r)}(e.snapshot._urlSegment,e.snapshot._lastPathIndex+n,t.numberOfDoubleDots)}(r,i,t),u=o.processChildren?cd(o.segmentGroup,o.index
,r.commands):p2(o.segmentGroup,o.index,r.commands);return
cg(i.root,o.segmentGroup,u,n,s)}(b,this.currentUrlTree,e,w,null!=y?y:null)}navigateByUrl(e,n={skipLocationChange:!1}){const
s=Rr(e)?e:this.parseUrl(e),r=this.urlHandlingStrategy.merge(s,this.rawUrlTree);return
this.scheduleNavigation(r,"imperative",null,n)}navigate(e,n={skipLocationChange:!1}){return
function FH(t){for(let i=0;i<t.length;i++){const e=t[i];if(null==e)throw new Error(`The
requested path contains ${e} segment at index
${i}`)}}(e),this.navigateByUrl(this.createUrlTree(e,n),n)}serializeUrl(e){return
this.urlSerializer.serialize(e)}parseUrl(e){let
n;try{n=this.urlSerializer.parse(e)}catch(s){n=this.malformedUriErrorHandler(s,this.urlSerializer,e)}return
n}isActive(e,n){let
s;if(s=!0===n?Object.assign({},AH):!1===n?Object.assign({},PH):n,Rr(e))return
KT(this.currentUrlTree,e,s);const r=this.parseUrl(e);return
KT(this.currentUrlTree,r,s)}removeEmptyProps(e){return
Object.keys(e).reduce((n,s)=>{const r=e[s];return nul
l!=r&&(n[s]=r),n},{})}processNavigations(){this.navigations.subscribe(e=>{this.navigated=!0,this.lastSuccessfulId=e.id,this.currentPageId=e.targetPageId,this.events.next(new
vl(e.id,this.serializeUrl(e.extractedUrl),this.serializeUrl(this.currentUrlTree))),this.lastSuccessfulNavigation=this.currentNavigation,e.resolve(!0)},e=>{this.console.warn(`Unhandled
Navigation Error: ${e}`)})}scheduleNavigation(e,n,s,r,o){var u,h;if(this.disposed)return
Promise.resolve(!1);let b,y,w;o?(b=o.resolve,y=o.reject,w=o.promise):w=new
Promise((L,O)=>{b=L,y=O});const M=++this.navigationId;let
E;return"computed"===this.canceledNavigationResolution?(0===this.currentPageId&&(s=this.location.getState()),E=s&&s.\u0275routerPageId?s.\u0275routerPageId:r.replaceUrl||r.skipLocationChange?null!==(u=this.browserPageId)&&void
0!==u?u:0:(null!==(h=this.browserPageId)&&void
0!==h?h:0)+1):E=0,this.setTransition({id:M,targetPageId:E,source:n,restoredState:s,currentUrlTree:this.currentUrlTree,currentRawUrl:this.rawUrl
Tree,rawUrl:e,extras:r,resolve:b,reject:y,promise:w,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),w.catch(L=>Promise.reject(L))}setBrowserUrl(e,n){const
s=this.urlSerializer.serialize(e),r=Object.assign(Object.assign({},n.extras.state),this.generateNgRouterState(n.id,n.targetPageId));this.location.isCurrentPathEqualTo(s)||n.extras.replaceUrl?this.location.replaceState(s,"",r):this.location.go(s,"",r)}restoreHistory(e,n=!1){var
s,r;if("computed"===this.canceledNavigationResolution){const
o=this.currentPageId-e.targetPageId;"popstate"!==e.source&&"eager"!==this.urlUpdateStrategy&&this.currentUrlTree!==(null===(s=this.currentNavigation)||void
0===s?void
0:s.finalUrl)||0===o?this.currentUrlTree===(null===(r=this.currentNavigation)||void
0===r?void
0:r.finalUrl)&&0===o&&(this.resetState(e),this.browserUrlTree=e.currentUrlTree,this.resetUrlToCurrentUrlTree()):this.location.historyGo(o)}else"replace"===this.canceledNavigationResolution&&(n&&this.resetState
(e),this.resetUrlToCurrentUrlTree())}resetState(e){this.routerState=e.currentRouterState,this.currentUrlTree=e.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,e.rawUrl)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}cancelNavigationTransition(e,n){const
s=new
BT(e.id,this.serializeUrl(e.extractedUrl),n);this.triggerEvent(s),e.resolve(!1)}generateNgRouterState(e,n){return"computed"===this.canceledNavigationResolution?{navigationId:e,\u0275routerPageId:n}:{navigationId:e}}}return
t.\u0275fac=function(e){Sh()},t.\u0275prov=X({token:t,factory:t.\u0275fac}),t})();function
O2(t){return"imperative"!==t}let gd=(()=>{class
t{constructor(e,n,s,r,o){this.router=e,this.route=n,this.tabIndexAttribute=s,this.renderer=r,this.el=o,this.commands=null,this.onChanges=new
ct,this.setTabIndexIfNotOnNativeEl("0")}setTabIndexIfNotOnNativeEl(e){if(n
ull!=this.tabIndexAttribute)return;const
n=this.renderer,s=this.el.nativeElement;null!==e?n.setAttribute(s,"tabindex",e):n.removeAttribute(s,"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:qo(this.skipLocationChange),replaceUrl:qo(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:qo(this.preserveFragment)})}}return
t.\u0275fac=function(e){return
new(e||t)(D(It),D(Er),ua("tabindex"),D(gn),D(De))},t.\u0275dir=le({type:t,selectors:[["","routerLink","",5,"a",
5,"area"]],hostBindings:function(e,n){1&e&&C("click",function(){return
n.onClick()})},inputs:{queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",preserveFragment:"preserveFragment",skipLocationChange:"skipLocationChange",replaceUrl:"replaceUrl",state:"state",relativeTo:"relativeTo",routerLink:"routerLink"},features:[fn]}),t})(),Ho=(()=>{class
t{constructor(e,n,s){this.router=e,this.route=n,this.locationStrategy=s,this.commands=null,this.href=null,this.onChanges=new
ct,this.subscription=e.events.subscribe(r=>{r instanceof
vl&&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,n,s,r,o){if(0!==e||n||s||r||o||"string"==typeof
this.target&&"_self"!=this.target||null===this.urlTree)return!0;const
u={skipLocationChange:qo(this.skipLocationChange),replaceUrl:qo(this.replaceUrl),sta
te:this.state};return
this.router.navigateByUrl(this.urlTree,u),!1}updateTargetUrlAndHref(){this.href=null!==this.urlTree?this.locationStrategy.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:qo(this.preserveFragment)})}}return
t.\u0275fac=function(e){return
new(e||t)(D(It),D(Er),D(ko))},t.\u0275dir=le({type:t,selectors:[["a","routerLink",""],["area","routerLink",""]],hostVars:2,hostBindings:function(e,n){1&e&&C("click",function(r){return
n.onClick(r.button,r.ctrlKey,r.shiftKey,r.altKey,r.metaKey)}),2&e&&ie("target",n.target)("href",n.href,ln)},inputs:{target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",preserveFragment:"preserveFragment",skipLocationChang
e:"skipLocationChange",replaceUrl:"replaceUrl",state:"state",relativeTo:"relativeTo",routerLink:"routerLink"},features:[fn]}),t})();function
qo(t){return""===t||!!t}let _d=(()=>{class
t{constructor(e,n,s,r,o,u){this.router=e,this.element=n,this.renderer=s,this.cdr=r,this.link=o,this.linkWithHref=u,this.classes=[],this.isActive=!1,this.routerLinkActiveOptions={exact:!1},this.isActiveChange=new
H,this.routerEventsSubscription=e.events.subscribe(h=>{h instanceof
vl&&this.update()})}ngAfterContentInit(){oe(this.links.changes,this.linksWithHrefs.changes,oe(null)).pipe(ea()).subscribe(e=>{this.update(),this.subscribeToEachLinkOnChanges()})}subscribeToEachLinkOnChanges(){var
e;null===(e=this.linkInputChangesSubscription)||void 0===e||e.unsubscribe();const
n=[...this.links.toArray(),...this.linksWithHrefs.toArray(),this.link,this.linkWithHref].filter(s=>!!s).map(s=>s.onChanges);this.linkInputChangesSubscription=Mn(n).pipe(ea()).subscribe(s=>{this.isActive!==this.isLinkActive(this.router)(s)
&&this.update()})}set routerLinkActive(e){const
n=Array.isArray(e)?e:e.split("
");this.classes=n.filter(s=>!!s)}ngOnChanges(e){this.update()}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(n=>{e?this.renderer.addClass(this.element.nativeElement,n):this.renderer.removeClass(this.element.nativeElement,n)}),this.isActiveChange.emit(e))})}isLinkActive(e){const
n=function
NH(t){return!!t.paths}(this.routerLinkActiveOptions)?this.routerLinkActiveOptions:this.routerLinkActiveOptions.exact||!1;return
s=>!!s.urlTree&&e.isActive(s.urlTree,n)}hasActiveLinks(){const
e=this.isLinkActive(this.router);return
this.link&&e(this.link)||this.linkWithHref&&e(this.linkWithHref)||this.links.some(e)||this.linksWit
hHrefs.some(e)}}return t.\u0275fac=function(e){return
new(e||t)(D(It),D(De),D(gn),D(rt),D(gd,8),D(Ho,8))},t.\u0275dir=le({type:t,selectors:[["","routerLinkActive",""]],contentQueries:function(e,n,s){if(1&e&&(st(s,gd,5),st(s,Ho,5)),2&e){let
r;V(r=B())&&(n.links=r),V(r=B())&&(n.linksWithHrefs=r)}},inputs:{routerLinkActiveOptions:"routerLinkActiveOptions",routerLinkActive:"routerLinkActive"},outputs:{isActiveChange:"isActiveChange"},exportAs:["routerLinkActive"],features:[fn]}),t})();class
A2{}class P2{preload(i,e){return oe(null)}}let F2=(()=>{class
t{constructor(e,n,s,r){this.router=e,this.injector=s,this.preloadingStrategy=r,this.loader=new
R2(s,n,h=>e.triggerEvent(new HT(h)),h=>e.triggerEvent(new
qT(h)))}setUpPreloading(){this.subscription=this.router.events.pipe(Us(e=>e instanceof
vl),_r(()=>this.preload())).subscribe(()=>{})}preload(){const
e=this.injector.get(_s);return
this.processRoutes(e,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}proc
essRoutes(e,n){const s=[];for(const r of
n)if(r.loadChildren&&!r.canLoad&&r._loadedConfig){const
o=r._loadedConfig;s.push(this.processRoutes(o.module,o.routes))}else
r.loadChildren&&!r.canLoad?s.push(this.preloadConfig(e,r)):r.children&&s.push(this.processRoutes(e,r.children));return
Mn(s).pipe(ea(),et(r=>{}))}preloadConfig(e,n){return
this.preloadingStrategy.preload(n,()=>(n._loadedConfig?oe(n._loadedConfig):this.loader.load(e.injector,n)).pipe(yn(r=>(n._loadedConfig=r,this.processRoutes(r.module,r.routes)))))}}return
t.\u0275fac=function(e){return
new(e||t)(K(It),K(qC),K(En),K(A2))},t.\u0275prov=X({token:t,factory:t.\u0275fac}),t})(),_g=(()=>{class
t{constructor(e,n,s={}){this.router=e,this.viewportScroller=n,this.options=s,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},s.scrollPositionRestoration=s.scrollPositionRestoration||"disabled",s.anchorScrolling=s.anchorScrolling||"disabled"}init(){"disabled"!==this.options.scrollPositionRestoration&&this.viewp
ortScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}createScrollEvents(){return
this.router.events.subscribe(e=>{e instanceof
tg?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=e.navigationTrigger,this.restoredId=e.restoredState?e.restoredState.navigationId:0):e
instanceof
vl&&(this.lastId=e.id,this.scheduleScrollEvent(e,this.router.parseUrl(e.urlAfterRedirects).fragment))})}consumeScrollEvents(){return
this.router.events.subscribe(e=>{e instanceof
GT&&(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.scrollToPosit
ion([0,0]))})}scheduleScrollEvent(e,n){this.router.triggerEvent(new
GT(e,"popstate"===this.lastSource?this.store[this.restoredId]:null,n))}ngOnDestroy(){this.routerEventsSubscription&&this.routerEventsSubscription.unsubscribe(),this.scrollEventsSubscription&&this.scrollEventsSubscription.unsubscribe()}}return
t.\u0275fac=function(e){Sh()},t.\u0275prov=X({token:t,factory:t.\u0275fac}),t})();const
Lr=new be("ROUTER_CONFIGURATION"),N2=new
be("ROUTER_FORROOT_GUARD"),BH=[_m,{provide:ZT,useClass:XT},{provide:It,useFactory:function
zH(t,i,e,n,s,r,o={},u,h){const b=new It(null,t,i,e,n,s,jT(r));return
u&&(b.urlHandlingStrategy=u),h&&(b.routeReuseStrategy=h),function
jH(t,i){t.errorHandler&&(i.errorHandler=t.errorHandler),t.malformedUriErrorHandler&&(i.malformedUriErrorHandler=t.malformedUriErrorHandler),t.onSameUrlNavigation&&(i.onSameUrlNavigation=t.onSameUrlNavigation),t.paramsInheritanceStrategy&&(i.paramsInheritanceStrategy=t.paramsInheritanceStrategy),t.relativeLinkResolution&&(i.relati
veLinkResolution=t.relativeLinkResolution),t.urlUpdateStrategy&&(i.urlUpdateStrategy=t.urlUpdateStrategy),t.canceledNavigationResolution&&(i.canceledNavigationResolution=t.canceledNavigationResolution)}(o,b),o.enableTracing&&b.events.subscribe(y=>{var
w,M;null===(w=console.group)||void 0===w||w.call(console,`Router Event:
${y.constructor.name}`),console.log(y.toString()),console.log(y),null===(M=console.groupEnd)||void
0===M||M.call(console)}),b},deps:[ZT,Dl,_m,En,qC,gg,Lr,[class EH{},new Ns],[class MH{},new
Ns]]},Dl,{provide:Er,useFactory:function $H(t){return
t.routerState.root},deps:[It]},F2,P2,class VH{preload(i,e){return
e().pipe(Mr(()=>oe(null)))}},{provide:Lr,useValue:{enableTracing:!1}}];function
HH(){return new $C("Router",It)}let vn=(()=>{class t{constructor(e,n){}static
forRoot(e,n){return{ngModule:t,providers:[BH,V2(e),{provide:N2,useFactory:UH,deps:[[It,new
Ns,new _a]]},{provide:Lr,useValue:n||{}},{provide:ko,useFactory:GH,deps:[fr,[new
dc(gm),new Ns],Lr]},{provide:_g,u
seFactory:qH,deps:[It,R4,Lr]},{provide:A2,useExisting:n&&n.preloadingStrategy?n.preloadingStrategy:P2},{provide:$C,multi:!0,useFactory:HH},[bg,{provide:em,multi:!0,useFactory:WH,deps:[bg]},{provide:B2,useFactory:KH,deps:[bg]},{provide:HC,multi:!0,useExisting:B2}]]}}static
forChild(e){return{ngModule:t,providers:[V2(e)]}}}return t.\u0275fac=function(e){return
new(e||t)(K(N2,8),K(It,8))},t.\u0275mod=he({type:t}),t.\u0275inj=ue({}),t})();function
qH(t,i,e){return e.scrollOffset&&i.setOffset(e.scrollOffset),new
_g(t,i,e)}function GH(t,i,e={}){return e.useHash?new vL(t,i):new dy(t,i)}function
UH(t){return"guarded"}function
V2(t){return[{provide:gD,multi:!0,useValue:t},{provide:gg,multi:!0,useValue:t}]}let
bg=(()=>{class
t{constructor(e){this.injector=e,this.initNavigation=!1,this.destroyed=!1,this.resultOfPreactivationDone=new
ct}appInitializer(){return
this.injector.get(gL,Promise.resolve(null)).then(()=>{if(this.destroyed)return
Promise.resolve(!0);let n=null;const s=new Promise(u=>n=u
),r=this.injector.get(It),o=this.injector.get(Lr);return"disabled"===o.initialNavigation?(r.setUpLocationChangeListener(),n(!0)):"enabled"===o.initialNavigation||"enabledBlocking"===o.initialNavigation?(r.hooks.afterPreactivation=()=>this.initNavigation?oe(null):(this.initNavigation=!0,n(!0),this.resultOfPreactivationDone),r.initialNavigation()):n(!0),s})}bootstrapListener(e){const
n=this.injector.get(Lr),s=this.injector.get(F2),r=this.injector.get(_g),o=this.injector.get(It),u=this.injector.get(cm);e===u.components[0]&&(("enabledNonBlocking"===n.initialNavigation||void
0===n.initialNavigation)&&o.initialNavigation(),s.setUpPreloading(),r.init(),o.resetRootComponentType(u.componentTypes[0]),this.resultOfPreactivationDone.next(null),this.resultOfPreactivationDone.complete())}ngOnDestroy(){this.destroyed=!0}}return
t.\u0275fac=function(e){return
new(e||t)(K(En))},t.\u0275prov=X({token:t,factory:t.\u0275fac}),t})();function
WH(t){return t.appInitializer.bind(t)}function KH(t){return t.
bootstrapListener.bind(t)}const B2=new be("Router Initializer");let
m9=(()=>{class t{}return t.\u0275fac=function(e){return
new(e||t)},t.\u0275mod=he({type:t}),t.\u0275inj=ue({imports:[[Fe,vn,pn,jn],vn,jn]}),t})();function
f9(t,i){1&t&&k(0,"span",6),2&t&&p("innerHTML",d(3).text,Bt)}function
g9(t,i){if(1&t&&(l(0,"div"),_(1,f9,1,1,"span",5),c()),2&t){const
e=d(2);a(1),p("ngIf",!e.escape)}}function
_9(t,i){if(1&t&&(l(0,"span",8),g(1),c()),2&t){const
e=d(3);a(1),S(e.text)}}function
b9(t,i){1&t&&_(0,_9,2,1,"span",7),2&t&&p("ngIf",d(2).escape)}const
v9=function(t,i,e,n,s){return{"p-inline-message-info":t,"p-inline-message-warn":i,"p-inline-message-error":e,"p-inline-message-success":n,"p-inline-message-icon-only":s}};function
C9(t,i){if(1&t&&(l(0,"div",1),k(1,"span",2),_(2,g9,2,1,"div",3),_(3,b9,1,1,"ng-template",null,4,we),c()),2&t){const
e=F(4),n=d();me(n.styleClass),p("ngStyle",n.style)("ngClass",pr(7,v9,"info"===n.severity,"warn"===n.severity,"error"===n.severity,"success"===n.severit
y,null==n.text)),a(1),p("ngClass",n.icon),a(1),p("ngIf",!n.escape)("ngIfElse",e)}}let
qe=(()=>{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=z({type:t,selectors:[["p-message"]],hostAttrs:[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,"inne
rHTML"],["class","p-inline-message-text",4,"ngIf"],[1,"p-inline-message-text"]],template:function(e,n){1&e&&_(0,C9,5,13,"div",0),2&e&&p("ngIf",n.severity)},directives:[Q,lt,Le],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})(),y9=(()=>{class
t{}return t.\u0275fac=function(e){return
new(e||t)},t.\u0275mod=he({type:t}),t.\u0275inj=ue({imports:[[Fe]]}),t})(),A9=(()=>{class
t{}return t.\u0275fac=function(e){return
new(e||t)},t.\u0275mod=he({type:t}),t.\u0275inj=ue({imports:[[Fe,pn]]}),t})();function
P9(t,i){1&t&&Y(0)}function F9(t,i){if(1&t){const
e=I();l(0,"button",5),C("click",function(s){return
v(e),d(2).onCloseClick(s)})("keydown.enter",function(){return
v(e),d(2).hide()}),k(1,"span",6),c()}2&t&&ie("aria-label",d(2).ariaCloseLabel)}const
N9=function(t,i){return{sho
wTransitionParams:t,hideTransitionParams:i}},V9=function(t,i){return{value:t,params:i}};function
B9(t,i){if(1&t){const
e=I();l(0,"div",1),C("click",function(s){return
v(e),d().onOverlayClick(s)})("(a)animation.start",function(s){return
v(e),d().onAnimationStart(s)})("(a)animation.done",function(s){return
v(e),d().onAnimationEnd(s)}),l(1,"div",2),C("click",function(){return
v(e),d().onContentClick()})("mousedown",function(){return
v(e),d().onContentClick()}),St(2),_(3,P9,1,0,"ng-container",3),c(),_(4,F9,2,1,"button",4),c()}if(2&t){const
e=d();me(e.styleClass),p("ngClass","p-overlaypanel
p-component")("ngStyle",e.style)("@animation",Ge(10,V9,e.overlayVisible?"open":"close",Ge(7,N9,e.showTransitionOptions,e.hideTransitionOptions))),a(3),p("ngTemplateOutlet",e.contentTemplate),a(1),p("ngIf",e.showCloseIcon)}}const
H9=["*"];let q9=(()=>{class
t{constructor(e,n,s,r,o,u){this.el=e,this.renderer=n,this.cd=s,this.zone=r,this.config=o,this.overlayService=u,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 H,this.onHide=new
H,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=R.isIOS()?"touchstart":"click";this.documentClickListener=this.renderer.listen(this.el?this.el.nativeElement.ownerDocument:"document",e,s=>{!this.container.contains(s.target)&&this.target!==s.target&&!this.target.contains(s.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,n){this.overlayVisible?(this.hasTargetC
hanged(e,n)&&(this.destroyCallback=()=>{this.show(null,n||e.currentTarget||e.target)}),this.hide()):this.show(e,n)}show(e,n){this.target=n||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,n){return
null!=this.target&&this.target!==(n||e.currentTarget||e.target)}appendContainer(){this.appendTo&&("body"===this.appendTo?document.body.appendChild(this.container):R.appendChild(this.container,this.appendTo))}restoreAppend(){this.container&&this.appendTo&&this.el.nativeElement.appendChild(this.container)}align(){this.autoZIndex&&dt.set("overlay",this.container,this.baseZIndex+this.config.zIndex.overlay),R.absolutePosition(this.container,this.target);const
e=R.getOffset(this.container),n=R.getOffset(this.target);let
s=0;e.left<n.left&&(s=n.left-e.left),this.container.style.setProperty("--overl
ayArrowLeft",`${s}px`),e.top<n.top&&R.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=n=>{this.container&&this.container.contains(n.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&&dt.clear(this.container),this.overlaySubscription&&this.overlaySubscription.unsubscribe(),this.onContainerDestroy(),this.onHide.emit({}),this.render=!1}}focus(){let
e=R.findSingle(this.container,"[autofocus]");e&&this.zone.runOutsideAngula
r(()=>{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
Qs(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.autoZI
ndex&&dt.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)(D(De),D(gn),D(rt),D(nt),D(zn),D(Ks))},t.\u0275cmp=z({type:t,selectors:[["p-overlayPanel"]],contentQueries:function(e,n,s){if(1&e&&st(s,ne,4),2&e){let
r;V(r=B())&&(n.templates=r)}},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:H9,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,n){1&e&&(Sn(),_(0,B9,5,13,"div",0)),2&e&&p("ngIf",n.render)},directives:[Q,Le,lt,Rt,bt],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;ri
ght: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:[wi("animation",[ws("void",it({transform:"scaleY(0.8)",opacity:0})),ws("close",it({opacity:0})),ws("open",it({transform:"translateY(0)",opacity:1})),Lt("void
=> open",kt("{{showTransitionParams}}")),Lt("open =>
close",kt("{{hideTransitionParams}}"))])]},changeDetection:0}),t})(),G9=(()=>{class
t{}return t.\u0275fac=function(e){return
new(e||t)},t.\u0275mod=he({type:t}),t.\u0275inj=ue({imports:[[Fe,pn,Nt],Nt]}),t})(),J9=(()=>{class
t{}return t.\u0275fac=function(e){return
new(e||t)},t.\u0275mod=he({type:t}),t.\u0275inj=ue({imports:[[Fe,Nt,pn],Nt]}),t})(),Go=(()=>{class
t{constructor(){this.strokeWidth="2",this.fill="none",this.animationDuration="2s"}}return
t.\u0275fac=function(e){return
new(e||t)},t.\u0275cmp=z({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,n){1&e&&(l(0,"div",0),function
d_(){Ee.lFrame.currentNamespace="svg"}(),l(1,"svg",1),k(2,"circle",2),c()()),2&e&&(p("ngStyle",n.style)("ngClass",n.styleClass),a(1),_i("animation-duration",n.animationDuration),a(1),ie("fill",n.fill)("stroke-width",n.strokeWidth))},directives:[lt,Le],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-rota
te 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})(),Y9=(()=>{class
t{}return t.\u0275fac=function(e){return
new(e||t)},t.\u0275mod=he({type:t}),t.\u0275inj=ue({imports:[[Fe]]}),t})();ku([it({transform:"{{transform}}",opacity:0}),kt("{{transition}}")]),ku([kt("{{transition}}",it(
{transform:"{{transform}}",opacity:0}))]);let iq=(()=>{class t{}return
t.\u0275fac=function(e){return
new(e||t)},t.\u0275mod=he({type:t}),t.\u0275inj=ue({imports:[[Fe,pn]]}),t})(),sq=(()=>{class
t{}return t.\u0275fac=function(e){return
new(e||t)},t.\u0275mod=he({type:t}),t.\u0275inj=ue({imports:[[Fe]]}),t})(),hq=(()=>{class
t{}return t.\u0275fac=function(e){return
new(e||t)},t.\u0275mod=he({type:t}),t.\u0275inj=ue({imports:[[Fe,vn,jn],vn,jn]}),t})();function
mq(t,i){1&t&&k(0,"span",8),2&t&&(me(d(2).$implicit.icon),p("ngClass","p-button-icon
p-button-icon-left"))}function
fq(t,i){if(1&t&&(de(0),_(1,mq,1,3,"span",6),l(2,"span",7),g(3),c(),pe()),2&t){const
e=d().$implicit,n=d();a(1),p("ngIf",e.icon),a(2),S(n.getOptionLabel(e))}}function
gq(t,i){1&t&&Y(0)}const _q=function(t,i){return{$implicit:t,index:i}};function
bq(t,i){if(1&t&&_(0,gq,1,0,"ng-container",9),2&t){const
e=d(),n=e.$implicit,s=e.index;p("ngTemplateOutlet",d().itemTemplate)("ngTemplateOutletContext",Ge(2,_q,n,s))}}const
vq
=function(t,i,e){return{"p-highlight":t,"p-disabled":i,"p-button-icon-only":e}};function
Cq(t,i){if(1&t){const
e=I();l(0,"div",2,3),C("click",function(s){const
r=v(e),o=r.$implicit,u=r.index;return
d().onItemClick(s,o,u)})("keydown.enter",function(s){const
r=v(e),o=r.$implicit,u=r.index;return
d().onItemClick(s,o,u)})("blur",function(){return
v(e),d().onBlur()}),_(2,fq,4,2,"ng-container",4),_(3,bq,1,5,"ng-template",null,5,we),c()}if(2&t){const
e=i.$implicit,n=F(4),s=d();me(e.styleClass),p("ngClass",Qt(10,vq,s.isSelected(e),s.disabled||s.isOptionDisabled(e),e.icon&&!s.getOptionLabel(e))),ie("aria-pressed",s.isSelected(e))("title",e.title)("aria-label",e.label)("tabindex",s.disabled?null:s.tabindex)("aria-labelledby",s.getOptionLabel(e)),a(2),p("ngIf",!s.itemTemplate)("ngIfElse",n)}}const
yq={provide:dn,useExisting:je(()=>wq),multi:!0};let wq=(()=>{class
t{constructor(e){this.cd=e,this.tabindex=0,this.onOptionClick=new H,this.onChange=new
H,this.onModelChange=()=>{},this.onModelTouche
d=()=>{}}getOptionLabel(e){return
this.optionLabel?Z.resolveFieldData(e,this.optionLabel):null!=e.label?e.label:e}getOptionValue(e){return
this.optionValue?Z.resolveFieldData(e,this.optionValue):this.optionLabel||void
0===e.value?e:e.value}isOptionDisabled(e){return
this.optionDisabled?Z.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,n,s){if(!this.disabled&&!this.isOptionDisabled(n)){if(this.multiple)this.isSelected(n)?this.removeOption(n):this.value=[...this.value||[],this.getOptionValue(n)],this.onModelChange(this.value),this.onChange.emit({originalEvent:e,value:this.value});else{let
r=this.getOptionValue(n);this.value!==r&&(this.value=this.getOptionValue(n),this.onModelChange(this.value),this.onChange.emit({originalEvent:e,value:this.value}))}this.onOp
tionClick.emit({originalEvent:e,option:n,index:s})}}onBlur(){this.onModelTouched()}removeOption(e){this.value=this.value.filter(n=>!Z.equals(n,this.getOptionValue(e),this.dataKey))}isSelected(e){let
n=!1,s=this.getOptionValue(e);if(this.multiple){if(this.value)for(let r of
this.value)if(Z.equals(r,s,this.dataKey)){n=!0;break}}else
n=Z.equals(this.getOptionValue(e),this.value,this.dataKey);return n}}return
t.\u0275fac=function(e){return
new(e||t)(D(rt))},t.\u0275cmp=z({type:t,selectors:[["p-selectButton"]],contentQueries:function(e,n,s){if(1&e&&st(s,bi,5),2&e){let
r;V(r=B())&&(n.itemTemplate=r.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:[Pe([yq])],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,n){1&e&&(l(0,"div",0),_(1,Cq,5,14,"div",1),c()),2&e&&(me(n.styleClass),p("ngClass","p-selectbutton
p-buttonset
p-component")("ngStyle",n.style),a(1),p("ngForOf",n.options))},directives:[Le,lt,at,bt,Q,Rt],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:cen
ter}.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}\n"],encapsulation:2,changeDetection:0}),t})(),Tq=(()=>{class
t{}return t.\u0275fac=function(e){return
new(e||t)},t.\u0275mod=he({type:t}),t.\u0275inj=ue({imports:[[Fe,pn]]}),t})();const
Sq=function(t,i,e){return{"p-checkbox-label-active":t,"p-disabled":i,"p-checkbox-label-focus":e}};function
xq(t,i){if(1&t){const
e=I();l(0,"label",7),C("click",function(s){v(e);const
r=d(),o=F(3);return r.onClick(s,o)}),g(1),c()}if(2&t){const e=d();p(
"ngClass",Qt(3,Sq,null!=e.value,e.disabled,e.focused)),ie("for",e.inputId),a(1),S(e.label)}}const
Dq=function(t,i){return{"p-checkbox
p-component":!0,"p-checkbox-disabled":t,"p-checkbox-focused":i}},Mq=function(t,i,e){return{"p-highlight":t,"p-disabled":i,"p-focus":e}},kq={provide:dn,useExisting:je(()=>G2),multi:!0};let
G2=(()=>{class t{constructor(e){this.cd=e,this.checkboxTrueIcon="pi
pi-check",this.checkboxFalseIcon="pi pi-times",this.onChange=new
H,this.onModelChange=()=>{},this.onModelTouched=()=>{}}onClick(e,n){!this.disabled&&!this.readonly&&(this.toggle(e),this.focused=!0,n.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.onModelTouch
ed()}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)(D(rt))},t.\u0275cmp=z({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:[Pe([kq])],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,n){if(1&e){const
s=I();l(0,"div",0)(1,"div",1)(2,"input",2,3),C("keyup",function(o){return
n.onKeyup(o)})("keydown",function(o){return
n.onKeydown(o)})("focus",function(){return
n.onFocus()})("blur",function(){return
n.onBlur()}),c()(),l(4,"div",4),C("click",function(o){v(s);const
u=F(3);return
n.onClick(o,u)}),k(5,"span",5),c()(),_(6,xq,2,7,"label",6)}2&e&&(me(n.styleClass),p("ngStyle",n.style)("ngClass",Ge(14,Dq,n.disabled,n.focused)),a(2),p("name",n.name)("readonly",n.readonly)("disabled",n.disabled),ie("id",n.inputId)("tabindex",n.tabindex)("aria-labelledby",n.ariaLabelledBy),a(2),p("ngClass",Qt(17,Mq,null!=n.value,n.disabled,n.focused)),ie("aria-checked",!0===n.value),a(1),p("ngClass",!0===n.value?n.checkboxTrueIcon:!1===n.value?n.checkboxFalseIcon:""),a(1),p("ngIf",n.label))},directives:[lt,Le,Q],encapsulation:2,changeDetection:0}),t})(),Iq=(()=>{class
t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=he({type:t}),
t.\u0275inj=ue({imports:[[Fe]]}),t})();const
Eq=["container"],Rq=["resizeHelper"],Lq=["reorderIndicatorUp"],Oq=["reorderIndicatorDown"],Aq=["wrapper"],Pq=["table"],Fq=["tableHeader"];function
Nq(t,i){if(1&t&&(l(0,"div",14),k(1,"i"),c()),2&t){const
e=d();a(1),me("p-datatable-loading-icon pi-spin "+e.loadingIcon)}}function
Vq(t,i){1&t&&Y(0)}function
Bq(t,i){if(1&t&&(l(0,"div",15),_(1,Vq,1,0,"ng-container",16),c()),2&t){const
e=d();a(1),p("ngTemplateOutlet",e.captionTemplate)}}function
Hq(t,i){if(1&t){const
e=I();l(0,"p-paginator",17),C("onPageChange",function(s){return
v(e),d().onPageChange(s)}),c()}if(2&t){const
e=d();p("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)("currentPageRe
portTemplate",e.currentPageReportTemplate)("showFirstLastIcon",e.showFirstLastIcon)("dropdownItemTemplate",e.paginatorDropdownItemTemplate)("showCurrentPageReport",e.showCurrentPageReport)("showJumpToPageDropdown",e.showJumpToPageDropdown)("showJumpToPageInput",e.showJumpToPageInput)("showPageLinks",e.showPageLinks)}}function
qq(t,i){1&t&&Y(0)}function Gq(t,i){1&t&&Y(0)}function
Uq(t,i){if(1&t&&k(0,"tbody",25),2&t){const
e=d(2);p("value",e.frozenValue)("frozenRows",!0)("pTableBody",e.columns)("pTableBodyTemplate",e.frozenBodyTemplate)("frozen",!0)}}function
zq(t,i){1&t&&Y(0)}const Zs=function(t){return{$implicit:t}};function
jq(t,i){if(1&t&&(l(0,"tfoot",26),_(1,zq,1,0,"ng-container",20),c()),2&t){const
e=d(2);a(1),p("ngTemplateOutlet",e.footerGroupedTemplate||e.footerTemplate)("ngTemplateOutletContext",U(2,Zs,e.columns))}}function
$q(t,i){if(1&t&&(l(0,"table",18,19),_(2,qq,1,0,"ng-container",20),l(3,"thead",21),_(4,Gq,1,0,"ng-container",20),c(),_(5,Uq,1,5,"tbody",22),k(6,"tbody",23)
,_(7,jq,2,4,"tfoot",24),c()),2&t){const
e=d();p("ngClass",e.tableStyleClass)("ngStyle",e.tableStyle),ie("id",e.id+"-table"),a(2),p("ngTemplateOutlet",e.colGroupTemplate)("ngTemplateOutletContext",U(12,Zs,e.columns)),a(2),p("ngTemplateOutlet",e.headerGroupedTemplate||e.headerTemplate)("ngTemplateOutletContext",U(14,Zs,e.columns)),a(1),p("ngIf",e.frozenValue||e.frozenBodyTemplate),a(1),p("value",e.dataToRender)("pTableBody",e.columns)("pTableBodyTemplate",e.bodyTemplate),a(1),p("ngIf",e.footerGroupedTemplate||e.footerTemplate)}}function
Wq(t,i){1&t&&Y(0)}function Kq(t,i){1&t&&Y(0)}function
Qq(t,i){if(1&t&&k(0,"tbody",25),2&t){const
e=d(2);p("value",e.frozenValue)("frozenRows",!0)("pTableBody",e.columns)("pTableBodyTemplate",e.bodyTemplate)("frozen",!0)}}function
Jq(t,i){1&t&&Y(0)}function
Yq(t,i){if(1&t&&(l(0,"tfoot",26),_(1,Jq,1,0,"ng-container",20),c()),2&t){const
e=d(2);a(1),p("ngTemplateOutlet",e.footerGroupedTemplate||e.footerTemplate)("ngTemplateOutletContext",U(2,Zs,e.columns))
}}function Zq(t,i){if(1&t){const
e=I();l(0,"cdk-virtual-scroll-viewport",27),C("scrolledIndexChange",function(s){return
v(e),d().onScrollIndexChange(s)}),l(1,"table",18,19),_(3,Wq,1,0,"ng-container",20),l(4,"thead",21,28),_(6,Kq,1,0,"ng-container",20),c(),_(7,Qq,1,5,"tbody",22),k(8,"tbody",23),_(9,Yq,2,4,"tfoot",24),c()()}if(2&t){const
e=d();_i("height","flex"!==e.scrollHeight?e.scrollHeight:void
0),p("itemSize",e.virtualRowHeight)("minBufferPx",e.minBufferPx)("maxBufferPx",e.maxBufferPx),a(1),p("ngClass",e.tableStyleClass)("ngStyle",e.tableStyle),ie("id",e.id+"-table"),a(2),p("ngTemplateOutlet",e.colGroupTemplate)("ngTemplateOutletContext",U(17,Zs,e.columns)),a(3),p("ngTemplateOutlet",e.headerGroupedTemplate||e.headerTemplate)("ngTemplateOutletContext",U(19,Zs,e.columns)),a(1),p("ngIf",e.frozenValue||e.frozenBodyTemplate),a(1),p("value",e.dataToRender)("pTableBody",e.columns)("pTableBodyTemplate",e.bodyTemplate),a(1),p("ngIf",e.footerGroupedTemplate||e.footerTemplate)}}function
Xq(
t,i){if(1&t){const
e=I();l(0,"p-paginator",29),C("onPageChange",function(s){return
v(e),d().onPageChange(s)}),c()}if(2&t){const
e=d();p("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
eG(t,i){1&t&&Y(0)}function
tG(t,i){if(1&t&&(l(0,"div",30),_(1,eG,1,0,"ng-container",16),c()),2&t){const
e=d();a(1),p("ngTemplateOutlet",e.summaryTemplate)}}functio
n nG(t,i){1&t&&k(0,"div",31,32)}function
iG(t,i){1&t&&k(0,"span",33,34)}function
sG(t,i){1&t&&k(0,"span",35,36)}const
rG=function(t,i,e,n,s,r,o,u,h,b,y,w,M,E){return{"p-datatable
p-component":!0,"p-datatable-hoverable-rows":t,"p-datatable-auto-layout":i,"p-datatable-resizable":e,"p-datatable-resizable-fit":n,"p-datatable-scrollable":s,"p-datatable-scrollable-vertical":r,"p-datatable-scrollable-horizontal":o,"p-datatable-scrollable-both":u,"p-datatable-flex-scrollable":h,"p-datatable-responsive-stack":b,"p-datatable-responsive-scroll":y,"p-datatable-responsive":w,"p-datatable-grouped-header":M,"p-datatable-grouped-footer":E}},oG=function(t){return{height:t}},aG=["pTableBody",""];function
lG(t,i){1&t&&Y(0)}const
bd=function(t,i,e,n,s){return{$implicit:t,rowIndex:i,columns:e,editing:n,frozen:s}};function
cG(t,i){if(1&t&&(de(0,3),_(1,lG,1,0,"ng-container",4),pe()),2&t){const
e=d(),n=e.$implicit,s=e.index,r=d(2);a(1),p("ngTemplateOutlet",r.dt.groupHeaderTemplate)("ngTemplateOutletContext
",pr(2,bd,n,r.dt.paginator?r.dt.first+s:s,r.columns,"row"===r.dt.editMode&&r.dt.isRowEditing(n),r.frozen))}}function
uG(t,i){1&t&&Y(0)}function
dG(t,i){if(1&t&&(de(0),_(1,uG,1,0,"ng-container",4),pe()),2&t){const
e=d(),n=e.$implicit,s=e.index,r=d(2);a(1),p("ngTemplateOutlet",r.template)("ngTemplateOutletContext",pr(2,bd,n,r.dt.paginator?r.dt.first+s:s,r.columns,"row"===r.dt.editMode&&r.dt.isRowEditing(n),r.frozen))}}function
pG(t,i){1&t&&Y(0)}const
hG=function(t,i,e,n,s,r,o){return{$implicit:t,rowIndex:i,columns:e,editing:n,frozen:s,rowgroup:r,rowspan:o}};function
mG(t,i){if(1&t&&(de(0),_(1,pG,1,0,"ng-container",4),pe()),2&t){const
e=d(),n=e.$implicit,s=e.index,r=d(2);a(1),p("ngTemplateOutlet",r.template)("ngTemplateOutletContext",function
aC(t,i,e,n,s,r,o,u,h,b){const y=Fn()+t,w=$();let M=gi(w,y,e,n,s,r);return
Mc(w,y+4,o,u,h)||M?es(w,y+7,b?i.call(b,e,n,s,r,o,u,h):i(e,n,s,r,o,u,h)):Ea(w,y+7)}(2,hG,n,r.dt.paginator?r.dt.first+s:s,r.columns,"row"===r.dt.editMode&&r.dt.isRowEditing(n)
,r.frozen,r.shouldRenderRowspan(r.value,n,s),r.calculateRowGroupSize(r.value,n,s)))}}function
fG(t,i){1&t&&Y(0)}function
gG(t,i){if(1&t&&(de(0,3),_(1,fG,1,0,"ng-container",4),pe()),2&t){const
e=d(),n=e.$implicit,s=e.index,r=d(2);a(1),p("ngTemplateOutlet",r.dt.groupFooterTemplate)("ngTemplateOutletContext",pr(2,bd,n,r.dt.paginator?r.dt.first+s:s,r.columns,"row"===r.dt.editMode&&r.dt.isRowEditing(n),r.frozen))}}function
_G(t,i){if(1&t&&(_(0,cG,2,8,"ng-container",2),_(1,dG,2,8,"ng-container",0),_(2,mG,2,10,"ng-container",0),_(3,gG,2,8,"ng-container",2)),2&t){const
e=i.$implicit,n=i.index,s=d(2);p("ngIf",s.dt.groupHeaderTemplate&&"subheader"===s.dt.rowGroupMode&&s.shouldRenderRowGroupHeader(s.value,e,n)),a(1),p("ngIf","rowspan"!==s.dt.rowGroupMode),a(1),p("ngIf","rowspan"===s.dt.rowGroupMode),a(1),p("ngIf",s.dt.groupFooterTemplate&&"subheader"===s.dt.rowGroupMode&&s.shouldRenderRowGroupFooter(s.value,e,n))}}function
bG(t,i){if(1&t&&(de(0),_(1,_G,4,4,"ng-template",1),pe()),2&t){const
e=d
();a(1),p("ngForOf",e.value)("ngForTrackBy",e.dt.rowTrackBy)}}function
vG(t,i){1&t&&Y(0)}function
CG(t,i){if(1&t&&_(0,vG,1,0,"ng-container",4),2&t){const
e=i.$implicit,n=i.index,s=d(2);p("ngTemplateOutlet",e?s.template:s.dt.loadingBodyTemplate)("ngTemplateOutletContext",pr(2,bd,e,s.dt.paginator?s.dt.first+n:n,s.columns,"row"===s.dt.editMode&&s.dt.isRowEditing(e),s.frozen))}}function
yG(t,i){if(1&t&&(de(0),_(1,CG,1,8,"ng-template",5),pe()),2&t){const
e=d();a(1),p("cdkVirtualForOf",e.dt.filteredValue||e.dt.value)("cdkVirtualForTrackBy",e.dt.rowTrackBy)("cdkVirtualForTemplateCacheSize",0)}}function
wG(t,i){1&t&&Y(0)}const
vd=function(t,i,e,n,s,r){return{$implicit:t,rowIndex:i,columns:e,expanded:n,editing:s,frozen:r}};function
TG(t,i){if(1&t&&(de(0),_(1,wG,1,0,"ng-container",4),pe()),2&t){const
e=d(),n=e.$implicit,s=e.index,r=d(2);a(1),p("ngTemplateOutlet",r.template)("ngTemplateOutletContext",Do(2,vd,n,r.dt.paginator?r.dt.first+s:s,r.columns,r.dt.isRowExpanded(n),"row"===r.dt.editMode&
&r.dt.isRowEditing(n),r.frozen))}}function SG(t,i){1&t&&Y(0)}function
xG(t,i){if(1&t&&(de(0,3),_(1,SG,1,0,"ng-container",4),pe()),2&t){const
e=d(),n=e.$implicit,s=e.index,r=d(2);a(1),p("ngTemplateOutlet",r.dt.groupHeaderTemplate)("ngTemplateOutletContext",Do(2,vd,n,r.dt.paginator?r.dt.first+s:s,r.columns,r.dt.isRowExpanded(n),"row"===r.dt.editMode&&r.dt.isRowEditing(n),r.frozen))}}function
DG(t,i){1&t&&Y(0)}function MG(t,i){1&t&&Y(0)}function
kG(t,i){if(1&t&&(de(0,3),_(1,MG,1,0,"ng-container",4),pe()),2&t){const
e=d(2),n=e.$implicit,s=e.index,r=d(2);a(1),p("ngTemplateOutlet",r.dt.groupFooterTemplate)("ngTemplateOutletContext",Do(2,vd,n,r.dt.paginator?r.dt.first+s:s,r.columns,r.dt.isRowExpanded(n),"row"===r.dt.editMode&&r.dt.isRowEditing(n),r.frozen))}}const
U2=function(t,i,e,n){return{$implicit:t,rowIndex:i,columns:e,frozen:n}};function
IG(t,i){if(1&t&&(de(0),_(1,DG,1,0,"ng-container",4),_(2,kG,2,9,"ng-container",2),pe()),2&t){const
e=d(),n=e.$implicit,s=e.index,r=d(2);a(1),p("ngTem
plateOutlet",r.dt.expandedRowTemplate)("ngTemplateOutletContext",qn(3,U2,n,r.dt.paginator?r.dt.first+s:s,r.columns,r.frozen)),a(1),p("ngIf",r.dt.groupFooterTemplate&&"subheader"===r.dt.rowGroupMode&&r.shouldRenderRowGroupFooter(r.value,n,s))}}function
EG(t,i){if(1&t&&(_(0,TG,2,9,"ng-container",0),_(1,xG,2,9,"ng-container",2),_(2,IG,3,8,"ng-container",0)),2&t){const
e=i.$implicit,n=i.index,s=d(2);p("ngIf",!s.dt.groupHeaderTemplate),a(1),p("ngIf",s.dt.groupHeaderTemplate&&"subheader"===s.dt.rowGroupMode&&s.shouldRenderRowGroupHeader(s.value,e,n)),a(1),p("ngIf",s.dt.isRowExpanded(e))}}function
RG(t,i){if(1&t&&(de(0),_(1,EG,3,3,"ng-template",1),pe()),2&t){const
e=d();a(1),p("ngForOf",e.value)("ngForTrackBy",e.dt.rowTrackBy)}}function
LG(t,i){1&t&&Y(0)}function OG(t,i){1&t&&Y(0)}function
AG(t,i){if(1&t&&(de(0),_(1,OG,1,0,"ng-container",4),pe()),2&t){const
e=d(),n=e.$implicit,s=e.index,r=d(2);a(1),p("ngTemplateOutlet",r.dt.frozenExpandedRowTemplate)("ngTemplateOutletContext",qn(2,U2,n,r.d
t.paginator?r.dt.first+s:s,r.columns,r.frozen))}}function
PG(t,i){if(1&t&&(_(0,LG,1,0,"ng-container",4),_(1,AG,2,7,"ng-container",0)),2&t){const
e=i.$implicit,n=i.index,s=d(2);p("ngTemplateOutlet",s.template)("ngTemplateOutletContext",Do(3,vd,e,s.dt.paginator?s.dt.first+n:n,s.columns,s.dt.isRowExpanded(e),"row"===s.dt.editMode&&s.dt.isRowEditing(e),s.frozen)),a(1),p("ngIf",s.dt.isRowExpanded(e))}}function
FG(t,i){if(1&t&&(de(0),_(1,PG,2,10,"ng-template",1),pe()),2&t){const
e=d();a(1),p("ngForOf",e.value)("ngForTrackBy",e.dt.rowTrackBy)}}function
NG(t,i){1&t&&Y(0)}const
z2=function(t,i){return{$implicit:t,frozen:i}};function
VG(t,i){if(1&t&&(de(0),_(1,NG,1,0,"ng-container",4),pe()),2&t){const
e=d();a(1),p("ngTemplateOutlet",e.dt.loadingBodyTemplate)("ngTemplateOutletContext",Ge(2,z2,e.columns,e.frozen))}}function
BG(t,i){1&t&&Y(0)}function
HG(t,i){if(1&t&&(de(0),_(1,BG,1,0,"ng-container",4),pe()),2&t){const
e=d();a(1),p("ngTemplateOutlet",e.dt.emptyMessageTemplate)("ngTemplateOutletC
ontext",Ge(2,z2,e.columns,e.frozen))}}function
qG(t,i){if(1&t&&(l(0,"span",2),g(1),c()),2&t){const
e=d();a(1),S(e.getBadgeValue())}}const
GG=function(t,i,e){return{"pi-sort-amount-up-alt":t,"pi-sort-amount-down":i,"pi-sort-alt":e}};function
UG(t,i){1&t&&Y(0)}function
zG(t,i){if(1&t&&(de(0),_(1,UG,1,0,"ng-container",1),pe()),2&t){const
e=d();a(1),p("ngTemplateOutlet",e.inputTemplate)}}function
jG(t,i){1&t&&Y(0)}function
$G(t,i){if(1&t&&(de(0),_(1,jG,1,0,"ng-container",1),pe()),2&t){const
e=d();a(1),p("ngTemplateOutlet",e.outputTemplate)}}function
WG(t,i){1&t&&Y(0)}const
KG=function(t,i){return{$implicit:t,filterCallback:i}};function
QG(t,i){if(1&t&&(de(0),_(1,WG,1,0,"ng-container",2),pe()),2&t){const
e=d();a(1),p("ngTemplateOutlet",e.filterTemplate)("ngTemplateOutletContext",Ge(2,KG,e.filterConstraint.value,e.filterCallback))}}function
JG(t,i){if(1&t){const
e=I();l(0,"input",8),C("input",function(s){return
v(e),d(2).onModelChange(s.target.value)})("keydown.enter",function(s){return v
(e),d(2).onTextInputEnterKeyDown(s)}),c()}if(2&t){const
e=d(2);p("value",null==e.filterConstraint?null:e.filterConstraint.value),ie("placeholder",e.placeholder)}}function
YG(t,i){if(1&t){const
e=I();l(0,"p-inputNumber",9),C("ngModelChange",function(s){return
v(e),d(2).onModelChange(s)})("onKeyDown",function(s){return
v(e),d(2).onNumericInputKeyDown(s)}),c()}if(2&t){const
e=d(2);p("ngModel",null==e.filterConstraint?null:e.filterConstraint.value)("showButtons",!0)("minFractionDigits",e.minFractionDigits)("maxFractionDigits",e.maxFractionDigits)("prefix",e.prefix)("suffix",e.suffix)("placeholder",e.placeholder)("mode",e.currency?"currency":"decimal")("locale",e.locale)("localeMatcher",e.localeMatcher)("currency",e.currency)("currencyDisplay",e.currencyDisplay)("useGrouping",e.useGrouping)}}function
ZG(t,i){if(1&t){const
e=I();l(0,"p-triStateCheckbox",10),C("ngModelChange",function(s){return
v(e),d(2).onModelChange(s)}),c()}if(2&t){const
e=d(2);p("ngModel",null==e.filterConstraint?null:
e.filterConstraint.value)}}function XG(t,i){if(1&t){const
e=I();l(0,"p-calendar",11),C("ngModelChange",function(s){return
v(e),d(2).onModelChange(s)}),c()}if(2&t){const
e=d(2);p("placeholder",e.placeholder)("ngModel",null==e.filterConstraint?null:e.filterConstraint.value)}}function
eU(t,i){1&t&&(de(0,3),_(1,JG,1,2,"input",4),_(2,YG,1,13,"p-inputNumber",5),_(3,ZG,1,1,"p-triStateCheckbox",6),_(4,XG,1,2,"p-calendar",7),pe()),2&t&&(p("ngSwitch",d().type),a(1),p("ngSwitchCase","text"),a(1),p("ngSwitchCase","numeric"),a(1),p("ngSwitchCase","boolean"),a(1),p("ngSwitchCase","date"))}const
tU=["icon"];function
nU(t,i){if(1&t&&k(0,"p-columnFilterFormElement",5),2&t){const
e=d();p("type",e.type)("field",e.field)("filterConstraint",e.dt.filters[e.field])("filterTemplate",e.filterTemplate)("placeholder",e.placeholder)("minFractionDigits",e.minFractionDigits)("maxFractionDigits",e.maxFractionDigits)("prefix",e.prefix)("suffix",e.suffix)("locale",e.locale)("localeMatcher",e.localeMatcher)("currenc
y",e.currency)("currencyDisplay",e.currencyDisplay)("useGrouping",e.useGrouping)}}const
iU=function(t,i){return{"p-column-filter-menu-button-open":t,"p-column-filter-menu-button-active":i}};function
sU(t,i){if(1&t){const
e=I();l(0,"button",6,7),C("click",function(){return
v(e),d().toggleMenu()})("keydown",function(s){return
v(e),d().onToggleButtonKeyDown(s)}),k(2,"span",8),c()}if(2&t){const
e=d();p("ngClass",Ge(2,iU,e.overlayVisible,e.hasFilter())),ie("aria-expanded",e.overlayVisible)}}const
rU=function(t){return{"p-hidden-space":t}};function oU(t,i){if(1&t){const
e=I();l(0,"button",9,7),C("click",function(){return
v(e),d().clearFilter()}),k(2,"span",10),c()}if(2&t){const
e=d();p("ngClass",U(1,rU,!e.hasRowFilter()))}}function
aU(t,i){1&t&&Y(0)}const
lU=function(t){return{"p-highlight":t}};function cU(t,i){if(1&t){const
e=I();l(0,"li",19),C("click",function(){const r=v(e).$implicit;return
d(3).onRowMatchModeChange(r.value)})("keydown",function(s){return
v(e),d(3).onRowMatchModeKeyDow
n(s)})("keydown.enter",function(){const r=v(e).$implicit;return
d(3).onRowMatchModeChange(r.value)}),g(1),c()}if(2&t){const
e=i.$implicit,n=i.index,s=d(3);p("ngClass",U(3,lU,s.isRowMatchModeSelected(e.value))),ie("tabindex",0===n?"0":null),a(1),S(e.label)}}function
uU(t,i){if(1&t){const
e=I();l(0,"ul",15),_(1,cU,2,5,"li",16),k(2,"li",17),l(3,"li",18),C("click",function(){return
v(e),d(2).onRowClearItemClick()})("keydown",function(s){return
v(e),d(2).onRowMatchModeKeyDown(s)})("keydown.enter",function(){return
v(e),d(2).onRowClearItemClick()}),g(4),c()()}if(2&t){const
e=d(2);a(1),p("ngForOf",e.matchModes),a(3),S(e.noFilterLabel)}}function
dU(t,i){if(1&t){const
e=I();l(0,"div",27)(1,"p-dropdown",28),C("ngModelChange",function(s){return
v(e),d(3).onOperatorChange(s)}),c()()}if(2&t){const
e=d(3);a(1),p("options",e.operatorOptions)("ngModel",e.operator)}}function
pU(t,i){if(1&t){const
e=I();l(0,"p-dropdown",33),C("ngModelChange",function(s){v(e);const
r=d().$implicit;return d(3).onMenuMa
tchModeChange(s,r)}),c()}if(2&t){const
e=d().$implicit;p("options",d(3).matchModes)("ngModel",e.matchMode)}}function
hU(t,i){if(1&t){const
e=I();l(0,"button",34),C("click",function(){v(e);const
s=d().$implicit;return
d(3).removeConstraint(s)}),c()}2&t&&p("label",d(4).removeRuleButtonLabel)}function
mU(t,i){if(1&t&&(l(0,"div",29),_(1,pU,1,2,"p-dropdown",30),k(2,"p-columnFilterFormElement",31),l(3,"div"),_(4,hU,1,1,"button",32),c()()),2&t){const
e=i.$implicit,n=d(3);a(1),p("ngIf",n.showMatchModes&&n.matchModes),a(1),p("type",n.type)("field",n.field)("filterConstraint",e)("filterTemplate",n.filterTemplate)("placeholder",n.placeholder)("minFractionDigits",n.minFractionDigits)("maxFractionDigits",n.maxFractionDigits)("prefix",n.prefix)("suffix",n.suffix)("locale",n.locale)("localeMatcher",n.localeMatcher)("currency",n.currency)("currencyDisplay",n.currencyDisplay)("useGrouping",n.useGrouping),a(2),p("ngIf",n.showRemoveIcon)}}function
fU(t,i){if(1&t){const e=I();l(0,"div",35)(1,"button",3
6),C("click",function(){return
v(e),d(3).addConstraint()}),c()()}if(2&t){const
e=d(3);a(1),p("label",e.addRuleButtonLabel)}}function gU(t,i){if(1&t){const
e=I();l(0,"button",37),C("click",function(){return
v(e),d(3).clearFilter()}),c()}2&t&&p("label",d(3).clearButtonLabel)}function
_U(t,i){if(1&t){const
e=I();l(0,"button",38),C("click",function(){return
v(e),d(3).applyFilter()}),c()}2&t&&p("label",d(3).applyButtonLabel)}function
bU(t,i){if(1&t&&(_(0,dU,2,2,"div",20),l(1,"div",21),_(2,mU,5,16,"div",22),c(),_(3,fU,2,1,"div",23),l(4,"div",24),_(5,gU,1,1,"button",25),_(6,_U,1,1,"button",26),c()),2&t){const
e=d(2);p("ngIf",e.isShowOperator),a(2),p("ngForOf",e.fieldConstraints),a(1),p("ngIf",e.isShowAddConstraint),a(2),p("ngIf",e.showClearButton),a(1),p("ngIf",e.showApplyButton)}}function
vU(t,i){1&t&&Y(0)}const CU=function(t){return{"p-column-filter-overlay
p-component p-fluid":!0,"p-column-filter-overlay-menu":t}};function
yU(t,i){if(1&t){const e=I();l(0,"div",11),C("click",function(){r
eturn v(e),d().onContentClick()})("(a)overlayAnimation.start",function(s){return
v(e),d().onOverlayAnimationStart(s)})("(a)overlayAnimation.done",function(s){return
v(e),d().onOverlayAnimationEnd(s)})("keydown.escape",function(){return
v(e),d().onEscape()}),_(1,aU,1,0,"ng-container",12),_(2,uU,5,2,"ul",13),_(3,bU,7,5,"ng-template",null,14,we),_(5,vU,1,0,"ng-container",12),c()}if(2&t){const
e=F(4),n=d();p("ngClass",U(8,CU,"menu"===n.display))("@overlayAnimation","visible"),a(1),p("ngTemplateOutlet",n.headerTemplate)("ngTemplateOutletContext",U(10,Zs,n.field)),a(1),p("ngIf","row"===n.display)("ngIfElse",e),a(3),p("ngTemplateOutlet",n.footerTemplate)("ngTemplateOutletContext",U(12,Zs,n.field))}}const
wU=function(t,i){return{"p-column-filter-row":t,"p-column-filter-menu":i}};let
Cd=(()=>{class t{constructor(){this.sortSource=new ct,this.selectionSource=new
ct,this.contextMenuSource=new ct,this.valueSource=new ct,this.totalRecordsSource=new
ct,this.columnsSource=new ct,this.resetSource=new c
t,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=X({token:t,factory:t.\u0275fac}),t})(),Dn=(()=>{class
t{constructor(e,n,s,r,o,u){this.el=e,this.zone=n,this.tableService=s,this.cd=r,this.filterService=o,this.overlayService=u,this.pageLinks=5,this.alwaysShowPaginator=!0,thi
s.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
H,this.selectionChange=new H,this.contextMenuSelectionChange=new
H,this.contextMenuSelectionMode="separate",this.rowTrackBy=(h,b)=>b,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
H,t
his.onRowUnselect=new H,this.onPage=new H,this.onSort=new H,this.onFilter=new
H,this.onLazyLoad=new H,this.onRowExpand=new H,this.onRowCollapse=new
H,this.onContextMenuSelect=new H,this.onColResize=new H,this.onColReorder=new
H,this.onRowReorder=new H,this.onEditInit=new H,this.onEditComplete=new
H,this.onEditCancel=new H,this.onHeaderCheckboxToggle=new H,this.sortFunction=new
H,this.firstChange=new H,this.rowsChange=new H,this.onStateSave=new
H,this.onStateRestore=new
H,this._value=[],this._totalRecords=0,this._first=0,this.selectionKeys={},this._sortOrder=1,this._selectAll=null,this.columnResizing=!1,this.rowGroupHeaderStyleObject={},this.id=pl(),this.virtualScrollInitialized=!1}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.forEac
h(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.frozenFooterTemplate=e.template;break;case"f
rozencolgroup":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():"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.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)&&this.sortMultiple()),e.selecti
on&&(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(Z.resolveFieldData(e,this.dataKey))]=1;else
this.selectionKeys[String(Z.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=null,this.scrollable&&this.res
etScrollTop()}sort(e){let
n=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
s=n.metaKey||n.ctrlKey,r=this.getSortMeta(e.field);r?s?r.order=-1*r.order:(this._multiSortMeta=[{field:e.field,order:-1*r.order}],this.resetPageOnSort&&(this._first=0,this.firstChange.emit(this._first),this.scrollable&&this.resetScrollTop())):((!s||!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,n=this.sortField?this.sortOrder:this.groupRowsByOrder;if(this.groupRowsBy&&this.so
rtField&&this.groupRowsBy!==this.sortField)return
this._multiSortMeta=[this.getGroupRowsMeta(),{field:this.sortField,order:this.sortOrder}],void
this.sortMultiple();if(e&&n){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:n}):(this.value.sort((r,o)=>{let
u=Z.resolveFieldData(r,e),h=Z.resolveFieldData(o,e),b=null;return
b=null==u&&null!=h?-1:null!=u&&null==h?1:null==u&&null==h?0:"string"==typeof
u&&"string"==typeof
h?u.localeCompare(h):u<h?-1:u>h?1:0,n*b}),this._value=[...this.value]),this.hasFilter()&&this._filter());let
s={field:e,order:n};this.onSort.emit(s),this.tableService.onSort(s)}}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,n)=>this.multisortField(e,n,this.multiSortMeta,0)),this._value=[...this.value]),this.hasFilter()&&this._filter()),this.onSort.emit({multisortmeta:this.multiSortMeta}),this.tableService.onSort(this.multiSortMeta))}multisortField(e,n,s,r){let
o=Z.resolveFieldData(e,s[r].field),u=Z.resolveFieldData(n,s[r].field),h=null;if(null==o&&null!=u)h=-1;else
if(null!=o&&null==u)h=1;else if(null==o&&null==u)h=0;else
if("string"==typeof o||o instanceof
String){if(o.localeCompare&&o!=u)return s[r].order*o.localeCompare(u)}else
h=o<u?-1:1;return
o==u?s.length-1>r?this.multisortField(e,n,s,r+1):0:s[r].order*h}getSortMeta(e){if(this.multiSortMeta&&this.multiSortMeta.length)for(let
n=0;n<this.multiSortMeta.length;n++)if(this.multiSortMeta[n].field===e)return
this.multiSortMeta[n];return null}isSorted(
e){if("single"===this.sortMode)return
this.sortField&&this.sortField===e;if("multiple"===this.sortMode){let
n=!1;if(this.multiSortMeta)for(let
s=0;s<this.multiSortMeta.length;s++)if(this.multiSortMeta[s].field==e){n=!0;break}return
n}}handleRowClick(e){let
n=e.originalEvent.target,s=n.nodeName,r=n.parentElement&&n.parentElement.nodeName;if("INPUT"!=s&&"BUTTON"!=s&&"A"!=s&&"INPUT"!=r&&"BUTTON"!=r&&"A"!=r&&!R.hasClass(e.originalEvent.target,"p-clickable")){if(this.selectionMode){let
o=e.rowData,u=e.rowIndex;if(this.preventSelectionSetterPropagation=!0,this.isMultipleSelectionMode()&&e.originalEvent.shiftKey&&null!=this.anchorRowIndex)R.clearSelection(),null!=this.rangeRowIndex&&this.clearSelectionRange(e.originalEvent),this.rangeRowIndex=u,this.selectRange(e.originalEvent,u);else{let
h=this.isSelected(o);if(!h&&!this.isRowSelectable(o,u))return;let
b=!this.rowTouched&&this.metaKeySelection,y=this.dataKey?String(Z.resolveFieldData(o,this.dataKey)):null;if(this.anchorRowIndex=u,this.ran
geRowIndex=u,b){let
w=e.originalEvent.metaKey||e.originalEvent.ctrlKey;if(h&&w){if(this.isSingleSelectionMode())this._selection=null,this.selectionKeys={},this.selectionChange.emit(null);else{let
M=this.findIndexInSelection(o);this._selection=this.selection.filter((E,L)=>L!=M),this.selectionChange.emit(this.selection),y&&delete
this.selectionKeys[y]}this.onRowUnselect.emit({originalEvent:e.originalEvent,data:o,type:"row"})}else
this.isSingleSelectionMode()?(this._selection=o,this.selectionChange.emit(o),y&&(this.selectionKeys={},this.selectionKeys[y]=1)):this.isMultipleSelectionMode()&&(w?this._selection=this.selection||[]:(this._selection=[],this.selectionKeys={}),this._selection=[...this.selection,o],this.selectionChange.emit(this.selection),y&&(this.selectionKeys[y]=1)),this.onRowSelect.emit({originalEvent:e.originalEvent,data:o,type:"row",index:u})}else
if("single"===this.selectionMode)h?(this._selection=null,this.selectionKeys={},this.selectionChange.emit(this.selection),this.o
nRowUnselect.emit({originalEvent:e.originalEvent,data:o,type:"row",index:u})):(this._selection=o,this.selectionChange.emit(this.selection),this.onRowSelect.emit({originalEvent:e.originalEvent,data:o,type:"row",index:u}),y&&(this.selectionKeys={},this.selectionKeys[y]=1));else
if("multiple"===this.selectionMode)if(h){let
w=this.findIndexInSelection(o);this._selection=this.selection.filter((M,E)=>E!=w),this.selectionChange.emit(this.selection),this.onRowUnselect.emit({originalEvent:e.originalEvent,data:o,type:"row",index:u}),y&&delete
this.selectionKeys[y]}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:u}),y&&(this.selectionKeys[y]=1)}this.tableService.onSelectionChange(),this.isStateful()&&this.saveState()}this.rowTouched=!1}}handleRowTouchEnd(e){this.rowTouched=!0}handleRowRightClick(e){if(this.contextMenu){const
n=e.rowData,s=e.rowIndex;if("separate"
===this.contextMenuSelectionMode)this.contextMenuSelection=n,this.contextMenuSelectionChange.emit(n),this.onContextMenuSelect.emit({originalEvent:e.originalEvent,data:n,index:e.rowIndex}),this.contextMenu.show(e.originalEvent),this.tableService.onContextMenu(n);else
if("joint"===this.contextMenuSelectionMode){this.preventSelectionSetterPropagation=!0;let
r=this.isSelected(n),o=this.dataKey?String(Z.resolveFieldData(n,this.dataKey)):null;if(!r){if(!this.isRowSelectable(n,s))return;this.isSingleSelectionMode()?(this.selection=n,this.selectionChange.emit(n),o&&(this.selectionKeys={},this.selectionKeys[o]=1)):this.isMultipleSelectionMode()&&(this._selection=this.selection?[...this.selection,n]:[n],this.selectionChange.emit(this.selection),o&&(this.selectionKeys[o]=1))}this.tableService.onSelectionChange(),this.contextMenu.show(e.originalEvent),this.onContextMenuSelect.emit({originalEvent:e,data:n,index:e.rowIndex})}}}selectRange(e,n){let
s,r;this.anchorRowIndex>n?(s=n,r=this.anchorRowIn
dex):this.anchorRowIndex<n?(s=this.anchorRowIndex,r=n):(s=n,r=n),this.lazy&&this.paginator&&(s-=this.first,r-=this.first);let
o=[];for(let u=s;u<=r;u++){let
h=this.filteredValue?this.filteredValue[u]:this.value[u];if(!this.isSelected(h)){if(!this.isRowSelectable(h,n))continue;o.push(h),this._selection=[...this.selection,h];let
b=this.dataKey?String(Z.resolveFieldData(h,this.dataKey)):null;b&&(this.selectionKeys[b]=1)}}this.selectionChange.emit(this.selection),this.onRowSelect.emit({originalEvent:e,data:o,type:"row"})}clearSelectionRange(e){let
n,s;this.rangeRowIndex>this.anchorRowIndex?(n=this.anchorRowIndex,s=this.rangeRowIndex):this.rangeRowIndex<this.anchorRowIndex?(n=this.rangeRowIndex,s=this.anchorRowIndex):(n=this.rangeRowIndex,s=this.rangeRowIndex);for(let
r=n;r<=s;r++){let
o=this.value[r],u=this.findIndexInSelection(o);this._selection=this.selection.filter((b,y)=>y!=u);let
h=this.dataKey?String(Z.resolveFieldData(o,this.dataKey)):null;h&&delete
this.selectionKeys[h],this.onR
owUnselect.emit({originalEvent:e,data:o,type:"row"})}}isSelected(e){return!(!e||!this.selection)&&(this.dataKey?void
0!==this.selectionKeys[Z.resolveFieldData(e,this.dataKey)]:this.selection instanceof
Array?this.findIndexInSelection(e)>-1:this.equals(e,this.selection))}findIndexInSelection(e){let
n=-1;if(this.selection&&this.selection.length)for(let
s=0;s<this.selection.length;s++)if(this.equals(e,this.selection[s])){n=s;break}return
n}isRowSelectable(e,n){return!(this.rowSelectable&&!this.rowSelectable({data:e,index:n}))}toggleRowWithRadio(e,n){if(this.preventSelectionSetterPropagation=!0,this.selection!=n){if(!this.isRowSelectable(n,e.rowIndex))return;this._selection=n,this.selectionChange.emit(this.selection),this.onRowSelect.emit({originalEvent:e.originalEvent,index:e.rowIndex,data:n,type:"radiobutton"}),this.dataKey&&(this.selectionKeys={},this.selectionKeys[String(Z.resolveFieldData(n,this.dataKey))]=1)}else
this._selection=null,this.selectionChange.emit(this.selection),this.
onRowUnselect.emit({originalEvent:e.originalEvent,index:e.rowIndex,data:n,type:"radiobutton"});this.tableService.onSelectionChange(),this.isStateful()&&this.saveState()}toggleRowWithCheckbox(e,n){this.selection=this.selection||[];let
s=this.isSelected(n),r=this.dataKey?String(Z.resolveFieldData(n,this.dataKey)):null;if(this.preventSelectionSetterPropagation=!0,s){let
o=this.findIndexInSelection(n);this._selection=this.selection.filter((u,h)=>h!=o),this.selectionChange.emit(this.selection),this.onRowUnselect.emit({originalEvent:e.originalEvent,index:e.rowIndex,data:n,type:"checkbox"}),r&&delete
this.selectionKeys[r]}else{if(!this.isRowSelectable(n,e.rowIndex))return;this._selection=this.selection?[...this.selection,n]:[n],this.selectionChange.emit(this.selection),this.onRowSelect.emit({originalEvent:e.originalEvent,index:e.rowIndex,data:n,type:"checkbox"}),r&&(this.selectionKeys[r]=1)}this.tableService.onSelectionChange(),this.isStateful()&&this.saveState()}toggleRowsWithCheckbox(e,n
){if(null!==this._selectAll)this.selectAllChange.emit({originalEvent:e,checked:n});else{const
s=this.selectionPageOnly?this.dataToRender:this.filteredValue||this.value||[];let
r=this.selectionPageOnly&&this._selection?this._selection.filter(o=>!s.some(u=>this.equals(o,u))):[];n&&(r=this.frozenValue?[...r,...this.frozenValue,...s]:[...r,...s],r=this.rowSelectable?r.filter((o,u)=>this.rowSelectable({data:o,index:u})):r),this._selection=r,this.preventSelectionSetterPropagation=!0,this.updateSelectionKeys(),this.selectionChange.emit(this._selection),this.tableService.onSelectionChange(),this.onHeaderCheckboxToggle.emit({originalEvent:e,checked:n}),this.isStateful()&&this.saveState()}}equals(e,n){return"equals"===this.compareSelectionBy?e===n:Z.equals(e,n,this.dataKey)}filter(e,n,s){this.filterTimeout&&clearTimeout(this.filterTimeout),this.isFilterBlank(e)?this.filters[n]&&delete
this.filters[n]:this.filters[n]={value:e,matchMode:s},this.filterTimeout=setTimeout(()=>{this._filter(),this.
filterTimeout=null},this.filterDelay),this.anchorRowIndex=null}filterGlobal(e,n){this.filter(e,"global",n)}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
n=0;n<this.value.length;n++){let u,s=!0,r=!1,o=!1;for(let h in
this.filters)if(this.filters.hasOwnProperty(h)&&"global"!==h){o=!0;let
b=h,y=this.filters[b];if(Array.isArray(y)){for(let w of
y)if(s=this.executeLocalFilter(b,this.value[n],w),w.operator===ml.OR&&s||w.operator===ml.AND&&!s)break}else
s=this.executeLocalFilter(b,this.value[n],y);if(!s)b
reak}if(this.filters.global&&!r&&e)for(let
h=0;h<e.length&&(r=this.filterService.filters[this.filters.global.matchMode](Z.resolveFieldData(this.value[n],e[h].field||e[h]),this.filters.global.value,this.filterLocale),!r);h++);u=this.filters.global?o?o&&s&&r:r:o&&s,u&&this.filteredValue.push(this.value[n])}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,n,s){let
r=s.value,o=s.matchMode||_t.STARTS_WITH,u=Z.resolveFieldData(n,e);return this.f
ilterService.filters[o](u,r,this.filterLocale)}hasFilter(){let e=!0;for(let n in
this.filters)if(this.filters.hasOwnProperty(n)){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()}getExportHeader(e){return
e[this.exportHeader]||e.header||e.field}exportCSV(e){let
n,s="",r=this.columns;e&&e.selectionOnly?n=this.selection||[]:(n=this.filteredValue||this.value,this.f
rozenValue&&(n=n?[...this.frozenValue,...n]:this.frozenValue));for(let
h=0;h<r.length;h++){let
b=r[h];!1!==b.exportable&&b.field&&(s+='"'+this.getExportHeader(b)+'"',h<r.length-1&&(s+=this.csvSeparator))}n.forEach((h,b)=>{s+="\n";for(let
y=0;y<r.length;y++){let w=r[y];if(!1!==w.exportable&&w.field){let
M=Z.resolveFieldData(h,w.field);M=null!=M?this.exportFunction?this.exportFunction({data:M,field:w.field}):String(M).replace(/"/g,'""'):"",s+='"'+M+'"',y<r.length-1&&(s+=this.csvSeparator)}}});let
o=new
Blob([s],{type:"text/csv;charset=utf-8;"}),u=document.createElement("a");u.style.display="none",document.body.appendChild(u),void
0!==u.download?(u.setAttribute("href",URL.createObjectURL(o)),u.setAttribute("download",this.exportFilename+".csv"),u.click()):(s="data:text/csv;charset=utf-8,"+s,window.open(encodeURI(s))),document.body.removeChild(u)}resetScrollTop(){this.virtualScroll?this.scrollToVirtualIndex(0):this.scrollTo({top:0})}scrollToVirtualIndex(e){this.virtualScrollBody&&this.v
irtualScrollBody.scrollToIndex(e)}onScrollIndexChange(e){this.lazy&&(this.virtualScrollTimeout&&clearTimeout(this.virtualScrollTimeout),this.virtualScrollTimeout=setTimeout(()=>{let
n=Math.floor(e/this.rows),s=0===n?0:(n-1)*this.rows,r=0===n?2*this.rows:3*this.rows;n!==this.virtualPage&&(this.virtualPage=n,this.lazyLoadOnInit||this.virtualScrollInitialized?this.onLazyLoad.emit({first:s,rows:r,sortField:this.sortField,sortOrder:this.sortOrder,filters:this.filters,globalFilter:this.filters&&this.filters.global?this.filters.global.value:null,multiSortMeta:this.multiSortMeta}):this.virtualScrollInitialized=!0)},this.virtualScrollDelay))}scrollTo(e){this.virtualScrollBody?this.virtualScrollBody.scrollTo(e):this.wrapperViewChild&&this.wrapperViewChild.nativeElement&&(this.wrapperViewChild.nativeElement.scrollTo?this.wrapperViewChild.nativeElement.scrollTo(e):(this.wrapperViewChild.nativeElement.scrollLeft=e.left,this.wrapperViewChild.nativeElement.scrollTop=e.top))}updateEditingCell(e,n,s
,r){this.editingCell=e,this.editingCellData=n,this.editingCellField=s,this.editingCellRowIndex=r,this.bindDocumentEditListener()}isEditingCellValid(){return
this.editingCell&&0===R.find(this.editingCell,".ng-invalid.ng-dirty").length}bindDocumentEditListener(){this.documentEditListener||(this.documentEditListener=e=>{this.editingCell&&!this.selfClick&&this.isEditingCellValid()&&(R.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.do
cumentEditListener=null)}initRowEdit(e){let
n=String(Z.resolveFieldData(e,this.dataKey));this.editingRowKeys[n]=!0}saveRowEdit(e,n){if(0===R.find(n,".ng-invalid.ng-dirty").length){let
s=String(Z.resolveFieldData(e,this.dataKey));delete
this.editingRowKeys[s]}}cancelRowEdit(e){let
n=String(Z.resolveFieldData(e,this.dataKey));delete
this.editingRowKeys[n]}toggleRow(e,n){if(!this.dataKey)throw new Error("dataKey must
be defined to use row expansion");let
s=String(Z.resolveFieldData(e,this.dataKey));null!=this.expandedRowKeys[s]?(delete
this.expandedRowKeys[s],this.onRowCollapse.emit({originalEvent:n,data:e})):("single"===this.rowExpandMode&&(this.expandedRowKeys={}),this.expandedRowKeys[s]=!0,this.onRowExpand.emit({originalEvent:n,data:e})),n&&n.preventDefault(),this.isStateful()&&this.saveState()}isRowExpanded(e){return!0===this.expandedRowKeys[String(Z.resolveFieldData(e,this.dataKey))]}isRowEditing(e){return!0===this.editingRowKeys[String(Z.resolveFieldData(e,this.dataKey))]}isSingl
eSelectionMode(){return"single"===this.selectionMode}isMultipleSelectionMode(){return"multiple"===this.selectionMode}onColumnResizeBegin(e){let
n=R.getOffset(this.containerViewChild.nativeElement).left;this.resizeColumnElement=e.target.parentElement,this.columnResizing=!0,this.lastResizerHelperX=e.pageX-n+this.containerViewChild.nativeElement.scrollLeft,this.onColumnResize(e),e.preventDefault()}onColumnResize(e){let
n=R.getOffset(this.containerViewChild.nativeElement).left;R.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-n+this.containerViewChild.nativeElement.scrollLeft+"px",this.resizeHelperViewChild.nativeElement.style.display="block"}onColumnResizeEnd(){let
e=this.resizeHelperViewChild.nativeElement.offsetLeft-this.lastResizerHelperX
,s=this.resizeColumnElement.offsetWidth+e;if(s>=(this.resizeColumnElement.style.minWidth||15)){if("fit"===this.columnResizeMode){let
u=this.resizeColumnElement.nextElementSibling.offsetWidth-e;s>15&&u>15&&this.resizeTableCells(s,u)}else
if("expand"===this.columnResizeMode){let
o=this.tableViewChild.nativeElement.offsetWidth+e;this.tableViewChild.nativeElement.style.width=o+"px",this.tableViewChild.nativeElement.style.minWidth=o+"px",this.resizeTableCells(s,null)}this.onColResize.emit({element:this.resizeColumnElement,delta:e}),this.isStateful()&&this.saveState()}this.resizeHelperViewChild.nativeElement.style.display="none",R.removeClass(this.containerViewChild.nativeElement,"p-unselectable-text")}resizeTableCells(e,n){let
s=R.index(this.resizeColumnElement),r=[];const
o=R.findSingle(this.containerViewChild.nativeElement,".p-datatable-thead");R.find(o,"tr
>
th").forEach(b=>r.push(R.getOuterWidth(b))),this.destroyStyleElement(),this.createStyleElement();let
h="";r.forEach((b,y)=>{let
w=y===s?e:n&&y===s+1?n:b;h+=`\n #${this.id} .p-datatable-thead
> tr > th:nth-child(${y+1}),\n #${this.id} .p-datatable-tbody > tr
> td:nth-child(${y+1}),\n #${this.id} .p-datatable-tfoot > tr >
td:nth-child(${y+1}) {\n ${this.scrollable?`flex: 1 1 ${w}px
!important`:`width: ${w}px !important`}\n }\n
`}),this.styleElement.innerHTML=h}onColumnDragStart(e,n){this.reorderIconWidth=R.getHiddenElementOuterWidth(this.reorderIndicatorUpViewChild.nativeElement),this.reorderIconHeight=R.getHiddenElementOuterHeight(this.reorderIndicatorDownViewChild.nativeElement),this.draggedColumn=n,e.dataTransfer.setData("text","b")}onColumnDragEnter(e,n){if(this.reorderableColumns&&this.draggedColumn&&n){e.preventDefault();let
s=R.getOffset(this.containerViewChild.nativeElement),r=R.getOffset(n);if(this.draggedColumn!=n){let
o=R.indexWithinGroup(this.draggedColumn,"preorderablecolumn"),u=R.indexWithinGroup(n,"preorder
ablecolumn"),h=r.left-s.left,y=r.left+n.offsetWidth/2;this.reorderIndicatorUpViewChild.nativeElement.style.top=r.top-s.top-(this.reorderIconHeight-1)+"px",this.reorderIndicatorDownViewChild.nativeElement.style.top=r.top-s.top+n.offsetHeight+"px",e.pageX>y?(this.reorderIndicatorUpViewChild.nativeElement.style.left=h+n.offsetWidth-Math.ceil(this.reorderIconWidth/2)+"px",this.reorderIndicatorDownViewChild.nativeElement.style.left=h+n.offsetWidth-Math.ceil(this.reorderIconWidth/2)+"px",this.dropPosition=1):(this.reorderIndicatorUpViewChild.nativeElement.style.left=h-Math.ceil(this.reorderIconWidth/2)+"px",this.reorderIndicatorDownViewChild.nativeElement.style.left=h-Math.ceil(this.reorderIconWidth/2)+"px",this.dropPosition=-1),u-o==1&&-1===this.dropPosition||u-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,n){if(e.preventDefault(),this.draggedColumn){let
s=R.indexWithinGroup(this.draggedColumn,"preorderablecolumn"),r=R.indexWithinGroup(n,"preorderablecolumn"),o=s!=r;o&&(r-s==1&&-1===this.dropPosition||s-r==1&&1===this.dropPosition)&&(o=!1),o&&r<s&&1===this.dropPosition&&(r+=1),o&&r>s&&-1===this.dropPosition&&(r-=1),o&&(Z.reorderArray(this.columns,s,r),this.onColReorder.emit({dragIndex:s,dropIndex:r,columns:this.columns}),this.isStateful()&&this.zone.runOutsideAngular(()=>{setTimeout(()=>{this.saveState()})})),this.reorderIndicatorUpViewChild.nativeElement.style.display="none",this.reorderIndicatorDownViewChild.nativeElement.style.d
isplay="none",this.draggedColumn.draggable=!1,this.draggedColumn=null,this.dropPosition=null}}onRowDragStart(e,n){this.rowDragging=!0,this.draggedRowIndex=n,e.dataTransfer.setData("text","b")}onRowDragOver(e,n,s){if(this.rowDragging&&this.draggedRowIndex!==n){let
r=R.getOffset(s).top+R.getWindowScrollTop(),o=e.pageY,u=r+R.getOuterHeight(s)/2,h=s.previousElementSibling;o<u?(R.removeClass(s,"p-datatable-dragpoint-bottom"),this.droppedRowIndex=n,h?R.addClass(h,"p-datatable-dragpoint-bottom"):R.addClass(s,"p-datatable-dragpoint-top")):(h?R.removeClass(h,"p-datatable-dragpoint-bottom"):R.addClass(s,"p-datatable-dragpoint-top"),this.droppedRowIndex=n+1,R.addClass(s,"p-datatable-dragpoint-bottom"))}}onRowDragLeave(e,n){let
s=n.previousElementSibling;s&&R.removeClass(s,"p-datatable-dragpoint-bottom"),R.removeClass(n,"p-datatable-dragpoint-bottom"),R.removeClass(n,"p-datatable-dragpoint-top")}onRowDragEnd(e){this.rowDragging=!1,this.draggedRowIndex=null,this.droppedRowIndex=null}onRowDrop(e,
n){if(null!=this.droppedRowIndex){let
s=this.draggedRowIndex>this.droppedRowIndex?this.droppedRowIndex:0===this.droppedRowIndex?0:this.droppedRowIndex-1;Z.reorderArray(this.value,this.draggedRowIndex,s),this.virtualScroll&&(this._value=[...this._value]),this.onRowReorder.emit({dragIndex:this.draggedRowIndex,dropIndex:s})}this.onRowDragLeave(e,n),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
n={};this.paginator&&(n.first=this.first,n.rows=this.rows),this.sortField&&(n.sortField=this.sortField,n.sortOrder=this.sortOrder),this.multiSortMeta&&(
n.multiSortMeta=this.multiSortMeta),this.hasFilter()&&(n.filters=this.filters),this.resizableColumns&&this.saveColumnWidths(n),this.reorderableColumns&&this.saveColumnOrder(n),this.selection&&(n.selection=this.selection),Object.keys(this.expandedRowKeys).length&&(n.expandedRowKeys=this.expandedRowKeys),e.setItem(this.stateKey,JSON.stringify(n)),this.onStateSave.emit(n)}clearState(){const
e=this.getStorage();this.stateKey&&e.removeItem(this.stateKey)}restoreState(){const
n=this.getStorage().getItem(this.stateKey),s=/\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}.\d{3}Z/;if(n){let
o=JSON.parse(n,function(o,u){return"string"==typeof u&&s.test(u)?new
Date(u):u});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.filt
ers&&(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
n=[];R.find(this.containerViewChild.nativeElement,".p-datatable-thead > tr >
th").forEach(r=>n.push(R.getOuterWidth(r))),e.columnWidths=n.join(","),"expand"===this.columnResizeMode&&(e.tableWidth=R.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),Z.isNotEmpty(e))
{this.createStyleElement();let n="";e.forEach((s,r)=>{n+=`\n
#${this.id} .p-datatable-thead > tr > th:nth-child(${r+1}),\n
#${this.id} .p-datatable-tbody > tr > td:nth-child(${r+1}),\n
#${this.id} .p-datatable-tfoot > tr > td:nth-child(${r+1}) {\n
${this.scrollable?`flex: 1 1 ${s}px !important`:`width: ${s}px !important`}\n
}\n
`}),this.styleElement.innerHTML=n}}}saveColumnOrder(e){if(this.columns){let
n=[];this.columns.map(s=>{n.push(s.field||s.key)}),e.columnOrder=n}}restoreColumnOrder(){const
n=this.getStorage().getItem(this.stateKey);if(n){let r=JSON.parse(n).columnOrder;if(r){let
o=[];r.map(u=>{let
h=this.findColumnByKey(u);h&&o.push(h)}),this.columnOrderStateRestored=!0,this.columns=o}}}findColumnByKey(e){if(!this.columns)return
null;for(let n of this.columns)if(n.key===e||n.field===e)return
n}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.virtualScrollInitialized=null,this.virtualScrollSubscription&&this.virtualScrollSubscription.unsubscribe(),this.destroyStyleElement(),this.destroyResponsiveStyle()}}return
t.\u0275fac=function(e){return
new(e||t)(D(De),D(nt),D(Cd),D(rt),D(hl),D(Ks))},t.\u0275cmp=z({type:t,selectors:[["p-table"]],contentQueries:function(e,n,s){if(1&e&&st(s,ne,4),2&e){let
r;V(r=B())&&(n.templates=r)}},viewQuery:function(e,n){if(1&e&&(W(Eq,5),W(Rq,5),W(Lq,5),W(Oq,5),W(Aq,5),W(Pq
,5),W(Fq,5),W(Po,5)),2&e){let
s;V(s=B())&&(n.containerViewChild=s.first),V(s=B())&&(n.resizeHelperViewChild=s.first),V(s=B())&&(n.reorderIndicatorUpViewChild=s.first),V(s=B())&&(n.reorderIndicatorDownViewChild=s.first),V(s=B())&&(n.wrapperViewChild=s.first),V(s=B())&&(n.tableViewChild=s.first),V(s=B())&&(n.tableHeaderViewChild=s.first),V(s=B())&&(n.virtualScrollBody=s.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",sho
wJumpToPageInput:"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",filterLocale:"filterLocale",expandedRowKeys:"expandedRowKeys",editingRowKeys:"editingRowKeys",rowExpandMode:"rowExpandMode",scrollable:"scrollable",scrollDirection:"scrollDirection",rowGroupMode:"rowGroupMode",scrollHeight:"scrollHeight",virtualScroll:"virtualScroll",virtualScrollDelay:"virtualScrol
lDelay",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",exportHeader:"exportHeader",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",c
ontextMenuSelectionChange:"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:[Pe([Cd]),fn],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","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","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","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"],["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,n){1&e&&(l(0,"div",0,1),_(
2,Nq,2,2,"div",2),_(3,Bq,2,1,"div",3),_(4,Hq,1,17,"p-paginator",4),l(5,"div",5,6),_(7,$q,8,16,"table",7),_(8,Zq,10,21,"cdk-virtual-scroll-viewport",8),c(),_(9,Xq,1,17,"p-paginator",9),_(10,tG,2,1,"div",10),_(11,nG,2,0,"div",11),_(12,iG,2,0,"span",12),_(13,sG,2,0,"span",13),c()),2&e&&(me(n.styleClass),p("ngStyle",n.style)("ngClass",Hh(16,rG,[n.rowHover||n.selectionMode,n.autoLayout,n.resizableColumns,n.resizableColumns&&"fit"===n.columnResizeMode,n.scrollable,n.scrollable&&"vertical"===n.scrollDirection,n.scrollable&&"horizontal"===n.scrollDirection,n.scrollable&&"both"===n.scrollDirection,n.scrollable&&"flex"===n.scrollHeight,"stack"===n.responsiveLayout,"scroll"===n.responsiveLayout,n.responsive,null!=n.headerGroupedTemplate,null!=n.footerGroupedTemplate])),ie("id",n.id),a(2),p("ngIf",n.loading&&n.showLoader),a(1),p("ngIf",n.captionTemplate),a(1),p("ngIf",n.paginator&&("top"===n.paginatorPosition||"both"==n.paginatorPosition)),a(1),p("ngStyle",U(31,oG,n.scrollHeight)),a(2),p("ngIf"
,!n.virtualScroll),a(1),p("ngIf",n.virtualScroll),a(1),p("ngIf",n.paginator&&("bottom"===n.paginatorPosition||"both"==n.paginatorPosition)),a(1),p("ngIf",n.summaryTemplate),a(1),p("ngIf",n.resizableColumns),a(1),p("ngIf",n.reorderableColumns),a(1),p("ngIf",n.reorderableColumns))},directives:function(){return[ET,TU,Po,lt,Le,Q,Rt,Qf]},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-responsi
ve-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-vi
rtual-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-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-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-s
pace:nowrap}.p-datatable-resizable
.p-resizable-column:not(.p-frozen-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-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{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;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})(),TU=(()=>{cla
ss
t{constructor(e,n,s,r){this.dt=e,this.tableService=n,this.cd=s,this.el=r,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,n,s){let
r=Z.resolveFieldData(n,this.dt.groupRowsBy),o=e[s-1];return!o||r!==Z.resolveFieldData(o,this.dt.groupRowsBy)}shouldRenderRowGroupFooter(e,n,s){let
r=Z.resolveFieldData(n,this.dt.groupRowsBy),o=e[s+1];return!o||r!==Z.resolveFieldData(o,this.dt.groupRowsBy)}shouldRenderRowspan(e,n,s){let
r=Z.resolveFieldData(n,this.dt.groupRowsBy),o=e[s-1];return!o||r!==Z.resolveFieldData(o,
this.dt.groupRowsBy)}calculateRowGroupSize(e,n,s){let
r=Z.resolveFieldData(n,this.dt.groupRowsBy),o=r,u=0;for(;r===o;){u++;let
h=e[++s];if(!h)break;o=Z.resolveFieldData(h,this.dt.groupRowsBy)}return
1===u?null:u}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}updateFrozenRowStickyPosition(){this.el.nativeElement.style.top=R.getOuterHeight(this.el.nativeElement.previousElementSibling)+"px"}updateFrozenRowGroupHeaderStickyPosition(){if(this.el.nativeElement.previousElementSibling){let
e=R.getOuterHeight(this.el.nativeElement.previousElementSibling);this.dt.rowGroupHeaderStyleObject.top=e+"px"}}}return
t.\u0275fac=function(e){return
new(e||t)(D(Dn),D(Cd),D(rt),D(De))},t.\u0275cmp=z({type:t,selectors:[["","pTableBody",""]],hostAttrs:[1,"p-element"],inputs:{columns:["pTableBody","columns"],template:["pTableBodyTemplate","template"],value:"value",frozen:"frozen",frozenRows:"frozenRows"},attrs:aG,decls:6,vars:6,consts:[[4,"ngIf"],["ngFor","",3,"ngForOf","ngForTrackBy"],["r
ole","row",4,"ngIf"],["role","row"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],["cdkVirtualFor","",3,"cdkVirtualForOf","cdkVirtualForTrackBy","cdkVirtualForTemplateCacheSize"]],template:function(e,n){1&e&&(_(0,bG,2,2,"ng-container",0),_(1,yG,2,3,"ng-container",0),_(2,RG,2,2,"ng-container",0),_(3,FG,2,2,"ng-container",0),_(4,VG,2,5,"ng-container",0),_(5,HG,2,5,"ng-container",0)),2&e&&(p("ngIf",!n.dt.expandedRowTemplate&&!n.dt.virtualScroll),a(1),p("ngIf",!n.dt.expandedRowTemplate&&n.dt.virtualScroll),a(1),p("ngIf",n.dt.expandedRowTemplate&&!(n.frozen&&n.dt.frozenExpandedRowTemplate)),a(1),p("ngIf",n.dt.frozenExpandedRowTemplate&&n.frozen),a(1),p("ngIf",n.dt.loading),a(1),p("ngIf",n.dt.isEmpty()&&!n.dt.loading))},directives:[Q,at,Rt,Jf],encapsulation:2}),t})(),SU=(()=>{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)(D(Dn)
)},t.\u0275dir=le({type:t,selectors:[["","pRowGroupHeader",""]],hostAttrs:[1,"p-rowgroup-header","p-element"],hostVars:2,hostBindings:function(e,n){2&e&&_i("top",n.getFrozenRowGroupHeaderStickyPosition)}}),t})(),yd=(()=>{class
t{constructor(e){this.dt=e,this.isEnabled()&&(this.subscription=this.dt.tableService.sortSource$.subscribe(n=>{this.updateSortState()}))}ngOnInit(){this.isEnabled()&&this.updateSortState()}updateSortState(){this.sorted=this.dt.isSorted(this.field),this.sortOrder=this.sorted?1===this.dt.sortOrder?"ascending":"descending":"none"}onClick(e){this.isEnabled()&&!this.isFilterElement(e.target)&&(this.updateSortState(),this.dt.sort({originalEvent:e,field:this.field}),R.clearSelection())}onEnterKey(e){this.onClick(e)}isEnabled(){return!0!==this.pSortableColumnDisabled}isFilterElement(e){return
R.hasClass(e,"pi-filter-icon")||R.hasClass(e,"p-column-filter-menu-button")}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}}return
t.\u0275fac=function(e){retur
n
new(e||t)(D(Dn))},t.\u0275dir=le({type:t,selectors:[["","pSortableColumn",""]],hostAttrs:[1,"p-element"],hostVars:7,hostBindings:function(e,n){1&e&&C("click",function(r){return
n.onClick(r)})("keydown.enter",function(r){return
n.onEnterKey(r)}),2&e&&(ie("tabindex",n.isEnabled()?"0":null)("role","columnheader")("aria-sort",n.sortOrder),si("p-sortable-column",n.isEnabled())("p-highlight",n.sorted))},inputs:{field:["pSortableColumn","field"],pSortableColumnDisabled:"pSortableColumnDisabled"}}),t})(),wd=(()=>{class
t{constructor(e,n){this.dt=e,this.cd=n,this.subscription=this.dt.tableService.sortSource$.subscribe(s=>{this.updateSortState()})}ngOnInit(){this.updateSortState()}onClick(e){e.preventDefault()}updateSortState(){if("single"===this.dt.sortMode)this.sortOrder=this.dt.isSorted(this.field)?this.dt.sortOrder:0;else
if("multiple"===this.dt.sortMode){let
e=this.dt.getSortMeta(this.field);this.sortOrder=e?e.order:0}this.cd.markForCheck()}getMultiSortMetaIndex(){let
e=this.dt._multiS
ortMeta,n=-1;if(e&&"multiple"===this.dt.sortMode&&(this.dt.showInitialSortBadge||e.length>1))for(let
s=0;s<e.length;s++){let
r=e[s];if(r.field===this.field||r.field===this.field){n=s;break}}return
n}getBadgeValue(){let e=this.getMultiSortMetaIndex();return
this.dt.groupRowsBy&&e>-1?e:e+1}isMultiSorted(){return"multiple"===this.dt.sortMode&&this.getMultiSortMetaIndex()>-1}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}}return
t.\u0275fac=function(e){return
new(e||t)(D(Dn),D(rt))},t.\u0275cmp=z({type:t,selectors:[["p-sortIcon"]],hostAttrs:[1,"p-element"],inputs:{field:"field"},decls:2,vars:6,consts:[[1,"p-sortable-column-icon","pi","pi-fw",3,"ngClass"],["class","p-sortable-column-badge",4,"ngIf"],[1,"p-sortable-column-badge"]],template:function(e,n){1&e&&(k(0,"i",0),_(1,qG,2,1,"span",1)),2&e&&(p("ngClass",Qt(2,GG,1===n.sortOrder,-1===n.sortOrder,0===n.sortOrder)),a(1),p("ngIf",n.isMultiSorted()))},directives:[Le,Q],encapsulation:2,changeDetection:0}),t})(),j2=(()=>{c
lass
t{constructor(e,n){this.dt=e,this.tableService=n,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
s=this.findNextSelectableRow(e.currentTarget);s&&s.focus(),e.preventDefault()}onArrowUpKeyDown(e){if(!this.isEnabled())return;const
s=this.findPrevSelectableRow(e.currentTarget);s&&s.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.virtua
lScrollBody.elementRef.nativeElement.focus()}findNextSelectableRow(e){let
n=e.nextElementSibling;return
n?R.hasClass(n,"p-selectable-row")?n:this.findNextSelectableRow(n):null}findPrevSelectableRow(e){let
n=e.previousElementSibling;return
n?R.hasClass(n,"p-selectable-row")?n:this.findPrevSelectableRow(n):null}isEnabled(){return!0!==this.pSelectableRowDisabled}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}}return
t.\u0275fac=function(e){return
new(e||t)(D(Dn),D(Cd))},t.\u0275dir=le({type:t,selectors:[["","pSelectableRow",""]],hostAttrs:[1,"p-element"],hostVars:5,hostBindings:function(e,n){1&e&&C("click",function(r){return
n.onClick(r)})("touchend",function(r){return
n.onTouchEnd(r)})("keydown.arrowdown",function(r){return
n.onArrowDownKeyDown(r)})("keydown.arrowup",function(r){return
n.onArrowUpKeyDown(r)})("keydown.enter",function(r){return
n.onEnterKeyDown(r)})("keydown.shift.enter",function(r){return
n.onEnterKeyDown(r)})("keydown.meta.enter",function(r){return
n.onEnterKeyDown(r)})("keydown.pagedown",function(){return
n.onPageDownKeyDown()})("keydown.pageup",function(){return
n.onPageDownKeyDown()})("keydown.home",function(){return
n.onPageDownKeyDown()})("keydown.end",function(){return
n.onPageDownKeyDown()})("keydown.space",function(){return
n.onSpaceKeydown()}),2&e&&(ie("tabindex",n.isEnabled()?0:void
0),si("p-selectable-row",n.isEnabled())("p-highlight",n.selected))},inputs:{data:["pSelectableRow","data"],index:["pSelectableRowIndex","index"],pSelectableRowDisabled:"pSelectableRowDisabled"}}),t})(),$2=(()=>{class
t{constructor(e,n,s){this.dt=e,this.el=n,this.zone=s}ngAfterViewInit(){this.isEnabled()&&R.addClass(this.el.nativeElement,"p-editable-column")}onClick(e){if(this.isEnabled())if(this.dt.selfClick=!0,this.dt.editingCell){if(this.dt.editingCell!==this.el.nativeElement){if(!this.dt.isEditingCellValid())return;this.closeEditingCell(!0,e),this.openCell()}}else
this.openCell()}openCell(){this.dt.updateEditingCell(this.el.nativeEleme
nt,this.data,this.field,this.rowIndex),R.addClass(this.el.nativeElement,"p-cell-editing"),this.dt.onEditInit.emit({field:this.field,data:this.data,index:this.rowIndex}),this.zone.runOutsideAngular(()=>{setTimeout(()=>{let
n=R.findSingle(this.el.nativeElement,this.pFocusCellSelector||"input, textarea,
select");n&&n.focus()},50)}),this.overlayEventListener=e=>{this.el&&this.el.nativeElement.contains(e.target)&&(this.dt.selfClick=!0)},this.dt.overlaySubscription=this.dt.overlayService.clickObservable.subscribe(this.overlayEventListener)}closeEditingCell(e,n){e?this.dt.onEditComplete.emit({field:this.dt.editingCellField,data:this.dt.editingCellData,originalEvent:n,index:this.dt.editingCellRowIndex}):this.dt.onEditCancel.emit({field:this.dt.editingCellField,data:this.dt.editingCellData,originalEvent:n,index:this.dt.editingCellRowIndex}),R.removeClass(this.dt.editingCell,"p-cell-editing"),this.dt.editingCell=null,this.dt.editingCellData=null,this.dt.editingCellField=null,this.dt.unbindDoc
umentEditListener(),this.dt.overlaySubscription&&this.dt.overlaySubscription.unsubscribe()}onEnterKeyDown(e){this.isEnabled()&&(this.dt.isEditingCellValid()&&this.closeEditingCell(!0,e),e.preventDefault())}onEscapeKeyDown(e){this.isEnabled()&&(this.dt.isEditingCellValid()&&this.closeEditingCell(!1,e),e.preventDefault())}onShiftKeyDown(e){this.isEnabled()&&(e.shiftKey?this.moveToPreviousCell(e):this.moveToNextCell(e))}onArrowDown(e){if(this.isEnabled()){let
n=this.findCell(e.target);if(n){let
s=R.index(n),r=this.findNextEditableColumnByIndex(n,s);r&&(this.dt.isEditingCellValid()&&this.closeEditingCell(!0,e),R.invokeElementMethod(e.target,"blur"),R.invokeElementMethod(r,"click")),e.preventDefault()}}}onArrowUp(e){if(this.isEnabled()){let
n=this.findCell(e.target);if(n){let
s=R.index(n),r=this.findPrevEditableColumnByIndex(n,s);r&&(this.dt.isEditingCellValid()&&this.closeEditingCell(!0,e),R.invokeElementMethod(e.target,"blur"),R.invokeElementMethod(r,"click")),e.preventDefault()}}}onAr
rowLeft(e){this.isEnabled()&&this.moveToPreviousCell(e)}onArrowRight(e){this.isEnabled()&&this.moveToNextCell(e)}findCell(e){if(e){let
n=e;for(;n&&!R.hasClass(n,"p-cell-editing");)n=n.parentElement;return
n}return null}moveToPreviousCell(e){let n=this.findCell(e.target);if(n){let
s=this.findPreviousEditableColumn(n);s&&(this.dt.isEditingCellValid()&&this.closeEditingCell(!0,e),R.invokeElementMethod(e.target,"blur"),R.invokeElementMethod(s,"click"),e.preventDefault())}}moveToNextCell(e){let
n=this.findCell(e.target);if(n){let
s=this.findNextEditableColumn(n);s&&(this.dt.isEditingCellValid()&&this.closeEditingCell(!0,e),R.invokeElementMethod(e.target,"blur"),R.invokeElementMethod(s,"click"),e.preventDefault())}}findPreviousEditableColumn(e){let
n=e.previousElementSibling;if(!n){let
s=e.parentElement.previousElementSibling;s&&(n=s.lastElementChild)}return
n?R.hasClass(n,"p-editable-column")?n:this.findPreviousEditableColumn(n):null}findNextEditableColumn(e){let
n=e.nextElementSibling;i
f(!n){let s=e.parentElement.nextElementSibling;s&&(n=s.firstElementChild)}return
n?R.hasClass(n,"p-editable-column")?n:this.findNextEditableColumn(n):null}findNextEditableColumnByIndex(e,n){let
s=e.parentElement.nextElementSibling;if(s){let r=s.children[n];return
r&&R.hasClass(r,"p-editable-column")?r:null}return
null}findPrevEditableColumnByIndex(e,n){let
s=e.parentElement.previousElementSibling;if(s){let r=s.children[n];return
r&&R.hasClass(r,"p-editable-column")?r:null}return
null}isEnabled(){return!0!==this.pEditableColumnDisabled}ngOnDestroy(){this.dt.overlaySubscription&&this.dt.overlaySubscription.unsubscribe()}}return
t.\u0275fac=function(e){return
new(e||t)(D(Dn),D(De),D(nt))},t.\u0275dir=le({type:t,selectors:[["","pEditableColumn",""]],hostAttrs:[1,"p-element"],hostBindings:function(e,n){1&e&&C("click",function(r){return
n.onClick(r)})("keydown.enter",function(r){return
n.onEnterKeyDown(r)})("keydown.escape",function(r){return
n.onEscapeKeyDown(r)})("keydown.tab",function(
r){return n.onShiftKeyDown(r)})("keydown.shift.tab",function(r){return
n.onShiftKeyDown(r)})("keydown.meta.tab",function(r){return
n.onShiftKeyDown(r)})("keydown.arrowdown",function(r){return
n.onArrowDown(r)})("keydown.arrowup",function(r){return
n.onArrowUp(r)})("keydown.arrowleft",function(r){return
n.onArrowLeft(r)})("keydown.arrowright",function(r){return
n.onArrowRight(r)})},inputs:{data:["pEditableColumn","data"],field:["pEditableColumnField","field"],rowIndex:["pEditableColumnRowIndex","rowIndex"],pEditableColumnDisabled:"pEditableColumnDisabled",pFocusCellSelector:"pFocusCellSelector"}}),t})(),xU=(()=>{class
t{constructor(e){this.el=e}isEnabled(){return!0!==this.pEditableRowDisabled}}return
t.\u0275fac=function(e){return
new(e||t)(D(De))},t.\u0275dir=le({type:t,selectors:[["","pEditableRow",""]],hostAttrs:[1,"p-element"],inputs:{data:["pEditableRow","data"],pEditableRowDisabled:"pEditableRowDisabled"}}),t})(),DU=(()=>{class
t{constructor(e,n,s){this.dt=e,this.editableColumn
=n,this.editableRow=s}ngAfterContentInit(){this.templates.forEach(e=>{switch(e.getType()){case"input":this.inputTemplate=e.template;break;case"output":this.outputTemplate=e.template}})}get
editing(){return
this.dt.editingCell&&this.editableColumn&&this.dt.editingCell===this.editableColumn.el.nativeElement||this.editableRow&&"row"===this.dt.editMode&&this.dt.isRowEditing(this.editableRow.data)}}return
t.\u0275fac=function(e){return
new(e||t)(D(Dn),D($2,8),D(xU,8))},t.\u0275cmp=z({type:t,selectors:[["p-cellEditor"]],contentQueries:function(e,n,s){if(1&e&&st(s,ne,4),2&e){let
r;V(r=B())&&(n.templates=r)}},hostAttrs:[1,"p-element"],decls:2,vars:2,consts:[[4,"ngIf"],[4,"ngTemplateOutlet"]],template:function(e,n){1&e&&(_(0,zG,2,1,"ng-container",0),_(1,$G,2,1,"ng-container",0)),2&e&&(p("ngIf",n.editing),a(1),p("ngIf",!n.editing))},directives:[Q,Rt],encapsulation:2}),t})(),MU=(()=>{class
t{constructor(e){this.dt=e,this.useGrouping=!0}ngOnInit(){this.filterCallback=e=>{this.filterConstraint.v
alue=e,this.dt._filter()}}onModelChange(e){this.filterConstraint.value=e,("boolean"===this.type||""===e)&&this.dt._filter()}onTextInputEnterKeyDown(e){this.dt._filter(),e.preventDefault()}onNumericInputKeyDown(e){"Enter"===e.key&&(this.dt._filter(),e.preventDefault())}}return
t.\u0275fac=function(e){return
new(e||t)(D(Dn))},t.\u0275cmp=z({type:t,selectors:[["p-columnFilterFormElement"]],hostAttrs:[1,"p-element"],inputs:{field:"field",type:"type",filterConstraint:"filterConstraint",filterTemplate:"filterTemplate",placeholder:"placeholder",minFractionDigits:"minFractionDigits",maxFractionDigits:"maxFractionDigits",prefix:"prefix",suffix:"suffix",locale:"locale",localeMatcher:"localeMatcher",currency:"currency",currencyDisplay:"currencyDisplay",useGrouping:"useGrouping"},decls:3,vars:2,consts:[[4,"ngIf","ngIfElse"],["builtInElement",""],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[3,"ngSwitch"],["type","text","pInputText","",3,"value","input","keydown.enter",4,"ngSwitchCase"],[3,"
ngModel","showButtons","minFractionDigits","maxFractionDigits","prefix","suffix","placeholder","mode","locale","localeMatcher","currency","currencyDisplay","useGrouping","ngModelChange","onKeyDown",4,"ngSwitchCase"],[3,"ngModel","ngModelChange",4,"ngSwitchCase"],[3,"placeholder","ngModel","ngModelChange",4,"ngSwitchCase"],["type","text","pInputText","",3,"value","input","keydown.enter"],[3,"ngModel","showButtons","minFractionDigits","maxFractionDigits","prefix","suffix","placeholder","mode","locale","localeMatcher","currency","currencyDisplay","useGrouping","ngModelChange","onKeyDown"],[3,"ngModel","ngModelChange"],[3,"placeholder","ngModel","ngModelChange"]],template:function(e,n){if(1&e&&(_(0,QG,2,5,"ng-container",0),_(1,eU,5,5,"ng-template",null,1,we)),2&e){const
s=F(2);p("ngIf",n.filterTemplate)("ngIfElse",s)}},directives:[pt,G2,xr,Q,Rt,gr,Ja,DT,Te,_e],encapsulation:2}),t})(),vg=(()=>{class
t{constructor(e,n,s,r,o){this.el=e,this.dt=n,this.renderer=s,this.config=r,this.overlaySe
rvice=o,this.type="text",this.display="row",this.showMenu=!0,this.operator=ml.AND,this.showOperator=!0,this.showClearButton=!0,this.showApplyButton=!0,this.showMatchModes=!0,this.showAddButton=!0,this.hideOnClear=!1,this.maxConstraints=2,this.useGrouping=!0}ngOnInit(){this.dt.filters[this.field]||this.initFieldFilterConstraint(),this.translationSubscription=this.config.translationObserver.subscribe(()=>{this.generateMatchModeOptions(),this.generateOperatorOptions()}),this.resetSubscription=this.dt.tableService.resetSource$.subscribe(()=>{this.initFieldFilterConstraint()}),this.generateMatchModeOptions(),this.generateOperatorOptions()}generateMatchModeOptions(){var
e;this.matchModes=this.matchModeOptions||(null===(e=this.config.filterMatchModeOptions[this.type])||void
0===e?void
0:e.map(n=>({label:this.config.getTranslation(n),value:n})))}generateOperatorOptions(){this.operatorOptions=[{label:this.config.getTranslation(Ft.MATCH_ALL),value:ml.AND},{label:this.config.getTranslation(Ft.
MATCH_ANY),value:ml.OR}]}ngAfterContentInit(){this.templates.forEach(e=>{switch(e.getType()){case"header":this.headerTemplate=e.template;break;case"filter":default:this.filterTemplate=e.template;break;case"footer":this.footerTemplate=e.template}})}initFieldFilterConstraint(){let
e=this.getDefaultMatchMode();this.dt.filters[this.field]="row"==this.display?{value:null,matchMode:e}:[{value:null,matchMode:e,operator:this.operator}]}onMenuMatchModeChange(e,n){n.matchMode=e,this.showApplyButton||this.dt._filter()}onRowMatchModeChange(e){this.dt.filters[this.field].matchMode=e,this.dt._filter(),this.hide()}onRowMatchModeKeyDown(e){let
n=e.target;switch(e.key){case"ArrowDown":var
s=this.findNextItem(n);s&&(n.removeAttribute("tabindex"),s.tabIndex="0",s.focus()),e.preventDefault();break;case"ArrowUp":var
r=this.findPrevItem(n);r&&(n.removeAttribute("tabindex"),r.tabIndex="0",r.focus()),e.preventDefault()}}onRowClearItemClick(){this.clearFilter(),this.hide()}isRowMatchModeSelected(e){return
t
his.dt.filters[this.field].matchMode===e}addConstraint(){this.dt.filters[this.field].push({value:null,matchMode:this.getDefaultMatchMode(),operator:this.getDefaultOperator()}),this.dt._filter()}removeConstraint(e){this.dt.filters[this.field]=this.dt.filters[this.field].filter(n=>n!==e),this.dt._filter()}onOperatorChange(e){this.dt.filters[this.field].forEach(n=>{n.operator=e,this.operator=e}),this.showApplyButton||this.dt._filter()}toggleMenu(){this.overlayVisible=!this.overlayVisible}onToggleButtonKeyDown(e){switch(e.key){case"Escape":case"Tab":this.overlayVisible=!1;break;case"ArrowDown":if(this.overlayVisible){let
n=R.getFocusableElements(this.overlay);n&&n[0].focus(),e.preventDefault()}else
e.altKey&&(this.overlayVisible=!0,e.preventDefault())}}onEscape(){this.overlayVisible=!1,this.icon.nativeElement.focus()}findNextItem(e){let
n=e.nextElementSibling;return
n?R.hasClass(n,"p-column-filter-separator")?this.findNextItem(n):n:e.parentElement.firstElementChild}findPrevItem(e){let
n
=e.previousElementSibling;return
n?R.hasClass(n,"p-column-filter-separator")?this.findPrevItem(n):n:e.parentElement.lastElementChild}onContentClick(){this.selfClick=!0}onOverlayAnimationStart(e){switch(e.toState){case"visible":this.overlay=e.element,document.body.appendChild(this.overlay),dt.set("overlay",this.overlay,this.config.zIndex.overlay),R.absolutePosition(this.overlay,this.icon.nativeElement),this.bindDocumentClickListener(),this.bindDocumentResizeListener(),this.bindScrollListener(),this.overlayEventListener=n=>{this.overlay&&this.overlay.contains(n.target)&&(this.selfClick=!0)},this.overlaySubscription=this.overlayService.clickObservable.subscribe(this.overlayEventListener);break;case"void":this.onOverlayHide(),this.overlaySubscription&&this.overlaySubscription.unsubscribe()}}onOverlayAnimationEnd(e){"void"===e.toState&&dt.clear(e.element)}getDefaultMatchMode(){return
this.matchMode?this.matchMode:"text"===this.type?_t.STARTS_WITH:"numeric"===this.type?_t.EQUALS:"date"===
this.type?_t.DATE_IS:_t.CONTAINS}getDefaultOperator(){return
this.dt.filters?this.dt.filters[this.field][0].operator:this.operator}hasRowFilter(){return
this.dt.filters[this.field]&&!this.dt.isFilterBlank(this.dt.filters[this.field].value)}get
fieldConstraints(){return this.dt.filters?this.dt.filters[this.field]:null}get
showRemoveIcon(){return!!this.fieldConstraints&&this.fieldConstraints.length>1}get
showMenuButton(){return
this.showMenu&&("row"!==this.display||"boolean"!==this.type)}get
isShowOperator(){return this.showOperator&&"boolean"!==this.type}get
isShowAddConstraint(){return
this.showAddButton&&"boolean"!==this.type&&this.fieldConstraints&&this.fieldConstraints.length<this.maxConstraints}get
applyButtonLabel(){return this.config.getTranslation(Ft.APPLY)}get
clearButtonLabel(){return this.config.getTranslation(Ft.CLEAR)}get
addRuleButtonLabel(){return this.config.getTranslation(Ft.ADD_RULE)}get
removeRuleButtonLabel(){return this.config.getTranslation(Ft.REMOVE_RULE)}get n
oFilterLabel(){return this.config.getTranslation(Ft.NO_FILTER)}hasFilter(){let
e=this.dt.filters[this.field];return!!e&&(Array.isArray(e)?!this.dt.isFilterBlank(e[0].value):!this.dt.isFilterBlank(e.value))}isOutsideClicked(e){return!(this.overlay.isSameNode(e.target)||this.overlay.contains(e.target)||this.icon.nativeElement.isSameNode(e.target)||this.icon.nativeElement.contains(e.target)||R.hasClass(e.target,"p-column-filter-add-button")||R.hasClass(e.target.parentElement,"p-column-filter-add-button")||R.hasClass(e.target,"p-column-filter-remove-button")||R.hasClass(e.target.parentElement,"p-column-filter-remove-button"))}bindDocumentClickListener(){this.documentClickListener||(this.documentClickListener=this.renderer.listen(this.el?this.el.nativeElement.ownerDocument:"document","mousedown",n=>{this.overlayVisible&&!this.selfClick&&this.isOutsideClicked(n)&&this.hide(),this.selfClick=!1}))}unbindDocumentClickListener(){this.documentClickListener&&(this.documentClickListener(),this.d
ocumentClickListener=null,this.selfClick=!1)}bindDocumentResizeListener(){this.documentResizeListener=()=>this.hide(),window.addEventListener("resize",this.documentResizeListener)}unbindDocumentResizeListener(){this.documentResizeListener&&(window.removeEventListener("resize",this.documentResizeListener),this.documentResizeListener=null)}bindScrollListener(){this.scrollHandler||(this.scrollHandler=new
Qs(this.icon.nativeElement,()=>{this.overlayVisible&&this.hide()})),this.scrollHandler.bindScrollListener()}unbindScrollListener(){this.scrollHandler&&this.scrollHandler.unbindScrollListener()}hide(){this.overlayVisible=!1}onOverlayHide(){this.unbindDocumentClickListener(),this.unbindDocumentResizeListener(),this.unbindScrollListener(),this.overlay=null}clearFilter(){this.initFieldFilterConstraint(),this.dt._filter(),this.hideOnClear&&this.hide()}applyFilter(){this.dt._filter(),this.hide()}ngOnDestroy(){this.overlay&&(this.el.nativeElement.appendChild(this.overlay),dt.clear(this.overla
y),this.onOverlayHide()),this.translationSubscription&&this.translationSubscription.unsubscribe(),this.resetSubscription&&this.resetSubscription.unsubscribe(),this.overlaySubscription&&this.overlaySubscription.unsubscribe()}}return
t.\u0275fac=function(e){return
new(e||t)(D(De),D(Dn),D(gn),D(zn),D(Ks))},t.\u0275cmp=z({type:t,selectors:[["p-columnFilter"]],contentQueries:function(e,n,s){if(1&e&&st(s,ne,4),2&e){let
r;V(r=B())&&(n.templates=r)}},viewQuery:function(e,n){if(1&e&&W(tU,5),2&e){let
s;V(s=B())&&(n.icon=s.first)}},hostAttrs:[1,"p-element"],inputs:{field:"field",type:"type",display:"display",showMenu:"showMenu",matchMode:"matchMode",operator:"operator",showOperator:"showOperator",showClearButton:"showClearButton",showApplyButton:"showApplyButton",showMatchModes:"showMatchModes",showAddButton:"showAddButton",hideOnClear:"hideOnClear",placeholder:"placeholder",matchModeOptions:"matchModeOptions",maxConstraints:"maxConstraints",minFractionDigits:"minFractionDigits",maxFractionDig
its:"maxFractionDigits",prefix:"prefix",suffix:"suffix",locale:"locale",localeMatcher:"localeMatcher",currency:"currency",currencyDisplay:"currencyDisplay",useGrouping:"useGrouping"},decls:5,vars:8,consts:[[1,"p-column-filter",3,"ngClass"],["class","p-fluid",3,"type","field","filterConstraint","filterTemplate","placeholder","minFractionDigits","maxFractionDigits","prefix","suffix","locale","localeMatcher","currency","currencyDisplay","useGrouping",4,"ngIf"],["type","button","class","p-column-filter-menu-button
p-link","aria-haspopup","true",3,"ngClass","click","keydown",4,"ngIf"],["type","button","class","p-column-filter-clear-button
p-link",3,"ngClass","click",4,"ngIf"],[3,"ngClass","click","keydown.escape",4,"ngIf"],[1,"p-fluid",3,"type","field","filterConstraint","filterTemplate","placeholder","minFractionDigits","maxFractionDigits","prefix","suffix","locale","localeMatcher","currency","currencyDisplay","useGrouping"],["type","button","aria-haspopup","true",1,"p-column-filter-men
u-button","p-link",3,"ngClass","click","keydown"],["icon",""],[1,"pi","pi-filter-icon","pi-filter"],["type","button",1,"p-column-filter-clear-button","p-link",3,"ngClass","click"],[1,"pi","pi-filter-slash"],[3,"ngClass","click","keydown.escape"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],["class","p-column-filter-row-items",4,"ngIf","ngIfElse"],["menu",""],[1,"p-column-filter-row-items"],["class","p-column-filter-row-item",3,"ngClass","click","keydown","keydown.enter",4,"ngFor","ngForOf"],[1,"p-column-filter-separator"],[1,"p-column-filter-row-item",3,"click","keydown","keydown.enter"],[1,"p-column-filter-row-item",3,"ngClass","click","keydown","keydown.enter"],["class","p-column-filter-operator",4,"ngIf"],[1,"p-column-filter-constraints"],["class","p-column-filter-constraint",4,"ngFor","ngForOf"],["class","p-column-filter-add-rule",4,"ngIf"],[1,"p-column-filter-buttonbar"],["type","button","pButton","","class","p-button-outlined
p-button-sm","pRipple","",3,"label","click",4,"
ngIf"],["type","button","pButton","","class","p-button-sm","pRipple","",3,"label","click",4,"ngIf"],[1,"p-column-filter-operator"],["styleClass","p-column-filter-operator-dropdown",3,"options","ngModel","ngModelChange"],[1,"p-column-filter-constraint"],["styleClass","p-column-filter-matchmode-dropdown",3,"options","ngModel","ngModelChange",4,"ngIf"],[3,"type","field","filterConstraint","filterTemplate","placeholder","minFractionDigits","maxFractionDigits","prefix","suffix","locale","localeMatcher","currency","currencyDisplay","useGrouping"],["type","button","pButton","","icon","pi
pi-trash","class","p-column-filter-remove-button p-button-text
p-button-danger
p-button-sm","pRipple","",3,"label","click",4,"ngIf"],["styleClass","p-column-filter-matchmode-dropdown",3,"options","ngModel","ngModelChange"],["type","button","pButton","","icon","pi
pi-trash","pRipple","",1,"p-column-filter-remove-button","p-button-text","p-button-danger","p-button-sm",3,"label","click"],[1,"p-column-filter-a
dd-rule"],["type","button","pButton","","icon","pi
pi-plus","pRipple","",1,"p-column-filter-add-button","p-button-text","p-button-sm",3,"label","click"],["type","button","pButton","","pRipple","",1,"p-button-outlined","p-button-sm",3,"label","click"],["type","button","pButton","","pRipple","",1,"p-button-sm",3,"label","click"]],template:function(e,n){1&e&&(l(0,"div",0),_(1,nU,1,14,"p-columnFilterFormElement",1),_(2,sU,3,5,"button",2),_(3,oU,3,3,"button",3),_(4,yU,6,14,"div",4),c()),2&e&&(p("ngClass",Ge(5,wU,"row"===n.display,"menu"===n.display)),a(1),p("ngIf","row"===n.display),a(1),p("ngIf",n.showMenuButton),a(1),p("ngIf",n.showClearButton&&"row"===n.display),a(1),p("ngIf",n.showMenu&&n.overlayVisible))},directives:[MU,Ot,Le,Q,Rt,at,Te,_e,On],encapsulation:2,data:{animation:[wi("overlayAnimation",[Lt(":enter",[it({opacity:0,transform:"scaleY(0.8)"}),kt(".12s
cubic-bezier(0, 0, 0.2, 1)")]),Lt(":leave",[kt(".1s
linear",it({opacity:0}))])])]}}),t})(),kU=(()=>{class t{}return t.\u0275f
ac=function(e){return
new(e||t)},t.\u0275mod=he({type:t}),t.\u0275inj=ue({imports:[[Fe,RT,MT,Zu,Fo,Mu,gl,Tq,cT,Xu,Iq],Nt,Fo]}),t})();const
W2=["container"],IU=function(t,i,e,n){return{"pi-info-circle":t,"pi-exclamation-triangle":i,"pi-times-circle":e,"pi-check":n}};function
EU(t,i){if(1&t&&(de(0),k(1,"span",6),l(2,"div",7)(3,"div",8),g(4),c(),l(5,"div",9),g(6),c()(),pe()),2&t){const
e=d();a(1),me("p-toast-message-icon pi"+(e.message.icon?"
"+e.message.icon:"")),p("ngClass",qn(5,IU,"info"==e.message.severity,"warn"==e.message.severity,"error"==e.message.severity,"success"==e.message.severity)),a(3),S(e.message.summary),a(2),S(e.message.detail)}}function
RU(t,i){1&t&&Y(0)}function LU(t,i){if(1&t){const
e=I();l(0,"button",10),C("click",function(s){return
v(e),d().onCloseIconClick(s)})("keydown.enter",function(s){return
v(e),d().onCloseIconClick(s)}),k(1,"span",11),c()}}const
OU=function(t){return[t,"p-toast-message"]},AU=function(t,i,e,n){return{showTransformParams:t,hideTransformParam
s:i,showTransitionParams:e,hideTransitionParams:n}},PU=function(t){return{value:"visible",params:t}},FU=function(t){return{$implicit:t}};function
NU(t,i){if(1&t){const
e=I();l(0,"p-toastItem",3),C("onClose",function(s){return
v(e),d().onMessageClose(s)})("(a)toastAnimation.start",function(s){return
v(e),d().onAnimationStart(s)})("(a)toastAnimation.done",function(s){return
v(e),d().onAnimationEnd(s)}),c()}if(2&t){const
e=i.$implicit,n=i.index,s=d();p("message",e)("index",n)("template",s.template)("@toastAnimation",void
0)("showTransformOptions",s.showTransformOptions)("hideTransformOptions",s.hideTransformOptions)("showTransitionOptions",s.showTransitionOptions)("hideTransitionOptions",s.hideTransitionOptions)}}let
VU=(()=>{class t{constructor(e){this.zone=e,this.onClose=new
H}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||3
e3)})}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)(D(nt))},t.\u0275cmp=z({type:t,selectors:[["p-toastItem"]],viewQuery:function(e,n){if(1&e&&W(W2,5),2&e){let
s;V(s=B())&&(n.containerViewChild=s.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,n){1&e&&(l(0,"div",0,1),C("mouseenter",function(){return
n.onMouseEnter()})("mouseleave",function(){return
n.onMouseLeave()}),l(2,"div",2),_(3,EU,7,10,"ng-container",3),_(4,RU,1,0,"ng-container",4),_(5,LU,2,0,"button",5),c()()),2&e&&(me(n.message.styleClass),p("ngClass",U(10,OU,"p-toast-message-"+n.message.severity))("(a)messageState",U(17,PU,qn(12,AU,n.showTransformOptions,n.hideTransformOptions,n.showTransitionOptions,n.hideTransitionOptions))),ie("id",n.message.id),a(2),p("ngClass",n.message.contentStyleClass),a(1),p("ngIf",!n.template),a(1),p("ngTemplateOutlet",n.template)("ngTemplateOutletContext",U(
19,FU,n.message)),a(1),p("ngIf",!1!==n.message.closable))},directives:[Le,Q,Rt,bt],encapsulation:2,data:{animation:[wi("messageState",[ws("visible",it({transform:"translateY(0)",opacity:1})),Lt("void
=>
*",[it({transform:"{{showTransformParams}}",opacity:0}),kt("{{showTransitionParams}}")]),Lt("*
=>
void",[kt("{{hideTransitionParams}}",it({height:0,opacity:0,transform:"{{hideTransformParams}}"}))])])]},changeDetection:0}),t})(),Td=(()=>{class
t{constructor(e,n,s){this.messageService=e,this.cd=n,this.config=s,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
H,this.id=pl()}ngOnInit(){this.messageSubscription=this.messageService.messageObserver.subscribe(e=>{if(e)if(e
instanceof Array){const n=e.filter(s=>this.canAdd(s));this
.add(n)}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
n=this.key===e.key;return
n&&this.preventOpenDuplicates&&(n=!this.containsMessage(this.messages,e)),n&&this.preventDuplicates&&(n=!this.containsMessage(this.messagesArchieve,e)),n}containsMessage(e,n){return!!e&&null!=e.find(s=>s.summary===n.summary&&s.detail==n.detail&&s.severity===n.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.fromSt
ate&&(this.containerViewChild.nativeElement.setAttribute(this.id,""),this.autoZIndex&&dt.set("modal",this.containerViewChild.nativeElement,this.baseZIndex||this.config.zIndex.modal))}onAnimationEnd(e){"void"===e.toState&&this.autoZIndex&&Z.isEmpty(this.messages)&&dt.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 n in this.breakpoints){let s="";for(let r in
this.breakpoints[n])s+=r+":"+this.breakpoints[n][r]+"
!important;";e+=`\n @media screen and (max-width: ${n}) {\n
.p-toast[${this.id}] {\n ${s}\n
}\n }\n
`}this.styleElement.innerHTML=e}}destroyStyle(){this.styleElement&&(document.head.removeChild(this.styleElement),this.styleElement=null)}ngOnDestroy(){this.messageSubscription&&t
his.messageSubscription.unsubscribe(),this.containerViewChild&&this.autoZIndex&&dt.clear(this.containerViewChild.nativeElement),this.clearSubscription&&this.clearSubscription.unsubscribe(),this.destroyStyle()}}return
t.\u0275fac=function(e){return
new(e||t)(D(Gi),D(rt),D(zn))},t.\u0275cmp=z({type:t,selectors:[["p-toast"]],contentQueries:function(e,n,s){if(1&e&&st(s,ne,4),2&e){let
r;V(r=B())&&(n.templates=r)}},viewQuery:function(e,n){if(1&e&&W(W2,5),2&e){let
s;V(s=B())&&(n.containerViewChild=s.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:function(e,n){1&e&&(l(0,"div",0,1),_(2,NU,1,8,"p-toastItem",2),c()),2&e&&(me(n.styleClass),p("ngClass","p-toast
p-component
p-toast-"+n.position)("ngStyle",n.style),a(2),p("ngForOf",n.messages))},directives:[VU,Le,lt,at],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{bot
tom: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:[wi("toastAnimation",[Lt(":enter,
:leave",[$A("@*",jA())])])]},changeDetection:0}),t})(),BU=(()=>{class
t{}return t.\u0275fac=function(e){return
new(e||t)},t.\u0275mod=he({type:t}),t.\u0275inj=ue({imports:[[Fe,pn],Nt]}),t})(),GU=(()=>{class
t{}return t.\u0275fac=function(e){return
new(e||t)},t.\u0275mod=he({type:t}),t.\u0275inj=ue({imports:[[Fe]]}),t})();const
UU=["rb"],zU=function(t,i,e){return{"p-radiobutton-label":!0,"p-radiobutton-label-active":t,"p-disabled":i,"p-radiobutton-label-focus":e}};function
jU(t,i){if(1&t){const
e=I();l(0,"label",4),C("click",function(s){return
v(e),d().select(s)}),g(1),c()}if(2&t){const
e=d(),n=F(3);me(e.labelStyleClass),p("ngClass",Qt(5,zU,n.ch
ecked,e.disabled,e.focused)),ie("for",e.inputId),a(1),S(e.label)}}const
$U=function(t,i,e){return{"p-radiobutton
p-component":!0,"p-radiobutton-checked":t,"p-radiobutton-disabled":i,"p-radiobutton-focused":e}},WU=function(t,i,e){return{"p-radiobutton-box":!0,"p-highlight":t,"p-disabled":i,"p-focus":e}},KU={provide:dn,useExisting:je(()=>Sd),multi:!0};let
QU=(()=>{class
t{constructor(){this.accessors=[]}add(e,n){this.accessors.push([e,n])}remove(e){this.accessors=this.accessors.filter(n=>n[1]!==e)}select(e){this.accessors.forEach(n=>{this.isSameGroup(n,e)&&n[1]!==e&&n[1].writeValue(e.value)})}isSameGroup(e,n){return!!e[0].control&&e[0].control.root===n.control.control.root&&e[1].name===n.name}}return
t.\u0275fac=function(e){return
new(e||t)},t.\u0275prov=X({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),Sd=(()=>{class
t{constructor(e,n,s){this.cd=e,this.injector=n,this.registry=s,this.onClick=new
H,this.onFocus=new H,this.onBlur=new H,this.onModelChange=()=>{},this.onModelTouch
ed=()=>{}}ngOnInit(){this.control=this.injector.get(ss),this.checkName(),this.registry.add(this.control,this)}handleClick(e,n,s){e.preventDefault(),!this.disabled&&(this.select(e),s&&n.focus())}select(e){this.disabled||(this.inputViewChild.nativeElement.checked=!0,this.checked=!0,this.onModelChange(this.value),this.registry.select(this),this.onClick.emit(e))}writeValue(e){this.checked=e==this.value,this.inputViewChild&&this.inputViewChild.nativeElement&&(this.inputViewChild.nativeElement.checked=this.checked),this.cd.markForCheck()}registerOnChange(e){this.onModelChange=e}registerOnTouched(e){this.onModelTouched=e}setDisabledState(e){this.disabled=e,this.cd.markForCheck()}onInputFocus(e){this.focused=!0,this.onFocus.emit(e)}onInputBlur(e){this.focused=!1,this.onModelTouched(),this.onBlur.emit(e)}onChange(e){this.select(e)}focus(){this.inputViewChild.nativeElement.focus()}ngOnDestroy(){this.registry.remove(this)}checkName(){this.name&&this.formControlName&&this.name!==this.formContro
lName&&this.throwNameError(),!this.name&&this.formControlName&&(this.name=this.formControlName)}throwNameError(){throw
new Error('\n If you define both a name and a formControlName attribute on
your radio button, their values\n must match. Ex: <p-radioButton
formControlName="food" name="food"></p-radioButton>\n
')}}return t.\u0275fac=function(e){return
new(e||t)(D(rt),D(En),D(QU))},t.\u0275cmp=z({type:t,selectors:[["p-radioButton"]],viewQuery:function(e,n){if(1&e&&W(UU,5),2&e){let
s;V(s=B())&&(n.inputViewChild=s.first)}},hostAttrs:[1,"p-element"],inputs:{value:"value",formControlName:"formControlName",name:"name",disabled:"disabled",label:"label",tabindex:"tabindex",inputId:"inputId",ariaLabelledBy:"ariaLabelledBy",ariaLabel:"ariaLabel",style:"style",styleClass:"styleClass",labelStyleClass:"labelStyleClass"},outputs:{onClick:"onClick",onFocus:"onFocus",onBlur:"onBlur"},features:[Pe([KU])],decls:7,vars:23,consts:[[3,"ngStyle","ngClass"],[1,"p-hidden-accessibl
e"],["type","radio",3,"checked","disabled","change","focus","blur"],["rb",""],[3,"ngClass","click"],[1,"p-radiobutton-icon"],[3,"class","ngClass","click",4,"ngIf"]],template:function(e,n){if(1&e){const
s=I();l(0,"div",0)(1,"div",1)(2,"input",2,3),C("change",function(o){return
n.onChange(o)})("focus",function(o){return
n.onInputFocus(o)})("blur",function(o){return
n.onInputBlur(o)}),c()(),l(4,"div",4),C("click",function(o){v(s);const
u=F(3);return
n.handleClick(o,u,!0)}),k(5,"span",5),c()(),_(6,jU,2,9,"label",6)}2&e&&(me(n.styleClass),p("ngStyle",n.style)("ngClass",Qt(15,$U,n.checked,n.disabled,n.focused)),a(2),p("checked",n.checked)("disabled",n.disabled),ie("id",n.inputId)("name",n.name)("value",n.value)("tabindex",n.tabindex)("aria-checked",n.checked)("aria-label",n.ariaLabel)("aria-labelledby",n.ariaLabelledBy),a(2),p("ngClass",Qt(19,WU,n.checked,n.disabled,n.focused)),a(2),p("ngIf",n.label))},directives:[lt,Le,Q],encapsulation:2,changeDetection:0}),t})(),JU=(()=>{class
t{}return
t.\u0275fac=function(e){return
new(e||t)},t.\u0275mod=he({type:t}),t.\u0275inj=ue({imports:[[Fe]]}),t})();function
YU(t,i){if(1&t&&(l(0,"div",5),g(1),c()),2&t){const
e=d(2);_i("display",null!=e.value&&0!==e.value?"flex":"none"),a(1),We("",e.value,"",e.unit,"")}}function
ZU(t,i){if(1&t&&(l(0,"div",3),_(1,YU,2,4,"div",4),c()),2&t){const
e=d();_i("width",e.value+"%"),a(1),p("ngIf",e.showValue)}}function
XU(t,i){1&t&&(l(0,"div",6),k(1,"div",7),c())}const
ez=function(t,i){return{"p-progressbar
p-component":!0,"p-progressbar-determinate":t,"p-progressbar-indeterminate":i}};let
tz=(()=>{class
t{constructor(){this.showValue=!0,this.unit="%",this.mode="determinate"}}return
t.\u0275fac=function(e){return
new(e||t)},t.\u0275cmp=z({type:t,selectors:[["p-progressBar"]],hostAttrs:[1,"p-element"],inputs:{value:"value",showValue:"showValue",style:"style",styleClass:"styleClass",unit:"unit",mode:"mode"},decls:3,vars:10,consts:[["role","progressbar","aria-valuemin","0","aria-valuemax","100",3,"ngSty
le","ngClass"],["class","p-progressbar-value
p-progressbar-value-animate","style","display:flex",3,"width",4,"ngIf"],["class","p-progressbar-indeterminate-container",4,"ngIf"],[1,"p-progressbar-value","p-progressbar-value-animate",2,"display","flex"],["class","p-progressbar-label",3,"display",4,"ngIf"],[1,"p-progressbar-label"],[1,"p-progressbar-indeterminate-container"],[1,"p-progressbar-value","p-progressbar-value-animate"]],template:function(e,n){1&e&&(l(0,"div",0),_(1,ZU,2,3,"div",1),_(2,XU,2,0,"div",2),c()),2&e&&(me(n.styleClass),p("ngStyle",n.style)("ngClass",Ge(7,ez,"determinate"===n.mode,"indeterminate"===n.mode)),ie("aria-valuenow",n.value),a(1),p("ngIf","determinate"===n.mode),a(1),p("ngIf","indeterminate"===n.mode))},directives:[lt,Le,Q],styles:['.p-progressbar{position:relative;overflow:hidden}.p-progressbar-determinate
.p-progressbar-value{height:100%;width:0%;position:absolute;display:none;border:0
none;display:flex;align-items:center;justify-content:center;overflow:hi
dden}.p-progressbar-determinate
.p-progressbar-label{display:inline-flex}.p-progressbar-determinate
.p-progressbar-value-animate{transition:width 1s ease-in-out}.p-progressbar-indeterminate
.p-progressbar-value:before{content:"";position:absolute;background-color:inherit;top:0;left:0;bottom:0;will-change:left,right;animation:p-progressbar-indeterminate-anim
2.1s cubic-bezier(.65,.815,.735,.395) infinite}.p-progressbar-indeterminate
.p-progressbar-value:after{content:"";position:absolute;background-color:inherit;top:0;left:0;bottom:0;will-change:left,right;animation:p-progressbar-indeterminate-anim-short
2.1s cubic-bezier(.165,.84,.44,1) infinite;animation-delay:1.15s}@keyframes
p-progressbar-indeterminate-anim{0%{left:-35%;right:100%}60%{left:100%;right:-90%}to{left:100%;right:-90%}}@keyframes
p-progressbar-indeterminate-anim-short{0%{left:-200%;right:100%}60%{left:107%;right:-8%}to{left:107%;right:-8%}}\n'],encapsulation:2,changeDetection:0}),t})(),nz=(()=>{class
t{}return t.\u0275
fac=function(e){return
new(e||t)},t.\u0275mod=he({type:t}),t.\u0275inj=ue({imports:[[Fe]]}),t})();const
iz=["container"],sz=["content"],rz=["xBar"],oz=["yBar"];function
az(t,i){1&t&&Y(0)}const lz=["*"];let K2=(()=>{class
t{constructor(e,n,s){this.el=e,this.zone=n,this.cd=s,this.timeoutFrame=r=>setTimeout(r,0)}ngAfterViewInit(){this.zone.runOutsideAngular(()=>{this.moveBar(),this.moveBar=this.moveBar.bind(this),this.onXBarMouseDown=this.onXBarMouseDown.bind(this),this.onYBarMouseDown=this.onYBarMouseDown.bind(this),this.onDocumentMouseMove=this.onDocumentMouseMove.bind(this),this.onDocumentMouseUp=this.onDocumentMouseUp.bind(this),window.addEventListener("resize",this.moveBar),this.contentViewChild.nativeElement.addEventListener("scroll",this.moveBar),this.contentViewChild.nativeElement.addEventListener("mouseenter",this.moveBar),this.xBarViewChild.nativeElement.addEventListener("mousedown",this.onXBarMouseDown),this.yBarViewChild.nativeElement.addEventListener("mousedown",this.onYBa
rMouseDown),this.calculateContainerHeight(),this.initialized=!0})}ngAfterContentInit(){this.templates.forEach(e=>{e.getType(),this.contentTemplate=e.template})}calculateContainerHeight(){let
e=this.containerViewChild.nativeElement,n=this.contentViewChild.nativeElement,s=this.xBarViewChild.nativeElement,r=getComputedStyle(e),o=getComputedStyle(s),u=R.getHeight(e)-parseInt(o.height,10);"none"!=r["max-height"]&&0==u&&(e.style.height=n.offsetHeight+parseInt(o.height,10)>parseInt(r["max-height"],10)?r["max-height"]:n.offsetHeight+parseFloat(r.paddingTop)+parseFloat(r.paddingBottom)+parseFloat(r.borderTopWidth)+parseFloat(r.borderBottomWidth)+"px")}moveBar(){let
e=this.containerViewChild.nativeElement,n=this.contentViewChild.nativeElement,s=this.xBarViewChild.nativeElement,r=n.scrollWidth,o=n.clientWidth,u=-1*(e.clientHeight-s.clientHeight);this.scrollXRatio=o/r;let
h=this.yBarViewChild.nativeElement,b=n.scrollHeight,y=n.clientHeight,w=-1*(e.clientWidth-h.clientWidth);this.scrollYRatio=y/
b,this.requestAnimationFrame(()=>{if(this.scrollXRatio>=1)R.addClass(s,"p-scrollpanel-hidden");else{R.removeClass(s,"p-scrollpanel-hidden");const
M=Math.max(100*this.scrollXRatio,10);s.style.cssText="width:"+M+"%;
left:"+n.scrollLeft*(100-M)/(r-o)+"%;bottom:"+u+"px;"}if(this.scrollYRatio>=1)R.addClass(h,"p-scrollpanel-hidden");else{R.removeClass(h,"p-scrollpanel-hidden");const
M=Math.max(100*this.scrollYRatio,10);h.style.cssText="height:"+M+"%; top:
calc("+n.scrollTop*(100-M)/(b-y)+"% -
"+s.clientHeight+"px);right:"+w+"px;"}}),this.cd.markForCheck()}onYBarMouseDown(e){this.isYBarClicked=!0,this.lastPageY=e.pageY,R.addClass(this.yBarViewChild.nativeElement,"p-scrollpanel-grabbed"),R.addClass(document.body,"p-scrollpanel-grabbed"),document.addEventListener("mousemove",this.onDocumentMouseMove),document.addEventListener("mouseup",this.onDocumentMouseUp),e.preventDefault()}onXBarMouseDown(e){this.isXBarClicked=!0,this.lastPageX=e.pageX,R.addClass(this.xBarViewChild.nativeElement,"p-scro
llpanel-grabbed"),R.addClass(document.body,"p-scrollpanel-grabbed"),document.addEventListener("mousemove",this.onDocumentMouseMove),document.addEventListener("mouseup",this.onDocumentMouseUp),e.preventDefault()}onDocumentMouseMove(e){this.isXBarClicked?this.onMouseMoveForXBar(e):(this.isYBarClicked||this.onMouseMoveForXBar(e),this.onMouseMoveForYBar(e))}onMouseMoveForXBar(e){let
n=e.pageX-this.lastPageX;this.lastPageX=e.pageX,this.requestAnimationFrame(()=>{this.contentViewChild.nativeElement.scrollLeft+=n/this.scrollXRatio})}onMouseMoveForYBar(e){let
n=e.pageY-this.lastPageY;this.lastPageY=e.pageY,this.requestAnimationFrame(()=>{this.contentViewChild.nativeElement.scrollTop+=n/this.scrollYRatio})}scrollTop(e){let
n=this.contentViewChild.nativeElement.scrollHeight-this.contentViewChild.nativeElement.clientHeight;this.contentViewChild.nativeElement.scrollTop=e=e>n?n:e>0?e:0}onDocumentMouseUp(e){R.removeClass(this.yBarViewChild.nativeElement,"p-scrollpanel-grabbed"),R.removeClass(this
.xBarViewChild.nativeElement,"p-scrollpanel-grabbed"),R.removeClass(document.body,"p-scrollpanel-grabbed"),document.removeEventListener("mousemove",this.onDocumentMouseMove),document.removeEventListener("mouseup",this.onDocumentMouseUp),this.isXBarClicked=!1,this.isYBarClicked=!1}requestAnimationFrame(e){(window.requestAnimationFrame||this.timeoutFrame)(e)}ngOnDestroy(){this.initialized&&(window.removeEventListener("resize",this.moveBar),this.contentViewChild.nativeElement.removeEventListener("scroll",this.moveBar),this.contentViewChild.nativeElement.removeEventListener("mouseenter",this.moveBar),this.xBarViewChild.nativeElement.removeEventListener("mousedown",this.onXBarMouseDown),this.yBarViewChild.nativeElement.removeEventListener("mousedown",this.onYBarMouseDown))}refresh(){this.moveBar()}}return
t.\u0275fac=function(e){return
new(e||t)(D(De),D(nt),D(rt))},t.\u0275cmp=z({type:t,selectors:[["p-scrollPanel"]],contentQueries:function(e,n,s){if(1&e&&st(s,ne,4),2&e){let
r;V(r=B())&&(
n.templates=r)}},viewQuery:function(e,n){if(1&e&&(W(iz,5),W(sz,5),W(rz,5),W(oz,5)),2&e){let
s;V(s=B())&&(n.containerViewChild=s.first),V(s=B())&&(n.contentViewChild=s.first),V(s=B())&&(n.xBarViewChild=s.first),V(s=B())&&(n.yBarViewChild=s.first)}},hostAttrs:[1,"p-element"],inputs:{style:"style",styleClass:"styleClass"},ngContentSelectors:lz,decls:11,vars:5,consts:[[3,"ngClass","ngStyle"],["container",""],[1,"p-scrollpanel-wrapper"],[1,"p-scrollpanel-content"],["content",""],[4,"ngTemplateOutlet"],[1,"p-scrollpanel-bar","p-scrollpanel-bar-x"],["xBar",""],[1,"p-scrollpanel-bar","p-scrollpanel-bar-y"],["yBar",""]],template:function(e,n){1&e&&(Sn(),l(0,"div",0,1)(2,"div",2)(3,"div",3,4),St(5),_(6,az,1,0,"ng-container",5),c()(),k(7,"div",6,7)(9,"div",8,9),c()),2&e&&(me(n.styleClass),p("ngClass","p-scrollpanel
p-component")("ngStyle",n.style),a(6),p("ngTemplateOutlet",n.contentTemplate))},directives:[Le,lt,Rt],styles:[".p-scrollpanel-wrapper{overflow:hidden;width:100%;height:100%;position
:relative;z-index:1;float:left}.p-scrollpanel-content{height:calc(100% +
18px);width:calc(100% + 18px);padding:0 18px 18px
0;position:relative;overflow:auto;box-sizing:border-box}.p-scrollpanel-bar{position:relative;background:#c1c1c1;border-radius:3px;z-index:2;cursor:pointer;opacity:0;transition:opacity
.25s
linear}.p-scrollpanel-bar-y{width:9px;top:0}.p-scrollpanel-bar-x{height:9px;bottom:0}.p-scrollpanel-hidden{visibility:hidden}.p-scrollpanel:hover
.p-scrollpanel-bar,.p-scrollpanel:active
.p-scrollpanel-bar{opacity:1}.p-scrollpanel-grabbed{-webkit-user-select:none;user-select:none}\n"],encapsulation:2,changeDetection:0}),t})(),cz=(()=>{class
t{}return t.\u0275fac=function(e){return
new(e||t)},t.\u0275mod=he({type:t}),t.\u0275inj=ue({imports:[[Fe]]}),t})();const
uz=["content"],dz=["navbar"],pz=["inkbar"],hz=["prevBtn"],mz=["nextBtn"];function
fz(t,i){if(1&t){const
e=I();l(0,"button",11,12),C("click",function(){return
v(e),d().navBackward()}),k(2,"span",13),c()}}function gz(t,i){
if(1&t&&k(0,"span",23),2&t){const
e=d(3).$implicit;p("ngClass",e.icon)("ngStyle",e.iconStyle)}}function
_z(t,i){if(1&t&&(l(0,"span",24),g(1),c()),2&t){const
e=d(3).$implicit;a(1),S(e.label)}}function
bz(t,i){1&t&&k(0,"span",25),2&t&&p("innerHTML",d(3).$implicit.label,Bt)}function
vz(t,i){if(1&t&&(de(0),_(1,gz,1,2,"span",20),_(2,_z,2,1,"span",21),_(3,bz,1,1,"ng-template",null,22,we),pe()),2&t){const
e=F(4),n=d(2).$implicit;a(1),p("ngIf",n.icon),a(1),p("ngIf",!1!==n.escape)("ngIfElse",e)}}function
Cz(t,i){1&t&&Y(0)}const Q2=function(t,i){return{$implicit:t,index:i}};function
yz(t,i){if(1&t){const
e=I();l(0,"a",17),C("click",function(s){v(e);const
r=d().$implicit;return
d().itemClick(s,r)})("keydown.enter",function(s){v(e);const
r=d().$implicit;return
d().itemClick(s,r)}),_(1,vz,5,3,"ng-container",18),_(2,Cz,1,0,"ng-container",19),c()}if(2&t){const
e=d(),n=e.$implicit,s=e.index,r=d();p("target",n.target),ie("href",n.url,ln)("tabindex",n.disabled?null:"0")("title",n.title)("id",n.id),a(
1),p("ngIf",!r.itemTemplate),a(1),p("ngTemplateOutlet",r.itemTemplate)("ngTemplateOutletContext",Ge(8,Q2,n,s))}}function
wz(t,i){if(1&t&&k(0,"span",23),2&t){const
e=d(3).$implicit;p("ngClass",e.icon)("ngStyle",e.iconStyle)}}function
Tz(t,i){if(1&t&&(l(0,"span",24),g(1),c()),2&t){const
e=d(3).$implicit;a(1),S(e.label)}}function
Sz(t,i){1&t&&k(0,"span",25),2&t&&p("innerHTML",d(3).$implicit.label,Bt)}function
xz(t,i){if(1&t&&(de(0),_(1,wz,1,2,"span",20),_(2,Tz,2,1,"span",21),_(3,Sz,1,1,"ng-template",null,27,we),pe()),2&t){const
e=F(4),n=d(2).$implicit;a(1),p("ngIf",n.icon),a(1),p("ngIf",!1!==n.escape)("ngIfElse",e)}}function
Dz(t,i){1&t&&Y(0)}const Mz=function(){return{exact:!1}};function
kz(t,i){if(1&t){const
e=I();l(0,"a",26),C("click",function(s){v(e);const
r=d().$implicit;return
d().itemClick(s,r)})("keydown.enter",function(s){v(e);const
r=d().$implicit;return
d().itemClick(s,r)}),_(1,xz,5,3,"ng-container",18),_(2,Dz,1,0,"ng-container",19),c()}if(2&t){const
e=d(),n=e.$implicit,s=e.
index,r=d();p("routerLink",n.routerLink)("queryParams",n.queryParams)("routerLinkActive","p-menuitem-link-active")("routerLinkActiveOptions",n.routerLinkActiveOptions||A(17,Mz))("target",n.target)("fragment",n.fragment)("queryParamsHandling",n.queryParamsHandling)("preserveFragment",n.preserveFragment)("skipLocationChange",n.skipLocationChange)("replaceUrl",n.replaceUrl)("state",n.state),ie("tabindex",n.disabled?null:"0")("title",n.title)("id",n.id),a(1),p("ngIf",!r.itemTemplate),a(1),p("ngTemplateOutlet",r.itemTemplate)("ngTemplateOutletContext",Ge(18,Q2,n,s))}}const
Iz=function(t,i,e){return{"p-tabmenuitem":!0,"p-disabled":t,"p-highlight":i,"p-hidden":e}};function
Ez(t,i){if(1&t&&(l(0,"li",14),_(1,yz,3,11,"a",15),_(2,kz,3,21,"a",16),c()),2&t){const
e=i.$implicit,n=d();me(e.styleClass),p("ngStyle",e.style)("ngClass",Qt(9,Iz,e.disabled,n.isActive(e),!1===e.visible))("tooltipOptions",e.tooltipOptions),ie("aria-selected",n.isActive(e))("aria-expanded",n.isActive(e)),a(1),p("ngIf",!e.r
outerLink),a(1),p("ngIf",e.routerLink)}}function Rz(t,i){if(1&t){const
e=I();l(0,"button",28,29),C("click",function(){return
v(e),d().navForward()}),k(2,"span",30),c()}}const
Lz=function(t){return{"p-tabmenu
p-component":!0,"p-tabmenu-scrollable":t}};let J2=(()=>{class
t{constructor(e,n,s){this.router=e,this.route=n,this.cd=s,this.backwardIsDisabled=!0,this.forwardIsDisabled=!1}ngAfterContentInit(){this.templates.forEach(e=>{e.getType(),this.itemTemplate=e.template})}ngAfterViewInit(){this.updateInkBar()}ngAfterViewChecked(){this.tabChanged&&(this.updateInkBar(),this.tabChanged=!1)}isActive(e){if(e.routerLink){let
n=Array.isArray(e.routerLink)?e.routerLink:[e.routerLink];return
this.router.isActive(this.router.createUrlTree(n,{relativeTo:this.route}).toString(),!1)}return
e===this.activeItem}itemClick(e,n){n.disabled?e.preventDefault():(!n.url&&!n.routerLink&&e.preventDefault(),n.command&&n.command({originalEvent:e,item:n}),this.activeItem=n,this.tabChanged=!0)}updateInkBar(){let
e=
R.findSingle(this.navbar.nativeElement,"li.p-highlight");e&&(this.inkbar.nativeElement.style.width=R.getWidth(e)+"px",this.inkbar.nativeElement.style.left=R.getOffset(e).left-R.getOffset(this.navbar.nativeElement).left+"px")}getVisibleButtonWidths(){var
e,n;return[null===(e=this.prevBtn)||void 0===e?void
0:e.nativeElement,null===(n=this.nextBtn)||void 0===n?void
0:n.nativeElement].reduce((s,r)=>r?s+R.getWidth(r):s,0)}updateButtonState(){const
e=this.content.nativeElement,{scrollLeft:n,scrollWidth:s}=e,r=R.getWidth(e);this.backwardIsDisabled=0===n,this.forwardIsDisabled=parseInt(n)===s-r}updateScrollBar(e){this.navbar.nativeElement.children[e].scrollIntoView({block:"nearest"})}onScroll(e){this.scrollable&&this.updateButtonState(),e.preventDefault()}navBackward(){const
e=this.content.nativeElement,n=R.getWidth(e)-this.getVisibleButtonWidths(),s=e.scrollLeft-n;e.scrollLeft=s<=0?0:s}navForward(){const
e=this.content.nativeElement,n=R.getWidth(e)-this.getVisibleButtonWidths(),s=e.scrollL
eft+n,r=e.scrollWidth-n;e.scrollLeft=s>=r?r:s}}return t.\u0275fac=function(e){return
new(e||t)(D(It),D(Er),D(rt))},t.\u0275cmp=z({type:t,selectors:[["p-tabMenu"]],contentQueries:function(e,n,s){if(1&e&&st(s,ne,4),2&e){let
r;V(r=B())&&(n.templates=r)}},viewQuery:function(e,n){if(1&e&&(W(uz,5),W(dz,5),W(pz,5),W(hz,5),W(mz,5)),2&e){let
s;V(s=B())&&(n.content=s.first),V(s=B())&&(n.navbar=s.first),V(s=B())&&(n.inkbar=s.first),V(s=B())&&(n.prevBtn=s.first),V(s=B())&&(n.nextBtn=s.first)}},hostAttrs:[1,"p-element"],inputs:{model:"model",activeItem:"activeItem",scrollable:"scrollable",popup:"popup",style:"style",styleClass:"styleClass"},decls:11,vars:9,consts:[[3,"ngClass","ngStyle"],[1,"p-tabmenu-nav-container"],["class","p-tabmenu-nav-prev
p-tabmenu-nav-btn
p-link","type","button","pRipple","",3,"click",4,"ngIf"],[1,"p-tabmenu-nav-content",3,"scroll"],["content",""],["role","tablist",1,"p-tabmenu-nav","p-reset"],["navbar",""],["role","tab","pTooltip","",3,"ngStyle","class","ngClass","toolt
ipOptions",4,"ngFor","ngForOf"],[1,"p-tabmenu-ink-bar"],["inkbar",""],["class","p-tabmenu-nav-next
p-tabmenu-nav-btn
p-link","type","button","pRipple","",3,"click",4,"ngIf"],["type","button","pRipple","",1,"p-tabmenu-nav-prev","p-tabmenu-nav-btn","p-link",3,"click"],["prevBtn",""],[1,"pi","pi-chevron-left"],["role","tab","pTooltip","",3,"ngStyle","ngClass","tooltipOptions"],["class","p-menuitem-link","role","presentation","pRipple","",3,"target","click","keydown.enter",4,"ngIf"],["role","presentation","class","p-menuitem-link","pRipple","",3,"routerLink","queryParams","routerLinkActive","routerLinkActiveOptions","target","fragment","queryParamsHandling","preserveFragment","skipLocationChange","replaceUrl","state","click","keydown.enter",4,"ngIf"],["role","presentation","pRipple","",1,"p-menuitem-link",3,"target","click","keydown.enter"],[4,"ngIf"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],["class","p-menuitem-icon",3,"ngClass","ngStyle",4,"ngIf"],["class","p-menuitem-text",4,
"ngIf","ngIfElse"],["htmlLabel",""],[1,"p-menuitem-icon",3,"ngClass","ngStyle"],[1,"p-menuitem-text"],[1,"p-menuitem-text",3,"innerHTML"],["role","presentation","pRipple","",1,"p-menuitem-link",3,"routerLink","queryParams","routerLinkActive","routerLinkActiveOptions","target","fragment","queryParamsHandling","preserveFragment","skipLocationChange","replaceUrl","state","click","keydown.enter"],["htmlRouteLabel",""],["type","button","pRipple","",1,"p-tabmenu-nav-next","p-tabmenu-nav-btn","p-link",3,"click"],["nextBtn",""],[1,"pi","pi-chevron-right"]],template:function(e,n){1&e&&(l(0,"div",0)(1,"div",1),_(2,fz,3,0,"button",2),l(3,"div",3,4),C("scroll",function(r){return
n.onScroll(r)}),l(5,"ul",5,6),_(7,Ez,3,13,"li",7),k(8,"li",8,9),c()(),_(10,Rz,3,0,"button",10),c()()),2&e&&(me(n.styleClass),p("ngClass",U(7,Lz,n.scrollable))("ngStyle",n.style),a(2),p("ngIf",n.scrollable&&!n.backwardIsDisabled),a(5),p("ngForOf",n.model),a(3),p("ngIf",n.scrollable&&!n.forwardIsDisabled))},directives:[Le
,lt,Q,bt,at,Kt,Rt,Ho,_d],styles:[".p-tabmenu-nav-container{position:relative}.p-tabmenu-scrollable
.p-tabmenu-nav-container{overflow:hidden}.p-tabmenu-nav-content{overflow-x:auto;overflow-y:hidden;scroll-behavior:smooth;scrollbar-width:none;overscroll-behavior:contain
auto}.p-tabmenu-nav-btn{position:absolute;top:0;z-index:2;height:100%;display:flex;align-items:center;justify-content:center}.p-tabmenu-nav-prev{left:0}.p-tabmenu-nav-next{right:0}.p-tabview-nav-content::-webkit-scrollbar{display:none}.p-tabmenu-nav{display:flex;margin:0;padding:0;list-style-type:none;flex-wrap:nowrap}.p-tabmenu-nav
a{cursor:pointer;-webkit-user-select:none;user-select:none;display:flex;align-items:center;position:relative;text-decoration:none;overflow:hidden}.p-tabmenu-nav
a:focus{z-index:1}.p-tabmenu-nav
.p-menuitem-text{line-height:1;white-space:nowrap}.p-tabmenu-ink-bar{display:none;z-index:1}.p-tabmenu-nav-content::-webkit-scrollbar{display:none}\n"],encapsulation:2,changeDetection:0}),t})(),Oz=((
)=>{class t{}return t.\u0275fac=function(e){return
new(e||t)},t.\u0275mod=he({type:t}),t.\u0275inj=ue({imports:[[Fe,vn,Nt,pn,jn],vn,Nt,jn]}),t})();function
Az(t,i){if(1&t&&(l(0,"span"),g(1),c()),2&t){const
e=d();a(1),S(e.label)}}function Pz(t,i){1&t&&Y(0)}const
Y2=function(t){return{height:t}},Fz=function(t,i){return{"p-highlight":t,"p-disabled":i}},Nz=function(t){return{"p-highlight":t}},Z2=function(t){return{"pi
pi-check":t}},Rl=function(t){return{$implicit:t}},Vz=["container"],Bz=["filterInput"],Hz=["in"];function
qz(t,i){if(1&t&&(de(0),g(1),pe()),2&t){const
e=d(2);a(1),S(e.valuesAsString||"empty")}}function Gz(t,i){if(1&t){const
e=I();l(0,"span",18),C("click",function(s){v(e);const
r=d().$implicit;return d(3).removeChip(r,s)}),c()}}function
Uz(t,i){if(1&t&&(l(0,"div",14,15)(2,"span",16),g(3),c(),_(4,Gz,1,0,"span",17),c()),2&t){const
e=i.$implicit,n=d(3);a(3),S(n.findLabelByValue(e)),a(1),p("ngIf",!n.disabled)}}function
zz(t,i){if(1&t&&(de(0),g(1),pe()),2&t){const e=d(3);a(1),S(e
.placeholder||e.defaultLabel||"empty")}}function
jz(t,i){if(1&t&&(de(0),_(1,Uz,5,2,"div",13),_(2,zz,2,1,"ng-container",7),pe()),2&t){const
e=d(2);a(1),p("ngForOf",e.value),a(1),p("ngIf",!e.value||0===e.value.length)}}function
$z(t,i){if(1&t&&(de(0),_(1,qz,2,1,"ng-container",7),_(2,jz,3,2,"ng-container",7),pe()),2&t){const
e=d();a(1),p("ngIf","comma"===e.display),a(1),p("ngIf","chip"===e.display)}}function
Wz(t,i){1&t&&Y(0)}function Kz(t,i){if(1&t){const
e=I();l(0,"i",19),C("click",function(s){return
v(e),d().clear(s)}),c()}}function Qz(t,i){1&t&&Y(0)}const
Jz=function(t){return{"p-checkbox-disabled":t}},Yz=function(t,i,e){return{"p-highlight":t,"p-focus":i,"p-disabled":e}};function
Zz(t,i){if(1&t){const
e=I();l(0,"div",32)(1,"div",2)(2,"input",33),C("focus",function(){return
v(e),d(3).onHeaderCheckboxFocus()})("blur",function(){return
v(e),d(3).onHeaderCheckboxBlur()})("keydown.space",function(s){return
v(e),d(3).toggleAll(s)}),c()(),l(3,"div",34),C("click",function(s){return
v(e),d
(3).toggleAll(s)}),k(4,"span",35),c()()}if(2&t){const
e=d(3);p("ngClass",U(6,Jz,e.disabled||e.toggleAllDisabled)),a(2),p("checked",e.allChecked)("disabled",e.disabled||e.toggleAllDisabled),a(1),p("ngClass",Qt(8,Yz,e.allChecked,e.headerCheckboxFocus,e.disabled||e.toggleAllDisabled)),ie("aria-checked",e.allChecked),a(1),p("ngClass",U(12,Z2,e.allChecked))}}function
Xz(t,i){if(1&t){const
e=I();l(0,"div",36)(1,"input",37,38),C("input",function(s){return
v(e),d(3).onFilterInputChange(s)}),c(),k(3,"span",39),c()}if(2&t){const
e=d(3);a(1),p("value",e.filterValue||"")("disabled",e.disabled),ie("autocomplete",e.autocomplete)("placeholder",e.filterPlaceHolder)("aria-label",e.ariaFilterLabel)}}function
ej(t,i){if(1&t){const
e=I();l(0,"div",26),St(1),_(2,Qz,1,0,"ng-container",27),_(3,Zz,5,14,"div",28),_(4,Xz,4,5,"div",29),l(5,"button",30),C("click",function(s){return
v(e),d(2).close(s)}),k(6,"span",31),c()()}if(2&t){const
e=d(2);a(2),p("ngTemplateOutlet",e.headerTemplate),a(1),p("ngIf",e.showTog
gleAll&&!e.selectionLimit),a(1),p("ngIf",e.filter)}}function
tj(t,i){if(1&t&&(l(0,"span"),g(1),c()),2&t){const
e=d().$implicit,n=d(3);a(1),S(n.getOptionGroupLabel(e)||"empty")}}function
nj(t,i){1&t&&Y(0)}function ij(t,i){1&t&&Y(0)}function
sj(t,i){if(1&t&&(l(0,"li",41),_(1,tj,2,1,"span",7),_(2,nj,1,0,"ng-container",8),c(),_(3,ij,1,0,"ng-container",8)),2&t){const
e=i.$implicit;d(2);const
n=F(7),s=d();a(1),p("ngIf",!s.groupTemplate),a(1),p("ngTemplateOutlet",s.groupTemplate)("ngTemplateOutletContext",U(5,Rl,e)),a(1),p("ngTemplateOutlet",n)("ngTemplateOutletContext",U(7,Rl,s.getOptionGroupChildren(e)))}}function
rj(t,i){if(1&t&&(de(0),_(1,sj,4,9,"ng-template",40),pe()),2&t){const
e=d(2);a(1),p("ngForOf",e.optionsToRender)}}function
oj(t,i){1&t&&Y(0)}function
aj(t,i){if(1&t&&(de(0),_(1,oj,1,0,"ng-container",8),pe()),2&t){d();const
e=F(7),n=d();a(1),p("ngTemplateOutlet",e)("ngTemplateOutletContext",U(2,Rl,n.optionsToRender))}}function
lj(t,i){if(1&t){const e=I();l(0,"p-multiSelectItem",4
5),C("onClick",function(s){return
v(e),d(4).onOptionClick(s)})("onKeydown",function(s){return
v(e),d(4).onOptionKeydown(s)}),c()}if(2&t){const
e=i.$implicit,n=d(4);p("option",e)("selected",n.isSelected(e))("label",n.getOptionLabel(e))("disabled",n.isOptionDisabled(e))("template",n.itemTemplate)}}function
cj(t,i){if(1&t&&(de(0),_(1,lj,1,5,"ng-template",40),pe()),2&t){const
e=d().$implicit;a(1),p("ngForOf",e)}}function uj(t,i){if(1&t){const
e=I();de(0),l(1,"p-multiSelectItem",50),C("onClick",function(s){return
v(e),d(5).onOptionClick(s)})("onKeydown",function(s){return
v(e),d(5).onOptionKeydown(s)}),c(),pe()}if(2&t){const
e=i.$implicit,n=d(5);a(1),p("option",e)("selected",n.isSelected(e))("label",n.getOptionLabel(e))("disabled",n.isOptionDisabled(e))("template",n.itemTemplate)("itemSize",n.itemSize)}}function
dj(t,i){if(1&t&&(l(0,"cdk-virtual-scroll-viewport",47,48),_(2,uj,2,6,"ng-container",49),c()),2&t){const
e=d(2).$implicit,n=d(2);p("ngStyle",U(3,Y2,n.scrollHeight))("itemSize",n.i
temSize),a(2),p("cdkVirtualForOf",e)}}function
pj(t,i){if(1&t&&_(0,dj,3,5,"cdk-virtual-scroll-viewport",46),2&t){const
e=d(3);p("ngIf",e.virtualScroll&&!e.emptyOptions)}}function
hj(t,i){if(1&t&&(de(0),g(1),pe()),2&t){const e=d(4);a(1),T("
",e.emptyFilterMessageLabel," ")}}function
mj(t,i){1&t&&Y(0,null,52)}function
fj(t,i){if(1&t&&(l(0,"li",51),_(1,hj,2,1,"ng-container",42),_(2,mj,2,0,"ng-container",27),c()),2&t){const
e=d(3);a(1),p("ngIf",!e.emptyFilterTemplate&&!e.emptyTemplate)("ngIfElse",e.emptyFilter),a(1),p("ngTemplateOutlet",e.emptyFilterTemplate||e.emptyTemplate)}}function
gj(t,i){if(1&t&&(de(0),g(1),pe()),2&t){const e=d(4);a(1),T("
",e.emptyMessageLabel," ")}}function
_j(t,i){1&t&&Y(0,null,53)}function
bj(t,i){if(1&t&&(l(0,"li",51),_(1,gj,2,1,"ng-container",42),_(2,_j,2,0,"ng-container",27),c()),2&t){const
e=d(3);a(1),p("ngIf",!e.emptyTemplate)("ngIfElse",e.empty),a(1),p("ngTemplateOutlet",e.emptyTemplate)}}function
vj(t,i){if(1&t&&(_(0,cj,2,1,"ng-container",42),_(1,pj,1,1
,"ng-template",null,43,we),_(3,fj,3,3,"li",44),_(4,bj,3,3,"li",44)),2&t){const
e=F(2),n=d(2);p("ngIf",!n.virtualScroll)("ngIfElse",e),a(3),p("ngIf",n.hasFilter()&&n.emptyOptions),a(1),p("ngIf",!n.hasFilter()&&n.emptyOptions)}}function
Cj(t,i){1&t&&Y(0)}function
yj(t,i){if(1&t&&(l(0,"div",54),St(1,1),_(2,Cj,1,0,"ng-container",27),c()),2&t){const
e=d(2);a(2),p("ngTemplateOutlet",e.footerTemplate)}}const
wj=function(){return["p-multiselect-panel
p-component"]},Tj=function(t,i){return{showTransitionParams:t,hideTransitionParams:i}},Sj=function(t){return{value:"visible",params:t}},xj=function(t){return{"p-multiselect-virtualscroll":t}};function
Dj(t,i){if(1&t){const
e=I();l(0,"div",20),C("(a)overlayAnimation.start",function(s){return
v(e),d().onOverlayAnimationStart(s)})("(a)overlayAnimation.done",function(s){return
v(e),d().onOverlayAnimationEnd(s)})("keydown",function(s){return
v(e),d().onKeydown(s)})("click",function(s){return
v(e),d().onOverlayClick(s)}),_(1,ej,7,3,"div",21),l(2,"div",22
)(3,"ul",23),_(4,rj,2,1,"ng-container",7),_(5,aj,2,4,"ng-container",7),_(6,vj,5,4,"ng-template",null,24,we),c()(),_(8,yj,3,1,"div",25),c()}if(2&t){const
e=d();me(e.panelStyleClass),p("ngClass",A(12,wj))("@overlayAnimation",U(16,Sj,Ge(13,Tj,e.showTransitionOptions,e.hideTransitionOptions)))("ngStyle",e.panelStyle),a(1),p("ngIf",e.showHeader),a(1),_i("max-height",e.virtualScroll?"auto":e.scrollHeight||"auto"),a(1),p("ngClass",U(18,xj,e.virtualScroll)),a(1),p("ngIf",e.group),a(1),p("ngIf",!e.group),a(3),p("ngIf",e.footerFacet||e.footerTemplate)}}const
Mj=[[["p-header"]],[["p-footer"]]],kj=function(t,i,e,n){return{"p-multiselect
p-component":!0,"p-multiselect-open":t,"p-multiselect-chip":i,"p-focus":e,"p-disabled":n}},Ij=function(t,i){return{"p-placeholder":t,"p-multiselect-label-empty":i}},Ej=function(){return{"p-multiselect-trigger":!0}},Rj=["p-header","p-footer"],Lj={provide:dn,useExisting:je(()=>X2),multi:!0};let
Oj=(()=>{class t{constructor(){this.onClick=new H,this.onKeydown=new H
}onOptionClick(e){this.onClick.emit({originalEvent:e,option:this.option})}onOptionKeydown(e){this.onKeydown.emit({originalEvent:e,option:this.option})}}return
t.\u0275fac=function(e){return
new(e||t)},t.\u0275cmp=z({type:t,selectors:[["p-multiSelectItem"]],hostAttrs:[1,"p-element"],inputs:{option:"option",selected:"selected",label:"label",disabled:"disabled",itemSize:"itemSize",template:"template"},outputs:{onClick:"onClick",onKeydown:"onKeydown"},decls:6,vars:20,consts:[["pRipple","",1,"p-multiselect-item",3,"ngStyle","ngClass","click","keydown"],[1,"p-checkbox","p-component"],[1,"p-checkbox-box",3,"ngClass"],[1,"p-checkbox-icon",3,"ngClass"],[4,"ngIf"],[4,"ngTemplateOutlet","ngTemplateOutletContext"]],template:function(e,n){1&e&&(l(0,"li",0),C("click",function(r){return
n.onOptionClick(r)})("keydown",function(r){return
n.onOptionKeydown(r)}),l(1,"div",1)(2,"div",2),k(3,"span",3),c()(),_(4,Az,2,1,"span",4),_(5,Pz,1,0,"ng-container",5),c()),2&e&&(p("ngStyle",U(9,Y2,n.itemSize+"px"))
("ngClass",Ge(11,Fz,n.selected,n.disabled)),ie("aria-label",n.label)("tabindex",n.disabled?null:"0"),a(2),p("ngClass",U(14,Nz,n.selected)),a(1),p("ngClass",U(16,Z2,n.selected)),a(1),p("ngIf",!n.template),a(1),p("ngTemplateOutlet",n.template)("ngTemplateOutletContext",U(18,Rl,n.option)))},directives:[bt,lt,Le,Q,Rt],encapsulation:2}),t})(),X2=(()=>{class
t{constructor(e,n,s,r,o,u){this.el=e,this.renderer=n,this.cd=s,this.filterService=r,this.config=o,this.overlayService=u,this.filter=!0,this.displaySelectedLabel=!0,this.maxSelectedLabels=3,this.selectedItemsLabel="ellipsis",this.showToggleAll=!0,this.emptyFilterMessage="",this.emptyMessage="",this.resetFilterOnHide=!1,this.dropdownIcon="pi
pi-chevron-down",this.optionGroupChildren="items",this.showHeader=!0,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.tooltipPosi
tionStyle="absolute",this.autofocusFilter=!0,this.display="comma",this.autocomplete="on",this.showClear=!1,this.onChange=new
H,this.onFilter=new H,this.onFocus=new H,this.onBlur=new H,this.onClick=new
H,this.onClear=new H,this.onPanelShow=new H,this.onPanelHide=new
H,this.scrollHeight="200px",this.onModelChange=()=>{},this.onModelTouched=()=>{}}set
defaultLabel(e){this._defaultLabel=e,this.updateLabel()}get defaultLabel(){return
this._defaultLabel}set placeholder(e){this._placeholder=e,this.updateLabel()}get
placeholder(){return this._placeholder}get options(){return this._options}set
options(e){this._options=e,this.updateLabel()}get filterValue(){return
this._filterValue}set
filterValue(e){this._filterValue=e,this.activateFilter()}ngOnInit(){this.updateLabel()}ngAfterContentInit(){this.templates.forEach(e=>{switch(e.getType()){case"item":default:this.itemTemplate=e.template;break;case"group":this.groupTemplate=e.template;break;case"selectedItems":this.selectedItemsTemplate=e.templa
te;break;case"header":this.headerTemplate=e.template;break;case"emptyfilter":this.emptyFilterTemplate=e.template;break;case"empty":this.emptyTemplate=e.template;break;case"footer":this.footerTemplate=e.template}})}ngAfterViewInit(){this.overlayVisible&&this.show()}ngAfterViewChecked(){this.filtered&&(this.alignOverlay(),this.filtered=!1)}getOptionLabel(e){return
this.optionLabel?Z.resolveFieldData(e,this.optionLabel):null!=e.label?e.label:e}getOptionValue(e){return
this.optionValue?Z.resolveFieldData(e,this.optionValue):this.optionLabel||void
0===e.value?e:e.value}getOptionGroupLabel(e){return
this.optionGroupLabel?Z.resolveFieldData(e,this.optionGroupLabel):null!=e.label?e.label:e}getOptionGroupChildren(e){return
this.optionGroupChildren?Z.resolveFieldData(e,this.optionGroupChildren):e.items}isOptionDisabled(e){return(this.optionDisabled?Z.resolveFieldData(e,this.optionDisabled):void
0!==e.disabled&&e.disabled)||this.maxSelectionLimitReached&&!this.isSelected(e)}writeValue(e){this.
value=e,this.updateLabel(),this.updateFilledState(),this.checkSelectionLimit(),this.cd.markForCheck()}checkSelectionLimit(){this.maxSelectionLimitReached=!(!this.selectionLimit||!this.value||this.value.length!==this.selectionLimit)}updateFilledState(){this.filled=this.value&&this.value.length>0}registerOnChange(e){this.onModelChange=e}registerOnTouched(e){this.onModelTouched=e}setDisabledState(e){this.disabled=e,this.cd.markForCheck()}onOptionClick(e){let
n=e.option;if(this.isOptionDisabled(n))return;let
s=this.getOptionValue(n),r=this.findSelectionIndex(s);-1!=r?(this.value=this.value.filter((o,u)=>u!=r),this.selectionLimit&&(this.maxSelectionLimitReached=!1)):((!this.selectionLimit||!this.value||this.value.length<this.selectionLimit)&&(this.value=[...this.value||[],s]),this.checkSelectionLimit()),this.onModelChange(this.value),this.onChange.emit({originalEvent:e.originalEvent,value:this.value,itemValue:s}),this.updateLabel(),this.updateFilledState()}isSelected(e){return-1!=this.fi
ndSelectionIndex(this.getOptionValue(e))}findSelectionIndex(e){let
n=-1;if(this.value)for(let
s=0;s<this.value.length;s++)if(Z.equals(this.value[s],e,this.dataKey)){n=s;break}return
n}get toggleAllDisabled(){let e=this.optionsToRender;if(!e||0===e.length)return!0;for(let
n of
e)if(!this.isOptionDisabled(n))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}),this.updateFilledState(),this.updateLabel(),e.preventDefault())}checkAll(){let
n=[];this.optionsToRender.forEach(s=>{if(this.group){let
r=this.getOptionGroupChildren(s);r&&r.forEach(o=>{let
u=this.isOptionDisabled(o);(!u||u&&this.isSelected(o))&&n.push(this.getOptionValue(o))})}else{let
r=this.isOptionDisabled(s);(!r||r&&this.isSelected(s))&&n.push(this.getOptionValue(s))}}),this.value=n}uncheckAll(){let
n=[];this.optionsToRender.forEach(s=>{this.group?s.items&&s
.items.forEach(r=>{this.isOptionDisabled(r)&&this.isSelected(r)&&n.push(this.getOptionValue(r))}):this.isOptionDisabled(s)&&this.isSelected(s)&&n.push(this.getOptionValue(s))}),this.value=n}show(){this.overlayVisible||(this.overlayVisible=!0,this.preventDocumentDefault=!0,this.cd.markForCheck())}onOverlayClick(e){this.overlayService.add({originalEvent:e,target:this.el.nativeElement})}onOverlayAnimationStart(e){switch(e.toState){case"visible":this.overlay=e.element,this.appendOverlay(),this.autoZIndex&&dt.set("overlay",this.overlay,this.baseZIndex+this.config.zIndex.overlay),this.alignOverlay(),this.bindDocumentClickListener(),this.bindDocumentResizeListener(),this.bindScrollListener(),this.filterInputChild&&this.filterInputChild.nativeElement&&(this.preventModelTouched=!0,this.autofocusFilter&&this.filterInputChild.nativeElement.focus()),this.onPanelShow.emit();break;case"void":this.onOverlayHide()}}onOverlayAnimationEnd(e){"void"===e.toState&&dt.clear(e.element)}appendOverlay(){thi
s.appendTo&&("body"===this.appendTo?document.body.appendChild(this.overlay):R.appendChild(this.overlay,this.appendTo),this.overlay.style.minWidth||(this.overlay.style.minWidth=R.getWidth(this.containerViewChild.nativeElement)+"px"))}restoreOverlayAppend(){this.overlay&&this.appendTo&&this.el.nativeElement.appendChild(this.overlay)}alignOverlay(){this.overlay&&(this.appendTo?R.absolutePosition(this.overlay,this.containerViewChild.nativeElement):R.relativePosition(this.overlay,this.containerViewChild.nativeElement))}hide(){this.overlayVisible=!1,this.unbindDocumentClickListener(),this.resetFilterOnHide&&(this.filterInputChild.nativeElement.value="",this._filterValue=null,this._filteredOptions=null),this.onPanelHide.emit(),this.cd.markForCheck()}close(e){this.hide(),e.preventDefault(),e.stopPropagation()}clear(e){this.value=null,this.updateLabel(),this.updateFilledState(),this.onClear.emit(),this.onModelChange(this.value),e.stopPropagation()}onMouseclick(e,n){this.disabled||this.readon
ly||e.target.isSameNode(this.accessibleViewChild.nativeElement)||(this.onClick.emit(e),!this.isOverlayClick(e)&&!R.hasClass(e.target,"p-multiselect-token-icon")&&(this.overlayVisible?this.hide():(n.focus(),this.show())))}removeChip(e,n){this.value=this.value.filter(s=>!Z.equals(s,e,this.dataKey)),this.onModelChange(this.value),this.checkSelectionLimit(),this.onChange.emit({originalEvent:n,value:this.value,itemValue:e}),this.updateLabel(),this.updateFilledState()}isOverlayClick(e){let
n=e.target;return!!this.overlay&&(this.overlay.isSameNode(n)||this.overlay.contains(n))}isOutsideClicked(e){return!(this.el.nativeElement.isSameNode(e.target)||this.el.nativeElement.contains(e.target)||this.isOverlayClick(e))}onInputFocus(e){this.focus=!0,this.onFocus.emit({originalEvent:e})}onInputBlur(e){this.focus=!1,this.onBlur.emit({originalEvent:e}),this.preventModelTouched||this.onModelTouched(),this.preventModelTouched=!1}onOptionKeydown(e){if(!this.readonly)switch(e.originalEvent.which){case
40
:var
n=this.findNextItem(e.originalEvent.target.parentElement);n&&n.focus(),e.originalEvent.preventDefault();break;case
38:var
s=this.findPrevItem(e.originalEvent.target.parentElement);s&&s.focus(),e.originalEvent.preventDefault();break;case
13:this.onOptionClick(e),e.originalEvent.preventDefault();break;case
9:this.hide()}}findNextItem(e){let n=e.nextElementSibling;return
n?R.hasClass(n.children[0],"p-disabled")||R.isHidden(n.children[0])||R.hasClass(n,"p-multiselect-item-group")?this.findNextItem(n):n.children[0]:null}findPrevItem(e){let
n=e.previousElementSibling;return
n?R.hasClass(n.children[0],"p-disabled")||R.isHidden(n.children[0])||R.hasClass(n,"p-multiselect-item-group")?this.findPrevItem(n):n.children[0]:null}onKeydown(e){switch(e.which){case
40:!this.overlayVisible&&e.altKey&&(this.show(),e.preventDefault());break;case
32:this.overlayVisible||(this.show(),e.preventDefault());break;case
27:this.hide()}}updateLabel(){if(this.value&&this.options&&this.value.length&&this.dis
playSelectedLabel){let e="";for(let n=0;n<this.value.length;n++){let
s=this.findLabelByValue(this.value[n]);s&&(e.length>0&&(e+=",
"),e+=s)}if(this.value.length<=this.maxSelectedLabels||"ellipsis"===this.selectedItemsLabel)this.valuesAsString=e;else{let
n=/{(.*?)}/;this.valuesAsString=n.test(this.selectedItemsLabel)?this.selectedItemsLabel.replace(this.selectedItemsLabel.match(n)[0],this.value.length+""):this.selectedItemsLabel}}else
this.valuesAsString=this.placeholder||this.defaultLabel}findLabelByValue(e){if(this.group){let
n=null;for(let s=0;s<this.options.length;s++){let
r=this.getOptionGroupChildren(this.options[s]);if(r&&(n=this.searchLabelByValue(e,r),n))break}return
n}return this.searchLabelByValue(e,this.options)}searchLabelByValue(e,n){let
s=null;for(let r=0;r<n.length;r++){let
o=n[r],u=this.getOptionValue(o);if(null==e&&null==u||Z.equals(e,u,this.dataKey)){s=this.getOptionLabel(o);break}}return
s}get allChecked(){let e=this.optionsToRender;if(!e||0===e.length)return!1;{l
et n=0,s=0,r=0,o=this.group?0:this.optionsToRender.length;for(let u of
e)if(this.group)for(let h of this.getOptionGroupChildren(u)){let
b=this.isOptionDisabled(h),y=this.isSelected(h);if(b)y?n++:s++;else{if(!y)return!1;r++}o++}else{let
h=this.isOptionDisabled(u),b=this.isSelected(u);if(h)b?n++:s++;else{if(!b)return!1;r++}}return
o===n||o===r||r&&o===r+s+n}}get optionsToRender(){return
this._filteredOptions||this.options}get emptyOptions(){let
e=this.optionsToRender;return!e||0===e.length}get emptyMessageLabel(){return
this.emptyMessage||this.config.getTranslation(Ft.EMPTY_MESSAGE)}get
emptyFilterMessageLabel(){return
this.emptyFilterMessage||this.config.getTranslation(Ft.EMPTY_FILTER_MESSAGE)}hasFilter(){return
this._filterValue&&this._filterValue.trim().length>0}onFilterInputChange(e){this._filterValue=e.target.value,this.activateFilter(),this.onFilter.emit({originalEvent:e,filter:this._filterValue}),this.cd.detectChanges(),this.alignOverlay()}activateFilter(){if(this.hasFilter()&&
this._options){let
e=(this.filterBy||this.optionLabel||"label").split(",");if(this.group){let
n=[];for(let s of this.options){let
r=this.filterService.filter(this.getOptionGroupChildren(s),e,this.filterValue,this.filterMatchMode,this.filterLocale);r&&r.length&&n.push(Object.assign(Object.assign({},s),{[this.optionGroupChildren]:r}))}this._filteredOptions=n}else
this._filteredOptions=this.filterService.filter(this.options,e,this._filterValue,this.filterMatchMode,this.filterLocale)}else
this._filteredOptions=null}onHeaderCheckboxFocus(){this.headerCheckboxFocus=!0}onHeaderCheckboxBlur(){this.headerCheckboxFocus=!1}bindDocumentClickListener(){this.documentClickListener||(this.documentClickListener=this.renderer.listen(this.el?this.el.nativeElement.ownerDocument:"document","click",n=>{!this.preventDocumentDefault&&this.isOutsideClicked(n)&&this.hide(),this.preventDocumentDefault=!1}))}unbindDocumentClickListener(){this.documentClickListener&&(this.documentClickListener(),this.documentCl
ickListener=null)}bindDocumentResizeListener(){this.documentResizeListener=this.onWindowResize.bind(this),window.addEventListener("resize",this.documentResizeListener)}unbindDocumentResizeListener(){this.documentResizeListener&&(window.removeEventListener("resize",this.documentResizeListener),this.documentResizeListener=null)}onWindowResize(){R.isAndroid()||this.hide()}bindScrollListener(){this.scrollHandler||(this.scrollHandler=new
Qs(this.containerViewChild.nativeElement,()=>{this.overlayVisible&&this.hide()})),this.scrollHandler.bindScrollListener()}unbindScrollListener(){this.scrollHandler&&this.scrollHandler.unbindScrollListener()}onOverlayHide(){this.unbindDocumentClickListener(),this.unbindDocumentResizeListener(),this.unbindScrollListener(),this.overlay=null,this.onModelTouched()}ngOnDestroy(){this.scrollHandler&&(this.scrollHandler.destroy(),this.scrollHandler=null),this.overlay&&dt.clear(this.overlay),this.restoreOverlayAppend(),this.onOverlayHide()}}return
t.\u0275fac=fun
ction(e){return
new(e||t)(D(De),D(gn),D(rt),D(hl),D(zn),D(Ks))},t.\u0275cmp=z({type:t,selectors:[["p-multiSelect"]],contentQueries:function(e,n,s){if(1&e&&(st(s,fl,5),st(s,Oo,5),st(s,ne,4)),2&e){let
r;V(r=B())&&(n.footerFacet=r.first),V(r=B())&&(n.headerFacet=r.first),V(r=B())&&(n.templates=r)}},viewQuery:function(e,n){if(1&e&&(W(Vz,5),W(Bz,5),W(Hz,5)),2&e){let
s;V(s=B())&&(n.containerViewChild=s.first),V(s=B())&&(n.filterInputChild=s.first),V(s=B())&&(n.accessibleViewChild=s.first)}},hostAttrs:[1,"p-element","p-inputwrapper"],hostVars:6,hostBindings:function(e,n){2&e&&si("p-inputwrapper-filled",n.filled)("p-inputwrapper-focus",n.focus||n.overlayVisible)("p-multiselect-clearable",n.showClear&&!n.disabled)},inputs:{style:"style",styleClass:"styleClass",panelStyle:"panelStyle",panelStyleClass:"panelStyleClass",inputId:"inputId",disabled:"disabled",readonly:"readonly",group:"group",filter:"filter",filterPlaceHolder:"filterPlaceHolder",filterLocale:"filterLocale",overlayVisible:"overlay
Visible",tabindex:"tabindex",appendTo:"appendTo",dataKey:"dataKey",name:"name",label:"label",ariaLabelledBy:"ariaLabelledBy",displaySelectedLabel:"displaySelectedLabel",maxSelectedLabels:"maxSelectedLabels",selectionLimit:"selectionLimit",selectedItemsLabel:"selectedItemsLabel",showToggleAll:"showToggleAll",emptyFilterMessage:"emptyFilterMessage",emptyMessage:"emptyMessage",resetFilterOnHide:"resetFilterOnHide",dropdownIcon:"dropdownIcon",optionLabel:"optionLabel",optionValue:"optionValue",optionDisabled:"optionDisabled",optionGroupLabel:"optionGroupLabel",optionGroupChildren:"optionGroupChildren",showHeader:"showHeader",autoZIndex:"autoZIndex",baseZIndex:"baseZIndex",filterBy:"filterBy",virtualScroll:"virtualScroll",itemSize:"itemSize",showTransitionOptions:"showTransitionOptions",hideTransitionOptions:"hideTransitionOptions",ariaFilterLabel:"ariaFilterLabel",filterMatchMode:"filterMatchMode",tooltip:"tooltip",tooltipPosition:"tooltipPosition",tooltipPositionStyle:"tooltipPositionS
tyle",tooltipStyleClass:"tooltipStyleClass",autofocusFilter:"autofocusFilter",display:"display",autocomplete:"autocomplete",showClear:"showClear",scrollHeight:"scrollHeight",defaultLabel:"defaultLabel",placeholder:"placeholder",options:"options",filterValue:"filterValue"},outputs:{onChange:"onChange",onFilter:"onFilter",onFocus:"onFocus",onBlur:"onBlur",onClick:"onClick",onClear:"onClear",onPanelShow:"onPanelShow",onPanelHide:"onPanelHide"},features:[Pe([Lj])],ngContentSelectors:Rj,decls:13,vars:34,consts:[[3,"ngClass","ngStyle","click"],["container",""],[1,"p-hidden-accessible"],["type","text","readonly","readonly","aria-haspopup","listbox","role","listbox",3,"disabled","focus","blur","keydown"],["in",""],[1,"p-multiselect-label-container",3,"pTooltip","tooltipPosition","positionStyle","tooltipStyleClass"],[1,"p-multiselect-label",3,"ngClass"],[4,"ngIf"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],["class","p-multiselect-clear-icon
pi pi-times",3,"click",4,"ngIf"],[3,"ngClass"
],[1,"p-multiselect-trigger-icon",3,"ngClass"],["onOverlayAnimationEnd","",3,"ngClass","ngStyle","class","keydown","click",4,"ngIf"],["class","p-multiselect-token",4,"ngFor","ngForOf"],[1,"p-multiselect-token"],["token",""],[1,"p-multiselect-token-label"],["class","p-multiselect-token-icon
pi
pi-times-circle",3,"click",4,"ngIf"],[1,"p-multiselect-token-icon","pi","pi-times-circle",3,"click"],[1,"p-multiselect-clear-icon","pi","pi-times",3,"click"],["onOverlayAnimationEnd","",3,"ngClass","ngStyle","keydown","click"],["class","p-multiselect-header",4,"ngIf"],[1,"p-multiselect-items-wrapper"],["role","listbox","aria-multiselectable","true",1,"p-multiselect-items","p-component",3,"ngClass"],["itemslist",""],["class","p-multiselect-footer",4,"ngIf"],[1,"p-multiselect-header"],[4,"ngTemplateOutlet"],["class","p-checkbox
p-component",3,"ngClass",4,"ngIf"],["class","p-multiselect-filter-container",4,"ngIf"],["type","button","pRipple","",1,"p-multiselect-close","p-link",3,"click"],[1,"p-mult
iselect-close-icon","pi","pi-times"],[1,"p-checkbox","p-component",3,"ngClass"],["type","checkbox","readonly","readonly",3,"checked","disabled","focus","blur","keydown.space"],["role","checkbox",1,"p-checkbox-box",3,"ngClass","click"],[1,"p-checkbox-icon",3,"ngClass"],[1,"p-multiselect-filter-container"],["type","text","role","textbox",1,"p-multiselect-filter","p-inputtext","p-component",3,"value","disabled","input"],["filterInput",""],[1,"p-multiselect-filter-icon","pi","pi-search"],["ngFor","",3,"ngForOf"],[1,"p-multiselect-item-group"],[4,"ngIf","ngIfElse"],["virtualScrollList",""],["class","p-multiselect-empty-message",4,"ngIf"],[3,"option","selected","label","disabled","template","onClick","onKeydown"],[3,"ngStyle","itemSize",4,"ngIf"],[3,"ngStyle","itemSize"],["viewport",""],[4,"cdkVirtualFor","cdkVirtualForOf"],[3,"option","selected","label","disabled","template","itemSize","onClick","onKeydown"],[1,"p-multiselect-empty-message"],["emptyFilter",""],["empty",""],[1,"p-multisel
ect-footer"]],template:function(e,n){if(1&e){const
s=I();Sn(Mj),l(0,"div",0,1),C("click",function(o){v(s);const
u=F(4);return
n.onMouseclick(o,u)}),l(2,"div",2)(3,"input",3,4),C("focus",function(o){return
n.onInputFocus(o)})("blur",function(o){return
n.onInputBlur(o)})("keydown",function(o){return
n.onKeydown(o)}),c()(),l(5,"div",5)(6,"div",6),_(7,$z,3,2,"ng-container",7),_(8,Wz,1,0,"ng-container",8),c(),_(9,Kz,1,0,"i",9),c(),l(10,"div",10),k(11,"span",11),c(),_(12,Dj,9,20,"div",12),c()}2&e&&(me(n.styleClass),p("ngClass",qn(23,kj,n.overlayVisible,"chip"===n.display,n.focus,n.disabled))("ngStyle",n.style),a(3),p("disabled",n.disabled),ie("label",n.label)("id",n.inputId)("name",n.name)("tabindex",n.tabindex)("aria-expanded",n.overlayVisible)("aria-labelledby",n.ariaLabelledBy),a(2),p("pTooltip",n.tooltip)("tooltipPosition",n.tooltipPosition)("positionStyle",n.tooltipPositionStyle)("tooltipStyleClass",n.tooltipStyleClass),a(1),p("ngClass",Ge(28,Ij,n.valuesAsString===(n.defaultLabel||n.
placeholder),!(null!=n.valuesAsString&&0!==n.valuesAsString.length||null!=n.placeholder&&0!==n.placeholder.length))),a(1),p("ngIf",!n.selectedItemsTemplate),a(1),p("ngTemplateOutlet",n.selectedItemsTemplate)("ngTemplateOutletContext",U(31,Rl,n.value)),a(1),p("ngIf",null!=n.value&&n.filled&&!n.disabled&&n.showClear),a(1),p("ngClass",A(33,Ej)),a(1),p("ngClass",n.dropdownIcon),a(1),p("ngIf",n.overlayVisible))},directives:[Oj,Po,Le,lt,Kt,Q,at,Rt,bt,Qf,Jf],styles:[".p-multiselect{display:inline-flex;cursor:pointer;position:relative;-webkit-user-select:none;user-select:none}.p-multiselect-trigger{display:flex;align-items:center;justify-content:center;flex-shrink:0}.p-multiselect-label-container{overflow:hidden;flex:1
1
auto;cursor:pointer}.p-multiselect-label{display:block;white-space:nowrap;cursor:pointer;overflow:hidden;text-overflow:ellipsis}.p-multiselect-label-empty{overflow:hidden;visibility:hidden}.p-multiselect-token{cursor:default;display:inline-flex;align-items:center;flex:0
0 a
uto}.p-multiselect-token-icon{cursor:pointer}.p-multiselect
.p-multiselect-panel{min-width:100%}.p-multiselect-panel{position:absolute;top:0;left:0}.p-multiselect-items-wrapper{overflow:auto}.p-multiselect-items{margin:0;padding:0;list-style-type:none}.p-multiselect-item{cursor:pointer;display:flex;align-items:center;font-weight:400;white-space:nowrap;position:relative;overflow:hidden}.p-multiselect-header{display:flex;align-items:center;justify-content:space-between}.p-multiselect-filter-container{position:relative;flex:1
1
auto}.p-multiselect-filter-icon{position:absolute;top:50%;margin-top:-.5rem}.p-multiselect-filter-container
.p-inputtext{width:100%}.p-multiselect-close{display:flex;align-items:center;justify-content:center;flex-shrink:0;overflow:hidden;position:relative}.p-fluid
.p-multiselect{display:flex}.p-multiselect-clear-icon{position:absolute;top:50%;margin-top:-.5rem;cursor:pointer}.p-multiselect-clearable{position:relative}\n"],encapsulation:2,data:{animation:[wi("ove
rlayAnimation",[Lt(":enter",[it({opacity:0,transform:"scaleY(0.8)"}),kt("{{showTransitionParams}}")]),Lt(":leave",[kt("{{hideTransitionParams}}",it({opacity:0}))])])]},changeDetection:0}),t})(),Aj=(()=>{class
t{}return t.\u0275fac=function(e){return
new(e||t)},t.\u0275mod=he({type:t}),t.\u0275inj=ue({imports:[[Fe,Nt,Fo,jn,pn],Nt,Fo]}),t})(),e$=(()=>{class
t{}return t.\u0275fac=function(e){return
new(e||t)},t.\u0275mod=he({type:t}),t.\u0275inj=ue({imports:[[Fe,vn,jn],vn,jn]}),t})(),tS=(()=>{class
t{constructor(e,n,s,r){this.el=e,this.ngModel=n,this.control=s,this.cd=r,this.onResize=new
H}ngOnInit(){this.ngModel&&(this.ngModelSubscription=this.ngModel.valueChanges.subscribe(()=>{this.updateState()})),this.control&&(this.ngControlSubscription=this.control.valueChanges.subscribe(()=>{this.updateState()}))}ngAfterViewInit(){this.autoResize&&this.resize(),this.updateFilledState(),this.cd.detectChanges()}onInput(e){this.updateState()}updateFilledState(){this.filled=this.el.nativeElement.va
lue&&this.el.nativeElement.value.length}onFocus(e){this.autoResize&&this.resize(e)}onBlur(e){this.autoResize&&this.resize(e)}resize(e){this.el.nativeElement.style.height="auto",this.el.nativeElement.style.height=this.el.nativeElement.scrollHeight+"px",parseFloat(this.el.nativeElement.style.height)>=parseFloat(this.el.nativeElement.style.maxHeight)?(this.el.nativeElement.style.overflowY="scroll",this.el.nativeElement.style.height=this.el.nativeElement.style.maxHeight):this.el.nativeElement.style.overflow="hidden",this.onResize.emit(e||{})}updateState(){this.updateFilledState(),this.autoResize&&this.resize()}ngOnDestroy(){this.ngModelSubscription&&this.ngModelSubscription.unsubscribe(),this.ngControlSubscription&&this.ngControlSubscription.unsubscribe()}}return
t.\u0275fac=function(e){return
new(e||t)(D(De),D(_e,8),D(ss,8),D(rt))},t.\u0275dir=le({type:t,selectors:[["","pInputTextarea",""]],hostAttrs:[1,"p-inputtextarea","p-inputtext","p-component","p-element"],hostVars:4,hostBindings:
function(e,n){1&e&&C("input",function(r){return
n.onInput(r)})("focus",function(r){return
n.onFocus(r)})("blur",function(r){return
n.onBlur(r)}),2&e&&si("p-filled",n.filled)("p-inputtextarea-resizable",n.autoResize)},inputs:{autoResize:"autoResize"},outputs:{onResize:"onResize"}}),t})(),t$=(()=>{class
t{}return t.\u0275fac=function(e){return
new(e||t)},t.\u0275mod=he({type:t}),t.\u0275inj=ue({imports:[[Fe]]}),t})();const
n$=["sublist"],i$=function(t){return{"p-hidden":t}};function
s$(t,i){if(1&t&&k(0,"li",5),2&t){const
e=d().$implicit;p("ngClass",U(1,i$,!1===e.visible))}}function
r$(t,i){if(1&t&&k(0,"span",16),2&t){const
e=d(3).$implicit;p("ngClass",e.icon)("ngStyle",e.iconStyle)}}function
o$(t,i){if(1&t&&(l(0,"span",17),g(1),c()),2&t){const
e=d(3).$implicit;a(1),S(e.label)}}function
a$(t,i){1&t&&k(0,"span",18),2&t&&p("innerHTML",d(3).$implicit.label,Bt)}function
l$(t,i){1&t&&k(0,"span",19)}const
nS=function(t){return{"p-menuitem-link":!0,"p-disabled":t}};function
c$(t,i){if(1&t){co
nst e=I();l(0,"a",11),C("keydown",function(s){v(e);const
r=d(2).$implicit;return d().onItemKeyDown(s,r)})("click",function(s){v(e);const
r=d(2).$implicit;return
d().onItemClick(s,r)})("mouseenter",function(s){v(e);const
r=d(2).$implicit;return
d().onItemMouseEnter(s,r)}),_(1,r$,1,2,"span",12),_(2,o$,2,1,"span",13),_(3,a$,1,1,"ng-template",null,14,we),_(5,l$,1,0,"span",15),c()}if(2&t){const
e=F(4),n=d(2).$implicit,s=d();p("target",n.target)("ngClass",U(13,nS,n.disabled)),ie("href",n.url,ln)("data-automationid",n.automationId)("title",n.title)("id",n.id)("tabindex",n.disabled?null:"0")("aria-haspopup",null!=s.item.items)("aria-expanded",s.item===s.activeItem),a(1),p("ngIf",n.icon),a(1),p("ngIf",!1!==n.escape)("ngIfElse",e),a(3),p("ngIf",n.items)}}function
u$(t,i){if(1&t&&k(0,"span",16),2&t){const
e=d(3).$implicit;p("ngClass",e.icon)("ngStyle",e.iconStyle)}}function
d$(t,i){if(1&t&&(l(0,"span",17),g(1),c()),2&t){const
e=d(3).$implicit;a(1),S(e.label)}}function
p$(t,i){1&t&&k(0,"span",1
8),2&t&&p("innerHTML",d(3).$implicit.label,Bt)}function
h$(t,i){1&t&&k(0,"span",19)}const
m$=function(){return{exact:!1}};function f$(t,i){if(1&t){const
e=I();l(0,"a",20),C("keydown",function(s){v(e);const
r=d(2).$implicit;return d().onItemKeyDown(s,r)})("click",function(s){v(e);const
r=d(2).$implicit;return
d().onItemClick(s,r)})("mouseenter",function(s){v(e);const
r=d(2).$implicit;return
d().onItemMouseEnter(s,r)}),_(1,u$,1,2,"span",12),_(2,d$,2,1,"span",13),_(3,p$,1,1,"ng-template",null,21,we),_(5,h$,1,0,"span",15),c()}if(2&t){const
e=F(4),n=d(2).$implicit;p("routerLink",n.routerLink)("queryParams",n.queryParams)("routerLinkActive","p-menuitem-link-active")("routerLinkActiveOptions",n.routerLinkActiveOptions||A(20,m$))("target",n.target)("ngClass",U(21,nS,n.disabled))("fragment",n.fragment)("queryParamsHandling",n.queryParamsHandling)("preserveFragment",n.preserveFragment)("skipLocationChange",n.skipLocationChange)("replaceUrl",n.replaceUrl)("state",n.state),ie("data-automationid
",n.automationId)("title",n.title)("id",n.id)("tabindex",n.disabled?null:"0"),a(1),p("ngIf",n.icon),a(1),p("ngIf",!1!==n.escape)("ngIfElse",e),a(3),p("ngIf",n.items)}}function
g$(t,i){if(1&t){const
e=I();l(0,"p-tieredMenuSub",22),C("keydownItem",function(s){return
v(e),d(3).onChildItemKeyDown(s)})("leafClick",function(){return
v(e),d(3).onLeafClick()}),c()}if(2&t){const
e=d(2).$implicit,n=d();p("parentActive",e===n.activeItem)("item",e)("mobileActive",n.mobileActive)("autoDisplay",n.autoDisplay)("popup",n.popup)}}const
_$=function(t,i){return{"p-menuitem":!0,"p-menuitem-active":t,"p-hidden":i}};function
b$(t,i){if(1&t&&(l(0,"li",6,7),_(2,c$,6,15,"a",8),_(3,f$,6,23,"a",9),_(4,g$,1,5,"p-tieredMenuSub",10),c()),2&t){const
e=d().$implicit,n=d();me(e.styleClass),p("ngClass",Ge(8,_$,e===n.activeItem,!1===e.visible))("ngStyle",e.style)("tooltipOptions",e.tooltipOptions),a(2),p("ngIf",!e.routerLink),a(1),p("ngIf",e.routerLink),a(1),p("ngIf",e.items)}}function
v$(t,i){if(1&t&&(_(0,s$,1,3,"li
",3),_(1,b$,5,11,"li",4)),2&t){const
e=i.$implicit;p("ngIf",e.separator),a(1),p("ngIf",!e.separator)}}const
C$=function(t){return{"p-submenu-list":t}},y$=function(t){return{"p-tieredmenu
p-component":!0,"p-tieredmenu-overlay":t}},w$=function(t,i){return{showTransitionParams:t,hideTransitionParams:i}},T$=function(t){return{value:"visible",params:t}};function
S$(t,i){if(1&t){const
e=I();l(0,"div",1),C("click",function(s){return
v(e),d().onOverlayClick(s)})("(a)overlayAnimation.start",function(s){return
v(e),d().onOverlayAnimationStart(s)})("(a)overlayAnimation.done",function(s){return
v(e),d().onOverlayAnimationEnd(s)}),l(1,"p-tieredMenuSub",2),C("leafClick",function(){return
v(e),d().onLeafClick()}),c()()}if(2&t){const
e=d();me(e.styleClass),p("ngClass",U(12,y$,e.popup))("ngStyle",e.style)("@overlayAnimation",U(17,T$,Ge(14,w$,e.showTransitionOptions,e.hideTransitionOptions)))("@.disabled",!0!==e.popup),a(1),p("item",e.model)("parentActive",e.parentActive)("baseZIndex",e.baseZIndex)("auto
ZIndex",e.autoZIndex)("autoDisplay",e.autoDisplay)("popup",e.popup)}}let
x$=(()=>{class
t{constructor(e,n,s){this.el=e,this.renderer=n,this.cd=s,this.autoZIndex=!0,this.baseZIndex=0,this.leafClick=new
H,this.keydownItem=new H,this.menuHoverActive=!1}get parentActive(){return
this._parentActive}set
parentActive(e){this.root||(this._parentActive=e,e?this.positionSubmenu():this.activeItem=null)}onItemClick(e,n){n.disabled?e.preventDefault():(!n.url&&!n.routerLink&&e.preventDefault(),n.command&&n.command({originalEvent:e,item:n}),n.items&&(this.activeItem&&n===this.activeItem?(this.activeItem=null,this.unbindDocumentClickListener()):(this.activeItem=n,this.root&&this.bindDocumentClickListener())),n.items||this.onLeafClick())}onItemMouseEnter(e,n){n.disabled||this.mobileActive?e.preventDefault():this.root?(this.activeItem||this.autoDisplay||this.popup)&&(this.activeItem=n,this.bindDocumentClickListener()):(this.activeItem=n,this.bindDocumentClickListener())}onLeafClick(){this.activeItem=
null,this.root&&this.unbindDocumentClickListener(),this.leafClick.emit()}onItemKeyDown(e,n){let
s=e.currentTarget.parentElement;switch(e.key){case"ArrowDown":var
r=this.findNextItem(s);r&&r.children[0].focus(),e.preventDefault();break;case"ArrowUp":var
o=this.findPrevItem(s);o&&o.children[0].focus(),e.preventDefault();break;case"ArrowRight":n.items&&(this.activeItem=n,this.root&&this.bindDocumentClickListener(),setTimeout(()=>{s.children[1].children[0].children[0].children[0].focus()},50)),e.preventDefault()}this.keydownItem.emit({originalEvent:e,element:s})}positionSubmenu(){let
e=this.sublistViewChild&&this.sublistViewChild.nativeElement;if(e){const
n=e.parentElement.parentElement,s=R.getOffset(n),r=R.getViewport(),o=e.offsetParent?e.offsetWidth:R.getHiddenElementOuterWidth(e),u=R.getOuterWidth(n.children[0]);parseInt(s.left,10)+u+o>r.width-R.calculateScrollbarWidth()&&R.addClass(e,"p-submenu-list-flipped")}}findNextItem(e){let
n=e.nextElementSibling;return n?R.hasClass(n,"p-disab
led")||!R.hasClass(n,"p-menuitem")?this.findNextItem(n):n:null}findPrevItem(e){let
n=e.previousElementSibling;return
n?R.hasClass(n,"p-disabled")||!R.hasClass(n,"p-menuitem")?this.findPrevItem(n):n:null}onChildItemKeyDown(e){"ArrowLeft"===e.originalEvent.key&&(this.activeItem=null,this.root&&this.unbindDocumentClickListener(),e.element.parentElement.parentElement.parentElement.children[0].focus())}bindDocumentClickListener(){this.documentClickListener||(this.documentClickListener=e=>{this.el&&!this.el.nativeElement.contains(e.target)&&(this.activeItem=null,this.cd.markForCheck(),this.unbindDocumentClickListener())},document.addEventListener("click",this.documentClickListener))}unbindDocumentClickListener(){this.documentClickListener&&(document.removeEventListener("click",this.documentClickListener),this.documentClickListener=null)}ngOnDestroy(){this.unbindDocumentClickListener()}}return
t.\u0275fac=function(e){return
new(e||t)(D(De),D(gn),D(rt))},t.\u0275cmp=z({type:t,selectors:[["p
-tieredMenuSub"]],viewQuery:function(e,n){if(1&e&&W(n$,5),2&e){let
s;V(s=B())&&(n.sublistViewChild=s.first)}},hostAttrs:[1,"p-element"],inputs:{item:"item",root:"root",autoDisplay:"autoDisplay",autoZIndex:"autoZIndex",baseZIndex:"baseZIndex",mobileActive:"mobileActive",popup:"popup",parentActive:"parentActive"},outputs:{leafClick:"leafClick",keydownItem:"keydownItem"},decls:3,vars:4,consts:[[3,"ngClass"],["sublist",""],["ngFor","",3,"ngForOf"],["class","p-menu-separator",3,"ngClass",4,"ngIf"],["pTooltip","",3,"ngClass","ngStyle","class","tooltipOptions",4,"ngIf"],[1,"p-menu-separator",3,"ngClass"],["pTooltip","",3,"ngClass","ngStyle","tooltipOptions"],["listItem",""],["pRipple","",3,"target","ngClass","keydown","click","mouseenter",4,"ngIf"],["role","menuitem","pRipple","",3,"routerLink","queryParams","routerLinkActive","routerLinkActiveOptions","target","ngClass","fragment","queryParamsHandling","preserveFragment","skipLocationChange","replaceUrl","state","keydown","click","mouseen
ter",4,"ngIf"],[3,"parentActive","item","mobileActive","autoDisplay","popup","keydownItem","leafClick",4,"ngIf"],["pRipple","",3,"target","ngClass","keydown","click","mouseenter"],["class","p-menuitem-icon",3,"ngClass","ngStyle",4,"ngIf"],["class","p-menuitem-text",4,"ngIf","ngIfElse"],["htmlLabel",""],["class","p-submenu-icon
pi
pi-angle-right",4,"ngIf"],[1,"p-menuitem-icon",3,"ngClass","ngStyle"],[1,"p-menuitem-text"],[1,"p-menuitem-text",3,"innerHTML"],[1,"p-submenu-icon","pi","pi-angle-right"],["role","menuitem","pRipple","",3,"routerLink","queryParams","routerLinkActive","routerLinkActiveOptions","target","ngClass","fragment","queryParamsHandling","preserveFragment","skipLocationChange","replaceUrl","state","keydown","click","mouseenter"],["htmlRouteLabel",""],[3,"parentActive","item","mobileActive","autoDisplay","popup","keydownItem","leafClick"]],template:function(e,n){1&e&&(l(0,"ul",0,1),_(2,v$,2,2,"ng-template",2),c()),2&e&&(p("ngClass",U(2,C$,!n.root)),a(2),p("ngForOf",n.r
oot?n.item:n.item.items))},directives:[t,Le,at,Q,Kt,lt,bt,Ho,_d],encapsulation:2}),t})(),D$=(()=>{class
t{constructor(e,n,s,r,o){this.el=e,this.renderer=n,this.cd=s,this.config=r,this.overlayService=o,this.autoZIndex=!0,this.baseZIndex=0,this.showTransitionOptions=".12s
cubic-bezier(0, 0, 0.2, 1)",this.hideTransitionOptions=".1s
linear"}toggle(e){this.visible?this.hide():this.show(e),this.preventDocumentDefault=!0}show(e){this.target=e.currentTarget,this.relativeAlign=e.relativeAlign,this.visible=!0,this.parentActive=!0,this.preventDocumentDefault=!0,this.cd.markForCheck()}onOverlayClick(e){this.popup&&this.overlayService.add({originalEvent:e,target:this.el.nativeElement}),this.preventDocumentDefault=!0}onOverlayAnimationStart(e){switch(e.toState){case"visible":this.popup&&(this.container=e.element,this.moveOnTop(),this.appendOverlay(),this.alignOverlay(),this.bindDocumentClickListener(),this.bindDocumentResizeListener(),this.bindScrollListener());break;case"void":this.onOverlayHide
()}}alignOverlay(){this.relativeAlign?R.relativePosition(this.container,this.target):R.absolutePosition(this.container,this.target)}onOverlayAnimationEnd(e){"void"===e.toState&&dt.clear(e.element)}appendOverlay(){this.appendTo&&("body"===this.appendTo?document.body.appendChild(this.container):R.appendChild(this.container,this.appendTo))}restoreOverlayAppend(){this.container&&this.appendTo&&this.el.nativeElement.appendChild(this.container)}moveOnTop(){this.autoZIndex&&dt.set("menu",this.container,this.baseZIndex+this.config.zIndex.menu)}hide(){this.visible=!1,this.relativeAlign=!1,this.parentActive=!1,this.cd.markForCheck()}onWindowResize(){this.hide()}onLeafClick(){this.popup&&this.hide(),this.unbindDocumentClickListener()}bindDocumentClickListener(){this.documentClickListener||(this.documentClickListener=this.renderer.listen(this.el?this.el.nativeElement.ownerDocument:"document","click",()=>{!this.preventDocumentDefault&&this.popup&&this.hide(),this.preventDocumentDefault=!1}))}unb
indDocumentClickListener(){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.documentResizeListener),this.documentResizeListener=null)}bindScrollListener(){this.scrollHandler||(this.scrollHandler=new
Qs(this.target,()=>{this.visible&&this.hide()})),this.scrollHandler.bindScrollListener()}unbindScrollListener(){this.scrollHandler&&this.scrollHandler.unbindScrollListener()}onOverlayHide(){this.unbindDocumentClickListener(),this.unbindDocumentResizeListener(),this.unbindScrollListener(),this.preventDocumentDefault=!1,this.cd.destroyed||(this.target=null)}ngOnDestroy(){this.popup&&(this.scrollHandler&&(this.scrollHandler.destroy(),this.scrollHandler=null),this.container&&this.autoZIndex&&dt.clear(th
is.container),this.restoreOverlayAppend(),this.onOverlayHide())}}return
t.\u0275fac=function(e){return
new(e||t)(D(De),D(gn),D(rt),D(zn),D(Ks))},t.\u0275cmp=z({type:t,selectors:[["p-tieredMenu"]],hostAttrs:[1,"p-element"],inputs:{model:"model",popup:"popup",style:"style",styleClass:"styleClass",appendTo:"appendTo",autoZIndex:"autoZIndex",baseZIndex:"baseZIndex",autoDisplay:"autoDisplay",showTransitionOptions:"showTransitionOptions",hideTransitionOptions:"hideTransitionOptions"},decls:1,vars:1,consts:[[3,"ngClass","class","ngStyle","click",4,"ngIf"],[3,"ngClass","ngStyle","click"],["root","root",3,"item","parentActive","baseZIndex","autoZIndex","autoDisplay","popup","leafClick"]],template:function(e,n){1&e&&_(0,S$,2,19,"div",0),2&e&&p("ngIf",!n.popup||n.visible)},directives:[x$,Q,Le,lt],styles:[".p-tieredmenu-overlay{position:absolute;top:0;left:0}.p-tieredmenu
ul{margin:0;padding:0;list-style:none}.p-tieredmenu
.p-submenu-list{position:absolute;min-width:100%;z-index:1;display:none}
.p-tieredmenu
.p-menuitem-link{cursor:pointer;display:flex;align-items:center;text-decoration:none;overflow:hidden;position:relative}.p-tieredmenu
.p-menuitem-text{line-height:1}.p-tieredmenu .p-menuitem{position:relative}.p-tieredmenu
.p-menuitem-link .p-submenu-icon{margin-left:auto}.p-tieredmenu
.p-menuitem-active>p-tieredmenusub>.p-submenu-list{display:block;left:100%;top:0}.p-tieredmenu
.p-menuitem-active>p-tieredmenusub>.p-submenu-list.p-submenu-list-flipped{left:-100%}\n"],encapsulation:2,data:{animation:[wi("overlayAnimation",[Lt(":enter",[it({opacity:0,transform:"scaleY(0.8)"}),kt("{{showTransitionParams}}")]),Lt(":leave",[kt("{{hideTransitionParams}}",it({opacity:0}))])])]},changeDetection:0}),t})(),M$=(()=>{class
t{}return t.\u0275fac=function(e){return
new(e||t)},t.\u0275mod=he({type:t}),t.\u0275inj=ue({imports:[[Fe,vn,pn,jn],vn,jn]}),t})(),k$=(()=>{class
t{}return t.\u0275fac=function(e){return
new(e||t)},t.\u0275mod=he({type:t}),t.\u0275inj=ue({imports:[sN,gl,cT,_5,S5,
Q6,T7,D7,Zu,G7,Xu,TB,m9,y9,A9,G9,J9,Y9,pn,iq,sq,hq,kU,BU,GU,jn,JU,nz,cz,Oz,Aj,e$,t$,M$]}),t})();const
I$=["pMenuItemContent",""];function
E$(t,i){if(1&t&&k(0,"span",6),2&t){const
e=d(2);me(e.item.iconClass),p("ngClass",e.item.icon)("ngStyle",e.item.iconStyle)}}function
R$(t,i){if(1&t&&(l(0,"span",7),g(1),c()),2&t){const
e=d(2);a(1),S(e.item.label)}}function
L$(t,i){1&t&&k(0,"span",8),2&t&&p("innerHTML",d(2).item.label,Bt)}const
iS=function(t){return{"p-disabled":t}};function O$(t,i){if(1&t){const
e=I();l(0,"a",2),C("keydown",function(s){return
v(e),d().onItemKeyDown(s)})("click",function(s){v(e);const r=d();return
r.menu.itemClick(s,r.item)}),_(1,E$,1,4,"span",3),_(2,R$,2,1,"span",4),_(3,L$,1,1,"ng-template",null,5,we),c()}if(2&t){const
e=F(4),n=d();p("target",n.item.target)("ngClass",U(11,iS,n.item.disabled))("target",n.item.target),ie("href",n.item.url||null,ln)("tabindex",n.item.disabled?null:"0")("data-automationid",n.item.automationId)("title",n.item.title)("id",n.item.id),a(1)
,p("ngIf",n.item.icon),a(1),p("ngIf",!1!==n.item.escape)("ngIfElse",e)}}function
A$(t,i){1&t&&k(0,"span",12),2&t&&p("ngClass",d(2).item.icon)}function
P$(t,i){if(1&t&&(l(0,"span",7),g(1),c()),2&t){const
e=d(2);a(1),S(e.item.label)}}function
F$(t,i){1&t&&k(0,"span",8),2&t&&p("innerHTML",d(2).item.label,Bt)}const
N$=function(){return{exact:!1}};function V$(t,i){if(1&t){const
e=I();l(0,"a",9),C("keydown",function(s){return
v(e),d().onItemKeyDown(s)})("click",function(s){v(e);const r=d();return
r.menu.itemClick(s,r.item)}),_(1,A$,1,1,"span",10),_(2,P$,2,1,"span",4),_(3,F$,1,1,"ng-template",null,11,we),c()}if(2&t){const
e=F(4),n=d();p("routerLink",n.item.routerLink)("queryParams",n.item.queryParams)("routerLinkActive","p-menuitem-link-active")("routerLinkActiveOptions",n.item.routerLinkActiveOptions||A(19,N$))("target",n.item.target)("ngClass",U(20,iS,n.item.disabled))("fragment",n.item.fragment)("queryParamsHandling",n.item.queryParamsHandling)("preserveFragment",n.item.preserveFragment
)("skipLocationChange",n.item.skipLocationChange)("replaceUrl",n.item.replaceUrl)("state",n.item.state),ie("data-automationid",n.item.automationId)("id",n.item.id)("tabindex",n.item.disabled?null:"0")("title",n.item.title),a(1),p("ngIf",n.item.icon),a(1),p("ngIf",!1!==n.item.escape)("ngIfElse",e)}}const
B$=["container"],Uo=function(t){return{"p-hidden":t}};function
H$(t,i){if(1&t&&k(0,"li",8),2&t){const
e=d().$implicit;p("ngClass",U(1,Uo,!1===e.visible))}}function
q$(t,i){if(1&t&&(l(0,"span"),g(1),c()),2&t){const
e=d(2).$implicit;a(1),S(e.label)}}function
G$(t,i){1&t&&k(0,"span",12),2&t&&p("innerHTML",d(2).$implicit.label,Bt)}function
U$(t,i){if(1&t&&(l(0,"li",9),_(1,q$,2,1,"span",10),_(2,G$,1,1,"ng-template",null,11,we),c()),2&t){const
e=F(3),n=d().$implicit;p("ngClass",U(5,Uo,!1===n.visible))("tooltipOptions",n.tooltipOptions),ie("data-automationid",n.automationId),a(1),p("ngIf",!1!==n.escape)("ngIfElse",e)}}function
z$(t,i){if(1&t&&k(0,"li",8),2&t){const
e=d().$implicit,n=d().$im
plicit;p("ngClass",U(1,Uo,!1===e.visible||!1===n.visible))}}function
j$(t,i){if(1&t&&k(0,"li",14),2&t){const
e=d().$implicit,n=d().$implicit;me(e.styleClass),p("pMenuItemContent",e)("ngClass",U(6,Uo,!1===e.visible||!1===n.visible))("ngStyle",e.style)("tooltipOptions",e.tooltipOptions)}}function
$$(t,i){if(1&t&&(_(0,z$,1,3,"li",6),_(1,j$,1,8,"li",13)),2&t){const
e=i.$implicit;p("ngIf",e.separator),a(1),p("ngIf",!e.separator)}}function
W$(t,i){if(1&t&&(_(0,H$,1,3,"li",6),_(1,U$,4,7,"li",7),_(2,$$,2,2,"ng-template",5)),2&t){const
e=i.$implicit;p("ngIf",e.separator),a(1),p("ngIf",!e.separator),a(1),p("ngForOf",e.items)}}function
K$(t,i){1&t&&_(0,W$,3,3,"ng-template",5),2&t&&p("ngForOf",d(2).model)}function
Q$(t,i){if(1&t&&k(0,"li",8),2&t){const
e=d().$implicit;p("ngClass",U(1,Uo,!1===e.visible))}}function
J$(t,i){if(1&t&&k(0,"li",14),2&t){const
e=d().$implicit;me(e.styleClass),p("pMenuItemContent",e)("ngClass",U(6,Uo,!1===e.visible))("ngStyle",e.style)("tooltipOptions",e.tooltipOptions)
}}function
Y$(t,i){if(1&t&&(_(0,Q$,1,3,"li",6),_(1,J$,1,8,"li",13)),2&t){const
e=i.$implicit;p("ngIf",e.separator),a(1),p("ngIf",!e.separator)}}function
Z$(t,i){1&t&&_(0,Y$,2,2,"ng-template",5),2&t&&p("ngForOf",d(2).model)}const
X$=function(t){return{"p-menu
p-component":!0,"p-menu-overlay":t}},eW=function(t,i){return{showTransitionParams:t,hideTransitionParams:i}},tW=function(t){return{value:"visible",params:t}};function
nW(t,i){if(1&t){const
e=I();l(0,"div",1,2),C("click",function(s){return
v(e),d().onOverlayClick(s)})("(a)overlayAnimation.start",function(s){return
v(e),d().onOverlayAnimationStart(s)})("(a)overlayAnimation.done",function(s){return
v(e),d().onOverlayAnimationEnd(s)}),l(2,"ul",3),_(3,K$,1,1,null,4),_(4,Z$,1,1,null,4),c()()}if(2&t){const
e=d();me(e.styleClass),p("ngClass",U(8,X$,e.popup))("ngStyle",e.style)("@overlayAnimation",U(13,tW,Ge(10,eW,e.showTransitionOptions,e.hideTransitionOptions)))("@.disabled",!0!==e.popup),a(3),p("ngIf",e.hasSubMenu()),a(1),p("ngIf",!e.hasS
ubMenu())}}let iW=(()=>{class t{constructor(e){this.menu=e}onItemKeyDown(e){let
n=e.currentTarget.parentElement;switch(e.code){case"ArrowDown":var
s=this.findNextItem(n);s&&s.children[0].focus(),e.preventDefault();break;case"ArrowUp":var
r=this.findPrevItem(n);r&&r.children[0].focus(),e.preventDefault();break;case"Space":case"Enter":n&&!R.hasClass(n,"p-disabled")&&n.children[0].click(),e.preventDefault()}}findNextItem(e){let
n=e.nextElementSibling;return
n?R.hasClass(n,"p-disabled")||!R.hasClass(n,"p-menuitem")?this.findNextItem(n):n:null}findPrevItem(e){let
n=e.previousElementSibling;return
n?R.hasClass(n,"p-disabled")||!R.hasClass(n,"p-menuitem")?this.findPrevItem(n):n:null}}return
t.\u0275fac=function(e){return
new(e||t)(D(je(()=>sS)))},t.\u0275cmp=z({type:t,selectors:[["","pMenuItemContent",""]],hostAttrs:[1,"p-element"],inputs:{item:["pMenuItemContent","item"]},attrs:I$,decls:2,vars:2,consts:[["class","p-menuitem-link","role","menuitem",3,"target","ngClass","keydown","click",4,
"ngIf"],["class","p-menuitem-link","role","menuitem","pRipple","",3,"routerLink","queryParams","routerLinkActive","routerLinkActiveOptions","target","ngClass","fragment","queryParamsHandling","preserveFragment","skipLocationChange","replaceUrl","state","keydown","click",4,"ngIf"],["role","menuitem",1,"p-menuitem-link",3,"target","ngClass","keydown","click"],["class","p-menuitem-icon",3,"ngClass","class","ngStyle",4,"ngIf"],["class","p-menuitem-text",4,"ngIf","ngIfElse"],["htmlLabel",""],[1,"p-menuitem-icon",3,"ngClass","ngStyle"],[1,"p-menuitem-text"],[1,"p-menuitem-text",3,"innerHTML"],["role","menuitem","pRipple","",1,"p-menuitem-link",3,"routerLink","queryParams","routerLinkActive","routerLinkActiveOptions","target","ngClass","fragment","queryParamsHandling","preserveFragment","skipLocationChange","replaceUrl","state","keydown","click"],["class","p-menuitem-icon",3,"ngClass",4,"ngIf"],["htmlRouteLabel",""],[1,"p-menuitem-icon",3,"ngClass"]],template:function(e,n){1&e&&(_(0,O$,5,1
3,"a",0),_(1,V$,5,22,"a",1)),2&e&&(p("ngIf",!n.item.routerLink),a(1),p("ngIf",n.item.routerLink))},directives:[Q,Le,lt,Ho,bt,_d],encapsulation:2}),t})(),sS=(()=>{class
t{constructor(e,n,s,r,o){this.el=e,this.renderer=n,this.cd=s,this.config=r,this.overlayService=o,this.autoZIndex=!0,this.baseZIndex=0,this.showTransitionOptions=".12s
cubic-bezier(0, 0, 0.2, 1)",this.hideTransitionOptions=".1s
linear",this.onShow=new H,this.onHide=new
H}toggle(e){this.visible?this.hide():this.show(e),this.preventDocumentDefault=!0}show(e){this.target=e.currentTarget,this.relativeAlign=e.relativeAlign,this.visible=!0,this.preventDocumentDefault=!0,this.cd.markForCheck()}onOverlayAnimationStart(e){switch(e.toState){case"visible":this.popup&&(this.container=e.element,this.moveOnTop(),this.onShow.emit({}),this.appendOverlay(),this.alignOverlay(),this.bindDocumentClickListener(),this.bindDocumentResizeListener(),this.bindScrollListener());break;case"void":this.onOverlayHide(),this.onHide.emit({})}}onOverla
yAnimationEnd(e){"void"===e.toState&&this.autoZIndex&&dt.clear(e.element)}alignOverlay(){this.relativeAlign?R.relativePosition(this.container,this.target):R.absolutePosition(this.container,this.target)}appendOverlay(){this.appendTo&&("body"===this.appendTo?document.body.appendChild(this.container):R.appendChild(this.container,this.appendTo))}restoreOverlayAppend(){this.container&&this.appendTo&&this.el.nativeElement.appendChild(this.container)}moveOnTop(){this.autoZIndex&&dt.set("menu",this.container,this.baseZIndex+this.config.zIndex.menu)}hide(){this.visible=!1,this.relativeAlign=!1,this.cd.markForCheck()}onWindowResize(){this.hide()}itemClick(e,n){n.disabled?e.preventDefault():(!n.url&&!n.routerLink&&e.preventDefault(),n.command&&n.command({originalEvent:e,item:n}),this.popup&&this.hide())}onOverlayClick(e){this.popup&&this.overlayService.add({originalEvent:e,target:this.el.nativeElement}),this.preventDocumentDefault=!0}bindDocumentClickListener(){this.documentClickListener||(thi
s.documentClickListener=this.renderer.listen(this.el?this.el.nativeElement.ownerDocument:"document","click",()=>{this.preventDocumentDefault||this.hide(),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.documentResizeListener),this.documentResizeListener=null)}bindScrollListener(){this.scrollHandler||(this.scrollHandler=new
Qs(this.target,()=>{this.visible&&this.hide()})),this.scrollHandler.bindScrollListener()}unbindScrollListener(){this.scrollHandler&&this.scrollHandler.unbindScrollListener()}onOverlayHide(){this.unbindDocumentClickListener(),this.unbindDocumentResizeListener(),this.unbindScrollListener(),this.preventDocumentDefa
ult=!1,this.cd.destroyed||(this.target=null)}ngOnDestroy(){this.popup&&(this.scrollHandler&&(this.scrollHandler.destroy(),this.scrollHandler=null),this.container&&this.autoZIndex&&dt.clear(this.container),this.restoreOverlayAppend(),this.onOverlayHide())}hasSubMenu(){if(this.model)for(var
e of this.model)if(e.items)return!0;return!1}}return t.\u0275fac=function(e){return
new(e||t)(D(De),D(gn),D(rt),D(zn),D(Ks))},t.\u0275cmp=z({type:t,selectors:[["p-menu"]],viewQuery:function(e,n){if(1&e&&W(B$,5),2&e){let
s;V(s=B())&&(n.containerViewChild=s.first)}},hostAttrs:[1,"p-element"],inputs:{model:"model",popup:"popup",style:"style",styleClass:"styleClass",appendTo:"appendTo",autoZIndex:"autoZIndex",baseZIndex:"baseZIndex",showTransitionOptions:"showTransitionOptions",hideTransitionOptions:"hideTransitionOptions"},outputs:{onShow:"onShow",onHide:"onHide"},decls:1,vars:1,consts:[[3,"ngClass","class","ngStyle","click",4,"ngIf"],[3,"ngClass","ngStyle","click"],["container",""],["role","menu",1,"
p-menu-list","p-reset"],[4,"ngIf"],["ngFor","",3,"ngForOf"],["class","p-menu-separator","role","separator",3,"ngClass",4,"ngIf"],["class","p-submenu-header","pTooltip","","role","none",3,"ngClass","tooltipOptions",4,"ngIf"],["role","separator",1,"p-menu-separator",3,"ngClass"],["pTooltip","","role","none",1,"p-submenu-header",3,"ngClass","tooltipOptions"],[4,"ngIf","ngIfElse"],["htmlSubmenuLabel",""],[3,"innerHTML"],["class","p-menuitem","pTooltip","","role","none",3,"pMenuItemContent","ngClass","ngStyle","class","tooltipOptions",4,"ngIf"],["pTooltip","","role","none",1,"p-menuitem",3,"pMenuItemContent","ngClass","ngStyle","tooltipOptions"]],template:function(e,n){1&e&&_(0,nW,5,15,"div",0),2&e&&p("ngIf",!n.popup||n.visible)},directives:[iW,Q,Le,lt,at,Kt],styles:[".p-menu-overlay{position:absolute;top:0;left:0}.p-menu
ul{margin:0;padding:0;list-style:none}.p-menu
.p-menuitem-link{cursor:pointer;display:flex;align-items:center;text-decoration:none;overflow:hidden;position:relative}.p-
menu
.p-menuitem-text{line-height:1}\n"],encapsulation:2,data:{animation:[wi("overlayAnimation",[Lt(":enter",[it({opacity:0,transform:"scaleY(0.8)"}),kt("{{showTransitionParams}}")]),Lt(":leave",[kt("{{hideTransitionParams}}",it({opacity:0}))])])]},changeDetection:0}),t})(),sW=(()=>{class
t{}return t.\u0275fac=function(e){return
new(e||t)},t.\u0275mod=he({type:t}),t.\u0275inj=ue({imports:[[Fe,vn,pn,jn],vn,jn]}),t})(),zo=(()=>{class
t{constructor(e){this.httpClient=e}GetDatabaseStatus(){return
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")}GetIPAddresses(e){let n=(new
ye).set("Protocol",e);return
this.httpClient.get("/Config/GetIPAddresses",{params:n})}GetSystemEvents(e){let
n=new ye;return
e&&n.set("Host",e),this.httpClient.get("/Config/GetSystemEvents",{params:n
})}}return t.\u0275fac=function(e){return
new(e||t)(K(Bi))},t.\u0275prov=X({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),qt=(()=>{class
t{constructor(e){this.httpClient=e}AddStorageGroupDir(e){return
this.httpClient.post("/Myth/AddStorageGroupDir",e)}BackupDatabase(){return
this.httpClient.post("/Myth/BackupDatabase",{body:void
0})}CheckDatabase(e){return
this.httpClient.post("/Myth/CheckDatabase",e)}DelayShutdown(){return
this.httpClient.post("Myth/DelayShutdown",{body:void 0})}GetBackendInfo(){return
this.httpClient.get("/Myth/GetBackendInfo")}GetConnectionInfo(e){let n=(new
ye).set("Pin",e);return
this.httpClient.get("/Myth/GetConnectionInfo",{params:n})}GetFrontends(e){let
n=(new ye).set("OnLine",e);return
this.httpClient.get("/Myth/GetFrontends",{params:n})}GetHostName(){return
this.httpClient.get("/Myth/GetHostName")}GetHosts(){return
this.httpClient.get("/Myth/GetHosts")}GetKeys(){return
this.httpClient.get("/Myth/GetKeys")}GetSetting(e){let n=(new
ye).set("HostName"
,e.HostName).set("Key",e.Key).set("Default",e.Default?e.Default:"");return
this.httpClient.get("/Myth/GetSetting",{params:n})}GetSettingList(e){let n=(new
ye).set("HostName",e);return
this.httpClient.get("/Myth/GetSettingList",{params:n})}GetStorageGroupDirs(e){return
void 0===e||void 0===e.GroupName&&void
0===e.HostName?this.httpClient.get("/Myth/GetStorageGroupDirs"):this.httpClient.post("/Myth/GetStorageGroupDirs",e)}GetDirListing(e){let
n=(new ye).set("DirName",e);return
this.httpClient.get("/Myth/GetDirListing",{params:n})}GetTimeZone(){return
this.httpClient.get("/Myth/GetTimeZone")}ManageDigestUser(e){return
this.httpClient.post("/Myth/ManageDigestUser",e)}ManageUrlProtection(e){return
this.httpClient.post("/Myth/ManageUrlProtection",e)}ProfileDelete(){return
this.httpClient.post("/Myth/ProfileDelete",{body:void 0})}ProfileSubmit(){return
this.httpClient.post("/Myth/ProfileSubmit",{body:void 0})}ProfileText(){return
this.httpClient.get("/Myth/ProfileText")}ProfileURL(){return
this.httpClient.get("/Myth/ProfileURL")}ProfileUpdated(){return
this.httpClient.get("/Myth/ProfileUpdated")}PutSetting(e){return
this.httpClient.post("/Myth/PutSetting",e)}DeleteSetting(e){return
this.httpClient.post("/Myth/DeleteSetting",e)}RemoveStorageGroupDir(e){return
this.httpClient.post("/Myth/RemoveStorageGroupDir",e)}SetConnectionInfo(e){return
this.httpClient.post("/Myth/SetConnectionInfo",e)}TestDBSettings(e){return
this.httpClient.post("/Myth/TestDBSettings",e)}ManageScheduler(e){return
this.httpClient.post("/Myth/ManageScheduler",e)}Shutdown(e){return
this.httpClient.post("/Myth/Shutdown",e)}}return t.\u0275fac=function(e){return
new(e||t)(K(Bi))},t.\u0275prov=X({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),xd=(()=>{class
t{constructor(e,n){this.configService=e,this.mythService=n,this.m_wizardData={Country:{Code:"",Country:"",NativeCountry:"",Image:""},Language:{Code:"",Language:"",NativeLanguage:"",Image:""},Database:{Host:"localhost",Port:3306,UserName:"myth
tv",Password:"mythtv",Ping:!1,Name:"mythconverg",Type:"QMYSQL",LocalHostName:"my-unique-identifier-goes-here",LocalEnabled:!1,DoTest:!0,WOLEnabled:!1,WOLReconnect:0,WOLRetry:0,WOLCommand:""},DatabaseStatus:{DatabaseStatus:{Host:"",Port:0,UserName:"",Password:"",Ping:!1,Name:"",Type:"",LocalHostName:"",LocalEnabled:!1,Connected:!1,HaveDatabase:!1,SchemaVersion:0,WOLEnabled:!1,WOLReconnect:0,WOLRetry:0,WOLCommand:""}}},this.m_topElement=null,this.m_hostName="",this.m_languageSetting="",this.m_languages=[],this.m_countrySetting="",this.m_countries=[],this.fullMenu=[],this.dbSetupMenu=[],this.wizardItems=[],this.mythService.GetHostName().subscribe(s=>{this.m_hostName=s.String})}ngOnInit(){}Init(){this.initDatabaseStatus(),this.initLanguages()}getWizardData(){return
this.Init(),this.m_wizardData}initDatabaseStatus(){this.dbPromise=new
Promise((e,n)=>{this.configService.GetDatabaseStatus().subscribe(s=>{this.m_wizardData.DatabaseStatus=s,this.m_wizardData.Database.Host=s.DatabaseStatus.Ho
st,this.m_wizardData.Database.Port=s.DatabaseStatus.Port,this.m_wizardData.Database.UserName=s.DatabaseStatus.UserName,this.m_wizardData.Database.Password=s.DatabaseStatus.Password,this.m_wizardData.Database.Name=s.DatabaseStatus.Name,this.m_wizardData.Database.LocalEnabled=s.DatabaseStatus.LocalEnabled,this.m_wizardData.Database.LocalHostName=s.DatabaseStatus.LocalHostName,this.m_wizardData.Database.WOLEnabled=s.DatabaseStatus.WOLEnabled,this.m_wizardData.Database.WOLReconnect=s.DatabaseStatus.WOLReconnect,this.m_wizardData.Database.WOLRetry=s.DatabaseStatus.WOLRetry,this.m_wizardData.Database.WOLCommand=s.DatabaseStatus.WOLCommand,e(!0)},s=>{console.log("Failed
to get database
status",s.statusText),n(!0)})})}initLanguages(){this.configService.GetCountries().subscribe(e=>{this.m_countries=e.CountryList.Countries,this.initCountry()}),this.configService.GetLanguages().subscribe(e=>{this.m_languages=e.LanguageList.Languages,this.initLanguage()})}initCountry(){this.mythService.GetSetti
ng({HostName:"_GLOBAL_",Key:"Country",Default:"US"}).subscribe(e=>{this.m_wizardData.Country=this.findCountryByCode(e.String)})}findCountryByCode(e){for(var
n=0;n<this.m_countries.length;n++)if(this.m_countries[n].Code===e)return
this.m_countries[n];return
this.m_countries[0]}initLanguage(){this.mythService.GetSetting({HostName:"_GLOBAL_",Key:"Language",Default:"en_US"}).subscribe(e=>{this.m_wizardData.Language=this.findLanguageByCode(e.String)})}findLanguageByCode(e){for(var
n=0;n<this.m_languages.length;n++)if(this.m_languages[n].Code===e)return
this.m_languages[n];return
this.m_languages[0]}updateDatabaseStatus(){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)(K(zo),K(qt))},t.\u0275prov=X({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),Me=(()=>{class
t{constructor(e,n){this.mythService=e,this.translate=n,this.m_hostName="
",this.m_initialized=!1,this.requesterForm=null,this.m_HostAddressData={successCount:0,errorCount:0,thisHostName:this.m_hostName,BackendServerPort:6543,BackendStatusPort:6544,SecurityPin:"0000",AllowConnFromAll:!1,ListenOnAllIps:!0,BackendServerIP:"127.0.0.1",BackendServerIP6:"::1",AllowLinkLocal:!0,BackendServerAddr:"",IsMasterBackend:!0,MasterServerName:this.m_hostName},this.HostAddressObs={next:s=>{s.bool?this.m_HostAddressData.successCount++:(this.m_HostAddressData.errorCount++,this.requesterForm&&this.requesterForm.form.markAsDirty())},error:s=>{console.error(s),this.m_HostAddressData.errorCount++,this.requesterForm&&this.requesterForm.form.markAsDirty()}},this.JobQCommandsObs={next:s=>{s.bool?this.m_JobQCommands.successCount++:(this.m_JobQCommands.errorCount++,this.requesterForm&&this.requesterForm.form.markAsDirty())},error:s=>{console.error(s),this.m_JobQCommands.errorCount++,this.requesterForm&&this.requesterForm.form.markAsDirty()}},this.currentForm=null,this.schedulingEna
bled=!0,this.isDatabaseIgnored=!1,this.DBTimezoneSupport=!1,this.WebOnlyStartup="",this.pageType=""}Init(){this.m_initialized=!0}getHostAddressData(){return
this.mythService.GetHostName().subscribe({next:e=>{this.m_hostName=e.String,this.m_HostAddressData.thisHostName=this.m_hostName,this.m_HostAddressData.MasterServerName=this.m_hostName,this.getHostSettings()},error:()=>this.m_HostAddressData.errorCount++}),this.m_HostAddressData}getHostSettings(){this.mythService.GetSetting({HostName:this.m_hostName,Key:"BackendServerPort",Default:"6543"}).subscribe({next:e=>this.m_HostAddressData.BackendServerPort=Number(e.String),error:()=>this.m_HostAddressData.errorCount++}),this.mythService.GetSetting({HostName:this.m_hostName,Key:"BackendStatusPort",Default:"6544"}).subscribe({next:e=>this.m_HostAddressData.BackendStatusPort=Number(e.String),error:()=>this.m_HostAddressData.errorCount++}),this.mythService.GetSetting({HostName:this.m_hostName,Key:"SecurityPin",Default:"0000"}).subscribe({nex
t:e=>this.m_HostAddressData.SecurityPin=e.String,error:()=>this.m_HostAddressData.errorCount++}),this.mythService.GetSetting({HostName:this.m_hostName,Key:"AllowConnFromAll",Default:"0"}).subscribe({next:e=>this.m_HostAddressData.AllowConnFromAll="1"==e.String,error:()=>this.m_HostAddressData.errorCount++}),this.mythService.GetSetting({HostName:this.m_hostName,Key:"ListenOnAllIps",Default:"1"}).subscribe({next:e=>this.m_HostAddressData.ListenOnAllIps="1"==e.String,error:()=>this.m_HostAddressData.errorCount++}),this.mythService.GetSetting({HostName:this.m_hostName,Key:"BackendServerIP"}).subscribe({next:e=>this.m_HostAddressData.BackendServerIP=e.String,error:()=>this.m_HostAddressData.errorCount++}),this.mythService.GetSetting({HostName:this.m_hostName,Key:"BackendServerIP6"}).subscribe({next:e=>this.m_HostAddressData.BackendServerIP6=e.String,error:()=>this.m_HostAddressData.errorCount++}),this.mythService.GetSetting({HostName:this.m_hostName,Key:"UseLinkLocal"}).subscribe({next:e
=>this.m_HostAddressData.AllowLinkLocal="1"==e.String,error:()=>this.m_HostAddressData.errorCount++}),this.mythService.GetSetting({HostName:this.m_hostName,Key:"BackendServerAddr"}).subscribe({next:e=>this.m_HostAddressData.BackendServerAddr=e.String,error:()=>this.m_HostAddressData.errorCount++}),this.mythService.GetSetting({HostName:"_GLOBAL_",Key:"MasterServerName",Default:this.m_hostName}).subscribe({next:e=>{this.m_HostAddressData.MasterServerName=e.String,this.m_HostAddressData.IsMasterBackend=this.m_HostAddressData.MasterServerName==this.m_hostName},error:()=>this.m_HostAddressData.errorCount++})}saveHostAddressData(e){this.requesterForm=e,this.m_HostAddressData.successCount=0,this.m_HostAddressData.errorCount=0,this.mythService.PutSetting({HostName:this.m_hostName,Key:"BackendServerPort",Value:String(this.m_HostAddressData.BackendServerPort)}).subscribe(this.HostAddressObs),this.mythService.PutSetting({HostName:this.m_hostName,Key:"BackendStatusPort",Value:String(this.m_Host
AddressData.BackendStatusPort)}).subscribe(this.HostAddressObs),this.mythService.PutSetting({HostName:this.m_hostName,Key:"SecurityPin",Value:this.m_HostAddressData.SecurityPin}).subscribe(this.HostAddressObs),this.mythService.PutSetting({HostName:this.m_hostName,Key:"AllowConnFromAll",Value:this.m_HostAddressData.AllowConnFromAll?"1":"0"}).subscribe(this.HostAddressObs),this.mythService.PutSetting({HostName:this.m_hostName,Key:"ListenOnAllIps",Value:this.m_HostAddressData.ListenOnAllIps?"1":"0"}).subscribe(this.HostAddressObs),this.mythService.PutSetting({HostName:this.m_hostName,Key:"BackendServerIP",Value:this.m_HostAddressData.BackendServerIP}).subscribe(this.HostAddressObs),this.mythService.PutSetting({HostName:this.m_hostName,Key:"BackendServerIP6",Value:this.m_HostAddressData.BackendServerIP6}).subscribe(this.HostAddressObs),this.mythService.PutSetting({HostName:this.m_hostName,Key:"AllowLinkLocal",Value:this.m_HostAddressData.AllowLinkLocal?"1":"0"}).subscribe(this.HostAddre
ssObs),this.mythService.PutSetting({HostName:this.m_hostName,Key:"BackendServerAddr",Value:this.m_HostAddressData.BackendServerAddr}).subscribe(this.HostAddressObs),this.mythService.PutSetting({HostName:"_GLOBAL_",Key:"MasterServerName",Value:this.m_HostAddressData.MasterServerName}).subscribe(this.HostAddressObs)}getLocaleData(){return
this.m_LocaleData={successCount:0,errorCount:0,TVFormat:"PAL",VbiFormat:"None",FreqTable:"us-bcast"},this.mythService.GetSetting({HostName:"_GLOBAL_",Key:"TVFormat"}).subscribe({next:e=>this.m_LocaleData.TVFormat=e.String,error:()=>this.m_LocaleData.errorCount++}),this.mythService.GetSetting({HostName:"_GLOBAL_",Key:"VbiFormat"}).subscribe({next:e=>this.m_LocaleData.VbiFormat=e.String,error:()=>this.m_LocaleData.errorCount++}),this.mythService.GetSetting({HostName:"_GLOBAL_",Key:"FreqTable"}).subscribe({next:e=>this.m_LocaleData.FreqTable=e.String,error:()=>this.m_LocaleData.errorCount++}),this.m_LocaleData}getSetupData(){return
this.getHostAddressDa
ta(),this.getLocaleData(),this.m_setupData={General:{HostAddress:this.m_HostAddressData,Locale:this.m_LocaleData}},this.m_setupData}parseTime(e,n){let
s=n.split(":");e.setHours(Number(s[0])),e.setMinutes(Number(s[1]))}formatTime(e){let
n=e.getHours(),s=e.getMinutes(),r="";return
n<10&&(r+="0"),r+=String(n),r+=":",s<10&&(r+="0"),r+=String(s),r}getJobQCommands(){if("object"==typeof
this.m_JobQCommands)return
this.m_JobQCommands;this.m_JobQCommands={successCount:0,errorCount:0,UserJobDesc:[],UserJob:[]};for(let
e=0;e<4;e++){let
n=e+1;this.translate.get("settings.services.job_default",{num:n}).subscribe(s=>this.m_JobQCommands.UserJobDesc[e]=s),this.mythService.GetSetting({HostName:"_GLOBAL_",Key:"UserJobDesc"+n,Default:""}).subscribe({next:s=>{s.String&&s.String.length>0&&(this.m_JobQCommands.UserJobDesc[e]=s.String)},error:()=>this.m_JobQCommands.errorCount++}),this.mythService.GetSetting({HostName:"_GLOBAL_",Key:"UserJob"+n,Default:""}).subscribe({next:s=>this.m_JobQCommands.UserJob[e
]=s.String,error:()=>this.m_JobQCommands.errorCount++})}return
this.m_JobQCommands}saveJobQCommands(e){this.requesterForm=e,this.m_JobQCommands.successCount=0,this.m_JobQCommands.errorCount=0;for(let
n=0;n<4;n++){let
s=n+1;this.mythService.PutSetting({HostName:"_GLOBAL_",Key:"UserJobDesc"+s,Value:this.m_JobQCommands.UserJobDesc[n]}).subscribe(this.JobQCommandsObs),this.mythService.PutSetting({HostName:"_GLOBAL_",Key:"UserJob"+s,Value:this.m_JobQCommands.UserJob[n]}).subscribe(this.JobQCommandsObs)}}getCurrentForm(){return
this.currentForm}setCurrentForm(e){this.currentForm=e}}return
t.\u0275fac=function(e){return
new(e||t)(K(qt),K(Oe))},t.\u0275prov=X({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),jo=(()=>{class
t{constructor(e){this.httpClient=e}AddDontRecordSchedule(e){return
this.httpClient.post("/Dvr/AddDontRecordSchedule",e)}AddRecordSchedule(e){return
this.httpClient.post("/Dvr/AddRecordSchedule",e)}UpdateRecordSchedule(e){return
this.httpClient.post("/Dvr/UpdateRecord
Schedule",e)}RemoveRecordSchedule(e){return
this.httpClient.post("/Dvr/RemoveRecordSchedule",{RecordId:e})}AddRecordedCredits(e){return
this.httpClient.post("/Dvr/AddRecordedCredits",e)}AddRecordedProgram(e){return
this.httpClient.post("/Dvr/AddRecordedProgram",e)}AllowReRecord(e){return
this.httpClient.post("/Dvr/AllowReRecord",{RecordedId:e})}DeleteRecording(e){return
this.httpClient.post("/Dvr/DeleteRecording",e)}UnDeleteRecording(e){return
this.httpClient.post("/Dvr/UnDeleteRecording",e)}UpdateRecordedMetadata(e){return
this.httpClient.post("/Dvr/UpdateRecordedMetadata",e)}DisableRecordSchedule(e){return
this.httpClient.post("/Dvr/DisableRecordSchedule",{RecordId:e})}DupInToDescription(e){let
n=(new ye).set("DupIn",e);return
this.httpClient.get("/Dvr/DupInToDescription",{params:n})}DupInToString(e){let
n=(new ye).set("DupIn",e);return
this.httpClient.get("/Dvr/DupInToString",{params:n})}DupMethodToDescription(e){let
n=(new ye).set("DupMethod",e);return this.httpClient.get("/Dvr/
DupMethodToDescription",{params:n})}DupMethodToString(e){let n=(new
ye).set("DupMethod",e);return
this.httpClient.get("/Dvr/DupMethodToString",{params:n})}EnableRecordSchedule(e){return
this.httpClient.post("/Dvr/EnableRecordSchedule",e)}GetConflictList(e){let
n=(new
ye).set("StartIndex",e.StartIndex).set("Count",e.Count).set("RecordId",e.RecordId);return
this.httpClient.get("/Dvr/GetConflictList",{params:n})}GetEncoderList(){return
this.httpClient.get("/Dvr/GetEncoderList")}GetExpiringList(e){let n=(new
ye).set("StartIndex",e.StartIndex).set("Count",e.Count);return
this.httpClient.get("/Dvr/GetExpiringList",{params:n})}GetInputList(){return
this.httpClient.get("/Dvr/GetInputList")}GetLastPlayPos(e){let n=(new
ye).set("RecordedId",e.RecordedId).set("ChanId",e.ChanId).set("StartTime",e.StartTime).set("OffsetType",e.OffsetType);return
this.httpClient.get("/Dvr/GetLastPlayPos",{params:n})}GetOldRecordedList(e){let
n=(new
ye).set("Descending",e.Descending).set("StartIndex",e.StartIndex)
.set("Count",e.Count).set("StartTime",e.StartTime).set("EndTime",e.EndTime).set("Title",e.Title).set("SeriesId",e.SeriesId).set("RecordId",e.RecordId).set("Sort",e.Sort);return
this.httpClient.get("/Dvr/GetOldRecordedList",{params:n})}GetPlayGroupList(){return
this.httpClient.get("/Dvr/GetPlayGroupList")}GetProgramCategories(e){return(new
ye).set("OnlyRecorded",e),this.httpClient.get("/Dvr/GetProgramCategories")}GetRecGroupList(){return
this.httpClient.get("/Dvr/GetRecGroupList")}GetRecRuleFilterList(){return
this.httpClient.get("/Dvr/GetRecRuleFilterList")}GetRecStorageGroupList(){return
this.httpClient.get("/Dvr/GetRecStorageGroupList")}GetRecordSchedule(e){let
n=new ye;for(const[s,r]of Object.entries(e))n=n.set(s,r);return
this.httpClient.get("/Dvr/GetRecordSchedule",{params:n})}GetRecordScheduleList(e){let
n=new ye;for(const[s,r]of Object.entries(e))n=n.set(s,r);return
this.httpClient.get("/Dvr/GetRecordScheduleList",{params:n})}GetRecorded(e){let
n=new ye;for(const[s,r]of Objec
t.entries(e))n=n.set(s,r);return
this.httpClient.get("/Dvr/GetRecorded",{params:n})}GetRecordedList(e){let n=new
ye;for(const[s,r]of Object.entries(e))n=n.set(s,r);return
this.httpClient.get("/Dvr/GetRecordedList",{params:n})}GetUpcomingList(e){let
n=new ye;for(const[s,r]of Object.entries(e))n=n.set(s,r);return
this.httpClient.get("/Dvr/GetUpcomingList",{params:n})}RecStatusToString(e){let
n=(new ye).set("RecStatus",e);return
this.httpClient.get("/Dvr/RecStatusToString",{params:n})}ManageJobQueue(e){return
this.httpClient.post("/Dvr/ManageJobQueue",e)}StopRecording(e){return
this.httpClient.post("/Dvr/StopRecording",{RecordedId:e})}}return
t.\u0275fac=function(e){return
new(e||t)(K(Bi))},t.\u0275prov=X({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();function
rW(t,i){if(1&t&&(l(0,"div",9),k(1,"p-message",10),m(2,"translate"),c()),2&t){const
e=d();a(1),x("text",f(2,2,"settings.main.webonly."+e.setupService.WebOnlyStartup)),p("styleClass","font-bold")}}function
oW(t,i){1&t&&(k(0
,"p-message",10),m(1,"translate")),2&t&&(x("text",f(1,2,"settings.main.mustenable")),p("styleClass","font-bold"))}function
aW(t,i){1&t&&(k(0,"p-message",10),m(1,"translate")),2&t&&(x("text",f(1,2,"settings.main.mustrestart")),p("styleClass","font-bold"))}function
lW(t,i){if(1&t&&(l(0,"div",9),_(1,oW,2,4,"p-message",11),_(2,aW,2,4,"ng-template",null,12,we),c()),2&t){const
e=F(3),n=d();a(1),p("ngIf",n.setupService.schedulingEnabled)("ngIfElse",e)}}function
cW(t,i){if(1&t){const
e=I();l(0,"div",13)(1,"div",14)(2,"p-button",15),C("onClick",function(){return
v(e),d().disableSched()}),m(3,"translate"),c()(),l(4,"div",14),g(5),m(6,"translate"),c()()}2&t&&(a(2),x("label",f(3,2,"settings.main.enableupdates_label")),a(3),S(f(6,4,"settings.main.enableupdates_desc")))}function
uW(t,i){1&t&&(l(0,"div",14)(1,"div",17),g(2),m(3,"translate"),c()()),2&t&&(a(2),S(f(3,1,"settings.main.restart_desc")))}function
dW(t,i){1&t&&(l(0,"div",14),g(1),m(2,"translate"),c()),2&t&&(a(1),T("
",f(2,1,"settings.main
.slave_enabled"),""))}function pW(t,i){if(1&t){const
e=I();l(0,"div",13)(1,"div",14)(2,"p-button",15),C("onClick",function(){return
v(e),d().restart()}),m(3,"translate"),c()(),_(4,uW,4,3,"div",16),_(5,dW,3,3,"div",16),c()}if(2&t){const
e=d();a(2),x("label",f(3,3,"WEBONLYPARM"==e.setupService.WebOnlyStartup?"settings.main.shutdown_label":"settings.main.restart_label")),a(2),p("ngIf",!e.masterServerName||!e.hostName||e.masterServerName==e.hostName),a(1),p("ngIf",e.masterServerName&&e.hostName&&e.masterServerName!=e.hostName)}}const
hW=function(t,i,e){return{Title:t,StartTime:i,Status:e}};function
mW(t,i){if(1&t&&(l(0,"small",18),g(1),m(2,"translate"),c()),2&t){const
e=d();a(1),T("
",Dt(2,1,"settings.main.upcomingrec",Qt(4,hW,e.upComing[0].Title,e.recStartTime,e.recStatusDesc)),"
")}}function
fW(t,i){1&t&&(l(0,"div")(1,"p"),g(2),m(3,"translate"),c(),l(4,"p"),g(5),m(6,"translate"),c()()),2&t&&(a(2),T("",f(3,2,"settings.main.slave_instructions"),"
"),a(3),T("",f(6,4,"settings.main.slave_
warning")," "))}function
gW(t,i){1&t&&k(0,"p-progressSpinner")}function
_W(t,i){1&t&&(k(0,"p-message",19),m(1,"translate")),2&t&&x("text",f(1,1,"settings.main.restarting"))}function
bW(t,i){1&t&&(k(0,"p-message",20),m(1,"translate")),2&t&&x("text",f(1,1,"common.networkfail"))}let
vW=(()=>{class
t{constructor(e,n,s,r,o,u){this.mythService=e,this.setupService=n,this.dvrService=s,this.wizardService=r,this.messageService=o,this.translate=u,this.errorCount=0,this.retryCount=0,this.upComing=[],this.recStatusDesc="",this.recStartTime="",this.ready=!1,this.delay=0,this.busy=!1,this.hostName="",this.masterServerName="",this.getBackendInfo(),this.refreshInfo()}refreshInfo(){setTimeout(()=>{this.getBackendInfo(),this.refreshInfo()},12e4)}getBackendInfo(){0==this.retryCount&&(this.errorCount=0),this.ready=!1,this.recStatusDesc="",this.recStartTime="",this.upComing=[],this.mythService.GetHostName().subscribe({next:e=>{this.hostName=e.String,this.mythService.GetSetting({HostName:"_GLOBAL_",Key:"M
asterServerName",Default:this.hostName}).subscribe({next:n=>{this.masterServerName=n.String},error:()=>this.errorCount++})},error:()=>this.errorCount++}),this.mythService.GetBackendInfo().subscribe({next:e=>{this.setupService.schedulingEnabled=e.BackendInfo.Env.SchedulingEnabled,this.setupService.isDatabaseIgnored=e.BackendInfo.Env.IsDatabaseIgnored,this.setupService.DBTimezoneSupport=e.BackendInfo.Env.DBTimezoneSupport,this.setupService.WebOnlyStartup=e.BackendInfo.Env.WebOnlyStartup,this.wizardService.wizardItems=this.setupService.isDatabaseIgnored?this.wizardService.dbSetupMenu:this.wizardService.fullMenu,this.wizardService.getWizardData(),this.retryCount>0&&this.errorCount>0?(this.retryCount=0,this.errorCount=0):this.retryCount>0&&0==this.errorCount&&setTimeout(()=>this.getBackendInfo(),2e3),0==this.retryCount&&(setTimeout(()=>this.getUpcoming(),this.delay),this.delay=0)},error:()=>{this.setupService.schedulingEnabled=!0,this.errorCount++,this.errorCount<this.retryCount?setTimeo
ut(()=>this.getBackendInfo(),2e3):this.retryCount=0}})}getUpcoming(){this.errorCount=0,this.dvrService.GetUpcomingList({Count:1}).subscribe({next:e=>{if(this.upComing=e.ProgramList.Programs,this.ready=!0,this.upComing.length>0){this.dvrService.RecStatusToString(this.upComing[0].Recording.Status).subscribe({next:s=>this.recStatusDesc=s.String,error:()=>this.errorCount++});var
n=new
Date(this.upComing[0].Recording.StartTs);this.recStartTime=n.toLocaleString()}},error:()=>this.errorCount++})}disableSched(){this.mythService.ManageScheduler({Disable:!0}).subscribe({next:e=>this.getBackendInfo(),error:()=>this.errorCount++})}restart(){let
e="WEBONLYPARM"!=this.setupService.WebOnlyStartup;this.mythService.Shutdown({Restart:e}).subscribe({next:n=>{n.bool?(this.retryCount=e?30:9999,this.getBackendInfo()):this.errorCount++},error:()=>this.errorCount++}),this.delay=5e3}ngOnInit(){}}return
t.\u0275fac=function(e){return
new(e||t)(D(qt),D(Me),D(jo),D(xd),D(Gi),D(Oe))},t.\u0275cmp=z({type:t,selec
tors:[["app-backend-warning"]],features:[Pe([Gi])],decls:15,vars:9,consts:[[1,"block","card","w-full"],[1,"block"],[1,"m-5"],["class","flex
mb-3",4,"ngIf"],["class","flex",4,"ngIf"],["class","pb-0
m-0",4,"ngIf"],[4,"ngIf"],["severity","info",3,"text",4,"ngIf"],["severity","error",3,"text",4,"ngIf"],[1,"flex","mb-3"],["severity","warn",3,"styleClass","text"],["severity","warn",3,"styleClass","text",4,"ngIf","ngIfElse"],["mustrestart",""],[1,"flex"],[1,"flex","align-items-center"],["icon","pi
pi-save","iconPos","left",1,"pr-5","pb-1","pt-0","m-0",3,"label","onClick"],["class","flex
align-items-center",4,"ngIf"],[1,"text-pink-500"],[1,"pb-0","m-0"],["severity","info",3,"text"],["severity","error",3,"text"]],template:function(e,n){1&e&&(l(0,"div",0)(1,"div",1)(2,"p-card",2),_(3,rW,3,4,"div",3),_(4,lW,4,2,"div",3),_(5,cW,7,6,"div",4),_(6,pW,6,5,"div",4),l(7,"div"),_(8,mW,3,8,"small",5),c(),_(9,fW,7,6,"div",6),l(10,"div"),_(11,gW,1,0,"p-progressSpinner",6),_(12,_W,2,3,"p-message",7),l(13,
"p"),_(14,bW,2,3,"p-message",8),c()()()()()),2&e&&(a(3),p("ngIf",0==n.retryCount&&"NONE"!=n.setupService.WebOnlyStartup),a(1),p("ngIf",0==n.retryCount),a(1),p("ngIf",n.setupService.schedulingEnabled&&0==n.retryCount),a(1),p("ngIf",!n.setupService.schedulingEnabled&&0==n.retryCount),a(2),p("ngIf",n.upComing.length>0),a(1),p("ngIf",n.masterServerName&&n.hostName&&n.masterServerName!=n.hostName&&0==n.retryCount),a(2),p("ngIf",n.retryCount>0),a(1),p("ngIf",n.retryCount>0),a(2),p("ngIf",!n.setupService.isDatabaseIgnored&&n.errorCount>0&&0==n.retryCount))},directives:[Ne,Q,qe,ve,Go],pipes:[ce],styles:[""]}),t})();const
CW=["top"];let rS=(()=>{class
t{constructor(e,n,s){this.wizardService=e,this.setupService=n,this.translate=s,this.fullMenu=[],this.dbSetupMenu=[],this.activeIndex=0,n.pageType="S"}ngOnInit(){this.translate.get("setupwizard.steps.selectlanguage").subscribe(e=>{this.fullMenu=[{label:this.translate.instant("setupwizard.steps.dbsetup"),routerLink:"dbsetup"},{label:this.translat
e.instant("setupwizard.steps.selectlanguage"),routerLink:"selectlanguage"},{label:this.translate.instant("setupwizard.steps.general"),routerLink:"general"},{label:this.translate.instant("setupwizard.steps.capture_cards"),routerLink:"capture-cards"},{label:this.translate.instant("setupwizard.steps.recording_profiles"),routerLink:"recording-profiles"},{label:this.translate.instant("setupwizard.steps.video_sources"),routerLink:"video-sources"},{label:this.translate.instant("setupwizard.steps.input_connections"),routerLink:"input-connections"},{label:this.translate.instant("setupwizard.steps.channel_editor"),routerLink:"channel-editor"},{label:this.translate.instant("setupwizard.steps.storage_groups"),routerLink:"storage-groups"},{label:this.translate.instant("setupwizard.steps.system_events"),routerLink:"system-events"}],this.wizardService.fullMenu=this.fullMenu,this.activeItem=this.fullMenu[0],this.dbSetupMenu=[this.fullMenu[0]],this.wizardService.dbSetupMenu=this.dbSetupMenu,this.wiz
ardService.wizardItems=this.wizardService.fullMenu})}ngAfterViewInit(){this.wizardService.m_topElement=this.topElement}}return
t.\u0275fac=function(e){return
new(e||t)(D(xd),D(Me),D(Oe))},t.\u0275cmp=z({type:t,selectors:[["app-settings"]],viewQuery:function(e,n){if(1&e&&W(CW,5),2&e){let
s;V(s=B())&&(n.topElement=s.first)}},decls:17,vars:12,consts:[["top",""],[1,"content-section","implementation"],[1,"card"],[1,"flex","flex-row"],["pButton","","pRipple","","icon","pi
pi-angle-double-left",1,"p-button-text","p-button-primary",3,"pTooltip","click"],[1,"col-11"],[3,"model","activeItem","scrollable"],["menu",""],["pButton","","pRipple","","icon","pi
pi-angle-double-right",1,"p-button-text","p-button-primary",3,"pTooltip","click"]],template:function(e,n){if(1&e){const
s=I();k(0,"span",null,0),l(2,"div",1)(3,"h1"),g(4),m(5,"translate"),c(),l(6,"div",2)(7,"div",3)(8,"button",4),C("click",function(){return
v(s),F(12).navBackward()}),m(9,"translate"),c(),l(10,"div",5),k(11,"p-tabMenu",6,7),c(
),l(13,"button",8),C("click",function(){return
v(s),F(12).navForward()}),m(14,"translate"),c()()(),k(15,"app-backend-warning")(16,"router-outlet"),c()}2&e&&(a(4),S(f(5,6,"settings.main.title")),a(4),x("pTooltip",f(9,8,"dashboard.scrolltabsleft")),a(3),p("model",n.wizardService.wizardItems)("activeItem",n.activeItem)("scrollable",!1),a(2),x("pTooltip",f(14,10,"dashboard.scrolltabsright")))},directives:[On,bt,Kt,J2,vW,Ml],pipes:[ce],styles:['.warning[_ngcontent-%COMP%]{color:#cc8925;background-color:#fff2e2}.connected[_ngcontent-%COMP%]{color:#1ea97c;background-color:#e4f8f0}.medium-width[_ngcontent-%COMP%]{width:"600"}']}),t})();function
yW(t,i){if(1&t){const
e=I();l(0,"div"),k(1,"h1"),l(2,"div",1)(3,"button",2),C("click",function(){return
v(e),F(7).navBackward()}),m(4,"translate"),c(),l(5,"div",3),k(6,"p-tabMenu",4,5),c(),l(8,"button",6),C("click",function(){return
v(e),F(7).navForward()}),m(9,"translate"),c()(),k(10,"router-outlet"),c()}if(2&t){const
e=d();a(3),x("pTooltip",f(4,5,"
dashboard.scrolltabsleft")),a(3),p("model",e.fullMenu)("activeItem",e.activeItem)("scrollable",!1),a(2),x("pTooltip",f(9,7,"dashboard.scrolltabsright"))}}let
oS=(()=>{class
t{constructor(e,n){this.translate=e,this.setupService=n,this.translateDone=!1,this.fullMenu=[{label:"dashboard.backendStatus",routerLink:"status"},{label:"dashboard.channeleditor",routerLink:"channel-editor"},{label:"dashboard.programguide",routerLink:"program-guide"},{label:"dashboard.recordings.heading",routerLink:"recordings"},{label:"dashboard.upcoming.heading",routerLink:"upcoming"},{label:"dashboard.recrules.heading",routerLink:"recrules"},{label:"dashboard.videos.heading",routerLink:"videos"}],this.activeItem=this.fullMenu[0],n.pageType="D",this.fullMenu.forEach(s=>{s.label&&this.translate.get(s.label).subscribe(r=>{s.label=r,this.translateDone=!0})})}ngOnInit(){}}return
t.\u0275fac=function(e){return
new(e||t)(D(Oe),D(Me))},t.\u0275cmp=z({type:t,selectors:[["app-dashboard"]],decls:1,vars:1,consts:[[4,"ngI
f"],[1,"flex","flex-row"],["pButton","","pRipple","","icon","pi
pi-angle-double-left",1,"p-button-text","p-button-primary",3,"pTooltip","click"],[1,"col-11"],[3,"model","activeItem","scrollable"],["menu",""],["pButton","","pRipple","","icon","pi
pi-angle-double-right",1,"p-button-text","p-button-primary",3,"pTooltip","click"]],template:function(e,n){1&e&&_(0,yW,11,9,"div",0),2&e&&p("ngIf",n.translateDone)},directives:[Q,On,bt,Kt,J2,Ml],pipes:[ce],styles:["[_nghost-%COMP%]
.dark-panel.p-panel
.p-panel-header{background:#c0c0c0}"]}),t})(),ji=(()=>{class
t{constructor(){}canDeactivate(e,n,s,r){return!e.canDeactivate||e.canDeactivate()}}return
t.\u0275fac=function(e){return
new(e||t)},t.\u0275prov=X({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();const
wW=[{path:"dashboard",component:oS},{path:"setupwizard",component:rS}];let
TW=(()=>{class t{}return t.\u0275fac=function(e){return
new(e||t)},t.\u0275mod=he({type:t}),t.\u0275inj=ue({providers:[ji],imports:[[vn.forRoot(wW)],vn]
}),t})(),SW=(()=>{class
t{constructor(e,n){this.http=e,this.document=n}switchTheme(e){let
n=this.document.getElementById("app-theme");n&&(n.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)(K(Bi),K(Xt))},t.\u0275prov=X({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),Ll=(()=>{class
t{constructor(e){this.translate=e,this.m_showSidebar=!0,this.recStatusText={Pending:"",Failing:"",MissedFuture:"",Tuning:"",Failed:"",TunerBusy:"",LowDiskSpace:"",Cancelled:"",Missed:"",Aborted:"",Recorded:"",Recording:"",WillRecord:"",Unknown:"",DontRecord:"",PreviousRecording:"",CurrentRecording:"",EarlierShowing:"",TooManyRecordings:"",NotListed:"",Conflict:"",LaterShowing:"",Repeat:"",Inactive:"",NeverRecord:"",Offline:""},this.getTranslations()}getTranslations(){for(const[e,n]of
Object.entries(this.recStatusText))this.translate.get("data.recstatus."+e).subscribe(s=>{Objec
t.defineProperty(this.recStatusText,e,{value:s})})}toggleShowSidebar(){this.m_showSidebar=!this.m_showSidebar}showSidebar(e){this.m_showSidebar=e}}return
t.\u0275fac=function(e){return
new(e||t)(K(Oe))},t.\u0275prov=X({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();function
xW(t,i){if(1&t&&(l(0,"div"),k(1,"img",26),c()),2&t){const
e=d(2);a(1),Bn("src","images/themes/",e.m_selectedTheme.Image,"",ln)}}function
DW(t,i){if(1&t&&(l(0,"div"),k(1,"img",27),c()),2&t){const
e=d(2);a(1),Bn("src","images/locale/",e.m_selectedLanguage.Image,"",ln)}}function
MW(t,i){if(1&t){const
e=I();l(0,"div",7)(1,"div",8)(2,"a",9),C("click",function(){return
v(e),d().toggleShowSidebar()}),k(3,"i",10)(4,"span",11),c(),k(5,"img",12),l(6,"div",13)(7,"h1"),g(8),m(9,"translate"),c()()(),l(10,"div",14)(11,"button",15),C("click",function(){return
v(e),d().showTopBar=!1}),m(12,"translate"),c()(),l(13,"div",16)(14,"a",17),C("click",function(){return
v(e),d().toggleShowNavbar()}),k(15,"i",18)(16,"span",11),c(),
l(17,"ul",19)(18,"li",20)(19,"a",21),C("click",function(s){return
v(e),d(),F(5).toggle(s)}),m(20,"translate"),_(21,xW,2,1,"div",22),l(22,"span",23),g(23),m(24,"translate"),c(),k(25,"span",24),c()(),l(26,"li",20)(27,"a",25),C("click",function(s){return
v(e),d(),F(8).toggle(s)}),m(28,"translate"),_(29,DW,2,1,"div",22),l(30,"span",23),g(31),m(32,"translate"),c(),k(33,"span",24),c()()()()()}if(2&t){const
e=d();a(8),S(f(9,9,"navbar.mainheading")),a(3),x("pTooltip",f(12,11,"navbar.hide")),a(6),p("hidden",e.m_showNavbar),a(2),x("pTooltip",f(20,13,"navbar.switchTheme")),a(2),p("ngIf",e.m_selectedTheme),a(2),S(f(24,15,"navbar.switchTheme")),a(4),x("pTooltip",f(28,17,"navbar.changeLanguage")),a(2),p("ngIf",e.m_selectedLanguage),a(2),S(f(32,19,"navbar.changeLanguage"))}}function
kW(t,i){if(1&t){const
e=I();l(0,"div",28)(1,"button",29),C("click",function(){return
v(e),d().showTopBar=!0}),m(2,"translate"),c()()}2&t&&(a(1),x("pTooltip",f(2,1,"navbar.show")))}function
IW(t,i){if(1&t&&(l(0,"tr",33)
(1,"td",34)(2,"span",35),g(3),c()()()),2&t){const
e=i.$implicit;a(3),S(e.Category)}}function EW(t,i){if(1&t){const
e=I();l(0,"tr",36),C("click",function(){const r=v(e).$implicit;return
d(2).changeTheme(r)}),l(1,"td",37),k(2,"img",38),c(),l(3,"td"),g(4),c()()}if(2&t){const
n=i.$implicit;p("pSelectableRow",i.$implicit),a(2),Bn("src","images/themes/",n.Image,"",ln),p("alt",n.image),a(2),S(n.Name)}}function
RW(t,i){1&t&&(l(0,"p-table",30),_(1,IW,4,1,"ng-template",31),_(2,EW,5,4,"ng-template",32),c()),2&t&&p("value",d().m_themes$)("paginator",!1)("scrollable",!0)}function
LW(t,i){if(1&t){const
e=I();l(0,"tr",36),C("click",function(){const
r=v(e).$implicit,o=d(2);return
F(8).hide(),o.changeLanguage(r)}),l(1,"td",37),k(2,"img",38),c(),l(3,"td")(4,"pre")(5,"span",40),g(6),c(),k(7,"br"),g(8),c()()()}if(2&t){const
n=i.$implicit;p("pSelectableRow",i.$implicit),a(2),Bn("src","images/locale/",n.Image,"",ln),p("alt",n.image),a(4),S(n.Language),a(2),T("",n.NativeLanguage,"
")}}function OW(t,i){1&t
&&(l(0,"p-table",39),_(1,LW,9,5,"ng-template",32),c()),2&t&&p("value",d().m_languages)("paginator",!1)("scrollable",!0)}const
AW=function(){return{width:"350px"}},PW=function(){return{width:"450px"}};let
FW=(()=>{class
t{constructor(e,n,s,r,o,u,h){this.themeService=e,this.configService=n,this.translateService=s,this.primeconfigService=r,this.dataService=o,this.mythService=u,this.router=h,this.m_showNavbar=!0,this.showTopBar=!0,this.m_devMode=function
KR(){return
ZC=!0,YC}(),this.m_haveDatabase=!0,this.themeService.getThemes().then(b=>{this.m_themes$=b,this.m_selectedTheme=this.findThemeByName(localStorage.getItem("Theme")||"Indigo
Light"),this.themeService.switchTheme(this.m_selectedTheme.CSS)}),this.configService.GetLanguages().subscribe(b=>{this.m_languages=b.LanguageList.Languages,this.m_selectedLanguage=this.findLanguageByCode(localStorage.getItem("Language")||"en_US")}),this.mythService.GetBackendInfo().subscribe(b=>{var
y=this.router.url;b.BackendInfo.Env.IsDatabaseIgnored||!b
.BackendInfo.Env.SchedulingEnabled&&!y.startsWith("/setupwizard/")?h.navigate(["setupwizard/dbsetup"]):"/"==y&&h.navigate(["dashboard/status"])})}ngOnInit(){}findThemeByName(e){for(var
n=0;n<this.m_themes$.length;n++)if(this.m_themes$[n].Name===e)return
this.m_themes$[n];return
this.m_themes$[0]}changeTheme(e){this.m_selectedTheme=e,this.themeService.switchTheme(e.CSS),localStorage.setItem("Theme",this.m_selectedTheme.Name)}findLanguageByCode(e){for(var
n=0;n<this.m_languages.length;n++)if(this.m_languages[n].Code===e)return
this.m_languages[n];return
this.m_languages[0]}changeLanguage(e){console.log("Language changed to
",e.NativeLanguage),this.m_selectedLanguage=e,localStorage.setItem("Language",this.m_selectedLanguage.Code),this.translateService.use(this.m_selectedLanguage.Code),this.translateService.get("primeng").subscribe(n=>this.primeconfigService.setTranslation(n))}toggleShowNavbar(){this.m_showNavbar=!this.m_showNavbar}toggleShowSidebar(){this.dataService.toggleShowSidebar(
)}}return t.\u0275fac=function(e){return
new(e||t)(D(SW),D(zo),D(Oe),D(zn),D(Ll),D(qt),D(It))},t.\u0275cmp=z({type:t,selectors:[["app-navbar"]],decls:10,vars:10,consts:[[1,"flex","flex-column","relative","flex-auto"],["class","toolbar
flex justify-content-between align-items-center pm-8 surface-section relative lg:static
surface-border","style","height:
80px;",4,"ngIf","ngIfElse"],["hidden",""],[3,"showCloseIcon"],["themePanel",""],["pTemplate",""],["languagePanel",""],[1,"toolbar","flex","justify-content-between","align-items-center","pm-8","surface-section","relative","lg:static","surface-border",2,"height","80px"],[1,"toolbar","flex","align-items-left","flex-shrink-0",2,"height","80px"],["pRipple","",1,"p-ripple","p-element","my-3","mx-1","flex","align-items-center","cursor-pointer","p-3","lg:hidden","lg:justify-content-center","hover:bg-gray-800","border-round","text-300","hover:text-0","transition-duration-150","transition-colors",3,"click"],[1,"pi","pi-bars","mr-1","lg:ml-1",
"text-base","lg:text-xl"],["ng","","serve","",1,"p-ink"],["src","images/mythtv.png","alt","Image","height","80",1,"py-2","pl-1"],[1,"hidden","md:inline-flex"],[1,"toolbar","flex","flex-grow-1","align-items-end",2,"height","80px"],["pButton","","pRipple","","icon","pi
pi-angle-up",1,"p-button-text","lg:col-offset-3","p-button-secondary",3,"pTooltip","click"],[1,"pr-2","toolbar",2,"height","80px"],["pRipple","",1,"toolbar","p-ripple","p-element","my-2","mx-2","flex","align-items-center","cursor-pointer","p-3","md:hidden","md:justify-content-center","hover:bg-gray-800","border-round","text-300","hover:text-0","transition-duration-150","transition-colors",2,"height","80px",3,"click"],[1,"pi","pi-ellipsis-v","mr-1","md:mr-0","text-base","md:text-xl"],[1,"toolbar","list-none","p-0","m-0","md:flex","md:align-items-center","select-none","md:flex-row","surface-section","border-1","md:border-none","surface-border","right-0","top-100","z-2","shadow-2","md:shadow-none","absolute","md:static",3,
"hidden"],[1,"toolbar",2,"height","80px"],["pRipple","","tooltipPosition","bottom",1,"p-ripple","p-element","my-3","mx-1","flex","align-items-center","cursor-pointer","p-2","lg:justify-content-center","hover:bg-gray-800","border-round","text-300","hover:text-0","transition-duration-150","transition-colors",3,"pTooltip","click"],[4,"ngIf"],[1,"font-medium","inline","md:hidden"],[1,"p-ink"],["pRipple","","tooltipPosition","bottom",1,"p-ripple","p-element","my-3","mx-1","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,"pTooltip","click"],[1,"mr-2","lg:mr-0",2,"width","32px","height","32px",3,"src"],[1,"mr-2","lg:mr-0",2,"width","32px",3,"src"],[1,"toolbar","block","flex","flex-grow-1","justify-content-center","align-items-end",2,"height","2rem"],["pButton","","pRipple","","icon","pi
pi-angle-down",1,"p-button-text","p-button-secondary",3,"pTooltip",
"click"],["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"],["selectionMode","single","sortField","NativeLanguage","sortMode","single","scrollHeight","500px","responsiveLayout","scroll",3,"value","paginator","scrollable"],[1,"font-bold"]],template:function(e,n){if(1&e&&(l(0,"div",0),_(1,MW,34,21,"div",1),_(2,kW,3,3,"ng-template",null,2,we),c(),l(4,"p-overlayPanel",3,4),_(6,RW,3,3,"ng-template",5),c(),l(7,"p-overlayPanel",3,6),_(9,OW,2,3,"ng-template",5),c()),2&e){const
s=F(3);a(1),p("ngIf",n.showTopBar)("ngIfElse",s),a(3),q(A(8,AW)),p("showCloseIcon",!0),a(3),q(A(9,PW)),p("showCloseIcon",!0)}},directives:[Q,bt,On,Kt,q9,ne,Dn,SU,j2],pipes:[ce
],styles:[".toolbar[_ngcontent-%COMP%]{background-color:#000;color:#4682b4}.theme-image[_ngcontent-%COMP%]{width:50px}"]}),t})(),NW=(()=>{class
t{constructor(e){this.dataService=e}ngOnInit(){}}return t.\u0275fac=function(e){return
new(e||t)(D(Ll))},t.\u0275cmp=z({type:t,selectors:[["app-sidenav"]],decls:32,vars:25,consts:[[1,"navbar","flex","relative","lg:static","surface-ground"],["id","sidebar",1,"bg-gray-900","lg:block","flex-shrink-0","absolute","lg:static","left-0","top-0","z-2","border-gray-800","w-18rem","lg:w-5rem","select-none",3,"hidden"],[1,"flex","flex-column","h-full"],[1,"mt-1","select-none"],[1,"list-none","p-3","lg:py-3","lg:px-2","m-0"],[3,"routerLink","pTooltip","tooltipDisabled","click"],["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"],["pRipple","",1,"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-cog","mr-2","lg:mr-0","text-base","lg:text-xl"],[1,"pi","pi-map","mr-2","lg:mr-0","text-base","lg:text-xl"],[1,"contentarea","px-0","lg:px-3","w-full"]],template:function(e,n){1&e&&(de(0),l(1,"div",0)(2,"div",1)(3,"div",2)(4,"div",3)(5,"ul",4)(6,"li",5),C("click",function(){return
n.dataService.showSidebar(!0)}),m(7,"translate"),l(8,"a",6),k(9,"i",7),l(10,"span",8),g(11),m(12,"translate"),c(),k(13,"span",9),c()(),l(14,"li",5),C("click",function(){return
n.dataService.showSidebar(!0)}),m(15,"translate"),l(16,"a",10),k(17,"i",11),l(18,"span",8),g(19),m(20,"translate"),c(),k(21,"span",9),c()(),l(22,"li",5),C("click",function(){return
n.dataService.showSidebar(!0)}),m(23,"translate"),l(24,"
a",10),k(25,"i",12),l(26,"span",8),g(27),m(28,"translate"),c(),k(29,"span",9),c()()()()()(),l(30,"div",13),k(31,"router-outlet"),c()(),pe()),2&e&&(a(2),p("hidden",n.dataService.m_showSidebar),a(4),x("pTooltip",f(7,13,"navbar.dashboard")),p("routerLink","dashboard/status")("tooltipDisabled",!1===n.dataService.m_showSidebar),a(5),S(f(12,15,"navbar.dashboard")),a(3),x("pTooltip",f(15,17,"navbar.backendSetup")),p("routerLink","setupwizard/dbsetup")("tooltipDisabled",!1===n.dataService.m_showSidebar),a(5),S(f(20,19,"navbar.backendSetup")),a(3),x("pTooltip",f(23,21,"dashboard.programguide")),p("routerLink","dashboard/program-guide")("tooltipDisabled",!1===n.dataService.m_showSidebar),a(5),S(f(28,23,"dashboard.programguide")))},directives:[gd,Kt,bt,Ml],pipes:[ce],styles:[".sidebar[_ngcontent-%COMP%]{width:70px;height:100%;margin:0}.navbar[_ngcontent-%COMP%]{min-height:calc(100vh
- 85px);max-height:calc(100vh -
85px)}.contentarea[_ngcontent-%COMP%]{overflow:scroll;height:calc(100vh - 85px)}
"]}),t})(),VW=(()=>{class
t{constructor(e,n){this.config=e,this.translate=n,this.title="MythTV
Backend",n.setDefaultLang("en_US"),n.use(localStorage.getItem("Language")||"en_US"),n.get("primeng").subscribe(s=>this.config.setTranslation(s)),this.config.ripple=!0}}return
t.\u0275fac=function(e){return
new(e||t)(D(zn),D(Oe))},t.\u0275cmp=z({type:t,selectors:[["app-root"]],decls:2,vars:0,template:function(e,n){1&e&&k(0,"app-navbar")(1,"app-sidenav")},directives:[FW,NW],styles:[""]}),t})();const
BW=["langform"],HW=["countryrow"],qW=["languagerow"];function
GW(t,i){1&t&&(g(0),m(1,"translate")),2&t&&T("
",f(1,1,"setupwizard.localSetup")," ")}function
UW(t,i){1&t&&(g(0),m(1,"translate")),2&t&&T("
",f(1,1,"setupwizard.countryAndLanguage")," ")}function
zW(t,i){1&t&&(l(0,"h2"),g(1),m(2,"translate"),c()),2&t&&(a(1),S(f(2,1,"setupwizard.selectCountry")))}function
jW(t,i){if(1&t&&(l(0,"div",18,19),k(2,"img",20),l(3,"pre")(4,"span",21),g(5),c(),g(6),c()()),2&t){const
e=i.$implicit;ie("id",e.Code)
,a(2),Bn("src","images/locale/",e.Image,"",ln),a(3),S(e.Country),a(1),We("",null!==e.NativeCountry?"
- "+e.NativeCountry:""," (",e.Code,")")}}function
$W(t,i){if(1&t&&(l(0,"div",22),k(1,"p-message",23),m(2,"translate"),c()),2&t){const
e=d(2);a(1),La("text","",f(2,2,"setupwizard.selectedCountry"),"
",e.m_wizardData.Country.Country,"")}}function
WW(t,i){1&t&&(l(0,"div",22),k(1,"p-message",24),m(2,"translate"),c()),2&t&&(a(1),x("text",f(2,1,"setupwizard.noCountry")))}function
KW(t,i){1&t&&(l(0,"h2"),g(1),m(2,"translate"),c()),2&t&&(a(1),S(f(2,1,"setupwizard.selectLanguage")))}function
QW(t,i){if(1&t&&(l(0,"div",18,25),k(2,"img",20),l(3,"pre")(4,"span",21),g(5),c(),g(6),c()()),2&t){const
e=i.$implicit;ie("id",e.Code),a(2),Bn("src","images/locale/",e.Image,"",ln),a(3),S(e.Language),a(1),We("
- ",e.NativeLanguage," (",e.Code,")")}}function
JW(t,i){if(1&t&&(l(0,"div",22),k(1,"p-message",23),m(2,"translate"),c()),2&t){const
e=d(2);a(1),La("text","",f(2,2,"setupwizard.selectedLanguage"),"
",
e.m_wizardData.Language.NativeLanguage,"")}}function
YW(t,i){1&t&&(l(0,"div",22),k(1,"p-message",26),m(2,"translate"),c()),2&t&&(a(1),x("text",f(2,1,"setupwizard.noLanguage")))}const
aS=function(){return{"max-height":"460px","min-height":"460px"}};function
ZW(t,i){if(1&t){const
e=I();l(0,"div",8)(1,"div",9)(2,"p-listbox",10),C("ngModelChange",function(s){return
v(e),d().m_wizardData.Country=s}),_(3,zW,3,3,"ng-template",11),_(4,jW,7,5,"ng-template",12),c(),_(5,$W,3,4,"div",13),_(6,WW,3,3,"ng-template",null,14,we),c(),l(8,"div",15)(9,"p-listbox",16),C("ngModelChange",function(s){return
v(e),d().m_wizardData.Language=s}),_(10,KW,3,3,"ng-template",11),_(11,QW,7,5,"ng-template",12),c(),_(12,JW,3,4,"div",13),_(13,YW,3,3,"ng-template",null,17,we),c()()}if(2&t){const
e=F(7),n=F(14),s=d();a(2),p("options",s.m_countries)("ngModel",s.m_wizardData.Country)("multiple",!1)("filter",!0)("listStyle",A(14,aS)),a(3),p("ngIf",""!=s.m_wizardData.Country.Code)("ngIfElse",e),a(4),p("options",s.m_language
s)("ngModel",s.m_wizardData.Language)("multiple",!1)("filter",!0)("listStyle",A(15,aS)),a(3),p("ngIf",""!=s.m_wizardData.Language.Code)("ngIfElse",n)}}function
XW(t,i){1&t&&(k(0,"p-message",23),m(1,"translate")),2&t&&x("text",f(1,1,"common.savesuccess"))}function
eK(t,i){1&t&&(k(0,"p-message",24),m(1,"translate")),2&t&&x("text",f(1,1,"common.networkfail"))}function
tK(t,i){if(1&t){const
e=I();l(0,"div",27)(1,"div",28),_(2,XW,2,3,"p-message",29),_(3,eK,2,3,"p-message",30),c(),l(4,"p-button",31),C("onClick",function(){v(e);const
s=d(),r=F(2);return
s.saveForm(),r.form.markAsPristine()}),m(5,"translate"),c(),l(6,"p-button",32),C("onClick",function(){return
v(e),d().router.navigate(["setupwizard/dbsetup"])}),m(7,"translate"),c(),l(8,"p-button",33),C("onClick",function(){return
v(e),d().router.navigate(["setupwizard/general"])}),m(9,"translate"),c()()}if(2&t){const
e=d(),n=F(2);a(2),p("ngIf",e.successCount>0&&e.successCount==e.expectedCount&&0==e.errorCount&&!n.dirty),a(1),p("ngIf",e.err
orCount>0),a(1),x("label",f(5,7,"common.save")),p("disabled",!n.dirty||e.setupService.schedulingEnabled),a(2),x("label",f(7,9,"common.back")),a(2),x("label",f(9,11,"common.next")),p("disabled",""==e.m_wizardData.Country.Code||""==e.m_wizardData.Language.Code)}}let
nK=(()=>{class
t{constructor(e,n,s,r,o,u){this.router=e,this.translate=n,this.setupService=s,this.configService=r,this.wizardService=o,this.mythService=u,this.m_countries=[],this.m_languages=[],this.successCount=0,this.errorCount=0,this.expectedCount=0,this.warningText="settings.common.warning",this.saveObserver={next:h=>{h.bool?(this.successCount++,this.successCount>=this.expectedCount&&localStorage.setItem("Language",this.m_wizardData.Language.Code),this.translate.use(this.m_wizardData.Language.Code)):(this.errorCount++,this.currentForm&&this.currentForm.form.markAsDirty())},error:h=>{console.error(h),this.errorCount++,this.currentForm&&this.currentForm.form.markAsDirty()}},this.translate.get(this.warningText).subscribe(
h=>{this.warningText=h})}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(),setTimeout(()=>this.scrollIntoView(),1e3)}ngAfterViewInit(){}scrollIntoView(){if(""!=this.m_wizardData.Country.Code){const
e=this.countryRowElement.find(n=>n.nativeElement.getAttribute("id")===this.m_wizardData.Country.Code);e?e.nativeElement.scrollIntoView({behavior:"instant",inline:"start",block:"center"}):console.log("Failed
to find element by ID")}if(""!=this.m_wizardData.Language.Code){const
e=this.languageRowElement.find(n=>n.nativeElement.getAttribute("id")===this.m_wizardData.Language.Code);e&&e.nativeElement.scrollIntoView({behavior:"instant",inline:"start",block:"center"})}null!=this.wizardService.m_topElement&&this.wizardService.m_topElement.nativeElement.scrollIntoView({behavior:"instant",block:"start"})}sav
eForm(){this.successCount=0,this.errorCount=0,this.expectedCount=2,this.mythService.PutSetting({HostName:"_GLOBAL_",Key:"Country",Value:this.m_wizardData.Country.Code}).subscribe(this.saveObserver),this.mythService.PutSetting({HostName:"_GLOBAL_",Key:"Language",Value:this.m_wizardData.Language.Code}).subscribe(this.saveObserver)}confirm(e){return
oe(window.confirm(e))}canDeactivate(){return!this.currentForm||!this.currentForm.dirty||this.confirm(this.warningText)}onWindowClose(e){this.currentForm&&this.currentForm.dirty&&(e.preventDefault(),e.returnValue=!1)}}return
t.\u0275fac=function(e){return
new(e||t)(D(It),D(Oe),D(Me),D(zo),D(xd),D(qt))},t.\u0275cmp=z({type:t,selectors:[["app-selectlanguage"]],viewQuery:function(e,n){if(1&e&&(W(BW,5),W(HW,5,De),W(qW,5,De)),2&e){let
s;V(s=B())&&(n.currentForm=s.first),V(s=B())&&(n.countryRowElement=s),V(s=B())&&(n.languageRowElement=s)}},hostBindings:function(e,n){1&e&&C("beforeunload",function(r){return
n.onWindowClose(r)},!1,ni)},decls:8,vars
:0,consts:[[1,"wizard-content","m-0","md:m-3"],["name","langform",1,"mx-0","md:mx-3"],["langform","ngForm"],[1,"m-0","md:m-5"],["pTemplate","title"],["pTemplate","subtitle"],["pTemplate","content"],["pTemplate","footer"],[1,"grid","m-0","md:m-3"],[1,"col-12","md:col-6","pt-2"],["optionLabel","Country","name","countries",3,"options","ngModel","multiple","filter","listStyle","ngModelChange"],["pTemplate","header"],["pTemplate","item"],["class","pt-5",4,"ngIf","ngIfElse"],["noCountry",""],[1,"col-12","md:col-6"],["optionLabel","Language","name","languages",3,"options","ngModel","multiple","filter","listStyle","ngModelChange"],["noLanguage",""],[1,"language-item"],["countryrow",""],[1,"pr-3",2,"width","70px",3,"src"],[1,"font-bold"],[1,"pt-5"],["severity","success",3,"text"],["severity","error",3,"text"],["languagerow",""],["severity","error",1,"pt-2",3,"text"],[1,"grid","nogutter","m-5"],[1,"col-12"],["severity","success",3,"text",4,"ngIf"],["severity","error",3,"text",4,"ngIf"],["icon
","pi
pi-save","iconPos","left",1,"col","pr-1",3,"label","disabled","onClick"],["icon","pi
pi-angle-left","iconPos","left",1,"pr-3",3,"label","onClick"],["icon","pi
pi-angle-right","iconPos","right",3,"label","disabled","onClick"]],template:function(e,n){1&e&&(l(0,"div",0)(1,"form",1,2)(3,"p-card",3),_(4,GW,2,3,"ng-template",4),_(5,UW,2,3,"ng-template",5),_(6,ZW,15,16,"ng-template",6),_(7,tK,10,13,"ng-template",7),c()()())},directives:[ze,Ue,He,Ne,ne,os,Te,_e,Q,qe,ve],pipes:[ce],styles:[".language-item{display:flex;align-items:center}@media
screen and (max-width:
48rem){.p-card-body,.p-card-content,.p-accordion-content{padding:0rem!important}}\n"],encapsulation:2}),t})();class
iK{constructor(i,e){this._document=e;const
n=this._textarea=this._document.createElement("textarea"),s=n.style;s.position="fixed",s.top=s.opacity="0",s.left="-999em",n.setAttribute("aria-hidden","true"),n.value=i,this._document.body.appendChild(n)}copy(){const
i=this._textarea;let e=!1;try{if(i){const n=this._
document.activeElement;i.select(),i.setSelectionRange(0,i.value.length),e=this._document.execCommand("copy"),n&&n.focus()}}catch(n){}return
e}destroy(){const i=this._textarea;i&&(i.remove(),this._textarea=void 0)}}let
lS=(()=>{class t{constructor(e){this._document=e}copy(e){const
n=this.beginCopy(e),s=n.copy();return n.destroy(),s}beginCopy(e){return new
iK(e,this._document)}}return t.\u0275fac=function(e){return
new(e||t)(K(Xt))},t.\u0275prov=X({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();const
sK=["databaseForm"];function
rK(t,i){1&t&&(g(0),m(1,"translate")),2&t&&T("
",f(1,1,"setupwizard.databaseSetup")," ")}function
oK(t,i){1&t&&(g(0),m(1,"translate")),2&t&&T("
",f(1,1,"setupwizard.enterDBLoginDetails")," ")}function
aK(t,i){1&t&&(l(0,"div")(1,"small",42),g(2),m(3,"translate"),c()()),2&t&&(a(2),S(f(3,1,"setupwizard.IPorAddressRequired")))}function
lK(t,i){1&t&&(l(0,"div")(1,"small",43),g(2),m(3,"translate"),c()()),2&t&&(a(2),S(f(3,1,"setupwizard.portRequired")))}functio
n
cK(t,i){1&t&&(l(0,"div")(1,"small",43),g(2),m(3,"translate"),c()()),2&t&&(a(2),S(f(3,1,"setupwizard.userRequired")))}function
uK(t,i){1&t&&(l(0,"div")(1,"small",43),g(2),m(3,"translate"),c()()),2&t&&(a(2),S(f(3,1,"setupwizard.passwordRequired")))}function
dK(t,i){1&t&&(l(0,"div")(1,"small",43),g(2),m(3,"translate"),c()()),2&t&&(a(2),S(f(3,1,"setupwizard.databaseNameRequired")))}function
pK(t,i){if(1&t){const
e=I();l(0,"div",30)(1,"label",44),g(2),m(3,"translate"),c(),l(4,"input",45,46),C("ngModelChange",function(s){return
v(e),d(2).database.LocalHostName=s}),c(),l(6,"small",47),g(7),m(8,"translate"),c()()}if(2&t){const
e=d(2);a(2),S(f(3,3,"setupwizard.LocalHostName_label")),a(2),p("ngModel",e.database.LocalHostName),a(3),S(f(8,5,"setupwizard.LocalHostName_desc"))}}function
hK(t,i){if(1&t){const
e=I();l(0,"div",8)(1,"label",48),g(2),m(3,"translate"),c(),l(4,"p-inputNumber",49),C("ngModelChange",function(s){return
v(e),d(2).database.WOLReconnect=s}),c(),l(5,"small",32),g(6),m(7,"tra
nslate"),c()()}if(2&t){const e=d(2);a(2),T("
",f(3,8,"settings.vsource.WOLReconnect_label"),"
"),a(2),p("ngModel",e.database.WOLReconnect)("min",0)("max",60)("step",1)("useGrouping",!1)("showButtons",!0),a(2),T("
",f(7,10,"settings.vsource.WOLReconnect_desc")," ")}}function
mK(t,i){if(1&t){const
e=I();l(0,"div",8)(1,"label",50),g(2),m(3,"translate"),c(),l(4,"p-inputNumber",51),C("ngModelChange",function(s){return
v(e),d(2).database.WOLRetry=s}),c(),l(5,"small",32),g(6),m(7,"translate"),c()()}if(2&t){const
e=d(2);a(2),T(" ",f(3,8,"settings.vsource.WOLRetry_label"),"
"),a(2),p("ngModel",e.database.WOLRetry)("min",1)("max",10)("step",1)("useGrouping",!1)("showButtons",!0),a(2),T("
",f(7,10,"settings.vsource.WOLRetry_desc")," ")}}function
fK(t,i){if(1&t){const
e=I();l(0,"div",30)(1,"label",52),g(2),m(3,"translate"),c(),l(4,"input",53,54),C("ngModelChange",function(s){return
v(e),d(2).database.WOLCommand=s}),c(),l(6,"small",55),g(7),m(8,"translate"),c()()}if(2&t){const
e=d(2);a(2),S(f(3,
3,"setupwizard.WOLCommand_label")),a(2),p("ngModel",e.database.WOLCommand),a(3),S(f(8,5,"setupwizard.WOLCommand_desc"))}}function
gK(t,i){1&t&&(l(0,"div"),k(1,"p-message",56),m(2,"translate"),c()),2&t&&(a(1),x("text",f(2,1,"setupwizard.connectedToDatabase")))}function
_K(t,i){1&t&&(l(0,"div",57,39),k(2,"p-message",58),m(3,"translate"),c()),2&t&&(a(2),x("text",f(3,1,"setupwizard.notConnectedToDatabase")))}const
cS=function(t){return{Name:t}};function
bK(t,i){if(1&t&&(l(0,"div"),k(1,"p-message",56),m(2,"translate"),c()),2&t){const
e=d(2);a(1),x("text",Dt(2,1,"setupwizard.dbsetup.havedb",U(4,cS,e.m_wizardData.Database.Name)))}}function
vK(t,i){if(1&t&&(l(0,"div",59,40),k(2,"p-message",60),m(3,"translate"),c()),2&t){const
e=d(2);a(2),x("text",Dt(3,1,"setupwizard.dbsetup.havenotdb",U(4,cS,e.m_wizardData.Database.Name)))}}const
CK=function(t){return{SchemaVersion:t}};function
yK(t,i){if(1&t&&(l(0,"div"),k(1,"p-message",61),m(2,"translate"),c()),2&t){const
e=d(2);a(1),x("text",Dt(2,1,"setu
pwizard.dbsetup.schemaver",U(4,CK,e.m_wizardData.DatabaseStatus.DatabaseStatus.SchemaVersion)))}}function
wK(t,i){1&t&&(l(0,"div",62,40),k(2,"p-message",63),m(3,"translate"),c()),2&t&&(a(2),x("text",f(3,1,"setupwizard.databaseSchemaUnknown")))}function
TK(t,i){if(1&t){const
e=I();l(0,"div")(1,"p"),g(2),m(3,"translate"),c(),l(4,"div",68)(5,"div",69),g(6,"
Sql Server Type:
"),c(),l(7,"div",70)(8,"p-radioButton",71),C("ngModelChange",function(s){return
v(e),d(3).dbtype=s})("ngModelChange",function(){return
v(e),d(3).setCommandList()}),c(),l(9,"label",72),g(10,"MySql"),c()(),l(11,"div",73)(12,"p-radioButton",74),C("ngModelChange",function(s){return
v(e),d(3).dbtype=s})("ngModelChange",function(){return
v(e),d(3).setCommandList()}),c(),l(13,"label",75),g(14,"MariaDB"),c()()(),l(15,"table",76)(16,"tr")(17,"td",65),g(18),c(),l(19,"td",66)(20,"button",67),C("click",function(){v(e);const
s=d(3);return
s.copyToclipboard(s.commandlist)}),m(21,"translate"),c()()()(),l(22,"p"),g(23),m(24,"transl
ate"),c(),l(25,"table")(26,"tr")(27,"td",65),g(28),c(),l(29,"td",66)(30,"button",67),C("click",function(){v(e);const
s=d(3);return
s.copyToclipboard(s.mySqlCommand)}),m(31,"translate"),c()()()()()}if(2&t){const
e=d(3);a(2),T(" ",f(3,8,"setupwizard.sqlinstructions"),"
"),a(6),p("ngModel",e.dbtype),a(4),p("ngModel",e.dbtype),a(6),T("
",e.commandlist,"
"),a(2),x("pTooltip",f(21,10,"settings.common.clipboard_tooltip")),a(3),S(f(24,12,"setupwizard.runcommand")),a(5),T("
",e.mySqlCommand,"
"),a(2),x("pTooltip",f(31,14,"settings.common.clipboard_tooltip"))}}function
SK(t,i){if(1&t){const
e=I();l(0,"div")(1,"h2"),g(2),m(3,"translate"),c(),_(4,TK,32,16,"div",13),l(5,"p",64),g(6),m(7,"translate"),c(),l(8,"table")(9,"tr")(10,"td",65),g(11),c(),l(12,"td",66)(13,"button",67),C("click",function(){v(e);const
s=d(2);return
s.copyToclipboard(s.tzCommand)}),m(14,"translate"),c()()()(),l(15,"p"),g(16),m(17,"translate"),c(),l(18,"p"),g(19),m(20,"translate"),c(),l(21,"p"),g(22),m(23,"translate"),c()()}i
f(2&t){const
e=d(2);a(2),S(f(3,8,"common.instructions")),a(2),p("ngIf",e.connectionFail),a(2),S(f(7,10,"setupwizard.tztables")),a(5),T("
",e.tzCommand,"
"),a(2),x("pTooltip",f(14,12,"settings.common.clipboard_tooltip")),a(3),T("",f(17,14,"setupwizard.ignoremessages"),"
"),a(3),S(f(20,16,"setupwizard.savethis")),a(3),S(f(23,18,"setupwizard.restartbe"))}}const
xK=function(t){return{"is-invalid":t}};function DK(t,i){if(1&t){const
e=I();l(0,"div",7)(1,"div",8)(2,"label",9),g(3),m(4,"translate"),c(),l(5,"input",10,11),C("ngModelChange",function(s){return
v(e),d().database.Host=s}),c(),l(7,"small",12),g(8),m(9,"translate"),c(),_(10,aK,4,3,"div",13),c(),l(11,"div",8)(12,"label",14),g(13),m(14,"translate"),c(),l(15,"input",15,16),C("ngModelChange",function(s){return
v(e),d().database.Port=s}),c(),l(17,"small",17),g(18),m(19,"translate"),c(),_(20,lK,4,3,"div",13),c(),l(21,"div",8)(22,"label",18),g(23),m(24,"translate"),c(),l(25,"input",19,20),C("ngModelChange",function(s){return
v(e),d().dat
abase.UserName=s}),c(),l(27,"small",21),g(28),m(29,"translate"),c(),_(30,cK,4,3,"div",13),c(),l(31,"div",8)(32,"label",22),g(33),m(34,"translate"),c(),l(35,"input",23,24),C("ngModelChange",function(s){return
v(e),d().database.Password=s}),c(),l(37,"small",25),g(38),m(39,"translate"),c(),_(40,uK,4,3,"div",13),c(),l(41,"div",8)(42,"label",26),g(43),m(44,"translate"),c(),l(45,"input",27,28),C("ngModelChange",function(s){return
v(e),d().database.Name=s}),c(),l(47,"small",29),g(48),m(49,"translate"),c(),_(50,dK,4,3,"div",13),c(),l(51,"div",30)(52,"p-checkbox",31),C("ngModelChange",function(s){return
v(e),d().database.LocalEnabled=s}),m(53,"translate"),c(),l(54,"small",32),g(55),m(56,"translate"),c()(),_(57,pK,9,7,"div",33),l(58,"div",30)(59,"p-checkbox",34),C("ngModelChange",function(s){return
v(e),d().database.WOLEnabled=s}),m(60,"translate"),c(),l(61,"small",32),g(62),m(63,"translate"),c()(),_(64,hK,8,12,"div",35),_(65,mK,8,12,"div",35),_(66,fK,9,7,"div",33),c(),l(67,"div")(68,"p-butto
n",36),C("click",function(){return
v(e),d().saveForm(!1)}),m(69,"translate"),c()(),l(70,"div",37),_(71,gK,3,3,"div",38),_(72,_K,4,3,"ng-template",null,39,we),_(74,bK,3,6,"div",38),_(75,vK,4,6,"ng-template",null,40,we),_(77,yK,3,6,"div",38),_(78,wK,4,3,"ng-template",null,41,we),c(),_(80,SK,24,20,"div",13)}if(2&t){const
e=F(6),n=F(16),s=F(26),r=F(36),o=F(46),u=F(73),h=F(76),b=F(79),y=d(),w=F(2);a(3),S(f(4,42,"setupwizard.MySQLServerIP")),a(2),p("ngModel",y.database.Host)("ngClass",U(72,xK,e.invalid)),a(3),S(f(9,44,"setupwizard.ipaddress_help")),a(2),p("ngIf",e.invalid&&(e.dirty||e.touched)),a(3),S(f(14,46,"setupwizard.MySQLServerPort")),a(2),p("ngModel",y.database.Port),a(3),S(f(19,48,"setupwizard.port_help")),a(2),p("ngIf",n.invalid&&(n.dirty||n.touched)),a(3),S(f(24,50,"setupwizard.MySQLUser")),a(2),p("ngModel",y.database.UserName),a(3),S(f(29,52,"setupwizard.user_help")),a(2),p("ngIf",s.invalid&&(s.dirty||s.touched)),a(3),S(f(34,54,"setupwizard.MySQLPassword")),a(2),p("ngModel",y.d
atabase.Password),a(3),S(f(39,56,"setupwizard.password_help")),a(2),p("ngIf",r.invalid&&(r.dirty||r.touched)),a(3),S(f(44,58,"setupwizard.MySQLDatabaseName")),a(2),p("ngModel",y.database.Name),a(3),S(f(49,60,"setupwizard.dbname_help")),a(2),p("ngIf",o.invalid&&(o.dirty||o.touched)),a(2),x("label",f(53,62,"setupwizard.LocalEnabled_label")),p("ngModel",y.database.LocalEnabled)("binary",!0),a(3),T("
",f(56,64,"setupwizard.LocalEnabled_desc"),"
"),a(2),p("ngIf",y.database.LocalEnabled),a(2),x("label",f(60,66,"setupwizard.WOLEnabled_label")),p("ngModel",y.database.WOLEnabled)("binary",!0),a(3),T("
",f(63,68,"setupwizard.WOLEnabled_desc"),"
"),a(2),p("ngIf",y.database.WOLEnabled),a(1),p("ngIf",y.database.WOLEnabled),a(1),p("ngIf",y.database.WOLEnabled),a(2),x("label",f(69,70,"setupwizard.testConnection")),p("disabled",null==w.invalid||w.invalid),a(3),p("ngIf",y.m_wizardData.DatabaseStatus.DatabaseStatus.Connected)("ngIfElse",u),a(3),p("ngIf",y.m_wizardData.DatabaseStatus.DatabaseStatus.Ha
veDatabase)("ngIfElse",h),a(3),p("ngIf",y.m_wizardData.DatabaseStatus.DatabaseStatus.Connected&&y.m_wizardData.DatabaseStatus.DatabaseStatus.HaveDatabase)("ngIfElse",b),a(3),p("ngIf",y.setupService.isDatabaseIgnored)}}function
MK(t,i){1&t&&(k(0,"p-message",83),m(1,"translate")),2&t&&x("text",f(1,1,"common.savesuccess"))}function
kK(t,i){1&t&&(k(0,"p-message",60),m(1,"translate")),2&t&&x("text",f(1,1,"common.networkfail"))}function
IK(t,i){1&t&&(k(0,"p-message",60),m(1,"translate")),2&t&&x("text",f(1,1,"setupwizard.connectionfail"))}function
EK(t,i){if(1&t){const
e=I();l(0,"div",77)(1,"div",78),_(2,MK,2,3,"p-message",79),_(3,kK,2,3,"p-message",80),_(4,IK,2,3,"p-message",80),c(),l(5,"p-button",81),C("onClick",function(){v(e);const
s=d(),r=F(2);return
s.saveForm(!0),r.form.markAsPristine()}),m(6,"translate"),c(),l(7,"p-button",82),C("onClick",function(){return
v(e),d().router.navigate(["setupwizard/selectlanguage"])}),m(8,"translate"),c()()}if(2&t){const
e=d(),n=F(2);a(2),p("ngIf",e.su
ccessCount>0&&e.successCount==e.expectedCount&&0==e.errorCount&&!n.dirty),a(1),p("ngIf",e.errorCount>0),a(1),p("ngIf",e.connectionFail),a(1),x("label",f(6,7,"common.save")),p("disabled",(!n.dirty||e.setupService.schedulingEnabled)&&!e.setupService.isDatabaseIgnored),a(2),x("label",f(8,9,"common.next")),p("disabled",e.setupService.isDatabaseIgnored)}}let
RK=(()=>{class
t{constructor(e,n,s,r,o,u,h,b){this.router=e,this.configService=n,this.mythService=s,this.wizardService=r,this.translate=o,this.messageService=u,this.setupService=h,this.clipboard=b,this.successCount=0,this.errorCount=0,this.expectedCount=2,this.connectionFail=!1,this.commandlist="",this.mySqlCommand="sudo
mysql -u root < setup.sql",this.tzCommand="mysql_tzinfo_to_sql
/usr/share/zoneinfo | sudo mysql -u root
mysql",this.dbtype="MySQL",this.msg_testconnection="setupwizard.testConnection",this.msg_connectionsuccess="setupwizard.connectionsuccess",this.msg_connectionfail="setupwizard.connectionfail",this.warningText="sett
ings.common.warning",this.saveObserver={next:y=>{y.bool?this.successCount++:(this.errorCount++,this.currentForm&&this.currentForm.form.markAsDirty())},error:y=>{console.error(y),this.errorCount++,this.currentForm&&this.currentForm.form.markAsDirty()}},this.translate.get(this.msg_testconnection).subscribe(y=>this.msg_testconnection=y),this.translate.get(this.msg_connectionsuccess).subscribe(y=>this.msg_connectionsuccess=y),this.translate.get(this.msg_connectionfail).subscribe(y=>this.msg_connectionfail=y),this.translate.get(this.warningText).subscribe(y=>this.warningText=y)}ngOnInit(){this.wizardService.initDatabaseStatus(),this.m_wizardData=this.wizardService.getWizardData(),this.database=Object.assign({},this.m_wizardData.Database),this.wizardService.dbPromise.then(()=>{this.database=Object.assign({},this.m_wizardData.Database)},()=>this.errorCount++)}copyToclipboard(e){this.clipboard.copy(e)}saveForm(e){this.successCount=0,this.errorCount=0,this.expectedCount=1,this.connectionFail
=!1;const
n={HostName:this.database.Host,UserName:this.database.UserName,Password:this.database.Password,DBName:this.database.Name,dbPort:this.database.Port};this.commandlist="",this.mythService.TestDBSettings(n).subscribe(s=>{s.bool?e?this.configService.SetDatabaseCredentials(this.database).subscribe(this.saveObserver):this.messageService.add({severity:"success",life:5e3,summary:this.msg_testconnection,detail:this.msg_connectionsuccess}):(this.messageService.add({severity:"error",life:5e3,summary:this.msg_testconnection,detail:this.msg_connectionfail}),this.connectionFail=!0,this.setCommandList())})}setCommandList(){let
e="";"MySQL"==this.dbtype&&(e="WITH
mysql_native_password"),this.commandlist=`CREATE DATABASE IF NOT EXISTS
${this.database.Name};\nCREATE USER IF NOT EXISTS
'${this.database.UserName}'@'localhost' IDENTIFIED ${e} by
'${this.database.Password}';\nCREATE USER IF NOT EXISTS
'${this.database.UserName}'@'%' IDENTIFIED ${e} by
'${this.database.Password}';\nGRANT ALL ON $
{this.database.Name}.* TO '${this.database.UserName}'@'localhost';\nGRANT
ALL ON ${this.database.Name}.* TO
'${this.database.UserName}'@'%';`}confirm(e){return
oe(window.confirm(e))}canDeactivate(){return!this.currentForm||!this.currentForm.dirty||this.confirm(this.warningText)}onWindowClose(e){this.currentForm&&this.currentForm.dirty&&(e.preventDefault(),e.returnValue=!1)}}return
t.\u0275fac=function(e){return
new(e||t)(D(It),D(zo),D(qt),D(xd),D(Oe),D(Gi),D(Me),D(lS))},t.\u0275cmp=z({type:t,selectors:[["app-dbsetup"]],viewQuery:function(e,n){if(1&e&&W(sK,5),2&e){let
s;V(s=B())&&(n.currentForm=s.first)}},hostBindings:function(e,n){1&e&&C("beforeunload",function(r){return
n.onWindowClose(r)},!1,ni)},features:[Pe([Gi])],decls:8,vars:0,consts:[["name","databaseForm",1,"mx-0","md:mx-3"],["databaseForm","ngForm"],[1,"m-0","md: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,"label","block"],["pInputText","","id","ipaddress","type","text","aria-describedby","ipaddress-help","name","hostname","placeholder","Ex.
127.0.0.1 or
localhost","required","",1,"mb-2","form-control","w-full",3,"ngModel","ngClass","ngModelChange"],["host","ngModel"],["id","ipaddress-help"],[4,"ngIf"],["for","port",1,"label","block"],["pInputText","","id","port","type","number","aria-describedby","port-help","name","port","placeholder","Ex.
3306","min","0","max","65536",1,"mb-2","form-control","w-full",3,"ngModel","ngModelChange"],["port","ngModel"],["id","port-help"],["for","user",1,"label","block"],["pInputText","","id","user","type","text","aria-describedby","user-help","name","user","placeholder","Ex.
mythtv","required","",1,"mb-2","form-control","w-full",3,"ngModel","ngModelChange"],["user","ngModel"],["id","user-help"],["for","password",1,"label","block"],["pInputText","","id","password","type","text","aria-describedby","password-help","name","password",
"placeholder","Ex.
mythtv","required","",1,"mb-2","form-control","w-full",3,"ngModel","ngModelChange"],["password","ngModel"],["id","password-help"],["for","dbname",1,"label","block"],["pInputText","","id","dbname","type","text","aria-describedby","dbname-help","name","dbname","placeholder","Ex.
mythconverg","required","",1,"mb-2","form-control","w-full",3,"ngModel","ngModelChange"],["dbname","ngModel"],["id","dbname-help"],[1,"field","col-12"],["name","LocalEnabled",1,"mb-2","w-full","label","block",3,"ngModel","binary","label","ngModelChange"],[1,"block"],["class","field
col-12",4,"ngIf"],["name","WOLEnabled",1,"mb-2","w-full","label","block",3,"ngModel","binary","label","ngModelChange"],["class","field
col-12
md:col-6",4,"ngIf"],["type","button",1,"mr-1","p-button-raised","p-button-secondary",3,"label","disabled","click"],[1,"pt-4",2,"display","flex"],[4,"ngIf","ngIfElse"],["notconnected",""],["nodatabase",""],["noschema",""],["id","address-help",1,"p-error","block"],[1,"p-error"
,"block"],["for","LocalHostName",1,"label","block"],["pInputText","","id","LocalHostName","type","text","aria-describedby","LocalHostName-help","name","LocalHostName",1,"mb-2","form-control","w-full",3,"ngModel","ngModelChange"],["LocalHostName","ngModel"],["id","LocalHostName-help"],["for","WOLReconnect",1,"label","block"],["name","WOLReconnect","id","WOLReconnect",3,"ngModel","min","max","step","useGrouping","showButtons","ngModelChange"],["for","WOLRetry",1,"label","block"],["name","WOLRetry","id","WOLRetry",3,"ngModel","min","max","step","useGrouping","showButtons","ngModelChange"],["for","WOLCommand",1,"label","block"],["pInputText","","id","WOLCommand","type","text","aria-describedby","WOLCommand-help","name","WOLCommand",1,"mb-2","form-control","w-full",3,"ngModel","ngModelChange"],["WOLCommand","ngModel"],["id","WOLCommand-help"],["severity","success",1,"pr-2",3,"text"],[1,"pr-2","notconnected"],["severity","error",1,"",3,"text"],[1,"pr-2","nodatabase"],["severity","error",3
,"text"],["severity","info",1,"pr-2",3,"text"],[1,"pr-2","noschema"],["severity","info",3,"text"],[1,""],[1,"align-items-center","bg-blue-100","text-gray-900",2,"font-family","monospace"],[1,"align-items-center"],["pButton","","pRipple","","type","button","icon","pi
pi-copy",1,"p-button-rounded","p-button-text",3,"pTooltip","click"],[1,"flex","pb-3"],[1,"flex-none","flex","align-items-center","label","block","pr-5"],[1,"flex-none","flex","align-items-center","pr-5"],["name","dbtype","value","MySQL","inputId","mysql",3,"ngModel","ngModelChange"],["for","mysql"],[1,"flex-none","flex","align-items-center"],["name","dbtype","value","MariaDB","inputId","mariadb",3,"ngModel","ngModelChange"],["for","mariadb"],[2,"white-space","pre-line"],[1,"grid","nogutter","m-5"],[1,"col-12"],["severity","success",3,"text",4,"ngIf"],["severity","error",3,"text",4,"ngIf"],["icon","pi
pi-save","iconPos","left",1,"col","pr-1",3,"label","disabled","onClick"],["icon","pi
pi-angle-right","iconPos","right",1,"
pr-3",3,"label","disabled","onClick"],["severity","success",3,"text"]],template:function(e,n){1&e&&(k(0,"p-toast"),l(1,"form",0,1)(3,"p-card",2),_(4,rK,2,3,"ng-template",3),_(5,oK,2,3,"ng-template",4),_(6,DK,81,74,"ng-template",5),_(7,EK,9,11,"ng-template",6),c()())},directives:[Td,ze,Ue,He,Ne,ne,Ye,ll,Te,_e,Le,Q,Du,xu,Su,sn,pt,ve,qe,Sd,On,bt,Kt],pipes:[ce],styles:[".is-invalid{border-color:red}@media
screen and (max-width:
48rem){.p-card-body,.p-card-content,.p-accordion-content{padding:0rem!important}}\n"],encapsulation:2}),t})();const
LK=["hostaddress"];function
OK(t,i){1&t&&(g(0),m(1,"translate")),2&t&&T("
",f(1,1,"settings.hostaddress.title")," ")}function
AK(t,i){1&t&&(g(0),m(1,"translate")),2&t&&T("
",f(1,1,"settings.hostaddress.subtitle")," ")}function
PK(t,i){1&t&&(l(0,"div")(1,"small",40),g(2),m(3,"translate"),c()()),2&t&&(a(2),S(f(3,1,"setupwizard.portRequired")))}function
FK(t,i){1&t&&(l(0,"div")(1,"small",40),g(2),m(3,"translate"),c()()),2&t&&(a(2),S(f(3,1,"setupwizard.
portRequired")))}function
NK(t,i){1&t&&(l(0,"div")(1,"small",40),g(2),m(3,"translate"),c()()),2&t&&(a(2),T("
",f(3,1,"settings.hostaddress.pin_reqd")," "))}function
VK(t,i){1&t&&(l(0,"div")(1,"small",52),g(2,"IPv4
address"),c()())}function
BK(t,i){1&t&&(l(0,"div")(1,"small",40),g(2,"IPv6
address"),c()())}function HK(t,i){if(1&t){const
e=I();l(0,"div")(1,"div",9)(2,"label",41),g(3),m(4,"translate"),c(),l(5,"p-dropdown",42,43),C("ngModelChange",function(s){return
v(e),d(2).m_HostAddressData.BackendServerIP=s}),c(),l(7,"small",44),g(8),m(9,"translate"),c(),_(10,VK,3,0,"div",14),c(),l(11,"div",9)(12,"label",45),g(13),m(14,"translate"),c(),l(15,"p-dropdown",46,47),C("ngModelChange",function(s){return
v(e),d(2).m_HostAddressData.BackendServerIP6=s}),c(),l(17,"small",48),g(18),m(19,"translate"),c(),_(20,BK,3,0,"div",14),c(),l(21,"div",9)(22,"p-checkbox",49,50),C("ngModelChange",function(s){return
v(e),d(2).m_HostAddressData.AllowLinkLocal=s}),m(24,"translate"),c(),l(25,"small",51),g(26),m(
27,"translate"),c()()()}if(2&t){const
e=F(6),n=F(16),s=d(2);a(3),S(f(4,14,"settings.hostaddress.ipv4_label")),a(2),p("options",s.m_IPsV4)("ngModel",s.m_HostAddressData.BackendServerIP),a(3),T("
",f(9,16,"settings.hostaddress.ipv4_desc"),"
"),a(2),p("ngIf",e.invalid&&(e.dirty||e.touched)),a(3),T("
",f(14,18,"settings.hostaddress.ipv6_label"),"
"),a(2),p("options",s.m_IPsV6)("ngModel",s.m_HostAddressData.BackendServerIP6),a(3),T("
",f(19,20,"settings.hostaddress.ipv6_desc"),"
"),a(2),p("ngIf",n.invalid&&(n.dirty||n.touched)),a(2),x("label",f(24,22,"settings.hostaddress.listenlinklocal_label")),p("ngModel",s.m_HostAddressData.AllowLinkLocal)("binary",!0),a(4),T("
",f(27,24,"settings.hostaddress.listenlinklocal_desc"),"
")}}function
qK(t,i){1&t&&(l(0,"div")(1,"small",40),g(2,"Primary
IP address / DNS name is required"),c()())}function
GK(t,i){1&t&&(l(0,"div")(1,"small",53),g(2),m(3,"translate"),c()()),2&t&&(a(2),T("
",f(3,1,"settings.hostaddress.ismaster_hint")," "))}function
UK(t,i){1&
t&&(l(0,"div")(1,"small",54),g(2,"Hostname of master
backend is required"),c()())}const
uS=function(t){return{"is-invalid":t}};function zK(t,i){if(1&t){const
e=I();l(0,"div",7)(1,"p-fieldset",8),m(2,"translate"),l(3,"div",9)(4,"label",10),g(5),m(6,"translate"),c(),l(7,"input",11,12),C("ngModelChange",function(s){return
v(e),d().m_HostAddressData.BackendServerPort=s}),c(),l(9,"small",13),g(10),m(11,"translate"),c(),_(12,PK,4,3,"div",14),c(),l(13,"div",9)(14,"label",15),g(15),m(16,"translate"),c(),l(17,"input",16,17),C("ngModelChange",function(s){return
v(e),d().m_HostAddressData.BackendStatusPort=s}),c(),l(19,"small",18),g(20),m(21,"translate"),c(),_(22,FK,4,3,"div",14),c()(),l(23,"p-fieldset",8),m(24,"translate"),l(25,"div",9)(26,"label",19),g(27),m(28,"translate"),c(),l(29,"input",20,21),C("ngModelChange",function(s){return
v(e),d().m_HostAddressData.SecurityPin=s}),c(),l(31,"small",22),g(32),m(33,"translate"),c(),_(34,NK,4,3,"div",14),c()(),l(35,"p-fieldset",8),m(36,"translate"),l
(37,"div",9)(38,"p-checkbox",23,24),C("ngModelChange",function(s){return
v(e),d().m_HostAddressData.AllowConnFromAll=s}),m(40,"translate"),c(),l(41,"small",22),k(42,"div",25),m(43,"translate"),c()()(),l(44,"p-fieldset",8),m(45,"translate"),l(46,"div",9)(47,"p-checkbox",26,27),C("ngModelChange",function(s){return
v(e),d().m_HostAddressData.ListenOnAllIps=s}),m(49,"translate"),c(),l(50,"small",28),g(51),m(52,"translate"),c()(),_(53,HK,28,26,"div",14),c(),l(54,"p-fieldset",8),m(55,"translate"),l(56,"div",9)(57,"div",9)(58,"label",29),g(59),m(60,"translate"),c(),l(61,"p-dropdown",30,31),C("ngModelChange",function(s){return
v(e),d().m_HostAddressData.BackendServerAddr=s}),c(),l(63,"small",32),g(64),m(65,"translate"),c()(),_(66,qK,3,0,"div",14),c()(),l(67,"p-fieldset",8),m(68,"translate"),l(69,"div",9)(70,"p-checkbox",33,34),C("ngModelChange",function(s){return
v(e),d().m_HostAddressData.IsMasterBackend=s})("onChange",function(){return
v(e),d().setMaster()}),m(72,"translate"),c(),l(73,"sm
all",35),g(74),m(75,"translate"),c(),_(76,GK,4,3,"div",14),c(),l(77,"div",9)(78,"label",36),g(79),m(80,"translate"),c(),l(81,"input",37,38),C("ngModelChange",function(s){return
v(e),d().m_HostAddressData.MasterServerName=s}),c(),l(83,"small",39),k(84,"div",25),m(85,"translate"),c(),_(86,UK,3,0,"div",14),c()()()}if(2&t){const
e=F(8),n=F(18),s=F(30),r=F(62),o=F(82),u=d();a(1),x("legend",f(2,44,"settings.hostaddress.panel.ports")),a(4),T("
",f(6,46,"settings.hostaddress.backendport_label"),"
"),a(2),p("ngModel",u.m_HostAddressData.BackendServerPort)("ngClass",U(88,uS,e.invalid)),a(3),T("
",f(11,48,"settings.hostaddress.backendport_desc"),"
"),a(2),p("ngIf",e.invalid&&(e.dirty||e.touched)),a(3),T("
",f(16,50,"settings.hostaddress.statusport_label"),"
"),a(2),p("ngModel",u.m_HostAddressData.BackendStatusPort)("ngClass",U(90,uS,n.invalid)),a(3),S(f(21,52,"settings.hostaddress.statusport_desc")),a(2),p("ngIf",n.invalid&&(n.dirty||n.touched)),a(1),x("legend",f(24,54,"settings.hostaddress.pa
nel.pin")),a(4),T("
",f(28,56,"settings.hostaddress.pin_label"),"
"),a(2),p("ngModel",u.m_HostAddressData.SecurityPin),a(3),T("
",f(33,58,"settings.hostaddress.pin_desc"),"
"),a(2),p("ngIf",s.invalid&&(s.dirty||s.touched)),a(1),x("legend",f(36,60,"settings.hostaddress.panel.allowconn")),a(3),x("label",f(40,62,"settings.hostaddress.allowconn_label")),p("ngModel",u.m_HostAddressData.AllowConnFromAll)("binary",!0),a(4),p("innerHTML",f(43,64,"settings.hostaddress.allowconn_desc"),Bt),a(2),x("legend",f(45,66,"settings.hostaddress.panel.iplisten")),a(3),x("label",f(49,68,"settings.hostaddress.listenall_label")),p("ngModel",u.m_HostAddressData.ListenOnAllIps)("binary",!0),a(4),T("
",f(52,70,"settings.hostaddress.listenall_desc"),"
"),a(2),p("ngIf",!u.m_HostAddressData.ListenOnAllIps),a(1),x("legend",f(55,72,"settings.hostaddress.panel.primaryadd")),a(5),T("
",f(60,74,"settings.hostaddress.primaryip_label"),"
"),a(2),p("options",u.m_IPsAll)("ngModel",u.m_HostAddressData.BackendServerAddr)("
editable",!0),a(3),T("
",f(65,76,"settings.hostaddress.primaryip_desc"),"
"),a(2),p("ngIf",r.invalid&&(r.dirty||r.touched)),a(1),x("legend",f(68,78,"settings.hostaddress.panel.masterbe")),a(3),x("label",f(72,80,"settings.hostaddress.ismaster_label")),p("ngModel",u.m_HostAddressData.IsMasterBackend)("binary",!0),a(4),T("
",f(75,82,"settings.hostaddress.ismaster_desc"),"
"),a(2),p("ngIf",u.m_showChangeHint),a(3),S(f(80,84,"settings.hostaddress.master_label")),a(2),p("ngModel",u.m_HostAddressData.MasterServerName),a(3),p("innerHTML",f(85,86,"settings.hostaddress.master_desc"),Bt),a(2),p("ngIf",o.invalid&&(o.dirty||o.touched))}}function
jK(t,i){1&t&&(k(0,"p-message",60),m(1,"translate")),2&t&&x("text",f(1,1,"common.savesuccess"))}function
$K(t,i){1&t&&(k(0,"p-message",61),m(1,"translate")),2&t&&x("text",f(1,1,"common.networkfail"))}function
WK(t,i){if(1&t){const
e=I();l(0,"div",55)(1,"div",56),_(2,jK,2,3,"p-message",57),_(3,$K,2,3,"p-message",58),c(),l(4,"p-button",59),C("onClick",funct
ion(){v(e);const s=d(),r=F(1);return
s.saveForm(),r.form.markAsPristine()}),m(5,"translate"),c()()}if(2&t){const
e=d(),n=F(1);a(2),p("ngIf",e.m_HostAddressData.successCount>0&&0==e.m_HostAddressData.errorCount&&!n.dirty),a(1),p("ngIf",e.m_HostAddressData.errorCount>0),a(1),x("label",f(5,4,"common.save")),p("disabled",!n.dirty||e.setupService.schedulingEnabled)}}let
KK=(()=>{class
t{constructor(e,n){this.setupService=e,this.configService=n,this.m_IsMasterBackend=!1,this.m_showChangeHint=!1,this.m_HostAddressData=this.setupService.getHostAddressData(),setTimeout(()=>n.GetIPAddresses("All").subscribe(s=>this.m_IPsAll=s.IPAddresses),500),n.GetIPAddresses("IPv4").subscribe(s=>this.m_IPsV4=s.IPAddresses),n.GetIPAddresses("IPv6").subscribe(s=>this.m_IPsV6=s.IPAddresses)}ngOnInit(){}ngAfterViewInit(){this.setupService.setCurrentForm(this.currentForm)}setMaster(){void
0===this.m_savedMaster&&(this.m_savedMaster=this.m_HostAddressData.MasterServerName),this.m_HostAddressData.IsMasterBackend?(
this.m_HostAddressData.MasterServerName=this.m_HostAddressData.thisHostName,this.m_showChangeHint=!1):this.m_HostAddressData.MasterServerName==this.m_savedMaster?this.m_showChangeHint=!0:this.m_HostAddressData.MasterServerName=this.m_savedMaster}saveForm(){console.log("save
form clicked"),this.setupService.saveHostAddressData(this.currentForm)}}return
t.\u0275fac=function(e){return
new(e||t)(D(Me),D(zo))},t.\u0275cmp=z({type:t,selectors:[["app-host-address"]],viewQuery:function(e,n){if(1&e&&W(LK,5),2&e){let
s;V(s=B())&&(n.currentForm=s.first)}},decls:7,vars:0,consts:[["name","hostaddress",1,"mx-0","md:mx-3"],["hostaddress","ngForm"],[1,"m-0","md:m-5"],["pTemplate","title"],["pTemplate","subtitle"],["pTemplate","content"],["pTemplate","footer"],[1,"grid"],[1,"mb-4","w-full",3,"legend"],[1,"form-group","field"],["for","backendserverport",1,"label","block"],["pInputText","","id","backendserverport","type","number","name","backendserverport","placeholder","Ex.
6543","required","","min",
"0","max","65536",1,"mb-2","form-control","w-10rem",3,"ngModel","ngClass","ngModelChange"],["backendserverport","ngModel"],["id","backendserverport-help",1,"block"],[4,"ngIf"],["for","backendstatusport",1,"label","block"],["pInputText","","id","backendstatusport","type","number","name","backendstatusport","placeholder","Ex.
6544","required","","min","0","max","65536",1,"mb-2","form-control","w-10rem",3,"ngModel","ngClass","ngModelChange"],["backendstatusport","ngModel"],["id","backendstatusport-help",1,"block"],["for","securitypin",1,"label","block"],["pInputText","","id","securitypin","type","text","name","securitypin","placeholder","Ex.
1234","required","",1,"mb-2","form-control","w-10rem",3,"ngModel","ngModelChange"],["securitypin","ngModel"],["id","securitypin-help",1,"block"],["inputId","AllowConnFromAll","name","AllowConnFromAll",1,"mb-2","w-full",3,"ngModel","binary","label","ngModelChange"],["AllowConnFromAll","ngModel"],[3,"innerHTML"],["inputId","ListenOnAllIps","name","Li
stenOnAllIps",1,"mb-2","w-full",3,"ngModel","binary","label","ngModelChange"],["ListenOnAllIps","ngModel"],["id","ListenOnAllIps-help",1,"block"],["for","BackendServerAddr",1,"label","block","w-full"],["name","BackendServerAddr","aria-describedby","BackendServerAddr-help",1,"block","mb-2","w-full",3,"options","ngModel","editable","ngModelChange"],["BackendServerAddr","ngModel"],["id","BackendServerAddr-help",1,"block","w-full"],["inputId","IsMasterBackend","name","IsMasterBackend",1,"mb-2","w-full",3,"ngModel","binary","label","ngModelChange","onChange"],["IsMasterBackend","ngModel"],["id","IsMasterBackend-help",1,"block"],["for","MasterServerName",1,"label","block"],["pInputText","","id","MasterServerName","type","text","name","MasterServerName","placeholder","Ex.
masterbe","disabled","disabled",1,"mb-2","form-control","w-15rem","read-only",3,"ngModel","ngModelChange"],["MasterServerName","ngModel"],["id","MasterServerName-help",1,"block"],[1,"p-error","block"],["for","BackendServe
rIP",1,"label","block"],["name","BackendServerIP","aria-describedby","BackendServerIP-help",1,"block","w-15rem","mb-2",3,"options","ngModel","ngModelChange"],["BackendServerIP","ngModel"],["id","BackendServerIP-help",1,"block"],["for","BackendServerIP6",1,"label","block"],["name","BackendServerIP6","aria-describedby","BackendServerIP6-help",1,"block","w-15rem","mb-2",3,"options","ngModel","ngModelChange"],["BackendServerIP6","ngModel"],["id","BackendServerIP6-help",1,"block"],["inputId","AllowLinkLocal","name","AllowLinkLocal",1,"mb-2","w-full",3,"ngModel","binary","label","ngModelChange"],["AllowLinkLocal","ngModel"],["id","AllowLinkLocal-help",1,"block"],["id","LocalServerIP-help",1,"p-error","block"],["id","IsMasterBackend-help",1,"p-error","block"],["id","MasterServerName-help",1,"p-error","block"],[1,"grid","nogutter"],[1,"col-12"],["severity","success",3,"text",4,"ngIf"],["severity","error",3,"text",4,"ngIf"],["icon","pi
pi-save","iconPos","left",1,"col","pr-1",3,"label","disa
bled","onClick"],["severity","success",3,"text"],["severity","error",3,"text"]],template:function(e,n){1&e&&(l(0,"form",0,1)(2,"p-card",2),_(3,OK,2,3,"ng-template",3),_(4,AK,2,3,"ng-template",4),_(5,zK,87,92,"ng-template",5),_(6,WK,6,6,"ng-template",6),c()())},directives:[ze,Ue,He,Ne,ne,Ui,Du,xu,Su,Ye,ll,Te,_e,Le,Q,sn,Ot,qe,ve],pipes:[ce],styles:["[_nghost-%COMP%]
.p-dropdown{width:18rem}.read-only[_ngcontent-%COMP%]{opacity:1;background-color:#e0e0e0;border-style:solid;height:2rem}"]}),t})();const
QK=["locale"];function
JK(t,i){1&t&&(g(0),m(1,"translate")),2&t&&T("
",f(1,1,"settings.locale.title")," ")}function
YK(t,i){1&t&&(g(0),m(1,"translate")),2&t&&T("
",f(1,1,"settings.locale.subtitle")," ")}function
ZK(t,i){if(1&t){const
e=I();l(0,"div",7)(1,"p-fieldset",8),m(2,"translate"),l(3,"div",9)(4,"label",10),g(5,"TV
Format"),c(),l(6,"p-dropdown",11),C("ngModelChange",function(s){return
v(e),d().TVFormat=s}),c(),l(7,"small",12),g(8),m(9,"translate"),c()(),l(10,"div",9)(11,"label",
13),g(12),m(13,"translate"),c(),l(14,"p-dropdown",14),C("ngModelChange",function(s){return
v(e),d().VbiFormat=s}),c(),l(15,"small",15),g(16),m(17,"translate"),c()()(),l(18,"p-fieldset",8),m(19,"translate"),l(20,"div",9)(21,"label",16),g(22),m(23,"translate"),c(),l(24,"p-dropdown",17),C("ngModelChange",function(s){return
v(e),d().FreqTable=s}),c(),l(25,"small",18),g(26),m(27,"translate"),c()()()()}if(2&t){const
e=d();a(1),x("legend",f(2,13,"settings.locale.tvformat_label")),a(5),p("options",e.m_TVFormats)("ngModel",e.TVFormat),a(2),T("
",f(9,15,"settings.locale.tvformat_desc"),"
"),a(4),S(f(13,17,"settings.locale.vbiformat_label")),a(2),p("options",e.m_vbiFormats)("ngModel",e.VbiFormat),a(2),T("
",f(17,19,"settings.locale.vbiformat_desc"),"
"),a(2),x("legend",f(19,21,"settings.locale.freqtable_label")),a(4),S(f(23,23,"settings.locale.channfreq_label")),a(2),p("options",e.m_FreqTables)("ngModel",e.FreqTable),a(2),T("
",f(27,25,"settings.locale.channfreq_desc")," ")}}function
XK(t,i){1
&t&&(k(0,"p-message",24),m(1,"translate")),2&t&&x("text",f(1,1,"common.savesuccess"))}function
eQ(t,i){1&t&&(k(0,"p-message",25),m(1,"translate")),2&t&&x("text",f(1,1,"common.networkfail"))}function
tQ(t,i){if(1&t){const
e=I();l(0,"div",19)(1,"div",20),_(2,XK,2,3,"p-message",21),_(3,eQ,2,3,"p-message",22),c(),l(4,"p-button",23),C("onClick",function(){v(e);const
s=d(),r=F(1);return
s.saveForm(),r.form.markAsPristine()}),m(5,"translate"),c()()}if(2&t){const
e=d(),n=F(1);a(2),p("ngIf",e.successCount>0&&0==e.errorCount&&!n.dirty),a(1),p("ngIf",e.errorCount>0),a(1),x("label",f(5,4,"common.save")),p("disabled",!n.dirty||e.setupService.schedulingEnabled)}}const
nQ=function(){return{width:"100%"}};let iQ=(()=>{class
t{constructor(e,n){this.setupService=e,this.mythService=n,this.successCount=0,this.errorCount=0,this.TVFormat="PAL",this.VbiFormat="None",this.FreqTable="us-bcast",this.LocaleObs={next:s=>{s.bool?this.successCount++:(this.errorCount++,this.currentForm&&this.currentForm.form.mark
AsDirty())},error:s=>{console.error(s),this.errorCount++,this.currentForm&&this.currentForm.form.markAsDirty()}},this.m_TVFormats=["NTSC","NTSC-JP","PAL","PAL-60","PAL-BG","PAL-DK","PAL-D","PAL-I","PAL-M","PAL-N","PAL-NC","SECAM","SECAM-D","DECAM-DK"],this.m_vbiFormats=["None","PAL
teletext","NTSC closed
caption"],this.m_FreqTables=["us-bcast","us-cable","us-cable-hrc","us-cable-irc","japan-bcast","japan-cable","europe-west","europe-east","italy","newzealand","australia","ireland","france","china-bcast","southafrica","argentina","australia-optus","singapore","malaysia","israel-hot-matav","try-all"],this.getLocaleData()}getLocaleData(){this.mythService.GetSetting({HostName:"_GLOBAL_",Key:"TVFormat"}).subscribe({next:e=>this.TVFormat=e.String,error:()=>this.errorCount++}),this.mythService.GetSetting({HostName:"_GLOBAL_",Key:"VbiFormat"}).subscribe({next:e=>this.VbiFormat=e.String,error:()=>this.errorCount++}),this.mythService.GetSetting({HostName:"_GLOBAL_",Key:"FreqTable"}).subscribe
({next:e=>this.FreqTable=e.String,error:()=>this.errorCount++})}ngOnInit(){}ngAfterViewInit(){this.setupService.setCurrentForm(this.currentForm)}saveForm(){this.successCount=0,this.errorCount=0,this.mythService.PutSetting({HostName:"_GLOBAL_",Key:"TVFormat",Value:this.TVFormat}).subscribe(this.LocaleObs),this.mythService.PutSetting({HostName:"_GLOBAL_",Key:"VbiFormat",Value:this.VbiFormat}).subscribe(this.LocaleObs),this.mythService.PutSetting({HostName:"_GLOBAL_",Key:"FreqTable",Value:this.FreqTable}).subscribe(this.LocaleObs)}}return
t.\u0275fac=function(e){return
new(e||t)(D(Me),D(qt))},t.\u0275cmp=z({type:t,selectors:[["app-locale"]],viewQuery:function(e,n){if(1&e&&W(QK,5),2&e){let
s;V(s=B())&&(n.currentForm=s.first)}},decls:7,vars:3,consts:[["name","locale",1,"ml-3","mr-3",3,"ngSubmit"],["locale","ngForm"],[1,"m-5"],["pTemplate","title"],["pTemplate","subtitle"],["pTemplate","TV
Formats"],["pTemplate","footer"],[1,"grid"],[1,"mb-4","w-full",3,"legend"],[1,"form-group","field"],
["for","tvformat",1,"label","block"],["name","tvformat","aria-describedby","tvformat-help",1,"w-full","mb-2",3,"options","ngModel","ngModelChange"],["id","tvformat-help",1,"block","mt-2"],["for","vbiformat",1,"label","block"],["name","vbiformat","aria-describedby","vbiformat-help",1,"mb-5","w-full",3,"options","ngModel","ngModelChange"],["id","vbiformat-help",1,"block","mt-2"],["for","freqtable",1,"label","block"],["name","freqtable",1,"mb-2","w-full",3,"options","ngModel","ngModelChange"],["id","freqtable-help",1,"block","pt-2"],[1,"grid","nogutter"],[1,"col-12"],["severity","success",3,"text",4,"ngIf"],["severity","error",3,"text",4,"ngIf"],["icon","pi
pi-save","iconPos","left",1,"col","pr-1",3,"label","disabled","onClick"],["severity","success",3,"text"],["severity","error",3,"text"]],template:function(e,n){1&e&&(l(0,"form",0,1),C("ngSubmit",function(){return
n.saveForm()}),l(2,"p-card",2),_(3,JK,2,3,"ng-template",3),_(4,YK,2,3,"ng-template",4),_(5,ZK,28,27,"ng-template",5),_(6,t
Q,6,6,"ng-template",6),c()()),2&e&&(a(2),q(A(2,nQ)))},directives:[ze,Ue,He,Ne,ne,Ui,Ot,Te,_e,Q,qe,ve],pipes:[ce],styles:["[_nghost-%COMP%]
.p-dropdown{width:18rem}"]}),t})();const sQ=["miscsettings"];function
rQ(t,i){1&t&&(g(0),m(1,"translate")),2&t&&T("
",f(1,1,"settings.misc.title")," ")}function
oQ(t,i){1&t&&(g(0),m(1,"translate")),2&t&&T("
",f(1,1,"settings.misc.subtitle")," ")}function
aQ(t,i){if(1&t){const
e=I();l(0,"div",7)(1,"p-fieldset",8),m(2,"translate"),l(3,"div",9)(4,"p-checkbox",10),C("ngModelChange",function(s){return
v(e),d().MasterBackendOverride=s}),m(5,"translate"),c(),l(6,"small",11),g(7),m(8,"translate"),c()(),l(9,"div",9)(10,"p-checkbox",12),C("ngModelChange",function(s){return
v(e),d().DeletesFollowLinks=s}),m(11,"translate"),c(),l(12,"small",11),g(13),m(14,"translate"),c()(),l(15,"div",9)(16,"p-checkbox",13),C("ngModelChange",function(s){return
v(e),d().TruncateDeletesSlowly=s}),m(17,"translate"),c(),l(18,"small",11),g(19),m(20,"translate"),c()(),l(21,"di
v",9)(22,"label",14),g(23),m(24,"translate"),c(),l(25,"p-inputNumber",15),C("ngModelChange",function(s){return
v(e),d().HDRingbufferSize=s}),c(),l(26,"small",11),g(27),m(28,"translate"),c()(),l(29,"div",9)(30,"label",16),g(31),m(32,"translate"),c(),l(33,"p-dropdown",17),C("ngModelChange",function(s){return
v(e),d().StorageScheduler=s}),c(),l(34,"small",11),g(35),m(36,"translate"),c()()(),l(37,"p-fieldset",8),m(38,"translate"),l(39,"div",9)(40,"label",18),g(41),m(42,"translate"),c(),l(43,"p-dropdown",19),C("ngModelChange",function(s){return
v(e),d().UPNPWmpSource=s}),c(),l(44,"small",11),g(45),m(46,"translate"),c()()(),l(47,"div",20)(48,"div",9)(49,"label",21),g(50),m(51,"translate"),c(),l(52,"input",22),C("ngModelChange",function(s){return
v(e),d().MiscStatusScript=s}),c(),l(53,"small",11),g(54),m(55,"translate"),l(56,"a",23),g(57,"Miscellaneous
Status
Information"),c()()(),l(58,"div",9)(59,"p-checkbox",24),C("ngModelChange",function(s){return
v(e),d().DisableAutomaticBackup=s}),m(6
0,"translate"),c(),l(61,"small",11),g(62),m(63,"translate"),c()(),l(64,"div",9)(65,"p-checkbox",25),C("ngModelChange",function(s){return
v(e),d().DisableFirewireReset=s}),m(66,"translate"),c(),l(67,"small",11),g(68),m(69,"translate"),c()()()()}if(2&t){const
e=d();a(1),x("legend",f(2,44,"settings.misc.panel_filemgmt")),p("toggleable",!0)("collapsed",!0),a(3),x("label",f(5,46,"settings.misc.mbo_label")),p("ngModel",e.MasterBackendOverride)("binary",!0),a(3),T("
",f(8,48,"settings.misc.mbo_desc"),"
"),a(3),x("label",f(11,50,"settings.misc.follow_label")),p("ngModel",e.DeletesFollowLinks)("binary",!0),a(3),T("
",f(14,52,"settings.misc.follow_desc"),"
"),a(3),x("label",f(17,54,"settings.misc.slowly_label")),p("ngModel",e.TruncateDeletesSlowly)("binary",!0),a(3),T("
",f(20,56,"settings.misc.slowly_desc"),"
"),a(4),S(f(24,58,"settings.misc.ringbuf_label")),a(2),p("ngModel",e.HDRingbufferSize)("showButtons",!0)("min",4700)("max",94e3)("step",4700),a(2),T("
",f(28,60,"settings.misc.ringbuf_d
esc"),"
"),a(4),S(f(32,62,"settings.misc.sg_label")),a(2),p("options",e.soptions)("ngModel",e.StorageScheduler),a(2),T("
",f(36,64,"settings.misc.sg_desc"),"
"),a(2),x("legend",f(38,66,"settings.misc.panel_upnp")),p("toggleable",!0)("collapsed",!0),a(4),S(f(42,68,"settings.misc.upnp_label")),a(2),p("options",e.uoptions)("ngModel",e.UPNPWmpSource),a(2),T("
",f(46,70,"settings.misc.upnp_desc"),"
"),a(5),S(f(51,72,"settings.misc.statapp_label")),a(2),p("ngModel",e.MiscStatusScript),a(2),T("
",f(55,74,"settings.misc.statapp_desc"),"
"),a(5),x("label",f(60,76,"settings.misc.disback_label")),p("ngModel",e.DisableAutomaticBackup)("binary",!0),a(3),T("
",f(63,78,"settings.misc.disback_desc"),"
"),a(3),x("label",f(66,80,"settings.misc.disfwr_label")),p("ngModel",e.DisableFirewireReset)("binary",!0),a(3),T("
",f(69,82,"settings.misc.disfwr_desc")," ")}}function
lQ(t,i){1&t&&(k(0,"p-message",31),m(1,"translate")),2&t&&x("text",f(1,1,"common.savesuccess"))}function
cQ(t,i){1&t&&(k(0,"p-message"
,32),m(1,"translate")),2&t&&x("text",f(1,1,"common.networkfail"))}function
uQ(t,i){if(1&t){const
e=I();l(0,"div",26)(1,"div",27),_(2,lQ,2,3,"p-message",28),_(3,cQ,2,3,"p-message",29),c(),l(4,"p-button",30),C("onClick",function(){v(e);const
s=d(),r=F(1);return
s.saveForm(),r.form.markAsPristine()}),m(5,"translate"),c()()}if(2&t){const
e=d(),n=F(1);a(2),p("ngIf",e.successCount>0&&0==e.errorCount&&!n.dirty),a(1),p("ngIf",e.errorCount>0&&!n.dirty),a(1),x("label",f(5,4,"common.save")),p("disabled",!n.dirty||e.setupService.schedulingEnabled)}}let
dQ=(()=>{class
t{constructor(e,n,s){this.setupService=e,this.translate=n,this.mythService=s,this.successCount=0,this.errorCount=0,this.MasterBackendOverride=!1,this.DeletesFollowLinks=!1,this.TruncateDeletesSlowly=!1,this.HDRingbufferSize=9400,this.StorageScheduler="BalancedFreeSpace",this.UPNPWmpSource="0",this.MiscStatusScript="",this.DisableAutomaticBackup=!1,this.DisableFirewireReset=!1,this.hostName="",this.soptions=[{name:"settings.misc.sg_
balfree",code:"BalancedFreeSpace"},{name:"settings.misc.sg_balpercent",code:"BalancedPercFreeSpace"},{name:"settings.misc.bal_io",code:"BalancedDiskIO"},{name:"settings.misc.sg_combination",code:"Combination"}],this.uoptions=[{name:"settings.misc.upnp_recs",code:"0"},{name:"settings.misc.upnp_videos",code:"1"}],this.miscObserver={next:r=>{r.bool?this.successCount++:(this.errorCount++,this.currentForm&&this.currentForm.form.markAsDirty())},error:r=>{console.error(r),this.errorCount++,this.currentForm&&this.currentForm.form.markAsDirty()}},n.get(this.soptions[0].name).subscribe(r=>this.soptions[0].name=r),n.get(this.soptions[1].name).subscribe(r=>this.soptions[1].name=r),n.get(this.soptions[2].name).subscribe(r=>this.soptions[2].name=r),n.get(this.soptions[3].name).subscribe(r=>this.soptions[3].name=r),n.get(this.uoptions[0].name).subscribe(r=>this.uoptions[0].name=r),n.get(this.uoptions[1].name).subscribe(r=>this.uoptions[1].name=r),this.mythService.GetHostName().subscribe({next:r=>{
this.hostName=r.String,this.getMiscellaneousData()},error:()=>this.errorCount++})}getMiscellaneousData(){this.mythService.GetSetting({HostName:"_GLOBAL_",Key:"MasterBackendOverride",Default:"0"}).subscribe({next:e=>this.MasterBackendOverride="1"==e.String,error:()=>this.errorCount++}),this.mythService.GetSetting({HostName:"_GLOBAL_",Key:"DeletesFollowLinks",Default:"0"}).subscribe({next:e=>this.DeletesFollowLinks="1"==e.String,error:()=>this.errorCount++}),this.mythService.GetSetting({HostName:this.hostName,Key:"TruncateDeletesSlowly",Default:"0"}).subscribe({next:e=>this.TruncateDeletesSlowly="1"==e.String,error:()=>this.errorCount++}),this.mythService.GetSetting({HostName:"_GLOBAL_",Key:"HDRingbufferSize",Default:"9400"}).subscribe({next:e=>this.HDRingbufferSize=Number(e.String),error:()=>this.errorCount++}),this.mythService.GetSetting({HostName:"_GLOBAL_",Key:"StorageScheduler",Default:"BalancedFreeSpace"}).subscribe({next:e=>this.StorageScheduler=e.String,error:()=>this.errorCou
nt++}),this.mythService.GetSetting({HostName:"_GLOBAL_",Key:"UPNPWmpSource",Default:"0"}).subscribe({next:e=>this.UPNPWmpSource=e.String,error:()=>this.errorCount++}),this.mythService.GetSetting({HostName:this.hostName,Key:"MiscStatusScript",Default:""}).subscribe({next:e=>this.MiscStatusScript=e.String,error:()=>this.errorCount++}),this.mythService.GetSetting({HostName:"_GLOBAL_",Key:"DisableAutomaticBackup",Default:"0"}).subscribe({next:e=>this.DisableAutomaticBackup="1"==e.String,error:()=>this.errorCount++}),this.mythService.GetSetting({HostName:this.hostName,Key:"DisableFirewireReset",Default:"0"}).subscribe({next:e=>this.DisableFirewireReset="1"==e.String,error:()=>this.errorCount++})}ngOnInit(){}ngAfterViewInit(){this.setupService.setCurrentForm(this.currentForm)}saveForm(){this.successCount=0,this.errorCount=0,this.mythService.PutSetting({HostName:"_GLOBAL_",Key:"MasterBackendOverride",Value:this.MasterBackendOverride?"1":"0"}).subscribe(this.miscObserver),this.mythService.P
utSetting({HostName:"_GLOBAL_",Key:"DeletesFollowLinks",Value:this.DeletesFollowLinks?"1":"0"}).subscribe(this.miscObserver),this.mythService.PutSetting({HostName:this.hostName,Key:"TruncateDeletesSlowly",Value:this.TruncateDeletesSlowly?"1":"0"}).subscribe(this.miscObserver),this.mythService.PutSetting({HostName:"_GLOBAL_",Key:"HDRingbufferSize",Value:String(this.HDRingbufferSize)}).subscribe(this.miscObserver),this.mythService.PutSetting({HostName:"_GLOBAL_",Key:"StorageScheduler",Value:this.StorageScheduler}).subscribe(this.miscObserver),this.mythService.PutSetting({HostName:"_GLOBAL_",Key:"UPNPWmpSource",Value:this.UPNPWmpSource}).subscribe(this.miscObserver),this.mythService.PutSetting({HostName:this.hostName,Key:"MiscStatusScript",Value:this.MiscStatusScript}).subscribe(this.miscObserver),this.mythService.PutSetting({HostName:"_GLOBAL_",Key:"DisableAutomaticBackup",Value:this.DisableAutomaticBackup?"1":"0"}).subscribe(this.miscObserver),this.mythService.PutSetting({HostName:th
is.hostName,Key:"DisableFirewireReset",Value:this.DisableFirewireReset?"1":"0"}).subscribe(this.miscObserver)}}return
t.\u0275fac=function(e){return
new(e||t)(D(Me),D(Oe),D(qt))},t.\u0275cmp=z({type:t,selectors:[["app-misc-settings"]],viewQuery:function(e,n){if(1&e&&W(sQ,5),2&e){let
s;V(s=B())&&(n.currentForm=s.first)}},decls:7,vars:0,consts:[["name","miscsettings",1,"ml-3","mr-3"],["miscsettings","ngForm"],[1,"m-5"],["pTemplate","title"],["pTemplate","subtitle"],["pTemplate","content"],["pTemplate","footer"],[1,"grid"],[1,"mb-4","w-full",3,"legend","toggleable","collapsed"],[1,"form-group","field"],["name","MasterBackendOverride",1,"mb-2","w-full","label",3,"ngModel","binary","label","ngModelChange"],[1,"block"],["name","DeletesFollowLinks",1,"mb-2","w-full","label",3,"ngModel","binary","label","ngModelChange"],["name","TruncateDeletesSlowly",1,"mb-2","w-full","label",3,"ngModel","binary","label","ngModelChange"],["for","HDRingbufferSize",1,"label","block"],["name","HDRingbufferSiz
e","id","HDRingbufferSize",3,"ngModel"...
t",4,"ngIf"],["severity","error",3,"text",4,"ngIf"],["icon","pi
pi-save","iconPos","left",1,"col","pr-1",3,"label","disabled","onClick"],["severity","success",3,"text"],["severity","error",3,"text"]],template:function(e,n){1&e&&(l(0,"form",0,1)(2,"p-card",2),_(3,rQ,2,3,"ng-template",3),_(4,oQ,2,3,"ng-template",4),_(5,aQ,70,84,"ng-template",5),_(6,uQ,6,6,"ng-template",6),c()())},directives:[ze,Ue,He,Ne,ne,Ui,sn,Te,_e,pt,Ot,Ye,Q,qe,ve],pipes:[ce],styles:["a[_ngcontent-%COMP%]:link,
a[_ngcontent-%COMP%]:visited,
a[_ngcontent-%COMP%]:active{background-color:#fff}"]}),t})();const
pQ=["eitscanopt"];function
hQ(t,i){1&t&&(g(0),m(1,"translate")),2&t&&T("
",f(1,1,"settings.eit.title")," ")}function
mQ(t,i){1&t&&(g(0),m(1,"translate")),2&t&&T("
",f(1,1,"settings.eit.subtitle")," ")}function
fQ(t,i){if(1&t){const
e=I();l(0,"div",7)(1,"div",8)(2,"div",9)(3,"label",10),g(4),m(5,"translate"),c(),l(6,"p-inputNumber",11),C("ngModelChange",function(s){return
v(e),d().EITTransportTimeout=s}),c(),l(7,
"small",12),g(8),m(9,"translate"),c()(),l(10,"div",9)(11,"label",13),g(12),m(13,"translate"),c(),l(14,"p-inputNumber",14),C("ngModelChange",function(s){return
v(e),d().EITCrawIdleStart=s}),c(),l(15,"small",12),g(16),m(17,"translate"),c()(),l(18,"div",9)(19,"label",15),g(20),m(21,"translate"),c(),l(22,"p-inputNumber",16),C("ngModelChange",function(s){return
v(e),d().EITScanPeriod=s}),c(),l(23,"small",12),g(24),m(25,"translate"),c()()()()}if(2&t){const
e=d();a(4),S(f(5,21,"settings.eit.timeout_label")),a(2),p("ngModel",e.EITTransportTimeout)("showButtons",!0)("min",1)("max",15)("step",1),a(2),T("
",f(9,23,"settings.eit.timeout_desc"),"
"),a(4),S(f(13,25,"settings.eit.crawl_label")),a(2),p("ngModel",e.EITCrawIdleStart)("showButtons",!0)("min",30)("max",7200)("step",30),a(2),T("
",f(17,27,"settings.eit.crawl_desc"),"
"),a(4),S(f(21,29,"settings.eit.scan_label")),a(2),p("ngModel",e.EITScanPeriod)("showButtons",!0)("min",5)("max",60)("step",5),a(2),T("
",f(25,31,"settings.eit.scan_desc"),
" ")}}function
gQ(t,i){1&t&&(k(0,"p-message",22),m(1,"translate")),2&t&&x("text",f(1,1,"common.savesuccess"))}function
_Q(t,i){1&t&&(k(0,"p-message",23),m(1,"translate")),2&t&&x("text",f(1,1,"common.networkfail"))}function
bQ(t,i){if(1&t){const
e=I();l(0,"div",17)(1,"div",18),_(2,gQ,2,3,"p-message",19),_(3,_Q,2,3,"p-message",20),c(),l(4,"p-button",21),C("onClick",function(){v(e);const
s=d(),r=F(1);return
s.saveForm(),r.form.markAsPristine()}),m(5,"translate"),c()()}if(2&t){const
e=d(),n=F(1);a(2),p("ngIf",e.successCount>0&&0==e.errorCount&&!n.dirty),a(1),p("ngIf",e.errorCount>0),a(1),x("label",f(5,4,"common.save")),p("disabled",!n.dirty||e.setupService.schedulingEnabled)}}let
vQ=(()=>{class
t{constructor(e,n){this.setupService=e,this.mythService=n,this.successCount=0,this.errorCount=0,this.EITTransportTimeout=5,this.EITCrawIdleStart=60,this.EITScanPeriod=15,this.eitObserver={next:s=>{s.bool?this.successCount++:(this.errorCount++,this.currentForm&&this.currentForm.form.markAsDirty())
},error:s=>{console.error(s),this.errorCount++,this.currentForm&&this.currentForm.form.markAsDirty()}},this.getEITScanner()}ngOnInit(){}ngAfterViewInit(){this.setupService.setCurrentForm(this.currentForm)}getEITScanner(){this.mythService.GetSetting({HostName:"_GLOBAL_",Key:"EITTransportTimeout",Default:"5"}).subscribe({next:e=>this.EITTransportTimeout=Number(e.String),error:()=>this.errorCount++}),this.mythService.GetSetting({HostName:"_GLOBAL_",Key:"EITCrawIdleStart",Default:"60"}).subscribe({next:e=>this.EITCrawIdleStart=Number(e.String),error:()=>this.errorCount++}),this.mythService.GetSetting({HostName:"_GLOBAL_",Key:"EITScanPeriod",Default:"15"}).subscribe({next:e=>this.EITScanPeriod=Number(e.String),error:()=>this.errorCount++})}saveForm(){this.successCount=0,this.errorCount=0,this.mythService.PutSetting({HostName:"_GLOBAL_",Key:"EITTransportTimeout",Value:String(this.EITTransportTimeout)}).subscribe(this.eitObserver),this.mythService.PutSetting({HostName:"_GLOBAL_",Key:"EITCr
awIdleStart",Value:String(this.EITCrawIdleStart)}).subscribe(this.eitObserver),this.mythService.PutSetting({HostName:"_GLOBAL_",Key:"EITScanPeriod",Value:String(this.EITScanPeriod)}).subscribe(this.eitObserver)}}return
t.\u0275fac=function(e){return
new(e||t)(D(Me),D(qt))},t.\u0275cmp=z({type:t,selectors:[["app-eit-scanner"]],viewQuery:function(e,n){if(1&e&&W(pQ,5),2&e){let
s;V(s=B())&&(n.currentForm=s.first)}},decls:7,vars:0,consts:[["name","eitscanopt",1,"ml-3","mr-3"],["eitscanopt","ngForm"],[1,"m-5"],["pTemplate","title"],["pTemplate","subtitle"],["pTemplate","content"],["pTemplate","footer"],[1,"grid"],[1,"mb-4","w-full"],[1,"form-group","field"],["for","EITTransportTimeout",1,"label","block"],["name","EITTransportTimeout","id","EITTransportTimeout",3,"ngModel","showButtons","min","max","step","ngModelChange"],[1,"block"],["for","EITCrawIdleStart",1,"label","block"],["name","EITCrawIdleStart","id","EITCrawIdleStart",3,"ngModel","showButtons","min","max","step","ngModelChange"],
["for","EITScanPeriod",1,"label","block"],["name","EITScanPeriod","id","EITScanPeriod",3,"ngModel","showButtons","min","max","step","ngModelChange"],[1,"grid","nogutter"],[1,"col-12"],["severity","success",3,"text",4,"ngIf"],["severity","error",3,"text",4,"ngIf"],["icon","pi
pi-save","iconPos","left",1,"col","pr-1",3,"label","disabled","onClick"],["severity","success",3,"text"],["severity","error",3,"text"]],template:function(e,n){1&e&&(l(0,"form",0,1)(2,"p-card",2),_(3,hQ,2,3,"ng-template",3),_(4,mQ,2,3,"ng-template",4),_(5,fQ,26,33,"ng-template",5),_(6,bQ,6,6,"ng-template",6),c()())},directives:[ze,Ue,He,Ne,ne,pt,Te,_e,Q,qe,ve],pipes:[ce],styles:[""]}),t})();const
CQ=["shutwakeopt"];function
yQ(t,i){1&t&&(g(0),m(1,"translate")),2&t&&T("
",f(1,1,"settings.shutwake.title")," ")}function
wQ(t,i){1&t&&(g(0),m(1,"translate")),2&t&&T("
",f(1,1,"settings.shutwake.subtitle")," ")}function
TQ(t,i){if(1&t){const
e=I();l(0,"div",7)(1,"div",8)(2,"div",9)(3,"label",10),g(4),m(5,"translate"),c(
),l(6,"input",11),C("ngModelChange",function(s){return
v(e),d().startupCommand=s}),c(),l(7,"small",12),g(8),m(9,"translate"),c()(),l(10,"div",9)(11,"p-checkbox",13),C("ngModelChange",function(s){return
v(e),d().blockSDWUwithoutClient=s}),m(12,"translate"),c(),l(13,"small",12),g(14),m(15,"translate"),c()(),l(16,"div",9)(17,"label",14),g(18),m(19,"translate"),c(),l(20,"p-inputNumber",15),C("ngModelChange",function(s){return
v(e),d().idleTimeoutSecs=s}),c(),l(21,"small",12),g(22),m(23,"translate"),c()(),l(24,"div",9)(25,"label",16),g(26),m(27,"translate"),c(),l(28,"p-inputNumber",17),C("ngModelChange",function(s){return
v(e),d().idleWaitForRecordingTime=s}),c(),l(29,"small",12),g(30),m(31,"translate"),c()(),l(32,"div",9)(33,"label",18),g(34),m(35,"translate"),c(),l(36,"p-inputNumber",19),C("ngModelChange",function(s){return
v(e),d().StartupSecsBeforeRecording=s}),c(),l(37,"small",12),g(38),m(39,"translate"),c()(),l(40,"div",9)(41,"label",20),g(42),m(43,"translate"),c(),l(44,"input",21)
,C("ngModelChange",function(s){return
v(e),d().WakeupTimeFormat=s}),c(),l(45,"small",12),g(46),m(47,"translate"),c()(),l(48,"div",9)(49,"label",22),g(50),m(51,"translate"),c(),l(52,"input",23),C("ngModelChange",function(s){return
v(e),d().SetWakeuptimeCommand=s}),c(),l(53,"small",12),g(54),m(55,"translate"),c()(),l(56,"div",9)(57,"label",24),g(58),m(59,"translate"),c(),l(60,"input",25),C("ngModelChange",function(s){return
v(e),d().ServerHaltCommand=s}),c(),l(61,"small",12),g(62),m(63,"translate"),c()(),l(64,"div",9)(65,"label",26),g(66),m(67,"translate"),c(),l(68,"input",27),C("ngModelChange",function(s){return
v(e),d().preSDWUCheckCommand=s}),c(),l(69,"small",12),g(70),m(71,"translate"),c()()()()}if(2&t){const
e=d();a(4),S(f(5,40,"settings.shutwake.startcmd_label")),a(2),p("ngModel",e.startupCommand),a(2),T("
",f(9,42,"settings.shutwake.startcmd_desc"),"
"),a(3),x("label",f(12,44,"settings.shutwake.block_label")),p("ngModel",e.blockSDWUwithoutClient)("binary",!0),a(3),T("
",f(15,46
,"settings.shutwake.block_desc"),"
"),a(4),T("",f(19,48,"settings.shutwake.idletime_label"),"}"),a(2),p("ngModel",e.idleTimeoutSecs)("showButtons",!0)("min",0)("max",1200)("step",5),a(2),T("
",f(23,50,"settings.shutwake.idletime_desc"),"
"),a(4),S(f(27,52,"settings.shutwake.maxwait_label")),a(2),p("ngModel",e.idleWaitForRecordingTime)("showButtons",!0)("min",0)("max",300)("step",1),a(2),T("
",f(31,54,"settings.shutwake.maxwait_desc"),"
"),a(4),S(f(35,56,"settings.shutwake.startbefore_label")),a(2),p("ngModel",e.StartupSecsBeforeRecording)("showButtons",!0)("min",0)("max",300)("step",1),a(2),T("
",f(39,58,"settings.shutwake.startbefore_desc"),"
"),a(4),S(f(43,60,"settings.shutwake.timeformat_label")),a(2),p("ngModel",e.WakeupTimeFormat),a(2),T("
",f(47,62,"settings.shutwake.timeformat_desc"),"
"),a(4),S(f(51,64,"settings.shutwake.timecmd_label")),a(2),p("ngModel",e.SetWakeuptimeCommand),a(2),T("
",f(55,66,"settings.shutwake.timecmd_desc"),"
"),a(4),S(f(59,68,"settings.shutwake.server
halt_label")),a(2),p("ngModel",e.ServerHaltCommand),a(2),T("
",f(63,70,"settings.shutwake.serverhalt_desc"),"
"),a(4),S(f(67,72,"settings.shutwake.preshut_label")),a(2),p("ngModel",e.preSDWUCheckCommand),a(2),T("
",f(71,74,"settings.shutwake.preshut_desc")," ")}}function
SQ(t,i){1&t&&(k(0,"p-message",33),m(1,"translate")),2&t&&x("text",f(1,1,"common.savesuccess"))}function
xQ(t,i){1&t&&(k(0,"p-message",34),m(1,"translate")),2&t&&x("text",f(1,1,"common.networkfail"))}function
DQ(t,i){if(1&t){const
e=I();l(0,"div",28)(1,"div",29),_(2,SQ,2,3,"p-message",30),_(3,xQ,2,3,"p-message",31),c(),l(4,"p-button",32),C("onClick",function(){v(e);const
s=d(),r=F(1);return
s.saveForm(),r.form.markAsPristine()}),m(5,"translate"),c()()}if(2&t){const
e=d(),n=F(1);a(2),p("ngIf",e.successCount>0&&0==e.errorCount&&!n.dirty),a(1),p("ngIf",e.errorCount>0),a(1),x("label",f(5,4,"common.save")),p("disabled",!n.dirty||e.setupService.schedulingEnabled)}}let
MQ=(()=>{class t{constructor(e,n){this.setupService=e,t
his.mythService=n,this.successCount=0,this.errorCount=0,this.startupCommand="",this.blockSDWUwithoutClient=!0,this.idleTimeoutSecs=0,this.idleWaitForRecordingTime=15,this.StartupSecsBeforeRecording=120,this.WakeupTimeFormat="hh
=mm
yyyy-MM-dd",this.SetWakeuptimeCommand="",this.ServerHaltCommand="sudo
/sbin/halt
-p",this.preSDWUCheckCommand="",this.swObserver={next:s=>{s.bool?this.successCount++:(this.errorCount++,this.currentForm&&this.currentForm.form.markAsDirty())},error:s=>{console.error(s),this.errorCount++,this.currentForm&&this.currentForm.form.markAsDirty()}},this.getShutWake()}ngOnInit(){}ngAfterViewInit(){this.setupService.setCurrentForm(this.currentForm)}getShutWake(){this.mythService.GetSetting({HostName:"_GLOBAL_",Key:"startupCommand",Default:""}).subscribe({next:e=>this.startupCommand=e.String,error:()=>this.errorCount++}),this.mythService.GetSetting({HostName:"_GLOBAL_",Key:"blockSDWUwithoutClient",Default:"1"}).subscribe({next:e=>this.blockSDWUwithoutClient="1"==e.St
ring,error:()=>this.errorCount++}),this.mythService.GetSetting({HostName:"_GLOBAL_",Key:"idleTimeoutSecs",Default:"0"}).subscribe({next:e=>this.idleTimeoutSecs=Number(e.String),error:()=>this.errorCount++}),this.mythService.GetSetting({HostName:"_GLOBAL_",Key:"idleWaitForRecordingTime",Default:""}).subscribe({next:e=>this.idleWaitForRecordingTime=Number(e.String),error:()=>this.errorCount++}),this.mythService.GetSetting({HostName:"_GLOBAL_",Key:"StartupSecsBeforeRecording",Default:"120"}).subscribe({next:e=>this.StartupSecsBeforeRecording=Number(e.String),error:()=>this.errorCount++}),this.mythService.GetSetting({HostName:"_GLOBAL_",Key:"WakeupTimeFormat",Default:"hh:mm
yyyy-MM-dd"}).subscribe({next:e=>this.WakeupTimeFormat=e.String,error:()=>this.errorCount++}),this.mythService.GetSetting({HostName:"_GLOBAL_",Key:"SetWakeuptimeCommand",Default:""}).subscribe({next:e=>this.SetWakeuptimeCommand=e.String,error:()=>this.errorCount++}),this.mythService.GetSetting({HostName:"_GLOBAL_",Ke
y:"ServerHaltCommand",Default:"sudo /sbin/halt
-p"}).subscribe({next:e=>this.ServerHaltCommand=e.String,error:()=>this.errorCount++}),this.mythService.GetSetting({HostName:"_GLOBAL_",Key:"preSDWUCheckCommand",Default:""}).subscribe({next:e=>this.preSDWUCheckCommand=e.String,error:()=>this.errorCount++})}saveForm(){this.successCount=0,this.errorCount=0,this.mythService.PutSetting({HostName:"_GLOBAL_",Key:"startupCommand",Value:this.startupCommand}).subscribe(this.swObserver),this.mythService.PutSetting({HostName:"_GLOBAL_",Key:"blockSDWUwithoutClient",Value:this.blockSDWUwithoutClient?"1":"0"}).subscribe(this.swObserver),this.mythService.PutSetting({HostName:"_GLOBAL_",Key:"idleTimeoutSecs",Value:String(this.idleTimeoutSecs)}).subscribe(this.swObserver),this.mythService.PutSetting({HostName:"_GLOBAL_",Key:"idleWaitForRecordingTime",Value:String(this.idleWaitForRecordingTime)}).subscribe(this.swObserver),this.mythService.PutSetting({HostName:"_GLOBAL_",Key:"StartupSecsBeforeRecording"
,Value:String(this.StartupSecsBeforeRecording)}).subscribe(this.swObserver),this.mythService.PutSetting({HostName:"_GLOBAL_",Key:"WakeupTimeFormat",Value:this.WakeupTimeFormat}).subscribe(this.swObserver),this.mythService.PutSetting({HostName:"_GLOBAL_",Key:"SetWakeuptimeCommand",Value:this.SetWakeuptimeCommand}).subscribe(this.swObserver),this.mythService.PutSetting({HostName:"_GLOBAL_",Key:"ServerHaltCommand",Value:this.ServerHaltCommand}).subscribe(this.swObserver),this.mythService.PutSetting({HostName:"_GLOBAL_",Key:"preSDWUCheckCommand",Value:this.preSDWUCheckCommand}).subscribe(this.swObserver)}}return
t.\u0275fac=function(e){return
new(e||t)(D(Me),D(qt))},t.\u0275cmp=z({type:t,selectors:[["app-shutdown-wakeup"]],viewQuery:function(e,n){if(1&e&&W(CQ,5),2&e){let
s;V(s=B())&&(n.currentForm=s.first)}},decls:7,vars:0,consts:[["name","shutwakeopt",1,"ml-3","mr-3"],["shutwakeopt","ngForm"],[1,"m-5"],["pTemplate","title"],["pTemplate","subtitle"],["pTemplate","content"],["pTemplate",
"footer"],[1,"grid"],[1,"mb-4","w-full"],[1,"form-group","field"],["for","startupCommand",1,"label","block"],["pInputText","","id","startupCommand","name","startupCommand",1,"mb-2","form-control","w-full",3,"ngModel","ngModelChange"],[1,"block"],["inputId","blockSDWUwithoutClient","name","blockSDWUwithoutClient",1,"mb-2","w-full","label",3,"ngModel","binary","label","ngModelChange"],["for","idleTimeoutSecs",1,"label","block"],["name","idleTimeoutSecs","id","idleTimeoutSecs",3,"ngModel","showButtons","min","max","step","ngModelChange"],["for","idleWaitForRecordingTime",1,"label","block"],["name","idleWaitForRecordingTime","id","idleWaitForRecordingTime",3,"ngModel","showButtons","min","max","step","ngModelChange"],["for","StartupSecsBeforeRecording",1,"label","block"],["name","StartupSecsBeforeRecording","id","StartupSecsBeforeRecording",3,"ngModel","showButtons","min","max","step","ngModelChange"],["for","WakeupTimeFormat",1,"label","block"],["pInputText","","id","WakeupTimeFormat",
"name","WakeupTimeFormat",1,"mb-2","form-control","w-full",3,"ngModel","ngModelChange"],["for","SetWakeuptimeCommand",1,"label","block"],["pInputText","","id","SetWakeuptimeCommand","name","SetWakeuptimeCommand",1,"mb-2","form-control","w-full",3,"ngModel","ngModelChange"],["for","ServerHaltCommand",1,"label","block"],["pInputText","","id","ServerHaltCommand","name","ServerHaltCommand",1,"mb-2","form-control","w-full",3,"ngModel","ngModelChange"],["for","preSDWUCheckCommand",1,"label","block"],["pInputText","","id","preSDWUCheckCommand","name","preSDWUCheckCommand",1,"mb-2","form-control","w-full",3,"ngModel","ngModelChange"],[1,"grid","nogutter"],[1,"col-12"],["severity","success",3,"text",4,"ngIf"],["severity","error",3,"text",4,"ngIf"],["icon","pi
pi-save","iconPos","left",1,"col","pr-1",3,"label","disabled","onClick"],["severity","success",3,"text"],["severity","error",3,"text"]],template:function(e,n){1&e&&(l(0,"form",0,1)(2,"p-card",2),_(3,yQ,2,3,"ng-template",3),_(4,wQ,2,3,"n
g-template",4),_(5,TQ,72,76,"ng-template",5),_(6,DQ,6,6,"ng-template",6),c()())},directives:[ze,Ue,He,Ne,ne,Ye,Te,_e,sn,pt,Q,qe,ve],pipes:[ce],styles:[""]}),t})();const
kQ=["backendwakeup"];function
IQ(t,i){1&t&&(g(0),m(1,"translate")),2&t&&T("
",f(1,1,"settings.backendwake.title")," ")}function
EQ(t,i){1&t&&(g(0),m(1,"translate")),2&t&&T("
",f(1,1,"settings.backendwake.subtitle")," ")}function
RQ(t,i){if(1&t){const
e=I();l(0,"div",7)(1,"p-fieldset",8),m(2,"translate"),l(3,"div",9)(4,"label",10),g(5),m(6,"translate"),c(),l(7,"p-inputNumber",11),C("ngModelChange",function(s){return
v(e),d().WOLbackendReconnectWaitTime=s}),c(),l(8,"small",12),g(9),m(10,"translate"),c()(),l(11,"div",9)(12,"label",13),g(13),m(14,"translate"),c(),l(15,"p-inputNumber",14),C("ngModelChange",function(s){return
v(e),d().WOLbackendConnectRetry=s}),c(),l(16,"small",12),g(17),m(18,"translate"),c()(),l(19,"div",9)(20,"label",15),g(21),m(22,"translate"),c(),l(23,"input",16),C("ngModelChange",function(s){return
v(
e),d().WOLbackendCommand=s}),c(),l(24,"small",12),g(25),m(26,"translate"),c()()(),l(27,"p-fieldset",8),m(28,"translate"),l(29,"div",9)(30,"label",17),g(31),m(32,"translate"),c(),l(33,"input",18),C("ngModelChange",function(s){return
v(e),d().SleepCommand=s}),c(),l(34,"small",12),g(35),m(36,"translate"),c()(),l(37,"div",9)(38,"label",19),g(39),m(40,"translate"),c(),l(41,"input",20),C("ngModelChange",function(s){return
v(e),d().WakeUpCommand=s}),c(),l(42,"small",12),g(43),m(44,"translate"),c()()()()}if(2&t){const
e=d();a(1),x("legend",f(2,29,"settings.backendwake.master.title")),p("toggleable",!0)("collapsed",!0),a(4),S(f(6,31,"settings.backendwake.master.delay_label")),a(2),p("ngModel",e.WOLbackendReconnectWaitTime)("showButtons",!0)("min",0)("max",1200)("step",5),a(2),T("
",f(10,33,"settings.backendwake.master.delay_desc"),"
"),a(4),S(f(14,35,"settings.backendwake.master.attempts_label")),a(2),p("ngModel",e.WOLbackendConnectRetry)("showButtons",!0)("min",1)("max",60)("step",1),a(2),T
(" ",f(18,37,"settings.backendwake.master.attempts_desc"),"
"),a(4),S(f(22,39,"settings.backendwake.master.cmd_label")),a(2),p("ngModel",e.WOLbackendCommand),a(2),T("
",f(26,41,"settings.backendwake.master.cmd_desc"),"
"),a(2),x("legend",f(28,43,"settings.backendwake.slave.title")),p("toggleable",!0)("collapsed",!0),a(4),S(f(32,45,"settings.backendwake.slave.sleep_label")),a(2),p("ngModel",e.SleepCommand),a(2),T("
",f(36,47,"settings.backendwake.slave.sleep_desc"),"
"),a(4),S(f(40,49,"settings.backendwake.slave.wake_label")),a(2),p("ngModel",e.WakeUpCommand),a(2),T("
",f(44,51,"settings.backendwake.slave.wake_desc")," ")}}function
LQ(t,i){1&t&&(k(0,"p-message",26),m(1,"translate")),2&t&&x("text",f(1,1,"common.savesuccess"))}function
OQ(t,i){1&t&&(k(0,"p-message",27),m(1,"translate")),2&t&&x("text",f(1,1,"common.networkfail"))}function
AQ(t,i){if(1&t){const
e=I();l(0,"div",21)(1,"div",22),_(2,LQ,2,3,"p-message",23),_(3,OQ,2,3,"p-message",24),c(),l(4,"p-button",25),C("onClick",functio
n(){v(e);const s=d(),r=F(1);return
s.saveForm(),r.form.markAsPristine()}),m(5,"translate"),c()()}if(2&t){const
e=d(),n=F(1);a(2),p("ngIf",e.successCount>0&&0==e.errorCount&&!n.dirty),a(1),p("ngIf",e.errorCount>0),a(1),x("label",f(5,4,"common.save")),p("disabled",!n.dirty||e.setupService.schedulingEnabled)}}let
PQ=(()=>{class
t{constructor(e,n){this.setupService=e,this.mythService=n,this.hostName="",this.successCount=0,this.errorCount=0,this.WOLbackendReconnectWaitTime=0,this.WOLbackendConnectRetry=5,this.WOLbackendCommand="",this.SleepCommand="",this.WakeUpCommand="",this.bewObserver={next:s=>{s.bool?this.successCount++:(this.errorCount++,this.currentForm&&this.currentForm.form.markAsDirty())},error:s=>{console.error(s),this.errorCount++,this.currentForm&&this.currentForm.form.markAsDirty()}}}ngOnInit(){}ngAfterViewInit(){this.setupService.setCurrentForm(this.currentForm)}getBackendWake(){this.mythService.GetHostName().subscribe({next:e=>{this.hostName=e.String,this.getSettings()},e
rror:()=>this.errorCount++})}getSettings(){this.mythService.GetSetting({HostName:"_GLOBAL_",Key:"WOLbackendReconnectWaitTime",Default:"0"}).subscribe({next:e=>this.WOLbackendReconnectWaitTime=Number(e.String),error:()=>this.errorCount++}),this.mythService.GetSetting({HostName:"_GLOBAL_",Key:"WOLbackendConnectRetry",Default:"5"}).subscribe({next:e=>this.WOLbackendConnectRetry=Number(e.String),error:()=>this.errorCount++}),this.mythService.GetSetting({HostName:"_GLOBAL_",Key:"WOLbackendCommand",Default:""}).subscribe({next:e=>this.WOLbackendCommand=e.String,error:()=>this.errorCount++}),this.mythService.GetSetting({HostName:this.hostName,Key:"SleepCommand",Default:""}).subscribe({next:e=>this.SleepCommand=e.String,error:()=>this.errorCount++}),this.mythService.GetSetting({HostName:this.hostName,Key:"WakeUpCommand",Default:""}).subscribe({next:e=>this.WakeUpCommand=e.String,error:()=>this.errorCount++})}saveForm(){this.successCount=0,this.errorCount=0,this.mythService.PutSetting({HostN
ame:"_GLOBAL_",Key:"WOLbackendReconnectWaitTime",Value:String(this.WOLbackendReconnectWaitTime)}).subscribe(this.bewObserver),this.mythService.PutSetting({HostName:"_GLOBAL_",Key:"WOLbackendConnectRetry",Value:String(this.WOLbackendConnectRetry)}).subscribe(this.bewObserver),this.mythService.PutSetting({HostName:"_GLOBAL_",Key:"WOLbackendCommand",Value:this.WOLbackendCommand}).subscribe(this.bewObserver),this.mythService.PutSetting({HostName:this.hostName,Key:"SleepCommand",Value:this.SleepCommand}).subscribe(this.bewObserver),this.mythService.PutSetting({HostName:this.hostName,Key:"WakeUpCommand",Value:this.WakeUpCommand}).subscribe(this.bewObserver)}}return
t.\u0275fac=function(e){return
new(e||t)(D(Me),D(qt))},t.\u0275cmp=z({type:t,selectors:[["app-backend-wakeup"]],viewQuery:function(e,n){if(1&e&&W(kQ,5),2&e){let
s;V(s=B())&&(n.currentForm=s.first)}},decls:7,vars:0,consts:[["name","backendwakeup",1,"ml-3","mr-3"],["backendwakeup","ngForm"],[1,"m-5"],["pTemplate","title"],["pTemp
late","subtitle"],["pTemplate","content"],["pTemplate","footer"],[1,"grid"],[1,"mb-4","w-full",3,"legend","toggleable","collapsed"],[1,"form-group","field"],["for","WOLbackendReconnectWaitTime",1,"label","block"],["name","WOLbackendReconnectWaitTime","id","WOLbackendReconnectWaitTime",3,"ngModel","showButtons","min","max","step","ngModelChange"],[1,"block"],["for","WOLbackendConnectRetry",1,"label","block"],["name","WOLbackendConnectRetry","id","WOLbackendConnectRetry",3,"ngModel","showButtons","min","max","step","ngModelChange"],["for","WOLbackendCommand",1,"label","block"],["pInputText","","id","WOLbackendCommand","name","WOLbackendCommand",1,"mb-2","form-control","w-full",3,"ngModel","ngModelChange"],["for","SleepCommand",1,"label","block"],["pInputText","","id","SleepCommand","name","SleepCommand",1,"mb-2","form-control","w-full",3,"ngModel","ngModelChange"],["for","WakeUpCommand",1,"label","block"],["pInputText","","id","WakeUpCommand","name","WakeUpCommand",1,"mb-2","form-cont
rol","w-full",3,"ngModel","ngModelChange"],[1,"grid","nogutter"],[1,"col-12"],["severity","success",3,"text",4,"ngIf"],["severity","error",3,"text",4,"ngIf"],["icon","pi
pi-save","iconPos","left",1,"col","pr-1",3,"label","disabled","onClick"],["severity","success",3,"text"],["severity","error",3,"text"]],template:function(e,n){1&e&&(l(0,"form",0,1)(2,"p-card",2),_(3,IQ,2,3,"ng-template",3),_(4,EQ,2,3,"ng-template",4),_(5,RQ,45,53,"ng-template",5),_(6,AQ,6,6,"ng-template",6),c()())},directives:[ze,Ue,He,Ne,ne,Ui,pt,Te,_e,Ye,Q,qe,ve],pipes:[ce],styles:[""]}),t})();const
FQ=["backendcontrol"];function
NQ(t,i){1&t&&(g(0),m(1,"translate")),2&t&&T("
",f(1,1,"settings.backendctrl.title")," ")}function
VQ(t,i){1&t&&(g(0),m(1,"translate")),2&t&&T("
",f(1,1,"settings.backendctrl.subtitle")," ")}function
BQ(t,i){if(1&t){const
e=I();l(0,"div",7)(1,"div",8)(2,"div",9)(3,"label",10),g(4),m(5,"translate"),c(),l(6,"input",11,12),C("ngModelChange",function(s){return
v(e),d().BackendStopCommand=s}),c
(),l(8,"small",13),g(9),m(10,"translate"),c()(),l(11,"div",9)(12,"label",14),g(13),m(14,"translate"),c(),l(15,"input",15,12),C("ngModelChange",function(s){return
v(e),d().BackendStartCommand=s}),c(),l(17,"small",13),g(18),m(19,"translate"),c()()()()}if(2&t){const
e=d();a(4),S(f(5,6,"settings.backendctrl.stop_label")),a(2),p("ngModel",e.BackendStopCommand),a(3),T("
",f(10,8,"settings.backendctrl.stop_desc"),"
"),a(4),S(f(14,10,"settings.backendctrl.start_label")),a(2),p("ngModel",e.BackendStartCommand),a(3),T("
",f(19,12,"settings.backendctrl.start_desc")," ")}}function
HQ(t,i){1&t&&(k(0,"p-message",21),m(1,"translate")),2&t&&x("text",f(1,1,"common.savesuccess"))}function
qQ(t,i){1&t&&(k(0,"p-message",22),m(1,"translate")),2&t&&x("text",f(1,1,"common.networkfail"))}function
GQ(t,i){if(1&t){const
e=I();l(0,"div",16)(1,"div",17),_(2,HQ,2,3,"p-message",18),_(3,qQ,2,3,"p-message",19),c(),l(4,"p-button",20),C("onClick",function(){v(e);const
s=d(),r=F(1);return s.saveForm(),r.form.markAsPr
istine()}),m(5,"translate"),c()()}if(2&t){const
e=d(),n=F(1);a(2),p("ngIf",e.successCount>0&&0==e.errorCount&&!n.dirty),a(1),p("ngIf",e.errorCount>0),a(1),x("label",f(5,4,"common.save")),p("disabled",!n.dirty||e.setupService.schedulingEnabled)}}let
UQ=(()=>{class
t{constructor(e,n){this.setupService=e,this.mythService=n,this.successCount=0,this.errorCount=0,this.BackendStopCommand="killall
mythbackend",this.BackendStartCommand="mythbackend",this.becObserver={next:s=>{s.bool?this.successCount++:(this.errorCount++,this.currentForm&&this.currentForm.form.markAsDirty())},error:s=>{console.error(s),this.errorCount++,this.currentForm&&this.currentForm.form.markAsDirty()}}}ngOnInit(){}ngAfterViewInit(){this.setupService.setCurrentForm(this.currentForm)}getBackendControl(){this.mythService.GetSetting({HostName:"_GLOBAL_",Key:"BackendStopCommand",Default:"killall
mythbackend"}).subscribe({next:e=>this.BackendStopCommand=e.String,error:()=>this.errorCount++}),this.mythService.GetSetting({Host
Name:"_GLOBAL_",Key:"BackendStartCommand",Default:"mythbackend"}).subscribe({next:e=>this.BackendStartCommand=e.String,error:()=>this.errorCount++})}saveForm(){this.successCount=0,this.errorCount=0,this.mythService.PutSetting({HostName:"_GLOBAL_",Key:"BackendStopCommand",Value:this.BackendStopCommand}).subscribe(this.becObserver),this.mythService.PutSetting({HostName:"_GLOBAL_",Key:"BackendStartCommand",Value:this.BackendStartCommand}).subscribe(this.becObserver)}}return
t.\u0275fac=function(e){return
new(e||t)(D(Me),D(qt))},t.\u0275cmp=z({type:t,selectors:[["app-backend-control"]],viewQuery:function(e,n){if(1&e&&W(FQ,5),2&e){let
s;V(s=B())&&(n.currentForm=s.first)}},decls:7,vars:0,consts:[["name","backendcontrol",1,"ml-3","mr-3"],["backendcontrol","ngForm"],[1,"m-5"],["pTemplate","title"],["pTemplate","subtitle"],["pTemplate","content"],["pTemplate","footer"],[1,"grid"],[1,"mb-4","w-full"],[1,"form-group","field"],["for","BackendStopCommand",1,"label","block"],["pInputText","","id"
,"BackendStopCommand","name","BackendStopCommand",1,"mb-2","form-control","w-full",3,"ngModel","ngModelChange"],["MiscStatusScript","ngModel"],[1,"block"],["for","BackendStartCommand",1,"label","block"],["pInputText","","id","BackendStartCommand","name","BackendStartCommand",1,"mb-2","form-control","w-full",3,"ngModel","ngModelChange"],[1,"grid","nogutter"],[1,"col-12"],["severity","success",3,"text",4,"ngIf"],["severity","error",3,"text",4,"ngIf"],["icon","pi
pi-save","iconPos","left",1,"col","pr-1",3,"label","disabled","onClick"],["severity","success",3,"text"],["severity","error",3,"text"]],template:function(e,n){1&e&&(l(0,"form",0,1)(2,"p-card",2),_(3,NQ,2,3,"ng-template",3),_(4,VQ,2,3,"ng-template",4),_(5,BQ,20,14,"ng-template",5),_(6,GQ,6,6,"ng-template",6),c()())},directives:[ze,Ue,He,Ne,ne,Ye,Te,_e,Q,qe,ve],pipes:[ce],styles:[""]}),t})();const
zQ=["jobqbackend"],jQ=["JobQueueWindowStartHT"],$Q=["JobQueueWindowEndHT"];function
WQ(t,i){1&t&&(g(0),m(1,"translate")),2&t&&T("
",f
(1,1,"settings.jobqbackend.title")," ")}function
KQ(t,i){1&t&&(g(0),m(1,"translate")),2&t&&T("
",f(1,1,"settings.jobqbackend.subtitle")," ")}function
QQ(t,i){if(1&t){const
e=I();l(0,"div",7)(1,"div",8)(2,"div",9)(3,"label",10),g(4),m(5,"translate"),c(),l(6,"p-inputNumber",11),C("ngModelChange",function(s){return
v(e),d().JobQueueMaxSimultaneousJobs=s}),c(),l(7,"small",12),g(8),m(9,"translate"),c()(),l(10,"div",9)(11,"label",13),g(12),m(13,"translate"),c(),l(14,"p-inputNumber",14),C("ngModelChange",function(s){return
v(e),d().JobQueueCheckFrequency=s}),c(),l(15,"small",12),g(16),m(17,"translate"),c()(),l(18,"div",9)(19,"label",15),g(20),m(21,"translate"),c(),l(22,"p-calendar",16,17),C("ngModelChange",function(s){return
v(e),d().JobQueueWindowStart=s}),c(),l(24,"small",12),g(25),m(26,"translate"),c()(),l(27,"div",9)(28,"label",18),g(29),m(30,"translate"),c(),l(31,"p-calendar",19,20),C("ngModelChange",function(s){return
v(e),d().JobQueueWindowEnd=s}),c(),l(33,"small",12),g(34),m(35,"tr
anslate"),c()(),l(36,"div",9)(37,"label",21),g(38),m(39,"translate"),c(),l(40,"p-dropdown",22),C("ngModelChange",function(s){return
v(e),d().JobQueueCPU=s}),c(),l(41,"small",12),g(42),m(43,"translate"),c()(),l(44,"div",9)(45,"p-checkbox",23),C("ngModelChange",function(s){return
v(e),d().JobAllowMetadata=s}),m(46,"translate"),c(),l(47,"small",12),g(48),m(49,"translate"),c()(),l(50,"div",9)(51,"p-checkbox",24),C("ngModelChange",function(s){return
v(e),d().JobAllowCommFlag=s}),m(52,"translate"),c(),l(53,"small",12),g(54),m(55,"translate"),c()(),l(56,"div",9)(57,"p-checkbox",25),C("ngModelChange",function(s){return
v(e),d().JobAllowTranscode=s}),m(58,"translate"),c(),l(59,"small",12),g(60),m(61,"translate"),c()(),l(62,"div",9)(63,"p-checkbox",26),C("ngModelChange",function(s){return
v(e),d().JobAllowPreview=s}),m(64,"translate"),c(),l(65,"small",12),g(66),m(67,"translate"),c()(),l(68,"div",9)(69,"p-checkbox",27),C("ngModelChange",function(s){return
v(e),d().JobAllowUserJob1=s}),c(),l(70
,"small",12),g(71),m(72,"translate"),c()(),l(73,"div",9)(74,"p-checkbox",28),C("ngModelChange",function(s){return
v(e),d().JobAllowUserJob2=s}),c(),l(75,"small",12),g(76),m(77,"translate"),c()(),l(78,"div",9)(79,"p-checkbox",29),C("ngModelChange",function(s){return
v(e),d().JobAllowUserJob3=s}),c(),l(80,"small",12),g(81),m(82,"translate"),c()(),l(83,"div",9)(84,"p-checkbox",30),C("ngModelChange",function(s){return
v(e),d().JobAllowUserJob4=s}),c(),l(85,"small",12),g(86),m(87,"translate"),c()()()()}if(2&t){const
e=d();a(4),S(f(5,60,"settings.jobqbackend.maxjobs_label")),a(2),p("ngModel",e.JobQueueMaxSimultaneousJobs)("showButtons",!0)("min",1)("max",10)("step",1),a(2),T("
",f(9,62,"settings.jobqbackend.maxjobs_desc"),"
"),a(4),S(f(13,64,"settings.jobqbackend.freq_label")),a(2),p("ngModel",e.JobQueueCheckFrequency)("showButtons",!0)("min",5)("max",300)("step",5),a(2),T("
",f(17,66,"settings.jobqbackend.freq_desc"),"
"),a(4),S(f(21,68,"settings.jobqbackend.start_label")),a(2),p("ngMode
l",e.JobQueueWindowStart)("timeOnly",!0)("readonlyInput",!0),a(3),T("
",f(26,70,"settings.jobqbackend.start_desc"),"
"),a(4),S(f(30,72,"settings.jobqbackend.end_label")),a(2),p("ngModel",e.JobQueueWindowEnd)("timeOnly",!0)("readonlyInput",!0),a(3),T("
",f(35,74,"settings.jobqbackend.end_desc"),"
"),a(4),S(f(39,76,"settings.jobqbackend.cpu_label")),a(2),p("options",e.cpuOptions)("ngModel",e.JobQueueCPU),a(2),T("
",f(43,78,"settings.jobqbackend.cpu_desc"),"
"),a(3),x("label",f(46,80,"settings.jobqbackend.meta_label")),p("ngModel",e.JobAllowMetadata)("binary",!0),a(3),T("
",f(49,82,"settings.jobqbackend.allow_desc"),"
"),a(3),x("label",f(52,84,"settings.jobqbackend.comm_label")),p("ngModel",e.JobAllowCommFlag)("binary",!0),a(3),T("
",f(55,86,"settings.jobqbackend.allow_desc"),"
"),a(3),x("label",f(58,88,"settings.jobqbackend.trans_label")),p("ngModel",e.JobAllowTranscode)("binary",!0),a(3),T("
",f(61,90,"settings.jobqbackend.allow_desc"),"
"),a(3),x("label",f(64,92,"settings.jobqbacken
d.preview_label")),p("ngModel",e.JobAllowPreview)("binary",!0),a(3),T("
",f(67,94,"settings.jobqbackend.allow_desc"),"
"),a(3),x("label",e.JobQCmds.UserJobDesc[0]),p("ngModel",e.JobAllowUserJob1)("binary",!0),a(2),T("
",f(72,96,"settings.jobqbackend.allow_desc"),"
"),a(3),x("label",e.JobQCmds.UserJobDesc[1]),p("ngModel",e.JobAllowUserJob2)("binary",!0),a(2),T("
",f(77,98,"settings.jobqbackend.allow_desc"),"
"),a(3),x("label",e.JobQCmds.UserJobDesc[2]),p("ngModel",e.JobAllowUserJob3)("binary",!0),a(2),T("
",f(82,100,"settings.jobqbackend.allow_desc"),"
"),a(3),x("label",e.JobQCmds.UserJobDesc[3]),p("ngModel",e.JobAllowUserJob4)("binary",!0),a(2),T("
",f(87,102,"settings.jobqbackend.allow_desc")," ")}}function
JQ(t,i){1&t&&(k(0,"p-message",36),m(1,"translate")),2&t&&x("text",f(1,1,"common.savesuccess"))}function
YQ(t,i){1&t&&(k(0,"p-message",37),m(1,"translate")),2&t&&x("text",f(1,1,"common.networkfail"))}function
ZQ(t,i){if(1&t){const
e=I();l(0,"div",31)(1,"div",32),_(2,JQ,2,3,"p-mes
sage",33),_(3,YQ,2,3,"p-message",34),c(),l(4,"p-button",35),C("onClick",function(){v(e);const
s=d(),r=F(1);return
s.saveForm(),r.form.markAsPristine()}),m(5,"translate"),c()()}if(2&t){const
e=d(),n=F(1);a(2),p("ngIf",e.successCount>0&&0==e.errorCount&&!n.dirty),a(1),p("ngIf",e.errorCount>0),a(1),x("label",f(5,4,"common.save")),p("disabled",!n.dirty||e.setupService.schedulingEnabled)}}let
XQ=(()=>{class
t{constructor(e,n,s){this.setupService=e,this.translate=n,this.mythService=s,this.successCount=0,this.errorCount=0,this.hostName="",this.JobQueueMaxSimultaneousJobs=1,this.JobQueueCheckFrequency=60,this.JobQueueWindowStart=new
Date(0),this.JobQueueWindowStartHT$=new Je,this.JobQueueWindowEnd=new
Date(0),this.JobQueueWindowEndHT$=new
Je,this.JobQueueCPU="0",this.JobAllowMetadata=!0,this.JobAllowCommFlag=!0,this.JobAllowTranscode=!0,this.JobAllowPreview=!0,this.JobAllowUserJob1=!1,this.JobAllowUserJob2=!1,this.JobAllowUserJob3=!1,this.JobAllowUserJob4=!1,this.cpuOptions=[{name:"settings
.jobqbackend.cpu_low",code:"0"},{name:"settings.jobqbackend.cpu_med",code:"1"},{name:"settings.jobqbackend.cpu_high",code:"2"}],this.jqbObserver={next:r=>{r.bool?this.successCount++:(this.errorCount++,this.currentForm&&this.currentForm.form.markAsDirty())},error:r=>{console.error(r),this.errorCount++,this.currentForm&&this.currentForm.form.markAsDirty()}},this.getJobQBackend(),this.JobQueueWindowStartHT$.subscribe({complete:()=>this.JobQueueWindowStartHT.updateInputfield()}),this.JobQueueWindowEndHT$.subscribe({complete:()=>this.JobQueueWindowEndHT.updateInputfield()}),this.JobQCmds=this.setupService.getJobQCommands(),n.get(this.cpuOptions[0].name).subscribe(r=>this.cpuOptions[0].name=r),n.get(this.cpuOptions[1].name).subscribe(r=>this.cpuOptions[1].name=r),n.get(this.cpuOptions[2].name).subscribe(r=>this.cpuOptions[2].name=r)}ngOnInit(){}ngAfterViewInit(){this.setupService.setCurrentForm(this.currentForm)}getJobQBackend(){this.successCount=0,this.errorCount=0,this.setupService.pars
eTime(this.JobQueueWindowStart,"00:00"),this.setupService.parseTime(this.JobQueueWindowEnd,"23:59"),this.mythService.GetHostName().subscribe({next:e=>{this.hostName=e.String,this.getSettings()},error:()=>this.errorCount++})}getSettings(){this.mythService.GetSetting({HostName:this.hostName,Key:"JobQueueMaxSimultaneousJobs",Default:"1"}).subscribe({next:e=>this.JobQueueMaxSimultaneousJobs=Number(e.String),error:()=>this.errorCount++}),this.mythService.GetSetting({HostName:this.hostName,Key:"JobQueueCheckFrequency",Default:"60"}).subscribe({next:e=>this.JobQueueCheckFrequency=Number(e.String),error:()=>this.errorCount++}),this.JobQueueWindowStartHT$=this.mythService.GetSetting({HostName:this.hostName,Key:"JobQueueWindowStart",Default:"00:00"}),this.JobQueueWindowStartHT$.subscribe({next:e=>{this.setupService.parseTime(this.JobQueueWindowStart,e.String),this.JobQueueWindowStartHT.updateInputfield()},error:()=>this.errorCount++}),this.JobQueueWindowEndHT$=this.mythService.GetSetting({Hos
tName:this.hostName,Key:"JobQueueWindowEnd",Default:"23:59"}),this.JobQueueWindowEndHT$.subscribe({next:e=>{this.setupService.parseTime(this.JobQueueWindowEnd,e.String),this.JobQueueWindowEndHT.updateInputfield()},error:()=>this.errorCount++}),this.mythService.GetSetting({HostName:this.hostName,Key:"JobQueueCPU",Default:"0"}).subscribe({next:e=>this.JobQueueCPU=e.String,error:()=>this.errorCount++}),this.mythService.GetSetting({HostName:this.hostName,Key:"JobAllowMetadata",Default:"1"}).subscribe({next:e=>this.JobAllowMetadata="1"==e.String,error:()=>this.errorCount++}),this.mythService.GetSetting({HostName:this.hostName,Key:"JobAllowCommFlag",Default:"1"}).subscribe({next:e=>this.JobAllowCommFlag="1"==e.String,error:()=>this.errorCount++}),this.mythService.GetSetting({HostName:this.hostName,Key:"JobAllowTranscode",Default:"1"}).subscribe({next:e=>this.JobAllowTranscode="1"==e.String,error:()=>this.errorCount++}),this.mythService.GetSetting({HostName:this.hostName,Key:"JobAllowPrevi
ew",Default:"1"}).subscribe({next:e=>this.JobAllowPreview="1"==e.String,error:()=>this.errorCount++}),this.mythService.GetSetting({HostName:this.hostName,Key:"JobAllowUserJob1",Default:"0"}).subscribe({next:e=>this.JobAllowUserJob1="1"==e.String,error:()=>this.errorCount++}),this.mythService.GetSetting({HostName:this.hostName,Key:"JobAllowUserJob2",Default:"0"}).subscribe({next:e=>this.JobAllowUserJob2="1"==e.String,error:()=>this.errorCount++}),this.mythService.GetSetting({HostName:this.hostName,Key:"JobAllowUserJob3",Default:"0"}).subscribe({next:e=>this.JobAllowUserJob3="1"==e.String,error:()=>this.errorCount++}),this.mythService.GetSetting({HostName:this.hostName,Key:"JobAllowUserJob4",Default:"0"}).subscribe({next:e=>this.JobAllowUserJob4="1"==e.String,error:()=>this.errorCount++})}saveForm(){this.successCount=0,this.errorCount=0,this.mythService.PutSetting({HostName:this.hostName,Key:"JobQueueMaxSimultaneousJobs",Value:String(this.JobQueueMaxSimultaneousJobs)}).subscribe(this.
jqbObserver),this.mythService.PutSetting({HostName:this.hostName,Key:"JobQueueCheckFrequency",Value:String(this.JobQueueCheckFrequency)}).subscribe(this.jqbObserver),this.mythService.PutSetting({HostName:this.hostName,Key:"JobQueueWindowStart",Value:this.setupService.formatTime(this.JobQueueWindowStart)}).subscribe(this.jqbObserver),this.mythService.PutSetting({HostName:this.hostName,Key:"JobQueueWindowEnd",Value:this.setupService.formatTime(this.JobQueueWindowEnd)}).subscribe(this.jqbObserver),this.mythService.PutSetting({HostName:this.hostName,Key:"JobQueueCPU",Value:this.JobQueueCPU}).subscribe(this.jqbObserver),this.mythService.PutSetting({HostName:this.hostName,Key:"JobAllowMetadata",Value:this.JobAllowMetadata?"1":"0"}).subscribe(this.jqbObserver),this.mythService.PutSetting({HostName:this.hostName,Key:"JobAllowCommFlag",Value:this.JobAllowCommFlag?"1":"0"}).subscribe(this.jqbObserver),this.mythService.PutSetting({HostName:this.hostName,Key:"JobAllowTranscode",Value:this.JobAl
lowTranscode?"1":"0"}).subscribe(this.jqbObserver),this.mythService.PutSetting({HostName:this.hostName,Key:"JobAllowPreview",Value:this.JobAllowPreview?"1":"0"}).subscribe(this.jqbObserver),this.mythService.PutSetting({HostName:this.hostName,Key:"JobAllowUserJob1",Value:this.JobAllowUserJob1?"1":"0"}).subscribe(this.jqbObserver),this.mythService.PutSetting({HostName:this.hostName,Key:"JobAllowUserJob2",Value:this.JobAllowUserJob2?"1":"0"}).subscribe(this.jqbObserver),this.mythService.PutSetting({HostName:this.hostName,Key:"JobAllowUserJob3",Value:this.JobAllowUserJob3?"1":"0"}).subscribe(this.jqbObserver),this.mythService.PutSetting({HostName:this.hostName,Key:"JobAllowUserJob4",Value:this.JobAllowUserJob4?"1":"0"}).subscribe(this.jqbObserver)}}return
t.\u0275fac=function(e){return
new(e||t)(D(Me),D(Oe),D(qt))},t.\u0275cmp=z({type:t,selectors:[["app-jobqueue-backend"]],viewQuery:function(e,n){if(1&e&&(W(zQ,5),W(jQ,5),W($Q,5)),2&e){let
s;V(s=B())&&(n.currentForm=s.first),V(s=B())&&(n
.JobQueueWindowStartHT=s.first),V(s=B())&&(n.JobQueueWindowEndHT=s.first)}},decls:7,vars:0,consts:[["name","jobqbackend",1,"ml-3","mr-3"],["jobqbackend","ngForm"],[1,"m-5"],["pTemplate","title"],["pTemplate","subtitle"],["pTemplate","content"],["pTemplate","footer"],[1,"grid"],[1,"mb-4","w-full"],[1,"form-group","field"],["for","JobQueueMaxSimultaneousJobs",1,"label","block"],["name","JobQueueMaxSimultaneousJobs","id","JobQueueMaxSimultaneousJobs",3,"ngModel","showButtons","min","max","step","ngModelChange"],[1,"block"],["for","JobQueueCheckFrequency",1,"label","block"],["name","JobQueueCheckFrequency","id","JobQueueCheckFrequency",3,"ngModel","showButtons","min","max","step","ngModelChange"],["for","JobQueueWindowStart",1,"label","block"],["name","JobQueueWindowStart","id","JobQueueWindowStart","ngControl","JobQueueWindowStart",3,"ngModel","timeOnly","readonlyInput","ngModelChange"],["JobQueueWindowStartHT",""],["for","JobQueueWindowEnd",1,"label","block"],["name","JobQueueWindowEn
d","id","JobQueueWindowEnd","ngControl","JobQueueWindowEnd",3,"ngModel","timeOnly","readonlyInput","ngModelChange"],["JobQueueWindowEndHT",""],["for","JobQueueCPU",1,"label","block"],["optionLabel","name","optionValue","code","name","JobQueueCPU",1,"block","w-15rem","mb-2",3,"options","ngModel","ngModelChange"],["inputId","JobAllowMetadata","name","JobAllowMetadata",1,"label","mb-2","w-full",3,"ngModel","binary","label","ngModelChange"],["inputId","JobAllowCommFlag","name","JobAllowCommFlag",1,"label","mb-2","w-full",3,"ngModel","binary","label","ngModelChange"],["inputId","JobAllowTranscode","name","JobAllowTranscode",1,"label","mb-2","w-full",3,"ngModel","binary","label","ngModelChange"],["inputId","JobAllowPreview","name","JobAllowPreview",1,"label","mb-2","w-full",3,"ngModel","binary","label","ngModelChange"],["inputId","JobAllowUserJob1","name","JobAllowUserJob1",1,"label","mb-2","w-full",3,"ngModel","binary","label","ngModelChange"],["inputId","JobAllowUserJob2","name","JobAll
owUserJob2",1,"label","mb-2","w-full",3,"ngModel","binary","label","ngModelChange"],["inputId","JobAllowUserJob3","name","JobAllowUserJob3",1,"label","mb-2","w-full",3,"ngModel","binary","label","ngModelChange"],["inputId","JobAllowUserJob4","name","JobAllowUserJob4",1,"label","mb-2","w-full",3,"ngModel","binary","label","ngModelChange"],[1,"grid","nogutter"],[1,"col-12"],["severity","success",3,"text",4,"ngIf"],["severity","error",3,"text",4,"ngIf"],["icon","pi
pi-save","iconPos","left",1,"col","pr-1",3,"label","disabled","onClick"],["severity","success",3,"text"],["severity","error",3,"text"]],template:function(e,n){1&e&&(l(0,"form",0,1)(2,"p-card",2),_(3,WQ,2,3,"ng-template",3),_(4,KQ,2,3,"ng-template",4),_(5,QQ,88,104,"ng-template",5),_(6,ZQ,6,6,"ng-template",6),c()())},directives:[ze,Ue,He,Ne,ne,pt,Te,_e,xr,Ot,sn,Q,qe,ve],pipes:[ce],styles:[""]}),t})();const
eJ=["jobqglobal"];function
tJ(t,i){1&t&&(g(0),m(1,"translate")),2&t&&T("
",f(1,1,"settings.jobqglobal.title")," ")}functi
on nJ(t,i){}function iJ(t,i){if(1&t){const
e=I();l(0,"div",7)(1,"div",8)(2,"div",9)(3,"p-checkbox",10),C("ngModelChange",function(s){return
v(e),d().JobsRunOnRecordHost=s}),m(4,"translate"),c(),l(5,"small",11),g(6),m(7,"translate"),c()(),l(8,"div",9)(9,"p-checkbox",12),C("ngModelChange",function(s){return
v(e),d().AutoCommflagWhileRecording=s}),m(10,"translate"),c(),l(11,"small",11),g(12),m(13,"translate"),c()(),l(14,"div",9)(15,"label",13),g(16),m(17,"translate"),c(),l(18,"input",14),C("ngModelChange",function(s){return
v(e),d().JobQueueCommFlagCommand=s}),c(),l(19,"small",11),g(20),m(21,"translate"),c()(),l(22,"div",9)(23,"label",15),g(24),m(25,"translate"),c(),l(26,"input",16),C("ngModelChange",function(s){return
v(e),d().JobQueueTranscodeCommand=s}),c(),l(27,"small",11),g(28),m(29,"translate"),c()(),l(30,"div",9)(31,"p-checkbox",17),C("ngModelChange",function(s){return
v(e),d().AutoTranscodeBeforeAutoCommflag=s}),m(32,"translate"),c(),l(33,"small",11),g(34),m(35,"translate"),c()
(),l(36,"div",9)(37,"p-checkbox",18),C("ngModelChange",function(s){return
v(e),d().SaveTranscoding=s}),m(38,"translate"),c(),l(39,"small",11),g(40),m(41,"translate"),c()()()()}if(2&t){const
e=d();a(3),x("label",f(4,22,"settings.jobqglobal.runonrechost_label")),p("ngModel",e.JobsRunOnRecordHost)("binary",!0),a(3),T("
",f(7,24,"settings.jobqglobal.runonrechost_desc"),"
"),a(3),x("label",f(10,26,"settings.jobqglobal.startcomm_label")),p("ngModel",e.AutoCommflagWhileRecording)("binary",!0),a(3),T("
",f(13,28,"settings.jobqglobal.startcomm_desc"),"
"),a(4),S(f(17,30,"settings.jobqglobal.commcmd_label")),a(2),p("ngModel",e.JobQueueCommFlagCommand),a(2),T("
",f(21,32,"settings.jobqglobal.commcmd_desc"),"
"),a(4),S(f(25,34,"settings.jobqglobal.transcmd_label")),a(2),p("ngModel",e.JobQueueTranscodeCommand),a(2),T("
",f(29,36,"settings.jobqglobal.transcmd_desc"),"
"),a(3),x("label",f(32,38,"settings.jobqglobal.transfirst_label")),p("ngModel",e.AutoTranscodeBeforeAutoCommflag)("binary",!0),a(3
),T(" ",f(35,40,"settings.jobqglobal.transfirst_desc"),"
"),a(3),x("label",f(38,42,"settings.jobqglobal.transsave_label")),p("ngModel",e.SaveTranscoding)("binary",!0),a(3),T("
",f(41,44,"settings.jobqglobal.transsave_desc")," ")}}function
sJ(t,i){1&t&&(k(0,"p-message",24),m(1,"translate")),2&t&&x("text",f(1,1,"common.savesuccess"))}function
rJ(t,i){1&t&&(k(0,"p-message",25),m(1,"translate")),2&t&&x("text",f(1,1,"common.networkfail"))}function
oJ(t,i){if(1&t){const
e=I();l(0,"div",19)(1,"div",20),_(2,sJ,2,3,"p-message",21),_(3,rJ,2,3,"p-message",22),c(),l(4,"p-button",23),C("onClick",function(){v(e);const
s=d(),r=F(1);return
s.saveForm(),r.form.markAsPristine()}),m(5,"translate"),c()()}if(2&t){const
e=d(),n=F(1);a(2),p("ngIf",e.successCount>0&&0==e.errorCount&&!n.dirty),a(1),p("ngIf",e.errorCount>0),a(1),x("label",f(5,4,"common.save")),p("disabled",!n.dirty||e.setupService.schedulingEnabled)}}let
aJ=(()=>{class
t{constructor(e,n){this.setupService=e,this.mythService=n,this.successCou
nt=0,this.errorCount=0,this.JobsRunOnRecordHost=!1,this.AutoCommflagWhileRecording=!1,this.JobQueueCommFlagCommand="mythcommflag",this.JobQueueTranscodeCommand="mythtranscode",this.AutoTranscodeBeforeAutoCommflag=!1,this.SaveTranscoding=!1,this.JobQGlobalObs={next:s=>{s.bool?this.successCount++:(this.errorCount++,this.currentForm&&this.currentForm.form.markAsDirty())},error:s=>{console.error(s),this.errorCount++,this.currentForm&&this.currentForm.form.markAsDirty()}},this.getJobQGlobal()}ngOnInit(){}ngAfterViewInit(){this.setupService.setCurrentForm(this.currentForm)}getJobQGlobal(){this.mythService.GetSetting({HostName:"_GLOBAL_",Key:"JobsRunOnRecordHost",Default:"0"}).subscribe({next:e=>this.JobsRunOnRecordHost="1"==e.String,error:()=>this.errorCount++}),this.mythService.GetSetting({HostName:"_GLOBAL_",Key:"AutoCommflagWhileRecording",Default:"0"}).subscribe({next:e=>this.AutoCommflagWhileRecording="1"==e.String,error:()=>this.errorCount++}),this.mythService.GetSetting({HostName:"
_GLOBAL_",Key:"JobQueueCommFlagCommand",Default:"mythcommflag"}).subscribe({next:e=>this.JobQueueCommFlagCommand=e.String,error:()=>this.errorCount++}),this.mythService.GetSetting({HostName:"_GLOBAL_",Key:"JobQueueTranscodeCommand",Default:"mythtranscode"}).subscribe({next:e=>this.JobQueueTranscodeCommand=e.String,error:()=>this.errorCount++}),this.mythService.GetSetting({HostName:"_GLOBAL_",Key:"AutoTranscodeBeforeAutoCommflag",Default:"0"}).subscribe({next:e=>this.AutoTranscodeBeforeAutoCommflag="1"==e.String,error:()=>this.errorCount++}),this.mythService.GetSetting({HostName:"_GLOBAL_",Key:"SaveTranscoding",Default:"0"}).subscribe({next:e=>this.SaveTranscoding="1"==e.String,error:()=>this.errorCount++})}saveForm(){this.successCount=0,this.errorCount=0,this.successCount=0,this.errorCount=0,this.mythService.PutSetting({HostName:"_GLOBAL_",Key:"JobsRunOnRecordHost",Value:this.JobsRunOnRecordHost?"1":"0"}).subscribe(this.JobQGlobalObs),this.mythService.PutSetting({HostName:"_GLOBAL_"
,Key:"AutoCommflagWhileRecording",Value:this.AutoCommflagWhileRecording?"1":"0"}).subscribe(this.JobQGlobalObs),this.mythService.PutSetting({HostName:"_GLOBAL_",Key:"JobQueueCommFlagCommand",Value:this.JobQueueCommFlagCommand}).subscribe(this.JobQGlobalObs),this.mythService.PutSetting({HostName:"_GLOBAL_",Key:"JobQueueTranscodeCommand",Value:this.JobQueueTranscodeCommand}).subscribe(this.JobQGlobalObs),this.mythService.PutSetting({HostName:"_GLOBAL_",Key:"AutoTranscodeBeforeAutoCommflag",Value:this.AutoTranscodeBeforeAutoCommflag?"1":"0"}).subscribe(this.JobQGlobalObs),this.mythService.PutSetting({HostName:"_GLOBAL_",Key:"SaveTranscoding",Value:this.SaveTranscoding?"1":"0"}).subscribe(this.JobQGlobalObs)}}return
t.\u0275fac=function(e){return
new(e||t)(D(Me),D(qt))},t.\u0275cmp=z({type:t,selectors:[["app-jobqueue-global"]],viewQuery:function(e,n){if(1&e&&W(eJ,5),2&e){let
s;V(s=B())&&(n.currentForm=s.first)}},decls:7,vars:0,consts:[["name","jobqglobal",1,"ml-3","mr-3"],["jobqglobal",
"ngForm"],[1,"m-5"],["pTemplate","title"],["pTemplate","subtitle"],["pTemplate","content"],["pTemplate","footer"],[1,"grid"],[1,"mb-4","w-full"],[1,"form-group","field"],["inputId","JobsRunOnRecordHost","name","JobsRunOnRecordHost",1,"label","mb-2","w-full",3,"ngModel","binary","label","ngModelChange"],[1,"block"],["inputId","AutoCommflagWhileRecording","name","AutoCommflagWhileRecording",1,"label","mb-2","w-full",3,"ngModel","binary","label","ngModelChange"],["for","JobQueueCommFlagCommand",1,"label","block"],["pInputText","","id","JobQueueCommFlagCommand","name","JobQueueCommFlagCommand",1,"mb-2","form-control","w-full",3,"ngModel","ngModelChange"],["for","JobQueueTranscodeCommand",1,"label","block"],["pInputText","","id","JobQueueTranscodeCommand","name","JobQueueTranscodeCommand",1,"mb-2","form-control","w-full",3,"ngModel","ngModelChange"],["inputId","AutoTranscodeBeforeAutoCommflag","name","AutoTranscodeBeforeAutoCommflag",1,"label","mb-2","w-full",3,"ngModel","binary","label"
,"ngModelChange"],["inputId","SaveTranscoding","name","SaveTranscoding",1,"label","mb-2","w-full",3,"ngModel","binary","label","ngModelChange"],[1,"grid","nogutter"],[1,"col-12"],["severity","success",3,"text",4,"ngIf"],["severity","error",3,"text",4,"ngIf"],["icon","pi
pi-save","iconPos","left",1,"col","pr-1",3,"label","disabled","onClick"],["severity","success",3,"text"],["severity","error",3,"text"]],template:function(e,n){1&e&&(l(0,"form",0,1)(2,"p-card",2),_(3,tJ,2,3,"ng-template",3),_(4,nJ,0,0,"ng-template",4),_(5,iJ,42,46,"ng-template",5),_(6,oJ,6,6,"ng-template",6),c()())},directives:[ze,Ue,He,Ne,ne,sn,Te,_e,Ye,Q,qe,ve],pipes:[ce],styles:[""]}),t})();const
lJ=["jobqcommands"];function
cJ(t,i){1&t&&(g(0),m(1,"translate")),2&t&&T("
",f(1,1,"settings.jobqcommands.title")," ")}function
uJ(t,i){1&t&&(g(0),m(1,"translate")),2&t&&T("
",f(1,1,"settings.jobqcommands.subtitle")," ")}const
dS=function(t){return{num:t}};function dJ(t,i){if(1&t){const
e=I();l(0,"div")(1,"div",10)(2,"labe
l",11),k(3,"div",12),c(),l(4,"input",13,14),C("ngModelChange",function(s){const
o=v(e).$implicit;return
d(2).JobQCommandsData.UserJobDesc[o]=s}),c(),l(6,"small",15),g(7),m(8,"translate"),c()(),l(9,"div",10)(10,"label",11),k(11,"div",12),c(),l(12,"input",13,16),C("ngModelChange",function(s){const
o=v(e).$implicit;return
d(2).JobQCommandsData.UserJob[o]=s}),c(),l(14,"small",15),g(15),m(16,"translate"),c()()()}if(2&t){const
e=i.$implicit,n=d(2);a(2),Bn("for","UserJobDesc",e,""),a(1),p("translate","settings.jobqcommands.job_label")("translateParams",U(18,dS,e+1)),a(1),Bn("id","UserJobDesc",e,"")("name","UserJobDesc",e,""),p("ngModel",n.JobQCommandsData.UserJobDesc[e]),a(3),T("
",f(8,14,"settings.jobqcommands.job_desc"),"
"),a(3),Bn("for","UserJob",e,""),a(1),p("translate","settings.jobqcommands.command_label")("translateParams",U(20,dS,e+1)),a(1),Bn("id","UserJob",e,"")("name","UserJob",e,""),p("ngModel",n.JobQCommandsData.UserJob[e]),a(3),T("
",f(16,16,"settings.jobqcommands.command_de
sc")," ")}}function
pJ(t,i){if(1&t&&(l(0,"div",7)(1,"div",8),_(2,dJ,17,22,"div",9),c()()),2&t){const
e=d();a(2),p("ngForOf",e.items)}}function
hJ(t,i){1&t&&(k(0,"p-message",22),m(1,"translate")),2&t&&x("text",f(1,1,"common.savesuccess"))}function
mJ(t,i){1&t&&(k(0,"p-message",23),m(1,"translate")),2&t&&x("text",f(1,1,"common.networkfail"))}function
fJ(t,i){if(1&t){const
e=I();l(0,"div",17)(1,"div",18),_(2,hJ,2,3,"p-message",19),_(3,mJ,2,3,"p-message",20),c(),l(4,"p-button",21),C("onClick",function(){v(e);const
s=d(),r=F(1);return
s.saveForm(),r.form.markAsPristine()}),m(5,"translate"),c()()}if(2&t){const
e=d(),n=F(1);a(2),p("ngIf",e.JobQCommandsData.successCount>0&&0==e.JobQCommandsData.errorCount&&!n.dirty),a(1),p("ngIf",e.JobQCommandsData.errorCount>0),a(1),x("label",f(5,4,"common.save")),p("disabled",!n.dirty||e.setupService.schedulingEnabled)}}let
gJ=(()=>{class
t{constructor(e){this.setupService=e,this.items=[0,1,2,3],this.JobQCommandsData=this.setupService.getJobQCommands()}ng
OnInit(){}ngAfterViewInit(){this.setupService.setCurrentForm(this.currentForm)}saveForm(){this.setupService.saveJobQCommands(this.currentForm)}}return
t.\u0275fac=function(e){return
new(e||t)(D(Me))},t.\u0275cmp=z({type:t,selectors:[["app-jobqueue-commands"]],viewQuery:function(e,n){if(1&e&&W(lJ,5),2&e){let
s;V(s=B())&&(n.currentForm=s.first)}},decls:7,vars:0,consts:[["name","jobqcommands",1,"ml-3","mr-3"],["jobqcommands","ngForm"],[1,"m-5"],["pTemplate","title"],["pTemplate","subtitle"],["pTemplate","content"],["pTemplate","footer"],[1,"grid"],[1,"mb-4","w-full"],[4,"ngFor","ngForOf"],[1,"form-group","field"],[1,"label","block",3,"for"],[3,"translate","translateParams"],["pInputText","",1,"mb-2","form-control","w-full",3,"id","ngModel","name","ngModelChange"],["UserJobDesc{{item}}","ngModel"],[1,"block"],["UserJob{{item}}","ngModel"],[1,"grid","nogutter"],[1,"col-12"],["severity","success",3,"text",4,"ngIf"],["severity","error",3,"text",4,"ngIf"],["icon","pi
pi-save","iconPos","lef
t",1,"col","pr-1",3,"label","disabled","onClick"],["severity","success",3,"text"],["severity","error",3,"text"]],template:function(e,n){1&e&&(l(0,"form",0,1)(2,"p-card",2),_(3,cJ,2,3,"ng-template",3),_(4,uJ,2,3,"ng-template",4),_(5,pJ,3,1,"ng-template",5),_(6,fJ,6,6,"ng-template",6),c()())},directives:[ze,Ue,He,Ne,ne,at,mu,Ye,Te,_e,Q,qe,ve],pipes:[ce],styles:[""]}),t})();const
_J=["epgdownload"];function
bJ(t,i){1&t&&(g(0),m(1,"translate")),2&t&&T("
",f(1,1,"settings.epgdownload.title")," ")}function
vJ(t,i){}function CJ(t,i){if(1&t){const
e=I();l(0,"div",7)(1,"div",8)(2,"div",9)(3,"p-checkbox",10),C("ngModelChange",function(s){return
v(e),d().MythFillEnabled=s}),m(4,"translate"),c(),l(5,"small",11),g(6),m(7,"translate"),c()()()()}if(2&t){const
e=d();a(3),x("label",f(4,4,"settings.epgdownload.enabled_label")),p("ngModel",e.MythFillEnabled)("binary",!0),a(3),T("
",f(7,6,"settings.epgdownload.enabled_desc")," ")}}function
yJ(t,i){1&t&&(k(0,"p-message",17),m(1,"translate")),2&t&&x("tex
t",f(1,1,"common.savesuccess"))}function
wJ(t,i){1&t&&(k(0,"p-message",18),m(1,"translate")),2&t&&x("text",f(1,1,"common.networkfail"))}function
TJ(t,i){if(1&t){const
e=I();l(0,"div",12)(1,"div",13),_(2,yJ,2,3,"p-message",14),_(3,wJ,2,3,"p-message",15),c(),l(4,"p-button",16),C("onClick",function(){v(e);const
s=d(),r=F(1);return
s.saveForm(),r.form.markAsPristine()}),m(5,"translate"),c()()}if(2&t){const
e=d(),n=F(1);a(2),p("ngIf",e.successCount>0&&0==e.errorCount&&!n.dirty),a(1),p("ngIf",e.errorCount>0),a(1),x("label",f(5,4,"common.save")),p("disabled",!n.dirty||e.setupService.schedulingEnabled)}}let
SJ=(()=>{class
t{constructor(e,n){this.setupService=e,this.mythService=n,this.successCount=0,this.errorCount=0,this.MythFillEnabled=!0,this.EpgDownloadObs={next:s=>{s.bool?this.successCount++:(this.errorCount++,this.currentForm&&this.currentForm.form.markAsDirty())},error:s=>{console.error(s),this.errorCount++,this.currentForm&&this.currentForm.form.markAsDirty()}},this.getEpgDownload()}
ngOnInit(){}ngAfterViewInit(){this.setupService.setCurrentForm(this.currentForm)}getEpgDownload(){this.successCount=0,this.errorCount=0,this.mythService.GetSetting({HostName:"_GLOBAL_",Key:"MythFillEnabled",Default:"1"}).subscribe({next:e=>this.MythFillEnabled="1"==e.String,error:()=>this.errorCount++})}saveForm(){console.log("save
form
clicked"),this.successCount=0,this.errorCount=0,this.mythService.PutSetting({HostName:"_GLOBAL_",Key:"MythFillEnabled",Value:this.MythFillEnabled?"1":"0"}).subscribe(this.EpgDownloadObs)}}return
t.\u0275fac=function(e){return
new(e||t)(D(Me),D(qt))},t.\u0275cmp=z({type:t,selectors:[["app-epg-downloading"]],viewQuery:function(e,n){if(1&e&&W(_J,5),2&e){let
s;V(s=B())&&(n.currentForm=s.first)}},decls:7,vars:0,consts:[["name","epgdownload",1,"ml-3","mr-3"],["epgdownload","ngForm"],[1,"m-5"],["pTemplate","title"],["pTemplate","subtitle"],["pTemplate","content"],["pTemplate","footer"],[1,"grid"],[1,"mb-4","w-full"],[1,"form-group","field"],["inputId","Myth
FillEnabled","name","MythFillEnabled",1,"label","mb-2","w-full",3,"ngModel","binary","label","ngModelChange"],[1,"block"],[1,"grid","nogutter"],[1,"col-12"],["severity","success",3,"text",4,"ngIf"],["severity","error",3,"text",4,"ngIf"],["icon","pi
pi-save","iconPos","left",1,"col","pr-1",3,"label","disabled","onClick"],["severity","success",3,"text"],["severity","error",3,"text"]],template:function(e,n){1&e&&(l(0,"form",0,1)(2,"p-card",2),_(3,bJ,2,3,"ng-template",3),_(4,vJ,0,0,"ng-template",4),_(5,CJ,8,8,"ng-template",5),_(6,TJ,6,6,"ng-template",6),c()())},directives:[ze,Ue,He,Ne,ne,sn,Te,_e,Q,qe,ve],pipes:[ce],styles:[""]}),t})();function
xJ(t,i){if(1&t&&(l(0,"b"),g(1),c()),2&t){const
e=d();a(1),T("\xa0",e.dirtyMessages[0],"")}}function
DJ(t,i){1&t&&k(0,"app-host-address")}function
MJ(t,i){if(1&t&&(l(0,"b"),g(1),c()),2&t){const
e=d();a(1),T("\xa0",e.dirtyMessages[1],"")}}function
kJ(t,i){1&t&&k(0,"app-locale")}function
IJ(t,i){if(1&t&&(l(0,"b"),g(1),c()),2&t){const
e=d();a(1),T("\
xa0",e.dirtyMessages[2],"")}}function
EJ(t,i){1&t&&k(0,"app-misc-settings")}function
RJ(t,i){if(1&t&&(l(0,"b"),g(1),c()),2&t){const
e=d();a(1),T("\xa0",e.dirtyMessages[3],"")}}function
LJ(t,i){1&t&&k(0,"app-eit-scanner")}function
OJ(t,i){if(1&t&&(l(0,"b"),g(1),c()),2&t){const
e=d();a(1),T("\xa0",e.dirtyMessages[4],"")}}function
AJ(t,i){1&t&&k(0,"app-shutdown-wakeup")}function
PJ(t,i){if(1&t&&(l(0,"b"),g(1),c()),2&t){const
e=d();a(1),T("\xa0",e.dirtyMessages[5],"")}}function
FJ(t,i){1&t&&k(0,"app-backend-wakeup")}function
NJ(t,i){if(1&t&&(l(0,"b"),g(1),c()),2&t){const
e=d();a(1),T("\xa0",e.dirtyMessages[6],"")}}function
VJ(t,i){1&t&&k(0,"app-backend-control")}function
BJ(t,i){if(1&t&&(l(0,"b"),g(1),c()),2&t){const
e=d();a(1),T("\xa0",e.dirtyMessages[7],"")}}function
HJ(t,i){1&t&&k(0,"app-jobqueue-backend")}function
qJ(t,i){if(1&t&&(l(0,"b"),g(1),c()),2&t){const
e=d();a(1),T("\xa0",e.dirtyMessages[8],"")}}function
GJ(t,i){1&t&&k(0,"app-jobqueue-global")}function
UJ(t,i){if(1&t&&(l(0,"
b"),g(1),c()),2&t){const
e=d();a(1),T("\xa0",e.dirtyMessages[9],"")}}function
zJ(t,i){1&t&&k(0,"app-jobqueue-commands")}function
jJ(t,i){if(1&t&&(l(0,"b"),g(1),c()),2&t){const
e=d();a(1),T("\xa0",e.dirtyMessages[10],"")}}function
$J(t,i){1&t&&k(0,"app-epg-downloading")}let WJ=(()=>{class
t{constructor(e,n,s){this.setupService=e,this.translate=n,this.router=s,this.m_showHelp=!1,this.currentTab=-1,this.dirtyMessages=["","","","","","","","","","","","","","","",""],this.forms=[,,,,,,,,,,,,,,,,],this.dirtyText="settings.common.unsaved",this.warningText="settings.common.warning",this.setupService.setCurrentForm(null),n.get(this.dirtyText).subscribe(r=>this.dirtyText=r),n.get(this.warningText).subscribe(r=>this.warningText=r)}ngOnInit(){}onTabOpen(e){this.showDirty(),void
0===this.forms[e.index]&&(this.forms[e.index]=this.setupService.getCurrentForm()),this.currentTab=e.index,console.log("onTabOpen"),console.log(e),this.dirtyMessages[this.currentTab]=""}onTabClose(e){this.showDirty()}sho
wDirty(){-1!=this.currentTab&&(this.dirtyMessages[this.currentTab]=this.forms[this.currentTab].dirty?this.dirtyText:"")}showHelp(){this.m_showHelp=!0}confirm(e){return
oe(window.confirm(e))}canDeactivate(){return!(this.forms[this.currentTab]&&this.forms[this.currentTab].dirty||this.dirtyMessages.find(e=>e.length>0))||this.confirm(this.warningText)}onWindowClose(e){(this.forms[this.currentTab]&&this.forms[this.currentTab].dirty||this.dirtyMessages.find(n=>n.length>0))&&(e.preventDefault(),e.returnValue=!1)}}return
t.\u0275fac=function(e){return
new(e||t)(D(Me),D(Oe),D(It))},t.\u0275cmp=z({type:t,selectors:[["app-general-settings"]],hostBindings:function(e,n){1&e&&C("beforeunload",function(r){return
n.onWindowClose(r)},!1,ni)},decls:54,vars:42,consts:[[1,"col-12","w-full","p-0",3,"onClose","onOpen"],[3,"header"],["pTemplate","header"],["pTemplate","content"],[1,"flex","justify-content-end"],["icon","pi
pi-angle-left","iconPos","left",1,"p-3",3,"label","onClick"],["icon","pi
pi-angle-r
ight","iconPos","right",1,"p-3",3,"label","onClick"]],template:function(e,n){1&e&&(l(0,"p-card")(1,"h2"),g(2),m(3,"translate"),c(),l(4,"p-accordion",0),C("onClose",function(r){return
n.onTabClose(r)})("onOpen",function(r){return
n.onTabOpen(r)}),l(5,"p-accordionTab",1),m(6,"translate"),_(7,xJ,2,1,"ng-template",2),_(8,DJ,1,0,"ng-template",3),c(),l(9,"p-accordionTab",1),m(10,"translate"),_(11,MJ,2,1,"ng-template",2),_(12,kJ,1,0,"ng-template",3),c(),l(13,"p-accordionTab",1),m(14,"translate"),_(15,IJ,2,1,"ng-template",2),_(16,EJ,1,0,"ng-template",3),c(),l(17,"p-accordionTab",1),m(18,"translate"),_(19,RJ,2,1,"ng-template",2),_(20,LJ,1,0,"ng-template",3),c(),l(21,"p-accordionTab",1),m(22,"translate"),_(23,OJ,2,1,"ng-template",2),_(24,AJ,1,0,"ng-template",3),c(),l(25,"p-accordionTab",1),m(26,"translate"),_(27,PJ,2,1,"ng-template",2),_(28,FJ,1,0,"ng-template",3),c(),l(29,"p-accordionTab",1),m(30,"translate"),_(31,NJ,2,1,"ng-template",2),_(32,VJ,1,0,"ng-template",3),c(),l(33,"p-accordionTab"
,1),m(34,"translate"),_(35,BJ,2,1,"ng-template",2),_(36,HJ,1,0,"ng-template",3),c(),l(37,"p-accordionTab",1),m(38,"translate"),_(39,qJ,2,1,"ng-template",2),_(40,GJ,1,0,"ng-template",3),c(),l(41,"p-accordionTab",1),m(42,"translate"),_(43,UJ,2,1,"ng-template",2),_(44,zJ,1,0,"ng-template",3),c(),l(45,"p-accordionTab",1),m(46,"translate"),_(47,jJ,2,1,"ng-template",2),_(48,$J,1,0,"ng-template",3),c()(),l(49,"div",4)(50,"p-button",5),C("onClick",function(){return
n.router.navigate(["setupwizard/selectlanguage"])}),m(51,"translate"),c(),l(52,"p-button",6),C("onClick",function(){return
n.router.navigate(["setupwizard/capture-cards"])}),m(53,"translate"),c()()()),2&e&&(a(2),S(f(3,14,"settings.general.title")),a(3),x("header",f(6,16,"settings.hostaddress.title")),a(4),x("header",f(10,18,"settings.locale.title")),a(4),x("header",f(14,20,"settings.misc.title")),a(4),x("header",f(18,22,"settings.eit.title")),a(4),x("header",f(22,24,"settings.shutwake.title")),a(4),x("header",f(26,26,"settings.ba
ckendwake.title")),a(4),x("header",f(30,28,"settings.backendctrl.title")),a(4),x("header",f(34,30,"settings.jobqbackend.title")),a(4),x("header",f(38,32,"settings.jobqglobal.title")),a(4),x("header",f(42,34,"settings.jobqcommands.title")),a(4),x("header",f(46,36,"settings.epgdownload.title")),a(5),x("label",f(51,38,"common.back")),a(2),x("label",f(53,40,"common.next")))},directives:[Ne,Ss,Ts,ne,KK,iQ,dQ,vQ,MQ,PQ,UQ,XQ,aJ,gJ,SJ,ve],pipes:[ce],styles:["@media
screen and (max-width:
48rem){.p-card-body,.p-card-content,.p-accordion-content{padding:0rem!important}}\n"],encapsulation:2}),t})(),Gt=(()=>{class
t{constructor(e){this.httpClient=e,this.diseqcTypes=[{description:"Switch",type:"switch",inactive:!1},{description:"Rotor",type:"rotor",inactive:!1},{description:"Unicable",type:"scr",inactive:!1},{description:"LNB",type:"lnb",inactive:!1}]}GetCaptureCardList(e,n){let
s=(new ye).set("HostName",e).set("CardType",n);return
this.httpClient.get("/Capture/GetCaptureCardList",{params:s})}Ge
tCardTypeList(){return
this.httpClient.get("/Capture/GetCardTypeList",{})}UpdateCaptureCard(e,n,s){return
this.httpClient.post("/Capture/UpdateCaptureCard",{Cardid:e,Setting:n,Value:s})}DeleteCaptureCard(e){return
this.httpClient.post("/Capture/RemoveCardInput",{CardInputId:e})}AddCaptureCard(e){return
this.httpClient.post("/Capture/AddCaptureCard",e)}GetCaptureDeviceList(e){let
n=(new ye).set("CardType",e);return
this.httpClient.get("/Capture/GetCaptureDeviceList",{params:n})}GetDiseqcTreeList(){return
this.httpClient.get("/Capture/GetDiseqcTreeList",{})}AddDiseqcTree(e){return
this.httpClient.post("/Capture/AddDiseqcTree",e)}UpdateDiseqcTree(e){return
this.httpClient.post("/Capture/UpdateDiseqcTree",e)}DeleteDiseqcTree(e){return
this.httpClient.post("/Capture/RemoveDiseqcTree",{DiseqcId:e})}GetDiseqcConfigList(){return
this.httpClient.get("/Capture/GetDiseqcConfigList",{})}AddDiseqcConfig(e){return
this.httpClient.post("/Capture/AddDiseqcConfig",e)}DeleteDiseqcConfig(e){return
con
sole.log(e),this.httpClient.post("/Capture/RemoveDiseqcConfig",{CardId:e})}GetInputGroupList(){return
this.httpClient.get("/Capture/GetUserInputGroupList",{})}SetInputMaxRecordings(e,n){return
this.httpClient.post("/Capture/SetInputMaxRecordings",{InputId:e,Max:n})}AddUserInputGroup(e){return
this.httpClient.post("/Capture/AddUserInputGroup",{Name:e})}LinkInputGroup(e,n){return
this.httpClient.post("/Capture/LinkInputGroup",{InputId:e,InputGroupId:n})}UnlinkInputGroup(e,n){return
this.httpClient.post("/Capture/UnlinkInputGroup",{InputId:e,InputGroupId:n})}GetRecProfileGroupList(e,n,s){let
r=(new
ye).set("GroupId",e).set("ProfileId",n).set("OnlyInUse",s);return
this.httpClient.get("/Capture/GetRecProfileGroupList",{params:r})}AddRecProfile(e,n,s,r){return
this.httpClient.post("/Capture/AddRecProfile",{GroupId:e,ProfileName:n,VideoCodec:s,AudioCodec:r})}DeleteRecProfile(e){return
this.httpClient.post("/Capture/DeleteRecProfile",{ProfileId:e})}UpdateRecProfile(e,n,s){return
this.httpCl
ient.post("/Capture/UpdateRecProfile",{ProfileId:e,VideoCodec:n,AudioCodec:s})}UpdateRecProfileParam(e,n,s){return
this.httpClient.post("/Capture/UpdateRecProfileParam",{ProfileId:e,Name:n,Value:s})}GetCardSubType(e){let
n=(new ye).set("cardid",e);return
this.httpClient.get("/Capture/GetCardSubType",{params:n})}}return
t.\u0275fac=function(e){return
new(e||t)(K(Bi))},t.\u0275prov=X({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();function
KJ(t,i){if(1&t){const
e=I();l(0,"p-button",14),C("onClick",function(){return
v(e),d().displayModal=!1}),m(1,"translate"),c(),l(2,"p-button",15),C("onClick",function(){return
v(e),d().newCard()}),m(3,"translate"),c()}if(2&t){const
e=d();x("label",f(1,3,"common.cancel")),a(2),x("label",f(3,5,"common.ok")),p("disabled",""==e.selectedCardType.CardType)}}function
QJ(t,i){if(1&t){const
e=I();l(0,"p-button",16),C("click",function(){return
v(e),d().displayDeleteAllonHost=!1}),m(1,"translate"),c(),l(2,"p-button",17),C("click",function(){return
v(e),d(
).deleteAllOnHost()}),m(3,"translate"),c()}2&t&&(x("label",f(1,2,"common.no")),a(2),x("label",f(3,4,"common.yes")))}function
JJ(t,i){if(1&t){const
e=I();l(0,"p-button",16),C("click",function(){return
v(e),d().displayDeleteAll=!1}),m(1,"translate"),c(),l(2,"p-button",17),C("click",function(){return
v(e),d().deleteAllOnAllHosts()}),m(3,"translate"),c()}2&t&&(x("label",f(1,2,"common.no")),a(2),x("label",f(3,4,"common.yes")))}function
YJ(t,i){1&t&&(l(0,"div",18),k(1,"br")(2,"p-message",19),m(3,"translate"),k(4,"br"),c()),2&t&&(a(2),x("text",f(3,1,"settings.common.successful_delete")))}function
ZJ(t,i){1&t&&(l(0,"div",18),k(1,"br")(2,"p-message",20),m(3,"translate"),k(4,"br"),c()),2&t&&(a(2),x("text",f(3,1,"common.networkfail")))}function
XJ(t,i){if(1&t&&(l(0,"div",24)(1,"div",25),g(2),l(3,"b"),g(4),c()()()),2&t){const
e=d().index,n=d();a(2),yo(" ",n.m_CaptureCardsFiltered[e].CardType,"
",n.m_CaptureCardsFiltered[e].VideoDevice,"
(",n.m_CaptureCardsFiltered[e].DisplayName,") "),a(2),T("\
xa0",n.dirtyMessages[e],"")}}function eY(t,i){if(1&t){const
e=I();l(0,"p-button",16),C("click",function(){v(e);const
s=d(2).index;return
d().displayDeleteThis[s]=!1}),m(1,"translate"),c(),l(2,"p-button",17),C("click",function(){v(e);const
s=d(2).index;return
d().deleteThis(s)}),m(3,"translate"),c()}2&t&&(x("label",f(1,2,"common.no")),a(2),x("label",f(3,4,"common.yes")))}function
tY(t,i){if(1&t&&k(0,"app-ceton",31),2&t){const
e=d(2).index,n=d();p("card",n.m_CaptureCardsFiltered[e])("cardList",n.m_CaptureCardList)}}function
nY(t,i){if(1&t&&k(0,"app-dvb",32),2&t){const
e=d(2).index,n=d();p("card",n.m_CaptureCardsFiltered[e])("cardList",n.m_CaptureCardList)("diseqcTreeList",n.diseqcTreeList)("parent",n)}}function
iY(t,i){if(1&t&&k(0,"app-external",31),2&t){const
e=d(2).index,n=d();p("card",n.m_CaptureCardsFiltered[e])("cardList",n.m_CaptureCardList)}}function
sY(t,i){if(1&t&&k(0,"app-hdhomerun",31),2&t){const
e=d(2).index,n=d();p("card",n.m_CaptureCardsFiltered[e])("cardList",n.m_Captur
eCardList)}}function
rY(t,i){if(1&t&&k(0,"app-iptv",31),2&t){const
e=d(2).index,n=d();p("card",n.m_CaptureCardsFiltered[e])("cardList",n.m_CaptureCardList)}}function
oY(t,i){if(1&t&&k(0,"app-import",31),2&t){const
e=d(2).index,n=d();p("card",n.m_CaptureCardsFiltered[e])("cardList",n.m_CaptureCardList)}}function
aY(t,i){if(1&t&&k(0,"app-demo",31),2&t){const
e=d(2).index,n=d();p("card",n.m_CaptureCardsFiltered[e])("cardList",n.m_CaptureCardList)}}function
lY(t,i){if(1&t&&k(0,"app-v4l2",31),2&t){const
e=d(2).index,n=d();p("card",n.m_CaptureCardsFiltered[e])("cardList",n.m_CaptureCardList)}}function
cY(t,i){if(1&t&&k(0,"app-hdpvr",31),2&t){const
e=d(2).index,n=d();p("card",n.m_CaptureCardsFiltered[e])("cardList",n.m_CaptureCardList)}}function
uY(t,i){if(1&t&&k(0,"app-satip",31),2&t){const
e=d(2).index,n=d();p("card",n.m_CaptureCardsFiltered[e])("cardList",n.m_CaptureCardList)}}function
dY(t,i){if(1&t&&k(0,"app-vbox",31),2&t){const
e=d(2).index,n=d();p("card",n.m_CaptureCardsFiltered[e])
("cardList",n.m_CaptureCardList)}}function
pY(t,i){if(1&t&&k(0,"app-firewire",31),2&t){const
e=d(2).index,n=d();p("card",n.m_CaptureCardsFiltered[e])("cardList",n.m_CaptureCardList)}}function
hY(t,i){1&t&&(l(0,"div"),k(1,"br"),g(2,"Not Supported
"),c())}const
Dd=function(){return{width:"50vw"}},mY=function(t,i,e){return{CardType:t,VideoDevice:i,DisplayName:e}};function
fY(t,i){if(1&t){const
e=I();l(0,"p-button",26),C("onClick",function(){v(e);const
s=d().index;return
d().displayDeleteThis[s]=!0}),m(1,"translate"),c(),l(2,"p-dialog",2),C("visibleChange",function(s){v(e);const
r=d().index;return
d().displayDeleteThis[r]=s}),m(3,"translate"),l(4,"h2"),g(5),m(6,"translate"),c(),l(7,"p"),g(8),m(9,"translate"),c(),_(10,eY,4,6,"ng-template",4),c(),l(11,"div",27),_(12,tY,1,2,"app-ceton",28),_(13,nY,1,4,"app-dvb",29),_(14,iY,1,2,"app-external",28),_(15,sY,1,2,"app-hdhomerun",28),_(16,rY,1,2,"app-iptv",28),_(17,oY,1,2,"app-import",28),_(18,aY,1,2,"app-demo",28),_(19,lY,1,2,"app-v4l2",28),_(20
,cY,1,2,"app-hdpvr",28),_(21,uY,1,2,"app-satip",28),_(22,dY,1,2,"app-vbox",28),_(23,pY,1,2,"app-firewire",28),_(24,hY,3,0,"div",30),c()}if(2&t){const
e=d().index,n=d();x("label",f(1,24,"settings.capture.delete_this")),p("disabled",!n.m_CaptureCardsFiltered[e].CardId||n.setupService.schedulingEnabled),a(2),q(A(33,Dd)),x("header",f(3,26,"settings.capture.delete_this")),p("visible",n.displayDeleteThis[e])("modal",!0)("draggable",!1)("resizable",!1),a(3),S(f(6,28,"settings.common.ru_sure")),a(3),S(Dt(9,30,"settings.capture.delete_details",Qt(34,mY,n.m_CaptureCardsFiltered[e].CardType,n.m_CaptureCardsFiltered[e].VideoDevice,n.m_CaptureCardsFiltered[e].DisplayName))),a(3),p("ngSwitch",n.m_CaptureCardsFiltered[e].CardType),a(1),p("ngSwitchCase","CETON"),a(1),p("ngSwitchCase","DVB"),a(1),p("ngSwitchCase","EXTERNAL"),a(1),p("ngSwitchCase","HDHOMERUN"),a(1),p("ngSwitchCase","FREEBOX"),a(1),p("ngSwitchCase","IMPORT"),a(1),p("ngSwitchCase","DEMO"),a(1),p("ngSwitchCase","V4L2ENC"),a(1),p("ngSwit
chCase","HDPVR"),a(1),p("ngSwitchCase","SATIP"),a(1),p("ngSwitchCase","VBOX"),a(1),p("ngSwitchCase","FIREWIRE")}}function
gY(t,i){if(1&t){const
e=I();l(0,"p-accordionTab",21),C("selectedChange",function(s){const
o=v(e).index;return
d().activeTab[o]=s}),_(1,XJ,5,4,"ng-template",22),_(2,fY,25,38,"ng-template",23),c()}if(2&t){const
e=i.index,n=d();p("disabled",n.disabledTab[e])("selected",n.activeTab[e])}}const
_Y=function(){return{height:"50vh"}},pS=function(t){return{host:t}};let
hS=(()=>{class
t{constructor(e,n,s,r,o){this.mythService=e,this.router=n,this.captureCardService=s,this.setupService=r,this.translate=o,this.currentTab=-1,this.deletedTab=-1,this.dirtyMessages=[],this.forms=[],this.disabledTab=[],this.activeTab=[],this.displayDeleteThis=[],this.dirtyText="settings.common.unsaved",this.warningText="settings.common.warning",this.deletedText="settings.common.deleted",this.newText="settings.common.new",this.m_hostName="",this.displayModal=!1,this.selectedCardType={CardType:"",De
scription:""},this.displayDeleteAllonHost=!1,this.displayDeleteAll=!1,this.successCount=0,this.expectedCount=0,this.errorCount=0,this.deleteAll=!1,this.delObserver={next:u=>{u.bool?(this.successCount++,this.successCount==this.expectedCount&&(this.deleteAll?(this.loadCards(!0),this.deleteAll=!1):this.deletedTab>-1&&(this.dirtyMessages[this.deletedTab]=this.deletedText,this.disabledTab[this.deletedTab]=!0,this.activeTab[this.deletedTab]=!1,this.deletedTab=-1))):(this.errorCount++,this.deletedTab=-1,this.deleteAll=!1)},error:u=>{console.error(u),this.errorCount++,this.deleteAll=!1}},this.setupService.setCurrentForm(null),this.mythService.GetHostName().subscribe(u=>{this.m_hostName=u.String,this.loadCards(!0)}),o.get(this.dirtyText).subscribe(u=>this.dirtyText=u),o.get(this.warningText).subscribe(u=>this.warningText=u),o.get(this.deletedText).subscribe(u=>this.deletedText=u),o.get(this.newText).subscribe(u=>this.newText=u),this.captureCardService.GetCardTypeList().subscribe(u=>{this.car
dTypes=u.CardTypeList.CardTypes,this.cardTypes.forEach(h=>{h.Inactive=t.supportedCardTypes.indexOf(h.CardType)<0})})}loadCards(e){this.m_CaptureCardList$=this.captureCardService.GetCaptureCardList("",""),this.m_CaptureCardList$.subscribe(n=>{this.m_CaptureCardList=n,e&&this.filterCards()})}filterCards(){this.m_CaptureCardsFiltered=this.m_CaptureCardList.CaptureCardList.CaptureCards.filter(e=>0==e.ParentId&&e.HostName==this.m_hostName),this.dirtyMessages=[],this.forms=[],this.disabledTab=[],this.activeTab=[],this.displayDeleteThis=[];for(let
e=0;e<this.m_CaptureCardsFiltered.length;e++)this.dirtyMessages.push(""),this.disabledTab.push(!1),this.activeTab.push(!1),this.displayDeleteThis.push(!1)}ngOnInit(){this.loadDiseqc()}loadDiseqc(){this.captureCardService.GetDiseqcTreeList().subscribe({next:e=>{this.diseqcTreeList=e},error:e=>{console.log("GetDiseqcTreeList",e),this.errorCount++}})}onTabOpen(e){this.successCount+this.errorCount>=this.expectedCount&&(this.errorCount=0,this.successC
ount=0,this.expectedCount=0),this.showDirty();let
n=this.setupService.getCurrentForm();null!=n&&(this.forms[e.index]=n),this.setupService.setCurrentForm(null),this.currentTab=e.index,this.dirtyMessages[this.currentTab]=""}onTabClose(e){this.showDirty(),this.currentTab=-1}showDirty(){-1==this.currentTab||!this.forms[this.currentTab]||this.disabledTab[this.currentTab]||(this.dirtyMessages[this.currentTab]=this.forms[this.currentTab].dirty?this.dirtyText:this.m_CaptureCardsFiltered[this.currentTab].CardId?"":this.newText)}newCard(){this.displayModal=!1;let
e={CardType:this.selectedCardType.CardType,HostName:this.m_hostName,ChannelTimeout:3e3,SignalTimeout:1e3};switch(e.CardType){case"EXTERNAL":e.ChannelTimeout=2e4;break;case"FREEBOX":e.VideoDevice="http://mafreebox.freebox.fr/freeboxtv/playlist.m3u",e.ChannelTimeout=3e4;break;case"SATIP":e.DVBDiSEqCType=1}for(let
n=0;n<this.activeTab.length;n++)this.activeTab[n]=!1;this.dirtyMessages.push(this.newText),this.disabledTab.push(!1),this.ac
tiveTab.push(!1),this.displayDeleteThis.push(!1),this.m_CaptureCardsFiltered.push(e),this.selectedCardType={CardType:"",Description:""}}deleteThis(e){let
n=this.m_CaptureCardsFiltered[e].CardId;if(!this.deleteAll){if(this.successCount+this.errorCount<this.expectedCount)return;this.errorCount=0,this.successCount=0,this.expectedCount=0,this.displayDeleteThis[e]=!1,this.deletedTab=e}this.m_CaptureCardList.CaptureCardList.CaptureCards.forEach(s=>{s.ParentId==n&&(console.log("DeleteThis
(parent):",s.CardId),this.expectedCount++,this.captureCardService.DeleteCaptureCard(s.CardId).subscribe(this.delObserver))}),this.m_CaptureCardsFiltered[e].DiSEqCId=0,console.log("DeleteThis:",n),this.expectedCount++,this.captureCardService.DeleteCaptureCard(n).subscribe(this.delObserver)}deleteAllOnHost(){if(!(this.successCount+this.errorCount<this.expectedCount)){this.errorCount=0,this.successCount=0,this.expectedCount=0,this.displayDeleteAllonHost=!1,this.deletedTab=-1,this.deleteAll=!0;for(let
e=0;e<t
his.m_CaptureCardsFiltered.length;e++)!this.disabledTab[e]&&this.m_CaptureCardsFiltered[e].CardId&&this.deleteThis(e)}}deleteAllOnAllHosts(){this.successCount+this.errorCount<this.expectedCount||(this.displayDeleteAll=!1,this.deleteAllOnHost(),this.m_CaptureCardList.CaptureCardList.CaptureCards.forEach(e=>{e.HostName!=this.m_hostName&&(e.DiSEqCId=0,console.log("DeleteThis
(other
host):",e.CardId),this.expectedCount++,this.captureCardService.DeleteCaptureCard(e.CardId).subscribe(this.delObserver))}))}confirm(e){return
oe(window.confirm(e))}canDeactivate(){let
e=this.setupService.getCurrentForm();return!(this.forms[this.currentTab]&&this.forms[this.currentTab].dirty||this.dirtyMessages.find(n=>n==this.dirtyText)||e&&e.dirty)||this.confirm(this.warningText)}onWindowClose(e){let
n=this.setupService.getCurrentForm();(this.forms[this.currentTab]&&this.forms[this.currentTab].dirty||this.dirtyMessages.find(s=>s==this.dirtyText)||n&&n.dirty)&&(e.preventDefault(),e.returnValue=!1)}}return
t.s
upportedCardTypes=["CETON","DVB","EXTERNAL","HDHOMERUN","FREEBOX","IMPORT","DEMO","V4L2ENC","HDPVR","SATIP","VBOX","FIREWIRE"],t.\u0275fac=function(e){return
new(e||t)(D(qt),D(It),D(Gt),D(Me),D(Oe))},t.\u0275cmp=z({type:t,selectors:[["app-capture-cards"]],hostBindings:function(e,n){1&e&&C("beforeunload",function(r){return
n.onWindowClose(r)},!1,ni)},decls:42,vars:72,consts:[[1,"m-5"],["icon","pi
pi-plus-circle","styleClass","p-button-plain",3,"label","onClick"],[3,"header","visible","modal","draggable","resizable","visibleChange"],["optionLabel","Description","optionDisabled","Inactive",3,"options","ngModel","listStyle","ngModelChange","onDblClick"],["pTemplate","footer"],["styleClass","p-button-warning","icon","pi
pi-trash",3,"label","disabled","click"],["styleClass","p-button-danger","icon","pi
pi-trash","iconPos","left",3,"label","disabled","click"],[1,"grid","nogutter"],["class","col-12",4,"ngIf"],[1,"col-12","w-full",3,"onClose","onOpen"],[3,"disabled","selected","selectedChang
e",4,"ngFor","ngForOf"],[1,"flex","justify-content-end"],["icon","pi
pi-angle-left","iconPos","left",1,"p-3",3,"label","onClick"],["icon","pi
pi-angle-right","iconPos","right",1,"p-3",3,"label","onClick"],["icon","pi
pi-times-circle","styleClass","p-button-plain",3,"label","onClick"],["icon","pi
pi-check-circle","styleClass","p-button-plain",3,"label","disabled","onClick"],["icon","pi
pi-times-circle","styleClass","p-button-plain",3,"label","click"],["icon","pi
pi-check-circle","styleClass","p-button-plain",3,"label","click"],[1,"col-12"],["severity","success",3,"text"],["severity","error",3,"text"],[3,"disabled","selected","selectedChange"],["pTemplate","header"],["pTemplate","content"],[1,"grid","w-full"],[1,"col-11","pr-1"],["styleClass","p-button-warning","icon","pi
pi-trash",3,"label","disabled","onClick"],[3,"ngSwitch"],[3,"card","cardList",4,"ngSwitchCase"],[3,"card","cardList","diseqcTreeList","parent",4,"ngSwitchCase"],[4,"ngSwitchDefault"],[3,"card","cardList"],[3,"card","
cardList","diseqcTreeList","parent"]],template:function(e,n){1&e&&(l(0,"p-card",0)(1,"h2"),g(2),m(3,"translate"),c(),l(4,"p-button",1),C("onClick",function(){return
n.displayModal=!0}),m(5,"translate"),c(),l(6,"p-dialog",2),C("visibleChange",function(r){return
n.displayModal=r}),m(7,"translate"),l(8,"p"),g(9),m(10,"translate"),c(),l(11,"p-listbox",3),C("ngModelChange",function(r){return
n.selectedCardType=r})("onDblClick",function(){return
n.newCard()}),c(),_(12,KJ,4,7,"ng-template",4),c(),g(13," \xa0
"),l(14,"p-button",5),C("click",function(){return
n.displayDeleteAllonHost=!0}),m(15,"translate"),c(),l(16,"p-dialog",2),C("visibleChange",function(r){return
n.displayDeleteAllonHost=r}),m(17,"translate"),l(18,"h2"),g(19),m(20,"translate"),c(),_(21,QJ,4,6,"ng-template",4),c(),g(22,"
\xa0 "),l(23,"p-button",6),C("click",function(){return
n.displayDeleteAll=!0}),m(24,"translate"),c(),l(25,"p-dialog",2),C("visibleChange",function(r){return
n.displayDeleteAll=r}),m(26,"translate"),l(27,"h2
"),g(28),m(29,"translate"),c(),_(30,JJ,4,6,"ng-template",4),c(),k(31,"br"),l(32,"div",7),_(33,YJ,5,3,"div",8),_(34,ZJ,5,3,"div",8),c(),l(35,"p-accordion",9),C("onClose",function(r){return
n.onTabClose(r)})("onOpen",function(r){return
n.onTabOpen(r)}),_(36,gY,3,2,"p-accordionTab",10),c(),l(37,"div",11)(38,"p-button",12),C("onClick",function(){return
n.router.navigate(["setupwizard/general"])}),m(39,"translate"),c(),l(40,"p-button",13),C("onClick",function(){return
n.router.navigate(["setupwizard/recording-profiles"])}),m(41,"translate"),c()()()),2&e&&(a(2),S(f(3,38,"settings.capture.title")),a(2),x("label",f(5,40,"settings.capture.new_capture_card")),a(2),q(A(64,Dd)),x("header",f(7,42,"settings.capture.new_capture_card")),p("visible",n.displayModal)("modal",!0)("draggable",!1)("resizable",!1),a(3),S(f(10,44,"settings.capture.select_type")),a(2),p("options",n.cardTypes)("ngModel",n.selectedCardType)("listStyle",A(65,_Y)),a(3),x("label",Dt(15,46,"settings.capture.delete_on_host",U(66,p
S,n.m_hostName))),p("disabled",n.setupService.schedulingEnabled),a(2),q(A(68,Dd)),x("header",Dt(17,49,"settings.capture.delete_on_host",U(69,pS,n.m_hostName))),p("visible",n.displayDeleteAllonHost)("modal",!0)("draggable",!1)("resizable",!1),a(3),S(f(20,52,"settings.common.ru_sure")),a(4),x("label",f(24,54,"settings.capture.delete_all")),p("disabled",n.setupService.schedulingEnabled),a(2),q(A(71,Dd)),x("header",f(26,56,"settings.capture.delete_all_all")),p("visible",n.displayDeleteAll)("modal",!0)("draggable",!1)("resizable",!1),a(3),S(f(29,58,"settings.common.ru_sure")),a(5),p("ngIf",n.expectedCount&&n.successCount==n.expectedCount),a(1),p("ngIf",n.errorCount>0),a(2),p("ngForOf",n.m_CaptureCardsFiltered),a(2),x("label",f(39,60,"common.back")),a(2),x("label",f(41,62,"common.next")))},styles:["@media
screen and (max-width:
48rem){.p-card-body,.p-card-content,.p-accordion-content{padding:0rem!important}}\n"],encapsulation:2}),t})();function
bY(t,i){if(1&t&&(l(0,"div",10)(1,"div",11),g
(2),l(3,"b"),g(4),c()()()),2&t){const
e=d(2),n=e.$implicit,s=e.index,r=d();a(2),T(" ",n.Name,"
"),a(2),T("\xa0",r.dirtyMessages[s],"")}}function
vY(t,i){1&t&&_(0,bY,5,2,"div",9),2&t&&p("ngIf",d(2).readyCount>0)}function
CY(t,i){if(1&t&&k(0,"app-profile-group",12),2&t){const
e=d().$implicit,n=d();p("group",e)("parentComponent",n)}}function
yY(t,i){if(1&t){const
e=I();l(0,"p-accordionTab",6),C("selectedChange",function(s){const
o=v(e).index;return
d().activeTab[o]=s}),_(1,vY,1,1,"ng-template",7),_(2,CY,1,2,"ng-template",8),c()}if(2&t){const
e=i.index;p("selected",d().activeTab[e])}}let mS=(()=>{class
t{constructor(e,n,s,r){this.captureCardService=e,this.router=n,this.translate=s,this.setupService=r,this.currentTab=-1,this.deletedTab=-1,this.dirtyMessages=[],this.activeTab=[],this.readyCount=0,this.profileGroups=[],this.dirtyText="settings.common.unsaved",this.warningText="settings.common.warning",this.groups=[],this.setupService.setCurrentForm(null),this.loadGroups(),s.get(this.dirtyT
ext).subscribe(o=>this.dirtyText=o),s.get(this.warningText).subscribe(o=>this.warningText=o)}loadGroups(){this.captureCardService.GetRecProfileGroupList(0,0,!0).subscribe(n=>{this.groups=n.RecProfileGroupList.RecProfileGroups,this.readyCount++})}ngOnInit(){}onTabOpen(e){this.currentTab=e.index,this.dirtyMessages[this.currentTab]=""}onTabClose(e){this.showDirty(),this.currentTab=-1}showDirty(){-1==this.currentTab||!this.profileGroups[this.currentTab]||(this.dirtyMessages[this.currentTab]=this.profileGroups[this.currentTab].allClean()?"":this.dirtyText)}confirm(e){return
oe(window.confirm(e))}canDeactivate(){let e=!0;return
this.profileGroups.forEach(n=>{n.allClean()||(e=!1)}),!!e||this.confirm(this.warningText)}onWindowClose(e){let
n=!0;this.profileGroups.forEach(s=>{s.allClean()||(n=!1)}),n||(e.preventDefault(),e.returnValue=!1)}}return
t.\u0275fac=function(e){return
new(e||t)(D(Gt),D(It),D(Oe),D(Me))},t.\u0275cmp=z({type:t,selectors:[["app-recording-profiles"]],hostBindings:functio
n(e,n){1&e&&C("beforeunload",function(r){return
n.onWindowClose(r)},!1,ni)},decls:11,vars:10,consts:[[1,"md:m-5"],[1,"col-12","w-full",3,"onOpen","onClose"],[3,"selected","selectedChange",4,"ngFor","ngForOf"],[1,"flex","justify-content-end"],["icon","pi
pi-angle-left","iconPos","left",1,"p-3",3,"label","onClick"],["icon","pi
pi-angle-right","iconPos","right",1,"p-3",3,"label","onClick"],[3,"selected","selectedChange"],["pTemplate","header"],["pTemplate","content"],["class","grid
w-full",4,"ngIf"],[1,"grid","w-full"],[1,"col-9","pr-1"],[3,"group","parentComponent"]],template:function(e,n){1&e&&(l(0,"p-card",0)(1,"h2"),g(2),m(3,"translate"),c(),l(4,"p-accordion",1),C("onOpen",function(r){return
n.onTabOpen(r)})("onClose",function(r){return
n.onTabClose(r)}),_(5,yY,3,1,"p-accordionTab",2),c(),l(6,"div",3)(7,"p-button",4),C("onClick",function(){return
n.router.navigate(["setupwizard/capture-cards"])}),m(8,"translate"),c(),l(9,"p-button",5),C("onClick",function(){return
n.router.navigat
e(["setupwizard/video-sources"])}),m(10,"translate"),c()()()),2&e&&(a(2),S(f(3,4,"settings.rprofiles.title")),a(3),p("ngForOf",n.groups),a(2),x("label",f(8,6,"common.back")),a(2),x("label",f(10,8,"common.next")))},styles:["@media
screen and (max-width:
48rem){.p-card-body,.p-card-content,.p-accordion-content{padding:0rem!important}}\n"],encapsulation:2}),t})(),Or=(()=>{class
t{constructor(e){this.httpClient=e}AddDBChannel(e){return
this.httpClient.post("/Channel/AddDBChannel",e)}UpdateDBChannel(e){return
this.httpClient.post("/Channel/UpdateDBChannel",e)}AddVideoSource(e){return
this.httpClient.post("/Channel/AddVideoSource",e)}FetchChannelsFromSource(e){let
n=(new
ye).set("SourceId",e.SourceId).set("CardId",e.CardId).set("WaitForFinish",e.WaitForFinish);return
this.httpClient.get("/Channel/FetchChannelsFromSource",{params:n})}GetChannelInfo(e){let
n=(new ye).set("ChanID",e);return
this.httpClient.get("/Channel/GetChannelInfo",{params:n})}GetChannelInfoList(e){let
n=new ye;return vo
id 0!==e.SourceID&&(n=n.set("SourceID",e.SourceID)),void
0!==e.ChannelGroupID&&(n=n.set("ChannelGroupID",e.ChannelGroupID)),void
0!==e.StartIndex&&(n=n.set("StartIndex",e.StartIndex)),void
0!==e.Count&&(n=n.set("Count",e.Count)),void
0!==e.OnlyVisible&&(n=n.set("OnlyVisible",e.OnlyVisible)),void
0!==e.Details&&(n=n.set("Details",e.Details)),void
0!==e.OrderByName&&(n=n.set("OrderByName",e.OrderByName)),void
0!==e.GroupByCallsign&&(n=n.set("GroupByCallsign",e.GroupByCallsign)),void
0!==e.OnlyTunable&&(n=n.set("OnlyTunable",e.OnlyTunable)),this.httpClient.get("/Channel/GetChannelInfoList",{params:n})}GetDDLineupList(e){let
n=(new
ye).set("Source",e.Source).set("UserId",e.UserId).set("Password",e.Password);return
this.httpClient.get("/Channel/GetDDLineupList",{params:n})}GetVideoMultiplex(e){let
n=(new ye).set("MplexID",e);return
this.httpClient.get("/Channel/GetVideoMultiplex",{params:n})}GetVideoMultiplexList(e){let
n=(new ye).set("SourceID",e.SourceID);return e.StartIndex&&(n=n.set(
"StartIndex",e.StartIndex)),e.Count&&(n=n.set("Count",e.Count)),this.httpClient.get("/Channel/GetVideoMultiplexList",{params:n})}GetVideoSource(e){let
n=(new ye).set("SourceID",e);return
this.httpClient.get("/Channel/GetVideoSource",{params:n})}GetVideoSourceList(){return
this.httpClient.get("/Channel/GetVideoSourceList")}GetXMLTVIdList(e){let n=(new
ye).set("SourceID",e);return
this.httpClient.get("/Channel/GetXMLTVIdList",{params:n})}GetAvailableChanid(){return
this.httpClient.get("/Channel/GetAvailableChanid",{})}RemoveDBChannel(e){return
this.httpClient.post("/Channel/RemoveDBChannel",{ChannelID:e})}RemoveVideoSource(e){return
this.httpClient.post("/Channel/RemoveVideoSource",{SourceId:e})}UpdateVideoSource(e){return
this.httpClient.post("/Channel/UpdateVideoSource",e)}GetGrabberList(){return
this.httpClient.get("/Channel/GetGrabberList")}GetFreqTableList(){return
this.httpClient.get("/Channel/GetFreqTableList")}GetCommMethodList(){return
this.httpClient.get("/Channel/GetCommMet
hodList")}StartScan(e){return
this.httpClient.post("/Channel/StartScan",e)}GetScanStatus(){return
this.httpClient.get("/Channel/GetScanStatus")}StopScan(e){return
this.httpClient.post("/Channel/StopScan",{Cardid:e})}GetScanList(e){let n=(new
ye).set("SourceID",e);return
this.httpClient.get("/Channel/GetScanList",{params:n})}SendScanDialogResponse(e){return
this.httpClient.post("/Channel/SendScanDialogResponse",e)}}return
t.\u0275fac=function(e){return
new(e||t)(K(Bi))},t.\u0275prov=X({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();const
wY=["vsourceform"],TY=["top"];function
SY(t,i){1&t&&(g(0),m(1,"translate")),2&t&&T("
",f(1,1,"settings.vsource.item_title")," ")}function
xY(t,i){}function
DY(t,i){if(1&t&&(l(0,"div")(1,"small",34),g(2),c()()),2&t){const
e=d(2);a(2),T(" ",e.work.errorMessage," ")}}const
fS=function(){return{minWidth:"80%"}};function MY(t,i){if(1&t){const
e=I();l(0,"p-dropdown",35,36),C("ngModelChange",function(s){return
v(e),d(2).videoSource.Grabber=s})("onCha
nge",function(){return v(e),d(2).checkName()}),c()}if(2&t){const
e=d(2);q(A(5,fS)),p("options",e.grabberList.GrabberList.Grabbers)("ngModel",e.videoSource.Grabber)("editable",!1)}}function
kY(t,i){if(1&t){const
e=I();l(0,"div",10)(1,"label",37),g(2),m(3,"translate"),c(),l(4,"p"),g(5),m(6,"translate"),l(7,"a",38),g(8,"XMLTV"),c()(),l(9,"table")(10,"tr")(11,"td",39),g(12),c(),l(13,"td",40)(14,"button",41),C("click",function(){return
v(e),d(2).copyConfigure()}),m(15,"translate"),c()()()()()}if(2&t){const
e=d(2);a(2),T(" ",f(3,4,"settings.vsource.grabberconfig_label"),"
"),a(3),T(" ",f(6,6,"settings.vsource.grabberconfig_desc"),"
"),a(7),T(" ",e.configCommand,"
"),a(2),x("pTooltip",f(15,8,"settings.common.clipboard_tooltip"))}}function
IY(t,i){if(1&t){const
e=I();l(0,"p-dropdown",42,43),C("ngModelChange",function(s){return
v(e),d(2).videoSource.FreqTable=s}),c()}if(2&t){const
e=d(2);q(A(5,fS)),p("options",e.freqTableList.FreqTableList)("ngModel",e.videoSource.FreqTable)("editable",!1)}}
function EY(t,i){if(1&t){const
e=I();l(0,"div",8)(1,"div",9)(2,"div",10)(3,"label",11),g(4),m(5,"translate"),c(),l(6,"input",12,13),C("ngModelChange",function(s){return
v(e),d().videoSource.SourceName=s})("change",function(){return
v(e),d().checkName()}),c(),_(8,DY,3,1,"div",14),l(9,"small",15),g(10),m(11,"translate"),c()(),l(12,"div",10)(13,"label",16),g(14),m(15,"translate"),c(),_(16,MY,2,6,"p-dropdown",17),l(17,"small",15),g(18),m(19,"translate"),c()(),_(20,kY,16,10,"div",18),l(21,"div",10)(22,"p-checkbox",19,20),C("ngModelChange",function(s){return
v(e),d().videoSource.UseEIT=s}),m(24,"translate"),c(),l(25,"small",15),g(26),m(27,"translate"),c()(),l(28,"div",10)(29,"label",21),g(30),m(31,"translate"),c(),_(32,IY,2,6,"p-dropdown",22),l(33,"small",15),g(34),m(35,"translate"),c()(),l(36,"div",10)(37,"label",23),g(38),m(39,"translate"),c(),l(40,"p-inputNumber",24),C("ngModelChange",function(s){return
v(e),d().videoSource.ScanFrequency=s}),c(),l(41,"small",15),g(42),m(43,"translate")
,c()(),l(44,"div",10)(45,"label",25),g(46),m(47,"translate"),c(),l(48,"p-inputNumber",26),C("ngModelChange",function(s){return
v(e),d().videoSource.NITId=s}),c(),l(49,"small",15),g(50),m(51,"translate"),c()(),l(52,"div",10)(53,"label",27),g(54),m(55,"translate"),c(),l(56,"p-inputNumber",28),C("ngModelChange",function(s){return
v(e),d().videoSource.BouquetId=s}),c(),l(57,"small",15),g(58),m(59,"translate"),l(60,"a",29),g(61,"DVB
UK"),c()()(),l(62,"div",10)(63,"label",30),g(64),m(65,"translate"),c(),l(66,"p-inputNumber",31),C("ngModelChange",function(s){return
v(e),d().videoSource.RegionId=s}),c(),l(67,"small",15),g(68),m(69,"translate"),l(70,"a",29),g(71,"DVB
UK"),c()()(),l(72,"div",10)(73,"label",32),g(74),m(75,"translate"),c(),l(76,"p-inputNumber",33),C("ngModelChange",function(s){return
v(e),d().videoSource.LCNOffset=s}),c(),l(77,"small",15),g(78),m(79,"translate"),c()()()()}if(2&t){const
e=d();a(4),S(f(5,54,"settings.vsource.source_label")),a(2),p("ngModel",e.videoSource.SourceNa
me)("disabled",e.videoSource.Id>0)("maxlength",50),a(2),p("ngIf",e.work.errorMessage),a(2),T("
",f(11,56,"settings.vsource.source_desc")," "),a(4),T("
",f(15,58,"settings.vsource.grabber_label"),"
"),a(2),p("ngIf",e.grabberList.GrabberList.Grabbers.length>0),a(2),T("
",f(19,60,"settings.vsource.grabber_desc"),"
"),a(2),p("ngIf",e.configCommand.length>0),a(2),x("label",f(24,62,"settings.vsource.eit_label")),p("ngModel",e.videoSource.UseEIT)("binary",!0),a(4),T("
",f(27,64,"settings.vsource.eit_desc")," "),a(4),T("
",f(31,66,"settings.vsource.freqtable_label"),"
"),a(2),p("ngIf",e.freqTableList.FreqTableList.length>0),a(2),T("
",f(35,68,"settings.vsource.freqtable_desc")," "),a(4),T("
",f(39,70,"settings.vsource.scanfreq_label"),"
"),a(2),p("ngModel",e.videoSource.ScanFrequency)("min",0)("max",999999999),a(2),T("
",f(43,72,"settings.vsource.scanfreq_desc")," "),a(4),T("
",f(47,74,"settings.vsource.netid_label"),"
"),a(2),p("ngModel",e.videoSource.NITId)("showButtons",!0)("min",-1)("ma
x",65535)("step",1)("useGrouping",!1),a(2),T("
",f(51,76,"settings.vsource.netid_desc")," "),a(4),T("
",f(55,78,"settings.vsource.bouquet_label"),"
"),a(2),p("ngModel",e.videoSource.BouquetId)("showButtons",!0)("min",0)("max",65535)("step",1)("useGrouping",!1),a(2),T("
",f(59,80,"settings.vsource.bouquet_desc")," "),a(6),T("
",f(65,82,"settings.vsource.region_label"),"
"),a(2),p("ngModel",e.videoSource.RegionId)("showButtons",!0)("min",0)("max",100)("step",1)("useGrouping",!1),a(2),T("
",f(69,84,"settings.vsource.region_desc")," "),a(6),T("
",f(75,86,"settings.vsource.lcnoffset_label"),"
"),a(2),p("ngModel",e.videoSource.LCNOffset)("showButtons",!0)("min",0)("max",2e4)("step",100)("useGrouping",!1),a(2),T("
",f(79,88,"settings.vsource.lcnoffset_desc")," ")}}function
RY(t,i){1&t&&(k(0,"p-message",49),m(1,"translate")),2&t&&x("text",f(1,1,"common.savesuccess"))}function
LY(t,i){1&t&&(k(0,"p-message",50),m(1,"translate")),2&t&&x("text",f(1,1,"common.networkfail"))}function
OY(t,i){if(1
&t){const
e=I();l(0,"div",44)(1,"div",45),_(2,RY,2,3,"p-message",46),_(3,LY,2,3,"p-message",47),c(),l(4,"p-button",48),C("onClick",function(){v(e);const
s=d(),r=F(1);return
s.saveForm(),r.form.markAsPristine()}),m(5,"translate"),c()()}if(2&t){const
e=d(),n=F(1);a(2),p("ngIf",e.work.successCount>0&&0==e.work.errorCount&&!n.dirty),a(1),p("ngIf",e.work.errorCount>0),a(1),x("label",f(5,4,"common.save")),p("disabled",!n.dirty||!e.videoSource.SourceName||e.work.validateError||e.setupService.schedulingEnabled)}}let
AY=(()=>{class
t{constructor(e,n,s,r,o){this.channelService=e,this.translate=n,this.setupService=s,this.clipboard=r,this.mythService=o,this.grabberList={GrabberList:{Grabbers:[]}},this.freqTableList={FreqTableList:[]},this.work={successCount:0,errorCount:0,errorMessage:"",validateError:!1},this.messages={nameInUse:"settings.vsource.nameInUse",nameRequired:"settings.vsource.nameRequired"},this.configCommand="",this.saveObserver={next:u=>{u.bool?this.work.successCount++:!this.vide
oSource.Id&&u.int?(this.work.successCount++,this.videoSource.Id||(this.videoSource.Id=u.int)):(console.log("saveObserver
error",u),this.work.errorCount++,this.currentForm.form.markAsDirty())},error:u=>{console.log("saveObserver
error",u),this.work.errorCount++,this.currentForm.form.markAsDirty()}},n.get(this.messages.nameInUse).subscribe(u=>this.messages.nameInUse=u),n.get(this.messages.nameRequired).subscribe(u=>this.messages.nameRequired=u)}ngOnInit(){this.channelService.GetGrabberList().subscribe(e=>{this.grabberList=e}),this.channelService.GetFreqTableList().subscribe(e=>{this.freqTableList=e}),this.mythService.GetBackendInfo().subscribe(e=>{this.backendInfo=e,this.setupConf()})}ngAfterViewInit(){this.setupService.setCurrentForm(this.currentForm),this.topElement.nativeElement.scrollIntoView({behavior:"smooth",block:"start"})}copyConfigure(){this.clipboard.copy(this.configCommand)}checkName(){this.work.errorMessage="",this.work.validateError=!1,this.videoSource.SourceName=this.vi
deoSource.SourceName.trim(),this.videoSourceList.VideoSourceList.VideoSources.find(n=>n.SourceName==this.videoSource.SourceName&&n.Id!=this.videoSource.Id)&&(this.work.errorMessage=this.messages.nameInUse,this.work.validateError=!0),""==this.videoSource.SourceName&&(this.work.errorMessage=this.messages.nameRequired,this.work.validateError=!0),this.setupConf()}setupConf(){this.configCommand="eitonly"==this.videoSource.Grabber||"/bin/true"==this.videoSource.Grabber||""==this.videoSource.Grabber||""==this.videoSource.SourceName||this.work.validateError?"":"sudo
-u "+this.backendInfo.BackendInfo.Env.USER+"
"+this.videoSource.Grabber+' --configure --config-file
"'+this.backendInfo.BackendInfo.Env.MYTHCONFDIR+"/"+this.videoSource.SourceName+'.xmltv"'}saveForm(){if(this.work.successCount=0,this.work.errorCount=0,this.videoSource.Id){let
e=this.videoSource;e.SourceID=this.videoSource.Id,this.channelService.UpdateVideoSource(e).subscribe(this.saveObserver)}else
this.channelService.AddVideoSo
urce(this.videoSource).subscribe(this.saveObserver)}}return
t.\u0275fac=function(e){return
new(e||t)(D(Or),D(Oe),D(Me),D(lS),D(qt))},t.\u0275cmp=z({type:t,selectors:[["app-vsource"]],viewQuery:function(e,n){if(1&e&&(W(wY,5),W(TY,5)),2&e){let
s;V(s=B())&&(n.currentForm=s.first),V(s=B())&&(n.topElement=s.first)}},inputs:{videoSource:"videoSource",videoSourceList:"videoSourceList"},decls:9,vars:0,consts:[["name","vsourceform",1,"ml-3","mr-3"],["vsourceform","ngForm"],["top",""],[1,"m-5"],["pTemplate","title"],["pTemplate","subtitle"],["pTemplate","content"],["pTemplate","footer"],[1,"grid"],[1,"mb-4","w-full"],[1,"form-group","field"],["for","SourceName",1,"label","block"],["pInputText","","id","SourceName","name","SourceName",1,"mb-2","form-control","w-full",3,"ngModel","disabled","maxlength","ngModelChange","change"],["SourceName","ngModel"],[4,"ngIf"],[1,"block"],["for","Grabber",1,"label","block"],["optionLabel","DisplayName","optionValue","Program","name","Grabber",3,"options","ng
Model","editable","style","ngModelChange","onChange",4,"ngIf"],["class","form-group
field",4,"ngIf"],["inputId","UseEIT",&...
ffset",1,"label","block"],["name",&quo...
pi-copy",1,"p-button-rounded","p-button-text",3,"pTooltip","click"],["name","FreqTable",3,"options","ngModel","editable","ngModelChange"],["FreqTable","ngModel"],[1,"grid","nogutter"],[1,"col-12"],["severity","success",3,"text",4,"ngIf"],["severity","error",3,"text",4,"ngIf"],["icon","pi
pi-save","iconPos","left",1,"col","pr-1",3,"label","disabled","onClick"],["severity","success",3,"text"],["severity","error",3,"text
"]],template:function(e,n){1&e&&(l(0,"form",0,1),k(2,"span",null,2),l(4,"p-card",3),_(5,SY,2,3,"ng-template",4),_(6,xY,0,0,"ng-template",5),_(7,EY,80,90,"ng-template",6),_(8,OY,6,6,"ng-template",7),c()())},directives:[ze,Ue,He,Ne,ne,Ye,Te,_e,_n,Q,Ot,On,bt,Kt,sn,pt,qe,ve],pipes:[ce],styles:["a[_ngcontent-%COMP%]:link,
a[_ngcontent-%COMP%]:visited,
a[_ngcontent-%COMP%]:active{background-color:#fff}"]}),t})();function
PY(t,i){if(1&t){const
e=I();l(0,"p-button",12),C("click",function(){return
v(e),d().displayDeleteAll=!1}),m(1,"translate"),c(),l(2,"p-button",13),C("click",function(){return
v(e),d().deleteAllSources()}),m(3,"translate"),c()}2&t&&(x("label",f(1,2,"common.no")),a(2),x("label",f(3,4,"common.yes")))}function
FY(t,i){1&t&&(l(0,"div",14),k(1,"br")(2,"p-message",15),m(3,"translate"),k(4,"br"),c()),2&t&&(a(2),x("text",f(3,1,"settings.common.successful_delete")))}function
NY(t,i){1&t&&(l(0,"div",14),k(1,"br")(2,"p-message",16),m(3,"translate"),k(4,"br"),c()),2&t&&(a(2),x("text",f
(3,1,"common.networkfail")))}function
VY(t,i){if(1&t&&(l(0,"div",20)(1,"div",21),g(2),l(3,"b"),g(4),c()()()),2&t){const
e=d().index,n=d();a(2),We("
",n.videoSourceList.VideoSourceList.VideoSources[e].SourceName,"
(",n.videoSourceList.VideoSourceList.VideoSources[e].Grabber,")
"),a(2),T("\xa0",n.dirtyMessages[e],"")}}function
BY(t,i){if(1&t){const
e=I();l(0,"p-button",12),C("click",function(){v(e);const
s=d(2).index;return
d().displayDeleteThis[s]=!1}),m(1,"translate"),c(),l(2,"p-button",13),C("click",function(){v(e);const
s=d(2).index;return
d().deleteThis(s)}),m(3,"translate"),c()}2&t&&(x("label",f(1,2,"common.no")),a(2),x("label",f(3,4,"common.yes")))}const
gS=function(){return{width:"50vw"}},HY=function(t,i){return{Grabber:t,DisplayName:i}};function
qY(t,i){if(1&t){const
e=I();l(0,"p-button",22),C("onClick",function(){v(e);const
s=d().index;return
d().displayDeleteThis[s]=!0}),m(1,"translate"),c(),l(2,"p-dialog",3),C("visibleChange",function(s){v(e);const
r=d().index;return d().d
isplayDeleteThis[r]=s}),m(3,"translate"),l(4,"h2"),g(5),m(6,"translate"),c(),l(7,"p"),g(8),m(9,"translate"),c(),_(10,BY,4,6,"ng-template",4),c(),k(11,"app-vsource",23)}if(2&t){const
e=d().index,n=d();x("label",f(1,13,"settings.vsource.delete_this")),p("disabled",!n.videoSourceList.VideoSourceList.VideoSources[e].Id||n.setupService.schedulingEnabled),a(2),q(A(22,gS)),x("header",f(3,15,"settings.vsource.delete_this")),p("visible",n.displayDeleteThis[e])("modal",!0)("draggable",!1)("resizable",!1),a(3),S(f(6,17,"settings.common.ru_sure")),a(3),S(Dt(9,19,"settings.vsource.delete_details",Ge(23,HY,n.videoSourceList.VideoSourceList.VideoSources[e].Grabber,n.videoSourceList.VideoSourceList.VideoSources[e].SourceName))),a(3),p("videoSource",n.videoSourceList.VideoSourceList.VideoSources[e])("videoSourceList",n.videoSourceList)}}function
GY(t,i){if(1&t){const
e=I();l(0,"p-accordionTab",17),C("selectedChange",function(s){const
o=v(e).index;return d().activeTab[o]=s}),_(1,VY,5,3,"ng-template",
18),_(2,qY,12,26,"ng-template",19),c()}if(2&t){const
e=i.index,n=d();p("disabled",n.disabledTab[e])("selected",n.activeTab[e])}}let
UY=(()=>{class
t{constructor(e,n,s,r){this.setupService=e,this.translate=n,this.channelService=s,this.router=r,this.currentTab=-1,this.deletedTab=-1,this.dirtyMessages=[],this.forms=[],this.disabledTab=[],this.activeTab=[],this.displayDeleteThis=[],this.dirtyText="settings.common.unsaved",this.warningText="settings.common.warning",this.deletedText="settings.common.deleted",this.newText="settings.common.new",this.successCount=0,this.expectedCount=0,this.errorCount=0,this.displayDeleteAll=!1,this.deleteAll=!1,this.videoSourceList={VideoSourceList:{VideoSources:[],AsOf:"",Version:"",ProtoVer:""}},this.delObserver={next:o=>{o.bool?(this.successCount++,this.successCount==this.expectedCount&&(this.deleteAll?(this.loadSources(),this.deleteAll=!1):this.deletedTab>-1&&(this.dirtyMessages[this.deletedTab]=this.deletedText,this.disabledTab[this.deletedTab]=!0,this
.activeTab[this.deletedTab]=!1,this.deletedTab=-1))):(this.errorCount++,this.deletedTab=-1,this.deleteAll=!1)},error:o=>{console.error(o),this.errorCount++,this.deleteAll=!1}},this.setupService.setCurrentForm(null),this.loadSources(),n.get(this.dirtyText).subscribe(o=>this.dirtyText=o),n.get(this.warningText).subscribe(o=>this.warningText=o),n.get(this.deletedText).subscribe(o=>this.deletedText=o),n.get(this.newText).subscribe(o=>this.newText=o)}loadSources(){this.channelService.GetVideoSourceList().subscribe(e=>{this.videoSourceList=e,this.dirtyMessages=[],this.forms=[],this.disabledTab=[],this.activeTab=[],this.displayDeleteThis=[];for(let
n=0;n<this.videoSourceList.VideoSourceList.VideoSources.length;n++)this.dirtyMessages.push(""),this.forms.push({}),this.disabledTab.push(!1),this.activeTab.push(!1),this.displayDeleteThis.push(!1)})}ngOnInit(){}onTabOpen(e){this.successCount+this.errorCount>=this.expectedCount&&(this.errorCount=0,this.successCount=0,this.expectedCount=0),this.sh
owDirty();let
n=this.setupService.getCurrentForm();null!=n&&(this.forms[e.index]=n),this.setupService.setCurrentForm(null),this.currentTab=e.index,this.dirtyMessages[this.currentTab]=""}onTabClose(e){this.showDirty(),this.currentTab=-1}showDirty(){-1==this.currentTab||!this.forms[this.currentTab]||this.disabledTab[this.currentTab]||(this.dirtyMessages[this.currentTab]=this.forms[this.currentTab].dirty?this.dirtyText:this.videoSourceList.VideoSourceList.VideoSources[this.currentTab].Id?"":this.newText)}newSource(){for(let
n=0;n<this.activeTab.length;n++)this.activeTab[n]=!1;this.dirtyMessages.push(this.newText),this.disabledTab.push(!1),this.activeTab.push(!1),this.displayDeleteThis.push(!1),this.videoSourceList.VideoSourceList.VideoSources.push({Grabber:"eitonly",FreqTable:"default",ScanFrequency:0,NITId:-1,BouquetId:0,RegionId:0,LCNOffset:0,SourceName:""})}deleteAllSources(){if(!(this.successCount+this.errorCount<this.expectedCount)){this.errorCount=0,this.successCount=0,this.expec
tedCount=0,this.displayDeleteAll=!1,this.deletedTab=-1,this.deleteAll=!0;for(let
e=0;e<this.videoSourceList.VideoSourceList.VideoSources.length;e++)!this.disabledTab[e]&&this.videoSourceList.VideoSourceList.VideoSources[e].Id&&this.deleteThis(e)}}deleteThis(e){let
n=this.videoSourceList.VideoSourceList.VideoSources[e].Id;if(!this.deleteAll){if(this.successCount+this.errorCount<this.expectedCount)return;this.errorCount=0,this.successCount=0,this.expectedCount=0,this.displayDeleteThis[e]=!1,this.deletedTab=e}this.expectedCount++,this.channelService.RemoveVideoSource(n).subscribe(this.delObserver)}confirm(e){return
oe(window.confirm(e))}canDeactivate(){let
e=this.setupService.getCurrentForm();return!(this.forms[this.currentTab]&&this.forms[this.currentTab].dirty||this.dirtyMessages.find(n=>n==this.dirtyText)||e&&e.dirty)||this.confirm(this.warningText)}onWindowClose(e){let
n=this.setupService.getCurrentForm();(this.forms[this.currentTab]&&this.forms[this.currentTab].dirty||this.dirtyMe
ssages.find(s=>s==this.dirtyText)||n&&n.dirty)&&(e.preventDefault(),e.returnValue=!1)}}return
t.\u0275fac=function(e){return
new(e||t)(D(Me),D(Oe),D(Or),D(It))},t.\u0275cmp=z({type:t,selectors:[["app-video-sources"]],hostBindings:function(e,n){1&e&&C("beforeunload",function(r){return
n.onWindowClose(r)},!1,ni)},decls:26,vars:32,consts:[[1,"m-5"],["icon","pi
pi-plus-circle","styleClass","p-button-plain",3,"label","onClick"],["styleClass","p-button-danger","icon","pi
pi-trash","iconPos","left",3,"label","disabled","click"],[3,"header","visible","modal","draggable","resizable","visibleChange"],["pTemplate","footer"],[1,"grid","nogutter"],["class","col-12",4,"ngIf"],[1,"col-12","w-full",3,"onClose","onOpen"],[3,"disabled","selected","selectedChange",4,"ngFor","ngForOf"],[1,"flex","justify-content-end"],["icon","pi
pi-angle-left","iconPos","left",1,"p-3",3,"label","onClick"],["icon","pi
pi-angle-right","iconPos","right",1,"p-3",3,"label","onClick"],["icon","pi
pi-times-circle","styleClas
s","p-button-plain",3,"label","click"],["icon","pi
pi-check-circle","styleClass","p-button-plain",3,"label","click"],[1,"col-12"],["severity","success",3,"text"],["severity","error",3,"text"],[3,"disabled","selected","selectedChange"],["pTemplate","header"],["pTemplate","content"],[1,"grid","w-full"],[1,"col-9","pr-1"],["styleClass","p-button-warning","icon","pi
pi-trash",3,"label","disabled","onClick"],[3,"videoSource","videoSourceList"]],template:function(e,n){1&e&&(l(0,"p-card",0)(1,"h2"),g(2),m(3,"translate"),c(),l(4,"p-button",1),C("onClick",function(){return
n.newSource()}),m(5,"translate"),c(),g(6," \xa0
"),l(7,"p-button",2),C("click",function(){return
n.displayDeleteAll=!0}),m(8,"translate"),c(),l(9,"p-dialog",3),C("visibleChange",function(r){return
n.displayDeleteAll=r}),m(10,"translate"),l(11,"h2"),g(12),m(13,"translate"),c(),_(14,PY,4,6,"ng-template",4),c(),k(15,"br"),l(16,"div",5),_(17,FY,5,3,"div",6),_(18,NY,5,3,"div",6),c(),l(19,"p-accordion",7),C("onClose",function(r)
{return n.onTabClose(r)})("onOpen",function(r){return
n.onTabOpen(r)}),_(20,GY,3,2,"p-accordionTab",8),c(),l(21,"div",9)(22,"p-button",10),C("onClick",function(){return
n.router.navigate(["setupwizard/recording-profiles"])}),m(23,"translate"),c(),l(24,"p-button",11),C("onClick",function(){return
n.router.navigate(["setupwizard/input-connections"])}),m(25,"translate"),c()()()),2&e&&(a(2),S(f(3,17,"settings.vsource.title")),a(2),x("label",f(5,19,"settings.vsource.new_video_source")),a(3),x("label",f(8,21,"settings.vsource.delete_all")),p("disabled",n.setupService.schedulingEnabled),a(2),q(A(31,gS)),x("header",f(10,23,"settings.vsource.delete_all")),p("visible",n.displayDeleteAll)("modal",!0)("draggable",!1)("resizable",!1),a(3),S(f(13,25,"settings.common.ru_sure")),a(5),p("ngIf",n.expectedCount&&n.successCount==n.expectedCount),a(1),p("ngIf",n.errorCount>0),a(2),p("ngForOf",n.videoSourceList.VideoSourceList.VideoSources),a(2),x("label",f(23,27,"common.back")),a(2),x("label",f(25,29,"c
ommon.next")))},directives:[Ne,ve,bn,ne,Q,qe,Ss,at,Ts,AY],pipes:[ce],styles:["@media
screen and (max-width:
48rem){.p-card-body,.p-card-content,.p-accordion-content{padding:0rem!important}}\n"],encapsulation:2}),t})();function
zY(t,i){if(1&t&&(l(0,"div",10)(1,"div",11),g(2),l(3,"b"),g(4),c()()()),2&t){const
e=d(2),n=e.$implicit,s=e.index,r=d();a(2),Ec(" ",n.CardType,"
",n.VideoDevice," (",n.DisplayName,") =>
",r.videoSourceLookup[n.SourceId].SourceName,"
"),a(2),T("\xa0",r.dirtyMessages[s],"")}}function
jY(t,i){1&t&&_(0,zY,5,5,"div",9),2&t&&p("ngIf",d(2).readyCount>1)}function
$Y(t,i){if(1&t&&k(0,"app-iconnection",12),2&t){const
e=d().index,n=d();p("card",n.m_CaptureCardsFiltered[e])("cardList",n.m_CaptureCardList)("videoSourceLookup",n.videoSourceLookup)("videoSourceList",n.videoSourceList)("parentComponent",n)}}function
WY(t,i){if(1&t){const
e=I();l(0,"p-accordionTab",6),C("selectedChange",function(s){const
o=v(e).index;return d().activeTab[o]=s}),_(1,jY,1,1,"ng-template",7),_(2,$
Y,1,5,"ng-template",8),c()}if(2&t){const
e=i.index;p("selected",d().activeTab[e])}}let _S=(()=>{class
t{constructor(e,n,s,r,o,u){this.mythService=e,this.router=n,this.captureCardService=s,this.setupService=r,this.translate=o,this.channelService=u,this.currentTab=-1,this.deletedTab=-1,this.dirtyMessages=[],this.forms=[],this.activeTab=[],this.readyCount=0,this.dirtyText="settings.common.unsaved",this.warningText="settings.common.warning",this.m_hostName="",this.m_CaptureCardsFiltered=[],this.videoSourceList={VideoSourceList:{VideoSources:[],AsOf:"",Version:"",ProtoVer:""}},this.videoSourceLookup=[],this.setupService.setCurrentForm(null),this.mythService.GetHostName().subscribe(h=>{this.m_hostName=h.String,this.loadCards(!0)}),this.loadSources(),o.get(this.dirtyText).subscribe(h=>this.dirtyText=h),o.get(this.warningText).subscribe(h=>this.warningText=h)}loadCards(e){this.m_CaptureCardList$=this.captureCardService.GetCaptureCardList("",""),this.m_CaptureCardList$.subscribe(n=>{this.m_C
aptureCardList=n,e&&this.filterCards(),this.readyCount++})}filterCards(){this.m_CaptureCardsFiltered=this.m_CaptureCardList.CaptureCardList.CaptureCards.filter(e=>0==e.ParentId&&e.HostName==this.m_hostName),this.dirtyMessages=[],this.forms=[],this.activeTab=[];for(let
e=0;e<this.m_CaptureCardsFiltered.length;e++)this.dirtyMessages.push(""),this.activeTab.push(!1)}loadSources(){this.channelService.GetVideoSourceList().subscribe(e=>{this.videoSourceList=e,this.videoSourceList.VideoSourceList.VideoSources.unshift({Id:0,SourceName:"(None)",ScanFrequency:0}),this.videoSourceLookup=[],this.videoSourceList.VideoSourceList.VideoSources.forEach(n=>{this.videoSourceLookup[n.Id]=n}),this.readyCount++})}ngOnInit(){}onTabOpen(e){this.showDirty();let
n=this.setupService.getCurrentForm();null!=n&&(this.forms[e.index]=n),this.setupService.setCurrentForm(null),this.currentTab=e.index,this.dirtyMessages[this.currentTab]=""}onTabClose(e){this.showDirty(),this.currentTab=-1}showDirty(){-1==this.current
Tab||!this.forms[this.currentTab]||(this.dirtyMessages[this.currentTab]=this.forms[this.currentTab].dirty?this.dirtyText:"")}confirm(e){return
oe(window.confirm(e))}canDeactivate(){let
e=this.setupService.getCurrentForm();return!(this.forms[this.currentTab]&&this.forms[this.currentTab].dirty||this.dirtyMessages.find(n=>n==this.dirtyText)||e&&e.dirty)||this.confirm(this.warningText)}onWindowClose(e){let
n=this.setupService.getCurrentForm();(this.forms[this.currentTab]&&this.forms[this.currentTab].dirty||this.dirtyMessages.find(s=>s==this.dirtyText)||n&&n.dirty)&&(e.preventDefault(),e.returnValue=!1)}}return
t.\u0275fac=function(e){return
new(e||t)(D(qt),D(It),D(Gt),D(Me),D(Oe),D(Or))},t.\u0275cmp=z({type:t,selectors:[["app-input-connections"]],hostBindings:function(e,n){1&e&&C("beforeunload",function(r){return
n.onWindowClose(r)},!1,ni)},decls:11,vars:10,consts:[[1,"m-5"],[1,"col-12","w-full",3,"onClose","onOpen"],[3,"selected","selectedChange",4,"ngFor","ngForOf"],[1,"flex","justify
-content-end"],["icon","pi
pi-angle-left","iconPos","left",1,"p-3",3,"label","onClick"],["icon","pi
pi-angle-right","iconPos","right",1,"p-3",3,"label","onClick"],[3,"selected","selectedChange"],["pTemplate","header"],["pTemplate","content"],["class","grid
w-full",4,"ngIf"],[1,"grid","w-full"],[1,"col-9","pr-1"],[3,"card","cardList","videoSourceLookup","videoSourceList","parentComponent"]],template:function(e,n){1&e&&(l(0,"p-card",0)(1,"h2"),g(2),m(3,"translate"),c(),l(4,"p-accordion",1),C("onClose",function(r){return
n.onTabClose(r)})("onOpen",function(r){return
n.onTabOpen(r)}),_(5,WY,3,1,"p-accordionTab",2),c(),l(6,"div",3)(7,"p-button",4),C("onClick",function(){return
n.router.navigate(["setupwizard/video-sources"])}),m(8,"translate"),c(),l(9,"p-button",5),C("onClick",function(){return
n.router.navigate(["setupwizard/channel-editor"])}),m(10,"translate"),c()()()),2&e&&(a(2),S(f(3,4,"settings.iconnections.title")),a(3),p("ngForOf",n.m_CaptureCardsFiltered),a(2),x("label",f(8,6,"
common.back")),a(2),x("label",f(10,8,"common.next")))},styles:["@media
screen and (max-width:
48rem){.p-card-body,.p-card-content,.p-accordion-content{padding:0rem!important}}\n"],encapsulation:2}),t})();const
KY=["sgroupform"],QY=function(t){return{name:t}};function
JY(t,i){if(1&t&&k(0,"span",8),2&t){const
e=d();p("translate","settings.sgroups.sgroup_title")("translateParams",U(2,QY,e.sgroup.LocalizedName))}}function
YY(t,i){}function
ZY(t,i){1&t&&(l(0,"div")(1,"b"),g(2),m(3,"translate"),c()()),2&t&&(a(2),S(f(3,1,"settings.sgroups.deleted_label")))}function
XY(t,i){if(1&t){const
e=I();l(0,"tr")(1,"td",20),g(2),c(),l(3,"td",21)(4,"button",22),C("click",function(){const
r=v(e).index;return
d(2).editDirectory(r)}),c()(),l(5,"td",21)(6,"button",23),C("click",function(){const
r=v(e).index;return
d(2).deleteDirectory(r)}),c()(),l(7,"td"),_(8,ZY,4,3,"div",24),c()()}if(2&t){const
e=i.index,n=d(2);a(2),T(" ",n.editDirs[e],"
"),a(2),p("disabled",!n.editDirs[e]),a(2),p("disabled",!n.editDirs[
e]),a(2),p("ngIf",!n.editDirs[e])}}function eZ(t,i){if(1&t){const
e=I();l(0,"p-button",25),C("onClick",function(){return
v(e),d(2).showEditDlg=!1}),m(1,"translate"),c(),l(2,"p-button",26),C("onClick",function(){v(e);const
s=d(2);return
s.editDirs[s.editDlgNum]=s.editDirName,s.showEditDlg=!1}),m(3,"translate"),c()}2&t&&(x("label",f(1,2,"common.cancel")),a(2),x("label",f(3,4,"common.ok")))}const
tZ=function(){return{width:"50vw"}},nZ=function(){return{height:"50vh"}};function
iZ(t,i){if(1&t){const
e=I();l(0,"div",9)(1,"div",10)(2,"table"),_(3,XY,9,4,"tr",11),c(),l(4,"p-dialog",12),C("visibleChange",function(s){return
v(e),d().showEditDlg=s}),m(5,"translate"),l(6,"div",13)(7,"label",14),g(8),m(9,"translate"),c(),l(10,"input",15,16),C("ngModelChange",function(s){return
v(e),d().editDirName=s})("change",function(){return
v(e),d().textChange()}),c()(),l(12,"p-listbox",17,18),C("ngModelChange",function(s){return
v(e),d().selectedDir=s})("onClick",function(){return v(e),d().selectDir()}),c(
),_(14,eZ,4,6,"ng-template",7),c(),k(15,"br"),l(16,"p-button",19),C("onClick",function(){return
v(e),d().addDirectory()}),m(17,"translate"),c()()()}if(2&t){const
e=d();a(3),p("ngForOf",e.editDirs),a(1),q(A(20,tZ)),x("header",f(5,14,"settings.sgroups.seldir_title")),p("visible",e.showEditDlg)("modal",!0)("draggable",!1)("resizable",!1),a(4),S(f(9,16,"settings.sgroups.dirname_label")),a(2),p("ngModel",e.editDirName),a(2),p("options",e.dirSelect)("ngModel",e.selectedDir)("listStyle",A(21,nZ)),a(4),x("label",f(17,18,"settings.sgroups.adddir_button"))}}function
sZ(t,i){1&t&&(k(0,"p-message",32),m(1,"translate")),2&t&&x("text",f(1,1,"common.savesuccess"))}function
rZ(t,i){1&t&&(k(0,"p-message",33),m(1,"translate")),2&t&&x("text",f(1,1,"common.networkfail"))}function
oZ(t,i){if(1&t){const
e=I();l(0,"div",27)(1,"div",28),_(2,sZ,2,3,"p-message",29),_(3,rZ,2,3,"p-message",30),c(),l(4,"p-button",31),C("onClick",function(){v(e);const
s=d(),r=F(1);return s.saveForm(),r.form.markAsPristine()}),m(
5,"translate"),c()()}if(2&t){const
e=d(),n=F(1);a(2),p("ngIf",e.successCount>0&&0==e.errorCount&&!n.dirty),a(1),p("ngIf",e.errorCount>0),a(1),x("label",f(5,4,"common.save")),p("disabled",!n.dirty||e.setupService.schedulingEnabled)}}let
aZ=(()=>{class
t{constructor(e,n,s){this.mythService=e,this.setupService=n,this.translate=s,this.successCount=0,this.errorCount=0,this.expectCount=0,this.showEditDlg=!1,this.editDlgNum=-1,this.editDirName="",this.editDirs=[],this.dirSelect=[],this.selectedDir="",this.upString="UP
1
LEVEL",this.saveObserver={next:r=>{r.bool?(this.successCount++,this.successCount==this.expectCount&&(this.sgroup.DirNames=this.editDirs.filter(o=>o.length>1))):(this.errorCount++,this.currentForm.form.markAsDirty())},error:r=>{console.error(r),this.errorCount++,this.currentForm.form.markAsDirty()}},s.get("settings.sgroups.updir").subscribe(r=>this.upString="//
** "+r+"
**")}ngOnInit(){this.editDirs=this.sgroup.DirNames.slice()}ngAfterViewInit(){this.setupService.setCurrentF
orm(this.currentForm)}selectDir(){for(;"/"==this.editDirName.charAt(this.editDirName.length-1);)this.editDirName=this.editDirName.substring(0,this.editDirName.length-1);if(this.selectedDir.startsWith("//")){let
e=this.editDirName.lastIndexOf("/");this.editDirName=this.editDirName.substring(0,e),0==this.editDirName.length&&(this.editDirName="/")}else
this.editDirName=this.editDirName+"/"+this.selectedDir;this.fillDirList()}textChange(){this.fillDirList()}fillDirList(){0!=this.editDirName.indexOf("/")&&(this.editDirName="/"+this.editDirName),this.mythService.GetDirListing(this.editDirName).subscribe(e=>{"/"!=this.editDirName&&e.DirListing.unshift(this.upString),this.dirSelect=e.DirListing})}addDirectory(){this.editDirs.push("/"),this.editDirectory(this.editDirs.length-1)}editDirectory(e){this.editDirName=this.editDirs[e],this.editDlgNum=e,this.showEditDlg=!0,this.fillDirList()}deleteDirectory(e){this.editDirs[e]="",this.currentForm.form.markAsDirty()}saveForm(){this.successCount=0,thi
s.errorCount=0,this.expectCount=0;for(let
e=0;e<this.editDirs.length;e++){"/"==this.editDirs[e]&&(this.editDirs[e]="");for(let
n=e+1;n<this.editDirs.length;n++)this.editDirs[e]==this.editDirs[n]&&(this.editDirs[n]="")}this.editDirs.forEach(e=>{""!=e&&-1==this.sgroup.DirNames.indexOf(e)&&(this.mythService.AddStorageGroupDir({GroupName:this.sgroup.GroupName,DirName:e,HostName:this.hostName}).subscribe(this.saveObserver),this.expectCount++)}),this.sgroup.DirNames.forEach(e=>{-1==this.editDirs.indexOf(e)&&(this.mythService.RemoveStorageGroupDir({GroupName:this.sgroup.GroupName,DirName:e,HostName:this.hostName}).subscribe(this.saveObserver),this.expectCount++)})}}return
t.\u0275fac=function(e){return
new(e||t)(D(qt),D(Me),D(Oe))},t.\u0275cmp=z({type:t,selectors:[["app-sgroup"]],viewQuery:function(e,n){if(1&e&&W(KY,5),2&e){let
s;V(s=B())&&(n.currentForm=s.first)}},inputs:{sgroup:"sgroup",hostName:"hostName"},decls:9,vars:0,consts:[["name","sgroupform",1,"ml-3","mr-3"],["sgroupform","ngFor
m"],["top",""],[1,"m-5"],["pTemplate","title"],["pTemplate","subtitle"],["pTemplate","content"],["pTemplate","footer"],[3,"translate","translateParams"],[1,"grid"],[1,"mb-4","w-full"],[4,"ngFor","ngForOf"],[3,"header","visible","modal","draggable","resizable","visibleChange"],[1,"form-group","field"],["for","DirName",1,"label","block"],["pInputText","","id","DirName","name","DirName",1,"mb-2","form-control","w-full",2,"font-family","monospace",3,"ngModel","ngModelChange","change"],["DirName","ngModel"],["name","ListDirs",3,"options","ngModel","listStyle","ngModelChange","onClick"],["ListDirs","ngModel"],["icon","pi
pi-plus-circle","styleClass","p-button-plain",3,"label","onClick"],[1,"align-items-center","bg-blue-100","text-gray-900",2,"font-family","monospace"],[1,"align-items-center"],["pButton","","pRipple","","type","button","icon","pi
pi-pencil","pTooltip","Edit",1,"p-button-rounded","p-button-text",3,"disabled","click"],["pButton","","pRipple","","type","button","icon","pi
pi-
trash","pTooltip","Delete",1,"p-button-rounded","p-button-text",3,"disabled","click"],[4,"ngIf"],["icon","pi
pi-times-circle","styleClass","p-button-plain",3,"label","onClick"],["icon","pi
pi-check-circle","styleClass","p-button-plain",3,"label","onClick"],[1,"grid","nogutter"],[1,"col-12"],["severity","success",3,"text",4,"ngIf"],["severity","error",3,"text",4,"ngIf"],["icon","pi
pi-save","iconPos","left",1,"col","pr-1",3,"label","disabled","onClick"],["severity","success",3,"text"],["severity","error",3,"text"]],template:function(e,n){1&e&&(l(0,"form",0,1),k(2,"span",null,2),l(4,"p-card",3),_(5,JY,1,4,"ng-template",4),_(6,YY,0,0,"ng-template",5),_(7,iZ,18,22,"ng-template",6),_(8,oZ,6,6,"ng-template",7),c()())},directives:[ze,Ue,He,Ne,ne,mu,at,On,bt,Kt,Q,bn,Ye,Te,_e,os,ve,qe],pipes:[ce],styles:[""]}),t})();function
lZ(t,i){if(1&t){const
e=I();l(0,"p-button",14),C("onClick",function(){return
v(e),d().displayNewDlg=!1}),m(1,"translate"),c(),l(2,"p-button",15),C("onClick",function(){r
eturn v(e),d().newGroup()}),m(3,"translate"),c()}if(2&t){const
e=d();x("label",f(1,3,"common.cancel")),a(2),x("label",f(3,5,"common.ok")),p("disabled",""==e.newGroupName)}}const
cZ=function(t){return{name:t}};function
uZ(t,i){if(1&t&&k(0,"span",23),2&t){const
e=d(2).index,n=d();p("translate","settings.sgroups.tab_create_title")("translateParams",U(2,cZ,n.storageGroups[e].LocalizedName))}}function
dZ(t,i){if(1&t&&g(0),2&t){const e=d(2).index;T("
",d().storageGroups[e].LocalizedName," ")}}function
pZ(t,i){if(1&t&&(l(0,"div",19)(1,"div",20),_(2,uZ,1,4,"span",21),_(3,dZ,1,1,"ng-template",null,22,we),l(5,"b"),g(6),c()()()),2&t){const
e=F(4),n=d().index,s=d();a(2),p("ngIf",0==s.storageGroups[n].DirNames.length)("ngIfElse",e),a(4),T("\xa0",s.dirtyMessages[n],"")}}function
hZ(t,i){if(1&t&&k(0,"app-sgroup",24),2&t){const
e=d().index,n=d();p("sgroup",n.storageGroups[e])("hostName",n.hostName)}}function
mZ(t,i){if(1&t){const
e=I();l(0,"p-accordionTab",16),C("selectedChange",function(s){const o
=v(e).index;return
d().activeTab[o]=s}),_(1,pZ,7,3,"ng-template",17),_(2,hZ,1,2,"ng-template",18),c()}if(2&t){const
e=i.index;p("selected",d().activeTab[e])}}const
fZ=function(){return{width:"50vw"}};let gZ=(()=>{class
t{constructor(e,n,s,r){this.setupService=e,this.translate=n,this.mythService=s,this.router=r,this.forms=[],this.dirtyMessages=[],this.currentTab=-1,this.activeTab=[],this.dirtyText="settings.common.unsaved",this.warningText="settings.common.warning",this.deletedText="settings.common.deleted",this.newText="settings.common.new",this.hostName="",this.storageGroupDirs=[],this.storageGroups=[{GroupName:"Default",LocalizedName:"",DirNames:[]},{GroupName:"LiveTV",LocalizedName:"",DirNames:[]},{GroupName:"DB
Backups",LocalizedName:"",DirNames:[]},{GroupName:"Videos",LocalizedName:"",DirNames:[]},{GroupName:"Trailers",LocalizedName:"",DirNames:[]},{GroupName:"Coverart",LocalizedName:"",DirNames:[]},{GroupName:"Fanart",LocalizedName:"",DirNames:[]},{GroupName:"Screenshots",Loca
lizedName:"",DirNames:[]},{GroupName:"Banners",LocalizedName:"",DirNames:[]},{GroupName:"Photographs",LocalizedName:"",DirNames:[]},{GroupName:"Music",LocalizedName:"",DirNames:[]},{GroupName:"MusicArt",LocalizedName:"",DirNames:[]}],this.displayNewDlg=!1,this.newGroupName="",this.setupService.setCurrentForm(null),this.mythService.GetHostName().subscribe(o=>{this.hostName=o.String,this.loadGroups()}),n.get(this.dirtyText).subscribe(o=>this.dirtyText=o),n.get(this.warningText).subscribe(o=>this.warningText=o),n.get(this.deletedText).subscribe(o=>this.deletedText=o),n.get(this.newText).subscribe(o=>this.newText=o),this.storageGroups.forEach(o=>n.get("settings.sgroups.special."+o.GroupName).subscribe(u=>o.LocalizedName=u))}loadGroups(){this.mythService.GetStorageGroupDirs({HostName:this.hostName}).subscribe(e=>{this.storageGroupDirs=e.StorageGroupDirList.StorageGroupDirs,this.storageGroupDirs.forEach(n=>{let
s=this.storageGroups.find(r=>r.GroupName==n.GroupName);s?s.DirNames.push(n.Dir
Name):this.storageGroups.push({GroupName:n.GroupName,LocalizedName:n.GroupName,DirNames:[n.DirName]})})})}ngOnInit(){}onTabOpen(e){this.showDirty();let
n=this.setupService.getCurrentForm();null!=n&&(this.forms[e.index]=n),this.setupService.setCurrentForm(null),this.currentTab=e.index,this.dirtyMessages[this.currentTab]=""}onTabClose(e){this.showDirty(),this.currentTab=-1}showDirty(){-1==this.currentTab||!this.forms[this.currentTab]||(this.dirtyMessages[this.currentTab]=this.forms[this.currentTab].dirty?this.dirtyText:"")}newGroup(){this.displayNewDlg=!1,!this.storageGroups.find(n=>n.GroupName==this.newGroupName)&&(this.storageGroups.push({GroupName:this.newGroupName,LocalizedName:this.newGroupName,DirNames:[]}),this.newGroupName="")}confirm(e){return
oe(window.confirm(e))}canDeactivate(){let
e=this.setupService.getCurrentForm();return!(this.forms[this.currentTab]&&this.forms[this.currentTab].dirty||this.dirtyMessages.find(n=>n==this.dirtyText)||e&&e.dirty)||this.confirm(this.warning
Text)}onWindowClose(e){let
n=this.setupService.getCurrentForm();(this.forms[this.currentTab]&&this.forms[this.currentTab].dirty||this.dirtyMessages.find(s=>s==this.dirtyText)||n&&n.dirty)&&(e.preventDefault(),e.returnValue=!1)}}return
t.\u0275fac=function(e){return
new(e||t)(D(Me),D(Oe),D(qt),D(It))},t.\u0275cmp=z({type:t,selectors:[["app-storage-groups"]],hostBindings:function(e,n){1&e&&C("beforeunload",function(r){return
n.onWindowClose(r)},!1,ni)},decls:25,vars:24,consts:[[1,"m-5"],["label","New
Storage Group","icon","pi
pi-plus-circle","styleClass","p-button-plain",3,"onClick"],["header","New
Storage
Group",3,"visible","modal","draggable","resizable","visibleChange"],[1,"form-group","field"],["for","GroupName",1,"block"],["pInputText","","id","GroupName","name","GroupName",1,"mb-2","form-control","w-full",3,"ngModel","ngModelChange"],["GroupName","ngModel"],[1,"block"],["pTemplate","footer"],[1,"col-12","w-full",3,"onClose","onOpen"],[3,"selected","selectedChange",4,"ngFor","ngF
orOf"],[1,"flex","justify-content-end"],["icon","pi
pi-angle-left","iconPos","left",1,"p-3",3,"label","onClick"],["icon","pi
pi-angle-right","iconPos","right",1,"p-3",3,"label","onClick"],["icon","pi
pi-times-circle","styleClass","p-button-plain",3,"label","onClick"],["icon","pi
pi-check-circle","styleClass","p-button-plain",3,"label","disabled","onClick"],[3,"selected","selectedChange"],["pTemplate","header"],["pTemplate","content"],[1,"grid","w-full"],[1,"col-9","pr-1"],[3,"translate","translateParams",4,"ngIf","ngIfElse"],["onlyName",""],[3,"translate","translateParams"],[3,"sgroup","hostName"]],template:function(e,n){1&e&&(l(0,"p-card",0)(1,"h2"),g(2),m(3,"translate"),c(),l(4,"p-button",1),C("onClick",function(){return
n.displayNewDlg=!0}),c(),l(5,"p-dialog",2),C("visibleChange",function(r){return
n.displayNewDlg=r}),l(6,"p"),g(7),m(8,"translate"),c(),l(9,"div",3)(10,"label",4),g(11),m(12,"translate"),c(),l(13,"input",5,6),C("ngModelChange",function(r){return
n.newGroupName=r}),
c(),k(15,"small",7),c(),_(16,lZ,4,7,"ng-template",8),c(),k(17,"br"),l(18,"p-accordion",9),C("onClose",function(r){return
n.onTabClose(r)})("onOpen",function(r){return
n.onTabOpen(r)}),_(19,mZ,3,1,"p-accordionTab",10),c(),l(20,"div",11)(21,"p-button",12),C("onClick",function(){return
n.router.navigate(["setupwizard/channel-editor"])}),m(22,"translate"),c(),l(23,"p-button",13),C("onClick",function(){return
n.router.navigate(["setupwizard/system-events"])}),m(24,"translate"),c()()()),2&e&&(a(2),S(f(3,13,"settings.sgroups.title")),a(3),q(A(23,fZ)),p("visible",n.displayNewDlg)("modal",!0)("draggable",!1)("resizable",!1),a(2),S(f(8,15,"settings.sgroups.name_prompt")),a(4),S(f(12,17,"settings.sgroups.name_label")),a(2),p("ngModel",n.newGroupName),a(6),p("ngForOf",n.storageGroups),a(2),x("label",f(22,19,"common.back")),a(2),x("label",f(24,21,"common.next")))},directives:[Ne,ve,bn,Ye,Te,_e,ne,Ss,at,Ts,Q,mu,aZ],pipes:[ce],styles:["@media
screen and (max-width: 48rem){.p-card-body,.p-card-cont
ent,.p-accordion-content{padding:0rem!important}}\n"],encapsulation:2}),t})();const
_Z=["eventsform"];function bZ(t,i){if(1&t){const
e=I();l(0,"div",9)(1,"div",10)(2,"label",11),g(3),c(),l(4,"input",12),C("ngModelChange",function(s){return
v(e).$implicit.Value=s}),c()()()}if(2&t){const
e=i.$implicit;a(2),x("for",e.Key),a(1),S(e.LocalizedName),a(1),x("id",e.Key),x("name",e.Key),p("ngModel",e.Value)}}function
vZ(t,i){if(1&t&&(l(0,"div",7),_(1,bZ,5,5,"div",8),c()),2&t){const
e=d();a(1),p("ngForOf",e.events)}}function
CZ(t,i){1&t&&(k(0,"p-message",18),m(1,"translate")),2&t&&x("text",f(1,1,"common.savesuccess"))}function
yZ(t,i){1&t&&(k(0,"p-message",19),m(1,"translate")),2&t&&x("text",f(1,1,"common.networkfail"))}function
wZ(t,i){if(1&t){const
e=I();l(0,"div",13)(1,"div",14),_(2,CZ,2,3,"p-message",15),_(3,yZ,2,3,"p-message",16),c(),l(4,"p-button",17),C("onClick",function(){v(e);const
s=d(),r=F(1);return
s.saveForm(),r.form.markAsPristine()}),m(5,"translate"),c()()}if(2&t){const
e=d(),n=
F(1);a(2),p("ngIf",e.successCount>0&&e.successCount==e.expectedCount&&0==e.errorCount&&!n.dirty),a(1),p("ngIf",e.errorCount>0),a(1),x("label",f(5,4,"common.save")),p("disabled",!n.dirty||e.setupService.schedulingEnabled)}}let
TZ=(()=>{class
t{constructor(e,n,s,r,o){this.configService=e,this.translate=n,this.setupService=s,this.mythService=r,this.router=o,this.hostName="",this.events=[],this.successCount=0,this.errorCount=0,this.expectedCount=0,this.warningText="settings.common.warning",this.kClearSettingValue="<clear_setting_value>",this.jqbObserver={next:u=>{u.bool?this.successCount++:(this.errorCount++,this.currentForm&&this.currentForm.form.markAsDirty())},error:u=>{console.error(u),this.errorCount++,this.currentForm&&this.currentForm.form.markAsDirty()}},this.mythService.GetHostName().subscribe({next:u=>{this.hostName=u.String,this.configService.GetSystemEvents().subscribe(h=>{this.eventList=h,this.events=h.SystemEventList.SystemEvents})},error:()=>this.errorCount++}),this.trans
late.get(this.warningText).subscribe(u=>{this.warningText=u})}ngOnInit(){}saveForm(){this.successCount=0,this.errorCount=0,this.expectedCount=0,this.events.forEach(e=>{let
n=e.Value.trim();n?this.mythService.PutSetting({HostName:this.hostName,Key:e.Key,Value:n}).subscribe(this.jqbObserver):this.mythService.DeleteSetting({HostName:this.hostName,Key:e.Key}).subscribe(this.jqbObserver),this.expectedCount++})}confirm(e){return
oe(window.confirm(e))}canDeactivate(){return!this.currentForm||!this.currentForm.dirty||this.confirm(this.warningText)}onWindowClose(e){this.currentForm&&this.currentForm.dirty&&(e.preventDefault(),e.returnValue=!1)}}return
t.\u0275fac=function(e){return
new(e||t)(D(zo),D(Oe),D(Me),D(qt),D(It))},t.\u0275cmp=z({type:t,selectors:[["app-system-events"]],viewQuery:function(e,n){if(1&e&&W(_Z,5),2&e){let
s;V(s=B())&&(n.currentForm=s.first)}},hostBindings:function(e,n){1&e&&C("beforeunload",function(r){return
n.onWindowClose(r)},!1,ni)},decls:11,vars:6,consts:[["name","e
ventsform",1,"ml-3","mr-3"],["eventsform","ngForm"],[1,"m-5"],["pTemplate","content"],["pTemplate","footer"],[1,"flex","justify-content-end"],["icon","pi
pi-angle-left","iconPos","left",1,"p-3",3,"label","onClick"],[1,"grid"],["class","mb-4
w-full",4,"ngFor","ngForOf"],[1,"mb-4","w-full"],[1,"form-group","field"],[1,"label","block",3,"for"],["pInputText","",1,"mb-2","form-control","w-full",3,"id","ngModel","name","ngModelChange"],[1,"grid","nogutter"],[1,"col-12"],["severity","success",3,"text",4,"ngIf"],["severity","error",3,"text",4,"ngIf"],["icon","pi
pi-save","iconPos","left",1,"col","pr-1",3,"label","disabled","onClick"],["severity","success",3,"text"],["severity","error",3,"text"]],template:function(e,n){1&e&&(l(0,"form",0,1)(2,"h2"),g(3),m(4,"translate"),c(),l(5,"p-card",2),_(6,vZ,2,1,"ng-template",3),_(7,wZ,6,6,"ng-template",4),c(),l(8,"div",5)(9,"p-button",6),C("onClick",function(){return
n.router.navigate(["setupwizard/storage-groups"])}),m(10,"translate"),c()()()),2&e&&(a
(3),S(f(4,2,"settings.sysevents.title")),a(6),x("label",f(10,4,"common.back")))},directives:[ze,Ue,He,Ne,ne,at,Ye,Te,_e,Q,qe,ve],pipes:[ce],styles:["@media
screen and (max-width:
48rem){.p-card-body,.p-card-content,.p-accordion-content{padding:0rem!important}}\n"],encapsulation:2}),t})();const
SZ=["chanform"];function xZ(t,i){if(1&t){const
e=I();l(0,"button",57),C("click",function(){return
v(e),d(2).openNew()}),m(1,"translate"),c()}if(2&t){const
e=d(2);x("label",f(1,2,"settings.chanedit.new_channel")),p("disabled","S"==e.setupService.pageType&&e.setupService.schedulingEnabled)}}function
DZ(t,i){1&t&&g(0),2&t&&T(" ",i.$implicit,"
")}function MZ(t,i){if(1&t){const
e=I();l(0,"p-dropdown",72),C("onChange",function(s){return
v(e).filterCallback(s.value)}),m(1,"translate"),_(2,DZ,1,1,"ng-template",73),c()}if(2&t){const
e=i.$implicit,n=d(3);x("placeholder",f(1,4,"settings.chanedit.all")),p("ngModel",e)("options",n.sourceNames)("showClear",!0)}}function
kZ(t,i){if(1&t){const e=I();l(0,"p-bu
tton",74),C("onClick",function(){return
v(e),d(3).deleteSourceRequest()}),m(1,"translate"),m(2,"translate"),c()}if(2&t){const
e=d(3);x("pTooltip",f(1,3,"settings.chanedit.delete_source")),x("label",f(2,5,"common.delete")),p("disabled",e.setupService.schedulingEnabled)}}function
IZ(t,i){1&t&&(g(0),m(1,"translate")),2&t&&T("
",f(1,1,"settings.chanedit.delete_message")," ")}function
EZ(t,i){1&t&&k(0,"button",75)}function
RZ(t,i){if(1&t&&(l(0,"tr")(1,"th"),g(2),m(3,"translate"),l(4,"p-columnFilter",58),_(5,MZ,3,6,"ng-template",59),c(),_(6,kZ,3,7,"p-button",60),_(7,IZ,2,3,"ng-template",null,61,we),c()(),l(9,"tr")(10,"th",62),g(11,"\xa0"),c(),l(12,"th",63),g(13),m(14,"translate"),k(15,"p-sortIcon",64),c(),l(16,"th",65),g(17),m(18,"translate"),c(),l(19,"th",66),g(20),m(21,"translate"),c(),l(22,"th",67),g(23),m(24,"translate"),c(),l(25,"th",68),g(26),m(27,"translate"),k(28,"p-sortIcon",69),c(),l(29,"th",65),g(30),m(31,"translate"),c(),l(32,"th",66),g(33),m(34,"translate"),c(),l(35,"th",65),
g(36),m(37,"translate"),c(),l(38,"th",65),k(39,"button",70),_(40,EZ,1,0,"button",71),c()()),2&t){const
e=F(8),n=d(2);a(2),T("",f(3,13,"settings.chanedit.col_source"),":
\xa0
"),a(2),p("showMenu",!1),a(2),p("ngIf","S"==n.setupService.pageType)("ngIfElse",e),a(7),T("
",f(14,15,"settings.chanedit.col_channum"),"
"),a(4),S(f(18,17,"settings.chanedit.col_freqid")),a(3),S(f(21,19,"settings.chanedit.col_callsign")),a(3),S(f(24,21,"settings.chanedit.col_name")),a(3),T("
",f(27,23,"settings.chanedit.col_source"),"
"),a(4),S(f(31,25,"settings.chanedit.col_priority")),a(3),S(f(34,27,"settings.chanedit.col_visibility")),a(3),S(f(37,29,"settings.chanedit.col_useeit")),a(4),p("ngIf","S"==n.setupService.pageType)}}function
LZ(t,i){1&t&&k(0,"img",83),2&t&&x("src",d().$implicit.IconURL,ln)}function
OZ(t,i){1&t&&k(0,"img",84)}function AZ(t,i){if(1&t){const
e=I();l(0,"button",85),C("click",function(){v(e);const
s=d().$implicit;return
d(2).deleteRequest(s)}),m(1,"translate"),c()}if(2&t){const e=d().$im
plicit,n=d(2);x("pTooltip",f(1,2,"settings.chanedit.deletechan")),p("disabled",e.ChanId<0||n.setupService.schedulingEnabled)}}const
PZ=function(t){return{"line-through":t}};function FZ(t,i){if(1&t){const
e=I();l(0,"tr",76)(1,"td",62),_(2,LZ,1,1,"img",77),_(3,OZ,1,0,"ng-template",null,78,we),c(),l(5,"td",79),g(6),c(),l(7,"td",65),g(8),c(),l(9,"td",66),g(10),c(),l(11,"td",67),g(12),c(),l(13,"td",80),g(14),c(),l(15,"td",65),g(16),c(),l(17,"td",66),g(18),c(),l(19,"td",65),g(20),c(),l(21,"td",65)(22,"button",81),C("click",function(){const
r=v(e).$implicit;return
d(2).editChannel(r)}),m(23,"translate"),c(),_(24,AZ,2,4,"button",82),c()()}if(2&t){const
e=i.$implicit,n=F(4),s=d(2);p("ngClass",U(16,PZ,e.ChanId<0)),a(2),p("ngIf",e.IconURL)("ngIfElse",n),a(4),S(e.ChanNum),a(2),S(e.FrequencyId),a(2),S(e.CallSign),a(2),S(e.ChannelName),a(2),S(e.Source),a(2),S(e.RecPriority),a(2),S(s.getVisibility(e)),a(2),S(e.UseEIT?"Y":"N"),a(2),x("pTooltip",f(23,14,"settings.chanedit.editchan")),p("disabled",e.
ChanId<0||"S"==s.setupService.pageType&&s.setupService.schedulingEnabled),a(2),p("ngIf","S"==s.setupService.pageType)}}function
NZ(t,i){if(1&t){const
e=I();l(0,"div",52)(1,"p-table",53),C("onFilter",function(s){return
v(e),d().onFilter(s)}),_(2,xZ,2,4,"ng-template",54),_(3,RZ,41,31,"ng-template",55),_(4,FZ,25,18,"ng-template",56),c()()}if(2&t){const
e=d();a(1),p("value",e.allChannels)("scrollable",!0)("rowHover",!0)}}function
VZ(t,i){1&t&&k(0,"p-progressSpinner")}function
BZ(t,i){1&t&&(k(0,"p-message",91),m(1,"translate")),2&t&&x("text",f(1,1,"common.savesuccess"))}function
HZ(t,i){1&t&&(k(0,"p-message",92),m(1,"translate")),2&t&&x("text",f(1,1,"common.networkfail"))}function
qZ(t,i){if(1&t){const
e=I();l(0,"div",86),_(1,BZ,2,3,"p-message",87),_(2,HZ,2,3,"p-message",88),c(),l(3,"p-button",89),C("onClick",function(){return
v(e),d().closeDialog()}),m(4,"translate"),c(),l(5,"p-button",90),C("onClick",function(){return
v(e),d().saveChannel()}),m(6,"translate"),c()}if(2&t){const e=d(),n=
F(7);a(1),p("ngIf",e.successCount>0&&0==e.errorCount&&!n.dirty),a(1),p("ngIf",e.errorCount>0),a(1),x("label",f(4,5,"common.close")),a(2),x("label",f(6,7,"common.save")),p("disabled",!n.dirty||""==e.channel.ChannelName.trim()||""==e.channel.ChanNum.trim()||""==e.channel.CallSign.trim())}}function
GZ(t,i){if(1&t){const
e=I();l(0,"p-button",93),C("onClick",function(){return
v(e),d().closeDialog()}),m(1,"translate"),c(),l(2,"p-button",94),C("onClick",function(){return
v(e),d().displayUnsaved=!1}),m(3,"translate"),c()}2&t&&(x("label",f(1,2,"common.nosave")),a(2),x("label",f(3,4,"common.continue")))}function
UZ(t,i){1&t&&(k(0,"p-message",92),m(1,"translate")),2&t&&x("text",f(1,1,"common.networkfail"))}function
zZ(t,i){if(1&t){const
e=I();l(0,"div",86),_(1,UZ,2,3,"p-message",88),c(),l(2,"p-button",89),C("onClick",function(){v(e);const
s=d(),r=F(7);return
s.displayDelete=!1,r.form.markAsPristine()}),m(3,"translate"),c(),l(4,"p-button",95),C("onClick",function(){v(e);const
s=d();return s.del
eteChannel(s.channel)}),m(5,"translate"),c()}if(2&t){const
e=d();a(1),p("ngIf",e.errorCount>0),a(1),x("label",f(3,3,"common.close")),a(2),x("label",f(5,5,"common.delete"))}}const
jZ=function(t){return{Source:t}};function
$Z(t,i){if(1&t&&(l(0,"p")(1,"b"),g(2),m(3,"translate"),c()()),2&t){const
e=d();a(2),S(Dt(3,1,"settings.chanedit.delete_source_details",U(4,jZ,e.filterEvent.filters.Source.value)))}}function
WZ(t,i){1&t&&(l(0,"p")(1,"b"),g(2),m(3,"translate"),c()()),2&t&&(a(2),S(f(3,1,"settings.chanedit.delete_all_details")))}function
KZ(t,i){if(1&t&&(l(0,"div")(1,"p"),g(2),m(3,"translate"),c()()),2&t){const
e=d();a(2),yo(" ",f(3,3,"common.delete"),"
",e.channel.ChanNum," ",e.channel.ChannelName,"")}}function
QZ(t,i){1&t&&(k(0,"p-message",92),m(1,"translate")),2&t&&x("text",f(1,1,"common.networkfail"))}function
JZ(t,i){if(1&t){const
e=I();l(0,"div",86),_(1,QZ,2,3,"p-message",88),c(),l(2,"p-button",89),C("onClick",function(){v(e);const
s=d(),r=F(7);return s.displayDeleteSource=!1,s.ch
annelOperation=-1,r.form.markAsPristine()}),m(3,"translate"),c(),l(4,"p-button",96),C("onClick",function(){return
v(e),d().deleteSource()}),m(5,"translate"),c()}if(2&t){const
e=d();a(1),p("ngIf",e.errorCount>0),a(1),x("label",f(3,4,"common.cancel")),a(2),x("label",f(5,6,"common.delete")),p("disabled",e.working)}}const
YZ=function(){return{height:"75vw",width:"50vw"}},Ol=function(){return{minWidth:"400px"}},ZZ=function(t,i,e){return{ChanNum:t,ChannelName:i,Source:e}};let
bS=(()=>{class
t{constructor(e,n,s,r){this.channelService=e,this.translate=n,this.setupService=s,this.router=r,this.allChannels=[],this.videoSources=[],this.commMethods=[],this.sourceNames=[],this.multiplexes=[],this.tvFormats=[{value:"Default",prompt:"common.default"},{value:"NTSC",prompt:"NTSC"},{value:"NTSC-JP",prompt:"NTSC-JP"},{value:"PAL",prompt:"PAL"},{value:"PAL-60",prompt:"PAL-60"},{value:"PAL-BG",prompt:"PAL-BG"},{value:"PAL-DK",prompt:"PAL-DK"},{value:"PAL-D",prompt:"PAL-D"},{value:"PAL-I",prompt:"PAL-I"},
{value:"PAL-M",prompt:"PAL-M"},{value:"PAL-N",prompt:"PAL-N"},{value:"PAL-NC",prompt:"PAL-NC"},{value:"SECAM",prompt:"SECAM"},{value:"SECAM-D",prompt:"SECAM-D"},{value:"SECAM-DK",prompt:"SECAM-DK"}],this.visibilities=[{value:"Always
Visible",prompt:"settings.chanedit.always-visible"},{value:"Visible",prompt:"settings.chanedit.visible"},{value:"Not
Visible",prompt:"settings.chanedit.not-visible"},{value:"Never
Visible",prompt:"settings.chanedit.never-visible"}],this.headingNew="settings.chanedit.new_channel",this.headingEdit="settings.chanedit.title",this.warningText="settings.common.warning",this.deleteText="settings.common.ru_sure",this.unassignedText="settings.chanedit.unassigned",this.transDone=0,this.visDone=0,this.numTranslations=10,this.successCount=0,this.errorCount=0,this.selectedAdvanced=!1,this.displayChannelDlg=!1,this.dialogHeader="",this.displayUnsaved=!1,this.displayDelete=!1,this.displayDeleteSource=!1,this.working=!1,this.chansLoaded=!1,this.filterEvent={filters:{Sou
rce:{matchMode:"",value:""}}},this.channel=this.resetChannel(),this.channelOperation=0,this.saveObserver={next:o=>{if(o.bool)switch(console.log("saveObserver
success",o),this.successCount++,this.currentForm.form.markAsPristine(),this.channelOperation){case
0:this.editingChannel&&(Object.assign(this.editingChannel,this.channel),this.editingChannel.Source=this.getSource(this.editingChannel));break;case
1:this.allChannels.push(this.channel);break;case-1:this.channel.ChanId=-99,this.displayDelete=!1,this.displayDeleteSource=!1,this.currentForm.form.markAsPristine();break;case-2:this.channel.ChanId=-99,this.deleteSource()}else
console.log("saveObserver
error",o),this.errorCount++,this.working=!1},error:o=>{console.log("saveObserver
error",o),this.errorCount++,this.working=!1}},this.translate.get(this.unassignedText).subscribe(o=>{this.unassignedText=o,this.transDone++,this.loadLists()}),this.loadTranslations()}ngOnInit(){this.markPristine()}resetChannel(){return{ATSCMajorChan:0,ATSCMinor
Chan:0,CallSign:"",ChanFilters:"",ChanId:0,ChanNum:"",ChannelGroups:"",ChannelName:"",CommFree:!1,CommMethod:-1,DefaultAuth:"",ExtendedVisible:"Visible",FineTune:0,Format:"Default",FrequencyId:"",IconURL:"",InputId:0,Inputs:"",MplexId:0,Programs:[],RecPriority:0,ServiceId:0,ServiceType:0,SourceId:0,TimeOffset:0,UseEIT:!1,Visible:!0,XMLTVID:"",ChanSeq:0}}loadLists(){this.channelService.GetChannelInfoList({Details:!0}).subscribe(e=>{this.allChannels=e.ChannelInfoList.ChannelInfos,this.chansLoaded=!0,this.channelService.GetVideoSourceList().subscribe(n=>{this.videoSources=n.VideoSourceList.VideoSources,this.videoSources.unshift({Id:0,SourceName:this.unassignedText}),this.videoSources.forEach(s=>this.sourceNames.push(s.SourceName)),this.allChannels.forEach((s,r)=>{s.ChanSeq=r,s.Source=this.getSource(s)})})}),this.channelService.GetCommMethodList().subscribe(e=>this.commMethods=e.CommMethodList.CommMethods)}loadMultiplexes(e){this.channelService.GetVideoMultiplexList({SourceID:e}).subscr
ibe(n=>{this.multiplexes=n.VideoMultiplexList.VideoMultiplexes})}loadTranslations(){this.visibilities.forEach(e=>{this.translate.get(e.prompt).subscribe(n=>{e.prompt=n,this.transDone++,this.visDone++,this.visDone>=this.visibilities.length&&(this.visibilities=[...this.visibilities])})}),this.translate.get(this.headingNew).subscribe(e=>{this.headingNew=e,this.transDone++}),this.translate.get(this.headingEdit).subscribe(e=>{this.headingEdit=e,this.transDone++}),this.translate.get(this.warningText).subscribe(e=>{this.warningText=e,this.transDone++}),this.translate.get(this.deleteText).subscribe(e=>{this.deleteText=e,this.transDone++}),this.translate.get(this.tvFormats[0].prompt).subscribe(e=>{this.tvFormats[0].prompt=e,this.tvFormats=[...this.tvFormats],this.transDone++})}getSource(e){const
n=this.videoSources.find(s=>e.SourceId==s.Id);return
null!=n?n.SourceName:this.unassignedText}getVisibility(e){const
n=this.visibilities.find(s=>e.ExtendedVisible==s.value);return
null!=n?n.prompt:""
}openNew(){this.successCount=0,this.errorCount=0,this.dialogHeader=this.headingNew,this.channel=this.resetChannel(),this.displayChannelDlg=!0,this.markPristine()}editChannel(e){this.editingChannel=e,this.successCount=0,this.errorCount=0,this.dialogHeader=this.headingEdit,this.channel=Object.assign({},e),this.displayChannelDlg=!0,this.markPristine(),this.loadMultiplexes(e.SourceId),this.selectedAdvanced=!1}saveChannel(){this.successCount=0,this.errorCount=0,this.displayUnsaved=!1;let
e={CallSign:this.channel.CallSign,ChannelID:this.channel.ChanId,ChannelNumber:this.channel.ChanNum,ChannelName:this.channel.ChannelName,CommMethod:this.channel.CommMethod,ExtendedVisible:this.channel.ExtendedVisible,Format:this.channel.Format,FrequencyID:this.channel.FrequencyId,MplexID:this.channel.MplexId,RecPriority:this.channel.RecPriority,ServiceID:this.channel.ServiceId,SourceID:this.channel.SourceId,TimeOffset:this.channel.TimeOffset,UseEIT:this.channel.UseEIT,XMLTVID:this.channel.XMLTVID};0==this
.channel.ChanId?(this.channelOperation=1,this.channelService.GetAvailableChanid().subscribe(n=>{this.channel.ChanId=n.int,e.ChannelID=n.int,this.channelService.AddDBChannel(e).subscribe(this.saveObserver)})):(this.channelOperation=0,this.channelService.UpdateDBChannel(e).subscribe(this.saveObserver))}closeDialog(){this.currentForm.dirty?this.displayUnsaved?(this.displayUnsaved=!1,this.displayChannelDlg=!1,this.editingChannel=void
0,this.currentForm.form.markAsPristine()):this.displayUnsaved=!0:(this.displayChannelDlg=!1,this.displayUnsaved=!1,this.editingChannel=void
0)}deleteRequest(e){this.channel=e,this.displayDelete=!0}deleteChannel(e,n){this.successCount=0,this.errorCount=0,this.channel=e,this.channelOperation=n?-2:-1,console.log("Delete
Channel",e),this.channelService.RemoveDBChannel(e.ChanId).subscribe(this.saveObserver)}deleteSourceRequest(){this.channel=this.resetChannel(),this.displayDeleteSource=!0}deleteSource(){this.working=!0;const
e=this.allChannels.find(n=>n.ChanId>0
&&(!this.filterEvent.filters.Source.value||this.filterEvent.filters.Source.value==n.Source));e?this.deleteChannel(e,!0):(this.displayDelete=!1,this.displayDeleteSource=!1,this.currentForm.form.markAsPristine(),this.working=!1)}onFilter(e){this.filterEvent=e}markPristine(){setTimeout(()=>this.currentForm.form.markAsPristine(),200)}confirm(e){return
oe(window.confirm(e))}canDeactivate(){return!this.currentForm||!this.currentForm.dirty||this.confirm(this.warningText)}onWindowClose(e){this.currentForm&&this.currentForm.dirty&&(e.preventDefault(),e.returnValue=!1)}}return
t.\u0275fac=function(e){return
new(e||t)(D(Or),D(Oe),D(Me),D(It))},t.\u0275cmp=z({type:t,selectors:[["app-channel-editor"]],viewQuery:function(e,n){if(1&e&&W(SZ,5),2&e){let
s;V(s=B())&&(n.currentForm=s.first)}},hostBindings:function(e,n){1&e&&C("beforeunload",function(r){return
n.onWindowClose(r)},!1,ni)},decls:167,vars:197,consts:[["class","block card
w-full","style","height:
90vh",4,"ngIf","ngIfElse"],["loading",""],[
"name","chanform",1,"ml-3","mr-3"],["chanform","ngForm"],[3,"header","visible","modal","closable","closeOnEscape","visibleChange"],[1,"form-group","field"],["for","ChannelName",1,"label","block"],["pInputText","","id","ChannelName","name","ChannelName",1,"mb-2","form-control","w-full",3,"ngModel","ngModelChange"],["ChannelName","ngModel"],[1,"block"],["for","ChanNum",1,"label","block"],["pInputText","","id","ChanNum","name","ChanNum",1,"mb-2","form-control","w-full",3,"ngModel","ngModelChange"],["ChanNum","ngModel"],["for","FrequencyId",1,"label","block"],["pInputText","","id","FrequencyId","name","FrequencyId",1,"mb-2","form-control","w-full",3,"ngModel","ngModelChange"],["FrequencyId","ngModel"],["for","CallSign",1,"label","block"],["pInputText","","id","CallSign","name","CallSign",1,"mb-2","form-control","w-full",3,"ngModel","ngModelChange"],["CallSign","ngModel"],["for","ExtendedVisible",1,"label","block"],["optionLabel","prompt","optionValue","value","name","ExtendedVisible",3,
"options","ngModel","editable","maxlength","ngModelChange"],["ExtendedVisible","ngModel"],["for","SourceId",1,"label","block"],["optionLabel","SourceName","optionValue","Id","name","SourceId",3,"options","ngModel","editable","maxlength","ngModelChange"],["SourceId","ngModel"],["for","Format",1,"label","block"],["optionLabel","prompt","optionValue","value","name","Format",3,"options","ngModel","editable","maxlength","ngModelChange"],["Format","ngModel"],["for","RecPriority",1,"label","block"],["name","RecPriority","id","RecPriority",3,"ngModel","showButtons","min","max","step","ngModelChange"],["inputId","UseEIT","name","UseEIT",1,"label","mb-2","w-full",3,"ngModel","binary","label","ngModelChange"],["UseEIT","ngModel"],["for","XMLTVID",1,"label","block"],["pInputText","","id","XMLTVID","name","XMLTVID",1,"mb-2","form-control","w-full",3,"ngModel","ngModelChange"],["XMLTVID","ngModel"],["for","TimeOffset",1,"label","block"],["name","TimeOffset","id","TimeOffset",3,"ngModel","showButt
ons","min","max","step","ngModelChange"],["for","CommMethod",1,"label","block"],["optionLabel","LocalizedName","optionValue","CommMethod","name","CommMethod",3,"options","ngModel","editable","maxlength","ngModelChange"],["CommMethod","ngModel"],[3,"header","selected","selectedChange"],["for","MplexId",1,"label","block"],["optionLabel","Description","optionValue","MplexId","name","MplexId",3,"options","ngModel","editable","maxlength","ngModelChange"],["MplexId","ngModel"],["for","ServiceId",1,"label","block"],["name","ServiceId","id","ServiceId",3,"ngModel","showButtons","min","max","step","ngModelChange"],["pTemplate","footer"],[3,"header","visible","modal","visibleChange"],[3,"header","visible","modal","draggable","resizable","visibleChange"],[4,"ngIf","ngIfElse"],["all",""],[4,"ngIf"],[1,"block","card","w-full",2,"height","90vh"],["scrollHeight","flex","styleClass","p-datatable-striped","responsiveLayout","scroll",3,"value","scrollable","rowHover","onFilter"],["pTemplate","caption
"],["pTemplate","header"],["pTemplate","body"],["pButton","","pRipple","","icon","pi
pi-plus",1,"p-button-success","mr-2",3,"label","disabled","click"],["field","Source","matchMode","equals",3,"showMenu"],["pTemplate","filter"],["icon","pi
pi-trash","styleClass","p-button-danger",3,"pTooltip","label","disabled","onClick",4,"ngIf","ngIfElse"],["explain",""],[2,"flex-basis","8%"],["pSortableColumn","ChanSeq",2,"flex-basis","9%"],["field","ChanSeq"],[2,"flex-basis","6%"],[2,"flex-basis","10%"],[2,"flex-basis","24%"],["pSortableColumn","Source",2,"flex-basis","16%"],["field","Source"],["pButton","","pRipple","","icon","pi
pi-pencil","disabled","true",1,"p-button-text"],["pButton","","pRipple","","icon","pi
pi-trash","class","p-button-text
p-button-danger","disabled","true",4,"ngIf"],["name","filter",3,"ngModel","options","placeholder","showClear","onChange"],["pTemplate","item"],["icon","pi
pi-trash","styleClass","p-button-danger",3,"pTooltip","label","disabled","onClick"],["pButton",""
,"pRipple","","icon","pi
pi-trash","disabled","true",1,"p-button-text","p-button-danger"],["height","40",3,"ngClass"],["height","32","width","42","style","background-color:#000000","onerror","this.height='0'",3,"src",4,"ngIf","ngIfElse"],["nullIcon",""],[2,"flex-basis","9%"],[2,"flex-basis","16%"],["pButton","","pRipple","","icon","pi
pi-pencil","tooltipPosition","left",1,"p-button-text",3,"disabled","pTooltip","click"],["pButton","","pRipple","","icon","pi
pi-trash","class","p-button-text
p-button-danger","tooltipPosition","left",3,"pTooltip","disabled","click",4,"ngIf"],["height","32","width","42","onerror","this.height='0'",2,"background-color","#000000",3,"src"],["height","32","width","42"],["pButton","","pRipple","","icon","pi
pi-trash","tooltipPosition","left",1,"p-button-text","p-button-danger",3,"pTooltip","disabled","click"],[1,"col-12",2,"text-align","left"],["severity","success",3,"text",4,"ngIf"],["severity","error",3,"text",4,"ngIf"],["icon","pi
pi-times-circle","styleC
lass","p-button-warning",3,"label","onClick"],["icon","pi
pi-check-circle","styleClass","p-button-success",3,"label","disabled","onClick"],["severity","success",3,"text"],["severity","error",3,"text"],["icon","pi
pi-times-circle","styleClass","p-button-danger",3,"label","onClick"],["icon","pi
pi-check-circle","styleClass","p-button-success",3,"label","onClick"],["icon","pi
pi-check-circle","styleClass","p-button-danger",3,"label","onClick"],["icon","pi
pi-check-circle","styleClass","p-button-danger",3,"disabled","label","onClick"]],template:function(e,n){if(1&e&&(l(0,"h2"),g(1),m(2,"translate"),c(),_(3,NZ,5,3,"div",0),_(4,VZ,1,0,"ng-template",null,1,we),l(6,"form",2,3)(8,"p-dialog",4),C("visibleChange",function(r){return
n.displayChannelDlg=r}),l(9,"div",5)(10,"label",6),g(11),m(12,"translate"),c(),l(13,"input",7,8),C("ngModelChange",function(r){return
n.channel.ChannelName=r}),c(),l(15,"small",9),g(16),m(17,"translate"),c()(),l(18,"div",5)(19,"label",10),g(20),m(21,"translate"),c()
,l(22,"input",11,12),C("ngModelChange",function(r){return
n.channel.ChanNum=r}),c(),l(24,"small",9),g(25),m(26,"translate"),c()(),l(27,"div",5)(28,"label",13),g(29),m(30,"translate"),c(),l(31,"input",14,15),C("ngModelChange",function(r){return
n.channel.FrequencyId=r}),c(),l(33,"small",9),g(34),m(35,"translate"),c()(),l(36,"div",5)(37,"label",16),g(38),m(39,"translate"),c(),l(40,"input",17,18),C("ngModelChange",function(r){return
n.channel.CallSign=r}),c(),l(42,"small",9),g(43),m(44,"translate"),c()(),l(45,"div",5)(46,"label",19),g(47),m(48,"translate"),c(),l(49,"p-dropdown",20,21),C("ngModelChange",function(r){return
n.channel.ExtendedVisible=r}),c(),l(51,"small",9),g(52),m(53,"translate"),c()(),l(54,"div",5)(55,"label",22),g(56),m(57,"translate"),c(),l(58,"p-dropdown",23,24),C("ngModelChange",function(r){return
n.channel.SourceId=r}),c(),l(60,"small",9),g(61),m(62,"translate"),c()(),l(63,"div",5)(64,"label",25),g(65),m(66,"translate"),c(),l(67,"p-dropdown",26,27),C("ngModelChange"
,function(r){return
n.channel.Format=r}),c(),l(69,"small",9),g(70),m(71,"translate"),c()(),l(72,"div",5)(73,"label",28),g(74),m(75,"translate"),c(),l(76,"p-inputNumber",29),C("ngModelChange",function(r){return
n.channel.RecPriority=r}),c(),l(77,"small",9),g(78),m(79,"translate"),c()(),l(80,"div",5)(81,"p-checkbox",30,31),C("ngModelChange",function(r){return
n.channel.UseEIT=r}),m(83,"translate"),c(),l(84,"small",9),g(85),m(86,"translate"),c()(),l(87,"div",5)(88,"label",32),g(89),m(90,"translate"),c(),l(91,"input",33,34),C("ngModelChange",function(r){return
n.channel.XMLTVID=r}),c(),l(93,"small",9),g(94),m(95,"translate"),c()(),l(96,"div",5)(97,"label",35),g(98),m(99,"translate"),c(),l(100,"p-inputNumber",36),C("ngModelChange",function(r){return
n.channel.TimeOffset=r}),c(),l(101,"small",9),g(102),m(103,"translate"),c()(),l(104,"div",5)(105,"label",37),g(106),m(107,"translate"),c(),l(108,"p-dropdown",38,39),C("ngModelChange",function(r){return
n.channel.CommMethod=r}),c(),l(110,"smal
l",9),g(111),m(112,"translate"),c()(),l(113,"p-accordion")(114,"p-accordionTab",40),C("selectedChange",function(r){return
n.selectedAdvanced=r}),m(115,"translate"),l(116,"div",5)(117,"label",41),g(118),m(119,"translate"),c(),l(120,"p-dropdown",42,43),C("ngModelChange",function(r){return
n.channel.MplexId=r}),c(),l(122,"small",9),g(123),m(124,"translate"),c()(),l(125,"div",5)(126,"label",44),g(127),m(128,"translate"),c(),l(129,"p-inputNumber",45),C("ngModelChange",function(r){return
n.channel.ServiceId=r}),c(),l(130,"small",9),g(131),m(132,"translate"),c()()()(),k(133,"br")(134,"br")(135,"br")(136,"br")(137,"br")(138,"br")(139,"br")(140,"br"),_(141,qZ,7,9,"ng-template",46),c(),l(142,"p-dialog",47),C("visibleChange",function(r){return
n.displayUnsaved=r}),m(143,"translate"),l(144,"p"),g(145),m(146,"translate"),c(),_(147,GZ,4,6,"ng-template",46),c(),l(148,"p-dialog",48),C("visibleChange",function(r){return
n.displayDelete=r}),m(149,"translate"),l(150,"h2"),g(151),m(152,"translate"),c()
,l(153,"p"),g(154),m(155,"translate"),c(),_(156,zZ,6,7,"ng-template",46),c(),l(157,"p-dialog",48),C("visibleChange",function(r){return
n.displayDeleteSource=r}),m(158,"translate"),l(159,"h2"),g(160),m(161,"translate"),c(),_(162,$Z,4,6,"p",49),_(163,WZ,4,3,"ng-template",null,50,we),_(165,KZ,4,5,"div",51),_(166,JZ,6,8,"ng-template",46),c()()),2&e){const
s=F(5),r=F(164);a(1),S(f(2,112,"settings.chanedit.title")),a(2),p("ngIf",n.chansLoaded&&n.transDone>=n.numTranslations)("ngIfElse",s),a(5),q(A(187,YZ)),x("header",n.dialogHeader),p("visible",n.displayChannelDlg)("modal",!0)("closable",!1)("closeOnEscape",!1),a(3),S(f(12,114,"settings.chanedit.channame")),a(2),p("ngModel",n.channel.ChannelName),a(3),T("
",f(17,116,"settings.chanedit.channame_desc"),"
"),a(4),S(f(21,118,"settings.chanedit.channum")),a(2),p("ngModel",n.channel.ChanNum),a(3),T("
",f(26,120,"settings.chanedit.channum_desc"),"
"),a(4),S(f(30,122,"settings.chanedit.freqid")),a(2),p("ngModel",n.channel.FrequencyId),a(3),T("
",
f(35,124,"settings.chanedit.freqid_desc"),"
"),a(4),S(f(39,126,"settings.chanedit.callsign")),a(2),p("ngModel",n.channel.CallSign),a(3),T("
",f(44,128,"settings.chanedit.callsign_desc"),"
"),a(4),S(f(48,130,"settings.chanedit.visible_label")),a(2),q(A(188,Ol)),p("options",n.visibilities)("ngModel",n.channel.ExtendedVisible)("editable",!1)("maxlength",0),a(3),T("
",f(53,132,"settings.chanedit.visible_desc"),"
"),a(4),S(f(57,134,"settings.chanedit.source_label")),a(2),q(A(189,Ol)),p("options",n.videoSources)("ngModel",n.channel.SourceId)("editable",!1)("maxlength",0),a(3),T("
",f(62,136,"settings.chanedit.source_desc"),"
"),a(4),S(f(66,138,"settings.chanedit.format_label")),a(2),q(A(190,Ol)),p("options",n.tvFormats)("ngModel",n.channel.Format)("editable",!1)("maxlength",0),a(3),T("
",f(71,140,"settings.chanedit.format_desc"),"
"),a(4),S(f(75,142,"settings.chanedit.priority_label")),a(2),p("ngModel",n.channel.RecPriority)("showButtons",!0)("min",-99)("max",99)("step",1),a(2),T("
",f(79
,144,"settings.chanedit.priority_desc"),"
"),a(3),x("label",f(83,146,"settings.chanedit.eit_label")),p("ngModel",n.channel.UseEIT)("binary",!0),a(4),T("
",f(86,148,"settings.chanedit.eit_desc"),"
"),a(4),S(f(90,150,"settings.chanedit.xmltvid_label")),a(2),p("ngModel",n.channel.XMLTVID),a(3),T("
",f(95,152,"settings.chanedit.xmltvid_desc"),"
"),a(4),S(f(99,154,"settings.chanedit.timeoffset_label")),a(2),p("ngModel",n.channel.TimeOffset)("showButtons",!0)("min",-1440)("max",1440)("step",30),a(2),T("
",f(103,156,"settings.chanedit.timeoffset_desc"),"
"),a(4),S(f(107,158,"settings.chanedit.commmethod_label")),a(2),q(A(191,Ol)),p("options",n.commMethods)("ngModel",n.channel.CommMethod)("editable",!1)("maxlength",0),a(3),T("
",f(112,160,"settings.chanedit.commmethod_desc"),"
"),a(3),x("header",f(115,162,"settings.chanedit_advanced")),p("selected",n.selectedAdvanced),a(4),S(f(119,164,"settings.chanedit.mplex_label")),a(2),q(A(192,Ol)),p("options",n.multiplexes)("ngModel",n.channel.MplexId)
("editable",!1)("maxlength",0),a(3),T("
",f(124,166,"settings.chanedit.mplex_desc"),"
"),a(4),S(f(128,168,"settings.chanedit.serviceid_label")),a(2),p("ngModel",n.channel.ServiceId)("showButtons",!0)("min",-1)("max",65535)("step",1),a(2),T("
",f(132,170,"settings.chanedit.serviceid_desc"),"
"),a(11),x("header",f(143,172,"common.unsaved_heading")),p("visible",n.displayUnsaved)("modal",!0),a(3),S(f(146,174,"common.unsaved_message")),a(3),x("header",f(149,176,"settings.chanedit.delete_this")),p("visible",n.displayDelete)("modal",!0)("draggable",!1)("resizable",!1),a(3),S(f(152,178,"settings.common.ru_sure")),a(3),S(Dt(155,180,"settings.chanedit.delete_details",Qt(193,ZZ,n.channel.ChanNum,n.channel.ChannelName,n.getSource(n.channel)))),a(3),x("header",f(158,183,"settings.chanedit.delete_source")),p("visible",n.displayDeleteSource)("modal",!0)("draggable",!1)("resizable",!1),a(3),S(f(161,185,"settings.common.ru_sure")),a(2),p("ngIf",n.filterEvent.filters.Source.value)("ngIfElse",r),a(3),
p("ngIf",0!=n.channel.ChanId)}},directives:[Q,Dn,ne,On,bt,vg,Ot,Te,_e,ve,Kt,yd,wd,Le,Go,ze,Ue,He,bn,Ye,_n,pt,sn,Ss,Ts,qe],pipes:[ce],styles:[""]}),t})(),XZ=(()=>{class
t{constructor(e){this.router=e}ngOnInit(){}}return t.\u0275fac=function(e){return
new(e||t)(D(It))},t.\u0275cmp=z({type:t,selectors:[["app-wiz-channeledit"]],decls:11,vars:6,consts:[[1,"m-5"],[1,"flex","justify-content-end"],["icon","pi
pi-angle-left","iconPos","left",1,"p-3",3,"label","onClick"],["icon","pi
pi-angle-right","iconPos","right",1,"p-3",3,"label","onClick"]],template:function(e,n){1&e&&(l(0,"p-card",0),k(1,"app-channel-editor")(2,"br")(3,"br")(4,"br")(5,"br"),l(6,"div",1)(7,"p-button",2),C("onClick",function(){return
n.router.navigate(["setupwizard/input-connections"])}),m(8,"translate"),c(),l(9,"p-button",3),C("onClick",function(){return
n.router.navigate(["setupwizard/storage-groups"])}),m(10,"translate"),c()()()),2&e&&(a(7),x("label",f(8,2,"common.back")),a(2),x("label",f(10,4,"common.next")))},directi
ves:[Ne,bS,ve],pipes:[ce],styles:[""]}),t})(),eX=(()=>{class t{}return
t.\u0275fac=function(e){return
new(e||t)},t.\u0275mod=he({type:t}),t.\u0275inj=ue({imports:[[vn.forChild([{path:"setupwizard",component:rS,children:[{path:"selectlanguage",component:nK,canDeactivate:[ji]},{path:"dbsetup",component:RK,canDeactivate:[ji]},{path:"general",component:WJ,canDeactivate:[ji]},{path:"capture-cards",component:hS,canDeactivate:[ji]},{path:"recording-profiles",component:mS,canDeactivate:[ji]},{path:"video-sources",component:UY,canDeactivate:[ji]},{path:"input-connections",component:_S,canDeactivate:[ji]},{path:"channel-editor",component:XZ,canDeactivate:[ji]},{path:"storage-groups",component:gZ,canDeactivate:[ji]},{path:"system-events",component:TZ,canDeactivate:[ji]}]}])],vn]}),t})(),vS=(()=>{class
t{constructor(e){this.httpClient=e,this.guide_hours=3,this.guide_millisecs=60*this.guide_hours*60*1e3,this.startDate=new
Date}toTime(e){return new Date(e).toISOString()}toStartTime(e){return this
.toTime(e)}toEndTime(e){let n=new Date(e),s=new
Date(n.getTime()+this.guide_millisecs);return
this.toTime(s.toISOString())}toHalfHour(e){let n=new Date(e);return
n.setMinutes(n.getMinutes()<30?0:30),n.setSeconds(0),n}AddToChannelGroup(e){return
this.httpClient.post("/Guide/AddToChannelGroup",e)}GetCategoryList(){return
this.httpClient.get("/Guide/GetCategoryList")}GetChannelGroupList(e){let n=(new
ye).set("IncludeEmpty",e);return
this.httpClient.get("/Guide/GetChannelGroupList",{params:n})}GetChannelIcon(e){let
n=(new
ye).set("ChanId",e.ChanId).set("Width",e.Width).set("Height",e.Height);return
this.httpClient.get("/Guide/GetChannelIcon",{params:n})}GetProgramDetails(e){let
n=(new ye).set("ChanId",e.ChanId).set("StartTime",e.StartTime);return
this.httpClient.get("/Guide/GetProgramDetails",{params:n})}GetProgramGuide(e,n){e&&(this.startDate=e);let
s=this.toHalfHour(this.startDate).toISOString(),r={StartTime:this.toStartTime(s),EndTime:this.toEndTime(s),Details:!0,ChannelGroupId:n};re
turn this.httpClient.post("/Guide/GetProgramGuide",r)}GetProgramList(e){let
n=new ye;for(const[s,r]of Object.entries(e))n=n.set(s,r);return
this.httpClient.get("/Guide/GetProgramList",{params:n})}GetStoredSearches(e){let
n=(new ye).set("Type",e);return
this.httpClient.get("/Guide/GetStoredSearches",{params:n})}RemoveFromChannelGroup(e){return
this.httpClient.post("/Guide/RemoveFromChannelGroup",e)}}return
t.\u0275fac=function(e){return
new(e||t)(K(Bi))},t.\u0275prov=X({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();function
tX(t,i){if(1&t){const
e=I();l(0,"div",15)(1,"p-dropdown",16),C("ngModelChange",function(s){return
v(e),d(2).channelGroup=s})("onChange",function(){return
v(e),d(2).refresh()}),m(2,"translate"),c()()}if(2&t){const
e=d(2);a(1),x("pTooltip",f(2,3,"dashboard.guide.channel_group")),p("ngModel",e.channelGroup)("options",e.channelGroups)}}function
nX(t,i){if(1&t&&(l(0,"div",17)(1,"b"),g(2),m(3,"translate"),c()()),2&t){const
e=d(2);a(2),Ec(" ",f(3,4,"dashboard.gui
de.channel")," ",e.channel.ChanNum," ",e.channel.CallSign,"
",e.channel.ChannelName,"")}}function
iX(t,i){1&t&&(l(0,"div",17)(1,"b"),g(2),m(3,"translate"),c()()),2&t&&(a(2),T("
",f(3,1,"dashboard.guide.people_search")," "))}function
sX(t,i){1&t&&(l(0,"div",17)(1,"b"),g(2),m(3,"translate"),c()()),2&t&&(a(2),T("
",f(3,1,"dashboard.guide.title_search")," "))}function
rX(t,i){1&t&&(l(0,"div",17)(1,"b"),g(2),m(3,"translate"),c()()),2&t&&(a(2),T("
",f(3,1,"dashboard.guide.full_search")," "))}function
oX(t,i){if(1&t){const
e=I();l(0,"div",18)(1,"input",19),C("ngModelChange",function(s){return
v(e),d(2).searchValue=s}),c(),l(2,"button",20),C("click",function(){return
v(e),d(2).titleSearch()}),m(3,"translate"),c(),l(4,"button",21),C("click",function(){return
v(e),d(2).peopleSearch()}),m(5,"translate"),c(),l(6,"button",22),C("click",function(){return
v(e),d(2).fullSearch()}),m(7,"translate"),c()()}if(2&t){const
e=d(2);a(1),p("ngModel",e.searchValue),a(1),x("pTooltip",f(3,4,"dashboard.guide.ti
tle_search")),a(2),x("pTooltip",f(5,6,"dashboard.guide.people_search")),a(2),x("pTooltip",f(7,8,"dashboard.guide.full_search"))}}function
aX(t,i){if(1&t){const
e=I();l(0,"div",7)(1,"button",23),C("click",function(){return
v(e),d(2).onGrid()}),m(2,"translate"),c()()}2&t&&(a(1),x("pTooltip",f(2,1,"dashboard.guide.retgrid")))}const
lX=function(){return{width:"30px",height:"30px"}};function
cX(t,i){1&t&&(l(0,"div"),k(1,"p-progressSpinner"),c()),2&t&&(a(1),q(A(2,lX)))}function
uX(t,i){if(1&t){const
e=I();l(0,"div")(1,"button",24),C("click",function(){v(e);const
s=d(3);return
s.refreshing=!0,s.refresh()}),m(2,"translate"),c()()}2&t&&(a(1),x("pTooltip",f(2,1,"common.refresh")))}const
dX=function(t,i){return[t,i]};function
pX(t,i){if(1&t&&_(0,uX,3,3,"div",14),2&t){const
e=d(2);p("ngIf",Ge(1,dX,e.CHANNEL,e.GRID).indexOf(e.displayType)>-1)}}function
hX(t,i){}function
mX(t,i){if(1&t&&(de(0),l(1,"div",34),k(2,"app-guide-timebar",35),c(),pe()),2&t){const
e=d(4);a(2),p("guide",e)}}function fX(t,i
){if(1&t&&(de(0),k(1,"app-guide-programentry",36),pe()),2&t){const
e=d().$implicit,n=d().$implicit,s=d(3);a(1),p("program",e)("guideStartTime",s.m_programGuide.ProgramGuide.StartTime)("guideEndTime",s.m_programGuide.ProgramGuide.EndTime)("guideComponent",s)("channel",n)}}function
gX(t,i){if(1&t&&(de(0),_(1,fX,2,5,"ng-container",14),pe()),2&t){const
e=i.$implicit,n=d(4);a(1),p("ngIf",!n.timeChange&&n.inDisplayWindow(e.StartTime,e.EndTime))}}function
_X(t,i){if(1&t&&(l(0,"div",28),_(1,mX,3,1,"ng-container",14),l(2,"div",29)(3,"div",30),k(4,"app-guide-channelicon",31),c(),l(5,"div",32),_(6,gX,2,1,"ng-container",33),c()()()),2&t){const
e=i.$implicit,n=i.rowIndex,s=d(3);a(1),p("ngIf",n%5==0),a(3),p("channel",e)("guideComponent",s),a(2),p("ngForOf",e.Programs)}}const
bX=function(){return{width:"100%",height:"90vh"}};function
vX(t,i){if(1&t&&(l(0,"div")(1,"p-scrollPanel")(2,"p-dataView",25),_(3,hX,0,0,"ng-template",26),_(4,_X,7,4,"ng-template",27),c()()()),2&t){const
e=d(2);a(1),q(A(4,bX))
,a(1),p("value",e.m_programGuide.ProgramGuide.Channels)("totalRecords",e.m_programGuide.ProgramGuide.TotalAvailable)}}function
CX(t,i){if(1&t&&(l(0,"div"),k(1,"app-programs",37),c()),2&t){const
e=d(2);a(1),p("inter",e.inter)("programs",e.listPrograms)}}const
Cg=function(t,i,e,n){return[t,i,e,n]};function yX(t,i){if(1&t){const
e=I();l(0,"div")(1,"div",5),_(2,tX,3,5,"div",6),l(3,"div",7)(4,"p-calendar",8),C("ngModelChange",function(s){return
v(e),d().m_pickerDate=s})("onClose",function(){return
v(e),d().onDateChange()})("keyup.enter",function(){return
v(e),d().onDateChange()})("onBlur",function(){return
v(e),d().onDateChange()}),m(5,"translate"),c()(),_(6,nX,4,6,"div",9),_(7,iX,4,3,"div",9),_(8,sX,4,3,"div",9),_(9,rX,4,3,"div",9),_(10,oX,8,10,"div",10),_(11,aX,3,3,"div",11),l(12,"div",7),_(13,cX,2,3,"div",0),_(14,pX,1,4,"ng-template",null,12,we),c(),l(16,"div",7)(17,"button",13),C("click",function(){return
v(e),d().showLegend=!0}),m(18,"translate"),c()()(),_(19,vX,5,5,"div",14),_(20,C
X,2,2,"div",14),c()}if(2&t){const
e=F(15),n=d();a(2),p("ngIf",n.displayType==n.GRID),a(2),x("pTooltip",f(5,22,"dashboard.guide.calendar_tip")),p("ngModel",n.m_pickerDate)("showTime",!0)("stepMinute",30)("dateFormat","yy/mm/dd")("selectOtherMonths",!0)("showIcon",!0)("showOnFocus",!0)("showButtonBar",!0)("clearButtonStyleClass","hidden"),a(2),p("ngIf",n.displayType==n.CHANNEL),a(1),p("ngIf",n.displayType==n.PEOPLESEARCH),a(1),p("ngIf",n.displayType==n.TITLESEARCH),a(1),p("ngIf",n.displayType==n.FULLSEARCH),a(1),p("ngIf",qn(26,Cg,n.GRID,n.TITLESEARCH,n.PEOPLESEARCH,n.FULLSEARCH).indexOf(n.displayType)>-1),a(1),p("ngIf",qn(31,Cg,n.CHANNEL,n.TITLESEARCH,n.PEOPLESEARCH,n.FULLSEARCH).indexOf(n.displayType)>-1),a(2),p("ngIf",n.refreshing)("ngIfElse",e),a(4),x("label",f(18,24,"dashboard.guide.colors")),a(2),p("ngIf",n.displayType==n.GRID),a(1),p("ngIf",qn(36,Cg,n.CHANNEL,n.TITLESEARCH,n.PEOPLESEARCH,n.FULLSEARCH).indexOf(n.displayType)>-1)}}function
wX(t,i){1&t&&k(0,"p-progressSpinner")}fun
ction TX(t,i){if(1&t&&k(0,"app-legend",38),2&t){const
e=d();p("programGuide",e.displayType==e.GRID?e.m_programGuide:null)("listPrograms",e.displayType==e.GRID?null:e.listPrograms)}}const
SX=function(){return{width:"80vw"}};let CS=(()=>{class
t{constructor(e,n){this.guideService=e,this.translate=n,this.m_startDate=new
Date,this.m_pickerDate=new Date,this.m_endDate=new
Date,this.channelGroups=[],this.m_channelData=[],this.m_channelTotal=10,this.m_rows=10,this.listPrograms=[],this.allGroup={GroupId:0,Name:this.translate.instant("settings.chanedit.all"),Password:""},this.channelGroup=this.allGroup,this.loaded=!1,this.refreshing=!1,this.timeChange=!1,this.inter={summaryComponent:this},this.GRID=1,this.CHANNEL=2,this.TITLESEARCH=3,this.PEOPLESEARCH=4,this.FULLSEARCH=5,this.displayType=this.GRID,this.searchValue="",this.showLegend=!1,this.translate.onLangChange.subscribe(s=>{console.log("Event:
language change, new language
("+s.lang+")"),this.switchLanguage(s.lang),this.fetchData()})}ngOn
Init(){this.fetchData()}switchLanguage(e){this.translate.use(e)}fetchData(e){0==this.channelGroups.length&&this.guideService.GetChannelGroupList(!1).subscribe(n=>{console.log(n),this.channelGroups=n.ChannelGroupList.ChannelGroups,this.channelGroups.unshift(this.allGroup)}),this.guideService.GetProgramGuide(e,this.channelGroup.GroupId).subscribe(n=>{this.m_programGuide=n,this.m_startDate=new
Date(n.ProgramGuide.StartTime),this.m_pickerDate=new
Date(this.m_startDate),this.m_endDate=new
Date(n.ProgramGuide.EndTime),this.m_channelData=n.ProgramGuide.Channels,this.m_channelTotal=n.ProgramGuide.TotalAvailable,this.loaded=!0,this.refreshing=!1,this.timeChange=!1})}fetchDetails(){let
e=this.m_startDate.getTime(),s={Details:!0,StartTime:new
Date(e+1e3).toISOString()};switch(this.displayType){case
this.CHANNEL:s.ChanId=this.channel.ChanId;break;case
this.TITLESEARCH:s.TitleFilter=this.searchValue,s.Count=1e3;break;case
this.PEOPLESEARCH:s.PersonFilter=this.searchValue,s.Count=1e3;break;case t
his.FULLSEARCH:s.KeywordFilter=this.searchValue,s.Count=1e3}this.listPrograms=[],this.guideService.GetProgramList(s).subscribe(r=>{this.listPrograms=r.ProgramList.Programs,this.loaded=!0,this.refreshing=!1})}inDisplayWindow(e,n){let
s=new Date(e),r=new Date(n),o=new Date(this.m_startDate),u=new
Date(this.m_endDate);return!(r<=o||s>=u)&&s<u}onDateChange(){this.m_pickerDate||(this.m_pickerDate=new
Date),this.m_pickerDate.getTime()!=this.m_startDate.getTime()&&(this.m_startDate=new
Date(this.m_pickerDate),this.timeChange=!0,this.refresh())}refresh(){switch(this.refreshing=!0,this.displayType){case
this.GRID:this.m_startDate&&(this.refreshing=!0,this.fetchData(this.m_startDate));break;case
this.CHANNEL:case this.TITLESEARCH:case this.PEOPLESEARCH:case
this.FULLSEARCH:this.refreshing=!0,this.fetchDetails()}}onChannel(e){this.channel=e,this.displayType=this.CHANNEL,this.refresh()}onGrid(){this.displayType=this.GRID,this.refresh()}titleSearch(){this.searchValue=this.searchValue.trim(),this
.searchValue.length>1&&(this.displayType=this.TITLESEARCH,this.refresh())}peopleSearch(){this.searchValue=this.searchValue.trim(),this.searchValue.length>1&&(this.displayType=this.PEOPLESEARCH,this.refresh())}fullSearch(){this.searchValue=this.searchValue.trim(),this.searchValue.length>1&&(this.displayType=this.FULLSEARCH,this.refresh())}}return
t.\u0275fac=function(e){return
new(e||t)(D(vS),D(Oe))},t.\u0275cmp=z({type:t,selectors:[["app-guide"]],decls:10,vars:14,consts:[[4,"ngIf","ngIfElse"],[3,"inter"],["loading",""],[3,"header","visible","modal","visibleChange"],["pTemplate",""],[1,"flex"],["class","flex
align-items-center
pr-5",4,"ngIf"],[1,"flex","align-items-center"],["tooltipPosition","top",3,"ngModel","showTime","stepMinute","dateFormat","selectOtherMonths","showIcon","showOnFocus","showButtonBar","clearButtonStyleClass","pTooltip","ngModelChange","onClose","keyup.enter","onBlur"],["class","flex
align-items-center p-5",4,"ngIf"],["class","flex
align-items-center pl-5",4,"ngI
f"],["class","flex
align-items-center",4,"ngIf"],["refreshBn",""],["type","text","pButton","",3,"label","click"],[4,"ngIf"],[1,"flex","align-items-center","pr-5"],["name","channelGroup","optionLabel","Name","tooltipPosition","top",3,"ngModel","options","pTooltip","ngModelChange","onChange"],[1,"flex","align-items-center","p-5"],[1,"flex","align-items-center","pl-5"],["type","text","pInputText","","id","searchValue","name","searchValue","placeholder","Search",1,"text-xl",3,"ngModel","ngModelChange"],["pButton","","pRipple","","icon","pi
pi-search","tooltipPosition","top",1,"p-button-text",3,"pTooltip","click"],["pButton","","pRipple","","icon","pi
pi-user","tooltipPosition","top",1,"p-button-text",3,"pTooltip","click"],["pButton","","pRipple","","icon","pi
pi-search-plus","tooltipPosition","top",1,"p-button-text",3,"pTooltip","click"],["pButton","","pRipple","","icon","pi
pi-table","tooltipPosition","top",1,"p-button-text",3,"pTooltip","click"],["pButton","","pRipple","","icon","pi
p
i-refresh","tooltipPosition","top",1,"p-button-text",3,"pTooltip","click"],[3,"value","totalRecords"],["pTemplate","header","styleClass","timeHeader"],["pTemplate","listItem"],[1,"grid","col-12","p-3"],[1,"grid","flex-grow-1"],[1,"col-1"],[3,"channel","guideComponent"],[1,"col"],[4,"ngFor","ngForOf"],[1,"col-12"],[3,"guide"],[3,"program","guideStartTime","guideEndTime","guideComponent","channel"],[3,"inter","programs"],[3,"programGuide","listPrograms"]],template:function(e,n){if(1&e&&(l(0,"h2"),g(1),m(2,"translate"),c(),_(3,yX,21,41,"div",0),k(4,"app-schedule",1),_(5,wX,1,0,"ng-template",null,2,we),l(7,"p-dialog",3),C("visibleChange",function(r){return
n.showLegend=r}),m(8,"translate"),_(9,TX,1,2,"ng-template",4),c()),2&e){const
s=F(6);a(1),T("",f(2,9,"dashboard.programguide"),"
"),a(2),p("ngIf",n.loaded)("ngIfElse",s),a(1),p("inter",n.inter),a(3),q(A(13,SX)),x("header",f(8,11,"dashboard.guide.colors")),p("visible",n.showLegend)("modal",!0)}},styles:[".channelRow[_ngcontent-%COMP%]{
display:block;grid-template-columns:90px
auto;width:100%;height:82px;padding-bottom:2px}.programsBox[_ngcontent-%COMP%],
.timebarbox[_ngcontent-%COMP%]{grid-template-columns:90px
auto;grid-template-rows:28px;width:100%}"]}),t})();function
xX(t,i){1&t&&k(0,"img",5),2&t&&x("src",d().channel.IconURL,ln)}function
DX(t,i){1&t&&k(0,"img",6)}let MX=(()=>{class
t{constructor(){}ngOnInit(){}}return t.\u0275fac=function(e){return
new(e||t)},t.\u0275cmp=z({type:t,selectors:[["app-guide-channelicon"]],inputs:{channel:"channel",guideComponent:"guideComponent"},decls:8,vars:4,consts:[[1,"flex","flex-column","align-items-center","channelBox","cursor-pointer",3,"click"],[1,"channelIcon"],["height","57",3,"src",4,"ngIf","ngIfElse"],["nullIcon",""],[1,"channelText"],["height","57",3,"src"],["height","0","width","0"]],template:function(e,n){if(1&e&&(l(0,"div",0),C("click",function(){return
n.guideComponent.onChannel(n.channel)}),l(1,"div",1),_(2,xX,1,1,"img",2),_(3,DX,1,0,"ng-template",null,3,we),c(),
l(5,"div",4)(6,"span"),g(7),c()()()),2&e){const
s=F(4);a(2),p("ngIf",n.channel.IconURL)("ngIfElse",s),a(5),We("",n.channel.ChanNum,"
",n.channel.CallSign,"")}},directives:[Q],styles:[".channelBox[_ngcontent-%COMP%]{border-radius:10px;background:var(--surface-200);height:120px}.channelIcon[_ngcontent-%COMP%]{height:57px;max-width:86px;margin-top:10px;margin-bottom:3px;overflow:hidden;float:right}.channelText[_ngcontent-%COMP%]{clear:both;font-weight:700;text-align:-webkit-center;overflow:hidden;text-overflow:ellipsis;padding:0
3px}"]}),t})();const
kX=function(){return["WillRecord","Recording"]};function
IX(t,i){if(1&t&&(l(0,"div")(1,"div",5),g(2),c()()),2&t){const
e=d();a(1),p("ngClass",A(2,kX).indexOf(e.program.Recording.StatusName)>-1?"bg-green-500":"bg-pink-400"),a(1),T("
",e.dataService.recStatusText[e.program.Recording.StatusName],"")}}function
EX(t,i){if(1&t&&(l(0,"div")(1,"div",6),g(2),c()()),2&t){const
e=d();a(2),S((e.program.Season>0?"S"+e.program.Season+"E"+e.program.Episod
e:"")+" "+e.program.SubTitle)}}const
RX=function(t,i){return[t,i,"guide_type_default"]};let LX=(()=>{class
t{constructor(e){this.dataService=e,this.editSchedule=!1,this.typeclass="",this.catclass="",this.regex=/[^a-z0-9]/g}ngOnInit(){this.typeclass="guide_type_"+this.program.CatType,this.catclass="guide_cat_"+this.program.Category.toLowerCase().replace(this.regex,"_")}durationToWidth(){let
e=new Date(this.program.StartTime),n=new Date(this.program.EndTime),s=new
Date(this.guideStartTime),r=new
Date(this.guideEndTime),h=e<s?s:e,b=n>r?r:n,y=r.getTime()-s.getTime();return(b.getTime()-h.getTime())/y*100}openDialog(){this.guideComponent.inter.sched&&this.guideComponent.inter.sched.open(this.program,this.channel)}}return
t.\u0275fac=function(e){return
new(e||t)(D(Ll))},t.\u0275cmp=z({type:t,selectors:[["app-guide-programentry"]],inputs:{program:"program",channel:"channel",guideStartTime:"guideStartTime",guideEndTime:"guideEndTime",guideComponent:"guideComponent"},decls:8,vars:11,consts:[[
"tooltipPosition","top",1,"programBox","cursor-pointer",3,"ngClass","pTooltip","click"],[1,"programTitle"],[1,"programBody"],[1,"programCatType"],[4,"ngIf"],[1,"programCatType",3,"ngClass"],[1,"programSubtitle"]],template:function(e,n){1&e&&(l(0,"div",0),C("click",function(){return
n.openDialog()}),l(1,"div",1),g(2),c(),l(3,"div",2)(4,"div",3),g(5),c(),_(6,IX,3,3,"div",4),_(7,EX,3,1,"div",4),c()()),2&e&&(_i("width",n.durationToWidth(),"%"),x("pTooltip",n.program.Description),p("ngClass",Ge(8,RX,n.typeclass,n.catclass)),a(2),S(n.program.Title),a(3),S(n.program.Category),a(1),p("ngIf",n.program.Recording),a(1),p("ngIf",0!=n.program.SubTitle.length))},directives:[Le,Kt,Q],styles:[".programBox[_ngcontent-%COMP%]{float:left;height:120px;padding:0
0 0
2px;color:var(--primary-color-text);background:var(--surface-200);border-radius:10px;overflow:hidden;text-overflow:ellipsis}.programTitle[_ngcontent-%COMP%]{padding:5px
8px 4px 7px;width:100%;height:28px;color:var(--primary-color-text);backg
round:linear-gradient(to bottom,var(--surface-800) 1%,var(--surface-500)
90%,var(--surface-200)
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;height:45px;z-index:5}.programCatType[_ngcontent-%COMP%]{position:relative;font-weight:700;margin-right:5px;line-height:15px;padding-top:2px;padding-bottom:3px}.programSubtitle[_ngcontent-%COMP%]{position:relative;z-index:1;line-height:15px}"]}),t})(),OX=(()=>{class
t{constructor(e){this.guideService=e}ngOnInit(){}segmentToStartTime(e){const
n=18e5*e;return(new Date(this.guide.m_startDate.getTime()+n).toLocaleTimeString()+"
").replace(/:.. /," ")}pageLeft(){this.guide.m_pickerDate=new
Date(this.guide.m_startDate.getTime()-this.guideService.guide_millisecs),this.guide.onDateChange()}pageRight(){this.guide.m_picke
rDate=new
Date(this.guide.m_startDate.getTime()+this.guideService.guide_millisecs),this.guide.onDateChange()}}return
t.\u0275fac=function(e){return
new(e||t)(D(vS))},t.\u0275cmp=z({type:t,selectors:[["app-guide-timebar"]],inputs:{guide:"guide"},decls:25,vars:7,consts:[[1,"grid"],[1,"col-1","datebox"],[1,"col","segmentbox"],[1,"flex"],[1,"flex-none","cursor-pointer",3,"click"],[1,"flex-none"],[1,"flex-grow-1"]],template:function(e,n){1&e&&(l(0,"div",0)(1,"div",1),g(2),c(),l(3,"div",2)(4,"div",3)(5,"div",4),C("click",function(){return
n.pageLeft()}),g(6,"<<"),c(),l(7,"div",5),g(8),c()()(),l(9,"div",2),g(10),c(),l(11,"div",2),g(12),c(),l(13,"div",2),g(14),c(),l(15,"div",2),g(16),c(),l(17,"div",2)(18,"div",3)(19,"div",5),g(20),c(),l(21,"div",6),g(22,"\xa0"),c(),l(23,"div",4),C("click",function(){return
n.pageRight()}),g(24,">>"),c()()()()),2&e&&(a(2),S(n.guide.m_startDate.toLocaleDateString()),a(6),T("\xa0",n.segmentToStartTime(0),""),a(2),S(n.segmentToStartTime(1)),a(2),S(n.segmentToSt
artTime(2)),a(2),S(n.segmentToStartTime(3)),a(2),S(n.segmentToStartTime(4)),a(4),S(n.segmentToStartTime(5)))},styles:[".timebarbox[_ngcontent-%COMP%]{grid-template-columns:90px
auto;grid-template-rows:28px;width:100%}.datebox[_ngcontent-%COMP%]{padding:5px 8px 4px
7px;color:var(--primary-color-text);background:linear-gradient(to
bottom,var(--surface-800) 1%,var(--surface-500) 90%,var(--surface-200)
99%);border-radius:10px}.segmentsbox[_ngcontent-%COMP%]{display:block;float:left;position:relative;height:100%;width:calc(100%
- 91px)}.segmentbox[_ngcontent-%COMP%]{width:25%;padding:5px 8px 4px
7px;color:var(--primary-color-text);background:linear-gradient(to
bottom,var(--surface-800) 1%,var(--surface-500) 90%,var(--surface-200)
99%);height:auto;border-radius:10px}"]}),t})();function yS(t,i=zf){const n=function
AX(t){return t instanceof Date&&!isNaN(+t)}(t)?+t-i.now():Math.abs(t);return
s=>s.lift(new PX(n,i))}class
PX{constructor(i,e){this.delay=i,this.scheduler=e}call(i,e){return e.sub
scribe(new yg(i,this.delay,this.scheduler))}}class yg extends
yt{constructor(i,e,n){super(i),this.delay=e,this.scheduler=n,this.queue=[],this.active=!1,this.errored=!1}static
dispatch(i){const
e=i.source,n=e.queue,s=i.scheduler,r=i.destination;for(;n.length>0&&n[0].time-s.now()<=0;)n.shift().notification.observe(r);if(n.length>0){const
o=Math.max(0,n[0].time-s.now());this.schedule(i,o)}else
this.unsubscribe(),e.active=!1}_schedule(i){this.active=!0,this.destination.add(i.schedule(yg.dispatch,this.delay,{source:this,destination:this.destination,scheduler:i}))}scheduleNotification(i){if(!0===this.errored)return;const
e=this.scheduler,n=new
FX(e.now()+this.delay,i);this.queue.push(n),!1===this.active&&this._schedule(e)}_next(i){this.scheduleNotification(Kn.createNext(i))}_error(i){this.errored=!0,this.queue=[],this.destination.error(i),this.unsubscribe()}_complete(){this.scheduleNotification(Kn.createComplete()),this.unsubscribe()}}class
FX{constructor(i,e){this.time=i,this.notificatio
n=e}}const NX=["cetonform"],VX=["top"];function
BX(t,i){1&t&&(g(0),m(1,"translate")),2&t&&T("
",f(1,1,"settings.capture.ceton.title")," ")}function
HX(t,i){}function qX(t,i){if(1&t){const
e=I();l(0,"div",8)(1,"div",9)(2,"div",10)(3,"label",11),g(4),m(5,"translate"),c(),l(6,"input",12,13),C("ngModelChange",function(s){return
v(e),d().work.ipAddress=s}),c(),l(8,"small",14),g(9),m(10,"translate"),c()(),l(11,"div",10)(12,"label",15),g(13),m(14,"translate"),c(),l(15,"input",16,13),C("ngModelChange",function(s){return
v(e),d().work.tuner=s}),c(),l(17,"small",14),g(18),m(19,"translate"),c()(),l(20,"div",10)(21,"label",17),g(22),m(23,"translate"),c(),l(24,"input",18,19),C("ngModelChange",function(s){return
v(e),d().card.VideoDevice=s}),c(),l(26,"small",14),g(27),m(28,"translate"),c()(),l(29,"div",10)(30,"label",20),g(31),m(32,"translate"),c(),l(33,"p-inputNumber",21),C("ngModelChange",function(s){return
v(e),d().card.SignalTimeout=s}),c(),l(34,"small",14),g(35),m(36,"translate"),c()(),l(37,
"div",10)(38,"label",22),g(39),m(40,"translate"),c(),l(41,"p-inputNumber",23),C("ngModelChange",function(s){return
v(e),d().card.ChannelTimeout=s}),c(),l(42,"small",14),g(43),m(44,"translate"),c()()()()}if(2&t){const
e=d();a(4),S(f(5,23,"settings.capture.ceton.ipaddress_label")),a(2),p("ngModel",e.work.ipAddress),a(3),T("
",f(10,25,"settings.capture.ceton.ipaddress_desc"),"
"),a(4),S(f(14,27,"settings.capture.ceton.tuner_label")),a(2),p("ngModel",e.work.tuner),a(3),T("
",f(19,29,"settings.capture.ceton.tuner_desc"),"
"),a(4),S(f(23,31,"settings.capture.ceton.deviceid_label")),a(2),p("ngModel",e.card.VideoDevice),a(3),T("
",f(28,33,"settings.capture.ceton.deviceid_desc"),"
"),a(4),S(f(32,35,"settings.capture.sigtimeout_label")),a(2),p("ngModel",e.card.SignalTimeout)("showButtons",!0)("min",250)("max",6e4)("step",250),a(2),T("
",f(36,37,"settings.capture.sigtimeout_desc"),"
"),a(4),S(f(40,39,"settings.capture.tunetimeout_label")),a(2),p("ngModel",e.card.ChannelTimeout)("showButtons",!
0)("min",1750)("max",65e3)("step",250),a(2),T("
",f(44,41,"settings.capture.tunetimeout_desc")," ")}}function
GX(t,i){1&t&&(k(0,"p-message",29),m(1,"translate")),2&t&&x("text",f(1,1,"common.savesuccess"))}function
UX(t,i){1&t&&(k(0,"p-message",30),m(1,"translate")),2&t&&x("text",f(1,1,"common.networkfail"))}function
zX(t,i){if(1&t){const
e=I();l(0,"div",24)(1,"div",25),_(2,GX,2,3,"p-message",26),_(3,UX,2,3,"p-message",27),c(),l(4,"p-button",28),C("onClick",function(){v(e);const
s=d(),r=F(1);return
s.saveForm(),r.form.markAsPristine()}),m(5,"translate"),c()()}if(2&t){const
e=d(),n=F(1);a(2),p("ngIf",e.work.successCount>0&&0==e.work.errorCount&&!n.dirty),a(1),p("ngIf",e.work.errorCount>0),a(1),x("label",f(5,4,"common.save")),p("disabled",!n.dirty||!e.card.VideoDevice||e.setupService.schedulingEnabled)}}let
jX=(()=>{class
t{constructor(e,n){this.captureCardService=e,this.setupService=n,this.work={ipAddress:"",tuner:"",successCount:0,errorCount:0},this.saveObserver={next:s=>{this.card.C
ardId&&s.bool?this.work.successCount++:!this.card.CardId&&s.int?(this.work.successCount++,this.card.CardId=s.int):(this.work.errorCount++,this.currentForm.form.markAsDirty())},error:s=>{console.error(s),this.work.errorCount++,this.currentForm.form.markAsDirty()}}}ngOnInit(){if(this.card.VideoDevice){const
e=this.card.VideoDevice.split("-");if(2==e.length){this.work.ipAddress=e[0];const
n=e[1].split(".");2==n.length&&(this.work.tuner=n[1])}}}ngAfterViewInit(){this.currentForm.valueChanges.pipe(yS(50)).subscribe(()=>this.card.VideoDevice=this.work.ipAddress+"-RTP."+this.work.tuner),this.setupService.setCurrentForm(this.currentForm),this.topElement.nativeElement.scrollIntoView({behavior:"smooth",block:"start"})}saveForm(){console.log("save
form
clicked"),this.work.successCount=0,this.work.errorCount=0,this.card.CardId?this.cardList.CaptureCardList.CaptureCards.forEach(e=>{(e.CardId==this.card.CardId||e.ParentId==this.card.CardId)&&(this.captureCardService.UpdateCaptureCard(e.CardId,"vi
deodevice",this.card.VideoDevice).subscribe(this.saveObserver),this.captureCardService.UpdateCaptureCard(e.CardId,"signal_timeout",String(this.card.SignalTimeout)).subscribe(this.saveObserver),this.captureCardService.UpdateCaptureCard(e.CardId,"channel_timeout",String(this.card.ChannelTimeout)).subscribe(this.saveObserver))}):this.captureCardService.AddCaptureCard(this.card).subscribe(this.saveObserver)}}return
t.\u0275fac=function(e){return
new(e||t)(D(Gt),D(Me))},t.\u0275cmp=z({type:t,selectors:[["app-ceton"]],viewQuery:function(e,n){if(1&e&&(W(NX,5),W(VX,5)),2&e){let
s;V(s=B())&&(n.currentForm=s.first),V(s=B())&&(n.topElement=s.first)}},inputs:{card:"card",cardList:"cardList"},decls:9,vars:0,consts:[["name","cetonform",1,"ml-3","mr-3"],["cetonform","ngForm"],["top",""],[1,"m-5"],["pTemplate","title"],["pTemplate","subtitle"],["pTemplate","content"],["pTemplate","footer"],[1,"grid"],[1,"mb-4","w-full"],[1,"form-group","field"],["for","ip",1,"label","block"],["pInputText","","id","
ip","name","ip",1,"mb-2","form-control","w-full",3,"ngModel","ngModelChange"],["ipAddress","ngModel"],[1,"block"],["for","tuner",1,"label","block"],["pInputText","","id","tuner","name","tuner",1,"mb-2","form-control","w-full",3,"ngModel","ngModelChange"],["for","VideoDevice",1,"label","block"],["pInputText","","id","VideoDevice","name","VideoDevice","disabled","true",1,"mb-2","form-control","w-full",3,"ngModel","ngModelChange"],["VideoDevice","ngModel"],["for","SignalTimeout",1,"label","block"],["name","SignalTimeout","id","SignalTimeout",3,"ngModel","showButtons","min","max","step","ngModelChange"],["for","ChannelTimeout",1,"label","block"],["name","ChannelTimeout","id","ChannelTimeout",3,"ngModel","showButtons","min","max","step","ngModelChange"],[1,"grid","nogutter"],[1,"col-12"],["severity","success",3,"text",4,"ngIf"],["severity","error",3,"text",4,"ngIf"],["icon","pi
pi-save","iconPos","left",1,"col","pr-1",3,"label","disabled","onClick"],["severity","success",3,"text"],["seve
rity","error",3,"text"]],template:function(e,n){1&e&&(l(0,"form",0,1),k(2,"span",null,2),l(4,"p-card",3),_(5,BX,2,3,"ng-template",4),_(6,HX,0,0,"ng-template",5),_(7,qX,45,43,"ng-template",6),_(8,zX,6,6,"ng-template",7),c()())},directives:[ze,Ue,He,Ne,ne,Ye,Te,_e,pt,Q,qe,ve],pipes:[ce],styles:[""]}),t})();const
$X=["dvbform"],WX=["top"];function
KX(t,i){1&t&&(g(0),m(1,"translate")),2&t&&T("
",f(1,1,"settings.capture.dvb.title")," ")}function
QX(t,i){}const JX=function(){return{minWidth:"80%"}};function
YX(t,i){if(1&t){const
e=I();l(0,"p-dropdown",43,44),C("ngModelChange",function(s){return
v(e),d(2).currentDevice=s})("onChange",function(){return
v(e),d(2).updateDevice()}),c()}if(2&t){const
e=d(2);q(A(6,JX)),p("options",e.captureDeviceList.CaptureDeviceList.CaptureDevices)("ngModel",e.currentDevice)("editable",!1)("maxlength",0)}}function
ZX(t,i){if(1&t&&(l(0,"div")(1,"small",45),g(2),c()()),2&t){const
e=d(2);a(2),T(" ",e.work.warningMessage," ")}}function
XX(t,i){if(1&t){const e=I();
l(0,"input",46,47),C("ngModelChange",function(s){return
v(e),d(2).currentDevice.FrontendName=s}),c()}2&t&&p("ngModel",d(2).currentDevice.FrontendName)}function
eee(t,i){if(1&t){const
e=I();l(0,"p-dropdown",48,49),C("ngModelChange",function(s){return
v(e),d(2).card.InputName=s}),c()}if(2&t){const
e=d(2);p("options",e.currentDevice.InputNames)("ngModel",e.card.InputName)}}function
tee(t,i){if(1&t){const
e=I();l(0,"p-button",50),C("onClick",function(){return
v(e),d(2).work.displayNewDiseqc=!0}),m(1,"translate"),c()}2&t&&x("label",f(1,1,"settings.capture.dvb.newsatellite_button"))}function
nee(t,i){if(1&t){const
e=I();l(0,"p-button",51),C("onClick",function(){return
v(e),d(2).work.displayNewDiseqc=!1}),m(1,"translate"),c(),l(2,"p-button",52),C("onClick",function(){return
v(e),d(2).newDiseqc()}),m(3,"translate"),c()}if(2&t){const
e=d(2);x("label",f(1,3,"common.cancel")),a(2),x("label",f(3,5,"common.ok")),p("disabled",e.selectedDiseqcType.inactive)}}function
iee(t,i){if(1&t){const e=I();l
(0,"p-button",53),C("onClick",function(){v(e);const s=d(2);return
s.setupRootTrees(),s.work.displayConnectDevice=!0}),m(1,"translate"),m(2,"translate"),c()}2&t&&(x("label",f(1,2,"settings.capture.dvb.satellite_connect")),x("pTooltip",f(2,4,"settings.capture.dvb.satellite_connect_tooltip")))}function
see(t,i){if(1&t){const
e=I();l(0,"p-button",51),C("onClick",function(){return
v(e),d(2).work.displayConnectDevice=!1}),m(1,"translate"),c(),l(2,"p-button",52),C("onClick",function(){return
v(e),d(2).selectDiseqc()}),m(3,"translate"),c()}if(2&t){const
e=d(2);x("label",f(1,3,"common.cancel")),a(2),x("label",f(3,5,"common.ok")),p("disabled",!e.work.selectedDiseqcTree)}}function
ree(t,i){if(1&t){const
e=I();l(0,"p-button",54),C("onClick",function(){return
v(e),d(2).canDeleteDiseqc()}),c()}}function oee(t,i){if(1&t){const
e=I();l(0,"p-button",55),C("click",function(){return
v(e),d(2).work.displayDeleteDiseqc=!1}),m(1,"translate"),c(),l(2,"p-button",56),C("click",function(){return
v(e),d(2).de
leteDiseqc()}),m(3,"translate"),c()}2&t&&(x("label",f(1,2,"common.no")),a(2),x("label",f(3,4,"common.yes")))}function
aee(t,i){if(1&t){const
e=I();l(0,"p-button",57),C("onClick",function(){return
v(e),d(2).work.displayDisconnect=!0}),m(1,"translate"),c()}2&t&&x("label",f(1,1,"settings.capture.dvb.satellite_disconnect"))}function
lee(t,i){if(1&t){const
e=I();l(0,"p-button",55),C("click",function(){return
v(e),d(2).work.displayDisconnect=!1}),m(1,"translate"),c(),l(2,"p-button",56),C("click",function(){return
v(e),d(2).unSelectDiseqc()}),m(3,"translate"),c()}2&t&&(x("label",f(1,2,"common.no")),a(2),x("label",f(3,4,"common.yes")))}function
cee(t,i){1&t&&(k(0,"p-message",58),m(1,"translate")),2&t&&x("text",f(1,1,"settings.capture.dvb.satellite_disconnect_error"))}function
uee(t,i){if(1&t){const
e=I();l(0,"app-lnb",59),C("baseEvent",function(s){return
v(e),d(2).setDiseqcObject(s)}),c()}if(2&t){const
e=d(2);p("diseqcTree",e.diseqcTree)("diseqcTreeList",e.diseqcTreeList)("dvbComponent",e)}
}function dee(t,i){if(1&t){const
e=I();l(0,"app-rotor",59),C("baseEvent",function(s){return
v(e),d(2).setDiseqcObject(s)}),c()}if(2&t){const
e=d(2);p("diseqcTree",e.diseqcTree)("diseqcTreeList",e.diseqcTreeList)("dvbComponent",e)}}function
pee(t,i){if(1&t){const
e=I();l(0,"app-switch",59),C("baseEvent",function(s){return
v(e),d(2).setDiseqcObject(s)}),c()}if(2&t){const
e=d(2);p("diseqcTree",e.diseqcTree)("diseqcTreeList",e.diseqcTreeList)("dvbComponent",e)}}function
hee(t,i){if(1&t){const
e=I();l(0,"app-unicable",59),C("baseEvent",function(s){return
v(e),d(2).setDiseqcObject(s)}),c()}if(2&t){const
e=d(2);p("diseqcTree",e.diseqcTree)("diseqcTreeList",e.diseqcTreeList)("dvbComponent",e)}}const
Md=function(){return{width:"50vw"}};function mee(t,i){if(1&t){const
e=I();l(0,"div",8)(1,"div",9)(2,"div",10)(3,"label",11),g(4),m(5,"translate"),c(),_(6,YX,2,7,"p-dropdown",12),_(7,ZX,3,1,"div",13),l(8,"small",14),g(9),m(10,"translate"),c()(),l(11,"div",10)(12,"label",15),g(13),m(14,"translate"
),c(),_(15,XX,2,1,"input",16),l(16,"small",14),g(17),m(18,"translate"),c()(),l(19,"div",10)(20,"label",17),g(21),m(22,"translate"),c(),_(23,eee,2,2,"p-dropdown",18),l(24,"small",14),g(25),m(26,"translate"),c()(),l(27,"div",10)(28,"label",19),g(29),m(30,"translate"),c(),l(31,"p-inputNumber",20),C("ngModelChange",function(s){return
v(e),d().card.SignalTimeout=s}),c(),l(32,"small",14),g(33),m(34,"translate"),c()(),l(35,"div",10)(36,"label",21),g(37),m(38,"translate"),c(),l(39,"p-inputNumber",22),C("ngModelChange",function(s){return
v(e),d().card.ChannelTimeout=s}),c(),l(40,"small",14),g(41),m(42,"translate"),c()(),l(43,"div",10)(44,"p-checkbox",23,24),C("ngModelChange",function(s){return
v(e),d().card.DVBWaitForSeqStart=s}),m(46,"translate"),c(),l(47,"small",14),g(48),m(49,"translate"),c()(),l(50,"div",10)(51,"p-checkbox",25,26),C("ngModelChange",function(s){return
v(e),d().card.DVBOnDemand=s}),m(53,"translate"),c(),l(54,"small",14),g(55),m(56,"translate"),c()(),l(57,"div",10)(58,"p-ch
eckbox",27,28),C("ngModelChange",function(s){return
v(e),d().card.DVBEITScan=s}),m(60,"translate"),c(),l(61,"small",14),g(62),m(63,"translate"),c()(),l(64,"div",10)(65,"label",29),g(66),m(67,"translate"),c(),l(68,"p-inputNumber",30),C("ngModelChange",function(s){return
v(e),d().card.DVBTuningDelay=s}),c(),l(69,"small",14),g(70),m(71,"translate"),c()()(),l(72,"p-fieldset",31),m(73,"translate"),_(74,tee,2,3,"p-button",32),l(75,"p-dialog",33),C("visibleChange",function(s){return
v(e),d().work.displayNewDiseqc=s}),m(76,"translate"),l(77,"label",34),g(78),m(79,"translate"),c(),l(80,"p-listbox",35),C("ngModelChange",function(s){return
v(e),d().selectedDiseqcType=s})("onDblClick",function(){return
v(e),d().newDiseqc()}),c(),_(81,nee,4,7,"ng-template",7),c(),g(82," \xa0
"),_(83,iee,3,6,"p-button",36),l(84,"p-dialog",33),C("visibleChange",function(s){return
v(e),d().work.displayConnectDevice=s}),m(85,"translate"),l(86,"label",37),g(87),m(88,"translate"),c(),l(89,"p-listbox",38),C("ngModelCha
nge",function(s){return
v(e),d().work.selectedDiseqcTree=s})("onDblClick",function(){return
v(e),d().selectDiseqc()}),c(),_(90,see,4,7,"ng-template",7),c(),_(91,ree,1,0,"p-button",39),l(92,"p-dialog",33),C("visibleChange",function(s){return
v(e),d().work.displayDeleteDiseqc=s}),m(93,"translate"),l(94,"h2"),g(95),m(96,"translate"),c(),l(97,"p"),g(98),m(99,"translate"),c(),_(100,oee,4,6,"ng-template",7),c(),g(101,"
\xa0
"),_(102,aee,2,3,"p-button",40),l(103,"p-dialog",33),C("visibleChange",function(s){return
v(e),d().work.displayDisconnect=s}),m(104,"translate"),l(105,"h2"),g(106),m(107,"translate"),c(),l(108,"p"),g(109),m(110,"translate"),c(),_(111,lee,4,6,"ng-template",7),c(),_(112,cee,2,3,"p-message",41),_(113,uee,1,3,"app-lnb",42),_(114,dee,1,3,"app-rotor",42),_(115,pee,1,3,"app-switch",42),_(116,hee,1,3,"app-unicable",42),c()()}if(2&t){const
e=d();a(4),S(f(5,93,"settings.capture.dvb.device_label")),a(2),p("ngIf",e.work.isReady),a(1),p("ngIf",e.work.warningMessage),a(2),T("
",f(10
,95,"settings.capture.device_desc"),"
"),a(4),S(f(14,97,"settings.capture.dvb.frontend_label")),a(2),p("ngIf",e.work.isReady),a(2),T("
",f(18,99,"settings.capture.frontend_desc"),"
"),a(4),S(f(22,101,"settings.capture.dvb.inputname_label")),a(2),p("ngIf",e.work.isReady),a(2),T("
",f(26,103,"settings.capture.inputname_desc"),"
"),a(4),S(f(30,105,"settings.capture.sigtimeout_label")),a(2),p("ngModel",e.card.SignalTimeout)("showButtons",!0)("min",250)("max",6e4)("step",250),a(2),T("
",f(34,107,"settings.capture.sigtimeout_desc"),"
"),a(4),S(f(38,109,"settings.capture.tunetimeout_label")),a(2),p("ngModel",e.card.ChannelTimeout)("showButtons",!0)("min",1750)("max",65e3)("step",250),a(2),T("
",f(42,111,"settings.capture.tunetimeout_desc"),"
"),a(3),x("label",f(46,113,"settings.capture.dvb.wait_label")),p("ngModel",e.card.DVBWaitForSeqStart)("binary",!0),a(4),T("
",f(49,115,"settings.capture.dvb.wait_desc"),"
"),a(3),x("label",f(53,117,"settings.capture.dvb.ondemand_label")),p("ngModel",e.
card.DVBOnDemand)("binary",!0),a(4),T("
",f(56,119,"settings.capture.dvb.ondemand_desc"),"
"),a(3),x("label",f(60,121,"settings.capture.dvb.eitscan_label")),p("ngModel",e.card.DVBEITScan)("binary",!0),a(4),T("
",f(63,123,"settings.capture.dvb.eitscan_desc"),"
"),a(4),S(f(67,125,"settings.capture.dvb.tuningdelay_label")),a(2),p("ngModel",e.card.DVBTuningDelay)("showButtons",!0)("min",0)("max",2e3)("step",25),a(2),T("
",f(71,127,"settings.capture.dvb.tuningdelay_desc"),"
"),a(2),x("legend",f(73,129,"settings.capture.dvb.satellite_heading")),p("toggleable",!0)("collapsed",!0),a(2),p("ngIf",!e.diseqcTree),a(1),q(A(151,Md)),x("header",f(76,131,"settings.capture.dvb.newsatellite_heading")),p("visible",e.work.displayNewDiseqc)("modal",!0)("draggable",!1)("resizable",!1),a(3),S(f(79,133,"settings.capture.dvb.newsatellite_devtype")),a(2),p("options",e.captureCardService.diseqcTypes)("ngModel",e.selectedDiseqcType),a(3),p("ngIf",!e.diseqcTree),a(1),q(A(152,Md)),x("header",f(85,135,"settings.c
apture.dvb.satellite_connect")),p("visible",e.work.displayConnectDevice)("modal",!0)("draggable",!1)("resizable",!1),a(3),S(f(88,137,"settings.capture.dvb.satellite_select")),a(2),p("options",e.diseqcRootTrees)("ngModel",e.work.selectedDiseqcTree),a(2),p("ngIf",e.diseqcTree),a(1),q(A(153,Md)),x("header",f(93,139,"settings.capture.dvb.satellite_delete_header")),p("visible",e.work.displayDeleteDiseqc)("modal",!0)("draggable",!1)("resizable",!1),a(3),S(f(96,141,"settings.common.ru_sure")),a(3),S(f(99,143,"settings.capture.dvb.satellite_delete_desc")),a(4),p("ngIf",e.diseqcTree),a(1),q(A(154,Md)),x("header",f(104,145,"settings.capture.dvb.satellite_disconnect")),p("visible",e.work.displayDisconnect)("modal",!0)("draggable",!1)("resizable",!1),a(3),S(f(107,147,"settings.common.ru_sure")),a(3),S(f(110,149,"settings.capture.dvb.satellite_disconnect_warning")),a(3),p("ngIf",e.work.diseqcError),a(1),p("ngIf",e.diseqcTree&&"lnb"==e.diseqcTree.Type),a(1),p("ngIf",e.diseqcTree&&"rotor"==e.diseq
cTree.Type),a(1),p("ngIf",e.diseqcTree&&"switch"==e.diseqcTree.Type),a(1),p("ngIf",e.diseqcTree&&"scr"==e.diseqcTree.Type)}}function
fee(t,i){1&t&&(k(0,"p-message",64),m(1,"translate")),2&t&&x("text",f(1,1,"common.savesuccess"))}function
gee(t,i){1&t&&(k(0,"p-message",58),m(1,"translate")),2&t&&x("text",f(1,1,"common.networkfail"))}function
_ee(t,i){if(1&t){const
e=I();l(0,"div",60)(1,"div",61),_(2,fee,2,3,"p-message",62),_(3,gee,2,3,"p-message",41),c(),l(4,"p-button",63),C("onClick",function(){v(e);const
s=d(),r=F(1);return
s.saveForm(),r.form.markAsPristine()}),m(5,"translate"),c()()}if(2&t){const
e=d(),n=F(1);a(2),p("ngIf",e.work.successCount>0&&0==e.work.errorCount&&!n.dirty),a(1),p("ngIf",e.work.errorCount>0),a(1),x("label",f(5,4,"common.save")),p("disabled",!n.dirty||!e.card.VideoDevice||e.setupService.schedulingEnabled)}}let
wS=(()=>{class
t{constructor(e,n,s){this.captureCardService=e,this.setupService=n,this.translate=s,this.work={InputName:"",successCount:0,errorCount:0,in
putNames:[""],isReady:!1,warningMessage:"",displayNewDiseqc:!1,displayDeleteDiseqc:!1,displayConnectDevice:!1,displayDisconnect:!1,selectedDiseqcTree:0,diseqcError:!1},this.captureDeviceList={CaptureDeviceList:{CaptureDevices:[]}},this.diseqcRootTrees=[],this.diseqcTree=void
0,this.messages={devNotExist:"settings.capture.dvb.devNotExist",unknownName:"settings.capture.dvb.unknownName",devInUse:"settings.capture.dvb.devInUse",noDevSelected:"settings.capture.dvb.noDevSelected"},this.currentDevice={FrontendName:"Unknown",InputNames:[""]},this.selectedDiseqcType={description:"",type:"",inactive:!0},this.saveObserver={next:r=>{r.bool?(console.log("saveObserver
success",r),this.work.successCount++):!this.card.CardId&&r.int?(console.log("saveObserver
success",r),this.work.successCount++,this.card.CardId||(this.card.CardId=r.int,this.cardList.CaptureCardList.CaptureCards.push(this.card),this.captureCardService.UpdateCaptureCard(this.card.CardId,"inputname",this.card.InputName).subscribe(this
.saveObserver))):(console.log("saveObserver
error",r),this.work.errorCount++,this.currentForm.form.markAsDirty())},error:r=>{console.log("saveObserver
error",r),this.work.errorCount++,this.currentForm.form.markAsDirty()}},s.get(this.messages.devNotExist).subscribe(r=>this.messages.devNotExist=r),s.get(this.messages.unknownName).subscribe(r=>this.messages.unknownName=r),s.get(this.messages.devInUse).subscribe(r=>this.messages.devInUse=r),s.get(this.messages.noDevSelected).subscribe(r=>this.messages.noDevSelected=r)}ngOnInit(){null==this.card.DVBWaitForSeqStart&&(this.card.DVBWaitForSeqStart=!0),null==this.card.DVBOnDemand&&(this.card.DVBOnDemand=!0),null==this.card.DVBEITScan&&(this.card.DVBEITScan=!0),null==this.card.CardId&&(this.card.CardId=0),null==this.card.VideoDevice&&(this.card.VideoDevice=""),null==this.card.DiSEqCId&&(this.card.DiSEqCId=0),this.captureCardService.GetCaptureDeviceList("DVB").subscribe({next:e=>{this.captureDeviceList=e,this.setupDevice()},error:e=>{console.l
og("GetCaptureDeviceList",e),this.work.errorCount++}}),this.setupDiseqc()}ngAfterViewInit(){this.setupService.setCurrentForm(this.currentForm),this.topElement.nativeElement.scrollIntoView({behavior:"smooth",block:"start"})}setupDiseqc(){this.diseqcTree=this.diseqcTreeList.DiseqcTreeList.DiseqcTrees.find(e=>e.DiSEqCId==this.card.DiSEqCId),this.work.diseqcError=!1}newDiseqc(){this.work.displayNewDiseqc=!1,this.work.diseqcError=!1,this.diseqcTree={Type:this.selectedDiseqcType.type,Description:this.selectedDiseqcType.description}}setupRootTrees(){this.diseqcRootTrees=this.diseqcTreeList.DiseqcTreeList.DiseqcTrees.filter(e=>!e.ParentId)}selectDiseqc(){this.work.displayConnectDevice=!1,this.work.diseqcError=!1,this.card.DiSEqCId=this.work.selectedDiseqcTree,this.currentForm.form.markAsDirty(),this.setupDiseqc()}unSelectDiseqc(){this.work.displayDisconnect=!1,this.work.diseqcError=!1,this.card.DiSEqCId=0,this.currentForm.form.markAsDirty(),this.diseqcTree=void
0,this.captureCardService.Del
eteDiseqcConfig(this.card.CardId).subscribe()}canDeleteDiseqc(){this.work.diseqcError=!1,this.cardList.CaptureCardList.CaptureCards.filter(n=>n.DiSEqCId==this.card.DiSEqCId).length>1?this.work.diseqcError=!0:this.work.displayDeleteDiseqc=!0}deleteDiseqc(){this.work.displayDeleteDiseqc=!1,this.work.successCount=0,this.work.errorCount=0,this.diseqcTree&&this.diseqcTree.DiSEqCId&&(this.captureCardService.DeleteDiseqcTree(this.diseqcTree.DiSEqCId).subscribe({next:e=>{e.bool?this.work.successCount++:(this.work.errorCount++,console.log("DeleteDiseqcTree",e)),this.parent.loadDiseqc()},error:e=>{console.log("DeleteDiseqcTree",e),this.work.errorCount++}}),this.card.DiSEqCId=0,this.card.CardId&&(this.cardList.CaptureCardList.CaptureCards.forEach(e=>{(e.CardId==this.card.CardId||e.ParentId==this.card.CardId)&&this.captureCardService.UpdateCaptureCard(e.CardId,"DiSEqCId",String(this.card.DiSEqCId)).subscribe(this.saveObserver)}),this.captureCardService.DeleteDiseqcConfig(this.card.CardId).subsc
ribe())),this.diseqcTree=void
0}setDiseqcObject(e){this.diseqcComponent=e}setupDevice(){if(this.card.VideoDevice||this.captureDeviceList.CaptureDeviceList.CaptureDevices.unshift({VideoDevice:"",FrontendName:this.messages.noDevSelected,InputNames:[""]}),this.card.VideoDevice){let
e=this.captureDeviceList.CaptureDeviceList.CaptureDevices.find(n=>n.VideoDevice==this.card.VideoDevice);e?this.currentDevice=e:(this.currentDevice={VideoDevice:this.card.VideoDevice,FrontendName:this.messages.devNotExist,InputNames:[""]},this.captureDeviceList.CaptureDeviceList.CaptureDevices.push(this.currentDevice))}this.currentDevice&&this.card.InputName&&(this.currentDevice.InputNames.includes(this.card.InputName)||this.currentDevice.InputNames.push(this.card.InputName)),this.work.isReady=!0}updateDevice(){this.card.VideoDevice=this.currentDevice.VideoDevice,this.card.InputName=this.currentDevice.DefaultInputName,this.card.SignalTimeout=this.currentDevice.SignalTimeout,this.card.ChannelTimeout=this.curre
ntDevice.ChannelTimeout,this.checkInUse()}checkInUse(){this.work.warningMessage=this.cardList.CaptureCardList.CaptureCards.find(n=>n.VideoDevice==this.currentDevice.VideoDevice&&n.CardId!=this.card.CardId)?this.messages.devInUse:""}saveForm(){this.work.successCount=0,this.work.errorCount=0,this.work.diseqcError=!1,this.diseqcTree&&this.diseqcComponent?this.diseqcComponent.saveForm(0,{next:e=>{var
n;this.card.DiSEqCId&&e.bool&&this.card.DiSEqCId==(null===(n=this.diseqcTree)||void
0===n?void
0:n.DiSEqCId)?(this.work.successCount++,this.saveCard()):e.int&&this.diseqcTree?(this.card.DiSEqCId=e.int,this.diseqcTree.DiSEqCId=e.int,this.diseqcTreeList.DiseqcTreeList.DiseqcTrees.push(this.diseqcTree),this.saveCard()):(console.log("saveForm",e),this.work.errorCount++,this.currentForm.form.markAsDirty())},error:e=>{console.log("saveForm",e),this.work.errorCount++,this.currentForm.form.markAsDirty()},complete:()=>{}}):this.saveCard()}saveCard(){this.card.CardId?this.cardList.CaptureCardList.Cap
tureCards.forEach(e=>{(e.CardId==this.card.CardId||e.ParentId==this.card.CardId)&&(this.captureCardService.UpdateCaptureCard(e.CardId,"videodevice",this.card.VideoDevice).subscribe(this.saveObserver),this.captureCardService.UpdateCaptureCard(e.CardId,"dvb_wait_for_seqstart",this.card.DVBWaitForSeqStart?"1":"0").subscribe(this.saveObserver),this.captureCardService.UpdateCaptureCard(e.CardId,"dvb_on_demand",this.card.DVBOnDemand?"1":"0").subscribe(this.saveObserver),this.captureCardService.UpdateCaptureCard(e.CardId,"signal_timeout",String(this.card.SignalTimeout)).subscribe(this.saveObserver),this.captureCardService.UpdateCaptureCard(e.CardId,"channel_timeout",String(this.card.ChannelTimeout)).subscribe(this.saveObserver),this.captureCardService.UpdateCaptureCard(e.CardId,"dvb_tuning_delay",String(this.card.DVBTuningDelay)).subscribe(this.saveObserver),this.captureCardService.UpdateCaptureCard(e.CardId,"dvb_eitscan",String(this.card.DVBEITScan?"1":"0")).subscribe(this.saveObserver),t
his.captureCardService.UpdateCaptureCard(e.CardId,"inputname",this.card.InputName).subscribe(this.saveObserver),this.captureCardService.UpdateCaptureCard(e.CardId,"DiSEqCId",String(this.card.DiSEqCId)).subscribe(this.saveObserver))}):this.captureCardService.AddCaptureCard(this.card).subscribe(this.saveObserver)}}return
t.\u0275fac=function(e){return
new(e||t)(D(Gt),D(Me),D(Oe))},t.\u0275cmp=z({type:t,selectors:[["app-dvb"]],viewQuery:function(e,n){if(1&e&&(W($X,5),W(WX,5)),2&e){let
s;V(s=B())&&(n.currentForm=s.first),V(s=B())&&(n.topElement=s.first)}},inputs:{card:"card",cardList:"cardList",diseqcTreeList:"diseqcTreeList",parent:"parent"},decls:9,vars:0,consts:[["name","dvbform",1,"ml-3","mr-3"],["dvbform","ngForm"],["top",""],[1,"m-5"],["pTemplate","title"],["pTemplate","subtitle"],["pTemplate","content"],["pTemplate","footer"],[1,"grid"],[1,"mb-4","w-full"],[1,"form-group","field"],["for","VideoDevice",1,"label","block"],["optionLabel","VideoDevice","name","VideoDevice",3,"options
","ngModel","editable","maxlength","style","ngModelChange","onChange",4,"ngIf"],[4,"ngIf"],[1,"block"],["for","FrontendName",1,"label","block"],["pInputText","","id","FrontendName","name","FrontendName","disabled","true","class","mb-2
form-control
w-full",3,"ngModel","ngModelChange",4,"ngIf"],["for","InputName",1,"label","block"],["name","InputName",3,"options","ngModel","ngModelChange",4,"ngIf"],["for","SignalTimeout",1,"label","block"],["name","SignalTimeout","id","SignalTimeout",3,"ngModel","showButtons","min","max","step","ngModelChange"],["for","ChannelTimeout",1,"label","block"],["name","ChannelTimeout","id","ChannelTimeout",3,"ngModel","showButtons","min","max","step","ngModelChange"],["inputId","DVBWaitForSeqStart","name","DVBWaitForSeqStart",1,"label","mb-2","w-full",3,"ngModel","binary","label","ngModelChange"],["DVBWaitForSeqStart","ngModel"],["inputId","DVBOnDemand","name","DVBOnDemand",1,"label","mb-2","w-full",3,"ngModel","binary","label","ngModelChange"],["DVBOnDemand
","ngModel"],["inputId","DVBEITScan","name","DVBEITScan",1,"label","mb-2","w-full",3,"ngModel","binary","label","ngModelChange"],["DVBEITScan","ngModel"],["for","DVBTuningDelay",1,"label","block"],["name","DVBTuningDelay","id","DVBTuningDelay",3,"ngModel","showButtons","min","max","step","ngModelChange"],[1,"mb-4","w-full",3,"legend","toggleable","collapsed"],["icon","pi
pi-plus-circle","styleClass","p-button-plain",3,"label","onClick",4,"ngIf"],[3,"header","visible","modal","draggable","resizable","visibleChange"],["for","disenqcTypes",1,"label","block"],["optionLabel","description","name","disenqcTypes","optionDisabled","inactive",3,"options","ngModel","ngModelChange","onDblClick"],["icon","pi
pi-plus-circle","styleClass","p-button-plain",3,"label","pTooltip","onClick",4,"ngIf"],["for","diseqcRootTrees",1,"label","block"],["optionLabel","Description","name","diseqcRootTrees","optionValue","DiSEqCId",3,"options","ngModel","ngModelChange","onDblClick"],["styleClass","p-button-warnin
g","label","Delete Satellite Devices","icon","pi
pi-trash",3,"onClick",4,"ngIf"],["icon","pi
pi-minus-circle","styleClass","p-button-warning",3,"label","onClick",4,"ngIf"],["severity","error",3,"text",4,"ngIf"],[3,"diseqcTree","diseqcTreeList","dvbComponent","baseEvent",4,"ngIf"],["optionLabel","VideoDevice","name","VideoDevice",3,"options","ngModel","editable","maxlength","ngModelChange","onChange"],["VideoDevice","ngModel"],[1,"p-error","block"],["pInputText","","id","FrontendName","name","FrontendName","disabled","true",1,"mb-2","form-control","w-full",3,"ngModel","ngModelChange"],["FrontendName","ngModel"],["name","InputName",3,"options","ngModel","ngModelChange"],["InputName","ngModel"],["icon","pi
pi-plus-circle","styleClass","p-button-plain",3,"label","onClick"],["icon","pi
pi-times-circle","styleClass","p-button-plain",3,"label","onClick"],["icon","pi
pi-check-circle","styleClass","p-button-plain",3,"label","disabled","onClick"],["icon","pi
pi-plus-circle","styleClass","p-bu
tton-plain",3,"label","pTooltip","onClick"],["styleClass","p-button-warning","label","Delete
Satellite Devices","icon","pi
pi-trash",3,"onClick"],["icon","pi
pi-times-circle","styleClass","p-button-plain",3,"label","click"],["icon","pi
pi-check-circle","styleClass","p-button-plain",3,"label","click"],["icon","pi
pi-minus-circle","styleClass","p-button-warning",3,"label","onClick"],["severity","error",3,"text"],[3,"diseqcTree","diseqcTreeList","dvbComponent","baseEvent"],[1,"grid","nogutter"],[1,"col-12"],["severity","success",3,"text",4,"ngIf"],["icon","pi
pi-save","iconPos","left",1,"col","pr-1",3,"label","disabled","onClick"],["severity","success",3,"text"]],template:function(e,n){1&e&&(l(0,"form",0,1),k(2,"span",null,2),l(4,"p-card",3),_(5,KX,2,3,"ng-template",4),_(6,QX,0,0,"ng-template",5),_(7,mee,117,155,"ng-template",6),_(8,_ee,6,6,"ng-template",7),c()())},styles:[""]}),t})();const
bee=["lnbform"];function
vee(t,i){1&t&&(g(0),m(1,"translate")),2&t&&T("
",f(1,1,"settings.captur
e.diseqc.lnb.title")," ")}function Cee(t,i){}const
TS=function(){return{minWidth:"80%"}};function yee(t,i){if(1&t){const
e=I();l(0,"div",6)(1,"div",7)(2,"div",8)(3,"label",9),g(4),m(5,"translate"),c(),l(6,"input",10,11),C("ngModelChange",function(s){return
v(e),d().diseqcTree.Description=s}),c(),l(8,"small",12),g(9),m(10,"translate"),c()(),l(11,"div",8)(12,"label",13),g(13),m(14,"translate"),c(),l(15,"p-dropdown",14,15),C("ngModelChange",function(s){return
v(e),d().currentPreset=s})("onChange",function(){return
v(e),d().updatePreset()}),c(),l(17,"small",12),g(18),m(19,"translate"),c()(),l(20,"div",8)(21,"label",16),g(22),m(23,"translate"),c(),l(24,"p-dropdown",17,18),C("ngModelChange",function(s){return
v(e),d().currentSubType=s})("onChange",function(){return
v(e),d().updateSubType()}),c(),l(26,"small",12),g(27),m(28,"translate"),c()(),l(29,"div",8)(30,"label",19),g(31),m(32,"translate"),c(),l(33,"p-inputNumber",20),C("ngModelChange",function(s){return
v(e),d().work.LnbLofSwitch=s})
,c(),l(34,"small",12),g(35),m(36,"translate"),c()(),l(37,"div",8)(38,"label",21),g(39),m(40,"translate"),c(),l(41,"p-inputNumber",22),C("ngModelChange",function(s){return
v(e),d().work.LnbLofLo=s}),c(),l(42,"small",12),g(43),m(44,"translate"),c()(),l(45,"div",8)(46,"label",23),g(47),m(48,"translate"),c(),l(49,"p-inputNumber",24),C("ngModelChange",function(s){return
v(e),d().work.LnbLofHi=s}),c(),l(50,"small",12),g(51),m(52,"translate"),c()(),l(53,"div",8)(54,"p-checkbox",25,26),C("ngModelChange",function(s){return
v(e),d().diseqcTree.LnbPolInv=s}),m(56,"translate"),c(),l(57,"small",12),g(58),m(59,"translate"),c()()()()}if(2&t){const
e=d();a(4),S(f(5,41,"settings.capture.diseqc.description_label")),a(2),p("ngModel",e.diseqcTree.Description),a(3),T("
",f(10,43,"settings.capture.diseqc.description_desc"),"
"),a(4),S(f(14,45,"settings.capture.diseqc.lnb.preset_label")),a(2),q(A(69,TS)),p("options",e.lnbPresetList)("ngModel",e.currentPreset)("editable",!1)("maxlength",0)("scrollHeight","
400px"),a(3),T("
",f(19,47,"settings.capture.diseqc.lnb.preset_desc"),"
"),a(4),S(f(23,49,"settings.capture.diseqc.lnb.type_label")),a(2),q(A(70,TS)),p("options",e.lnbSubTypes)("ngModel",e.currentSubType)("editable",!1)("maxlength",0)("disabled","custom"!=e.currentPreset.SubType),a(3),T("
",f(28,51,"settings.capture.diseqc.lnb.type_desc"),"
"),a(4),S(f(32,53,"settings.capture.diseqc.lnb.lofswitch_label")),a(2),p("ngModel",e.work.LnbLofSwitch)("useGrouping",!1)("disabled","custom"!=e.currentPreset.SubType||"voltage_tone"!=e.diseqcTree.SubType),a(2),T("
",f(36,55,"settings.capture.diseqc.lnb.lofswitch_desc"),"
"),a(4),S(f(40,57,"settings.capture.diseqc.lnb.loflow_label")),a(2),p("ngModel",e.work.LnbLofLo)("useGrouping",!1)("disabled","custom"!=e.currentPreset.SubType),a(2),T("
",f(44,59,"settings.capture.diseqc.lnb.loflow_desc"),"
"),a(4),S(f(48,61,"settings.capture.diseqc.lnb.lofhigh_label")),a(2),p("ngModel",e.work.LnbLofHi)("useGrouping",!1)("disabled","custom"!=e.currentPreset.Sub
Type||!("voltage_tone"==e.diseqcTree.SubType||"bandstacked"==e.diseqcTree.SubType)),a(2),T("
",f(52,63,"settings.capture.diseqc.lnb.lofhigh_desc"),"
"),a(3),x("label",f(56,65,"settings.capture.diseqc.lnb.reversed_label")),p("ngModel",e.diseqcTree.LnbPolInv)("binary",!0)("disabled","custom"!=e.currentPreset.SubType),a(4),T("
",f(59,67,"settings.capture.diseqc.lnb.reversed_desc")," ")}}let
kd=(()=>{class
t{constructor(e,n,s){this.captureCardService=e,this.setupService=n,this.translate=s,this.baseEvent=new
H,this.work={LnbLofSwitch:0,LnbLofLo:0,LnbLofHi:0},this.lnbSubTypes=[{Name:"settings.capture.diseqc.subtype_legacy",SubType:"fixed"},{Name:"settings.capture.diseqc.subtype_standard",SubType:"voltage"},{Name:"settings.capture.diseqc.subtype_universal",SubType:"voltage_tone"},{Name:"settings.capture.diseqc.subtype_backstacked",SubType:"bandstacked"}],this.lnbPresetList=[{Name:"settings.capture.diseqc.lnbpreset_universal",SubType:"voltage_tone",LnbLofSwitch:11700,LnbLofLo:9750,LnbLofHi:
10600,LnbPolInv:!1},{Name:"settings.capture.diseqc.lnbpreset_single",SubType:"voltage",LnbLofSwitch:0,LnbLofLo:9750,LnbLofHi:0,LnbPolInv:!1},{Name:"settings.capture.diseqc.lnbpreset_circular",SubType:"voltage",LnbLofSwitch:0,LnbLofLo:11250,LnbLofHi:0,LnbPolInv:!1},{Name:"settings.capture.diseqc.lnbpreset_Linear",SubType:"voltage",LnbLofSwitch:0,LnbLofLo:10750,LnbLofHi:0,LnbPolInv:!1},{Name:"settings.capture.diseqc.lnbpreset_cband",SubType:"voltage",LnbLofSwitch:0,LnbLofLo:5150,LnbLofHi:0,LnbPolInv:!1},{Name:"settings.capture.diseqc.lnbpreset_dishpro",SubType:"bandstacked",LnbLofSwitch:0,LnbLofLo:11250,LnbLofHi:14350,LnbPolInv:!1},{Name:"settings.capture.diseqc.lnbpreset_custom",SubType:"custom",LnbLofSwitch:0,LnbLofLo:0,LnbLofHi:0,LnbPolInv:!1}],this.setupDone=!1,this.lnbSubTypes.forEach(r=>s.get(r.Name).subscribe(o=>r.Name=o)),this.lnbPresetList.forEach(r=>s.get(r.Name).subscribe(o=>r.Name=o))}ngOnInit(){if(this.diseqcTree.DiSEqCId){let
e;this.work.LnbLofSwitch=this.diseqcTree.LnbL
ofSwitch/1e3,this.work.LnbLofLo=this.diseqcTree.LnbLofLo/1e3,this.work.LnbLofHi=this.diseqcTree.LnbLofHi/1e3,e=this.lnbPresetList.find(n=>n.SubType==this.diseqcTree.SubType&&n.LnbLofSwitch==this.work.LnbLofSwitch&&n.LnbLofLo==this.work.LnbLofLo&&n.LnbLofHi==this.work.LnbLofHi&&n.LnbPolInv==this.diseqcTree.LnbPolInv),this.currentPreset=null==e?this.lnbPresetList[this.lnbPresetList.length-1]:e}else
this.currentPreset=this.lnbPresetList[0],this.updatePreset()}ngAfterViewInit(){this.baseEvent.emit(this),this.currentForm.valueChanges.subscribe(n=>{this.setupDone&&this.currentForm.dirty&&this.dvbComponent.currentForm.form.markAsDirty()}),new
Je(n=>{setTimeout(()=>{n.next(1),n.complete()},100)}).subscribe(n=>{this.setupDone=!0,this.diseqcTree.DiSEqCId?this.currentForm.form.markAsPristine():(this.currentForm.form.markAsDirty(),this.dvbComponent.currentForm.form.markAsDirty())})}updatePreset(){if("custom"!=this.currentPreset.SubType){let
e=this.lnbSubTypes.find(n=>n.SubType==this.currentPres
et.SubType);e&&(this.currentSubType=e,this.updateSubType()),this.work.LnbLofSwitch=this.currentPreset.LnbLofSwitch,this.work.LnbLofLo=this.currentPreset.LnbLofLo,this.work.LnbLofHi=this.currentPreset.LnbLofHi,this.diseqcTree.LnbPolInv=this.currentPreset.LnbPolInv}}updateSubType(){this.diseqcTree.SubType=this.currentSubType.SubType}saveForm(e,n){this.diseqcTree.ParentId=e,this.diseqcTree.LnbLofSwitch=1e3*this.work.LnbLofSwitch,this.diseqcTree.LnbLofLo=1e3*this.work.LnbLofLo,this.diseqcTree.LnbLofHi=1e3*this.work.LnbLofHi,this.diseqcTree.DiSEqCId?this.captureCardService.UpdateDiseqcTree(this.diseqcTree).subscribe(n):this.captureCardService.AddDiseqcTree(this.diseqcTree).subscribe({next:s=>{s.int&&s.int>0?(this.diseqcTree.DiSEqCId=s.int,n.next&&n.next(s)):(console.log("UpdateDiseqcTree",s),n.error(s))},error:s=>{console.log("UpdateDiseqcTree",s),n.error(s)}})}}return
t.\u0275fac=function(e){return
new(e||t)(D(Gt),D(Me),D(Oe))},t.\u0275cmp=z({type:t,selectors:[["app-lnb"]],viewQuery:fun
ction(e,n){if(1&e&&W(bee,5),2&e){let
s;V(s=B())&&(n.currentForm=s.first)}},inputs:{diseqcTree:"diseqcTree",diseqcTreeList:"diseqcTreeList",dvbComponent:"dvbComponent"},outputs:{baseEvent:"baseEvent"},decls:6,vars:0,consts:[["name","lnbform",1,"ml-3","mr-3"],["lnbform","ngForm"],[1,"m-5"],["pTemplate","title"],["pTemplate","subtitle"],["pTemplate","content"],[1,"grid"],[1,"mb-4","w-full"],[1,"form-group","field"],["for","Description",1,"label","block"],["pInputText","","id","ip","name","Description",1,"mb-2","form-control","w-full",3,"ngModel","ngModelChange"],["Description","ngModel"],[1,"block"],["for","LnbPreset",1,"label","block"],["optionLabel","Name","name","LnbPreset",3,"options","ngModel","editable","maxlength","scrollHeight","ngModelChange","onChange"],["LnbPreset","ngModel"],["for","SubType",1,"label","block"],["optionLabel","Name","name","SubType",3,"options","ngModel","editable","maxlength","disabled","ngModelChange","onChange"],["SubType","ngModel"],["for","LnbLofSwitch"
,1,"label","block"],["name","LnbLofSwitch","id","LnbLofSwitch","mode","decimal","inputId","withoutgrouping",3,"ngModel","useGrouping","disabled","ngModelChange"],["for","LnbLofLo",1,"label","block"],["name","LnbLofLo","id","LnbLofLo","mode","decimal","inputId","withoutgrouping",3,"ngModel","useGrouping","disabled","ngModelChange"],["for","LnbLofHi",1,"label","block"],["name","LnbLofHi","id","LnbLofHi","mode","decimal","inputId","withoutgrouping",3,"ngModel","useGrouping","disabled","ngModelChange"],["inputId","LnbPolInv","name","LnbPolInv",1,"label","mb-2","w-full",3,"ngModel","binary","label","disabled","ngModelChange"],["LnbPolInv","ngModel"]],template:function(e,n){1&e&&(l(0,"form",0,1)(2,"p-card",2),_(3,vee,2,3,"ng-template",3),_(4,Cee,0,0,"ng-template",4),_(5,yee,60,71,"ng-template",5),c()())},directives:[ze,Ue,He,Ne,ne,Ye,Te,_e,Ot,_n,pt,sn],pipes:[ce],styles:[""]}),t})();const
wee=["rotorform"];function
Tee(t,i){1&t&&(g(0),m(1,"translate")),2&t&&T("
",f(1,1,"settings.capture.d
iseqc.rotor.title")," ")}function See(t,i){}function
xee(t,i){1&t&&(l(0,"tr")(1,"th"),g(2,"Position
#"),c(),l(3,"th"),g(4,"Angle (Degrees)"),c()())}function
Dee(t,i){if(1&t){const
e=I();l(0,"p-inputNumber",43),C("ngModelChange",function(s){return
v(e),d().$implicit.Angle=s}),c()}2&t&&p("ngModel",d().$implicit.Angle)("min",-180)("max",180)("maxFractionDigits",5)}function
Mee(t,i){if(1&t&&(l(0,"div"),g(1),c()),2&t){const
e=d(2).$implicit;a(1),T("",e.Angle," (W)")}}function
kee(t,i){if(1&t&&(l(0,"div"),g(1),c()),2&t){const
e=d(2).$implicit;a(1),T(" ",e.Angle," (E)")}}function
Iee(t,i){if(1&t&&(_(0,Mee,2,1,"div",44),_(1,kee,2,1,"div",44)),2&t){const
e=d().$implicit;p("ngIf",e.Angle<0),a(1),p("ngIf",null!=e.Angle&&e.Angle>=0)}}function
Eee(t,i){if(1&t&&(l(0,"tr")(1,"td"),g(2),c(),l(3,"td",40)(4,"p-cellEditor"),_(5,Dee,1,4,"ng-template",41),_(6,Iee,2,2,"ng-template",42),c()()()),2&t){const
e=i.$implicit;a(2),T(" ",e.Num," ")}}const
SS=function(){return{width:"25rem"}};function Ree(t,i){if
(1&t&&(l(0,"div",8)(1,"label",36),g(2),m(3,"translate"),c(),l(4,"div")(5,"p-table",37),_(6,xee,5,0,"ng-template",38),_(7,Eee,7,1,"ng-template",39),c()(),l(8,"small",12),g(9),m(10,"translate"),c()()),2&t){const
e=d(2);a(2),S(f(3,6,"settings.capture.diseqc.rotor.positions_label")),a(2),q(A(10,SS)),a(1),p("value",e.rotorPositions)("scrollable",!0),a(4),T("
",f(10,8,"settings.capture.diseqc.rotor.positions_desc"),"
")}}function Lee(t,i){if(1&t){const
e=I();l(0,"p-button",45),C("onClick",function(){return
v(e),d(2).work.displayNewDiseqc=!0}),m(1,"translate"),c()}2&t&&x("label",f(1,1,"settings.capture.dvb.newsatellite_button"))}function
Oee(t,i){if(1&t){const
e=I();l(0,"p-button",46),C("onClick",function(){return
v(e),d(2).work.displayNewDiseqc=!1}),m(1,"translate"),c(),l(2,"p-button",47),C("onClick",function(){return
v(e),d(2).newDiseqc()}),m(3,"translate"),c()}if(2&t){const
e=d(2);x("label",f(1,3,"common.cancel")),a(2),x("label",f(3,5,"common.ok")),p("disabled",e.selectedDiseqcType.inac
tive)}}function Aee(t,i){if(1&t){const
e=I();l(0,"p-button",48),C("onClick",function(){return
v(e),d(2).work.displayDeleteDiseqc=!0}),c()}2&t&&p("disabled",!d(2).diseqcSubTree)}function
Pee(t,i){if(1&t){const
e=I();l(0,"p-button",49),C("click",function(){return
v(e),d(2).work.displayDeleteDiseqc=!1}),m(1,"translate"),c(),l(2,"p-button",50),C("click",function(){return
v(e),d(2).deleteDiseqc()}),m(3,"translate"),c()}2&t&&(x("label",f(1,2,"common.no")),a(2),x("label",f(3,4,"common.yes")))}function
Fee(t,i){if(1&t){const
e=I();l(0,"app-lnb",51),C("baseEvent",function(s){return
v(e),d(2).setDiseqcObject(s)}),c()}if(2&t){const
e=d(2);p("diseqcTree",e.diseqcSubTree)("diseqcTreeList",e.diseqcTreeList)("dvbComponent",e.dvbComponent)}}function
Nee(t,i){if(1&t){const
e=I();l(0,"app-rotor",51),C("baseEvent",function(s){return
v(e),d(2).setDiseqcObject(s)}),c()}if(2&t){const
e=d(2);p("diseqcTree",e.diseqcSubTree)("diseqcTreeList",e.diseqcTreeList)("dvbComponent",e.dvbComponent)}}function
Vee(t,i
){if(1&t){const
e=I();l(0,"app-switch",51),C("baseEvent",function(s){return
v(e),d(2).setDiseqcObject(s)}),c()}if(2&t){const
e=d(2);p("diseqcTree",e.diseqcSubTree)("diseqcTreeList",e.diseqcTreeList)("dvbComponent",e.dvbComponent)}}function
Bee(t,i){if(1&t){const
e=I();l(0,"app-unicable",51),C("baseEvent",function(s){return
v(e),d(2).setDiseqcObject(s)}),c()}if(2&t){const
e=d(2);p("diseqcTree",e.diseqcSubTree)("diseqcTreeList",e.diseqcTreeList)("dvbComponent",e.dvbComponent)}}const
Hee=function(){return{minWidth:"80%"}},xS=function(){return{width:"50vw"}};function
qee(t,i){if(1&t){const
e=I();l(0,"div",6)(1,"div",7)(2,"div",8)(3,"label",9),g(4),m(5,"translate"),c(),l(6,"input",10,11),C("ngModelChange",function(s){return
v(e),d().diseqcTree.Description=s}),c(),l(8,"small",12),g(9),m(10,"translate"),c()(),l(11,"div",8)(12,"label",13),g(13),m(14,"translate"),c(),l(15,"p-inputNumber",14),C("ngModelChange",function(s){return
v(e),d().diseqcTree.CmdRepeat=s}),c(),l(16,"small",12),k(17,"div
",15),m(18,"translate"),c()(),l(19,"div",8)(20,"label",16),g(21),m(22,"translate"),c(),l(23,"p-dropdown",17,18),C("ngModelChange",function(s){return
v(e),d().currentSubType=s})("onChange",function(){return
v(e),d().updateSubType()}),c(),l(25,"small",12),g(26),m(27,"translate"),c()(),_(28,Ree,11,11,"div",19),l(29,"div",8)(30,"label",20),g(31),m(32,"translate"),c(),l(33,"p-inputNumber",21),C("ngModelChange",function(s){return
v(e),d().diseqcTree.RotorLoSpeed=s}),c(),l(34,"small",12),g(35),m(36,"translate"),c()(),l(37,"div",8)(38,"label",22),g(39),m(40,"translate"),c(),l(41,"p-inputNumber",23),C("ngModelChange",function(s){return
v(e),d().diseqcTree.RotorHiSpeed=s}),c(),l(42,"small",12),g(43),m(44,"translate"),c()(),l(45,"div",8)(46,"label",24),g(47),m(48,"translate"),c(),l(49,"p-inputNumber",25),C("ngModelChange",function(s){return
v(e),d().fields.Latitude=s}),c(),l(50,"small",12),g(51),m(52,"translate"),c()(),l(53,"div",8)(54,"label",26),g(55),m(56,"translate"),c(),l(57,"p-inputNumbe
r",27),C("ngModelChange",function(s){return
v(e),d().fields.Longitude=s}),c(),l(58,"small",12),g(59),m(60,"translate"),c()(),l(61,"p-fieldset",28),m(62,"translate"),_(63,Lee,2,3,"p-button",29),l(64,"p-dialog",30),C("visibleChange",function(s){return
v(e),d().work.displayNewDiseqc=s}),m(65,"translate"),l(66,"label",31),g(67),m(68,"translate"),c(),l(69,"p-listbox",32),C("ngModelChange",function(s){return
v(e),d().selectedDiseqcType=s})("onDblClick",function(){return
v(e),d().newDiseqc()}),c(),_(70,Oee,4,7,"ng-template",33),c(),_(71,Aee,1,1,"p-button",34),l(72,"p-dialog",30),C("visibleChange",function(s){return
v(e),d().work.displayDeleteDiseqc=s}),m(73,"translate"),l(74,"h2"),g(75),m(76,"translate"),c(),l(77,"p"),g(78),m(79,"translate"),c(),_(80,Pee,4,6,"ng-template",33),c(),_(81,Fee,1,3,"app-lnb",35),_(82,Nee,1,3,"app-rotor",35),_(83,Vee,1,3,"app-switch",35),_(84,Bee,1,3,"app-unicable",35),c()()()}if(2&t){const
e=d();a(4),S(f(5,65,"settings.capture.diseqc.description_label")),a(2),p(
"ngModel",e.diseqcTree.Description),a(3),T("
",f(10,67,"settings.capture.diseqc.description_desc"),"
"),a(4),S(f(14,69,"settings.capture.diseqc.cmdrepeat_label")),a(2),p("ngModel",e.diseqcTree.CmdRepeat)("showButtons",!0)("min",0)("max",15)("step",1),a(2),p("innerHTML",f(18,71,"settings.capture.diseqc.cmdrepeat_desc"),Bt),a(2),q(A(105,SS)),a(2),S(f(22,73,"settings.capture.diseqc.rotor.type_label")),a(2),q(A(106,Hee)),p("options",e.rotorSubTypes)("ngModel",e.currentSubType)("editable",!1)("maxlength",0),a(3),T("
",f(27,75,"settings.capture.diseqc.rotor.type_desc"),"
"),a(2),p("ngIf","diseqc_1_2"==e.diseqcTree.SubType),a(3),S(f(32,77,"settings.capture.diseqc.rotor.lospeed_label")),a(2),p("ngModel",e.diseqcTree.RotorLoSpeed)("maxFractionDigits",5),a(2),T("
",f(36,79,"settings.capture.diseqc.rotor.lospeed_desc"),"
"),a(4),S(f(40,81,"settings.capture.diseqc.rotor.hispeed_label")),a(2),p("ngModel",e.diseqcTree.RotorHiSpeed)("maxFractionDigits",5),a(2),T("
",f(44,83,"settings.capture.diseq
c.rotor.hispeed_desc"),"
"),a(4),S(f(48,85,"settings.capture.diseqc.rotor.latitude_label")),a(2),p("ngModel",e.fields.Latitude)("maxFractionDigits",5),a(2),T("
",f(52,87,"settings.capture.diseqc.rotor.latitude_desc"),"
"),a(4),S(f(56,89,"settings.capture.diseqc.rotor.longitude_label")),a(2),p("ngModel",e.fields.Longitude)("maxFractionDigits",5),a(2),T("
",f(60,91,"settings.capture.diseqc.rotor.longitude_desc"),"
"),a(2),x("legend",f(62,93,"settings.capture.dvb.satellite_heading")),p("toggleable",!0)("collapsed",!0),a(2),p("ngIf",!e.diseqcSubTree),a(1),q(A(107,xS)),x("header",f(65,95,"settings.capture.dvb.newsatellite_heading")),p("visible",e.work.displayNewDiseqc)("modal",!0)("draggable",!1)("resizable",!1),a(3),S(f(68,97,"settings.capture.dvb.newsatellite_devtype")),a(2),p("options",e.captureCardService.diseqcTypes)("ngModel",e.selectedDiseqcType),a(2),p("ngIf",e.diseqcSubTree),a(1),q(A(108,xS)),x("header",f(73,99,"settings.capture.dvb.satellite_delete_header")),p("visible",e.work.
displayDeleteDiseqc)("modal",!0)("draggable",!1)("resizable",!1),a(3),S(f(76,101,"settings.common.ru_sure")),a(3),S(f(79,103,"settings.capture.dvb.satellite_delete_desc")),a(3),p("ngIf",e.diseqcSubTree&&"lnb"==e.diseqcSubTree.Type),a(1),p("ngIf",e.diseqcSubTree&&"rotor"==e.diseqcSubTree.Type),a(1),p("ngIf",e.diseqcSubTree&&"switch"==e.diseqcSubTree.Type),a(1),p("ngIf",e.diseqcSubTree&&"scr"==e.diseqcSubTree.Type)}}let
Al=(()=>{class
t{constructor(e,n,s,r){this.captureCardService=e,this.setupService=n,this.translate=s,this.mythService=r,this.baseEvent=new
H,this.rotorSubTypes=[{Name:"settings.capture.diseqc.subtype_diseqc_1_2",SubType:"diseqc_1_2"},{Name:"settings.capture.diseqc.subtype_diseqc_1_3",SubType:"diseqc_1_3"}],this.selectedDiseqcType={description:"",type:"",inactive:!0},this.rotorPositions=[],this.fields={Latitude:null,Longitude:null},this.work={displayNewDiseqc:!1,displayDeleteDiseqc:!1},this.setupDone=!1,this.rotorSubTypes.forEach(o=>s.get(o.Name).subscribe(u=>o.Name=u))
}ngOnInit(){this.mythService.GetSetting({HostName:"_GLOBAL_",Key:"latitude"}).subscribe({next:e=>{e.String.length>0&&(this.fields.Latitude=Number(e.String))},error:()=>this.dvbComponent.work.errorCount++}),this.mythService.GetSetting({HostName:"_GLOBAL_",Key:"longitude"}).subscribe({next:e=>{e.String.length>0&&(this.fields.Longitude=Number(e.String))},error:()=>this.dvbComponent.work.errorCount++});for(let
e=0;e<48;e++)this.rotorPositions.push({Num:e+1,Angle:null});if(this.diseqcTree.DiSEqCId?this.diseqcTree.RotorPositions.split(":").forEach(n=>{let
s=n.split("=");if(2==s.length&&s[0].length>0&&s[1].length>0){let
r=Number.parseInt(s[1])-1,o=Number.parseFloat(s[0]);r>-1&&r<48&&(this.rotorPositions[r].Angle=o)}}):(this.diseqcTree.RotorHiSpeed=2.5,this.diseqcTree.RotorLoSpeed=1.9,this.diseqcTree.SubType="diseqc_1_3",this.diseqcTree.CmdRepeat=1),this.diseqcTree.SubType){let
e=this.rotorSubTypes.find(n=>n.SubType==this.diseqcTree.SubType);e&&(this.currentSubType=e)}this.diseqcSubTree=thi
s.diseqcTreeList.DiseqcTreeList.DiseqcTrees.find(e=>e.ParentId==this.diseqcTree.DiSEqCId)}ngAfterViewInit(){this.baseEvent.emit(this),this.currentForm.valueChanges.subscribe(n=>{this.setupDone&&this.currentForm.dirty&&this.dvbComponent.currentForm.form.markAsDirty()}),new
Je(n=>{setTimeout(()=>{n.next(1),n.complete()},100)}).subscribe(n=>{this.setupDone=!0,this.diseqcTree.DiSEqCId?this.currentForm.form.markAsPristine():(this.currentForm.form.markAsDirty(),this.dvbComponent.currentForm.form.markAsDirty())})}updateSubType(){this.diseqcTree.SubType=this.currentSubType.SubType}newDiseqc(){this.work.displayNewDiseqc=!1,this.diseqcSubTree={Type:this.selectedDiseqcType.type,Description:this.selectedDiseqcType.description}}setDiseqcObject(e){this.diseqcSubComponent=e}deleteDiseqc(){this.work.displayDeleteDiseqc=!1,this.dvbComponent.work.errorCount=0,this.diseqcSubTree&&this.diseqcSubTree.DiSEqCId&&this.captureCardService.DeleteDiseqcTree(this.diseqcSubTree.DiSEqCId).subscribe({next:e=>{e.bo
ol||(console.log("DeleteDiseqcTree",e),this.dvbComponent.work.errorCount++)},error:e=>{console.log("DeleteDiseqcTree",e),this.dvbComponent.work.errorCount++}}),0==this.dvbComponent.work.errorCount&&(this.diseqcSubTree=void
0)}saveForm(e,n){this.diseqcTree.ParentId=e,null!=this.fields.Latitude&&this.mythService.PutSetting({HostName:"_GLOBAL_",Key:"latitude",Value:String(this.fields.Latitude)}).subscribe(this.dvbComponent.saveObserver),null!=this.fields.Longitude&&this.mythService.PutSetting({HostName:"_GLOBAL_",Key:"longitude",Value:String(this.fields.Longitude)}).subscribe(this.dvbComponent.saveObserver),this.diseqcTree.RotorPositions="",this.rotorPositions.forEach(s=>{null!=s.Angle&&(this.diseqcTree.RotorPositions.length>0&&(this.diseqcTree.RotorPositions=this.diseqcTree.RotorPositions+":"),this.diseqcTree.RotorPositions=this.diseqcTree.RotorPositions+s.Angle+"="+s.Num)}),this.diseqcTree.DiSEqCId?(this.captureCardService.UpdateDiseqcTree(this.diseqcTree).subscribe(n),this.diseqcSub
Component&&this.diseqcSubComponent.saveForm(this.diseqcTree.DiSEqCId,{error:s=>{n.error(s)}})):this.captureCardService.AddDiseqcTree(this.diseqcTree).subscribe({next:s=>{s.int&&s.int>0?(this.diseqcTree.DiSEqCId=s.int,n.next(s),this.diseqcSubComponent&&this.diseqcSubComponent.saveForm(this.diseqcTree.DiSEqCId,{next:r=>{},error:r=>{n.error(r)}})):(console.log("UpdateDiseqcTree",s),n.error(s))},error:s=>{console.log("UpdateDiseqcTree",s),n.error(s)}})}}return
t.\u0275fac=function(e){return
new(e||t)(D(Gt),D(Me),D(Oe),D(qt))},t.\u0275cmp=z({type:t,selectors:[["app-rotor"]],viewQuery:function(e,n){if(1&e&&W(wee,5),2&e){let
s;V(s=B())&&(n.currentForm=s.first)}},inputs:{diseqcTree:"diseqcTree",diseqcTreeList:"diseqcTreeList",dvbComponent:"dvbComponent"},outputs:{baseEvent:"baseEvent"},decls:6,vars:0,consts:[["name","rotorform",1,"ml-3","mr-3"],["rotorform","ngForm"],[1,"m-5"],["pTemplate","title"],["pTemplate","subtitle"],["pTemplate","content"],[1,"grid"],[1,"mb-4","w-full"],[1,"form-grou
p","field"],["for","Description",1,"label","block"],["pInputText","","id","ip","name","Description",1,"mb-2","form-control","w-full",3,"ngModel","ngModelChange"],["Description","ngModel"],[1,"block"],["for","CmdRepeat",1,"label","block"],["name","CmdRepeat","id","CmdRepeat",3,"ngModel","showButtons","min","max","step","ngModelChange"],[3,"innerHTML"],["for","SubType",1,"label","block"],["optionLabel","Name","name","SubType",3,"options","ngModel","editable","maxlength","ngModelChange","onChange"],["SubType","ngModel"],["class","form-group
field",4,"ngIf"],["for","RotorLoSpeed",1,"label","block"],["name","RotorLoSpeed","id","RotorLoSpeed","mode","decimal",3,"ngModel","maxFractionDigits","ngModelChange"],["for","RotorHiSpeed",1,"label","block"],["name","RotorHiSpeed","id","RotorHiSpeed","mode","decimal",3,"ngModel","maxFractionDigits","ngModelChange"],["for","Latitude",1,"label","block"],["name","Latitude","id","Latitude","mode","decimal",3,"ngModel","maxFractionDigits","ngModelChange"
],["for","Longitude",1,"label","block"],["name","Longitude","id","Longitude","mode","decimal",3,"ngModel","maxFractionDigits","ngModelChange"],[1,"mb-4","w-full",3,"legend","toggleable","collapsed"],["icon","pi
pi-plus-circle","styleClass","p-button-plain",3,"label","onClick",4,"ngIf"],[3,"header","visible","modal","draggable","resizable","visibleChange"],["for","disenqcTypes",1,"label","block"],["optionLabel","description","name","disenqcTypes","optionDisabled","inactive",3,"options","ngModel","ngModelChange","onDblClick"],["pTemplate","footer"],["styleClass","p-button-warning","label","Delete
Satellite Devices","icon","pi
pi-trash",3,"disabled","onClick",4,"ngIf"],[3,"diseqcTree","diseqcTreeList","dvbComponent","baseEvent",4,"ngIf"],["for","RotorPositions",1,"label","block"],["dataKey","Num","responsiveLayout","scroll","name","RotorPositions","styleClass","p-datatable-gridlines","scrollHeight","20rem",3,"value","scrollable"],["pTemplate","header"],["pTemplate","body"],["pEditableC
olumn",""],["pTemplate","input"],["pTemplate","output"],["name","Angle",3,"ngModel","min","max","maxFractionDigits","ngModelChange"],[4,"ngIf"],["icon","pi
pi-plus-circle","styleClass","p-button-plain",3,"label","onClick"],["icon","pi
pi-times-circle","styleClass","p-button-plain",3,"label","onClick"],["icon","pi
pi-check-circle","styleClass","p-button-plain",3,"label","disabled","onClick"],["styleClass","p-button-warning","label","Delete
Satellite Devices","icon","pi
pi-trash",3,"disabled","onClick"],["icon","pi
pi-times-circle","styleClass","p-button-plain",3,"label","click"],["icon","pi
pi-check-circle","styleClass","p-button-plain",3,"label","click"],[3,"diseqcTree","diseqcTreeList","dvbComponent","baseEvent"]],template:function(e,n){1&e&&(l(0,"form",0,1)(2,"p-card",2),_(3,Tee,2,3,"ng-template",3),_(4,See,0,0,"ng-template",4),_(5,qee,85,109,"ng-template",5),c()())},styles:[""]}),t})();const
Gee=["unicableform"];function
Uee(t,i){1&t&&(g(0),m(1,"translate")),2&t&&T("
",f(1,1,"set
tings.capture.diseqc.unicable.title")," ")}function zee(t,i){}function
jee(t,i){if(1&t){const
e=I();l(0,"p-button",30),C("onClick",function(){return
v(e),d(2).work.displayNewDiseqc=!0}),m(1,"translate"),c()}2&t&&x("label",f(1,1,"settings.capture.dvb.newsatellite_button"))}function
$ee(t,i){if(1&t){const
e=I();l(0,"p-button",31),C("onClick",function(){return
v(e),d(2).work.displayNewDiseqc=!1}),m(1,"translate"),c(),l(2,"p-button",32),C("onClick",function(){return
v(e),d(2).newDiseqc()}),m(3,"translate"),c()}if(2&t){const
e=d(2);x("label",f(1,3,"common.cancel")),a(2),x("label",f(3,5,"common.ok")),p("disabled",e.selectedDiseqcType.inactive)}}function
Wee(t,i){if(1&t){const
e=I();l(0,"p-button",33),C("onClick",function(){return
v(e),d(2).work.displayDeleteDiseqc=!0}),c()}2&t&&p("disabled",!d(2).diseqcSubTree)}function
Kee(t,i){if(1&t){const
e=I();l(0,"p-button",34),C("click",function(){return
v(e),d(2).work.displayDeleteDiseqc=!1}),m(1,"translate"),c(),l(2,"p-button",35),C("click",funct
ion(){return
v(e),d(2).deleteDiseqc()}),m(3,"translate"),c()}2&t&&(x("label",f(1,2,"common.no")),a(2),x("label",f(3,4,"common.yes")))}function
Qee(t,i){if(1&t){const
e=I();l(0,"app-lnb",36),C("baseEvent",function(s){return
v(e),d(2).setDiseqcObject(s)}),c()}if(2&t){const
e=d(2);p("diseqcTree",e.diseqcSubTree)("diseqcTreeList",e.diseqcTreeList)("dvbComponent",e.dvbComponent)}}function
Jee(t,i){if(1&t){const
e=I();l(0,"app-rotor",36),C("baseEvent",function(s){return
v(e),d(2).setDiseqcObject(s)}),c()}if(2&t){const
e=d(2);p("diseqcTree",e.diseqcSubTree)("diseqcTreeList",e.diseqcTreeList)("dvbComponent",e.dvbComponent)}}function
Yee(t,i){if(1&t){const
e=I();l(0,"app-switch",36),C("baseEvent",function(s){return
v(e),d(2).setDiseqcObject(s)}),c()}if(2&t){const
e=d(2);p("diseqcTree",e.diseqcSubTree)("diseqcTreeList",e.diseqcTreeList)("dvbComponent",e.dvbComponent)}}function
Zee(t,i){if(1&t){const
e=I();l(0,"app-unicable",36),C("baseEvent",function(s){return
v(e),d(2).setDiseqcObject(s)}),c
()}if(2&t){const
e=d(2);p("diseqcTree",e.diseqcSubTree)("diseqcTreeList",e.diseqcTreeList)("dvbComponent",e.dvbComponent)}}const
DS=function(){return{width:"50vw"}};function Xee(t,i){if(1&t){const
e=I();l(0,"div",6)(1,"div",7)(2,"div",8)(3,"label",9),g(4),m(5,"translate"),c(),l(6,"input",10,11),C("ngModelChange",function(s){return
v(e),d().diseqcTree.Description=s}),c(),l(8,"small",12),g(9),m(10,"translate"),c()(),l(11,"div",8)(12,"label",13),g(13),m(14,"translate"),c(),l(15,"p-inputNumber",14),C("ngModelChange",function(s){return
v(e),d().diseqcTree.ScrUserband=s}),c(),l(16,"small",12),k(17,"div",15),m(18,"translate"),c()(),l(19,"div",8)(20,"label",16),g(21),m(22,"translate"),c(),l(23,"p-inputNumber",17),C("ngModelChange",function(s){return
v(e),d().diseqcTree.ScrFrequency=s}),c(),l(24,"small",12),g(25),m(26,"translate"),c()(),l(27,"div",8)(28,"label",18),g(29),m(30,"translate"),c(),l(31,"p-inputNumber",19),C("ngModelChange",function(s){return
v(e),d().diseqcTree.ScrPin=s}),c(),l(3
2,"small",12),g(33),m(34,"translate"),c()(),l(35,"div",8)(36,"label",20),g(37),m(38,"translate"),c(),l(39,"p-inputNumber",21),C("ngModelChange",function(s){return
v(e),d().diseqcTree.CmdRepeat=s}),c(),l(40,"small",12),k(41,"div",15),m(42,"translate"),c()(),l(43,"p-fieldset",22),m(44,"translate"),_(45,jee,2,3,"p-button",23),l(46,"p-dialog",24),C("visibleChange",function(s){return
v(e),d().work.displayNewDiseqc=s}),m(47,"translate"),l(48,"label",25),g(49),m(50,"translate"),c(),l(51,"p-listbox",26),C("ngModelChange",function(s){return
v(e),d().selectedDiseqcType=s})("onDblClick",function(){return
v(e),d().newDiseqc()}),c(),_(52,$ee,4,7,"ng-template",27),c(),_(53,Wee,1,1,"p-button",28),l(54,"p-dialog",24),C("visibleChange",function(s){return
v(e),d().work.displayDeleteDiseqc=s}),m(55,"translate"),l(56,"h2"),g(57),m(58,"translate"),c(),l(59,"p"),g(60),m(61,"translate"),c(),_(62,Kee,4,6,"ng-template",27),c(),_(63,Qee,1,3,"app-lnb",29),_(64,Jee,1,3,"app-rotor",29),_(65,Yee,1,3,"app-switch"
,29),_(66,Zee,1,3,"app-unicable",29),c()()()}if(2&t){const
e=d();a(4),S(f(5,55,"settings.capture.diseqc.description_label")),a(2),p("ngModel",e.diseqcTree.Description),a(3),T("
",f(10,57,"settings.capture.diseqc.description_desc"),"
"),a(4),S(f(14,59,"settings.capture.diseqc.unicable.userband_label")),a(2),p("ngModel",e.diseqcTree.ScrUserband)("showButtons",!0)("min",0)("max",7)("step",1),a(2),p("innerHTML",f(18,61,"settings.capture.diseqc.userband_desc"),Bt),a(4),S(f(22,63,"settings.capture.diseqc.unicable.frequency_label")),a(2),p("ngModel",e.diseqcTree.ScrFrequency)("useGrouping",!1),a(2),T("
",f(26,65,"settings.capture.diseqc.unicable.frequency_desc"),"
"),a(4),S(f(30,67,"settings.capture.diseqc.unicable.pin_label")),a(2),p("ngModel",e.diseqcTree.ScrPin)("useGrouping",!1)("min",-1)("max",255),a(2),T("
",f(34,69,"settings.capture.diseqc.unicable.pin_desc"),"
"),a(4),S(f(38,71,"settings.capture.diseqc.cmdrepeat_label")),a(2),p("ngModel",e.diseqcTree.CmdRepeat)("showButtons",!0)("m
in",0)("max",15)("step",1),a(2),p("innerHTML",f(42,73,"settings.capture.diseqc.cmdrepeat_desc"),Bt),a(2),x("legend",f(44,75,"settings.capture.dvb.satellite_heading")),p("toggleable",!0)("collapsed",!0),a(2),p("ngIf",!e.diseqcSubTree),a(1),q(A(87,DS)),x("header",f(47,77,"settings.capture.dvb.newsatellite_heading")),p("visible",e.work.displayNewDiseqc)("modal",!0)("draggable",!1)("resizable",!1),a(3),S(f(50,79,"settings.capture.dvb.newsatellite_devtype")),a(2),p("options",e.captureCardService.diseqcTypes)("ngModel",e.selectedDiseqcType),a(2),p("ngIf",e.diseqcSubTree),a(1),q(A(88,DS)),x("header",f(55,81,"settings.capture.dvb.satellite_delete_header")),p("visible",e.work.displayDeleteDiseqc)("modal",!0)("draggable",!1)("resizable",!1),a(3),S(f(58,83,"settings.common.ru_sure")),a(3),S(f(61,85,"settings.capture.dvb.satellite_delete_desc")),a(3),p("ngIf",e.diseqcSubTree&&"lnb"==e.diseqcSubTree.Type),a(1),p("ngIf",e.diseqcSubTree&&"rotor"==e.diseqcSubTree.Type),a(1),p("ngIf",e.diseqcSubTree
&&"switch"==e.diseqcSubTree.Type),a(1),p("ngIf",e.diseqcSubTree&&"scr"==e.diseqcSubTree.Type)}}let
Pl=(()=>{class
t{constructor(e){this.captureCardService=e,this.selectedDiseqcType={description:"",type:"",inactive:!0},this.baseEvent=new
H,this.work={displayNewDiseqc:!1,displayDeleteDiseqc:!1},this.setupDone=!1}ngOnInit(){this.diseqcTree.DiSEqCId||(this.diseqcTree.ScrUserband=0,this.diseqcTree.ScrFrequency=1210,this.diseqcTree.ScrPin=-1,this.diseqcTree.CmdRepeat=1),this.diseqcSubTree=this.diseqcTreeList.DiseqcTreeList.DiseqcTrees.find(e=>e.ParentId==this.diseqcTree.DiSEqCId)}ngAfterViewInit(){this.baseEvent.emit(this),this.currentForm.valueChanges.subscribe(n=>{this.setupDone&&this.currentForm.dirty&&this.dvbComponent.currentForm.form.markAsDirty()}),new
Je(n=>{setTimeout(()=>{n.next(1),n.complete()},100)}).subscribe(n=>{this.setupDone=!0,this.diseqcTree.DiSEqCId?this.currentForm.form.markAsPristine():(this.currentForm.form.markAsDirty(),this.dvbComponent.currentForm.form.markAsDirty
())})}newDiseqc(){this.work.displayNewDiseqc=!1,this.diseqcSubTree={Type:this.selectedDiseqcType.type,Description:this.selectedDiseqcType.description}}setDiseqcObject(e){this.diseqcSubComponent=e}deleteDiseqc(){this.work.displayDeleteDiseqc=!1,this.dvbComponent.work.errorCount=0,this.diseqcSubTree&&this.diseqcSubTree.DiSEqCId&&this.captureCardService.DeleteDiseqcTree(this.diseqcSubTree.DiSEqCId).subscribe({next:e=>{e.bool||(console.log("DeleteDiseqcTree",e),this.dvbComponent.work.errorCount++)},error:e=>{console.log("DeleteDiseqcTree",e),this.dvbComponent.work.errorCount++}}),0==this.dvbComponent.work.errorCount&&(this.diseqcSubTree=void
0)}saveForm(e,n){this.diseqcTree.ParentId=e,this.diseqcTree.DiSEqCId?(this.captureCardService.UpdateDiseqcTree(this.diseqcTree).subscribe(n),this.diseqcSubComponent&&this.diseqcSubComponent.saveForm(this.diseqcTree.DiSEqCId,{error:s=>{n.error(s)}})):this.captureCardService.AddDiseqcTree(this.diseqcTree).subscribe({next:s=>{s.int&&s.int>0?(this.diseq
cTree.DiSEqCId=s.int,n.next&&n.next(s),this.diseqcSubComponent&&this.diseqcSubComponent.saveForm(this.diseqcTree.DiSEqCId,{next:r=>{},error:r=>{n.error(r)}})):(console.log("UpdateDiseqcTree",s),n.error(s))},error:s=>{console.log("UpdateDiseqcTree",s),n.error(s)}})}}return
t.\u0275fac=function(e){return
new(e||t)(D(Gt))},t.\u0275cmp=z({type:t,selectors:[["app-unicable"]],viewQuery:function(e,n){if(1&e&&W(Gee,5),2&e){let
s;V(s=B())&&(n.currentForm=s.first)}},inputs:{diseqcTree:"diseqcTree",diseqcTreeList:"diseqcTreeList",dvbComponent:"dvbComponent"},outputs:{baseEvent:"baseEvent"},decls:6,vars:0,consts:[["name","unicableform",1,"ml-3","mr-3"],["unicableform","ngForm"],[1,"m-5"],["pTemplate","title"],["pTemplate","subtitle"],["pTemplate","content"],[1,"grid"],[1,"mb-4","w-full"],[1,"form-group","field"],["for","Description",1,"label","block"],["pInputText","","id","ip","name","Description",1,"mb-2","form-control","w-full",3,"ngModel","ngModelChange"],["Description","ngModel"],[1,"block
"],["for","ScrUserband",1,"label","block"],["name","ScrUserband","id","ScrUserband",3,"ngModel","showButtons","min","max","step","ngModelChange"],[3,"innerHTML"],["for","ScrFrequency",1,"label","block"],["name","ScrFrequency","id","ScrFrequency","mode","decimal","inputId","withoutgrouping",3,"ngModel","useGrouping","ngModelChange"],["for","ScrPin",1,"label","block"],["name","ScrPin","id","ScrPin","mode","decimal","inputId","withoutgrouping",3,"ngModel","useGrouping","min","max","ngModelChange"],["for","CmdRepeat",1,"label","block"],["name","CmdRepeat","id","CmdRepeat",3,"ngModel","showButtons","min","max","step","ngModelChange"],[1,"mb-4","w-full",3,"legend","toggleable","collapsed"],["icon","pi
pi-plus-circle","styleClass","p-button-plain",3,"label","onClick",4,"ngIf"],[3,"header","visible","modal","draggable","resizable","visibleChange"],["for","disenqcTypes",1,"label","block"],["optionLabel","description","name","disenqcTypes","optionDisabled","inactive",3,"options","ngModel","ng
ModelChange","onDblClick"],["pTemplate","footer"],["styleClass","p-button-warning","label","Delete
Satellite Devices","icon","pi
pi-trash",3,"disabled","onClick",4,"ngIf"],[3,"diseqcTree","diseqcTreeList","dvbComponent","baseEvent",4,"ngIf"],["icon","pi
pi-plus-circle","styleClass","p-button-plain",3,"label","onClick"],["icon","pi
pi-times-circle","styleClass","p-button-plain",3,"label","onClick"],["icon","pi
pi-check-circle","styleClass","p-button-plain",3,"label","disabled","onClick"],["styleClass","p-button-warning","label","Delete
Satellite Devices","icon","pi
pi-trash",3,"disabled","onClick"],["icon","pi
pi-times-circle","styleClass","p-button-plain",3,"label","click"],["icon","pi
pi-check-circle","styleClass","p-button-plain",3,"label","click"],[3,"diseqcTree","diseqcTreeList","dvbComponent","baseEvent"]],template:function(e,n){1&e&&(l(0,"form",0,1)(2,"p-card",2),_(3,Uee,2,3,"ng-template",3),_(4,zee,0,0,"ng-template",4),_(5,Xee,67,89,"ng-template",5),c()())},styles:[""]}),t})(
);const ete=["switchform"];function
tte(t,i){1&t&&(g(0),m(1,"translate")),2&t&&T("
",f(1,1,"settings.capture.diseqc.switch.title")," ")}function
nte(t,i){}function
ite(t,i){1&t&&(l(0,"div")(1,"small",27),g(2),m(3,"translate"),c()()),2&t&&(a(2),S(f(3,1,"settings.capture.diseqc.switchports_error")))}function
ste(t,i){if(1&t){const
e=I();l(0,"p-button",33),C("onClick",function(){v(e);const
s=d(2).index;return
d(2).displayDeleteThis[s]=!0}),c()}2&t&&p("disabled",!d(2).$implicit)}function
rte(t,i){if(1&t){const
e=I();l(0,"p-button",34),C("click",function(){v(e);const
s=d(2).index;return
d(2).displayDeleteThis[s]=!1}),m(1,"translate"),c(),l(2,"p-button",35),C("click",function(){v(e);const
s=d(2).index;return
d(2).deleteDiseqc(s)}),m(3,"translate"),c()}2&t&&(x("label",f(1,2,"common.no")),a(2),x("label",f(3,4,"common.yes")))}function
ote(t,i){if(1&t){const
e=I();l(0,"app-lnb",36),C("baseEvent",function(s){return
v(e),d(4).setDiseqcObject(s)}),c()}if(2&t){const e=d(2).$implicit,n=d(2);p("dis
eqcTree",e)("diseqcTreeList",n.diseqcTreeList)("dvbComponent",n.dvbComponent)}}function
ate(t,i){if(1&t){const
e=I();l(0,"app-rotor",36),C("baseEvent",function(s){return
v(e),d(4).setDiseqcObject(s)}),c()}if(2&t){const
e=d(2).$implicit,n=d(2);p("diseqcTree",e)("diseqcTreeList",n.diseqcTreeList)("dvbComponent",n.dvbComponent)}}function
lte(t,i){if(1&t){const
e=I();l(0,"app-switch",36),C("baseEvent",function(s){return
v(e),d(4).setDiseqcObject(s)}),c()}if(2&t){const
e=d(2).$implicit,n=d(2);p("diseqcTree",e)("diseqcTreeList",n.diseqcTreeList)("dvbComponent",n.dvbComponent)}}function
cte(t,i){if(1&t){const
e=I();l(0,"app-unicable",36),C("baseEvent",function(s){return
v(e),d(4).setDiseqcObject(s)}),c()}if(2&t){const
e=d(2).$implicit,n=d(2);p("diseqcTree",e)("diseqcTreeList",n.diseqcTreeList)("dvbComponent",n.dvbComponent)}}const
MS=function(){return{width:"50vw"}};function ute(t,i){if(1&t){const
e=I();l(0,"p-fieldset",28),m(1,"translate"),_(2,ste,1,1,"p-button",29),l(3,"p-dialog",30),C("
visibleChange",function(s){v(e);const r=d().index;return
d(2).displayDeleteThis[r]=s}),m(4,"translate"),l(5,"h2"),g(6),m(7,"translate"),c(),l(8,"p"),g(9),m(10,"translate"),c(),_(11,rte,4,6,"ng-template",31),c(),_(12,ote,1,3,"app-lnb",32),_(13,ate,1,3,"app-rotor",32),_(14,lte,1,3,"app-switch",32),_(15,cte,1,3,"app-unicable",32),c()}if(2&t){const
e=d(),n=e.$implicit,s=e.index,r=d(2);x("legend",f(1,17,"settings.capture.dvb.satellite_heading")),p("toggleable",!0)("collapsed",!0),a(2),p("ngIf",n),a(1),q(A(25,MS)),x("header",f(4,19,"settings.capture.dvb.satellite_delete_header")),p("visible",r.displayDeleteThis[s])("modal",!0)("draggable",!1)("resizable",!1),a(3),S(f(7,21,"settings.common.ru_sure")),a(3),S(f(10,23,"settings.capture.dvb.satellite_delete_desc")),a(3),p("ngIf",n&&"lnb"==n.Type),a(1),p("ngIf",n&&"rotor"==n.Type),a(1),p("ngIf",n&&"switch"==n.Type),a(1),p("ngIf",n&&"scr"==n.Type)}}function
dte(t,i){if(1&t&&(l(0,"div"),_(1,ute,16,26,"p-fieldset",26),c()),2&t){const
e=i.$implicit
;a(1),p("ngIf",e)}}function pte(t,i){if(1&t){const
e=I();l(0,"p-button",40),C("onClick",function(){return
v(e),d(3).work.displayNewDiseqc=!1}),m(1,"translate"),c(),l(2,"p-button",41),C("onClick",function(){return
v(e),d(3).newDiseqc()}),m(3,"translate"),c()}if(2&t){const
e=d(3);x("label",f(1,3,"common.cancel")),a(2),x("label",f(3,5,"common.ok")),p("disabled",e.selectedDiseqcType.inactive)}}function
hte(t,i){if(1&t){const
e=I();l(0,"p-fieldset",28),m(1,"translate"),l(2,"p-button",37),C("onClick",function(){return
v(e),d(2).work.displayNewDiseqc=!0}),m(3,"translate"),c(),l(4,"p-dialog",30),C("visibleChange",function(s){return
v(e),d(2).work.displayNewDiseqc=s}),m(5,"translate"),l(6,"label",38),g(7),m(8,"translate"),c(),l(9,"p-listbox",39),C("ngModelChange",function(s){return
v(e),d(2).selectedDiseqcType=s})("onDblClick",function(){return
v(e),d(2).newDiseqc()}),c(),_(10,pte,4,7,"ng-template",31),c()()}if(2&t){const
e=d(2);x("legend",f(1,14,"settings.capture.dvb.satellite_heading")),p(
"toggleable",!0)("collapsed",!1),a(2),x("label",f(3,16,"settings.capture.dvb.newsatellite_button")),a(2),q(A(22,MS)),x("header",f(5,18,"settings.capture.dvb.newsatellite_heading")),p("visible",e.work.displayNewDiseqc)("modal",!0)("draggable",!1)("resizable",!1),a(3),T("
",f(8,20,"settings.capture.dvb.newsatellite_devtype"),"
"),a(2),p("options",e.captureCardService.diseqcTypes)("ngModel",e.selectedDiseqcType)}}const
mte=function(){return{width:"25rem"}},fte=function(){return{minWidth:"80%"}};function
gte(t,i){if(1&t){const
e=I();l(0,"div",6)(1,"div",7)(2,"div",8)(3,"label",9),g(4),m(5,"translate"),c(),l(6,"input",10,11),C("ngModelChange",function(s){return
v(e),d().diseqcTree.Description=s}),c(),l(8,"small",12),g(9),m(10,"translate"),c()(),l(11,"div",8)(12,"label",13),g(13),m(14,"translate"),c(),l(15,"p-inputNumber",14),C("ngModelChange",function(s){return
v(e),d().diseqcTree.CmdRepeat=s}),c(),l(16,"small",12),k(17,"div",15),m(18,"translate"),c()(),l(19,"div",8)(20,"label",16),g(21)
,m(22,"translate"),c(),l(23,"p-dropdown",17,18),C("ngModelChange",function(s){return
v(e),d().currentSubType=s})("onChange",function(){return
v(e),d().updateSubType()}),c(),l(25,"small",12),g(26),m(27,"translate"),c()(),l(28,"div",8)(29,"label",19),g(30),m(31,"translate"),c(),l(32,"input",20,21),C("ngModelChange",function(s){return
v(e),d().work.addressText=s}),c(),l(34,"small",12),g(35),m(36,"translate"),c()(),l(37,"div",8)(38,"label",22),g(39),m(40,"translate"),c(),l(41,"p-inputNumber",23),C("ngModelChange",function(s){return
v(e),d().diseqcTree.SwitchPorts=s}),c(),l(42,"small",12),k(43,"div",15),m(44,"translate"),c(),_(45,ite,4,3,"div",24),c(),_(46,dte,2,1,"div",25),_(47,hte,11,23,"p-fieldset",26),c()()}if(2&t){const
e=d();a(4),S(f(5,35,"settings.capture.diseqc.description_label")),a(2),p("ngModel",e.diseqcTree.Description),a(3),T("
",f(10,37,"settings.capture.diseqc.description_desc"),"
"),a(4),S(f(14,39,"settings.capture.diseqc.cmdrepeat_label")),a(2),p("ngModel",e.diseqcTree.C
mdRepeat)("showButtons",!0)("min",0)("max",15)("step",1),a(2),p("innerHTML",f(18,41,"settings.capture.diseqc.cmdrepeat_desc"),Bt),a(2),q(A(55,mte)),a(2),S(f(22,43,"settings.capture.diseqc.switch.type_label")),a(2),q(A(56,fte)),p("options",e.switchSubTypes)("ngModel",e.currentSubType)("editable",!1)("maxlength",0),a(3),T("
",f(27,45,"settings.capture.diseqc.switch.type_desc"),"
"),a(4),S(f(31,47,"settings.capture.diseqc.address_label")),a(2),p("ngModel",e.work.addressText)("disabled",!e.work.enableAddrAndPorts),a(3),T("
",f(36,49,"settings.capture.diseqc.address_desc"),"
"),a(4),T("
",f(40,51,"settings.capture.diseqc.switchports_label"),"
"),a(2),p("ngModel",e.diseqcTree.SwitchPorts)("showButtons",!0)("min",0)("max",255)("step",1)("disabled",!e.work.enableAddrAndPorts),a(2),p("innerHTML",f(44,53,"settings.capture.diseqc.switchports_desc"),Bt),a(2),p("ngIf",e.diseqcSubTreeCount>e.diseqcTree.SwitchPorts),a(1),p("ngForOf",e.diseqcSubTree),a(1),p("ngIf",e.diseqcSubTreeCount<e.diseqcTree.
SwitchPorts)}}let wg=(()=>{class
t{constructor(e,n){this.captureCardService=e,this.translate=n,this.diseqcSubComponent=[],this.baseEvent=new
H,this.switchSubTypes=[{Name:"settings.capture.diseqc.switch.tone",SubType:"tone"},{Name:"settings.capture.diseqc.switch.voltage",SubType:"voltage"},{Name:"settings.capture.diseqc.switch.mini_diseqc",SubType:"mini_diseqc"},{Name:"settings.capture.diseqc.switch.diseqc",SubType:"diseqc"},{Name:"settings.capture.diseqc.switch.diseqc_uncom",SubType:"diseqc_uncom"},{Name:"settings.capture.diseqc.switch.legacy_sw21",SubType:"legacy_sw21"},{Name:"settings.capture.diseqc.switch.legacy_sw42",SubType:"legacy_sw42"},{Name:"settings.capture.diseqc.switch.legacy_sw64",SubType:"legacy_sw64"}],this.diseqcSubTree=[],this.diseqcSubTreeCount=0,this.work={addressText:"",displayNewDiseqc:!1,enableAddrAndPorts:!1},this.displayDeleteThis=[],this.selectedDiseqcType={description:"",type:"",inactive:!0},this.setupDone=!1,this.switchSubTypes.forEach(s=>n.get(s.Name).sub
scribe(r=>s.Name=r))}ngOnInit(){if(this.diseqcTree.DiSEqCId?this.work.addressText="0x"+this.diseqcTree.Address.toString(16):(this.diseqcTree.Address=16,this.work.addressText="0x10",this.diseqcTree.SwitchPorts=2,this.diseqcTree.SubType="tone",this.diseqcTree.CmdRepeat=1),this.diseqcTree.SubType){let
e=this.switchSubTypes.find(n=>n.SubType==this.diseqcTree.SubType);e&&(this.currentSubType=e)}this.updateSubType(),this.displayDeleteThis=[],this.diseqcTreeList.DiseqcTreeList.DiseqcTrees.forEach(e=>{e.ParentId==this.diseqcTree.DiSEqCId&&(this.diseqcSubTree.push(e),this.displayDeleteThis.push(!1),this.diseqcSubTreeCount++)})}ngAfterViewInit(){this.baseEvent.emit(this),this.currentForm.valueChanges.subscribe(n=>{this.setupDone&&this.currentForm.dirty&&this.dvbComponent.currentForm.form.markAsDirty()}),new
Je(n=>{setTimeout(()=>{n.next(1),n.complete()},100)}).subscribe(n=>{this.setupDone=!0,this.diseqcTree.DiSEqCId?this.currentForm.form.markAsPristine():(this.currentForm.form.markAsDirty(),t
his.dvbComponent.currentForm.form.markAsDirty())})}newDiseqc(){this.work.displayNewDiseqc=!1,this.diseqcSubTree.push({Type:this.selectedDiseqcType.type,Description:this.selectedDiseqcType.description}),this.displayDeleteThis.push(!1),this.diseqcSubTreeCount++}setDiseqcObject(e){this.diseqcSubComponent.findIndex(s=>s===e)<0&&this.diseqcSubComponent.push(e),console.log("setDiseqcObject",this.diseqcSubComponent.length)}deleteDiseqc(e){this.displayDeleteThis[e]=!1,this.dvbComponent.work.errorCount=0,console.log("Delete",e),null!=this.diseqcSubTree[e]&&(this.diseqcSubTree[e].DiSEqCId&&this.captureCardService.DeleteDiseqcTree(this.diseqcSubTree[e].DiSEqCId).subscribe({next:n=>{n.bool||(console.log("DeleteDiseqcTree",n),this.dvbComponent.work.errorCount++)},error:n=>{console.log("DeleteDiseqcTree",n),this.dvbComponent.work.errorCount++}}),0==this.dvbComponent.work.errorCount&&(this.diseqcSubTree[e]=null,this.diseqcSubTreeCount--))}updateSubType(){switch(this.diseqcTree.SubType=this.current
SubType.SubType,this.diseqcTree.SubType){case"tone":case"voltage":case"mini_diseqc":case"legacy_sw21":case"legacy_sw42":this.work.addressText="0x10",this.diseqcTree.SwitchPorts=2,this.work.enableAddrAndPorts=!1;break;case"legacy_sw64":this.work.addressText="0x10",this.diseqcTree.SwitchPorts=3,this.work.enableAddrAndPorts=!1;break;case"diseqc_uncom":case"diseqc":this.work.enableAddrAndPorts=!0}}saveForm(e,n){this.diseqcTree.ParentId=e,this.diseqcTree.Address=Number.parseInt(this.work.addressText),this.diseqcTree.DiSEqCId?(this.captureCardService.UpdateDiseqcTree(this.diseqcTree).subscribe(n),this.diseqcSubComponent.forEach(s=>{s&&s.saveForm(this.diseqcTree.DiSEqCId,{error:r=>{n.error(r)}})})):this.captureCardService.AddDiseqcTree(this.diseqcTree).subscribe({next:s=>{s.int&&s.int>0?(this.diseqcTree.DiSEqCId=s.int,n.next&&n.next(s),this.diseqcSubComponent.forEach(r=>{r&&r.saveForm(this.diseqcTree.DiSEqCId,{next:o=>{},error:o=>{n.error(o)}})})):(console.log("UpdateDiseqcTree",s),n.error
(s))},error:s=>{console.log("UpdateDiseqcTree",s),n.error(s)}})}}return
t.\u0275fac=function(e){return
new(e||t)(D(Gt),D(Oe))},t.\u0275cmp=z({type:t,selectors:[["app-switch"]],viewQuery:function(e,n){if(1&e&&W(ete,5),2&e){let
s;V(s=B())&&(n.currentForm=s.first)}},inputs:{diseqcTree:"diseqcTree",diseqcTreeList:"diseqcTreeList",dvbComponent:"dvbComponent"},outputs:{baseEvent:"baseEvent"},decls:6,vars:0,consts:[["name","switchform",1,"ml-3","mr-3"],["switchform","ngForm"],[1,"m-5"],["pTemplate","title"],["pTemplate","subtitle"],["pTemplate","content"],[1,"grid"],[1,"mb-4","w-full"],[1,"form-group","field"],["for","Description",1,"label","block"],["pInputText","","id","ip","name","Description",1,"mb-2","form-control","w-full",3,"ngModel","ngModelChange"],["Description","ngModel"],[1,"block"],["for","CmdRepeat",1,"label","block"],["name","CmdRepeat","id","CmdRepeat",3,"ngModel","showButtons","min","max","step","ngModelChange"],[3,"innerHTML"],["for","SubType",1,"label","block"],["optionL
abel","Name","name","SubType",3,"options","ngModel","editable","maxlength","ngModelChange","onChange"],["SubType","ngModel"],["for","Address",1,"label","block"],["pInputText","","id","Address","name","Address",1,"mb-2","form-control","w-full",3,"ngModel","disabled","ngModelChange"],["Address","ngModel"],["for","SwitchPorts",1,"label","block"],["name","SwitchPorts","id","SwitchPorts",3,"ngModel","showButtons","min","max","step","disabled","ngModelChange"],[4,"ngIf"],[4,"ngFor","ngForOf"],["class","mb-4
w-full",3,"legend","toggleable","collapsed",4,"ngIf"],[1,"p-error","block"],[1,"mb-4","w-full",3,"legend","toggleable","collapsed"],["styleClass","p-button-warning","label","Delete
Satellite Devices","icon","pi
pi-trash",3,"disabled","onClick",4,"ngIf"],[3,"header","visible","modal","draggable","resizable","visibleChange"],["pTemplate","footer"],[3,"diseqcTree","diseqcTreeList","dvbComponent","baseEvent",4,"ngIf"],["styleClass","p-button-warning","label","Delete
Satellite Devices","ico
n","pi
pi-trash",3,"disabled","onClick"],["icon","pi
pi-times-circle","styleClass","p-button-plain",3,"label","click"],["icon","pi
pi-check-circle","styleClass","p-button-plain",3,"label","click"],[3,"diseqcTree","diseqcTreeList","dvbComponent","baseEvent"],["icon","pi
pi-plus-circle","styleClass","p-button-plain",3,"label","onClick"],["for","disenqcTypes",1,"label","block"],["optionLabel","description","name","disenqcTypes","optionDisabled","inactive",3,"options","ngModel","ngModelChange","onDblClick"],["icon","pi
pi-times-circle","styleClass","p-button-plain",3,"label","onClick"],["icon","pi
pi-check-circle","styleClass","p-button-plain",3,"label","disabled","onClick"]],template:function(e,n){1&e&&(l(0,"form",0,1)(2,"p-card",2),_(3,tte,2,3,"ng-template",3),_(4,nte,0,0,"ng-template",4),_(5,gte,48,57,"ng-template",5),c()())},directives:[ze,Ue,He,Ne,ne,Ye,Te,_e,pt,Ot,_n,Q,at,Ui,ve,bn,kd,Al,t,Pl,os],pipes:[ce],styles:[""]}),t})();const
_te=["externalform"],bte=["top"];function vte(t,i
){1&t&&(g(0),m(1,"translate")),2&t&&T("
",f(1,1,"settings.capture.external.title")," ")}function
Cte(t,i){}function yte(t,i){if(1&t){const
e=I();l(0,"div",8)(1,"div",9)(2,"div",10)(3,"label",11),g(4),m(5,"translate"),c(),l(6,"input",12,13),C("ngModelChange",function(s){return
v(e),d().card.VideoDevice=s}),c(),l(8,"small",14),g(9),m(10,"translate"),c()(),l(11,"div",10)(12,"label",15),g(13),m(14,"translate"),c(),l(15,"p-inputNumber",16),C("ngModelChange",function(s){return
v(e),d().card.ChannelTimeout=s}),c(),l(16,"small",14),g(17),m(18,"translate"),c()()()()}if(2&t){const
e=d();a(4),S(f(5,10,"settings.capture.external.command_label")),a(2),p("ngModel",e.card.VideoDevice),a(3),T("
",f(10,12,"settings.capture.external.command_desc"),"
"),a(4),S(f(14,14,"settings.capture.tunetimeout_label")),a(2),p("ngModel",e.card.ChannelTimeout)("showButtons",!0)("min",1750)("max",65e3)("step",250),a(2),T("
",f(18,16,"settings.capture.tunetimeout_desc")," ")}}function
wte(t,i){1&t&&(k(0,"p-message",22
),m(1,"translate")),2&t&&x("text",f(1,1,"common.savesuccess"))}function
Tte(t,i){1&t&&(k(0,"p-message",23),m(1,"translate")),2&t&&x("text",f(1,1,"common.networkfail"))}function
Ste(t,i){if(1&t){const
e=I();l(0,"div",17)(1,"div",18),_(2,wte,2,3,"p-message",19),_(3,Tte,2,3,"p-message",20),c(),l(4,"p-button",21),C("onClick",function(){v(e);const
s=d(),r=F(1);return
s.saveForm(),r.form.markAsPristine()}),m(5,"translate"),c()()}if(2&t){const
e=d(),n=F(1);a(2),p("ngIf",e.work.successCount>0&&0==e.work.errorCount&&!n.dirty),a(1),p("ngIf",e.work.errorCount>0),a(1),x("label",f(5,4,"common.save")),p("disabled",!n.dirty||!e.card.VideoDevice||e.setupService.schedulingEnabled)}}let
xte=(()=>{class
t{constructor(e,n){this.captureCardService=e,this.setupService=n,this.work={successCount:0,errorCount:0},this.saveObserver={next:s=>{this.card.CardId&&s.bool?this.work.successCount++:!this.card.CardId&&s.int?(this.work.successCount++,this.card.CardId=s.int):(this.work.errorCount++,this.currentForm.form
.markAsDirty())},error:s=>{console.error(s),this.work.errorCount++,this.currentForm.form.markAsDirty()}}}ngOnInit(){}ngAfterViewInit(){this.setupService.setCurrentForm(this.currentForm),this.topElement.nativeElement.scrollIntoView({behavior:"smooth",block:"start"})}saveForm(){this.work.successCount=0,this.work.errorCount=0,this.card.CardId?this.cardList.CaptureCardList.CaptureCards.forEach(e=>{(e.CardId==this.card.CardId||e.ParentId==this.card.CardId)&&(this.captureCardService.UpdateCaptureCard(e.CardId,"videodevice",this.card.VideoDevice).subscribe(this.saveObserver),this.captureCardService.UpdateCaptureCard(e.CardId,"channel_timeout",String(this.card.ChannelTimeout)).subscribe(this.saveObserver))}):this.captureCardService.AddCaptureCard(this.card).subscribe(this.saveObserver)}}return
t.\u0275fac=function(e){return
new(e||t)(D(Gt),D(Me))},t.\u0275cmp=z({type:t,selectors:[["app-external"]],viewQuery:function(e,n){if(1&e&&(W(_te,5),W(bte,5)),2&e){let
s;V(s=B())&&(n.currentForm=s.firs
t),V(s=B())&&(n.topElement=s.first)}},inputs:{card:"card",cardList:"cardList"},decls:9,vars:0,consts:[["name","externalform",1,"ml-3","mr-3"],["externalform","ngForm"],["top",""],[1,"m-5"],["pTemplate","title"],["pTemplate","subtitle"],["pTemplate","content"],["pTemplate","footer"],[1,"grid"],[1,"mb-4","w-full"],[1,"form-group","field"],["for","VideoDevice",1,"label","block"],["pInputText","","id","VideoDevice","name","VideoDevice",1,"mb-2","form-control","w-full",3,"ngModel","ngModelChange"],["VideoDevice","ngModel"],[1,"block"],["for","ChannelTimeout",1,"label","block"],["name","ChannelTimeout","id","ChannelTimeout",3,"ngModel","showButtons","min","max","step","ngModelChange"],[1,"grid","nogutter"],[1,"col-12"],["severity","success",3,"text",4,"ngIf"],["severity","error",3,"text",4,"ngIf"],["icon","pi
pi-save","iconPos","left",1,"col","pr-1",3,"label","disabled","onClick"],["severity","success",3,"text"],["severity","error",3,"text"]],template:function(e,n){1&e&&(l(0,"form",0,1),k
(2,"span",null,2),l(4,"p-card",3),_(5,vte,2,3,"ng-template",4),_(6,Cte,0,0,"ng-template",5),_(7,yte,19,18,"ng-template",6),_(8,Ste,6,6,"ng-template",7),c()())},directives:[ze,Ue,He,Ne,ne,Ye,Te,_e,pt,Q,qe,ve],pipes:[ce],styles:[""]}),t})();const
Dte=["hdhomerunform"],Mte=["top"];function
kte(t,i){1&t&&(g(0),m(1,"translate")),2&t&&T("
",f(1,1,"settings.capture.hdhomerun.title")," ")}function
Ite(t,i){}function Ete(t,i){if(1&t){const
e=I();l(0,"p-listbox",20,21),C("ngModelChange",function(s){return
v(e),d(2).selectedDevices=s})("onChange",function(){return
v(e),d(2).updateDevices()}),c()}if(2&t){const
e=d(2);p("options",e.captureDeviceList.CaptureDeviceList.CaptureDevices)("ngModel",e.selectedDevices)("checkbox",!0)("showToggleAll",!1)("multiple",!0)}}const
Rte=function(){return{width:"30rem"}};function Lte(t,i){if(1&t){const
e=I();l(0,"div",8)(1,"div",9)(2,"div",10)(3,"label",11),g(4),m(5,"translate"),c(),l(6,"div"),_(7,Ete,2,5,"p-listbox",12),l(8,"small",13),g(9),m(10,"translate"),c(
)()(),l(11,"div",10)(12,"label",14),g(13),m(14,"translate"),c(),l(15,"p-inputNumber",15),C("ngModelChange",function(s){return
v(e),d().card.SignalTimeout=s}),c(),l(16,"small",13),g(17),m(18,"translate"),c()(),l(19,"div",10)(20,"label",16),g(21),m(22,"translate"),c(),l(23,"p-inputNumber",17),C("ngModelChange",function(s){return
v(e),d().card.ChannelTimeout=s}),c(),l(24,"small",13),g(25),m(26,"translate"),c()(),l(27,"div",10)(28,"p-checkbox",18,19),C("ngModelChange",function(s){return
v(e),d().card.DVBEITScan=s}),m(30,"translate"),c(),l(31,"small",13),g(32),m(33,"translate"),c()()()()}if(2&t){const
e=d();a(4),S(f(5,23,"settings.capture.hdhomerun.device_label")),a(2),q(A(39,Rte)),a(1),p("ngIf",e.work.isReady),a(2),T("
",f(10,25,"settings.capture.hdhomerun.device_desc"),"
"),a(4),S(f(14,27,"settings.capture.sigtimeout_label")),a(2),p("ngModel",e.card.SignalTimeout)("showButtons",!0)("min",250)("max",6e4)("step",250),a(2),T("
",f(18,29,"settings.capture.sigtimeout_desc")," "),a(4),S(f(22
,31,"settings.capture.tunetimeout_label")),a(2),p("ngModel",e.card.ChannelTimeout)("showButtons",!0)("min",1750)("max",65e3)("step",250),a(2),T("
",f(26,33,"settings.capture.tunetimeout_desc"),"
"),a(3),x("label",f(30,35,"settings.capture.hdhomerun.eitscan_label")),p("ngModel",e.card.DVBEITScan)("binary",!0),a(4),T("
",f(33,37,"settings.capture.dvb.eitscan_ldesc")," ")}}function
Ote(t,i){1&t&&(k(0,"p-message",27),m(1,"translate")),2&t&&x("text",f(1,1,"common.savesuccess"))}function
Ate(t,i){1&t&&(k(0,"p-message",28),m(1,"translate")),2&t&&x("text",f(1,1,"common.networkfail"))}function
Pte(t,i){if(1&t){const
e=I();l(0,"div",22)(1,"div",23),_(2,Ote,2,3,"p-message",24),_(3,Ate,2,3,"p-message",25),c(),l(4,"p-button",26),C("onClick",function(){v(e);const
s=d(),r=F(1);return
s.saveForm(),r.form.markAsPristine()}),m(5,"translate"),c()()}if(2&t){const
e=d(),n=F(1);a(2),p("ngIf",e.work.successCount>0&&0==e.work.errorCount&&!n.dirty),a(1),p("ngIf",e.work.errorCount>0),a(1),x("label",f(5,4,"co
mmon.save")),p("disabled",!n.dirty||!e.card.VideoDevice||e.setupService.schedulingEnabled)}}let
Fte=(()=>{class
t{constructor(e,n){this.captureCardService=e,this.setupService=n,this.work={isReady:!1,successCount:0,errorCount:0},this.captureDeviceList={CaptureDeviceList:{CaptureDevices:[]}},this.selectedDevices=[],this.saveObserver={next:s=>{this.card.CardId&&s.bool?this.work.successCount++:!this.card.CardId&&s.int?(this.work.successCount++,this.card.CardId=s.int):(this.work.errorCount++,this.currentForm.form.markAsDirty())},error:s=>{console.error(s),this.work.errorCount++,this.currentForm.form.markAsDirty()}}}ngOnInit(){this.captureCardService.GetCaptureDeviceList("HDHOMERUN").subscribe({next:e=>{this.captureDeviceList=e,this.setupDevices()},error:e=>{console.log("GetCaptureDeviceList",e),this.work.errorCount++}})}ngAfterViewInit(){this.setupService.setCurrentForm(this.currentForm),this.topElement.nativeElement.scrollIntoView({behavior:"smooth",block:"start"})}setupDevices(){this.c
ard.VideoDevice&&this.card.VideoDevice.split(",").forEach(n=>{const
s=this.captureDeviceList.CaptureDeviceList.CaptureDevices.find(r=>n==r.VideoDevice.split("
")[0]);s&&this.selectedDevices.push(s)}),this.work.isReady=!0}updateDevices(){let
e="",n=[];this.selectedDevices.forEach(s=>{n.push(s.VideoDevice.split("
")[0]),this.card.SignalTimeout=s.SignalTimeout,this.card.ChannelTimeout=s.ChannelTimeout}),n.sort(),console.log(n),n.forEach(s=>{e&&(e+=","),e+=s}),this.card.VideoDevice=e}saveForm(){console.log("save
form
clicked"),this.work.successCount=0,this.work.errorCount=0,this.card.CardId?this.cardList.CaptureCardList.CaptureCards.forEach(e=>{(e.CardId==this.card.CardId||e.ParentId==this.card.CardId)&&(this.captureCardService.UpdateCaptureCard(e.CardId,"videodevice",this.card.VideoDevice).subscribe(this.saveObserver),this.captureCardService.UpdateCaptureCard(e.CardId,"signal_timeout",String(this.card.SignalTimeout)).subscribe(this.saveObserver),this.captureCardService.UpdateCaptureCar
d(e.CardId,"channel_timeout",String(this.card.ChannelTimeout)).subscribe(this.saveObserver),this.captureCardService.UpdateCaptureCard(e.CardId,"dvb_eitscan",String(this.card.DVBEITScan?"1":"0")).subscribe(this.saveObserver))}):this.captureCardService.AddCaptureCard(this.card).subscribe(this.saveObserver)}}return
t.\u0275fac=function(e){return
new(e||t)(D(Gt),D(Me))},t.\u0275cmp=z({type:t,selectors:[["app-hdhomerun"]],viewQuery:function(e,n){if(1&e&&(W(Dte,5),W(Mte,5)),2&e){let
s;V(s=B())&&(n.currentForm=s.first),V(s=B())&&(n.topElement=s.first)}},inputs:{card:"card",cardList:"cardList"},decls:9,vars:0,consts:[["name","hdhomerunform",1,"ml-3","mr-3"],["hdhomerunform","ngForm"],["top",""],[1,"m-5"],["pTemplate","title"],["pTemplate","subtitle"],["pTemplate","content"],["pTemplate","footer"],[1,"grid"],[1,"mb-4","w-full"],[1,"form-group","field"],["for","VideoDevice",1,"label","block"],["optionLabel","VideoDevice","name","VideoDevice",3,"options","ngModel","checkbox","showToggleAll","m
ultiple","ngModelChange","onChange",4,"ngIf"],[1,"block"],["for","SignalTimeout",1,"label","block"],["name","SignalTimeout","id","SignalTimeout",3,"ngModel","showButtons","min","max","step","ngModelChange"],["for","ChannelTimeout",1,"label","block"],["name","ChannelTimeout","id","ChannelTimeout",3,"ngModel","showButtons","min","max","step","ngModelChange"],["inputId","DVBEITScan","name","DVBEITScan",1,"label","mb-2","w-full",3,"ngModel","binary","label","ngModelChange"],["DVBEITScan","ngModel"],["optionLabel","VideoDevice","name","VideoDevice",3,"options","ngModel","checkbox","showToggleAll","multiple","ngModelChange","onChange"],["VideoDevice","ngModel"],[1,"grid","nogutter"],[1,"col-12"],["severity","success",3,"text",4,"ngIf"],["severity","error",3,"text",4,"ngIf"],["icon","pi
pi-save","iconPos","left",1,"col","pr-1",3,"label","disabled","onClick"],["severity","success",3,"text"],["severity","error",3,"text"]],template:function(e,n){1&e&&(l(0,"form",0,1),k(2,"span",null,2),l(4,"p
-card",3),_(5,kte,2,3,"ng-template",4),_(6,Ite,0,0,"ng-template",5),_(7,Lte,34,40,"ng-template",6),_(8,Pte,6,6,"ng-template",7),c()())},directives:[ze,Ue,He,Ne,ne,Q,os,Te,_e,pt,sn,qe,ve],pipes:[ce],styles:[""]}),t})();const
Nte=["iptvform"],Vte=["top"];function
Bte(t,i){1&t&&(g(0),m(1,"translate")),2&t&&T("
",f(1,1,"settings.capture.iptv.title")," ")}function
Hte(t,i){}function qte(t,i){if(1&t){const
e=I();l(0,"div",8)(1,"div",9)(2,"div",10)(3,"label",11),g(4),m(5,"translate"),c(),l(6,"input",12,13),C("ngModelChange",function(s){return
v(e),d().card.VideoDevice=s}),c(),l(8,"small",14),g(9),m(10,"translate"),c()(),l(11,"div",10)(12,"label",15),g(13),m(14,"translate"),c(),l(15,"p-inputNumber",16),C("ngModelChange",function(s){return
v(e),d().card.ChannelTimeout=s}),c(),l(16,"small",14),g(17),m(18,"translate"),c()()()()}if(2&t){const
e=d();a(4),S(f(5,10,"settings.capture.iptv.url_label")),a(2),p("ngModel",e.card.VideoDevice),a(3),T("
",f(10,12,"settings.capture.iptv.url_desc")," "),a(4
),S(f(14,14,"settings.capture.tunetimeout_label")),a(2),p("ngModel",e.card.ChannelTimeout)("showButtons",!0)("min",1750)("max",65e3)("step",250),a(2),T("
",f(18,16,"settings.capture.tunetimeout_desc")," ")}}function
Gte(t,i){1&t&&(k(0,"p-message",22),m(1,"translate")),2&t&&x("text",f(1,1,"common.savesuccess"))}function
Ute(t,i){1&t&&(k(0,"p-message",23),m(1,"translate")),2&t&&x("text",f(1,1,"common.networkfail"))}function
zte(t,i){if(1&t){const
e=I();l(0,"div",17)(1,"div",18),_(2,Gte,2,3,"p-message",19),_(3,Ute,2,3,"p-message",20),c(),l(4,"p-button",21),C("onClick",function(){v(e);const
s=d(),r=F(1);return
s.saveForm(),r.form.markAsPristine()}),m(5,"translate"),c()()}if(2&t){const
e=d(),n=F(1);a(2),p("ngIf",e.work.successCount>0&&0==e.work.errorCount&&!n.dirty),a(1),p("ngIf",e.work.errorCount>0),a(1),x("label",f(5,4,"common.save")),p("disabled",!n.dirty||!e.card.VideoDevice||e.setupService.schedulingEnabled)}}let
jte=(()=>{class t{constructor(e,n){this.captureCardService=e,this.setu
pService=n,this.work={successCount:0,errorCount:0},this.saveObserver={next:s=>{this.card.CardId&&s.bool?this.work.successCount++:!this.card.CardId&&s.int?(this.work.successCount++,this.card.CardId=s.int):(this.work.errorCount++,this.currentForm.form.markAsDirty())},error:s=>{console.error(s),this.work.errorCount++,this.currentForm.form.markAsDirty()}}}ngOnInit(){}ngAfterViewInit(){this.setupService.setCurrentForm(this.currentForm),this.topElement.nativeElement.scrollIntoView({behavior:"smooth",block:"start"}),this.card.CardId||new
Je(n=>{setTimeout(()=>{n.next(1),n.complete()},100)}).subscribe(n=>{this.currentForm.form.markAsDirty()})}saveForm(){console.log("save
form
clicked"),this.work.successCount=0,this.work.errorCount=0,this.card.CardId?this.cardList.CaptureCardList.CaptureCards.forEach(e=>{(e.CardId==this.card.CardId||e.ParentId==this.card.CardId)&&(this.captureCardService.UpdateCaptureCard(e.CardId,"videodevice",this.card.VideoDevice).subscribe(this.saveObserver),this.capture
CardService.UpdateCaptureCard(e.CardId,"channel_timeout",String(this.card.ChannelTimeout)).subscribe(this.saveObserver))}):this.captureCardService.AddCaptureCard(this.card).subscribe(this.saveObserver)}}return
t.\u0275fac=function(e){return
new(e||t)(D(Gt),D(Me))},t.\u0275cmp=z({type:t,selectors:[["app-iptv"]],viewQuery:function(e,n){if(1&e&&(W(Nte,5),W(Vte,5)),2&e){let
s;V(s=B())&&(n.currentForm=s.first),V(s=B())&&(n.topElement=s.first)}},inputs:{card:"card",cardList:"cardList"},decls:9,vars:0,consts:[["name","iptvform",1,"ml-3","mr-3"],["iptvform","ngForm"],["top",""],[1,"m-5"],["pTemplate","title"],["pTemplate","subtitle"],["pTemplate","content"],["pTemplate","footer"],[1,"grid"],[1,"mb-4","w-full"],[1,"form-group","field"],["for","VideoDevice",1,"label","block"],["pInputText","","id","VideoDevice","name","VideoDevice",1,"mb-2","form-control","w-full",3,"ngModel","ngModelChange"],["VideoDevice","ngModel"],[1,"block"],["for","ChannelTimeout",1,"label","block"],["name","ChannelTime
out","id","ChannelTimeout",3,"ngModel","showButtons","min","max","step","ngModelChange"],[1,"grid","nogutter"],[1,"col-12"],["severity","success",3,"text",4,"ngIf"],["severity","error",3,"text",4,"ngIf"],["icon","pi
pi-save","iconPos","left",1,"col","pr-1",3,"label","disabled","onClick"],["severity","success",3,"text"],["severity","error",3,"text"]],template:function(e,n){1&e&&(l(0,"form",0,1),k(2,"span",null,2),l(4,"p-card",3),_(5,Bte,2,3,"ng-template",4),_(6,Hte,0,0,"ng-template",5),_(7,qte,19,18,"ng-template",6),_(8,zte,6,6,"ng-template",7),c()())},directives:[ze,Ue,He,Ne,ne,Ye,Te,_e,pt,Q,qe,ve],pipes:[ce],styles:[""]}),t})();const
$te=["importform"],Wte=["top"];function
Kte(t,i){1&t&&(g(0),m(1,"translate")),2&t&&T("
",f(1,1,"settings.capture.import.title")," ")}function
Qte(t,i){}function Jte(t,i){if(1&t){const
e=I();l(0,"div",8)(1,"div",9)(2,"div",10)(3,"label",11),g(4),m(5,"translate"),c(),l(6,"input",12,13),C("ngModelChange",function(s){return
v(e),d().card.VideoDevice=s}),c(
),l(8,"small",14),g(9),m(10,"translate"),c()()()()}if(2&t){const
e=d();a(4),S(f(5,3,"settings.capture.import.file_label")),a(2),p("ngModel",e.card.VideoDevice),a(3),T("
",f(10,5,"settings.capture.import.file_desc")," ")}}function
Yte(t,i){1&t&&(k(0,"p-message",20),m(1,"translate")),2&t&&x("text",f(1,1,"common.savesuccess"))}function
Zte(t,i){1&t&&(k(0,"p-message",21),m(1,"translate")),2&t&&x("text",f(1,1,"common.networkfail"))}function
Xte(t,i){if(1&t){const
e=I();l(0,"div",15)(1,"div",16),_(2,Yte,2,3,"p-message",17),_(3,Zte,2,3,"p-message",18),c(),l(4,"p-button",19),C("onClick",function(){v(e);const
s=d(),r=F(1);return
s.saveForm(),r.form.markAsPristine()}),m(5,"translate"),c()()}if(2&t){const
e=d(),n=F(1);a(2),p("ngIf",e.work.successCount>0&&0==e.work.errorCount&&!n.dirty),a(1),p("ngIf",e.work.errorCount>0),a(1),x("label",f(5,4,"common.save")),p("disabled",!n.dirty||!e.card.VideoDevice||e.setupService.schedulingEnabled)}}let
ene=(()=>{class t{constructor(e,n){this.captureCardServi
ce=e,this.setupService=n,this.work={successCount:0,errorCount:0},this.saveObserver={next:s=>{this.card.CardId&&s.bool?this.work.successCount++:!this.card.CardId&&s.int?(this.work.successCount++,this.card.CardId=s.int):(this.work.errorCount++,this.currentForm.form.markAsDirty())},error:s=>{console.error(s),this.work.errorCount++,this.currentForm.form.markAsDirty()}}}ngOnInit(){}ngAfterViewInit(){this.setupService.setCurrentForm(this.currentForm),this.topElement.nativeElement.scrollIntoView({behavior:"smooth",block:"start"})}saveForm(){console.log("save
form
clicked"),this.work.successCount=0,this.work.errorCount=0,this.card.CardId?this.cardList.CaptureCardList.CaptureCards.forEach(e=>{(e.CardId==this.card.CardId||e.ParentId==this.card.CardId)&&this.captureCardService.UpdateCaptureCard(e.CardId,"videodevice",this.card.VideoDevice).subscribe(this.saveObserver)}):this.captureCardService.AddCaptureCard(this.card).subscribe(this.saveObserver)}}return
t.\u0275fac=function(e){return new(e||
t)(D(Gt),D(Me))},t.\u0275cmp=z({type:t,selectors:[["app-import"]],viewQuery:function(e,n){if(1&e&&(W($te,5),W(Wte,5)),2&e){let
s;V(s=B())&&(n.currentForm=s.first),V(s=B())&&(n.topElement=s.first)}},inputs:{card:"card",cardList:"cardList"},decls:9,vars:0,consts:[["name","importform",1,"ml-3","mr-3"],["importform","ngForm"],["top",""],[1,"m-5"],["pTemplate","title"],["pTemplate","subtitle"],["pTemplate","content"],["pTemplate","footer"],[1,"grid"],[1,"mb-4","w-full"],[1,"form-group","field"],["for","VideoDevice",1,"label","block"],["pInputText","","id","VideoDevice","name","VideoDevice",1,"mb-2","form-control","w-full",3,"ngModel","ngModelChange"],["VideoDevice","ngModel"],[1,"block"],[1,"grid","nogutter"],[1,"col-12"],["severity","success",3,"text",4,"ngIf"],["severity","error",3,"text",4,"ngIf"],["icon","pi
pi-save","iconPos","left",1,"col","pr-1",3,"label","disabled","onClick"],["severity","success",3,"text"],["severity","error",3,"text"]],template:function(e,n){1&e&&(l(0,"form",0,
1),k(2,"span",null,2),l(4,"p-card",3),_(5,Kte,2,3,"ng-template",4),_(6,Qte,0,0,"ng-template",5),_(7,Jte,11,7,"ng-template",6),_(8,Xte,6,6,"ng-template",7),c()())},directives:[ze,Ue,He,Ne,ne,Ye,Te,_e,Q,qe,ve],pipes:[ce],styles:[""]}),t})();const
tne=["demoform"],nne=["top"];function
ine(t,i){1&t&&(g(0),m(1,"translate")),2&t&&T("
",f(1,1,"settings.capture.demo.title")," ")}function
sne(t,i){}function rne(t,i){if(1&t){const
e=I();l(0,"div",8)(1,"div",9)(2,"div",10)(3,"label",11),g(4),m(5,"translate"),c(),l(6,"input",12,13),C("ngModelChange",function(s){return
v(e),d().card.VideoDevice=s}),c(),l(8,"small",14),g(9),m(10,"translate"),c()()()()}if(2&t){const
e=d();a(4),S(f(5,3,"settings.capture.import.file_label")),a(2),p("ngModel",e.card.VideoDevice),a(3),T("
",f(10,5,"settings.capture.demo.file_desc")," ")}}function
one(t,i){1&t&&(k(0,"p-message",20),m(1,"translate")),2&t&&x("text",f(1,1,"common.savesuccess"))}function
ane(t,i){1&t&&(k(0,"p-message",21),m(1,"translate")),2&t&&x("text",f(
1,1,"common.networkfail"))}function lne(t,i){if(1&t){const
e=I();l(0,"div",15)(1,"div",16),_(2,one,2,3,"p-message",17),_(3,ane,2,3,"p-message",18),c(),l(4,"p-button",19),C("onClick",function(){v(e);const
s=d(),r=F(1);return
s.saveForm(),r.form.markAsPristine()}),m(5,"translate"),c()()}if(2&t){const
e=d(),n=F(1);a(2),p("ngIf",e.work.successCount>0&&0==e.work.errorCount&&!n.dirty),a(1),p("ngIf",e.work.errorCount>0),a(1),x("label",f(5,4,"common.save")),p("disabled",!n.dirty||!e.card.VideoDevice||e.setupService.schedulingEnabled)}}let
cne=(()=>{class
t{constructor(e,n){this.captureCardService=e,this.setupService=n,this.work={successCount:0,errorCount:0},this.saveObserver={next:s=>{this.card.CardId&&s.bool?this.work.successCount++:!this.card.CardId&&s.int?(this.work.successCount++,this.card.CardId=s.int):(this.work.errorCount++,this.currentForm.form.markAsDirty())},error:s=>{console.error(s),this.work.errorCount++,this.currentForm.form.markAsDirty()}}}ngOnInit(){}ngAfterViewInit(){this.s
etupService.setCurrentForm(this.currentForm),this.topElement.nativeElement.scrollIntoView({behavior:"smooth",block:"start"})}saveForm(){console.log("save
form
clicked"),this.work.successCount=0,this.work.errorCount=0,this.card.CardId?this.cardList.CaptureCardList.CaptureCards.forEach(e=>{(e.CardId==this.card.CardId||e.ParentId==this.card.CardId)&&this.captureCardService.UpdateCaptureCard(e.CardId,"videodevice",this.card.VideoDevice).subscribe(this.saveObserver)}):this.captureCardService.AddCaptureCard(this.card).subscribe(this.saveObserver)}}return
t.\u0275fac=function(e){return
new(e||t)(D(Gt),D(Me))},t.\u0275cmp=z({type:t,selectors:[["app-demo"]],viewQuery:function(e,n){if(1&e&&(W(tne,5),W(nne,5)),2&e){let
s;V(s=B())&&(n.currentForm=s.first),V(s=B())&&(n.topElement=s.first)}},inputs:{card:"card",cardList:"cardList"},decls:9,vars:0,consts:[["name","demoform",1,"ml-3","mr-3"],["demoform","ngForm"],["top",""],[1,"m-5"],["pTemplate","title"],["pTemplate","subtitle"],["pTemplate","cont
ent"],["pTemplate","footer"],[1,"grid"],[1,"mb-4","w-full"],[1,"form-group","field"],["for","VideoDevice",1,"label","block"],["pInputText","","id","VideoDevice","name","VideoDevice",1,"mb-2","form-control","w-full",3,"ngModel","ngModelChange"],["VideoDevice","ngModel"],[1,"block"],[1,"grid","nogutter"],[1,"col-12"],["severity","success",3,"text",4,"ngIf"],["severity","error",3,"text",4,"ngIf"],["icon","pi
pi-save","iconPos","left",1,"col","pr-1",3,"label","disabled","onClick"],["severity","success",3,"text"],["severity","error",3,"text"]],template:function(e,n){1&e&&(l(0,"form",0,1),k(2,"span",null,2),l(4,"p-card",3),_(5,ine,2,3,"ng-template",4),_(6,sne,0,0,"ng-template",5),_(7,rne,11,7,"ng-template",6),_(8,lne,6,6,"ng-template",7),c()())},directives:[ze,Ue,He,Ne,ne,Ye,Te,_e,Q,qe,ve],pipes:[ce],styles:[""]}),t})();const
une=["connform"];function
dne(t,i){1&t&&(g(0),m(1,"translate")),2&t&&T("
",f(1,1,"settings.iconnection.title")," ")}function
pne(t,i){}function hne(t,i){if(1&t){cons
t
e=I();l(0,"div",12)(1,"label",44),g(2),m(3,"translate"),c(),l(4,"p-inputNumber",45),C("ngModelChange",function(s){return
v(e),d(3).work.switchPort=s}),c(),l(5,"small",16),g(6),m(7,"translate"),c()()}if(2&t){const
e=d(3);a(2),S(f(3,7,"settings.iconnection.switchport_label")),a(2),p("ngModel",e.work.switchPort)("showButtons",!0)("min",1)("max",e.diseqcTree.SwitchPorts)("step",1),a(2),T("
",f(7,9,"settings.iconnection.switchport_desc")," ")}}function
mne(t,i){if(1&t){const
e=I();l(0,"div")(1,"div",12)(2,"label",46),g(3),m(4,"translate"),c(),l(5,"p-inputNumber",47),C("ngModelChange",function(s){return
v(e),d(3).work.rotorDegrees=s}),c(),k(6,"br")(7,"br"),l(8,"div",48)(9,"p-radioButton",49),C("ngModelChange",function(s){return
v(e),d(3).work.hemisphere=s}),c(),l(10,"label",50),g(11),m(12,"translate"),c()(),l(13,"div",48)(14,"p-radioButton",51),C("ngModelChange",function(s){return
v(e),d(3).work.hemisphere=s}),c(),l(15,"label",52),g(16),m(17,"translate"),c()(),l(18,"small",16),g(19),m(2
0,"translate"),c()()()}if(2&t){const
e=d(3);a(3),S(f(4,10,"settings.iconnection.longitude_label")),a(2),p("ngModel",e.work.rotorDegrees)("min",0)("max",180)("maxFractionDigits",4),a(4),p("ngModel",e.work.hemisphere),a(2),S(f(12,12,"settings.iconnection.longitude_east")),a(3),p("ngModel",e.work.hemisphere),a(2),S(f(17,14,"settings.iconnection.longitude_west")),a(3),T("
",f(20,16,"settings.iconnection.longitude_desc")," ")}}function
fne(t,i){if(1&t){const
e=I();l(0,"div",12)(1,"label",53),g(2),m(3,"translate"),c(),l(4,"div",48)(5,"p-radioButton",54),C("ngModelChange",function(s){return
v(e),d(3).work.scrPort=s}),c(),l(6,"label",55),g(7),m(8,"translate"),c()(),l(9,"div",48)(10,"p-radioButton",56),C("ngModelChange",function(s){return
v(e),d(3).work.scrPort=s}),c(),l(11,"label",57),g(12),m(13,"translate"),c()(),l(14,"small",16),g(15),m(16,"translate"),c()()}if(2&t){const
e=d(3);a(2),S(f(3,6,"settings.iconnection.unicablepos_label")),a(3),p("ngModel",e.work.scrPort),a(2),S(f(8,8,"settings
.iconnection.unicablepos_porta")),a(3),p("ngModel",e.work.scrPort),a(2),S(f(13,10,"settings.iconnection.unicablepos_portb")),a(3),T("
",f(16,12,"settings.iconnection.unicablepos_desc")," ")}}function
gne(t,i){1&t&&(l(0,"div",41),_(1,hne,8,11,"div",42),_(2,mne,21,18,"div",43),_(3,fne,17,14,"div",42),c()),2&t&&(p("ngSwitch",d(2).diseqcTree.Type),a(1),p("ngSwitchCase","switch"),a(1),p("ngSwitchCase","rotor"),a(1),p("ngSwitchCase","scr"))}function
_ne(t,i){if(1&t){const
e=I();l(0,"div",12)(1,"label",58),g(2),m(3,"translate"),c(),l(4,"input",59,60),C("ngModelChange",function(s){return
v(e),d(2).card.InputName=s}),c(),l(6,"small",16),g(7),m(8,"translate"),c()()}if(2&t){const
e=d(2);a(2),S(f(3,3,"settings.iconnection.delivery_label")),a(2),p("ngModel",e.card.InputName),a(3),T("
",f(8,5,"settings.iconnection.delivery_desc")," ")}}function
bne(t,i){if(1&t){const
e=I();l(0,"p-dropdown",63,60),C("ngModelChange",function(s){return
v(e),d(3).card.InputName=s}),c()}if(2&t){const e=d(3);p("options
",e.currentDevice.InputNames)("ngModel",e.card.InputName)}}function
vne(t,i){if(1&t&&(l(0,"div",12)(1,"label",61),g(2),m(3,"translate"),c(),_(4,bne,2,2,"p-dropdown",62),l(5,"small",16),g(6),m(7,"translate"),c()()),2&t){const
e=d(2);a(2),S(f(3,3,"settings.iconnection.input_label")),a(2),p("ngIf",e.work.isReady),a(2),T("
",f(7,5,"settings.capture.inputname_desc")," ")}}function
Cne(t,i){if(1&t){const
e=I();l(0,"div",12)(1,"label",64),g(2),m(3,"translate"),c(),l(4,"input",65,66),C("ngModelChange",function(s){return
v(e),d(2).card.ExternalCommand=s}),c(),l(6,"small",16),g(7),m(8,"translate"),c()()}if(2&t){const
e=d(2);a(2),S(f(3,3,"settings.iconnection.externalcmd_label")),a(2),p("ngModel",e.card.ExternalCommand),a(3),T("
",f(8,5,"settings.iconnection.externalcmd_desc")," ")}}function
yne(t,i){if(1&t){const
e=I();l(0,"div",12)(1,"label",67),g(2),m(3,"translate"),c(),l(4,"input",68,69),C("ngModelChange",function(s){return
v(e),d(2).card.TuneChan=s}),c(),l(6,"small",16),g(7),m(8,"translat
e"),c()()}if(2&t){const
e=d(2);a(2),S(f(3,3,"settings.iconnection.tunechan_label")),a(2),p("ngModel",e.card.TuneChan),a(3),T("
",f(8,5,"settings.iconnection.tunechan_desc")," ")}}const
Id=function(){return{minWidth:"400px"}};function wne(t,i){if(1&t){const
e=I();l(0,"div",12)(1,"label",70),g(2),m(3,"translate"),c(),l(4,"p-dropdown",71,72),C("ngModelChange",function(s){return
v(e),d(2).card.Quicktune=s}),c(),l(6,"small",16),g(7),m(8,"translate"),c()()}if(2&t){const
e=d(2);a(2),S(f(3,8,"settings.iconnection.quicktune_label")),a(2),q(A(12,Id)),p("options",e.quickTuneValues)("ngModel",e.card.Quicktune)("editable",!1)("maxlength",0),a(3),T("
",f(8,10,"settings.iconnection.quicktune_desc")," ")}}function
Tne(t,i){if(1&t){const
e=I();l(0,"div",12)(1,"p-checkbox",73,74),C("ngModelChange",function(s){return
v(e),d(2).card.DishnetEIT=s}),m(3,"translate"),c(),l(4,"small",16),g(5),m(6,"translate"),c()()}if(2&t){const
e=d(2);a(1),x("label",f(3,4,"settings.iconnection.dishneteit_label")),p("ngMod
el",e.card.DishnetEIT)("binary",!0),a(4),T("
",f(6,6,"settings.iconnection.dishneteit_desc")," ")}}function
Sne(t,i){if(1&t&&(l(0,"p-fieldset",75),m(1,"translate"),k(2,"app-channelscan",76),c()),2&t){const
e=d(2);x("legend",f(1,7,"settings.iconnection.scan_title")),p("collapsed",!0)("toggleable",!0),a(2),p("card",e.card)("cardList",e.cardList)("iconnection",e)("videoSourceLookup",e.videoSourceLookup)}}function
xne(t,i){if(1&t){const
e=I();l(0,"p-button",77),C("click",function(){return
v(e),d(2).work.fetchChannelsDialog=!1}),m(1,"translate"),c(),l(2,"p-button",78),C("click",function(){return
v(e),d(2).fetchChannels()}),m(3,"translate"),c()}2&t&&(x("label",f(1,2,"common.no")),a(2),x("label",f(3,4,"common.yes")))}const
Dne=function(t){return{num:t}},Mne=function(){return{width:"50vw"}};function
kne(t,i){if(1&t){const
e=I();l(0,"div",8)(1,"div",9),_(2,gne,4,4,"div",10),_(3,_ne,9,7,"div",11),_(4,vne,8,7,"div",11),l(5,"div",12)(6,"label",13),g(7),m(8,"translate"),c(),l(9,"input",14,15),C(
"ngModelChange",function(s){return
v(e),d().card.DisplayName=s}),c(),l(11,"small",16),g(12),m(13,"translate"),c()(),l(14,"div",12)(15,"label",17),g(16),m(17,"translate"),c(),l(18,"p-dropdown",18,19),C("ngModelChange",function(s){return
v(e),d().card.SourceId=s})("onChange",function(){return
v(e),d().fillChannelList()}),c(),l(20,"small",16),g(21),m(22,"translate"),c()(),_(23,Cne,9,7,"div",11),_(24,yne,9,7,"div",11),_(25,wne,9,13,"div",11),_(26,Tne,7,8,"div",11),_(27,Sne,3,9,"p-fieldset",20),k(28,"br")(29,"br"),l(30,"div",12)(31,"div",8)(32,"div",21)(33,"p-button",22),C("onClick",function(){return
v(e),d().work.fetchChannelsDialog=!0}),m(34,"translate"),c()(),l(35,"div",21),g(36),m(37,"translate"),c()(),l(38,"small",16),g(39),m(40,"translate"),c()(),l(41,"p-dialog",23),C("visibleChange",function(s){return
v(e),d().work.fetchChannelsDialog=s}),l(42,"p"),g(43),m(44,"translate"),c(),l(45,"p"),g(46),m(47,"translate"),c(),_(48,xne,4,6,"ng-template",7),c(),l(49,"div",12)(50,"label",24),g(51
),m(52,"translate"),c(),l(53,"p-dropdown",25,26),C("ngModelChange",function(s){return
v(e),d().card.StartChannel=s}),c(),l(55,"small",16),g(56),m(57,"translate"),c()(),l(58,"p-fieldset",27),m(59,"translate"),l(60,"div",12)(61,"label",28),g(62),m(63,"translate"),c(),l(64,"p-inputNumber",29),C("ngModelChange",function(s){return
v(e),d().card.RecLimit=s}),c(),l(65,"small",16),g(66),m(67,"translate"),c()(),l(68,"div",12)(69,"p-checkbox",30,31),C("ngModelChange",function(s){return
v(e),d().card.SchedGroup=s}),m(71,"translate"),c(),l(72,"small",16),g(73),m(74,"translate"),c()(),l(75,"div",12)(76,"label",32),g(77),m(78,"translate"),c(),l(79,"p-inputNumber",33),C("ngModelChange",function(s){return
v(e),d().card.RecPriority=s}),c(),l(80,"small",16),g(81),m(82,"translate"),c()(),l(83,"div",12)(84,"label",34),g(85),m(86,"translate"),c(),l(87,"p-inputNumber",35),C("ngModelChange",function(s){return
v(e),d().card.SchedOrder=s}),c(),l(88,"small",16),g(89),m(90,"translate"),c()(),l(91,"div",12)(92
,"label",36),g(93),m(94,"translate"),c(),l(95,"p-inputNumber",37),C("ngModelChange",function(s){return
v(e),d().card.LiveTVOrder=s}),c(),l(96,"small",16),g(97),m(98,"translate"),c()(),l(99,"div",12)(100,"label",38),g(101),m(102,"translate"),c(),l(103,"p-dropdown",39,40),C("ngModelChange",function(s){return
v(e),d().work.inputGroupName=s}),c(),l(105,"small",16),g(106),m(107,"translate"),c()()()()()}if(2&t){const
e=d(),n=F(1);a(2),p("ngIf",e.diseqcTree),a(1),p("ngIf","DVB"==e.card.CardType),a(1),p("ngIf","DVB"!=e.card.CardType),a(3),S(f(8,80,"settings.iconnection.displayname_label")),a(2),p("ngModel",e.card.DisplayName),a(3),T("
",f(13,82,"settings.iconnection.displayname_desc"),"
"),a(4),S(f(17,84,"settings.iconnection.sourceid_label")),a(2),q(A(129,Id)),p("options",e.videoSourceList.VideoSourceList.VideoSources)("ngModel",e.card.SourceId)("editable",!1)("maxlength",0),a(3),T("
",f(22,86,"settings.iconnection.sourceid_desc"),"
"),a(2),p("ngIf",e.work.isEncoder||e.work.isUnscanable),a
(1),p("ngIf",e.work.showPresetTuner),a(1),p("ngIf",!e.work.isEncoder&&!e.work.isUnscanable),a(1),p("ngIf","DVB"==e.card.CardType),a(1),p("ngIf",!e.work.isUnscanable),a(6),x("label",f(34,88,"settings.iconnection.fetch.label")),p("disabled",!e.card.SourceId||n.dirty||1==e.work.fetchStatus||e.setupService.schedulingEnabled),a(3),T("
\xa0\xa0",Dt(37,90,e.fetchMessages[e.work.fetchStatus],U(130,Dne,e.work.fetchCount)),"
"),a(3),T(" ",f(40,93,"settings.iconnection.fetch.desc"),"
"),a(2),q(A(132,Mne)),p("visible",e.work.fetchChannelsDialog)("modal",!0)("draggable",!1)("resizable",!1),a(2),S(f(44,95,"settings.iconnection.fetch.warning")),a(3),S(f(47,97,"settings.common.ru_sure")),a(5),S(f(52,99,"settings.iconnection.startchan_label")),a(2),q(A(133,Id)),p("options",e.sourceChannels)("ngModel",e.card.StartChannel)("editable",!1),a(3),T("
",f(57,101,"settings.iconnection.startchan_desc"),"
"),a(2),x("legend",f(59,103,"settings.iconnection.interact_title")),p("toggleable",!0)("collapsed",!0),a(
4),S(f(63,105,"settings.iconnection.maxrec_label")),a(2),p("ngModel",e.card.RecLimit)("showButtons",!0)("min",1)("max",10)("step",1),a(2),T("
",f(67,107,"settings.iconnection.maxrec_desc"),"
"),a(3),x("label",f(71,109,"settings.iconnection.schedgrp_label")),p("ngModel",e.card.SchedGroup)("binary",!0),a(4),T("
",f(74,111,"settings.iconnection.schedgrp_desc"),"
"),a(4),S(f(78,113,"settings.iconnection.recpri_label")),a(2),p("ngModel",e.card.RecPriority)("showButtons",!0)("min",-99)("max",99)("step",1),a(2),T("
",f(82,115,"settings.iconnection.recpri_desc"),"
"),a(4),S(f(86,117,"settings.iconnection.schedorder_label")),a(2),p("ngModel",e.card.SchedOrder)("showButtons",!0)("min",0)("max",99)("step",1),a(2),T("
",f(90,119,"settings.iconnection.schedorder_desc"),"
"),a(4),S(f(94,121,"settings.iconnection.liveorder_label")),a(2),p("ngModel",e.card.LiveTVOrder)("showButtons",!0)("min",0)("max",99)("step",1),a(2),T("
",f(98,123,"settings.iconnection.liveorder_desc"),"
"),a(4),S(f(102,125,"se
ttings.iconnection.inpgroup_label")),a(2),q(A(134,Id)),p("options",e.selectGroups)("ngModel",e.work.inputGroupName)("editable",!0),a(3),T("
",f(107,127,"settings.iconnection.inpgroup_desc")," ")}}function
Ine(t,i){1&t&&(k(0,"p-message",84),m(1,"translate")),2&t&&x("text",f(1,1,"common.savesuccess"))}function
Ene(t,i){1&t&&(k(0,"p-message",85),m(1,"translate")),2&t&&x("text",f(1,1,"common.networkfail"))}function
Rne(t,i){if(1&t){const
e=I();l(0,"div",79)(1,"div",80),_(2,Ine,2,3,"p-message",81),_(3,Ene,2,3,"p-message",82),c(),l(4,"p-button",83),C("onClick",function(){v(e);const
s=d(),r=F(1);return
s.saveForm(),r.form.markAsPristine()}),m(5,"translate"),c()()}if(2&t){const
e=d(),n=F(1);a(2),p("ngIf",e.work.successCount>0&&0==e.work.errorCount&&!n.dirty),a(1),p("ngIf",e.work.errorCount>0),a(1),x("label",f(5,4,"common.save")),p("disabled",!n.dirty||!e.card.VideoDevice||e.setupService.schedulingEnabled)}}let
kS=(()=>{class t{constructor(e,n,s,r){this.translate=e,this.channelService=n,this
.captureCardService=s,this.setupService=r,this.allChannels=[],this.sourceChannels=[],this.inputGroups=[],this.selectGroups=[],this.captureDeviceList={CaptureDeviceList:{CaptureDevices:[]}},this.currentDevice={FrontendName:"Unknown",InputNames:["MPEG2TS"]},this.work={successCount:0,errorCount:0,expectedCount:0,recLimitUpd:!1,reloadGroups:!1,isEncoder:!1,isUnscanable:!1,hasTuner:!1,showPresetTuner:!1,inputGroupName:"",orgInputGroupName:"",fetchChannelsDialog:!1,fetchStatus:0,fetchCount:0,switchPort:0,rotorDegrees:0,scrPort:"",hemisphere:1,isReady:!1,startScan:!1},this.deviceFree=new
ct,this.orgInputGroupIds=[],this.fetchMessages=["","settings.iconnection.fetch.inprog","settings.iconnection.fetch.complete","settings.iconnection.fetch.failed"],this.messages={devNotExist:"settings.capture.dvb.devNotExist"},this.preEncodedTypes=["DVB","FIREWIRE","HDHOMERUN","FREEBOX","IMPORT","DEMO","ASI","CETON","VBOX","SATIP"],this.unscanableTypes=["FIREWIRE","HDPVR","IMPORT","DEMO","GO7007","MJPEG"],th
is.hasTunerTypes=["DVB","HDHOMERUN","FREEBOX","CETON","VBOX","SATIP"],this.quickTuneValues=[{prompt:"settings.iconnection.quicktune.never",value:0},{prompt:"settings.iconnection.quicktune.livetv",value:1},{prompt:"settings.iconnection.quicktune.always",value:2}],this.saveObserver={next:o=>{o.bool?(this.work.successCount++,this.work.recLimitUpd&&(this.work.successCount==this.work.expectedCount?this.captureCardService.SetInputMaxRecordings(this.card.CardId,this.card.RecLimit).subscribe(this.saveObserver):this.work.successCount==this.work.expectedCount+1&&(this.parentComponent.loadCards(!1),this.work.recLimitUpd=!1)),this.work.successCount==this.work.expectedCount&&this.work.reloadGroups&&(this.loadInputGroups(),this.work.reloadGroups=!1),this.work.successCount==this.work.expectedCount&&this.work.startScan&&this.scanComponent&&(this.work.startScan=!1,this.currentForm.form.markAsPristine(),this.scanComponent.startScan())):(console.log("saveObserver
error",o),this.work.startScan=!1,this.
work.errorCount++,this.currentForm.form.markAsDirty())},error:o=>{console.log("saveObserver
error",o),this.work.startScan=!1,this.work.errorCount++,this.currentForm.form.markAsDirty()}},this.quickTuneValues.forEach(o=>e.get(o.prompt).subscribe(u=>o.prompt=u)),this.loadChannels(),this.loadInputGroups()}loadChannels(){this.channelService.GetChannelInfoList({Details:!0}).subscribe(n=>{this.allChannels=n.ChannelInfoList.ChannelInfos,this.fillChannelList()})}fillChannelList(){this.sourceChannels=this.allChannels.filter(e=>e.SourceId==this.card.SourceId),this.sourceChannels.find(e=>e.ChanNum==this.card.StartChannel)||(this.card.StartChannel="")}loadInputGroups(){this.captureCardService.GetInputGroupList().subscribe(e=>{this.inputGroups=e.InputGroupList.InputGroups,this.inputGroups.forEach(n=>{if(Ju("user:")){const
s=n.InputGroupName.substring(5);-1==this.selectGroups.findIndex(r=>s==r.InputGroupName)&&this.selectGroups.push({CardInputId:0,InputGroupId:n.InputGroupId,InputGroupName:s}),n.C
ardInputId==this.card.CardId&&(this.work.inputGroupName||(this.work.inputGroupName=s,this.work.orgInputGroupName=s),this.orgInputGroupIds.push(n.InputGroupId))}})})}ngOnInit(){this.work.isEncoder=this.preEncodedTypes.indexOf(this.card.CardType)<0,this.work.isUnscanable=this.unscanableTypes.indexOf(this.card.CardType)>=0,this.work.hasTuner=this.hasTunerTypes.indexOf(this.card.CardType)>=0,(this.work.isEncoder||this.work.isUnscanable)&&(this.work.hasTuner||"EXTERNAL"==this.card.CardType)&&(this.work.showPresetTuner=!0),"DVB"==this.card.CardType&&this.loadDiseqc(),this.card.DisplayName||(this.card.DisplayName="Input
"+this.card.CardId),this.captureCardService.GetCaptureDeviceList(this.card.CardType).subscribe({next:e=>{this.captureDeviceList=e,this.setupDevice(),this.deviceFree.next(!0)},error:e=>{console.log("GetCaptureDeviceList",e),this.work.errorCount++}})}setupDevice(){if(this.card.VideoDevice){let
e=this.captureDeviceList.CaptureDeviceList.CaptureDevices.find(n=>n.VideoDevice==th
is.card.VideoDevice);e?this.currentDevice=e:(this.currentDevice={VideoDevice:this.card.VideoDevice,FrontendName:this.messages.devNotExist,InputNames:["MPEG2TS"]},this.captureDeviceList.CaptureDeviceList.CaptureDevices.push(this.currentDevice))}this.currentDevice&&this.card.InputName&&(this.currentDevice.InputNames.includes(this.card.InputName)||this.currentDevice.InputNames.push(this.card.InputName),this.currentDevice.InputNames.includes("MPEG2TS")||this.currentDevice.InputNames.push("MPEG2TS")),this.work.isReady=!0}loadDiseqc(){this.captureCardService.GetDiseqcTreeList().subscribe({next:e=>{this.diseqcTreeList=e,this.setupDiseqc()},error:e=>{console.log("GetDiseqcTreeList",e),this.work.errorCount++}})}setupDiseqc(){let
e=this.diseqcTreeList.DiseqcTreeList.DiseqcTrees.find(n=>n.DiSEqCId==this.card.DiSEqCId);if(e)switch(this.diseqcTree=e,this.diseqcTree.Type){case"switch":case"rotor":case"scr":this.captureCardService.GetDiseqcConfigList().subscribe({next:n=>{let
s=n.DiseqcConfigList.
DiseqcConfigs.find(r=>r.CardId==this.card.CardId&&r.DiSEqCId==this.card.DiSEqCId);if(this.diseqcConfig=s||{CardId:this.card.CardId,DiSEqCId:this.card.DiSEqCId,Value:""},"switch"==this.diseqcTree.Type)this.work.switchPort=Number.parseInt(this.diseqcConfig.Value)-1,Number.isNaN(this.work.switchPort)&&(this.work.switchPort=0);else
if("rotor"==this.diseqcTree.Type)this.work.rotorDegrees=Number.parseFloat(this.diseqcConfig.Value),Number.isNaN(this.work.rotorDegrees)&&(this.work.rotorDegrees=0),this.work.rotorDegrees<0?(this.work.hemisphere=-1,this.work.rotorDegrees=-this.work.rotorDegrees):this.work.hemisphere=1;else
if("scr"==this.diseqcTree.Type)switch(this.diseqcConfig.Value){case"0":this.work.scrPort="A";break;case"1":this.work.scrPort="B";break;default:this.work.scrPort=""}},error:n=>{console.log("GetDiseqcTreeList",n),this.work.errorCount++}})}}ngAfterViewInit(){this.setupService.setCurrentForm(this.currentForm),this.currentForm.form.markAsDirty(),setTimeout(()=>{this.currentForm.f
orm.markAsPristine()},0)}fetchChannels(){this.work.fetchChannelsDialog=!1;let
e={SourceId:this.card.SourceId,CardId:this.card.CardId,WaitForFinish:!0};this.work.fetchStatus=1,this.channelService.FetchChannelsFromSource(e).subscribe({next:n=>{this.work.fetchStatus=n.int>0?2:3,this.work.fetchCount=n.int,this.loadChannels()},error:n=>{console.log("fetchChannels",n),this.work.fetchStatus=3,this.work.fetchCount=0}})}saveForm(){this.work.successCount=0,this.work.errorCount=0,this.work.expectedCount=0,this.work.inputGroupName!=this.work.orgInputGroupName?this.work.inputGroupName?this.captureCardService.AddUserInputGroup(this.work.inputGroupName).subscribe({next:n=>{this.saveCard(n.int)},error:n=>{console.log("saveForm
error",n),this.work.errorCount++,this.currentForm.form.markAsDirty()}}):this.saveCard(-1):this.saveCard(0)}saveCard(e){0!=e&&(this.work.reloadGroups=!0);let
n=0;if(this.work.recLimitUpd=!1,this.cardList.CaptureCardList.CaptureCards.forEach(s=>{(s.CardId==this.card.CardId||s.P
arentId==this.card.CardId)&&(this.captureCardService.UpdateCaptureCard(s.CardId,"inputname",s.InputName=this.card.InputName).subscribe(this.saveObserver),this.captureCardService.UpdateCaptureCard(s.CardId,"displayname",s.DisplayName=this.card.DisplayName).subscribe(this.saveObserver),this.captureCardService.UpdateCaptureCard(s.CardId,"sourceid",String(s.SourceId=this.card.SourceId)).subscribe(this.saveObserver),this.captureCardService.UpdateCaptureCard(s.CardId,"quicktune",String(s.Quicktune=this.card.Quicktune)).subscribe(this.saveObserver),this.captureCardService.UpdateCaptureCard(s.CardId,"dishnet_eit",(s.DishnetEIT=this.card.DishnetEIT)?"1":"0").subscribe(this.saveObserver),this.card.StartChannel&&(this.captureCardService.UpdateCaptureCard(s.CardId,"startchan",s.StartChannel=this.card.StartChannel).subscribe(this.saveObserver),this.work.expectedCount++),this.captureCardService.UpdateCaptureCard(s.CardId,"recpriority",String(s.RecPriority=this.card.RecPriority)).subscribe(this.sa
veObserver),this.captureCardService.UpdateCaptureCard(s.CardId,"livetvorder",String(s.LiveTVOrder=this.card.LiveTVOrder)).subscribe(this.saveObserver),this.captureCardService.UpdateCaptureCard(s.CardId,"reclimit",String(s.RecLimit=this.card.RecLimit)).subscribe(this.saveObserver),this.card.SchedGroup&&this.card.CardId!=s.CardId?(s.SchedGroup=!1,s.SchedOrder=0):(s.SchedGroup=this.card.SchedGroup,s.SchedOrder=this.card.SchedOrder),this.captureCardService.UpdateCaptureCard(s.CardId,"schedgroup",s.SchedGroup?"1":"0").subscribe(this.saveObserver),this.captureCardService.UpdateCaptureCard(s.CardId,"schedorder",String(s.SchedOrder)).subscribe(this.saveObserver),this.work.expectedCount+=10,0!=e&&this.orgInputGroupIds.forEach(r=>{this.captureCardService.UnlinkInputGroup(s.CardId,r).subscribe(this.saveObserver),this.work.expectedCount++}),e>0&&(this.captureCardService.LinkInputGroup(s.CardId,e).subscribe(this.saveObserver),this.work.expectedCount++),n++)}),n!=this.card.RecLimit&&(this.work.re
cLimitUpd=!0),this.diseqcConfig){let
s="";if("switch"==this.diseqcTree.Type)s=(this.work.switchPort-1).toString();else
if("rotor"==this.diseqcTree.Type)s=(this.work.rotorDegrees*this.work.hemisphere).toString();else
if("scr"==this.diseqcTree.Type)switch(this.work.scrPort){case"A":default:s="0";break;case"B":s="1"}s!=this.diseqcConfig.Value&&(this.diseqcConfig.Value=s,this.captureCardService.DeleteDiseqcConfig(this.card.CardId).subscribe(r=>{this.captureCardService.AddDiseqcConfig(this.diseqcConfig).subscribe(this.saveObserver)}))}}}return
t.\u0275fac=function(e){return
new(e||t)(D(Oe),D(Or),D(Gt),D(Me))},t.\u0275cmp=z({type:t,selectors:[["app-iconnection"]],viewQuery:function(e,n){if(1&e&&W(une,5),2&e){let
s;V(s=B())&&(n.currentForm=s.first)}},inputs:{card:"card",cardList:"cardList",videoSourceLookup:"videoSourceLookup",videoSourceList:"videoSourceList",parentComponent:"parentComponent"},decls:9,vars:0,consts:[["name","connform",1,"ml-3","mr-3"],["connform","ngForm"],["top",""],[1,"
m-5"],["pTemplate","title"],["pTemplate","subtitle"],["pTemplate","content"],["pTemplate","footer"],[1,"grid"],[1,"mb-4","w-full"],[3,"ngSwitch",4,"ngIf"],["class","form-group
field",4,"ngIf"],[1,"form-group","field"],["for","DisplayName",1,"label","block"],["pInputText","","id","DisplayName","name","DisplayName",1,"mb-2","form-control","w-full",3,"ngModel","ngModelChange"],["DisplayName","ngModel"],[1,"block"],["for","SourceId",1,"label","block"],["optionLabel","SourceName","optionValue","Id","name","SourceId",3,"options","ngModel","editable","maxlength","ngModelChange","onChange"],["SourceId","ngModel"],["class","mb-4
w-full",3,"legend","collapsed","toggleable",4,"ngIf"],[2,"display","flex","align-items","center"],["icon","pi
pi-download","iconPos","left",3,"label","disabled","onClick"],["header","Fetch
Channels",3,"visible","modal","draggable","resizable","visibleChange"],["for","StartChannel",1,"label","block"],["placeholder","Select
Item","optionLabel","ChanNum","optionValue","
ChanNum","scrollHeight","400px","name","StartChannel",3,"options","ngModel","editable","ngModelChange"],["StartChannel","ngModel"],[1,"mb-4","w-full",3,"legend","toggleable","collapsed"],["for","RecLimit",1,"label","block"],["name","RecLimit","id","RecLimit",3,"ngModel","showButtons","min","max","step","ngModelChange"],["inputId","SchedGroup","name","SchedGroup",1,"label","mb-2","w-full",3,"ngModel","binary","label","ngModelChange"],["DVBWaitForSeqStart","ngModel"],["for","RecPriority",1,"label","block"],["name","RecPriority","id","RecPriority",3,"ngModel","showButtons","min","max","step","ngModelChange"],["for","SchedOrder",1,"label","block"],["name","SchedOrder","id","SchedOrder",3,"ngModel","showButtons","min","max","step","ngModelChange"],["for","LiveTVOrder",1,"label","block"],["name","LiveTVOrder","id","LiveTVOrder",3,"ngModel","showButtons","min","max","step","ngModelChange"],["for","inputGroupName",1,"label","block"],["placeholder","Optional
Group Name","optionLabel","InputG
roupName","optionValue","InputGroupName","scrollHeight","400px","name","inputGroupName",3,"options","ngModel","editable","ngModelChange"],["inputGroupName","ngModel"],[3,"ngSwitch"],["class","form-group
field",4,"ngSwitchCase"],[4,"ngSwitchCase"],["for","Port",1,"label","block"],["name","Port","id","Port",3,"ngModel","showButtons","min","max","step","ngModelChange"],["for","Degrees",1,"label","block"],["name","Degrees","id","Degrees",3,"ngModel","min","max","maxFractionDigits","ngModelChange"],[1,"field-radiobutton"],["name","hemisphere","value","1","inputId","east",3,"ngModel","ngModelChange"],["for","east",1,"label","block"],["name","hemisphere","value","-1","inputId","west",3,"ngModel","ngModelChange"],["for","west",1,"label","block"],[1,"label","block"],["name","scrPort","value","A","inputId","portA",3,"ngModel","ngModelChange"],["for","portA",1,"label","block"],["name","scrPort","value","B","inputId","portB",3,"ngModel","ngModelChange"],["for","portB",1,"label","block"],["for",
"Delivery",1,"label","block"],["pInputText","","id","Delivery","name","Delivery","disabled","true",1,"mb-2","form-control","w-full",3,"ngModel","ngModelChange"],["InputName","ngModel"],["for","InputName",1,"label","block"],["name","InputName",3,"options","ngModel","ngModelChange",4,"ngIf"],["name","InputName",3,"options","ngModel","ngModelChange"],["for","ExternalCommand",1,"label","block"],["pInputText","","id","ExternalCommand","name","ExternalCommand",1,"mb-2","form-control","w-full",3,"ngModel","ngModelChange"],["ExternalCommand","ngModel"],["for","TuneChan",1,"label","block"],["pInputText","","id","TuneChan","name","TuneChan",1,"mb-2","form-control","w-full",3,"ngModel","ngModelChange"],["TuneChan","ngModel"],["for","Quicktune",1,"label","block"],["optionLabel","prompt","optionValue","value","name","Quicktune",3,"options","ngModel","editable","maxlength","ngModelChange"],["Quicktune","ngModel"],["inputId","DishnetEIT","name","DishnetEIT",1,"label","mb-2","w-full",3,"ngModel","b
inary","label","ngModelChange"],["DishnetEIT","ngModel"],[1,"mb-4","w-full",3,"legend","collapsed","toggleable"],[3,"card","cardList","iconnection","videoSourceLookup"],["icon","pi
pi-times-circle","styleClass","p-button-plain",3,"label","click"],["icon","pi
pi-check-circle","styleClass","p-button-plain",3,"label","click"],[1,"grid","nogutter"],[1,"col-12"],["severity","success",3,"text",4,"ngIf"],["severity","error",3,"text",4,"ngIf"],["icon","pi
pi-save","iconPos","left",1,"col","pr-1",3,"label","disabled","onClick"],["severity","success",3,"text"],["severity","error",3,"text"]],template:function(e,n){1&e&&(l(0,"form",0,1),k(2,"span",null,2),l(4,"p-card",3),_(5,dne,2,3,"ng-template",4),_(6,pne,0,0,"ng-template",5),_(7,kne,108,135,"ng-template",6),_(8,Rne,6,6,"ng-template",7),c()())},styles:[""]}),t})();function
Lne(t,i){if(1&t){const
e=I();l(0,"p-button",10),C("onClick",function(){return
v(e),d().displayNewDialog=!1}),m(1,"translate"),c(),l(2,"p-button",11),C("onClick",function(){
return v(e),d().newProfile()}),m(3,"translate"),c()}if(2&t){const
e=d();x("label",f(1,3,"common.cancel")),a(2),x("label",f(3,5,"common.ok")),p("disabled",e.rejectName())}}function
One(t,i){1&t&&(l(0,"div",12),k(1,"br")(2,"p-message",13),m(3,"translate"),k(4,"br"),c()),2&t&&(a(2),x("text",f(3,1,"settings.common.successful_delete")))}function
Ane(t,i){1&t&&(l(0,"div",12),k(1,"br")(2,"p-message",14),m(3,"translate"),k(4,"br"),c()),2&t&&(a(2),x("text",f(3,1,"common.networkfail")))}function
Pne(t,i){if(1&t&&(l(0,"div",18)(1,"div",19),g(2),l(3,"b"),g(4),c()()()),2&t){const
e=d(),n=e.$implicit,s=e.index,r=d();a(2),T(" ",n.Name,"
"),a(2),T("\xa0",r.dirtyMessages[s],"")}}function
Fne(t,i){if(1&t){const
e=I();l(0,"p-button",22),C("click",function(){v(e);const
s=d(2).index;return
d().displayDeleteThis[s]=!1}),m(1,"translate"),c(),l(2,"p-button",23),C("click",function(){v(e);const
s=d(2).index;return
d().deleteThis(s)}),m(3,"translate"),c()}2&t&&(x("label",f(1,2,"common.no")),a(2),x("label",f(3
,4,"common.yes")))}const
IS=function(){return{width:"50vw"}},Nne=function(t,i){return{ProfileName:t,GroupName:i}};function
Vne(t,i){if(1&t){const
e=I();l(0,"p-button",20),C("onClick",function(){v(e);const
s=d().index;return
d().displayDeleteThis[s]=!0}),m(1,"translate"),c(),l(2,"p-dialog",2),C("visibleChange",function(s){v(e);const
r=d().index;return
d().displayDeleteThis[r]=s}),m(3,"translate"),l(4,"h2"),g(5),m(6,"translate"),c(),l(7,"p"),g(8),m(9,"translate"),c(),_(10,Fne,4,6,"ng-template",5),c(),k(11,"app-recprofile",21)}if(2&t){const
e=d(),n=e.index,s=e.$implicit,r=d();x("label",f(1,14,"settings.rprofiles.delete_this")),p("disabled",!r.group.RecProfiles[n].Id||r.setupService.schedulingEnabled),a(2),q(A(23,IS)),x("header",f(3,16,"settings.rprofiles.delete_this")),p("visible",r.displayDeleteThis[n])("modal",!0)("draggable",!1)("resizable",!1),a(3),S(f(6,18,"settings.common.ru_sure")),a(3),S(Dt(9,20,"settings.rprofiles.delete_details",Ge(24,Nne,r.group.RecProfiles[n].Name,r.group.N
ame))),a(3),p("profile",s)("group",r.group)("parentComponent",r)}}function
Bne(t,i){if(1&t){const
e=I();l(0,"p-accordionTab",15),C("selectedChange",function(s){const
o=v(e).index;return
d().activeTab[o]=s}),_(1,Pne,5,2,"ng-template",16),_(2,Vne,12,27,"ng-template",17),c()}if(2&t){const
e=i.index,n=d();p("disabled",n.disabledTab[e])("selected",n.activeTab[e])}}let
ES=(()=>{class
t{constructor(e,n,s){this.captureCardService=e,this.setupService=n,this.translate=s,this.currentTab=-1,this.deletedTab=-1,this.dirtyMessages=[],this.forms=[],this.disabledTab=[],this.activeTab=[],this.readyCount=0,this.displayNewDialog=!1,this.newProfileName="",this.successCount=0,this.expectedCount=0,this.errorCount=0,this.displayDeleteThis=[],this.dirtyText="settings.common.unsaved",this.warningText="settings.common.warning",this.deletedText="settings.common.deleted",this.newText="settings.common.new",this.delObserver={next:r=>{r.bool?(this.successCount++,this.deletedTab>-1&&(this.dirtyMessages[this.deleted
Tab]=this.deletedText,this.disabledTab[this.deletedTab]=!0,this.activeTab[this.deletedTab]=!1,this.deletedTab=-1)):(this.errorCount++,this.deletedTab=-1)},error:r=>{console.error(r),this.errorCount++}},s.get(this.dirtyText).subscribe(r=>this.dirtyText=r),s.get(this.warningText).subscribe(r=>this.warningText=r),s.get(this.deletedText).subscribe(r=>this.deletedText=r),s.get(this.newText).subscribe(r=>this.newText=r)}ngOnInit(){let
e=this.parentComponent.groups.findIndex(n=>n===this.group);this.parentComponent.profileGroups[e]=this}onTabOpen(e){this.showDirty();let
n=this.setupService.getCurrentForm();null!=n&&(this.forms[e.index]=n),this.setupService.setCurrentForm(null),this.currentTab=e.index,this.dirtyMessages[this.currentTab]=""}onTabClose(e){this.showDirty(),this.currentTab=-1}showDirty(){-1==this.currentTab||this.disabledTab[this.currentTab]||(this.dirtyMessages[this.currentTab]=this.forms[this.currentTab]&&this.forms[this.currentTab].dirty?this.dirtyText:this.group.RecProfiles[
this.currentTab].Id?"":this.newText)}newProfile(){this.displayNewDialog=!1;for(let
n=0;n<this.activeTab.length;n++)this.activeTab[n]=!1;this.group.RecProfiles.push({Id:0,Name:this.newProfileName.trim(),VideoCodec:"MPEG-4",AudioCodec:"MP3",RecProfParams:[]}),this.currentTab=this.group.RecProfiles.length-1,this.showDirty()}deleteThis(e){this.errorCount=0,this.successCount=0,this.expectedCount=1,this.displayDeleteThis[e]=!1,this.deletedTab=e,this.captureCardService.DeleteRecProfile(this.group.RecProfiles[e].Id).subscribe(this.delObserver)}rejectName(){let
e=this.newProfileName.trim();return""==e||null!=this.group.RecProfiles.find(n=>n.Name==e)}confirm(e){return
oe(window.confirm(e))}canDeactivate(){let
e=this.setupService.getCurrentForm();return!(this.forms[this.currentTab]&&this.forms[this.currentTab].dirty||this.dirtyMessages.find(n=>n==this.dirtyText)||e&&e.dirty)||this.confirm(this.warningText)}allClean(){let
e=this.setupService.getCurrentForm();return!(this.forms[this.currentTab]&
&this.forms[this.currentTab].dirty||this.dirtyMessages.find(n=>n==this.dirtyText)||e&&e.dirty)}onWindowClose(e){let
n=this.setupService.getCurrentForm();(this.forms[this.currentTab]&&this.forms[this.currentTab].dirty||this.dirtyMessages.find(s=>s==this.dirtyText)||n&&n.dirty)&&(e.preventDefault(),e.returnValue=!1)}}return
t.\u0275fac=function(e){return
new(e||t)(D(Gt),D(Me),D(Oe))},t.\u0275cmp=z({type:t,selectors:[["app-profile-group"]],hostBindings:function(e,n){1&e&&C("beforeunload",function(r){return
n.onWindowClose(r)},!1,ni)},inputs:{group:"group",parentComponent:"parentComponent"},decls:19,vars:24,consts:[[1,"block","card","w-full"],["icon","pi
pi-plus-circle","styleClass","p-button-plain",3,"label","onClick"],[3,"header","visible","modal","draggable","resizable","visibleChange"],["pInputText","","id","Name","name","Name","autofocus","",1,"mb-2","form-control","w-full",3,"ngModel","ngModelChange"],["Name","ngModel"],["pTemplate","footer"],[1,"grid","nogutter"],["class","col-12
",4,"ngIf"],[1,"col-12","w-full",3,"onClose","onOpen"],[3,"disabled","selected","selectedChange",4,"ngFor","ngForOf"],["icon","pi
pi-times-circle","styleClass","p-button-plain",3,"label","onClick"],["icon","pi
pi-check-circle","styleClass","p-button-plain",3,"label","disabled","onClick"],[1,"col-12"],["severity","success",3,"text"],["severity","error",3,"text"],[3,"disabled","selected","selectedChange"],["pTemplate","header"],["pTemplate","content"],[1,"grid","w-full"],[1,"col-9","pr-1"],["styleClass","p-button-warning","icon","pi
pi-trash",3,"label","disabled","onClick"],[3,"profile","group","parentComponent"],["icon","pi
pi-times-circle","styleClass","p-button-plain",3,"label","click"],["icon","pi
pi-check-circle","styleClass","p-button-plain",3,"label","click"]],template:function(e,n){1&e&&(l(0,"div",0)(1,"h3"),g(2),m(3,"translate"),c(),l(4,"p-button",1),C("onClick",function(){return
n.displayNewDialog=!0}),m(5,"translate"),c(),l(6,"p-dialog",2),C("visibleChange",function(r){retu
rn
n.displayNewDialog=r}),m(7,"translate"),l(8,"p"),g(9),m(10,"translate"),c(),l(11,"input",3,4),C("ngModelChange",function(r){return
n.newProfileName=r}),c(),_(13,Lne,4,7,"ng-template",5),c(),l(14,"div",6),_(15,One,5,3,"div",7),_(16,Ane,5,3,"div",7),c(),l(17,"p-accordion",8),C("onClose",function(r){return
n.onTabClose(r)})("onOpen",function(r){return
n.onTabOpen(r)}),_(18,Bne,3,2,"p-accordionTab",9),c()()),2&e&&(a(2),We("",f(3,15,"settings.rprofiles.grouptitle"),"
",n.group.Name,""),a(2),x("label",f(5,17,"settings.rprofiles.new_profile")),a(2),q(A(23,IS)),x("header",f(7,19,"settings.rprofiles.new_profile")),p("visible",n.displayNewDialog)("modal",!0)("draggable",!1)("resizable",!1),a(3),S(f(10,21,"settings.rprofiles.enter_profile_name")),a(2),p("ngModel",n.newProfileName),a(4),p("ngIf",n.expectedCount&&n.successCount==n.expectedCount),a(1),p("ngIf",n.errorCount>0),a(2),p("ngForOf",n.group.RecProfiles))},styles:[""]}),t})();const
Hne=["recprofform"],qne=["top"];function Gne(t,i){if(
1&t&&(g(0),m(1,"translate")),2&t){const e=d();We("
",f(1,2,"settings.rprofiles.proftitle")," ",e.profile.Name,"
")}}function Une(t,i){}function zne(t,i){if(1&t){const
e=I();l(0,"div",12)(1,"p-checkbox",13,14),C("ngModelChange",function(s){v(e);const
r=d(2);return
r.profile.RecProfParams[r.findIx("autotranscode",!1)].Value=s}),m(3,"translate"),c(),l(4,"small",15),g(5),m(6,"translate"),c()()}if(2&t){const
e=d(2);a(1),x("label",f(3,4,"settings.rprofiles.autotranscode_label")),p("ngModel",e.profile.RecProfParams[e.findIx("autotranscode",!1)].Value)("binary",!0),a(4),T("
",f(6,6,"settings.rprofiles.autotranscode_desc")," ")}}function
jne(t,i){if(1&t){const
e=I();l(0,"div",12)(1,"label",16),g(2),m(3,"translate"),c(),l(4,"p-inputNumber",17),C("ngModelChange",function(s){v(e);const
r=d(2);return
r.profile.RecProfParams[r.findIx("width","480")].Value=s}),c(),l(5,"small",15),g(6),m(7,"translate"),c()()}if(2&t){const
e=d(2);a(2),S(f(3,7,"settings.rprofiles.width_label")),a(2),p("ngModel",e.pro
file.RecProfParams[e.findIx("width","480")].Value)("showButtons",!0)("min",160)("max",720)("step",16),a(2),T("
",f(7,9,"settings.rprofiles.width_desc")," ")}}function
$ne(t,i){if(1&t){const
e=I();l(0,"div",12)(1,"label",18),g(2),m(3,"translate"),c(),l(4,"p-inputNumber",19),C("ngModelChange",function(s){v(e);const
r=d(2);return
r.profile.RecProfParams[r.findIx("height","480")].Value=s}),c(),l(5,"small",15),g(6),m(7,"translate"),c()()}if(2&t){const
e=d(2);a(2),S(f(3,7,"settings.rprofiles.height_label")),a(2),p("ngModel",e.profile.RecProfParams[e.findIx("height","480")].Value)("showButtons",!0)("min",160)("max",480)("step",16),a(2),T("
",f(7,9,"settings.rprofiles.height_desc")," ")}}const
Ms=function(){return{minWidth:"400px"}};function Wne(t,i){if(1&t){const
e=I();l(0,"div",12)(1,"label",20),g(2),m(3,"translate"),c(),l(4,"p-dropdown",21,22),C("ngModelChange",function(s){v(e);const
r=d(2);return
r.profile.RecProfParams[r.findIx("recordingtype","all")].Value=s}),c(),l(6,"small",15),g(7)
,m(8,"translate"),c()()}if(2&t){const
e=d(2);a(2),S(f(3,8,"settings.rprofiles.recordingtype_label")),a(2),q(A(12,Ms)),p("options",e.recordingtypeOptions)("ngModel",e.profile.RecProfParams[e.findIx("recordingtype","all")].Value)("editable",!1)("maxlength",0),a(3),T("
",f(8,10,"settings.rprofiles.recordingtype_desc")," ")}}function
Kne(t,i){if(1&t){const
e=I();l(0,"div",12)(1,"p-checkbox",23,24),C("ngModelChange",function(s){v(e);const
r=d(2);return
r.profile.RecProfParams[r.findIx("recordmpts",!1)].Value=s}),m(3,"translate"),c(),l(4,"small",15),g(5),m(6,"translate"),c()()}if(2&t){const
e=d(2);a(1),x("label",f(3,4,"settings.rprofiles.recordmpts_label")),p("ngModel",e.profile.RecProfParams[e.findIx("recordmpts",!1)].Value)("binary",!0),a(4),T("
",f(6,6,"settings.rprofiles.recordmpts_desc")," ")}}function
Qne(t,i){if(1&t){const
e=I();l(0,"div",12)(1,"label",26),g(2),m(3,"translate"),c(),l(4,"p-dropdown",27,28),C("ngModelChange",function(s){return
v(e),d(3).profile.VideoCodec=s}),c(),k(6
,"small",15),c()}if(2&t){const
e=d(3);a(2),S(f(3,7,"settings.rprofiles.videocodec_label")),a(2),q(A(9,Ms)),p("options",e.params.Video)("ngModel",e.profile.VideoCodec)("editable",!1)("maxlength",0)}}function
Jne(t,i){if(1&t){const
e=I();l(0,"div",12)(1,"label",29),g(2),m(3,"translate"),c(),l(4,"p-inputNumber",30),C("ngModelChange",function(s){v(e);const
r=d(3);return
r.profile.RecProfParams[r.findIx("rtjpegquality","170")].Value=s}),c(),l(5,"small",15),g(6),m(7,"translate"),c()()}if(2&t){const
e=d(3);a(2),S(f(3,7,"settings.rprofiles.rtjpegquality_label")),a(2),p("ngModel",e.profile.RecProfParams[e.findIx("rtjpegquality","170")].Value)("showButtons",!0)("min",1)("max",255)("step",1),a(2),T("
",f(7,9,"settings.rprofiles.rtjpegquality_desc")," ")}}function
Yne(t,i){if(1&t){const
e=I();l(0,"div",12)(1,"label",31),g(2),m(3,"translate"),c(),l(4,"p-inputNumber",32),C("ngModelChange",function(s){v(e);const
r=d(3);return
r.profile.RecProfParams[r.findIx("rtjpeglumafilter","0")].Value=s}),c(),
l(5,"small",15),g(6),m(7,"translate"),c()()}if(2&t){const
e=d(3);a(2),S(f(3,7,"settings.rprofiles.rtjpeglumafilter_label")),a(2),p("ngModel",e.profile.RecProfParams[e.findIx("rtjpeglumafilter","0")].Value)("showButtons",!0)("min",0)("max",31)("step",1),a(2),T("
",f(7,9,"settings.rprofiles.rtjpegfilter_desc")," ")}}function
Zne(t,i){if(1&t){const
e=I();l(0,"div",12)(1,"label",33),g(2),m(3,"translate"),c(),l(4,"p-inputNumber",34),C("ngModelChange",function(s){v(e);const
r=d(3);return
r.profile.RecProfParams[r.findIx("rtjpegchromafilter","0")].Value=s}),c(),l(5,"small",15),g(6),m(7,"translate"),c()()}if(2&t){const
e=d(3);a(2),S(f(3,7,"settings.rprofiles.rtjpegchromafilter_label")),a(2),p("ngModel",e.profile.RecProfParams[e.findIx("rtjpegchromafilter","0")].Value)("showButtons",!0)("min",0)("max",31)("step",1),a(2),T("
",f(7,9,"settings.rprofiles.rtjpegfilter_desc")," ")}}function
Xne(t,i){if(1&t){const
e=I();l(0,"div",12)(1,"label",35),g(2),m(3,"translate"),c(),l(4,"p-inputNumber",36),
C("ngModelChange",function(s){v(e);const r=d(3);return
r.profile.RecProfParams[r.findIx("mpeg4bitrate","2200")].Value=s}),c(),l(5,"small",15),g(6),m(7,"translate"),c()()}if(2&t){const
e=d(3);a(2),S(f(3,7,"settings.rprofiles.mpeg4bitrate_label")),a(2),p("ngModel",e.profile.RecProfParams[e.findIx("mpeg4bitrate","2200")].Value)("showButtons",!0)("min",100)("max",8e3)("step",100),a(2),T("
",f(7,9,"settings.rprofiles.mpeg4bitrate_desc")," ")}}function
eie(t,i){if(1&t){const
e=I();l(0,"div",12)(1,"label",37),g(2),m(3,"translate"),c(),l(4,"p-inputNumber",38),C("ngModelChange",function(s){v(e);const
r=d(3);return
r.profile.RecProfParams[r.findIx("mpeg4maxquality","2")].Value=s}),c(),l(5,"small",15),g(6),m(7,"translate"),c()()}if(2&t){const
e=d(3);a(2),S(f(3,7,"settings.rprofiles.mpeg4maxquality_label")),a(2),p("ngModel",e.profile.RecProfParams[e.findIx("mpeg4maxquality","2")].Value)("showButtons",!0)("min",1)("max",31)("step",1),a(2),T("
",f(7,9,"settings.rprofiles.mpeg4quality_desc")," ")}
}function tie(t,i){if(1&t){const
e=I();l(0,"div",12)(1,"label",39),g(2),m(3,"translate"),c(),l(4,"p-inputNumber",40),C("ngModelChange",function(s){v(e);const
r=d(3);return
r.profile.RecProfParams[r.findIx("mpeg4minquality","15")].Value=s}),c(),l(5,"small",15),g(6),m(7,"translate"),c()()}if(2&t){const
e=d(3);a(2),S(f(3,7,"settings.rprofiles.mpeg4minquality_label")),a(2),p("ngModel",e.profile.RecProfParams[e.findIx("mpeg4minquality","15")].Value)("showButtons",!0)("min",1)("max",31)("step",1),a(2),T("
",f(7,9,"settings.rprofiles.mpeg4quality_desc")," ")}}function
nie(t,i){if(1&t){const
e=I();l(0,"div",12)(1,"label",41),g(2),m(3,"translate"),c(),l(4,"p-inputNumber",42),C("ngModelChange",function(s){v(e);const
r=d(3);return
r.profile.RecProfParams[r.findIx("hardwaremjpegquality","100")].Value=s}),c(),k(5,"small",15),c()}if(2&t){const
e=d(3);a(2),S(f(3,6,"settings.rprofiles.hardwaremjpegquality_label")),a(2),p("ngModel",e.profile.RecProfParams[e.findIx("hardwaremjpegquality","100")].Valu
e)("showButtons",!0)("min",0)("max",100)("step",1)}}const
RS=function(){return["1","2","4"]};function
iie(t,i){if(1&t){const
e=I();l(0,"div",12)(1,"label",43),g(2),m(3,"translate"),c(),l(4,"p-dropdown",44,45),C("ngModelChange",function(s){v(e);const
r=d(3);return
r.profile.RecProfParams[r.findIx("hardwaremjpeghdecimation","2")].Value=s}),c(),k(6,"small",15),c()}if(2&t){const
e=d(3);a(2),S(f(3,7,"settings.rprofiles.hardwaremjpeghdecimation_label")),a(2),q(A(9,Ms)),p("options",A(10,RS))("ngModel",e.profile.RecProfParams[e.findIx("hardwaremjpeghdecimation","2")].Value)("editable",!1)("maxlength",0)}}function
sie(t,i){if(1&t){const
e=I();l(0,"div",12)(1,"label",46),g(2),m(3,"translate"),c(),l(4,"p-dropdown",47,48),C("ngModelChange",function(s){v(e);const
r=d(3);return
r.profile.RecProfParams[r.findIx("hardwaremjpegvdecimation","2")].Value=s}),c(),k(6,"small",15),c()}if(2&t){const
e=d(3);a(2),S(f(3,7,"settings.rprofiles.hardwaremjpegvdecimation_label")),a(2),q(A(9,Ms)),p("options",A(10,R
S))("ngModel",e.profile.RecProfParams[e.findIx("hardwaremjpegvdecimation","2")].Value)("editable",!1)("maxlength",0)}}function
rie(t,i){if(1&t){const
e=I();l(0,"div",12)(1,"label",49),g(2),m(3,"translate"),c(),l(4,"p-inputNumber",50),C("ngModelChange",function(s){v(e);const
r=d(3);return
r.profile.RecProfParams[r.findIx("mpeg4qualdiff","3")].Value=s}),c(),l(5,"small",15),g(6),m(7,"translate"),c()()}if(2&t){const
e=d(3);a(2),S(f(3,7,"settings.rprofiles.mpeg4qualdiff_label")),a(2),p("ngModel",e.profile.RecProfParams[e.findIx("mpeg4qualdiff","3")].Value)("showButtons",!0)("min",1)("max",31)("step",1),a(2),T("
",f(7,9,"settings.rprofiles.mpeg4quality_desc")," ")}}function
oie(t,i){if(1&t){const
e=I();l(0,"div",12)(1,"label",51),g(2),m(3,"translate"),c(),l(4,"p-dropdown",52,53),C("ngModelChange",function(s){v(e);const
r=d(3);return
r.profile.RecProfParams[r.findIx("mpeg2streamtype","2")].Value=s}),c(),l(6,"small",15),g(7),m(8,"translate"),c()()}if(2&t){const
e=d(3);a(2),S(f(3,8,"settings
.rprofiles.mpeg2streamtype_label")),a(2),q(A(12,Ms)),p("options",e.streamTypeOptions)("ngModel",e.profile.RecProfParams[e.findIx("mpeg2streamtype","2")].Value)("editable",!1)("maxlength",0),a(3),T("
",f(8,10,"settings.rprofiles.mpeg2streamtype_desc")," ")}}const
aie=function(){return["Square","4:3","16:9","2.21:1"]};function
lie(t,i){if(1&t){const
e=I();l(0,"div",12)(1,"label",54),g(2),m(3,"translate"),c(),l(4,"p-dropdown",55,56),C("ngModelChange",function(s){v(e);const
r=d(3);return
r.profile.RecProfParams[r.findIx("mpeg2aspectratio","Square")].Value=s}),c(),l(6,"small",15),g(7),m(8,"translate"),c()()}if(2&t){const
e=d(3);a(2),S(f(3,8,"settings.rprofiles.mpeg2aspectratio_label")),a(2),q(A(12,Ms)),p("options",A(13,aie))("ngModel",e.profile.RecProfParams[e.findIx("mpeg2aspectratio","Square")].Value)("editable",!1)("maxlength",0),a(3),T("
",f(8,10,"settings.rprofiles.mpeg2aspectratio_desc"),"
")}}function cie(t,i){if(1&t){const
e=I();l(0,"div",12)(1,"label",57),g(2),m(3,"translate"),c
(),l(4,"p-inputNumber",58),C("ngModelChange",function(s){v(e);const
r=d(3);return
r.profile.RecProfParams[r.findIx("mpeg2bitrate","6000")].Value=s}),c(),l(5,"small",15),g(6),m(7,"translate"),c()()}if(2&t){const
e=d(3);a(2),S(f(3,7,"settings.rprofiles.mpeg2bitrate_label")),a(2),p("ngModel",e.profile.RecProfParams[e.findIx("mpeg2bitrate","6000")].Value)("showButtons",!0)("min",1e3)("max",16e3)("step",100),a(2),T("
",f(7,9,"settings.rprofiles.mpeg2bitrate_desc")," ")}}function
uie(t,i){if(1&t){const
e=I();l(0,"div",12)(1,"label",59),g(2),m(3,"translate"),c(),l(4,"p-inputNumber",60),C("ngModelChange",function(s){v(e);const
r=d(3);return
r.profile.RecProfParams[r.findIx("mpeg2maxbitrate","4500")].Value=s}),c(),l(5,"small",15),g(6),m(7,"translate"),c()()}if(2&t){const
e=d(3);a(2),S(f(3,7,"settings.rprofiles.mpeg2maxbitrate_label")),a(2),p("ngModel",e.profile.RecProfParams[e.findIx("mpeg2maxbitrate","4500")].Value)("showButtons",!0)("min",1e3)("max",16e3)("step",100),a(2),T("
",f(7,9,"sett
ings.rprofiles.mpeg2maxbitrate_desc")," ")}}function
die(t,i){if(1&t){const
e=I();l(0,"p-fieldset",25),m(1,"translate"),l(2,"div",12)(3,"label",61),g(4),m(5,"translate"),c(),l(6,"p-inputNumber",62),C("ngModelChange",function(s){v(e);const
r=d(3);return
r.profile.RecProfParams[r.findIx("low_mpeg4avgbitrate","4500")].Value=s}),c(),l(7,"small",15),g(8),m(9,"translate"),c()(),l(10,"div",12)(11,"label",63),g(12),m(13,"translate"),c(),l(14,"p-inputNumber",64),C("ngModelChange",function(s){v(e);const
r=d(3);return
r.profile.RecProfParams[r.findIx("low_mpeg4peakbitrate","6000")].Value=s}),c(),l(15,"small",15),g(16),m(17,"translate"),c()()()}if(2&t){const
e=d(3);x("legend",f(1,17,"settings.rprofiles.lowres_label")),p("toggleable",!0)("collapsed",!0),a(4),S(f(5,19,"settings.rprofiles.mpeg2bitrate_label")),a(2),p("ngModel",e.profile.RecProfParams[e.findIx("low_mpeg4avgbitrate","4500")].Value)("showButtons",!0)("min",1e3)("max",13500)("step",500),a(2),T("
",f(9,21,"settings.rprofiles.mpeg2bitra
te_desc"),"
"),a(4),S(f(13,23,"settings.rprofiles.mpeg2maxbitrate_label")),a(2),p("ngModel",e.profile.RecProfParams[e.findIx("low_mpeg4peakbitrate","6000")].Value)("showButtons",!0)("min",1100)("max",20200)("step",500),a(2),T("
",f(17,25,"settings.rprofiles.mpeg2maxbitrate_desc"),"
")}}function pie(t,i){if(1&t){const
e=I();l(0,"p-fieldset",25),m(1,"translate"),l(2,"div",12)(3,"label",65),g(4),m(5,"translate"),c(),l(6,"p-inputNumber",66),C("ngModelChange",function(s){v(e);const
r=d(3);return
r.profile.RecProfParams[r.findIx("medium_mpeg4avgbitrate","9000")].Value=s}),c(),l(7,"small",15),g(8),m(9,"translate"),c()(),l(10,"div",12)(11,"label",67),g(12),m(13,"translate"),c(),l(14,"p-inputNumber",68),C("ngModelChange",function(s){v(e);const
r=d(3);return
r.profile.RecProfParams[r.findIx("medium_mpeg4peakbitrate","11000")].Value=s}),c(),l(15,"small",15),g(16),m(17,"translate"),c()()()}if(2&t){const
e=d(3);x("legend",f(1,17,"settings.rprofiles.medres_label")),p("toggleable",!0)("collapsed",
!0),a(4),S(f(5,19,"settings.rprofiles.mpeg2bitrate_label")),a(2),p("ngModel",e.profile.RecProfParams[e.findIx("medium_mpeg4avgbitrate","9000")].Value)("showButtons",!0)("min",1e3)("max",13500)("step",500),a(2),T("
",f(9,21,"settings.rprofiles.mpeg2bitrate_desc"),"
"),a(4),S(f(13,23,"settings.rprofiles.mpeg2maxbitrate_label")),a(2),p("ngModel",e.profile.RecProfParams[e.findIx("medium_mpeg4peakbitrate","11000")].Value)("showButtons",!0)("min",1100)("max",20200)("step",500),a(2),T("
",f(17,25,"settings.rprofiles.mpeg2maxbitrate_desc"),"
")}}function hie(t,i){if(1&t){const
e=I();l(0,"p-fieldset",25),m(1,"translate"),l(2,"div",12)(3,"label",69),g(4),m(5,"translate"),c(),l(6,"p-inputNumber",70),C("ngModelChange",function(s){v(e);const
r=d(3);return
r.profile.RecProfParams[r.findIx("high_mpeg4avgbitrate","13500")].Value=s}),c(),l(7,"small",15),g(8),m(9,"translate"),c()(),l(10,"div",12)(11,"label",71),g(12),m(13,"translate"),c(),l(14,"p-inputNumber",72),C("ngModelChange",function(s){v(e);co
nst r=d(3);return
r.profile.RecProfParams[r.findIx("high_mpeg4peakbitrate","20200")].Value=s}),c(),l(15,"small",15),g(16),m(17,"translate"),c()()()}if(2&t){const
e=d(3);x("legend",f(1,17,"settings.rprofiles.highres_label")),p("toggleable",!0)("collapsed",!0),a(4),S(f(5,19,"settings.rprofiles.mpeg2bitrate_label")),a(2),p("ngModel",e.profile.RecProfParams[e.findIx("high_mpeg4avgbitrate","13500")].Value)("showButtons",!0)("min",1e3)("max",13500)("step",500),a(2),T("
",f(9,21,"settings.rprofiles.mpeg2bitrate_desc"),"
"),a(4),S(f(13,23,"settings.rprofiles.mpeg2maxbitrate_label")),a(2),p("ngModel",e.profile.RecProfParams[e.findIx("high_mpeg4peakbitrate","20200")].Value)("showButtons",!0)("min",1100)("max",20200)("step",500),a(2),T("
",f(17,25,"settings.rprofiles.mpeg2maxbitrate_desc"),"
")}}function mie(t,i){if(1&t){const
e=I();l(0,"div",12)(1,"p-checkbox",73,74),C("ngModelChange",function(s){v(e);const
r=d(3);return
r.profile.RecProfParams[r.findIx("scalebitrate",!0)].Value=s}),m(3,"tran
slate"),c(),l(4,"small",15),g(5),m(6,"translate"),c()()}if(2&t){const
e=d(3);a(1),x("label",f(3,4,"settings.rprofiles.scalebitrate_label")),p("ngModel",e.profile.RecProfParams[e.findIx("scalebitrate",!0)].Value)("binary",!0),a(4),T("
",f(6,6,"settings.rprofiles.scalebitrate_desc")," ")}}function
fie(t,i){if(1&t){const
e=I();l(0,"div",12)(1,"p-checkbox",75,76),C("ngModelChange",function(s){v(e);const
r=d(3);return
r.profile.RecProfParams[r.findIx("mpeg4optionvhq",!1)].Value=s}),m(3,"translate"),c(),l(4,"small",15),g(5),m(6,"translate"),c()()}if(2&t){const
e=d(3);a(1),x("label",f(3,4,"settings.rprofiles.mpeg4optionvhq_label")),p("ngModel",e.profile.RecProfParams[e.findIx("mpeg4optionvhq",!1)].Value)("binary",!0),a(4),T("
",f(6,6,"settings.rprofiles.mpeg4optionvhq_desc")," ")}}function
gie(t,i){if(1&t){const
e=I();l(0,"div",12)(1,"p-checkbox",77,78),C("ngModelChange",function(s){v(e);const
r=d(3);return
r.profile.RecProfParams[r.findIx("mpeg4option4mv",!1)].Value=s}),m(3,"translate"),c
(),l(4,"small",15),g(5),m(6,"translate"),c()()}if(2&t){const
e=d(3);a(1),x("label",f(3,4,"settings.rprofiles.mpeg4option4mv_label")),p("ngModel",e.profile.RecProfParams[e.findIx("mpeg4option4mv",!1)].Value)("binary",!0),a(4),T("
",f(6,6,"settings.rprofiles.mpeg4option4mv_desc")," ")}}function
_ie(t,i){if(1&t){const
e=I();l(0,"div",12)(1,"p-checkbox",79,80),C("ngModelChange",function(s){v(e);const
r=d(3);return
r.profile.RecProfParams[r.findIx("mpeg4optionidct",!1)].Value=s}),m(3,"translate"),c(),l(4,"small",15),g(5),m(6,"translate"),c()()}if(2&t){const
e=d(3);a(1),x("label",f(3,4,"settings.rprofiles.mpeg4optionidct_label")),p("ngModel",e.profile.RecProfParams[e.findIx("mpeg4optionidct",!1)].Value)("binary",!0),a(4),T("
",f(6,6,"settings.rprofiles.mpeg4optionidct_desc")," ")}}function
bie(t,i){if(1&t){const
e=I();l(0,"div",12)(1,"p-checkbox",81,82),C("ngModelChange",function(s){v(e);const
r=d(3);return
r.profile.RecProfParams[r.findIx("mpeg4optionime",!1)].Value=s}),m(3,"translate"),
c(),l(4,"small",15),g(5),m(6,"translate"),c()()}if(2&t){const
e=d(3);a(1),x("label",f(3,4,"settings.rprofiles.mpeg4optionime_label")),p("ngModel",e.profile.RecProfParams[e.findIx("mpeg4optionime",!1)].Value)("binary",!0),a(4),T("
",f(6,6,"settings.rprofiles.mpeg4optionime_desc")," ")}}function
vie(t,i){if(1&t){const
e=I();l(0,"div",12)(1,"label",83),g(2),m(3,"translate"),c(),l(4,"p-inputNumber",84),C("ngModelChange",function(s){v(e);const
r=d(3);return
r.profile.RecProfParams[r.findIx("encodingthreadcount","1")].Value=s}),c(),l(5,"small",15),g(6),m(7,"translate"),c()()}if(2&t){const
e=d(3);a(2),S(f(3,7,"settings.rprofiles.encodingthreadcount_label")),a(2),p("ngModel",e.profile.RecProfParams[e.findIx("encodingthreadcount","1")].Value)("showButtons",!0)("min",1)("max",8)("step",1),a(2),T("
",f(7,9,"settings.rprofiles.encodingthreadcount_desc"),"
")}}function
Cie(t,i){if(1&t&&(l(0,"p-fieldset",25),m(1,"translate"),_(2,Qne,7,10,"div",10),_(3,Jne,8,11,"div",10),_(4,Yne,8,11,"div",10),_(5
,Zne,8,11,"div",10),_(6,Xne,8,11,"div",10),_(7,eie,8,11,"div",10),_(8,tie,8,11,"div",10),_(9,nie,6,8,"div",10),_(10,iie,7,11,"div",10),_(11,sie,7,11,"div",10),_(12,rie,8,11,"div",10),_(13,oie,9,13,"div",10),_(14,lie,9,14,"div",10),_(15,cie,8,11,"div",10),_(16,uie,8,11,"div",10),_(17,die,18,27,"p-fieldset",11),_(18,pie,18,27,"p-fieldset",11),_(19,hie,18,27,"p-fieldset",11),_(20,mie,7,8,"div",10),_(21,fie,7,8,"div",10),_(22,gie,7,8,"div",10),_(23,_ie,7,8,"div",10),_(24,bie,7,8,"div",10),_(25,vie,8,11,"div",10),c()),2&t){const
e=d(2);x("legend",f(1,27,"settings.rprofiles.video_label")),p("toggleable",!0)("collapsed",!0),a(2),p("ngIf",e.params.Video.length>0),a(1),p("ngIf","RTjpeg"==e.profile.VideoCodec),a(1),p("ngIf","RTjpeg"==e.profile.VideoCodec),a(1),p("ngIf","RTjpeg"==e.profile.VideoCodec),a(1),p("ngIf","MPEG-4"==e.profile.VideoCodec),a(1),p("ngIf","MPEG-4"==e.profile.VideoCodec),a(1),p("ngIf","MPEG-4"==e.profile.VideoCodec),a(1),p("ngIf","Hardware
MJPEG"==e.profile.VideoCodec),a(1
),p("ngIf","Hardware
MJPEG"==e.profile.VideoCodec),a(1),p("ngIf","Hardware
MJPEG"==e.profile.VideoCodec),a(1),p("ngIf","MPEG-4"==e.profile.VideoCodec),a(1),p("ngIf","MPEG-2
Hardware Encoder"==e.profile.VideoCodec),a(1),p("ngIf","MPEG-2
Hardware
Encoder"==e.profile.VideoCodec),a(1),p("ngIf","MPEG-2"==e.profile.VideoCodec||"MPEG-2
Hardware Encoder"==e.profile.VideoCodec),a(1),p("ngIf","MPEG-2
Hardware Encoder"==e.profile.VideoCodec),a(1),p("ngIf","MPEG-4 AVC
Hardware Encoder"==e.profile.VideoCodec),a(1),p("ngIf","MPEG-4 AVC
Hardware Encoder"==e.profile.VideoCodec),a(1),p("ngIf","MPEG-4 AVC
Hardware
Encoder"==e.profile.VideoCodec),a(1),p("ngIf","MPEG-4"==e.profile.VideoCodec||"MPEG-2"==e.profile.VideoCodec),a(1),p("ngIf","MPEG-4"==e.profile.VideoCodec),a(1),p("ngIf","MPEG-4"==e.profile.VideoCodec),a(1),p("ngIf","MPEG-4"==e.profile.VideoCodec),a(1),p("ngIf","MPEG-4"==e.profile.VideoCodec),a(1),p("ngIf","MPEG-4"==e.profile.VideoCodec||"MPEG-2"==e.profile.VideoCodec)}}function
yie(t,i){if
(1&t){const
e=I();l(0,"div",12)(1,"label",85),g(2),m(3,"translate"),c(),l(4,"p-dropdown",86,87),C("ngModelChange",function(s){return
v(e),d(3).profile.AudioCodec=s}),c(),k(6,"small",15),c()}if(2&t){const
e=d(3);a(2),S(f(3,7,"settings.rprofiles.audiocodec_label")),a(2),q(A(9,Ms)),p("options",e.params.Audio)("ngModel",e.profile.AudioCodec)("editable",!1)("maxlength",0)}}function
wie(t,i){if(1&t){const
e=I();l(0,"div",12)(1,"label",88),g(2),m(3,"translate"),c(),l(4,"p-dropdown",89,90),C("ngModelChange",function(s){v(e);const
r=d(3);return
r.profile.RecProfParams[r.findIx("samplerate","32000")].Value=s}),c(),l(6,"small",15),g(7),m(8,"translate"),c()()}if(2&t){const
e=d(3);a(2),S(f(3,8,"settings.rprofiles.samplerate_label")),a(2),q(A(12,Ms)),p("options",e.samplerateOptions)("ngModel",e.profile.RecProfParams[e.findIx("samplerate","32000")].Value)("editable",!1)("maxlength",0),a(3),T("
",f(8,10,"settings.rprofiles.samplerate_desc")," ")}}function
Tie(t,i){if(1&t){const e=I();l(0,"div",12)(
1,"label",91),g(2),m(3,"translate"),c(),l(4,"p-dropdown",92,93),C("ngModelChange",function(s){v(e);const
r=d(3);return
r.profile.RecProfParams[r.findIx("mpeg2language","32000")].Value=s}),c(),l(6,"small",15),g(7),m(8,"translate"),c()()}if(2&t){const
e=d(3);a(2),S(f(3,8,"settings.rprofiles.mpeg2language_label")),a(2),q(A(12,Ms)),p("options",e.mpeg2languageOptions)("ngModel",e.profile.RecProfParams[e.findIx("mpeg2language","32000")].Value)("editable",!1)("maxlength",0),a(3),T("
",f(8,10,"settings.rprofiles.mpeg2language_desc")," ")}}function
Sie(t,i){if(1&t){const
e=I();l(0,"div",12)(1,"label",94),g(2),m(3,"translate"),c(),l(4,"p-inputNumber",95),C("ngModelChange",function(s){v(e);const
r=d(3);return
r.profile.RecProfParams[r.findIx("mp3quality","1")].Value=s}),c(),l(5,"small",15),g(6),m(7,"translate"),c()()}if(2&t){const
e=d(3);a(2),S(f(3,7,"settings.rprofiles.mp3quality_label")),a(2),p("ngModel",e.profile.RecProfParams[e.findIx("mp3quality","1")].Value)("showButtons",!0)("min",1)("m
ax",9)("step",1),a(2),T("
",f(7,9,"settings.rprofiles.mp3quality_desc")," ")}}function
xie(t,i){if(1&t){const
e=I();l(0,"div",12)(1,"label",96),g(2),m(3,"translate"),c(),l(4,"p-inputNumber",97),C("ngModelChange",function(s){v(e);const
r=d(3);return
r.profile.RecProfParams[r.findIx("volume","90")].Value=s}),c(),l(5,"small",15),g(6),m(7,"translate"),c()()}if(2&t){const
e=d(3);a(2),S(f(3,7,"settings.rprofiles.volume_label")),a(2),p("ngModel",e.profile.RecProfParams[e.findIx("volume","90")].Value)("showButtons",!0)("min",0)("max",100)("step",1),a(2),T("
",f(7,9,"settings.rprofiles.volume_desc")," ")}}function
Die(t,i){if(1&t){const
e=I();l(0,"div",12)(1,"label",98),g(2),m(3,"translate"),c(),l(4,"p-inputNumber",99),C("ngModelChange",function(s){v(e);const
r=d(3);return
r.profile.RecProfParams[r.findIx("mpeg2audvolume","90")].Value=s}),c(),l(5,"small",15),g(6),m(7,"translate"),c()()}if(2&t){const
e=d(3);a(2),S(f(3,7,"settings.rprofiles.volume_label")),a(2),p("ngModel",e.profile.RecProfPar
ams[e.findIx("mpeg2audvolume","90")].Value)("showButtons",!0)("min",0)("max",100)("step",1),a(2),T("
",f(7,9,"settings.rprofiles.mpeg2audvolume_desc")," ")}}function
Mie(t,i){if(1&t&&(l(0,"p-fieldset",25),m(1,"translate"),_(2,yie,7,10,"div",10),_(3,wie,9,13,"div",10),_(4,Tie,9,13,"div",10),_(5,Sie,8,11,"div",10),_(6,xie,8,11,"div",10),_(7,Die,8,11,"div",10),c()),2&t){const
e=d(2);x("legend",f(1,9,"settings.rprofiles.audio_label")),p("toggleable",!0)("collapsed",!0),a(2),p("ngIf",e.params.Audio.length>0),a(1),p("ngIf","MP3"==e.profile.AudioCodec||"MPEG-2
Hardware
Encoder"==e.profile.AudioCodec||"Uncompressed"==e.profile.AudioCodec),a(1),p("ngIf","MPEG-2
Hardware
Encoder"==e.profile.AudioCodec),a(1),p("ngIf","MP3"==e.profile.AudioCodec),a(1),p("ngIf","MP3"==e.profile.AudioCodec||"Uncompressed"==e.profile.AudioCodec),a(1),p("ngIf","MPEG-2
Hardware Encoder"==e.profile.AudioCodec)}}function
kie(t,i){if(1&t&&(l(0,"div",8)(1,"div",9),_(2,zne,7,8,"div",10),_(3,jne,8,11,"div",10),_(4,$ne,8,1
1,"div",10),_(5,Wne,9,13,"div",10),_(6,Kne,7,8,"div",10),_(7,Cie,26,29,"p-fieldset",11),_(8,Mie,8,11,"p-fieldset",11),c()()),2&t){const
e=d();a(2),p("ngIf",e.params.Param.includes("autotranscode")),a(1),p("ngIf",e.params.Param.includes("width")),a(1),p("ngIf",e.params.Param.includes("height")),a(1),p("ngIf",e.params.Param.includes("recordingtype")),a(1),p("ngIf",e.params.Param.includes("recordmpts")),a(1),p("ngIf",e.params.Video.length>0),a(1),p("ngIf",e.params.Audio.length>0)}}function
Iie(t,i){1&t&&(k(0,"p-message",105),m(1,"translate")),2&t&&x("text",f(1,1,"common.savesuccess"))}function
Eie(t,i){1&t&&(k(0,"p-message",106),m(1,"translate")),2&t&&x("text",f(1,1,"common.networkfail"))}function
Rie(t,i){if(1&t){const
e=I();l(0,"div",100)(1,"div",101),_(2,Iie,2,3,"p-message",102),_(3,Eie,2,3,"p-message",103),c(),l(4,"p-button",104),C("onClick",function(){v(e);const
s=d(),r=F(1);return
s.saveForm(1),r.form.markAsPristine()}),m(5,"translate"),c()()}if(2&t){const
e=d(),n=F(1);a(2),p("ng
If",e.successCount>0&&0==e.errorCount&&!n.dirty),a(1),p("ngIf",e.errorCount>0),a(1),x("label",f(5,4,"common.save")),p("disabled",!n.dirty||e.setupService.schedulingEnabled)}}let
Lie=(()=>{class
t{constructor(e,n,s){this.translate=e,this.captureCardService=n,this.setupService=s,this.successCount=0,this.errorCount=0,this.expectedCount=0,this.paramList=[{CardType:"V4L",Param:["autotranscode","height","width"],Video:["RTjpeg","MPEG-4"],Audio:["MP3","Uncompressed"]},{CardType:"MPEG",Param:["autotranscode","height","width"],Video:["MPEG-2
Hardware Encoder"],Audio:["MPEG-2 Hardware
Encoder"]},{CardType:"MJPEG",Param:["autotranscode","height","width"],Video:["Hardware
MJPEG"],Audio:["MP3","Uncompressed"]},{CardType:"HDTV",Param:["autotranscode","height","width"],Video:["RTjpeg","MPEG-4"],Audio:["MP3","Uncompressed"]},{CardType:"DVB",Param:["autotranscode","recordingtype","recordmpts"],Video:[],Audio:[]},{CardType:"FIREWIRE",Param:["autotranscode"],Video:[],Audio:[]},{CardType:"GO7007",Param
:["autotranscode","height","width"],Video:["MPEG-4","MPEG-2"],Audio:["MP3","Uncompressed"]},{CardType:"IMPORT",Param:["autotranscode"],Video:[],Audio:[]},{CardType:"FREEBOX",Param:["autotranscode","recordmpts"],Video:[],Audio:[]},{CardType:"HDHOMERUN",Param:["autotranscode","recordingtype","recordmpts"],Video:[],Audio:[]},{CardType:"CRC_IP",Param:["autotranscode","height","width"],Video:["RTjpeg","MPEG-4"],Audio:["MP3","Uncompressed"]},{CardType:"HDPVR",Param:["autotranscode"],Video:["MPEG-4
AVC Hardware Encoder"],Audio:["AC3 Hardware Encoder","AAC Hardware
Encoder"]},{CardType:"ASI",Param:["autotranscode","recordmpts"],Video:[],Audio:[]},{CardType:"OCUR",Param:["autotranscode","height","width"],Video:["RTjpeg","MPEG-4"],Audio:["MP3","Uncompressed"]},{CardType:"CETON",Param:["autotranscode","recordmpts"],Video:[],Audio:[]},{CardType:"VBOX",Param:["autotranscode","recordmpts"],Video:[],Audio:[]},{CardType:"SATIP",Param:["autotranscode","recordingtype","recordmpts"],Video:[],Audio:[]}
,{CardType:"V4L2:uvcvideo",Param:["autotranscode","height","width"],Video:["V4L2:MPEG-2
Video"],Audio:["V4L2:MPEG-1/2 Layer II
encoding"]},{CardType:"TRANSCODE",Param:["autotranscode","height","width"],Video:["RTjpeg","MPEG-4"],Audio:["MP3","Uncompressed"]}],this.params={CardType:"",Param:[""],Video:[""],Audio:[""]},this.videoParamList=[{Codec:"RTjpeg",Param:["rtjpegquality","rtjpeglumafilter","rtjpegchromafilter"]},{Codec:"MPEG-4",Param:["mpeg4bitrate","mpeg4maxquality","mpeg4minquality","mpeg4qualdiff","scalebitrate","mpeg4optionvhq","mpeg4option4mv","mpeg4optionidct","mpeg4optionime","encodingthreadcount"]},{Codec:"MPEG-2",Param:["mpeg2bitrate","scalebitrate","encodingthreadcount"]},{Codec:"Hardware
MJPEG",Param:["hardwaremjpegquality","hardwaremjpeghdecimation","hardwaremjpegvdecimation"]},{Codec:"MPEG-2
Hardware
Encoder",Param:["mpeg2streamtype","mpeg2aspectratio","mpeg2bitrate","mpeg2maxbitrate"]},{Codec:"MPEG-4
AVC Hardware Encoder",Param:["low_mpeg4avgbitrate","low_mpeg4peak
bitrate","medium_mpeg4avgbitrate","medium_mpeg4peakbitrate","high_mpeg4avgbitrate","high_mpeg4peakbitrate"]},{Codec:"V4L2:MPEG-2
Video",Param:[]}],this.audioParamList=[{Codec:"MP3",Param:["samplerate","mp3quality","volume"]},{Codec:"MPEG-2
Hardware
Encoder",Param:["samplerate","mpeg2language","mpeg2audvolume"]},{Codec:"Uncompressed",Param:["samplerate","volume"]}],this.recordingtypeOptions=[{Name:"settings.rprofiles.rectype_normal",Value:"all"},{Name:"settings.rprofiles.rectype_tv",Value:"tv"},{Name:"settings.rprofiles.rectype_audio",Value:"audio"}],this.samplerateOptions=["32000","44100","48000"],this.streamTypeOptions=["MPEG-2
PS","MPEG-2 TS","MPEG-1 VCD","PES AV","PES
V","PES A","DVD","DVD-Special 1","DVD-Special
2"],this.mpeg2languageOptions=[{Name:"settings.rprofiles.lang_main",Value:"0"},{Name:"settings.rprofiles.lang_sap",Value:"1"},{Name:"settings.rprofiles.lang_dual",Value:"2"}],this.saveObserver={next:r=>{this.profile.Id&&r.bool?this.successCount++:!this.profile.Id&&r.int?
(this.successCount++,this.profile.Id=r.int,this.saveForm(2)):(console.log("saveObserver
error",r),this.errorCount++,this.currentForm.form.markAsDirty())},error:r=>{console.log("saveObserver
error",r),this.errorCount++,this.currentForm.form.markAsDirty()}},this.recordingtypeOptions.forEach(r=>{e.get(r.Name).subscribe(o=>r.Name=o)}),this.mpeg2languageOptions.forEach(r=>{e.get(r.Name).subscribe(o=>r.Name=o)})}ngOnInit(){let
e=this.paramList.find(n=>n.CardType==this.group.CardType);e&&(this.params=e)}ngAfterViewInit(){this.setupService.setCurrentForm(this.currentForm),this.topElement.nativeElement.scrollIntoView({behavior:"smooth",block:"start"})}findIx(e,n){let
s=this.profile.RecProfParams.findIndex(r=>r.Name==e);return-1==s?s=this.profile.RecProfParams.push({Name:e,Value:n})-1:"boolean"==typeof
n&&"string"==typeof
this.profile.RecProfParams[s].Value&&(this.profile.RecProfParams[s].Value="1"==this.profile.RecProfParams[s].Value),s}saveForm(e){switch(e){case
1:if(this.successCount=0,thi
s.errorCount=0,this.expectedCount=0,this.profile.Id<=0)return
this.captureCardService.AddRecProfile(this.group.Id,this.profile.Name,this.profile.VideoCodec,this.profile.AudioCodec).subscribe(this.saveObserver),void
this.expectedCount++;this.captureCardService.UpdateRecProfile(this.profile.Id,this.profile.VideoCodec,this.profile.AudioCodec).subscribe(this.saveObserver),this.expectedCount++;case
2:this.saveParams(this.params.Param);let
n=this.videoParamList.find(r=>r.Codec==this.profile.VideoCodec);n?this.saveParams(n.Param):(console.log("ERROR
videoparams not found"),this.errorCount++,this.currentForm.form.markAsDirty());let
s=this.audioParamList.find(r=>r.Codec==this.profile.AudioCodec);s?this.saveParams(s.Param):(console.log("ERROR
audioparams not
found"),this.errorCount++,this.currentForm.form.markAsDirty())}}saveParams(e){e.forEach(n=>{let
s=this.profile.RecProfParams[this.findIx(n,"0")].Value;s="boolean"==typeof
s?s?"1":"0":s.toString(),this.captureCardService.UpdateRecProfilePa
ram(this.profile.Id,n,s).subscribe(this.saveObserver),this.expectedCount++})}}return
t.\u0275fac=function(e){return
new(e||t)(D(Oe),D(Gt),D(Me))},t.\u0275cmp=z({type:t,selectors:[["app-recprofile"]],viewQuery:function(e,n){if(1&e&&(W(Hne,5),W(qne,5)),2&e){let
s;V(s=B())&&(n.currentForm=s.first),V(s=B())&&(n.topElement=s.first)}},inputs:{profile:"profile",group:"group",parentComponent:"parentComponent"},decls:9,vars:0,consts:[["name","recprofform",1,"ml-3","mr-3"],["recprofform","ngForm"],["top",""],[1,"m-5"],["pTemplate","title"],["pTemplate","subtitle"],["pTemplate","content"],["pTemplate","footer"],[1,"grid"],[1,"mb-4","w-full"],["class","form-group
field",4,"ngIf"],["class","mb-4
w-full",3,"legend","toggleable","collapsed",4,"ngIf"],[1,"form-group","field"],["inputId","autotranscode","name","autotranscode",1,"label","mb-2","w-full",3,"ngModel","binary","label","ngModelChange"],["autotranscode","ngModel"],[1,"block"],["for","width",1,"label","block"],["name","width","id","width",3
,"ngModel","showButtons","min","max","step","ngModelChange"],["for","height",1,"label","block"],["name","height","id","height",3,"ngModel","showButtons","min","max","step","ngModelChange"],["for","recordingtype",1,"label","block"],["optionLabel","Name","optionValue","Value","name","recordingtype",3,"options","ngModel","editable","maxlength","ngModelChange"],["recordingtype","ngModel"],["inputId","recordmpts","name","recordmpts",1,"label","mb-2","w-full",3,"ngModel","binary","label","ngModelChange"],["recordmpts","ngModel"],[1,"mb-4","w-full",3,"legend","toggleable","collapsed"],["for","VideoCodec",1,"label","block"],["name","VideoCodec",3,"options","ngModel","editable","maxlength","ngModelChange"],["VideoCodec","ngModel"],["for","rtjpegquality",1,"label","block"],["name","rtjpegquality","id","rtjpegquality",3,"ngModel","showButtons","min","max","step","ngModelChange"],["for","rtjpeglumafilter",1,"label","block"],["name","rtjpeglumafilter","id","rtjpeglumafilter",3,"ngModel","showBut
tons","min","max","step","ngModelChange"],["for","rtjpegchromafilter",1,"label","block"],["name","rtjpegchromafilter","id","rtjpegchromafilter",3,"ngModel","showButtons","min","max","step","ngModelChange"],["for","mpeg4bitrate",1,"label","block"],["name","mpeg4bitrate","id","mpeg4bitrate",3,"ngModel","showButtons","min","max","step","ngModelChange"],["for","mpeg4maxquality",1,"label","block"],["name","mpeg4maxquality","id","mpeg4maxquality",3,"ngModel","showButtons","min","max","step","ngModelChange"],["for","mpeg4minquality",1,"label","block"],["name","mpeg4minquality","id","mpeg4minquality",3,"ngModel","showButtons","min","max","step","ngModelChange"],["for","hardwaremjpegquality",1,"label","block"],["name","hardwaremjpegquality","id","hardwaremjpegquality",3,"ngModel","showButtons","min","max","step","ngModelChange"],["for","hardwaremjpeghdecimation",1,"label","block"],["name","hardwaremjpeghdecimation",3,"options","ngModel","editable","maxlength","ngModelChange"],["hardwaremjpeg
hdecimation","ngModel"],["for","hardwaremjpegvdecimation",1,"label","block"],["name","hardwaremjpegvdecimation",3,"options","ngModel","editable","maxlength","ngModelChange"],["hardwaremjpegvdecimation","ngModel"],["for","mpeg4qualdiff",1,"label","block"],["name","mpeg4qualdiff","id","mpeg4qualdiff",3,"ngModel","showButtons","min","max","step","ngModelChange"],["for","mpeg2streamtype",1,"label","block"],["name","mpeg2streamtype",3,"options","ngModel","editable","maxlength","ngModelChange"],["mpeg2streamtype","ngModel"],["for","mpeg2aspectratio",1,"label","block"],["name","mpeg2aspectratio",3,"options","ngModel","editable","maxlength","ngModelChange"],["mpeg2aspectratio","ngModel"],["for","mpeg2bitrate",1,"label","block"],["name","mpeg2bitrate","id","mpeg2bitrate",3,"ngModel","showButtons","min","max","step","ngModelChange"],["for","mpeg2maxbitrate",1,"label","block"],["name","mpeg2maxbitrate","id","mpeg2maxbitrate",3,"ngModel","showButtons","min","max","step","ngModelChange"],["for",
"low_mpeg4avgbitrate",1,"label","block"],["name","low_mpeg4avgbitrate","id","low_mpeg4avgbitrate",3,"ngModel","showButtons","min","max","step","ngModelChange"],["for","low_mpeg4peakbitrate",1,"label","block"],["name","low_mpeg4peakbitrate","id","low_mpeg4peakbitrate",3,"ngModel","showButtons","min","max","step","ngModelChange"],["for","medium_mpeg4avgbitrate",1,"label","block"],["name","medium_mpeg4avgbitrate","id","medium_mpeg4avgbitrate",3,"ngModel","showButtons","min","max","step","ngModelChange"],["for","medium_mpeg4peakbitrate",1,"label","block"],["name","medium_mpeg4peakbitrate","id","medium_mpeg4peakbitrate",3,"ngModel","showButtons","min","max","step","ngModelChange"],["for","high_mpeg4avgbitrate",1,"label","block"],["name","high_mpeg4avgbitrate","id","high_mpeg4avgbitrate",3,"ngModel","showButtons","min","max","step","ngModelChange"],["for","high_mpeg4peakbitrate",1,"label","block"],["name","high_mpeg4peakbitrate","id","high_mpeg4peakbitrate",3,"ngModel","showButtons","min"
,"max","step","ngModelChange"],["inputId","scalebitrate","name","scalebitrate",1,"label","mb-2","w-full",3,"ngModel","binary","label","ngModelChange"],["scalebitrate","ngModel"],["inputId","mpeg4optionvhq","name","mpeg4optionvhq",1,"label","mb-2","w-full",3,"ngModel","binary","label","ngModelChange"],["mpeg4optionvhq","ngModel"],["inputId","mpeg4option4mv","name","mpeg4option4mv",1,"label","mb-2","w-full",3,"ngModel","binary","label","ngModelChange"],["mpeg4option4mv","ngModel"],["inputId","mpeg4optionidct","name","mpeg4optionidct",1,"label","mb-2","w-full",3,"ngModel","binary","label","ngModelChange"],["mpeg4optionidct","ngModel"],["inputId","mpeg4optionime","name","mpeg4optionime",1,"label","mb-2","w-full",3,"ngModel","binary","label","ngModelChange"],["mpeg4optionime","ngModel"],["for","encodingthreadcount",1,"label","block"],["name","encodingthreadcount","id","encodingthreadcount",3,"ngModel","showButtons","min","max","step","ngModelChange"],["for","AudioCodec",1,"label","block"
],["name","AudioCodec",3,"options","ngModel","editable","maxlength","ngModelChange"],["AudioCodec","ngModel"],["for","samplerate",1,"label","block"],["name","samplerate",3,"options","ngModel","editable","maxlength","ngModelChange"],["samplerate","ngModel"],["for","mpeg2language",1,"label","block"],["optionLabel","Name","optionValue","Value","name","mpeg2language",3,"options","ngModel","editable","maxlength","ngModelChange"],["mpeg2language","ngModel"],["for","mp3quality",1,"label","block"],["name","mp3quality","id","mp3quality",3,"ngModel","showButtons","min","max","step","ngModelChange"],["for","volume",1,"label","block"],["name","volume","id","volume",3,"ngModel","showButtons","min","max","step","ngModelChange"],["for","mpeg2audvolume",1,"label","block"],["name","mpeg2audvolume","id","mpeg2audvolume",3,"ngModel","showButtons","min","max","step","ngModelChange"],[1,"grid","nogutter"],[1,"col-12"],["severity","success",3,"text",4,"ngIf"],["severity","error",3,"text",4,"ngIf"],["icon
","pi
pi-save","iconPos","left",1,"col","pr-1",3,"label","disabled","onClick"],["severity","success",3,"text"],["severity","error",3,"text"]],template:function(e,n){1&e&&(l(0,"form",0,1),k(2,"span",null,2),l(4,"p-card",3),_(5,Gne,2,4,"ng-template",4),_(6,Une,0,0,"ng-template",5),_(7,kie,9,7,"ng-template",6),_(8,Rie,6,6,"ng-template",7),c()())},directives:[ze,Ue,He,Ne,ne,Q,sn,Te,_e,pt,Ot,_n,Ui,qe,ve],pipes:[ce],styles:[""]}),t})();const
Oie=["v4l2form"],Aie=["top"];function
Pie(t,i){1&t&&(g(0),m(1,"translate")),2&t&&T("
",f(1,1,"settings.capture.v4l2.title")," ")}function
Fie(t,i){}const Nie=function(){return{minWidth:"80%"}};function
Vie(t,i){if(1&t){const
e=I();l(0,"p-dropdown",17,18),C("ngModelChange",function(s){return
v(e),d(2).currentDevice=s})("onChange",function(){return
v(e),d(2).updateDevice()}),c()}if(2&t){const
e=d(2);q(A(6,Nie)),p("options",e.captureDeviceList.CaptureDeviceList.CaptureDevices)("ngModel",e.currentDevice)("editable",!1)("maxlength",0)}}function
Bie(t,i){if
(1&t&&(l(0,"div")(1,"small",19),g(2),c()()),2&t){const
e=d(2);a(2),T(" ",e.warningMessage," ")}}function
Hie(t,i){if(1&t){const
e=I();l(0,"input",20,21),C("ngModelChange",function(s){return
v(e),d(2).currentDevice.FrontendName=s}),c()}2&t&&p("ngModel",d(2).currentDevice.FrontendName)}function
qie(t,i){if(1&t&&(l(0,"div",8)(1,"div",9)(2,"div",10)(3,"label",11),g(4),m(5,"translate"),c(),_(6,Vie,2,7,"p-dropdown",12),_(7,Bie,3,1,"div",13),l(8,"small",14),g(9),m(10,"translate"),c()(),l(11,"div",10)(12,"label",15),g(13),m(14,"translate"),c(),_(15,Hie,2,1,"input",16),l(16,"small",14),g(17),m(18,"translate"),c()()()()),2&t){const
e=d();a(4),S(f(5,7,"settings.capture.v4l2.device_label")),a(2),p("ngIf",e.isReady),a(1),p("ngIf",e.warningMessage),a(2),T("
",f(10,9,"settings.capture.device_desc"),"
"),a(4),S(f(14,11,"settings.capture.v4l2.frontend_label")),a(2),p("ngIf",e.isReady),a(2),T("
",f(18,13,"settings.capture.frontend_desc")," ")}}function
Gie(t,i){1&t&&(k(0,"p-message",27),m(1,"translat
e")),2&t&&x("text",f(1,1,"common.savesuccess"))}function
Uie(t,i){1&t&&(k(0,"p-message",28),m(1,"translate")),2&t&&x("text",f(1,1,"common.networkfail"))}function
zie(t,i){if(1&t){const
e=I();l(0,"div",22)(1,"div",23),_(2,Gie,2,3,"p-message",24),_(3,Uie,2,3,"p-message",25),c(),l(4,"p-button",26),C("onClick",function(){v(e);const
s=d(),r=F(1);return
s.saveForm(),r.form.markAsPristine()}),m(5,"translate"),c()()}if(2&t){const
e=d(),n=F(1);a(2),p("ngIf",e.successCount>0&&0==e.errorCount&&!n.dirty),a(1),p("ngIf",e.errorCount>0),a(1),x("label",f(5,4,"common.save")),p("disabled",!n.dirty||!e.card.VideoDevice||e.setupService.schedulingEnabled)}}let
jie=(()=>{class
t{constructor(e,n,s){this.captureCardService=e,this.setupService=n,this.translate=s,this.messages={devNotExist:"settings.capture.dvb.devNotExist",unknownName:"settings.capture.dvb.unknownName",devInUse:"settings.capture.dvb.devInUse",noDevSelected:"settings.capture.dvb.noDevSelected"},this.captureDeviceList={CaptureDeviceList:{Capt
ureDevices:[]}},this.currentDevice={FrontendName:"Unknown",InputNames:[""]},this.isReady=!1,this.warningMessage="",this.errorCount=0,this.successCount=0,this.saveObserver={next:r=>{this.card.CardId&&r.bool?this.successCount++:!this.card.CardId&&r.int?(this.successCount++,this.card.CardId=r.int):(this.errorCount++,this.currentForm.form.markAsDirty())},error:r=>{console.error(r),this.errorCount++,this.currentForm.form.markAsDirty()}},s.get(this.messages.devNotExist).subscribe(r=>this.messages.devNotExist=r),s.get(this.messages.unknownName).subscribe(r=>this.messages.unknownName=r),s.get(this.messages.devInUse).subscribe(r=>this.messages.devInUse=r),s.get(this.messages.noDevSelected).subscribe(r=>this.messages.noDevSelected=r)}ngOnInit(){this.captureCardService.GetCaptureDeviceList("V4L2ENC").subscribe({next:e=>{this.captureDeviceList=e,this.setupDevice()},error:e=>{console.log("GetCaptureDeviceList",e),this.errorCount++}})}ngAfterViewInit(){this.setupService.setCurrentForm(this.curren
tForm),this.topElement.nativeElement.scrollIntoView({behavior:"smooth",block:"start"})}setupDevice(){if(this.card.VideoDevice||this.captureDeviceList.CaptureDeviceList.CaptureDevices.unshift({VideoDevice:"",FrontendName:this.messages.noDevSelected,InputNames:[""]}),this.card.VideoDevice){let
e=this.captureDeviceList.CaptureDeviceList.CaptureDevices.find(n=>n.VideoDevice==this.card.VideoDevice);e?this.currentDevice=e:(this.currentDevice={VideoDevice:this.card.VideoDevice,FrontendName:this.messages.devNotExist,InputNames:[""]},this.captureDeviceList.CaptureDeviceList.CaptureDevices.push(this.currentDevice))}this.currentDevice&&this.card.InputName&&(this.currentDevice.InputNames.includes(this.card.InputName)||this.currentDevice.InputNames.push(this.card.InputName)),this.isReady=!0}updateDevice(){this.card.VideoDevice=this.currentDevice.VideoDevice,this.card.InputName=this.currentDevice.DefaultInputName,this.card.SignalTimeout=this.currentDevice.SignalTimeout,this.card.ChannelTimeout=th
is.currentDevice.ChannelTimeout,this.checkInUse()}checkInUse(){this.warningMessage=this.cardList.CaptureCardList.CaptureCards.find(n=>n.VideoDevice==this.currentDevice.VideoDevice&&n.CardId!=this.card.CardId)?this.messages.devInUse:""}saveForm(){this.successCount=0,this.errorCount=0,this.card.CardId?this.cardList.CaptureCardList.CaptureCards.forEach(e=>{(e.CardId==this.card.CardId||e.ParentId==this.card.CardId)&&this.captureCardService.UpdateCaptureCard(e.CardId,"videodevice",this.card.VideoDevice).subscribe(this.saveObserver)}):this.captureCardService.AddCaptureCard(this.card).subscribe(this.saveObserver)}}return
t.\u0275fac=function(e){return
new(e||t)(D(Gt),D(Me),D(Oe))},t.\u0275cmp=z({type:t,selectors:[["app-v4l2"]],viewQuery:function(e,n){if(1&e&&(W(Oie,5),W(Aie,5)),2&e){let
s;V(s=B())&&(n.currentForm=s.first),V(s=B())&&(n.topElement=s.first)}},inputs:{card:"card",cardList:"cardList"},decls:9,vars:0,consts:[["name","v4l2form",1,"ml-3","mr-3"],["v4l2form","ngForm"],["top",""],[1
,"m-5"],["pTemplate","title"],["pTemplate","subtitle"],["pTemplate","content"],["pTemplate","footer"],[1,"grid"],[1,"mb-4","w-full"],[1,"form-group","field"],["for","VideoDevice",1,"label","block"],["optionLabel","VideoDevice","name","VideoDevice",3,"options","ngModel","editable","maxlength","style","ngModelChange","onChange",4,"ngIf"],[4,"ngIf"],[1,"block"],["for","FrontendName",1,"label","block"],["pInputText","","id","FrontendName","name","FrontendName","disabled","true","class","mb-2
form-control
w-full",3,"ngModel","ngModelChange",4,"ngIf"],["optionLabel","VideoDevice","name","VideoDevice",3,"options","ngModel","editable","maxlength","ngModelChange","onChange"],["VideoDevice","ngModel"],[1,"p-error","block"],["pInputText","","id","FrontendName","name","FrontendName","disabled","true",1,"mb-2","form-control","w-full",3,"ngModel","ngModelChange"],["FrontendName","ngModel"],[1,"grid","nogutter"],[1,"col-12"],["severity","success",3,"text",4,"ngIf"],["severity","error",3,"text",4,"
ngIf"],["icon","pi
pi-save","iconPos","left",1,"col","pr-1",3,"label","disabled","onClick"],["severity","success",3,"text"],["severity","error",3,"text"]],template:function(e,n){1&e&&(l(0,"form",0,1),k(2,"span",null,2),l(4,"p-card",3),_(5,Pie,2,3,"ng-template",4),_(6,Fie,0,0,"ng-template",5),_(7,qie,19,15,"ng-template",6),_(8,zie,6,6,"ng-template",7),c()())},directives:[ze,Ue,He,Ne,ne,Q,Ot,Te,_e,_n,Ye,qe,ve],pipes:[ce],styles:[""]}),t})();const
$ie=["hdpvrform"],Wie=["top"];function
Kie(t,i){1&t&&(g(0),m(1,"translate")),2&t&&T("
",f(1,1,"settings.capture.hdpvr.title")," ")}function
Qie(t,i){}const LS=function(){return{minWidth:"80%"}};function
Jie(t,i){if(1&t){const
e=I();l(0,"p-dropdown",21,22),C("ngModelChange",function(s){return
v(e),d(2).currentDevice=s})("onChange",function(){return
v(e),d(2).updateDevice()}),c()}if(2&t){const
e=d(2);q(A(6,LS)),p("options",e.captureDeviceList.CaptureDeviceList.CaptureDevices)("ngModel",e.currentDevice)("editable",!1)("maxlength",0)}}function
Yi
e(t,i){if(1&t&&(l(0,"div")(1,"small",23),g(2),c()()),2&t){const
e=d(2);a(2),T(" ",e.warningMessage," ")}}function
Zie(t,i){if(1&t){const
e=I();l(0,"input",24,25),C("ngModelChange",function(s){return
v(e),d(2).currentDevice.FrontendName=s}),c()}2&t&&p("ngModel",d(2).currentDevice.FrontendName)}function
Xie(t,i){if(1&t){const
e=I();l(0,"p-dropdown",26,27),C("ngModelChange",function(s){return
v(e),d(2).card.AudioDevice=s}),c()}if(2&t){const
e=d(2);q(A(6,LS)),p("options",e.currentDevice.AudioDevices)("ngModel",e.card.AudioDevice)("editable",!1)("maxlength",0)}}function
ese(t,i){if(1&t){const
e=I();l(0,"div",8)(1,"div",9)(2,"div",10)(3,"label",11),g(4),m(5,"translate"),c(),_(6,Jie,2,7,"p-dropdown",12),_(7,Yie,3,1,"div",13),l(8,"small",14),g(9),m(10,"translate"),c()(),l(11,"div",10)(12,"label",15),g(13),m(14,"translate"),c(),_(15,Zie,2,1,"input",16),l(16,"small",14),g(17),m(18,"translate"),c()(),l(19,"div",10)(20,"label",17),g(21),m(22,"translate"),c(),_(23,Xie,2,7,"p-dropdown",18),l(24,"
small",14),g(25),m(26,"translate"),c()(),l(27,"div",10)(28,"label",19),g(29),m(30,"translate"),c(),l(31,"p-inputNumber",20),C("ngModelChange",function(s){return
v(e),d().card.ChannelTimeout=s}),c(),l(32,"small",14),g(33),m(34,"translate"),c()()()()}if(2&t){const
e=d();a(4),S(f(5,17,"settings.capture.v4l2.device_label")),a(2),p("ngIf",e.isReady),a(1),p("ngIf",e.warningMessage),a(2),T("
",f(10,19,"settings.capture.device_desc"),"
"),a(4),S(f(14,21,"settings.capture.v4l2.frontend_label")),a(2),p("ngIf",e.isReady),a(2),T("
",f(18,23,"settings.capture.frontend_desc"),"
"),a(4),S(f(22,25,"settings.capture.hdpvr.audiodevice_label")),a(2),p("ngIf",e.isReady),a(2),T("
",f(26,27,"settings.capture.hdpvr.audiodevice_desc"),"
"),a(4),S(f(30,29,"settings.capture.tunetimeout_label")),a(2),p("ngModel",e.card.ChannelTimeout)("showButtons",!0)("min",2e3)("max",65e3)("step",250),a(2),T("
",f(34,31,"settings.capture.tunetimeout_desc")," ")}}function
tse(t,i){1&t&&(k(0,"p-message",33),m(1,"translate")),
2&t&&x("text",f(1,1,"common.savesuccess"))}function
nse(t,i){1&t&&(k(0,"p-message",34),m(1,"translate")),2&t&&x("text",f(1,1,"common.networkfail"))}function
ise(t,i){if(1&t){const
e=I();l(0,"div",28)(1,"div",29),_(2,tse,2,3,"p-message",30),_(3,nse,2,3,"p-message",31),c(),l(4,"p-button",32),C("onClick",function(){v(e);const
s=d(),r=F(1);return
s.saveForm(),r.form.markAsPristine()}),m(5,"translate"),c()()}if(2&t){const
e=d(),n=F(1);a(2),p("ngIf",e.successCount>0&&0==e.errorCount&&!n.dirty),a(1),p("ngIf",e.errorCount>0),a(1),x("label",f(5,4,"common.save")),p("disabled",!n.dirty||!e.card.VideoDevice||e.setupService.schedulingEnabled)}}let
sse=(()=>{class
t{constructor(e,n,s){this.captureCardService=e,this.setupService=n,this.translate=s,this.messages={devNotExist:"settings.capture.dvb.devNotExist",unknownName:"settings.capture.dvb.unknownName",devInUse:"settings.capture.dvb.devInUse",noDevSelected:"settings.capture.dvb.noDevSelected"},this.captureDeviceList={CaptureDeviceList:{CaptureDe
vices:[]}},this.currentDevice={FrontendName:"Unknown",InputNames:[""]},this.isReady=!1,this.warningMessage="",this.errorCount=0,this.successCount=0,this.saveObserver={next:r=>{this.card.CardId&&r.bool?this.successCount++:!this.card.CardId&&r.int?(this.successCount++,this.card.CardId=r.int):(this.errorCount++,this.currentForm.form.markAsDirty())},error:r=>{console.error(r),this.errorCount++,this.currentForm.form.markAsDirty()}},s.get(this.messages.devNotExist).subscribe(r=>this.messages.devNotExist=r),s.get(this.messages.unknownName).subscribe(r=>this.messages.unknownName=r),s.get(this.messages.devInUse).subscribe(r=>this.messages.devInUse=r),s.get(this.messages.noDevSelected).subscribe(r=>this.messages.noDevSelected=r)}ngOnInit(){this.captureCardService.GetCaptureDeviceList("HDPVR").subscribe({next:e=>{this.captureDeviceList=e,this.setupDevice()},error:e=>{console.log("GetCaptureDeviceList",e),this.errorCount++}})}setupDevice(){if(this.card.VideoDevice||this.captureDeviceList.Captur
eDeviceList.CaptureDevices.unshift({VideoDevice:"",FrontendName:this.messages.noDevSelected,InputNames:[""]}),this.card.VideoDevice){let
e=this.captureDeviceList.CaptureDeviceList.CaptureDevices.find(n=>n.VideoDevice==this.card.VideoDevice);e?this.currentDevice=e:(this.currentDevice={VideoDevice:this.card.VideoDevice,FrontendName:this.messages.devNotExist,InputNames:[""]},this.captureDeviceList.CaptureDeviceList.CaptureDevices.push(this.currentDevice))}this.currentDevice&&this.card.InputName&&(this.currentDevice.InputNames.includes(this.card.InputName)||this.currentDevice.InputNames.push(this.card.InputName)),this.isReady=!0}updateDevice(){this.card.VideoDevice=this.currentDevice.VideoDevice,this.card.InputName=this.currentDevice.DefaultInputName,this.card.AudioDevice="",this.card.ChannelTimeout=this.currentDevice.ChannelTimeout,this.checkInUse()}checkInUse(){this.warningMessage=this.cardList.CaptureCardList.CaptureCards.find(n=>n.VideoDevice==this.currentDevice.VideoDevice&&n.CardI
d!=this.card.CardId)?this.messages.devInUse:""}saveForm(){this.successCount=0,this.errorCount=0,this.card.CardId?this.cardList.CaptureCardList.CaptureCards.forEach(e=>{(e.CardId==this.card.CardId||e.ParentId==this.card.CardId)&&(this.captureCardService.UpdateCaptureCard(e.CardId,"videodevice",this.card.VideoDevice).subscribe(this.saveObserver),this.captureCardService.UpdateCaptureCard(e.CardId,"channel_timeout",String(this.card.ChannelTimeout)).subscribe(this.saveObserver),this.captureCardService.UpdateCaptureCard(e.CardId,"audiodevice",String(this.card.AudioDevice)).subscribe(this.saveObserver))}):this.captureCardService.AddCaptureCard(this.card).subscribe(this.saveObserver)}}return
t.\u0275fac=function(e){return
new(e||t)(D(Gt),D(Me),D(Oe))},t.\u0275cmp=z({type:t,selectors:[["app-hdpvr"]],viewQuery:function(e,n){if(1&e&&(W($ie,5),W(Wie,5)),2&e){let
s;V(s=B())&&(n.currentForm=s.first),V(s=B())&&(n.topElement=s.first)}},inputs:{card:"card",cardList:"cardList"},decls:9,vars:0,consts:
[["name","hdpvrform",1,"ml-3","mr-3"],["dvbform","ngForm"],["top",""],[1,"m-5"],["pTemplate","title"],["pTemplate","subtitle"],["pTemplate","content"],["pTemplate","footer"],[1,"grid"],[1,"mb-4","w-full"],[1,"form-group","field"],["for","VideoDevice",1,"label","block"],["optionLabel","VideoDevice","name","VideoDevice",3,"options","ngModel","editable","maxlength","style","ngModelChange","onChange",4,"ngIf"],[4,"ngIf"],[1,"block"],["for","FrontendName",1,"label","block"],["pInputText","","id","FrontendName","name","FrontendName","disabled","true","class","mb-2
form-control
w-full",3,"ngModel","ngModelChange",4,"ngIf"],["for","AudioDevice",1,"label","block"],["name","AudioDevice",3,"options","ngModel","editable","maxlength","style","ngModelChange",4,"ngIf"],["for","ChannelTimeout",1,"label","block"],["name","ChannelTimeout","id","ChannelTimeout",3,"ngModel","showButtons","min","max","step","ngModelChange"],["optionLabel","VideoDevice","name","VideoDevice",3,"options","ngModel","editabl
e","maxlength","ngModelChange","onChange"],["VideoDevice","ngModel"],[1,"p-error","block"],["pInputText","","id","FrontendName","name","FrontendName","disabled","true",1,"mb-2","form-control","w-full",3,"ngModel","ngModelChange"],["FrontendName","ngModel"],["name","AudioDevice",3,"options","ngModel","editable","maxlength","ngModelChange"],["AudioDevice","ngModel"],[1,"grid","nogutter"],[1,"col-12"],["severity","success",3,"text",4,"ngIf"],["severity","error",3,"text",4,"ngIf"],["icon","pi
pi-save","iconPos","left",1,"col","pr-1",3,"label","disabled","onClick"],["severity","success",3,"text"],["severity","error",3,"text"]],template:function(e,n){1&e&&(l(0,"form",0,1),k(2,"span",null,2),l(4,"p-card",3),_(5,Kie,2,3,"ng-template",4),_(6,Qie,0,0,"ng-template",5),_(7,ese,35,33,"ng-template",6),_(8,ise,6,6,"ng-template",7),c()())},directives:[ze,Ue,He,Ne,ne,Q,Ot,Te,_e,_n,Ye,pt,qe,ve],pipes:[ce],styles:[""]}),t})();const
rse=["satipform"],ose=["top"];function
ase(t,i){1&t&&(g(0),m(1,"transl
ate")),2&t&&T("
",f(1,1,"settings.capture.satip.title")," ")}function
lse(t,i){}const cse=function(){return{minWidth:"83%"}};function
use(t,i){if(1&t){const
e=I();l(0,"p-dropdown",25,26),C("ngModelChange",function(s){return
v(e),d(2).currentDevice=s})("onChange",function(){return
v(e),d(2).updateDevice()}),c()}if(2&t){const
e=d(2);q(A(6,cse)),p("options",e.captureDeviceList.CaptureDeviceList.CaptureDevices)("ngModel",e.currentDevice)("editable",!1)("maxlength",0)}}function
dse(t,i){if(1&t&&(l(0,"div")(1,"small",27),g(2),c()()),2&t){const
e=d(2);a(2),T(" ",e.warningMessage," ")}}function
pse(t,i){if(1&t){const
e=I();l(0,"div",8)(1,"div",9)(2,"div",10)(3,"label",11),g(4),m(5,"translate"),c(),_(6,use,2,7,"p-dropdown",12),_(7,dse,3,1,"div",13),l(8,"small",14),g(9),m(10,"translate"),c()(),l(11,"div",10)(12,"label",15),g(13),m(14,"translate"),c(),l(15,"div",16),g(16),c(),l(17,"small",14),g(18),m(19,"translate"),c()(),l(20,"div",10)(21,"label",15),g(22),m(23,"translate"),c(),l(24,"div",16)
,g(25),c(),l(26,"small",14),g(27),m(28,"translate"),c()(),l(29,"div",10)(30,"label",15),g(31),m(32,"translate"),c(),l(33,"div",16),g(34),c(),l(35,"small",14),g(36),m(37,"translate"),c()(),l(38,"div",10)(39,"label",15),g(40),m(41,"translate"),c(),l(42,"div",16),g(43),c(),l(44,"small",14),g(45),m(46,"translate"),c()(),l(47,"div",10)(48,"label",17),g(49),m(50,"translate"),c(),l(51,"p-inputNumber",18),C("ngModelChange",function(s){return
v(e),d().card.SignalTimeout=s}),c(),l(52,"small",14),g(53),m(54,"translate"),c()(),l(55,"div",10)(56,"label",19),g(57),m(58,"translate"),c(),l(59,"p-inputNumber",20),C("ngModelChange",function(s){return
v(e),d().card.ChannelTimeout=s}),c(),l(60,"small",14),g(61),m(62,"translate"),c()(),l(63,"div",10)(64,"p-checkbox",21,22),C("ngModelChange",function(s){return
v(e),d().card.DVBEITScan=s}),m(66,"translate"),c(),l(67,"small",14),g(68),m(69,"translate"),c()(),l(70,"div",10)(71,"label",23),g(72),m(73,"translate"),c(),l(74,"p-inputNumber",24),C("ngModelChange
",function(s){return
v(e),d().card.DVBDiSEqCType=s}),c(),l(75,"small",14),g(76),m(77,"translate"),c()()()()}if(2&t){const
e=d();a(4),S(f(5,41,"settings.capture.satip.device_label")),a(2),p("ngIf",e.isReady),a(1),p("ngIf",e.warningMessage),a(2),T("
",f(10,43,"settings.capture.satip.device_desc"),"
"),a(4),S(f(14,45,"settings.capture.satip.friendly_label")),a(3),T("
",e.currentDevice.Description," \xa0 "),a(2),T("
",f(19,47,"settings.capture.satip.friendly_desc"),"
"),a(4),S(f(23,49,"settings.capture.satip.tunertype_label")),a(3),T("
",e.currentDevice.TunerType," \xa0 "),a(2),T("
",f(28,51,"settings.capture.tunertype_desc"),"
"),a(4),S(f(32,53,"settings.capture.satip.tunerindex_label")),a(3),T("
",e.currentDevice.TunerNumber," \xa0 "),a(2),T("
",f(37,55,"settings.capture.tunerindex_desc"),"
"),a(4),S(f(41,57,"settings.capture.satip.deviceid_label")),a(3),T("
",e.card.VideoDevice," \xa0 "),a(2),T("
",f(46,59,"settings.capture.deviceid_desc"),"
"),a(4),S(f(50,61,"settings.capture.sigtim
eout_label")),a(2),p("ngModel",e.card.SignalTimeout)("showButtons",!0)("min",250)("max",6e4)("step",250),a(2),T("
",f(54,63,"settings.capture.sigtimeout_desc"),"
"),a(4),S(f(58,65,"settings.capture.tunetimeout_label")),a(2),p("ngModel",e.card.ChannelTimeout)("showButtons",!0)("min",2e3)("max",65e3)("step",250),a(2),T("
",f(62,67,"settings.capture.tunetimeout_desc"),"
"),a(3),x("label",f(66,69,"settings.capture.dvb.eitscan_label")),p("ngModel",e.card.DVBEITScan)("binary",!0),a(4),T("
",f(69,71,"settings.capture.dvb.eitscan_desc"),"
"),a(4),S(f(73,73,"settings.capture.satip.diseqcpos_label")),a(2),p("ngModel",e.card.DVBDiSEqCType)("showButtons",!0)("min",1)("max",255)("step",1),a(2),T("
",f(77,75,"settings.capture.satip.diseqcpos_desc")," ")}}function
hse(t,i){1&t&&(k(0,"p-message",33),m(1,"translate")),2&t&&x("text",f(1,1,"common.savesuccess"))}function
mse(t,i){1&t&&(k(0,"p-message",34),m(1,"translate")),2&t&&x("text",f(1,1,"common.networkfail"))}function
fse(t,i){if(1&t){const e=I(
);l(0,"div",28)(1,"div",29),_(2,hse,2,3,"p-message",30),_(3,mse,2,3,"p-message",31),c(),l(4,"p-button",32),C("onClick",function(){v(e);const
s=d(),r=F(1);return
s.saveForm(),r.form.markAsPristine()}),m(5,"translate"),c()()}if(2&t){const
e=d(),n=F(1);a(2),p("ngIf",e.successCount>0&&0==e.errorCount&&!n.dirty),a(1),p("ngIf",e.errorCount>0),a(1),x("label",f(5,4,"common.save")),p("disabled",!n.dirty||!e.card.VideoDevice||e.setupService.schedulingEnabled)}}let
gse=(()=>{class
t{constructor(e,n,s){this.captureCardService=e,this.setupService=n,this.translate=s,this.messages={devNotExist:"settings.capture.dvb.devNotExist",unknownName:"settings.capture.dvb.unknownName",devInUse:"settings.capture.dvb.devInUse",noDevSelected:"settings.capture.dvb.noDevSelected"},this.captureDeviceList={CaptureDeviceList:{CaptureDevices:[]}},this.currentDevice={FrontendName:"Unknown",InputNames:[""]},this.isReady=!1,this.warningMessage="",this.errorCount=0,this.successCount=0,this.saveObserver={next:r=>{this.car
d.CardId&&r.bool?this.successCount++:!this.card.CardId&&r.int?(this.successCount++,this.card.CardId=r.int,this.cardList.CaptureCardList.CaptureCards.push(this.card)):(this.errorCount++,this.currentForm.form.markAsDirty())},error:r=>{console.error(r),this.errorCount++,this.currentForm.form.markAsDirty()}},s.get(this.messages.devNotExist).subscribe(r=>this.messages.devNotExist=r),s.get(this.messages.unknownName).subscribe(r=>this.messages.unknownName=r),s.get(this.messages.devInUse).subscribe(r=>this.messages.devInUse=r),s.get(this.messages.noDevSelected).subscribe(r=>this.messages.noDevSelected=r)}ngOnInit(){this.captureCardService.GetCaptureDeviceList("SATIP").subscribe({next:e=>{this.captureDeviceList=e,this.setupDevice()},error:e=>{console.log("GetCaptureDeviceList",e),this.errorCount++}})}ngAfterViewInit(){this.setupService.setCurrentForm(this.currentForm),this.topElement.nativeElement.scrollIntoView({behavior:"smooth",block:"start"})}setupDevice(){if(this.card.VideoDevice||this.
captureDeviceList.CaptureDeviceList.CaptureDevices.unshift({VideoDevice:"",VideoDevicePrompt:this.messages.noDevSelected}),this.card.VideoDevice){let
e=this.captureDeviceList.CaptureDeviceList.CaptureDevices.find(n=>n.VideoDevice==this.card.VideoDevice);e?this.currentDevice=e:(this.currentDevice={VideoDevice:this.card.VideoDevice,Description:this.messages.devNotExist},this.captureDeviceList.CaptureDeviceList.CaptureDevices.push(this.currentDevice))}this.isReady=!0}updateDevice(){this.card.VideoDevice=this.currentDevice.VideoDevice,this.card.ChannelTimeout=this.currentDevice.ChannelTimeout,this.card.SignalTimeout=this.currentDevice.SignalTimeout,this.checkInUse()}checkInUse(){this.warningMessage=this.cardList.CaptureCardList.CaptureCards.find(n=>n.VideoDevice==this.currentDevice.VideoDevice&&n.CardId!=this.card.CardId)?this.messages.devInUse:""}saveForm(){this.successCount=0,this.errorCount=0,this.card.CardId?this.cardList.CaptureCardList.CaptureCards.forEach(e=>{(e.CardId==this.card
.CardId||e.ParentId==this.card.CardId)&&(this.captureCardService.UpdateCaptureCard(e.CardId,"videodevice",this.card.VideoDevice).subscribe(this.saveObserver),this.captureCardService.UpdateCaptureCard(e.CardId,"signal_timeout",String(this.card.SignalTimeout)).subscribe(this.saveObserver),this.captureCardService.UpdateCaptureCard(e.CardId,"channel_timeout",String(this.card.ChannelTimeout)).subscribe(this.saveObserver),this.captureCardService.UpdateCaptureCard(e.CardId,"dvb_eitscan",String(this.card.DVBEITScan?"1":"0")).subscribe(this.saveObserver),this.captureCardService.UpdateCaptureCard(e.CardId,"dvb_diseqc_type",String(this.card.DVBDiSEqCType)).subscribe(this.saveObserver))}):this.captureCardService.AddCaptureCard(this.card).subscribe(this.saveObserver)}}return
t.\u0275fac=function(e){return
new(e||t)(D(Gt),D(Me),D(Oe))},t.\u0275cmp=z({type:t,selectors:[["app-satip"]],viewQuery:function(e,n){if(1&e&&(W(rse,5),W(ose,5)),2&e){let
s;V(s=B())&&(n.currentForm=s.first),V(s=B())&&(n.topEl
ement=s.first)}},inputs:{card:"card",cardList:"cardList"},decls:9,vars:0,consts:[["name","satipform",1,"ml-3","mr-3"],["satipform","ngForm"],["top",""],[1,"m-5"],["pTemplate","title"],["pTemplate","subtitle"],["pTemplate","content"],["pTemplate","footer"],[1,"grid"],[1,"mb-4","w-full"],[1,"form-group","field"],["for","VideoDevice",1,"label","block"],["optionLabel","VideoDevicePrompt","name","VideoDevice",3,"options","ngModel","editable","maxlength","style","ngModelChange","onChange",4,"ngIf"],[4,"ngIf"],[1,"block"],[1,"label","block"],[1,"col-10","bg-blue-100","text-gray-900"],["for","SignalTimeout",1,"label","block"],["name","SignalTimeout","id","SignalTimeout",3,"ngModel","showButtons","min","max","step","ngModelChange"],["for","ChannelTimeout",1,"label","block"],["name","ChannelTimeout","id","ChannelTimeout",3,"ngModel","showButtons","min","max","step","ngModelChange"],["inputId","DVBEITScan","name","DVBEITScan",1,"label","mb-2","w-full",3,"ngModel","binary","label","ngModelChang
e"],["DVBEITScan","ngModel"],["for","DVBDiSEqCType",1,"label","block"],["name","DVBDiSEqCType","id","DVBDiSEqCType",3,"ngModel","showButtons","min","max","step","ngModelChange"],["optionLabel","VideoDevicePrompt","name","VideoDevice",3,"options","ngModel","editable","maxlength","ngModelChange","onChange"],["VideoDevice","ngModel"],[1,"p-error","block"],[1,"grid","nogutter"],[1,"col-12"],["severity","success",3,"text",4,"ngIf"],["severity","error",3,"text",4,"ngIf"],["icon","pi
pi-save","iconPos","left",1,"col","pr-1",3,"label","disabled","onClick"],["severity","success",3,"text"],["severity","error",3,"text"]],template:function(e,n){1&e&&(l(0,"form",0,1),k(2,"span",null,2),l(4,"p-card",3),_(5,ase,2,3,"ng-template",4),_(6,lse,0,0,"ng-template",5),_(7,pse,78,77,"ng-template",6),_(8,fse,6,6,"ng-template",7),c()())},directives:[ze,Ue,He,Ne,ne,Q,Ot,Te,_e,_n,pt,sn,qe,ve],pipes:[ce],styles:[""]}),t})();const
_se=["vboxform"],bse=["top"];function
vse(t,i){1&t&&(g(0),m(1,"translate")),2&t&&T
(" ",f(1,1,"settings.capture.vbox.title")," ")}function
Cse(t,i){}const yse=function(){return{minWidth:"83%"}};function
wse(t,i){if(1&t){const
e=I();l(0,"p-dropdown",26,27),C("ngModelChange",function(s){return
v(e),d(2).currentDevice=s})("onChange",function(){return
v(e),d(2).updateDevice()}),c()}if(2&t){const
e=d(2);q(A(6,yse)),p("options",e.captureDeviceList.CaptureDeviceList.CaptureDevices)("ngModel",e.currentDevice)("editable",!1)("maxlength",0)}}function
Tse(t,i){if(1&t&&(l(0,"div")(1,"small",28),g(2),c()()),2&t){const
e=d(2);a(2),T(" ",e.warningMessage," ")}}function
Sse(t,i){if(1&t){const
e=I();l(0,"div",8)(1,"div",9)(2,"div",10)(3,"label",11),g(4),m(5,"translate"),c(),_(6,wse,2,7,"p-dropdown",12),_(7,Tse,3,1,"div",13),l(8,"small",14),g(9),m(10,"translate"),c()(),l(11,"div",10)(12,"label",15),g(13),m(14,"translate"),c(),l(15,"div",16),g(16),c(),l(17,"small",14),g(18),m(19,"translate"),c()(),l(20,"div",10)(21,"label",15),g(22),m(23,"translate"),c(),l(24,"div",16),g(25),c(),k(2
6,"small",14),c(),l(27,"div",10)(28,"label",17),g(29),m(30,"translate"),c(),l(31,"input",18,19),C("ngModelChange",function(s){return
v(e),d().currentDevice.IPAddress=s}),c(),l(33,"small",14),g(34),m(35,"translate"),c()(),l(36,"div",10)(37,"label",20),g(38),m(39,"translate"),c(),l(40,"input",21,19),C("ngModelChange",function(s){return
v(e),d().currentDevice.TunerNumber=s}),c(),l(42,"small",14),g(43),m(44,"translate"),c()(),l(45,"div",10)(46,"label",22),g(47),m(48,"translate"),c(),l(49,"p-inputNumber",23),C("ngModelChange",function(s){return
v(e),d().card.SignalTimeout=s}),c(),l(50,"small",14),g(51),m(52,"translate"),c()(),l(53,"div",10)(54,"label",24),g(55),m(56,"translate"),c(),l(57,"p-inputNumber",25),C("ngModelChange",function(s){return
v(e),d().card.ChannelTimeout=s}),c(),l(58,"small",14),g(59),m(60,"translate"),c()()()()}if(2&t){const
e=d();a(4),S(f(5,31,"settings.capture.satip.device_label")),a(2),p("ngIf",e.isReady),a(1),p("ngIf",e.warningMessage),a(2),T("
",f(10,33,"settings.
capture.vbox.device_desc"),"
"),a(4),S(f(14,35,"settings.capture.vbox.deviceid_label")),a(3),T("
",e.card.VideoDevice," \xa0 "),a(2),T("
",f(19,37,"settings.capture.vbox.deviceid_desc"),"
"),a(4),S(f(23,39,"settings.capture.vbox.description_label")),a(3),T("
",e.currentDevice.Description," \xa0
"),a(4),S(f(30,41,"settings.capture.ceton.ipaddress_label")),a(2),p("ngModel",e.currentDevice.IPAddress)("disabled",e.currentDevice!==e.manualDevice),a(3),T("
",f(35,43,"settings.capture.vbox.ipaddress_desc"),"
"),a(4),S(f(39,45,"settings.capture.ceton.tuner_label")),a(2),p("ngModel",e.currentDevice.TunerNumber)("disabled",e.currentDevice!==e.manualDevice),a(3),T("
",f(44,47,"settings.capture.vbox.tuner_desc"),"
"),a(4),S(f(48,49,"settings.capture.sigtimeout_label")),a(2),p("ngModel",e.card.SignalTimeout)("showButtons",!0)("min",250)("max",6e4)("step",250),a(2),T("
",f(52,51,"settings.capture.sigtimeout_desc"),"
"),a(4),S(f(56,53,"settings.capture.tunetimeout_label")),a(2),p("ngModel",e.card.
ChannelTimeout)("showButtons",!0)("min",2e3)("max",65e3)("step",250),a(2),T("
",f(60,55,"settings.capture.tunetimeout_desc")," ")}}function
xse(t,i){1&t&&(k(0,"p-message",34),m(1,"translate")),2&t&&x("text",f(1,1,"common.savesuccess"))}function
Dse(t,i){1&t&&(k(0,"p-message",35),m(1,"translate")),2&t&&x("text",f(1,1,"common.networkfail"))}function
Mse(t,i){if(1&t){const
e=I();l(0,"div",29)(1,"div",30),_(2,xse,2,3,"p-message",31),_(3,Dse,2,3,"p-message",32),c(),l(4,"p-button",33),C("onClick",function(){v(e);const
s=d(),r=F(1);return
s.saveForm(),r.form.markAsPristine()}),m(5,"translate"),c()()}if(2&t){const
e=d(),n=F(1);a(2),p("ngIf",e.successCount>0&&0==e.errorCount&&!n.dirty),a(1),p("ngIf",e.errorCount>0),a(1),x("label",f(5,4,"common.save")),p("disabled",!n.dirty||!e.card.VideoDevice||e.setupService.schedulingEnabled)}}let
kse=(()=>{class
t{constructor(e,n,s){this.captureCardService=e,this.setupService=n,this.translate=s,this.messages={devNotExist:"settings.capture.dvb.devNotExist"
,unknownName:"settings.capture.dvb.unknownName",devInUse:"settings.capture.dvb.devInUse",noDevSelected:"settings.capture.dvb.noDevSelected",manuallyEnter:"settings.capture.vbox.manuallyenter"},this.captureDeviceList={CaptureDeviceList:{CaptureDevices:[]}},this.currentDevice={FrontendName:"Unknown",InputNames:[""]},this.isReady=!1,this.warningMessage="",this.errorCount=0,this.successCount=0,this.saveObserver={next:r=>{this.card.CardId&&r.bool?this.successCount++:!this.card.CardId&&r.int?(this.successCount++,this.card.CardId=r.int,this.cardList.CaptureCardList.CaptureCards.push(this.card)):(this.errorCount++,this.currentForm.form.markAsDirty())},error:r=>{console.error(r),this.errorCount++,this.currentForm.form.markAsDirty()}},s.get(this.messages.devNotExist).subscribe(r=>this.messages.devNotExist=r),s.get(this.messages.unknownName).subscribe(r=>this.messages.unknownName=r),s.get(this.messages.devInUse).subscribe(r=>this.messages.devInUse=r),s.get(this.messages.noDevSelected).subscrib
e(r=>this.messages.noDevSelected=r),s.get(this.messages.manuallyEnter).subscribe(r=>this.messages.manuallyEnter=r)}ngOnInit(){this.captureCardService.GetCaptureDeviceList("VBOX").subscribe({next:e=>{this.captureDeviceList=e,this.setupDevice()},error:e=>{console.log("GetCaptureDeviceList",e),this.errorCount++}})}ngAfterViewInit(){this.setupService.setCurrentForm(this.currentForm),this.topElement.nativeElement.scrollIntoView({behavior:"smooth",block:"start"})}setupDevice(){if(this.manualDevice={VideoDevicePrompt:this.messages.manuallyEnter,VideoDevice:"",Description:"",IPAddress:"",TunerNumber:0,SignalTimeout:7e3,ChannelTimeout:1e4},this.captureDeviceList.CaptureDeviceList.CaptureDevices.unshift(this.manualDevice),this.card.VideoDevice||this.captureDeviceList.CaptureDeviceList.CaptureDevices.unshift({VideoDevice:"",FrontendName:this.messages.noDevSelected}),this.card.VideoDevice){let
e=this.captureDeviceList.CaptureDeviceList.CaptureDevices.find(n=>n.VideoDevice==this.card.VideoDevice
);e?this.currentDevice=e:(this.currentDevice={VideoDevice:this.card.VideoDevice,FrontendName:this.messages.devNotExist},this.captureDeviceList.CaptureDeviceList.CaptureDevices.push(this.currentDevice))}this.isReady=!0}updateDevice(){this.currentDevice===this.manualDevice?this.subscription=this.currentForm.valueChanges.pipe(yS(50)).subscribe(()=>this.card.VideoDevice=this.manualDevice.IPAddress+"-"+this.manualDevice.TunerNumber):this.subscription&&(this.subscription.unsubscribe(),this.subscription=void
0),this.card.VideoDevice=this.currentDevice.VideoDevice,this.card.ChannelTimeout=this.currentDevice.ChannelTimeout,this.card.SignalTimeout=this.currentDevice.SignalTimeout,this.checkInUse()}checkInUse(){this.warningMessage=this.cardList.CaptureCardList.CaptureCards.find(n=>n.VideoDevice==this.currentDevice.VideoDevice&&n.CardId!=this.card.CardId)?this.messages.devInUse:""}saveForm(){this.successCount=0,this.errorCount=0,this.card.CardId?this.cardList.CaptureCardList.CaptureCards.forEac
h(e=>{(e.CardId==this.card.CardId||e.ParentId==this.card.CardId)&&(this.captureCardService.UpdateCaptureCard(e.CardId,"videodevice",this.card.VideoDevice).subscribe(this.saveObserver),this.captureCardService.UpdateCaptureCard(e.CardId,"signal_timeout",String(this.card.SignalTimeout)).subscribe(this.saveObserver),this.captureCardService.UpdateCaptureCard(e.CardId,"channel_timeout",String(this.card.ChannelTimeout)).subscribe(this.saveObserver))}):this.captureCardService.AddCaptureCard(this.card).subscribe(this.saveObserver)}}return
t.\u0275fac=function(e){return
new(e||t)(D(Gt),D(Me),D(Oe))},t.\u0275cmp=z({type:t,selectors:[["app-vbox"]],viewQuery:function(e,n){if(1&e&&(W(_se,5),W(bse,5)),2&e){let
s;V(s=B())&&(n.currentForm=s.first),V(s=B())&&(n.topElement=s.first)}},inputs:{card:"card",cardList:"cardList"},decls:9,vars:0,consts:[["name","vboxform",1,"ml-3","mr-3"],["vboxform","ngForm"],["top",""],[1,"m-5"],["pTemplate","title"],["pTemplate","subtitle"],["pTemplate","content"],["pTemp
late","footer"],[1,"grid"],["u","",1,"mb-4","w-full"],[1,"form-group","field"],["for","VideoDevicePrompt",1,"label","block"],["optionLabel","VideoDevicePrompt","name","VideoDevicePrompt",3,"options","ngModel","editable","maxlength","style","ngModelChange","onChange",4,"ngIf"],[4,"ngIf"],[1,"block"],[1,"label","block"],[1,"col-10","bg-blue-100","text-gray-900"],["for","ip",1,"label","block"],["pInputText","","id","ip","name","ip",1,"mb-2","form-control","w-full",3,"ngModel","disabled","ngModelChange"],["ipAddress","ngModel"],["for","tuner",1,"label","block"],["pInputText","","id","tuner","name","tuner",1,"mb-2","form-control","w-full",3,"ngModel","disabled","ngModelChange"],["for","SignalTimeout",1,"label","block"],["name","SignalTimeout","id","SignalTimeout",3,"ngModel","showButtons","min","max","step","ngModelChange"],["for","ChannelTimeout",1,"label","block"],["name","ChannelTimeout","id","ChannelTimeout",3,"ngModel","showButtons","min","max","step","ngModelChange"],["optionLabel"
,"VideoDevicePrompt","name","VideoDevicePrompt",3,"options","ngModel","editable","maxlength","ngModelChange","onChange"],["VideoDevicePrompt","ngModel"],[1,"p-error","block"],[1,"grid","nogutter"],[1,"col-12"],["severity","success",3,"text",4,"ngIf"],["severity","error",3,"text",4,"ngIf"],["icon","pi
pi-save","iconPos","left",1,"col","pr-1",3,"label","disabled","onClick"],["severity","success",3,"text"],["severity","error",3,"text"]],template:function(e,n){1&e&&(l(0,"form",0,1),k(2,"span",null,2),l(4,"p-card",3),_(5,vse,2,3,"ng-template",4),_(6,Cse,0,0,"ng-template",5),_(7,Sse,61,57,"ng-template",6),_(8,Mse,6,6,"ng-template",7),c()())},directives:[ze,Ue,He,Ne,ne,Q,Ot,Te,_e,_n,Ye,pt,qe,ve],pipes:[ce],styles:[""]}),t})();const
Ise=["firewireform"],Ese=["top"];function
Rse(t,i){1&t&&(g(0),m(1,"translate")),2&t&&T("
",f(1,1,"settings.capture.firewire.title")," ")}function
Lse(t,i){}const Ed=function(){return{minWidth:"83%"}};function
Ose(t,i){if(1&t){const e=I();l(0,"p-dropdown",30,31),
C("ngModelChange",function(s){return
v(e),d(2).currentDevice=s})("onChange",function(){return
v(e),d(2).updateDevice()}),c()}if(2&t){const
e=d(2);q(A(6,Ed)),p("options",e.captureDeviceList.CaptureDeviceList.CaptureDevices)("ngModel",e.currentDevice)("editable",!1)("maxlength",0)}}function
Ase(t,i){if(1&t&&(l(0,"div")(1,"small",32),g(2),c()()),2&t){const
e=d(2);a(2),T(" ",e.warningMessage," ")}}function
Pse(t,i){if(1&t){const
e=I();l(0,"div",8)(1,"div",9)(2,"div",10)(3,"label",11),g(4),m(5,"translate"),c(),_(6,Ose,2,7,"p-dropdown",12),_(7,Ase,3,1,"div",13),k(8,"small",14),c(),l(9,"div",10)(10,"label",15),g(11),m(12,"translate"),c(),l(13,"div",16),g(14),c(),k(15,"small",14),c(),l(16,"div",10)(17,"label",17),g(18),m(19,"translate"),c(),l(20,"p-dropdown",18,19),C("ngModelChange",function(s){return
v(e),d().card.FirewireModel=s}),c(),l(22,"small",14),g(23),m(24,"translate"),c()(),l(25,"div",10)(26,"label",20),g(27),m(28,"translate"),c(),l(29,"p-dropdown",21,22),C("ngModelChange",function
(s){return
v(e),d().card.FirewireConnection=s}),c(),k(31,"small",14),c(),l(32,"div",10)(33,"label",23),g(34),m(35,"translate"),c(),l(36,"p-dropdown",24,25),C("ngModelChange",function(s){return
v(e),d().card.FirewireSpeed=s}),c(),k(38,"small",14),c(),l(39,"div",10)(40,"label",26),g(41),m(42,"translate"),c(),l(43,"p-inputNumber",27),C("ngModelChange",function(s){return
v(e),d().card.SignalTimeout=s}),c(),l(44,"small",14),g(45),m(46,"translate"),c()(),l(47,"div",10)(48,"label",28),g(49),m(50,"translate"),c(),l(51,"p-inputNumber",29),C("ngModelChange",function(s){return
v(e),d().card.ChannelTimeout=s}),c(),l(52,"small",14),g(53),m(54,"translate"),c()()()()}if(2&t){const
e=d();a(4),S(f(5,41,"settings.capture.firewire.device_label")),a(2),p("ngIf",e.isReady),a(1),p("ngIf",e.warningMessage),a(4),S(f(12,43,"settings.capture.vbox.description_label")),a(3),T("
",e.currentDevice.Description," \xa0
"),a(4),S(f(19,45,"settings.capture.firewire.model_label")),a(2),q(A(61,Ed)),p("options",e.models
)("ngModel",e.card.FirewireModel)("editable",!1)("maxlength",0),a(3),T("
",f(24,47,"settings.capture.firewire.model_desc"),"
"),a(4),S(f(28,49,"settings.capture.firewire.connection_label")),a(2),q(A(62,Ed)),p("options",e.connectionTypes)("ngModel",e.card.FirewireConnection)("editable",!1)("maxlength",0),a(5),S(f(35,51,"settings.capture.firewire.speed_label")),a(2),q(A(63,Ed)),p("options",e.speeds)("ngModel",e.card.FirewireSpeed)("editable",!1)("maxlength",0),a(5),S(f(42,53,"settings.capture.sigtimeout_label")),a(2),p("ngModel",e.card.SignalTimeout)("showButtons",!0)("min",250)("max",6e4)("step",250),a(2),T("
",f(46,55,"settings.capture.sigtimeout_desc"),"
"),a(4),S(f(50,57,"settings.capture.tunetimeout_label")),a(2),p("ngModel",e.card.ChannelTimeout)("showButtons",!0)("min",2e3)("max",65e3)("step",250),a(2),T("
",f(54,59,"settings.capture.tunetimeout_desc")," ")}}function
Fse(t,i){1&t&&(k(0,"p-message",38),m(1,"translate")),2&t&&x("text",f(1,1,"common.savesuccess"))}function
Nse(t,i
){1&t&&(k(0,"p-message",39),m(1,"translate")),2&t&&x("text",f(1,1,"common.networkfail"))}function
Vse(t,i){if(1&t){const
e=I();l(0,"div",33)(1,"div",34),_(2,Fse,2,3,"p-message",35),_(3,Nse,2,3,"p-message",36),c(),l(4,"p-button",37),C("onClick",function(){v(e);const
s=d(),r=F(1);return
s.saveForm(),r.form.markAsPristine()}),m(5,"translate"),c()()}if(2&t){const
e=d(),n=F(1);a(2),p("ngIf",e.successCount>0&&0==e.errorCount&&!n.dirty),a(1),p("ngIf",e.errorCount>0),a(1),x("label",f(5,4,"common.save")),p("disabled",!n.dirty||!e.card.VideoDevice||e.setupService.schedulingEnabled)}}let
Bse=(()=>{class
t{constructor(e,n,s){this.captureCardService=e,this.setupService=n,this.translate=s,this.messages={devNotExist:"settings.capture.dvb.devNotExist",unknownName:"settings.capture.dvb.unknownName",devInUse:"settings.capture.dvb.devInUse",noDevSelected:"settings.capture.dvb.noDevSelected",manuallyEnter:"settings.capture.vbox.manuallyenter"},this.models=[{name:"settings.capture.firewire.motogeneric",
value:"MOTO
GENERIC"},{name:"settings.capture.firewire.sageneric",value:"SA
GENERIC"},{name:"DCH-3200",value:"DCH-3200"},{name:"DCX-3200",value:"DCX-3200"},{name:"DCT-3412",value:"DCT-3412"},{name:"DCT-3416",value:"DCT-3416"},{name:"DCT-6200",value:"DCT-6200"},{name:"DCT-6212",value:"DCT-6212"},{name:"DCT-6216",value:"DCT-6216"},{name:"QIP-6200",value:"QIP-6200"},{name:"QIP-7100",value:"QIP-7100"},{name:"PACE-550",value:"PACE-550"},{name:"PACE-779",value:"PACE-779"},{name:"SA3250HD",value:"SA3250HD"},{name:"SA4200HD",value:"SA4200HD"},{name:"SA4250HDC",value:"SA4250HDC"},{name:"SA8300HD",value:"SA8300HD"}],this.connectionTypes=[{name:"settings.capture.firewire.pointtopoint",value:0},{name:"settings.capture.firewire.broadcast",value:1}],this.speeds=[{name:"100Mbps",value:0},{name:"200Mbps",value:1},{name:"400Mbps",value:2},{name:"800Mbps",value:3}],this.captureDeviceList={CaptureDeviceList:{CaptureDevices:[]}},this.currentDevice={FrontendName:"Unknown",InputNames:[""]},this.isReady=!
1,this.warningMessage="",this.errorCount=0,this.successCount=0,this.saveObserver={next:r=>{this.card.CardId&&r.bool?this.successCount++:!this.card.CardId&&r.int?(this.successCount++,this.card.CardId=r.int,this.cardList.CaptureCardList.CaptureCards.push(this.card)):(this.errorCount++,this.currentForm.form.markAsDirty())},error:r=>{console.error(r),this.errorCount++,this.currentForm.form.markAsDirty()}},s.get(this.messages.devNotExist).subscribe(r=>this.messages.devNotExist=r),s.get(this.messages.unknownName).subscribe(r=>this.messages.unknownName=r),s.get(this.messages.devInUse).subscribe(r=>this.messages.devInUse=r),s.get(this.messages.noDevSelected).subscribe(r=>this.messages.noDevSelected=r),s.get(this.messages.manuallyEnter).subscribe(r=>this.messages.manuallyEnter=r),s.get(this.models[0].name).subscribe(r=>this.models[0].name=r),s.get(this.models[1].name).subscribe(r=>this.models[1].name=r),s.get(this.connectionTypes[0].name).subscribe(r=>this.connectionTypes[0].name=r),s.get(th
is.connectionTypes[1].name).subscribe(r=>this.connectionTypes[1].name=r)}ngOnInit(){this.captureCardService.GetCaptureDeviceList("FIREWIRE").subscribe({next:e=>{this.captureDeviceList=e,this.setupDevice()},error:e=>{console.log("GetCaptureDeviceList",e),this.errorCount++}})}ngAfterViewInit(){this.setupService.setCurrentForm(this.currentForm),this.topElement.nativeElement.scrollIntoView({behavior:"smooth",block:"start"})}setupDevice(){if(this.card.VideoDevice||this.captureDeviceList.CaptureDeviceList.CaptureDevices.unshift({VideoDevice:"",FrontendName:this.messages.noDevSelected}),this.card.VideoDevice){let
e=this.captureDeviceList.CaptureDeviceList.CaptureDevices.find(n=>n.VideoDevice==this.card.VideoDevice);e?this.currentDevice=e:(this.currentDevice={VideoDevice:this.card.VideoDevice,FrontendName:this.messages.devNotExist},this.captureDeviceList.CaptureDeviceList.CaptureDevices.push(this.currentDevice))}this.isReady=!0}updateDevice(){this.card.VideoDevice=this.currentDevice.VideoDe
vice,this.card.ChannelTimeout=this.currentDevice.ChannelTimeout,this.card.SignalTimeout=this.currentDevice.SignalTimeout,this.card.FirewireModel=this.currentDevice.FirewireModel,this.checkInUse()}checkInUse(){this.warningMessage=this.cardList.CaptureCardList.CaptureCards.find(n=>n.VideoDevice==this.currentDevice.VideoDevice&&n.CardId!=this.card.CardId)?this.messages.devInUse:""}saveForm(){this.successCount=0,this.errorCount=0,this.card.CardId?this.cardList.CaptureCardList.CaptureCards.forEach(e=>{(e.CardId==this.card.CardId||e.ParentId==this.card.CardId)&&(this.captureCardService.UpdateCaptureCard(e.CardId,"videodevice",this.card.VideoDevice).subscribe(this.saveObserver),this.captureCardService.UpdateCaptureCard(e.CardId,"firewire_model",this.card.FirewireModel).subscribe(this.saveObserver),this.captureCardService.UpdateCaptureCard(e.CardId,"firewire_connection",String(this.card.FirewireConnection)).subscribe(this.saveObserver),this.captureCardService.UpdateCaptureCard(e.CardId,"fir
ewire_speed",String(this.card.FirewireSpeed)).subscribe(this.saveObserver),this.captureCardService.UpdateCaptureCard(e.CardId,"signal_timeout",String(this.card.SignalTimeout)).subscribe(this.saveObserver),this.captureCardService.UpdateCaptureCard(e.CardId,"channel_timeout",String(this.card.ChannelTimeout)).subscribe(this.saveObserver))}):this.captureCardService.AddCaptureCard(this.card).subscribe(this.saveObserver)}}return
t.\u0275fac=function(e){return
new(e||t)(D(Gt),D(Me),D(Oe))},t.\u0275cmp=z({type:t,selectors:[["app-firewire"]],viewQuery:function(e,n){if(1&e&&(W(Ise,5),W(Ese,5)),2&e){let
s;V(s=B())&&(n.currentForm=s.first),V(s=B())&&(n.topElement=s.first)}},inputs:{card:"card",cardList:"cardList"},decls:9,vars:0,consts:[["name","firewireform",1,"ml-3","mr-3"],["firewireform","ngForm"],["top",""],[1,"m-5"],["pTemplate","title"],["pTemplate","subtitle"],["pTemplate","content"],["pTemplate","footer"],[1,"grid"],[1,"mb-4","w-full"],[1,"form-group","field"],["for","VideoDevice",1,"l
abel","block"],["optionLabel","VideoDevice","name","VideoDevice",3,"options","ngModel","editable","maxlength","style","ngModelChange","onChange",4,"ngIf"],[4,"ngIf"],[1,"block"],[1,"label","block"],[1,"col-10","bg-blue-100","text-gray-900"],["for","FirewireModel",1,"label","block"],["optionLabel","name","optionValue","value","name","FirewireModel",3,"options","ngModel","editable","maxlength","ngModelChange"],["FirewireModel","ngModel"],["for","FirewireConnection",1,"label","block"],["optionLabel","name","optionValue","value","name","FirewireConnection",3,"options","ngModel","editable","maxlength","ngModelChange"],["FirewireConnection","ngModel"],["for","FirewireSpeed",1,"label","block"],["optionLabel","name","optionValue","value","name","FirewireSpeed",3,"options","ngModel","editable","maxlength","ngModelChange"],["FirewireSpeed","ngModel"],["for","SignalTimeout",1,"label","block"],["name","SignalTimeout","id","SignalTimeout",3,"ngModel","showButtons","min","max","step","ngModelChan
ge"],["for","ChannelTimeout",1,"label","block"],["name","ChannelTimeout","id","ChannelTimeout",3,"ngModel","showButtons","min","max","step","ngModelChange"],["optionLabel","VideoDevice","name","VideoDevice",3,"options","ngModel","editable","maxlength","ngModelChange","onChange"],["VideoDevice","ngModel"],[1,"p-error","block"],[1,"grid","nogutter"],[1,"col-12"],["severity","success",3,"text",4,"ngIf"],["severity","error",3,"text",4,"ngIf"],["icon","pi
pi-save","iconPos","left",1,"col","pr-1",3,"label","disabled","onClick"],["severity","success",3,"text"],["severity","error",3,"text"]],template:function(e,n){1&e&&(l(0,"form",0,1),k(2,"span",null,2),l(4,"p-card",3),_(5,Rse,2,3,"ng-template",4),_(6,Lse,0,0,"ng-template",5),_(7,Pse,55,64,"ng-template",6),_(8,Vse,6,6,"ng-template",7),c()())},directives:[ze,Ue,He,Ne,ne,Q,Ot,Te,_e,_n,pt,qe,ve],pipes:[ce],styles:[""]}),t})();const
Hse=["scroll"],ht=function(){return{minWidth:"400px"}};function
qse(t,i){if(1&t){const e=I();l(0,"div",0)(1,"lab
el",38),g(2),m(3,"translate"),c(),l(4,"p-dropdown",39,40),C("ngModelChange",function(s){return
v(e),d(2).scanRequest.FreqTable=s})("onChange",function(){return
v(e),d(2).onFreqTableChange(!1)}),c(),l(6,"small",4),g(7),m(8,"translate"),c()()}if(2&t){const
e=d(2);a(2),S(f(3,8,"settings.channelscan.freqtable_label")),a(2),q(A(12,ht)),p("options",e.freqTableSelect)("ngModel",e.scanRequest.FreqTable)("editable",!1)("maxlength",0),a(3),T("
",f(8,10,"settings.channelscan.freqtable_desc")," ")}}function
Gse(t,i){if(1&t){const
e=I();l(0,"div",0)(1,"label",41),g(2),m(3,"translate"),c(),l(4,"p-dropdown",42,43),C("ngModelChange",function(s){return
v(e),d(2).scanRequest.FreqTable=s}),c(),l(6,"small",4),g(7),m(8,"translate"),c()()}if(2&t){const
e=d(2);a(2),S(f(3,8,"settings.channelscan.country_label")),a(2),q(A(12,ht)),p("options",e.countryTable)("ngModel",e.scanRequest.FreqTable)("editable",!1)("maxlength",0),a(3),T("
",f(8,10,"settings.channelscan.scantype_dvbt_desc"),"
")}}function Use(t,i){if
(1&t){const
e=I();l(0,"div",0)(1,"label",41),g(2),m(3,"translate"),c(),l(4,"p-dropdown",42,43),C("ngModelChange",function(s){return
v(e),d(2).scanRequest.FreqTable=s}),c(),k(6,"small",4),c()}if(2&t){const
e=d(2);a(2),S(f(3,7,"settings.channelscan.country_label")),a(2),q(A(9,ht)),p("options",e.networkTable)("ngModel",e.scanRequest.FreqTable)("editable",!1)("maxlength",0)}}function
zse(t,i){if(1&t){const
e=I();l(0,"div",0)(1,"label",44),g(2),m(3,"translate"),c(),l(4,"p-dropdown",45,46),C("ngModelChange",function(s){return
v(e),d(2).scanRequest.Modulation=s})("onChange",function(){return
v(e),d(2).onFreqTableChange(!0)}),c(),l(6,"small",4),g(7),m(8,"translate"),c()()}if(2&t){const
e=d(2);a(2),S(f(3,8,"settings.channelscan.modulation_label")),a(2),q(A(12,ht)),p("options",e.atscModulationTable)("ngModel",e.scanRequest.Modulation)("editable",!1)("maxlength",0),a(3),T("
",f(8,10,"settings.channelscan.atscmodulation_desc"),"
")}}function
jse(t,i){1&t&&(l(0,"div")(1,"small",51),g(2),m(3,"tra
nslate"),c()()),2&t&&(a(2),S(f(3,1,"settings.channelscan.invalid_range")))}function
$se(t,i){if(1&t){const
e=I();l(0,"div",0)(1,"label",47),g(2),m(3,"translate"),c(),l(4,"p-dropdown",48,49),C("ngModelChange",function(s){return
v(e),d(2).scanRequest.FirstChan=s}),c(),l(6,"small",4),g(7),m(8,"translate"),c(),_(9,jse,4,3,"div",50),c()}if(2&t){const
e=d(2);a(2),S(f(3,9,"settings.channelscan.firstchan_label")),a(2),q(A(13,ht)),p("options",e.channels)("ngModel",e.scanRequest.FirstChan)("editable",!1)("maxlength",0),a(3),T("
",f(8,11,"settings.channelscan.firstchan_desc"),"
"),a(2),p("ngIf",e.channelCount<1)}}function
Wse(t,i){1&t&&(l(0,"div")(1,"small",51),g(2),m(3,"translate"),c()()),2&t&&(a(2),S(f(3,1,"settings.channelscan.invalid_range")))}function
Kse(t,i){if(1&t){const
e=I();l(0,"div",0)(1,"label",52),g(2),m(3,"translate"),c(),l(4,"p-dropdown",53,54),C("ngModelChange",function(s){return
v(e),d(2).scanRequest.LastChan=s}),c(),l(6,"small",4),g(7),m(8,"translate"),c(),_(9,Wse,4,3,"div",
50),c()}if(2&t){const
e=d(2);a(2),S(f(3,9,"settings.channelscan.lastchan_label")),a(2),q(A(13,ht)),p("options",e.channels)("ngModel",e.scanRequest.LastChan)("editable",!1)("maxlength",0),a(3),T("
",f(8,11,"settings.channelscan.lastchan_desc"),"
"),a(2),p("ngIf",e.channelCount<1)}}function
Qse(t,i){if(1&t&&(l(0,"div",0)(1,"label",30),g(2),m(3,"translate"),c(),l(4,"div",29),g(5),c(),l(6,"small",4),g(7),m(8,"translate"),c()()),2&t){const
e=d(2);a(2),S(f(3,3,"settings.channelscan.chancount_label")),a(3),T("
",e.calcCount()," \xa0 "),a(2),T("
",f(8,5,"settings.channelscan.chancount_desc")," ")}}const
Xs=function(){return["DVBT","DVBT2"]};function
Jse(t,i){if(1&t&&(l(0,"p-fieldset",37),m(1,"translate"),_(2,qse,9,13,"div",33),_(3,Gse,9,13,"div",33),_(4,Use,7,10,"div",33),_(5,zse,9,13,"div",33),_(6,$se,10,14,"div",33),_(7,Kse,10,14,"div",33),_(8,Qse,9,7,"div",33),c()),2&t){const
e=d();x("legend",f(1,10,"settings.channelscan.type.full")),p("toggleable",!1)("collapsed",!1),a(2),p("ngIf","ATSC
"==e.scanSubType),a(1),p("ngIf",A(12,Xs).includes(e.scanSubType)),a(1),p("ngIf","DVBC"==e.scanSubType),a(1),p("ngIf","ATSC"==e.scanSubType),a(1),p("ngIf","ATSC"==e.scanSubType),a(1),p("ngIf","ATSC"==e.scanSubType),a(1),p("ngIf","ATSC"==e.scanSubType)}}function
Yse(t,i){if(1&t){const
e=I();l(0,"div",0)(1,"label",61),g(2),m(3,"translate"),c(),l(4,"p-dropdown",62,63),C("ngModelChange",function(s){return
v(e),d(2).satTuning=s})("onChange",function(){return
v(e),d(2).onSatTuningChange()}),c(),l(6,"small",4),g(7),m(8,"translate"),c()()}if(2&t){const
e=d(2);a(2),S(f(3,8,"settings.channelscan.sattuning_label")),a(2),q(A(12,ht)),p("options",e.satTuningTable)("ngModel",e.satTuning)("editable",!1)("maxlength",0),a(3),T("
",f(8,10,"settings.channelscan.sattuning_desc")," ")}}function
Zse(t,i){if(1&t){const
e=I();l(0,"div",0)(1,"label",64),g(2),m(3,"translate"),c(),l(4,"p-dropdown",65,66),C("ngModelChange",function(s){return
v(e),d(2).scanRequest.Bandwidth=s}),c(),l(6,"small",4),g(7),m(8,"transl
ate"),c()()}if(2&t){const
e=d(2);a(2),S(f(3,8,"settings.channelscan.bandwidth_label")),a(2),q(A(12,ht)),p("options",e.bandwidthTable)("ngModel",e.scanRequest.Bandwidth)("editable",!1)("maxlength",0),a(3),T("
",f(8,10,"settings.channelscan.bandwidth_desc")," ")}}function
Xse(t,i){if(1&t){const
e=I();l(0,"div",0)(1,"label",67),g(2),m(3,"translate"),c(),l(4,"p-dropdown",68,69),C("ngModelChange",function(s){return
v(e),d(2).scanRequest.Polarity=s}),c(),l(6,"small",4),g(7),m(8,"translate"),c()()}if(2&t){const
e=d(2);a(2),S(f(3,8,"settings.channelscan.polarity_label")),a(2),q(A(12,ht)),p("options",e.polarityTable)("ngModel",e.scanRequest.Polarity)("editable",!1)("maxlength",0),a(3),T("
",f(8,10,"settings.channelscan.polarity_desc")," ")}}function
ere(t,i){if(1&t){const
e=I();l(0,"div",0)(1,"label",70),g(2),m(3,"translate"),c(),l(4,"p-dropdown",71,72),C("ngModelChange",function(s){return
v(e),d(2).scanRequest.SymbolRate=s}),c(),l(6,"small",4),g(7),m(8,"translate"),c()()}if(2&t){const
e=d(2
);a(2),S(f(3,8,"settings.channelscan.symbolrate_label")),a(2),q(A(12,ht)),p("options",e.dvbcSymbolRateTable)("ngModel",e.scanRequest.SymbolRate)("editable",!0)("maxlength",8),a(3),T("
",f(8,10,"settings.channelscan.dvbcsymbolrate_desc"),"
")}}function tre(t,i){if(1&t){const
e=I();l(0,"div",0)(1,"label",73),g(2),m(3,"translate"),c(),l(4,"p-dropdown",74,75),C("ngModelChange",function(s){return
v(e),d(2).scanRequest.SymbolRate=s}),c(),l(6,"small",4),g(7),m(8,"translate"),c()()}if(2&t){const
e=d(2);a(2),S(f(3,8,"settings.channelscan.symbolrate_label")),a(2),q(A(12,ht)),p("options",e.dvbsSymbolRateTable)("ngModel",e.scanRequest.SymbolRate)("editable",!0)("maxlength",8),a(3),T("
",f(8,10,"settings.channelscan.dvbssymbolrate_desc"),"
")}}function nre(t,i){if(1&t){const
e=I();l(0,"div",0)(1,"label",76),g(2),m(3,"translate"),c(),l(4,"p-dropdown",77,78),C("ngModelChange",function(s){return
v(e),d(2).scanRequest.Constellation=s}),c(),l(6,"small",4),g(7),m(8,"translate"),c()()}if(2&t){const
e=d
(2);a(2),S(f(3,8,"settings.channelscan.constellation_label")),a(2),q(A(12,ht)),p("options",e.modulationTable)("ngModel",e.scanRequest.Constellation)("editable",!1)("maxlength",0),a(3),T("
",f(8,10,"settings.channelscan.constellation_desc"),"
")}}function ire(t,i){if(1&t){const
e=I();l(0,"div",0)(1,"label",79),g(2),m(3,"translate"),c(),l(4,"p-dropdown",80,81),C("ngModelChange",function(s){return
v(e),d(2).scanRequest.Modulation=s}),c(),l(6,"small",4),g(7),m(8,"translate"),c()()}if(2&t){const
e=d(2);a(2),S(f(3,8,"settings.channelscan.modulation_label")),a(2),q(A(12,ht)),p("options",e.modulationTable)("ngModel",e.scanRequest.Modulation)("editable",!1)("maxlength",0),a(3),T("
",f(8,10,"settings.channelscan.Modulation_desc")," ")}}function
sre(t,i){if(1&t){const
e=I();l(0,"div",0)(1,"label",82),g(2),m(3,"translate"),c(),l(4,"p-dropdown",83,84),C("ngModelChange",function(s){return
v(e),d(2).scanRequest.Modulation=s}),c(),l(6,"small",4),g(7),m(8,"translate"),c()()}if(2&t){const
e=d(2);a(2)
,S(f(3,8,"settings.channelscan.modulation_label")),a(2),q(A(12,ht)),p("options",e.dvbsModulationTable)("ngModel",e.scanRequest.Modulation)("editable",!1)("maxlength",0),a(3),T("
",f(8,10,"settings.channelscan.dvbsmodulation_desc"),"
")}}function rre(t,i){if(1&t){const
e=I();l(0,"div",0)(1,"label",85),g(2),m(3,"translate"),c(),l(4,"p-dropdown",86,87),C("ngModelChange",function(s){return
v(e),d(2).scanRequest.ModSys=s}),c(),l(6,"small",4),g(7),m(8,"translate"),c()()}if(2&t){const
e=d(2);a(2),S(f(3,8,"settings.channelscan.modsys_label")),a(2),q(A(12,ht)),p("options",e.dvbtModSysTable)("ngModel",e.scanRequest.ModSys)("editable",!1)("maxlength",0),a(3),T("
",f(8,10,"settings.channelscan.dvbtmodsys_desc")," ")}}function
ore(t,i){if(1&t){const
e=I();l(0,"div",0)(1,"label",88),g(2),m(3,"translate"),c(),l(4,"p-dropdown",89,90),C("ngModelChange",function(s){return
v(e),d(2).scanRequest.ModSys=s}),c(),l(6,"small",4),g(7),m(8,"translate"),c()()}if(2&t){const
e=d(2);a(2),S(f(3,8,"settings.channe
lscan.modsys_label")),a(2),q(A(12,ht)),p("options",e.dvbcModSysTable)("ngModel",e.scanRequest.ModSys)("editable",!1)("maxlength",0),a(3),T("
",f(8,10,"settings.channelscan.dvbcmodsys_desc")," ")}}function
are(t,i){if(1&t){const
e=I();l(0,"div",0)(1,"label",91),g(2),m(3,"translate"),c(),l(4,"p-dropdown",92,93),C("ngModelChange",function(s){return
v(e),d(2).scanRequest.ModSys=s}),c(),l(6,"small",4),g(7),m(8,"translate"),c()()}if(2&t){const
e=d(2);a(2),S(f(3,8,"settings.channelscan.modsys_label")),a(2),q(A(12,ht)),p("options",e.dvbsModSysTable)("ngModel",e.scanRequest.ModSys)("editable",!1)("maxlength",0),a(3),T("
",f(8,10,"settings.channelscan.dvbsmodsys_desc")," ")}}function
lre(t,i){if(1&t){const
e=I();l(0,"div",0)(1,"label",94),g(2),m(3,"translate"),c(),l(4,"p-dropdown",95,96),C("ngModelChange",function(s){return
v(e),d(2).scanRequest.CodeRateLP=s}),c(),l(6,"small",4),g(7),m(8,"translate"),c()()}if(2&t){const
e=d(2);a(2),S(f(3,8,"settings.channelscan.coderatelp_label")),a(2),q(A(12
,ht)),p("options",e.fecTable)("ngModel",e.scanRequest.CodeRateLP)("editable",!1)("maxlength",0),a(3),T("
",f(8,10,"settings.channelscan.coderatelp_desc")," ")}}function
cre(t,i){if(1&t){const
e=I();l(0,"div",0)(1,"label",97),g(2),m(3,"translate"),c(),l(4,"p-dropdown",98,99),C("ngModelChange",function(s){return
v(e),d(2).scanRequest.CodeRateHP=s}),c(),l(6,"small",4),g(7),m(8,"translate"),c()()}if(2&t){const
e=d(2);a(2),S(f(3,8,"settings.channelscan.coderatehp_label")),a(2),q(A(12,ht)),p("options",e.fecTable)("ngModel",e.scanRequest.CodeRateHP)("editable",!1)("maxlength",0),a(3),T("
",f(8,10,"settings.channelscan.coderatehp_desc")," ")}}function
ure(t,i){if(1&t){const
e=I();l(0,"div",0)(1,"label",100),g(2),m(3,"translate"),c(),l(4,"p-dropdown",101,102),C("ngModelChange",function(s){return
v(e),d(2).scanRequest.FEC=s}),c(),l(6,"small",4),g(7),m(8,"translate"),c()()}if(2&t){const
e=d(2);a(2),S(f(3,8,"settings.channelscan.FEC_label")),a(2),q(A(12,ht)),p("options",e.fecTable)("ngModel",e.
scanRequest.FEC)("editable",!1)("maxlength",0),a(3),T("
",f(8,10,"settings.channelscan.FEC_desc")," ")}}function
dre(t,i){if(1&t){const
e=I();l(0,"div",0)(1,"label",103),g(2),m(3,"translate"),c(),l(4,"p-dropdown",104,105),C("ngModelChange",function(s){return
v(e),d(2).scanRequest.TransmissionMode=s}),c(),l(6,"small",4),g(7),m(8,"translate"),c()()}if(2&t){const
e=d(2);a(2),S(f(3,8,"settings.channelscan.transmissionmode_label")),a(2),q(A(12,ht)),p("options",e.transmissionModeTable)("ngModel",e.scanRequest.TransmissionMode)("editable",!1)("maxlength",0),a(3),T("
",f(8,10,"settings.channelscan.transmissionmode_desc"),"
")}}function pre(t,i){if(1&t){const
e=I();l(0,"div",0)(1,"label",106),g(2),m(3,"translate"),c(),l(4,"p-dropdown",107,108),C("ngModelChange",function(s){return
v(e),d(2).scanRequest.GuardInterval=s}),c(),l(6,"small",4),g(7),m(8,"translate"),c()()}if(2&t){const
e=d(2);a(2),S(f(3,8,"settings.channelscan.guardinterval_label")),a(2),q(A(12,ht)),p("options",e.guardIntervalTable
)("ngModel",e.scanRequest.GuardInterval)("editable",!1)("maxlength",0),a(3),T("
",f(8,10,"settings.channelscan.guardinterval_desc"),"
")}}function hre(t,i){if(1&t){const
e=I();l(0,"div",0)(1,"label",109),g(2),m(3,"translate"),c(),l(4,"p-dropdown",110,111),C("ngModelChange",function(s){return
v(e),d(2).scanRequest.Hierarchy=s}),c(),l(6,"small",4),g(7),m(8,"translate"),c()()}if(2&t){const
e=d(2);a(2),S(f(3,8,"settings.channelscan.hierarchy_label")),a(2),q(A(12,ht)),p("options",e.hierarchyTable)("ngModel",e.scanRequest.Hierarchy)("editable",!1)("maxlength",0),a(3),T("
",f(8,10,"settings.channelscan.hierarchy_desc")," ")}}function
mre(t,i){if(1&t){const
e=I();l(0,"div",0)(1,"label",112),g(2),m(3,"translate"),c(),l(4,"p-dropdown",113,114),C("ngModelChange",function(s){return
v(e),d(2).scanRequest.RollOff=s}),c(),l(6,"small",4),g(7),m(8,"translate"),c()()}if(2&t){const
e=d(2);a(2),S(f(3,8,"settings.channelscan.rolloff_label")),a(2),q(A(12,ht)),p("options",e.rollOffTable)("ngModel",e.scanR
equest.RollOff)("editable",!1)("maxlength",0),a(3),T("
",f(8,10,"settings.channelscan.rolloff_desc")," ")}}const
Tg=function(){return["DVBS","DVBS2"]},fre=function(t){return{unit:t}},gre=function(){return["DVBC","DVBS","DVBS2"]};function
_re(t,i){if(1&t){const
e=I();l(0,"p-fieldset",37),m(1,"translate"),_(2,Yse,9,13,"div",33),l(3,"div",0)(4,"label",55),g(5),m(6,"translate"),c(),l(7,"p-inputNumber",56),C("ngModelChange",function(s){return
v(e),d().scanRequest.Frequency=s}),c(),l(8,"small",4),k(9,"div",57),c()(),_(10,Zse,9,13,"div",33),_(11,Xse,9,13,"div",33),_(12,ere,9,13,"div",33),_(13,tre,9,13,"div",33),l(14,"div",0)(15,"label",58),g(16),m(17,"translate"),c(),l(18,"p-dropdown",59,60),C("ngModelChange",function(s){return
v(e),d().scanRequest.Inversion=s}),c(),l(20,"small",4),g(21),m(22,"translate"),c()(),_(23,nre,9,13,"div",33),_(24,ire,9,13,"div",33),_(25,sre,9,13,"div",33),_(26,rre,9,13,"div",33),_(27,ore,9,13,"div",33),_(28,are,9,13,"div",33),_(29,lre,9,13,"div",33),_(30,cre,9,13
,"div",33),_(31,ure,9,13,"div",33),_(32,dre,9,13,"div",33),_(33,pre,9,13,"div",33),_(34,hre,9,13,"div",33),_(35,mre,9,13,"div",33),c()}if(2&t){const
e=d();x("legend",f(1,35,"settings.channelscan.type.fulltuned")),p("toggleable",!1)("collapsed",!1),a(2),p("ngIf","DVBS2"==e.scanSubType),a(3),S(f(6,37,"settings.channelscan.frequency_label")),a(2),p("ngModel",e.scanRequest.Frequency)("min",0)("max",999999999),a(2),p("translate","settings.channelscan.frequency_desc")("translateParams",U(44,fre,A(43,Tg).includes(e.scanSubType)?"kHZ":"Hz")),a(1),p("ngIf",A(46,Xs).includes(e.scanSubType)),a(1),p("ngIf",A(47,Tg).includes(e.scanSubType)),a(1),p("ngIf","DVBC"==e.scanSubType),a(1),p("ngIf",A(48,Tg).includes(e.scanSubType)),a(3),S(f(17,39,"settings.channelscan.inversion_label")),a(2),q(A(49,ht)),p("options",e.inversionTable)("ngModel",e.scanRequest.Inversion)("editable",!1)("maxlength",0),a(3),T("
",f(22,41,"settings.channelscan.inversion_desc"),"
"),a(2),p("ngIf",A(50,Xs).includes(e.scanSubType
)),a(1),p("ngIf","DVBC"==e.scanSubType),a(1),p("ngIf","DVBS2"==e.scanSubType),a(1),p("ngIf","DVBT2"==e.scanSubType),a(1),p("ngIf","DVBC"==e.scanSubType),a(1),p("ngIf","DVBS2"==e.scanSubType),a(1),p("ngIf",A(51,Xs).includes(e.scanSubType)),a(1),p("ngIf",A(52,Xs).includes(e.scanSubType)),a(1),p("ngIf",A(53,gre).includes(e.scanSubType)),a(1),p("ngIf",A(54,Xs).includes(e.scanSubType)),a(1),p("ngIf",A(55,Xs).includes(e.scanSubType)),a(1),p("ngIf",A(56,Xs).includes(e.scanSubType)),a(1),p("ngIf","DVBS2"==e.scanSubType)}}function
bre(t,i){if(1&t){const
e=I();l(0,"p-fieldset",37),m(1,"translate"),l(2,"div",0)(3,"label",115),g(4),m(5,"translate"),c(),l(6,"p-dropdown",116,117),C("ngModelChange",function(s){return
v(e),d().scanRequest.ScanId=s}),c(),k(8,"small",4),c()()}if(2&t){const
e=d();x("legend",f(1,10,"settings.channelscan.type.import")),p("toggleable",!1)("collapsed",!1),a(4),S(f(5,12,"settings.channelscan.scanimport_label")),a(2),q(A(14,ht)),p("options",e.scans)("ngModel",e.scanRequest.
ScanId)("editable",!1)("maxlength",0)}}function
vre(t,i){if(1&t){const
e=I();l(0,"div",0)(1,"label",122),g(2),m(3,"translate"),c(),l(4,"p-dropdown",123,124),C("ngModelChange",function(s){return
v(e),d(2).scanRequest.MplexId=s}),c(),k(6,"small",4),c()}if(2&t){const
e=d(2);a(2),S(f(3,7,"settings.channelscan.transport_label")),a(2),q(A(9,ht)),p("options",e.multiplex)("ngModel",e.scanRequest.MplexId)("editable",!1)("maxlength",0)}}function
Cre(t,i){if(1&t){const
e=I();l(0,"p-fieldset",37),m(1,"translate"),_(2,vre,7,10,"div",33),l(3,"div",0)(4,"p-checkbox",118,119),C("ngModelChange",function(s){return
v(e),d().scanRequest.IgnoreSignalTimeout=s}),m(6,"translate"),c(),l(7,"small",4),g(8),m(9,"translate"),c()(),l(10,"div",0)(11,"p-checkbox",120,121),C("ngModelChange",function(s){return
v(e),d().scanRequest.FollowNITSetting=s}),m(13,"translate"),c(),l(14,"small",4),g(15),m(16,"translate"),c()()()}if(2&t){const
e=d();x("legend",f(1,12,"settings.channelscan.type.transports")),p("toggleable",!1
)("collapsed",!1),a(2),p("ngIf","ONETRANSPORT"==e.scanRequest.ScanType),a(2),x("label",f(6,14,"settings.channelscan.ignoresignaltimeout_label")),p("ngModel",e.scanRequest.IgnoreSignalTimeout)("binary",!0),a(4),T("
",f(9,16,"settings.channelscan.ignoresignaltimeout_desc"),"
"),a(3),x("label",f(13,18,"settings.channelscan.follownitsetting_label")),p("ngModel",e.scanRequest.FollowNITSetting)("binary",!0),a(4),T("
",f(16,20,"settings.channelscan.follownitsetting_desc"),"
")}}function
yre(t,i){1&t&&(l(0,"small",4),g(1),m(2,"translate"),c()),2&t&&(a(1),T("
",f(2,1,"settings.channelscan.scan_desc")," "))}function
wre(t,i){if(1&t&&(l(0,"div",0)(1,"div",125)(2,"b"),g(3),c(),g(4,"
\xa0 "),c(),k(5,"br"),c()),2&t){const
e=d();a(3),S(e.scanStatus.DialogMsg)}}function Tre(t,i){if(1&t){const
e=I();l(0,"div",0)(1,"input",126,127),C("ngModelChange",function(s){return
v(e),d().dialogResponse.DialogString=s}),c()()}if(2&t){const
e=d();a(1),p("ngModel",e.dialogResponse.DialogString)}}function Sre(t,i){
if(1&t){const
e=I();l(0,"div",0)(1,"label",128),g(2),m(3,"translate"),c(),l(4,"p-dropdown",129,3),C("ngModelChange",function(s){return
v(e),d().buttonText=s}),c()()}if(2&t){const
e=d();a(2),S(f(3,7,"settings.channelscan.scanimport_option")),a(2),q(A(9,ht)),p("options",e.scanStatus.DialogButtons)("ngModel",e.buttonText)("editable",!1)("maxlength",0)}}function
xre(t,i){if(1&t){const
e=I();l(0,"div",0)(1,"p-button",130),C("onClick",function(){return
v(e),d().respondDialog()}),m(2,"translate"),c()()}2&t&&(a(1),x("label",f(2,1,"common.submit")))}const
Sg=function(){return{height:"20px"}},Dre=function(){return{width:"100%",height:"400px"}};class
j{constructor(i,e){this.label=i,this.value=e}}class
Ar{constructor(i,e,n,s,r,o,u){this.label=i,this.Frequency=e,this.Polarity=n,this.SymbolRate=s,this.Modulation=r,this.ModSys=o,this.FEC=u}}let
Mre=(()=>{class
t{constructor(e,n,s,r){this.translate=e,this.channelService=n,this.captureCardService=s,this.setupService=r,this.serviceValues=[new
j("sett
ings.channelscan.tv","tv"),new
j("settings.channelscan.tvradio","audio"),new
j("settings.channelscan.all","all")],this.scanSubType="",this.scanTypes=[],this.freqTableSelect=[new
j("settings.channelscan.freq.usa.broadcast","us"),new
j("settings.channelscan.freq.usa.cablehi","uscablehigh"),new
j("settings.channelscan.freq.usa.cablehrchi","ushrchigh"),new
j("settings.channelscan.freq.usa.cableirchi","usirchigh"),new
j("settings.channelscan.freq.usa.cable","uscable"),new
j("settings.channelscan.freq.usa.cablehrc","ushrc"),new
j("settings.channelscan.freq.usa.cableirc","usirc")],this.countryTable=[new
j("settings.channelscan.country.au","au"),new
j("settings.channelscan.country.cl","cl"),new
j("settings.channelscan.country.cz","cz"),new
j("settings.channelscan.country.dk","dk"),new
j("settings.channelscan.country.fi","fi"),new
j("settings.channelscan.country.fr","fr"),new
j("settings.channelscan.country.de","de"),new
j("settings.channelscan.country.gr","gr"),new
j("settings.channelscan.c
ountry.il","il"),new
j("settings.channelscan.country.it","it"),new
j("settings.channelscan.country.nl","nl"),new
j("settings.channelscan.country.nz","nz"),new
j("settings.channelscan.country.es","es"),new
j("settings.channelscan.country.se","se"),new
j("settings.channelscan.country.gb","gb")],this.networkTable=[new
j("settings.channelscan.country.de","de"),new
j("settings.channelscan.country.nl","nl"),new
j("settings.channelscan.country.gb","gb")],this.satTuningTable=[new
Ar("(Select
Satellite)",0,"h","27500000","qpsk","DVB-S2","auto"),new
Ar("Thor 5/6/7
0.8W",10872e3,"h","25000000","8psk","DVB-S2","3/4"),new
Ar("Eutelsat
7.0E",10721e3,"h","22000000","qpsk","DVB-S","3/4"),new
Ar("Hotbird
13.0E",12015e3,"h","27500000","8psk","DVB-S2","3/4"),new
Ar("Astra-1
19.2E",11229e3,"v","22000000","8psk","DVB-S2","2/3"),new
Ar("Astra-3
23.5E",12031500,"h","27500000","qpsk","DVB-S2","auto"),new
Ar("Astra-2
28.2E",10714e3,"h","22000000","qpsk","DVB-S","5/6")],this.atscModulationTable=[ne
w j("settings.channelscan.modulation.atsc.vsb8","vsb8"),new
j("settings.channelscan.modulation.atsc.qam256","qam256"),new
j("settings.channelscan.modulation.atsc.qam128","qam128"),new
j("settings.channelscan.modulation.atsc.qam64","qam64")],this.bandwidthTable=[new
j("settings.channelscan.auto","a"),new j("6
MHz","6"),new j("7 MHz","7"),new j("8
MHz","8")],this.inversionTable=[new
j("settings.channelscan.auto","a"),new
j("settings.channelscan.on","1"),new
j("settings.channelscan.off","0")],this.modulationTable=[new
j("settings.channelscan.auto","auto"),new
j("QPSK","qpsk"),new j("QAM-16","qam_16"),new
j("QAM-32","qam_32"),new j("QAM-64","qam_64"),new
j("QAM-128","qam_128"),new
j("QAM-256","qam_256")],this.dvbsModulationTable=[new
j("QPSK","qpsk"),new j("8PSK","8psk"),new
j("QAM-16","qam_16"),new j("16PSK","16psk"),new
j("32PSK","32psk")],this.dvbtModSysTable=[new
j("DVB-T","DVB-T"),new
j("DVB-T2","DVB-T2")],this.dvbcModSysTable=[new
j("DVB-C/A","DVB-C/A"),new
j("DVB-C/B","DVB-C/B"),
new j("DVB-C/C","DVB-C/C")],this.dvbsModSysTable=[new
j("DVB-S","DVB-S"),new
j("DVB-S2","DVB-S2")],this.polarityTable=[new
j("settings.channelscan.polarity.horizontal","h"),new
j("settings.channelscan.polarity.vertical","v"),new
j("settings.channelscan.polarity.right","r"),new
j("settings.channelscan.polarity.left","l")],this.fecTable=[new
j("settings.channelscan.auto","auto"),new
j("settings.channelscan.none","none"),new
j("1/2","1/2"),new j("2/3","2/3"),new
j("3/4","3/4"),new j("4/5","4/5"),new
j("5/6","5/6"),new j("6/2","6/2"),new
j("7/8","7/8"),new j("8/9","8/9"),new
j("3/5","3/5"),new
j("9/10","9/10")],this.transmissionModeTable=[new
j("settings.channelscan.auto","a"),new
j("2K","2"),new
j("8K","8")],this.guardIntervalTable=[new
j("settings.channelscan.auto","auto"),new
j("1/4","1/4"),new j("1/8","1/8"),new
j("1/16","1/16"),new
j("1/32","1/32")],this.hierarchyTable=[new
j("settings.channelscan.auto","a"),new
j("settings.channelscan.none","n"),new
j("1","1"),new j("2","2"),new j
("4","4")],this.dvbcSymbolRateTable=[new
j("3450000","3450000"),new
j("5000000","5000000"),new
j("5900000","5900000"),new
j("6875000","6875000"),new
j("6900000","6900000"),new
j("6950000","6950000")],this.dvbsSymbolRateTable=[new
j("3333000","3333000"),new
j("22000000","22000000"),new
j("22500000","22500000"),new
j("23000000","23000000"),new
j("27500000","27500000"),new
j("28000000","28000000"),new
j("28500000","28500000"),new
j("29500000","29500000"),new
j("29700000","29700000"),new
j("29900000","29900000")],this.rollOffTable=[new
j("0.35","0.35"),new j("0.20","0.20"),new
j("0.25","0.25"),new
j("Auto","auto")],this.lockDesc="settings.channelscan.lock_value",this.nolockDesc="settings.channelscan.nolock_value",this.procDesc="processed",this.unprocDesc="unprocessed",this.satTuning=this.satTuningTable[0],this.scanRequest={CardId:0,DesiredServices:"tv",FreeToAirOnly:!0,ChannelNumbersOnly:!1,CompleteChannelsOnly:!0,FullChannelSearch:!0,RemoveDuplicates:!0,AddFullTS:!1,TestDecryptable:!1,
ScanType:"",FreqTable:"",Modulation:"",FirstChan:"",LastChan:"",ScanId:0,IgnoreSignalTimeout:!1,FollowNITSetting:!1,MplexId:0,Frequency:0,Bandwidth:"",Polarity:"",SymbolRate:"",Inversion:"",Constellation:"",ModSys:"",CodeRateLP:"",CodeRateHP:"",FEC:"",TransmissionMode:"",GuardInterval:"",Hierarchy:"",RollOff:""},this.emptyScanStatus={CardId:0,Status:"",SignalLock:!1,Progress:0,SignalNoise:0,SignalStrength:0,StatusLog:"",StatusText:"",StatusTitle:"",DialogMsg:"",DialogInputReq:!1,DialogButtons:[]},this.dialogResponse={CardId:0,DialogString:"",DialogButton:0},this.buttonText="",this.scanStatus=Object.assign({},this.emptyScanStatus),this.channels=[],this.channelCount=1,this.refreshCount=0,this.helpText="",this.scans=[],this.multiplex=[],this.tableTranslate(this.serviceValues),this.tableTranslate(this.freqTableSelect),this.tableTranslate(this.countryTable),this.tableTranslate(this.networkTable),this.tableTranslate(this.atscModulationTable),this.tableTranslate(this.bandwidthTable),this.t
ableTranslate(this.inversionTable),this.tableTranslate(this.modulationTable),this.tableTranslate(this.fecTable),this.tableTranslate(this.transmissionModeTable),this.tableTranslate(this.guardIntervalTable),this.tableTranslate(this.hierarchyTable),this.tableTranslate(this.polarityTable),e.get(this.lockDesc).subscribe(o=>this.lockDesc=o),e.get(this.nolockDesc).subscribe(o=>this.nolockDesc=o)}tableTranslate(e){e.forEach(n=>{n.label.startsWith("settings.")&&this.translate.get(n.label).subscribe(s=>n.label=s)})}ngAfterViewInit(){this.refreshStatus(!1),this.getScanList(),this.getmultiplexList(),this.iconnection.scanComponent=this}ngOnInit(){this.iconnection.deviceFree.subscribe(e=>{this.captureCardService.GetCardSubType(this.card.CardId).subscribe(n=>{this.cardSubType=n.CardSubType,this.buildScanTypeList(),this.onFreqTableChange(!1),"DVBT2"==this.cardSubType.InputType&&(this.scanRequest.ModSys="DVB-T2"),"DVBS2"==this.cardSubType.InputType&&(this.scanRequest.ModSys="DVB-S2"),"DVBC"==this.ca
rdSubType.InputType&&(this.scanRequest.SymbolRate="6900000"),["DVBS","DVBS2"].includes(this.cardSubType.InputType)&&(this.scanRequest.SymbolRate="27500000")})}),this.iconnection.captureDeviceList.CaptureDeviceList.CaptureDevices.length>0&&!this.cardSubType&&this.iconnection.deviceFree.next(!0)}buildScanTypeList(){let
e=!1;switch(this.helpText="",this.scanSubType=this.cardSubType.InputType,this.cardSubType.InputType){case"V4L":case"MPEG":this.scanTypes.push({label:"settings.channelscan.type.full",value:"FULL"}),this.scanTypes.push({label:"settings.channelscan.type.import",value:"IMPORT"});break;case"DVBT":case"DVBT2":this.scanTypes.push({label:"settings.channelscan.type.full",value:"FULL"}),this.scanTypes.push({label:"settings.channelscan.type.fulltuned",value:"FULLTUNED"}),this.scanTypes.push({label:"settings.channelscan.type.import",value:"IMPORT"}),this.helpText="settings.channelscan.scantype_dvbt_desc",e=!0;break;case"DVBC":this.scanTypes.push({label:"settings.channelscan.type.fu
lltuned",value:"FULLTUNED"}),this.scanTypes.push({label:"settings.channelscan.type.full",value:"FULL"}),this.scanTypes.push({label:"settings.channelscan.type.import",value:"IMPORT"}),e=!0;break;case"DVBS":case"DVBS2":this.scanTypes.push({label:"settings.channelscan.type.fulltuned",value:"FULLTUNED"}),this.scanTypes.push({label:"settings.channelscan.type.import",value:"IMPORT"}),e=!0;break;case"ATSC":this.scanTypes.push({label:"settings.channelscan.type.full",value:"FULL"}),this.scanTypes.push({label:"settings.channelscan.type.import",value:"IMPORT"}),e=!0;break;case"HDHOMERUN":this.cardSubType.HDHRdoesDVBC?(this.scanSubType="DVBC",this.scanTypes.push({label:"settings.channelscan.type.fulltuned",value:"FULLTUNED"}),this.scanTypes.push({label:"settings.channelscan.type.full",value:"FULL"}),this.scanTypes.push({label:"settings.channelscan.type.import",value:"IMPORT"})):this.cardSubType.HDHRdoesDVB?(this.scanSubType="DVBT",this.scanTypes.push({label:"settings.channelscan.type.full",valu
e:"FULL"}),this.scanTypes.push({label:"settings.channelscan.type.fulltuned",value:"FULLTUNED"}),this.helpText="settings.channelscan.scantype_dvbt_desc"):(this.scanSubType="ATSC",this.scanTypes.push({label:"settings.channelscan.type.full",value:"FULL"})),this.scanTypes.push({label:"settings.channelscan.type.import",value:"IMPORT"}),this.scanTypes.push({label:"settings.channelscan.type.hdhrimport",value:"HDHRIMPORT"}),e=!0;break;case"VBOX":this.scanTypes.push({label:"settings.channelscan.type.vboximport",value:"VBOXIMPORT"});break;case"FREEBOX":this.scanTypes.push({label:"settings.channelscan.type.m3umpts",value:"MPTSIMPORT"}),this.scanTypes.push({label:"settings.channelscan.type.m3u",value:"M3UIMPORT"});break;case"ASI":this.scanTypes.push({label:"settings.channelscan.type.asi",value:"ASI"});break;case"EXTERNAL":this.scanTypes.push({label:"settings.channelscan.type.mpts",value:"MPTS"}),this.scanTypes.push({label:"settings.channelscan.type.externimport",value:"EXTIMPORT"});break;case"E
RROR_PROBE":this.scanTypes.push({label:"settings.channelscan.type.errorprobe",value:"ERROR"});break;default:this.scanTypes.push({label:"settings.channelscan.type.erroropen",value:"ERROR"})}e&&(this.scanTypes.push({label:"settings.channelscan.type.alltransport",value:"ALLTRANSPORT"}),this.scanTypes.push({label:"settings.channelscan.type.onetransport",value:"ONETRANSPORT"})),this.scanTypes.forEach(n=>this.translate.get(n.label).subscribe(s=>n.label=s)),this.helpText&&this.translate.get(this.helpText).subscribe(n=>this.helpText=n)}onScanTypeChange(){this.scanRequest.Frequency="FULLTUNED"==this.scanRequest.ScanType?this.videoSourceLookup[this.card.SourceId].ScanFrequency:0,setTimeout(()=>this.onFreqTableChange(!1),100)}onFreqTableChange(e){this.channels=[];let
n="";if(this.scanRequest.FreqTable.startsWith("us")){if(e||("us"==this.scanRequest.FreqTable?this.scanRequest.Modulation="vsb8":"vsb8"==this.scanRequest.Modulation&&(this.scanRequest.Modulation="qam256")),"vsb8"==this.scanRequest.
Modulation?n="ATSC Channel
":"qam256"==this.scanRequest.Modulation?n="QAM-256 Channel
":"qam128"==this.scanRequest.Modulation?n="QAM-128 Channel
":"qam64"==this.scanRequest.Modulation&&(n="QAM-64 Channel
"),"us"==this.scanRequest.FreqTable){if("vsb8"==this.scanRequest.Modulation)for(let
s=2;s<=36;s++)this.channels.push(n+s)}else
if(this.scanRequest.FreqTable.match(/us.*high/))for(let
s=78;s<=158;s++)this.channels.push(n+s);else
if(this.scanRequest.FreqTable.match(/^us/)){this.channels.push(n+"T-13"),this.channels.push(n+"T-14");for(let
s=2;s<=158;s++)this.channels.push(n+s)}this.channels.length>0?setTimeout(()=>{this.scanRequest.FirstChan=this.channels[0],this.scanRequest.LastChan=this.channels[this.channels.length-1]},100):(this.scanRequest.FirstChan="",this.scanRequest.LastChan="")}}onSatTuningChange(){Object.assign(this.scanRequest,this.satTuning)}calcCount(){return
this.channelCount=this.channels.findIndex(e=>e==this.scanRequest.LastChan)-this.channels.findIndex(e=>e==this.scanR
equest.FirstChan)+1}getScanList(){this.channelService.GetScanList(this.card.SourceId).subscribe(e=>{this.scans=e.ScanList.Scans,this.scans.forEach(n=>{var
s=new Date(n.ScanDate);n.label=s.toLocaleDateString()+"
"+s.toLocaleTimeString()+"
"+(n.Processed?this.procDesc:this.unprocDesc)})})}getmultiplexList(){this.channelService.GetVideoMultiplexList({SourceID:this.card.SourceId}).subscribe(e=>{this.multiplex=e.VideoMultiplexList.VideoMultiplexes})}startScan(){if(this.iconnection.currentForm&&this.iconnection.currentForm.form.dirty)return
this.iconnection.work.startScan=!0,void
this.iconnection.saveForm();this.scanRequest.CardId=this.card.CardId,this.channelService.StartScan(this.scanRequest).subscribe(e=>{setTimeout(()=>this.refreshStatus(!0),500)})}stopScan(){this.channelService.StopScan(this.card.CardId).subscribe()}respondDialog(){this.dialogResponse.CardId=this.card.CardId,this.dialogResponse.DialogButton=this.scanStatus.DialogButtons.indexOf(this.buttonText),this.channelService.Se
ndScanDialogResponse(this.dialogResponse).subscribe(e=>this.iconnection.loadChannels())}refreshStatus(e){this.channelService.GetScanStatus().subscribe(n=>{this.scanStatus=n.ScanStatus,this.scrollpanel.scrollTop(1e5),"RUNNING"==this.scanStatus.Status?this.refreshCount=5:this.refreshCount--,this.refreshCount>0?setTimeout(()=>this.refreshStatus(!0),500):e&&this.iconnection.loadChannels()})}}return
t.\u0275fac=function(e){return
new(e||t)(D(Oe),D(Or),D(Gt),D(Me))},t.\u0275cmp=z({type:t,selectors:[["app-channelscan"]],viewQuery:function(e,n){if(1&e&&W(Hse,5),2&e){let
s;V(s=B())&&(n.scrollpanel=s.first)}},inputs:{card:"card",cardList:"cardList",iconnection:"iconnection",videoSourceLookup:"videoSourceLookup"},decls:131,vars:137,consts:[[1,"form-group","field"],["for","DesiredServices",1,"label","block"],["optionLabel","label","optionValue","value","name","DesiredServices",3,"options","ngModel","editable","maxlength","ngModelChange"],["DesiredServices","ngModel"],[1,"block"],["inputId","Fre
eToAirOnly","name","FreeToAirOnly",1,"label","mb-2","w-full",3,"ngModel","binary","label","ngModelChange"],["FreeToAirOnly","ngModel"],["inputId","ChannelNumbersOnly","name","ChannelNumbersOnly",1,"label","mb-2","w-full",3,"ngModel","binary","label","ngModelChange"],["ChannelNumbersOnly","ngModel"],["inputId","CompleteChannelsOnly","name","CompleteChannelsOnly",1,"label","mb-2","w-full",3,"ngModel","binary","label","ngModelChange"],["CompleteChannelsOnly","ngModel"],["inputId","FullChannelSearch","name","FullChannelSearch",1,"label","mb-2","w-full",3,"ngModel","binary","label","ngModelChange"],["FullChannelSearch","ngModel"],["inputId","RemoveDuplicates","name","RemoveDuplicates",1,"label","mb-2","w-full",3,"ngModel","binary","label","ngModelChange"],["RemoveDuplicates","ngModel"],["inputId","AddFullTS","name","AddFullTS",1,"label","mb-2","w-full",3,"ngModel","binary","label","ngModelChange"],["AddFullTS","ngModel"],["inputId","TestDecryptable","name","TestDecryptable",1,"label","mb
-2","w-full",3,"ngModel","binary","label","ngModelChange"],["TestDecryptable","ngModel"],["for","ScanType",1,"label","block"],["optionLabel","label","optionValue","value","name","ScanType",3,"options","ngModel","editable","maxlength","ngModelChange","onChange"],["ScanType","ngModel"],["class","mb-4
w-full",3,"legend","toggleable","collapsed",4,"ngIf"],[1,"grid"],[2,"display","flex","align-items","center"],["icon","pi
pi-play","iconPos","left",3,"label","disabled","onClick"],["class","block",4,"ngIf"],[1,"mb-4","w-full",3,"legend","collapsed","toggleable"],[1,"col-6"],[1,"col-10","bg-blue-100","text-gray-900"],[1,"label","block"],[1,"col-10"],[3,"value"],["class","form-group
field",4,"ngIf"],["icon","pi
pi-times-circle","iconPos","left","styleClass","p-button-danger",3,"label","disabled","onClick"],[1,"col-6",2,"white-space","pre-line"],["scroll",""],[1,"mb-4","w-full",3,"legend","toggleable","collapsed"],["for","FreqTable",1,"label","block"],["optionLabel","label","optionValue","val
ue","name","FreqTable",3,"options","ngModel","editable","maxlength","ngModelChange","onChange"],["FreqTable","ngModel"],["for","Country",1,"label","block"],["optionLabel","label","optionValue","value","name","Country",3,"options","ngModel","editable","maxlength","ngModelChange"],["Country","ngModel"],["for","atscModulation",1,"label","block"],["optionLabel","label","optionValue","value","name","atscModulation",3,"options","ngModel","editable","maxlength","ngModelChange","onChange"],["atscModulation","ngModel"],["for","FirstChan",1,"label","block"],["name","FirstChan",3,"options","ngModel","editable","maxlength","ngModelChange"],["FirstChan","ngModel"],[4,"ngIf"],[1,"p-error","block"],["for","LastChan",1,"label","block"],["name","LastChan",3,"options","ngModel","editable","maxlength","ngModelChange"],["LastChan","ngModel"],["for","Frequency",1,"label","block"],["name","Frequency","id","Frequency",3,"ngModel","min","max","ngModelChange"],[3,"translate","translateParams"],["for","Inver
sion",1,"label","block"],["name","Inversion","optionLabel","label","optionValue","value",3,"options","ngModel","editable","maxlength","ngModelChange"],["Inversion","ngModel"],["for","SatTuning",1,"label","block"],["name","SatTuning","optionLabel","label",3,"options","ngModel","editable","maxlength","ngModelChange","onChange"],["SatTuning","ngModel"],["for","Bandwidth",1,"label","block"],["name","Bandwidth","optionLabel","label","optionValue","value",3,"options","ngModel","editable","maxlength","ngModelChange"],["Bandwidth","ngModel"],["for","Polarity",1,"label","block"],["name","Polarity","optionLabel","label","optionValue","value",3,"options","ngModel","editable","maxlength","ngModelChange"],["Polarity","ngModel"],["for","dvbcSymbolRate",1,"label","block"],["name","dvbcSymbolRate","optionLabel","label","optionValue","value",3,"options","ngModel","editable","maxlength","ngModelChange"],["dvbcSymbolRate","ngModel"],["for","dvbsSymbolRate",1,"label","block"],["name","dvbsSymbolRate","
optionLabel","label","optionValue","value",3,"options","ngModel","editable","maxlength","ngModelChange"],["dvbsSymbolRate","ngModel"],["for","Constellation",1,"label","block"],["name","Constellation","optionLabel","label","optionValue","value",3,"options","ngModel","editable","maxlength","ngModelChange"],["Constellation","ngModel"],["for","Modulation",1,"label","block"],["name","Modulation","optionLabel","label","optionValue","value",3,"options","ngModel","editable","maxlength","ngModelChange"],["Modulation","ngModel"],["for","DVBSModulation",1,"label","block"],["name","DVBSModulation","optionLabel","label","optionValue","value",3,"options","ngModel","editable","maxlength","ngModelChange"],["DVBSModulation","ngModel"],["for","DVBTModSys",1,"label","block"],["name","DVBTModSys","optionLabel","label","optionValue","value",3,"options","ngModel","editable","maxlength","ngModelChange"],["DVBTModSys","ngModel"],["for","DVBCModSys",1,"label","block"],["name","DVBCModSys","optionLabel","lab
el","optionValue","value",3,"options","ngModel","editable","maxlength","ngModelChange"],["DVBCModSys","ngModel"],["for","DVBSModSys",1,"label","block"],["name","DVBSModSys","optionLabel","label","optionValue","value",3,"options","ngModel","editable","maxlength","ngModelChange"],["DVBSModSys","ngModel"],["for","CodeRateLP",1,"label","block"],["name","CodeRateLP","optionLabel","label","optionValue","value",3,"options","ngModel","editable","maxlength","ngModelChange"],["CodeRateLP","ngModel"],["for","CodeRateHP",1,"label","block"],["name","CodeRateHP","optionLabel","label","optionValue","value",3,"options","ngModel","editable","maxlength","ngModelChange"],["CodeRateHP","ngModel"],["for","FEC",1,"label","block"],["name","FEC","optionLabel","label","optionValue","value",3,"options","ngModel","editable","maxlength","ngModelChange"],["FEC","ngModel"],["for","TransmissionMode",1,"label","block"],["name","TransmissionMode","optionLabel","label","optionValue","value",3,"options","ngModel","ed
itable","maxlength","ngModelChange"],["TransmissionMode","ngModel"],["for","GuardInterval",1,"label","block"],["name","GuardInterval","optionLabel","label","optionValue","value",3,"options","ngModel","editable","maxlength","ngModelChange"],["GuardInterval","ngModel"],["for","Hierarchy",1,"label","block"],["name","Hierarchy","optionLabel","label","optionValue","value",3,"options","ngModel","editable","maxlength","ngModelChange"],["Hierarchy","ngModel"],["for","RollOff",1,"label","block"],["name","RollOff","optionLabel","label","optionValue","value",3,"options","ngModel","editable","maxlength","ngModelChange"],["RollOff","ngModel"],["for","ScanId",1,"label","block"],["optionLabel","label","optionValue","ScanId","name","ScanId",3,"options","ngModel","editable","maxlength","ngModelChange"],["ScanId","ngModel"],["inputId","IgnoreSignalTimeout","name","IgnoreSignalTimeout",1,"label","mb-2","w-full",3,"ngModel","binary","label","ngModelChange"],["IgnoreSignalTimeout","ngModel"],["inputId",
"FollowNITSetting","name","FollowNITSetting",1,"label","mb-2","w-full",3,"ngModel","binary","label","ngModelChange"],["FollowNITSetting","ngModel"],["for","MplexId",1,"label","block"],["optionLabel","Description","optionValue","MplexId","name","MplexId",3,"options","ngModel","editable","maxlength","ngModelChange"],["MplexId","ngModel"],[1,"col-10",2,"color","black","background-color","pink"],["pInputText","","id","DialogString","name","DialogString",1,"mb-2","form-control","w-full",3,"ngModel","ngModelChange"],["InputName","ngModel"],["for","DialogButtons",1,"label","block"],["name","DialogButtons",3,"options","ngModel","editable","maxlength","ngModelChange"],["styleClass","p-button-info",1,"gap-3",3,"label","onClick"]],template:function(e,n){1&e&&(l(0,"div",0)(1,"label",1),g(2),m(3,"translate"),c(),l(4,"p-dropdown",2,3),C("ngModelChange",function(r){return
n.scanRequest.DesiredServices=r}),c(),l(6,"small",4),g(7),m(8,"translate"),c()(),l(9,"div",0)(10,"p-checkbox",5,6),C("ngModelCh
ange",function(r){return
n.scanRequest.FreeToAirOnly=r}),m(12,"translate"),c(),l(13,"small",4),g(14),m(15,"translate"),c()(),l(16,"div",0)(17,"p-checkbox",7,8),C("ngModelChange",function(r){return
n.scanRequest.ChannelNumbersOnly=r}),m(19,"translate"),c(),l(20,"small",4),g(21),m(22,"translate"),c()(),l(23,"div",0)(24,"p-checkbox",9,10),C("ngModelChange",function(r){return
n.scanRequest.CompleteChannelsOnly=r}),m(26,"translate"),c(),l(27,"small",4),g(28),m(29,"translate"),c()(),l(30,"div",0)(31,"p-checkbox",11,12),C("ngModelChange",function(r){return
n.scanRequest.FullChannelSearch=r}),m(33,"translate"),c(),l(34,"small",4),g(35),m(36,"translate"),c()(),l(37,"div",0)(38,"p-checkbox",13,14),C("ngModelChange",function(r){return
n.scanRequest.RemoveDuplicates=r}),m(40,"translate"),c(),l(41,"small",4),g(42),m(43,"translate"),c()(),l(44,"div",0)(45,"p-checkbox",15,16),C("ngModelChange",function(r){return
n.scanRequest.AddFullTS=r}),m(47,"translate"),c(),l(48,"small",4),g(49),m(50,"translat
e"),c()(),l(51,"div",0)(52,"p-checkbox",17,18),C("ngModelChange",function(r){return
n.scanRequest.TestDecryptable=r}),m(54,"translate"),c(),l(55,"small",4),g(56),m(57,"translate"),c()(),l(58,"div",0)(59,"label",19),g(60),m(61,"translate"),c(),l(62,"p-dropdown",20,21),C("ngModelChange",function(r){return
n.scanRequest.ScanType=r})("onChange",function(){return
n.onScanTypeChange()}),c(),l(64,"small",4),g(65),c()(),_(66,Jse,9,13,"p-fieldset",22),_(67,_re,36,57,"p-fieldset",22),_(68,bre,9,15,"p-fieldset",22),_(69,Cre,17,22,"p-fieldset",22),k(70,"br")(71,"br"),l(72,"div",0)(73,"div",23)(74,"div",24)(75,"p-button",25),C("onClick",function(){return
n.startScan()}),m(76,"translate"),c()()(),_(77,yre,3,3,"small",26),c(),l(78,"p-fieldset",27),m(79,"translate"),l(80,"div",23)(81,"div",28)(82,"div",0)(83,"div",29)(84,"b"),g(85),c()()(),l(86,"div",0)(87,"label",30),g(88),m(89,"translate"),c(),l(90,"div",29),g(91),c()(),l(92,"div",0)(93,"label",30),g(94),m(95,"translate"),c(),l(96,"div",29),g(97)
,c()(),l(98,"div",0)(99,"label",30),g(100),m(101,"translate"),c(),l(102,"div",31),k(103,"p-progressBar",32),c()(),l(104,"div",0)(105,"label",30),g(106),m(107,"translate"),c(),l(108,"div",31),k(109,"p-progressBar",32),c()(),l(110,"div",0)(111,"label",30),g(112),m(113,"translate"),c(),l(114,"div",31),k(115,"p-progressBar",32),c()(),k(116,"br"),_(117,wre,6,1,"div",33),_(118,Tre,3,1,"div",33),_(119,Sre,6,10,"div",33),_(120,xre,3,3,"div",33),k(121,"br"),l(122,"div",0)(123,"div",24)(124,"p-button",34),C("onClick",function(){return
n.stopScan()}),m(125,"translate"),c()(),k(126,"small",4),c()(),l(127,"div",35)(128,"p-scrollPanel",null,36),g(130),c()()()()),2&e&&(a(2),S(f(3,81,"settings.channelscan.services_label")),a(2),q(A(131,ht)),p("options",n.serviceValues)("ngModel",n.scanRequest.DesiredServices)("editable",!1)("maxlength",0),a(3),T("
",f(8,83,"settings.channelscan.services_desc"),"
"),a(3),x("label",f(12,85,"settings.channelscan.ftaonly_label")),p("ngModel",n.scanRequest.FreeToAirOnly
)("binary",!0),a(4),T("
",f(15,87,"settings.channelscan.ftaonly_desc"),"
"),a(3),x("label",f(19,89,"settings.channelscan.channelnumbersonly_label")),p("ngModel",n.scanRequest.ChannelNumbersOnly)("binary",!0),a(4),T("
",f(22,91,"settings.channelscan.channelnumbersonly_desc"),"
"),a(3),x("label",f(26,93,"settings.channelscan.completeonly_label")),p("ngModel",n.scanRequest.CompleteChannelsOnly)("binary",!0),a(4),T("
",f(29,95,"settings.channelscan.completeonly_desc"),"
"),a(3),x("label",f(33,97,"settings.channelscan.fullsearch_label")),p("ngModel",n.scanRequest.FullChannelSearch)("binary",!0),a(4),T("
",f(36,99,"settings.channelscan.fullsearch_desc"),"
"),a(3),x("label",f(40,101,"settings.channelscan.removeduplicates_label")),p("ngModel",n.scanRequest.RemoveDuplicates)("binary",!0),a(4),T("
",f(43,103,"settings.channelscan.removeduplicates_desc"),"
"),a(3),x("label",f(47,105,"settings.channelscan.addfullts_label")),p("ngModel",n.scanRequest.AddFullTS)("binary",!0),a(4),T("
",f(50,107,"
settings.channelscan.addfullts_desc"),"
"),a(3),x("label",f(54,109,"settings.channelscan.testdecryptable_label")),p("ngModel",n.scanRequest.TestDecryptable)("binary",!0),a(4),T("
",f(57,111,"settings.channelscan.testdecryptable_desc"),"
"),a(4),S(f(61,113,"settings.channelscan.scantype_label")),a(2),q(A(132,ht)),p("options",n.scanTypes)("ngModel",n.scanRequest.ScanType)("editable",!1)("maxlength",0),a(3),T("
",n.helpText,"
"),a(1),p("ngIf","FULL"==n.scanRequest.ScanType),a(1),p("ngIf","FULLTUNED"==n.scanRequest.ScanType),a(1),p("ngIf","IMPORT"==n.scanRequest.ScanType),a(1),p("ngIf","ALLTRANSPORT"==n.scanRequest.ScanType||"ONETRANSPORT"==n.scanRequest.ScanType),a(6),x("label",f(76,115,"settings.channelscan.scan_label")),p("disabled",n.setupService.schedulingEnabled||"RUNNING"==n.scanStatus.Status||!n.card.SourceId),a(2),p("ngIf",n.iconnection.currentForm&&n.iconnection.currentForm.form.dirty||!n.card.SourceId),a(1),x("legend",f(79,117,"settings.channelscan.status_title")),p("collapse
d",!0)("toggleable",!1)("collapsed",!1),a(7),T("",n.scanStatus.StatusTitle,"
\xa0"),a(3),S(f(89,119,"settings.channelscan.status_label")),a(3),T("
",n.scanStatus.StatusText," \xa0
"),a(3),S(f(95,121,"settings.channelscan.lock_label")),a(3),T("
",n.scanStatus.SignalLock?n.lockDesc:n.nolockDesc," \xa0
"),a(3),S(f(101,123,"settings.channelscan.progress_label")),a(3),q(A(133,Sg)),p("value",n.scanStatus.Progress),a(3),S(f(107,125,"settings.channelscan.noise_label")),a(3),q(A(134,Sg)),p("value",n.scanStatus.SignalNoise),a(3),S(f(113,127,"settings.channelscan.strength_label")),a(3),q(A(135,Sg)),p("value",n.scanStatus.SignalStrength),a(2),p("ngIf",n.scanStatus.DialogMsg),a(1),p("ngIf",n.scanStatus.DialogInputReq),a(1),p("ngIf",n.scanStatus.DialogButtons.length>0),a(1),p("ngIf",n.scanStatus.DialogButtons.length>0||n.scanStatus.DialogInputReq),a(4),x("label",f(125,129,"settings.channelscan.stop_label")),p("disabled","RUNNING"!=n.scanStatus.Status||n.scanStatus.DialogButtons.length>0),a(4),q(A
(136,Dre)),a(2),T(" ",n.scanStatus.StatusLog,"
"))},directives:[Ot,Te,_e,_n,sn,Q,Ui,pt,mu,ve,tz,Ye,K2],pipes:[ce],styles:[""]}),t})(),kre=(()=>{class
t{constructor(e){this.httpClient=e}GetBackendStatus(){return
this.httpClient.get("/Status/GetBackendStatus")}}return
t.\u0275fac=function(e){return
new(e||t)(K(Bi))},t.\u0275prov=X({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();var
ci=(()=>(function(t){t[t.kState_Error=-1]="kState_Error",t[t.kState_None=0]="kState_None",t[t.kState_WatchingLiveTV=1]="kState_WatchingLiveTV",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"}(ci||(ci={})),ci))();let
cs=(()=>{class t{constructor(e){this.translate=e,this.allSlashes=new Reg
Exp(/\//g),this.deSpacer=new RegExp(/ /g),this.recTypeTrans={"Single
Record":"","Record All":"","Record
One":"","Record Daily":"","Record
Weekly":"","Override Recording":"","Do not
Record":"","Recording Template":"","Not
Recording":""};for(const[n,s]of Object.entries(this.recTypeTrans)){const
r="recrule."+n.replace(this.deSpacer,"");this.translate.get(r).subscribe(o=>{Object.defineProperty(this.recTypeTrans,n,{value:o})})}}formatDate(e,n){if(!e)return"";10==e.length&&(e+="
00:00");let s=new Date(e).toLocaleDateString();return
n?s.replace(this.allSlashes,"/<wbr>"):s}formatTime(e){return e?(new
Date(e).toLocaleTimeString()+" ").replace(/:..
/,""):""}formatDateTime(e,n){return this.formatDate(e,n)+"
"+this.formatTime(e)}}return t.\u0275fac=function(e){return
new(e||t)(K(Oe))},t.\u0275prov=X({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();const
Ire=function(t){return{EndTime:t}};function
Ere(t,i){if(1&t&&(de(0),g(1),m(2,"translate"),pe()),2&t){const
e=d().$implicit,n=d(2);a(1),yo
(" '",e.Recording.Title,"' on
",e.Recording.Channel.CallSign,".
",Dt(2,3,"dashboard.status.endtime_text",U(6,Ire,n.utility.formatTime(e.Recording.EndTime))),"
")}}const
Rre=function(t,i,e,n){return{CardId:t,Id:i,InputName:e,DisplayName:n}};function
Lre(t,i){if(1&t&&(l(0,"div")(1,"ul")(2,"li"),g(3),m(4,"translate"),c()()()),2&t){const
e=i.$implicit;a(3),T("",Dt(4,1,"dashboard.status.card_text",qn(4,Rre,e.CardId,e.Id,e.InputName,e.DisplayName)),"
")}}const Ore=function(t,i,e){return{Id:t,HostName:i,State:e}};function
Are(t,i){if(1&t&&(l(0,"div")(1,"ul")(2,"li"),g(3),m(4,"translate"),_(5,Ere,3,8,"ng-container",4),c(),_(6,Lre,5,9,"div",3),c()()),2&t){const
e=i.$implicit,n=d(2);a(3),T("
",Dt(4,3,"dashboard.status.encoder_text",Qt(6,Ore,e.Id,e.HostName,n.EncoderStatusText(e.State))),"
"),a(2),p("ngIf",7==e.State),a(1),p("ngForOf",e.Inputs)}}function
Pre(t,i){if(1&t&&(l(0,"div"),_(1,Are,7,10,"div",3),c()),2&t){const
e=d();a(1),p("ngForOf",e.encoders)}}function
Fre(t,i){1&t&&(l(0,"div"),g(1
),m(2,"translate"),c()),2&t&&(a(1),S(f(2,1,"dashboard.status.no_encoders")))}let
Nre=(()=>{class
t{constructor(e){this.utility=e}ngOnInit(){}EncoderStatusText(e){switch(e){case
ci.kState_Error:return"Error";case ci.kState_None:return"Idle";case
ci.kState_WatchingLiveTV:return"Watching Live TV";case
ci.kState_WatchingPreRecorded:return"Watching Pre Recorded";case
ci.kState_WatchingVideo:return"Watching Video";case
ci.kState_WatchingDVD:return"Watching DVD";case
ci.kState_WatchingBD:return"Watching BD";case
ci.kState_WatchingRecording:return"Watching Recording";case
ci.kState_RecordingOnly:return"Recording";case
ci.kState_ChangingState:return"Changing
State";default:return"unknown"}}}return t.\u0275fac=function(e){return
new(e||t)(D(cs))},t.\u0275cmp=z({type:t,selectors:[["app-status-encoders"]],inputs:{encoders:"encoders"},decls:7,vars:5,consts:[[1,"statusBox"],[4,"ngIf","ngIfElse"],["noEncoders",""],[4,"ngFor","ngForOf"],[4,"ngIf"]],template:function(e,n){if(1&e&&(l(0,"div",0)(1,"h2
"),g(2),m(3,"translate"),c(),_(4,Pre,2,1,"div",1),c(),_(5,Fre,3,3,"ng-template",null,2,we)),2&e){const
s=F(6);a(2),S(f(3,3,"dashboard.status.encoder_title")),a(2),p("ngIf",0!=(null==n.encoders?null:n.encoders.length))("ngIfElse",s)}},directives:[Q,at],pipes:[ce],styles:["","div.statusBox[_ngcontent-%COMP%]{width:auto;border-top:1px
solid var(--text-color);border-right:1px solid var(--text-color);border-bottom:1px solid
var(--text-color);border-left:10px solid var(--text-color);padding:10px;border-radius:8px
0 0 8px;margin:20px}"]}),t})();function
Vre(t,i){if(1&t&&(l(0,"li",4)(1,"div",5),g(2),c()()),2&t){const
e=i.$implicit,n=d(2);a(1),x("pTooltip",e.Description),a(1),Ih("
",n.utility.formatDate(e.StartTime),"
",n.utility.formatTime(e.StartTime)," - ",e.Recording.EncoderId," -
",e.Channel.CallSign," - ",e.Title," ")}}const
Bre=function(t){return{length:t}};function
Hre(t,i){if(1&t&&(l(0,"div")(1,"p"),g(2),m(3,"translate"),c(),l(4,"ul"),_(5,Vre,3,6,"li",3),c()()),2&t){const
e=d();a(2)
,S(Dt(3,2,"dashboard.status.schedule_text",U(5,Bre,null==e.scheduled?null:e.scheduled.length))),a(3),p("ngForOf",e.scheduled)}}function
qre(t,i){1&t&&(l(0,"p"),g(1),m(2,"translate"),c()),2&t&&(a(1),S(f(2,1,"dashboard.status.schedule_none")))}let
Gre=(()=>{class t{constructor(e){this.utility=e}ngOnInit(){}}return
t.\u0275fac=function(e){return
new(e||t)(D(cs))},t.\u0275cmp=z({type:t,selectors:[["app-status-scheduled"]],inputs:{scheduled:"scheduled"},decls:7,vars:5,consts:[[1,"statusBox"],[4,"ngIf","ngIfElse"],["noSchedule",""],["class","flex",4,"ngFor","ngForOf"],[1,"flex"],["tooltipPosition","bottom",3,"pTooltip"]],template:function(e,n){if(1&e&&(l(0,"div",0)(1,"h2"),g(2),m(3,"translate"),c(),_(4,Hre,6,7,"div",1),c(),_(5,qre,3,3,"ng-template",null,2,we)),2&e){const
s=F(6);a(2),S(f(3,3,"dashboard.status.schedule_title")),a(2),p("ngIf",0!=(null==n.scheduled?null:n.scheduled.length))("ngIfElse",s)}},directives:[Q,at,Kt],pipes:[ce],styles:["","div.statusBox[_ngcontent-%COMP%]{width:auto
;border-top:1px solid var(--text-color);border-right:1px solid
var(--text-color);border-bottom:1px solid var(--text-color);border-left:10px solid
var(--text-color);padding:10px;border-radius:8px 0 0
8px;margin:20px}"]}),t})();function
Ure(t,i){if(1&t&&(l(0,"div")(1,"p"),g(2),m(3,"translate"),c()()),2&t){const
e=i.$implicit,n=d(2);a(2),Eh("",n.utility.formatDate(e.StatusTime),"
",n.utility.formatTime(e.StatusTime)," - ",e.Program.Title," -
",e.LocalizedJobName," -
",f(3,6,"dashboard.status.jobs_status"),":
",e.LocalizedStatus," ")}}function
zre(t,i){if(1&t&&(l(0,"div")(1,"p"),g(2),m(3,"translate"),c(),l(4,"ul"),_(5,Ure,4,8,"div",3),c()()),2&t){const
e=d();a(2),T("",f(3,2,"dashboard.status.jobs_text"),":"),a(3),p("ngForOf",e.jobqueue)}}function
jre(t,i){1&t&&(l(0,"p"),g(1),m(2,"translate"),c()),2&t&&(a(1),S(f(2,1,"dashboard.status.jobs_none")))}let
$re=(()=>{class t{constructor(e){this.utility=e}ngOnInit(){}}return
t.\u0275fac=function(e){return new(e||t)(D(cs))},t.\u0275cmp=z({type:t
,selectors:[["app-status-jobqueue"]],inputs:{jobqueue:"jobqueue"},decls:7,vars:5,consts:[[1,"statusBox"],[4,"ngIf","ngIfElse"],["noJobs",""],[4,"ngFor","ngForOf"]],template:function(e,n){if(1&e&&(l(0,"div",0)(1,"h2"),g(2),m(3,"translate"),c(),_(4,zre,6,4,"div",1),c(),_(5,jre,3,3,"ng-template",null,2,we)),2&e){const
s=F(6);a(2),S(f(3,3,"dashboard.status.jobs_title")),a(2),p("ngIf",0!=(null==n.jobqueue?null:n.jobqueue.length))("ngIfElse",s)}},directives:[Q,at],pipes:[ce],styles:["","div.statusBox[_ngcontent-%COMP%]{width:auto;border-top:1px
solid var(--text-color);border-right:1px solid var(--text-color);border-bottom:1px solid
var(--text-color);border-left:10px solid var(--text-color);padding:10px;border-radius:8px
0 0 8px;margin:20px}"]}),t})();function
Wre(t,i){if(1&t&&(l(0,"div")(1,"p"),g(2),m(3,"translate"),c(),l(4,"ul")(5,"li"),g(6),m(7,"translate"),c(),l(8,"ul")(9,"li"),g(10),m(11,"translate"),c(),l(12,"li"),g(13),m(14,"translate"),c(),l(15,"li"),g(16),m(17,"translate"),c(),l(1
8,"li"),g(19),m(20,"translate"),c(),l(21,"ul")(22,"li"),g(23),m(24,"translate"),c(),l(25,"li"),g(26),m(27,"translate"),c(),l(28,"li"),g(29),m(30,"translate"),c()()()()()),2&t){const
e=i.ngIf;a(2),T("",f(3,16,"dashboard.status.mach.disk_summ"),":"),a(4),T("",f(7,18,"dashboard.status.mach.disk_total"),":"),a(4),We("",f(11,20,"dashboard.status.mach.total_space"),":
",e.Total.toLocaleString(),"
MiB"),a(3),We("",f(14,22,"dashboard.status.mach.space_used"),":
",e.Used.toLocaleString(),"
MiB"),a(3),We("",f(17,24,"dashboard.status.mach.space_free"),":
",e.Free.toLocaleString(),"
MiB"),a(3),We("",f(20,26,"dashboard.status.mach.space_after_expire"),":
",(e.Free+e.Expirable).toLocaleString(),""),a(4),We("",f(24,28,"dashboard.status.mach.space_livetv"),":
",e.LiveTV.toLocaleString(),"
MiB"),a(3),We("",f(27,30,"dashboard.status.mach.space_deleted"),":
",e.Deleted.toLocaleString(),"
MiB"),a(3),We("",f(30,32,"dashboard.status.mach.space_expirable"),":
",e.Expirable.toLocaleString()," MiB")}}functi
on Kre(t,i){1&t&&Y(0)}function
Qre(t,i){if(1&t&&(l(0,"div"),_(1,Kre,1,0,"ng-container",6),c()),2&t){const
e=i.$implicit;d(2);const
n=F(10);a(1),p("ngTemplateOutlet",n)("ngTemplateOutletContext",e)}}const
Jre=function(t,i,e){return{GuideStart:t,GuideEnd:i,GuideStatus:e}},Yre=function(t){return{GuideNext:t}},Zre=function(t,i){return{GuideThru:t,GuideDays:i}};function
Xre(t,i){if(1&t&&(l(0,"div")(1,"div")(2,"p"),g(3),m(4,"translate"),c(),l(5,"ul")(6,"li"),g(7),m(8,"translate"),c(),l(9,"li"),g(10),m(11,"translate"),c(),l(12,"li"),g(13),m(14,"translate"),c()()(),_(15,Wre,31,34,"div",1),l(16,"div")(17,"p"),g(18),m(19,"translate"),c(),_(20,Qre,2,2,"div",5),c(),l(21,"div")(22,"p"),g(23),m(24,"translate"),k(25,"br"),g(26),m(27,"translate"),k(28,"br"),g(29),m(30,"translate"),c()()()),2&t){const
e=d(),n=F(8);a(3),S(f(4,14,"dashboard.status.mach.load")),a(4),We("1
",f(8,16,"dashboard.status.mach.minute"),":
",e.machineinfo.LoadAvg1.toLocaleString(),""),a(3),We("5
",f(11,18,"dashboard.status.mac
h.minutes"),":
",e.machineinfo.LoadAvg2.toLocaleString(),""),a(3),We("15
",f(14,20,"dashboard.status.mach.minutes"),":
",e.machineinfo.LoadAvg3.toLocaleString(),""),a(2),p("ngIf",e.getStorageGroupTotal(e.machineinfo.StorageGroups))("ngIfElse",n),a(3),T("",f(19,22,"dashboard.status.mach.disk_details"),":"),a(2),p("ngForOf",e.getStorageGroupDetails(e.machineinfo.StorageGroups)),a(3),S(Dt(24,24,"dashboard.status.mach.mythfill_last",Qt(33,Jre,e.utility.formatDateTime(e.machineinfo.GuideStart),e.utility.formatDateTime(e.machineinfo.GuideEnd),e.machineinfo.GuideStatus))),a(3),T("
",Dt(27,27,"dashboard.status.mach.mythfill_next",U(37,Yre,e.utility.formatDateTime(e.machineinfo.GuideNext))),""),a(3),T("
",Dt(30,30,"dashboard.status.mach.mythfill_until",Ge(39,Zre,e.utility.formatDateTime(e.machineinfo.GuideThru),e.machineinfo.GuideDays)),"
")}}function
eoe(t,i){1&t&&(l(0,"p"),g(1),m(2,"translate"),c()),2&t&&(a(1),S(f(2,1,"dashboard.status.mach.none")))}function
toe(t,i){1&t&&(l(0,"p"),g(1),m(
2,"translate"),c()),2&t&&(a(1),S(f(2,1,"dashboard.status.mach.disk_none")))}function
noe(t,i){if(1&t&&(l(0,"ul")(1,"li"),g(2),m(3,"translate"),c(),l(4,"ul")(5,"li"),g(6),m(7,"translate"),c(),l(8,"li"),g(9),m(10,"translate"),c(),l(11,"li"),g(12),m(13,"translate"),c(),l(14,"li"),g(15),m(16,"translate"),c()()()),2&t){const
e=i.Id,n=i.Directory,s=i.Total,r=i.Used,o=i.Free;a(2),We("",f(3,10,"dashboard.status.mach.myth_drive"),"
#",e,""),a(4),We("",f(7,12,"dashboard.status.mach.disk_dirs"),":
",n,""),a(3),We("",f(10,14,"dashboard.status.mach.total_space"),":
",s.toLocaleString(),"
MiB"),a(3),We("",f(13,16,"dashboard.status.mach.space_used"),":
",r.toLocaleString(),"
MiB"),a(3),We("",f(16,18,"dashboard.status.mach.space_free"),":
",o.toLocaleString()," MiB")}}let ioe=(()=>{class
t{constructor(e){this.utility=e}ngOnInit(){}getStorageGroupTotal(e){return
e.filter(n=>"total"==n.Id)[0]}getStorageGroupDetails(e){return
e.filter(n=>"total"!=n.Id)}}return t.\u0275fac=function(e){return new(e||t)(
D(cs))},t.\u0275cmp=z({type:t,selectors:[["app-status-machineinfo"]],inputs:{machineinfo:"machineinfo"},decls:11,vars:5,consts:[[1,"statusBox"],[4,"ngIf","ngIfElse"],["noMachineInfo",""],["noDiskInfo",""],["printStorageGroup",""],[4,"ngFor","ngForOf"],[4,"ngTemplateOutlet","ngTemplateOutletContext"]],template:function(e,n){if(1&e&&(l(0,"div",0)(1,"h2"),g(2),m(3,"translate"),c(),_(4,Xre,31,42,"div",1),c(),_(5,eoe,3,3,"ng-template",null,2,we),_(7,toe,3,3,"ng-template",null,3,we),_(9,noe,17,20,"ng-template",null,4,we)),2&e){const
s=F(6);a(2),S(f(3,3,"dashboard.status.mach.title")),a(2),p("ngIf",n.machineinfo)("ngIfElse",s)}},directives:[Q,at,Rt],pipes:[ce],styles:["","div.statusBox[_ngcontent-%COMP%]{width:auto;border-top:1px
solid var(--text-color);border-right:1px solid var(--text-color);border-bottom:1px solid
var(--text-color);border-left:10px solid var(--text-color);padding:10px;border-radius:8px
0 0 8px;margin:20px}"]}),t})();const
soe=function(t,i,e){return{Name:t,Type:i,IP:e}};
function
roe(t,i){if(1&t&&(l(0,"div")(1,"li"),g(2),m(3,"translate"),c()()),2&t){const
e=i.$implicit;a(2),T("",Dt(3,1,"dashboard.status.backends_detail",Qt(4,soe,e.Name,e.Type,e.IP)),"
")}}function
ooe(t,i){if(1&t&&(l(0,"div")(1,"ul"),_(2,roe,4,8,"div",3),c()()),2&t){const
e=d();a(2),p("ngForOf",e.backends)}}function
aoe(t,i){1&t&&(l(0,"p"),g(1),m(2,"translate"),c()),2&t&&(a(1),S(f(2,1,"dashboard.status.backends_none")))}let
loe=(()=>{class t{constructor(){}ngOnInit(){}}return t.\u0275fac=function(e){return
new(e||t)},t.\u0275cmp=z({type:t,selectors:[["app-status-backends"]],inputs:{backends:"backends"},decls:7,vars:5,consts:[[1,"statusBox"],[4,"ngIf","ngIfElse"],["noBackends",""],[4,"ngFor","ngForOf"]],template:function(e,n){if(1&e&&(l(0,"div",0)(1,"h2"),g(2),m(3,"translate"),c(),_(4,ooe,3,1,"div",1),c(),_(5,aoe,3,3,"ng-template",null,2,we)),2&e){const
s=F(6);a(2),S(f(3,3,"dashboard.status.backends_title")),a(2),p("ngIf",0!=(null==n.backends?null:n.backends.length))("ngIfElse",s)}},
directives:[Q,at],pipes:[ce],styles:["","div.statusBox[_ngcontent-%COMP%]{width:auto;border-top:1px
solid var(--text-color);border-right:1px solid var(--text-color);border-bottom:1px solid
var(--text-color);border-left:10px solid var(--text-color);padding:10px;border-radius:8px
0 0 8px;margin:20px}"]}),t})();const
coe=function(t,i,e,n){return{Name:t,IP:i,Port:e,OnLine:n}};function
uoe(t,i){if(1&t&&(l(0,"div")(1,"li"),g(2),m(3,"translate"),c()()),2&t){const
e=i.$implicit;a(2),T("",Dt(3,1,"dashboard.status.frontends_detail",qn(4,coe,e.Name,e.IP,e.Port,e.OnLine)),"
")}}function
doe(t,i){if(1&t&&(l(0,"div")(1,"ul"),_(2,uoe,4,9,"div",3),c()()),2&t){const
e=d();a(2),p("ngForOf",e.frontends)}}function
poe(t,i){1&t&&(l(0,"p"),g(1),m(2,"translate"),c()),2&t&&(a(1),S(f(2,1,"dashboard.status.frontends_none")))}let
hoe=(()=>{class t{constructor(){}ngOnInit(){}}return t.\u0275fac=function(e){return
new(e||t)},t.\u0275cmp=z({type:t,selectors:[["app-status-frontends"]],inputs:{frontends:"frontends
"},decls:7,vars:5,consts:[[1,"statusBox"],[4,"ngIf","ngIfElse"],["noFrontends",""],[4,"ngFor","ngForOf"]],template:function(e,n){if(1&e&&(l(0,"div",0)(1,"h2"),g(2),m(3,"translate"),c(),_(4,doe,3,1,"div",1),c(),_(5,poe,3,3,"ng-template",null,2,we)),2&e){const
s=F(6);a(2),S(f(3,3,"dashboard.status.frontends_title")),a(2),p("ngIf",0!=(null==n.frontends?null:n.frontends.length))("ngIfElse",s)}},directives:[Q,at],pipes:[ce],styles:["","div.statusBox[_ngcontent-%COMP%]{width:auto;border-top:1px
solid var(--text-color);border-right:1px solid var(--text-color);border-bottom:1px solid
var(--text-color);border-left:10px solid var(--text-color);padding:10px;border-radius:8px
0 0 8px;margin:20px}"]}),t})();function
moe(t,i){if(1&t&&(l(0,"div",9)(1,"h2"),g(2),m(3,"translate"),c(),l(4,"div"),g(5),c()()),2&t){const
e=d().ngIf;a(2),S(f(3,2,"dashboard.status.misc_title")),a(3),T("
",e.Miscellaneous," ")}}function
foe(t,i){if(1&t&&(l(0,"div"),k(1,"app-status-encoders",2)(2,"app-status-scheduled",3)(3
,"app-status-jobqueue",4)(4,"app-status-machineinfo",5)(5,"app-status-backends",6)(6,"app-status-frontends",7),_(7,moe,6,4,"div",8),c()),2&t){const
e=i.ngIf;a(1),p("encoders",e.Encoders),a(1),p("scheduled",e.Scheduled),a(1),p("jobqueue",e.JobQueue),a(1),p("machineinfo",e.MachineInfo),a(1),p("backends",e.Backends),a(1),p("frontends",e.Frontends),a(1),p("ngIf",e.Miscellaneous)}}function
goe(t,i){1&t&&(l(0,"div"),g(1,"Loading..."),c())}let
_oe=(()=>{class
t{constructor(e){this.statusService=e}ngOnInit(){this.m_status$=this.statusService.GetBackendStatus()}}return
t.\u0275fac=function(e){return
new(e||t)(D(kre))},t.\u0275cmp=z({type:t,selectors:[["app-status"]],decls:7,vars:7,consts:[[4,"ngIf","ngIfElse"],["loading",""],[3,"encoders"],[3,"scheduled"],[3,"jobqueue"],[3,"machineinfo"],[3,"backends"],[3,"frontends"],["class","statusBox",4,"ngIf"],[1,"statusBox"]],template:function(e,n){if(1&e&&(l(0,"h2"),g(1),m(2,"translate"),c(),_(3,foe,8,7,"div",0),m(4,"async"),_(5,goe,2,0,"ng-template",
null,1,we)),2&e){const s=F(6);let
r;a(1),T("",f(2,3,"dashboard.backendStatus"),"
"),a(2),p("ngIf",null==(r=f(4,5,n.m_status$))?null:r.BackendStatus)("ngIfElse",s)}},directives:[Q,Nre,Gre,$re,ioe,loe,hoe],pipes:[ce,xy],styles:["div.statusBox[_ngcontent-%COMP%]{width:auto;border-top:1px
solid var(--text-color);border-right:1px solid var(--text-color);border-bottom:1px solid
var(--text-color);border-left:10px solid var(--text-color);padding:10px;border-radius:8px
0 0 8px;margin:20px}"]}),t})();const
boe=["recsform"],voe=["menu"];function Coe(t,i){}function
yoe(t,i){1&t&&g(0),2&t&&T(" ",i.$implicit,"
")}function woe(t,i){if(1&t){const
e=I();l(0,"p-dropdown",67),C("onChange",function(s){return
v(e).filterCallback(s.value)}),m(1,"translate"),_(2,yoe,1,1,"ng-template",68),c()}if(2&t){const
e=i.$implicit,n=d(2);x("placeholder",f(1,4,"settings.chanedit.all")),p("ngModel",e)("options",n.recGroups)("showClear",!0)}}function
Toe(t,i){if(1&t){const
e=I();l(0,"tr")(1,"th",43)(2,"button",44),C("cl
ick",function(s){return
v(e),d().showContextMenu(null,s)}),m(3,"translate"),c(),g(4),m(5,"translate"),m(6,"translate"),k(7,"p-columnFilter",45),g(8),m(9,"translate"),l(10,"p-columnFilter",46),_(11,woe,3,6,"ng-template",47),c(),l(12,"button",48),C("click",function(){v(e);const
s=d();return
s.refreshing=!0,s.refresh()}),m(13,"translate"),c(),g(14),c()(),l(15,"tr")(16,"th",49),g(17),m(18,"translate"),k(19,"p-sortIcon",50),c(),k(20,"th",51),l(21,"th",52),g(22),m(23,"translate"),c(),l(24,"th",53),g(25),m(26,"translate"),c(),l(27,"th",54),g(28),m(29,"translate"),k(30,"p-sortIcon",55),c(),l(31,"th",56),g(32),m(33,"translate"),k(34,"p-sortIcon",57),c(),l(35,"th",58),g(36),m(37,"translate"),c(),l(38,"th",59),g(39),m(40,"translate"),k(41,"p-sortIcon",60),c(),l(42,"th",61),g(43),m(44,"translate"),c(),l(45,"th",62),g(46),m(47,"translate"),c(),l(48,"th",63)(49,"a",64),k(50,"i",65),c(),k(51,"button",66),c()()}if(2&t){const
e=d();a(2),x("pTooltip",f(3,18,"common.selected_menu")),a(2),We("
\xa0\xa0
\xa0\xa0\xa0 ",f(5,20,"dashboard.recordings.filter"),": \xa0\xa0
",f(6,22,"dashboard.recordings.title"),": \xa0
"),a(3),p("matchModeOptions",e.matchModeTitle),a(1),T("
",f(9,24,"dashboard.recordings.recgrp"),": \xa0
"),a(2),p("showMenu",!1),a(2),x("pTooltip",f(13,26,"common.refresh")),a(2),T("
\xa0\xa0\xa0",e.programs.length," Rows "),a(3),T("
",f(18,28,"dashboard.recordings.title"),"
"),a(5),S(f(23,30,"dashboard.recordings.subtitle")),a(3),S(f(26,32,"dashboard.recordings.seas_ep")),a(3),T("
",f(29,34,"dashboard.recordings.orig_airdate")," "),a(4),T("
",f(33,36,"dashboard.recordings.airdate"),"
"),a(4),S(f(37,38,"dashboard.recordings.channel")),a(3),T("
",f(40,40,"dashboard.recordings.recgrp")," "),a(4),T("
",f(44,42,"dashboard.recordings.duration"),"
"),a(3),S(f(47,44,"dashboard.recordings.file_size")),a(5),p("disabled",!0)}}function
Soe(t,i){1&t&&(k(0,"i",80),m(1,"translate")),2&t&&x("pTooltip",f(1,1,"dashboard.recordings.damaged"))}function
xoe(t,i){1&t&&(k(0,"i",81),m(1,"transla
te")),2&t&&x("pTooltip",f(1,1,"dashboard.recordings.watched"))}function
Doe(t,i){if(1&t&&(l(0,"div"),g(1),c()),2&t){const
e=d().$implicit;a(1),We(" ",e.Season,"x",e.Episode,"
")}}const Moe=function(t){return{"line-through":t}};function
koe(t,i){if(1&t){const
e=I();l(0,"tr",69),C("contextmenu",function(s){const
o=v(e).$implicit;return
d().onContextMenu(o,s)}),l(1,"td",70),_(2,Soe,2,3,"i",71),g(3),c(),l(4,"td",51),_(5,xoe,2,3,"i",72),c(),l(6,"td",73),g(7),c(),l(8,"td",53),_(9,Doe,2,2,"div",74),c(),l(10,"td",62),k(11,"div",75),c(),l(12,"td",62),k(13,"div",75),c(),l(14,"td",58),g(15),c(),l(16,"td",76),g(17),c(),l(18,"td",61),g(19),m(20,"number"),c(),l(21,"td",62),g(22),m(23,"number"),c(),l(24,"td",63)(25,"a",77),m(26,"translate"),k(27,"i",78),c(),l(28,"button",79),C("click",function(s){const
o=v(e).$implicit;return d().showContextMenu(o,s)}),c()()()}if(2&t){const
e=i.$implicit,n=i.rowIndex,s=d();p("ngClass",U(27,Moe,"Deleted"==e.Recording.RecGroup))("pSelectableRow",e)("pSelectableRowIn
dex",n),a(2),p("ngIf",e.VideoPropNames.indexOf("DAMAGED")>-1),a(1),T("
",e.Title,"
"),a(2),p("ngIf",e.ProgramFlagNames.indexOf("WATCHED")>-1),a(1),x("pTooltip",e.Description),a(1),T("
",e.SubTitle,""),a(2),p("ngIf",e.Season>0||e.Episode>0),a(2),p("innerHTML",s.utility.formatDate(e.Airdate,!0),Bt),a(2),p("innerHTML",s.utility.formatDate(e.StartTime,!0),Bt),a(2),We("
",e.Channel.ChanNum,"
",e.Channel.CallSign,""),a(2),S(e.Recording.RecGroup),a(2),T("",Dt(20,19,s.getDuration(e),"1.0-0"),"
min"),a(3),T("
",Dt(23,22,e.Recording.FileSize/1e6,"1.0-0"),"
MB"),a(3),x("href",s.URLencode("/Content/GetRecording?RecordedId="+e.Recording.RecordedId),ln),x("pTooltip",f(26,25,"dashboard.recordings.download")),a(2),p("id","download_"+n)}}function
Ioe(t,i){1&t&&(k(0,"p-message",87),m(1,"translate")),2&t&&x("text",f(1,1,"common.savesuccess"))}function
Eoe(t,i){1&t&&(k(0,"p-message",88),m(1,"translate")),2&t&&x("text",f(1,1,"common.networkfail"))}function
Roe(t,i){if(1&t){const e=I();l(0,"div",82),_(1,
Ioe,2,3,"p-message",83),_(2,Eoe,2,3,"p-message",84),c(),l(3,"p-button",85),C("onClick",function(){return
v(e),d().closeDialog()}),m(4,"translate"),c(),l(5,"p-button",86),C("onClick",function(){return
v(e),d().saveProgram()}),m(6,"translate"),c()}if(2&t){const
e=d(),n=F(1);a(1),p("ngIf",e.successCount>0&&0==e.errorCount&&!n.dirty),a(1),p("ngIf",e.errorCount>0),a(1),x("label",f(4,5,"common.close")),a(2),x("label",f(6,7,"common.save")),p("disabled",!n.dirty||""==e.program.Title.trim())}}function
Loe(t,i){if(1&t){const
e=I();l(0,"p-button",89),C("onClick",function(){return
v(e),d().displayRecGrpDlg=!1}),m(1,"translate"),c(),l(2,"p-button",90),C("onClick",function(){return
v(e),d().updaterecgrp()}),m(3,"translate"),c()}if(2&t){const
e=d();x("label",f(1,3,"common.cancel")),a(2),x("label",f(3,5,"common.ok")),p("disabled",!e.newRecGroup.trim())}}function
Ooe(t,i){if(1&t){const
e=I();l(0,"p-button",91),C("onClick",function(){return
v(e),d().closeDialog()}),m(1,"translate"),c(),l(2,"p-button"
,92),C("onClick",function(){return
v(e),d().displayUnsaved=!1}),m(3,"translate"),c()}2&t&&(x("label",f(1,2,"common.nosave")),a(2),x("label",f(3,4,"common.continue")))}const
Aoe=function(){return{height:"75vw",width:"50vw"}},Poe=function(){return{minWidth:"400px"}};let
Foe=(()=>{class
t{constructor(e,n,s,r,o){this.dvrService=e,this.messageService=n,this.translate=s,this.setupService=r,this.utility=o,this.programs=[],this.selection=[],this.actionList=[],this.recGroups=[],this.newRecGroup="",this.program={Title:"",Recording:{}},this.displayMetadataDlg=!1,this.displayRecGrpDlg=!1,this.displayRunJobs=!1,this.displayUnsaved=!1,this.successCount=0,this.errorCount=0,this.refreshing=!1,this.priorRequest={},this.msg={Success:"common.success",Failed:"common.failed",NetFail:"common.networkfail",CanUndo:"dashboard.recordings.canundel",AlreadyDel:"dashboard.recordings.alreadydel",NonReRec:"dashboard.recordings.nonrerec",ActionsSelected:"dashboard.recordings.actionsselected",JobsSelected:"dashboar
d.recordings.jobsselected",UndefSelection:"dashboard.undefselection"},this.jobsoffset=3,this.jobs=[{id:"Transcode",label:"dashboard.recordings.job_Transcode",command:h=>this.runjob(h)},{id:"Commflag",label:"dashboard.recordings.job_Commflag",command:h=>this.runjob(h)},{id:"Metadata",label:"dashboard.recordings.job_Metadata",command:h=>this.runjob(h)},{id:"UserJob1",visible:!1,command:h=>this.runjob(h)},{id:"UserJob2",visible:!1,command:h=>this.runjob(h)},{id:"UserJob3",visible:!1,command:h=>this.runjob(h)},{id:"UserJob4",visible:!1,command:h=>this.runjob(h)}],this.mnu_delete={label:"dashboard.recordings.mnu_delete",command:h=>this.delete(h,!1)},this.mnu_delete_rerec={label:"dashboard.recordings.mnu_delete_rerec",command:h=>this.delete(h,!0)},this.mnu_undelete={label:"dashboard.recordings.mnu_undelete",command:h=>this.undelete(h)},this.mnu_rerec={label:"dashboard.recordings.mnu_rerec",command:h=>this.rerec(h)},this.mnu_markwatched={label:"dashboard.recordings.mnu_markwatched",command
:h=>this.markwatched(h,!0)},this.mnu_markunwatched={label:"dashboard.recordings.mnu_markunwatched",command:h=>this.markwatched(h,!1)},this.mnu_markdamaged={label:"dashboard.recordings.mnu_markdamaged",command:h=>this.markdamaged(h,!0)},this.mnu_markundamaged={label:"dashboard.recordings.mnu_markundamaged",command:h=>this.markdamaged(h,!1)},this.mnu_updaterecgrp={label:"dashboard.recordings.mnu_updaterecgrp",command:h=>this.promptrecgrp(h)},this.mnu_updatemeta={label:"dashboard.recordings.mnu_updatemeta",command:h=>this.updatemeta(h)},this.mnu_updaterecrule={label:"dashboard.recordings.mnu_updaterecrule",command:h=>this.updaterecrule(h)},this.mnu_stoprec={label:"dashboard.recordings.mnu_stoprec",command:h=>this.stoprec(h)},this.mnu_runjobs={label:"dashboard.recordings.mnu_runjobs",items:this.jobs},this.menuToShow=[],this.matchModeRecGrp=[{value:_t.EQUALS,label:"common.filter.equals"}],this.matchModeTitle=[{value:_t.STARTS_WITH,label:"common.filter.startswith"},{value:_t.CONTAINS,labe
l:"common.filter.contains"},{value:_t.EQUALS,label:"common.filter.equals"}],this.saveObserver={next:h=>{h.bool?(this.successCount++,this.currentForm.form.markAsPristine(),this.editingProgram&&Object.assign(this.editingProgram,this.program)):(console.log("saveObserver
error",h),this.errorCount++)},error:h=>{console.log("saveObserver
error",h),this.errorCount++}},this.JobQCmds=this.setupService.getJobQCommands(),this.dvrService.GetRecGroupList().subscribe(h=>{this.recGroups=h.RecGroupList,this.recGroups.push("Deleted")});for(const[h,b]of
Object.entries(this.msg))this.translate.get(b).subscribe(y=>{Object.defineProperty(this.msg,h,{value:y})});[this.mnu_delete,this.mnu_delete_rerec,this.mnu_undelete,this.mnu_rerec,this.mnu_markwatched,this.mnu_markunwatched,this.mnu_markdamaged,this.mnu_markundamaged,this.mnu_updatemeta,this.mnu_updaterecrule,this.mnu_stoprec,this.mnu_updaterecgrp,this.mnu_runjobs,this.jobs[0],this.jobs[1],this.jobs[2],...this.matchModeRecGrp,...this.matchModeTitle].fo
rEach(h=>{h.label&&this.translate.get(h.label).subscribe(b=>h.label=b)})}ngOnInit(){}loadLazy(e){this.lazyLoadEvent=e;let
n={StartIndex:0,Count:1};e.first&&(n.StartIndex=e.first),e.rows&&(n.Count=e.rows),e.sortField||(e.sortField="Title"),n.Sort=e.sortField,n.Sort="Airdate"==e.sortField?"originalairdate":"Recording.RecGroup"==e.sortField?"recgroup":e.sortField;let
s=" asc";if(e.sortOrder&&e.sortOrder<0&&(s="
desc"),n.Sort=n.Sort+s,n.Sort+=`,title${s},originalairdate${s},season${s},episode${s}`,e.filters){if(e.filters.Title.value)switch(e.filters.Title.matchMode){case
_t.STARTS_WITH:n.TitleRegEx="^"+e.filters.Title.value;break;case
_t.CONTAINS:n.TitleRegEx=e.filters.Title.value;break;case
_t.EQUALS:n.TitleRegEx="^"+e.filters.Title.value+"$"}e.filters["Recording.RecGroup"].value&&e.filters["Recording.RecGroup"].matchMode==_t.EQUALS&&(n.RecGroup=e.filters["Recording.RecGroup"].value)}(n.TitleRegEx!=this.priorRequest.TitleRegEx||n.RecGroup!=this.priorRequest.RecGroup)&&(this.programs=[]
,this.selection=[],this.menu.hide(),this.priorRequest=n),this.dvrService.GetRecordedList(n).subscribe(r=>{let
o=r.ProgramList;this.programs.length=r.ProgramList.TotalAvailable,this.programs.splice(o.StartIndex,o.Count,...o.Programs),this.programs=[...this.programs],this.refreshing=!1})}refresh(){this.selection=[],this.menu.hide(),this.loadLazy(this.lazyLoadEvent)}URLencode(e){return
encodeURI(e)}getDuration(e){const n=new Date(e.Recording.StartTs).getTime();return(new
Date(e.Recording.EndTs).getTime()-n)/6e4}onContextMenu(e,n){return!(!(0==this.selection.length||n.target&&n.target.id&&n.target.id.startsWith("download_"))&&(this.selection.some(s=>!s)?(this.sendMessage("error",null,"",this.msg.UndefSelection),1):this.selection.some(s=>s.Recording.RecordedId==e.Recording.RecordedId)&&(this.showContextMenu(null,n),1)))}onSelectChange(){this.menu.hide()}showContextMenu(e,n){if(this.actionList.length=0,e&&e.Title?this.actionList.push(e):this.actionList.push(...this.selection),0==this.acti
onList.length)return;if(this.actionList.some(r=>!r))return void
this.sendMessage("error",null,"",this.msg.UndefSelection);this.menuToShow.length=0;let
s=[];if(this.actionList.some(r=>"Deleted"==r.Recording.RecGroup)&&s.push(this.mnu_undelete),this.actionList.some(r=>"Deleted"!=r.Recording.RecGroup)&&(s.push(this.mnu_delete),s.push(this.mnu_delete_rerec)),s.push(this.mnu_rerec),this.actionList.some(r=>r.ProgramFlagNames.indexOf("WATCHED")>-1)&&s.push(this.mnu_markunwatched),this.actionList.some(r=>r.ProgramFlagNames.indexOf("WATCHED")<0)&&s.push(this.mnu_markwatched),this.actionList.some(r=>r.VideoPropNames.indexOf("DAMAGED")>-1)&&s.push(this.mnu_markundamaged),this.actionList.some(r=>r.VideoPropNames.indexOf("DAMAGED")<0)&&s.push(this.mnu_markdamaged),s.push(this.mnu_updaterecgrp),1==this.actionList.length?(s.push(this.mnu_updatemeta),this.menuToShow.push({label:this.actionList[0].Title+"
-
"+this.actionList[0].SubTitle,items:s})):this.menuToShow.push({label:this.msg.ActionsSelected
.replace(/{{ *num
*}}/,this.actionList.length.toString()),items:s}),this.actionList.every(r=>"Deleted"!=r.Recording.RecGroup)){this.menuToShow.push(1==this.actionList.length?this.mnu_runjobs:{label:this.msg.JobsSelected.replace(/{{
*num *}}/,this.actionList.length.toString()),items:this.jobs});for(let
r=0;r<4;r++)this.JobQCmds.UserJob[r]?(this.jobs[r+this.jobsoffset].visible=!0,this.jobs[r+this.jobsoffset].label=this.JobQCmds.UserJobDesc[r]):this.jobs[r+this.jobsoffset].visible=!1}this.menu.toggle(n)}delete(e,n){let
s=this.actionList.shift();s&&this.dvrService.GetRecorded({RecordedId:s.Recording.RecordedId}).subscribe({next:r=>{"Deleted"==r.Program.Recording.RecGroup?(this.sendMessage("error",s,e.item.label,this.msg.AlreadyDel),s.Recording.RecGroup="Deleted"):this.dvrService.DeleteRecording({RecordedId:s.Recording.RecordedId,AllowRerecord:n}).subscribe({next:o=>{o.bool?(this.sendMessage("success",s,e.item.label,this.msg.Success,this.msg.CanUndo),s.Recording.RecGroup="Deleted"):this.
sendMessage("error",s,e.item.label,this.msg.Failed)},error:o=>this.networkError(s,o)}),this.delete(e,n)},error:r=>{this.networkError(s,r),this.delete(e,n)}})}undelete(e){let
n=this.actionList.shift();n&&this.dvrService.UnDeleteRecording({RecordedId:n.Recording.RecordedId}).subscribe({next:s=>{s.bool?(n.Recording.RecGroup="Default",this.sendMessage("success",n,e.item.label,this.msg.Success)):this.sendMessage("error",n,e.item.label,this.msg.Failed),this.undelete(e)},error:s=>{this.networkError(n,s),this.undelete(e)}})}networkError(e,n){console.log("network
error",n),this.sendMessage("error",e,"",this.msg.NetFail)}sendMessage(e,n,s,r,o){o=o?"\n"+o:"";let
u=s;null!=n&&(u=s+" "+n.Title+"
"+n.SubTitle+o),this.messageService.add({severity:e,summary:r,detail:u,life:5e3,sticky:"error"==e})}rerec(e){let
n=this.actionList.shift();n&&this.dvrService.AllowReRecord(n.Recording.RecordedId).subscribe({next:s=>{s.bool?this.sendMessage("success",n,e.item.label,this.msg.Success):this.sendMessage("erro
r",n,e.item.label,this.msg.Failed),this.rerec(e)},error:s=>{this.networkError(n,s),this.rerec(e)}})}markwatched(e,n){let
s=this.actionList.shift();s&&this.dvrService.UpdateRecordedMetadata({RecordedId:s.Recording.RecordedId,Watched:n}).subscribe({next:r=>{r.bool?(this.sendMessage("success",s,e.item.label,this.msg.Success),s.ProgramFlagNames=n?s.ProgramFlagNames+"|WATCHED|":s.ProgramFlagNames.replace(/WATCHED/g,"")):this.sendMessage("error",s,e.item.label,this.msg.Failed),this.markwatched(e,n)},error:r=>{this.networkError(s,r),this.markwatched(e,n)}})}markdamaged(e,n){let
s=this.actionList.shift();s&&this.dvrService.UpdateRecordedMetadata({RecordedId:s.Recording.RecordedId,Damaged:n}).subscribe({next:r=>{r.bool?n?(this.sendMessage("success",s,e.item.label,this.msg.Success,this.msg.NonReRec),s.VideoPropNames=s.VideoPropNames+"|DAMAGED|"):(this.sendMessage("success",s,e.item.label,this.msg.Success),s.VideoPropNames=s.VideoPropNames.replace(/DAMAGED/g,"")):this.sendMessage("error",s,e.i
tem.label,this.msg.Failed),this.markdamaged(e,n)},error:r=>{this.networkError(s,r),this.markdamaged(e,n)}})}promptrecgrp(e){this.newRecGroup=1==this.actionList.length?this.actionList[0].Recording.RecGroup:"",this.displayRecGrpDlg=!0}updaterecgrp(){this.displayRecGrpDlg=!1,this.newRecGroup=this.newRecGroup.trim();let
e=this.actionList.shift();e&&this.newRecGroup&&this.dvrService.UpdateRecordedMetadata({RecordedId:e.Recording.RecordedId,RecGroup:this.newRecGroup}).subscribe({next:n=>{n.bool?(this.sendMessage("success",e,this.mnu_updaterecgrp.label,this.msg.Success),e.Recording.RecGroup=this.newRecGroup):this.sendMessage("error",e,this.mnu_updaterecgrp.label,this.msg.Failed),this.updaterecgrp()},error:n=>{this.networkError(e,n),this.updaterecgrp()}})}updaterecrule(e){}stoprec(e){}runjob(e){let
n=this.actionList.shift();n&&this.dvrService.ManageJobQueue({Action:"Add",JobName:e.item.id,RecordedId:n.Recording.RecordedId}).subscribe({next:s=>{s.int>0?this.sendMessage("success",n,e.item.lab
el,this.msg.Success):this.sendMessage("error",n,e.item.label,this.msg.Failed),this.runjob(e)},error:s=>{this.networkError(n,s),this.runjob(e)}})}updatemeta(e){this.program=this.actionList.shift(),this.program&&(this.editingProgram=this.program,this.program=Object.assign({},this.program),this.program.Airdate=this.program.Airdate?new
Date(this.program.Airdate+"
00:00"):null,this.displayMetadataDlg=!0,this.currentForm.form.markAsPristine())}saveProgram(){this.successCount=0,this.errorCount=0,this.displayUnsaved=!1,this.dvrService.UpdateRecordedMetadata({RecordedId:this.program.Recording.RecordedId,Description:this.program.Description,Episode:this.program.Episode,Inetref:this.program.Inetref,OriginalAirDate:this.program.Airdate,Season:this.program.Season,SubTitle:this.program.SubTitle,Title:this.program.Title,RecGroup:this.program.Recording.RecGroup}).subscribe(this.saveObserver)}closeDialog(){this.currentForm.dirty?this.displayUnsaved?(this.displayUnsaved=!1,this.displayMetadataDlg=!1,
this.editingProgram=void
0,this.currentForm.form.markAsPristine()):this.displayUnsaved=!0:(this.displayMetadataDlg=!1,this.displayUnsaved=!1,this.editingProgram=void
0)}}return t.\u0275fac=function(e){return
new(e||t)(D(jo),D(Gi),D(Oe),D(Me),D(cs))},t.\u0275cmp=z({type:t,selectors:[["app-recordings"]],viewQuery:function(e,n){if(1&e&&(W(boe,5),W(voe,5)),2&e){let
s;V(s=B())&&(n.currentForm=s.first),V(s=B())&&(n.menu=s.first)}},features:[Pe([Gi])],decls:85,vars:96,consts:[["name","recsform"],["recsform","ngForm"],[2,"white-space","pre-line"],["position","center"],[1,"block","card","w-full",2,"height","90vh"],[1,"font-bold",3,"popup","model"],["menu",""],["scrollHeight","flex","styleClass","p-datatable-striped","selectionMode","multiple","dataKey","Recording.RecordedId",3,"value","scrollable","virtualScroll","rows","lazy","rowHover","selection","metaKeySelection","onLazyLoad","selectionChange","onRowSelect","onRowUnelect"],["pTemplate","caption"],["pTemplate","header"],["pTemplate","bod
y"],[3,"header","visible","modal","closable","closeOnEscape","visibleChange"],[1,"form-group","field"],["for","Title",1,"label","block"],["pInputText","","id","Title","name","Title",1,"mb-2","form-control","w-full",3,"ngModel","ngModelChange"],["Title","ngModel"],["for","SubTitle",1,"label","block"],["pInputText","","id","SubTitle","name","SubTitle",1,"mb-2","form-control","w-full",3,"ngModel","ngModelChange"],["SubTitle","ngModel"],["for","Inetref",1,"label","block"],["pInputText","","id","Inetref","name","Inetref",1,"mb-2","form-control","w-full",3,"ngModel","ngModelChange"],["Inetref","ngModel"],["for","Description",1,"label","block"],["pInputTextarea","","id","Description","name","Description",1,"mb-2","form-control","w-full",3,"rows","cols","ngModel","ngModelChange"],["Description","ngModel"],["for","Season",1,"label","block"],["name","Season","id","Season",3,"ngModel","showButtons","min","max","step","ngModelChange"],["for","Episode",1,"label","block"],["name","Episode","id","
Episode",3,"ngModel","showButtons","min","max","step","ngModelChange"],["for","Airdate",1,"label","block"],["dateFormat","yy-mm-dd","name","Airdate","id","Airdate",3,"ngModel","ngModelChange"],["for","RecGroup",1,"label","block"],["name","RecGroup",3,"options","ngModel","editable","maxlength","ngModelChange"],["RecGroup","ngModel"],["for","FileName",1,"label","block"],["pTemplate","footer"],[3,"header","visible","modal","draggable","resizable","visibleChange"],["for","newrecgroup",1,"label","block"],["pInputText","","id","newrecgroup","name","newrecgroup",1,"mb-2","form-control","w-full",3,"ngModel","ngModelChange"],["newrecgroup","ngModel"],["name","recgrplist",3,"options","ngModel","ngModelChange"],["recgrplist","ngModel"],[3,"header","visible","modal","visibleChange"],[1,"pl-1"],["pButton","","pRipple","","icon","pi
pi-bars","tooltipPosition","top",1,"p-button-text",".p-button-success",3,"pTooltip","click"],["type","text","field","Title",3,"matchModeOptions"],["field","Recording.
RecGroup","matchMode","equals",3,"showMenu"],["pTemplate","filter"],["pButton","","pRipple","","icon","pi
pi-refresh","tooltipPosition","top",1,"p-button-text",".p-button-success",3,"pTooltip","click"],["pSortableColumn","Title",1,"p-1",2,"flex-basis","12%"],["field","Title"],[1,"p-1",2,"flex-basis","2%"],[1,"p-1",2,"flex-basis","18%"],[1,"p-1",2,"flex-basis","4%"],["pSortableColumn","Airdate",1,"justify-content-end","p-1",2,"flex-basis","8%"],["field","Airdate"],["pSortableColumn","StartTime",1,"justify-content-end","p-1",2,"flex-basis","8%"],["field","StartTime"],[1,"p-1",2,"flex-basis","10%"],["pSortableColumn","Recording.RecGroup",1,"p-1",2,"flex-basis","8%"],["field","Recording.RecGroup"],[1,"justify-content-end","p-1",2,"flex-basis","6%"],[1,"justify-content-end","p-1",2,"flex-basis","8%"],[1,"p-1",2,"background","var(--surface-card)"],["target","_blank"],[1,"pi","pi-download"],["pButton","","pRipple","","icon","pi
pi-ellipsis-v",1,"p-button-text","p-button-primary",3,"disable
d"],["name","filter",3,"ngModel","options","placeholder","showClear","onChange"],["pTemplate","item"],[3,"ngClass","pSelectableRow","pSelectableRowIndex","contextmenu"],[1,"p-1","overflow-hidden",2,"flex-basis","12%"],["class","pi
pi-exclamation-triangle
p-1","tooltipPosition","top",3,"pTooltip",4,"ngIf"],["class","pi
pi-eye","tooltipPosition","top",3,"pTooltip",4,"ngIf"],["tooltipPosition","top",1,"p-1","overflow-hidden",2,"flex-basis","18%",3,"pTooltip"],[4,"ngIf"],[3,"innerHTML"],[1,"p-1",2,"flex-basis","8%"],["target","_blank","tooltipPosition","left",3,"href","pTooltip"],[1,"pi","pi-download","text-primary",3,"id"],["pButton","","pRipple","","icon","pi
pi-ellipsis-v",1,"p-button-text","p-button-primary",3,"click"],["tooltipPosition","top",1,"pi","pi-exclamation-triangle","p-1",3,"pTooltip"],["tooltipPosition","top",1,"pi","pi-eye",3,"pTooltip"],[1,"col-12",2,"text-align","left"],["severity","success",3,"text",4,"ngIf"],["severity","error",3,"text",4,"ngIf"],["icon","pi
pi-times
-circle","styleClass","p-button-warning",3,"label","onClick"],["icon","pi
pi-check-circle","styleClass","p-button-success",3,"label","disabled","onClick"],["severity","success",3,"text"],["severity","error",3,"text"],["icon","pi
pi-times-circle","styleClass","p-button-plain",3,"label","onClick"],["icon","pi
pi-check-circle","styleClass","p-button-plain",3,"label","disabled","onClick"],["icon","pi
pi-times-circle","styleClass","p-button-danger",3,"label","onClick"],["icon","pi
pi-check-circle","styleClass","p-button-success",3,"label","onClick"]],template:function(e,n){1&e&&(l(0,"form",0,1)(2,"div",2),k(3,"p-toast",3),c(),l(4,"h2"),g(5),m(6,"translate"),c(),l(7,"div",4),k(8,"p-tieredMenu",5,6),l(10,"p-table",7),C("onLazyLoad",function(r){return
n.loadLazy(r)})("selectionChange",function(r){return
n.selection=r})("onRowSelect",function(){return
n.onSelectChange()})("onRowUnelect",function(){return
n.onSelectChange()}),_(11,Coe,0,0,"ng-template",8),_(12,Toe,52,46,"ng-template",9),_(13,
koe,29,29,"ng-template",10),c(),l(14,"p-dialog",11),C("visibleChange",function(r){return
n.displayMetadataDlg=r}),m(15,"translate"),l(16,"div",12)(17,"label",13),g(18),m(19,"translate"),c(),l(20,"input",14,15),C("ngModelChange",function(r){return
n.program.Title=r}),c()(),l(22,"div",12)(23,"label",16),g(24),m(25,"translate"),c(),l(26,"input",17,18),C("ngModelChange",function(r){return
n.program.SubTitle=r}),c()(),l(28,"div",12)(29,"label",19),g(30),m(31,"translate"),c(),l(32,"input",20,21),C("ngModelChange",function(r){return
n.program.Inetref=r}),c()(),l(34,"div",12)(35,"label",22),g(36),m(37,"translate"),c(),l(38,"textarea",23,24),C("ngModelChange",function(r){return
n.program.Description=r}),c()(),l(40,"div",12)(41,"label",25),g(42),m(43,"translate"),c(),l(44,"p-inputNumber",26),C("ngModelChange",function(r){return
n.program.Season=r}),c()(),l(45,"div",12)(46,"label",27),g(47),m(48,"translate"),c(),l(49,"p-inputNumber",28),C("ngModelChange",function(r){return
n.program.Episode=r}
),c()(),l(50,"div",12)(51,"label",29),g(52),m(53,"translate"),c(),l(54,"p-calendar",30),C("ngModelChange",function(r){return
n.program.Airdate=r}),c()(),l(55,"div",12)(56,"label",31),g(57),m(58,"translate"),c(),l(59,"p-dropdown",32,33),C("ngModelChange",function(r){return
n.program.Recording.RecGroup=r}),c()(),l(61,"div",12)(62,"label",34),g(63),m(64,"translate"),c(),l(65,"pre"),g(66),c()(),_(67,Roe,7,9,"ng-template",35),c(),l(68,"p-dialog",36),C("visibleChange",function(r){return
n.displayRecGrpDlg=r}),m(69,"translate"),l(70,"div",12)(71,"label",37),g(72),m(73,"translate"),c(),l(74,"input",38,39),C("ngModelChange",function(r){return
n.newRecGroup=r}),c()(),l(76,"p-listbox",40,41),C("ngModelChange",function(r){return
n.newRecGroup=r}),c(),_(78,Loe,4,7,"ng-template",35),c(),l(79,"p-dialog",42),C("visibleChange",function(r){return
n.displayUnsaved=r}),m(80,"translate"),l(81,"p"),g(82),m(83,"translate"),c(),_(84,Ooe,4,6,"ng-template",35),c()()()),2&e&&(a(5),S(f(6,64,"dashboard.recordin
gs.heading")),a(3),p("popup",!0)("model",n.menuToShow),a(2),p("value",n.programs)("scrollable",!0)("virtualScroll",!0)("rows",50)("lazy",!0)("rowHover",!0)("selection",n.selection)("metaKeySelection",!0),a(4),q(A(94,Aoe)),x("header",f(15,66,"dashboard.recordings.edit_metadata")),p("visible",n.displayMetadataDlg)("modal",!0)("closable",!1)("closeOnEscape",!1),a(4),S(f(19,68,"dashboard.recordings.title")),a(2),p("ngModel",n.program.Title),a(4),S(f(25,70,"dashboard.recordings.subtitle")),a(2),p("ngModel",n.program.SubTitle),a(4),S(f(31,72,"dashboard.recordings.inetref")),a(2),p("ngModel",n.program.Inetref),a(4),S(f(37,74,"dashboard.recordings.description")),a(2),p("rows",5)("cols",30)("ngModel",n.program.Description),a(4),S(f(43,76,"dashboard.recordings.season")),a(2),p("ngModel",n.program.Season)("showButtons",!0)("min",1)("max",99)("step",1),a(3),S(f(48,78,"dashboard.recordings.episode")),a(2),p("ngModel",n.program.Episode)("showButtons",!0)("min",1)("max",99)("step",1),a(3),S(f(53,8
0,"dashboard.recordings.orig_airdate")),a(2),p("ngModel",n.program.Airdate),a(3),S(f(58,82,"dashboard.sched.recgroup_label")),a(2),q(A(95,Poe)),p("options",n.recGroups)("ngModel",n.program.Recording.RecGroup)("editable",!0)("maxlength",64),a(4),S(f(64,84,"dashboard.recordings.filename_label")),a(3),S(n.program.FileName),a(2),x("header",f(69,86,"dashboard.recordings.selrecgroup")),p("visible",n.displayRecGrpDlg)("modal",!0)("draggable",!1)("resizable",!1),a(4),S(f(73,88,"dashboard.sched.recgroup_label")),a(2),p("ngModel",n.newRecGroup),a(2),p("options",n.recGroups)("ngModel",n.newRecGroup),a(3),x("header",f(80,90,"common.unsaved_heading")),p("visible",n.displayUnsaved)("modal",!0),a(3),S(f(83,92,"common.unsaved_message")))},directives:[ze,Ue,He,Td,D$,Dn,ne,On,bt,Kt,vg,Ot,Te,_e,yd,wd,Le,j2,Q,bn,Ye,tS,pt,xr,_n,qe,ve,os],pipes:[ce,eu],styles:["[_nghost-%COMP%]
.p-tieredmenu{border:2px solid}[_nghost-%COMP%] .p-tieredmenu
.p-submenu-list{border:2px solid}"]}),t})();const Noe=["sc
hedform"],Di=function(){return{minWidth:"400px"}};function
Voe(t,i){if(1&t){const
e=I();l(0,"div",5)(1,"label",63),g(2),m(3,"translate"),c(),l(4,"p-dropdown",64,65),C("ngModelChange",function(s){return
v(e),d(2).templateId=s})("onClick",function(){v(e);const s=d(2);return
s.templateChange(s.recRule)})("onChange",function(){v(e);const s=d(2);return
s.templateChange(s.recRule)}),c()()}if(2&t){const
e=d(2);a(2),S(f(3,7,"dashboard.sched.template_label")),a(2),q(A(9,Di)),p("options",e.templates)("ngModel",e.templateId)("editable",!1)("maxlength",0)}}function
Boe(t,i){1&t&&(l(0,"label",68),g(1),m(2,"translate"),c()),2&t&&(a(1),T("
",f(2,1,"dashboard.sched.subtitle_label"),""))}function
Hoe(t,i){1&t&&(l(0,"label",68),g(1),m(2,"translate"),c()),2&t&&(a(1),T("
",f(2,1,"dashboard.sched.add_tables_label"),""))}function
qoe(t,i){if(1&t){const
e=I();l(0,"textarea",69),C("ngModelChange",function(s){return
v(e),d(3).recRule.SubTitle=s}),g(1," "),c()}if(2&t){const
e=d(3);p("ngModel",
e.recRule.SubTitle)("disabled","Power
Search"!=e.recRule.SearchType)("rows",e.subTitleRows)}}const
Goe=function(){return["None","Power Search"]};function
Uoe(t,i){if(1&t&&(l(0,"div",5),_(1,Boe,3,3,"label",66),_(2,Hoe,3,3,"label",66),_(3,qoe,2,3,"textarea",67),c()),2&t){const
e=d(2);a(1),p("ngIf","None"==e.recRule.SearchType),a(1),p("ngIf","Power
Search"==e.recRule.SearchType),a(1),p("ngIf",A(3,Goe).indexOf(e.recRule.SearchType)>-1)}}function
zoe(t,i){if(1&t&&(l(0,"span"),g(1),c()),2&t){const
e=d(2);a(1),We("S",e.recRule.Season,"
E",e.recRule.Episode,"")}}function
joe(t,i){1&t&&(l(0,"label",74),g(1),m(2,"translate"),c()),2&t&&(a(1),T("
",f(2,1,"dashboard.sched.description_label"),""))}function
$oe(t,i){1&t&&(l(0,"label",74),g(1),m(2,"translate"),c()),2&t&&(a(1),T("
",f(2,1,"dashboard.sched.sqlwhere_label"),""))}function
Woe(t,i){1&t&&(l(0,"label",74),g(1),m(2,"translate"),c()),2&t&&(a(1),T("
",f(2,1,"dashboard.sched.description_label"),""))}function
Koe(t,i){1&t&&(l(0,"label",74),g(1
),m(2,"translate"),c()),2&t&&(a(1),T("
",f(2,1,"dashboard.sched.srchValue_label"),""))}const
Qoe=function(){return["None","Manual Search"]};function
Joe(t,i){if(1&t){const
e=I();l(0,"div",5)(1,"div",70),_(2,joe,3,3,"label",71),_(3,$oe,3,3,"label",71),_(4,Woe,3,3,"label",71),_(5,Koe,3,3,"label",72),c(),l(6,"textarea",73),C("ngModelChange",function(s){return
v(e),d(2).recRule.Description=s})("focusout",function(){return
v(e),d(2).onDescriptionBlur()}),g(7," "),c()()}if(2&t){const
e=d(2);a(1),p("ngSwitch",e.recRule.SearchType),a(1),p("ngSwitchCase","None"),a(1),p("ngSwitchCase","Power
Search"),a(1),p("ngSwitchCase","Manual
Search"),a(2),p("ngModel",e.recRule.Description)("disabled",A(7,Qoe).indexOf(e.recRule.SearchType)>-1)("rows",e.descriptionRows)}}function
Yoe(t,i){1&t&&(l(0,"div"),g(1," Examples of SQL Additional
Tables and Where Conditions are in the MythTV wiki
at"),k(2,"br"),l(3,"a",75),g(4,"Power
Search"),c()())}function Zoe(t,i){if(1&t){const e=I();l(0,"div"),k(
1,"p-divider"),l(2,"div",5)(3,"label",76),g(4),m(5,"translate"),c(),l(6,"p-dropdown",77),C("ngModelChange",function(s){return
v(e),d(2).channel=s})("onChange",function(){return
v(e),d(2).onChannelChange()}),c()(),l(7,"div",5)(8,"label",78),g(9),m(10,"translate"),c(),l(11,"p-calendar",79),C("ngModelChange",function(s){return
v(e),d(2).reqDate=s})("onClose",function(){return
v(e),d(2).onDateChange()})("keyup.enter",function(){return
v(e),d(2).onDateChange()})("onBlur",function(){return
v(e),d(2).onDateChange()}),c()(),l(12,"div",5)(13,"label",80),g(14),m(15,"translate"),c(),l(16,"p-inputNumber",81),C("ngModelChange",function(s){return
v(e),d(2).reqDuration=s})("ngModelChange",function(){return
v(e),d(2).onDurationChange()}),c()()()}if(2&t){const
e=d(2);a(4),S(f(5,23,"dashboard.sched.channel_label")),a(2),q(A(29,Di)),p("options",e.allChannels)("ngModel",e.channel)("editable",!1)("maxlength",0),a(3),S(f(10,25,"dashboard.sched.starttime_label")),a(2),p("ngModel",e.reqDate)("showTime",!0)
("stepMinute",5)("dateFormat","yy/mm/dd")("selectOtherMonths",!0)("showIcon",!0)("showOnFocus",!1)("showButtonBar",!0)("clearButtonStyleClass","hidden"),a(3),S(f(15,27,"dashboard.sched.duration_label")),a(2),p("ngModel",e.reqDuration)("showButtons",!0)("min",5)("max",360)("step",5)}}function
Xoe(t,i){if(1&t){const
e=I();l(0,"div",5)(1,"label",82),g(2),m(3,"translate"),c(),l(4,"div",83)(5,"div",84)(6,"p-radioButton",85),C("ngModelChange",function(s){return
v(e),d(2).metaPrefix=s})("ngModelChange",function(){v(e);const s=d(2);return
s.iCheckbox(s.recRule)}),c(),l(7,"label",86),k(8,"img",87),c()(),l(9,"div",88)(10,"a",89),g(11),m(12,"translate"),c(),k(13,"br"),c(),l(14,"div",90)(15,"p-radioButton",91),C("ngModelChange",function(s){return
v(e),d(2).metaPrefix=s})("ngModelChange",function(){v(e);const s=d(2);return
s.iCheckbox(s.recRule)}),c(),l(16,"label",92),k(17,"img",93),c()(),l(18,"div",94)(19,"a",89),g(20),m(21,"translate"),c(),k(22,"br"),c(),l(23,"div",84)(24,"p-radioButton",95),C
("ngModelChange",function(s){return
v(e),d(2).metaPrefix=s})("ngModelChange",function(){v(e);const s=d(2);return
s.iCheckbox(s.recRule)}),c(),l(25,"label",96),k(26,"img",97),c()(),l(27,"div",88)(28,"a",89),g(29),m(30,"translate"),c(),k(31,"br"),c()(),g(32),l(33,"input",98,99),C("ngModelChange",function(s){return
v(e),d(2).recRule.Inetref=s})("ngModelChange",function(){v(e);const
s=d(2);return
s.iText(s.recRule)}),c(),l(35,"small",55),g(36),m(37,"translate"),k(38,"br"),c()()}if(2&t){const
e=d(2);a(2),S(f(3,13,"dashboard.sched.inetref_label")),a(4),p(&...
",f(12,15,"dashboard.sched.isearch"),"
thetvdb.com"),a(4),p("ngModel",e.metaPrefix),a(4),x("...
",f(21,17,"dashboard.sched.isearch"),"
tvmaze.com"),a(4),p("ngModel",e.metaPrefix),a(4),x("h...
+e.recRule.Title),ln),a(1),T("
",f(30,19,"dashboard.sched.isearch"),"
themoviedb.org"),a(3),T(" ",e.metaPrefix," \xa0
"),a(1),p("ngModel",e.recRule.Inetref),a(3),T("
",f(37,21,"dashboard.sched.inetref_desc"),"")}}function
eae(t,i){1&t&&(k(0,"p-message",105),m(1,"translate")),2&t&&x("text",f(1,1,"common.savesuccess"))}function
tae(t,i){if(1&t&&(k(0,"p-message",106),m(1,"translate")),2&t){const
e=d(3);La("text","",f(1,2,"common.backenderror"),":
",e.errortext,"")}}function nae(t,i){if(1&t){const
e=I();l(0,"div",100),_(1,eae,2,3,"p-message",101),_(2,tae,2,4,"p-message",102),c(),l(3,"p-button",103),C("onClick",function(){return
v(e),d(2).close()}),m(4,"translate"),c(),l(5,"p-button",104),C("onClick",function(){return
v(e),d(2).save()}),m(6,"translate"),c()}if(2&t){const
e=d(2),n=F(1);a(1),p("ngIf",e.successCount>0&&0==e.errorCount&&!n.dirty),a(1),p("ngIf",e.errorCount>0),a(1),x("label",f(4,5,"common.close")),a(2),x("label",f(6,7,"common.save")),p("disabled",!n.dirty||0==e.recRule.Id&&"
Not Recording"==e.recRule.Type||!e.recRule.Title)}}function
iae(t,i){if(1&t){const
e=I();l(0,"p-button",107),C("onClick",function(){return
v(e),d(2).close()}),m(1,"translate"),c(),l(2,"p-button",108),C("onClick",function(){return
v(e),d(2).displayUnsaved=!1}),m(3,"translate"),c()}2&t&&(x("label",f(1,2,"common.nosave")),a(2),x("label",f(3,4,"common.continue")))}const
sae=function(){return{height:"90vw",width:"700px"}},rae=function(){return["Power
Search","Manual
Search"]},OS=function(){return{minWidth:"400px",maxHeight:"400px",maxWidth:"640px"}};function
oae(t,i){if(1&t){const
e=I();l(0,"div")(1,"p-dialog",3),C("visibleChange",function(s){return
v(e),d().displayDlg=s}),m(2,"translate"),l(3,"p"),g(4),c(),l(5,"p"),g(6),c(),_(7,Voe,6,10,"div",4),l(8,"div",5)(9,"label",6),g(10),m(11,"translate"),c(),l(12,"p-dropdown",7,8),C("ngModelChange",function(s){return
v(e),d().recRule.SearchType=s})("onChange",function(){return
v(e),d().onSearchTypeChange()}),c()(),l(14,"div",5)(15,"label",9),g(16
),m(17,"translate"),c(),l(18,"textarea",10),C("ngModelChange",function(s){return
v(e),d().recRule.Title=s})("focusout",function(){return
v(e),d().onTitleBlur()}),g(19,"
"),c()(),_(20,Uoe,4,4,"div",4),l(21,"p"),_(22,zoe,2,2,"span",2),c(),_(23,Joe,8,8,"div",4),_(24,Yoe,5,0,"div",2),_(25,Zoe,17,30,"div",2),k(26,"p-divider"),l(27,"div",5)(28,"label",11),g(29),m(30,"translate"),c(),l(31,"p-dropdown",12,13),C("ngModelChange",function(s){return
v(e),d().recRule.Type=s}),c()(),l(33,"div",5)(34,"label",14),g(35),m(36,"translate"),c(),l(37,"p-dropdown",15,16),C("ngModelChange",function(s){return
v(e),d().recRule.RecGroup=s}),c()(),l(39,"div",5)(40,"p-checkbox",17,18),C("ngModelChange",function(s){return
v(e),d().recRule.Inactive=s}),m(42,"translate"),c()(),l(43,"div",5)(44,"label",19),g(45),m(46,"translate"),c(),l(47,"p-dropdown",20,21),C("ngModelChange",function(s){return
v(e),d().recRule.PlayGroup=s}),c()(),l(49,"div",5)(50,"label",22),g(51),m(52,"translate"),c(),l(53,"p-inpu
tNumber",23),C("ngModelChange",function(s){return
v(e),d().recRule.StartOffset=s}),c()(),l(54,"div",5)(55,"label",24),g(56),m(57,"translate"),c(),l(58,"p-inputNumber",25),C("ngModelChange",function(s){return
v(e),d().recRule.EndOffset=s}),c()(),l(59,"div",5)(60,"p-checkbox",26,27),C("ngModelChange",function(s){return
v(e),d().recRule.NewEpisOnly=s}),m(62,"translate"),c()(),l(63,"div",5)(64,"label",28),g(65),m(66,"translate"),c(),l(67,"p-inputNumber",29),C("ngModelChange",function(s){return
v(e),d().recRule.RecPriority=s}),c()(),l(68,"div",5)(69,"label",30),g(70),m(71,"translate"),c(),l(72,"p-dropdown",31,32),C("ngModelChange",function(s){return
v(e),d().recRule.PreferredInput=s}),c()(),l(74,"div",5)(75,"label",33),g(76),m(77,"translate"),c(),l(78,"p-dropdown",34,35),C("ngModelChange",function(s){return
v(e),d().recRule.DupMethod=s}),c()(),l(80,"div",5)(81,"label",36),g(82),m(83,"translate"),c(),l(84,"p-dropdown",37,38),C("ngModelChange",function(s){return
v(e),d().recRule.DupIn=s}),
c()(),l(86,"div",5)(87,"label",39),g(88),m(89,"translate"),c(),l(90,"p-dropdown",40,41),C("ngModelChange",function(s){return
v(e),d().recRule.AutoExtend=s}),c()(),l(92,"div",5)(93,"label",42),g(94),m(95,"translate"),c(),l(96,"p-multiSelect",43,44),C("ngModelChange",function(s){return
v(e),d().selectedFilters=s})("onChange",function(){v(e);const s=d();return
s.filterToRec(s.recRule)}),c()(),l(98,"div",5)(99,"label",45),g(100),m(101,"translate"),c(),l(102,"p-dropdown",46,47),C("ngModelChange",function(s){return
v(e),d().recRule.RecProfile=s}),c()(),l(104,"div",5)(105,"label",48),g(106),m(107,"translate"),c(),l(108,"p-dropdown",49,50),C("ngModelChange",function(s){return
v(e),d().recRule.StorageGroup=s}),c()(),l(110,"div",5)(111,"label",51),g(112),m(113,"translate"),c(),l(114,"p-inputNumber",52),C("ngModelChange",function(s){return
v(e),d().recRule.MaxEpisodes=s}),c()(),l(115,"div",5)(116,"p-checkbox",53,54),C("ngModelChange",function(s){return
v(e),d().recRule.MaxNewest=s}),m(118,"tra
nslate"),c(),l(119,"small",55),g(120),m(121,"translate"),c()(),l(122,"div",5)(123,"p-checkbox",56,57),C("ngModelChange",function(s){return
v(e),d().recRule.AutoExpire=s}),m(125,"translate"),c()(),l(126,"div",5)(127,"label",58),g(128),m(129,"translate"),c(),l(130,"p-multiSelect",59,60),C("ngModelChange",function(s){return
v(e),d().selectedPostProc=s})("onChange",function(){v(e);const s=d();return
s.postProcToRec(s.recRule)}),c()(),_(132,Xoe,39,23,"div",4),k(133,"br")(134,"br")(135,"br")(136,"br")(137,"br")(138,"br")(139,"br")(140,"br")(141,"br")(142,"br")(143,"br")(144,"br")(145,"br")(146,"br"),_(147,nae,7,9,"ng-template",61),c(),l(148,"p-dialog",62),C("visibleChange",function(s){return
v(e),d().displayUnsaved=s}),m(149,"translate"),l(150,"p"),g(151),m(152,"translate"),c(),_(153,iae,4,6,"ng-template",61),c()()}if(2&t){const
e=d();a(1),q(A(198,sae)),x("header",f(2,148,"dashboard.sched.heading")),p("visible",e.displayDlg)("modal",!0)("closable",!1)("closeOnEscape",!1),a(3),T("
",e.recR
ule.CallSign,""),a(2),yo("
",e.utility.formatDate(e.recRule.StartTime),"
",e.utility.formatTime(e.recRule.StartTime)," -
",e.utility.formatTime(e.recRule.EndTime),"
"),a(1),p("ngIf","Recording
Template"!=e.recRule.Type),a(3),S(f(11,150,"dashboard.sched.srchtype_label")),a(2),q(A(199,Di)),p("options",e.srchTypeList)("ngModel",e.recRule.SearchType)("editable",!1)("maxlength",0)("disabled",e.srchTypeDisabled),a(4),S(f(17,152,"dashboard.sched.title_label")),a(2),p("ngModel",e.recRule.Title)("disabled",-1==A(200,rae).indexOf(e.recRule.SearchType)&&"Recording
Template"!=e.recRule.Type||e.recRule.Id==(null==e.defaultTemplate?null:e.defaultTemplate.Id))("rows",e.titleRows),a(2),p("ngIf","Recording
Template"!=e.recRule.Type),a(2),p("ngIf",e.recRule.Season&&e.recRule.Episode),a(1),p("ngIf","Recording
Template"!=e.recRule.Type),a(1),p("ngIf","Power
Search"==e.recRule.SearchType),a(1),p("ngIf","Manual
Search"==e.recRule.SearchType),a(4),S(f(30,154,"dashboard.sched.type_label")),a(2),q(A(201,Di)
),p("options",e.typeList)("ngModel",e.recRule.Type)("editable",!1)("maxlength",0),a(4),S(f(36,156,"dashboard.sched.recgroup_label")),a(2),q(A(202,Di)),p("options",e.recGroups)("ngModel",e.recRule.RecGroup)("editable",!0)("maxlength",64),a(3),x("label",f(42,158,"dashboard.sched.active_label")),p("ngModel",e.recRule.Inactive)("binary",!0)("trueValue",!1)("falseValue",!0)("disabled",e.override),a(5),S(f(46,160,"dashboard.sched.playgroup_label")),a(2),q(A(203,Di)),p("options",e.playGroups)("ngModel",e.recRule.PlayGroup)("editable",!1)("maxlength",0),a(4),S(f(52,162,"dashboard.sched.startoffset_label")),a(2),p("ngModel",e.recRule.StartOffset)("showButtons",!0)("min",-480)("max",480)("step",1),a(3),S(f(57,164,"dashboard.sched.endoffset_label")),a(2),p("ngModel",e.recRule.EndOffset)("showButtons",!0)("min",-480)("max",480)("step",1),a(2),x("label",f(62,166,"dashboard.sched.newepis_label")),p("ngModel",e.recRule.NewEpisOnly)("binary",!0),a(5),S(f(66,168,"dashboard.sched.priority_label")),a(
2),p("ngModel",e.recRule.RecPriority)("showButtons",!0)("min",-100)("max",100)("step",1),a(3),S(f(71,170,"dashboard.sched.prefinput_label")),a(2),q(A(204,Di)),p("options",e.inputList.Inputs)("ngModel",e.recRule.PreferredInput)("editable",!1)("maxlength",0),a(4),S(f(77,172,"dashboard.sched.dupmethod_label")),a(2),q(A(205,Di)),p("options",e.dupMethodList)("ngModel",e.recRule.DupMethod)("editable",!1)("maxlength",0),a(4),S(f(83,174,"dashboard.sched.dupin_label")),a(2),q(A(206,Di)),p("options",e.dupInList)("ngModel",e.recRule.DupIn)("editable",!1)("maxlength",0),a(4),S(f(89,176,"dashboard.sched.autoextend_label")),a(2),q(A(207,Di)),p("options",e.autoExtendList)("ngModel",e.recRule.AutoExtend)("editable",!1)("maxlength",0),a(4),S(f(95,178,"dashboard.sched.filters_label")),a(2),q(A(208,OS)),p("options",e.recRuleFilters)("ngModel",e.selectedFilters),a(4),S(f(101,180,"dashboard.sched.recprofile_label")),a(2),q(A(209,Di)),p("options",e.recProfileList)("ngModel",e.recRule.RecProfile)("editabl
e",!1)("maxlength",0),a(4),S(f(107,182,"dashboard.sched.sgroup_label")),a(2),q(A(210,Di)),p("options",e.recStorageGroups)("ngModel",e.recRule.StorageGroup)("editable",!1)("maxlength",0),a(4),S(f(113,184,"dashboard.sched.maxeps_label")),a(2),p("ngModel",e.recRule.MaxEpisodes)("showButtons",!0)("min",0)("max",100)("step",1),a(2),x("label",f(118,186,"dashboard.sched.maxnewest_label")),p("ngModel",e.recRule.MaxNewest)("binary",!0),a(4),T("
",f(121,188,"dashboard.sched.maxnewest_desc"),"
"),a(3),x("label",f(125,190,"dashboard.sched.autoexpire_label")),p("ngModel",e.recRule.AutoExpire)("binary",!0),a(5),S(f(129,192,"dashboard.sched.postproc_label")),a(2),q(A(211,OS)),p("options",e.postProcList)("ngModel",e.selectedPostProc)("filter",!0),a(2),p("ngIf","Recording
Template"!=e.recRule.Type),a(16),x("header",f(149,194,"common.unsaved_heading")),p("visible",e.displayUnsaved)("modal",!0),a(3),S(f(152,196,"common.unsaved_message"))}}let
Rd=(()=>{class t{constructor(e,n,s,r,o){this.dvrService=e,t
his.translate=n,this.mythService=s,this.utility=r,this.channelService=o,this.displayDlg=!1,this.displayUnsaved=!1,this.loadCount=0,this.successCount=0,this.errorCount=0,this.errortext="",this.htmlRegex=new
RegExp("<TITLE>|</TITLE>"),this.srchTypeDisabled=!0,this.titleRows=1,this.subTitleRows=1,this.descriptionRows=5,this.override=!1,this.reqDate=new
Date,this.reqDuration=60,this.recRules=[],this.playGroups=[],this.recGroups=[],this.recStorageGroups=[],this.inputList={Inputs:[]},this.recRuleFilters=[],this.selectedFilters=[],this.templates=[],this.typeList=[],this.allChannels=[],this.srchTypeList=[{prompt:this.translate.instant("recrule.srch_None"),value:"None"},{prompt:this.translate.instant("recrule.srch_PowerSearch"),value:"Power
Search"},{prompt:this.translate.instant("recrule.srch_TitleSearch"),value:"Title
Search"},{prompt:this.translate.instant("recrule.srch_KeywordSearch"),value:"Keyword
Search"},{prompt:this.translate.instant("recrule.srch_PeopleSearch"),value:"People
Search
"},{prompt:this.translate.instant("recrule.srch_ManualSearch"),value:"Manual
Search"}],this.dupMethodList=[{prompt:this.translate.instant("dashboard.sched.dupmethod.none"),value:"None"},{prompt:this.translate.instant("dashboard.sched.dupmethod.s_and_d"),value:"Subtitle
and
Description"},{prompt:this.translate.instant("dashboard.sched.dupmethod.s_then_d"),value:"Subtitle
then
Description"},{prompt:this.translate.instant("dashboard.sched.dupmethod.s"),value:"Subtitle"},{prompt:this.translate.instant("dashboard.sched.dupmethod.d"),value:"Description"}],this.dupInList=[{prompt:this.translate.instant("dashboard.sched.dupin.both"),value:"All
Recordings"},{prompt:this.translate.instant("dashboard.sched.dupin.curr"),value:"Current
Recordings"},{prompt:this.translate.instant("dashboard.sched.dupin.prev"),value:"Previous
Recordings"}],this.autoExtendList=[{prompt:this.translate.instant("dashboard.sched.extend_none"),value:"None"},{prompt:"ESPN",value:"ESPN"},{prompt:"MLB",value:"MLB"}],this.r
ecProfileList=[{prompt:this.translate.instant("dashboard.sched.recprof.default"),value:"Default"},{prompt:this.translate.instant("dashboard.sched.recprof.livetv"),value:"Live
TV"},{prompt:this.translate.instant("dashboard.sched.recprof.highq"),value:"High
Quality"},{prompt:this.translate.instant("dashboard.sched.recprof.lowq"),value:"Low
Quality"}],this.postProcList=[{prompt:this.translate.instant("dashboard.sched.postproc.autocommflag"),value:"AutoCommflag"},{prompt:this.translate.instant("dashboard.sched.postproc.autometalookup"),value:"AutoMetaLookup"},{prompt:this.translate.instant("dashboard.sched.postproc.autotranscode"),value:"AutoTranscode"},{prompt:"1",value:"AutoUserJob1"},{prompt:"2",value:"AutoUserJob2"},{prompt:"3",value:"AutoUserJob3"},{prompt:"4",value:"AutoUserJob4"}],this.selectedPostProc=[],this.metaPrefix="",this.templateId=0,this.saveObserver={next:u=>{this.recRule?this.recRule.Id&&u.bool?(this.successCount++,this.currentForm.form.markAsPristine(),setTimeout(()=>
this.inter.summaryComponent.refresh(),3e3),"Not
Recording"==this.recRule.Type&&(this.recRule.Id=0)):!this.recRule.Id&&u.uint?(this.successCount++,this.currentForm.form.markAsPristine(),setTimeout(()=>this.inter.summaryComponent.refresh(),3e3),this.recRule.Id=u.uint):(this.errorCount++,this.currentForm.form.markAsDirty()):(console.log("ERROR:
recRule is
undefined"),this.errorCount++)},error:u=>{if(console.error(u),400==u.status){let
h=u.error.split(this.htmlRegex);h.length>1&&(this.errortext=h[1])}this.errorCount++,this.currentForm.form.markAsDirty()}}}ngOnInit(){this.inter.sched=this}loadLists(){let
e;this.recRules=[],this.playGroups=[],this.recGroups=[],this.recStorageGroups=[],this.inputList.Inputs=[],this.recRuleFilters=[],this.loadCount=0,this.errorCount=0,this.dvrService.GetRecordScheduleList({}).subscribe({next:n=>{this.recRules=n.RecRuleList.RecRules,this.loadSuccess()},error:n=>this.loadFail()}),this.dvrService.GetPlayGroupList().subscribe({next:n=>{this.playGroups=n.PlayGro
upList,this.playGroups.unshift("Default"),this.loadSuccess()},error:n=>this.loadFail()}),this.dvrService.GetRecGroupList().subscribe({next:n=>{this.recGroups=n.RecGroupList,this.loadSuccess()},error:n=>this.loadFail()}),this.dvrService.GetRecStorageGroupList().subscribe({next:n=>{this.recStorageGroups=n.RecStorageGroupList,this.loadSuccess()},error:n=>this.loadFail()}),this.dvrService.GetInputList().subscribe({next:n=>{this.inputList=n.InputList,this.inputList.Inputs.unshift({Id:0,CardId:0,SourceId:0,InputName:"",DisplayName:this.translate.instant("dashboard.sched.input_any"),QuickTune:!1,RecPriority:0,ScheduleOrder:0,LiveTVOrder:0}),this.loadSuccess()},error:n=>this.loadFail()}),this.dvrService.GetRecRuleFilterList().subscribe({next:n=>{this.recRuleFilters=n.RecRuleFilterList.RecRuleFilters,this.loadSuccess()},error:n=>this.loadFail()});for(let
n=1;n<5;n++)e=this.translate.instant("settings.services.job_default",{num:n}),this.mythService.GetSetting({HostName:"_GLOBAL_",Key:"UserJob
Desc"+n,Default:e}).subscribe({next:s=>{this.postProcList[n+2].prompt=s.String,this.loadSuccess()},error:()=>this.loadFail()});this.channelService.GetChannelInfoList({Details:!0}).subscribe(n=>{this.allChannels=n.ChannelInfoList.ChannelInfos,this.allChannels.forEach(s=>s.Description=s.ChanNum+"
"+s.ChannelName+"
("+s.CallSign+")")})}loadSuccess(){this.loadCount++,10==this.loadCount&&(this.loadCount=0,this.setupData(),this.displayDlg=!0,this.currentForm.form.markAsPristine())}loadFail(){this.errorCount++}open(e,n,s){this.templateId=0,this.reqProgram=e,this.reqChannel=n,this.reqRecRule=s,this.titleRows=1,e||s?(this.srchTypeDisabled=!0,this.srchTypeList[0].inactive=!1):(this.srchTypeDisabled=!1,this.srchTypeList[0].inactive=!0),this.loadLists()}setupData(){let
e=!1;this.program=this.reqProgram;let
n="";this.reqRecRule&&(n=this.reqRecRule.Type),this.reqRecRule?["Override
Recording","Do not
Record"].indexOf(n)>-1&&!this.reqRecRule.Id?(e=!0,this.recRule=void
0):this.recRule=Object.assign(
{},this.reqRecRule):this.recRule=void
0,this.channel=this.reqChannel,this.program&&!this.channel&&this.program.Channel&&(this.channel=this.program.Channel);var
s=0;if(this.typeList=[],this.templates=[{Id:0,Title:""}],this.defaultTemplate=void
0,this.program&&this.program.Recording&&!e&&(s=this.program.Recording.RecordId),this.recRules.forEach((r,o)=>{r.Id==s&&(this.recRule=r,n=this.recRule.Type),"Recording
Template"==r.Type&&(this.templates.push(r),"Default"==r.Category&&(this.defaultTemplate=r))}),this.recRule||(this.recRule={Id:0}),this.recRule.Title||(this.recRule.Title="",this.recRule.SubTitle="",this.recRule.Description="",this.defaultTemplate&&this.mergeTemplate(this.recRule,this.defaultTemplate)),this.recRule.SearchType||(this.recRule.SearchType="None"),this.program&&this.channel&&"None"==this.recRule.SearchType&&this.mergeProgram(this.recRule,this.program,this.channel),e&&(this.recRule.ParentId=this.program.Recording.RecordId),n||(n="Not
Recording"),!this.recRule.StartTime){
let r=new
Date;this.recRule.StartTime=r.toISOString(),this.recRule.FindDay=(r.getDay()+1)%7,this.recRule.FindTime=r.toTimeString().slice(0,8)}this.filterFromRec(this.recRule),this.postProcFromRec(this.recRule),this.recRule.Type=n,this.setupTypeList(this.recRule),this.srchTypeDisabled||this.onSearchTypeChange(),this.override&&(this.recRule.Inactive=!1),setTimeout(()=>{this.recRule&&(this.recRule.Type=n),this.currentForm.form.markAsPristine()},10)}setupTypeList(e){let
n=e.Type;if(this.typeList.length=0,this.override=!1,"Recording
Template"==n)this.typeList.push({prompt:this.translate.instant("dashboard.sched.type.mod_template"),value:"Recording
Template"}),"Default"!=e.Category&&e.Id>0&&this.typeList.push({prompt:this.translate.instant("dashboard.sched.type.del_template"),value:"Not
Recording"});else if(["Override Recording","Do not
Record"].indexOf(n)>-1)this.override=!0,this.typeList.push({prompt:this.translate.instant("dashboard.sched.type.del_override"),value:"Not
Recording"},{pro
mpt:this.translate.instant("dashboard.sched.type.rec_override"),value:"Override
Recording"},{prompt:this.translate.instant("dashboard.sched.type.dont_rec_override"),value:"Do
not Record"});else{const s="Manual
Search"==e.SearchType,r="None"!=e.SearchType;this.typeList.push({prompt:this.translate.instant("dashboard.sched.type.not"),value:"Not
Recording"}),(e.CallSign&&!r||s)&&this.typeList.push({prompt:this.translate.instant("dashboard.sched.type.this"),value:"Single
Record"}),s||this.typeList.push({prompt:this.translate.instant("dashboard.sched.type.one"),value:"Record
One"}),(!e.CallSign||r)&&this.typeList.push({prompt:this.translate.instant("dashboard.sched.type.weekly"),value:"Record
Weekly"},{prompt:this.translate.instant("dashboard.sched.type.daily"),value:"Record
Daily"}),s||this.typeList.push({prompt:this.translate.instant("dashboard.sched.type.all"),value:"Record
All"})}-1==this.typeList.findIndex(s=>s.value==e.Type)&&(e.Type=this.typeList[0].value)}mergeProgram(e,n,s){e.Tit
le=n.Title,e.SubTitle=n.SubTitle,e.Description=n.Description,e.Category=n.Category,e.StartTime=n.StartTime,e.EndTime=n.EndTime,e.SeriesId=n.SeriesId,e.ProgramId=n.ProgramId,e.ChanId=s.ChanId,e.CallSign=s.CallSign,e.Season=n.Season,e.Episode=n.Episode;let
r=new
Date(e.StartTime);e.FindDay=(r.getDay()+1)%7,e.FindTime=r.toTimeString().slice(0,8)}filterFromRec(e){this.selectedFilters=[],this.recRuleFilters.forEach(n=>{0!=(e.Filter&1<<n.Id)&&this.selectedFilters.push(n.Id)})}filterToRec(e){e.Filter=0,this.selectedFilters.forEach(n=>{e.Filter|=1<<n})}postProcFromRec(e){this.selectedPostProc=[];let
n=e;this.postProcList.forEach(s=>{n[s.value]&&this.selectedPostProc.push(s.value)})}postProcToRec(e){let
n=e;this.postProcList.forEach(s=>n[s.value]=!1),this.selectedPostProc.forEach(s=>n[s]=!0)}iCheckbox(e){e.Inetref||(e.Inetref=""),e.Inetref=e.Inetref.includes(".py_")?e.Inetref.replace(/^.*\.py_/,this.metaPrefix):this.metaPrefix+e.Inetref}iText(e){this.metaPrefix=e.Inetref.replace(/_.*/,"_"),t
his.metaPrefix.endsWith(".py_")||(this.metaPrefix="")}templateChange(e){if(this.templateId){const
n=this.templates.find(s=>s.Id==this.templateId);n&&this.mergeTemplate(e,n)}}onSearchTypeChange(){this.recRule&&(this.recRule.Title="",this.reqDate=new
Date,this.reqDate.setMinutes(0),this.reqDate.setSeconds(0,0),this.reqDuration=60,this.onDateChange(),"Manual
Search"==this.recRule.SearchType&&(this.recRule.Description="",setTimeout(()=>this.onChannelChange(),100)),this.subTitleRows="Power
Search"==this.recRule.SearchType?5:1,this.descriptionRows=["None","Power
Search"].indexOf(this.recRule.SearchType)>-1?5:1,this.recRule.SubTitle="",this.recRule.Description="",this.setupTypeList(this.recRule)),this.onTitleBlur(),this.onDescriptionBlur()}onTitleBlur(){if(this.recRule){if(this.recRule.Title=this.recRule.Title.trim(),this.recRule.Title.length>0){let
e;["Manual Search","Power
Search"].indexOf(this.recRule.SearchType)>-1&&this.recRule.Title.length>0&&(e="("+this.trSearch(this.recRule.SearchT
ype)+")"),"Recording
Template"==this.recRule.Type&&this.recRule.Title.length>0&&(e="("+this.translate.instant("recrule.template")+")"),e&&-1==this.recRule.Title.indexOf(e)&&(this.recRule.Title=this.recRule.Title+"
"+e)}"Manual
Search"==this.recRule.SearchType&&(this.recRule.Description=this.recRule.Title)}}onDescriptionBlur(){this.recRule&&(this.recRule.Description=this.recRule.Description.trim(),["Title
Search","Keyword Search","People
Search"].indexOf(this.recRule.SearchType)>-1&&(this.recRule.Title=this.recRule.Description.length>0?this.recRule.Description+"
("+this.trSearch(this.recRule.SearchType)+")":""))}onChannelChange(){this.recRule&&this.channel&&(this.recRule.ChanId=this.channel.ChanId,this.recRule.CallSign=this.channel.CallSign)}onDateChange(){this.recRule&&(this.recRule.StartTime=this.reqDate.toISOString(),this.recRule.FindDay=(this.reqDate.getDay()+1)%7,this.recRule.FindTime=this.reqDate.toTimeString().slice(0,8),this.onDurationChange())}onDurationChange(){if(this.recR
ule){let e=new Date(this.recRule.StartTime),n=new
Date(e.getTime()+6e4*this.reqDuration);this.recRule.EndTime=n.toISOString()}}trSearch(e){return
this.translate.instant("recrule.srch_"+e.replace("
",""))}mergeTemplate(e,n){e.Inactive=n.Inactive,e.RecPriority=n.RecPriority,e.PreferredInput=n.PreferredInput,e.StartOffset=n.StartOffset,e.EndOffset=n.EndOffset,e.DupMethod=n.DupMethod,e.DupIn=n.DupIn,e.NewEpisOnly=n.NewEpisOnly,e.Filter=n.Filter,e.RecProfile=n.RecProfile,e.RecGroup=n.RecGroup,e.StorageGroup=n.StorageGroup,e.PlayGroup=n.PlayGroup,e.AutoExpire=n.AutoExpire,e.MaxEpisodes=n.MaxEpisodes,e.MaxNewest=n.MaxNewest,e.AutoCommflag=n.AutoCommflag,e.AutoMetaLookup=n.AutoMetaLookup,e.AutoTranscode=n.AutoTranscode,e.AutoUserJob1=n.AutoUserJob1,e.AutoUserJob2=n.AutoUserJob2,e.AutoUserJob3=n.AutoUserJob3,e.AutoUserJob4=n.AutoUserJob4,e.Transcoder=n.Transcoder,this.postProcFromRec(e),this.filterFromRec(e)}close(){!this.recRule||0==this.recRule.Id&&"Not
Recording"==this.recRule.Type?this.d
isplayDlg=!1:this.currentForm.dirty?this.displayUnsaved?(this.displayUnsaved=!1,this.displayDlg=!1,this.currentForm.form.markAsPristine()):this.displayUnsaved=!0:(this.displayDlg=!1,this.displayUnsaved=!1)}save(){if(this.errortext="",this.recRule&&(0!=this.recRule.Id||"Not
Recording"!=this.recRule.Type))if(this.errorCount=0,this.successCount=0,this.recRule.Id>0&&"Not
Recording"==this.recRule.Type)this.dvrService.RemoveRecordSchedule(this.recRule.Id).subscribe(this.saveObserver);else
if(this.recRule.Id>0){const
e=this.createRequest(this.recRule);e.RecordId=this.recRule.Id,this.dvrService.UpdateRecordSchedule(e).subscribe(this.saveObserver)}else{const
e=this.createRequest(this.recRule);this.dvrService.AddRecordSchedule(e).subscribe(this.saveObserver)}}createRequest(e){return{Title:e.Title,Subtitle:e.SubTitle,Description:e.Description,Category:e.Category,StartTime:e.StartTime,EndTime:e.EndTime,SeriesId:e.SeriesId,ProgramId:e.ProgramId,ChanId:e.ChanId,Station:e.CallSign,FindDay:e.FindDa
y,FindTime:e.FindTime,ParentId:e.ParentId,Inactive:e.Inactive,Season:e.Season,Episode:e.Episode,Inetref:e.Inetref,Type:e.Type,SearchType:e.SearchType,RecPriority:e.RecPriority,PreferredInput:e.PreferredInput,StartOffset:e.StartOffset,EndOffset:e.EndOffset,LastRecorded:e.LastRecorded,DupMethod:e.DupMethod,DupIn:e.DupIn,NewEpisOnly:e.NewEpisOnly,Filter:e.Filter,RecProfile:e.RecProfile,RecGroup:e.RecGroup,StorageGroup:e.StorageGroup,PlayGroup:e.PlayGroup,AutoExpire:e.AutoExpire,MaxEpisodes:e.MaxEpisodes,MaxNewest:e.MaxNewest,AutoCommflag:e.AutoCommflag,AutoTranscode:e.AutoTranscode,AutoMetaLookup:e.AutoMetaLookup,AutoUserJob1:e.AutoUserJob1,AutoUserJob2:e.AutoUserJob2,AutoUserJob3:e.AutoUserJob3,AutoUserJob4:e.AutoUserJob4,Transcoder:e.Transcoder,AutoExtend:e.AutoExtend}}URLencode(e){return
encodeURI(e)}confirm(e){return
oe(window.confirm(e))}canDeactivate(){return!this.currentForm||!this.currentForm.dirty||this.confirm(this.translate.instant("settings.common.warning"))}onWindowClose(e
){this.currentForm&&this.currentForm.dirty&&(e.preventDefault(),e.returnValue=!1)}}return
t.\u0275fac=function(e){return
new(e||t)(D(jo),D(Oe),D(qt),D(cs),D(Or))},t.\u0275cmp=z({type:t,selectors:[["app-schedule"]],viewQuery:function(e,n){if(1&e&&W(Noe,5),2&e){let
s;V(s=B())&&(n.currentForm=s.first)}},hostBindings:function(e,n){1&e&&C("beforeunload",function(r){return
n.onWindowClose(r)},!1,ni)},inputs:{inter:"inter"},decls:3,vars:1,consts:[["name","schedform",1,"ml-3","mr-3"],["schedform","ngForm"],[4,"ngIf"],[3,"header","visible","modal","closable","closeOnEscape","visibleChange"],["class","form-group
field",4,"ngIf"],[1,"form-group","field"],["for","SearchType",1,"label","block"],["optionLabel","prompt","optionValue","value","name","SearchType","optionDisabled","inactive",3,"options","ngModel","editable","maxlength","disabled","ngModelChange","onChange"],["SearchType","ngModel"],["for","Title",1,"label","block"],["pInputTextArea","","id","Title","name","Title",1,"text-lg","mb-2","
form-control","w-full",3,"ngModel","disabled","rows","ngModelChange","focusout"],["for","Type",1,"label","block"],["optionLabel","prompt","optionValue","value","name","Type",3,"options","ngModel","editable","maxlength","ngModelChange"],["Type","ngModel"],["for","RecGroup",1,"label","block"],["name","RecGroup",3,"options","ngModel","editable","maxlength","ngModelChange"],["RecGroup","ngModel"],["inputId","Active","name","Active",1,"label","mb-2","w-full",3,"ngModel","binary","label","trueValue","falseValue","disabled","ngModelChange"],["Active","ngModel"],["for","PlayGroup",1,"label","block"],["PlayGroup","Type","name","PlayGroup",3,"options","ngModel","editable","maxlength","ngModelChange"],["PlayGroup","ngModel"],["for","StartOffset",1,"label","block"],["name","StartOffset","id","StartOffset",3,"ngModel","showButtons","min","max","step","ngModelChange"],["for","EndOffset",1,"label","block"],["name","EndOffset","id","EndOffset",3,"ngModel","showButtons","min","max","step","ngModelCh
ange"],["inputId","NewEpisOnly","name","NewEpisOnly",1,"label","mb-2","w-full",3,"ngModel","binary","label","ngModelChange"],["UseEIT","ngModel"],["for","RecPriority",1,"label","block"],["name","RecPriority","id","RecPriority",3,"ngModel","showButtons","min","max","step","ngModelChange"],["for","PreferredInput",1,"label","block"],["optionLabel","DisplayName","optionValue","Id","name","PreferredInput",3,"options","ngModel","editable","maxlength","ngModelChange"],["PreferredInput","ngModel"],["for","DupMethod",1,"label","block"],["optionLabel","prompt","optionValue","value","name","DupMethod",3,"options","ngModel","editable","maxlength","ngModelChange"],["DupMethod","ngModel"],["for","DupIn",1,"label","block"],["optionLabel","prompt","optionValue","value","name","DupIn",3,"options","ngModel","editable","maxlength","ngModelChange"],["DupIn","ngModel"],["for","AutoExtend",1,"label","block"],["optionLabel","prompt","optionValue","value","name","AutoExtend",3,"options","ngModel","editable
","maxlength","ngModelChange"],["AutoExtend","ngModel"],["for","Filters",1,"label","block"],["optionLabel","Description","optionValue","Id","name","Filters",3,"options","ngModel","ngModelChange","onChange"],["Filters","ngModel"],["for","RecProfile",1,"label","block"],["optionLabel","prompt","optionValue","value","name","RecProfile",3,"options","ngModel","editable","maxlength","ngModelChange"],["RecProfile","ngModel"],["for","StorageGroup",1,"label","block"],["name","StorageGroup",3,"options","ngModel","editable","maxlength","ngModelChange"],["StorageGroup","ngModel"],["for","MaxEpisodes",1,"label","block"],["name","MaxEpisodes","id","MaxEpisodes",3,"ngModel","showButtons","min","max","step","ngModelChange"],["inputId","MaxNewest","name","MaxNewest",1,"label","mb-2","w-full",3,"ngModel","binary","label","ngModelChange"],["MaxNewest","ngModel"],[1,"block"],["inputId","AutoExpire","name","AutoExpire",1,"label","mb-2","w-full",3,"ngModel","binary","label","ngModelChange"],["AutoExpire",
"ngModel"],["for","PostProc",1,"label","block"],["optionLabel","prompt","optionValue","value","name","PostProc",3,"options","ngModel","filter","ngModelChange","onChange"],["PostProc","ngModel"],["pTemplate","footer"],[3,"header","visible","modal","visibleChange"],["for","Template",1,"label","block"],["optionLabel","Title","optionValue","Id","name","Template",1,"pr-2",3,"options","ngModel","editable","maxlength","ngModelChange","onClick","onChange"],["Template","ngModel"],["for","SubTitle","class","label
block",4,"ngIf"],["pInputTextArea","","id","SubTitle","name","SubTitle","class","text-lg
mb-2 form-control
w-full",3,"ngModel","disabled","rows","ngModelChange",4,"ngIf"],["for","SubTitle",1,"label","block"],["pInputTextArea","","id","SubTitle","name","SubTitle",1,"text-lg","mb-2","form-control","w-full",3,"ngModel","disabled","rows","ngModelChange"],[3,"ngSwitch"],["for","Description","class","label
block
mb-2",4,"ngSwitchCase"],["for","Description","class","label
block mb-2",4,"ngS
witchDefault"],["pInputTextArea","","id&quo...
],["for","ttvdb"],["src","images/metadata/thetvdb.png","alt","thtvdb","height","40",1,"pl-1"],[1,"col-9","flex","align-items-center"],["target","_blank",3,"href"],[1,"col-5","flex","align-items-center"],["name","prefix","value","tvmaze.py_","inputId","tvmaze",3,"ngModel","ngModelChange"],["for","tvmaze"],["src","images/metadata/tvmaze.png","alt","tvmaze","height","40",1,"pl-1"],[1,"col-7","flex","align-items-center"],["name","prefix","value","tmdb3.py_","inputId","tmdb",3,"ngModel","ngModelChange"],["for","tmdb"],["src","images/metadata/themoviedb.svg","alt","themoviedb","height","40",1,"pl-1"],["pInputText","","id","Inetref","name","Inetref",1,"mb-2","form-control","w-full",3,"ngModel","ngModelChange"],["Inetref","ngModel"],[1,"col-12",2,"text-align","left"],["severity","success",3,"text",4,"ngIf"],["severity","error",3,"text",4,"ngIf"],["icon","pi
pi-times-circle","styleClass","p-button-warning",3,"label","onClick"],["icon","pi
pi-check-circle","styleClass","p-button-success",3,"l
abel","disabled","onClick"],["severity","success",3,"text"],["severity","error",3,"text"],["icon","pi
pi-times-circle","styleClass","p-button-danger",3,"label","onClick"],["icon","pi
pi-check-circle","styleClass","p-button-success",3,"label","onClick"]],template:function(e,n){1&e&&(l(0,"form",0,1),_(2,oae,154,212,"div",2),c()),2&e&&(a(2),p("ngIf",n.recRule))},directives:[ze,Ue,He,Q,bn,Ot,Te,_e,_n,Ye,gr,Ja,km,x7,xr,pt,sn,X2,Sd,ne,qe,ve],pipes:[ce],styles:[""]}),t})();function
aae(t,i){if(1&t){const
e=I();l(0,"p-checkbox",27,28),C("onChange",function(s){return
v(e).filterCallback(s.checked)}),m(2,"translate"),c()}if(2&t){const
e=i.$implicit;Bn("label","",f(2,3,"dashboard.upcoming.showall"),"
"),p("ngModel",e)("binary",!0)}}function
lae(t,i){if(1&t){const
e=I();l(0,"p-dropdown",29),C("onChange",function(s){return
v(e).filterCallback(s.value)}),m(1,"translate"),c()}if(2&t){const
e=i.$implicit,n=d(2);x("placeholder",f(1,4,"settings.chanedit.all")),p("ngModel",e)("options",n.recRules)("sh
owClear",!0)}}const
cae=function(){return{width:"2rem",height:"2rem"}};function
uae(t,i){1&t&&(l(0,"div"),k(1,"p-progressSpinner"),c()),2&t&&(a(1),q(A(2,cae)))}function
dae(t,i){if(1&t){const
e=I();l(0,"button",30),C("click",function(){return
v(e),d(2).refresh()}),m(1,"translate"),c()}2&t&&x("pTooltip",f(1,1,"common.refresh"))}function
pae(t,i){if(1&t&&(l(0,"tr")(1,"th")(2,"p-columnFilter",10),_(3,aae,3,5,"ng-template",11),c(),g(4),m(5,"translate"),l(6,"p-columnFilter",12),_(7,lae,2,6,"ng-template",11),c(),_(8,uae,2,3,"div",13),_(9,dae,2,3,"ng-template",null,14,we),g(11),c()(),l(12,"tr")(13,"th",15),g(14),m(15,"translate"),c(),l(16,"th",16),g(17),m(18,"translate"),c(),k(19,"th",17),l(20,"th",18),g(21),m(22,"translate"),c(),l(23,"th",19),g(24),m(25,"translate"),c(),l(26,"th",20),g(27),m(28,"translate"),c(),l(29,"th",21),g(30),m(31,"translate"),c(),l(32,"th",15),g(33),m(34,"translate"),c(),l(35,"th",22),g(36),m(37,"translate"),c(),l(38,"th",18),g(39),m(40,"translate"),c(),l(41,"th",23
),g(42),m(43,"translate"),c(),l(44,"th",24),k(45,"button",25),c(),l(46,"th",24),k(47,"button",26),c()()),2&t){const
e=F(10),n=d();a(2),p("showMenu",!1)("showClearButton",!1),a(2),T("
\xa0\xa0\xa0\xa0\xa0 ",f(5,20,"dashboard.upcoming.recrule"),": \xa0
"),a(2),p("showMenu",!1)("showClearButton",!1),a(2),p("ngIf",n.refreshing)("ngIfElse",e),a(3),T("
\xa0\xa0\xa0",n.programs.length," Rows "),a(3),T("
",f(15,22,"dashboard.upcoming.date")," "),a(3),T("
",f(18,24,"dashboard.upcoming.time"),"
"),a(4),T("",f(22,26,"dashboard.upcoming.encoder"),"
"),a(3),T("
",f(25,28,"dashboard.recordings.title"),""),a(3),S(f(28,30,"dashboard.recordings.subtitle")),a(3),S(f(31,32,"dashboard.recordings.seas_ep")),a(3),T("
",f(34,34,"dashboard.recordings.orig_airdate"),"
"),a(3),S(f(37,36,"dashboard.recordings.channel")),a(3),T("
",f(40,38,"dashboard.recordings.recgrp")," "),a(3),T("
",f(43,40,"dashboard.upcoming.status"),"
"),a(3),p("disabled",!0),a(2),p("disabled",!0)}}function
hae(t,i){if(1&t&&(l(0,"div"),g
(1),c()),2&t){const e=d().$implicit;a(1),We("
",e.Season,"x",e.Episode," ")}}const
mae=function(){return["WillRecord","Recording","Recorded"]};function
fae(t,i){if(1&t&&(l(0,"div",42),g(1),c()),2&t){const
e=d().$implicit,n=d();p("ngClass",A(2,mae).indexOf(e.Recording.StatusName)>-1?"text-green-500":"text-pink-500"),a(1),T("
",n.dataService.recStatusText[e.Recording.StatusName]," ")}}function
gae(t,i){if(1&t){const
e=I();l(0,"button",43),C("click",function(){v(e);const
s=d().$implicit;return
d().stopRequest(s)}),m(1,"translate"),c()}2&t&&x("pTooltip",f(1,1,"dashboard.recordings.stop_recording"))}function
_ae(t,i){if(1&t){const
e=I();l(0,"button",44),C("click",function(){v(e);const
s=d().$implicit;return
d().override(s)}),m(1,"translate"),c()}2&t&&x("pTooltip",f(1,1,"dashboard.recordings.override_rule"))}const
bae=function(){return["Recording","Failing"]};function
vae(t,i){if(1&t){const
e=I();l(0,"tr")(1,"td",31),k(2,"div",32),c(),l(3,"td",33),g(4),c(),l(5,"td",34),g(6),m(7,"number"),
c(),l(8,"td",18),g(9),c(),l(10,"td",35),g(11),c(),l(12,"td",36),g(13),c(),l(14,"td",21),_(15,hae,2,2,"div",37),c(),l(16,"td",15),k(17,"div",32),c(),l(18,"td",22),g(19),c(),l(20,"td",18),g(21),c(),l(22,"td",23),_(23,fae,2,3,"div",38),c(),l(24,"td",24),_(25,gae,2,3,"button",39),_(26,_ae,2,3,"ng-template",null,40,we),c(),l(28,"td",24)(29,"button",41),C("click",function(){const
r=v(e).$implicit;return
d().updateRecRule(r)}),m(30,"translate"),c()()()}if(2&t){const
e=i.$implicit,n=F(27),s=d();a(2),p("innerHTML",s.formatStartDate(e),Bt),a(2),T("
",s.formatStartTime(e),""),a(2),T("
",Dt(7,17,s.getDuration(e),"1.0-0"),"
min"),a(3),T("",e.Recording.EncoderName," "),a(2),T("
",e.Title,""),a(1),x("pTooltip",e.Description),a(1),T("
",e.SubTitle.slice(0,50),""),a(2),p("ngIf",e.Season>0||e.Episode>0),a(2),p("innerHTML",s.formatAirDate(e),Bt),a(2),We("
",e.Channel.ChanNum,"
",e.Channel.CallSign,""),a(2),S(e.Recording.RecGroup),a(2),p("ngIf",e.Recording),a(2),p("ngIf",A(22,bae).indexOf(e.Recording.S
tatusName)>-1)("ngIfElse",n),a(4),x("pTooltip",f(30,20,"dashboard.recordings.edit_rule")),p("disabled",e.Recording&&7==e.Recording.RecType)}}function
Cae(t,i){1&t&&(k(0,"p-message",49),m(1,"translate")),2&t&&x("text",f(1,1,"common.networkfail"))}function
yae(t,i){if(1&t){const
e=I();l(0,"div",45),_(1,Cae,2,3,"p-message",46),c(),l(2,"p-button",47),C("onClick",function(){return
v(e),d().displayStop=!1}),m(3,"translate"),c(),l(4,"p-button",48),C("onClick",function(){v(e);const
s=d();return s.stopRecording(s.program)}),m(5,"translate"),c()}if(2&t){const
e=d();a(1),p("ngIf",e.errorCount>0),a(1),x("label",f(3,3,"common.close")),a(2),x("label",f(5,5,"dashboard.recordings.stop_recording"))}}let
wae=(()=>{class
t{constructor(e,n,s,r,o){this.dvrService=e,this.messageService=n,this.translate=s,this.dataService=r,this.utility=o,this.programs=[],this.recRules=[],this.allRecRules=[],this.activeRecRules=[],this.defaultRecRule={Id:0,Title:"settings.chanedit.all"},this.displayUpdateDlg=!1,this.showA
llStatuses=!1,this.refreshing=!1,this.loaded=!1,this.inter={summaryComponent:this},this.displayStop=!1,this.errorCount=0,this.translate.get(this.defaultRecRule.Title).subscribe(u=>this.defaultRecRule.Title=u),this.loadRecRules()}ngOnInit(){}refresh(){this.refreshing=!0,this.loadRecRules(),this.loadLazy(this.lazyLoadEvent)}loadRecRules(){this.dvrService.GetRecordScheduleList({}).subscribe({next:e=>{this.allRecRules.length=0,this.allRecRules.push(this.defaultRecRule),this.activeRecRules.length=0,this.activeRecRules.push(this.defaultRecRule),e.RecRuleList.RecRules.forEach(n=>{if("Recording
Template"!=n.Type){let s={Id:n.Id,Title:n.Title.substring(0,30)+"
["+this.utility.recTypeTrans[n.Type]+"]"};this.allRecRules.push(s),n.NextRecording&&this.activeRecRules.push(s)}})}})}loadLazy(e){this.lazyLoadEvent=e;let
n={StartIndex:0,Count:1};e.first&&(n.StartIndex=e.first),e.rows&&(n.Count=e.rows,n.Count<100&&(n.Count=100)),e.filters&&(e.filters.ShowAll.value&&(n.ShowAll=!0),e.filters.RecordId.va
lue&&(n.RecordId=e.filters.RecordId.value)),this.recRules.length=0,n.ShowAll?this.recRules.push(...this.allRecRules):this.recRules.push(...this.activeRecRules),this.dvrService.GetUpcomingList(n).subscribe(s=>{let
r=s.ProgramList;this.programs.length=s.ProgramList.TotalAvailable,this.programs.splice(r.StartIndex,r.Count,...r.Programs),this.programs=[...this.programs],this.refreshing=!1})}formatStartDate(e){return
this.utility.formatDate(e.Recording.StartTs,!0)}formatAirDate(e){return
e.Airdate?this.utility.formatDate(e.Airdate+"
00:00",!0):""}formatStartTime(e){return(new
Date(e.Recording.StartTs).toLocaleTimeString()+" ").replace(/:.. /,"
")}getDuration(e){let n=new Date(e.Recording.StartTs).getTime();return(new
Date(e.Recording.EndTs).getTime()-n)/6e4}updateRecRule(e){this.inter.sched&&this.inter.sched.open(e)}override(e){this.inter.sched&&(7==e.Recording.RecType?this.inter.sched.open(e):this.inter.sched.open(e,void
0,{Type:"Override Recording"}))}stopRequest(e){e.Recording.RecordI
d&&(this.program=e,this.displayStop=!0)}stopRecording(e){this.errorCount=0,this.dvrService.StopRecording(e.Recording.RecordedId).subscribe({next:n=>{n.bool?(this.displayStop=!1,setTimeout(()=>this.inter.summaryComponent.refresh(),3e3)):this.errorCount++},error:n=>{this.errorCount++}})}}return
t.\u0275fac=function(e){return
new(e||t)(D(jo),D(Gi),D(Oe),D(Ll),D(cs))},t.\u0275cmp=z({type:t,selectors:[["app-upcoming"]],features:[Pe([Gi])],decls:24,vars:25,consts:[[2,"white-space","pre-line"],["position","center"],[1,"block","card","w-full"],[2,"height","90vh"],["scrollHeight","flex","styleClass","p-datatable-striped",3,"value","scrollable","virtualScroll","rows","lazy","rowHover","onLazyLoad"],["pTemplate","header"],["pTemplate","body"],[3,"header","visible","modal","draggable","resizable","visibleChange"],["pTemplate","footer"],[3,"inter"],["field","ShowAll","matchMode","equals",3,"showMenu","showClearButton"],["pTemplate","filter"],["field","RecordId","matchMode","equals",3,"showMenu",
"showClearButton"],[4,"ngIf","ngIfElse"],["refreshBn",""],[1,"justify-content-end","p-1",2,"flex-basis","8%"],[1,"justify-content-end","p-1",2,"flex-basis","6%"],[1,"justify-content-end","pl-1","pr-3","pt-1","pb-1",2,"flex-basis","7%"],[1,"p-1",2,"flex-basis","8%"],[1,"p-1",2,"flex-basis","12%"],[1,"p-1",2,"flex-basis","18%"],[1,"p-1",2,"flex-basis","4%"],[1,"p-1",2,"flex-basis","10%"],[1,"p-1",2,"flex-basis","7%"],[1,"p-1",2,"flex-basis","2%"],["pButton","","pRipple","","icon","pi
pi-paperclip",1,"p-button-text","p-button-primary",3,"disabled"],["pButton","","pRipple","","icon","pi
pi-pencil",1,"p-button-text","p-button-primary",3,"disabled"],["inputId","showAllStatuses","name","showAllStatuses",3,"ngModel","binary","label","onChange"],["showAll","ngModel"],["name","rulefilter","optionLabel","Title","optionValue","Id",3,"ngModel","options","placeholder","showClear","onChange"],["pButton","","pRipple","","icon","pi
pi-refresh",1,"p-button-text",".p-button-success",3,"pTooltip","clic
k"],[1,"justify-content-end","p-1","overflow-hidden",2,"flex-basis","8%"],[3,"innerHTML"],[1,"justify-content-end","p-1","overflow-hidden",2,"flex-basis","6%"],[1,"justify-content-end","pl-1","pr-3","pt-1","pb-1","overflow-hidden",2,"flex-basis","7%"],[1,"p-1","overflow-hidden",2,"flex-basis","12%"],["tooltipPosition","top",1,"p-1","overflow-hidden",2,"flex-basis","18%",3,"pTooltip"],[4,"ngIf"],[3,"ngClass",4,"ngIf"],["pButton","","pRipple","","icon","pi
pi-stop-circle","class","p-button-text
p-button-danger","tooltipPosition","left",3,"pTooltip","click",4,"ngIf","ngIfElse"],["overrideBn",""],["pButton","","pRipple","","icon","pi
pi-pencil","tooltipPosition","left",1,"p-button-text","p-button-primary",3,"pTooltip","disabled","click"],[3,"ngClass"],["pButton","","pRipple","","icon","pi
pi-stop-circle","tooltipPosition","left",1,"p-button-text","p-button-danger",3,"pTooltip","click"],["pButton","","pRipple","","icon","pi
pi-paperclip","tooltipPosition","left",1,"p-button-text","p-butt
on-primary",3,"pTooltip","click"],[1,"col-12",2,"text-align","left"],["severity","error",3,"text",4,"ngIf"],["icon","pi
pi-times-circle","styleClass","p-button-warning",3,"label","onClick"],["icon","pi
pi-check-circle","styleClass","p-button-danger",3,"label","onClick"],["severity","error",3,"text"]],template:function(e,n){1&e&&(l(0,"div")(1,"div",0),k(2,"p-toast",1),c(),l(3,"h2"),g(4),m(5,"translate"),c(),l(6,"div",2)(7,"div",3)(8,"p-table",4),C("onLazyLoad",function(r){return
n.loadLazy(r)}),_(9,pae,48,42,"ng-template",5),_(10,vae,31,23,"ng-template",6),c(),l(11,"p-dialog",7),C("visibleChange",function(r){return
n.displayStop=r}),m(12,"translate"),l(13,"h2"),g(14),m(15,"translate"),c(),l(16,"p"),g(17),m(18,"translate"),k(19,"br"),l(20,"b"),g(21),c()(),_(22,yae,6,7,"ng-template",8),c(),k(23,"app-schedule",9),c()()()),2&e&&(a(4),S(f(5,17,"dashboard.upcoming.heading")),a(4),p("value",n.programs)("scrollable",!0)("virtualScroll",!0)("rows",50)("lazy",!0)("rowHover",!0),a(3),x("header"
,f(12,19,"dashboard.recordings.stop_recording")),p("visible",n.displayStop)("modal",!0)("draggable",!1)("resizable",!1),a(3),S(f(15,21,"settings.common.ru_sure")),a(3),T("",f(18,23,"dashboard.recordings.stop_details"),"
"),a(4),We(" ",null==n.program?null:n.program.Title,":
",null==n.program?null:n.program.SubTitle,""),a(2),p("inter",n.inter))},directives:[Td,Dn,ne,vg,sn,Te,_e,Ot,Q,Go,On,bt,Kt,Le,bn,qe,ve,Rd],pipes:[ce,eu],styles:[""]}),t})();function
Tae(t,i){if(1&t){const
e=I();l(0,"button",10),C("click",function(){return
v(e),d(2).newRecRule()}),m(1,"translate"),c(),l(2,"button",11),C("click",function(){return
v(e),d(2).newTemplate()}),m(3,"translate"),c()}2&t&&(x("label",f(1,2,"dashboard.recrules.new_recrule")),a(2),x("label",f(3,4,"dashboard.recrules.new_teplate")))}function
Sae(t,i){1&t&&(l(0,"tr")(1,"th",12),g(2),m(3,"translate"),k(4,"p-sortIcon",13),c(),l(5,"th",14),g(6),m(7,"translate"),c(),l(8,"th",15),g(9),m(10,"translate"),c(),l(11,"th",15),g(12),m(13,"translate"),c(),l(
14,"th",15),g(15),m(16,"translate"),c(),l(17,"th",16),g(18),m(19,"translate"),k(20,"p-sortIcon",17),c(),l(21,"th",18),g(22),m(23,"translate"),k(24,"p-sortIcon",19),c(),l(25,"th",20),g(26,"Active"),c(),l(27,"th",21),k(28,"button",22)(29,"button",23),c()()),2&t&&(a(2),T("
",f(3,9,"dashboard.recordings.title"),"
"),a(4),S(f(7,11,"dashboard.recrule.type")),a(3),S(f(10,13,"common.priority")),a(3),T("
",f(13,15,"dashboard.recordings.recgrp")," "),a(3),T("
",f(16,17,"dashboard.recrules.storgrp")," "),a(3),T("
",f(19,19,"dashboard.recrules.lastrec"),""),a(4),T("
",f(23,21,"dashboard.recrules.nextrec"),""),a(6),p("disabled",!0),a(1),p("disabled",!0))}function
xae(t,i){1&t&&k(0,"i",31)}function
Dae(t,i){1&t&&k(0,"i",32)}function Mae(t,i){if(1&t){const
e=I();l(0,"tr")(1,"td",24),g(2),c(),l(3,"td",14),g(4),c(),l(5,"td",15),g(6),c(),l(7,"td",15),g(8),c(),l(9,"td",15),g(10),c(),l(11,"td",25),g(12),c(),l(13,"td",26),g(14),c(),l(15,"td",20),_(16,xae,1,0,"i",27),_(17,Dae,1,0,"ng-template",null,28,we
),c(),l(19,"td",21)(20,"button",29),C("click",function(){const
r=v(e).$implicit;return
d(2).updateRecRule(r)}),m(21,"translate"),c(),l(22,"button",30),C("click",function(){const
r=v(e).$implicit;return
d(2).deleteRequest(r)}),m(23,"translate"),c()()()}if(2&t){const
e=i.$implicit,n=F(18),s=d(2);a(2),T(" ",e.Title,""),a(2),T("
",s.utility.recTypeTrans[e.Type],""),a(2),S(e.RecPriority),a(2),S(e.RecGroup),a(2),S(e.StorageGroup),a(2),T("
",s.utility.formatDate(e.LastRecorded),""),a(2),We("
",s.utility.formatDate(e.NextRecording),"
",s.utility.formatTime(e.NextRecording),""),a(2),p("ngIf",e.Inactive)("ngIfElse",n),a(4),x("pTooltip",f(21,13,"dashboard.recordings.edit_rule")),a(2),x("pTooltip",f(23,15,"dashboard.recordings.delete_rule")),p("disabled","Recording
Template"==e.Type&&"Default"==e.Category)}}function
kae(t,i){if(1&t&&(l(0,"div",5)(1,"p-table",6),_(2,Tae,4,6,"ng-template",7),_(3,Sae,30,23,"ng-template",8),_(4,Mae,24,17,"ng-template",9),c()()),2&t){const
e=d();a(1),p("value",e.rec
Rules)("scrollable",!0)("rowHover",!0)}}function
Iae(t,i){1&t&&(k(0,"p-message",37),m(1,"translate")),2&t&&x("text",f(1,1,"common.networkfail"))}function
Eae(t,i){if(1&t){const
e=I();l(0,"div",33),_(1,Iae,2,3,"p-message",34),c(),l(2,"p-button",35),C("onClick",function(){return
v(e),d().displayDelete=!1}),m(3,"translate"),c(),l(4,"p-button",36),C("onClick",function(){v(e);const
s=d();return s.deleteRule(s.recRule)}),m(5,"translate"),c()}if(2&t){const
e=d();a(1),p("ngIf",e.errorCount>0),a(1),x("label",f(3,3,"common.close")),a(2),x("label",f(5,5,"common.delete"))}}function
Rae(t,i){1&t&&k(0,"p-progressSpinner")}let Lae=(()=>{class
t{constructor(e,n){this.dvrService=e,this.utility=n,this.recRules=[],this.inter={summaryComponent:this},this.deSpacer=new
RegExp(/
/g),this.rulesLoaded=!1,this.errorCount=0,this.successCount=0,this.displayDelete=!1,this.saveObserver={next:s=>{this.recRule?this.recRule.Id&&s.bool?(this.successCount++,this.displayDelete=!1,setTimeout(()=>this.refresh(),1e3)):!t
his.recRule.Id&&s.uint?(this.successCount++,setTimeout(()=>this.inter.summaryComponent.refresh(),1e3),this.recRule.Id=s.uint):this.errorCount++:(console.log("ERROR:
recRule is
undefined"),this.errorCount++)},error:s=>{console.error(s),this.errorCount++}}}refresh(){this.loadLists()}ngOnInit(){this.loadLists()}loadLists(){this.recRules=[],this.errorCount=0,this.dvrService.GetRecordScheduleList({}).subscribe({next:e=>{this.recRules=e.RecRuleList.RecRules,this.rulesLoaded=!0},error:e=>{this.errorCount++}})}newRecRule(){this.updateRecRule()}updateRecRule(e){this.inter.sched&&this.inter.sched.open(void
0,void 0,e)}newTemplate(){this.updateRecRule({Type:"Recording
Template"})}deleteRequest(e){this.recRule=e,this.displayDelete=!0}deleteRule(e){this.dvrService.RemoveRecordSchedule(e.Id).subscribe(this.saveObserver)}}return
t.\u0275fac=function(e){return
new(e||t)(D(jo),D(cs))},t.\u0275cmp=z({type:t,selectors:[["app-recrules"]],decls:19,vars:21,consts:[["class","block
card w-full","style","he
ight:
90vh",4,"ngIf","ngIfElse"],[3,"header","visible","modal","draggable","resizable","visibleChange"],["pTemplate","footer"],[3,"inter"],["loading",""],[1,"block","card","w-full",2,"height","90vh"],["scrollHeight","flex","styleClass","p-datatable-striped","responsiveLayout","scroll",3,"value","scrollable","rowHover"],["pTemplate","caption"],["pTemplate","header"],["pTemplate","body"],["pButton","","pRipple","","icon","pi
pi-plus",1,"p-button-success","mr-2",3,"label","click"],["pButton","","pRipple","","icon","pi
pi-plus",1,"p-button-success","p-button-outlined","mr-2",3,"label","click"],["pSortableColumn","Title",1,"p-1",2,"flex-basis","20%"],["field","Title"],[1,"p-1",2,"flex-basis","20%"],[1,"p-1",2,"flex-basis","10%"],["pSortableColumn","LastRecorded",1,"justify-content-end","pr-5",2,"flex-basis","10%"],["field","LastRecorded"],["pSortableColumn","NextRecording",1,"justify-content-end","pr-5",2,"flex-basis","15%"],["field","NextRecording"],[1,"p-1",2,"flex-basis","5%"],[1,"p-1
",2,"flex-basis","6%"],["pButton","","pRipple","","icon","pi
pi-pencil",1,"p-button-text","p-button-primary",3,"disabled"],["pButton","","pRipple","","icon","pi
pi-trash",1,"p-button-text","p-button-danger",3,"disabled"],[1,"p-1","overflow-hidden",2,"flex-basis","20%"],[1,"justify-content-end","p-1","pr-5",2,"flex-basis","10%"],[1,"justify-content-end","p-1","pr-5",2,"flex-basis","15%"],["class","pi
pi-times
text-pink-500",4,"ngIf","ngIfElse"],["checkmark",""],["pButton","","pRipple","","icon","pi
pi-pencil","tooltipPosition","left",1,"p-button-text","p-button-primary",3,"pTooltip","click"],["pButton","","pRipple","","icon","pi
pi-trash","tooltipPosition","left",1,"p-button-text","p-button-danger",3,"pTooltip","disabled","click"],[1,"pi","pi-times","text-pink-500"],[1,"pi","pi-check","text-green-500"],[1,"col-12",2,"text-align","left"],["severity","error",3,"text",4,"ngIf"],["icon","pi
pi-times-circle","styleClass","p-button-warning",3,"label","onClick"],["icon","pi
pi-check-circle"
,"styleClass","p-button-danger",3,"label","onClick"],["severity","error",3,"text"]],template:function(e,n){if(1&e&&(l(0,"h2"),g(1),m(2,"translate"),c(),_(3,kae,5,3,"div",0),l(4,"p-dialog",1),C("visibleChange",function(r){return
n.displayDelete=r}),m(5,"translate"),l(6,"h2"),g(7),m(8,"translate"),c(),l(9,"p"),g(10),m(11,"translate"),k(12,"br"),l(13,"b"),g(14),c()(),_(15,Eae,6,7,"ng-template",2),c(),k(16,"app-schedule",3),_(17,Rae,1,0,"ng-template",null,4,we)),2&e){const
s=F(18);a(1),S(f(2,13,"dashboard.recrules.heading")),a(2),p("ngIf",n.rulesLoaded)("ngIfElse",s),a(1),x("header",f(5,15,"dashboard.recordings.delete_rule")),p("visible",n.displayDelete)("modal",!0)("draggable",!1)("resizable",!1),a(3),S(f(8,17,"settings.common.ru_sure")),a(3),T("",f(11,19,"dashboard.recordings.delete_details"),"
"),a(4),We(" ",null==n.recRule?null:n.recRule.Title,":
",null==n.recRule?null:n.recRule.Type,""),a(2),p("inter",n.inter)}},directives:[Q,Dn,ne,On,bt,yd,wd,Kt,bn,qe,ve,Rd,Go],pipes:[ce],styles:[
""]}),t})(),Oae=(()=>{class
t{constructor(e){this.httpClient=e}GetVideoList(e){let n=new ye;for(const[s,r]of
Object.entries(e))n=n.set(s,r);return
this.httpClient.get("/Video/GetVideoList",{params:n})}UpdateVideoWatchedStatus(e,n){return
this.httpClient.post("/Video/UpdateVideoWatchedStatus",{Id:e,Watched:n})}UpdateVideoMetadata(e){return
this.httpClient.post("/Video/UpdateVideoMetadata",e)}}return
t.\u0275fac=function(e){return
new(e||t)(K(Bi))},t.\u0275prov=X({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();const
Aae=["vidsform"],Pae=["menu"],Fae=["table"];function
Nae(t,i){}function Vae(t,i){if(1&t){const
e=I();l(0,"div")(1,"p-button",35),C("onClick",function(){const
r=v(e).index;return d(2).breadCrumb(r+1)}),c()()}if(2&t){const
e=i.$implicit;a(1),x("label",e)}}const
Bae=function(){return{width:"30px",height:"30px"}};function
Hae(t,i){1&t&&(l(0,"div"),k(1,"p-progressSpinner"),c()),2&t&&(a(1),q(A(2,Bae)))}function
qae(t,i){if(1&t){const e=I();l(0,"button",52),C("click",funct
ion(){v(e);const s=d(2);return
s.refreshing=!0,s.reLoadVideos()}),m(1,"translate"),c()}2&t&&x("pTooltip",f(1,1,"common.refresh"))}function
Gae(t,i){if(1&t){const
e=I();l(0,"tr")(1,"th")(2,"p-button",35),C("onClick",function(){return
v(e),d().breadCrumb(0)}),m(3,"translate"),c(),_(4,Vae,2,1,"div",36),g(5,"
\xa0\xa0\xa0
"),l(6,"p-checkbox",37,38),C("ngModelChange",function(s){return
v(e),d().showAllVideos=s})("onChange",function(){return
v(e),d().showAllChange()}),m(8,"translate"),c(),_(9,Hae,2,3,"div",39),_(10,qae,2,3,"ng-template",null,40,we),g(12),c()(),l(13,"tr")(14,"th",41),g(15),m(16,"translate"),k(17,"p-sortIcon",42),c(),k(18,"th",43),l(19,"th",44),g(20),m(21,"translate"),c(),l(22,"th",45),g(23),m(24,"translate"),c(),l(25,"th",46),g(26),m(27,"translate"),k(28,"p-sortIcon",47),c(),l(29,"th",48),g(30),m(31,"translate"),c(),l(32,"th",45)(33,"a",49),k(34,"i",50),c(),k(35,"button",51),c()()}if(2&t){const
e=F(11),n=d();a(2),x("label",f(3,14,"dashboard.videos.heading")),a(2),p("ngForO
f",n.directory),a(2),Bn("label","",f(8,16,"dashboard.videos.showall"),"
"),p("ngModel",n.showAllVideos)("binary",!0),a(3),p("ngIf",n.refreshing)("ngIfElse",e),a(3),T("
\xa0\xa0\xa0",n.videos.length," Rows "),a(3),T("
",f(16,18,"dashboard.recordings.title"),"
"),a(5),S(f(21,20,"dashboard.recordings.subtitle")),a(3),S(f(24,22,"dashboard.recordings.seas_ep")),a(3),T("
",f(27,24,"dashboard.videos.releasedate")," "),a(4),T("
",f(31,26,"dashboard.recordings.duration"),"
"),a(5),p("disabled",!0)}}function Uae(t,i){if(1&t){const
e=I();l(0,"div")(1,"button",60),C("click",function(){v(e);const
s=d().$implicit;return d().onDirectory(s.Title)}),c()()}if(2&t){const
e=d().$implicit;a(1),x("label",e.Title)}}function
zae(t,i){1&t&&g(0),2&t&&T(" ",d().$implicit.Title,"
")}function jae(t,i){1&t&&k(0,"i",61)}function
$ae(t,i){if(1&t&&(l(0,"div"),g(1),c()),2&t){const
e=d().$implicit;a(1),We(" ",e.Season,"x",e.Episode,"
")}}function
Wae(t,i){if(1&t&&(l(0,"div"),g(1),c()),2&t){const
e=d().$implicit;a(1),
T(" ",e.Length," min ")}}function Kae(t,i){if(1&t){const
e=I();l(0,"div")(1,"a",62),m(2,"translate"),k(3,"i",63),c(),l(4,"button",64),C("click",function(s){v(e);const
r=d().$implicit;return d().showMenu(r,s)}),c()()}if(2&t){const
e=d().$implicit,n=d();a(1),x("href",n.URLencode("/Content/GetVideo?Id="+e.Id),ln),x("pTooltip",f(2,2,"dashboard.videos.download"))}}function
Qae(t,i){if(1&t&&(l(0,"tr")(1,"td",53),_(2,Uae,2,1,"div",39),_(3,zae,1,1,"ng-template",null,54,we),c(),l(5,"td",43),_(6,jae,1,0,"i",55),c(),l(7,"td",56),g(8),c(),l(9,"td",45),_(10,$ae,2,2,"div",57),c(),l(11,"td",58),k(12,"div",59),c(),l(13,"td",48),_(14,Wae,2,1,"div",57),c(),l(15,"td",45),_(16,Kae,5,4,"div",57),c()()),2&t){const
e=i.$implicit,n=F(4),s=d();a(2),p("ngIf","DIRECTORY"==e.ContentType)("ngIfElse",n),a(4),p("ngIf",e.Watched),a(1),x("pTooltip",e.Description),a(1),T("
",e.SubTitle,""),a(2),p("ngIf",e.Season>0||e.Episode>0),a(2),p("innerHTML",s.utility.formatDate(e.ReleaseDate,!0),Bt),a(2),p("ngIf",e.Length>0),a
(2),p("ngIf","DIRECTORY"!=e.ContentType)}}function
Jae(t,i){1&t&&(k(0,"p-message",70),m(1,"translate")),2&t&&x("text",f(1,1,"common.savesuccess"))}function
Yae(t,i){1&t&&(k(0,"p-message",71),m(1,"translate")),2&t&&x("text",f(1,1,"common.networkfail"))}function
Zae(t,i){if(1&t){const
e=I();l(0,"div",65),_(1,Jae,2,3,"p-message",66),_(2,Yae,2,3,"p-message",67),c(),l(3,"p-button",68),C("onClick",function(){return
v(e),d().closeDialog()}),m(4,"translate"),c(),l(5,"p-button",69),C("onClick",function(){return
v(e),d().saveVideo()}),m(6,"translate"),c()}if(2&t){const
e=d(),n=F(15);a(1),p("ngIf",e.successCount>0&&0==e.errorCount&&!n.dirty),a(1),p("ngIf",e.errorCount>0),a(1),x("label",f(4,5,"common.close")),a(2),x("label",f(6,7,"common.save")),p("disabled",!n.dirty||""==e.video.Title.trim())}}function
Xae(t,i){if(1&t){const
e=I();l(0,"p-button",72),C("onClick",function(){return
v(e),d().closeDialog()}),m(1,"translate"),c(),l(2,"p-button",73),C("onClick",function(){return
v(e),d().displayUnsav
ed=!1}),m(3,"translate"),c()}2&t&&(x("label",f(1,2,"common.nosave")),a(2),x("label",f(3,4,"common.continue")))}const
ele=function(){return{height:"75vw",width:"50vw"}};let
tle=(()=>{class
t{constructor(e,n,s,r){this.videoService=e,this.translate=n,this.messageService=s,this.utility=r,this.videos=[],this.refreshing=!1,this.successCount=0,this.errorCount=0,this.directory=[],this.video={Title:""},this.displayMetadataDlg=!1,this.displayUnsaved=!1,this.showAllVideos=!1,this.mnu_markwatched={label:"dashboard.recordings.mnu_markwatched",command:u=>this.markwatched(u,!0)},this.mnu_markunwatched={label:"dashboard.recordings.mnu_markunwatched",command:u=>this.markwatched(u,!1)},this.mnu_updatemeta={label:"dashboard.recordings.mnu_updatemeta",command:u=>this.updatemeta(u)},this.menuToShow=[],this.msg={Success:"common.success",Failed:"common.failed",NetFail:"common.networkfail"},this.saveObserver={next:u=>{u.bool?(console.log("saveObserver
success",u),this.successCount++,this.successCount++,thi
s.currentForm.form.markAsPristine(),this.editingVideo&&Object.assign(this.editingVideo,this.video)):(console.log("saveObserver
error",u),this.errorCount++)},error:u=>{console.log("saveObserver
error",u),this.errorCount++}};for(const[u,h]of
Object.entries(this.msg))this.translate.get(h).subscribe(b=>{Object.defineProperty(this.msg,u,{value:b})});[this.mnu_markwatched,this.mnu_markunwatched,this.mnu_updatemeta].forEach(u=>{u.label&&this.translate.get(u.label).subscribe(h=>u.label=h)})}ngOnInit(){}loadLazy(e){this.lazyLoadEvent=e;let
n={Sort:"title",Folder:this.directory.join("/"),CollapseSubDirs:!this.showAllVideos,StartIndex:0,Count:1};e.sortField&&(n.Sort=e.sortField,e.sortOrder&&(n.Descending=e.sortOrder<0)),n.Sort+=",title,releasedate,season,episode",e.first&&(n.StartIndex=e.first),e.rows&&(n.Count=e.rows),this.videoService.GetVideoList(n).subscribe(s=>{let
r=s.VideoMetadataInfoList;this.videos.length=s.VideoMetadataInfoList.TotalAvailable,this.videos.splice(r.StartIndex,r.Count,.
..r.VideoMetadataInfos),this.videos=[...this.videos],this.refreshing=!1})}reLoadVideos(){this.table.resetScrollTop(),this.videos.length=0,this.lazyLoadEvent.first=0,this.lazyLoadEvent.rows=100,this.loadLazy(this.lazyLoadEvent)}showAllChange(){this.refreshing=!0,setTimeout(()=>this.reLoadVideos(),100)}URLencode(e){return
encodeURI(e)}onDirectory(e){this.directory.push(e),this.reLoadVideos()}breadCrumb(e){this.directory.length=e,this.reLoadVideos()}showMenu(e,n){this.video=e,this.menuToShow.length=0,this.menuToShow.push(e.Watched?this.mnu_markunwatched:this.mnu_markwatched),this.menuToShow.push(this.mnu_updatemeta),this.menu.toggle(n)}markwatched(e,n){this.videoService.UpdateVideoWatchedStatus(this.video.Id,n).subscribe({next:s=>{s.bool?(this.sendMessage("success",e.item.label,this.msg.Success),this.video.Watched=n):this.sendMessage("error",e.item.label,this.msg.Failed)},error:s=>this.networkError(s)})}updatemeta(e){this.editingVideo=this.video,this.video=Object.assign({},this.video),
this.video.ReleaseDate=this.video.ReleaseDate?new
Date(this.video.ReleaseDate):null,this.displayMetadataDlg=!0}sendMessage(e,n,s,r){this.messageService.add({severity:e,summary:s,detail:n+"
"+this.video.Title+"
"+this.video.SubTitle+(r=r?"\n"+r:""),life:3e3})}saveVideo(){this.successCount=0,this.errorCount=0,this.displayUnsaved=!1,this.videoService.UpdateVideoMetadata({Id:this.video.Id,Episode:this.video.Episode,Inetref:this.video.Inetref,Plot:this.video.Description,ReleaseDate:this.video.ReleaseDate,Season:this.video.Season,SubTitle:this.video.SubTitle,Title:this.video.Title}).subscribe(this.saveObserver)}networkError(e){console.log("network
error",e),this.sendMessage("error","",this.msg.NetFail)}closeDialog(){this.currentForm.dirty?this.displayUnsaved?(this.displayUnsaved=!1,this.displayMetadataDlg=!1,this.editingVideo=void
0,this.currentForm.form.markAsPristine()):this.displayUnsaved=!0:(this.displayMetadataDlg=!1,this.displayUnsaved=!1,this.editingVideo=void
0)}}return t.\u0275fa
c=function(e){return
new(e||t)(D(Oae),D(Oe),D(Gi),D(cs))},t.\u0275cmp=z({type:t,selectors:[["app-videos"]],viewQuery:function(e,n){if(1&e&&(W(Aae,5),W(Pae,5),W(Fae,5)),2&e){let
s;V(s=B())&&(n.currentForm=s.first),V(s=B())&&(n.menu=s.first),V(s=B())&&(n.table=s.first)}},features:[Pe([Gi])],decls:70,vars:71,consts:[[2,"white-space","pre-line"],["position","center"],[1,"block","card","w-full",2,"height","90vh"],[3,"popup","model"],["menu",""],["name","table","scrollHeight","flex","styleClass","p-datatable-striped","responsiveLayout","scroll",3,"value","scrollable","virtualScroll","rows","lazy","rowHover","onLazyLoad"],["table",""],["pTemplate","caption"],["pTemplate","header"],["pTemplate","body"],["name","vidsform",1,"ml-3","mr-3"],["vidsform","ngForm"],[3,"header","visible","modal","closable","closeOnEscape","visibleChange"],[1,"form-group","field"],["for","Title",1,"label","block"],["pInputText","","id","Title","name","Title",1,"mb-2","form-control","w-full",3,"ngModel","ngModelChan
ge"],["Title","ngModel"],["for","SubTitle",1,"label","block"],["pInputText","","id","SubTitle","name","SubTitle",1,"mb-2","form-control","w-full",3,"ngModel","ngModelChange"],["SubTitle","ngModel"],["for","Inetref",1,"label","block"],["pInputText","","id","Inetref","name","Inetref",1,"mb-2","form-control","w-full",3,"ngModel","ngModelChange"],["Inetref","ngModel"],["for","Description",1,"label","block"],["pInputTextarea","","id","Description","name","Description",1,"mb-2","form-control","w-full",3,"rows","cols","ngModel","ngModelChange"],["Description","ngModel"],["for","Season",1,"label","block"],["name","Season","id","Season",3,"ngModel","showButtons","min","max","step","ngModelChange"],["for","Episode",1,"label","block"],["name","Episode","id","Episode",3,"ngModel","showButtons","min","max","step","ngModelChange"],["for","ReleaseDate",1,"label","block"],["dateFormat","yy-mm-dd","name","ReleaseDate","id","ReleaseDate",3,"ngModel","ngModelChange"],["for","FileName",1,"label","block
"],["pTemplate","footer"],[3,"header","visible","modal","visibleChange"],["styleClass","p-button-primary",1,"p-1",3,"label","onClick"],[4,"ngFor","ngForOf"],["inputId","showAllVideos","name","showAllVideos",3,"ngModel","binary","label","ngModelChange","onChange"],["showAll","ngModel"],[4,"ngIf","ngIfElse"],["refreshBn",""],["pSortableColumn","Title",1,"p-1",2,"flex-basis","30%"],["field","Title"],[1,"p-1",2,"flex-basis","3%"],[1,"p-1",2,"flex-basis","30%"],[1,"p-1",2,"flex-basis","6%"],["pSortableColumn","ReleaseDate",1,"justify-content-end","p-1",2,"flex-basis","12%"],["field","ReleaseDate"],[1,"justify-content-end","p-1",2,"flex-basis","10%"],["target","_blank"],[1,"pi","pi-download"],["pButton","","pRipple","","icon","pi
pi-ellipsis-v",1,"p-button-text","p-button-primary",3,"disabled"],["pButton","","pRipple","","icon","pi
pi-refresh",1,"p-button-text",".p-button-success",3,"pTooltip","click"],[1,"p-1","overflow-hidden",2,"flex-basis","30%"],["title",""],["class","pi
pi-eye",4,"n
gIf"],["tooltipPosition","top",1,"p-1","overflow-hidden",2,"flex-basis","30%",3,"pTooltip"],[4,"ngIf"],[1,"justify-content-end","p-1",2,"flex-basis","12%"],[3,"innerHTML"],["pButton","","pRipple","","icon","pi
pi-folder",1,"p-button-text","p-button-primary",3,"label","click"],[1,"pi","pi-eye"],["target","_blank","tooltipPosition","left",3,"href","pTooltip"],[1,"pi","pi-download","text-primary"],["pButton","","pRipple","","icon","pi
pi-ellipsis-v",1,"p-button-text","p-button-primary",3,"click"],[1,"col-12",2,"text-align","left"],["severity","success",3,"text",4,"ngIf"],["severity","error",3,"text",4,"ngIf"],["icon","pi
pi-times-circle","styleClass","p-button-warning",3,"label","onClick"],["icon","pi
pi-check-circle","styleClass","p-button-success",3,"label","disabled","onClick"],["severity","success",3,"text"],["severity","error",3,"text"],["icon","pi
pi-times-circle","styleClass","p-button-danger",3,"label","onClick"],["icon","pi
pi-check-circle","styleClass","p-button-success",3,"l
abel","onClick"]],template:function(e,n){1&e&&(l(0,"div")(1,"div",0),k(2,"p-toast",1),c(),l(3,"h2"),g(4),m(5,"translate"),c(),l(6,"div",2),k(7,"p-menu",3,4),l(9,"p-table",5,6),C("onLazyLoad",function(r){return
n.loadLazy(r)}),_(11,Nae,0,0,"ng-template",7),_(12,Gae,36,28,"ng-template",8),_(13,Qae,17,9,"ng-template",9),c()(),l(14,"form",10,11)(16,"p-dialog",12),C("visibleChange",function(r){return
n.displayMetadataDlg=r}),m(17,"translate"),l(18,"div",13)(19,"label",14),g(20),m(21,"translate"),c(),l(22,"input",15,16),C("ngModelChange",function(r){return
n.video.Title=r}),c()(),l(24,"div",13)(25,"label",17),g(26),m(27,"translate"),c(),l(28,"input",18,19),C("ngModelChange",function(r){return
n.video.SubTitle=r}),c()(),l(30,"div",13)(31,"label",20),g(32),m(33,"translate"),c(),l(34,"input",21,22),C("ngModelChange",function(r){return
n.video.Inetref=r}),c()(),l(36,"div",13)(37,"label",23),g(38),m(39,"translate"),c(),l(40,"textarea",24,25),C("ngModelChange",function(r){return
n.video.Descrip
tion=r}),c()(),l(42,"div",13)(43,"label",26),g(44),m(45,"translate"),c(),l(46,"p-inputNumber",27),C("ngModelChange",function(r){return
n.video.Season=r}),c()(),l(47,"div",13)(48,"label",28),g(49),m(50,"translate"),c(),l(51,"p-inputNumber",29),C("ngModelChange",function(r){return
n.video.Episode=r}),c()(),l(52,"div",13)(53,"label",30),g(54),m(55,"translate"),c(),l(56,"p-calendar",31),C("ngModelChange",function(r){return
n.video.ReleaseDate=r}),c()(),l(57,"div",13)(58,"label",32),g(59),m(60,"translate"),c(),l(61,"pre"),g(62),c()(),_(63,Zae,7,9,"ng-template",33),c(),l(64,"p-dialog",34),C("visibleChange",function(r){return
n.displayUnsaved=r}),m(65,"translate"),l(66,"p"),g(67),m(68,"translate"),c(),_(69,Xae,4,6,"ng-template",33),c()()()),2&e&&(a(4),S(f(5,46,"dashboard.videos.heading")),a(3),p("popup",!0)("model",n.menuToShow),a(2),p("value",n.videos)("scrollable",!0)("virtualScroll",!0)("rows",50)("lazy",!0)("rowHover",!0),a(7),q(A(70,ele)),x("header",f(17,48,"dashboard.recordings.edit_
metadata")),p("visible",n.displayMetadataDlg)("modal",!0)("closable",!1)("closeOnEscape",!1),a(4),S(f(21,50,"dashboard.recordings.title")),a(2),p("ngModel",n.video.Title),a(4),S(f(27,52,"dashboard.recordings.subtitle")),a(2),p("ngModel",n.video.SubTitle),a(4),S(f(33,54,"dashboard.recordings.inetref")),a(2),p("ngModel",n.video.Inetref),a(4),S(f(39,56,"dashboard.recordings.description")),a(2),p("rows",5)("cols",30)("ngModel",n.video.Description),a(4),S(f(45,58,"dashboard.recordings.season")),a(2),p("ngModel",n.video.Season)("showButtons",!0)("min",1)("max",99)("step",1),a(3),S(f(50,60,"dashboard.recordings.episode")),a(2),p("ngModel",n.video.Episode)("showButtons",!0)("min",1)("max",99)("step",1),a(3),S(f(55,62,"dashboard.videos.releasedate")),a(2),p("ngModel",n.video.ReleaseDate),a(3),S(f(60,64,"dashboard.recordings.filename_label")),a(3),S(n.video.FileName),a(2),x("header",f(65,66,"common.unsaved_heading")),p("visible",n.displayUnsaved)("modal",!0),a(3),S(f(68,68,"common.unsaved_mes
sage")))},directives:[Td,sS,Dn,ne,ve,at,sn,Te,_e,Q,Go,On,bt,Kt,yd,wd,ze,Ue,He,bn,Ye,tS,pt,xr,qe],pipes:[ce],styles:[""]}),t})(),nle=(()=>{class
t{}return t.\u0275fac=function(e){return
new(e||t)},t.\u0275mod=he({type:t}),t.\u0275inj=ue({imports:[[vn.forChild([{path:"dashboard",component:oS,children:[{path:"status",component:_oe},{path:"channel-editor",component:bS},{path:"program-guide",component:CS},{path:"recordings",component:Foe},{path:"upcoming",component:wae},{path:"recrules",component:Lae},{path:"videos",component:tle}]}])],vn]}),t})();function
ile(t,i){1&t&&(l(0,"tr")(1,"th",7),g(2),m(3,"translate"),c(),l(4,"th",8),g(5),m(6,"translate"),c(),k(7,"th",9),l(8,"th",10),g(9),m(10,"translate"),c(),l(11,"th",11),g(12),m(13,"translate"),c(),l(14,"th",12),g(15),m(16,"translate"),c(),l(17,"th",7),g(18),m(19,"translate"),c(),l(20,"th",13),g(21),m(22,"translate"),c(),l(23,"th",14),g(24),m(25,"translate"),c(),l(26,"th",15),k(27,"button",16),c()()),2&t&&(a(2),T("
",f(3,9,"dashboard.upcomi
ng.date")," "),a(3),T("
",f(6,11,"dashboard.upcoming.time")," "),a(4),T("
",f(10,13,"dashboard.recordings.title"),""),a(3),S(f(13,15,"dashboard.recordings.subtitle")),a(3),S(f(16,17,"dashboard.recordings.seas_ep")),a(3),T("
",f(19,19,"dashboard.recordings.orig_airdate"),"
"),a(3),S(f(22,21,"dashboard.recordings.channel")),a(3),T("
",f(25,23,"dashboard.upcoming.status"),"
"),a(3),p("disabled",!0))}function
sle(t,i){if(1&t&&(l(0,"div"),g(1),c()),2&t){const
e=d().$implicit;a(1),We("
",e.Season,"x",e.Episode,"")}}const
rle=function(){return["WillRecord","Recording","Recorded"]};function
ole(t,i){if(1&t&&(l(0,"div",28)(1,"b"),g(2),c()()),2&t){const
e=d().$implicit,n=d();p("ngClass",A(2,rle).indexOf(e.Recording.StatusName)>-1?"bg-green-500":"bg-pink-500"),a(2),S(n.dataService.recStatusText[e.Recording.StatusName])}}function
ale(t,i){if(1&t){const
e=I();l(0,"tr",17)(1,"td",18),k(2,"div",19),c(),l(3,"td",20),g(4),c(),l(5,"td",21),g(6),m(7,"number"),c(),l(8,"td",22),g(9),c(),l(10,"td",23),g(
11),c(),l(12,"td",12),_(13,sle,2,2,"div",24),c(),l(14,"td",7),k(15,"div",19),c(),l(16,"td",13),g(17),c(),l(18,"td",14),_(19,ole,3,3,"div",25),c(),l(20,"td",26)(21,"button",27),C("click",function(){const
r=v(e).$implicit;return
d().updateRecRule(r)}),m(22,"translate"),c()()()}if(2&t){const
e=i.$implicit,n=d();p("ngClass",n.getClasses(e)),a(2),p("innerHTML",n.formatStartDate(e),Bt),a(2),T("
",n.formatStartTime(e),""),a(2),T("
",Dt(7,14,n.getDuration(e),"1.0-0")," min"),a(3),T("
",e.Title,""),a(1),x("pTooltip",e.Description),a(1),T("
",e.SubTitle.slice(0,50),""),a(2),p("ngIf",e.Season>0||e.Episode>0),a(2),p("innerHTML",n.formatAirDate(e),Bt),a(2),We("
",e.Channel.ChanNum,"
",e.Channel.CallSign,""),a(2),p("ngIf",e.Recording),a(2),x("pTooltip",f(22,17,"dashboard.recordings.edit_rule")),p("disabled",e.Recording&&7==e.Recording.RecType)}}function
lle(t,i){1&t&&(k(0,"p-message",33),m(1,"translate")),2&t&&x("text",f(1,1,"common.networkfail"))}function
cle(t,i){if(1&t){const e=I();l(0,"div",2
9),_(1,lle,2,3,"p-message",30),c(),l(2,"p-button",31),C("onClick",function(){return
v(e),d().displayStop=!1}),m(3,"translate"),c(),l(4,"p-button",32),C("onClick",function(){v(e);const
s=d();return s.stopRecording(s.program)}),m(5,"translate"),c()}if(2&t){const
e=d();a(1),p("ngIf",e.errorCount>0),a(1),x("label",f(3,3,"common.close")),a(2),x("label",f(5,5,"dashboard.recordings.stop_recording"))}}let
ule=(()=>{class
t{constructor(e,n,s){this.dataService=e,this.dvrService=n,this.utility=s,this.programs=[],this.displayStop=!1,this.successCount=0,this.errorCount=0,this.regex=/[^a-z0-9]/g}ngOnInit(){}formatStartDate(e){return
this.utility.formatDate(e.StartTime,!0)}formatAirDate(e){return
e.Airdate?this.utility.formatDate(e.Airdate+"
00:00",!0):""}formatStartTime(e){let n=new
Date(e.StartTime).getTime();return(new Date(n).toLocaleTimeString()+"
").replace(/:.. /,"
")}getClasses(e){return["guide_type_"+e.CatType,"guide_cat_"+e.Category.toLowerCase().replace(this.regex,"_"),"guide_type_defau
lt"]}getDuration(e){let n=new Date(e.StartTime).getTime();return(new
Date(e.EndTime).getTime()-n)/6e4}updateRecRule(e){this.inter.sched&&this.inter.sched.open(e)}override(e){this.inter.sched&&(7==e.Recording.RecType?this.inter.sched.open(e):this.inter.sched.open(e,void
0,{Type:"Override
Recording"}))}stopRequest(e){e.Recording.RecordId&&(this.program=e,this.displayStop=!0)}stopRecording(e){this.errorCount=0,this.dvrService.StopRecording(e.Recording.RecordedId).subscribe({next:n=>{n.bool?(this.displayStop=!1,setTimeout(()=>this.inter.summaryComponent.refresh(),3e3)):this.errorCount++},error:n=>{this.errorCount++}})}}return
t.\u0275fac=function(e){return
new(e||t)(D(Ll),D(jo),D(cs))},t.\u0275cmp=z({type:t,selectors:[["app-programs"]],inputs:{programs:"programs",inter:"inter"},decls:17,vars:19,consts:[[2,"height","90vh"],["scrollHeight","flex","styleClass","p-datatable-striped","responsiveLayout","scroll",3,"value","scrollable","rowHover"],["pTemplate","header"],["pTemplate","body"],[3
,"header","visible","modal","draggable","resizable","visibleChange"],["pTemplate","footer"],[3,"inter"],[1,"justify-content-end","p-1",2,"flex-basis","8%"],[1,"justify-content-end","p-1",2,"flex-basis","6%"],[1,"justify-content-end","pl-1","pr-3","pt-1","pb-1",2,"flex-basis","7%"],[1,"p-1",2,"flex-basis","12%"],[1,"p-1",2,"flex-basis","18%"],[1,"p-1",2,"flex-basis","4%"],[1,"p-1",2,"flex-basis","10%"],[1,"p-1",2,"flex-basis","7%"],[1,"p-1",2,"flex-basis","2%"],["pButton","","pRipple","","icon","pi
pi-pencil",1,"p-button-text","p-button-primary",3,"disabled"],[3,"ngClass"],[1,"justify-content-end","p-1","overflow-hidden",2,"flex-basis","8%"],[3,"innerHTML"],[1,"justify-content-end","p-1","overflow-hidden",2,"flex-basis","6%"],[1,"justify-content-end","pl-1","pr-3","pt-1","pb-1","overflow-hidden",2,"flex-basis","7%"],[1,"p-1","overflow-hidden",2,"flex-basis","12%"],["tooltipPosition","top",1,"p-1","overflow-hidden",2,"flex-basis","18%",3,"pTooltip"],[4,"ngIf"],["class","text-white",3,
"ngClass",4,"ngIf"],[1,"p-1",2,"flex-basis","2%","background","var(--surface-card)"],["pButton","","pRipple","","icon","pi
pi-pencil","tooltipPosition","left",1,"p-button-text","p-button-primary",3,"pTooltip","disabled","click"],[1,"text-white",3,"ngClass"],[1,"col-12",2,"text-align","left"],["severity","error",3,"text",4,"ngIf"],["icon","pi
pi-times-circle","styleClass","p-button-warning",3,"label","onClick"],["icon","pi
pi-check-circle","styleClass","p-button-danger",3,"label","onClick"],["severity","error",3,"text"]],template:function(e,n){1&e&&(l(0,"div",0)(1,"p-table",1),_(2,ile,28,25,"ng-template",2),_(3,ale,23,19,"ng-template",3),c(),l(4,"p-dialog",4),C("visibleChange",function(r){return
n.displayStop=r}),m(5,"translate"),l(6,"h2"),g(7),m(8,"translate"),c(),l(9,"p"),g(10),m(11,"translate"),k(12,"br"),l(13,"b"),g(14),c()(),_(15,cle,6,7,"ng-template",5),c(),k(16,"app-schedule",6),c()),2&e&&(a(1),p("value",n.programs)("scrollable",!0)("rowHover",!0),a(3),x("header",f(5,13,"dashb
oard.recordings.stop_recording")),p("visible",n.displayStop)("modal",!0)("draggable",!1)("resizable",!1),a(3),S(f(8,15,"settings.common.ru_sure")),a(3),T("",f(11,17,"dashboard.recordings.stop_details"),"
"),a(4),We(" ",null==n.program?null:n.program.Title,":
",null==n.program?null:n.program.SubTitle,""),a(2),p("inter",n.inter))},directives:[Dn,ne,On,bt,Le,Kt,Q,bn,qe,ve,Rd],pipes:[ce,eu],styles:[".type_series[_ngcontent-%COMP%]{background-color:#00008b;color:#fff}.type_tvshow[_ngcontent-%COMP%]{background-color:#2f4f4f;color:#fff}.type_movie[_ngcontent-%COMP%]{background-color:#8a2be2;color:#fff}.type_sports[_ngcontent-%COMP%]{background-color:#8b0000;color:#fff}"]}),t})();function
dle(t,i){1&t&&(g(0),m(1,"translate")),2&t&&T("
",f(1,1,"dashboard.guide.typecolors")," ")}const
ple=function(t){return[t,"guide_type_default"]};function
hle(t,i){if(1&t&&(l(0,"div",4)(1,"div",5),g(2),c()()),2&t){const
e=i.$implicit;a(1),p("ngClass",U(2,ple,"guide_type_"+e)),a(1),T("
\xa0",e,"")}}function m
le(t,i){1&t&&(g(0),m(1,"translate")),2&t&&T("
",f(1,1,"dashboard.guide.catcolors")," ")}const
fle=function(t){return[t,"px-1"]};function
gle(t,i){if(1&t&&(l(0,"div",4)(1,"div",5),g(2),c()()),2&t){const
e=i.$implicit,n=d();a(1),p("ngClass",U(2,fle,"guide_cat_"+e.toLowerCase().replace(n.regex,"_"))),a(1),T("
",e,"")}}let _le=(()=>{class
t{constructor(){this.catTypes=[],this.categories=[],this.regex=/[^a-z0-9]/g}ngOnInit(){let
e=new Set,n=new
Set;null!=this.programGuide?this.programGuide.ProgramGuide.Channels.forEach(r=>{r.Programs.forEach(o=>{o.CatType&&e.add(o.CatType),o.Category&&n.add(o.Category)})}):null!=this.listPrograms&&this.listPrograms.forEach(r=>{r.CatType&&e.add(r.CatType),r.Category&&n.add(r.Category)}),this.catTypes=[];let
s=e.values();for(;;){let
r=s.next();if(r.done)break;this.catTypes.push(r.value)}for(this.categories=[],s=n.values();;){let
r=s.next();if(r.done)break;this.categories.push(r.value)}this.catTypes.sort(),this.catTypes.push("default"),this.categories.sort(
)}}return t.\u0275fac=function(e){return
new(e||t)},t.\u0275cmp=z({type:t,selectors:[["app-legend"]],inputs:{programGuide:"programGuide",listPrograms:"listPrograms"},decls:20,vars:11,consts:[[1,"flex"],["layout","grid",3,"value"],["pTemplate","header"],["pTemplate","gridItem"],[1,"md:col-2","px-3","py-1"],[3,"ngClass"]],template:function(e,n){1&e&&(l(0,"div",0)(1,"div")(2,"p-dataView",1),_(3,dle,2,3,"ng-template",2),_(4,hle,3,4,"ng-template",3),c(),l(5,"p-dataView",1),_(6,mle,2,3,"ng-template",2),_(7,gle,3,4,"ng-template",3),c(),l(8,"p"),g(9),m(10,"translate"),k(11,"br"),g(12),m(13,"translate"),k(14,"br"),g(15),m(16,"translate"),l(17,"code"),g(18,"/usr/share/mythtv/html/assets/guidecolors.css"),c(),g(19,"\xa0."),c()()()),2&e&&(a(2),p("value",n.catTypes),a(3),p("value",n.categories),a(4),S(f(10,5,"dashboard.guide.color_includes")),a(3),T("
",f(13,7,"dashboard.guide.color_expl"),""),a(3),T("
",f(16,9,"dashboard.guide.color_customize"),""))},directives:[LT,ne,Le],pipes:[ce],styles:[""]
}),t})();function ble(t){return new WO(t)}let vle=(()=>{class t{}return
t.\u0275fac=function(e){return
new(e||t)},t.\u0275mod=he({type:t,bootstrap:[VW]}),t.\u0275inj=ue({providers:[],imports:[[qy,IO,TW,UF,Mu,UA,sW,$O.forRoot({defaultLanguage:"en_US",loader:{provide:nl,useFactory:ble,deps:[Bi]}}),k$,eX,nle]]}),t})();Wi(CS,[Q,Ot,Te,_e,Kt,xr,Ye,On,bt,Go,K2,LT,ne,OX,MX,at,LX,ule,Rd,bn,_le],[ce]),Wi(hS,[Ne,ve,bn,os,Te,_e,ne,Q,qe,Ss,at,Ts,gr,Ja,jX,wS,xte,Fte,jte,ene,cne,jie,sse,gse,kse,Bse,km],[ce]),Wi(wS,[ze,Ue,He,Ne,ne,Q,Ot,Te,_e,_n,Ye,pt,sn,Ui,ve,bn,os,Kt,qe,kd,Al,wg,Pl],[ce]),Wi(Al,[ze,Ue,He,Ne,ne,Ye,Te,_e,pt,Ot,_n,Q,Dn,$2,DU,Ui,ve,bn,os,kd,Al,wg,Pl],[ce]),Wi(Pl,[ze,Ue,He,Ne,ne,Ye,Te,_e,pt,Ui,Q,ve,bn,os,kd,Al,wg,Pl],[ce]),Wi(_S,[Ne,Ss,at,Ts,ne,Q,kS,ve],[ce]),Wi(kS,[ze,Ue,He,Ne,ne,Q,gr,Ja,pt,Te,_e,Sd,Ye,Ot,_n,sn,Ui,Mre,ve,bn,qe],[ce]),Wi(mS,[Ne,Ss,at,Ts,ne,Q,ES,ve],[ce]),Wi(ES,[ve,bn,Ye,Te,_e,ne,Q,qe,Ss,at,Ts,Lie],[ce]),function
QR(){if(ZC)throw new Error("Cannot enable prod mode after
platform
setup.");YC=!1}(),nO().bootstrapModule(vle).catch(t=>console.error(t))}},Is=>{Is(Is.s=452)}]);
+\ No newline at end of file
++"use
strict";(self.webpackChunkbackend=self.webpackChunkbackend||[]).push([[179],{452:()=>{function
Is(t){return"function"==typeof t}let Qo=!1;const di={Promise:void 0,set
useDeprecatedSynchronousErrorHandling(t){if(t){const i=new
Error;console.warn("DEPRECATED! RxJS was set to use deprecated synchronous error
handling behavior by code at: \n"+i.stack)}else Qo&&console.log("RxJS:
Back to a better error behavior. Thank you. <3");Qo=t},get
useDeprecatedSynchronousErrorHandling(){return Qo}};function
Es(t){setTimeout(()=>{throw t},0)}const
Fl={closed:!0,next(t){},error(t){if(di.useDeprecatedSynchronousErrorHandling)throw
t;Es(t)},complete(){}},Nr=Array.isArray||(t=>t&&"number"==typeof
t.length);function Ld(t){return null!==t&&"object"==typeof t}const
Nl=(()=>{function t(i){return Error.call(this),this.message=i?`${i.length} errors
occurred during unsubscription:\n${i.map((e,n)=>`${n+1})
${e.toString()}`).join("\n
")}`:"",this.name="UnsubscriptionError",this.errors=i,this}return
t.pro
totype=Object.create(Error.prototype),t})();class
Et{constructor(i){this.closed=!1,this._parentOrParents=null,this._subscriptions=null,i&&(this._ctorUnsubscribe=!0,this._unsubscribe=i)}unsubscribe(){let
i;if(this.closed)return;let{_parentOrParents:e,_ctorUnsubscribe:n,_unsubscribe:s,_subscriptions:r}=this;if(this.closed=!0,this._parentOrParents=null,this._subscriptions=null,e
instanceof Et)e.remove(this);else if(null!==e)for(let
o=0;o<e.length;++o)e[o].remove(this);if(Is(s)){n&&(this._unsubscribe=void
0);try{s.call(this)}catch(o){i=o instanceof Nl?Dg(o.errors):[o]}}if(Nr(r)){let
o=-1,u=r.length;for(;++o<u;){const
h=r[o];if(Ld(h))try{h.unsubscribe()}catch(b){i=i||[],b instanceof
Nl?i=i.concat(Dg(b.errors)):i.push(b)}}}if(i)throw new Nl(i)}add(i){let e=i;if(!i)return
Et.EMPTY;switch(typeof i){case"function":e=new
Et(i);case"object":if(e===this||e.closed||"function"!=typeof
e.unsubscribe)return e;if(this.closed)return e.unsubscribe(),e;if(!(e instanceof
Et)){const r=e;e=new Et,e._subsc
riptions=[r]}break;default:throw new Error("unrecognized teardown "+i+"
added to
Subscription.")}let{_parentOrParents:n}=e;if(null===n)e._parentOrParents=this;else
if(n instanceof Et){if(n===this)return
e;e._parentOrParents=[n,this]}else{if(-1!==n.indexOf(this))return e;n.push(this)}const
s=this._subscriptions;return null===s?this._subscriptions=[e]:s.push(e),e}remove(i){const
e=this._subscriptions;if(e){const n=e.indexOf(i);-1!==n&&e.splice(n,1)}}}var
t;function Dg(t){return t.reduce((i,e)=>i.concat(e instanceof
Nl?e.errors:e),[])}Et.EMPTY=((t=new Et).closed=!0,t);const Vl="function"==typeof
Symbol?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random();class yt
extends
Et{constructor(i,e,n){switch(super(),this.syncErrorValue=null,this.syncErrorThrown=!1,this.syncErrorThrowable=!1,this.isStopped=!1,arguments.length){case
0:this.destination=Fl;break;case
1:if(!i){this.destination=Fl;break}if("object"==typeof i){i instanceof
yt?(this.syncErrorThrowable=i.syncErrorThrowable,this.destin
ation=i,i.add(this)):(this.syncErrorThrowable=!0,this.destination=new
Mg(this,i));break}default:this.syncErrorThrowable=!0,this.destination=new
Mg(this,i,e,n)}}[Vl](){return this}static create(i,e,n){const s=new yt(i,e,n);return
s.syncErrorThrowable=!1,s}next(i){this.isStopped||this._next(i)}error(i){this.isStopped||(this.isStopped=!0,this._error(i))}complete(){this.isStopped||(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe())}_next(i){this.destination.next(i)}_error(i){this.destination.error(i),this.unsubscribe()}_complete(){this.destination.complete(),this.unsubscribe()}_unsubscribeAndRecycle(){const{_parentOrParents:i}=this;return
this._parentOrParents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parentOrParents=i,this}}class
Mg extends yt{constructor(i,e,n,s){super(),this._parentSubscriber=i;let
r,o=this;Is(e)?r=e:e&&(r=e.next,n=e.error,s=e.complete,e!==Fl&&(o=Object.create(e),Is(o.unsubscribe)&&this.add(o.un
subscribe.bind(o)),o.unsubscribe=this.unsubscribe.bind(this))),this._context=o,this._next=r,this._error=n,this._complete=s}next(i){if(!this.isStopped&&this._next){const{_parentSubscriber:e}=this;di.useDeprecatedSynchronousErrorHandling&&e.syncErrorThrowable?this.__tryOrSetError(e,this._next,i)&&this.unsubscribe():this.__tryOrUnsub(this._next,i)}}error(i){if(!this.isStopped){const{_parentSubscriber:e}=this,{useDeprecatedSynchronousErrorHandling:n}=di;if(this._error)n&&e.syncErrorThrowable?(this.__tryOrSetError(e,this._error,i),this.unsubscribe()):(this.__tryOrUnsub(this._error,i),this.unsubscribe());else
if(e.syncErrorThrowable)n?(e.syncErrorValue=i,e.syncErrorThrown=!0):Es(i),this.unsubscribe();else{if(this.unsubscribe(),n)throw
i;Es(i)}}}complete(){if(!this.isStopped){const{_parentSubscriber:i}=this;if(this._complete){const
e=()=>this._complete.call(this._context);di.useDeprecatedSynchronousErrorHandling&&i.syncErrorThrowable?(this.__tryOrSetError(i,e),this.unsubscribe()):(this.__t
ryOrUnsub(e),this.unsubscribe())}else
this.unsubscribe()}}__tryOrUnsub(i,e){try{i.call(this._context,e)}catch(n){if(this.unsubscribe(),di.useDeprecatedSynchronousErrorHandling)throw
n;Es(n)}}__tryOrSetError(i,e,n){if(!di.useDeprecatedSynchronousErrorHandling)throw new
Error("bad call");try{e.call(this._context,n)}catch(s){return
di.useDeprecatedSynchronousErrorHandling?(i.syncErrorValue=s,i.syncErrorThrown=!0,!0):(Es(s),!0)}return!1}_unsubscribe(){const{_parentSubscriber:i}=this;this._context=null,this._parentSubscriber=null,i.unsubscribe()}}const
Jo="function"==typeof
Symbol&&Symbol.observable||"@@observable";function Bl(t){return t}let
Je=(()=>{class
t{constructor(e){this._isScalar=!1,e&&(this._subscribe=e)}lift(e){const n=new
t;return n.source=this,n.operator=e,n}subscribe(e,n,s){const{operator:r}=this,o=function
FS(t,i,e){if(t){if(t instanceof yt)return t;if(t[Vl])return t[Vl]()}return t||i||e?new
yt(t,i,e):new yt(Fl)}(e,n,s);if(o.add(r?r.call(o,this.source):this.source||di.useD
eprecatedSynchronousErrorHandling&&!o.syncErrorThrowable?this._subscribe(o):this._trySubscribe(o)),di.useDeprecatedSynchronousErrorHandling&&o.syncErrorThrowable&&(o.syncErrorThrowable=!1,o.syncErrorThrown))throw
o.syncErrorValue;return o}_trySubscribe(e){try{return
this._subscribe(e)}catch(n){di.useDeprecatedSynchronousErrorHandling&&(e.syncErrorThrown=!0,e.syncErrorValue=n),function
PS(t){for(;t;){const{closed:i,destination:e,isStopped:n}=t;if(i||n)return!1;t=e&&e
instanceof yt?e:null}return!0}(e)?e.error(n):console.warn(n)}}forEach(e,n){return
new(n=Ig(n))((s,r)=>{let
o;o=this.subscribe(u=>{try{e(u)}catch(h){r(h),o&&o.unsubscribe()}},r,s)})}_subscribe(e){const{source:n}=this;return
n&&n.subscribe(e)}[Jo](){return this}pipe(...e){return 0===e.length?this:function
kg(t){return 0===t.length?Bl:1===t.length?t[0]:function(e){return
t.reduce((n,s)=>s(n),e)}}(e)(this)}toPromise(e){return new(e=Ig(e))((n,s)=>{let
r;this.subscribe(o=>r=o,o=>s(o),()=>n(r))})}}return t.create=i=>new t(i),t}
)();function Ig(t){if(t||(t=di.Promise||Promise),!t)throw new Error("no Promise impl
found");return t}const nr=(()=>{function t(){return
Error.call(this),this.message="object
unsubscribed",this.name="ObjectUnsubscribedError",this}return
t.prototype=Object.create(Error.prototype),t})();class Eg extends
Et{constructor(i,e){super(),this.subject=i,this.subscriber=e,this.closed=!1}unsubscribe(){if(this.closed)return;this.closed=!0;const
i=this.subject,e=i.observers;if(this.subject=null,!e||0===e.length||i.isStopped||i.closed)return;const
n=e.indexOf(this.subscriber);-1!==n&&e.splice(n,1)}}class Rg extends
yt{constructor(i){super(i),this.destination=i}}let ct=(()=>{class t extends
Je{constructor(){super(),this.observers=[],this.closed=!1,this.isStopped=!1,this.hasError=!1,this.thrownError=null}[Vl](){return
new Rg(this)}lift(e){const n=new Lg(this,this);return
n.operator=e,n}next(e){if(this.closed)throw new
nr;if(!this.isStopped){const{observers:n}=this,s=n.length,r=n.slice();for(let o=0;
o<s;o++)r[o].next(e)}}error(e){if(this.closed)throw new
nr;this.hasError=!0,this.thrownError=e,this.isStopped=!0;const{observers:n}=this,s=n.length,r=n.slice();for(let
o=0;o<s;o++)r[o].error(e);this.observers.length=0}complete(){if(this.closed)throw new
nr;this.isStopped=!0;const{observers:e}=this,n=e.length,s=e.slice();for(let
r=0;r<n;r++)s[r].complete();this.observers.length=0}unsubscribe(){this.isStopped=!0,this.closed=!0,this.observers=null}_trySubscribe(e){if(this.closed)throw
new nr;return super._trySubscribe(e)}_subscribe(e){if(this.closed)throw new nr;return
this.hasError?(e.error(this.thrownError),Et.EMPTY):this.isStopped?(e.complete(),Et.EMPTY):(this.observers.push(e),new
Eg(this,e))}asObservable(){const e=new Je;return e.source=this,e}}return
t.create=(i,e)=>new Lg(i,e),t})();class Lg extends
ct{constructor(i,e){super(),this.destination=i,this.source=e}next(i){const{destination:e}=this;e&&e.next&&e.next(i)}error(i){const{destination:e}=this;e&&e.error&&this.destination.er
ror(i)}complete(){const{destination:i}=this;i&&i.complete&&this.destination.complete()}_subscribe(i){const{source:e}=this;return
e?this.source.subscribe(i):Et.EMPTY}}function Vr(t){return
t&&"function"==typeof t.schedule}function et(t,i){return
function(n){if("function"!=typeof t)throw new TypeError("argument is not a
function. Are you looking for `mapTo()`?");return n.lift(new NS(t,i))}}class
NS{constructor(i,e){this.project=i,this.thisArg=e}call(i,e){return e.subscribe(new
VS(i,this.project,this.thisArg))}}class VS extends
yt{constructor(i,e,n){super(i),this.project=e,this.count=0,this.thisArg=n||this}_next(i){let
e;try{e=this.project.call(this.thisArg,i,this.count++)}catch(n){return void
this.destination.error(n)}this.destination.next(e)}}const Og=t=>i=>{for(let
e=0,n=t.length;e<n&&!i.closed;e++)i.next(t[e]);i.complete()},Hl=function
HS(){return"function"==typeof
Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}(),Ag=t=>t&&"number"==typeof
t.length&&"function"!=typeof t;funct
ion Pg(t){return!!t&&"function"!=typeof
t.subscribe&&"function"==typeof t.then}const
Od=t=>{if(t&&"function"==typeof t[Jo])return(t=>i=>{const
e=t[Jo]();if("function"!=typeof e.subscribe)throw new TypeError("Provided
object does not correctly implement Symbol.observable");return
e.subscribe(i)})(t);if(Ag(t))return
Og(t);if(Pg(t))return(t=>i=>(t.then(e=>{i.closed||(i.next(e),i.complete())},e=>i.error(e)).then(null,Es),i))(t);if(t&&"function"==typeof
t[Hl])return(t=>i=>{const e=t[Hl]();for(;;){let n;try{n=e.next()}catch(s){return
i.error(s),i}if(n.done){i.complete();break}if(i.next(n.value),i.closed)break}return"function"==typeof
e.return&&i.add(()=>{e.return&&e.return()}),i})(t);{const e=`You
provided ${Ld(t)?"an invalid object":`'${t}'`} where a stream was
expected. You can provide an Observable, Promise, Array, or Iterable.`;throw new
TypeError(e)}};function Ad(t,i){return new Je(e=>{const n=new Et;let s=0;return
n.add(i.schedule(function(){s!==t.length?(e.next(t[s++]),e.closed||n.
add(this.schedule())):e.complete()})),n})}function Mn(t,i){return i?function
KS(t,i){if(null!=t){if(function $S(t){return t&&"function"==typeof
t[Jo]}(t))return function US(t,i){return new Je(e=>{const n=new Et;return
n.add(i.schedule(()=>{const
s=t[Jo]();n.add(s.subscribe({next(r){n.add(i.schedule(()=>e.next(r)))},error(r){n.add(i.schedule(()=>e.error(r)))},complete(){n.add(i.schedule(()=>e.complete()))}}))})),n})}(t,i);if(Pg(t))return
function zS(t,i){return new Je(e=>{const n=new Et;return
n.add(i.schedule(()=>t.then(s=>{n.add(i.schedule(()=>{e.next(s),n.add(i.schedule(()=>e.complete()))}))},s=>{n.add(i.schedule(()=>e.error(s)))}))),n})}(t,i);if(Ag(t))return
Ad(t,i);if(function WS(t){return t&&"function"==typeof
t[Hl]}(t)||"string"==typeof t)return function jS(t,i){if(!t)throw new
Error("Iterable cannot be null");return new Je(e=>{const n=new Et;let
s;return n.add(()=>{s&&"function"==typeof
s.return&&s.return()}),n.add(i.schedule(()=>{s=t[Hl](),n.add(i.schedule(function(){if(e.cl
osed)return;let r,o;try{const u=s.next();r=u.value,o=u.done}catch(u){return void
e.error(u)}o?e.complete():(e.next(r),this.schedule())}))})),n})}(t,i)}throw new
TypeError((null!==t&&typeof t||t)+" is not observable")}(t,i):t
instanceof Je?t:new Je(Od(t))}class Yo extends
yt{constructor(i){super(),this.parent=i}_next(i){this.parent.notifyNext(i)}_error(i){this.parent.notifyError(i),this.unsubscribe()}_complete(){this.parent.notifyComplete(),this.unsubscribe()}}class
Zo extends
yt{notifyNext(i){this.destination.next(i)}notifyError(i){this.destination.error(i)}notifyComplete(){this.destination.complete()}}function
Xo(t,i){if(i.closed)return;if(t instanceof Je)return t.subscribe(i);let
e;try{e=Od(t)(i)}catch(n){i.error(n)}return e}function
yn(t,i,e=Number.POSITIVE_INFINITY){return"function"==typeof
i?n=>n.pipe(yn((s,r)=>Mn(t(s,r)).pipe(et((o,u)=>i(s,o,r,u))),e)):("number"==typeof
i&&(e=i),n=>n.lift(new QS(t,e)))}class
QS{constructor(i,e=Number.POSITIVE_INFINITY){this.project=i,this.conc
urrent=e}call(i,e){return e.subscribe(new JS(i,this.project,this.concurrent))}}class JS
extends
Zo{constructor(i,e,n=Number.POSITIVE_INFINITY){super(i),this.project=e,this.concurrent=n,this.hasCompleted=!1,this.buffer=[],this.active=0,this.index=0}_next(i){this.active<this.concurrent?this._tryNext(i):this.buffer.push(i)}_tryNext(i){let
e;const n=this.index++;try{e=this.project(i,n)}catch(s){return void
this.destination.error(s)}this.active++,this._innerSub(e)}_innerSub(i){const e=new
Yo(this),n=this.destination;n.add(e);const
s=Xo(i,e);s!==e&&n.add(s)}_complete(){this.hasCompleted=!0,0===this.active&&0===this.buffer.length&&this.destination.complete(),this.unsubscribe()}notifyNext(i){this.destination.next(i)}notifyComplete(){const
i=this.buffer;this.active--,i.length>0?this._next(i.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()}}function
ea(t=Number.POSITIVE_INFINITY){return yn(Bl,t)}function Pd(t,i){return i?Ad(t,i):new
Je(Og(t))}function Fd(){return funct
ion(i){return i.lift(new ZS(i))}}class
ZS{constructor(i){this.connectable=i}call(i,e){const{connectable:n}=this;n._refCount++;const
s=new XS(i,n),r=e.subscribe(s);return s.closed||(s.connection=n.connect()),r}}class XS
extends
yt{constructor(i,e){super(i),this.connectable=e}_unsubscribe(){const{connectable:i}=this;if(!i)return
void(this.connection=null);this.connectable=null;const e=i._refCount;if(e<=0)return
void(this.connection=null);if(i._refCount=e-1,e>1)return
void(this.connection=null);const{connection:n}=this,s=i._connection;this.connection=null,s&&(!n||s===n)&&s.unsubscribe()}}class
Fg extends
Je{constructor(i,e){super(),this.source=i,this.subjectFactory=e,this._refCount=0,this._isComplete=!1}_subscribe(i){return
this.getSubject().subscribe(i)}getSubject(){const
i=this._subject;return(!i||i.isStopped)&&(this._subject=this.subjectFactory()),this._subject}connect(){let
i=this._connection;return i||(this._isComplete=!1,i=this._connection=new
Et,i.add(this.source.subscribe(new t
x(this.getSubject(),this))),i.closed&&(this._connection=null,i=Et.EMPTY)),i}refCount(){return
Fd()(this)}}const ex=(()=>{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
tx extends
Rg{constructor(i,e){super(i),this.connectable=e}_error(i){this._unsubscribe(),super._error(i)}_complete(){this.connectable._isComplete=!0,this._unsubscribe(),super._complete()}_unsubscribe(){const
i=this.connectable;if(i){this.connectable=null;const
e=i._connection;i._refCount=0,i._subject=null,i._connection=null,e&&e.unsubscribe()}}}class
sx{constructor(i,e){this.subjectFactory=i,this.selector=e}call(i,e){const{selector:n}=this,s=this.subjectFactory(),r=n(s).subscribe(i);return
r.add(e.subscribe(s)),r}}function rx(){return new ct}
function wt(t){for(let i in t)if(t[i]===wt)return i;throw Error("Could not find
renamed property on target object.")}function Nd(t,i){for(const e in
i)i.hasOwnProperty(e)&&!t.hasOwnProperty(e)&&(t[e]=i[e])}function
ft(t){if("string"==typeof t)return
t;if(Array.isArray(t))return"["+t.map(ft).join(",
")+"]";if(null==t)return""+t;if(t.overriddenName)return`${t.overriddenName}`;if(t.name)return`${t.name}`;const
i=t.toString();if(null==i)return""+i;const
e=i.indexOf("\n");return-1===e?i:i.substring(0,e)}function Vd(t,i){return
null==t||""===t?null===i?"":i:null==i||""===i?t:t+"
"+i}const ax=wt({__forward_ref__:wt});function je(t){return
t.__forward_ref__=je,t.toString=function(){return ft(this())},t}function Ve(t){return
Ng(t)?t():t}function Ng(t){return"function"==typeof
t&&t.hasOwnProperty(ax)&&t.__forward_ref__===je}class re extends
Error{constructor(i,e){super(function Bd(t,i){return`NG0${Math.abs(t)}${i?":
"+i:""}`}(i,e)),this.code=i}}function
Ie(t){return"string"==typeof t?t:null==
t?"":String(t)}function wn(t){return"function"==typeof
t?t.name||t.toString():"object"==typeof
t&&null!=t&&"function"==typeof
t.type?t.type.name||t.type.toString():Ie(t)}function ql(t,i){const e=i?` in
${i}`:"";throw new re(-201,`No provider for ${wn(t)} found${e}`)}function
Jn(t,i){null==t&&function gt(t,i,e,n){throw new Error(`ASSERTION ERROR:
${t}`+(null==n?"":` [Expected=> ${e} ${n} ${i}
<=Actual]`))}(i,t,null,"!=")}function
X(t){return{token:t.token,providedIn:t.providedIn||null,factory:t.factory,value:void
0}}function ue(t){return{providers:t.providers||[],imports:t.imports||[]}}function
Hd(t){return Vg(t,Gl)||Vg(t,Hg)}function Vg(t,i){return
t.hasOwnProperty(i)?t[i]:null}function Bg(t){return
t&&(t.hasOwnProperty(qd)||t.hasOwnProperty(mx))?t[qd]:null}const
Gl=wt({\u0275prov:wt}),qd=wt({\u0275inj:wt}),Hg=wt({ngInjectableDef:wt}),mx=wt({ngInjectorDef:wt});var
xe=(()=>((xe=xe||{})[xe.Default=0]="Default",xe[xe.Host=1]="Host",xe[xe.Self=2]="Self",xe[xe.SkipSelf=4]="SkipSelf",xe[x
e.Optional=8]="Optional",xe))();let Gd;function Rs(t){const i=Gd;return
Gd=t,i}function qg(t,i,e){const n=Hd(t);return
n&&"root"==n.providedIn?void
0===n.value?n.value=n.factory():n.value:e&xe.Optional?null:void 0!==i?i:void
ql(ft(t),"Injector")}function Ls(t){return{toString:t}.toString()}var
Mi=(()=>((Mi=Mi||{})[Mi.OnPush=0]="OnPush",Mi[Mi.Default=1]="Default",Mi))(),ki=(()=>(function(t){t[t.Emulated=0]="Emulated",t[t.None=2]="None",t[t.ShadowDom=3]="ShadowDom"}(ki||(ki={})),ki))();const
gx="undefined"!=typeof
globalThis&&globalThis,_x="undefined"!=typeof
window&&window,bx="undefined"!=typeof
self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof
WorkerGlobalScope&&self,vt=gx||"undefined"!=typeof
global&&global||_x||bx,Br={},Tt=[],Ul=wt({\u0275cmp:wt}),Ud=wt({\u0275dir:wt}),zd=wt({\u0275pipe:wt}),Gg=wt({\u0275mod:wt}),ps=wt({\u0275fac:wt}),ta=wt({__NG_ELEMENT_ID__:wt});let
vx=0;function z(t){return Ls(()=>{const
e={},n={type:t.type,providersResolver:null,decls:t.decls,vars:t
.vars,factory: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===Mi.OnPush,directiveDefs:null,pipeDefs:null,selectors:t.selectors||Tt,viewQuery:t.viewQuery||null,features:t.features||null,data:t.data||{},encapsulation:t.encapsulation||ki.Emulated,id:"c",styles:t.styles||Tt,_:null,setInput:null,schemas:t.schemas||null,tView:null},s=t.directives,r=t.features,o=t.pipes;return
n.id+=vx++,n.inputs=$g(t.inputs,e),n.outputs=$g(t.outputs),r&&r.forEach(u=>u(n)),n.directiveDefs=s?()=>("function"==typeof
s?s():s).map(Ug):null,n.pipeDefs=o?()=>("function"==typeof
o?o():o).map(zg):null,n})}function Wi(t,i,e){const
n=t.\u0275cmp;n.directiveDefs=()=>i.map(Ug),n.pipeDefs=()=>e.map(zg)}function
Ug(t){return Tn(t)||function Os(t){return t[Ud]||n
ull}(t)}function zg(t){return function ir(t){return t[zd]||null}(t)}const jg={};function
he(t){return Ls(()=>{const
i={type:t.type,bootstrap:t.bootstrap||Tt,declarations:t.declarations||Tt,imports:t.imports||Tt,exports:t.exports||Tt,transitiveCompileScopes:null,schemas:t.schemas||null,id:t.id||null};return
null!=t.id&&(jg[t.id]=t.type),i})}function $g(t,i){if(null==t)return Br;const
e={};for(const n in t)if(t.hasOwnProperty(n)){let
s=t[n],r=s;Array.isArray(s)&&(r=s[1],s=s[0]),e[s]=n,i&&(i[s]=r)}return
e}const le=z;function
An(t){return{type:t.type,name:t.name,factory:null,pure:!1!==t.pure,onDestroy:t.type.prototype.ngOnDestroy||null}}function
Tn(t){return t[Ul]||null}function pi(t,i){const e=t[Gg]||null;if(!e&&!0===i)throw
new Error(`Type ${ft(t)} does not have '\u0275mod' property.`);return e}function
Ki(t){return Array.isArray(t)&&"object"==typeof t[1]}function
Ei(t){return Array.isArray(t)&&!0===t[1]}function Wd(t){return
0!=(8&t.flags)}function Wl(t){return 2==(2&t.flags)}functi
on Kl(t){return 1==(1&t.flags)}function Ri(t){return null!==t.template}function
Sx(t){return 0!=(512&t[2])}function ar(t,i){return
t.hasOwnProperty(ps)?t[ps]:null}class
Mx{constructor(i,e,n){this.previousValue=i,this.currentValue=e,this.firstChange=n}isFirstChange(){return
this.firstChange}}function fn(){return Kg}function Kg(t){return
t.type.prototype.ngOnChanges&&(t.setInput=Ix),kx}function kx(){const
t=Jg(this),i=null==t?void 0:t.current;if(i){const e=t.previous;if(e===Br)t.previous=i;else
for(let n in i)e[n]=i[n];t.current=null,this.ngOnChanges(i)}}function Ix(t,i,e,n){const
s=Jg(t)||function Ex(t,i){return
t[Qg]=i}(t,{previous:Br,current:null}),r=s.current||(s.current={}),o=s.previous,u=this.declaredInputs[e],h=o[u];r[u]=new
Mx(h&&h.currentValue,i,o===Br),t[n]=i}fn.ngInherit=!0;const
Qg="__ngSimpleChanges__";function Jg(t){return t[Qg]||null}let Zd;function
Xd(){return void 0!==Zd?Zd:"undefined"!=typeof document?document:void 0}function
$t(t){return!!t.listen}const Yg={createRe
nderer:(t,i)=>Xd()};function Yt(t){for(;Array.isArray(t);)t=t[0];return t}function
Ql(t,i){return Yt(i[t])}function Zn(t,i){return Yt(i[t.index])}function ep(t,i){return
t.data[i]}function zr(t,i){return t[i]}function Xn(t,i){const e=i[t];return
Ki(e)?e:e[0]}function Zg(t){return 4==(4&t[2])}function tp(t){return
128==(128&t[2])}function As(t,i){return null==i?null:t[i]}function
Xg(t){t[18]=0}function np(t,i){t[5]+=i;let
e=t,n=t[3];for(;null!==n&&(1===i&&1===e[5]||-1===i&&0===e[5]);)n[5]+=i,e=n,n=n[3]}const
Ee={lFrame:l_(null),bindingsEnabled:!0};function t_(){return Ee.bindingsEnabled}function
$(){return Ee.lFrame.lView}function tt(){return Ee.lFrame.tView}function v(t){return
Ee.lFrame.contextLView=t,t[8]}function rn(){let
t=n_();for(;null!==t&&64===t.type;)t=t.parent;return t}function n_(){return
Ee.lFrame.currentTNode}function Qi(t,i){const
e=Ee.lFrame;e.currentTNode=t,e.isParent=i}function ip(){return Ee.lFrame.isParent}function
sp(){Ee.lFrame.isParent=!1}function Fn(){const t=
Ee.lFrame;let
i=t.bindingRootIndex;return-1===i&&(i=t.bindingRootIndex=t.tView.bindingStartIndex),i}function
hs(){return Ee.lFrame.bindingIndex}function jr(){return Ee.lFrame.bindingIndex++}function
ms(t){const i=Ee.lFrame,e=i.bindingIndex;return i.bindingIndex=i.bindingIndex+t,e}function
Wx(t,i){const e=Ee.lFrame;e.bindingIndex=e.bindingRootIndex=t,rp(i)}function
rp(t){Ee.lFrame.currentDirectiveIndex=t}function r_(){return
Ee.lFrame.currentQueryIndex}function ap(t){Ee.lFrame.currentQueryIndex=t}function
Qx(t){const i=t[1];return 2===i.type?i.declTNode:1===i.type?t[6]:null}function
o_(t,i,e){if(e&xe.SkipSelf){let
s=i,r=t;for(;!(s=s.parent,null!==s||e&xe.Host||(s=Qx(r),null===s||(r=r[15],10&s.type))););if(null===s)return!1;i=s,t=r}const
n=Ee.lFrame=a_();return n.currentTNode=i,n.lView=t,!0}function Yl(t){const
i=a_(),e=t[1];Ee.lFrame=i,i.currentTNode=e.firstChild,i.lView=t,i.tView=e,i.contextLView=t,i.bindingIndex=e.bindingStartIndex,i.inI18n=!1}function
a_(){const t=Ee.lFrame,i=null
===t?null:t.child;return null===i?l_(t):i}function l_(t){const
i={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=i),i}function c_(){const t=Ee.lFrame;return
Ee.lFrame=t.parent,t.currentTNode=null,t.lView=null,t}const u_=c_;function Zl(){const
t=c_();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
Nn(){return Ee.lFrame.selectedIndex}function Ps(t){Ee.lFrame.selectedIndex=t}function
Vt(){const t=Ee.lFrame;return ep(t.tView,t.selectedIndex)}function Xl(t,i){for(let
e=i.directiveStart,n=i.directiveEnd;e<n;e++){const
r=t.data[e].type.prototype,{ngAfterContentInit:o,ngAfterContentChecked:u,ngAfterViewInit:h,ngAfte
rViewChecked:b,ngOnDestroy:y}=r;o&&(t.contentHooks||(t.contentHooks=[])).push(-e,o),u&&((t.contentHooks||(t.contentHooks=[])).push(e,u),(t.contentCheckHooks||(t.contentCheckHooks=[])).push(e,u)),h&&(t.viewHooks||(t.viewHooks=[])).push(-e,h),b&&((t.viewHooks||(t.viewHooks=[])).push(e,b),(t.viewCheckHooks||(t.viewCheckHooks=[])).push(e,b)),null!=y&&(t.destroyHooks||(t.destroyHooks=[])).push(e,y)}}function
ec(t,i,e){p_(t,i,3,e)}function tc(t,i,e,n){(3&t[2])===e&&p_(t,i,e,n)}function
lp(t,i){let e=t[2];(3&e)===i&&(e&=2047,e+=1,t[2]=e)}function
p_(t,i,e,n){const r=null!=n?n:-1,o=i.length-1;let u=0;for(let h=void
0!==n?65535&t[18]:0;h<o;h++)if("number"==typeof
i[h+1]){if(u=i[h],null!=n&&u>=n)break}else
i[h]<0&&(t[18]+=65536),(u<r||-1==r)&&(iD(t,e,i,h),t[18]=(4294901760&t[18])+h+2),h++}function
iD(t,i,e,n){const
s=e[n]<0,r=e[n+1],u=t[s?-e[n]:e[n]];if(s){if(t[2]>>11<t[18]>>16&&(3&t[2])===i){t[2]+=2048;try{r.call(u)}finally{}}}else
try{r.call(u)}finally{}}class oa{constructor(i,e,n){this.fac
tory=i,this.resolving=!1,this.canSeeViewProviders=e,this.injectImpl=n}}function
nc(t,i,e){const n=$t(t);let s=0;for(;s<e.length;){const
r=e[s];if("number"==typeof r){if(0!==r)break;s++;const
o=e[s++],u=e[s++],h=e[s++];n?t.setAttribute(i,u,h,o):i.setAttributeNS(o,u,h)}else{const
o=r,u=e[++s];up(o)?n&&t.setProperty(i,o,u):n?t.setAttribute(i,o,u):i.setAttribute(o,u),s++}}return
s}function h_(t){return 3===t||4===t||6===t}function up(t){return
64===t.charCodeAt(0)}function
ic(t,i){if(null!==i&&0!==i.length)if(null===t||0===t.length)t=i.slice();else{let
e=-1;for(let n=0;n<i.length;n++){const s=i[n];"number"==typeof
s?e=s:0===e||m_(t,e,s,null,-1===e||2===e?i[++n]:null)}}return t}function m_(t,i,e,n,s){let
r=0,o=t.length;if(-1===i)o=-1;else for(;r<t.length;){const
u=t[r++];if("number"==typeof
u){if(u===i){o=-1;break}if(u>i){o=r-1;break}}}for(;r<t.length;){const
u=t[r];if("number"==typeof u)break;if(u===e){if(null===n)return
void(null!==s&&(t[r+1]=s));if(n===t[r+1])return void(t[r+2]=s)}r++
,null!==n&&r++,null!==s&&r++}-1!==o&&(t.splice(o,0,i),r=o+1),t.splice(r++,0,e),null!==n&&t.splice(r++,0,n),null!==s&&t.splice(r++,0,s)}function
f_(t){return-1!==t}function $r(t){return 32767&t}function Wr(t,i){let e=function
lD(t){return t>>16}(t),n=i;for(;e>0;)n=n[15],e--;return n}let dp=!0;function
sc(t){const i=dp;return dp=t,i}let cD=0;function la(t,i){const e=hp(t,i);if(-1!==e)return
e;const
n=i[1];n.firstCreatePass&&(t.injectorIndex=i.length,pp(n.data,t),pp(i,null),pp(n.blueprint,null));const
s=rc(t,i),r=t.injectorIndex;if(f_(s)){const o=$r(s),u=Wr(s,i),h=u[1].data;for(let
b=0;b<8;b++)i[r+b]=u[o+b]|h[o+b]}return i[r+8]=s,r}function
pp(t,i){t.push(0,0,0,0,0,0,0,0,i)}function
hp(t,i){return-1===t.injectorIndex||t.parent&&t.parent.injectorIndex===t.injectorIndex||null===i[t.injectorIndex+8]?-1:t.injectorIndex}function
rc(t,i){if(t.parent&&-1!==t.parent.injectorIndex)return t.parent.injectorIndex;let
e=0,n=null,s=i;for(;null!==s;){const r=s[1],o=r.type;if(n=2===o?r.declTNode:1===o
?s[6]:null,null===n)return-1;if(e++,s=s[15],-1!==n.injectorIndex)return
n.injectorIndex|e<<16}return-1}function oc(t,i,e){!function uD(t,i,e){let
n;"string"==typeof
e?n=e.charCodeAt(0)||0:e.hasOwnProperty(ta)&&(n=e[ta]),null==n&&(n=e[ta]=cD++);const
s=255&n;i.data[t+(s>>5)]|=1<<s}(t,i,e)}function
b_(t,i,e){if(e&xe.Optional)return t;ql(i,"NodeInjector")}function
v_(t,i,e,n){if(e&xe.Optional&&void
0===n&&(n=null),0==(e&(xe.Self|xe.Host))){const s=t[9],r=Rs(void 0);try{return
s?s.get(i,n,e&xe.Optional):qg(i,n,e&xe.Optional)}finally{Rs(r)}}return
b_(n,i,e)}function C_(t,i,e,n=xe.Default,s){if(null!==t){const r=function
mD(t){if("string"==typeof t)return t.charCodeAt(0)||0;const
i=t.hasOwnProperty(ta)?t[ta]:void 0;return"number"==typeof
i?i>=0?255&i:pD:i}(e);if("function"==typeof r){if(!o_(i,t,n))return
n&xe.Host?b_(s,e,n):v_(i,e,n,s);try{const o=r(n);if(null!=o||n&xe.Optional)return
o;ql(e)}finally{u_()}}else if("number"==typeof r){let
o=null,u=hp(t,i),h=-1,b=n&xe.Host?i[16][6]:null;for
((-1===u||n&xe.SkipSelf)&&(h=-1===u?rc(t,i):i[u+8],-1!==h&&T_(n,!1)?(o=i[1],u=$r(h),i=Wr(h,i)):u=-1);-1!==u;){const
y=i[1];if(w_(r,u,y.data)){const w=hD(u,i,e,o,n,b);if(w!==y_)return
w}h=i[u+8],-1!==h&&T_(n,i[1].data[u+8]===b)&&w_(r,u,i)?(o=y,u=$r(h),i=Wr(h,i)):u=-1}}}return
v_(i,e,n,s)}const y_={};function pD(){return new Kr(rn(),$())}function
hD(t,i,e,n,s,r){const
o=i[1],u=o.data[t+8],y=ac(u,o,e,null==n?Wl(u)&&dp:n!=o&&0!=(3&u.type),s&xe.Host&&r===u);return
null!==y?ca(i,o,y,u):y_}function ac(t,i,e,n,s){const
r=t.providerIndexes,o=i.data,u=1048575&r,h=t.directiveStart,y=r>>20,M=s?u+y:t.directiveEnd;for(let
E=n?u:u+y;E<M;E++){const
L=o[E];if(E<h&&e===L||E>=h&&L.type===e)return E}if(s){const
E=o[h];if(E&&Ri(E)&&E.type===e)return h}return null}function
ca(t,i,e,n){let s=t[e];const r=i.data;if(function sD(t){return t instanceof oa}(s)){const
o=s;o.resolving&&function lx(t,i){const e=i?`. Dependency path: ${i.join("
> ")} > ${t}`:"";throw new re(-200,`Circular dependency in DI
detected
for ${t}${e}`)}(wn(r[e]));const u=sc(o.canSeeViewProviders);o.resolving=!0;const
h=o.injectImpl?Rs(o.injectImpl):null;o_(t,n,xe.Default);try{s=t[e]=o.factory(void
0,r,t,n),i.firstCreatePass&&e>=n.directiveStart&&function
nD(t,i,e){const{ngOnChanges:n,ngOnInit:s,ngDoCheck:r}=i.type.prototype;if(n){const
o=Kg(i);(e.preOrderHooks||(e.preOrderHooks=[])).push(t,o),(e.preOrderCheckHooks||(e.preOrderCheckHooks=[])).push(t,o)}s&&(e.preOrderHooks||(e.preOrderHooks=[])).push(0-t,s),r&&((e.preOrderHooks||(e.preOrderHooks=[])).push(t,r),(e.preOrderCheckHooks||(e.preOrderCheckHooks=[])).push(t,r))}(e,r[e],i)}finally{null!==h&&Rs(h),sc(u),o.resolving=!1,u_()}}return
s}function w_(t,i,e){return!!(e[i+(t>>5)]&1<<t)}function
T_(t,i){return!(t&xe.Self||t&xe.Host&&i)}class
Kr{constructor(i,e){this._tNode=i,this._lView=e}get(i,e,n){return
C_(this._tNode,this._lView,i,n,e)}}function on(t){return Ls(()=>{const
i=t.prototype.constructor,e=i[ps]||mp(i),n=Object.prototype;let
s=Object.getPrototypeOf(t.prot
otype).constructor;for(;s&&s!==n;){const
r=s[ps]||mp(s);if(r&&r!==e)return r;s=Object.getPrototypeOf(s)}return r=>new
r})}function mp(t){return Ng(t)?()=>{const i=mp(Ve(t));return
i&&i()}:ar(t)}function ua(t){return function
dD(t,i){if("class"===i)return t.classes;if("style"===i)return
t.styles;const e=t.attrs;if(e){const n=e.length;let s=0;for(;s<n;){const
r=e[s];if(h_(r))break;if(0===r)s+=2;else if("number"==typeof
r)for(s++;s<n&&"string"==typeof e[s];)s++;else{if(r===i)return
e[s+1];s+=2}}}return null}(rn(),t)}const Jr="__parameters__";function
Zr(t,i,e){return Ls(()=>{const n=function fp(t){return function(...e){if(t){const
n=t(...e);for(const s in n)this[s]=n[s]}}}(i);function s(...r){if(this instanceof s)return
n.apply(this,r),this;const o=new s(...r);return u.annotation=o,u;function u(h,b,y){const
w=h.hasOwnProperty(Jr)?h[Jr]:Object.defineProperty(h,Jr,{value:[]})[Jr];for(;w.length<=y;)w.push(null);return(w[y]=w[y]||[]).push(o),h}}return
e&&(s.prototype=Object.create(e.protot
ype)),s.prototype.ngMetadataName=t,s.annotationCls=s,s})}class
be{constructor(i,e){this._desc=i,this.ngMetadataName="InjectionToken",this.\u0275prov=void
0,"number"==typeof e?this.__NG_ELEMENT_ID__=e:void
0!==e&&(this.\u0275prov=X({token:this,providedIn:e.providedIn||"root",factory:e.factory}))}toString(){return`InjectionToken
${this._desc}`}}const gD=new be("AnalyzeForEntryComponents");function
fi(t,i){void 0===i&&(i=t);for(let e=0;e<t.length;e++){let
n=t[e];Array.isArray(n)?(i===t&&(i=t.slice(0,e)),fi(n,i)):i!==t&&i.push(n)}return
i}function Ji(t,i){t.forEach(e=>Array.isArray(e)?Ji(e,i):i(e))}function
x_(t,i,e){i>=t.length?t.push(e):t.splice(i,0,e)}function lc(t,i){return
i>=t.length-1?t.pop():t.splice(i,1)[0]}function ha(t,i){const e=[];for(let
n=0;n<t;n++)e.push(i);return e}function ei(t,i,e){let n=Xr(t,i);return
n>=0?t[1|n]=e:(n=~n,function vD(t,i,e,n){let s=t.length;if(s==i)t.push(e,n);else
if(1===s)t.push(n,t[0]),t[0]=e;else{for(s--,t.push(t[s-1],t[s]);s>i;)t[s]=t[s-2],s--;t[
i]=e,t[i+1]=n}}(t,n,i,e)),n}function _p(t,i){const e=Xr(t,i);if(e>=0)return
t[1|e]}function Xr(t,i){return function k_(t,i,e){let
n=0,s=t.length>>e;for(;s!==n;){const
r=n+(s-n>>1),o=t[r<<e];if(i===o)return
r<<e;o>i?s=r:n=r+1}return~(s<<e)}(t,i,1)}const
ma={},vp="__NG_DI_FLAG__",uc="ngTempTokenPath",DD=/\n/gm,E_="__source",kD=wt({provide:String,useValue:wt});let
fa;function R_(t){const i=fa;return fa=t,i}function ID(t,i=xe.Default){if(void
0===fa)throw new re(203,"");return null===fa?qg(t,void
0,i):fa.get(t,i&xe.Optional?null:void 0,i)}function K(t,i=xe.Default){return(function
fx(){return Gd}()||ID)(Ve(t),i)}const O_=K;function Cp(t){const i=[];for(let
e=0;e<t.length;e++){const n=Ve(t[e]);if(Array.isArray(n)){if(0===n.length)throw new
re(900,"");let s,r=xe.Default;for(let o=0;o<n.length;o++){const
u=n[o],h=ED(u);"number"==typeof h?-1===h?s=u.token:r|=h:s=u}i.push(K(s,r))}else
i.push(K(n))}return i}function ga(t,i){return t[vp]=i,t.prototype[vp]=i,t}function
ED(t){return t[vp]}const
dc=ga(Zr("Inject",t=>({token:t})),-1),Ns=ga(Zr("Optional"),8),_a=ga(Zr("SkipSelf"),4);var
ti=(()=>((ti=ti||{})[ti.Important=1]="Important",ti[ti.DashCase=2]="DashCase",ti))();const
H_="__ngContext__";function In(t,i){t[H_]=i}function Tp(t){const i=function
va(t){return t[H_]||null}(t);return i?Array.isArray(i)?i:i.lView:null}function
xp(t,i){return undefined(t,i)}function Ca(t){const i=t[3];return Ei(i)?i[3]:i}function
Dp(t){return W_(t[13])}function Mp(t){return W_(t[4])}function
W_(t){for(;null!==t&&!Ei(t);)t=t[4];return t}function
to(t,i,e,n,s){if(null!=n){let r,o=!1;Ei(n)?r=n:Ki(n)&&(o=!0,n=n[0]);const
u=Yt(n);0===t&&null!==e?null==s?X_(i,e,u):lr(i,e,u,s||null,!0):1===t&&null!==e?lr(i,e,u,s||null,!0):2===t?function
Ap(t,i,e){const n=hc(t,i);n&&function
aM(t,i,e,n){$t(t)?t.removeChild(i,e,n):i.removeChild(e)}(t,n,i,e)}(i,u,o):3===t&&i.destroyNode(u),null!=r&&function
uM(t,i,e,n,s){const r=e[7];r!==Yt(e)&&to(i,t,n,r,s);for(let
u=10;u<e.length;u++){const h=e[u];ya(h[1],h,t,i,n,r)}}
(i,t,r,e,s)}}function Ip(t,i,e){if($t(t))return t.createElement(i,e);{const
n=null!==e?function Ax(t){const
i=t.toLowerCase();return"svg"===i?"http://www.w3.org/2000/...
null===n?t.createElement(i):t.createElementNS(n,i)}}function Q_(t,i){const
e=t[9],n=e.indexOf(i),s=i[3];1024&i[2]&&(i[2]&=-1025,np(s,-1)),e.splice(n,1)}function
Ep(t,i){if(t.length<=10)return;const e=10+i,n=t[e];if(n){const
s=n[17];null!==s&&s!==t&&Q_(s,n),i>0&&(t[e-1][4]=n[4]);const
r=lc(t,10+i);!function
XD(t,i){ya(t,i,i[11],2,null,null),i[0]=null,i[6]=null}(n[1],n);const
o=r[19];null!==o&&o.detachView(r[1]),n[3]=null,n[4]=null,n[2]&=-129}return
n}function J_(t,i){if(!(256&i[2])){const
e=i[11];$t(e)&&e.destroyNode&&ya(t,i,e,3,null,null),function nM(t){let
i=t[13];if(!i)return Rp(t[1],t);for(;i;){let e=null;if(Ki(i))e=i[13];else{const
n=i[10];n&&(e=n)}if(!e){for(;i&&!i[4]&&i!==t;)Ki(i)&&Rp(i[1],i),i=i[3];null===i&&(i=t),Ki(i)&&Rp(i[1],i),e=i&&i[4]}i=
e}}(i)}}function Rp(t,i){if(!(256&i[2])){i[2]&=-129,i[2]|=256,function
oM(t,i){let e;if(null!=t&&null!=(e=t.destroyHooks))for(let
n=0;n<e.length;n+=2){const s=i[e[n]];if(!(s instanceof oa)){const
r=e[n+1];if(Array.isArray(r))for(let o=0;o<r.length;o+=2){const
u=s[r[o]],h=r[o+1];try{h.call(u)}finally{}}else try{r.call(s)}finally{}}}}(t,i),function
rM(t,i){const e=t.cleanup,n=i[7];let s=-1;if(null!==e)for(let
r=0;r<e.length-1;r+=2)if("string"==typeof e[r]){const
o=e[r+1],u="function"==typeof
o?o(i):Yt(i[o]),h=n[s=e[r+2]],b=e[r+3];"boolean"==typeof
b?u.removeEventListener(e[r],h,b):b>=0?n[s=b]():n[s=-b].unsubscribe(),r+=2}else{const
o=n[s=e[r+1]];e[r].call(o)}if(null!==n){for(let
r=s+1;r<n.length;r++)n[r]();i[7]=null}}(t,i),1===i[1].type&&$t(i[11])&&i[11].destroy();const
e=i[17];if(null!==e&&Ei(i[3])){e!==i[3]&&Q_(e,i);const
n=i[19];null!==n&&n.detachView(t)}}}function Y_(t,i,e){return function
Z_(t,i,e){let n=i;for(;null!==n&&40&n.type;)n=(i=n).parent;if(null===n)return
e[0];if(2&n.fl
ags){const
s=t.data[n.directiveStart].encapsulation;if(s===ki.None||s===ki.Emulated)return
null}return Zn(n,e)}(t,i.parent,e)}function
lr(t,i,e,n,s){$t(t)?t.insertBefore(i,e,n,s):i.insertBefore(e,n,s)}function
X_(t,i,e){$t(t)?t.appendChild(i,e):i.appendChild(e)}function
eb(t,i,e,n,s){null!==n?lr(t,i,e,n,s):X_(t,i,e)}function hc(t,i){return
$t(t)?t.parentNode(i):i.parentNode}function tb(t,i,e){return ib(t,i,e)}let
gc,_c,ib=function nb(t,i,e){return 40&t.type?Zn(t,e):null};function mc(t,i,e,n){const
s=Y_(t,n,i),r=i[11],u=tb(n.parent||i[6],n,i);if(null!=s)if(Array.isArray(e))for(let
h=0;h<e.length;h++)eb(r,s,e[h],u,!1);else eb(r,s,e,u,!1)}function
fc(t,i){if(null!==i){const e=i.type;if(3&e)return Zn(i,t);if(4&e)return
Op(-1,t[i.index]);if(8&e){const n=i.child;if(null!==n)return fc(t,n);{const
s=t[i.index];return Ei(s)?Op(-1,s):Yt(s)}}if(32&e)return
xp(i,t)()||Yt(t[i.index]);{const n=rb(t,i);return
null!==n?Array.isArray(n)?n[0]:fc(Ca(t[16]),n):fc(t,i.next)}}return null}function rb(t,i)
{return null!==i?t[16][6].projection[i.projection]:null}function Op(t,i){const
e=10+t+1;if(e<i.length){const n=i[e],s=n[1].firstChild;if(null!==s)return
fc(n,s)}return i[7]}function Pp(t,i,e,n,s,r,o){for(;null!=e;){const
u=n[e.index],h=e.type;if(o&&0===i&&(u&&In(Yt(u),n),e.flags|=4),64!=(64&e.flags))if(8&h)Pp(t,i,e.child,n,s,r,!1),to(i,t,s,u,r);else
if(32&h){const b=xp(e,n);let y;for(;y=b();)to(i,t,s,y,r);to(i,t,s,u,r)}else
16&h?ob(t,i,n,e,s,r):to(i,t,s,u,r);e=o?e.projectionNext:e.next}}function
ya(t,i,e,n,s,r){Pp(e,n,t.firstChild,i,s,r,!1)}function ob(t,i,e,n,s,r){const
o=e[16],h=o[6].projection[n.projection];if(Array.isArray(h))for(let
b=0;b<h.length;b++)to(i,t,s,h[b],r);else Pp(t,i,h,o[3],s,r,!0)}function
ab(t,i,e){$t(t)?t.setAttribute(i,"style",e):i.style.cssText=e}function
Fp(t,i,e){$t(t)?""===e?t.removeAttribute(i,"class"):t.setAttribute(i,"class",e):i.className=e}function
cr(t){var i;return(null===(i=function Np(){if(void
0===gc&&(gc=null,vt.trustedTypes))try{gc=vt.trustedTyp
es.createPolicy("angular",{createHTML:t=>t,createScript:t=>t,createScriptURL:t=>t})}catch(t){}return
gc}())||void 0===i?void 0:i.createHTML(t))||t}function lb(t){var
i;return(null===(i=function Vp(){if(void
0===_c&&(_c=null,vt.trustedTypes))try{_c=vt.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:t=>t,createScript:t=>t,createScriptURL:t=>t})}catch(t){}return
_c}())||void 0===i?void 0:i.createHTML(t))||t}class
db{constructor(i){this.changingThisBreaksApplicationSecurity=i}toString(){return`SafeValue
must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see
https://g.co/ng/security#xss)`}}function Vs(t){return t instanceof
db?t.changingThisBreaksApplicationSecurity:t}function wa(t,i){const e=function
CM(t){return t instanceof
db&&t.getTypeName()||null}(t);if(null!=e&&e!==i){if("ResourceURL"===e&&"URL"===i)return!0;throw
new Error(`Required a safe ${i}, got a ${e} (see
https://g.co/ng/security#xss)`)}return
e===i}class yM{constructor(i){this.inertDo
cumentHelper=i}getInertBodyElement(i){i="<body><remove></remove>"+i;try{const
e=(new window.DOMParser).parseFromString(cr(i),"text/html").body;return
null===e?this.inertDocumentHelper.getInertBodyElement(i):(e.removeChild(e.firstChild),e)}catch(e){return
null}}}class
wM{constructor(i){if(this.defaultDoc=i,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert"),null==this.inertDocument.body){const
e=this.inertDocument.createElement("html");this.inertDocument.appendChild(e);const
n=this.inertDocument.createElement("body");e.appendChild(n)}}getInertBodyElement(i){const
e=this.inertDocument.createElement("template");if("content"in e)return
e.innerHTML=cr(i),e;const n=this.inertDocument.createElement("body");return
n.innerHTML=cr(i),this.defaultDoc.documentMode&&this.stripCustomNsAttrs(n),n}stripCustomNsAttrs(i){const
e=i.attributes;for(let s=e.length-1;0<s;s--){const
o=e.item(s).name;("xmlns:ns1"===o||0===o.indexOf("ns1:"))&&i.removeAttribute(o)}let
n=
i.firstChild;for(;n;)n.nodeType===Node.ELEMENT_NODE&&this.stripCustomNsAttrs(n),n=n.nextSibling}}const
SM=/^(?:(?:https?|mailto|ftp|tel|file|sms):|[^&:/?#]*(?:[/?#]|$))/gi,xM=/^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
bc(t){return(t=String(t)).match(SM)||t.match(xM)?t:"unsafe:"+t}function
hb(t){return(t=String(t)).split(",").map(i=>bc(i.trim())).join(",
")}function Yi(t){const i={};for(const e of t.split(","))i[e]=!0;return
i}function Ta(...t){const i={};for(const e of t)for(const n in
e)e.hasOwnProperty(n)&&(i[n]=!0);return i}const
mb=Yi("area,br,col,hr,img,wbr"),fb=Yi("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),gb=Yi("rp,rt"),Bp=Ta(mb,Ta(fb,Yi("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")),Ta(gb,Yi("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")),Ta(gb,fb)),Hp=Yi("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),qp=Yi("srcset"),_b=Ta(Hp,qp,Yi("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,start,summary,tabindex,target,title,translate,type,usemap,valign,value,vspace,width"),Yi("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-grab
bed,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")),DM=Yi("script,style,template");class
MM{constructor(){this.sanitizedSomething=!1,this.buf=[]}sanitizeChildren(i){let
e=i.firstChild,n=!0;for(;e;)if(e.nodeType===Node.ELEMENT_NODE?n=this.startElement(e):e.nodeType===Node.TEXT_NODE?this.chars(e.nodeValue):this.sanitizedSomething=!0,n&&e.firstChild)e=e.firstChild;else
for(;e;){e.nodeType===Node.ELEMENT_NODE&&this.endElement(e);let
s=this.checkClobberedElement(e,e.nextSibling);if(s){e=s;break}e=this.checkClobberedElement(e,e.parentNode)}return
this.buf.join("")}startElement(i){const e=i.nodeName.toLowerCase();if(!Bp.
hasOwnProperty(e))return
this.sanitizedSomething=!0,!DM.hasOwnProperty(e);this.buf.push("<"),this.buf.push(e);const
n=i.attributes;for(let s=0;s<n.length;s++){const
r=n.item(s),o=r.name,u=o.toLowerCase();if(!_b.hasOwnProperty(u)){this.sanitizedSomething=!0;continue}let
h=r.value;Hp[u]&&(h=bc(h)),qp[u]&&(h=hb(h)),this.buf.push("
",o,'="',bb(h),'"')}return
this.buf.push(">"),!0}endElement(i){const
e=i.nodeName.toLowerCase();Bp.hasOwnProperty(e)&&!mb.hasOwnProperty(e)&&(this.buf.push("</"),this.buf.push(e),this.buf.push(">"))}chars(i){this.buf.push(bb(i))}checkClobberedElement(i,e){if(e&&(i.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_CONTAINED_BY)===Node.DOCUMENT_POSITION_CONTAINED_BY)throw
new Error(`Failed to sanitize html because the element is clobbered:
${i.outerHTML}`);return e}}const kM=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,IM=/([^\#-~
|!])/g;function bb(t){return
t.replace(/&/g,"&").replace(kM,function(i){return"&#"+(1024*(i.charCodeAt(0)-55296)+(i.charCodeAt(1)-56320)+65
536)+";"}).replace(IM,function(i){return"&#"+i.charCodeAt(0)+";"}).replace(/</g,"<").replace(/>/g,">")}let
vc;function Gp(t){return"content"in t&&function RM(t){return
t.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===t.nodeName}(t)?t.content:null}var
Zt=(()=>((Zt=Zt||{})[Zt.NONE=0]="NONE",Zt[Zt.HTML=1]="HTML",Zt[Zt.STYLE=2]="STYLE",Zt[Zt.SCRIPT=3]="SCRIPT",Zt[Zt.URL=4]="URL",Zt[Zt.RESOURCE_URL=5]="RESOURCE_URL",Zt))();function
Bt(t){const i=Sa();return
i?lb(i.sanitize(Zt.HTML,t)||""):wa(t,"HTML")?lb(Vs(t)):function
EM(t,i){let e=null;try{vc=vc||function pb(t){const i=new wM(t);return function
TM(){try{return!!(new
window.DOMParser).parseFromString(cr(""),"text/html")}catch(t){return!1}}()?new
yM(i):i}(t);let n=i?String(i):"";e=vc.getInertBodyElement(n);let
s=5,r=n;do{if(0===s)throw new Error("Failed to sanitize html because the input is
unstable");s--,n=r,r=e.innerHTML,e=vc.getInertBodyElement(n)}while(n!==r);return
cr((new MM).sanitizeChildren(Gp(e)||e))}finally{if(e){const n=Gp(
e)||e;for(;n.firstChild;)n.removeChild(n.firstChild)}}}(Xd(),Ie(t))}function ln(t){const
i=Sa();return
i?i.sanitize(Zt.URL,t)||"":wa(t,"URL")?Vs(t):bc(Ie(t))}function
Sa(){const t=$();return t&&t[12]}function zp(t){return t.ngOriginalError}function
qM(t,...i){t.error(...i)}class xa{constructor(){this._console=console}handleError(i){const
e=this._findOriginalError(i),n=function HM(t){return
t&&t.ngErrorLogger||qM}(i);n(this._console,"ERROR",i),e&&n(this._console,"ORIGINAL
ERROR",e)}_findOriginalError(i){let
e=i&&zp(i);for(;e&&zp(e);)e=zp(e);return e||null}}const
KM=(()=>("undefined"!=typeof
requestAnimationFrame&&requestAnimationFrame||setTimeout).bind(vt))();function
ni(t){return t.ownerDocument.defaultView}function Zi(t){return t instanceof
Function?t():t}function yb(t,i,e){let n=t.length;for(;;){const
s=t.indexOf(i,e);if(-1===s)return s;if(0===s||t.charCodeAt(s-1)<=32){const
r=i.length;if(s+r===n||t.charCodeAt(s+r)<=32)return s}e=s+1}}const
wb="ng-template";function YM(t,i,e){let
n=0;for(;n<t.length;){let
s=t[n++];if(e&&"class"===s){if(s=t[n],-1!==yb(s.toLowerCase(),i,0))return!0}else
if(1===s){for(;n<t.length&&"string"==typeof(s=t[n++]);)if(s.toLowerCase()===i)return!0;return!1}}return!1}function
Tb(t){return 4===t.type&&t.value!==wb}function ZM(t,i,e){return
i===(4!==t.type||e?t.value:wb)}function XM(t,i,e){let n=4;const s=t.attrs||[],r=function
nk(t){for(let i=0;i<t.length;i++)if(h_(t[i]))return i;return t.length}(s);let
o=!1;for(let u=0;u<i.length;u++){const h=i[u];if("number"!=typeof
h){if(!o)if(4&n){if(n=2|1&n,""!==h&&!ZM(t,h,e)||""===h&&1===i.length){if(Li(n))return!1;o=!0}}else{const
b=8&n?h:i[++u];if(8&n&&null!==t.attrs){if(!YM(t.attrs,b,e)){if(Li(n))return!1;o=!0}continue}const
w=ek(8&n?"class":h,s,Tb(t),e);if(-1===w){if(Li(n))return!1;o=!0;continue}if(""!==b){let
M;M=w>r?"":s[w+1].toLowerCase();const
E=8&n?M:null;if(E&&-1!==yb(E,b,0)||2&n&&b!==M){if(Li(n))return!1;o=!0}}}}else{if(!o&&!Li(n)&&!Li(h))return!1;if(o&&Li(h))continue;o=!1,n=h|1&n}}retur
n Li(n)||o}function Li(t){return 0==(1&t)}function
ek(t,i,e,n){if(null===i)return-1;let s=0;if(n||!e){let r=!1;for(;s<i.length;){const
o=i[s];if(o===t)return s;if(3===o||6===o)r=!0;else{if(1===o||2===o){let
u=i[++s];for(;"string"==typeof
u;)u=i[++s];continue}if(4===o)break;if(0===o){s+=4;continue}}s+=r?1:2}return-1}return
function ik(t,i){let e=t.indexOf(4);if(e>-1)for(e++;e<t.length;){const
n=t[e];if("number"==typeof n)return-1;if(n===i)return
e;e++}return-1}(i,t)}function Sb(t,i,e=!1){for(let
n=0;n<i.length;n++)if(XM(t,i[n],e))return!0;return!1}function sk(t,i){e:for(let
e=0;e<i.length;e++){const n=i[e];if(t.length===n.length){for(let
s=0;s<t.length;s++)if(t[s]!==n[s])continue e;return!0}}return!1}function xb(t,i){return
t?":not("+i.trim()+")":i}function rk(t){let
i=t[0],e=1,n=2,s="",r=!1;for(;e<t.length;){let
o=t[e];if("string"==typeof o)if(2&n){const
u=t[++e];s+="["+o+(u.length>0?'="'+u+'"':"")+"]"}else
8&n?s+="."+o:4&n&&(s+="
"+o);else""!==s&&!Li(o)&&(i+=xb(r,s),s=""),n=o,r=r||
!Li(n);e++}return""!==s&&(i+=xb(r,s)),i}const Re={};function
a(t){Db(tt(),$(),Nn()+t,!1)}function Db(t,i,e,n){if(!n)if(3==(3&i[2])){const
r=t.preOrderCheckHooks;null!==r&&ec(i,r,e)}else{const
r=t.preOrderHooks;null!==r&&tc(i,r,0,e)}Ps(e)}function Cc(t,i){return
t<<17|i<<2}function Oi(t){return t>>17&32767}function jp(t){return
2|t}function fs(t){return(131068&t)>>2}function
$p(t,i){return-131069&t|i<<2}function Wp(t){return 1|t}function Nb(t,i){const
e=t.contentQueries;if(null!==e)for(let n=0;n<e.length;n+=2){const
s=e[n],r=e[n+1];if(-1!==r){const o=t.data[r];ap(s),o.contentQueries(2,i[r],r)}}}function
Da(t,i,e,n,s,r,o,u,h,b){const y=i.blueprint.slice();return
y[0]=s,y[2]=140|n,Xg(y),y[3]=y[15]=t,y[8]=e,y[10]=o||t&&t[10],y[11]=u||t&&t[11],y[12]=h||t&&t[12]||null,y[9]=b||t&&t[9]||null,y[6]=r,y[16]=2==i.type?t[16]:y,y}function
io(t,i,e,n,s){let r=t.data[i];if(null===r)r=function nh(t,i,e,n,s){const
r=n_(),o=ip(),h=t.data[i]=function Tk(t,i,e,n,s,r){return{type:e,index:n,insertBeforeIn
dex:null,injectorIndex:i?i.injectorIndex:-1,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,propertyBindings:null,flags:0,providerIndexes:0,value:s,attrs:r,mergedAttrs:null,localNames:null,initialInputs:void
0,inputs:null,outputs:null,tViews:null,next:null,projectionNext:null,child:null,parent:i,projection:null,styles:null,stylesWithoutHost:null,residualStyles:void
0,classes:null,classesWithoutHost:null,residualClasses:void
0,classBindings:0,styleBindings:0}}(0,o?r:r&&r.parent,e,i,n,s);return
null===t.firstChild&&(t.firstChild=h),null!==r&&(o?null==r.child&&null!==h.parent&&(r.child=h):null===r.next&&(r.next=h)),h}(t,i,e,n,s),function
$x(){return Ee.lFrame.inI18n}()&&(r.flags|=64);else
if(64&r.type){r.type=e,r.value=n,r.attrs=s;const o=function ra(){const
t=Ee.lFrame,i=t.currentTNode;return
t.isParent?i:i.parent}();r.injectorIndex=null===o?-1:o.injectorIndex}return
Qi(r,!0),r}function so(t,i,e,n){if(0===e)return-1;const s=i.length;for(let
r=0;r<e;r++)i.push(n),t.blueprint.
push(n),t.data.push(null);return s}function Ma(t,i,e){Yl(i);try{const
n=t.viewQuery;null!==n&&dh(1,n,e);const
s=t.template;null!==s&&Vb(t,i,s,1,e),t.firstCreatePass&&(t.firstCreatePass=!1),t.staticContentQueries&&Nb(t,i),t.staticViewQueries&&dh(2,t.viewQuery,e);const
r=t.components;null!==r&&function Ck(t,i){for(let
e=0;e<i.length;e++)qk(t,i[e])}(i,r)}catch(n){throw
t.firstCreatePass&&(t.incompleteFirstPass=!0,t.firstCreatePass=!1),n}finally{i[2]&=-5,Zl()}}function
ro(t,i,e,n){const s=i[2];if(256!=(256&s)){Yl(i);try{Xg(i),function i_(t){return
Ee.lFrame.bindingIndex=t}(t.bindingStartIndex),null!==e&&Vb(t,i,e,2,n);const
o=3==(3&s);if(o){const
b=t.preOrderCheckHooks;null!==b&&ec(i,b,null)}else{const
b=t.preOrderHooks;null!==b&&tc(i,b,0,null),lp(i,0)}if(function Bk(t){for(let
i=Dp(t);null!==i;i=Mp(i)){if(!i[2])continue;const e=i[9];for(let
n=0;n<e.length;n++){const
s=e[n],r=s[3];0==(1024&s[2])&&np(r,1),s[2]|=1024}}}(i),function Vk(t){for(let
i=Dp(t);null!==i;i=Mp(i))for(let e=10;e<i.le
ngth;e++){const
n=i[e],s=n[1];tp(n)&&ro(s,n,s.template,n[8])}}(i),null!==t.contentQueries&&Nb(t,i),o){const
b=t.contentCheckHooks;null!==b&&ec(i,b)}else{const
b=t.contentHooks;null!==b&&tc(i,b,1),lp(i,1)}!function bk(t,i){const
e=t.hostBindingOpCodes;if(null!==e)try{for(let n=0;n<e.length;n++){const
s=e[n];if(s<0)Ps(~s);else{const
r=s,o=e[++n],u=e[++n];Wx(o,r),u(2,i[r])}}}finally{Ps(-1)}}(t,i);const
u=t.components;null!==u&&function vk(t,i){for(let
e=0;e<i.length;e++)Hk(t,i[e])}(i,u);const
h=t.viewQuery;if(null!==h&&dh(2,h,n),o){const
b=t.viewCheckHooks;null!==b&&ec(i,b)}else{const
b=t.viewHooks;null!==b&&tc(i,b,2),lp(i,2)}!0===t.firstUpdatePass&&(t.firstUpdatePass=!1),i[2]&=-73,1024&i[2]&&(i[2]&=-1025,np(i[3],-1))}finally{Zl()}}}function
yk(t,i,e,n){const
s=i[10],o=Zg(i);try{!o&&s.begin&&s.begin(),o&&Ma(t,i,n),ro(t,i,e,n)}finally{!o&&s.end&&s.end()}}function
Vb(t,i,e,n,s){const
r=Nn(),o=2&n;try{Ps(-1),o&&i.length>20&&Db(t,i,20,!1),e(n,s)}finally{Ps(r)}}function
Bb(t,i,e){if(Wd(i)){
const s=i.directiveEnd;for(let r=i.directiveStart;r<s;r++){const
o=t.data[r];o.contentQueries&&o.contentQueries(1,e[r],r)}}}function
ih(t,i,e){!t_()||(function Ek(t,i,e,n){const
s=e.directiveStart,r=e.directiveEnd;t.firstCreatePass||la(e,i),In(n,i);const
o=e.initialInputs;for(let u=s;u<r;u++){const
h=t.data[u],b=Ri(h);b&&Pk(i,e,h);const
y=ca(i,t,u,e);In(y,i),null!==o&&Fk(0,u-s,y,h,0,o),b&&(Xn(e.index,i)[8]=y)}}(t,i,e,Zn(e,i)),128==(128&e.flags)&&function
Rk(t,i,e){const n=e.directiveStart,s=e.directiveEnd,o=e.index,u=function Kx(){return
Ee.lFrame.currentDirectiveIndex}();try{Ps(o);for(let h=n;h<s;h++){const
b=t.data[h],y=i[h];rp(h),(null!==b.hostBindings||0!==b.hostVars||null!==b.hostAttrs)&&Wb(b,y)}}finally{Ps(-1),rp(u)}}(t,i,e))}function
sh(t,i,e=Zn){const n=i.localNames;if(null!==n){let s=i.index+1;for(let
r=0;r<n.length;r+=2){const o=n[r+1],u=-1===o?e(i,t):t[o];t[s++]=u}}}function
Hb(t){const i=t.tView;return
null===i||i.incompleteFirstPass?t.tView=Tc(1,null,t.template,t.decls,
t.vars,t.directiveDefs,t.pipeDefs,t.viewQuery,t.schemas,t.consts):i}function
Tc(t,i,e,n,s,r,o,u,h,b){const y=20+n,w=y+s,M=function wk(t,i){const e=[];for(let
n=0;n<i;n++)e.push(n<t?null:Re);return e}(y,w),E="function"==typeof
b?b():b;return
M[1]={type:t,blueprint:M,template:e,queries:null,viewQuery:u,declTNode:i,data:M.slice().fill(null,y),bindingStartIndex:y,expandoStartIndex:w,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
r?r():r,pipeRegistry:"function"==typeof
o?o():o,firstChild:null,schemas:h,consts:E,incompleteFirstPass:!1}}function
Ub(t,i,e,n){const
s=Xb(i);null===e?s.push(n):(s.push(e),t.firstCreatePass&&ev(t).push(n,s.length-1))}function
zb(t,i,e){for(let n in t)if(t.hasOwnProperty(n)){const s=t[
n];(e=null===e?{}:e).hasOwnProperty(n)?e[n].push(i,s):e[n]=[i,s]}return e}function
ii(t,i,e,n,s,r,o,u){const h=Zn(i,e);let
y,b=i.inputs;!u&&null!=b&&(y=b[n])?(iv(t,e,y,n,s),Wl(i)&&function
Dk(t,i){const
e=Xn(i,t);16&e[2]||(e[2]|=64)}(e,i.index)):3&i.type&&(n=function
xk(t){return"class"===t?"className":"for"===t?"htmlFor":"formaction"===t?"formAction":"innerHtml"===t?"innerHTML":"readonly"===t?"readOnly":"tabindex"===t?"tabIndex":t}(n),s=null!=o?o(s,i.value||"",n):s,$t(r)?r.setProperty(h,n,s):up(n)||(h.setProperty?h.setProperty(n,s):h[n]=s))}function
rh(t,i,e,n){let s=!1;if(t_()){const r=function Lk(t,i,e){const n=t.directiveRegistry;let
s=null;if(n)for(let r=0;r<n.length;r++){const
o=n[r];Sb(e,o.selectors,!1)&&(s||(s=[]),oc(la(e,i),t,o.type),Ri(o)?(Kb(t,e),s.unshift(o)):s.push(o))}return
s}(t,i,e),o=null===n?null:{"":-1};if(null!==r){s=!0,Qb(e,t.data.length,r.length);for(let
y=0;y<r.length;y++){const
w=r[y];w.providersResolver&&w.providersResolver(w)}let
u=!1,h=!1,b=so(t,i,r.length
,null);for(let y=0;y<r.length;y++){const
w=r[y];e.mergedAttrs=ic(e.mergedAttrs,w.hostAttrs),Jb(t,e,i,b,w),Ak(b,w,o),null!==w.contentQueries&&(e.flags|=8),(null!==w.hostBindings||null!==w.hostAttrs||0!==w.hostVars)&&(e.flags|=128);const
M=w.type.prototype;!u&&(M.ngOnChanges||M.ngOnInit||M.ngDoCheck)&&((t.preOrderHooks||(t.preOrderHooks=[])).push(e.index),u=!0),!h&&(M.ngOnChanges||M.ngDoCheck)&&((t.preOrderCheckHooks||(t.preOrderCheckHooks=[])).push(e.index),h=!0),b++}!function
Sk(t,i){const n=i.directiveEnd,s=t.data,r=i.attrs,o=[];let u=null,h=null;for(let
b=i.directiveStart;b<n;b++){const
y=s[b],w=y.inputs,M=null===r||Tb(i)?null:Nk(w,r);o.push(M),u=zb(w,b,u),h=zb(y.outputs,b,h)}null!==u&&(u.hasOwnProperty("class")&&(i.flags|=16),u.hasOwnProperty("style")&&(i.flags|=32)),i.initialInputs=o,i.inputs=u,i.outputs=h}(t,e)}o&&function
Ok(t,i,e){if(i){const n=t.localNames=[];for(let s=0;s<i.length;s+=2){const
r=e[i[s+1]];if(null==r)throw new re(-301,!1);n.push(i[s],r)}}}(e,n,o)}return e.mer
gedAttrs=ic(e.mergedAttrs,e.attrs),s}function $b(t,i,e,n,s,r){const
o=r.hostBindings;if(o){let
u=t.hostBindingOpCodes;null===u&&(u=t.hostBindingOpCodes=[]);const
h=~i.index;(function Ik(t){let i=t.length;for(;i>0;){const
e=t[--i];if("number"==typeof e&&e<0)return e}return
0})(u)!=h&&u.push(h),u.push(n,s,o)}}function
Wb(t,i){null!==t.hostBindings&&t.hostBindings(1,i)}function
Kb(t,i){i.flags|=2,(t.components||(t.components=[])).push(i.index)}function
Ak(t,i,e){if(e){if(i.exportAs)for(let
n=0;n<i.exportAs.length;n++)e[i.exportAs[n]]=t;Ri(i)&&(e[""]=t)}}function
Qb(t,i,e){t.flags|=1,t.directiveStart=i,t.directiveEnd=i+e,t.providerIndexes=i}function
Jb(t,i,e,n,s){t.data[n]=s;const r=s.factory||(s.factory=ar(s.type)),o=new
oa(r,Ri(s),null);t.blueprint[n]=o,e[n]=o,$b(t,i,0,n,so(t,e,s.hostVars,Re),s)}function
Pk(t,i,e){const
n=Zn(i,t),s=Hb(e),r=t[10],o=Sc(t,Da(t,s,null,e.onPush?64:16,n,i,r,r.createRenderer(n,e),null,null));t[i.index]=o}function
Xi(t,i,e,n,s,r){const o=Zn(t,i);!function oh(
t,i,e,n,s,r,o){if(null==r)$t(t)?t.removeAttribute(i,s,e):i.removeAttribute(s);else{const
u=null==o?Ie(r):o(r,n||"",s);$t(t)?t.setAttribute(i,s,u,e):e?i.setAttributeNS(e,s,u):i.setAttribute(s,u)}}(i[11],o,r,t.value,e,n,s)}function
Fk(t,i,e,n,s,r){const o=r[i];if(null!==o){const u=n.setInput;for(let
h=0;h<o.length;){const
b=o[h++],y=o[h++],w=o[h++];null!==u?n.setInput(e,w,b,y):e[y]=w}}}function Nk(t,i){let
e=null,n=0;for(;n<i.length;){const
s=i[n];if(0!==s)if(5!==s){if("number"==typeof
s)break;t.hasOwnProperty(s)&&(null===e&&(e=[]),e.push(s,t[s],i[n+1])),n+=2}else
n+=2;else n+=4}return e}function Yb(t,i,e,n){return new
Array(t,!0,!1,i,null,0,n,e,null,null)}function Hk(t,i){const e=Xn(i,t);if(tp(e)){const
n=e[1];80&e[2]?ro(n,e,n.template,e[8]):e[5]>0&&ah(e)}}function
ah(t){for(let n=Dp(t);null!==n;n=Mp(n))for(let s=10;s<n.length;s++){const
r=n[s];if(1024&r[2]){const o=r[1];ro(o,r,o.template,r[8])}else
r[5]>0&&ah(r)}const e=t[1].components;if(null!==e)for(let
n=0;n<e.length;n++){const s
=Xn(e[n],t);tp(s)&&s[5]>0&&ah(s)}}function qk(t,i){const
e=Xn(i,t),n=e[1];(function Gk(t,i){for(let
e=i.length;e<t.blueprint.length;e++)i.push(t.blueprint[e])})(n,e),Ma(n,e,e[8])}function
Sc(t,i){return t[13]?t[14][4]=i:t[13]=i,t[14]=i,i}function lh(t){for(;t;){t[2]|=64;const
i=Ca(t);if(Sx(t)&&!i)return t;t=i}return null}function Zb(t){!function
ch(t){for(let i=0;i<t.components.length;i++){const
e=t.components[i],n=Tp(e),s=n[1];yk(s,n,s.template,e)}}(t[8])}function
dh(t,i,e){ap(0),i(t,e)}const zk=(()=>Promise.resolve(null))();function Xb(t){return
t[7]||(t[7]=[])}function ev(t){return t.cleanup||(t.cleanup=[])}function nv(t,i){const
e=t[9],n=e?e.get(xa,null):null;n&&n.handleError(i)}function iv(t,i,e,n,s){for(let
r=0;r<e.length;){const
o=e[r++],u=e[r++],h=i[o],b=t.data[o];null!==b.setInput?b.setInput(h,s,n,u):h[u]=s}}function
gs(t,i,e){const n=Ql(i,t);!function
K_(t,i,e){$t(t)?t.setValue(i,e):i.textContent=e}(t[11],n,e)}function xc(t,i,e){let
n=e?t.styles:null,s=e?t.classes:null,r=0
;if(null!==i)for(let o=0;o<i.length;o++){const u=i[o];"number"==typeof
u?r=u:1==r?s=Vd(s,u):2==r&&(n=Vd(n,u+":
"+i[++o]+";"))}e?t.styles=n:t.stylesWithoutHost=n,e?t.classes=s:t.classesWithoutHost=s}const
ph=new be("INJECTOR",-1);class sv{get(i,e=ma){if(e===ma){const n=new
Error(`NullInjectorError: No provider for ${ft(i)}!`);throw
n.name="NullInjectorError",n}return e}}const hh=new be("Set Injector
scope."),ka={},Wk={};let mh;function rv(){return void 0===mh&&(mh=new
sv),mh}function ov(t,i=null,e=null,n){const s=av(t,i,e,n);return
s._resolveInjectorDefTypes(),s}function av(t,i=null,e=null,n){return new
Kk(t,e,i||rv(),n)}class Kk{constructor(i,e,n,s=null){this.parent=n,this.records=new
Map,this.injectorDefTypes=new Set,this.onDestroy=new Set,this._destroyed=!1;const
r=[];e&&Ji(e,u=>this.processProvider(u,i,e)),Ji([i],u=>this.processInjectorType(u,[],r)),this.records.set(ph,oo(void
0,this));const
o=this.records.get(hh);this.scope=null!=o?o.value:null,this.source=s||("object"==typeof
i
?null:ft(i))}get destroyed(){return
this._destroyed}destroy(){this.assertNotDestroyed(),this._destroyed=!0;try{this.onDestroy.forEach(i=>i.ngOnDestroy())}finally{this.records.clear(),this.onDestroy.clear(),this.injectorDefTypes.clear()}}get(i,e=ma,n=xe.Default){this.assertNotDestroyed();const
s=R_(this),r=Rs(void 0);try{if(!(n&xe.SkipSelf)){let u=this.records.get(i);if(void
0===u){const h=function nI(t){return"function"==typeof
t||"object"==typeof t&&t instanceof
be}(i)&&Hd(i);u=h&&this.injectableDefInScope(h)?oo(fh(i),ka):null,this.records.set(i,u)}if(null!=u)return
this.hydrate(i,u)}return(n&xe.Self?rv():this.parent).get(i,e=n&xe.Optional&&e===ma?null:e)}catch(o){if("NullInjectorError"===o.name){if((o[uc]=o[uc]||[]).unshift(ft(i)),s)throw
o;return function RD(t,i,e,n){const s=t[uc];throw
i[E_]&&s.unshift(i[E_]),t.message=function
LD(t,i,e,n=null){t=t&&"\n"===t.charAt(0)&&"\u0275"==t.charAt(1)?t.substr(2):t;let
s=ft(i);if(Array.isArray(i))s=i.map(ft).join(" -> ");else
if("object"==
typeof i){let r=[];for(let o in i)if(i.hasOwnProperty(o)){let
u=i[o];r.push(o+":"+("string"==typeof
u?JSON.stringify(u):ft(u)))}s=`{${r.join(",
")}}`}return`${e}${n?"("+n+")":""}[${s}]:
${t.replace(DD,"\n
")}`}("\n"+t.message,s,e,n),t.ngTokenPath=s,t[uc]=null,t}(o,i,"R3InjectorError",this.source)}throw
o}finally{Rs(r),R_(s)}}_resolveInjectorDefTypes(){this.injectorDefTypes.forEach(i=>this.get(i))}toString(){const
i=[];return this.records.forEach((n,s)=>i.push(ft(s))),`R3Injector[${i.join(",
")}]`}assertNotDestroyed(){if(this._destroyed)throw new
re(205,!1)}processInjectorType(i,e,n){if(!(i=Ve(i)))return!1;let s=Bg(i);const
r=null==s&&i.ngModule||void 0,o=void 0===r?i:r,u=-1!==n.indexOf(o);if(void
0!==r&&(s=Bg(r)),null==s)return!1;if(null!=s.imports&&!u){let
y;n.push(o);try{Ji(s.imports,w=>{this.processInjectorType(w,e,n)&&(void
0===y&&(y=[]),y.push(w))})}finally{}if(void 0!==y)for(let
w=0;w<y.length;w++){const{ngModule:M,providers:E}=y[w];Ji(E,L=>this.processProvider(L,M,E||Tt))}}t
his.injectorDefTypes.add(o);const h=ar(o)||(()=>new
o);this.records.set(o,oo(h,ka));const b=s.providers;if(null!=b&&!u){const
y=i;Ji(b,w=>this.processProvider(w,y,b))}return void 0!==r&&void
0!==i.providers}processProvider(i,e,n){let s=ao(i=Ve(i))?i:Ve(i&&i.provide);const
r=function Jk(t,i,e){return cv(t)?oo(void
0,t.useValue):oo(lv(t),ka)}(i);if(ao(i)||!0!==i.multi)this.records.get(s);else{let
o=this.records.get(s);o||(o=oo(void
0,ka,!0),o.factory=()=>Cp(o.multi),this.records.set(s,o)),s=i,o.multi.push(i)}this.records.set(s,r)}hydrate(i,e){return
e.value===ka&&(e.value=Wk,e.value=e.factory()),"object"==typeof
e.value&&e.value&&function tI(t){return
null!==t&&"object"==typeof t&&"function"==typeof
t.ngOnDestroy}(e.value)&&this.onDestroy.add(e.value),e.value}injectableDefInScope(i){if(!i.providedIn)return!1;const
e=Ve(i.providedIn);return"string"==typeof
e?"any"===e||e===this.scope:this.injectorDefTypes.has(e)}}function fh(t){const
i=Hd(t),e=null!==i?i.factory:ar(t);if(null!==e)retur
n e;if(t instanceof be)throw new re(204,!1);if(t instanceof Function)return function
Qk(t){const i=t.length;if(i>0)throw ha(i,"?"),new re(204,!1);const e=function
px(t){const i=t&&(t[Gl]||t[Hg]);if(i){const e=function
hx(t){if(t.hasOwnProperty("name"))return t.name;const
i=(""+t).match(/^function\s*([^\s(]+)/);return
null===i?"":i[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.`),i}return null}(t);return
null!==e?()=>e.factory(t):()=>new t}(t);throw new re(204,!1)}function lv(t,i,e){let
n;if(ao(t)){const s=Ve(t);return ar(s)||fh(s)}if(cv(t))n=()=>Ve(t.useValue);else
if(function
Zk(t){return!(!t||!t.useFactory)}(t))n=()=>t.useFactory(...Cp(t.deps||[]));else
if(function Yk(t){return!(!t||!t.useExisting)}(t))n=()=>K(Ve(t.useExisting));else{const
s=Ve(t&&(t.useClass||t.provide));if(!fu
nction eI(t){return!!t.deps}(t))return ar(s)||fh(s);n=()=>new s(...Cp(t.deps))}return
n}function oo(t,i,e=!1){return{factory:t,value:i,multi:e?[]:void 0}}function cv(t){return
null!==t&&"object"==typeof t&&kD in t}function
ao(t){return"function"==typeof t}let En=(()=>{class t{static create(e,n){var
s;if(Array.isArray(e))return ov({name:""},n,e,"");{const
r=null!==(s=e.name)&&void 0!==s?s:"";return
ov({name:r},e.parent,e.providers,r)}}}return t.THROW_IF_NOT_FOUND=ma,t.NULL=new
sv,t.\u0275prov=X({token:t,providedIn:"any",factory:()=>K(ph)}),t.__NG_ELEMENT_ID__=-1,t})();function
uI(t,i){Xl(Tp(t)[1],rn())}function ut(t){let i=function yv(t){return
Object.getPrototypeOf(t.prototype).constructor}(t.type),e=!0;const n=[t];for(;i;){let
s;if(Ri(t))s=i.\u0275cmp||i.\u0275dir;else{if(i.\u0275cmp)throw new
re(903,"");s=i.\u0275dir}if(s){if(e){n.push(s);const
o=t;o.inputs=bh(t.inputs),o.declaredInputs=bh(t.declaredInputs),o.outputs=bh(t.outputs);const
u=s.hostBindings;u&&mI(t,u);const h=s.viewQu
ery,b=s.contentQueries;if(h&&pI(t,h),b&&hI(t,b),Nd(t.inputs,s.inputs),Nd(t.declaredInputs,s.declaredInputs),Nd(t.outputs,s.outputs),Ri(s)&&s.data.animation){const
y=t.data;y.animation=(y.animation||[]).concat(s.data.animation)}}const
r=s.features;if(r)for(let o=0;o<r.length;o++){const
u=r[o];u&&u.ngInherit&&u(t),u===ut&&(e=!1)}}i=Object.getPrototypeOf(i)}!function
dI(t){let i=0,e=null;for(let n=t.length-1;n>=0;n--){const
s=t[n];s.hostVars=i+=s.hostVars,s.hostAttrs=ic(s.hostAttrs,e=ic(e,s.hostAttrs))}}(n)}function
bh(t){return t===Br?{}:t===Tt?[]:t}function pI(t,i){const
e=t.viewQuery;t.viewQuery=e?(n,s)=>{i(n,s),e(n,s)}:i}function hI(t,i){const
e=t.contentQueries;t.contentQueries=e?(n,s,r)=>{i(n,s,r),e(n,s,r)}:i}function
mI(t,i){const e=t.hostBindings;t.hostBindings=e?(n,s)=>{i(n,s),e(n,s)}:i}let
Dc=null;function lo(){if(!Dc){const
t=vt.Symbol;if(t&&t.iterator)Dc=t.iterator;else{const
i=Object.getOwnPropertyNames(Map.prototype);for(let e=0;e<i.length;++e){const
n=i[e];"entries"!==n&
&"size"!==n&&Map.prototype[n]===Map.prototype.entries&&(Dc=n)}}}return
Dc}function Ia(t){return!!vh(t)&&(Array.isArray(t)||!(t instanceof
Map)&&lo()in t)}function vh(t){return
null!==t&&("function"==typeof t||"object"==typeof t)}function
es(t,i,e){return t[i]=e}function Ea(t,i){return t[i]}function
Rn(t,i,e){return!Object.is(t[i],e)&&(t[i]=e,!0)}function ur(t,i,e,n){const
s=Rn(t,i,e);return Rn(t,i+1,n)||s}function Mc(t,i,e,n,s){const r=ur(t,i,e,n);return
Rn(t,i+2,s)||r}function gi(t,i,e,n,s,r){const o=ur(t,i,e,n);return
ur(t,i+2,s,r)||o}function ie(t,i,e,n){const s=$();return
Rn(s,jr(),i)&&(tt(),Xi(Vt(),s,t,i,e,n)),ie}function uo(t,i,e,n){return
Rn(t,jr(),e)?i+Ie(e)+n:Re}function po(t,i,e,n,s,r){const u=ur(t,hs(),e,s);return
ms(2),u?i+Ie(e)+n+Ie(s)+r:Re}function _(t,i,e,n,s,r,o,u){const
h=$(),b=tt(),y=t+20,w=b.firstCreatePass?function yI(t,i,e,n,s,r,o,u,h){const
b=i.consts,y=io(i,t,4,o||null,As(b,u));rh(i,e,y,As(b,h)),Xl(i,y);const
w=y.tViews=Tc(2,y,n,s,r,i.directiveRegistry,i.pipeR
egistry,null,i.schemas,b);return
null!==i.queries&&(i.queries.template(i,y),w.queries=i.queries.embeddedTView(y)),y}(y,b,h,i,e,n,s,r,o):b.data[y];Qi(w,!1);const
M=h[11].createComment("");mc(b,h,M,w),In(M,h),Sc(h,h[y]=Yb(M,h,M,w)),Kl(w)&&ih(b,h,w),null!=o&&sh(h,w,u)}function
F(t){return zr(function jx(){return Ee.lFrame.contextLView}(),20+t)}function
D(t,i=xe.Default){const e=$();return null===e?K(t,i):C_(rn(),e,Ve(t),i)}function
Sh(){throw new Error("invalid")}function p(t,i,e){const n=$();return
Rn(n,jr(),i)&&ii(tt(),Vt(),n,t,i,n[11],e,!1),p}function xh(t,i,e,n,s){const
o=s?"class":"style";iv(t,e,i.inputs[o],o,n)}function l(t,i,e,n){const
s=$(),r=tt(),o=20+t,u=s[11],h=s[o]=Ip(u,i,function tD(){return
Ee.lFrame.currentNamespace}()),b=r.firstCreatePass?function GI(t,i,e,n,s,r,o){const
u=i.consts,b=io(i,t,2,s,As(u,r));return
rh(i,e,b,As(u,o)),null!==b.attrs&&xc(b,b.attrs,!1),null!==b.mergedAttrs&&xc(b,b.mergedAttrs,!0),null!==i.queries&&i.queries.elementStart(i,b),b}(o,r,s,0,i,e,n):r.
data[o];Qi(b,!0);const y=b.mergedAttrs;null!==y&&nc(u,h,y);const
w=b.classes;null!==w&&Fp(u,h,w);const M=b.styles;return
null!==M&&ab(u,h,M),64!=(64&b.flags)&&mc(r,s,h,b),0===function
Hx(){return Ee.lFrame.elementDepthCount}()&&In(h,s),function
qx(){Ee.lFrame.elementDepthCount++}(),Kl(b)&&(ih(r,s,b),Bb(r,b,s)),null!==n&&sh(s,b),l}function
c(){let t=rn();ip()?sp():(t=t.parent,Qi(t,!1));const i=t;!function
Gx(){Ee.lFrame.elementDepthCount--}();const e=tt();return
e.firstCreatePass&&(Xl(e,t),Wd(t)&&e.queries.elementEnd(t)),null!=i.classesWithoutHost&&function
oD(t){return
0!=(16&t.flags)}(i)&&xh(e,i,$(),i.classesWithoutHost,!0),null!=i.stylesWithoutHost&&function
aD(t){return
0!=(32&t.flags)}(i)&&xh(e,i,$(),i.stylesWithoutHost,!1),c}function
k(t,i,e,n){return l(t,i,e,n),c(),k}function de(t,i,e){const
n=$(),s=tt(),r=t+20,o=s.firstCreatePass?function UI(t,i,e,n,s){const
r=i.consts,o=As(r,n),u=io(i,t,8,"ng-container",o);return
null!==o&&xc(u,o,!0),rh(i,e,u,As(r,s)),null!==i.queries&&i.que
ries.elementStart(i,u),u}(r,s,n,i,e):s.data[r];Qi(o,!0);const
u=n[r]=n[11].createComment("");return
mc(s,n,u,o),In(u,n),Kl(o)&&(ih(s,n,o),Bb(s,o,n)),null!=e&&sh(n,o),de}function
pe(){let t=rn();const i=tt();return
ip()?sp():(t=t.parent,Qi(t,!1)),i.firstCreatePass&&(Xl(i,t),Wd(t)&&i.queries.elementEnd(t)),pe}function
Y(t,i,e){return de(t,i,e),pe(),Y}function I(){return $()}function
Ra(t){return!!t&&"function"==typeof t.then}function
qv(t){return!!t&&"function"==typeof t.subscribe}const Dh=qv;function
C(t,i,e,n){const s=$(),r=tt(),o=rn();return function Uv(t,i,e,n,s,r,o,u){const
h=Kl(n),y=t.firstCreatePass&&ev(t),w=i[8],M=Xb(i);let
E=!0;if(3&n.type||u){const
N=Zn(n,i),G=u?u(N):N,P=M.length,J=u?se=>u(Yt(se[n.index])):n.index;if($t(e)){let
se=null;if(!u&&h&&(se=function zI(t,i,e,n){const
s=t.cleanup;if(null!=s)for(let r=0;r<s.length-1;r+=2){const
o=s[r];if(o===e&&s[r+1]===n){const u=i[7],h=s[r+2];return
u.length>h?u[h]:null}"string"==typeof o&&(r+=2)}return
null}(t,i,s,n.index)),null!==
se)(se.__ngLastListenerFn__||se).__ngNextListenerFn__=r,se.__ngLastListenerFn__=r,E=!1;else{r=Mh(n,i,w,r,!1);const
ke=e.listen(G,s,r);M.push(r,ke),y&&y.push(s,J,P,P+1)}}else
r=Mh(n,i,w,r,!0),G.addEventListener(s,r,o),M.push(r),y&&y.push(s,J,P,o)}else
r=Mh(n,i,w,r,!1);const L=n.outputs;let O;if(E&&null!==L&&(O=L[s])){const
N=O.length;if(N)for(let G=0;G<N;G+=2){const
mt=i[O[G]][O[G+1]].subscribe(r),Ct=M.length;M.push(r,mt),y&&y.push(s,n.index,Ct,-(Ct+1))}}}(r,s,s[11],o,t,i,!!e,n),C}function
zv(t,i,e,n){try{return!1!==e(n)}catch(s){return nv(t,s),!1}}function Mh(t,i,e,n,s){return
function r(o){if(o===Function)return n;const
u=2&t.flags?Xn(t.index,i):i;0==(32&i[2])&&lh(u);let
h=zv(i,0,n,o),b=r.__ngNextListenerFn__;for(;b;)h=zv(i,0,b,o)&&h,b=b.__ngNextListenerFn__;return
s&&!1===h&&(o.preventDefault(),o.returnValue=!1),h}}function d(t=1){return
function Jx(t){return(Ee.lFrame.contextLView=function
Yx(t,i){for(;t>0;)i=i[15],t--;return i}(t,Ee.lFrame.contextLView))[8]}(t)}function
jI(t,i){
let e=null;const n=function tk(t){const i=t.attrs;if(null!=i){const
e=i.indexOf(5);if(0==(1&e))return i[e+1]}return null}(t);for(let
s=0;s<i.length;s++){const
r=i[s];if("*"!==r){if(null===n?Sb(t,r,!0):sk(n,r))return s}else e=s}return
e}function Sn(t){const i=$()[16][6];if(!i.projection){const
n=i.projection=ha(t?t.length:1,null),s=n.slice();let r=i.child;for(;null!==r;){const
o=t?jI(r,t):0;null!==o&&(s[o]?s[o].projectionNext=r:n[o]=r,s[o]=r),r=r.next}}}function
St(t,i=0,e){const
n=$(),s=tt(),r=io(s,20+t,16,null,e||null);null===r.projection&&(r.projection=i),sp(),64!=(64&r.flags)&&function
cM(t,i,e){ob(i[11],0,i,e,Y_(t,e,i),tb(e.parent||i[6],e,i))}(s,n,r)}function
x(t,i,e){return Bn(t,"",i,"",e),x}function Bn(t,i,e,n,s){const
r=$(),o=uo(r,i,e,n);return o!==Re&&ii(tt(),Vt(),r,t,o,r[11],s,!1),Bn}function
La(t,i,e,n,s,r,o){const u=$(),h=po(u,i,e,n,s,r);return
h!==Re&&ii(tt(),Vt(),u,t,h,u[11],o,!1),La}function Zv(t,i,e,n,s){const
r=t[e+1],o=null===i;let u=n?Oi(r):fs(r),h=!1;for(;0!==u&&(
!1===h||o);){const
y=t[u+1];KI(t[u],i)&&(h=!0,t[u+1]=n?Wp(y):jp(y)),u=n?Oi(y):fs(y)}h&&(t[e+1]=n?jp(r):Wp(r))}function
KI(t,i){return
null===t||null==i||(Array.isArray(t)?t[1]:t)===i||!(!Array.isArray(t)||"string"!=typeof
i)&&Xr(t,i)>=0}const cn={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function
Xv(t){return t.substring(cn.key,cn.keyEnd)}function QI(t){return
t.substring(cn.value,cn.valueEnd)}function e1(t,i){const e=cn.textEnd;return
e===i?-1:(i=cn.keyEnd=function
ZI(t,i,e){for(;i<e&&t.charCodeAt(i)>32;)i++;return
i}(t,cn.key=i,e),Co(t,i,e))}function t1(t,i){const e=cn.textEnd;let
n=cn.key=Co(t,i,e);return e===n?-1:(n=cn.keyEnd=function XI(t,i,e){let
n;for(;i<e&&(45===(n=t.charCodeAt(i))||95===n||(-33&n)>=65&&(-33&n)<=90||n>=48&&n<=57);)i++;return
i}(t,n,e),n=s1(t,n,e),n=cn.value=Co(t,n,e),n=cn.valueEnd=function e3(t,i,e){let
n=-1,s=-1,r=-1,o=i,u=o;for(;o<e;){const h=t.charCodeAt(o++);if(59===h)return
u;34===h||39===h?u=o=r1(t,h,o,e):i===o-4&&85===r&&82===s&&76===n&&40===h?u=o=
r1(t,41,o,e):h>32&&(u=o),r=s,s=n,n=-33&h}return
u}(t,n,e),s1(t,n,e))}function
n1(t){cn.key=0,cn.keyEnd=0,cn.value=0,cn.valueEnd=0,cn.textEnd=t.length}function
Co(t,i,e){for(;i<e&&t.charCodeAt(i)<=32;)i++;return i}function
s1(t,i,e,n){return(i=Co(t,i,e))<e&&i++,i}function r1(t,i,e,n){let
s=-1,r=e;for(;r<n;){const o=t.charCodeAt(r++);if(o==i&&92!==s)return
r;s=92==o&&92===s?0:o}throw new Error}function _i(t,i,e){return
Pi(t,i,e,!1),_i}function si(t,i){return Pi(t,i,null,!0),si}function
q(t){Fi(l1,t3,t,!1)}function t3(t,i){for(let e=function YI(t){return
n1(t),t1(t,Co(t,0,cn.textEnd))}(i);e>=0;e=t1(i,e))l1(t,Xv(i),QI(i))}function
me(t){Fi(ei,ts,t,!0)}function ts(t,i){for(let e=function JI(t){return
n1(t),e1(t,Co(t,0,cn.textEnd))}(i);e>=0;e=e1(i,e))ei(t,Xv(i),!0)}function
Pi(t,i,e,n){const
s=$(),r=tt(),o=ms(2);r.firstUpdatePass&&a1(r,t,o,n),i!==Re&&Rn(s,o,i)&&c1(r,r.data[Nn()],s,s[11],t,s[o+1]=function
c3(t,i){return null==t||("string"==typeof i?t+=i:"object"==typeof
t&&(t=ft(Vs(t)))),t
}(i,e),n,o)}function Fi(t,i,e,n){const
s=tt(),r=ms(2);s.firstUpdatePass&&a1(s,null,r,n);const
o=$();if(e!==Re&&Rn(o,r,e)){const u=s.data[Nn()];if(d1(u,n)&&!o1(s,r)){let
h=n?u.classesWithoutHost:u.stylesWithoutHost;null!==h&&(e=Vd(h,e||"")),xh(s,u,o,e,n)}else!function
l3(t,i,e,n,s,r,o,u){s===Re&&(s=Tt);let
h=0,b=0,y=0<s.length?s[0]:null,w=0<r.length?r[0]:null;for(;null!==y||null!==w;){const
M=h<s.length?s[h+1]:void 0,E=b<r.length?r[b+1]:void 0;let
O,L=null;y===w?(h+=2,b+=2,M!==E&&(L=w,O=E)):null===w||null!==y&&y<w?(h+=2,L=y):(b+=2,L=w,O=E),null!==L&&c1(t,i,e,n,L,O,o,u),y=h<s.length?s[h]:null,w=b<r.length?r[b]:null}}(s,u,o,o[11],o[r+1],o[r+1]=function
a3(t,i,e){if(null==e||""===e)return Tt;const
n=[],s=Vs(e);if(Array.isArray(s))for(let r=0;r<s.length;r++)t(n,s[r],!0);else
if("object"==typeof s)for(const r in
s)s.hasOwnProperty(r)&&t(n,r,s[r]);else"string"==typeof
s&&i(n,s);return n}(t,i,e),n,r)}}function o1(t,i){return
i>=t.expandoStartIndex}function a1(t,i,e,n){const s=t.data;if(null
===s[e+1]){const
r=s[Nn()],o=o1(t,e);d1(r,n)&&null===i&&!o&&(i=!1),i=function
n3(t,i,e,n){const s=function op(t){const
i=Ee.lFrame.currentDirectiveIndex;return-1===i?null:t[i]}(t);let
r=n?i.residualClasses:i.residualStyles;if(null===s)0===(n?i.classBindings:i.styleBindings)&&(e=Oa(e=kh(null,t,i,e,n),i.attrs,n),r=null);else{const
o=i.directiveStylingLast;if(-1===o||t[o]!==s)if(e=kh(s,t,i,e,n),null===r){let h=function
s3(t,i,e){const n=e?i.classBindings:i.styleBindings;if(0!==fs(n))return
t[Oi(n)]}(t,i,n);void
0!==h&&Array.isArray(h)&&(h=kh(null,t,i,h[1],n),h=Oa(h,i.attrs,n),function
r3(t,i,e,n){t[Oi(e?i.classBindings:i.styleBindings)]=n}(t,i,n,h))}else r=function
o3(t,i,e){let n;const s=i.directiveEnd;for(let
r=1+i.directiveStylingLast;r<s;r++)n=Oa(n,t[r].hostAttrs,e);return
Oa(n,i.attrs,e)}(t,i,n)}return void
0!==r&&(n?i.residualClasses=r:i.residualStyles=r),e}(s,r,i,n),function
$I(t,i,e,n,s,r){let o=r?i.classBindings:i.styleBindings,u=Oi(o),h=fs(o);t[n]=e;let
y,b=!1;if(Array.isArra
y(e)){const w=e;y=w[1],(null===y||Xr(w,y)>0)&&(b=!0)}else
y=e;if(s)if(0!==h){const
M=Oi(t[u+1]);t[n+1]=Cc(M,u),0!==M&&(t[M+1]=$p(t[M+1],n)),t[u+1]=function
lk(t,i){return 131071&t|i<<17}(t[u+1],n)}else
t[n+1]=Cc(u,0),0!==u&&(t[u+1]=$p(t[u+1],n)),u=n;else
t[n+1]=Cc(h,0),0===u?u=n:t[h+1]=$p(t[h+1],n),h=n;b&&(t[n+1]=jp(t[n+1])),Zv(t,y,n,!0),Zv(t,y,n,!1),function
WI(t,i,e,n,s){const
r=s?t.residualClasses:t.residualStyles;null!=r&&"string"==typeof
i&&Xr(r,i)>=0&&(e[n+1]=Wp(e[n+1]))}(i,y,t,n,r),o=Cc(u,h),r?i.classBindings=o:i.styleBindings=o}(s,r,i,e,o,n)}}function
kh(t,i,e,n,s){let r=null;const o=e.directiveEnd;let
u=e.directiveStylingLast;for(-1===u?u=e.directiveStart:u++;u<o&&(r=i[u],n=Oa(n,r.hostAttrs,s),r!==t);)u++;return
null!==t&&(e.directiveStylingLast=u),n}function Oa(t,i,e){const n=e?1:2;let
s=-1;if(null!==i)for(let r=0;r<i.length;r++){const o=i[r];"number"==typeof
o?s=o:s===n&&(Array.isArray(t)||(t=void
0===t?[]:["",t]),ei(t,o,!!e||i[++r]))}return void 0===t?null:t}function l1(
t,i,e){ei(t,i,Vs(e))}function c1(t,i,e,n,s,r,o,u){if(!(3&i.type))return;const
h=t.data,b=h[u+1];Ic(function Ib(t){return 1==(1&t)}(b)?u1(h,i,e,s,fs(b),o):void
0)||(Ic(r)||function kb(t){return
2==(2&t)}(b)&&(r=u1(h,null,e,s,u,o)),function dM(t,i,e,n,s){const
r=$t(t);if(i)s?r?t.addClass(e,n):e.classList.add(n):r?t.removeClass(e,n):e.classList.remove(n);else{let
o=-1===n.indexOf("-")?void
0:ti.DashCase;if(null==s)r?t.removeStyle(e,n,o):e.style.removeProperty(n);else{const
u="string"==typeof
s&&s.endsWith("!important");u&&(s=s.slice(0,-10),o|=ti.Important),r?t.setStyle(e,n,s,o):e.style.setProperty(n,s,u?"important":"")}}}(n,o,Ql(Nn(),e),s,r))}function
u1(t,i,e,n,s,r){const o=null===i;let u;for(;s>0;){const
h=t[s],b=Array.isArray(h),y=b?h[1]:h,w=null===y;let M=e[s+1];M===Re&&(M=w?Tt:void
0);let E=w?_p(M,n):y===n?M:void
0;if(b&&!Ic(E)&&(E=_p(h,n)),Ic(E)&&(u=E,o))return u;const
L=t[s+1];s=o?Oi(L):fs(L)}if(null!==i){let
h=r?i.residualClasses:i.residualStyles;null!=h&&(u=_p(h,n))}return u}f
unction Ic(t){return void 0!==t}function d1(t,i){return
0!=(t.flags&(i?16:32))}function g(t,i=""){const
e=$(),n=tt(),s=t+20,r=n.firstCreatePass?io(n,s,1,i,null):n.data[s],o=e[s]=function
kp(t,i){return
$t(t)?t.createText(i):t.createTextNode(i)}(e[11],i);mc(n,e,o,r),Qi(r,!1)}function
S(t){return T("",t,""),S}function T(t,i,e){const
n=$(),s=uo(n,t,i,e);return s!==Re&&gs(n,Nn(),s),T}function We(t,i,e,n,s){const
r=$(),o=po(r,t,i,e,n,s);return o!==Re&&gs(r,Nn(),o),We}function
yo(t,i,e,n,s,r,o){const u=$(),h=function ho(t,i,e,n,s,r,o,u){const
b=Mc(t,hs(),e,s,o);return ms(3),b?i+Ie(e)+n+Ie(s)+r+Ie(o)+u:Re}(u,t,i,e,n,s,r,o);return
h!==Re&&gs(u,Nn(),h),yo}function Ec(t,i,e,n,s,r,o,u,h){const b=$(),y=function
mo(t,i,e,n,s,r,o,u,h,b){const w=gi(t,hs(),e,s,o,h);return
ms(4),w?i+Ie(e)+n+Ie(s)+r+Ie(o)+u+Ie(h)+b:Re}(b,t,i,e,n,s,r,o,u,h);return
y!==Re&&gs(b,Nn(),y),Ec}function Ih(t,i,e,n,s,r,o,u,h,b,y){const w=$(),M=function
fo(t,i,e,n,s,r,o,u,h,b,y,w){const M=hs();let E=gi(t,M,e,s,o,h);return E=Rn
(t,M+4,y)||E,ms(5),E?i+Ie(e)+n+Ie(s)+r+Ie(o)+u+Ie(h)+b+Ie(y)+w:Re}(w,t,i,e,n,s,r,o,u,h,b,y);return
M!==Re&&gs(w,Nn(),M),Ih}function Eh(t,i,e,n,s,r,o,u,h,b,y,w,M){const
E=$(),L=function go(t,i,e,n,s,r,o,u,h,b,y,w,M,E){const L=hs();let O=gi(t,L,e,s,o,h);return
O=ur(t,L+4,y,M)||O,ms(6),O?i+Ie(e)+n+Ie(s)+r+Ie(o)+u+Ie(h)+b+Ie(y)+w+Ie(M)+E:Re}(E,t,i,e,n,s,r,o,u,h,b,y,w,M);return
L!==Re&&gs(E,Nn(),L),Eh}const dr=void 0;var
I3=["en",[["a","p"],["AM","PM"],dr],[["AM","PM"],dr,dr],[["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"]],dr,[["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"]],dr,[["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}",dr,"{1} 'at'
{0}",dr],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US
Dollar",{},"ltr",function k3(t){const
e=Math.floor(Math.abs(t)),n=t.toString().replace(/^[^.]*\.?/,"").length;return
1===e&&0===n?1:5}];let wo={};function Hn(t){const i=function E3(t){return
t.toLowerCase().replace(/_/g,"-")}(t);let e=M1(i);if(e)return e;const
n=i.split("-")[0];if(e=M1(n),e)return e;if("en"===n)return I3;throw
new Error(`Missing locale data for the locale "${t}".`)}function M1(t){return t
in
wo||(wo[t]=vt.ng&&vt.ng.common&&vt.ng.common.locales&&vt.ng.common.locales[t]),wo[t]}var
te=(()=>((te=te||{})[te.LocaleId=0]="LocaleId",te[te.DayPeriodsFormat=1]="DayPeriodsFormat",te[te.DayPeriodsStandalone=2]="DayPeriodsStandalone",te[te.DaysFormat=3]="DaysFormat",te[te.DaysStandalone=4]="DaysStandalone",te[te.MonthsFormat=5]="MonthsFormat",te[t
e.MonthsStandalone=6]="MonthsStandalone",te[te.Eras=7]="Eras",te[te.FirstDayOfWeek=8]="FirstDayOfWeek",te[te.WeekendRange=9]="WeekendRange",te[te.DateFormat=10]="DateFormat",te[te.TimeFormat=11]="TimeFormat",te[te.DateTimeFormat=12]="DateTimeFormat",te[te.NumberSymbols=13]="NumberSymbols",te[te.NumberFormats=14]="NumberFormats",te[te.CurrencyCode=15]="CurrencyCode",te[te.CurrencySymbol=16]="CurrencySymbol",te[te.CurrencyName=17]="CurrencyName",te[te.Currencies=18]="Currencies",te[te.Directionality=19]="Directionality",te[te.PluralCase=20]="PluralCase",te[te.ExtraData=21]="ExtraData",te))();const
Rc="en-US";let k1=Rc;function Oh(t,i,e,n,s){if(t=Ve(t),Array.isArray(t))for(let
r=0;r<t.length;r++)Oh(t[r],i,e,n,s);else{const r=tt(),o=$();let
u=ao(t)?t:Ve(t.provide),h=lv(t);const
b=rn(),y=1048575&b.providerIndexes,w=b.directiveStart,M=b.providerIndexes>>20;if(ao(t)||!t.multi){const
E=new
oa(h,s,D),L=Ph(u,i,s?y:y+M,w);-1===L?(oc(la(b,o),r,u),Ah(r,t,i.length),i.push(u),b.directiveStart++,b.
directiveEnd++,s&&(b.providerIndexes+=1048576),e.push(E),o.push(E)):(e[L]=E,o[L]=E)}else{const
E=Ph(u,i,y+M,w),L=Ph(u,i,y,y+M),O=E>=0&&e[E],N=L>=0&&e[L];if(s&&!N||!s&&!O){oc(la(b,o),r,u);const
G=function kE(t,i,e,n,s){const r=new oa(t,e,D);return
r.multi=[],r.index=i,r.componentProviders=0,Z1(r,s,n&&!e),r}(s?ME:DE,e.length,s,n,h);!s&&N&&(e[L].providerFactory=G),Ah(r,t,i.length,0),i.push(u),b.directiveStart++,b.directiveEnd++,s&&(b.providerIndexes+=1048576),e.push(G),o.push(G)}else
Ah(r,t,E>-1?E:L,Z1(e[s?L:E],h,!s&&n));!s&&n&&N&&e[L].componentProviders++}}}function
Ah(t,i,e,n){const s=ao(i),r=function Xk(t){return!!t.useClass}(i);if(s||r){const
h=(r?Ve(i.useClass):i).prototype.ngOnDestroy;if(h){const
b=t.destroyHooks||(t.destroyHooks=[]);if(!s&&i.multi){const
y=b.indexOf(e);-1===y?b.push(e,[n,h]):b[y+1].push(n,h)}else b.push(e,h)}}}function
Z1(t,i,e){return e&&t.componentProviders++,t.multi.push(i)-1}function
Ph(t,i,e,n){for(let s=e;s<n;s++)if(i[s]===t)return s;return-1}function DE(t
,i,e,n){return Fh(this.multi,[])}function ME(t,i,e,n){const s=this.multi;let
r;if(this.providerFactory){const
o=this.providerFactory.componentProviders,u=ca(e,e[1],this.providerFactory.index,n);r=u.slice(0,o),Fh(s,r);for(let
h=o;h<u.length;h++)r.push(u[h])}else r=[],Fh(s,r);return r}function Fh(t,i){for(let
e=0;e<t.length;e++)i.push((0,t[e])());return i}function Pe(t,i=[]){return
e=>{e.providersResolver=(n,s)=>function xE(t,i,e){const
n=tt();if(n.firstCreatePass){const
s=Ri(t);Oh(e,n.data,n.blueprint,s,!0),Oh(i,n.data,n.blueprint,s,!1)}}(n,s?s(t):t,i)}}class
X1{}class RE{resolveComponentFactory(i){throw function EE(t){const i=Error(`No component
factory found for ${ft(t)}. Did you add it to @NgModule.entryComponents?`);return
i.ngComponent=t,i}(i)}}let Va=(()=>{class t{}return t.NULL=new RE,t})();function
LE(){return So(rn(),$())}function So(t,i){return new De(Zn(t,i))}let De=(()=>{class
t{constructor(e){this.nativeElement=e}}return t.__NG_ELEMENT_ID__=LE,t})();function
OE(t){return
t instanceof De?t.nativeElement:t}class Ba{}let gn=(()=>{class t{}return
t.__NG_ELEMENT_ID__=()=>function PE(){const t=$(),e=Xn(rn().index,t);return function
AE(t){return t[11]}(Ki(e)?e:t)}(),t})(),FE=(()=>{class t{}return
t.\u0275prov=X({token:t,providedIn:"root",factory:()=>null}),t})();class
Ha{constructor(i){this.full=i,this.major=i.split(".")[0],this.minor=i.split(".")[1],this.patch=i.split(".").slice(2).join(".")}}const
NE=new Ha("13.3.12"),Nh={};function Fc(t,i,e,n,s=!1){for(;null!==e;){const
r=i[e.index];if(null!==r&&n.push(Yt(r)),Ei(r))for(let
u=10;u<r.length;u++){const
h=r[u],b=h[1].firstChild;null!==b&&Fc(h[1],h,b,n)}const
o=e.type;if(8&o)Fc(t,i,e.child,n);else if(32&o){const u=xp(e,i);let
h;for(;h=u();)n.push(h)}else if(16&o){const
u=rb(i,e);if(Array.isArray(u))n.push(...u);else{const
h=Ca(i[16]);Fc(h[1],h,u,n,!0)}}e=s?e.projectionNext:e.next}return n}class
qa{constructor(i,e){this._lView=i,this._cdRefInjectingView=e,this._appRef=null,this._attachedToViewContainer=!1}ge
t rootNodes(){const i=this._lView,e=i[1];return Fc(e,i,e.firstChild,[])}get
context(){return this._lView[8]}set context(i){this._lView[8]=i}get destroyed(){return
256==(256&this._lView[2])}destroy(){if(this._appRef)this._appRef.detachView(this);else
if(this._attachedToViewContainer){const i=this._lView[3];if(Ei(i)){const
e=i[8],n=e?e.indexOf(this):-1;n>-1&&(Ep(i,n),lc(e,n))}this._attachedToViewContainer=!1}J_(this._lView[1],this._lView)}onDestroy(i){Ub(this._lView[1],this._lView,null,i)}markForCheck(){lh(this._cdRefInjectingView||this._lView)}detach(){this._lView[2]&=-129}reattach(){this._lView[2]|=128}detectChanges(){!function
uh(t,i,e){const n=i[10];n.begin&&n.begin();try{ro(t,i,t.template,e)}catch(s){throw
nv(i,s),s}finally{n.end&&n.end()}}(this._lView[1],this._lView,this.context)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw
new
re(902,"");this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null,function
tM(t,i){ya(t,i,i[11],2,null,null)}(this._
lView[1],this._lView)}attachToAppRef(i){if(this._attachedToViewContainer)throw new
re(902,"");this._appRef=i}}class VE extends
qa{constructor(i){super(i),this._view=i}detectChanges(){Zb(this._view)}checkNoChanges(){}get
context(){return null}}class tC extends
Va{constructor(i){super(),this.ngModule=i}resolveComponentFactory(i){const e=Tn(i);return
new Vh(e,this.ngModule)}}function nC(t){const i=[];for(let e in
t)t.hasOwnProperty(e)&&i.push({propName:t[e],templateName:e});return i}class Vh
extends
X1{constructor(i,e){super(),this.componentDef=i,this.ngModule=e,this.componentType=i.type,this.selector=function
ok(t){return
t.map(rk).join(",")}(i.selectors),this.ngContentSelectors=i.ngContentSelectors?i.ngContentSelectors:[],this.isBoundToModule=!!e}get
inputs(){return nC(this.componentDef.inputs)}get outputs(){return
nC(this.componentDef.outputs)}create(i,e,n,s){const r=(s=s||this.ngModule)?function
HE(t,i){return{get:(e,n,s)=>{const r=t.get(e,Nh,s);return
r!==Nh||n===Nh?r:i.get(e,n,s)
}}}(i,s.injector):i,o=r.get(Ba,Yg),u=r.get(FE,null),h=o.createRenderer(null,this.componentDef),b=this.componentDef.selectors[0][0]||"div",y=n?function
Gb(t,i,e){if($t(t))return t.selectRootElement(i,e===ki.ShadowDom);let
n="string"==typeof i?t.querySelector(i):i;return
n.textContent="",n}(h,n,this.componentDef.encapsulation):Ip(o.createRenderer(null,this.componentDef),b,function
BE(t){const
i=t.toLowerCase();return"svg"===i?"svg":"math"===i?"math":null}(b)),w=this.componentDef.onPush?576:528,M=function
Cv(t,i){return{components:[],scheduler:t||KM,clean:zk,playerHandler:i||null,flags:0}}(),E=Tc(0,null,null,1,0,null,null,null,null,null),L=Da(null,E,M,w,null,null,o,h,u,r);let
O,N;Yl(L);try{const G=function bv(t,i,e,n,s,r){const o=e[1];e[20]=t;const
h=io(o,20,2,"#host",null),b=h.mergedAttrs=i.hostAttrs;null!==b&&(xc(h,b,!0),null!==t&&(nc(s,t,b),null!==h.classes&&Fp(s,t,h.classes),null!==h.styles&&ab(s,t,h.styles)));const
y=n.createRenderer(t,i),w=Da(e,Hb(i),null,i.onPush?64:16,e[20],h,n
,y,r||null,null);return
o.firstCreatePass&&(oc(la(h,e),o,i.type),Kb(o,h),Qb(h,e.length,1)),Sc(e,w),e[20]=w}(y,this.componentDef,L,o,h);if(y)if(n)nc(h,y,["ng-version",NE.full]);else{const{attrs:P,classes:J}=function
ak(t){const i=[],e=[];let n=1,s=2;for(;n<t.length;){let
r=t[n];if("string"==typeof
r)2===s?""!==r&&i.push(r,t[++n]):8===s&&e.push(r);else{if(!Li(s))break;s=r}n++}return{attrs:i,classes:e}}(this.componentDef.selectors[0]);P&&nc(h,y,P),J&&J.length>0&&Fp(h,y,J.join("
"))}if(N=ep(E,20),void 0!==e){const P=N.projection=[];for(let
J=0;J<this.ngContentSelectors.length;J++){const
se=e[J];P.push(null!=se?Array.from(se):null)}}O=function vv(t,i,e,n,s){const
r=e[1],o=function kk(t,i,e){const
n=rn();t.firstCreatePass&&(e.providersResolver&&e.providersResolver(e),Jb(t,n,i,so(t,i,1,null),e));const
s=ca(i,t,n.directiveStart,n);In(s,i);const r=Zn(n,i);return
r&&In(r,i),s}(r,e,i);if(n.components.push(o),t[8]=o,s&&s.forEach(h=>h(o,i)),i.contentQueries){const
h=rn();i.contentQueries(1,o,h.d
irectiveStart)}const
u=rn();return!r.firstCreatePass||null===i.hostBindings&&null===i.hostAttrs||(Ps(u.index),$b(e[1],u,0,u.directiveStart,u.directiveEnd,i),Wb(i,o)),o}(G,this.componentDef,L,M,[uI]),Ma(E,L,null)}finally{Zl()}return
new GE(this.componentType,O,So(N,L),L,N)}}class GE extends class
IE{}{constructor(i,e,n,s,r){super(),this.location=n,this._rootLView=s,this._tNode=r,this.instance=e,this.hostView=this.changeDetectorRef=new
VE(s),this.componentType=i}get injector(){return new
Kr(this._tNode,this._rootLView)}destroy(){this.hostView.destroy()}onDestroy(i){this.hostView.onDestroy(i)}}class
_s{}class iC{}const xo=new Map;class oC extends
_s{constructor(i,e){super(),this._parent=e,this._bootstrapComponents=[],this.injector=this,this.destroyCbs=[],this.componentFactoryResolver=new
tC(this);const
n=pi(i);this._bootstrapComponents=Zi(n.bootstrap),this._r3Injector=av(i,e,[{provide:_s,useValue:this},{provide:Va,useValue:this.componentFactoryResolver}],ft(i)),this._r3Injector._resolv
eInjectorDefTypes(),this.instance=this.get(i)}get(i,e=En.THROW_IF_NOT_FOUND,n=xe.Default){return
i===En||i===_s||i===ph?this:this._r3Injector.get(i,e,n)}destroy(){const
i=this._r3Injector;!i.destroyed&&i.destroy(),this.destroyCbs.forEach(e=>e()),this.destroyCbs=null}onDestroy(i){this.destroyCbs.push(i)}}class
Bh extends iC{constructor(i){super(),this.moduleType=i,null!==pi(i)&&function
zE(t){const i=new Set;!function e(n){const s=pi(n,!0),r=s.id;null!==r&&(function
sC(t,i,e){if(i&&i!==e)throw new Error(`Duplicate module registered for ${t} -
${ft(i)} vs ${ft(i.name)}`)}(r,xo.get(r),n),xo.set(r,n));const o=Zi(s.imports);for(const u
of o)i.has(u)||(i.add(u),e(u))}(t)}(i)}create(i){return new
oC(this.moduleType,i)}}function A(t,i,e){const n=Fn()+t,s=$();return
s[n]===Re?es(s,n,e?i.call(e):i()):Ea(s,n)}function U(t,i,e,n){return
lC($(),Fn(),t,i,e,n)}function Ge(t,i,e,n,s){return cC($(),Fn(),t,i,e,n,s)}function
Qt(t,i,e,n,s,r){return uC($(),Fn(),t,i,e,n,s,r)}function qn(t,i,e,n,s,r,o){re
turn function dC(t,i,e,n,s,r,o,u,h){const b=i+e;return
gi(t,b,s,r,o,u)?es(t,b+4,h?n.call(h,s,r,o,u):n(s,r,o,u)):Ga(t,b+4)}($(),Fn(),t,i,e,n,s,r,o)}function
pr(t,i,e,n,s,r,o,u){const h=Fn()+t,b=$(),y=gi(b,h,e,n,s,r);return
Rn(b,h+4,o)||y?es(b,h+5,u?i.call(u,e,n,s,r,o):i(e,n,s,r,o)):Ea(b,h+5)}function
Do(t,i,e,n,s,r,o,u,h){const b=Fn()+t,y=$(),w=gi(y,b,e,n,s,r);return
ur(y,b+4,o,u)||w?es(y,b+6,h?i.call(h,e,n,s,r,o,u):i(e,n,s,r,o,u)):Ea(y,b+6)}function
Hh(t,i,e,n){return function pC(t,i,e,n,s,r){let o=i+e,u=!1;for(let
h=0;h<s.length;h++)Rn(t,o++,s[h])&&(u=!0);return
u?es(t,o,n.apply(r,s)):Ga(t,o)}($(),Fn(),t,i,e,n)}function Ga(t,i){const e=t[i];return
e===Re?void 0:e}function lC(t,i,e,n,s,r){const o=i+e;return
Rn(t,o,s)?es(t,o+1,r?n.call(r,s):n(s)):Ga(t,o+1)}function cC(t,i,e,n,s,r,o){const
u=i+e;return ur(t,u,s,r)?es(t,u+2,o?n.call(o,s,r):n(s,r)):Ga(t,u+2)}function
uC(t,i,e,n,s,r,o,u){const h=i+e;return
Mc(t,h,s,r,o)?es(t,h+3,u?n.call(u,s,r,o):n(s,r,o)):Ga(t,h+3)}function m(t,i){const
e=tt();let n;const s=t+20;e.firstCreatePass?(n=function $E(t,i){if(i)for(let
e=i.length-1;e>=0;e--){const n=i[e];if(t===n.name)return
n}}(i,e.pipeRegistry),e.data[s]=n,n.onDestroy&&(e.destroyHooks||(e.destroyHooks=[])).push(s,n.onDestroy)):n=e.data[s];const
r=n.factory||(n.factory=ar(n.type)),o=Rs(D);try{const u=sc(!1),h=r();return sc(u),function
wI(t,i,e,n){e>=t.data.length&&(t.data[e]=null,t.blueprint[e]=null),i[e]=n}(e,$(),s,h),h}finally{Rs(o)}}function
f(t,i,e){const n=t+20,s=$(),r=zr(s,n);return
Ua(s,n)?lC(s,Fn(),i,r.transform,e,r):r.transform(e)}function Dt(t,i,e,n){const
s=t+20,r=$(),o=zr(r,s);return
Ua(r,s)?cC(r,Fn(),i,o.transform,e,n,o):o.transform(e,n)}function Ua(t,i){return
t[1].data[i].pure}function qh(t){return i=>{setTimeout(t,void 0,i)}}const H=class QE
extends
ct{constructor(i=!1){super(),this.__isAsync=i}emit(i){super.next(i)}subscribe(i,e,n){var
s,r,o;let u=i,h=e||(()=>null),b=n;if(i&&"object"==typeof i){const
w=i;u=null===(s=w.next)||void 0===s?void 0:s.bind(w),
h=null===(r=w.error)||void 0===r?void 0:r.bind(w),b=null===(o=w.complete)||void
0===o?void
0:o.bind(w)}this.__isAsync&&(h=qh(h),u&&(u=qh(u)),b&&(b=qh(b)));const
y=super.subscribe({next:u,error:h,complete:b});return i instanceof
Et&&i.add(y),y}};function JE(){return this._results[lo()]()}class
Gh{constructor(i=!1){this._emitDistinctChangesOnly=i,this.dirty=!0,this._results=[],this._changesDetected=!1,this._changes=null,this.length=0,this.first=void
0,this.last=void 0;const e=lo(),n=Gh.prototype;n[e]||(n[e]=JE)}get changes(){return
this._changes||(this._changes=new H)}get(i){return this._results[i]}map(i){return
this._results.map(i)}filter(i){return this._results.filter(i)}find(i){return
this._results.find(i)}reduce(i,e){return
this._results.reduce(i,e)}forEach(i){this._results.forEach(i)}some(i){return
this._results.some(i)}toArray(){return this._results.slice()}toString(){return
this._results.toString()}reset(i,e){const n=this;n.dirty=!1;const
s=fi(i);(this._changesDetected=!functio
n _D(t,i,e){if(t.length!==i.length)return!1;for(let n=0;n<t.length;n++){let
s=t[n],r=i[n];if(e&&(s=e(s),r=e(r)),r!==s)return!1}return!0}(n._results,s,e))&&(n._results=s,n.length=s.length,n.last=s[this.length-1],n.first=s[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
bi=(()=>{class t{}return t.__NG_ELEMENT_ID__=XE,t})();const YE=bi,ZE=class extends
YE{constructor(i,e,n){super(),this._declarationLView=i,this._declarationTContainer=e,this.elementRef=n}createEmbeddedView(i){const
e=this._declarationTContainer.tViews,n=Da(this._declarationLView,e,i,16,null,e.declTNode,null,null,null,null);n[17]=this._declarationLView[this._declarationTContainer.index];const
r=this._declarationLView[19];return
null!==r&&(n[19]=r.createEmbeddedView(e)),Ma(e,n,i),new qa(n)}};function
XE(){return Nc(rn(),$())}function Nc(t,i){return 4&t.typ
e?new ZE(i,t,So(t,i)):null}let vi=(()=>{class t{}return
t.__NG_ELEMENT_ID__=eR,t})();function eR(){return gC(rn(),$())}const tR=vi,mC=class
extends
tR{constructor(i,e,n){super(),this._lContainer=i,this._hostTNode=e,this._hostLView=n}get
element(){return So(this._hostTNode,this._hostLView)}get injector(){return new
Kr(this._hostTNode,this._hostLView)}get parentInjector(){const
i=rc(this._hostTNode,this._hostLView);if(f_(i)){const
e=Wr(i,this._hostLView),n=$r(i);return new Kr(e[1].data[n+8],e)}return new
Kr(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(i){const
e=fC(this._lContainer);return null!==e&&e[i]||null}get length(){return
this._lContainer.length-10}createEmbeddedView(i,e,n){const
s=i.createEmbeddedView(e||{});return this.insert(s,n),s}createComponent(i,e,n,s,r){const
o=i&&!function pa(t){return"function"==typeof t}(i);let
u;if(o)u=e;else{const
w=e||{};u=w.index,n=w.injector,s=w.projectableNodes,r=w.ngModuleRef}const h=o?i:new
Vh(Tn(i)),b=n||
this.parentInjector;if(!r&&null==h.ngModule){const
M=(o?b:this.parentInjector).get(_s,null);M&&(r=M)}const y=h.create(b,s,void
0,r);return this.insert(y.hostView,u),y}insert(i,e){const n=i._lView,s=n[1];if(function
Bx(t){return Ei(t[3])}(n)){const y=this.indexOf(i);if(-1!==y)this.detach(y);else{const
w=n[3],M=new mC(w,w[6],w[3]);M.detach(M.indexOf(i))}}const
r=this._adjustIndex(e),o=this._lContainer;!function iM(t,i,e,n){const
s=10+n,r=e.length;n>0&&(e[s-1][4]=i),n<r-10?(i[4]=e[s],x_(e,10+n,i)):(e.push(i),i[4]=null),i[3]=e;const
o=i[17];null!==o&&e!==o&&function sM(t,i){const
e=t[9];i[16]!==i[3][3][16]&&(t[2]=!0),null===e?t[9]=[i]:e.push(i)}(o,i);const
u=i[19];null!==u&&u.insertView(t),i[2]|=128}(s,n,o,r);const
u=Op(r,o),h=n[11],b=hc(h,o[7]);return null!==b&&function
eM(t,i,e,n,s,r){n[0]=s,n[6]=i,ya(t,n,e,1,s,r)}(s,o[6],h,n,b,u),i.attachToViewContainerRef(),x_(Uh(o),r,i),i}move(i,e){return
this.insert(i,e)}indexOf(i){const e=fC(this._lContainer);return
null!==e?e.indexOf(i):-1}remov
e(i){const
e=this._adjustIndex(i,-1),n=Ep(this._lContainer,e);n&&(lc(Uh(this._lContainer),e),J_(n[1],n))}detach(i){const
e=this._adjustIndex(i,-1),n=Ep(this._lContainer,e);return
n&&null!=lc(Uh(this._lContainer),e)?new qa(n):null}_adjustIndex(i,e=0){return
null==i?this.length+e:i}};function fC(t){return t[8]}function Uh(t){return
t[8]||(t[8]=[])}function gC(t,i){let e;const n=i[t.index];if(Ei(n))e=n;else{let
s;if(8&t.type)s=Yt(n);else{const r=i[11];s=r.createComment("");const
o=Zn(t,i);lr(r,hc(r,o),s,function lM(t,i){return
$t(t)?t.nextSibling(i):i.nextSibling}(r,o),!1)}i[t.index]=e=Yb(n,i,s,t),Sc(i,e)}return new
mC(e,t,i)}class zh{constructor(i){this.queryList=i,this.matches=null}clone(){return new
zh(this.queryList)}setDirty(){this.queryList.setDirty()}}class
jh{constructor(i=[]){this.queries=i}createEmbeddedView(i){const
e=i.queries;if(null!==e){const
n=null!==i.contentQueries?i.contentQueries[0]:e.length,s=[];for(let r=0;r<n;r++){const
o=e.getByIndex(r);s.push(this.queries[o.ind
exInDeclarationView].clone())}return new jh(s)}return
null}insertView(i){this.dirtyQueriesWithMatches(i)}detachView(i){this.dirtyQueriesWithMatches(i)}dirtyQueriesWithMatches(i){for(let
e=0;e<this.queries.length;e++)null!==yC(i,e).matches&&this.queries[e].setDirty()}}class
_C{constructor(i,e,n=null){this.predicate=i,this.flags=e,this.read=n}}class
$h{constructor(i=[]){this.queries=i}elementStart(i,e){for(let
n=0;n<this.queries.length;n++)this.queries[n].elementStart(i,e)}elementEnd(i){for(let
e=0;e<this.queries.length;e++)this.queries[e].elementEnd(i)}embeddedTView(i){let
e=null;for(let n=0;n<this.length;n++){const
s=null!==e?e.length:0,r=this.getByIndex(n).embeddedTView(i,s);r&&(r.indexInDeclarationView=n,null!==e?e.push(r):e=[r])}return
null!==e?new $h(e):null}template(i,e){for(let
n=0;n<this.queries.length;n++)this.queries[n].template(i,e)}getByIndex(i){return
this.queries[i]}get length(){return
this.queries.length}track(i){this.queries.push(i)}}class Wh{constructor(i,e=-1){this.
metadata=i,this.matches=null,this.indexInDeclarationView=-1,this.crossesNgTemplate=!1,this._appliesToNextNode=!0,this._declarationNodeIndex=e}elementStart(i,e){this.isApplyingToNode(e)&&this.matchTNode(i,e)}elementEnd(i){this._declarationNodeIndex===i.index&&(this._appliesToNextNode=!1)}template(i,e){this.elementStart(i,e)}embeddedTView(i,e){return
this.isApplyingToNode(i)?(this.crossesNgTemplate=!0,this.addMatch(-i.index,e),new
Wh(this.metadata)):null}isApplyingToNode(i){if(this._appliesToNextNode&&1!=(1&this.metadata.flags)){const
e=this._declarationNodeIndex;let
n=i.parent;for(;null!==n&&8&n.type&&n.index!==e;)n=n.parent;return
e===(null!==n?n.index:-1)}return this._appliesToNextNode}matchTNode(i,e){const
n=this.metadata.predicate;if(Array.isArray(n))for(let s=0;s<n.length;s++){const
r=n[s];this.matchTNodeWithReadOption(i,e,sR(e,r)),this.matchTNodeWithReadOption(i,e,ac(e,i,r,!1,!1))}else
n===bi?4&e.type&&this.matchTNodeWithReadOption(i,e,-1):this.matchTNodeWithReadOption(i,e,ac(e
,i,n,!1,!1))}matchTNodeWithReadOption(i,e,n){if(null!==n){const
s=this.metadata.read;if(null!==s)if(s===De||s===vi||s===bi&&4&e.type)this.addMatch(e.index,-2);else{const
r=ac(e,i,s,!1,!1);null!==r&&this.addMatch(e.index,r)}else
this.addMatch(e.index,n)}}addMatch(i,e){null===this.matches?this.matches=[i,e]:this.matches.push(i,e)}}function
sR(t,i){const e=t.localNames;if(null!==e)for(let n=0;n<e.length;n+=2)if(e[n]===i)return
e[n+1];return null}function oR(t,i,e,n){return-1===e?function rR(t,i){return
11&t.type?So(t,i):4&t.type?Nc(t,i):null}(i,t):-2===e?function aR(t,i,e){return
e===De?So(i,t):e===bi?Nc(i,t):e===vi?gC(i,t):void 0}(t,i,n):ca(t,t[1],e,i)}function
bC(t,i,e,n){const s=i[19].queries[n];if(null===s.matches){const
r=t.data,o=e.matches,u=[];for(let h=0;h<o.length;h+=2){const
b=o[h];u.push(b<0?null:oR(i,r[b],o[h+1],e.metadata.read))}s.matches=u}return
s.matches}function Kh(t,i,e,n){const
s=t.queries.getByIndex(e),r=s.matches;if(null!==r){const o=bC(t,i,s,e);for(let
u=0;u<r.len
gth;u+=2){const h=r[u];if(h>0)n.push(o[u/2]);else{const b=r[u+1],y=i[-h];for(let
w=10;w<y.length;w++){const
M=y[w];M[17]===M[3]&&Kh(M[1],M,b,n)}if(null!==y[9]){const w=y[9];for(let
M=0;M<w.length;M++){const E=w[M];Kh(E[1],E,b,n)}}}}}return n}function V(t){const
i=$(),e=tt(),n=r_();ap(n+1);const
s=yC(e,n);if(t.dirty&&Zg(i)===(2==(2&s.metadata.flags))){if(null===s.matches)t.reset([]);else{const
r=s.crossesNgTemplate?Kh(e,i,n,[]):bC(e,i,s,n);t.reset(r,OE),t.notifyOnChanges()}return!0}return!1}function
W(t,i,e){const n=tt();n.firstCreatePass&&(CC(n,new
_C(t,i,e),-1),2==(2&i)&&(n.staticViewQueries=!0)),vC(n,$(),i)}function
st(t,i,e,n){const s=tt();if(s.firstCreatePass){const r=rn();CC(s,new
_C(i,e,n),r.index),function cR(t,i){const
e=t.contentQueries||(t.contentQueries=[]);i!==(e.length?e[e.length-1]:-1)&&e.push(t.queries.length-1,i)}(s,t),2==(2&e)&&(s.staticContentQueries=!0)}vC(s,$(),e)}function
B(){return function lR(t,i){return t[19].queries[i].queryList}($(),r_())}function
vC(t,i,e)
{const n=new Gh(4==(4&e));Ub(t,i,n,n.destroy),null===i[19]&&(i[19]=new
jh),i[19].queries.push(new zh(n))}function
CC(t,i,e){null===t.queries&&(t.queries=new $h),t.queries.track(new
Wh(i,e))}function yC(t,i){return t.queries.getByIndex(i)}function we(t,i){return
Nc(t,i)}function Hc(...t){}const em=new be("Application Initializer");let
tm=(()=>{class
t{constructor(e){this.appInits=e,this.resolve=Hc,this.reject=Hc,this.initialized=!1,this.done=!1,this.donePromise=new
Promise((n,s)=>{this.resolve=n,this.reject=s})}runInitializers(){if(this.initialized)return;const
e=[],n=()=>{this.done=!0,this.resolve()};if(this.appInits)for(let
s=0;s<this.appInits.length;s++){const r=this.appInits[s]();if(Ra(r))e.push(r);else
if(Dh(r)){const o=new
Promise((u,h)=>{r.subscribe({complete:u,error:h})});e.push(o)}}Promise.all(e).then(()=>{n()}).catch(s=>{this.reject(s)}),0===e.length&&n(),this.initialized=!0}}return
t.\u0275fac=function(e){return
new(e||t)(K(em,8))},t.\u0275prov=X({token:t,factory:t.\u0275f
ac,providedIn:"root"}),t})();const ja=new
be("AppId",{providedIn:"root",factory:function
VC(){return`${nm()}${nm()}${nm()}`}});function nm(){return
String.fromCharCode(97+Math.floor(25*Math.random()))}const BC=new be("Platform
Initializer"),qc=new be("Platform
ID",{providedIn:"platform",factory:()=>"unknown"}),HC=new
be("appBootstrapListener");let DR=(()=>{class
t{log(e){console.log(e)}warn(e){console.warn(e)}}return t.\u0275fac=function(e){return
new(e||t)},t.\u0275prov=X({token:t,factory:t.\u0275fac,providedIn:"platform"}),t})();const
qs=new
be("LocaleId",{providedIn:"root",factory:()=>O_(qs,xe.Optional|xe.SkipSelf)||function
MR(){return"undefined"!=typeof
$localize&&$localize.locale||Rc}()});class
IR{constructor(i,e){this.ngModuleFactory=i,this.componentFactories=e}}let
qC=(()=>{class t{compileModuleSync(e){return new Bh(e)}compileModuleAsync(e){return
Promise.resolve(this.compileModuleSync(e))}compileModuleAndAllComponentsSync(e){const
n=this.compileModuleSync(e),r=Zi(pi(e).decl
arations).reduce((o,u)=>{const h=Tn(u);return h&&o.push(new
Vh(h)),o},[]);return new IR(n,r)}compileModuleAndAllComponentsAsync(e){return
Promise.resolve(this.compileModuleAndAllComponentsSync(e))}clearCache(){}clearCacheFor(e){}getModuleId(e){}}return
t.\u0275fac=function(e){return
new(e||t)},t.\u0275prov=X({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();const
RR=(()=>Promise.resolve(0))();function im(t){"undefined"==typeof
Zone?RR.then(()=>{t&&t.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",t)}class
nt{constructor({enableLongStackTrace:i=!1,shouldCoalesceEventChangeDetection:e=!1,shouldCoalesceRunChangeDetection:n=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new
H(!1),this.onMicrotaskEmpty=new H(!1),this.onStable=new H(!1),this.onError=new
H(!1),"undefined"==typeof Zone)throw new Error("In this configuration
Angular requires Zone.js");Zone.assertZonePatched();const
s=this;s._nesting=0,s._outer=s._
inner=Zone.current,Zone.TaskTrackingZoneSpec&&(s._inner=s._inner.fork(new
Zone.TaskTrackingZoneSpec)),i&&Zone.longStackTraceZoneSpec&&(s._inner=s._inner.fork(Zone.longStackTraceZoneSpec)),s.shouldCoalesceEventChangeDetection=!n&&e,s.shouldCoalesceRunChangeDetection=n,s.lastRequestAnimationFrameId=-1,s.nativeRequestAnimationFrame=function
LR(){let
t=vt.requestAnimationFrame,i=vt.cancelAnimationFrame;if("undefined"!=typeof
Zone&&t&&i){const
e=t[Zone.__symbol__("OriginalDelegate")];e&&(t=e);const
n=i[Zone.__symbol__("OriginalDelegate")];n&&(i=n)}return{nativeRequestAnimationFrame:t,nativeCancelAnimationFrame:i}}().nativeRequestAnimationFrame,function
PR(t){const i=()=>{!function
AR(t){t.isCheckStableRunning||-1!==t.lastRequestAnimationFrameId||(t.lastRequestAnimationFrameId=t.nativeRequestAnimationFrame.call(vt,()=>{t.fakeTopEventTask||(t.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{t.lastRequestAnimationFrameId=-1,rm(t),t.isCheckStableRunning=!0,sm(t),t.isCheck
StableRunning=!1},void
0,()=>{},()=>{})),t.fakeTopEventTask.invoke()}),rm(t))}(t)};t._inner=t._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(e,n,s,r,o,u)=>{try{return
GC(t),e.invokeTask(s,r,o,u)}finally{(t.shouldCoalesceEventChangeDetection&&"eventTask"===r.type||t.shouldCoalesceRunChangeDetection)&&i(),UC(t)}},onInvoke:(e,n,s,r,o,u,h)=>{try{return
GC(t),e.invoke(s,r,o,u,h)}finally{t.shouldCoalesceRunChangeDetection&&i(),UC(t)}},onHasTask:(e,n,s,r)=>{e.hasTask(s,r),n===s&&("microTask"==r.change?(t._hasPendingMicrotasks=r.microTask,rm(t),sm(t)):"macroTask"==r.change&&(t.hasPendingMacrotasks=r.macroTask))},onHandleError:(e,n,s,r)=>(e.handleError(s,r),t.runOutsideAngular(()=>t.onError.emit(r)),!1)})}(s)}static
isInAngularZone(){return"undefined"!=typeof
Zone&&!0===Zone.current.get("isAngularZone")}static
assertInAngularZone(){if(!nt.isInAngularZone())throw new Error("Expected to be in
Angular Zone, but it is not!")}static assertNotInAngularZone(){if(nt.isInAngu
larZone())throw new Error("Expected to not be in Angular Zone, but it
is!")}run(i,e,n){return this._inner.run(i,e,n)}runTask(i,e,n,s){const
r=this._inner,o=r.scheduleEventTask("NgZoneEvent: "+s,i,OR,Hc,Hc);try{return
r.runTask(o,e,n)}finally{r.cancelTask(o)}}runGuarded(i,e,n){return
this._inner.runGuarded(i,e,n)}runOutsideAngular(i){return this._outer.run(i)}}const
OR={};function
sm(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
rm(t){t.hasPendingMicrotasks=!!(t._hasPendingMicrotasks||(t.shouldCoalesceEventChangeDetection||t.shouldCoalesceRunChangeDetection)&&-1!==t.lastRequestAnimationFrameId)}function
GC(t){t._nesting++,t.isStable&&(t.isStable=!1,t.onUnstable.emit(null))}function
UC(t){t._nesting--,sm(t)}class
FR{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isSta
ble=!0,this.onUnstable=new H,this.onMicrotaskEmpty=new H,this.onStable=new
H,this.onError=new H}run(i,e,n){return i.apply(e,n)}runGuarded(i,e,n){return
i.apply(e,n)}runOutsideAngular(i){return i()}runTask(i,e,n,s){return i.apply(e,n)}}let
om=(()=>{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:()=>{nt.assertNotInAngularZone(),im(()=>{this._isZoneStable=!0,this._runCallbacksIfReady()})}})})}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())im(()=>{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(n=>!n.updateCb||!n.updateCb(e)||(clearTimeout(n.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,n,s){let
r=-1;n&&n>0&&(r=setTimeout(()=>{this._callbacks=this._callbacks.filter(o=>o.timeoutId!==r),e(this._didWork,this.getPendingTasks())},n)),this._callbacks.push({doneCb:e,timeoutId:r,updateCb:s})}whenStable(e,n,s){if(s&&!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,n,s),this._runCallbacksIfReady()}getPendingRequestCount(){return
this._pendingCount}findProviders(e,n,s){return[]}}return t.\u0275fac=function(e){return
new(e||t)(K(nt))},t.\u0275prov=X({token:t,factory:t.\u0275fac}),t})(),NR=(()=>{class
t{constructor(){this._applications=new
Map,am.addToWindow(this)}registerApplication(e,n){this._applications.set(e,n)}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())}findTestabilityInTree(e,n=!0){return
am.findTestabilityInTree(this,e,n)}}return t.\u0275fac=function(e){return
new(e||t)},t.\u0275prov=X({token:t,factory:t.\u0275fac,providedIn:"platform"}),t})();class
VR{addToWindow(i){}findTestabilityInTr
ee(i,e,n){return null}}let am=new VR,hr=null;const zC=new
be("AllowMultipleToken"),jC=new be("PlatformOnDestroy");class
$C{constructor(i,e){this.name=i,this.token=e}}function WC(t,i,e=[]){const n=`Platform:
${i}`,s=new be(n);return(r=[])=>{let o=lm();if(!o||o.injector.get(zC,!1)){const
u=[...e,...r,{provide:s,useValue:!0}];t?t(u):function
GR(t){if(hr&&!hr.get(zC,!1))throw new re(400,"");hr=t;const
i=t.get(KC),e=t.get(BC,null);e&&e.forEach(n=>n())}(function zR(t=[],i){return
En.create({name:i,providers:[{provide:hh,useValue:"platform"},{provide:jC,useValue:()=>hr=null},...t]})}(u,n))}return
function UR(t){const i=lm();if(!i)throw new re(401,"");return i}()}}function
lm(){var t;return null!==(t=null==hr?void 0:hr.get(KC))&&void 0!==t?t:null}let
KC=(()=>{class
t{constructor(e){this._injector=e,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(e,n){const
u=function jR(t,i){let e;return e="noop"===t?new
FR:("zone.js"===t?void 0:t)||new nt({enableLongSta
ckTrace:!1,shouldCoalesceEventChangeDetection:!!(null==i?void
0:i.ngZoneEventCoalescing),shouldCoalesceRunChangeDetection:!!(null==i?void
0:i.ngZoneRunCoalescing)}),e}(n?n.ngZone:void
0,{ngZoneEventCoalescing:n&&n.ngZoneEventCoalescing||!1,ngZoneRunCoalescing:n&&n.ngZoneRunCoalescing||!1}),h=[{provide:nt,useValue:u}];return
u.run(()=>{const
b=En.create({providers:h,parent:this.injector,name:e.moduleType.name}),y=e.create(b),w=y.injector.get(xa,null);if(!w)throw
new re(402,"");return u.runOutsideAngular(()=>{const
M=u.onError.subscribe({next:E=>{w.handleError(E)}});y.onDestroy(()=>{um(this._modules,y),M.unsubscribe()})}),function
$R(t,i,e){try{const n=e();return Ra(n)?n.catch(s=>{throw
i.runOutsideAngular(()=>t.handleError(s)),s}):n}catch(n){throw
i.runOutsideAngular(()=>t.handleError(n)),n}}(w,u,()=>{const
M=y.injector.get(tm);return M.runInitializers(),M.donePromise.then(()=>(function
A3(t){Jn(t,"Expected localeId to be defined"),"string"==typeof
t&&(k1=t.toLowerCase().replace(/_/g
,"-"))}(y.injector.get(qs,Rc)||Rc),this._moduleDoBootstrap(y),y))})})}bootstrapModule(e,n=[]){const
s=QC({},n);return function HR(t,i,e){const n=new Bh(e);return
Promise.resolve(n)}(0,0,e).then(r=>this.bootstrapModuleFactory(r,s))}_moduleDoBootstrap(e){const
n=e.injector.get(cm);if(e._bootstrapComponents.length>0)e._bootstrapComponents.forEach(s=>n.bootstrap(s));else{if(!e.instance.ngDoBootstrap)throw
new
re(403,"");e.instance.ngDoBootstrap(n)}this._modules.push(e)}onDestroy(e){this._destroyListeners.push(e)}get
injector(){return this._injector}destroy(){if(this._destroyed)throw new
re(404,"");this._modules.slice().forEach(n=>n.destroy()),this._destroyListeners.forEach(n=>n());const
e=this._injector.get(jC,null);null==e||e(),this._destroyed=!0}get destroyed(){return
this._destroyed}}return t.\u0275fac=function(e){return
new(e||t)(K(En))},t.\u0275prov=X({token:t,factory:t.\u0275fac,providedIn:"platform"}),t})();function
QC(t,i){return Array.isArray(i)?i.reduce(QC,t):Object.assign(Obj
ect.assign({},t),i)}let cm=(()=>{class
t{constructor(e,n,s,r){this._zone=e,this._injector=n,this._exceptionHandler=s,this._initStatus=r,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
o=new
Je(h=>{this._stable=this._zone.isStable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks,this._zone.runOutsideAngular(()=>{h.next(this._stable),h.complete()})}),u=new
Je(h=>{let
b;this._zone.runOutsideAngular(()=>{b=this._zone.onStable.subscribe(()=>{nt.assertNotInAngularZone(),im(()=>{!this._stable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks&&(this._stable=!0,h.next(!0))})})});const
y=this._zone.onUnstable.subscribe(()=>{nt.assertInAngularZone(),this._stable&&(this._stable=!1,this._zone.runOutsideAngular(()=>{h.next(!1)}))});return()=>{b.unsubscribe(),y.un
subscribe()}});this.isStable=function YS(...t){let
i=Number.POSITIVE_INFINITY,e=null,n=t[t.length-1];return
Vr(n)?(e=t.pop(),t.length>1&&"number"==typeof
t[t.length-1]&&(i=t.pop())):"number"==typeof
n&&(i=t.pop()),null===e&&1===t.length&&t[0]instanceof
Je?t[0]:ea(i)(Pd(t,e))}(o,u.pipe(function ox(){return t=>Fd()(function ix(t,i){return
function(n){let s;if(s="function"==typeof t?t:function(){return
t},"function"==typeof i)return n.lift(new sx(s,i));const
r=Object.create(n,ex);return
r.source=n,r.subjectFactory=s,r}}(rx)(t))}()))}bootstrap(e,n){if(!this._initStatus.done)throw
new re(405,"");let s;s=e instanceof
X1?e:this._injector.get(Va).resolveComponentFactory(e),this.componentTypes.push(s.componentType);const
r=function qR(t){return t.isBoundToModule}(s)?void
0:this._injector.get(_s),u=s.create(En.NULL,[],n||s.selector,r),h=u.location.nativeElement,b=u.injector.get(om,null),y=b&&u.injector.get(NR);return
b&&y&&y.registerApplication(h,b),u.onDestroy(()=>{this.detachView(u.hostView
),um(this.components,u),y&&y.unregisterApplication(h)}),this._loadComponent(u),u}tick(){if(this._runningTick)throw
new re(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
n=e;this._views.push(n),n.attachToAppRef(this)}detachView(e){const
n=e;um(this._views,n),n.detachFromAppRef()}_loadComponent(e){this.attachView(e.hostView),this.tick(),this.components.push(e),this._injector.get(HC,[]).concat(this._bootstrapListeners).forEach(s=>s(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)(K(nt),K(En),K(xa),K(tm))},t.\u0275prov=X({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();function
um(t,i){const e=t.indexOf(i);e>-1&&t.splice(e,1)}let
YC=!0,ZC=!1,rt=(()=>{class t{}return t.__NG_
ELEMENT_ID__=JR,t})();function JR(t){return function
YR(t,i,e){if(Wl(t)&&!e){const n=Xn(t.index,i);return new qa(n,n)}return
47&t.type?new qa(i[16],i):null}(rn(),$(),16==(16&t))}class
ny{constructor(){}supports(i){return Ia(i)}create(i){return new iL(i)}}const
nL=(t,i)=>i;class
iL{constructor(i){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=i||nL}forEachItem(i){let
e;for(e=this._itHead;null!==e;e=e._next)i(e)}forEachOperation(i){let
e=this._itHead,n=this._removalsHead,s=0,r=null;for(;e||n;){const
o=!n||e&&e.currentIndex<sy(n,s,r)?e:n,u=sy(o,s,r),h=o.currentIndex;if(o===n)s--,n=n._nextRemoved;else
if(e=e._next,null==o.previousIndex)s++;else{r||(r=[]);const b=u-s,y=h-s;if(b!=y){for(let
M=0;
M<b;M++){const
E=M<r.length?r[M]:r[M]=0,L=E+M;y<=L&&L<b&&(r[M]=E+1)}r[o.previousIndex]=y-b}}u!==h&&i(o,u,h)}}forEachPreviousItem(i){let
e;for(e=this._previousItHead;null!==e;e=e._nextPrevious)i(e)}forEachAddedItem(i){let
e;for(e=this._additionsHead;null!==e;e=e._nextAdded)i(e)}forEachMovedItem(i){let
e;for(e=this._movesHead;null!==e;e=e._nextMoved)i(e)}forEachRemovedItem(i){let
e;for(e=this._removalsHead;null!==e;e=e._nextRemoved)i(e)}forEachIdentityChange(i){let
e;for(e=this._identityChangesHead;null!==e;e=e._nextIdentityChange)i(e)}diff(i){if(null==i&&(i=[]),!Ia(i))throw
new re(900,"");return
this.check(i)?this:null}onDestroy(){}check(i){this._reset();let
s,r,o,e=this._itHead,n=!1;if(Array.isArray(i)){this.length=i.length;for(let
u=0;u<this.length;u++)r=i[u],o=this._trackByFn(u,r),null!==e&&Object.is(e.trackById,o)?(n&&(e=this._verifyReinsertion(e,r,o,u)),Object.is(e.item,r)||this._addIdentityChange(e,r)):(e=this._mismatch(e,r,o,u),n=!0),e=e._next}else
s=0,function CI(t,i){if(Arra
y.isArray(t))for(let e=0;e<t.length;e++)i(t[e]);else{const e=t[lo()]();let
n;for(;!(n=e.next()).done;)i(n.value)}}(i,u=>{o=this._trackByFn(s,u),null!==e&&Object.is(e.trackById,o)?(n&&(e=this._verifyReinsertion(e,u,o,s)),Object.is(e.item,u)||this._addIdentityChange(e,u)):(e=this._mismatch(e,u,o,s),n=!0),e=e._next,s++}),this.length=s;return
this._truncate(e),this.collection=i,this.isDirty}get isDirty(){return
null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let
i;for(i=this._previousItHead=this._itHead;null!==i;i=i._next)i._nextPrevious=i._next;for(i=this._additionsHead;null!==i;i=i._nextAdded)i.previousIndex=i.currentIndex;for(this._additionsHead=this._additionsTail=null,i=this._movesHead;null!==i;i=i._nextMoved)i.previousIndex=i.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(i,e,n,s)
{let r;return
null===i?r=this._itTail:(r=i._prev,this._remove(i)),null!==(i=null===this._unlinkedRecords?null:this._unlinkedRecords.get(n,null))?(Object.is(i.item,e)||this._addIdentityChange(i,e),this._reinsertAfter(i,r,s)):null!==(i=null===this._linkedRecords?null:this._linkedRecords.get(n,s))?(Object.is(i.item,e)||this._addIdentityChange(i,e),this._moveAfter(i,r,s)):i=this._addAfter(new
sL(e,n),r,s),i}_verifyReinsertion(i,e,n,s){let
r=null===this._unlinkedRecords?null:this._unlinkedRecords.get(n,null);return
null!==r?i=this._reinsertAfter(r,i._prev,s):i.currentIndex!=s&&(i.currentIndex=s,this._addToMoves(i,s)),i}_truncate(i){for(;null!==i;){const
e=i._next;this._addToRemovals(this._unlink(i)),i=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._nextRemove
d=null),null!==this._identityChangesTail&&(this._identityChangesTail._nextIdentityChange=null)}_reinsertAfter(i,e,n){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(i);const
s=i._prevRemoved,r=i._nextRemoved;return
null===s?this._removalsHead=r:s._nextRemoved=r,null===r?this._removalsTail=s:r._prevRemoved=s,this._insertAfter(i,e,n),this._addToMoves(i,n),i}_moveAfter(i,e,n){return
this._unlink(i),this._insertAfter(i,e,n),this._addToMoves(i,n),i}_addAfter(i,e,n){return
this._insertAfter(i,e,n),this._additionsTail=null===this._additionsTail?this._additionsHead=i:this._additionsTail._nextAdded=i,i}_insertAfter(i,e,n){const
s=null===e?this._itHead:e._next;return
i._next=s,i._prev=e,null===s?this._itTail=i:s._prev=i,null===e?this._itHead=i:e._next=i,null===this._linkedRecords&&(this._linkedRecords=new
iy),this._linkedRecords.put(i),i.currentIndex=n,i}_remove(i){return
this._addToRemovals(this._unlink(i))}_unlink(i){null!==this._linkedRecords&&this._linkedRecords.remove(i);const
e=i._prev,n=i._next;return
null===e?this._itHead=n:e._next=n,null===n?this._itTail=e:n._prev=e,i}_addToMoves(i,e){return
i.previousIndex===e||(this._movesTail=null===this._movesTail?this._movesHead=i:this._movesTail._nextMoved=i),i}_addToRemovals(i){return
null===this._unlinkedRecords&&(this._unlinkedRecords=new
iy),this._unlinkedRecords.put(i),i.currentIndex=null,i._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=i,i._prevRemoved=null):(i._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=i),i}_addIdentityChange(i,e){return
i.item=e,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=i:this._identityChangesTail._nextIdentityChange=i,i}}class
sL{constructor(i,e){this.item=i,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._next
Added=null,this._nextMoved=null,this._nextIdentityChange=null}}class
rL{constructor(){this._head=null,this._tail=null}add(i){null===this._head?(this._head=this._tail=i,i._nextDup=null,i._prevDup=null):(this._tail._nextDup=i,i._prevDup=this._tail,i._nextDup=null,this._tail=i)}get(i,e){let
n;for(n=this._head;null!==n;n=n._nextDup)if((null===e||e<=n.currentIndex)&&Object.is(n.trackById,i))return
n;return null}remove(i){const e=i._prevDup,n=i._nextDup;return
null===e?this._head=n:e._nextDup=n,null===n?this._tail=e:n._prevDup=e,null===this._head}}class
iy{constructor(){this.map=new Map}put(i){const e=i.trackById;let
n=this.map.get(e);n||(n=new rL,this.map.set(e,n)),n.add(i)}get(i,e){const
s=this.map.get(i);return s?s.get(i,e):null}remove(i){const e=i.trackById;return
this.map.get(e).remove(i)&&this.map.delete(e),i}get isEmpty(){return
0===this.map.size}clear(){this.map.clear()}}function sy(t,i,e){const
n=t.previousIndex;if(null===n)return n;let s=0;return
e&&n<e.length&&(s=e[n]),n+i+s}cl
ass ry{constructor(){}supports(i){return i instanceof Map||vh(i)}create(){return new
oL}}class oL{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(i){let
e;for(e=this._mapHead;null!==e;e=e._next)i(e)}forEachPreviousItem(i){let
e;for(e=this._previousMapHead;null!==e;e=e._nextPrevious)i(e)}forEachChangedItem(i){let
e;for(e=this._changesHead;null!==e;e=e._nextChanged)i(e)}forEachAddedItem(i){let
e;for(e=this._additionsHead;null!==e;e=e._nextAdded)i(e)}forEachRemovedItem(i){let
e;for(e=this._removalsHead;null!==e;e=e._nextRemoved)i(e)}diff(i){if(i){if(!(i instanceof
Map||vh(i)))throw new re(900,"")}else i=new Map;return
this.check(i)?this:null}onDestroy(){}check(i){this._reset();
let
e=this._mapHead;if(this._appendAfter=null,this._forEach(i,(n,s)=>{if(e&&e.key===s)this._maybeAddToChanges(e,n),this._appendAfter=e,e=e._next;else{const
r=this._getOrCreateRecordForKey(s,n);e=this._insertBeforeOrAppend(e,r)}}),e){e._prev&&(e._prev._next=null),this._removalsHead=e;for(let
n=e;null!==n;n=n._nextRemoved)n===this._mapHead&&(this._mapHead=null),this._records.delete(n.key),n._nextRemoved=n._next,n.previousValue=n.currentValue,n.currentValue=null,n._prev=null,n._next=null}return
this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(i,e){if(i){const
n=i._prev;return
e._next=i,e._prev=n,i._prev=e,n&&(n._next=e),i===this._mapHead&&(this._mapHead=e),this._appendAfter=i,i}return
this._appendAfter?(this._appendAfter._next=e,e._prev=this._appendAfter):this._mapHead=e,this._appendAfter=e,null}_getOrCreateRecordForKey(i,e){if(this._records.has(i)){const
s=this._records.get(i);this._m
aybeAddToChanges(s,e);const r=s._prev,o=s._next;return
r&&(r._next=o),o&&(o._prev=r),s._next=null,s._prev=null,s}const n=new
aL(i);return
this._records.set(i,n),n.currentValue=e,this._addToAdditions(n),n}_reset(){if(this.isDirty){let
i;for(this._previousMapHead=this._mapHead,i=this._previousMapHead;null!==i;i=i._next)i._nextPrevious=i._next;for(i=this._changesHead;null!==i;i=i._nextChanged)i.previousValue=i.currentValue;for(i=this._additionsHead;null!=i;i=i._nextAdded)i.previousValue=i.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(i,e){Object.is(e,i.currentValue)||(i.previousValue=i.currentValue,i.currentValue=e,this._addToChanges(i))}_addToAdditions(i){null===this._additionsHead?this._additionsHead=this._additionsTail=i:(this._additionsTail._nextAdded=i,this._additionsTail=i)}_addToChanges(i){null===this._changesHead?this._changesHead=this._changesTail=i:(this._changesTail._nextChanged=
i,this._changesTail=i)}_forEach(i,e){i instanceof
Map?i.forEach(e):Object.keys(i).forEach(n=>e(i[n],n))}}class
aL{constructor(i){this.key=i,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
oy(){return new $a([new ny])}let $a=(()=>{class
t{constructor(e){this.factories=e}static create(e,n){if(null!=n){const
s=n.factories.slice();e=e.concat(s)}return new t(e)}static
extend(e){return{provide:t,useFactory:n=>t.create(e,n||oy()),deps:[[t,new _a,new
Ns]]}}find(e){const n=this.factories.find(s=>s.supports(e));if(null!=n)return n;throw
new re(901,"")}}return
t.\u0275prov=X({token:t,providedIn:"root",factory:oy}),t})();function
ay(){return new Wa([new ry])}let Wa=(()=>{class
t{constructor(e){this.factories=e}static create(e,n){if(n){const
s=n.factories.slice();e=e.concat(s)}return new t(e)}static
extend(e){return{provide:t,useFactory:n=>t.create(e,n||ay()),deps:[
[t,new _a,new Ns]]}}find(e){const n=this.factories.find(r=>r.supports(e));if(n)return
n;throw new re(901,"")}}return
t.\u0275prov=X({token:t,providedIn:"root",factory:ay}),t})();const
uL=WC(null,"core",[]);let dL=(()=>{class t{constructor(e){}}return
t.\u0275fac=function(e){return
new(e||t)(K(cm))},t.\u0275mod=he({type:t}),t.\u0275inj=ue({}),t})(),zc=null;function
ns(){return zc}const Xt=new be("DocumentToken");let fr=(()=>{class
t{historyGo(e){throw new Error("Not implemented")}}return
t.\u0275fac=function(e){return
new(e||t)},t.\u0275prov=X({token:t,factory:function(){return function fL(){return
K(ly)}()},providedIn:"platform"}),t})();const gL=new be("Location
Initialized");let ly=(()=>{class t extends
fr{constructor(e){super(),this._doc=e,this._init()}_init(){this.location=window.location,this._history=window.history}getBaseHrefFromDOM(){return
ns().getBaseHref(this._doc)}onPopState(e){const
n=ns().getGlobalEventTarget(this._doc,"window");return
n.addEventListener("popstate",e,!1
),()=>n.removeEventListener("popstate",e)}onHashChange(e){const
n=ns().getGlobalEventTarget(this._doc,"window");return
n.addEventListener("hashchange",e,!1),()=>n.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,n,s){cy()?this._history.pushState(e,n,s):this.location.hash=s}replaceState(e,n,s){cy()?this._history.replaceState(e,n,s):this.location.hash=s}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)(K(Xt))},t.\u0275prov=X({token:t,factory:function(){return function _L(){return
new ly(K(Xt))}()},providedIn:"platform"}),t})();funct
ion cy(){return!!window.history.pushState}function fm(t,i){if(0==t.length)return
i;if(0==i.length)return t;let e=0;return
t.endsWith("/")&&e++,i.startsWith("/")&&e++,2==e?t+i.substring(1):1==e?t+i:t+"/"+i}function
uy(t){const i=t.match(/#|\?|$/),e=i&&i.index||t.length;return
t.slice(0,e-("/"===t[e-1]?1:0))+t.slice(e)}function bs(t){return
t&&"?"!==t[0]?"?"+t:t}let ko=(()=>{class
t{historyGo(e){throw new Error("Not implemented")}}return
t.\u0275fac=function(e){return
new(e||t)},t.\u0275prov=X({token:t,factory:function(){return function bL(t){const
i=K(Xt).location;return new
dy(K(fr),i&&i.origin||"")}()},providedIn:"root"}),t})();const
gm=new be("appBaseHref");let dy=(()=>{class t extends
ko{constructor(e,n){if(super(),this._platformLocation=e,this._removeListenerFns=[],null==n&&(n=this._platformLocation.getBaseHrefFromDOM()),null==n)throw
new Error("No base href set. Please provide a value for the APP_BASE_HREF token or
add a base element to the document.");this._baseHref=n}ngOnDest
roy(){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 fm(this._baseHref,e)}path(e=!1){const
n=this._platformLocation.pathname+bs(this._platformLocation.search),s=this._platformLocation.hash;return
s&&e?`${n}${s}`:n}pushState(e,n,s,r){const
o=this.prepareExternalUrl(s+bs(r));this._platformLocation.pushState(e,n,o)}replaceState(e,n,s,r){const
o=this.prepareExternalUrl(s+bs(r));this._platformLocation.replaceState(e,n,o)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}historyGo(e=0){var
n,s;null===(s=(n=this._platformLocation).historyGo)||void 0===s||s.call(n,e)}}return
t.\u0275fac=function(e){return
new(e||t)(K(fr),K(gm,8))},t.\u0275prov=X({token:t,factory:t.\u0275fac}),t})(),vL=(()=>{class
t extends ko{constructor(e,n){super(),this._platformLocation=e
,this._baseHref="",this._removeListenerFns=[],null!=n&&(this._baseHref=n)}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 n=this._platformLocation.hash;return
null==n&&(n="#"),n.length>0?n.substring(1):n}prepareExternalUrl(e){const
n=fm(this._baseHref,e);return n.length>0?"#"+n:n}pushState(e,n,s,r){let
o=this.prepareExternalUrl(s+bs(r));0==o.length&&(o=this._platformLocation.pathname),this._platformLocation.pushState(e,n,o)}replaceState(e,n,s,r){let
o=this.prepareExternalUrl(s+bs(r));0==o.length&&(o=this._platformLocation.pathname),this._platformLocation.replaceState(e,n,o)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}historyGo(e=0){var
n,s;null===(s=(n=this._platformLocation).historyGo)||void 0===s||s.call(n,e)}}return
t.\u0275fac=function(e){re
turn
new(e||t)(K(fr),K(gm,8))},t.\u0275prov=X({token:t,factory:t.\u0275fac}),t})(),_m=(()=>{class
t{constructor(e,n){this._subject=new
H,this._urlChangeListeners=[],this._platformStrategy=e;const
s=this._platformStrategy.getBaseHref();this._platformLocation=n,this._baseHref=uy(py(s)),this._platformStrategy.onPopState(r=>{this._subject.emit({url:this.path(!0),pop:!0,state:r.state,type:r.type})})}path(e=!1){return
this.normalize(this._platformStrategy.path(e))}getState(){return
this._platformLocation.getState()}isCurrentPathEqualTo(e,n=""){return
this.path()==this.normalize(e+bs(n))}normalize(e){return t.stripTrailingSlash(function
yL(t,i){return
t&&i.startsWith(t)?i.substring(t.length):i}(this._baseHref,py(e)))}prepareExternalUrl(e){return
e&&"/"!==e[0]&&(e="/"+e),this._platformStrategy.prepareExternalUrl(e)}go(e,n="",s=null){this._platformStrategy.pushState(s,"",e,n),this._notifyUrlChangeListeners(this.prepareExternalUrl(e+bs(n)),s)}replaceState(e,n="",s=null){this._platformStrategy
.replaceState(s,"",e,n),this._notifyUrlChangeListeners(this.prepareExternalUrl(e+bs(n)),s)}forward(){this._platformStrategy.forward()}back(){this._platformStrategy.back()}historyGo(e=0){var
n,s;null===(s=(n=this._platformStrategy).historyGo)||void
0===s||s.call(n,e)}onUrlChange(e){this._urlChangeListeners.push(e),this._urlChangeSubscription||(this._urlChangeSubscription=this.subscribe(n=>{this._notifyUrlChangeListeners(n.url,n.state)}))}_notifyUrlChangeListeners(e="",n){this._urlChangeListeners.forEach(s=>s(e,n))}subscribe(e,n,s){return
this._subject.subscribe({next:e,error:n,complete:s})}}return
t.normalizeQueryParams=bs,t.joinWithSlash=fm,t.stripTrailingSlash=uy,t.\u0275fac=function(e){return
new(e||t)(K(ko),K(fr))},t.\u0275prov=X({token:t,factory:function(){return function
CL(){return new _m(K(ko),K(fr))}()},providedIn:"root"}),t})();function
py(t){return t.replace(/\/index.html$/,"")}var
Wn=(()=>((Wn=Wn||{})[Wn.Decimal=0]="Decimal",Wn[Wn.Percent=1]="Percent",Wn[Wn.Currency=2]="C
urrency",Wn[Wn.Scientific=3]="Scientific",Wn))(),ge=(()=>((ge=ge||{})[ge.Decimal=0]="Decimal",ge[ge.Group=1]="Group",ge[ge.List=2]="List",ge[ge.PercentSign=3]="PercentSign",ge[ge.PlusSign=4]="PlusSign",ge[ge.MinusSign=5]="MinusSign",ge[ge.Exponential=6]="Exponential",ge[ge.SuperscriptingExponent=7]="SuperscriptingExponent",ge[ge.PerMille=8]="PerMille",ge[ge.Infinity=9]="Infinity",ge[ge.NaN=10]="NaN",ge[ge.TimeSeparator=11]="TimeSeparator",ge[ge.CurrencyDecimal=12]="CurrencyDecimal",ge[ge.CurrencyGroup=13]="CurrencyGroup",ge))();function
Ci(t,i){const e=Hn(t),n=e[te.NumberSymbols][i];if(void
0===n){if(i===ge.CurrencyDecimal)return
e[te.NumberSymbols][ge.Decimal];if(i===ge.CurrencyGroup)return
e[te.NumberSymbols][ge.Group]}return n}const WL=/^(\d+)?\.((\d+)(-(\d+))?)?$/;function
xm(t){const i=parseInt(t);if(isNaN(i))throw new Error("Invalid integer literal when
parsing "+t);return i}function yy(t,i){i=encodeURIComponent(i);for(const e of
t.split(";")){const n=e.indexOf("="),[s,r]=-1==
n?[e,""]:[e.slice(0,n),e.slice(n+1)];if(s.trim()===i)return
decodeURIComponent(r)}return null}let Le=(()=>{class
t{constructor(e,n,s,r){this._iterableDiffers=e,this._keyValueDiffers=n,this._ngEl=s,this._renderer=r,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&&(Ia(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._keyValueDiffer.diff(this._rawClass);e&&this._applyKeyValueChanges(e)}}_applyKeyValueChanges(e){e.forEachAddedItem(n=>this._toggleClass(n.key,n.currentValue)),e.forEachChangedItem(n=>this._toggleClass(n.key,n.currentValue)),e.forEachRemovedItem(n=>{n.previousValue&&this._toggleClass(n.key,!1)})}_applyIterableChanges(e){e.forEachAddedItem(n=>{if("string"!=typeof
n.item)throw new Error(`NgClass can only toggle CSS classes expressed as strings, got
${ft(n.item)}`);this._toggleClass(n.item,!0)}),e.forEachRemovedItem(n=>this._toggleClass(n.item,!1))}_applyClasses(e){e&&(Array.isArray(e)||e
instanceof
Set?e.forEach(n=>this._toggleClass(n,!0)):Object.keys(e).forEach(n=>this._toggleClass(n,!!e[n])))}_removeClasses(e){e&&(Array.isArray(e)||e
instanceof
Set?e.forEach(n=>this._toggleClass(n,!1)):Object.keys(e).forEach(n=>this._toggleClass(n,!1)))}_toggleClass(e,n){(e=e.trim())&&e.split(/\s+/g).forEach(s=>{n?this._renderer.addClass(this._ngEl.nativeEle
ment,s):this._renderer.removeClass(this._ngEl.nativeElement,s)})}}return
t.\u0275fac=function(e){return
new(e||t)(D($a),D(Wa),D(De),D(gn))},t.\u0275dir=le({type:t,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"}}),t})();class
o4{constructor(i,e,n,s){this.$implicit=i,this.ngForOf=e,this.index=n,this.count=s}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 at=(()=>{class
t{constructor(e,n,s){this._viewContainer=e,this._template=n,this._differs=s,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;!this._differ&&e&&(this._differ=this._differs.find(e).create(this.ngForTrackBy))}if(this._differ){const
e=th
is._differ.diff(this._ngForOf);e&&this._applyChanges(e)}}_applyChanges(e){const
n=this._viewContainer;e.forEachOperation((s,r,o)=>{if(null==s.previousIndex)n.createEmbeddedView(this._template,new
o4(s.item,this._ngForOf,-1,-1),null===o?void 0:o);else if(null==o)n.remove(null===r?void
0:r);else if(null!==r){const u=n.get(r);n.move(u,o),wy(u,s)}});for(let
s=0,r=n.length;s<r;s++){const
u=n.get(s).context;u.index=s,u.count=r,u.ngForOf=this._ngForOf}e.forEachIdentityChange(s=>{wy(n.get(s.currentIndex),s)})}static
ngTemplateContextGuard(e,n){return!0}}return t.\u0275fac=function(e){return
new(e||t)(D(vi),D(bi),D($a))},t.\u0275dir=le({type:t,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"}}),t})();function
wy(t,i){t.context.$implicit=i.item}let Q=(()=>{class
t{constructor(e,n){this._viewContainer=e,this._context=new
a4,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=n
ull,this._thenTemplateRef=n}set
ngIf(e){this._context.$implicit=this._context.ngIf=e,this._updateView()}set
ngIfThen(e){Ty("ngIfThen",e),this._thenTemplateRef=e,this._thenViewRef=null,this._updateView()}set
ngIfElse(e){Ty("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,n){return!0}}return t.\u0275fac=function(e){return
new(e||t)(D(vi),D(bi))},t.\u0275dir=le({type:t,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"}}),t})();class
a4{constructor(){this.$implicit=null,this.n
gIf=null}}function Ty(t,i){if(i&&!i.createEmbeddedView)throw new Error(`${t} must
be a TemplateRef, but received '${ft(i)}'.`)}class
Mm{constructor(i,e){this._viewContainerRef=i,this._templateRef=e,this._created=!1}create(){this._created=!0,this._viewContainerRef.createEmbeddedView(this._templateRef)}destroy(){this._created=!1,this._viewContainerRef.clear()}enforceState(i){i&&!this._created?this.create():!i&&this._created&&this.destroy()}}let
gr=(()=>{class
t{constructor(){this._defaultUsed=!1,this._caseCount=0,this._lastCaseCheckIndex=0,this._lastCasesMatched=!1}set
ngSwitch(e){this._ngSwitch=e,0===this._caseCount&&this._updateDefaultCases(!0)}_addCase(){return
this._caseCount++}_addDefault(e){this._defaultViews||(this._defaultViews=[]),this._defaultViews.push(e)}_matchCase(e){const
n=e==this._ngSwitch;return
this._lastCasesMatched=this._lastCasesMatched||n,this._lastCaseCheckIndex++,this._lastCaseCheckIndex===this._caseCount&&(this._updateDefaultCases(!this._lastCasesMatched),this
._lastCaseCheckIndex=0,this._lastCasesMatched=!1),n}_updateDefaultCases(e){if(this._defaultViews&&e!==this._defaultUsed){this._defaultUsed=e;for(let
n=0;n<this._defaultViews.length;n++)this._defaultViews[n].enforceState(e)}}}return
t.\u0275fac=function(e){return
new(e||t)},t.\u0275dir=le({type:t,selectors:[["","ngSwitch",""]],inputs:{ngSwitch:"ngSwitch"}}),t})(),Ja=(()=>{class
t{constructor(e,n,s){this.ngSwitch=s,s._addCase(),this._view=new
Mm(e,n)}ngDoCheck(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase))}}return
t.\u0275fac=function(e){return
new(e||t)(D(vi),D(bi),D(gr,9))},t.\u0275dir=le({type:t,selectors:[["","ngSwitchCase",""]],inputs:{ngSwitchCase:"ngSwitchCase"}}),t})(),km=(()=>{class
t{constructor(e,n,s){s._addDefault(new Mm(e,n))}}return t.\u0275fac=function(e){return
new(e||t)(D(vi),D(bi),D(gr,9))},t.\u0275dir=le({type:t,selectors:[["","ngSwitchDefault",""]]}),t})(),lt=(()=>{class
t{constructor(e,n,s){this._ngEl=e,this._differs=n,this._renderer=s,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,n){const[s,r]=e.split(".");null!=(n=null!=n&&r?`${n}${r}`:n)?this._renderer.setStyle(this._ngEl.nativeElement,s,n):this._renderer.removeStyle(this._ngEl.nativeElement,s)}_applyChanges(e){e.forEachRemovedItem(n=>this._setStyle(n.key,null)),e.forEachAddedItem(n=>this._setStyle(n.key,n.currentValue)),e.forEachChangedItem(n=>this._setStyle(n.key,n.currentValue))}}return
t.\u0275fac=function(e){return
new(e||t)(D(De),D(Wa),D(gn))},t.\u0275dir=le({type:t,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"}}),t})(),Rt=(()=>{class
t{constructor(e){this._viewContainerRef=e,this._viewRef=null,this.ngTemplateOutletContext=null,this.ngTemplateOutlet=null}ngOnChanges(e){if(e.ngTemplateOutlet){const
n=this._viewContainerRef;this._viewRef&&n.remove(n.indexOf(thi
s._viewRef)),this._viewRef=this.ngTemplateOutlet?n.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)(D(vi))},t.\u0275dir=le({type:t,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet"},features:[fn]}),t})();function
Vi(t,i){return new re(2100,"")}class c4{createSubscription(i,e){return
i.subscribe({next:e,error:n=>{throw
n}})}dispose(i){i.unsubscribe()}onDestroy(i){i.unsubscribe()}}class
u4{createSubscription(i,e){return i.then(e,n=>{throw
n})}dispose(i){}onDestroy(i){}}const d4=new u4,p4=new c4;let xy=(()=>{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,n=>this._updateLatestValue(e,n))}_selectStrategy(e){if(Ra(e))return
d4;if(qv(e))return p4;throw
Vi()}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null}_updateLatestValue(e,n){e===this._obj&&(this._latestValue=n,this._ref.markForCheck())}}return
t.\u0275fac=function(e){return
new(e||t)(D(rt,16))},t.\u0275pipe=An({name:"async",type:t,pure:!1}),t})(),eu=(()=>{class
t{constructor(e){this._locale=e}transform(e,n,s){if(!function
Im(t){return!(null==t||""===t||t!=t)}(e))return
null;s=s||this._locale;try{return function XL(t,i,e){return function
Tm(t,i,e,n,s,r,o=!1){let u="",h=!1;if(isFinite(t)){let b=function t4(t){let
n,s,r,o,u,i=Math.abs(t)+"",e=0;for((s=i.indexOf("."))>-1&&(i=i.replace(".","")),(
r=i.search(/e/i))>0?(s<0&&(s=r),s+=+i.slice(r+1),i=i.substring(0,r)):s<0&&(s=i.length),r=0;"0"===i.charAt(r);r++);if(r===(u=i.length))n=[0],s=1;else{for(u--;"0"===i.charAt(u);)u--;for(s-=r,n=[],o=0;r<=u;r++,o++)n[o]=Number(i.charAt(r))}return
s>22&&(n=n.splice(0,21),e=s-1,s=1),{digits:n,exponent:e,integerLen:s}}(t);o&&(b=function
e4(t){if(0===t.digits[0])return t;const i=t.digits.length-t.integerLen;return
t.exponent?t.exponent+=2:(0===i?t.digits.push(0,0):1===i&&t.digits.push(0),t.integerLen+=2),t}(b));let
y=i.minInt,w=i.minFrac,M=i.maxFrac;if(r){const P=r.match(WL);if(null===P)throw new
Error(`${r} is not a valid digit info`);const
J=P[1],se=P[3],ke=P[5];null!=J&&(y=xm(J)),null!=se&&(w=xm(se)),null!=ke?M=xm(ke):null!=se&&w>M&&(M=w)}!function
n4(t,i,e){if(i>e)throw new Error(`The minimum number of digits after fraction (${i}) is
higher than the maximum (${e}).`);let n=t.digits,s=n.length-t.integerLen;const
r=Math.min(Math.max(i,s),e);let o=r+t.integerLen,u=n[o];if(o>0){n.splice(Mat
h.max(t.integerLen,o));for(let
w=o;w<n.length;w++)n[w]=0}else{s=Math.max(0,s),t.integerLen=1,n.length=Math.max(1,o=r+1),n[0]=0;for(let
w=1;w<o;w++)n[w]=0}if(u>=5)if(o-1<0){for(let
w=0;w>o;w--)n.unshift(0),t.integerLen++;n.unshift(1),t.integerLen++}else
n[o-1]++;for(;s<Math.max(0,r);s++)n.push(0);let h=0!==r;const
b=i+t.integerLen,y=n.reduceRight(function(w,M,E,L){return
L[E]=(M+=w)<10?M:M-10,h&&(0===L[E]&&E>=b?L.pop():h=!1),M>=10?1:0},0);y&&(n.unshift(y),t.integerLen++)}(b,w,M);let
E=b.digits,L=b.integerLen;const O=b.exponent;let
N=[];for(h=E.every(P=>!P);L<y;L++)E.unshift(0);for(;L<0;L++)E.unshift(0);L>0?N=E.splice(L,E.length):(N=E,E=[0]);const
G=[];for(E.length>=i.lgSize&&G.unshift(E.splice(-i.lgSize,E.length).join(""));E.length>i.gSize;)G.unshift(E.splice(-i.gSize,E.length).join(""));E.length&&G.unshift(E.join("")),u=G.join(Ci(e,n)),N.length&&(u+=Ci(e,s)+N.join("")),O&&(u+=Ci(e,ge.Exponential)+"+"+O)}else
u=Ci(e,ge.Infinity);return u=t<0&&!h?i.negPre+u+i.negSuf:i.posPre+u+i.posSu
f,u}(t,function Sm(t,i="-"){const
e={minInt:1,minFrac:0,maxFrac:0,posPre:"",posSuf:"",negPre:"",negSuf:"",gSize:0,lgSize:0},n=t.split(";"),s=n[0],r=n[1],o=-1!==s.indexOf(".")?s.split("."):[s.substring(0,s.lastIndexOf("0")+1),s.substring(s.lastIndexOf("0")+1)],u=o[0],h=o[1]||"";e.posPre=u.substr(0,u.indexOf("#"));for(let
y=0;y<h.length;y++){const
w=h.charAt(y);"0"===w?e.minFrac=e.maxFrac=y+1:"#"===w?e.maxFrac=y+1:e.posSuf+=w}const
b=u.split(",");if(e.gSize=b[1]?b[1].length:0,e.lgSize=b[2]||b[1]?(b[2]||b[1]).length:0,r){const
y=s.length-e.posPre.length-e.posSuf.length,w=r.indexOf("#");e.negPre=r.substr(0,w).replace(/'/g,""),e.negSuf=r.substr(w+y).replace(/'/g,"")}else
e.negPre=i+e.posPre,e.negSuf=e.posSuf;return e}(function bm(t,i){return
Hn(t)[te.NumberFormats][i]}(i,Wn.Decimal),Ci(i,ge.MinusSign)),i,ge.Group,ge.Decimal,e)}(function
Em(t){if("string"==typeof t&&!isNaN(Number(t)-parseFloat(t)))return
Number(t);if("number"!=typeof t)throw new Error(`${t} is not a number`);return
t}(e),
s,n)}catch(r){throw Vi()}}}return t.\u0275fac=function(e){return
new(e||t)(D(qs,16))},t.\u0275pipe=An({name:"number",type:t,pure:!0}),t})();let
My=(()=>{class t{transform(e,n,s){if(null==e)return null;if(!this.supports(e))throw
Vi();return e.slice(n,s)}supports(e){return"string"==typeof
e||Array.isArray(e)}}return t.\u0275fac=function(e){return
new(e||t)},t.\u0275pipe=An({name:"slice",type:t,pure:!1}),t})(),Fe=(()=>{class
t{}return t.\u0275fac=function(e){return
new(e||t)},t.\u0275mod=he({type:t}),t.\u0275inj=ue({}),t})();const
ky="browser";let R4=(()=>{class t{}return
t.\u0275prov=X({token:t,providedIn:"root",factory:()=>new
L4(K(Xt),window)}),t})();class
L4{constructor(i,e){this.document=i,this.window=e,this.offset=()=>[0,0]}setOffset(i){this.offset=Array.isArray(i)?()=>i:i}getScrollPosition(){return
this.supportsScrolling()?[this.window.pageXOffset,this.window.pageYOffset]:[0,0]}scrollToPosition(i){this.supportsScrolling()&&this.window.scrollTo(i[0],i[1])}scrollToAnchor(i){if(!th
is.supportsScrolling())return;const e=function O4(t,i){const
e=t.getElementById(i)||t.getElementsByName(i)[0];if(e)return
e;if("function"==typeof
t.createTreeWalker&&t.body&&(t.body.createShadowRoot||t.body.attachShadow)){const
n=t.createTreeWalker(t.body,NodeFilter.SHOW_ELEMENT);let s=n.currentNode;for(;s;){const
r=s.shadowRoot;if(r){const
o=r.getElementById(i)||r.querySelector(`[name="${i}"]`);if(o)return
o}s=n.nextNode()}}return
null}(this.document,i);e&&(this.scrollToElement(e),e.focus())}setHistoryScrollRestoration(i){if(this.supportScrollRestoration()){const
e=this.window.history;e&&e.scrollRestoration&&(e.scrollRestoration=i)}}scrollToElement(i){const
e=i.getBoundingClientRect(),n=e.left+this.window.pageXOffset,s=e.top+this.window.pageYOffset,r=this.offset();this.window.scrollTo(n-r[0],s-r[1])}supportScrollRestoration(){try{if(!this.supportsScrolling())return!1;const
i=Iy(this.window.history)||Iy(Object.getPrototypeOf(this.window.history));return!(!i||!i.writable&&!i.set)}cat
ch(i){return!1}}supportsScrolling(){try{return!!this.window&&!!this.window.scrollTo&&"pageXOffset"in
this.window}catch(i){return!1}}}function Iy(t){return
Object.getOwnPropertyDescriptor(t,"scrollRestoration")}class Ey{}class Rm
extends class A4 extends class
mL{}{constructor(){super(...arguments),this.supportsDOMEvents=!0}}{static
makeCurrent(){!function hL(t){zc||(zc=t)}(new Rm)}onAndCancel(i,e,n){return
i.addEventListener(e,n,!1),()=>{i.removeEventListener(e,n,!1)}}dispatchEvent(i,e){i.dispatchEvent(e)}remove(i){i.parentNode&&i.parentNode.removeChild(i)}createElement(i,e){return(e=e||this.getDefaultDocument()).createElement(i)}createHtmlDocument(){return
document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return
document}isElementNode(i){return i.nodeType===Node.ELEMENT_NODE}isShadowRoot(i){return i
instanceof
DocumentFragment}getGlobalEventTarget(i,e){return"window"===e?window:"document"===e?i:"body"===e?i.body:null}getBaseHref(i){const
e=function P4(){r
eturn
Ya=Ya||document.querySelector("base"),Ya?Ya.getAttribute("href"):null}();return
null==e?null:function
F4(t){tu=tu||document.createElement("a"),tu.setAttribute("href",t);const
i=tu.pathname;return"/"===i.charAt(0)?i:`/${i}`}(e)}resetBaseElement(){Ya=null}getUserAgent(){return
window.navigator.userAgent}getCookie(i){return yy(document.cookie,i)}}let tu,Ya=null;const
Ry=new be("TRANSITION_ID"),V4=[{provide:em,useFactory:function
N4(t,i,e){return()=>{e.get(tm).donePromise.then(()=>{const
n=ns(),s=i.querySelectorAll(`style[ng-transition="${t}"]`);for(let
r=0;r<s.length;r++)n.remove(s[r])})}},deps:[Ry,Xt,En],multi:!0}];class Lm{static
init(){!function BR(t){am=t}(new
Lm)}addToWindow(i){vt.getAngularTestability=(n,s=!0)=>{const
r=i.findTestabilityInTree(n,s);if(null==r)throw new Error("Could not find testability
for element.");return
r},vt.getAllAngularTestabilities=()=>i.getAllTestabilities(),vt.getAllAngularRootElements=()=>i.getAllRootElements(),vt.frameworkStabilizers||(vt.framew
orkStabilizers=[]),vt.frameworkStabilizers.push(n=>{const
s=vt.getAllAngularTestabilities();let r=s.length,o=!1;const
u=function(h){o=o||h,r--,0==r&&n(o)};s.forEach(function(h){h.whenStable(u)})})}findTestabilityInTree(i,e,n){if(null==e)return
null;const s=i.getTestability(e);return
null!=s?s:n?ns().isShadowRoot(e)?this.findTestabilityInTree(i,e.host,!0):this.findTestabilityInTree(i,e.parentElement,!0):null}}let
B4=(()=>{class t{build(){return new XMLHttpRequest}}return
t.\u0275fac=function(e){return
new(e||t)},t.\u0275prov=X({token:t,factory:t.\u0275fac}),t})();const nu=new
be("EventManagerPlugins");let iu=(()=>{class
t{constructor(e,n){this._zone=n,this._eventNameToPlugin=new
Map,e.forEach(s=>s.manager=this),this._plugins=e.slice().reverse()}addEventListener(e,n,s){return
this._findPluginFor(n).addEventListener(e,n,s)}addGlobalEventListener(e,n,s){return
this._findPluginFor(n).addGlobalEventListener(e,n,s)}getZone(){return
this._zone}_findPluginFor(e){const n=this._eventNameToPlug
in.get(e);if(n)return n;const s=this._plugins;for(let r=0;r<s.length;r++){const
o=s[r];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)(K(nu),K(nt))},t.\u0275prov=X({token:t,factory:t.\u0275fac}),t})();class
Ly{constructor(i){this._doc=i}addGlobalEventListener(i,e,n){const
s=ns().getGlobalEventTarget(this._doc,i);if(!s)throw new Error(`Unsupported event target
${s} for event ${e}`);return this.addEventListener(s,e,n)}}let Oy=(()=>{class
t{constructor(){this._stylesSet=new Set}addStyles(e){const n=new
Set;e.forEach(s=>{this._stylesSet.has(s)||(this._stylesSet.add(s),n.add(s))}),this.onStylesAdded(n)}onStylesAdded(e){}getAllStyles(){return
Array.from(this._stylesSet)}}return t.\u0275fac=function(e){return
new(e||t)},t.\u0275prov=X({token:t,factory:t.\u0275fac}),t})(),Za=(()=>{class t extends
Oy{constructor(e){super(),this._doc=e,this._hostNodes=new Map,this._hostN
odes.set(e.head,[])}_addStylesToHost(e,n,s){e.forEach(r=>{const
o=this._doc.createElement("style");o.textContent=r,s.push(n.appendChild(o))})}addHost(e){const
n=[];this._addStylesToHost(this._stylesSet,e,n),this._hostNodes.set(e,n)}removeHost(e){const
n=this._hostNodes.get(e);n&&n.forEach(Ay),this._hostNodes.delete(e)}onStylesAdded(e){this._hostNodes.forEach((n,s)=>{this._addStylesToHost(e,s,n)})}ngOnDestroy(){this._hostNodes.forEach(e=>e.forEach(Ay))}}return
t.\u0275fac=function(e){return
new(e||t)(K(Xt))},t.\u0275prov=X({token:t,factory:t.\u0275fac}),t})();function
Ay(t){ns().remove(t)}const
Om={svg:"http://www.w3.org/2000/svg",xhtml:"http://www.w3....
su(t,i,e){for(let n=0;n<i.length;n++){let
s=i[n];Array.isArray(s)?su(t,s,e):(s=s.replace(Am,t),e.push(s))}return e}function
Ny(t){return i=>{if
("__ngUnwrap__"===i)return
t;!1===t(i)&&(i.preventDefault(),i.returnValue=!1)}}let ru=(()=>{class
t{constructor(e,n,s){this.eventManager=e,this.sharedStylesHost=n,this.appId=s,this.rendererByCompId=new
Map,this.defaultRenderer=new Pm(e)}createRenderer(e,n){if(!e||!n)return
this.defaultRenderer;switch(n.encapsulation){case ki.Emulated:{let
s=this.rendererByCompId.get(n.id);return s||(s=new
j4(this.eventManager,this.sharedStylesHost,n,this.appId),this.rendererByCompId.set(n.id,s)),s.applyToHost(e),s}case
1:case ki.ShadowDom:return new
$4(this.eventManager,this.sharedStylesHost,e,n);default:if(!this.rendererByCompId.has(n.id)){const
s=su(n.id,n.styles,[]);this.sharedStylesHost.addStyles(s),this.rendererByCompId.set(n.id,this.defaultRenderer)}return
this.defaultRenderer}}begin(){}end(){}}return t.\u0275fac=function(e){return
new(e||t)(K(iu),K(Za),K(ja))},t.\u0275prov=X({token:t,factory:t.\u0275fac}),t})();class
Pm{constructor(i){this.eventManager=i,this.data=Object.create(null),this.des
troyNode=null}destroy(){}createElement(i,e){return
e?document.createElementNS(Om[e]||e,i):document.createElement(i)}createComment(i){return
document.createComment(i)}createText(i){return
document.createTextNode(i)}appendChild(i,e){i.appendChild(e)}insertBefore(i,e,n){i&&i.insertBefore(e,n)}removeChild(i,e){i&&i.removeChild(e)}selectRootElement(i,e){let
n="string"==typeof i?document.querySelector(i):i;if(!n)throw new Error(`The
selector "${i}" did not match any elements`);return
e||(n.textContent=""),n}parentNode(i){return i.parentNode}nextSibling(i){return
i.nextSibling}setAttribute(i,e,n,s){if(s){e=s+":"+e;const
r=Om[s];r?i.setAttributeNS(r,e,n):i.setAttribute(e,n)}else
i.setAttribute(e,n)}removeAttribute(i,e,n){if(n){const
s=Om[n];s?i.removeAttributeNS(s,e):i.removeAttribute(`${n}:${e}`)}else
i.removeAttribute(e)}addClass(i,e){i.classList.add(e)}removeClass(i,e){i.classList.remove(e)}setStyle(i,e,n,s){s&(ti.DashCase|ti.Important)?i.style.setProperty(e,n,s&ti.Important?"important":
""):i.style[e]=n}removeStyle(i,e,n){n&ti.DashCase?i.style.removeProperty(e):i.style[e]=""}setProperty(i,e,n){i[e]=n}setValue(i,e){i.nodeValue=e}listen(i,e,n){return"string"==typeof
i?this.eventManager.addGlobalEventListener(i,e,Ny(n)):this.eventManager.addEventListener(i,e,Ny(n))}}class
j4 extends Pm{constructor(i,e,n,s){super(i),this.component=n;const
r=su(s+"-"+n.id,n.styles,[]);e.addStyles(r),this.contentAttr=function
G4(t){return"_ngcontent-%COMP%".replace(Am,t)}(s+"-"+n.id),this.hostAttr=function
U4(t){return"_nghost-%COMP%".replace(Am,t)}(s+"-"+n.id)}applyToHost(i){super.setAttribute(i,this.hostAttr,"")}createElement(i,e){const
n=super.createElement(i,e);return
super.setAttribute(n,this.contentAttr,""),n}}class $4 extends
Pm{constructor(i,e,n,s){super(i),this.sharedStylesHost=e,this.hostEl=n,this.shadowRoot=n.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const
r=su(s.id,s.styles,[]);for(let o=0;o<r.length;o++){const
u=document.createElement("style"
);u.textContent=r[o],this.shadowRoot.appendChild(u)}}nodeOrShadowRoot(i){return
i===this.hostEl?this.shadowRoot:i}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}appendChild(i,e){return
super.appendChild(this.nodeOrShadowRoot(i),e)}insertBefore(i,e,n){return
super.insertBefore(this.nodeOrShadowRoot(i),e,n)}removeChild(i,e){return
super.removeChild(this.nodeOrShadowRoot(i),e)}parentNode(i){return
this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(i)))}}let W4=(()=>{class t
extends Ly{constructor(e){super(e)}supports(e){return!0}addEventListener(e,n,s){return
e.addEventListener(n,s,!1),()=>this.removeEventListener(e,n,s)}removeEventListener(e,n,s){return
e.removeEventListener(n,s)}}return t.\u0275fac=function(e){return
new(e||t)(K(Xt))},t.\u0275prov=X({token:t,factory:t.\u0275fac}),t})();const
By=["alt","control","meta","shift"],Q4={"\b":"Backspace","\t":"Tab","\x7f":"Delete","\x1b":"Escape",Del:"Delete",Esc:"Escape",Left:"ArrowLeft",Right:"ArrowRight",Up:"ArrowU
p",Down:"ArrowDown",Menu:"ContextMenu",Scroll:"ScrollLock",Win:"OS"},Hy={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"},J4={alt:t=>t.altKey,control:t=>t.ctrlKey,meta:t=>t.metaKey,shift:t=>t.shiftKey};let
Y4=(()=>{class t extends Ly{constructor(e){super(e)}supports(e){return
null!=t.parseEventName(e)}addEventListener(e,n,s){const
r=t.parseEventName(n),o=t.eventCallback(r.fullKey,s,this.manager.getZone());return
this.manager.getZone().runOutsideAngular(()=>ns().onAndCancel(e,r.domEventName,o))}static
parseEventName(e){const
n=e.toLowerCase().split("."),s=n.shift();if(0===n.length||"keydown"!==s&&"keyup"!==s)return
null;const r=t._normalizeKey(n.pop());let o="";if(By.forEach(h=>{const
b=n.indexOf(h);b>-1&&(n.splice(b,1),o+=h+".")}),o+=r,0!=n.length||0===r.length)return
null;const u={};return u.domEventName=s,u.fullKey=o,u}static getEventFullKey(e){let
n="",s=function Z4(t){let i=t.key;if(null==i){if(i=t.keyIdentifier,null==
i)return"Unidentified";i.startsWith("U+")&&(i=String.fromCharCode(parseInt(i.substring(2),16)),3===t.location&&Hy.hasOwnProperty(i)&&(i=Hy[i]))}return
Q4[i]||i}(e);return s=s.toLowerCase(),"
"===s?s="space":"."===s&&(s="dot"),By.forEach(r=>{r!=s&&J4[r](e)&&(n+=r+".")}),n+=s,n}static
eventCallback(e,n,s){return
r=>{t.getEventFullKey(r)===e&&s.runGuarded(()=>n(r))}}static
_normalizeKey(e){return"esc"===e?"escape":e}}return
t.\u0275fac=function(e){return
new(e||t)(K(Xt))},t.\u0275prov=X({token:t,factory:t.\u0275fac}),t})();const
nO=WC(uL,"browser",[{provide:qc,useValue:ky},{provide:BC,useValue:function
X4(){Rm.makeCurrent(),Lm.init()},multi:!0},{provide:Xt,useFactory:function tO(){return
function
Px(t){Zd=t}(document),document},deps:[]}]),iO=[{provide:hh,useValue:"root"},{provide:xa,useFactory:function
eO(){return new
xa},deps:[]},{provide:nu,useClass:W4,multi:!0,deps:[Xt,nt,qc]},{provide:nu,useClass:Y4,multi:!0,deps:[Xt]},{provide:ru,useClass:ru,deps:[iu,Za,ja]},{provide:Ba,useExistin
g:ru},{provide:Oy,useExisting:Za},{provide:Za,useClass:Za,deps:[Xt]},{provide:om,useClass:om,deps:[nt]},{provide:iu,useClass:iu,deps:[nu,nt]},{provide:Ey,useClass:B4,deps:[]}];let
qy=(()=>{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:ja,useValue:e.appId},{provide:Ry,useExisting:ja},V4]}}}return
t.\u0275fac=function(e){return
new(e||t)(K(t,12))},t.\u0275mod=he({type:t}),t.\u0275inj=ue({providers:iO,imports:[Fe,dL]}),t})();function
oe(...t){let i=t[t.length-1];return Vr(i)?(t.pop(),Ad(t,i)):Pd(t)}function _r(t,i){return
yn(t,i,1)}function Us(t,i){return function(n){return n.lift(new
mO(t,i))}}"undefined"!=typeof window&&window;class
mO{constructor(i,e){this.predicate=i,this.thisArg=e}call(i,e){return e.subscribe(new
fO(i,this.predicate,this.thisArg))}}class fO
extends
yt{constructor(i,e,n){super(i),this.predicate=e,this.thisArg=n,this.count=0}_next(i){let
e;try{e=this.predicate.call(this.thisArg,i,this.count++)}catch(n){return void
this.destination.error(n)}e&&this.destination.next(i)}}class zy{}class jy{}class
Cs{constructor(i){this.normalizedNames=new
Map,this.lazyUpdate=null,i?this.lazyInit="string"==typeof
i?()=>{this.headers=new Map,i.split("\n").forEach(e=>{const
n=e.indexOf(":");if(n>0){const
s=e.slice(0,n),r=s.toLowerCase(),o=e.slice(n+1).trim();this.maybeSetNormalizedName(s,r),this.headers.has(r)?this.headers.get(r).push(o):this.headers.set(r,[o])}})}:()=>{this.headers=new
Map,Object.keys(i).forEach(e=>{let n=i[e];const
s=e.toLowerCase();"string"==typeof
n&&(n=[n]),n.length>0&&(this.headers.set(s,n),this.maybeSetNormalizedName(e,s))})}:this.headers=new
Map}has(i){return this.init(),this.headers.has(i.toLowerCase())}get(i){this.init();const
e=this.headers.get(i.toLowerCase());return
e&&e.length>0?e[0]:null}keys(){return this.init
(),Array.from(this.normalizedNames.values())}getAll(i){return
this.init(),this.headers.get(i.toLowerCase())||null}append(i,e){return
this.clone({name:i,value:e,op:"a"})}set(i,e){return
this.clone({name:i,value:e,op:"s"})}delete(i,e){return
this.clone({name:i,value:e,op:"d"})}maybeSetNormalizedName(i,e){this.normalizedNames.has(e)||this.normalizedNames.set(e,i)}init(){this.lazyInit&&(this.lazyInit
instanceof
Cs?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(i=>this.applyUpdate(i)),this.lazyUpdate=null))}copyFrom(i){i.init(),Array.from(i.headers.keys()).forEach(e=>{this.headers.set(e,i.headers.get(e)),this.normalizedNames.set(e,i.normalizedNames.get(e))})}clone(i){const
e=new Cs;return e.lazyInit=this.lazyInit&&this.lazyInit instanceof
Cs?this.lazyInit:this,e.lazyUpdate=(this.lazyUpdate||[]).concat([i]),e}applyUpdate(i){const
e=i.name.toLowerCase();switch(i.op){case"a":case"s":let
n=i.value;if("string"==typeof n&&(n=[n]),0===n
.length)return;this.maybeSetNormalizedName(i.name,e);const
s=("a"===i.op?this.headers.get(e):void
0)||[];s.push(...n),this.headers.set(e,s);break;case"d":const
r=i.value;if(r){let
o=this.headers.get(e);if(!o)return;o=o.filter(u=>-1===r.indexOf(u)),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(i){this.init(),Array.from(this.normalizedNames.keys()).forEach(e=>i(this.normalizedNames.get(e),this.headers.get(e)))}}class
gO{encodeKey(i){return $y(i)}encodeValue(i){return $y(i)}decodeKey(i){return
decodeURIComponent(i)}decodeValue(i){return decodeURIComponent(i)}}const
bO=/%(\d[a-f0-9])/gi,vO={40:"@","3A":":",24:"$","2C":",","3B":";","2B":"+","3D":"=","3F":"?","2F":"/"};function
$y(t){return encodeURIComponent(t).replace(bO,(i,e)=>{var n;return
null!==(n=vO[e])&&void 0!==n?n:i})}function Wy(t){return`${t}`}class
ye{constructor(i={}){if(this.updates=null,this.cloneFrom=null,this.
encoder=i.encoder||new gO,i.fromString){if(i.fromObject)throw new Error("Cannot
specify both fromString and fromObject.");this.map=function _O(t,i){const e=new
Map;return
t.length>0&&t.replace(/^\?/,"").split("&").forEach(s=>{const
r=s.indexOf("="),[o,u]=-1==r?[i.decodeKey(s),""]:[i.decodeKey(s.slice(0,r)),i.decodeValue(s.slice(r+1))],h=e.get(o)||[];h.push(u),e.set(o,h)}),e}(i.fromString,this.encoder)}else
i.fromObject?(this.map=new Map,Object.keys(i.fromObject).forEach(e=>{const
n=i.fromObject[e];this.map.set(e,Array.isArray(n)?n:[n])})):this.map=null}has(i){return
this.init(),this.map.has(i)}get(i){this.init();const e=this.map.get(i);return
e?e[0]:null}getAll(i){return this.init(),this.map.get(i)||null}keys(){return
this.init(),Array.from(this.map.keys())}append(i,e){return
this.clone({param:i,value:e,op:"a"})}appendAll(i){const e=[];return
Object.keys(i).forEach(n=>{const
s=i[n];Array.isArray(s)?s.forEach(r=>{e.push({param:n,value:r,op:"a"})}):e.push({param:n,value:s,op:"a"})}),t
his.clone(e)}set(i,e){return
this.clone({param:i,value:e,op:"s"})}delete(i,e){return
this.clone({param:i,value:e,op:"d"})}toString(){return
this.init(),this.keys().map(i=>{const e=this.encoder.encodeKey(i);return
this.map.get(i).map(n=>e+"="+this.encoder.encodeValue(n)).join("&")}).filter(i=>""!==i).join("&")}clone(i){const
e=new ye({encoder:this.encoder});return
e.cloneFrom=this.cloneFrom||this,e.updates=(this.updates||[]).concat(i),e}init(){null===this.map&&(this.map=new
Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(i=>this.map.set(i,this.cloneFrom.map.get(i))),this.updates.forEach(i=>{switch(i.op){case"a":case"s":const
e=("a"===i.op?this.map.get(i.param):void
0)||[];e.push(Wy(i.value)),this.map.set(i.param,e);break;case"d":if(void
0===i.value){this.map.delete(i.param);break}{let n=this.map.get(i.param)||[];const
s=n.indexOf(Wy(i.value));-1!==s&&n.splice(s,1),n.length>0?this.map.set(i.param,n):this.map.delete(i.param)}}}),this.cloneFrom=this.upda
tes=null)}}class CO{constructor(){this.map=new Map}set(i,e){return
this.map.set(i,e),this}get(i){return
this.map.has(i)||this.map.set(i,i.defaultValue()),this.map.get(i)}delete(i){return
this.map.delete(i),this}has(i){return this.map.has(i)}keys(){return
this.map.keys()}}function Ky(t){return"undefined"!=typeof ArrayBuffer&&t
instanceof ArrayBuffer}function Qy(t){return"undefined"!=typeof Blob&&t
instanceof Blob}function Jy(t){return"undefined"!=typeof FormData&&t
instanceof FormData}class Xa{constructor(i,e,n,s){let
r;if(this.url=e,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=i.toUpperCase(),function
yO(t){switch(t){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||s?(this.body=void
0!==n?n:null,r=s):r=n,r&&(this.reportProgress=!!r.reportProgress,this.withCredentials=!!r.withCredentials,r.responseType&&(this.responseType=r.responseType),r.headers&&(this.headers=r.headers),r.con
text&&(this.context=r.context),r.params&&(this.params=r.params)),this.headers||(this.headers=new
Cs),this.context||(this.context=new CO),this.params){const
o=this.params.toString();if(0===o.length)this.urlWithParams=e;else{const
u=e.indexOf("?");this.urlWithParams=e+(-1===u?"?":u<e.length-1?"&":"")+o}}else
this.params=new ye,this.urlWithParams=e}serializeBody(){return
null===this.body?null:Ky(this.body)||Qy(this.body)||Jy(this.body)||function
wO(t){return"undefined"!=typeof URLSearchParams&&t instanceof
URLSearchParams}(this.body)||"string"==typeof this.body?this.body:this.body
instanceof ye?this.body.toString():"object"==typeof
this.body||"boolean"==typeof
this.body||Array.isArray(this.body)?JSON.stringify(this.body):this.body.toString()}detectContentTypeHeader(){return
null===this.body||Jy(this.body)?null:Qy(this.body)?this.body.type||null:Ky(this.body)?null:"string"==typeof
this.body?"text/plain":this.body instanceof
ye?"application/x-www-form-urlencoded;charset=UTF-8":"object"==
typeof this.body||"number"==typeof this.body||"boolean"==typeof
this.body?"application/json":null}clone(i={}){var e;const
n=i.method||this.method,s=i.url||this.url,r=i.responseType||this.responseType,o=void
0!==i.body?i.body:this.body,u=void
0!==i.withCredentials?i.withCredentials:this.withCredentials,h=void
0!==i.reportProgress?i.reportProgress:this.reportProgress;let
b=i.headers||this.headers,y=i.params||this.params;const
w=null!==(e=i.context)&&void 0!==e?e:this.context;return void
0!==i.setHeaders&&(b=Object.keys(i.setHeaders).reduce((M,E)=>M.set(E,i.setHeaders[E]),b)),i.setParams&&(y=Object.keys(i.setParams).reduce((M,E)=>M.set(E,i.setParams[E]),y)),new
Xa(n,s,o,{params:y,headers:b,context:w,reportProgress:h,responseType:r,withCredentials:u})}}var
nn=(()=>((nn=nn||{})[nn.Sent=0]="Sent",nn[nn.UploadProgress=1]="UploadProgress",nn[nn.ResponseHeader=2]="ResponseHeader",nn[nn.DownloadProgress=3]="DownloadProgress",nn[nn.Response=4]="Response",nn[nn.User=5]="User",nn))();class
Nm{co
nstructor(i,e=200,n="OK"){this.headers=i.headers||new Cs,this.status=void
0!==i.status?i.status:e,this.statusText=i.statusText||n,this.url=i.url||null,this.ok=this.status>=200&&this.status<300}}class
Vm extends Nm{constructor(i={}){super(i),this.type=nn.ResponseHeader}clone(i={}){return
new Vm({headers:i.headers||this.headers,status:void
0!==i.status?i.status:this.status,statusText:i.statusText||this.statusText,url:i.url||this.url||void
0})}}class ou extends Nm{constructor(i={}){super(i),this.type=nn.Response,this.body=void
0!==i.body?i.body:null}clone(i={}){return new ou({body:void
0!==i.body?i.body:this.body,headers:i.headers||this.headers,status:void
0!==i.status?i.status:this.status,statusText:i.statusText||this.statusText,url:i.url||this.url||void
0})}}class Yy extends Nm{constructor(i){super(i,0,"Unknown
Error"),this.name="HttpErrorResponse",this.ok=!1,this.message=this.status>=200&&this.status<300?`Http
failure during parsing for ${i.url||"(unknown url)"}`:`Http failure respo
nse for ${i.url||"(unknown url)"}: ${i.status}
${i.statusText}`,this.error=i.error||null}}function
Bm(t,i){return{body:i,headers:t.headers,context:t.context,observe:t.observe,params:t.params,reportProgress:t.reportProgress,responseType:t.responseType,withCredentials:t.withCredentials}}let
Bi=(()=>{class t{constructor(e){this.handler=e}request(e,n,s={}){let r;if(e instanceof
Xa)r=e;else{let h,b;h=s.headers instanceof Cs?s.headers:new
Cs(s.headers),s.params&&(b=s.params instanceof ye?s.params:new
ye({fromObject:s.params})),r=new Xa(e,n,void
0!==s.body?s.body:null,{headers:h,context:s.context,params:b,reportProgress:s.reportProgress,responseType:s.responseType||"json",withCredentials:s.withCredentials})}const
o=oe(r).pipe(_r(h=>this.handler.handle(h)));if(e instanceof
Xa||"events"===s.observe)return o;const u=o.pipe(Us(h=>h instanceof
ou));switch(s.observe||"body"){case"body":switch(r.responseType){case"arraybuffer":return
u.pipe(et(h=>{if(null!==h.body&&!(h.body instanceof ArrayBuffer
))throw new Error("Response is not an ArrayBuffer.");return
h.body}));case"blob":return u.pipe(et(h=>{if(null!==h.body&&!(h.body
instanceof Blob))throw new Error("Response is not a Blob.");return
h.body}));case"text":return
u.pipe(et(h=>{if(null!==h.body&&"string"!=typeof h.body)throw new
Error("Response is not a string.");return h.body}));default:return
u.pipe(et(h=>h.body))}case"response":return u;default:throw new
Error(`Unreachable: unhandled observe type ${s.observe}}`)}}delete(e,n={}){return
this.request("DELETE",e,n)}get(e,n={}){return
this.request("GET",e,n)}head(e,n={}){return
this.request("HEAD",e,n)}jsonp(e,n){return
this.request("JSONP",e,{params:(new
ye).append(n,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(e,n={}){return
this.request("OPTIONS",e,n)}patch(e,n,s={}){return
this.request("PATCH",e,Bm(s,n))}post(e,n,s={}){return
this.request("POST",e,Bm(s,n))}put(e,n,s={}){return
this.request("PUT",e,Bm(s,n))}}return t.\u0275fac=function(e){return new(e||t
)(K(zy))},t.\u0275prov=X({token:t,factory:t.\u0275fac}),t})();class
Zy{constructor(i,e){this.next=i,this.interceptor=e}handle(i){return
this.interceptor.intercept(i,this.next)}}const Xy=new
be("HTTP_INTERCEPTORS");let TO=(()=>{class t{intercept(e,n){return
n.handle(e)}}return t.\u0275fac=function(e){return
new(e||t)},t.\u0275prov=X({token:t,factory:t.\u0275fac}),t})();const
SO=/^\)\]\}',?\n/;let e0=(()=>{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 Je(n=>{const
s=this.xhrFactory.build();if(s.open(e.method,e.urlWithParams),e.withCredentials&&(s.withCredentials=!0),e.headers.forEach((E,L)=>s.setRequestHeader(E,L.join(","))),e.headers.has("Accept")||s.setRequestHeader("Accept","application/json,
text/plain, */*"),!e.headers.has("Content-Type")){const
E=e.detectContentTypeHeader();null!==E&&s.setRequestHeader("Content-Type",E)}if(e.responseType){const
E
=e.responseType.toLowerCase();s.responseType="json"!==E?E:"text"}const
r=e.serializeBody();let o=null;const u=()=>{if(null!==o)return o;const
E=s.statusText||"OK",L=new Cs(s.getAllResponseHeaders()),O=function
xO(t){return"responseURL"in
t&&t.responseURL?t.responseURL:/^X-Request-URL:/m.test(t.getAllResponseHeaders())?t.getResponseHeader("X-Request-URL"):null}(s)||e.url;return
o=new
Vm({headers:L,status:s.status,statusText:E,url:O}),o},h=()=>{let{headers:E,status:L,statusText:O,url:N}=u(),G=null;204!==L&&(G=void
0===s.response?s.responseText:s.response),0===L&&(L=G?200:0);let
P=L>=200&&L<300;if("json"===e.responseType&&"string"==typeof
G){const
J=G;G=G.replace(SO,"");try{G=""!==G?JSON.parse(G):null}catch(se){G=J,P&&(P=!1,G={error:se,text:G})}}P?(n.next(new
ou({body:G,headers:E,status:L,statusText:O,url:N||void 0})),n.complete()):n.error(new
Yy({error:G,headers:E,status:L,statusText:O,url:N||void
0}))},b=E=>{const{url:L}=u(),O=new
Yy({error:E,status:s.status||0,statusText:s.statusTex
t||"Unknown Error",url:L||void 0});n.error(O)};let y=!1;const
w=E=>{y||(n.next(u()),y=!0);let
L={type:nn.DownloadProgress,loaded:E.loaded};E.lengthComputable&&(L.total=E.total),"text"===e.responseType&&!!s.responseText&&(L.partialText=s.responseText),n.next(L)},M=E=>{let
L={type:nn.UploadProgress,loaded:E.loaded};E.lengthComputable&&(L.total=E.total),n.next(L)};return
s.addEventListener("load",h),s.addEventListener("error",b),s.addEventListener("timeout",b),s.addEventListener("abort",b),e.reportProgress&&(s.addEventListener("progress",w),null!==r&&s.upload&&s.upload.addEventListener("progress",M)),s.send(r),n.next({type:nn.Sent}),()=>{s.removeEventListener("error",b),s.removeEventListener("abort",b),s.removeEventListener("load",h),s.removeEventListener("timeout",b),e.reportProgress&&(s.removeEventListener("progress",w),null!==r&&s.upload&&s.upload.removeEventListener("progress",M)),s.readyState!==s.DONE&&s.abort()}})}}return
t.\u0275fac=function(e){return new(e||t)(K(Ey))},t.\u0275p
rov=X({token:t,factory:t.\u0275fac}),t})();const Hm=new
be("XSRF_COOKIE_NAME"),qm=new be("XSRF_HEADER_NAME");class t0{}let
DO=(()=>{class
t{constructor(e,n,s){this.doc=e,this.platform=n,this.cookieName=s,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=yy(e,this.cookieName),this.lastCookieString=e),this.lastToken}}return
t.\u0275fac=function(e){return
new(e||t)(K(Xt),K(qc),K(Hm))},t.\u0275prov=X({token:t,factory:t.\u0275fac}),t})(),Gm=(()=>{class
t{constructor(e,n){this.tokenService=e,this.headerName=n}intercept(e,n){const
s=e.url.toLowerCase();if("GET"===e.method||"HEAD"===e.method||s.startsWith("http://")||s.startsWith("https://"))return
n.handle(e);const r=this.tokenService.getToken();return
null!==r&&!e.headers.has(this.headerName)&&(e=e.clone({headers:e.headers.set(this.headerName,r)})),n.handle(e)}}return
t.\u0275fac=f
unction(e){return
new(e||t)(K(t0),K(qm))},t.\u0275prov=X({token:t,factory:t.\u0275fac}),t})(),MO=(()=>{class
t{constructor(e,n){this.backend=e,this.injector=n,this.chain=null}handle(e){if(null===this.chain){const
n=this.injector.get(Xy,[]);this.chain=n.reduceRight((s,r)=>new
Zy(s,r),this.backend)}return this.chain.handle(e)}}return t.\u0275fac=function(e){return
new(e||t)(K(jy),K(En))},t.\u0275prov=X({token:t,factory:t.\u0275fac}),t})(),kO=(()=>{class
t{static disable(){return{ngModule:t,providers:[{provide:Gm,useClass:TO}]}}static
withOptions(e={}){return{ngModule:t,providers:[e.cookieName?{provide:Hm,useValue:e.cookieName}:[],e.headerName?{provide:qm,useValue:e.headerName}:[]]}}}return
t.\u0275fac=function(e){return
new(e||t)},t.\u0275mod=he({type:t}),t.\u0275inj=ue({providers:[Gm,{provide:Xy,useExisting:Gm,multi:!0},{provide:t0,useClass:DO},{provide:Hm,useValue:"XSRF-TOKEN"},{provide:qm,useValue:"X-XSRF-TOKEN"}]}),t})(),IO=(()=>{class
t{}return t.\u0275fac=function(e){return new(
e||t)},t.\u0275mod=he({type:t}),t.\u0275inj=ue({providers:[Bi,{provide:zy,useClass:MO},e0,{provide:jy,useExisting:e0}],imports:[[kO.withOptions({cookieName:"XSRF-TOKEN",headerName:"X-XSRF-TOKEN"})]]}),t})();function
is(t){return!!t&&(t instanceof Je||"function"==typeof
t.lift&&"function"==typeof t.subscribe)}function
n0(...t){if(1===t.length){const i=t[0];if(Nr(i))return
au(i,null);if(Ld(i)&&Object.getPrototypeOf(i)===Object.prototype){const
e=Object.keys(i);return au(e.map(n=>i[n]),e)}}if("function"==typeof
t[t.length-1]){const i=t.pop();return
au(t=1===t.length&&Nr(t[0])?t[0]:t,null).pipe(et(e=>i(...e)))}return
au(t,null)}function au(t,i){return new Je(e=>{const n=t.length;if(0===n)return void
e.complete();const s=new Array(n);let r=0,o=0;for(let u=0;u<n;u++){const h=Mn(t[u]);let
b=!1;e.add(h.subscribe({next:y=>{b||(b=!0,o++),s[u]=y},error:y=>e.error(y),complete:()=>{r++,(r===n||!b)&&(o===n&&e.next(i?i.reduce((y,w,M)=>(y[w]=s[M],y),{}):s),e.complete())}}))}})}function
el(...t){ret
urn function EO(){return ea(1)}()(oe(...t))}const Io=new Je(t=>t.complete());function
lu(t){return t?function RO(t){return new
Je(i=>t.schedule(()=>i.complete()))}(t):Io}function cu(t){return new Je(i=>{let
e;try{e=t()}catch(s){return void i.error(s)}return(e?Mn(e):lu()).subscribe(i)})}const
s0=(()=>{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 br(t){return
i=>0===t?lu():i.lift(new LO(t))}class
LO{constructor(i){if(this.total=i,this.total<0)throw new s0}call(i,e){return
e.subscribe(new OO(i,this.total))}}class OO extends
yt{constructor(i,e){super(i),this.total=e,this.count=0}_next(i){const
e=this.total,n=++this.count;n<=e&&(this.destination.next(i),n===e&&(this.destination.complete(),this.unsubscribe()))}}class
AO extends Et{constructor(i,e){super()}schedule(i,e=0){return this}}class uu extends
AO{constructor(i,e){super(i,e),this.scheduler=i,this.wor
k=e,this.pending=!1}schedule(i,e=0){if(this.closed)return this;this.state=i;const
n=this.id,s=this.scheduler;return
null!=n&&(this.id=this.recycleAsyncId(s,n,e)),this.pending=!0,this.delay=e,this.id=this.id||this.requestAsyncId(s,this.id,e),this}requestAsyncId(i,e,n=0){return
setInterval(i.flush.bind(i,this),n)}recycleAsyncId(i,e,n=0){if(null!==n&&this.delay===n&&!1===this.pending)return
e;clearInterval(e)}execute(i,e){if(this.closed)return new Error("executing a
cancelled action");this.pending=!1;const n=this._execute(i,e);if(n)return
n;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(i,e){let
s,n=!1;try{this.work(i)}catch(r){n=!0,s=!!r&&r||new Error(r)}if(n)return
this.unsubscribe(),s}_unsubscribe(){const
i=this.id,e=this.scheduler,n=e.actions,s=n.indexOf(this);this.work=null,this.state=null,this.pending=!1,this.scheduler=null,-1!==s&&n.splice(s,1),null!=i&&(this.id=this.recycleAsyncId(e,i,null)),this.delay=null}}let
r0=(()=>{cl
ass t{constructor(e,n=t.now){this.SchedulerAction=e,this.now=n}schedule(e,n=0,s){return
new this.SchedulerAction(this,e).schedule(s,n)}}return t.now=()=>Date.now(),t})();class
Hi extends
r0{constructor(i,e=r0.now){super(i,()=>Hi.delegate&&Hi.delegate!==this?Hi.delegate.now():e()),this.actions=[],this.active=!1,this.scheduled=void
0}schedule(i,e=0,n){return
Hi.delegate&&Hi.delegate!==this?Hi.delegate.schedule(i,e,n):super.schedule(i,e,n)}flush(i){const{actions:e}=this;if(this.active)return
void e.push(i);let
n;this.active=!0;do{if(n=i.execute(i.state,i.delay))break}while(i=e.shift());if(this.active=!1,n){for(;i=e.shift();)i.unsubscribe();throw
n}}}const NO=new class FO extends Hi{}(class PO extends
uu{constructor(i,e){super(i,e),this.scheduler=i,this.work=e}schedule(i,e=0){return
e>0?super.schedule(i,e):(this.delay=e,this.state=i,this.scheduler.flush(this),this)}execute(i,e){return
e>0||this.closed?super.execute(i,e):this._execute(i,e)}requestAsyncId(i,e,n=0){return
null!==n&&n>0||nu
ll===n&&this.delay>0?super.requestAsyncId(i,e,n):i.flush(this)}});function
tl(t,i){return new
Je(i?e=>i.schedule(VO,0,{error:t,subscriber:e}):e=>e.error(t))}function
VO({error:t,subscriber:i}){i.error(t)}class
Kn{constructor(i,e,n){this.kind=i,this.value=e,this.error=n,this.hasValue="N"===i}observe(i){switch(this.kind){case"N":return
i.next&&i.next(this.value);case"E":return
i.error&&i.error(this.error);case"C":return
i.complete&&i.complete()}}do(i,e,n){switch(this.kind){case"N":return
i&&i(this.value);case"E":return
e&&e(this.error);case"C":return n&&n()}}accept(i,e,n){return
i&&"function"==typeof
i.next?this.observe(i):this.do(i,e,n)}toObservable(){switch(this.kind){case"N":return
oe(this.value);case"E":return tl(this.error);case"C":return lu()}throw
new Error("unexpected notification kind value")}static createNext(i){return void
0!==i?new Kn("N",i):Kn.undefinedValueNotification}static createError(i){return
new Kn("E",void 0,i)}static createComplete(){return Kn.completeNotificatio
n}}Kn.completeNotification=new Kn("C"),Kn.undefinedValueNotification=new
Kn("N",void 0);class du extends
yt{constructor(i,e,n=0){super(i),this.scheduler=e,this.delay=n}static
dispatch(i){const{notification:e,destination:n}=i;e.observe(n),this.unsubscribe()}scheduleMessage(i){this.destination.add(this.scheduler.schedule(du.dispatch,this.delay,new
HO(i,this.destination)))}_next(i){this.scheduleMessage(Kn.createNext(i))}_error(i){this.scheduleMessage(Kn.createError(i)),this.unsubscribe()}_complete(){this.scheduleMessage(Kn.createComplete()),this.unsubscribe()}}class
HO{constructor(i,e){this.notification=i,this.destination=e}}class qO extends
ct{constructor(i=Number.POSITIVE_INFINITY,e=Number.POSITIVE_INFINITY,n){super(),this.scheduler=n,this._events=[],this._infiniteTimeWindow=!1,this._bufferSize=i<1?1:i,this._windowTime=e<1?1:e,e===Number.POSITIVE_INFINITY?(this._infiniteTimeWindow=!0,this.next=this.nextInfiniteTimeWindow):this.next=this.nextTimeWindow}nextInfiniteTimeWindow(i){if(!th
is.isStopped){const
e=this._events;e.push(i),e.length>this._bufferSize&&e.shift()}super.next(i)}nextTimeWindow(i){this.isStopped||(this._events.push(new
GO(this._getNow(),i)),this._trimBufferThenGetEvents()),super.next(i)}_subscribe(i){const
e=this._infiniteTimeWindow,n=e?this._events:this._trimBufferThenGetEvents(),s=this.scheduler,r=n.length;let
o;if(this.closed)throw new
nr;if(this.isStopped||this.hasError?o=Et.EMPTY:(this.observers.push(i),o=new
Eg(this,i)),s&&i.add(i=new du(i,s)),e)for(let
u=0;u<r&&!i.closed;u++)i.next(n[u]);else for(let
u=0;u<r&&!i.closed;u++)i.next(n[u].value);return
this.hasError?i.error(this.thrownError):this.isStopped&&i.complete(),o}_getNow(){return(this.scheduler||NO).now()}_trimBufferThenGetEvents(){const
i=this._getNow(),e=this._bufferSize,n=this._windowTime,s=this._events,r=s.length;let
o=0;for(;o<r&&!(i-s[o].time<n);)o++;return
r>e&&(o=Math.max(o,r-e)),o>0&&s.splice(0,o),s}}class
GO{constructor(i,e){this.time=i,this.value=e}}function Um(t,i,e){let n;
return n=t&&"object"==typeof
t?t:{bufferSize:t,windowTime:i,refCount:!1,scheduler:e},s=>s.lift(function
UO({bufferSize:t=Number.POSITIVE_INFINITY,windowTime:i=Number.POSITIVE_INFINITY,refCount:e,scheduler:n}){let
s,o,r=0,u=!1,h=!1;return function(y){let w;r++,!s||u?(u=!1,s=new
qO(t,i,n),w=s.subscribe(this),o=y.subscribe({next(M){s.next(M)},error(M){u=!0,s.error(M)},complete(){h=!0,o=void
0,s.complete()}}),h&&(o=void
0)):w=s.subscribe(this),this.add(()=>{r--,w.unsubscribe(),w=void
0,o&&!h&&e&&0===r&&(o.unsubscribe(),o=void 0,s=void
0)})}}(n))}function qi(t,i){return"function"==typeof
i?e=>e.pipe(qi((n,s)=>Mn(t(n,s)).pipe(et((r,o)=>i(n,r,s,o))))):e=>e.lift(new
zO(t))}class zO{constructor(i){this.project=i}call(i,e){return e.subscribe(new
jO(i,this.project))}}class jO extends
Zo{constructor(i,e){super(i),this.project=e,this.index=0}_next(i){let e;const
n=this.index++;try{e=this.project(i,n)}catch(s){return void
this.destination.error(s)}this._innerSub(e)}_innerSub(i){const e=this.inner
Subscription;e&&e.unsubscribe();const n=new
Yo(this),s=this.destination;s.add(n),this.innerSubscription=Xo(i,n),this.innerSubscription!==n&&s.add(this.innerSubscription)}_complete(){const{innerSubscription:i}=this;(!i||i.closed)&&super._complete(),this.unsubscribe()}_unsubscribe(){this.innerSubscription=void
0}notifyComplete(){this.innerSubscription=void
0,this.isStopped&&super._complete()}notifyNext(i){this.destination.next(i)}}class
nl{}let o0=(()=>{class t extends nl{getTranslation(e){return oe({})}}return
t.\u0275fac=function(){let i;return
function(n){return(i||(i=on(t)))(n||t)}}(),t.\u0275prov=X({token:t,factory:t.\u0275fac}),t})();class
zm{}let a0=(()=>{class t{handle(e){return e.key}}return t.\u0275fac=function(e){return
new(e||t)},t.\u0275prov=X({token:t,factory:t.\u0275fac}),t})();function
il(t,i){if(t===i)return!0;if(null===t||null===i)return!1;if(t!=t&&i!=i)return!0;let
s,r,o,e=typeof t;if(e==typeof
i&&"object"==e){if(!Array.isArray(t)){if(Array.isArray(i))return!1;for(r
in o=Object.create(null),t){if(!il(t[r],i[r]))return!1;o[r]=!0}for(r in i)if(!(r in
o)&&void
0!==i[r])return!1;return!0}if(!Array.isArray(i))return!1;if((s=t.length)==i.length){for(r=0;r<s;r++)if(!il(t[r],i[r]))return!1;return!0}}return!1}function
ri(t){return null!=t}function jm(t){return t&&"object"==typeof
t&&!Array.isArray(t)}function l0(t,i){let e=Object.assign({},t);return
jm(t)&&jm(i)&&Object.keys(i).forEach(n=>{jm(i[n])?n in
t?e[n]=l0(t[n],i[n]):Object.assign(e,{[n]:i[n]}):Object.assign(e,{[n]:i[n]})}),e}class
pu{}let c0=(()=>{class t extends
pu{constructor(){super(...arguments),this.templateMatcher=/{{\s?([^{}\s]*)\s?}}/g}interpolate(e,n){let
s;return s="string"==typeof
e?this.interpolateString(e,n):"function"==typeof
e?this.interpolateFunction(e,n):e,s}getValue(e,n){let s="string"==typeof
n?n.split("."):[n];n="";do{n+=s.shift(),!ri(e)||!ri(e[n])||"object"!=typeof
e[n]&&s.length?s.length?n+=".":e=void
0:(e=e[n],n="")}while(s.length);return e}interpolateFunction(e,n){return
e(n)}interpolateString(e,n){return n?e.replace(this.templateMatcher,(s,r)=>{let
o=this.getValue(n,r);return ri(o)?o:s}):e}}return t.\u0275fac=function(){let i;return
function(n){return(i||(i=on(t)))(n||t)}}(),t.\u0275prov=X({token:t,factory:t.\u0275fac}),t})();class
hu{}let u0=(()=>{class t extends hu{compile(e,n){return
e}compileTranslations(e,n){return e}}return t.\u0275fac=function(){let i;return
function(n){return(i||(i=on(t)))(n||t)}}(),t.\u0275prov=X({token:t,factory:t.\u0275fac}),t})();class
d0{constructor(){this.currentLang=this.defaultLang,this.translations={},this.langs=[],this.onTranslationChange=new
H,this.onLangChange=new H,this.onDefaultLangChange=new H}}const $m=new
be("USE_STORE"),Wm=new be("USE_DEFAULT_LANG"),Km=new
be("DEFAULT_LANGUAGE"),Qm=new be("USE_EXTEND");let Oe=(()=>{class
t{constructor(e,n,s,r,o,u=!0,h=!1,b=!1,y){this.store=e,this.currentLoader=n,this.compiler=s,this.parser=r,this.missingTranslationHandler=o,this.useDefaultLang=u,this.isolate=h,this.extend
=b,this.pending=!1,this._onTranslationChange=new H,this._onLangChange=new
H,this._onDefaultLangChange=new
H,this._langs=[],this._translations={},this._translationRequests={},y&&this.setDefaultLang(y)}get
onTranslationChange(){return
this.isolate?this._onTranslationChange:this.store.onTranslationChange}get
onLangChange(){return this.isolate?this._onLangChange:this.store.onLangChange}get
onDefaultLangChange(){return
this.isolate?this._onDefaultLangChange:this.store.onDefaultLangChange}get
defaultLang(){return this.isolate?this._defaultLang:this.store.defaultLang}set
defaultLang(e){this.isolate?this._defaultLang=e:this.store.defaultLang=e}get
currentLang(){return this.isolate?this._currentLang:this.store.currentLang}set
currentLang(e){this.isolate?this._currentLang=e:this.store.currentLang=e}get
langs(){return this.isolate?this._langs:this.store.langs}set
langs(e){this.isolate?this._langs=e:this.store.langs=e}get translations(){return
this.isolate?this._translations:this.store.translat
ions}set
translations(e){this.isolate?this._translations=e:this.store.translations=e}setDefaultLang(e){if(e===this.defaultLang)return;let
n=this.retrieveTranslations(e);void
0!==n?(null==this.defaultLang&&(this.defaultLang=e),n.pipe(br(1)).subscribe(s=>{this.changeDefaultLang(e)})):this.changeDefaultLang(e)}getDefaultLang(){return
this.defaultLang}use(e){if(e===this.currentLang)return oe(this.translations[e]);let
n=this.retrieveTranslations(e);return void
0!==n?(this.currentLang||(this.currentLang=e),n.pipe(br(1)).subscribe(s=>{this.changeLang(e)}),n):(this.changeLang(e),oe(this.translations[e]))}retrieveTranslations(e){let
n;return(void
0===this.translations[e]||this.extend)&&(this._translationRequests[e]=this._translationRequests[e]||this.getTranslation(e),n=this._translationRequests[e]),n}getTranslation(e){this.pending=!0;const
n=this.currentLoader.getTranslation(e).pipe(Um(1),br(1));return
this.loadingTranslations=n.pipe(et(s=>this.compiler.compileTranslations(s,e)),Um(1),br(1))
,this.loadingTranslations.subscribe({next:s=>{this.translations[e]=this.extend&&this.translations[e]?Object.assign(Object.assign({},s),this.translations[e]):s,this.updateLangs(),this.pending=!1},error:s=>{this.pending=!1}}),n}setTranslation(e,n,s=!1){n=this.compiler.compileTranslations(n,e),this.translations[e]=(s||this.extend)&&this.translations[e]?l0(this.translations[e],n):n,this.updateLangs(),this.onTranslationChange.emit({lang:e,translations:this.translations[e]})}getLangs(){return
this.langs}addLangs(e){e.forEach(n=>{-1===this.langs.indexOf(n)&&this.langs.push(n)})}updateLangs(){this.addLangs(Object.keys(this.translations))}getParsedResult(e,n,s){let
r;if(n instanceof Array){let o={},u=!1;for(let h of
n)o[h]=this.getParsedResult(e,h,s),is(o[h])&&(u=!0);return
u?n0(n.map(b=>is(o[b])?o[b]:oe(o[b]))).pipe(et(b=>{let y={};return
b.forEach((w,M)=>{y[n[M]]=w}),y})):o}if(e&&(r=this.parser.interpolate(this.parser.getValue(e,n),s)),void
0===r&&null!=this.defaultLang&&this.defaultLang!=
=this.currentLang&&this.useDefaultLang&&(r=this.parser.interpolate(this.parser.getValue(this.translations[this.defaultLang],n),s)),void
0===r){let o={key:n,translateService:this};void
0!==s&&(o.interpolateParams=s),r=this.missingTranslationHandler.handle(o)}return
void 0!==r?r:n}get(e,n){if(!ri(e)||!e.length)throw new Error('Parameter
"key" required');if(this.pending)return
this.loadingTranslations.pipe(_r(s=>is(s=this.getParsedResult(s,e,n))?s:oe(s)));{let
s=this.getParsedResult(this.translations[this.currentLang],e,n);return
is(s)?s:oe(s)}}getStreamOnTranslationChange(e,n){if(!ri(e)||!e.length)throw new
Error('Parameter "key" required');return
el(cu(()=>this.get(e,n)),this.onTranslationChange.pipe(qi(s=>{const
r=this.getParsedResult(s.translations,e,n);return"function"==typeof
r.subscribe?r:oe(r)})))}stream(e,n){if(!ri(e)||!e.length)throw new Error('Parameter
"key" required');return
el(cu(()=>this.get(e,n)),this.onLangChange.pipe(qi(s=>{const
r=this.getParsedResult(s.translations,
e,n);return is(r)?r:oe(r)})))}instant(e,n){if(!ri(e)||!e.length)throw new
Error('Parameter "key" required');let
s=this.getParsedResult(this.translations[this.currentLang],e,n);if(is(s)){if(e instanceof
Array){let r={};return e.forEach((o,u)=>{r[e[u]]=e[u]}),r}return e}return
s}set(e,n,s=this.currentLang){this.translations[s][e]=this.compiler.compile(n,s),this.updateLangs(),this.onTranslationChange.emit({lang:s,translations:this.translations[s]})}changeLang(e){this.currentLang=e,this.onLangChange.emit({lang:e,translations:this.translations[e]}),null==this.defaultLang&&this.changeDefaultLang(e)}changeDefaultLang(e){this.defaultLang=e,this.onDefaultLangChange.emit({lang:e,translations:this.translations[e]})}reloadLang(e){return
this.resetLang(e),this.getTranslation(e)}resetLang(e){this._translationRequests[e]=void
0,this.translations[e]=void 0}getBrowserLang(){if("undefined"==typeof
window||void 0===window.navigator)return;let
e=window.navigator.languages?window.navigator.languages[0]:
null;return
e=e||window.navigator.language||window.navigator.browserLanguage||window.navigator.userLanguage,void
0!==e?(-1!==e.indexOf("-")&&(e=e.split("-")[0]),-1!==e.indexOf("_")&&(e=e.split("_")[0]),e):void
0}getBrowserCultureLang(){if("undefined"==typeof window||void
0===window.navigator)return;let
e=window.navigator.languages?window.navigator.languages[0]:null;return
e=e||window.navigator.language||window.navigator.browserLanguage||window.navigator.userLanguage,e}}return
t.\u0275fac=function(e){return
new(e||t)(K(d0),K(nl),K(hu),K(pu),K(zm),K(Wm),K($m),K(Qm),K(Km))},t.\u0275prov=X({token:t,factory:t.\u0275fac}),t})(),mu=(()=>{class
t{constructor(e,n,s){this.translateService=e,this.element=n,this._ref=s,this.onTranslationChangeSub||(this.onTranslationChangeSub=this.translateService.onTranslationChange.subscribe(r=>{r.lang===this.translateService.currentLang&&this.checkNodes(!0,r.translations)})),this.onLangChangeSub||(this.onLangChangeSub=this.translateService.onLangChange.subsc
ribe(r=>{this.checkNodes(!0,r.translations)})),this.onDefaultLangChangeSub||(this.onDefaultLangChangeSub=this.translateService.onDefaultLangChange.subscribe(r=>{this.checkNodes(!0)}))}set
translate(e){e&&(this.key=e,this.checkNodes())}set
translateParams(e){il(this.currentParams,e)||(this.currentParams=e,this.checkNodes(!0))}ngAfterViewChecked(){this.checkNodes()}checkNodes(e=!1,n){let
s=this.element.nativeElement.childNodes;s.length||(this.setContent(this.element.nativeElement,this.key),s=this.element.nativeElement.childNodes);for(let
r=0;r<s.length;++r){let o=s[r];if(3===o.nodeType){let
u;if(e&&(o.lastKey=null),ri(o.lookupKey))u=o.lookupKey;else
if(this.key)u=this.key;else{let
h=this.getContent(o),b=h.trim();b.length&&(o.lookupKey=b,h!==o.currentValue?(u=b,o.originalContent=h||o.originalContent):o.originalContent?u=o.originalContent.trim():h!==o.currentValue&&(u=b,o.originalContent=h||o.originalContent))}this.updateValue(u,o,n)}}}updateValue(e,n,s){if(e){if(n.lastKey===e&&this.las
tParams===this.currentParams)return;this.lastParams=this.currentParams;let
r=o=>{o!==e&&(n.lastKey=e),n.originalContent||(n.originalContent=this.getContent(n)),n.currentValue=ri(o)?o:n.originalContent||e,this.setContent(n,this.key?n.currentValue:n.originalContent.replace(e,n.currentValue)),this._ref.markForCheck()};if(ri(s)){let
o=this.translateService.getParsedResult(s,e,this.currentParams);is(o)?o.subscribe({next:r}):r(o)}else
this.translateService.get(e,this.currentParams).subscribe(r)}}getContent(e){return
ri(e.textContent)?e.textContent:e.data}setContent(e,n){ri(e.textContent)?e.textContent=n:e.data=n}ngOnDestroy(){this.onLangChangeSub&&this.onLangChangeSub.unsubscribe(),this.onDefaultLangChangeSub&&this.onDefaultLangChangeSub.unsubscribe(),this.onTranslationChangeSub&&this.onTranslationChangeSub.unsubscribe()}}return
t.\u0275fac=function(e){return
new(e||t)(D(Oe),D(De),D(rt))},t.\u0275dir=le({type:t,selectors:[["","translate",""],["","ngx-translate",""]],inputs:{translate:"tra
nslate",translateParams:"translateParams"}}),t})(),ce=(()=>{class
t{constructor(e,n){this.translate=e,this._ref=n,this.value="",this.lastKey=null,this.lastParams=[]}updateValue(e,n,s){let
r=o=>{this.value=void 0!==o?o:e,this.lastKey=e,this._ref.markForCheck()};if(s){let
o=this.translate.getParsedResult(s,e,n);is(o.subscribe)?o.subscribe(r):r(o)}this.translate.get(e,n).subscribe(r)}transform(e,...n){if(!e||!e.length)return
e;if(il(e,this.lastKey)&&il(n,this.lastParams))return this.value;let
s;if(ri(n[0])&&n.length)if("string"==typeof
n[0]&&n[0].length){let
r=n[0].replace(/(\')?([a-zA-Z0-9_]+)(\')?(\s)?:/g,'"$2":').replace(/:(\s)?(\')(.*?)(\')/g,':"$3"');try{s=JSON.parse(r)}catch(o){throw
new SyntaxError(`Wrong parameter in TranslatePipe. Expected a valid Object, received:
${n[0]}`)}}else"object"==typeof
n[0]&&!Array.isArray(n[0])&&(s=n[0]);return
this.lastKey=e,this.lastParams=n,this.updateValue(e,s),this._dispose(),this.onTranslationChange||(this.onTranslationChange=this.translate.o
nTranslationChange.subscribe(r=>{this.lastKey&&r.lang===this.translate.currentLang&&(this.lastKey=null,this.updateValue(e,s,r.translations))})),this.onLangChange||(this.onLangChange=this.translate.onLangChange.subscribe(r=>{this.lastKey&&(this.lastKey=null,this.updateValue(e,s,r.translations))})),this.onDefaultLangChange||(this.onDefaultLangChange=this.translate.onDefaultLangChange.subscribe(()=>{this.lastKey&&(this.lastKey=null,this.updateValue(e,s))})),this.value}_dispose(){void
0!==this.onTranslationChange&&(this.onTranslationChange.unsubscribe(),this.onTranslationChange=void
0),void
0!==this.onLangChange&&(this.onLangChange.unsubscribe(),this.onLangChange=void
0),void
0!==this.onDefaultLangChange&&(this.onDefaultLangChange.unsubscribe(),this.onDefaultLangChange=void
0)}ngOnDestroy(){this._dispose()}}return t.\u0275fac=function(e){return
new(e||t)(D(Oe,16),D(rt,16))},t.\u0275pipe=An({name:"translate",type:t,pure:!1}),t.\u0275prov=X({token:t,factory:t.\u0275fac}),t})(),$O=(()=>{cl
ass t{static
forRoot(e={}){return{ngModule:t,providers:[e.loader||{provide:nl,useClass:o0},e.compiler||{provide:hu,useClass:u0},e.parser||{provide:pu,useClass:c0},e.missingTranslationHandler||{provide:zm,useClass:a0},d0,{provide:$m,useValue:e.isolate},{provide:Wm,useValue:e.useDefaultLang},{provide:Qm,useValue:e.extend},{provide:Km,useValue:e.defaultLanguage},Oe]}}static
forChild(e={}){return{ngModule:t,providers:[e.loader||{provide:nl,useClass:o0},e.compiler||{provide:hu,useClass:u0},e.parser||{provide:pu,useClass:c0},e.missingTranslationHandler||{provide:zm,useClass:a0},{provide:$m,useValue:e.isolate},{provide:Wm,useValue:e.useDefaultLang},{provide:Qm,useValue:e.extend},{provide:Km,useValue:e.defaultLanguage},Oe]}}}return
t.\u0275fac=function(e){return
new(e||t)},t.\u0275mod=he({type:t}),t.\u0275inj=ue({}),t})();class
WO{constructor(i,e="/assets/i18n/",n=".json"){this.http=i,this.prefix=e,this.suffix=n}getTranslation(i){return
this.http.get(`${this.prefix}${i}${this.suffix}`)}}let
p0=(()=>{class
t{constructor(e,n){this._renderer=e,this._elementRef=n,this.onChange=s=>{},this.onTouched=()=>{}}setProperty(e,n){this._renderer.setProperty(this._elementRef.nativeElement,e,n)}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)(D(gn),D(De))},t.\u0275dir=le({type:t}),t})(),vr=(()=>{class t extends
p0{}return t.\u0275fac=function(){let i;return
function(n){return(i||(i=on(t)))(n||t)}}(),t.\u0275dir=le({type:t,features:[ut]}),t})();const
dn=new
be("NgValueAccessor"),QO={provide:dn,useExisting:je(()=>Ye),multi:!0},YO=new
be("CompositionEventMode");let Ye=(()=>{class t extends
p0{constructor(e,n,s){super(e,n),this._compositionMode=s,this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function
JO(){const t=ns()?ns().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)(D(gn),D(De),D(YO,8))},t.\u0275dir=le({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,n){1&e&&C("input",function(r){return
n._handleInput(r.target.value)})("blur",function(){return
n.onTouched()})("compositionstart",function(){return
n._compositionStart()})("compositionend",function(r){return
n._compositionEnd(r.target.value)})},features:[Pe([QO]),ut]}),t})();function zs(t){return
null==t||0===t.length}const Ln=new be("NgValidators"),js=new
be("NgAsyncValidators");function
_0(t){return zs(t.value)?{required:!0}:null}function fu(t){return null}function
T0(t){return null!=t}function S0(t){const i=Ra(t)?Mn(t):t;return Dh(i),i}function
x0(t){let i={};return
t.forEach(e=>{i=null!=e?Object.assign(Object.assign({},i),e):i}),0===Object.keys(i).length?null:i}function
D0(t,i){return i.map(e=>e(t))}function M0(t){return t.map(i=>function
XO(t){return!t.validate}(i)?i:e=>i.validate(e))}function Jm(t){return null!=t?function
k0(t){if(!t)return null;const i=t.filter(T0);return 0==i.length?null:function(e){return
x0(D0(e,i))}}(M0(t)):null}function Ym(t){return null!=t?function I0(t){if(!t)return
null;const i=t.filter(T0);return 0==i.length?null:function(e){return
n0(D0(e,i).map(S0)).pipe(et(x0))}}(M0(t)):null}function E0(t,i){return
null===t?[i]:Array.isArray(t)?[...t,i]:[t,i]}function Zm(t){return
t?Array.isArray(t)?t:[t]:[]}function gu(t,i){return
Array.isArray(t)?t.includes(i):t===i}function O0(t,i){const e=Zm(i);return
Zm(t).forEach(s=>{gu(e,s)||e.push(s)}),e}f
unction A0(t,i){return Zm(i).filter(e=>!gu(t,e))}class
P0{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.valueChang
es:null}get path(){return
null}_setValidators(i){this._rawValidators=i||[],this._composedValidatorFn=Jm(this._rawValidators)}_setAsyncValidators(i){this._rawAsyncValidators=i||[],this._composedAsyncValidatorFn=Ym(this._rawAsyncValidators)}get
validator(){return this._composedValidatorFn||null}get asyncValidator(){return
this._composedAsyncValidatorFn||null}_registerOnDestroy(i){this._onDestroyCallbacks.push(i)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(i=>i()),this._onDestroyCallbacks=[]}reset(i){this.control&&this.control.reset(i)}hasError(i,e){return!!this.control&&this.control.hasError(i,e)}getError(i,e){return
this.control?this.control.getError(i,e):null}}class ss extends
P0{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}class
Un extends P0{get formDirective(){return null}get path(){return null}}class
F0{constructor(i){this._cd=i}is(i){var
e,n,s;return"submitted"===i?!!(null===(e=this._cd)||void 0===e?void 0:e.submit
ted):!!(null===(s=null===(n=this._cd)||void 0===n?void 0:n.control)||void 0===s?void
0:s[i])}}let Te=(()=>{class t extends F0{constructor(e){super(e)}}return
t.\u0275fac=function(e){return
new(e||t)(D(ss,2))},t.\u0275dir=le({type:t,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(e,n){2&e&&si("ng-untouched",n.is("untouched"))("ng-touched",n.is("touched"))("ng-pristine",n.is("pristine"))("ng-dirty",n.is("dirty"))("ng-valid",n.is("valid"))("ng-invalid",n.is("invalid"))("ng-pending",n.is("pending"))},features:[ut]}),t})(),Ue=(()=>{class
t extends F0{constructor(e){super(e)}}return t.\u0275fac=function(e){return
new(e||t)(D(Un,10))},t.\u0275dir=le({type:t,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(e,n){2&e&&si("ng-untouched",n.is("untouched"))("ng-touched",n.is("touched"))("ng-pristine",n.is
("pristine"))("ng-dirty",n.is("dirty"))("ng-valid",n.is("valid"))("ng-invalid",n.is("invalid"))("ng-pending",n.is("pending"))("ng-submitted",n.is("submitted"))},features:[ut]}),t})();function
sl(t,i){tf(t,i),i.valueAccessor.writeValue(t.value),function
aA(t,i){i.valueAccessor.registerOnChange(e=>{t._pendingValue=e,t._pendingChange=!0,t._pendingDirty=!0,"change"===t.updateOn&&V0(t,i)})}(t,i),function
cA(t,i){const
e=(n,s)=>{i.valueAccessor.writeValue(n),s&&i.viewToModelUpdate(n)};t.registerOnChange(e),i._registerOnDestroy(()=>{t._unregisterOnChange(e)})}(t,i),function
lA(t,i){i.valueAccessor.registerOnTouched(()=>{t._pendingTouched=!0,"blur"===t.updateOn&&t._pendingChange&&V0(t,i),"submit"!==t.updateOn&&t.markAsTouched()})}(t,i),function
oA(t,i){if(i.valueAccessor.setDisabledState){const
e=n=>{i.valueAccessor.setDisabledState(n)};t.registerOnDisabledChange(e),i._registerOnDestroy(()=>{t._unregisterOnDisabledChange(e)})}}(t,i)}function
Cu(t,i){t.forEach(e=>{e.registerOnValidatorChange
&&e.registerOnValidatorChange(i)})}function tf(t,i){const e=function R0(t){return
t._rawValidators}(t);null!==i.validator?t.setValidators(E0(e,i.validator)):"function"==typeof
e&&t.setValidators([e]);const n=function L0(t){return
t._rawAsyncValidators}(t);null!==i.asyncValidator?t.setAsyncValidators(E0(n,i.asyncValidator)):"function"==typeof
n&&t.setAsyncValidators([n]);const
s=()=>t.updateValueAndValidity();Cu(i._rawValidators,s),Cu(i._rawAsyncValidators,s)}function
V0(t,i){t._pendingDirty&&t.markAsDirty(),t.setValue(t._pendingValue,{emitModelToViewChange:!1}),i.viewToModelUpdate(t._pendingValue),t._pendingChange=!1}function
rf(t,i){const e=t.indexOf(i);e>-1&&t.splice(e,1)}const
rl="VALID",wu="INVALID",Eo="PENDING",ol="DISABLED";function
af(t){return(Tu(t)?t.validators:t)||null}function G0(t){return
Array.isArray(t)?Jm(t):t||null}function
lf(t,i){return(Tu(i)?i.asyncValidators:t)||null}function U0(t){return
Array.isArray(t)?Ym(t):t||null}function Tu(t){return null!=t&&!Array.isArra
y(t)&&"object"==typeof t}const cf=t=>t instanceof df;function
j0(t){return(t=>t instanceof K0)(t)?t.value:t.getRawValue()}function $0(t,i){const
e=cf(t),n=t.controls;if(!(e?Object.keys(n):n).length)throw new
re(1e3,"");if(!n[i])throw new re(1001,"")}function
W0(t,i){cf(t),t._forEachChild((n,s)=>{if(void 0===i[s])throw new
re(1002,"")})}class
uf{constructor(i,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=i,this._rawAsyncValidators=e,this._composedValidatorFn=G0(this._rawValidators),this._composedAsyncValidatorFn=U0(this._rawAsyncValidators)}get
validator(){return this._composedValidatorFn}set
validator(i){this._rawValidators=this._composedValidatorFn=i}get asyncValidator(){return
this._composedAsyncValidatorFn}set
asyncValidator(i){this._rawAsyncValidators=this._composedAsyncValidatorFn=i}get
parent(){return this._par
ent}get valid(){return this.status===rl}get invalid(){return this.status===wu}get
pending(){return this.status==Eo}get disabled(){return this.status===ol}get
enabled(){return this.status!==ol}get dirty(){return!this.pristine}get
untouched(){return!this.touched}get updateOn(){return
this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(i){this._rawValidators=i,this._composedValidatorFn=G0(i)}setAsyncValidators(i){this._rawAsyncValidators=i,this._composedAsyncValidatorFn=U0(i)}addValidators(i){this.setValidators(O0(i,this._rawValidators))}addAsyncValidators(i){this.setAsyncValidators(O0(i,this._rawAsyncValidators))}removeValidators(i){this.setValidators(A0(i,this._rawValidators))}removeAsyncValidators(i){this.setAsyncValidators(A0(i,this._rawAsyncValidators))}hasValidator(i){return
gu(this._rawValidators,i)}hasAsyncValidator(i){return
gu(this._rawAsyncValidators,i)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}mar
kAsTouched(i={}){this.touched=!0,this._parent&&!i.onlySelf&&this._parent.markAsTouched(i)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild(i=>i.markAllAsTouched())}markAsUntouched(i={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild(e=>{e.markAsUntouched({onlySelf:!0})}),this._parent&&!i.onlySelf&&this._parent._updateTouched(i)}markAsDirty(i={}){this.pristine=!1,this._parent&&!i.onlySelf&&this._parent.markAsDirty(i)}markAsPristine(i={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(e=>{e.markAsPristine({onlySelf:!0})}),this._parent&&!i.onlySelf&&this._parent._updatePristine(i)}markAsPending(i={}){this.status=Eo,!1!==i.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!i.onlySelf&&this._parent.markAsPending(i)}disable(i={}){const
e=this._parentMarkedDirty(i.onlySelf);this.status=ol,this.errors=null,this._forEachChild(n=>{n.disable(Object.assign(Object.assign({},i),{onlySelf:!0}))}),this._updateValue(),!1!==i.emitEvent&&(this.
valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(Object.assign(Object.assign({},i),{skipPristineCheck:e})),this._onDisabledChange.forEach(n=>n(!0))}enable(i={}){const
e=this._parentMarkedDirty(i.onlySelf);this.status=rl,this._forEachChild(n=>{n.enable(Object.assign(Object.assign({},i),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:i.emitEvent}),this._updateAncestors(Object.assign(Object.assign({},i),{skipPristineCheck:e})),this._onDisabledChange.forEach(n=>n(!1))}_updateAncestors(i){this._parent&&!i.onlySelf&&(this._parent.updateValueAndValidity(i),i.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(i){this._parent=i}updateValueAndValidity(i={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===rl||this.status===Eo)&&this._runAsyncValidator(i.emitEvent))
,!1!==i.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!i.onlySelf&&this._parent.updateValueAndValidity(i)}_updateTreeValidity(i={emitEvent:!0}){this._forEachChild(e=>e._updateTreeValidity(i)),this.updateValueAndValidity({onlySelf:!0,emitEvent:i.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?ol:rl}_runValidator(){return
this.validator?this.validator(this):null}_runAsyncValidator(i){if(this.asyncValidator){this.status=Eo,this._hasOwnPendingAsyncValidator=!0;const
e=S0(this.asyncValidator(this));this._asyncValidationSubscription=e.subscribe(n=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors(n,{emitEvent:i})})}}_cancelExistingSubscription(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}setErrors(i,e={}){this.errors=i,this._updateControlsErrors(!1!==e.emitEvent)}get(i){return
function hA(t,i,e){if(null==i||(Array.isArray(i)||(i=i.s
plit(e)),Array.isArray(i)&&0===i.length))return null;let n=t;return
i.forEach(s=>{n=cf(n)?n.controls.hasOwnProperty(s)?n.controls[s]:null:(t=>t
instanceof fA)(n)&&n.at(s)||null}),n}(this,i,".")}getError(i,e){const
n=e?this.get(e):this;return
n&&n.errors?n.errors[i]:null}hasError(i,e){return!!this.getError(i,e)}get
root(){let i=this;for(;i._parent;)i=i._parent;return
i}_updateControlsErrors(i){this.status=this._calculateStatus(),i&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(i)}_initObservables(){this.valueChanges=new
H,this.statusChanges=new H}_calculateStatus(){return
this._allControlsDisabled()?ol:this.errors?wu:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(Eo)?Eo:this._anyControlsHaveStatus(wu)?wu:rl}_anyControlsHaveStatus(i){return
this._anyControls(e=>e.status===i)}_anyControlsDirty(){return
this._anyControls(i=>i.dirty)}_anyControlsTouched(){return
this._anyControls(i=>i.touched)}_updatePristine(i={}){this.pristine=!th
is._anyControlsDirty(),this._parent&&!i.onlySelf&&this._parent._updatePristine(i)}_updateTouched(i={}){this.touched=this._anyControlsTouched(),this._parent&&!i.onlySelf&&this._parent._updateTouched(i)}_isBoxedValue(i){return"object"==typeof
i&&null!==i&&2===Object.keys(i).length&&"value"in
i&&"disabled"in
i}_registerOnCollectionChange(i){this._onCollectionChange=i}_setUpdateStrategy(i){Tu(i)&&null!=i.updateOn&&(this._updateOn=i.updateOn)}_parentMarkedDirty(i){return!i&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}}class
K0 extends
uf{constructor(i=null,e,n){super(af(e),lf(n,e)),this.defaultValue=null,this._onChange=[],this._pendingChange=!1,this._applyFormState(i),this._setUpdateStrategy(e),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),Tu(e)&&e.initialValueIsDefault&&(this.defaultValue=this._isBoxedValue(i)?i.value:i)}setValue(i,e={}){this.value=this._pendingValue=i,this._onChange.length&&!1!==e.emitMod
elToViewChange&&this._onChange.forEach(n=>n(this.value,!1!==e.emitViewToModelChange)),this.updateValueAndValidity(e)}patchValue(i,e={}){this.setValue(i,e)}reset(i=this.defaultValue,e={}){this._applyFormState(i),this.markAsPristine(e),this.markAsUntouched(e),this.setValue(this.value,e),this._pendingChange=!1}_updateValue(){}_anyControls(i){return!1}_allControlsDisabled(){return
this.disabled}registerOnChange(i){this._onChange.push(i)}_unregisterOnChange(i){rf(this._onChange,i)}registerOnDisabledChange(i){this._onDisabledChange.push(i)}_unregisterOnDisabledChange(i){rf(this._onDisabledChange,i)}_forEachChild(i){}_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(i){this._isBoxedValue(i)?(this.value=this._pendingValue=i.value,i.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.e
nable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=i}}class df extends
uf{constructor(i,e,n){super(af(e),lf(n,e)),this.controls=i,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}registerControl(i,e){return
this.controls[i]?this.controls[i]:(this.controls[i]=e,e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange),e)}addControl(i,e,n={}){this.registerControl(i,e),this.updateValueAndValidity({emitEvent:n.emitEvent}),this._onCollectionChange()}removeControl(i,e={}){this.controls[i]&&this.controls[i]._registerOnCollectionChange(()=>{}),delete
this.controls[i],this.updateValueAndValidity({emitEvent:e.emitEvent}),this._onCollectionChange()}setControl(i,e,n={}){this.controls[i]&&this.controls[i]._registerOnCollectionChange(()=>{}),delete
this.controls[i],e&&this.registerControl(i,e),this.updateValueAndValidity({emitEvent:n.emitEvent}),this._onCollectionChange
()}contains(i){return
this.controls.hasOwnProperty(i)&&this.controls[i].enabled}setValue(i,e={}){W0(this,i),Object.keys(i).forEach(n=>{$0(this,n),this.controls[n].setValue(i[n],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(i,e={}){null!=i&&(Object.keys(i).forEach(n=>{this.controls[n]&&this.controls[n].patchValue(i[n],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e))}reset(i={},e={}){this._forEachChild((n,s)=>{n.reset(i[s],{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e),this._updateTouched(e),this.updateValueAndValidity(e)}getRawValue(){return
this._reduceChildren({},(i,e,n)=>(i[n]=j0(e),i))}_syncPendingControls(){let
i=this._reduceChildren(!1,(e,n)=>!!n._syncPendingControls()||e);return
i&&this.updateValueAndValidity({onlySelf:!0}),i}_forEachChild(i){Object.keys(this.controls).forEach(e=>{const
n=this.controls[e];n&&i(n,e)})}_setUpControls(){this._forEachChild(i=>{i.setParent(this),i._registerOnCollectionChange(t
his._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(i){for(const
e of Object.keys(this.controls)){const
n=this.controls[e];if(this.contains(e)&&i(n))return!0}return!1}_reduceValue(){return
this._reduceChildren({},(i,e,n)=>((e.enabled||this.disabled)&&(i[n]=e.value),i))}_reduceChildren(i,e){let
n=i;return this._forEachChild((s,r)=>{n=e(n,s,r)}),n}_allControlsDisabled(){for(const i
of Object.keys(this.controls))if(this.controls[i].enabled)return!1;return
Object.keys(this.controls).length>0||this.disabled}}class fA extends
uf{constructor(i,e,n){super(af(e),lf(n,e)),this.controls=i,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}at(i){return
this.controls[i]}push(i,e={}){this.controls.push(i),this._registerControl(i),this.updateValueAndValidity({emitEvent:e.emitEvent}),this._onCollectionChange()}insert(i,e,n={}){this.controls.splice(i,0,e),this._registerC
ontrol(e),this.updateValueAndValidity({emitEvent:n.emitEvent})}removeAt(i,e={}){this.controls[i]&&this.controls[i]._registerOnCollectionChange(()=>{}),this.controls.splice(i,1),this.updateValueAndValidity({emitEvent:e.emitEvent})}setControl(i,e,n={}){this.controls[i]&&this.controls[i]._registerOnCollectionChange(()=>{}),this.controls.splice(i,1),e&&(this.controls.splice(i,0,e),this._registerControl(e)),this.updateValueAndValidity({emitEvent:n.emitEvent}),this._onCollectionChange()}get
length(){return
this.controls.length}setValue(i,e={}){W0(this,i),i.forEach((n,s)=>{$0(this,s),this.at(s).setValue(n,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(i,e={}){null!=i&&(i.forEach((n,s)=>{this.at(s)&&this.at(s).patchValue(n,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e))}reset(i=[],e={}){this._forEachChild((n,s)=>{n.reset(i[s],{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e),this._updateTouched(e),this.updateValueAndValid
ity(e)}getRawValue(){return
this.controls.map(i=>j0(i))}clear(i={}){this.controls.length<1||(this._forEachChild(e=>e._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity({emitEvent:i.emitEvent}))}_syncPendingControls(){let
i=this.controls.reduce((e,n)=>!!n._syncPendingControls()||e,!1);return
i&&this.updateValueAndValidity({onlySelf:!0}),i}_forEachChild(i){this.controls.forEach((e,n)=>{i(e,n)})}_updateValue(){this.value=this.controls.filter(i=>i.enabled||this.disabled).map(i=>i.value)}_anyControls(i){return
this.controls.some(e=>e.enabled&&i(e))}_setUpControls(){this._forEachChild(i=>this._registerControl(i))}_allControlsDisabled(){for(const
i of this.controls)if(i.enabled)return!1;return
this.controls.length>0||this.disabled}_registerControl(i){i.setParent(this),i._registerOnCollectionChange(this._onCollectionChange)}}const
gA={provide:Un,useExisting:je(()=>He)},al=(()=>Promise.resolve(null))();let
He=(()=>{class t extends Un{constructor(e,n){sup
er(),this.submitted=!1,this._directives=new Set,this.ngSubmit=new H,this.form=new
df({},Jm(e),Ym(n))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return
this}get control(){return this.form}get path(){return[]}get controls(){return
this.form.controls}addControl(e){al.then(()=>{const
n=this._findContainer(e.path);e.control=n.registerControl(e.name,e.control),sl(e.control,e),e.control.updateValueAndValidity({emitEvent:!1}),this._directives.add(e)})}getControl(e){return
this.form.get(e.path)}removeControl(e){al.then(()=>{const
n=this._findContainer(e.path);n&&n.removeControl(e.name),this._directives.delete(e)})}addFormGroup(e){al.then(()=>{const
n=this._findContainer(e.path),s=new df({});(function
B0(t,i){tf(t,i)})(s,e),n.registerControl(e.name,s),s.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(e){al.then(()=>{const
n=this._findContainer(e.path);n&&n.removeControl(e.name)})}getFormGroup(e){return
this.form.get(e.path)}updateModel(e,n){al.then(()=>{this.form
.get(e.path).setValue(n)})}setValue(e){this.control.setValue(e)}onSubmit(e){return
this.submitted=!0,function q0(t,i){t._syncPendingControls(),i.forEach(e=>{const
n=e.control;"submit"===n.updateOn&&n._pendingChange&&(e.viewToModelUpdate(n._pendingValue),n._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)(D(Ln,10),D(js,10))},t.\u0275dir=le({type:t,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(e,n){1&e&&C("submit",function(r){return
n.onSubmit(r)})("reset",function(){return
n.onReset()})},inputs:{options:["ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[Pe([gA]),ut]}
),t})();const
bA={provide:ss,useExisting:je(()=>_e)},Y0=(()=>Promise.resolve(null))();let
_e=(()=>{class t extends
ss{constructor(e,n,s,r,o){super(),this._changeDetectorRef=o,this.control=new
K0,this._registered=!1,this.update=new
H,this._parent=e,this._setValidators(n),this._setAsyncValidators(s),this.valueAccessor=function
sf(t,i){if(!i)return null;let e,n,s;return
Array.isArray(i),i.forEach(r=>{r.constructor===Ye?e=r:function pA(t){return
Object.getPrototypeOf(t.constructor)===vr}(r)?n=r:s=r}),s||n||e||null}(0,r)}ngOnChanges(e){if(this._checkForErrors(),!this._registered||"name"in
e){if(this._registered&&(this._checkName(),this.formDirective)){const
n=e.name.previousValue;this.formDirective.removeControl({name:n,path:this._getPath(n)})}this._setUpControl()}"isDisabled"in
e&&this._updateDisabled(e),function
nf(t,i){if(!t.hasOwnProperty("model"))return!1;const
e=t.model;return!!e.isFirstChange()||!Object.is(i,e.currentValue)}(e,this.viewModel)&&(this._updateValue(this.model),this.v
iewModel=this.model)}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}get
path(){return this._getPath(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}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.control._updateOn=this.options.updateOn)}_isStandalone(){return!this._parent||!(!this.options||!this.options.standalone)}_setUpStandalone(){sl(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){Y0.then(()=>{var
n;this.control.setValue(e,{emitViewToModelChange:!1}),null===(n=this._c
hangeDetectorRef)||void 0===n||n.markForCheck()})}_updateDisabled(e){const
n=e.isDisabled.currentValue,s=""===n||n&&"false"!==n;Y0.then(()=>{var
r;s&&!this.control.disabled?this.control.disable():!s&&this.control.disabled&&this.control.enable(),null===(r=this._changeDetectorRef)||void
0===r||r.markForCheck()})}_getPath(e){return this._parent?function
bu(t,i){return[...i.path,t]}(e,this._parent):[e]}}return t.\u0275fac=function(e){return
new(e||t)(D(Un,9),D(Ln,10),D(js,10),D(dn,10),D(rt,8))},t.\u0275dir=le({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:[Pe([bA]),ut,fn]}),t})(),ze=(()=>{class
t{}return t.\u0275fac=function(e){return
new(e||t)},t.\u0275dir=le({type:t,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]}),t})();const
vA={
provide:dn,useExisting:je(()=>Su),multi:!0};let Su=(()=>{class t extends
vr{writeValue(e){this.setProperty("value",null==e?"":e)}registerOnChange(e){this.onChange=n=>{e(""==n?null:parseFloat(n))}}}return
t.\u0275fac=function(){let i;return
function(n){return(i||(i=on(t)))(n||t)}}(),t.\u0275dir=le({type:t,selectors:[["input","type","number","formControlName",""],["input","type","number","formControl",""],["input","type","number","ngModel",""]],hostBindings:function(e,n){1&e&&C("input",function(r){return
n.onChange(r.target.value)})("blur",function(){return
n.onTouched()})},features:[Pe([vA]),ut]}),t})(),Z0=(()=>{class t{}return
t.\u0275fac=function(e){return
new(e||t)},t.\u0275mod=he({type:t}),t.\u0275inj=ue({}),t})();const pf=new
be("NgModelWithFormControlWarning");function
aw(t){return"number"==typeof t?t:parseFloat(t)}let Cr=(()=>{class
t{constructor(){this._validator=fu}ngOnChanges(e){if(this.inputName in e){const
n=this.normalizeInput(e[this.inputName].currentValue);this._enable
d=this.enabled(n),this._validator=this._enabled?this.createValidator(n):fu,this._onChange&&this._onChange()}}validate(e){return
this._validator(e)}registerOnValidatorChange(e){this._onChange=e}enabled(e){return
null!=e}}return t.\u0275fac=function(e){return
new(e||t)},t.\u0275dir=le({type:t,features:[fn]}),t})();const
PA={provide:Ln,useExisting:je(()=>xu),multi:!0};let xu=(()=>{class t extends
Cr{constructor(){super(...arguments),this.inputName="max",this.normalizeInput=e=>aw(e),this.createValidator=e=>function
g0(t){return i=>{if(zs(i.value)||zs(t))return null;const
e=parseFloat(i.value);return!isNaN(e)&&e>t?{max:{max:t,actual:i.value}}:null}}(e)}}return
t.\u0275fac=function(){let i;return
function(n){return(i||(i=on(t)))(n||t)}}(),t.\u0275dir=le({type:t,selectors:[["input","type","number","max","","formControlName",""],["input","type","number","max","","formControl",""],["input","type","number","max","","ngModel",""]],hostVars:1,hostBindings:function(e,n){2&e&&ie("max",n._enabled?
n.max:null)},inputs:{max:"max"},features:[Pe([PA]),ut]}),t})();const
FA={provide:Ln,useExisting:je(()=>Du),multi:!0};let Du=(()=>{class t extends
Cr{constructor(){super(...arguments),this.inputName="min",this.normalizeInput=e=>aw(e),this.createValidator=e=>function
f0(t){return i=>{if(zs(i.value)||zs(t))return null;const
e=parseFloat(i.value);return!isNaN(e)&&e<t?{min:{min:t,actual:i.value}}:null}}(e)}}return
t.\u0275fac=function(){let i;return
function(n){return(i||(i=on(t)))(n||t)}}(),t.\u0275dir=le({type:t,selectors:[["input","type","number","min","","formControlName",""],["input","type","number","min","","formControl",""],["input","type","number","min","","ngModel",""]],hostVars:1,hostBindings:function(e,n){2&e&&ie("min",n._enabled?n.min:null)},inputs:{min:"min"},features:[Pe([FA]),ut]}),t})();const
NA={provide:Ln,useExisting:je(()=>ll),multi:!0};let ll=(()=>{class t extends
Cr{constructor(){super(...arguments),this.inputName="required",this.normalizeInput=e=>function
AA(t){retu
rn
null!=t&&!1!==t&&"false"!=`${t}`}(e),this.createValidator=e=>_0}enabled(e){return
e}}return t.\u0275fac=function(){let i;return
function(n){return(i||(i=on(t)))(n||t)}}(),t.\u0275dir=le({type:t,selectors:[["","required","","formControlName","",3,"type","checkbox"],["","required","","formControl","",3,"type","checkbox"],["","required","","ngModel","",3,"type","checkbox"]],hostVars:1,hostBindings:function(e,n){2&e&&ie("required",n._enabled?"":null)},inputs:{required:"required"},features:[Pe([NA]),ut]}),t})();const
qA={provide:Ln,useExisting:je(()=>_n),multi:!0};let _n=(()=>{class t extends
Cr{constructor(){super(...arguments),this.inputName="maxlength",this.normalizeInput=e=>function
ow(t){return"number"==typeof
t?t:parseInt(t,10)}(e),this.createValidator=e=>function y0(t){return i=>function
m0(t){return null!=t&&"number"==typeof
t.length}(i.value)&&i.value.length>t?{maxlength:{requiredLength:t,actualLength:i.value.length}}:null}(e)}}return
t.\u0275fac=function(){let i;return funct
ion(n){return(i||(i=on(t)))(n||t)}}(),t.\u0275dir=le({type:t,selectors:[["","maxlength","","formControlName",""],["","maxlength","","formControl",""],["","maxlength","","ngModel",""]],hostVars:1,hostBindings:function(e,n){2&e&&ie("maxlength",n._enabled?n.maxlength:null)},inputs:{maxlength:"maxlength"},features:[Pe([qA]),ut]}),t})(),pw=(()=>{class
t{}return t.\u0275fac=function(e){return
new(e||t)},t.\u0275mod=he({type:t}),t.\u0275inj=ue({imports:[[Z0]]}),t})(),Mu=(()=>{class
t{}return t.\u0275fac=function(e){return
new(e||t)},t.\u0275mod=he({type:t}),t.\u0275inj=ue({imports:[pw]}),t})(),UA=(()=>{class
t{static
withConfig(e){return{ngModule:t,providers:[{provide:pf,useValue:e.warnOnNgModelWithFormControl}]}}}return
t.\u0275fac=function(e){return
new(e||t)},t.\u0275mod=he({type:t}),t.\u0275inj=ue({imports:[pw]}),t})();class hw{}const
ys="*";function wi(t,i){return{type:7,name:t,definitions:i,options:{}}}function
kt(t,i=null){return{type:4,styles:i,timings:t}}function mw(t,i=null){retu
rn{type:2,steps:t,options:i}}function it(t){return{type:6,styles:t,offset:null}}function
ws(t,i,e){return{type:0,name:t,styles:i,options:e}}function
Lt(t,i,e=null){return{type:1,expr:t,animation:i,options:e}}function
ku(t,i=null){return{type:8,animation:t,options:i}}function
jA(t=null){return{type:9,options:t}}function
fw(t,i=null){return{type:10,animation:t,options:i}}function
$A(t,i,e=null){return{type:11,selector:t,animation:i,options:e}}function
gw(t){Promise.resolve(null).then(t)}class
cl{constructor(i=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=i+e}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(i=>i()),this._onDoneFns=[])}onStart(i){this._onStartFns.push(i)}onDone(i){this._onDoneFns.push(i)}onDestroy(i){this._onDestroyFns.push(i)}hasStarted(){return
this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.trig
gerMicrotask()),this._started=!0}triggerMicrotask(){gw(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(i=>i()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(i=>i()),this._onDestroyFns=[])}reset(){this._started=!1}setPosition(i){this._position=this.totalTime?i*this.totalTime:1}getPosition(){return
this.totalTime?this._position/this.totalTime:1}triggerCallback(i){const
e="start"==i?this._onStartFns:this._onDoneFns;e.forEach(n=>n()),e.length=0}}class
_w{constructor(i){this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=i;let
e=0,n=0,s=0;const
r=this.players.length;0==r?gw(()=>this._onFinish()):this.players.forEach(o=>{o.onDone(()=>{++e==r&&this._onFinish()}),o.onDestroy(()=>{++n==r&&this._onDestroy()}),o.onStart(()=>{++s=
=r&&this._onStart()})}),this.totalTime=this.players.reduce((o,u)=>Math.max(o,u.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(i=>i()),this._onDoneFns=[])}init(){this.players.forEach(i=>i.init())}onStart(i){this._onStartFns.push(i)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(i=>i()),this._onStartFns=[])}onDone(i){this._onDoneFns.push(i)}onDestroy(i){this._onDestroyFns.push(i)}hasStarted(){return
this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(i=>i.play())}pause(){this.players.forEach(i=>i.pause())}restart(){this.players.forEach(i=>i.restart())}finish(){this._onFinish(),this.players.forEach(i=>i.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(i=>i.destroy()),this._onDestroyFns.forEach(i=>i()),this._onDestroyFns=[])}reset(){this.players.forEach(i=>i.reset()),this._destroyed=!1,this._finished=!1,this._st
arted=!1}setPosition(i){const e=i*this.totalTime;this.players.forEach(n=>{const
s=n.totalTime?Math.min(1,e/n.totalTime):1;n.setPosition(s)})}getPosition(){const
i=this.players.reduce((e,n)=>null===e||n.totalTime>e.totalTime?n:e,null);return
null!=i?i.getPosition():0}beforeDestroy(){this.players.forEach(i=>{i.beforeDestroy&&i.beforeDestroy()})}triggerCallback(i){const
e="start"==i?this._onStartFns:this._onDoneFns;e.forEach(n=>n()),e.length=0}}const
Ze=!1;function bw(t){return new re(3e3,Ze)}function
DP(){return"undefined"!=typeof window&&void 0!==window.document}function
vf(){return"undefined"!=typeof process&&"[object
process]"==={}.toString.call(process)}function $s(t){switch(t.length){case 0:return
new cl;case 1:return t[0];default:return new _w(t)}}function vw(t,i,e,n,s={},r={}){const
o=[],u=[];let h=-1,b=null;if(n.forEach(y=>{const
w=y.offset,M=w==h,E=M&&b||{};Object.keys(y).forEach(L=>{let
O=L,N=y[L];if("offset"!==L)switch(O=i.normalizePropertyName(O,o),N){case"!":N=s[L];break;
case
ys:N=r[L];break;default:N=i.normalizeStyleValue(L,O,N,o)}E[O]=N}),M||u.push(E),b=E,h=w}),o.length)throw
function fP(t){return new re(3502,Ze)}();return u}function
Cf(t,i,e,n){switch(i){case"start":t.onStart(()=>n(e&&yf(e,"start",t)));break;case"done":t.onDone(()=>n(e&&yf(e,"done",t)));break;case"destroy":t.onDestroy(()=>n(e&&yf(e,"destroy",t)))}}function
yf(t,i,e){const
n=e.totalTime,r=wf(t.element,t.triggerName,t.fromState,t.toState,i||t.phaseName,null==n?t.totalTime:n,!!e.disabled),o=t._data;return
null!=o&&(r._data=o),r}function
wf(t,i,e,n,s="",r=0,o){return{element:t,triggerName:i,fromState:e,toState:n,phaseName:s,totalTime:r,disabled:!!o}}function
oi(t,i,e){let n;return t instanceof
Map?(n=t.get(i),n||t.set(i,n=e)):(n=t[i],n||(n=t[i]=e)),n}function Cw(t){const
i=t.indexOf(":");return[t.substring(1,i),t.substr(i+1)]}let
Tf=(t,i)=>!1,yw=(t,i,e)=>[],ww=null;function Sf(t){const
i=t.parentNode||t.host;return i===ww?null:i}(vf()||"undefined"!=typeof
Element)&&(DP()?(ww=(()=>doc
ument.documentElement)(),Tf=(t,i)=>{for(;i;){if(i===t)return!0;i=Sf(i)}return!1}):Tf=(t,i)=>t.contains(i),yw=(t,i,e)=>{if(e)return
Array.from(t.querySelectorAll(i));const n=t.querySelector(i);return n?[n]:[]});let
yr=null,Tw=!1;function Sw(t){yr||(yr=function kP(){return"undefined"!=typeof
document?document.body:null}()||{},Tw=!!yr.style&&"WebkitAppearance"in
yr.style);let i=!0;return yr.style&&!function
MP(t){return"ebkit"==t.substring(1,6)}(t)&&(i=t in
yr.style,!i&&Tw&&(i="Webkit"+t.charAt(0).toUpperCase()+t.substr(1)in
yr.style)),i}const xw=Tf,Dw=yw;let Mw=(()=>{class t{validateStyleProperty(e){return
Sw(e)}matchesElement(e,n){return!1}containsElement(e,n){return
xw(e,n)}getParentElement(e){return Sf(e)}query(e,n,s){return
Dw(e,n,s)}computeStyle(e,n,s){return s||""}animate(e,n,s,r,o,u=[],h){return new
cl(s,r)}}return t.\u0275fac=function(e){return
new(e||t)},t.\u0275prov=X({token:t,factory:t.\u0275fac}),t})(),xf=(()=>{class t{}return
t.NOOP=new Mw,t})();const Df="ng-enter",Eu="ng
-leave",Ru="ng-trigger",Lu=".ng-trigger",Iw="ng-animating",Mf=".ng-animating";function
wr(t){if("number"==typeof t)return t;const
i=t.match(/^(-?[\.\d]+)(m?s)/);return!i||i.length<2?0:kf(parseFloat(i[1]),i[2])}function
kf(t,i){return"s"===i?1e3*t:t}function Ou(t,i,e){return
t.hasOwnProperty("duration")?t:function RP(t,i,e){let
s,r=0,o="";if("string"==typeof t){const
u=t.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===u)return
i.push(bw()),{duration:0,delay:0,easing:""};s=kf(parseFloat(u[1]),u[2]);const
h=u[3];null!=h&&(r=kf(parseFloat(h),u[4]));const b=u[5];b&&(o=b)}else
s=t;if(!e){let u=!1,h=i.length;s<0&&(i.push(function WA(){return new
re(3100,Ze)}()),u=!0),r<0&&(i.push(function KA(){return new
re(3101,Ze)}()),u=!0),u&&i.splice(h,0,bw())}return{duration:s,delay:r,easing:o}}(t,i,e)}function
Ro(t,i={}){return Object.keys(t).forEach(e=>{i[e]=t[e]}),i}function
Ws(t,i,e={}){if(i)for(let n in t)e[n]=t[n];else Ro(t,e);return e}function Rw(t,i,
e){return e?i+":"+e+";":""}function Lw(t){let
i="";for(let e=0;e<t.style.length;e++){const
n=t.style.item(e);i+=Rw(0,n,t.style.getPropertyValue(n))}for(const e in
t.style)t.style.hasOwnProperty(e)&&!e.startsWith("_")&&(i+=Rw(0,AP(e),t.style[e]));t.setAttribute("style",i)}function
rs(t,i,e){t.style&&(Object.keys(i).forEach(n=>{const
s=Ef(n);e&&!e.hasOwnProperty(n)&&(e[n]=t.style[s]),t.style[s]=i[n]}),vf()&&Lw(t))}function
Tr(t,i){t.style&&(Object.keys(i).forEach(e=>{const
n=Ef(e);t.style[n]=""}),vf()&&Lw(t))}function ul(t){return
Array.isArray(t)?1==t.length?t[0]:mw(t):t}const If=new
RegExp("{{\\s*(.+?)\\s*}}","g");function Ow(t){let
i=[];if("string"==typeof t){let
e;for(;e=If.exec(t);)i.push(e[1]);If.lastIndex=0}return i}function Au(t,i,e){const
n=t.toString(),s=n.replace(If,(r,o)=>{let u=i[o];return
i.hasOwnProperty(o)||(e.push(function JA(t){return new
re(3003,Ze)}()),u=""),u.toString()});return s==n?t:s}function Pu(t){const
i=[];let e=t.next();for(;!e.done;)i.push(e.value),e=t.ne
xt();return i}const OP=/-+([a-z0-9])/g;function Ef(t){return
t.replace(OP,(...i)=>i[1].toUpperCase())}function AP(t){return
t.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}function
ai(t,i,e){switch(i.type){case 7:return t.visitTrigger(i,e);case 0:return
t.visitState(i,e);case 1:return t.visitTransition(i,e);case 2:return
t.visitSequence(i,e);case 3:return t.visitGroup(i,e);case 4:return
t.visitAnimate(i,e);case 5:return t.visitKeyframes(i,e);case 6:return
t.visitStyle(i,e);case 8:return t.visitReference(i,e);case 9:return
t.visitAnimateChild(i,e);case 10:return t.visitAnimateRef(i,e);case 11:return
t.visitQuery(i,e);case 12:return t.visitStagger(i,e);default:throw function YA(t){return
new re(3004,Ze)}()}}function Aw(t,i){return window.getComputedStyle(t)[i]}function
HP(t,i){const e=[];return"string"==typeof
t?t.split(/\s*,\s*/).forEach(n=>function qP(t,i,e){if(":"==t[0]){const
h=function GP(t,i){switch(t){case":enter":return"void =>
*";case":leave":return"* => void";case":increm
ent":return(e,n)=>parseFloat(n)>parseFloat(e);case":decrement":return(e,n)=>parseFloat(n)<parseFloat(e);default:return
i.push(function dP(t){return new re(3016,Ze)}()),"* =>
*"}}(t,e);if("function"==typeof h)return void i.push(h);t=h}const
n=t.match(/^(\*|[-\w]+)\s*(<?[=-]>)\s*(\*|[-\w]+)$/);if(null==n||n.length<4)return
e.push(function uP(t){return new re(3015,Ze)}()),i;const
s=n[1],r=n[2],o=n[3];i.push(Pw(s,o));"<"==r[0]&&!("*"==s&&"*"==o)&&i.push(Pw(o,s))}(n,e,i)):e.push(t),e}const
Bu=new Set(["true","1"]),Hu=new
Set(["false","0"]);function Pw(t,i){const
e=Bu.has(t)||Hu.has(t),n=Bu.has(i)||Hu.has(i);return(s,r)=>{let
o="*"==t||t==s,u="*"==i||i==r;return!o&&e&&"boolean"==typeof
s&&(o=s?Bu.has(t):Hu.has(t)),!u&&n&&"boolean"==typeof
r&&(u=r?Bu.has(i):Hu.has(i)),o&&u}}const UP=new
RegExp("s*:selfs*,?","g");function Rf(t,i,e,n){return new
zP(t).build(i,e,n)}class zP{constructor(i){this._driver=i}build(i,e,n){const s=new
WP(e);this._resetContextStyleTimingState(s);const r=ai(this,ul(i)
,s);return
s.unsupportedCSSPropertiesFound.size&&s.unsupportedCSSPropertiesFound.keys(),r}_resetContextStyleTimingState(i){i.currentQuerySelector="",i.collectedStyles={},i.collectedStyles[""]={},i.currentTime=0}visitTrigger(i,e){let
n=e.queryCount=0,s=e.depCount=0;const
r=[],o=[];return"(a)"==i.name.charAt(0)&&e.errors.push(function
XA(){return new
re(3006,Ze)}()),i.definitions.forEach(u=>{if(this._resetContextStyleTimingState(e),0==u.type){const
h=u,b=h.name;b.toString().split(/\s*,\s*/).forEach(y=>{h.name=y,r.push(this.visitState(h,e))}),h.name=b}else
if(1==u.type){const
h=this.visitTransition(u,e);n+=h.queryCount,s+=h.depCount,o.push(h)}else
e.errors.push(function eP(){return new
re(3007,Ze)}())}),{type:7,name:i.name,states:r,transitions:o,queryCount:n,depCount:s,options:null}}visitState(i,e){const
n=this.visitStyle(i.styles,e),s=i.options&&i.options.params||null;if(n.containsDynamicStyles){const
r=new Set,o=s||{};n.styles.forEach(u=>{if(qu(u)){const
h=u;Object.keys(h).forEach(b=>{
Ow(h[b]).forEach(y=>{o.hasOwnProperty(y)||r.add(y)})})}}),r.size&&(Pu(r.values()),e.errors.push(function
tP(t,i){return new
re(3008,Ze)}()))}return{type:0,name:i.name,style:n,options:s?{params:s}:null}}visitTransition(i,e){e.queryCount=0,e.depCount=0;const
n=ai(this,ul(i.animation),e);return{type:1,matchers:HP(i.expr,e.errors),animation:n,queryCount:e.queryCount,depCount:e.depCount,options:Sr(i.options)}}visitSequence(i,e){return{type:2,steps:i.steps.map(n=>ai(this,n,e)),options:Sr(i.options)}}visitGroup(i,e){const
n=e.currentTime;let s=0;const r=i.steps.map(o=>{e.currentTime=n;const
u=ai(this,o,e);return s=Math.max(s,e.currentTime),u});return
e.currentTime=s,{type:3,steps:r,options:Sr(i.options)}}visitAnimate(i,e){const n=function
QP(t,i){if(t.hasOwnProperty("duration"))return t;if("number"==typeof
t)return Lf(Ou(t,i).duration,0,"");const
e=t;if(e.split(/\s+/).some(r=>"{"==r.charAt(0)&&"{"==r.charAt(1))){const
r=Lf(0,0,"");return r.dynamic=!0,r.strValue=e,r}const s=Ou(e,i);return L
f(s.duration,s.delay,s.easing)}(i.timings,e.errors);e.currentAnimateTimings=n;let
s,r=i.styles?i.styles:it({});if(5==r.type)s=this.visitKeyframes(r,e);else{let
o=i.styles,u=!1;if(!o){u=!0;const
b={};n.easing&&(b.easing=n.easing),o=it(b)}e.currentTime+=n.duration+n.delay;const
h=this.visitStyle(o,e);h.isEmptyStep=u,s=h}return
e.currentAnimateTimings=null,{type:4,timings:n,style:s,options:null}}visitStyle(i,e){const
n=this._makeStyleAst(i,e);return this._validateStyleAst(n,e),n}_makeStyleAst(i,e){const
n=[];Array.isArray(i.styles)?i.styles.forEach(o=>{"string"==typeof
o?o==ys?n.push(o):e.errors.push(function nP(t){return new
re(3002,Ze)}()):n.push(o)}):n.push(i.styles);let s=!1,r=null;return
n.forEach(o=>{if(qu(o)){const u=o,h=u.easing;if(h&&(r=h,delete
u.easing),!s)for(let b in
u)if(u[b].toString().indexOf("{{")>=0){s=!0;break}}}),{type:6,styles:n,easing:r,offset:i.offset,containsDynamicStyles:s,options:null}}_validateStyleAst(i,e){const
n=e.currentAnimateTimings;let s=e.currentTime,
r=e.currentTime;n&&r>0&&(r-=n.duration+n.delay),i.styles.forEach(o=>{"string"!=typeof
o&&Object.keys(o).forEach(u=>{if(!this._driver.validateStyleProperty(u))return
delete o[u],void e.unsupportedCSSPropertiesFound.add(u);const
h=e.collectedStyles[e.currentQuerySelector],b=h[u];let
y=!0;b&&(r!=s&&r>=b.startTime&&s<=b.endTime&&(e.errors.push(function
iP(t,i,e,n,s){return new
re(3010,Ze)}()),y=!1),r=b.startTime),y&&(h[u]={startTime:r,endTime:s}),e.options&&function
LP(t,i,e){const
n=i.params||{},s=Ow(t);s.length&&s.forEach(r=>{n.hasOwnProperty(r)||e.push(function
QA(t){return new re(3001,Ze)}())})}(o[u],e.options,e.errors)})})}visitKeyframes(i,e){const
n={type:5,styles:[],options:null};if(!e.currentAnimateTimings)return
e.errors.push(function sP(){return new re(3011,Ze)}()),n;let r=0;const o=[];let
u=!1,h=!1,b=0;const y=i.steps.map(G=>{const P=this._makeStyleAst(G,e);let
J=null!=P.offset?P.offset:function KP(t){if("string"==typeof t)return null;let
i=null;if(Array.isArray(t))t.forEach(
e=>{if(qu(e)&&e.hasOwnProperty("offset")){const
n=e;i=parseFloat(n.offset),delete n.offset}});else
if(qu(t)&&t.hasOwnProperty("offset")){const
e=t;i=parseFloat(e.offset),delete e.offset}return i}(P.styles),se=0;return
null!=J&&(r++,se=P.offset=J),h=h||se<0||se>1,u=u||se<b,b=se,o.push(se),P});h&&e.errors.push(function
rP(){return new re(3012,Ze)}()),u&&e.errors.push(function oP(){return new
re(3200,Ze)}());const w=i.steps.length;let
M=0;r>0&&r<w?e.errors.push(function aP(){return new
re(3202,Ze)}()):0==r&&(M=1/(w-1));const
E=w-1,L=e.currentTime,O=e.currentAnimateTimings,N=O.duration;return
y.forEach((G,P)=>{const
J=M>0?P==E?1:M*P:o[P],se=J*N;e.currentTime=L+O.delay+se,O.duration=se,this._validateStyleAst(G,e),G.offset=J,n.styles.push(G)}),n}visitReference(i,e){return{type:8,animation:ai(this,ul(i.animation),e),options:Sr(i.options)}}visitAnimateChild(i,e){return
e.depCount++,{type:9,options:Sr(i.options)}}visitAnimateRef(i,e){return{type:10,animation:this.visitReference(i.animation,e
),options:Sr(i.options)}}visitQuery(i,e){const
n=e.currentQuerySelector,s=i.options||{};e.queryCount++,e.currentQuery=i;const[r,o]=function
jP(t){const i=!!t.split(/\s*,\s*/).find(e=>":self"==e);return
i&&(t=t.replace(UP,"")),t=t.replace(/@\*/g,Lu).replace(/@\w+/g,e=>Lu+"-"+e.substr(1)).replace(/:animating/g,Mf),[t,i]}(i.selector);e.currentQuerySelector=n.length?n+"
"+r:r,oi(e.collectedStyles,e.currentQuerySelector,{});const
u=ai(this,ul(i.animation),e);return
e.currentQuery=null,e.currentQuerySelector=n,{type:11,selector:r,limit:s.limit||0,optional:!!s.optional,includeSelf:o,animation:u,originalSelector:i.selector,options:Sr(i.options)}}visitStagger(i,e){e.currentQuery||e.errors.push(function
lP(){return new re(3013,Ze)}());const
n="full"===i.timings?{duration:0,delay:0,easing:"full"}:Ou(i.timings,e.errors,!0);return{type:12,animation:ai(this,ul(i.animation),e),timings:n,options:null}}}class
WP{constructor(i){this.errors=i,this.queryCount=0,this.depCount=0,this.currentTransition=nu
ll,this.currentQuery=null,this.currentQuerySelector=null,this.currentAnimateTimings=null,this.currentTime=0,this.collectedStyles={},this.options=null,this.unsupportedCSSPropertiesFound=new
Set}}function qu(t){return!Array.isArray(t)&&"object"==typeof t}function
Sr(t){return t?(t=Ro(t)).params&&(t.params=function $P(t){return
t?Ro(t):null}(t.params)):t={},t}function
Lf(t,i,e){return{duration:t,delay:i,easing:e}}function
Of(t,i,e,n,s,r,o=null,u=!1){return{type:1,element:t,keyframes:i,preStyleProps:e,postStyleProps:n,duration:s,delay:r,totalTime:s+r,easing:o,subTimeline:u}}class
Gu{constructor(){this._map=new Map}get(i){return this._map.get(i)||[]}append(i,e){let
n=this._map.get(i);n||this._map.set(i,n=[]),n.push(...e)}has(i){return
this._map.has(i)}clear(){this._map.clear()}}const ZP=new
RegExp(":enter","g"),eF=new
RegExp(":leave","g");function
Af(t,i,e,n,s,r={},o={},u,h,b=[]){return(new tF).buildKeyframes(t,i,e,n,s,r,o,u,h,b)}class
tF{buildKeyframes(i,e,n,s,r,o,u,h,b,y=[]){b=b||new G
u;const w=new
Pf(i,e,b,s,r,y,[]);w.options=h,w.currentTimeline.setStyles([o],null,w.errors,h),ai(this,n,w);const
M=w.timelines.filter(E=>E.containsAnimation());if(Object.keys(u).length){let E;for(let
L=M.length-1;L>=0;L--){const
O=M[L];if(O.element===e){E=O;break}}E&&!E.allowOnlyTimelineStyles()&&E.setStyles([u],null,w.errors,h)}return
M.length?M.map(E=>E.buildKeyframes()):[Of(e,[],[],[],0,0,"",!1)]}visitTrigger(i,e){}visitState(i,e){}visitTransition(i,e){}visitAnimateChild(i,e){const
n=e.subInstructions.get(e.element);if(n){const
s=e.createSubContext(i.options),r=e.currentTimeline.currentTime,o=this._visitSubInstructions(n,s,s.options);r!=o&&e.transformIntoNewTimeline(o)}e.previousNode=i}visitAnimateRef(i,e){const
n=e.createSubContext(i.options);n.transformIntoNewTimeline(),this.visitReference(i.animation,n),e.transformIntoNewTimeline(n.currentTimeline.currentTime),e.previousNode=i}_visitSubInstructions(i,e,n){let
r=e.currentTimeline.currentTime;const o=null!=n.duration?wr(n.durati
on):null,u=null!=n.delay?wr(n.delay):null;return 0!==o&&i.forEach(h=>{const
b=e.appendInstructionToTimeline(h,o,u);r=Math.max(r,b.duration+b.delay)}),r}visitReference(i,e){e.updateOptions(i.options,!0),ai(this,i.animation,e),e.previousNode=i}visitSequence(i,e){const
n=e.subContextCount;let s=e;const
r=i.options;if(r&&(r.params||r.delay)&&(s=e.createSubContext(r),s.transformIntoNewTimeline(),null!=r.delay)){6==s.previousNode.type&&(s.currentTimeline.snapshotCurrentStyles(),s.previousNode=Uu);const
o=wr(r.delay);s.delayNextStep(o)}i.steps.length&&(i.steps.forEach(o=>ai(this,o,s)),s.currentTimeline.applyStylesToKeyframe(),s.subContextCount>n&&s.transformIntoNewTimeline()),e.previousNode=i}visitGroup(i,e){const
n=[];let s=e.currentTimeline.currentTime;const
r=i.options&&i.options.delay?wr(i.options.delay):0;i.steps.forEach(o=>{const
u=e.createSubContext(i.options);r&&u.delayNextStep(r),ai(this,o,u),s=Math.max(s,u.currentTimeline.currentTime),n.push(u.currentTimeline)}),n.forEach(o=>e.cu
rrentTimeline.mergeTimelineCollectedStyles(o)),e.transformIntoNewTimeline(s),e.previousNode=i}_visitTiming(i,e){if(i.dynamic){const
n=i.strValue;return
Ou(e.params?Au(n,e.params,e.errors):n,e.errors)}return{duration:i.duration,delay:i.delay,easing:i.easing}}visitAnimate(i,e){const
n=e.currentAnimateTimings=this._visitTiming(i.timings,e),s=e.currentTimeline;n.delay&&(e.incrementTime(n.delay),s.snapshotCurrentStyles());const
r=i.style;5==r.type?this.visitKeyframes(r,e):(e.incrementTime(n.duration),this.visitStyle(r,e),s.applyStylesToKeyframe()),e.currentAnimateTimings=null,e.previousNode=i}visitStyle(i,e){const
n=e.currentTimeline,s=e.currentAnimateTimings;!s&&n.getCurrentStyleProperties().length&&n.forwardFrame();const
r=s&&s.easing||i.easing;i.isEmptyStep?n.applyEmptyStep(r):n.setStyles(i.styles,r,e.errors,e.options),e.previousNode=i}visitKeyframes(i,e){const
n=e.currentAnimateTimings,s=e.currentTimeline.duration,r=n.duration,u=e.createSubContext().currentTimeline;u.easing=n.easing,
i.styles.forEach(h=>{u.forwardTime((h.offset||0)*r),u.setStyles(h.styles,h.easing,e.errors,e.options),u.applyStylesToKeyframe()}),e.currentTimeline.mergeTimelineCollectedStyles(u),e.transformIntoNewTimeline(s+r),e.previousNode=i}visitQuery(i,e){const
n=e.currentTimeline.currentTime,s=i.options||{},r=s.delay?wr(s.delay):0;r&&(6===e.previousNode.type||0==n&&e.currentTimeline.getCurrentStyleProperties().length)&&(e.currentTimeline.snapshotCurrentStyles(),e.previousNode=Uu);let
o=n;const
u=e.invokeQuery(i.selector,i.originalSelector,i.limit,i.includeSelf,!!s.optional,e.errors);e.currentQueryTotal=u.length;let
h=null;u.forEach((b,y)=>{e.currentQueryIndex=y;const
w=e.createSubContext(i.options,b);r&&w.delayNextStep(r),b===e.element&&(h=w.currentTimeline),ai(this,i.animation,w),w.currentTimeline.applyStylesToKeyframe(),o=Math.max(o,w.currentTimeline.currentTime)}),e.currentQueryIndex=0,e.currentQueryTotal=0,e.transformIntoNewTimeline(o),h&&(e.currentTimeline.mergeTimelineCollectedStyles(h)
,e.currentTimeline.snapshotCurrentStyles()),e.previousNode=i}visitStagger(i,e){const
n=e.parentContext,s=e.currentTimeline,r=i.timings,o=Math.abs(r.duration),u=o*(e.currentQueryTotal-1);let
h=o*e.currentQueryIndex;switch(r.duration<0?"reverse":r.easing){case"reverse":h=u-h;break;case"full":h=n.currentStaggerTime}const
y=e.currentTimeline;h&&y.delayNextStep(h);const
w=y.currentTime;ai(this,i.animation,e),e.previousNode=i,n.currentStaggerTime=s.currentTime-w+(s.startTime-n.currentTimeline.startTime)}}const
Uu={};class
Pf{constructor(i,e,n,s,r,o,u,h){this._driver=i,this.element=e,this.subInstructions=n,this._enterClassName=s,this._leaveClassName=r,this.errors=o,this.timelines=u,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=Uu,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=h||new
zu(this._driver,e,0),u.push(this.currentTimeline)}get params(){return
this.options.params}upd
ateOptions(i,e){if(!i)return;const n=i;let
s=this.options;null!=n.duration&&(s.duration=wr(n.duration)),null!=n.delay&&(s.delay=wr(n.delay));const
r=n.params;if(r){let
o=s.params;o||(o=this.options.params={}),Object.keys(r).forEach(u=>{(!e||!o.hasOwnProperty(u))&&(o[u]=Au(r[u],o,this.errors))})}}_copyOptions(){const
i={};if(this.options){const e=this.options.params;if(e){const
n=i.params={};Object.keys(e).forEach(s=>{n[s]=e[s]})}}return
i}createSubContext(i=null,e,n){const s=e||this.element,r=new
Pf(this._driver,s,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(s,n||0));return
r.previousNode=this.previousNode,r.currentAnimateTimings=this.currentAnimateTimings,r.options=this._copyOptions(),r.updateOptions(i),r.currentQueryIndex=this.currentQueryIndex,r.currentQueryTotal=this.currentQueryTotal,r.parentContext=this,this.subContextCount++,r}transformIntoNewTimeline(i){return
this.previousNode=Uu,this.currentTimeline=thi
s.currentTimeline.fork(this.element,i),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(i,e,n){const
s={duration:null!=e?e:i.duration,delay:this.currentTimeline.currentTime+(null!=n?n:0)+i.delay,easing:""},r=new
nF(this._driver,i.element,i.keyframes,i.preStyleProps,i.postStyleProps,s,i.stretchStartingKeyframe);return
this.timelines.push(r),s}incrementTime(i){this.currentTimeline.forwardTime(this.currentTimeline.duration+i)}delayNextStep(i){i>0&&this.currentTimeline.delayNextStep(i)}invokeQuery(i,e,n,s,r,o){let
u=[];if(s&&u.push(this.element),i.length>0){i=(i=i.replace(ZP,"."+this._enterClassName)).replace(eF,"."+this._leaveClassName);let
b=this._driver.query(this.element,i,1!=n);0!==n&&(b=n<0?b.slice(b.length+n,b.length):b.slice(0,n)),u.push(...b)}return!r&&0==u.length&&o.push(function
cP(t){return new re(3014,Ze)}()),u}}class
zu{constructor(i,e,n,s){this._driver=i,this.element=e,this.startTime=n,this._elementTimelineStylesLookup=s,this.dura
tion=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(i){const
e=1==this._keyframes.size&&Object.keys(this._pendingStyles).length;this.duration||e?(this.forwardTime(this.currentTime+i),e&&this.snapshotCurrentStyles()
):this.startTime+=i}fork(i,e){return this.applyStylesToKeyframe(),new
zu(this._driver,i,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(i){this.applyStylesToKeyframe(),this.duration=i,this._loadKeyframe()}_updateStyle(i,e){this._localTimelineStyles[i]=e,this._globalTimelineStyles[i]=e,this._styleSummary[i]={time:this.currentTime,value:e}}allowOnlyTimelineStyles(){return
this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(i){i&&(this._previousKeyframe.easing=i),Object.keys(this._globalTimelineStyles).forEach(e=>{this._backFill[e]=this._globalTimelineStyles[e]||ys,this._currentKeyframe[e]=ys}),this._currentEmptyStepKeyfra
me=this._currentKeyframe}setStyles(i,e,n,s){e&&(this._previousKeyframe.easing=e);const
r=s&&s.params||{},o=function iF(t,i){const e={};let n;return
t.forEach(s=>{"*"===s?(n=n||Object.keys(i),n.forEach(r=>{e[r]=ys})):Ws(s,!1,e)}),e}(i,this._globalTimelineStyles);Object.keys(o).forEach(u=>{const
h=Au(o[u],r,n);this._pendingStyles[u]=h,this._localTimelineStyles.hasOwnProperty(u)||(this._backFill[u]=this._globalTimelineStyles.hasOwnProperty(u)?this._globalTimelineStyles[u]:ys),this._updateStyle(u,h)})}applyStylesToKeyframe(){const
i=this._pendingStyles,e=Object.keys(i);0!=e.length&&(this._pendingStyles={},e.forEach(n=>{this._currentKeyframe[n]=i[n]}),Object.keys(this._localTimelineStyles).forEach(n=>{this._currentKeyframe.hasOwnProperty(n)||(this._currentKeyframe[n]=this._localTimelineStyles[n])}))}snapshotCurrentStyles(){Object.keys(this._localTimelineStyles).forEach(i=>{const
e=this._localTimelineStyles[i];this._pendingStyles[i]=e,this._updateStyle(i,e)})}getFinalKeyframe(){return
thi
s._keyframes.get(this.duration)}get properties(){const i=[];for(let e in
this._currentKeyframe)i.push(e);return
i}mergeTimelineCollectedStyles(i){Object.keys(i._styleSummary).forEach(e=>{const
n=this._styleSummary[e],s=i._styleSummary[e];(!n||s.time>n.time)&&this._updateStyle(e,s.value)})}buildKeyframes(){this.applyStylesToKeyframe();const
i=new Set,e=new Set,n=1===this._keyframes.size&&0===this.duration;let
s=[];this._keyframes.forEach((u,h)=>{const
b=Ws(u,!0);Object.keys(b).forEach(y=>{const
w=b[y];"!"==w?i.add(y):w==ys&&e.add(y)}),n||(b.offset=h/this.duration),s.push(b)});const
r=i.size?Pu(i.values()):[],o=e.size?Pu(e.values()):[];if(n){const
u=s[0],h=Ro(u);u.offset=0,h.offset=1,s=[u,h]}return
Of(this.element,s,r,o,this.duration,this.startTime,this.easing,!1)}}class nF extends
zu{constructor(i,e,n,s,r,o,u=!1){super(i,e,o.delay),this.keyframes=n,this.preStyleProps=s,this.postStyleProps=r,this._stretchStartingKeyframe=u,this.timings={duration:o.duration,delay:o.delay,easing:o.easin
g}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let
i=this.keyframes,{delay:e,duration:n,easing:s}=this.timings;if(this._stretchStartingKeyframe&&e){const
r=[],o=n+e,u=e/o,h=Ws(i[0],!1);h.offset=0,r.push(h);const
b=Ws(i[0],!1);b.offset=Vw(u),r.push(b);const y=i.length-1;for(let w=1;w<=y;w++){let
M=Ws(i[w],!1);M.offset=Vw((e+M.offset*n)/o),r.push(M)}n=o,e=0,s="",i=r}return
Of(this.element,i,this.preStyleProps,this.postStyleProps,n,e,s,!0)}}function
Vw(t,i=3){const e=Math.pow(10,i-1);return Math.round(t*e)/e}class Ff{}class sF extends
Ff{normalizePropertyName(i,e){return Ef(i)}normalizeStyleValue(i,e,n,s){let
r="";const
o=n.toString().trim();if(rF[e]&&0!==n&&"0"!==n)if("number"==typeof
n)r="px";else{const
u=n.match(/^[+-]?[\d\.]+([a-z]*)$/);u&&0==u[1].length&&s.push(function
ZA(t,i){return new re(3005,Ze)}())}return o+r}}const rF=(()=>function oF(t){const
i={};return
t.forEach(e=>i[e]=!0),i}("width,height,minWidth,minHeight,maxWidth,maxHeight,left,top,bottom,rig
ht,fontSize,outlineWidth,outlineOffset,paddingTop,paddingLeft,paddingBottom,paddingRight,marginTop,marginLeft,marginBottom,marginRight,borderRadius,borderWidth,borderTopWidth,borderLeftWidth,borderRightWidth,borderBottomWidth,textIndent,perspective".split(",")))();function
Bw(t,i,e,n,s,r,o,u,h,b,y,w,M){return{type:0,element:t,triggerName:i,isRemovalTransition:s,fromState:e,fromStyles:r,toState:n,toStyles:o,timelines:u,queriedElements:h,preStyleProps:b,postStyleProps:y,totalTime:w,errors:M}}const
Nf={};class
Hw{constructor(i,e,n){this._triggerName=i,this.ast=e,this._stateStyles=n}match(i,e,n,s){return
function aF(t,i,e,n,s){return
t.some(r=>r(i,e,n,s))}(this.ast.matchers,i,e,n,s)}buildStyles(i,e,n){const
s=this._stateStyles["*"],r=this._stateStyles[i],o=s?s.buildStyles(e,n):{};return
r?r.buildStyles(e,n):o}build(i,e,n,s,r,o,u,h,b,y){const
w=[],M=this.ast.options&&this.ast.options.params||Nf,L=this.buildStyles(n,u&&u.params||Nf,w),O=h&&h.params||Nf,N=this.buildStyles(s,O,w),G=new
Set,
P=new Map,J=new
Map,se="void"===s,ke={params:Object.assign(Object.assign({},M),O)},mt=y?[]:Af(i,e,this.ast.animation,r,o,L,N,ke,b,w);let
Ct=0;if(mt.forEach(At=>{Ct=Math.max(At.duration+At.delay,Ct)}),w.length)return
Bw(e,this._triggerName,n,s,se,L,N,[],[],P,J,Ct,w);mt.forEach(At=>{const
hn=At.element,$o=oi(P,hn,{});At.preStyleProps.forEach($i=>$o[$i]=!0);const
ks=oi(J,hn,{});At.postStyleProps.forEach($i=>ks[$i]=!0),hn!==e&&G.add(hn)});const
Ut=Pu(G.values());return Bw(e,this._triggerName,n,s,se,L,N,mt,Ut,P,J,Ct)}}class
lF{constructor(i,e,n){this.styles=i,this.defaultParams=e,this.normalizer=n}buildStyles(i,e){const
n={},s=Ro(this.defaultParams);return Object.keys(i).forEach(r=>{const
o=i[r];null!=o&&(s[r]=o)}),this.styles.styles.forEach(r=>{if("string"!=typeof
r){const o=r;Object.keys(o).forEach(u=>{let
h=o[u];h.length>1&&(h=Au(h,s,e));const
b=this.normalizer.normalizePropertyName(u,e);h=this.normalizer.normalizeStyleValue(u,b,h,e),n[b]=h})}}),n}}class
uF{constructor(i,e,n){this.nam
e=i,this.ast=e,this._normalizer=n,this.transitionFactories=[],this.states={},e.states.forEach(s=>{this.states[s.name]=new
lF(s.style,s.options&&s.options.params||{},n)}),qw(this.states,"true","1"),qw(this.states,"false","0"),e.transitions.forEach(s=>{this.transitionFactories.push(new
Hw(i,s,this.states))}),this.fallbackTransition=function dF(t,i,e){return new
Hw(t,{type:1,animation:{type:2,steps:[],options:null},matchers:[(o,u)=>!0],options:null,queryCount:0,depCount:0},i)}(i,this.states)}get
containsQueries(){return this.ast.queryCount>0}matchTransition(i,e,n,s){return
this.transitionFactories.find(o=>o.match(i,e,n,s))||null}matchStyles(i,e,n){return
this.fallbackTransition.buildStyles(i,e,n)}}function
qw(t,i,e){t.hasOwnProperty(i)?t.hasOwnProperty(e)||(t[e]=t[i]):t.hasOwnProperty(e)&&(t[i]=t[e])}const
pF=new Gu;class
hF{constructor(i,e,n){this.bodyNode=i,this._driver=e,this._normalizer=n,this._animations={},this._playersById={},this.players=[]}register(i,e){const
n=[],r=Rf(this._d
river,e,n,[]);if(n.length)throw function gP(t){return new
re(3503,Ze)}();this._animations[i]=r}_buildPlayer(i,e,n){const
s=i.element,r=vw(0,this._normalizer,0,i.keyframes,e,n);return
this._driver.animate(s,r,i.duration,i.delay,i.easing,[],!0)}create(i,e,n={}){const
s=[],r=this._animations[i];let o;const u=new
Map;if(r?(o=Af(this._driver,e,r,Df,Eu,{},{},n,pF,s),o.forEach(y=>{const
w=oi(u,y.element,{});y.postStyleProps.forEach(M=>w[M]=null)})):(s.push(function
_P(){return new re(3300,Ze)}()),o=[]),s.length)throw function bP(t){return new
re(3504,Ze)}();u.forEach((y,w)=>{Object.keys(y).forEach(M=>{y[M]=this._driver.computeStyle(w,M,ys)})});const
b=$s(o.map(y=>{const w=u.get(y.element);return this._buildPlayer(y,{},w)}));return
this._playersById[i]=b,b.onDestroy(()=>this.destroy(i)),this.players.push(b),b}destroy(i){const
e=this._getPlayer(i);e.destroy(),delete this._playersById[i];const
n=this.players.indexOf(e);n>=0&&this.players.splice(n,1)}_getPlayer(i){const
e=this._playersById[i];
if(!e)throw function vP(t){return new re(3301,Ze)}();return e}listen(i,e,n,s){const
r=wf(e,"","","");return
Cf(this._getPlayer(i),n,r,s),()=>{}}command(i,e,n,s){if("register"==n)return
void this.register(i,s[0]);if("create"==n)return void
this.create(i,e,s[0]||{});const
r=this._getPlayer(i);switch(n){case"play":r.play();break;case"pause":r.pause();break;case"reset":r.reset();break;case"restart":r.restart();break;case"finish":r.finish();break;case"init":r.init();break;case"setPosition":r.setPosition(parseFloat(s[0]));break;case"destroy":this.destroy(i)}}}const
Gw="ng-animate-queued",Vf="ng-animate-disabled",bF=[],Uw={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},vF={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},Ti="__ng_removed";class
Bf{constructor(i,e=""){this.namespaceId=e;const
n=i&&i.hasOwnProperty("value");if(this.value=function TF(t){return
null!=t?t:null}(n?i.value:i),n){const r=Ro(i);delete r.v
alue,this.options=r}else
this.options={};this.options.params||(this.options.params={})}get params(){return
this.options.params}absorbOptions(i){const e=i.params;if(e){const
n=this.options.params;Object.keys(e).forEach(s=>{null==n[s]&&(n[s]=e[s])})}}}const
dl="void",Hf=new Bf(dl);class
CF{constructor(i,e,n){this.id=i,this.hostElement=e,this._engine=n,this.players=[],this._triggers={},this._queue=[],this._elementListeners=new
Map,this._hostClassName="ng-tns-"+i,Si(e,this._hostClassName)}listen(i,e,n,s){if(!this._triggers.hasOwnProperty(e))throw
function CP(t,i){return new re(3302,Ze)}();if(null==n||0==n.length)throw function
yP(t){return new re(3303,Ze)}();if(!function
SF(t){return"start"==t||"done"==t}(n))throw function wP(t,i){return
new re(3400,Ze)}();const
r=oi(this._elementListeners,i,[]),o={name:e,phase:n,callback:s};r.push(o);const
u=oi(this._engine.statesByElement,i,{});return
u.hasOwnProperty(e)||(Si(i,Ru),Si(i,Ru+"-"+e),u[e]=Hf),()=>{this._engine.afterFlush(()=>{const
h=r.in
dexOf(o);h>=0&&r.splice(h,1),this._triggers[e]||delete
u[e]})}}register(i,e){return!this._triggers[i]&&(this._triggers[i]=e,!0)}_getTrigger(i){const
e=this._triggers[i];if(!e)throw function TP(t){return new re(3401,Ze)}();return
e}trigger(i,e,n,s=!0){const r=this._getTrigger(e),o=new qf(this.id,e,i);let
u=this._engine.statesByElement.get(i);u||(Si(i,Ru),Si(i,Ru+"-"+e),this._engine.statesByElement.set(i,u={}));let
h=u[e];const b=new
Bf(n,this.id);if(!(n&&n.hasOwnProperty("value"))&&h&&b.absorbOptions(h.options),u[e]=b,h||(h=Hf),b.value!==dl&&h.value===b.value){if(!function
MF(t,i){const e=Object.keys(t),n=Object.keys(i);if(e.length!=n.length)return!1;for(let
s=0;s<e.length;s++){const
r=e[s];if(!i.hasOwnProperty(r)||t[r]!==i[r])return!1}return!0}(h.params,b.params)){const
O=[],N=r.matchStyles(h.value,h.params,O),G=r.matchStyles(b.value,b.params,O);O.length?this._engine.reportError(O):this._engine.afterFlush(()=>{Tr(i,N),rs(i,G)})}return}const
M=oi(this._engine.playersByElement,i,[]);M
.forEach(O=>{O.namespaceId==this.id&&O.triggerName==e&&O.queued&&O.destroy()});let
E=r.matchTransition(h.value,b.value,i,b.params),L=!1;if(!E){if(!s)return;E=r.fallbackTransition,L=!0}return
this._engine.totalQueuedPlayers++,this._queue.push({element:i,triggerName:e,transition:E,fromState:h,toState:b,player:o,isFallbackTransition:L}),L||(Si(i,Gw),o.onStart(()=>{Lo(i,Gw)})),o.onDone(()=>{let
O=this.players.indexOf(o);O>=0&&this.players.splice(O,1);const
N=this._engine.playersByElement.get(i);if(N){let
G=N.indexOf(o);G>=0&&N.splice(G,1)}}),this.players.push(o),M.push(o),o}deregister(i){delete
this._triggers[i],this._engine.statesByElement.forEach((e,n)=>{delete
e[i]}),this._elementListeners.forEach((e,n)=>{this._elementListeners.set(n,e.filter(s=>s.name!=i))})}clearElementCache(i){this._engine.statesByElement.delete(i),this._elementListeners.delete(i);const
e=this._engine.playersByElement.get(i);e&&(e.forEach(n=>n.destroy()),this._engine.playersByElement.delete(i))}_signalRemovalForIn
nerTriggers(i,e){const
n=this._engine.driver.query(i,Lu,!0);n.forEach(s=>{if(s[Ti])return;const
r=this._engine.fetchNamespacesByElement(s);r.size?r.forEach(o=>o.triggerLeaveAnimation(s,e,!1,!0)):this.clearElementCache(s)}),this._engine.afterFlushAnimationsDone(()=>n.forEach(s=>this.clearElementCache(s)))}triggerLeaveAnimation(i,e,n,s){const
r=this._engine.statesByElement.get(i),o=new Map;if(r){const
u=[];if(Object.keys(r).forEach(h=>{if(o.set(h,r[h].value),this._triggers[h]){const
b=this.trigger(i,h,dl,s);b&&u.push(b)}}),u.length)return
this._engine.markElementAsRemoved(this.id,i,!0,e,o),n&&$s(u).onDone(()=>this._engine.processLeaveNode(i)),!0}return!1}prepareLeaveAnimationListeners(i){const
e=this._elementListeners.get(i),n=this._engine.statesByElement.get(i);if(e&&n){const
s=new Set;e.forEach(r=>{const o=r.name;if(s.has(o))return;s.add(o);const
h=this._triggers[o].fallbackTransition,b=n[o]||Hf,y=new Bf(dl),w=new
qf(this.id,o,i);this._engine.totalQueuedPlayers++,this._queue.push({e
lement:i,triggerName:o,transition:h,fromState:b,toState:y,player:w,isFallbackTransition:!0})})}}removeNode(i,e){const
n=this._engine;if(i.childElementCount&&this._signalRemovalForInnerTriggers(i,e),this.triggerLeaveAnimation(i,e,!0))return;let
s=!1;if(n.totalAnimations){const
r=n.players.length?n.playersByQueriedElement.get(i):[];if(r&&r.length)s=!0;else{let
o=i;for(;o=o.parentNode;)if(n.statesByElement.get(o)){s=!0;break}}}if(this.prepareLeaveAnimationListeners(i),s)n.markElementAsRemoved(this.id,i,!1,e);else{const
r=i[Ti];(!r||r===Uw)&&(n.afterFlush(()=>this.clearElementCache(i)),n.destroyInnerAnimations(i),n._onRemovalComplete(i,e))}}insertNode(i,e){Si(i,this._hostClassName)}drainQueuedTransitions(i){const
e=[];return this._queue.forEach(n=>{const s=n.player;if(s.destroyed)return;const
r=n.element,o=this._elementListeners.get(r);o&&o.forEach(u=>{if(u.name==n.triggerName){const
h=wf(r,n.triggerName,n.fromState.value,n.toState.value);h._data=i,Cf(n.player,u.phase,h,u.callback)}}),s
.markedForDestroy?this._engine.afterFlush(()=>{s.destroy()}):e.push(n)}),this._queue=[],e.sort((n,s)=>{const
r=n.transition.ast.depCount,o=s.transition.ast.depCount;return
0==r||0==o?r-o:this._engine.driver.containsElement(n.element,s.element)?1:-1})}destroy(i){this.players.forEach(e=>e.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,i)}elementContainsData(i){let
e=!1;return
this._elementListeners.has(i)&&(e=!0),e=!!this._queue.find(n=>n.element===i)||e,e}}class
yF{constructor(i,e,n){this.bodyNode=i,this.driver=e,this._normalizer=n,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=(s,r)=>{}}_onRem
ovalComplete(i,e){this.onRemovalComplete(i,e)}get queuedPlayers(){const i=[];return
this._namespaceList.forEach(e=>{e.players.forEach(n=>{n.queued&&i.push(n)})}),i}createNamespace(i,e){const
n=new CF(i,e,this);return
this.bodyNode&&this.driver.containsElement(this.bodyNode,e)?this._balanceNamespaceList(n,e):(this.newHostElements.set(e,n),this.collectEnterElement(e)),this._namespaceLookup[i]=n}_balanceNamespaceList(i,e){const
n=this._namespaceList,s=this.namespacesByHostElement,r=n.length-1;if(r>=0){let
o=!1;if(void 0!==this.driver.getParentElement){let
u=this.driver.getParentElement(e);for(;u;){const h=s.get(u);if(h){const
b=n.indexOf(h);n.splice(b+1,0,i),o=!0;break}u=this.driver.getParentElement(u)}}else
for(let
u=r;u>=0;u--)if(this.driver.containsElement(n[u].hostElement,e)){n.splice(u+1,0,i),o=!0;break}o||n.unshift(i)}else
n.push(i);return s.set(e,i),i}register(i,e){let n=this._namespaceLookup[i];return
n||(n=this.createNamespace(i,e)),n}registerTrigger(i,e,n){let s=this._namespa
ceLookup[i];s&&s.register(e,n)&&this.totalAnimations++}destroy(i,e){if(!i)return;const
n=this._fetchNamespace(i);this.afterFlush(()=>{this.namespacesByHostElement.delete(n.hostElement),delete
this._namespaceLookup[i];const
s=this._namespaceList.indexOf(n);s>=0&&this._namespaceList.splice(s,1)}),this.afterFlushAnimationsDone(()=>n.destroy(e))}_fetchNamespace(i){return
this._namespaceLookup[i]}fetchNamespacesByElement(i){const e=new
Set,n=this.statesByElement.get(i);if(n){const s=Object.keys(n);for(let
r=0;r<s.length;r++){const o=n[s[r]].namespaceId;if(o){const
u=this._fetchNamespace(o);u&&e.add(u)}}}return e}trigger(i,e,n,s){if(ju(e)){const
r=this._fetchNamespace(i);if(r)return
r.trigger(e,n,s),!0}return!1}insertNode(i,e,n,s){if(!ju(e))return;const
r=e[Ti];if(r&&r.setForRemoval){r.setForRemoval=!1,r.setForMove=!0;const
o=this.collectedLeaveElements.indexOf(e);o>=0&&this.collectedLeaveElements.splice(o,1)}if(i){const
o=this._fetchNamespace(i);o&&o.insertNode(e,n)}s&&this.collectEnterE
lement(e)}collectEnterElement(i){this.collectedEnterElements.push(i)}markElementAsDisabled(i,e){e?this.disabledNodes.has(i)||(this.disabledNodes.add(i),Si(i,Vf)):this.disabledNodes.has(i)&&(this.disabledNodes.delete(i),Lo(i,Vf))}removeNode(i,e,n,s){if(ju(e)){const
r=i?this._fetchNamespace(i):null;if(r?r.removeNode(e,s):this.markElementAsRemoved(i,e,!1,s),n){const
o=this.namespacesByHostElement.get(e);o&&o.id!==i&&o.removeNode(e,s)}}else
this._onRemovalComplete(e,s)}markElementAsRemoved(i,e,n,s,r){this.collectedLeaveElements.push(e),e[Ti]={namespaceId:i,setForRemoval:s,hasAnimation:n,removedBeforeQueried:!1,previousTriggersValues:r}}listen(i,e,n,s,r){return
ju(e)?this._fetchNamespace(i).listen(e,n,s,r):()=>{}}_buildInstruction(i,e,n,s,r){return
i.transition.build(this.driver,i.element,i.fromState.value,i.toState.value,n,s,i.fromState.options,i.toState.options,e,r)}destroyInnerAnimations(i){let
e=this.driver.query(i,Lu,!0);e.forEach(n=>this.destroyActiveAnimationsForElement(n)),0!=thi
s.playersByQueriedElement.size&&(e=this.driver.query(i,Mf,!0),e.forEach(n=>this.finishActiveQueriedAnimationOnElement(n)))}destroyActiveAnimationsForElement(i){const
e=this.playersByElement.get(i);e&&e.forEach(n=>{n.queued?n.markedForDestroy=!0:n.destroy()})}finishActiveQueriedAnimationOnElement(i){const
e=this.playersByQueriedElement.get(i);e&&e.forEach(n=>n.finish())}whenRenderingDone(){return
new Promise(i=>{if(this.players.length)return
$s(this.players).onDone(()=>i());i()})}processLeaveNode(i){var e;const
n=i[Ti];if(n&&n.setForRemoval){if(i[Ti]=Uw,n.namespaceId){this.destroyInnerAnimations(i);const
s=this._fetchNamespace(n.namespaceId);s&&s.clearElementCache(i)}this._onRemovalComplete(i,n.setForRemoval)}(null===(e=i.classList)||void
0===e?void
0:e.contains(Vf))&&this.markElementAsDisabled(i,!1),this.driver.query(i,".ng-animate-disabled",!0).forEach(s=>{this.markElementAsDisabled(s,!1)})}flush(i=-1){let
e=[];if(this.newHostElements.size&&(this.newHostElements.forEach((n,s)=>this
._balanceNamespaceList(n,s)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let
n=0;n<this.collectedEnterElements.length;n++)Si(this.collectedEnterElements[n],"ng-star-inserted");if(this._namespaceList.length&&(this.totalQueuedPlayers||this.collectedLeaveElements.length)){const
n=[];try{e=this._flushAnimations(n,i)}finally{for(let s=0;s<n.length;s++)n[s]()}}else
for(let
n=0;n<this.collectedLeaveElements.length;n++)this.processLeaveNode(this.collectedLeaveElements[n]);if(this.totalQueuedPlayers=0,this.collectedEnterElements.length=0,this.collectedLeaveElements.length=0,this._flushFns.forEach(n=>n()),this._flushFns=[],this._whenQuietFns.length){const
n=this._whenQuietFns;this._whenQuietFns=[],e.length?$s(e).onDone(()=>{n.forEach(s=>s())}):n.forEach(s=>s())}}reportError(i){throw
function SP(t){return new re(3402,Ze)}()}_flushAnimations(i,e){const n=new Gu,s=[],r=new
Map,o=[],u=new Map,h=new Map,b=new Map,y=new Set;this.disabledNodes.forEach(a
e=>{y.add(ae);const fe=this.driver.query(ae,".ng-animate-queued",!0);for(let
Se=0;Se<fe.length;Se++)y.add(fe[Se])});const
w=this.bodyNode,M=Array.from(this.statesByElement.keys()),E=$w(M,this.collectedEnterElements),L=new
Map;let O=0;E.forEach((ae,fe)=>{const
Se=Df+O++;L.set(fe,Se),ae.forEach(ot=>Si(ot,Se))});const N=[],G=new Set,P=new
Set;for(let ae=0;ae<this.collectedLeaveElements.length;ae++){const
fe=this.collectedLeaveElements[ae],Se=fe[Ti];Se&&Se.setForRemoval&&(N.push(fe),G.add(fe),Se.hasAnimation?this.driver.query(fe,".ng-star-inserted",!0).forEach(ot=>G.add(ot)):P.add(fe))}const
J=new Map,se=$w(M,Array.from(G));se.forEach((ae,fe)=>{const
Se=Eu+O++;J.set(fe,Se),ae.forEach(ot=>Si(ot,Se))}),i.push(()=>{E.forEach((ae,fe)=>{const
Se=L.get(fe);ae.forEach(ot=>Lo(ot,Se))}),se.forEach((ae,fe)=>{const
Se=J.get(fe);ae.forEach(ot=>Lo(ot,Se))}),N.forEach(ae=>{this.processLeaveNode(ae)})});const
ke=[],mt=[];for(let
ae=this._namespaceList.length-1;ae>=0;ae--)this._namespaceList[ae].drainQ
ueuedTransitions(e).forEach(Se=>{const
ot=Se.player,Cn=Se.element;if(ke.push(ot),this.collectedEnterElements.length){const
$n=Cn[Ti];if($n&&$n.setForMove){if($n.previousTriggersValues&&$n.previousTriggersValues.has(Se.triggerName)){const
Pr=$n.previousTriggersValues.get(Se.triggerName),tr=this.statesByElement.get(Se.element);tr&&tr[Se.triggerName]&&(tr[Se.triggerName].value=Pr)}return
void ot.destroy()}}const
us=!w||!this.driver.containsElement(w,Cn),ui=J.get(Cn),er=L.get(Cn),zt=this._buildInstruction(Se,n,er,ui,us);if(zt.errors&&zt.errors.length)return
void mt.push(zt);if(us)return
ot.onStart(()=>Tr(Cn,zt.fromStyles)),ot.onDestroy(()=>rs(Cn,zt.toStyles)),void
s.push(ot);if(Se.isFallbackTransition)return
ot.onStart(()=>Tr(Cn,zt.fromStyles)),ot.onDestroy(()=>rs(Cn,zt.toStyles)),void
s.push(ot);const
AS=[];zt.timelines.forEach($n=>{$n.stretchStartingKeyframe=!0,this.disabledNodes.has($n.element)||AS.push($n)}),zt.timelines=AS,n.append(Cn,zt.timelines),o.push({instruction:zt,player:ot,
element:Cn}),zt.queriedElements.forEach($n=>oi(u,$n,[]).push(ot)),zt.preStyleProps.forEach(($n,Pr)=>{const
tr=Object.keys($n);if(tr.length){let Fr=h.get(Pr);Fr||h.set(Pr,Fr=new
Set),tr.forEach(xg=>Fr.add(xg))}}),zt.postStyleProps.forEach(($n,Pr)=>{const
tr=Object.keys($n);let Fr=b.get(Pr);Fr||b.set(Pr,Fr=new
Set),tr.forEach(xg=>Fr.add(xg))})});if(mt.length){const
ae=[];mt.forEach(fe=>{ae.push(function xP(t,i){return new
re(3505,Ze)}())}),ke.forEach(fe=>fe.destroy()),this.reportError(ae)}const Ct=new
Map,Ut=new Map;o.forEach(ae=>{const
fe=ae.element;n.has(fe)&&(Ut.set(fe,fe),this._beforeAnimationBuild(ae.player.namespaceId,ae.instruction,Ct))}),s.forEach(ae=>{const
fe=ae.element;this._getPreviousPlayers(fe,!1,ae.namespaceId,ae.triggerName,null).forEach(ot=>{oi(Ct,fe,[]).push(ot),ot.destroy()})});const
At=N.filter(ae=>Kw(ae,h,b)),hn=new
Map;jw(hn,this.driver,P,b,ys).forEach(ae=>{Kw(ae,h,b)&&At.push(ae)});const
ks=new Map;E.forEach((ae,fe)=>{jw(ks,this.driver,new Set(ae),h,"!")}),At.fo
rEach(ae=>{const
fe=hn.get(ae),Se=ks.get(ae);hn.set(ae,Object.assign(Object.assign({},fe),Se))});const
$i=[],Wo=[],Ko={};o.forEach(ae=>{const{element:fe,player:Se,instruction:ot}=ae;if(n.has(fe)){if(y.has(fe))return
Se.onDestroy(()=>rs(fe,ot.toStyles)),Se.disabled=!0,Se.overrideTotalTime(ot.totalTime),void
s.push(Se);let Cn=Ko;if(Ut.size>1){let ui=fe;const er=[];for(;ui=ui.parentNode;){const
zt=Ut.get(ui);if(zt){Cn=zt;break}er.push(ui)}er.forEach(zt=>Ut.set(zt,Cn))}const
us=this._buildAnimation(Se.namespaceId,ot,Ct,r,ks,hn);if(Se.setRealPlayer(us),Cn===Ko)$i.push(Se);else{const
ui=this.playersByElement.get(Cn);ui&&ui.length&&(Se.parentPlayer=$s(ui)),s.push(Se)}}else
Tr(fe,ot.fromStyles),Se.onDestroy(()=>rs(fe,ot.toStyles)),Wo.push(Se),y.has(fe)&&s.push(Se)}),Wo.forEach(ae=>{const
fe=r.get(ae.element);if(fe&&fe.length){const
Se=$s(fe);ae.setRealPlayer(Se)}}),s.forEach(ae=>{ae.parentPlayer?ae.syncPlayerEvents(ae.parentPlayer):ae.destroy()});for(let
ae=0;ae<N.length;ae++){const fe=N[ae
],Se=fe[Ti];if(Lo(fe,Eu),Se&&Se.hasAnimation)continue;let ot=[];if(u.size){let
us=u.get(fe);us&&us.length&&ot.push(...us);let
ui=this.driver.query(fe,Mf,!0);for(let er=0;er<ui.length;er++){let
zt=u.get(ui[er]);zt&&zt.length&&ot.push(...zt)}}const
Cn=ot.filter(us=>!us.destroyed);Cn.length?xF(this,fe,Cn):this.processLeaveNode(fe)}return
N.length=0,$i.forEach(ae=>{this.players.push(ae),ae.onDone(()=>{ae.destroy();const
fe=this.players.indexOf(ae);this.players.splice(fe,1)}),ae.play()}),$i}elementContainsData(i,e){let
n=!1;const s=e[Ti];return
s&&s.setForRemoval&&(n=!0),this.playersByElement.has(e)&&(n=!0),this.playersByQueriedElement.has(e)&&(n=!0),this.statesByElement.has(e)&&(n=!0),this._fetchNamespace(i).elementContainsData(e)||n}afterFlush(i){this._flushFns.push(i)}afterFlushAnimationsDone(i){this._whenQuietFns.push(i)}_getPreviousPlayers(i,e,n,s,r){let
o=[];if(e){const u=this.playersByQueriedElement.get(i);u&&(o=u)}else{const
u=this.playersByElement.get(i);if(u){const h=!r||r==dl;
u.forEach(b=>{b.queued||!h&&b.triggerName!=s||o.push(b)})}}return(n||s)&&(o=o.filter(u=>!(n&&n!=u.namespaceId||s&&s!=u.triggerName))),o}_beforeAnimationBuild(i,e,n){const
r=e.element,o=e.isRemovalTransition?void 0:i,u=e.isRemovalTransition?void
0:e.triggerName;for(const h of e.timelines){const
b=h.element,y=b!==r,w=oi(n,b,[]);this._getPreviousPlayers(b,y,o,u,e.toState).forEach(E=>{const
L=E.getRealPlayer();L.beforeDestroy&&L.beforeDestroy(),E.destroy(),w.push(E)})}Tr(r,e.fromStyles)}_buildAnimation(i,e,n,s,r,o){const
u=e.triggerName,h=e.element,b=[],y=new Set,w=new Set,M=e.timelines.map(L=>{const
O=L.element;y.add(O);const N=O[Ti];if(N&&N.removedBeforeQueried)return new
cl(L.duration,L.delay);const G=O!==h,P=function DF(t){const i=[];return
Ww(t,i),i}((n.get(O)||bF).map(Ct=>Ct.getRealPlayer())).filter(Ct=>!!Ct.element&&Ct.element===O),J=r.get(O),se=o.get(O),ke=vw(0,this._normalizer,0,L.keyframes,J,se),mt=this._buildPlayer(L,ke,P);if(L.subTimeline&&s&&w.add(O),G){const
Ct=new qf(i,u,
O);Ct.setRealPlayer(mt),b.push(Ct)}return
mt});b.forEach(L=>{oi(this.playersByQueriedElement,L.element,[]).push(L),L.onDone(()=>function
wF(t,i,e){let n;if(t instanceof Map){if(n=t.get(i),n){if(n.length){const
s=n.indexOf(e);n.splice(s,1)}0==n.length&&t.delete(i)}}else
if(n=t[i],n){if(n.length){const s=n.indexOf(e);n.splice(s,1)}0==n.length&&delete
t[i]}return
n}(this.playersByQueriedElement,L.element,L))}),y.forEach(L=>Si(L,Iw));const
E=$s(M);return
E.onDestroy(()=>{y.forEach(L=>Lo(L,Iw)),rs(h,e.toStyles)}),w.forEach(L=>{oi(s,L,[]).push(E)}),E}_buildPlayer(i,e,n){return
e.length>0?this.driver.animate(i.element,e,i.duration,i.delay,i.easing,n):new
cl(i.duration,i.delay)}}class
qf{constructor(i,e,n){this.namespaceId=i,this.triggerName=e,this.element=n,this._player=new
cl,this._containsRealPlayer=!1,this._queuedCallbacks={},this.destroyed=!1,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}setRealPlayer(i){this._containsRealPlayer||(this._player=i,Object.keys(
this._queuedCallbacks).forEach(e=>{this._queuedCallbacks[e].forEach(n=>Cf(i,e,void
0,n))}),this._queuedCallbacks={},this._containsRealPlayer=!0,this.overrideTotalTime(i.totalTime),this.queued=!1)}getRealPlayer(){return
this._player}overrideTotalTime(i){this.totalTime=i}syncPlayerEvents(i){const
e=this._player;e.triggerCallback&&i.onStart(()=>e.triggerCallback("start")),i.onDone(()=>this.finish()),i.onDestroy(()=>this.destroy())}_queueEvent(i,e){oi(this._queuedCallbacks,i,[]).push(e)}onDone(i){this.queued&&this._queueEvent("done",i),this._player.onDone(i)}onStart(i){this.queued&&this._queueEvent("start",i),this._player.onStart(i)}onDestroy(i){this.queued&&this._queueEvent("destroy",i),this._player.onDestroy(i)}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,th
is._player.destroy()}reset(){!this.queued&&this._player.reset()}setPosition(i){this.queued||this._player.setPosition(i)}getPosition(){return
this.queued?0:this._player.getPosition()}triggerCallback(i){const
e=this._player;e.triggerCallback&&e.triggerCallback(i)}}function ju(t){return
t&&1===t.nodeType}function zw(t,i){const e=t.style.display;return
t.style.display=null!=i?i:"none",e}function jw(t,i,e,n,s){const
r=[];e.forEach(h=>r.push(zw(h)));const o=[];n.forEach((h,b)=>{const
y={};h.forEach(w=>{const
M=y[w]=i.computeStyle(b,w,s);(!M||0==M.length)&&(b[Ti]=vF,o.push(b))}),t.set(b,y)});let
u=0;return e.forEach(h=>zw(h,r[u++])),o}function $w(t,i){const e=new
Map;if(t.forEach(u=>e.set(u,[])),0==i.length)return e;const s=new Set(i),r=new
Map;function o(u){if(!u)return 1;let h=r.get(u);if(h)return h;const b=u.parentNode;return
h=e.has(b)?b:s.has(b)?1:o(b),r.set(u,h),h}return i.forEach(u=>{const
h=o(u);1!==h&&e.get(h).push(u)}),e}function Si(t,i){var
e;null===(e=t.classList)||void 0===e||
e.add(i)}function Lo(t,i){var e;null===(e=t.classList)||void 0===e||e.remove(i)}function
xF(t,i,e){$s(e).onDone(()=>t.processLeaveNode(i))}function Ww(t,i){for(let
e=0;e<t.length;e++){const n=t[e];n instanceof _w?Ww(n.players,i):i.push(n)}}function
Kw(t,i,e){const n=e.get(t);if(!n)return!1;let s=i.get(t);return
s?n.forEach(r=>s.add(r)):i.set(t,n),e.delete(t),!0}class
$u{constructor(i,e,n){this.bodyNode=i,this._driver=e,this._normalizer=n,this._triggerCache={},this.onRemovalComplete=(s,r)=>{},this._transitionEngine=new
yF(i,e,n),this._timelineEngine=new
hF(i,e,n),this._transitionEngine.onRemovalComplete=(s,r)=>this.onRemovalComplete(s,r)}registerTrigger(i,e,n,s,r){const
o=i+"-"+s;let u=this._triggerCache[o];if(!u){const
h=[],y=Rf(this._driver,r,h,[]);if(h.length)throw function mP(t,i){return new
re(3404,Ze)}();u=function cF(t,i,e){return new
uF(t,i,e)}(s,y,this._normalizer),this._triggerCache[o]=u}this._transitionEngine.registerTrigger(e,s,u)}register(i,e){this._transitionEngine.regi
ster(i,e)}destroy(i,e){this._transitionEngine.destroy(i,e)}onInsert(i,e,n,s){this._transitionEngine.insertNode(i,e,n,s)}onRemove(i,e,n,s){this._transitionEngine.removeNode(i,e,s||!1,n)}disableAnimations(i,e){this._transitionEngine.markElementAsDisabled(i,e)}process(i,e,n,s){if("(a)"==n.charAt(0)){const[r,o]=Cw(n);this._timelineEngine.command(r,e,o,s)}else
this._transitionEngine.trigger(i,e,n,s)}listen(i,e,n,s,r){if("(a)"==n.charAt(0)){const[o,u]=Cw(n);return
this._timelineEngine.listen(o,e,u,r)}return
this._transitionEngine.listen(i,e,n,s,r)}flush(i=-1){this._transitionEngine.flush(i)}get
players(){return
this._transitionEngine.players.concat(this._timelineEngine.players)}whenRenderingDone(){return
this._transitionEngine.whenRenderingDone()}}let IF=(()=>{class
t{constructor(e,n,s){this._element=e,this._startStyles=n,this._endStyles=s,this._state=0;let
r=t.initialStylesByElement.get(e);r||t.initialStylesByElement.set(e,r={}),this._initialStyles=r}start(){this._state<1&&(this._startStyles
&&rs(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(rs(this._element,this._initialStyles),this._endStyles&&(rs(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(t.initialStylesByElement.delete(this._element),this._startStyles&&(Tr(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(Tr(this._element,this._endStyles),this._endStyles=null),rs(this._element,this._initialStyles),this._state=3)}}return
t.initialStylesByElement=new WeakMap,t})();function Gf(t){let i=null;const
e=Object.keys(t);for(let n=0;n<e.length;n++){const
s=e[n];EF(s)&&(i=i||{},i[s]=t[s])}return i}function
EF(t){return"display"===t||"position"===t}class
Qw{constructor(i,e,n,s){this.element=i,this.keyframes=e,this.options=n,this._specialStyles=s,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=n.duration,this._delay=n.delay||0,this.time=this._duration+this._delay}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(i=>i()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;const
i=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,i,this.options),this._finalKeyframe=i.length?i[i.length-1]:{},this.domPlayer.addEventListener("finish",()=>this._onFinish())}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_triggerWebAnimation(i,e,n){return
i.animate(e,n)}onStart(i){this._onStartFns.push(i)}onDone(i){this._onDoneFns.push(i)}onDestroy(i){this._onDestroyFns.push(i)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(i=>i()),this._onStartFns=[],this._started=!0,this._specialStyles&&this._specialStyles.start()),this.domPlaye
r.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(i=>i()),this._onDestroyFns=[])}setPosition(i){void
0===this.domPlayer&&this.init(),this.domPlayer.currentTime=i*this.time}getPosition(){return
this.domPlayer.currentTime/this.time}get totalTime(){return
this._delay+this._duration}beforeDestroy(){const i={};if(this.hasStarted()){const
e=this._finalKeyframe;Object.keys(e).forEach(n=>{"offset"!=n&&(i[n]=this._finished?e[n]:Aw(this.element,n))})}this.currentSnapshot=i}triggerCallback(i){cons
t
e="start"==i?this._onStartFns:this._onDoneFns;e.forEach(n=>n()),e.length=0}}class
RF{validateStyleProperty(i){return
Sw(i)}matchesElement(i,e){return!1}containsElement(i,e){return
xw(i,e)}getParentElement(i){return Sf(i)}query(i,e,n){return
Dw(i,e,n)}computeStyle(i,e,n){return
window.getComputedStyle(i)[e]}animate(i,e,n,s,r,o=[]){const
h={duration:n,delay:s,fill:0==s?"both":"forwards"};r&&(h.easing=r);const
b={},y=o.filter(M=>M instanceof Qw);(function PP(t,i){return
0===t||0===i})(n,s)&&y.forEach(M=>{let
E=M.currentSnapshot;Object.keys(E).forEach(L=>b[L]=E[L])}),e=function FP(t,i,e){const
n=Object.keys(e);if(n.length&&i.length){let
r=i[0],o=[];if(n.forEach(u=>{r.hasOwnProperty(u)||o.push(u),r[u]=e[u]}),o.length)for(var
s=1;s<i.length;s++){let u=i[s];o.forEach(function(h){u[h]=Aw(t,h)})}}return
i}(i,e=e.map(M=>Ws(M,!1)),b);const w=function kF(t,i){let e=null,n=null;return
Array.isArray(i)&&i.length?(e=Gf(i[0]),i.length>1&&(n=Gf(i[i.length-1]))):i&&(e=Gf(i)),e||n?new
IF(t,e,n):null
}(i,e);return new Qw(i,e,h,w)}}let LF=(()=>{class t extends
hw{constructor(e,n){super(),this._nextAnimationId=0,this._renderer=e.createRenderer(n.body,{id:"0",encapsulation:ki.None,styles:[],data:{animation:[]}})}build(e){const
n=this._nextAnimationId.toString();this._nextAnimationId++;const
s=Array.isArray(e)?mw(e):e;return Jw(this._renderer,null,n,"register",[s]),new
OF(n,this._renderer)}}return t.\u0275fac=function(e){return
new(e||t)(K(Ba),K(Xt))},t.\u0275prov=X({token:t,factory:t.\u0275fac}),t})();class OF
extends class zA{}{constructor(i,e){super(),this._id=i,this._renderer=e}create(i,e){return
new AF(this._id,i,e||{},this._renderer)}}class
AF{constructor(i,e,n,s){this.id=i,this.element=e,this._renderer=s,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",n)}_listen(i,e){return
this._renderer.listen(this.element,`@@${this.id}:${i}`,e)}_command(i,...e){return
Jw(this._renderer,this.element,this.id,i,e)}onDone(i){this._listen("done",i)}onStart(i){thi
s._listen("start",i)}onDestroy(i){this._listen("destroy",i)}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(i){this._command("setPosition",i)}getPosition(){var
i,e;return null!==(e=null===(i=this._renderer.engine.players[+this.id])||void 0===i?void
0:i.getPosition())&&void 0!==e?e:0}}function Jw(t,i,e,n,s){return
t.setProperty(i,`@@${e}:${n}`,s)}const Yw="@.disabled";let PF=(()=>{class
t{constructor(e,n,s){this.delegate=e,this.engine=n,this._zone=s,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new
Map,this._cdRecurDepth=0,this.promise=Promise.resolve(0),n.onRemovalComplete=(r,o)=>{const
u=null==o?void 0:o.parentNode(r);u&&o.removeChild(u,r)}}createRenderer(e,n){const
r=this.delegate.crea
teRenderer(e,n);if(!(e&&n&&n.data&&n.data.animation)){let
y=this._rendererCache.get(r);return y||(y=new
Zw("",r,this.engine),this._rendererCache.set(r,y)),y}const
o=n.id,u=n.id+"-"+this._currentId;this._currentId++,this.engine.register(u,e);const
h=y=>{Array.isArray(y)?y.forEach(h):this.engine.registerTrigger(o,u,e,y.name,y)};return
n.data.animation.forEach(h),new
FF(this,u,r,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){this.promise.then(()=>{this._microtaskId++})}scheduleListenerCallback(e,n,s){e>=0&&e<this._microtaskId?this._zone.run(()=>n(s)):(0==this._animationCallbacksBuffer.length&&Promise.resolve(null).then(()=>{this._zone.run(()=>{this._animationCallbacksBuffer.forEach(r=>{const[o,u]=r;o(u)}),this._animationCallbacksBuffer=[]})}),this._animationCallbacksBuffer.push([n,s]))}end(){this._cdRecurDepth--,0==this._cdRecurDepth&&this._zone.runOutsideAngular(()=>{this._scheduleCountTask(),this.engine.flush(this._microtaskI
d)}),this.delegate.end&&this.delegate.end()}whenRenderingDone(){return
this.engine.whenRenderingDone()}}return t.\u0275fac=function(e){return
new(e||t)(K(Ba),K($u),K(nt))},t.\u0275prov=X({token:t,factory:t.\u0275fac}),t})();class
Zw{constructor(i,e,n){this.namespaceId=i,this.delegate=e,this.engine=n,this.destroyNode=this.delegate.destroyNode?s=>e.destroyNode(s):null}get
data(){return
this.delegate.data}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.delegate.destroy()}createElement(i,e){return
this.delegate.createElement(i,e)}createComment(i){return
this.delegate.createComment(i)}createText(i){return
this.delegate.createText(i)}appendChild(i,e){this.delegate.appendChild(i,e),this.engine.onInsert(this.namespaceId,e,i,!1)}insertBefore(i,e,n,s=!0){this.delegate.insertBefore(i,e,n),this.engine.onInsert(this.namespaceId,e,i,s)}removeChild(i,e,n){this.engine.onRemove(this.namespaceId,e,this.delegate,n)}selectRootElement(i,e){return
this.delegate.selectRootElement(i,e)}p
arentNode(i){return this.delegate.parentNode(i)}nextSibling(i){return
this.delegate.nextSibling(i)}setAttribute(i,e,n,s){this.delegate.setAttribute(i,e,n,s)}removeAttribute(i,e,n){this.delegate.removeAttribute(i,e,n)}addClass(i,e){this.delegate.addClass(i,e)}removeClass(i,e){this.delegate.removeClass(i,e)}setStyle(i,e,n,s){this.delegate.setStyle(i,e,n,s)}removeStyle(i,e,n){this.delegate.removeStyle(i,e,n)}setProperty(i,e,n){"@"==e.charAt(0)&&e==Yw?this.disableAnimations(i,!!n):this.delegate.setProperty(i,e,n)}setValue(i,e){this.delegate.setValue(i,e)}listen(i,e,n){return
this.delegate.listen(i,e,n)}disableAnimations(i,e){this.engine.disableAnimations(i,e)}}class
FF extends
Zw{constructor(i,e,n,s){super(e,n,s),this.factory=i,this.namespaceId=e}setProperty(i,e,n){"(a)"==e.charAt(0)?"."==e.charAt(1)&&e==Yw?this.disableAnimations(i,n=void
0===n||!!n):this.engine.process(this.namespaceId,i,e.substr(1),n):this.delegate.setProperty(i,e,n)}listen(i,e,n){if("@"==e.charAt(0)){const
s=function N
F(t){switch(t){case"body":return document.body;case"document":return
document;case"window":return window;default:return t}}(i);let
r=e.substr(1),o="";return"(a)"!=r.charAt(0)&&([r,o]=function
VF(t){const
i=t.indexOf(".");return[t.substring(0,i),t.substr(i+1)]}(r)),this.engine.listen(this.namespaceId,s,r,o,u=>{this.factory.scheduleListenerCallback(u._data||-1,n,u)})}return
this.delegate.listen(i,e,n)}}let BF=(()=>{class t extends
$u{constructor(e,n,s){super(e.body,n,s)}ngOnDestroy(){this.flush()}}return
t.\u0275fac=function(e){return
new(e||t)(K(Xt),K(xf),K(Ff))},t.\u0275prov=X({token:t,factory:t.\u0275fac}),t})();const
Xw=new
be("AnimationModuleType"),eT=[{provide:hw,useClass:LF},{provide:Ff,useFactory:function
HF(){return new sF}},{provide:$u,useClass:BF},{provide:Ba,useFactory:function
qF(t,i,e){return new PF(t,i,e)},deps:[ru,$u,nt]}],tT=[{provide:xf,useFactory:()=>new
RF},{provide:Xw,useValue:"BrowserAnimations"},...eT],GF=[{provide:xf,useClass:Mw},{provide:Xw,useValue:"NoopAnimati
ons"},...eT];let UF=(()=>{class t{static
withConfig(e){return{ngModule:t,providers:e.disableAnimations?GF:tT}}}return
t.\u0275fac=function(e){return
new(e||t)},t.\u0275mod=he({type:t}),t.\u0275inj=ue({providers:tT,imports:[qy]}),t})();class
Z{static equals(i,e,n){return
n?this.resolveFieldData(i,n)===this.resolveFieldData(e,n):this.equalsByValue(i,e)}static
equalsByValue(i,e){if(i===e)return!0;if(i&&e&&"object"==typeof
i&&"object"==typeof e){var
r,o,u,n=Array.isArray(i),s=Array.isArray(e);if(n&&s){if((o=i.length)!=e.length)return!1;for(r=o;0!=r--;)if(!this.equalsByValue(i[r],e[r]))return!1;return!0}if(n!=s)return!1;var
h=i instanceof Date,b=e instanceof Date;if(h!=b)return!1;if(h&&b)return
i.getTime()==e.getTime();var y=i instanceof RegExp,w=e instanceof
RegExp;if(y!=w)return!1;if(y&&w)return i.toString()==e.toString();var
M=Object.keys(i);if((o=M.length)!==Object.keys(e).length)return!1;for(r=o;0!=r--;)if(!Object.prototype.hasOwnProperty.call(e,M[r]))return!1;for(r=o;0!=r--;)if(!th
is.equalsByValue(i[u=M[r]],e[u]))return!1;return!0}return i!=i&&e!=e}static
resolveFieldData(i,e){if(i&&e){if(this.isFunction(e))return
e(i);if(-1==e.indexOf("."))return i[e];{let n=e.split("."),s=i;for(let
r=0,o=n.length;r<o;++r){if(null==s)return null;s=s[n[r]]}return s}}return null}static
isFunction(i){return!!(i&&i.constructor&&i.call&&i.apply)}static
reorderArray(i,e,n){i&&e!==n&&(n>=i.length&&(n%=i.length,e%=i.length),i.splice(n,0,i.splice(e,1)[0]))}static
insertIntoOrderedArray(i,e,n,s){if(n.length>0){let r=!1;for(let
o=0;o<n.length;o++)if(this.findIndexInList(n[o],s)>e){n.splice(o,0,i),r=!0;break}r||n.push(i)}else
n.push(i)}static findIndexInList(i,e){let n=-1;if(e)for(let
s=0;s<e.length;s++)if(e[s]==i){n=s;break}return n}static
contains(i,e){if(null!=i&&e&&e.length)for(let n of
e)if(this.equals(i,n))return!0;return!1}static removeAccents(i){return
i&&i.search(/[\xC0-\xFF]/g)>-1&&(i=i.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")),i}static
isEmpty(i){return null==i||""===i||Array.isArray(i)&&0===i.length||!(i
instanceof Date)&&"object"==typeof
i&&0===Object.keys(i).length}static isNotEmpty(i){return!this.isEmpty(i)}}var
nT=0;function pl(){return"pr_id_"+ ++nT}var dt=function zF(){let t=[];const
s=r=>r&&parseInt(r.style.zIndex,10)||0;return{get:s,set:(r,o,u)=>{o&&(o.style.zIndex=String(((r,o)=>{let
u=t.length>0?t[t.length-1]:{key:r,value:o},h=u.value+(u.key===r?0:o)+1;return
t.push({key:r,value:h}),h})(r,u)))},clear:r=>{r&&((r=>{t=t.filter(o=>o.value!==r)})(s(r)
),r.style.zIndex="")},getCurrent:()=>t.length>0?t[t.length-1].value:0}}();const
iT=["*"];let _t=(()=>{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.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})(),zn=(()=>{class
t{constructor(){this.ripple=!1,this.filterMatchModeOptions={text:[_t.STARTS_WITH,_t.CONTAINS,_t.NOT_CONTAINS,_t.ENDS_WITH,_t.EQUALS,_t.NOT_EQUALS],numeric:[_t.EQUALS,_t.NOT_EQUALS,_t.LESS_THAN,_t.LESS_THAN_OR_EQUAL_TO,_t.GREATER_THAN,_t.GREATER_THAN_OR_EQUAL_TO],date:[_t.DATE_IS,_t.DATE_IS_NOT,_t.DATE_BEFORE,_t.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:1e3,tooltip:1100},this.translationSource=new
ct,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=X({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),Ft=(()=>{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.A
CCEPT="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="dayNamesMin",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})(),hl=(()=>{class
t{constructor(){this.filters={startsWith:(e,n,s)=>{if(null==n||""===n.trim())return!0;if(null==e)return!1;let
r=Z.removeAccents(n.toString()).toLocaleLowerCase(s);return
Z.removeAccents(e.toString()).toLocaleLowerCase(s).slice(0,r.length)===r},contains:(e,n,s)=>{if(null==n||"string"==typeof
n&&""===n.trim())return!0;if(null==e)return!1;let
r=Z.removeAccents(n.toString()).toLocaleLowerCase(s);return-1!==Z.removeAccents(e.toString()).toLocaleLowerCase(s).indexOf(r)},notContains:(e,n,s)=>{if(nul
l==n||"string"==typeof
n&&""===n.trim())return!0;if(null==e)return!1;let
r=Z.removeAccents(n.toString()).toLocaleLowerCase(s);return-1===Z.removeAccents(e.toString()).toLocaleLowerCase(s).indexOf(r)},endsWith:(e,n,s)=>{if(null==n||""===n.trim())return!0;if(null==e)return!1;let
r=Z.removeAccents(n.toString()).toLocaleLowerCase(s),o=Z.removeAccents(e.toString()).toLocaleLowerCase(s);return-1!==o.indexOf(r,o.length-r.length)},equals:(e,n,s)=>null==n||"string"==typeof
n&&""===n.trim()||null!=e&&(e.getTime&&n.getTime?e.getTime()===n.getTime():Z.removeAccents(e.toString()).toLocaleLowerCase(s)==Z.removeAccents(n.toString()).toLocaleLowerCase(s)),notEquals:(e,n,s)=>!(null==n||"string"==typeof
n&&""===n.trim()||null!=e&&(e.getTime&&n.getTime?e.getTime()===n.getTime():Z.removeAccents(e.toString()).toLocaleLowerCase(s)==Z.removeAccents(n.toString()).toLocaleLowerCase(s))),in:(e,n)=>{if(null==n||0===n.length)return!0;for(let
s=0;s<n.length;s++)if(Z.equals(e,n[s]))return!0;return!1},between:(e,
n)=>null==n||null==n[0]||null==n[1]||null!=e&&(e.getTime?n[0].getTime()<=e.getTime()&&e.getTime()<=n[1].getTime():n[0]<=e&&e<=n[1]),lt:(e,n,s)=>null==n||null!=e&&(e.getTime&&n.getTime?e.getTime()<n.getTime():e<n),lte:(e,n,s)=>null==n||null!=e&&(e.getTime&&n.getTime?e.getTime()<=n.getTime():e<=n),gt:(e,n,s)=>null==n||null!=e&&(e.getTime&&n.getTime?e.getTime()>n.getTime():e>n),gte:(e,n,s)=>null==n||null!=e&&(e.getTime&&n.getTime?e.getTime()>=n.getTime():e>=n),is:(e,n,s)=>this.filters.equals(e,n,s),isNot:(e,n,s)=>this.filters.notEquals(e,n,s),before:(e,n,s)=>this.filters.lt(e,n,s),after:(e,n,s)=>this.filters.gt(e,n,s),dateIs:(e,n)=>null==n||null!=e&&e.toDateString()===n.toDateString(),dateIsNot:(e,n)=>null==n||null!=e&&e.toDateString()!==n.toDateString(),dateBefore:(e,n)=>null==n||null!=e&&e.getTime()<n.getTime(),dateAfter:(e,n)=>null==n||null!=e&&e.getTime()>n.getTime()}}filter(e,n,s,r,o){let
u=[];if(e)for(let h of e)for(let b of n){let
y=Z.resolveFieldData(h,b);if(this.filters[r](y,s
,o)){u.push(h);break}}return u}register(e,n){this.filters[e]=n}}return
t.\u0275fac=function(e){return
new(e||t)},t.\u0275prov=X({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),Gi=(()=>{class
t{constructor(){this.messageSource=new ct,this.clearSource=new
ct,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=X({token:t,factory:t.\u0275fac}),t})(),Ks=(()=>{class
t{constructor(){this.clickSource=new
ct,this.clickObservable=this.clickSource.asObservable()}add(e){e&&this.clickSource.next(e)}}return
t.\u0275fac=function(e){return
new(e||t)},t.\u0275prov=X({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),ml=(()=>{class
t{}return t.AND="and",t.OR="or",t})(),Oo=(()=>{class t{}return
t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=z({
type:t,selectors:[["p-header"]],ngContentSelectors:iT,decls:1,vars:0,template:function(e,n){1&e&&(Sn(),St(0))},encapsulation:2}),t})(),fl=(()=>{class
t{}return t.\u0275fac=function(e){return
new(e||t)},t.\u0275cmp=z({type:t,selectors:[["p-footer"]],ngContentSelectors:iT,decls:1,vars:0,template:function(e,n){1&e&&(Sn(),St(0))},encapsulation:2}),t})(),ne=(()=>{class
t{constructor(e){this.template=e}getType(){return this.name}}return
t.\u0275fac=function(e){return
new(e||t)(D(bi))},t.\u0275dir=le({type:t,selectors:[["","pTemplate",""]],inputs:{type:"type",name:["pTemplate","name"]}}),t})(),Nt=(()=>{class
t{}return t.\u0275fac=function(e){return
new(e||t)},t.\u0275mod=he({type:t}),t.\u0275inj=ue({imports:[[Fe]]}),t})();function
jF(t,i){if(1&t&&(l(0,"span",9),g(1),c()),2&t){const
e=d();a(1),T(" ",e.header," ")}}function
$F(t,i){1&t&&Y(0)}function
WF(t,i){1&t&&St(0,1,["*ngIf","hasHeaderFacet"])}function
KF(t,i){1&t&&Y(0)}function
QF(t,i){if(1&t&&(de(0),_(1,KF,1,0,"ng-container",5),pe()),2
&t){const e=d();a(1),p("ngTemplateOutlet",e.contentTemplate)}}const
JF=["*",[["p-header"]]],YF=function(t){return{"p-accordion-tab-active":t}},ZF=function(t,i){return{"p-highlight":t,"p-disabled":i}},sT=function(t){return{transitionParams:t}},XF=function(t){return{value:"visible",params:t}},eN=function(t){return{value:"hidden",params:t}},tN=["*","p-header"],nN=["*"];let
iN=0,Ts=(()=>{class
t{constructor(e,n){this.changeDetector=n,this.cache=!0,this.selectedChange=new
H,this.transitionOptions="400ms cubic-bezier(0.86, 0, 0.07,
1)",this.id="p-accordiontab-"+iN++,this.accordion=e}get selected(){return
this._selected}set
selected(e){this._selected=e,this.loaded||(this._selected&&this.cache&&(this.loaded=!0),this.changeDetector.detectChanges())}ngAfterContentInit(){this.templates.forEach(e=>{switch(e.getType()){case"content":default:this.contentTemplate=e.template;break;case"header":this.headerTemplate=e.template}})}toggle(e){if(this.disabled)return!1;let
n=this.findTabIndex();if(this.se
lected)this.selected=!1,this.accordion.onClose.emit({originalEvent:e,index:n});else{if(!this.accordion.multiple)for(var
s=0;s<this.accordion.tabs.length;s++)this.accordion.tabs[s].selected&&(this.accordion.tabs[s].selected=!1,this.accordion.tabs[s].selectedChange.emit(!1),this.accordion.tabs[s].changeDetector.markForCheck());this.selected=!0,this.loaded=!0,this.accordion.onOpen.emit({originalEvent:e,index:n})}this.selectedChange.emit(this.selected),this.accordion.updateActiveIndex(),this.changeDetector.markForCheck(),e.preventDefault()}findTabIndex(){let
e=-1;for(var
n=0;n<this.accordion.tabs.length;n++)if(this.accordion.tabs[n]==this){e=n;break}return
e}get hasHeaderFacet(){return
this.headerFacet&&this.headerFacet.length>0}onKeydown(e){(32===e.which||13===e.which)&&(this.toggle(e),e.preventDefault())}ngOnDestroy(){this.accordion.tabs.splice(this.findTabIndex(),1)}}return
t.\u0275fac=function(e){return
new(e||t)(D(je(()=>Ss)),D(rt))},t.\u0275cmp=z({type:t,selectors:[["p-accordionTa
b"]],contentQueries:function(e,n,s){if(1&e&&(st(s,Oo,4),st(s,ne,4)),2&e){let
r;V(r=B())&&(n.headerFacet=r),V(r=B())&&(n.templates=r)}},hostAttrs:[1,"p-element"],inputs:{header:"header",disabled:"disabled",cache:"cache",transitionOptions:"transitionOptions",selected:"selected"},outputs:{selectedChange:"selectedChange"},ngContentSelectors:tN,decls:11,vars:28,consts:[[1,"p-accordion-tab",3,"ngClass"],[1,"p-accordion-header",3,"ngClass"],["role","tab",1,"p-accordion-header-link",3,"click","keydown"],[1,"p-accordion-toggle-icon",3,"ngClass"],["class","p-accordion-header-text",4,"ngIf"],[4,"ngTemplateOutlet"],[4,"ngIf"],["role","region",1,"p-toggleable-content"],[1,"p-accordion-content"],[1,"p-accordion-header-text"]],template:function(e,n){1&e&&(Sn(JF),l(0,"div",0)(1,"div",1)(2,"a",2),C("click",function(r){return
n.toggle(r)})("keydown",function(r){return
n.onKeydown(r)}),k(3,"span",3),_(4,jF,2,1,"span",4),_(5,$F,1,0,"ng-container",5),_(6,WF,1,0,"ng-content",6),c()(),l(7,"div",7)(8,"div"
,8),St(9),_(10,QF,2,1,"ng-container",6),c()()()),2&e&&(p("ngClass",U(15,YF,n.selected)),a(1),p("ngClass",Ge(17,ZF,n.selected,n.disabled)),a(1),ie("tabindex",n.disabled?null:0)("id",n.id)("aria-controls",n.id+"-content")("aria-expanded",n.selected),a(1),p("ngClass",n.selected?n.accordion.collapseIcon:n.accordion.expandIcon),a(1),p("ngIf",!n.hasHeaderFacet),a(1),p("ngTemplateOutlet",n.headerTemplate),a(1),p("ngIf",n.hasHeaderFacet),a(1),p("@tabContent",n.selected?U(22,XF,U(20,sT,n.transitionOptions)):U(26,eN,U(24,sT,n.transitionOptions))),ie("id",n.id+"-content")("aria-hidden",!n.selected)("aria-labelledby",n.id),a(3),p("ngIf",n.contentTemplate&&(n.cache?n.loaded:n.selected)))},directives:[Le,Q,Rt],styles:[".p-accordion-header-link{cursor:pointer;display:flex;align-items:center;-webkit-user-select:none;user-select:none;position:relative;text-decoration:none}.p-accordion-header-link:focus{z-index:1}.p-accordion-header-text{line-height:1}\n"],encapsulation:2,data:{animation:[wi("tabCont
ent",[ws("hidden",it({height:"0",overflow:"hidden"})),ws("visible",it({height:"*"})),Lt("visible
<=>
hidden",[it({overflow:"hidden"}),kt("{{transitionParams}}")]),Lt("void
=> *",kt(0))])]},changeDetection:0}),t})(),Ss=(()=>{class
t{constructor(e,n){this.el=e,this.changeDetector=n,this.onClose=new H,this.onOpen=new
H,this.expandIcon="pi pi-fw pi-chevron-right",this.collapseIcon="pi pi-fw
pi-chevron-down",this.activeIndexChange=new
H,this.tabs=[]}ngAfterContentInit(){this.initTabs(),this.tabListSubscription=this.tabList.changes.subscribe(e=>{this.initTabs()})}initTabs(){this.tabs=this.tabList.toArray(),this.updateSelectionState(),this.changeDetector.markForCheck()}getBlockableElement(){return
this.el.nativeElement.children[0]}get activeIndex(){return this._activeIndex}set
activeIndex(e){this._activeIndex=e,this.preventActiveIndexPropagation?this.preventActiveIndexPropagation=!1:this.updateSelectionState()}updateSelectionState(){if(this.tabs&&this.tabs.length&&null!=this._activeIndex)f
or(let e=0;e<this.tabs.length;e++){let
n=this.multiple?this._activeIndex.includes(e):e===this._activeIndex;n!==this.tabs[e].selected&&(this.tabs[e].selected=n,this.tabs[e].selectedChange.emit(n),this.tabs[e].changeDetector.markForCheck())}}updateActiveIndex(){let
e=this.multiple?[]:null;this.tabs.forEach((n,s)=>{if(n.selected){if(!this.multiple)return
void(e=s);e.push(s)}}),this.preventActiveIndexPropagation=!0,this.activeIndexChange.emit(e)}ngOnDestroy(){this.tabListSubscription&&this.tabListSubscription.unsubscribe()}}return
t.\u0275fac=function(e){return
new(e||t)(D(De),D(rt))},t.\u0275cmp=z({type:t,selectors:[["p-accordion"]],contentQueries:function(e,n,s){if(1&e&&st(s,Ts,4),2&e){let
r;V(r=B())&&(n.tabList=r)}},hostAttrs:[1,"p-element"],inputs:{multiple:"multiple",style:"style",styleClass:"styleClass",expandIcon:"expandIcon",collapseIcon:"collapseIcon",activeIndex:"activeIndex"},outputs:{onClose:"onClose",onOpen:"onOpen",activeIndexChange:"activeIndexChange"},ngContentSelectors:
nN,decls:2,vars:4,consts:[["role","tablist",3,"ngClass","ngStyle"]],template:function(e,n){1&e&&(Sn(),l(0,"div",0),St(1),c()),2&e&&(me(n.styleClass),p("ngClass","p-accordion
p-component")("ngStyle",n.style))},directives:[Le,lt],encapsulation:2,changeDetection:0}),t})(),sN=(()=>{class
t{}return t.\u0275fac=function(e){return
new(e||t)},t.\u0275mod=he({type:t}),t.\u0275inj=ue({imports:[[Fe],Nt]}),t})(),R=(()=>{class
t{static addClass(e,n){e.classList?e.classList.add(n):e.className+=" "+n}static
addMultipleClasses(e,n){if(e.classList){let s=n.trim().split(" ");for(let
r=0;r<s.length;r++)e.classList.add(s[r])}else{let s=n.split(" ");for(let
r=0;r<s.length;r++)e.className+=" "+s[r]}}static
removeClass(e,n){e.classList?e.classList.remove(n):e.className=e.className.replace(new
RegExp("(^|\\b)"+n.split("
").join("|")+"(\\b|$)","gi")," ")}static
hasClass(e,n){return e.classList?e.classList.contains(n):new RegExp("(^|
)"+n+"( |$)","gi").test(e.className)}static siblings(e){return
Array.protot
ype.filter.call(e.parentNode.children,function(n){return n!==e})}static find(e,n){return
Array.from(e.querySelectorAll(n))}static findSingle(e,n){return
e?e.querySelector(n):null}static index(e){let n=e.parentNode.childNodes,s=0;for(var
r=0;r<n.length;r++){if(n[r]==e)return s;1==n[r].nodeType&&s++}return-1}static
indexWithinGroup(e,n){let s=e.parentNode?e.parentNode.childNodes:[],r=0;for(var
o=0;o<s.length;o++){if(s[o]==e)return
r;s[o].attributes&&s[o].attributes[n]&&1==s[o].nodeType&&r++}return-1}static
relativePosition(e,n){let
s=e.offsetParent?{width:e.offsetWidth,height:e.offsetHeight}:this.getHiddenElementDimensions(e);const
r=n.offsetHeight,o=n.getBoundingClientRect(),u=this.getViewport();let
h,b;o.top+r+s.height>u.height?(h=-1*s.height,e.style.transformOrigin="bottom",o.top+h<0&&(h=-1*o.top)):(h=r,e.style.transformOrigin="top"),b=s.width>u.width?-1*o.left:o.left+s.width>u.width?-1*(o.left+s.width-u.width):0,e.style.top=h+"px",e.style.left=b+"px"}static
absolutePosition(e,n){l
et
E,L,s=e.offsetParent?{width:e.offsetWidth,height:e.offsetHeight}:this.getHiddenElementDimensions(e),r=s.height,o=s.width,u=n.offsetHeight,h=n.offsetWidth,b=n.getBoundingClientRect(),y=this.getWindowScrollTop(),w=this.getWindowScrollLeft(),M=this.getViewport();b.top+u+r>M.height?(E=b.top+y-r,e.style.transformOrigin="bottom",E<0&&(E=y)):(E=u+b.top+y,e.style.transformOrigin="top"),L=b.left+o>M.width?Math.max(0,b.left+w+h-o):b.left+w,e.style.top=E+"px",e.style.left=L+"px"}static
getParents(e,n=[]){return
null===e.parentNode?n:this.getParents(e.parentNode,n.concat([e.parentNode]))}static
getScrollableParents(e){let n=[];if(e){let s=this.getParents(e);const
r=/(auto|scroll)/,o=u=>{let h=window.getComputedStyle(u,null);return
r.test(h.getPropertyValue("overflow"))||r.test(h.getPropertyValue("overflowX"))||r.test(h.getPropertyValue("overflowY"))};for(let
u of s){let h=1===u.nodeType&&u.dataset.scrollselectors;if(h){let
b=h.split(",");for(let y of b){let
w=this.findSingle(u,y);w&&o(w)&&n.
push(w)}}9!==u.nodeType&&o(u)&&n.push(u)}}return n}static
getHiddenElementOuterHeight(e){e.style.visibility="hidden",e.style.display="block";let
n=e.offsetHeight;return
e.style.display="none",e.style.visibility="visible",n}static
getHiddenElementOuterWidth(e){e.style.visibility="hidden",e.style.display="block";let
n=e.offsetWidth;return
e.style.display="none",e.style.visibility="visible",n}static
getHiddenElementDimensions(e){let n={};return
e.style.visibility="hidden",e.style.display="block",n.width=e.offsetWidth,n.height=e.offsetHeight,e.style.display="none",e.style.visibility="visible",n}static
scrollInView(e,n){let
s=getComputedStyle(e).getPropertyValue("borderTopWidth"),r=s?parseFloat(s):0,o=getComputedStyle(e).getPropertyValue("paddingTop"),u=o?parseFloat(o):0,h=e.getBoundingClientRect(),y=n.getBoundingClientRect().top+document.body.scrollTop-(h.top+document.body.scrollTop)-r-u,w=e.scrollTop,M=e.clientHeight,E=this.getOuterHeight(n);y<0?e.scrollTop=w+y:y+E>M&&(e.scrollTop=w+y-
M+E)}static fadeIn(e,n){e.style.opacity=0;let s=+new
Date,r=0,o=function(){r=+e.style.opacity.replace(",",".")+((new
Date).getTime()-s)/n,e.style.opacity=r,s=+new
Date,+r<1&&(window.requestAnimationFrame&&requestAnimationFrame(o)||setTimeout(o,16))};o()}static
fadeOut(e,n){var s=1,u=50/n;let
h=setInterval(()=>{(s-=u)<=0&&(s=0,clearInterval(h)),e.style.opacity=s},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,n){var
s=Element.prototype;return(s.matches||s.webkitMatchesSelector||s.mozMatchesSelector||s.msMatchesSelector||function(o){return-1!==[].indexOf.call(document.querySelectorAll(o),this)}).call(e,n)}static
getOuterWidth(e,n){let s=e.offsetWidth;if(n){let
r=getComputedStyle(e);s+=parseFloat(r.marginLeft)+parseFloat(r.marginRight)}return
s}static getHorizontalPadding(e){let n
=getComputedStyle(e);return parseFloat(n.paddingLeft)+parseFloat(n.paddingRight)}static
getHorizontalMargin(e){let n=getComputedStyle(e);return
parseFloat(n.marginLeft)+parseFloat(n.marginRight)}static innerWidth(e){let
n=e.offsetWidth,s=getComputedStyle(e);return
n+=parseFloat(s.paddingLeft)+parseFloat(s.paddingRight),n}static width(e){let
n=e.offsetWidth,s=getComputedStyle(e);return
n-=parseFloat(s.paddingLeft)+parseFloat(s.paddingRight),n}static getInnerHeight(e){let
n=e.offsetHeight,s=getComputedStyle(e);return
n+=parseFloat(s.paddingTop)+parseFloat(s.paddingBottom),n}static getOuterHeight(e,n){let
s=e.offsetHeight;if(n){let
r=getComputedStyle(e);s+=parseFloat(r.marginTop)+parseFloat(r.marginBottom)}return
s}static getHeight(e){let n=e.offsetHeight,s=getComputedStyle(e);return
n-=parseFloat(s.paddingTop)+parseFloat(s.paddingBottom)+parseFloat(s.borderTopWidth)+parseFloat(s.borderBottomWidth),n}static
getWidth(e){let n=e.offsetWidth,s=getComputedStyle(e);return n-=parseFloat(s.pa
ddingLeft)+parseFloat(s.paddingRight)+parseFloat(s.borderLeftWidth)+parseFloat(s.borderRightWidth),n}static
getViewport(){let
e=window,n=document,s=n.documentElement,r=n.getElementsByTagName("body")[0];return{width:e.innerWidth||s.clientWidth||r.clientWidth,height:e.innerHeight||s.clientHeight||r.clientHeight}}static
getOffset(e){var
n=e.getBoundingClientRect();return{top:n.top+(window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0),left:n.left+(window.pageXOffset||document.documentElement.scrollLeft||document.body.scrollLeft||0)}}static
replaceElementWith(e,n){let s=e.parentNode;if(!s)throw"Can't replace
element";return s.replaceChild(n,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,n){if(this.isElement(n))n.appendChild(e);else{if(!n.el||!n.el.nativeElement)throw"Cannot
append "+n+" to "+e;n.el.nativeElement.appendChild(e)}}static
removeChild(e,n){if(this.isElement(n))n.removeChild(e);else{if(!n.el||!n.el.nativeElement)throw"Cannot
remove "+e+" from "+n;n.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 n=getComputedStyle(e);return
e.offsetWidth-e.clientWidth-parseFloat(n.borderLeftWidth)-parseFloat(n.borderRightWidth)}{if(null!==this.calculatedScrollbarWidth)return
this.calculatedScrollbarWidth;let
n=document.createElement("div");n.className="p-scrollbar-measure",do
cument.body.appendChild(n);let s=n.offsetWidth-n.clientWidth;return
document.body.removeChild(n),this.calculatedScrollbarWidth=s,s}}static
calculateScrollbarHeight(){if(null!==this.calculatedScrollbarHeight)return
this.calculatedScrollbarHeight;let
e=document.createElement("div");e.className="p-scrollbar-measure",document.body.appendChild(e);let
n=e.offsetHeight-e.clientHeight;return
document.body.removeChild(e),this.calculatedScrollbarWidth=n,n}static
invokeElementMethod(e,n,s){e[n].apply(e,s)}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(),n=/(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:n[1]||"",version:n[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
n=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)'),s=[];for(let
r of
n)"none"!=getComputedStyle(r).display&&"hidden"!=getComputedStyle(r).visibility&&s.push(r);return
s}static generateZIndex(){return this.zindex=this.zindex||999,++this.zindex}}return
t.zindex=1e3,t.calculatedScrollbarWidth=null,t.calculatedScrollbarHeight=null,t})();class
Qs{constructor(i,e=(()=>{})){this.element=i,this.listener=e}bindScrollListener(){this.scrollableParents=R.getScrollableParents(this.element);for(let
i=0;i<this.scrollableParents.length;i++)this.scrollableParents[i].addEventListener("scroll",this.listener)}unbindScrollL
istener(){if(this.scrollableParents)for(let
i=0;i<this.scrollableParents.length;i++)this.scrollableParents[i].removeEventListener("scroll",this.listener)}destroy(){this.unbindScrollListener(),this.element=null,this.listener=null,this.scrollableParents=null}}let
bt=(()=>{class
t{constructor(e,n,s){this.el=e,this.zone=n,this.config=s}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
n=this.getInk();if(!n||"none"===getComputedStyle(n,null).display)return;if(R.removeClass(n,"p-ink-active"),!R.getHeight(n)&&!R.getWidth(n)){let
u=Math.max(R.getOuterWidth(this.el.nativeElement),R.getOuterHeight(this.el.nativeElement));n.style.height=u+"px",n.style.width=u+"px"}let
s=R.getOffset(this.el.nativeElement),r=e.pageX-s.left+document.body.scrollTop-R.getWidth(n)/2,o=e.pageY-s.top+document.body.scrollLeft-R
.getHeight(n)/2;n.style.top=o+"px",n.style.left=r+"px",R.addClass(n,"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&&R.removeClass(e,"p-ink-active")}onAnimationEnd(e){R.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),R.removeElement(e))}ngOnDestroy(){this.config&&this.config.ripple&&this.remove()}}return
t.\u0275fac=function(e){return
new(e||t)(D(De),D(nt),D(zn,8))},t.\u0275dir=le({type:t,selectors:[["","pRipple",""]],host
Attrs:[1,"p-ripple","p-element"]}),t})(),pn=(()=>{class t{}return
t.\u0275fac=function(e){return
new(e||t)},t.\u0275mod=he({type:t}),t.\u0275inj=ue({imports:[[Fe]]}),t})();function
rN(t,i){1&t&&Y(0)}const
oN=function(t,i,e,n){return{"p-button-icon":!0,"p-button-icon-left":t,"p-button-icon-right":i,"p-button-icon-top":e,"p-button-icon-bottom":n}};function
aN(t,i){if(1&t&&k(0,"span",4),2&t){const
e=d();me(e.loading?"p-button-loading-icon
"+e.loadingIcon:e.icon),p("ngClass",qn(4,oN,"left"===e.iconPos&&e.label,"right"===e.iconPos&&e.label,"top"===e.iconPos&&e.label,"bottom"===e.iconPos&&e.label)),ie("aria-hidden",!0)}}function
lN(t,i){if(1&t&&(l(0,"span",5),g(1),c()),2&t){const
e=d();ie("aria-hidden",e.icon&&!e.label),a(1),S(e.label||"\xa0")}}function
cN(t,i){if(1&t&&(l(0,"span",4),g(1),c()),2&t){const
e=d();me(e.badgeClass),p("ngClass",e.badgeStyleClass()),a(1),S(e.badge)}}const
uN=function(t,i,e,n,s){return{"p-button
p-component":!0,"p-button-icon-only":t,"p-button-vertical":i,"p-disa
bled":e,"p-button-loading":n,"p-button-loading-label-only":s}},dN=["*"];let
On=(()=>{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,R.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(){let
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=documen
t.createElement("span");e.className="p-button-icon",e.setAttribute("aria-hidden","true");let
n=this.label?"p-button-icon-"+this.iconPos:null;n&&R.addClass(e,n);let
s=this.getIconClass();s&&R.addMultipleClasses(e,s);let
r=R.findSingle(this.el.nativeElement,".p-button-label");r?this.el.nativeElement.insertBefore(e,r):this.el.nativeElement.appendChild(e)}getIconClass(){return
this.loading?"p-button-loading-icon
"+this.loadingIcon:this._icon}setIconClass(){let
e=R.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=R.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&&(R.findSingle(this.el.nativeElement,".p-button-label").textContent=this._label||" ",(this.loading||this.icon)&&this.setIconClass(),t
his.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)(D(De))},t.\u0275dir=le({type:t,selectors:[["","pButton",""]],hostAttrs:[1,"p-element"],inputs:{iconPos:"iconPos",loadingIcon:"loadingIcon",label:"label",icon:"icon",loading:"loading"}}),t})(),ve=(()=>{class
t{constructor(){this.type="button",this.iconPos="left",this.loading=!1,this.loadingIcon="pi
pi-spinner pi-spin",this.onClick=new H,this.onFocus=new H,this.onBlur=new
H}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=z({type:t,selectors:[["p-button"]],contentQueries:function(e,n,s){if(1&e&&st(s,ne,4),2&e){let
r;V(r=B())&&(n.templates=r)}},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",ariaLabel:"ariaLabel"},outputs:{onClick:"onClick",onFocus:"onFocus",onBlur:"onBlur"},ngContentSelectors:dN,decls:6,vars:17,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,n){1&e&&(Sn(),l(0,"button",0),C("click",function(r){return
n.onClick.emit(r)})("focus",function(r){return
n.onFocus.emit(r)})("blur",function(r){return
n.onBlur.emit(r)}),St(1),_(2,rN,1,0,"ng-container",1),_(3,aN,1,9,"span",2),_(4,lN,2,2,"span",3),_(5,c
N,2,4,"span",2),c()),2&e&&(me(n.styleClass),p("ngStyle",n.style)("disabled",n.disabled||n.loading)("ngClass",pr(11,uN,n.icon&&!n.label,("top"===n.iconPos||"bottom"===n.iconPos)&&n.label,n.disabled||n.loading,n.loading,n.loading&&!n.icon&&n.label)),ie("type",n.type)("aria-label",n.ariaLabel),a(2),p("ngTemplateOutlet",n.contentTemplate),a(1),p("ngIf",!n.contentTemplate&&(n.icon||n.loading)),a(1),p("ngIf",!n.contentTemplate),a(1),p("ngIf",!n.contentTemplate&&n.badge))},directives:[bt,lt,Le,Rt,Q],encapsulation:2,changeDetection:0}),t})(),gl=(()=>{class
t{}return t.\u0275fac=function(e){return
new(e||t)},t.\u0275mod=he({type:t}),t.\u0275inj=ue({imports:[[Fe,pn]]}),t})();const
pN=["container"],hN=["inputfield"],mN=["contentWrapper"];function
fN(t,i){if(1&t){const e=I();l(0,"i",8),C("click",function(){return
v(e),d(2).clear()}),c()}}function gN(t,i){if(1&t){const
e=I();l(0,"button",9),C("click",function(s){v(e),d();const
r=F(1);return d().onButtonClick(s,r)}),c()}if(2&t){const e=d(2);p("ic
on",e.icon)("disabled",e.disabled),ie("aria-label",e.iconAriaLabel)}}function
_N(t,i){if(1&t){const
e=I();l(0,"input",4,5),C("focus",function(s){return
v(e),d().onInputFocus(s)})("keydown",function(s){return
v(e),d().onInputKeydown(s)})("click",function(){return
v(e),d().onInputClick()})("blur",function(s){return
v(e),d().onInputBlur(s)})("input",function(s){return
v(e),d().onUserInput(s)}),c(),_(2,fN,1,0,"i",6),_(3,gN,1,3,"button",7)}if(2&t){const
e=d();me(e.inputStyleClass),p("value",e.inputFieldValue)("readonly",e.readonlyInput)("ngStyle",e.inputStyle)("placeholder",e.placeholder||"")("disabled",e.disabled)("ngClass","p-inputtext
p-component"),ie("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),a(2),p("ngIf",e.showClear&&!e.disabled&&null!=e.value),a(1),p("ngIf",e.showIcon)}}function
bN(t,i){1&t&&Y(0)}function vN(t,i){if(1&t){const
e=I();l(0,"button",30),C
("keydown",function(s){return
v(e),d(4).onContainerButtonKeydown(s)})("click",function(s){return
v(e),d(4).onPrevButtonClick(s)}),k(1,"span",31),c()}}function
CN(t,i){if(1&t){const
e=I();l(0,"button",32),C("click",function(s){return
v(e),d(4).switchToMonthView(s)})("keydown",function(s){return
v(e),d(4).onContainerButtonKeydown(s)}),g(1),c()}if(2&t){const
e=d().$implicit,n=d(3);p("disabled",n.switchViewButtonDisabled()),a(1),T("
",n.getMonthName(e.month)," ")}}function yN(t,i){if(1&t){const
e=I();l(0,"button",33),C("click",function(s){return
v(e),d(4).switchToYearView(s)})("keydown",function(s){return
v(e),d(4).onContainerButtonKeydown(s)}),g(1),c()}if(2&t){const
e=d().$implicit,n=d(3);p("disabled",n.switchViewButtonDisabled()),a(1),T("
",n.getYear(e)," ")}}function
wN(t,i){if(1&t&&(de(0),g(1),pe()),2&t){const
e=d(5);a(1),We("",e.yearPickerValues()[0]," -
",e.yearPickerValues()[e.yearPickerValues().length-1],"")}}function
TN(t,i){1&t&&Y(0)}const rT=function(t){return{$implicit:t}};f
unction
SN(t,i){if(1&t&&(l(0,"span",34),_(1,wN,2,2,"ng-container",13),_(2,TN,1,0,"ng-container",35),c()),2&t){const
e=d(4);a(1),p("ngIf",!e.decadeTemplate),a(1),p("ngTemplateOutlet",e.decadeTemplate)("ngTemplateOutletContext",U(3,rT,e.yearPickerValues))}}function
xN(t,i){if(1&t&&(l(0,"th",41)(1,"span"),g(2),c()()),2&t){const
e=d(5);a(2),S(e.getTranslation("weekHeader"))}}function
DN(t,i){if(1&t&&(l(0,"th",42)(1,"span"),g(2),c()()),2&t){const
e=i.$implicit;a(2),S(e)}}function
MN(t,i){if(1&t&&(l(0,"td",45)(1,"span",46),g(2),c()()),2&t){const
e=d().index,n=d(2).$implicit;a(2),T(" ",n.weekNumbers[e],"
")}}function kN(t,i){if(1&t&&(de(0),g(1),pe()),2&t){const
e=d(2).$implicit;a(1),S(e.day)}}function IN(t,i){1&t&&Y(0)}const
EN=function(t,i){return{"p-highlight":t,"p-disabled":i}};function
RN(t,i){if(1&t){const
e=I();de(0),l(1,"span",48),C("click",function(s){v(e);const
r=d().$implicit;return d(6).onDateSelect(s,r)})("keydown",function(s){v(e);const
r=d().$implicit,o=d(3).index;return d(3)
.onDateCellKeydown(s,r,o)}),_(2,kN,2,1,"ng-container",13),_(3,IN,1,0,"ng-container",35),c(),pe()}if(2&t){const
e=d().$implicit,n=d(6);a(1),p("ngClass",Ge(4,EN,n.isSelected(e),!e.selectable)),a(1),p("ngIf",!n.dateTemplate),a(1),p("ngTemplateOutlet",n.dateTemplate)("ngTemplateOutletContext",U(7,rT,e))}}const
LN=function(t,i){return{"p-datepicker-other-month":t,"p-datepicker-today":i}};function
ON(t,i){if(1&t&&(l(0,"td",47),_(1,RN,4,9,"ng-container",13),c()),2&t){const
e=i.$implicit,n=d(6);p("ngClass",Ge(2,LN,e.otherMonth,e.today)),a(1),p("ngIf",!e.otherMonth||n.showOtherMonths)}}function
AN(t,i){if(1&t&&(l(0,"tr"),_(1,MN,3,1,"td",43),_(2,ON,2,5,"td",44),c()),2&t){const
e=i.$implicit,n=d(5);a(1),p("ngIf",n.showWeek),a(1),p("ngForOf",e)}}function
PN(t,i){if(1&t&&(l(0,"div",36)(1,"table",37)(2,"thead")(3,"tr"),_(4,xN,3,1,"th",38),_(5,DN,3,1,"th",39),c()(),l(6,"tbody"),_(7,AN,3,2,"tr",40),c()()()),2&t){const
e=d().$implicit,n=d(3);a(4),p("ngIf",n.showWeek),a(1),p("ngForOf",n.weekDays),a(2
),p("ngForOf",e.dates)}}function FN(t,i){if(1&t){const
e=I();l(0,"div",20)(1,"div",21),_(2,vN,2,0,"button",22),l(3,"div",23),_(4,CN,2,2,"button",24),_(5,yN,2,2,"button",25),_(6,SN,3,5,"span",26),c(),l(7,"button",27),C("keydown",function(s){return
v(e),d(3).onContainerButtonKeydown(s)})("click",function(s){return
v(e),d(3).onNextButtonClick(s)}),k(8,"span",28),c()(),_(9,PN,8,3,"div",29),c()}if(2&t){const
e=i.index,n=d(3);a(2),p("ngIf",0===e),a(2),p("ngIf","date"===n.currentView),a(1),p("ngIf","year"!==n.currentView),a(1),p("ngIf","year"===n.currentView),a(1),_i("display",1===n.numberOfMonths||e===n.numberOfMonths-1?"inline-flex":"none"),a(2),p("ngIf","date"===n.currentView)}}const
oT=function(t){return{"p-highlight":t}};function NN(t,i){if(1&t){const
e=I();l(0,"span",51),C("click",function(s){const o=v(e).index;return
d(4).onMonthSelect(s,o)})("keydown",function(s){const o=v(e).index;return
d(4).onMonthCellKeydown(s,o)}),g(1),c()}if(2&t){const
e=i.$implicit,n=i.index,s=d(4);p("ngClas
s",U(2,oT,s.isMonthSelected(n))),a(1),T(" ",e," ")}}function
VN(t,i){if(1&t&&(l(0,"div",49),_(1,NN,2,4,"span",50),c()),2&t){const
e=d(3);a(1),p("ngForOf",e.monthPickerValues())}}function
BN(t,i){if(1&t){const
e=I();l(0,"span",54),C("click",function(s){const
o=v(e).$implicit;return d(4).onYearSelect(s,o)})("keydown",function(s){const
o=v(e).$implicit;return d(4).onYearCellKeydown(s,o)}),g(1),c()}if(2&t){const
e=i.$implicit,n=d(4);p("ngClass",U(2,oT,n.isYearSelected(e))),a(1),T("
",e," ")}}function
HN(t,i){if(1&t&&(l(0,"div",52),_(1,BN,2,4,"span",53),c()),2&t){const
e=d(3);a(1),p("ngForOf",e.yearPickerValues())}}function
qN(t,i){if(1&t&&(de(0),l(1,"div",16),_(2,FN,10,7,"div",17),c(),_(3,VN,2,1,"div",18),_(4,HN,2,1,"div",19),pe()),2&t){const
e=d(2);a(2),p("ngForOf",e.months),a(1),p("ngIf","month"===e.currentView),a(1),p("ngIf","year"===e.currentView)}}function
GN(t,i){1&t&&(de(0),g(1,"0"),pe())}function
UN(t,i){1&t&&(de(0),g(1,"0"),pe())}function
zN(t,i){if(1&t&&(l(0,"div",60)(1,"span"
),g(2),c()()),2&t){const e=d(3);a(2),S(e.timeSeparator)}}function
jN(t,i){1&t&&(de(0),g(1,"0"),pe())}function
$N(t,i){if(1&t){const
e=I();l(0,"div",65)(1,"button",57),C("keydown",function(s){return
v(e),d(3).onContainerButtonKeydown(s)})("keydown.enter",function(s){return
v(e),d(3).incrementSecond(s)})("keydown.space",function(s){return
v(e),d(3).incrementSecond(s)})("mousedown",function(s){return
v(e),d(3).onTimePickerElementMouseDown(s,2,1)})("mouseup",function(s){return
v(e),d(3).onTimePickerElementMouseUp(s)})("keyup.enter",function(s){return
v(e),d(3).onTimePickerElementMouseUp(s)})("keyup.space",function(s){return
v(e),d(3).onTimePickerElementMouseUp(s)})("mouseleave",function(){return
v(e),d(3).onTimePickerElementMouseLeave()}),k(2,"span",58),c(),l(3,"span"),_(4,jN,2,0,"ng-container",13),g(5),c(),l(6,"button",57),C("keydown",function(s){return
v(e),d(3).onContainerButtonKeydown(s)})("keydown.enter",function(s){return
v(e),d(3).decrementSecond(s)})("keydown.space",function(s){
return v(e),d(3).decrementSecond(s)})("mousedown",function(s){return
v(e),d(3).onTimePickerElementMouseDown(s,2,-1)})("mouseup",function(s){return
v(e),d(3).onTimePickerElementMouseUp(s)})("keyup.enter",function(s){return
v(e),d(3).onTimePickerElementMouseUp(s)})("keyup.space",function(s){return
v(e),d(3).onTimePickerElementMouseUp(s)})("mouseleave",function(){return
v(e),d(3).onTimePickerElementMouseLeave()}),k(7,"span",59),c()()}if(2&t){const
e=d(3);a(4),p("ngIf",e.currentSecond<10),a(1),S(e.currentSecond)}}function
WN(t,i){if(1&t){const
e=I();l(0,"div",66)(1,"button",67),C("keydown",function(s){return
v(e),d(3).onContainerButtonKeydown(s)})("click",function(s){return
v(e),d(3).toggleAMPM(s)})("keydown.enter",function(s){return
v(e),d(3).toggleAMPM(s)}),k(2,"span",58),c(),l(3,"span"),g(4),c(),l(5,"button",67),C("keydown",function(s){return
v(e),d(3).onContainerButtonKeydown(s)})("click",function(s){return
v(e),d(3).toggleAMPM(s)})("keydown.enter",function(s){return v(e),d(3).toggl
eAMPM(s)}),k(6,"span",59),c()()}if(2&t){const
e=d(3);a(4),S(e.pm?"PM":"AM")}}function KN(t,i){if(1&t){const
e=I();l(0,"div",55)(1,"div",56)(2,"button",57),C("keydown",function(s){return
v(e),d(2).onContainerButtonKeydown(s)})("keydown.enter",function(s){return
v(e),d(2).incrementHour(s)})("keydown.space",function(s){return
v(e),d(2).incrementHour(s)})("mousedown",function(s){return
v(e),d(2).onTimePickerElementMouseDown(s,0,1)})("mouseup",function(s){return
v(e),d(2).onTimePickerElementMouseUp(s)})("keyup.enter",function(s){return
v(e),d(2).onTimePickerElementMouseUp(s)})("keyup.space",function(s){return
v(e),d(2).onTimePickerElementMouseUp(s)})("mouseleave",function(){return
v(e),d(2).onTimePickerElementMouseLeave()}),k(3,"span",58),c(),l(4,"span"),_(5,GN,2,0,"ng-container",13),g(6),c(),l(7,"button",57),C("keydown",function(s){return
v(e),d(2).onContainerButtonKeydown(s)})("keydown.enter",function(s){return
v(e),d(2).decrementHour(s)})("keydown.space",function(s){return v(e),d(2).d
ecrementHour(s)})("mousedown",function(s){return
v(e),d(2).onTimePickerElementMouseDown(s,0,-1)})("mouseup",function(s){return
v(e),d(2).onTimePickerElementMouseUp(s)})("keyup.enter",function(s){return
v(e),d(2).onTimePickerElementMouseUp(s)})("keyup.space",function(s){return
v(e),d(2).onTimePickerElementMouseUp(s)})("mouseleave",function(){return
v(e),d(2).onTimePickerElementMouseLeave()}),k(8,"span",59),c()(),l(9,"div",60)(10,"span"),g(11),c()(),l(12,"div",61)(13,"button",57),C("keydown",function(s){return
v(e),d(2).onContainerButtonKeydown(s)})("keydown.enter",function(s){return
v(e),d(2).incrementMinute(s)})("keydown.space",function(s){return
v(e),d(2).incrementMinute(s)})("mousedown",function(s){return
v(e),d(2).onTimePickerElementMouseDown(s,1,1)})("mouseup",function(s){return
v(e),d(2).onTimePickerElementMouseUp(s)})("keyup.enter",function(s){return
v(e),d(2).onTimePickerElementMouseUp(s)})("keyup.space",function(s){return
v(e),d(2).onTimePickerElementMouseUp(s)})("mouseleave
",function(){return
v(e),d(2).onTimePickerElementMouseLeave()}),k(14,"span",58),c(),l(15,"span"),_(16,UN,2,0,"ng-container",13),g(17),c(),l(18,"button",57),C("keydown",function(s){return
v(e),d(2).onContainerButtonKeydown(s)})("keydown.enter",function(s){return
v(e),d(2).decrementMinute(s)})("keydown.space",function(s){return
v(e),d(2).decrementMinute(s)})("mousedown",function(s){return
v(e),d(2).onTimePickerElementMouseDown(s,1,-1)})("mouseup",function(s){return
v(e),d(2).onTimePickerElementMouseUp(s)})("keyup.enter",function(s){return
v(e),d(2).onTimePickerElementMouseUp(s)})("keyup.space",function(s){return
v(e),d(2).onTimePickerElementMouseUp(s)})("mouseleave",function(){return
v(e),d(2).onTimePickerElementMouseLeave()}),k(19,"span",59),c()(),_(20,zN,3,1,"div",62),_(21,$N,8,2,"div",63),_(22,WN,7,1,"div",64),c()}if(2&t){const
e=d(2);a(5),p("ngIf",e.currentHour<10),a(1),S(e.currentHour),a(5),S(e.timeSeparator),a(5),p("ngIf",e.currentMinute<10),a(1),S(e.currentMinute),a(3),p("ngIf"
,e.showSeconds),a(1),p("ngIf",e.showSeconds),a(1),p("ngIf","12"==e.hourFormat)}}const
aT=function(t){return[t]};function QN(t,i){if(1&t){const
e=I();l(0,"div",68)(1,"button",69),C("keydown",function(s){return
v(e),d(2).onContainerButtonKeydown(s)})("click",function(s){return
v(e),d(2).onTodayButtonClick(s)}),c(),l(2,"button",69),C("keydown",function(s){return
v(e),d(2).onContainerButtonKeydown(s)})("click",function(s){return
v(e),d(2).onClearButtonClick(s)}),c()()}if(2&t){const
e=d(2);a(1),p("label",e.getTranslation("today"))("ngClass",U(4,aT,e.todayButtonStyleClass)),a(1),p("label",e.getTranslation("clear"))("ngClass",U(6,aT,e.clearButtonStyleClass))}}function
JN(t,i){1&t&&Y(0)}const YN=function(t,i,e,n,s,r){return{"p-datepicker
p-component":!0,"p-datepicker-inline":t,"p-disabled":i,"p-datepicker-timeonly":e,"p-datepicker-multiple-month":n,"p-datepicker-monthpicker":s,"p-datepicker-touch-ui":r}},lT=function(t,i){return{showTransitionParams:t,hideTransitionParams:i}},ZN=function(t){
return{value:"visibleTouchUI",params:t}},XN=function(t){return{value:"visible",params:t}};function
e5(t,i){if(1&t){const
e=I();l(0,"div",10,11),C("(a)overlayAnimation.start",function(s){return
v(e),d().onOverlayAnimationStart(s)})("(a)overlayAnimation.done",function(s){return
v(e),d().onOverlayAnimationDone(s)})("click",function(s){return
v(e),d().onOverlayClick(s)}),St(2),_(3,bN,1,0,"ng-container",12),_(4,qN,5,3,"ng-container",13),_(5,KN,23,8,"div",14),_(6,QN,3,8,"div",15),St(7,1),_(8,JN,1,0,"ng-container",12),c()}if(2&t){const
e=d();me(e.panelStyleClass),p("ngStyle",e.panelStyle)("ngClass",Do(11,YN,e.inline,e.disabled,e.timeOnly,e.numberOfMonths>1,"month"===e.view,e.touchUI))("@overlayAnimation",e.touchUI?U(21,ZN,Ge(18,lT,e.showTransitionOptions,e.hideTransitionOptions)):U(26,XN,Ge(23,lT,e.showTransitionOptions,e.hideTransitionOptions)))("@.disabled",!0===e.inline),a(3),p("ngTemplateOutlet",e.headerTemplate),a(1),p("ngIf",!e.timeOnly),a(1),p("ngIf",(e.showTime||e.timeOnly)&&"date"===e
.currentView),a(1),p("ngIf",e.showButtonBar),a(2),p("ngTemplateOutlet",e.footerTemplate)}}const
t5=[[["p-header"]],[["p-footer"]]],n5=function(t,i,e,n){return{"p-calendar":!0,"p-calendar-w-btn":t,"p-calendar-timeonly":i,"p-calendar-disabled":e,"p-focus":n}},s5=["p-header","p-footer"],r5={provide:dn,useExisting:je(()=>xr),multi:!0};let
xr=(()=>{class
t{constructor(e,n,s,r,o,u){this.el=e,this.renderer=n,this.cd=s,this.zone=r,this.config=o,this.overlayService=u,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.showClear=!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
H,this.onBlur=new H,this.onClose=new H,this.onSelect=new H,this.onClear=new
H,this.onInput=new H,this.onTodayClick=new H,this.onClearClick=new
H,this.onMonthChange=new H,this.onYearChange=new H,this.onClickOutside=new
H,this.onShow=new
H,this.onModelChange=()=>{},this.onModelTouched=()=>{},this.inputFieldValue=null,this.navigationState=null,this._numberOfMonths=1,this._view="date",this.convertTo24Hour=function(h,b){return"12"==this.hourFormat?12===h?b?12:0:b?h+12:h:h}}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){co
nst n=e||new
Date;this.currentMonth=n.getMonth(),this.currentYear=n.getFullYear(),this.initTime(n),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 year
Range(e){if(this._yearRange=e,e){const
n=e.split(":"),s=parseInt(n[0]),r=parseInt(n[1]);this.populateYearOptions(s,r)}}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._firstDayOfWeek}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=pl();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.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=R.getOuterWidth(this.containerViewChild.nativeElemen
t)+"px")))}getTranslation(e){return
this.config.getTranslation(e)}populateYearOptions(e,n){this.yearOptions=[];for(let
s=e;s<=n;s++)this.yearOptions.push(s)}createWeekDays(){this.weekDays=[];let
e=this.getFirstDateOfWeek(),n=this.getTranslation(Ft.DAY_NAMES_MIN);for(let
s=0;s<7;s++)this.weekDays.push(n[e]),e=6==e?0:++e}monthPickerValues(){let e=[];for(let
n=0;n<=11;n++)e.push(this.config.getTranslation("monthNamesShort")[n]);return
e}yearPickerValues(){let e=[],n=this.currentYear-this.currentYear%10;for(let
s=0;s<10;s++)e.push(n+s);return e}createMonths(e,n){this.months=this.months=[];for(let
s=0;s<this.numberOfMonths;s++){let
r=e+s,o=n;r>11&&(r=r%11-1,o=n+1),this.months.push(this.createMonth(r,o))}}getWeekNumber(e){let
n=new Date(e.getTime());n.setDate(n.getDate()+4-(n.getDay()||7));let s=n.getTime();return
n.setMonth(0),n.setDate(1),Math.floor(Math.round((s-n.getTime())/864e5)/7)+1}createMonth(e,n){let
s=[],r=this.getFirstDayOfMonthIndex(e,n),o=this.getDaysCountInMonth(e,n),u=this
.getDaysCountInPrevMonth(e,n),h=1,b=new Date,y=[],w=Math.ceil((o+r)/7);for(let
M=0;M<w;M++){let E=[];if(0==M){for(let O=u-r+1;O<=u;O++){let
N=this.getPreviousMonthAndYear(e,n);E.push({day:O,month:N.month,year:N.year,otherMonth:!0,today:this.isToday(b,O,N.month,N.year),selectable:this.isSelectable(O,N.month,N.year,!0)})}let
L=7-E.length;for(let
O=0;O<L;O++)E.push({day:h,month:e,year:n,today:this.isToday(b,h,e,n),selectable:this.isSelectable(h,e,n,!1)}),h++}else
for(let L=0;L<7;L++){if(h>o){let
O=this.getNextMonthAndYear(e,n);E.push({day:h-o,month:O.month,year:O.year,otherMonth:!0,today:this.isToday(b,h-o,O.month,O.year),selectable:this.isSelectable(h-o,O.month,O.year,!0)})}else
E.push({day:h,month:e,year:n,today:this.isToday(b,h,e,n),selectable:this.isSelectable(h,e,n,!1)});h++}this.showWeek&&y.push(this.getWeekNumber(new
Date(E[0].year,E[0].month,E[0].day))),s.push(E)}return{month:e,year:n,dates:s,weekNumbers:y}}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"===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({m
onth: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[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.setCurrentView("month"),e.preventDefault()}switchToYearView(e){this.setCurrentView("year"),e.preventDefault()}onDateSelect(e,n){!this.disabled&&n.selectable?(this.isMultipleSelection()&&this.isSelected(n)?(this
.value=this.value.filter((s,r)=>!this.isDateEquals(s,n)),0===this.value.length&&(this.value=null),this.updateModel(this.value)):this.shouldSelectDate(n)&&this.selectDate(n),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,n){"month"===this.view?this.onDateSelect(e,{year:this.currentYear,month:n,day:1,selectable:!0}):(this.currentMonth=n,this.createMonths(this.currentMonth,this.currentYear),this.setCurrentView("date"),this.onMonthChange.emit({month:this.currentMonth+1,year:this.currentYear}))}onYearSelect(e,n){"year"===this.view?this.onDateSelect(e,{year:n,month:0,day:1,selectable:!0}):(this.currentYear=n,this.setCurrentView("month"),this.onYearChange.emit({m
onth: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
n=0;n<this.value.length;n++)e+=this.formatDateTime(this.value[n]),n!==this.value.length-1&&(e+=this.multipleSeparator+"
");else
if(this.isRangeSelection()&&this.value&&this.value.length){let
s=this.value[1];e=this.formatDateTime(this.value[0]),s&&(e+="
"+this.rangeSeparator+"
"+this.formatDateTime(s))}this.inputFieldValue=e,this.updateFilledState(),this.inputfieldViewChild&&this.inputfieldViewChild.nativeElement&&(this.inputfieldViewChild.nativeElement.value=this.inputFieldValue)}formatDateTime(e){let
n=this.keepInvalid?e:null;return
this.isValidDate(e)&&(this.timeOnly?n=this.formatTime(e):(n=this.formatDate(e,this.getDateFormat()),this.showTime&&(n+="
"+this.formatTime(e)))),n}setCurrentHourPM(e){"12"==this.hourFormat?(this.pm=e>11,this.currentHour=e>=12?12==e?12:e-12:0==e?12:e):this.curr
entHour=e}setCurrentView(e){this.currentView=e,this.cd.detectChanges(),this.alignOverlay()}selectDate(e){let
n=new
Date(e.year,e.month,e.day);if(this.showTime&&(n.setHours("12"==this.hourFormat?12===this.currentHour?this.pm?12:0:this.pm?this.currentHour+12:this.currentHour:this.currentHour),n.setMinutes(this.currentMinute),n.setSeconds(this.currentSecond)),this.minDate&&this.minDate>n&&(n=this.minDate,this.setCurrentHourPM(n.getHours()),this.currentMinute=n.getMinutes(),this.currentSecond=n.getSeconds()),this.maxDate&&this.maxDate<n&&(n=this.maxDate,this.setCurrentHourPM(n.getHours()),this.currentMinute=n.getMinutes(),this.currentSecond=n.getSeconds()),this.isSingleSelection())this.updateModel(n);else
if(this.isMultipleSelection())this.updateModel(this.value?[...this.value,n]:[n]);else
if(this.isRangeSelection())if(this.value&&this.value.length){let
s=this.value[0],r=this.value[1];!r&&n.getTime()>=s.getTime()?r=n:(s=n,r=null),this.updateModel([s,r])}else
this.updateModel([n,null]);t
his.onSelect.emit(n)}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
n=null;this.value&&(n=this.value.map(s=>this.formatDateTime(s))),this.onModelChange(n)}}getFirstDayOfMonthIndex(e,n){let
s=new Date;s.setDate(1),s.setMonth(e),s.setFullYear(n);let
r=s.getDay()+this.getSundayIndex();return r>=7?r-7:r}getDaysCountInMonth(e,n){return
32-this.daylightSavingAdjust(new Date(n,e,32)).getDate()}getDaysCountInPrevMonth(e,n){let
s=this.getPreviousMonthAndYear(e,n);return
this.getDaysCountInMonth(s.month,s.year)}getPreviousMonthAndYear(e,n){let s,r;return
0===e?(s=11,r=n-1):(s=e-1,r=n),{month:s,year:r}}getNextMonthAndYear(e,n){let s,r;return
11===e?(s=0,r=n+1):(s=e+1,r=n),{month:s,year:r}}getSundayIndex(){let
e=this.getFirstDateOfWeek();return
e>0?7-e:0}isSelected(e){if(!this.value)return!1;if(this.isSingleSelection())return
this.isDateEq
uals(this.value,e);if(this.isMultipleSelection()){let n=!1;for(let s of
this.value)if(n=this.isDateEquals(s,e),n)break;return n}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
n=this.isRangeSelection()?this.value[0]:this.value;return!this.isMultipleSelection()&&n.getMonth()===e&&n.getFullYear()===this.currentYear}return!1}isYearSelected(e){if(this.isComparable()){let
n=this.isRangeSelection()?this.value[0]:this.value;return!this.isMultipleSelection()&&n.getFullYear()===e}return!1}isDateEquals(e,n){return!!(e&&e
instanceof
Date)&&e.getDate()===n.day&&e.getMonth()===n.month&&e.getFullYear()===n.year}isDateBetween(e,n,s){if(e&&n){let
o=new Date(s.year,s.month,s.day);return
e.getTime()<=o.getTime()&&n.getTime()>=o.g
etTime()}return!1}isSingleSelection(){return"single"===this.selectionMode}isRangeSelection(){return"range"===this.selectionMode}isMultipleSelection(){return"multiple"===this.selectionMode}isToday(e,n,s,r){return
e.getDate()===n&&e.getMonth()===s&&e.getFullYear()===r}isSelectable(e,n,s,r){let
o=!0,u=!0,h=!0,b=!0;return!(r&&!this.selectOtherMonths)&&(this.minDate&&(this.minDate.getFullYear()>s||this.minDate.getFullYear()===s&&(this.minDate.getMonth()>n||this.minDate.getMonth()===n&&this.minDate.getDate()>e))&&(o=!1),this.maxDate&&(this.maxDate.getFullYear()<s||this.maxDate.getFullYear()===s&&(this.maxDate.getMonth()<n||this.maxDate.getMonth()===n&&this.maxDate.getDate()<e))&&(u=!1),this.disabledDates&&(h=!this.isDateDisabled(e,n,s)),this.disabledDays&&(b=!this.isDayDisabled(e,n,s)),o&&u&&h&&b)}isDateDisabled(e,n,s){if(this.disabledDates)for(let
r of
this.disabledDates)if(r.getFullYear()===s&&r.getMonth()===n&&r.getDate()===e)return!0;return!1}isDayDisabled(e,n,s){if(this.disabledDays)
{let o=new
Date(s,n,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,n){this.overlayVisible?this.hideOverlay():(n.focus(),this.showOverlay())}clear(){this.inputFieldValue=null,this.value=null,this.onModelChange(this.value),this.onClear.emit()}onOverlayClick(e){this.overlayService.add({originalEvent:e,target:this.el.nativeElement})}getMonthName(e){return
this.config.getTranslation("monthNames")[e]}getYear(e){return"month"===this.currentView?this.currentYear:e.year}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},thi
s.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&&(R.getFocusableElements(this.contentViewChild.nativeElement).forEach(n=>n.tabIndex="-1"),this.overlayVisible&&(this.overlayVisible=!1))}onDateCellKeydown(e,n,s){const
r=e.currentTarget,o=r.parentElement;switch(e.which){case 40:{r.tabIndex="-1";let
u=R.index(o),h=o.parentElement.nextElementSibling;h?R.hasClass(h.children[u].children[0],"p-disabled")?(this.navigationState={backward:!1},this.navForward(e)):(h.children[u].children[0].tabIndex="0",h.children[u].children[0].focus()):(this.navigationState={backward:!1},this.navForward(e)),e.preventDefault();break}case
38:{r.tabIndex="-1";let u=R.index(o),h=o.parentE
lement.previousElementSibling;if(h){let
b=h.children[u].children[0];R.hasClass(b,"p-disabled")?(this.navigationState={backward:!0},this.navBackward(e)):(b.tabIndex="0",b.focus())}else
this.navigationState={backward:!0},this.navBackward(e);e.preventDefault();break}case
37:{r.tabIndex="-1";let u=o.previousElementSibling;if(u){let
h=u.children[0];R.hasClass(h,"p-disabled")||R.hasClass(h.parentElement,"p-datepicker-weeknumber")?this.navigateToMonth(!0,s):(h.tabIndex="0",h.focus())}else
this.navigateToMonth(!0,s);e.preventDefault();break}case 39:{r.tabIndex="-1";let
u=o.nextElementSibling;if(u){let
h=u.children[0];R.hasClass(h,"p-disabled")?this.navigateToMonth(!1,s):(h.tabIndex="0",h.focus())}else
this.navigateToMonth(!1,s);e.preventDefault();break}case 13:case
32:this.onDateSelect(e,n),e.preventDefault();break;case
27:this.overlayVisible=!1,e.preventDefault();break;case
9:this.inline||this.trapFocus(e)}}onMonthCellKeydown(e,n){const
s=e.currentTarget;switch(e.which){case 38:case 40:{s.
tabIndex="-1";var r=s.parentElement.children,o=R.index(s);let
u=r[40===e.which?o+3:o-3];u&&(u.tabIndex="0",u.focus()),e.preventDefault();break}case
37:{s.tabIndex="-1";let
u=s.previousElementSibling;u?(u.tabIndex="0",u.focus()):(this.navigationState={backward:!0},this.navBackward(e)),e.preventDefault();break}case
39:{s.tabIndex="-1";let
u=s.nextElementSibling;u?(u.tabIndex="0",u.focus()):(this.navigationState={backward:!1},this.navForward(e)),e.preventDefault();break}case
13:this.onMonthSelect(e,n),e.preventDefault();break;case 13:case 32:case
27:this.overlayVisible=!1,e.preventDefault();break;case
9:this.inline||this.trapFocus(e)}}onYearCellKeydown(e,n){const
s=e.currentTarget;switch(e.which){case 38:case 40:{s.tabIndex="-1";var
r=s.parentElement.children,o=R.index(s);let
u=r[40===e.which?o+2:o-2];u&&(u.tabIndex="0",u.focus()),e.preventDefault();break}case
37:{s.tabIndex="-1";let
u=s.previousElementSibling;u?(u.tabIndex="0",u.focus()):(this.navigationState={backward:!0},this.navBac
kward(e)),e.preventDefault();break}case 39:{s.tabIndex="-1";let
u=s.nextElementSibling;u?(u.tabIndex="0",u.focus()):(this.navigationState={backward:!1},this.navForward(e)),e.preventDefault();break}case
13:case 32:this.onYearSelect(e,n),e.preventDefault();break;case
27:this.overlayVisible=!1,e.preventDefault();break;case
9:this.trapFocus(e)}}navigateToMonth(e,n){if(e)if(1===this.numberOfMonths||0===n)this.navigationState={backward:!0},this.navBackward(event);else{let
r=R.find(this.contentViewChild.nativeElement.children[n-1],".p-datepicker-calendar td
span:not(.p-disabled):not(.p-ink)"),o=r[r.length-1];o.tabIndex="0",o.focus()}else
if(1===this.numberOfMonths||n===this.numberOfMonths-1)this.navigationState={backward:!1},this.navForward(event);else{let
r=R.findSingle(this.contentViewChild.nativeElement.children[n+1],".p-datepicker-calendar
td
span:not(.p-disabled):not(.p-ink)");r.tabIndex="0",r.focus()}}updateFocus(){let
e;if(this.navigationState){if(this.navigationState.button)this.in
itFocusableCell(),this.navigationState.backward?R.findSingle(this.contentViewChild.nativeElement,".p-datepicker-prev").focus():R.findSingle(this.contentViewChild.nativeElement,".p-datepicker-next").focus();else{if(this.navigationState.backward){let
n;n=R.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)"),n&&n.length>0&&(e=n[n.length-1])}else
e=R.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 n=R.find(this.conte
ntViewChild.nativeElement,".p-monthpicker
.p-monthpicker-month:not(.p-disabled)"),s=R.findSingle(this.contentViewChild.nativeElement,".p-monthpicker
.p-monthpicker-month.p-highlight");n.forEach(r=>r.tabIndex=-1),e=s||n[0],0===n.length&&R.find(this.contentViewChild.nativeElement,'.p-monthpicker
.p-monthpicker-month.p-disabled[tabindex =
"0"]').forEach(o=>o.tabIndex=-1)}else
if("year"===this.currentView){let
n=R.find(this.contentViewChild.nativeElement,".p-yearpicker
.p-yearpicker-year:not(.p-disabled)"),s=R.findSingle(this.contentViewChild.nativeElement,".p-yearpicker
.p-yearpicker-year.p-highlight");n.forEach(r=>r.tabIndex=-1),e=s||n[0],0===n.length&&R.find(this.contentViewChild.nativeElement,'.p-yearpicker
.p-yearpicker-year.p-disabled[tabindex =
"0"]').forEach(o=>o.tabIndex=-1)}else
if(e=R.findSingle(this.contentViewChild.nativeElement,"span.p-highlight"),!e){let
n=R.findSingle(this.contentViewChild.nativeElement,"td.p-datepicker-today
span:not(.p-disabled):not(.p-ink)");e=n||R.fi
ndSingle(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
n=R.getFocusableElements(this.contentViewChild.nativeElement);if(n&&n.length>0)if(n[0].ownerDocument.activeElement){let
s=n.indexOf(n[0].ownerDocument.activeElement);if(e.shiftKey)if(-1==s||0===s)if(this.focusTrap)n[n.length-1].focus();else{if(-1===s)return
this.hideOverlay();if(0===s)return}else n[s-1].focus();else
if(-1==s||s===n.length-1){if(!this.focusTrap&&-1!=s)return
this.hideOverlay();n[0].focus()}else n[s+1].focus()}else
n[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,n,s,r){let
o=this.value;const
u=this.convertTo24Hour(e,r);this.isRangeSelection()&&(o=this.value[1]||this.value[0]),this.isMultipleSelection()&&(o=this.value[this.value.length-1]);const
h=o?o.toDateString():null;return!(this.minDate&&h&&this.minDate.toDateString()===h&&(this.minDate.getHours()>u||this.minDate.getHours()===u&&(this.minDate.getMinutes()>n||this.minDate.getMinutes()===n&&this.minDate.getSeconds()>s))||this.maxDate&&h&&this.maxDate.toDateString()===h&&(this.maxDate.getHours()<u||this.maxDate.getHours()===u&&(this.maxDate.getMinutes()<n||this.maxDate.getMinutes()===n&&this.maxDate.getSeconds()<s)))}incrementHour(e){let
s=this.currentHour+this.stepHour,r=this.pm;"24"==this.hourFormat?s=s>=24?s-24:s:"12"==this.hourFormat&&(this.currentHour<12&&s>11&&(r=!this.pm),s=s>=13?s-12:s),this.validateTime(s,this.currentMinute,this.currentSecond,r)&&(this.currentHou
r=s,this.pm=r),e.preventDefault()}onTimePickerElementMouseDown(e,n,s){this.disabled||(this.repeat(e,null,n,s),e.preventDefault())}onTimePickerElementMouseUp(e){this.disabled||(this.clearTimePickerTimer(),this.updateTime())}onTimePickerElementMouseLeave(){!this.disabled&&this.timePickerTimer&&(this.clearTimePickerTimer(),this.updateTime())}repeat(e,n,s,r){let
o=n||500;switch(this.clearTimePickerTimer(),this.timePickerTimer=setTimeout(()=>{this.repeat(e,100,s,r),this.cd.markForCheck()},o),s){case
0:1===r?this.incrementHour(e):this.decrementHour(e);break;case
1:1===r?this.incrementMinute(e):this.decrementMinute(e);break;case
2:1===r?this.incrementSecond(e):this.decrementSecond(e)}this.updateInputfield()}clearTimePickerTimer(){this.timePickerTimer&&(clearTimeout(this.timePickerTimer),this.timePickerTimer=null)}decrementHour(e){let
n=this.currentHour-this.stepHour,s=this.pm;"24"==this.hourFormat?n=n<0?24+n:n:"12"==this.hourFormat&&(12===this.currentHour&&(s=!this.pm),n=n<=0?12+n:n),this.
validateTime(n,this.currentMinute,this.currentSecond,s)&&(this.currentHour=n,this.pm=s),e.preventDefault()}incrementMinute(e){let
n=this.currentMinute+this.stepMinute;n=n>59?n-60:n,this.validateTime(this.currentHour,n,this.currentSecond,this.pm)&&(this.currentMinute=n),e.preventDefault()}decrementMinute(e){let
n=this.currentMinute-this.stepMinute;n=n<0?60+n:n,this.validateTime(this.currentHour,n,this.currentSecond,this.pm)&&(this.currentMinute=n),e.preventDefault()}incrementSecond(e){let
n=this.currentSecond+this.stepSecond;n=n>59?n-60:n,this.validateTime(this.currentHour,this.currentMinute,n,this.pm)&&(this.currentSecond=n),e.preventDefault()}decrementSecond(e){let
n=this.currentSecond-this.stepSecond;n=n<0?60+n:n,this.validateTime(this.currentHour,this.currentMinute,n,this.pm)&&(this.currentSecond=n),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
n=!this.pm;this.validateTime(this.currentHour,this.currentMinute,this.currentSecond,n)&&(this.pm=n,this.updateTime()),e.preventDefault()}onUserInput(e){if(!this.isKeydown)return;this.isKeydown=!1;let
n=e.target.value;try{let
s=this.parseValueFromString(n);this.isValidSelection(s)&&(this.updateModel(s),this.updateUI())}catch(s){this.updateModel(this.keepInvalid?n:null)}this.filled=null!=n&&n.length,this.onInput.emit(e)}isValidSelection(e){let
n=!0;return
this.isSingleSelection()?this.isSelectable(e.getDate(),e.getMonth(),e.getFullYear(),!1)||(n=!1):e.eve
ry(s=>this.isSelectable(s.getDate(),s.getMonth(),s.getFullYear(),!1))&&this.isRangeSelection()&&(n=e.length>1&&e[1]>e[0]),n}parseValueFromString(e){if(!e||0===e.trim().length)return
null;let n;if(this.isSingleSelection())n=this.parseDateTime(e);else
if(this.isMultipleSelection()){let s=e.split(this.multipleSeparator);n=[];for(let r of
s)n.push(this.parseDateTime(r.trim()))}else if(this.isRangeSelection()){let
s=e.split(" "+this.rangeSeparator+" ");n=[];for(let
r=0;r<s.length;r++)n[r]=this.parseDateTime(s[r].trim())}return n}parseDateTime(e){let
n,s=e.split(" ");if(this.timeOnly)n=new
Date,this.populateTime(n,s[0],s[1]);else{const
r=this.getDateFormat();if(this.showTime){let
o="12"==this.hourFormat?s.pop():null,u=s.pop();n=this.parseDate(s.join("
"),r),this.populateTime(n,u,o)}else n=this.parseDate(e,r)}return
n}populateTime(e,n,s){if("12"==this.hourFormat&&!s)throw"Invalid
Time";this.pm="PM"===s||"pm"===s;let
r=this.parseTime(n);e.setHours(r.hour),e.setMinutes(r.minute),e.setSeconds
(r.second)}isValidDate(e){return e instanceof
Date&&Z.isNotEmpty(e)}updateUI(){let
e=this.value;Array.isArray(e)&&(e=e[0]);let
n=this.defaultDate&&this.isValidDate(this.defaultDate)&&!this.value?this.defaultDate:e&&this.isValidDate(e)?e:new
Date;this.currentMonth=n.getMonth(),this.currentYear=n.getFullYear(),this.createMonths(this.currentMonth,this.currentYear),(this.showTime||this.timeOnly)&&(this.setCurrentHourPM(n.getHours()),this.currentMinute=n.getMinutes(),this.currentSecond=n.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.over
lay.setAttribute(this.attributeSelector,""),this.appendOverlay(),this.updateFocus(),this.autoZIndex&&(this.touchUI?dt.set("modal",this.overlay,this.baseZIndex||this.config.zIndex.modal):dt.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&&dt.clear(e.element)}}appendOverlay(){this.appendTo&&("body"===this.appendTo?document.body.appendChild(this.overlay):R.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=R.getOuterWidth(t
his.overlay)+"px",this.overlay.style.minWidth=R.getOuterWidth(this.inputfieldViewChild.nativeElement)+"px"):this.overlay.style.width=R.getOuterWidth(this.inputfieldViewChild.nativeElement)+"px",R.absolutePosition(this.overlay,this.inputfieldViewChild.nativeElement)):R.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),R.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",s=>{this.disableModality()}),document.body.appendChild(this.mask),R.addClass(document.body,"p-overflow-hidden"))}disableModality(){this.mask&&(R.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 n,e=document.body.children;for(let
s=0;s<e.length;s++)if(R.hasClass(e[s],"p-datepicker-mask-scrollblocker")){n=!0;break}n||R.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){if(this.value=e,this.value&&"string"==typeof
this.value)try{this.value=this.parseValueFromString(this.value)}catch(n){this.keepInvalid&&(this.value=e)}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||th
is.getTranslation("dateFormat")}getFirstDateOfWeek(){return
this._firstDayOfWeek||this.getTranslation(Ft.FIRST_DAY_OF_WEEK)}formatDate(e,n){if(!e)return"";let
s;const r=y=>{const w=s+1<n.length&&n.charAt(s+1)===y;return
w&&s++,w},o=(y,w,M)=>{let
E=""+w;if(r(y))for(;E.length<M;)E="0"+E;return
E},u=(y,w,M,E)=>r(y)?E[w]:M[w];let
h="",b=!1;if(e)for(s=0;s<n.length;s++)if(b)"'"!==n.charAt(s)||r("'")?h+=n.charAt(s):b=!1;else
switch(n.charAt(s)){case"d":h+=o("d",e.getDate(),2);break;case"D":h+=u("D",e.getDay(),this.getTranslation(Ft.DAY_NAMES_SHORT),this.getTranslation(Ft.DAY_NAMES));break;case"o":h+=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":h+=o("m",e.getMonth()+1,2);break;case"M":h+=u("M",e.getMonth(),this.getTranslation(Ft.MONTH_NAMES_SHORT),this.getTranslation(Ft.MONTH_NAMES));break;case"y":h+=r("y")?e.getFullYear():(e.getFullYear()%100<10?"0":"")+e.getFullYear()%100;break;case"@":h+=e.
getTime();break;case"!":h+=1e4*e.getTime()+this.ticksTo1970;break;case"'":r("'")?h+="'":b=!0;break;default:h+=n.charAt(s)}return
h}formatTime(e){if(!e)return"";let
n="",s=e.getHours(),r=e.getMinutes(),o=e.getSeconds();return"12"==this.hourFormat&&s>11&&12!=s&&(s-=12),n+="12"==this.hourFormat&&0===s?12:s<10?"0"+s:s,n+=":",n+=r<10?"0"+r:r,this.showSeconds&&(n+=":",n+=o<10?"0"+o:o),"12"==this.hourFormat&&(n+=e.getHours()>11?"
PM":" AM"),n}parseTime(e){let
n=e.split(":");if(n.length!==(this.showSeconds?3:2))throw"Invalid
time";let
r=parseInt(n[0]),o=parseInt(n[1]),u=this.showSeconds?parseInt(n[2]):null;if(isNaN(r)||isNaN(o)||r>23||o>59||"12"==this.hourFormat&&r>12||this.showSeconds&&(isNaN(u)||u>59))throw"Invalid
time";return"12"==this.hourFormat&&(12!==r&&this.pm?r+=12:!this.pm&&12===r&&(r-=12)),{hour:r,minute:o,second:u}}parseDate(e,n){if(null==n||null==e)throw"Invalid
arguments";if(""===(e="object"==typeof
e?e.toString():e+""))return null;let s,r,o,L,u=0,h="string"!=typeof
this.short
YearCutoff?this.shortYearCutoff:(new
Date).getFullYear()%100+parseInt(this.shortYearCutoff,10),b=-1,y=-1,w=-1,M=-1,E=!1,O=J=>{let
se=s+1<n.length&&n.charAt(s+1)===J;return se&&s++,se},N=J=>{let
se=O(J),ke="@"===J?14:"!"===J?20:"y"===J&&se?4:"o"===J?3:2,Ct=new
RegExp("^\\d{"+("y"===J?ke:1)+","+ke+"}"),Ut=e.substring(u).match(Ct);if(!Ut)throw"Missing
number at position "+u;return
u+=Ut[0].length,parseInt(Ut[0],10)},G=(J,se,ke)=>{let mt=-1,Ct=O(J)?ke:se,Ut=[];for(let
At=0;At<Ct.length;At++)Ut.push([At,Ct[At]]);Ut.sort((At,hn)=>-(At[1].length-hn[1].length));for(let
At=0;At<Ut.length;At++){let
hn=Ut[At][1];if(e.substr(u,hn.length).toLowerCase()===hn.toLowerCase()){mt=Ut[At][0],u+=hn.length;break}}if(-1!==mt)return
mt+1;throw"Unknown name at position
"+u},P=()=>{if(e.charAt(u)!==n.charAt(s))throw"Unexpected literal at position
"+u;u++};for("month"===this.view&&(w=1),s=0;s<n.length;s++)if(E)"'"!==n.charAt(s)||O("'")?P():E=!1;else
switch(n.charAt(s)){case"d":w=N("d");break;case"D":G("D",thi
s.getTranslation(Ft.DAY_NAMES_SHORT),this.getTranslation(Ft.DAY_NAMES));break;case"o":M=N("o");break;case"m":y=N("m");break;case"M":y=G("M",this.getTranslation(Ft.MONTH_NAMES_SHORT),this.getTranslation(Ft.MONTH_NAMES));break;case"y":b=N("y");break;case"@":L=new
Date(N("@")),b=L.getFullYear(),y=L.getMonth()+1,w=L.getDate();break;case"!":L=new
Date((N("!")-this.ticksTo1970)/1e4),b=L.getFullYear(),y=L.getMonth()+1,w=L.getDate();break;case"'":O("'")?P():E=!0;break;default:P()}if(u<e.length&&(o=e.substr(u),!/^\s+/.test(o)))throw"Extra/unparsed
characters found in date: "+o;if(-1===b?b=(new
Date).getFullYear():b<100&&(b+=(new Date).getFullYear()-(new
Date).getFullYear()%100+(b<=h?0:-100)),M>-1)for(y=1,w=M;r=this.getDaysCountInMonth(b,y-1),!(w<=r);)y++,w-=r;if(L=this.daylightSavingAdjust(new
Date(b,y-1,w)),L.getFullYear()!==b||L.getMonth()+1!==y||L.getDate()!==w)throw"Invalid
date";return L}daylightSavingAdjust(e){return
e?(e.setHours(e.getHours()>12?e.getHours()+2:0),e):null}updateFilledS
tate(){this.filled=this.inputFieldValue&&""!=this.inputFieldValue}onTodayButtonClick(e){let
n=new
Date,s={day:n.getDate(),month:n.getMonth(),year:n.getFullYear(),otherMonth:n.getMonth()!==this.currentMonth||n.getFullYear()!==this.currentYear,today:!0,selectable:!0};this.onDateSelect(e,s),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
n=[...this.responsiveOptions].filter(s=>!(!s.breakpoint||!s.numMonths)).sort((s,r)=>-1*s.breakpoint.localeCompare(r.breakpoint,void
0,{numeric:!0}));for(let s=0;s<n.length;s++){let{breakpoint:r,numMonths:o}=n[s],u=`\n
.p-datepicker[${this.at
tributeSelector}] .p-datepicker-group:nth-child(${o}) .p-datepicker-next {\n
display: inline-flex !important;\n }\n
`;for(let h=o;h<this.numberOfMonths;h++)u+=`\n
.p-datepicker[${this.attributeSelector}] .p-datepicker-group:nth-child(${h+1}) {\n
display: none !important;\n }\n
`;e+=`\n @media screen and (max-width: ${r}) {\n
${u}\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",n=>{this.
isOutsideClicked(n)&&this.overlayVisible&&this.zone.run(()=>{this.hideOverlay(),this.onClickOutside.emit(n),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
Qs(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
R.hasClass(e.target,"p-datepicker-prev")||R.hasClass(e.target,"p-datepicker-prev-icon")||R.hasClass(e.target,"p-datepicker-next")||R.hasClass(e.target,"p-datepicker-next-icon")}onWindowResize(){this.overlayVisible&&!R.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&&dt.clear(this.overlay),this.destroyResponsiveStyleElement(),this.clearTimePickerTimer(),this.restoreOverlayAppend(),this.onOverlayHide()}}return
t.\u0275fac=function(e){return
new(e||t)(D(De),D(gn),D(rt),D(nt),D(zn),D(Ks))},t.\u0275cmp=z({type:t,selecto
rs:[["p-calendar"]],contentQueries:function(e,n,s){if(1&e&&st(s,ne,4),2&e){let
r;V(r=B())&&(n.templates=r)}},viewQuery:function(e,n){if(1&e&&(W(pN,5),W(hN,5),W(mN,5)),2&e){let
s;V(s=B())&&(n.containerViewChild=s.first),V(s=B())&&(n.inputfieldViewChild=s.first),V(s=B())&&(n.content=s.first)}},hostAttrs:[1,"p-element","p-inputwrapper"],hostVars:6,hostBindings:function(e,n){2&e&&si("p-inputwrapper-filled",n.filled)("p-inputwrapper-focus",n.focus)("p-calendar-clearable",n.showClear&&!n.disabled)},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:"readonly
Input",shortYearCutoff:"shortYearCutoff",monthNavigator:"monthNavigator",yearNavigator:"yearNavigator",hourFormat:"hourFormat",timeOnly:"timeOnly",stepHour:"stepHour",stepMinute:"stepMinute",stepSecond:"stepSecond",showSeconds:"showSeconds",required:"required",showOnFocus:"showOnFocus",showWeek:"showWeek",showClear:"showClear",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",minDate:"minDate",maxDate:"maxDate",disabledDates:"disabledDates",disabl
edDays:"disabledDays",yearRange:"yearRange",showTime:"showTime",responsiveOptions:"responsiveOptions",numberOfMonths:"numberOfMonths",firstDayOfWeek:"firstDayOfWeek",locale:"locale"},outputs:{onFocus:"onFocus",onBlur:"onBlur",onClose:"onClose",onSelect:"onSelect",onClear:"onClear",onInput:"onInput",onTodayClick:"onTodayClick",onClearClick:"onClearClick",onMonthChange:"onMonthChange",onYearChange:"onYearChange",onClickOutside:"onClickOutside",onShow:"onShow"},features:[Pe([r5])],ngContentSelectors:s5,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",""],["class","p-calendar-clear-icon
pi
pi-times",3,"click",4,"ngIf"],["type","button","pButton","","pRipple","","class","p-datepicker-trigger","tabindex","0",3,"icon","disabled","click",4,"ngIf"],[1,"p-calenda
r-clear-icon","pi","pi-times",3,"click"],["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-chevr
on-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"],["pR
ipple","",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,n){1&e&&(Sn(t5),l(0,"span",0,1),_(2,_N,4,17,"ng-template",2),_(3,e5,9,28,"div",3),c()),2&e&&(me(n.styleClass),p("ngC
lass",qn(6,n5,n.showIcon,n.timeOnly,n.disabled,n.focus))("ngStyle",n.style),a(2),p("ngIf",!n.inline),a(1),p("ngIf",n.inline||n.overlayVisible))},directives:[Le,lt,Q,On,bt,Rt,at],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;p
osition: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;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:translat
e(-50%,-50%)}.p-yearpicker-year{width:50%;display:inline-flex;align-items:center;justify-content:center;cursor:pointer;overflow:hidden;position:relative}.p-calendar-clear-icon{position:absolute;top:50%;margin-top:-.5rem;cursor:pointer}.p-calendar-clearable{position:relative}\n"],encapsulation:2,data:{animation:[wi("overlayAnimation",[ws("visibleTouchUI",it({transform:"translate(-50%,-50%)",opacity:1})),Lt("void
=>
visible",[it({opacity:0,transform:"scaleY(0.8)"}),kt("{{showTransitionParams}}",it({opacity:1,transform:"*"}))]),Lt("visible
=> void",[kt("{{hideTransitionParams}}",it({opacity:0}))]),Lt("void
=> visibleTouchUI",[it({opacity:0,transform:"translate3d(-50%, -40%, 0)
scale(0.9)"}),kt("{{showTransitionParams}}")]),Lt("visibleTouchUI
=>
void",[kt("{{hideTransitionParams}}",it({opacity:0,transform:"translate3d(-50%,
-40%, 0) scale(0.9)"}))])])]},changeDetection:0}),t})(),cT=(()=>{class t{}return
t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=he({type:t}),t.\u0275inj=ue({i
mports:[[Fe,gl,Nt,pn],gl,Nt]}),t})();function o5(t,i){1&t&&Y(0)}function
a5(t,i){if(1&t&&(l(0,"div",8),St(1,1),_(2,o5,1,0,"ng-container",6),c()),2&t){const
e=d();a(2),p("ngTemplateOutlet",e.headerTemplate)}}function
l5(t,i){1&t&&Y(0)}function
c5(t,i){if(1&t&&(l(0,"div",9),g(1),_(2,l5,1,0,"ng-container",6),c()),2&t){const
e=d();a(1),T(" ",e.header,"
"),a(1),p("ngTemplateOutlet",e.titleTemplate)}}function
u5(t,i){1&t&&Y(0)}function
d5(t,i){if(1&t&&(l(0,"div",10),g(1),_(2,u5,1,0,"ng-container",6),c()),2&t){const
e=d();a(1),T(" ",e.subheader,"
"),a(1),p("ngTemplateOutlet",e.subtitleTemplate)}}function
p5(t,i){1&t&&Y(0)}function h5(t,i){1&t&&Y(0)}function
m5(t,i){if(1&t&&(l(0,"div",11),St(1,2),_(2,h5,1,0,"ng-container",6),c()),2&t){const
e=d();a(2),p("ngTemplateOutlet",e.footerTemplate)}}const
f5=["*",[["p-header"]],[["p-footer"]]],g5=["*","p-header","p-footer"];let
Ne=(()=>{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.template;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)(D(De))},t.\u0275cmp=z({type:t,selectors:[["p-card"]],contentQueries:function(e,n,s){if(1&e&&(st(s,Oo,5),st(s,fl,5),st(s,ne,4)),2&e){let
r;V(r=B())&&(n.headerFacet=r.first),V(r=B())&&(n.footerFacet=r.first),V(r=B())&&(n.templates=r)}},hostAttrs:[1,"p-element"],inputs:{header:"header",subheader:"subheader",style:"style",styleClass:"styleClass"},ngContentSelectors:g5,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:function(e,n){1&e&&(Sn(f5),l(0,"div",0),_(1,a5,3,1,"div",1),l(2,"div",2),_(3,c5,3,2,"div",3),_(4,d5,3,2,"div",4),l(5,"div",5),St(6),_(7,p5,1,0,"ng-container",6),c(),_(8,m5,3,1,"div",7),c()()),2&e&&(me(n.styleClass),p("ngClass","p-card
p-component")("ngStyle",n.style),a(1),p("ngIf",n.headerFacet||n.headerTemplate),a(2),p("ngIf",n.header||n.titleTemplate),a(1),p("ngIf",n.subheader||n.subtitleTemplate),a(3),p("ngTemplateOutlet",n.contentTemplate),a(1),p("ngIf",n.footerFacet||n.footerTemplate))},directives:[Le,lt,Q,Rt],styles:[".p-card-header
img{width:100%}\n"],encapsulation:2,changeDetection:0}),t})(),_5=(()=>{class
t{}return t.\u0275fac=function(e){return
new(e||t)},t.\u0275mod=he({type:t}),t.\u0275inj=ue({imports:[[Fe],Nt]}),t})();const
b5=["cb"],v5=function(t,i,e){return{"p-checkbox-label":!0,"p-checkbox-label-active":t,"p-disabled":i,"p-checkbox-label-focus":e}};function
C5(t,i){if(1&t){const e=I();l(0,"label",7)
,C("click",function(s){v(e);const r=d(),o=F(3);return
r.onClick(s,o,!0)}),g(1),c()}if(2&t){const
e=d();me(e.labelStyleClass),p("ngClass",Qt(5,v5,e.checked(),e.disabled,e.focused)),ie("for",e.inputId),a(1),S(e.label)}}const
y5=function(t,i,e){return{"p-checkbox
p-component":!0,"p-checkbox-checked":t,"p-checkbox-disabled":i,"p-checkbox-focused":e}},w5=function(t,i,e){return{"p-highlight":t,"p-disabled":i,"p-focus":e}},T5={provide:dn,useExisting:je(()=>sn),multi:!0};let
sn=(()=>{class t{constructor(e){this.cd=e,this.checkboxIcon="pi
pi-check",this.trueValue=!0,this.falseValue=!1,this.onChange=new
H,this.onModelChange=()=>{},this.onModelTouched=()=>{},this.focused=!1}onClick(e,n,s){e.preventDefault(),!this.disabled&&!this.readonly&&(this.updateModel(e),s&&n.focus())}updateModel(e){let
n;this.binary?(n=this.checked()?this.falseValue:this.trueValue,this.model=n,this.onModelChange(n)):(n=this.checked()?this.model.filter(s=>!Z.equals(s,this.value)):this.model?[...this.model,this.value]:[thi
s.value],this.onModelChange(n),this.model=n,this.formControl&&this.formControl.setValue(n)),this.onChange.emit({checked:n,originalEvent:e})}handleChange(e){this.readonly||this.updateModel(e)}onFocus(){this.focused=!0}onBlur(){this.focused=!1,this.onModelTouched()}focus(){this.inputViewChild.nativeElement.focus()}writeValue(e){this.model=e,this.cd.markForCheck()}registerOnChange(e){this.onModelChange=e}registerOnTouched(e){this.onModelTouched=e}setDisabledState(e){this.disabled=e,this.cd.markForCheck()}checked(){return
this.binary?this.model===this.trueValue:Z.contains(this.value,this.model)}}return
t.\u0275fac=function(e){return
new(e||t)(D(rt))},t.\u0275cmp=z({type:t,selectors:[["p-checkbox"]],viewQuery:function(e,n){if(1&e&&W(b5,5),2&e){let
s;V(s=B())&&(n.inputViewChild=s.first)}},hostAttrs:[1,"p-element"],inputs:{value:"value",name:"name",disabled:"disabled",binary:"binary",label:"label",ariaLabelledBy:"ariaLabelledBy",ariaLabel:"ariaLabel",tabindex:"tabindex",inputId:"inputId",s
tyle:"style",styleClass:"styleClass",labelStyleClass:"labelStyleClass",formControl:"formControl",checkboxIcon:"checkboxIcon",readonly:"readonly",required:"required",trueValue:"trueValue",falseValue:"falseValue"},outputs:{onChange:"onChange"},features:[Pe([T5])],decls:7,vars:26,consts:[[3,"ngStyle","ngClass"],[1,"p-hidden-accessible"],["type","checkbox",3,"readonly","value","checked","disabled","focus","blur","change"],["cb",""],[1,"p-checkbox-box",3,"ngClass","click"],[1,"p-checkbox-icon",3,"ngClass"],[3,"class","ngClass","click",4,"ngIf"],[3,"ngClass","click"]],template:function(e,n){if(1&e){const
s=I();l(0,"div",0)(1,"div",1)(2,"input",2,3),C("focus",function(){return
n.onFocus()})("blur",function(){return
n.onBlur()})("change",function(o){return
n.handleChange(o)}),c()(),l(4,"div",4),C("click",function(o){v(s);const
u=F(3);return
n.onClick(o,u,!0)}),k(5,"span",5),c()(),_(6,C5,2,9,"label",6)}2&e&&(me(n.styleClass),p("ngStyle",n.style)("ngClass",Qt(18,y5,n.checked(),n.disabled,n.fo
cused)),a(2),p("readonly",n.readonly)("value",n.value)("checked",n.checked())("disabled",n.disabled),ie("id",n.inputId)("name",n.name)("tabindex",n.tabindex)("aria-labelledby",n.ariaLabelledBy)("aria-label",n.ariaLabel)("aria-checked",n.checked())("required",n.required),a(2),p("ngClass",Qt(22,w5,n.checked(),n.disabled,n.focused)),a(1),p("ngClass",n.checked()?n.checkboxIcon:null),a(1),p("ngIf",n.label))},directives:[lt,Le,Q],styles:[".p-checkbox{display:inline-flex;cursor:pointer;-webkit-user-select:none;user-select:none;vertical-align:bottom;position:relative}.p-checkbox-disabled{cursor:default!important;pointer-events:none}.p-checkbox-box{display:flex;justify-content:center;align-items:center}p-checkbox{display:inline-flex;vertical-align:bottom;align-items:center}.p-checkbox-label{line-height:1}\n"],encapsulation:2,changeDetection:0}),t})(),S5=(()=>{class
t{}return t.\u0275fac=function(e){return
new(e||t)},t.\u0275mod=he({type:t}),t.\u0275inj=ue({imports:[[Fe]]}),t})();function Ku(
t,i=0){return function
D5(t){return!isNaN(parseFloat(t))&&!isNaN(Number(t))}(t)?Number(t):i}function
Uf(t,i,e,n){return Is(e)&&(n=e,e=void
0),n?Uf(t,i,e).pipe(et(s=>Nr(s)?n(...s):n(s))):new Je(s=>{uT(t,i,function
r(o){s.next(arguments.length>1?Array.prototype.slice.call(arguments):o)},s,e)})}function
uT(t,i,e,n,s){let r;if(function E5(t){return t&&"function"==typeof
t.addEventListener&&"function"==typeof t.removeEventListener}(t)){const
o=t;t.addEventListener(i,e,s),r=()=>o.removeEventListener(i,e,s)}else if(function
I5(t){return t&&"function"==typeof
t.on&&"function"==typeof t.off}(t)){const
o=t;t.on(i,e),r=()=>o.off(i,e)}else if(function k5(t){return
t&&"function"==typeof
t.addListener&&"function"==typeof t.removeListener}(t)){const
o=t;t.addListener(i,e),r=()=>o.removeListener(i,e)}else{if(!t||!t.length)throw new
TypeError("Invalid event target");for(let
o=0,u=t.length;o<u;o++)uT(t[o],i,e,n,s)}n.add(r)}const O5=new class L5 extends
Hi{flush(i){this.active=!0,this.scheduled=void 0
;const{actions:e}=this;let
n,s=-1,r=e.length;i=i||e.shift();do{if(n=i.execute(i.state,i.delay))break}while(++s<r&&(i=e.shift()));if(this.active=!1,n){for(;++s<r&&(i=e.shift());)i.unsubscribe();throw
n}}}(class R5 extends
uu{constructor(i,e){super(i,e),this.scheduler=i,this.work=e}requestAsyncId(i,e,n=0){return
null!==n&&n>0?super.requestAsyncId(i,e,n):(i.actions.push(this),i.scheduled||(i.scheduled=requestAnimationFrame(()=>i.flush(null))))}recycleAsyncId(i,e,n=0){if(null!==n&&n>0||null===n&&this.delay>0)return
super.recycleAsyncId(i,e,n);0===i.actions.length&&(cancelAnimationFrame(e),i.scheduled=void
0)}});let A5=1;const P5=Promise.resolve(),Qu={};function dT(t){return t in
Qu&&(delete Qu[t],!0)}const pT={setImmediate(t){const i=A5++;return
Qu[i]=!0,P5.then(()=>dT(i)&&t()),i},clearImmediate(t){dT(t)}},V5=new class N5
extends Hi{flush(i){this.active=!0,this.scheduled=void 0;const{actions:e}=this;let
n,s=-1,r=e.length;i=i||e.shift();do{if(n=i.execute(i.state,i.delay))break}while(++s<
r&&(i=e.shift()));if(this.active=!1,n){for(;++s<r&&(i=e.shift());)i.unsubscribe();throw
n}}}(class F5 extends
uu{constructor(i,e){super(i,e),this.scheduler=i,this.work=e}requestAsyncId(i,e,n=0){return
null!==n&&n>0?super.requestAsyncId(i,e,n):(i.actions.push(this),i.scheduled||(i.scheduled=pT.setImmediate(i.flush.bind(i,null))))}recycleAsyncId(i,e,n=0){if(null!==n&&n>0||null===n&&this.delay>0)return
super.recycleAsyncId(i,e,n);0===i.actions.length&&(pT.clearImmediate(e),i.scheduled=void
0)}});class H5{constructor(i,e){this.compare=i,this.keySelector=e}call(i,e){return
e.subscribe(new q5(i,this.compare,this.keySelector))}}class q5 extends
yt{constructor(i,e,n){super(i),this.keySelector=n,this.hasKey=!1,"function"==typeof
e&&(this.compare=e)}compare(i,e){return i===e}_next(i){let
e;try{const{keySelector:s}=this;e=s?s(i):i}catch(s){return this.destination.error(s)}let
n=!1;if(this.hasKey)try{const{compare:s}=this;n=s(this.key,e)}catch(s){return
this.destination.error(s)}else this.hasKe
y=!0;n||(this.key=e,this.destination.next(i))}}const zf=new Hi(uu);class
U5{constructor(i){this.durationSelector=i}call(i,e){return e.subscribe(new
z5(i,this.durationSelector))}}class z5 extends
Zo{constructor(i,e){super(i),this.durationSelector=e,this.hasValue=!1}_next(i){if(this.value=i,this.hasValue=!0,!this.throttled){let
e;try{const{durationSelector:s}=this;e=s(i)}catch(s){return
this.destination.error(s)}const n=Xo(e,new
Yo(this));!n||n.closed?this.clearThrottle():this.add(this.throttled=n)}}clearThrottle(){const{value:i,hasValue:e,throttled:n}=this;n&&(this.remove(n),this.throttled=void
0,n.unsubscribe()),e&&(this.value=void
0,this.hasValue=!1,this.destination.next(i))}notifyNext(){this.clearThrottle()}notifyComplete(){this.clearThrottle()}}function
hT(t){return!Nr(t)&&t-parseFloat(t)+1>=0}function
$5(t){const{index:i,period:e,subscriber:n}=t;if(n.next(i),!n.closed){if(-1===e)return
n.complete();t.index=i+1,this.schedule(t,e)}}function jf(t,i=zf){return function
G5(t){return
function(e){return e.lift(new U5(t))}}(()=>function j5(t=0,i,e){let n=-1;return
hT(i)?n=Number(i)<1?1:Number(i):Vr(i)&&(e=i),Vr(e)||(e=zf),new Je(s=>{const
r=hT(t)?t:+t-e.now();return
e.schedule($5,r,{index:0,period:n,subscriber:s})})}(t,i))}function $f(t){return
i=>i.lift(new W5(t))}class W5{constructor(i){this.notifier=i}call(i,e){const n=new
K5(i),s=Xo(this.notifier,new Yo(n));return
s&&!n.seenValue?(n.add(s),e.subscribe(n)):n}}class K5 extends
Zo{constructor(i){super(i),this.seenValue=!1}notifyNext(){this.seenValue=!0,this.complete()}notifyComplete(){}}function
Ju(...t){const i=t[t.length-1];return Vr(i)?(t.pop(),e=>el(t,e,i)):e=>el(t,e)}class
J5{call(i,e){return e.subscribe(new Y5(i))}}class Y5 extends
yt{constructor(i){super(i),this.hasPrev=!1}_next(i){let
e;this.hasPrev?e=[this.prev,i]:this.hasPrev=!0,this.prev=i,e&&this.destination.next(e)}}let
Wf;try{Wf="undefined"!=typeof
Intl&&Intl.v8BreakIterator}catch(t){Wf=!1}let Yu,Dr,mT=(()=>{class
t{constructor(e){this._platformId=e
,this.isBrowser=this._platformId?function E4(t){return
t===ky}(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),this.BLINK=this.isBrowser&&!(!window.chrome&&!Wf)&&"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)(K(qc))},t.\u0275prov=X({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();function
bl(){if("object"!=typeof document||!document)return 0;if(null==Yu)
{const
t=document.createElement("div"),i=t.style;t.dir="rtl",i.width="1px",i.overflow="auto",i.visibility="hidden",i.pointerEvents="none",i.position="absolute";const
e=document.createElement("div"),n=e.style;n.width="2px",n.height="1px",t.appendChild(e),document.body.appendChild(t),Yu=0,0===t.scrollLeft&&(t.scrollLeft=1,Yu=0===t.scrollLeft?1:2),t.remove()}return
Yu}const tV=new be("cdk-dir-doc",{providedIn:"root",factory:function
nV(){return
O_(Xt)}}),iV=/^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)/i;let
gT=(()=>{class t{constructor(e){if(this.value="ltr",this.change=new
H,e){const s=e.documentElement?e.documentElement.dir:null;this.value=function sV(t){const
i=(null==t?void
0:t.toLowerCase())||"";return"auto"===i&&"undefined"!=typeof
navigator&&(null==navigator?void
0:navigator.language)?iV.test(navigator.language)?"rtl":"ltr":"rtl"===i?"rtl":"ltr"}((e.body?e.body.dir:null)||s||"ltr")}}ngOnDestroy(){this.change.c
omplete()}}return t.\u0275fac=function(e){return
new(e||t)(K(tV,8))},t.\u0275prov=X({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),_T=(()=>{class
t{}return t.\u0275fac=function(e){return
new(e||t)},t.\u0275mod=he({type:t}),t.\u0275inj=ue({}),t})();class aV extends class
rV{}{constructor(i){super(),this._data=i}connect(){return
is(this._data)?this._data:oe(this._data)}disconnect(){}}class
lV{constructor(){this.viewCacheSize=20,this._viewCache=[]}applyChanges(i,e,n,s,r){i.forEachOperation((o,u,h)=>{let
b,y;null==o.previousIndex?(b=this._insertView(()=>n(o,u,h),h,e,s(o)),y=b?1:0):null==h?(this._detachAndCacheView(u,e),y=3):(b=this._moveView(u,h,e,s(o)),y=2),r&&r({context:null==b?void
0:b.context,operation:y,record:o})})}detach(){for(const i of
this._viewCache)i.destroy();this._viewCache=[]}_insertView(i,e,n,s){const
r=this._insertViewFromCache(e,n);if(r)return void(r.context.$implicit=s);const
o=i();return n.createEmbeddedView(o.templateRef,o.context,o.index)}_detachAndCacheVie
w(i,e){const n=e.detach(i);this._maybeCacheView(n,e)}_moveView(i,e,n,s){const
r=n.get(i);return
n.move(r,e),r.context.$implicit=s,r}_maybeCacheView(i,e){if(this._viewCache.length<this.viewCacheSize)this._viewCache.push(i);else{const
n=e.indexOf(i);-1===n?i.destroy():e.remove(n)}}_insertViewFromCache(i,e){const
n=this._viewCache.pop();return n&&e.insert(n,i),n||null}}const bT=new
be("_ViewRepeater"),cV=["contentWrapper"],uV=["*"],vT=new
be("VIRTUAL_SCROLL_STRATEGY");class
dV{constructor(i,e,n){this._scrolledIndexChange=new
ct,this.scrolledIndexChange=this._scrolledIndexChange.pipe(function B5(t,i){return
e=>e.lift(new
H5(t,i))}()),this._viewport=null,this._itemSize=i,this._minBufferPx=e,this._maxBufferPx=n}attach(i){this._viewport=i,this._updateTotalContentSize(),this._updateRenderedRange()}detach(){this._scrolledIndexChange.complete(),this._viewport=null}updateItemAndBufferSize(i,e,n){this._itemSize=i,this._minBufferPx=e,this._maxBufferPx=n,this._updateTotalContentSize(),this._updat
eRenderedRange()}onContentScrolled(){this._updateRenderedRange()}onDataLengthChanged(){this._updateTotalContentSize(),this._updateRenderedRange()}onContentRendered(){}onRenderedOffsetChanged(){}scrollToIndex(i,e){this._viewport&&this._viewport.scrollToOffset(i*this._itemSize,e)}_updateTotalContentSize(){!this._viewport||this._viewport.setTotalContentSize(this._viewport.getDataLength()*this._itemSize)}_updateRenderedRange(){if(!this._viewport)return;const
i=this._viewport.getRenderedRange(),e={start:i.start,end:i.end},n=this._viewport.getViewportSize(),s=this._viewport.getDataLength();let
r=this._viewport.measureScrollOffset(),o=this._itemSize>0?r/this._itemSize:0;if(e.end>s){const
h=Math.ceil(n/this._itemSize),b=Math.max(0,Math.min(o,s-h));o!=b&&(o=b,r=b*this._itemSize,e.start=Math.floor(o)),e.end=Math.max(0,Math.min(s,e.start+h))}const
u=r-e.start*this._itemSize;if(u<this._minBufferPx&&0!=e.start){const
h=Math.ceil((this._maxBufferPx-u)/this._itemSize);e.start=Math.max(0,e.start-h)
,e.end=Math.min(s,Math.ceil(o+(n+this._minBufferPx)/this._itemSize))}else{const
h=e.end*this._itemSize-(r+n);if(h<this._minBufferPx&&e.end!=s){const
b=Math.ceil((this._maxBufferPx-h)/this._itemSize);b>0&&(e.end=Math.min(s,e.end+b),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
pV(t){return t._scrollStrategy}let Qf=(()=>{class
t{constructor(){this._itemSize=20,this._minBufferPx=100,this._maxBufferPx=200,this._scrollStrategy=new
dV(this.itemSize,this.minBufferPx,this.maxBufferPx)}get itemSize(){return
this._itemSize}set itemSize(e){this._itemSize=Ku(e)}get minBufferPx(){return
this._minBufferPx}set minBufferPx(e){this._minBufferPx=Ku(e)}get maxBufferPx(){return
this._maxBufferPx}set
maxBufferPx(e){this._maxBufferPx=Ku(e)}ngOnChanges(){this._scrollStrategy.updateItemAndBufferSize(this.itemSize,this.minBufferPx,t
his.maxBufferPx)}}return t.\u0275fac=function(e){return
new(e||t)},t.\u0275dir=le({type:t,selectors:[["cdk-virtual-scroll-viewport","itemSize",""]],inputs:{itemSize:"itemSize",minBufferPx:"minBufferPx",maxBufferPx:"maxBufferPx"},features:[Pe([{provide:vT,useFactory:pV,deps:[je(()=>t)]}]),fn]}),t})(),CT=(()=>{class
t{constructor(e,n,s){this._ngZone=e,this._platform=n,this._scrolled=new
ct,this._globalSubscription=null,this._scrolledCount=0,this.scrollContainers=new
Map,this._document=s}register(e){this.scrollContainers.has(e)||this.scrollContainers.set(e,e.elementScrolled().subscribe(()=>this._scrolled.next(e)))}deregister(e){const
n=this.scrollContainers.get(e);n&&(n.unsubscribe(),this.scrollContainers.delete(e))}scrolled(e=20){return
this._platform.isBrowser?new
Je(n=>{this._globalSubscription||this._addGlobalListener();const
s=e>0?this._scrolled.pipe(jf(e)).subscribe(n):this._scrolled.subscribe(n);return
this._scrolledCount++,()=>{s.unsubscribe(),this._scrolledCount--,this._scroll
edCount||this._removeGlobalListener()}}):oe()}ngOnDestroy(){this._removeGlobalListener(),this.scrollContainers.forEach((e,n)=>this.deregister(n)),this._scrolled.complete()}ancestorScrolled(e,n){const
s=this.getAncestorScrollContainers(e);return
this.scrolled(n).pipe(Us(r=>!r||s.indexOf(r)>-1))}getAncestorScrollContainers(e){const
n=[];return
this.scrollContainers.forEach((s,r)=>{this._scrollableContainsElement(r,e)&&n.push(r)}),n}_getWindow(){return
this._document.defaultView||window}_scrollableContainsElement(e,n){let s=function
M5(t){return t instanceof
De?t.nativeElement:t}(n),r=e.getElementRef().nativeElement;do{if(s==r)return!0}while(s=s.parentElement);return!1}_addGlobalListener(){this._globalSubscription=this._ngZone.runOutsideAngular(()=>Uf(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)(K(nt),K(mT),K(Xt,8))},t.\u0275prov=X({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),yT=(()=>{class
t{constructor(e,n,s,r){this.elementRef=e,this.scrollDispatcher=n,this.ngZone=s,this.dir=r,this._destroyed=new
ct,this._elementScrolled=new
Je(o=>this.ngZone.runOutsideAngular(()=>Uf(this.elementRef.nativeElement,"scroll").pipe($f(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
n=this.elementRef.nativeElement,s=this.dir&&"rtl"==this.dir.value;null==e.left&&(e.left=s?e.end:e.start),null==e.right&&(e.right=s?e.start:e.end),null!=e.bottom&&(e.top=n.scrollHeight-n.clientHeight-e.bottom),s&&0!=bl()?(null!=e.left&&(e.right=n.scrollWidth-n.clientWidth-e.left),2==bl()?e.left=e.right:1==bl()&&(e.left=e.right?-e.right:e.right)):null!=e.right&&(e.
left=n.scrollWidth-n.clientWidth-e.right),this._applyScrollToOptions(e)}_applyScrollToOptions(e){const
n=this.elementRef.nativeElement;!function X5(){if(null==Dr){if("object"!=typeof
document||!document||"function"!=typeof Element||!Element)return
Dr=!1,Dr;if("scrollBehavior"in document.documentElement.style)Dr=!0;else{const
t=Element.prototype.scrollTo;Dr=!!t&&!/\{\s*\[native
code\]\s*\}/.test(t.toString())}}return
Dr}()?(null!=e.top&&(n.scrollTop=e.top),null!=e.left&&(n.scrollLeft=e.left)):n.scrollTo(e)}measureScrollOffset(e){const
n="left",s="right",r=this.elementRef.nativeElement;if("top"==e)return
r.scrollTop;if("bottom"==e)return
r.scrollHeight-r.clientHeight-r.scrollTop;const
o=this.dir&&"rtl"==this.dir.value;return"start"==e?e=o?s:n:"end"==e&&(e=o?n:s),o&&2==bl()?e==n?r.scrollWidth-r.clientWidth-r.scrollLeft:r.scrollLeft:o&&1==bl()?e==n?r.scrollLeft+r.scrollWidth-r.clientWidth:-r.scrollLeft:e==n?r.scrollLeft:r.scrollWidth-r.clientWidth-r.scrollLeft}}return
t.\u0275fac=functi
on(e){return
new(e||t)(D(De),D(CT),D(nt),D(gT,8))},t.\u0275dir=le({type:t,selectors:[["","cdk-scrollable",""],["","cdkScrollable",""]]}),t})(),fV=(()=>{class
t{constructor(e,n,s){this._platform=e,this._change=new
ct,this._changeListener=r=>{this._change.next(r)},this._document=s,n.runOutsideAngular(()=>{if(e.isBrowser){const
r=this._getWindow();r.addEventListener("resize",this._changeListener),r.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:n,height
:s}=this.getViewportSize();return{top:e.top,left:e.left,bottom:e.top+s,right:e.left+n,height:s,width:n}}getViewportScrollPosition(){if(!this._platform.isBrowser)return{top:0,left:0};const
e=this._document,n=this._getWindow(),s=e.documentElement,r=s.getBoundingClientRect();return{top:-r.top||e.body.scrollTop||n.scrollY||s.scrollTop||0,left:-r.left||e.body.scrollLeft||n.scrollX||s.scrollLeft||0}}change(e=20){return
e>0?this._change.pipe(jf(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)(K(mT),K(nt),K(Xt,8))},t.\u0275prov=X({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();const
_V="undefined"!=typeof requestAnimationFrame?O5:V5;let Po=(()=>{class t
extends
yT{constructor(e,n,s,r,o,u,h){super(e,u,s,o),this.elementRef=e,this._changeDetectorRef=n,this._scrollSt
rategy=r,this._detachedSubject=new ct,this._renderedRangeSubject=new
ct,this._orientation="vertical",this._appendOnly=!1,this.scrolledIndexChange=new
Je(b=>this._scrollStrategy.scrolledIndexChange.subscribe(y=>Promise.resolve().then(()=>this.ngZone.run(()=>b.next(y))))),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=Et.EMPTY,this._viewportChanges=h.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
x5(t){return null!=t&&"false"!=`${t}`}(e)}ngOnInit()
{super.ngOnInit(),this.ngZone.runOutsideAngular(()=>Promise.resolve().then(()=>{this._measureViewportSize(),this._scrollStrategy.attach(this),this.elementScrolled().pipe(Ju(null),jf(0,_V)).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($f(this._detachedSubject)).subscribe(n=>{const
s=n.length;s!==this._dataLength&&(this._dataLength=s,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._c
alculateSpacerSize(),this._markChangeDetectionNeeded())}setRenderedRange(e){(function
gV(t,i){return
t.start==i.start&&t.end==i.end})(this._renderedRange,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,n="to-start"){const
r="horizontal"==this.orientation,o=r?"X":"Y";let
h=`translate${o}(${Number((r&&this.dir&&"rtl"==this.dir.value?-1:1)*e)}px)`;this._renderedContentOffset=e=this.appendOnly&&"to-start"===n?0:e,"to-end"===n&&(h+=`
translate${o}(-100%)`,this._renderedContentOffsetNeedsRewrite=!0),this._renderedContentTransform!=h&&(this._renderedContentTransform=h,this._markChangeDetectionNeeded(()=>{this._renderedContentOffsetNeedsRewrite?(this._renderedContentOffset-=this.measureRen
deredContentSize(),this._renderedContentOffsetNeedsRewrite=!1,this.setRenderedContentOffset(this._renderedContentOffset)):this._scrollStrategy.onRenderedOffsetChanged()}))}scrollToOffset(e,n="auto"){const
s={behavior:n};"horizontal"===this.orientation?s.start=e:s.top=e,this.scrollTo(s)}scrollToIndex(e,n="auto"){this._scrollStrategy.scrollToIndex(e,n)}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 n of
e)n()}_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)(D(De),D(rt),D(nt),D(vT,8),D(gT,8),D(CT),D(fV))},t.\u0275cmp=z({type:t,selectors:[["cdk-virtual-scroll-viewport"]],viewQuery:function(e,n){if(1&e&&W(cV,7),2&e){let
s;V(s=B())&&(n._contentWrapper=s.first)}},hostAttrs:[1,"cdk-virtual-scroll-viewport"],hostVars:4,hostBindings:function(e,n){2&e&&si("cdk-vi
rtual-scroll-orientation-horizontal","horizontal"===n.orientation)("cdk-virtual-scroll-orientation-vertical","horizontal"!==n.orientation)},inputs:{orientation:"orientation",appendOnly:"appendOnly"},outputs:{scrolledIndexChange:"scrolledIndexChange"},features:[Pe([{provide:yT,useExisting:t}]),ut],ngContentSelectors:uV,decls:4,vars:4,consts:[[1,"cdk-virtual-scroll-content-wrapper"],["contentWrapper",""],[1,"cdk-virtual-scroll-spacer"]],template:function(e,n){1&e&&(Sn(),l(0,"div",0,1),St(2),c(),k(3,"div",2)),2&e&&(a(3),_i("width",n._totalContentWidth)("height",n._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-wrappe
r{min-height:100%}.cdk-virtual-scroll-orientation-horizontal
.cdk-virtual-scroll-content-wrapper>dl:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-horizontal
.cdk-virtual-scroll-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-virtua
l-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-scroll-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
wT(t,i,e){if(!e.getBoundingClientRect)return 0;const
s=e.getBoundingClientRect();return"horizontal"===t?"start"===i?s.left:s.right:"start"===i?s.top:s.bottom}let
Jf=(()=>{class
t{constructor(e,n,s,r,o,u){this._viewContainerRef=e,this._template=n,this._differs=s,this._viewRepeater=r,this._viewport=o,this.viewChange=new
ct,this._dataSourceChanges=new
ct,this.dataStream=this._dataSourceChanges.pipe(Ju(null),function Q5(){return
t=>t.lift(new
J5)}(),qi(([h,b])=>this._changeDataSource(h,b)),Um(1)),this._differ=null,this._needsUpdate=!1,this._destroyed=new
ct,this.dataStream.subscribe(h=>{this._dat
a=h,this._onRenderedDataChange()}),this._viewport.renderedRangeStream.pipe($f(this._destroyed)).subscribe(h=>{this._renderedRange=h,this.viewChange.observers.length&&u.run(()=>this.viewChange.next(this._renderedRange)),this._onRenderedDataChange()}),this._viewport.attach(this)}get
cdkVirtualForOf(){return this._cdkVirtualForOf}set
cdkVirtualForOf(e){this._cdkVirtualForOf=e,function oV(t){return
t&&"function"==typeof
t.connect}(e)?this._dataSourceChanges.next(e):this._dataSourceChanges.next(new
aV(is(e)?e:Array.from(e||[])))}get cdkVirtualForTrackBy(){return
this._cdkVirtualForTrackBy}set
cdkVirtualForTrackBy(e){this._needsUpdate=!0,this._cdkVirtualForTrackBy=e?(n,s)=>e(n+(this._renderedRange?this._renderedRange.start:0),s):void
0}set cdkVirtualForTemplate(e){e&&(this._needsUpdate=!0,this._template=e)}get
cdkVirtualForTemplateCacheSize(){return this._viewRepeater.viewCacheSize}set
cdkVirtualForTemplateCacheSize(e){this._viewRepeater.viewCacheSize=Ku(e)}measureRangeSize(e,n){if(e.star
t>=e.end)return 0;const s=e.start-this._renderedRange.start,r=e.end-e.start;let
o,u;for(let h=0;h<r;h++){const
b=this._viewContainerRef.get(h+s);if(b&&b.rootNodes.length){o=u=b.rootNodes[0];break}}for(let
h=r-1;h>-1;h--){const
b=this._viewContainerRef.get(h+s);if(b&&b.rootNodes.length){u=b.rootNodes[b.rootNodes.length-1];break}}return
o&&u?wT(n,"end",u)-wT(n,"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.complete(),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,n)=>this.cdkVirtualForTrackBy?th
is.cdkVirtualForTrackBy(e,n):n)),this._needsUpdate=!0)}_changeDataSource(e,n){return
e&&e.disconnect(this),this._needsUpdate=!0,n?n.connect(this):oe()}_updateContext(){const
e=this._data.length;let n=this._viewContainerRef.length;for(;n--;){const
s=this._viewContainerRef.get(n);s.context.index=this._renderedRange.start+n,s.context.count=e,this._updateComputedContextProperties(s.context),s.detectChanges()}}_applyChanges(e){this._viewRepeater.applyChanges(e,this._viewContainerRef,(r,o,u)=>this._getEmbeddedViewArgs(r,u),r=>r.item),e.forEachIdentityChange(r=>{this._viewContainerRef.get(r.currentIndex).context.$implicit=r.item});const
n=this._data.length;let s=this._viewContainerRef.length;for(;s--;){const
r=this._viewContainerRef.get(s);r.context.index=this._renderedRange.start+s,r.context.count=n,this._updateComputedContextProperties(r.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,n)
{return{templateRef:this._template,context:{$implicit:e.item,cdkVirtualForOf:this._cdkVirtualForOf,index:-1,count:-1,first:!1,last:!1,odd:!1,even:!1},index:n}}}return
t.\u0275fac=function(e){return
new(e||t)(D(vi),D(bi),D($a),D(bT),D(Po,4),D(nt))},t.\u0275dir=le({type:t,selectors:[["","cdkVirtualFor","","cdkVirtualForOf",""]],inputs:{cdkVirtualForOf:"cdkVirtualForOf",cdkVirtualForTrackBy:"cdkVirtualForTrackBy",cdkVirtualForTemplate:"cdkVirtualForTemplate",cdkVirtualForTemplateCacheSize:"cdkVirtualForTemplateCacheSize"},features:[Pe([{provide:bT,useClass:lV}])]}),t})(),TT=(()=>{class
t{}return t.\u0275fac=function(e){return
new(e||t)},t.\u0275mod=he({type:t}),t.\u0275inj=ue({}),t})(),Fo=(()=>{class t{}return
t.\u0275fac=function(e){return
new(e||t)},t.\u0275mod=he({type:t}),t.\u0275inj=ue({imports:[[_T,TT],_T,TT]}),t})(),Kt=(()=>{class
t{constructor(e,n,s){this.el=e,this.zone=n,this.config=s,this.escape=!0,this._tooltipOptions={tooltipPosition:"right",tooltipEvent:"hover",appendTo:"b
ody",tooltipZIndex:"auto",escape:!0,positionTop:0,positionLeft:0}}get
disabled(){return this._disabled}set
disabled(e){this._disabled=e,this.deactivate()}ngAfterViewInit(){this.zone.runOutsideAngular(()=>{if("hover"===this.getOption("tooltipEvent"))this.mouseEnterListener=this.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);else
if("focus"===this.getOption("tooltipEvent")){this.focusListener=this.onFocus.bind(this),this.blurListener=this.onBlur.bind(this);let
e=this.getTarget(this.el.nativeElement);e.addEventListener("focus",this.focusListener),e.addEventListener("blur",this.blurListener)}})}ngOnChanges(e){e.tooltipPosition&&this.setOption({tooltipPosition:e.tooltipPosition.currentValue}),e.tool
tipEvent&&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.align()):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.createElement("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")?R.appendChild(this.container,this.el.nativeElement):R.appendChild(this.container,this.getOption("appendTo")),this.container.style.display="inline-block"}show(){!this.getOption("tooltipLabel")||this.getOption("disabled")||(this.create(),this.align(),R.fadeIn(this.container,250),"auto"===this.getOption("tooltipZIndex")?dt.set("tooltip",this.container,this.config.zIndex.tool
tip):this.container.style.zIndex=this.getOption("tooltipZIndex"),this.bindDocumentResizeListener(),this.bindScrollListener())}hide(){"auto"===this.getOption("tooltipZIndex")&&dt.clear(this.container),this.remove()}updateText(){this.getOption("escape")?(this.tooltipText.innerHTML="",this.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.isOutOfBound
s()&&(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+R.getWindowScrollLeft(),top:e.top+R.getWindowScrollTop()}}return{left:0,top:0}}alignRight(){this.preAlign("right");let
e=this.getHostOffset(),n=e.left+R.getOuterWidth(this.el.nativeElement),s=e.top+(R.getOuterHeight(this.el.nativeElement)-R.getOuterHeight(this.container))/2;this.container.style.left=n+this.getOption("positionLeft")+"px",this.container.style.top=s+this.getOption("positionTop")+"px"}alignLeft(){this.preAlign("left");let
e=this.getHostOffset(),n=e.left-R.getOuterWidth(this.container),s=e.top+(R.getOuterHeight(this.el.nativeElement)-R.getOuterHeight(this.container))/2;this.container.style.left=n+this.getOption("positionLeft")+"px",this.container.style.top=s+this.getOption("positionTop")+"px"}alignTop(){
this.preAlign("top");let
e=this.getHostOffset(),n=e.left+(R.getOuterWidth(this.el.nativeElement)-R.getOuterWidth(this.container))/2,s=e.top-R.getOuterHeight(this.container);this.container.style.left=n+this.getOption("positionLeft")+"px",this.container.style.top=s+this.getOption("positionTop")+"px"}alignBottom(){this.preAlign("bottom");let
e=this.getHostOffset(),n=e.left+(R.getOuterWidth(this.el.nativeElement)-R.getOuterWidth(this.container))/2,s=e.top+R.getOuterHeight(this.el.nativeElement);this.container.style.left=n+this.getOption("positionLeft")+"px",this.container.style.top=s+this.getOption("positionTop")+"px"}setOption(e){this._tooltipOptions=Object.assign(Object.assign({},this._tooltipOptions),e)}getOption(e){return
this._tooltipOptions[e]}getTarget(e){return
R.hasClass(e,"p-inputwrapper")?R.findSingle(e,"input"):e}preAlign(e){this.container.style.left="-999px",this.container.style.top="-999px";let
n="p-tooltip p-component p-tooltip-"+e;this.container.className=this.getOption(
"tooltipStyleClass")?n+"
"+this.getOption("tooltipStyleClass"):n}isOutOfBounds(){let
e=this.container.getBoundingClientRect(),n=e.top,s=e.left,r=R.getOuterWidth(this.container),o=R.getOuterHeight(this.container),u=R.getViewport();return
s+r>u.width||s<0||n<0||n+o>u.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
Qs(this.el.nativeElement,()=>{this.container&&this.hide()})),this.scrollHandler.bindScrollListener()}unbindScrollListener(){this.scrollHandler&&this.scrollHandler.unbindScrollListener()}unbindEvents(){if("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);else
if("focus"===this.getOption("tooltipEvent")){let
e=this.getTarget(this.el.nativeElement);e.removeEventListener("focus",this.focusListener),e.removeEventListener("blur",this.blurListener)}this.unbindDocumentResizeListener()}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):R.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.clea
rShowTimeout(),this.clearHideTimeout()}ngOnDestroy(){this.unbindEvents(),this.container&&dt.clear(this.container),this.remove(),this.scrollHandler&&(this.scrollHandler.destroy(),this.scrollHandler=null)}}return
t.\u0275fac=function(e){return
new(e||t)(D(De),D(nt),D(zn))},t.\u0275dir=le({type:t,selectors:[["","pTooltip",""]],hostAttrs:[1,"p-element"],inputs:{tooltipPosition:"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:[fn]}),t})(),jn=(()=>{class
t{}return t.\u0275fac=function(e){return
new(e||t)},t.\u0275mod=he({type:t}),t.\u0275inj=ue({imports:[[Fe]]}),t})();function
bV(t,i){if(1&t&&(l(0,"span"),g(1),c()),2&t){const
e=d();a(1),S(e.label|
|"empty")}}function vV(t,i){1&t&&Y(0)}const
ST=function(t){return{height:t}},CV=function(t,i){return{"p-dropdown-item":!0,"p-highlight":t,"p-disabled":i}},Yf=function(t){return{$implicit:t}},yV=["container"],wV=["filter"],TV=["in"],SV=["editableInput"];function
xV(t,i){if(1&t&&(de(0),g(1),pe()),2&t){const
e=d(2);a(1),S(e.label||"empty")}}function DV(t,i){1&t&&Y(0)}const
MV=function(t){return{"p-dropdown-label
p-inputtext":!0,"p-dropdown-label-empty":t}};function
kV(t,i){if(1&t&&(l(0,"span",12),_(1,xV,2,1,"ng-container",13),_(2,DV,1,0,"ng-container",14),c()),2&t){const
e=d();p("ngClass",U(9,MV,null==e.label||0===e.label.length))("pTooltip",e.tooltip)("tooltipPosition",e.tooltipPosition)("positionStyle",e.tooltipPositionStyle)("tooltipStyleClass",e.tooltipStyleClass),ie("id",e.labelId),a(1),p("ngIf",!e.selectedItemTemplate),a(1),p("ngTemplateOutlet",e.selectedItemTemplate)("ngTemplateOutletContext",U(11,Yf,e.selectedOption))}}const
IV=function(t){return{"p-dropdown-label p-inputtext p
-placeholder":!0,"p-dropdown-label-empty":t}};function
EV(t,i){if(1&t&&(l(0,"span",15),g(1),c()),2&t){const
e=d();p("ngClass",U(2,IV,null==e.placeholder||0===e.placeholder.length)),a(1),S(e.placeholder||"empty")}}function
RV(t,i){if(1&t){const
e=I();l(0,"input",16,17),C("click",function(){return
v(e),d().onEditableInputClick()})("input",function(s){return
v(e),d().onEditableInputChange(s)})("focus",function(s){return
v(e),d().onEditableInputFocus(s)})("blur",function(s){return
v(e),d().onInputBlur(s)}),c()}if(2&t){const
e=d();p("disabled",e.disabled),ie("maxlength",e.maxlength)("placeholder",e.placeholder)("aria-expanded",e.overlayVisible)}}function
LV(t,i){if(1&t){const
e=I();l(0,"i",18),C("click",function(s){return
v(e),d().clear(s)}),c()}}function OV(t,i){1&t&&Y(0)}function
AV(t,i){if(1&t){const
e=I();l(0,"div",26)(1,"div",27),C("click",function(s){return
s.stopPropagation()}),l(2,"input",28,29),C("keydown.enter",function(s){return
s.preventDefault()})("keydown",function(s){retur
n v(e),d(2).onKeydown(s,!1)})("input",function(s){return
v(e),d(2).onFilterInputChange(s)}),c(),k(4,"span",30),c()()}if(2&t){const
e=d(2);a(2),p("value",e.filterValue||""),ie("placeholder",e.filterPlaceholder)("aria-label",e.ariaFilterLabel)("aria-activedescendant",e.overlayVisible?"p-highlighted-option":e.labelId)}}function
PV(t,i){if(1&t&&(l(0,"span"),g(1),c()),2&t){const
e=d().$implicit,n=d(3);a(1),S(n.getOptionGroupLabel(e)||"empty")}}function
FV(t,i){1&t&&Y(0)}function NV(t,i){1&t&&Y(0)}const
xT=function(t,i){return{$implicit:t,selectedOption:i}};function
VV(t,i){if(1&t&&(l(0,"li",32),_(1,PV,2,1,"span",13),_(2,FV,1,0,"ng-container",14),c(),_(3,NV,1,0,"ng-container",14)),2&t){const
e=i.$implicit;d(2);const
n=F(8),s=d();a(1),p("ngIf",!s.groupTemplate),a(1),p("ngTemplateOutlet",s.groupTemplate)("ngTemplateOutletContext",U(5,Yf,e)),a(1),p("ngTemplateOutlet",n)("ngTemplateOutletContext",Ge(7,xT,s.getOptionGroupChildren(e),s.selectedOption))}}function
BV(t,i){if(1&t&&(de(0),_(1,VV,4,
10,"ng-template",31),pe()),2&t){const
e=d(2);a(1),p("ngForOf",e.optionsToDisplay)}}function
HV(t,i){1&t&&Y(0)}function
qV(t,i){if(1&t&&(de(0),_(1,HV,1,0,"ng-container",14),pe()),2&t){d();const
e=F(8),n=d();a(1),p("ngTemplateOutlet",e)("ngTemplateOutletContext",Ge(2,xT,n.optionsToDisplay,n.selectedOption))}}function
GV(t,i){if(1&t){const
e=I();l(0,"p-dropdownItem",35),C("onClick",function(s){return
v(e),d(4).onItemClick(s)}),c()}if(2&t){const
e=i.$implicit,n=d(2).selectedOption,s=d(2);p("option",e)("selected",n==e)("label",s.getOptionLabel(e))("disabled",s.isOptionDisabled(e))("template",s.itemTemplate)}}function
UV(t,i){if(1&t&&(de(0),_(1,GV,1,5,"ng-template",31),pe()),2&t){const
e=d().$implicit;a(1),p("ngForOf",e)}}function zV(t,i){if(1&t){const
e=I();de(0),l(1,"p-dropdownItem",35),C("onClick",function(s){return
v(e),d(5).onItemClick(s)}),c(),pe()}if(2&t){const
e=i.$implicit,n=d(3).selectedOption,s=d(2);a(1),p("option",e)("selected",n==e)("label",s.getOptionLabel(e))("disabled",s.i
sOptionDisabled(e))("template",s.itemTemplate)}}function
jV(t,i){if(1&t){const
e=I();l(0,"cdk-virtual-scroll-viewport",37,38),C("scrolledIndexChange",function(){return
v(e),d(4).scrollToSelectedVirtualScrollElement()}),_(2,zV,2,5,"ng-container",39),c()}if(2&t){const
e=d(2).$implicit,n=d(2);p("ngStyle",U(3,ST,n.scrollHeight))("itemSize",n.itemSize),a(2),p("cdkVirtualForOf",e)}}function
$V(t,i){if(1&t&&_(0,jV,3,5,"cdk-virtual-scroll-viewport",36),2&t){const
e=d(3);p("ngIf",e.virtualScroll&&e.optionsToDisplay&&e.optionsToDisplay.length)}}function
WV(t,i){if(1&t&&(_(0,UV,2,1,"ng-container",33),_(1,$V,1,1,"ng-template",null,34,we)),2&t){const
e=F(2);p("ngIf",!d(2).virtualScroll)("ngIfElse",e)}}function
KV(t,i){if(1&t&&(de(0),g(1),pe()),2&t){const e=d(3);a(1),T("
",e.emptyFilterMessageLabel," ")}}function
QV(t,i){1&t&&Y(0,null,41)}function
JV(t,i){if(1&t&&(l(0,"li",40),_(1,KV,2,1,"ng-container",33),_(2,QV,2,0,"ng-container",20),c()),2&t){const
e=d(2);a(1),p("ngIf",!e.emptyFilterTemplate&&
!e.emptyTemplate)("ngIfElse",e.emptyFilter),a(1),p("ngTemplateOutlet",e.emptyFilterTemplate||e.emptyTemplate)}}function
YV(t,i){if(1&t&&(de(0),g(1),pe()),2&t){const e=d(3);a(1),T("
",e.emptyMessageLabel," ")}}function
ZV(t,i){1&t&&Y(0,null,42)}function
XV(t,i){if(1&t&&(l(0,"li",40),_(1,YV,2,1,"ng-container",33),_(2,ZV,2,0,"ng-container",20),c()),2&t){const
e=d(2);a(1),p("ngIf",!e.emptyTemplate)("ngIfElse",e.empty),a(1),p("ngTemplateOutlet",e.emptyTemplate)}}function
e6(t,i){1&t&&Y(0)}const
t6=function(t,i){return{showTransitionParams:t,hideTransitionParams:i}},n6=function(t){return{value:"visible",params:t}},i6=function(t){return{"p-dropdown-virtualscroll":t}};function
s6(t,i){if(1&t){const
e=I();l(0,"div",19),C("click",function(s){return
v(e),d().onOverlayClick(s)})("(a)overlayAnimation.start",function(s){return
v(e),d().onOverlayAnimationStart(s)})("(a)overlayAnimation.start",function(s){return
v(e),d().onOverlayAnimationEnd(s)}),_(1,OV,1,0,"ng-container",20),_(2,AV,5,4,"div",21),l(3,
"div",22)(4,"ul",23),_(5,BV,2,1,"ng-container",13),_(6,qV,2,5,"ng-container",13),_(7,WV,3,2,"ng-template",null,24,we),_(9,JV,3,3,"li",25),_(10,XV,3,3,"li",25),c()(),_(11,e6,1,0,"ng-container",20),c()}if(2&t){const
e=d();me(e.panelStyleClass),p("ngClass","p-dropdown-panel
p-component")("@overlayAnimation",U(19,n6,Ge(16,t6,e.showTransitionOptions,e.hideTransitionOptions)))("ngStyle",e.panelStyle),a(1),p("ngTemplateOutlet",e.headerTemplate),a(1),p("ngIf",e.filter),a(1),_i("max-height",e.virtualScroll?"auto":e.scrollHeight||"auto"),a(1),p("ngClass",U(21,i6,e.virtualScroll)),ie("id",e.listId),a(1),p("ngIf",e.group),a(1),p("ngIf",!e.group),a(3),p("ngIf",e.filterValue&&e.isEmpty()),a(1),p("ngIf",!e.filterValue&&e.isEmpty()),a(1),p("ngTemplateOutlet",e.footerTemplate)}}const
r6=function(t,i,e,n){return{"p-dropdown
p-component":!0,"p-disabled":t,"p-dropdown-open":i,"p-focus":e,"p-dropdown-clearable":n}},o6={provide:dn,useExisting:je(()=>Ot),multi:!0};let
a6=(()=>{class t{constructor(){this.o
nClick=new
H}onOptionClick(e){this.onClick.emit({originalEvent:e,option:this.option})}}return
t.\u0275fac=function(e){return
new(e||t)},t.\u0275cmp=z({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,n){1&e&&(l(0,"li",0),C("click",function(r){return
n.onOptionClick(r)}),_(1,bV,2,1,"span",1),_(2,vV,1,0,"ng-container",2),c()),2&e&&(p("ngStyle",U(8,ST,n.itemSize+"px"))("id",n.selected?"p-highlighted-option":"")("ngClass",Ge(10,CV,n.selected,n.disabled)),ie("aria-label",n.label)("aria-selected",n.selected),a(1),p("ngIf",!n.template),a(1),p("ngTemplateOutlet",n.template)("ngTemplateOutletContext",U(13,Yf,n.option)))},directives:[bt,lt,Le,Q,Rt]
,encapsulation:2}),t})(),Ot=(()=>{class
t{constructor(e,n,s,r,o,u,h){this.el=e,this.renderer=n,this.cd=s,this.zone=r,this.filterService=o,this.config=u,this.overlayService=h,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
H,this.onFilter=new H,this.onFocus=new H,this.onBlur=new H,this.onClick=new
H,this.onShow=new H,this.onHide=new H,this.onClear=new
H,this.onModelChange=()=>{},this.onModelTouched=()=>{},this.viewPortOffsetTop=0,this.id=pl()}get
disabled(){return this._disabled}set
disabled(e){e&&(this.focused=!1,this.overlayVisible&&this.hide()),t
his._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.optionsToDisplay=this._options,this.updateSelectedOption(this.value),this.selectedOption=this.findOption(this.value,this.optionsToDisplay),this.selectedOption||(this.value=null,this.onModelChange(this.value)),this.optionsChanged=!0,this._filterValue&&this._filterValue.length&&this.activateFilt
er()}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(Ft.EMPTY_MESSAGE)}get
emptyFilterMessageLabel(){return
this.emptyFilterMessage||this.config.getTranslation(Ft.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?Z.resolveFieldData(e,this.optionLabel):null!=e.label?e.label:e}getOptionValue(e){return
this.optionValue?Z.resolveFieldData(e,this.optionValue):this.optionLabel||void
0===e.value?e:e.value}isOptionDisabled
(e){return this.optionDisabled?Z.resolveFieldData(e,this.optionDisabled):void
0!==e.disabled&&e.disabled}getOptionGroupLabel(e){return
this.optionGroupLabel?Z.resolveFieldData(e,this.optionGroupLabel):null!=e.label?e.label:e}getOptionGroupChildren(e){return
this.optionGroupChildren?Z.resolveFieldData(e,this.optionGroupChildren):e.items}onItemClick(e){const
n=e.option;this.isOptionDisabled(n)||(this.selectItem(e.originalEvent,n),this.accessibleViewChild.nativeElement.focus()),setTimeout(()=>{this.hide()},150)}selectItem(e,n){this.selectedOption!=n&&(this.selectedOption=n,this.value=this.getOptionValue(n),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))}ngAfterViewChecked(){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
n=this.viewPort.getRenderedRange();this.updateVirtualScrollSelectedIndex(!1),(n.start>this.virtualScrollSelectedIndex||n.end<this.virtualScrollSelectedIndex)&&this.viewPort.scrollToIndex(this.virtualScrollSelectedIndex)}R.findSingle(this.overlay,"li.p-highlight")&&R.scrollInView(this.itemsWrapper,R.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}updateSelectedOption(e){this.selectedOption=this.findOption(e,this.optionsToDisplay),this.autoDisplayFirst&&!this.placeholder&&!this.selectedOption&&
this.optionsToDisplay&&this.optionsToDisplay.length&&!this.editable&&(this.selectedOption=this.group?this.optionsToDisplay[0].items[0]: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
R.hasClass(e.target,"p-dropdown-clear-icon")||e.target.isSameNode(this.accessibleViewChild.nativeElement)||this.editableInputViewChild&&e.target.isSameNode(this.editableInputViewChild.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.cd.markForCheck()}onOverlayAnimationStart(e){switch(e.toState){case"visible":if(this.overlay=e.element,this.itemsWrapper=R.findSingle(this.overlay,this.virtualScroll?".cdk-virtual-scroll-viewport":".p-dropdown-items-wrapper"),this.appendOverlay(),this.autoZIndex&&dt.set("overlay",this.overlay,this.baseZIndex+this.config.zIndex.overlay),this.alignOverlay(),this.bindDocumentClickListener(),this.bindDocumentResizeListener(),this.bindScrollListener(),this.options
&&this.options.length&&!this.virtualScroll){let
s=R.findSingle(this.itemsWrapper,".p-dropdown-item.p-highlight");s&&s.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&&dt.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.viewPortOffsetTop=0),this.virtualScrollSelectedIndex=this.findOptionIndex(this.getOptionValue(this.selectedOption),this.optionsToDisplay))}appen
dOverlay(){this.appendTo&&("body"===this.appendTo?document.body.appendChild(this.overlay):R.appendChild(this.overlay,this.appendTo),this.overlay.style.minWidth||(this.overlay.style.minWidth=R.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?R.absolutePosition(this.overlay,this.containerViewChild.nativeElement):R.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.preventModelTouched=!1}findPrevEnabledOption(e){let
n;if(this.optionsToDisplay&&this.optionsToDisplay.length){for(let
s=e-1;0<=s;s--){let r=this.op
tionsToDisplay[s];if(!this.isOptionDisabled(r)){n=r;break}}if(!n)for(let
s=this.optionsToDisplay.length-1;s>=e;s--){let
r=this.optionsToDisplay[s];if(!this.isOptionDisabled(r)){n=r;break}}}return
n}findNextEnabledOption(e){let
n;if(this.optionsToDisplay&&this.optionsToDisplay.length){for(let
s=e+1;s<this.optionsToDisplay.length;s++){let
r=this.optionsToDisplay[s];if(!this.isOptionDisabled(r)){n=r;break}}if(!n)for(let
s=0;s<e;s++){let
r=this.optionsToDisplay[s];if(!this.isOptionDisabled(r)){n=r;break}}}return
n}onKeydown(e,n){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
s=this.selectedOption?this.findOptionGroupIndex(this.getOptionValue(this.selectedOption),this.optionsToDisplay):-1;if(-1!==s){let
r=s.itemIndex+1;r<this.getOptionGroupChildren(this.optionsToDisplay[s.groupIndex]).length?(this.selectItem(e,this.getOptionGroupChildren(this.optionsToDisplay[s.gro
upIndex])[r]),this.selectedOptionUpdated=!0):this.optionsToDisplay[s.groupIndex+1]&&(this.selectItem(e,this.getOptionGroupChildren(this.optionsToDisplay[s.groupIndex+1])[0]),this.selectedOptionUpdated=!0)}else
this.optionsToDisplay&&this.optionsToDisplay.length>0&&this.selectItem(e,this.getOptionGroupChildren(this.optionsToDisplay[0])[0])}else{let
s=this.selectedOption?this.findOptionIndex(this.getOptionValue(this.selectedOption),this.optionsToDisplay):-1,r=this.findNextEnabledOption(s);r&&(this.selectItem(e,r),this.selectedOptionUpdated=!0)}e.preventDefault();break;case
38:if(this.group){let
s=this.selectedOption?this.findOptionGroupIndex(this.getOptionValue(this.selectedOption),this.optionsToDisplay):-1;if(-1!==s){let
r=s.itemIndex-1;if(r>=0)this.selectItem(e,this.getOptionGroupChildren(this.optionsToDisplay[s.groupIndex])[r]),this.selectedOptionUpdated=!0;else
if(r<0){let
o=this.optionsToDisplay[s.groupIndex-1];o&&(this.selectItem(e,this.getOptionGroupChildren(o)[this.getOptionGr
oupChildren(o).length-1]),this.selectedOptionUpdated=!0)}}}else{let
s=this.selectedOption?this.findOptionIndex(this.getOptionValue(this.selectedOption),this.optionsToDisplay):-1,r=this.findPrevEnabledOption(s);r&&(this.selectItem(e,r),this.selectedOptionUpdated=!0)}e.preventDefault();break;case
32:n&&(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:n&&!e.metaKey&&this.search(e)}}search(e){this.searchTimeout&&clearTimeout(this.searchTimeout);const
n=e.key;let
s;if(this.previousSearchChar=this.currentSearchChar,this.currentSearchChar=n,this.searchValue=this.previousSearchChar===this.currentSearchChar?this.currentSearchChar:this.searchValue?this.searchValue+n:n,this.group){let
r=this.selectedOption?this.findOptionGroupIndex(this.getOptionValue(this.selectedO
ption),this.optionsToDisplay):{groupIndex:0,itemIndex:0};s=this.searchOptionWithinGroup(r)}else{let
r=this.selectedOption?this.findOptionIndex(this.getOptionValue(this.selectedOption),this.optionsToDisplay):-1;s=this.searchOption(++r)}s&&!this.isOptionDisabled(s)&&(this.selectItem(e,s),this.selectedOptionUpdated=!0),this.searchTimeout=setTimeout(()=>{this.searchValue=null},250)}searchOption(e){let
n;return
this.searchValue&&(n=this.searchOptionInRange(e,this.optionsToDisplay.length),n||(n=this.searchOptionInRange(0,e))),n}searchOptionInRange(e,n){for(let
s=e;s<n;s++){let
r=this.optionsToDisplay[s];if(this.getOptionLabel(r).toLocaleLowerCase(this.filterLocale).startsWith(this.searchValue.toLocaleLowerCase(this.filterLocale))&&!this.isOptionDisabled(r))return
r}return null}searchOptionWithinGroup(e){if(this.searchValue){for(let
s=e.groupIndex;s<this.optionsToDisplay.length;s++)for(let
r=e.groupIndex===s?e.itemIndex+1:0;r<this.getOptionGroupChildren(this.optionsToDisplay[s]).length;r++
){let
o=this.getOptionGroupChildren(this.optionsToDisplay[s])[r];if(this.getOptionLabel(o).toLocaleLowerCase(this.filterLocale).startsWith(this.searchValue.toLocaleLowerCase(this.filterLocale))&&!this.isOptionDisabled(o))return
o}for(let s=0;s<=e.groupIndex;s++)for(let
r=0;r<(e.groupIndex===s?e.itemIndex:this.getOptionGroupChildren(this.optionsToDisplay[s]).length);r++){let
o=this.getOptionGroupChildren(this.optionsToDisplay[s])[r];if(this.getOptionLabel(o).toLocaleLowerCase(this.filterLocale).startsWith(this.searchValue.toLocaleLowerCase(this.filterLocale))&&!this.isOptionDisabled(o))return
o}}return null}findOptionIndex(e,n){let s=-1;if(n)for(let
r=0;r<n.length;r++)if(null==e&&null==this.getOptionValue(n[r])||Z.equals(e,this.getOptionValue(n[r]),this.dataKey)){s=r;break}return
s}findOptionGroupIndex(e,n){let s,r;if(n)for(let
o=0;o<n.length&&(s=o,r=this.findOptionIndex(e,this.getOptionGroupChildren(n[o])),-1===r);o++);return-1!==r?{groupIndex:s,itemIndex:r}:-1}findOption(e,n,s){if(
this.group&&!s){let r;if(n&&n.length)for(let o of
n)if(r=this.findOption(e,this.getOptionGroupChildren(o),!0),r)break;return r}{let
r=this.findOptionIndex(e,n);return-1!=r?n[r]:null}}onFilterInputChange(e){let
n=e.target.value;n&&n.length?(this._filterValue=n,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
n=[];for(let s of this.options){let
r=this.filterService.filter(this.getOptionGroupChildren(s),e,this.filterValue,this.filterMatchMode,this.filterLocale);r&&r.length&&n.push(Object.assign(Object.assign({},s),{[this.optionGroupChildren]:r}))}this.optionsToDisplay=n}else
this.optionsToDisplay=this.filterService.filter(this.options,e,this.filterValue,this.filterMatchMode,this.filterLocale);this.optionsChanged=!0}}applyFocus(){this.ed
itable?R.findSingle(this.el.nativeElement,".p-dropdown-label.p-inputtext").focus():R.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",n=>{!this.preventDocumentDefault&&this.isOutsideClicked(n)&&(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.documentResizeListener),this.documentResizeListener=null)}onWindowResize(){this.overlayVisible&&!R.isTouchDevice()&&this.hide()}bindScrollList
ener(){this.scrollHandler||(this.scrollHandler=new
Qs(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&&dt.clear(this.overlay),this.restoreOverlayAppend(),this.onOverlayHide()}}return
t.\u0275fac=function(e){return
new(e||t)(D(De),D(gn),D(rt),D(nt),D(hl),D(zn),D(Ks))},t.\u0275cmp=z({type:t,selectors:[["p-dropdown"]],contentQueries:function(e,n,s){if(1&e&&st(s,ne,4
),2&e){let
r;V(r=B())&&(n.templates=r)}},viewQuery:function(e,n){if(1&e&&(W(yV,5),W(wV,5),W(TV,5),W(Po,5),W(SV,5)),2&e){let
s;V(s=B())&&(n.containerViewChild=s.first),V(s=B())&&(n.filterViewChild=s.first),V(s=B())&&(n.accessibleViewChild=s.first),V(s=B())&&(n.viewPort=s.first),V(s=B())&&(n.editableInputViewChild=s.first)}},hostAttrs:[1,"p-element","p-inputwrapper"],hostVars:4,hostBindings:function(e,n){2&e&&si("p-inputwrapper-filled",n.filled)("p-inputwrapper-focus",n.focused||n.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:"inputId",selectId:"selectId",dataKey:"dataKey",filterBy:"filterBy",autofocus:"autofocus",resetFilterOnHide:"resetFilterOnHide",dropdown
Icon:"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",ariaLabel:"ariaLabel",ariaLabelledBy:"ariaLabelledBy",filterMatchMode:"filterMatchMode",maxlength:"maxlength",tooltip:"tooltip",tooltipPosition:"tooltipPosition",tooltipPositionStyle:"tooltipPositionStyle",tooltipStyleClass:"tooltipStyleClass",autofocusFilter:"autofocusFilter",disabled:"disabled",options:"options",filterValue:"filterValue"},outputs:{onChange:"onChange",onFilter:"onFilter",onFocus:"onFocus",onBlur:"onBlur",onClick:"onClick",onShow:
"onShow",onHide:"onHide",onClear:"onClear"},features:[Pe([o6])],decls:12,vars:25,consts:[[3,"ngClass","ngStyle","click"],["container",""],[1,"p-hidden-accessible"],["type","text","readonly","","aria-haspopup","listbox","aria-haspopup","listbox","role","combobox",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-label","dropdown
trigger","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"],["typ
e","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","scrolledIndexChange",4,"ngIf"],[3,"ngStyle","itemSize","scrolledIndexChange"],["viewport","
"],[4,"cdkVirtualFor","cdkVirtualForOf"],[1,"p-dropdown-empty-message"],["emptyFilter",""],["empty",""]],template:function(e,n){1&e&&(l(0,"div",0,1),C("click",function(r){return
n.onMouseclick(r)}),l(2,"div",2)(3,"input",3,4),C("focus",function(r){return
n.onInputFocus(r)})("blur",function(r){return
n.onInputBlur(r)})("keydown",function(r){return
n.onKeydown(r,!0)}),c()(),_(5,kV,3,13,"span",5),_(6,EV,2,4,"span",6),_(7,RV,2,4,"input",7),_(8,LV,1,0,"i",8),l(9,"div",9),k(10,"span",10),c(),_(11,s6,12,23,"div",11),c()),2&e&&(me(n.styleClass),p("ngClass",qn(20,r6,n.disabled,n.overlayVisible,n.focused,n.showClear&&!n.disabled))("ngStyle",n.style),a(3),p("disabled",n.disabled),ie("id",n.inputId)("placeholder",n.placeholder)("aria-label",n.ariaLabel)("aria-expanded",!1)("aria-labelledby",n.ariaLabelledBy)("tabindex",n.tabindex)("autofocus",n.autofocus)("aria-activedescendant",n.overlayVisible?n.labelId:null),a(2),p("ngIf",!n.editable&&null!=n.label),a(1),p("ngIf",!n.editable&&null==n.label),
a(1),p("ngIf",n.editable),a(1),p("ngIf",null!=n.value&&n.showClear&&!n.disabled),a(1),ie("aria-expanded",n.overlayVisible),a(1),p("ngClass",n.dropdownIcon),a(1),p("ngIf",n.overlayVisible))},directives:[a6,Po,Le,lt,Q,Kt,Rt,at,Qf,Jf],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:[wi("overlayAnimation",[Lt(":enter",[it({opacity:0,transform:"scaleY(0.8)"}),kt("{{showTransitionParams}}")]),Lt(":leave",[kt("{{hideTransitionParams}}",it({opacity:0}))])])]},changeDetection:0}),t})(),Zu=(()=>{class
t{}return t.\u0275fac=function(e){return
new(e||t)},t.\u0275mod=he({type:t}),t.\u0275inj=ue({imports:[[Fe,Nt,Fo,jn,pn],Nt,Fo]}),t})(),DT=(()=>{class
t{constructor(e,n,s){this.el=e,this.ngModel=n,this.cd=s}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.\u0275f
ac=function(e){return
new(e||t)(D(De),D(_e,8),D(rt))},t.\u0275dir=le({type:t,selectors:[["","pInputText",""]],hostAttrs:[1,"p-inputtext","p-component","p-element"],hostVars:2,hostBindings:function(e,n){1&e&&C("input",function(r){return
n.onInput(r)}),2&e&&si("p-filled",n.filled)}}),t})(),MT=(()=>{class
t{}return t.\u0275fac=function(e){return
new(e||t)},t.\u0275mod=he({type:t}),t.\u0275inj=ue({imports:[[Fe]]}),t})();const
l6=["input"];function c6(t,i){if(1&t){const
e=I();l(0,"i",6),C("click",function(){return
v(e),d().clear()}),c()}}const kT=function(){return{"p-inputnumber-button
p-inputnumber-button-up":!0}},IT=function(){return{"p-inputnumber-button
p-inputnumber-button-down":!0}};function u6(t,i){if(1&t){const
e=I();l(0,"span",7)(1,"button",8),C("mousedown",function(s){return
v(e),d().onUpButtonMouseDown(s)})("mouseup",function(){return
v(e),d().onUpButtonMouseUp()})("mouseleave",function(){return
v(e),d().onUpButtonMouseLeave()})("keydown",function(s){return
v(e),d().onUpButton
KeyDown(s)})("keyup",function(){return
v(e),d().onUpButtonKeyUp()}),c(),l(2,"button",8),C("mousedown",function(s){return
v(e),d().onDownButtonMouseDown(s)})("mouseup",function(){return
v(e),d().onDownButtonMouseUp()})("mouseleave",function(){return
v(e),d().onDownButtonMouseLeave()})("keydown",function(s){return
v(e),d().onDownButtonKeyDown(s)})("keyup",function(){return
v(e),d().onDownButtonKeyUp()}),c()()}if(2&t){const
e=d();a(1),me(e.incrementButtonClass),p("ngClass",A(10,kT))("icon",e.incrementButtonIcon)("disabled",e.disabled),a(1),me(e.decrementButtonClass),p("ngClass",A(11,IT))("icon",e.decrementButtonIcon)("disabled",e.disabled)}}function
d6(t,i){if(1&t){const
e=I();l(0,"button",8),C("mousedown",function(s){return
v(e),d().onUpButtonMouseDown(s)})("mouseup",function(){return
v(e),d().onUpButtonMouseUp()})("mouseleave",function(){return
v(e),d().onUpButtonMouseLeave()})("keydown",function(s){return
v(e),d().onUpButtonKeyDown(s)})("keyup",function(){return v(e),d().onUpButtonK
eyUp()}),c()}if(2&t){const
e=d();me(e.incrementButtonClass),p("ngClass",A(5,kT))("icon",e.incrementButtonIcon)("disabled",e.disabled)}}function
p6(t,i){if(1&t){const
e=I();l(0,"button",8),C("mousedown",function(s){return
v(e),d().onDownButtonMouseDown(s)})("mouseup",function(){return
v(e),d().onDownButtonMouseUp()})("mouseleave",function(){return
v(e),d().onDownButtonMouseLeave()})("keydown",function(s){return
v(e),d().onDownButtonKeyDown(s)})("keyup",function(){return
v(e),d().onDownButtonKeyUp()}),c()}if(2&t){const
e=d();me(e.decrementButtonClass),p("ngClass",A(5,IT))("icon",e.decrementButtonIcon)("disabled",e.disabled)}}const
h6=function(t,i,e){return{"p-inputnumber
p-component":!0,"p-inputnumber-buttons-stacked":t,"p-inputnumber-buttons-horizontal":i,"p-inputnumber-buttons-vertical":e}},m6={provide:dn,useExisting:je(()=>pt),multi:!0};let
pt=(()=>{class
t{constructor(e,n){this.el=e,this.cd=n,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.showClear=!1,this.onInput=new
H,this.onFocus=new H,this.onBlur=new H,this.onKeyDown=new H,this.onClear=new
H,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","minFractionDigits","maxFractionDigits","prefix","suffix"].some(s=>!!e[s])&&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}}constr
uctParser(){this.numberFormat=new Intl.NumberFormat(this.locale,this.getOptions());const
e=[...new
Intl.NumberFormat(this.locale,{useGrouping:!1}).format(9876543210)].reverse(),n=new
Map(e.map((s,r)=>[s,r]));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=s=>n.get(s)}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 th
is.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 s=new
Intl.NumberFormat(this.locale,this.getOptions()).format(e);return
this.prefix&&(s=this.prefix+s),this.suffix&&(s+=this.suffix),s}return
e.toString()}return""}parseValue(e){let
n=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(n){if("-"===n)return
n;let s=+n;return isNaN(s)?null:s}return null}repeat(e,n,s){if(this.readonly)return;let
r=n||500;this.clearTimer(),this.timer=setTimeout(()=>{this.repeat(e,40,s)},r),this.spin(e,s)}spin(e,n){let
s=this.step*n,r=this.parseValue(this.i
nput.nativeElement.value)||0,o=this.validateValue(r+s);this.maxlength&&this.maxlength<this.formatValue(o).length||(this.updateInput(o,null,"spin",null),this.updateModel(e,o),this.handleOnInput(e,r,o))}clear(){this.value=null,this.onModelChange(this.value),this.onClear.emit()}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()}onDownButtonMouseUp(){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
n=e.target.selectionStart,s=e.target.selectionEnd,r=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(r.charAt(n-1))||e.preventDefault();break;case
39:this.isNumeralChar(r.charAt(n))||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(),n===s){const
u=r.charAt(n-1),{decimalCharIndex:h,decimalCharIndexWithoutPrefix:b}=this.getDecimalCharIndexes(r);if(this.isNumeralChar(u)){const
y=this.getDecimalLength(r);if(this._group.test(u))this._group.lastIndex=0,o=r.slice(0,n-2)+r.slice(n-1);else
if(this._decimal.test(u))this._decimal.la
stIndex=0,y?this.input.nativeElement.setSelectionRange(n-1,n-1):o=r.slice(0,n-1)+r.slice(n);else
if(h>0&&n>h){const
w=this.isDecimalMode()&&(this.minFractionDigits||0)<y?"":"0";o=r.slice(0,n-1)+w+r.slice(n)}else
1===b?(o=r.slice(0,n-1)+"0"+r.slice(n),o=this.parseValue(o)>0?o:""):o=r.slice(0,n-1)+r.slice(n)}this.updateValue(e,o,null,"delete-single")}else
o=this.deleteRange(r,n,s),this.updateValue(e,o,null,"delete-range");break;case
46:if(e.preventDefault(),n===s){const
u=r.charAt(n),{decimalCharIndex:h,decimalCharIndexWithoutPrefix:b}=this.getDecimalCharIndexes(r);if(this.isNumeralChar(u)){const
y=this.getDecimalLength(r);if(this._group.test(u))this._group.lastIndex=0,o=r.slice(0,n)+r.slice(n+2);else
if(this._decimal.test(u))this._decimal.lastIndex=0,y?this.input.nativeElement.setSelectionRange(n+1,n+1):o=r.slice(0,n)+r.slice(n+1);else
if(h>0&&n>h){const
w=this.isDecimalMode()&&(this.minFractionDigits||0)<y?"":"0";o=r.slice(0,n)+w+r.slice(n+1)}else
1===b?(o=r.slice(0,n)+"0"+r.slice(n
+1),o=this.parseValue(o)>0?o:""):o=r.slice(0,n)+r.slice(n+1)}this.updateValue(e,o,null,"delete-back-single")}else
o=this.deleteRange(r,n,s),this.updateValue(e,o,null,"delete-range")}this.onKeyDown.emit(e)}onInputKeyPress(e){if(this.readonly)return;e.preventDefault();let
n=e.which||e.keyCode,s=String.fromCharCode(n);const
r=this.isDecimalSign(s),o=this.isMinusSign(s);(48<=n&&n<=57||o||r)&&this.insert(e,s,{isDecimalSign:r,isMinusSign:o})}onPaste(e){if(!this.disabled&&!this.readonly){e.preventDefault();let
n=(e.clipboardData||window.clipboardData).getData("Text");if(n){let
s=this.parseValue(n);null!=s&&this.insert(e,s.toString())}}}allowMinusSign(){return
null==this.min||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
n=e.search(this._decimal);this._decimal.lastIndex=0;const r=e.repl
ace(this._prefix,"").trim().replace(/\s/g,"").replace(this._currency,"").search(this._decimal);return
this._decimal.lastIndex=0,{decimalCharIndex:n,decimalCharIndexWithoutPrefix:r}}getCharIndexes(e){const
n=e.search(this._decimal);this._decimal.lastIndex=0;const
s=e.search(this._minusSign);this._minusSign.lastIndex=0;const
r=e.search(this._suffix);this._suffix.lastIndex=0;const o=e.search(this._currency);return
this._currency.lastIndex=0,{decimalCharIndex:n,minusCharIndex:s,suffixCharIndex:r,currencyCharIndex:o}}insert(e,n,s={isDecimalSign:!1,isMinusSign:!1}){const
r=n.search(this._minusSign);if(this._minusSign.lastIndex=0,!this.allowMinusSign()&&-1!==r)return;let
o=this.input.nativeElement.selectionStart,u=this.input.nativeElement.selectionEnd,h=this.input.nativeElement.value.trim();const{decimalCharIndex:b,minusCharIndex:y,suffixCharIndex:w,currencyCharIndex:M}=this.getCharIndexes(h);let
E;if(s.isMinusSign)0===o&&(E=h,(-1===y||0!==u)&&(E=this.insertText(h,n,0,u)),this.updateValue(
e,E,n,"insert"));else
if(s.isDecimalSign)b>0&&o===b?this.updateValue(e,h,n,"insert"):(b>o&&b<u||-1===b&&this.maxFractionDigits)&&(E=this.insertText(h,n,o,u),this.updateValue(e,E,n,"insert"));else{const
L=this.numberFormat.resolvedOptions().maximumFractionDigits,O=o!==u?"range-insert":"insert";if(b>0&&o>b){if(o+n.length-(b+1)<=L){const
N=M>=o?M-1:w>=o?w:h.length;E=h.slice(0,o)+n+h.slice(o+n.length,N)+h.slice(N),this.updateValue(e,E,n,O)}}else
E=this.insertText(h,n,o,u),this.updateValue(e,E,n,O)}}insertText(e,n,s,r){if(2===("."===n?n:n.split(".")).length){const
u=e.slice(s,r).search(this._decimal);return
this._decimal.lastIndex=0,u>0?e.slice(0,s)+this.formatValue(n)+e.slice(r):e||this.formatValue(n)}return
r-s===e.length?this.formatValue(n):0===s?n+e.slice(r):r===e.length?e.slice(0,s)+n:e.slice(0,s)+n+e.slice(r)}deleteRange(e,n,s){let
r;return
r=s-n===e.length?"":0===n?e.slice(s):s===e.length?e.slice(0,n):e.slice(0,n)+e.slice(s),r}initCursor(){let
e=this.input.nativeElement.selectionS
tart,n=this.input.nativeElement.value,s=n.length,r=null,o=(this.prefixChar||"").length;n=n.replace(this._prefix,""),e-=o;let
u=n.charAt(e);if(this.isNumeralChar(u))return e+o;let
h=e-1;for(;h>=0;){if(u=n.charAt(h),this.isNumeralChar(u)){r=h+o;break}h--}if(null!==r)this.input.nativeElement.setSelectionRange(r+1,r+1);else{for(h=e;h<s;){if(u=n.charAt(h),this.isNumeralChar(u)){r=h+o;break}h++}null!==r&&this.input.nativeElement.setSelectionRange(r,r)}return
r||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))}resetRegex(){this._numeral.lastIndex=0,this._decimal.lastIndex=0,this._group.lastIndex=0,this._minusSign.lastIndex=0}updateValue(e,n,s,r){let
o=this.input.nativeElement.value,u=null;null!=n&&(u=this.parseValue(n),u=u||this.allowEmpty?u:0,this.updateInput(u,s,r,n),this.handleOnInput(e,o,u))}handleOnInput(e,n,s){this.isValueChange
d(n,s)&&this.onInput.emit({originalEvent:e,value:s})}isValueChanged(e,n){return
null===n&&null!==e||null!=n&&n!==("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,n,s,r){n=n||"";let
o=this.input.nativeElement.value,u=this.formatValue(e),h=o.length;if(u!==r&&(u=this.concatValues(u,r)),0===h){this.input.nativeElement.value=u,this.input.nativeElement.setSelectionRange(0,0);const
y=this.initCursor()+n.length;this.input.nativeElement.setSelectionRange(y,y)}else{let
b=this.input.nativeElement.selectionStart,y=this.input.nativeElement.selectionEnd;if(this.maxlength&&this.maxlength<u.length)return;this.input.nativeElement.value=u;let
w=u.length;if("range-insert"===s){const
M=this.parseValue((o||"").slice(0,b)),L=(null!==M?M.toString():"").split("").join(`(${this.groupChar})?`),O=new
RegExp(L,"g");O.test(u);const
N=n.split("").join(`(${this.groupChar})?`),G=new RegExp(
N,"g");G.test(u.slice(O.lastIndex)),y=O.lastIndex+G.lastIndex,this.input.nativeElement.setSelectionRange(y,y)}else
if(w===h)"insert"===s||"delete-back-single"===s?this.input.nativeElement.setSelectionRange(y+1,y+1):"delete-single"===s?this.input.nativeElement.setSelectionRange(y-1,y-1):("delete-range"===s||"spin"===s)&&this.input.nativeElement.setSelectionRange(y,y);else
if("delete-back-single"===s){let
M=o.charAt(y-1),E=o.charAt(y),L=h-w,O=this._group.test(E);O&&1===L?y+=1:!O&&this.isNumeralChar(M)&&(y+=-1*L+1),this._group.lastIndex=0,this.input.nativeElement.setSelectionRange(y,y)}else
if("-"===o&&"insert"===s){this.input.nativeElement.setSelectionRange(0,0);const
E=this.initCursor()+n.length+1;this.input.nativeElement.setSelectionRange(E,E)}else
y+=w-h,this.input.nativeElement.setSelectionRange(y,y)}this.input.nativeElement.setAttribute("aria-valuenow",e)}concatValues(e,n){if(e&&n){let
s=n.search(this._decimal);return
this._decimal.lastIndex=0,-1!==s?e.split(this._decimal)[0]+n.s
lice(s):e}return e}getDecimalLength(e){if(e){const
n=e.split(this._decimal);if(2===n.length)return
n[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
n=this.validateValue(this.parseValue(this.input.nativeElement.value));this.input.nativeElement.value=this.formatValue(n),this.input.nativeElement.setAttribute("aria-valuenow",n),this.updateModel(e,n),this.onBlur.emit(e)}formattedValue(){return
this.formatValue(this.value||this.allowEmpty?this.value:0)}updateModel(e,n){this.value!==n&&(this.value=n,this.onModelChange(n)),this.onModelTouched()}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)}getF
ormatter(){return this.numberFormat}}return t.\u0275fac=function(e){return
new(e||t)(D(De),D(rt))},t.\u0275cmp=z({type:t,selectors:[["p-inputNumber"]],viewQuery:function(e,n){if(1&e&&W(l6,5),2&e){let
s;V(s=B())&&(n.input=s.first)}},hostAttrs:[1,"p-element","p-inputwrapper"],hostVars:6,hostBindings:function(e,n){2&e&&si("p-inputwrapper-filled",n.filled)("p-inputwrapper-focus",n.focused)("p-inputnumber-clearable",n.showClear&&"vertical"!=n.buttonLayout)},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",showClear:"showClear",disabled:"disabled"},outputs:{onInput:"onInput",onFocus:"onFocus",onBlur:"onBlur",onKeyDown:"onKeyDown",onClear:"onClear"},features:[Pe([m6]),fn],decls:7,vars:32,consts:[[3,"ngClass","ngStyle"],["pInputText","","inputmode","decimal",3,"ngClass","ngStyle","value","disabled","readonly","input","keydown","keypress","paste","click","focus","blur"],["input",""],["class","p-inputnumber-clear-icon
pi
pi-times",3,"click",4,"ngIf"],["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-c
lear-icon","pi","pi-times",3,"click"],[1,"p-inputnumber-button-group"],["type","button","pButton","",3,"ngClass","icon","disabled","mousedown","mouseup","mouseleave","keydown","keyup"]],template:function(e,n){1&e&&(l(0,"span",0)(1,"input",1,2),C("input",function(r){return
n.onUserInput(r)})("keydown",function(r){return
n.onInputKeyDown(r)})("keypress",function(r){return
n.onInputKeyPress(r)})("paste",function(r){return
n.onPaste(r)})("click",function(){return
n.onInputClick()})("focus",function(r){return
n.onInputFocus(r)})("blur",function(r){return
n.onInputBlur(r)}),c(),_(3,c6,1,0,"i",3),_(4,u6,3,12,"span",4),_(5,d6,1,6,"button",5),_(6,p6,1,6,"button",5),c()),2&e&&(me(n.styleClass),p("ngClass",Qt(28,h6,n.showButtons&&"stacked"===n.buttonLayout,n.showButtons&&"horizontal"===n.buttonLayout,n.showButtons&&"vertical"===n.buttonLayout))("ngStyle",n.style),a(1),me(n.inputStyleClass),p("ngClass","p-inputnumber-input")("ngStyle",n.inputStyle)("value",n.formattedValue())("disabled",n.disab
led)("readonly",n.readonly),ie("placeholder",n.placeholder)("title",n.title)("id",n.inputId)("size",n.size)("name",n.name)("autocomplete",n.autocomplete)("maxlength",n.maxlength)("tabindex",n.tabindex)("aria-label",n.ariaLabel)("aria-required",n.ariaRequired)("required",n.required)("min",n.min)("max",n.max),a(2),p("ngIf","vertical"!=n.buttonLayout&&n.showClear&&n.value),a(1),p("ngIf",n.showButtons&&"stacked"===n.buttonLayout),a(1),p("ngIf",n.showButtons&&"stacked"!==n.buttonLayout),a(1),p("ngIf",n.showButtons&&"stacked"!==n.buttonLayout))},directives:[Le,lt,DT,Q,On],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{border-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-inputnumber-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%}.p-inputnumber-clear-icon{position:absolute;top:50%;margin-top:-.5rem;cursor:pointer}.p-inputnumber-clearable{position:relative}\n"],encapsulation:2,changeDetection:0}),t})(),Xu=(()=>{class
t{}return t.\u0275fac=function(e){return
new(e||t)},t.\u0275mod=he({type:t}),t.\u0275inj=ue({imports:[[Fe,MT,gl]]}),t})();function
f6(t,i){1&t&&Y(0)}const Zf=function(t){return{$implicit:t}};function
g6(t,i){if(1&t&&(l(0,"div",15),_(1,f6,1,0,"ng-container",16),c()),2&t){const
e=d(2);a(1),p("ngTempl
ateOutlet",e.templateLeft)("ngTemplateOutletContext",U(2,Zf,e.paginatorState))}}function
_6(t,i){if(1&t&&(l(0,"span",17),g(1),c()),2&t){const
e=d(2);a(1),S(e.currentPageReport)}}const
ed=function(t){return{"p-disabled":t}};function b6(t,i){if(1&t){const
e=I();l(0,"button",18),C("click",function(s){return
v(e),d(2).changePageToFirst(s)}),k(1,"span",19),c()}if(2&t){const
e=d(2);p("disabled",e.isFirstPage()||e.empty())("ngClass",U(2,ed,e.isFirstPage()||e.empty()))}}const
v6=function(t){return{"p-highlight":t}};function C6(t,i){if(1&t){const
e=I();l(0,"button",22),C("click",function(s){const
o=v(e).$implicit;return d(3).onPageLinkClick(s,o-1)}),g(1),c()}if(2&t){const
e=i.$implicit,n=d(3);p("ngClass",U(2,v6,e-1==n.getPage())),a(1),S(e)}}function
y6(t,i){if(1&t&&(l(0,"span",20),_(1,C6,2,4,"button",21),c()),2&t){const
e=d(2);a(1),p("ngForOf",e.pageLinks)}}function
w6(t,i){1&t&&g(0),2&t&&S(d(3).currentPageReport)}function
T6(t,i){if(1&t){const
e=I();l(0,"p-dropdown",23),C("onChange",functio
n(s){return
v(e),d(2).onPageDropdownChange(s)}),_(1,w6,1,1,"ng-template",24),c()}if(2&t){const
e=d(2);p("options",e.pageItems)("ngModel",e.getPage())("disabled",e.empty())("appendTo",e.dropdownAppendTo)("scrollHeight",e.dropdownScrollHeight)}}function
S6(t,i){if(1&t){const
e=I();l(0,"button",25),C("click",function(s){return
v(e),d(2).changePageToLast(s)}),k(1,"span",26),c()}if(2&t){const
e=d(2);p("disabled",e.isLastPage()||e.empty())("ngClass",U(2,ed,e.isLastPage()||e.empty()))}}function
x6(t,i){if(1&t){const
e=I();l(0,"p-inputNumber",27),C("ngModelChange",function(s){return
v(e),d(2).changePage(s-1)}),c()}if(2&t){const
e=d(2);p("ngModel",e.currentPage())("disabled",e.empty())}}function
D6(t,i){1&t&&Y(0)}function
M6(t,i){if(1&t&&_(0,D6,1,0,"ng-container",16),2&t){const
e=i.$implicit;p("ngTemplateOutlet",d(4).dropdownItemTemplate)("ngTemplateOutletContext",U(2,Zf,e))}}function
k6(t,i){1&t&&(de(0),_(1,M6,1,4,"ng-template",30),pe())}function
I6(t,i){if(1&t){const e=I();l(0,"p-dropdown"
,28),C("ngModelChange",function(s){return
v(e),d(2).rows=s})("onChange",function(s){return
v(e),d(2).onRppChange(s)}),_(1,k6,2,0,"ng-container",29),c()}if(2&t){const
e=d(2);p("options",e.rowsPerPageItems)("ngModel",e.rows)("disabled",e.empty())("appendTo",e.dropdownAppendTo)("scrollHeight",e.dropdownScrollHeight),a(1),p("ngIf",e.dropdownItemTemplate)}}function
E6(t,i){1&t&&Y(0)}function
R6(t,i){if(1&t&&(l(0,"div",31),_(1,E6,1,0,"ng-container",16),c()),2&t){const
e=d(2);a(1),p("ngTemplateOutlet",e.templateRight)("ngTemplateOutletContext",U(2,Zf,e.paginatorState))}}function
L6(t,i){if(1&t){const
e=I();l(0,"div",1),_(1,g6,2,4,"div",2),_(2,_6,2,1,"span",3),_(3,b6,2,4,"button",4),l(4,"button",5),C("click",function(s){return
v(e),d().changePageToPrev(s)}),k(5,"span",6),c(),_(6,y6,2,1,"span",7),_(7,T6,2,5,"p-dropdown",8),l(8,"button",9),C("click",function(s){return
v(e),d().changePageToNext(s)}),k(9,"span",10),c(),_(10,S6,2,4,"button",11),_(11,x6,1,2,"p-inputNumber",12),_(12,I6,2,6,"p-drop
down",13),_(13,R6,2,4,"div",14),c()}if(2&t){const
e=d();me(e.styleClass),p("ngStyle",e.style)("ngClass","p-paginator
p-component"),a(1),p("ngIf",e.templateLeft),a(1),p("ngIf",e.showCurrentPageReport),a(1),p("ngIf",e.showFirstLastIcon),a(1),p("disabled",e.isFirstPage()||e.empty())("ngClass",U(17,ed,e.isFirstPage()||e.empty())),a(2),p("ngIf",e.showPageLinks),a(1),p("ngIf",e.showJumpToPageDropdown),a(1),p("disabled",e.isLastPage()||e.empty())("ngClass",U(19,ed,e.isLastPage()||e.empty())),a(2),p("ngIf",e.showFirstLastIcon),a(1),p("ngIf",e.showJumpToPageInput),a(1),p("ngIf",e.rowsPerPageOptions),a(1),p("ngIf",e.templateRight)}}let
ET=(()=>{class t{constructor(e){this.cd=e,this.pageLinkSize=5,this.onPageChange=new
H,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.updateRowsPerPageOptions()),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(),n=Math.min(this.pageLinkSize,e),s=Math.max(0,Math.ceil(this.getPage()-n/2)),r=Math.min(e-1,s+n-1);return
s=Math.max(0,
s-(this.pageLinkSize-(r-s+1))),[s,r]}updatePageLinks(){this.pageLinks=[];let
e=this.calculatePageLinkBoundaries(),s=e[1];for(let
r=e[0];r<=s;r++)this.pageLinks.push(r+1);if(this.showJumpToPageDropdown){this.pageItems=[];for(let
r=0;r<this.getPageCount();r++)this.pageItems.push({label:String(r+1),value:r})}}changePage(e){var
n=this.getPageCount();if(e>=0&&e<n){this._first=this.rows*e;var
s={page:e,first:this.first,rows:this.rows,pageCount:n};this.updatePageLinks(),this.onPageChange.emit(s),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,n){this.changePage(n),e.preventDefault()}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)(D(rt))},t.\u0275cmp=z({type:t,selectors:[["p-paginator"]],hostAttrs:[1,"p-element"],inputs:{pageLi
nkSize:"pageLinkSize",style:"style",styleClass:"styleClass",alwaysShow:"alwaysShow",templateLeft:"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:[fn],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-fir
st","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,n){1&e&&_(0,L6,14,21,"div",0),2&e&&p("ng
If",!!n.alwaysShow||n.pageLinks&&n.pageLinks.length>1)},directives:[Ot,pt,Q,lt,Le,Rt,bt,at,Te,_e,ne],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})(),RT=(()=>{class
t{}return t.\u0275fac=function(e){return
new(e||t)},t.\u0275mod=he({type:t}),t.\u0275inj=ue({imports:[[Fe,Zu,Xu,Mu,Nt,pn],Zu,Xu,Mu,Nt]}),t})();function
O6(t,i){if(1&t&&(l(0,"div",10)(1,"div",11),k(2,"i"),c()()),2&t){const
e=d();a(2),me("p-dataview-loading-icon pi-spin "+e.loadingIcon)}}function
A6(t,i){1&t&&Y(0)}functi
on
P6(t,i){if(1&t&&(l(0,"div",12),St(1),_(2,A6,1,0,"ng-container",13),c()),2&t){const
e=d();a(2),p("ngTemplateOutlet",e.headerTemplate)}}function
F6(t,i){if(1&t){const
e=I();l(0,"p-paginator",14),C("onPageChange",function(s){return
v(e),d().paginate(s)}),c()}if(2&t){const
e=d();p("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
N6(t,i){1&t&&Y(0)}const V6=function(t,i){return{$implicit:t,row
Index:i}};function
B6(t,i){if(1&t&&_(0,N6,1,0,"ng-container",15),2&t){const
e=i.$implicit,n=i.index;p("ngTemplateOutlet",d().itemTemplate)("ngTemplateOutletContext",Ge(2,V6,e,n))}}function
H6(t,i){if(1&t&&(de(0),g(1),pe()),2&t){const e=d(2);a(1),T("
",e.emptyMessageLabel," ")}}function
q6(t,i){1&t&&Y(0,null,19)}function
G6(t,i){if(1&t&&(l(0,"div",16)(1,"div",17),_(2,H6,2,1,"ng-container",18),_(3,q6,2,0,"ng-container",13),c()()),2&t){const
e=d();a(2),p("ngIf",!e.emptyMessageTemplate)("ngIfElse",e.emptyFilter),a(1),p("ngTemplateOutlet",e.emptyMessageTemplate)}}function
U6(t,i){if(1&t){const
e=I();l(0,"p-paginator",20),C("onPageChange",function(s){return
v(e),d().paginate(s)}),c()}if(2&t){const
e=d();p("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
z6(t,i){1&t&&Y(0)}function
j6(t,i){if(1&t&&(l(0,"div",21),St(1,1),_(2,z6,1,0,"ng-container",13),c()),2&t){const
e=d();a(2),p("ngTemplateOutlet",e.footerTemplate)}}const
$6=[[["p-header"]],[["p-footer"]]],W6=function(t,i){return{"p-dataview
p-component":!0,"p-dataview-list":t,"p-dataview-grid":i}},K6=["p-header","p-footer"];let
LT=(()=>{class
t{constructor(e,n,s,r){this.el=e,this.cd=n,this.filterService=s,this.config=r,this.pageLinks=5,this.paginatorPosition="bottom",this.alwaysShowPaginator=!0,this.paginatorDropdownScrollHeight="200px",this.currentPageReportTemplate="{currentPage}
of {totalPages}",this.showFirstLastIcon=!0,t
his.showPageLinks=!0,this.emptyMessage="",this.onLazyLoad=new
H,this.trackBy=(o,u)=>u,this.loadingIcon="pi
pi-spinner",this.first=0,this.onPage=new H,this.onSort=new H,this.onChangeLayout=new
H,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.pagi
natorRightTemplate=e.template;break;case"paginatordropdownitem":this.paginatorDropdownItemTemplate=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,n)=>{let
s=Z.resolveFieldData(e,this.sortField),r
=Z.resolveFieldData(n,this.sortField),o=null;return
o=null==s&&null!=r?-1:null!=s&&null==r?1:null==s&&null==r?0:"string"==typeof
s&&"string"==typeof
r?s.localeCompare(r):s<r?-1:s>r?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(Ft.EMPTY_MESSAGE)}filter(e,n="contains"){if(this.filterValue=e,this.value&&this.value.length){let
s=this.filterBy.split(",");this.filteredValue=this.filterService.filter(this.value,s,e,n,this.filterLocale),this.filteredValue.length===this.value.length&&(this.filteredValue=null),this.paginator&&(this.first=0,this.totalRecords=this.filteredValu
e?this.filteredValue.length:this.value?this.value.length:0),this.cd.markForCheck()}}hasFilter(){return
this.filterValue&&this.filterValue.trim().length>0}ngOnDestroy(){this.translationSubscription&&this.translationSubscription.unsubscribe()}}return
t.\u0275fac=function(e){return
new(e||t)(D(De),D(rt),D(hl),D(zn))},t.\u0275cmp=z({type:t,selectors:[["p-dataView"]],contentQueries:function(e,n,s){if(1&e&&(st(s,Oo,5),st(s,fl,5),st(s,ne,4)),2&e){let
r;V(r=B())&&(n.header=r.first),V(r=B())&&(n.footer=r.first),V(r=B())&&(n.templates=r)}},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",showJum
pToPageDropdown:"showJumpToPageDropdown",showFirstLastIcon:"showFirstLastIcon",showPageLinks:"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:[fn],ngContentSelectors:K6,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-emptymessage"],[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,n){1&e&&(Sn($6),l(0,"div",0),_(1,O6,3,2,"div",1),_(2,P6,3,1,"div",2),_(3,F6,1,16,"p-paginator",3),l(4,"div",4)(5,"div",5),_(6,B6,1,5,"ng-template",6),m(7,"slice"),_(8,G6,4,3,"div",7),c()(),_(9,U6,1,16,"p-paginator",8),_(10,j6,3,1,"div",9),c()),2&e&&(me(n.styleClass),p("ngClass",Ge(16,W6,"list"===n.layout,"grid"===n.layout))("ngStyle",n.style),a(1),p("ngIf",n.loading),a(1),p("ngIf",n.header||n.headerTemplate),a(1),p("ngIf",n.paginator&&("top"===n.paginatorPosition||"bot
h"==n.paginatorPosition)),a(3),p("ngForOf",n.paginator?function
hC(t,i,e,n,s){const r=t+20,o=$(),u=zr(o,r);return
Ua(o,r)?uC(o,Fn(),i,u.transform,e,n,s,u):u.transform(e,n,s)}(7,12,n.filteredValue||n.value,n.lazy?0:n.first,(n.lazy?0:n.first)+n.rows):n.filteredValue||n.value)("ngForTrackBy",n.trackBy),a(2),p("ngIf",n.isEmpty()),a(1),p("ngIf",n.paginator&&("bottom"===n.paginatorPosition||"both"==n.paginatorPosition)),a(1),p("ngIf",n.footer||n.footerTemplate))},directives:[ET,Le,lt,Q,Rt,at],pipes:[My],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})(),Q6=(()=>{class
t{}return t.\u0275fac=function(e){return
new(e||t)},t.\u0275mod=he({type:t}),t.\u0275inj=ue({imports:[[Fe,Nt,RT],Nt]}),t})(),J6=(()=>{class
t{constructor(e){this.el=e}onkeydown(e){if(!0!==this.pFocusTrapDisabled){e.preventDefault();let
n=R.getFocusableElements(this.el.n
ativeElement);if(n&&n.length>0)if(n[0].ownerDocument.activeElement){let
s=n.indexOf(n[0].ownerDocument.activeElement);e.shiftKey?-1==s||0===s?n[n.length-1].focus():n[s-1].focus():-1==s||s===n.length-1?n[0].focus():n[s+1].focus()}else
n[0].focus()}}}return t.\u0275fac=function(e){return
new(e||t)(D(De))},t.\u0275dir=le({type:t,selectors:[["","pFocusTrap",""]],hostAttrs:[1,"p-element"],hostBindings:function(e,n){1&e&&C("keydown.tab",function(r){return
n.onkeydown(r)})("keydown.shift.tab",function(r){return
n.onkeydown(r)})},inputs:{pFocusTrapDisabled:"pFocusTrapDisabled"}}),t})(),Y6=(()=>{class
t{}return t.\u0275fac=function(e){return
new(e||t)},t.\u0275mod=he({type:t}),t.\u0275inj=ue({imports:[[Fe]]}),t})();const
Z6=["titlebar"],X6=["content"],e7=["footer"];function
t7(t,i){if(1&t&&(l(0,"span",17),g(1),c()),2&t){const
e=d(4);ie("id",e.id+"-label"),a(1),S(e.header)}}function
n7(t,i){1&t&&(l(0,"span",17),St(1,1),c()),2&t&&ie("id",d(4).id+"-label")}function
i7(t,i){1&t&&Y(0)}const s7=fu
nction(){return{"p-dialog-header-icon p-dialog-header-maximize
p-link":!0}};function r7(t,i){if(1&t){const
e=I();l(0,"button",18),C("click",function(){return
v(e),d(4).maximize()})("keydown.enter",function(){return
v(e),d(4).maximize()}),k(1,"span",19),c()}if(2&t){const
e=d(4);p("ngClass",A(2,s7)),a(1),p("ngClass",e.maximized?e.minimizeIcon:e.maximizeIcon)}}const
o7=function(){return{"p-dialog-header-icon p-dialog-header-close
p-link":!0}};function a7(t,i){if(1&t){const
e=I();l(0,"button",20),C("click",function(s){return
v(e),d(4).close(s)})("keydown.enter",function(s){return
v(e),d(4).close(s)}),k(1,"span",21),c()}if(2&t){const
e=d(4);p("ngClass",A(4,o7)),ie("aria-label",e.closeAriaLabel)("tabindex",e.closeTabindex),a(1),p("ngClass",e.closeIcon)}}function
l7(t,i){if(1&t){const
e=I();l(0,"div",11,12),C("mousedown",function(s){return
v(e),d(3).initDrag(s)}),_(2,t7,2,2,"span",13),_(3,n7,2,1,"span",13),_(4,i7,1,0,"ng-container",8),l(5,"div",14),_(6,r7,2,3,"button",15),_(7,a7,2,5,"butto
n",16),c()()}if(2&t){const
e=d(3);a(2),p("ngIf",!e.headerFacet&&!e.headerTemplate),a(1),p("ngIf",e.headerFacet),a(1),p("ngTemplateOutlet",e.headerTemplate),a(2),p("ngIf",e.maximizable),a(1),p("ngIf",e.closable)}}function
c7(t,i){1&t&&Y(0)}function u7(t,i){1&t&&Y(0)}function
d7(t,i){if(1&t&&(l(0,"div",22,23),St(2,2),_(3,u7,1,0,"ng-container",8),c()),2&t){const
e=d(3);a(3),p("ngTemplateOutlet",e.footerTemplate)}}function
p7(t,i){if(1&t){const
e=I();l(0,"div",24),C("mousedown",function(s){return
v(e),d(3).initResize(s)}),c()}}const h7=function(t,i,e,n){return{"p-dialog
p-component":!0,"p-dialog-rtl":t,"p-dialog-draggable":i,"p-dialog-resizable":e,"p-dialog-maximized":n}},m7=function(t,i){return{transform:t,transition:i}},f7=function(t){return{value:"visible",params:t}};function
g7(t,i){if(1&t){const
e=I();l(0,"div",3,4),C("(a)animation.start",function(s){return
v(e),d(2).onAnimationStart(s)})("(a)animation.done",function(s){return
v(e),d(2).onAnimationEnd(s)}),_(2,l7,8,5,"div",5),l(3,"div"
,6,7),St(5),_(6,c7,1,0,"ng-container",8),c(),_(7,d7,4,1,"div",9),_(8,p7,1,0,"div",10),c()}if(2&t){const
e=d(2);me(e.styleClass),p("ngClass",qn(15,h7,e.rtl,e.draggable,e.resizable,e.maximized))("ngStyle",e.style)("pFocusTrapDisabled",!1===e.focusTrap)("@animation",U(23,f7,Ge(20,m7,e.transformOptions,e.transitionOptions))),ie("aria-labelledby",e.id+"-label"),a(2),p("ngIf",e.showHeader),a(1),me(e.contentStyleClass),p("ngClass","p-dialog-content")("ngStyle",e.contentStyle),a(3),p("ngTemplateOutlet",e.contentTemplate),a(1),p("ngIf",e.footerFacet||e.footerTemplate),a(1),p("ngIf",e.resizable)}}const
_7=function(t,i,e,n,s,r,o,u,h,b){return{"p-dialog-mask":!0,"p-component-overlay
p-component-overlay-enter":t,"p-dialog-mask-scrollblocker":i,"p-dialog-left":e,"p-dialog-right":n,"p-dialog-top":s,"p-dialog-top-left":r,"p-dialog-top-right":o,"p-dialog-bottom":u,"p-dialog-bottom-left":h,"p-dialog-bottom-right":b}};function
b7(t,i){if(1&t&&(l(0,"div",1),_(1,g7,9,25,"div",2),c()),2&t){const
e=d();me
(e.maskStyleClass),p("ngClass",Hh(4,_7,[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])),a(1),p("ngIf",e.visible)}}const
v7=["*",[["p-header"]],[["p-footer"]]],C7=["*","p-header","p-footer"],y7=ku([it({transform:"{{transform}}",opacity:0}),kt("{{transition}}")]),w7=ku([kt("{{transition}}",it({transform:"{{transform}}",opacity:0}))]);let
bn=(()=>{class
t{constructor(e,n,s,r,o){this.el=e,this.renderer=n,this.zone=s,this.cd=r,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 H,this.onHide=new H,this.visibleChange=new
H,this.onResizeInit=new H,this.onResizeEnd=new H,this.onDragEnd=new H,this.onMaximize=new
H,this.id=pl(),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.contentTemplat
e=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=R.findSingle(this.container,"[autofocus]");e&&this.zone.runOutsideAngular(()=>{setTimeout(()=>e.focus(),5)})}close(e){this.visibleChange.emit(!1),e.preventDefault()}enableModali
ty(){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&&R.addClass(document.body,"p-overflow-hidden")}disableModality(){this.wrapper&&(this.dismissableMask&&this.unbindMaskClickListener(),this.modal&&R.removeClass(document.body,"p-overflow-hidden"),this.cd.destroyed||this.cd.detectChanges())}maximize(){this.maximized=!this.maximized,!this.modal&&!this.blockScroll&&(this.maximized?R.addClass(document.body,"p-overflow-hidden"):R.removeClass(document.body,"p-overflow-hidden")),this.onMaximize.emit({maximized:this.maximized})}unbindMaskClickListener(){this.maskClickListener&&(this.maskClickListener(),this.maskClickListener=null)}moveOnTop(){this.autoZIndex&&(dt.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.styl
eElement=document.createElement("style"),this.styleElement.type="text/css",document.head.appendChild(this.styleElement);let
e="";for(let n in this.breakpoints)e+=`\n @media screen and
(max-width: ${n}) {\n .p-dialog[${this.id}] {\n
width: ${this.breakpoints[n]} !important;\n }\n
}\n
`;this.styleElement.innerHTML=e}}initDrag(e){R.hasClass(e.target,"p-dialog-header-icon")||R.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",R.addClass(document.body,"p-unselectable-text"))}onKeydown(e){if(this.focusTrap&&9===e.which){e.preventDefault();let
n=R.getFocusableElements(this.container);if(n&&n.length>0)if(n[0].ownerDocument.activeElement){let
s=n.indexOf(n[0].ownerDocument.activeElement);e.shiftKey?-1==s||0===s?n[n.length-1].focus():n[s-1].focus():-1=
=s||s===n.length-1?n[0].focus():n[s+1].focus()}else
n[0].focus()}}onDrag(e){if(this.dragging){let
n=R.getOuterWidth(this.container),s=R.getOuterHeight(this.container),r=e.pageX-this.lastPageX,o=e.pageY-this.lastPageY,u=this.container.getBoundingClientRect(),h=u.left+r,b=u.top+o,y=R.getViewport();this.container.style.position="fixed",this.keepInViewport?(h>=this.minX&&h+n<y.width&&(this._style.left=h+"px",this.lastPageX=e.pageX,this.container.style.left=h+"px"),b>=this.minY&&b+s<y.height&&(this._style.top=b+"px",this.lastPageY=e.pageY,this.container.style.top=b+"px")):(this.lastPageX=e.pageX,this.container.style.left=h+"px",this.lastPageY=e.pageY,this.container.style.top=b+"px")}}endDrag(e){this.dragging&&(this.dragging=!1,R.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,R.addClass(document.body,"p-unselectable-text"),this.onResizeInit.emit(e))}onResize(e){if(this.resizing){let
n=e.pageX-this.lastPageX,s=e.pageY-this.lastPageY,r=R.getOuterWidth(this.container),o=R.getOuterHeight(this.container),u=R.getOuterHeight(this.contentViewChild.nativeElement),h=r+n,b=o+s,y=this.container.style.minWidth,w=this.container.style.minHeight,M=this.container.getBoundingClientRect(),E=R.getViewport();(!parseInt(this.container.style.top)||!parseInt(this.container.style.left))&&(h+=n,b+=s),(!y||h>parseInt(y))&&M.left+h<E.width&&(this._style.width=h+"px",this.container.style.width=this._style.width),(!w||b>parseInt(w))&&M.top+b<E.height&&(this.contentViewChild.nativeElement.style.height=u+b-o+"px",this._style.height&&(this._style.height=b+"px",this.container.style.height=this._style.height)),this.lastPageX=e.pageX,this.lastPageY=e.pageY}}resizeEnd(e){this.resizing&&(this.resiz
ing=!1,R.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.documen
tDragEndListener)})}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.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",n=>{27==n.which&&
this.close(n)})}unbindDocumentEscapeListener(){this.documentEscapeListener&&(this.documentEscapeListener(),this.documentEscapeListener=null)}appendContainer(){this.appendTo&&("body"===this.appendTo?document.body.appendChild(this.wrapper):R.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&&R.addClass(document.body,"p-overflow-hidden"),this.focusOnShow&&this.focus();break;case"void":this.wrapper&&this.modal&&R.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&&(R.removeClass(document.body,"p-overflow-hidden"),this.maximized=!1),this.modal&&this.disableModality(),this.blockScroll&&R.removeClass(document.body,"p-overflow-hidden"),this.container&&this.autoZIndex&&dt.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.\u0275fac=function(e){return
new(e||t)(D(De),D(gn),D(nt),D(rt),D(zn))},t.\u0275cmp=z({type:t,selectors:[["p-dialog"]],contentQueries:function(e,n,s){if(1&e&&(st(s,Oo,5),st(s,fl,5),st(s,ne,4)),2&e){let
r;V(r=B())&&(n.headerFacet=r.first),V(r=B())&&(n.footerFacet=r.first),V(r=B())&&(n.templates=r)}},viewQuery:function(e,n){if(1&e&&(W(Z6,5),W(X6,5),W(e7,5)),2&e){l
et
s;V(s=B())&&(n.headerViewChild=s.first),V(s=B())&&(n.contentViewChild=s.first),V(s=B())&&(n.footerViewChild=s.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:"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:"maximizeIco
n",visible:"visible",style:"style",position:"position"},outputs:{onShow:"onShow",onHide:"onHide",visibleChange:"visibleChange",onResizeInit:"onResizeInit",onResizeEnd:"onResizeEnd",onDragEnd:"onDragEnd",onMaximize:"onMaximize"},ngContentSelectors:C7,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","keydo
wn.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,n){1&e&&(Sn(v7),_(0,b7,2,15,"div",0)),2&e&&p("ngIf",n.maskVisible)},directives:[Q,Le,J6,lt,Rt,bt],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-draggable
.p-dialog-header{curs
or:move}.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:[wi("animation",[Lt("void
=> visible",[fw(y7)]),Lt("visible =>
void",[fw(w7)])])]},changeDetection:0}),t})(),T7=(()=>{class t{}return
t.\u0275fac=function(e){return
new(e||t)},t.\u0275mod=he({type:t}),t.\u0275inj=ue({imports:[[Fe,Y6,pn],Nt]}),t})();const
S7=["*"];let x7=(()=>{class
t{constructor(){this.layout="horizontal",this.type="solid"}containerClass(){return{"p-divider
p-component":!0,"p-divider-horizontal":"horizontal"===this.layout,"p-divider-vertical":"vertical"===this.layout,"p-divider-solid":"solid"===this.type,"p-divider-dashed":"dashed"===this.type,"p-d
ivider-dotted":"dotted"===this.type,"p-divider-left":"horizontal"===this.layout&&(!this.align||"left"===this.align),"p-divider-center":"horizontal"===this.layout&&"center"===this.align||"vertical"===this.layout&&(!this.align||"center"===this.align),"p-divider-right":"horizontal"===this.layout&&"right"===this.align,"p-divider-top":"vertical"===this.layout&&"top"===this.align,"p-divider-bottom":"vertical"===this.layout&&"bottom"===this.align}}}return
t.\u0275fac=function(e){return
new(e||t)},t.\u0275cmp=z({type:t,selectors:[["p-divider"]],hostAttrs:[1,"p-element"],inputs:{styleClass:"styleClass",style:"style",layout:"layout",type:"type",align:"align"},ngContentSelectors:S7,decls:3,vars:4,consts:[["role","separator",3,"ngClass","ngStyle"],[1,"p-divider-content"]],template:function(e,n){1&e&&(Sn(),l(0,"div",0)(1,"div",1),St(2),c()()),2&e&&(me(n.styleClass),p("ngClass",n.containerClass())("ngStyle",n.style))},directives:[Le,lt],styles:['.p-divider-horizontal{display:flex;width:100%;posit
ion:relative;align-items:center}.p-divider-horizontal:before{position:absolute;display:block;top:50%;left:0;width:100%;content:""}.p-divider-horizontal.p-divider-left{justify-content:flex-start}.p-divider-horizontal.p-divider-right{justify-content:flex-end}.p-divider-horizontal.p-divider-center{justify-content:center}.p-divider-content{z-index:1}.p-divider-vertical{min-height:100%;margin:0
1rem;display:flex;position:relative;justify-content:center}.p-divider-vertical:before{position:absolute;display:block;top:0;left:50%;height:100%;content:""}.p-divider-vertical.p-divider-top{align-items:flex-start}.p-divider-vertical.p-divider-center{align-items:center}.p-divider-vertical.p-divider-bottom{align-items:flex-end}.p-divider-solid.p-divider-horizontal:before{border-top-style:solid}.p-divider-solid.p-divider-vertical:before{border-left-style:solid}.p-divider-dashed.p-divider-horizontal:before{border-top-style:dashed}.p-divider-dashed.p-divider-vertical:before{border-left-style:dashed}.p-
divider-dotted.p-divider-horizontal:before{border-top-style:dotted}.p-divider-dotted.p-divider-horizontal:before{border-left-style:dotted}\n'],encapsulation:2,changeDetection:0}),t})(),D7=(()=>{class
t{}return t.\u0275fac=function(e){return
new(e||t)},t.\u0275mod=he({type:t}),t.\u0275inj=ue({imports:[[Fe]]}),t})();const
M7=function(t,i){return{"pi-minus":t,"pi-plus":i}};function
k7(t,i){if(1&t&&k(0,"span",9),2&t){const
e=d(2);p("ngClass",Ge(1,M7,!e.collapsed,e.collapsed))}}function
I7(t,i){1&t&&Y(0)}function E7(t,i){if(1&t){const
e=I();de(0),l(1,"a",7),C("click",function(s){return
v(e),d().toggle(s)})("keydown.enter",function(s){return
v(e),d().toggle(s)}),_(2,k7,1,4,"span",8),_(3,I7,1,0,"ng-container",6),c(),pe()}if(2&t){const
e=d(),n=F(4);a(1),ie("aria-controls",e.id+"-content")("aria-expanded",!e.collapsed),a(1),p("ngIf",e.toggleable),a(1),p("ngTemplateOutlet",n)}}function
R7(t,i){1&t&&Y(0)}function
L7(t,i){if(1&t&&(l(0,"span",10),g(1),c(),St(2,1),_(3,R7,1,0,"ng-container",6)),2&
t){const
e=d();a(1),S(e.legend),a(2),p("ngTemplateOutlet",e.headerTemplate)}}function
O7(t,i){1&t&&Y(0)}const
A7=["*",[["p-header"]]],P7=function(t){return{"p-fieldset
p-component":!0,"p-fieldset-toggleable":t}},F7=function(t){return{transitionParams:t,height:"0"}},N7=function(t){return{value:"hidden",params:t}},V7=function(t){return{transitionParams:t,height:"*"}},B7=function(t){return{value:"visible",params:t}},H7=["*","p-header"];let
q7=0,Ui=(()=>{class
t{constructor(e){this.el=e,this.collapsed=!1,this.collapsedChange=new
H,this.onBeforeToggle=new H,this.onAfterToggle=new H,this.transitionOptions="400ms
cubic-bezier(0.86, 0, 0.07,
1)",this.id="p-fieldset-"+q7++}ngAfterContentInit(){this.templates.forEach(e=>{switch(e.getType()){case"header":this.headerTemplate=e.template;break;case"content":this.contentTemplate=e.template}})}toggle(e){if(this.animating)return!1;this.animating=!0,this.onBeforeToggle.emit({originalEvent:e,collapsed:this.collapsed}),this.collapsed?this.expand(e):thi
s.collapse(e),this.onAfterToggle.emit({originalEvent:e,collapsed:this.collapsed}),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(){this.animating=!1}}return
t.\u0275fac=function(e){return
new(e||t)(D(De))},t.\u0275cmp=z({type:t,selectors:[["p-fieldset"]],contentQueries:function(e,n,s){if(1&e&&st(s,ne,4),2&e){let
r;V(r=B())&&(n.templates=r)}},hostAttrs:[1,"p-element"],inputs:{legend:"legend",toggleable:"toggleable",collapsed:"collapsed",style:"style",styleClass:"styleClass",transitionOptions:"transitionOptions"},outputs:{collapsedChange:"collapsedChange",onBeforeToggle:"onBeforeToggle",onAfterToggle:"onAfterToggle"},ngContentSelectors:H7,decls:9,vars:22,consts:[[3,"ngClass","ngStyle"],[1,"p-fieldset-legend"],[4,"ngIf","ngIfElse"],["legendContent",""],["role","region",1,"p-toggleable-content"],[1,"
p-fieldset-content"],[4,"ngTemplateOutlet"],["tabindex","0","pRipple","",3,"click","keydown.enter"],["class","p-fieldset-toggler
pi",3,"ngClass",4,"ngIf"],[1,"p-fieldset-toggler","pi",3,"ngClass"],[1,"p-fieldset-legend-text"]],template:function(e,n){if(1&e&&(Sn(A7),l(0,"fieldset",0)(1,"legend",1),_(2,E7,4,4,"ng-container",2),_(3,L7,4,2,"ng-template",null,3,we),c(),l(5,"div",4),C("@fieldsetContent.done",function(){return
n.onToggleDone()}),l(6,"div",5),St(7),_(8,O7,1,0,"ng-container",6),c()()()),2&e){const
s=F(4);me(n.styleClass),p("ngClass",U(12,P7,n.toggleable))("ngStyle",n.style),ie("id",n.id),a(2),p("ngIf",n.toggleable)("ngIfElse",s),a(3),p("@fieldsetContent",n.collapsed?U(16,N7,U(14,F7,n.transitionOptions)):U(20,B7,U(18,V7,n.animating?n.transitionOptions:"0ms"))),ie("id",n.id+"-content")("aria-labelledby",n.id)("aria-hidden",n.collapsed),a(3),p("ngTemplateOutlet",n.contentTemplate)}},directives:[Le,lt,Q,bt,Rt],styles:[".p-fieldset-legend>a,.p-fieldset-legend>span{display:flex;al
ign-items:center;justify-content:center}.p-fieldset-toggleable .p-fieldset-legend
a{cursor:pointer;-webkit-user-select:none;user-select:none;overflow:hidden;position:relative}.p-fieldset-legend-text{line-height:1}\n"],encapsulation:2,data:{animation:[wi("fieldsetContent",[ws("hidden",it({height:"0",overflow:"hidden"})),ws("visible",it({height:"*"})),Lt("visible
<=>
hidden",[it({overflow:"hidden"}),kt("{{transitionParams}}")]),Lt("void
=> *",kt(0))])]},changeDetection:0}),t})(),G7=(()=>{class t{}return
t.\u0275fac=function(e){return
new(e||t)},t.\u0275mod=he({type:t}),t.\u0275inj=ue({imports:[[Fe,pn],Nt]}),t})();const
U7=["headerchkbox"];function z7(t,i){1&t&&Y(0)}function
j7(t,i){if(1&t&&(l(0,"div",6),St(1),_(2,z7,1,0,"ng-container",7),c()),2&t){const
e=d();a(2),p("ngTemplateOutlet",e.headerTemplate)}}const
OT=function(t){return{"p-checkbox-disabled":t}},$7=function(t,i,e){return{"p-highlight":t,"p-focus":i,"p-disabled":e}},AT=function(t){return{"pi
pi-check":t}};function W7(t,i){if
(1&t){const
e=I();l(0,"div",10)(1,"div",11)(2,"input",12),C("focus",function(){return
v(e),d(2).onHeaderCheckboxFocus()})("blur",function(){return
v(e),d(2).onHeaderCheckboxBlur()})("keydown.space",function(s){return
v(e),d(2).toggleAll(s)}),c()(),l(3,"div",13,14),C("click",function(s){return
v(e),d(2).toggleAll(s)}),k(5,"span",15),c()()}if(2&t){const
e=d(2);p("ngClass",U(5,OT,e.disabled||e.toggleAllDisabled)),a(2),p("checked",e.allChecked)("disabled",e.disabled||e.toggleAllDisabled),a(1),p("ngClass",Qt(7,$7,e.allChecked,e.headerCheckboxFocus,e.disabled||e.toggleAllDisabled)),a(2),p("ngClass",U(11,AT,e.allChecked))}}function
K7(t,i){if(1&t){const
e=I();l(0,"div",16)(1,"input",17),C("input",function(s){return
v(e),d(2).onFilter(s)}),c(),k(2,"span",18),c()}if(2&t){const
e=d(2);a(1),p("value",e.filterValue||"")("disabled",e.disabled),ie("placeholder",e.filterPlaceHolder)("aria-label",e.ariaFilterLabel)}}function
Q7(t,i){if(1&t&&(l(0,"div",6),_(1,W7,6,13,"div",8),_(2,K7,3,4,"div",9),c()
),2&t){const
e=d();a(1),p("ngIf",e.checkbox&&e.multiple&&e.showToggleAll),a(1),p("ngIf",e.filter)}}function
J7(t,i){if(1&t&&(l(0,"span"),g(1),c()),2&t){const
e=d().$implicit,n=d(2);a(1),S(n.getOptionGroupLabel(e)||"empty")}}function
Y7(t,i){1&t&&Y(0)}function Z7(t,i){1&t&&Y(0)}const
Xf=function(t){return{$implicit:t}};function
X7(t,i){if(1&t&&(l(0,"li",20),_(1,J7,2,1,"span",3),_(2,Y7,1,0,"ng-container",21),c(),_(3,Z7,1,0,"ng-container",21)),2&t){const
e=i.$implicit,n=d(2),s=F(8);a(1),p("ngIf",!n.groupTemplate),a(1),p("ngTemplateOutlet",n.groupTemplate)("ngTemplateOutletContext",U(5,Xf,e)),a(1),p("ngTemplateOutlet",s)("ngTemplateOutletContext",U(7,Xf,n.getOptionGroupChildren(e)))}}function
eB(t,i){if(1&t&&(de(0),_(1,X7,4,9,"ng-template",19),pe()),2&t){const
e=d();a(1),p("ngForOf",e.optionsToRender)}}function
tB(t,i){1&t&&Y(0)}function
nB(t,i){if(1&t&&(de(0),_(1,tB,1,0,"ng-container",21),pe()),2&t){const
e=d(),n=F(8);a(1),p("ngTemplateOutlet",n)("ngTemplateOutletContext",U(2,Xf,e.opti
onsToRender))}}const iB=function(t){return{"p-highlight":t}};function
sB(t,i){if(1&t&&(l(0,"div",10)(1,"div",25),k(2,"span",15),c()()),2&t){const
e=d().$implicit,n=d(2);p("ngClass",U(3,OT,n.disabled||n.isOptionDisabled(e))),a(1),p("ngClass",U(5,iB,n.isSelected(e))),a(1),p("ngClass",U(7,AT,n.isSelected(e)))}}function
rB(t,i){if(1&t&&(l(0,"span"),g(1),c()),2&t){const
e=d().$implicit,n=d(2);a(1),S(n.getOptionLabel(e))}}function
oB(t,i){1&t&&Y(0)}const
aB=function(t,i){return{"p-listbox-item":!0,"p-highlight":t,"p-disabled":i}},lB=function(t,i){return{$implicit:t,index:i}};function
cB(t,i){if(1&t){const
e=I();l(0,"li",24),C("click",function(s){const o=v(e).$implicit;return
d(2).onOptionClick(s,o)})("dblclick",function(s){const o=v(e).$implicit;return
d(2).onOptionDoubleClick(s,o)})("touchend",function(){const
r=v(e).$implicit;return d(2).onOptionTouchEnd(r)})("keydown",function(s){const
o=v(e).$implicit;return
d(2).onOptionKeyDown(s,o)}),_(1,sB,3,9,"div",8),_(2,rB,2,1,"span",3),_(3,oB,1
,0,"ng-container",21),c()}if(2&t){const
e=i.$implicit,n=i.index,s=d(2);p("ngClass",Ge(8,aB,s.isSelected(e),s.isOptionDisabled(e))),ie("tabindex",s.disabled||s.isOptionDisabled(e)?null:"0")("aria-label",s.getOptionLabel(e))("aria-selected",s.isSelected(e)),a(1),p("ngIf",s.checkbox&&s.multiple),a(1),p("ngIf",!s.itemTemplate),a(1),p("ngTemplateOutlet",s.itemTemplate)("ngTemplateOutletContext",Ge(11,lB,e,n))}}function
uB(t,i){if(1&t&&(de(0),g(1),pe()),2&t){const e=d(3);a(1),T("
",e.emptyFilterMessageLabel," ")}}function
dB(t,i){1&t&&Y(0,null,28)}function
pB(t,i){if(1&t&&(l(0,"li",26),_(1,uB,2,1,"ng-container",27),_(2,dB,2,0,"ng-container",7),c()),2&t){const
e=d(2);a(1),p("ngIf",!e.emptyFilterTemplate&&!e.emptyTemplate)("ngIfElse",e.emptyFilter),a(1),p("ngTemplateOutlet",e.emptyFilterTemplate||e.emptyTemplate)}}function
hB(t,i){if(1&t&&(de(0),g(1),pe()),2&t){const e=d(3);a(1),T("
",e.emptyMessageLabel," ")}}function
mB(t,i){1&t&&Y(0,null,29)}function
fB(t,i){if(1&t&&(l(0,"li",26),_(1,hB,
2,1,"ng-container",27),_(2,mB,2,0,"ng-container",7),c()),2&t){const
e=d(2);a(1),p("ngIf",!e.emptyTemplate)("ngIfElse",e.empty),a(1),p("ngTemplateOutlet",e.emptyTemplate)}}function
gB(t,i){if(1&t&&(_(0,cB,4,14,"li",22),_(1,pB,3,3,"li",23),_(2,fB,3,3,"li",23)),2&t){const
e=i.$implicit,n=d();p("ngForOf",e),a(1),p("ngIf",n.hasFilter()&&n.isEmpty(e)),a(1),p("ngIf",!n.hasFilter()&&n.isEmpty(e))}}function
_B(t,i){1&t&&Y(0)}function
bB(t,i){if(1&t&&(l(0,"div",30),St(1,1),_(2,_B,1,0,"ng-container",7),c()),2&t){const
e=d();a(2),p("ngTemplateOutlet",e.footerTemplate)}}const
vB=[[["p-header"]],[["p-footer"]]],CB=function(t){return{"p-listbox
p-component":!0,"p-disabled":t}},yB=["p-header","p-footer"],wB={provide:dn,useExisting:je(()=>os),multi:!0};let
os=(()=>{class
t{constructor(e,n,s,r){this.el=e,this.cd=n,this.filterService=s,this.config=r,this.checkbox=!1,this.filter=!1,this.filterMatchMode="contains",this.metaKeySelection=!0,this.showToggleAll=!0,this.optionGroupChildren="items",this.onCha
nge=new H,this.onClick=new H,this.onDblClick=new
H,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?Z.resolveFieldData(e,this.optionLabel):null!=e.label?e.label:e}getOptionGroupChildren(e){return
this.optionGroupChildren?Z.resolveFieldData(e,this.optionG
roupChildren):e.items}getOptionGroupLabel(e){return
this.optionGroupLabel?Z.resolveFieldData(e,this.optionGroupLabel):null!=e.label?e.label:e}getOptionValue(e){return
this.optionValue?Z.resolveFieldData(e,this.optionValue):this.optionLabel||void
0===e.value?e:e.value}isOptionDisabled(e){return
this.optionDisabled?Z.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,n){this.disabled||this.isOptionDisabled(n)||this.readonly||(this.multiple?this.checkbox?this.onOptionClickCheckbox(e,n):this.onOptionClickMultiple(e,n):this.onOptionClickSingle(e,n),this.onClick.emit({originalEvent:e,option:n,value:this.value}),this.optionTouched=!1)}onOptionTouchEnd(e){this.disabled||this.isOptionDisabled(e)||this.readonly||(this.optionTouched=!0)}onOptionDoubleClick(e,n){this.d
isabled||this.isOptionDisabled(n)||this.readonly||this.onDblClick.emit({originalEvent:e,option:n,value:this.value})}onOptionClickSingle(e,n){let
s=this.isSelected(n),r=!1;if(!this.optionTouched&&this.metaKeySelection){let
u=e.metaKey||e.ctrlKey;s?u&&(this.value=null,r=!0):(this.value=this.getOptionValue(n),r=!0)}else
this.value=s?null:this.getOptionValue(n),r=!0;r&&(this.onModelChange(this.value),this.onChange.emit({originalEvent:e,value:this.value}))}onOptionClickMultiple(e,n){let
s=this.isSelected(n),r=!1;if(!this.optionTouched&&this.metaKeySelection){let
u=e.metaKey||e.ctrlKey;s?(u?this.removeOption(n):this.value=[this.getOptionValue(n)],r=!0):(this.value=u&&this.value||[],this.value=[...this.value,this.getOptionValue(n)],r=!0)}else
s?this.removeOption(n):this.value=[...this.value||[],this.getOptionValue(n)],r=!0;r&&(this.onModelChange(this.value),this.onChange.emit({originalEvent:e,value:this.value}))}onOptionClickCheckbox(e,n){this.disabled||this.readonly||(this.isSelected(n)?t
his.removeOption(n):(this.value=this.value?this.value:[],this.value=[...this.value,this.getOptionValue(n)]),this.onModelChange(this.value),this.onChange.emit({originalEvent:e,value:this.value}))}removeOption(e){this.value=this.value.filter(n=>!Z.equals(n,this.getOptionValue(e),this.dataKey))}isSelected(e){let
n=!1,s=this.getOptionValue(e);if(this.multiple){if(this.value)for(let r of
this.value)if(Z.equals(r,s,this.dataKey)){n=!0;break}}else
n=Z.equals(this.value,s,this.dataKey);return n}get allChecked(){let
e=this.optionsToRender;if(!e||0===e.length)return!1;{let
n=0,s=0,r=0,o=this.group?0:this.optionsToRender.length;for(let u of
e)if(this.group)for(let h of this.getOptionGroupChildren(u)){let
b=this.isOptionDisabled(h),y=this.isSelected(h);if(b)y?n++:s++;else{if(!y)return!1;r++}o++}else{let
h=this.isOptionDisabled(u),b=this.isSelected(u);if(h)b?n++:s++;else{if(!b)return!1;r++}}return
o===n||o===r||r&&o===r+s+n}}get optionsToRender(){return
this._filteredOptions||this.options}get em
ptyMessageLabel(){return
this.emptyMessage||this.config.getTranslation(Ft.EMPTY_MESSAGE)}get
emptyFilterMessageLabel(){return
this.emptyFilterMessage||this.config.getTranslation(Ft.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(","),n=[];for(let s of
this.options){let
r=this.filterService.filter(this.getOptionGroupChildren(s),e,this.filterValue,this.filterMatchMode,this.filterLocale);r&&r.length&&n.push(Object.assign(Object.assign({},s),{[this.optionGroupChildren]:r}))}this._filteredOptions=n}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.optionsToRend
er;if(!e||0===e.length)return!0;for(let n of
e)if(!this.isOptionDisabled(n))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
n=[];this.optionsToRender.forEach(s=>{if(this.group){let
r=this.getOptionGroupChildren(s);r&&r.forEach(o=>{let
u=this.isOptionDisabled(o);(!u||u&&this.isSelected(o))&&n.push(this.getOptionValue(o))})}else{let
r=this.isOptionDisabled(s);(!r||r&&this.isSelected(s))&&n.push(this.getOptionValue(s))}}),this.value=n}uncheckAll(){let
n=[];this.optionsToRender.forEach(s=>{this.group?s.items&&s.items.forEach(r=>{this.isOptionDisabled(r)&&this.isSelected(r)&&n.push(this.getOptionValue(r))}):this.isOptionDisabled(s)&&this.isSelected(s)&&n.push(this.getOptionValue(s))}),this.value=n}onOptionKeyDown(e,n){if(this.readonly)return;let
s=e.currentTarget;switch(e.which){cas
e 40:var r=this.findNextItem(s);r&&r.focus(),e.preventDefault();break;case 38:var
o=this.findPrevItem(s);o&&o.focus(),e.preventDefault();break;case
13:this.onOptionClick(e,n),e.preventDefault()}}findNextItem(e){let
n=e.nextElementSibling;return
n?R.hasClass(n,"p-disabled")||R.isHidden(n)||R.hasClass(n,"p-listbox-item-group")?this.findNextItem(n):n:null}findPrevItem(e){let
n=e.previousElementSibling;return
n?R.hasClass(n,"p-disabled")||R.isHidden(n)||R.hasClass(n,"p-listbox-item-group")?this.findPrevItem(n):n:null}onHeaderCheckboxFocus(){this.headerCheckboxFocus=!0}onHeaderCheckboxBlur(){this.headerCheckboxFocus=!1}ngOnDestroy(){this.translationSubscription&&this.translationSubscription.unsubscribe()}}return
t.\u0275fac=function(e){return
new(e||t)(D(De),D(rt),D(hl),D(zn))},t.\u0275cmp=z({type:t,selectors:[["p-listbox"]],contentQueries:function(e,n,s){if(1&e&&(st(s,Oo,5),st(s,fl,5),st(s,ne,4)),2&e){let
r;V(r=B())&&(n.headerFacet=r.first),V(r=B())&&(n.footerFacet=r.first),V(r=B())&&(n
.templates=r)}},viewQuery:function(e,n){if(1&e&&W(U7,5),2&e){let
s;V(s=B())&&(n.headerCheckboxViewChild=s.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:[Pe([wB])],ngContentSelectors:yB,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,n){1&e&&(Sn(vB),l(0,"div",0),_(1,j7,3,1,"div",1),_(2,Q7,3,2,"div",1),l(3,"div",0)(4,"ul",2),_(5,eB,2,1,"ng-container",3),_(6,nB,2,4,"ng-container",3),_(7,gB,3,3,"ng-template",null,4,we),c()(),_(9,bB,3,1,"div",5),c()),2&e&&(me(n.styleClass),p("ngClass",U(13,CB,n.disabled))("ngStyle",n.style),a(1),p("ngIf",n.headerFacet||n.headerTemplate),a(1),p("ngIf",n.checkbox&&n.multiple&&n.showToggleAll||n.filter),a(1),me(n.listStyleClass),p("ngClass","p-listbox-list-wrapper")("ngStyle",n.listStyle),a(2),p("ngIf",n.group),a(1),p("ngIf",!n.group),a(3),p("ngIf",n.footerFacet||n.footerTemplate))},directives:[Le,lt,Q,Rt,at,bt],styles:[".p-listbox-list-wrapper{overflow:auto}.p-listbox-list{list-style-type:none;margin:0;padding:0}.p-listbox-it
em{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})(),TB=(()=>{class
t{}return t.\u0275fac=function(e){return
new(e||t)},t.\u0275mod=he({type:t}),t.\u0275inj=ue({imports:[[Fe,Nt,pn],Nt]}),t})();class
zi extends ct{constructor(i){super(),this._value=i}get value(){return
this.getValue()}_subscribe(i){const e=super._subscribe(i);return
e&&!e.closed&&i.next(this._value),e}getValue(){if(this.hasError)throw
this.thrownError;if(this.closed)throw new nr;return
this._value}next(i){super.next(this._value=i)}}class SB extends
yt{notifyNext(i,e,n,s,r){this.destination.next(e)}notifyError(i,e){this.destination.error(i)}notifyComplete(i){this.destination.complete()}}class
xB ex
tends
yt{constructor(i,e,n){super(),this.parent=i,this.outerValue=e,this.outerIndex=n,this.index=0}_next(i){this.parent.notifyNext(this.outerValue,i,this.outerIndex,this.index++,this)}_error(i){this.parent.notifyError(i,this),this.unsubscribe()}_complete(){this.parent.notifyComplete(this),this.unsubscribe()}}function
DB(t,i,e,n,s=new xB(t,e,n)){if(!s.closed)return i instanceof
Je?i.subscribe(s):Od(i)(s)}const PT={};class
kB{constructor(i){this.resultSelector=i}call(i,e){return e.subscribe(new
IB(i,this.resultSelector))}}class IB extends
SB{constructor(i,e){super(i),this.resultSelector=e,this.active=0,this.values=[],this.observables=[]}_next(i){this.values.push(PT),this.observables.push(i)}_complete(){const
i=this.observables,e=i.length;if(0===e)this.destination.complete();else{this.active=e,this.toRespond=e;for(let
n=0;n<e;n++)this.add(DB(this,i[n],void
0,n))}}notifyComplete(i){0==(this.active-=1)&&this.destination.complete()}notifyNext(i,e,n){const
s=this.values,o=this.toRespond?s[
n]===PT?--this.toRespond:this.toRespond:0;s[n]=e,0===o&&(this.resultSelector?this._tryResultSelector(s):this.destination.next(s.slice()))}_tryResultSelector(i){let
e;try{e=this.resultSelector.apply(this,i)}catch(n){return void
this.destination.error(n)}this.destination.next(e)}}const td=(()=>{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 FT(t,i){let e=!1;return
arguments.length>=2&&(e=!0),function(s){return s.lift(new EB(t,i,e))}}class
EB{constructor(i,e,n=!1){this.accumulator=i,this.seed=e,this.hasSeed=n}call(i,e){return
e.subscribe(new RB(i,this.accumulator,this.seed,this.hasSeed))}}class RB extends
yt{constructor(i,e,n,s){super(i),this.accumulator=e,this._seed=n,this.hasSeed=s,this.index=0}get
seed(){return this._seed}set
seed(i){this.hasSeed=!0,this._seed=i}_next(i){if(this.hasSeed)return
this._tryNext(i);this.seed=i,this.destination.next(i)}_tryNext(i){cons
t e=this.index++;let
n;try{n=this.accumulator(this.seed,i,e)}catch(s){this.destination.error(s)}this.seed=n,this.destination.next(n)}}function
Mr(t){return function(e){const n=new LB(t),s=e.lift(n);return n.caught=s}}class
LB{constructor(i){this.selector=i}call(i,e){return e.subscribe(new
OB(i,this.selector,this.caught))}}class OB extends
Zo{constructor(i,e,n){super(i),this.selector=e,this.caught=n}error(i){if(!this.isStopped){let
e;try{e=this.selector(i,this.caught)}catch(r){return void
super.error(r)}this._unsubscribeAndRecycle();const n=new Yo(this);this.add(n);const
s=Xo(e,n);s!==n&&this.add(s)}}}function eg(t){return function(e){return
0===t?lu():e.lift(new AB(t))}}class
AB{constructor(i){if(this.total=i,this.total<0)throw new s0}call(i,e){return
e.subscribe(new PB(i,this.total))}}class PB extends
yt{constructor(i,e){super(i),this.total=e,this.ring=new Array,this.count=0}_next(i){const
e=this.ring,n=this.total,s=this.count++;e.length<n?e.push(i):e[s%n]=i}_complete(){const
i=thi
s.destination;let e=this.count;if(e>0){const
n=this.count>=this.total?this.total:this.count,s=this.ring;for(let
r=0;r<n;r++){const o=e++%n;i.next(s[o])}}i.complete()}}function NT(t=VB){return
i=>i.lift(new FB(t))}class FB{constructor(i){this.errorFactory=i}call(i,e){return
e.subscribe(new NB(i,this.errorFactory))}}class NB extends
yt{constructor(i,e){super(i),this.errorFactory=e,this.hasValue=!1}_next(i){this.hasValue=!0,this.destination.next(i)}_complete(){if(this.hasValue)return
this.destination.complete();{let
i;try{i=this.errorFactory()}catch(e){i=e}this.destination.error(i)}}}function VB(){return
new td}function VT(t=null){return i=>i.lift(new BB(t))}class
BB{constructor(i){this.defaultValue=i}call(i,e){return e.subscribe(new
HB(i,this.defaultValue))}}class HB extends
yt{constructor(i,e){super(i),this.defaultValue=e,this.isEmpty=!0}_next(i){this.isEmpty=!1,this.destination.next(i)}_complete(){this.isEmpty&&this.destination.next(this.defaultValue),this.destination.complete()}}fu
nction No(t,i){const e=arguments.length>=2;return
n=>n.pipe(t?Us((s,r)=>t(s,r,n)):Bl,br(1),e?VT(i):NT(()=>new td))}function
Js(){}function li(t,i,e){return function(s){return s.lift(new GB(t,i,e))}}class
GB{constructor(i,e,n){this.nextOrObserver=i,this.error=e,this.complete=n}call(i,e){return
e.subscribe(new UB(i,this.nextOrObserver,this.error,this.complete))}}class UB extends
yt{constructor(i,e,n,s){super(i),this._tapNext=Js,this._tapError=Js,this._tapComplete=Js,this._tapError=n||Js,this._tapComplete=s||Js,Is(e)?(this._context=this,this._tapNext=e):e&&(this._context=e,this._tapNext=e.next||Js,this._tapError=e.error||Js,this._tapComplete=e.complete||Js)}_next(i){try{this._tapNext.call(this._context,i)}catch(e){return
void
this.destination.error(e)}this.destination.next(i)}_error(i){try{this._tapError.call(this._context,i)}catch(e){return
void
this.destination.error(e)}this.destination.error(i)}_complete(){try{this._tapComplete.call(this._context)}catch(i){return
void this.destinati
on.error(i)}return this.destination.complete()}}class
jB{constructor(i){this.callback=i}call(i,e){return e.subscribe(new
$B(i,this.callback))}}class $B extends yt{constructor(i,e){super(i),this.add(new
Et(e))}}class xs{constructor(i,e){this.id=i,this.url=e}}class tg extends
xs{constructor(i,e,n="imperative",s=null){super(i,e),this.navigationTrigger=n,this.restoredState=s}toString(){return`NavigationStart(id:
${this.id}, url: '${this.url}')`}}class vl extends
xs{constructor(i,e,n){super(i,e),this.urlAfterRedirects=n}toString(){return`NavigationEnd(id:
${this.id}, url: '${this.url}', urlAfterRedirects:
'${this.urlAfterRedirects}')`}}class BT extends
xs{constructor(i,e,n){super(i,e),this.reason=n}toString(){return`NavigationCancel(id:
${this.id}, url: '${this.url}')`}}class WB extends
xs{constructor(i,e,n){super(i,e),this.error=n}toString(){return`NavigationError(id:
${this.id}, url: '${this.url}', error: ${this.error})`}}class KB extends
xs{constructor(i,e,n,s){super(i,e),this.urlAfte
rRedirects=n,this.state=s}toString(){return`RoutesRecognized(id: ${this.id}, url:
'${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state:
${this.state})`}}class QB extends
xs{constructor(i,e,n,s){super(i,e),this.urlAfterRedirects=n,this.state=s}toString(){return`GuardsCheckStart(id:
${this.id}, url: '${this.url}', urlAfterRedirects:
'${this.urlAfterRedirects}', state: ${this.state})`}}class JB extends
xs{constructor(i,e,n,s,r){super(i,e),this.urlAfterRedirects=n,this.state=s,this.shouldActivate=r}toString(){return`GuardsCheckEnd(id:
${this.id}, url: '${this.url}', urlAfterRedirects:
'${this.urlAfterRedirects}', state: ${this.state}, shouldActivate:
${this.shouldActivate})`}}class YB extends
xs{constructor(i,e,n,s){super(i,e),this.urlAfterRedirects=n,this.state=s}toString(){return`ResolveStart(id:
${this.id}, url: '${this.url}', urlAfterRedirects:
'${this.urlAfterRedirects}', state: ${this.state})`}}class ZB extends
xs{constructor(i,e,n,s){super(i,e),this.urlAfterRedire
cts=n,this.state=s}toString(){return`ResolveEnd(id: ${this.id}, url:
'${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state:
${this.state})`}}class
HT{constructor(i){this.route=i}toString(){return`RouteConfigLoadStart(path:
${this.route.path})`}}class
qT{constructor(i){this.route=i}toString(){return`RouteConfigLoadEnd(path:
${this.route.path})`}}class
XB{constructor(i){this.snapshot=i}toString(){return`ChildActivationStart(path:
'${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class
e8{constructor(i){this.snapshot=i}toString(){return`ChildActivationEnd(path:
'${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class
t8{constructor(i){this.snapshot=i}toString(){return`ActivationStart(path:
'${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class
n8{constructor(i){this.snapshot=i}toString(){return`ActivationEnd(path:
'${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class
GT{constructor(i,e,n){t
his.routerEvent=i,this.position=e,this.anchor=n}toString(){return`Scroll(anchor:
'${this.anchor}', position: '${this.position?`${this.position[0]},
${this.position[1]}`:null}')`}}const Ke="primary";class
i8{constructor(i){this.params=i||{}}has(i){return
Object.prototype.hasOwnProperty.call(this.params,i)}get(i){if(this.has(i)){const
e=this.params[i];return Array.isArray(e)?e[0]:e}return
null}getAll(i){if(this.has(i)){const e=this.params[i];return
Array.isArray(e)?e:[e]}return[]}get keys(){return Object.keys(this.params)}}function
Vo(t){return new i8(t)}const UT="ngNavigationCancelingError";function
ng(t){const i=Error("NavigationCancelingError: "+t);return i[UT]=!0,i}function
r8(t,i,e){const
n=e.path.split("/");if(n.length>t.length||"full"===e.pathMatch&&(i.hasChildren()||n.length<t.length))return
null;const s={};for(let r=0;r<n.length;r++){const
o=n[r],u=t[r];if(o.startsWith(":"))s[o.substring(1)]=u;else if(o!==u.path)return
null}return{consumed:t.slice(0,n.length),posParams:s}}fun
ction as(t,i){const e=t?Object.keys(t):void 0,n=i?Object.keys(i):void
0;if(!e||!n||e.length!=n.length)return!1;let s;for(let
r=0;r<e.length;r++)if(s=e[r],!zT(t[s],i[s]))return!1;return!0}function
zT(t,i){if(Array.isArray(t)&&Array.isArray(i)){if(t.length!==i.length)return!1;const
e=[...t].sort(),n=[...i].sort();return e.every((s,r)=>n[r]===s)}return t===i}function
jT(t){return Array.prototype.concat.apply([],t)}function $T(t){return
t.length>0?t[t.length-1]:null}function xn(t,i){for(const e in
t)t.hasOwnProperty(e)&&i(t[e],e)}function ls(t){return
Dh(t)?t:Ra(t)?Mn(Promise.resolve(t)):oe(t)}const l8={exact:function
QT(t,i,e){if(!Ir(t.segments,i.segments)||!nd(t.segments,i.segments,e)||t.numberOfChildren!==i.numberOfChildren)return!1;for(const
n in
i.children)if(!t.children[n]||!QT(t.children[n],i.children[n],e))return!1;return!0},subset:JT},WT={exact:function
c8(t,i){return as(t,i)},subset:function u8(t,i){return
Object.keys(i).length<=Object.keys(t).length&&Object.keys(i).every(e=>z
T(t[e],i[e]))},ignored:()=>!0};function KT(t,i,e){return
l8[e.paths](t.root,i.root,e.matrixParams)&&WT[e.queryParams](t.queryParams,i.queryParams)&&!("exact"===e.fragment&&t.fragment!==i.fragment)}function
JT(t,i,e){return YT(t,i,i.segments,e)}function
YT(t,i,e,n){if(t.segments.length>e.length){const
s=t.segments.slice(0,e.length);return!(!Ir(s,e)||i.hasChildren()||!nd(s,e,n))}if(t.segments.length===e.length){if(!Ir(t.segments,e)||!nd(t.segments,e,n))return!1;for(const
s in
i.children)if(!t.children[s]||!JT(t.children[s],i.children[s],n))return!1;return!0}{const
s=e.slice(0,t.segments.length),r=e.slice(t.segments.length);return!!(Ir(t.segments,s)&&nd(t.segments,s,n)&&t.children[Ke])&&YT(t.children[Ke],i,r,n)}}function
nd(t,i,e){return i.every((n,s)=>WT[e](t[s].parameters,n.parameters))}class
kr{constructor(i,e,n){this.root=i,this.queryParams=e,this.fragment=n}get
queryParamMap(){return
this._queryParamMap||(this._queryParamMap=Vo(this.queryParams)),this._queryParamMap}toString(){ret
urn h8.serialize(this)}}class
Xe{constructor(i,e){this.segments=i,this.children=e,this.parent=null,xn(e,(n,s)=>n.parent=this)}hasChildren(){return
this.numberOfChildren>0}get numberOfChildren(){return
Object.keys(this.children).length}toString(){return id(this)}}class
Cl{constructor(i,e){this.path=i,this.parameters=e}get parameterMap(){return
this._parameterMap||(this._parameterMap=Vo(this.parameters)),this._parameterMap}toString(){return
n2(this)}}function Ir(t,i){return
t.length===i.length&&t.every((e,n)=>e.path===i[n].path)}class ZT{}class
XT{parse(i){const e=new w8(i);return new
kr(e.parseRootSegment(),e.parseQueryParams(),e.parseFragment())}serialize(i){const
e=`/${yl(i.root,!0)}`,n=function g8(t){const i=Object.keys(t).map(e=>{const
n=t[e];return
Array.isArray(n)?n.map(s=>`${sd(e)}=${sd(s)}`).join("&"):`${sd(e)}=${sd(n)}`}).filter(e=>!!e);return
i.length?`?${i.join("&")}`:""}(i.queryParams),s="string"==typeof
i.fragment?`#${function m8(t){return encodeURI(t)}(i.fragment)}`:"";
return`${e}${n}${s}`}}const h8=new XT;function id(t){return
t.segments.map(i=>n2(i)).join("/")}function
yl(t,i){if(!t.hasChildren())return id(t);if(i){const
e=t.children[Ke]?yl(t.children[Ke],!1):"",n=[];return
xn(t.children,(s,r)=>{r!==Ke&&n.push(`${r}:${yl(s,!1)}`)}),n.length>0?`${e}(${n.join("//")})`:e}{const
e=function p8(t,i){let e=[];return
xn(t.children,(n,s)=>{s===Ke&&(e=e.concat(i(n,s)))}),xn(t.children,(n,s)=>{s!==Ke&&(e=e.concat(i(n,s)))}),e}(t,(n,s)=>s===Ke?[yl(t.children[Ke],!1)]:[`${s}:${yl(n,!1)}`]);return
1===Object.keys(t.children).length&&null!=t.children[Ke]?`${id(t)}/${e[0]}`:`${id(t)}/(${e.join("//")})`}}function
e2(t){return
encodeURIComponent(t).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function
sd(t){return e2(t).replace(/%3B/gi,";")}function ig(t){return
e2(t).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function
rd(t){return decodeURIComponent(t)}function t2(t){return
rd(t.replace(/\+/g,"%20"))}funct
ion n2(t){return`${ig(t.path)}${function f8(t){return
Object.keys(t).map(i=>`;${ig(i)}=${ig(t[i])}`).join("")}(t.parameters)}`}const
_8=/^[^\/()?;=#]+/;function od(t){const i=t.match(_8);return i?i[0]:""}const
b8=/^[^=?&#]+/,C8=/^[^&#]+/;class
w8{constructor(i){this.url=i,this.remaining=i}parseRootSegment(){return
this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new
Xe([],{}):new Xe([],this.parseChildren())}parseQueryParams(){const
i={};if(this.consumeOptional("?"))do{this.parseQueryParam(i)}while(this.consumeOptional("&"));return
i}parseFragment(){return
this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(""===this.remaining)return{};this.consumeOptional("/");const
i=[];for(this.peekStartsWith("(")||i.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),i.push(this.parseSegment());let
e={};this.peekStartsWith("/(")&&(this.capture
("/"),e=this.parseParens(!0));let n={};return
this.peekStartsWith("(")&&(n=this.parseParens(!1)),(i.length>0||Object.keys(e).length>0)&&(n[Ke]=new
Xe(i,e)),n}parseSegment(){const
i=od(this.remaining);if(""===i&&this.peekStartsWith(";"))throw
new Error(`Empty path url segment cannot have parameters:
'${this.remaining}'.`);return this.capture(i),new
Cl(rd(i),this.parseMatrixParams())}parseMatrixParams(){const
i={};for(;this.consumeOptional(";");)this.parseParam(i);return
i}parseParam(i){const e=od(this.remaining);if(!e)return;this.capture(e);let
n="";if(this.consumeOptional("=")){const
s=od(this.remaining);s&&(n=s,this.capture(n))}i[rd(e)]=rd(n)}parseQueryParam(i){const
e=function v8(t){const i=t.match(b8);return
i?i[0]:""}(this.remaining);if(!e)return;this.capture(e);let
n="";if(this.consumeOptional("=")){const o=function y8(t){const
i=t.match(C8);return
i?i[0]:""}(this.remaining);o&&(n=o,this.capture(n))}const
s=t2(e),r=t2(n);if(i.hasOwnProperty(s)){let o=i[s];Array.isArray(o)||(o=[
o],i[s]=o),o.push(r)}else i[s]=r}parseParens(i){const
e={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const
n=od(this.remaining),s=this.remaining[n.length];if("/"!==s&&")"!==s&&";"!==s)throw
new Error(`Cannot parse url '${this.url}'`);let
r;n.indexOf(":")>-1?(r=n.substr(0,n.indexOf(":")),this.capture(r),this.capture(":")):i&&(r=Ke);const
o=this.parseChildren();e[r]=1===Object.keys(o).length?o[Ke]:new
Xe([],o),this.consumeOptional("//")}return e}peekStartsWith(i){return
this.remaining.startsWith(i)}consumeOptional(i){return!!this.peekStartsWith(i)&&(this.remaining=this.remaining.substring(i.length),!0)}capture(i){if(!this.consumeOptional(i))throw
new Error(`Expected "${i}".`)}}class s2{constructor(i){this._root=i}get
root(){return this._root.value}parent(i){const e=this.pathFromRoot(i);return
e.length>1?e[e.length-2]:null}children(i){const e=sg(i,this._root);return
e?e.children.map(n=>n.value):[]}firstChild(i){const e=sg(i,this._root);return
e&&e.chil
dren.length>0?e.children[0].value:null}siblings(i){const e=rg(i,this._root);return
e.length<2?[]:e[e.length-2].children.map(s=>s.value).filter(s=>s!==i)}pathFromRoot(i){return
rg(i,this._root).map(e=>e.value)}}function sg(t,i){if(t===i.value)return i;for(const e
of i.children){const n=sg(t,e);if(n)return n}return null}function
rg(t,i){if(t===i.value)return[i];for(const e of i.children){const
n=rg(t,e);if(n.length)return n.unshift(i),n}return[]}class
Ds{constructor(i,e){this.value=i,this.children=e}toString(){return`TreeNode(${this.value})`}}function
Bo(t){const i={};return t&&t.children.forEach(e=>i[e.value.outlet]=e),i}class
r2 extends s2{constructor(i,e){super(i),this.snapshot=e,og(this,i)}toString(){return
this.snapshot.toString()}}function o2(t,i){const e=function T8(t,i){const o=new
ad([],{},{},"",{},Ke,i,null,t.root,-1,{});return new l2("",new
Ds(o,[]))}(t,i),n=new zi([new Cl("",{})]),s=new zi({}),r=new zi({}),o=new
zi({}),u=new zi(""),h=new Er(n,s,o,u,r,Ke,i,e.root);return h.
snapshot=e.root,new r2(new Ds(h,[]),e)}class
Er{constructor(i,e,n,s,r,o,u,h){this.url=i,this.params=e,this.queryParams=n,this.fragment=s,this.data=r,this.outlet=o,this.component=u,this._futureSnapshot=h}get
routeConfig(){return this._futureSnapshot.routeConfig}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=this.params.pipe(et(i=>Vo(i)))),this._paramMap}get
queryParamMap(){return
this._queryParamMap||(this._queryParamMap=this.queryParams.pipe(et(i=>Vo(i)))),this._queryParamMap}toString(){return
this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function
a2(t,i="emptyOnly"){const e=t.pathFromRoot;let
n=0;if("always"!==i)for(n=e.length-1;n>=1;){const
s=e[n],r=e[n-1];if(s.routeConfig&&""===s.r
outeConfig.path)n--;else{if(r.component)break;n--}}return function S8(t){return
t.reduce((i,e)=>({params:Object.assign(Object.assign({},i.params),e.params),data:Object.assign(Object.assign({},i.data),e.data),resolve:Object.assign(Object.assign({},i.resolve),e._resolvedData)}),{params:{},data:{},resolve:{}})}(e.slice(n))}class
ad{constructor(i,e,n,s,r,o,u,h,b,y,w){this.url=i,this.params=e,this.queryParams=n,this.fragment=s,this.data=r,this.outlet=o,this.component=u,this.routeConfig=h,this._urlSegment=b,this._lastPathIndex=y,this._resolve=w}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=Vo(this.params)),this._paramMap}get queryParamMap(){return
this._queryParamMap||(this._queryParamMap=Vo(this.queryParams)),this._
queryParamMap}toString(){return`Route(url:'${this.url.map(n=>n.toString()).join("/")}',
path:'${this.routeConfig?this.routeConfig.path:""}')`}}class l2 extends
s2{constructor(i,e){super(e),this.url=i,og(this,e)}toString(){return
c2(this._root)}}function
og(t,i){i.value._routerState=t,i.children.forEach(e=>og(t,e))}function c2(t){const
i=t.children.length>0?` { ${t.children.map(c2).join(", ")} }
`:"";return`${t.value}${i}`}function ag(t){if(t.snapshot){const
i=t.snapshot,e=t._futureSnapshot;t.snapshot=e,as(i.queryParams,e.queryParams)||t.queryParams.next(e.queryParams),i.fragment!==e.fragment&&t.fragment.next(e.fragment),as(i.params,e.params)||t.params.next(e.params),function
o8(t,i){if(t.length!==i.length)return!1;for(let
e=0;e<t.length;++e)if(!as(t[e],i[e]))return!1;return!0}(i.url,e.url)||t.url.next(e.url),as(i.data,e.data)||t.data.next(e.data)}else
t.snapshot=t._futureSnapshot,t.data.next(t._futureSnapshot.data)}function lg(t,i){const
e=as(t.params,i.params)&&function d8(t,i){ret
urn
Ir(t,i)&&t.every((e,n)=>as(e.parameters,i[n].parameters))}(t.url,i.url);return
e&&!(!t.parent!=!i.parent)&&(!t.parent||lg(t.parent,i.parent))}function
wl(t,i,e){if(e&&t.shouldReuseRoute(i.value,e.value.snapshot)){const
n=e.value;n._futureSnapshot=i.value;const s=function D8(t,i,e){return
i.children.map(n=>{for(const s of
e.children)if(t.shouldReuseRoute(n.value,s.value.snapshot))return wl(t,n,s);return
wl(t,n)})}(t,i,e);return new Ds(n,s)}{if(t.shouldAttach(i.value)){const
r=t.retrieve(i.value);if(null!==r){const o=r.route;return
o.value._futureSnapshot=i.value,o.children=i.children.map(u=>wl(t,u)),o}}const
n=function M8(t){return new Er(new zi(t.url),new zi(t.params),new zi(t.queryParams),new
zi(t.fragment),new
zi(t.data),t.outlet,t.component,t)}(i.value),s=i.children.map(r=>wl(t,r));return new
Ds(n,s)}}function ld(t){return"object"==typeof
t&&null!=t&&!t.outlets&&!t.segmentPath}function
Tl(t){return"object"==typeof t&&null!=t&&t.outlets}function
cg(t,i,e,n,s){let r={};if(n&&xn
(n,(u,h)=>{r[h]=Array.isArray(u)?u.map(b=>`${b}`):`${u}`}),t===i)return new
kr(e,r,s);const o=u2(t,i,e);return new kr(o,r,s)}function u2(t,i,e){const n={};return
xn(t.children,(s,r)=>{n[r]=s===i?e:u2(s,i,e)}),new Xe(t.segments,n)}class
d2{constructor(i,e,n){if(this.isAbsolute=i,this.numberOfDoubleDots=e,this.commands=n,i&&n.length>0&&ld(n[0]))throw
new Error("Root segment cannot have matrix parameters");const
s=n.find(Tl);if(s&&s!==$T(n))throw new Error("{outlets:{}} has to be the last
command")}toRoot(){return
this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class
ug{constructor(i,e,n){this.segmentGroup=i,this.processChildren=e,this.index=n}}function
p2(t,i,e){if(t||(t=new Xe([],{})),0===t.segments.length&&t.hasChildren())return
cd(t,i,e);const n=function O8(t,i,e){let n=0,s=i;const
r={match:!1,pathIndex:0,commandIndex:0};for(;s<t.segments.length;){if(n>=e.length)return
r;const o=t.segments[s],u=e[n];if(Tl(u))break;const
h=`${u}`,b=n<e.length-1?e[n+1]:null;if(s>0&&
void 0===h)break;if(h&&b&&"object"==typeof b&&void
0===b.outlets){if(!m2(h,b,o))return r;n+=2}else{if(!m2(h,{},o))return
r;n++}s++}return{match:!0,pathIndex:s,commandIndex:n}}(t,i,e),s=e.slice(n.commandIndex);if(n.match&&n.pathIndex<t.segments.length){const
r=new Xe(t.segments.slice(0,n.pathIndex),{});return r.children[Ke]=new
Xe(t.segments.slice(n.pathIndex),t.children),cd(r,0,s)}return
n.match&&0===s.length?new
Xe(t.segments,{}):n.match&&!t.hasChildren()?dg(t,i,e):n.match?cd(t,0,s):dg(t,i,e)}function
cd(t,i,e){if(0===e.length)return new Xe(t.segments,{});{const n=function L8(t){return
Tl(t[0])?t[0].outlets:{[Ke]:t}}(e),s={};return xn(n,(r,o)=>{"string"==typeof
r&&(r=[r]),null!==r&&(s[o]=p2(t.children[o],i,r))}),xn(t.children,(r,o)=>{void
0===n[o]&&(s[o]=r)}),new Xe(t.segments,s)}}function dg(t,i,e){const
n=t.segments.slice(0,i);let s=0;for(;s<e.length;){const r=e[s];if(Tl(r)){const
h=A8(r.outlets);return new Xe(n,h)}if(0===s&&ld(e[0])){n.push(new
Cl(t.segments[i].path,h2(e[0]))),s
++;continue}const
o=Tl(r)?r.outlets[Ke]:`${r}`,u=s<e.length-1?e[s+1]:null;o&&u&&ld(u)?(n.push(new
Cl(o,h2(u))),s+=2):(n.push(new Cl(o,{})),s++)}return new Xe(n,{})}function A8(t){const
i={};return xn(t,(e,n)=>{"string"==typeof
e&&(e=[e]),null!==e&&(i[n]=dg(new Xe([],{}),0,e))}),i}function h2(t){const
i={};return xn(t,(e,n)=>i[n]=`${e}`),i}function m2(t,i,e){return
t==e.path&&as(i,e.parameters)}class
F8{constructor(i,e,n,s){this.routeReuseStrategy=i,this.futureState=e,this.currState=n,this.forwardEvent=s}activate(i){const
e=this.futureState._root,n=this.currState?this.currState._root:null;this.deactivateChildRoutes(e,n,i),ag(this.futureState.root),this.activateChildRoutes(e,n,i)}deactivateChildRoutes(i,e,n){const
s=Bo(e);i.children.forEach(r=>{const
o=r.value.outlet;this.deactivateRoutes(r,s[o],n),delete
s[o]}),xn(s,(r,o)=>{this.deactivateRouteAndItsChildren(r,n)})}deactivateRoutes(i,e,n){const
s=i.value,r=e?e.value:null;if(s===r)if(s.component){const
o=n.getContext(s.outlet);o&&this
.deactivateChildRoutes(i,e,o.children)}else this.deactivateChildRoutes(i,e,n);else
r&&this.deactivateRouteAndItsChildren(e,n)}deactivateRouteAndItsChildren(i,e){i.value.component&&this.routeReuseStrategy.shouldDetach(i.value.snapshot)?this.detachAndStoreRouteSubtree(i,e):this.deactivateRouteAndOutlet(i,e)}detachAndStoreRouteSubtree(i,e){const
n=e.getContext(i.value.outlet),s=n&&i.value.component?n.children:e,r=Bo(i);for(const
o of
Object.keys(r))this.deactivateRouteAndItsChildren(r[o],s);if(n&&n.outlet){const
o=n.outlet.detach(),u=n.children.onOutletDeactivated();this.routeReuseStrategy.store(i.value.snapshot,{componentRef:o,route:i,contexts:u})}}deactivateRouteAndOutlet(i,e){const
n=e.getContext(i.value.outlet),s=n&&i.value.component?n.children:e,r=Bo(i);for(const
o of
Object.keys(r))this.deactivateRouteAndItsChildren(r[o],s);n&&n.outlet&&(n.outlet.deactivate(),n.children.onOutletDeactivated(),n.attachRef=null,n.resolver=null,n.route=null)}activateChildRoutes(i,e,n){const
s=Bo(e);i
.children.forEach(r=>{this.activateRoutes(r,s[r.value.outlet],n),this.forwardEvent(new
n8(r.value.snapshot))}),i.children.length&&this.forwardEvent(new
e8(i.value.snapshot))}activateRoutes(i,e,n){const
s=i.value,r=e?e.value:null;if(ag(s),s===r)if(s.component){const
o=n.getOrCreateContext(s.outlet);this.activateChildRoutes(i,e,o.children)}else
this.activateChildRoutes(i,e,n);else if(s.component){const
o=n.getOrCreateContext(s.outlet);if(this.routeReuseStrategy.shouldAttach(s.snapshot)){const
u=this.routeReuseStrategy.retrieve(s.snapshot);this.routeReuseStrategy.store(s.snapshot,null),o.children.onOutletReAttached(u.contexts),o.attachRef=u.componentRef,o.route=u.route.value,o.outlet&&o.outlet.attach(u.componentRef,u.route.value),ag(u.route.value),this.activateChildRoutes(i,null,o.children)}else{const
u=function N8(t){for(let i=t.parent;i;i=i.parent){const
e=i.routeConfig;if(e&&e._loadedConfig)return
e._loadedConfig;if(e&&e.component)return null}return
null}(s.snapshot),h=u?u.module.co
mponentFactoryResolver:null;o.attachRef=null,o.route=s,o.resolver=h,o.outlet&&o.outlet.activateWith(s,h),this.activateChildRoutes(i,null,o.children)}}else
this.activateChildRoutes(i,null,n)}}class
pg{constructor(i,e){this.routes=i,this.module=e}}function
Ys(t){return"function"==typeof t}function Rr(t){return t instanceof kr}const
Sl=Symbol("INITIAL_VALUE");function xl(){return qi(t=>function MB(...t){let
i,e;return Vr(t[t.length-1])&&(e=t.pop()),"function"==typeof
t[t.length-1]&&(i=t.pop()),1===t.length&&Nr(t[0])&&(t=t[0]),Pd(t,e).lift(new
kB(i))}(t.map(i=>i.pipe(br(1),Ju(Sl)))).pipe(FT((i,e)=>{let n=!1;return
e.reduce((s,r,o)=>s!==Sl?s:(r===Sl&&(n=!0),n||!1!==r&&o!==e.length-1&&!Rr(r)?s:r),i)},Sl),Us(i=>i!==Sl),et(i=>Rr(i)?i:!0===i),br(1)))}class
U8{constructor(){this.outlet=null,this.route=null,this.resolver=null,this.children=new
Dl,this.attachRef=null}}class Dl{constructor(){this.contexts=new
Map}onChildOutletCreated(i,e){const n=this.getOrCreateContext(i);n.outlet=e,this.contex
ts.set(i,n)}onChildOutletDestroyed(i){const
e=this.getContext(i);e&&(e.outlet=null,e.attachRef=null)}onOutletDeactivated(){const
i=this.contexts;return this.contexts=new
Map,i}onOutletReAttached(i){this.contexts=i}getOrCreateContext(i){let
e=this.getContext(i);return e||(e=new U8,this.contexts.set(i,e)),e}getContext(i){return
this.contexts.get(i)||null}}let Ml=(()=>{class
t{constructor(e,n,s,r,o){this.parentContexts=e,this.location=n,this.resolver=s,this.changeDetector=o,this.activated=null,this._activatedRoute=null,this.activateEvents=new
H,this.deactivateEvents=new H,this.attachEvents=new H,this.detachEvents=new
H,this.name=r||Ke,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,n){this.activated=e,this._activatedRoute=n,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,n){if(this.isActivated)throw
new Error("Cannot activate an already activated
outlet");this._activatedRoute=e;const
o=(n=n||this.resolver).resolveComponentFactory(e._futureSnapshot.routeConfig.component),u=this.p
arentContexts.getOrCreateContext(this.name).children,h=new
z8(e,u,this.location.injector);this.activated=this.location.createComponent(o,this.location.length,h),this.changeDetector.markForCheck(),this.activateEvents.emit(this.activated.instance)}}return
t.\u0275fac=function(e){return
new(e||t)(D(Dl),D(vi),D(Va),ua("name"),D(rt))},t.\u0275dir=le({type:t,selectors:[["router-outlet"]],outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"]}),t})();class
z8{constructor(i,e,n){this.route=i,this.childContexts=e,this.parent=n}get(i,e){return
i===Er?this.route:i===Dl?this.childContexts:this.parent.get(i,e)}}let f2=(()=>{class
t{}return t.\u0275fac=function(e){return
new(e||t)},t.\u0275cmp=z({type:t,selectors:[["ng-component"]],decls:1,vars:0,template:function(e,n){1&e&&k(0,"router-outlet")},directives:[Ml],encapsulation:2}),t})();function
g2(t,i=""){for(let e=0;e<t.length;e++){const n=t[e];j8(n,$8(i,n))}}function
j8(t
,i){t.children&&g2(t.children,i)}function $8(t,i){return
i?t||i.path?t&&!i.path?`${t}/`:!t&&i.path?i.path:`${t}/${i.path}`:"":t}function
hg(t){const
i=t.children&&t.children.map(hg),e=i?Object.assign(Object.assign({},t),{children:i}):Object.assign({},t);return!e.component&&(i||e.loadChildren)&&e.outlet&&e.outlet!==Ke&&(e.component=f2),e}function
xi(t){return t.outlet||Ke}function _2(t,i){const e=t.filter(n=>xi(n)===i);return
e.push(...t.filter(n=>xi(n)!==i)),e}const
b2={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function
ud(t,i,e){var
n;if(""===i.path)return"full"===i.pathMatch&&(t.hasChildren()||e.length>0)?Object.assign({},b2):{matched:!0,consumedSegments:[],remainingSegments:e,parameters:{},positionalParamSegments:{}};const
r=(i.matcher||r8)(e,t,i);if(!r)return Object.assign({},b2);const
o={};xn(r.posParams,(h,b)=>{o[b]=h.path});const
u=r.consumed.length>0?Object.assign(Object.assign({},o),r.consumed[r.consumed.length-1].paramete
rs):o;return{matched:!0,consumedSegments:r.consumed,remainingSegments:e.slice(r.consumed.length),parameters:u,positionalParamSegments:null!==(n=r.posParams)&&void
0!==n?n:{}}}function
dd(t,i,e,n,s="corrected"){if(e.length>0&&function Q8(t,i,e){return
e.some(n=>pd(t,i,n)&&xi(n)!==Ke)}(t,e,n)){const o=new Xe(i,function
K8(t,i,e,n){const s={};s[Ke]=n,n._sourceSegment=t,n._segmentIndexShift=i.length;for(const
r of e)if(""===r.path&&xi(r)!==Ke){const o=new
Xe([],{});o._sourceSegment=t,o._segmentIndexShift=i.length,s[xi(r)]=o}return s}(t,i,n,new
Xe(e,t.children)));return
o._sourceSegment=t,o._segmentIndexShift=i.length,{segmentGroup:o,slicedSegments:[]}}if(0===e.length&&function
J8(t,i,e){return e.some(n=>pd(t,i,n))}(t,e,n)){const o=new Xe(t.segments,function
W8(t,i,e,n,s,r){const o={};for(const u of n)if(pd(t,e,u)&&!s[xi(u)]){const h=new
Xe([],{});h._sourceSegment=t,h._segmentIndexShift="legacy"===r?t.segments.length:i.length,o[xi(u)]=h}return
Object.assign(Object.assign({},s),o)}(t,i,e,
n,t.children,s));return
o._sourceSegment=t,o._segmentIndexShift=i.length,{segmentGroup:o,slicedSegments:e}}const
r=new Xe(t.segments,t.children);return
r._sourceSegment=t,r._segmentIndexShift=i.length,{segmentGroup:r,slicedSegments:e}}function
pd(t,i,e){return(!(t.hasChildren()||i.length>0)||"full"!==e.pathMatch)&&""===e.path}function
v2(t,i,e,n){return!!(xi(t)===n||n!==Ke&&pd(i,e,t))&&("**"===t.path||ud(i,t,e).matched)}function
C2(t,i,e){return 0===i.length&&!t.children[e]}class
hd{constructor(i){this.segmentGroup=i||null}}class
y2{constructor(i){this.urlTree=i}}function kl(t){return tl(new hd(t))}function
w2(t){return tl(new y2(t))}function Y8(t){return tl(new Error(`Only absolute redirects can
have named outlets. redirectTo: '${t}'`))}class
eH{constructor(i,e,n,s,r){this.configLoader=e,this.urlSerializer=n,this.urlTree=s,this.config=r,this.allowRedirects=!0,this.ngModule=i.get(_s)}apply(){const
i=dd(this.urlTree.root,[],[],this.config).segmentGroup,e=new Xe(i.segments,i.children)
;return
this.expandSegmentGroup(this.ngModule,this.config,e,Ke).pipe(et(r=>this.createUrlTree(mg(r),this.urlTree.queryParams,this.urlTree.fragment))).pipe(Mr(r=>{if(r
instanceof y2)return this.allowRedirects=!1,this.match(r.urlTree);throw r instanceof
hd?this.noMatchError(r):r}))}match(i){return
this.expandSegmentGroup(this.ngModule,this.config,i.root,Ke).pipe(et(s=>this.createUrlTree(mg(s),i.queryParams,i.fragment))).pipe(Mr(s=>{throw
s instanceof hd?this.noMatchError(s):s}))}noMatchError(i){return new Error(`Cannot match
any routes. URL Segment: '${i.segmentGroup}'`)}createUrlTree(i,e,n){const
s=i.segments.length>0?new Xe([],{[Ke]:i}):i;return new
kr(s,e,n)}expandSegmentGroup(i,e,n,s){return
0===n.segments.length&&n.hasChildren()?this.expandChildren(i,e,n).pipe(et(r=>new
Xe([],r))):this.expandSegment(i,n,e,n.segments,s,!0)}expandChildren(i,e,n){const
s=[];for(const r of
Object.keys(n.children))"primary"===r?s.unshift(r):s.push(r);return
Mn(s).pipe(_r(r=>{const o=n.children[r],u=_2
(e,r);return
this.expandSegmentGroup(i,u,o,r).pipe(et(h=>({segment:h,outlet:r})))}),FT((r,o)=>(r[o.outlet]=o.segment,r),{}),function
qB(t,i){const e=arguments.length>=2;return
n=>n.pipe(t?Us((s,r)=>t(s,r,n)):Bl,eg(1),e?VT(i):NT(()=>new
td))}())}expandSegment(i,e,n,s,r,o){return
Mn(n).pipe(_r(u=>this.expandSegmentAgainstRoute(i,e,n,u,s,r,o).pipe(Mr(b=>{if(b
instanceof hd)return oe(null);throw b}))),No(u=>!!u),Mr((u,h)=>{if(u instanceof
td||"EmptyError"===u.name)return C2(e,s,r)?oe(new Xe([],{})):kl(e);throw
u}))}expandSegmentAgainstRoute(i,e,n,s,r,o,u){return v2(s,e,r,o)?void
0===s.redirectTo?this.matchSegmentAgainstRoute(i,e,s,r,o):u&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(i,e,n,s,r,o):kl(e):kl(e)}expandSegmentAgainstRouteUsingRedirect(i,e,n,s,r,o){return"**"===s.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(i,n,s,o):this.expandRegularSegmentAgainstRouteUsingRedirect(i,e,n,s,r,o)}expandWildCardWithParamsAgainstRouteUsingRedirect(i,e,n,s){const
r=this.applyRedirectCommands([],n.redirectTo,{});return
n.redirectTo.startsWith("/")?w2(r):this.lineralizeSegments(n,r).pipe(yn(o=>{const
u=new Xe(o,{});return
this.expandSegment(i,u,e,o,s,!1)}))}expandRegularSegmentAgainstRouteUsingRedirect(i,e,n,s,r,o){const{matched:u,consumedSegments:h,remainingSegments:b,positionalParamSegments:y}=ud(e,s,r);if(!u)return
kl(e);const w=this.applyRedirectCommands(h,s.redirectTo,y);return
s.redirectTo.startsWith("/")?w2(w):this.lineralizeSegments(s,w).pipe(yn(M=>this.expandSegment(i,e,n,M.concat(b),o,!1)))}matchSegmentAgainstRoute(i,e,n,s,r){if("**"===n.path)return
n.loadChildren?(n._loadedConfig?oe(n._loadedConfig):this.configLoader.load(i.injector,n)).pipe(et(w=>(n._loadedConfig=w,new
Xe(s,{})))):oe(new
Xe(s,{}));const{matched:o,consumedSegments:u,remainingSegments:h}=ud(e,n,s);return
o?this.getChildConfig(i,n,s).pipe(yn(y=>{const
w=y.module,M=y.routes,{segmentGroup:E,slicedSegments:L}=dd(e,u,h,M),O=new
Xe(E.segments,E.children);if(0===L.length&&O
.hasChildren())return this.expandChildren(w,M,O).pipe(et(J=>new
Xe(u,J)));if(0===M.length&&0===L.length)return oe(new Xe(u,{}));const
N=xi(n)===r;return this.expandSegment(w,O,M,L,N?Ke:r,!0).pipe(et(P=>new
Xe(u.concat(P.segments),P.children)))})):kl(e)}getChildConfig(i,e,n){return
e.children?oe(new pg(e.children,i)):e.loadChildren?void
0!==e._loadedConfig?oe(e._loadedConfig):this.runCanLoadGuards(i.injector,e,n).pipe(yn(s=>s?this.configLoader.load(i.injector,e).pipe(et(r=>(e._loadedConfig=r,r))):function
Z8(t){return tl(ng(`Cannot load children because the guard of the route "path:
'${t.path}'" returned false`))}(e))):oe(new
pg([],i))}runCanLoadGuards(i,e,n){const s=e.canLoad;if(!s||0===s.length)return
oe(!0);const r=s.map(o=>{const u=i.get(o);let h;if(function B8(t){return
t&&Ys(t.canLoad)}(u))h=u.canLoad(e,n);else{if(!Ys(u))throw new Error("Invalid
CanLoad guard");h=u(e,n)}return ls(h)});return
oe(r).pipe(xl(),li(o=>{if(!Rr(o))return;const u=ng(`Redirecting to
"${this.urlSerialize
r.serialize(o)}"`);throw u.url=o,u}),et(o=>!0===o))}lineralizeSegments(i,e){let
n=[],s=e.root;for(;;){if(n=n.concat(s.segments),0===s.numberOfChildren)return
oe(n);if(s.numberOfChildren>1||!s.children[Ke])return
Y8(i.redirectTo);s=s.children[Ke]}}applyRedirectCommands(i,e,n){return
this.applyRedirectCreatreUrlTree(e,this.urlSerializer.parse(e),i,n)}applyRedirectCreatreUrlTree(i,e,n,s){const
r=this.createSegmentGroup(i,e.root,n,s);return new
kr(r,this.createQueryParams(e.queryParams,this.urlTree.queryParams),e.fragment)}createQueryParams(i,e){const
n={};return xn(i,(s,r)=>{if("string"==typeof
s&&s.startsWith(":")){const u=s.substring(1);n[r]=e[u]}else
n[r]=s}),n}createSegmentGroup(i,e,n,s){const r=this.createSegments(i,e.segments,n,s);let
o={};return xn(e.children,(u,h)=>{o[h]=this.createSegmentGroup(i,u,n,s)}),new
Xe(r,o)}createSegments(i,e,n,s){return
e.map(r=>r.path.startsWith(":")?this.findPosParam(i,r,s):this.findOrReturn(r,n))}findPosParam(i,e,n){const
s=n[e.path.substring(1)];
if(!s)throw new Error(`Cannot redirect to '${i}'. Cannot find
'${e.path}'.`);return s}findOrReturn(i,e){let n=0;for(const s of
e){if(s.path===i.path)return e.splice(n),s;n++}return i}}function mg(t){const
i={};for(const n of Object.keys(t.children)){const
r=mg(t.children[n]);(r.segments.length>0||r.hasChildren())&&(i[n]=r)}return
function tH(t){if(1===t.numberOfChildren&&t.children[Ke]){const
i=t.children[Ke];return new Xe(t.segments.concat(i.segments),i.children)}return t}(new
Xe(t.segments,i))}class
T2{constructor(i){this.path=i,this.route=this.path[this.path.length-1]}}class
md{constructor(i,e){this.component=i,this.route=e}}function iH(t,i,e){const
n=t._root;return Il(n,i?i._root:null,e,[n.value])}function fd(t,i,e){const n=function
rH(t){if(!t)return null;for(let i=t.parent;i;i=i.parent){const
e=i.routeConfig;if(e&&e._loadedConfig)return e._loadedConfig}return
null}(i);return(n?n.module.injector:e).get(t)}function
Il(t,i,e,n,s={canDeactivateChecks:[],canActivateChecks:[]}){cons
t r=Bo(i);return t.children.forEach(o=>{(function
oH(t,i,e,n,s={canDeactivateChecks:[],canActivateChecks:[]}){const
r=t.value,o=i?i.value:null,u=e?e.getContext(t.value.outlet):null;if(o&&r.routeConfig===o.routeConfig){const
h=function aH(t,i,e){if("function"==typeof e)return
e(t,i);switch(e){case"pathParamsChange":return!Ir(t.url,i.url);case"pathParamsOrQueryParamsChange":return!Ir(t.url,i.url)||!as(t.queryParams,i.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!lg(t,i)||!as(t.queryParams,i.queryParams);default:return!lg(t,i)}}(o,r,r.routeConfig.runGuardsAndResolvers);h?s.canActivateChecks.push(new
T2(n)):(r.data=o.data,r._resolvedData=o._resolvedData),Il(t,i,r.component?u?u.children:null:e,n,s),h&&u&&u.outlet&&u.outlet.isActivated&&s.canDeactivateChecks.push(new
md(u.outlet.component,o))}else o&&El(i,u,s),s.canActivateChecks.push(new
T2(n)),Il(t,null,r.component?u?u.children:null:e,n,s)})(o,r[o.value.outlet],e,n.concat([o.value]),s),delete
r[o.value.outlet
]}),xn(r,(o,u)=>El(o,e.getContext(u),s)),s}function El(t,i,e){const
n=Bo(t),s=t.value;xn(n,(r,o)=>{El(r,s.component?i?i.children.getContext(o):null:i,e)}),e.canDeactivateChecks.push(new
md(s.component&&i&&i.outlet&&i.outlet.isActivated?i.outlet.component:null,s))}class
gH{}function S2(t){return new Je(i=>i.error(t))}class
bH{constructor(i,e,n,s,r,o){this.rootComponentType=i,this.config=e,this.urlTree=n,this.url=s,this.paramsInheritanceStrategy=r,this.relativeLinkResolution=o}recognize(){const
i=dd(this.urlTree.root,[],[],this.config.filter(o=>void
0===o.redirectTo),this.relativeLinkResolution).segmentGroup,e=this.processSegmentGroup(this.config,i,Ke);if(null===e)return
null;const n=new
ad([],Object.freeze({}),Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,{},Ke,this.rootComponentType,null,this.urlTree.root,-1,{}),s=new
Ds(n,e),r=new l2(this.url,s);return
this.inheritParamsAndData(r._root),r}inheritParamsAndData(i){const
e=i.value,n=a2(e,this.paramsIn
heritanceStrategy);e.params=Object.freeze(n.params),e.data=Object.freeze(n.data),i.children.forEach(s=>this.inheritParamsAndData(s))}processSegmentGroup(i,e,n){return
0===e.segments.length&&e.hasChildren()?this.processChildren(i,e):this.processSegment(i,e,e.segments,n)}processChildren(i,e){const
n=[];for(const r of Object.keys(e.children)){const
o=e.children[r],u=_2(i,r),h=this.processSegmentGroup(u,o,r);if(null===h)return
null;n.push(...h)}const s=x2(n);return function
vH(t){t.sort((i,e)=>i.value.outlet===Ke?-1:e.value.outlet===Ke?1:i.value.outlet.localeCompare(e.value.outlet))}(s),s}processSegment(i,e,n,s){for(const
r of i){const o=this.processSegmentAgainstRoute(r,e,n,s);if(null!==o)return o}return
C2(e,n,s)?[]:null}processSegmentAgainstRoute(i,e,n,s){if(i.redirectTo||!v2(i,e,n,s))return
null;let r,o=[],u=[];if("**"===i.path){const
E=n.length>0?$T(n).parameters:{};r=new
ad(n,E,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,k2(i),xi(i),i.component,
i,D2(e),M2(e)+n.length,I2(i))}else{const E=ud(e,i,n);if(!E.matched)return
null;o=E.consumedSegments,u=E.remainingSegments,r=new
ad(o,E.parameters,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,k2(i),xi(i),i.component,i,D2(e),M2(e)+o.length,I2(i))}const
h=function CH(t){return
t.children?t.children:t.loadChildren?t._loadedConfig.routes:[]}(i),{segmentGroup:b,slicedSegments:y}=dd(e,o,u,h.filter(E=>void
0===E.redirectTo),this.relativeLinkResolution);if(0===y.length&&b.hasChildren()){const
E=this.processChildren(h,b);return null===E?null:[new
Ds(r,E)]}if(0===h.length&&0===y.length)return[new Ds(r,[])];const
w=xi(i)===s,M=this.processSegment(h,b,y,w?Ke:s);return null===M?null:[new
Ds(r,M)]}}function yH(t){const i=t.value.routeConfig;return
i&&""===i.path&&void 0===i.redirectTo}function x2(t){const
i=[],e=new Set;for(const n of t){if(!yH(n)){i.push(n);continue}const
s=i.find(r=>n.value.routeConfig===r.value.routeConfig);void
0!==s?(s.children.push(...n.chi
ldren),e.add(s)):i.push(n)}for(const n of e){const s=x2(n.children);i.push(new
Ds(n.value,s))}return i.filter(n=>!e.has(n))}function D2(t){let
i=t;for(;i._sourceSegment;)i=i._sourceSegment;return i}function M2(t){let
i=t,e=i._segmentIndexShift?i._segmentIndexShift:0;for(;i._sourceSegment;)i=i._sourceSegment,e+=i._segmentIndexShift?i._segmentIndexShift:0;return
e-1}function k2(t){return t.data||{}}function I2(t){return t.resolve||{}}function
E2(t){return[...Object.keys(t),...Object.getOwnPropertySymbols(t)]}function fg(t){return
qi(i=>{const e=t(i);return e?Mn(e).pipe(et(()=>i)):oe(i)})}class IH extends class
kH{shouldDetach(i){return!1}store(i,e){}shouldAttach(i){return!1}retrieve(i){return
null}shouldReuseRoute(i,e){return i.routeConfig===e.routeConfig}}{}const gg=new
be("ROUTES");class
R2{constructor(i,e,n,s){this.injector=i,this.compiler=e,this.onLoadStartListener=n,this.onLoadEndListener=s}load(i,e){if(e._loader$)return
e._loader$;this.onLoadStartListener&&this.onLoadStartListen
er(e);const
s=this.loadModuleFactory(e.loadChildren).pipe(et(r=>{this.onLoadEndListener&&this.onLoadEndListener(e);const
o=r.create(i);return new pg(jT(o.injector.get(gg,void
0,xe.Self|xe.Optional)).map(hg),o)}),Mr(r=>{throw e._loader$=void 0,r}));return
e._loader$=new Fg(s,()=>new ct).pipe(Fd()),e._loader$}loadModuleFactory(i){return
ls(i()).pipe(yn(e=>e instanceof
iC?oe(e):Mn(this.compiler.compileModuleAsync(e))))}}class
RH{shouldProcessUrl(i){return!0}extract(i){return i}merge(i,e){return i}}function
LH(t){throw t}function OH(t,i,e){return i.parse("/")}function L2(t,i){return
oe(null)}const
AH={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},PH={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};let
It=(()=>{class
t{constructor(e,n,s,r,o,u,h){this.rootComponentType=e,this.urlSerializer=n,this.rootContexts=s,this.location=r,this.config=h,this.lastSuccessfulNavigation=null,this.currentNavigation=null,this.disposed=!1,this.nav
igationId=0,this.currentPageId=0,this.isNgZoneEnabled=!1,this.events=new
ct,this.errorHandler=LH,this.malformedUriErrorHandler=OH,this.navigated=!1,this.lastSuccessfulId=-1,this.hooks={beforePreactivation:L2,afterPreactivation:L2},this.urlHandlingStrategy=new
RH,this.routeReuseStrategy=new
IH,this.onSameUrlNavigation="ignore",this.paramsInheritanceStrategy="emptyOnly",this.urlUpdateStrategy="deferred",this.relativeLinkResolution="corrected",this.canceledNavigationResolution="replace",this.ngModule=o.get(_s),this.console=o.get(DR);const
w=o.get(nt);this.isNgZoneEnabled=w instanceof
nt&&nt.isInAngularZone(),this.resetConfig(h),this.currentUrlTree=function
a8(){return new kr(new
Xe([],{}),{},null)}(),this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.configLoader=new
R2(o,u,M=>this.triggerEvent(new HT(M)),M=>this.triggerEvent(new
qT(M))),this.routerState=o2(this.currentUrlTree,this.rootComponentType),this.transitions=new
zi({id:0,targetPageId:0,currentUrlT
ree: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 n=this.events;return
e.pipe(Us(s=>0!==s.id),et(s=>Object.assign(Object.assign({},s),{extractedUrl:this.urlHandlingStrategy.extract(s.rawUrl)})),qi(s=>{let
r=!1,o=!1;return
oe(s).pipe(li(u=>{this.currentNavigation={id:u.id,initialUrl:u.currentRawUrl,extractedU
rl:u.extractedUrl,trigger:u.source,extras:u.extras,previousNavigation:this.lastSuccessfulNavigation?Object.assign(Object.assign({},this.lastSuccessfulNavigation),{previousNavigation:null}):null}}),qi(u=>{const
h=this.browserUrlTree.toString(),b=!this.navigated||u.extractedUrl.toString()!==h||h!==this.currentUrlTree.toString();if(("reload"===this.onSameUrlNavigation||b)&&this.urlHandlingStrategy.shouldProcessUrl(u.rawUrl))return
O2(u.source)&&(this.browserUrlTree=u.extractedUrl),oe(u).pipe(qi(w=>{const
M=this.transitions.getValue();return n.next(new
tg(w.id,this.serializeUrl(w.extractedUrl),w.source,w.restoredState)),M!==this.transitions.getValue()?Io:Promise.resolve(w)}),function
nH(t,i,e,n){return qi(s=>function X8(t,i,e,n,s){return new
eH(t,i,e,n,s).apply()}(t,i,e,s.extractedUrl,n).pipe(et(r=>Object.assign(Object.assign({},s),{urlAfterRedirects:r}))))}(this.ngModule.injector,this.configLoader,this.urlSerializer,this.config),li(w=>{this.currentNavigation=Object.assign(Object.assign
({},this.currentNavigation),{finalUrl:w.urlAfterRedirects})}),function
wH(t,i,e,n,s){return yn(r=>function
_H(t,i,e,n,s="emptyOnly",r="legacy"){try{const o=new
bH(t,i,e,n,s,r).recognize();return null===o?S2(new gH):oe(o)}catch(o){return
S2(o)}}(t,i,r.urlAfterRedirects,e(r.urlAfterRedirects),n,s).pipe(et(o=>Object.assign(Object.assign({},r),{targetSnapshot:o}))))}(this.rootComponentType,this.config,w=>this.serializeUrl(w),this.paramsInheritanceStrategy,this.relativeLinkResolution),li(w=>{if("eager"===this.urlUpdateStrategy){if(!w.extras.skipLocationChange){const
E=this.urlHandlingStrategy.merge(w.urlAfterRedirects,w.rawUrl);this.setBrowserUrl(E,w)}this.browserUrlTree=w.urlAfterRedirects}const
M=new
KB(w.id,this.serializeUrl(w.extractedUrl),this.serializeUrl(w.urlAfterRedirects),w.targetSnapshot);n.next(M)}));if(b&&this.rawUrlTree&&this.urlHandlingStrategy.shouldProcessUrl(this.rawUrlTree)){const{id:M,extractedUrl:E,source:L,restoredState:O,extras:N}=u,G=new
tg(M,this.serializeUrl(E),
L,O);n.next(G);const P=o2(E,this.rootComponentType).snapshot;return
oe(Object.assign(Object.assign({},u),{targetSnapshot:P,urlAfterRedirects:E,extras:Object.assign(Object.assign({},N),{skipLocationChange:!1,replaceUrl:!1})}))}return
this.rawUrlTree=u.rawUrl,u.resolve(null),Io}),fg(u=>{const{targetSnapshot:h,id:b,extractedUrl:y,rawUrl:w,extras:{skipLocationChange:M,replaceUrl:E}}=u;return
this.hooks.beforePreactivation(h,{navigationId:b,appliedUrlTree:y,rawUrlTree:w,skipLocationChange:!!M,replaceUrl:!!E})}),li(u=>{const
h=new
QB(u.id,this.serializeUrl(u.extractedUrl),this.serializeUrl(u.urlAfterRedirects),u.targetSnapshot);this.triggerEvent(h)}),et(u=>Object.assign(Object.assign({},u),{guards:iH(u.targetSnapshot,u.currentSnapshot,this.rootContexts)})),function
lH(t,i){return
yn(e=>{const{targetSnapshot:n,currentSnapshot:s,guards:{canActivateChecks:r,canDeactivateChecks:o}}=e;return
0===o.length&&0===r.length?oe(Object.assign(Object.assign({},e),{guardsResult:!0})):function
cH(t,i,e,n
){return Mn(t).pipe(yn(s=>function fH(t,i,e,n,s){const
r=i&&i.routeConfig?i.routeConfig.canDeactivate:null;return
r&&0!==r.length?oe(r.map(u=>{const h=fd(u,i,s);let b;if(function G8(t){return
t&&Ys(t.canDeactivate)}(h))b=ls(h.canDeactivate(t,i,e,n));else{if(!Ys(h))throw new
Error("Invalid CanDeactivate guard");b=ls(h(t,i,e,n))}return
b.pipe(No())})).pipe(xl()):oe(!0)}(s.component,s.route,e,i,n)),No(s=>!0!==s,!0))}(o,n,s,t).pipe(yn(u=>u&&function
V8(t){return"boolean"==typeof t}(u)?function uH(t,i,e,n){return
Mn(i).pipe(_r(s=>el(function pH(t,i){return null!==t&&i&&i(new
XB(t)),oe(!0)}(s.route.parent,n),function dH(t,i){return
null!==t&&i&&i(new t8(t)),oe(!0)}(s.route,n),function mH(t,i,e){const
n=i[i.length-1],r=i.slice(0,i.length-1).reverse().map(o=>function sH(t){const
i=t.routeConfig?t.routeConfig.canActivateChild:null;return
i&&0!==i.length?{node:t,guards:i}:null}(o)).filter(o=>null!==o).map(o=>cu(()=>oe(o.guards.map(h=>{const
b=fd(h,o.node,e);let y;if(function q8(t){return t&&Y
s(t.canActivateChild)}(b))y=ls(b.canActivateChild(n,t));else{if(!Ys(b))throw new
Error("Invalid CanActivateChild guard");y=ls(b(n,t))}return
y.pipe(No())})).pipe(xl())));return oe(r).pipe(xl())}(t,s.path,e),function hH(t,i,e){const
n=i.routeConfig?i.routeConfig.canActivate:null;if(!n||0===n.length)return oe(!0);const
s=n.map(r=>cu(()=>{const o=fd(r,i,e);let u;if(function H8(t){return
t&&Ys(t.canActivate)}(o))u=ls(o.canActivate(i,t));else{if(!Ys(o))throw new
Error("Invalid CanActivate guard");u=ls(o(i,t))}return u.pipe(No())}));return
oe(s).pipe(xl())}(t,s.route,e))),No(s=>!0!==s,!0))}(n,r,t,i):oe(u)),et(u=>Object.assign(Object.assign({},e),{guardsResult:u})))})}(this.ngModule.injector,u=>this.triggerEvent(u)),li(u=>{if(Rr(u.guardsResult)){const
b=ng(`Redirecting to "${this.serializeUrl(u.guardsResult)}"`);throw
b.url=u.guardsResult,b}const h=new
JB(u.id,this.serializeUrl(u.extractedUrl),this.serializeUrl(u.urlAfterRedirects),u.targetSnapshot,!!u.guardsResult);this.triggerEvent(h)}),
Us(u=>!!u.guardsResult||(this.restoreHistory(u),this.cancelNavigationTransition(u,""),!1)),fg(u=>{if(u.guards.canActivateChecks.length)return
oe(u).pipe(li(h=>{const b=new
YB(h.id,this.serializeUrl(h.extractedUrl),this.serializeUrl(h.urlAfterRedirects),h.targetSnapshot);this.triggerEvent(b)}),qi(h=>{let
b=!1;return oe(h).pipe(function TH(t,i){return
yn(e=>{const{targetSnapshot:n,guards:{canActivateChecks:s}}=e;if(!s.length)return
oe(e);let r=0;return Mn(s).pipe(_r(o=>function SH(t,i,e,n){return function
xH(t,i,e,n){const s=E2(t);if(0===s.length)return oe({});const r={};return
Mn(s).pipe(yn(o=>function DH(t,i,e,n){const s=fd(t,i,n);return
ls(s.resolve?s.resolve(i,e):s(i,e))}(t[o],i,e,n).pipe(li(u=>{r[o]=u}))),eg(1),yn(()=>E2(r).length===s.length?oe(r):Io))}(t._resolve,t,i,n).pipe(et(r=>(t._resolvedData=r,t.data=Object.assign(Object.assign({},t.data),a2(t,e).resolve),null)))}(o.route,n,t,i)),li(()=>r++),eg(1),yn(o=>r===s.length?oe(e):Io))})}(this.paramsInheritanceStrategy,this.ngModul
e.injector),li({next:()=>b=!0,complete:()=>{b||(this.restoreHistory(h),this.cancelNavigationTransition(h,"At
least one route resolver didn't emit any value."))}}))}),li(h=>{const b=new
ZB(h.id,this.serializeUrl(h.extractedUrl),this.serializeUrl(h.urlAfterRedirects),h.targetSnapshot);this.triggerEvent(b)}))}),fg(u=>{const{targetSnapshot:h,id:b,extractedUrl:y,rawUrl:w,extras:{skipLocationChange:M,replaceUrl:E}}=u;return
this.hooks.afterPreactivation(h,{navigationId:b,appliedUrlTree:y,rawUrlTree:w,skipLocationChange:!!M,replaceUrl:!!E})}),et(u=>{const
h=function x8(t,i,e){const n=wl(t,i._root,e?e._root:void 0);return new
r2(n,i)}(this.routeReuseStrategy,u.targetSnapshot,u.currentRouterState);return
Object.assign(Object.assign({},u),{targetRouterState:h})}),li(u=>{this.currentUrlTree=u.urlAfterRedirects,this.rawUrlTree=this.urlHandlingStrategy.merge(u.urlAfterRedirects,u.rawUrl),this.routerState=u.targetRouterState,"deferred"===this.urlUpdateStrategy&&(u.extras.skipLocationChange||this.
setBrowserUrl(this.rawUrlTree,u),this.browserUrlTree=u.urlAfterRedirects)}),((t,i,e)=>et(n=>(new
F8(i,n.targetRouterState,n.currentRouterState,e).activate(t),n)))(this.rootContexts,this.routeReuseStrategy,u=>this.triggerEvent(u)),li({next(){r=!0},complete(){r=!0}}),function
zB(t){return i=>i.lift(new jB(t))}(()=>{var
u;r||o||this.cancelNavigationTransition(s,`Navigation ID ${s.id} is not equal to the
current navigation id ${this.navigationId}`),(null===(u=this.currentNavigation)||void
0===u?void
0:u.id)===s.id&&(this.currentNavigation=null)}),Mr(u=>{if(o=!0,function
s8(t){return t&&t[UT]}(u)){const
h=Rr(u.url);h||(this.navigated=!0,this.restoreHistory(s,!0));const b=new
BT(s.id,this.serializeUrl(s.extractedUrl),u.message);n.next(b),h?setTimeout(()=>{const
y=this.urlHandlingStrategy.merge(u.url,this.rawUrlTree),w={skipLocationChange:s.extras.skipLocationChange,replaceUrl:"eager"===this.urlUpdateStrategy||O2(s.source)};this.scheduleNavigation(y,"imperative",null,w,{resolve:s.resolve,r
eject:s.reject,promise:s.promise})},0):s.resolve(!1)}else{this.restoreHistory(s,!0);const
h=new
WB(s.id,this.serializeUrl(s.extractedUrl),u);n.next(h);try{s.resolve(this.errorHandler(u))}catch(b){s.reject(b)}}return
Io}))}))}resetRootComponentType(e){this.rootComponentType=e,this.routerState.root.component=this.rootComponentType}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
n="popstate"===e.type?"popstate":"hashchange";"popstate"===n&&setTimeout(()=>{var
s;const r={replaceUrl:!0},o=(null===(s=e.state)||void 0===s?void
0:s.navigationId)?e.state:null;if(o){const h=Object.assign({},o);delete
h.navigationId,delete
h.\u0275routerPageId,0!==Object.keys(h).length&&(r.state=h)}const u=this
.parseUrl(e.url);this.scheduleNavigation(u,n,o,r)},0)}))}get url(){return
this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return
this.currentNavigation}triggerEvent(e){this.events.next(e)}resetConfig(e){g2(e),this.config=e.map(hg),this.navigated=!1,this.lastSuccessfulId=-1}ngOnDestroy(){this.dispose()}dispose(){this.transitions.complete(),this.locationSubscription&&(this.locationSubscription.unsubscribe(),this.locationSubscription=void
0),this.disposed=!0}createUrlTree(e,n={}){const{relativeTo:s,queryParams:r,fragment:o,queryParamsHandling:u,preserveFragment:h}=n,b=s||this.routerState.root,y=h?this.currentUrlTree.fragment:o;let
w=null;switch(u){case"merge":w=Object.assign(Object.assign({},this.currentUrlTree.queryParams),r);break;case"preserve":w=this.currentUrlTree.queryParams;break;default:w=r||null}return
null!==w&&(w=this.removeEmptyProps(w)),function
k8(t,i,e,n,s){if(0===e.length)return cg(i.root,i.root,i.root,n,s);const r=function
I8(t){if("string"==typeof t[0]&&
1===t.length&&"/"===t[0])return new d2(!0,0,t);let i=0,e=!1;const
n=t.reduce((s,r,o)=>{if("object"==typeof
r&&null!=r){if(r.outlets){const u={};return
xn(r.outlets,(h,b)=>{u[b]="string"==typeof
h?h.split("/"):h}),[...s,{outlets:u}]}if(r.segmentPath)return[...s,r.segmentPath]}return"string"!=typeof
r?[...s,r]:0===o?(r.split("/").forEach((u,h)=>{0==h&&"."===u||(0==h&&""===u?e=!0:".."===u?i++:""!=u&&s.push(u))}),s):[...s,r]},[]);return
new d2(e,i,n)}(e);if(r.toRoot())return cg(i.root,i.root,new Xe([],{}),n,s);const
o=function E8(t,i,e){if(t.isAbsolute)return new
ug(i.root,!0,0);if(-1===e.snapshot._lastPathIndex){const r=e.snapshot._urlSegment;return
new ug(r,r===i.root,0)}const n=ld(t.commands[0])?0:1;return function R8(t,i,e){let
n=t,s=i,r=e;for(;r>s;){if(r-=s,n=n.parent,!n)throw new Error("Invalid number of
'../'");s=n.segments.length}return new
ug(n,!1,s-r)}(e.snapshot._urlSegment,e.snapshot._lastPathIndex+n,t.numberOfDoubleDots)}(r,i,t),u=o.processChildren?cd(o.segmentGroup,o.index
,r.commands):p2(o.segmentGroup,o.index,r.commands);return
cg(i.root,o.segmentGroup,u,n,s)}(b,this.currentUrlTree,e,w,null!=y?y:null)}navigateByUrl(e,n={skipLocationChange:!1}){const
s=Rr(e)?e:this.parseUrl(e),r=this.urlHandlingStrategy.merge(s,this.rawUrlTree);return
this.scheduleNavigation(r,"imperative",null,n)}navigate(e,n={skipLocationChange:!1}){return
function FH(t){for(let i=0;i<t.length;i++){const e=t[i];if(null==e)throw new Error(`The
requested path contains ${e} segment at index
${i}`)}}(e),this.navigateByUrl(this.createUrlTree(e,n),n)}serializeUrl(e){return
this.urlSerializer.serialize(e)}parseUrl(e){let
n;try{n=this.urlSerializer.parse(e)}catch(s){n=this.malformedUriErrorHandler(s,this.urlSerializer,e)}return
n}isActive(e,n){let
s;if(s=!0===n?Object.assign({},AH):!1===n?Object.assign({},PH):n,Rr(e))return
KT(this.currentUrlTree,e,s);const r=this.parseUrl(e);return
KT(this.currentUrlTree,r,s)}removeEmptyProps(e){return
Object.keys(e).reduce((n,s)=>{const r=e[s];return nul
l!=r&&(n[s]=r),n},{})}processNavigations(){this.navigations.subscribe(e=>{this.navigated=!0,this.lastSuccessfulId=e.id,this.currentPageId=e.targetPageId,this.events.next(new
vl(e.id,this.serializeUrl(e.extractedUrl),this.serializeUrl(this.currentUrlTree))),this.lastSuccessfulNavigation=this.currentNavigation,e.resolve(!0)},e=>{this.console.warn(`Unhandled
Navigation Error: ${e}`)})}scheduleNavigation(e,n,s,r,o){var u,h;if(this.disposed)return
Promise.resolve(!1);let b,y,w;o?(b=o.resolve,y=o.reject,w=o.promise):w=new
Promise((L,O)=>{b=L,y=O});const M=++this.navigationId;let
E;return"computed"===this.canceledNavigationResolution?(0===this.currentPageId&&(s=this.location.getState()),E=s&&s.\u0275routerPageId?s.\u0275routerPageId:r.replaceUrl||r.skipLocationChange?null!==(u=this.browserPageId)&&void
0!==u?u:0:(null!==(h=this.browserPageId)&&void
0!==h?h:0)+1):E=0,this.setTransition({id:M,targetPageId:E,source:n,restoredState:s,currentUrlTree:this.currentUrlTree,currentRawUrl:this.rawUrl
Tree,rawUrl:e,extras:r,resolve:b,reject:y,promise:w,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),w.catch(L=>Promise.reject(L))}setBrowserUrl(e,n){const
s=this.urlSerializer.serialize(e),r=Object.assign(Object.assign({},n.extras.state),this.generateNgRouterState(n.id,n.targetPageId));this.location.isCurrentPathEqualTo(s)||n.extras.replaceUrl?this.location.replaceState(s,"",r):this.location.go(s,"",r)}restoreHistory(e,n=!1){var
s,r;if("computed"===this.canceledNavigationResolution){const
o=this.currentPageId-e.targetPageId;"popstate"!==e.source&&"eager"!==this.urlUpdateStrategy&&this.currentUrlTree!==(null===(s=this.currentNavigation)||void
0===s?void
0:s.finalUrl)||0===o?this.currentUrlTree===(null===(r=this.currentNavigation)||void
0===r?void
0:r.finalUrl)&&0===o&&(this.resetState(e),this.browserUrlTree=e.currentUrlTree,this.resetUrlToCurrentUrlTree()):this.location.historyGo(o)}else"replace"===this.canceledNavigationResolution&&(n&&this.resetState
(e),this.resetUrlToCurrentUrlTree())}resetState(e){this.routerState=e.currentRouterState,this.currentUrlTree=e.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,e.rawUrl)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}cancelNavigationTransition(e,n){const
s=new
BT(e.id,this.serializeUrl(e.extractedUrl),n);this.triggerEvent(s),e.resolve(!1)}generateNgRouterState(e,n){return"computed"===this.canceledNavigationResolution?{navigationId:e,\u0275routerPageId:n}:{navigationId:e}}}return
t.\u0275fac=function(e){Sh()},t.\u0275prov=X({token:t,factory:t.\u0275fac}),t})();function
O2(t){return"imperative"!==t}let gd=(()=>{class
t{constructor(e,n,s,r,o){this.router=e,this.route=n,this.tabIndexAttribute=s,this.renderer=r,this.el=o,this.commands=null,this.onChanges=new
ct,this.setTabIndexIfNotOnNativeEl("0")}setTabIndexIfNotOnNativeEl(e){if(n
ull!=this.tabIndexAttribute)return;const
n=this.renderer,s=this.el.nativeElement;null!==e?n.setAttribute(s,"tabindex",e):n.removeAttribute(s,"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:qo(this.skipLocationChange),replaceUrl:qo(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:qo(this.preserveFragment)})}}return
t.\u0275fac=function(e){return
new(e||t)(D(It),D(Er),ua("tabindex"),D(gn),D(De))},t.\u0275dir=le({type:t,selectors:[["","routerLink","",5,"a",
5,"area"]],hostBindings:function(e,n){1&e&&C("click",function(){return
n.onClick()})},inputs:{queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",preserveFragment:"preserveFragment",skipLocationChange:"skipLocationChange",replaceUrl:"replaceUrl",state:"state",relativeTo:"relativeTo",routerLink:"routerLink"},features:[fn]}),t})(),Ho=(()=>{class
t{constructor(e,n,s){this.router=e,this.route=n,this.locationStrategy=s,this.commands=null,this.href=null,this.onChanges=new
ct,this.subscription=e.events.subscribe(r=>{r instanceof
vl&&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,n,s,r,o){if(0!==e||n||s||r||o||"string"==typeof
this.target&&"_self"!=this.target||null===this.urlTree)return!0;const
u={skipLocationChange:qo(this.skipLocationChange),replaceUrl:qo(this.replaceUrl),sta
te:this.state};return
this.router.navigateByUrl(this.urlTree,u),!1}updateTargetUrlAndHref(){this.href=null!==this.urlTree?this.locationStrategy.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:qo(this.preserveFragment)})}}return
t.\u0275fac=function(e){return
new(e||t)(D(It),D(Er),D(ko))},t.\u0275dir=le({type:t,selectors:[["a","routerLink",""],["area","routerLink",""]],hostVars:2,hostBindings:function(e,n){1&e&&C("click",function(r){return
n.onClick(r.button,r.ctrlKey,r.shiftKey,r.altKey,r.metaKey)}),2&e&&ie("target",n.target)("href",n.href,ln)},inputs:{target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",preserveFragment:"preserveFragment",skipLocationChang
e:"skipLocationChange",replaceUrl:"replaceUrl",state:"state",relativeTo:"relativeTo",routerLink:"routerLink"},features:[fn]}),t})();function
qo(t){return""===t||!!t}let _d=(()=>{class
t{constructor(e,n,s,r,o,u){this.router=e,this.element=n,this.renderer=s,this.cdr=r,this.link=o,this.linkWithHref=u,this.classes=[],this.isActive=!1,this.routerLinkActiveOptions={exact:!1},this.isActiveChange=new
H,this.routerEventsSubscription=e.events.subscribe(h=>{h instanceof
vl&&this.update()})}ngAfterContentInit(){oe(this.links.changes,this.linksWithHrefs.changes,oe(null)).pipe(ea()).subscribe(e=>{this.update(),this.subscribeToEachLinkOnChanges()})}subscribeToEachLinkOnChanges(){var
e;null===(e=this.linkInputChangesSubscription)||void 0===e||e.unsubscribe();const
n=[...this.links.toArray(),...this.linksWithHrefs.toArray(),this.link,this.linkWithHref].filter(s=>!!s).map(s=>s.onChanges);this.linkInputChangesSubscription=Mn(n).pipe(ea()).subscribe(s=>{this.isActive!==this.isLinkActive(this.router)(s)
&&this.update()})}set routerLinkActive(e){const
n=Array.isArray(e)?e:e.split("
");this.classes=n.filter(s=>!!s)}ngOnChanges(e){this.update()}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(n=>{e?this.renderer.addClass(this.element.nativeElement,n):this.renderer.removeClass(this.element.nativeElement,n)}),this.isActiveChange.emit(e))})}isLinkActive(e){const
n=function
NH(t){return!!t.paths}(this.routerLinkActiveOptions)?this.routerLinkActiveOptions:this.routerLinkActiveOptions.exact||!1;return
s=>!!s.urlTree&&e.isActive(s.urlTree,n)}hasActiveLinks(){const
e=this.isLinkActive(this.router);return
this.link&&e(this.link)||this.linkWithHref&&e(this.linkWithHref)||this.links.some(e)||this.linksWit
hHrefs.some(e)}}return t.\u0275fac=function(e){return
new(e||t)(D(It),D(De),D(gn),D(rt),D(gd,8),D(Ho,8))},t.\u0275dir=le({type:t,selectors:[["","routerLinkActive",""]],contentQueries:function(e,n,s){if(1&e&&(st(s,gd,5),st(s,Ho,5)),2&e){let
r;V(r=B())&&(n.links=r),V(r=B())&&(n.linksWithHrefs=r)}},inputs:{routerLinkActiveOptions:"routerLinkActiveOptions",routerLinkActive:"routerLinkActive"},outputs:{isActiveChange:"isActiveChange"},exportAs:["routerLinkActive"],features:[fn]}),t})();class
A2{}class P2{preload(i,e){return oe(null)}}let F2=(()=>{class
t{constructor(e,n,s,r){this.router=e,this.injector=s,this.preloadingStrategy=r,this.loader=new
R2(s,n,h=>e.triggerEvent(new HT(h)),h=>e.triggerEvent(new
qT(h)))}setUpPreloading(){this.subscription=this.router.events.pipe(Us(e=>e instanceof
vl),_r(()=>this.preload())).subscribe(()=>{})}preload(){const
e=this.injector.get(_s);return
this.processRoutes(e,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}proc
essRoutes(e,n){const s=[];for(const r of
n)if(r.loadChildren&&!r.canLoad&&r._loadedConfig){const
o=r._loadedConfig;s.push(this.processRoutes(o.module,o.routes))}else
r.loadChildren&&!r.canLoad?s.push(this.preloadConfig(e,r)):r.children&&s.push(this.processRoutes(e,r.children));return
Mn(s).pipe(ea(),et(r=>{}))}preloadConfig(e,n){return
this.preloadingStrategy.preload(n,()=>(n._loadedConfig?oe(n._loadedConfig):this.loader.load(e.injector,n)).pipe(yn(r=>(n._loadedConfig=r,this.processRoutes(r.module,r.routes)))))}}return
t.\u0275fac=function(e){return
new(e||t)(K(It),K(qC),K(En),K(A2))},t.\u0275prov=X({token:t,factory:t.\u0275fac}),t})(),_g=(()=>{class
t{constructor(e,n,s={}){this.router=e,this.viewportScroller=n,this.options=s,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},s.scrollPositionRestoration=s.scrollPositionRestoration||"disabled",s.anchorScrolling=s.anchorScrolling||"disabled"}init(){"disabled"!==this.options.scrollPositionRestoration&&this.viewp
ortScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}createScrollEvents(){return
this.router.events.subscribe(e=>{e instanceof
tg?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=e.navigationTrigger,this.restoredId=e.restoredState?e.restoredState.navigationId:0):e
instanceof
vl&&(this.lastId=e.id,this.scheduleScrollEvent(e,this.router.parseUrl(e.urlAfterRedirects).fragment))})}consumeScrollEvents(){return
this.router.events.subscribe(e=>{e instanceof
GT&&(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.scrollToPosit
ion([0,0]))})}scheduleScrollEvent(e,n){this.router.triggerEvent(new
GT(e,"popstate"===this.lastSource?this.store[this.restoredId]:null,n))}ngOnDestroy(){this.routerEventsSubscription&&this.routerEventsSubscription.unsubscribe(),this.scrollEventsSubscription&&this.scrollEventsSubscription.unsubscribe()}}return
t.\u0275fac=function(e){Sh()},t.\u0275prov=X({token:t,factory:t.\u0275fac}),t})();const
Lr=new be("ROUTER_CONFIGURATION"),N2=new
be("ROUTER_FORROOT_GUARD"),BH=[_m,{provide:ZT,useClass:XT},{provide:It,useFactory:function
zH(t,i,e,n,s,r,o={},u,h){const b=new It(null,t,i,e,n,s,jT(r));return
u&&(b.urlHandlingStrategy=u),h&&(b.routeReuseStrategy=h),function
jH(t,i){t.errorHandler&&(i.errorHandler=t.errorHandler),t.malformedUriErrorHandler&&(i.malformedUriErrorHandler=t.malformedUriErrorHandler),t.onSameUrlNavigation&&(i.onSameUrlNavigation=t.onSameUrlNavigation),t.paramsInheritanceStrategy&&(i.paramsInheritanceStrategy=t.paramsInheritanceStrategy),t.relativeLinkResolution&&(i.relati
veLinkResolution=t.relativeLinkResolution),t.urlUpdateStrategy&&(i.urlUpdateStrategy=t.urlUpdateStrategy),t.canceledNavigationResolution&&(i.canceledNavigationResolution=t.canceledNavigationResolution)}(o,b),o.enableTracing&&b.events.subscribe(y=>{var
w,M;null===(w=console.group)||void 0===w||w.call(console,`Router Event:
${y.constructor.name}`),console.log(y.toString()),console.log(y),null===(M=console.groupEnd)||void
0===M||M.call(console)}),b},deps:[ZT,Dl,_m,En,qC,gg,Lr,[class EH{},new Ns],[class MH{},new
Ns]]},Dl,{provide:Er,useFactory:function $H(t){return
t.routerState.root},deps:[It]},F2,P2,class VH{preload(i,e){return
e().pipe(Mr(()=>oe(null)))}},{provide:Lr,useValue:{enableTracing:!1}}];function
HH(){return new $C("Router",It)}let vn=(()=>{class t{constructor(e,n){}static
forRoot(e,n){return{ngModule:t,providers:[BH,V2(e),{provide:N2,useFactory:UH,deps:[[It,new
Ns,new _a]]},{provide:Lr,useValue:n||{}},{provide:ko,useFactory:GH,deps:[fr,[new
dc(gm),new Ns],Lr]},{provide:_g,u
seFactory:qH,deps:[It,R4,Lr]},{provide:A2,useExisting:n&&n.preloadingStrategy?n.preloadingStrategy:P2},{provide:$C,multi:!0,useFactory:HH},[bg,{provide:em,multi:!0,useFactory:WH,deps:[bg]},{provide:B2,useFactory:KH,deps:[bg]},{provide:HC,multi:!0,useExisting:B2}]]}}static
forChild(e){return{ngModule:t,providers:[V2(e)]}}}return t.\u0275fac=function(e){return
new(e||t)(K(N2,8),K(It,8))},t.\u0275mod=he({type:t}),t.\u0275inj=ue({}),t})();function
qH(t,i,e){return e.scrollOffset&&i.setOffset(e.scrollOffset),new
_g(t,i,e)}function GH(t,i,e={}){return e.useHash?new vL(t,i):new dy(t,i)}function
UH(t){return"guarded"}function
V2(t){return[{provide:gD,multi:!0,useValue:t},{provide:gg,multi:!0,useValue:t}]}let
bg=(()=>{class
t{constructor(e){this.injector=e,this.initNavigation=!1,this.destroyed=!1,this.resultOfPreactivationDone=new
ct}appInitializer(){return
this.injector.get(gL,Promise.resolve(null)).then(()=>{if(this.destroyed)return
Promise.resolve(!0);let n=null;const s=new Promise(u=>n=u
),r=this.injector.get(It),o=this.injector.get(Lr);return"disabled"===o.initialNavigation?(r.setUpLocationChangeListener(),n(!0)):"enabled"===o.initialNavigation||"enabledBlocking"===o.initialNavigation?(r.hooks.afterPreactivation=()=>this.initNavigation?oe(null):(this.initNavigation=!0,n(!0),this.resultOfPreactivationDone),r.initialNavigation()):n(!0),s})}bootstrapListener(e){const
n=this.injector.get(Lr),s=this.injector.get(F2),r=this.injector.get(_g),o=this.injector.get(It),u=this.injector.get(cm);e===u.components[0]&&(("enabledNonBlocking"===n.initialNavigation||void
0===n.initialNavigation)&&o.initialNavigation(),s.setUpPreloading(),r.init(),o.resetRootComponentType(u.componentTypes[0]),this.resultOfPreactivationDone.next(null),this.resultOfPreactivationDone.complete())}ngOnDestroy(){this.destroyed=!0}}return
t.\u0275fac=function(e){return
new(e||t)(K(En))},t.\u0275prov=X({token:t,factory:t.\u0275fac}),t})();function
WH(t){return t.appInitializer.bind(t)}function KH(t){return t.
bootstrapListener.bind(t)}const B2=new be("Router Initializer");let
m9=(()=>{class t{}return t.\u0275fac=function(e){return
new(e||t)},t.\u0275mod=he({type:t}),t.\u0275inj=ue({imports:[[Fe,vn,pn,jn],vn,jn]}),t})();function
f9(t,i){1&t&&k(0,"span",6),2&t&&p("innerHTML",d(3).text,Bt)}function
g9(t,i){if(1&t&&(l(0,"div"),_(1,f9,1,1,"span",5),c()),2&t){const
e=d(2);a(1),p("ngIf",!e.escape)}}function
_9(t,i){if(1&t&&(l(0,"span",8),g(1),c()),2&t){const
e=d(3);a(1),S(e.text)}}function
b9(t,i){1&t&&_(0,_9,2,1,"span",7),2&t&&p("ngIf",d(2).escape)}const
v9=function(t,i,e,n,s){return{"p-inline-message-info":t,"p-inline-message-warn":i,"p-inline-message-error":e,"p-inline-message-success":n,"p-inline-message-icon-only":s}};function
C9(t,i){if(1&t&&(l(0,"div",1),k(1,"span",2),_(2,g9,2,1,"div",3),_(3,b9,1,1,"ng-template",null,4,we),c()),2&t){const
e=F(4),n=d();me(n.styleClass),p("ngStyle",n.style)("ngClass",pr(7,v9,"info"===n.severity,"warn"===n.severity,"error"===n.severity,"success"===n.severit
y,null==n.text)),a(1),p("ngClass",n.icon),a(1),p("ngIf",!n.escape)("ngIfElse",e)}}let
qe=(()=>{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=z({type:t,selectors:[["p-message"]],hostAttrs:[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,"inne
rHTML"],["class","p-inline-message-text",4,"ngIf"],[1,"p-inline-message-text"]],template:function(e,n){1&e&&_(0,C9,5,13,"div",0),2&e&&p("ngIf",n.severity)},directives:[Q,lt,Le],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})(),y9=(()=>{class
t{}return t.\u0275fac=function(e){return
new(e||t)},t.\u0275mod=he({type:t}),t.\u0275inj=ue({imports:[[Fe]]}),t})(),A9=(()=>{class
t{}return t.\u0275fac=function(e){return
new(e||t)},t.\u0275mod=he({type:t}),t.\u0275inj=ue({imports:[[Fe,pn]]}),t})();function
P9(t,i){1&t&&Y(0)}function F9(t,i){if(1&t){const
e=I();l(0,"button",5),C("click",function(s){return
v(e),d(2).onCloseClick(s)})("keydown.enter",function(){return
v(e),d(2).hide()}),k(1,"span",6),c()}2&t&&ie("aria-label",d(2).ariaCloseLabel)}const
N9=function(t,i){return{sho
wTransitionParams:t,hideTransitionParams:i}},V9=function(t,i){return{value:t,params:i}};function
B9(t,i){if(1&t){const
e=I();l(0,"div",1),C("click",function(s){return
v(e),d().onOverlayClick(s)})("(a)animation.start",function(s){return
v(e),d().onAnimationStart(s)})("(a)animation.done",function(s){return
v(e),d().onAnimationEnd(s)}),l(1,"div",2),C("click",function(){return
v(e),d().onContentClick()})("mousedown",function(){return
v(e),d().onContentClick()}),St(2),_(3,P9,1,0,"ng-container",3),c(),_(4,F9,2,1,"button",4),c()}if(2&t){const
e=d();me(e.styleClass),p("ngClass","p-overlaypanel
p-component")("ngStyle",e.style)("@animation",Ge(10,V9,e.overlayVisible?"open":"close",Ge(7,N9,e.showTransitionOptions,e.hideTransitionOptions))),a(3),p("ngTemplateOutlet",e.contentTemplate),a(1),p("ngIf",e.showCloseIcon)}}const
H9=["*"];let q9=(()=>{class
t{constructor(e,n,s,r,o,u){this.el=e,this.renderer=n,this.cd=s,this.zone=r,this.config=o,this.overlayService=u,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 H,this.onHide=new
H,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=R.isIOS()?"touchstart":"click";this.documentClickListener=this.renderer.listen(this.el?this.el.nativeElement.ownerDocument:"document",e,s=>{!this.container.contains(s.target)&&this.target!==s.target&&!this.target.contains(s.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,n){this.overlayVisible?(this.hasTargetC
hanged(e,n)&&(this.destroyCallback=()=>{this.show(null,n||e.currentTarget||e.target)}),this.hide()):this.show(e,n)}show(e,n){this.target=n||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,n){return
null!=this.target&&this.target!==(n||e.currentTarget||e.target)}appendContainer(){this.appendTo&&("body"===this.appendTo?document.body.appendChild(this.container):R.appendChild(this.container,this.appendTo))}restoreAppend(){this.container&&this.appendTo&&this.el.nativeElement.appendChild(this.container)}align(){this.autoZIndex&&dt.set("overlay",this.container,this.baseZIndex+this.config.zIndex.overlay),R.absolutePosition(this.container,this.target);const
e=R.getOffset(this.container),n=R.getOffset(this.target);let
s=0;e.left<n.left&&(s=n.left-e.left),this.container.style.setProperty("--overl
ayArrowLeft",`${s}px`),e.top<n.top&&R.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=n=>{this.container&&this.container.contains(n.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&&dt.clear(this.container),this.overlaySubscription&&this.overlaySubscription.unsubscribe(),this.onContainerDestroy(),this.onHide.emit({}),this.render=!1}}focus(){let
e=R.findSingle(this.container,"[autofocus]");e&&this.zone.runOutsideAngula
r(()=>{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
Qs(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.autoZI
ndex&&dt.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)(D(De),D(gn),D(rt),D(nt),D(zn),D(Ks))},t.\u0275cmp=z({type:t,selectors:[["p-overlayPanel"]],contentQueries:function(e,n,s){if(1&e&&st(s,ne,4),2&e){let
r;V(r=B())&&(n.templates=r)}},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:H9,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,n){1&e&&(Sn(),_(0,B9,5,13,"div",0)),2&e&&p("ngIf",n.render)},directives:[Q,Le,lt,Rt,bt],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;ri
ght: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:[wi("animation",[ws("void",it({transform:"scaleY(0.8)",opacity:0})),ws("close",it({opacity:0})),ws("open",it({transform:"translateY(0)",opacity:1})),Lt("void
=> open",kt("{{showTransitionParams}}")),Lt("open =>
close",kt("{{hideTransitionParams}}"))])]},changeDetection:0}),t})(),G9=(()=>{class
t{}return t.\u0275fac=function(e){return
new(e||t)},t.\u0275mod=he({type:t}),t.\u0275inj=ue({imports:[[Fe,pn,Nt],Nt]}),t})(),J9=(()=>{class
t{}return t.\u0275fac=function(e){return
new(e||t)},t.\u0275mod=he({type:t}),t.\u0275inj=ue({imports:[[Fe,Nt,pn],Nt]}),t})(),Go=(()=>{class
t{constructor(){this.strokeWidth="2",this.fill="none",this.animationDuration="2s"}}return
t.\u0275fac=function(e){return
new(e||t)},t.\u0275cmp=z({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,n){1&e&&(l(0,"div",0),function
d_(){Ee.lFrame.currentNamespace="svg"}(),l(1,"svg",1),k(2,"circle",2),c()()),2&e&&(p("ngStyle",n.style)("ngClass",n.styleClass),a(1),_i("animation-duration",n.animationDuration),a(1),ie("fill",n.fill)("stroke-width",n.strokeWidth))},directives:[lt,Le],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-rota
te 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})(),Y9=(()=>{class
t{}return t.\u0275fac=function(e){return
new(e||t)},t.\u0275mod=he({type:t}),t.\u0275inj=ue({imports:[[Fe]]}),t})();ku([it({transform:"{{transform}}",opacity:0}),kt("{{transition}}")]),ku([kt("{{transition}}",it(
{transform:"{{transform}}",opacity:0}))]);let iq=(()=>{class t{}return
t.\u0275fac=function(e){return
new(e||t)},t.\u0275mod=he({type:t}),t.\u0275inj=ue({imports:[[Fe,pn]]}),t})(),sq=(()=>{class
t{}return t.\u0275fac=function(e){return
new(e||t)},t.\u0275mod=he({type:t}),t.\u0275inj=ue({imports:[[Fe]]}),t})(),hq=(()=>{class
t{}return t.\u0275fac=function(e){return
new(e||t)},t.\u0275mod=he({type:t}),t.\u0275inj=ue({imports:[[Fe,vn,jn],vn,jn]}),t})();function
mq(t,i){1&t&&k(0,"span",8),2&t&&(me(d(2).$implicit.icon),p("ngClass","p-button-icon
p-button-icon-left"))}function
fq(t,i){if(1&t&&(de(0),_(1,mq,1,3,"span",6),l(2,"span",7),g(3),c(),pe()),2&t){const
e=d().$implicit,n=d();a(1),p("ngIf",e.icon),a(2),S(n.getOptionLabel(e))}}function
gq(t,i){1&t&&Y(0)}const _q=function(t,i){return{$implicit:t,index:i}};function
bq(t,i){if(1&t&&_(0,gq,1,0,"ng-container",9),2&t){const
e=d(),n=e.$implicit,s=e.index;p("ngTemplateOutlet",d().itemTemplate)("ngTemplateOutletContext",Ge(2,_q,n,s))}}const
vq
=function(t,i,e){return{"p-highlight":t,"p-disabled":i,"p-button-icon-only":e}};function
Cq(t,i){if(1&t){const
e=I();l(0,"div",2,3),C("click",function(s){const
r=v(e),o=r.$implicit,u=r.index;return
d().onItemClick(s,o,u)})("keydown.enter",function(s){const
r=v(e),o=r.$implicit,u=r.index;return
d().onItemClick(s,o,u)})("blur",function(){return
v(e),d().onBlur()}),_(2,fq,4,2,"ng-container",4),_(3,bq,1,5,"ng-template",null,5,we),c()}if(2&t){const
e=i.$implicit,n=F(4),s=d();me(e.styleClass),p("ngClass",Qt(10,vq,s.isSelected(e),s.disabled||s.isOptionDisabled(e),e.icon&&!s.getOptionLabel(e))),ie("aria-pressed",s.isSelected(e))("title",e.title)("aria-label",e.label)("tabindex",s.disabled?null:s.tabindex)("aria-labelledby",s.getOptionLabel(e)),a(2),p("ngIf",!s.itemTemplate)("ngIfElse",n)}}const
yq={provide:dn,useExisting:je(()=>wq),multi:!0};let wq=(()=>{class
t{constructor(e){this.cd=e,this.tabindex=0,this.onOptionClick=new H,this.onChange=new
H,this.onModelChange=()=>{},this.onModelTouche
d=()=>{}}getOptionLabel(e){return
this.optionLabel?Z.resolveFieldData(e,this.optionLabel):null!=e.label?e.label:e}getOptionValue(e){return
this.optionValue?Z.resolveFieldData(e,this.optionValue):this.optionLabel||void
0===e.value?e:e.value}isOptionDisabled(e){return
this.optionDisabled?Z.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,n,s){if(!this.disabled&&!this.isOptionDisabled(n)){if(this.multiple)this.isSelected(n)?this.removeOption(n):this.value=[...this.value||[],this.getOptionValue(n)],this.onModelChange(this.value),this.onChange.emit({originalEvent:e,value:this.value});else{let
r=this.getOptionValue(n);this.value!==r&&(this.value=this.getOptionValue(n),this.onModelChange(this.value),this.onChange.emit({originalEvent:e,value:this.value}))}this.onOp
tionClick.emit({originalEvent:e,option:n,index:s})}}onBlur(){this.onModelTouched()}removeOption(e){this.value=this.value.filter(n=>!Z.equals(n,this.getOptionValue(e),this.dataKey))}isSelected(e){let
n=!1,s=this.getOptionValue(e);if(this.multiple){if(this.value)for(let r of
this.value)if(Z.equals(r,s,this.dataKey)){n=!0;break}}else
n=Z.equals(this.getOptionValue(e),this.value,this.dataKey);return n}}return
t.\u0275fac=function(e){return
new(e||t)(D(rt))},t.\u0275cmp=z({type:t,selectors:[["p-selectButton"]],contentQueries:function(e,n,s){if(1&e&&st(s,bi,5),2&e){let
r;V(r=B())&&(n.itemTemplate=r.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:[Pe([yq])],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,n){1&e&&(l(0,"div",0),_(1,Cq,5,14,"div",1),c()),2&e&&(me(n.styleClass),p("ngClass","p-selectbutton
p-buttonset
p-component")("ngStyle",n.style),a(1),p("ngForOf",n.options))},directives:[Le,lt,at,bt,Q,Rt],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:cen
ter}.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}\n"],encapsulation:2,changeDetection:0}),t})(),Tq=(()=>{class
t{}return t.\u0275fac=function(e){return
new(e||t)},t.\u0275mod=he({type:t}),t.\u0275inj=ue({imports:[[Fe,pn]]}),t})();const
Sq=function(t,i,e){return{"p-checkbox-label-active":t,"p-disabled":i,"p-checkbox-label-focus":e}};function
xq(t,i){if(1&t){const
e=I();l(0,"label",7),C("click",function(s){v(e);const
r=d(),o=F(3);return r.onClick(s,o)}),g(1),c()}if(2&t){const e=d();p(
"ngClass",Qt(3,Sq,null!=e.value,e.disabled,e.focused)),ie("for",e.inputId),a(1),S(e.label)}}const
Dq=function(t,i){return{"p-checkbox
p-component":!0,"p-checkbox-disabled":t,"p-checkbox-focused":i}},Mq=function(t,i,e){return{"p-highlight":t,"p-disabled":i,"p-focus":e}},kq={provide:dn,useExisting:je(()=>G2),multi:!0};let
G2=(()=>{class t{constructor(e){this.cd=e,this.checkboxTrueIcon="pi
pi-check",this.checkboxFalseIcon="pi pi-times",this.onChange=new
H,this.onModelChange=()=>{},this.onModelTouched=()=>{}}onClick(e,n){!this.disabled&&!this.readonly&&(this.toggle(e),this.focused=!0,n.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.onModelTouch
ed()}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)(D(rt))},t.\u0275cmp=z({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:[Pe([kq])],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,n){if(1&e){const
s=I();l(0,"div",0)(1,"div",1)(2,"input",2,3),C("keyup",function(o){return
n.onKeyup(o)})("keydown",function(o){return
n.onKeydown(o)})("focus",function(){return
n.onFocus()})("blur",function(){return
n.onBlur()}),c()(),l(4,"div",4),C("click",function(o){v(s);const
u=F(3);return
n.onClick(o,u)}),k(5,"span",5),c()(),_(6,xq,2,7,"label",6)}2&e&&(me(n.styleClass),p("ngStyle",n.style)("ngClass",Ge(14,Dq,n.disabled,n.focused)),a(2),p("name",n.name)("readonly",n.readonly)("disabled",n.disabled),ie("id",n.inputId)("tabindex",n.tabindex)("aria-labelledby",n.ariaLabelledBy),a(2),p("ngClass",Qt(17,Mq,null!=n.value,n.disabled,n.focused)),ie("aria-checked",!0===n.value),a(1),p("ngClass",!0===n.value?n.checkboxTrueIcon:!1===n.value?n.checkboxFalseIcon:""),a(1),p("ngIf",n.label))},directives:[lt,Le,Q],encapsulation:2,changeDetection:0}),t})(),Iq=(()=>{class
t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=he({type:t}),
t.\u0275inj=ue({imports:[[Fe]]}),t})();const
Eq=["container"],Rq=["resizeHelper"],Lq=["reorderIndicatorUp"],Oq=["reorderIndicatorDown"],Aq=["wrapper"],Pq=["table"],Fq=["tableHeader"];function
Nq(t,i){if(1&t&&(l(0,"div",14),k(1,"i"),c()),2&t){const
e=d();a(1),me("p-datatable-loading-icon pi-spin "+e.loadingIcon)}}function
Vq(t,i){1&t&&Y(0)}function
Bq(t,i){if(1&t&&(l(0,"div",15),_(1,Vq,1,0,"ng-container",16),c()),2&t){const
e=d();a(1),p("ngTemplateOutlet",e.captionTemplate)}}function
Hq(t,i){if(1&t){const
e=I();l(0,"p-paginator",17),C("onPageChange",function(s){return
v(e),d().onPageChange(s)}),c()}if(2&t){const
e=d();p("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)("currentPageRe
portTemplate",e.currentPageReportTemplate)("showFirstLastIcon",e.showFirstLastIcon)("dropdownItemTemplate",e.paginatorDropdownItemTemplate)("showCurrentPageReport",e.showCurrentPageReport)("showJumpToPageDropdown",e.showJumpToPageDropdown)("showJumpToPageInput",e.showJumpToPageInput)("showPageLinks",e.showPageLinks)}}function
qq(t,i){1&t&&Y(0)}function Gq(t,i){1&t&&Y(0)}function
Uq(t,i){if(1&t&&k(0,"tbody",25),2&t){const
e=d(2);p("value",e.frozenValue)("frozenRows",!0)("pTableBody",e.columns)("pTableBodyTemplate",e.frozenBodyTemplate)("frozen",!0)}}function
zq(t,i){1&t&&Y(0)}const Zs=function(t){return{$implicit:t}};function
jq(t,i){if(1&t&&(l(0,"tfoot",26),_(1,zq,1,0,"ng-container",20),c()),2&t){const
e=d(2);a(1),p("ngTemplateOutlet",e.footerGroupedTemplate||e.footerTemplate)("ngTemplateOutletContext",U(2,Zs,e.columns))}}function
$q(t,i){if(1&t&&(l(0,"table",18,19),_(2,qq,1,0,"ng-container",20),l(3,"thead",21),_(4,Gq,1,0,"ng-container",20),c(),_(5,Uq,1,5,"tbody",22),k(6,"tbody",23)
,_(7,jq,2,4,"tfoot",24),c()),2&t){const
e=d();p("ngClass",e.tableStyleClass)("ngStyle",e.tableStyle),ie("id",e.id+"-table"),a(2),p("ngTemplateOutlet",e.colGroupTemplate)("ngTemplateOutletContext",U(12,Zs,e.columns)),a(2),p("ngTemplateOutlet",e.headerGroupedTemplate||e.headerTemplate)("ngTemplateOutletContext",U(14,Zs,e.columns)),a(1),p("ngIf",e.frozenValue||e.frozenBodyTemplate),a(1),p("value",e.dataToRender)("pTableBody",e.columns)("pTableBodyTemplate",e.bodyTemplate),a(1),p("ngIf",e.footerGroupedTemplate||e.footerTemplate)}}function
Wq(t,i){1&t&&Y(0)}function Kq(t,i){1&t&&Y(0)}function
Qq(t,i){if(1&t&&k(0,"tbody",25),2&t){const
e=d(2);p("value",e.frozenValue)("frozenRows",!0)("pTableBody",e.columns)("pTableBodyTemplate",e.bodyTemplate)("frozen",!0)}}function
Jq(t,i){1&t&&Y(0)}function
Yq(t,i){if(1&t&&(l(0,"tfoot",26),_(1,Jq,1,0,"ng-container",20),c()),2&t){const
e=d(2);a(1),p("ngTemplateOutlet",e.footerGroupedTemplate||e.footerTemplate)("ngTemplateOutletContext",U(2,Zs,e.columns))
}}function Zq(t,i){if(1&t){const
e=I();l(0,"cdk-virtual-scroll-viewport",27),C("scrolledIndexChange",function(s){return
v(e),d().onScrollIndexChange(s)}),l(1,"table",18,19),_(3,Wq,1,0,"ng-container",20),l(4,"thead",21,28),_(6,Kq,1,0,"ng-container",20),c(),_(7,Qq,1,5,"tbody",22),k(8,"tbody",23),_(9,Yq,2,4,"tfoot",24),c()()}if(2&t){const
e=d();_i("height","flex"!==e.scrollHeight?e.scrollHeight:void
0),p("itemSize",e.virtualRowHeight)("minBufferPx",e.minBufferPx)("maxBufferPx",e.maxBufferPx),a(1),p("ngClass",e.tableStyleClass)("ngStyle",e.tableStyle),ie("id",e.id+"-table"),a(2),p("ngTemplateOutlet",e.colGroupTemplate)("ngTemplateOutletContext",U(17,Zs,e.columns)),a(3),p("ngTemplateOutlet",e.headerGroupedTemplate||e.headerTemplate)("ngTemplateOutletContext",U(19,Zs,e.columns)),a(1),p("ngIf",e.frozenValue||e.frozenBodyTemplate),a(1),p("value",e.dataToRender)("pTableBody",e.columns)("pTableBodyTemplate",e.bodyTemplate),a(1),p("ngIf",e.footerGroupedTemplate||e.footerTemplate)}}function
Xq(
t,i){if(1&t){const
e=I();l(0,"p-paginator",29),C("onPageChange",function(s){return
v(e),d().onPageChange(s)}),c()}if(2&t){const
e=d();p("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
eG(t,i){1&t&&Y(0)}function
tG(t,i){if(1&t&&(l(0,"div",30),_(1,eG,1,0,"ng-container",16),c()),2&t){const
e=d();a(1),p("ngTemplateOutlet",e.summaryTemplate)}}functio
n nG(t,i){1&t&&k(0,"div",31,32)}function
iG(t,i){1&t&&k(0,"span",33,34)}function
sG(t,i){1&t&&k(0,"span",35,36)}const
rG=function(t,i,e,n,s,r,o,u,h,b,y,w,M,E){return{"p-datatable
p-component":!0,"p-datatable-hoverable-rows":t,"p-datatable-auto-layout":i,"p-datatable-resizable":e,"p-datatable-resizable-fit":n,"p-datatable-scrollable":s,"p-datatable-scrollable-vertical":r,"p-datatable-scrollable-horizontal":o,"p-datatable-scrollable-both":u,"p-datatable-flex-scrollable":h,"p-datatable-responsive-stack":b,"p-datatable-responsive-scroll":y,"p-datatable-responsive":w,"p-datatable-grouped-header":M,"p-datatable-grouped-footer":E}},oG=function(t){return{height:t}},aG=["pTableBody",""];function
lG(t,i){1&t&&Y(0)}const
bd=function(t,i,e,n,s){return{$implicit:t,rowIndex:i,columns:e,editing:n,frozen:s}};function
cG(t,i){if(1&t&&(de(0,3),_(1,lG,1,0,"ng-container",4),pe()),2&t){const
e=d(),n=e.$implicit,s=e.index,r=d(2);a(1),p("ngTemplateOutlet",r.dt.groupHeaderTemplate)("ngTemplateOutletContext
",pr(2,bd,n,r.dt.paginator?r.dt.first+s:s,r.columns,"row"===r.dt.editMode&&r.dt.isRowEditing(n),r.frozen))}}function
uG(t,i){1&t&&Y(0)}function
dG(t,i){if(1&t&&(de(0),_(1,uG,1,0,"ng-container",4),pe()),2&t){const
e=d(),n=e.$implicit,s=e.index,r=d(2);a(1),p("ngTemplateOutlet",r.template)("ngTemplateOutletContext",pr(2,bd,n,r.dt.paginator?r.dt.first+s:s,r.columns,"row"===r.dt.editMode&&r.dt.isRowEditing(n),r.frozen))}}function
pG(t,i){1&t&&Y(0)}const
hG=function(t,i,e,n,s,r,o){return{$implicit:t,rowIndex:i,columns:e,editing:n,frozen:s,rowgroup:r,rowspan:o}};function
mG(t,i){if(1&t&&(de(0),_(1,pG,1,0,"ng-container",4),pe()),2&t){const
e=d(),n=e.$implicit,s=e.index,r=d(2);a(1),p("ngTemplateOutlet",r.template)("ngTemplateOutletContext",function
aC(t,i,e,n,s,r,o,u,h,b){const y=Fn()+t,w=$();let M=gi(w,y,e,n,s,r);return
Mc(w,y+4,o,u,h)||M?es(w,y+7,b?i.call(b,e,n,s,r,o,u,h):i(e,n,s,r,o,u,h)):Ea(w,y+7)}(2,hG,n,r.dt.paginator?r.dt.first+s:s,r.columns,"row"===r.dt.editMode&&r.dt.isRowEditing(n)
,r.frozen,r.shouldRenderRowspan(r.value,n,s),r.calculateRowGroupSize(r.value,n,s)))}}function
fG(t,i){1&t&&Y(0)}function
gG(t,i){if(1&t&&(de(0,3),_(1,fG,1,0,"ng-container",4),pe()),2&t){const
e=d(),n=e.$implicit,s=e.index,r=d(2);a(1),p("ngTemplateOutlet",r.dt.groupFooterTemplate)("ngTemplateOutletContext",pr(2,bd,n,r.dt.paginator?r.dt.first+s:s,r.columns,"row"===r.dt.editMode&&r.dt.isRowEditing(n),r.frozen))}}function
_G(t,i){if(1&t&&(_(0,cG,2,8,"ng-container",2),_(1,dG,2,8,"ng-container",0),_(2,mG,2,10,"ng-container",0),_(3,gG,2,8,"ng-container",2)),2&t){const
e=i.$implicit,n=i.index,s=d(2);p("ngIf",s.dt.groupHeaderTemplate&&"subheader"===s.dt.rowGroupMode&&s.shouldRenderRowGroupHeader(s.value,e,n)),a(1),p("ngIf","rowspan"!==s.dt.rowGroupMode),a(1),p("ngIf","rowspan"===s.dt.rowGroupMode),a(1),p("ngIf",s.dt.groupFooterTemplate&&"subheader"===s.dt.rowGroupMode&&s.shouldRenderRowGroupFooter(s.value,e,n))}}function
bG(t,i){if(1&t&&(de(0),_(1,_G,4,4,"ng-template",1),pe()),2&t){const
e=d
();a(1),p("ngForOf",e.value)("ngForTrackBy",e.dt.rowTrackBy)}}function
vG(t,i){1&t&&Y(0)}function
CG(t,i){if(1&t&&_(0,vG,1,0,"ng-container",4),2&t){const
e=i.$implicit,n=i.index,s=d(2);p("ngTemplateOutlet",e?s.template:s.dt.loadingBodyTemplate)("ngTemplateOutletContext",pr(2,bd,e,s.dt.paginator?s.dt.first+n:n,s.columns,"row"===s.dt.editMode&&s.dt.isRowEditing(e),s.frozen))}}function
yG(t,i){if(1&t&&(de(0),_(1,CG,1,8,"ng-template",5),pe()),2&t){const
e=d();a(1),p("cdkVirtualForOf",e.dt.filteredValue||e.dt.value)("cdkVirtualForTrackBy",e.dt.rowTrackBy)("cdkVirtualForTemplateCacheSize",0)}}function
wG(t,i){1&t&&Y(0)}const
vd=function(t,i,e,n,s,r){return{$implicit:t,rowIndex:i,columns:e,expanded:n,editing:s,frozen:r}};function
TG(t,i){if(1&t&&(de(0),_(1,wG,1,0,"ng-container",4),pe()),2&t){const
e=d(),n=e.$implicit,s=e.index,r=d(2);a(1),p("ngTemplateOutlet",r.template)("ngTemplateOutletContext",Do(2,vd,n,r.dt.paginator?r.dt.first+s:s,r.columns,r.dt.isRowExpanded(n),"row"===r.dt.editMode&
&r.dt.isRowEditing(n),r.frozen))}}function SG(t,i){1&t&&Y(0)}function
xG(t,i){if(1&t&&(de(0,3),_(1,SG,1,0,"ng-container",4),pe()),2&t){const
e=d(),n=e.$implicit,s=e.index,r=d(2);a(1),p("ngTemplateOutlet",r.dt.groupHeaderTemplate)("ngTemplateOutletContext",Do(2,vd,n,r.dt.paginator?r.dt.first+s:s,r.columns,r.dt.isRowExpanded(n),"row"===r.dt.editMode&&r.dt.isRowEditing(n),r.frozen))}}function
DG(t,i){1&t&&Y(0)}function MG(t,i){1&t&&Y(0)}function
kG(t,i){if(1&t&&(de(0,3),_(1,MG,1,0,"ng-container",4),pe()),2&t){const
e=d(2),n=e.$implicit,s=e.index,r=d(2);a(1),p("ngTemplateOutlet",r.dt.groupFooterTemplate)("ngTemplateOutletContext",Do(2,vd,n,r.dt.paginator?r.dt.first+s:s,r.columns,r.dt.isRowExpanded(n),"row"===r.dt.editMode&&r.dt.isRowEditing(n),r.frozen))}}const
U2=function(t,i,e,n){return{$implicit:t,rowIndex:i,columns:e,frozen:n}};function
IG(t,i){if(1&t&&(de(0),_(1,DG,1,0,"ng-container",4),_(2,kG,2,9,"ng-container",2),pe()),2&t){const
e=d(),n=e.$implicit,s=e.index,r=d(2);a(1),p("ngTem
plateOutlet",r.dt.expandedRowTemplate)("ngTemplateOutletContext",qn(3,U2,n,r.dt.paginator?r.dt.first+s:s,r.columns,r.frozen)),a(1),p("ngIf",r.dt.groupFooterTemplate&&"subheader"===r.dt.rowGroupMode&&r.shouldRenderRowGroupFooter(r.value,n,s))}}function
EG(t,i){if(1&t&&(_(0,TG,2,9,"ng-container",0),_(1,xG,2,9,"ng-container",2),_(2,IG,3,8,"ng-container",0)),2&t){const
e=i.$implicit,n=i.index,s=d(2);p("ngIf",!s.dt.groupHeaderTemplate),a(1),p("ngIf",s.dt.groupHeaderTemplate&&"subheader"===s.dt.rowGroupMode&&s.shouldRenderRowGroupHeader(s.value,e,n)),a(1),p("ngIf",s.dt.isRowExpanded(e))}}function
RG(t,i){if(1&t&&(de(0),_(1,EG,3,3,"ng-template",1),pe()),2&t){const
e=d();a(1),p("ngForOf",e.value)("ngForTrackBy",e.dt.rowTrackBy)}}function
LG(t,i){1&t&&Y(0)}function OG(t,i){1&t&&Y(0)}function
AG(t,i){if(1&t&&(de(0),_(1,OG,1,0,"ng-container",4),pe()),2&t){const
e=d(),n=e.$implicit,s=e.index,r=d(2);a(1),p("ngTemplateOutlet",r.dt.frozenExpandedRowTemplate)("ngTemplateOutletContext",qn(2,U2,n,r.d
t.paginator?r.dt.first+s:s,r.columns,r.frozen))}}function
PG(t,i){if(1&t&&(_(0,LG,1,0,"ng-container",4),_(1,AG,2,7,"ng-container",0)),2&t){const
e=i.$implicit,n=i.index,s=d(2);p("ngTemplateOutlet",s.template)("ngTemplateOutletContext",Do(3,vd,e,s.dt.paginator?s.dt.first+n:n,s.columns,s.dt.isRowExpanded(e),"row"===s.dt.editMode&&s.dt.isRowEditing(e),s.frozen)),a(1),p("ngIf",s.dt.isRowExpanded(e))}}function
FG(t,i){if(1&t&&(de(0),_(1,PG,2,10,"ng-template",1),pe()),2&t){const
e=d();a(1),p("ngForOf",e.value)("ngForTrackBy",e.dt.rowTrackBy)}}function
NG(t,i){1&t&&Y(0)}const
z2=function(t,i){return{$implicit:t,frozen:i}};function
VG(t,i){if(1&t&&(de(0),_(1,NG,1,0,"ng-container",4),pe()),2&t){const
e=d();a(1),p("ngTemplateOutlet",e.dt.loadingBodyTemplate)("ngTemplateOutletContext",Ge(2,z2,e.columns,e.frozen))}}function
BG(t,i){1&t&&Y(0)}function
HG(t,i){if(1&t&&(de(0),_(1,BG,1,0,"ng-container",4),pe()),2&t){const
e=d();a(1),p("ngTemplateOutlet",e.dt.emptyMessageTemplate)("ngTemplateOutletC
ontext",Ge(2,z2,e.columns,e.frozen))}}function
qG(t,i){if(1&t&&(l(0,"span",2),g(1),c()),2&t){const
e=d();a(1),S(e.getBadgeValue())}}const
GG=function(t,i,e){return{"pi-sort-amount-up-alt":t,"pi-sort-amount-down":i,"pi-sort-alt":e}};function
UG(t,i){1&t&&Y(0)}function
zG(t,i){if(1&t&&(de(0),_(1,UG,1,0,"ng-container",1),pe()),2&t){const
e=d();a(1),p("ngTemplateOutlet",e.inputTemplate)}}function
jG(t,i){1&t&&Y(0)}function
$G(t,i){if(1&t&&(de(0),_(1,jG,1,0,"ng-container",1),pe()),2&t){const
e=d();a(1),p("ngTemplateOutlet",e.outputTemplate)}}function
WG(t,i){1&t&&Y(0)}const
KG=function(t,i){return{$implicit:t,filterCallback:i}};function
QG(t,i){if(1&t&&(de(0),_(1,WG,1,0,"ng-container",2),pe()),2&t){const
e=d();a(1),p("ngTemplateOutlet",e.filterTemplate)("ngTemplateOutletContext",Ge(2,KG,e.filterConstraint.value,e.filterCallback))}}function
JG(t,i){if(1&t){const
e=I();l(0,"input",8),C("input",function(s){return
v(e),d(2).onModelChange(s.target.value)})("keydown.enter",function(s){return v
(e),d(2).onTextInputEnterKeyDown(s)}),c()}if(2&t){const
e=d(2);p("value",null==e.filterConstraint?null:e.filterConstraint.value),ie("placeholder",e.placeholder)}}function
YG(t,i){if(1&t){const
e=I();l(0,"p-inputNumber",9),C("ngModelChange",function(s){return
v(e),d(2).onModelChange(s)})("onKeyDown",function(s){return
v(e),d(2).onNumericInputKeyDown(s)}),c()}if(2&t){const
e=d(2);p("ngModel",null==e.filterConstraint?null:e.filterConstraint.value)("showButtons",!0)("minFractionDigits",e.minFractionDigits)("maxFractionDigits",e.maxFractionDigits)("prefix",e.prefix)("suffix",e.suffix)("placeholder",e.placeholder)("mode",e.currency?"currency":"decimal")("locale",e.locale)("localeMatcher",e.localeMatcher)("currency",e.currency)("currencyDisplay",e.currencyDisplay)("useGrouping",e.useGrouping)}}function
ZG(t,i){if(1&t){const
e=I();l(0,"p-triStateCheckbox",10),C("ngModelChange",function(s){return
v(e),d(2).onModelChange(s)}),c()}if(2&t){const
e=d(2);p("ngModel",null==e.filterConstraint?null:
e.filterConstraint.value)}}function XG(t,i){if(1&t){const
e=I();l(0,"p-calendar",11),C("ngModelChange",function(s){return
v(e),d(2).onModelChange(s)}),c()}if(2&t){const
e=d(2);p("placeholder",e.placeholder)("ngModel",null==e.filterConstraint?null:e.filterConstraint.value)}}function
eU(t,i){1&t&&(de(0,3),_(1,JG,1,2,"input",4),_(2,YG,1,13,"p-inputNumber",5),_(3,ZG,1,1,"p-triStateCheckbox",6),_(4,XG,1,2,"p-calendar",7),pe()),2&t&&(p("ngSwitch",d().type),a(1),p("ngSwitchCase","text"),a(1),p("ngSwitchCase","numeric"),a(1),p("ngSwitchCase","boolean"),a(1),p("ngSwitchCase","date"))}const
tU=["icon"];function
nU(t,i){if(1&t&&k(0,"p-columnFilterFormElement",5),2&t){const
e=d();p("type",e.type)("field",e.field)("filterConstraint",e.dt.filters[e.field])("filterTemplate",e.filterTemplate)("placeholder",e.placeholder)("minFractionDigits",e.minFractionDigits)("maxFractionDigits",e.maxFractionDigits)("prefix",e.prefix)("suffix",e.suffix)("locale",e.locale)("localeMatcher",e.localeMatcher)("currenc
y",e.currency)("currencyDisplay",e.currencyDisplay)("useGrouping",e.useGrouping)}}const
iU=function(t,i){return{"p-column-filter-menu-button-open":t,"p-column-filter-menu-button-active":i}};function
sU(t,i){if(1&t){const
e=I();l(0,"button",6,7),C("click",function(){return
v(e),d().toggleMenu()})("keydown",function(s){return
v(e),d().onToggleButtonKeyDown(s)}),k(2,"span",8),c()}if(2&t){const
e=d();p("ngClass",Ge(2,iU,e.overlayVisible,e.hasFilter())),ie("aria-expanded",e.overlayVisible)}}const
rU=function(t){return{"p-hidden-space":t}};function oU(t,i){if(1&t){const
e=I();l(0,"button",9,7),C("click",function(){return
v(e),d().clearFilter()}),k(2,"span",10),c()}if(2&t){const
e=d();p("ngClass",U(1,rU,!e.hasRowFilter()))}}function
aU(t,i){1&t&&Y(0)}const
lU=function(t){return{"p-highlight":t}};function cU(t,i){if(1&t){const
e=I();l(0,"li",19),C("click",function(){const r=v(e).$implicit;return
d(3).onRowMatchModeChange(r.value)})("keydown",function(s){return
v(e),d(3).onRowMatchModeKeyDow
n(s)})("keydown.enter",function(){const r=v(e).$implicit;return
d(3).onRowMatchModeChange(r.value)}),g(1),c()}if(2&t){const
e=i.$implicit,n=i.index,s=d(3);p("ngClass",U(3,lU,s.isRowMatchModeSelected(e.value))),ie("tabindex",0===n?"0":null),a(1),S(e.label)}}function
uU(t,i){if(1&t){const
e=I();l(0,"ul",15),_(1,cU,2,5,"li",16),k(2,"li",17),l(3,"li",18),C("click",function(){return
v(e),d(2).onRowClearItemClick()})("keydown",function(s){return
v(e),d(2).onRowMatchModeKeyDown(s)})("keydown.enter",function(){return
v(e),d(2).onRowClearItemClick()}),g(4),c()()}if(2&t){const
e=d(2);a(1),p("ngForOf",e.matchModes),a(3),S(e.noFilterLabel)}}function
dU(t,i){if(1&t){const
e=I();l(0,"div",27)(1,"p-dropdown",28),C("ngModelChange",function(s){return
v(e),d(3).onOperatorChange(s)}),c()()}if(2&t){const
e=d(3);a(1),p("options",e.operatorOptions)("ngModel",e.operator)}}function
pU(t,i){if(1&t){const
e=I();l(0,"p-dropdown",33),C("ngModelChange",function(s){v(e);const
r=d().$implicit;return d(3).onMenuMa
tchModeChange(s,r)}),c()}if(2&t){const
e=d().$implicit;p("options",d(3).matchModes)("ngModel",e.matchMode)}}function
hU(t,i){if(1&t){const
e=I();l(0,"button",34),C("click",function(){v(e);const
s=d().$implicit;return
d(3).removeConstraint(s)}),c()}2&t&&p("label",d(4).removeRuleButtonLabel)}function
mU(t,i){if(1&t&&(l(0,"div",29),_(1,pU,1,2,"p-dropdown",30),k(2,"p-columnFilterFormElement",31),l(3,"div"),_(4,hU,1,1,"button",32),c()()),2&t){const
e=i.$implicit,n=d(3);a(1),p("ngIf",n.showMatchModes&&n.matchModes),a(1),p("type",n.type)("field",n.field)("filterConstraint",e)("filterTemplate",n.filterTemplate)("placeholder",n.placeholder)("minFractionDigits",n.minFractionDigits)("maxFractionDigits",n.maxFractionDigits)("prefix",n.prefix)("suffix",n.suffix)("locale",n.locale)("localeMatcher",n.localeMatcher)("currency",n.currency)("currencyDisplay",n.currencyDisplay)("useGrouping",n.useGrouping),a(2),p("ngIf",n.showRemoveIcon)}}function
fU(t,i){if(1&t){const e=I();l(0,"div",35)(1,"button",3
6),C("click",function(){return
v(e),d(3).addConstraint()}),c()()}if(2&t){const
e=d(3);a(1),p("label",e.addRuleButtonLabel)}}function gU(t,i){if(1&t){const
e=I();l(0,"button",37),C("click",function(){return
v(e),d(3).clearFilter()}),c()}2&t&&p("label",d(3).clearButtonLabel)}function
_U(t,i){if(1&t){const
e=I();l(0,"button",38),C("click",function(){return
v(e),d(3).applyFilter()}),c()}2&t&&p("label",d(3).applyButtonLabel)}function
bU(t,i){if(1&t&&(_(0,dU,2,2,"div",20),l(1,"div",21),_(2,mU,5,16,"div",22),c(),_(3,fU,2,1,"div",23),l(4,"div",24),_(5,gU,1,1,"button",25),_(6,_U,1,1,"button",26),c()),2&t){const
e=d(2);p("ngIf",e.isShowOperator),a(2),p("ngForOf",e.fieldConstraints),a(1),p("ngIf",e.isShowAddConstraint),a(2),p("ngIf",e.showClearButton),a(1),p("ngIf",e.showApplyButton)}}function
vU(t,i){1&t&&Y(0)}const CU=function(t){return{"p-column-filter-overlay
p-component p-fluid":!0,"p-column-filter-overlay-menu":t}};function
yU(t,i){if(1&t){const e=I();l(0,"div",11),C("click",function(){r
eturn v(e),d().onContentClick()})("(a)overlayAnimation.start",function(s){return
v(e),d().onOverlayAnimationStart(s)})("(a)overlayAnimation.done",function(s){return
v(e),d().onOverlayAnimationEnd(s)})("keydown.escape",function(){return
v(e),d().onEscape()}),_(1,aU,1,0,"ng-container",12),_(2,uU,5,2,"ul",13),_(3,bU,7,5,"ng-template",null,14,we),_(5,vU,1,0,"ng-container",12),c()}if(2&t){const
e=F(4),n=d();p("ngClass",U(8,CU,"menu"===n.display))("@overlayAnimation","visible"),a(1),p("ngTemplateOutlet",n.headerTemplate)("ngTemplateOutletContext",U(10,Zs,n.field)),a(1),p("ngIf","row"===n.display)("ngIfElse",e),a(3),p("ngTemplateOutlet",n.footerTemplate)("ngTemplateOutletContext",U(12,Zs,n.field))}}const
wU=function(t,i){return{"p-column-filter-row":t,"p-column-filter-menu":i}};let
Cd=(()=>{class t{constructor(){this.sortSource=new ct,this.selectionSource=new
ct,this.contextMenuSource=new ct,this.valueSource=new ct,this.totalRecordsSource=new
ct,this.columnsSource=new ct,this.resetSource=new c
t,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=X({token:t,factory:t.\u0275fac}),t})(),Dn=(()=>{class
t{constructor(e,n,s,r,o,u){this.el=e,this.zone=n,this.tableService=s,this.cd=r,this.filterService=o,this.overlayService=u,this.pageLinks=5,this.alwaysShowPaginator=!0,thi
s.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
H,this.selectionChange=new H,this.contextMenuSelectionChange=new
H,this.contextMenuSelectionMode="separate",this.rowTrackBy=(h,b)=>b,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
H,t
his.onRowUnselect=new H,this.onPage=new H,this.onSort=new H,this.onFilter=new
H,this.onLazyLoad=new H,this.onRowExpand=new H,this.onRowCollapse=new
H,this.onContextMenuSelect=new H,this.onColResize=new H,this.onColReorder=new
H,this.onRowReorder=new H,this.onEditInit=new H,this.onEditComplete=new
H,this.onEditCancel=new H,this.onHeaderCheckboxToggle=new H,this.sortFunction=new
H,this.firstChange=new H,this.rowsChange=new H,this.onStateSave=new
H,this.onStateRestore=new
H,this._value=[],this._totalRecords=0,this._first=0,this.selectionKeys={},this._sortOrder=1,this._selectAll=null,this.columnResizing=!1,this.rowGroupHeaderStyleObject={},this.id=pl(),this.virtualScrollInitialized=!1}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.forEac
h(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.frozenFooterTemplate=e.template;break;case"f
rozencolgroup":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():"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.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)&&this.sortMultiple()),e.selecti
on&&(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(Z.resolveFieldData(e,this.dataKey))]=1;else
this.selectionKeys[String(Z.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=null,this.scrollable&&this.res
etScrollTop()}sort(e){let
n=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
s=n.metaKey||n.ctrlKey,r=this.getSortMeta(e.field);r?s?r.order=-1*r.order:(this._multiSortMeta=[{field:e.field,order:-1*r.order}],this.resetPageOnSort&&(this._first=0,this.firstChange.emit(this._first),this.scrollable&&this.resetScrollTop())):((!s||!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,n=this.sortField?this.sortOrder:this.groupRowsByOrder;if(this.groupRowsBy&&this.so
rtField&&this.groupRowsBy!==this.sortField)return
this._multiSortMeta=[this.getGroupRowsMeta(),{field:this.sortField,order:this.sortOrder}],void
this.sortMultiple();if(e&&n){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:n}):(this.value.sort((r,o)=>{let
u=Z.resolveFieldData(r,e),h=Z.resolveFieldData(o,e),b=null;return
b=null==u&&null!=h?-1:null!=u&&null==h?1:null==u&&null==h?0:"string"==typeof
u&&"string"==typeof
h?u.localeCompare(h):u<h?-1:u>h?1:0,n*b}),this._value=[...this.value]),this.hasFilter()&&this._filter());let
s={field:e,order:n};this.onSort.emit(s),this.tableService.onSort(s)}}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,n)=>this.multisortField(e,n,this.multiSortMeta,0)),this._value=[...this.value]),this.hasFilter()&&this._filter()),this.onSort.emit({multisortmeta:this.multiSortMeta}),this.tableService.onSort(this.multiSortMeta))}multisortField(e,n,s,r){let
o=Z.resolveFieldData(e,s[r].field),u=Z.resolveFieldData(n,s[r].field),h=null;if(null==o&&null!=u)h=-1;else
if(null!=o&&null==u)h=1;else if(null==o&&null==u)h=0;else
if("string"==typeof o||o instanceof
String){if(o.localeCompare&&o!=u)return s[r].order*o.localeCompare(u)}else
h=o<u?-1:1;return
o==u?s.length-1>r?this.multisortField(e,n,s,r+1):0:s[r].order*h}getSortMeta(e){if(this.multiSortMeta&&this.multiSortMeta.length)for(let
n=0;n<this.multiSortMeta.length;n++)if(this.multiSortMeta[n].field===e)return
this.multiSortMeta[n];return null}isSorted(
e){if("single"===this.sortMode)return
this.sortField&&this.sortField===e;if("multiple"===this.sortMode){let
n=!1;if(this.multiSortMeta)for(let
s=0;s<this.multiSortMeta.length;s++)if(this.multiSortMeta[s].field==e){n=!0;break}return
n}}handleRowClick(e){let
n=e.originalEvent.target,s=n.nodeName,r=n.parentElement&&n.parentElement.nodeName;if("INPUT"!=s&&"BUTTON"!=s&&"A"!=s&&"INPUT"!=r&&"BUTTON"!=r&&"A"!=r&&!R.hasClass(e.originalEvent.target,"p-clickable")){if(this.selectionMode){let
o=e.rowData,u=e.rowIndex;if(this.preventSelectionSetterPropagation=!0,this.isMultipleSelectionMode()&&e.originalEvent.shiftKey&&null!=this.anchorRowIndex)R.clearSelection(),null!=this.rangeRowIndex&&this.clearSelectionRange(e.originalEvent),this.rangeRowIndex=u,this.selectRange(e.originalEvent,u);else{let
h=this.isSelected(o);if(!h&&!this.isRowSelectable(o,u))return;let
b=!this.rowTouched&&this.metaKeySelection,y=this.dataKey?String(Z.resolveFieldData(o,this.dataKey)):null;if(this.anchorRowIndex=u,this.ran
geRowIndex=u,b){let
w=e.originalEvent.metaKey||e.originalEvent.ctrlKey;if(h&&w){if(this.isSingleSelectionMode())this._selection=null,this.selectionKeys={},this.selectionChange.emit(null);else{let
M=this.findIndexInSelection(o);this._selection=this.selection.filter((E,L)=>L!=M),this.selectionChange.emit(this.selection),y&&delete
this.selectionKeys[y]}this.onRowUnselect.emit({originalEvent:e.originalEvent,data:o,type:"row"})}else
this.isSingleSelectionMode()?(this._selection=o,this.selectionChange.emit(o),y&&(this.selectionKeys={},this.selectionKeys[y]=1)):this.isMultipleSelectionMode()&&(w?this._selection=this.selection||[]:(this._selection=[],this.selectionKeys={}),this._selection=[...this.selection,o],this.selectionChange.emit(this.selection),y&&(this.selectionKeys[y]=1)),this.onRowSelect.emit({originalEvent:e.originalEvent,data:o,type:"row",index:u})}else
if("single"===this.selectionMode)h?(this._selection=null,this.selectionKeys={},this.selectionChange.emit(this.selection),this.o
nRowUnselect.emit({originalEvent:e.originalEvent,data:o,type:"row",index:u})):(this._selection=o,this.selectionChange.emit(this.selection),this.onRowSelect.emit({originalEvent:e.originalEvent,data:o,type:"row",index:u}),y&&(this.selectionKeys={},this.selectionKeys[y]=1));else
if("multiple"===this.selectionMode)if(h){let
w=this.findIndexInSelection(o);this._selection=this.selection.filter((M,E)=>E!=w),this.selectionChange.emit(this.selection),this.onRowUnselect.emit({originalEvent:e.originalEvent,data:o,type:"row",index:u}),y&&delete
this.selectionKeys[y]}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:u}),y&&(this.selectionKeys[y]=1)}this.tableService.onSelectionChange(),this.isStateful()&&this.saveState()}this.rowTouched=!1}}handleRowTouchEnd(e){this.rowTouched=!0}handleRowRightClick(e){if(this.contextMenu){const
n=e.rowData,s=e.rowIndex;if("separate"
===this.contextMenuSelectionMode)this.contextMenuSelection=n,this.contextMenuSelectionChange.emit(n),this.onContextMenuSelect.emit({originalEvent:e.originalEvent,data:n,index:e.rowIndex}),this.contextMenu.show(e.originalEvent),this.tableService.onContextMenu(n);else
if("joint"===this.contextMenuSelectionMode){this.preventSelectionSetterPropagation=!0;let
r=this.isSelected(n),o=this.dataKey?String(Z.resolveFieldData(n,this.dataKey)):null;if(!r){if(!this.isRowSelectable(n,s))return;this.isSingleSelectionMode()?(this.selection=n,this.selectionChange.emit(n),o&&(this.selectionKeys={},this.selectionKeys[o]=1)):this.isMultipleSelectionMode()&&(this._selection=this.selection?[...this.selection,n]:[n],this.selectionChange.emit(this.selection),o&&(this.selectionKeys[o]=1))}this.tableService.onSelectionChange(),this.contextMenu.show(e.originalEvent),this.onContextMenuSelect.emit({originalEvent:e,data:n,index:e.rowIndex})}}}selectRange(e,n){let
s,r;this.anchorRowIndex>n?(s=n,r=this.anchorRowIn
dex):this.anchorRowIndex<n?(s=this.anchorRowIndex,r=n):(s=n,r=n),this.lazy&&this.paginator&&(s-=this.first,r-=this.first);let
o=[];for(let u=s;u<=r;u++){let
h=this.filteredValue?this.filteredValue[u]:this.value[u];if(!this.isSelected(h)){if(!this.isRowSelectable(h,n))continue;o.push(h),this._selection=[...this.selection,h];let
b=this.dataKey?String(Z.resolveFieldData(h,this.dataKey)):null;b&&(this.selectionKeys[b]=1)}}this.selectionChange.emit(this.selection),this.onRowSelect.emit({originalEvent:e,data:o,type:"row"})}clearSelectionRange(e){let
n,s;this.rangeRowIndex>this.anchorRowIndex?(n=this.anchorRowIndex,s=this.rangeRowIndex):this.rangeRowIndex<this.anchorRowIndex?(n=this.rangeRowIndex,s=this.anchorRowIndex):(n=this.rangeRowIndex,s=this.rangeRowIndex);for(let
r=n;r<=s;r++){let
o=this.value[r],u=this.findIndexInSelection(o);this._selection=this.selection.filter((b,y)=>y!=u);let
h=this.dataKey?String(Z.resolveFieldData(o,this.dataKey)):null;h&&delete
this.selectionKeys[h],this.onR
owUnselect.emit({originalEvent:e,data:o,type:"row"})}}isSelected(e){return!(!e||!this.selection)&&(this.dataKey?void
0!==this.selectionKeys[Z.resolveFieldData(e,this.dataKey)]:this.selection instanceof
Array?this.findIndexInSelection(e)>-1:this.equals(e,this.selection))}findIndexInSelection(e){let
n=-1;if(this.selection&&this.selection.length)for(let
s=0;s<this.selection.length;s++)if(this.equals(e,this.selection[s])){n=s;break}return
n}isRowSelectable(e,n){return!(this.rowSelectable&&!this.rowSelectable({data:e,index:n}))}toggleRowWithRadio(e,n){if(this.preventSelectionSetterPropagation=!0,this.selection!=n){if(!this.isRowSelectable(n,e.rowIndex))return;this._selection=n,this.selectionChange.emit(this.selection),this.onRowSelect.emit({originalEvent:e.originalEvent,index:e.rowIndex,data:n,type:"radiobutton"}),this.dataKey&&(this.selectionKeys={},this.selectionKeys[String(Z.resolveFieldData(n,this.dataKey))]=1)}else
this._selection=null,this.selectionChange.emit(this.selection),this.
onRowUnselect.emit({originalEvent:e.originalEvent,index:e.rowIndex,data:n,type:"radiobutton"});this.tableService.onSelectionChange(),this.isStateful()&&this.saveState()}toggleRowWithCheckbox(e,n){this.selection=this.selection||[];let
s=this.isSelected(n),r=this.dataKey?String(Z.resolveFieldData(n,this.dataKey)):null;if(this.preventSelectionSetterPropagation=!0,s){let
o=this.findIndexInSelection(n);this._selection=this.selection.filter((u,h)=>h!=o),this.selectionChange.emit(this.selection),this.onRowUnselect.emit({originalEvent:e.originalEvent,index:e.rowIndex,data:n,type:"checkbox"}),r&&delete
this.selectionKeys[r]}else{if(!this.isRowSelectable(n,e.rowIndex))return;this._selection=this.selection?[...this.selection,n]:[n],this.selectionChange.emit(this.selection),this.onRowSelect.emit({originalEvent:e.originalEvent,index:e.rowIndex,data:n,type:"checkbox"}),r&&(this.selectionKeys[r]=1)}this.tableService.onSelectionChange(),this.isStateful()&&this.saveState()}toggleRowsWithCheckbox(e,n
){if(null!==this._selectAll)this.selectAllChange.emit({originalEvent:e,checked:n});else{const
s=this.selectionPageOnly?this.dataToRender:this.filteredValue||this.value||[];let
r=this.selectionPageOnly&&this._selection?this._selection.filter(o=>!s.some(u=>this.equals(o,u))):[];n&&(r=this.frozenValue?[...r,...this.frozenValue,...s]:[...r,...s],r=this.rowSelectable?r.filter((o,u)=>this.rowSelectable({data:o,index:u})):r),this._selection=r,this.preventSelectionSetterPropagation=!0,this.updateSelectionKeys(),this.selectionChange.emit(this._selection),this.tableService.onSelectionChange(),this.onHeaderCheckboxToggle.emit({originalEvent:e,checked:n}),this.isStateful()&&this.saveState()}}equals(e,n){return"equals"===this.compareSelectionBy?e===n:Z.equals(e,n,this.dataKey)}filter(e,n,s){this.filterTimeout&&clearTimeout(this.filterTimeout),this.isFilterBlank(e)?this.filters[n]&&delete
this.filters[n]:this.filters[n]={value:e,matchMode:s},this.filterTimeout=setTimeout(()=>{this._filter(),this.
filterTimeout=null},this.filterDelay),this.anchorRowIndex=null}filterGlobal(e,n){this.filter(e,"global",n)}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
n=0;n<this.value.length;n++){let u,s=!0,r=!1,o=!1;for(let h in
this.filters)if(this.filters.hasOwnProperty(h)&&"global"!==h){o=!0;let
b=h,y=this.filters[b];if(Array.isArray(y)){for(let w of
y)if(s=this.executeLocalFilter(b,this.value[n],w),w.operator===ml.OR&&s||w.operator===ml.AND&&!s)break}else
s=this.executeLocalFilter(b,this.value[n],y);if(!s)b
reak}if(this.filters.global&&!r&&e)for(let
h=0;h<e.length&&(r=this.filterService.filters[this.filters.global.matchMode](Z.resolveFieldData(this.value[n],e[h].field||e[h]),this.filters.global.value,this.filterLocale),!r);h++);u=this.filters.global?o?o&&s&&r:r:o&&s,u&&this.filteredValue.push(this.value[n])}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,n,s){let
r=s.value,o=s.matchMode||_t.STARTS_WITH,u=Z.resolveFieldData(n,e);return this.f
ilterService.filters[o](u,r,this.filterLocale)}hasFilter(){let e=!0;for(let n in
this.filters)if(this.filters.hasOwnProperty(n)){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()}getExportHeader(e){return
e[this.exportHeader]||e.header||e.field}exportCSV(e){let
n,s="",r=this.columns;e&&e.selectionOnly?n=this.selection||[]:(n=this.filteredValue||this.value,this.f
rozenValue&&(n=n?[...this.frozenValue,...n]:this.frozenValue));for(let
h=0;h<r.length;h++){let
b=r[h];!1!==b.exportable&&b.field&&(s+='"'+this.getExportHeader(b)+'"',h<r.length-1&&(s+=this.csvSeparator))}n.forEach((h,b)=>{s+="\n";for(let
y=0;y<r.length;y++){let w=r[y];if(!1!==w.exportable&&w.field){let
M=Z.resolveFieldData(h,w.field);M=null!=M?this.exportFunction?this.exportFunction({data:M,field:w.field}):String(M).replace(/"/g,'""'):"",s+='"'+M+'"',y<r.length-1&&(s+=this.csvSeparator)}}});let
o=new
Blob([s],{type:"text/csv;charset=utf-8;"}),u=document.createElement("a");u.style.display="none",document.body.appendChild(u),void
0!==u.download?(u.setAttribute("href",URL.createObjectURL(o)),u.setAttribute("download",this.exportFilename+".csv"),u.click()):(s="data:text/csv;charset=utf-8,"+s,window.open(encodeURI(s))),document.body.removeChild(u)}resetScrollTop(){this.virtualScroll?this.scrollToVirtualIndex(0):this.scrollTo({top:0})}scrollToVirtualIndex(e){this.virtualScrollBody&&this.v
irtualScrollBody.scrollToIndex(e)}onScrollIndexChange(e){this.lazy&&(this.virtualScrollTimeout&&clearTimeout(this.virtualScrollTimeout),this.virtualScrollTimeout=setTimeout(()=>{let
n=Math.floor(e/this.rows),s=0===n?0:(n-1)*this.rows,r=0===n?2*this.rows:3*this.rows;n!==this.virtualPage&&(this.virtualPage=n,this.lazyLoadOnInit||this.virtualScrollInitialized?this.onLazyLoad.emit({first:s,rows:r,sortField:this.sortField,sortOrder:this.sortOrder,filters:this.filters,globalFilter:this.filters&&this.filters.global?this.filters.global.value:null,multiSortMeta:this.multiSortMeta}):this.virtualScrollInitialized=!0)},this.virtualScrollDelay))}scrollTo(e){this.virtualScrollBody?this.virtualScrollBody.scrollTo(e):this.wrapperViewChild&&this.wrapperViewChild.nativeElement&&(this.wrapperViewChild.nativeElement.scrollTo?this.wrapperViewChild.nativeElement.scrollTo(e):(this.wrapperViewChild.nativeElement.scrollLeft=e.left,this.wrapperViewChild.nativeElement.scrollTop=e.top))}updateEditingCell(e,n,s
,r){this.editingCell=e,this.editingCellData=n,this.editingCellField=s,this.editingCellRowIndex=r,this.bindDocumentEditListener()}isEditingCellValid(){return
this.editingCell&&0===R.find(this.editingCell,".ng-invalid.ng-dirty").length}bindDocumentEditListener(){this.documentEditListener||(this.documentEditListener=e=>{this.editingCell&&!this.selfClick&&this.isEditingCellValid()&&(R.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.do
cumentEditListener=null)}initRowEdit(e){let
n=String(Z.resolveFieldData(e,this.dataKey));this.editingRowKeys[n]=!0}saveRowEdit(e,n){if(0===R.find(n,".ng-invalid.ng-dirty").length){let
s=String(Z.resolveFieldData(e,this.dataKey));delete
this.editingRowKeys[s]}}cancelRowEdit(e){let
n=String(Z.resolveFieldData(e,this.dataKey));delete
this.editingRowKeys[n]}toggleRow(e,n){if(!this.dataKey)throw new Error("dataKey must
be defined to use row expansion");let
s=String(Z.resolveFieldData(e,this.dataKey));null!=this.expandedRowKeys[s]?(delete
this.expandedRowKeys[s],this.onRowCollapse.emit({originalEvent:n,data:e})):("single"===this.rowExpandMode&&(this.expandedRowKeys={}),this.expandedRowKeys[s]=!0,this.onRowExpand.emit({originalEvent:n,data:e})),n&&n.preventDefault(),this.isStateful()&&this.saveState()}isRowExpanded(e){return!0===this.expandedRowKeys[String(Z.resolveFieldData(e,this.dataKey))]}isRowEditing(e){return!0===this.editingRowKeys[String(Z.resolveFieldData(e,this.dataKey))]}isSingl
eSelectionMode(){return"single"===this.selectionMode}isMultipleSelectionMode(){return"multiple"===this.selectionMode}onColumnResizeBegin(e){let
n=R.getOffset(this.containerViewChild.nativeElement).left;this.resizeColumnElement=e.target.parentElement,this.columnResizing=!0,this.lastResizerHelperX=e.pageX-n+this.containerViewChild.nativeElement.scrollLeft,this.onColumnResize(e),e.preventDefault()}onColumnResize(e){let
n=R.getOffset(this.containerViewChild.nativeElement).left;R.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-n+this.containerViewChild.nativeElement.scrollLeft+"px",this.resizeHelperViewChild.nativeElement.style.display="block"}onColumnResizeEnd(){let
e=this.resizeHelperViewChild.nativeElement.offsetLeft-this.lastResizerHelperX
,s=this.resizeColumnElement.offsetWidth+e;if(s>=(this.resizeColumnElement.style.minWidth||15)){if("fit"===this.columnResizeMode){let
u=this.resizeColumnElement.nextElementSibling.offsetWidth-e;s>15&&u>15&&this.resizeTableCells(s,u)}else
if("expand"===this.columnResizeMode){let
o=this.tableViewChild.nativeElement.offsetWidth+e;this.tableViewChild.nativeElement.style.width=o+"px",this.tableViewChild.nativeElement.style.minWidth=o+"px",this.resizeTableCells(s,null)}this.onColResize.emit({element:this.resizeColumnElement,delta:e}),this.isStateful()&&this.saveState()}this.resizeHelperViewChild.nativeElement.style.display="none",R.removeClass(this.containerViewChild.nativeElement,"p-unselectable-text")}resizeTableCells(e,n){let
s=R.index(this.resizeColumnElement),r=[];const
o=R.findSingle(this.containerViewChild.nativeElement,".p-datatable-thead");R.find(o,"tr
>
th").forEach(b=>r.push(R.getOuterWidth(b))),this.destroyStyleElement(),this.createStyleElement();let
h="";r.forEach((b,y)=>{let
w=y===s?e:n&&y===s+1?n:b;h+=`\n #${this.id} .p-datatable-thead
> tr > th:nth-child(${y+1}),\n #${this.id} .p-datatable-tbody > tr
> td:nth-child(${y+1}),\n #${this.id} .p-datatable-tfoot > tr >
td:nth-child(${y+1}) {\n ${this.scrollable?`flex: 1 1 ${w}px
!important`:`width: ${w}px !important`}\n }\n
`}),this.styleElement.innerHTML=h}onColumnDragStart(e,n){this.reorderIconWidth=R.getHiddenElementOuterWidth(this.reorderIndicatorUpViewChild.nativeElement),this.reorderIconHeight=R.getHiddenElementOuterHeight(this.reorderIndicatorDownViewChild.nativeElement),this.draggedColumn=n,e.dataTransfer.setData("text","b")}onColumnDragEnter(e,n){if(this.reorderableColumns&&this.draggedColumn&&n){e.preventDefault();let
s=R.getOffset(this.containerViewChild.nativeElement),r=R.getOffset(n);if(this.draggedColumn!=n){let
o=R.indexWithinGroup(this.draggedColumn,"preorderablecolumn"),u=R.indexWithinGroup(n,"preorder
ablecolumn"),h=r.left-s.left,y=r.left+n.offsetWidth/2;this.reorderIndicatorUpViewChild.nativeElement.style.top=r.top-s.top-(this.reorderIconHeight-1)+"px",this.reorderIndicatorDownViewChild.nativeElement.style.top=r.top-s.top+n.offsetHeight+"px",e.pageX>y?(this.reorderIndicatorUpViewChild.nativeElement.style.left=h+n.offsetWidth-Math.ceil(this.reorderIconWidth/2)+"px",this.reorderIndicatorDownViewChild.nativeElement.style.left=h+n.offsetWidth-Math.ceil(this.reorderIconWidth/2)+"px",this.dropPosition=1):(this.reorderIndicatorUpViewChild.nativeElement.style.left=h-Math.ceil(this.reorderIconWidth/2)+"px",this.reorderIndicatorDownViewChild.nativeElement.style.left=h-Math.ceil(this.reorderIconWidth/2)+"px",this.dropPosition=-1),u-o==1&&-1===this.dropPosition||u-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,n){if(e.preventDefault(),this.draggedColumn){let
s=R.indexWithinGroup(this.draggedColumn,"preorderablecolumn"),r=R.indexWithinGroup(n,"preorderablecolumn"),o=s!=r;o&&(r-s==1&&-1===this.dropPosition||s-r==1&&1===this.dropPosition)&&(o=!1),o&&r<s&&1===this.dropPosition&&(r+=1),o&&r>s&&-1===this.dropPosition&&(r-=1),o&&(Z.reorderArray(this.columns,s,r),this.onColReorder.emit({dragIndex:s,dropIndex:r,columns:this.columns}),this.isStateful()&&this.zone.runOutsideAngular(()=>{setTimeout(()=>{this.saveState()})})),this.reorderIndicatorUpViewChild.nativeElement.style.display="none",this.reorderIndicatorDownViewChild.nativeElement.style.d
isplay="none",this.draggedColumn.draggable=!1,this.draggedColumn=null,this.dropPosition=null}}onRowDragStart(e,n){this.rowDragging=!0,this.draggedRowIndex=n,e.dataTransfer.setData("text","b")}onRowDragOver(e,n,s){if(this.rowDragging&&this.draggedRowIndex!==n){let
r=R.getOffset(s).top+R.getWindowScrollTop(),o=e.pageY,u=r+R.getOuterHeight(s)/2,h=s.previousElementSibling;o<u?(R.removeClass(s,"p-datatable-dragpoint-bottom"),this.droppedRowIndex=n,h?R.addClass(h,"p-datatable-dragpoint-bottom"):R.addClass(s,"p-datatable-dragpoint-top")):(h?R.removeClass(h,"p-datatable-dragpoint-bottom"):R.addClass(s,"p-datatable-dragpoint-top"),this.droppedRowIndex=n+1,R.addClass(s,"p-datatable-dragpoint-bottom"))}}onRowDragLeave(e,n){let
s=n.previousElementSibling;s&&R.removeClass(s,"p-datatable-dragpoint-bottom"),R.removeClass(n,"p-datatable-dragpoint-bottom"),R.removeClass(n,"p-datatable-dragpoint-top")}onRowDragEnd(e){this.rowDragging=!1,this.draggedRowIndex=null,this.droppedRowIndex=null}onRowDrop(e,
n){if(null!=this.droppedRowIndex){let
s=this.draggedRowIndex>this.droppedRowIndex?this.droppedRowIndex:0===this.droppedRowIndex?0:this.droppedRowIndex-1;Z.reorderArray(this.value,this.draggedRowIndex,s),this.virtualScroll&&(this._value=[...this._value]),this.onRowReorder.emit({dragIndex:this.draggedRowIndex,dropIndex:s})}this.onRowDragLeave(e,n),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
n={};this.paginator&&(n.first=this.first,n.rows=this.rows),this.sortField&&(n.sortField=this.sortField,n.sortOrder=this.sortOrder),this.multiSortMeta&&(
n.multiSortMeta=this.multiSortMeta),this.hasFilter()&&(n.filters=this.filters),this.resizableColumns&&this.saveColumnWidths(n),this.reorderableColumns&&this.saveColumnOrder(n),this.selection&&(n.selection=this.selection),Object.keys(this.expandedRowKeys).length&&(n.expandedRowKeys=this.expandedRowKeys),e.setItem(this.stateKey,JSON.stringify(n)),this.onStateSave.emit(n)}clearState(){const
e=this.getStorage();this.stateKey&&e.removeItem(this.stateKey)}restoreState(){const
n=this.getStorage().getItem(this.stateKey),s=/\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}.\d{3}Z/;if(n){let
o=JSON.parse(n,function(o,u){return"string"==typeof u&&s.test(u)?new
Date(u):u});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.filt
ers&&(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
n=[];R.find(this.containerViewChild.nativeElement,".p-datatable-thead > tr >
th").forEach(r=>n.push(R.getOuterWidth(r))),e.columnWidths=n.join(","),"expand"===this.columnResizeMode&&(e.tableWidth=R.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),Z.isNotEmpty(e))
{this.createStyleElement();let n="";e.forEach((s,r)=>{n+=`\n
#${this.id} .p-datatable-thead > tr > th:nth-child(${r+1}),\n
#${this.id} .p-datatable-tbody > tr > td:nth-child(${r+1}),\n
#${this.id} .p-datatable-tfoot > tr > td:nth-child(${r+1}) {\n
${this.scrollable?`flex: 1 1 ${s}px !important`:`width: ${s}px !important`}\n
}\n
`}),this.styleElement.innerHTML=n}}}saveColumnOrder(e){if(this.columns){let
n=[];this.columns.map(s=>{n.push(s.field||s.key)}),e.columnOrder=n}}restoreColumnOrder(){const
n=this.getStorage().getItem(this.stateKey);if(n){let r=JSON.parse(n).columnOrder;if(r){let
o=[];r.map(u=>{let
h=this.findColumnByKey(u);h&&o.push(h)}),this.columnOrderStateRestored=!0,this.columns=o}}}findColumnByKey(e){if(!this.columns)return
null;for(let n of this.columns)if(n.key===e||n.field===e)return
n}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.virtualScrollInitialized=null,this.virtualScrollSubscription&&this.virtualScrollSubscription.unsubscribe(),this.destroyStyleElement(),this.destroyResponsiveStyle()}}return
t.\u0275fac=function(e){return
new(e||t)(D(De),D(nt),D(Cd),D(rt),D(hl),D(Ks))},t.\u0275cmp=z({type:t,selectors:[["p-table"]],contentQueries:function(e,n,s){if(1&e&&st(s,ne,4),2&e){let
r;V(r=B())&&(n.templates=r)}},viewQuery:function(e,n){if(1&e&&(W(Eq,5),W(Rq,5),W(Lq,5),W(Oq,5),W(Aq,5),W(Pq
,5),W(Fq,5),W(Po,5)),2&e){let
s;V(s=B())&&(n.containerViewChild=s.first),V(s=B())&&(n.resizeHelperViewChild=s.first),V(s=B())&&(n.reorderIndicatorUpViewChild=s.first),V(s=B())&&(n.reorderIndicatorDownViewChild=s.first),V(s=B())&&(n.wrapperViewChild=s.first),V(s=B())&&(n.tableViewChild=s.first),V(s=B())&&(n.tableHeaderViewChild=s.first),V(s=B())&&(n.virtualScrollBody=s.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",sho
wJumpToPageInput:"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",filterLocale:"filterLocale",expandedRowKeys:"expandedRowKeys",editingRowKeys:"editingRowKeys",rowExpandMode:"rowExpandMode",scrollable:"scrollable",scrollDirection:"scrollDirection",rowGroupMode:"rowGroupMode",scrollHeight:"scrollHeight",virtualScroll:"virtualScroll",virtualScrollDelay:"virtualScrol
lDelay",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",exportHeader:"exportHeader",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",c
ontextMenuSelectionChange:"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:[Pe([Cd]),fn],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","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","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","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"],["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,n){1&e&&(l(0,"div",0,1),_(
2,Nq,2,2,"div",2),_(3,Bq,2,1,"div",3),_(4,Hq,1,17,"p-paginator",4),l(5,"div",5,6),_(7,$q,8,16,"table",7),_(8,Zq,10,21,"cdk-virtual-scroll-viewport",8),c(),_(9,Xq,1,17,"p-paginator",9),_(10,tG,2,1,"div",10),_(11,nG,2,0,"div",11),_(12,iG,2,0,"span",12),_(13,sG,2,0,"span",13),c()),2&e&&(me(n.styleClass),p("ngStyle",n.style)("ngClass",Hh(16,rG,[n.rowHover||n.selectionMode,n.autoLayout,n.resizableColumns,n.resizableColumns&&"fit"===n.columnResizeMode,n.scrollable,n.scrollable&&"vertical"===n.scrollDirection,n.scrollable&&"horizontal"===n.scrollDirection,n.scrollable&&"both"===n.scrollDirection,n.scrollable&&"flex"===n.scrollHeight,"stack"===n.responsiveLayout,"scroll"===n.responsiveLayout,n.responsive,null!=n.headerGroupedTemplate,null!=n.footerGroupedTemplate])),ie("id",n.id),a(2),p("ngIf",n.loading&&n.showLoader),a(1),p("ngIf",n.captionTemplate),a(1),p("ngIf",n.paginator&&("top"===n.paginatorPosition||"both"==n.paginatorPosition)),a(1),p("ngStyle",U(31,oG,n.scrollHeight)),a(2),p("ngIf"
,!n.virtualScroll),a(1),p("ngIf",n.virtualScroll),a(1),p("ngIf",n.paginator&&("bottom"===n.paginatorPosition||"both"==n.paginatorPosition)),a(1),p("ngIf",n.summaryTemplate),a(1),p("ngIf",n.resizableColumns),a(1),p("ngIf",n.reorderableColumns),a(1),p("ngIf",n.reorderableColumns))},directives:function(){return[ET,TU,Po,lt,Le,Q,Rt,Qf]},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-responsi
ve-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-vi
rtual-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-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-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-s
pace:nowrap}.p-datatable-resizable
.p-resizable-column:not(.p-frozen-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-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{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;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})(),TU=(()=>{cla
ss
t{constructor(e,n,s,r){this.dt=e,this.tableService=n,this.cd=s,this.el=r,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,n,s){let
r=Z.resolveFieldData(n,this.dt.groupRowsBy),o=e[s-1];return!o||r!==Z.resolveFieldData(o,this.dt.groupRowsBy)}shouldRenderRowGroupFooter(e,n,s){let
r=Z.resolveFieldData(n,this.dt.groupRowsBy),o=e[s+1];return!o||r!==Z.resolveFieldData(o,this.dt.groupRowsBy)}shouldRenderRowspan(e,n,s){let
r=Z.resolveFieldData(n,this.dt.groupRowsBy),o=e[s-1];return!o||r!==Z.resolveFieldData(o,
this.dt.groupRowsBy)}calculateRowGroupSize(e,n,s){let
r=Z.resolveFieldData(n,this.dt.groupRowsBy),o=r,u=0;for(;r===o;){u++;let
h=e[++s];if(!h)break;o=Z.resolveFieldData(h,this.dt.groupRowsBy)}return
1===u?null:u}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}updateFrozenRowStickyPosition(){this.el.nativeElement.style.top=R.getOuterHeight(this.el.nativeElement.previousElementSibling)+"px"}updateFrozenRowGroupHeaderStickyPosition(){if(this.el.nativeElement.previousElementSibling){let
e=R.getOuterHeight(this.el.nativeElement.previousElementSibling);this.dt.rowGroupHeaderStyleObject.top=e+"px"}}}return
t.\u0275fac=function(e){return
new(e||t)(D(Dn),D(Cd),D(rt),D(De))},t.\u0275cmp=z({type:t,selectors:[["","pTableBody",""]],hostAttrs:[1,"p-element"],inputs:{columns:["pTableBody","columns"],template:["pTableBodyTemplate","template"],value:"value",frozen:"frozen",frozenRows:"frozenRows"},attrs:aG,decls:6,vars:6,consts:[[4,"ngIf"],["ngFor","",3,"ngForOf","ngForTrackBy"],["r
ole","row",4,"ngIf"],["role","row"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],["cdkVirtualFor","",3,"cdkVirtualForOf","cdkVirtualForTrackBy","cdkVirtualForTemplateCacheSize"]],template:function(e,n){1&e&&(_(0,bG,2,2,"ng-container",0),_(1,yG,2,3,"ng-container",0),_(2,RG,2,2,"ng-container",0),_(3,FG,2,2,"ng-container",0),_(4,VG,2,5,"ng-container",0),_(5,HG,2,5,"ng-container",0)),2&e&&(p("ngIf",!n.dt.expandedRowTemplate&&!n.dt.virtualScroll),a(1),p("ngIf",!n.dt.expandedRowTemplate&&n.dt.virtualScroll),a(1),p("ngIf",n.dt.expandedRowTemplate&&!(n.frozen&&n.dt.frozenExpandedRowTemplate)),a(1),p("ngIf",n.dt.frozenExpandedRowTemplate&&n.frozen),a(1),p("ngIf",n.dt.loading),a(1),p("ngIf",n.dt.isEmpty()&&!n.dt.loading))},directives:[Q,at,Rt,Jf],encapsulation:2}),t})(),SU=(()=>{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)(D(Dn)
)},t.\u0275dir=le({type:t,selectors:[["","pRowGroupHeader",""]],hostAttrs:[1,"p-rowgroup-header","p-element"],hostVars:2,hostBindings:function(e,n){2&e&&_i("top",n.getFrozenRowGroupHeaderStickyPosition)}}),t})(),yd=(()=>{class
t{constructor(e){this.dt=e,this.isEnabled()&&(this.subscription=this.dt.tableService.sortSource$.subscribe(n=>{this.updateSortState()}))}ngOnInit(){this.isEnabled()&&this.updateSortState()}updateSortState(){this.sorted=this.dt.isSorted(this.field),this.sortOrder=this.sorted?1===this.dt.sortOrder?"ascending":"descending":"none"}onClick(e){this.isEnabled()&&!this.isFilterElement(e.target)&&(this.updateSortState(),this.dt.sort({originalEvent:e,field:this.field}),R.clearSelection())}onEnterKey(e){this.onClick(e)}isEnabled(){return!0!==this.pSortableColumnDisabled}isFilterElement(e){return
R.hasClass(e,"pi-filter-icon")||R.hasClass(e,"p-column-filter-menu-button")}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}}return
t.\u0275fac=function(e){retur
n
new(e||t)(D(Dn))},t.\u0275dir=le({type:t,selectors:[["","pSortableColumn",""]],hostAttrs:[1,"p-element"],hostVars:7,hostBindings:function(e,n){1&e&&C("click",function(r){return
n.onClick(r)})("keydown.enter",function(r){return
n.onEnterKey(r)}),2&e&&(ie("tabindex",n.isEnabled()?"0":null)("role","columnheader")("aria-sort",n.sortOrder),si("p-sortable-column",n.isEnabled())("p-highlight",n.sorted))},inputs:{field:["pSortableColumn","field"],pSortableColumnDisabled:"pSortableColumnDisabled"}}),t})(),wd=(()=>{class
t{constructor(e,n){this.dt=e,this.cd=n,this.subscription=this.dt.tableService.sortSource$.subscribe(s=>{this.updateSortState()})}ngOnInit(){this.updateSortState()}onClick(e){e.preventDefault()}updateSortState(){if("single"===this.dt.sortMode)this.sortOrder=this.dt.isSorted(this.field)?this.dt.sortOrder:0;else
if("multiple"===this.dt.sortMode){let
e=this.dt.getSortMeta(this.field);this.sortOrder=e?e.order:0}this.cd.markForCheck()}getMultiSortMetaIndex(){let
e=this.dt._multiS
ortMeta,n=-1;if(e&&"multiple"===this.dt.sortMode&&(this.dt.showInitialSortBadge||e.length>1))for(let
s=0;s<e.length;s++){let
r=e[s];if(r.field===this.field||r.field===this.field){n=s;break}}return
n}getBadgeValue(){let e=this.getMultiSortMetaIndex();return
this.dt.groupRowsBy&&e>-1?e:e+1}isMultiSorted(){return"multiple"===this.dt.sortMode&&this.getMultiSortMetaIndex()>-1}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}}return
t.\u0275fac=function(e){return
new(e||t)(D(Dn),D(rt))},t.\u0275cmp=z({type:t,selectors:[["p-sortIcon"]],hostAttrs:[1,"p-element"],inputs:{field:"field"},decls:2,vars:6,consts:[[1,"p-sortable-column-icon","pi","pi-fw",3,"ngClass"],["class","p-sortable-column-badge",4,"ngIf"],[1,"p-sortable-column-badge"]],template:function(e,n){1&e&&(k(0,"i",0),_(1,qG,2,1,"span",1)),2&e&&(p("ngClass",Qt(2,GG,1===n.sortOrder,-1===n.sortOrder,0===n.sortOrder)),a(1),p("ngIf",n.isMultiSorted()))},directives:[Le,Q],encapsulation:2,changeDetection:0}),t})(),j2=(()=>{c
lass
t{constructor(e,n){this.dt=e,this.tableService=n,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
s=this.findNextSelectableRow(e.currentTarget);s&&s.focus(),e.preventDefault()}onArrowUpKeyDown(e){if(!this.isEnabled())return;const
s=this.findPrevSelectableRow(e.currentTarget);s&&s.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.virtua
lScrollBody.elementRef.nativeElement.focus()}findNextSelectableRow(e){let
n=e.nextElementSibling;return
n?R.hasClass(n,"p-selectable-row")?n:this.findNextSelectableRow(n):null}findPrevSelectableRow(e){let
n=e.previousElementSibling;return
n?R.hasClass(n,"p-selectable-row")?n:this.findPrevSelectableRow(n):null}isEnabled(){return!0!==this.pSelectableRowDisabled}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}}return
t.\u0275fac=function(e){return
new(e||t)(D(Dn),D(Cd))},t.\u0275dir=le({type:t,selectors:[["","pSelectableRow",""]],hostAttrs:[1,"p-element"],hostVars:5,hostBindings:function(e,n){1&e&&C("click",function(r){return
n.onClick(r)})("touchend",function(r){return
n.onTouchEnd(r)})("keydown.arrowdown",function(r){return
n.onArrowDownKeyDown(r)})("keydown.arrowup",function(r){return
n.onArrowUpKeyDown(r)})("keydown.enter",function(r){return
n.onEnterKeyDown(r)})("keydown.shift.enter",function(r){return
n.onEnterKeyDown(r)})("keydown.meta.enter",function(r){return
n.onEnterKeyDown(r)})("keydown.pagedown",function(){return
n.onPageDownKeyDown()})("keydown.pageup",function(){return
n.onPageDownKeyDown()})("keydown.home",function(){return
n.onPageDownKeyDown()})("keydown.end",function(){return
n.onPageDownKeyDown()})("keydown.space",function(){return
n.onSpaceKeydown()}),2&e&&(ie("tabindex",n.isEnabled()?0:void
0),si("p-selectable-row",n.isEnabled())("p-highlight",n.selected))},inputs:{data:["pSelectableRow","data"],index:["pSelectableRowIndex","index"],pSelectableRowDisabled:"pSelectableRowDisabled"}}),t})(),$2=(()=>{class
t{constructor(e,n,s){this.dt=e,this.el=n,this.zone=s}ngAfterViewInit(){this.isEnabled()&&R.addClass(this.el.nativeElement,"p-editable-column")}onClick(e){if(this.isEnabled())if(this.dt.selfClick=!0,this.dt.editingCell){if(this.dt.editingCell!==this.el.nativeElement){if(!this.dt.isEditingCellValid())return;this.closeEditingCell(!0,e),this.openCell()}}else
this.openCell()}openCell(){this.dt.updateEditingCell(this.el.nativeEleme
nt,this.data,this.field,this.rowIndex),R.addClass(this.el.nativeElement,"p-cell-editing"),this.dt.onEditInit.emit({field:this.field,data:this.data,index:this.rowIndex}),this.zone.runOutsideAngular(()=>{setTimeout(()=>{let
n=R.findSingle(this.el.nativeElement,this.pFocusCellSelector||"input, textarea,
select");n&&n.focus()},50)}),this.overlayEventListener=e=>{this.el&&this.el.nativeElement.contains(e.target)&&(this.dt.selfClick=!0)},this.dt.overlaySubscription=this.dt.overlayService.clickObservable.subscribe(this.overlayEventListener)}closeEditingCell(e,n){e?this.dt.onEditComplete.emit({field:this.dt.editingCellField,data:this.dt.editingCellData,originalEvent:n,index:this.dt.editingCellRowIndex}):this.dt.onEditCancel.emit({field:this.dt.editingCellField,data:this.dt.editingCellData,originalEvent:n,index:this.dt.editingCellRowIndex}),R.removeClass(this.dt.editingCell,"p-cell-editing"),this.dt.editingCell=null,this.dt.editingCellData=null,this.dt.editingCellField=null,this.dt.unbindDoc
umentEditListener(),this.dt.overlaySubscription&&this.dt.overlaySubscription.unsubscribe()}onEnterKeyDown(e){this.isEnabled()&&(this.dt.isEditingCellValid()&&this.closeEditingCell(!0,e),e.preventDefault())}onEscapeKeyDown(e){this.isEnabled()&&(this.dt.isEditingCellValid()&&this.closeEditingCell(!1,e),e.preventDefault())}onShiftKeyDown(e){this.isEnabled()&&(e.shiftKey?this.moveToPreviousCell(e):this.moveToNextCell(e))}onArrowDown(e){if(this.isEnabled()){let
n=this.findCell(e.target);if(n){let
s=R.index(n),r=this.findNextEditableColumnByIndex(n,s);r&&(this.dt.isEditingCellValid()&&this.closeEditingCell(!0,e),R.invokeElementMethod(e.target,"blur"),R.invokeElementMethod(r,"click")),e.preventDefault()}}}onArrowUp(e){if(this.isEnabled()){let
n=this.findCell(e.target);if(n){let
s=R.index(n),r=this.findPrevEditableColumnByIndex(n,s);r&&(this.dt.isEditingCellValid()&&this.closeEditingCell(!0,e),R.invokeElementMethod(e.target,"blur"),R.invokeElementMethod(r,"click")),e.preventDefault()}}}onAr
rowLeft(e){this.isEnabled()&&this.moveToPreviousCell(e)}onArrowRight(e){this.isEnabled()&&this.moveToNextCell(e)}findCell(e){if(e){let
n=e;for(;n&&!R.hasClass(n,"p-cell-editing");)n=n.parentElement;return
n}return null}moveToPreviousCell(e){let n=this.findCell(e.target);if(n){let
s=this.findPreviousEditableColumn(n);s&&(this.dt.isEditingCellValid()&&this.closeEditingCell(!0,e),R.invokeElementMethod(e.target,"blur"),R.invokeElementMethod(s,"click"),e.preventDefault())}}moveToNextCell(e){let
n=this.findCell(e.target);if(n){let
s=this.findNextEditableColumn(n);s&&(this.dt.isEditingCellValid()&&this.closeEditingCell(!0,e),R.invokeElementMethod(e.target,"blur"),R.invokeElementMethod(s,"click"),e.preventDefault())}}findPreviousEditableColumn(e){let
n=e.previousElementSibling;if(!n){let
s=e.parentElement.previousElementSibling;s&&(n=s.lastElementChild)}return
n?R.hasClass(n,"p-editable-column")?n:this.findPreviousEditableColumn(n):null}findNextEditableColumn(e){let
n=e.nextElementSibling;i
f(!n){let s=e.parentElement.nextElementSibling;s&&(n=s.firstElementChild)}return
n?R.hasClass(n,"p-editable-column")?n:this.findNextEditableColumn(n):null}findNextEditableColumnByIndex(e,n){let
s=e.parentElement.nextElementSibling;if(s){let r=s.children[n];return
r&&R.hasClass(r,"p-editable-column")?r:null}return
null}findPrevEditableColumnByIndex(e,n){let
s=e.parentElement.previousElementSibling;if(s){let r=s.children[n];return
r&&R.hasClass(r,"p-editable-column")?r:null}return
null}isEnabled(){return!0!==this.pEditableColumnDisabled}ngOnDestroy(){this.dt.overlaySubscription&&this.dt.overlaySubscription.unsubscribe()}}return
t.\u0275fac=function(e){return
new(e||t)(D(Dn),D(De),D(nt))},t.\u0275dir=le({type:t,selectors:[["","pEditableColumn",""]],hostAttrs:[1,"p-element"],hostBindings:function(e,n){1&e&&C("click",function(r){return
n.onClick(r)})("keydown.enter",function(r){return
n.onEnterKeyDown(r)})("keydown.escape",function(r){return
n.onEscapeKeyDown(r)})("keydown.tab",function(
r){return n.onShiftKeyDown(r)})("keydown.shift.tab",function(r){return
n.onShiftKeyDown(r)})("keydown.meta.tab",function(r){return
n.onShiftKeyDown(r)})("keydown.arrowdown",function(r){return
n.onArrowDown(r)})("keydown.arrowup",function(r){return
n.onArrowUp(r)})("keydown.arrowleft",function(r){return
n.onArrowLeft(r)})("keydown.arrowright",function(r){return
n.onArrowRight(r)})},inputs:{data:["pEditableColumn","data"],field:["pEditableColumnField","field"],rowIndex:["pEditableColumnRowIndex","rowIndex"],pEditableColumnDisabled:"pEditableColumnDisabled",pFocusCellSelector:"pFocusCellSelector"}}),t})(),xU=(()=>{class
t{constructor(e){this.el=e}isEnabled(){return!0!==this.pEditableRowDisabled}}return
t.\u0275fac=function(e){return
new(e||t)(D(De))},t.\u0275dir=le({type:t,selectors:[["","pEditableRow",""]],hostAttrs:[1,"p-element"],inputs:{data:["pEditableRow","data"],pEditableRowDisabled:"pEditableRowDisabled"}}),t})(),DU=(()=>{class
t{constructor(e,n,s){this.dt=e,this.editableColumn
=n,this.editableRow=s}ngAfterContentInit(){this.templates.forEach(e=>{switch(e.getType()){case"input":this.inputTemplate=e.template;break;case"output":this.outputTemplate=e.template}})}get
editing(){return
this.dt.editingCell&&this.editableColumn&&this.dt.editingCell===this.editableColumn.el.nativeElement||this.editableRow&&"row"===this.dt.editMode&&this.dt.isRowEditing(this.editableRow.data)}}return
t.\u0275fac=function(e){return
new(e||t)(D(Dn),D($2,8),D(xU,8))},t.\u0275cmp=z({type:t,selectors:[["p-cellEditor"]],contentQueries:function(e,n,s){if(1&e&&st(s,ne,4),2&e){let
r;V(r=B())&&(n.templates=r)}},hostAttrs:[1,"p-element"],decls:2,vars:2,consts:[[4,"ngIf"],[4,"ngTemplateOutlet"]],template:function(e,n){1&e&&(_(0,zG,2,1,"ng-container",0),_(1,$G,2,1,"ng-container",0)),2&e&&(p("ngIf",n.editing),a(1),p("ngIf",!n.editing))},directives:[Q,Rt],encapsulation:2}),t})(),MU=(()=>{class
t{constructor(e){this.dt=e,this.useGrouping=!0}ngOnInit(){this.filterCallback=e=>{this.filterConstraint.v
alue=e,this.dt._filter()}}onModelChange(e){this.filterConstraint.value=e,("boolean"===this.type||""===e)&&this.dt._filter()}onTextInputEnterKeyDown(e){this.dt._filter(),e.preventDefault()}onNumericInputKeyDown(e){"Enter"===e.key&&(this.dt._filter(),e.preventDefault())}}return
t.\u0275fac=function(e){return
new(e||t)(D(Dn))},t.\u0275cmp=z({type:t,selectors:[["p-columnFilterFormElement"]],hostAttrs:[1,"p-element"],inputs:{field:"field",type:"type",filterConstraint:"filterConstraint",filterTemplate:"filterTemplate",placeholder:"placeholder",minFractionDigits:"minFractionDigits",maxFractionDigits:"maxFractionDigits",prefix:"prefix",suffix:"suffix",locale:"locale",localeMatcher:"localeMatcher",currency:"currency",currencyDisplay:"currencyDisplay",useGrouping:"useGrouping"},decls:3,vars:2,consts:[[4,"ngIf","ngIfElse"],["builtInElement",""],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[3,"ngSwitch"],["type","text","pInputText","",3,"value","input","keydown.enter",4,"ngSwitchCase"],[3,"
ngModel","showButtons","minFractionDigits","maxFractionDigits","prefix","suffix","placeholder","mode","locale","localeMatcher","currency","currencyDisplay","useGrouping","ngModelChange","onKeyDown",4,"ngSwitchCase"],[3,"ngModel","ngModelChange",4,"ngSwitchCase"],[3,"placeholder","ngModel","ngModelChange",4,"ngSwitchCase"],["type","text","pInputText","",3,"value","input","keydown.enter"],[3,"ngModel","showButtons","minFractionDigits","maxFractionDigits","prefix","suffix","placeholder","mode","locale","localeMatcher","currency","currencyDisplay","useGrouping","ngModelChange","onKeyDown"],[3,"ngModel","ngModelChange"],[3,"placeholder","ngModel","ngModelChange"]],template:function(e,n){if(1&e&&(_(0,QG,2,5,"ng-container",0),_(1,eU,5,5,"ng-template",null,1,we)),2&e){const
s=F(2);p("ngIf",n.filterTemplate)("ngIfElse",s)}},directives:[pt,G2,xr,Q,Rt,gr,Ja,DT,Te,_e],encapsulation:2}),t})(),vg=(()=>{class
t{constructor(e,n,s,r,o){this.el=e,this.dt=n,this.renderer=s,this.config=r,this.overlaySe
rvice=o,this.type="text",this.display="row",this.showMenu=!0,this.operator=ml.AND,this.showOperator=!0,this.showClearButton=!0,this.showApplyButton=!0,this.showMatchModes=!0,this.showAddButton=!0,this.hideOnClear=!1,this.maxConstraints=2,this.useGrouping=!0}ngOnInit(){this.dt.filters[this.field]||this.initFieldFilterConstraint(),this.translationSubscription=this.config.translationObserver.subscribe(()=>{this.generateMatchModeOptions(),this.generateOperatorOptions()}),this.resetSubscription=this.dt.tableService.resetSource$.subscribe(()=>{this.initFieldFilterConstraint()}),this.generateMatchModeOptions(),this.generateOperatorOptions()}generateMatchModeOptions(){var
e;this.matchModes=this.matchModeOptions||(null===(e=this.config.filterMatchModeOptions[this.type])||void
0===e?void
0:e.map(n=>({label:this.config.getTranslation(n),value:n})))}generateOperatorOptions(){this.operatorOptions=[{label:this.config.getTranslation(Ft.MATCH_ALL),value:ml.AND},{label:this.config.getTranslation(Ft.
MATCH_ANY),value:ml.OR}]}ngAfterContentInit(){this.templates.forEach(e=>{switch(e.getType()){case"header":this.headerTemplate=e.template;break;case"filter":default:this.filterTemplate=e.template;break;case"footer":this.footerTemplate=e.template}})}initFieldFilterConstraint(){let
e=this.getDefaultMatchMode();this.dt.filters[this.field]="row"==this.display?{value:null,matchMode:e}:[{value:null,matchMode:e,operator:this.operator}]}onMenuMatchModeChange(e,n){n.matchMode=e,this.showApplyButton||this.dt._filter()}onRowMatchModeChange(e){this.dt.filters[this.field].matchMode=e,this.dt._filter(),this.hide()}onRowMatchModeKeyDown(e){let
n=e.target;switch(e.key){case"ArrowDown":var
s=this.findNextItem(n);s&&(n.removeAttribute("tabindex"),s.tabIndex="0",s.focus()),e.preventDefault();break;case"ArrowUp":var
r=this.findPrevItem(n);r&&(n.removeAttribute("tabindex"),r.tabIndex="0",r.focus()),e.preventDefault()}}onRowClearItemClick(){this.clearFilter(),this.hide()}isRowMatchModeSelected(e){return
t
his.dt.filters[this.field].matchMode===e}addConstraint(){this.dt.filters[this.field].push({value:null,matchMode:this.getDefaultMatchMode(),operator:this.getDefaultOperator()}),this.dt._filter()}removeConstraint(e){this.dt.filters[this.field]=this.dt.filters[this.field].filter(n=>n!==e),this.dt._filter()}onOperatorChange(e){this.dt.filters[this.field].forEach(n=>{n.operator=e,this.operator=e}),this.showApplyButton||this.dt._filter()}toggleMenu(){this.overlayVisible=!this.overlayVisible}onToggleButtonKeyDown(e){switch(e.key){case"Escape":case"Tab":this.overlayVisible=!1;break;case"ArrowDown":if(this.overlayVisible){let
n=R.getFocusableElements(this.overlay);n&&n[0].focus(),e.preventDefault()}else
e.altKey&&(this.overlayVisible=!0,e.preventDefault())}}onEscape(){this.overlayVisible=!1,this.icon.nativeElement.focus()}findNextItem(e){let
n=e.nextElementSibling;return
n?R.hasClass(n,"p-column-filter-separator")?this.findNextItem(n):n:e.parentElement.firstElementChild}findPrevItem(e){let
n
=e.previousElementSibling;return
n?R.hasClass(n,"p-column-filter-separator")?this.findPrevItem(n):n:e.parentElement.lastElementChild}onContentClick(){this.selfClick=!0}onOverlayAnimationStart(e){switch(e.toState){case"visible":this.overlay=e.element,document.body.appendChild(this.overlay),dt.set("overlay",this.overlay,this.config.zIndex.overlay),R.absolutePosition(this.overlay,this.icon.nativeElement),this.bindDocumentClickListener(),this.bindDocumentResizeListener(),this.bindScrollListener(),this.overlayEventListener=n=>{this.overlay&&this.overlay.contains(n.target)&&(this.selfClick=!0)},this.overlaySubscription=this.overlayService.clickObservable.subscribe(this.overlayEventListener);break;case"void":this.onOverlayHide(),this.overlaySubscription&&this.overlaySubscription.unsubscribe()}}onOverlayAnimationEnd(e){"void"===e.toState&&dt.clear(e.element)}getDefaultMatchMode(){return
this.matchMode?this.matchMode:"text"===this.type?_t.STARTS_WITH:"numeric"===this.type?_t.EQUALS:"date"===
this.type?_t.DATE_IS:_t.CONTAINS}getDefaultOperator(){return
this.dt.filters?this.dt.filters[this.field][0].operator:this.operator}hasRowFilter(){return
this.dt.filters[this.field]&&!this.dt.isFilterBlank(this.dt.filters[this.field].value)}get
fieldConstraints(){return this.dt.filters?this.dt.filters[this.field]:null}get
showRemoveIcon(){return!!this.fieldConstraints&&this.fieldConstraints.length>1}get
showMenuButton(){return
this.showMenu&&("row"!==this.display||"boolean"!==this.type)}get
isShowOperator(){return this.showOperator&&"boolean"!==this.type}get
isShowAddConstraint(){return
this.showAddButton&&"boolean"!==this.type&&this.fieldConstraints&&this.fieldConstraints.length<this.maxConstraints}get
applyButtonLabel(){return this.config.getTranslation(Ft.APPLY)}get
clearButtonLabel(){return this.config.getTranslation(Ft.CLEAR)}get
addRuleButtonLabel(){return this.config.getTranslation(Ft.ADD_RULE)}get
removeRuleButtonLabel(){return this.config.getTranslation(Ft.REMOVE_RULE)}get n
oFilterLabel(){return this.config.getTranslation(Ft.NO_FILTER)}hasFilter(){let
e=this.dt.filters[this.field];return!!e&&(Array.isArray(e)?!this.dt.isFilterBlank(e[0].value):!this.dt.isFilterBlank(e.value))}isOutsideClicked(e){return!(this.overlay.isSameNode(e.target)||this.overlay.contains(e.target)||this.icon.nativeElement.isSameNode(e.target)||this.icon.nativeElement.contains(e.target)||R.hasClass(e.target,"p-column-filter-add-button")||R.hasClass(e.target.parentElement,"p-column-filter-add-button")||R.hasClass(e.target,"p-column-filter-remove-button")||R.hasClass(e.target.parentElement,"p-column-filter-remove-button"))}bindDocumentClickListener(){this.documentClickListener||(this.documentClickListener=this.renderer.listen(this.el?this.el.nativeElement.ownerDocument:"document","mousedown",n=>{this.overlayVisible&&!this.selfClick&&this.isOutsideClicked(n)&&this.hide(),this.selfClick=!1}))}unbindDocumentClickListener(){this.documentClickListener&&(this.documentClickListener(),this.d
ocumentClickListener=null,this.selfClick=!1)}bindDocumentResizeListener(){this.documentResizeListener=()=>this.hide(),window.addEventListener("resize",this.documentResizeListener)}unbindDocumentResizeListener(){this.documentResizeListener&&(window.removeEventListener("resize",this.documentResizeListener),this.documentResizeListener=null)}bindScrollListener(){this.scrollHandler||(this.scrollHandler=new
Qs(this.icon.nativeElement,()=>{this.overlayVisible&&this.hide()})),this.scrollHandler.bindScrollListener()}unbindScrollListener(){this.scrollHandler&&this.scrollHandler.unbindScrollListener()}hide(){this.overlayVisible=!1}onOverlayHide(){this.unbindDocumentClickListener(),this.unbindDocumentResizeListener(),this.unbindScrollListener(),this.overlay=null}clearFilter(){this.initFieldFilterConstraint(),this.dt._filter(),this.hideOnClear&&this.hide()}applyFilter(){this.dt._filter(),this.hide()}ngOnDestroy(){this.overlay&&(this.el.nativeElement.appendChild(this.overlay),dt.clear(this.overla
y),this.onOverlayHide()),this.translationSubscription&&this.translationSubscription.unsubscribe(),this.resetSubscription&&this.resetSubscription.unsubscribe(),this.overlaySubscription&&this.overlaySubscription.unsubscribe()}}return
t.\u0275fac=function(e){return
new(e||t)(D(De),D(Dn),D(gn),D(zn),D(Ks))},t.\u0275cmp=z({type:t,selectors:[["p-columnFilter"]],contentQueries:function(e,n,s){if(1&e&&st(s,ne,4),2&e){let
r;V(r=B())&&(n.templates=r)}},viewQuery:function(e,n){if(1&e&&W(tU,5),2&e){let
s;V(s=B())&&(n.icon=s.first)}},hostAttrs:[1,"p-element"],inputs:{field:"field",type:"type",display:"display",showMenu:"showMenu",matchMode:"matchMode",operator:"operator",showOperator:"showOperator",showClearButton:"showClearButton",showApplyButton:"showApplyButton",showMatchModes:"showMatchModes",showAddButton:"showAddButton",hideOnClear:"hideOnClear",placeholder:"placeholder",matchModeOptions:"matchModeOptions",maxConstraints:"maxConstraints",minFractionDigits:"minFractionDigits",maxFractionDig
its:"maxFractionDigits",prefix:"prefix",suffix:"suffix",locale:"locale",localeMatcher:"localeMatcher",currency:"currency",currencyDisplay:"currencyDisplay",useGrouping:"useGrouping"},decls:5,vars:8,consts:[[1,"p-column-filter",3,"ngClass"],["class","p-fluid",3,"type","field","filterConstraint","filterTemplate","placeholder","minFractionDigits","maxFractionDigits","prefix","suffix","locale","localeMatcher","currency","currencyDisplay","useGrouping",4,"ngIf"],["type","button","class","p-column-filter-menu-button
p-link","aria-haspopup","true",3,"ngClass","click","keydown",4,"ngIf"],["type","button","class","p-column-filter-clear-button
p-link",3,"ngClass","click",4,"ngIf"],[3,"ngClass","click","keydown.escape",4,"ngIf"],[1,"p-fluid",3,"type","field","filterConstraint","filterTemplate","placeholder","minFractionDigits","maxFractionDigits","prefix","suffix","locale","localeMatcher","currency","currencyDisplay","useGrouping"],["type","button","aria-haspopup","true",1,"p-column-filter-men
u-button","p-link",3,"ngClass","click","keydown"],["icon",""],[1,"pi","pi-filter-icon","pi-filter"],["type","button",1,"p-column-filter-clear-button","p-link",3,"ngClass","click"],[1,"pi","pi-filter-slash"],[3,"ngClass","click","keydown.escape"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],["class","p-column-filter-row-items",4,"ngIf","ngIfElse"],["menu",""],[1,"p-column-filter-row-items"],["class","p-column-filter-row-item",3,"ngClass","click","keydown","keydown.enter",4,"ngFor","ngForOf"],[1,"p-column-filter-separator"],[1,"p-column-filter-row-item",3,"click","keydown","keydown.enter"],[1,"p-column-filter-row-item",3,"ngClass","click","keydown","keydown.enter"],["class","p-column-filter-operator",4,"ngIf"],[1,"p-column-filter-constraints"],["class","p-column-filter-constraint",4,"ngFor","ngForOf"],["class","p-column-filter-add-rule",4,"ngIf"],[1,"p-column-filter-buttonbar"],["type","button","pButton","","class","p-button-outlined
p-button-sm","pRipple","",3,"label","click",4,"
ngIf"],["type","button","pButton","","class","p-button-sm","pRipple","",3,"label","click",4,"ngIf"],[1,"p-column-filter-operator"],["styleClass","p-column-filter-operator-dropdown",3,"options","ngModel","ngModelChange"],[1,"p-column-filter-constraint"],["styleClass","p-column-filter-matchmode-dropdown",3,"options","ngModel","ngModelChange",4,"ngIf"],[3,"type","field","filterConstraint","filterTemplate","placeholder","minFractionDigits","maxFractionDigits","prefix","suffix","locale","localeMatcher","currency","currencyDisplay","useGrouping"],["type","button","pButton","","icon","pi
pi-trash","class","p-column-filter-remove-button p-button-text
p-button-danger
p-button-sm","pRipple","",3,"label","click",4,"ngIf"],["styleClass","p-column-filter-matchmode-dropdown",3,"options","ngModel","ngModelChange"],["type","button","pButton","","icon","pi
pi-trash","pRipple","",1,"p-column-filter-remove-button","p-button-text","p-button-danger","p-button-sm",3,"label","click"],[1,"p-column-filter-a
dd-rule"],["type","button","pButton","","icon","pi
pi-plus","pRipple","",1,"p-column-filter-add-button","p-button-text","p-button-sm",3,"label","click"],["type","button","pButton","","pRipple","",1,"p-button-outlined","p-button-sm",3,"label","click"],["type","button","pButton","","pRipple","",1,"p-button-sm",3,"label","click"]],template:function(e,n){1&e&&(l(0,"div",0),_(1,nU,1,14,"p-columnFilterFormElement",1),_(2,sU,3,5,"button",2),_(3,oU,3,3,"button",3),_(4,yU,6,14,"div",4),c()),2&e&&(p("ngClass",Ge(5,wU,"row"===n.display,"menu"===n.display)),a(1),p("ngIf","row"===n.display),a(1),p("ngIf",n.showMenuButton),a(1),p("ngIf",n.showClearButton&&"row"===n.display),a(1),p("ngIf",n.showMenu&&n.overlayVisible))},directives:[MU,Ot,Le,Q,Rt,at,Te,_e,On],encapsulation:2,data:{animation:[wi("overlayAnimation",[Lt(":enter",[it({opacity:0,transform:"scaleY(0.8)"}),kt(".12s
cubic-bezier(0, 0, 0.2, 1)")]),Lt(":leave",[kt(".1s
linear",it({opacity:0}))])])]}}),t})(),kU=(()=>{class t{}return t.\u0275f
ac=function(e){return
new(e||t)},t.\u0275mod=he({type:t}),t.\u0275inj=ue({imports:[[Fe,RT,MT,Zu,Fo,Mu,gl,Tq,cT,Xu,Iq],Nt,Fo]}),t})();const
W2=["container"],IU=function(t,i,e,n){return{"pi-info-circle":t,"pi-exclamation-triangle":i,"pi-times-circle":e,"pi-check":n}};function
EU(t,i){if(1&t&&(de(0),k(1,"span",6),l(2,"div",7)(3,"div",8),g(4),c(),l(5,"div",9),g(6),c()(),pe()),2&t){const
e=d();a(1),me("p-toast-message-icon pi"+(e.message.icon?"
"+e.message.icon:"")),p("ngClass",qn(5,IU,"info"==e.message.severity,"warn"==e.message.severity,"error"==e.message.severity,"success"==e.message.severity)),a(3),S(e.message.summary),a(2),S(e.message.detail)}}function
RU(t,i){1&t&&Y(0)}function LU(t,i){if(1&t){const
e=I();l(0,"button",10),C("click",function(s){return
v(e),d().onCloseIconClick(s)})("keydown.enter",function(s){return
v(e),d().onCloseIconClick(s)}),k(1,"span",11),c()}}const
OU=function(t){return[t,"p-toast-message"]},AU=function(t,i,e,n){return{showTransformParams:t,hideTransformParam
s:i,showTransitionParams:e,hideTransitionParams:n}},PU=function(t){return{value:"visible",params:t}},FU=function(t){return{$implicit:t}};function
NU(t,i){if(1&t){const
e=I();l(0,"p-toastItem",3),C("onClose",function(s){return
v(e),d().onMessageClose(s)})("(a)toastAnimation.start",function(s){return
v(e),d().onAnimationStart(s)})("(a)toastAnimation.done",function(s){return
v(e),d().onAnimationEnd(s)}),c()}if(2&t){const
e=i.$implicit,n=i.index,s=d();p("message",e)("index",n)("template",s.template)("@toastAnimation",void
0)("showTransformOptions",s.showTransformOptions)("hideTransformOptions",s.hideTransformOptions)("showTransitionOptions",s.showTransitionOptions)("hideTransitionOptions",s.hideTransitionOptions)}}let
VU=(()=>{class t{constructor(e){this.zone=e,this.onClose=new
H}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||3
e3)})}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)(D(nt))},t.\u0275cmp=z({type:t,selectors:[["p-toastItem"]],viewQuery:function(e,n){if(1&e&&W(W2,5),2&e){let
s;V(s=B())&&(n.containerViewChild=s.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,n){1&e&&(l(0,"div",0,1),C("mouseenter",function(){return
n.onMouseEnter()})("mouseleave",function(){return
n.onMouseLeave()}),l(2,"div",2),_(3,EU,7,10,"ng-container",3),_(4,RU,1,0,"ng-container",4),_(5,LU,2,0,"button",5),c()()),2&e&&(me(n.message.styleClass),p("ngClass",U(10,OU,"p-toast-message-"+n.message.severity))("(a)messageState",U(17,PU,qn(12,AU,n.showTransformOptions,n.hideTransformOptions,n.showTransitionOptions,n.hideTransitionOptions))),ie("id",n.message.id),a(2),p("ngClass",n.message.contentStyleClass),a(1),p("ngIf",!n.template),a(1),p("ngTemplateOutlet",n.template)("ngTemplateOutletContext",U(
19,FU,n.message)),a(1),p("ngIf",!1!==n.message.closable))},directives:[Le,Q,Rt,bt],encapsulation:2,data:{animation:[wi("messageState",[ws("visible",it({transform:"translateY(0)",opacity:1})),Lt("void
=>
*",[it({transform:"{{showTransformParams}}",opacity:0}),kt("{{showTransitionParams}}")]),Lt("*
=>
void",[kt("{{hideTransitionParams}}",it({height:0,opacity:0,transform:"{{hideTransformParams}}"}))])])]},changeDetection:0}),t})(),Td=(()=>{class
t{constructor(e,n,s){this.messageService=e,this.cd=n,this.config=s,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
H,this.id=pl()}ngOnInit(){this.messageSubscription=this.messageService.messageObserver.subscribe(e=>{if(e)if(e
instanceof Array){const n=e.filter(s=>this.canAdd(s));this
.add(n)}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
n=this.key===e.key;return
n&&this.preventOpenDuplicates&&(n=!this.containsMessage(this.messages,e)),n&&this.preventDuplicates&&(n=!this.containsMessage(this.messagesArchieve,e)),n}containsMessage(e,n){return!!e&&null!=e.find(s=>s.summary===n.summary&&s.detail==n.detail&&s.severity===n.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.fromSt
ate&&(this.containerViewChild.nativeElement.setAttribute(this.id,""),this.autoZIndex&&dt.set("modal",this.containerViewChild.nativeElement,this.baseZIndex||this.config.zIndex.modal))}onAnimationEnd(e){"void"===e.toState&&this.autoZIndex&&Z.isEmpty(this.messages)&&dt.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 n in this.breakpoints){let s="";for(let r in
this.breakpoints[n])s+=r+":"+this.breakpoints[n][r]+"
!important;";e+=`\n @media screen and (max-width: ${n}) {\n
.p-toast[${this.id}] {\n ${s}\n
}\n }\n
`}this.styleElement.innerHTML=e}}destroyStyle(){this.styleElement&&(document.head.removeChild(this.styleElement),this.styleElement=null)}ngOnDestroy(){this.messageSubscription&&t
his.messageSubscription.unsubscribe(),this.containerViewChild&&this.autoZIndex&&dt.clear(this.containerViewChild.nativeElement),this.clearSubscription&&this.clearSubscription.unsubscribe(),this.destroyStyle()}}return
t.\u0275fac=function(e){return
new(e||t)(D(Gi),D(rt),D(zn))},t.\u0275cmp=z({type:t,selectors:[["p-toast"]],contentQueries:function(e,n,s){if(1&e&&st(s,ne,4),2&e){let
r;V(r=B())&&(n.templates=r)}},viewQuery:function(e,n){if(1&e&&W(W2,5),2&e){let
s;V(s=B())&&(n.containerViewChild=s.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:function(e,n){1&e&&(l(0,"div",0,1),_(2,NU,1,8,"p-toastItem",2),c()),2&e&&(me(n.styleClass),p("ngClass","p-toast
p-component
p-toast-"+n.position)("ngStyle",n.style),a(2),p("ngForOf",n.messages))},directives:[VU,Le,lt,at],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{bot
tom: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:[wi("toastAnimation",[Lt(":enter,
:leave",[$A("@*",jA())])])]},changeDetection:0}),t})(),BU=(()=>{class
t{}return t.\u0275fac=function(e){return
new(e||t)},t.\u0275mod=he({type:t}),t.\u0275inj=ue({imports:[[Fe,pn],Nt]}),t})(),GU=(()=>{class
t{}return t.\u0275fac=function(e){return
new(e||t)},t.\u0275mod=he({type:t}),t.\u0275inj=ue({imports:[[Fe]]}),t})();const
UU=["rb"],zU=function(t,i,e){return{"p-radiobutton-label":!0,"p-radiobutton-label-active":t,"p-disabled":i,"p-radiobutton-label-focus":e}};function
jU(t,i){if(1&t){const
e=I();l(0,"label",4),C("click",function(s){return
v(e),d().select(s)}),g(1),c()}if(2&t){const
e=d(),n=F(3);me(e.labelStyleClass),p("ngClass",Qt(5,zU,n.ch
ecked,e.disabled,e.focused)),ie("for",e.inputId),a(1),S(e.label)}}const
$U=function(t,i,e){return{"p-radiobutton
p-component":!0,"p-radiobutton-checked":t,"p-radiobutton-disabled":i,"p-radiobutton-focused":e}},WU=function(t,i,e){return{"p-radiobutton-box":!0,"p-highlight":t,"p-disabled":i,"p-focus":e}},KU={provide:dn,useExisting:je(()=>Sd),multi:!0};let
QU=(()=>{class
t{constructor(){this.accessors=[]}add(e,n){this.accessors.push([e,n])}remove(e){this.accessors=this.accessors.filter(n=>n[1]!==e)}select(e){this.accessors.forEach(n=>{this.isSameGroup(n,e)&&n[1]!==e&&n[1].writeValue(e.value)})}isSameGroup(e,n){return!!e[0].control&&e[0].control.root===n.control.control.root&&e[1].name===n.name}}return
t.\u0275fac=function(e){return
new(e||t)},t.\u0275prov=X({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),Sd=(()=>{class
t{constructor(e,n,s){this.cd=e,this.injector=n,this.registry=s,this.onClick=new
H,this.onFocus=new H,this.onBlur=new H,this.onModelChange=()=>{},this.onModelTouch
ed=()=>{}}ngOnInit(){this.control=this.injector.get(ss),this.checkName(),this.registry.add(this.control,this)}handleClick(e,n,s){e.preventDefault(),!this.disabled&&(this.select(e),s&&n.focus())}select(e){this.disabled||(this.inputViewChild.nativeElement.checked=!0,this.checked=!0,this.onModelChange(this.value),this.registry.select(this),this.onClick.emit(e))}writeValue(e){this.checked=e==this.value,this.inputViewChild&&this.inputViewChild.nativeElement&&(this.inputViewChild.nativeElement.checked=this.checked),this.cd.markForCheck()}registerOnChange(e){this.onModelChange=e}registerOnTouched(e){this.onModelTouched=e}setDisabledState(e){this.disabled=e,this.cd.markForCheck()}onInputFocus(e){this.focused=!0,this.onFocus.emit(e)}onInputBlur(e){this.focused=!1,this.onModelTouched(),this.onBlur.emit(e)}onChange(e){this.select(e)}focus(){this.inputViewChild.nativeElement.focus()}ngOnDestroy(){this.registry.remove(this)}checkName(){this.name&&this.formControlName&&this.name!==this.formContro
lName&&this.throwNameError(),!this.name&&this.formControlName&&(this.name=this.formControlName)}throwNameError(){throw
new Error('\n If you define both a name and a formControlName attribute on
your radio button, their values\n must match. Ex: <p-radioButton
formControlName="food" name="food"></p-radioButton>\n
')}}return t.\u0275fac=function(e){return
new(e||t)(D(rt),D(En),D(QU))},t.\u0275cmp=z({type:t,selectors:[["p-radioButton"]],viewQuery:function(e,n){if(1&e&&W(UU,5),2&e){let
s;V(s=B())&&(n.inputViewChild=s.first)}},hostAttrs:[1,"p-element"],inputs:{value:"value",formControlName:"formControlName",name:"name",disabled:"disabled",label:"label",tabindex:"tabindex",inputId:"inputId",ariaLabelledBy:"ariaLabelledBy",ariaLabel:"ariaLabel",style:"style",styleClass:"styleClass",labelStyleClass:"labelStyleClass"},outputs:{onClick:"onClick",onFocus:"onFocus",onBlur:"onBlur"},features:[Pe([KU])],decls:7,vars:23,consts:[[3,"ngStyle","ngClass"],[1,"p-hidden-accessibl
e"],["type","radio",3,"checked","disabled","change","focus","blur"],["rb",""],[3,"ngClass","click"],[1,"p-radiobutton-icon"],[3,"class","ngClass","click",4,"ngIf"]],template:function(e,n){if(1&e){const
s=I();l(0,"div",0)(1,"div",1)(2,"input",2,3),C("change",function(o){return
n.onChange(o)})("focus",function(o){return
n.onInputFocus(o)})("blur",function(o){return
n.onInputBlur(o)}),c()(),l(4,"div",4),C("click",function(o){v(s);const
u=F(3);return
n.handleClick(o,u,!0)}),k(5,"span",5),c()(),_(6,jU,2,9,"label",6)}2&e&&(me(n.styleClass),p("ngStyle",n.style)("ngClass",Qt(15,$U,n.checked,n.disabled,n.focused)),a(2),p("checked",n.checked)("disabled",n.disabled),ie("id",n.inputId)("name",n.name)("value",n.value)("tabindex",n.tabindex)("aria-checked",n.checked)("aria-label",n.ariaLabel)("aria-labelledby",n.ariaLabelledBy),a(2),p("ngClass",Qt(19,WU,n.checked,n.disabled,n.focused)),a(2),p("ngIf",n.label))},directives:[lt,Le,Q],encapsulation:2,changeDetection:0}),t})(),JU=(()=>{class
t{}return
t.\u0275fac=function(e){return
new(e||t)},t.\u0275mod=he({type:t}),t.\u0275inj=ue({imports:[[Fe]]}),t})();function
YU(t,i){if(1&t&&(l(0,"div",5),g(1),c()),2&t){const
e=d(2);_i("display",null!=e.value&&0!==e.value?"flex":"none"),a(1),We("",e.value,"",e.unit,"")}}function
ZU(t,i){if(1&t&&(l(0,"div",3),_(1,YU,2,4,"div",4),c()),2&t){const
e=d();_i("width",e.value+"%"),a(1),p("ngIf",e.showValue)}}function
XU(t,i){1&t&&(l(0,"div",6),k(1,"div",7),c())}const
ez=function(t,i){return{"p-progressbar
p-component":!0,"p-progressbar-determinate":t,"p-progressbar-indeterminate":i}};let
tz=(()=>{class
t{constructor(){this.showValue=!0,this.unit="%",this.mode="determinate"}}return
t.\u0275fac=function(e){return
new(e||t)},t.\u0275cmp=z({type:t,selectors:[["p-progressBar"]],hostAttrs:[1,"p-element"],inputs:{value:"value",showValue:"showValue",style:"style",styleClass:"styleClass",unit:"unit",mode:"mode"},decls:3,vars:10,consts:[["role","progressbar","aria-valuemin","0","aria-valuemax","100",3,"ngSty
le","ngClass"],["class","p-progressbar-value
p-progressbar-value-animate","style","display:flex",3,"width",4,"ngIf"],["class","p-progressbar-indeterminate-container",4,"ngIf"],[1,"p-progressbar-value","p-progressbar-value-animate",2,"display","flex"],["class","p-progressbar-label",3,"display",4,"ngIf"],[1,"p-progressbar-label"],[1,"p-progressbar-indeterminate-container"],[1,"p-progressbar-value","p-progressbar-value-animate"]],template:function(e,n){1&e&&(l(0,"div",0),_(1,ZU,2,3,"div",1),_(2,XU,2,0,"div",2),c()),2&e&&(me(n.styleClass),p("ngStyle",n.style)("ngClass",Ge(7,ez,"determinate"===n.mode,"indeterminate"===n.mode)),ie("aria-valuenow",n.value),a(1),p("ngIf","determinate"===n.mode),a(1),p("ngIf","indeterminate"===n.mode))},directives:[lt,Le,Q],styles:['.p-progressbar{position:relative;overflow:hidden}.p-progressbar-determinate
.p-progressbar-value{height:100%;width:0%;position:absolute;display:none;border:0
none;display:flex;align-items:center;justify-content:center;overflow:hi
dden}.p-progressbar-determinate
.p-progressbar-label{display:inline-flex}.p-progressbar-determinate
.p-progressbar-value-animate{transition:width 1s ease-in-out}.p-progressbar-indeterminate
.p-progressbar-value:before{content:"";position:absolute;background-color:inherit;top:0;left:0;bottom:0;will-change:left,right;animation:p-progressbar-indeterminate-anim
2.1s cubic-bezier(.65,.815,.735,.395) infinite}.p-progressbar-indeterminate
.p-progressbar-value:after{content:"";position:absolute;background-color:inherit;top:0;left:0;bottom:0;will-change:left,right;animation:p-progressbar-indeterminate-anim-short
2.1s cubic-bezier(.165,.84,.44,1) infinite;animation-delay:1.15s}@keyframes
p-progressbar-indeterminate-anim{0%{left:-35%;right:100%}60%{left:100%;right:-90%}to{left:100%;right:-90%}}@keyframes
p-progressbar-indeterminate-anim-short{0%{left:-200%;right:100%}60%{left:107%;right:-8%}to{left:107%;right:-8%}}\n'],encapsulation:2,changeDetection:0}),t})(),nz=(()=>{class
t{}return t.\u0275
fac=function(e){return
new(e||t)},t.\u0275mod=he({type:t}),t.\u0275inj=ue({imports:[[Fe]]}),t})();const
iz=["container"],sz=["content"],rz=["xBar"],oz=["yBar"];function
az(t,i){1&t&&Y(0)}const lz=["*"];let K2=(()=>{class
t{constructor(e,n,s){this.el=e,this.zone=n,this.cd=s,this.timeoutFrame=r=>setTimeout(r,0)}ngAfterViewInit(){this.zone.runOutsideAngular(()=>{this.moveBar(),this.moveBar=this.moveBar.bind(this),this.onXBarMouseDown=this.onXBarMouseDown.bind(this),this.onYBarMouseDown=this.onYBarMouseDown.bind(this),this.onDocumentMouseMove=this.onDocumentMouseMove.bind(this),this.onDocumentMouseUp=this.onDocumentMouseUp.bind(this),window.addEventListener("resize",this.moveBar),this.contentViewChild.nativeElement.addEventListener("scroll",this.moveBar),this.contentViewChild.nativeElement.addEventListener("mouseenter",this.moveBar),this.xBarViewChild.nativeElement.addEventListener("mousedown",this.onXBarMouseDown),this.yBarViewChild.nativeElement.addEventListener("mousedown",this.onYBa
rMouseDown),this.calculateContainerHeight(),this.initialized=!0})}ngAfterContentInit(){this.templates.forEach(e=>{e.getType(),this.contentTemplate=e.template})}calculateContainerHeight(){let
e=this.containerViewChild.nativeElement,n=this.contentViewChild.nativeElement,s=this.xBarViewChild.nativeElement,r=getComputedStyle(e),o=getComputedStyle(s),u=R.getHeight(e)-parseInt(o.height,10);"none"!=r["max-height"]&&0==u&&(e.style.height=n.offsetHeight+parseInt(o.height,10)>parseInt(r["max-height"],10)?r["max-height"]:n.offsetHeight+parseFloat(r.paddingTop)+parseFloat(r.paddingBottom)+parseFloat(r.borderTopWidth)+parseFloat(r.borderBottomWidth)+"px")}moveBar(){let
e=this.containerViewChild.nativeElement,n=this.contentViewChild.nativeElement,s=this.xBarViewChild.nativeElement,r=n.scrollWidth,o=n.clientWidth,u=-1*(e.clientHeight-s.clientHeight);this.scrollXRatio=o/r;let
h=this.yBarViewChild.nativeElement,b=n.scrollHeight,y=n.clientHeight,w=-1*(e.clientWidth-h.clientWidth);this.scrollYRatio=y/
b,this.requestAnimationFrame(()=>{if(this.scrollXRatio>=1)R.addClass(s,"p-scrollpanel-hidden");else{R.removeClass(s,"p-scrollpanel-hidden");const
M=Math.max(100*this.scrollXRatio,10);s.style.cssText="width:"+M+"%;
left:"+n.scrollLeft*(100-M)/(r-o)+"%;bottom:"+u+"px;"}if(this.scrollYRatio>=1)R.addClass(h,"p-scrollpanel-hidden");else{R.removeClass(h,"p-scrollpanel-hidden");const
M=Math.max(100*this.scrollYRatio,10);h.style.cssText="height:"+M+"%; top:
calc("+n.scrollTop*(100-M)/(b-y)+"% -
"+s.clientHeight+"px);right:"+w+"px;"}}),this.cd.markForCheck()}onYBarMouseDown(e){this.isYBarClicked=!0,this.lastPageY=e.pageY,R.addClass(this.yBarViewChild.nativeElement,"p-scrollpanel-grabbed"),R.addClass(document.body,"p-scrollpanel-grabbed"),document.addEventListener("mousemove",this.onDocumentMouseMove),document.addEventListener("mouseup",this.onDocumentMouseUp),e.preventDefault()}onXBarMouseDown(e){this.isXBarClicked=!0,this.lastPageX=e.pageX,R.addClass(this.xBarViewChild.nativeElement,"p-scro
llpanel-grabbed"),R.addClass(document.body,"p-scrollpanel-grabbed"),document.addEventListener("mousemove",this.onDocumentMouseMove),document.addEventListener("mouseup",this.onDocumentMouseUp),e.preventDefault()}onDocumentMouseMove(e){this.isXBarClicked?this.onMouseMoveForXBar(e):(this.isYBarClicked||this.onMouseMoveForXBar(e),this.onMouseMoveForYBar(e))}onMouseMoveForXBar(e){let
n=e.pageX-this.lastPageX;this.lastPageX=e.pageX,this.requestAnimationFrame(()=>{this.contentViewChild.nativeElement.scrollLeft+=n/this.scrollXRatio})}onMouseMoveForYBar(e){let
n=e.pageY-this.lastPageY;this.lastPageY=e.pageY,this.requestAnimationFrame(()=>{this.contentViewChild.nativeElement.scrollTop+=n/this.scrollYRatio})}scrollTop(e){let
n=this.contentViewChild.nativeElement.scrollHeight-this.contentViewChild.nativeElement.clientHeight;this.contentViewChild.nativeElement.scrollTop=e=e>n?n:e>0?e:0}onDocumentMouseUp(e){R.removeClass(this.yBarViewChild.nativeElement,"p-scrollpanel-grabbed"),R.removeClass(this
.xBarViewChild.nativeElement,"p-scrollpanel-grabbed"),R.removeClass(document.body,"p-scrollpanel-grabbed"),document.removeEventListener("mousemove",this.onDocumentMouseMove),document.removeEventListener("mouseup",this.onDocumentMouseUp),this.isXBarClicked=!1,this.isYBarClicked=!1}requestAnimationFrame(e){(window.requestAnimationFrame||this.timeoutFrame)(e)}ngOnDestroy(){this.initialized&&(window.removeEventListener("resize",this.moveBar),this.contentViewChild.nativeElement.removeEventListener("scroll",this.moveBar),this.contentViewChild.nativeElement.removeEventListener("mouseenter",this.moveBar),this.xBarViewChild.nativeElement.removeEventListener("mousedown",this.onXBarMouseDown),this.yBarViewChild.nativeElement.removeEventListener("mousedown",this.onYBarMouseDown))}refresh(){this.moveBar()}}return
t.\u0275fac=function(e){return
new(e||t)(D(De),D(nt),D(rt))},t.\u0275cmp=z({type:t,selectors:[["p-scrollPanel"]],contentQueries:function(e,n,s){if(1&e&&st(s,ne,4),2&e){let
r;V(r=B())&&(
n.templates=r)}},viewQuery:function(e,n){if(1&e&&(W(iz,5),W(sz,5),W(rz,5),W(oz,5)),2&e){let
s;V(s=B())&&(n.containerViewChild=s.first),V(s=B())&&(n.contentViewChild=s.first),V(s=B())&&(n.xBarViewChild=s.first),V(s=B())&&(n.yBarViewChild=s.first)}},hostAttrs:[1,"p-element"],inputs:{style:"style",styleClass:"styleClass"},ngContentSelectors:lz,decls:11,vars:5,consts:[[3,"ngClass","ngStyle"],["container",""],[1,"p-scrollpanel-wrapper"],[1,"p-scrollpanel-content"],["content",""],[4,"ngTemplateOutlet"],[1,"p-scrollpanel-bar","p-scrollpanel-bar-x"],["xBar",""],[1,"p-scrollpanel-bar","p-scrollpanel-bar-y"],["yBar",""]],template:function(e,n){1&e&&(Sn(),l(0,"div",0,1)(2,"div",2)(3,"div",3,4),St(5),_(6,az,1,0,"ng-container",5),c()(),k(7,"div",6,7)(9,"div",8,9),c()),2&e&&(me(n.styleClass),p("ngClass","p-scrollpanel
p-component")("ngStyle",n.style),a(6),p("ngTemplateOutlet",n.contentTemplate))},directives:[Le,lt,Rt],styles:[".p-scrollpanel-wrapper{overflow:hidden;width:100%;height:100%;position
:relative;z-index:1;float:left}.p-scrollpanel-content{height:calc(100% +
18px);width:calc(100% + 18px);padding:0 18px 18px
0;position:relative;overflow:auto;box-sizing:border-box}.p-scrollpanel-bar{position:relative;background:#c1c1c1;border-radius:3px;z-index:2;cursor:pointer;opacity:0;transition:opacity
.25s
linear}.p-scrollpanel-bar-y{width:9px;top:0}.p-scrollpanel-bar-x{height:9px;bottom:0}.p-scrollpanel-hidden{visibility:hidden}.p-scrollpanel:hover
.p-scrollpanel-bar,.p-scrollpanel:active
.p-scrollpanel-bar{opacity:1}.p-scrollpanel-grabbed{-webkit-user-select:none;user-select:none}\n"],encapsulation:2,changeDetection:0}),t})(),cz=(()=>{class
t{}return t.\u0275fac=function(e){return
new(e||t)},t.\u0275mod=he({type:t}),t.\u0275inj=ue({imports:[[Fe]]}),t})();const
uz=["content"],dz=["navbar"],pz=["inkbar"],hz=["prevBtn"],mz=["nextBtn"];function
fz(t,i){if(1&t){const
e=I();l(0,"button",11,12),C("click",function(){return
v(e),d().navBackward()}),k(2,"span",13),c()}}function gz(t,i){
if(1&t&&k(0,"span",23),2&t){const
e=d(3).$implicit;p("ngClass",e.icon)("ngStyle",e.iconStyle)}}function
_z(t,i){if(1&t&&(l(0,"span",24),g(1),c()),2&t){const
e=d(3).$implicit;a(1),S(e.label)}}function
bz(t,i){1&t&&k(0,"span",25),2&t&&p("innerHTML",d(3).$implicit.label,Bt)}function
vz(t,i){if(1&t&&(de(0),_(1,gz,1,2,"span",20),_(2,_z,2,1,"span",21),_(3,bz,1,1,"ng-template",null,22,we),pe()),2&t){const
e=F(4),n=d(2).$implicit;a(1),p("ngIf",n.icon),a(1),p("ngIf",!1!==n.escape)("ngIfElse",e)}}function
Cz(t,i){1&t&&Y(0)}const Q2=function(t,i){return{$implicit:t,index:i}};function
yz(t,i){if(1&t){const
e=I();l(0,"a",17),C("click",function(s){v(e);const
r=d().$implicit;return
d().itemClick(s,r)})("keydown.enter",function(s){v(e);const
r=d().$implicit;return
d().itemClick(s,r)}),_(1,vz,5,3,"ng-container",18),_(2,Cz,1,0,"ng-container",19),c()}if(2&t){const
e=d(),n=e.$implicit,s=e.index,r=d();p("target",n.target),ie("href",n.url,ln)("tabindex",n.disabled?null:"0")("title",n.title)("id",n.id),a(
1),p("ngIf",!r.itemTemplate),a(1),p("ngTemplateOutlet",r.itemTemplate)("ngTemplateOutletContext",Ge(8,Q2,n,s))}}function
wz(t,i){if(1&t&&k(0,"span",23),2&t){const
e=d(3).$implicit;p("ngClass",e.icon)("ngStyle",e.iconStyle)}}function
Tz(t,i){if(1&t&&(l(0,"span",24),g(1),c()),2&t){const
e=d(3).$implicit;a(1),S(e.label)}}function
Sz(t,i){1&t&&k(0,"span",25),2&t&&p("innerHTML",d(3).$implicit.label,Bt)}function
xz(t,i){if(1&t&&(de(0),_(1,wz,1,2,"span",20),_(2,Tz,2,1,"span",21),_(3,Sz,1,1,"ng-template",null,27,we),pe()),2&t){const
e=F(4),n=d(2).$implicit;a(1),p("ngIf",n.icon),a(1),p("ngIf",!1!==n.escape)("ngIfElse",e)}}function
Dz(t,i){1&t&&Y(0)}const Mz=function(){return{exact:!1}};function
kz(t,i){if(1&t){const
e=I();l(0,"a",26),C("click",function(s){v(e);const
r=d().$implicit;return
d().itemClick(s,r)})("keydown.enter",function(s){v(e);const
r=d().$implicit;return
d().itemClick(s,r)}),_(1,xz,5,3,"ng-container",18),_(2,Dz,1,0,"ng-container",19),c()}if(2&t){const
e=d(),n=e.$implicit,s=e.
index,r=d();p("routerLink",n.routerLink)("queryParams",n.queryParams)("routerLinkActive","p-menuitem-link-active")("routerLinkActiveOptions",n.routerLinkActiveOptions||A(17,Mz))("target",n.target)("fragment",n.fragment)("queryParamsHandling",n.queryParamsHandling)("preserveFragment",n.preserveFragment)("skipLocationChange",n.skipLocationChange)("replaceUrl",n.replaceUrl)("state",n.state),ie("tabindex",n.disabled?null:"0")("title",n.title)("id",n.id),a(1),p("ngIf",!r.itemTemplate),a(1),p("ngTemplateOutlet",r.itemTemplate)("ngTemplateOutletContext",Ge(18,Q2,n,s))}}const
Iz=function(t,i,e){return{"p-tabmenuitem":!0,"p-disabled":t,"p-highlight":i,"p-hidden":e}};function
Ez(t,i){if(1&t&&(l(0,"li",14),_(1,yz,3,11,"a",15),_(2,kz,3,21,"a",16),c()),2&t){const
e=i.$implicit,n=d();me(e.styleClass),p("ngStyle",e.style)("ngClass",Qt(9,Iz,e.disabled,n.isActive(e),!1===e.visible))("tooltipOptions",e.tooltipOptions),ie("aria-selected",n.isActive(e))("aria-expanded",n.isActive(e)),a(1),p("ngIf",!e.r
outerLink),a(1),p("ngIf",e.routerLink)}}function Rz(t,i){if(1&t){const
e=I();l(0,"button",28,29),C("click",function(){return
v(e),d().navForward()}),k(2,"span",30),c()}}const
Lz=function(t){return{"p-tabmenu
p-component":!0,"p-tabmenu-scrollable":t}};let J2=(()=>{class
t{constructor(e,n,s){this.router=e,this.route=n,this.cd=s,this.backwardIsDisabled=!0,this.forwardIsDisabled=!1}ngAfterContentInit(){this.templates.forEach(e=>{e.getType(),this.itemTemplate=e.template})}ngAfterViewInit(){this.updateInkBar()}ngAfterViewChecked(){this.tabChanged&&(this.updateInkBar(),this.tabChanged=!1)}isActive(e){if(e.routerLink){let
n=Array.isArray(e.routerLink)?e.routerLink:[e.routerLink];return
this.router.isActive(this.router.createUrlTree(n,{relativeTo:this.route}).toString(),!1)}return
e===this.activeItem}itemClick(e,n){n.disabled?e.preventDefault():(!n.url&&!n.routerLink&&e.preventDefault(),n.command&&n.command({originalEvent:e,item:n}),this.activeItem=n,this.tabChanged=!0)}updateInkBar(){let
e=
R.findSingle(this.navbar.nativeElement,"li.p-highlight");e&&(this.inkbar.nativeElement.style.width=R.getWidth(e)+"px",this.inkbar.nativeElement.style.left=R.getOffset(e).left-R.getOffset(this.navbar.nativeElement).left+"px")}getVisibleButtonWidths(){var
e,n;return[null===(e=this.prevBtn)||void 0===e?void
0:e.nativeElement,null===(n=this.nextBtn)||void 0===n?void
0:n.nativeElement].reduce((s,r)=>r?s+R.getWidth(r):s,0)}updateButtonState(){const
e=this.content.nativeElement,{scrollLeft:n,scrollWidth:s}=e,r=R.getWidth(e);this.backwardIsDisabled=0===n,this.forwardIsDisabled=parseInt(n)===s-r}updateScrollBar(e){this.navbar.nativeElement.children[e].scrollIntoView({block:"nearest"})}onScroll(e){this.scrollable&&this.updateButtonState(),e.preventDefault()}navBackward(){const
e=this.content.nativeElement,n=R.getWidth(e)-this.getVisibleButtonWidths(),s=e.scrollLeft-n;e.scrollLeft=s<=0?0:s}navForward(){const
e=this.content.nativeElement,n=R.getWidth(e)-this.getVisibleButtonWidths(),s=e.scrollL
eft+n,r=e.scrollWidth-n;e.scrollLeft=s>=r?r:s}}return t.\u0275fac=function(e){return
new(e||t)(D(It),D(Er),D(rt))},t.\u0275cmp=z({type:t,selectors:[["p-tabMenu"]],contentQueries:function(e,n,s){if(1&e&&st(s,ne,4),2&e){let
r;V(r=B())&&(n.templates=r)}},viewQuery:function(e,n){if(1&e&&(W(uz,5),W(dz,5),W(pz,5),W(hz,5),W(mz,5)),2&e){let
s;V(s=B())&&(n.content=s.first),V(s=B())&&(n.navbar=s.first),V(s=B())&&(n.inkbar=s.first),V(s=B())&&(n.prevBtn=s.first),V(s=B())&&(n.nextBtn=s.first)}},hostAttrs:[1,"p-element"],inputs:{model:"model",activeItem:"activeItem",scrollable:"scrollable",popup:"popup",style:"style",styleClass:"styleClass"},decls:11,vars:9,consts:[[3,"ngClass","ngStyle"],[1,"p-tabmenu-nav-container"],["class","p-tabmenu-nav-prev
p-tabmenu-nav-btn
p-link","type","button","pRipple","",3,"click",4,"ngIf"],[1,"p-tabmenu-nav-content",3,"scroll"],["content",""],["role","tablist",1,"p-tabmenu-nav","p-reset"],["navbar",""],["role","tab","pTooltip","",3,"ngStyle","class","ngClass","toolt
ipOptions",4,"ngFor","ngForOf"],[1,"p-tabmenu-ink-bar"],["inkbar",""],["class","p-tabmenu-nav-next
p-tabmenu-nav-btn
p-link","type","button","pRipple","",3,"click",4,"ngIf"],["type","button","pRipple","",1,"p-tabmenu-nav-prev","p-tabmenu-nav-btn","p-link",3,"click"],["prevBtn",""],[1,"pi","pi-chevron-left"],["role","tab","pTooltip","",3,"ngStyle","ngClass","tooltipOptions"],["class","p-menuitem-link","role","presentation","pRipple","",3,"target","click","keydown.enter",4,"ngIf"],["role","presentation","class","p-menuitem-link","pRipple","",3,"routerLink","queryParams","routerLinkActive","routerLinkActiveOptions","target","fragment","queryParamsHandling","preserveFragment","skipLocationChange","replaceUrl","state","click","keydown.enter",4,"ngIf"],["role","presentation","pRipple","",1,"p-menuitem-link",3,"target","click","keydown.enter"],[4,"ngIf"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],["class","p-menuitem-icon",3,"ngClass","ngStyle",4,"ngIf"],["class","p-menuitem-text",4,
"ngIf","ngIfElse"],["htmlLabel",""],[1,"p-menuitem-icon",3,"ngClass","ngStyle"],[1,"p-menuitem-text"],[1,"p-menuitem-text",3,"innerHTML"],["role","presentation","pRipple","",1,"p-menuitem-link",3,"routerLink","queryParams","routerLinkActive","routerLinkActiveOptions","target","fragment","queryParamsHandling","preserveFragment","skipLocationChange","replaceUrl","state","click","keydown.enter"],["htmlRouteLabel",""],["type","button","pRipple","",1,"p-tabmenu-nav-next","p-tabmenu-nav-btn","p-link",3,"click"],["nextBtn",""],[1,"pi","pi-chevron-right"]],template:function(e,n){1&e&&(l(0,"div",0)(1,"div",1),_(2,fz,3,0,"button",2),l(3,"div",3,4),C("scroll",function(r){return
n.onScroll(r)}),l(5,"ul",5,6),_(7,Ez,3,13,"li",7),k(8,"li",8,9),c()(),_(10,Rz,3,0,"button",10),c()()),2&e&&(me(n.styleClass),p("ngClass",U(7,Lz,n.scrollable))("ngStyle",n.style),a(2),p("ngIf",n.scrollable&&!n.backwardIsDisabled),a(5),p("ngForOf",n.model),a(3),p("ngIf",n.scrollable&&!n.forwardIsDisabled))},directives:[Le
,lt,Q,bt,at,Kt,Rt,Ho,_d],styles:[".p-tabmenu-nav-container{position:relative}.p-tabmenu-scrollable
.p-tabmenu-nav-container{overflow:hidden}.p-tabmenu-nav-content{overflow-x:auto;overflow-y:hidden;scroll-behavior:smooth;scrollbar-width:none;overscroll-behavior:contain
auto}.p-tabmenu-nav-btn{position:absolute;top:0;z-index:2;height:100%;display:flex;align-items:center;justify-content:center}.p-tabmenu-nav-prev{left:0}.p-tabmenu-nav-next{right:0}.p-tabview-nav-content::-webkit-scrollbar{display:none}.p-tabmenu-nav{display:flex;margin:0;padding:0;list-style-type:none;flex-wrap:nowrap}.p-tabmenu-nav
a{cursor:pointer;-webkit-user-select:none;user-select:none;display:flex;align-items:center;position:relative;text-decoration:none;overflow:hidden}.p-tabmenu-nav
a:focus{z-index:1}.p-tabmenu-nav
.p-menuitem-text{line-height:1;white-space:nowrap}.p-tabmenu-ink-bar{display:none;z-index:1}.p-tabmenu-nav-content::-webkit-scrollbar{display:none}\n"],encapsulation:2,changeDetection:0}),t})(),Oz=((
)=>{class t{}return t.\u0275fac=function(e){return
new(e||t)},t.\u0275mod=he({type:t}),t.\u0275inj=ue({imports:[[Fe,vn,Nt,pn,jn],vn,Nt,jn]}),t})();function
Az(t,i){if(1&t&&(l(0,"span"),g(1),c()),2&t){const
e=d();a(1),S(e.label)}}function Pz(t,i){1&t&&Y(0)}const
Y2=function(t){return{height:t}},Fz=function(t,i){return{"p-highlight":t,"p-disabled":i}},Nz=function(t){return{"p-highlight":t}},Z2=function(t){return{"pi
pi-check":t}},Rl=function(t){return{$implicit:t}},Vz=["container"],Bz=["filterInput"],Hz=["in"];function
qz(t,i){if(1&t&&(de(0),g(1),pe()),2&t){const
e=d(2);a(1),S(e.valuesAsString||"empty")}}function Gz(t,i){if(1&t){const
e=I();l(0,"span",18),C("click",function(s){v(e);const
r=d().$implicit;return d(3).removeChip(r,s)}),c()}}function
Uz(t,i){if(1&t&&(l(0,"div",14,15)(2,"span",16),g(3),c(),_(4,Gz,1,0,"span",17),c()),2&t){const
e=i.$implicit,n=d(3);a(3),S(n.findLabelByValue(e)),a(1),p("ngIf",!n.disabled)}}function
zz(t,i){if(1&t&&(de(0),g(1),pe()),2&t){const e=d(3);a(1),S(e
.placeholder||e.defaultLabel||"empty")}}function
jz(t,i){if(1&t&&(de(0),_(1,Uz,5,2,"div",13),_(2,zz,2,1,"ng-container",7),pe()),2&t){const
e=d(2);a(1),p("ngForOf",e.value),a(1),p("ngIf",!e.value||0===e.value.length)}}function
$z(t,i){if(1&t&&(de(0),_(1,qz,2,1,"ng-container",7),_(2,jz,3,2,"ng-container",7),pe()),2&t){const
e=d();a(1),p("ngIf","comma"===e.display),a(1),p("ngIf","chip"===e.display)}}function
Wz(t,i){1&t&&Y(0)}function Kz(t,i){if(1&t){const
e=I();l(0,"i",19),C("click",function(s){return
v(e),d().clear(s)}),c()}}function Qz(t,i){1&t&&Y(0)}const
Jz=function(t){return{"p-checkbox-disabled":t}},Yz=function(t,i,e){return{"p-highlight":t,"p-focus":i,"p-disabled":e}};function
Zz(t,i){if(1&t){const
e=I();l(0,"div",32)(1,"div",2)(2,"input",33),C("focus",function(){return
v(e),d(3).onHeaderCheckboxFocus()})("blur",function(){return
v(e),d(3).onHeaderCheckboxBlur()})("keydown.space",function(s){return
v(e),d(3).toggleAll(s)}),c()(),l(3,"div",34),C("click",function(s){return
v(e),d
(3).toggleAll(s)}),k(4,"span",35),c()()}if(2&t){const
e=d(3);p("ngClass",U(6,Jz,e.disabled||e.toggleAllDisabled)),a(2),p("checked",e.allChecked)("disabled",e.disabled||e.toggleAllDisabled),a(1),p("ngClass",Qt(8,Yz,e.allChecked,e.headerCheckboxFocus,e.disabled||e.toggleAllDisabled)),ie("aria-checked",e.allChecked),a(1),p("ngClass",U(12,Z2,e.allChecked))}}function
Xz(t,i){if(1&t){const
e=I();l(0,"div",36)(1,"input",37,38),C("input",function(s){return
v(e),d(3).onFilterInputChange(s)}),c(),k(3,"span",39),c()}if(2&t){const
e=d(3);a(1),p("value",e.filterValue||"")("disabled",e.disabled),ie("autocomplete",e.autocomplete)("placeholder",e.filterPlaceHolder)("aria-label",e.ariaFilterLabel)}}function
ej(t,i){if(1&t){const
e=I();l(0,"div",26),St(1),_(2,Qz,1,0,"ng-container",27),_(3,Zz,5,14,"div",28),_(4,Xz,4,5,"div",29),l(5,"button",30),C("click",function(s){return
v(e),d(2).close(s)}),k(6,"span",31),c()()}if(2&t){const
e=d(2);a(2),p("ngTemplateOutlet",e.headerTemplate),a(1),p("ngIf",e.showTog
gleAll&&!e.selectionLimit),a(1),p("ngIf",e.filter)}}function
tj(t,i){if(1&t&&(l(0,"span"),g(1),c()),2&t){const
e=d().$implicit,n=d(3);a(1),S(n.getOptionGroupLabel(e)||"empty")}}function
nj(t,i){1&t&&Y(0)}function ij(t,i){1&t&&Y(0)}function
sj(t,i){if(1&t&&(l(0,"li",41),_(1,tj,2,1,"span",7),_(2,nj,1,0,"ng-container",8),c(),_(3,ij,1,0,"ng-container",8)),2&t){const
e=i.$implicit;d(2);const
n=F(7),s=d();a(1),p("ngIf",!s.groupTemplate),a(1),p("ngTemplateOutlet",s.groupTemplate)("ngTemplateOutletContext",U(5,Rl,e)),a(1),p("ngTemplateOutlet",n)("ngTemplateOutletContext",U(7,Rl,s.getOptionGroupChildren(e)))}}function
rj(t,i){if(1&t&&(de(0),_(1,sj,4,9,"ng-template",40),pe()),2&t){const
e=d(2);a(1),p("ngForOf",e.optionsToRender)}}function
oj(t,i){1&t&&Y(0)}function
aj(t,i){if(1&t&&(de(0),_(1,oj,1,0,"ng-container",8),pe()),2&t){d();const
e=F(7),n=d();a(1),p("ngTemplateOutlet",e)("ngTemplateOutletContext",U(2,Rl,n.optionsToRender))}}function
lj(t,i){if(1&t){const e=I();l(0,"p-multiSelectItem",4
5),C("onClick",function(s){return
v(e),d(4).onOptionClick(s)})("onKeydown",function(s){return
v(e),d(4).onOptionKeydown(s)}),c()}if(2&t){const
e=i.$implicit,n=d(4);p("option",e)("selected",n.isSelected(e))("label",n.getOptionLabel(e))("disabled",n.isOptionDisabled(e))("template",n.itemTemplate)}}function
cj(t,i){if(1&t&&(de(0),_(1,lj,1,5,"ng-template",40),pe()),2&t){const
e=d().$implicit;a(1),p("ngForOf",e)}}function uj(t,i){if(1&t){const
e=I();de(0),l(1,"p-multiSelectItem",50),C("onClick",function(s){return
v(e),d(5).onOptionClick(s)})("onKeydown",function(s){return
v(e),d(5).onOptionKeydown(s)}),c(),pe()}if(2&t){const
e=i.$implicit,n=d(5);a(1),p("option",e)("selected",n.isSelected(e))("label",n.getOptionLabel(e))("disabled",n.isOptionDisabled(e))("template",n.itemTemplate)("itemSize",n.itemSize)}}function
dj(t,i){if(1&t&&(l(0,"cdk-virtual-scroll-viewport",47,48),_(2,uj,2,6,"ng-container",49),c()),2&t){const
e=d(2).$implicit,n=d(2);p("ngStyle",U(3,Y2,n.scrollHeight))("itemSize",n.i
temSize),a(2),p("cdkVirtualForOf",e)}}function
pj(t,i){if(1&t&&_(0,dj,3,5,"cdk-virtual-scroll-viewport",46),2&t){const
e=d(3);p("ngIf",e.virtualScroll&&!e.emptyOptions)}}function
hj(t,i){if(1&t&&(de(0),g(1),pe()),2&t){const e=d(4);a(1),T("
",e.emptyFilterMessageLabel," ")}}function
mj(t,i){1&t&&Y(0,null,52)}function
fj(t,i){if(1&t&&(l(0,"li",51),_(1,hj,2,1,"ng-container",42),_(2,mj,2,0,"ng-container",27),c()),2&t){const
e=d(3);a(1),p("ngIf",!e.emptyFilterTemplate&&!e.emptyTemplate)("ngIfElse",e.emptyFilter),a(1),p("ngTemplateOutlet",e.emptyFilterTemplate||e.emptyTemplate)}}function
gj(t,i){if(1&t&&(de(0),g(1),pe()),2&t){const e=d(4);a(1),T("
",e.emptyMessageLabel," ")}}function
_j(t,i){1&t&&Y(0,null,53)}function
bj(t,i){if(1&t&&(l(0,"li",51),_(1,gj,2,1,"ng-container",42),_(2,_j,2,0,"ng-container",27),c()),2&t){const
e=d(3);a(1),p("ngIf",!e.emptyTemplate)("ngIfElse",e.empty),a(1),p("ngTemplateOutlet",e.emptyTemplate)}}function
vj(t,i){if(1&t&&(_(0,cj,2,1,"ng-container",42),_(1,pj,1,1
,"ng-template",null,43,we),_(3,fj,3,3,"li",44),_(4,bj,3,3,"li",44)),2&t){const
e=F(2),n=d(2);p("ngIf",!n.virtualScroll)("ngIfElse",e),a(3),p("ngIf",n.hasFilter()&&n.emptyOptions),a(1),p("ngIf",!n.hasFilter()&&n.emptyOptions)}}function
Cj(t,i){1&t&&Y(0)}function
yj(t,i){if(1&t&&(l(0,"div",54),St(1,1),_(2,Cj,1,0,"ng-container",27),c()),2&t){const
e=d(2);a(2),p("ngTemplateOutlet",e.footerTemplate)}}const
wj=function(){return["p-multiselect-panel
p-component"]},Tj=function(t,i){return{showTransitionParams:t,hideTransitionParams:i}},Sj=function(t){return{value:"visible",params:t}},xj=function(t){return{"p-multiselect-virtualscroll":t}};function
Dj(t,i){if(1&t){const
e=I();l(0,"div",20),C("(a)overlayAnimation.start",function(s){return
v(e),d().onOverlayAnimationStart(s)})("(a)overlayAnimation.done",function(s){return
v(e),d().onOverlayAnimationEnd(s)})("keydown",function(s){return
v(e),d().onKeydown(s)})("click",function(s){return
v(e),d().onOverlayClick(s)}),_(1,ej,7,3,"div",21),l(2,"div",22
)(3,"ul",23),_(4,rj,2,1,"ng-container",7),_(5,aj,2,4,"ng-container",7),_(6,vj,5,4,"ng-template",null,24,we),c()(),_(8,yj,3,1,"div",25),c()}if(2&t){const
e=d();me(e.panelStyleClass),p("ngClass",A(12,wj))("@overlayAnimation",U(16,Sj,Ge(13,Tj,e.showTransitionOptions,e.hideTransitionOptions)))("ngStyle",e.panelStyle),a(1),p("ngIf",e.showHeader),a(1),_i("max-height",e.virtualScroll?"auto":e.scrollHeight||"auto"),a(1),p("ngClass",U(18,xj,e.virtualScroll)),a(1),p("ngIf",e.group),a(1),p("ngIf",!e.group),a(3),p("ngIf",e.footerFacet||e.footerTemplate)}}const
Mj=[[["p-header"]],[["p-footer"]]],kj=function(t,i,e,n){return{"p-multiselect
p-component":!0,"p-multiselect-open":t,"p-multiselect-chip":i,"p-focus":e,"p-disabled":n}},Ij=function(t,i){return{"p-placeholder":t,"p-multiselect-label-empty":i}},Ej=function(){return{"p-multiselect-trigger":!0}},Rj=["p-header","p-footer"],Lj={provide:dn,useExisting:je(()=>X2),multi:!0};let
Oj=(()=>{class t{constructor(){this.onClick=new H,this.onKeydown=new H
}onOptionClick(e){this.onClick.emit({originalEvent:e,option:this.option})}onOptionKeydown(e){this.onKeydown.emit({originalEvent:e,option:this.option})}}return
t.\u0275fac=function(e){return
new(e||t)},t.\u0275cmp=z({type:t,selectors:[["p-multiSelectItem"]],hostAttrs:[1,"p-element"],inputs:{option:"option",selected:"selected",label:"label",disabled:"disabled",itemSize:"itemSize",template:"template"},outputs:{onClick:"onClick",onKeydown:"onKeydown"},decls:6,vars:20,consts:[["pRipple","",1,"p-multiselect-item",3,"ngStyle","ngClass","click","keydown"],[1,"p-checkbox","p-component"],[1,"p-checkbox-box",3,"ngClass"],[1,"p-checkbox-icon",3,"ngClass"],[4,"ngIf"],[4,"ngTemplateOutlet","ngTemplateOutletContext"]],template:function(e,n){1&e&&(l(0,"li",0),C("click",function(r){return
n.onOptionClick(r)})("keydown",function(r){return
n.onOptionKeydown(r)}),l(1,"div",1)(2,"div",2),k(3,"span",3),c()(),_(4,Az,2,1,"span",4),_(5,Pz,1,0,"ng-container",5),c()),2&e&&(p("ngStyle",U(9,Y2,n.itemSize+"px"))
("ngClass",Ge(11,Fz,n.selected,n.disabled)),ie("aria-label",n.label)("tabindex",n.disabled?null:"0"),a(2),p("ngClass",U(14,Nz,n.selected)),a(1),p("ngClass",U(16,Z2,n.selected)),a(1),p("ngIf",!n.template),a(1),p("ngTemplateOutlet",n.template)("ngTemplateOutletContext",U(18,Rl,n.option)))},directives:[bt,lt,Le,Q,Rt],encapsulation:2}),t})(),X2=(()=>{class
t{constructor(e,n,s,r,o,u){this.el=e,this.renderer=n,this.cd=s,this.filterService=r,this.config=o,this.overlayService=u,this.filter=!0,this.displaySelectedLabel=!0,this.maxSelectedLabels=3,this.selectedItemsLabel="ellipsis",this.showToggleAll=!0,this.emptyFilterMessage="",this.emptyMessage="",this.resetFilterOnHide=!1,this.dropdownIcon="pi
pi-chevron-down",this.optionGroupChildren="items",this.showHeader=!0,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.tooltipPosi
tionStyle="absolute",this.autofocusFilter=!0,this.display="comma",this.autocomplete="on",this.showClear=!1,this.onChange=new
H,this.onFilter=new H,this.onFocus=new H,this.onBlur=new H,this.onClick=new
H,this.onClear=new H,this.onPanelShow=new H,this.onPanelHide=new
H,this.scrollHeight="200px",this.onModelChange=()=>{},this.onModelTouched=()=>{}}set
defaultLabel(e){this._defaultLabel=e,this.updateLabel()}get defaultLabel(){return
this._defaultLabel}set placeholder(e){this._placeholder=e,this.updateLabel()}get
placeholder(){return this._placeholder}get options(){return this._options}set
options(e){this._options=e,this.updateLabel()}get filterValue(){return
this._filterValue}set
filterValue(e){this._filterValue=e,this.activateFilter()}ngOnInit(){this.updateLabel()}ngAfterContentInit(){this.templates.forEach(e=>{switch(e.getType()){case"item":default:this.itemTemplate=e.template;break;case"group":this.groupTemplate=e.template;break;case"selectedItems":this.selectedItemsTemplate=e.templa
te;break;case"header":this.headerTemplate=e.template;break;case"emptyfilter":this.emptyFilterTemplate=e.template;break;case"empty":this.emptyTemplate=e.template;break;case"footer":this.footerTemplate=e.template}})}ngAfterViewInit(){this.overlayVisible&&this.show()}ngAfterViewChecked(){this.filtered&&(this.alignOverlay(),this.filtered=!1)}getOptionLabel(e){return
this.optionLabel?Z.resolveFieldData(e,this.optionLabel):null!=e.label?e.label:e}getOptionValue(e){return
this.optionValue?Z.resolveFieldData(e,this.optionValue):this.optionLabel||void
0===e.value?e:e.value}getOptionGroupLabel(e){return
this.optionGroupLabel?Z.resolveFieldData(e,this.optionGroupLabel):null!=e.label?e.label:e}getOptionGroupChildren(e){return
this.optionGroupChildren?Z.resolveFieldData(e,this.optionGroupChildren):e.items}isOptionDisabled(e){return(this.optionDisabled?Z.resolveFieldData(e,this.optionDisabled):void
0!==e.disabled&&e.disabled)||this.maxSelectionLimitReached&&!this.isSelected(e)}writeValue(e){this.
value=e,this.updateLabel(),this.updateFilledState(),this.checkSelectionLimit(),this.cd.markForCheck()}checkSelectionLimit(){this.maxSelectionLimitReached=!(!this.selectionLimit||!this.value||this.value.length!==this.selectionLimit)}updateFilledState(){this.filled=this.value&&this.value.length>0}registerOnChange(e){this.onModelChange=e}registerOnTouched(e){this.onModelTouched=e}setDisabledState(e){this.disabled=e,this.cd.markForCheck()}onOptionClick(e){let
n=e.option;if(this.isOptionDisabled(n))return;let
s=this.getOptionValue(n),r=this.findSelectionIndex(s);-1!=r?(this.value=this.value.filter((o,u)=>u!=r),this.selectionLimit&&(this.maxSelectionLimitReached=!1)):((!this.selectionLimit||!this.value||this.value.length<this.selectionLimit)&&(this.value=[...this.value||[],s]),this.checkSelectionLimit()),this.onModelChange(this.value),this.onChange.emit({originalEvent:e.originalEvent,value:this.value,itemValue:s}),this.updateLabel(),this.updateFilledState()}isSelected(e){return-1!=this.fi
ndSelectionIndex(this.getOptionValue(e))}findSelectionIndex(e){let
n=-1;if(this.value)for(let
s=0;s<this.value.length;s++)if(Z.equals(this.value[s],e,this.dataKey)){n=s;break}return
n}get toggleAllDisabled(){let e=this.optionsToRender;if(!e||0===e.length)return!0;for(let
n of
e)if(!this.isOptionDisabled(n))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}),this.updateFilledState(),this.updateLabel(),e.preventDefault())}checkAll(){let
n=[];this.optionsToRender.forEach(s=>{if(this.group){let
r=this.getOptionGroupChildren(s);r&&r.forEach(o=>{let
u=this.isOptionDisabled(o);(!u||u&&this.isSelected(o))&&n.push(this.getOptionValue(o))})}else{let
r=this.isOptionDisabled(s);(!r||r&&this.isSelected(s))&&n.push(this.getOptionValue(s))}}),this.value=n}uncheckAll(){let
n=[];this.optionsToRender.forEach(s=>{this.group?s.items&&s
.items.forEach(r=>{this.isOptionDisabled(r)&&this.isSelected(r)&&n.push(this.getOptionValue(r))}):this.isOptionDisabled(s)&&this.isSelected(s)&&n.push(this.getOptionValue(s))}),this.value=n}show(){this.overlayVisible||(this.overlayVisible=!0,this.preventDocumentDefault=!0,this.cd.markForCheck())}onOverlayClick(e){this.overlayService.add({originalEvent:e,target:this.el.nativeElement})}onOverlayAnimationStart(e){switch(e.toState){case"visible":this.overlay=e.element,this.appendOverlay(),this.autoZIndex&&dt.set("overlay",this.overlay,this.baseZIndex+this.config.zIndex.overlay),this.alignOverlay(),this.bindDocumentClickListener(),this.bindDocumentResizeListener(),this.bindScrollListener(),this.filterInputChild&&this.filterInputChild.nativeElement&&(this.preventModelTouched=!0,this.autofocusFilter&&this.filterInputChild.nativeElement.focus()),this.onPanelShow.emit();break;case"void":this.onOverlayHide()}}onOverlayAnimationEnd(e){"void"===e.toState&&dt.clear(e.element)}appendOverlay(){thi
s.appendTo&&("body"===this.appendTo?document.body.appendChild(this.overlay):R.appendChild(this.overlay,this.appendTo),this.overlay.style.minWidth||(this.overlay.style.minWidth=R.getWidth(this.containerViewChild.nativeElement)+"px"))}restoreOverlayAppend(){this.overlay&&this.appendTo&&this.el.nativeElement.appendChild(this.overlay)}alignOverlay(){this.overlay&&(this.appendTo?R.absolutePosition(this.overlay,this.containerViewChild.nativeElement):R.relativePosition(this.overlay,this.containerViewChild.nativeElement))}hide(){this.overlayVisible=!1,this.unbindDocumentClickListener(),this.resetFilterOnHide&&(this.filterInputChild.nativeElement.value="",this._filterValue=null,this._filteredOptions=null),this.onPanelHide.emit(),this.cd.markForCheck()}close(e){this.hide(),e.preventDefault(),e.stopPropagation()}clear(e){this.value=null,this.updateLabel(),this.updateFilledState(),this.onClear.emit(),this.onModelChange(this.value),e.stopPropagation()}onMouseclick(e,n){this.disabled||this.readon
ly||e.target.isSameNode(this.accessibleViewChild.nativeElement)||(this.onClick.emit(e),!this.isOverlayClick(e)&&!R.hasClass(e.target,"p-multiselect-token-icon")&&(this.overlayVisible?this.hide():(n.focus(),this.show())))}removeChip(e,n){this.value=this.value.filter(s=>!Z.equals(s,e,this.dataKey)),this.onModelChange(this.value),this.checkSelectionLimit(),this.onChange.emit({originalEvent:n,value:this.value,itemValue:e}),this.updateLabel(),this.updateFilledState()}isOverlayClick(e){let
n=e.target;return!!this.overlay&&(this.overlay.isSameNode(n)||this.overlay.contains(n))}isOutsideClicked(e){return!(this.el.nativeElement.isSameNode(e.target)||this.el.nativeElement.contains(e.target)||this.isOverlayClick(e))}onInputFocus(e){this.focus=!0,this.onFocus.emit({originalEvent:e})}onInputBlur(e){this.focus=!1,this.onBlur.emit({originalEvent:e}),this.preventModelTouched||this.onModelTouched(),this.preventModelTouched=!1}onOptionKeydown(e){if(!this.readonly)switch(e.originalEvent.which){case
40
:var
n=this.findNextItem(e.originalEvent.target.parentElement);n&&n.focus(),e.originalEvent.preventDefault();break;case
38:var
s=this.findPrevItem(e.originalEvent.target.parentElement);s&&s.focus(),e.originalEvent.preventDefault();break;case
13:this.onOptionClick(e),e.originalEvent.preventDefault();break;case
9:this.hide()}}findNextItem(e){let n=e.nextElementSibling;return
n?R.hasClass(n.children[0],"p-disabled")||R.isHidden(n.children[0])||R.hasClass(n,"p-multiselect-item-group")?this.findNextItem(n):n.children[0]:null}findPrevItem(e){let
n=e.previousElementSibling;return
n?R.hasClass(n.children[0],"p-disabled")||R.isHidden(n.children[0])||R.hasClass(n,"p-multiselect-item-group")?this.findPrevItem(n):n.children[0]:null}onKeydown(e){switch(e.which){case
40:!this.overlayVisible&&e.altKey&&(this.show(),e.preventDefault());break;case
32:this.overlayVisible||(this.show(),e.preventDefault());break;case
27:this.hide()}}updateLabel(){if(this.value&&this.options&&this.value.length&&this.dis
playSelectedLabel){let e="";for(let n=0;n<this.value.length;n++){let
s=this.findLabelByValue(this.value[n]);s&&(e.length>0&&(e+=",
"),e+=s)}if(this.value.length<=this.maxSelectedLabels||"ellipsis"===this.selectedItemsLabel)this.valuesAsString=e;else{let
n=/{(.*?)}/;this.valuesAsString=n.test(this.selectedItemsLabel)?this.selectedItemsLabel.replace(this.selectedItemsLabel.match(n)[0],this.value.length+""):this.selectedItemsLabel}}else
this.valuesAsString=this.placeholder||this.defaultLabel}findLabelByValue(e){if(this.group){let
n=null;for(let s=0;s<this.options.length;s++){let
r=this.getOptionGroupChildren(this.options[s]);if(r&&(n=this.searchLabelByValue(e,r),n))break}return
n}return this.searchLabelByValue(e,this.options)}searchLabelByValue(e,n){let
s=null;for(let r=0;r<n.length;r++){let
o=n[r],u=this.getOptionValue(o);if(null==e&&null==u||Z.equals(e,u,this.dataKey)){s=this.getOptionLabel(o);break}}return
s}get allChecked(){let e=this.optionsToRender;if(!e||0===e.length)return!1;{l
et n=0,s=0,r=0,o=this.group?0:this.optionsToRender.length;for(let u of
e)if(this.group)for(let h of this.getOptionGroupChildren(u)){let
b=this.isOptionDisabled(h),y=this.isSelected(h);if(b)y?n++:s++;else{if(!y)return!1;r++}o++}else{let
h=this.isOptionDisabled(u),b=this.isSelected(u);if(h)b?n++:s++;else{if(!b)return!1;r++}}return
o===n||o===r||r&&o===r+s+n}}get optionsToRender(){return
this._filteredOptions||this.options}get emptyOptions(){let
e=this.optionsToRender;return!e||0===e.length}get emptyMessageLabel(){return
this.emptyMessage||this.config.getTranslation(Ft.EMPTY_MESSAGE)}get
emptyFilterMessageLabel(){return
this.emptyFilterMessage||this.config.getTranslation(Ft.EMPTY_FILTER_MESSAGE)}hasFilter(){return
this._filterValue&&this._filterValue.trim().length>0}onFilterInputChange(e){this._filterValue=e.target.value,this.activateFilter(),this.onFilter.emit({originalEvent:e,filter:this._filterValue}),this.cd.detectChanges(),this.alignOverlay()}activateFilter(){if(this.hasFilter()&&
this._options){let
e=(this.filterBy||this.optionLabel||"label").split(",");if(this.group){let
n=[];for(let s of this.options){let
r=this.filterService.filter(this.getOptionGroupChildren(s),e,this.filterValue,this.filterMatchMode,this.filterLocale);r&&r.length&&n.push(Object.assign(Object.assign({},s),{[this.optionGroupChildren]:r}))}this._filteredOptions=n}else
this._filteredOptions=this.filterService.filter(this.options,e,this._filterValue,this.filterMatchMode,this.filterLocale)}else
this._filteredOptions=null}onHeaderCheckboxFocus(){this.headerCheckboxFocus=!0}onHeaderCheckboxBlur(){this.headerCheckboxFocus=!1}bindDocumentClickListener(){this.documentClickListener||(this.documentClickListener=this.renderer.listen(this.el?this.el.nativeElement.ownerDocument:"document","click",n=>{!this.preventDocumentDefault&&this.isOutsideClicked(n)&&this.hide(),this.preventDocumentDefault=!1}))}unbindDocumentClickListener(){this.documentClickListener&&(this.documentClickListener(),this.documentCl
ickListener=null)}bindDocumentResizeListener(){this.documentResizeListener=this.onWindowResize.bind(this),window.addEventListener("resize",this.documentResizeListener)}unbindDocumentResizeListener(){this.documentResizeListener&&(window.removeEventListener("resize",this.documentResizeListener),this.documentResizeListener=null)}onWindowResize(){R.isAndroid()||this.hide()}bindScrollListener(){this.scrollHandler||(this.scrollHandler=new
Qs(this.containerViewChild.nativeElement,()=>{this.overlayVisible&&this.hide()})),this.scrollHandler.bindScrollListener()}unbindScrollListener(){this.scrollHandler&&this.scrollHandler.unbindScrollListener()}onOverlayHide(){this.unbindDocumentClickListener(),this.unbindDocumentResizeListener(),this.unbindScrollListener(),this.overlay=null,this.onModelTouched()}ngOnDestroy(){this.scrollHandler&&(this.scrollHandler.destroy(),this.scrollHandler=null),this.overlay&&dt.clear(this.overlay),this.restoreOverlayAppend(),this.onOverlayHide()}}return
t.\u0275fac=fun
ction(e){return
new(e||t)(D(De),D(gn),D(rt),D(hl),D(zn),D(Ks))},t.\u0275cmp=z({type:t,selectors:[["p-multiSelect"]],contentQueries:function(e,n,s){if(1&e&&(st(s,fl,5),st(s,Oo,5),st(s,ne,4)),2&e){let
r;V(r=B())&&(n.footerFacet=r.first),V(r=B())&&(n.headerFacet=r.first),V(r=B())&&(n.templates=r)}},viewQuery:function(e,n){if(1&e&&(W(Vz,5),W(Bz,5),W(Hz,5)),2&e){let
s;V(s=B())&&(n.containerViewChild=s.first),V(s=B())&&(n.filterInputChild=s.first),V(s=B())&&(n.accessibleViewChild=s.first)}},hostAttrs:[1,"p-element","p-inputwrapper"],hostVars:6,hostBindings:function(e,n){2&e&&si("p-inputwrapper-filled",n.filled)("p-inputwrapper-focus",n.focus||n.overlayVisible)("p-multiselect-clearable",n.showClear&&!n.disabled)},inputs:{style:"style",styleClass:"styleClass",panelStyle:"panelStyle",panelStyleClass:"panelStyleClass",inputId:"inputId",disabled:"disabled",readonly:"readonly",group:"group",filter:"filter",filterPlaceHolder:"filterPlaceHolder",filterLocale:"filterLocale",overlayVisible:"overlay
Visible",tabindex:"tabindex",appendTo:"appendTo",dataKey:"dataKey",name:"name",label:"label",ariaLabelledBy:"ariaLabelledBy",displaySelectedLabel:"displaySelectedLabel",maxSelectedLabels:"maxSelectedLabels",selectionLimit:"selectionLimit",selectedItemsLabel:"selectedItemsLabel",showToggleAll:"showToggleAll",emptyFilterMessage:"emptyFilterMessage",emptyMessage:"emptyMessage",resetFilterOnHide:"resetFilterOnHide",dropdownIcon:"dropdownIcon",optionLabel:"optionLabel",optionValue:"optionValue",optionDisabled:"optionDisabled",optionGroupLabel:"optionGroupLabel",optionGroupChildren:"optionGroupChildren",showHeader:"showHeader",autoZIndex:"autoZIndex",baseZIndex:"baseZIndex",filterBy:"filterBy",virtualScroll:"virtualScroll",itemSize:"itemSize",showTransitionOptions:"showTransitionOptions",hideTransitionOptions:"hideTransitionOptions",ariaFilterLabel:"ariaFilterLabel",filterMatchMode:"filterMatchMode",tooltip:"tooltip",tooltipPosition:"tooltipPosition",tooltipPositionStyle:"tooltipPositionS
tyle",tooltipStyleClass:"tooltipStyleClass",autofocusFilter:"autofocusFilter",display:"display",autocomplete:"autocomplete",showClear:"showClear",scrollHeight:"scrollHeight",defaultLabel:"defaultLabel",placeholder:"placeholder",options:"options",filterValue:"filterValue"},outputs:{onChange:"onChange",onFilter:"onFilter",onFocus:"onFocus",onBlur:"onBlur",onClick:"onClick",onClear:"onClear",onPanelShow:"onPanelShow",onPanelHide:"onPanelHide"},features:[Pe([Lj])],ngContentSelectors:Rj,decls:13,vars:34,consts:[[3,"ngClass","ngStyle","click"],["container",""],[1,"p-hidden-accessible"],["type","text","readonly","readonly","aria-haspopup","listbox","role","listbox",3,"disabled","focus","blur","keydown"],["in",""],[1,"p-multiselect-label-container",3,"pTooltip","tooltipPosition","positionStyle","tooltipStyleClass"],[1,"p-multiselect-label",3,"ngClass"],[4,"ngIf"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],["class","p-multiselect-clear-icon
pi pi-times",3,"click",4,"ngIf"],[3,"ngClass"
],[1,"p-multiselect-trigger-icon",3,"ngClass"],["onOverlayAnimationEnd","",3,"ngClass","ngStyle","class","keydown","click",4,"ngIf"],["class","p-multiselect-token",4,"ngFor","ngForOf"],[1,"p-multiselect-token"],["token",""],[1,"p-multiselect-token-label"],["class","p-multiselect-token-icon
pi
pi-times-circle",3,"click",4,"ngIf"],[1,"p-multiselect-token-icon","pi","pi-times-circle",3,"click"],[1,"p-multiselect-clear-icon","pi","pi-times",3,"click"],["onOverlayAnimationEnd","",3,"ngClass","ngStyle","keydown","click"],["class","p-multiselect-header",4,"ngIf"],[1,"p-multiselect-items-wrapper"],["role","listbox","aria-multiselectable","true",1,"p-multiselect-items","p-component",3,"ngClass"],["itemslist",""],["class","p-multiselect-footer",4,"ngIf"],[1,"p-multiselect-header"],[4,"ngTemplateOutlet"],["class","p-checkbox
p-component",3,"ngClass",4,"ngIf"],["class","p-multiselect-filter-container",4,"ngIf"],["type","button","pRipple","",1,"p-multiselect-close","p-link",3,"click"],[1,"p-mult
iselect-close-icon","pi","pi-times"],[1,"p-checkbox","p-component",3,"ngClass"],["type","checkbox","readonly","readonly",3,"checked","disabled","focus","blur","keydown.space"],["role","checkbox",1,"p-checkbox-box",3,"ngClass","click"],[1,"p-checkbox-icon",3,"ngClass"],[1,"p-multiselect-filter-container"],["type","text","role","textbox",1,"p-multiselect-filter","p-inputtext","p-component",3,"value","disabled","input"],["filterInput",""],[1,"p-multiselect-filter-icon","pi","pi-search"],["ngFor","",3,"ngForOf"],[1,"p-multiselect-item-group"],[4,"ngIf","ngIfElse"],["virtualScrollList",""],["class","p-multiselect-empty-message",4,"ngIf"],[3,"option","selected","label","disabled","template","onClick","onKeydown"],[3,"ngStyle","itemSize",4,"ngIf"],[3,"ngStyle","itemSize"],["viewport",""],[4,"cdkVirtualFor","cdkVirtualForOf"],[3,"option","selected","label","disabled","template","itemSize","onClick","onKeydown"],[1,"p-multiselect-empty-message"],["emptyFilter",""],["empty",""],[1,"p-multisel
ect-footer"]],template:function(e,n){if(1&e){const
s=I();Sn(Mj),l(0,"div",0,1),C("click",function(o){v(s);const
u=F(4);return
n.onMouseclick(o,u)}),l(2,"div",2)(3,"input",3,4),C("focus",function(o){return
n.onInputFocus(o)})("blur",function(o){return
n.onInputBlur(o)})("keydown",function(o){return
n.onKeydown(o)}),c()(),l(5,"div",5)(6,"div",6),_(7,$z,3,2,"ng-container",7),_(8,Wz,1,0,"ng-container",8),c(),_(9,Kz,1,0,"i",9),c(),l(10,"div",10),k(11,"span",11),c(),_(12,Dj,9,20,"div",12),c()}2&e&&(me(n.styleClass),p("ngClass",qn(23,kj,n.overlayVisible,"chip"===n.display,n.focus,n.disabled))("ngStyle",n.style),a(3),p("disabled",n.disabled),ie("label",n.label)("id",n.inputId)("name",n.name)("tabindex",n.tabindex)("aria-expanded",n.overlayVisible)("aria-labelledby",n.ariaLabelledBy),a(2),p("pTooltip",n.tooltip)("tooltipPosition",n.tooltipPosition)("positionStyle",n.tooltipPositionStyle)("tooltipStyleClass",n.tooltipStyleClass),a(1),p("ngClass",Ge(28,Ij,n.valuesAsString===(n.defaultLabel||n.
placeholder),!(null!=n.valuesAsString&&0!==n.valuesAsString.length||null!=n.placeholder&&0!==n.placeholder.length))),a(1),p("ngIf",!n.selectedItemsTemplate),a(1),p("ngTemplateOutlet",n.selectedItemsTemplate)("ngTemplateOutletContext",U(31,Rl,n.value)),a(1),p("ngIf",null!=n.value&&n.filled&&!n.disabled&&n.showClear),a(1),p("ngClass",A(33,Ej)),a(1),p("ngClass",n.dropdownIcon),a(1),p("ngIf",n.overlayVisible))},directives:[Oj,Po,Le,lt,Kt,Q,at,Rt,bt,Qf,Jf],styles:[".p-multiselect{display:inline-flex;cursor:pointer;position:relative;-webkit-user-select:none;user-select:none}.p-multiselect-trigger{display:flex;align-items:center;justify-content:center;flex-shrink:0}.p-multiselect-label-container{overflow:hidden;flex:1
1
auto;cursor:pointer}.p-multiselect-label{display:block;white-space:nowrap;cursor:pointer;overflow:hidden;text-overflow:ellipsis}.p-multiselect-label-empty{overflow:hidden;visibility:hidden}.p-multiselect-token{cursor:default;display:inline-flex;align-items:center;flex:0
0 a
uto}.p-multiselect-token-icon{cursor:pointer}.p-multiselect
.p-multiselect-panel{min-width:100%}.p-multiselect-panel{position:absolute;top:0;left:0}.p-multiselect-items-wrapper{overflow:auto}.p-multiselect-items{margin:0;padding:0;list-style-type:none}.p-multiselect-item{cursor:pointer;display:flex;align-items:center;font-weight:400;white-space:nowrap;position:relative;overflow:hidden}.p-multiselect-header{display:flex;align-items:center;justify-content:space-between}.p-multiselect-filter-container{position:relative;flex:1
1
auto}.p-multiselect-filter-icon{position:absolute;top:50%;margin-top:-.5rem}.p-multiselect-filter-container
.p-inputtext{width:100%}.p-multiselect-close{display:flex;align-items:center;justify-content:center;flex-shrink:0;overflow:hidden;position:relative}.p-fluid
.p-multiselect{display:flex}.p-multiselect-clear-icon{position:absolute;top:50%;margin-top:-.5rem;cursor:pointer}.p-multiselect-clearable{position:relative}\n"],encapsulation:2,data:{animation:[wi("ove
rlayAnimation",[Lt(":enter",[it({opacity:0,transform:"scaleY(0.8)"}),kt("{{showTransitionParams}}")]),Lt(":leave",[kt("{{hideTransitionParams}}",it({opacity:0}))])])]},changeDetection:0}),t})(),Aj=(()=>{class
t{}return t.\u0275fac=function(e){return
new(e||t)},t.\u0275mod=he({type:t}),t.\u0275inj=ue({imports:[[Fe,Nt,Fo,jn,pn],Nt,Fo]}),t})(),e$=(()=>{class
t{}return t.\u0275fac=function(e){return
new(e||t)},t.\u0275mod=he({type:t}),t.\u0275inj=ue({imports:[[Fe,vn,jn],vn,jn]}),t})(),tS=(()=>{class
t{constructor(e,n,s,r){this.el=e,this.ngModel=n,this.control=s,this.cd=r,this.onResize=new
H}ngOnInit(){this.ngModel&&(this.ngModelSubscription=this.ngModel.valueChanges.subscribe(()=>{this.updateState()})),this.control&&(this.ngControlSubscription=this.control.valueChanges.subscribe(()=>{this.updateState()}))}ngAfterViewInit(){this.autoResize&&this.resize(),this.updateFilledState(),this.cd.detectChanges()}onInput(e){this.updateState()}updateFilledState(){this.filled=this.el.nativeElement.va
lue&&this.el.nativeElement.value.length}onFocus(e){this.autoResize&&this.resize(e)}onBlur(e){this.autoResize&&this.resize(e)}resize(e){this.el.nativeElement.style.height="auto",this.el.nativeElement.style.height=this.el.nativeElement.scrollHeight+"px",parseFloat(this.el.nativeElement.style.height)>=parseFloat(this.el.nativeElement.style.maxHeight)?(this.el.nativeElement.style.overflowY="scroll",this.el.nativeElement.style.height=this.el.nativeElement.style.maxHeight):this.el.nativeElement.style.overflow="hidden",this.onResize.emit(e||{})}updateState(){this.updateFilledState(),this.autoResize&&this.resize()}ngOnDestroy(){this.ngModelSubscription&&this.ngModelSubscription.unsubscribe(),this.ngControlSubscription&&this.ngControlSubscription.unsubscribe()}}return
t.\u0275fac=function(e){return
new(e||t)(D(De),D(_e,8),D(ss,8),D(rt))},t.\u0275dir=le({type:t,selectors:[["","pInputTextarea",""]],hostAttrs:[1,"p-inputtextarea","p-inputtext","p-component","p-element"],hostVars:4,hostBindings:
function(e,n){1&e&&C("input",function(r){return
n.onInput(r)})("focus",function(r){return
n.onFocus(r)})("blur",function(r){return
n.onBlur(r)}),2&e&&si("p-filled",n.filled)("p-inputtextarea-resizable",n.autoResize)},inputs:{autoResize:"autoResize"},outputs:{onResize:"onResize"}}),t})(),t$=(()=>{class
t{}return t.\u0275fac=function(e){return
new(e||t)},t.\u0275mod=he({type:t}),t.\u0275inj=ue({imports:[[Fe]]}),t})();const
n$=["sublist"],i$=function(t){return{"p-hidden":t}};function
s$(t,i){if(1&t&&k(0,"li",5),2&t){const
e=d().$implicit;p("ngClass",U(1,i$,!1===e.visible))}}function
r$(t,i){if(1&t&&k(0,"span",16),2&t){const
e=d(3).$implicit;p("ngClass",e.icon)("ngStyle",e.iconStyle)}}function
o$(t,i){if(1&t&&(l(0,"span",17),g(1),c()),2&t){const
e=d(3).$implicit;a(1),S(e.label)}}function
a$(t,i){1&t&&k(0,"span",18),2&t&&p("innerHTML",d(3).$implicit.label,Bt)}function
l$(t,i){1&t&&k(0,"span",19)}const
nS=function(t){return{"p-menuitem-link":!0,"p-disabled":t}};function
c$(t,i){if(1&t){co
nst e=I();l(0,"a",11),C("keydown",function(s){v(e);const
r=d(2).$implicit;return d().onItemKeyDown(s,r)})("click",function(s){v(e);const
r=d(2).$implicit;return
d().onItemClick(s,r)})("mouseenter",function(s){v(e);const
r=d(2).$implicit;return
d().onItemMouseEnter(s,r)}),_(1,r$,1,2,"span",12),_(2,o$,2,1,"span",13),_(3,a$,1,1,"ng-template",null,14,we),_(5,l$,1,0,"span",15),c()}if(2&t){const
e=F(4),n=d(2).$implicit,s=d();p("target",n.target)("ngClass",U(13,nS,n.disabled)),ie("href",n.url,ln)("data-automationid",n.automationId)("title",n.title)("id",n.id)("tabindex",n.disabled?null:"0")("aria-haspopup",null!=s.item.items)("aria-expanded",s.item===s.activeItem),a(1),p("ngIf",n.icon),a(1),p("ngIf",!1!==n.escape)("ngIfElse",e),a(3),p("ngIf",n.items)}}function
u$(t,i){if(1&t&&k(0,"span",16),2&t){const
e=d(3).$implicit;p("ngClass",e.icon)("ngStyle",e.iconStyle)}}function
d$(t,i){if(1&t&&(l(0,"span",17),g(1),c()),2&t){const
e=d(3).$implicit;a(1),S(e.label)}}function
p$(t,i){1&t&&k(0,"span",1
8),2&t&&p("innerHTML",d(3).$implicit.label,Bt)}function
h$(t,i){1&t&&k(0,"span",19)}const
m$=function(){return{exact:!1}};function f$(t,i){if(1&t){const
e=I();l(0,"a",20),C("keydown",function(s){v(e);const
r=d(2).$implicit;return d().onItemKeyDown(s,r)})("click",function(s){v(e);const
r=d(2).$implicit;return
d().onItemClick(s,r)})("mouseenter",function(s){v(e);const
r=d(2).$implicit;return
d().onItemMouseEnter(s,r)}),_(1,u$,1,2,"span",12),_(2,d$,2,1,"span",13),_(3,p$,1,1,"ng-template",null,21,we),_(5,h$,1,0,"span",15),c()}if(2&t){const
e=F(4),n=d(2).$implicit;p("routerLink",n.routerLink)("queryParams",n.queryParams)("routerLinkActive","p-menuitem-link-active")("routerLinkActiveOptions",n.routerLinkActiveOptions||A(20,m$))("target",n.target)("ngClass",U(21,nS,n.disabled))("fragment",n.fragment)("queryParamsHandling",n.queryParamsHandling)("preserveFragment",n.preserveFragment)("skipLocationChange",n.skipLocationChange)("replaceUrl",n.replaceUrl)("state",n.state),ie("data-automationid
",n.automationId)("title",n.title)("id",n.id)("tabindex",n.disabled?null:"0"),a(1),p("ngIf",n.icon),a(1),p("ngIf",!1!==n.escape)("ngIfElse",e),a(3),p("ngIf",n.items)}}function
g$(t,i){if(1&t){const
e=I();l(0,"p-tieredMenuSub",22),C("keydownItem",function(s){return
v(e),d(3).onChildItemKeyDown(s)})("leafClick",function(){return
v(e),d(3).onLeafClick()}),c()}if(2&t){const
e=d(2).$implicit,n=d();p("parentActive",e===n.activeItem)("item",e)("mobileActive",n.mobileActive)("autoDisplay",n.autoDisplay)("popup",n.popup)}}const
_$=function(t,i){return{"p-menuitem":!0,"p-menuitem-active":t,"p-hidden":i}};function
b$(t,i){if(1&t&&(l(0,"li",6,7),_(2,c$,6,15,"a",8),_(3,f$,6,23,"a",9),_(4,g$,1,5,"p-tieredMenuSub",10),c()),2&t){const
e=d().$implicit,n=d();me(e.styleClass),p("ngClass",Ge(8,_$,e===n.activeItem,!1===e.visible))("ngStyle",e.style)("tooltipOptions",e.tooltipOptions),a(2),p("ngIf",!e.routerLink),a(1),p("ngIf",e.routerLink),a(1),p("ngIf",e.items)}}function
v$(t,i){if(1&t&&(_(0,s$,1,3,"li
",3),_(1,b$,5,11,"li",4)),2&t){const
e=i.$implicit;p("ngIf",e.separator),a(1),p("ngIf",!e.separator)}}const
C$=function(t){return{"p-submenu-list":t}},y$=function(t){return{"p-tieredmenu
p-component":!0,"p-tieredmenu-overlay":t}},w$=function(t,i){return{showTransitionParams:t,hideTransitionParams:i}},T$=function(t){return{value:"visible",params:t}};function
S$(t,i){if(1&t){const
e=I();l(0,"div",1),C("click",function(s){return
v(e),d().onOverlayClick(s)})("(a)overlayAnimation.start",function(s){return
v(e),d().onOverlayAnimationStart(s)})("(a)overlayAnimation.done",function(s){return
v(e),d().onOverlayAnimationEnd(s)}),l(1,"p-tieredMenuSub",2),C("leafClick",function(){return
v(e),d().onLeafClick()}),c()()}if(2&t){const
e=d();me(e.styleClass),p("ngClass",U(12,y$,e.popup))("ngStyle",e.style)("@overlayAnimation",U(17,T$,Ge(14,w$,e.showTransitionOptions,e.hideTransitionOptions)))("@.disabled",!0!==e.popup),a(1),p("item",e.model)("parentActive",e.parentActive)("baseZIndex",e.baseZIndex)("auto
ZIndex",e.autoZIndex)("autoDisplay",e.autoDisplay)("popup",e.popup)}}let
x$=(()=>{class
t{constructor(e,n,s){this.el=e,this.renderer=n,this.cd=s,this.autoZIndex=!0,this.baseZIndex=0,this.leafClick=new
H,this.keydownItem=new H,this.menuHoverActive=!1}get parentActive(){return
this._parentActive}set
parentActive(e){this.root||(this._parentActive=e,e?this.positionSubmenu():this.activeItem=null)}onItemClick(e,n){n.disabled?e.preventDefault():(!n.url&&!n.routerLink&&e.preventDefault(),n.command&&n.command({originalEvent:e,item:n}),n.items&&(this.activeItem&&n===this.activeItem?(this.activeItem=null,this.unbindDocumentClickListener()):(this.activeItem=n,this.root&&this.bindDocumentClickListener())),n.items||this.onLeafClick())}onItemMouseEnter(e,n){n.disabled||this.mobileActive?e.preventDefault():this.root?(this.activeItem||this.autoDisplay||this.popup)&&(this.activeItem=n,this.bindDocumentClickListener()):(this.activeItem=n,this.bindDocumentClickListener())}onLeafClick(){this.activeItem=
null,this.root&&this.unbindDocumentClickListener(),this.leafClick.emit()}onItemKeyDown(e,n){let
s=e.currentTarget.parentElement;switch(e.key){case"ArrowDown":var
r=this.findNextItem(s);r&&r.children[0].focus(),e.preventDefault();break;case"ArrowUp":var
o=this.findPrevItem(s);o&&o.children[0].focus(),e.preventDefault();break;case"ArrowRight":n.items&&(this.activeItem=n,this.root&&this.bindDocumentClickListener(),setTimeout(()=>{s.children[1].children[0].children[0].children[0].focus()},50)),e.preventDefault()}this.keydownItem.emit({originalEvent:e,element:s})}positionSubmenu(){let
e=this.sublistViewChild&&this.sublistViewChild.nativeElement;if(e){const
n=e.parentElement.parentElement,s=R.getOffset(n),r=R.getViewport(),o=e.offsetParent?e.offsetWidth:R.getHiddenElementOuterWidth(e),u=R.getOuterWidth(n.children[0]);parseInt(s.left,10)+u+o>r.width-R.calculateScrollbarWidth()&&R.addClass(e,"p-submenu-list-flipped")}}findNextItem(e){let
n=e.nextElementSibling;return n?R.hasClass(n,"p-disab
led")||!R.hasClass(n,"p-menuitem")?this.findNextItem(n):n:null}findPrevItem(e){let
n=e.previousElementSibling;return
n?R.hasClass(n,"p-disabled")||!R.hasClass(n,"p-menuitem")?this.findPrevItem(n):n:null}onChildItemKeyDown(e){"ArrowLeft"===e.originalEvent.key&&(this.activeItem=null,this.root&&this.unbindDocumentClickListener(),e.element.parentElement.parentElement.parentElement.children[0].focus())}bindDocumentClickListener(){this.documentClickListener||(this.documentClickListener=e=>{this.el&&!this.el.nativeElement.contains(e.target)&&(this.activeItem=null,this.cd.markForCheck(),this.unbindDocumentClickListener())},document.addEventListener("click",this.documentClickListener))}unbindDocumentClickListener(){this.documentClickListener&&(document.removeEventListener("click",this.documentClickListener),this.documentClickListener=null)}ngOnDestroy(){this.unbindDocumentClickListener()}}return
t.\u0275fac=function(e){return
new(e||t)(D(De),D(gn),D(rt))},t.\u0275cmp=z({type:t,selectors:[["p
-tieredMenuSub"]],viewQuery:function(e,n){if(1&e&&W(n$,5),2&e){let
s;V(s=B())&&(n.sublistViewChild=s.first)}},hostAttrs:[1,"p-element"],inputs:{item:"item",root:"root",autoDisplay:"autoDisplay",autoZIndex:"autoZIndex",baseZIndex:"baseZIndex",mobileActive:"mobileActive",popup:"popup",parentActive:"parentActive"},outputs:{leafClick:"leafClick",keydownItem:"keydownItem"},decls:3,vars:4,consts:[[3,"ngClass"],["sublist",""],["ngFor","",3,"ngForOf"],["class","p-menu-separator",3,"ngClass",4,"ngIf"],["pTooltip","",3,"ngClass","ngStyle","class","tooltipOptions",4,"ngIf"],[1,"p-menu-separator",3,"ngClass"],["pTooltip","",3,"ngClass","ngStyle","tooltipOptions"],["listItem",""],["pRipple","",3,"target","ngClass","keydown","click","mouseenter",4,"ngIf"],["role","menuitem","pRipple","",3,"routerLink","queryParams","routerLinkActive","routerLinkActiveOptions","target","ngClass","fragment","queryParamsHandling","preserveFragment","skipLocationChange","replaceUrl","state","keydown","click","mouseen
ter",4,"ngIf"],[3,"parentActive","item","mobileActive","autoDisplay","popup","keydownItem","leafClick",4,"ngIf"],["pRipple","",3,"target","ngClass","keydown","click","mouseenter"],["class","p-menuitem-icon",3,"ngClass","ngStyle",4,"ngIf"],["class","p-menuitem-text",4,"ngIf","ngIfElse"],["htmlLabel",""],["class","p-submenu-icon
pi
pi-angle-right",4,"ngIf"],[1,"p-menuitem-icon",3,"ngClass","ngStyle"],[1,"p-menuitem-text"],[1,"p-menuitem-text",3,"innerHTML"],[1,"p-submenu-icon","pi","pi-angle-right"],["role","menuitem","pRipple","",3,"routerLink","queryParams","routerLinkActive","routerLinkActiveOptions","target","ngClass","fragment","queryParamsHandling","preserveFragment","skipLocationChange","replaceUrl","state","keydown","click","mouseenter"],["htmlRouteLabel",""],[3,"parentActive","item","mobileActive","autoDisplay","popup","keydownItem","leafClick"]],template:function(e,n){1&e&&(l(0,"ul",0,1),_(2,v$,2,2,"ng-template",2),c()),2&e&&(p("ngClass",U(2,C$,!n.root)),a(2),p("ngForOf",n.r
oot?n.item:n.item.items))},directives:[t,Le,at,Q,Kt,lt,bt,Ho,_d],encapsulation:2}),t})(),D$=(()=>{class
t{constructor(e,n,s,r,o){this.el=e,this.renderer=n,this.cd=s,this.config=r,this.overlayService=o,this.autoZIndex=!0,this.baseZIndex=0,this.showTransitionOptions=".12s
cubic-bezier(0, 0, 0.2, 1)",this.hideTransitionOptions=".1s
linear"}toggle(e){this.visible?this.hide():this.show(e),this.preventDocumentDefault=!0}show(e){this.target=e.currentTarget,this.relativeAlign=e.relativeAlign,this.visible=!0,this.parentActive=!0,this.preventDocumentDefault=!0,this.cd.markForCheck()}onOverlayClick(e){this.popup&&this.overlayService.add({originalEvent:e,target:this.el.nativeElement}),this.preventDocumentDefault=!0}onOverlayAnimationStart(e){switch(e.toState){case"visible":this.popup&&(this.container=e.element,this.moveOnTop(),this.appendOverlay(),this.alignOverlay(),this.bindDocumentClickListener(),this.bindDocumentResizeListener(),this.bindScrollListener());break;case"void":this.onOverlayHide
()}}alignOverlay(){this.relativeAlign?R.relativePosition(this.container,this.target):R.absolutePosition(this.container,this.target)}onOverlayAnimationEnd(e){"void"===e.toState&&dt.clear(e.element)}appendOverlay(){this.appendTo&&("body"===this.appendTo?document.body.appendChild(this.container):R.appendChild(this.container,this.appendTo))}restoreOverlayAppend(){this.container&&this.appendTo&&this.el.nativeElement.appendChild(this.container)}moveOnTop(){this.autoZIndex&&dt.set("menu",this.container,this.baseZIndex+this.config.zIndex.menu)}hide(){this.visible=!1,this.relativeAlign=!1,this.parentActive=!1,this.cd.markForCheck()}onWindowResize(){this.hide()}onLeafClick(){this.popup&&this.hide(),this.unbindDocumentClickListener()}bindDocumentClickListener(){this.documentClickListener||(this.documentClickListener=this.renderer.listen(this.el?this.el.nativeElement.ownerDocument:"document","click",()=>{!this.preventDocumentDefault&&this.popup&&this.hide(),this.preventDocumentDefault=!1}))}unb
indDocumentClickListener(){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.documentResizeListener),this.documentResizeListener=null)}bindScrollListener(){this.scrollHandler||(this.scrollHandler=new
Qs(this.target,()=>{this.visible&&this.hide()})),this.scrollHandler.bindScrollListener()}unbindScrollListener(){this.scrollHandler&&this.scrollHandler.unbindScrollListener()}onOverlayHide(){this.unbindDocumentClickListener(),this.unbindDocumentResizeListener(),this.unbindScrollListener(),this.preventDocumentDefault=!1,this.cd.destroyed||(this.target=null)}ngOnDestroy(){this.popup&&(this.scrollHandler&&(this.scrollHandler.destroy(),this.scrollHandler=null),this.container&&this.autoZIndex&&dt.clear(th
is.container),this.restoreOverlayAppend(),this.onOverlayHide())}}return
t.\u0275fac=function(e){return
new(e||t)(D(De),D(gn),D(rt),D(zn),D(Ks))},t.\u0275cmp=z({type:t,selectors:[["p-tieredMenu"]],hostAttrs:[1,"p-element"],inputs:{model:"model",popup:"popup",style:"style",styleClass:"styleClass",appendTo:"appendTo",autoZIndex:"autoZIndex",baseZIndex:"baseZIndex",autoDisplay:"autoDisplay",showTransitionOptions:"showTransitionOptions",hideTransitionOptions:"hideTransitionOptions"},decls:1,vars:1,consts:[[3,"ngClass","class","ngStyle","click",4,"ngIf"],[3,"ngClass","ngStyle","click"],["root","root",3,"item","parentActive","baseZIndex","autoZIndex","autoDisplay","popup","leafClick"]],template:function(e,n){1&e&&_(0,S$,2,19,"div",0),2&e&&p("ngIf",!n.popup||n.visible)},directives:[x$,Q,Le,lt],styles:[".p-tieredmenu-overlay{position:absolute;top:0;left:0}.p-tieredmenu
ul{margin:0;padding:0;list-style:none}.p-tieredmenu
.p-submenu-list{position:absolute;min-width:100%;z-index:1;display:none}
.p-tieredmenu
.p-menuitem-link{cursor:pointer;display:flex;align-items:center;text-decoration:none;overflow:hidden;position:relative}.p-tieredmenu
.p-menuitem-text{line-height:1}.p-tieredmenu .p-menuitem{position:relative}.p-tieredmenu
.p-menuitem-link .p-submenu-icon{margin-left:auto}.p-tieredmenu
.p-menuitem-active>p-tieredmenusub>.p-submenu-list{display:block;left:100%;top:0}.p-tieredmenu
.p-menuitem-active>p-tieredmenusub>.p-submenu-list.p-submenu-list-flipped{left:-100%}\n"],encapsulation:2,data:{animation:[wi("overlayAnimation",[Lt(":enter",[it({opacity:0,transform:"scaleY(0.8)"}),kt("{{showTransitionParams}}")]),Lt(":leave",[kt("{{hideTransitionParams}}",it({opacity:0}))])])]},changeDetection:0}),t})(),M$=(()=>{class
t{}return t.\u0275fac=function(e){return
new(e||t)},t.\u0275mod=he({type:t}),t.\u0275inj=ue({imports:[[Fe,vn,pn,jn],vn,jn]}),t})(),k$=(()=>{class
t{}return t.\u0275fac=function(e){return
new(e||t)},t.\u0275mod=he({type:t}),t.\u0275inj=ue({imports:[sN,gl,cT,_5,S5,
Q6,T7,D7,Zu,G7,Xu,TB,m9,y9,A9,G9,J9,Y9,pn,iq,sq,hq,kU,BU,GU,jn,JU,nz,cz,Oz,Aj,e$,t$,M$]}),t})();const
I$=["pMenuItemContent",""];function
E$(t,i){if(1&t&&k(0,"span",6),2&t){const
e=d(2);me(e.item.iconClass),p("ngClass",e.item.icon)("ngStyle",e.item.iconStyle)}}function
R$(t,i){if(1&t&&(l(0,"span",7),g(1),c()),2&t){const
e=d(2);a(1),S(e.item.label)}}function
L$(t,i){1&t&&k(0,"span",8),2&t&&p("innerHTML",d(2).item.label,Bt)}const
iS=function(t){return{"p-disabled":t}};function O$(t,i){if(1&t){const
e=I();l(0,"a",2),C("keydown",function(s){return
v(e),d().onItemKeyDown(s)})("click",function(s){v(e);const r=d();return
r.menu.itemClick(s,r.item)}),_(1,E$,1,4,"span",3),_(2,R$,2,1,"span",4),_(3,L$,1,1,"ng-template",null,5,we),c()}if(2&t){const
e=F(4),n=d();p("target",n.item.target)("ngClass",U(11,iS,n.item.disabled))("target",n.item.target),ie("href",n.item.url||null,ln)("tabindex",n.item.disabled?null:"0")("data-automationid",n.item.automationId)("title",n.item.title)("id",n.item.id),a(1)
,p("ngIf",n.item.icon),a(1),p("ngIf",!1!==n.item.escape)("ngIfElse",e)}}function
A$(t,i){1&t&&k(0,"span",12),2&t&&p("ngClass",d(2).item.icon)}function
P$(t,i){if(1&t&&(l(0,"span",7),g(1),c()),2&t){const
e=d(2);a(1),S(e.item.label)}}function
F$(t,i){1&t&&k(0,"span",8),2&t&&p("innerHTML",d(2).item.label,Bt)}const
N$=function(){return{exact:!1}};function V$(t,i){if(1&t){const
e=I();l(0,"a",9),C("keydown",function(s){return
v(e),d().onItemKeyDown(s)})("click",function(s){v(e);const r=d();return
r.menu.itemClick(s,r.item)}),_(1,A$,1,1,"span",10),_(2,P$,2,1,"span",4),_(3,F$,1,1,"ng-template",null,11,we),c()}if(2&t){const
e=F(4),n=d();p("routerLink",n.item.routerLink)("queryParams",n.item.queryParams)("routerLinkActive","p-menuitem-link-active")("routerLinkActiveOptions",n.item.routerLinkActiveOptions||A(19,N$))("target",n.item.target)("ngClass",U(20,iS,n.item.disabled))("fragment",n.item.fragment)("queryParamsHandling",n.item.queryParamsHandling)("preserveFragment",n.item.preserveFragment
)("skipLocationChange",n.item.skipLocationChange)("replaceUrl",n.item.replaceUrl)("state",n.item.state),ie("data-automationid",n.item.automationId)("id",n.item.id)("tabindex",n.item.disabled?null:"0")("title",n.item.title),a(1),p("ngIf",n.item.icon),a(1),p("ngIf",!1!==n.item.escape)("ngIfElse",e)}}const
B$=["container"],Uo=function(t){return{"p-hidden":t}};function
H$(t,i){if(1&t&&k(0,"li",8),2&t){const
e=d().$implicit;p("ngClass",U(1,Uo,!1===e.visible))}}function
q$(t,i){if(1&t&&(l(0,"span"),g(1),c()),2&t){const
e=d(2).$implicit;a(1),S(e.label)}}function
G$(t,i){1&t&&k(0,"span",12),2&t&&p("innerHTML",d(2).$implicit.label,Bt)}function
U$(t,i){if(1&t&&(l(0,"li",9),_(1,q$,2,1,"span",10),_(2,G$,1,1,"ng-template",null,11,we),c()),2&t){const
e=F(3),n=d().$implicit;p("ngClass",U(5,Uo,!1===n.visible))("tooltipOptions",n.tooltipOptions),ie("data-automationid",n.automationId),a(1),p("ngIf",!1!==n.escape)("ngIfElse",e)}}function
z$(t,i){if(1&t&&k(0,"li",8),2&t){const
e=d().$implicit,n=d().$im
plicit;p("ngClass",U(1,Uo,!1===e.visible||!1===n.visible))}}function
j$(t,i){if(1&t&&k(0,"li",14),2&t){const
e=d().$implicit,n=d().$implicit;me(e.styleClass),p("pMenuItemContent",e)("ngClass",U(6,Uo,!1===e.visible||!1===n.visible))("ngStyle",e.style)("tooltipOptions",e.tooltipOptions)}}function
$$(t,i){if(1&t&&(_(0,z$,1,3,"li",6),_(1,j$,1,8,"li",13)),2&t){const
e=i.$implicit;p("ngIf",e.separator),a(1),p("ngIf",!e.separator)}}function
W$(t,i){if(1&t&&(_(0,H$,1,3,"li",6),_(1,U$,4,7,"li",7),_(2,$$,2,2,"ng-template",5)),2&t){const
e=i.$implicit;p("ngIf",e.separator),a(1),p("ngIf",!e.separator),a(1),p("ngForOf",e.items)}}function
K$(t,i){1&t&&_(0,W$,3,3,"ng-template",5),2&t&&p("ngForOf",d(2).model)}function
Q$(t,i){if(1&t&&k(0,"li",8),2&t){const
e=d().$implicit;p("ngClass",U(1,Uo,!1===e.visible))}}function
J$(t,i){if(1&t&&k(0,"li",14),2&t){const
e=d().$implicit;me(e.styleClass),p("pMenuItemContent",e)("ngClass",U(6,Uo,!1===e.visible))("ngStyle",e.style)("tooltipOptions",e.tooltipOptions)
}}function
Y$(t,i){if(1&t&&(_(0,Q$,1,3,"li",6),_(1,J$,1,8,"li",13)),2&t){const
e=i.$implicit;p("ngIf",e.separator),a(1),p("ngIf",!e.separator)}}function
Z$(t,i){1&t&&_(0,Y$,2,2,"ng-template",5),2&t&&p("ngForOf",d(2).model)}const
X$=function(t){return{"p-menu
p-component":!0,"p-menu-overlay":t}},eW=function(t,i){return{showTransitionParams:t,hideTransitionParams:i}},tW=function(t){return{value:"visible",params:t}};function
nW(t,i){if(1&t){const
e=I();l(0,"div",1,2),C("click",function(s){return
v(e),d().onOverlayClick(s)})("(a)overlayAnimation.start",function(s){return
v(e),d().onOverlayAnimationStart(s)})("(a)overlayAnimation.done",function(s){return
v(e),d().onOverlayAnimationEnd(s)}),l(2,"ul",3),_(3,K$,1,1,null,4),_(4,Z$,1,1,null,4),c()()}if(2&t){const
e=d();me(e.styleClass),p("ngClass",U(8,X$,e.popup))("ngStyle",e.style)("@overlayAnimation",U(13,tW,Ge(10,eW,e.showTransitionOptions,e.hideTransitionOptions)))("@.disabled",!0!==e.popup),a(3),p("ngIf",e.hasSubMenu()),a(1),p("ngIf",!e.hasS
ubMenu())}}let iW=(()=>{class t{constructor(e){this.menu=e}onItemKeyDown(e){let
n=e.currentTarget.parentElement;switch(e.code){case"ArrowDown":var
s=this.findNextItem(n);s&&s.children[0].focus(),e.preventDefault();break;case"ArrowUp":var
r=this.findPrevItem(n);r&&r.children[0].focus(),e.preventDefault();break;case"Space":case"Enter":n&&!R.hasClass(n,"p-disabled")&&n.children[0].click(),e.preventDefault()}}findNextItem(e){let
n=e.nextElementSibling;return
n?R.hasClass(n,"p-disabled")||!R.hasClass(n,"p-menuitem")?this.findNextItem(n):n:null}findPrevItem(e){let
n=e.previousElementSibling;return
n?R.hasClass(n,"p-disabled")||!R.hasClass(n,"p-menuitem")?this.findPrevItem(n):n:null}}return
t.\u0275fac=function(e){return
new(e||t)(D(je(()=>sS)))},t.\u0275cmp=z({type:t,selectors:[["","pMenuItemContent",""]],hostAttrs:[1,"p-element"],inputs:{item:["pMenuItemContent","item"]},attrs:I$,decls:2,vars:2,consts:[["class","p-menuitem-link","role","menuitem",3,"target","ngClass","keydown","click",4,
"ngIf"],["class","p-menuitem-link","role","menuitem","pRipple","",3,"routerLink","queryParams","routerLinkActive","routerLinkActiveOptions","target","ngClass","fragment","queryParamsHandling","preserveFragment","skipLocationChange","replaceUrl","state","keydown","click",4,"ngIf"],["role","menuitem",1,"p-menuitem-link",3,"target","ngClass","keydown","click"],["class","p-menuitem-icon",3,"ngClass","class","ngStyle",4,"ngIf"],["class","p-menuitem-text",4,"ngIf","ngIfElse"],["htmlLabel",""],[1,"p-menuitem-icon",3,"ngClass","ngStyle"],[1,"p-menuitem-text"],[1,"p-menuitem-text",3,"innerHTML"],["role","menuitem","pRipple","",1,"p-menuitem-link",3,"routerLink","queryParams","routerLinkActive","routerLinkActiveOptions","target","ngClass","fragment","queryParamsHandling","preserveFragment","skipLocationChange","replaceUrl","state","keydown","click"],["class","p-menuitem-icon",3,"ngClass",4,"ngIf"],["htmlRouteLabel",""],[1,"p-menuitem-icon",3,"ngClass"]],template:function(e,n){1&e&&(_(0,O$,5,1
3,"a",0),_(1,V$,5,22,"a",1)),2&e&&(p("ngIf",!n.item.routerLink),a(1),p("ngIf",n.item.routerLink))},directives:[Q,Le,lt,Ho,bt,_d],encapsulation:2}),t})(),sS=(()=>{class
t{constructor(e,n,s,r,o){this.el=e,this.renderer=n,this.cd=s,this.config=r,this.overlayService=o,this.autoZIndex=!0,this.baseZIndex=0,this.showTransitionOptions=".12s
cubic-bezier(0, 0, 0.2, 1)",this.hideTransitionOptions=".1s
linear",this.onShow=new H,this.onHide=new
H}toggle(e){this.visible?this.hide():this.show(e),this.preventDocumentDefault=!0}show(e){this.target=e.currentTarget,this.relativeAlign=e.relativeAlign,this.visible=!0,this.preventDocumentDefault=!0,this.cd.markForCheck()}onOverlayAnimationStart(e){switch(e.toState){case"visible":this.popup&&(this.container=e.element,this.moveOnTop(),this.onShow.emit({}),this.appendOverlay(),this.alignOverlay(),this.bindDocumentClickListener(),this.bindDocumentResizeListener(),this.bindScrollListener());break;case"void":this.onOverlayHide(),this.onHide.emit({})}}onOverla
yAnimationEnd(e){"void"===e.toState&&this.autoZIndex&&dt.clear(e.element)}alignOverlay(){this.relativeAlign?R.relativePosition(this.container,this.target):R.absolutePosition(this.container,this.target)}appendOverlay(){this.appendTo&&("body"===this.appendTo?document.body.appendChild(this.container):R.appendChild(this.container,this.appendTo))}restoreOverlayAppend(){this.container&&this.appendTo&&this.el.nativeElement.appendChild(this.container)}moveOnTop(){this.autoZIndex&&dt.set("menu",this.container,this.baseZIndex+this.config.zIndex.menu)}hide(){this.visible=!1,this.relativeAlign=!1,this.cd.markForCheck()}onWindowResize(){this.hide()}itemClick(e,n){n.disabled?e.preventDefault():(!n.url&&!n.routerLink&&e.preventDefault(),n.command&&n.command({originalEvent:e,item:n}),this.popup&&this.hide())}onOverlayClick(e){this.popup&&this.overlayService.add({originalEvent:e,target:this.el.nativeElement}),this.preventDocumentDefault=!0}bindDocumentClickListener(){this.documentClickListener||(thi
s.documentClickListener=this.renderer.listen(this.el?this.el.nativeElement.ownerDocument:"document","click",()=>{this.preventDocumentDefault||this.hide(),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.documentResizeListener),this.documentResizeListener=null)}bindScrollListener(){this.scrollHandler||(this.scrollHandler=new
Qs(this.target,()=>{this.visible&&this.hide()})),this.scrollHandler.bindScrollListener()}unbindScrollListener(){this.scrollHandler&&this.scrollHandler.unbindScrollListener()}onOverlayHide(){this.unbindDocumentClickListener(),this.unbindDocumentResizeListener(),this.unbindScrollListener(),this.preventDocumentDefa
ult=!1,this.cd.destroyed||(this.target=null)}ngOnDestroy(){this.popup&&(this.scrollHandler&&(this.scrollHandler.destroy(),this.scrollHandler=null),this.container&&this.autoZIndex&&dt.clear(this.container),this.restoreOverlayAppend(),this.onOverlayHide())}hasSubMenu(){if(this.model)for(var
e of this.model)if(e.items)return!0;return!1}}return t.\u0275fac=function(e){return
new(e||t)(D(De),D(gn),D(rt),D(zn),D(Ks))},t.\u0275cmp=z({type:t,selectors:[["p-menu"]],viewQuery:function(e,n){if(1&e&&W(B$,5),2&e){let
s;V(s=B())&&(n.containerViewChild=s.first)}},hostAttrs:[1,"p-element"],inputs:{model:"model",popup:"popup",style:"style",styleClass:"styleClass",appendTo:"appendTo",autoZIndex:"autoZIndex",baseZIndex:"baseZIndex",showTransitionOptions:"showTransitionOptions",hideTransitionOptions:"hideTransitionOptions"},outputs:{onShow:"onShow",onHide:"onHide"},decls:1,vars:1,consts:[[3,"ngClass","class","ngStyle","click",4,"ngIf"],[3,"ngClass","ngStyle","click"],["container",""],["role","menu",1,"
p-menu-list","p-reset"],[4,"ngIf"],["ngFor","",3,"ngForOf"],["class","p-menu-separator","role","separator",3,"ngClass",4,"ngIf"],["class","p-submenu-header","pTooltip","","role","none",3,"ngClass","tooltipOptions",4,"ngIf"],["role","separator",1,"p-menu-separator",3,"ngClass"],["pTooltip","","role","none",1,"p-submenu-header",3,"ngClass","tooltipOptions"],[4,"ngIf","ngIfElse"],["htmlSubmenuLabel",""],[3,"innerHTML"],["class","p-menuitem","pTooltip","","role","none",3,"pMenuItemContent","ngClass","ngStyle","class","tooltipOptions",4,"ngIf"],["pTooltip","","role","none",1,"p-menuitem",3,"pMenuItemContent","ngClass","ngStyle","tooltipOptions"]],template:function(e,n){1&e&&_(0,nW,5,15,"div",0),2&e&&p("ngIf",!n.popup||n.visible)},directives:[iW,Q,Le,lt,at,Kt],styles:[".p-menu-overlay{position:absolute;top:0;left:0}.p-menu
ul{margin:0;padding:0;list-style:none}.p-menu
.p-menuitem-link{cursor:pointer;display:flex;align-items:center;text-decoration:none;overflow:hidden;position:relative}.p-
menu
.p-menuitem-text{line-height:1}\n"],encapsulation:2,data:{animation:[wi("overlayAnimation",[Lt(":enter",[it({opacity:0,transform:"scaleY(0.8)"}),kt("{{showTransitionParams}}")]),Lt(":leave",[kt("{{hideTransitionParams}}",it({opacity:0}))])])]},changeDetection:0}),t})(),sW=(()=>{class
t{}return t.\u0275fac=function(e){return
new(e||t)},t.\u0275mod=he({type:t}),t.\u0275inj=ue({imports:[[Fe,vn,pn,jn],vn,jn]}),t})(),zo=(()=>{class
t{constructor(e){this.httpClient=e}GetDatabaseStatus(){return
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")}GetIPAddresses(e){let n=(new
ye).set("Protocol",e);return
this.httpClient.get("/Config/GetIPAddresses",{params:n})}GetSystemEvents(e){let
n=new ye;return
e&&n.set("Host",e),this.httpClient.get("/Config/GetSystemEvents",{params:n
})}}return t.\u0275fac=function(e){return
new(e||t)(K(Bi))},t.\u0275prov=X({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),qt=(()=>{class
t{constructor(e){this.httpClient=e}AddStorageGroupDir(e){return
this.httpClient.post("/Myth/AddStorageGroupDir",e)}BackupDatabase(){return
this.httpClient.post("/Myth/BackupDatabase",{body:void
0})}CheckDatabase(e){return
this.httpClient.post("/Myth/CheckDatabase",e)}DelayShutdown(){return
this.httpClient.post("Myth/DelayShutdown",{body:void 0})}GetBackendInfo(){return
this.httpClient.get("/Myth/GetBackendInfo")}GetConnectionInfo(e){let n=(new
ye).set("Pin",e);return
this.httpClient.get("/Myth/GetConnectionInfo",{params:n})}GetFrontends(e){let
n=(new ye).set("OnLine",e);return
this.httpClient.get("/Myth/GetFrontends",{params:n})}GetHostName(){return
this.httpClient.get("/Myth/GetHostName")}GetHosts(){return
this.httpClient.get("/Myth/GetHosts")}GetKeys(){return
this.httpClient.get("/Myth/GetKeys")}GetSetting(e){let n=(new
ye).set("HostName"
,e.HostName).set("Key",e.Key).set("Default",e.Default?e.Default:"");return
this.httpClient.get("/Myth/GetSetting",{params:n})}GetSettingList(e){let n=(new
ye).set("HostName",e);return
this.httpClient.get("/Myth/GetSettingList",{params:n})}GetStorageGroupDirs(e){return
void 0===e||void 0===e.GroupName&&void
0===e.HostName?this.httpClient.get("/Myth/GetStorageGroupDirs"):this.httpClient.post("/Myth/GetStorageGroupDirs",e)}GetDirListing(e){let
n=(new ye).set("DirName",e);return
this.httpClient.get("/Myth/GetDirListing",{params:n})}GetTimeZone(){return
this.httpClient.get("/Myth/GetTimeZone")}ManageDigestUser(e){return
this.httpClient.post("/Myth/ManageDigestUser",e)}ManageUrlProtection(e){return
this.httpClient.post("/Myth/ManageUrlProtection",e)}ProfileDelete(){return
this.httpClient.post("/Myth/ProfileDelete",{body:void 0})}ProfileSubmit(){return
this.httpClient.post("/Myth/ProfileSubmit",{body:void 0})}ProfileText(){return
this.httpClient.get("/Myth/ProfileText")}ProfileURL(){return
this.httpClient.get("/Myth/ProfileURL")}ProfileUpdated(){return
this.httpClient.get("/Myth/ProfileUpdated")}PutSetting(e){return
this.httpClient.post("/Myth/PutSetting",e)}DeleteSetting(e){return
this.httpClient.post("/Myth/DeleteSetting",e)}RemoveStorageGroupDir(e){return
this.httpClient.post("/Myth/RemoveStorageGroupDir",e)}SetConnectionInfo(e){return
this.httpClient.post("/Myth/SetConnectionInfo",e)}TestDBSettings(e){return
this.httpClient.post("/Myth/TestDBSettings",e)}ManageScheduler(e){return
this.httpClient.post("/Myth/ManageScheduler",e)}Shutdown(e){return
this.httpClient.post("/Myth/Shutdown",e)}}return t.\u0275fac=function(e){return
new(e||t)(K(Bi))},t.\u0275prov=X({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),xd=(()=>{class
t{constructor(e,n){this.configService=e,this.mythService=n,this.m_wizardData={Country:{Code:"",Country:"",NativeCountry:"",Image:""},Language:{Code:"",Language:"",NativeLanguage:"",Image:""},Database:{Host:"localhost",Port:3306,UserName:"myth
tv",Password:"mythtv",Ping:!1,Name:"mythconverg",Type:"QMYSQL",LocalHostName:"my-unique-identifier-goes-here",LocalEnabled:!1,DoTest:!0,WOLEnabled:!1,WOLReconnect:0,WOLRetry:0,WOLCommand:""},DatabaseStatus:{DatabaseStatus:{Host:"",Port:0,UserName:"",Password:"",Ping:!1,Name:"",Type:"",LocalHostName:"",LocalEnabled:!1,Connected:!1,HaveDatabase:!1,SchemaVersion:0,WOLEnabled:!1,WOLReconnect:0,WOLRetry:0,WOLCommand:""}}},this.m_topElement=null,this.m_hostName="",this.m_languageSetting="",this.m_languages=[],this.m_countrySetting="",this.m_countries=[],this.fullMenu=[],this.dbSetupMenu=[],this.wizardItems=[],this.mythService.GetHostName().subscribe(s=>{this.m_hostName=s.String})}ngOnInit(){}Init(){this.initDatabaseStatus(),this.initLanguages()}getWizardData(){return
this.Init(),this.m_wizardData}initDatabaseStatus(){this.dbPromise=new
Promise((e,n)=>{this.configService.GetDatabaseStatus().subscribe(s=>{this.m_wizardData.DatabaseStatus=s,this.m_wizardData.Database.Host=s.DatabaseStatus.Ho
st,this.m_wizardData.Database.Port=s.DatabaseStatus.Port,this.m_wizardData.Database.UserName=s.DatabaseStatus.UserName,this.m_wizardData.Database.Password=s.DatabaseStatus.Password,this.m_wizardData.Database.Name=s.DatabaseStatus.Name,this.m_wizardData.Database.LocalEnabled=s.DatabaseStatus.LocalEnabled,this.m_wizardData.Database.LocalHostName=s.DatabaseStatus.LocalHostName,this.m_wizardData.Database.WOLEnabled=s.DatabaseStatus.WOLEnabled,this.m_wizardData.Database.WOLReconnect=s.DatabaseStatus.WOLReconnect,this.m_wizardData.Database.WOLRetry=s.DatabaseStatus.WOLRetry,this.m_wizardData.Database.WOLCommand=s.DatabaseStatus.WOLCommand,e(!0)},s=>{console.log("Failed
to get database
status",s.statusText),n(!0)})})}initLanguages(){this.configService.GetCountries().subscribe(e=>{this.m_countries=e.CountryList.Countries,this.initCountry()}),this.configService.GetLanguages().subscribe(e=>{this.m_languages=e.LanguageList.Languages,this.initLanguage()})}initCountry(){this.mythService.GetSetti
ng({HostName:"_GLOBAL_",Key:"Country",Default:"US"}).subscribe(e=>{this.m_wizardData.Country=this.findCountryByCode(e.String)})}findCountryByCode(e){for(var
n=0;n<this.m_countries.length;n++)if(this.m_countries[n].Code===e)return
this.m_countries[n];return
this.m_countries[0]}initLanguage(){this.mythService.GetSetting({HostName:"_GLOBAL_",Key:"Language",Default:"en_US"}).subscribe(e=>{this.m_wizardData.Language=this.findLanguageByCode(e.String)})}findLanguageByCode(e){for(var
n=0;n<this.m_languages.length;n++)if(this.m_languages[n].Code===e)return
this.m_languages[n];return
this.m_languages[0]}updateDatabaseStatus(){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)(K(zo),K(qt))},t.\u0275prov=X({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),Me=(()=>{class
t{constructor(e,n){this.mythService=e,this.translate=n,this.m_hostName="
",this.m_initialized=!1,this.requesterForm=null,this.m_HostAddressData={successCount:0,errorCount:0,thisHostName:this.m_hostName,BackendServerPort:6543,BackendStatusPort:6544,SecurityPin:"0000",AllowConnFromAll:!1,ListenOnAllIps:!0,BackendServerIP:"127.0.0.1",BackendServerIP6:"::1",AllowLinkLocal:!0,BackendServerAddr:"",IsMasterBackend:!0,MasterServerName:this.m_hostName},this.HostAddressObs={next:s=>{s.bool?this.m_HostAddressData.successCount++:(this.m_HostAddressData.errorCount++,this.requesterForm&&this.requesterForm.form.markAsDirty())},error:s=>{console.error(s),this.m_HostAddressData.errorCount++,this.requesterForm&&this.requesterForm.form.markAsDirty()}},this.JobQCommandsObs={next:s=>{s.bool?this.m_JobQCommands.successCount++:(this.m_JobQCommands.errorCount++,this.requesterForm&&this.requesterForm.form.markAsDirty())},error:s=>{console.error(s),this.m_JobQCommands.errorCount++,this.requesterForm&&this.requesterForm.form.markAsDirty()}},this.currentForm=null,this.schedulingEna
bled=!0,this.isDatabaseIgnored=!1,this.DBTimezoneSupport=!1,this.WebOnlyStartup="",this.pageType=""}Init(){this.m_initialized=!0}getHostAddressData(){return
this.mythService.GetHostName().subscribe({next:e=>{this.m_hostName=e.String,this.m_HostAddressData.thisHostName=this.m_hostName,this.m_HostAddressData.MasterServerName=this.m_hostName,this.getHostSettings()},error:()=>this.m_HostAddressData.errorCount++}),this.m_HostAddressData}getHostSettings(){this.mythService.GetSetting({HostName:this.m_hostName,Key:"BackendServerPort",Default:"6543"}).subscribe({next:e=>this.m_HostAddressData.BackendServerPort=Number(e.String),error:()=>this.m_HostAddressData.errorCount++}),this.mythService.GetSetting({HostName:this.m_hostName,Key:"BackendStatusPort",Default:"6544"}).subscribe({next:e=>this.m_HostAddressData.BackendStatusPort=Number(e.String),error:()=>this.m_HostAddressData.errorCount++}),this.mythService.GetSetting({HostName:this.m_hostName,Key:"SecurityPin",Default:"0000"}).subscribe({nex
t:e=>this.m_HostAddressData.SecurityPin=e.String,error:()=>this.m_HostAddressData.errorCount++}),this.mythService.GetSetting({HostName:this.m_hostName,Key:"AllowConnFromAll",Default:"0"}).subscribe({next:e=>this.m_HostAddressData.AllowConnFromAll="1"==e.String,error:()=>this.m_HostAddressData.errorCount++}),this.mythService.GetSetting({HostName:this.m_hostName,Key:"ListenOnAllIps",Default:"1"}).subscribe({next:e=>this.m_HostAddressData.ListenOnAllIps="1"==e.String,error:()=>this.m_HostAddressData.errorCount++}),this.mythService.GetSetting({HostName:this.m_hostName,Key:"BackendServerIP"}).subscribe({next:e=>this.m_HostAddressData.BackendServerIP=e.String,error:()=>this.m_HostAddressData.errorCount++}),this.mythService.GetSetting({HostName:this.m_hostName,Key:"BackendServerIP6"}).subscribe({next:e=>this.m_HostAddressData.BackendServerIP6=e.String,error:()=>this.m_HostAddressData.errorCount++}),this.mythService.GetSetting({HostName:this.m_hostName,Key:"UseLinkLocal"}).subscribe({next:e
=>this.m_HostAddressData.AllowLinkLocal="1"==e.String,error:()=>this.m_HostAddressData.errorCount++}),this.mythService.GetSetting({HostName:this.m_hostName,Key:"BackendServerAddr"}).subscribe({next:e=>this.m_HostAddressData.BackendServerAddr=e.String,error:()=>this.m_HostAddressData.errorCount++}),this.mythService.GetSetting({HostName:"_GLOBAL_",Key:"MasterServerName",Default:this.m_hostName}).subscribe({next:e=>{this.m_HostAddressData.MasterServerName=e.String,this.m_HostAddressData.IsMasterBackend=this.m_HostAddressData.MasterServerName==this.m_hostName},error:()=>this.m_HostAddressData.errorCount++})}saveHostAddressData(e){this.requesterForm=e,this.m_HostAddressData.successCount=0,this.m_HostAddressData.errorCount=0,this.mythService.PutSetting({HostName:this.m_hostName,Key:"BackendServerPort",Value:String(this.m_HostAddressData.BackendServerPort)}).subscribe(this.HostAddressObs),this.mythService.PutSetting({HostName:this.m_hostName,Key:"BackendStatusPort",Value:String(this.m_Host
AddressData.BackendStatusPort)}).subscribe(this.HostAddressObs),this.mythService.PutSetting({HostName:this.m_hostName,Key:"SecurityPin",Value:this.m_HostAddressData.SecurityPin}).subscribe(this.HostAddressObs),this.mythService.PutSetting({HostName:this.m_hostName,Key:"AllowConnFromAll",Value:this.m_HostAddressData.AllowConnFromAll?"1":"0"}).subscribe(this.HostAddressObs),this.mythService.PutSetting({HostName:this.m_hostName,Key:"ListenOnAllIps",Value:this.m_HostAddressData.ListenOnAllIps?"1":"0"}).subscribe(this.HostAddressObs),this.mythService.PutSetting({HostName:this.m_hostName,Key:"BackendServerIP",Value:this.m_HostAddressData.BackendServerIP}).subscribe(this.HostAddressObs),this.mythService.PutSetting({HostName:this.m_hostName,Key:"BackendServerIP6",Value:this.m_HostAddressData.BackendServerIP6}).subscribe(this.HostAddressObs),this.mythService.PutSetting({HostName:this.m_hostName,Key:"AllowLinkLocal",Value:this.m_HostAddressData.AllowLinkLocal?"1":"0"}).subscribe(this.HostAddre
ssObs),this.mythService.PutSetting({HostName:this.m_hostName,Key:"BackendServerAddr",Value:this.m_HostAddressData.BackendServerAddr}).subscribe(this.HostAddressObs),this.mythService.PutSetting({HostName:"_GLOBAL_",Key:"MasterServerName",Value:this.m_HostAddressData.MasterServerName}).subscribe(this.HostAddressObs)}getLocaleData(){return
this.m_LocaleData={successCount:0,errorCount:0,TVFormat:"PAL",VbiFormat:"None",FreqTable:"us-bcast"},this.mythService.GetSetting({HostName:"_GLOBAL_",Key:"TVFormat"}).subscribe({next:e=>this.m_LocaleData.TVFormat=e.String,error:()=>this.m_LocaleData.errorCount++}),this.mythService.GetSetting({HostName:"_GLOBAL_",Key:"VbiFormat"}).subscribe({next:e=>this.m_LocaleData.VbiFormat=e.String,error:()=>this.m_LocaleData.errorCount++}),this.mythService.GetSetting({HostName:"_GLOBAL_",Key:"FreqTable"}).subscribe({next:e=>this.m_LocaleData.FreqTable=e.String,error:()=>this.m_LocaleData.errorCount++}),this.m_LocaleData}getSetupData(){return
this.getHostAddressDa
ta(),this.getLocaleData(),this.m_setupData={General:{HostAddress:this.m_HostAddressData,Locale:this.m_LocaleData}},this.m_setupData}parseTime(e,n){let
s=n.split(":");e.setHours(Number(s[0])),e.setMinutes(Number(s[1]))}formatTime(e){let
n=e.getHours(),s=e.getMinutes(),r="";return
n<10&&(r+="0"),r+=String(n),r+=":",s<10&&(r+="0"),r+=String(s),r}getJobQCommands(){if("object"==typeof
this.m_JobQCommands)return
this.m_JobQCommands;this.m_JobQCommands={successCount:0,errorCount:0,UserJobDesc:[],UserJob:[]};for(let
e=0;e<4;e++){let
n=e+1;this.translate.get("settings.services.job_default",{num:n}).subscribe(s=>this.m_JobQCommands.UserJobDesc[e]=s),this.mythService.GetSetting({HostName:"_GLOBAL_",Key:"UserJobDesc"+n,Default:""}).subscribe({next:s=>{s.String&&s.String.length>0&&(this.m_JobQCommands.UserJobDesc[e]=s.String)},error:()=>this.m_JobQCommands.errorCount++}),this.mythService.GetSetting({HostName:"_GLOBAL_",Key:"UserJob"+n,Default:""}).subscribe({next:s=>this.m_JobQCommands.UserJob[e
]=s.String,error:()=>this.m_JobQCommands.errorCount++})}return
this.m_JobQCommands}saveJobQCommands(e){this.requesterForm=e,this.m_JobQCommands.successCount=0,this.m_JobQCommands.errorCount=0;for(let
n=0;n<4;n++){let
s=n+1;this.mythService.PutSetting({HostName:"_GLOBAL_",Key:"UserJobDesc"+s,Value:this.m_JobQCommands.UserJobDesc[n]}).subscribe(this.JobQCommandsObs),this.mythService.PutSetting({HostName:"_GLOBAL_",Key:"UserJob"+s,Value:this.m_JobQCommands.UserJob[n]}).subscribe(this.JobQCommandsObs)}}getCurrentForm(){return
this.currentForm}setCurrentForm(e){this.currentForm=e}}return
t.\u0275fac=function(e){return
new(e||t)(K(qt),K(Oe))},t.\u0275prov=X({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),jo=(()=>{class
t{constructor(e){this.httpClient=e}AddDontRecordSchedule(e){return
this.httpClient.post("/Dvr/AddDontRecordSchedule",e)}AddRecordSchedule(e){return
this.httpClient.post("/Dvr/AddRecordSchedule",e)}UpdateRecordSchedule(e){return
this.httpClient.post("/Dvr/UpdateRecord
Schedule",e)}RemoveRecordSchedule(e){return
this.httpClient.post("/Dvr/RemoveRecordSchedule",{RecordId:e})}AddRecordedCredits(e){return
this.httpClient.post("/Dvr/AddRecordedCredits",e)}AddRecordedProgram(e){return
this.httpClient.post("/Dvr/AddRecordedProgram",e)}AllowReRecord(e){return
this.httpClient.post("/Dvr/AllowReRecord",{RecordedId:e})}DeleteRecording(e){return
this.httpClient.post("/Dvr/DeleteRecording",e)}UnDeleteRecording(e){return
this.httpClient.post("/Dvr/UnDeleteRecording",e)}UpdateRecordedMetadata(e){return
this.httpClient.post("/Dvr/UpdateRecordedMetadata",e)}DisableRecordSchedule(e){return
this.httpClient.post("/Dvr/DisableRecordSchedule",{RecordId:e})}DupInToDescription(e){let
n=(new ye).set("DupIn",e);return
this.httpClient.get("/Dvr/DupInToDescription",{params:n})}DupInToString(e){let
n=(new ye).set("DupIn",e);return
this.httpClient.get("/Dvr/DupInToString",{params:n})}DupMethodToDescription(e){let
n=(new ye).set("DupMethod",e);return this.httpClient.get("/Dvr/
DupMethodToDescription",{params:n})}DupMethodToString(e){let n=(new
ye).set("DupMethod",e);return
this.httpClient.get("/Dvr/DupMethodToString",{params:n})}EnableRecordSchedule(e){return
this.httpClient.post("/Dvr/EnableRecordSchedule",e)}GetConflictList(e){let
n=(new
ye).set("StartIndex",e.StartIndex).set("Count",e.Count).set("RecordId",e.RecordId);return
this.httpClient.get("/Dvr/GetConflictList",{params:n})}GetEncoderList(){return
this.httpClient.get("/Dvr/GetEncoderList")}GetExpiringList(e){let n=(new
ye).set("StartIndex",e.StartIndex).set("Count",e.Count);return
this.httpClient.get("/Dvr/GetExpiringList",{params:n})}GetInputList(){return
this.httpClient.get("/Dvr/GetInputList")}GetLastPlayPos(e){let n=(new
ye).set("RecordedId",e.RecordedId).set("ChanId",e.ChanId).set("StartTime",e.StartTime).set("OffsetType",e.OffsetType);return
this.httpClient.get("/Dvr/GetLastPlayPos",{params:n})}GetOldRecordedList(e){let
n=(new
ye).set("Descending",e.Descending).set("StartIndex",e.StartIndex)
.set("Count",e.Count).set("StartTime",e.StartTime).set("EndTime",e.EndTime).set("Title",e.Title).set("SeriesId",e.SeriesId).set("RecordId",e.RecordId).set("Sort",e.Sort);return
this.httpClient.get("/Dvr/GetOldRecordedList",{params:n})}GetPlayGroupList(){return
this.httpClient.get("/Dvr/GetPlayGroupList")}GetProgramCategories(e){return(new
ye).set("OnlyRecorded",e),this.httpClient.get("/Dvr/GetProgramCategories")}GetRecGroupList(){return
this.httpClient.get("/Dvr/GetRecGroupList")}GetRecRuleFilterList(){return
this.httpClient.get("/Dvr/GetRecRuleFilterList")}GetRecStorageGroupList(){return
this.httpClient.get("/Dvr/GetRecStorageGroupList")}GetRecordSchedule(e){let
n=new ye;for(const[s,r]of Object.entries(e))n=n.set(s,r);return
this.httpClient.get("/Dvr/GetRecordSchedule",{params:n})}GetRecordScheduleList(e){let
n=new ye;for(const[s,r]of Object.entries(e))n=n.set(s,r);return
this.httpClient.get("/Dvr/GetRecordScheduleList",{params:n})}GetRecorded(e){let
n=new ye;for(const[s,r]of Objec
t.entries(e))n=n.set(s,r);return
this.httpClient.get("/Dvr/GetRecorded",{params:n})}GetRecordedList(e){let n=new
ye;for(const[s,r]of Object.entries(e))n=n.set(s,r);return
this.httpClient.get("/Dvr/GetRecordedList",{params:n})}GetUpcomingList(e){let
n=new ye;for(const[s,r]of Object.entries(e))n=n.set(s,r);return
this.httpClient.get("/Dvr/GetUpcomingList",{params:n})}RecStatusToString(e){let
n=(new ye).set("RecStatus",e);return
this.httpClient.get("/Dvr/RecStatusToString",{params:n})}ManageJobQueue(e){return
this.httpClient.post("/Dvr/ManageJobQueue",e)}StopRecording(e){return
this.httpClient.post("/Dvr/StopRecording",{RecordedId:e})}}return
t.\u0275fac=function(e){return
new(e||t)(K(Bi))},t.\u0275prov=X({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();function
rW(t,i){if(1&t&&(l(0,"div",9),k(1,"p-message",10),m(2,"translate"),c()),2&t){const
e=d();a(1),x("text",f(2,2,"settings.main.webonly."+e.setupService.WebOnlyStartup)),p("styleClass","font-bold")}}function
oW(t,i){1&t&&(k(0
,"p-message",10),m(1,"translate")),2&t&&(x("text",f(1,2,"settings.main.mustenable")),p("styleClass","font-bold"))}function
aW(t,i){1&t&&(k(0,"p-message",10),m(1,"translate")),2&t&&(x("text",f(1,2,"settings.main.mustrestart")),p("styleClass","font-bold"))}function
lW(t,i){if(1&t&&(l(0,"div",9),_(1,oW,2,4,"p-message",11),_(2,aW,2,4,"ng-template",null,12,we),c()),2&t){const
e=F(3),n=d();a(1),p("ngIf",n.setupService.schedulingEnabled)("ngIfElse",e)}}function
cW(t,i){if(1&t){const
e=I();l(0,"div",13)(1,"div",14)(2,"p-button",15),C("onClick",function(){return
v(e),d().disableSched()}),m(3,"translate"),c()(),l(4,"div",14),g(5),m(6,"translate"),c()()}2&t&&(a(2),x("label",f(3,2,"settings.main.enableupdates_label")),a(3),S(f(6,4,"settings.main.enableupdates_desc")))}function
uW(t,i){1&t&&(l(0,"div",14)(1,"div",17),g(2),m(3,"translate"),c()()),2&t&&(a(2),S(f(3,1,"settings.main.restart_desc")))}function
dW(t,i){1&t&&(l(0,"div",14),g(1),m(2,"translate"),c()),2&t&&(a(1),T("
",f(2,1,"settings.main
.slave_enabled"),""))}function pW(t,i){if(1&t){const
e=I();l(0,"div",13)(1,"div",14)(2,"p-button",15),C("onClick",function(){return
v(e),d().restart()}),m(3,"translate"),c()(),_(4,uW,4,3,"div",16),_(5,dW,3,3,"div",16),c()}if(2&t){const
e=d();a(2),x("label",f(3,3,"WEBONLYPARM"==e.setupService.WebOnlyStartup?"settings.main.shutdown_label":"settings.main.restart_label")),a(2),p("ngIf",!e.masterServerName||!e.hostName||e.masterServerName==e.hostName),a(1),p("ngIf",e.masterServerName&&e.hostName&&e.masterServerName!=e.hostName)}}const
hW=function(t,i,e){return{Title:t,StartTime:i,Status:e}};function
mW(t,i){if(1&t&&(l(0,"small",18),g(1),m(2,"translate"),c()),2&t){const
e=d();a(1),T("
",Dt(2,1,"settings.main.upcomingrec",Qt(4,hW,e.upComing[0].Title,e.recStartTime,e.recStatusDesc)),"
")}}function
fW(t,i){1&t&&(l(0,"div")(1,"p"),g(2),m(3,"translate"),c(),l(4,"p"),g(5),m(6,"translate"),c()()),2&t&&(a(2),T("",f(3,2,"settings.main.slave_instructions"),"
"),a(3),T("",f(6,4,"settings.main.slave_
warning")," "))}function
gW(t,i){1&t&&k(0,"p-progressSpinner")}function
_W(t,i){1&t&&(k(0,"p-message",19),m(1,"translate")),2&t&&x("text",f(1,1,"settings.main.restarting"))}function
bW(t,i){1&t&&(k(0,"p-message",20),m(1,"translate")),2&t&&x("text",f(1,1,"common.networkfail"))}let
vW=(()=>{class
t{constructor(e,n,s,r,o,u){this.mythService=e,this.setupService=n,this.dvrService=s,this.wizardService=r,this.messageService=o,this.translate=u,this.errorCount=0,this.retryCount=0,this.upComing=[],this.recStatusDesc="",this.recStartTime="",this.ready=!1,this.delay=0,this.busy=!1,this.hostName="",this.masterServerName="",this.getBackendInfo(),this.refreshInfo()}refreshInfo(){setTimeout(()=>{this.getBackendInfo(),this.refreshInfo()},12e4)}getBackendInfo(){0==this.retryCount&&(this.errorCount=0),this.ready=!1,this.recStatusDesc="",this.recStartTime="",this.upComing=[],this.mythService.GetHostName().subscribe({next:e=>{this.hostName=e.String,this.mythService.GetSetting({HostName:"_GLOBAL_",Key:"M
asterServerName",Default:this.hostName}).subscribe({next:n=>{this.masterServerName=n.String},error:()=>this.errorCount++})},error:()=>this.errorCount++}),this.mythService.GetBackendInfo().subscribe({next:e=>{this.setupService.schedulingEnabled=e.BackendInfo.Env.SchedulingEnabled,this.setupService.isDatabaseIgnored=e.BackendInfo.Env.IsDatabaseIgnored,this.setupService.DBTimezoneSupport=e.BackendInfo.Env.DBTimezoneSupport,this.setupService.WebOnlyStartup=e.BackendInfo.Env.WebOnlyStartup,this.wizardService.wizardItems=this.setupService.isDatabaseIgnored?this.wizardService.dbSetupMenu:this.wizardService.fullMenu,this.wizardService.getWizardData(),this.retryCount>0&&this.errorCount>0?(this.retryCount=0,this.errorCount=0):this.retryCount>0&&0==this.errorCount&&setTimeout(()=>this.getBackendInfo(),2e3),0==this.retryCount&&(setTimeout(()=>this.getUpcoming(),this.delay),this.delay=0)},error:()=>{this.setupService.schedulingEnabled=!0,this.errorCount++,this.errorCount<this.retryCount?setTimeo
ut(()=>this.getBackendInfo(),2e3):this.retryCount=0}})}getUpcoming(){this.errorCount=0,this.dvrService.GetUpcomingList({Count:1}).subscribe({next:e=>{if(this.upComing=e.ProgramList.Programs,this.ready=!0,this.upComing.length>0){this.dvrService.RecStatusToString(this.upComing[0].Recording.Status).subscribe({next:s=>this.recStatusDesc=s.String,error:()=>this.errorCount++});var
n=new
Date(this.upComing[0].Recording.StartTs);this.recStartTime=n.toLocaleString()}},error:()=>this.errorCount++})}disableSched(){this.mythService.ManageScheduler({Disable:!0}).subscribe({next:e=>this.getBackendInfo(),error:()=>this.errorCount++})}restart(){let
e="WEBONLYPARM"!=this.setupService.WebOnlyStartup;this.mythService.Shutdown({Restart:e}).subscribe({next:n=>{n.bool?(this.retryCount=e?30:9999,this.getBackendInfo()):this.errorCount++},error:()=>this.errorCount++}),this.delay=5e3}ngOnInit(){}}return
t.\u0275fac=function(e){return
new(e||t)(D(qt),D(Me),D(jo),D(xd),D(Gi),D(Oe))},t.\u0275cmp=z({type:t,selec
tors:[["app-backend-warning"]],features:[Pe([Gi])],decls:15,vars:9,consts:[[1,"block","card","w-full"],[1,"block"],[1,"m-5"],["class","flex
mb-3",4,"ngIf"],["class","flex",4,"ngIf"],["class","pb-0
m-0",4,"ngIf"],[4,"ngIf"],["severity","info",3,"text",4,"ngIf"],["severity","error",3,"text",4,"ngIf"],[1,"flex","mb-3"],["severity","warn",3,"styleClass","text"],["severity","warn",3,"styleClass","text",4,"ngIf","ngIfElse"],["mustrestart",""],[1,"flex"],[1,"flex","align-items-center"],["icon","pi
pi-save","iconPos","left",1,"pr-5","pb-1","pt-0","m-0",3,"label","onClick"],["class","flex
align-items-center",4,"ngIf"],[1,"text-pink-500"],[1,"pb-0","m-0"],["severity","info",3,"text"],["severity","error",3,"text"]],template:function(e,n){1&e&&(l(0,"div",0)(1,"div",1)(2,"p-card",2),_(3,rW,3,4,"div",3),_(4,lW,4,2,"div",3),_(5,cW,7,6,"div",4),_(6,pW,6,5,"div",4),l(7,"div"),_(8,mW,3,8,"small",5),c(),_(9,fW,7,6,"div",6),l(10,"div"),_(11,gW,1,0,"p-progressSpinner",6),_(12,_W,2,3,"p-message",7),l(13,
"p"),_(14,bW,2,3,"p-message",8),c()()()()()),2&e&&(a(3),p("ngIf",0==n.retryCount&&"NONE"!=n.setupService.WebOnlyStartup),a(1),p("ngIf",0==n.retryCount),a(1),p("ngIf",n.setupService.schedulingEnabled&&0==n.retryCount),a(1),p("ngIf",!n.setupService.schedulingEnabled&&0==n.retryCount),a(2),p("ngIf",n.upComing.length>0),a(1),p("ngIf",n.masterServerName&&n.hostName&&n.masterServerName!=n.hostName&&0==n.retryCount),a(2),p("ngIf",n.retryCount>0),a(1),p("ngIf",n.retryCount>0),a(2),p("ngIf",!n.setupService.isDatabaseIgnored&&n.errorCount>0&&0==n.retryCount))},directives:[Ne,Q,qe,ve,Go],pipes:[ce],styles:[""]}),t})();const
CW=["top"];let rS=(()=>{class
t{constructor(e,n,s){this.wizardService=e,this.setupService=n,this.translate=s,this.fullMenu=[],this.dbSetupMenu=[],this.activeIndex=0,n.pageType="S"}ngOnInit(){this.translate.get("setupwizard.steps.selectlanguage").subscribe(e=>{this.fullMenu=[{label:this.translate.instant("setupwizard.steps.dbsetup"),routerLink:"dbsetup"},{label:this.translat
e.instant("setupwizard.steps.selectlanguage"),routerLink:"selectlanguage"},{label:this.translate.instant("setupwizard.steps.general"),routerLink:"general"},{label:this.translate.instant("setupwizard.steps.capture_cards"),routerLink:"capture-cards"},{label:this.translate.instant("setupwizard.steps.recording_profiles"),routerLink:"recording-profiles"},{label:this.translate.instant("setupwizard.steps.video_sources"),routerLink:"video-sources"},{label:this.translate.instant("setupwizard.steps.input_connections"),routerLink:"input-connections"},{label:this.translate.instant("setupwizard.steps.channel_editor"),routerLink:"channel-editor"},{label:this.translate.instant("setupwizard.steps.storage_groups"),routerLink:"storage-groups"},{label:this.translate.instant("setupwizard.steps.system_events"),routerLink:"system-events"}],this.wizardService.fullMenu=this.fullMenu,this.activeItem=this.fullMenu[0],this.dbSetupMenu=[this.fullMenu[0]],this.wizardService.dbSetupMenu=this.dbSetupMenu,this.wiz
ardService.wizardItems=this.wizardService.fullMenu})}ngAfterViewInit(){this.wizardService.m_topElement=this.topElement}}return
t.\u0275fac=function(e){return
new(e||t)(D(xd),D(Me),D(Oe))},t.\u0275cmp=z({type:t,selectors:[["app-settings"]],viewQuery:function(e,n){if(1&e&&W(CW,5),2&e){let
s;V(s=B())&&(n.topElement=s.first)}},decls:17,vars:12,consts:[["top",""],[1,"content-section","implementation"],[1,"card"],[1,"flex","flex-row"],["pButton","","pRipple","","icon","pi
pi-angle-double-left",1,"p-button-text","p-button-primary",3,"pTooltip","click"],[1,"col-11"],[3,"model","activeItem","scrollable"],["menu",""],["pButton","","pRipple","","icon","pi
pi-angle-double-right",1,"p-button-text","p-button-primary",3,"pTooltip","click"]],template:function(e,n){if(1&e){const
s=I();k(0,"span",null,0),l(2,"div",1)(3,"h1"),g(4),m(5,"translate"),c(),l(6,"div",2)(7,"div",3)(8,"button",4),C("click",function(){return
v(s),F(12).navBackward()}),m(9,"translate"),c(),l(10,"div",5),k(11,"p-tabMenu",6,7),c(
),l(13,"button",8),C("click",function(){return
v(s),F(12).navForward()}),m(14,"translate"),c()()(),k(15,"app-backend-warning")(16,"router-outlet"),c()}2&e&&(a(4),S(f(5,6,"settings.main.title")),a(4),x("pTooltip",f(9,8,"dashboard.scrolltabsleft")),a(3),p("model",n.wizardService.wizardItems)("activeItem",n.activeItem)("scrollable",!1),a(2),x("pTooltip",f(14,10,"dashboard.scrolltabsright")))},directives:[On,bt,Kt,J2,vW,Ml],pipes:[ce],styles:['.warning[_ngcontent-%COMP%]{color:#cc8925;background-color:#fff2e2}.connected[_ngcontent-%COMP%]{color:#1ea97c;background-color:#e4f8f0}.medium-width[_ngcontent-%COMP%]{width:"600"}']}),t})();function
yW(t,i){if(1&t){const
e=I();l(0,"div"),k(1,"h1"),l(2,"div",1)(3,"button",2),C("click",function(){return
v(e),F(7).navBackward()}),m(4,"translate"),c(),l(5,"div",3),k(6,"p-tabMenu",4,5),c(),l(8,"button",6),C("click",function(){return
v(e),F(7).navForward()}),m(9,"translate"),c()(),k(10,"router-outlet"),c()}if(2&t){const
e=d();a(3),x("pTooltip",f(4,5,"
dashboard.scrolltabsleft")),a(3),p("model",e.fullMenu)("activeItem",e.activeItem)("scrollable",!1),a(2),x("pTooltip",f(9,7,"dashboard.scrolltabsright"))}}let
oS=(()=>{class
t{constructor(e,n){this.translate=e,this.setupService=n,this.translateDone=!1,this.fullMenu=[{label:"dashboard.backendStatus",routerLink:"status"},{label:"dashboard.channeleditor",routerLink:"channel-editor"},{label:"dashboard.programguide",routerLink:"program-guide"},{label:"dashboard.recordings.heading",routerLink:"recordings"},{label:"dashboard.upcoming.heading",routerLink:"upcoming"},{label:"dashboard.recrules.heading",routerLink:"recrules"},{label:"dashboard.videos.heading",routerLink:"videos"}],this.activeItem=this.fullMenu[0],n.pageType="D",this.fullMenu.forEach(s=>{s.label&&this.translate.get(s.label).subscribe(r=>{s.label=r,this.translateDone=!0})})}ngOnInit(){}}return
t.\u0275fac=function(e){return
new(e||t)(D(Oe),D(Me))},t.\u0275cmp=z({type:t,selectors:[["app-dashboard"]],decls:1,vars:1,consts:[[4,"ngI
f"],[1,"flex","flex-row"],["pButton","","pRipple","","icon","pi
pi-angle-double-left",1,"p-button-text","p-button-primary",3,"pTooltip","click"],[1,"col-11"],[3,"model","activeItem","scrollable"],["menu",""],["pButton","","pRipple","","icon","pi
pi-angle-double-right",1,"p-button-text","p-button-primary",3,"pTooltip","click"]],template:function(e,n){1&e&&_(0,yW,11,9,"div",0),2&e&&p("ngIf",n.translateDone)},directives:[Q,On,bt,Kt,J2,Ml],pipes:[ce],styles:["[_nghost-%COMP%]
.dark-panel.p-panel
.p-panel-header{background:#c0c0c0}"]}),t})(),ji=(()=>{class
t{constructor(){}canDeactivate(e,n,s,r){return!e.canDeactivate||e.canDeactivate()}}return
t.\u0275fac=function(e){return
new(e||t)},t.\u0275prov=X({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();const
wW=[{path:"dashboard",component:oS},{path:"setupwizard",component:rS}];let
TW=(()=>{class t{}return t.\u0275fac=function(e){return
new(e||t)},t.\u0275mod=he({type:t}),t.\u0275inj=ue({providers:[ji],imports:[[vn.forRoot(wW)],vn]
}),t})(),SW=(()=>{class
t{constructor(e,n){this.http=e,this.document=n}switchTheme(e){let
n=this.document.getElementById("app-theme");n&&(n.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)(K(Bi),K(Xt))},t.\u0275prov=X({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),Ll=(()=>{class
t{constructor(e){this.translate=e,this.m_showSidebar=!0,this.recStatusText={Pending:"",Failing:"",MissedFuture:"",Tuning:"",Failed:"",TunerBusy:"",LowDiskSpace:"",Cancelled:"",Missed:"",Aborted:"",Recorded:"",Recording:"",WillRecord:"",Unknown:"",DontRecord:"",PreviousRecording:"",CurrentRecording:"",EarlierShowing:"",TooManyRecordings:"",NotListed:"",Conflict:"",LaterShowing:"",Repeat:"",Inactive:"",NeverRecord:"",Offline:""},this.getTranslations()}getTranslations(){for(const[e,n]of
Object.entries(this.recStatusText))this.translate.get("data.recstatus."+e).subscribe(s=>{Objec
t.defineProperty(this.recStatusText,e,{value:s})})}toggleShowSidebar(){this.m_showSidebar=!this.m_showSidebar}showSidebar(e){this.m_showSidebar=e}}return
t.\u0275fac=function(e){return
new(e||t)(K(Oe))},t.\u0275prov=X({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();function
xW(t,i){if(1&t&&(l(0,"div"),k(1,"img",26),c()),2&t){const
e=d(2);a(1),Bn("src","images/themes/",e.m_selectedTheme.Image,"",ln)}}function
DW(t,i){if(1&t&&(l(0,"div"),k(1,"img",27),c()),2&t){const
e=d(2);a(1),Bn("src","images/locale/",e.m_selectedLanguage.Image,"",ln)}}function
MW(t,i){if(1&t){const
e=I();l(0,"div",7)(1,"div",8)(2,"a",9),C("click",function(){return
v(e),d().toggleShowSidebar()}),k(3,"i",10)(4,"span",11),c(),k(5,"img",12),l(6,"div",13)(7,"h1"),g(8),m(9,"translate"),c()()(),l(10,"div",14)(11,"button",15),C("click",function(){return
v(e),d().showTopBar=!1}),m(12,"translate"),c()(),l(13,"div",16)(14,"a",17),C("click",function(){return
v(e),d().toggleShowNavbar()}),k(15,"i",18)(16,"span",11),c(),
l(17,"ul",19)(18,"li",20)(19,"a",21),C("click",function(s){return
v(e),d(),F(5).toggle(s)}),m(20,"translate"),_(21,xW,2,1,"div",22),l(22,"span",23),g(23),m(24,"translate"),c(),k(25,"span",24),c()(),l(26,"li",20)(27,"a",25),C("click",function(s){return
v(e),d(),F(8).toggle(s)}),m(28,"translate"),_(29,DW,2,1,"div",22),l(30,"span",23),g(31),m(32,"translate"),c(),k(33,"span",24),c()()()()()}if(2&t){const
e=d();a(8),S(f(9,9,"navbar.mainheading")),a(3),x("pTooltip",f(12,11,"navbar.hide")),a(6),p("hidden",e.m_showNavbar),a(2),x("pTooltip",f(20,13,"navbar.switchTheme")),a(2),p("ngIf",e.m_selectedTheme),a(2),S(f(24,15,"navbar.switchTheme")),a(4),x("pTooltip",f(28,17,"navbar.changeLanguage")),a(2),p("ngIf",e.m_selectedLanguage),a(2),S(f(32,19,"navbar.changeLanguage"))}}function
kW(t,i){if(1&t){const
e=I();l(0,"div",28)(1,"button",29),C("click",function(){return
v(e),d().showTopBar=!0}),m(2,"translate"),c()()}2&t&&(a(1),x("pTooltip",f(2,1,"navbar.show")))}function
IW(t,i){if(1&t&&(l(0,"tr",33)
(1,"td",34)(2,"span",35),g(3),c()()()),2&t){const
e=i.$implicit;a(3),S(e.Category)}}function EW(t,i){if(1&t){const
e=I();l(0,"tr",36),C("click",function(){const r=v(e).$implicit;return
d(2).changeTheme(r)}),l(1,"td",37),k(2,"img",38),c(),l(3,"td"),g(4),c()()}if(2&t){const
n=i.$implicit;p("pSelectableRow",i.$implicit),a(2),Bn("src","images/themes/",n.Image,"",ln),p("alt",n.image),a(2),S(n.Name)}}function
RW(t,i){1&t&&(l(0,"p-table",30),_(1,IW,4,1,"ng-template",31),_(2,EW,5,4,"ng-template",32),c()),2&t&&p("value",d().m_themes$)("paginator",!1)("scrollable",!0)}function
LW(t,i){if(1&t){const
e=I();l(0,"tr",36),C("click",function(){const
r=v(e).$implicit,o=d(2);return
F(8).hide(),o.changeLanguage(r)}),l(1,"td",37),k(2,"img",38),c(),l(3,"td")(4,"pre")(5,"span",40),g(6),c(),k(7,"br"),g(8),c()()()}if(2&t){const
n=i.$implicit;p("pSelectableRow",i.$implicit),a(2),Bn("src","images/locale/",n.Image,"",ln),p("alt",n.image),a(4),S(n.Language),a(2),T("",n.NativeLanguage,"
")}}function OW(t,i){1&t
&&(l(0,"p-table",39),_(1,LW,9,5,"ng-template",32),c()),2&t&&p("value",d().m_languages)("paginator",!1)("scrollable",!0)}const
AW=function(){return{width:"350px"}},PW=function(){return{width:"450px"}};let
FW=(()=>{class
t{constructor(e,n,s,r,o,u,h){this.themeService=e,this.configService=n,this.translateService=s,this.primeconfigService=r,this.dataService=o,this.mythService=u,this.router=h,this.m_showNavbar=!0,this.showTopBar=!0,this.m_devMode=function
KR(){return
ZC=!0,YC}(),this.m_haveDatabase=!0,this.themeService.getThemes().then(b=>{this.m_themes$=b,this.m_selectedTheme=this.findThemeByName(localStorage.getItem("Theme")||"Indigo
Light"),this.themeService.switchTheme(this.m_selectedTheme.CSS)}),this.configService.GetLanguages().subscribe(b=>{this.m_languages=b.LanguageList.Languages,this.m_selectedLanguage=this.findLanguageByCode(localStorage.getItem("Language")||"en_US")}),this.mythService.GetBackendInfo().subscribe(b=>{var
y=this.router.url;b.BackendInfo.Env.IsDatabaseIgnored||!b
.BackendInfo.Env.SchedulingEnabled&&!y.startsWith("/setupwizard/")?h.navigate(["setupwizard/dbsetup"]):"/"==y&&h.navigate(["dashboard/status"])})}ngOnInit(){}findThemeByName(e){for(var
n=0;n<this.m_themes$.length;n++)if(this.m_themes$[n].Name===e)return
this.m_themes$[n];return
this.m_themes$[0]}changeTheme(e){this.m_selectedTheme=e,this.themeService.switchTheme(e.CSS),localStorage.setItem("Theme",this.m_selectedTheme.Name)}findLanguageByCode(e){for(var
n=0;n<this.m_languages.length;n++)if(this.m_languages[n].Code===e)return
this.m_languages[n];return
this.m_languages[0]}changeLanguage(e){console.log("Language changed to
",e.NativeLanguage),this.m_selectedLanguage=e,localStorage.setItem("Language",this.m_selectedLanguage.Code),this.translateService.use(this.m_selectedLanguage.Code),this.translateService.get("primeng").subscribe(n=>this.primeconfigService.setTranslation(n))}toggleShowNavbar(){this.m_showNavbar=!this.m_showNavbar}toggleShowSidebar(){this.dataService.toggleShowSidebar(
)}}return t.\u0275fac=function(e){return
new(e||t)(D(SW),D(zo),D(Oe),D(zn),D(Ll),D(qt),D(It))},t.\u0275cmp=z({type:t,selectors:[["app-navbar"]],decls:10,vars:10,consts:[[1,"flex","flex-column","relative","flex-auto"],["class","toolbar
flex justify-content-between align-items-center pm-8 surface-section relative lg:static
surface-border","style","height:
80px;",4,"ngIf","ngIfElse"],["hidden",""],[3,"showCloseIcon"],["themePanel",""],["pTemplate",""],["languagePanel",""],[1,"toolbar","flex","justify-content-between","align-items-center","pm-8","surface-section","relative","lg:static","surface-border",2,"height","80px"],[1,"toolbar","flex","align-items-left","flex-shrink-0",2,"height","80px"],["pRipple","",1,"p-ripple","p-element","my-3","mx-1","flex","align-items-center","cursor-pointer","p-3","lg:hidden","lg:justify-content-center","hover:bg-gray-800","border-round","text-300","hover:text-0","transition-duration-150","transition-colors",3,"click"],[1,"pi","pi-bars","mr-1","lg:ml-1",
"text-base","lg:text-xl"],["ng","","serve","",1,"p-ink"],["src","images/mythtv.png","alt","Image","height","80",1,"py-2","pl-1"],[1,"hidden","md:inline-flex"],[1,"toolbar","flex","flex-grow-1","align-items-end",2,"height","80px"],["pButton","","pRipple","","icon","pi
pi-angle-up",1,"p-button-text","lg:col-offset-3","p-button-secondary",3,"pTooltip","click"],[1,"pr-2","toolbar",2,"height","80px"],["pRipple","",1,"toolbar","p-ripple","p-element","my-2","mx-2","flex","align-items-center","cursor-pointer","p-3","md:hidden","md:justify-content-center","hover:bg-gray-800","border-round","text-300","hover:text-0","transition-duration-150","transition-colors",2,"height","80px",3,"click"],[1,"pi","pi-ellipsis-v","mr-1","md:mr-0","text-base","md:text-xl"],[1,"toolbar","list-none","p-0","m-0","md:flex","md:align-items-center","select-none","md:flex-row","surface-section","border-1","md:border-none","surface-border","right-0","top-100","z-2","shadow-2","md:shadow-none","absolute","md:static",3,
"hidden"],[1,"toolbar",2,"height","80px"],["pRipple","","tooltipPosition","bottom",1,"p-ripple","p-element","my-3","mx-1","flex","align-items-center","cursor-pointer","p-2","lg:justify-content-center","hover:bg-gray-800","border-round","text-300","hover:text-0","transition-duration-150","transition-colors",3,"pTooltip","click"],[4,"ngIf"],[1,"font-medium","inline","md:hidden"],[1,"p-ink"],["pRipple","","tooltipPosition","bottom",1,"p-ripple","p-element","my-3","mx-1","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,"pTooltip","click"],[1,"mr-2","lg:mr-0",2,"width","32px","height","32px",3,"src"],[1,"mr-2","lg:mr-0",2,"width","32px",3,"src"],[1,"toolbar","block","flex","flex-grow-1","justify-content-center","align-items-end",2,"height","2rem"],["pButton","","pRipple","","icon","pi
pi-angle-down",1,"p-button-text","p-button-secondary",3,"pTooltip",
"click"],["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"],["selectionMode","single","sortField","NativeLanguage","sortMode","single","scrollHeight","500px","responsiveLayout","scroll",3,"value","paginator","scrollable"],[1,"font-bold"]],template:function(e,n){if(1&e&&(l(0,"div",0),_(1,MW,34,21,"div",1),_(2,kW,3,3,"ng-template",null,2,we),c(),l(4,"p-overlayPanel",3,4),_(6,RW,3,3,"ng-template",5),c(),l(7,"p-overlayPanel",3,6),_(9,OW,2,3,"ng-template",5),c()),2&e){const
s=F(3);a(1),p("ngIf",n.showTopBar)("ngIfElse",s),a(3),q(A(8,AW)),p("showCloseIcon",!0),a(3),q(A(9,PW)),p("showCloseIcon",!0)}},directives:[Q,bt,On,Kt,q9,ne,Dn,SU,j2],pipes:[ce
],styles:[".toolbar[_ngcontent-%COMP%]{background-color:#000;color:#4682b4}.theme-image[_ngcontent-%COMP%]{width:50px}"]}),t})(),NW=(()=>{class
t{constructor(e){this.dataService=e}ngOnInit(){}}return t.\u0275fac=function(e){return
new(e||t)(D(Ll))},t.\u0275cmp=z({type:t,selectors:[["app-sidenav"]],decls:32,vars:25,consts:[[1,"navbar","flex","relative","lg:static","surface-ground"],["id","sidebar",1,"bg-gray-900","lg:block","flex-shrink-0","absolute","lg:static","left-0","top-0","z-2","border-gray-800","w-18rem","lg:w-5rem","select-none",3,"hidden"],[1,"flex","flex-column","h-full"],[1,"mt-1","select-none"],[1,"list-none","p-3","lg:py-3","lg:px-2","m-0"],[3,"routerLink","pTooltip","tooltipDisabled","click"],["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"],["pRipple","",1,"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-cog","mr-2","lg:mr-0","text-base","lg:text-xl"],[1,"pi","pi-map","mr-2","lg:mr-0","text-base","lg:text-xl"],[1,"contentarea","px-0","lg:px-3","w-full"]],template:function(e,n){1&e&&(de(0),l(1,"div",0)(2,"div",1)(3,"div",2)(4,"div",3)(5,"ul",4)(6,"li",5),C("click",function(){return
n.dataService.showSidebar(!0)}),m(7,"translate"),l(8,"a",6),k(9,"i",7),l(10,"span",8),g(11),m(12,"translate"),c(),k(13,"span",9),c()(),l(14,"li",5),C("click",function(){return
n.dataService.showSidebar(!0)}),m(15,"translate"),l(16,"a",10),k(17,"i",11),l(18,"span",8),g(19),m(20,"translate"),c(),k(21,"span",9),c()(),l(22,"li",5),C("click",function(){return
n.dataService.showSidebar(!0)}),m(23,"translate"),l(24,"
a",10),k(25,"i",12),l(26,"span",8),g(27),m(28,"translate"),c(),k(29,"span",9),c()()()()()(),l(30,"div",13),k(31,"router-outlet"),c()(),pe()),2&e&&(a(2),p("hidden",n.dataService.m_showSidebar),a(4),x("pTooltip",f(7,13,"navbar.dashboard")),p("routerLink","dashboard/status")("tooltipDisabled",!1===n.dataService.m_showSidebar),a(5),S(f(12,15,"navbar.dashboard")),a(3),x("pTooltip",f(15,17,"navbar.backendSetup")),p("routerLink","setupwizard/dbsetup")("tooltipDisabled",!1===n.dataService.m_showSidebar),a(5),S(f(20,19,"navbar.backendSetup")),a(3),x("pTooltip",f(23,21,"dashboard.programguide")),p("routerLink","dashboard/program-guide")("tooltipDisabled",!1===n.dataService.m_showSidebar),a(5),S(f(28,23,"dashboard.programguide")))},directives:[gd,Kt,bt,Ml],pipes:[ce],styles:[".sidebar[_ngcontent-%COMP%]{width:70px;height:100%;margin:0}.navbar[_ngcontent-%COMP%]{min-height:calc(100vh
- 85px);max-height:calc(100vh -
85px)}.contentarea[_ngcontent-%COMP%]{overflow:scroll;height:calc(100vh - 85px)}
"]}),t})(),VW=(()=>{class
t{constructor(e,n){this.config=e,this.translate=n,this.title="MythTV
Backend",n.setDefaultLang("en_US"),n.use(localStorage.getItem("Language")||"en_US"),n.get("primeng").subscribe(s=>this.config.setTranslation(s)),this.config.ripple=!0}}return
t.\u0275fac=function(e){return
new(e||t)(D(zn),D(Oe))},t.\u0275cmp=z({type:t,selectors:[["app-root"]],decls:2,vars:0,template:function(e,n){1&e&&k(0,"app-navbar")(1,"app-sidenav")},directives:[FW,NW],styles:[""]}),t})();const
BW=["langform"],HW=["countryrow"],qW=["languagerow"];function
GW(t,i){1&t&&(g(0),m(1,"translate")),2&t&&T("
",f(1,1,"setupwizard.localSetup")," ")}function
UW(t,i){1&t&&(g(0),m(1,"translate")),2&t&&T("
",f(1,1,"setupwizard.countryAndLanguage")," ")}function
zW(t,i){1&t&&(l(0,"h2"),g(1),m(2,"translate"),c()),2&t&&(a(1),S(f(2,1,"setupwizard.selectCountry")))}function
jW(t,i){if(1&t&&(l(0,"div",18,19),k(2,"img",20),l(3,"pre")(4,"span",21),g(5),c(),g(6),c()()),2&t){const
e=i.$implicit;ie("id",e.Code)
,a(2),Bn("src","images/locale/",e.Image,"",ln),a(3),S(e.Country),a(1),We("",null!==e.NativeCountry?"
- "+e.NativeCountry:""," (",e.Code,")")}}function
$W(t,i){if(1&t&&(l(0,"div",22),k(1,"p-message",23),m(2,"translate"),c()),2&t){const
e=d(2);a(1),La("text","",f(2,2,"setupwizard.selectedCountry"),"
",e.m_wizardData.Country.Country,"")}}function
WW(t,i){1&t&&(l(0,"div",22),k(1,"p-message",24),m(2,"translate"),c()),2&t&&(a(1),x("text",f(2,1,"setupwizard.noCountry")))}function
KW(t,i){1&t&&(l(0,"h2"),g(1),m(2,"translate"),c()),2&t&&(a(1),S(f(2,1,"setupwizard.selectLanguage")))}function
QW(t,i){if(1&t&&(l(0,"div",18,25),k(2,"img",20),l(3,"pre")(4,"span",21),g(5),c(),g(6),c()()),2&t){const
e=i.$implicit;ie("id",e.Code),a(2),Bn("src","images/locale/",e.Image,"",ln),a(3),S(e.Language),a(1),We("
- ",e.NativeLanguage," (",e.Code,")")}}function
JW(t,i){if(1&t&&(l(0,"div",22),k(1,"p-message",23),m(2,"translate"),c()),2&t){const
e=d(2);a(1),La("text","",f(2,2,"setupwizard.selectedLanguage"),"
",
e.m_wizardData.Language.NativeLanguage,"")}}function
YW(t,i){1&t&&(l(0,"div",22),k(1,"p-message",26),m(2,"translate"),c()),2&t&&(a(1),x("text",f(2,1,"setupwizard.noLanguage")))}const
aS=function(){return{"max-height":"460px","min-height":"460px"}};function
ZW(t,i){if(1&t){const
e=I();l(0,"div",8)(1,"div",9)(2,"p-listbox",10),C("ngModelChange",function(s){return
v(e),d().m_wizardData.Country=s}),_(3,zW,3,3,"ng-template",11),_(4,jW,7,5,"ng-template",12),c(),_(5,$W,3,4,"div",13),_(6,WW,3,3,"ng-template",null,14,we),c(),l(8,"div",15)(9,"p-listbox",16),C("ngModelChange",function(s){return
v(e),d().m_wizardData.Language=s}),_(10,KW,3,3,"ng-template",11),_(11,QW,7,5,"ng-template",12),c(),_(12,JW,3,4,"div",13),_(13,YW,3,3,"ng-template",null,17,we),c()()}if(2&t){const
e=F(7),n=F(14),s=d();a(2),p("options",s.m_countries)("ngModel",s.m_wizardData.Country)("multiple",!1)("filter",!0)("listStyle",A(14,aS)),a(3),p("ngIf",""!=s.m_wizardData.Country.Code)("ngIfElse",e),a(4),p("options",s.m_language
s)("ngModel",s.m_wizardData.Language)("multiple",!1)("filter",!0)("listStyle",A(15,aS)),a(3),p("ngIf",""!=s.m_wizardData.Language.Code)("ngIfElse",n)}}function
XW(t,i){1&t&&(k(0,"p-message",23),m(1,"translate")),2&t&&x("text",f(1,1,"common.savesuccess"))}function
eK(t,i){1&t&&(k(0,"p-message",24),m(1,"translate")),2&t&&x("text",f(1,1,"common.networkfail"))}function
tK(t,i){if(1&t){const
e=I();l(0,"div",27)(1,"div",28),_(2,XW,2,3,"p-message",29),_(3,eK,2,3,"p-message",30),c(),l(4,"p-button",31),C("onClick",function(){v(e);const
s=d(),r=F(2);return
s.saveForm(),r.form.markAsPristine()}),m(5,"translate"),c(),l(6,"p-button",32),C("onClick",function(){return
v(e),d().router.navigate(["setupwizard/dbsetup"])}),m(7,"translate"),c(),l(8,"p-button",33),C("onClick",function(){return
v(e),d().router.navigate(["setupwizard/general"])}),m(9,"translate"),c()()}if(2&t){const
e=d(),n=F(2);a(2),p("ngIf",e.successCount>0&&e.successCount==e.expectedCount&&0==e.errorCount&&!n.dirty),a(1),p("ngIf",e.err
orCount>0),a(1),x("label",f(5,7,"common.save")),p("disabled",!n.dirty||e.setupService.schedulingEnabled),a(2),x("label",f(7,9,"common.back")),a(2),x("label",f(9,11,"common.next")),p("disabled",""==e.m_wizardData.Country.Code||""==e.m_wizardData.Language.Code)}}let
nK=(()=>{class
t{constructor(e,n,s,r,o,u){this.router=e,this.translate=n,this.setupService=s,this.configService=r,this.wizardService=o,this.mythService=u,this.m_countries=[],this.m_languages=[],this.successCount=0,this.errorCount=0,this.expectedCount=0,this.warningText="settings.common.warning",this.saveObserver={next:h=>{h.bool?(this.successCount++,this.successCount>=this.expectedCount&&localStorage.setItem("Language",this.m_wizardData.Language.Code),this.translate.use(this.m_wizardData.Language.Code)):(this.errorCount++,this.currentForm&&this.currentForm.form.markAsDirty())},error:h=>{console.error(h),this.errorCount++,this.currentForm&&this.currentForm.form.markAsDirty()}},this.translate.get(this.warningText).subscribe(
h=>{this.warningText=h})}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(),setTimeout(()=>this.scrollIntoView(),1e3)}ngAfterViewInit(){}scrollIntoView(){if(""!=this.m_wizardData.Country.Code){const
e=this.countryRowElement.find(n=>n.nativeElement.getAttribute("id")===this.m_wizardData.Country.Code);e?e.nativeElement.scrollIntoView({behavior:"instant",inline:"start",block:"center"}):console.log("Failed
to find element by ID")}if(""!=this.m_wizardData.Language.Code){const
e=this.languageRowElement.find(n=>n.nativeElement.getAttribute("id")===this.m_wizardData.Language.Code);e&&e.nativeElement.scrollIntoView({behavior:"instant",inline:"start",block:"center"})}null!=this.wizardService.m_topElement&&this.wizardService.m_topElement.nativeElement.scrollIntoView({behavior:"instant",block:"start"})}sav
eForm(){this.successCount=0,this.errorCount=0,this.expectedCount=2,this.mythService.PutSetting({HostName:"_GLOBAL_",Key:"Country",Value:this.m_wizardData.Country.Code}).subscribe(this.saveObserver),this.mythService.PutSetting({HostName:"_GLOBAL_",Key:"Language",Value:this.m_wizardData.Language.Code}).subscribe(this.saveObserver)}confirm(e){return
oe(window.confirm(e))}canDeactivate(){return!this.currentForm||!this.currentForm.dirty||this.confirm(this.warningText)}onWindowClose(e){this.currentForm&&this.currentForm.dirty&&(e.preventDefault(),e.returnValue=!1)}}return
t.\u0275fac=function(e){return
new(e||t)(D(It),D(Oe),D(Me),D(zo),D(xd),D(qt))},t.\u0275cmp=z({type:t,selectors:[["app-selectlanguage"]],viewQuery:function(e,n){if(1&e&&(W(BW,5),W(HW,5,De),W(qW,5,De)),2&e){let
s;V(s=B())&&(n.currentForm=s.first),V(s=B())&&(n.countryRowElement=s),V(s=B())&&(n.languageRowElement=s)}},hostBindings:function(e,n){1&e&&C("beforeunload",function(r){return
n.onWindowClose(r)},!1,ni)},decls:8,vars
:0,consts:[[1,"wizard-content","m-0","md:m-3"],["name","langform",1,"mx-0","md:mx-3"],["langform","ngForm"],[1,"m-0","md:m-5"],["pTemplate","title"],["pTemplate","subtitle"],["pTemplate","content"],["pTemplate","footer"],[1,"grid","m-0","md:m-3"],[1,"col-12","md:col-6","pt-2"],["optionLabel","Country","name","countries",3,"options","ngModel","multiple","filter","listStyle","ngModelChange"],["pTemplate","header"],["pTemplate","item"],["class","pt-5",4,"ngIf","ngIfElse"],["noCountry",""],[1,"col-12","md:col-6"],["optionLabel","Language","name","languages",3,"options","ngModel","multiple","filter","listStyle","ngModelChange"],["noLanguage",""],[1,"language-item"],["countryrow",""],[1,"pr-3",2,"width","70px",3,"src"],[1,"font-bold"],[1,"pt-5"],["severity","success",3,"text"],["severity","error",3,"text"],["languagerow",""],["severity","error",1,"pt-2",3,"text"],[1,"grid","nogutter","m-5"],[1,"col-12"],["severity","success",3,"text",4,"ngIf"],["severity","error",3,"text",4,"ngIf"],["icon
","pi
pi-save","iconPos","left",1,"col","pr-1",3,"label","disabled","onClick"],["icon","pi
pi-angle-left","iconPos","left",1,"pr-3",3,"label","onClick"],["icon","pi
pi-angle-right","iconPos","right",3,"label","disabled","onClick"]],template:function(e,n){1&e&&(l(0,"div",0)(1,"form",1,2)(3,"p-card",3),_(4,GW,2,3,"ng-template",4),_(5,UW,2,3,"ng-template",5),_(6,ZW,15,16,"ng-template",6),_(7,tK,10,13,"ng-template",7),c()()())},directives:[ze,Ue,He,Ne,ne,os,Te,_e,Q,qe,ve],pipes:[ce],styles:[".language-item{display:flex;align-items:center}@media
screen and (max-width:
48rem){.p-card-body,.p-card-content,.p-accordion-content{padding:0rem!important}}\n"],encapsulation:2}),t})();class
iK{constructor(i,e){this._document=e;const
n=this._textarea=this._document.createElement("textarea"),s=n.style;s.position="fixed",s.top=s.opacity="0",s.left="-999em",n.setAttribute("aria-hidden","true"),n.value=i,this._document.body.appendChild(n)}copy(){const
i=this._textarea;let e=!1;try{if(i){const n=this._
document.activeElement;i.select(),i.setSelectionRange(0,i.value.length),e=this._document.execCommand("copy"),n&&n.focus()}}catch(n){}return
e}destroy(){const i=this._textarea;i&&(i.remove(),this._textarea=void 0)}}let
lS=(()=>{class t{constructor(e){this._document=e}copy(e){const
n=this.beginCopy(e),s=n.copy();return n.destroy(),s}beginCopy(e){return new
iK(e,this._document)}}return t.\u0275fac=function(e){return
new(e||t)(K(Xt))},t.\u0275prov=X({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();const
sK=["databaseForm"];function
rK(t,i){1&t&&(g(0),m(1,"translate")),2&t&&T("
",f(1,1,"setupwizard.databaseSetup")," ")}function
oK(t,i){1&t&&(g(0),m(1,"translate")),2&t&&T("
",f(1,1,"setupwizard.enterDBLoginDetails")," ")}function
aK(t,i){1&t&&(l(0,"div")(1,"small",42),g(2),m(3,"translate"),c()()),2&t&&(a(2),S(f(3,1,"setupwizard.IPorAddressRequired")))}function
lK(t,i){1&t&&(l(0,"div")(1,"small",43),g(2),m(3,"translate"),c()()),2&t&&(a(2),S(f(3,1,"setupwizard.portRequired")))}functio
n
cK(t,i){1&t&&(l(0,"div")(1,"small",43),g(2),m(3,"translate"),c()()),2&t&&(a(2),S(f(3,1,"setupwizard.userRequired")))}function
uK(t,i){1&t&&(l(0,"div")(1,"small",43),g(2),m(3,"translate"),c()()),2&t&&(a(2),S(f(3,1,"setupwizard.passwordRequired")))}function
dK(t,i){1&t&&(l(0,"div")(1,"small",43),g(2),m(3,"translate"),c()()),2&t&&(a(2),S(f(3,1,"setupwizard.databaseNameRequired")))}function
pK(t,i){if(1&t){const
e=I();l(0,"div",30)(1,"label",44),g(2),m(3,"translate"),c(),l(4,"input",45,46),C("ngModelChange",function(s){return
v(e),d(2).database.LocalHostName=s}),c(),l(6,"small",47),g(7),m(8,"translate"),c()()}if(2&t){const
e=d(2);a(2),S(f(3,3,"setupwizard.LocalHostName_label")),a(2),p("ngModel",e.database.LocalHostName),a(3),S(f(8,5,"setupwizard.LocalHostName_desc"))}}function
hK(t,i){if(1&t){const
e=I();l(0,"div",8)(1,"label",48),g(2),m(3,"translate"),c(),l(4,"p-inputNumber",49),C("ngModelChange",function(s){return
v(e),d(2).database.WOLReconnect=s}),c(),l(5,"small",32),g(6),m(7,"tra
nslate"),c()()}if(2&t){const e=d(2);a(2),T("
",f(3,8,"settings.vsource.WOLReconnect_label"),"
"),a(2),p("ngModel",e.database.WOLReconnect)("min",0)("max",60)("step",1)("useGrouping",!1)("showButtons",!0),a(2),T("
",f(7,10,"settings.vsource.WOLReconnect_desc")," ")}}function
mK(t,i){if(1&t){const
e=I();l(0,"div",8)(1,"label",50),g(2),m(3,"translate"),c(),l(4,"p-inputNumber",51),C("ngModelChange",function(s){return
v(e),d(2).database.WOLRetry=s}),c(),l(5,"small",32),g(6),m(7,"translate"),c()()}if(2&t){const
e=d(2);a(2),T(" ",f(3,8,"settings.vsource.WOLRetry_label"),"
"),a(2),p("ngModel",e.database.WOLRetry)("min",1)("max",10)("step",1)("useGrouping",!1)("showButtons",!0),a(2),T("
",f(7,10,"settings.vsource.WOLRetry_desc")," ")}}function
fK(t,i){if(1&t){const
e=I();l(0,"div",30)(1,"label",52),g(2),m(3,"translate"),c(),l(4,"input",53,54),C("ngModelChange",function(s){return
v(e),d(2).database.WOLCommand=s}),c(),l(6,"small",55),g(7),m(8,"translate"),c()()}if(2&t){const
e=d(2);a(2),S(f(3,
3,"setupwizard.WOLCommand_label")),a(2),p("ngModel",e.database.WOLCommand),a(3),S(f(8,5,"setupwizard.WOLCommand_desc"))}}function
gK(t,i){1&t&&(l(0,"div"),k(1,"p-message",56),m(2,"translate"),c()),2&t&&(a(1),x("text",f(2,1,"setupwizard.connectedToDatabase")))}function
_K(t,i){1&t&&(l(0,"div",57,39),k(2,"p-message",58),m(3,"translate"),c()),2&t&&(a(2),x("text",f(3,1,"setupwizard.notConnectedToDatabase")))}const
cS=function(t){return{Name:t}};function
bK(t,i){if(1&t&&(l(0,"div"),k(1,"p-message",56),m(2,"translate"),c()),2&t){const
e=d(2);a(1),x("text",Dt(2,1,"setupwizard.dbsetup.havedb",U(4,cS,e.m_wizardData.Database.Name)))}}function
vK(t,i){if(1&t&&(l(0,"div",59,40),k(2,"p-message",60),m(3,"translate"),c()),2&t){const
e=d(2);a(2),x("text",Dt(3,1,"setupwizard.dbsetup.havenotdb",U(4,cS,e.m_wizardData.Database.Name)))}}const
CK=function(t){return{SchemaVersion:t}};function
yK(t,i){if(1&t&&(l(0,"div"),k(1,"p-message",61),m(2,"translate"),c()),2&t){const
e=d(2);a(1),x("text",Dt(2,1,"setu
pwizard.dbsetup.schemaver",U(4,CK,e.m_wizardData.DatabaseStatus.DatabaseStatus.SchemaVersion)))}}function
wK(t,i){1&t&&(l(0,"div",62,40),k(2,"p-message",63),m(3,"translate"),c()),2&t&&(a(2),x("text",f(3,1,"setupwizard.databaseSchemaUnknown")))}function
TK(t,i){if(1&t){const
e=I();l(0,"div")(1,"p"),g(2),m(3,"translate"),c(),l(4,"div",68)(5,"div",69),g(6,"
Sql Server Type:
"),c(),l(7,"div",70)(8,"p-radioButton",71),C("ngModelChange",function(s){return
v(e),d(3).dbtype=s})("ngModelChange",function(){return
v(e),d(3).setCommandList()}),c(),l(9,"label",72),g(10,"MySql"),c()(),l(11,"div",73)(12,"p-radioButton",74),C("ngModelChange",function(s){return
v(e),d(3).dbtype=s})("ngModelChange",function(){return
v(e),d(3).setCommandList()}),c(),l(13,"label",75),g(14,"MariaDB"),c()()(),l(15,"table",76)(16,"tr")(17,"td",65),g(18),c(),l(19,"td",66)(20,"button",67),C("click",function(){v(e);const
s=d(3);return
s.copyToclipboard(s.commandlist)}),m(21,"translate"),c()()()(),l(22,"p"),g(23),m(24,"transl
ate"),c(),l(25,"table")(26,"tr")(27,"td",65),g(28),c(),l(29,"td",66)(30,"button",67),C("click",function(){v(e);const
s=d(3);return
s.copyToclipboard(s.mySqlCommand)}),m(31,"translate"),c()()()()()}if(2&t){const
e=d(3);a(2),T(" ",f(3,8,"setupwizard.sqlinstructions"),"
"),a(6),p("ngModel",e.dbtype),a(4),p("ngModel",e.dbtype),a(6),T("
",e.commandlist,"
"),a(2),x("pTooltip",f(21,10,"settings.common.clipboard_tooltip")),a(3),S(f(24,12,"setupwizard.runcommand")),a(5),T("
",e.mySqlCommand,"
"),a(2),x("pTooltip",f(31,14,"settings.common.clipboard_tooltip"))}}function
SK(t,i){if(1&t){const
e=I();l(0,"div")(1,"h2"),g(2),m(3,"translate"),c(),_(4,TK,32,16,"div",13),l(5,"p",64),g(6),m(7,"translate"),c(),l(8,"table")(9,"tr")(10,"td",65),g(11),c(),l(12,"td",66)(13,"button",67),C("click",function(){v(e);const
s=d(2);return
s.copyToclipboard(s.tzCommand)}),m(14,"translate"),c()()()(),l(15,"p"),g(16),m(17,"translate"),c(),l(18,"p"),g(19),m(20,"translate"),c(),l(21,"p"),g(22),m(23,"translate"),c()()}i
f(2&t){const
e=d(2);a(2),S(f(3,8,"common.instructions")),a(2),p("ngIf",e.connectionFail),a(2),S(f(7,10,"setupwizard.tztables")),a(5),T("
",e.tzCommand,"
"),a(2),x("pTooltip",f(14,12,"settings.common.clipboard_tooltip")),a(3),T("",f(17,14,"setupwizard.ignoremessages"),"
"),a(3),S(f(20,16,"setupwizard.savethis")),a(3),S(f(23,18,"setupwizard.restartbe"))}}const
xK=function(t){return{"is-invalid":t}};function DK(t,i){if(1&t){const
e=I();l(0,"div",7)(1,"div",8)(2,"label",9),g(3),m(4,"translate"),c(),l(5,"input",10,11),C("ngModelChange",function(s){return
v(e),d().database.Host=s}),c(),l(7,"small",12),g(8),m(9,"translate"),c(),_(10,aK,4,3,"div",13),c(),l(11,"div",8)(12,"label",14),g(13),m(14,"translate"),c(),l(15,"input",15,16),C("ngModelChange",function(s){return
v(e),d().database.Port=s}),c(),l(17,"small",17),g(18),m(19,"translate"),c(),_(20,lK,4,3,"div",13),c(),l(21,"div",8)(22,"label",18),g(23),m(24,"translate"),c(),l(25,"input",19,20),C("ngModelChange",function(s){return
v(e),d().dat
abase.UserName=s}),c(),l(27,"small",21),g(28),m(29,"translate"),c(),_(30,cK,4,3,"div",13),c(),l(31,"div",8)(32,"label",22),g(33),m(34,"translate"),c(),l(35,"input",23,24),C("ngModelChange",function(s){return
v(e),d().database.Password=s}),c(),l(37,"small",25),g(38),m(39,"translate"),c(),_(40,uK,4,3,"div",13),c(),l(41,"div",8)(42,"label",26),g(43),m(44,"translate"),c(),l(45,"input",27,28),C("ngModelChange",function(s){return
v(e),d().database.Name=s}),c(),l(47,"small",29),g(48),m(49,"translate"),c(),_(50,dK,4,3,"div",13),c(),l(51,"div",30)(52,"p-checkbox",31),C("ngModelChange",function(s){return
v(e),d().database.LocalEnabled=s}),m(53,"translate"),c(),l(54,"small",32),g(55),m(56,"translate"),c()(),_(57,pK,9,7,"div",33),l(58,"div",30)(59,"p-checkbox",34),C("ngModelChange",function(s){return
v(e),d().database.WOLEnabled=s}),m(60,"translate"),c(),l(61,"small",32),g(62),m(63,"translate"),c()(),_(64,hK,8,12,"div",35),_(65,mK,8,12,"div",35),_(66,fK,9,7,"div",33),c(),l(67,"div")(68,"p-butto
n",36),C("click",function(){return
v(e),d().saveForm(!1)}),m(69,"translate"),c()(),l(70,"div",37),_(71,gK,3,3,"div",38),_(72,_K,4,3,"ng-template",null,39,we),_(74,bK,3,6,"div",38),_(75,vK,4,6,"ng-template",null,40,we),_(77,yK,3,6,"div",38),_(78,wK,4,3,"ng-template",null,41,we),c(),_(80,SK,24,20,"div",13)}if(2&t){const
e=F(6),n=F(16),s=F(26),r=F(36),o=F(46),u=F(73),h=F(76),b=F(79),y=d(),w=F(2);a(3),S(f(4,42,"setupwizard.MySQLServerIP")),a(2),p("ngModel",y.database.Host)("ngClass",U(72,xK,e.invalid)),a(3),S(f(9,44,"setupwizard.ipaddress_help")),a(2),p("ngIf",e.invalid&&(e.dirty||e.touched)),a(3),S(f(14,46,"setupwizard.MySQLServerPort")),a(2),p("ngModel",y.database.Port),a(3),S(f(19,48,"setupwizard.port_help")),a(2),p("ngIf",n.invalid&&(n.dirty||n.touched)),a(3),S(f(24,50,"setupwizard.MySQLUser")),a(2),p("ngModel",y.database.UserName),a(3),S(f(29,52,"setupwizard.user_help")),a(2),p("ngIf",s.invalid&&(s.dirty||s.touched)),a(3),S(f(34,54,"setupwizard.MySQLPassword")),a(2),p("ngModel",y.d
atabase.Password),a(3),S(f(39,56,"setupwizard.password_help")),a(2),p("ngIf",r.invalid&&(r.dirty||r.touched)),a(3),S(f(44,58,"setupwizard.MySQLDatabaseName")),a(2),p("ngModel",y.database.Name),a(3),S(f(49,60,"setupwizard.dbname_help")),a(2),p("ngIf",o.invalid&&(o.dirty||o.touched)),a(2),x("label",f(53,62,"setupwizard.LocalEnabled_label")),p("ngModel",y.database.LocalEnabled)("binary",!0),a(3),T("
",f(56,64,"setupwizard.LocalEnabled_desc"),"
"),a(2),p("ngIf",y.database.LocalEnabled),a(2),x("label",f(60,66,"setupwizard.WOLEnabled_label")),p("ngModel",y.database.WOLEnabled)("binary",!0),a(3),T("
",f(63,68,"setupwizard.WOLEnabled_desc"),"
"),a(2),p("ngIf",y.database.WOLEnabled),a(1),p("ngIf",y.database.WOLEnabled),a(1),p("ngIf",y.database.WOLEnabled),a(2),x("label",f(69,70,"setupwizard.testConnection")),p("disabled",null==w.invalid||w.invalid),a(3),p("ngIf",y.m_wizardData.DatabaseStatus.DatabaseStatus.Connected)("ngIfElse",u),a(3),p("ngIf",y.m_wizardData.DatabaseStatus.DatabaseStatus.Ha
veDatabase)("ngIfElse",h),a(3),p("ngIf",y.m_wizardData.DatabaseStatus.DatabaseStatus.Connected&&y.m_wizardData.DatabaseStatus.DatabaseStatus.HaveDatabase)("ngIfElse",b),a(3),p("ngIf",y.setupService.isDatabaseIgnored)}}function
MK(t,i){1&t&&(k(0,"p-message",83),m(1,"translate")),2&t&&x("text",f(1,1,"common.savesuccess"))}function
kK(t,i){1&t&&(k(0,"p-message",60),m(1,"translate")),2&t&&x("text",f(1,1,"common.networkfail"))}function
IK(t,i){1&t&&(k(0,"p-message",60),m(1,"translate")),2&t&&x("text",f(1,1,"setupwizard.connectionfail"))}function
EK(t,i){if(1&t){const
e=I();l(0,"div",77)(1,"div",78),_(2,MK,2,3,"p-message",79),_(3,kK,2,3,"p-message",80),_(4,IK,2,3,"p-message",80),c(),l(5,"p-button",81),C("onClick",function(){v(e);const
s=d(),r=F(2);return
s.saveForm(!0),r.form.markAsPristine()}),m(6,"translate"),c(),l(7,"p-button",82),C("onClick",function(){return
v(e),d().router.navigate(["setupwizard/selectlanguage"])}),m(8,"translate"),c()()}if(2&t){const
e=d(),n=F(2);a(2),p("ngIf",e.su
ccessCount>0&&e.successCount==e.expectedCount&&0==e.errorCount&&!n.dirty),a(1),p("ngIf",e.errorCount>0),a(1),p("ngIf",e.connectionFail),a(1),x("label",f(6,7,"common.save")),p("disabled",(!n.dirty||e.setupService.schedulingEnabled)&&!e.setupService.isDatabaseIgnored),a(2),x("label",f(8,9,"common.next")),p("disabled",e.setupService.isDatabaseIgnored)}}let
RK=(()=>{class
t{constructor(e,n,s,r,o,u,h,b){this.router=e,this.configService=n,this.mythService=s,this.wizardService=r,this.translate=o,this.messageService=u,this.setupService=h,this.clipboard=b,this.successCount=0,this.errorCount=0,this.expectedCount=2,this.connectionFail=!1,this.commandlist="",this.mySqlCommand="sudo
mysql -u root < setup.sql",this.tzCommand="mysql_tzinfo_to_sql
/usr/share/zoneinfo | sudo mysql -u root
mysql",this.dbtype="MySQL",this.msg_testconnection="setupwizard.testConnection",this.msg_connectionsuccess="setupwizard.connectionsuccess",this.msg_connectionfail="setupwizard.connectionfail",this.warningText="sett
ings.common.warning",this.saveObserver={next:y=>{y.bool?this.successCount++:(this.errorCount++,this.currentForm&&this.currentForm.form.markAsDirty())},error:y=>{console.error(y),this.errorCount++,this.currentForm&&this.currentForm.form.markAsDirty()}},this.translate.get(this.msg_testconnection).subscribe(y=>this.msg_testconnection=y),this.translate.get(this.msg_connectionsuccess).subscribe(y=>this.msg_connectionsuccess=y),this.translate.get(this.msg_connectionfail).subscribe(y=>this.msg_connectionfail=y),this.translate.get(this.warningText).subscribe(y=>this.warningText=y)}ngOnInit(){this.wizardService.initDatabaseStatus(),this.m_wizardData=this.wizardService.getWizardData(),this.database=Object.assign({},this.m_wizardData.Database),this.wizardService.dbPromise.then(()=>{this.database=Object.assign({},this.m_wizardData.Database)},()=>this.errorCount++)}copyToclipboard(e){this.clipboard.copy(e)}saveForm(e){this.successCount=0,this.errorCount=0,this.expectedCount=1,this.connectionFail
=!1;const
n={HostName:this.database.Host,UserName:this.database.UserName,Password:this.database.Password,DBName:this.database.Name,dbPort:this.database.Port};this.commandlist="",this.mythService.TestDBSettings(n).subscribe(s=>{s.bool?e?this.configService.SetDatabaseCredentials(this.database).subscribe(this.saveObserver):this.messageService.add({severity:"success",life:5e3,summary:this.msg_testconnection,detail:this.msg_connectionsuccess}):(this.messageService.add({severity:"error",life:5e3,summary:this.msg_testconnection,detail:this.msg_connectionfail}),this.connectionFail=!0,this.setCommandList())})}setCommandList(){let
e="";"MySQL"==this.dbtype&&(e="WITH
mysql_native_password"),this.commandlist=`CREATE DATABASE IF NOT EXISTS
${this.database.Name};\nCREATE USER IF NOT EXISTS
'${this.database.UserName}'@'localhost' IDENTIFIED ${e} by
'${this.database.Password}';\nCREATE USER IF NOT EXISTS
'${this.database.UserName}'@'%' IDENTIFIED ${e} by
'${this.database.Password}';\nGRANT ALL ON $
{this.database.Name}.* TO '${this.database.UserName}'@'localhost';\nGRANT
ALL ON ${this.database.Name}.* TO
'${this.database.UserName}'@'%';`}confirm(e){return
oe(window.confirm(e))}canDeactivate(){return!this.currentForm||!this.currentForm.dirty||this.confirm(this.warningText)}onWindowClose(e){this.currentForm&&this.currentForm.dirty&&(e.preventDefault(),e.returnValue=!1)}}return
t.\u0275fac=function(e){return
new(e||t)(D(It),D(zo),D(qt),D(xd),D(Oe),D(Gi),D(Me),D(lS))},t.\u0275cmp=z({type:t,selectors:[["app-dbsetup"]],viewQuery:function(e,n){if(1&e&&W(sK,5),2&e){let
s;V(s=B())&&(n.currentForm=s.first)}},hostBindings:function(e,n){1&e&&C("beforeunload",function(r){return
n.onWindowClose(r)},!1,ni)},features:[Pe([Gi])],decls:8,vars:0,consts:[["name","databaseForm",1,"mx-0","md:mx-3"],["databaseForm","ngForm"],[1,"m-0","md: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,"label","block"],["pInputText","","id","ipaddress","type","text","aria-describedby","ipaddress-help","name","hostname","placeholder","Ex.
127.0.0.1 or
localhost","required","",1,"mb-2","form-control","w-full",3,"ngModel","ngClass","ngModelChange"],["host","ngModel"],["id","ipaddress-help"],[4,"ngIf"],["for","port",1,"label","block"],["pInputText","","id","port","type","number","aria-describedby","port-help","name","port","placeholder","Ex.
3306","min","0","max","65536",1,"mb-2","form-control","w-full",3,"ngModel","ngModelChange"],["port","ngModel"],["id","port-help"],["for","user",1,"label","block"],["pInputText","","id","user","type","text","aria-describedby","user-help","name","user","placeholder","Ex.
mythtv","required","",1,"mb-2","form-control","w-full",3,"ngModel","ngModelChange"],["user","ngModel"],["id","user-help"],["for","password",1,"label","block"],["pInputText","","id","password","type","text","aria-describedby","password-help","name","password",
"placeholder","Ex.
mythtv","required","",1,"mb-2","form-control","w-full",3,"ngModel","ngModelChange"],["password","ngModel"],["id","password-help"],["for","dbname",1,"label","block"],["pInputText","","id","dbname","type","text","aria-describedby","dbname-help","name","dbname","placeholder","Ex.
mythconverg","required","",1,"mb-2","form-control","w-full",3,"ngModel","ngModelChange"],["dbname","ngModel"],["id","dbname-help"],[1,"field","col-12"],["name","LocalEnabled",1,"mb-2","w-full","label","block",3,"ngModel","binary","label","ngModelChange"],[1,"block"],["class","field
col-12",4,"ngIf"],["name","WOLEnabled",1,"mb-2","w-full","label","block",3,"ngModel","binary","label","ngModelChange"],["class","field
col-12
md:col-6",4,"ngIf"],["type","button",1,"mr-1","p-button-raised","p-button-secondary",3,"label","disabled","click"],[1,"pt-4",2,"display","flex"],[4,"ngIf","ngIfElse"],["notconnected",""],["nodatabase",""],["noschema",""],["id","address-help",1,"p-error","block"],[1,"p-error"
,"block"],["for","LocalHostName",1,"label","block"],["pInputText","","id","LocalHostName","type","text","aria-describedby","LocalHostName-help","name","LocalHostName",1,"mb-2","form-control","w-full",3,"ngModel","ngModelChange"],["LocalHostName","ngModel"],["id","LocalHostName-help"],["for","WOLReconnect",1,"label","block"],["name","WOLReconnect","id","WOLReconnect",3,"ngModel","min","max","step","useGrouping","showButtons","ngModelChange"],["for","WOLRetry",1,"label","block"],["name","WOLRetry","id","WOLRetry",3,"ngModel","min","max","step","useGrouping","showButtons","ngModelChange"],["for","WOLCommand",1,"label","block"],["pInputText","","id","WOLCommand","type","text","aria-describedby","WOLCommand-help","name","WOLCommand",1,"mb-2","form-control","w-full",3,"ngModel","ngModelChange"],["WOLCommand","ngModel"],["id","WOLCommand-help"],["severity","success",1,"pr-2",3,"text"],[1,"pr-2","notconnected"],["severity","error",1,"",3,"text"],[1,"pr-2","nodatabase"],["severity","error",3
,"text"],["severity","info",1,"pr-2",3,"text"],[1,"pr-2","noschema"],["severity","info",3,"text"],[1,""],[1,"align-items-center","bg-blue-100","text-gray-900",2,"font-family","monospace"],[1,"align-items-center"],["pButton","","pRipple","","type","button","icon","pi
pi-copy",1,"p-button-rounded","p-button-text",3,"pTooltip","click"],[1,"flex","pb-3"],[1,"flex-none","flex","align-items-center","label","block","pr-5"],[1,"flex-none","flex","align-items-center","pr-5"],["name","dbtype","value","MySQL","inputId","mysql",3,"ngModel","ngModelChange"],["for","mysql"],[1,"flex-none","flex","align-items-center"],["name","dbtype","value","MariaDB","inputId","mariadb",3,"ngModel","ngModelChange"],["for","mariadb"],[2,"white-space","pre-line"],[1,"grid","nogutter","m-5"],[1,"col-12"],["severity","success",3,"text",4,"ngIf"],["severity","error",3,"text",4,"ngIf"],["icon","pi
pi-save","iconPos","left",1,"col","pr-1",3,"label","disabled","onClick"],["icon","pi
pi-angle-right","iconPos","right",1,"
pr-3",3,"label","disabled","onClick"],["severity","success",3,"text"]],template:function(e,n){1&e&&(k(0,"p-toast"),l(1,"form",0,1)(3,"p-card",2),_(4,rK,2,3,"ng-template",3),_(5,oK,2,3,"ng-template",4),_(6,DK,81,74,"ng-template",5),_(7,EK,9,11,"ng-template",6),c()())},directives:[Td,ze,Ue,He,Ne,ne,Ye,ll,Te,_e,Le,Q,Du,xu,Su,sn,pt,ve,qe,Sd,On,bt,Kt],pipes:[ce],styles:[".is-invalid{border-color:red}@media
screen and (max-width:
48rem){.p-card-body,.p-card-content,.p-accordion-content{padding:0rem!important}}\n"],encapsulation:2}),t})();const
LK=["hostaddress"];function
OK(t,i){1&t&&(g(0),m(1,"translate")),2&t&&T("
",f(1,1,"settings.hostaddress.title")," ")}function
AK(t,i){1&t&&(g(0),m(1,"translate")),2&t&&T("
",f(1,1,"settings.hostaddress.subtitle")," ")}function
PK(t,i){1&t&&(l(0,"div")(1,"small",40),g(2),m(3,"translate"),c()()),2&t&&(a(2),S(f(3,1,"setupwizard.portRequired")))}function
FK(t,i){1&t&&(l(0,"div")(1,"small",40),g(2),m(3,"translate"),c()()),2&t&&(a(2),S(f(3,1,"setupwizard.
portRequired")))}function
NK(t,i){1&t&&(l(0,"div")(1,"small",40),g(2),m(3,"translate"),c()()),2&t&&(a(2),T("
",f(3,1,"settings.hostaddress.pin_reqd")," "))}function
VK(t,i){1&t&&(l(0,"div")(1,"small",52),g(2,"IPv4
address"),c()())}function
BK(t,i){1&t&&(l(0,"div")(1,"small",40),g(2,"IPv6
address"),c()())}function HK(t,i){if(1&t){const
e=I();l(0,"div")(1,"div",9)(2,"label",41),g(3),m(4,"translate"),c(),l(5,"p-dropdown",42,43),C("ngModelChange",function(s){return
v(e),d(2).m_HostAddressData.BackendServerIP=s}),c(),l(7,"small",44),g(8),m(9,"translate"),c(),_(10,VK,3,0,"div",14),c(),l(11,"div",9)(12,"label",45),g(13),m(14,"translate"),c(),l(15,"p-dropdown",46,47),C("ngModelChange",function(s){return
v(e),d(2).m_HostAddressData.BackendServerIP6=s}),c(),l(17,"small",48),g(18),m(19,"translate"),c(),_(20,BK,3,0,"div",14),c(),l(21,"div",9)(22,"p-checkbox",49,50),C("ngModelChange",function(s){return
v(e),d(2).m_HostAddressData.AllowLinkLocal=s}),m(24,"translate"),c(),l(25,"small",51),g(26),m(
27,"translate"),c()()()}if(2&t){const
e=F(6),n=F(16),s=d(2);a(3),S(f(4,14,"settings.hostaddress.ipv4_label")),a(2),p("options",s.m_IPsV4)("ngModel",s.m_HostAddressData.BackendServerIP),a(3),T("
",f(9,16,"settings.hostaddress.ipv4_desc"),"
"),a(2),p("ngIf",e.invalid&&(e.dirty||e.touched)),a(3),T("
",f(14,18,"settings.hostaddress.ipv6_label"),"
"),a(2),p("options",s.m_IPsV6)("ngModel",s.m_HostAddressData.BackendServerIP6),a(3),T("
",f(19,20,"settings.hostaddress.ipv6_desc"),"
"),a(2),p("ngIf",n.invalid&&(n.dirty||n.touched)),a(2),x("label",f(24,22,"settings.hostaddress.listenlinklocal_label")),p("ngModel",s.m_HostAddressData.AllowLinkLocal)("binary",!0),a(4),T("
",f(27,24,"settings.hostaddress.listenlinklocal_desc"),"
")}}function
qK(t,i){1&t&&(l(0,"div")(1,"small",40),g(2,"Primary
IP address / DNS name is required"),c()())}function
GK(t,i){1&t&&(l(0,"div")(1,"small",53),g(2),m(3,"translate"),c()()),2&t&&(a(2),T("
",f(3,1,"settings.hostaddress.ismaster_hint")," "))}function
UK(t,i){1&
t&&(l(0,"div")(1,"small",54),g(2,"Hostname of master
backend is required"),c()())}const
uS=function(t){return{"is-invalid":t}};function zK(t,i){if(1&t){const
e=I();l(0,"div",7)(1,"p-fieldset",8),m(2,"translate"),l(3,"div",9)(4,"label",10),g(5),m(6,"translate"),c(),l(7,"input",11,12),C("ngModelChange",function(s){return
v(e),d().m_HostAddressData.BackendServerPort=s}),c(),l(9,"small",13),g(10),m(11,"translate"),c(),_(12,PK,4,3,"div",14),c(),l(13,"div",9)(14,"label",15),g(15),m(16,"translate"),c(),l(17,"input",16,17),C("ngModelChange",function(s){return
v(e),d().m_HostAddressData.BackendStatusPort=s}),c(),l(19,"small",18),g(20),m(21,"translate"),c(),_(22,FK,4,3,"div",14),c()(),l(23,"p-fieldset",8),m(24,"translate"),l(25,"div",9)(26,"label",19),g(27),m(28,"translate"),c(),l(29,"input",20,21),C("ngModelChange",function(s){return
v(e),d().m_HostAddressData.SecurityPin=s}),c(),l(31,"small",22),g(32),m(33,"translate"),c(),_(34,NK,4,3,"div",14),c()(),l(35,"p-fieldset",8),m(36,"translate"),l
(37,"div",9)(38,"p-checkbox",23,24),C("ngModelChange",function(s){return
v(e),d().m_HostAddressData.AllowConnFromAll=s}),m(40,"translate"),c(),l(41,"small",22),k(42,"div",25),m(43,"translate"),c()()(),l(44,"p-fieldset",8),m(45,"translate"),l(46,"div",9)(47,"p-checkbox",26,27),C("ngModelChange",function(s){return
v(e),d().m_HostAddressData.ListenOnAllIps=s}),m(49,"translate"),c(),l(50,"small",28),g(51),m(52,"translate"),c()(),_(53,HK,28,26,"div",14),c(),l(54,"p-fieldset",8),m(55,"translate"),l(56,"div",9)(57,"div",9)(58,"label",29),g(59),m(60,"translate"),c(),l(61,"p-dropdown",30,31),C("ngModelChange",function(s){return
v(e),d().m_HostAddressData.BackendServerAddr=s}),c(),l(63,"small",32),g(64),m(65,"translate"),c()(),_(66,qK,3,0,"div",14),c()(),l(67,"p-fieldset",8),m(68,"translate"),l(69,"div",9)(70,"p-checkbox",33,34),C("ngModelChange",function(s){return
v(e),d().m_HostAddressData.IsMasterBackend=s})("onChange",function(){return
v(e),d().setMaster()}),m(72,"translate"),c(),l(73,"sm
all",35),g(74),m(75,"translate"),c(),_(76,GK,4,3,"div",14),c(),l(77,"div",9)(78,"label",36),g(79),m(80,"translate"),c(),l(81,"input",37,38),C("ngModelChange",function(s){return
v(e),d().m_HostAddressData.MasterServerName=s}),c(),l(83,"small",39),k(84,"div",25),m(85,"translate"),c(),_(86,UK,3,0,"div",14),c()()()}if(2&t){const
e=F(8),n=F(18),s=F(30),r=F(62),o=F(82),u=d();a(1),x("legend",f(2,44,"settings.hostaddress.panel.ports")),a(4),T("
",f(6,46,"settings.hostaddress.backendport_label"),"
"),a(2),p("ngModel",u.m_HostAddressData.BackendServerPort)("ngClass",U(88,uS,e.invalid)),a(3),T("
",f(11,48,"settings.hostaddress.backendport_desc"),"
"),a(2),p("ngIf",e.invalid&&(e.dirty||e.touched)),a(3),T("
",f(16,50,"settings.hostaddress.statusport_label"),"
"),a(2),p("ngModel",u.m_HostAddressData.BackendStatusPort)("ngClass",U(90,uS,n.invalid)),a(3),S(f(21,52,"settings.hostaddress.statusport_desc")),a(2),p("ngIf",n.invalid&&(n.dirty||n.touched)),a(1),x("legend",f(24,54,"settings.hostaddress.pa
nel.pin")),a(4),T("
",f(28,56,"settings.hostaddress.pin_label"),"
"),a(2),p("ngModel",u.m_HostAddressData.SecurityPin),a(3),T("
",f(33,58,"settings.hostaddress.pin_desc"),"
"),a(2),p("ngIf",s.invalid&&(s.dirty||s.touched)),a(1),x("legend",f(36,60,"settings.hostaddress.panel.allowconn")),a(3),x("label",f(40,62,"settings.hostaddress.allowconn_label")),p("ngModel",u.m_HostAddressData.AllowConnFromAll)("binary",!0),a(4),p("innerHTML",f(43,64,"settings.hostaddress.allowconn_desc"),Bt),a(2),x("legend",f(45,66,"settings.hostaddress.panel.iplisten")),a(3),x("label",f(49,68,"settings.hostaddress.listenall_label")),p("ngModel",u.m_HostAddressData.ListenOnAllIps)("binary",!0),a(4),T("
",f(52,70,"settings.hostaddress.listenall_desc"),"
"),a(2),p("ngIf",!u.m_HostAddressData.ListenOnAllIps),a(1),x("legend",f(55,72,"settings.hostaddress.panel.primaryadd")),a(5),T("
",f(60,74,"settings.hostaddress.primaryip_label"),"
"),a(2),p("options",u.m_IPsAll)("ngModel",u.m_HostAddressData.BackendServerAddr)("
editable",!0),a(3),T("
",f(65,76,"settings.hostaddress.primaryip_desc"),"
"),a(2),p("ngIf",r.invalid&&(r.dirty||r.touched)),a(1),x("legend",f(68,78,"settings.hostaddress.panel.masterbe")),a(3),x("label",f(72,80,"settings.hostaddress.ismaster_label")),p("ngModel",u.m_HostAddressData.IsMasterBackend)("binary",!0),a(4),T("
",f(75,82,"settings.hostaddress.ismaster_desc"),"
"),a(2),p("ngIf",u.m_showChangeHint),a(3),S(f(80,84,"settings.hostaddress.master_label")),a(2),p("ngModel",u.m_HostAddressData.MasterServerName),a(3),p("innerHTML",f(85,86,"settings.hostaddress.master_desc"),Bt),a(2),p("ngIf",o.invalid&&(o.dirty||o.touched))}}function
jK(t,i){1&t&&(k(0,"p-message",60),m(1,"translate")),2&t&&x("text",f(1,1,"common.savesuccess"))}function
$K(t,i){1&t&&(k(0,"p-message",61),m(1,"translate")),2&t&&x("text",f(1,1,"common.networkfail"))}function
WK(t,i){if(1&t){const
e=I();l(0,"div",55)(1,"div",56),_(2,jK,2,3,"p-message",57),_(3,$K,2,3,"p-message",58),c(),l(4,"p-button",59),C("onClick",funct
ion(){v(e);const s=d(),r=F(1);return
s.saveForm(),r.form.markAsPristine()}),m(5,"translate"),c()()}if(2&t){const
e=d(),n=F(1);a(2),p("ngIf",e.m_HostAddressData.successCount>0&&0==e.m_HostAddressData.errorCount&&!n.dirty),a(1),p("ngIf",e.m_HostAddressData.errorCount>0),a(1),x("label",f(5,4,"common.save")),p("disabled",!n.dirty||e.setupService.schedulingEnabled)}}let
KK=(()=>{class
t{constructor(e,n){this.setupService=e,this.configService=n,this.m_IsMasterBackend=!1,this.m_showChangeHint=!1,this.m_HostAddressData=this.setupService.getHostAddressData(),setTimeout(()=>n.GetIPAddresses("All").subscribe(s=>this.m_IPsAll=s.IPAddresses),500),n.GetIPAddresses("IPv4").subscribe(s=>this.m_IPsV4=s.IPAddresses),n.GetIPAddresses("IPv6").subscribe(s=>this.m_IPsV6=s.IPAddresses)}ngOnInit(){}ngAfterViewInit(){this.setupService.setCurrentForm(this.currentForm)}setMaster(){void
0===this.m_savedMaster&&(this.m_savedMaster=this.m_HostAddressData.MasterServerName),this.m_HostAddressData.IsMasterBackend?(
this.m_HostAddressData.MasterServerName=this.m_HostAddressData.thisHostName,this.m_showChangeHint=!1):this.m_HostAddressData.MasterServerName==this.m_savedMaster?this.m_showChangeHint=!0:this.m_HostAddressData.MasterServerName=this.m_savedMaster}saveForm(){console.log("save
form clicked"),this.setupService.saveHostAddressData(this.currentForm)}}return
t.\u0275fac=function(e){return
new(e||t)(D(Me),D(zo))},t.\u0275cmp=z({type:t,selectors:[["app-host-address"]],viewQuery:function(e,n){if(1&e&&W(LK,5),2&e){let
s;V(s=B())&&(n.currentForm=s.first)}},decls:7,vars:0,consts:[["name","hostaddress",1,"mx-0","md:mx-3"],["hostaddress","ngForm"],[1,"m-0","md:m-5"],["pTemplate","title"],["pTemplate","subtitle"],["pTemplate","content"],["pTemplate","footer"],[1,"grid"],[1,"mb-4","w-full",3,"legend"],[1,"form-group","field"],["for","backendserverport",1,"label","block"],["pInputText","","id","backendserverport","type","number","name","backendserverport","placeholder","Ex.
6543","required","","min",
"0","max","65536",1,"mb-2","form-control","w-10rem",3,"ngModel","ngClass","ngModelChange"],["backendserverport","ngModel"],["id","backendserverport-help",1,"block"],[4,"ngIf"],["for","backendstatusport",1,"label","block"],["pInputText","","id","backendstatusport","type","number","name","backendstatusport","placeholder","Ex.
6544","required","","min","0","max","65536",1,"mb-2","form-control","w-10rem",3,"ngModel","ngClass","ngModelChange"],["backendstatusport","ngModel"],["id","backendstatusport-help",1,"block"],["for","securitypin",1,"label","block"],["pInputText","","id","securitypin","type","text","name","securitypin","placeholder","Ex.
1234","required","",1,"mb-2","form-control","w-10rem",3,"ngModel","ngModelChange"],["securitypin","ngModel"],["id","securitypin-help",1,"block"],["inputId","AllowConnFromAll","name","AllowConnFromAll",1,"mb-2","w-full",3,"ngModel","binary","label","ngModelChange"],["AllowConnFromAll","ngModel"],[3,"innerHTML"],["inputId","ListenOnAllIps","name","Li
stenOnAllIps",1,"mb-2","w-full",3,"ngModel","binary","label","ngModelChange"],["ListenOnAllIps","ngModel"],["id","ListenOnAllIps-help",1,"block"],["for","BackendServerAddr",1,"label","block","w-full"],["name","BackendServerAddr","aria-describedby","BackendServerAddr-help",1,"block","mb-2","w-full",3,"options","ngModel","editable","ngModelChange"],["BackendServerAddr","ngModel"],["id","BackendServerAddr-help",1,"block","w-full"],["inputId","IsMasterBackend","name","IsMasterBackend",1,"mb-2","w-full",3,"ngModel","binary","label","ngModelChange","onChange"],["IsMasterBackend","ngModel"],["id","IsMasterBackend-help",1,"block"],["for","MasterServerName",1,"label","block"],["pInputText","","id","MasterServerName","type","text","name","MasterServerName","placeholder","Ex.
masterbe","disabled","disabled",1,"mb-2","form-control","w-15rem","read-only",3,"ngModel","ngModelChange"],["MasterServerName","ngModel"],["id","MasterServerName-help",1,"block"],[1,"p-error","block"],["for","BackendServe
rIP",1,"label","block"],["name","BackendServerIP","aria-describedby","BackendServerIP-help",1,"block","w-15rem","mb-2",3,"options","ngModel","ngModelChange"],["BackendServerIP","ngModel"],["id","BackendServerIP-help",1,"block"],["for","BackendServerIP6",1,"label","block"],["name","BackendServerIP6","aria-describedby","BackendServerIP6-help",1,"block","w-15rem","mb-2",3,"options","ngModel","ngModelChange"],["BackendServerIP6","ngModel"],["id","BackendServerIP6-help",1,"block"],["inputId","AllowLinkLocal","name","AllowLinkLocal",1,"mb-2","w-full",3,"ngModel","binary","label","ngModelChange"],["AllowLinkLocal","ngModel"],["id","AllowLinkLocal-help",1,"block"],["id","LocalServerIP-help",1,"p-error","block"],["id","IsMasterBackend-help",1,"p-error","block"],["id","MasterServerName-help",1,"p-error","block"],[1,"grid","nogutter"],[1,"col-12"],["severity","success",3,"text",4,"ngIf"],["severity","error",3,"text",4,"ngIf"],["icon","pi
pi-save","iconPos","left",1,"col","pr-1",3,"label","disa
bled","onClick"],["severity","success",3,"text"],["severity","error",3,"text"]],template:function(e,n){1&e&&(l(0,"form",0,1)(2,"p-card",2),_(3,OK,2,3,"ng-template",3),_(4,AK,2,3,"ng-template",4),_(5,zK,87,92,"ng-template",5),_(6,WK,6,6,"ng-template",6),c()())},directives:[ze,Ue,He,Ne,ne,Ui,Du,xu,Su,Ye,ll,Te,_e,Le,Q,sn,Ot,qe,ve],pipes:[ce],styles:["[_nghost-%COMP%]
.p-dropdown{width:18rem}.read-only[_ngcontent-%COMP%]{opacity:1;background-color:#e0e0e0;border-style:solid;height:2rem}"]}),t})();const
QK=["locale"];function
JK(t,i){1&t&&(g(0),m(1,"translate")),2&t&&T("
",f(1,1,"settings.locale.title")," ")}function
YK(t,i){1&t&&(g(0),m(1,"translate")),2&t&&T("
",f(1,1,"settings.locale.subtitle")," ")}function
ZK(t,i){if(1&t){const
e=I();l(0,"div",7)(1,"p-fieldset",8),m(2,"translate"),l(3,"div",9)(4,"label",10),g(5,"TV
Format"),c(),l(6,"p-dropdown",11),C("ngModelChange",function(s){return
v(e),d().TVFormat=s}),c(),l(7,"small",12),g(8),m(9,"translate"),c()(),l(10,"div",9)(11,"label",
13),g(12),m(13,"translate"),c(),l(14,"p-dropdown",14),C("ngModelChange",function(s){return
v(e),d().VbiFormat=s}),c(),l(15,"small",15),g(16),m(17,"translate"),c()()(),l(18,"p-fieldset",8),m(19,"translate"),l(20,"div",9)(21,"label",16),g(22),m(23,"translate"),c(),l(24,"p-dropdown",17),C("ngModelChange",function(s){return
v(e),d().FreqTable=s}),c(),l(25,"small",18),g(26),m(27,"translate"),c()()()()}if(2&t){const
e=d();a(1),x("legend",f(2,13,"settings.locale.tvformat_label")),a(5),p("options",e.m_TVFormats)("ngModel",e.TVFormat),a(2),T("
",f(9,15,"settings.locale.tvformat_desc"),"
"),a(4),S(f(13,17,"settings.locale.vbiformat_label")),a(2),p("options",e.m_vbiFormats)("ngModel",e.VbiFormat),a(2),T("
",f(17,19,"settings.locale.vbiformat_desc"),"
"),a(2),x("legend",f(19,21,"settings.locale.freqtable_label")),a(4),S(f(23,23,"settings.locale.channfreq_label")),a(2),p("options",e.m_FreqTables)("ngModel",e.FreqTable),a(2),T("
",f(27,25,"settings.locale.channfreq_desc")," ")}}function
XK(t,i){1
&t&&(k(0,"p-message",24),m(1,"translate")),2&t&&x("text",f(1,1,"common.savesuccess"))}function
eQ(t,i){1&t&&(k(0,"p-message",25),m(1,"translate")),2&t&&x("text",f(1,1,"common.networkfail"))}function
tQ(t,i){if(1&t){const
e=I();l(0,"div",19)(1,"div",20),_(2,XK,2,3,"p-message",21),_(3,eQ,2,3,"p-message",22),c(),l(4,"p-button",23),C("onClick",function(){v(e);const
s=d(),r=F(1);return
s.saveForm(),r.form.markAsPristine()}),m(5,"translate"),c()()}if(2&t){const
e=d(),n=F(1);a(2),p("ngIf",e.successCount>0&&0==e.errorCount&&!n.dirty),a(1),p("ngIf",e.errorCount>0),a(1),x("label",f(5,4,"common.save")),p("disabled",!n.dirty||e.setupService.schedulingEnabled)}}const
nQ=function(){return{width:"100%"}};let iQ=(()=>{class
t{constructor(e,n){this.setupService=e,this.mythService=n,this.successCount=0,this.errorCount=0,this.TVFormat="PAL",this.VbiFormat="None",this.FreqTable="us-bcast",this.LocaleObs={next:s=>{s.bool?this.successCount++:(this.errorCount++,this.currentForm&&this.currentForm.form.mark
AsDirty())},error:s=>{console.error(s),this.errorCount++,this.currentForm&&this.currentForm.form.markAsDirty()}},this.m_TVFormats=["NTSC","NTSC-JP","PAL","PAL-60","PAL-BG","PAL-DK","PAL-D","PAL-I","PAL-M","PAL-N","PAL-NC","SECAM","SECAM-D","DECAM-DK"],this.m_vbiFormats=["None","PAL
teletext","NTSC closed
caption"],this.m_FreqTables=["us-bcast","us-cable","us-cable-hrc","us-cable-irc","japan-bcast","japan-cable","europe-west","europe-east","italy","newzealand","australia","ireland","france","china-bcast","southafrica","argentina","australia-optus","singapore","malaysia","israel-hot-matav","try-all"],this.getLocaleData()}getLocaleData(){this.mythService.GetSetting({HostName:"_GLOBAL_",Key:"TVFormat"}).subscribe({next:e=>this.TVFormat=e.String,error:()=>this.errorCount++}),this.mythService.GetSetting({HostName:"_GLOBAL_",Key:"VbiFormat"}).subscribe({next:e=>this.VbiFormat=e.String,error:()=>this.errorCount++}),this.mythService.GetSetting({HostName:"_GLOBAL_",Key:"FreqTable"}).subscribe
({next:e=>this.FreqTable=e.String,error:()=>this.errorCount++})}ngOnInit(){}ngAfterViewInit(){this.setupService.setCurrentForm(this.currentForm)}saveForm(){this.successCount=0,this.errorCount=0,this.mythService.PutSetting({HostName:"_GLOBAL_",Key:"TVFormat",Value:this.TVFormat}).subscribe(this.LocaleObs),this.mythService.PutSetting({HostName:"_GLOBAL_",Key:"VbiFormat",Value:this.VbiFormat}).subscribe(this.LocaleObs),this.mythService.PutSetting({HostName:"_GLOBAL_",Key:"FreqTable",Value:this.FreqTable}).subscribe(this.LocaleObs)}}return
t.\u0275fac=function(e){return
new(e||t)(D(Me),D(qt))},t.\u0275cmp=z({type:t,selectors:[["app-locale"]],viewQuery:function(e,n){if(1&e&&W(QK,5),2&e){let
s;V(s=B())&&(n.currentForm=s.first)}},decls:7,vars:3,consts:[["name","locale",1,"ml-3","mr-3",3,"ngSubmit"],["locale","ngForm"],[1,"m-5"],["pTemplate","title"],["pTemplate","subtitle"],["pTemplate","TV
Formats"],["pTemplate","footer"],[1,"grid"],[1,"mb-4","w-full",3,"legend"],[1,"form-group","field"],
["for","tvformat",1,"label","block"],["name","tvformat","aria-describedby","tvformat-help",1,"w-full","mb-2",3,"options","ngModel","ngModelChange"],["id","tvformat-help",1,"block","mt-2"],["for","vbiformat",1,"label","block"],["name","vbiformat","aria-describedby","vbiformat-help",1,"mb-5","w-full",3,"options","ngModel","ngModelChange"],["id","vbiformat-help",1,"block","mt-2"],["for","freqtable",1,"label","block"],["name","freqtable",1,"mb-2","w-full",3,"options","ngModel","ngModelChange"],["id","freqtable-help",1,"block","pt-2"],[1,"grid","nogutter"],[1,"col-12"],["severity","success",3,"text",4,"ngIf"],["severity","error",3,"text",4,"ngIf"],["icon","pi
pi-save","iconPos","left",1,"col","pr-1",3,"label","disabled","onClick"],["severity","success",3,"text"],["severity","error",3,"text"]],template:function(e,n){1&e&&(l(0,"form",0,1),C("ngSubmit",function(){return
n.saveForm()}),l(2,"p-card",2),_(3,JK,2,3,"ng-template",3),_(4,YK,2,3,"ng-template",4),_(5,ZK,28,27,"ng-template",5),_(6,t
Q,6,6,"ng-template",6),c()()),2&e&&(a(2),q(A(2,nQ)))},directives:[ze,Ue,He,Ne,ne,Ui,Ot,Te,_e,Q,qe,ve],pipes:[ce],styles:["[_nghost-%COMP%]
.p-dropdown{width:18rem}"]}),t})();const sQ=["miscsettings"];function
rQ(t,i){1&t&&(g(0),m(1,"translate")),2&t&&T("
",f(1,1,"settings.misc.title")," ")}function
oQ(t,i){1&t&&(g(0),m(1,"translate")),2&t&&T("
",f(1,1,"settings.misc.subtitle")," ")}function
aQ(t,i){if(1&t){const
e=I();l(0,"div",7)(1,"p-fieldset",8),m(2,"translate"),l(3,"div",9)(4,"p-checkbox",10),C("ngModelChange",function(s){return
v(e),d().MasterBackendOverride=s}),m(5,"translate"),c(),l(6,"small",11),g(7),m(8,"translate"),c()(),l(9,"div",9)(10,"p-checkbox",12),C("ngModelChange",function(s){return
v(e),d().DeletesFollowLinks=s}),m(11,"translate"),c(),l(12,"small",11),g(13),m(14,"translate"),c()(),l(15,"div",9)(16,"p-checkbox",13),C("ngModelChange",function(s){return
v(e),d().TruncateDeletesSlowly=s}),m(17,"translate"),c(),l(18,"small",11),g(19),m(20,"translate"),c()(),l(21,"di
v",9)(22,"label",14),g(23),m(24,"translate"),c(),l(25,"p-inputNumber",15),C("ngModelChange",function(s){return
v(e),d().HDRingbufferSize=s}),c(),l(26,"small",11),g(27),m(28,"translate"),c()(),l(29,"div",9)(30,"label",16),g(31),m(32,"translate"),c(),l(33,"p-dropdown",17),C("ngModelChange",function(s){return
v(e),d().StorageScheduler=s}),c(),l(34,"small",11),g(35),m(36,"translate"),c()()(),l(37,"p-fieldset",8),m(38,"translate"),l(39,"div",9)(40,"label",18),g(41),m(42,"translate"),c(),l(43,"p-dropdown",19),C("ngModelChange",function(s){return
v(e),d().UPNPWmpSource=s}),c(),l(44,"small",11),g(45),m(46,"translate"),c()()(),l(47,"div",20)(48,"div",9)(49,"label",21),g(50),m(51,"translate"),c(),l(52,"input",22),C("ngModelChange",function(s){return
v(e),d().MiscStatusScript=s}),c(),l(53,"small",11),g(54),m(55,"translate"),l(56,"a",23),g(57,"Miscellaneous
Status
Information"),c()()(),l(58,"div",9)(59,"p-checkbox",24),C("ngModelChange",function(s){return
v(e),d().DisableAutomaticBackup=s}),m(6
0,"translate"),c(),l(61,"small",11),g(62),m(63,"translate"),c()(),l(64,"div",9)(65,"p-checkbox",25),C("ngModelChange",function(s){return
v(e),d().DisableFirewireReset=s}),m(66,"translate"),c(),l(67,"small",11),g(68),m(69,"translate"),c()()()()}if(2&t){const
e=d();a(1),x("legend",f(2,44,"settings.misc.panel_filemgmt")),p("toggleable",!0)("collapsed",!0),a(3),x("label",f(5,46,"settings.misc.mbo_label")),p("ngModel",e.MasterBackendOverride)("binary",!0),a(3),T("
",f(8,48,"settings.misc.mbo_desc"),"
"),a(3),x("label",f(11,50,"settings.misc.follow_label")),p("ngModel",e.DeletesFollowLinks)("binary",!0),a(3),T("
",f(14,52,"settings.misc.follow_desc"),"
"),a(3),x("label",f(17,54,"settings.misc.slowly_label")),p("ngModel",e.TruncateDeletesSlowly)("binary",!0),a(3),T("
",f(20,56,"settings.misc.slowly_desc"),"
"),a(4),S(f(24,58,"settings.misc.ringbuf_label")),a(2),p("ngModel",e.HDRingbufferSize)("showButtons",!0)("min",4700)("max",94e3)("step",4700),a(2),T("
",f(28,60,"settings.misc.ringbuf_d
esc"),"
"),a(4),S(f(32,62,"settings.misc.sg_label")),a(2),p("options",e.soptions)("ngModel",e.StorageScheduler),a(2),T("
",f(36,64,"settings.misc.sg_desc"),"
"),a(2),x("legend",f(38,66,"settings.misc.panel_upnp")),p("toggleable",!0)("collapsed",!0),a(4),S(f(42,68,"settings.misc.upnp_label")),a(2),p("options",e.uoptions)("ngModel",e.UPNPWmpSource),a(2),T("
",f(46,70,"settings.misc.upnp_desc"),"
"),a(5),S(f(51,72,"settings.misc.statapp_label")),a(2),p("ngModel",e.MiscStatusScript),a(2),T("
",f(55,74,"settings.misc.statapp_desc"),"
"),a(5),x("label",f(60,76,"settings.misc.disback_label")),p("ngModel",e.DisableAutomaticBackup)("binary",!0),a(3),T("
",f(63,78,"settings.misc.disback_desc"),"
"),a(3),x("label",f(66,80,"settings.misc.disfwr_label")),p("ngModel",e.DisableFirewireReset)("binary",!0),a(3),T("
",f(69,82,"settings.misc.disfwr_desc")," ")}}function
lQ(t,i){1&t&&(k(0,"p-message",31),m(1,"translate")),2&t&&x("text",f(1,1,"common.savesuccess"))}function
cQ(t,i){1&t&&(k(0,"p-message"
,32),m(1,"translate")),2&t&&x("text",f(1,1,"common.networkfail"))}function
uQ(t,i){if(1&t){const
e=I();l(0,"div",26)(1,"div",27),_(2,lQ,2,3,"p-message",28),_(3,cQ,2,3,"p-message",29),c(),l(4,"p-button",30),C("onClick",function(){v(e);const
s=d(),r=F(1);return
s.saveForm(),r.form.markAsPristine()}),m(5,"translate"),c()()}if(2&t){const
e=d(),n=F(1);a(2),p("ngIf",e.successCount>0&&0==e.errorCount&&!n.dirty),a(1),p("ngIf",e.errorCount>0&&!n.dirty),a(1),x("label",f(5,4,"common.save")),p("disabled",!n.dirty||e.setupService.schedulingEnabled)}}let
dQ=(()=>{class
t{constructor(e,n,s){this.setupService=e,this.translate=n,this.mythService=s,this.successCount=0,this.errorCount=0,this.MasterBackendOverride=!1,this.DeletesFollowLinks=!1,this.TruncateDeletesSlowly=!1,this.HDRingbufferSize=9400,this.StorageScheduler="BalancedFreeSpace",this.UPNPWmpSource="0",this.MiscStatusScript="",this.DisableAutomaticBackup=!1,this.DisableFirewireReset=!1,this.hostName="",this.soptions=[{name:"settings.misc.sg_
balfree",code:"BalancedFreeSpace"},{name:"settings.misc.sg_balpercent",code:"BalancedPercFreeSpace"},{name:"settings.misc.bal_io",code:"BalancedDiskIO"},{name:"settings.misc.sg_combination",code:"Combination"}],this.uoptions=[{name:"settings.misc.upnp_recs",code:"0"},{name:"settings.misc.upnp_videos",code:"1"}],this.miscObserver={next:r=>{r.bool?this.successCount++:(this.errorCount++,this.currentForm&&this.currentForm.form.markAsDirty())},error:r=>{console.error(r),this.errorCount++,this.currentForm&&this.currentForm.form.markAsDirty()}},n.get(this.soptions[0].name).subscribe(r=>this.soptions[0].name=r),n.get(this.soptions[1].name).subscribe(r=>this.soptions[1].name=r),n.get(this.soptions[2].name).subscribe(r=>this.soptions[2].name=r),n.get(this.soptions[3].name).subscribe(r=>this.soptions[3].name=r),n.get(this.uoptions[0].name).subscribe(r=>this.uoptions[0].name=r),n.get(this.uoptions[1].name).subscribe(r=>this.uoptions[1].name=r),this.mythService.GetHostName().subscribe({next:r=>{
this.hostName=r.String,this.getMiscellaneousData()},error:()=>this.errorCount++})}getMiscellaneousData(){this.mythService.GetSetting({HostName:"_GLOBAL_",Key:"MasterBackendOverride",Default:"0"}).subscribe({next:e=>this.MasterBackendOverride="1"==e.String,error:()=>this.errorCount++}),this.mythService.GetSetting({HostName:"_GLOBAL_",Key:"DeletesFollowLinks",Default:"0"}).subscribe({next:e=>this.DeletesFollowLinks="1"==e.String,error:()=>this.errorCount++}),this.mythService.GetSetting({HostName:this.hostName,Key:"TruncateDeletesSlowly",Default:"0"}).subscribe({next:e=>this.TruncateDeletesSlowly="1"==e.String,error:()=>this.errorCount++}),this.mythService.GetSetting({HostName:"_GLOBAL_",Key:"HDRingbufferSize",Default:"9400"}).subscribe({next:e=>this.HDRingbufferSize=Number(e.String),error:()=>this.errorCount++}),this.mythService.GetSetting({HostName:"_GLOBAL_",Key:"StorageScheduler",Default:"BalancedFreeSpace"}).subscribe({next:e=>this.StorageScheduler=e.String,error:()=>this.errorCou
nt++}),this.mythService.GetSetting({HostName:"_GLOBAL_",Key:"UPNPWmpSource",Default:"0"}).subscribe({next:e=>this.UPNPWmpSource=e.String,error:()=>this.errorCount++}),this.mythService.GetSetting({HostName:this.hostName,Key:"MiscStatusScript",Default:""}).subscribe({next:e=>this.MiscStatusScript=e.String,error:()=>this.errorCount++}),this.mythService.GetSetting({HostName:"_GLOBAL_",Key:"DisableAutomaticBackup",Default:"0"}).subscribe({next:e=>this.DisableAutomaticBackup="1"==e.String,error:()=>this.errorCount++}),this.mythService.GetSetting({HostName:this.hostName,Key:"DisableFirewireReset",Default:"0"}).subscribe({next:e=>this.DisableFirewireReset="1"==e.String,error:()=>this.errorCount++})}ngOnInit(){}ngAfterViewInit(){this.setupService.setCurrentForm(this.currentForm)}saveForm(){this.successCount=0,this.errorCount=0,this.mythService.PutSetting({HostName:"_GLOBAL_",Key:"MasterBackendOverride",Value:this.MasterBackendOverride?"1":"0"}).subscribe(this.miscObserver),this.mythService.P
utSetting({HostName:"_GLOBAL_",Key:"DeletesFollowLinks",Value:this.DeletesFollowLinks?"1":"0"}).subscribe(this.miscObserver),this.mythService.PutSetting({HostName:this.hostName,Key:"TruncateDeletesSlowly",Value:this.TruncateDeletesSlowly?"1":"0"}).subscribe(this.miscObserver),this.mythService.PutSetting({HostName:"_GLOBAL_",Key:"HDRingbufferSize",Value:String(this.HDRingbufferSize)}).subscribe(this.miscObserver),this.mythService.PutSetting({HostName:"_GLOBAL_",Key:"StorageScheduler",Value:this.StorageScheduler}).subscribe(this.miscObserver),this.mythService.PutSetting({HostName:"_GLOBAL_",Key:"UPNPWmpSource",Value:this.UPNPWmpSource}).subscribe(this.miscObserver),this.mythService.PutSetting({HostName:this.hostName,Key:"MiscStatusScript",Value:this.MiscStatusScript}).subscribe(this.miscObserver),this.mythService.PutSetting({HostName:"_GLOBAL_",Key:"DisableAutomaticBackup",Value:this.DisableAutomaticBackup?"1":"0"}).subscribe(this.miscObserver),this.mythService.PutSetting({HostName:th
is.hostName,Key:"DisableFirewireReset",Value:this.DisableFirewireReset?"1":"0"}).subscribe(this.miscObserver)}}return
t.\u0275fac=function(e){return
new(e||t)(D(Me),D(Oe),D(qt))},t.\u0275cmp=z({type:t,selectors:[["app-misc-settings"]],viewQuery:function(e,n){if(1&e&&W(sQ,5),2&e){let
s;V(s=B())&&(n.currentForm=s.first)}},decls:7,vars:0,consts:[["name","miscsettings",1,"ml-3","mr-3"],["miscsettings","ngForm"],[1,"m-5"],["pTemplate","title"],["pTemplate","subtitle"],["pTemplate","content"],["pTemplate","footer"],[1,"grid"],[1,"mb-4","w-full",3,"legend","toggleable","collapsed"],[1,"form-group","field"],["name","MasterBackendOverride",1,"mb-2","w-full","label",3,"ngModel","binary","label","ngModelChange"],[1,"block"],["name","DeletesFollowLinks",1,"mb-2","w-full","label",3,"ngModel","binary","label","ngModelChange"],["name","TruncateDeletesSlowly",1,"mb-2","w-full","label",3,"ngModel","binary","label","ngModelChange"],["for","HDRingbufferSize",1,"label","block"],["name","HDRingbufferSiz
e","id","HDRingbufferSize",3,"ngModel"...
t",4,"ngIf"],["severity","error",3,"text",4,"ngIf"],["icon","pi
pi-save","iconPos","left",1,"col","pr-1",3,"label","disabled","onClick"],["severity","success",3,"text"],["severity","error",3,"text"]],template:function(e,n){1&e&&(l(0,"form",0,1)(2,"p-card",2),_(3,rQ,2,3,"ng-template",3),_(4,oQ,2,3,"ng-template",4),_(5,aQ,70,84,"ng-template",5),_(6,uQ,6,6,"ng-template",6),c()())},directives:[ze,Ue,He,Ne,ne,Ui,sn,Te,_e,pt,Ot,Ye,Q,qe,ve],pipes:[ce],styles:["a[_ngcontent-%COMP%]:link,
a[_ngcontent-%COMP%]:visited,
a[_ngcontent-%COMP%]:active{background-color:#fff}"]}),t})();const
pQ=["eitscanopt"];function
hQ(t,i){1&t&&(g(0),m(1,"translate")),2&t&&T("
",f(1,1,"settings.eit.title")," ")}function
mQ(t,i){1&t&&(g(0),m(1,"translate")),2&t&&T("
",f(1,1,"settings.eit.subtitle")," ")}function
fQ(t,i){if(1&t){const
e=I();l(0,"div",7)(1,"div",8)(2,"div",9)(3,"label",10),g(4),m(5,"translate"),c(),l(6,"p-inputNumber",11),C("ngModelChange",function(s){return
v(e),d().EITTransportTimeout=s}),c(),l(7,
"small",12),g(8),m(9,"translate"),c()(),l(10,"div",9)(11,"label",13),g(12),m(13,"translate"),c(),l(14,"p-inputNumber",14),C("ngModelChange",function(s){return
v(e),d().EITCrawIdleStart=s}),c(),l(15,"small",12),g(16),m(17,"translate"),c()(),l(18,"div",9)(19,"label",15),g(20),m(21,"translate"),c(),l(22,"p-inputNumber",16),C("ngModelChange",function(s){return
v(e),d().EITScanPeriod=s}),c(),l(23,"small",12),g(24),m(25,"translate"),c()()()()}if(2&t){const
e=d();a(4),S(f(5,21,"settings.eit.timeout_label")),a(2),p("ngModel",e.EITTransportTimeout)("showButtons",!0)("min",1)("max",15)("step",1),a(2),T("
",f(9,23,"settings.eit.timeout_desc"),"
"),a(4),S(f(13,25,"settings.eit.crawl_label")),a(2),p("ngModel",e.EITCrawIdleStart)("showButtons",!0)("min",30)("max",7200)("step",30),a(2),T("
",f(17,27,"settings.eit.crawl_desc"),"
"),a(4),S(f(21,29,"settings.eit.scan_label")),a(2),p("ngModel",e.EITScanPeriod)("showButtons",!0)("min",5)("max",60)("step",5),a(2),T("
",f(25,31,"settings.eit.scan_desc"),
" ")}}function
gQ(t,i){1&t&&(k(0,"p-message",22),m(1,"translate")),2&t&&x("text",f(1,1,"common.savesuccess"))}function
_Q(t,i){1&t&&(k(0,"p-message",23),m(1,"translate")),2&t&&x("text",f(1,1,"common.networkfail"))}function
bQ(t,i){if(1&t){const
e=I();l(0,"div",17)(1,"div",18),_(2,gQ,2,3,"p-message",19),_(3,_Q,2,3,"p-message",20),c(),l(4,"p-button",21),C("onClick",function(){v(e);const
s=d(),r=F(1);return
s.saveForm(),r.form.markAsPristine()}),m(5,"translate"),c()()}if(2&t){const
e=d(),n=F(1);a(2),p("ngIf",e.successCount>0&&0==e.errorCount&&!n.dirty),a(1),p("ngIf",e.errorCount>0),a(1),x("label",f(5,4,"common.save")),p("disabled",!n.dirty||e.setupService.schedulingEnabled)}}let
vQ=(()=>{class
t{constructor(e,n){this.setupService=e,this.mythService=n,this.successCount=0,this.errorCount=0,this.EITTransportTimeout=5,this.EITCrawIdleStart=60,this.EITScanPeriod=15,this.eitObserver={next:s=>{s.bool?this.successCount++:(this.errorCount++,this.currentForm&&this.currentForm.form.markAsDirty())
},error:s=>{console.error(s),this.errorCount++,this.currentForm&&this.currentForm.form.markAsDirty()}},this.getEITScanner()}ngOnInit(){}ngAfterViewInit(){this.setupService.setCurrentForm(this.currentForm)}getEITScanner(){this.mythService.GetSetting({HostName:"_GLOBAL_",Key:"EITTransportTimeout",Default:"5"}).subscribe({next:e=>this.EITTransportTimeout=Number(e.String),error:()=>this.errorCount++}),this.mythService.GetSetting({HostName:"_GLOBAL_",Key:"EITCrawIdleStart",Default:"60"}).subscribe({next:e=>this.EITCrawIdleStart=Number(e.String),error:()=>this.errorCount++}),this.mythService.GetSetting({HostName:"_GLOBAL_",Key:"EITScanPeriod",Default:"15"}).subscribe({next:e=>this.EITScanPeriod=Number(e.String),error:()=>this.errorCount++})}saveForm(){this.successCount=0,this.errorCount=0,this.mythService.PutSetting({HostName:"_GLOBAL_",Key:"EITTransportTimeout",Value:String(this.EITTransportTimeout)}).subscribe(this.eitObserver),this.mythService.PutSetting({HostName:"_GLOBAL_",Key:"EITCr
awIdleStart",Value:String(this.EITCrawIdleStart)}).subscribe(this.eitObserver),this.mythService.PutSetting({HostName:"_GLOBAL_",Key:"EITScanPeriod",Value:String(this.EITScanPeriod)}).subscribe(this.eitObserver)}}return
t.\u0275fac=function(e){return
new(e||t)(D(Me),D(qt))},t.\u0275cmp=z({type:t,selectors:[["app-eit-scanner"]],viewQuery:function(e,n){if(1&e&&W(pQ,5),2&e){let
s;V(s=B())&&(n.currentForm=s.first)}},decls:7,vars:0,consts:[["name","eitscanopt",1,"ml-3","mr-3"],["eitscanopt","ngForm"],[1,"m-5"],["pTemplate","title"],["pTemplate","subtitle"],["pTemplate","content"],["pTemplate","footer"],[1,"grid"],[1,"mb-4","w-full"],[1,"form-group","field"],["for","EITTransportTimeout",1,"label","block"],["name","EITTransportTimeout","id","EITTransportTimeout",3,"ngModel","showButtons","min","max","step","ngModelChange"],[1,"block"],["for","EITCrawIdleStart",1,"label","block"],["name","EITCrawIdleStart","id","EITCrawIdleStart",3,"ngModel","showButtons","min","max","step","ngModelChange"],
["for","EITScanPeriod",1,"label","block"],["name","EITScanPeriod","id","EITScanPeriod",3,"ngModel","showButtons","min","max","step","ngModelChange"],[1,"grid","nogutter"],[1,"col-12"],["severity","success",3,"text",4,"ngIf"],["severity","error",3,"text",4,"ngIf"],["icon","pi
pi-save","iconPos","left",1,"col","pr-1",3,"label","disabled","onClick"],["severity","success",3,"text"],["severity","error",3,"text"]],template:function(e,n){1&e&&(l(0,"form",0,1)(2,"p-card",2),_(3,hQ,2,3,"ng-template",3),_(4,mQ,2,3,"ng-template",4),_(5,fQ,26,33,"ng-template",5),_(6,bQ,6,6,"ng-template",6),c()())},directives:[ze,Ue,He,Ne,ne,pt,Te,_e,Q,qe,ve],pipes:[ce],styles:[""]}),t})();const
CQ=["shutwakeopt"];function
yQ(t,i){1&t&&(g(0),m(1,"translate")),2&t&&T("
",f(1,1,"settings.shutwake.title")," ")}function
wQ(t,i){1&t&&(g(0),m(1,"translate")),2&t&&T("
",f(1,1,"settings.shutwake.subtitle")," ")}function
TQ(t,i){if(1&t){const
e=I();l(0,"div",7)(1,"div",8)(2,"div",9)(3,"label",10),g(4),m(5,"translate"),c(
),l(6,"input",11),C("ngModelChange",function(s){return
v(e),d().startupCommand=s}),c(),l(7,"small",12),g(8),m(9,"translate"),c()(),l(10,"div",9)(11,"p-checkbox",13),C("ngModelChange",function(s){return
v(e),d().blockSDWUwithoutClient=s}),m(12,"translate"),c(),l(13,"small",12),g(14),m(15,"translate"),c()(),l(16,"div",9)(17,"label",14),g(18),m(19,"translate"),c(),l(20,"p-inputNumber",15),C("ngModelChange",function(s){return
v(e),d().idleTimeoutSecs=s}),c(),l(21,"small",12),g(22),m(23,"translate"),c()(),l(24,"div",9)(25,"label",16),g(26),m(27,"translate"),c(),l(28,"p-inputNumber",17),C("ngModelChange",function(s){return
v(e),d().idleWaitForRecordingTime=s}),c(),l(29,"small",12),g(30),m(31,"translate"),c()(),l(32,"div",9)(33,"label",18),g(34),m(35,"translate"),c(),l(36,"p-inputNumber",19),C("ngModelChange",function(s){return
v(e),d().StartupSecsBeforeRecording=s}),c(),l(37,"small",12),g(38),m(39,"translate"),c()(),l(40,"div",9)(41,"label",20),g(42),m(43,"translate"),c(),l(44,"input",21)
,C("ngModelChange",function(s){return
v(e),d().WakeupTimeFormat=s}),c(),l(45,"small",12),g(46),m(47,"translate"),c()(),l(48,"div",9)(49,"label",22),g(50),m(51,"translate"),c(),l(52,"input",23),C("ngModelChange",function(s){return
v(e),d().SetWakeuptimeCommand=s}),c(),l(53,"small",12),g(54),m(55,"translate"),c()(),l(56,"div",9)(57,"label",24),g(58),m(59,"translate"),c(),l(60,"input",25),C("ngModelChange",function(s){return
v(e),d().ServerHaltCommand=s}),c(),l(61,"small",12),g(62),m(63,"translate"),c()(),l(64,"div",9)(65,"label",26),g(66),m(67,"translate"),c(),l(68,"input",27),C("ngModelChange",function(s){return
v(e),d().preSDWUCheckCommand=s}),c(),l(69,"small",12),g(70),m(71,"translate"),c()()()()}if(2&t){const
e=d();a(4),S(f(5,40,"settings.shutwake.startcmd_label")),a(2),p("ngModel",e.startupCommand),a(2),T("
",f(9,42,"settings.shutwake.startcmd_desc"),"
"),a(3),x("label",f(12,44,"settings.shutwake.block_label")),p("ngModel",e.blockSDWUwithoutClient)("binary",!0),a(3),T("
",f(15,46
,"settings.shutwake.block_desc"),"
"),a(4),T("",f(19,48,"settings.shutwake.idletime_label"),"}"),a(2),p("ngModel",e.idleTimeoutSecs)("showButtons",!0)("min",0)("max",1200)("step",5),a(2),T("
",f(23,50,"settings.shutwake.idletime_desc"),"
"),a(4),S(f(27,52,"settings.shutwake.maxwait_label")),a(2),p("ngModel",e.idleWaitForRecordingTime)("showButtons",!0)("min",0)("max",300)("step",1),a(2),T("
",f(31,54,"settings.shutwake.maxwait_desc"),"
"),a(4),S(f(35,56,"settings.shutwake.startbefore_label")),a(2),p("ngModel",e.StartupSecsBeforeRecording)("showButtons",!0)("min",0)("max",300)("step",1),a(2),T("
",f(39,58,"settings.shutwake.startbefore_desc"),"
"),a(4),S(f(43,60,"settings.shutwake.timeformat_label")),a(2),p("ngModel",e.WakeupTimeFormat),a(2),T("
",f(47,62,"settings.shutwake.timeformat_desc"),"
"),a(4),S(f(51,64,"settings.shutwake.timecmd_label")),a(2),p("ngModel",e.SetWakeuptimeCommand),a(2),T("
",f(55,66,"settings.shutwake.timecmd_desc"),"
"),a(4),S(f(59,68,"settings.shutwake.server
halt_label")),a(2),p("ngModel",e.ServerHaltCommand),a(2),T("
",f(63,70,"settings.shutwake.serverhalt_desc"),"
"),a(4),S(f(67,72,"settings.shutwake.preshut_label")),a(2),p("ngModel",e.preSDWUCheckCommand),a(2),T("
",f(71,74,"settings.shutwake.preshut_desc")," ")}}function
SQ(t,i){1&t&&(k(0,"p-message",33),m(1,"translate")),2&t&&x("text",f(1,1,"common.savesuccess"))}function
xQ(t,i){1&t&&(k(0,"p-message",34),m(1,"translate")),2&t&&x("text",f(1,1,"common.networkfail"))}function
DQ(t,i){if(1&t){const
e=I();l(0,"div",28)(1,"div",29),_(2,SQ,2,3,"p-message",30),_(3,xQ,2,3,"p-message",31),c(),l(4,"p-button",32),C("onClick",function(){v(e);const
s=d(),r=F(1);return
s.saveForm(),r.form.markAsPristine()}),m(5,"translate"),c()()}if(2&t){const
e=d(),n=F(1);a(2),p("ngIf",e.successCount>0&&0==e.errorCount&&!n.dirty),a(1),p("ngIf",e.errorCount>0),a(1),x("label",f(5,4,"common.save")),p("disabled",!n.dirty||e.setupService.schedulingEnabled)}}let
MQ=(()=>{class t{constructor(e,n){this.setupService=e,t
his.mythService=n,this.successCount=0,this.errorCount=0,this.startupCommand="",this.blockSDWUwithoutClient=!0,this.idleTimeoutSecs=0,this.idleWaitForRecordingTime=15,this.StartupSecsBeforeRecording=120,this.WakeupTimeFormat="hh
=mm
yyyy-MM-dd",this.SetWakeuptimeCommand="",this.ServerHaltCommand="sudo
/sbin/halt
-p",this.preSDWUCheckCommand="",this.swObserver={next:s=>{s.bool?this.successCount++:(this.errorCount++,this.currentForm&&this.currentForm.form.markAsDirty())},error:s=>{console.error(s),this.errorCount++,this.currentForm&&this.currentForm.form.markAsDirty()}},this.getShutWake()}ngOnInit(){}ngAfterViewInit(){this.setupService.setCurrentForm(this.currentForm)}getShutWake(){this.mythService.GetSetting({HostName:"_GLOBAL_",Key:"startupCommand",Default:""}).subscribe({next:e=>this.startupCommand=e.String,error:()=>this.errorCount++}),this.mythService.GetSetting({HostName:"_GLOBAL_",Key:"blockSDWUwithoutClient",Default:"1"}).subscribe({next:e=>this.blockSDWUwithoutClient="1"==e.St
ring,error:()=>this.errorCount++}),this.mythService.GetSetting({HostName:"_GLOBAL_",Key:"idleTimeoutSecs",Default:"0"}).subscribe({next:e=>this.idleTimeoutSecs=Number(e.String),error:()=>this.errorCount++}),this.mythService.GetSetting({HostName:"_GLOBAL_",Key:"idleWaitForRecordingTime",Default:""}).subscribe({next:e=>this.idleWaitForRecordingTime=Number(e.String),error:()=>this.errorCount++}),this.mythService.GetSetting({HostName:"_GLOBAL_",Key:"StartupSecsBeforeRecording",Default:"120"}).subscribe({next:e=>this.StartupSecsBeforeRecording=Number(e.String),error:()=>this.errorCount++}),this.mythService.GetSetting({HostName:"_GLOBAL_",Key:"WakeupTimeFormat",Default:"hh:mm
yyyy-MM-dd"}).subscribe({next:e=>this.WakeupTimeFormat=e.String,error:()=>this.errorCount++}),this.mythService.GetSetting({HostName:"_GLOBAL_",Key:"SetWakeuptimeCommand",Default:""}).subscribe({next:e=>this.SetWakeuptimeCommand=e.String,error:()=>this.errorCount++}),this.mythService.GetSetting({HostName:"_GLOBAL_",Ke
y:"ServerHaltCommand",Default:"sudo /sbin/halt
-p"}).subscribe({next:e=>this.ServerHaltCommand=e.String,error:()=>this.errorCount++}),this.mythService.GetSetting({HostName:"_GLOBAL_",Key:"preSDWUCheckCommand",Default:""}).subscribe({next:e=>this.preSDWUCheckCommand=e.String,error:()=>this.errorCount++})}saveForm(){this.successCount=0,this.errorCount=0,this.mythService.PutSetting({HostName:"_GLOBAL_",Key:"startupCommand",Value:this.startupCommand}).subscribe(this.swObserver),this.mythService.PutSetting({HostName:"_GLOBAL_",Key:"blockSDWUwithoutClient",Value:this.blockSDWUwithoutClient?"1":"0"}).subscribe(this.swObserver),this.mythService.PutSetting({HostName:"_GLOBAL_",Key:"idleTimeoutSecs",Value:String(this.idleTimeoutSecs)}).subscribe(this.swObserver),this.mythService.PutSetting({HostName:"_GLOBAL_",Key:"idleWaitForRecordingTime",Value:String(this.idleWaitForRecordingTime)}).subscribe(this.swObserver),this.mythService.PutSetting({HostName:"_GLOBAL_",Key:"StartupSecsBeforeRecording"
,Value:String(this.StartupSecsBeforeRecording)}).subscribe(this.swObserver),this.mythService.PutSetting({HostName:"_GLOBAL_",Key:"WakeupTimeFormat",Value:this.WakeupTimeFormat}).subscribe(this.swObserver),this.mythService.PutSetting({HostName:"_GLOBAL_",Key:"SetWakeuptimeCommand",Value:this.SetWakeuptimeCommand}).subscribe(this.swObserver),this.mythService.PutSetting({HostName:"_GLOBAL_",Key:"ServerHaltCommand",Value:this.ServerHaltCommand}).subscribe(this.swObserver),this.mythService.PutSetting({HostName:"_GLOBAL_",Key:"preSDWUCheckCommand",Value:this.preSDWUCheckCommand}).subscribe(this.swObserver)}}return
t.\u0275fac=function(e){return
new(e||t)(D(Me),D(qt))},t.\u0275cmp=z({type:t,selectors:[["app-shutdown-wakeup"]],viewQuery:function(e,n){if(1&e&&W(CQ,5),2&e){let
s;V(s=B())&&(n.currentForm=s.first)}},decls:7,vars:0,consts:[["name","shutwakeopt",1,"ml-3","mr-3"],["shutwakeopt","ngForm"],[1,"m-5"],["pTemplate","title"],["pTemplate","subtitle"],["pTemplate","content"],["pTemplate",
"footer"],[1,"grid"],[1,"mb-4","w-full"],[1,"form-group","field"],["for","startupCommand",1,"label","block"],["pInputText","","id","startupCommand","name","startupCommand",1,"mb-2","form-control","w-full",3,"ngModel","ngModelChange"],[1,"block"],["inputId","blockSDWUwithoutClient","name","blockSDWUwithoutClient",1,"mb-2","w-full","label",3,"ngModel","binary","label","ngModelChange"],["for","idleTimeoutSecs",1,"label","block"],["name","idleTimeoutSecs","id","idleTimeoutSecs",3,"ngModel","showButtons","min","max","step","ngModelChange"],["for","idleWaitForRecordingTime",1,"label","block"],["name","idleWaitForRecordingTime","id","idleWaitForRecordingTime",3,"ngModel","showButtons","min","max","step","ngModelChange"],["for","StartupSecsBeforeRecording",1,"label","block"],["name","StartupSecsBeforeRecording","id","StartupSecsBeforeRecording",3,"ngModel","showButtons","min","max","step","ngModelChange"],["for","WakeupTimeFormat",1,"label","block"],["pInputText","","id","WakeupTimeFormat",
"name","WakeupTimeFormat",1,"mb-2","form-control","w-full",3,"ngModel","ngModelChange"],["for","SetWakeuptimeCommand",1,"label","block"],["pInputText","","id","SetWakeuptimeCommand","name","SetWakeuptimeCommand",1,"mb-2","form-control","w-full",3,"ngModel","ngModelChange"],["for","ServerHaltCommand",1,"label","block"],["pInputText","","id","ServerHaltCommand","name","ServerHaltCommand",1,"mb-2","form-control","w-full",3,"ngModel","ngModelChange"],["for","preSDWUCheckCommand",1,"label","block"],["pInputText","","id","preSDWUCheckCommand","name","preSDWUCheckCommand",1,"mb-2","form-control","w-full",3,"ngModel","ngModelChange"],[1,"grid","nogutter"],[1,"col-12"],["severity","success",3,"text",4,"ngIf"],["severity","error",3,"text",4,"ngIf"],["icon","pi
pi-save","iconPos","left",1,"col","pr-1",3,"label","disabled","onClick"],["severity","success",3,"text"],["severity","error",3,"text"]],template:function(e,n){1&e&&(l(0,"form",0,1)(2,"p-card",2),_(3,yQ,2,3,"ng-template",3),_(4,wQ,2,3,"n
g-template",4),_(5,TQ,72,76,"ng-template",5),_(6,DQ,6,6,"ng-template",6),c()())},directives:[ze,Ue,He,Ne,ne,Ye,Te,_e,sn,pt,Q,qe,ve],pipes:[ce],styles:[""]}),t})();const
kQ=["backendwakeup"];function
IQ(t,i){1&t&&(g(0),m(1,"translate")),2&t&&T("
",f(1,1,"settings.backendwake.title")," ")}function
EQ(t,i){1&t&&(g(0),m(1,"translate")),2&t&&T("
",f(1,1,"settings.backendwake.subtitle")," ")}function
RQ(t,i){if(1&t){const
e=I();l(0,"div",7)(1,"p-fieldset",8),m(2,"translate"),l(3,"div",9)(4,"label",10),g(5),m(6,"translate"),c(),l(7,"p-inputNumber",11),C("ngModelChange",function(s){return
v(e),d().WOLbackendReconnectWaitTime=s}),c(),l(8,"small",12),g(9),m(10,"translate"),c()(),l(11,"div",9)(12,"label",13),g(13),m(14,"translate"),c(),l(15,"p-inputNumber",14),C("ngModelChange",function(s){return
v(e),d().WOLbackendConnectRetry=s}),c(),l(16,"small",12),g(17),m(18,"translate"),c()(),l(19,"div",9)(20,"label",15),g(21),m(22,"translate"),c(),l(23,"input",16),C("ngModelChange",function(s){return
v(
e),d().WOLbackendCommand=s}),c(),l(24,"small",12),g(25),m(26,"translate"),c()()(),l(27,"p-fieldset",8),m(28,"translate"),l(29,"div",9)(30,"label",17),g(31),m(32,"translate"),c(),l(33,"input",18),C("ngModelChange",function(s){return
v(e),d().SleepCommand=s}),c(),l(34,"small",12),g(35),m(36,"translate"),c()(),l(37,"div",9)(38,"label",19),g(39),m(40,"translate"),c(),l(41,"input",20),C("ngModelChange",function(s){return
v(e),d().WakeUpCommand=s}),c(),l(42,"small",12),g(43),m(44,"translate"),c()()()()}if(2&t){const
e=d();a(1),x("legend",f(2,29,"settings.backendwake.master.title")),p("toggleable",!0)("collapsed",!0),a(4),S(f(6,31,"settings.backendwake.master.delay_label")),a(2),p("ngModel",e.WOLbackendReconnectWaitTime)("showButtons",!0)("min",0)("max",1200)("step",5),a(2),T("
",f(10,33,"settings.backendwake.master.delay_desc"),"
"),a(4),S(f(14,35,"settings.backendwake.master.attempts_label")),a(2),p("ngModel",e.WOLbackendConnectRetry)("showButtons",!0)("min",1)("max",60)("step",1),a(2),T
(" ",f(18,37,"settings.backendwake.master.attempts_desc"),"
"),a(4),S(f(22,39,"settings.backendwake.master.cmd_label")),a(2),p("ngModel",e.WOLbackendCommand),a(2),T("
",f(26,41,"settings.backendwake.master.cmd_desc"),"
"),a(2),x("legend",f(28,43,"settings.backendwake.slave.title")),p("toggleable",!0)("collapsed",!0),a(4),S(f(32,45,"settings.backendwake.slave.sleep_label")),a(2),p("ngModel",e.SleepCommand),a(2),T("
",f(36,47,"settings.backendwake.slave.sleep_desc"),"
"),a(4),S(f(40,49,"settings.backendwake.slave.wake_label")),a(2),p("ngModel",e.WakeUpCommand),a(2),T("
",f(44,51,"settings.backendwake.slave.wake_desc")," ")}}function
LQ(t,i){1&t&&(k(0,"p-message",26),m(1,"translate")),2&t&&x("text",f(1,1,"common.savesuccess"))}function
OQ(t,i){1&t&&(k(0,"p-message",27),m(1,"translate")),2&t&&x("text",f(1,1,"common.networkfail"))}function
AQ(t,i){if(1&t){const
e=I();l(0,"div",21)(1,"div",22),_(2,LQ,2,3,"p-message",23),_(3,OQ,2,3,"p-message",24),c(),l(4,"p-button",25),C("onClick",functio
n(){v(e);const s=d(),r=F(1);return
s.saveForm(),r.form.markAsPristine()}),m(5,"translate"),c()()}if(2&t){const
e=d(),n=F(1);a(2),p("ngIf",e.successCount>0&&0==e.errorCount&&!n.dirty),a(1),p("ngIf",e.errorCount>0),a(1),x("label",f(5,4,"common.save")),p("disabled",!n.dirty||e.setupService.schedulingEnabled)}}let
PQ=(()=>{class
t{constructor(e,n){this.setupService=e,this.mythService=n,this.hostName="",this.successCount=0,this.errorCount=0,this.WOLbackendReconnectWaitTime=0,this.WOLbackendConnectRetry=5,this.WOLbackendCommand="",this.SleepCommand="",this.WakeUpCommand="",this.bewObserver={next:s=>{s.bool?this.successCount++:(this.errorCount++,this.currentForm&&this.currentForm.form.markAsDirty())},error:s=>{console.error(s),this.errorCount++,this.currentForm&&this.currentForm.form.markAsDirty()}}}ngOnInit(){}ngAfterViewInit(){this.setupService.setCurrentForm(this.currentForm)}getBackendWake(){this.mythService.GetHostName().subscribe({next:e=>{this.hostName=e.String,this.getSettings()},e
rror:()=>this.errorCount++})}getSettings(){this.mythService.GetSetting({HostName:"_GLOBAL_",Key:"WOLbackendReconnectWaitTime",Default:"0"}).subscribe({next:e=>this.WOLbackendReconnectWaitTime=Number(e.String),error:()=>this.errorCount++}),this.mythService.GetSetting({HostName:"_GLOBAL_",Key:"WOLbackendConnectRetry",Default:"5"}).subscribe({next:e=>this.WOLbackendConnectRetry=Number(e.String),error:()=>this.errorCount++}),this.mythService.GetSetting({HostName:"_GLOBAL_",Key:"WOLbackendCommand",Default:""}).subscribe({next:e=>this.WOLbackendCommand=e.String,error:()=>this.errorCount++}),this.mythService.GetSetting({HostName:this.hostName,Key:"SleepCommand",Default:""}).subscribe({next:e=>this.SleepCommand=e.String,error:()=>this.errorCount++}),this.mythService.GetSetting({HostName:this.hostName,Key:"WakeUpCommand",Default:""}).subscribe({next:e=>this.WakeUpCommand=e.String,error:()=>this.errorCount++})}saveForm(){this.successCount=0,this.errorCount=0,this.mythService.PutSetting({HostN
ame:"_GLOBAL_",Key:"WOLbackendReconnectWaitTime",Value:String(this.WOLbackendReconnectWaitTime)}).subscribe(this.bewObserver),this.mythService.PutSetting({HostName:"_GLOBAL_",Key:"WOLbackendConnectRetry",Value:String(this.WOLbackendConnectRetry)}).subscribe(this.bewObserver),this.mythService.PutSetting({HostName:"_GLOBAL_",Key:"WOLbackendCommand",Value:this.WOLbackendCommand}).subscribe(this.bewObserver),this.mythService.PutSetting({HostName:this.hostName,Key:"SleepCommand",Value:this.SleepCommand}).subscribe(this.bewObserver),this.mythService.PutSetting({HostName:this.hostName,Key:"WakeUpCommand",Value:this.WakeUpCommand}).subscribe(this.bewObserver)}}return
t.\u0275fac=function(e){return
new(e||t)(D(Me),D(qt))},t.\u0275cmp=z({type:t,selectors:[["app-backend-wakeup"]],viewQuery:function(e,n){if(1&e&&W(kQ,5),2&e){let
s;V(s=B())&&(n.currentForm=s.first)}},decls:7,vars:0,consts:[["name","backendwakeup",1,"ml-3","mr-3"],["backendwakeup","ngForm"],[1,"m-5"],["pTemplate","title"],["pTemp
late","subtitle"],["pTemplate","content"],["pTemplate","footer"],[1,"grid"],[1,"mb-4","w-full",3,"legend","toggleable","collapsed"],[1,"form-group","field"],["for","WOLbackendReconnectWaitTime",1,"label","block"],["name","WOLbackendReconnectWaitTime","id","WOLbackendReconnectWaitTime",3,"ngModel","showButtons","min","max","step","ngModelChange"],[1,"block"],["for","WOLbackendConnectRetry",1,"label","block"],["name","WOLbackendConnectRetry","id","WOLbackendConnectRetry",3,"ngModel","showButtons","min","max","step","ngModelChange"],["for","WOLbackendCommand",1,"label","block"],["pInputText","","id","WOLbackendCommand","name","WOLbackendCommand",1,"mb-2","form-control","w-full",3,"ngModel","ngModelChange"],["for","SleepCommand",1,"label","block"],["pInputText","","id","SleepCommand","name","SleepCommand",1,"mb-2","form-control","w-full",3,"ngModel","ngModelChange"],["for","WakeUpCommand",1,"label","block"],["pInputText","","id","WakeUpCommand","name","WakeUpCommand",1,"mb-2","form-cont
rol","w-full",3,"ngModel","ngModelChange"],[1,"grid","nogutter"],[1,"col-12"],["severity","success",3,"text",4,"ngIf"],["severity","error",3,"text",4,"ngIf"],["icon","pi
pi-save","iconPos","left",1,"col","pr-1",3,"label","disabled","onClick"],["severity","success",3,"text"],["severity","error",3,"text"]],template:function(e,n){1&e&&(l(0,"form",0,1)(2,"p-card",2),_(3,IQ,2,3,"ng-template",3),_(4,EQ,2,3,"ng-template",4),_(5,RQ,45,53,"ng-template",5),_(6,AQ,6,6,"ng-template",6),c()())},directives:[ze,Ue,He,Ne,ne,Ui,pt,Te,_e,Ye,Q,qe,ve],pipes:[ce],styles:[""]}),t})();const
FQ=["backendcontrol"];function
NQ(t,i){1&t&&(g(0),m(1,"translate")),2&t&&T("
",f(1,1,"settings.backendctrl.title")," ")}function
VQ(t,i){1&t&&(g(0),m(1,"translate")),2&t&&T("
",f(1,1,"settings.backendctrl.subtitle")," ")}function
BQ(t,i){if(1&t){const
e=I();l(0,"div",7)(1,"div",8)(2,"div",9)(3,"label",10),g(4),m(5,"translate"),c(),l(6,"input",11,12),C("ngModelChange",function(s){return
v(e),d().BackendStopCommand=s}),c
(),l(8,"small",13),g(9),m(10,"translate"),c()(),l(11,"div",9)(12,"label",14),g(13),m(14,"translate"),c(),l(15,"input",15,12),C("ngModelChange",function(s){return
v(e),d().BackendStartCommand=s}),c(),l(17,"small",13),g(18),m(19,"translate"),c()()()()}if(2&t){const
e=d();a(4),S(f(5,6,"settings.backendctrl.stop_label")),a(2),p("ngModel",e.BackendStopCommand),a(3),T("
",f(10,8,"settings.backendctrl.stop_desc"),"
"),a(4),S(f(14,10,"settings.backendctrl.start_label")),a(2),p("ngModel",e.BackendStartCommand),a(3),T("
",f(19,12,"settings.backendctrl.start_desc")," ")}}function
HQ(t,i){1&t&&(k(0,"p-message",21),m(1,"translate")),2&t&&x("text",f(1,1,"common.savesuccess"))}function
qQ(t,i){1&t&&(k(0,"p-message",22),m(1,"translate")),2&t&&x("text",f(1,1,"common.networkfail"))}function
GQ(t,i){if(1&t){const
e=I();l(0,"div",16)(1,"div",17),_(2,HQ,2,3,"p-message",18),_(3,qQ,2,3,"p-message",19),c(),l(4,"p-button",20),C("onClick",function(){v(e);const
s=d(),r=F(1);return s.saveForm(),r.form.markAsPr
istine()}),m(5,"translate"),c()()}if(2&t){const
e=d(),n=F(1);a(2),p("ngIf",e.successCount>0&&0==e.errorCount&&!n.dirty),a(1),p("ngIf",e.errorCount>0),a(1),x("label",f(5,4,"common.save")),p("disabled",!n.dirty||e.setupService.schedulingEnabled)}}let
UQ=(()=>{class
t{constructor(e,n){this.setupService=e,this.mythService=n,this.successCount=0,this.errorCount=0,this.BackendStopCommand="killall
mythbackend",this.BackendStartCommand="mythbackend",this.becObserver={next:s=>{s.bool?this.successCount++:(this.errorCount++,this.currentForm&&this.currentForm.form.markAsDirty())},error:s=>{console.error(s),this.errorCount++,this.currentForm&&this.currentForm.form.markAsDirty()}}}ngOnInit(){}ngAfterViewInit(){this.setupService.setCurrentForm(this.currentForm)}getBackendControl(){this.mythService.GetSetting({HostName:"_GLOBAL_",Key:"BackendStopCommand",Default:"killall
mythbackend"}).subscribe({next:e=>this.BackendStopCommand=e.String,error:()=>this.errorCount++}),this.mythService.GetSetting({Host
Name:"_GLOBAL_",Key:"BackendStartCommand",Default:"mythbackend"}).subscribe({next:e=>this.BackendStartCommand=e.String,error:()=>this.errorCount++})}saveForm(){this.successCount=0,this.errorCount=0,this.mythService.PutSetting({HostName:"_GLOBAL_",Key:"BackendStopCommand",Value:this.BackendStopCommand}).subscribe(this.becObserver),this.mythService.PutSetting({HostName:"_GLOBAL_",Key:"BackendStartCommand",Value:this.BackendStartCommand}).subscribe(this.becObserver)}}return
t.\u0275fac=function(e){return
new(e||t)(D(Me),D(qt))},t.\u0275cmp=z({type:t,selectors:[["app-backend-control"]],viewQuery:function(e,n){if(1&e&&W(FQ,5),2&e){let
s;V(s=B())&&(n.currentForm=s.first)}},decls:7,vars:0,consts:[["name","backendcontrol",1,"ml-3","mr-3"],["backendcontrol","ngForm"],[1,"m-5"],["pTemplate","title"],["pTemplate","subtitle"],["pTemplate","content"],["pTemplate","footer"],[1,"grid"],[1,"mb-4","w-full"],[1,"form-group","field"],["for","BackendStopCommand",1,"label","block"],["pInputText","","id"
,"BackendStopCommand","name","BackendStopCommand",1,"mb-2","form-control","w-full",3,"ngModel","ngModelChange"],["MiscStatusScript","ngModel"],[1,"block"],["for","BackendStartCommand",1,"label","block"],["pInputText","","id","BackendStartCommand","name","BackendStartCommand",1,"mb-2","form-control","w-full",3,"ngModel","ngModelChange"],[1,"grid","nogutter"],[1,"col-12"],["severity","success",3,"text",4,"ngIf"],["severity","error",3,"text",4,"ngIf"],["icon","pi
pi-save","iconPos","left",1,"col","pr-1",3,"label","disabled","onClick"],["severity","success",3,"text"],["severity","error",3,"text"]],template:function(e,n){1&e&&(l(0,"form",0,1)(2,"p-card",2),_(3,NQ,2,3,"ng-template",3),_(4,VQ,2,3,"ng-template",4),_(5,BQ,20,14,"ng-template",5),_(6,GQ,6,6,"ng-template",6),c()())},directives:[ze,Ue,He,Ne,ne,Ye,Te,_e,Q,qe,ve],pipes:[ce],styles:[""]}),t})();const
zQ=["jobqbackend"],jQ=["JobQueueWindowStartHT"],$Q=["JobQueueWindowEndHT"];function
WQ(t,i){1&t&&(g(0),m(1,"translate")),2&t&&T("
",f
(1,1,"settings.jobqbackend.title")," ")}function
KQ(t,i){1&t&&(g(0),m(1,"translate")),2&t&&T("
",f(1,1,"settings.jobqbackend.subtitle")," ")}function
QQ(t,i){if(1&t){const
e=I();l(0,"div",7)(1,"div",8)(2,"div",9)(3,"label",10),g(4),m(5,"translate"),c(),l(6,"p-inputNumber",11),C("ngModelChange",function(s){return
v(e),d().JobQueueMaxSimultaneousJobs=s}),c(),l(7,"small",12),g(8),m(9,"translate"),c()(),l(10,"div",9)(11,"label",13),g(12),m(13,"translate"),c(),l(14,"p-inputNumber",14),C("ngModelChange",function(s){return
v(e),d().JobQueueCheckFrequency=s}),c(),l(15,"small",12),g(16),m(17,"translate"),c()(),l(18,"div",9)(19,"label",15),g(20),m(21,"translate"),c(),l(22,"p-calendar",16,17),C("ngModelChange",function(s){return
v(e),d().JobQueueWindowStart=s}),c(),l(24,"small",12),g(25),m(26,"translate"),c()(),l(27,"div",9)(28,"label",18),g(29),m(30,"translate"),c(),l(31,"p-calendar",19,20),C("ngModelChange",function(s){return
v(e),d().JobQueueWindowEnd=s}),c(),l(33,"small",12),g(34),m(35,"tr
anslate"),c()(),l(36,"div",9)(37,"label",21),g(38),m(39,"translate"),c(),l(40,"p-dropdown",22),C("ngModelChange",function(s){return
v(e),d().JobQueueCPU=s}),c(),l(41,"small",12),g(42),m(43,"translate"),c()(),l(44,"div",9)(45,"p-checkbox",23),C("ngModelChange",function(s){return
v(e),d().JobAllowMetadata=s}),m(46,"translate"),c(),l(47,"small",12),g(48),m(49,"translate"),c()(),l(50,"div",9)(51,"p-checkbox",24),C("ngModelChange",function(s){return
v(e),d().JobAllowCommFlag=s}),m(52,"translate"),c(),l(53,"small",12),g(54),m(55,"translate"),c()(),l(56,"div",9)(57,"p-checkbox",25),C("ngModelChange",function(s){return
v(e),d().JobAllowTranscode=s}),m(58,"translate"),c(),l(59,"small",12),g(60),m(61,"translate"),c()(),l(62,"div",9)(63,"p-checkbox",26),C("ngModelChange",function(s){return
v(e),d().JobAllowPreview=s}),m(64,"translate"),c(),l(65,"small",12),g(66),m(67,"translate"),c()(),l(68,"div",9)(69,"p-checkbox",27),C("ngModelChange",function(s){return
v(e),d().JobAllowUserJob1=s}),c(),l(70
,"small",12),g(71),m(72,"translate"),c()(),l(73,"div",9)(74,"p-checkbox",28),C("ngModelChange",function(s){return
v(e),d().JobAllowUserJob2=s}),c(),l(75,"small",12),g(76),m(77,"translate"),c()(),l(78,"div",9)(79,"p-checkbox",29),C("ngModelChange",function(s){return
v(e),d().JobAllowUserJob3=s}),c(),l(80,"small",12),g(81),m(82,"translate"),c()(),l(83,"div",9)(84,"p-checkbox",30),C("ngModelChange",function(s){return
v(e),d().JobAllowUserJob4=s}),c(),l(85,"small",12),g(86),m(87,"translate"),c()()()()}if(2&t){const
e=d();a(4),S(f(5,60,"settings.jobqbackend.maxjobs_label")),a(2),p("ngModel",e.JobQueueMaxSimultaneousJobs)("showButtons",!0)("min",1)("max",10)("step",1),a(2),T("
",f(9,62,"settings.jobqbackend.maxjobs_desc"),"
"),a(4),S(f(13,64,"settings.jobqbackend.freq_label")),a(2),p("ngModel",e.JobQueueCheckFrequency)("showButtons",!0)("min",5)("max",300)("step",5),a(2),T("
",f(17,66,"settings.jobqbackend.freq_desc"),"
"),a(4),S(f(21,68,"settings.jobqbackend.start_label")),a(2),p("ngMode
l",e.JobQueueWindowStart)("timeOnly",!0)("readonlyInput",!0),a(3),T("
",f(26,70,"settings.jobqbackend.start_desc"),"
"),a(4),S(f(30,72,"settings.jobqbackend.end_label")),a(2),p("ngModel",e.JobQueueWindowEnd)("timeOnly",!0)("readonlyInput",!0),a(3),T("
",f(35,74,"settings.jobqbackend.end_desc"),"
"),a(4),S(f(39,76,"settings.jobqbackend.cpu_label")),a(2),p("options",e.cpuOptions)("ngModel",e.JobQueueCPU),a(2),T("
",f(43,78,"settings.jobqbackend.cpu_desc"),"
"),a(3),x("label",f(46,80,"settings.jobqbackend.meta_label")),p("ngModel",e.JobAllowMetadata)("binary",!0),a(3),T("
",f(49,82,"settings.jobqbackend.allow_desc"),"
"),a(3),x("label",f(52,84,"settings.jobqbackend.comm_label")),p("ngModel",e.JobAllowCommFlag)("binary",!0),a(3),T("
",f(55,86,"settings.jobqbackend.allow_desc"),"
"),a(3),x("label",f(58,88,"settings.jobqbackend.trans_label")),p("ngModel",e.JobAllowTranscode)("binary",!0),a(3),T("
",f(61,90,"settings.jobqbackend.allow_desc"),"
"),a(3),x("label",f(64,92,"settings.jobqbacken
d.preview_label")),p("ngModel",e.JobAllowPreview)("binary",!0),a(3),T("
",f(67,94,"settings.jobqbackend.allow_desc"),"
"),a(3),x("label",e.JobQCmds.UserJobDesc[0]),p("ngModel",e.JobAllowUserJob1)("binary",!0),a(2),T("
",f(72,96,"settings.jobqbackend.allow_desc"),"
"),a(3),x("label",e.JobQCmds.UserJobDesc[1]),p("ngModel",e.JobAllowUserJob2)("binary",!0),a(2),T("
",f(77,98,"settings.jobqbackend.allow_desc"),"
"),a(3),x("label",e.JobQCmds.UserJobDesc[2]),p("ngModel",e.JobAllowUserJob3)("binary",!0),a(2),T("
",f(82,100,"settings.jobqbackend.allow_desc"),"
"),a(3),x("label",e.JobQCmds.UserJobDesc[3]),p("ngModel",e.JobAllowUserJob4)("binary",!0),a(2),T("
",f(87,102,"settings.jobqbackend.allow_desc")," ")}}function
JQ(t,i){1&t&&(k(0,"p-message",36),m(1,"translate")),2&t&&x("text",f(1,1,"common.savesuccess"))}function
YQ(t,i){1&t&&(k(0,"p-message",37),m(1,"translate")),2&t&&x("text",f(1,1,"common.networkfail"))}function
ZQ(t,i){if(1&t){const
e=I();l(0,"div",31)(1,"div",32),_(2,JQ,2,3,"p-mes
sage",33),_(3,YQ,2,3,"p-message",34),c(),l(4,"p-button",35),C("onClick",function(){v(e);const
s=d(),r=F(1);return
s.saveForm(),r.form.markAsPristine()}),m(5,"translate"),c()()}if(2&t){const
e=d(),n=F(1);a(2),p("ngIf",e.successCount>0&&0==e.errorCount&&!n.dirty),a(1),p("ngIf",e.errorCount>0),a(1),x("label",f(5,4,"common.save")),p("disabled",!n.dirty||e.setupService.schedulingEnabled)}}let
XQ=(()=>{class
t{constructor(e,n,s){this.setupService=e,this.translate=n,this.mythService=s,this.successCount=0,this.errorCount=0,this.hostName="",this.JobQueueMaxSimultaneousJobs=1,this.JobQueueCheckFrequency=60,this.JobQueueWindowStart=new
Date(0),this.JobQueueWindowStartHT$=new Je,this.JobQueueWindowEnd=new
Date(0),this.JobQueueWindowEndHT$=new
Je,this.JobQueueCPU="0",this.JobAllowMetadata=!0,this.JobAllowCommFlag=!0,this.JobAllowTranscode=!0,this.JobAllowPreview=!0,this.JobAllowUserJob1=!1,this.JobAllowUserJob2=!1,this.JobAllowUserJob3=!1,this.JobAllowUserJob4=!1,this.cpuOptions=[{name:"settings
.jobqbackend.cpu_low",code:"0"},{name:"settings.jobqbackend.cpu_med",code:"1"},{name:"settings.jobqbackend.cpu_high",code:"2"}],this.jqbObserver={next:r=>{r.bool?this.successCount++:(this.errorCount++,this.currentForm&&this.currentForm.form.markAsDirty())},error:r=>{console.error(r),this.errorCount++,this.currentForm&&this.currentForm.form.markAsDirty()}},this.getJobQBackend(),this.JobQueueWindowStartHT$.subscribe({complete:()=>this.JobQueueWindowStartHT.updateInputfield()}),this.JobQueueWindowEndHT$.subscribe({complete:()=>this.JobQueueWindowEndHT.updateInputfield()}),this.JobQCmds=this.setupService.getJobQCommands(),n.get(this.cpuOptions[0].name).subscribe(r=>this.cpuOptions[0].name=r),n.get(this.cpuOptions[1].name).subscribe(r=>this.cpuOptions[1].name=r),n.get(this.cpuOptions[2].name).subscribe(r=>this.cpuOptions[2].name=r)}ngOnInit(){}ngAfterViewInit(){this.setupService.setCurrentForm(this.currentForm)}getJobQBackend(){this.successCount=0,this.errorCount=0,this.setupService.pars
eTime(this.JobQueueWindowStart,"00:00"),this.setupService.parseTime(this.JobQueueWindowEnd,"23:59"),this.mythService.GetHostName().subscribe({next:e=>{this.hostName=e.String,this.getSettings()},error:()=>this.errorCount++})}getSettings(){this.mythService.GetSetting({HostName:this.hostName,Key:"JobQueueMaxSimultaneousJobs",Default:"1"}).subscribe({next:e=>this.JobQueueMaxSimultaneousJobs=Number(e.String),error:()=>this.errorCount++}),this.mythService.GetSetting({HostName:this.hostName,Key:"JobQueueCheckFrequency",Default:"60"}).subscribe({next:e=>this.JobQueueCheckFrequency=Number(e.String),error:()=>this.errorCount++}),this.JobQueueWindowStartHT$=this.mythService.GetSetting({HostName:this.hostName,Key:"JobQueueWindowStart",Default:"00:00"}),this.JobQueueWindowStartHT$.subscribe({next:e=>{this.setupService.parseTime(this.JobQueueWindowStart,e.String),this.JobQueueWindowStartHT.updateInputfield()},error:()=>this.errorCount++}),this.JobQueueWindowEndHT$=this.mythService.GetSetting({Hos
tName:this.hostName,Key:"JobQueueWindowEnd",Default:"23:59"}),this.JobQueueWindowEndHT$.subscribe({next:e=>{this.setupService.parseTime(this.JobQueueWindowEnd,e.String),this.JobQueueWindowEndHT.updateInputfield()},error:()=>this.errorCount++}),this.mythService.GetSetting({HostName:this.hostName,Key:"JobQueueCPU",Default:"0"}).subscribe({next:e=>this.JobQueueCPU=e.String,error:()=>this.errorCount++}),this.mythService.GetSetting({HostName:this.hostName,Key:"JobAllowMetadata",Default:"1"}).subscribe({next:e=>this.JobAllowMetadata="1"==e.String,error:()=>this.errorCount++}),this.mythService.GetSetting({HostName:this.hostName,Key:"JobAllowCommFlag",Default:"1"}).subscribe({next:e=>this.JobAllowCommFlag="1"==e.String,error:()=>this.errorCount++}),this.mythService.GetSetting({HostName:this.hostName,Key:"JobAllowTranscode",Default:"1"}).subscribe({next:e=>this.JobAllowTranscode="1"==e.String,error:()=>this.errorCount++}),this.mythService.GetSetting({HostName:this.hostName,Key:"JobAllowPrevi
ew",Default:"1"}).subscribe({next:e=>this.JobAllowPreview="1"==e.String,error:()=>this.errorCount++}),this.mythService.GetSetting({HostName:this.hostName,Key:"JobAllowUserJob1",Default:"0"}).subscribe({next:e=>this.JobAllowUserJob1="1"==e.String,error:()=>this.errorCount++}),this.mythService.GetSetting({HostName:this.hostName,Key:"JobAllowUserJob2",Default:"0"}).subscribe({next:e=>this.JobAllowUserJob2="1"==e.String,error:()=>this.errorCount++}),this.mythService.GetSetting({HostName:this.hostName,Key:"JobAllowUserJob3",Default:"0"}).subscribe({next:e=>this.JobAllowUserJob3="1"==e.String,error:()=>this.errorCount++}),this.mythService.GetSetting({HostName:this.hostName,Key:"JobAllowUserJob4",Default:"0"}).subscribe({next:e=>this.JobAllowUserJob4="1"==e.String,error:()=>this.errorCount++})}saveForm(){this.successCount=0,this.errorCount=0,this.mythService.PutSetting({HostName:this.hostName,Key:"JobQueueMaxSimultaneousJobs",Value:String(this.JobQueueMaxSimultaneousJobs)}).subscribe(this.
jqbObserver),this.mythService.PutSetting({HostName:this.hostName,Key:"JobQueueCheckFrequency",Value:String(this.JobQueueCheckFrequency)}).subscribe(this.jqbObserver),this.mythService.PutSetting({HostName:this.hostName,Key:"JobQueueWindowStart",Value:this.setupService.formatTime(this.JobQueueWindowStart)}).subscribe(this.jqbObserver),this.mythService.PutSetting({HostName:this.hostName,Key:"JobQueueWindowEnd",Value:this.setupService.formatTime(this.JobQueueWindowEnd)}).subscribe(this.jqbObserver),this.mythService.PutSetting({HostName:this.hostName,Key:"JobQueueCPU",Value:this.JobQueueCPU}).subscribe(this.jqbObserver),this.mythService.PutSetting({HostName:this.hostName,Key:"JobAllowMetadata",Value:this.JobAllowMetadata?"1":"0"}).subscribe(this.jqbObserver),this.mythService.PutSetting({HostName:this.hostName,Key:"JobAllowCommFlag",Value:this.JobAllowCommFlag?"1":"0"}).subscribe(this.jqbObserver),this.mythService.PutSetting({HostName:this.hostName,Key:"JobAllowTranscode",Value:this.JobAl
lowTranscode?"1":"0"}).subscribe(this.jqbObserver),this.mythService.PutSetting({HostName:this.hostName,Key:"JobAllowPreview",Value:this.JobAllowPreview?"1":"0"}).subscribe(this.jqbObserver),this.mythService.PutSetting({HostName:this.hostName,Key:"JobAllowUserJob1",Value:this.JobAllowUserJob1?"1":"0"}).subscribe(this.jqbObserver),this.mythService.PutSetting({HostName:this.hostName,Key:"JobAllowUserJob2",Value:this.JobAllowUserJob2?"1":"0"}).subscribe(this.jqbObserver),this.mythService.PutSetting({HostName:this.hostName,Key:"JobAllowUserJob3",Value:this.JobAllowUserJob3?"1":"0"}).subscribe(this.jqbObserver),this.mythService.PutSetting({HostName:this.hostName,Key:"JobAllowUserJob4",Value:this.JobAllowUserJob4?"1":"0"}).subscribe(this.jqbObserver)}}return
t.\u0275fac=function(e){return
new(e||t)(D(Me),D(Oe),D(qt))},t.\u0275cmp=z({type:t,selectors:[["app-jobqueue-backend"]],viewQuery:function(e,n){if(1&e&&(W(zQ,5),W(jQ,5),W($Q,5)),2&e){let
s;V(s=B())&&(n.currentForm=s.first),V(s=B())&&(n
.JobQueueWindowStartHT=s.first),V(s=B())&&(n.JobQueueWindowEndHT=s.first)}},decls:7,vars:0,consts:[["name","jobqbackend",1,"ml-3","mr-3"],["jobqbackend","ngForm"],[1,"m-5"],["pTemplate","title"],["pTemplate","subtitle"],["pTemplate","content"],["pTemplate","footer"],[1,"grid"],[1,"mb-4","w-full"],[1,"form-group","field"],["for","JobQueueMaxSimultaneousJobs",1,"label","block"],["name","JobQueueMaxSimultaneousJobs","id","JobQueueMaxSimultaneousJobs",3,"ngModel","showButtons","min","max","step","ngModelChange"],[1,"block"],["for","JobQueueCheckFrequency",1,"label","block"],["name","JobQueueCheckFrequency","id","JobQueueCheckFrequency",3,"ngModel","showButtons","min","max","step","ngModelChange"],["for","JobQueueWindowStart",1,"label","block"],["name","JobQueueWindowStart","id","JobQueueWindowStart","ngControl","JobQueueWindowStart",3,"ngModel","timeOnly","readonlyInput","ngModelChange"],["JobQueueWindowStartHT",""],["for","JobQueueWindowEnd",1,"label","block"],["name","JobQueueWindowEn
d","id","JobQueueWindowEnd","ngControl","JobQueueWindowEnd",3,"ngModel","timeOnly","readonlyInput","ngModelChange"],["JobQueueWindowEndHT",""],["for","JobQueueCPU",1,"label","block"],["optionLabel","name","optionValue","code","name","JobQueueCPU",1,"block","w-15rem","mb-2",3,"options","ngModel","ngModelChange"],["inputId","JobAllowMetadata","name","JobAllowMetadata",1,"label","mb-2","w-full",3,"ngModel","binary","label","ngModelChange"],["inputId","JobAllowCommFlag","name","JobAllowCommFlag",1,"label","mb-2","w-full",3,"ngModel","binary","label","ngModelChange"],["inputId","JobAllowTranscode","name","JobAllowTranscode",1,"label","mb-2","w-full",3,"ngModel","binary","label","ngModelChange"],["inputId","JobAllowPreview","name","JobAllowPreview",1,"label","mb-2","w-full",3,"ngModel","binary","label","ngModelChange"],["inputId","JobAllowUserJob1","name","JobAllowUserJob1",1,"label","mb-2","w-full",3,"ngModel","binary","label","ngModelChange"],["inputId","JobAllowUserJob2","name","JobAll
owUserJob2",1,"label","mb-2","w-full",3,"ngModel","binary","label","ngModelChange"],["inputId","JobAllowUserJob3","name","JobAllowUserJob3",1,"label","mb-2","w-full",3,"ngModel","binary","label","ngModelChange"],["inputId","JobAllowUserJob4","name","JobAllowUserJob4",1,"label","mb-2","w-full",3,"ngModel","binary","label","ngModelChange"],[1,"grid","nogutter"],[1,"col-12"],["severity","success",3,"text",4,"ngIf"],["severity","error",3,"text",4,"ngIf"],["icon","pi
pi-save","iconPos","left",1,"col","pr-1",3,"label","disabled","onClick"],["severity","success",3,"text"],["severity","error",3,"text"]],template:function(e,n){1&e&&(l(0,"form",0,1)(2,"p-card",2),_(3,WQ,2,3,"ng-template",3),_(4,KQ,2,3,"ng-template",4),_(5,QQ,88,104,"ng-template",5),_(6,ZQ,6,6,"ng-template",6),c()())},directives:[ze,Ue,He,Ne,ne,pt,Te,_e,xr,Ot,sn,Q,qe,ve],pipes:[ce],styles:[""]}),t})();const
eJ=["jobqglobal"];function
tJ(t,i){1&t&&(g(0),m(1,"translate")),2&t&&T("
",f(1,1,"settings.jobqglobal.title")," ")}functi
on nJ(t,i){}function iJ(t,i){if(1&t){const
e=I();l(0,"div",7)(1,"div",8)(2,"div",9)(3,"p-checkbox",10),C("ngModelChange",function(s){return
v(e),d().JobsRunOnRecordHost=s}),m(4,"translate"),c(),l(5,"small",11),g(6),m(7,"translate"),c()(),l(8,"div",9)(9,"p-checkbox",12),C("ngModelChange",function(s){return
v(e),d().AutoCommflagWhileRecording=s}),m(10,"translate"),c(),l(11,"small",11),g(12),m(13,"translate"),c()(),l(14,"div",9)(15,"label",13),g(16),m(17,"translate"),c(),l(18,"input",14),C("ngModelChange",function(s){return
v(e),d().JobQueueCommFlagCommand=s}),c(),l(19,"small",11),g(20),m(21,"translate"),c()(),l(22,"div",9)(23,"label",15),g(24),m(25,"translate"),c(),l(26,"input",16),C("ngModelChange",function(s){return
v(e),d().JobQueueTranscodeCommand=s}),c(),l(27,"small",11),g(28),m(29,"translate"),c()(),l(30,"div",9)(31,"p-checkbox",17),C("ngModelChange",function(s){return
v(e),d().AutoTranscodeBeforeAutoCommflag=s}),m(32,"translate"),c(),l(33,"small",11),g(34),m(35,"translate"),c()
(),l(36,"div",9)(37,"p-checkbox",18),C("ngModelChange",function(s){return
v(e),d().SaveTranscoding=s}),m(38,"translate"),c(),l(39,"small",11),g(40),m(41,"translate"),c()()()()}if(2&t){const
e=d();a(3),x("label",f(4,22,"settings.jobqglobal.runonrechost_label")),p("ngModel",e.JobsRunOnRecordHost)("binary",!0),a(3),T("
",f(7,24,"settings.jobqglobal.runonrechost_desc"),"
"),a(3),x("label",f(10,26,"settings.jobqglobal.startcomm_label")),p("ngModel",e.AutoCommflagWhileRecording)("binary",!0),a(3),T("
",f(13,28,"settings.jobqglobal.startcomm_desc"),"
"),a(4),S(f(17,30,"settings.jobqglobal.commcmd_label")),a(2),p("ngModel",e.JobQueueCommFlagCommand),a(2),T("
",f(21,32,"settings.jobqglobal.commcmd_desc"),"
"),a(4),S(f(25,34,"settings.jobqglobal.transcmd_label")),a(2),p("ngModel",e.JobQueueTranscodeCommand),a(2),T("
",f(29,36,"settings.jobqglobal.transcmd_desc"),"
"),a(3),x("label",f(32,38,"settings.jobqglobal.transfirst_label")),p("ngModel",e.AutoTranscodeBeforeAutoCommflag)("binary",!0),a(3
),T(" ",f(35,40,"settings.jobqglobal.transfirst_desc"),"
"),a(3),x("label",f(38,42,"settings.jobqglobal.transsave_label")),p("ngModel",e.SaveTranscoding)("binary",!0),a(3),T("
",f(41,44,"settings.jobqglobal.transsave_desc")," ")}}function
sJ(t,i){1&t&&(k(0,"p-message",24),m(1,"translate")),2&t&&x("text",f(1,1,"common.savesuccess"))}function
rJ(t,i){1&t&&(k(0,"p-message",25),m(1,"translate")),2&t&&x("text",f(1,1,"common.networkfail"))}function
oJ(t,i){if(1&t){const
e=I();l(0,"div",19)(1,"div",20),_(2,sJ,2,3,"p-message",21),_(3,rJ,2,3,"p-message",22),c(),l(4,"p-button",23),C("onClick",function(){v(e);const
s=d(),r=F(1);return
s.saveForm(),r.form.markAsPristine()}),m(5,"translate"),c()()}if(2&t){const
e=d(),n=F(1);a(2),p("ngIf",e.successCount>0&&0==e.errorCount&&!n.dirty),a(1),p("ngIf",e.errorCount>0),a(1),x("label",f(5,4,"common.save")),p("disabled",!n.dirty||e.setupService.schedulingEnabled)}}let
aJ=(()=>{class
t{constructor(e,n){this.setupService=e,this.mythService=n,this.successCou
nt=0,this.errorCount=0,this.JobsRunOnRecordHost=!1,this.AutoCommflagWhileRecording=!1,this.JobQueueCommFlagCommand="mythcommflag",this.JobQueueTranscodeCommand="mythtranscode",this.AutoTranscodeBeforeAutoCommflag=!1,this.SaveTranscoding=!1,this.JobQGlobalObs={next:s=>{s.bool?this.successCount++:(this.errorCount++,this.currentForm&&this.currentForm.form.markAsDirty())},error:s=>{console.error(s),this.errorCount++,this.currentForm&&this.currentForm.form.markAsDirty()}},this.getJobQGlobal()}ngOnInit(){}ngAfterViewInit(){this.setupService.setCurrentForm(this.currentForm)}getJobQGlobal(){this.mythService.GetSetting({HostName:"_GLOBAL_",Key:"JobsRunOnRecordHost",Default:"0"}).subscribe({next:e=>this.JobsRunOnRecordHost="1"==e.String,error:()=>this.errorCount++}),this.mythService.GetSetting({HostName:"_GLOBAL_",Key:"AutoCommflagWhileRecording",Default:"0"}).subscribe({next:e=>this.AutoCommflagWhileRecording="1"==e.String,error:()=>this.errorCount++}),this.mythService.GetSetting({HostName:"
_GLOBAL_",Key:"JobQueueCommFlagCommand",Default:"mythcommflag"}).subscribe({next:e=>this.JobQueueCommFlagCommand=e.String,error:()=>this.errorCount++}),this.mythService.GetSetting({HostName:"_GLOBAL_",Key:"JobQueueTranscodeCommand",Default:"mythtranscode"}).subscribe({next:e=>this.JobQueueTranscodeCommand=e.String,error:()=>this.errorCount++}),this.mythService.GetSetting({HostName:"_GLOBAL_",Key:"AutoTranscodeBeforeAutoCommflag",Default:"0"}).subscribe({next:e=>this.AutoTranscodeBeforeAutoCommflag="1"==e.String,error:()=>this.errorCount++}),this.mythService.GetSetting({HostName:"_GLOBAL_",Key:"SaveTranscoding",Default:"0"}).subscribe({next:e=>this.SaveTranscoding="1"==e.String,error:()=>this.errorCount++})}saveForm(){this.successCount=0,this.errorCount=0,this.successCount=0,this.errorCount=0,this.mythService.PutSetting({HostName:"_GLOBAL_",Key:"JobsRunOnRecordHost",Value:this.JobsRunOnRecordHost?"1":"0"}).subscribe(this.JobQGlobalObs),this.mythService.PutSetting({HostName:"_GLOBAL_"
,Key:"AutoCommflagWhileRecording",Value:this.AutoCommflagWhileRecording?"1":"0"}).subscribe(this.JobQGlobalObs),this.mythService.PutSetting({HostName:"_GLOBAL_",Key:"JobQueueCommFlagCommand",Value:this.JobQueueCommFlagCommand}).subscribe(this.JobQGlobalObs),this.mythService.PutSetting({HostName:"_GLOBAL_",Key:"JobQueueTranscodeCommand",Value:this.JobQueueTranscodeCommand}).subscribe(this.JobQGlobalObs),this.mythService.PutSetting({HostName:"_GLOBAL_",Key:"AutoTranscodeBeforeAutoCommflag",Value:this.AutoTranscodeBeforeAutoCommflag?"1":"0"}).subscribe(this.JobQGlobalObs),this.mythService.PutSetting({HostName:"_GLOBAL_",Key:"SaveTranscoding",Value:this.SaveTranscoding?"1":"0"}).subscribe(this.JobQGlobalObs)}}return
t.\u0275fac=function(e){return
new(e||t)(D(Me),D(qt))},t.\u0275cmp=z({type:t,selectors:[["app-jobqueue-global"]],viewQuery:function(e,n){if(1&e&&W(eJ,5),2&e){let
s;V(s=B())&&(n.currentForm=s.first)}},decls:7,vars:0,consts:[["name","jobqglobal",1,"ml-3","mr-3"],["jobqglobal",
"ngForm"],[1,"m-5"],["pTemplate","title"],["pTemplate","subtitle"],["pTemplate","content"],["pTemplate","footer"],[1,"grid"],[1,"mb-4","w-full"],[1,"form-group","field"],["inputId","JobsRunOnRecordHost","name","JobsRunOnRecordHost",1,"label","mb-2","w-full",3,"ngModel","binary","label","ngModelChange"],[1,"block"],["inputId","AutoCommflagWhileRecording","name","AutoCommflagWhileRecording",1,"label","mb-2","w-full",3,"ngModel","binary","label","ngModelChange"],["for","JobQueueCommFlagCommand",1,"label","block"],["pInputText","","id","JobQueueCommFlagCommand","name","JobQueueCommFlagCommand",1,"mb-2","form-control","w-full",3,"ngModel","ngModelChange"],["for","JobQueueTranscodeCommand",1,"label","block"],["pInputText","","id","JobQueueTranscodeCommand","name","JobQueueTranscodeCommand",1,"mb-2","form-control","w-full",3,"ngModel","ngModelChange"],["inputId","AutoTranscodeBeforeAutoCommflag","name","AutoTranscodeBeforeAutoCommflag",1,"label","mb-2","w-full",3,"ngModel","binary","label"
,"ngModelChange"],["inputId","SaveTranscoding","name","SaveTranscoding",1,"label","mb-2","w-full",3,"ngModel","binary","label","ngModelChange"],[1,"grid","nogutter"],[1,"col-12"],["severity","success",3,"text",4,"ngIf"],["severity","error",3,"text",4,"ngIf"],["icon","pi
pi-save","iconPos","left",1,"col","pr-1",3,"label","disabled","onClick"],["severity","success",3,"text"],["severity","error",3,"text"]],template:function(e,n){1&e&&(l(0,"form",0,1)(2,"p-card",2),_(3,tJ,2,3,"ng-template",3),_(4,nJ,0,0,"ng-template",4),_(5,iJ,42,46,"ng-template",5),_(6,oJ,6,6,"ng-template",6),c()())},directives:[ze,Ue,He,Ne,ne,sn,Te,_e,Ye,Q,qe,ve],pipes:[ce],styles:[""]}),t})();const
lJ=["jobqcommands"];function
cJ(t,i){1&t&&(g(0),m(1,"translate")),2&t&&T("
",f(1,1,"settings.jobqcommands.title")," ")}function
uJ(t,i){1&t&&(g(0),m(1,"translate")),2&t&&T("
",f(1,1,"settings.jobqcommands.subtitle")," ")}const
dS=function(t){return{num:t}};function dJ(t,i){if(1&t){const
e=I();l(0,"div")(1,"div",10)(2,"labe
l",11),k(3,"div",12),c(),l(4,"input",13,14),C("ngModelChange",function(s){const
o=v(e).$implicit;return
d(2).JobQCommandsData.UserJobDesc[o]=s}),c(),l(6,"small",15),g(7),m(8,"translate"),c()(),l(9,"div",10)(10,"label",11),k(11,"div",12),c(),l(12,"input",13,16),C("ngModelChange",function(s){const
o=v(e).$implicit;return
d(2).JobQCommandsData.UserJob[o]=s}),c(),l(14,"small",15),g(15),m(16,"translate"),c()()()}if(2&t){const
e=i.$implicit,n=d(2);a(2),Bn("for","UserJobDesc",e,""),a(1),p("translate","settings.jobqcommands.job_label")("translateParams",U(18,dS,e+1)),a(1),Bn("id","UserJobDesc",e,"")("name","UserJobDesc",e,""),p("ngModel",n.JobQCommandsData.UserJobDesc[e]),a(3),T("
",f(8,14,"settings.jobqcommands.job_desc"),"
"),a(3),Bn("for","UserJob",e,""),a(1),p("translate","settings.jobqcommands.command_label")("translateParams",U(20,dS,e+1)),a(1),Bn("id","UserJob",e,"")("name","UserJob",e,""),p("ngModel",n.JobQCommandsData.UserJob[e]),a(3),T("
",f(16,16,"settings.jobqcommands.command_de
sc")," ")}}function
pJ(t,i){if(1&t&&(l(0,"div",7)(1,"div",8),_(2,dJ,17,22,"div",9),c()()),2&t){const
e=d();a(2),p("ngForOf",e.items)}}function
hJ(t,i){1&t&&(k(0,"p-message",22),m(1,"translate")),2&t&&x("text",f(1,1,"common.savesuccess"))}function
mJ(t,i){1&t&&(k(0,"p-message",23),m(1,"translate")),2&t&&x("text",f(1,1,"common.networkfail"))}function
fJ(t,i){if(1&t){const
e=I();l(0,"div",17)(1,"div",18),_(2,hJ,2,3,"p-message",19),_(3,mJ,2,3,"p-message",20),c(),l(4,"p-button",21),C("onClick",function(){v(e);const
s=d(),r=F(1);return
s.saveForm(),r.form.markAsPristine()}),m(5,"translate"),c()()}if(2&t){const
e=d(),n=F(1);a(2),p("ngIf",e.JobQCommandsData.successCount>0&&0==e.JobQCommandsData.errorCount&&!n.dirty),a(1),p("ngIf",e.JobQCommandsData.errorCount>0),a(1),x("label",f(5,4,"common.save")),p("disabled",!n.dirty||e.setupService.schedulingEnabled)}}let
gJ=(()=>{class
t{constructor(e){this.setupService=e,this.items=[0,1,2,3],this.JobQCommandsData=this.setupService.getJobQCommands()}ng
OnInit(){}ngAfterViewInit(){this.setupService.setCurrentForm(this.currentForm)}saveForm(){this.setupService.saveJobQCommands(this.currentForm)}}return
t.\u0275fac=function(e){return
new(e||t)(D(Me))},t.\u0275cmp=z({type:t,selectors:[["app-jobqueue-commands"]],viewQuery:function(e,n){if(1&e&&W(lJ,5),2&e){let
s;V(s=B())&&(n.currentForm=s.first)}},decls:7,vars:0,consts:[["name","jobqcommands",1,"ml-3","mr-3"],["jobqcommands","ngForm"],[1,"m-5"],["pTemplate","title"],["pTemplate","subtitle"],["pTemplate","content"],["pTemplate","footer"],[1,"grid"],[1,"mb-4","w-full"],[4,"ngFor","ngForOf"],[1,"form-group","field"],[1,"label","block",3,"for"],[3,"translate","translateParams"],["pInputText","",1,"mb-2","form-control","w-full",3,"id","ngModel","name","ngModelChange"],["UserJobDesc{{item}}","ngModel"],[1,"block"],["UserJob{{item}}","ngModel"],[1,"grid","nogutter"],[1,"col-12"],["severity","success",3,"text",4,"ngIf"],["severity","error",3,"text",4,"ngIf"],["icon","pi
pi-save","iconPos","lef
t",1,"col","pr-1",3,"label","disabled","onClick"],["severity","success",3,"text"],["severity","error",3,"text"]],template:function(e,n){1&e&&(l(0,"form",0,1)(2,"p-card",2),_(3,cJ,2,3,"ng-template",3),_(4,uJ,2,3,"ng-template",4),_(5,pJ,3,1,"ng-template",5),_(6,fJ,6,6,"ng-template",6),c()())},directives:[ze,Ue,He,Ne,ne,at,mu,Ye,Te,_e,Q,qe,ve],pipes:[ce],styles:[""]}),t})();const
_J=["epgdownload"];function
bJ(t,i){1&t&&(g(0),m(1,"translate")),2&t&&T("
",f(1,1,"settings.epgdownload.title")," ")}function
vJ(t,i){}function CJ(t,i){if(1&t){const
e=I();l(0,"div",7)(1,"div",8)(2,"div",9)(3,"p-checkbox",10),C("ngModelChange",function(s){return
v(e),d().MythFillEnabled=s}),m(4,"translate"),c(),l(5,"small",11),g(6),m(7,"translate"),c()()()()}if(2&t){const
e=d();a(3),x("label",f(4,4,"settings.epgdownload.enabled_label")),p("ngModel",e.MythFillEnabled)("binary",!0),a(3),T("
",f(7,6,"settings.epgdownload.enabled_desc")," ")}}function
yJ(t,i){1&t&&(k(0,"p-message",17),m(1,"translate")),2&t&&x("tex
t",f(1,1,"common.savesuccess"))}function
wJ(t,i){1&t&&(k(0,"p-message",18),m(1,"translate")),2&t&&x("text",f(1,1,"common.networkfail"))}function
TJ(t,i){if(1&t){const
e=I();l(0,"div",12)(1,"div",13),_(2,yJ,2,3,"p-message",14),_(3,wJ,2,3,"p-message",15),c(),l(4,"p-button",16),C("onClick",function(){v(e);const
s=d(),r=F(1);return
s.saveForm(),r.form.markAsPristine()}),m(5,"translate"),c()()}if(2&t){const
e=d(),n=F(1);a(2),p("ngIf",e.successCount>0&&0==e.errorCount&&!n.dirty),a(1),p("ngIf",e.errorCount>0),a(1),x("label",f(5,4,"common.save")),p("disabled",!n.dirty||e.setupService.schedulingEnabled)}}let
SJ=(()=>{class
t{constructor(e,n){this.setupService=e,this.mythService=n,this.successCount=0,this.errorCount=0,this.MythFillEnabled=!0,this.EpgDownloadObs={next:s=>{s.bool?this.successCount++:(this.errorCount++,this.currentForm&&this.currentForm.form.markAsDirty())},error:s=>{console.error(s),this.errorCount++,this.currentForm&&this.currentForm.form.markAsDirty()}},this.getEpgDownload()}
ngOnInit(){}ngAfterViewInit(){this.setupService.setCurrentForm(this.currentForm)}getEpgDownload(){this.successCount=0,this.errorCount=0,this.mythService.GetSetting({HostName:"_GLOBAL_",Key:"MythFillEnabled",Default:"1"}).subscribe({next:e=>this.MythFillEnabled="1"==e.String,error:()=>this.errorCount++})}saveForm(){console.log("save
form
clicked"),this.successCount=0,this.errorCount=0,this.mythService.PutSetting({HostName:"_GLOBAL_",Key:"MythFillEnabled",Value:this.MythFillEnabled?"1":"0"}).subscribe(this.EpgDownloadObs)}}return
t.\u0275fac=function(e){return
new(e||t)(D(Me),D(qt))},t.\u0275cmp=z({type:t,selectors:[["app-epg-downloading"]],viewQuery:function(e,n){if(1&e&&W(_J,5),2&e){let
s;V(s=B())&&(n.currentForm=s.first)}},decls:7,vars:0,consts:[["name","epgdownload",1,"ml-3","mr-3"],["epgdownload","ngForm"],[1,"m-5"],["pTemplate","title"],["pTemplate","subtitle"],["pTemplate","content"],["pTemplate","footer"],[1,"grid"],[1,"mb-4","w-full"],[1,"form-group","field"],["inputId","Myth
FillEnabled","name","MythFillEnabled",1,"label","mb-2","w-full",3,"ngModel","binary","label","ngModelChange"],[1,"block"],[1,"grid","nogutter"],[1,"col-12"],["severity","success",3,"text",4,"ngIf"],["severity","error",3,"text",4,"ngIf"],["icon","pi
pi-save","iconPos","left",1,"col","pr-1",3,"label","disabled","onClick"],["severity","success",3,"text"],["severity","error",3,"text"]],template:function(e,n){1&e&&(l(0,"form",0,1)(2,"p-card",2),_(3,bJ,2,3,"ng-template",3),_(4,vJ,0,0,"ng-template",4),_(5,CJ,8,8,"ng-template",5),_(6,TJ,6,6,"ng-template",6),c()())},directives:[ze,Ue,He,Ne,ne,sn,Te,_e,Q,qe,ve],pipes:[ce],styles:[""]}),t})();function
xJ(t,i){if(1&t&&(l(0,"b"),g(1),c()),2&t){const
e=d();a(1),T("\xa0",e.dirtyMessages[0],"")}}function
DJ(t,i){1&t&&k(0,"app-host-address")}function
MJ(t,i){if(1&t&&(l(0,"b"),g(1),c()),2&t){const
e=d();a(1),T("\xa0",e.dirtyMessages[1],"")}}function
kJ(t,i){1&t&&k(0,"app-locale")}function
IJ(t,i){if(1&t&&(l(0,"b"),g(1),c()),2&t){const
e=d();a(1),T("\
xa0",e.dirtyMessages[2],"")}}function
EJ(t,i){1&t&&k(0,"app-misc-settings")}function
RJ(t,i){if(1&t&&(l(0,"b"),g(1),c()),2&t){const
e=d();a(1),T("\xa0",e.dirtyMessages[3],"")}}function
LJ(t,i){1&t&&k(0,"app-eit-scanner")}function
OJ(t,i){if(1&t&&(l(0,"b"),g(1),c()),2&t){const
e=d();a(1),T("\xa0",e.dirtyMessages[4],"")}}function
AJ(t,i){1&t&&k(0,"app-shutdown-wakeup")}function
PJ(t,i){if(1&t&&(l(0,"b"),g(1),c()),2&t){const
e=d();a(1),T("\xa0",e.dirtyMessages[5],"")}}function
FJ(t,i){1&t&&k(0,"app-backend-wakeup")}function
NJ(t,i){if(1&t&&(l(0,"b"),g(1),c()),2&t){const
e=d();a(1),T("\xa0",e.dirtyMessages[6],"")}}function
VJ(t,i){1&t&&k(0,"app-backend-control")}function
BJ(t,i){if(1&t&&(l(0,"b"),g(1),c()),2&t){const
e=d();a(1),T("\xa0",e.dirtyMessages[7],"")}}function
HJ(t,i){1&t&&k(0,"app-jobqueue-backend")}function
qJ(t,i){if(1&t&&(l(0,"b"),g(1),c()),2&t){const
e=d();a(1),T("\xa0",e.dirtyMessages[8],"")}}function
GJ(t,i){1&t&&k(0,"app-jobqueue-global")}function
UJ(t,i){if(1&t&&(l(0,"
b"),g(1),c()),2&t){const
e=d();a(1),T("\xa0",e.dirtyMessages[9],"")}}function
zJ(t,i){1&t&&k(0,"app-jobqueue-commands")}function
jJ(t,i){if(1&t&&(l(0,"b"),g(1),c()),2&t){const
e=d();a(1),T("\xa0",e.dirtyMessages[10],"")}}function
$J(t,i){1&t&&k(0,"app-epg-downloading")}let WJ=(()=>{class
t{constructor(e,n,s){this.setupService=e,this.translate=n,this.router=s,this.m_showHelp=!1,this.currentTab=-1,this.dirtyMessages=["","","","","","","","","","","","","","","",""],this.forms=[,,,,,,,,,,,,,,,,],this.dirtyText="settings.common.unsaved",this.warningText="settings.common.warning",this.setupService.setCurrentForm(null),n.get(this.dirtyText).subscribe(r=>this.dirtyText=r),n.get(this.warningText).subscribe(r=>this.warningText=r)}ngOnInit(){}onTabOpen(e){this.showDirty(),void
0===this.forms[e.index]&&(this.forms[e.index]=this.setupService.getCurrentForm()),this.currentTab=e.index,console.log("onTabOpen"),console.log(e),this.dirtyMessages[this.currentTab]=""}onTabClose(e){this.showDirty()}sho
wDirty(){-1!=this.currentTab&&(this.dirtyMessages[this.currentTab]=this.forms[this.currentTab].dirty?this.dirtyText:"")}showHelp(){this.m_showHelp=!0}confirm(e){return
oe(window.confirm(e))}canDeactivate(){return!(this.forms[this.currentTab]&&this.forms[this.currentTab].dirty||this.dirtyMessages.find(e=>e.length>0))||this.confirm(this.warningText)}onWindowClose(e){(this.forms[this.currentTab]&&this.forms[this.currentTab].dirty||this.dirtyMessages.find(n=>n.length>0))&&(e.preventDefault(),e.returnValue=!1)}}return
t.\u0275fac=function(e){return
new(e||t)(D(Me),D(Oe),D(It))},t.\u0275cmp=z({type:t,selectors:[["app-general-settings"]],hostBindings:function(e,n){1&e&&C("beforeunload",function(r){return
n.onWindowClose(r)},!1,ni)},decls:54,vars:42,consts:[[1,"col-12","w-full","p-0",3,"onClose","onOpen"],[3,"header"],["pTemplate","header"],["pTemplate","content"],[1,"flex","justify-content-end"],["icon","pi
pi-angle-left","iconPos","left",1,"p-3",3,"label","onClick"],["icon","pi
pi-angle-r
ight","iconPos","right",1,"p-3",3,"label","onClick"]],template:function(e,n){1&e&&(l(0,"p-card")(1,"h2"),g(2),m(3,"translate"),c(),l(4,"p-accordion",0),C("onClose",function(r){return
n.onTabClose(r)})("onOpen",function(r){return
n.onTabOpen(r)}),l(5,"p-accordionTab",1),m(6,"translate"),_(7,xJ,2,1,"ng-template",2),_(8,DJ,1,0,"ng-template",3),c(),l(9,"p-accordionTab",1),m(10,"translate"),_(11,MJ,2,1,"ng-template",2),_(12,kJ,1,0,"ng-template",3),c(),l(13,"p-accordionTab",1),m(14,"translate"),_(15,IJ,2,1,"ng-template",2),_(16,EJ,1,0,"ng-template",3),c(),l(17,"p-accordionTab",1),m(18,"translate"),_(19,RJ,2,1,"ng-template",2),_(20,LJ,1,0,"ng-template",3),c(),l(21,"p-accordionTab",1),m(22,"translate"),_(23,OJ,2,1,"ng-template",2),_(24,AJ,1,0,"ng-template",3),c(),l(25,"p-accordionTab",1),m(26,"translate"),_(27,PJ,2,1,"ng-template",2),_(28,FJ,1,0,"ng-template",3),c(),l(29,"p-accordionTab",1),m(30,"translate"),_(31,NJ,2,1,"ng-template",2),_(32,VJ,1,0,"ng-template",3),c(),l(33,"p-accordionTab"
,1),m(34,"translate"),_(35,BJ,2,1,"ng-template",2),_(36,HJ,1,0,"ng-template",3),c(),l(37,"p-accordionTab",1),m(38,"translate"),_(39,qJ,2,1,"ng-template",2),_(40,GJ,1,0,"ng-template",3),c(),l(41,"p-accordionTab",1),m(42,"translate"),_(43,UJ,2,1,"ng-template",2),_(44,zJ,1,0,"ng-template",3),c(),l(45,"p-accordionTab",1),m(46,"translate"),_(47,jJ,2,1,"ng-template",2),_(48,$J,1,0,"ng-template",3),c()(),l(49,"div",4)(50,"p-button",5),C("onClick",function(){return
n.router.navigate(["setupwizard/selectlanguage"])}),m(51,"translate"),c(),l(52,"p-button",6),C("onClick",function(){return
n.router.navigate(["setupwizard/capture-cards"])}),m(53,"translate"),c()()()),2&e&&(a(2),S(f(3,14,"settings.general.title")),a(3),x("header",f(6,16,"settings.hostaddress.title")),a(4),x("header",f(10,18,"settings.locale.title")),a(4),x("header",f(14,20,"settings.misc.title")),a(4),x("header",f(18,22,"settings.eit.title")),a(4),x("header",f(22,24,"settings.shutwake.title")),a(4),x("header",f(26,26,"settings.ba
ckendwake.title")),a(4),x("header",f(30,28,"settings.backendctrl.title")),a(4),x("header",f(34,30,"settings.jobqbackend.title")),a(4),x("header",f(38,32,"settings.jobqglobal.title")),a(4),x("header",f(42,34,"settings.jobqcommands.title")),a(4),x("header",f(46,36,"settings.epgdownload.title")),a(5),x("label",f(51,38,"common.back")),a(2),x("label",f(53,40,"common.next")))},directives:[Ne,Ss,Ts,ne,KK,iQ,dQ,vQ,MQ,PQ,UQ,XQ,aJ,gJ,SJ,ve],pipes:[ce],styles:["@media
screen and (max-width:
48rem){.p-card-body,.p-card-content,.p-accordion-content{padding:0rem!important}}\n"],encapsulation:2}),t})(),Gt=(()=>{class
t{constructor(e){this.httpClient=e,this.diseqcTypes=[{description:"Switch",type:"switch",inactive:!1},{description:"Rotor",type:"rotor",inactive:!1},{description:"Unicable",type:"scr",inactive:!1},{description:"LNB",type:"lnb",inactive:!1}]}GetCaptureCardList(e,n){let
s=(new ye).set("HostName",e).set("CardType",n);return
this.httpClient.get("/Capture/GetCaptureCardList",{params:s})}Ge
tCardTypeList(){return
this.httpClient.get("/Capture/GetCardTypeList",{})}UpdateCaptureCard(e,n,s){return
this.httpClient.post("/Capture/UpdateCaptureCard",{Cardid:e,Setting:n,Value:s})}DeleteCaptureCard(e){return
this.httpClient.post("/Capture/RemoveCardInput",{CardInputId:e})}AddCaptureCard(e){return
this.httpClient.post("/Capture/AddCaptureCard",e)}GetCaptureDeviceList(e){let
n=(new ye).set("CardType",e);return
this.httpClient.get("/Capture/GetCaptureDeviceList",{params:n})}GetDiseqcTreeList(){return
this.httpClient.get("/Capture/GetDiseqcTreeList",{})}AddDiseqcTree(e){return
this.httpClient.post("/Capture/AddDiseqcTree",e)}UpdateDiseqcTree(e){return
this.httpClient.post("/Capture/UpdateDiseqcTree",e)}DeleteDiseqcTree(e){return
this.httpClient.post("/Capture/RemoveDiseqcTree",{DiseqcId:e})}GetDiseqcConfigList(){return
this.httpClient.get("/Capture/GetDiseqcConfigList",{})}AddDiseqcConfig(e){return
this.httpClient.post("/Capture/AddDiseqcConfig",e)}DeleteDiseqcConfig(e){return
con
sole.log(e),this.httpClient.post("/Capture/RemoveDiseqcConfig",{CardId:e})}GetInputGroupList(){return
this.httpClient.get("/Capture/GetUserInputGroupList",{})}SetInputMaxRecordings(e,n){return
this.httpClient.post("/Capture/SetInputMaxRecordings",{InputId:e,Max:n})}AddUserInputGroup(e){return
this.httpClient.post("/Capture/AddUserInputGroup",{Name:e})}LinkInputGroup(e,n){return
this.httpClient.post("/Capture/LinkInputGroup",{InputId:e,InputGroupId:n})}UnlinkInputGroup(e,n){return
this.httpClient.post("/Capture/UnlinkInputGroup",{InputId:e,InputGroupId:n})}GetRecProfileGroupList(e,n,s){let
r=(new
ye).set("GroupId",e).set("ProfileId",n).set("OnlyInUse",s);return
this.httpClient.get("/Capture/GetRecProfileGroupList",{params:r})}AddRecProfile(e,n,s,r){return
this.httpClient.post("/Capture/AddRecProfile",{GroupId:e,ProfileName:n,VideoCodec:s,AudioCodec:r})}DeleteRecProfile(e){return
this.httpClient.post("/Capture/DeleteRecProfile",{ProfileId:e})}UpdateRecProfile(e,n,s){return
this.httpCl
ient.post("/Capture/UpdateRecProfile",{ProfileId:e,VideoCodec:n,AudioCodec:s})}UpdateRecProfileParam(e,n,s){return
this.httpClient.post("/Capture/UpdateRecProfileParam",{ProfileId:e,Name:n,Value:s})}GetCardSubType(e){let
n=(new ye).set("cardid",e);return
this.httpClient.get("/Capture/GetCardSubType",{params:n})}}return
t.\u0275fac=function(e){return
new(e||t)(K(Bi))},t.\u0275prov=X({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();function
KJ(t,i){if(1&t){const
e=I();l(0,"p-button",14),C("onClick",function(){return
v(e),d().displayModal=!1}),m(1,"translate"),c(),l(2,"p-button",15),C("onClick",function(){return
v(e),d().newCard()}),m(3,"translate"),c()}if(2&t){const
e=d();x("label",f(1,3,"common.cancel")),a(2),x("label",f(3,5,"common.ok")),p("disabled",""==e.selectedCardType.CardType)}}function
QJ(t,i){if(1&t){const
e=I();l(0,"p-button",16),C("click",function(){return
v(e),d().displayDeleteAllonHost=!1}),m(1,"translate"),c(),l(2,"p-button",17),C("click",function(){return
v(e),d(
).deleteAllOnHost()}),m(3,"translate"),c()}2&t&&(x("label",f(1,2,"common.no")),a(2),x("label",f(3,4,"common.yes")))}function
JJ(t,i){if(1&t){const
e=I();l(0,"p-button",16),C("click",function(){return
v(e),d().displayDeleteAll=!1}),m(1,"translate"),c(),l(2,"p-button",17),C("click",function(){return
v(e),d().deleteAllOnAllHosts()}),m(3,"translate"),c()}2&t&&(x("label",f(1,2,"common.no")),a(2),x("label",f(3,4,"common.yes")))}function
YJ(t,i){1&t&&(l(0,"div",18),k(1,"br")(2,"p-message",19),m(3,"translate"),k(4,"br"),c()),2&t&&(a(2),x("text",f(3,1,"settings.common.successful_delete")))}function
ZJ(t,i){1&t&&(l(0,"div",18),k(1,"br")(2,"p-message",20),m(3,"translate"),k(4,"br"),c()),2&t&&(a(2),x("text",f(3,1,"common.networkfail")))}function
XJ(t,i){if(1&t&&(l(0,"div",24)(1,"div",25),g(2),l(3,"b"),g(4),c()()()),2&t){const
e=d().index,n=d();a(2),yo(" ",n.m_CaptureCardsFiltered[e].CardType,"
",n.m_CaptureCardsFiltered[e].VideoDevice,"
(",n.m_CaptureCardsFiltered[e].DisplayName,") "),a(2),T("\
xa0",n.dirtyMessages[e],"")}}function eY(t,i){if(1&t){const
e=I();l(0,"p-button",16),C("click",function(){v(e);const
s=d(2).index;return
d().displayDeleteThis[s]=!1}),m(1,"translate"),c(),l(2,"p-button",17),C("click",function(){v(e);const
s=d(2).index;return
d().deleteThis(s)}),m(3,"translate"),c()}2&t&&(x("label",f(1,2,"common.no")),a(2),x("label",f(3,4,"common.yes")))}function
tY(t,i){if(1&t&&k(0,"app-ceton",31),2&t){const
e=d(2).index,n=d();p("card",n.m_CaptureCardsFiltered[e])("cardList",n.m_CaptureCardList)}}function
nY(t,i){if(1&t&&k(0,"app-dvb",32),2&t){const
e=d(2).index,n=d();p("card",n.m_CaptureCardsFiltered[e])("cardList",n.m_CaptureCardList)("diseqcTreeList",n.diseqcTreeList)("parent",n)}}function
iY(t,i){if(1&t&&k(0,"app-external",31),2&t){const
e=d(2).index,n=d();p("card",n.m_CaptureCardsFiltered[e])("cardList",n.m_CaptureCardList)}}function
sY(t,i){if(1&t&&k(0,"app-hdhomerun",31),2&t){const
e=d(2).index,n=d();p("card",n.m_CaptureCardsFiltered[e])("cardList",n.m_Captur
eCardList)}}function
rY(t,i){if(1&t&&k(0,"app-iptv",31),2&t){const
e=d(2).index,n=d();p("card",n.m_CaptureCardsFiltered[e])("cardList",n.m_CaptureCardList)}}function
oY(t,i){if(1&t&&k(0,"app-import",31),2&t){const
e=d(2).index,n=d();p("card",n.m_CaptureCardsFiltered[e])("cardList",n.m_CaptureCardList)}}function
aY(t,i){if(1&t&&k(0,"app-demo",31),2&t){const
e=d(2).index,n=d();p("card",n.m_CaptureCardsFiltered[e])("cardList",n.m_CaptureCardList)}}function
lY(t,i){if(1&t&&k(0,"app-v4l2",31),2&t){const
e=d(2).index,n=d();p("card",n.m_CaptureCardsFiltered[e])("cardList",n.m_CaptureCardList)}}function
cY(t,i){if(1&t&&k(0,"app-hdpvr",31),2&t){const
e=d(2).index,n=d();p("card",n.m_CaptureCardsFiltered[e])("cardList",n.m_CaptureCardList)}}function
uY(t,i){if(1&t&&k(0,"app-satip",31),2&t){const
e=d(2).index,n=d();p("card",n.m_CaptureCardsFiltered[e])("cardList",n.m_CaptureCardList)}}function
dY(t,i){if(1&t&&k(0,"app-vbox",31),2&t){const
e=d(2).index,n=d();p("card",n.m_CaptureCardsFiltered[e])
("cardList",n.m_CaptureCardList)}}function
pY(t,i){if(1&t&&k(0,"app-firewire",31),2&t){const
e=d(2).index,n=d();p("card",n.m_CaptureCardsFiltered[e])("cardList",n.m_CaptureCardList)}}function
hY(t,i){1&t&&(l(0,"div"),k(1,"br"),g(2,"Not Supported
"),c())}const
Dd=function(){return{width:"50vw"}},mY=function(t,i,e){return{CardType:t,VideoDevice:i,DisplayName:e}};function
fY(t,i){if(1&t){const
e=I();l(0,"p-button",26),C("onClick",function(){v(e);const
s=d().index;return
d().displayDeleteThis[s]=!0}),m(1,"translate"),c(),l(2,"p-dialog",2),C("visibleChange",function(s){v(e);const
r=d().index;return
d().displayDeleteThis[r]=s}),m(3,"translate"),l(4,"h2"),g(5),m(6,"translate"),c(),l(7,"p"),g(8),m(9,"translate"),c(),_(10,eY,4,6,"ng-template",4),c(),l(11,"div",27),_(12,tY,1,2,"app-ceton",28),_(13,nY,1,4,"app-dvb",29),_(14,iY,1,2,"app-external",28),_(15,sY,1,2,"app-hdhomerun",28),_(16,rY,1,2,"app-iptv",28),_(17,oY,1,2,"app-import",28),_(18,aY,1,2,"app-demo",28),_(19,lY,1,2,"app-v4l2",28),_(20
,cY,1,2,"app-hdpvr",28),_(21,uY,1,2,"app-satip",28),_(22,dY,1,2,"app-vbox",28),_(23,pY,1,2,"app-firewire",28),_(24,hY,3,0,"div",30),c()}if(2&t){const
e=d().index,n=d();x("label",f(1,24,"settings.capture.delete_this")),p("disabled",!n.m_CaptureCardsFiltered[e].CardId||n.setupService.schedulingEnabled),a(2),q(A(33,Dd)),x("header",f(3,26,"settings.capture.delete_this")),p("visible",n.displayDeleteThis[e])("modal",!0)("draggable",!1)("resizable",!1),a(3),S(f(6,28,"settings.common.ru_sure")),a(3),S(Dt(9,30,"settings.capture.delete_details",Qt(34,mY,n.m_CaptureCardsFiltered[e].CardType,n.m_CaptureCardsFiltered[e].VideoDevice,n.m_CaptureCardsFiltered[e].DisplayName))),a(3),p("ngSwitch",n.m_CaptureCardsFiltered[e].CardType),a(1),p("ngSwitchCase","CETON"),a(1),p("ngSwitchCase","DVB"),a(1),p("ngSwitchCase","EXTERNAL"),a(1),p("ngSwitchCase","HDHOMERUN"),a(1),p("ngSwitchCase","FREEBOX"),a(1),p("ngSwitchCase","IMPORT"),a(1),p("ngSwitchCase","DEMO"),a(1),p("ngSwitchCase","V4L2ENC"),a(1),p("ngSwit
chCase","HDPVR"),a(1),p("ngSwitchCase","SATIP"),a(1),p("ngSwitchCase","VBOX"),a(1),p("ngSwitchCase","FIREWIRE")}}function
gY(t,i){if(1&t){const
e=I();l(0,"p-accordionTab",21),C("selectedChange",function(s){const
o=v(e).index;return
d().activeTab[o]=s}),_(1,XJ,5,4,"ng-template",22),_(2,fY,25,38,"ng-template",23),c()}if(2&t){const
e=i.index,n=d();p("disabled",n.disabledTab[e])("selected",n.activeTab[e])}}const
_Y=function(){return{height:"50vh"}},pS=function(t){return{host:t}};let
hS=(()=>{class
t{constructor(e,n,s,r,o){this.mythService=e,this.router=n,this.captureCardService=s,this.setupService=r,this.translate=o,this.currentTab=-1,this.deletedTab=-1,this.dirtyMessages=[],this.forms=[],this.disabledTab=[],this.activeTab=[],this.displayDeleteThis=[],this.dirtyText="settings.common.unsaved",this.warningText="settings.common.warning",this.deletedText="settings.common.deleted",this.newText="settings.common.new",this.m_hostName="",this.displayModal=!1,this.selectedCardType={CardType:"",De
scription:""},this.displayDeleteAllonHost=!1,this.displayDeleteAll=!1,this.successCount=0,this.expectedCount=0,this.errorCount=0,this.deleteAll=!1,this.delObserver={next:u=>{u.bool?(this.successCount++,this.successCount==this.expectedCount&&(this.deleteAll?(this.loadCards(!0),this.deleteAll=!1):this.deletedTab>-1&&(this.dirtyMessages[this.deletedTab]=this.deletedText,this.disabledTab[this.deletedTab]=!0,this.activeTab[this.deletedTab]=!1,this.deletedTab=-1))):(this.errorCount++,this.deletedTab=-1,this.deleteAll=!1)},error:u=>{console.error(u),this.errorCount++,this.deleteAll=!1}},this.setupService.setCurrentForm(null),this.mythService.GetHostName().subscribe(u=>{this.m_hostName=u.String,this.loadCards(!0)}),o.get(this.dirtyText).subscribe(u=>this.dirtyText=u),o.get(this.warningText).subscribe(u=>this.warningText=u),o.get(this.deletedText).subscribe(u=>this.deletedText=u),o.get(this.newText).subscribe(u=>this.newText=u),this.captureCardService.GetCardTypeList().subscribe(u=>{this.car
dTypes=u.CardTypeList.CardTypes,this.cardTypes.forEach(h=>{h.Inactive=t.supportedCardTypes.indexOf(h.CardType)<0})})}loadCards(e){this.m_CaptureCardList$=this.captureCardService.GetCaptureCardList("",""),this.m_CaptureCardList$.subscribe(n=>{this.m_CaptureCardList=n,e&&this.filterCards()})}filterCards(){this.m_CaptureCardsFiltered=this.m_CaptureCardList.CaptureCardList.CaptureCards.filter(e=>0==e.ParentId&&e.HostName==this.m_hostName),this.dirtyMessages=[],this.forms=[],this.disabledTab=[],this.activeTab=[],this.displayDeleteThis=[];for(let
e=0;e<this.m_CaptureCardsFiltered.length;e++)this.dirtyMessages.push(""),this.disabledTab.push(!1),this.activeTab.push(!1),this.displayDeleteThis.push(!1)}ngOnInit(){this.loadDiseqc()}loadDiseqc(){this.captureCardService.GetDiseqcTreeList().subscribe({next:e=>{this.diseqcTreeList=e},error:e=>{console.log("GetDiseqcTreeList",e),this.errorCount++}})}onTabOpen(e){this.successCount+this.errorCount>=this.expectedCount&&(this.errorCount=0,this.successC
ount=0,this.expectedCount=0),this.showDirty();let
n=this.setupService.getCurrentForm();null!=n&&(this.forms[e.index]=n),this.setupService.setCurrentForm(null),this.currentTab=e.index,this.dirtyMessages[this.currentTab]=""}onTabClose(e){this.showDirty(),this.currentTab=-1}showDirty(){-1==this.currentTab||!this.forms[this.currentTab]||this.disabledTab[this.currentTab]||(this.dirtyMessages[this.currentTab]=this.forms[this.currentTab].dirty?this.dirtyText:this.m_CaptureCardsFiltered[this.currentTab].CardId?"":this.newText)}newCard(){this.displayModal=!1;let
e={CardType:this.selectedCardType.CardType,HostName:this.m_hostName,ChannelTimeout:3e3,SignalTimeout:1e3};switch(e.CardType){case"EXTERNAL":e.ChannelTimeout=2e4;break;case"FREEBOX":e.VideoDevice="http://mafreebox.freebox.fr/freeboxtv/playlist.m3u",e.ChannelTimeout=3e4;break;case"SATIP":e.DVBDiSEqCType=1}for(let
n=0;n<this.activeTab.length;n++)this.activeTab[n]=!1;this.dirtyMessages.push(this.newText),this.disabledTab.push(!1),this.ac
tiveTab.push(!1),this.displayDeleteThis.push(!1),this.m_CaptureCardsFiltered.push(e),this.selectedCardType={CardType:"",Description:""}}deleteThis(e){let
n=this.m_CaptureCardsFiltered[e].CardId;if(!this.deleteAll){if(this.successCount+this.errorCount<this.expectedCount)return;this.errorCount=0,this.successCount=0,this.expectedCount=0,this.displayDeleteThis[e]=!1,this.deletedTab=e}this.m_CaptureCardList.CaptureCardList.CaptureCards.forEach(s=>{s.ParentId==n&&(console.log("DeleteThis
(parent):",s.CardId),this.expectedCount++,this.captureCardService.DeleteCaptureCard(s.CardId).subscribe(this.delObserver))}),this.m_CaptureCardsFiltered[e].DiSEqCId=0,console.log("DeleteThis:",n),this.expectedCount++,this.captureCardService.DeleteCaptureCard(n).subscribe(this.delObserver)}deleteAllOnHost(){if(!(this.successCount+this.errorCount<this.expectedCount)){this.errorCount=0,this.successCount=0,this.expectedCount=0,this.displayDeleteAllonHost=!1,this.deletedTab=-1,this.deleteAll=!0;for(let
e=0;e<t
his.m_CaptureCardsFiltered.length;e++)!this.disabledTab[e]&&this.m_CaptureCardsFiltered[e].CardId&&this.deleteThis(e)}}deleteAllOnAllHosts(){this.successCount+this.errorCount<this.expectedCount||(this.displayDeleteAll=!1,this.deleteAllOnHost(),this.m_CaptureCardList.CaptureCardList.CaptureCards.forEach(e=>{e.HostName!=this.m_hostName&&(e.DiSEqCId=0,console.log("DeleteThis
(other
host):",e.CardId),this.expectedCount++,this.captureCardService.DeleteCaptureCard(e.CardId).subscribe(this.delObserver))}))}confirm(e){return
oe(window.confirm(e))}canDeactivate(){let
e=this.setupService.getCurrentForm();return!(this.forms[this.currentTab]&&this.forms[this.currentTab].dirty||this.dirtyMessages.find(n=>n==this.dirtyText)||e&&e.dirty)||this.confirm(this.warningText)}onWindowClose(e){let
n=this.setupService.getCurrentForm();(this.forms[this.currentTab]&&this.forms[this.currentTab].dirty||this.dirtyMessages.find(s=>s==this.dirtyText)||n&&n.dirty)&&(e.preventDefault(),e.returnValue=!1)}}return
t.s
upportedCardTypes=["CETON","DVB","EXTERNAL","HDHOMERUN","FREEBOX","IMPORT","DEMO","V4L2ENC","HDPVR","SATIP","VBOX","FIREWIRE"],t.\u0275fac=function(e){return
new(e||t)(D(qt),D(It),D(Gt),D(Me),D(Oe))},t.\u0275cmp=z({type:t,selectors:[["app-capture-cards"]],hostBindings:function(e,n){1&e&&C("beforeunload",function(r){return
n.onWindowClose(r)},!1,ni)},decls:42,vars:72,consts:[[1,"m-5"],["icon","pi
pi-plus-circle","styleClass","p-button-plain",3,"label","onClick"],[3,"header","visible","modal","draggable","resizable","visibleChange"],["optionLabel","Description","optionDisabled","Inactive",3,"options","ngModel","listStyle","ngModelChange","onDblClick"],["pTemplate","footer"],["styleClass","p-button-warning","icon","pi
pi-trash",3,"label","disabled","click"],["styleClass","p-button-danger","icon","pi
pi-trash","iconPos","left",3,"label","disabled","click"],[1,"grid","nogutter"],["class","col-12",4,"ngIf"],[1,"col-12","w-full",3,"onClose","onOpen"],[3,"disabled","selected","selectedChang
e",4,"ngFor","ngForOf"],[1,"flex","justify-content-end"],["icon","pi
pi-angle-left","iconPos","left",1,"p-3",3,"label","onClick"],["icon","pi
pi-angle-right","iconPos","right",1,"p-3",3,"label","onClick"],["icon","pi
pi-times-circle","styleClass","p-button-plain",3,"label","onClick"],["icon","pi
pi-check-circle","styleClass","p-button-plain",3,"label","disabled","onClick"],["icon","pi
pi-times-circle","styleClass","p-button-plain",3,"label","click"],["icon","pi
pi-check-circle","styleClass","p-button-plain",3,"label","click"],[1,"col-12"],["severity","success",3,"text"],["severity","error",3,"text"],[3,"disabled","selected","selectedChange"],["pTemplate","header"],["pTemplate","content"],[1,"grid","w-full"],[1,"col-11","pr-1"],["styleClass","p-button-warning","icon","pi
pi-trash",3,"label","disabled","onClick"],[3,"ngSwitch"],[3,"card","cardList",4,"ngSwitchCase"],[3,"card","cardList","diseqcTreeList","parent",4,"ngSwitchCase"],[4,"ngSwitchDefault"],[3,"card","cardList"],[3,"card","
cardList","diseqcTreeList","parent"]],template:function(e,n){1&e&&(l(0,"p-card",0)(1,"h2"),g(2),m(3,"translate"),c(),l(4,"p-button",1),C("onClick",function(){return
n.displayModal=!0}),m(5,"translate"),c(),l(6,"p-dialog",2),C("visibleChange",function(r){return
n.displayModal=r}),m(7,"translate"),l(8,"p"),g(9),m(10,"translate"),c(),l(11,"p-listbox",3),C("ngModelChange",function(r){return
n.selectedCardType=r})("onDblClick",function(){return
n.newCard()}),c(),_(12,KJ,4,7,"ng-template",4),c(),g(13," \xa0
"),l(14,"p-button",5),C("click",function(){return
n.displayDeleteAllonHost=!0}),m(15,"translate"),c(),l(16,"p-dialog",2),C("visibleChange",function(r){return
n.displayDeleteAllonHost=r}),m(17,"translate"),l(18,"h2"),g(19),m(20,"translate"),c(),_(21,QJ,4,6,"ng-template",4),c(),g(22,"
\xa0 "),l(23,"p-button",6),C("click",function(){return
n.displayDeleteAll=!0}),m(24,"translate"),c(),l(25,"p-dialog",2),C("visibleChange",function(r){return
n.displayDeleteAll=r}),m(26,"translate"),l(27,"h2
"),g(28),m(29,"translate"),c(),_(30,JJ,4,6,"ng-template",4),c(),k(31,"br"),l(32,"div",7),_(33,YJ,5,3,"div",8),_(34,ZJ,5,3,"div",8),c(),l(35,"p-accordion",9),C("onClose",function(r){return
n.onTabClose(r)})("onOpen",function(r){return
n.onTabOpen(r)}),_(36,gY,3,2,"p-accordionTab",10),c(),l(37,"div",11)(38,"p-button",12),C("onClick",function(){return
n.router.navigate(["setupwizard/general"])}),m(39,"translate"),c(),l(40,"p-button",13),C("onClick",function(){return
n.router.navigate(["setupwizard/recording-profiles"])}),m(41,"translate"),c()()()),2&e&&(a(2),S(f(3,38,"settings.capture.title")),a(2),x("label",f(5,40,"settings.capture.new_capture_card")),a(2),q(A(64,Dd)),x("header",f(7,42,"settings.capture.new_capture_card")),p("visible",n.displayModal)("modal",!0)("draggable",!1)("resizable",!1),a(3),S(f(10,44,"settings.capture.select_type")),a(2),p("options",n.cardTypes)("ngModel",n.selectedCardType)("listStyle",A(65,_Y)),a(3),x("label",Dt(15,46,"settings.capture.delete_on_host",U(66,p
S,n.m_hostName))),p("disabled",n.setupService.schedulingEnabled),a(2),q(A(68,Dd)),x("header",Dt(17,49,"settings.capture.delete_on_host",U(69,pS,n.m_hostName))),p("visible",n.displayDeleteAllonHost)("modal",!0)("draggable",!1)("resizable",!1),a(3),S(f(20,52,"settings.common.ru_sure")),a(4),x("label",f(24,54,"settings.capture.delete_all")),p("disabled",n.setupService.schedulingEnabled),a(2),q(A(71,Dd)),x("header",f(26,56,"settings.capture.delete_all_all")),p("visible",n.displayDeleteAll)("modal",!0)("draggable",!1)("resizable",!1),a(3),S(f(29,58,"settings.common.ru_sure")),a(5),p("ngIf",n.expectedCount&&n.successCount==n.expectedCount),a(1),p("ngIf",n.errorCount>0),a(2),p("ngForOf",n.m_CaptureCardsFiltered),a(2),x("label",f(39,60,"common.back")),a(2),x("label",f(41,62,"common.next")))},styles:["@media
screen and (max-width:
48rem){.p-card-body,.p-card-content,.p-accordion-content{padding:0rem!important}}\n"],encapsulation:2}),t})();function
bY(t,i){if(1&t&&(l(0,"div",10)(1,"div",11),g
(2),l(3,"b"),g(4),c()()()),2&t){const
e=d(2),n=e.$implicit,s=e.index,r=d();a(2),T(" ",n.Name,"
"),a(2),T("\xa0",r.dirtyMessages[s],"")}}function
vY(t,i){1&t&&_(0,bY,5,2,"div",9),2&t&&p("ngIf",d(2).readyCount>0)}function
CY(t,i){if(1&t&&k(0,"app-profile-group",12),2&t){const
e=d().$implicit,n=d();p("group",e)("parentComponent",n)}}function
yY(t,i){if(1&t){const
e=I();l(0,"p-accordionTab",6),C("selectedChange",function(s){const
o=v(e).index;return
d().activeTab[o]=s}),_(1,vY,1,1,"ng-template",7),_(2,CY,1,2,"ng-template",8),c()}if(2&t){const
e=i.index;p("selected",d().activeTab[e])}}let mS=(()=>{class
t{constructor(e,n,s,r){this.captureCardService=e,this.router=n,this.translate=s,this.setupService=r,this.currentTab=-1,this.deletedTab=-1,this.dirtyMessages=[],this.activeTab=[],this.readyCount=0,this.profileGroups=[],this.dirtyText="settings.common.unsaved",this.warningText="settings.common.warning",this.groups=[],this.setupService.setCurrentForm(null),this.loadGroups(),s.get(this.dirtyT
ext).subscribe(o=>this.dirtyText=o),s.get(this.warningText).subscribe(o=>this.warningText=o)}loadGroups(){this.captureCardService.GetRecProfileGroupList(0,0,!0).subscribe(n=>{this.groups=n.RecProfileGroupList.RecProfileGroups,this.readyCount++})}ngOnInit(){}onTabOpen(e){this.currentTab=e.index,this.dirtyMessages[this.currentTab]=""}onTabClose(e){this.showDirty(),this.currentTab=-1}showDirty(){-1==this.currentTab||!this.profileGroups[this.currentTab]||(this.dirtyMessages[this.currentTab]=this.profileGroups[this.currentTab].allClean()?"":this.dirtyText)}confirm(e){return
oe(window.confirm(e))}canDeactivate(){let e=!0;return
this.profileGroups.forEach(n=>{n.allClean()||(e=!1)}),!!e||this.confirm(this.warningText)}onWindowClose(e){let
n=!0;this.profileGroups.forEach(s=>{s.allClean()||(n=!1)}),n||(e.preventDefault(),e.returnValue=!1)}}return
t.\u0275fac=function(e){return
new(e||t)(D(Gt),D(It),D(Oe),D(Me))},t.\u0275cmp=z({type:t,selectors:[["app-recording-profiles"]],hostBindings:functio
n(e,n){1&e&&C("beforeunload",function(r){return
n.onWindowClose(r)},!1,ni)},decls:11,vars:10,consts:[[1,"md:m-5"],[1,"col-12","w-full",3,"onOpen","onClose"],[3,"selected","selectedChange",4,"ngFor","ngForOf"],[1,"flex","justify-content-end"],["icon","pi
pi-angle-left","iconPos","left",1,"p-3",3,"label","onClick"],["icon","pi
pi-angle-right","iconPos","right",1,"p-3",3,"label","onClick"],[3,"selected","selectedChange"],["pTemplate","header"],["pTemplate","content"],["class","grid
w-full",4,"ngIf"],[1,"grid","w-full"],[1,"col-9","pr-1"],[3,"group","parentComponent"]],template:function(e,n){1&e&&(l(0,"p-card",0)(1,"h2"),g(2),m(3,"translate"),c(),l(4,"p-accordion",1),C("onOpen",function(r){return
n.onTabOpen(r)})("onClose",function(r){return
n.onTabClose(r)}),_(5,yY,3,1,"p-accordionTab",2),c(),l(6,"div",3)(7,"p-button",4),C("onClick",function(){return
n.router.navigate(["setupwizard/capture-cards"])}),m(8,"translate"),c(),l(9,"p-button",5),C("onClick",function(){return
n.router.navigat
e(["setupwizard/video-sources"])}),m(10,"translate"),c()()()),2&e&&(a(2),S(f(3,4,"settings.rprofiles.title")),a(3),p("ngForOf",n.groups),a(2),x("label",f(8,6,"common.back")),a(2),x("label",f(10,8,"common.next")))},styles:["@media
screen and (max-width:
48rem){.p-card-body,.p-card-content,.p-accordion-content{padding:0rem!important}}\n"],encapsulation:2}),t})(),Or=(()=>{class
t{constructor(e){this.httpClient=e}AddDBChannel(e){return
this.httpClient.post("/Channel/AddDBChannel",e)}UpdateDBChannel(e){return
this.httpClient.post("/Channel/UpdateDBChannel",e)}AddVideoSource(e){return
this.httpClient.post("/Channel/AddVideoSource",e)}FetchChannelsFromSource(e){let
n=(new
ye).set("SourceId",e.SourceId).set("CardId",e.CardId).set("WaitForFinish",e.WaitForFinish);return
this.httpClient.get("/Channel/FetchChannelsFromSource",{params:n})}GetChannelInfo(e){let
n=(new ye).set("ChanID",e);return
this.httpClient.get("/Channel/GetChannelInfo",{params:n})}GetChannelInfoList(e){let
n=new ye;return vo
id 0!==e.SourceID&&(n=n.set("SourceID",e.SourceID)),void
0!==e.ChannelGroupID&&(n=n.set("ChannelGroupID",e.ChannelGroupID)),void
0!==e.StartIndex&&(n=n.set("StartIndex",e.StartIndex)),void
0!==e.Count&&(n=n.set("Count",e.Count)),void
0!==e.OnlyVisible&&(n=n.set("OnlyVisible",e.OnlyVisible)),void
0!==e.Details&&(n=n.set("Details",e.Details)),void
0!==e.OrderByName&&(n=n.set("OrderByName",e.OrderByName)),void
0!==e.GroupByCallsign&&(n=n.set("GroupByCallsign",e.GroupByCallsign)),void
0!==e.OnlyTunable&&(n=n.set("OnlyTunable",e.OnlyTunable)),this.httpClient.get("/Channel/GetChannelInfoList",{params:n})}GetDDLineupList(e){let
n=(new
ye).set("Source",e.Source).set("UserId",e.UserId).set("Password",e.Password);return
this.httpClient.get("/Channel/GetDDLineupList",{params:n})}GetVideoMultiplex(e){let
n=(new ye).set("MplexID",e);return
this.httpClient.get("/Channel/GetVideoMultiplex",{params:n})}GetVideoMultiplexList(e){let
n=(new ye).set("SourceID",e.SourceID);return e.StartIndex&&(n=n.set(
"StartIndex",e.StartIndex)),e.Count&&(n=n.set("Count",e.Count)),this.httpClient.get("/Channel/GetVideoMultiplexList",{params:n})}GetVideoSource(e){let
n=(new ye).set("SourceID",e);return
this.httpClient.get("/Channel/GetVideoSource",{params:n})}GetVideoSourceList(){return
this.httpClient.get("/Channel/GetVideoSourceList")}GetXMLTVIdList(e){let n=(new
ye).set("SourceID",e);return
this.httpClient.get("/Channel/GetXMLTVIdList",{params:n})}GetAvailableChanid(){return
this.httpClient.get("/Channel/GetAvailableChanid",{})}RemoveDBChannel(e){return
this.httpClient.post("/Channel/RemoveDBChannel",{ChannelID:e})}RemoveVideoSource(e){return
this.httpClient.post("/Channel/RemoveVideoSource",{SourceId:e})}UpdateVideoSource(e){return
this.httpClient.post("/Channel/UpdateVideoSource",e)}GetGrabberList(){return
this.httpClient.get("/Channel/GetGrabberList")}GetFreqTableList(){return
this.httpClient.get("/Channel/GetFreqTableList")}GetCommMethodList(){return
this.httpClient.get("/Channel/GetCommMet
hodList")}StartScan(e){return
this.httpClient.post("/Channel/StartScan",e)}GetScanStatus(){return
this.httpClient.get("/Channel/GetScanStatus")}StopScan(e){return
this.httpClient.post("/Channel/StopScan",{Cardid:e})}GetScanList(e){let n=(new
ye).set("SourceID",e);return
this.httpClient.get("/Channel/GetScanList",{params:n})}SendScanDialogResponse(e){return
this.httpClient.post("/Channel/SendScanDialogResponse",e)}}return
t.\u0275fac=function(e){return
new(e||t)(K(Bi))},t.\u0275prov=X({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();const
wY=["vsourceform"],TY=["top"];function
SY(t,i){1&t&&(g(0),m(1,"translate")),2&t&&T("
",f(1,1,"settings.vsource.item_title")," ")}function
xY(t,i){}function
DY(t,i){if(1&t&&(l(0,"div")(1,"small",34),g(2),c()()),2&t){const
e=d(2);a(2),T(" ",e.work.errorMessage," ")}}const
fS=function(){return{minWidth:"80%"}};function MY(t,i){if(1&t){const
e=I();l(0,"p-dropdown",35,36),C("ngModelChange",function(s){return
v(e),d(2).videoSource.Grabber=s})("onCha
nge",function(){return v(e),d(2).checkName()}),c()}if(2&t){const
e=d(2);q(A(5,fS)),p("options",e.grabberList.GrabberList.Grabbers)("ngModel",e.videoSource.Grabber)("editable",!1)}}function
kY(t,i){if(1&t){const
e=I();l(0,"div",10)(1,"label",37),g(2),m(3,"translate"),c(),l(4,"p"),g(5),m(6,"translate"),l(7,"a",38),g(8,"XMLTV"),c()(),l(9,"table")(10,"tr")(11,"td",39),g(12),c(),l(13,"td",40)(14,"button",41),C("click",function(){return
v(e),d(2).copyConfigure()}),m(15,"translate"),c()()()()()}if(2&t){const
e=d(2);a(2),T(" ",f(3,4,"settings.vsource.grabberconfig_label"),"
"),a(3),T(" ",f(6,6,"settings.vsource.grabberconfig_desc"),"
"),a(7),T(" ",e.configCommand,"
"),a(2),x("pTooltip",f(15,8,"settings.common.clipboard_tooltip"))}}function
IY(t,i){if(1&t){const
e=I();l(0,"p-dropdown",42,43),C("ngModelChange",function(s){return
v(e),d(2).videoSource.FreqTable=s}),c()}if(2&t){const
e=d(2);q(A(5,fS)),p("options",e.freqTableList.FreqTableList)("ngModel",e.videoSource.FreqTable)("editable",!1)}}
function EY(t,i){if(1&t){const
e=I();l(0,"div",8)(1,"div",9)(2,"div",10)(3,"label",11),g(4),m(5,"translate"),c(),l(6,"input",12,13),C("ngModelChange",function(s){return
v(e),d().videoSource.SourceName=s})("change",function(){return
v(e),d().checkName()}),c(),_(8,DY,3,1,"div",14),l(9,"small",15),g(10),m(11,"translate"),c()(),l(12,"div",10)(13,"label",16),g(14),m(15,"translate"),c(),_(16,MY,2,6,"p-dropdown",17),l(17,"small",15),g(18),m(19,"translate"),c()(),_(20,kY,16,10,"div",18),l(21,"div",10)(22,"p-checkbox",19,20),C("ngModelChange",function(s){return
v(e),d().videoSource.UseEIT=s}),m(24,"translate"),c(),l(25,"small",15),g(26),m(27,"translate"),c()(),l(28,"div",10)(29,"label",21),g(30),m(31,"translate"),c(),_(32,IY,2,6,"p-dropdown",22),l(33,"small",15),g(34),m(35,"translate"),c()(),l(36,"div",10)(37,"label",23),g(38),m(39,"translate"),c(),l(40,"p-inputNumber",24),C("ngModelChange",function(s){return
v(e),d().videoSource.ScanFrequency=s}),c(),l(41,"small",15),g(42),m(43,"translate")
,c()(),l(44,"div",10)(45,"label",25),g(46),m(47,"translate"),c(),l(48,"p-inputNumber",26),C("ngModelChange",function(s){return
v(e),d().videoSource.NITId=s}),c(),l(49,"small",15),g(50),m(51,"translate"),c()(),l(52,"div",10)(53,"label",27),g(54),m(55,"translate"),c(),l(56,"p-inputNumber",28),C("ngModelChange",function(s){return
v(e),d().videoSource.BouquetId=s}),c(),l(57,"small",15),g(58),m(59,"translate"),l(60,"a",29),g(61,"DVB
UK"),c()()(),l(62,"div",10)(63,"label",30),g(64),m(65,"translate"),c(),l(66,"p-inputNumber",31),C("ngModelChange",function(s){return
v(e),d().videoSource.RegionId=s}),c(),l(67,"small",15),g(68),m(69,"translate"),l(70,"a",29),g(71,"DVB
UK"),c()()(),l(72,"div",10)(73,"label",32),g(74),m(75,"translate"),c(),l(76,"p-inputNumber",33),C("ngModelChange",function(s){return
v(e),d().videoSource.LCNOffset=s}),c(),l(77,"small",15),g(78),m(79,"translate"),c()()()()}if(2&t){const
e=d();a(4),S(f(5,54,"settings.vsource.source_label")),a(2),p("ngModel",e.videoSource.SourceNa
me)("disabled",e.videoSource.Id>0)("maxlength",50),a(2),p("ngIf",e.work.errorMessage),a(2),T("
",f(11,56,"settings.vsource.source_desc")," "),a(4),T("
",f(15,58,"settings.vsource.grabber_label"),"
"),a(2),p("ngIf",e.grabberList.GrabberList.Grabbers.length>0),a(2),T("
",f(19,60,"settings.vsource.grabber_desc"),"
"),a(2),p("ngIf",e.configCommand.length>0),a(2),x("label",f(24,62,"settings.vsource.eit_label")),p("ngModel",e.videoSource.UseEIT)("binary",!0),a(4),T("
",f(27,64,"settings.vsource.eit_desc")," "),a(4),T("
",f(31,66,"settings.vsource.freqtable_label"),"
"),a(2),p("ngIf",e.freqTableList.FreqTableList.length>0),a(2),T("
",f(35,68,"settings.vsource.freqtable_desc")," "),a(4),T("
",f(39,70,"settings.vsource.scanfreq_label"),"
"),a(2),p("ngModel",e.videoSource.ScanFrequency)("min",0)("max",999999999),a(2),T("
",f(43,72,"settings.vsource.scanfreq_desc")," "),a(4),T("
",f(47,74,"settings.vsource.netid_label"),"
"),a(2),p("ngModel",e.videoSource.NITId)("showButtons",!0)("min",-1)("ma
x",65535)("step",1)("useGrouping",!1),a(2),T("
",f(51,76,"settings.vsource.netid_desc")," "),a(4),T("
",f(55,78,"settings.vsource.bouquet_label"),"
"),a(2),p("ngModel",e.videoSource.BouquetId)("showButtons",!0)("min",0)("max",65535)("step",1)("useGrouping",!1),a(2),T("
",f(59,80,"settings.vsource.bouquet_desc")," "),a(6),T("
",f(65,82,"settings.vsource.region_label"),"
"),a(2),p("ngModel",e.videoSource.RegionId)("showButtons",!0)("min",0)("max",100)("step",1)("useGrouping",!1),a(2),T("
",f(69,84,"settings.vsource.region_desc")," "),a(6),T("
",f(75,86,"settings.vsource.lcnoffset_label"),"
"),a(2),p("ngModel",e.videoSource.LCNOffset)("showButtons",!0)("min",0)("max",2e4)("step",100)("useGrouping",!1),a(2),T("
",f(79,88,"settings.vsource.lcnoffset_desc")," ")}}function
RY(t,i){1&t&&(k(0,"p-message",49),m(1,"translate")),2&t&&x("text",f(1,1,"common.savesuccess"))}function
LY(t,i){1&t&&(k(0,"p-message",50),m(1,"translate")),2&t&&x("text",f(1,1,"common.networkfail"))}function
OY(t,i){if(1
&t){const
e=I();l(0,"div",44)(1,"div",45),_(2,RY,2,3,"p-message",46),_(3,LY,2,3,"p-message",47),c(),l(4,"p-button",48),C("onClick",function(){v(e);const
s=d(),r=F(1);return
s.saveForm(),r.form.markAsPristine()}),m(5,"translate"),c()()}if(2&t){const
e=d(),n=F(1);a(2),p("ngIf",e.work.successCount>0&&0==e.work.errorCount&&!n.dirty),a(1),p("ngIf",e.work.errorCount>0),a(1),x("label",f(5,4,"common.save")),p("disabled",!n.dirty||!e.videoSource.SourceName||e.work.validateError||e.setupService.schedulingEnabled)}}let
AY=(()=>{class
t{constructor(e,n,s,r,o){this.channelService=e,this.translate=n,this.setupService=s,this.clipboard=r,this.mythService=o,this.grabberList={GrabberList:{Grabbers:[]}},this.freqTableList={FreqTableList:[]},this.work={successCount:0,errorCount:0,errorMessage:"",validateError:!1},this.messages={nameInUse:"settings.vsource.nameInUse",nameRequired:"settings.vsource.nameRequired"},this.configCommand="",this.saveObserver={next:u=>{u.bool?this.work.successCount++:!this.vide
oSource.Id&&u.int?(this.work.successCount++,this.videoSource.Id||(this.videoSource.Id=u.int)):(console.log("saveObserver
error",u),this.work.errorCount++,this.currentForm.form.markAsDirty())},error:u=>{console.log("saveObserver
error",u),this.work.errorCount++,this.currentForm.form.markAsDirty()}},n.get(this.messages.nameInUse).subscribe(u=>this.messages.nameInUse=u),n.get(this.messages.nameRequired).subscribe(u=>this.messages.nameRequired=u)}ngOnInit(){this.channelService.GetGrabberList().subscribe(e=>{this.grabberList=e}),this.channelService.GetFreqTableList().subscribe(e=>{this.freqTableList=e}),this.mythService.GetBackendInfo().subscribe(e=>{this.backendInfo=e,this.setupConf()})}ngAfterViewInit(){this.setupService.setCurrentForm(this.currentForm),this.topElement.nativeElement.scrollIntoView({behavior:"smooth",block:"start"})}copyConfigure(){this.clipboard.copy(this.configCommand)}checkName(){this.work.errorMessage="",this.work.validateError=!1,this.videoSource.SourceName=this.vi
deoSource.SourceName.trim(),this.videoSourceList.VideoSourceList.VideoSources.find(n=>n.SourceName==this.videoSource.SourceName&&n.Id!=this.videoSource.Id)&&(this.work.errorMessage=this.messages.nameInUse,this.work.validateError=!0),""==this.videoSource.SourceName&&(this.work.errorMessage=this.messages.nameRequired,this.work.validateError=!0),this.setupConf()}setupConf(){this.configCommand="eitonly"==this.videoSource.Grabber||"/bin/true"==this.videoSource.Grabber||""==this.videoSource.Grabber||""==this.videoSource.SourceName||this.work.validateError?"":"sudo
-u "+this.backendInfo.BackendInfo.Env.USER+"
"+this.videoSource.Grabber+' --configure --config-file
"'+this.backendInfo.BackendInfo.Env.MYTHCONFDIR+"/"+this.videoSource.SourceName+'.xmltv"'}saveForm(){if(this.work.successCount=0,this.work.errorCount=0,this.videoSource.Id){let
e=this.videoSource;e.SourceID=this.videoSource.Id,this.channelService.UpdateVideoSource(e).subscribe(this.saveObserver)}else
this.channelService.AddVideoSo
urce(this.videoSource).subscribe(this.saveObserver)}}return
t.\u0275fac=function(e){return
new(e||t)(D(Or),D(Oe),D(Me),D(lS),D(qt))},t.\u0275cmp=z({type:t,selectors:[["app-vsource"]],viewQuery:function(e,n){if(1&e&&(W(wY,5),W(TY,5)),2&e){let
s;V(s=B())&&(n.currentForm=s.first),V(s=B())&&(n.topElement=s.first)}},inputs:{videoSource:"videoSource",videoSourceList:"videoSourceList"},decls:9,vars:0,consts:[["name","vsourceform",1,"ml-3","mr-3"],["vsourceform","ngForm"],["top",""],[1,"m-5"],["pTemplate","title"],["pTemplate","subtitle"],["pTemplate","content"],["pTemplate","footer"],[1,"grid"],[1,"mb-4","w-full"],[1,"form-group","field"],["for","SourceName",1,"label","block"],["pInputText","","id","SourceName","name","SourceName",1,"mb-2","form-control","w-full",3,"ngModel","disabled","maxlength","ngModelChange","change"],["SourceName","ngModel"],[4,"ngIf"],[1,"block"],["for","Grabber",1,"label","block"],["optionLabel","DisplayName","optionValue","Program","name","Grabber",3,"options","ng
Model","editable","style","ngModelChange","onChange",4,"ngIf"],["class","form-group
field",4,"ngIf"],["inputId","UseEIT",&...
ffset",1,"label","block"],["name",&quo...
pi-copy",1,"p-button-rounded","p-button-text",3,"pTooltip","click"],["name","FreqTable",3,"options","ngModel","editable","ngModelChange"],["FreqTable","ngModel"],[1,"grid","nogutter"],[1,"col-12"],["severity","success",3,"text",4,"ngIf"],["severity","error",3,"text",4,"ngIf"],["icon","pi
pi-save","iconPos","left",1,"col","pr-1",3,"label","disabled","onClick"],["severity","success",3,"text"],["severity","error",3,"text
"]],template:function(e,n){1&e&&(l(0,"form",0,1),k(2,"span",null,2),l(4,"p-card",3),_(5,SY,2,3,"ng-template",4),_(6,xY,0,0,"ng-template",5),_(7,EY,80,90,"ng-template",6),_(8,OY,6,6,"ng-template",7),c()())},directives:[ze,Ue,He,Ne,ne,Ye,Te,_e,_n,Q,Ot,On,bt,Kt,sn,pt,qe,ve],pipes:[ce],styles:["a[_ngcontent-%COMP%]:link,
a[_ngcontent-%COMP%]:visited,
a[_ngcontent-%COMP%]:active{background-color:#fff}"]}),t})();function
PY(t,i){if(1&t){const
e=I();l(0,"p-button",12),C("click",function(){return
v(e),d().displayDeleteAll=!1}),m(1,"translate"),c(),l(2,"p-button",13),C("click",function(){return
v(e),d().deleteAllSources()}),m(3,"translate"),c()}2&t&&(x("label",f(1,2,"common.no")),a(2),x("label",f(3,4,"common.yes")))}function
FY(t,i){1&t&&(l(0,"div",14),k(1,"br")(2,"p-message",15),m(3,"translate"),k(4,"br"),c()),2&t&&(a(2),x("text",f(3,1,"settings.common.successful_delete")))}function
NY(t,i){1&t&&(l(0,"div",14),k(1,"br")(2,"p-message",16),m(3,"translate"),k(4,"br"),c()),2&t&&(a(2),x("text",f
(3,1,"common.networkfail")))}function
VY(t,i){if(1&t&&(l(0,"div",20)(1,"div",21),g(2),l(3,"b"),g(4),c()()()),2&t){const
e=d().index,n=d();a(2),We("
",n.videoSourceList.VideoSourceList.VideoSources[e].SourceName,"
(",n.videoSourceList.VideoSourceList.VideoSources[e].Grabber,")
"),a(2),T("\xa0",n.dirtyMessages[e],"")}}function
BY(t,i){if(1&t){const
e=I();l(0,"p-button",12),C("click",function(){v(e);const
s=d(2).index;return
d().displayDeleteThis[s]=!1}),m(1,"translate"),c(),l(2,"p-button",13),C("click",function(){v(e);const
s=d(2).index;return
d().deleteThis(s)}),m(3,"translate"),c()}2&t&&(x("label",f(1,2,"common.no")),a(2),x("label",f(3,4,"common.yes")))}const
gS=function(){return{width:"50vw"}},HY=function(t,i){return{Grabber:t,DisplayName:i}};function
qY(t,i){if(1&t){const
e=I();l(0,"p-button",22),C("onClick",function(){v(e);const
s=d().index;return
d().displayDeleteThis[s]=!0}),m(1,"translate"),c(),l(2,"p-dialog",3),C("visibleChange",function(s){v(e);const
r=d().index;return d().d
isplayDeleteThis[r]=s}),m(3,"translate"),l(4,"h2"),g(5),m(6,"translate"),c(),l(7,"p"),g(8),m(9,"translate"),c(),_(10,BY,4,6,"ng-template",4),c(),k(11,"app-vsource",23)}if(2&t){const
e=d().index,n=d();x("label",f(1,13,"settings.vsource.delete_this")),p("disabled",!n.videoSourceList.VideoSourceList.VideoSources[e].Id||n.setupService.schedulingEnabled),a(2),q(A(22,gS)),x("header",f(3,15,"settings.vsource.delete_this")),p("visible",n.displayDeleteThis[e])("modal",!0)("draggable",!1)("resizable",!1),a(3),S(f(6,17,"settings.common.ru_sure")),a(3),S(Dt(9,19,"settings.vsource.delete_details",Ge(23,HY,n.videoSourceList.VideoSourceList.VideoSources[e].Grabber,n.videoSourceList.VideoSourceList.VideoSources[e].SourceName))),a(3),p("videoSource",n.videoSourceList.VideoSourceList.VideoSources[e])("videoSourceList",n.videoSourceList)}}function
GY(t,i){if(1&t){const
e=I();l(0,"p-accordionTab",17),C("selectedChange",function(s){const
o=v(e).index;return d().activeTab[o]=s}),_(1,VY,5,3,"ng-template",
18),_(2,qY,12,26,"ng-template",19),c()}if(2&t){const
e=i.index,n=d();p("disabled",n.disabledTab[e])("selected",n.activeTab[e])}}let
UY=(()=>{class
t{constructor(e,n,s,r){this.setupService=e,this.translate=n,this.channelService=s,this.router=r,this.currentTab=-1,this.deletedTab=-1,this.dirtyMessages=[],this.forms=[],this.disabledTab=[],this.activeTab=[],this.displayDeleteThis=[],this.dirtyText="settings.common.unsaved",this.warningText="settings.common.warning",this.deletedText="settings.common.deleted",this.newText="settings.common.new",this.successCount=0,this.expectedCount=0,this.errorCount=0,this.displayDeleteAll=!1,this.deleteAll=!1,this.videoSourceList={VideoSourceList:{VideoSources:[],AsOf:"",Version:"",ProtoVer:""}},this.delObserver={next:o=>{o.bool?(this.successCount++,this.successCount==this.expectedCount&&(this.deleteAll?(this.loadSources(),this.deleteAll=!1):this.deletedTab>-1&&(this.dirtyMessages[this.deletedTab]=this.deletedText,this.disabledTab[this.deletedTab]=!0,this
.activeTab[this.deletedTab]=!1,this.deletedTab=-1))):(this.errorCount++,this.deletedTab=-1,this.deleteAll=!1)},error:o=>{console.error(o),this.errorCount++,this.deleteAll=!1}},this.setupService.setCurrentForm(null),this.loadSources(),n.get(this.dirtyText).subscribe(o=>this.dirtyText=o),n.get(this.warningText).subscribe(o=>this.warningText=o),n.get(this.deletedText).subscribe(o=>this.deletedText=o),n.get(this.newText).subscribe(o=>this.newText=o)}loadSources(){this.channelService.GetVideoSourceList().subscribe(e=>{this.videoSourceList=e,this.dirtyMessages=[],this.forms=[],this.disabledTab=[],this.activeTab=[],this.displayDeleteThis=[];for(let
n=0;n<this.videoSourceList.VideoSourceList.VideoSources.length;n++)this.dirtyMessages.push(""),this.forms.push({}),this.disabledTab.push(!1),this.activeTab.push(!1),this.displayDeleteThis.push(!1)})}ngOnInit(){}onTabOpen(e){this.successCount+this.errorCount>=this.expectedCount&&(this.errorCount=0,this.successCount=0,this.expectedCount=0),this.sh
owDirty();let
n=this.setupService.getCurrentForm();null!=n&&(this.forms[e.index]=n),this.setupService.setCurrentForm(null),this.currentTab=e.index,this.dirtyMessages[this.currentTab]=""}onTabClose(e){this.showDirty(),this.currentTab=-1}showDirty(){-1==this.currentTab||!this.forms[this.currentTab]||this.disabledTab[this.currentTab]||(this.dirtyMessages[this.currentTab]=this.forms[this.currentTab].dirty?this.dirtyText:this.videoSourceList.VideoSourceList.VideoSources[this.currentTab].Id?"":this.newText)}newSource(){for(let
n=0;n<this.activeTab.length;n++)this.activeTab[n]=!1;this.dirtyMessages.push(this.newText),this.disabledTab.push(!1),this.activeTab.push(!1),this.displayDeleteThis.push(!1),this.videoSourceList.VideoSourceList.VideoSources.push({Grabber:"eitonly",FreqTable:"default",ScanFrequency:0,NITId:-1,BouquetId:0,RegionId:0,LCNOffset:0,SourceName:""})}deleteAllSources(){if(!(this.successCount+this.errorCount<this.expectedCount)){this.errorCount=0,this.successCount=0,this.expec
tedCount=0,this.displayDeleteAll=!1,this.deletedTab=-1,this.deleteAll=!0;for(let
e=0;e<this.videoSourceList.VideoSourceList.VideoSources.length;e++)!this.disabledTab[e]&&this.videoSourceList.VideoSourceList.VideoSources[e].Id&&this.deleteThis(e)}}deleteThis(e){let
n=this.videoSourceList.VideoSourceList.VideoSources[e].Id;if(!this.deleteAll){if(this.successCount+this.errorCount<this.expectedCount)return;this.errorCount=0,this.successCount=0,this.expectedCount=0,this.displayDeleteThis[e]=!1,this.deletedTab=e}this.expectedCount++,this.channelService.RemoveVideoSource(n).subscribe(this.delObserver)}confirm(e){return
oe(window.confirm(e))}canDeactivate(){let
e=this.setupService.getCurrentForm();return!(this.forms[this.currentTab]&&this.forms[this.currentTab].dirty||this.dirtyMessages.find(n=>n==this.dirtyText)||e&&e.dirty)||this.confirm(this.warningText)}onWindowClose(e){let
n=this.setupService.getCurrentForm();(this.forms[this.currentTab]&&this.forms[this.currentTab].dirty||this.dirtyMe
ssages.find(s=>s==this.dirtyText)||n&&n.dirty)&&(e.preventDefault(),e.returnValue=!1)}}return
t.\u0275fac=function(e){return
new(e||t)(D(Me),D(Oe),D(Or),D(It))},t.\u0275cmp=z({type:t,selectors:[["app-video-sources"]],hostBindings:function(e,n){1&e&&C("beforeunload",function(r){return
n.onWindowClose(r)},!1,ni)},decls:26,vars:32,consts:[[1,"m-5"],["icon","pi
pi-plus-circle","styleClass","p-button-plain",3,"label","onClick"],["styleClass","p-button-danger","icon","pi
pi-trash","iconPos","left",3,"label","disabled","click"],[3,"header","visible","modal","draggable","resizable","visibleChange"],["pTemplate","footer"],[1,"grid","nogutter"],["class","col-12",4,"ngIf"],[1,"col-12","w-full",3,"onClose","onOpen"],[3,"disabled","selected","selectedChange",4,"ngFor","ngForOf"],[1,"flex","justify-content-end"],["icon","pi
pi-angle-left","iconPos","left",1,"p-3",3,"label","onClick"],["icon","pi
pi-angle-right","iconPos","right",1,"p-3",3,"label","onClick"],["icon","pi
pi-times-circle","styleClas
s","p-button-plain",3,"label","click"],["icon","pi
pi-check-circle","styleClass","p-button-plain",3,"label","click"],[1,"col-12"],["severity","success",3,"text"],["severity","error",3,"text"],[3,"disabled","selected","selectedChange"],["pTemplate","header"],["pTemplate","content"],[1,"grid","w-full"],[1,"col-9","pr-1"],["styleClass","p-button-warning","icon","pi
pi-trash",3,"label","disabled","onClick"],[3,"videoSource","videoSourceList"]],template:function(e,n){1&e&&(l(0,"p-card",0)(1,"h2"),g(2),m(3,"translate"),c(),l(4,"p-button",1),C("onClick",function(){return
n.newSource()}),m(5,"translate"),c(),g(6," \xa0
"),l(7,"p-button",2),C("click",function(){return
n.displayDeleteAll=!0}),m(8,"translate"),c(),l(9,"p-dialog",3),C("visibleChange",function(r){return
n.displayDeleteAll=r}),m(10,"translate"),l(11,"h2"),g(12),m(13,"translate"),c(),_(14,PY,4,6,"ng-template",4),c(),k(15,"br"),l(16,"div",5),_(17,FY,5,3,"div",6),_(18,NY,5,3,"div",6),c(),l(19,"p-accordion",7),C("onClose",function(r)
{return n.onTabClose(r)})("onOpen",function(r){return
n.onTabOpen(r)}),_(20,GY,3,2,"p-accordionTab",8),c(),l(21,"div",9)(22,"p-button",10),C("onClick",function(){return
n.router.navigate(["setupwizard/recording-profiles"])}),m(23,"translate"),c(),l(24,"p-button",11),C("onClick",function(){return
n.router.navigate(["setupwizard/input-connections"])}),m(25,"translate"),c()()()),2&e&&(a(2),S(f(3,17,"settings.vsource.title")),a(2),x("label",f(5,19,"settings.vsource.new_video_source")),a(3),x("label",f(8,21,"settings.vsource.delete_all")),p("disabled",n.setupService.schedulingEnabled),a(2),q(A(31,gS)),x("header",f(10,23,"settings.vsource.delete_all")),p("visible",n.displayDeleteAll)("modal",!0)("draggable",!1)("resizable",!1),a(3),S(f(13,25,"settings.common.ru_sure")),a(5),p("ngIf",n.expectedCount&&n.successCount==n.expectedCount),a(1),p("ngIf",n.errorCount>0),a(2),p("ngForOf",n.videoSourceList.VideoSourceList.VideoSources),a(2),x("label",f(23,27,"common.back")),a(2),x("label",f(25,29,"c
ommon.next")))},directives:[Ne,ve,bn,ne,Q,qe,Ss,at,Ts,AY],pipes:[ce],styles:["@media
screen and (max-width:
48rem){.p-card-body,.p-card-content,.p-accordion-content{padding:0rem!important}}\n"],encapsulation:2}),t})();function
zY(t,i){if(1&t&&(l(0,"div",10)(1,"div",11),g(2),l(3,"b"),g(4),c()()()),2&t){const
e=d(2),n=e.$implicit,s=e.index,r=d();a(2),Ec(" ",n.CardType,"
",n.VideoDevice," (",n.DisplayName,") =>
",r.videoSourceLookup[n.SourceId].SourceName,"
"),a(2),T("\xa0",r.dirtyMessages[s],"")}}function
jY(t,i){1&t&&_(0,zY,5,5,"div",9),2&t&&p("ngIf",d(2).readyCount>1)}function
$Y(t,i){if(1&t&&k(0,"app-iconnection",12),2&t){const
e=d().index,n=d();p("card",n.m_CaptureCardsFiltered[e])("cardList",n.m_CaptureCardList)("videoSourceLookup",n.videoSourceLookup)("videoSourceList",n.videoSourceList)("parentComponent",n)}}function
WY(t,i){if(1&t){const
e=I();l(0,"p-accordionTab",6),C("selectedChange",function(s){const
o=v(e).index;return d().activeTab[o]=s}),_(1,jY,1,1,"ng-template",7),_(2,$
Y,1,5,"ng-template",8),c()}if(2&t){const
e=i.index;p("selected",d().activeTab[e])}}let _S=(()=>{class
t{constructor(e,n,s,r,o,u){this.mythService=e,this.router=n,this.captureCardService=s,this.setupService=r,this.translate=o,this.channelService=u,this.currentTab=-1,this.deletedTab=-1,this.dirtyMessages=[],this.forms=[],this.activeTab=[],this.readyCount=0,this.dirtyText="settings.common.unsaved",this.warningText="settings.common.warning",this.m_hostName="",this.m_CaptureCardsFiltered=[],this.videoSourceList={VideoSourceList:{VideoSources:[],AsOf:"",Version:"",ProtoVer:""}},this.videoSourceLookup=[],this.setupService.setCurrentForm(null),this.mythService.GetHostName().subscribe(h=>{this.m_hostName=h.String,this.loadCards(!0)}),this.loadSources(),o.get(this.dirtyText).subscribe(h=>this.dirtyText=h),o.get(this.warningText).subscribe(h=>this.warningText=h)}loadCards(e){this.m_CaptureCardList$=this.captureCardService.GetCaptureCardList("",""),this.m_CaptureCardList$.subscribe(n=>{this.m_C
aptureCardList=n,e&&this.filterCards(),this.readyCount++})}filterCards(){this.m_CaptureCardsFiltered=this.m_CaptureCardList.CaptureCardList.CaptureCards.filter(e=>0==e.ParentId&&e.HostName==this.m_hostName),this.dirtyMessages=[],this.forms=[],this.activeTab=[];for(let
e=0;e<this.m_CaptureCardsFiltered.length;e++)this.dirtyMessages.push(""),this.activeTab.push(!1)}loadSources(){this.channelService.GetVideoSourceList().subscribe(e=>{this.videoSourceList=e,this.videoSourceList.VideoSourceList.VideoSources.unshift({Id:0,SourceName:"(None)",ScanFrequency:0}),this.videoSourceLookup=[],this.videoSourceList.VideoSourceList.VideoSources.forEach(n=>{this.videoSourceLookup[n.Id]=n}),this.readyCount++})}ngOnInit(){}onTabOpen(e){this.showDirty();let
n=this.setupService.getCurrentForm();null!=n&&(this.forms[e.index]=n),this.setupService.setCurrentForm(null),this.currentTab=e.index,this.dirtyMessages[this.currentTab]=""}onTabClose(e){this.showDirty(),this.currentTab=-1}showDirty(){-1==this.current
Tab||!this.forms[this.currentTab]||(this.dirtyMessages[this.currentTab]=this.forms[this.currentTab].dirty?this.dirtyText:"")}confirm(e){return
oe(window.confirm(e))}canDeactivate(){let
e=this.setupService.getCurrentForm();return!(this.forms[this.currentTab]&&this.forms[this.currentTab].dirty||this.dirtyMessages.find(n=>n==this.dirtyText)||e&&e.dirty)||this.confirm(this.warningText)}onWindowClose(e){let
n=this.setupService.getCurrentForm();(this.forms[this.currentTab]&&this.forms[this.currentTab].dirty||this.dirtyMessages.find(s=>s==this.dirtyText)||n&&n.dirty)&&(e.preventDefault(),e.returnValue=!1)}}return
t.\u0275fac=function(e){return
new(e||t)(D(qt),D(It),D(Gt),D(Me),D(Oe),D(Or))},t.\u0275cmp=z({type:t,selectors:[["app-input-connections"]],hostBindings:function(e,n){1&e&&C("beforeunload",function(r){return
n.onWindowClose(r)},!1,ni)},decls:11,vars:10,consts:[[1,"m-5"],[1,"col-12","w-full",3,"onClose","onOpen"],[3,"selected","selectedChange",4,"ngFor","ngForOf"],[1,"flex","justify
-content-end"],["icon","pi
pi-angle-left","iconPos","left",1,"p-3",3,"label","onClick"],["icon","pi
pi-angle-right","iconPos","right",1,"p-3",3,"label","onClick"],[3,"selected","selectedChange"],["pTemplate","header"],["pTemplate","content"],["class","grid
w-full",4,"ngIf"],[1,"grid","w-full"],[1,"col-9","pr-1"],[3,"card","cardList","videoSourceLookup","videoSourceList","parentComponent"]],template:function(e,n){1&e&&(l(0,"p-card",0)(1,"h2"),g(2),m(3,"translate"),c(),l(4,"p-accordion",1),C("onClose",function(r){return
n.onTabClose(r)})("onOpen",function(r){return
n.onTabOpen(r)}),_(5,WY,3,1,"p-accordionTab",2),c(),l(6,"div",3)(7,"p-button",4),C("onClick",function(){return
n.router.navigate(["setupwizard/video-sources"])}),m(8,"translate"),c(),l(9,"p-button",5),C("onClick",function(){return
n.router.navigate(["setupwizard/channel-editor"])}),m(10,"translate"),c()()()),2&e&&(a(2),S(f(3,4,"settings.iconnections.title")),a(3),p("ngForOf",n.m_CaptureCardsFiltered),a(2),x("label",f(8,6,"
common.back")),a(2),x("label",f(10,8,"common.next")))},styles:["@media
screen and (max-width:
48rem){.p-card-body,.p-card-content,.p-accordion-content{padding:0rem!important}}\n"],encapsulation:2}),t})();const
KY=["sgroupform"],QY=function(t){return{name:t}};function
JY(t,i){if(1&t&&k(0,"span",8),2&t){const
e=d();p("translate","settings.sgroups.sgroup_title")("translateParams",U(2,QY,e.sgroup.LocalizedName))}}function
YY(t,i){}function
ZY(t,i){1&t&&(l(0,"div")(1,"b"),g(2),m(3,"translate"),c()()),2&t&&(a(2),S(f(3,1,"settings.sgroups.deleted_label")))}function
XY(t,i){if(1&t){const
e=I();l(0,"tr")(1,"td",20),g(2),c(),l(3,"td",21)(4,"button",22),C("click",function(){const
r=v(e).index;return
d(2).editDirectory(r)}),c()(),l(5,"td",21)(6,"button",23),C("click",function(){const
r=v(e).index;return
d(2).deleteDirectory(r)}),c()(),l(7,"td"),_(8,ZY,4,3,"div",24),c()()}if(2&t){const
e=i.index,n=d(2);a(2),T(" ",n.editDirs[e],"
"),a(2),p("disabled",!n.editDirs[e]),a(2),p("disabled",!n.editDirs[
e]),a(2),p("ngIf",!n.editDirs[e])}}function eZ(t,i){if(1&t){const
e=I();l(0,"p-button",25),C("onClick",function(){return
v(e),d(2).showEditDlg=!1}),m(1,"translate"),c(),l(2,"p-button",26),C("onClick",function(){v(e);const
s=d(2);return
s.editDirs[s.editDlgNum]=s.editDirName,s.showEditDlg=!1}),m(3,"translate"),c()}2&t&&(x("label",f(1,2,"common.cancel")),a(2),x("label",f(3,4,"common.ok")))}const
tZ=function(){return{width:"50vw"}},nZ=function(){return{height:"50vh"}};function
iZ(t,i){if(1&t){const
e=I();l(0,"div",9)(1,"div",10)(2,"table"),_(3,XY,9,4,"tr",11),c(),l(4,"p-dialog",12),C("visibleChange",function(s){return
v(e),d().showEditDlg=s}),m(5,"translate"),l(6,"div",13)(7,"label",14),g(8),m(9,"translate"),c(),l(10,"input",15,16),C("ngModelChange",function(s){return
v(e),d().editDirName=s})("change",function(){return
v(e),d().textChange()}),c()(),l(12,"p-listbox",17,18),C("ngModelChange",function(s){return
v(e),d().selectedDir=s})("onClick",function(){return v(e),d().selectDir()}),c(
),_(14,eZ,4,6,"ng-template",7),c(),k(15,"br"),l(16,"p-button",19),C("onClick",function(){return
v(e),d().addDirectory()}),m(17,"translate"),c()()()}if(2&t){const
e=d();a(3),p("ngForOf",e.editDirs),a(1),q(A(20,tZ)),x("header",f(5,14,"settings.sgroups.seldir_title")),p("visible",e.showEditDlg)("modal",!0)("draggable",!1)("resizable",!1),a(4),S(f(9,16,"settings.sgroups.dirname_label")),a(2),p("ngModel",e.editDirName),a(2),p("options",e.dirSelect)("ngModel",e.selectedDir)("listStyle",A(21,nZ)),a(4),x("label",f(17,18,"settings.sgroups.adddir_button"))}}function
sZ(t,i){1&t&&(k(0,"p-message",32),m(1,"translate")),2&t&&x("text",f(1,1,"common.savesuccess"))}function
rZ(t,i){1&t&&(k(0,"p-message",33),m(1,"translate")),2&t&&x("text",f(1,1,"common.networkfail"))}function
oZ(t,i){if(1&t){const
e=I();l(0,"div",27)(1,"div",28),_(2,sZ,2,3,"p-message",29),_(3,rZ,2,3,"p-message",30),c(),l(4,"p-button",31),C("onClick",function(){v(e);const
s=d(),r=F(1);return s.saveForm(),r.form.markAsPristine()}),m(
5,"translate"),c()()}if(2&t){const
e=d(),n=F(1);a(2),p("ngIf",e.successCount>0&&0==e.errorCount&&!n.dirty),a(1),p("ngIf",e.errorCount>0),a(1),x("label",f(5,4,"common.save")),p("disabled",!n.dirty||e.setupService.schedulingEnabled)}}let
aZ=(()=>{class
t{constructor(e,n,s){this.mythService=e,this.setupService=n,this.translate=s,this.successCount=0,this.errorCount=0,this.expectCount=0,this.showEditDlg=!1,this.editDlgNum=-1,this.editDirName="",this.editDirs=[],this.dirSelect=[],this.selectedDir="",this.upString="UP
1
LEVEL",this.saveObserver={next:r=>{r.bool?(this.successCount++,this.successCount==this.expectCount&&(this.sgroup.DirNames=this.editDirs.filter(o=>o.length>1))):(this.errorCount++,this.currentForm.form.markAsDirty())},error:r=>{console.error(r),this.errorCount++,this.currentForm.form.markAsDirty()}},s.get("settings.sgroups.updir").subscribe(r=>this.upString="//
** "+r+"
**")}ngOnInit(){this.editDirs=this.sgroup.DirNames.slice()}ngAfterViewInit(){this.setupService.setCurrentF
orm(this.currentForm)}selectDir(){for(;"/"==this.editDirName.charAt(this.editDirName.length-1);)this.editDirName=this.editDirName.substring(0,this.editDirName.length-1);if(this.selectedDir.startsWith("//")){let
e=this.editDirName.lastIndexOf("/");this.editDirName=this.editDirName.substring(0,e),0==this.editDirName.length&&(this.editDirName="/")}else
this.editDirName=this.editDirName+"/"+this.selectedDir;this.fillDirList()}textChange(){this.fillDirList()}fillDirList(){0!=this.editDirName.indexOf("/")&&(this.editDirName="/"+this.editDirName),this.mythService.GetDirListing(this.editDirName).subscribe(e=>{"/"!=this.editDirName&&e.DirListing.unshift(this.upString),this.dirSelect=e.DirListing})}addDirectory(){this.editDirs.push("/"),this.editDirectory(this.editDirs.length-1)}editDirectory(e){this.editDirName=this.editDirs[e],this.editDlgNum=e,this.showEditDlg=!0,this.fillDirList()}deleteDirectory(e){this.editDirs[e]="",this.currentForm.form.markAsDirty()}saveForm(){this.successCount=0,thi
s.errorCount=0,this.expectCount=0;for(let
e=0;e<this.editDirs.length;e++){"/"==this.editDirs[e]&&(this.editDirs[e]="");for(let
n=e+1;n<this.editDirs.length;n++)this.editDirs[e]==this.editDirs[n]&&(this.editDirs[n]="")}this.editDirs.forEach(e=>{""!=e&&-1==this.sgroup.DirNames.indexOf(e)&&(this.mythService.AddStorageGroupDir({GroupName:this.sgroup.GroupName,DirName:e,HostName:this.hostName}).subscribe(this.saveObserver),this.expectCount++)}),this.sgroup.DirNames.forEach(e=>{-1==this.editDirs.indexOf(e)&&(this.mythService.RemoveStorageGroupDir({GroupName:this.sgroup.GroupName,DirName:e,HostName:this.hostName}).subscribe(this.saveObserver),this.expectCount++)})}}return
t.\u0275fac=function(e){return
new(e||t)(D(qt),D(Me),D(Oe))},t.\u0275cmp=z({type:t,selectors:[["app-sgroup"]],viewQuery:function(e,n){if(1&e&&W(KY,5),2&e){let
s;V(s=B())&&(n.currentForm=s.first)}},inputs:{sgroup:"sgroup",hostName:"hostName"},decls:9,vars:0,consts:[["name","sgroupform",1,"ml-3","mr-3"],["sgroupform","ngFor
m"],["top",""],[1,"m-5"],["pTemplate","title"],["pTemplate","subtitle"],["pTemplate","content"],["pTemplate","footer"],[3,"translate","translateParams"],[1,"grid"],[1,"mb-4","w-full"],[4,"ngFor","ngForOf"],[3,"header","visible","modal","draggable","resizable","visibleChange"],[1,"form-group","field"],["for","DirName",1,"label","block"],["pInputText","","id","DirName","name","DirName",1,"mb-2","form-control","w-full",2,"font-family","monospace",3,"ngModel","ngModelChange","change"],["DirName","ngModel"],["name","ListDirs",3,"options","ngModel","listStyle","ngModelChange","onClick"],["ListDirs","ngModel"],["icon","pi
pi-plus-circle","styleClass","p-button-plain",3,"label","onClick"],[1,"align-items-center","bg-blue-100","text-gray-900",2,"font-family","monospace"],[1,"align-items-center"],["pButton","","pRipple","","type","button","icon","pi
pi-pencil","pTooltip","Edit",1,"p-button-rounded","p-button-text",3,"disabled","click"],["pButton","","pRipple","","type","button","icon","pi
pi-
trash","pTooltip","Delete",1,"p-button-rounded","p-button-text",3,"disabled","click"],[4,"ngIf"],["icon","pi
pi-times-circle","styleClass","p-button-plain",3,"label","onClick"],["icon","pi
pi-check-circle","styleClass","p-button-plain",3,"label","onClick"],[1,"grid","nogutter"],[1,"col-12"],["severity","success",3,"text",4,"ngIf"],["severity","error",3,"text",4,"ngIf"],["icon","pi
pi-save","iconPos","left",1,"col","pr-1",3,"label","disabled","onClick"],["severity","success",3,"text"],["severity","error",3,"text"]],template:function(e,n){1&e&&(l(0,"form",0,1),k(2,"span",null,2),l(4,"p-card",3),_(5,JY,1,4,"ng-template",4),_(6,YY,0,0,"ng-template",5),_(7,iZ,18,22,"ng-template",6),_(8,oZ,6,6,"ng-template",7),c()())},directives:[ze,Ue,He,Ne,ne,mu,at,On,bt,Kt,Q,bn,Ye,Te,_e,os,ve,qe],pipes:[ce],styles:[""]}),t})();function
lZ(t,i){if(1&t){const
e=I();l(0,"p-button",14),C("onClick",function(){return
v(e),d().displayNewDlg=!1}),m(1,"translate"),c(),l(2,"p-button",15),C("onClick",function(){r
eturn v(e),d().newGroup()}),m(3,"translate"),c()}if(2&t){const
e=d();x("label",f(1,3,"common.cancel")),a(2),x("label",f(3,5,"common.ok")),p("disabled",""==e.newGroupName)}}const
cZ=function(t){return{name:t}};function
uZ(t,i){if(1&t&&k(0,"span",23),2&t){const
e=d(2).index,n=d();p("translate","settings.sgroups.tab_create_title")("translateParams",U(2,cZ,n.storageGroups[e].LocalizedName))}}function
dZ(t,i){if(1&t&&g(0),2&t){const e=d(2).index;T("
",d().storageGroups[e].LocalizedName," ")}}function
pZ(t,i){if(1&t&&(l(0,"div",19)(1,"div",20),_(2,uZ,1,4,"span",21),_(3,dZ,1,1,"ng-template",null,22,we),l(5,"b"),g(6),c()()()),2&t){const
e=F(4),n=d().index,s=d();a(2),p("ngIf",0==s.storageGroups[n].DirNames.length)("ngIfElse",e),a(4),T("\xa0",s.dirtyMessages[n],"")}}function
hZ(t,i){if(1&t&&k(0,"app-sgroup",24),2&t){const
e=d().index,n=d();p("sgroup",n.storageGroups[e])("hostName",n.hostName)}}function
mZ(t,i){if(1&t){const
e=I();l(0,"p-accordionTab",16),C("selectedChange",function(s){const o
=v(e).index;return
d().activeTab[o]=s}),_(1,pZ,7,3,"ng-template",17),_(2,hZ,1,2,"ng-template",18),c()}if(2&t){const
e=i.index;p("selected",d().activeTab[e])}}const
fZ=function(){return{width:"50vw"}};let gZ=(()=>{class
t{constructor(e,n,s,r){this.setupService=e,this.translate=n,this.mythService=s,this.router=r,this.forms=[],this.dirtyMessages=[],this.currentTab=-1,this.activeTab=[],this.dirtyText="settings.common.unsaved",this.warningText="settings.common.warning",this.deletedText="settings.common.deleted",this.newText="settings.common.new",this.hostName="",this.storageGroupDirs=[],this.storageGroups=[{GroupName:"Default",LocalizedName:"",DirNames:[]},{GroupName:"LiveTV",LocalizedName:"",DirNames:[]},{GroupName:"DB
Backups",LocalizedName:"",DirNames:[]},{GroupName:"Videos",LocalizedName:"",DirNames:[]},{GroupName:"Trailers",LocalizedName:"",DirNames:[]},{GroupName:"Coverart",LocalizedName:"",DirNames:[]},{GroupName:"Fanart",LocalizedName:"",DirNames:[]},{GroupName:"Screenshots",Loca
lizedName:"",DirNames:[]},{GroupName:"Banners",LocalizedName:"",DirNames:[]},{GroupName:"Photographs",LocalizedName:"",DirNames:[]},{GroupName:"Music",LocalizedName:"",DirNames:[]},{GroupName:"MusicArt",LocalizedName:"",DirNames:[]}],this.displayNewDlg=!1,this.newGroupName="",this.setupService.setCurrentForm(null),this.mythService.GetHostName().subscribe(o=>{this.hostName=o.String,this.loadGroups()}),n.get(this.dirtyText).subscribe(o=>this.dirtyText=o),n.get(this.warningText).subscribe(o=>this.warningText=o),n.get(this.deletedText).subscribe(o=>this.deletedText=o),n.get(this.newText).subscribe(o=>this.newText=o),this.storageGroups.forEach(o=>n.get("settings.sgroups.special."+o.GroupName).subscribe(u=>o.LocalizedName=u))}loadGroups(){this.mythService.GetStorageGroupDirs({HostName:this.hostName}).subscribe(e=>{this.storageGroupDirs=e.StorageGroupDirList.StorageGroupDirs,this.storageGroupDirs.forEach(n=>{let
s=this.storageGroups.find(r=>r.GroupName==n.GroupName);s?s.DirNames.push(n.Dir
Name):this.storageGroups.push({GroupName:n.GroupName,LocalizedName:n.GroupName,DirNames:[n.DirName]})})})}ngOnInit(){}onTabOpen(e){this.showDirty();let
n=this.setupService.getCurrentForm();null!=n&&(this.forms[e.index]=n),this.setupService.setCurrentForm(null),this.currentTab=e.index,this.dirtyMessages[this.currentTab]=""}onTabClose(e){this.showDirty(),this.currentTab=-1}showDirty(){-1==this.currentTab||!this.forms[this.currentTab]||(this.dirtyMessages[this.currentTab]=this.forms[this.currentTab].dirty?this.dirtyText:"")}newGroup(){this.displayNewDlg=!1,!this.storageGroups.find(n=>n.GroupName==this.newGroupName)&&(this.storageGroups.push({GroupName:this.newGroupName,LocalizedName:this.newGroupName,DirNames:[]}),this.newGroupName="")}confirm(e){return
oe(window.confirm(e))}canDeactivate(){let
e=this.setupService.getCurrentForm();return!(this.forms[this.currentTab]&&this.forms[this.currentTab].dirty||this.dirtyMessages.find(n=>n==this.dirtyText)||e&&e.dirty)||this.confirm(this.warning
Text)}onWindowClose(e){let
n=this.setupService.getCurrentForm();(this.forms[this.currentTab]&&this.forms[this.currentTab].dirty||this.dirtyMessages.find(s=>s==this.dirtyText)||n&&n.dirty)&&(e.preventDefault(),e.returnValue=!1)}}return
t.\u0275fac=function(e){return
new(e||t)(D(Me),D(Oe),D(qt),D(It))},t.\u0275cmp=z({type:t,selectors:[["app-storage-groups"]],hostBindings:function(e,n){1&e&&C("beforeunload",function(r){return
n.onWindowClose(r)},!1,ni)},decls:25,vars:24,consts:[[1,"m-5"],["label","New
Storage Group","icon","pi
pi-plus-circle","styleClass","p-button-plain",3,"onClick"],["header","New
Storage
Group",3,"visible","modal","draggable","resizable","visibleChange"],[1,"form-group","field"],["for","GroupName",1,"block"],["pInputText","","id","GroupName","name","GroupName",1,"mb-2","form-control","w-full",3,"ngModel","ngModelChange"],["GroupName","ngModel"],[1,"block"],["pTemplate","footer"],[1,"col-12","w-full",3,"onClose","onOpen"],[3,"selected","selectedChange",4,"ngFor","ngF
orOf"],[1,"flex","justify-content-end"],["icon","pi
pi-angle-left","iconPos","left",1,"p-3",3,"label","onClick"],["icon","pi
pi-angle-right","iconPos","right",1,"p-3",3,"label","onClick"],["icon","pi
pi-times-circle","styleClass","p-button-plain",3,"label","onClick"],["icon","pi
pi-check-circle","styleClass","p-button-plain",3,"label","disabled","onClick"],[3,"selected","selectedChange"],["pTemplate","header"],["pTemplate","content"],[1,"grid","w-full"],[1,"col-9","pr-1"],[3,"translate","translateParams",4,"ngIf","ngIfElse"],["onlyName",""],[3,"translate","translateParams"],[3,"sgroup","hostName"]],template:function(e,n){1&e&&(l(0,"p-card",0)(1,"h2"),g(2),m(3,"translate"),c(),l(4,"p-button",1),C("onClick",function(){return
n.displayNewDlg=!0}),c(),l(5,"p-dialog",2),C("visibleChange",function(r){return
n.displayNewDlg=r}),l(6,"p"),g(7),m(8,"translate"),c(),l(9,"div",3)(10,"label",4),g(11),m(12,"translate"),c(),l(13,"input",5,6),C("ngModelChange",function(r){return
n.newGroupName=r}),
c(),k(15,"small",7),c(),_(16,lZ,4,7,"ng-template",8),c(),k(17,"br"),l(18,"p-accordion",9),C("onClose",function(r){return
n.onTabClose(r)})("onOpen",function(r){return
n.onTabOpen(r)}),_(19,mZ,3,1,"p-accordionTab",10),c(),l(20,"div",11)(21,"p-button",12),C("onClick",function(){return
n.router.navigate(["setupwizard/channel-editor"])}),m(22,"translate"),c(),l(23,"p-button",13),C("onClick",function(){return
n.router.navigate(["setupwizard/system-events"])}),m(24,"translate"),c()()()),2&e&&(a(2),S(f(3,13,"settings.sgroups.title")),a(3),q(A(23,fZ)),p("visible",n.displayNewDlg)("modal",!0)("draggable",!1)("resizable",!1),a(2),S(f(8,15,"settings.sgroups.name_prompt")),a(4),S(f(12,17,"settings.sgroups.name_label")),a(2),p("ngModel",n.newGroupName),a(6),p("ngForOf",n.storageGroups),a(2),x("label",f(22,19,"common.back")),a(2),x("label",f(24,21,"common.next")))},directives:[Ne,ve,bn,Ye,Te,_e,ne,Ss,at,Ts,Q,mu,aZ],pipes:[ce],styles:["@media
screen and (max-width: 48rem){.p-card-body,.p-card-cont
ent,.p-accordion-content{padding:0rem!important}}\n"],encapsulation:2}),t})();const
_Z=["eventsform"];function bZ(t,i){if(1&t){const
e=I();l(0,"div",9)(1,"div",10)(2,"label",11),g(3),c(),l(4,"input",12),C("ngModelChange",function(s){return
v(e).$implicit.Value=s}),c()()()}if(2&t){const
e=i.$implicit;a(2),x("for",e.Key),a(1),S(e.LocalizedName),a(1),x("id",e.Key),x("name",e.Key),p("ngModel",e.Value)}}function
vZ(t,i){if(1&t&&(l(0,"div",7),_(1,bZ,5,5,"div",8),c()),2&t){const
e=d();a(1),p("ngForOf",e.events)}}function
CZ(t,i){1&t&&(k(0,"p-message",18),m(1,"translate")),2&t&&x("text",f(1,1,"common.savesuccess"))}function
yZ(t,i){1&t&&(k(0,"p-message",19),m(1,"translate")),2&t&&x("text",f(1,1,"common.networkfail"))}function
wZ(t,i){if(1&t){const
e=I();l(0,"div",13)(1,"div",14),_(2,CZ,2,3,"p-message",15),_(3,yZ,2,3,"p-message",16),c(),l(4,"p-button",17),C("onClick",function(){v(e);const
s=d(),r=F(1);return
s.saveForm(),r.form.markAsPristine()}),m(5,"translate"),c()()}if(2&t){const
e=d(),n=
F(1);a(2),p("ngIf",e.successCount>0&&e.successCount==e.expectedCount&&0==e.errorCount&&!n.dirty),a(1),p("ngIf",e.errorCount>0),a(1),x("label",f(5,4,"common.save")),p("disabled",!n.dirty||e.setupService.schedulingEnabled)}}let
TZ=(()=>{class
t{constructor(e,n,s,r,o){this.configService=e,this.translate=n,this.setupService=s,this.mythService=r,this.router=o,this.hostName="",this.events=[],this.successCount=0,this.errorCount=0,this.expectedCount=0,this.warningText="settings.common.warning",this.kClearSettingValue="<clear_setting_value>",this.jqbObserver={next:u=>{u.bool?this.successCount++:(this.errorCount++,this.currentForm&&this.currentForm.form.markAsDirty())},error:u=>{console.error(u),this.errorCount++,this.currentForm&&this.currentForm.form.markAsDirty()}},this.mythService.GetHostName().subscribe({next:u=>{this.hostName=u.String,this.configService.GetSystemEvents().subscribe(h=>{this.eventList=h,this.events=h.SystemEventList.SystemEvents})},error:()=>this.errorCount++}),this.trans
late.get(this.warningText).subscribe(u=>{this.warningText=u})}ngOnInit(){}saveForm(){this.successCount=0,this.errorCount=0,this.expectedCount=0,this.events.forEach(e=>{let
n=e.Value.trim();n?this.mythService.PutSetting({HostName:this.hostName,Key:e.Key,Value:n}).subscribe(this.jqbObserver):this.mythService.DeleteSetting({HostName:this.hostName,Key:e.Key}).subscribe(this.jqbObserver),this.expectedCount++})}confirm(e){return
oe(window.confirm(e))}canDeactivate(){return!this.currentForm||!this.currentForm.dirty||this.confirm(this.warningText)}onWindowClose(e){this.currentForm&&this.currentForm.dirty&&(e.preventDefault(),e.returnValue=!1)}}return
t.\u0275fac=function(e){return
new(e||t)(D(zo),D(Oe),D(Me),D(qt),D(It))},t.\u0275cmp=z({type:t,selectors:[["app-system-events"]],viewQuery:function(e,n){if(1&e&&W(_Z,5),2&e){let
s;V(s=B())&&(n.currentForm=s.first)}},hostBindings:function(e,n){1&e&&C("beforeunload",function(r){return
n.onWindowClose(r)},!1,ni)},decls:11,vars:6,consts:[["name","e
ventsform",1,"ml-3","mr-3"],["eventsform","ngForm"],[1,"m-5"],["pTemplate","content"],["pTemplate","footer"],[1,"flex","justify-content-end"],["icon","pi
pi-angle-left","iconPos","left",1,"p-3",3,"label","onClick"],[1,"grid"],["class","mb-4
w-full",4,"ngFor","ngForOf"],[1,"mb-4","w-full"],[1,"form-group","field"],[1,"label","block",3,"for"],["pInputText","",1,"mb-2","form-control","w-full",3,"id","ngModel","name","ngModelChange"],[1,"grid","nogutter"],[1,"col-12"],["severity","success",3,"text",4,"ngIf"],["severity","error",3,"text",4,"ngIf"],["icon","pi
pi-save","iconPos","left",1,"col","pr-1",3,"label","disabled","onClick"],["severity","success",3,"text"],["severity","error",3,"text"]],template:function(e,n){1&e&&(l(0,"form",0,1)(2,"h2"),g(3),m(4,"translate"),c(),l(5,"p-card",2),_(6,vZ,2,1,"ng-template",3),_(7,wZ,6,6,"ng-template",4),c(),l(8,"div",5)(9,"p-button",6),C("onClick",function(){return
n.router.navigate(["setupwizard/storage-groups"])}),m(10,"translate"),c()()()),2&e&&(a
(3),S(f(4,2,"settings.sysevents.title")),a(6),x("label",f(10,4,"common.back")))},directives:[ze,Ue,He,Ne,ne,at,Ye,Te,_e,Q,qe,ve],pipes:[ce],styles:["@media
screen and (max-width:
48rem){.p-card-body,.p-card-content,.p-accordion-content{padding:0rem!important}}\n"],encapsulation:2}),t})();const
SZ=["chanform"];function xZ(t,i){if(1&t){const
e=I();l(0,"button",57),C("click",function(){return
v(e),d(2).openNew()}),m(1,"translate"),c()}if(2&t){const
e=d(2);x("label",f(1,2,"settings.chanedit.new_channel")),p("disabled","S"==e.setupService.pageType&&e.setupService.schedulingEnabled)}}function
DZ(t,i){1&t&&g(0),2&t&&T(" ",i.$implicit,"
")}function MZ(t,i){if(1&t){const
e=I();l(0,"p-dropdown",72),C("onChange",function(s){return
v(e).filterCallback(s.value)}),m(1,"translate"),_(2,DZ,1,1,"ng-template",73),c()}if(2&t){const
e=i.$implicit,n=d(3);x("placeholder",f(1,4,"settings.chanedit.all")),p("ngModel",e)("options",n.sourceNames)("showClear",!0)}}function
kZ(t,i){if(1&t){const e=I();l(0,"p-bu
tton",74),C("onClick",function(){return
v(e),d(3).deleteSourceRequest()}),m(1,"translate"),m(2,"translate"),c()}if(2&t){const
e=d(3);x("pTooltip",f(1,3,"settings.chanedit.delete_source")),x("label",f(2,5,"common.delete")),p("disabled",e.setupService.schedulingEnabled)}}function
IZ(t,i){1&t&&(g(0),m(1,"translate")),2&t&&T("
",f(1,1,"settings.chanedit.delete_message")," ")}function
EZ(t,i){1&t&&k(0,"button",75)}function
RZ(t,i){if(1&t&&(l(0,"tr")(1,"th"),g(2),m(3,"translate"),l(4,"p-columnFilter",58),_(5,MZ,3,6,"ng-template",59),c(),_(6,kZ,3,7,"p-button",60),_(7,IZ,2,3,"ng-template",null,61,we),c()(),l(9,"tr")(10,"th",62),g(11,"\xa0"),c(),l(12,"th",63),g(13),m(14,"translate"),k(15,"p-sortIcon",64),c(),l(16,"th",65),g(17),m(18,"translate"),c(),l(19,"th",66),g(20),m(21,"translate"),c(),l(22,"th",67),g(23),m(24,"translate"),c(),l(25,"th",68),g(26),m(27,"translate"),k(28,"p-sortIcon",69),c(),l(29,"th",65),g(30),m(31,"translate"),c(),l(32,"th",66),g(33),m(34,"translate"),c(),l(35,"th",65),
g(36),m(37,"translate"),c(),l(38,"th",65),k(39,"button",70),_(40,EZ,1,0,"button",71),c()()),2&t){const
e=F(8),n=d(2);a(2),T("",f(3,13,"settings.chanedit.col_source"),":
\xa0
"),a(2),p("showMenu",!1),a(2),p("ngIf","S"==n.setupService.pageType)("ngIfElse",e),a(7),T("
",f(14,15,"settings.chanedit.col_channum"),"
"),a(4),S(f(18,17,"settings.chanedit.col_freqid")),a(3),S(f(21,19,"settings.chanedit.col_callsign")),a(3),S(f(24,21,"settings.chanedit.col_name")),a(3),T("
",f(27,23,"settings.chanedit.col_source"),"
"),a(4),S(f(31,25,"settings.chanedit.col_priority")),a(3),S(f(34,27,"settings.chanedit.col_visibility")),a(3),S(f(37,29,"settings.chanedit.col_useeit")),a(4),p("ngIf","S"==n.setupService.pageType)}}function
LZ(t,i){1&t&&k(0,"img",83),2&t&&x("src",d().$implicit.IconURL,ln)}function
OZ(t,i){1&t&&k(0,"img",84)}function AZ(t,i){if(1&t){const
e=I();l(0,"button",85),C("click",function(){v(e);const
s=d().$implicit;return
d(2).deleteRequest(s)}),m(1,"translate"),c()}if(2&t){const e=d().$im
plicit,n=d(2);x("pTooltip",f(1,2,"settings.chanedit.deletechan")),p("disabled",e.ChanId<0||n.setupService.schedulingEnabled)}}const
PZ=function(t){return{"line-through":t}};function FZ(t,i){if(1&t){const
e=I();l(0,"tr",76)(1,"td",62),_(2,LZ,1,1,"img",77),_(3,OZ,1,0,"ng-template",null,78,we),c(),l(5,"td",79),g(6),c(),l(7,"td",65),g(8),c(),l(9,"td",66),g(10),c(),l(11,"td",67),g(12),c(),l(13,"td",80),g(14),c(),l(15,"td",65),g(16),c(),l(17,"td",66),g(18),c(),l(19,"td",65),g(20),c(),l(21,"td",65)(22,"button",81),C("click",function(){const
r=v(e).$implicit;return
d(2).editChannel(r)}),m(23,"translate"),c(),_(24,AZ,2,4,"button",82),c()()}if(2&t){const
e=i.$implicit,n=F(4),s=d(2);p("ngClass",U(16,PZ,e.ChanId<0)),a(2),p("ngIf",e.IconURL)("ngIfElse",n),a(4),S(e.ChanNum),a(2),S(e.FrequencyId),a(2),S(e.CallSign),a(2),S(e.ChannelName),a(2),S(e.Source),a(2),S(e.RecPriority),a(2),S(s.getVisibility(e)),a(2),S(e.UseEIT?"Y":"N"),a(2),x("pTooltip",f(23,14,"settings.chanedit.editchan")),p("disabled",e.
ChanId<0||"S"==s.setupService.pageType&&s.setupService.schedulingEnabled),a(2),p("ngIf","S"==s.setupService.pageType)}}function
NZ(t,i){if(1&t){const
e=I();l(0,"div",52)(1,"p-table",53),C("onFilter",function(s){return
v(e),d().onFilter(s)}),_(2,xZ,2,4,"ng-template",54),_(3,RZ,41,31,"ng-template",55),_(4,FZ,25,18,"ng-template",56),c()()}if(2&t){const
e=d();a(1),p("value",e.allChannels)("scrollable",!0)("rowHover",!0)}}function
VZ(t,i){1&t&&k(0,"p-progressSpinner")}function
BZ(t,i){1&t&&(k(0,"p-message",91),m(1,"translate")),2&t&&x("text",f(1,1,"common.savesuccess"))}function
HZ(t,i){1&t&&(k(0,"p-message",92),m(1,"translate")),2&t&&x("text",f(1,1,"common.networkfail"))}function
qZ(t,i){if(1&t){const
e=I();l(0,"div",86),_(1,BZ,2,3,"p-message",87),_(2,HZ,2,3,"p-message",88),c(),l(3,"p-button",89),C("onClick",function(){return
v(e),d().closeDialog()}),m(4,"translate"),c(),l(5,"p-button",90),C("onClick",function(){return
v(e),d().saveChannel()}),m(6,"translate"),c()}if(2&t){const e=d(),n=
F(7);a(1),p("ngIf",e.successCount>0&&0==e.errorCount&&!n.dirty),a(1),p("ngIf",e.errorCount>0),a(1),x("label",f(4,5,"common.close")),a(2),x("label",f(6,7,"common.save")),p("disabled",!n.dirty||""==e.channel.ChannelName.trim()||""==e.channel.ChanNum.trim()||""==e.channel.CallSign.trim())}}function
GZ(t,i){if(1&t){const
e=I();l(0,"p-button",93),C("onClick",function(){return
v(e),d().closeDialog()}),m(1,"translate"),c(),l(2,"p-button",94),C("onClick",function(){return
v(e),d().displayUnsaved=!1}),m(3,"translate"),c()}2&t&&(x("label",f(1,2,"common.nosave")),a(2),x("label",f(3,4,"common.continue")))}function
UZ(t,i){1&t&&(k(0,"p-message",92),m(1,"translate")),2&t&&x("text",f(1,1,"common.networkfail"))}function
zZ(t,i){if(1&t){const
e=I();l(0,"div",86),_(1,UZ,2,3,"p-message",88),c(),l(2,"p-button",89),C("onClick",function(){v(e);const
s=d(),r=F(7);return
s.displayDelete=!1,r.form.markAsPristine()}),m(3,"translate"),c(),l(4,"p-button",95),C("onClick",function(){v(e);const
s=d();return s.del
eteChannel(s.channel)}),m(5,"translate"),c()}if(2&t){const
e=d();a(1),p("ngIf",e.errorCount>0),a(1),x("label",f(3,3,"common.close")),a(2),x("label",f(5,5,"common.delete"))}}const
jZ=function(t){return{Source:t}};function
$Z(t,i){if(1&t&&(l(0,"p")(1,"b"),g(2),m(3,"translate"),c()()),2&t){const
e=d();a(2),S(Dt(3,1,"settings.chanedit.delete_source_details",U(4,jZ,e.filterEvent.filters.Source.value)))}}function
WZ(t,i){1&t&&(l(0,"p")(1,"b"),g(2),m(3,"translate"),c()()),2&t&&(a(2),S(f(3,1,"settings.chanedit.delete_all_details")))}function
KZ(t,i){if(1&t&&(l(0,"div")(1,"p"),g(2),m(3,"translate"),c()()),2&t){const
e=d();a(2),yo(" ",f(3,3,"common.delete"),"
",e.channel.ChanNum," ",e.channel.ChannelName,"")}}function
QZ(t,i){1&t&&(k(0,"p-message",92),m(1,"translate")),2&t&&x("text",f(1,1,"common.networkfail"))}function
JZ(t,i){if(1&t){const
e=I();l(0,"div",86),_(1,QZ,2,3,"p-message",88),c(),l(2,"p-button",89),C("onClick",function(){v(e);const
s=d(),r=F(7);return s.displayDeleteSource=!1,s.ch
annelOperation=-1,r.form.markAsPristine()}),m(3,"translate"),c(),l(4,"p-button",96),C("onClick",function(){return
v(e),d().deleteSource()}),m(5,"translate"),c()}if(2&t){const
e=d();a(1),p("ngIf",e.errorCount>0),a(1),x("label",f(3,4,"common.cancel")),a(2),x("label",f(5,6,"common.delete")),p("disabled",e.working)}}const
YZ=function(){return{height:"75vw",width:"50vw"}},Ol=function(){return{minWidth:"400px"}},ZZ=function(t,i,e){return{ChanNum:t,ChannelName:i,Source:e}};let
bS=(()=>{class
t{constructor(e,n,s,r){this.channelService=e,this.translate=n,this.setupService=s,this.router=r,this.allChannels=[],this.videoSources=[],this.commMethods=[],this.sourceNames=[],this.multiplexes=[],this.tvFormats=[{value:"Default",prompt:"common.default"},{value:"NTSC",prompt:"NTSC"},{value:"NTSC-JP",prompt:"NTSC-JP"},{value:"PAL",prompt:"PAL"},{value:"PAL-60",prompt:"PAL-60"},{value:"PAL-BG",prompt:"PAL-BG"},{value:"PAL-DK",prompt:"PAL-DK"},{value:"PAL-D",prompt:"PAL-D"},{value:"PAL-I",prompt:"PAL-I"},
{value:"PAL-M",prompt:"PAL-M"},{value:"PAL-N",prompt:"PAL-N"},{value:"PAL-NC",prompt:"PAL-NC"},{value:"SECAM",prompt:"SECAM"},{value:"SECAM-D",prompt:"SECAM-D"},{value:"SECAM-DK",prompt:"SECAM-DK"}],this.visibilities=[{value:"Always
Visible",prompt:"settings.chanedit.always-visible"},{value:"Visible",prompt:"settings.chanedit.visible"},{value:"Not
Visible",prompt:"settings.chanedit.not-visible"},{value:"Never
Visible",prompt:"settings.chanedit.never-visible"}],this.headingNew="settings.chanedit.new_channel",this.headingEdit="settings.chanedit.title",this.warningText="settings.common.warning",this.deleteText="settings.common.ru_sure",this.unassignedText="settings.chanedit.unassigned",this.transDone=0,this.visDone=0,this.numTranslations=10,this.successCount=0,this.errorCount=0,this.selectedAdvanced=!1,this.displayChannelDlg=!1,this.dialogHeader="",this.displayUnsaved=!1,this.displayDelete=!1,this.displayDeleteSource=!1,this.working=!1,this.chansLoaded=!1,this.filterEvent={filters:{Sou
rce:{matchMode:"",value:""}}},this.channel=this.resetChannel(),this.channelOperation=0,this.saveObserver={next:o=>{if(o.bool)switch(console.log("saveObserver
success",o),this.successCount++,this.currentForm.form.markAsPristine(),this.channelOperation){case
0:this.editingChannel&&(Object.assign(this.editingChannel,this.channel),this.editingChannel.Source=this.getSource(this.editingChannel));break;case
1:this.allChannels.push(this.channel);break;case-1:this.channel.ChanId=-99,this.displayDelete=!1,this.displayDeleteSource=!1,this.currentForm.form.markAsPristine();break;case-2:this.channel.ChanId=-99,this.deleteSource()}else
console.log("saveObserver
error",o),this.errorCount++,this.working=!1},error:o=>{console.log("saveObserver
error",o),this.errorCount++,this.working=!1}},this.translate.get(this.unassignedText).subscribe(o=>{this.unassignedText=o,this.transDone++,this.loadLists()}),this.loadTranslations()}ngOnInit(){this.markPristine()}resetChannel(){return{ATSCMajorChan:0,ATSCMinor
Chan:0,CallSign:"",ChanFilters:"",ChanId:0,ChanNum:"",ChannelGroups:"",ChannelName:"",CommFree:!1,CommMethod:-1,DefaultAuth:"",ExtendedVisible:"Visible",FineTune:0,Format:"Default",FrequencyId:"",IconURL:"",InputId:0,Inputs:"",MplexId:0,Programs:[],RecPriority:0,ServiceId:0,ServiceType:0,SourceId:0,TimeOffset:0,UseEIT:!1,Visible:!0,XMLTVID:"",ChanSeq:0}}loadLists(){this.channelService.GetChannelInfoList({Details:!0}).subscribe(e=>{this.allChannels=e.ChannelInfoList.ChannelInfos,this.chansLoaded=!0,this.channelService.GetVideoSourceList().subscribe(n=>{this.videoSources=n.VideoSourceList.VideoSources,this.videoSources.unshift({Id:0,SourceName:this.unassignedText}),this.videoSources.forEach(s=>this.sourceNames.push(s.SourceName)),this.allChannels.forEach((s,r)=>{s.ChanSeq=r,s.Source=this.getSource(s)})})}),this.channelService.GetCommMethodList().subscribe(e=>this.commMethods=e.CommMethodList.CommMethods)}loadMultiplexes(e){this.channelService.GetVideoMultiplexList({SourceID:e}).subscr
ibe(n=>{this.multiplexes=n.VideoMultiplexList.VideoMultiplexes})}loadTranslations(){this.visibilities.forEach(e=>{this.translate.get(e.prompt).subscribe(n=>{e.prompt=n,this.transDone++,this.visDone++,this.visDone>=this.visibilities.length&&(this.visibilities=[...this.visibilities])})}),this.translate.get(this.headingNew).subscribe(e=>{this.headingNew=e,this.transDone++}),this.translate.get(this.headingEdit).subscribe(e=>{this.headingEdit=e,this.transDone++}),this.translate.get(this.warningText).subscribe(e=>{this.warningText=e,this.transDone++}),this.translate.get(this.deleteText).subscribe(e=>{this.deleteText=e,this.transDone++}),this.translate.get(this.tvFormats[0].prompt).subscribe(e=>{this.tvFormats[0].prompt=e,this.tvFormats=[...this.tvFormats],this.transDone++})}getSource(e){const
n=this.videoSources.find(s=>e.SourceId==s.Id);return
null!=n?n.SourceName:this.unassignedText}getVisibility(e){const
n=this.visibilities.find(s=>e.ExtendedVisible==s.value);return
null!=n?n.prompt:""
}openNew(){this.successCount=0,this.errorCount=0,this.dialogHeader=this.headingNew,this.channel=this.resetChannel(),this.displayChannelDlg=!0,this.markPristine()}editChannel(e){this.editingChannel=e,this.successCount=0,this.errorCount=0,this.dialogHeader=this.headingEdit,this.channel=Object.assign({},e),this.displayChannelDlg=!0,this.markPristine(),this.loadMultiplexes(e.SourceId),this.selectedAdvanced=!1}saveChannel(){this.successCount=0,this.errorCount=0,this.displayUnsaved=!1;let
e={CallSign:this.channel.CallSign,ChannelID:this.channel.ChanId,ChannelNumber:this.channel.ChanNum,ChannelName:this.channel.ChannelName,CommMethod:this.channel.CommMethod,ExtendedVisible:this.channel.ExtendedVisible,Format:this.channel.Format,FrequencyID:this.channel.FrequencyId,MplexID:this.channel.MplexId,RecPriority:this.channel.RecPriority,ServiceID:this.channel.ServiceId,SourceID:this.channel.SourceId,TimeOffset:this.channel.TimeOffset,UseEIT:this.channel.UseEIT,XMLTVID:this.channel.XMLTVID};0==this
.channel.ChanId?(this.channelOperation=1,this.channelService.GetAvailableChanid().subscribe(n=>{this.channel.ChanId=n.int,e.ChannelID=n.int,this.channelService.AddDBChannel(e).subscribe(this.saveObserver)})):(this.channelOperation=0,this.channelService.UpdateDBChannel(e).subscribe(this.saveObserver))}closeDialog(){this.currentForm.dirty?this.displayUnsaved?(this.displayUnsaved=!1,this.displayChannelDlg=!1,this.editingChannel=void
0,this.currentForm.form.markAsPristine()):this.displayUnsaved=!0:(this.displayChannelDlg=!1,this.displayUnsaved=!1,this.editingChannel=void
0)}deleteRequest(e){this.channel=e,this.displayDelete=!0}deleteChannel(e,n){this.successCount=0,this.errorCount=0,this.channel=e,this.channelOperation=n?-2:-1,console.log("Delete
Channel",e),this.channelService.RemoveDBChannel(e.ChanId).subscribe(this.saveObserver)}deleteSourceRequest(){this.channel=this.resetChannel(),this.displayDeleteSource=!0}deleteSource(){this.working=!0;const
e=this.allChannels.find(n=>n.ChanId>0
&&(!this.filterEvent.filters.Source.value||this.filterEvent.filters.Source.value==n.Source));e?this.deleteChannel(e,!0):(this.displayDelete=!1,this.displayDeleteSource=!1,this.currentForm.form.markAsPristine(),this.working=!1)}onFilter(e){this.filterEvent=e}markPristine(){setTimeout(()=>this.currentForm.form.markAsPristine(),200)}confirm(e){return
oe(window.confirm(e))}canDeactivate(){return!this.currentForm||!this.currentForm.dirty||this.confirm(this.warningText)}onWindowClose(e){this.currentForm&&this.currentForm.dirty&&(e.preventDefault(),e.returnValue=!1)}}return
t.\u0275fac=function(e){return
new(e||t)(D(Or),D(Oe),D(Me),D(It))},t.\u0275cmp=z({type:t,selectors:[["app-channel-editor"]],viewQuery:function(e,n){if(1&e&&W(SZ,5),2&e){let
s;V(s=B())&&(n.currentForm=s.first)}},hostBindings:function(e,n){1&e&&C("beforeunload",function(r){return
n.onWindowClose(r)},!1,ni)},decls:167,vars:197,consts:[["class","block card
w-full","style","height:
90vh",4,"ngIf","ngIfElse"],["loading",""],[
"name","chanform",1,"ml-3","mr-3"],["chanform","ngForm"],[3,"header","visible","modal","closable","closeOnEscape","visibleChange"],[1,"form-group","field"],["for","ChannelName",1,"label","block"],["pInputText","","id","ChannelName","name","ChannelName",1,"mb-2","form-control","w-full",3,"ngModel","ngModelChange"],["ChannelName","ngModel"],[1,"block"],["for","ChanNum",1,"label","block"],["pInputText","","id","ChanNum","name","ChanNum",1,"mb-2","form-control","w-full",3,"ngModel","ngModelChange"],["ChanNum","ngModel"],["for","FrequencyId",1,"label","block"],["pInputText","","id","FrequencyId","name","FrequencyId",1,"mb-2","form-control","w-full",3,"ngModel","ngModelChange"],["FrequencyId","ngModel"],["for","CallSign",1,"label","block"],["pInputText","","id","CallSign","name","CallSign",1,"mb-2","form-control","w-full",3,"ngModel","ngModelChange"],["CallSign","ngModel"],["for","ExtendedVisible",1,"label","block"],["optionLabel","prompt","optionValue","value","name","ExtendedVisible",3,
"options","ngModel","editable","maxlength","ngModelChange"],["ExtendedVisible","ngModel"],["for","SourceId",1,"label","block"],["optionLabel","SourceName","optionValue","Id","name","SourceId",3,"options","ngModel","editable","maxlength","ngModelChange"],["SourceId","ngModel"],["for","Format",1,"label","block"],["optionLabel","prompt","optionValue","value","name","Format",3,"options","ngModel","editable","maxlength","ngModelChange"],["Format","ngModel"],["for","RecPriority",1,"label","block"],["name","RecPriority","id","RecPriority",3,"ngModel","showButtons","min","max","step","ngModelChange"],["inputId","UseEIT","name","UseEIT",1,"label","mb-2","w-full",3,"ngModel","binary","label","ngModelChange"],["UseEIT","ngModel"],["for","XMLTVID",1,"label","block"],["pInputText","","id","XMLTVID","name","XMLTVID",1,"mb-2","form-control","w-full",3,"ngModel","ngModelChange"],["XMLTVID","ngModel"],["for","TimeOffset",1,"label","block"],["name","TimeOffset","id","TimeOffset",3,"ngModel","showButt
ons","min","max","step","ngModelChange"],["for","CommMethod",1,"label","block"],["optionLabel","LocalizedName","optionValue","CommMethod","name","CommMethod",3,"options","ngModel","editable","maxlength","ngModelChange"],["CommMethod","ngModel"],[3,"header","selected","selectedChange"],["for","MplexId",1,"label","block"],["optionLabel","Description","optionValue","MplexId","name","MplexId",3,"options","ngModel","editable","maxlength","ngModelChange"],["MplexId","ngModel"],["for","ServiceId",1,"label","block"],["name","ServiceId","id","ServiceId",3,"ngModel","showButtons","min","max","step","ngModelChange"],["pTemplate","footer"],[3,"header","visible","modal","visibleChange"],[3,"header","visible","modal","draggable","resizable","visibleChange"],[4,"ngIf","ngIfElse"],["all",""],[4,"ngIf"],[1,"block","card","w-full",2,"height","90vh"],["scrollHeight","flex","styleClass","p-datatable-striped","responsiveLayout","scroll",3,"value","scrollable","rowHover","onFilter"],["pTemplate","caption
"],["pTemplate","header"],["pTemplate","body"],["pButton","","pRipple","","icon","pi
pi-plus",1,"p-button-success","mr-2",3,"label","disabled","click"],["field","Source","matchMode","equals",3,"showMenu"],["pTemplate","filter"],["icon","pi
pi-trash","styleClass","p-button-danger",3,"pTooltip","label","disabled","onClick",4,"ngIf","ngIfElse"],["explain",""],[2,"flex-basis","8%"],["pSortableColumn","ChanSeq",2,"flex-basis","9%"],["field","ChanSeq"],[2,"flex-basis","6%"],[2,"flex-basis","10%"],[2,"flex-basis","24%"],["pSortableColumn","Source",2,"flex-basis","16%"],["field","Source"],["pButton","","pRipple","","icon","pi
pi-pencil","disabled","true",1,"p-button-text"],["pButton","","pRipple","","icon","pi
pi-trash","class","p-button-text
p-button-danger","disabled","true",4,"ngIf"],["name","filter",3,"ngModel","options","placeholder","showClear","onChange"],["pTemplate","item"],["icon","pi
pi-trash","styleClass","p-button-danger",3,"pTooltip","label","disabled","onClick"],["pButton",""
,"pRipple","","icon","pi
pi-trash","disabled","true",1,"p-button-text","p-button-danger"],["height","40",3,"ngClass"],["height","32","width","42","style","background-color:#000000","onerror","this.height='0'",3,"src",4,"ngIf","ngIfElse"],["nullIcon",""],[2,"flex-basis","9%"],[2,"flex-basis","16%"],["pButton","","pRipple","","icon","pi
pi-pencil","tooltipPosition","left",1,"p-button-text",3,"disabled","pTooltip","click"],["pButton","","pRipple","","icon","pi
pi-trash","class","p-button-text
p-button-danger","tooltipPosition","left",3,"pTooltip","disabled","click",4,"ngIf"],["height","32","width","42","onerror","this.height='0'",2,"background-color","#000000",3,"src"],["height","32","width","42"],["pButton","","pRipple","","icon","pi
pi-trash","tooltipPosition","left",1,"p-button-text","p-button-danger",3,"pTooltip","disabled","click"],[1,"col-12",2,"text-align","left"],["severity","success",3,"text",4,"ngIf"],["severity","error",3,"text",4,"ngIf"],["icon","pi
pi-times-circle","styleC
lass","p-button-warning",3,"label","onClick"],["icon","pi
pi-check-circle","styleClass","p-button-success",3,"label","disabled","onClick"],["severity","success",3,"text"],["severity","error",3,"text"],["icon","pi
pi-times-circle","styleClass","p-button-danger",3,"label","onClick"],["icon","pi
pi-check-circle","styleClass","p-button-success",3,"label","onClick"],["icon","pi
pi-check-circle","styleClass","p-button-danger",3,"label","onClick"],["icon","pi
pi-check-circle","styleClass","p-button-danger",3,"disabled","label","onClick"]],template:function(e,n){if(1&e&&(l(0,"h2"),g(1),m(2,"translate"),c(),_(3,NZ,5,3,"div",0),_(4,VZ,1,0,"ng-template",null,1,we),l(6,"form",2,3)(8,"p-dialog",4),C("visibleChange",function(r){return
n.displayChannelDlg=r}),l(9,"div",5)(10,"label",6),g(11),m(12,"translate"),c(),l(13,"input",7,8),C("ngModelChange",function(r){return
n.channel.ChannelName=r}),c(),l(15,"small",9),g(16),m(17,"translate"),c()(),l(18,"div",5)(19,"label",10),g(20),m(21,"translate"),c()
,l(22,"input",11,12),C("ngModelChange",function(r){return
n.channel.ChanNum=r}),c(),l(24,"small",9),g(25),m(26,"translate"),c()(),l(27,"div",5)(28,"label",13),g(29),m(30,"translate"),c(),l(31,"input",14,15),C("ngModelChange",function(r){return
n.channel.FrequencyId=r}),c(),l(33,"small",9),g(34),m(35,"translate"),c()(),l(36,"div",5)(37,"label",16),g(38),m(39,"translate"),c(),l(40,"input",17,18),C("ngModelChange",function(r){return
n.channel.CallSign=r}),c(),l(42,"small",9),g(43),m(44,"translate"),c()(),l(45,"div",5)(46,"label",19),g(47),m(48,"translate"),c(),l(49,"p-dropdown",20,21),C("ngModelChange",function(r){return
n.channel.ExtendedVisible=r}),c(),l(51,"small",9),g(52),m(53,"translate"),c()(),l(54,"div",5)(55,"label",22),g(56),m(57,"translate"),c(),l(58,"p-dropdown",23,24),C("ngModelChange",function(r){return
n.channel.SourceId=r}),c(),l(60,"small",9),g(61),m(62,"translate"),c()(),l(63,"div",5)(64,"label",25),g(65),m(66,"translate"),c(),l(67,"p-dropdown",26,27),C("ngModelChange"
,function(r){return
n.channel.Format=r}),c(),l(69,"small",9),g(70),m(71,"translate"),c()(),l(72,"div",5)(73,"label",28),g(74),m(75,"translate"),c(),l(76,"p-inputNumber",29),C("ngModelChange",function(r){return
n.channel.RecPriority=r}),c(),l(77,"small",9),g(78),m(79,"translate"),c()(),l(80,"div",5)(81,"p-checkbox",30,31),C("ngModelChange",function(r){return
n.channel.UseEIT=r}),m(83,"translate"),c(),l(84,"small",9),g(85),m(86,"translate"),c()(),l(87,"div",5)(88,"label",32),g(89),m(90,"translate"),c(),l(91,"input",33,34),C("ngModelChange",function(r){return
n.channel.XMLTVID=r}),c(),l(93,"small",9),g(94),m(95,"translate"),c()(),l(96,"div",5)(97,"label",35),g(98),m(99,"translate"),c(),l(100,"p-inputNumber",36),C("ngModelChange",function(r){return
n.channel.TimeOffset=r}),c(),l(101,"small",9),g(102),m(103,"translate"),c()(),l(104,"div",5)(105,"label",37),g(106),m(107,"translate"),c(),l(108,"p-dropdown",38,39),C("ngModelChange",function(r){return
n.channel.CommMethod=r}),c(),l(110,"smal
l",9),g(111),m(112,"translate"),c()(),l(113,"p-accordion")(114,"p-accordionTab",40),C("selectedChange",function(r){return
n.selectedAdvanced=r}),m(115,"translate"),l(116,"div",5)(117,"label",41),g(118),m(119,"translate"),c(),l(120,"p-dropdown",42,43),C("ngModelChange",function(r){return
n.channel.MplexId=r}),c(),l(122,"small",9),g(123),m(124,"translate"),c()(),l(125,"div",5)(126,"label",44),g(127),m(128,"translate"),c(),l(129,"p-inputNumber",45),C("ngModelChange",function(r){return
n.channel.ServiceId=r}),c(),l(130,"small",9),g(131),m(132,"translate"),c()()()(),k(133,"br")(134,"br")(135,"br")(136,"br")(137,"br")(138,"br")(139,"br")(140,"br"),_(141,qZ,7,9,"ng-template",46),c(),l(142,"p-dialog",47),C("visibleChange",function(r){return
n.displayUnsaved=r}),m(143,"translate"),l(144,"p"),g(145),m(146,"translate"),c(),_(147,GZ,4,6,"ng-template",46),c(),l(148,"p-dialog",48),C("visibleChange",function(r){return
n.displayDelete=r}),m(149,"translate"),l(150,"h2"),g(151),m(152,"translate"),c()
,l(153,"p"),g(154),m(155,"translate"),c(),_(156,zZ,6,7,"ng-template",46),c(),l(157,"p-dialog",48),C("visibleChange",function(r){return
n.displayDeleteSource=r}),m(158,"translate"),l(159,"h2"),g(160),m(161,"translate"),c(),_(162,$Z,4,6,"p",49),_(163,WZ,4,3,"ng-template",null,50,we),_(165,KZ,4,5,"div",51),_(166,JZ,6,8,"ng-template",46),c()()),2&e){const
s=F(5),r=F(164);a(1),S(f(2,112,"settings.chanedit.title")),a(2),p("ngIf",n.chansLoaded&&n.transDone>=n.numTranslations)("ngIfElse",s),a(5),q(A(187,YZ)),x("header",n.dialogHeader),p("visible",n.displayChannelDlg)("modal",!0)("closable",!1)("closeOnEscape",!1),a(3),S(f(12,114,"settings.chanedit.channame")),a(2),p("ngModel",n.channel.ChannelName),a(3),T("
",f(17,116,"settings.chanedit.channame_desc"),"
"),a(4),S(f(21,118,"settings.chanedit.channum")),a(2),p("ngModel",n.channel.ChanNum),a(3),T("
",f(26,120,"settings.chanedit.channum_desc"),"
"),a(4),S(f(30,122,"settings.chanedit.freqid")),a(2),p("ngModel",n.channel.FrequencyId),a(3),T("
",
f(35,124,"settings.chanedit.freqid_desc"),"
"),a(4),S(f(39,126,"settings.chanedit.callsign")),a(2),p("ngModel",n.channel.CallSign),a(3),T("
",f(44,128,"settings.chanedit.callsign_desc"),"
"),a(4),S(f(48,130,"settings.chanedit.visible_label")),a(2),q(A(188,Ol)),p("options",n.visibilities)("ngModel",n.channel.ExtendedVisible)("editable",!1)("maxlength",0),a(3),T("
",f(53,132,"settings.chanedit.visible_desc"),"
"),a(4),S(f(57,134,"settings.chanedit.source_label")),a(2),q(A(189,Ol)),p("options",n.videoSources)("ngModel",n.channel.SourceId)("editable",!1)("maxlength",0),a(3),T("
",f(62,136,"settings.chanedit.source_desc"),"
"),a(4),S(f(66,138,"settings.chanedit.format_label")),a(2),q(A(190,Ol)),p("options",n.tvFormats)("ngModel",n.channel.Format)("editable",!1)("maxlength",0),a(3),T("
",f(71,140,"settings.chanedit.format_desc"),"
"),a(4),S(f(75,142,"settings.chanedit.priority_label")),a(2),p("ngModel",n.channel.RecPriority)("showButtons",!0)("min",-99)("max",99)("step",1),a(2),T("
",f(79
,144,"settings.chanedit.priority_desc"),"
"),a(3),x("label",f(83,146,"settings.chanedit.eit_label")),p("ngModel",n.channel.UseEIT)("binary",!0),a(4),T("
",f(86,148,"settings.chanedit.eit_desc"),"
"),a(4),S(f(90,150,"settings.chanedit.xmltvid_label")),a(2),p("ngModel",n.channel.XMLTVID),a(3),T("
",f(95,152,"settings.chanedit.xmltvid_desc"),"
"),a(4),S(f(99,154,"settings.chanedit.timeoffset_label")),a(2),p("ngModel",n.channel.TimeOffset)("showButtons",!0)("min",-1440)("max",1440)("step",30),a(2),T("
",f(103,156,"settings.chanedit.timeoffset_desc"),"
"),a(4),S(f(107,158,"settings.chanedit.commmethod_label")),a(2),q(A(191,Ol)),p("options",n.commMethods)("ngModel",n.channel.CommMethod)("editable",!1)("maxlength",0),a(3),T("
",f(112,160,"settings.chanedit.commmethod_desc"),"
"),a(3),x("header",f(115,162,"settings.chanedit_advanced")),p("selected",n.selectedAdvanced),a(4),S(f(119,164,"settings.chanedit.mplex_label")),a(2),q(A(192,Ol)),p("options",n.multiplexes)("ngModel",n.channel.MplexId)
("editable",!1)("maxlength",0),a(3),T("
",f(124,166,"settings.chanedit.mplex_desc"),"
"),a(4),S(f(128,168,"settings.chanedit.serviceid_label")),a(2),p("ngModel",n.channel.ServiceId)("showButtons",!0)("min",-1)("max",65535)("step",1),a(2),T("
",f(132,170,"settings.chanedit.serviceid_desc"),"
"),a(11),x("header",f(143,172,"common.unsaved_heading")),p("visible",n.displayUnsaved)("modal",!0),a(3),S(f(146,174,"common.unsaved_message")),a(3),x("header",f(149,176,"settings.chanedit.delete_this")),p("visible",n.displayDelete)("modal",!0)("draggable",!1)("resizable",!1),a(3),S(f(152,178,"settings.common.ru_sure")),a(3),S(Dt(155,180,"settings.chanedit.delete_details",Qt(193,ZZ,n.channel.ChanNum,n.channel.ChannelName,n.getSource(n.channel)))),a(3),x("header",f(158,183,"settings.chanedit.delete_source")),p("visible",n.displayDeleteSource)("modal",!0)("draggable",!1)("resizable",!1),a(3),S(f(161,185,"settings.common.ru_sure")),a(2),p("ngIf",n.filterEvent.filters.Source.value)("ngIfElse",r),a(3),
p("ngIf",0!=n.channel.ChanId)}},directives:[Q,Dn,ne,On,bt,vg,Ot,Te,_e,ve,Kt,yd,wd,Le,Go,ze,Ue,He,bn,Ye,_n,pt,sn,Ss,Ts,qe],pipes:[ce],styles:[""]}),t})(),XZ=(()=>{class
t{constructor(e){this.router=e}ngOnInit(){}}return t.\u0275fac=function(e){return
new(e||t)(D(It))},t.\u0275cmp=z({type:t,selectors:[["app-wiz-channeledit"]],decls:11,vars:6,consts:[[1,"m-5"],[1,"flex","justify-content-end"],["icon","pi
pi-angle-left","iconPos","left",1,"p-3",3,"label","onClick"],["icon","pi
pi-angle-right","iconPos","right",1,"p-3",3,"label","onClick"]],template:function(e,n){1&e&&(l(0,"p-card",0),k(1,"app-channel-editor")(2,"br")(3,"br")(4,"br")(5,"br"),l(6,"div",1)(7,"p-button",2),C("onClick",function(){return
n.router.navigate(["setupwizard/input-connections"])}),m(8,"translate"),c(),l(9,"p-button",3),C("onClick",function(){return
n.router.navigate(["setupwizard/storage-groups"])}),m(10,"translate"),c()()()),2&e&&(a(7),x("label",f(8,2,"common.back")),a(2),x("label",f(10,4,"common.next")))},directi
ves:[Ne,bS,ve],pipes:[ce],styles:[""]}),t})(),eX=(()=>{class t{}return
t.\u0275fac=function(e){return
new(e||t)},t.\u0275mod=he({type:t}),t.\u0275inj=ue({imports:[[vn.forChild([{path:"setupwizard",component:rS,children:[{path:"selectlanguage",component:nK,canDeactivate:[ji]},{path:"dbsetup",component:RK,canDeactivate:[ji]},{path:"general",component:WJ,canDeactivate:[ji]},{path:"capture-cards",component:hS,canDeactivate:[ji]},{path:"recording-profiles",component:mS,canDeactivate:[ji]},{path:"video-sources",component:UY,canDeactivate:[ji]},{path:"input-connections",component:_S,canDeactivate:[ji]},{path:"channel-editor",component:XZ,canDeactivate:[ji]},{path:"storage-groups",component:gZ,canDeactivate:[ji]},{path:"system-events",component:TZ,canDeactivate:[ji]}]}])],vn]}),t})(),vS=(()=>{class
t{constructor(e){this.httpClient=e,this.guide_hours=3,this.guide_millisecs=60*this.guide_hours*60*1e3,this.startDate=new
Date}toTime(e){return new Date(e).toISOString()}toStartTime(e){return this
.toTime(e)}toEndTime(e){let n=new Date(e),s=new
Date(n.getTime()+this.guide_millisecs);return
this.toTime(s.toISOString())}toHalfHour(e){let n=new Date(e);return
n.setMinutes(n.getMinutes()<30?0:30),n.setSeconds(0),n}AddToChannelGroup(e){return
this.httpClient.post("/Guide/AddToChannelGroup",e)}GetCategoryList(){return
this.httpClient.get("/Guide/GetCategoryList")}GetChannelGroupList(e){let n=(new
ye).set("IncludeEmpty",e);return
this.httpClient.get("/Guide/GetChannelGroupList",{params:n})}GetChannelIcon(e){let
n=(new
ye).set("ChanId",e.ChanId).set("Width",e.Width).set("Height",e.Height);return
this.httpClient.get("/Guide/GetChannelIcon",{params:n})}GetProgramDetails(e){let
n=(new ye).set("ChanId",e.ChanId).set("StartTime",e.StartTime);return
this.httpClient.get("/Guide/GetProgramDetails",{params:n})}GetProgramGuide(e,n){e&&(this.startDate=e);let
s=this.toHalfHour(this.startDate).toISOString(),r={StartTime:this.toStartTime(s),EndTime:this.toEndTime(s),Details:!0,ChannelGroupId:n};re
turn this.httpClient.post("/Guide/GetProgramGuide",r)}GetProgramList(e){let
n=new ye;for(const[s,r]of Object.entries(e))n=n.set(s,r);return
this.httpClient.get("/Guide/GetProgramList",{params:n})}GetStoredSearches(e){let
n=(new ye).set("Type",e);return
this.httpClient.get("/Guide/GetStoredSearches",{params:n})}RemoveFromChannelGroup(e){return
this.httpClient.post("/Guide/RemoveFromChannelGroup",e)}}return
t.\u0275fac=function(e){return
new(e||t)(K(Bi))},t.\u0275prov=X({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();function
tX(t,i){if(1&t){const
e=I();l(0,"div",15)(1,"p-dropdown",16),C("ngModelChange",function(s){return
v(e),d(2).channelGroup=s})("onChange",function(){return
v(e),d(2).refresh()}),m(2,"translate"),c()()}if(2&t){const
e=d(2);a(1),x("pTooltip",f(2,3,"dashboard.guide.channel_group")),p("ngModel",e.channelGroup)("options",e.channelGroups)}}function
nX(t,i){if(1&t&&(l(0,"div",17)(1,"b"),g(2),m(3,"translate"),c()()),2&t){const
e=d(2);a(2),Ec(" ",f(3,4,"dashboard.gui
de.channel")," ",e.channel.ChanNum," ",e.channel.CallSign,"
",e.channel.ChannelName,"")}}function
iX(t,i){1&t&&(l(0,"div",17)(1,"b"),g(2),m(3,"translate"),c()()),2&t&&(a(2),T("
",f(3,1,"dashboard.guide.people_search")," "))}function
sX(t,i){1&t&&(l(0,"div",17)(1,"b"),g(2),m(3,"translate"),c()()),2&t&&(a(2),T("
",f(3,1,"dashboard.guide.title_search")," "))}function
rX(t,i){1&t&&(l(0,"div",17)(1,"b"),g(2),m(3,"translate"),c()()),2&t&&(a(2),T("
",f(3,1,"dashboard.guide.full_search")," "))}function
oX(t,i){if(1&t){const
e=I();l(0,"div",18)(1,"input",19),C("ngModelChange",function(s){return
v(e),d(2).searchValue=s}),c(),l(2,"button",20),C("click",function(){return
v(e),d(2).titleSearch()}),m(3,"translate"),c(),l(4,"button",21),C("click",function(){return
v(e),d(2).peopleSearch()}),m(5,"translate"),c(),l(6,"button",22),C("click",function(){return
v(e),d(2).fullSearch()}),m(7,"translate"),c()()}if(2&t){const
e=d(2);a(1),p("ngModel",e.searchValue),a(1),x("pTooltip",f(3,4,"dashboard.guide.ti
tle_search")),a(2),x("pTooltip",f(5,6,"dashboard.guide.people_search")),a(2),x("pTooltip",f(7,8,"dashboard.guide.full_search"))}}function
aX(t,i){if(1&t){const
e=I();l(0,"div",7)(1,"button",23),C("click",function(){return
v(e),d(2).onGrid()}),m(2,"translate"),c()()}2&t&&(a(1),x("pTooltip",f(2,1,"dashboard.guide.retgrid")))}const
lX=function(){return{width:"30px",height:"30px"}};function
cX(t,i){1&t&&(l(0,"div"),k(1,"p-progressSpinner"),c()),2&t&&(a(1),q(A(2,lX)))}function
uX(t,i){if(1&t){const
e=I();l(0,"div")(1,"button",24),C("click",function(){v(e);const
s=d(3);return
s.refreshing=!0,s.refresh()}),m(2,"translate"),c()()}2&t&&(a(1),x("pTooltip",f(2,1,"common.refresh")))}const
dX=function(t,i){return[t,i]};function
pX(t,i){if(1&t&&_(0,uX,3,3,"div",14),2&t){const
e=d(2);p("ngIf",Ge(1,dX,e.CHANNEL,e.GRID).indexOf(e.displayType)>-1)}}function
hX(t,i){}function
mX(t,i){if(1&t&&(de(0),l(1,"div",34),k(2,"app-guide-timebar",35),c(),pe()),2&t){const
e=d(4);a(2),p("guide",e)}}function fX(t,i
){if(1&t&&(de(0),k(1,"app-guide-programentry",36),pe()),2&t){const
e=d().$implicit,n=d().$implicit,s=d(3);a(1),p("program",e)("guideStartTime",s.m_programGuide.ProgramGuide.StartTime)("guideEndTime",s.m_programGuide.ProgramGuide.EndTime)("guideComponent",s)("channel",n)}}function
gX(t,i){if(1&t&&(de(0),_(1,fX,2,5,"ng-container",14),pe()),2&t){const
e=i.$implicit,n=d(4);a(1),p("ngIf",!n.timeChange&&n.inDisplayWindow(e.StartTime,e.EndTime))}}function
_X(t,i){if(1&t&&(l(0,"div",28),_(1,mX,3,1,"ng-container",14),l(2,"div",29)(3,"div",30),k(4,"app-guide-channelicon",31),c(),l(5,"div",32),_(6,gX,2,1,"ng-container",33),c()()()),2&t){const
e=i.$implicit,n=i.rowIndex,s=d(3);a(1),p("ngIf",n%5==0),a(3),p("channel",e)("guideComponent",s),a(2),p("ngForOf",e.Programs)}}const
bX=function(){return{width:"100%",height:"90vh"}};function
vX(t,i){if(1&t&&(l(0,"div")(1,"p-scrollPanel")(2,"p-dataView",25),_(3,hX,0,0,"ng-template",26),_(4,_X,7,4,"ng-template",27),c()()()),2&t){const
e=d(2);a(1),q(A(4,bX))
,a(1),p("value",e.m_programGuide.ProgramGuide.Channels)("totalRecords",e.m_programGuide.ProgramGuide.TotalAvailable)}}function
CX(t,i){if(1&t&&(l(0,"div"),k(1,"app-programs",37),c()),2&t){const
e=d(2);a(1),p("inter",e.inter)("programs",e.listPrograms)}}const
Cg=function(t,i,e,n){return[t,i,e,n]};function yX(t,i){if(1&t){const
e=I();l(0,"div")(1,"div",5),_(2,tX,3,5,"div",6),l(3,"div",7)(4,"p-calendar",8),C("ngModelChange",function(s){return
v(e),d().m_pickerDate=s})("onClose",function(){return
v(e),d().onDateChange()})("keyup.enter",function(){return
v(e),d().onDateChange()})("onBlur",function(){return
v(e),d().onDateChange()}),m(5,"translate"),c()(),_(6,nX,4,6,"div",9),_(7,iX,4,3,"div",9),_(8,sX,4,3,"div",9),_(9,rX,4,3,"div",9),_(10,oX,8,10,"div",10),_(11,aX,3,3,"div",11),l(12,"div",7),_(13,cX,2,3,"div",0),_(14,pX,1,4,"ng-template",null,12,we),c(),l(16,"div",7)(17,"button",13),C("click",function(){return
v(e),d().showLegend=!0}),m(18,"translate"),c()()(),_(19,vX,5,5,"div",14),_(20,C
X,2,2,"div",14),c()}if(2&t){const
e=F(15),n=d();a(2),p("ngIf",n.displayType==n.GRID),a(2),x("pTooltip",f(5,22,"dashboard.guide.calendar_tip")),p("ngModel",n.m_pickerDate)("showTime",!0)("stepMinute",30)("dateFormat","yy/mm/dd")("selectOtherMonths",!0)("showIcon",!0)("showOnFocus",!0)("showButtonBar",!0)("clearButtonStyleClass","hidden"),a(2),p("ngIf",n.displayType==n.CHANNEL),a(1),p("ngIf",n.displayType==n.PEOPLESEARCH),a(1),p("ngIf",n.displayType==n.TITLESEARCH),a(1),p("ngIf",n.displayType==n.FULLSEARCH),a(1),p("ngIf",qn(26,Cg,n.GRID,n.TITLESEARCH,n.PEOPLESEARCH,n.FULLSEARCH).indexOf(n.displayType)>-1),a(1),p("ngIf",qn(31,Cg,n.CHANNEL,n.TITLESEARCH,n.PEOPLESEARCH,n.FULLSEARCH).indexOf(n.displayType)>-1),a(2),p("ngIf",n.refreshing)("ngIfElse",e),a(4),x("label",f(18,24,"dashboard.guide.colors")),a(2),p("ngIf",n.displayType==n.GRID),a(1),p("ngIf",qn(36,Cg,n.CHANNEL,n.TITLESEARCH,n.PEOPLESEARCH,n.FULLSEARCH).indexOf(n.displayType)>-1)}}function
wX(t,i){1&t&&k(0,"p-progressSpinner")}fun
ction TX(t,i){if(1&t&&k(0,"app-legend",38),2&t){const
e=d();p("programGuide",e.displayType==e.GRID?e.m_programGuide:null)("listPrograms",e.displayType==e.GRID?null:e.listPrograms)}}const
SX=function(){return{width:"80vw"}};let CS=(()=>{class
t{constructor(e,n){this.guideService=e,this.translate=n,this.m_startDate=new
Date,this.m_pickerDate=new Date,this.m_endDate=new
Date,this.channelGroups=[],this.m_channelData=[],this.m_channelTotal=10,this.m_rows=10,this.listPrograms=[],this.allGroup={GroupId:0,Name:this.translate.instant("settings.chanedit.all"),Password:""},this.channelGroup=this.allGroup,this.loaded=!1,this.refreshing=!1,this.timeChange=!1,this.inter={summaryComponent:this},this.GRID=1,this.CHANNEL=2,this.TITLESEARCH=3,this.PEOPLESEARCH=4,this.FULLSEARCH=5,this.displayType=this.GRID,this.searchValue="",this.showLegend=!1,this.translate.onLangChange.subscribe(s=>{console.log("Event:
language change, new language
("+s.lang+")"),this.switchLanguage(s.lang),this.fetchData()})}ngOn
Init(){this.fetchData()}switchLanguage(e){this.translate.use(e)}fetchData(e){0==this.channelGroups.length&&this.guideService.GetChannelGroupList(!1).subscribe(n=>{console.log(n),this.channelGroups=n.ChannelGroupList.ChannelGroups,this.channelGroups.unshift(this.allGroup)}),this.guideService.GetProgramGuide(e,this.channelGroup.GroupId).subscribe(n=>{this.m_programGuide=n,this.m_startDate=new
Date(n.ProgramGuide.StartTime),this.m_pickerDate=new
Date(this.m_startDate),this.m_endDate=new
Date(n.ProgramGuide.EndTime),this.m_channelData=n.ProgramGuide.Channels,this.m_channelTotal=n.ProgramGuide.TotalAvailable,this.loaded=!0,this.refreshing=!1,this.timeChange=!1})}fetchDetails(){let
e=this.m_startDate.getTime(),s={Details:!0,StartTime:new
Date(e+1e3).toISOString()};switch(this.displayType){case
this.CHANNEL:s.ChanId=this.channel.ChanId;break;case
this.TITLESEARCH:s.TitleFilter=this.searchValue,s.Count=1e3;break;case
this.PEOPLESEARCH:s.PersonFilter=this.searchValue,s.Count=1e3;break;case t
his.FULLSEARCH:s.KeywordFilter=this.searchValue,s.Count=1e3}this.listPrograms=[],this.guideService.GetProgramList(s).subscribe(r=>{this.listPrograms=r.ProgramList.Programs,this.loaded=!0,this.refreshing=!1})}inDisplayWindow(e,n){let
s=new Date(e),r=new Date(n),o=new Date(this.m_startDate),u=new
Date(this.m_endDate);return!(r<=o||s>=u)&&s<u}onDateChange(){this.m_pickerDate||(this.m_pickerDate=new
Date),this.m_pickerDate.getTime()!=this.m_startDate.getTime()&&(this.m_startDate=new
Date(this.m_pickerDate),this.timeChange=!0,this.refresh())}refresh(){switch(this.refreshing=!0,this.displayType){case
this.GRID:this.m_startDate&&(this.refreshing=!0,this.fetchData(this.m_startDate));break;case
this.CHANNEL:case this.TITLESEARCH:case this.PEOPLESEARCH:case
this.FULLSEARCH:this.refreshing=!0,this.fetchDetails()}}onChannel(e){this.channel=e,this.displayType=this.CHANNEL,this.refresh()}onGrid(){this.displayType=this.GRID,this.refresh()}titleSearch(){this.searchValue=this.searchValue.trim(),this
.searchValue.length>1&&(this.displayType=this.TITLESEARCH,this.refresh())}peopleSearch(){this.searchValue=this.searchValue.trim(),this.searchValue.length>1&&(this.displayType=this.PEOPLESEARCH,this.refresh())}fullSearch(){this.searchValue=this.searchValue.trim(),this.searchValue.length>1&&(this.displayType=this.FULLSEARCH,this.refresh())}}return
t.\u0275fac=function(e){return
new(e||t)(D(vS),D(Oe))},t.\u0275cmp=z({type:t,selectors:[["app-guide"]],decls:10,vars:14,consts:[[4,"ngIf","ngIfElse"],[3,"inter"],["loading",""],[3,"header","visible","modal","visibleChange"],["pTemplate",""],[1,"flex"],["class","flex
align-items-center
pr-5",4,"ngIf"],[1,"flex","align-items-center"],["tooltipPosition","top",3,"ngModel","showTime","stepMinute","dateFormat","selectOtherMonths","showIcon","showOnFocus","showButtonBar","clearButtonStyleClass","pTooltip","ngModelChange","onClose","keyup.enter","onBlur"],["class","flex
align-items-center p-5",4,"ngIf"],["class","flex
align-items-center pl-5",4,"ngI
f"],["class","flex
align-items-center",4,"ngIf"],["refreshBn",""],["type","text","pButton","",3,"label","click"],[4,"ngIf"],[1,"flex","align-items-center","pr-5"],["name","channelGroup","optionLabel","Name","tooltipPosition","top",3,"ngModel","options","pTooltip","ngModelChange","onChange"],[1,"flex","align-items-center","p-5"],[1,"flex","align-items-center","pl-5"],["type","text","pInputText","","id","searchValue","name","searchValue","placeholder","Search",1,"text-xl",3,"ngModel","ngModelChange"],["pButton","","pRipple","","icon","pi
pi-search","tooltipPosition","top",1,"p-button-text",3,"pTooltip","click"],["pButton","","pRipple","","icon","pi
pi-user","tooltipPosition","top",1,"p-button-text",3,"pTooltip","click"],["pButton","","pRipple","","icon","pi
pi-search-plus","tooltipPosition","top",1,"p-button-text",3,"pTooltip","click"],["pButton","","pRipple","","icon","pi
pi-table","tooltipPosition","top",1,"p-button-text",3,"pTooltip","click"],["pButton","","pRipple","","icon","pi
p
i-refresh","tooltipPosition","top",1,"p-button-text",3,"pTooltip","click"],[3,"value","totalRecords"],["pTemplate","header","styleClass","timeHeader"],["pTemplate","listItem"],[1,"grid","col-12","p-3"],[1,"grid","flex-grow-1"],[1,"col-1"],[3,"channel","guideComponent"],[1,"col"],[4,"ngFor","ngForOf"],[1,"col-12"],[3,"guide"],[3,"program","guideStartTime","guideEndTime","guideComponent","channel"],[3,"inter","programs"],[3,"programGuide","listPrograms"]],template:function(e,n){if(1&e&&(l(0,"h2"),g(1),m(2,"translate"),c(),_(3,yX,21,41,"div",0),k(4,"app-schedule",1),_(5,wX,1,0,"ng-template",null,2,we),l(7,"p-dialog",3),C("visibleChange",function(r){return
n.showLegend=r}),m(8,"translate"),_(9,TX,1,2,"ng-template",4),c()),2&e){const
s=F(6);a(1),T("",f(2,9,"dashboard.programguide"),"
"),a(2),p("ngIf",n.loaded)("ngIfElse",s),a(1),p("inter",n.inter),a(3),q(A(13,SX)),x("header",f(8,11,"dashboard.guide.colors")),p("visible",n.showLegend)("modal",!0)}},styles:[".channelRow[_ngcontent-%COMP%]{
display:block;grid-template-columns:90px
auto;width:100%;height:82px;padding-bottom:2px}.programsBox[_ngcontent-%COMP%],
.timebarbox[_ngcontent-%COMP%]{grid-template-columns:90px
auto;grid-template-rows:28px;width:100%}"]}),t})();function
xX(t,i){1&t&&k(0,"img",5),2&t&&x("src",d().channel.IconURL,ln)}function
DX(t,i){1&t&&k(0,"img",6)}let MX=(()=>{class
t{constructor(){}ngOnInit(){}}return t.\u0275fac=function(e){return
new(e||t)},t.\u0275cmp=z({type:t,selectors:[["app-guide-channelicon"]],inputs:{channel:"channel",guideComponent:"guideComponent"},decls:8,vars:4,consts:[[1,"flex","flex-column","align-items-center","channelBox","cursor-pointer",3,"click"],[1,"channelIcon"],["height","57",3,"src",4,"ngIf","ngIfElse"],["nullIcon",""],[1,"channelText"],["height","57",3,"src"],["height","0","width","0"]],template:function(e,n){if(1&e&&(l(0,"div",0),C("click",function(){return
n.guideComponent.onChannel(n.channel)}),l(1,"div",1),_(2,xX,1,1,"img",2),_(3,DX,1,0,"ng-template",null,3,we),c(),
l(5,"div",4)(6,"span"),g(7),c()()()),2&e){const
s=F(4);a(2),p("ngIf",n.channel.IconURL)("ngIfElse",s),a(5),We("",n.channel.ChanNum,"
",n.channel.CallSign,"")}},directives:[Q],styles:[".channelBox[_ngcontent-%COMP%]{border-radius:10px;background:var(--surface-200);height:120px}.channelIcon[_ngcontent-%COMP%]{height:57px;max-width:86px;margin-top:10px;margin-bottom:3px;overflow:hidden;float:right}.channelText[_ngcontent-%COMP%]{clear:both;font-weight:700;text-align:-webkit-center;overflow:hidden;text-overflow:ellipsis;padding:0
3px}"]}),t})();const
kX=function(){return["WillRecord","Recording"]};function
IX(t,i){if(1&t&&(l(0,"div")(1,"div",5),g(2),c()()),2&t){const
e=d();a(1),p("ngClass",A(2,kX).indexOf(e.program.Recording.StatusName)>-1?"bg-green-500":"bg-pink-400"),a(1),T("
",e.dataService.recStatusText[e.program.Recording.StatusName],"")}}function
EX(t,i){if(1&t&&(l(0,"div")(1,"div",6),g(2),c()()),2&t){const
e=d();a(2),S((e.program.Season>0?"S"+e.program.Season+"E"+e.program.Episod
e:"")+" "+e.program.SubTitle)}}const
RX=function(t,i){return[t,i,"guide_type_default"]};let LX=(()=>{class
t{constructor(e){this.dataService=e,this.editSchedule=!1,this.typeclass="",this.catclass="",this.regex=/[^a-z0-9]/g}ngOnInit(){this.typeclass="guide_type_"+this.program.CatType,this.catclass="guide_cat_"+this.program.Category.toLowerCase().replace(this.regex,"_")}durationToWidth(){let
e=new Date(this.program.StartTime),n=new Date(this.program.EndTime),s=new
Date(this.guideStartTime),r=new
Date(this.guideEndTime),h=e<s?s:e,b=n>r?r:n,y=r.getTime()-s.getTime();return(b.getTime()-h.getTime())/y*100}openDialog(){this.guideComponent.inter.sched&&this.guideComponent.inter.sched.open(this.program,this.channel)}}return
t.\u0275fac=function(e){return
new(e||t)(D(Ll))},t.\u0275cmp=z({type:t,selectors:[["app-guide-programentry"]],inputs:{program:"program",channel:"channel",guideStartTime:"guideStartTime",guideEndTime:"guideEndTime",guideComponent:"guideComponent"},decls:8,vars:11,consts:[[
"tooltipPosition","top",1,"programBox","cursor-pointer",3,"ngClass","pTooltip","click"],[1,"programTitle"],[1,"programBody"],[1,"programCatType"],[4,"ngIf"],[1,"programCatType",3,"ngClass"],[1,"programSubtitle"]],template:function(e,n){1&e&&(l(0,"div",0),C("click",function(){return
n.openDialog()}),l(1,"div",1),g(2),c(),l(3,"div",2)(4,"div",3),g(5),c(),_(6,IX,3,3,"div",4),_(7,EX,3,1,"div",4),c()()),2&e&&(_i("width",n.durationToWidth(),"%"),x("pTooltip",n.program.Description),p("ngClass",Ge(8,RX,n.typeclass,n.catclass)),a(2),S(n.program.Title),a(3),S(n.program.Category),a(1),p("ngIf",n.program.Recording),a(1),p("ngIf",0!=n.program.SubTitle.length))},directives:[Le,Kt,Q],styles:[".programBox[_ngcontent-%COMP%]{float:left;height:120px;padding:0
0 0
2px;color:var(--primary-color-text);background:var(--surface-200);border-radius:10px;overflow:hidden;text-overflow:ellipsis}.programTitle[_ngcontent-%COMP%]{padding:5px
8px 4px 7px;width:100%;height:28px;color:var(--primary-color-text);backg
round:linear-gradient(to bottom,var(--surface-800) 1%,var(--surface-500)
90%,var(--surface-200)
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;height:45px;z-index:5}.programCatType[_ngcontent-%COMP%]{position:relative;font-weight:700;margin-right:5px;line-height:15px;padding-top:2px;padding-bottom:3px}.programSubtitle[_ngcontent-%COMP%]{position:relative;z-index:1;line-height:15px}"]}),t})(),OX=(()=>{class
t{constructor(e){this.guideService=e}ngOnInit(){}segmentToStartTime(e){const
n=18e5*e;return(new Date(this.guide.m_startDate.getTime()+n).toLocaleTimeString()+"
").replace(/:.. /," ")}pageLeft(){this.guide.m_pickerDate=new
Date(this.guide.m_startDate.getTime()-this.guideService.guide_millisecs),this.guide.onDateChange()}pageRight(){this.guide.m_picke
rDate=new
Date(this.guide.m_startDate.getTime()+this.guideService.guide_millisecs),this.guide.onDateChange()}}return
t.\u0275fac=function(e){return
new(e||t)(D(vS))},t.\u0275cmp=z({type:t,selectors:[["app-guide-timebar"]],inputs:{guide:"guide"},decls:25,vars:7,consts:[[1,"grid"],[1,"col-1","datebox"],[1,"col","segmentbox"],[1,"flex"],[1,"flex-none","cursor-pointer",3,"click"],[1,"flex-none"],[1,"flex-grow-1"]],template:function(e,n){1&e&&(l(0,"div",0)(1,"div",1),g(2),c(),l(3,"div",2)(4,"div",3)(5,"div",4),C("click",function(){return
n.pageLeft()}),g(6,"<<"),c(),l(7,"div",5),g(8),c()()(),l(9,"div",2),g(10),c(),l(11,"div",2),g(12),c(),l(13,"div",2),g(14),c(),l(15,"div",2),g(16),c(),l(17,"div",2)(18,"div",3)(19,"div",5),g(20),c(),l(21,"div",6),g(22,"\xa0"),c(),l(23,"div",4),C("click",function(){return
n.pageRight()}),g(24,">>"),c()()()()),2&e&&(a(2),S(n.guide.m_startDate.toLocaleDateString()),a(6),T("\xa0",n.segmentToStartTime(0),""),a(2),S(n.segmentToStartTime(1)),a(2),S(n.segmentToSt
artTime(2)),a(2),S(n.segmentToStartTime(3)),a(2),S(n.segmentToStartTime(4)),a(4),S(n.segmentToStartTime(5)))},styles:[".timebarbox[_ngcontent-%COMP%]{grid-template-columns:90px
auto;grid-template-rows:28px;width:100%}.datebox[_ngcontent-%COMP%]{padding:5px 8px 4px
7px;color:var(--primary-color-text);background:linear-gradient(to
bottom,var(--surface-800) 1%,var(--surface-500) 90%,var(--surface-200)
99%);border-radius:10px}.segmentsbox[_ngcontent-%COMP%]{display:block;float:left;position:relative;height:100%;width:calc(100%
- 91px)}.segmentbox[_ngcontent-%COMP%]{width:25%;padding:5px 8px 4px
7px;color:var(--primary-color-text);background:linear-gradient(to
bottom,var(--surface-800) 1%,var(--surface-500) 90%,var(--surface-200)
99%);height:auto;border-radius:10px}"]}),t})();function yS(t,i=zf){const n=function
AX(t){return t instanceof Date&&!isNaN(+t)}(t)?+t-i.now():Math.abs(t);return
s=>s.lift(new PX(n,i))}class
PX{constructor(i,e){this.delay=i,this.scheduler=e}call(i,e){return e.sub
scribe(new yg(i,this.delay,this.scheduler))}}class yg extends
yt{constructor(i,e,n){super(i),this.delay=e,this.scheduler=n,this.queue=[],this.active=!1,this.errored=!1}static
dispatch(i){const
e=i.source,n=e.queue,s=i.scheduler,r=i.destination;for(;n.length>0&&n[0].time-s.now()<=0;)n.shift().notification.observe(r);if(n.length>0){const
o=Math.max(0,n[0].time-s.now());this.schedule(i,o)}else
this.unsubscribe(),e.active=!1}_schedule(i){this.active=!0,this.destination.add(i.schedule(yg.dispatch,this.delay,{source:this,destination:this.destination,scheduler:i}))}scheduleNotification(i){if(!0===this.errored)return;const
e=this.scheduler,n=new
FX(e.now()+this.delay,i);this.queue.push(n),!1===this.active&&this._schedule(e)}_next(i){this.scheduleNotification(Kn.createNext(i))}_error(i){this.errored=!0,this.queue=[],this.destination.error(i),this.unsubscribe()}_complete(){this.scheduleNotification(Kn.createComplete()),this.unsubscribe()}}class
FX{constructor(i,e){this.time=i,this.notificatio
n=e}}const NX=["cetonform"],VX=["top"];function
BX(t,i){1&t&&(g(0),m(1,"translate")),2&t&&T("
",f(1,1,"settings.capture.ceton.title")," ")}function
HX(t,i){}function qX(t,i){if(1&t){const
e=I();l(0,"div",8)(1,"div",9)(2,"div",10)(3,"label",11),g(4),m(5,"translate"),c(),l(6,"input",12,13),C("ngModelChange",function(s){return
v(e),d().work.ipAddress=s}),c(),l(8,"small",14),g(9),m(10,"translate"),c()(),l(11,"div",10)(12,"label",15),g(13),m(14,"translate"),c(),l(15,"input",16,13),C("ngModelChange",function(s){return
v(e),d().work.tuner=s}),c(),l(17,"small",14),g(18),m(19,"translate"),c()(),l(20,"div",10)(21,"label",17),g(22),m(23,"translate"),c(),l(24,"input",18,19),C("ngModelChange",function(s){return
v(e),d().card.VideoDevice=s}),c(),l(26,"small",14),g(27),m(28,"translate"),c()(),l(29,"div",10)(30,"label",20),g(31),m(32,"translate"),c(),l(33,"p-inputNumber",21),C("ngModelChange",function(s){return
v(e),d().card.SignalTimeout=s}),c(),l(34,"small",14),g(35),m(36,"translate"),c()(),l(37,
"div",10)(38,"label",22),g(39),m(40,"translate"),c(),l(41,"p-inputNumber",23),C("ngModelChange",function(s){return
v(e),d().card.ChannelTimeout=s}),c(),l(42,"small",14),g(43),m(44,"translate"),c()()()()}if(2&t){const
e=d();a(4),S(f(5,23,"settings.capture.ceton.ipaddress_label")),a(2),p("ngModel",e.work.ipAddress),a(3),T("
",f(10,25,"settings.capture.ceton.ipaddress_desc"),"
"),a(4),S(f(14,27,"settings.capture.ceton.tuner_label")),a(2),p("ngModel",e.work.tuner),a(3),T("
",f(19,29,"settings.capture.ceton.tuner_desc"),"
"),a(4),S(f(23,31,"settings.capture.ceton.deviceid_label")),a(2),p("ngModel",e.card.VideoDevice),a(3),T("
",f(28,33,"settings.capture.ceton.deviceid_desc"),"
"),a(4),S(f(32,35,"settings.capture.sigtimeout_label")),a(2),p("ngModel",e.card.SignalTimeout)("showButtons",!0)("min",250)("max",6e4)("step",250),a(2),T("
",f(36,37,"settings.capture.sigtimeout_desc"),"
"),a(4),S(f(40,39,"settings.capture.tunetimeout_label")),a(2),p("ngModel",e.card.ChannelTimeout)("showButtons",!
0)("min",1750)("max",65e3)("step",250),a(2),T("
",f(44,41,"settings.capture.tunetimeout_desc")," ")}}function
GX(t,i){1&t&&(k(0,"p-message",29),m(1,"translate")),2&t&&x("text",f(1,1,"common.savesuccess"))}function
UX(t,i){1&t&&(k(0,"p-message",30),m(1,"translate")),2&t&&x("text",f(1,1,"common.networkfail"))}function
zX(t,i){if(1&t){const
e=I();l(0,"div",24)(1,"div",25),_(2,GX,2,3,"p-message",26),_(3,UX,2,3,"p-message",27),c(),l(4,"p-button",28),C("onClick",function(){v(e);const
s=d(),r=F(1);return
s.saveForm(),r.form.markAsPristine()}),m(5,"translate"),c()()}if(2&t){const
e=d(),n=F(1);a(2),p("ngIf",e.work.successCount>0&&0==e.work.errorCount&&!n.dirty),a(1),p("ngIf",e.work.errorCount>0),a(1),x("label",f(5,4,"common.save")),p("disabled",!n.dirty||!e.card.VideoDevice||e.setupService.schedulingEnabled)}}let
jX=(()=>{class
t{constructor(e,n){this.captureCardService=e,this.setupService=n,this.work={ipAddress:"",tuner:"",successCount:0,errorCount:0},this.saveObserver={next:s=>{this.card.C
ardId&&s.bool?this.work.successCount++:!this.card.CardId&&s.int?(this.work.successCount++,this.card.CardId=s.int):(this.work.errorCount++,this.currentForm.form.markAsDirty())},error:s=>{console.error(s),this.work.errorCount++,this.currentForm.form.markAsDirty()}}}ngOnInit(){if(this.card.VideoDevice){const
e=this.card.VideoDevice.split("-");if(2==e.length){this.work.ipAddress=e[0];const
n=e[1].split(".");2==n.length&&(this.work.tuner=n[1])}}}ngAfterViewInit(){this.currentForm.valueChanges.pipe(yS(50)).subscribe(()=>this.card.VideoDevice=this.work.ipAddress+"-RTP."+this.work.tuner),this.setupService.setCurrentForm(this.currentForm),this.topElement.nativeElement.scrollIntoView({behavior:"smooth",block:"start"})}saveForm(){console.log("save
form
clicked"),this.work.successCount=0,this.work.errorCount=0,this.card.CardId?this.cardList.CaptureCardList.CaptureCards.forEach(e=>{(e.CardId==this.card.CardId||e.ParentId==this.card.CardId)&&(this.captureCardService.UpdateCaptureCard(e.CardId,"vi
deodevice",this.card.VideoDevice).subscribe(this.saveObserver),this.captureCardService.UpdateCaptureCard(e.CardId,"signal_timeout",String(this.card.SignalTimeout)).subscribe(this.saveObserver),this.captureCardService.UpdateCaptureCard(e.CardId,"channel_timeout",String(this.card.ChannelTimeout)).subscribe(this.saveObserver))}):this.captureCardService.AddCaptureCard(this.card).subscribe(this.saveObserver)}}return
t.\u0275fac=function(e){return
new(e||t)(D(Gt),D(Me))},t.\u0275cmp=z({type:t,selectors:[["app-ceton"]],viewQuery:function(e,n){if(1&e&&(W(NX,5),W(VX,5)),2&e){let
s;V(s=B())&&(n.currentForm=s.first),V(s=B())&&(n.topElement=s.first)}},inputs:{card:"card",cardList:"cardList"},decls:9,vars:0,consts:[["name","cetonform",1,"ml-3","mr-3"],["cetonform","ngForm"],["top",""],[1,"m-5"],["pTemplate","title"],["pTemplate","subtitle"],["pTemplate","content"],["pTemplate","footer"],[1,"grid"],[1,"mb-4","w-full"],[1,"form-group","field"],["for","ip",1,"label","block"],["pInputText","","id","
ip","name","ip",1,"mb-2","form-control","w-full",3,"ngModel","ngModelChange"],["ipAddress","ngModel"],[1,"block"],["for","tuner",1,"label","block"],["pInputText","","id","tuner","name","tuner",1,"mb-2","form-control","w-full",3,"ngModel","ngModelChange"],["for","VideoDevice",1,"label","block"],["pInputText","","id","VideoDevice","name","VideoDevice","disabled","true",1,"mb-2","form-control","w-full",3,"ngModel","ngModelChange"],["VideoDevice","ngModel"],["for","SignalTimeout",1,"label","block"],["name","SignalTimeout","id","SignalTimeout",3,"ngModel","showButtons","min","max","step","ngModelChange"],["for","ChannelTimeout",1,"label","block"],["name","ChannelTimeout","id","ChannelTimeout",3,"ngModel","showButtons","min","max","step","ngModelChange"],[1,"grid","nogutter"],[1,"col-12"],["severity","success",3,"text",4,"ngIf"],["severity","error",3,"text",4,"ngIf"],["icon","pi
pi-save","iconPos","left",1,"col","pr-1",3,"label","disabled","onClick"],["severity","success",3,"text"],["seve
rity","error",3,"text"]],template:function(e,n){1&e&&(l(0,"form",0,1),k(2,"span",null,2),l(4,"p-card",3),_(5,BX,2,3,"ng-template",4),_(6,HX,0,0,"ng-template",5),_(7,qX,45,43,"ng-template",6),_(8,zX,6,6,"ng-template",7),c()())},directives:[ze,Ue,He,Ne,ne,Ye,Te,_e,pt,Q,qe,ve],pipes:[ce],styles:[""]}),t})();const
$X=["dvbform"],WX=["top"];function
KX(t,i){1&t&&(g(0),m(1,"translate")),2&t&&T("
",f(1,1,"settings.capture.dvb.title")," ")}function
QX(t,i){}const JX=function(){return{minWidth:"80%"}};function
YX(t,i){if(1&t){const
e=I();l(0,"p-dropdown",43,44),C("ngModelChange",function(s){return
v(e),d(2).currentDevice=s})("onChange",function(){return
v(e),d(2).updateDevice()}),c()}if(2&t){const
e=d(2);q(A(6,JX)),p("options",e.captureDeviceList.CaptureDeviceList.CaptureDevices)("ngModel",e.currentDevice)("editable",!1)("maxlength",0)}}function
ZX(t,i){if(1&t&&(l(0,"div")(1,"small",45),g(2),c()()),2&t){const
e=d(2);a(2),T(" ",e.work.warningMessage," ")}}function
XX(t,i){if(1&t){const e=I();
l(0,"input",46,47),C("ngModelChange",function(s){return
v(e),d(2).currentDevice.FrontendName=s}),c()}2&t&&p("ngModel",d(2).currentDevice.FrontendName)}function
eee(t,i){if(1&t){const
e=I();l(0,"p-dropdown",48,49),C("ngModelChange",function(s){return
v(e),d(2).card.InputName=s}),c()}if(2&t){const
e=d(2);p("options",e.currentDevice.InputNames)("ngModel",e.card.InputName)}}function
tee(t,i){if(1&t){const
e=I();l(0,"p-button",50),C("onClick",function(){return
v(e),d(2).work.displayNewDiseqc=!0}),m(1,"translate"),c()}2&t&&x("label",f(1,1,"settings.capture.dvb.newsatellite_button"))}function
nee(t,i){if(1&t){const
e=I();l(0,"p-button",51),C("onClick",function(){return
v(e),d(2).work.displayNewDiseqc=!1}),m(1,"translate"),c(),l(2,"p-button",52),C("onClick",function(){return
v(e),d(2).newDiseqc()}),m(3,"translate"),c()}if(2&t){const
e=d(2);x("label",f(1,3,"common.cancel")),a(2),x("label",f(3,5,"common.ok")),p("disabled",e.selectedDiseqcType.inactive)}}function
iee(t,i){if(1&t){const e=I();l
(0,"p-button",53),C("onClick",function(){v(e);const s=d(2);return
s.setupRootTrees(),s.work.displayConnectDevice=!0}),m(1,"translate"),m(2,"translate"),c()}2&t&&(x("label",f(1,2,"settings.capture.dvb.satellite_connect")),x("pTooltip",f(2,4,"settings.capture.dvb.satellite_connect_tooltip")))}function
see(t,i){if(1&t){const
e=I();l(0,"p-button",51),C("onClick",function(){return
v(e),d(2).work.displayConnectDevice=!1}),m(1,"translate"),c(),l(2,"p-button",52),C("onClick",function(){return
v(e),d(2).selectDiseqc()}),m(3,"translate"),c()}if(2&t){const
e=d(2);x("label",f(1,3,"common.cancel")),a(2),x("label",f(3,5,"common.ok")),p("disabled",!e.work.selectedDiseqcTree)}}function
ree(t,i){if(1&t){const
e=I();l(0,"p-button",54),C("onClick",function(){return
v(e),d(2).canDeleteDiseqc()}),c()}}function oee(t,i){if(1&t){const
e=I();l(0,"p-button",55),C("click",function(){return
v(e),d(2).work.displayDeleteDiseqc=!1}),m(1,"translate"),c(),l(2,"p-button",56),C("click",function(){return
v(e),d(2).de
leteDiseqc()}),m(3,"translate"),c()}2&t&&(x("label",f(1,2,"common.no")),a(2),x("label",f(3,4,"common.yes")))}function
aee(t,i){if(1&t){const
e=I();l(0,"p-button",57),C("onClick",function(){return
v(e),d(2).work.displayDisconnect=!0}),m(1,"translate"),c()}2&t&&x("label",f(1,1,"settings.capture.dvb.satellite_disconnect"))}function
lee(t,i){if(1&t){const
e=I();l(0,"p-button",55),C("click",function(){return
v(e),d(2).work.displayDisconnect=!1}),m(1,"translate"),c(),l(2,"p-button",56),C("click",function(){return
v(e),d(2).unSelectDiseqc()}),m(3,"translate"),c()}2&t&&(x("label",f(1,2,"common.no")),a(2),x("label",f(3,4,"common.yes")))}function
cee(t,i){1&t&&(k(0,"p-message",58),m(1,"translate")),2&t&&x("text",f(1,1,"settings.capture.dvb.satellite_disconnect_error"))}function
uee(t,i){if(1&t){const
e=I();l(0,"app-lnb",59),C("baseEvent",function(s){return
v(e),d(2).setDiseqcObject(s)}),c()}if(2&t){const
e=d(2);p("diseqcTree",e.diseqcTree)("diseqcTreeList",e.diseqcTreeList)("dvbComponent",e)}
}function dee(t,i){if(1&t){const
e=I();l(0,"app-rotor",59),C("baseEvent",function(s){return
v(e),d(2).setDiseqcObject(s)}),c()}if(2&t){const
e=d(2);p("diseqcTree",e.diseqcTree)("diseqcTreeList",e.diseqcTreeList)("dvbComponent",e)}}function
pee(t,i){if(1&t){const
e=I();l(0,"app-switch",59),C("baseEvent",function(s){return
v(e),d(2).setDiseqcObject(s)}),c()}if(2&t){const
e=d(2);p("diseqcTree",e.diseqcTree)("diseqcTreeList",e.diseqcTreeList)("dvbComponent",e)}}function
hee(t,i){if(1&t){const
e=I();l(0,"app-unicable",59),C("baseEvent",function(s){return
v(e),d(2).setDiseqcObject(s)}),c()}if(2&t){const
e=d(2);p("diseqcTree",e.diseqcTree)("diseqcTreeList",e.diseqcTreeList)("dvbComponent",e)}}const
Md=function(){return{width:"50vw"}};function mee(t,i){if(1&t){const
e=I();l(0,"div",8)(1,"div",9)(2,"div",10)(3,"label",11),g(4),m(5,"translate"),c(),_(6,YX,2,7,"p-dropdown",12),_(7,ZX,3,1,"div",13),l(8,"small",14),g(9),m(10,"translate"),c()(),l(11,"div",10)(12,"label",15),g(13),m(14,"translate"
),c(),_(15,XX,2,1,"input",16),l(16,"small",14),g(17),m(18,"translate"),c()(),l(19,"div",10)(20,"label",17),g(21),m(22,"translate"),c(),_(23,eee,2,2,"p-dropdown",18),l(24,"small",14),g(25),m(26,"translate"),c()(),l(27,"div",10)(28,"label",19),g(29),m(30,"translate"),c(),l(31,"p-inputNumber",20),C("ngModelChange",function(s){return
v(e),d().card.SignalTimeout=s}),c(),l(32,"small",14),g(33),m(34,"translate"),c()(),l(35,"div",10)(36,"label",21),g(37),m(38,"translate"),c(),l(39,"p-inputNumber",22),C("ngModelChange",function(s){return
v(e),d().card.ChannelTimeout=s}),c(),l(40,"small",14),g(41),m(42,"translate"),c()(),l(43,"div",10)(44,"p-checkbox",23,24),C("ngModelChange",function(s){return
v(e),d().card.DVBWaitForSeqStart=s}),m(46,"translate"),c(),l(47,"small",14),g(48),m(49,"translate"),c()(),l(50,"div",10)(51,"p-checkbox",25,26),C("ngModelChange",function(s){return
v(e),d().card.DVBOnDemand=s}),m(53,"translate"),c(),l(54,"small",14),g(55),m(56,"translate"),c()(),l(57,"div",10)(58,"p-ch
eckbox",27,28),C("ngModelChange",function(s){return
v(e),d().card.DVBEITScan=s}),m(60,"translate"),c(),l(61,"small",14),g(62),m(63,"translate"),c()(),l(64,"div",10)(65,"label",29),g(66),m(67,"translate"),c(),l(68,"p-inputNumber",30),C("ngModelChange",function(s){return
v(e),d().card.DVBTuningDelay=s}),c(),l(69,"small",14),g(70),m(71,"translate"),c()()(),l(72,"p-fieldset",31),m(73,"translate"),_(74,tee,2,3,"p-button",32),l(75,"p-dialog",33),C("visibleChange",function(s){return
v(e),d().work.displayNewDiseqc=s}),m(76,"translate"),l(77,"label",34),g(78),m(79,"translate"),c(),l(80,"p-listbox",35),C("ngModelChange",function(s){return
v(e),d().selectedDiseqcType=s})("onDblClick",function(){return
v(e),d().newDiseqc()}),c(),_(81,nee,4,7,"ng-template",7),c(),g(82," \xa0
"),_(83,iee,3,6,"p-button",36),l(84,"p-dialog",33),C("visibleChange",function(s){return
v(e),d().work.displayConnectDevice=s}),m(85,"translate"),l(86,"label",37),g(87),m(88,"translate"),c(),l(89,"p-listbox",38),C("ngModelCha
nge",function(s){return
v(e),d().work.selectedDiseqcTree=s})("onDblClick",function(){return
v(e),d().selectDiseqc()}),c(),_(90,see,4,7,"ng-template",7),c(),_(91,ree,1,0,"p-button",39),l(92,"p-dialog",33),C("visibleChange",function(s){return
v(e),d().work.displayDeleteDiseqc=s}),m(93,"translate"),l(94,"h2"),g(95),m(96,"translate"),c(),l(97,"p"),g(98),m(99,"translate"),c(),_(100,oee,4,6,"ng-template",7),c(),g(101,"
\xa0
"),_(102,aee,2,3,"p-button",40),l(103,"p-dialog",33),C("visibleChange",function(s){return
v(e),d().work.displayDisconnect=s}),m(104,"translate"),l(105,"h2"),g(106),m(107,"translate"),c(),l(108,"p"),g(109),m(110,"translate"),c(),_(111,lee,4,6,"ng-template",7),c(),_(112,cee,2,3,"p-message",41),_(113,uee,1,3,"app-lnb",42),_(114,dee,1,3,"app-rotor",42),_(115,pee,1,3,"app-switch",42),_(116,hee,1,3,"app-unicable",42),c()()}if(2&t){const
e=d();a(4),S(f(5,93,"settings.capture.dvb.device_label")),a(2),p("ngIf",e.work.isReady),a(1),p("ngIf",e.work.warningMessage),a(2),T("
",f(10
,95,"settings.capture.device_desc"),"
"),a(4),S(f(14,97,"settings.capture.dvb.frontend_label")),a(2),p("ngIf",e.work.isReady),a(2),T("
",f(18,99,"settings.capture.frontend_desc"),"
"),a(4),S(f(22,101,"settings.capture.dvb.inputname_label")),a(2),p("ngIf",e.work.isReady),a(2),T("
",f(26,103,"settings.capture.inputname_desc"),"
"),a(4),S(f(30,105,"settings.capture.sigtimeout_label")),a(2),p("ngModel",e.card.SignalTimeout)("showButtons",!0)("min",250)("max",6e4)("step",250),a(2),T("
",f(34,107,"settings.capture.sigtimeout_desc"),"
"),a(4),S(f(38,109,"settings.capture.tunetimeout_label")),a(2),p("ngModel",e.card.ChannelTimeout)("showButtons",!0)("min",1750)("max",65e3)("step",250),a(2),T("
",f(42,111,"settings.capture.tunetimeout_desc"),"
"),a(3),x("label",f(46,113,"settings.capture.dvb.wait_label")),p("ngModel",e.card.DVBWaitForSeqStart)("binary",!0),a(4),T("
",f(49,115,"settings.capture.dvb.wait_desc"),"
"),a(3),x("label",f(53,117,"settings.capture.dvb.ondemand_label")),p("ngModel",e.
card.DVBOnDemand)("binary",!0),a(4),T("
",f(56,119,"settings.capture.dvb.ondemand_desc"),"
"),a(3),x("label",f(60,121,"settings.capture.dvb.eitscan_label")),p("ngModel",e.card.DVBEITScan)("binary",!0),a(4),T("
",f(63,123,"settings.capture.dvb.eitscan_desc"),"
"),a(4),S(f(67,125,"settings.capture.dvb.tuningdelay_label")),a(2),p("ngModel",e.card.DVBTuningDelay)("showButtons",!0)("min",0)("max",2e3)("step",25),a(2),T("
",f(71,127,"settings.capture.dvb.tuningdelay_desc"),"
"),a(2),x("legend",f(73,129,"settings.capture.dvb.satellite_heading")),p("toggleable",!0)("collapsed",!0),a(2),p("ngIf",!e.diseqcTree),a(1),q(A(151,Md)),x("header",f(76,131,"settings.capture.dvb.newsatellite_heading")),p("visible",e.work.displayNewDiseqc)("modal",!0)("draggable",!1)("resizable",!1),a(3),S(f(79,133,"settings.capture.dvb.newsatellite_devtype")),a(2),p("options",e.captureCardService.diseqcTypes)("ngModel",e.selectedDiseqcType),a(3),p("ngIf",!e.diseqcTree),a(1),q(A(152,Md)),x("header",f(85,135,"settings.c
apture.dvb.satellite_connect")),p("visible",e.work.displayConnectDevice)("modal",!0)("draggable",!1)("resizable",!1),a(3),S(f(88,137,"settings.capture.dvb.satellite_select")),a(2),p("options",e.diseqcRootTrees)("ngModel",e.work.selectedDiseqcTree),a(2),p("ngIf",e.diseqcTree),a(1),q(A(153,Md)),x("header",f(93,139,"settings.capture.dvb.satellite_delete_header")),p("visible",e.work.displayDeleteDiseqc)("modal",!0)("draggable",!1)("resizable",!1),a(3),S(f(96,141,"settings.common.ru_sure")),a(3),S(f(99,143,"settings.capture.dvb.satellite_delete_desc")),a(4),p("ngIf",e.diseqcTree),a(1),q(A(154,Md)),x("header",f(104,145,"settings.capture.dvb.satellite_disconnect")),p("visible",e.work.displayDisconnect)("modal",!0)("draggable",!1)("resizable",!1),a(3),S(f(107,147,"settings.common.ru_sure")),a(3),S(f(110,149,"settings.capture.dvb.satellite_disconnect_warning")),a(3),p("ngIf",e.work.diseqcError),a(1),p("ngIf",e.diseqcTree&&"lnb"==e.diseqcTree.Type),a(1),p("ngIf",e.diseqcTree&&"rotor"==e.diseq
cTree.Type),a(1),p("ngIf",e.diseqcTree&&"switch"==e.diseqcTree.Type),a(1),p("ngIf",e.diseqcTree&&"scr"==e.diseqcTree.Type)}}function
fee(t,i){1&t&&(k(0,"p-message",64),m(1,"translate")),2&t&&x("text",f(1,1,"common.savesuccess"))}function
gee(t,i){1&t&&(k(0,"p-message",58),m(1,"translate")),2&t&&x("text",f(1,1,"common.networkfail"))}function
_ee(t,i){if(1&t){const
e=I();l(0,"div",60)(1,"div",61),_(2,fee,2,3,"p-message",62),_(3,gee,2,3,"p-message",41),c(),l(4,"p-button",63),C("onClick",function(){v(e);const
s=d(),r=F(1);return
s.saveForm(),r.form.markAsPristine()}),m(5,"translate"),c()()}if(2&t){const
e=d(),n=F(1);a(2),p("ngIf",e.work.successCount>0&&0==e.work.errorCount&&!n.dirty),a(1),p("ngIf",e.work.errorCount>0),a(1),x("label",f(5,4,"common.save")),p("disabled",!n.dirty||!e.card.VideoDevice||e.setupService.schedulingEnabled)}}let
wS=(()=>{class
t{constructor(e,n,s){this.captureCardService=e,this.setupService=n,this.translate=s,this.work={InputName:"",successCount:0,errorCount:0,in
putNames:[""],isReady:!1,warningMessage:"",displayNewDiseqc:!1,displayDeleteDiseqc:!1,displayConnectDevice:!1,displayDisconnect:!1,selectedDiseqcTree:0,diseqcError:!1},this.captureDeviceList={CaptureDeviceList:{CaptureDevices:[]}},this.diseqcRootTrees=[],this.diseqcTree=void
0,this.messages={devNotExist:"settings.capture.dvb.devNotExist",unknownName:"settings.capture.dvb.unknownName",devInUse:"settings.capture.dvb.devInUse",noDevSelected:"settings.capture.dvb.noDevSelected"},this.currentDevice={FrontendName:"Unknown",InputNames:[""]},this.selectedDiseqcType={description:"",type:"",inactive:!0},this.saveObserver={next:r=>{r.bool?(console.log("saveObserver
success",r),this.work.successCount++):!this.card.CardId&&r.int?(console.log("saveObserver
success",r),this.work.successCount++,this.card.CardId||(this.card.CardId=r.int,this.cardList.CaptureCardList.CaptureCards.push(this.card),this.captureCardService.UpdateCaptureCard(this.card.CardId,"inputname",this.card.InputName).subscribe(this
.saveObserver))):(console.log("saveObserver
error",r),this.work.errorCount++,this.currentForm.form.markAsDirty())},error:r=>{console.log("saveObserver
error",r),this.work.errorCount++,this.currentForm.form.markAsDirty()}},s.get(this.messages.devNotExist).subscribe(r=>this.messages.devNotExist=r),s.get(this.messages.unknownName).subscribe(r=>this.messages.unknownName=r),s.get(this.messages.devInUse).subscribe(r=>this.messages.devInUse=r),s.get(this.messages.noDevSelected).subscribe(r=>this.messages.noDevSelected=r)}ngOnInit(){null==this.card.DVBWaitForSeqStart&&(this.card.DVBWaitForSeqStart=!0),null==this.card.DVBOnDemand&&(this.card.DVBOnDemand=!0),null==this.card.DVBEITScan&&(this.card.DVBEITScan=!0),null==this.card.CardId&&(this.card.CardId=0),null==this.card.VideoDevice&&(this.card.VideoDevice=""),null==this.card.DiSEqCId&&(this.card.DiSEqCId=0),this.captureCardService.GetCaptureDeviceList("DVB").subscribe({next:e=>{this.captureDeviceList=e,this.setupDevice()},error:e=>{console.l
og("GetCaptureDeviceList",e),this.work.errorCount++}}),this.setupDiseqc()}ngAfterViewInit(){this.setupService.setCurrentForm(this.currentForm),this.topElement.nativeElement.scrollIntoView({behavior:"smooth",block:"start"})}setupDiseqc(){this.diseqcTree=this.diseqcTreeList.DiseqcTreeList.DiseqcTrees.find(e=>e.DiSEqCId==this.card.DiSEqCId),this.work.diseqcError=!1}newDiseqc(){this.work.displayNewDiseqc=!1,this.work.diseqcError=!1,this.diseqcTree={Type:this.selectedDiseqcType.type,Description:this.selectedDiseqcType.description}}setupRootTrees(){this.diseqcRootTrees=this.diseqcTreeList.DiseqcTreeList.DiseqcTrees.filter(e=>!e.ParentId)}selectDiseqc(){this.work.displayConnectDevice=!1,this.work.diseqcError=!1,this.card.DiSEqCId=this.work.selectedDiseqcTree,this.currentForm.form.markAsDirty(),this.setupDiseqc()}unSelectDiseqc(){this.work.displayDisconnect=!1,this.work.diseqcError=!1,this.card.DiSEqCId=0,this.currentForm.form.markAsDirty(),this.diseqcTree=void
0,this.captureCardService.Del
eteDiseqcConfig(this.card.CardId).subscribe()}canDeleteDiseqc(){this.work.diseqcError=!1,this.cardList.CaptureCardList.CaptureCards.filter(n=>n.DiSEqCId==this.card.DiSEqCId).length>1?this.work.diseqcError=!0:this.work.displayDeleteDiseqc=!0}deleteDiseqc(){this.work.displayDeleteDiseqc=!1,this.work.successCount=0,this.work.errorCount=0,this.diseqcTree&&this.diseqcTree.DiSEqCId&&(this.captureCardService.DeleteDiseqcTree(this.diseqcTree.DiSEqCId).subscribe({next:e=>{e.bool?this.work.successCount++:(this.work.errorCount++,console.log("DeleteDiseqcTree",e)),this.parent.loadDiseqc()},error:e=>{console.log("DeleteDiseqcTree",e),this.work.errorCount++}}),this.card.DiSEqCId=0,this.card.CardId&&(this.cardList.CaptureCardList.CaptureCards.forEach(e=>{(e.CardId==this.card.CardId||e.ParentId==this.card.CardId)&&this.captureCardService.UpdateCaptureCard(e.CardId,"DiSEqCId",String(this.card.DiSEqCId)).subscribe(this.saveObserver)}),this.captureCardService.DeleteDiseqcConfig(this.card.CardId).subsc
ribe())),this.diseqcTree=void
0}setDiseqcObject(e){this.diseqcComponent=e}setupDevice(){if(this.card.VideoDevice||this.captureDeviceList.CaptureDeviceList.CaptureDevices.unshift({VideoDevice:"",FrontendName:this.messages.noDevSelected,InputNames:[""]}),this.card.VideoDevice){let
e=this.captureDeviceList.CaptureDeviceList.CaptureDevices.find(n=>n.VideoDevice==this.card.VideoDevice);e?this.currentDevice=e:(this.currentDevice={VideoDevice:this.card.VideoDevice,FrontendName:this.messages.devNotExist,InputNames:[""]},this.captureDeviceList.CaptureDeviceList.CaptureDevices.push(this.currentDevice))}this.currentDevice&&this.card.InputName&&(this.currentDevice.InputNames.includes(this.card.InputName)||this.currentDevice.InputNames.push(this.card.InputName)),this.work.isReady=!0}updateDevice(){this.card.VideoDevice=this.currentDevice.VideoDevice,this.card.InputName=this.currentDevice.DefaultInputName,this.card.SignalTimeout=this.currentDevice.SignalTimeout,this.card.ChannelTimeout=this.curre
ntDevice.ChannelTimeout,this.checkInUse()}checkInUse(){this.work.warningMessage=this.cardList.CaptureCardList.CaptureCards.find(n=>n.VideoDevice==this.currentDevice.VideoDevice&&n.CardId!=this.card.CardId)?this.messages.devInUse:""}saveForm(){this.work.successCount=0,this.work.errorCount=0,this.work.diseqcError=!1,this.diseqcTree&&this.diseqcComponent?this.diseqcComponent.saveForm(0,{next:e=>{var
n;this.card.DiSEqCId&&e.bool&&this.card.DiSEqCId==(null===(n=this.diseqcTree)||void
0===n?void
0:n.DiSEqCId)?(this.work.successCount++,this.saveCard()):e.int&&this.diseqcTree?(this.card.DiSEqCId=e.int,this.diseqcTree.DiSEqCId=e.int,this.diseqcTreeList.DiseqcTreeList.DiseqcTrees.push(this.diseqcTree),this.saveCard()):(console.log("saveForm",e),this.work.errorCount++,this.currentForm.form.markAsDirty())},error:e=>{console.log("saveForm",e),this.work.errorCount++,this.currentForm.form.markAsDirty()},complete:()=>{}}):this.saveCard()}saveCard(){this.card.CardId?this.cardList.CaptureCardList.Cap
tureCards.forEach(e=>{(e.CardId==this.card.CardId||e.ParentId==this.card.CardId)&&(this.captureCardService.UpdateCaptureCard(e.CardId,"videodevice",this.card.VideoDevice).subscribe(this.saveObserver),this.captureCardService.UpdateCaptureCard(e.CardId,"dvb_wait_for_seqstart",this.card.DVBWaitForSeqStart?"1":"0").subscribe(this.saveObserver),this.captureCardService.UpdateCaptureCard(e.CardId,"dvb_on_demand",this.card.DVBOnDemand?"1":"0").subscribe(this.saveObserver),this.captureCardService.UpdateCaptureCard(e.CardId,"signal_timeout",String(this.card.SignalTimeout)).subscribe(this.saveObserver),this.captureCardService.UpdateCaptureCard(e.CardId,"channel_timeout",String(this.card.ChannelTimeout)).subscribe(this.saveObserver),this.captureCardService.UpdateCaptureCard(e.CardId,"dvb_tuning_delay",String(this.card.DVBTuningDelay)).subscribe(this.saveObserver),this.captureCardService.UpdateCaptureCard(e.CardId,"dvb_eitscan",String(this.card.DVBEITScan?"1":"0")).subscribe(this.saveObserver),t
his.captureCardService.UpdateCaptureCard(e.CardId,"inputname",this.card.InputName).subscribe(this.saveObserver),this.captureCardService.UpdateCaptureCard(e.CardId,"DiSEqCId",String(this.card.DiSEqCId)).subscribe(this.saveObserver))}):this.captureCardService.AddCaptureCard(this.card).subscribe(this.saveObserver)}}return
t.\u0275fac=function(e){return
new(e||t)(D(Gt),D(Me),D(Oe))},t.\u0275cmp=z({type:t,selectors:[["app-dvb"]],viewQuery:function(e,n){if(1&e&&(W($X,5),W(WX,5)),2&e){let
s;V(s=B())&&(n.currentForm=s.first),V(s=B())&&(n.topElement=s.first)}},inputs:{card:"card",cardList:"cardList",diseqcTreeList:"diseqcTreeList",parent:"parent"},decls:9,vars:0,consts:[["name","dvbform",1,"ml-3","mr-3"],["dvbform","ngForm"],["top",""],[1,"m-5"],["pTemplate","title"],["pTemplate","subtitle"],["pTemplate","content"],["pTemplate","footer"],[1,"grid"],[1,"mb-4","w-full"],[1,"form-group","field"],["for","VideoDevice",1,"label","block"],["optionLabel","VideoDevice","name","VideoDevice",3,"options
","ngModel","editable","maxlength","style","ngModelChange","onChange",4,"ngIf"],[4,"ngIf"],[1,"block"],["for","FrontendName",1,"label","block"],["pInputText","","id","FrontendName","name","FrontendName","disabled","true","class","mb-2
form-control
w-full",3,"ngModel","ngModelChange",4,"ngIf"],["for","InputName",1,"label","block"],["name","InputName",3,"options","ngModel","ngModelChange",4,"ngIf"],["for","SignalTimeout",1,"label","block"],["name","SignalTimeout","id","SignalTimeout",3,"ngModel","showButtons","min","max","step","ngModelChange"],["for","ChannelTimeout",1,"label","block"],["name","ChannelTimeout","id","ChannelTimeout",3,"ngModel","showButtons","min","max","step","ngModelChange"],["inputId","DVBWaitForSeqStart","name","DVBWaitForSeqStart",1,"label","mb-2","w-full",3,"ngModel","binary","label","ngModelChange"],["DVBWaitForSeqStart","ngModel"],["inputId","DVBOnDemand","name","DVBOnDemand",1,"label","mb-2","w-full",3,"ngModel","binary","label","ngModelChange"],["DVBOnDemand
","ngModel"],["inputId","DVBEITScan","name","DVBEITScan",1,"label","mb-2","w-full",3,"ngModel","binary","label","ngModelChange"],["DVBEITScan","ngModel"],["for","DVBTuningDelay",1,"label","block"],["name","DVBTuningDelay","id","DVBTuningDelay",3,"ngModel","showButtons","min","max","step","ngModelChange"],[1,"mb-4","w-full",3,"legend","toggleable","collapsed"],["icon","pi
pi-plus-circle","styleClass","p-button-plain",3,"label","onClick",4,"ngIf"],[3,"header","visible","modal","draggable","resizable","visibleChange"],["for","disenqcTypes",1,"label","block"],["optionLabel","description","name","disenqcTypes","optionDisabled","inactive",3,"options","ngModel","ngModelChange","onDblClick"],["icon","pi
pi-plus-circle","styleClass","p-button-plain",3,"label","pTooltip","onClick",4,"ngIf"],["for","diseqcRootTrees",1,"label","block"],["optionLabel","Description","name","diseqcRootTrees","optionValue","DiSEqCId",3,"options","ngModel","ngModelChange","onDblClick"],["styleClass","p-button-warnin
g","label","Delete Satellite Devices","icon","pi
pi-trash",3,"onClick",4,"ngIf"],["icon","pi
pi-minus-circle","styleClass","p-button-warning",3,"label","onClick",4,"ngIf"],["severity","error",3,"text",4,"ngIf"],[3,"diseqcTree","diseqcTreeList","dvbComponent","baseEvent",4,"ngIf"],["optionLabel","VideoDevice","name","VideoDevice",3,"options","ngModel","editable","maxlength","ngModelChange","onChange"],["VideoDevice","ngModel"],[1,"p-error","block"],["pInputText","","id","FrontendName","name","FrontendName","disabled","true",1,"mb-2","form-control","w-full",3,"ngModel","ngModelChange"],["FrontendName","ngModel"],["name","InputName",3,"options","ngModel","ngModelChange"],["InputName","ngModel"],["icon","pi
pi-plus-circle","styleClass","p-button-plain",3,"label","onClick"],["icon","pi
pi-times-circle","styleClass","p-button-plain",3,"label","onClick"],["icon","pi
pi-check-circle","styleClass","p-button-plain",3,"label","disabled","onClick"],["icon","pi
pi-plus-circle","styleClass","p-bu
tton-plain",3,"label","pTooltip","onClick"],["styleClass","p-button-warning","label","Delete
Satellite Devices","icon","pi
pi-trash",3,"onClick"],["icon","pi
pi-times-circle","styleClass","p-button-plain",3,"label","click"],["icon","pi
pi-check-circle","styleClass","p-button-plain",3,"label","click"],["icon","pi
pi-minus-circle","styleClass","p-button-warning",3,"label","onClick"],["severity","error",3,"text"],[3,"diseqcTree","diseqcTreeList","dvbComponent","baseEvent"],[1,"grid","nogutter"],[1,"col-12"],["severity","success",3,"text",4,"ngIf"],["icon","pi
pi-save","iconPos","left",1,"col","pr-1",3,"label","disabled","onClick"],["severity","success",3,"text"]],template:function(e,n){1&e&&(l(0,"form",0,1),k(2,"span",null,2),l(4,"p-card",3),_(5,KX,2,3,"ng-template",4),_(6,QX,0,0,"ng-template",5),_(7,mee,117,155,"ng-template",6),_(8,_ee,6,6,"ng-template",7),c()())},styles:[""]}),t})();const
bee=["lnbform"];function
vee(t,i){1&t&&(g(0),m(1,"translate")),2&t&&T("
",f(1,1,"settings.captur
e.diseqc.lnb.title")," ")}function Cee(t,i){}const
TS=function(){return{minWidth:"80%"}};function yee(t,i){if(1&t){const
e=I();l(0,"div",6)(1,"div",7)(2,"div",8)(3,"label",9),g(4),m(5,"translate"),c(),l(6,"input",10,11),C("ngModelChange",function(s){return
v(e),d().diseqcTree.Description=s}),c(),l(8,"small",12),g(9),m(10,"translate"),c()(),l(11,"div",8)(12,"label",13),g(13),m(14,"translate"),c(),l(15,"p-dropdown",14,15),C("ngModelChange",function(s){return
v(e),d().currentPreset=s})("onChange",function(){return
v(e),d().updatePreset()}),c(),l(17,"small",12),g(18),m(19,"translate"),c()(),l(20,"div",8)(21,"label",16),g(22),m(23,"translate"),c(),l(24,"p-dropdown",17,18),C("ngModelChange",function(s){return
v(e),d().currentSubType=s})("onChange",function(){return
v(e),d().updateSubType()}),c(),l(26,"small",12),g(27),m(28,"translate"),c()(),l(29,"div",8)(30,"label",19),g(31),m(32,"translate"),c(),l(33,"p-inputNumber",20),C("ngModelChange",function(s){return
v(e),d().work.LnbLofSwitch=s})
,c(),l(34,"small",12),g(35),m(36,"translate"),c()(),l(37,"div",8)(38,"label",21),g(39),m(40,"translate"),c(),l(41,"p-inputNumber",22),C("ngModelChange",function(s){return
v(e),d().work.LnbLofLo=s}),c(),l(42,"small",12),g(43),m(44,"translate"),c()(),l(45,"div",8)(46,"label",23),g(47),m(48,"translate"),c(),l(49,"p-inputNumber",24),C("ngModelChange",function(s){return
v(e),d().work.LnbLofHi=s}),c(),l(50,"small",12),g(51),m(52,"translate"),c()(),l(53,"div",8)(54,"p-checkbox",25,26),C("ngModelChange",function(s){return
v(e),d().diseqcTree.LnbPolInv=s}),m(56,"translate"),c(),l(57,"small",12),g(58),m(59,"translate"),c()()()()}if(2&t){const
e=d();a(4),S(f(5,41,"settings.capture.diseqc.description_label")),a(2),p("ngModel",e.diseqcTree.Description),a(3),T("
",f(10,43,"settings.capture.diseqc.description_desc"),"
"),a(4),S(f(14,45,"settings.capture.diseqc.lnb.preset_label")),a(2),q(A(69,TS)),p("options",e.lnbPresetList)("ngModel",e.currentPreset)("editable",!1)("maxlength",0)("scrollHeight","
400px"),a(3),T("
",f(19,47,"settings.capture.diseqc.lnb.preset_desc"),"
"),a(4),S(f(23,49,"settings.capture.diseqc.lnb.type_label")),a(2),q(A(70,TS)),p("options",e.lnbSubTypes)("ngModel",e.currentSubType)("editable",!1)("maxlength",0)("disabled","custom"!=e.currentPreset.SubType),a(3),T("
",f(28,51,"settings.capture.diseqc.lnb.type_desc"),"
"),a(4),S(f(32,53,"settings.capture.diseqc.lnb.lofswitch_label")),a(2),p("ngModel",e.work.LnbLofSwitch)("useGrouping",!1)("disabled","custom"!=e.currentPreset.SubType||"voltage_tone"!=e.diseqcTree.SubType),a(2),T("
",f(36,55,"settings.capture.diseqc.lnb.lofswitch_desc"),"
"),a(4),S(f(40,57,"settings.capture.diseqc.lnb.loflow_label")),a(2),p("ngModel",e.work.LnbLofLo)("useGrouping",!1)("disabled","custom"!=e.currentPreset.SubType),a(2),T("
",f(44,59,"settings.capture.diseqc.lnb.loflow_desc"),"
"),a(4),S(f(48,61,"settings.capture.diseqc.lnb.lofhigh_label")),a(2),p("ngModel",e.work.LnbLofHi)("useGrouping",!1)("disabled","custom"!=e.currentPreset.Sub
Type||!("voltage_tone"==e.diseqcTree.SubType||"bandstacked"==e.diseqcTree.SubType)),a(2),T("
",f(52,63,"settings.capture.diseqc.lnb.lofhigh_desc"),"
"),a(3),x("label",f(56,65,"settings.capture.diseqc.lnb.reversed_label")),p("ngModel",e.diseqcTree.LnbPolInv)("binary",!0)("disabled","custom"!=e.currentPreset.SubType),a(4),T("
",f(59,67,"settings.capture.diseqc.lnb.reversed_desc")," ")}}let
kd=(()=>{class
t{constructor(e,n,s){this.captureCardService=e,this.setupService=n,this.translate=s,this.baseEvent=new
H,this.work={LnbLofSwitch:0,LnbLofLo:0,LnbLofHi:0},this.lnbSubTypes=[{Name:"settings.capture.diseqc.subtype_legacy",SubType:"fixed"},{Name:"settings.capture.diseqc.subtype_standard",SubType:"voltage"},{Name:"settings.capture.diseqc.subtype_universal",SubType:"voltage_tone"},{Name:"settings.capture.diseqc.subtype_backstacked",SubType:"bandstacked"}],this.lnbPresetList=[{Name:"settings.capture.diseqc.lnbpreset_universal",SubType:"voltage_tone",LnbLofSwitch:11700,LnbLofLo:9750,LnbLofHi:
10600,LnbPolInv:!1},{Name:"settings.capture.diseqc.lnbpreset_single",SubType:"voltage",LnbLofSwitch:0,LnbLofLo:9750,LnbLofHi:0,LnbPolInv:!1},{Name:"settings.capture.diseqc.lnbpreset_circular",SubType:"voltage",LnbLofSwitch:0,LnbLofLo:11250,LnbLofHi:0,LnbPolInv:!1},{Name:"settings.capture.diseqc.lnbpreset_Linear",SubType:"voltage",LnbLofSwitch:0,LnbLofLo:10750,LnbLofHi:0,LnbPolInv:!1},{Name:"settings.capture.diseqc.lnbpreset_cband",SubType:"voltage",LnbLofSwitch:0,LnbLofLo:5150,LnbLofHi:0,LnbPolInv:!1},{Name:"settings.capture.diseqc.lnbpreset_dishpro",SubType:"bandstacked",LnbLofSwitch:0,LnbLofLo:11250,LnbLofHi:14350,LnbPolInv:!1},{Name:"settings.capture.diseqc.lnbpreset_custom",SubType:"custom",LnbLofSwitch:0,LnbLofLo:0,LnbLofHi:0,LnbPolInv:!1}],this.setupDone=!1,this.lnbSubTypes.forEach(r=>s.get(r.Name).subscribe(o=>r.Name=o)),this.lnbPresetList.forEach(r=>s.get(r.Name).subscribe(o=>r.Name=o))}ngOnInit(){if(this.diseqcTree.DiSEqCId){let
e;this.work.LnbLofSwitch=this.diseqcTree.LnbL
ofSwitch/1e3,this.work.LnbLofLo=this.diseqcTree.LnbLofLo/1e3,this.work.LnbLofHi=this.diseqcTree.LnbLofHi/1e3,e=this.lnbPresetList.find(n=>n.SubType==this.diseqcTree.SubType&&n.LnbLofSwitch==this.work.LnbLofSwitch&&n.LnbLofLo==this.work.LnbLofLo&&n.LnbLofHi==this.work.LnbLofHi&&n.LnbPolInv==this.diseqcTree.LnbPolInv),this.currentPreset=null==e?this.lnbPresetList[this.lnbPresetList.length-1]:e}else
this.currentPreset=this.lnbPresetList[0],this.updatePreset()}ngAfterViewInit(){this.baseEvent.emit(this),this.currentForm.valueChanges.subscribe(n=>{this.setupDone&&this.currentForm.dirty&&this.dvbComponent.currentForm.form.markAsDirty()}),new
Je(n=>{setTimeout(()=>{n.next(1),n.complete()},100)}).subscribe(n=>{this.setupDone=!0,this.diseqcTree.DiSEqCId?this.currentForm.form.markAsPristine():(this.currentForm.form.markAsDirty(),this.dvbComponent.currentForm.form.markAsDirty())})}updatePreset(){if("custom"!=this.currentPreset.SubType){let
e=this.lnbSubTypes.find(n=>n.SubType==this.currentPres
et.SubType);e&&(this.currentSubType=e,this.updateSubType()),this.work.LnbLofSwitch=this.currentPreset.LnbLofSwitch,this.work.LnbLofLo=this.currentPreset.LnbLofLo,this.work.LnbLofHi=this.currentPreset.LnbLofHi,this.diseqcTree.LnbPolInv=this.currentPreset.LnbPolInv}}updateSubType(){this.diseqcTree.SubType=this.currentSubType.SubType}saveForm(e,n){this.diseqcTree.ParentId=e,this.diseqcTree.LnbLofSwitch=1e3*this.work.LnbLofSwitch,this.diseqcTree.LnbLofLo=1e3*this.work.LnbLofLo,this.diseqcTree.LnbLofHi=1e3*this.work.LnbLofHi,this.diseqcTree.DiSEqCId?this.captureCardService.UpdateDiseqcTree(this.diseqcTree).subscribe(n):this.captureCardService.AddDiseqcTree(this.diseqcTree).subscribe({next:s=>{s.int&&s.int>0?(this.diseqcTree.DiSEqCId=s.int,n.next&&n.next(s)):(console.log("UpdateDiseqcTree",s),n.error(s))},error:s=>{console.log("UpdateDiseqcTree",s),n.error(s)}})}}return
t.\u0275fac=function(e){return
new(e||t)(D(Gt),D(Me),D(Oe))},t.\u0275cmp=z({type:t,selectors:[["app-lnb"]],viewQuery:fun
ction(e,n){if(1&e&&W(bee,5),2&e){let
s;V(s=B())&&(n.currentForm=s.first)}},inputs:{diseqcTree:"diseqcTree",diseqcTreeList:"diseqcTreeList",dvbComponent:"dvbComponent"},outputs:{baseEvent:"baseEvent"},decls:6,vars:0,consts:[["name","lnbform",1,"ml-3","mr-3"],["lnbform","ngForm"],[1,"m-5"],["pTemplate","title"],["pTemplate","subtitle"],["pTemplate","content"],[1,"grid"],[1,"mb-4","w-full"],[1,"form-group","field"],["for","Description",1,"label","block"],["pInputText","","id","ip","name","Description",1,"mb-2","form-control","w-full",3,"ngModel","ngModelChange"],["Description","ngModel"],[1,"block"],["for","LnbPreset",1,"label","block"],["optionLabel","Name","name","LnbPreset",3,"options","ngModel","editable","maxlength","scrollHeight","ngModelChange","onChange"],["LnbPreset","ngModel"],["for","SubType",1,"label","block"],["optionLabel","Name","name","SubType",3,"options","ngModel","editable","maxlength","disabled","ngModelChange","onChange"],["SubType","ngModel"],["for","LnbLofSwitch"
,1,"label","block"],["name","LnbLofSwitch","id","LnbLofSwitch","mode","decimal","inputId","withoutgrouping",3,"ngModel","useGrouping","disabled","ngModelChange"],["for","LnbLofLo",1,"label","block"],["name","LnbLofLo","id","LnbLofLo","mode","decimal","inputId","withoutgrouping",3,"ngModel","useGrouping","disabled","ngModelChange"],["for","LnbLofHi",1,"label","block"],["name","LnbLofHi","id","LnbLofHi","mode","decimal","inputId","withoutgrouping",3,"ngModel","useGrouping","disabled","ngModelChange"],["inputId","LnbPolInv","name","LnbPolInv",1,"label","mb-2","w-full",3,"ngModel","binary","label","disabled","ngModelChange"],["LnbPolInv","ngModel"]],template:function(e,n){1&e&&(l(0,"form",0,1)(2,"p-card",2),_(3,vee,2,3,"ng-template",3),_(4,Cee,0,0,"ng-template",4),_(5,yee,60,71,"ng-template",5),c()())},directives:[ze,Ue,He,Ne,ne,Ye,Te,_e,Ot,_n,pt,sn],pipes:[ce],styles:[""]}),t})();const
wee=["rotorform"];function
Tee(t,i){1&t&&(g(0),m(1,"translate")),2&t&&T("
",f(1,1,"settings.capture.d
iseqc.rotor.title")," ")}function See(t,i){}function
xee(t,i){1&t&&(l(0,"tr")(1,"th"),g(2,"Position
#"),c(),l(3,"th"),g(4,"Angle (Degrees)"),c()())}function
Dee(t,i){if(1&t){const
e=I();l(0,"p-inputNumber",43),C("ngModelChange",function(s){return
v(e),d().$implicit.Angle=s}),c()}2&t&&p("ngModel",d().$implicit.Angle)("min",-180)("max",180)("maxFractionDigits",5)}function
Mee(t,i){if(1&t&&(l(0,"div"),g(1),c()),2&t){const
e=d(2).$implicit;a(1),T("",e.Angle," (W)")}}function
kee(t,i){if(1&t&&(l(0,"div"),g(1),c()),2&t){const
e=d(2).$implicit;a(1),T(" ",e.Angle," (E)")}}function
Iee(t,i){if(1&t&&(_(0,Mee,2,1,"div",44),_(1,kee,2,1,"div",44)),2&t){const
e=d().$implicit;p("ngIf",e.Angle<0),a(1),p("ngIf",null!=e.Angle&&e.Angle>=0)}}function
Eee(t,i){if(1&t&&(l(0,"tr")(1,"td"),g(2),c(),l(3,"td",40)(4,"p-cellEditor"),_(5,Dee,1,4,"ng-template",41),_(6,Iee,2,2,"ng-template",42),c()()()),2&t){const
e=i.$implicit;a(2),T(" ",e.Num," ")}}const
SS=function(){return{width:"25rem"}};function Ree(t,i){if
(1&t&&(l(0,"div",8)(1,"label",36),g(2),m(3,"translate"),c(),l(4,"div")(5,"p-table",37),_(6,xee,5,0,"ng-template",38),_(7,Eee,7,1,"ng-template",39),c()(),l(8,"small",12),g(9),m(10,"translate"),c()()),2&t){const
e=d(2);a(2),S(f(3,6,"settings.capture.diseqc.rotor.positions_label")),a(2),q(A(10,SS)),a(1),p("value",e.rotorPositions)("scrollable",!0),a(4),T("
",f(10,8,"settings.capture.diseqc.rotor.positions_desc"),"
")}}function Lee(t,i){if(1&t){const
e=I();l(0,"p-button",45),C("onClick",function(){return
v(e),d(2).work.displayNewDiseqc=!0}),m(1,"translate"),c()}2&t&&x("label",f(1,1,"settings.capture.dvb.newsatellite_button"))}function
Oee(t,i){if(1&t){const
e=I();l(0,"p-button",46),C("onClick",function(){return
v(e),d(2).work.displayNewDiseqc=!1}),m(1,"translate"),c(),l(2,"p-button",47),C("onClick",function(){return
v(e),d(2).newDiseqc()}),m(3,"translate"),c()}if(2&t){const
e=d(2);x("label",f(1,3,"common.cancel")),a(2),x("label",f(3,5,"common.ok")),p("disabled",e.selectedDiseqcType.inac
tive)}}function Aee(t,i){if(1&t){const
e=I();l(0,"p-button",48),C("onClick",function(){return
v(e),d(2).work.displayDeleteDiseqc=!0}),c()}2&t&&p("disabled",!d(2).diseqcSubTree)}function
Pee(t,i){if(1&t){const
e=I();l(0,"p-button",49),C("click",function(){return
v(e),d(2).work.displayDeleteDiseqc=!1}),m(1,"translate"),c(),l(2,"p-button",50),C("click",function(){return
v(e),d(2).deleteDiseqc()}),m(3,"translate"),c()}2&t&&(x("label",f(1,2,"common.no")),a(2),x("label",f(3,4,"common.yes")))}function
Fee(t,i){if(1&t){const
e=I();l(0,"app-lnb",51),C("baseEvent",function(s){return
v(e),d(2).setDiseqcObject(s)}),c()}if(2&t){const
e=d(2);p("diseqcTree",e.diseqcSubTree)("diseqcTreeList",e.diseqcTreeList)("dvbComponent",e.dvbComponent)}}function
Nee(t,i){if(1&t){const
e=I();l(0,"app-rotor",51),C("baseEvent",function(s){return
v(e),d(2).setDiseqcObject(s)}),c()}if(2&t){const
e=d(2);p("diseqcTree",e.diseqcSubTree)("diseqcTreeList",e.diseqcTreeList)("dvbComponent",e.dvbComponent)}}function
Vee(t,i
){if(1&t){const
e=I();l(0,"app-switch",51),C("baseEvent",function(s){return
v(e),d(2).setDiseqcObject(s)}),c()}if(2&t){const
e=d(2);p("diseqcTree",e.diseqcSubTree)("diseqcTreeList",e.diseqcTreeList)("dvbComponent",e.dvbComponent)}}function
Bee(t,i){if(1&t){const
e=I();l(0,"app-unicable",51),C("baseEvent",function(s){return
v(e),d(2).setDiseqcObject(s)}),c()}if(2&t){const
e=d(2);p("diseqcTree",e.diseqcSubTree)("diseqcTreeList",e.diseqcTreeList)("dvbComponent",e.dvbComponent)}}const
Hee=function(){return{minWidth:"80%"}},xS=function(){return{width:"50vw"}};function
qee(t,i){if(1&t){const
e=I();l(0,"div",6)(1,"div",7)(2,"div",8)(3,"label",9),g(4),m(5,"translate"),c(),l(6,"input",10,11),C("ngModelChange",function(s){return
v(e),d().diseqcTree.Description=s}),c(),l(8,"small",12),g(9),m(10,"translate"),c()(),l(11,"div",8)(12,"label",13),g(13),m(14,"translate"),c(),l(15,"p-inputNumber",14),C("ngModelChange",function(s){return
v(e),d().diseqcTree.CmdRepeat=s}),c(),l(16,"small",12),k(17,"div
",15),m(18,"translate"),c()(),l(19,"div",8)(20,"label",16),g(21),m(22,"translate"),c(),l(23,"p-dropdown",17,18),C("ngModelChange",function(s){return
v(e),d().currentSubType=s})("onChange",function(){return
v(e),d().updateSubType()}),c(),l(25,"small",12),g(26),m(27,"translate"),c()(),_(28,Ree,11,11,"div",19),l(29,"div",8)(30,"label",20),g(31),m(32,"translate"),c(),l(33,"p-inputNumber",21),C("ngModelChange",function(s){return
v(e),d().diseqcTree.RotorLoSpeed=s}),c(),l(34,"small",12),g(35),m(36,"translate"),c()(),l(37,"div",8)(38,"label",22),g(39),m(40,"translate"),c(),l(41,"p-inputNumber",23),C("ngModelChange",function(s){return
v(e),d().diseqcTree.RotorHiSpeed=s}),c(),l(42,"small",12),g(43),m(44,"translate"),c()(),l(45,"div",8)(46,"label",24),g(47),m(48,"translate"),c(),l(49,"p-inputNumber",25),C("ngModelChange",function(s){return
v(e),d().fields.Latitude=s}),c(),l(50,"small",12),g(51),m(52,"translate"),c()(),l(53,"div",8)(54,"label",26),g(55),m(56,"translate"),c(),l(57,"p-inputNumbe
r",27),C("ngModelChange",function(s){return
v(e),d().fields.Longitude=s}),c(),l(58,"small",12),g(59),m(60,"translate"),c()(),l(61,"p-fieldset",28),m(62,"translate"),_(63,Lee,2,3,"p-button",29),l(64,"p-dialog",30),C("visibleChange",function(s){return
v(e),d().work.displayNewDiseqc=s}),m(65,"translate"),l(66,"label",31),g(67),m(68,"translate"),c(),l(69,"p-listbox",32),C("ngModelChange",function(s){return
v(e),d().selectedDiseqcType=s})("onDblClick",function(){return
v(e),d().newDiseqc()}),c(),_(70,Oee,4,7,"ng-template",33),c(),_(71,Aee,1,1,"p-button",34),l(72,"p-dialog",30),C("visibleChange",function(s){return
v(e),d().work.displayDeleteDiseqc=s}),m(73,"translate"),l(74,"h2"),g(75),m(76,"translate"),c(),l(77,"p"),g(78),m(79,"translate"),c(),_(80,Pee,4,6,"ng-template",33),c(),_(81,Fee,1,3,"app-lnb",35),_(82,Nee,1,3,"app-rotor",35),_(83,Vee,1,3,"app-switch",35),_(84,Bee,1,3,"app-unicable",35),c()()()}if(2&t){const
e=d();a(4),S(f(5,65,"settings.capture.diseqc.description_label")),a(2),p(
"ngModel",e.diseqcTree.Description),a(3),T("
",f(10,67,"settings.capture.diseqc.description_desc"),"
"),a(4),S(f(14,69,"settings.capture.diseqc.cmdrepeat_label")),a(2),p("ngModel",e.diseqcTree.CmdRepeat)("showButtons",!0)("min",0)("max",15)("step",1),a(2),p("innerHTML",f(18,71,"settings.capture.diseqc.cmdrepeat_desc"),Bt),a(2),q(A(105,SS)),a(2),S(f(22,73,"settings.capture.diseqc.rotor.type_label")),a(2),q(A(106,Hee)),p("options",e.rotorSubTypes)("ngModel",e.currentSubType)("editable",!1)("maxlength",0),a(3),T("
",f(27,75,"settings.capture.diseqc.rotor.type_desc"),"
"),a(2),p("ngIf","diseqc_1_2"==e.diseqcTree.SubType),a(3),S(f(32,77,"settings.capture.diseqc.rotor.lospeed_label")),a(2),p("ngModel",e.diseqcTree.RotorLoSpeed)("maxFractionDigits",5),a(2),T("
",f(36,79,"settings.capture.diseqc.rotor.lospeed_desc"),"
"),a(4),S(f(40,81,"settings.capture.diseqc.rotor.hispeed_label")),a(2),p("ngModel",e.diseqcTree.RotorHiSpeed)("maxFractionDigits",5),a(2),T("
",f(44,83,"settings.capture.diseq
c.rotor.hispeed_desc"),"
"),a(4),S(f(48,85,"settings.capture.diseqc.rotor.latitude_label")),a(2),p("ngModel",e.fields.Latitude)("maxFractionDigits",5),a(2),T("
",f(52,87,"settings.capture.diseqc.rotor.latitude_desc"),"
"),a(4),S(f(56,89,"settings.capture.diseqc.rotor.longitude_label")),a(2),p("ngModel",e.fields.Longitude)("maxFractionDigits",5),a(2),T("
",f(60,91,"settings.capture.diseqc.rotor.longitude_desc"),"
"),a(2),x("legend",f(62,93,"settings.capture.dvb.satellite_heading")),p("toggleable",!0)("collapsed",!0),a(2),p("ngIf",!e.diseqcSubTree),a(1),q(A(107,xS)),x("header",f(65,95,"settings.capture.dvb.newsatellite_heading")),p("visible",e.work.displayNewDiseqc)("modal",!0)("draggable",!1)("resizable",!1),a(3),S(f(68,97,"settings.capture.dvb.newsatellite_devtype")),a(2),p("options",e.captureCardService.diseqcTypes)("ngModel",e.selectedDiseqcType),a(2),p("ngIf",e.diseqcSubTree),a(1),q(A(108,xS)),x("header",f(73,99,"settings.capture.dvb.satellite_delete_header")),p("visible",e.work.
displayDeleteDiseqc)("modal",!0)("draggable",!1)("resizable",!1),a(3),S(f(76,101,"settings.common.ru_sure")),a(3),S(f(79,103,"settings.capture.dvb.satellite_delete_desc")),a(3),p("ngIf",e.diseqcSubTree&&"lnb"==e.diseqcSubTree.Type),a(1),p("ngIf",e.diseqcSubTree&&"rotor"==e.diseqcSubTree.Type),a(1),p("ngIf",e.diseqcSubTree&&"switch"==e.diseqcSubTree.Type),a(1),p("ngIf",e.diseqcSubTree&&"scr"==e.diseqcSubTree.Type)}}let
Al=(()=>{class
t{constructor(e,n,s,r){this.captureCardService=e,this.setupService=n,this.translate=s,this.mythService=r,this.baseEvent=new
H,this.rotorSubTypes=[{Name:"settings.capture.diseqc.subtype_diseqc_1_2",SubType:"diseqc_1_2"},{Name:"settings.capture.diseqc.subtype_diseqc_1_3",SubType:"diseqc_1_3"}],this.selectedDiseqcType={description:"",type:"",inactive:!0},this.rotorPositions=[],this.fields={Latitude:null,Longitude:null},this.work={displayNewDiseqc:!1,displayDeleteDiseqc:!1},this.setupDone=!1,this.rotorSubTypes.forEach(o=>s.get(o.Name).subscribe(u=>o.Name=u))
}ngOnInit(){this.mythService.GetSetting({HostName:"_GLOBAL_",Key:"latitude"}).subscribe({next:e=>{e.String.length>0&&(this.fields.Latitude=Number(e.String))},error:()=>this.dvbComponent.work.errorCount++}),this.mythService.GetSetting({HostName:"_GLOBAL_",Key:"longitude"}).subscribe({next:e=>{e.String.length>0&&(this.fields.Longitude=Number(e.String))},error:()=>this.dvbComponent.work.errorCount++});for(let
e=0;e<48;e++)this.rotorPositions.push({Num:e+1,Angle:null});if(this.diseqcTree.DiSEqCId?this.diseqcTree.RotorPositions.split(":").forEach(n=>{let
s=n.split("=");if(2==s.length&&s[0].length>0&&s[1].length>0){let
r=Number.parseInt(s[1])-1,o=Number.parseFloat(s[0]);r>-1&&r<48&&(this.rotorPositions[r].Angle=o)}}):(this.diseqcTree.RotorHiSpeed=2.5,this.diseqcTree.RotorLoSpeed=1.9,this.diseqcTree.SubType="diseqc_1_3",this.diseqcTree.CmdRepeat=1),this.diseqcTree.SubType){let
e=this.rotorSubTypes.find(n=>n.SubType==this.diseqcTree.SubType);e&&(this.currentSubType=e)}this.diseqcSubTree=thi
s.diseqcTreeList.DiseqcTreeList.DiseqcTrees.find(e=>e.ParentId==this.diseqcTree.DiSEqCId)}ngAfterViewInit(){this.baseEvent.emit(this),this.currentForm.valueChanges.subscribe(n=>{this.setupDone&&this.currentForm.dirty&&this.dvbComponent.currentForm.form.markAsDirty()}),new
Je(n=>{setTimeout(()=>{n.next(1),n.complete()},100)}).subscribe(n=>{this.setupDone=!0,this.diseqcTree.DiSEqCId?this.currentForm.form.markAsPristine():(this.currentForm.form.markAsDirty(),this.dvbComponent.currentForm.form.markAsDirty())})}updateSubType(){this.diseqcTree.SubType=this.currentSubType.SubType}newDiseqc(){this.work.displayNewDiseqc=!1,this.diseqcSubTree={Type:this.selectedDiseqcType.type,Description:this.selectedDiseqcType.description}}setDiseqcObject(e){this.diseqcSubComponent=e}deleteDiseqc(){this.work.displayDeleteDiseqc=!1,this.dvbComponent.work.errorCount=0,this.diseqcSubTree&&this.diseqcSubTree.DiSEqCId&&this.captureCardService.DeleteDiseqcTree(this.diseqcSubTree.DiSEqCId).subscribe({next:e=>{e.bo
ol||(console.log("DeleteDiseqcTree",e),this.dvbComponent.work.errorCount++)},error:e=>{console.log("DeleteDiseqcTree",e),this.dvbComponent.work.errorCount++}}),0==this.dvbComponent.work.errorCount&&(this.diseqcSubTree=void
0)}saveForm(e,n){this.diseqcTree.ParentId=e,null!=this.fields.Latitude&&this.mythService.PutSetting({HostName:"_GLOBAL_",Key:"latitude",Value:String(this.fields.Latitude)}).subscribe(this.dvbComponent.saveObserver),null!=this.fields.Longitude&&this.mythService.PutSetting({HostName:"_GLOBAL_",Key:"longitude",Value:String(this.fields.Longitude)}).subscribe(this.dvbComponent.saveObserver),this.diseqcTree.RotorPositions="",this.rotorPositions.forEach(s=>{null!=s.Angle&&(this.diseqcTree.RotorPositions.length>0&&(this.diseqcTree.RotorPositions=this.diseqcTree.RotorPositions+":"),this.diseqcTree.RotorPositions=this.diseqcTree.RotorPositions+s.Angle+"="+s.Num)}),this.diseqcTree.DiSEqCId?(this.captureCardService.UpdateDiseqcTree(this.diseqcTree).subscribe(n),this.diseqcSub
Component&&this.diseqcSubComponent.saveForm(this.diseqcTree.DiSEqCId,{error:s=>{n.error(s)}})):this.captureCardService.AddDiseqcTree(this.diseqcTree).subscribe({next:s=>{s.int&&s.int>0?(this.diseqcTree.DiSEqCId=s.int,n.next(s),this.diseqcSubComponent&&this.diseqcSubComponent.saveForm(this.diseqcTree.DiSEqCId,{next:r=>{},error:r=>{n.error(r)}})):(console.log("UpdateDiseqcTree",s),n.error(s))},error:s=>{console.log("UpdateDiseqcTree",s),n.error(s)}})}}return
t.\u0275fac=function(e){return
new(e||t)(D(Gt),D(Me),D(Oe),D(qt))},t.\u0275cmp=z({type:t,selectors:[["app-rotor"]],viewQuery:function(e,n){if(1&e&&W(wee,5),2&e){let
s;V(s=B())&&(n.currentForm=s.first)}},inputs:{diseqcTree:"diseqcTree",diseqcTreeList:"diseqcTreeList",dvbComponent:"dvbComponent"},outputs:{baseEvent:"baseEvent"},decls:6,vars:0,consts:[["name","rotorform",1,"ml-3","mr-3"],["rotorform","ngForm"],[1,"m-5"],["pTemplate","title"],["pTemplate","subtitle"],["pTemplate","content"],[1,"grid"],[1,"mb-4","w-full"],[1,"form-grou
p","field"],["for","Description",1,"label","block"],["pInputText","","id","ip","name","Description",1,"mb-2","form-control","w-full",3,"ngModel","ngModelChange"],["Description","ngModel"],[1,"block"],["for","CmdRepeat",1,"label","block"],["name","CmdRepeat","id","CmdRepeat",3,"ngModel","showButtons","min","max","step","ngModelChange"],[3,"innerHTML"],["for","SubType",1,"label","block"],["optionLabel","Name","name","SubType",3,"options","ngModel","editable","maxlength","ngModelChange","onChange"],["SubType","ngModel"],["class","form-group
field",4,"ngIf"],["for","RotorLoSpeed",1,"label","block"],["name","RotorLoSpeed","id","RotorLoSpeed","mode","decimal",3,"ngModel","maxFractionDigits","ngModelChange"],["for","RotorHiSpeed",1,"label","block"],["name","RotorHiSpeed","id","RotorHiSpeed","mode","decimal",3,"ngModel","maxFractionDigits","ngModelChange"],["for","Latitude",1,"label","block"],["name","Latitude","id","Latitude","mode","decimal",3,"ngModel","maxFractionDigits","ngModelChange"
],["for","Longitude",1,"label","block"],["name","Longitude","id","Longitude","mode","decimal",3,"ngModel","maxFractionDigits","ngModelChange"],[1,"mb-4","w-full",3,"legend","toggleable","collapsed"],["icon","pi
pi-plus-circle","styleClass","p-button-plain",3,"label","onClick",4,"ngIf"],[3,"header","visible","modal","draggable","resizable","visibleChange"],["for","disenqcTypes",1,"label","block"],["optionLabel","description","name","disenqcTypes","optionDisabled","inactive",3,"options","ngModel","ngModelChange","onDblClick"],["pTemplate","footer"],["styleClass","p-button-warning","label","Delete
Satellite Devices","icon","pi
pi-trash",3,"disabled","onClick",4,"ngIf"],[3,"diseqcTree","diseqcTreeList","dvbComponent","baseEvent",4,"ngIf"],["for","RotorPositions",1,"label","block"],["dataKey","Num","responsiveLayout","scroll","name","RotorPositions","styleClass","p-datatable-gridlines","scrollHeight","20rem",3,"value","scrollable"],["pTemplate","header"],["pTemplate","body"],["pEditableC
olumn",""],["pTemplate","input"],["pTemplate","output"],["name","Angle",3,"ngModel","min","max","maxFractionDigits","ngModelChange"],[4,"ngIf"],["icon","pi
pi-plus-circle","styleClass","p-button-plain",3,"label","onClick"],["icon","pi
pi-times-circle","styleClass","p-button-plain",3,"label","onClick"],["icon","pi
pi-check-circle","styleClass","p-button-plain",3,"label","disabled","onClick"],["styleClass","p-button-warning","label","Delete
Satellite Devices","icon","pi
pi-trash",3,"disabled","onClick"],["icon","pi
pi-times-circle","styleClass","p-button-plain",3,"label","click"],["icon","pi
pi-check-circle","styleClass","p-button-plain",3,"label","click"],[3,"diseqcTree","diseqcTreeList","dvbComponent","baseEvent"]],template:function(e,n){1&e&&(l(0,"form",0,1)(2,"p-card",2),_(3,Tee,2,3,"ng-template",3),_(4,See,0,0,"ng-template",4),_(5,qee,85,109,"ng-template",5),c()())},styles:[""]}),t})();const
Gee=["unicableform"];function
Uee(t,i){1&t&&(g(0),m(1,"translate")),2&t&&T("
",f(1,1,"set
tings.capture.diseqc.unicable.title")," ")}function zee(t,i){}function
jee(t,i){if(1&t){const
e=I();l(0,"p-button",30),C("onClick",function(){return
v(e),d(2).work.displayNewDiseqc=!0}),m(1,"translate"),c()}2&t&&x("label",f(1,1,"settings.capture.dvb.newsatellite_button"))}function
$ee(t,i){if(1&t){const
e=I();l(0,"p-button",31),C("onClick",function(){return
v(e),d(2).work.displayNewDiseqc=!1}),m(1,"translate"),c(),l(2,"p-button",32),C("onClick",function(){return
v(e),d(2).newDiseqc()}),m(3,"translate"),c()}if(2&t){const
e=d(2);x("label",f(1,3,"common.cancel")),a(2),x("label",f(3,5,"common.ok")),p("disabled",e.selectedDiseqcType.inactive)}}function
Wee(t,i){if(1&t){const
e=I();l(0,"p-button",33),C("onClick",function(){return
v(e),d(2).work.displayDeleteDiseqc=!0}),c()}2&t&&p("disabled",!d(2).diseqcSubTree)}function
Kee(t,i){if(1&t){const
e=I();l(0,"p-button",34),C("click",function(){return
v(e),d(2).work.displayDeleteDiseqc=!1}),m(1,"translate"),c(),l(2,"p-button",35),C("click",funct
ion(){return
v(e),d(2).deleteDiseqc()}),m(3,"translate"),c()}2&t&&(x("label",f(1,2,"common.no")),a(2),x("label",f(3,4,"common.yes")))}function
Qee(t,i){if(1&t){const
e=I();l(0,"app-lnb",36),C("baseEvent",function(s){return
v(e),d(2).setDiseqcObject(s)}),c()}if(2&t){const
e=d(2);p("diseqcTree",e.diseqcSubTree)("diseqcTreeList",e.diseqcTreeList)("dvbComponent",e.dvbComponent)}}function
Jee(t,i){if(1&t){const
e=I();l(0,"app-rotor",36),C("baseEvent",function(s){return
v(e),d(2).setDiseqcObject(s)}),c()}if(2&t){const
e=d(2);p("diseqcTree",e.diseqcSubTree)("diseqcTreeList",e.diseqcTreeList)("dvbComponent",e.dvbComponent)}}function
Yee(t,i){if(1&t){const
e=I();l(0,"app-switch",36),C("baseEvent",function(s){return
v(e),d(2).setDiseqcObject(s)}),c()}if(2&t){const
e=d(2);p("diseqcTree",e.diseqcSubTree)("diseqcTreeList",e.diseqcTreeList)("dvbComponent",e.dvbComponent)}}function
Zee(t,i){if(1&t){const
e=I();l(0,"app-unicable",36),C("baseEvent",function(s){return
v(e),d(2).setDiseqcObject(s)}),c
()}if(2&t){const
e=d(2);p("diseqcTree",e.diseqcSubTree)("diseqcTreeList",e.diseqcTreeList)("dvbComponent",e.dvbComponent)}}const
DS=function(){return{width:"50vw"}};function Xee(t,i){if(1&t){const
e=I();l(0,"div",6)(1,"div",7)(2,"div",8)(3,"label",9),g(4),m(5,"translate"),c(),l(6,"input",10,11),C("ngModelChange",function(s){return
v(e),d().diseqcTree.Description=s}),c(),l(8,"small",12),g(9),m(10,"translate"),c()(),l(11,"div",8)(12,"label",13),g(13),m(14,"translate"),c(),l(15,"p-inputNumber",14),C("ngModelChange",function(s){return
v(e),d().diseqcTree.ScrUserband=s}),c(),l(16,"small",12),k(17,"div",15),m(18,"translate"),c()(),l(19,"div",8)(20,"label",16),g(21),m(22,"translate"),c(),l(23,"p-inputNumber",17),C("ngModelChange",function(s){return
v(e),d().diseqcTree.ScrFrequency=s}),c(),l(24,"small",12),g(25),m(26,"translate"),c()(),l(27,"div",8)(28,"label",18),g(29),m(30,"translate"),c(),l(31,"p-inputNumber",19),C("ngModelChange",function(s){return
v(e),d().diseqcTree.ScrPin=s}),c(),l(3
2,"small",12),g(33),m(34,"translate"),c()(),l(35,"div",8)(36,"label",20),g(37),m(38,"translate"),c(),l(39,"p-inputNumber",21),C("ngModelChange",function(s){return
v(e),d().diseqcTree.CmdRepeat=s}),c(),l(40,"small",12),k(41,"div",15),m(42,"translate"),c()(),l(43,"p-fieldset",22),m(44,"translate"),_(45,jee,2,3,"p-button",23),l(46,"p-dialog",24),C("visibleChange",function(s){return
v(e),d().work.displayNewDiseqc=s}),m(47,"translate"),l(48,"label",25),g(49),m(50,"translate"),c(),l(51,"p-listbox",26),C("ngModelChange",function(s){return
v(e),d().selectedDiseqcType=s})("onDblClick",function(){return
v(e),d().newDiseqc()}),c(),_(52,$ee,4,7,"ng-template",27),c(),_(53,Wee,1,1,"p-button",28),l(54,"p-dialog",24),C("visibleChange",function(s){return
v(e),d().work.displayDeleteDiseqc=s}),m(55,"translate"),l(56,"h2"),g(57),m(58,"translate"),c(),l(59,"p"),g(60),m(61,"translate"),c(),_(62,Kee,4,6,"ng-template",27),c(),_(63,Qee,1,3,"app-lnb",29),_(64,Jee,1,3,"app-rotor",29),_(65,Yee,1,3,"app-switch"
,29),_(66,Zee,1,3,"app-unicable",29),c()()()}if(2&t){const
e=d();a(4),S(f(5,55,"settings.capture.diseqc.description_label")),a(2),p("ngModel",e.diseqcTree.Description),a(3),T("
",f(10,57,"settings.capture.diseqc.description_desc"),"
"),a(4),S(f(14,59,"settings.capture.diseqc.unicable.userband_label")),a(2),p("ngModel",e.diseqcTree.ScrUserband)("showButtons",!0)("min",0)("max",7)("step",1),a(2),p("innerHTML",f(18,61,"settings.capture.diseqc.userband_desc"),Bt),a(4),S(f(22,63,"settings.capture.diseqc.unicable.frequency_label")),a(2),p("ngModel",e.diseqcTree.ScrFrequency)("useGrouping",!1),a(2),T("
",f(26,65,"settings.capture.diseqc.unicable.frequency_desc"),"
"),a(4),S(f(30,67,"settings.capture.diseqc.unicable.pin_label")),a(2),p("ngModel",e.diseqcTree.ScrPin)("useGrouping",!1)("min",-1)("max",255),a(2),T("
",f(34,69,"settings.capture.diseqc.unicable.pin_desc"),"
"),a(4),S(f(38,71,"settings.capture.diseqc.cmdrepeat_label")),a(2),p("ngModel",e.diseqcTree.CmdRepeat)("showButtons",!0)("m
in",0)("max",15)("step",1),a(2),p("innerHTML",f(42,73,"settings.capture.diseqc.cmdrepeat_desc"),Bt),a(2),x("legend",f(44,75,"settings.capture.dvb.satellite_heading")),p("toggleable",!0)("collapsed",!0),a(2),p("ngIf",!e.diseqcSubTree),a(1),q(A(87,DS)),x("header",f(47,77,"settings.capture.dvb.newsatellite_heading")),p("visible",e.work.displayNewDiseqc)("modal",!0)("draggable",!1)("resizable",!1),a(3),S(f(50,79,"settings.capture.dvb.newsatellite_devtype")),a(2),p("options",e.captureCardService.diseqcTypes)("ngModel",e.selectedDiseqcType),a(2),p("ngIf",e.diseqcSubTree),a(1),q(A(88,DS)),x("header",f(55,81,"settings.capture.dvb.satellite_delete_header")),p("visible",e.work.displayDeleteDiseqc)("modal",!0)("draggable",!1)("resizable",!1),a(3),S(f(58,83,"settings.common.ru_sure")),a(3),S(f(61,85,"settings.capture.dvb.satellite_delete_desc")),a(3),p("ngIf",e.diseqcSubTree&&"lnb"==e.diseqcSubTree.Type),a(1),p("ngIf",e.diseqcSubTree&&"rotor"==e.diseqcSubTree.Type),a(1),p("ngIf",e.diseqcSubTree
&&"switch"==e.diseqcSubTree.Type),a(1),p("ngIf",e.diseqcSubTree&&"scr"==e.diseqcSubTree.Type)}}let
Pl=(()=>{class
t{constructor(e){this.captureCardService=e,this.selectedDiseqcType={description:"",type:"",inactive:!0},this.baseEvent=new
H,this.work={displayNewDiseqc:!1,displayDeleteDiseqc:!1},this.setupDone=!1}ngOnInit(){this.diseqcTree.DiSEqCId||(this.diseqcTree.ScrUserband=0,this.diseqcTree.ScrFrequency=1210,this.diseqcTree.ScrPin=-1,this.diseqcTree.CmdRepeat=1),this.diseqcSubTree=this.diseqcTreeList.DiseqcTreeList.DiseqcTrees.find(e=>e.ParentId==this.diseqcTree.DiSEqCId)}ngAfterViewInit(){this.baseEvent.emit(this),this.currentForm.valueChanges.subscribe(n=>{this.setupDone&&this.currentForm.dirty&&this.dvbComponent.currentForm.form.markAsDirty()}),new
Je(n=>{setTimeout(()=>{n.next(1),n.complete()},100)}).subscribe(n=>{this.setupDone=!0,this.diseqcTree.DiSEqCId?this.currentForm.form.markAsPristine():(this.currentForm.form.markAsDirty(),this.dvbComponent.currentForm.form.markAsDirty
())})}newDiseqc(){this.work.displayNewDiseqc=!1,this.diseqcSubTree={Type:this.selectedDiseqcType.type,Description:this.selectedDiseqcType.description}}setDiseqcObject(e){this.diseqcSubComponent=e}deleteDiseqc(){this.work.displayDeleteDiseqc=!1,this.dvbComponent.work.errorCount=0,this.diseqcSubTree&&this.diseqcSubTree.DiSEqCId&&this.captureCardService.DeleteDiseqcTree(this.diseqcSubTree.DiSEqCId).subscribe({next:e=>{e.bool||(console.log("DeleteDiseqcTree",e),this.dvbComponent.work.errorCount++)},error:e=>{console.log("DeleteDiseqcTree",e),this.dvbComponent.work.errorCount++}}),0==this.dvbComponent.work.errorCount&&(this.diseqcSubTree=void
0)}saveForm(e,n){this.diseqcTree.ParentId=e,this.diseqcTree.DiSEqCId?(this.captureCardService.UpdateDiseqcTree(this.diseqcTree).subscribe(n),this.diseqcSubComponent&&this.diseqcSubComponent.saveForm(this.diseqcTree.DiSEqCId,{error:s=>{n.error(s)}})):this.captureCardService.AddDiseqcTree(this.diseqcTree).subscribe({next:s=>{s.int&&s.int>0?(this.diseq
cTree.DiSEqCId=s.int,n.next&&n.next(s),this.diseqcSubComponent&&this.diseqcSubComponent.saveForm(this.diseqcTree.DiSEqCId,{next:r=>{},error:r=>{n.error(r)}})):(console.log("UpdateDiseqcTree",s),n.error(s))},error:s=>{console.log("UpdateDiseqcTree",s),n.error(s)}})}}return
t.\u0275fac=function(e){return
new(e||t)(D(Gt))},t.\u0275cmp=z({type:t,selectors:[["app-unicable"]],viewQuery:function(e,n){if(1&e&&W(Gee,5),2&e){let
s;V(s=B())&&(n.currentForm=s.first)}},inputs:{diseqcTree:"diseqcTree",diseqcTreeList:"diseqcTreeList",dvbComponent:"dvbComponent"},outputs:{baseEvent:"baseEvent"},decls:6,vars:0,consts:[["name","unicableform",1,"ml-3","mr-3"],["unicableform","ngForm"],[1,"m-5"],["pTemplate","title"],["pTemplate","subtitle"],["pTemplate","content"],[1,"grid"],[1,"mb-4","w-full"],[1,"form-group","field"],["for","Description",1,"label","block"],["pInputText","","id","ip","name","Description",1,"mb-2","form-control","w-full",3,"ngModel","ngModelChange"],["Description","ngModel"],[1,"block
"],["for","ScrUserband",1,"label","block"],["name","ScrUserband","id","ScrUserband",3,"ngModel","showButtons","min","max","step","ngModelChange"],[3,"innerHTML"],["for","ScrFrequency",1,"label","block"],["name","ScrFrequency","id","ScrFrequency","mode","decimal","inputId","withoutgrouping",3,"ngModel","useGrouping","ngModelChange"],["for","ScrPin",1,"label","block"],["name","ScrPin","id","ScrPin","mode","decimal","inputId","withoutgrouping",3,"ngModel","useGrouping","min","max","ngModelChange"],["for","CmdRepeat",1,"label","block"],["name","CmdRepeat","id","CmdRepeat",3,"ngModel","showButtons","min","max","step","ngModelChange"],[1,"mb-4","w-full",3,"legend","toggleable","collapsed"],["icon","pi
pi-plus-circle","styleClass","p-button-plain",3,"label","onClick",4,"ngIf"],[3,"header","visible","modal","draggable","resizable","visibleChange"],["for","disenqcTypes",1,"label","block"],["optionLabel","description","name","disenqcTypes","optionDisabled","inactive",3,"options","ngModel","ng
ModelChange","onDblClick"],["pTemplate","footer"],["styleClass","p-button-warning","label","Delete
Satellite Devices","icon","pi
pi-trash",3,"disabled","onClick",4,"ngIf"],[3,"diseqcTree","diseqcTreeList","dvbComponent","baseEvent",4,"ngIf"],["icon","pi
pi-plus-circle","styleClass","p-button-plain",3,"label","onClick"],["icon","pi
pi-times-circle","styleClass","p-button-plain",3,"label","onClick"],["icon","pi
pi-check-circle","styleClass","p-button-plain",3,"label","disabled","onClick"],["styleClass","p-button-warning","label","Delete
Satellite Devices","icon","pi
pi-trash",3,"disabled","onClick"],["icon","pi
pi-times-circle","styleClass","p-button-plain",3,"label","click"],["icon","pi
pi-check-circle","styleClass","p-button-plain",3,"label","click"],[3,"diseqcTree","diseqcTreeList","dvbComponent","baseEvent"]],template:function(e,n){1&e&&(l(0,"form",0,1)(2,"p-card",2),_(3,Uee,2,3,"ng-template",3),_(4,zee,0,0,"ng-template",4),_(5,Xee,67,89,"ng-template",5),c()())},styles:[""]}),t})(
);const ete=["switchform"];function
tte(t,i){1&t&&(g(0),m(1,"translate")),2&t&&T("
",f(1,1,"settings.capture.diseqc.switch.title")," ")}function
nte(t,i){}function
ite(t,i){1&t&&(l(0,"div")(1,"small",27),g(2),m(3,"translate"),c()()),2&t&&(a(2),S(f(3,1,"settings.capture.diseqc.switchports_error")))}function
ste(t,i){if(1&t){const
e=I();l(0,"p-button",33),C("onClick",function(){v(e);const
s=d(2).index;return
d(2).displayDeleteThis[s]=!0}),c()}2&t&&p("disabled",!d(2).$implicit)}function
rte(t,i){if(1&t){const
e=I();l(0,"p-button",34),C("click",function(){v(e);const
s=d(2).index;return
d(2).displayDeleteThis[s]=!1}),m(1,"translate"),c(),l(2,"p-button",35),C("click",function(){v(e);const
s=d(2).index;return
d(2).deleteDiseqc(s)}),m(3,"translate"),c()}2&t&&(x("label",f(1,2,"common.no")),a(2),x("label",f(3,4,"common.yes")))}function
ote(t,i){if(1&t){const
e=I();l(0,"app-lnb",36),C("baseEvent",function(s){return
v(e),d(4).setDiseqcObject(s)}),c()}if(2&t){const e=d(2).$implicit,n=d(2);p("dis
eqcTree",e)("diseqcTreeList",n.diseqcTreeList)("dvbComponent",n.dvbComponent)}}function
ate(t,i){if(1&t){const
e=I();l(0,"app-rotor",36),C("baseEvent",function(s){return
v(e),d(4).setDiseqcObject(s)}),c()}if(2&t){const
e=d(2).$implicit,n=d(2);p("diseqcTree",e)("diseqcTreeList",n.diseqcTreeList)("dvbComponent",n.dvbComponent)}}function
lte(t,i){if(1&t){const
e=I();l(0,"app-switch",36),C("baseEvent",function(s){return
v(e),d(4).setDiseqcObject(s)}),c()}if(2&t){const
e=d(2).$implicit,n=d(2);p("diseqcTree",e)("diseqcTreeList",n.diseqcTreeList)("dvbComponent",n.dvbComponent)}}function
cte(t,i){if(1&t){const
e=I();l(0,"app-unicable",36),C("baseEvent",function(s){return
v(e),d(4).setDiseqcObject(s)}),c()}if(2&t){const
e=d(2).$implicit,n=d(2);p("diseqcTree",e)("diseqcTreeList",n.diseqcTreeList)("dvbComponent",n.dvbComponent)}}const
MS=function(){return{width:"50vw"}};function ute(t,i){if(1&t){const
e=I();l(0,"p-fieldset",28),m(1,"translate"),_(2,ste,1,1,"p-button",29),l(3,"p-dialog",30),C("
visibleChange",function(s){v(e);const r=d().index;return
d(2).displayDeleteThis[r]=s}),m(4,"translate"),l(5,"h2"),g(6),m(7,"translate"),c(),l(8,"p"),g(9),m(10,"translate"),c(),_(11,rte,4,6,"ng-template",31),c(),_(12,ote,1,3,"app-lnb",32),_(13,ate,1,3,"app-rotor",32),_(14,lte,1,3,"app-switch",32),_(15,cte,1,3,"app-unicable",32),c()}if(2&t){const
e=d(),n=e.$implicit,s=e.index,r=d(2);x("legend",f(1,17,"settings.capture.dvb.satellite_heading")),p("toggleable",!0)("collapsed",!0),a(2),p("ngIf",n),a(1),q(A(25,MS)),x("header",f(4,19,"settings.capture.dvb.satellite_delete_header")),p("visible",r.displayDeleteThis[s])("modal",!0)("draggable",!1)("resizable",!1),a(3),S(f(7,21,"settings.common.ru_sure")),a(3),S(f(10,23,"settings.capture.dvb.satellite_delete_desc")),a(3),p("ngIf",n&&"lnb"==n.Type),a(1),p("ngIf",n&&"rotor"==n.Type),a(1),p("ngIf",n&&"switch"==n.Type),a(1),p("ngIf",n&&"scr"==n.Type)}}function
dte(t,i){if(1&t&&(l(0,"div"),_(1,ute,16,26,"p-fieldset",26),c()),2&t){const
e=i.$implicit
;a(1),p("ngIf",e)}}function pte(t,i){if(1&t){const
e=I();l(0,"p-button",40),C("onClick",function(){return
v(e),d(3).work.displayNewDiseqc=!1}),m(1,"translate"),c(),l(2,"p-button",41),C("onClick",function(){return
v(e),d(3).newDiseqc()}),m(3,"translate"),c()}if(2&t){const
e=d(3);x("label",f(1,3,"common.cancel")),a(2),x("label",f(3,5,"common.ok")),p("disabled",e.selectedDiseqcType.inactive)}}function
hte(t,i){if(1&t){const
e=I();l(0,"p-fieldset",28),m(1,"translate"),l(2,"p-button",37),C("onClick",function(){return
v(e),d(2).work.displayNewDiseqc=!0}),m(3,"translate"),c(),l(4,"p-dialog",30),C("visibleChange",function(s){return
v(e),d(2).work.displayNewDiseqc=s}),m(5,"translate"),l(6,"label",38),g(7),m(8,"translate"),c(),l(9,"p-listbox",39),C("ngModelChange",function(s){return
v(e),d(2).selectedDiseqcType=s})("onDblClick",function(){return
v(e),d(2).newDiseqc()}),c(),_(10,pte,4,7,"ng-template",31),c()()}if(2&t){const
e=d(2);x("legend",f(1,14,"settings.capture.dvb.satellite_heading")),p(
"toggleable",!0)("collapsed",!1),a(2),x("label",f(3,16,"settings.capture.dvb.newsatellite_button")),a(2),q(A(22,MS)),x("header",f(5,18,"settings.capture.dvb.newsatellite_heading")),p("visible",e.work.displayNewDiseqc)("modal",!0)("draggable",!1)("resizable",!1),a(3),T("
",f(8,20,"settings.capture.dvb.newsatellite_devtype"),"
"),a(2),p("options",e.captureCardService.diseqcTypes)("ngModel",e.selectedDiseqcType)}}const
mte=function(){return{width:"25rem"}},fte=function(){return{minWidth:"80%"}};function
gte(t,i){if(1&t){const
e=I();l(0,"div",6)(1,"div",7)(2,"div",8)(3,"label",9),g(4),m(5,"translate"),c(),l(6,"input",10,11),C("ngModelChange",function(s){return
v(e),d().diseqcTree.Description=s}),c(),l(8,"small",12),g(9),m(10,"translate"),c()(),l(11,"div",8)(12,"label",13),g(13),m(14,"translate"),c(),l(15,"p-inputNumber",14),C("ngModelChange",function(s){return
v(e),d().diseqcTree.CmdRepeat=s}),c(),l(16,"small",12),k(17,"div",15),m(18,"translate"),c()(),l(19,"div",8)(20,"label",16),g(21)
,m(22,"translate"),c(),l(23,"p-dropdown",17,18),C("ngModelChange",function(s){return
v(e),d().currentSubType=s})("onChange",function(){return
v(e),d().updateSubType()}),c(),l(25,"small",12),g(26),m(27,"translate"),c()(),l(28,"div",8)(29,"label",19),g(30),m(31,"translate"),c(),l(32,"input",20,21),C("ngModelChange",function(s){return
v(e),d().work.addressText=s}),c(),l(34,"small",12),g(35),m(36,"translate"),c()(),l(37,"div",8)(38,"label",22),g(39),m(40,"translate"),c(),l(41,"p-inputNumber",23),C("ngModelChange",function(s){return
v(e),d().diseqcTree.SwitchPorts=s}),c(),l(42,"small",12),k(43,"div",15),m(44,"translate"),c(),_(45,ite,4,3,"div",24),c(),_(46,dte,2,1,"div",25),_(47,hte,11,23,"p-fieldset",26),c()()}if(2&t){const
e=d();a(4),S(f(5,35,"settings.capture.diseqc.description_label")),a(2),p("ngModel",e.diseqcTree.Description),a(3),T("
",f(10,37,"settings.capture.diseqc.description_desc"),"
"),a(4),S(f(14,39,"settings.capture.diseqc.cmdrepeat_label")),a(2),p("ngModel",e.diseqcTree.C
mdRepeat)("showButtons",!0)("min",0)("max",15)("step",1),a(2),p("innerHTML",f(18,41,"settings.capture.diseqc.cmdrepeat_desc"),Bt),a(2),q(A(55,mte)),a(2),S(f(22,43,"settings.capture.diseqc.switch.type_label")),a(2),q(A(56,fte)),p("options",e.switchSubTypes)("ngModel",e.currentSubType)("editable",!1)("maxlength",0),a(3),T("
",f(27,45,"settings.capture.diseqc.switch.type_desc"),"
"),a(4),S(f(31,47,"settings.capture.diseqc.address_label")),a(2),p("ngModel",e.work.addressText)("disabled",!e.work.enableAddrAndPorts),a(3),T("
",f(36,49,"settings.capture.diseqc.address_desc"),"
"),a(4),T("
",f(40,51,"settings.capture.diseqc.switchports_label"),"
"),a(2),p("ngModel",e.diseqcTree.SwitchPorts)("showButtons",!0)("min",0)("max",255)("step",1)("disabled",!e.work.enableAddrAndPorts),a(2),p("innerHTML",f(44,53,"settings.capture.diseqc.switchports_desc"),Bt),a(2),p("ngIf",e.diseqcSubTreeCount>e.diseqcTree.SwitchPorts),a(1),p("ngForOf",e.diseqcSubTree),a(1),p("ngIf",e.diseqcSubTreeCount<e.diseqcTree.
SwitchPorts)}}let wg=(()=>{class
t{constructor(e,n){this.captureCardService=e,this.translate=n,this.diseqcSubComponent=[],this.baseEvent=new
H,this.switchSubTypes=[{Name:"settings.capture.diseqc.switch.tone",SubType:"tone"},{Name:"settings.capture.diseqc.switch.voltage",SubType:"voltage"},{Name:"settings.capture.diseqc.switch.mini_diseqc",SubType:"mini_diseqc"},{Name:"settings.capture.diseqc.switch.diseqc",SubType:"diseqc"},{Name:"settings.capture.diseqc.switch.diseqc_uncom",SubType:"diseqc_uncom"},{Name:"settings.capture.diseqc.switch.legacy_sw21",SubType:"legacy_sw21"},{Name:"settings.capture.diseqc.switch.legacy_sw42",SubType:"legacy_sw42"},{Name:"settings.capture.diseqc.switch.legacy_sw64",SubType:"legacy_sw64"}],this.diseqcSubTree=[],this.diseqcSubTreeCount=0,this.work={addressText:"",displayNewDiseqc:!1,enableAddrAndPorts:!1},this.displayDeleteThis=[],this.selectedDiseqcType={description:"",type:"",inactive:!0},this.setupDone=!1,this.switchSubTypes.forEach(s=>n.get(s.Name).sub
scribe(r=>s.Name=r))}ngOnInit(){if(this.diseqcTree.DiSEqCId?this.work.addressText="0x"+this.diseqcTree.Address.toString(16):(this.diseqcTree.Address=16,this.work.addressText="0x10",this.diseqcTree.SwitchPorts=2,this.diseqcTree.SubType="tone",this.diseqcTree.CmdRepeat=1),this.diseqcTree.SubType){let
e=this.switchSubTypes.find(n=>n.SubType==this.diseqcTree.SubType);e&&(this.currentSubType=e)}this.updateSubType(),this.displayDeleteThis=[],this.diseqcTreeList.DiseqcTreeList.DiseqcTrees.forEach(e=>{e.ParentId==this.diseqcTree.DiSEqCId&&(this.diseqcSubTree.push(e),this.displayDeleteThis.push(!1),this.diseqcSubTreeCount++)})}ngAfterViewInit(){this.baseEvent.emit(this),this.currentForm.valueChanges.subscribe(n=>{this.setupDone&&this.currentForm.dirty&&this.dvbComponent.currentForm.form.markAsDirty()}),new
Je(n=>{setTimeout(()=>{n.next(1),n.complete()},100)}).subscribe(n=>{this.setupDone=!0,this.diseqcTree.DiSEqCId?this.currentForm.form.markAsPristine():(this.currentForm.form.markAsDirty(),t
his.dvbComponent.currentForm.form.markAsDirty())})}newDiseqc(){this.work.displayNewDiseqc=!1,this.diseqcSubTree.push({Type:this.selectedDiseqcType.type,Description:this.selectedDiseqcType.description}),this.displayDeleteThis.push(!1),this.diseqcSubTreeCount++}setDiseqcObject(e){this.diseqcSubComponent.findIndex(s=>s===e)<0&&this.diseqcSubComponent.push(e),console.log("setDiseqcObject",this.diseqcSubComponent.length)}deleteDiseqc(e){this.displayDeleteThis[e]=!1,this.dvbComponent.work.errorCount=0,console.log("Delete",e),null!=this.diseqcSubTree[e]&&(this.diseqcSubTree[e].DiSEqCId&&this.captureCardService.DeleteDiseqcTree(this.diseqcSubTree[e].DiSEqCId).subscribe({next:n=>{n.bool||(console.log("DeleteDiseqcTree",n),this.dvbComponent.work.errorCount++)},error:n=>{console.log("DeleteDiseqcTree",n),this.dvbComponent.work.errorCount++}}),0==this.dvbComponent.work.errorCount&&(this.diseqcSubTree[e]=null,this.diseqcSubTreeCount--))}updateSubType(){switch(this.diseqcTree.SubType=this.current
SubType.SubType,this.diseqcTree.SubType){case"tone":case"voltage":case"mini_diseqc":case"legacy_sw21":case"legacy_sw42":this.work.addressText="0x10",this.diseqcTree.SwitchPorts=2,this.work.enableAddrAndPorts=!1;break;case"legacy_sw64":this.work.addressText="0x10",this.diseqcTree.SwitchPorts=3,this.work.enableAddrAndPorts=!1;break;case"diseqc_uncom":case"diseqc":this.work.enableAddrAndPorts=!0}}saveForm(e,n){this.diseqcTree.ParentId=e,this.diseqcTree.Address=Number.parseInt(this.work.addressText),this.diseqcTree.DiSEqCId?(this.captureCardService.UpdateDiseqcTree(this.diseqcTree).subscribe(n),this.diseqcSubComponent.forEach(s=>{s&&s.saveForm(this.diseqcTree.DiSEqCId,{error:r=>{n.error(r)}})})):this.captureCardService.AddDiseqcTree(this.diseqcTree).subscribe({next:s=>{s.int&&s.int>0?(this.diseqcTree.DiSEqCId=s.int,n.next&&n.next(s),this.diseqcSubComponent.forEach(r=>{r&&r.saveForm(this.diseqcTree.DiSEqCId,{next:o=>{},error:o=>{n.error(o)}})})):(console.log("UpdateDiseqcTree",s),n.error
(s))},error:s=>{console.log("UpdateDiseqcTree",s),n.error(s)}})}}return
t.\u0275fac=function(e){return
new(e||t)(D(Gt),D(Oe))},t.\u0275cmp=z({type:t,selectors:[["app-switch"]],viewQuery:function(e,n){if(1&e&&W(ete,5),2&e){let
s;V(s=B())&&(n.currentForm=s.first)}},inputs:{diseqcTree:"diseqcTree",diseqcTreeList:"diseqcTreeList",dvbComponent:"dvbComponent"},outputs:{baseEvent:"baseEvent"},decls:6,vars:0,consts:[["name","switchform",1,"ml-3","mr-3"],["switchform","ngForm"],[1,"m-5"],["pTemplate","title"],["pTemplate","subtitle"],["pTemplate","content"],[1,"grid"],[1,"mb-4","w-full"],[1,"form-group","field"],["for","Description",1,"label","block"],["pInputText","","id","ip","name","Description",1,"mb-2","form-control","w-full",3,"ngModel","ngModelChange"],["Description","ngModel"],[1,"block"],["for","CmdRepeat",1,"label","block"],["name","CmdRepeat","id","CmdRepeat",3,"ngModel","showButtons","min","max","step","ngModelChange"],[3,"innerHTML"],["for","SubType",1,"label","block"],["optionL
abel","Name","name","SubType",3,"options","ngModel","editable","maxlength","ngModelChange","onChange"],["SubType","ngModel"],["for","Address",1,"label","block"],["pInputText","","id","Address","name","Address",1,"mb-2","form-control","w-full",3,"ngModel","disabled","ngModelChange"],["Address","ngModel"],["for","SwitchPorts",1,"label","block"],["name","SwitchPorts","id","SwitchPorts",3,"ngModel","showButtons","min","max","step","disabled","ngModelChange"],[4,"ngIf"],[4,"ngFor","ngForOf"],["class","mb-4
w-full",3,"legend","toggleable","collapsed",4,"ngIf"],[1,"p-error","block"],[1,"mb-4","w-full",3,"legend","toggleable","collapsed"],["styleClass","p-button-warning","label","Delete
Satellite Devices","icon","pi
pi-trash",3,"disabled","onClick",4,"ngIf"],[3,"header","visible","modal","draggable","resizable","visibleChange"],["pTemplate","footer"],[3,"diseqcTree","diseqcTreeList","dvbComponent","baseEvent",4,"ngIf"],["styleClass","p-button-warning","label","Delete
Satellite Devices","ico
n","pi
pi-trash",3,"disabled","onClick"],["icon","pi
pi-times-circle","styleClass","p-button-plain",3,"label","click"],["icon","pi
pi-check-circle","styleClass","p-button-plain",3,"label","click"],[3,"diseqcTree","diseqcTreeList","dvbComponent","baseEvent"],["icon","pi
pi-plus-circle","styleClass","p-button-plain",3,"label","onClick"],["for","disenqcTypes",1,"label","block"],["optionLabel","description","name","disenqcTypes","optionDisabled","inactive",3,"options","ngModel","ngModelChange","onDblClick"],["icon","pi
pi-times-circle","styleClass","p-button-plain",3,"label","onClick"],["icon","pi
pi-check-circle","styleClass","p-button-plain",3,"label","disabled","onClick"]],template:function(e,n){1&e&&(l(0,"form",0,1)(2,"p-card",2),_(3,tte,2,3,"ng-template",3),_(4,nte,0,0,"ng-template",4),_(5,gte,48,57,"ng-template",5),c()())},directives:[ze,Ue,He,Ne,ne,Ye,Te,_e,pt,Ot,_n,Q,at,Ui,ve,bn,kd,Al,t,Pl,os],pipes:[ce],styles:[""]}),t})();const
_te=["externalform"],bte=["top"];function vte(t,i
){1&t&&(g(0),m(1,"translate")),2&t&&T("
",f(1,1,"settings.capture.external.title")," ")}function
Cte(t,i){}function yte(t,i){if(1&t){const
e=I();l(0,"div",8)(1,"div",9)(2,"div",10)(3,"label",11),g(4),m(5,"translate"),c(),l(6,"input",12,13),C("ngModelChange",function(s){return
v(e),d().card.VideoDevice=s}),c(),l(8,"small",14),g(9),m(10,"translate"),c()(),l(11,"div",10)(12,"label",15),g(13),m(14,"translate"),c(),l(15,"p-inputNumber",16),C("ngModelChange",function(s){return
v(e),d().card.ChannelTimeout=s}),c(),l(16,"small",14),g(17),m(18,"translate"),c()()()()}if(2&t){const
e=d();a(4),S(f(5,10,"settings.capture.external.command_label")),a(2),p("ngModel",e.card.VideoDevice),a(3),T("
",f(10,12,"settings.capture.external.command_desc"),"
"),a(4),S(f(14,14,"settings.capture.tunetimeout_label")),a(2),p("ngModel",e.card.ChannelTimeout)("showButtons",!0)("min",1750)("max",65e3)("step",250),a(2),T("
",f(18,16,"settings.capture.tunetimeout_desc")," ")}}function
wte(t,i){1&t&&(k(0,"p-message",22
),m(1,"translate")),2&t&&x("text",f(1,1,"common.savesuccess"))}function
Tte(t,i){1&t&&(k(0,"p-message",23),m(1,"translate")),2&t&&x("text",f(1,1,"common.networkfail"))}function
Ste(t,i){if(1&t){const
e=I();l(0,"div",17)(1,"div",18),_(2,wte,2,3,"p-message",19),_(3,Tte,2,3,"p-message",20),c(),l(4,"p-button",21),C("onClick",function(){v(e);const
s=d(),r=F(1);return
s.saveForm(),r.form.markAsPristine()}),m(5,"translate"),c()()}if(2&t){const
e=d(),n=F(1);a(2),p("ngIf",e.work.successCount>0&&0==e.work.errorCount&&!n.dirty),a(1),p("ngIf",e.work.errorCount>0),a(1),x("label",f(5,4,"common.save")),p("disabled",!n.dirty||!e.card.VideoDevice||e.setupService.schedulingEnabled)}}let
xte=(()=>{class
t{constructor(e,n){this.captureCardService=e,this.setupService=n,this.work={successCount:0,errorCount:0},this.saveObserver={next:s=>{this.card.CardId&&s.bool?this.work.successCount++:!this.card.CardId&&s.int?(this.work.successCount++,this.card.CardId=s.int):(this.work.errorCount++,this.currentForm.form
.markAsDirty())},error:s=>{console.error(s),this.work.errorCount++,this.currentForm.form.markAsDirty()}}}ngOnInit(){}ngAfterViewInit(){this.setupService.setCurrentForm(this.currentForm),this.topElement.nativeElement.scrollIntoView({behavior:"smooth",block:"start"})}saveForm(){this.work.successCount=0,this.work.errorCount=0,this.card.CardId?this.cardList.CaptureCardList.CaptureCards.forEach(e=>{(e.CardId==this.card.CardId||e.ParentId==this.card.CardId)&&(this.captureCardService.UpdateCaptureCard(e.CardId,"videodevice",this.card.VideoDevice).subscribe(this.saveObserver),this.captureCardService.UpdateCaptureCard(e.CardId,"channel_timeout",String(this.card.ChannelTimeout)).subscribe(this.saveObserver))}):this.captureCardService.AddCaptureCard(this.card).subscribe(this.saveObserver)}}return
t.\u0275fac=function(e){return
new(e||t)(D(Gt),D(Me))},t.\u0275cmp=z({type:t,selectors:[["app-external"]],viewQuery:function(e,n){if(1&e&&(W(_te,5),W(bte,5)),2&e){let
s;V(s=B())&&(n.currentForm=s.firs
t),V(s=B())&&(n.topElement=s.first)}},inputs:{card:"card",cardList:"cardList"},decls:9,vars:0,consts:[["name","externalform",1,"ml-3","mr-3"],["externalform","ngForm"],["top",""],[1,"m-5"],["pTemplate","title"],["pTemplate","subtitle"],["pTemplate","content"],["pTemplate","footer"],[1,"grid"],[1,"mb-4","w-full"],[1,"form-group","field"],["for","VideoDevice",1,"label","block"],["pInputText","","id","VideoDevice","name","VideoDevice",1,"mb-2","form-control","w-full",3,"ngModel","ngModelChange"],["VideoDevice","ngModel"],[1,"block"],["for","ChannelTimeout",1,"label","block"],["name","ChannelTimeout","id","ChannelTimeout",3,"ngModel","showButtons","min","max","step","ngModelChange"],[1,"grid","nogutter"],[1,"col-12"],["severity","success",3,"text",4,"ngIf"],["severity","error",3,"text",4,"ngIf"],["icon","pi
pi-save","iconPos","left",1,"col","pr-1",3,"label","disabled","onClick"],["severity","success",3,"text"],["severity","error",3,"text"]],template:function(e,n){1&e&&(l(0,"form",0,1),k
(2,"span",null,2),l(4,"p-card",3),_(5,vte,2,3,"ng-template",4),_(6,Cte,0,0,"ng-template",5),_(7,yte,19,18,"ng-template",6),_(8,Ste,6,6,"ng-template",7),c()())},directives:[ze,Ue,He,Ne,ne,Ye,Te,_e,pt,Q,qe,ve],pipes:[ce],styles:[""]}),t})();const
Dte=["hdhomerunform"],Mte=["top"];function
kte(t,i){1&t&&(g(0),m(1,"translate")),2&t&&T("
",f(1,1,"settings.capture.hdhomerun.title")," ")}function
Ite(t,i){}function Ete(t,i){if(1&t){const
e=I();l(0,"p-listbox",20,21),C("ngModelChange",function(s){return
v(e),d(2).selectedDevices=s})("onChange",function(){return
v(e),d(2).updateDevices()}),c()}if(2&t){const
e=d(2);p("options",e.captureDeviceList.CaptureDeviceList.CaptureDevices)("ngModel",e.selectedDevices)("checkbox",!0)("showToggleAll",!1)("multiple",!0)}}const
Rte=function(){return{width:"30rem"}};function Lte(t,i){if(1&t){const
e=I();l(0,"div",8)(1,"div",9)(2,"div",10)(3,"label",11),g(4),m(5,"translate"),c(),l(6,"div"),_(7,Ete,2,5,"p-listbox",12),l(8,"small",13),g(9),m(10,"translate"),c(
)()(),l(11,"div",10)(12,"label",14),g(13),m(14,"translate"),c(),l(15,"p-inputNumber",15),C("ngModelChange",function(s){return
v(e),d().card.SignalTimeout=s}),c(),l(16,"small",13),g(17),m(18,"translate"),c()(),l(19,"div",10)(20,"label",16),g(21),m(22,"translate"),c(),l(23,"p-inputNumber",17),C("ngModelChange",function(s){return
v(e),d().card.ChannelTimeout=s}),c(),l(24,"small",13),g(25),m(26,"translate"),c()(),l(27,"div",10)(28,"p-checkbox",18,19),C("ngModelChange",function(s){return
v(e),d().card.DVBEITScan=s}),m(30,"translate"),c(),l(31,"small",13),g(32),m(33,"translate"),c()()()()}if(2&t){const
e=d();a(4),S(f(5,23,"settings.capture.hdhomerun.device_label")),a(2),q(A(39,Rte)),a(1),p("ngIf",e.work.isReady),a(2),T("
",f(10,25,"settings.capture.hdhomerun.device_desc"),"
"),a(4),S(f(14,27,"settings.capture.sigtimeout_label")),a(2),p("ngModel",e.card.SignalTimeout)("showButtons",!0)("min",250)("max",6e4)("step",250),a(2),T("
",f(18,29,"settings.capture.sigtimeout_desc")," "),a(4),S(f(22
,31,"settings.capture.tunetimeout_label")),a(2),p("ngModel",e.card.ChannelTimeout)("showButtons",!0)("min",1750)("max",65e3)("step",250),a(2),T("
",f(26,33,"settings.capture.tunetimeout_desc"),"
"),a(3),x("label",f(30,35,"settings.capture.hdhomerun.eitscan_label")),p("ngModel",e.card.DVBEITScan)("binary",!0),a(4),T("
",f(33,37,"settings.capture.dvb.eitscan_ldesc")," ")}}function
Ote(t,i){1&t&&(k(0,"p-message",27),m(1,"translate")),2&t&&x("text",f(1,1,"common.savesuccess"))}function
Ate(t,i){1&t&&(k(0,"p-message",28),m(1,"translate")),2&t&&x("text",f(1,1,"common.networkfail"))}function
Pte(t,i){if(1&t){const
e=I();l(0,"div",22)(1,"div",23),_(2,Ote,2,3,"p-message",24),_(3,Ate,2,3,"p-message",25),c(),l(4,"p-button",26),C("onClick",function(){v(e);const
s=d(),r=F(1);return
s.saveForm(),r.form.markAsPristine()}),m(5,"translate"),c()()}if(2&t){const
e=d(),n=F(1);a(2),p("ngIf",e.work.successCount>0&&0==e.work.errorCount&&!n.dirty),a(1),p("ngIf",e.work.errorCount>0),a(1),x("label",f(5,4,"co
mmon.save")),p("disabled",!n.dirty||!e.card.VideoDevice||e.setupService.schedulingEnabled)}}let
Fte=(()=>{class
t{constructor(e,n){this.captureCardService=e,this.setupService=n,this.work={isReady:!1,successCount:0,errorCount:0},this.captureDeviceList={CaptureDeviceList:{CaptureDevices:[]}},this.selectedDevices=[],this.saveObserver={next:s=>{this.card.CardId&&s.bool?this.work.successCount++:!this.card.CardId&&s.int?(this.work.successCount++,this.card.CardId=s.int):(this.work.errorCount++,this.currentForm.form.markAsDirty())},error:s=>{console.error(s),this.work.errorCount++,this.currentForm.form.markAsDirty()}}}ngOnInit(){this.captureCardService.GetCaptureDeviceList("HDHOMERUN").subscribe({next:e=>{this.captureDeviceList=e,this.setupDevices()},error:e=>{console.log("GetCaptureDeviceList",e),this.work.errorCount++}})}ngAfterViewInit(){this.setupService.setCurrentForm(this.currentForm),this.topElement.nativeElement.scrollIntoView({behavior:"smooth",block:"start"})}setupDevices(){this.c
ard.VideoDevice&&this.card.VideoDevice.split(",").forEach(n=>{const
s=this.captureDeviceList.CaptureDeviceList.CaptureDevices.find(r=>n==r.VideoDevice.split("
")[0]);s&&this.selectedDevices.push(s)}),this.work.isReady=!0}updateDevices(){let
e="",n=[];this.selectedDevices.forEach(s=>{n.push(s.VideoDevice.split("
")[0]),this.card.SignalTimeout=s.SignalTimeout,this.card.ChannelTimeout=s.ChannelTimeout}),n.sort(),console.log(n),n.forEach(s=>{e&&(e+=","),e+=s}),this.card.VideoDevice=e}saveForm(){console.log("save
form
clicked"),this.work.successCount=0,this.work.errorCount=0,this.card.CardId?this.cardList.CaptureCardList.CaptureCards.forEach(e=>{(e.CardId==this.card.CardId||e.ParentId==this.card.CardId)&&(this.captureCardService.UpdateCaptureCard(e.CardId,"videodevice",this.card.VideoDevice).subscribe(this.saveObserver),this.captureCardService.UpdateCaptureCard(e.CardId,"signal_timeout",String(this.card.SignalTimeout)).subscribe(this.saveObserver),this.captureCardService.UpdateCaptureCar
d(e.CardId,"channel_timeout",String(this.card.ChannelTimeout)).subscribe(this.saveObserver),this.captureCardService.UpdateCaptureCard(e.CardId,"dvb_eitscan",String(this.card.DVBEITScan?"1":"0")).subscribe(this.saveObserver))}):this.captureCardService.AddCaptureCard(this.card).subscribe(this.saveObserver)}}return
t.\u0275fac=function(e){return
new(e||t)(D(Gt),D(Me))},t.\u0275cmp=z({type:t,selectors:[["app-hdhomerun"]],viewQuery:function(e,n){if(1&e&&(W(Dte,5),W(Mte,5)),2&e){let
s;V(s=B())&&(n.currentForm=s.first),V(s=B())&&(n.topElement=s.first)}},inputs:{card:"card",cardList:"cardList"},decls:9,vars:0,consts:[["name","hdhomerunform",1,"ml-3","mr-3"],["hdhomerunform","ngForm"],["top",""],[1,"m-5"],["pTemplate","title"],["pTemplate","subtitle"],["pTemplate","content"],["pTemplate","footer"],[1,"grid"],[1,"mb-4","w-full"],[1,"form-group","field"],["for","VideoDevice",1,"label","block"],["optionLabel","VideoDevice","name","VideoDevice",3,"options","ngModel","checkbox","showToggleAll","m
ultiple","ngModelChange","onChange",4,"ngIf"],[1,"block"],["for","SignalTimeout",1,"label","block"],["name","SignalTimeout","id","SignalTimeout",3,"ngModel","showButtons","min","max","step","ngModelChange"],["for","ChannelTimeout",1,"label","block"],["name","ChannelTimeout","id","ChannelTimeout",3,"ngModel","showButtons","min","max","step","ngModelChange"],["inputId","DVBEITScan","name","DVBEITScan",1,"label","mb-2","w-full",3,"ngModel","binary","label","ngModelChange"],["DVBEITScan","ngModel"],["optionLabel","VideoDevice","name","VideoDevice",3,"options","ngModel","checkbox","showToggleAll","multiple","ngModelChange","onChange"],["VideoDevice","ngModel"],[1,"grid","nogutter"],[1,"col-12"],["severity","success",3,"text",4,"ngIf"],["severity","error",3,"text",4,"ngIf"],["icon","pi
pi-save","iconPos","left",1,"col","pr-1",3,"label","disabled","onClick"],["severity","success",3,"text"],["severity","error",3,"text"]],template:function(e,n){1&e&&(l(0,"form",0,1),k(2,"span",null,2),l(4,"p
-card",3),_(5,kte,2,3,"ng-template",4),_(6,Ite,0,0,"ng-template",5),_(7,Lte,34,40,"ng-template",6),_(8,Pte,6,6,"ng-template",7),c()())},directives:[ze,Ue,He,Ne,ne,Q,os,Te,_e,pt,sn,qe,ve],pipes:[ce],styles:[""]}),t})();const
Nte=["iptvform"],Vte=["top"];function
Bte(t,i){1&t&&(g(0),m(1,"translate")),2&t&&T("
",f(1,1,"settings.capture.iptv.title")," ")}function
Hte(t,i){}function qte(t,i){if(1&t){const
e=I();l(0,"div",8)(1,"div",9)(2,"div",10)(3,"label",11),g(4),m(5,"translate"),c(),l(6,"input",12,13),C("ngModelChange",function(s){return
v(e),d().card.VideoDevice=s}),c(),l(8,"small",14),g(9),m(10,"translate"),c()(),l(11,"div",10)(12,"label",15),g(13),m(14,"translate"),c(),l(15,"p-inputNumber",16),C("ngModelChange",function(s){return
v(e),d().card.ChannelTimeout=s}),c(),l(16,"small",14),g(17),m(18,"translate"),c()()()()}if(2&t){const
e=d();a(4),S(f(5,10,"settings.capture.iptv.url_label")),a(2),p("ngModel",e.card.VideoDevice),a(3),T("
",f(10,12,"settings.capture.iptv.url_desc")," "),a(4
),S(f(14,14,"settings.capture.tunetimeout_label")),a(2),p("ngModel",e.card.ChannelTimeout)("showButtons",!0)("min",1750)("max",65e3)("step",250),a(2),T("
",f(18,16,"settings.capture.tunetimeout_desc")," ")}}function
Gte(t,i){1&t&&(k(0,"p-message",22),m(1,"translate")),2&t&&x("text",f(1,1,"common.savesuccess"))}function
Ute(t,i){1&t&&(k(0,"p-message",23),m(1,"translate")),2&t&&x("text",f(1,1,"common.networkfail"))}function
zte(t,i){if(1&t){const
e=I();l(0,"div",17)(1,"div",18),_(2,Gte,2,3,"p-message",19),_(3,Ute,2,3,"p-message",20),c(),l(4,"p-button",21),C("onClick",function(){v(e);const
s=d(),r=F(1);return
s.saveForm(),r.form.markAsPristine()}),m(5,"translate"),c()()}if(2&t){const
e=d(),n=F(1);a(2),p("ngIf",e.work.successCount>0&&0==e.work.errorCount&&!n.dirty),a(1),p("ngIf",e.work.errorCount>0),a(1),x("label",f(5,4,"common.save")),p("disabled",!n.dirty||!e.card.VideoDevice||e.setupService.schedulingEnabled)}}let
jte=(()=>{class t{constructor(e,n){this.captureCardService=e,this.setu
pService=n,this.work={successCount:0,errorCount:0},this.saveObserver={next:s=>{this.card.CardId&&s.bool?this.work.successCount++:!this.card.CardId&&s.int?(this.work.successCount++,this.card.CardId=s.int):(this.work.errorCount++,this.currentForm.form.markAsDirty())},error:s=>{console.error(s),this.work.errorCount++,this.currentForm.form.markAsDirty()}}}ngOnInit(){}ngAfterViewInit(){this.setupService.setCurrentForm(this.currentForm),this.topElement.nativeElement.scrollIntoView({behavior:"smooth",block:"start"}),this.card.CardId||new
Je(n=>{setTimeout(()=>{n.next(1),n.complete()},100)}).subscribe(n=>{this.currentForm.form.markAsDirty()})}saveForm(){console.log("save
form
clicked"),this.work.successCount=0,this.work.errorCount=0,this.card.CardId?this.cardList.CaptureCardList.CaptureCards.forEach(e=>{(e.CardId==this.card.CardId||e.ParentId==this.card.CardId)&&(this.captureCardService.UpdateCaptureCard(e.CardId,"videodevice",this.card.VideoDevice).subscribe(this.saveObserver),this.capture
CardService.UpdateCaptureCard(e.CardId,"channel_timeout",String(this.card.ChannelTimeout)).subscribe(this.saveObserver))}):this.captureCardService.AddCaptureCard(this.card).subscribe(this.saveObserver)}}return
t.\u0275fac=function(e){return
new(e||t)(D(Gt),D(Me))},t.\u0275cmp=z({type:t,selectors:[["app-iptv"]],viewQuery:function(e,n){if(1&e&&(W(Nte,5),W(Vte,5)),2&e){let
s;V(s=B())&&(n.currentForm=s.first),V(s=B())&&(n.topElement=s.first)}},inputs:{card:"card",cardList:"cardList"},decls:9,vars:0,consts:[["name","iptvform",1,"ml-3","mr-3"],["iptvform","ngForm"],["top",""],[1,"m-5"],["pTemplate","title"],["pTemplate","subtitle"],["pTemplate","content"],["pTemplate","footer"],[1,"grid"],[1,"mb-4","w-full"],[1,"form-group","field"],["for","VideoDevice",1,"label","block"],["pInputText","","id","VideoDevice","name","VideoDevice",1,"mb-2","form-control","w-full",3,"ngModel","ngModelChange"],["VideoDevice","ngModel"],[1,"block"],["for","ChannelTimeout",1,"label","block"],["name","ChannelTime
out","id","ChannelTimeout",3,"ngModel","showButtons","min","max","step","ngModelChange"],[1,"grid","nogutter"],[1,"col-12"],["severity","success",3,"text",4,"ngIf"],["severity","error",3,"text",4,"ngIf"],["icon","pi
pi-save","iconPos","left",1,"col","pr-1",3,"label","disabled","onClick"],["severity","success",3,"text"],["severity","error",3,"text"]],template:function(e,n){1&e&&(l(0,"form",0,1),k(2,"span",null,2),l(4,"p-card",3),_(5,Bte,2,3,"ng-template",4),_(6,Hte,0,0,"ng-template",5),_(7,qte,19,18,"ng-template",6),_(8,zte,6,6,"ng-template",7),c()())},directives:[ze,Ue,He,Ne,ne,Ye,Te,_e,pt,Q,qe,ve],pipes:[ce],styles:[""]}),t})();const
$te=["importform"],Wte=["top"];function
Kte(t,i){1&t&&(g(0),m(1,"translate")),2&t&&T("
",f(1,1,"settings.capture.import.title")," ")}function
Qte(t,i){}function Jte(t,i){if(1&t){const
e=I();l(0,"div",8)(1,"div",9)(2,"div",10)(3,"label",11),g(4),m(5,"translate"),c(),l(6,"input",12,13),C("ngModelChange",function(s){return
v(e),d().card.VideoDevice=s}),c(
),l(8,"small",14),g(9),m(10,"translate"),c()()()()}if(2&t){const
e=d();a(4),S(f(5,3,"settings.capture.import.file_label")),a(2),p("ngModel",e.card.VideoDevice),a(3),T("
",f(10,5,"settings.capture.import.file_desc")," ")}}function
Yte(t,i){1&t&&(k(0,"p-message",20),m(1,"translate")),2&t&&x("text",f(1,1,"common.savesuccess"))}function
Zte(t,i){1&t&&(k(0,"p-message",21),m(1,"translate")),2&t&&x("text",f(1,1,"common.networkfail"))}function
Xte(t,i){if(1&t){const
e=I();l(0,"div",15)(1,"div",16),_(2,Yte,2,3,"p-message",17),_(3,Zte,2,3,"p-message",18),c(),l(4,"p-button",19),C("onClick",function(){v(e);const
s=d(),r=F(1);return
s.saveForm(),r.form.markAsPristine()}),m(5,"translate"),c()()}if(2&t){const
e=d(),n=F(1);a(2),p("ngIf",e.work.successCount>0&&0==e.work.errorCount&&!n.dirty),a(1),p("ngIf",e.work.errorCount>0),a(1),x("label",f(5,4,"common.save")),p("disabled",!n.dirty||!e.card.VideoDevice||e.setupService.schedulingEnabled)}}let
ene=(()=>{class t{constructor(e,n){this.captureCardServi
ce=e,this.setupService=n,this.work={successCount:0,errorCount:0},this.saveObserver={next:s=>{this.card.CardId&&s.bool?this.work.successCount++:!this.card.CardId&&s.int?(this.work.successCount++,this.card.CardId=s.int):(this.work.errorCount++,this.currentForm.form.markAsDirty())},error:s=>{console.error(s),this.work.errorCount++,this.currentForm.form.markAsDirty()}}}ngOnInit(){}ngAfterViewInit(){this.setupService.setCurrentForm(this.currentForm),this.topElement.nativeElement.scrollIntoView({behavior:"smooth",block:"start"})}saveForm(){console.log("save
form
clicked"),this.work.successCount=0,this.work.errorCount=0,this.card.CardId?this.cardList.CaptureCardList.CaptureCards.forEach(e=>{(e.CardId==this.card.CardId||e.ParentId==this.card.CardId)&&this.captureCardService.UpdateCaptureCard(e.CardId,"videodevice",this.card.VideoDevice).subscribe(this.saveObserver)}):this.captureCardService.AddCaptureCard(this.card).subscribe(this.saveObserver)}}return
t.\u0275fac=function(e){return new(e||
t)(D(Gt),D(Me))},t.\u0275cmp=z({type:t,selectors:[["app-import"]],viewQuery:function(e,n){if(1&e&&(W($te,5),W(Wte,5)),2&e){let
s;V(s=B())&&(n.currentForm=s.first),V(s=B())&&(n.topElement=s.first)}},inputs:{card:"card",cardList:"cardList"},decls:9,vars:0,consts:[["name","importform",1,"ml-3","mr-3"],["importform","ngForm"],["top",""],[1,"m-5"],["pTemplate","title"],["pTemplate","subtitle"],["pTemplate","content"],["pTemplate","footer"],[1,"grid"],[1,"mb-4","w-full"],[1,"form-group","field"],["for","VideoDevice",1,"label","block"],["pInputText","","id","VideoDevice","name","VideoDevice",1,"mb-2","form-control","w-full",3,"ngModel","ngModelChange"],["VideoDevice","ngModel"],[1,"block"],[1,"grid","nogutter"],[1,"col-12"],["severity","success",3,"text",4,"ngIf"],["severity","error",3,"text",4,"ngIf"],["icon","pi
pi-save","iconPos","left",1,"col","pr-1",3,"label","disabled","onClick"],["severity","success",3,"text"],["severity","error",3,"text"]],template:function(e,n){1&e&&(l(0,"form",0,
1),k(2,"span",null,2),l(4,"p-card",3),_(5,Kte,2,3,"ng-template",4),_(6,Qte,0,0,"ng-template",5),_(7,Jte,11,7,"ng-template",6),_(8,Xte,6,6,"ng-template",7),c()())},directives:[ze,Ue,He,Ne,ne,Ye,Te,_e,Q,qe,ve],pipes:[ce],styles:[""]}),t})();const
tne=["demoform"],nne=["top"];function
ine(t,i){1&t&&(g(0),m(1,"translate")),2&t&&T("
",f(1,1,"settings.capture.demo.title")," ")}function
sne(t,i){}function rne(t,i){if(1&t){const
e=I();l(0,"div",8)(1,"div",9)(2,"div",10)(3,"label",11),g(4),m(5,"translate"),c(),l(6,"input",12,13),C("ngModelChange",function(s){return
v(e),d().card.VideoDevice=s}),c(),l(8,"small",14),g(9),m(10,"translate"),c()()()()}if(2&t){const
e=d();a(4),S(f(5,3,"settings.capture.import.file_label")),a(2),p("ngModel",e.card.VideoDevice),a(3),T("
",f(10,5,"settings.capture.demo.file_desc")," ")}}function
one(t,i){1&t&&(k(0,"p-message",20),m(1,"translate")),2&t&&x("text",f(1,1,"common.savesuccess"))}function
ane(t,i){1&t&&(k(0,"p-message",21),m(1,"translate")),2&t&&x("text",f(
1,1,"common.networkfail"))}function lne(t,i){if(1&t){const
e=I();l(0,"div",15)(1,"div",16),_(2,one,2,3,"p-message",17),_(3,ane,2,3,"p-message",18),c(),l(4,"p-button",19),C("onClick",function(){v(e);const
s=d(),r=F(1);return
s.saveForm(),r.form.markAsPristine()}),m(5,"translate"),c()()}if(2&t){const
e=d(),n=F(1);a(2),p("ngIf",e.work.successCount>0&&0==e.work.errorCount&&!n.dirty),a(1),p("ngIf",e.work.errorCount>0),a(1),x("label",f(5,4,"common.save")),p("disabled",!n.dirty||!e.card.VideoDevice||e.setupService.schedulingEnabled)}}let
cne=(()=>{class
t{constructor(e,n){this.captureCardService=e,this.setupService=n,this.work={successCount:0,errorCount:0},this.saveObserver={next:s=>{this.card.CardId&&s.bool?this.work.successCount++:!this.card.CardId&&s.int?(this.work.successCount++,this.card.CardId=s.int):(this.work.errorCount++,this.currentForm.form.markAsDirty())},error:s=>{console.error(s),this.work.errorCount++,this.currentForm.form.markAsDirty()}}}ngOnInit(){}ngAfterViewInit(){this.s
etupService.setCurrentForm(this.currentForm),this.topElement.nativeElement.scrollIntoView({behavior:"smooth",block:"start"})}saveForm(){console.log("save
form
clicked"),this.work.successCount=0,this.work.errorCount=0,this.card.CardId?this.cardList.CaptureCardList.CaptureCards.forEach(e=>{(e.CardId==this.card.CardId||e.ParentId==this.card.CardId)&&this.captureCardService.UpdateCaptureCard(e.CardId,"videodevice",this.card.VideoDevice).subscribe(this.saveObserver)}):this.captureCardService.AddCaptureCard(this.card).subscribe(this.saveObserver)}}return
t.\u0275fac=function(e){return
new(e||t)(D(Gt),D(Me))},t.\u0275cmp=z({type:t,selectors:[["app-demo"]],viewQuery:function(e,n){if(1&e&&(W(tne,5),W(nne,5)),2&e){let
s;V(s=B())&&(n.currentForm=s.first),V(s=B())&&(n.topElement=s.first)}},inputs:{card:"card",cardList:"cardList"},decls:9,vars:0,consts:[["name","demoform",1,"ml-3","mr-3"],["demoform","ngForm"],["top",""],[1,"m-5"],["pTemplate","title"],["pTemplate","subtitle"],["pTemplate","cont
ent"],["pTemplate","footer"],[1,"grid"],[1,"mb-4","w-full"],[1,"form-group","field"],["for","VideoDevice",1,"label","block"],["pInputText","","id","VideoDevice","name","VideoDevice",1,"mb-2","form-control","w-full",3,"ngModel","ngModelChange"],["VideoDevice","ngModel"],[1,"block"],[1,"grid","nogutter"],[1,"col-12"],["severity","success",3,"text",4,"ngIf"],["severity","error",3,"text",4,"ngIf"],["icon","pi
pi-save","iconPos","left",1,"col","pr-1",3,"label","disabled","onClick"],["severity","success",3,"text"],["severity","error",3,"text"]],template:function(e,n){1&e&&(l(0,"form",0,1),k(2,"span",null,2),l(4,"p-card",3),_(5,ine,2,3,"ng-template",4),_(6,sne,0,0,"ng-template",5),_(7,rne,11,7,"ng-template",6),_(8,lne,6,6,"ng-template",7),c()())},directives:[ze,Ue,He,Ne,ne,Ye,Te,_e,Q,qe,ve],pipes:[ce],styles:[""]}),t})();const
une=["connform"];function
dne(t,i){1&t&&(g(0),m(1,"translate")),2&t&&T("
",f(1,1,"settings.iconnection.title")," ")}function
pne(t,i){}function hne(t,i){if(1&t){cons
t
e=I();l(0,"div",12)(1,"label",44),g(2),m(3,"translate"),c(),l(4,"p-inputNumber",45),C("ngModelChange",function(s){return
v(e),d(3).work.switchPort=s}),c(),l(5,"small",16),g(6),m(7,"translate"),c()()}if(2&t){const
e=d(3);a(2),S(f(3,7,"settings.iconnection.switchport_label")),a(2),p("ngModel",e.work.switchPort)("showButtons",!0)("min",1)("max",e.diseqcTree.SwitchPorts)("step",1),a(2),T("
",f(7,9,"settings.iconnection.switchport_desc")," ")}}function
mne(t,i){if(1&t){const
e=I();l(0,"div")(1,"div",12)(2,"label",46),g(3),m(4,"translate"),c(),l(5,"p-inputNumber",47),C("ngModelChange",function(s){return
v(e),d(3).work.rotorDegrees=s}),c(),k(6,"br")(7,"br"),l(8,"div",48)(9,"p-radioButton",49),C("ngModelChange",function(s){return
v(e),d(3).work.hemisphere=s}),c(),l(10,"label",50),g(11),m(12,"translate"),c()(),l(13,"div",48)(14,"p-radioButton",51),C("ngModelChange",function(s){return
v(e),d(3).work.hemisphere=s}),c(),l(15,"label",52),g(16),m(17,"translate"),c()(),l(18,"small",16),g(19),m(2
0,"translate"),c()()()}if(2&t){const
e=d(3);a(3),S(f(4,10,"settings.iconnection.longitude_label")),a(2),p("ngModel",e.work.rotorDegrees)("min",0)("max",180)("maxFractionDigits",4),a(4),p("ngModel",e.work.hemisphere),a(2),S(f(12,12,"settings.iconnection.longitude_east")),a(3),p("ngModel",e.work.hemisphere),a(2),S(f(17,14,"settings.iconnection.longitude_west")),a(3),T("
",f(20,16,"settings.iconnection.longitude_desc")," ")}}function
fne(t,i){if(1&t){const
e=I();l(0,"div",12)(1,"label",53),g(2),m(3,"translate"),c(),l(4,"div",48)(5,"p-radioButton",54),C("ngModelChange",function(s){return
v(e),d(3).work.scrPort=s}),c(),l(6,"label",55),g(7),m(8,"translate"),c()(),l(9,"div",48)(10,"p-radioButton",56),C("ngModelChange",function(s){return
v(e),d(3).work.scrPort=s}),c(),l(11,"label",57),g(12),m(13,"translate"),c()(),l(14,"small",16),g(15),m(16,"translate"),c()()}if(2&t){const
e=d(3);a(2),S(f(3,6,"settings.iconnection.unicablepos_label")),a(3),p("ngModel",e.work.scrPort),a(2),S(f(8,8,"settings
.iconnection.unicablepos_porta")),a(3),p("ngModel",e.work.scrPort),a(2),S(f(13,10,"settings.iconnection.unicablepos_portb")),a(3),T("
",f(16,12,"settings.iconnection.unicablepos_desc")," ")}}function
gne(t,i){1&t&&(l(0,"div",41),_(1,hne,8,11,"div",42),_(2,mne,21,18,"div",43),_(3,fne,17,14,"div",42),c()),2&t&&(p("ngSwitch",d(2).diseqcTree.Type),a(1),p("ngSwitchCase","switch"),a(1),p("ngSwitchCase","rotor"),a(1),p("ngSwitchCase","scr"))}function
_ne(t,i){if(1&t){const
e=I();l(0,"div",12)(1,"label",58),g(2),m(3,"translate"),c(),l(4,"input",59,60),C("ngModelChange",function(s){return
v(e),d(2).card.InputName=s}),c(),l(6,"small",16),g(7),m(8,"translate"),c()()}if(2&t){const
e=d(2);a(2),S(f(3,3,"settings.iconnection.delivery_label")),a(2),p("ngModel",e.card.InputName),a(3),T("
",f(8,5,"settings.iconnection.delivery_desc")," ")}}function
bne(t,i){if(1&t){const
e=I();l(0,"p-dropdown",63,60),C("ngModelChange",function(s){return
v(e),d(3).card.InputName=s}),c()}if(2&t){const e=d(3);p("options
",e.currentDevice.InputNames)("ngModel",e.card.InputName)}}function
vne(t,i){if(1&t&&(l(0,"div",12)(1,"label",61),g(2),m(3,"translate"),c(),_(4,bne,2,2,"p-dropdown",62),l(5,"small",16),g(6),m(7,"translate"),c()()),2&t){const
e=d(2);a(2),S(f(3,3,"settings.iconnection.input_label")),a(2),p("ngIf",e.work.isReady),a(2),T("
",f(7,5,"settings.capture.inputname_desc")," ")}}function
Cne(t,i){if(1&t){const
e=I();l(0,"div",12)(1,"label",64),g(2),m(3,"translate"),c(),l(4,"input",65,66),C("ngModelChange",function(s){return
v(e),d(2).card.ExternalCommand=s}),c(),l(6,"small",16),g(7),m(8,"translate"),c()()}if(2&t){const
e=d(2);a(2),S(f(3,3,"settings.iconnection.externalcmd_label")),a(2),p("ngModel",e.card.ExternalCommand),a(3),T("
",f(8,5,"settings.iconnection.externalcmd_desc")," ")}}function
yne(t,i){if(1&t){const
e=I();l(0,"div",12)(1,"label",67),g(2),m(3,"translate"),c(),l(4,"input",68,69),C("ngModelChange",function(s){return
v(e),d(2).card.TuneChan=s}),c(),l(6,"small",16),g(7),m(8,"translat
e"),c()()}if(2&t){const
e=d(2);a(2),S(f(3,3,"settings.iconnection.tunechan_label")),a(2),p("ngModel",e.card.TuneChan),a(3),T("
",f(8,5,"settings.iconnection.tunechan_desc")," ")}}const
Id=function(){return{minWidth:"400px"}};function wne(t,i){if(1&t){const
e=I();l(0,"div",12)(1,"label",70),g(2),m(3,"translate"),c(),l(4,"p-dropdown",71,72),C("ngModelChange",function(s){return
v(e),d(2).card.Quicktune=s}),c(),l(6,"small",16),g(7),m(8,"translate"),c()()}if(2&t){const
e=d(2);a(2),S(f(3,8,"settings.iconnection.quicktune_label")),a(2),q(A(12,Id)),p("options",e.quickTuneValues)("ngModel",e.card.Quicktune)("editable",!1)("maxlength",0),a(3),T("
",f(8,10,"settings.iconnection.quicktune_desc")," ")}}function
Tne(t,i){if(1&t){const
e=I();l(0,"div",12)(1,"p-checkbox",73,74),C("ngModelChange",function(s){return
v(e),d(2).card.DishnetEIT=s}),m(3,"translate"),c(),l(4,"small",16),g(5),m(6,"translate"),c()()}if(2&t){const
e=d(2);a(1),x("label",f(3,4,"settings.iconnection.dishneteit_label")),p("ngMod
el",e.card.DishnetEIT)("binary",!0),a(4),T("
",f(6,6,"settings.iconnection.dishneteit_desc")," ")}}function
Sne(t,i){if(1&t&&(l(0,"p-fieldset",75),m(1,"translate"),k(2,"app-channelscan",76),c()),2&t){const
e=d(2);x("legend",f(1,7,"settings.iconnection.scan_title")),p("collapsed",!0)("toggleable",!0),a(2),p("card",e.card)("cardList",e.cardList)("iconnection",e)("videoSourceLookup",e.videoSourceLookup)}}function
xne(t,i){if(1&t){const
e=I();l(0,"p-button",77),C("click",function(){return
v(e),d(2).work.fetchChannelsDialog=!1}),m(1,"translate"),c(),l(2,"p-button",78),C("click",function(){return
v(e),d(2).fetchChannels()}),m(3,"translate"),c()}2&t&&(x("label",f(1,2,"common.no")),a(2),x("label",f(3,4,"common.yes")))}const
Dne=function(t){return{num:t}},Mne=function(){return{width:"50vw"}};function
kne(t,i){if(1&t){const
e=I();l(0,"div",8)(1,"div",9),_(2,gne,4,4,"div",10),_(3,_ne,9,7,"div",11),_(4,vne,8,7,"div",11),l(5,"div",12)(6,"label",13),g(7),m(8,"translate"),c(),l(9,"input",14,15),C(
"ngModelChange",function(s){return
v(e),d().card.DisplayName=s}),c(),l(11,"small",16),g(12),m(13,"translate"),c()(),l(14,"div",12)(15,"label",17),g(16),m(17,"translate"),c(),l(18,"p-dropdown",18,19),C("ngModelChange",function(s){return
v(e),d().card.SourceId=s})("onChange",function(){return
v(e),d().fillChannelList()}),c(),l(20,"small",16),g(21),m(22,"translate"),c()(),_(23,Cne,9,7,"div",11),_(24,yne,9,7,"div",11),_(25,wne,9,13,"div",11),_(26,Tne,7,8,"div",11),_(27,Sne,3,9,"p-fieldset",20),k(28,"br")(29,"br"),l(30,"div",12)(31,"div",8)(32,"div",21)(33,"p-button",22),C("onClick",function(){return
v(e),d().work.fetchChannelsDialog=!0}),m(34,"translate"),c()(),l(35,"div",21),g(36),m(37,"translate"),c()(),l(38,"small",16),g(39),m(40,"translate"),c()(),l(41,"p-dialog",23),C("visibleChange",function(s){return
v(e),d().work.fetchChannelsDialog=s}),l(42,"p"),g(43),m(44,"translate"),c(),l(45,"p"),g(46),m(47,"translate"),c(),_(48,xne,4,6,"ng-template",7),c(),l(49,"div",12)(50,"label",24),g(51
),m(52,"translate"),c(),l(53,"p-dropdown",25,26),C("ngModelChange",function(s){return
v(e),d().card.StartChannel=s}),c(),l(55,"small",16),g(56),m(57,"translate"),c()(),l(58,"p-fieldset",27),m(59,"translate"),l(60,"div",12)(61,"label",28),g(62),m(63,"translate"),c(),l(64,"p-inputNumber",29),C("ngModelChange",function(s){return
v(e),d().card.RecLimit=s}),c(),l(65,"small",16),g(66),m(67,"translate"),c()(),l(68,"div",12)(69,"p-checkbox",30,31),C("ngModelChange",function(s){return
v(e),d().card.SchedGroup=s}),m(71,"translate"),c(),l(72,"small",16),g(73),m(74,"translate"),c()(),l(75,"div",12)(76,"label",32),g(77),m(78,"translate"),c(),l(79,"p-inputNumber",33),C("ngModelChange",function(s){return
v(e),d().card.RecPriority=s}),c(),l(80,"small",16),g(81),m(82,"translate"),c()(),l(83,"div",12)(84,"label",34),g(85),m(86,"translate"),c(),l(87,"p-inputNumber",35),C("ngModelChange",function(s){return
v(e),d().card.SchedOrder=s}),c(),l(88,"small",16),g(89),m(90,"translate"),c()(),l(91,"div",12)(92
,"label",36),g(93),m(94,"translate"),c(),l(95,"p-inputNumber",37),C("ngModelChange",function(s){return
v(e),d().card.LiveTVOrder=s}),c(),l(96,"small",16),g(97),m(98,"translate"),c()(),l(99,"div",12)(100,"label",38),g(101),m(102,"translate"),c(),l(103,"p-dropdown",39,40),C("ngModelChange",function(s){return
v(e),d().work.inputGroupName=s}),c(),l(105,"small",16),g(106),m(107,"translate"),c()()()()()}if(2&t){const
e=d(),n=F(1);a(2),p("ngIf",e.diseqcTree),a(1),p("ngIf","DVB"==e.card.CardType),a(1),p("ngIf","DVB"!=e.card.CardType),a(3),S(f(8,80,"settings.iconnection.displayname_label")),a(2),p("ngModel",e.card.DisplayName),a(3),T("
",f(13,82,"settings.iconnection.displayname_desc"),"
"),a(4),S(f(17,84,"settings.iconnection.sourceid_label")),a(2),q(A(129,Id)),p("options",e.videoSourceList.VideoSourceList.VideoSources)("ngModel",e.card.SourceId)("editable",!1)("maxlength",0),a(3),T("
",f(22,86,"settings.iconnection.sourceid_desc"),"
"),a(2),p("ngIf",e.work.isEncoder||e.work.isUnscanable),a
(1),p("ngIf",e.work.showPresetTuner),a(1),p("ngIf",!e.work.isEncoder&&!e.work.isUnscanable),a(1),p("ngIf","DVB"==e.card.CardType),a(1),p("ngIf",!e.work.isUnscanable),a(6),x("label",f(34,88,"settings.iconnection.fetch.label")),p("disabled",!e.card.SourceId||n.dirty||1==e.work.fetchStatus||e.setupService.schedulingEnabled),a(3),T("
\xa0\xa0",Dt(37,90,e.fetchMessages[e.work.fetchStatus],U(130,Dne,e.work.fetchCount)),"
"),a(3),T(" ",f(40,93,"settings.iconnection.fetch.desc"),"
"),a(2),q(A(132,Mne)),p("visible",e.work.fetchChannelsDialog)("modal",!0)("draggable",!1)("resizable",!1),a(2),S(f(44,95,"settings.iconnection.fetch.warning")),a(3),S(f(47,97,"settings.common.ru_sure")),a(5),S(f(52,99,"settings.iconnection.startchan_label")),a(2),q(A(133,Id)),p("options",e.sourceChannels)("ngModel",e.card.StartChannel)("editable",!1),a(3),T("
",f(57,101,"settings.iconnection.startchan_desc"),"
"),a(2),x("legend",f(59,103,"settings.iconnection.interact_title")),p("toggleable",!0)("collapsed",!0),a(
4),S(f(63,105,"settings.iconnection.maxrec_label")),a(2),p("ngModel",e.card.RecLimit)("showButtons",!0)("min",1)("max",10)("step",1),a(2),T("
",f(67,107,"settings.iconnection.maxrec_desc"),"
"),a(3),x("label",f(71,109,"settings.iconnection.schedgrp_label")),p("ngModel",e.card.SchedGroup)("binary",!0),a(4),T("
",f(74,111,"settings.iconnection.schedgrp_desc"),"
"),a(4),S(f(78,113,"settings.iconnection.recpri_label")),a(2),p("ngModel",e.card.RecPriority)("showButtons",!0)("min",-99)("max",99)("step",1),a(2),T("
",f(82,115,"settings.iconnection.recpri_desc"),"
"),a(4),S(f(86,117,"settings.iconnection.schedorder_label")),a(2),p("ngModel",e.card.SchedOrder)("showButtons",!0)("min",0)("max",99)("step",1),a(2),T("
",f(90,119,"settings.iconnection.schedorder_desc"),"
"),a(4),S(f(94,121,"settings.iconnection.liveorder_label")),a(2),p("ngModel",e.card.LiveTVOrder)("showButtons",!0)("min",0)("max",99)("step",1),a(2),T("
",f(98,123,"settings.iconnection.liveorder_desc"),"
"),a(4),S(f(102,125,"se
ttings.iconnection.inpgroup_label")),a(2),q(A(134,Id)),p("options",e.selectGroups)("ngModel",e.work.inputGroupName)("editable",!0),a(3),T("
",f(107,127,"settings.iconnection.inpgroup_desc")," ")}}function
Ine(t,i){1&t&&(k(0,"p-message",84),m(1,"translate")),2&t&&x("text",f(1,1,"common.savesuccess"))}function
Ene(t,i){1&t&&(k(0,"p-message",85),m(1,"translate")),2&t&&x("text",f(1,1,"common.networkfail"))}function
Rne(t,i){if(1&t){const
e=I();l(0,"div",79)(1,"div",80),_(2,Ine,2,3,"p-message",81),_(3,Ene,2,3,"p-message",82),c(),l(4,"p-button",83),C("onClick",function(){v(e);const
s=d(),r=F(1);return
s.saveForm(),r.form.markAsPristine()}),m(5,"translate"),c()()}if(2&t){const
e=d(),n=F(1);a(2),p("ngIf",e.work.successCount>0&&0==e.work.errorCount&&!n.dirty),a(1),p("ngIf",e.work.errorCount>0),a(1),x("label",f(5,4,"common.save")),p("disabled",!n.dirty||!e.card.VideoDevice||e.setupService.schedulingEnabled)}}let
kS=(()=>{class t{constructor(e,n,s,r){this.translate=e,this.channelService=n,this
.captureCardService=s,this.setupService=r,this.allChannels=[],this.sourceChannels=[],this.inputGroups=[],this.selectGroups=[],this.captureDeviceList={CaptureDeviceList:{CaptureDevices:[]}},this.currentDevice={FrontendName:"Unknown",InputNames:["MPEG2TS"]},this.work={successCount:0,errorCount:0,expectedCount:0,recLimitUpd:!1,reloadGroups:!1,isEncoder:!1,isUnscanable:!1,hasTuner:!1,showPresetTuner:!1,inputGroupName:"",orgInputGroupName:"",fetchChannelsDialog:!1,fetchStatus:0,fetchCount:0,switchPort:0,rotorDegrees:0,scrPort:"",hemisphere:1,isReady:!1,startScan:!1},this.deviceFree=new
ct,this.orgInputGroupIds=[],this.fetchMessages=["","settings.iconnection.fetch.inprog","settings.iconnection.fetch.complete","settings.iconnection.fetch.failed"],this.messages={devNotExist:"settings.capture.dvb.devNotExist"},this.preEncodedTypes=["DVB","FIREWIRE","HDHOMERUN","FREEBOX","IMPORT","DEMO","ASI","CETON","VBOX","SATIP"],this.unscanableTypes=["FIREWIRE","HDPVR","IMPORT","DEMO","GO7007","MJPEG"],th
is.hasTunerTypes=["DVB","HDHOMERUN","FREEBOX","CETON","VBOX","SATIP"],this.quickTuneValues=[{prompt:"settings.iconnection.quicktune.never",value:0},{prompt:"settings.iconnection.quicktune.livetv",value:1},{prompt:"settings.iconnection.quicktune.always",value:2}],this.saveObserver={next:o=>{o.bool?(this.work.successCount++,this.work.recLimitUpd&&(this.work.successCount==this.work.expectedCount?this.captureCardService.SetInputMaxRecordings(this.card.CardId,this.card.RecLimit).subscribe(this.saveObserver):this.work.successCount==this.work.expectedCount+1&&(this.parentComponent.loadCards(!1),this.work.recLimitUpd=!1)),this.work.successCount==this.work.expectedCount&&this.work.reloadGroups&&(this.loadInputGroups(),this.work.reloadGroups=!1),this.work.successCount==this.work.expectedCount&&this.work.startScan&&this.scanComponent&&(this.work.startScan=!1,this.currentForm.form.markAsPristine(),this.scanComponent.startScan())):(console.log("saveObserver
error",o),this.work.startScan=!1,this.
work.errorCount++,this.currentForm.form.markAsDirty())},error:o=>{console.log("saveObserver
error",o),this.work.startScan=!1,this.work.errorCount++,this.currentForm.form.markAsDirty()}},this.quickTuneValues.forEach(o=>e.get(o.prompt).subscribe(u=>o.prompt=u)),this.loadChannels(),this.loadInputGroups()}loadChannels(){this.channelService.GetChannelInfoList({Details:!0}).subscribe(n=>{this.allChannels=n.ChannelInfoList.ChannelInfos,this.fillChannelList()})}fillChannelList(){this.sourceChannels=this.allChannels.filter(e=>e.SourceId==this.card.SourceId),this.sourceChannels.find(e=>e.ChanNum==this.card.StartChannel)||(this.card.StartChannel="")}loadInputGroups(){this.captureCardService.GetInputGroupList().subscribe(e=>{this.inputGroups=e.InputGroupList.InputGroups,this.inputGroups.forEach(n=>{if(Ju("user:")){const
s=n.InputGroupName.substring(5);-1==this.selectGroups.findIndex(r=>s==r.InputGroupName)&&this.selectGroups.push({CardInputId:0,InputGroupId:n.InputGroupId,InputGroupName:s}),n.C
ardInputId==this.card.CardId&&(this.work.inputGroupName||(this.work.inputGroupName=s,this.work.orgInputGroupName=s),this.orgInputGroupIds.push(n.InputGroupId))}})})}ngOnInit(){this.work.isEncoder=this.preEncodedTypes.indexOf(this.card.CardType)<0,this.work.isUnscanable=this.unscanableTypes.indexOf(this.card.CardType)>=0,this.work.hasTuner=this.hasTunerTypes.indexOf(this.card.CardType)>=0,(this.work.isEncoder||this.work.isUnscanable)&&(this.work.hasTuner||"EXTERNAL"==this.card.CardType)&&(this.work.showPresetTuner=!0),"DVB"==this.card.CardType&&this.loadDiseqc(),this.card.DisplayName||(this.card.DisplayName="Input
"+this.card.CardId),this.captureCardService.GetCaptureDeviceList(this.card.CardType).subscribe({next:e=>{this.captureDeviceList=e,this.setupDevice(),this.deviceFree.next(!0)},error:e=>{console.log("GetCaptureDeviceList",e),this.work.errorCount++}})}setupDevice(){if(this.card.VideoDevice){let
e=this.captureDeviceList.CaptureDeviceList.CaptureDevices.find(n=>n.VideoDevice==th
is.card.VideoDevice);e?this.currentDevice=e:(this.currentDevice={VideoDevice:this.card.VideoDevice,FrontendName:this.messages.devNotExist,InputNames:["MPEG2TS"]},this.captureDeviceList.CaptureDeviceList.CaptureDevices.push(this.currentDevice))}this.currentDevice&&this.card.InputName&&(this.currentDevice.InputNames.includes(this.card.InputName)||this.currentDevice.InputNames.push(this.card.InputName),this.currentDevice.InputNames.includes("MPEG2TS")||this.currentDevice.InputNames.push("MPEG2TS")),this.work.isReady=!0}loadDiseqc(){this.captureCardService.GetDiseqcTreeList().subscribe({next:e=>{this.diseqcTreeList=e,this.setupDiseqc()},error:e=>{console.log("GetDiseqcTreeList",e),this.work.errorCount++}})}setupDiseqc(){let
e=this.diseqcTreeList.DiseqcTreeList.DiseqcTrees.find(n=>n.DiSEqCId==this.card.DiSEqCId);if(e)switch(this.diseqcTree=e,this.diseqcTree.Type){case"switch":case"rotor":case"scr":this.captureCardService.GetDiseqcConfigList().subscribe({next:n=>{let
s=n.DiseqcConfigList.
DiseqcConfigs.find(r=>r.CardId==this.card.CardId&&r.DiSEqCId==this.card.DiSEqCId);if(this.diseqcConfig=s||{CardId:this.card.CardId,DiSEqCId:this.card.DiSEqCId,Value:""},"switch"==this.diseqcTree.Type)this.work.switchPort=Number.parseInt(this.diseqcConfig.Value)-1,Number.isNaN(this.work.switchPort)&&(this.work.switchPort=0);else
if("rotor"==this.diseqcTree.Type)this.work.rotorDegrees=Number.parseFloat(this.diseqcConfig.Value),Number.isNaN(this.work.rotorDegrees)&&(this.work.rotorDegrees=0),this.work.rotorDegrees<0?(this.work.hemisphere=-1,this.work.rotorDegrees=-this.work.rotorDegrees):this.work.hemisphere=1;else
if("scr"==this.diseqcTree.Type)switch(this.diseqcConfig.Value){case"0":this.work.scrPort="A";break;case"1":this.work.scrPort="B";break;default:this.work.scrPort=""}},error:n=>{console.log("GetDiseqcTreeList",n),this.work.errorCount++}})}}ngAfterViewInit(){this.setupService.setCurrentForm(this.currentForm),this.currentForm.form.markAsDirty(),setTimeout(()=>{this.currentForm.f
orm.markAsPristine()},0)}fetchChannels(){this.work.fetchChannelsDialog=!1;let
e={SourceId:this.card.SourceId,CardId:this.card.CardId,WaitForFinish:!0};this.work.fetchStatus=1,this.channelService.FetchChannelsFromSource(e).subscribe({next:n=>{this.work.fetchStatus=n.int>0?2:3,this.work.fetchCount=n.int,this.loadChannels()},error:n=>{console.log("fetchChannels",n),this.work.fetchStatus=3,this.work.fetchCount=0}})}saveForm(){this.work.successCount=0,this.work.errorCount=0,this.work.expectedCount=0,this.work.inputGroupName!=this.work.orgInputGroupName?this.work.inputGroupName?this.captureCardService.AddUserInputGroup(this.work.inputGroupName).subscribe({next:n=>{this.saveCard(n.int)},error:n=>{console.log("saveForm
error",n),this.work.errorCount++,this.currentForm.form.markAsDirty()}}):this.saveCard(-1):this.saveCard(0)}saveCard(e){0!=e&&(this.work.reloadGroups=!0);let
n=0;if(this.work.recLimitUpd=!1,this.cardList.CaptureCardList.CaptureCards.forEach(s=>{(s.CardId==this.card.CardId||s.P
arentId==this.card.CardId)&&(this.captureCardService.UpdateCaptureCard(s.CardId,"inputname",s.InputName=this.card.InputName).subscribe(this.saveObserver),this.captureCardService.UpdateCaptureCard(s.CardId,"displayname",s.DisplayName=this.card.DisplayName).subscribe(this.saveObserver),this.captureCardService.UpdateCaptureCard(s.CardId,"sourceid",String(s.SourceId=this.card.SourceId)).subscribe(this.saveObserver),this.captureCardService.UpdateCaptureCard(s.CardId,"quicktune",String(s.Quicktune=this.card.Quicktune)).subscribe(this.saveObserver),this.captureCardService.UpdateCaptureCard(s.CardId,"dishnet_eit",(s.DishnetEIT=this.card.DishnetEIT)?"1":"0").subscribe(this.saveObserver),this.card.StartChannel&&(this.captureCardService.UpdateCaptureCard(s.CardId,"startchan",s.StartChannel=this.card.StartChannel).subscribe(this.saveObserver),this.work.expectedCount++),this.captureCardService.UpdateCaptureCard(s.CardId,"recpriority",String(s.RecPriority=this.card.RecPriority)).subscribe(this.sa
veObserver),this.captureCardService.UpdateCaptureCard(s.CardId,"livetvorder",String(s.LiveTVOrder=this.card.LiveTVOrder)).subscribe(this.saveObserver),this.captureCardService.UpdateCaptureCard(s.CardId,"reclimit",String(s.RecLimit=this.card.RecLimit)).subscribe(this.saveObserver),this.card.SchedGroup&&this.card.CardId!=s.CardId?(s.SchedGroup=!1,s.SchedOrder=0):(s.SchedGroup=this.card.SchedGroup,s.SchedOrder=this.card.SchedOrder),this.captureCardService.UpdateCaptureCard(s.CardId,"schedgroup",s.SchedGroup?"1":"0").subscribe(this.saveObserver),this.captureCardService.UpdateCaptureCard(s.CardId,"schedorder",String(s.SchedOrder)).subscribe(this.saveObserver),this.work.expectedCount+=10,0!=e&&this.orgInputGroupIds.forEach(r=>{this.captureCardService.UnlinkInputGroup(s.CardId,r).subscribe(this.saveObserver),this.work.expectedCount++}),e>0&&(this.captureCardService.LinkInputGroup(s.CardId,e).subscribe(this.saveObserver),this.work.expectedCount++),n++)}),n!=this.card.RecLimit&&(this.work.re
cLimitUpd=!0),this.diseqcConfig){let
s="";if("switch"==this.diseqcTree.Type)s=(this.work.switchPort-1).toString();else
if("rotor"==this.diseqcTree.Type)s=(this.work.rotorDegrees*this.work.hemisphere).toString();else
if("scr"==this.diseqcTree.Type)switch(this.work.scrPort){case"A":default:s="0";break;case"B":s="1"}s!=this.diseqcConfig.Value&&(this.diseqcConfig.Value=s,this.captureCardService.DeleteDiseqcConfig(this.card.CardId).subscribe(r=>{this.captureCardService.AddDiseqcConfig(this.diseqcConfig).subscribe(this.saveObserver)}))}}}return
t.\u0275fac=function(e){return
new(e||t)(D(Oe),D(Or),D(Gt),D(Me))},t.\u0275cmp=z({type:t,selectors:[["app-iconnection"]],viewQuery:function(e,n){if(1&e&&W(une,5),2&e){let
s;V(s=B())&&(n.currentForm=s.first)}},inputs:{card:"card",cardList:"cardList",videoSourceLookup:"videoSourceLookup",videoSourceList:"videoSourceList",parentComponent:"parentComponent"},decls:9,vars:0,consts:[["name","connform",1,"ml-3","mr-3"],["connform","ngForm"],["top",""],[1,"
m-5"],["pTemplate","title"],["pTemplate","subtitle"],["pTemplate","content"],["pTemplate","footer"],[1,"grid"],[1,"mb-4","w-full"],[3,"ngSwitch",4,"ngIf"],["class","form-group
field",4,"ngIf"],[1,"form-group","field"],["for","DisplayName",1,"label","block"],["pInputText","","id","DisplayName","name","DisplayName",1,"mb-2","form-control","w-full",3,"ngModel","ngModelChange"],["DisplayName","ngModel"],[1,"block"],["for","SourceId",1,"label","block"],["optionLabel","SourceName","optionValue","Id","name","SourceId",3,"options","ngModel","editable","maxlength","ngModelChange","onChange"],["SourceId","ngModel"],["class","mb-4
w-full",3,"legend","collapsed","toggleable",4,"ngIf"],[2,"display","flex","align-items","center"],["icon","pi
pi-download","iconPos","left",3,"label","disabled","onClick"],["header","Fetch
Channels",3,"visible","modal","draggable","resizable","visibleChange"],["for","StartChannel",1,"label","block"],["placeholder","Select
Item","optionLabel","ChanNum","optionValue","
ChanNum","scrollHeight","400px","name","StartChannel",3,"options","ngModel","editable","ngModelChange"],["StartChannel","ngModel"],[1,"mb-4","w-full",3,"legend","toggleable","collapsed"],["for","RecLimit",1,"label","block"],["name","RecLimit","id","RecLimit",3,"ngModel","showButtons","min","max","step","ngModelChange"],["inputId","SchedGroup","name","SchedGroup",1,"label","mb-2","w-full",3,"ngModel","binary","label","ngModelChange"],["DVBWaitForSeqStart","ngModel"],["for","RecPriority",1,"label","block"],["name","RecPriority","id","RecPriority",3,"ngModel","showButtons","min","max","step","ngModelChange"],["for","SchedOrder",1,"label","block"],["name","SchedOrder","id","SchedOrder",3,"ngModel","showButtons","min","max","step","ngModelChange"],["for","LiveTVOrder",1,"label","block"],["name","LiveTVOrder","id","LiveTVOrder",3,"ngModel","showButtons","min","max","step","ngModelChange"],["for","inputGroupName",1,"label","block"],["placeholder","Optional
Group Name","optionLabel","InputG
roupName","optionValue","InputGroupName","scrollHeight","400px","name","inputGroupName",3,"options","ngModel","editable","ngModelChange"],["inputGroupName","ngModel"],[3,"ngSwitch"],["class","form-group
field",4,"ngSwitchCase"],[4,"ngSwitchCase"],["for","Port",1,"label","block"],["name","Port","id","Port",3,"ngModel","showButtons","min","max","step","ngModelChange"],["for","Degrees",1,"label","block"],["name","Degrees","id","Degrees",3,"ngModel","min","max","maxFractionDigits","ngModelChange"],[1,"field-radiobutton"],["name","hemisphere","value","1","inputId","east",3,"ngModel","ngModelChange"],["for","east",1,"label","block"],["name","hemisphere","value","-1","inputId","west",3,"ngModel","ngModelChange"],["for","west",1,"label","block"],[1,"label","block"],["name","scrPort","value","A","inputId","portA",3,"ngModel","ngModelChange"],["for","portA",1,"label","block"],["name","scrPort","value","B","inputId","portB",3,"ngModel","ngModelChange"],["for","portB",1,"label","block"],["for",
"Delivery",1,"label","block"],["pInputText","","id","Delivery","name","Delivery","disabled","true",1,"mb-2","form-control","w-full",3,"ngModel","ngModelChange"],["InputName","ngModel"],["for","InputName",1,"label","block"],["name","InputName",3,"options","ngModel","ngModelChange",4,"ngIf"],["name","InputName",3,"options","ngModel","ngModelChange"],["for","ExternalCommand",1,"label","block"],["pInputText","","id","ExternalCommand","name","ExternalCommand",1,"mb-2","form-control","w-full",3,"ngModel","ngModelChange"],["ExternalCommand","ngModel"],["for","TuneChan",1,"label","block"],["pInputText","","id","TuneChan","name","TuneChan",1,"mb-2","form-control","w-full",3,"ngModel","ngModelChange"],["TuneChan","ngModel"],["for","Quicktune",1,"label","block"],["optionLabel","prompt","optionValue","value","name","Quicktune",3,"options","ngModel","editable","maxlength","ngModelChange"],["Quicktune","ngModel"],["inputId","DishnetEIT","name","DishnetEIT",1,"label","mb-2","w-full",3,"ngModel","b
inary","label","ngModelChange"],["DishnetEIT","ngModel"],[1,"mb-4","w-full",3,"legend","collapsed","toggleable"],[3,"card","cardList","iconnection","videoSourceLookup"],["icon","pi
pi-times-circle","styleClass","p-button-plain",3,"label","click"],["icon","pi
pi-check-circle","styleClass","p-button-plain",3,"label","click"],[1,"grid","nogutter"],[1,"col-12"],["severity","success",3,"text",4,"ngIf"],["severity","error",3,"text",4,"ngIf"],["icon","pi
pi-save","iconPos","left",1,"col","pr-1",3,"label","disabled","onClick"],["severity","success",3,"text"],["severity","error",3,"text"]],template:function(e,n){1&e&&(l(0,"form",0,1),k(2,"span",null,2),l(4,"p-card",3),_(5,dne,2,3,"ng-template",4),_(6,pne,0,0,"ng-template",5),_(7,kne,108,135,"ng-template",6),_(8,Rne,6,6,"ng-template",7),c()())},styles:[""]}),t})();function
Lne(t,i){if(1&t){const
e=I();l(0,"p-button",10),C("onClick",function(){return
v(e),d().displayNewDialog=!1}),m(1,"translate"),c(),l(2,"p-button",11),C("onClick",function(){
return v(e),d().newProfile()}),m(3,"translate"),c()}if(2&t){const
e=d();x("label",f(1,3,"common.cancel")),a(2),x("label",f(3,5,"common.ok")),p("disabled",e.rejectName())}}function
One(t,i){1&t&&(l(0,"div",12),k(1,"br")(2,"p-message",13),m(3,"translate"),k(4,"br"),c()),2&t&&(a(2),x("text",f(3,1,"settings.common.successful_delete")))}function
Ane(t,i){1&t&&(l(0,"div",12),k(1,"br")(2,"p-message",14),m(3,"translate"),k(4,"br"),c()),2&t&&(a(2),x("text",f(3,1,"common.networkfail")))}function
Pne(t,i){if(1&t&&(l(0,"div",18)(1,"div",19),g(2),l(3,"b"),g(4),c()()()),2&t){const
e=d(),n=e.$implicit,s=e.index,r=d();a(2),T(" ",n.Name,"
"),a(2),T("\xa0",r.dirtyMessages[s],"")}}function
Fne(t,i){if(1&t){const
e=I();l(0,"p-button",22),C("click",function(){v(e);const
s=d(2).index;return
d().displayDeleteThis[s]=!1}),m(1,"translate"),c(),l(2,"p-button",23),C("click",function(){v(e);const
s=d(2).index;return
d().deleteThis(s)}),m(3,"translate"),c()}2&t&&(x("label",f(1,2,"common.no")),a(2),x("label",f(3
,4,"common.yes")))}const
IS=function(){return{width:"50vw"}},Nne=function(t,i){return{ProfileName:t,GroupName:i}};function
Vne(t,i){if(1&t){const
e=I();l(0,"p-button",20),C("onClick",function(){v(e);const
s=d().index;return
d().displayDeleteThis[s]=!0}),m(1,"translate"),c(),l(2,"p-dialog",2),C("visibleChange",function(s){v(e);const
r=d().index;return
d().displayDeleteThis[r]=s}),m(3,"translate"),l(4,"h2"),g(5),m(6,"translate"),c(),l(7,"p"),g(8),m(9,"translate"),c(),_(10,Fne,4,6,"ng-template",5),c(),k(11,"app-recprofile",21)}if(2&t){const
e=d(),n=e.index,s=e.$implicit,r=d();x("label",f(1,14,"settings.rprofiles.delete_this")),p("disabled",!r.group.RecProfiles[n].Id||r.setupService.schedulingEnabled),a(2),q(A(23,IS)),x("header",f(3,16,"settings.rprofiles.delete_this")),p("visible",r.displayDeleteThis[n])("modal",!0)("draggable",!1)("resizable",!1),a(3),S(f(6,18,"settings.common.ru_sure")),a(3),S(Dt(9,20,"settings.rprofiles.delete_details",Ge(24,Nne,r.group.RecProfiles[n].Name,r.group.N
ame))),a(3),p("profile",s)("group",r.group)("parentComponent",r)}}function
Bne(t,i){if(1&t){const
e=I();l(0,"p-accordionTab",15),C("selectedChange",function(s){const
o=v(e).index;return
d().activeTab[o]=s}),_(1,Pne,5,2,"ng-template",16),_(2,Vne,12,27,"ng-template",17),c()}if(2&t){const
e=i.index,n=d();p("disabled",n.disabledTab[e])("selected",n.activeTab[e])}}let
ES=(()=>{class
t{constructor(e,n,s){this.captureCardService=e,this.setupService=n,this.translate=s,this.currentTab=-1,this.deletedTab=-1,this.dirtyMessages=[],this.forms=[],this.disabledTab=[],this.activeTab=[],this.readyCount=0,this.displayNewDialog=!1,this.newProfileName="",this.successCount=0,this.expectedCount=0,this.errorCount=0,this.displayDeleteThis=[],this.dirtyText="settings.common.unsaved",this.warningText="settings.common.warning",this.deletedText="settings.common.deleted",this.newText="settings.common.new",this.delObserver={next:r=>{r.bool?(this.successCount++,this.deletedTab>-1&&(this.dirtyMessages[this.deleted
Tab]=this.deletedText,this.disabledTab[this.deletedTab]=!0,this.activeTab[this.deletedTab]=!1,this.deletedTab=-1)):(this.errorCount++,this.deletedTab=-1)},error:r=>{console.error(r),this.errorCount++}},s.get(this.dirtyText).subscribe(r=>this.dirtyText=r),s.get(this.warningText).subscribe(r=>this.warningText=r),s.get(this.deletedText).subscribe(r=>this.deletedText=r),s.get(this.newText).subscribe(r=>this.newText=r)}ngOnInit(){let
e=this.parentComponent.groups.findIndex(n=>n===this.group);this.parentComponent.profileGroups[e]=this}onTabOpen(e){this.showDirty();let
n=this.setupService.getCurrentForm();null!=n&&(this.forms[e.index]=n),this.setupService.setCurrentForm(null),this.currentTab=e.index,this.dirtyMessages[this.currentTab]=""}onTabClose(e){this.showDirty(),this.currentTab=-1}showDirty(){-1==this.currentTab||this.disabledTab[this.currentTab]||(this.dirtyMessages[this.currentTab]=this.forms[this.currentTab]&&this.forms[this.currentTab].dirty?this.dirtyText:this.group.RecProfiles[
this.currentTab].Id?"":this.newText)}newProfile(){this.displayNewDialog=!1;for(let
n=0;n<this.activeTab.length;n++)this.activeTab[n]=!1;this.group.RecProfiles.push({Id:0,Name:this.newProfileName.trim(),VideoCodec:"MPEG-4",AudioCodec:"MP3",RecProfParams:[]}),this.currentTab=this.group.RecProfiles.length-1,this.showDirty()}deleteThis(e){this.errorCount=0,this.successCount=0,this.expectedCount=1,this.displayDeleteThis[e]=!1,this.deletedTab=e,this.captureCardService.DeleteRecProfile(this.group.RecProfiles[e].Id).subscribe(this.delObserver)}rejectName(){let
e=this.newProfileName.trim();return""==e||null!=this.group.RecProfiles.find(n=>n.Name==e)}confirm(e){return
oe(window.confirm(e))}canDeactivate(){let
e=this.setupService.getCurrentForm();return!(this.forms[this.currentTab]&&this.forms[this.currentTab].dirty||this.dirtyMessages.find(n=>n==this.dirtyText)||e&&e.dirty)||this.confirm(this.warningText)}allClean(){let
e=this.setupService.getCurrentForm();return!(this.forms[this.currentTab]&
&this.forms[this.currentTab].dirty||this.dirtyMessages.find(n=>n==this.dirtyText)||e&&e.dirty)}onWindowClose(e){let
n=this.setupService.getCurrentForm();(this.forms[this.currentTab]&&this.forms[this.currentTab].dirty||this.dirtyMessages.find(s=>s==this.dirtyText)||n&&n.dirty)&&(e.preventDefault(),e.returnValue=!1)}}return
t.\u0275fac=function(e){return
new(e||t)(D(Gt),D(Me),D(Oe))},t.\u0275cmp=z({type:t,selectors:[["app-profile-group"]],hostBindings:function(e,n){1&e&&C("beforeunload",function(r){return
n.onWindowClose(r)},!1,ni)},inputs:{group:"group",parentComponent:"parentComponent"},decls:19,vars:24,consts:[[1,"block","card","w-full"],["icon","pi
pi-plus-circle","styleClass","p-button-plain",3,"label","onClick"],[3,"header","visible","modal","draggable","resizable","visibleChange"],["pInputText","","id","Name","name","Name","autofocus","",1,"mb-2","form-control","w-full",3,"ngModel","ngModelChange"],["Name","ngModel"],["pTemplate","footer"],[1,"grid","nogutter"],["class","col-12
",4,"ngIf"],[1,"col-12","w-full",3,"onClose","onOpen"],[3,"disabled","selected","selectedChange",4,"ngFor","ngForOf"],["icon","pi
pi-times-circle","styleClass","p-button-plain",3,"label","onClick"],["icon","pi
pi-check-circle","styleClass","p-button-plain",3,"label","disabled","onClick"],[1,"col-12"],["severity","success",3,"text"],["severity","error",3,"text"],[3,"disabled","selected","selectedChange"],["pTemplate","header"],["pTemplate","content"],[1,"grid","w-full"],[1,"col-9","pr-1"],["styleClass","p-button-warning","icon","pi
pi-trash",3,"label","disabled","onClick"],[3,"profile","group","parentComponent"],["icon","pi
pi-times-circle","styleClass","p-button-plain",3,"label","click"],["icon","pi
pi-check-circle","styleClass","p-button-plain",3,"label","click"]],template:function(e,n){1&e&&(l(0,"div",0)(1,"h3"),g(2),m(3,"translate"),c(),l(4,"p-button",1),C("onClick",function(){return
n.displayNewDialog=!0}),m(5,"translate"),c(),l(6,"p-dialog",2),C("visibleChange",function(r){retu
rn
n.displayNewDialog=r}),m(7,"translate"),l(8,"p"),g(9),m(10,"translate"),c(),l(11,"input",3,4),C("ngModelChange",function(r){return
n.newProfileName=r}),c(),_(13,Lne,4,7,"ng-template",5),c(),l(14,"div",6),_(15,One,5,3,"div",7),_(16,Ane,5,3,"div",7),c(),l(17,"p-accordion",8),C("onClose",function(r){return
n.onTabClose(r)})("onOpen",function(r){return
n.onTabOpen(r)}),_(18,Bne,3,2,"p-accordionTab",9),c()()),2&e&&(a(2),We("",f(3,15,"settings.rprofiles.grouptitle"),"
",n.group.Name,""),a(2),x("label",f(5,17,"settings.rprofiles.new_profile")),a(2),q(A(23,IS)),x("header",f(7,19,"settings.rprofiles.new_profile")),p("visible",n.displayNewDialog)("modal",!0)("draggable",!1)("resizable",!1),a(3),S(f(10,21,"settings.rprofiles.enter_profile_name")),a(2),p("ngModel",n.newProfileName),a(4),p("ngIf",n.expectedCount&&n.successCount==n.expectedCount),a(1),p("ngIf",n.errorCount>0),a(2),p("ngForOf",n.group.RecProfiles))},styles:[""]}),t})();const
Hne=["recprofform"],qne=["top"];function Gne(t,i){if(
1&t&&(g(0),m(1,"translate")),2&t){const e=d();We("
",f(1,2,"settings.rprofiles.proftitle")," ",e.profile.Name,"
")}}function Une(t,i){}function zne(t,i){if(1&t){const
e=I();l(0,"div",12)(1,"p-checkbox",13,14),C("ngModelChange",function(s){v(e);const
r=d(2);return
r.profile.RecProfParams[r.findIx("autotranscode",!1)].Value=s}),m(3,"translate"),c(),l(4,"small",15),g(5),m(6,"translate"),c()()}if(2&t){const
e=d(2);a(1),x("label",f(3,4,"settings.rprofiles.autotranscode_label")),p("ngModel",e.profile.RecProfParams[e.findIx("autotranscode",!1)].Value)("binary",!0),a(4),T("
",f(6,6,"settings.rprofiles.autotranscode_desc")," ")}}function
jne(t,i){if(1&t){const
e=I();l(0,"div",12)(1,"label",16),g(2),m(3,"translate"),c(),l(4,"p-inputNumber",17),C("ngModelChange",function(s){v(e);const
r=d(2);return
r.profile.RecProfParams[r.findIx("width","480")].Value=s}),c(),l(5,"small",15),g(6),m(7,"translate"),c()()}if(2&t){const
e=d(2);a(2),S(f(3,7,"settings.rprofiles.width_label")),a(2),p("ngModel",e.pro
file.RecProfParams[e.findIx("width","480")].Value)("showButtons",!0)("min",160)("max",720)("step",16),a(2),T("
",f(7,9,"settings.rprofiles.width_desc")," ")}}function
$ne(t,i){if(1&t){const
e=I();l(0,"div",12)(1,"label",18),g(2),m(3,"translate"),c(),l(4,"p-inputNumber",19),C("ngModelChange",function(s){v(e);const
r=d(2);return
r.profile.RecProfParams[r.findIx("height","480")].Value=s}),c(),l(5,"small",15),g(6),m(7,"translate"),c()()}if(2&t){const
e=d(2);a(2),S(f(3,7,"settings.rprofiles.height_label")),a(2),p("ngModel",e.profile.RecProfParams[e.findIx("height","480")].Value)("showButtons",!0)("min",160)("max",480)("step",16),a(2),T("
",f(7,9,"settings.rprofiles.height_desc")," ")}}const
Ms=function(){return{minWidth:"400px"}};function Wne(t,i){if(1&t){const
e=I();l(0,"div",12)(1,"label",20),g(2),m(3,"translate"),c(),l(4,"p-dropdown",21,22),C("ngModelChange",function(s){v(e);const
r=d(2);return
r.profile.RecProfParams[r.findIx("recordingtype","all")].Value=s}),c(),l(6,"small",15),g(7)
,m(8,"translate"),c()()}if(2&t){const
e=d(2);a(2),S(f(3,8,"settings.rprofiles.recordingtype_label")),a(2),q(A(12,Ms)),p("options",e.recordingtypeOptions)("ngModel",e.profile.RecProfParams[e.findIx("recordingtype","all")].Value)("editable",!1)("maxlength",0),a(3),T("
",f(8,10,"settings.rprofiles.recordingtype_desc")," ")}}function
Kne(t,i){if(1&t){const
e=I();l(0,"div",12)(1,"p-checkbox",23,24),C("ngModelChange",function(s){v(e);const
r=d(2);return
r.profile.RecProfParams[r.findIx("recordmpts",!1)].Value=s}),m(3,"translate"),c(),l(4,"small",15),g(5),m(6,"translate"),c()()}if(2&t){const
e=d(2);a(1),x("label",f(3,4,"settings.rprofiles.recordmpts_label")),p("ngModel",e.profile.RecProfParams[e.findIx("recordmpts",!1)].Value)("binary",!0),a(4),T("
",f(6,6,"settings.rprofiles.recordmpts_desc")," ")}}function
Qne(t,i){if(1&t){const
e=I();l(0,"div",12)(1,"label",26),g(2),m(3,"translate"),c(),l(4,"p-dropdown",27,28),C("ngModelChange",function(s){return
v(e),d(3).profile.VideoCodec=s}),c(),k(6
,"small",15),c()}if(2&t){const
e=d(3);a(2),S(f(3,7,"settings.rprofiles.videocodec_label")),a(2),q(A(9,Ms)),p("options",e.params.Video)("ngModel",e.profile.VideoCodec)("editable",!1)("maxlength",0)}}function
Jne(t,i){if(1&t){const
e=I();l(0,"div",12)(1,"label",29),g(2),m(3,"translate"),c(),l(4,"p-inputNumber",30),C("ngModelChange",function(s){v(e);const
r=d(3);return
r.profile.RecProfParams[r.findIx("rtjpegquality","170")].Value=s}),c(),l(5,"small",15),g(6),m(7,"translate"),c()()}if(2&t){const
e=d(3);a(2),S(f(3,7,"settings.rprofiles.rtjpegquality_label")),a(2),p("ngModel",e.profile.RecProfParams[e.findIx("rtjpegquality","170")].Value)("showButtons",!0)("min",1)("max",255)("step",1),a(2),T("
",f(7,9,"settings.rprofiles.rtjpegquality_desc")," ")}}function
Yne(t,i){if(1&t){const
e=I();l(0,"div",12)(1,"label",31),g(2),m(3,"translate"),c(),l(4,"p-inputNumber",32),C("ngModelChange",function(s){v(e);const
r=d(3);return
r.profile.RecProfParams[r.findIx("rtjpeglumafilter","0")].Value=s}),c(),
l(5,"small",15),g(6),m(7,"translate"),c()()}if(2&t){const
e=d(3);a(2),S(f(3,7,"settings.rprofiles.rtjpeglumafilter_label")),a(2),p("ngModel",e.profile.RecProfParams[e.findIx("rtjpeglumafilter","0")].Value)("showButtons",!0)("min",0)("max",31)("step",1),a(2),T("
",f(7,9,"settings.rprofiles.rtjpegfilter_desc")," ")}}function
Zne(t,i){if(1&t){const
e=I();l(0,"div",12)(1,"label",33),g(2),m(3,"translate"),c(),l(4,"p-inputNumber",34),C("ngModelChange",function(s){v(e);const
r=d(3);return
r.profile.RecProfParams[r.findIx("rtjpegchromafilter","0")].Value=s}),c(),l(5,"small",15),g(6),m(7,"translate"),c()()}if(2&t){const
e=d(3);a(2),S(f(3,7,"settings.rprofiles.rtjpegchromafilter_label")),a(2),p("ngModel",e.profile.RecProfParams[e.findIx("rtjpegchromafilter","0")].Value)("showButtons",!0)("min",0)("max",31)("step",1),a(2),T("
",f(7,9,"settings.rprofiles.rtjpegfilter_desc")," ")}}function
Xne(t,i){if(1&t){const
e=I();l(0,"div",12)(1,"label",35),g(2),m(3,"translate"),c(),l(4,"p-inputNumber",36),
C("ngModelChange",function(s){v(e);const r=d(3);return
r.profile.RecProfParams[r.findIx("mpeg4bitrate","2200")].Value=s}),c(),l(5,"small",15),g(6),m(7,"translate"),c()()}if(2&t){const
e=d(3);a(2),S(f(3,7,"settings.rprofiles.mpeg4bitrate_label")),a(2),p("ngModel",e.profile.RecProfParams[e.findIx("mpeg4bitrate","2200")].Value)("showButtons",!0)("min",100)("max",8e3)("step",100),a(2),T("
",f(7,9,"settings.rprofiles.mpeg4bitrate_desc")," ")}}function
eie(t,i){if(1&t){const
e=I();l(0,"div",12)(1,"label",37),g(2),m(3,"translate"),c(),l(4,"p-inputNumber",38),C("ngModelChange",function(s){v(e);const
r=d(3);return
r.profile.RecProfParams[r.findIx("mpeg4maxquality","2")].Value=s}),c(),l(5,"small",15),g(6),m(7,"translate"),c()()}if(2&t){const
e=d(3);a(2),S(f(3,7,"settings.rprofiles.mpeg4maxquality_label")),a(2),p("ngModel",e.profile.RecProfParams[e.findIx("mpeg4maxquality","2")].Value)("showButtons",!0)("min",1)("max",31)("step",1),a(2),T("
",f(7,9,"settings.rprofiles.mpeg4quality_desc")," ")}
}function tie(t,i){if(1&t){const
e=I();l(0,"div",12)(1,"label",39),g(2),m(3,"translate"),c(),l(4,"p-inputNumber",40),C("ngModelChange",function(s){v(e);const
r=d(3);return
r.profile.RecProfParams[r.findIx("mpeg4minquality","15")].Value=s}),c(),l(5,"small",15),g(6),m(7,"translate"),c()()}if(2&t){const
e=d(3);a(2),S(f(3,7,"settings.rprofiles.mpeg4minquality_label")),a(2),p("ngModel",e.profile.RecProfParams[e.findIx("mpeg4minquality","15")].Value)("showButtons",!0)("min",1)("max",31)("step",1),a(2),T("
",f(7,9,"settings.rprofiles.mpeg4quality_desc")," ")}}function
nie(t,i){if(1&t){const
e=I();l(0,"div",12)(1,"label",41),g(2),m(3,"translate"),c(),l(4,"p-inputNumber",42),C("ngModelChange",function(s){v(e);const
r=d(3);return
r.profile.RecProfParams[r.findIx("hardwaremjpegquality","100")].Value=s}),c(),k(5,"small",15),c()}if(2&t){const
e=d(3);a(2),S(f(3,6,"settings.rprofiles.hardwaremjpegquality_label")),a(2),p("ngModel",e.profile.RecProfParams[e.findIx("hardwaremjpegquality","100")].Valu
e)("showButtons",!0)("min",0)("max",100)("step",1)}}const
RS=function(){return["1","2","4"]};function
iie(t,i){if(1&t){const
e=I();l(0,"div",12)(1,"label",43),g(2),m(3,"translate"),c(),l(4,"p-dropdown",44,45),C("ngModelChange",function(s){v(e);const
r=d(3);return
r.profile.RecProfParams[r.findIx("hardwaremjpeghdecimation","2")].Value=s}),c(),k(6,"small",15),c()}if(2&t){const
e=d(3);a(2),S(f(3,7,"settings.rprofiles.hardwaremjpeghdecimation_label")),a(2),q(A(9,Ms)),p("options",A(10,RS))("ngModel",e.profile.RecProfParams[e.findIx("hardwaremjpeghdecimation","2")].Value)("editable",!1)("maxlength",0)}}function
sie(t,i){if(1&t){const
e=I();l(0,"div",12)(1,"label",46),g(2),m(3,"translate"),c(),l(4,"p-dropdown",47,48),C("ngModelChange",function(s){v(e);const
r=d(3);return
r.profile.RecProfParams[r.findIx("hardwaremjpegvdecimation","2")].Value=s}),c(),k(6,"small",15),c()}if(2&t){const
e=d(3);a(2),S(f(3,7,"settings.rprofiles.hardwaremjpegvdecimation_label")),a(2),q(A(9,Ms)),p("options",A(10,R
S))("ngModel",e.profile.RecProfParams[e.findIx("hardwaremjpegvdecimation","2")].Value)("editable",!1)("maxlength",0)}}function
rie(t,i){if(1&t){const
e=I();l(0,"div",12)(1,"label",49),g(2),m(3,"translate"),c(),l(4,"p-inputNumber",50),C("ngModelChange",function(s){v(e);const
r=d(3);return
r.profile.RecProfParams[r.findIx("mpeg4qualdiff","3")].Value=s}),c(),l(5,"small",15),g(6),m(7,"translate"),c()()}if(2&t){const
e=d(3);a(2),S(f(3,7,"settings.rprofiles.mpeg4qualdiff_label")),a(2),p("ngModel",e.profile.RecProfParams[e.findIx("mpeg4qualdiff","3")].Value)("showButtons",!0)("min",1)("max",31)("step",1),a(2),T("
",f(7,9,"settings.rprofiles.mpeg4quality_desc")," ")}}function
oie(t,i){if(1&t){const
e=I();l(0,"div",12)(1,"label",51),g(2),m(3,"translate"),c(),l(4,"p-dropdown",52,53),C("ngModelChange",function(s){v(e);const
r=d(3);return
r.profile.RecProfParams[r.findIx("mpeg2streamtype","2")].Value=s}),c(),l(6,"small",15),g(7),m(8,"translate"),c()()}if(2&t){const
e=d(3);a(2),S(f(3,8,"settings
.rprofiles.mpeg2streamtype_label")),a(2),q(A(12,Ms)),p("options",e.streamTypeOptions)("ngModel",e.profile.RecProfParams[e.findIx("mpeg2streamtype","2")].Value)("editable",!1)("maxlength",0),a(3),T("
",f(8,10,"settings.rprofiles.mpeg2streamtype_desc")," ")}}const
aie=function(){return["Square","4:3","16:9","2.21:1"]};function
lie(t,i){if(1&t){const
e=I();l(0,"div",12)(1,"label",54),g(2),m(3,"translate"),c(),l(4,"p-dropdown",55,56),C("ngModelChange",function(s){v(e);const
r=d(3);return
r.profile.RecProfParams[r.findIx("mpeg2aspectratio","Square")].Value=s}),c(),l(6,"small",15),g(7),m(8,"translate"),c()()}if(2&t){const
e=d(3);a(2),S(f(3,8,"settings.rprofiles.mpeg2aspectratio_label")),a(2),q(A(12,Ms)),p("options",A(13,aie))("ngModel",e.profile.RecProfParams[e.findIx("mpeg2aspectratio","Square")].Value)("editable",!1)("maxlength",0),a(3),T("
",f(8,10,"settings.rprofiles.mpeg2aspectratio_desc"),"
")}}function cie(t,i){if(1&t){const
e=I();l(0,"div",12)(1,"label",57),g(2),m(3,"translate"),c
(),l(4,"p-inputNumber",58),C("ngModelChange",function(s){v(e);const
r=d(3);return
r.profile.RecProfParams[r.findIx("mpeg2bitrate","6000")].Value=s}),c(),l(5,"small",15),g(6),m(7,"translate"),c()()}if(2&t){const
e=d(3);a(2),S(f(3,7,"settings.rprofiles.mpeg2bitrate_label")),a(2),p("ngModel",e.profile.RecProfParams[e.findIx("mpeg2bitrate","6000")].Value)("showButtons",!0)("min",1e3)("max",16e3)("step",100),a(2),T("
",f(7,9,"settings.rprofiles.mpeg2bitrate_desc")," ")}}function
uie(t,i){if(1&t){const
e=I();l(0,"div",12)(1,"label",59),g(2),m(3,"translate"),c(),l(4,"p-inputNumber",60),C("ngModelChange",function(s){v(e);const
r=d(3);return
r.profile.RecProfParams[r.findIx("mpeg2maxbitrate","4500")].Value=s}),c(),l(5,"small",15),g(6),m(7,"translate"),c()()}if(2&t){const
e=d(3);a(2),S(f(3,7,"settings.rprofiles.mpeg2maxbitrate_label")),a(2),p("ngModel",e.profile.RecProfParams[e.findIx("mpeg2maxbitrate","4500")].Value)("showButtons",!0)("min",1e3)("max",16e3)("step",100),a(2),T("
",f(7,9,"sett
ings.rprofiles.mpeg2maxbitrate_desc")," ")}}function
die(t,i){if(1&t){const
e=I();l(0,"p-fieldset",25),m(1,"translate"),l(2,"div",12)(3,"label",61),g(4),m(5,"translate"),c(),l(6,"p-inputNumber",62),C("ngModelChange",function(s){v(e);const
r=d(3);return
r.profile.RecProfParams[r.findIx("low_mpeg4avgbitrate","4500")].Value=s}),c(),l(7,"small",15),g(8),m(9,"translate"),c()(),l(10,"div",12)(11,"label",63),g(12),m(13,"translate"),c(),l(14,"p-inputNumber",64),C("ngModelChange",function(s){v(e);const
r=d(3);return
r.profile.RecProfParams[r.findIx("low_mpeg4peakbitrate","6000")].Value=s}),c(),l(15,"small",15),g(16),m(17,"translate"),c()()()}if(2&t){const
e=d(3);x("legend",f(1,17,"settings.rprofiles.lowres_label")),p("toggleable",!0)("collapsed",!0),a(4),S(f(5,19,"settings.rprofiles.mpeg2bitrate_label")),a(2),p("ngModel",e.profile.RecProfParams[e.findIx("low_mpeg4avgbitrate","4500")].Value)("showButtons",!0)("min",1e3)("max",13500)("step",500),a(2),T("
",f(9,21,"settings.rprofiles.mpeg2bitra
te_desc"),"
"),a(4),S(f(13,23,"settings.rprofiles.mpeg2maxbitrate_label")),a(2),p("ngModel",e.profile.RecProfParams[e.findIx("low_mpeg4peakbitrate","6000")].Value)("showButtons",!0)("min",1100)("max",20200)("step",500),a(2),T("
",f(17,25,"settings.rprofiles.mpeg2maxbitrate_desc"),"
")}}function pie(t,i){if(1&t){const
e=I();l(0,"p-fieldset",25),m(1,"translate"),l(2,"div",12)(3,"label",65),g(4),m(5,"translate"),c(),l(6,"p-inputNumber",66),C("ngModelChange",function(s){v(e);const
r=d(3);return
r.profile.RecProfParams[r.findIx("medium_mpeg4avgbitrate","9000")].Value=s}),c(),l(7,"small",15),g(8),m(9,"translate"),c()(),l(10,"div",12)(11,"label",67),g(12),m(13,"translate"),c(),l(14,"p-inputNumber",68),C("ngModelChange",function(s){v(e);const
r=d(3);return
r.profile.RecProfParams[r.findIx("medium_mpeg4peakbitrate","11000")].Value=s}),c(),l(15,"small",15),g(16),m(17,"translate"),c()()()}if(2&t){const
e=d(3);x("legend",f(1,17,"settings.rprofiles.medres_label")),p("toggleable",!0)("collapsed",
!0),a(4),S(f(5,19,"settings.rprofiles.mpeg2bitrate_label")),a(2),p("ngModel",e.profile.RecProfParams[e.findIx("medium_mpeg4avgbitrate","9000")].Value)("showButtons",!0)("min",1e3)("max",13500)("step",500),a(2),T("
",f(9,21,"settings.rprofiles.mpeg2bitrate_desc"),"
"),a(4),S(f(13,23,"settings.rprofiles.mpeg2maxbitrate_label")),a(2),p("ngModel",e.profile.RecProfParams[e.findIx("medium_mpeg4peakbitrate","11000")].Value)("showButtons",!0)("min",1100)("max",20200)("step",500),a(2),T("
",f(17,25,"settings.rprofiles.mpeg2maxbitrate_desc"),"
")}}function hie(t,i){if(1&t){const
e=I();l(0,"p-fieldset",25),m(1,"translate"),l(2,"div",12)(3,"label",69),g(4),m(5,"translate"),c(),l(6,"p-inputNumber",70),C("ngModelChange",function(s){v(e);const
r=d(3);return
r.profile.RecProfParams[r.findIx("high_mpeg4avgbitrate","13500")].Value=s}),c(),l(7,"small",15),g(8),m(9,"translate"),c()(),l(10,"div",12)(11,"label",71),g(12),m(13,"translate"),c(),l(14,"p-inputNumber",72),C("ngModelChange",function(s){v(e);co
nst r=d(3);return
r.profile.RecProfParams[r.findIx("high_mpeg4peakbitrate","20200")].Value=s}),c(),l(15,"small",15),g(16),m(17,"translate"),c()()()}if(2&t){const
e=d(3);x("legend",f(1,17,"settings.rprofiles.highres_label")),p("toggleable",!0)("collapsed",!0),a(4),S(f(5,19,"settings.rprofiles.mpeg2bitrate_label")),a(2),p("ngModel",e.profile.RecProfParams[e.findIx("high_mpeg4avgbitrate","13500")].Value)("showButtons",!0)("min",1e3)("max",13500)("step",500),a(2),T("
",f(9,21,"settings.rprofiles.mpeg2bitrate_desc"),"
"),a(4),S(f(13,23,"settings.rprofiles.mpeg2maxbitrate_label")),a(2),p("ngModel",e.profile.RecProfParams[e.findIx("high_mpeg4peakbitrate","20200")].Value)("showButtons",!0)("min",1100)("max",20200)("step",500),a(2),T("
",f(17,25,"settings.rprofiles.mpeg2maxbitrate_desc"),"
")}}function mie(t,i){if(1&t){const
e=I();l(0,"div",12)(1,"p-checkbox",73,74),C("ngModelChange",function(s){v(e);const
r=d(3);return
r.profile.RecProfParams[r.findIx("scalebitrate",!0)].Value=s}),m(3,"tran
slate"),c(),l(4,"small",15),g(5),m(6,"translate"),c()()}if(2&t){const
e=d(3);a(1),x("label",f(3,4,"settings.rprofiles.scalebitrate_label")),p("ngModel",e.profile.RecProfParams[e.findIx("scalebitrate",!0)].Value)("binary",!0),a(4),T("
",f(6,6,"settings.rprofiles.scalebitrate_desc")," ")}}function
fie(t,i){if(1&t){const
e=I();l(0,"div",12)(1,"p-checkbox",75,76),C("ngModelChange",function(s){v(e);const
r=d(3);return
r.profile.RecProfParams[r.findIx("mpeg4optionvhq",!1)].Value=s}),m(3,"translate"),c(),l(4,"small",15),g(5),m(6,"translate"),c()()}if(2&t){const
e=d(3);a(1),x("label",f(3,4,"settings.rprofiles.mpeg4optionvhq_label")),p("ngModel",e.profile.RecProfParams[e.findIx("mpeg4optionvhq",!1)].Value)("binary",!0),a(4),T("
",f(6,6,"settings.rprofiles.mpeg4optionvhq_desc")," ")}}function
gie(t,i){if(1&t){const
e=I();l(0,"div",12)(1,"p-checkbox",77,78),C("ngModelChange",function(s){v(e);const
r=d(3);return
r.profile.RecProfParams[r.findIx("mpeg4option4mv",!1)].Value=s}),m(3,"translate"),c
(),l(4,"small",15),g(5),m(6,"translate"),c()()}if(2&t){const
e=d(3);a(1),x("label",f(3,4,"settings.rprofiles.mpeg4option4mv_label")),p("ngModel",e.profile.RecProfParams[e.findIx("mpeg4option4mv",!1)].Value)("binary",!0),a(4),T("
",f(6,6,"settings.rprofiles.mpeg4option4mv_desc")," ")}}function
_ie(t,i){if(1&t){const
e=I();l(0,"div",12)(1,"p-checkbox",79,80),C("ngModelChange",function(s){v(e);const
r=d(3);return
r.profile.RecProfParams[r.findIx("mpeg4optionidct",!1)].Value=s}),m(3,"translate"),c(),l(4,"small",15),g(5),m(6,"translate"),c()()}if(2&t){const
e=d(3);a(1),x("label",f(3,4,"settings.rprofiles.mpeg4optionidct_label")),p("ngModel",e.profile.RecProfParams[e.findIx("mpeg4optionidct",!1)].Value)("binary",!0),a(4),T("
",f(6,6,"settings.rprofiles.mpeg4optionidct_desc")," ")}}function
bie(t,i){if(1&t){const
e=I();l(0,"div",12)(1,"p-checkbox",81,82),C("ngModelChange",function(s){v(e);const
r=d(3);return
r.profile.RecProfParams[r.findIx("mpeg4optionime",!1)].Value=s}),m(3,"translate"),
c(),l(4,"small",15),g(5),m(6,"translate"),c()()}if(2&t){const
e=d(3);a(1),x("label",f(3,4,"settings.rprofiles.mpeg4optionime_label")),p("ngModel",e.profile.RecProfParams[e.findIx("mpeg4optionime",!1)].Value)("binary",!0),a(4),T("
",f(6,6,"settings.rprofiles.mpeg4optionime_desc")," ")}}function
vie(t,i){if(1&t){const
e=I();l(0,"div",12)(1,"label",83),g(2),m(3,"translate"),c(),l(4,"p-inputNumber",84),C("ngModelChange",function(s){v(e);const
r=d(3);return
r.profile.RecProfParams[r.findIx("encodingthreadcount","1")].Value=s}),c(),l(5,"small",15),g(6),m(7,"translate"),c()()}if(2&t){const
e=d(3);a(2),S(f(3,7,"settings.rprofiles.encodingthreadcount_label")),a(2),p("ngModel",e.profile.RecProfParams[e.findIx("encodingthreadcount","1")].Value)("showButtons",!0)("min",1)("max",8)("step",1),a(2),T("
",f(7,9,"settings.rprofiles.encodingthreadcount_desc"),"
")}}function
Cie(t,i){if(1&t&&(l(0,"p-fieldset",25),m(1,"translate"),_(2,Qne,7,10,"div",10),_(3,Jne,8,11,"div",10),_(4,Yne,8,11,"div",10),_(5
,Zne,8,11,"div",10),_(6,Xne,8,11,"div",10),_(7,eie,8,11,"div",10),_(8,tie,8,11,"div",10),_(9,nie,6,8,"div",10),_(10,iie,7,11,"div",10),_(11,sie,7,11,"div",10),_(12,rie,8,11,"div",10),_(13,oie,9,13,"div",10),_(14,lie,9,14,"div",10),_(15,cie,8,11,"div",10),_(16,uie,8,11,"div",10),_(17,die,18,27,"p-fieldset",11),_(18,pie,18,27,"p-fieldset",11),_(19,hie,18,27,"p-fieldset",11),_(20,mie,7,8,"div",10),_(21,fie,7,8,"div",10),_(22,gie,7,8,"div",10),_(23,_ie,7,8,"div",10),_(24,bie,7,8,"div",10),_(25,vie,8,11,"div",10),c()),2&t){const
e=d(2);x("legend",f(1,27,"settings.rprofiles.video_label")),p("toggleable",!0)("collapsed",!0),a(2),p("ngIf",e.params.Video.length>0),a(1),p("ngIf","RTjpeg"==e.profile.VideoCodec),a(1),p("ngIf","RTjpeg"==e.profile.VideoCodec),a(1),p("ngIf","RTjpeg"==e.profile.VideoCodec),a(1),p("ngIf","MPEG-4"==e.profile.VideoCodec),a(1),p("ngIf","MPEG-4"==e.profile.VideoCodec),a(1),p("ngIf","MPEG-4"==e.profile.VideoCodec),a(1),p("ngIf","Hardware
MJPEG"==e.profile.VideoCodec),a(1
),p("ngIf","Hardware
MJPEG"==e.profile.VideoCodec),a(1),p("ngIf","Hardware
MJPEG"==e.profile.VideoCodec),a(1),p("ngIf","MPEG-4"==e.profile.VideoCodec),a(1),p("ngIf","MPEG-2
Hardware Encoder"==e.profile.VideoCodec),a(1),p("ngIf","MPEG-2
Hardware
Encoder"==e.profile.VideoCodec),a(1),p("ngIf","MPEG-2"==e.profile.VideoCodec||"MPEG-2
Hardware Encoder"==e.profile.VideoCodec),a(1),p("ngIf","MPEG-2
Hardware Encoder"==e.profile.VideoCodec),a(1),p("ngIf","MPEG-4 AVC
Hardware Encoder"==e.profile.VideoCodec),a(1),p("ngIf","MPEG-4 AVC
Hardware Encoder"==e.profile.VideoCodec),a(1),p("ngIf","MPEG-4 AVC
Hardware
Encoder"==e.profile.VideoCodec),a(1),p("ngIf","MPEG-4"==e.profile.VideoCodec||"MPEG-2"==e.profile.VideoCodec),a(1),p("ngIf","MPEG-4"==e.profile.VideoCodec),a(1),p("ngIf","MPEG-4"==e.profile.VideoCodec),a(1),p("ngIf","MPEG-4"==e.profile.VideoCodec),a(1),p("ngIf","MPEG-4"==e.profile.VideoCodec),a(1),p("ngIf","MPEG-4"==e.profile.VideoCodec||"MPEG-2"==e.profile.VideoCodec)}}function
yie(t,i){if
(1&t){const
e=I();l(0,"div",12)(1,"label",85),g(2),m(3,"translate"),c(),l(4,"p-dropdown",86,87),C("ngModelChange",function(s){return
v(e),d(3).profile.AudioCodec=s}),c(),k(6,"small",15),c()}if(2&t){const
e=d(3);a(2),S(f(3,7,"settings.rprofiles.audiocodec_label")),a(2),q(A(9,Ms)),p("options",e.params.Audio)("ngModel",e.profile.AudioCodec)("editable",!1)("maxlength",0)}}function
wie(t,i){if(1&t){const
e=I();l(0,"div",12)(1,"label",88),g(2),m(3,"translate"),c(),l(4,"p-dropdown",89,90),C("ngModelChange",function(s){v(e);const
r=d(3);return
r.profile.RecProfParams[r.findIx("samplerate","32000")].Value=s}),c(),l(6,"small",15),g(7),m(8,"translate"),c()()}if(2&t){const
e=d(3);a(2),S(f(3,8,"settings.rprofiles.samplerate_label")),a(2),q(A(12,Ms)),p("options",e.samplerateOptions)("ngModel",e.profile.RecProfParams[e.findIx("samplerate","32000")].Value)("editable",!1)("maxlength",0),a(3),T("
",f(8,10,"settings.rprofiles.samplerate_desc")," ")}}function
Tie(t,i){if(1&t){const e=I();l(0,"div",12)(
1,"label",91),g(2),m(3,"translate"),c(),l(4,"p-dropdown",92,93),C("ngModelChange",function(s){v(e);const
r=d(3);return
r.profile.RecProfParams[r.findIx("mpeg2language","32000")].Value=s}),c(),l(6,"small",15),g(7),m(8,"translate"),c()()}if(2&t){const
e=d(3);a(2),S(f(3,8,"settings.rprofiles.mpeg2language_label")),a(2),q(A(12,Ms)),p("options",e.mpeg2languageOptions)("ngModel",e.profile.RecProfParams[e.findIx("mpeg2language","32000")].Value)("editable",!1)("maxlength",0),a(3),T("
",f(8,10,"settings.rprofiles.mpeg2language_desc")," ")}}function
Sie(t,i){if(1&t){const
e=I();l(0,"div",12)(1,"label",94),g(2),m(3,"translate"),c(),l(4,"p-inputNumber",95),C("ngModelChange",function(s){v(e);const
r=d(3);return
r.profile.RecProfParams[r.findIx("mp3quality","1")].Value=s}),c(),l(5,"small",15),g(6),m(7,"translate"),c()()}if(2&t){const
e=d(3);a(2),S(f(3,7,"settings.rprofiles.mp3quality_label")),a(2),p("ngModel",e.profile.RecProfParams[e.findIx("mp3quality","1")].Value)("showButtons",!0)("min",1)("m
ax",9)("step",1),a(2),T("
",f(7,9,"settings.rprofiles.mp3quality_desc")," ")}}function
xie(t,i){if(1&t){const
e=I();l(0,"div",12)(1,"label",96),g(2),m(3,"translate"),c(),l(4,"p-inputNumber",97),C("ngModelChange",function(s){v(e);const
r=d(3);return
r.profile.RecProfParams[r.findIx("volume","90")].Value=s}),c(),l(5,"small",15),g(6),m(7,"translate"),c()()}if(2&t){const
e=d(3);a(2),S(f(3,7,"settings.rprofiles.volume_label")),a(2),p("ngModel",e.profile.RecProfParams[e.findIx("volume","90")].Value)("showButtons",!0)("min",0)("max",100)("step",1),a(2),T("
",f(7,9,"settings.rprofiles.volume_desc")," ")}}function
Die(t,i){if(1&t){const
e=I();l(0,"div",12)(1,"label",98),g(2),m(3,"translate"),c(),l(4,"p-inputNumber",99),C("ngModelChange",function(s){v(e);const
r=d(3);return
r.profile.RecProfParams[r.findIx("mpeg2audvolume","90")].Value=s}),c(),l(5,"small",15),g(6),m(7,"translate"),c()()}if(2&t){const
e=d(3);a(2),S(f(3,7,"settings.rprofiles.volume_label")),a(2),p("ngModel",e.profile.RecProfPar
ams[e.findIx("mpeg2audvolume","90")].Value)("showButtons",!0)("min",0)("max",100)("step",1),a(2),T("
",f(7,9,"settings.rprofiles.mpeg2audvolume_desc")," ")}}function
Mie(t,i){if(1&t&&(l(0,"p-fieldset",25),m(1,"translate"),_(2,yie,7,10,"div",10),_(3,wie,9,13,"div",10),_(4,Tie,9,13,"div",10),_(5,Sie,8,11,"div",10),_(6,xie,8,11,"div",10),_(7,Die,8,11,"div",10),c()),2&t){const
e=d(2);x("legend",f(1,9,"settings.rprofiles.audio_label")),p("toggleable",!0)("collapsed",!0),a(2),p("ngIf",e.params.Audio.length>0),a(1),p("ngIf","MP3"==e.profile.AudioCodec||"MPEG-2
Hardware
Encoder"==e.profile.AudioCodec||"Uncompressed"==e.profile.AudioCodec),a(1),p("ngIf","MPEG-2
Hardware
Encoder"==e.profile.AudioCodec),a(1),p("ngIf","MP3"==e.profile.AudioCodec),a(1),p("ngIf","MP3"==e.profile.AudioCodec||"Uncompressed"==e.profile.AudioCodec),a(1),p("ngIf","MPEG-2
Hardware Encoder"==e.profile.AudioCodec)}}function
kie(t,i){if(1&t&&(l(0,"div",8)(1,"div",9),_(2,zne,7,8,"div",10),_(3,jne,8,11,"div",10),_(4,$ne,8,1
1,"div",10),_(5,Wne,9,13,"div",10),_(6,Kne,7,8,"div",10),_(7,Cie,26,29,"p-fieldset",11),_(8,Mie,8,11,"p-fieldset",11),c()()),2&t){const
e=d();a(2),p("ngIf",e.params.Param.includes("autotranscode")),a(1),p("ngIf",e.params.Param.includes("width")),a(1),p("ngIf",e.params.Param.includes("height")),a(1),p("ngIf",e.params.Param.includes("recordingtype")),a(1),p("ngIf",e.params.Param.includes("recordmpts")),a(1),p("ngIf",e.params.Video.length>0),a(1),p("ngIf",e.params.Audio.length>0)}}function
Iie(t,i){1&t&&(k(0,"p-message",105),m(1,"translate")),2&t&&x("text",f(1,1,"common.savesuccess"))}function
Eie(t,i){1&t&&(k(0,"p-message",106),m(1,"translate")),2&t&&x("text",f(1,1,"common.networkfail"))}function
Rie(t,i){if(1&t){const
e=I();l(0,"div",100)(1,"div",101),_(2,Iie,2,3,"p-message",102),_(3,Eie,2,3,"p-message",103),c(),l(4,"p-button",104),C("onClick",function(){v(e);const
s=d(),r=F(1);return
s.saveForm(1),r.form.markAsPristine()}),m(5,"translate"),c()()}if(2&t){const
e=d(),n=F(1);a(2),p("ng
If",e.successCount>0&&0==e.errorCount&&!n.dirty),a(1),p("ngIf",e.errorCount>0),a(1),x("label",f(5,4,"common.save")),p("disabled",!n.dirty||e.setupService.schedulingEnabled)}}let
Lie=(()=>{class
t{constructor(e,n,s){this.translate=e,this.captureCardService=n,this.setupService=s,this.successCount=0,this.errorCount=0,this.expectedCount=0,this.paramList=[{CardType:"V4L",Param:["autotranscode","height","width"],Video:["RTjpeg","MPEG-4"],Audio:["MP3","Uncompressed"]},{CardType:"MPEG",Param:["autotranscode","height","width"],Video:["MPEG-2
Hardware Encoder"],Audio:["MPEG-2 Hardware
Encoder"]},{CardType:"MJPEG",Param:["autotranscode","height","width"],Video:["Hardware
MJPEG"],Audio:["MP3","Uncompressed"]},{CardType:"HDTV",Param:["autotranscode","height","width"],Video:["RTjpeg","MPEG-4"],Audio:["MP3","Uncompressed"]},{CardType:"DVB",Param:["autotranscode","recordingtype","recordmpts"],Video:[],Audio:[]},{CardType:"FIREWIRE",Param:["autotranscode"],Video:[],Audio:[]},{CardType:"GO7007",Param
:["autotranscode","height","width"],Video:["MPEG-4","MPEG-2"],Audio:["MP3","Uncompressed"]},{CardType:"IMPORT",Param:["autotranscode"],Video:[],Audio:[]},{CardType:"FREEBOX",Param:["autotranscode","recordmpts"],Video:[],Audio:[]},{CardType:"HDHOMERUN",Param:["autotranscode","recordingtype","recordmpts"],Video:[],Audio:[]},{CardType:"CRC_IP",Param:["autotranscode","height","width"],Video:["RTjpeg","MPEG-4"],Audio:["MP3","Uncompressed"]},{CardType:"HDPVR",Param:["autotranscode"],Video:["MPEG-4
AVC Hardware Encoder"],Audio:["AC3 Hardware Encoder","AAC Hardware
Encoder"]},{CardType:"ASI",Param:["autotranscode","recordmpts"],Video:[],Audio:[]},{CardType:"OCUR",Param:["autotranscode","height","width"],Video:["RTjpeg","MPEG-4"],Audio:["MP3","Uncompressed"]},{CardType:"CETON",Param:["autotranscode","recordmpts"],Video:[],Audio:[]},{CardType:"VBOX",Param:["autotranscode","recordmpts"],Video:[],Audio:[]},{CardType:"SATIP",Param:["autotranscode","recordingtype","recordmpts"],Video:[],Audio:[]}
,{CardType:"V4L2:uvcvideo",Param:["autotranscode","height","width"],Video:["V4L2:MPEG-2
Video"],Audio:["V4L2:MPEG-1/2 Layer II
encoding"]},{CardType:"TRANSCODE",Param:["autotranscode","height","width"],Video:["RTjpeg","MPEG-4"],Audio:["MP3","Uncompressed"]}],this.params={CardType:"",Param:[""],Video:[""],Audio:[""]},this.videoParamList=[{Codec:"RTjpeg",Param:["rtjpegquality","rtjpeglumafilter","rtjpegchromafilter"]},{Codec:"MPEG-4",Param:["mpeg4bitrate","mpeg4maxquality","mpeg4minquality","mpeg4qualdiff","scalebitrate","mpeg4optionvhq","mpeg4option4mv","mpeg4optionidct","mpeg4optionime","encodingthreadcount"]},{Codec:"MPEG-2",Param:["mpeg2bitrate","scalebitrate","encodingthreadcount"]},{Codec:"Hardware
MJPEG",Param:["hardwaremjpegquality","hardwaremjpeghdecimation","hardwaremjpegvdecimation"]},{Codec:"MPEG-2
Hardware
Encoder",Param:["mpeg2streamtype","mpeg2aspectratio","mpeg2bitrate","mpeg2maxbitrate"]},{Codec:"MPEG-4
AVC Hardware Encoder",Param:["low_mpeg4avgbitrate","low_mpeg4peak
bitrate","medium_mpeg4avgbitrate","medium_mpeg4peakbitrate","high_mpeg4avgbitrate","high_mpeg4peakbitrate"]},{Codec:"V4L2:MPEG-2
Video",Param:[]}],this.audioParamList=[{Codec:"MP3",Param:["samplerate","mp3quality","volume"]},{Codec:"MPEG-2
Hardware
Encoder",Param:["samplerate","mpeg2language","mpeg2audvolume"]},{Codec:"Uncompressed",Param:["samplerate","volume"]}],this.recordingtypeOptions=[{Name:"settings.rprofiles.rectype_normal",Value:"all"},{Name:"settings.rprofiles.rectype_tv",Value:"tv"},{Name:"settings.rprofiles.rectype_audio",Value:"audio"}],this.samplerateOptions=["32000","44100","48000"],this.streamTypeOptions=["MPEG-2
PS","MPEG-2 TS","MPEG-1 VCD","PES AV","PES
V","PES A","DVD","DVD-Special 1","DVD-Special
2"],this.mpeg2languageOptions=[{Name:"settings.rprofiles.lang_main",Value:"0"},{Name:"settings.rprofiles.lang_sap",Value:"1"},{Name:"settings.rprofiles.lang_dual",Value:"2"}],this.saveObserver={next:r=>{this.profile.Id&&r.bool?this.successCount++:!this.profile.Id&&r.int?
(this.successCount++,this.profile.Id=r.int,this.saveForm(2)):(console.log("saveObserver
error",r),this.errorCount++,this.currentForm.form.markAsDirty())},error:r=>{console.log("saveObserver
error",r),this.errorCount++,this.currentForm.form.markAsDirty()}},this.recordingtypeOptions.forEach(r=>{e.get(r.Name).subscribe(o=>r.Name=o)}),this.mpeg2languageOptions.forEach(r=>{e.get(r.Name).subscribe(o=>r.Name=o)})}ngOnInit(){let
e=this.paramList.find(n=>n.CardType==this.group.CardType);e&&(this.params=e)}ngAfterViewInit(){this.setupService.setCurrentForm(this.currentForm),this.topElement.nativeElement.scrollIntoView({behavior:"smooth",block:"start"})}findIx(e,n){let
s=this.profile.RecProfParams.findIndex(r=>r.Name==e);return-1==s?s=this.profile.RecProfParams.push({Name:e,Value:n})-1:"boolean"==typeof
n&&"string"==typeof
this.profile.RecProfParams[s].Value&&(this.profile.RecProfParams[s].Value="1"==this.profile.RecProfParams[s].Value),s}saveForm(e){switch(e){case
1:if(this.successCount=0,thi
s.errorCount=0,this.expectedCount=0,this.profile.Id<=0)return
this.captureCardService.AddRecProfile(this.group.Id,this.profile.Name,this.profile.VideoCodec,this.profile.AudioCodec).subscribe(this.saveObserver),void
this.expectedCount++;this.captureCardService.UpdateRecProfile(this.profile.Id,this.profile.VideoCodec,this.profile.AudioCodec).subscribe(this.saveObserver),this.expectedCount++;case
2:this.saveParams(this.params.Param);let
n=this.videoParamList.find(r=>r.Codec==this.profile.VideoCodec);n?this.saveParams(n.Param):(console.log("ERROR
videoparams not found"),this.errorCount++,this.currentForm.form.markAsDirty());let
s=this.audioParamList.find(r=>r.Codec==this.profile.AudioCodec);s?this.saveParams(s.Param):(console.log("ERROR
audioparams not
found"),this.errorCount++,this.currentForm.form.markAsDirty())}}saveParams(e){e.forEach(n=>{let
s=this.profile.RecProfParams[this.findIx(n,"0")].Value;s="boolean"==typeof
s?s?"1":"0":s.toString(),this.captureCardService.UpdateRecProfilePa
ram(this.profile.Id,n,s).subscribe(this.saveObserver),this.expectedCount++})}}return
t.\u0275fac=function(e){return
new(e||t)(D(Oe),D(Gt),D(Me))},t.\u0275cmp=z({type:t,selectors:[["app-recprofile"]],viewQuery:function(e,n){if(1&e&&(W(Hne,5),W(qne,5)),2&e){let
s;V(s=B())&&(n.currentForm=s.first),V(s=B())&&(n.topElement=s.first)}},inputs:{profile:"profile",group:"group",parentComponent:"parentComponent"},decls:9,vars:0,consts:[["name","recprofform",1,"ml-3","mr-3"],["recprofform","ngForm"],["top",""],[1,"m-5"],["pTemplate","title"],["pTemplate","subtitle"],["pTemplate","content"],["pTemplate","footer"],[1,"grid"],[1,"mb-4","w-full"],["class","form-group
field",4,"ngIf"],["class","mb-4
w-full",3,"legend","toggleable","collapsed",4,"ngIf"],[1,"form-group","field"],["inputId","autotranscode","name","autotranscode",1,"label","mb-2","w-full",3,"ngModel","binary","label","ngModelChange"],["autotranscode","ngModel"],[1,"block"],["for","width",1,"label","block"],["name","width","id","width",3
,"ngModel","showButtons","min","max","step","ngModelChange"],["for","height",1,"label","block"],["name","height","id","height",3,"ngModel","showButtons","min","max","step","ngModelChange"],["for","recordingtype",1,"label","block"],["optionLabel","Name","optionValue","Value","name","recordingtype",3,"options","ngModel","editable","maxlength","ngModelChange"],["recordingtype","ngModel"],["inputId","recordmpts","name","recordmpts",1,"label","mb-2","w-full",3,"ngModel","binary","label","ngModelChange"],["recordmpts","ngModel"],[1,"mb-4","w-full",3,"legend","toggleable","collapsed"],["for","VideoCodec",1,"label","block"],["name","VideoCodec",3,"options","ngModel","editable","maxlength","ngModelChange"],["VideoCodec","ngModel"],["for","rtjpegquality",1,"label","block"],["name","rtjpegquality","id","rtjpegquality",3,"ngModel","showButtons","min","max","step","ngModelChange"],["for","rtjpeglumafilter",1,"label","block"],["name","rtjpeglumafilter","id","rtjpeglumafilter",3,"ngModel","showBut
tons","min","max","step","ngModelChange"],["for","rtjpegchromafilter",1,"label","block"],["name","rtjpegchromafilter","id","rtjpegchromafilter",3,"ngModel","showButtons","min","max","step","ngModelChange"],["for","mpeg4bitrate",1,"label","block"],["name","mpeg4bitrate","id","mpeg4bitrate",3,"ngModel","showButtons","min","max","step","ngModelChange"],["for","mpeg4maxquality",1,"label","block"],["name","mpeg4maxquality","id","mpeg4maxquality",3,"ngModel","showButtons","min","max","step","ngModelChange"],["for","mpeg4minquality",1,"label","block"],["name","mpeg4minquality","id","mpeg4minquality",3,"ngModel","showButtons","min","max","step","ngModelChange"],["for","hardwaremjpegquality",1,"label","block"],["name","hardwaremjpegquality","id","hardwaremjpegquality",3,"ngModel","showButtons","min","max","step","ngModelChange"],["for","hardwaremjpeghdecimation",1,"label","block"],["name","hardwaremjpeghdecimation",3,"options","ngModel","editable","maxlength","ngModelChange"],["hardwaremjpeg
hdecimation","ngModel"],["for","hardwaremjpegvdecimation",1,"label","block"],["name","hardwaremjpegvdecimation",3,"options","ngModel","editable","maxlength","ngModelChange"],["hardwaremjpegvdecimation","ngModel"],["for","mpeg4qualdiff",1,"label","block"],["name","mpeg4qualdiff","id","mpeg4qualdiff",3,"ngModel","showButtons","min","max","step","ngModelChange"],["for","mpeg2streamtype",1,"label","block"],["name","mpeg2streamtype",3,"options","ngModel","editable","maxlength","ngModelChange"],["mpeg2streamtype","ngModel"],["for","mpeg2aspectratio",1,"label","block"],["name","mpeg2aspectratio",3,"options","ngModel","editable","maxlength","ngModelChange"],["mpeg2aspectratio","ngModel"],["for","mpeg2bitrate",1,"label","block"],["name","mpeg2bitrate","id","mpeg2bitrate",3,"ngModel","showButtons","min","max","step","ngModelChange"],["for","mpeg2maxbitrate",1,"label","block"],["name","mpeg2maxbitrate","id","mpeg2maxbitrate",3,"ngModel","showButtons","min","max","step","ngModelChange"],["for",
"low_mpeg4avgbitrate",1,"label","block"],["name","low_mpeg4avgbitrate","id","low_mpeg4avgbitrate",3,"ngModel","showButtons","min","max","step","ngModelChange"],["for","low_mpeg4peakbitrate",1,"label","block"],["name","low_mpeg4peakbitrate","id","low_mpeg4peakbitrate",3,"ngModel","showButtons","min","max","step","ngModelChange"],["for","medium_mpeg4avgbitrate",1,"label","block"],["name","medium_mpeg4avgbitrate","id","medium_mpeg4avgbitrate",3,"ngModel","showButtons","min","max","step","ngModelChange"],["for","medium_mpeg4peakbitrate",1,"label","block"],["name","medium_mpeg4peakbitrate","id","medium_mpeg4peakbitrate",3,"ngModel","showButtons","min","max","step","ngModelChange"],["for","high_mpeg4avgbitrate",1,"label","block"],["name","high_mpeg4avgbitrate","id","high_mpeg4avgbitrate",3,"ngModel","showButtons","min","max","step","ngModelChange"],["for","high_mpeg4peakbitrate",1,"label","block"],["name","high_mpeg4peakbitrate","id","high_mpeg4peakbitrate",3,"ngModel","showButtons","min"
,"max","step","ngModelChange"],["inputId","scalebitrate","name","scalebitrate",1,"label","mb-2","w-full",3,"ngModel","binary","label","ngModelChange"],["scalebitrate","ngModel"],["inputId","mpeg4optionvhq","name","mpeg4optionvhq",1,"label","mb-2","w-full",3,"ngModel","binary","label","ngModelChange"],["mpeg4optionvhq","ngModel"],["inputId","mpeg4option4mv","name","mpeg4option4mv",1,"label","mb-2","w-full",3,"ngModel","binary","label","ngModelChange"],["mpeg4option4mv","ngModel"],["inputId","mpeg4optionidct","name","mpeg4optionidct",1,"label","mb-2","w-full",3,"ngModel","binary","label","ngModelChange"],["mpeg4optionidct","ngModel"],["inputId","mpeg4optionime","name","mpeg4optionime",1,"label","mb-2","w-full",3,"ngModel","binary","label","ngModelChange"],["mpeg4optionime","ngModel"],["for","encodingthreadcount",1,"label","block"],["name","encodingthreadcount","id","encodingthreadcount",3,"ngModel","showButtons","min","max","step","ngModelChange"],["for","AudioCodec",1,"label","block"
],["name","AudioCodec",3,"options","ngModel","editable","maxlength","ngModelChange"],["AudioCodec","ngModel"],["for","samplerate",1,"label","block"],["name","samplerate",3,"options","ngModel","editable","maxlength","ngModelChange"],["samplerate","ngModel"],["for","mpeg2language",1,"label","block"],["optionLabel","Name","optionValue","Value","name","mpeg2language",3,"options","ngModel","editable","maxlength","ngModelChange"],["mpeg2language","ngModel"],["for","mp3quality",1,"label","block"],["name","mp3quality","id","mp3quality",3,"ngModel","showButtons","min","max","step","ngModelChange"],["for","volume",1,"label","block"],["name","volume","id","volume",3,"ngModel","showButtons","min","max","step","ngModelChange"],["for","mpeg2audvolume",1,"label","block"],["name","mpeg2audvolume","id","mpeg2audvolume",3,"ngModel","showButtons","min","max","step","ngModelChange"],[1,"grid","nogutter"],[1,"col-12"],["severity","success",3,"text",4,"ngIf"],["severity","error",3,"text",4,"ngIf"],["icon
","pi
pi-save","iconPos","left",1,"col","pr-1",3,"label","disabled","onClick"],["severity","success",3,"text"],["severity","error",3,"text"]],template:function(e,n){1&e&&(l(0,"form",0,1),k(2,"span",null,2),l(4,"p-card",3),_(5,Gne,2,4,"ng-template",4),_(6,Une,0,0,"ng-template",5),_(7,kie,9,7,"ng-template",6),_(8,Rie,6,6,"ng-template",7),c()())},directives:[ze,Ue,He,Ne,ne,Q,sn,Te,_e,pt,Ot,_n,Ui,qe,ve],pipes:[ce],styles:[""]}),t})();const
Oie=["v4l2form"],Aie=["top"];function
Pie(t,i){1&t&&(g(0),m(1,"translate")),2&t&&T("
",f(1,1,"settings.capture.v4l2.title")," ")}function
Fie(t,i){}const Nie=function(){return{minWidth:"80%"}};function
Vie(t,i){if(1&t){const
e=I();l(0,"p-dropdown",17,18),C("ngModelChange",function(s){return
v(e),d(2).currentDevice=s})("onChange",function(){return
v(e),d(2).updateDevice()}),c()}if(2&t){const
e=d(2);q(A(6,Nie)),p("options",e.captureDeviceList.CaptureDeviceList.CaptureDevices)("ngModel",e.currentDevice)("editable",!1)("maxlength",0)}}function
Bie(t,i){if
(1&t&&(l(0,"div")(1,"small",19),g(2),c()()),2&t){const
e=d(2);a(2),T(" ",e.warningMessage," ")}}function
Hie(t,i){if(1&t){const
e=I();l(0,"input",20,21),C("ngModelChange",function(s){return
v(e),d(2).currentDevice.FrontendName=s}),c()}2&t&&p("ngModel",d(2).currentDevice.FrontendName)}function
qie(t,i){if(1&t&&(l(0,"div",8)(1,"div",9)(2,"div",10)(3,"label",11),g(4),m(5,"translate"),c(),_(6,Vie,2,7,"p-dropdown",12),_(7,Bie,3,1,"div",13),l(8,"small",14),g(9),m(10,"translate"),c()(),l(11,"div",10)(12,"label",15),g(13),m(14,"translate"),c(),_(15,Hie,2,1,"input",16),l(16,"small",14),g(17),m(18,"translate"),c()()()()),2&t){const
e=d();a(4),S(f(5,7,"settings.capture.v4l2.device_label")),a(2),p("ngIf",e.isReady),a(1),p("ngIf",e.warningMessage),a(2),T("
",f(10,9,"settings.capture.device_desc"),"
"),a(4),S(f(14,11,"settings.capture.v4l2.frontend_label")),a(2),p("ngIf",e.isReady),a(2),T("
",f(18,13,"settings.capture.frontend_desc")," ")}}function
Gie(t,i){1&t&&(k(0,"p-message",27),m(1,"translat
e")),2&t&&x("text",f(1,1,"common.savesuccess"))}function
Uie(t,i){1&t&&(k(0,"p-message",28),m(1,"translate")),2&t&&x("text",f(1,1,"common.networkfail"))}function
zie(t,i){if(1&t){const
e=I();l(0,"div",22)(1,"div",23),_(2,Gie,2,3,"p-message",24),_(3,Uie,2,3,"p-message",25),c(),l(4,"p-button",26),C("onClick",function(){v(e);const
s=d(),r=F(1);return
s.saveForm(),r.form.markAsPristine()}),m(5,"translate"),c()()}if(2&t){const
e=d(),n=F(1);a(2),p("ngIf",e.successCount>0&&0==e.errorCount&&!n.dirty),a(1),p("ngIf",e.errorCount>0),a(1),x("label",f(5,4,"common.save")),p("disabled",!n.dirty||!e.card.VideoDevice||e.setupService.schedulingEnabled)}}let
jie=(()=>{class
t{constructor(e,n,s){this.captureCardService=e,this.setupService=n,this.translate=s,this.messages={devNotExist:"settings.capture.dvb.devNotExist",unknownName:"settings.capture.dvb.unknownName",devInUse:"settings.capture.dvb.devInUse",noDevSelected:"settings.capture.dvb.noDevSelected"},this.captureDeviceList={CaptureDeviceList:{Capt
ureDevices:[]}},this.currentDevice={FrontendName:"Unknown",InputNames:[""]},this.isReady=!1,this.warningMessage="",this.errorCount=0,this.successCount=0,this.saveObserver={next:r=>{this.card.CardId&&r.bool?this.successCount++:!this.card.CardId&&r.int?(this.successCount++,this.card.CardId=r.int):(this.errorCount++,this.currentForm.form.markAsDirty())},error:r=>{console.error(r),this.errorCount++,this.currentForm.form.markAsDirty()}},s.get(this.messages.devNotExist).subscribe(r=>this.messages.devNotExist=r),s.get(this.messages.unknownName).subscribe(r=>this.messages.unknownName=r),s.get(this.messages.devInUse).subscribe(r=>this.messages.devInUse=r),s.get(this.messages.noDevSelected).subscribe(r=>this.messages.noDevSelected=r)}ngOnInit(){this.captureCardService.GetCaptureDeviceList("V4L2ENC").subscribe({next:e=>{this.captureDeviceList=e,this.setupDevice()},error:e=>{console.log("GetCaptureDeviceList",e),this.errorCount++}})}ngAfterViewInit(){this.setupService.setCurrentForm(this.curren
tForm),this.topElement.nativeElement.scrollIntoView({behavior:"smooth",block:"start"})}setupDevice(){if(this.card.VideoDevice||this.captureDeviceList.CaptureDeviceList.CaptureDevices.unshift({VideoDevice:"",FrontendName:this.messages.noDevSelected,InputNames:[""]}),this.card.VideoDevice){let
e=this.captureDeviceList.CaptureDeviceList.CaptureDevices.find(n=>n.VideoDevice==this.card.VideoDevice);e?this.currentDevice=e:(this.currentDevice={VideoDevice:this.card.VideoDevice,FrontendName:this.messages.devNotExist,InputNames:[""]},this.captureDeviceList.CaptureDeviceList.CaptureDevices.push(this.currentDevice))}this.currentDevice&&this.card.InputName&&(this.currentDevice.InputNames.includes(this.card.InputName)||this.currentDevice.InputNames.push(this.card.InputName)),this.isReady=!0}updateDevice(){this.card.VideoDevice=this.currentDevice.VideoDevice,this.card.InputName=this.currentDevice.DefaultInputName,this.card.SignalTimeout=this.currentDevice.SignalTimeout,this.card.ChannelTimeout=th
is.currentDevice.ChannelTimeout,this.checkInUse()}checkInUse(){this.warningMessage=this.cardList.CaptureCardList.CaptureCards.find(n=>n.VideoDevice==this.currentDevice.VideoDevice&&n.CardId!=this.card.CardId)?this.messages.devInUse:""}saveForm(){this.successCount=0,this.errorCount=0,this.card.CardId?this.cardList.CaptureCardList.CaptureCards.forEach(e=>{(e.CardId==this.card.CardId||e.ParentId==this.card.CardId)&&this.captureCardService.UpdateCaptureCard(e.CardId,"videodevice",this.card.VideoDevice).subscribe(this.saveObserver)}):this.captureCardService.AddCaptureCard(this.card).subscribe(this.saveObserver)}}return
t.\u0275fac=function(e){return
new(e||t)(D(Gt),D(Me),D(Oe))},t.\u0275cmp=z({type:t,selectors:[["app-v4l2"]],viewQuery:function(e,n){if(1&e&&(W(Oie,5),W(Aie,5)),2&e){let
s;V(s=B())&&(n.currentForm=s.first),V(s=B())&&(n.topElement=s.first)}},inputs:{card:"card",cardList:"cardList"},decls:9,vars:0,consts:[["name","v4l2form",1,"ml-3","mr-3"],["v4l2form","ngForm"],["top",""],[1
,"m-5"],["pTemplate","title"],["pTemplate","subtitle"],["pTemplate","content"],["pTemplate","footer"],[1,"grid"],[1,"mb-4","w-full"],[1,"form-group","field"],["for","VideoDevice",1,"label","block"],["optionLabel","VideoDevice","name","VideoDevice",3,"options","ngModel","editable","maxlength","style","ngModelChange","onChange",4,"ngIf"],[4,"ngIf"],[1,"block"],["for","FrontendName",1,"label","block"],["pInputText","","id","FrontendName","name","FrontendName","disabled","true","class","mb-2
form-control
w-full",3,"ngModel","ngModelChange",4,"ngIf"],["optionLabel","VideoDevice","name","VideoDevice",3,"options","ngModel","editable","maxlength","ngModelChange","onChange"],["VideoDevice","ngModel"],[1,"p-error","block"],["pInputText","","id","FrontendName","name","FrontendName","disabled","true",1,"mb-2","form-control","w-full",3,"ngModel","ngModelChange"],["FrontendName","ngModel"],[1,"grid","nogutter"],[1,"col-12"],["severity","success",3,"text",4,"ngIf"],["severity","error",3,"text",4,"
ngIf"],["icon","pi
pi-save","iconPos","left",1,"col","pr-1",3,"label","disabled","onClick"],["severity","success",3,"text"],["severity","error",3,"text"]],template:function(e,n){1&e&&(l(0,"form",0,1),k(2,"span",null,2),l(4,"p-card",3),_(5,Pie,2,3,"ng-template",4),_(6,Fie,0,0,"ng-template",5),_(7,qie,19,15,"ng-template",6),_(8,zie,6,6,"ng-template",7),c()())},directives:[ze,Ue,He,Ne,ne,Q,Ot,Te,_e,_n,Ye,qe,ve],pipes:[ce],styles:[""]}),t})();const
$ie=["hdpvrform"],Wie=["top"];function
Kie(t,i){1&t&&(g(0),m(1,"translate")),2&t&&T("
",f(1,1,"settings.capture.hdpvr.title")," ")}function
Qie(t,i){}const LS=function(){return{minWidth:"80%"}};function
Jie(t,i){if(1&t){const
e=I();l(0,"p-dropdown",21,22),C("ngModelChange",function(s){return
v(e),d(2).currentDevice=s})("onChange",function(){return
v(e),d(2).updateDevice()}),c()}if(2&t){const
e=d(2);q(A(6,LS)),p("options",e.captureDeviceList.CaptureDeviceList.CaptureDevices)("ngModel",e.currentDevice)("editable",!1)("maxlength",0)}}function
Yi
e(t,i){if(1&t&&(l(0,"div")(1,"small",23),g(2),c()()),2&t){const
e=d(2);a(2),T(" ",e.warningMessage," ")}}function
Zie(t,i){if(1&t){const
e=I();l(0,"input",24,25),C("ngModelChange",function(s){return
v(e),d(2).currentDevice.FrontendName=s}),c()}2&t&&p("ngModel",d(2).currentDevice.FrontendName)}function
Xie(t,i){if(1&t){const
e=I();l(0,"p-dropdown",26,27),C("ngModelChange",function(s){return
v(e),d(2).card.AudioDevice=s}),c()}if(2&t){const
e=d(2);q(A(6,LS)),p("options",e.currentDevice.AudioDevices)("ngModel",e.card.AudioDevice)("editable",!1)("maxlength",0)}}function
ese(t,i){if(1&t){const
e=I();l(0,"div",8)(1,"div",9)(2,"div",10)(3,"label",11),g(4),m(5,"translate"),c(),_(6,Jie,2,7,"p-dropdown",12),_(7,Yie,3,1,"div",13),l(8,"small",14),g(9),m(10,"translate"),c()(),l(11,"div",10)(12,"label",15),g(13),m(14,"translate"),c(),_(15,Zie,2,1,"input",16),l(16,"small",14),g(17),m(18,"translate"),c()(),l(19,"div",10)(20,"label",17),g(21),m(22,"translate"),c(),_(23,Xie,2,7,"p-dropdown",18),l(24,"
small",14),g(25),m(26,"translate"),c()(),l(27,"div",10)(28,"label",19),g(29),m(30,"translate"),c(),l(31,"p-inputNumber",20),C("ngModelChange",function(s){return
v(e),d().card.ChannelTimeout=s}),c(),l(32,"small",14),g(33),m(34,"translate"),c()()()()}if(2&t){const
e=d();a(4),S(f(5,17,"settings.capture.v4l2.device_label")),a(2),p("ngIf",e.isReady),a(1),p("ngIf",e.warningMessage),a(2),T("
",f(10,19,"settings.capture.device_desc"),"
"),a(4),S(f(14,21,"settings.capture.v4l2.frontend_label")),a(2),p("ngIf",e.isReady),a(2),T("
",f(18,23,"settings.capture.frontend_desc"),"
"),a(4),S(f(22,25,"settings.capture.hdpvr.audiodevice_label")),a(2),p("ngIf",e.isReady),a(2),T("
",f(26,27,"settings.capture.hdpvr.audiodevice_desc"),"
"),a(4),S(f(30,29,"settings.capture.tunetimeout_label")),a(2),p("ngModel",e.card.ChannelTimeout)("showButtons",!0)("min",2e3)("max",65e3)("step",250),a(2),T("
",f(34,31,"settings.capture.tunetimeout_desc")," ")}}function
tse(t,i){1&t&&(k(0,"p-message",33),m(1,"translate")),
2&t&&x("text",f(1,1,"common.savesuccess"))}function
nse(t,i){1&t&&(k(0,"p-message",34),m(1,"translate")),2&t&&x("text",f(1,1,"common.networkfail"))}function
ise(t,i){if(1&t){const
e=I();l(0,"div",28)(1,"div",29),_(2,tse,2,3,"p-message",30),_(3,nse,2,3,"p-message",31),c(),l(4,"p-button",32),C("onClick",function(){v(e);const
s=d(),r=F(1);return
s.saveForm(),r.form.markAsPristine()}),m(5,"translate"),c()()}if(2&t){const
e=d(),n=F(1);a(2),p("ngIf",e.successCount>0&&0==e.errorCount&&!n.dirty),a(1),p("ngIf",e.errorCount>0),a(1),x("label",f(5,4,"common.save")),p("disabled",!n.dirty||!e.card.VideoDevice||e.setupService.schedulingEnabled)}}let
sse=(()=>{class
t{constructor(e,n,s){this.captureCardService=e,this.setupService=n,this.translate=s,this.messages={devNotExist:"settings.capture.dvb.devNotExist",unknownName:"settings.capture.dvb.unknownName",devInUse:"settings.capture.dvb.devInUse",noDevSelected:"settings.capture.dvb.noDevSelected"},this.captureDeviceList={CaptureDeviceList:{CaptureDe
vices:[]}},this.currentDevice={FrontendName:"Unknown",InputNames:[""]},this.isReady=!1,this.warningMessage="",this.errorCount=0,this.successCount=0,this.saveObserver={next:r=>{this.card.CardId&&r.bool?this.successCount++:!this.card.CardId&&r.int?(this.successCount++,this.card.CardId=r.int):(this.errorCount++,this.currentForm.form.markAsDirty())},error:r=>{console.error(r),this.errorCount++,this.currentForm.form.markAsDirty()}},s.get(this.messages.devNotExist).subscribe(r=>this.messages.devNotExist=r),s.get(this.messages.unknownName).subscribe(r=>this.messages.unknownName=r),s.get(this.messages.devInUse).subscribe(r=>this.messages.devInUse=r),s.get(this.messages.noDevSelected).subscribe(r=>this.messages.noDevSelected=r)}ngOnInit(){this.captureCardService.GetCaptureDeviceList("HDPVR").subscribe({next:e=>{this.captureDeviceList=e,this.setupDevice()},error:e=>{console.log("GetCaptureDeviceList",e),this.errorCount++}})}setupDevice(){if(this.card.VideoDevice||this.captureDeviceList.Captur
eDeviceList.CaptureDevices.unshift({VideoDevice:"",FrontendName:this.messages.noDevSelected,InputNames:[""]}),this.card.VideoDevice){let
e=this.captureDeviceList.CaptureDeviceList.CaptureDevices.find(n=>n.VideoDevice==this.card.VideoDevice);e?this.currentDevice=e:(this.currentDevice={VideoDevice:this.card.VideoDevice,FrontendName:this.messages.devNotExist,InputNames:[""]},this.captureDeviceList.CaptureDeviceList.CaptureDevices.push(this.currentDevice))}this.currentDevice&&this.card.InputName&&(this.currentDevice.InputNames.includes(this.card.InputName)||this.currentDevice.InputNames.push(this.card.InputName)),this.isReady=!0}updateDevice(){this.card.VideoDevice=this.currentDevice.VideoDevice,this.card.InputName=this.currentDevice.DefaultInputName,this.card.AudioDevice="",this.card.ChannelTimeout=this.currentDevice.ChannelTimeout,this.checkInUse()}checkInUse(){this.warningMessage=this.cardList.CaptureCardList.CaptureCards.find(n=>n.VideoDevice==this.currentDevice.VideoDevice&&n.CardI
d!=this.card.CardId)?this.messages.devInUse:""}saveForm(){this.successCount=0,this.errorCount=0,this.card.CardId?this.cardList.CaptureCardList.CaptureCards.forEach(e=>{(e.CardId==this.card.CardId||e.ParentId==this.card.CardId)&&(this.captureCardService.UpdateCaptureCard(e.CardId,"videodevice",this.card.VideoDevice).subscribe(this.saveObserver),this.captureCardService.UpdateCaptureCard(e.CardId,"channel_timeout",String(this.card.ChannelTimeout)).subscribe(this.saveObserver),this.captureCardService.UpdateCaptureCard(e.CardId,"audiodevice",String(this.card.AudioDevice)).subscribe(this.saveObserver))}):this.captureCardService.AddCaptureCard(this.card).subscribe(this.saveObserver)}}return
t.\u0275fac=function(e){return
new(e||t)(D(Gt),D(Me),D(Oe))},t.\u0275cmp=z({type:t,selectors:[["app-hdpvr"]],viewQuery:function(e,n){if(1&e&&(W($ie,5),W(Wie,5)),2&e){let
s;V(s=B())&&(n.currentForm=s.first),V(s=B())&&(n.topElement=s.first)}},inputs:{card:"card",cardList:"cardList"},decls:9,vars:0,consts:
[["name","hdpvrform",1,"ml-3","mr-3"],["dvbform","ngForm"],["top",""],[1,"m-5"],["pTemplate","title"],["pTemplate","subtitle"],["pTemplate","content"],["pTemplate","footer"],[1,"grid"],[1,"mb-4","w-full"],[1,"form-group","field"],["for","VideoDevice",1,"label","block"],["optionLabel","VideoDevice","name","VideoDevice",3,"options","ngModel","editable","maxlength","style","ngModelChange","onChange",4,"ngIf"],[4,"ngIf"],[1,"block"],["for","FrontendName",1,"label","block"],["pInputText","","id","FrontendName","name","FrontendName","disabled","true","class","mb-2
form-control
w-full",3,"ngModel","ngModelChange",4,"ngIf"],["for","AudioDevice",1,"label","block"],["name","AudioDevice",3,"options","ngModel","editable","maxlength","style","ngModelChange",4,"ngIf"],["for","ChannelTimeout",1,"label","block"],["name","ChannelTimeout","id","ChannelTimeout",3,"ngModel","showButtons","min","max","step","ngModelChange"],["optionLabel","VideoDevice","name","VideoDevice",3,"options","ngModel","editabl
e","maxlength","ngModelChange","onChange"],["VideoDevice","ngModel"],[1,"p-error","block"],["pInputText","","id","FrontendName","name","FrontendName","disabled","true",1,"mb-2","form-control","w-full",3,"ngModel","ngModelChange"],["FrontendName","ngModel"],["name","AudioDevice",3,"options","ngModel","editable","maxlength","ngModelChange"],["AudioDevice","ngModel"],[1,"grid","nogutter"],[1,"col-12"],["severity","success",3,"text",4,"ngIf"],["severity","error",3,"text",4,"ngIf"],["icon","pi
pi-save","iconPos","left",1,"col","pr-1",3,"label","disabled","onClick"],["severity","success",3,"text"],["severity","error",3,"text"]],template:function(e,n){1&e&&(l(0,"form",0,1),k(2,"span",null,2),l(4,"p-card",3),_(5,Kie,2,3,"ng-template",4),_(6,Qie,0,0,"ng-template",5),_(7,ese,35,33,"ng-template",6),_(8,ise,6,6,"ng-template",7),c()())},directives:[ze,Ue,He,Ne,ne,Q,Ot,Te,_e,_n,Ye,pt,qe,ve],pipes:[ce],styles:[""]}),t})();const
rse=["satipform"],ose=["top"];function
ase(t,i){1&t&&(g(0),m(1,"transl
ate")),2&t&&T("
",f(1,1,"settings.capture.satip.title")," ")}function
lse(t,i){}const cse=function(){return{minWidth:"83%"}};function
use(t,i){if(1&t){const
e=I();l(0,"p-dropdown",25,26),C("ngModelChange",function(s){return
v(e),d(2).currentDevice=s})("onChange",function(){return
v(e),d(2).updateDevice()}),c()}if(2&t){const
e=d(2);q(A(6,cse)),p("options",e.captureDeviceList.CaptureDeviceList.CaptureDevices)("ngModel",e.currentDevice)("editable",!1)("maxlength",0)}}function
dse(t,i){if(1&t&&(l(0,"div")(1,"small",27),g(2),c()()),2&t){const
e=d(2);a(2),T(" ",e.warningMessage," ")}}function
pse(t,i){if(1&t){const
e=I();l(0,"div",8)(1,"div",9)(2,"div",10)(3,"label",11),g(4),m(5,"translate"),c(),_(6,use,2,7,"p-dropdown",12),_(7,dse,3,1,"div",13),l(8,"small",14),g(9),m(10,"translate"),c()(),l(11,"div",10)(12,"label",15),g(13),m(14,"translate"),c(),l(15,"div",16),g(16),c(),l(17,"small",14),g(18),m(19,"translate"),c()(),l(20,"div",10)(21,"label",15),g(22),m(23,"translate"),c(),l(24,"div",16)
,g(25),c(),l(26,"small",14),g(27),m(28,"translate"),c()(),l(29,"div",10)(30,"label",15),g(31),m(32,"translate"),c(),l(33,"div",16),g(34),c(),l(35,"small",14),g(36),m(37,"translate"),c()(),l(38,"div",10)(39,"label",15),g(40),m(41,"translate"),c(),l(42,"div",16),g(43),c(),l(44,"small",14),g(45),m(46,"translate"),c()(),l(47,"div",10)(48,"label",17),g(49),m(50,"translate"),c(),l(51,"p-inputNumber",18),C("ngModelChange",function(s){return
v(e),d().card.SignalTimeout=s}),c(),l(52,"small",14),g(53),m(54,"translate"),c()(),l(55,"div",10)(56,"label",19),g(57),m(58,"translate"),c(),l(59,"p-inputNumber",20),C("ngModelChange",function(s){return
v(e),d().card.ChannelTimeout=s}),c(),l(60,"small",14),g(61),m(62,"translate"),c()(),l(63,"div",10)(64,"p-checkbox",21,22),C("ngModelChange",function(s){return
v(e),d().card.DVBEITScan=s}),m(66,"translate"),c(),l(67,"small",14),g(68),m(69,"translate"),c()(),l(70,"div",10)(71,"label",23),g(72),m(73,"translate"),c(),l(74,"p-inputNumber",24),C("ngModelChange
",function(s){return
v(e),d().card.DVBDiSEqCType=s}),c(),l(75,"small",14),g(76),m(77,"translate"),c()()()()}if(2&t){const
e=d();a(4),S(f(5,41,"settings.capture.satip.device_label")),a(2),p("ngIf",e.isReady),a(1),p("ngIf",e.warningMessage),a(2),T("
",f(10,43,"settings.capture.satip.device_desc"),"
"),a(4),S(f(14,45,"settings.capture.satip.friendly_label")),a(3),T("
",e.currentDevice.Description," \xa0 "),a(2),T("
",f(19,47,"settings.capture.satip.friendly_desc"),"
"),a(4),S(f(23,49,"settings.capture.satip.tunertype_label")),a(3),T("
",e.currentDevice.TunerType," \xa0 "),a(2),T("
",f(28,51,"settings.capture.tunertype_desc"),"
"),a(4),S(f(32,53,"settings.capture.satip.tunerindex_label")),a(3),T("
",e.currentDevice.TunerNumber," \xa0 "),a(2),T("
",f(37,55,"settings.capture.tunerindex_desc"),"
"),a(4),S(f(41,57,"settings.capture.satip.deviceid_label")),a(3),T("
",e.card.VideoDevice," \xa0 "),a(2),T("
",f(46,59,"settings.capture.deviceid_desc"),"
"),a(4),S(f(50,61,"settings.capture.sigtim
eout_label")),a(2),p("ngModel",e.card.SignalTimeout)("showButtons",!0)("min",250)("max",6e4)("step",250),a(2),T("
",f(54,63,"settings.capture.sigtimeout_desc"),"
"),a(4),S(f(58,65,"settings.capture.tunetimeout_label")),a(2),p("ngModel",e.card.ChannelTimeout)("showButtons",!0)("min",2e3)("max",65e3)("step",250),a(2),T("
",f(62,67,"settings.capture.tunetimeout_desc"),"
"),a(3),x("label",f(66,69,"settings.capture.dvb.eitscan_label")),p("ngModel",e.card.DVBEITScan)("binary",!0),a(4),T("
",f(69,71,"settings.capture.dvb.eitscan_desc"),"
"),a(4),S(f(73,73,"settings.capture.satip.diseqcpos_label")),a(2),p("ngModel",e.card.DVBDiSEqCType)("showButtons",!0)("min",1)("max",255)("step",1),a(2),T("
",f(77,75,"settings.capture.satip.diseqcpos_desc")," ")}}function
hse(t,i){1&t&&(k(0,"p-message",33),m(1,"translate")),2&t&&x("text",f(1,1,"common.savesuccess"))}function
mse(t,i){1&t&&(k(0,"p-message",34),m(1,"translate")),2&t&&x("text",f(1,1,"common.networkfail"))}function
fse(t,i){if(1&t){const e=I(
);l(0,"div",28)(1,"div",29),_(2,hse,2,3,"p-message",30),_(3,mse,2,3,"p-message",31),c(),l(4,"p-button",32),C("onClick",function(){v(e);const
s=d(),r=F(1);return
s.saveForm(),r.form.markAsPristine()}),m(5,"translate"),c()()}if(2&t){const
e=d(),n=F(1);a(2),p("ngIf",e.successCount>0&&0==e.errorCount&&!n.dirty),a(1),p("ngIf",e.errorCount>0),a(1),x("label",f(5,4,"common.save")),p("disabled",!n.dirty||!e.card.VideoDevice||e.setupService.schedulingEnabled)}}let
gse=(()=>{class
t{constructor(e,n,s){this.captureCardService=e,this.setupService=n,this.translate=s,this.messages={devNotExist:"settings.capture.dvb.devNotExist",unknownName:"settings.capture.dvb.unknownName",devInUse:"settings.capture.dvb.devInUse",noDevSelected:"settings.capture.dvb.noDevSelected"},this.captureDeviceList={CaptureDeviceList:{CaptureDevices:[]}},this.currentDevice={FrontendName:"Unknown",InputNames:[""]},this.isReady=!1,this.warningMessage="",this.errorCount=0,this.successCount=0,this.saveObserver={next:r=>{this.car
d.CardId&&r.bool?this.successCount++:!this.card.CardId&&r.int?(this.successCount++,this.card.CardId=r.int,this.cardList.CaptureCardList.CaptureCards.push(this.card)):(this.errorCount++,this.currentForm.form.markAsDirty())},error:r=>{console.error(r),this.errorCount++,this.currentForm.form.markAsDirty()}},s.get(this.messages.devNotExist).subscribe(r=>this.messages.devNotExist=r),s.get(this.messages.unknownName).subscribe(r=>this.messages.unknownName=r),s.get(this.messages.devInUse).subscribe(r=>this.messages.devInUse=r),s.get(this.messages.noDevSelected).subscribe(r=>this.messages.noDevSelected=r)}ngOnInit(){this.captureCardService.GetCaptureDeviceList("SATIP").subscribe({next:e=>{this.captureDeviceList=e,this.setupDevice()},error:e=>{console.log("GetCaptureDeviceList",e),this.errorCount++}})}ngAfterViewInit(){this.setupService.setCurrentForm(this.currentForm),this.topElement.nativeElement.scrollIntoView({behavior:"smooth",block:"start"})}setupDevice(){if(this.card.VideoDevice||this.
captureDeviceList.CaptureDeviceList.CaptureDevices.unshift({VideoDevice:"",VideoDevicePrompt:this.messages.noDevSelected}),this.card.VideoDevice){let
e=this.captureDeviceList.CaptureDeviceList.CaptureDevices.find(n=>n.VideoDevice==this.card.VideoDevice);e?this.currentDevice=e:(this.currentDevice={VideoDevice:this.card.VideoDevice,Description:this.messages.devNotExist},this.captureDeviceList.CaptureDeviceList.CaptureDevices.push(this.currentDevice))}this.isReady=!0}updateDevice(){this.card.VideoDevice=this.currentDevice.VideoDevice,this.card.ChannelTimeout=this.currentDevice.ChannelTimeout,this.card.SignalTimeout=this.currentDevice.SignalTimeout,this.checkInUse()}checkInUse(){this.warningMessage=this.cardList.CaptureCardList.CaptureCards.find(n=>n.VideoDevice==this.currentDevice.VideoDevice&&n.CardId!=this.card.CardId)?this.messages.devInUse:""}saveForm(){this.successCount=0,this.errorCount=0,this.card.CardId?this.cardList.CaptureCardList.CaptureCards.forEach(e=>{(e.CardId==this.card
.CardId||e.ParentId==this.card.CardId)&&(this.captureCardService.UpdateCaptureCard(e.CardId,"videodevice",this.card.VideoDevice).subscribe(this.saveObserver),this.captureCardService.UpdateCaptureCard(e.CardId,"signal_timeout",String(this.card.SignalTimeout)).subscribe(this.saveObserver),this.captureCardService.UpdateCaptureCard(e.CardId,"channel_timeout",String(this.card.ChannelTimeout)).subscribe(this.saveObserver),this.captureCardService.UpdateCaptureCard(e.CardId,"dvb_eitscan",String(this.card.DVBEITScan?"1":"0")).subscribe(this.saveObserver),this.captureCardService.UpdateCaptureCard(e.CardId,"dvb_diseqc_type",String(this.card.DVBDiSEqCType)).subscribe(this.saveObserver))}):this.captureCardService.AddCaptureCard(this.card).subscribe(this.saveObserver)}}return
t.\u0275fac=function(e){return
new(e||t)(D(Gt),D(Me),D(Oe))},t.\u0275cmp=z({type:t,selectors:[["app-satip"]],viewQuery:function(e,n){if(1&e&&(W(rse,5),W(ose,5)),2&e){let
s;V(s=B())&&(n.currentForm=s.first),V(s=B())&&(n.topEl
ement=s.first)}},inputs:{card:"card",cardList:"cardList"},decls:9,vars:0,consts:[["name","satipform",1,"ml-3","mr-3"],["satipform","ngForm"],["top",""],[1,"m-5"],["pTemplate","title"],["pTemplate","subtitle"],["pTemplate","content"],["pTemplate","footer"],[1,"grid"],[1,"mb-4","w-full"],[1,"form-group","field"],["for","VideoDevice",1,"label","block"],["optionLabel","VideoDevicePrompt","name","VideoDevice",3,"options","ngModel","editable","maxlength","style","ngModelChange","onChange",4,"ngIf"],[4,"ngIf"],[1,"block"],[1,"label","block"],[1,"col-10","bg-blue-100","text-gray-900"],["for","SignalTimeout",1,"label","block"],["name","SignalTimeout","id","SignalTimeout",3,"ngModel","showButtons","min","max","step","ngModelChange"],["for","ChannelTimeout",1,"label","block"],["name","ChannelTimeout","id","ChannelTimeout",3,"ngModel","showButtons","min","max","step","ngModelChange"],["inputId","DVBEITScan","name","DVBEITScan",1,"label","mb-2","w-full",3,"ngModel","binary","label","ngModelChang
e"],["DVBEITScan","ngModel"],["for","DVBDiSEqCType",1,"label","block"],["name","DVBDiSEqCType","id","DVBDiSEqCType",3,"ngModel","showButtons","min","max","step","ngModelChange"],["optionLabel","VideoDevicePrompt","name","VideoDevice",3,"options","ngModel","editable","maxlength","ngModelChange","onChange"],["VideoDevice","ngModel"],[1,"p-error","block"],[1,"grid","nogutter"],[1,"col-12"],["severity","success",3,"text",4,"ngIf"],["severity","error",3,"text",4,"ngIf"],["icon","pi
pi-save","iconPos","left",1,"col","pr-1",3,"label","disabled","onClick"],["severity","success",3,"text"],["severity","error",3,"text"]],template:function(e,n){1&e&&(l(0,"form",0,1),k(2,"span",null,2),l(4,"p-card",3),_(5,ase,2,3,"ng-template",4),_(6,lse,0,0,"ng-template",5),_(7,pse,78,77,"ng-template",6),_(8,fse,6,6,"ng-template",7),c()())},directives:[ze,Ue,He,Ne,ne,Q,Ot,Te,_e,_n,pt,sn,qe,ve],pipes:[ce],styles:[""]}),t})();const
_se=["vboxform"],bse=["top"];function
vse(t,i){1&t&&(g(0),m(1,"translate")),2&t&&T
(" ",f(1,1,"settings.capture.vbox.title")," ")}function
Cse(t,i){}const yse=function(){return{minWidth:"83%"}};function
wse(t,i){if(1&t){const
e=I();l(0,"p-dropdown",26,27),C("ngModelChange",function(s){return
v(e),d(2).currentDevice=s})("onChange",function(){return
v(e),d(2).updateDevice()}),c()}if(2&t){const
e=d(2);q(A(6,yse)),p("options",e.captureDeviceList.CaptureDeviceList.CaptureDevices)("ngModel",e.currentDevice)("editable",!1)("maxlength",0)}}function
Tse(t,i){if(1&t&&(l(0,"div")(1,"small",28),g(2),c()()),2&t){const
e=d(2);a(2),T(" ",e.warningMessage," ")}}function
Sse(t,i){if(1&t){const
e=I();l(0,"div",8)(1,"div",9)(2,"div",10)(3,"label",11),g(4),m(5,"translate"),c(),_(6,wse,2,7,"p-dropdown",12),_(7,Tse,3,1,"div",13),l(8,"small",14),g(9),m(10,"translate"),c()(),l(11,"div",10)(12,"label",15),g(13),m(14,"translate"),c(),l(15,"div",16),g(16),c(),l(17,"small",14),g(18),m(19,"translate"),c()(),l(20,"div",10)(21,"label",15),g(22),m(23,"translate"),c(),l(24,"div",16),g(25),c(),k(2
6,"small",14),c(),l(27,"div",10)(28,"label",17),g(29),m(30,"translate"),c(),l(31,"input",18,19),C("ngModelChange",function(s){return
v(e),d().currentDevice.IPAddress=s}),c(),l(33,"small",14),g(34),m(35,"translate"),c()(),l(36,"div",10)(37,"label",20),g(38),m(39,"translate"),c(),l(40,"input",21,19),C("ngModelChange",function(s){return
v(e),d().currentDevice.TunerNumber=s}),c(),l(42,"small",14),g(43),m(44,"translate"),c()(),l(45,"div",10)(46,"label",22),g(47),m(48,"translate"),c(),l(49,"p-inputNumber",23),C("ngModelChange",function(s){return
v(e),d().card.SignalTimeout=s}),c(),l(50,"small",14),g(51),m(52,"translate"),c()(),l(53,"div",10)(54,"label",24),g(55),m(56,"translate"),c(),l(57,"p-inputNumber",25),C("ngModelChange",function(s){return
v(e),d().card.ChannelTimeout=s}),c(),l(58,"small",14),g(59),m(60,"translate"),c()()()()}if(2&t){const
e=d();a(4),S(f(5,31,"settings.capture.satip.device_label")),a(2),p("ngIf",e.isReady),a(1),p("ngIf",e.warningMessage),a(2),T("
",f(10,33,"settings.
capture.vbox.device_desc"),"
"),a(4),S(f(14,35,"settings.capture.vbox.deviceid_label")),a(3),T("
",e.card.VideoDevice," \xa0 "),a(2),T("
",f(19,37,"settings.capture.vbox.deviceid_desc"),"
"),a(4),S(f(23,39,"settings.capture.vbox.description_label")),a(3),T("
",e.currentDevice.Description," \xa0
"),a(4),S(f(30,41,"settings.capture.ceton.ipaddress_label")),a(2),p("ngModel",e.currentDevice.IPAddress)("disabled",e.currentDevice!==e.manualDevice),a(3),T("
",f(35,43,"settings.capture.vbox.ipaddress_desc"),"
"),a(4),S(f(39,45,"settings.capture.ceton.tuner_label")),a(2),p("ngModel",e.currentDevice.TunerNumber)("disabled",e.currentDevice!==e.manualDevice),a(3),T("
",f(44,47,"settings.capture.vbox.tuner_desc"),"
"),a(4),S(f(48,49,"settings.capture.sigtimeout_label")),a(2),p("ngModel",e.card.SignalTimeout)("showButtons",!0)("min",250)("max",6e4)("step",250),a(2),T("
",f(52,51,"settings.capture.sigtimeout_desc"),"
"),a(4),S(f(56,53,"settings.capture.tunetimeout_label")),a(2),p("ngModel",e.card.
ChannelTimeout)("showButtons",!0)("min",2e3)("max",65e3)("step",250),a(2),T("
",f(60,55,"settings.capture.tunetimeout_desc")," ")}}function
xse(t,i){1&t&&(k(0,"p-message",34),m(1,"translate")),2&t&&x("text",f(1,1,"common.savesuccess"))}function
Dse(t,i){1&t&&(k(0,"p-message",35),m(1,"translate")),2&t&&x("text",f(1,1,"common.networkfail"))}function
Mse(t,i){if(1&t){const
e=I();l(0,"div",29)(1,"div",30),_(2,xse,2,3,"p-message",31),_(3,Dse,2,3,"p-message",32),c(),l(4,"p-button",33),C("onClick",function(){v(e);const
s=d(),r=F(1);return
s.saveForm(),r.form.markAsPristine()}),m(5,"translate"),c()()}if(2&t){const
e=d(),n=F(1);a(2),p("ngIf",e.successCount>0&&0==e.errorCount&&!n.dirty),a(1),p("ngIf",e.errorCount>0),a(1),x("label",f(5,4,"common.save")),p("disabled",!n.dirty||!e.card.VideoDevice||e.setupService.schedulingEnabled)}}let
kse=(()=>{class
t{constructor(e,n,s){this.captureCardService=e,this.setupService=n,this.translate=s,this.messages={devNotExist:"settings.capture.dvb.devNotExist"
,unknownName:"settings.capture.dvb.unknownName",devInUse:"settings.capture.dvb.devInUse",noDevSelected:"settings.capture.dvb.noDevSelected",manuallyEnter:"settings.capture.vbox.manuallyenter"},this.captureDeviceList={CaptureDeviceList:{CaptureDevices:[]}},this.currentDevice={FrontendName:"Unknown",InputNames:[""]},this.isReady=!1,this.warningMessage="",this.errorCount=0,this.successCount=0,this.saveObserver={next:r=>{this.card.CardId&&r.bool?this.successCount++:!this.card.CardId&&r.int?(this.successCount++,this.card.CardId=r.int,this.cardList.CaptureCardList.CaptureCards.push(this.card)):(this.errorCount++,this.currentForm.form.markAsDirty())},error:r=>{console.error(r),this.errorCount++,this.currentForm.form.markAsDirty()}},s.get(this.messages.devNotExist).subscribe(r=>this.messages.devNotExist=r),s.get(this.messages.unknownName).subscribe(r=>this.messages.unknownName=r),s.get(this.messages.devInUse).subscribe(r=>this.messages.devInUse=r),s.get(this.messages.noDevSelected).subscrib
e(r=>this.messages.noDevSelected=r),s.get(this.messages.manuallyEnter).subscribe(r=>this.messages.manuallyEnter=r)}ngOnInit(){this.captureCardService.GetCaptureDeviceList("VBOX").subscribe({next:e=>{this.captureDeviceList=e,this.setupDevice()},error:e=>{console.log("GetCaptureDeviceList",e),this.errorCount++}})}ngAfterViewInit(){this.setupService.setCurrentForm(this.currentForm),this.topElement.nativeElement.scrollIntoView({behavior:"smooth",block:"start"})}setupDevice(){if(this.manualDevice={VideoDevicePrompt:this.messages.manuallyEnter,VideoDevice:"",Description:"",IPAddress:"",TunerNumber:0,SignalTimeout:7e3,ChannelTimeout:1e4},this.captureDeviceList.CaptureDeviceList.CaptureDevices.unshift(this.manualDevice),this.card.VideoDevice||this.captureDeviceList.CaptureDeviceList.CaptureDevices.unshift({VideoDevice:"",FrontendName:this.messages.noDevSelected}),this.card.VideoDevice){let
e=this.captureDeviceList.CaptureDeviceList.CaptureDevices.find(n=>n.VideoDevice==this.card.VideoDevice
);e?this.currentDevice=e:(this.currentDevice={VideoDevice:this.card.VideoDevice,FrontendName:this.messages.devNotExist},this.captureDeviceList.CaptureDeviceList.CaptureDevices.push(this.currentDevice))}this.isReady=!0}updateDevice(){this.currentDevice===this.manualDevice?this.subscription=this.currentForm.valueChanges.pipe(yS(50)).subscribe(()=>this.card.VideoDevice=this.manualDevice.IPAddress+"-"+this.manualDevice.TunerNumber):this.subscription&&(this.subscription.unsubscribe(),this.subscription=void
0),this.card.VideoDevice=this.currentDevice.VideoDevice,this.card.ChannelTimeout=this.currentDevice.ChannelTimeout,this.card.SignalTimeout=this.currentDevice.SignalTimeout,this.checkInUse()}checkInUse(){this.warningMessage=this.cardList.CaptureCardList.CaptureCards.find(n=>n.VideoDevice==this.currentDevice.VideoDevice&&n.CardId!=this.card.CardId)?this.messages.devInUse:""}saveForm(){this.successCount=0,this.errorCount=0,this.card.CardId?this.cardList.CaptureCardList.CaptureCards.forEac
h(e=>{(e.CardId==this.card.CardId||e.ParentId==this.card.CardId)&&(this.captureCardService.UpdateCaptureCard(e.CardId,"videodevice",this.card.VideoDevice).subscribe(this.saveObserver),this.captureCardService.UpdateCaptureCard(e.CardId,"signal_timeout",String(this.card.SignalTimeout)).subscribe(this.saveObserver),this.captureCardService.UpdateCaptureCard(e.CardId,"channel_timeout",String(this.card.ChannelTimeout)).subscribe(this.saveObserver))}):this.captureCardService.AddCaptureCard(this.card).subscribe(this.saveObserver)}}return
t.\u0275fac=function(e){return
new(e||t)(D(Gt),D(Me),D(Oe))},t.\u0275cmp=z({type:t,selectors:[["app-vbox"]],viewQuery:function(e,n){if(1&e&&(W(_se,5),W(bse,5)),2&e){let
s;V(s=B())&&(n.currentForm=s.first),V(s=B())&&(n.topElement=s.first)}},inputs:{card:"card",cardList:"cardList"},decls:9,vars:0,consts:[["name","vboxform",1,"ml-3","mr-3"],["vboxform","ngForm"],["top",""],[1,"m-5"],["pTemplate","title"],["pTemplate","subtitle"],["pTemplate","content"],["pTemp
late","footer"],[1,"grid"],["u","",1,"mb-4","w-full"],[1,"form-group","field"],["for","VideoDevicePrompt",1,"label","block"],["optionLabel","VideoDevicePrompt","name","VideoDevicePrompt",3,"options","ngModel","editable","maxlength","style","ngModelChange","onChange",4,"ngIf"],[4,"ngIf"],[1,"block"],[1,"label","block"],[1,"col-10","bg-blue-100","text-gray-900"],["for","ip",1,"label","block"],["pInputText","","id","ip","name","ip",1,"mb-2","form-control","w-full",3,"ngModel","disabled","ngModelChange"],["ipAddress","ngModel"],["for","tuner",1,"label","block"],["pInputText","","id","tuner","name","tuner",1,"mb-2","form-control","w-full",3,"ngModel","disabled","ngModelChange"],["for","SignalTimeout",1,"label","block"],["name","SignalTimeout","id","SignalTimeout",3,"ngModel","showButtons","min","max","step","ngModelChange"],["for","ChannelTimeout",1,"label","block"],["name","ChannelTimeout","id","ChannelTimeout",3,"ngModel","showButtons","min","max","step","ngModelChange"],["optionLabel"
,"VideoDevicePrompt","name","VideoDevicePrompt",3,"options","ngModel","editable","maxlength","ngModelChange","onChange"],["VideoDevicePrompt","ngModel"],[1,"p-error","block"],[1,"grid","nogutter"],[1,"col-12"],["severity","success",3,"text",4,"ngIf"],["severity","error",3,"text",4,"ngIf"],["icon","pi
pi-save","iconPos","left",1,"col","pr-1",3,"label","disabled","onClick"],["severity","success",3,"text"],["severity","error",3,"text"]],template:function(e,n){1&e&&(l(0,"form",0,1),k(2,"span",null,2),l(4,"p-card",3),_(5,vse,2,3,"ng-template",4),_(6,Cse,0,0,"ng-template",5),_(7,Sse,61,57,"ng-template",6),_(8,Mse,6,6,"ng-template",7),c()())},directives:[ze,Ue,He,Ne,ne,Q,Ot,Te,_e,_n,Ye,pt,qe,ve],pipes:[ce],styles:[""]}),t})();const
Ise=["firewireform"],Ese=["top"];function
Rse(t,i){1&t&&(g(0),m(1,"translate")),2&t&&T("
",f(1,1,"settings.capture.firewire.title")," ")}function
Lse(t,i){}const Ed=function(){return{minWidth:"83%"}};function
Ose(t,i){if(1&t){const e=I();l(0,"p-dropdown",30,31),
C("ngModelChange",function(s){return
v(e),d(2).currentDevice=s})("onChange",function(){return
v(e),d(2).updateDevice()}),c()}if(2&t){const
e=d(2);q(A(6,Ed)),p("options",e.captureDeviceList.CaptureDeviceList.CaptureDevices)("ngModel",e.currentDevice)("editable",!1)("maxlength",0)}}function
Ase(t,i){if(1&t&&(l(0,"div")(1,"small",32),g(2),c()()),2&t){const
e=d(2);a(2),T(" ",e.warningMessage," ")}}function
Pse(t,i){if(1&t){const
e=I();l(0,"div",8)(1,"div",9)(2,"div",10)(3,"label",11),g(4),m(5,"translate"),c(),_(6,Ose,2,7,"p-dropdown",12),_(7,Ase,3,1,"div",13),k(8,"small",14),c(),l(9,"div",10)(10,"label",15),g(11),m(12,"translate"),c(),l(13,"div",16),g(14),c(),k(15,"small",14),c(),l(16,"div",10)(17,"label",17),g(18),m(19,"translate"),c(),l(20,"p-dropdown",18,19),C("ngModelChange",function(s){return
v(e),d().card.FirewireModel=s}),c(),l(22,"small",14),g(23),m(24,"translate"),c()(),l(25,"div",10)(26,"label",20),g(27),m(28,"translate"),c(),l(29,"p-dropdown",21,22),C("ngModelChange",function
(s){return
v(e),d().card.FirewireConnection=s}),c(),k(31,"small",14),c(),l(32,"div",10)(33,"label",23),g(34),m(35,"translate"),c(),l(36,"p-dropdown",24,25),C("ngModelChange",function(s){return
v(e),d().card.FirewireSpeed=s}),c(),k(38,"small",14),c(),l(39,"div",10)(40,"label",26),g(41),m(42,"translate"),c(),l(43,"p-inputNumber",27),C("ngModelChange",function(s){return
v(e),d().card.SignalTimeout=s}),c(),l(44,"small",14),g(45),m(46,"translate"),c()(),l(47,"div",10)(48,"label",28),g(49),m(50,"translate"),c(),l(51,"p-inputNumber",29),C("ngModelChange",function(s){return
v(e),d().card.ChannelTimeout=s}),c(),l(52,"small",14),g(53),m(54,"translate"),c()()()()}if(2&t){const
e=d();a(4),S(f(5,41,"settings.capture.firewire.device_label")),a(2),p("ngIf",e.isReady),a(1),p("ngIf",e.warningMessage),a(4),S(f(12,43,"settings.capture.vbox.description_label")),a(3),T("
",e.currentDevice.Description," \xa0
"),a(4),S(f(19,45,"settings.capture.firewire.model_label")),a(2),q(A(61,Ed)),p("options",e.models
)("ngModel",e.card.FirewireModel)("editable",!1)("maxlength",0),a(3),T("
",f(24,47,"settings.capture.firewire.model_desc"),"
"),a(4),S(f(28,49,"settings.capture.firewire.connection_label")),a(2),q(A(62,Ed)),p("options",e.connectionTypes)("ngModel",e.card.FirewireConnection)("editable",!1)("maxlength",0),a(5),S(f(35,51,"settings.capture.firewire.speed_label")),a(2),q(A(63,Ed)),p("options",e.speeds)("ngModel",e.card.FirewireSpeed)("editable",!1)("maxlength",0),a(5),S(f(42,53,"settings.capture.sigtimeout_label")),a(2),p("ngModel",e.card.SignalTimeout)("showButtons",!0)("min",250)("max",6e4)("step",250),a(2),T("
",f(46,55,"settings.capture.sigtimeout_desc"),"
"),a(4),S(f(50,57,"settings.capture.tunetimeout_label")),a(2),p("ngModel",e.card.ChannelTimeout)("showButtons",!0)("min",2e3)("max",65e3)("step",250),a(2),T("
",f(54,59,"settings.capture.tunetimeout_desc")," ")}}function
Fse(t,i){1&t&&(k(0,"p-message",38),m(1,"translate")),2&t&&x("text",f(1,1,"common.savesuccess"))}function
Nse(t,i
){1&t&&(k(0,"p-message",39),m(1,"translate")),2&t&&x("text",f(1,1,"common.networkfail"))}function
Vse(t,i){if(1&t){const
e=I();l(0,"div",33)(1,"div",34),_(2,Fse,2,3,"p-message",35),_(3,Nse,2,3,"p-message",36),c(),l(4,"p-button",37),C("onClick",function(){v(e);const
s=d(),r=F(1);return
s.saveForm(),r.form.markAsPristine()}),m(5,"translate"),c()()}if(2&t){const
e=d(),n=F(1);a(2),p("ngIf",e.successCount>0&&0==e.errorCount&&!n.dirty),a(1),p("ngIf",e.errorCount>0),a(1),x("label",f(5,4,"common.save")),p("disabled",!n.dirty||!e.card.VideoDevice||e.setupService.schedulingEnabled)}}let
Bse=(()=>{class
t{constructor(e,n,s){this.captureCardService=e,this.setupService=n,this.translate=s,this.messages={devNotExist:"settings.capture.dvb.devNotExist",unknownName:"settings.capture.dvb.unknownName",devInUse:"settings.capture.dvb.devInUse",noDevSelected:"settings.capture.dvb.noDevSelected",manuallyEnter:"settings.capture.vbox.manuallyenter"},this.models=[{name:"settings.capture.firewire.motogeneric",
value:"MOTO
GENERIC"},{name:"settings.capture.firewire.sageneric",value:"SA
GENERIC"},{name:"DCH-3200",value:"DCH-3200"},{name:"DCX-3200",value:"DCX-3200"},{name:"DCT-3412",value:"DCT-3412"},{name:"DCT-3416",value:"DCT-3416"},{name:"DCT-6200",value:"DCT-6200"},{name:"DCT-6212",value:"DCT-6212"},{name:"DCT-6216",value:"DCT-6216"},{name:"QIP-6200",value:"QIP-6200"},{name:"QIP-7100",value:"QIP-7100"},{name:"PACE-550",value:"PACE-550"},{name:"PACE-779",value:"PACE-779"},{name:"SA3250HD",value:"SA3250HD"},{name:"SA4200HD",value:"SA4200HD"},{name:"SA4250HDC",value:"SA4250HDC"},{name:"SA8300HD",value:"SA8300HD"}],this.connectionTypes=[{name:"settings.capture.firewire.pointtopoint",value:0},{name:"settings.capture.firewire.broadcast",value:1}],this.speeds=[{name:"100Mbps",value:0},{name:"200Mbps",value:1},{name:"400Mbps",value:2},{name:"800Mbps",value:3}],this.captureDeviceList={CaptureDeviceList:{CaptureDevices:[]}},this.currentDevice={FrontendName:"Unknown",InputNames:[""]},this.isReady=!
1,this.warningMessage="",this.errorCount=0,this.successCount=0,this.saveObserver={next:r=>{this.card.CardId&&r.bool?this.successCount++:!this.card.CardId&&r.int?(this.successCount++,this.card.CardId=r.int,this.cardList.CaptureCardList.CaptureCards.push(this.card)):(this.errorCount++,this.currentForm.form.markAsDirty())},error:r=>{console.error(r),this.errorCount++,this.currentForm.form.markAsDirty()}},s.get(this.messages.devNotExist).subscribe(r=>this.messages.devNotExist=r),s.get(this.messages.unknownName).subscribe(r=>this.messages.unknownName=r),s.get(this.messages.devInUse).subscribe(r=>this.messages.devInUse=r),s.get(this.messages.noDevSelected).subscribe(r=>this.messages.noDevSelected=r),s.get(this.messages.manuallyEnter).subscribe(r=>this.messages.manuallyEnter=r),s.get(this.models[0].name).subscribe(r=>this.models[0].name=r),s.get(this.models[1].name).subscribe(r=>this.models[1].name=r),s.get(this.connectionTypes[0].name).subscribe(r=>this.connectionTypes[0].name=r),s.get(th
is.connectionTypes[1].name).subscribe(r=>this.connectionTypes[1].name=r)}ngOnInit(){this.captureCardService.GetCaptureDeviceList("FIREWIRE").subscribe({next:e=>{this.captureDeviceList=e,this.setupDevice()},error:e=>{console.log("GetCaptureDeviceList",e),this.errorCount++}})}ngAfterViewInit(){this.setupService.setCurrentForm(this.currentForm),this.topElement.nativeElement.scrollIntoView({behavior:"smooth",block:"start"})}setupDevice(){if(this.card.VideoDevice||this.captureDeviceList.CaptureDeviceList.CaptureDevices.unshift({VideoDevice:"",FrontendName:this.messages.noDevSelected}),this.card.VideoDevice){let
e=this.captureDeviceList.CaptureDeviceList.CaptureDevices.find(n=>n.VideoDevice==this.card.VideoDevice);e?this.currentDevice=e:(this.currentDevice={VideoDevice:this.card.VideoDevice,FrontendName:this.messages.devNotExist},this.captureDeviceList.CaptureDeviceList.CaptureDevices.push(this.currentDevice))}this.isReady=!0}updateDevice(){this.card.VideoDevice=this.currentDevice.VideoDe
vice,this.card.ChannelTimeout=this.currentDevice.ChannelTimeout,this.card.SignalTimeout=this.currentDevice.SignalTimeout,this.card.FirewireModel=this.currentDevice.FirewireModel,this.checkInUse()}checkInUse(){this.warningMessage=this.cardList.CaptureCardList.CaptureCards.find(n=>n.VideoDevice==this.currentDevice.VideoDevice&&n.CardId!=this.card.CardId)?this.messages.devInUse:""}saveForm(){this.successCount=0,this.errorCount=0,this.card.CardId?this.cardList.CaptureCardList.CaptureCards.forEach(e=>{(e.CardId==this.card.CardId||e.ParentId==this.card.CardId)&&(this.captureCardService.UpdateCaptureCard(e.CardId,"videodevice",this.card.VideoDevice).subscribe(this.saveObserver),this.captureCardService.UpdateCaptureCard(e.CardId,"firewire_model",this.card.FirewireModel).subscribe(this.saveObserver),this.captureCardService.UpdateCaptureCard(e.CardId,"firewire_connection",String(this.card.FirewireConnection)).subscribe(this.saveObserver),this.captureCardService.UpdateCaptureCard(e.CardId,"fir
ewire_speed",String(this.card.FirewireSpeed)).subscribe(this.saveObserver),this.captureCardService.UpdateCaptureCard(e.CardId,"signal_timeout",String(this.card.SignalTimeout)).subscribe(this.saveObserver),this.captureCardService.UpdateCaptureCard(e.CardId,"channel_timeout",String(this.card.ChannelTimeout)).subscribe(this.saveObserver))}):this.captureCardService.AddCaptureCard(this.card).subscribe(this.saveObserver)}}return
t.\u0275fac=function(e){return
new(e||t)(D(Gt),D(Me),D(Oe))},t.\u0275cmp=z({type:t,selectors:[["app-firewire"]],viewQuery:function(e,n){if(1&e&&(W(Ise,5),W(Ese,5)),2&e){let
s;V(s=B())&&(n.currentForm=s.first),V(s=B())&&(n.topElement=s.first)}},inputs:{card:"card",cardList:"cardList"},decls:9,vars:0,consts:[["name","firewireform",1,"ml-3","mr-3"],["firewireform","ngForm"],["top",""],[1,"m-5"],["pTemplate","title"],["pTemplate","subtitle"],["pTemplate","content"],["pTemplate","footer"],[1,"grid"],[1,"mb-4","w-full"],[1,"form-group","field"],["for","VideoDevice",1,"l
abel","block"],["optionLabel","VideoDevice","name","VideoDevice",3,"options","ngModel","editable","maxlength","style","ngModelChange","onChange",4,"ngIf"],[4,"ngIf"],[1,"block"],[1,"label","block"],[1,"col-10","bg-blue-100","text-gray-900"],["for","FirewireModel",1,"label","block"],["optionLabel","name","optionValue","value","name","FirewireModel",3,"options","ngModel","editable","maxlength","ngModelChange"],["FirewireModel","ngModel"],["for","FirewireConnection",1,"label","block"],["optionLabel","name","optionValue","value","name","FirewireConnection",3,"options","ngModel","editable","maxlength","ngModelChange"],["FirewireConnection","ngModel"],["for","FirewireSpeed",1,"label","block"],["optionLabel","name","optionValue","value","name","FirewireSpeed",3,"options","ngModel","editable","maxlength","ngModelChange"],["FirewireSpeed","ngModel"],["for","SignalTimeout",1,"label","block"],["name","SignalTimeout","id","SignalTimeout",3,"ngModel","showButtons","min","max","step","ngModelChan
ge"],["for","ChannelTimeout",1,"label","block"],["name","ChannelTimeout","id","ChannelTimeout",3,"ngModel","showButtons","min","max","step","ngModelChange"],["optionLabel","VideoDevice","name","VideoDevice",3,"options","ngModel","editable","maxlength","ngModelChange","onChange"],["VideoDevice","ngModel"],[1,"p-error","block"],[1,"grid","nogutter"],[1,"col-12"],["severity","success",3,"text",4,"ngIf"],["severity","error",3,"text",4,"ngIf"],["icon","pi
pi-save","iconPos","left",1,"col","pr-1",3,"label","disabled","onClick"],["severity","success",3,"text"],["severity","error",3,"text"]],template:function(e,n){1&e&&(l(0,"form",0,1),k(2,"span",null,2),l(4,"p-card",3),_(5,Rse,2,3,"ng-template",4),_(6,Lse,0,0,"ng-template",5),_(7,Pse,55,64,"ng-template",6),_(8,Vse,6,6,"ng-template",7),c()())},directives:[ze,Ue,He,Ne,ne,Q,Ot,Te,_e,_n,pt,qe,ve],pipes:[ce],styles:[""]}),t})();const
Hse=["scroll"],ht=function(){return{minWidth:"400px"}};function
qse(t,i){if(1&t){const e=I();l(0,"div",0)(1,"lab
el",38),g(2),m(3,"translate"),c(),l(4,"p-dropdown",39,40),C("ngModelChange",function(s){return
v(e),d(2).scanRequest.FreqTable=s})("onChange",function(){return
v(e),d(2).onFreqTableChange(!1)}),c(),l(6,"small",4),g(7),m(8,"translate"),c()()}if(2&t){const
e=d(2);a(2),S(f(3,8,"settings.channelscan.freqtable_label")),a(2),q(A(12,ht)),p("options",e.freqTableSelect)("ngModel",e.scanRequest.FreqTable)("editable",!1)("maxlength",0),a(3),T("
",f(8,10,"settings.channelscan.freqtable_desc")," ")}}function
Gse(t,i){if(1&t){const
e=I();l(0,"div",0)(1,"label",41),g(2),m(3,"translate"),c(),l(4,"p-dropdown",42,43),C("ngModelChange",function(s){return
v(e),d(2).scanRequest.FreqTable=s}),c(),l(6,"small",4),g(7),m(8,"translate"),c()()}if(2&t){const
e=d(2);a(2),S(f(3,8,"settings.channelscan.country_label")),a(2),q(A(12,ht)),p("options",e.countryTable)("ngModel",e.scanRequest.FreqTable)("editable",!1)("maxlength",0),a(3),T("
",f(8,10,"settings.channelscan.scantype_dvbt_desc"),"
")}}function Use(t,i){if
(1&t){const
e=I();l(0,"div",0)(1,"label",41),g(2),m(3,"translate"),c(),l(4,"p-dropdown",42,43),C("ngModelChange",function(s){return
v(e),d(2).scanRequest.FreqTable=s}),c(),k(6,"small",4),c()}if(2&t){const
e=d(2);a(2),S(f(3,7,"settings.channelscan.country_label")),a(2),q(A(9,ht)),p("options",e.networkTable)("ngModel",e.scanRequest.FreqTable)("editable",!1)("maxlength",0)}}function
zse(t,i){if(1&t){const
e=I();l(0,"div",0)(1,"label",44),g(2),m(3,"translate"),c(),l(4,"p-dropdown",45,46),C("ngModelChange",function(s){return
v(e),d(2).scanRequest.Modulation=s})("onChange",function(){return
v(e),d(2).onFreqTableChange(!0)}),c(),l(6,"small",4),g(7),m(8,"translate"),c()()}if(2&t){const
e=d(2);a(2),S(f(3,8,"settings.channelscan.modulation_label")),a(2),q(A(12,ht)),p("options",e.atscModulationTable)("ngModel",e.scanRequest.Modulation)("editable",!1)("maxlength",0),a(3),T("
",f(8,10,"settings.channelscan.atscmodulation_desc"),"
")}}function
jse(t,i){1&t&&(l(0,"div")(1,"small",51),g(2),m(3,"tra
nslate"),c()()),2&t&&(a(2),S(f(3,1,"settings.channelscan.invalid_range")))}function
$se(t,i){if(1&t){const
e=I();l(0,"div",0)(1,"label",47),g(2),m(3,"translate"),c(),l(4,"p-dropdown",48,49),C("ngModelChange",function(s){return
v(e),d(2).scanRequest.FirstChan=s}),c(),l(6,"small",4),g(7),m(8,"translate"),c(),_(9,jse,4,3,"div",50),c()}if(2&t){const
e=d(2);a(2),S(f(3,9,"settings.channelscan.firstchan_label")),a(2),q(A(13,ht)),p("options",e.channels)("ngModel",e.scanRequest.FirstChan)("editable",!1)("maxlength",0),a(3),T("
",f(8,11,"settings.channelscan.firstchan_desc"),"
"),a(2),p("ngIf",e.channelCount<1)}}function
Wse(t,i){1&t&&(l(0,"div")(1,"small",51),g(2),m(3,"translate"),c()()),2&t&&(a(2),S(f(3,1,"settings.channelscan.invalid_range")))}function
Kse(t,i){if(1&t){const
e=I();l(0,"div",0)(1,"label",52),g(2),m(3,"translate"),c(),l(4,"p-dropdown",53,54),C("ngModelChange",function(s){return
v(e),d(2).scanRequest.LastChan=s}),c(),l(6,"small",4),g(7),m(8,"translate"),c(),_(9,Wse,4,3,"div",
50),c()}if(2&t){const
e=d(2);a(2),S(f(3,9,"settings.channelscan.lastchan_label")),a(2),q(A(13,ht)),p("options",e.channels)("ngModel",e.scanRequest.LastChan)("editable",!1)("maxlength",0),a(3),T("
",f(8,11,"settings.channelscan.lastchan_desc"),"
"),a(2),p("ngIf",e.channelCount<1)}}function
Qse(t,i){if(1&t&&(l(0,"div",0)(1,"label",30),g(2),m(3,"translate"),c(),l(4,"div",29),g(5),c(),l(6,"small",4),g(7),m(8,"translate"),c()()),2&t){const
e=d(2);a(2),S(f(3,3,"settings.channelscan.chancount_label")),a(3),T("
",e.calcCount()," \xa0 "),a(2),T("
",f(8,5,"settings.channelscan.chancount_desc")," ")}}const
Xs=function(){return["DVBT","DVBT2"]};function
Jse(t,i){if(1&t&&(l(0,"p-fieldset",37),m(1,"translate"),_(2,qse,9,13,"div",33),_(3,Gse,9,13,"div",33),_(4,Use,7,10,"div",33),_(5,zse,9,13,"div",33),_(6,$se,10,14,"div",33),_(7,Kse,10,14,"div",33),_(8,Qse,9,7,"div",33),c()),2&t){const
e=d();x("legend",f(1,10,"settings.channelscan.type.full")),p("toggleable",!1)("collapsed",!1),a(2),p("ngIf","ATSC
"==e.scanSubType),a(1),p("ngIf",A(12,Xs).includes(e.scanSubType)),a(1),p("ngIf","DVBC"==e.scanSubType),a(1),p("ngIf","ATSC"==e.scanSubType),a(1),p("ngIf","ATSC"==e.scanSubType),a(1),p("ngIf","ATSC"==e.scanSubType),a(1),p("ngIf","ATSC"==e.scanSubType)}}function
Yse(t,i){if(1&t){const
e=I();l(0,"div",0)(1,"label",61),g(2),m(3,"translate"),c(),l(4,"p-dropdown",62,63),C("ngModelChange",function(s){return
v(e),d(2).satTuning=s})("onChange",function(){return
v(e),d(2).onSatTuningChange()}),c(),l(6,"small",4),g(7),m(8,"translate"),c()()}if(2&t){const
e=d(2);a(2),S(f(3,8,"settings.channelscan.sattuning_label")),a(2),q(A(12,ht)),p("options",e.satTuningTable)("ngModel",e.satTuning)("editable",!1)("maxlength",0),a(3),T("
",f(8,10,"settings.channelscan.sattuning_desc")," ")}}function
Zse(t,i){if(1&t){const
e=I();l(0,"div",0)(1,"label",64),g(2),m(3,"translate"),c(),l(4,"p-dropdown",65,66),C("ngModelChange",function(s){return
v(e),d(2).scanRequest.Bandwidth=s}),c(),l(6,"small",4),g(7),m(8,"transl
ate"),c()()}if(2&t){const
e=d(2);a(2),S(f(3,8,"settings.channelscan.bandwidth_label")),a(2),q(A(12,ht)),p("options",e.bandwidthTable)("ngModel",e.scanRequest.Bandwidth)("editable",!1)("maxlength",0),a(3),T("
",f(8,10,"settings.channelscan.bandwidth_desc")," ")}}function
Xse(t,i){if(1&t){const
e=I();l(0,"div",0)(1,"label",67),g(2),m(3,"translate"),c(),l(4,"p-dropdown",68,69),C("ngModelChange",function(s){return
v(e),d(2).scanRequest.Polarity=s}),c(),l(6,"small",4),g(7),m(8,"translate"),c()()}if(2&t){const
e=d(2);a(2),S(f(3,8,"settings.channelscan.polarity_label")),a(2),q(A(12,ht)),p("options",e.polarityTable)("ngModel",e.scanRequest.Polarity)("editable",!1)("maxlength",0),a(3),T("
",f(8,10,"settings.channelscan.polarity_desc")," ")}}function
ere(t,i){if(1&t){const
e=I();l(0,"div",0)(1,"label",70),g(2),m(3,"translate"),c(),l(4,"p-dropdown",71,72),C("ngModelChange",function(s){return
v(e),d(2).scanRequest.SymbolRate=s}),c(),l(6,"small",4),g(7),m(8,"translate"),c()()}if(2&t){const
e=d(2
);a(2),S(f(3,8,"settings.channelscan.symbolrate_label")),a(2),q(A(12,ht)),p("options",e.dvbcSymbolRateTable)("ngModel",e.scanRequest.SymbolRate)("editable",!0)("maxlength",8),a(3),T("
",f(8,10,"settings.channelscan.dvbcsymbolrate_desc"),"
")}}function tre(t,i){if(1&t){const
e=I();l(0,"div",0)(1,"label",73),g(2),m(3,"translate"),c(),l(4,"p-dropdown",74,75),C("ngModelChange",function(s){return
v(e),d(2).scanRequest.SymbolRate=s}),c(),l(6,"small",4),g(7),m(8,"translate"),c()()}if(2&t){const
e=d(2);a(2),S(f(3,8,"settings.channelscan.symbolrate_label")),a(2),q(A(12,ht)),p("options",e.dvbsSymbolRateTable)("ngModel",e.scanRequest.SymbolRate)("editable",!0)("maxlength",8),a(3),T("
",f(8,10,"settings.channelscan.dvbssymbolrate_desc"),"
")}}function nre(t,i){if(1&t){const
e=I();l(0,"div",0)(1,"label",76),g(2),m(3,"translate"),c(),l(4,"p-dropdown",77,78),C("ngModelChange",function(s){return
v(e),d(2).scanRequest.Constellation=s}),c(),l(6,"small",4),g(7),m(8,"translate"),c()()}if(2&t){const
e=d
(2);a(2),S(f(3,8,"settings.channelscan.constellation_label")),a(2),q(A(12,ht)),p("options",e.modulationTable)("ngModel",e.scanRequest.Constellation)("editable",!1)("maxlength",0),a(3),T("
",f(8,10,"settings.channelscan.constellation_desc"),"
")}}function ire(t,i){if(1&t){const
e=I();l(0,"div",0)(1,"label",79),g(2),m(3,"translate"),c(),l(4,"p-dropdown",80,81),C("ngModelChange",function(s){return
v(e),d(2).scanRequest.Modulation=s}),c(),l(6,"small",4),g(7),m(8,"translate"),c()()}if(2&t){const
e=d(2);a(2),S(f(3,8,"settings.channelscan.modulation_label")),a(2),q(A(12,ht)),p("options",e.modulationTable)("ngModel",e.scanRequest.Modulation)("editable",!1)("maxlength",0),a(3),T("
",f(8,10,"settings.channelscan.Modulation_desc")," ")}}function
sre(t,i){if(1&t){const
e=I();l(0,"div",0)(1,"label",82),g(2),m(3,"translate"),c(),l(4,"p-dropdown",83,84),C("ngModelChange",function(s){return
v(e),d(2).scanRequest.Modulation=s}),c(),l(6,"small",4),g(7),m(8,"translate"),c()()}if(2&t){const
e=d(2);a(2)
,S(f(3,8,"settings.channelscan.modulation_label")),a(2),q(A(12,ht)),p("options",e.dvbsModulationTable)("ngModel",e.scanRequest.Modulation)("editable",!1)("maxlength",0),a(3),T("
",f(8,10,"settings.channelscan.dvbsmodulation_desc"),"
")}}function rre(t,i){if(1&t){const
e=I();l(0,"div",0)(1,"label",85),g(2),m(3,"translate"),c(),l(4,"p-dropdown",86,87),C("ngModelChange",function(s){return
v(e),d(2).scanRequest.ModSys=s}),c(),l(6,"small",4),g(7),m(8,"translate"),c()()}if(2&t){const
e=d(2);a(2),S(f(3,8,"settings.channelscan.modsys_label")),a(2),q(A(12,ht)),p("options",e.dvbtModSysTable)("ngModel",e.scanRequest.ModSys)("editable",!1)("maxlength",0),a(3),T("
",f(8,10,"settings.channelscan.dvbtmodsys_desc")," ")}}function
ore(t,i){if(1&t){const
e=I();l(0,"div",0)(1,"label",88),g(2),m(3,"translate"),c(),l(4,"p-dropdown",89,90),C("ngModelChange",function(s){return
v(e),d(2).scanRequest.ModSys=s}),c(),l(6,"small",4),g(7),m(8,"translate"),c()()}if(2&t){const
e=d(2);a(2),S(f(3,8,"settings.channe
lscan.modsys_label")),a(2),q(A(12,ht)),p("options",e.dvbcModSysTable)("ngModel",e.scanRequest.ModSys)("editable",!1)("maxlength",0),a(3),T("
",f(8,10,"settings.channelscan.dvbcmodsys_desc")," ")}}function
are(t,i){if(1&t){const
e=I();l(0,"div",0)(1,"label",91),g(2),m(3,"translate"),c(),l(4,"p-dropdown",92,93),C("ngModelChange",function(s){return
v(e),d(2).scanRequest.ModSys=s}),c(),l(6,"small",4),g(7),m(8,"translate"),c()()}if(2&t){const
e=d(2);a(2),S(f(3,8,"settings.channelscan.modsys_label")),a(2),q(A(12,ht)),p("options",e.dvbsModSysTable)("ngModel",e.scanRequest.ModSys)("editable",!1)("maxlength",0),a(3),T("
",f(8,10,"settings.channelscan.dvbsmodsys_desc")," ")}}function
lre(t,i){if(1&t){const
e=I();l(0,"div",0)(1,"label",94),g(2),m(3,"translate"),c(),l(4,"p-dropdown",95,96),C("ngModelChange",function(s){return
v(e),d(2).scanRequest.CodeRateLP=s}),c(),l(6,"small",4),g(7),m(8,"translate"),c()()}if(2&t){const
e=d(2);a(2),S(f(3,8,"settings.channelscan.coderatelp_label")),a(2),q(A(12
,ht)),p("options",e.fecTable)("ngModel",e.scanRequest.CodeRateLP)("editable",!1)("maxlength",0),a(3),T("
",f(8,10,"settings.channelscan.coderatelp_desc")," ")}}function
cre(t,i){if(1&t){const
e=I();l(0,"div",0)(1,"label",97),g(2),m(3,"translate"),c(),l(4,"p-dropdown",98,99),C("ngModelChange",function(s){return
v(e),d(2).scanRequest.CodeRateHP=s}),c(),l(6,"small",4),g(7),m(8,"translate"),c()()}if(2&t){const
e=d(2);a(2),S(f(3,8,"settings.channelscan.coderatehp_label")),a(2),q(A(12,ht)),p("options",e.fecTable)("ngModel",e.scanRequest.CodeRateHP)("editable",!1)("maxlength",0),a(3),T("
",f(8,10,"settings.channelscan.coderatehp_desc")," ")}}function
ure(t,i){if(1&t){const
e=I();l(0,"div",0)(1,"label",100),g(2),m(3,"translate"),c(),l(4,"p-dropdown",101,102),C("ngModelChange",function(s){return
v(e),d(2).scanRequest.FEC=s}),c(),l(6,"small",4),g(7),m(8,"translate"),c()()}if(2&t){const
e=d(2);a(2),S(f(3,8,"settings.channelscan.FEC_label")),a(2),q(A(12,ht)),p("options",e.fecTable)("ngModel",e.
scanRequest.FEC)("editable",!1)("maxlength",0),a(3),T("
",f(8,10,"settings.channelscan.FEC_desc")," ")}}function
dre(t,i){if(1&t){const
e=I();l(0,"div",0)(1,"label",103),g(2),m(3,"translate"),c(),l(4,"p-dropdown",104,105),C("ngModelChange",function(s){return
v(e),d(2).scanRequest.TransmissionMode=s}),c(),l(6,"small",4),g(7),m(8,"translate"),c()()}if(2&t){const
e=d(2);a(2),S(f(3,8,"settings.channelscan.transmissionmode_label")),a(2),q(A(12,ht)),p("options",e.transmissionModeTable)("ngModel",e.scanRequest.TransmissionMode)("editable",!1)("maxlength",0),a(3),T("
",f(8,10,"settings.channelscan.transmissionmode_desc"),"
")}}function pre(t,i){if(1&t){const
e=I();l(0,"div",0)(1,"label",106),g(2),m(3,"translate"),c(),l(4,"p-dropdown",107,108),C("ngModelChange",function(s){return
v(e),d(2).scanRequest.GuardInterval=s}),c(),l(6,"small",4),g(7),m(8,"translate"),c()()}if(2&t){const
e=d(2);a(2),S(f(3,8,"settings.channelscan.guardinterval_label")),a(2),q(A(12,ht)),p("options",e.guardIntervalTable
)("ngModel",e.scanRequest.GuardInterval)("editable",!1)("maxlength",0),a(3),T("
",f(8,10,"settings.channelscan.guardinterval_desc"),"
")}}function hre(t,i){if(1&t){const
e=I();l(0,"div",0)(1,"label",109),g(2),m(3,"translate"),c(),l(4,"p-dropdown",110,111),C("ngModelChange",function(s){return
v(e),d(2).scanRequest.Hierarchy=s}),c(),l(6,"small",4),g(7),m(8,"translate"),c()()}if(2&t){const
e=d(2);a(2),S(f(3,8,"settings.channelscan.hierarchy_label")),a(2),q(A(12,ht)),p("options",e.hierarchyTable)("ngModel",e.scanRequest.Hierarchy)("editable",!1)("maxlength",0),a(3),T("
",f(8,10,"settings.channelscan.hierarchy_desc")," ")}}function
mre(t,i){if(1&t){const
e=I();l(0,"div",0)(1,"label",112),g(2),m(3,"translate"),c(),l(4,"p-dropdown",113,114),C("ngModelChange",function(s){return
v(e),d(2).scanRequest.RollOff=s}),c(),l(6,"small",4),g(7),m(8,"translate"),c()()}if(2&t){const
e=d(2);a(2),S(f(3,8,"settings.channelscan.rolloff_label")),a(2),q(A(12,ht)),p("options",e.rollOffTable)("ngModel",e.scanR
equest.RollOff)("editable",!1)("maxlength",0),a(3),T("
",f(8,10,"settings.channelscan.rolloff_desc")," ")}}const
Tg=function(){return["DVBS","DVBS2"]},fre=function(t){return{unit:t}},gre=function(){return["DVBC","DVBS","DVBS2"]};function
_re(t,i){if(1&t){const
e=I();l(0,"p-fieldset",37),m(1,"translate"),_(2,Yse,9,13,"div",33),l(3,"div",0)(4,"label",55),g(5),m(6,"translate"),c(),l(7,"p-inputNumber",56),C("ngModelChange",function(s){return
v(e),d().scanRequest.Frequency=s}),c(),l(8,"small",4),k(9,"div",57),c()(),_(10,Zse,9,13,"div",33),_(11,Xse,9,13,"div",33),_(12,ere,9,13,"div",33),_(13,tre,9,13,"div",33),l(14,"div",0)(15,"label",58),g(16),m(17,"translate"),c(),l(18,"p-dropdown",59,60),C("ngModelChange",function(s){return
v(e),d().scanRequest.Inversion=s}),c(),l(20,"small",4),g(21),m(22,"translate"),c()(),_(23,nre,9,13,"div",33),_(24,ire,9,13,"div",33),_(25,sre,9,13,"div",33),_(26,rre,9,13,"div",33),_(27,ore,9,13,"div",33),_(28,are,9,13,"div",33),_(29,lre,9,13,"div",33),_(30,cre,9,13
,"div",33),_(31,ure,9,13,"div",33),_(32,dre,9,13,"div",33),_(33,pre,9,13,"div",33),_(34,hre,9,13,"div",33),_(35,mre,9,13,"div",33),c()}if(2&t){const
e=d();x("legend",f(1,35,"settings.channelscan.type.fulltuned")),p("toggleable",!1)("collapsed",!1),a(2),p("ngIf","DVBS2"==e.scanSubType),a(3),S(f(6,37,"settings.channelscan.frequency_label")),a(2),p("ngModel",e.scanRequest.Frequency)("min",0)("max",999999999),a(2),p("translate","settings.channelscan.frequency_desc")("translateParams",U(44,fre,A(43,Tg).includes(e.scanSubType)?"kHZ":"Hz")),a(1),p("ngIf",A(46,Xs).includes(e.scanSubType)),a(1),p("ngIf",A(47,Tg).includes(e.scanSubType)),a(1),p("ngIf","DVBC"==e.scanSubType),a(1),p("ngIf",A(48,Tg).includes(e.scanSubType)),a(3),S(f(17,39,"settings.channelscan.inversion_label")),a(2),q(A(49,ht)),p("options",e.inversionTable)("ngModel",e.scanRequest.Inversion)("editable",!1)("maxlength",0),a(3),T("
",f(22,41,"settings.channelscan.inversion_desc"),"
"),a(2),p("ngIf",A(50,Xs).includes(e.scanSubType
)),a(1),p("ngIf","DVBC"==e.scanSubType),a(1),p("ngIf","DVBS2"==e.scanSubType),a(1),p("ngIf","DVBT2"==e.scanSubType),a(1),p("ngIf","DVBC"==e.scanSubType),a(1),p("ngIf","DVBS2"==e.scanSubType),a(1),p("ngIf",A(51,Xs).includes(e.scanSubType)),a(1),p("ngIf",A(52,Xs).includes(e.scanSubType)),a(1),p("ngIf",A(53,gre).includes(e.scanSubType)),a(1),p("ngIf",A(54,Xs).includes(e.scanSubType)),a(1),p("ngIf",A(55,Xs).includes(e.scanSubType)),a(1),p("ngIf",A(56,Xs).includes(e.scanSubType)),a(1),p("ngIf","DVBS2"==e.scanSubType)}}function
bre(t,i){if(1&t){const
e=I();l(0,"p-fieldset",37),m(1,"translate"),l(2,"div",0)(3,"label",115),g(4),m(5,"translate"),c(),l(6,"p-dropdown",116,117),C("ngModelChange",function(s){return
v(e),d().scanRequest.ScanId=s}),c(),k(8,"small",4),c()()}if(2&t){const
e=d();x("legend",f(1,10,"settings.channelscan.type.import")),p("toggleable",!1)("collapsed",!1),a(4),S(f(5,12,"settings.channelscan.scanimport_label")),a(2),q(A(14,ht)),p("options",e.scans)("ngModel",e.scanRequest.
ScanId)("editable",!1)("maxlength",0)}}function
vre(t,i){if(1&t){const
e=I();l(0,"div",0)(1,"label",122),g(2),m(3,"translate"),c(),l(4,"p-dropdown",123,124),C("ngModelChange",function(s){return
v(e),d(2).scanRequest.MplexId=s}),c(),k(6,"small",4),c()}if(2&t){const
e=d(2);a(2),S(f(3,7,"settings.channelscan.transport_label")),a(2),q(A(9,ht)),p("options",e.multiplex)("ngModel",e.scanRequest.MplexId)("editable",!1)("maxlength",0)}}function
Cre(t,i){if(1&t){const
e=I();l(0,"p-fieldset",37),m(1,"translate"),_(2,vre,7,10,"div",33),l(3,"div",0)(4,"p-checkbox",118,119),C("ngModelChange",function(s){return
v(e),d().scanRequest.IgnoreSignalTimeout=s}),m(6,"translate"),c(),l(7,"small",4),g(8),m(9,"translate"),c()(),l(10,"div",0)(11,"p-checkbox",120,121),C("ngModelChange",function(s){return
v(e),d().scanRequest.FollowNITSetting=s}),m(13,"translate"),c(),l(14,"small",4),g(15),m(16,"translate"),c()()()}if(2&t){const
e=d();x("legend",f(1,12,"settings.channelscan.type.transports")),p("toggleable",!1
)("collapsed",!1),a(2),p("ngIf","ONETRANSPORT"==e.scanRequest.ScanType),a(2),x("label",f(6,14,"settings.channelscan.ignoresignaltimeout_label")),p("ngModel",e.scanRequest.IgnoreSignalTimeout)("binary",!0),a(4),T("
",f(9,16,"settings.channelscan.ignoresignaltimeout_desc"),"
"),a(3),x("label",f(13,18,"settings.channelscan.follownitsetting_label")),p("ngModel",e.scanRequest.FollowNITSetting)("binary",!0),a(4),T("
",f(16,20,"settings.channelscan.follownitsetting_desc"),"
")}}function
yre(t,i){1&t&&(l(0,"small",4),g(1),m(2,"translate"),c()),2&t&&(a(1),T("
",f(2,1,"settings.channelscan.scan_desc")," "))}function
wre(t,i){if(1&t&&(l(0,"div",0)(1,"div",125)(2,"b"),g(3),c(),g(4,"
\xa0 "),c(),k(5,"br"),c()),2&t){const
e=d();a(3),S(e.scanStatus.DialogMsg)}}function Tre(t,i){if(1&t){const
e=I();l(0,"div",0)(1,"input",126,127),C("ngModelChange",function(s){return
v(e),d().dialogResponse.DialogString=s}),c()()}if(2&t){const
e=d();a(1),p("ngModel",e.dialogResponse.DialogString)}}function Sre(t,i){
if(1&t){const
e=I();l(0,"div",0)(1,"label",128),g(2),m(3,"translate"),c(),l(4,"p-dropdown",129,3),C("ngModelChange",function(s){return
v(e),d().buttonText=s}),c()()}if(2&t){const
e=d();a(2),S(f(3,7,"settings.channelscan.scanimport_option")),a(2),q(A(9,ht)),p("options",e.scanStatus.DialogButtons)("ngModel",e.buttonText)("editable",!1)("maxlength",0)}}function
xre(t,i){if(1&t){const
e=I();l(0,"div",0)(1,"p-button",130),C("onClick",function(){return
v(e),d().respondDialog()}),m(2,"translate"),c()()}2&t&&(a(1),x("label",f(2,1,"common.submit")))}const
Sg=function(){return{height:"20px"}},Dre=function(){return{width:"100%",height:"400px"}};class
j{constructor(i,e){this.label=i,this.value=e}}class
Ar{constructor(i,e,n,s,r,o,u){this.label=i,this.Frequency=e,this.Polarity=n,this.SymbolRate=s,this.Modulation=r,this.ModSys=o,this.FEC=u}}let
Mre=(()=>{class
t{constructor(e,n,s,r){this.translate=e,this.channelService=n,this.captureCardService=s,this.setupService=r,this.serviceValues=[new
j("sett
ings.channelscan.tv","tv"),new
j("settings.channelscan.tvradio","audio"),new
j("settings.channelscan.all","all")],this.scanSubType="",this.scanTypes=[],this.freqTableSelect=[new
j("settings.channelscan.freq.usa.broadcast","us"),new
j("settings.channelscan.freq.usa.cablehi","uscablehigh"),new
j("settings.channelscan.freq.usa.cablehrchi","ushrchigh"),new
j("settings.channelscan.freq.usa.cableirchi","usirchigh"),new
j("settings.channelscan.freq.usa.cable","uscable"),new
j("settings.channelscan.freq.usa.cablehrc","ushrc"),new
j("settings.channelscan.freq.usa.cableirc","usirc")],this.countryTable=[new
j("settings.channelscan.country.au","au"),new
j("settings.channelscan.country.cl","cl"),new
j("settings.channelscan.country.cz","cz"),new
j("settings.channelscan.country.dk","dk"),new
j("settings.channelscan.country.fi","fi"),new
j("settings.channelscan.country.fr","fr"),new
j("settings.channelscan.country.de","de"),new
j("settings.channelscan.country.gr","gr"),new
j("settings.channelscan.c
ountry.il","il"),new
j("settings.channelscan.country.it","it"),new
j("settings.channelscan.country.nl","nl"),new
j("settings.channelscan.country.nz","nz"),new
j("settings.channelscan.country.es","es"),new
j("settings.channelscan.country.se","se"),new
j("settings.channelscan.country.gb","gb")],this.networkTable=[new
j("settings.channelscan.country.de","de"),new
j("settings.channelscan.country.nl","nl"),new
j("settings.channelscan.country.gb","gb")],this.satTuningTable=[new
Ar("(Select
Satellite)",0,"h","27500000","qpsk","DVB-S2","auto"),new
Ar("Thor 5/6/7
0.8W",10872e3,"h","25000000","8psk","DVB-S2","3/4"),new
Ar("Eutelsat
7.0E",10721e3,"h","22000000","qpsk","DVB-S","3/4"),new
Ar("Hotbird
13.0E",12015e3,"h","27500000","8psk","DVB-S2","3/4"),new
Ar("Astra-1
19.2E",11229e3,"v","22000000","8psk","DVB-S2","2/3"),new
Ar("Astra-3
23.5E",12031500,"h","27500000","qpsk","DVB-S2","auto"),new
Ar("Astra-2
28.2E",10714e3,"h","22000000","qpsk","DVB-S","5/6")],this.atscModulationTable=[ne
w j("settings.channelscan.modulation.atsc.vsb8","vsb8"),new
j("settings.channelscan.modulation.atsc.qam256","qam256"),new
j("settings.channelscan.modulation.atsc.qam128","qam128"),new
j("settings.channelscan.modulation.atsc.qam64","qam64")],this.bandwidthTable=[new
j("settings.channelscan.auto","a"),new j("6
MHz","6"),new j("7 MHz","7"),new j("8
MHz","8")],this.inversionTable=[new
j("settings.channelscan.auto","a"),new
j("settings.channelscan.on","1"),new
j("settings.channelscan.off","0")],this.modulationTable=[new
j("settings.channelscan.auto","auto"),new
j("QPSK","qpsk"),new j("QAM-16","qam_16"),new
j("QAM-32","qam_32"),new j("QAM-64","qam_64"),new
j("QAM-128","qam_128"),new
j("QAM-256","qam_256")],this.dvbsModulationTable=[new
j("QPSK","qpsk"),new j("8PSK","8psk"),new
j("QAM-16","qam_16"),new j("16PSK","16psk"),new
j("32PSK","32psk")],this.dvbtModSysTable=[new
j("DVB-T","DVB-T"),new
j("DVB-T2","DVB-T2")],this.dvbcModSysTable=[new
j("DVB-C/A","DVB-C/A"),new
j("DVB-C/B","DVB-C/B"),
new j("DVB-C/C","DVB-C/C")],this.dvbsModSysTable=[new
j("DVB-S","DVB-S"),new
j("DVB-S2","DVB-S2")],this.polarityTable=[new
j("settings.channelscan.polarity.horizontal","h"),new
j("settings.channelscan.polarity.vertical","v"),new
j("settings.channelscan.polarity.right","r"),new
j("settings.channelscan.polarity.left","l")],this.fecTable=[new
j("settings.channelscan.auto","auto"),new
j("settings.channelscan.none","none"),new
j("1/2","1/2"),new j("2/3","2/3"),new
j("3/4","3/4"),new j("4/5","4/5"),new
j("5/6","5/6"),new j("6/2","6/2"),new
j("7/8","7/8"),new j("8/9","8/9"),new
j("3/5","3/5"),new
j("9/10","9/10")],this.transmissionModeTable=[new
j("settings.channelscan.auto","a"),new
j("2K","2"),new
j("8K","8")],this.guardIntervalTable=[new
j("settings.channelscan.auto","auto"),new
j("1/4","1/4"),new j("1/8","1/8"),new
j("1/16","1/16"),new
j("1/32","1/32")],this.hierarchyTable=[new
j("settings.channelscan.auto","a"),new
j("settings.channelscan.none","n"),new
j("1","1"),new j("2","2"),new j
("4","4")],this.dvbcSymbolRateTable=[new
j("3450000","3450000"),new
j("5000000","5000000"),new
j("5900000","5900000"),new
j("6875000","6875000"),new
j("6900000","6900000"),new
j("6950000","6950000")],this.dvbsSymbolRateTable=[new
j("3333000","3333000"),new
j("22000000","22000000"),new
j("22500000","22500000"),new
j("23000000","23000000"),new
j("27500000","27500000"),new
j("28000000","28000000"),new
j("28500000","28500000"),new
j("29500000","29500000"),new
j("29700000","29700000"),new
j("29900000","29900000")],this.rollOffTable=[new
j("0.35","0.35"),new j("0.20","0.20"),new
j("0.25","0.25"),new
j("Auto","auto")],this.lockDesc="settings.channelscan.lock_value",this.nolockDesc="settings.channelscan.nolock_value",this.procDesc="processed",this.unprocDesc="unprocessed",this.satTuning=this.satTuningTable[0],this.scanRequest={CardId:0,DesiredServices:"tv",FreeToAirOnly:!0,ChannelNumbersOnly:!1,CompleteChannelsOnly:!0,FullChannelSearch:!0,RemoveDuplicates:!0,AddFullTS:!1,TestDecryptable:!1,
ScanType:"",FreqTable:"",Modulation:"",FirstChan:"",LastChan:"",ScanId:0,IgnoreSignalTimeout:!1,FollowNITSetting:!1,MplexId:0,Frequency:0,Bandwidth:"",Polarity:"",SymbolRate:"",Inversion:"",Constellation:"",ModSys:"",CodeRateLP:"",CodeRateHP:"",FEC:"",TransmissionMode:"",GuardInterval:"",Hierarchy:"",RollOff:""},this.emptyScanStatus={CardId:0,Status:"",SignalLock:!1,Progress:0,SignalNoise:0,SignalStrength:0,StatusLog:"",StatusText:"",StatusTitle:"",DialogMsg:"",DialogInputReq:!1,DialogButtons:[]},this.dialogResponse={CardId:0,DialogString:"",DialogButton:0},this.buttonText="",this.scanStatus=Object.assign({},this.emptyScanStatus),this.channels=[],this.channelCount=1,this.refreshCount=0,this.helpText="",this.scans=[],this.multiplex=[],this.tableTranslate(this.serviceValues),this.tableTranslate(this.freqTableSelect),this.tableTranslate(this.countryTable),this.tableTranslate(this.networkTable),this.tableTranslate(this.atscModulationTable),this.tableTranslate(this.bandwidthTable),this.t
ableTranslate(this.inversionTable),this.tableTranslate(this.modulationTable),this.tableTranslate(this.fecTable),this.tableTranslate(this.transmissionModeTable),this.tableTranslate(this.guardIntervalTable),this.tableTranslate(this.hierarchyTable),this.tableTranslate(this.polarityTable),e.get(this.lockDesc).subscribe(o=>this.lockDesc=o),e.get(this.nolockDesc).subscribe(o=>this.nolockDesc=o)}tableTranslate(e){e.forEach(n=>{n.label.startsWith("settings.")&&this.translate.get(n.label).subscribe(s=>n.label=s)})}ngAfterViewInit(){this.refreshStatus(!1),this.getScanList(),this.getmultiplexList(),this.iconnection.scanComponent=this}ngOnInit(){this.iconnection.deviceFree.subscribe(e=>{this.captureCardService.GetCardSubType(this.card.CardId).subscribe(n=>{this.cardSubType=n.CardSubType,this.buildScanTypeList(),this.onFreqTableChange(!1),"DVBT2"==this.cardSubType.InputType&&(this.scanRequest.ModSys="DVB-T2"),"DVBS2"==this.cardSubType.InputType&&(this.scanRequest.ModSys="DVB-S2"),"DVBC"==this.ca
rdSubType.InputType&&(this.scanRequest.SymbolRate="6900000"),["DVBS","DVBS2"].includes(this.cardSubType.InputType)&&(this.scanRequest.SymbolRate="27500000")})}),this.iconnection.captureDeviceList.CaptureDeviceList.CaptureDevices.length>0&&!this.cardSubType&&this.iconnection.deviceFree.next(!0)}buildScanTypeList(){let
e=!1;switch(this.helpText="",this.scanSubType=this.cardSubType.InputType,this.cardSubType.InputType){case"V4L":case"MPEG":this.scanTypes.push({label:"settings.channelscan.type.full",value:"FULL"}),this.scanTypes.push({label:"settings.channelscan.type.import",value:"IMPORT"});break;case"DVBT":case"DVBT2":this.scanTypes.push({label:"settings.channelscan.type.full",value:"FULL"}),this.scanTypes.push({label:"settings.channelscan.type.fulltuned",value:"FULLTUNED"}),this.scanTypes.push({label:"settings.channelscan.type.import",value:"IMPORT"}),this.helpText="settings.channelscan.scantype_dvbt_desc",e=!0;break;case"DVBC":this.scanTypes.push({label:"settings.channelscan.type.fu
lltuned",value:"FULLTUNED"}),this.scanTypes.push({label:"settings.channelscan.type.full",value:"FULL"}),this.scanTypes.push({label:"settings.channelscan.type.import",value:"IMPORT"}),e=!0;break;case"DVBS":case"DVBS2":this.scanTypes.push({label:"settings.channelscan.type.fulltuned",value:"FULLTUNED"}),this.scanTypes.push({label:"settings.channelscan.type.import",value:"IMPORT"}),e=!0;break;case"ATSC":this.scanTypes.push({label:"settings.channelscan.type.full",value:"FULL"}),this.scanTypes.push({label:"settings.channelscan.type.import",value:"IMPORT"}),e=!0;break;case"HDHOMERUN":this.cardSubType.HDHRdoesDVBC?(this.scanSubType="DVBC",this.scanTypes.push({label:"settings.channelscan.type.fulltuned",value:"FULLTUNED"}),this.scanTypes.push({label:"settings.channelscan.type.full",value:"FULL"}),this.scanTypes.push({label:"settings.channelscan.type.import",value:"IMPORT"})):this.cardSubType.HDHRdoesDVB?(this.scanSubType="DVBT",this.scanTypes.push({label:"settings.channelscan.type.full",valu
e:"FULL"}),this.scanTypes.push({label:"settings.channelscan.type.fulltuned",value:"FULLTUNED"}),this.helpText="settings.channelscan.scantype_dvbt_desc"):(this.scanSubType="ATSC",this.scanTypes.push({label:"settings.channelscan.type.full",value:"FULL"})),this.scanTypes.push({label:"settings.channelscan.type.import",value:"IMPORT"}),this.scanTypes.push({label:"settings.channelscan.type.hdhrimport",value:"HDHRIMPORT"}),e=!0;break;case"VBOX":this.scanTypes.push({label:"settings.channelscan.type.vboximport",value:"VBOXIMPORT"});break;case"FREEBOX":this.scanTypes.push({label:"settings.channelscan.type.m3umpts",value:"MPTSIMPORT"}),this.scanTypes.push({label:"settings.channelscan.type.m3u",value:"M3UIMPORT"});break;case"ASI":this.scanTypes.push({label:"settings.channelscan.type.asi",value:"ASI"});break;case"EXTERNAL":this.scanTypes.push({label:"settings.channelscan.type.mpts",value:"MPTS"}),this.scanTypes.push({label:"settings.channelscan.type.externimport",value:"EXTIMPORT"});break;case"E
RROR_PROBE":this.scanTypes.push({label:"settings.channelscan.type.errorprobe",value:"ERROR"});break;default:this.scanTypes.push({label:"settings.channelscan.type.erroropen",value:"ERROR"})}e&&(this.scanTypes.push({label:"settings.channelscan.type.alltransport",value:"ALLTRANSPORT"}),this.scanTypes.push({label:"settings.channelscan.type.onetransport",value:"ONETRANSPORT"})),this.scanTypes.forEach(n=>this.translate.get(n.label).subscribe(s=>n.label=s)),this.helpText&&this.translate.get(this.helpText).subscribe(n=>this.helpText=n)}onScanTypeChange(){this.scanRequest.Frequency="FULLTUNED"==this.scanRequest.ScanType?this.videoSourceLookup[this.card.SourceId].ScanFrequency:0,setTimeout(()=>this.onFreqTableChange(!1),100)}onFreqTableChange(e){this.channels=[];let
n="";if(this.scanRequest.FreqTable.startsWith("us")){if(e||("us"==this.scanRequest.FreqTable?this.scanRequest.Modulation="vsb8":"vsb8"==this.scanRequest.Modulation&&(this.scanRequest.Modulation="qam256")),"vsb8"==this.scanRequest.
Modulation?n="ATSC Channel
":"qam256"==this.scanRequest.Modulation?n="QAM-256 Channel
":"qam128"==this.scanRequest.Modulation?n="QAM-128 Channel
":"qam64"==this.scanRequest.Modulation&&(n="QAM-64 Channel
"),"us"==this.scanRequest.FreqTable){if("vsb8"==this.scanRequest.Modulation)for(let
s=2;s<=36;s++)this.channels.push(n+s)}else
if(this.scanRequest.FreqTable.match(/us.*high/))for(let
s=78;s<=158;s++)this.channels.push(n+s);else
if(this.scanRequest.FreqTable.match(/^us/)){this.channels.push(n+"T-13"),this.channels.push(n+"T-14");for(let
s=2;s<=158;s++)this.channels.push(n+s)}this.channels.length>0?setTimeout(()=>{this.scanRequest.FirstChan=this.channels[0],this.scanRequest.LastChan=this.channels[this.channels.length-1]},100):(this.scanRequest.FirstChan="",this.scanRequest.LastChan="")}}onSatTuningChange(){Object.assign(this.scanRequest,this.satTuning)}calcCount(){return
this.channelCount=this.channels.findIndex(e=>e==this.scanRequest.LastChan)-this.channels.findIndex(e=>e==this.scanR
equest.FirstChan)+1}getScanList(){this.channelService.GetScanList(this.card.SourceId).subscribe(e=>{this.scans=e.ScanList.Scans,this.scans.forEach(n=>{var
s=new Date(n.ScanDate);n.label=s.toLocaleDateString()+"
"+s.toLocaleTimeString()+"
"+(n.Processed?this.procDesc:this.unprocDesc)})})}getmultiplexList(){this.channelService.GetVideoMultiplexList({SourceID:this.card.SourceId}).subscribe(e=>{this.multiplex=e.VideoMultiplexList.VideoMultiplexes})}startScan(){if(this.iconnection.currentForm&&this.iconnection.currentForm.form.dirty)return
this.iconnection.work.startScan=!0,void
this.iconnection.saveForm();this.scanRequest.CardId=this.card.CardId,this.channelService.StartScan(this.scanRequest).subscribe(e=>{setTimeout(()=>this.refreshStatus(!0),500)})}stopScan(){this.channelService.StopScan(this.card.CardId).subscribe()}respondDialog(){this.dialogResponse.CardId=this.card.CardId,this.dialogResponse.DialogButton=this.scanStatus.DialogButtons.indexOf(this.buttonText),this.channelService.Se
ndScanDialogResponse(this.dialogResponse).subscribe(e=>this.iconnection.loadChannels())}refreshStatus(e){this.channelService.GetScanStatus().subscribe(n=>{this.scanStatus=n.ScanStatus,this.scrollpanel.scrollTop(1e5),"RUNNING"==this.scanStatus.Status?this.refreshCount=5:this.refreshCount--,this.refreshCount>0?setTimeout(()=>this.refreshStatus(!0),500):e&&this.iconnection.loadChannels()})}}return
t.\u0275fac=function(e){return
new(e||t)(D(Oe),D(Or),D(Gt),D(Me))},t.\u0275cmp=z({type:t,selectors:[["app-channelscan"]],viewQuery:function(e,n){if(1&e&&W(Hse,5),2&e){let
s;V(s=B())&&(n.scrollpanel=s.first)}},inputs:{card:"card",cardList:"cardList",iconnection:"iconnection",videoSourceLookup:"videoSourceLookup"},decls:131,vars:137,consts:[[1,"form-group","field"],["for","DesiredServices",1,"label","block"],["optionLabel","label","optionValue","value","name","DesiredServices",3,"options","ngModel","editable","maxlength","ngModelChange"],["DesiredServices","ngModel"],[1,"block"],["inputId","Fre
eToAirOnly","name","FreeToAirOnly",1,"label","mb-2","w-full",3,"ngModel","binary","label","ngModelChange"],["FreeToAirOnly","ngModel"],["inputId","ChannelNumbersOnly","name","ChannelNumbersOnly",1,"label","mb-2","w-full",3,"ngModel","binary","label","ngModelChange"],["ChannelNumbersOnly","ngModel"],["inputId","CompleteChannelsOnly","name","CompleteChannelsOnly",1,"label","mb-2","w-full",3,"ngModel","binary","label","ngModelChange"],["CompleteChannelsOnly","ngModel"],["inputId","FullChannelSearch","name","FullChannelSearch",1,"label","mb-2","w-full",3,"ngModel","binary","label","ngModelChange"],["FullChannelSearch","ngModel"],["inputId","RemoveDuplicates","name","RemoveDuplicates",1,"label","mb-2","w-full",3,"ngModel","binary","label","ngModelChange"],["RemoveDuplicates","ngModel"],["inputId","AddFullTS","name","AddFullTS",1,"label","mb-2","w-full",3,"ngModel","binary","label","ngModelChange"],["AddFullTS","ngModel"],["inputId","TestDecryptable","name","TestDecryptable",1,"label","mb
-2","w-full",3,"ngModel","binary","label","ngModelChange"],["TestDecryptable","ngModel"],["for","ScanType",1,"label","block"],["optionLabel","label","optionValue","value","name","ScanType",3,"options","ngModel","editable","maxlength","ngModelChange","onChange"],["ScanType","ngModel"],["class","mb-4
w-full",3,"legend","toggleable","collapsed",4,"ngIf"],[1,"grid"],[2,"display","flex","align-items","center"],["icon","pi
pi-play","iconPos","left",3,"label","disabled","onClick"],["class","block",4,"ngIf"],[1,"mb-4","w-full",3,"legend","collapsed","toggleable"],[1,"col-6"],[1,"col-10","bg-blue-100","text-gray-900"],[1,"label","block"],[1,"col-10"],[3,"value"],["class","form-group
field",4,"ngIf"],["icon","pi
pi-times-circle","iconPos","left","styleClass","p-button-danger",3,"label","disabled","onClick"],[1,"col-6",2,"white-space","pre-line"],["scroll",""],[1,"mb-4","w-full",3,"legend","toggleable","collapsed"],["for","FreqTable",1,"label","block"],["optionLabel","label","optionValue","val
ue","name","FreqTable",3,"options","ngModel","editable","maxlength","ngModelChange","onChange"],["FreqTable","ngModel"],["for","Country",1,"label","block"],["optionLabel","label","optionValue","value","name","Country",3,"options","ngModel","editable","maxlength","ngModelChange"],["Country","ngModel"],["for","atscModulation",1,"label","block"],["optionLabel","label","optionValue","value","name","atscModulation",3,"options","ngModel","editable","maxlength","ngModelChange","onChange"],["atscModulation","ngModel"],["for","FirstChan",1,"label","block"],["name","FirstChan",3,"options","ngModel","editable","maxlength","ngModelChange"],["FirstChan","ngModel"],[4,"ngIf"],[1,"p-error","block"],["for","LastChan",1,"label","block"],["name","LastChan",3,"options","ngModel","editable","maxlength","ngModelChange"],["LastChan","ngModel"],["for","Frequency",1,"label","block"],["name","Frequency","id","Frequency",3,"ngModel","min","max","ngModelChange"],[3,"translate","translateParams"],["for","Inver
sion",1,"label","block"],["name","Inversion","optionLabel","label","optionValue","value",3,"options","ngModel","editable","maxlength","ngModelChange"],["Inversion","ngModel"],["for","SatTuning",1,"label","block"],["name","SatTuning","optionLabel","label",3,"options","ngModel","editable","maxlength","ngModelChange","onChange"],["SatTuning","ngModel"],["for","Bandwidth",1,"label","block"],["name","Bandwidth","optionLabel","label","optionValue","value",3,"options","ngModel","editable","maxlength","ngModelChange"],["Bandwidth","ngModel"],["for","Polarity",1,"label","block"],["name","Polarity","optionLabel","label","optionValue","value",3,"options","ngModel","editable","maxlength","ngModelChange"],["Polarity","ngModel"],["for","dvbcSymbolRate",1,"label","block"],["name","dvbcSymbolRate","optionLabel","label","optionValue","value",3,"options","ngModel","editable","maxlength","ngModelChange"],["dvbcSymbolRate","ngModel"],["for","dvbsSymbolRate",1,"label","block"],["name","dvbsSymbolRate","
optionLabel","label","optionValue","value",3,"options","ngModel","editable","maxlength","ngModelChange"],["dvbsSymbolRate","ngModel"],["for","Constellation",1,"label","block"],["name","Constellation","optionLabel","label","optionValue","value",3,"options","ngModel","editable","maxlength","ngModelChange"],["Constellation","ngModel"],["for","Modulation",1,"label","block"],["name","Modulation","optionLabel","label","optionValue","value",3,"options","ngModel","editable","maxlength","ngModelChange"],["Modulation","ngModel"],["for","DVBSModulation",1,"label","block"],["name","DVBSModulation","optionLabel","label","optionValue","value",3,"options","ngModel","editable","maxlength","ngModelChange"],["DVBSModulation","ngModel"],["for","DVBTModSys",1,"label","block"],["name","DVBTModSys","optionLabel","label","optionValue","value",3,"options","ngModel","editable","maxlength","ngModelChange"],["DVBTModSys","ngModel"],["for","DVBCModSys",1,"label","block"],["name","DVBCModSys","optionLabel","lab
el","optionValue","value",3,"options","ngModel","editable","maxlength","ngModelChange"],["DVBCModSys","ngModel"],["for","DVBSModSys",1,"label","block"],["name","DVBSModSys","optionLabel","label","optionValue","value",3,"options","ngModel","editable","maxlength","ngModelChange"],["DVBSModSys","ngModel"],["for","CodeRateLP",1,"label","block"],["name","CodeRateLP","optionLabel","label","optionValue","value",3,"options","ngModel","editable","maxlength","ngModelChange"],["CodeRateLP","ngModel"],["for","CodeRateHP",1,"label","block"],["name","CodeRateHP","optionLabel","label","optionValue","value",3,"options","ngModel","editable","maxlength","ngModelChange"],["CodeRateHP","ngModel"],["for","FEC",1,"label","block"],["name","FEC","optionLabel","label","optionValue","value",3,"options","ngModel","editable","maxlength","ngModelChange"],["FEC","ngModel"],["for","TransmissionMode",1,"label","block"],["name","TransmissionMode","optionLabel","label","optionValue","value",3,"options","ngModel","ed
itable","maxlength","ngModelChange"],["TransmissionMode","ngModel"],["for","GuardInterval",1,"label","block"],["name","GuardInterval","optionLabel","label","optionValue","value",3,"options","ngModel","editable","maxlength","ngModelChange"],["GuardInterval","ngModel"],["for","Hierarchy",1,"label","block"],["name","Hierarchy","optionLabel","label","optionValue","value",3,"options","ngModel","editable","maxlength","ngModelChange"],["Hierarchy","ngModel"],["for","RollOff",1,"label","block"],["name","RollOff","optionLabel","label","optionValue","value",3,"options","ngModel","editable","maxlength","ngModelChange"],["RollOff","ngModel"],["for","ScanId",1,"label","block"],["optionLabel","label","optionValue","ScanId","name","ScanId",3,"options","ngModel","editable","maxlength","ngModelChange"],["ScanId","ngModel"],["inputId","IgnoreSignalTimeout","name","IgnoreSignalTimeout",1,"label","mb-2","w-full",3,"ngModel","binary","label","ngModelChange"],["IgnoreSignalTimeout","ngModel"],["inputId",
"FollowNITSetting","name","FollowNITSetting",1,"label","mb-2","w-full",3,"ngModel","binary","label","ngModelChange"],["FollowNITSetting","ngModel"],["for","MplexId",1,"label","block"],["optionLabel","Description","optionValue","MplexId","name","MplexId",3,"options","ngModel","editable","maxlength","ngModelChange"],["MplexId","ngModel"],[1,"col-10",2,"color","black","background-color","pink"],["pInputText","","id","DialogString","name","DialogString",1,"mb-2","form-control","w-full",3,"ngModel","ngModelChange"],["InputName","ngModel"],["for","DialogButtons",1,"label","block"],["name","DialogButtons",3,"options","ngModel","editable","maxlength","ngModelChange"],["styleClass","p-button-info",1,"gap-3",3,"label","onClick"]],template:function(e,n){1&e&&(l(0,"div",0)(1,"label",1),g(2),m(3,"translate"),c(),l(4,"p-dropdown",2,3),C("ngModelChange",function(r){return
n.scanRequest.DesiredServices=r}),c(),l(6,"small",4),g(7),m(8,"translate"),c()(),l(9,"div",0)(10,"p-checkbox",5,6),C("ngModelCh
ange",function(r){return
n.scanRequest.FreeToAirOnly=r}),m(12,"translate"),c(),l(13,"small",4),g(14),m(15,"translate"),c()(),l(16,"div",0)(17,"p-checkbox",7,8),C("ngModelChange",function(r){return
n.scanRequest.ChannelNumbersOnly=r}),m(19,"translate"),c(),l(20,"small",4),g(21),m(22,"translate"),c()(),l(23,"div",0)(24,"p-checkbox",9,10),C("ngModelChange",function(r){return
n.scanRequest.CompleteChannelsOnly=r}),m(26,"translate"),c(),l(27,"small",4),g(28),m(29,"translate"),c()(),l(30,"div",0)(31,"p-checkbox",11,12),C("ngModelChange",function(r){return
n.scanRequest.FullChannelSearch=r}),m(33,"translate"),c(),l(34,"small",4),g(35),m(36,"translate"),c()(),l(37,"div",0)(38,"p-checkbox",13,14),C("ngModelChange",function(r){return
n.scanRequest.RemoveDuplicates=r}),m(40,"translate"),c(),l(41,"small",4),g(42),m(43,"translate"),c()(),l(44,"div",0)(45,"p-checkbox",15,16),C("ngModelChange",function(r){return
n.scanRequest.AddFullTS=r}),m(47,"translate"),c(),l(48,"small",4),g(49),m(50,"translat
e"),c()(),l(51,"div",0)(52,"p-checkbox",17,18),C("ngModelChange",function(r){return
n.scanRequest.TestDecryptable=r}),m(54,"translate"),c(),l(55,"small",4),g(56),m(57,"translate"),c()(),l(58,"div",0)(59,"label",19),g(60),m(61,"translate"),c(),l(62,"p-dropdown",20,21),C("ngModelChange",function(r){return
n.scanRequest.ScanType=r})("onChange",function(){return
n.onScanTypeChange()}),c(),l(64,"small",4),g(65),c()(),_(66,Jse,9,13,"p-fieldset",22),_(67,_re,36,57,"p-fieldset",22),_(68,bre,9,15,"p-fieldset",22),_(69,Cre,17,22,"p-fieldset",22),k(70,"br")(71,"br"),l(72,"div",0)(73,"div",23)(74,"div",24)(75,"p-button",25),C("onClick",function(){return
n.startScan()}),m(76,"translate"),c()()(),_(77,yre,3,3,"small",26),c(),l(78,"p-fieldset",27),m(79,"translate"),l(80,"div",23)(81,"div",28)(82,"div",0)(83,"div",29)(84,"b"),g(85),c()()(),l(86,"div",0)(87,"label",30),g(88),m(89,"translate"),c(),l(90,"div",29),g(91),c()(),l(92,"div",0)(93,"label",30),g(94),m(95,"translate"),c(),l(96,"div",29),g(97)
,c()(),l(98,"div",0)(99,"label",30),g(100),m(101,"translate"),c(),l(102,"div",31),k(103,"p-progressBar",32),c()(),l(104,"div",0)(105,"label",30),g(106),m(107,"translate"),c(),l(108,"div",31),k(109,"p-progressBar",32),c()(),l(110,"div",0)(111,"label",30),g(112),m(113,"translate"),c(),l(114,"div",31),k(115,"p-progressBar",32),c()(),k(116,"br"),_(117,wre,6,1,"div",33),_(118,Tre,3,1,"div",33),_(119,Sre,6,10,"div",33),_(120,xre,3,3,"div",33),k(121,"br"),l(122,"div",0)(123,"div",24)(124,"p-button",34),C("onClick",function(){return
n.stopScan()}),m(125,"translate"),c()(),k(126,"small",4),c()(),l(127,"div",35)(128,"p-scrollPanel",null,36),g(130),c()()()()),2&e&&(a(2),S(f(3,81,"settings.channelscan.services_label")),a(2),q(A(131,ht)),p("options",n.serviceValues)("ngModel",n.scanRequest.DesiredServices)("editable",!1)("maxlength",0),a(3),T("
",f(8,83,"settings.channelscan.services_desc"),"
"),a(3),x("label",f(12,85,"settings.channelscan.ftaonly_label")),p("ngModel",n.scanRequest.FreeToAirOnly
)("binary",!0),a(4),T("
",f(15,87,"settings.channelscan.ftaonly_desc"),"
"),a(3),x("label",f(19,89,"settings.channelscan.channelnumbersonly_label")),p("ngModel",n.scanRequest.ChannelNumbersOnly)("binary",!0),a(4),T("
",f(22,91,"settings.channelscan.channelnumbersonly_desc"),"
"),a(3),x("label",f(26,93,"settings.channelscan.completeonly_label")),p("ngModel",n.scanRequest.CompleteChannelsOnly)("binary",!0),a(4),T("
",f(29,95,"settings.channelscan.completeonly_desc"),"
"),a(3),x("label",f(33,97,"settings.channelscan.fullsearch_label")),p("ngModel",n.scanRequest.FullChannelSearch)("binary",!0),a(4),T("
",f(36,99,"settings.channelscan.fullsearch_desc"),"
"),a(3),x("label",f(40,101,"settings.channelscan.removeduplicates_label")),p("ngModel",n.scanRequest.RemoveDuplicates)("binary",!0),a(4),T("
",f(43,103,"settings.channelscan.removeduplicates_desc"),"
"),a(3),x("label",f(47,105,"settings.channelscan.addfullts_label")),p("ngModel",n.scanRequest.AddFullTS)("binary",!0),a(4),T("
",f(50,107,"
settings.channelscan.addfullts_desc"),"
"),a(3),x("label",f(54,109,"settings.channelscan.testdecryptable_label")),p("ngModel",n.scanRequest.TestDecryptable)("binary",!0),a(4),T("
",f(57,111,"settings.channelscan.testdecryptable_desc"),"
"),a(4),S(f(61,113,"settings.channelscan.scantype_label")),a(2),q(A(132,ht)),p("options",n.scanTypes)("ngModel",n.scanRequest.ScanType)("editable",!1)("maxlength",0),a(3),T("
",n.helpText,"
"),a(1),p("ngIf","FULL"==n.scanRequest.ScanType),a(1),p("ngIf","FULLTUNED"==n.scanRequest.ScanType),a(1),p("ngIf","IMPORT"==n.scanRequest.ScanType),a(1),p("ngIf","ALLTRANSPORT"==n.scanRequest.ScanType||"ONETRANSPORT"==n.scanRequest.ScanType),a(6),x("label",f(76,115,"settings.channelscan.scan_label")),p("disabled",n.setupService.schedulingEnabled||"RUNNING"==n.scanStatus.Status||!n.card.SourceId),a(2),p("ngIf",n.iconnection.currentForm&&n.iconnection.currentForm.form.dirty||!n.card.SourceId),a(1),x("legend",f(79,117,"settings.channelscan.status_title")),p("collapse
d",!0)("toggleable",!1)("collapsed",!1),a(7),T("",n.scanStatus.StatusTitle,"
\xa0"),a(3),S(f(89,119,"settings.channelscan.status_label")),a(3),T("
",n.scanStatus.StatusText," \xa0
"),a(3),S(f(95,121,"settings.channelscan.lock_label")),a(3),T("
",n.scanStatus.SignalLock?n.lockDesc:n.nolockDesc," \xa0
"),a(3),S(f(101,123,"settings.channelscan.progress_label")),a(3),q(A(133,Sg)),p("value",n.scanStatus.Progress),a(3),S(f(107,125,"settings.channelscan.noise_label")),a(3),q(A(134,Sg)),p("value",n.scanStatus.SignalNoise),a(3),S(f(113,127,"settings.channelscan.strength_label")),a(3),q(A(135,Sg)),p("value",n.scanStatus.SignalStrength),a(2),p("ngIf",n.scanStatus.DialogMsg),a(1),p("ngIf",n.scanStatus.DialogInputReq),a(1),p("ngIf",n.scanStatus.DialogButtons.length>0),a(1),p("ngIf",n.scanStatus.DialogButtons.length>0||n.scanStatus.DialogInputReq),a(4),x("label",f(125,129,"settings.channelscan.stop_label")),p("disabled","RUNNING"!=n.scanStatus.Status||n.scanStatus.DialogButtons.length>0),a(4),q(A
(136,Dre)),a(2),T(" ",n.scanStatus.StatusLog,"
"))},directives:[Ot,Te,_e,_n,sn,Q,Ui,pt,mu,ve,tz,Ye,K2],pipes:[ce],styles:[""]}),t})(),kre=(()=>{class
t{constructor(e){this.httpClient=e}GetBackendStatus(){return
this.httpClient.get("/Status/GetBackendStatus")}}return
t.\u0275fac=function(e){return
new(e||t)(K(Bi))},t.\u0275prov=X({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();var
ci=(()=>(function(t){t[t.kState_Error=-1]="kState_Error",t[t.kState_None=0]="kState_None",t[t.kState_WatchingLiveTV=1]="kState_WatchingLiveTV",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"}(ci||(ci={})),ci))();let
cs=(()=>{class t{constructor(e){this.translate=e,this.allSlashes=new Reg
Exp(/\//g),this.deSpacer=new RegExp(/ /g),this.recTypeTrans={"Single
Record":"","Record All":"","Record
One":"","Record Daily":"","Record
Weekly":"","Override Recording":"","Do not
Record":"","Recording Template":"","Not
Recording":""};for(const[n,s]of Object.entries(this.recTypeTrans)){const
r="recrule."+n.replace(this.deSpacer,"");this.translate.get(r).subscribe(o=>{Object.defineProperty(this.recTypeTrans,n,{value:o})})}}formatDate(e,n){if(!e)return"";10==e.length&&(e+="
00:00");let s=new Date(e).toLocaleDateString();return
n?s.replace(this.allSlashes,"/<wbr>"):s}formatTime(e){return e?(new
Date(e).toLocaleTimeString()+" ").replace(/:..
/,""):""}formatDateTime(e,n){return this.formatDate(e,n)+"
"+this.formatTime(e)}}return t.\u0275fac=function(e){return
new(e||t)(K(Oe))},t.\u0275prov=X({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();const
Ire=function(t){return{EndTime:t}};function
Ere(t,i){if(1&t&&(de(0),g(1),m(2,"translate"),pe()),2&t){const
e=d().$implicit,n=d(2);a(1),yo
(" '",e.Recording.Title,"' on
",e.Recording.Channel.CallSign,".
",Dt(2,3,"dashboard.status.endtime_text",U(6,Ire,n.utility.formatTime(e.Recording.EndTime))),"
")}}const
Rre=function(t,i,e,n){return{CardId:t,Id:i,InputName:e,DisplayName:n}};function
Lre(t,i){if(1&t&&(l(0,"div")(1,"ul")(2,"li"),g(3),m(4,"translate"),c()()()),2&t){const
e=i.$implicit;a(3),T("",Dt(4,1,"dashboard.status.card_text",qn(4,Rre,e.CardId,e.Id,e.InputName,e.DisplayName)),"
")}}const Ore=function(t,i,e){return{Id:t,HostName:i,State:e}};function
Are(t,i){if(1&t&&(l(0,"div")(1,"ul")(2,"li"),g(3),m(4,"translate"),_(5,Ere,3,8,"ng-container",4),c(),_(6,Lre,5,9,"div",3),c()()),2&t){const
e=i.$implicit,n=d(2);a(3),T("
",Dt(4,3,"dashboard.status.encoder_text",Qt(6,Ore,e.Id,e.HostName,n.EncoderStatusText(e.State))),"
"),a(2),p("ngIf",7==e.State),a(1),p("ngForOf",e.Inputs)}}function
Pre(t,i){if(1&t&&(l(0,"div"),_(1,Are,7,10,"div",3),c()),2&t){const
e=d();a(1),p("ngForOf",e.encoders)}}function
Fre(t,i){1&t&&(l(0,"div"),g(1
),m(2,"translate"),c()),2&t&&(a(1),S(f(2,1,"dashboard.status.no_encoders")))}let
Nre=(()=>{class
t{constructor(e){this.utility=e}ngOnInit(){}EncoderStatusText(e){switch(e){case
ci.kState_Error:return"Error";case ci.kState_None:return"Idle";case
ci.kState_WatchingLiveTV:return"Watching Live TV";case
ci.kState_WatchingPreRecorded:return"Watching Pre Recorded";case
ci.kState_WatchingVideo:return"Watching Video";case
ci.kState_WatchingDVD:return"Watching DVD";case
ci.kState_WatchingBD:return"Watching BD";case
ci.kState_WatchingRecording:return"Watching Recording";case
ci.kState_RecordingOnly:return"Recording";case
ci.kState_ChangingState:return"Changing
State";default:return"unknown"}}}return t.\u0275fac=function(e){return
new(e||t)(D(cs))},t.\u0275cmp=z({type:t,selectors:[["app-status-encoders"]],inputs:{encoders:"encoders"},decls:7,vars:5,consts:[[1,"statusBox"],[4,"ngIf","ngIfElse"],["noEncoders",""],[4,"ngFor","ngForOf"],[4,"ngIf"]],template:function(e,n){if(1&e&&(l(0,"div",0)(1,"h2
"),g(2),m(3,"translate"),c(),_(4,Pre,2,1,"div",1),c(),_(5,Fre,3,3,"ng-template",null,2,we)),2&e){const
s=F(6);a(2),S(f(3,3,"dashboard.status.encoder_title")),a(2),p("ngIf",0!=(null==n.encoders?null:n.encoders.length))("ngIfElse",s)}},directives:[Q,at],pipes:[ce],styles:["","div.statusBox[_ngcontent-%COMP%]{width:auto;border-top:1px
solid var(--text-color);border-right:1px solid var(--text-color);border-bottom:1px solid
var(--text-color);border-left:10px solid var(--text-color);padding:10px;border-radius:8px
0 0 8px;margin:20px}"]}),t})();function
Vre(t,i){if(1&t&&(l(0,"li",4)(1,"div",5),g(2),c()()),2&t){const
e=i.$implicit,n=d(2);a(1),x("pTooltip",e.Description),a(1),Ih("
",n.utility.formatDate(e.StartTime),"
",n.utility.formatTime(e.StartTime)," - ",e.Recording.EncoderId," -
",e.Channel.CallSign," - ",e.Title," ")}}const
Bre=function(t){return{length:t}};function
Hre(t,i){if(1&t&&(l(0,"div")(1,"p"),g(2),m(3,"translate"),c(),l(4,"ul"),_(5,Vre,3,6,"li",3),c()()),2&t){const
e=d();a(2)
,S(Dt(3,2,"dashboard.status.schedule_text",U(5,Bre,null==e.scheduled?null:e.scheduled.length))),a(3),p("ngForOf",e.scheduled)}}function
qre(t,i){1&t&&(l(0,"p"),g(1),m(2,"translate"),c()),2&t&&(a(1),S(f(2,1,"dashboard.status.schedule_none")))}let
Gre=(()=>{class t{constructor(e){this.utility=e}ngOnInit(){}}return
t.\u0275fac=function(e){return
new(e||t)(D(cs))},t.\u0275cmp=z({type:t,selectors:[["app-status-scheduled"]],inputs:{scheduled:"scheduled"},decls:7,vars:5,consts:[[1,"statusBox"],[4,"ngIf","ngIfElse"],["noSchedule",""],["class","flex",4,"ngFor","ngForOf"],[1,"flex"],["tooltipPosition","bottom",3,"pTooltip"]],template:function(e,n){if(1&e&&(l(0,"div",0)(1,"h2"),g(2),m(3,"translate"),c(),_(4,Hre,6,7,"div",1),c(),_(5,qre,3,3,"ng-template",null,2,we)),2&e){const
s=F(6);a(2),S(f(3,3,"dashboard.status.schedule_title")),a(2),p("ngIf",0!=(null==n.scheduled?null:n.scheduled.length))("ngIfElse",s)}},directives:[Q,at,Kt],pipes:[ce],styles:["","div.statusBox[_ngcontent-%COMP%]{width:auto
;border-top:1px solid var(--text-color);border-right:1px solid
var(--text-color);border-bottom:1px solid var(--text-color);border-left:10px solid
var(--text-color);padding:10px;border-radius:8px 0 0
8px;margin:20px}"]}),t})();function
Ure(t,i){if(1&t&&(l(0,"div")(1,"p"),g(2),m(3,"translate"),c()()),2&t){const
e=i.$implicit,n=d(2);a(2),Eh("",n.utility.formatDate(e.StatusTime),"
",n.utility.formatTime(e.StatusTime)," - ",e.Program.Title," -
",e.LocalizedJobName," -
",f(3,6,"dashboard.status.jobs_status"),":
",e.LocalizedStatus," ")}}function
zre(t,i){if(1&t&&(l(0,"div")(1,"p"),g(2),m(3,"translate"),c(),l(4,"ul"),_(5,Ure,4,8,"div",3),c()()),2&t){const
e=d();a(2),T("",f(3,2,"dashboard.status.jobs_text"),":"),a(3),p("ngForOf",e.jobqueue)}}function
jre(t,i){1&t&&(l(0,"p"),g(1),m(2,"translate"),c()),2&t&&(a(1),S(f(2,1,"dashboard.status.jobs_none")))}let
$re=(()=>{class t{constructor(e){this.utility=e}ngOnInit(){}}return
t.\u0275fac=function(e){return new(e||t)(D(cs))},t.\u0275cmp=z({type:t
,selectors:[["app-status-jobqueue"]],inputs:{jobqueue:"jobqueue"},decls:7,vars:5,consts:[[1,"statusBox"],[4,"ngIf","ngIfElse"],["noJobs",""],[4,"ngFor","ngForOf"]],template:function(e,n){if(1&e&&(l(0,"div",0)(1,"h2"),g(2),m(3,"translate"),c(),_(4,zre,6,4,"div",1),c(),_(5,jre,3,3,"ng-template",null,2,we)),2&e){const
s=F(6);a(2),S(f(3,3,"dashboard.status.jobs_title")),a(2),p("ngIf",0!=(null==n.jobqueue?null:n.jobqueue.length))("ngIfElse",s)}},directives:[Q,at],pipes:[ce],styles:["","div.statusBox[_ngcontent-%COMP%]{width:auto;border-top:1px
solid var(--text-color);border-right:1px solid var(--text-color);border-bottom:1px solid
var(--text-color);border-left:10px solid var(--text-color);padding:10px;border-radius:8px
0 0 8px;margin:20px}"]}),t})();function
Wre(t,i){if(1&t&&(l(0,"div")(1,"p"),g(2),m(3,"translate"),c(),l(4,"ul")(5,"li"),g(6),m(7,"translate"),c(),l(8,"ul")(9,"li"),g(10),m(11,"translate"),c(),l(12,"li"),g(13),m(14,"translate"),c(),l(15,"li"),g(16),m(17,"translate"),c(),l(1
8,"li"),g(19),m(20,"translate"),c(),l(21,"ul")(22,"li"),g(23),m(24,"translate"),c(),l(25,"li"),g(26),m(27,"translate"),c(),l(28,"li"),g(29),m(30,"translate"),c()()()()()),2&t){const
e=i.ngIf;a(2),T("",f(3,16,"dashboard.status.mach.disk_summ"),":"),a(4),T("",f(7,18,"dashboard.status.mach.disk_total"),":"),a(4),We("",f(11,20,"dashboard.status.mach.total_space"),":
",e.Total.toLocaleString(),"
MiB"),a(3),We("",f(14,22,"dashboard.status.mach.space_used"),":
",e.Used.toLocaleString(),"
MiB"),a(3),We("",f(17,24,"dashboard.status.mach.space_free"),":
",e.Free.toLocaleString(),"
MiB"),a(3),We("",f(20,26,"dashboard.status.mach.space_after_expire"),":
",(e.Free+e.Expirable).toLocaleString(),""),a(4),We("",f(24,28,"dashboard.status.mach.space_livetv"),":
",e.LiveTV.toLocaleString(),"
MiB"),a(3),We("",f(27,30,"dashboard.status.mach.space_deleted"),":
",e.Deleted.toLocaleString(),"
MiB"),a(3),We("",f(30,32,"dashboard.status.mach.space_expirable"),":
",e.Expirable.toLocaleString()," MiB")}}functi
on Kre(t,i){1&t&&Y(0)}function
Qre(t,i){if(1&t&&(l(0,"div"),_(1,Kre,1,0,"ng-container",6),c()),2&t){const
e=i.$implicit;d(2);const
n=F(10);a(1),p("ngTemplateOutlet",n)("ngTemplateOutletContext",e)}}const
Jre=function(t,i,e){return{GuideStart:t,GuideEnd:i,GuideStatus:e}},Yre=function(t){return{GuideNext:t}},Zre=function(t,i){return{GuideThru:t,GuideDays:i}};function
Xre(t,i){if(1&t&&(l(0,"div")(1,"div")(2,"p"),g(3),m(4,"translate"),c(),l(5,"ul")(6,"li"),g(7),m(8,"translate"),c(),l(9,"li"),g(10),m(11,"translate"),c(),l(12,"li"),g(13),m(14,"translate"),c()()(),_(15,Wre,31,34,"div",1),l(16,"div")(17,"p"),g(18),m(19,"translate"),c(),_(20,Qre,2,2,"div",5),c(),l(21,"div")(22,"p"),g(23),m(24,"translate"),k(25,"br"),g(26),m(27,"translate"),k(28,"br"),g(29),m(30,"translate"),c()()()),2&t){const
e=d(),n=F(8);a(3),S(f(4,14,"dashboard.status.mach.load")),a(4),We("1
",f(8,16,"dashboard.status.mach.minute"),":
",e.machineinfo.LoadAvg1.toLocaleString(),""),a(3),We("5
",f(11,18,"dashboard.status.mac
h.minutes"),":
",e.machineinfo.LoadAvg2.toLocaleString(),""),a(3),We("15
",f(14,20,"dashboard.status.mach.minutes"),":
",e.machineinfo.LoadAvg3.toLocaleString(),""),a(2),p("ngIf",e.getStorageGroupTotal(e.machineinfo.StorageGroups))("ngIfElse",n),a(3),T("",f(19,22,"dashboard.status.mach.disk_details"),":"),a(2),p("ngForOf",e.getStorageGroupDetails(e.machineinfo.StorageGroups)),a(3),S(Dt(24,24,"dashboard.status.mach.mythfill_last",Qt(33,Jre,e.utility.formatDateTime(e.machineinfo.GuideStart),e.utility.formatDateTime(e.machineinfo.GuideEnd),e.machineinfo.GuideStatus))),a(3),T("
",Dt(27,27,"dashboard.status.mach.mythfill_next",U(37,Yre,e.utility.formatDateTime(e.machineinfo.GuideNext))),""),a(3),T("
",Dt(30,30,"dashboard.status.mach.mythfill_until",Ge(39,Zre,e.utility.formatDateTime(e.machineinfo.GuideThru),e.machineinfo.GuideDays)),"
")}}function
eoe(t,i){1&t&&(l(0,"p"),g(1),m(2,"translate"),c()),2&t&&(a(1),S(f(2,1,"dashboard.status.mach.none")))}function
toe(t,i){1&t&&(l(0,"p"),g(1),m(
2,"translate"),c()),2&t&&(a(1),S(f(2,1,"dashboard.status.mach.disk_none")))}function
noe(t,i){if(1&t&&(l(0,"ul")(1,"li"),g(2),m(3,"translate"),c(),l(4,"ul")(5,"li"),g(6),m(7,"translate"),c(),l(8,"li"),g(9),m(10,"translate"),c(),l(11,"li"),g(12),m(13,"translate"),c(),l(14,"li"),g(15),m(16,"translate"),c()()()),2&t){const
e=i.Id,n=i.Directory,s=i.Total,r=i.Used,o=i.Free;a(2),We("",f(3,10,"dashboard.status.mach.myth_drive"),"
#",e,""),a(4),We("",f(7,12,"dashboard.status.mach.disk_dirs"),":
",n,""),a(3),We("",f(10,14,"dashboard.status.mach.total_space"),":
",s.toLocaleString(),"
MiB"),a(3),We("",f(13,16,"dashboard.status.mach.space_used"),":
",r.toLocaleString(),"
MiB"),a(3),We("",f(16,18,"dashboard.status.mach.space_free"),":
",o.toLocaleString()," MiB")}}let ioe=(()=>{class
t{constructor(e){this.utility=e}ngOnInit(){}getStorageGroupTotal(e){return
e.filter(n=>"total"==n.Id)[0]}getStorageGroupDetails(e){return
e.filter(n=>"total"!=n.Id)}}return t.\u0275fac=function(e){return new(e||t)(
D(cs))},t.\u0275cmp=z({type:t,selectors:[["app-status-machineinfo"]],inputs:{machineinfo:"machineinfo"},decls:11,vars:5,consts:[[1,"statusBox"],[4,"ngIf","ngIfElse"],["noMachineInfo",""],["noDiskInfo",""],["printStorageGroup",""],[4,"ngFor","ngForOf"],[4,"ngTemplateOutlet","ngTemplateOutletContext"]],template:function(e,n){if(1&e&&(l(0,"div",0)(1,"h2"),g(2),m(3,"translate"),c(),_(4,Xre,31,42,"div",1),c(),_(5,eoe,3,3,"ng-template",null,2,we),_(7,toe,3,3,"ng-template",null,3,we),_(9,noe,17,20,"ng-template",null,4,we)),2&e){const
s=F(6);a(2),S(f(3,3,"dashboard.status.mach.title")),a(2),p("ngIf",n.machineinfo)("ngIfElse",s)}},directives:[Q,at,Rt],pipes:[ce],styles:["","div.statusBox[_ngcontent-%COMP%]{width:auto;border-top:1px
solid var(--text-color);border-right:1px solid var(--text-color);border-bottom:1px solid
var(--text-color);border-left:10px solid var(--text-color);padding:10px;border-radius:8px
0 0 8px;margin:20px}"]}),t})();const
soe=function(t,i,e){return{Name:t,Type:i,IP:e}};
function
roe(t,i){if(1&t&&(l(0,"div")(1,"li"),g(2),m(3,"translate"),c()()),2&t){const
e=i.$implicit;a(2),T("",Dt(3,1,"dashboard.status.backends_detail",Qt(4,soe,e.Name,e.Type,e.IP)),"
")}}function
ooe(t,i){if(1&t&&(l(0,"div")(1,"ul"),_(2,roe,4,8,"div",3),c()()),2&t){const
e=d();a(2),p("ngForOf",e.backends)}}function
aoe(t,i){1&t&&(l(0,"p"),g(1),m(2,"translate"),c()),2&t&&(a(1),S(f(2,1,"dashboard.status.backends_none")))}let
loe=(()=>{class t{constructor(){}ngOnInit(){}}return t.\u0275fac=function(e){return
new(e||t)},t.\u0275cmp=z({type:t,selectors:[["app-status-backends"]],inputs:{backends:"backends"},decls:7,vars:5,consts:[[1,"statusBox"],[4,"ngIf","ngIfElse"],["noBackends",""],[4,"ngFor","ngForOf"]],template:function(e,n){if(1&e&&(l(0,"div",0)(1,"h2"),g(2),m(3,"translate"),c(),_(4,ooe,3,1,"div",1),c(),_(5,aoe,3,3,"ng-template",null,2,we)),2&e){const
s=F(6);a(2),S(f(3,3,"dashboard.status.backends_title")),a(2),p("ngIf",0!=(null==n.backends?null:n.backends.length))("ngIfElse",s)}},
directives:[Q,at],pipes:[ce],styles:["","div.statusBox[_ngcontent-%COMP%]{width:auto;border-top:1px
solid var(--text-color);border-right:1px solid var(--text-color);border-bottom:1px solid
var(--text-color);border-left:10px solid var(--text-color);padding:10px;border-radius:8px
0 0 8px;margin:20px}"]}),t})();const
coe=function(t,i,e,n){return{Name:t,IP:i,Port:e,OnLine:n}};function
uoe(t,i){if(1&t&&(l(0,"div")(1,"li"),g(2),m(3,"translate"),c()()),2&t){const
e=i.$implicit;a(2),T("",Dt(3,1,"dashboard.status.frontends_detail",qn(4,coe,e.Name,e.IP,e.Port,e.OnLine)),"
")}}function
doe(t,i){if(1&t&&(l(0,"div")(1,"ul"),_(2,uoe,4,9,"div",3),c()()),2&t){const
e=d();a(2),p("ngForOf",e.frontends)}}function
poe(t,i){1&t&&(l(0,"p"),g(1),m(2,"translate"),c()),2&t&&(a(1),S(f(2,1,"dashboard.status.frontends_none")))}let
hoe=(()=>{class t{constructor(){}ngOnInit(){}}return t.\u0275fac=function(e){return
new(e||t)},t.\u0275cmp=z({type:t,selectors:[["app-status-frontends"]],inputs:{frontends:"frontends
"},decls:7,vars:5,consts:[[1,"statusBox"],[4,"ngIf","ngIfElse"],["noFrontends",""],[4,"ngFor","ngForOf"]],template:function(e,n){if(1&e&&(l(0,"div",0)(1,"h2"),g(2),m(3,"translate"),c(),_(4,doe,3,1,"div",1),c(),_(5,poe,3,3,"ng-template",null,2,we)),2&e){const
s=F(6);a(2),S(f(3,3,"dashboard.status.frontends_title")),a(2),p("ngIf",0!=(null==n.frontends?null:n.frontends.length))("ngIfElse",s)}},directives:[Q,at],pipes:[ce],styles:["","div.statusBox[_ngcontent-%COMP%]{width:auto;border-top:1px
solid var(--text-color);border-right:1px solid var(--text-color);border-bottom:1px solid
var(--text-color);border-left:10px solid var(--text-color);padding:10px;border-radius:8px
0 0 8px;margin:20px}"]}),t})();function
moe(t,i){if(1&t&&(l(0,"div",9)(1,"h2"),g(2),m(3,"translate"),c(),l(4,"div"),g(5),c()()),2&t){const
e=d().ngIf;a(2),S(f(3,2,"dashboard.status.misc_title")),a(3),T("
",e.Miscellaneous," ")}}function
foe(t,i){if(1&t&&(l(0,"div"),k(1,"app-status-encoders",2)(2,"app-status-scheduled",3)(3
,"app-status-jobqueue",4)(4,"app-status-machineinfo",5)(5,"app-status-backends",6)(6,"app-status-frontends",7),_(7,moe,6,4,"div",8),c()),2&t){const
e=i.ngIf;a(1),p("encoders",e.Encoders),a(1),p("scheduled",e.Scheduled),a(1),p("jobqueue",e.JobQueue),a(1),p("machineinfo",e.MachineInfo),a(1),p("backends",e.Backends),a(1),p("frontends",e.Frontends),a(1),p("ngIf",e.Miscellaneous)}}function
goe(t,i){1&t&&(l(0,"div"),g(1,"Loading..."),c())}let
_oe=(()=>{class
t{constructor(e){this.statusService=e}ngOnInit(){this.m_status$=this.statusService.GetBackendStatus()}}return
t.\u0275fac=function(e){return
new(e||t)(D(kre))},t.\u0275cmp=z({type:t,selectors:[["app-status"]],decls:7,vars:7,consts:[[4,"ngIf","ngIfElse"],["loading",""],[3,"encoders"],[3,"scheduled"],[3,"jobqueue"],[3,"machineinfo"],[3,"backends"],[3,"frontends"],["class","statusBox",4,"ngIf"],[1,"statusBox"]],template:function(e,n){if(1&e&&(l(0,"h2"),g(1),m(2,"translate"),c(),_(3,foe,8,7,"div",0),m(4,"async"),_(5,goe,2,0,"ng-template",
null,1,we)),2&e){const s=F(6);let
r;a(1),T("",f(2,3,"dashboard.backendStatus"),"
"),a(2),p("ngIf",null==(r=f(4,5,n.m_status$))?null:r.BackendStatus)("ngIfElse",s)}},directives:[Q,Nre,Gre,$re,ioe,loe,hoe],pipes:[ce,xy],styles:["div.statusBox[_ngcontent-%COMP%]{width:auto;border-top:1px
solid var(--text-color);border-right:1px solid var(--text-color);border-bottom:1px solid
var(--text-color);border-left:10px solid var(--text-color);padding:10px;border-radius:8px
0 0 8px;margin:20px}"]}),t})();const
boe=["recsform"],voe=["menu"];function Coe(t,i){}function
yoe(t,i){1&t&&g(0),2&t&&T(" ",i.$implicit,"
")}function woe(t,i){if(1&t){const
e=I();l(0,"p-dropdown",67),C("onChange",function(s){return
v(e).filterCallback(s.value)}),m(1,"translate"),_(2,yoe,1,1,"ng-template",68),c()}if(2&t){const
e=i.$implicit,n=d(2);x("placeholder",f(1,4,"settings.chanedit.all")),p("ngModel",e)("options",n.recGroups)("showClear",!0)}}function
Toe(t,i){if(1&t){const
e=I();l(0,"tr")(1,"th",43)(2,"button",44),C("cl
ick",function(s){return
v(e),d().showContextMenu(null,s)}),m(3,"translate"),c(),g(4),m(5,"translate"),m(6,"translate"),k(7,"p-columnFilter",45),g(8),m(9,"translate"),l(10,"p-columnFilter",46),_(11,woe,3,6,"ng-template",47),c(),l(12,"button",48),C("click",function(){v(e);const
s=d();return
s.refreshing=!0,s.refresh()}),m(13,"translate"),c(),g(14),c()(),l(15,"tr")(16,"th",49),g(17),m(18,"translate"),k(19,"p-sortIcon",50),c(),k(20,"th",51),l(21,"th",52),g(22),m(23,"translate"),c(),l(24,"th",53),g(25),m(26,"translate"),c(),l(27,"th",54),g(28),m(29,"translate"),k(30,"p-sortIcon",55),c(),l(31,"th",56),g(32),m(33,"translate"),k(34,"p-sortIcon",57),c(),l(35,"th",58),g(36),m(37,"translate"),c(),l(38,"th",59),g(39),m(40,"translate"),k(41,"p-sortIcon",60),c(),l(42,"th",61),g(43),m(44,"translate"),c(),l(45,"th",62),g(46),m(47,"translate"),c(),l(48,"th",63)(49,"a",64),k(50,"i",65),c(),k(51,"button",66),c()()}if(2&t){const
e=d();a(2),x("pTooltip",f(3,18,"common.selected_menu")),a(2),We("
\xa0\xa0
\xa0\xa0\xa0 ",f(5,20,"dashboard.recordings.filter"),": \xa0\xa0
",f(6,22,"dashboard.recordings.title"),": \xa0
"),a(3),p("matchModeOptions",e.matchModeTitle),a(1),T("
",f(9,24,"dashboard.recordings.recgrp"),": \xa0
"),a(2),p("showMenu",!1),a(2),x("pTooltip",f(13,26,"common.refresh")),a(2),T("
\xa0\xa0\xa0",e.programs.length," Rows "),a(3),T("
",f(18,28,"dashboard.recordings.title"),"
"),a(5),S(f(23,30,"dashboard.recordings.subtitle")),a(3),S(f(26,32,"dashboard.recordings.seas_ep")),a(3),T("
",f(29,34,"dashboard.recordings.orig_airdate")," "),a(4),T("
",f(33,36,"dashboard.recordings.airdate"),"
"),a(4),S(f(37,38,"dashboard.recordings.channel")),a(3),T("
",f(40,40,"dashboard.recordings.recgrp")," "),a(4),T("
",f(44,42,"dashboard.recordings.duration"),"
"),a(3),S(f(47,44,"dashboard.recordings.file_size")),a(5),p("disabled",!0)}}function
Soe(t,i){1&t&&(k(0,"i",80),m(1,"translate")),2&t&&x("pTooltip",f(1,1,"dashboard.recordings.damaged"))}function
xoe(t,i){1&t&&(k(0,"i",81),m(1,"transla
te")),2&t&&x("pTooltip",f(1,1,"dashboard.recordings.watched"))}function
Doe(t,i){if(1&t&&(l(0,"div"),g(1),c()),2&t){const
e=d().$implicit;a(1),We(" ",e.Season,"x",e.Episode,"
")}}const Moe=function(t){return{"line-through":t}};function
koe(t,i){if(1&t){const
e=I();l(0,"tr",69),C("contextmenu",function(s){const
o=v(e).$implicit;return
d().onContextMenu(o,s)}),l(1,"td",70),_(2,Soe,2,3,"i",71),g(3),c(),l(4,"td",51),_(5,xoe,2,3,"i",72),c(),l(6,"td",73),g(7),c(),l(8,"td",53),_(9,Doe,2,2,"div",74),c(),l(10,"td",62),k(11,"div",75),c(),l(12,"td",62),k(13,"div",75),c(),l(14,"td",58),g(15),c(),l(16,"td",76),g(17),c(),l(18,"td",61),g(19),m(20,"number"),c(),l(21,"td",62),g(22),m(23,"number"),c(),l(24,"td",63)(25,"a",77),m(26,"translate"),k(27,"i",78),c(),l(28,"button",79),C("click",function(s){const
o=v(e).$implicit;return d().showContextMenu(o,s)}),c()()()}if(2&t){const
e=i.$implicit,n=i.rowIndex,s=d();p("ngClass",U(27,Moe,"Deleted"==e.Recording.RecGroup))("pSelectableRow",e)("pSelectableRowIn
dex",n),a(2),p("ngIf",e.VideoPropNames.indexOf("DAMAGED")>-1),a(1),T("
",e.Title,"
"),a(2),p("ngIf",e.ProgramFlagNames.indexOf("WATCHED")>-1),a(1),x("pTooltip",e.Description),a(1),T("
",e.SubTitle,""),a(2),p("ngIf",e.Season>0||e.Episode>0),a(2),p("innerHTML",s.utility.formatDate(e.Airdate,!0),Bt),a(2),p("innerHTML",s.utility.formatDate(e.StartTime,!0),Bt),a(2),We("
",e.Channel.ChanNum,"
",e.Channel.CallSign,""),a(2),S(e.Recording.RecGroup),a(2),T("",Dt(20,19,s.getDuration(e),"1.0-0"),"
min"),a(3),T("
",Dt(23,22,e.Recording.FileSize/1e6,"1.0-0"),"
MB"),a(3),x("href",s.URLencode("/Content/GetRecording?RecordedId="+e.Recording.RecordedId),ln),x("pTooltip",f(26,25,"dashboard.recordings.download")),a(2),p("id","download_"+n)}}function
Ioe(t,i){1&t&&(k(0,"p-message",87),m(1,"translate")),2&t&&x("text",f(1,1,"common.savesuccess"))}function
Eoe(t,i){1&t&&(k(0,"p-message",88),m(1,"translate")),2&t&&x("text",f(1,1,"common.networkfail"))}function
Roe(t,i){if(1&t){const e=I();l(0,"div",82),_(1,
Ioe,2,3,"p-message",83),_(2,Eoe,2,3,"p-message",84),c(),l(3,"p-button",85),C("onClick",function(){return
v(e),d().closeDialog()}),m(4,"translate"),c(),l(5,"p-button",86),C("onClick",function(){return
v(e),d().saveProgram()}),m(6,"translate"),c()}if(2&t){const
e=d(),n=F(1);a(1),p("ngIf",e.successCount>0&&0==e.errorCount&&!n.dirty),a(1),p("ngIf",e.errorCount>0),a(1),x("label",f(4,5,"common.close")),a(2),x("label",f(6,7,"common.save")),p("disabled",!n.dirty||""==e.program.Title.trim())}}function
Loe(t,i){if(1&t){const
e=I();l(0,"p-button",89),C("onClick",function(){return
v(e),d().displayRecGrpDlg=!1}),m(1,"translate"),c(),l(2,"p-button",90),C("onClick",function(){return
v(e),d().updaterecgrp()}),m(3,"translate"),c()}if(2&t){const
e=d();x("label",f(1,3,"common.cancel")),a(2),x("label",f(3,5,"common.ok")),p("disabled",!e.newRecGroup.trim())}}function
Ooe(t,i){if(1&t){const
e=I();l(0,"p-button",91),C("onClick",function(){return
v(e),d().closeDialog()}),m(1,"translate"),c(),l(2,"p-button"
,92),C("onClick",function(){return
v(e),d().displayUnsaved=!1}),m(3,"translate"),c()}2&t&&(x("label",f(1,2,"common.nosave")),a(2),x("label",f(3,4,"common.continue")))}const
Aoe=function(){return{height:"75vw",width:"50vw"}},Poe=function(){return{minWidth:"400px"}};let
Foe=(()=>{class
t{constructor(e,n,s,r,o){this.dvrService=e,this.messageService=n,this.translate=s,this.setupService=r,this.utility=o,this.programs=[],this.selection=[],this.actionList=[],this.recGroups=[],this.newRecGroup="",this.program={Title:"",Recording:{}},this.displayMetadataDlg=!1,this.displayRecGrpDlg=!1,this.displayRunJobs=!1,this.displayUnsaved=!1,this.successCount=0,this.errorCount=0,this.refreshing=!1,this.priorRequest={},this.msg={Success:"common.success",Failed:"common.failed",NetFail:"common.networkfail",CanUndo:"dashboard.recordings.canundel",AlreadyDel:"dashboard.recordings.alreadydel",NonReRec:"dashboard.recordings.nonrerec",ActionsSelected:"dashboard.recordings.actionsselected",JobsSelected:"dashboar
d.recordings.jobsselected",UndefSelection:"dashboard.undefselection"},this.jobsoffset=3,this.jobs=[{id:"Transcode",label:"dashboard.recordings.job_Transcode",command:h=>this.runjob(h)},{id:"Commflag",label:"dashboard.recordings.job_Commflag",command:h=>this.runjob(h)},{id:"Metadata",label:"dashboard.recordings.job_Metadata",command:h=>this.runjob(h)},{id:"UserJob1",visible:!1,command:h=>this.runjob(h)},{id:"UserJob2",visible:!1,command:h=>this.runjob(h)},{id:"UserJob3",visible:!1,command:h=>this.runjob(h)},{id:"UserJob4",visible:!1,command:h=>this.runjob(h)}],this.mnu_delete={label:"dashboard.recordings.mnu_delete",command:h=>this.delete(h,!1)},this.mnu_delete_rerec={label:"dashboard.recordings.mnu_delete_rerec",command:h=>this.delete(h,!0)},this.mnu_undelete={label:"dashboard.recordings.mnu_undelete",command:h=>this.undelete(h)},this.mnu_rerec={label:"dashboard.recordings.mnu_rerec",command:h=>this.rerec(h)},this.mnu_markwatched={label:"dashboard.recordings.mnu_markwatched",command
:h=>this.markwatched(h,!0)},this.mnu_markunwatched={label:"dashboard.recordings.mnu_markunwatched",command:h=>this.markwatched(h,!1)},this.mnu_markdamaged={label:"dashboard.recordings.mnu_markdamaged",command:h=>this.markdamaged(h,!0)},this.mnu_markundamaged={label:"dashboard.recordings.mnu_markundamaged",command:h=>this.markdamaged(h,!1)},this.mnu_updaterecgrp={label:"dashboard.recordings.mnu_updaterecgrp",command:h=>this.promptrecgrp(h)},this.mnu_updatemeta={label:"dashboard.recordings.mnu_updatemeta",command:h=>this.updatemeta(h)},this.mnu_updaterecrule={label:"dashboard.recordings.mnu_updaterecrule",command:h=>this.updaterecrule(h)},this.mnu_stoprec={label:"dashboard.recordings.mnu_stoprec",command:h=>this.stoprec(h)},this.mnu_runjobs={label:"dashboard.recordings.mnu_runjobs",items:this.jobs},this.menuToShow=[],this.matchModeRecGrp=[{value:_t.EQUALS,label:"common.filter.equals"}],this.matchModeTitle=[{value:_t.STARTS_WITH,label:"common.filter.startswith"},{value:_t.CONTAINS,labe
l:"common.filter.contains"},{value:_t.EQUALS,label:"common.filter.equals"}],this.saveObserver={next:h=>{h.bool?(this.successCount++,this.currentForm.form.markAsPristine(),this.editingProgram&&Object.assign(this.editingProgram,this.program)):(console.log("saveObserver
error",h),this.errorCount++)},error:h=>{console.log("saveObserver
error",h),this.errorCount++}},this.JobQCmds=this.setupService.getJobQCommands(),this.dvrService.GetRecGroupList().subscribe(h=>{this.recGroups=h.RecGroupList,this.recGroups.push("Deleted")});for(const[h,b]of
Object.entries(this.msg))this.translate.get(b).subscribe(y=>{Object.defineProperty(this.msg,h,{value:y})});[this.mnu_delete,this.mnu_delete_rerec,this.mnu_undelete,this.mnu_rerec,this.mnu_markwatched,this.mnu_markunwatched,this.mnu_markdamaged,this.mnu_markundamaged,this.mnu_updatemeta,this.mnu_updaterecrule,this.mnu_stoprec,this.mnu_updaterecgrp,this.mnu_runjobs,this.jobs[0],this.jobs[1],this.jobs[2],...this.matchModeRecGrp,...this.matchModeTitle].fo
rEach(h=>{h.label&&this.translate.get(h.label).subscribe(b=>h.label=b)})}ngOnInit(){}loadLazy(e){this.lazyLoadEvent=e;let
n={StartIndex:0,Count:1};e.first&&(n.StartIndex=e.first),e.rows&&(n.Count=e.rows),e.sortField||(e.sortField="Title"),n.Sort=e.sortField,n.Sort="Airdate"==e.sortField?"originalairdate":"Recording.RecGroup"==e.sortField?"recgroup":e.sortField;let
s=" asc";if(e.sortOrder&&e.sortOrder<0&&(s="
desc"),n.Sort=n.Sort+s,n.Sort+=`,title${s},originalairdate${s},season${s},episode${s}`,e.filters){if(e.filters.Title.value)switch(e.filters.Title.matchMode){case
_t.STARTS_WITH:n.TitleRegEx="^"+e.filters.Title.value;break;case
_t.CONTAINS:n.TitleRegEx=e.filters.Title.value;break;case
_t.EQUALS:n.TitleRegEx="^"+e.filters.Title.value+"$"}e.filters["Recording.RecGroup"].value&&e.filters["Recording.RecGroup"].matchMode==_t.EQUALS&&(n.RecGroup=e.filters["Recording.RecGroup"].value)}(n.TitleRegEx!=this.priorRequest.TitleRegEx||n.RecGroup!=this.priorRequest.RecGroup)&&(this.programs=[]
,this.selection=[],this.menu.hide(),this.priorRequest=n),this.dvrService.GetRecordedList(n).subscribe(r=>{let
o=r.ProgramList;this.programs.length=r.ProgramList.TotalAvailable,this.programs.splice(o.StartIndex,o.Count,...o.Programs),this.programs=[...this.programs],this.refreshing=!1})}refresh(){this.selection=[],this.menu.hide(),this.loadLazy(this.lazyLoadEvent)}URLencode(e){return
encodeURI(e)}getDuration(e){const n=new Date(e.Recording.StartTs).getTime();return(new
Date(e.Recording.EndTs).getTime()-n)/6e4}onContextMenu(e,n){return!(!(0==this.selection.length||n.target&&n.target.id&&n.target.id.startsWith("download_"))&&(this.selection.some(s=>!s)?(this.sendMessage("error",null,"",this.msg.UndefSelection),1):this.selection.some(s=>s.Recording.RecordedId==e.Recording.RecordedId)&&(this.showContextMenu(null,n),1)))}onSelectChange(){this.menu.hide()}showContextMenu(e,n){if(this.actionList.length=0,e&&e.Title?this.actionList.push(e):this.actionList.push(...this.selection),0==this.acti
onList.length)return;if(this.actionList.some(r=>!r))return void
this.sendMessage("error",null,"",this.msg.UndefSelection);this.menuToShow.length=0;let
s=[];if(this.actionList.some(r=>"Deleted"==r.Recording.RecGroup)&&s.push(this.mnu_undelete),this.actionList.some(r=>"Deleted"!=r.Recording.RecGroup)&&(s.push(this.mnu_delete),s.push(this.mnu_delete_rerec)),s.push(this.mnu_rerec),this.actionList.some(r=>r.ProgramFlagNames.indexOf("WATCHED")>-1)&&s.push(this.mnu_markunwatched),this.actionList.some(r=>r.ProgramFlagNames.indexOf("WATCHED")<0)&&s.push(this.mnu_markwatched),this.actionList.some(r=>r.VideoPropNames.indexOf("DAMAGED")>-1)&&s.push(this.mnu_markundamaged),this.actionList.some(r=>r.VideoPropNames.indexOf("DAMAGED")<0)&&s.push(this.mnu_markdamaged),s.push(this.mnu_updaterecgrp),1==this.actionList.length?(s.push(this.mnu_updatemeta),this.menuToShow.push({label:this.actionList[0].Title+"
-
"+this.actionList[0].SubTitle,items:s})):this.menuToShow.push({label:this.msg.ActionsSelected
.replace(/{{ *num
*}}/,this.actionList.length.toString()),items:s}),this.actionList.every(r=>"Deleted"!=r.Recording.RecGroup)){this.menuToShow.push(1==this.actionList.length?this.mnu_runjobs:{label:this.msg.JobsSelected.replace(/{{
*num *}}/,this.actionList.length.toString()),items:this.jobs});for(let
r=0;r<4;r++)this.JobQCmds.UserJob[r]?(this.jobs[r+this.jobsoffset].visible=!0,this.jobs[r+this.jobsoffset].label=this.JobQCmds.UserJobDesc[r]):this.jobs[r+this.jobsoffset].visible=!1}this.menu.toggle(n)}delete(e,n){let
s=this.actionList.shift();s&&this.dvrService.GetRecorded({RecordedId:s.Recording.RecordedId}).subscribe({next:r=>{"Deleted"==r.Program.Recording.RecGroup?(this.sendMessage("error",s,e.item.label,this.msg.AlreadyDel),s.Recording.RecGroup="Deleted"):this.dvrService.DeleteRecording({RecordedId:s.Recording.RecordedId,AllowRerecord:n}).subscribe({next:o=>{o.bool?(this.sendMessage("success",s,e.item.label,this.msg.Success,this.msg.CanUndo),s.Recording.RecGroup="Deleted"):this.
sendMessage("error",s,e.item.label,this.msg.Failed)},error:o=>this.networkError(s,o)}),this.delete(e,n)},error:r=>{this.networkError(s,r),this.delete(e,n)}})}undelete(e){let
n=this.actionList.shift();n&&this.dvrService.UnDeleteRecording({RecordedId:n.Recording.RecordedId}).subscribe({next:s=>{s.bool?(n.Recording.RecGroup="Default",this.sendMessage("success",n,e.item.label,this.msg.Success)):this.sendMessage("error",n,e.item.label,this.msg.Failed),this.undelete(e)},error:s=>{this.networkError(n,s),this.undelete(e)}})}networkError(e,n){console.log("network
error",n),this.sendMessage("error",e,"",this.msg.NetFail)}sendMessage(e,n,s,r,o){o=o?"\n"+o:"";let
u=s;null!=n&&(u=s+" "+n.Title+"
"+n.SubTitle+o),this.messageService.add({severity:e,summary:r,detail:u,life:5e3,sticky:"error"==e})}rerec(e){let
n=this.actionList.shift();n&&this.dvrService.AllowReRecord(n.Recording.RecordedId).subscribe({next:s=>{s.bool?this.sendMessage("success",n,e.item.label,this.msg.Success):this.sendMessage("erro
r",n,e.item.label,this.msg.Failed),this.rerec(e)},error:s=>{this.networkError(n,s),this.rerec(e)}})}markwatched(e,n){let
s=this.actionList.shift();s&&this.dvrService.UpdateRecordedMetadata({RecordedId:s.Recording.RecordedId,Watched:n}).subscribe({next:r=>{r.bool?(this.sendMessage("success",s,e.item.label,this.msg.Success),s.ProgramFlagNames=n?s.ProgramFlagNames+"|WATCHED|":s.ProgramFlagNames.replace(/WATCHED/g,"")):this.sendMessage("error",s,e.item.label,this.msg.Failed),this.markwatched(e,n)},error:r=>{this.networkError(s,r),this.markwatched(e,n)}})}markdamaged(e,n){let
s=this.actionList.shift();s&&this.dvrService.UpdateRecordedMetadata({RecordedId:s.Recording.RecordedId,Damaged:n}).subscribe({next:r=>{r.bool?n?(this.sendMessage("success",s,e.item.label,this.msg.Success,this.msg.NonReRec),s.VideoPropNames=s.VideoPropNames+"|DAMAGED|"):(this.sendMessage("success",s,e.item.label,this.msg.Success),s.VideoPropNames=s.VideoPropNames.replace(/DAMAGED/g,"")):this.sendMessage("error",s,e.i
tem.label,this.msg.Failed),this.markdamaged(e,n)},error:r=>{this.networkError(s,r),this.markdamaged(e,n)}})}promptrecgrp(e){this.newRecGroup=1==this.actionList.length?this.actionList[0].Recording.RecGroup:"",this.displayRecGrpDlg=!0}updaterecgrp(){this.displayRecGrpDlg=!1,this.newRecGroup=this.newRecGroup.trim();let
e=this.actionList.shift();e&&this.newRecGroup&&this.dvrService.UpdateRecordedMetadata({RecordedId:e.Recording.RecordedId,RecGroup:this.newRecGroup}).subscribe({next:n=>{n.bool?(this.sendMessage("success",e,this.mnu_updaterecgrp.label,this.msg.Success),e.Recording.RecGroup=this.newRecGroup):this.sendMessage("error",e,this.mnu_updaterecgrp.label,this.msg.Failed),this.updaterecgrp()},error:n=>{this.networkError(e,n),this.updaterecgrp()}})}updaterecrule(e){}stoprec(e){}runjob(e){let
n=this.actionList.shift();n&&this.dvrService.ManageJobQueue({Action:"Add",JobName:e.item.id,RecordedId:n.Recording.RecordedId}).subscribe({next:s=>{s.int>0?this.sendMessage("success",n,e.item.lab
el,this.msg.Success):this.sendMessage("error",n,e.item.label,this.msg.Failed),this.runjob(e)},error:s=>{this.networkError(n,s),this.runjob(e)}})}updatemeta(e){this.program=this.actionList.shift(),this.program&&(this.editingProgram=this.program,this.program=Object.assign({},this.program),this.program.Airdate=this.program.Airdate?new
Date(this.program.Airdate+"
00:00"):null,this.displayMetadataDlg=!0,this.currentForm.form.markAsPristine())}saveProgram(){this.successCount=0,this.errorCount=0,this.displayUnsaved=!1,this.dvrService.UpdateRecordedMetadata({RecordedId:this.program.Recording.RecordedId,Description:this.program.Description,Episode:this.program.Episode,Inetref:this.program.Inetref,OriginalAirDate:this.program.Airdate,Season:this.program.Season,SubTitle:this.program.SubTitle,Title:this.program.Title,RecGroup:this.program.Recording.RecGroup}).subscribe(this.saveObserver)}closeDialog(){this.currentForm.dirty?this.displayUnsaved?(this.displayUnsaved=!1,this.displayMetadataDlg=!1,
this.editingProgram=void
0,this.currentForm.form.markAsPristine()):this.displayUnsaved=!0:(this.displayMetadataDlg=!1,this.displayUnsaved=!1,this.editingProgram=void
0)}}return t.\u0275fac=function(e){return
new(e||t)(D(jo),D(Gi),D(Oe),D(Me),D(cs))},t.\u0275cmp=z({type:t,selectors:[["app-recordings"]],viewQuery:function(e,n){if(1&e&&(W(boe,5),W(voe,5)),2&e){let
s;V(s=B())&&(n.currentForm=s.first),V(s=B())&&(n.menu=s.first)}},features:[Pe([Gi])],decls:85,vars:96,consts:[["name","recsform"],["recsform","ngForm"],[2,"white-space","pre-line"],["position","center"],[1,"block","card","w-full",2,"height","90vh"],[1,"font-bold",3,"popup","model"],["menu",""],["scrollHeight","flex","styleClass","p-datatable-striped","selectionMode","multiple","dataKey","Recording.RecordedId",3,"value","scrollable","virtualScroll","rows","lazy","rowHover","selection","metaKeySelection","onLazyLoad","selectionChange","onRowSelect","onRowUnelect"],["pTemplate","caption"],["pTemplate","header"],["pTemplate","bod
y"],[3,"header","visible","modal","closable","closeOnEscape","visibleChange"],[1,"form-group","field"],["for","Title",1,"label","block"],["pInputText","","id","Title","name","Title",1,"mb-2","form-control","w-full",3,"ngModel","ngModelChange"],["Title","ngModel"],["for","SubTitle",1,"label","block"],["pInputText","","id","SubTitle","name","SubTitle",1,"mb-2","form-control","w-full",3,"ngModel","ngModelChange"],["SubTitle","ngModel"],["for","Inetref",1,"label","block"],["pInputText","","id","Inetref","name","Inetref",1,"mb-2","form-control","w-full",3,"ngModel","ngModelChange"],["Inetref","ngModel"],["for","Description",1,"label","block"],["pInputTextarea","","id","Description","name","Description",1,"mb-2","form-control","w-full",3,"rows","cols","ngModel","ngModelChange"],["Description","ngModel"],["for","Season",1,"label","block"],["name","Season","id","Season",3,"ngModel","showButtons","min","max","step","ngModelChange"],["for","Episode",1,"label","block"],["name","Episode","id","
Episode",3,"ngModel","showButtons","min","max","step","ngModelChange"],["for","Airdate",1,"label","block"],["dateFormat","yy-mm-dd","name","Airdate","id","Airdate",3,"ngModel","ngModelChange"],["for","RecGroup",1,"label","block"],["name","RecGroup",3,"options","ngModel","editable","maxlength","ngModelChange"],["RecGroup","ngModel"],["for","FileName",1,"label","block"],["pTemplate","footer"],[3,"header","visible","modal","draggable","resizable","visibleChange"],["for","newrecgroup",1,"label","block"],["pInputText","","id","newrecgroup","name","newrecgroup",1,"mb-2","form-control","w-full",3,"ngModel","ngModelChange"],["newrecgroup","ngModel"],["name","recgrplist",3,"options","ngModel","ngModelChange"],["recgrplist","ngModel"],[3,"header","visible","modal","visibleChange"],[1,"pl-1"],["pButton","","pRipple","","icon","pi
pi-bars","tooltipPosition","top",1,"p-button-text",".p-button-success",3,"pTooltip","click"],["type","text","field","Title",3,"matchModeOptions"],["field","Recording.
RecGroup","matchMode","equals",3,"showMenu"],["pTemplate","filter"],["pButton","","pRipple","","icon","pi
pi-refresh","tooltipPosition","top",1,"p-button-text",".p-button-success",3,"pTooltip","click"],["pSortableColumn","Title",1,"p-1",2,"flex-basis","12%"],["field","Title"],[1,"p-1",2,"flex-basis","2%"],[1,"p-1",2,"flex-basis","18%"],[1,"p-1",2,"flex-basis","4%"],["pSortableColumn","Airdate",1,"justify-content-end","p-1",2,"flex-basis","8%"],["field","Airdate"],["pSortableColumn","StartTime",1,"justify-content-end","p-1",2,"flex-basis","8%"],["field","StartTime"],[1,"p-1",2,"flex-basis","10%"],["pSortableColumn","Recording.RecGroup",1,"p-1",2,"flex-basis","8%"],["field","Recording.RecGroup"],[1,"justify-content-end","p-1",2,"flex-basis","6%"],[1,"justify-content-end","p-1",2,"flex-basis","8%"],[1,"p-1",2,"background","var(--surface-card)"],["target","_blank"],[1,"pi","pi-download"],["pButton","","pRipple","","icon","pi
pi-ellipsis-v",1,"p-button-text","p-button-primary",3,"disable
d"],["name","filter",3,"ngModel","options","placeholder","showClear","onChange"],["pTemplate","item"],[3,"ngClass","pSelectableRow","pSelectableRowIndex","contextmenu"],[1,"p-1","overflow-hidden",2,"flex-basis","12%"],["class","pi
pi-exclamation-triangle
p-1","tooltipPosition","top",3,"pTooltip",4,"ngIf"],["class","pi
pi-eye","tooltipPosition","top",3,"pTooltip",4,"ngIf"],["tooltipPosition","top",1,"p-1","overflow-hidden",2,"flex-basis","18%",3,"pTooltip"],[4,"ngIf"],[3,"innerHTML"],[1,"p-1",2,"flex-basis","8%"],["target","_blank","tooltipPosition","left",3,"href","pTooltip"],[1,"pi","pi-download","text-primary",3,"id"],["pButton","","pRipple","","icon","pi
pi-ellipsis-v",1,"p-button-text","p-button-primary",3,"click"],["tooltipPosition","top",1,"pi","pi-exclamation-triangle","p-1",3,"pTooltip"],["tooltipPosition","top",1,"pi","pi-eye",3,"pTooltip"],[1,"col-12",2,"text-align","left"],["severity","success",3,"text",4,"ngIf"],["severity","error",3,"text",4,"ngIf"],["icon","pi
pi-times
-circle","styleClass","p-button-warning",3,"label","onClick"],["icon","pi
pi-check-circle","styleClass","p-button-success",3,"label","disabled","onClick"],["severity","success",3,"text"],["severity","error",3,"text"],["icon","pi
pi-times-circle","styleClass","p-button-plain",3,"label","onClick"],["icon","pi
pi-check-circle","styleClass","p-button-plain",3,"label","disabled","onClick"],["icon","pi
pi-times-circle","styleClass","p-button-danger",3,"label","onClick"],["icon","pi
pi-check-circle","styleClass","p-button-success",3,"label","onClick"]],template:function(e,n){1&e&&(l(0,"form",0,1)(2,"div",2),k(3,"p-toast",3),c(),l(4,"h2"),g(5),m(6,"translate"),c(),l(7,"div",4),k(8,"p-tieredMenu",5,6),l(10,"p-table",7),C("onLazyLoad",function(r){return
n.loadLazy(r)})("selectionChange",function(r){return
n.selection=r})("onRowSelect",function(){return
n.onSelectChange()})("onRowUnelect",function(){return
n.onSelectChange()}),_(11,Coe,0,0,"ng-template",8),_(12,Toe,52,46,"ng-template",9),_(13,
koe,29,29,"ng-template",10),c(),l(14,"p-dialog",11),C("visibleChange",function(r){return
n.displayMetadataDlg=r}),m(15,"translate"),l(16,"div",12)(17,"label",13),g(18),m(19,"translate"),c(),l(20,"input",14,15),C("ngModelChange",function(r){return
n.program.Title=r}),c()(),l(22,"div",12)(23,"label",16),g(24),m(25,"translate"),c(),l(26,"input",17,18),C("ngModelChange",function(r){return
n.program.SubTitle=r}),c()(),l(28,"div",12)(29,"label",19),g(30),m(31,"translate"),c(),l(32,"input",20,21),C("ngModelChange",function(r){return
n.program.Inetref=r}),c()(),l(34,"div",12)(35,"label",22),g(36),m(37,"translate"),c(),l(38,"textarea",23,24),C("ngModelChange",function(r){return
n.program.Description=r}),c()(),l(40,"div",12)(41,"label",25),g(42),m(43,"translate"),c(),l(44,"p-inputNumber",26),C("ngModelChange",function(r){return
n.program.Season=r}),c()(),l(45,"div",12)(46,"label",27),g(47),m(48,"translate"),c(),l(49,"p-inputNumber",28),C("ngModelChange",function(r){return
n.program.Episode=r}
),c()(),l(50,"div",12)(51,"label",29),g(52),m(53,"translate"),c(),l(54,"p-calendar",30),C("ngModelChange",function(r){return
n.program.Airdate=r}),c()(),l(55,"div",12)(56,"label",31),g(57),m(58,"translate"),c(),l(59,"p-dropdown",32,33),C("ngModelChange",function(r){return
n.program.Recording.RecGroup=r}),c()(),l(61,"div",12)(62,"label",34),g(63),m(64,"translate"),c(),l(65,"pre"),g(66),c()(),_(67,Roe,7,9,"ng-template",35),c(),l(68,"p-dialog",36),C("visibleChange",function(r){return
n.displayRecGrpDlg=r}),m(69,"translate"),l(70,"div",12)(71,"label",37),g(72),m(73,"translate"),c(),l(74,"input",38,39),C("ngModelChange",function(r){return
n.newRecGroup=r}),c()(),l(76,"p-listbox",40,41),C("ngModelChange",function(r){return
n.newRecGroup=r}),c(),_(78,Loe,4,7,"ng-template",35),c(),l(79,"p-dialog",42),C("visibleChange",function(r){return
n.displayUnsaved=r}),m(80,"translate"),l(81,"p"),g(82),m(83,"translate"),c(),_(84,Ooe,4,6,"ng-template",35),c()()()),2&e&&(a(5),S(f(6,64,"dashboard.recordin
gs.heading")),a(3),p("popup",!0)("model",n.menuToShow),a(2),p("value",n.programs)("scrollable",!0)("virtualScroll",!0)("rows",50)("lazy",!0)("rowHover",!0)("selection",n.selection)("metaKeySelection",!0),a(4),q(A(94,Aoe)),x("header",f(15,66,"dashboard.recordings.edit_metadata")),p("visible",n.displayMetadataDlg)("modal",!0)("closable",!1)("closeOnEscape",!1),a(4),S(f(19,68,"dashboard.recordings.title")),a(2),p("ngModel",n.program.Title),a(4),S(f(25,70,"dashboard.recordings.subtitle")),a(2),p("ngModel",n.program.SubTitle),a(4),S(f(31,72,"dashboard.recordings.inetref")),a(2),p("ngModel",n.program.Inetref),a(4),S(f(37,74,"dashboard.recordings.description")),a(2),p("rows",5)("cols",30)("ngModel",n.program.Description),a(4),S(f(43,76,"dashboard.recordings.season")),a(2),p("ngModel",n.program.Season)("showButtons",!0)("min",1)("max",99)("step",1),a(3),S(f(48,78,"dashboard.recordings.episode")),a(2),p("ngModel",n.program.Episode)("showButtons",!0)("min",1)("max",99)("step",1),a(3),S(f(53,8
0,"dashboard.recordings.orig_airdate")),a(2),p("ngModel",n.program.Airdate),a(3),S(f(58,82,"dashboard.sched.recgroup_label")),a(2),q(A(95,Poe)),p("options",n.recGroups)("ngModel",n.program.Recording.RecGroup)("editable",!0)("maxlength",64),a(4),S(f(64,84,"dashboard.recordings.filename_label")),a(3),S(n.program.FileName),a(2),x("header",f(69,86,"dashboard.recordings.selrecgroup")),p("visible",n.displayRecGrpDlg)("modal",!0)("draggable",!1)("resizable",!1),a(4),S(f(73,88,"dashboard.sched.recgroup_label")),a(2),p("ngModel",n.newRecGroup),a(2),p("options",n.recGroups)("ngModel",n.newRecGroup),a(3),x("header",f(80,90,"common.unsaved_heading")),p("visible",n.displayUnsaved)("modal",!0),a(3),S(f(83,92,"common.unsaved_message")))},directives:[ze,Ue,He,Td,D$,Dn,ne,On,bt,Kt,vg,Ot,Te,_e,yd,wd,Le,j2,Q,bn,Ye,tS,pt,xr,_n,qe,ve,os],pipes:[ce,eu],styles:["[_nghost-%COMP%]
.p-tieredmenu{border:2px solid}[_nghost-%COMP%] .p-tieredmenu
.p-submenu-list{border:2px solid}"]}),t})();const Noe=["sc
hedform"],Di=function(){return{minWidth:"400px"}};function
Voe(t,i){if(1&t){const
e=I();l(0,"div",5)(1,"label",63),g(2),m(3,"translate"),c(),l(4,"p-dropdown",64,65),C("ngModelChange",function(s){return
v(e),d(2).templateId=s})("onClick",function(){v(e);const s=d(2);return
s.templateChange(s.recRule)})("onChange",function(){v(e);const s=d(2);return
s.templateChange(s.recRule)}),c()()}if(2&t){const
e=d(2);a(2),S(f(3,7,"dashboard.sched.template_label")),a(2),q(A(9,Di)),p("options",e.templates)("ngModel",e.templateId)("editable",!1)("maxlength",0)}}function
Boe(t,i){1&t&&(l(0,"label",68),g(1),m(2,"translate"),c()),2&t&&(a(1),T("
",f(2,1,"dashboard.sched.subtitle_label"),""))}function
Hoe(t,i){1&t&&(l(0,"label",68),g(1),m(2,"translate"),c()),2&t&&(a(1),T("
",f(2,1,"dashboard.sched.add_tables_label"),""))}function
qoe(t,i){if(1&t){const
e=I();l(0,"textarea",69),C("ngModelChange",function(s){return
v(e),d(3).recRule.SubTitle=s}),g(1," "),c()}if(2&t){const
e=d(3);p("ngModel",
e.recRule.SubTitle)("disabled","Power
Search"!=e.recRule.SearchType)("rows",e.subTitleRows)}}const
Goe=function(){return["None","Power Search"]};function
Uoe(t,i){if(1&t&&(l(0,"div",5),_(1,Boe,3,3,"label",66),_(2,Hoe,3,3,"label",66),_(3,qoe,2,3,"textarea",67),c()),2&t){const
e=d(2);a(1),p("ngIf","None"==e.recRule.SearchType),a(1),p("ngIf","Power
Search"==e.recRule.SearchType),a(1),p("ngIf",A(3,Goe).indexOf(e.recRule.SearchType)>-1)}}function
zoe(t,i){if(1&t&&(l(0,"span"),g(1),c()),2&t){const
e=d(2);a(1),We("S",e.recRule.Season,"
E",e.recRule.Episode,"")}}function
joe(t,i){1&t&&(l(0,"label",74),g(1),m(2,"translate"),c()),2&t&&(a(1),T("
",f(2,1,"dashboard.sched.description_label"),""))}function
$oe(t,i){1&t&&(l(0,"label",74),g(1),m(2,"translate"),c()),2&t&&(a(1),T("
",f(2,1,"dashboard.sched.sqlwhere_label"),""))}function
Woe(t,i){1&t&&(l(0,"label",74),g(1),m(2,"translate"),c()),2&t&&(a(1),T("
",f(2,1,"dashboard.sched.description_label"),""))}function
Koe(t,i){1&t&&(l(0,"label",74),g(1
),m(2,"translate"),c()),2&t&&(a(1),T("
",f(2,1,"dashboard.sched.srchValue_label"),""))}const
Qoe=function(){return["None","Manual Search"]};function
Joe(t,i){if(1&t){const
e=I();l(0,"div",5)(1,"div",70),_(2,joe,3,3,"label",71),_(3,$oe,3,3,"label",71),_(4,Woe,3,3,"label",71),_(5,Koe,3,3,"label",72),c(),l(6,"textarea",73),C("ngModelChange",function(s){return
v(e),d(2).recRule.Description=s})("focusout",function(){return
v(e),d(2).onDescriptionBlur()}),g(7," "),c()()}if(2&t){const
e=d(2);a(1),p("ngSwitch",e.recRule.SearchType),a(1),p("ngSwitchCase","None"),a(1),p("ngSwitchCase","Power
Search"),a(1),p("ngSwitchCase","Manual
Search"),a(2),p("ngModel",e.recRule.Description)("disabled",A(7,Qoe).indexOf(e.recRule.SearchType)>-1)("rows",e.descriptionRows)}}function
Yoe(t,i){1&t&&(l(0,"div"),g(1," Examples of SQL Additional
Tables and Where Conditions are in the MythTV wiki
at"),k(2,"br"),l(3,"a",75),g(4,"Power
Search"),c()())}function Zoe(t,i){if(1&t){const e=I();l(0,"div"),k(
1,"p-divider"),l(2,"div",5)(3,"label",76),g(4),m(5,"translate"),c(),l(6,"p-dropdown",77),C("ngModelChange",function(s){return
v(e),d(2).channel=s})("onChange",function(){return
v(e),d(2).onChannelChange()}),c()(),l(7,"div",5)(8,"label",78),g(9),m(10,"translate"),c(),l(11,"p-calendar",79),C("ngModelChange",function(s){return
v(e),d(2).reqDate=s})("onClose",function(){return
v(e),d(2).onDateChange()})("keyup.enter",function(){return
v(e),d(2).onDateChange()})("onBlur",function(){return
v(e),d(2).onDateChange()}),c()(),l(12,"div",5)(13,"label",80),g(14),m(15,"translate"),c(),l(16,"p-inputNumber",81),C("ngModelChange",function(s){return
v(e),d(2).reqDuration=s})("ngModelChange",function(){return
v(e),d(2).onDurationChange()}),c()()()}if(2&t){const
e=d(2);a(4),S(f(5,23,"dashboard.sched.channel_label")),a(2),q(A(29,Di)),p("options",e.allChannels)("ngModel",e.channel)("editable",!1)("maxlength",0),a(3),S(f(10,25,"dashboard.sched.starttime_label")),a(2),p("ngModel",e.reqDate)("showTime",!0)
("stepMinute",5)("dateFormat","yy/mm/dd")("selectOtherMonths",!0)("showIcon",!0)("showOnFocus",!1)("showButtonBar",!0)("clearButtonStyleClass","hidden"),a(3),S(f(15,27,"dashboard.sched.duration_label")),a(2),p("ngModel",e.reqDuration)("showButtons",!0)("min",5)("max",360)("step",5)}}function
Xoe(t,i){if(1&t){const
e=I();l(0,"div",5)(1,"label",82),g(2),m(3,"translate"),c(),l(4,"div",83)(5,"div",84)(6,"p-radioButton",85),C("ngModelChange",function(s){return
v(e),d(2).metaPrefix=s})("ngModelChange",function(){v(e);const s=d(2);return
s.iCheckbox(s.recRule)}),c(),l(7,"label",86),k(8,"img",87),c()(),l(9,"div",88)(10,"a",89),g(11),m(12,"translate"),c(),k(13,"br"),c(),l(14,"div",90)(15,"p-radioButton",91),C("ngModelChange",function(s){return
v(e),d(2).metaPrefix=s})("ngModelChange",function(){v(e);const s=d(2);return
s.iCheckbox(s.recRule)}),c(),l(16,"label",92),k(17,"img",93),c()(),l(18,"div",94)(19,"a",89),g(20),m(21,"translate"),c(),k(22,"br"),c(),l(23,"div",84)(24,"p-radioButton",95),C
("ngModelChange",function(s){return
v(e),d(2).metaPrefix=s})("ngModelChange",function(){v(e);const s=d(2);return
s.iCheckbox(s.recRule)}),c(),l(25,"label",96),k(26,"img",97),c()(),l(27,"div",88)(28,"a",89),g(29),m(30,"translate"),c(),k(31,"br"),c()(),g(32),l(33,"input",98,99),C("ngModelChange",function(s){return
v(e),d(2).recRule.Inetref=s})("ngModelChange",function(){v(e);const
s=d(2);return
s.iText(s.recRule)}),c(),l(35,"small",55),g(36),m(37,"translate"),k(38,"br"),c()()}if(2&t){const
e=d(2);a(2),S(f(3,13,"dashboard.sched.inetref_label")),a(4),p(&...
",f(12,15,"dashboard.sched.isearch"),"
thetvdb.com"),a(4),p("ngModel",e.metaPrefix),a(4),x("...
",f(21,17,"dashboard.sched.isearch"),"
tvmaze.com"),a(4),p("ngModel",e.metaPrefix),a(4),x("h...
+e.recRule.Title),ln),a(1),T("
",f(30,19,"dashboard.sched.isearch"),"
themoviedb.org"),a(3),T(" ",e.metaPrefix," \xa0
"),a(1),p("ngModel",e.recRule.Inetref),a(3),T("
",f(37,21,"dashboard.sched.inetref_desc"),"")}}function
eae(t,i){1&t&&(k(0,"p-message",105),m(1,"translate")),2&t&&x("text",f(1,1,"common.savesuccess"))}function
tae(t,i){if(1&t&&(k(0,"p-message",106),m(1,"translate")),2&t){const
e=d(3);La("text","",f(1,2,"common.backenderror"),":
",e.errortext,"")}}function nae(t,i){if(1&t){const
e=I();l(0,"div",100),_(1,eae,2,3,"p-message",101),_(2,tae,2,4,"p-message",102),c(),l(3,"p-button",103),C("onClick",function(){return
v(e),d(2).close()}),m(4,"translate"),c(),l(5,"p-button",104),C("onClick",function(){return
v(e),d(2).save()}),m(6,"translate"),c()}if(2&t){const
e=d(2),n=F(1);a(1),p("ngIf",e.successCount>0&&0==e.errorCount&&!n.dirty),a(1),p("ngIf",e.errorCount>0),a(1),x("label",f(4,5,"common.close")),a(2),x("label",f(6,7,"common.save")),p("disabled",!n.dirty||0==e.recRule.Id&&"
Not Recording"==e.recRule.Type||!e.recRule.Title)}}function
iae(t,i){if(1&t){const
e=I();l(0,"p-button",107),C("onClick",function(){return
v(e),d(2).close()}),m(1,"translate"),c(),l(2,"p-button",108),C("onClick",function(){return
v(e),d(2).displayUnsaved=!1}),m(3,"translate"),c()}2&t&&(x("label",f(1,2,"common.nosave")),a(2),x("label",f(3,4,"common.continue")))}const
sae=function(){return{height:"90vw",width:"700px"}},rae=function(){return["Power
Search","Manual
Search"]},OS=function(){return{minWidth:"400px",maxHeight:"400px",maxWidth:"640px"}};function
oae(t,i){if(1&t){const
e=I();l(0,"div")(1,"p-dialog",3),C("visibleChange",function(s){return
v(e),d().displayDlg=s}),m(2,"translate"),l(3,"p"),g(4),c(),l(5,"p"),g(6),c(),_(7,Voe,6,10,"div",4),l(8,"div",5)(9,"label",6),g(10),m(11,"translate"),c(),l(12,"p-dropdown",7,8),C("ngModelChange",function(s){return
v(e),d().recRule.SearchType=s})("onChange",function(){return
v(e),d().onSearchTypeChange()}),c()(),l(14,"div",5)(15,"label",9),g(16
),m(17,"translate"),c(),l(18,"textarea",10),C("ngModelChange",function(s){return
v(e),d().recRule.Title=s})("focusout",function(){return
v(e),d().onTitleBlur()}),g(19,"
"),c()(),_(20,Uoe,4,4,"div",4),l(21,"p"),_(22,zoe,2,2,"span",2),c(),_(23,Joe,8,8,"div",4),_(24,Yoe,5,0,"div",2),_(25,Zoe,17,30,"div",2),k(26,"p-divider"),l(27,"div",5)(28,"label",11),g(29),m(30,"translate"),c(),l(31,"p-dropdown",12,13),C("ngModelChange",function(s){return
v(e),d().recRule.Type=s}),c()(),l(33,"div",5)(34,"label",14),g(35),m(36,"translate"),c(),l(37,"p-dropdown",15,16),C("ngModelChange",function(s){return
v(e),d().recRule.RecGroup=s}),c()(),l(39,"div",5)(40,"p-checkbox",17,18),C("ngModelChange",function(s){return
v(e),d().recRule.Inactive=s}),m(42,"translate"),c()(),l(43,"div",5)(44,"label",19),g(45),m(46,"translate"),c(),l(47,"p-dropdown",20,21),C("ngModelChange",function(s){return
v(e),d().recRule.PlayGroup=s}),c()(),l(49,"div",5)(50,"label",22),g(51),m(52,"translate"),c(),l(53,"p-inpu
tNumber",23),C("ngModelChange",function(s){return
v(e),d().recRule.StartOffset=s}),c()(),l(54,"div",5)(55,"label",24),g(56),m(57,"translate"),c(),l(58,"p-inputNumber",25),C("ngModelChange",function(s){return
v(e),d().recRule.EndOffset=s}),c()(),l(59,"div",5)(60,"p-checkbox",26,27),C("ngModelChange",function(s){return
v(e),d().recRule.NewEpisOnly=s}),m(62,"translate"),c()(),l(63,"div",5)(64,"label",28),g(65),m(66,"translate"),c(),l(67,"p-inputNumber",29),C("ngModelChange",function(s){return
v(e),d().recRule.RecPriority=s}),c()(),l(68,"div",5)(69,"label",30),g(70),m(71,"translate"),c(),l(72,"p-dropdown",31,32),C("ngModelChange",function(s){return
v(e),d().recRule.PreferredInput=s}),c()(),l(74,"div",5)(75,"label",33),g(76),m(77,"translate"),c(),l(78,"p-dropdown",34,35),C("ngModelChange",function(s){return
v(e),d().recRule.DupMethod=s}),c()(),l(80,"div",5)(81,"label",36),g(82),m(83,"translate"),c(),l(84,"p-dropdown",37,38),C("ngModelChange",function(s){return
v(e),d().recRule.DupIn=s}),
c()(),l(86,"div",5)(87,"label",39),g(88),m(89,"translate"),c(),l(90,"p-dropdown",40,41),C("ngModelChange",function(s){return
v(e),d().recRule.AutoExtend=s}),c()(),l(92,"div",5)(93,"label",42),g(94),m(95,"translate"),c(),l(96,"p-multiSelect",43,44),C("ngModelChange",function(s){return
v(e),d().selectedFilters=s})("onChange",function(){v(e);const s=d();return
s.filterToRec(s.recRule)}),c()(),l(98,"div",5)(99,"label",45),g(100),m(101,"translate"),c(),l(102,"p-dropdown",46,47),C("ngModelChange",function(s){return
v(e),d().recRule.RecProfile=s}),c()(),l(104,"div",5)(105,"label",48),g(106),m(107,"translate"),c(),l(108,"p-dropdown",49,50),C("ngModelChange",function(s){return
v(e),d().recRule.StorageGroup=s}),c()(),l(110,"div",5)(111,"label",51),g(112),m(113,"translate"),c(),l(114,"p-inputNumber",52),C("ngModelChange",function(s){return
v(e),d().recRule.MaxEpisodes=s}),c()(),l(115,"div",5)(116,"p-checkbox",53,54),C("ngModelChange",function(s){return
v(e),d().recRule.MaxNewest=s}),m(118,"tra
nslate"),c(),l(119,"small",55),g(120),m(121,"translate"),c()(),l(122,"div",5)(123,"p-checkbox",56,57),C("ngModelChange",function(s){return
v(e),d().recRule.AutoExpire=s}),m(125,"translate"),c()(),l(126,"div",5)(127,"label",58),g(128),m(129,"translate"),c(),l(130,"p-multiSelect",59,60),C("ngModelChange",function(s){return
v(e),d().selectedPostProc=s})("onChange",function(){v(e);const s=d();return
s.postProcToRec(s.recRule)}),c()(),_(132,Xoe,39,23,"div",4),k(133,"br")(134,"br")(135,"br")(136,"br")(137,"br")(138,"br")(139,"br")(140,"br")(141,"br")(142,"br")(143,"br")(144,"br")(145,"br")(146,"br"),_(147,nae,7,9,"ng-template",61),c(),l(148,"p-dialog",62),C("visibleChange",function(s){return
v(e),d().displayUnsaved=s}),m(149,"translate"),l(150,"p"),g(151),m(152,"translate"),c(),_(153,iae,4,6,"ng-template",61),c()()}if(2&t){const
e=d();a(1),q(A(198,sae)),x("header",f(2,148,"dashboard.sched.heading")),p("visible",e.displayDlg)("modal",!0)("closable",!1)("closeOnEscape",!1),a(3),T("
",e.recR
ule.CallSign,""),a(2),yo("
",e.utility.formatDate(e.recRule.StartTime),"
",e.utility.formatTime(e.recRule.StartTime)," -
",e.utility.formatTime(e.recRule.EndTime),"
"),a(1),p("ngIf","Recording
Template"!=e.recRule.Type),a(3),S(f(11,150,"dashboard.sched.srchtype_label")),a(2),q(A(199,Di)),p("options",e.srchTypeList)("ngModel",e.recRule.SearchType)("editable",!1)("maxlength",0)("disabled",e.srchTypeDisabled),a(4),S(f(17,152,"dashboard.sched.title_label")),a(2),p("ngModel",e.recRule.Title)("disabled",-1==A(200,rae).indexOf(e.recRule.SearchType)&&"Recording
Template"!=e.recRule.Type||e.recRule.Id==(null==e.defaultTemplate?null:e.defaultTemplate.Id))("rows",e.titleRows),a(2),p("ngIf","Recording
Template"!=e.recRule.Type),a(2),p("ngIf",e.recRule.Season&&e.recRule.Episode),a(1),p("ngIf","Recording
Template"!=e.recRule.Type),a(1),p("ngIf","Power
Search"==e.recRule.SearchType),a(1),p("ngIf","Manual
Search"==e.recRule.SearchType),a(4),S(f(30,154,"dashboard.sched.type_label")),a(2),q(A(201,Di)
),p("options",e.typeList)("ngModel",e.recRule.Type)("editable",!1)("maxlength",0),a(4),S(f(36,156,"dashboard.sched.recgroup_label")),a(2),q(A(202,Di)),p("options",e.recGroups)("ngModel",e.recRule.RecGroup)("editable",!0)("maxlength",64),a(3),x("label",f(42,158,"dashboard.sched.active_label")),p("ngModel",e.recRule.Inactive)("binary",!0)("trueValue",!1)("falseValue",!0)("disabled",e.override),a(5),S(f(46,160,"dashboard.sched.playgroup_label")),a(2),q(A(203,Di)),p("options",e.playGroups)("ngModel",e.recRule.PlayGroup)("editable",!1)("maxlength",0),a(4),S(f(52,162,"dashboard.sched.startoffset_label")),a(2),p("ngModel",e.recRule.StartOffset)("showButtons",!0)("min",-480)("max",480)("step",1),a(3),S(f(57,164,"dashboard.sched.endoffset_label")),a(2),p("ngModel",e.recRule.EndOffset)("showButtons",!0)("min",-480)("max",480)("step",1),a(2),x("label",f(62,166,"dashboard.sched.newepis_label")),p("ngModel",e.recRule.NewEpisOnly)("binary",!0),a(5),S(f(66,168,"dashboard.sched.priority_label")),a(
2),p("ngModel",e.recRule.RecPriority)("showButtons",!0)("min",-100)("max",100)("step",1),a(3),S(f(71,170,"dashboard.sched.prefinput_label")),a(2),q(A(204,Di)),p("options",e.inputList.Inputs)("ngModel",e.recRule.PreferredInput)("editable",!1)("maxlength",0),a(4),S(f(77,172,"dashboard.sched.dupmethod_label")),a(2),q(A(205,Di)),p("options",e.dupMethodList)("ngModel",e.recRule.DupMethod)("editable",!1)("maxlength",0),a(4),S(f(83,174,"dashboard.sched.dupin_label")),a(2),q(A(206,Di)),p("options",e.dupInList)("ngModel",e.recRule.DupIn)("editable",!1)("maxlength",0),a(4),S(f(89,176,"dashboard.sched.autoextend_label")),a(2),q(A(207,Di)),p("options",e.autoExtendList)("ngModel",e.recRule.AutoExtend)("editable",!1)("maxlength",0),a(4),S(f(95,178,"dashboard.sched.filters_label")),a(2),q(A(208,OS)),p("options",e.recRuleFilters)("ngModel",e.selectedFilters),a(4),S(f(101,180,"dashboard.sched.recprofile_label")),a(2),q(A(209,Di)),p("options",e.recProfileList)("ngModel",e.recRule.RecProfile)("editabl
e",!1)("maxlength",0),a(4),S(f(107,182,"dashboard.sched.sgroup_label")),a(2),q(A(210,Di)),p("options",e.recStorageGroups)("ngModel",e.recRule.StorageGroup)("editable",!1)("maxlength",0),a(4),S(f(113,184,"dashboard.sched.maxeps_label")),a(2),p("ngModel",e.recRule.MaxEpisodes)("showButtons",!0)("min",0)("max",100)("step",1),a(2),x("label",f(118,186,"dashboard.sched.maxnewest_label")),p("ngModel",e.recRule.MaxNewest)("binary",!0),a(4),T("
",f(121,188,"dashboard.sched.maxnewest_desc"),"
"),a(3),x("label",f(125,190,"dashboard.sched.autoexpire_label")),p("ngModel",e.recRule.AutoExpire)("binary",!0),a(5),S(f(129,192,"dashboard.sched.postproc_label")),a(2),q(A(211,OS)),p("options",e.postProcList)("ngModel",e.selectedPostProc)("filter",!0),a(2),p("ngIf","Recording
Template"!=e.recRule.Type),a(16),x("header",f(149,194,"common.unsaved_heading")),p("visible",e.displayUnsaved)("modal",!0),a(3),S(f(152,196,"common.unsaved_message"))}}let
Rd=(()=>{class t{constructor(e,n,s,r,o){this.dvrService=e,t
his.translate=n,this.mythService=s,this.utility=r,this.channelService=o,this.displayDlg=!1,this.displayUnsaved=!1,this.loadCount=0,this.successCount=0,this.errorCount=0,this.errortext="",this.htmlRegex=new
RegExp("<TITLE>|</TITLE>"),this.srchTypeDisabled=!0,this.titleRows=1,this.subTitleRows=1,this.descriptionRows=5,this.override=!1,this.reqDate=new
Date,this.reqDuration=60,this.recRules=[],this.playGroups=[],this.recGroups=[],this.recStorageGroups=[],this.inputList={Inputs:[]},this.recRuleFilters=[],this.selectedFilters=[],this.templates=[],this.typeList=[],this.allChannels=[],this.srchTypeList=[{prompt:this.translate.instant("recrule.srch_None"),value:"None"},{prompt:this.translate.instant("recrule.srch_PowerSearch"),value:"Power
Search"},{prompt:this.translate.instant("recrule.srch_TitleSearch"),value:"Title
Search"},{prompt:this.translate.instant("recrule.srch_KeywordSearch"),value:"Keyword
Search"},{prompt:this.translate.instant("recrule.srch_PeopleSearch"),value:"People
Search
"},{prompt:this.translate.instant("recrule.srch_ManualSearch"),value:"Manual
Search"}],this.dupMethodList=[{prompt:this.translate.instant("dashboard.sched.dupmethod.none"),value:"None"},{prompt:this.translate.instant("dashboard.sched.dupmethod.s_and_d"),value:"Subtitle
and
Description"},{prompt:this.translate.instant("dashboard.sched.dupmethod.s_then_d"),value:"Subtitle
then
Description"},{prompt:this.translate.instant("dashboard.sched.dupmethod.s"),value:"Subtitle"},{prompt:this.translate.instant("dashboard.sched.dupmethod.d"),value:"Description"}],this.dupInList=[{prompt:this.translate.instant("dashboard.sched.dupin.both"),value:"All
Recordings"},{prompt:this.translate.instant("dashboard.sched.dupin.curr"),value:"Current
Recordings"},{prompt:this.translate.instant("dashboard.sched.dupin.prev"),value:"Previous
Recordings"}],this.autoExtendList=[{prompt:this.translate.instant("dashboard.sched.extend_none"),value:"None"},{prompt:"ESPN",value:"ESPN"},{prompt:"MLB",value:"MLB"}],this.r
ecProfileList=[{prompt:this.translate.instant("dashboard.sched.recprof.default"),value:"Default"},{prompt:this.translate.instant("dashboard.sched.recprof.livetv"),value:"Live
TV"},{prompt:this.translate.instant("dashboard.sched.recprof.highq"),value:"High
Quality"},{prompt:this.translate.instant("dashboard.sched.recprof.lowq"),value:"Low
Quality"}],this.postProcList=[{prompt:this.translate.instant("dashboard.sched.postproc.autocommflag"),value:"AutoCommflag"},{prompt:this.translate.instant("dashboard.sched.postproc.autometalookup"),value:"AutoMetaLookup"},{prompt:this.translate.instant("dashboard.sched.postproc.autotranscode"),value:"AutoTranscode"},{prompt:"1",value:"AutoUserJob1"},{prompt:"2",value:"AutoUserJob2"},{prompt:"3",value:"AutoUserJob3"},{prompt:"4",value:"AutoUserJob4"}],this.selectedPostProc=[],this.metaPrefix="",this.templateId=0,this.saveObserver={next:u=>{this.recRule?this.recRule.Id&&u.bool?(this.successCount++,this.currentForm.form.markAsPristine(),setTimeout(()=>
this.inter.summaryComponent.refresh(),3e3),"Not
Recording"==this.recRule.Type&&(this.recRule.Id=0)):!this.recRule.Id&&u.uint?(this.successCount++,this.currentForm.form.markAsPristine(),setTimeout(()=>this.inter.summaryComponent.refresh(),3e3),this.recRule.Id=u.uint):(this.errorCount++,this.currentForm.form.markAsDirty()):(console.log("ERROR:
recRule is
undefined"),this.errorCount++)},error:u=>{if(console.error(u),400==u.status){let
h=u.error.split(this.htmlRegex);h.length>1&&(this.errortext=h[1])}this.errorCount++,this.currentForm.form.markAsDirty()}}}ngOnInit(){this.inter.sched=this}loadLists(){let
e;this.recRules=[],this.playGroups=[],this.recGroups=[],this.recStorageGroups=[],this.inputList.Inputs=[],this.recRuleFilters=[],this.loadCount=0,this.errorCount=0,this.dvrService.GetRecordScheduleList({}).subscribe({next:n=>{this.recRules=n.RecRuleList.RecRules,this.loadSuccess()},error:n=>this.loadFail()}),this.dvrService.GetPlayGroupList().subscribe({next:n=>{this.playGroups=n.PlayGro
upList,this.playGroups.unshift("Default"),this.loadSuccess()},error:n=>this.loadFail()}),this.dvrService.GetRecGroupList().subscribe({next:n=>{this.recGroups=n.RecGroupList,this.loadSuccess()},error:n=>this.loadFail()}),this.dvrService.GetRecStorageGroupList().subscribe({next:n=>{this.recStorageGroups=n.RecStorageGroupList,this.loadSuccess()},error:n=>this.loadFail()}),this.dvrService.GetInputList().subscribe({next:n=>{this.inputList=n.InputList,this.inputList.Inputs.unshift({Id:0,CardId:0,SourceId:0,InputName:"",DisplayName:this.translate.instant("dashboard.sched.input_any"),QuickTune:!1,RecPriority:0,ScheduleOrder:0,LiveTVOrder:0}),this.loadSuccess()},error:n=>this.loadFail()}),this.dvrService.GetRecRuleFilterList().subscribe({next:n=>{this.recRuleFilters=n.RecRuleFilterList.RecRuleFilters,this.loadSuccess()},error:n=>this.loadFail()});for(let
n=1;n<5;n++)e=this.translate.instant("settings.services.job_default",{num:n}),this.mythService.GetSetting({HostName:"_GLOBAL_",Key:"UserJob
Desc"+n,Default:e}).subscribe({next:s=>{this.postProcList[n+2].prompt=s.String,this.loadSuccess()},error:()=>this.loadFail()});this.channelService.GetChannelInfoList({Details:!0}).subscribe(n=>{this.allChannels=n.ChannelInfoList.ChannelInfos,this.allChannels.forEach(s=>s.Description=s.ChanNum+"
"+s.ChannelName+"
("+s.CallSign+")"),this.loadSuccess()})}loadSuccess(){this.loadCount++,11==this.loadCount&&(this.loadCount=0,this.setupData(),this.displayDlg=!0,this.currentForm.form.markAsPristine())}loadFail(){this.errorCount++}open(e,n,s){this.templateId=0,this.reqProgram=e,this.reqChannel=n,this.reqRecRule=s,this.titleRows=1,e||s?(this.srchTypeDisabled=!0,this.srchTypeList[0].inactive=!1):(this.srchTypeDisabled=!1,this.srchTypeList[0].inactive=!0),this.loadLists()}setupData(){let
e=!1;this.program=this.reqProgram;let
n="";this.reqRecRule&&(n=this.reqRecRule.Type),this.reqRecRule?["Override
Recording","Do not
Record"].indexOf(n)>-1&&!this.reqRecRule.Id?(e=!0,this.recRule=void
0):this.rec
Rule=Object.assign({},this.reqRecRule):this.recRule=void
0,this.reqChannel?this.channel=this.reqChannel:this.reqRecRule&&(this.channel=this.allChannels.find(r=>{var
o;return r.ChanId==(null===(o=this.reqRecRule)||void 0===o?void
0:o.ChanId)})),this.program&&!this.channel&&this.program.Channel&&(this.channel=this.program.Channel);var
s=0;if(this.typeList=[],this.templates=[{Id:0,Title:""}],this.defaultTemplate=void
0,this.program&&this.program.Recording&&!e&&(s=this.program.Recording.RecordId),this.recRules.forEach((r,o)=>{r.Id==s&&(this.recRule=r,n=this.recRule.Type),"Recording
Template"==r.Type&&(this.templates.push(r),"Default"==r.Category&&(this.defaultTemplate=r))}),this.recRule||(this.recRule={Id:0}),this.recRule.Title||(this.recRule.Title="",this.recRule.SubTitle="",this.recRule.Description="",this.defaultTemplate&&this.mergeTemplate(this.recRule,this.defaultTemplate)),this.recRule.SearchType||(this.recRule.SearchType="None"),this.program&&this.channel&&"None"==this.recRule.Se
archType&&this.mergeProgram(this.recRule,this.program,this.channel),e&&(this.recRule.ParentId=this.program.Recording.RecordId),n||(n="Not
Recording"),!this.recRule.StartTime){let r=new
Date;this.recRule.StartTime=r.toISOString(),this.recRule.FindDay=(r.getDay()+1)%7,this.recRule.FindTime=r.toTimeString().slice(0,8)}this.filterFromRec(this.recRule),this.postProcFromRec(this.recRule),this.recRule.Type=n,this.setupTypeList(this.recRule),this.srchTypeDisabled||this.onSearchTypeChange(),this.override&&(this.recRule.Inactive=!1),setTimeout(()=>{this.recRule&&(this.recRule.Type=n),this.currentForm.form.markAsPristine()},10)}setupTypeList(e){let
n=e.Type;if(this.typeList.length=0,this.override=!1,"Recording
Template"==n)this.typeList.push({prompt:this.translate.instant("dashboard.sched.type.mod_template"),value:"Recording
Template"}),"Default"!=e.Category&&e.Id>0&&this.typeList.push({prompt:this.translate.instant("dashboard.sched.type.del_template"),value:"Not
Recording"});else if(["Overrid
e Recording","Do not
Record"].indexOf(n)>-1)this.override=!0,this.typeList.push({prompt:this.translate.instant("dashboard.sched.type.del_override"),value:"Not
Recording"},{prompt:this.translate.instant("dashboard.sched.type.rec_override"),value:"Override
Recording"},{prompt:this.translate.instant("dashboard.sched.type.dont_rec_override"),value:"Do
not Record"});else{const s="Manual
Search"==e.SearchType,r="None"!=e.SearchType;this.typeList.push({prompt:this.translate.instant("dashboard.sched.type.not"),value:"Not
Recording"}),(e.CallSign&&!r||s)&&this.typeList.push({prompt:this.translate.instant("dashboard.sched.type.this"),value:"Single
Record"}),s||this.typeList.push({prompt:this.translate.instant("dashboard.sched.type.one"),value:"Record
One"}),(!e.CallSign||r)&&this.typeList.push({prompt:this.translate.instant("dashboard.sched.type.weekly"),value:"Record
Weekly"},{prompt:this.translate.instant("dashboard.sched.type.daily"),value:"Record
Daily"}),s||this.typeList.push({prompt:thi
s.translate.instant("dashboard.sched.type.all"),value:"Record
All"})}-1==this.typeList.findIndex(s=>s.value==e.Type)&&(e.Type=this.typeList[0].value)}mergeProgram(e,n,s){e.Title=n.Title,e.SubTitle=n.SubTitle,e.Description=n.Description,e.Category=n.Category,e.StartTime=n.StartTime,e.EndTime=n.EndTime,e.SeriesId=n.SeriesId,e.ProgramId=n.ProgramId,e.ChanId=s.ChanId,e.CallSign=s.CallSign,e.Season=n.Season,e.Episode=n.Episode;let
r=new
Date(e.StartTime);e.FindDay=(r.getDay()+1)%7,e.FindTime=r.toTimeString().slice(0,8)}filterFromRec(e){this.selectedFilters=[],this.recRuleFilters.forEach(n=>{0!=(e.Filter&1<<n.Id)&&this.selectedFilters.push(n.Id)})}filterToRec(e){e.Filter=0,this.selectedFilters.forEach(n=>{e.Filter|=1<<n})}postProcFromRec(e){this.selectedPostProc=[];let
n=e;this.postProcList.forEach(s=>{n[s.value]&&this.selectedPostProc.push(s.value)})}postProcToRec(e){let
n=e;this.postProcList.forEach(s=>n[s.value]=!1),this.selectedPostProc.forEach(s=>n[s]=!0)}iCheckbox(e){e.Inetref||(e.I
netref=""),e.Inetref=e.Inetref.includes(".py_")?e.Inetref.replace(/^.*\.py_/,this.metaPrefix):this.metaPrefix+e.Inetref}iText(e){this.metaPrefix=e.Inetref.replace(/_.*/,"_"),this.metaPrefix.endsWith(".py_")||(this.metaPrefix="")}templateChange(e){if(this.templateId){const
n=this.templates.find(s=>s.Id==this.templateId);n&&this.mergeTemplate(e,n)}}onSearchTypeChange(){this.recRule&&(this.recRule.Title="",this.reqDate=new
Date,this.reqDate.setMinutes(0),this.reqDate.setSeconds(0,0),this.reqDuration=60,this.onDateChange(),"Manual
Search"==this.recRule.SearchType&&(this.recRule.Description="",setTimeout(()=>this.onChannelChange(),100)),this.subTitleRows="Power
Search"==this.recRule.SearchType?5:1,this.descriptionRows=["None","Power
Search"].indexOf(this.recRule.SearchType)>-1?5:1,this.recRule.SubTitle="",this.recRule.Description="",this.setupTypeList(this.recRule)),this.onTitleBlur(),this.onDescriptionBlur()}onTitleBlur(){if(this.recRule){if(this.recRule.Title=this.recRule.Title.trim(),
this.recRule.Title.length>0){let e;["Manual Search","Power
Search"].indexOf(this.recRule.SearchType)>-1&&this.recRule.Title.length>0&&(e="("+this.trSearch(this.recRule.SearchType)+")"),"Recording
Template"==this.recRule.Type&&this.recRule.Title.length>0&&(e="("+this.translate.instant("recrule.template")+")"),e&&-1==this.recRule.Title.indexOf(e)&&(this.recRule.Title=this.recRule.Title+"
"+e)}"Manual
Search"==this.recRule.SearchType&&(this.recRule.Description=this.recRule.Title)}}onDescriptionBlur(){this.recRule&&(this.recRule.Description=this.recRule.Description.trim(),["Title
Search","Keyword Search","People
Search"].indexOf(this.recRule.SearchType)>-1&&(this.recRule.Title=this.recRule.Description.length>0?this.recRule.Description+"
("+this.trSearch(this.recRule.SearchType)+")":""))}onChannelChange(){this.recRule&&this.channel&&(this.recRule.ChanId=this.channel.ChanId,this.recRule.CallSign=this.channel.CallSign)}onDateChange(){this.recRule&&(this.recRule.StartTime=this.reqDate.toISO
String(),this.recRule.FindDay=(this.reqDate.getDay()+1)%7,this.recRule.FindTime=this.reqDate.toTimeString().slice(0,8),this.onDurationChange())}onDurationChange(){if(this.recRule){let
e=new Date(this.recRule.StartTime),n=new
Date(e.getTime()+6e4*this.reqDuration);this.recRule.EndTime=n.toISOString()}}trSearch(e){return
this.translate.instant("recrule.srch_"+e.replace("
",""))}mergeTemplate(e,n){e.Inactive=n.Inactive,e.RecPriority=n.RecPriority,e.PreferredInput=n.PreferredInput,e.StartOffset=n.StartOffset,e.EndOffset=n.EndOffset,e.DupMethod=n.DupMethod,e.DupIn=n.DupIn,e.NewEpisOnly=n.NewEpisOnly,e.Filter=n.Filter,e.RecProfile=n.RecProfile,e.RecGroup=n.RecGroup,e.StorageGroup=n.StorageGroup,e.PlayGroup=n.PlayGroup,e.AutoExpire=n.AutoExpire,e.MaxEpisodes=n.MaxEpisodes,e.MaxNewest=n.MaxNewest,e.AutoCommflag=n.AutoCommflag,e.AutoMetaLookup=n.AutoMetaLookup,e.AutoTranscode=n.AutoTranscode,e.AutoUserJob1=n.AutoUserJob1,e.AutoUserJob2=n.AutoUserJob2,e.AutoUserJob3=n.AutoUserJob3,e.AutoUserJ
ob4=n.AutoUserJob4,e.Transcoder=n.Transcoder,this.postProcFromRec(e),this.filterFromRec(e)}close(){!this.recRule||0==this.recRule.Id&&"Not
Recording"==this.recRule.Type?this.displayDlg=!1:this.currentForm.dirty?this.displayUnsaved?(this.displayUnsaved=!1,this.displayDlg=!1,this.currentForm.form.markAsPristine()):this.displayUnsaved=!0:(this.displayDlg=!1,this.displayUnsaved=!1)}save(){if(this.errortext="",this.recRule&&(0!=this.recRule.Id||"Not
Recording"!=this.recRule.Type))if(this.errorCount=0,this.successCount=0,this.recRule.Id>0&&"Not
Recording"==this.recRule.Type)this.dvrService.RemoveRecordSchedule(this.recRule.Id).subscribe(this.saveObserver);else
if(this.recRule.Id>0){const
e=this.createRequest(this.recRule);e.RecordId=this.recRule.Id,this.dvrService.UpdateRecordSchedule(e).subscribe(this.saveObserver)}else{const
e=this.createRequest(this.recRule);this.dvrService.AddRecordSchedule(e).subscribe(this.saveObserver)}}createRequest(e){return{Title:e.Title,Subtitle:e.SubTitle,Desc
ription:e.Description,Category:e.Category,StartTime:e.StartTime,EndTime:e.EndTime,SeriesId:e.SeriesId,ProgramId:e.ProgramId,ChanId:e.ChanId,Station:e.CallSign,FindDay:e.FindDay,FindTime:e.FindTime,ParentId:e.ParentId,Inactive:e.Inactive,Season:e.Season,Episode:e.Episode,Inetref:e.Inetref,Type:e.Type,SearchType:e.SearchType,RecPriority:e.RecPriority,PreferredInput:e.PreferredInput,StartOffset:e.StartOffset,EndOffset:e.EndOffset,LastRecorded:e.LastRecorded,DupMethod:e.DupMethod,DupIn:e.DupIn,NewEpisOnly:e.NewEpisOnly,Filter:e.Filter,RecProfile:e.RecProfile,RecGroup:e.RecGroup,StorageGroup:e.StorageGroup,PlayGroup:e.PlayGroup,AutoExpire:e.AutoExpire,MaxEpisodes:e.MaxEpisodes,MaxNewest:e.MaxNewest,AutoCommflag:e.AutoCommflag,AutoTranscode:e.AutoTranscode,AutoMetaLookup:e.AutoMetaLookup,AutoUserJob1:e.AutoUserJob1,AutoUserJob2:e.AutoUserJob2,AutoUserJob3:e.AutoUserJob3,AutoUserJob4:e.AutoUserJob4,Transcoder:e.Transcoder,AutoExtend:e.AutoExtend}}URLencode(e){return
encodeURI(e)}confirm(e)
{return
oe(window.confirm(e))}canDeactivate(){return!this.currentForm||!this.currentForm.dirty||this.confirm(this.translate.instant("settings.common.warning"))}onWindowClose(e){this.currentForm&&this.currentForm.dirty&&(e.preventDefault(),e.returnValue=!1)}}return
t.\u0275fac=function(e){return
new(e||t)(D(jo),D(Oe),D(qt),D(cs),D(Or))},t.\u0275cmp=z({type:t,selectors:[["app-schedule"]],viewQuery:function(e,n){if(1&e&&W(Noe,5),2&e){let
s;V(s=B())&&(n.currentForm=s.first)}},hostBindings:function(e,n){1&e&&C("beforeunload",function(r){return
n.onWindowClose(r)},!1,ni)},inputs:{inter:"inter"},decls:3,vars:1,consts:[["name","schedform",1,"ml-3","mr-3"],["schedform","ngForm"],[4,"ngIf"],[3,"header","visible","modal","closable","closeOnEscape","visibleChange"],["class","form-group
field",4,"ngIf"],[1,"form-group","field"],["for","SearchType",1,"label","block"],["optionLabel","prompt","optionValue","value","name","SearchType","optionDisabled","inactive",3,"options","ngModel","editable","max
length","disabled","ngModelChange","onChange"],["SearchType","ngModel"],["for","Title",1,"label","block"],["pInputTextArea","","id","Title","name","Title",1,"text-lg","mb-2","form-control","w-full",3,"ngModel","disabled","rows","ngModelChange","focusout"],["for","Type",1,"label","block"],["optionLabel","prompt","optionValue","value","name","Type",3,"options","ngModel","editable","maxlength","ngModelChange"],["Type","ngModel"],["for","RecGroup",1,"label","block"],["name","RecGroup",3,"options","ngModel","editable","maxlength","ngModelChange"],["RecGroup","ngModel"],["inputId","Active","name","Active",1,"label","mb-2","w-full",3,"ngModel","binary","label","trueValue","falseValue","disabled","ngModelChange"],["Active","ngModel"],["for","PlayGroup",1,"label","block"],["PlayGroup","Type","name","PlayGroup",3,"options","ngModel","editable","maxlength","ngModelChange"],["PlayGroup","ngModel"],["for","StartOffset",1,"label","block"],["name","StartOffset","id","StartOffset",3,"ngModel","show
Buttons","min","max","step","ngModelChange"],["for","EndOffset",1,"label","block"],["name","EndOffset","id","EndOffset",3,"ngModel","showButtons","min","max","step","ngModelChange"],["inputId","NewEpisOnly","name","NewEpisOnly",1,"label","mb-2","w-full",3,"ngModel","binary","label","ngModelChange"],["UseEIT","ngModel"],["for","RecPriority",1,"label","block"],["name","RecPriority","id","RecPriority",3,"ngModel","showButtons","min","max","step","ngModelChange"],["for","PreferredInput",1,"label","block"],["optionLabel","DisplayName","optionValue","Id","name","PreferredInput",3,"options","ngModel","editable","maxlength","ngModelChange"],["PreferredInput","ngModel"],["for","DupMethod",1,"label","block"],["optionLabel","prompt","optionValue","value","name","DupMethod",3,"options","ngModel","editable","maxlength","ngModelChange"],["DupMethod","ngModel"],["for","DupIn",1,"label","block"],["optionLabel","prompt","optionValue","value","name","DupIn",3,"options","ngModel","editable","maxlength
","ngModelChange"],["DupIn","ngModel"],["for","AutoExtend",1,"label","block"],["optionLabel","prompt","optionValue","value","name","AutoExtend",3,"options","ngModel","editable","maxlength","ngModelChange"],["AutoExtend","ngModel"],["for","Filters",1,"label","block"],["optionLabel","Description","optionValue","Id","name","Filters",3,"options","ngModel","ngModelChange","onChange"],["Filters","ngModel"],["for","RecProfile",1,"label","block"],["optionLabel","prompt","optionValue","value","name","RecProfile",3,"options","ngModel","editable","maxlength","ngModelChange"],["RecProfile","ngModel"],["for","StorageGroup",1,"label","block"],["name","StorageGroup",3,"options","ngModel","editable","maxlength","ngModelChange"],["StorageGroup","ngModel"],["for","MaxEpisodes",1,"label","block"],["name","MaxEpisodes","id","MaxEpisodes",3,"ngModel","showButtons","min","max","step","ngModelChange"],["inputId","MaxNewest","name","MaxNewest",1,"label","mb-2","w-full",3,"ngModel","binary","label","ngModel
Change"],["MaxNewest","ngModel"],[1,"block"],["inputId","AutoExpire","name","AutoExpire",1,"label","mb-2","w-full",3,"ngModel","binary","label","ngModelChange"],["AutoExpire","ngModel"],["for","PostProc",1,"label","block"],["optionLabel","prompt","optionValue","value","name","PostProc",3,"options","ngModel","filter","ngModelChange","onChange"],["PostProc","ngModel"],["pTemplate","footer"],[3,"header","visible","modal","visibleChange"],["for","Template",1,"label","block"],["optionLabel","Title","optionValue","Id","name","Template",1,"pr-2",3,"options","ngModel","editable","maxlength","ngModelChange","onClick","onChange"],["Template","ngModel"],["for","SubTitle","class","label
block",4,"ngIf"],["pInputTextArea","","id","SubTitle","name","SubTitle","class","text-lg
mb-2 form-control
w-full",3,"ngModel","disabled","rows","ngModelChange",4,"ngIf"],["for","SubTitle",1,"label","block"],["pInputTextArea","","id","SubTitle","name","SubTitle",1,"text-lg","mb-2","form-control","w-full",3,"ngMo
del","disabled","rows","ngModelChange"],[3,"ngSwitch"],["for","Description","class","label
block
mb-2",4,"ngSwitchCase"],["for","Description","class","label
block
mb-2",4,"ngSwitchDefault"],["pInputTextArea",&qu...
],["for","Inetref",1,"label","block"],[1,"grid","p-0"],[1,"col-3","flex","align-items-center"],["name","prefix","value","ttvdb4.py_","inputId","ttvdb",3,"ngModel","ngModelChange"],["for","ttvdb"],["src","images/metadata/thetvdb.png","alt","thtvdb","height","40",1,"pl-1"],[1,"col-9","flex","align-items-center"],["target","_blank",3,"href"],[1,"col-5","flex","align-items-center"],["name","prefix","value","tvmaze.py_","inputId","tvmaze",3,"ngModel","ngModelChange"],["for","tvmaze"],["src","images/metadata/tvmaze.png","alt","tvmaze","height","40",1,"pl-1"],[1,"col-7","flex","align-items-center"],["name","prefix","value","tmdb3.py_","inputId","tmdb",3,"ngModel","ngModelChange"],["for","tmdb"],["src","images/metadata/themoviedb.svg","alt","themoviedb","height","40",1,"pl-1"],["pInputText","","id","Inetref","name","Inetref",1,"mb-2","form-control","w-full",3,"ngModel","ngModelChange"],["Inetref","ngModel"],[1,"col-12",2,"text-align","left"],["severity","success",3,"text",4,"ngIf"],["severi
ty","error",3,"text",4,"ngIf"],["icon","pi
pi-times-circle","styleClass","p-button-warning",3,"label","onClick"],["icon","pi
pi-check-circle","styleClass","p-button-success",3,"label","disabled","onClick"],["severity","success",3,"text"],["severity","error",3,"text"],["icon","pi
pi-times-circle","styleClass","p-button-danger",3,"label","onClick"],["icon","pi
pi-check-circle","styleClass","p-button-success",3,"label","onClick"]],template:function(e,n){1&e&&(l(0,"form",0,1),_(2,oae,154,212,"div",2),c()),2&e&&(a(2),p("ngIf",n.recRule))},directives:[ze,Ue,He,Q,bn,Ot,Te,_e,_n,Ye,gr,Ja,km,x7,xr,pt,sn,X2,Sd,ne,qe,ve],pipes:[ce],styles:[""]}),t})();function
aae(t,i){if(1&t){const
e=I();l(0,"p-checkbox",27,28),C("onChange",function(s){return
v(e).filterCallback(s.checked)}),m(2,"translate"),c()}if(2&t){const
e=i.$implicit;Bn("label","",f(2,3,"dashboard.upcoming.showall"),"
"),p("ngModel",e)("binary",!0)}}function
lae(t,i){if(1&t){const
e=I();l(0,"p-dropdown",29),C("onChange",function(s){retu
rn v(e).filterCallback(s.value)}),m(1,"translate"),c()}if(2&t){const
e=i.$implicit,n=d(2);x("placeholder",f(1,4,"settings.chanedit.all")),p("ngModel",e)("options",n.recRules)("showClear",!0)}}const
cae=function(){return{width:"2rem",height:"2rem"}};function
uae(t,i){1&t&&(l(0,"div"),k(1,"p-progressSpinner"),c()),2&t&&(a(1),q(A(2,cae)))}function
dae(t,i){if(1&t){const
e=I();l(0,"button",30),C("click",function(){return
v(e),d(2).refresh()}),m(1,"translate"),c()}2&t&&x("pTooltip",f(1,1,"common.refresh"))}function
pae(t,i){if(1&t&&(l(0,"tr")(1,"th")(2,"p-columnFilter",10),_(3,aae,3,5,"ng-template",11),c(),g(4),m(5,"translate"),l(6,"p-columnFilter",12),_(7,lae,2,6,"ng-template",11),c(),_(8,uae,2,3,"div",13),_(9,dae,2,3,"ng-template",null,14,we),g(11),c()(),l(12,"tr")(13,"th",15),g(14),m(15,"translate"),c(),l(16,"th",16),g(17),m(18,"translate"),c(),k(19,"th",17),l(20,"th",18),g(21),m(22,"translate"),c(),l(23,"th",19),g(24),m(25,"translate"),c(),l(26,"th",20),g(27),m(28,"translate"),c(),l(
29,"th",21),g(30),m(31,"translate"),c(),l(32,"th",15),g(33),m(34,"translate"),c(),l(35,"th",22),g(36),m(37,"translate"),c(),l(38,"th",18),g(39),m(40,"translate"),c(),l(41,"th",23),g(42),m(43,"translate"),c(),l(44,"th",24),k(45,"button",25),c(),l(46,"th",24),k(47,"button",26),c()()),2&t){const
e=F(10),n=d();a(2),p("showMenu",!1)("showClearButton",!1),a(2),T("
\xa0\xa0\xa0\xa0\xa0 ",f(5,20,"dashboard.upcoming.recrule"),": \xa0
"),a(2),p("showMenu",!1)("showClearButton",!1),a(2),p("ngIf",n.refreshing)("ngIfElse",e),a(3),T("
\xa0\xa0\xa0",n.programs.length," Rows "),a(3),T("
",f(15,22,"dashboard.upcoming.date")," "),a(3),T("
",f(18,24,"dashboard.upcoming.time"),"
"),a(4),T("",f(22,26,"dashboard.upcoming.encoder"),"
"),a(3),T("
",f(25,28,"dashboard.recordings.title"),""),a(3),S(f(28,30,"dashboard.recordings.subtitle")),a(3),S(f(31,32,"dashboard.recordings.seas_ep")),a(3),T("
",f(34,34,"dashboard.recordings.orig_airdate"),"
"),a(3),S(f(37,36,"dashboard.recordings.channel")),a(3),T("
",f(4
0,38,"dashboard.recordings.recgrp")," "),a(3),T("
",f(43,40,"dashboard.upcoming.status"),"
"),a(3),p("disabled",!0),a(2),p("disabled",!0)}}function
hae(t,i){if(1&t&&(l(0,"div"),g(1),c()),2&t){const
e=d().$implicit;a(1),We(" ",e.Season,"x",e.Episode,"
")}}const
mae=function(){return["WillRecord","Recording","Recorded"]};function
fae(t,i){if(1&t&&(l(0,"div",42),g(1),c()),2&t){const
e=d().$implicit,n=d();p("ngClass",A(2,mae).indexOf(e.Recording.StatusName)>-1?"text-green-500":"text-pink-500"),a(1),T("
",n.dataService.recStatusText[e.Recording.StatusName]," ")}}function
gae(t,i){if(1&t){const
e=I();l(0,"button",43),C("click",function(){v(e);const
s=d().$implicit;return
d().stopRequest(s)}),m(1,"translate"),c()}2&t&&x("pTooltip",f(1,1,"dashboard.recordings.stop_recording"))}function
_ae(t,i){if(1&t){const
e=I();l(0,"button",44),C("click",function(){v(e);const
s=d().$implicit;return
d().override(s)}),m(1,"translate"),c()}2&t&&x("pTooltip",f(1,1,"dashboard.recordings.override_rule"))}const
bae=function(){return["Recording","Failing"]};function
vae(t,i){if(1&t){const
e=I();l(0,"tr")(1,"td",31),k(2,"div",32),c(),l(3,"td",33),g(4),c(),l(5,"td",34),g(6),m(7,"number"),c(),l(8,"td",18),g(9),c(),l(10,"td",35),g(11),c(),l(12,"td",36),g(13),c(),l(14,"td",21),_(15,hae,2,2,"div",37),c(),l(16,"td",15),k(17,"div",32),c(),l(18,"td",22),g(19),c(),l(20,"td",18),g(21),c(),l(22,"td",23),_(23,fae,2,3,"div",38),c(),l(24,"td",24),_(25,gae,2,3,"button",39),_(26,_ae,2,3,"ng-template",null,40,we),c(),l(28,"td",24)(29,"button",41),C("click",function(){const
r=v(e).$implicit;return
d().updateRecRule(r)}),m(30,"translate"),c()()()}if(2&t){const
e=i.$implicit,n=F(27),s=d();a(2),p("innerHTML",s.formatStartDate(e),Bt),a(2),T("
",s.formatStartTime(e),""),a(2),T("
",Dt(7,17,s.getDuration(e),"1.0-0"),"
min"),a(3),T("",e.Recording.EncoderName," "),a(2),T("
",e.Title,""),a(1),x("pTooltip",e.Description),a(1),T("
",e.SubTitle.slice(0,50),""),a(2),p("ngIf",e.Season>0||e.Episode>0),a(2),p("innerHTML",s.f
ormatAirDate(e),Bt),a(2),We(" ",e.Channel.ChanNum,"
",e.Channel.CallSign,""),a(2),S(e.Recording.RecGroup),a(2),p("ngIf",e.Recording),a(2),p("ngIf",A(22,bae).indexOf(e.Recording.StatusName)>-1)("ngIfElse",n),a(4),x("pTooltip",f(30,20,"dashboard.recordings.edit_rule")),p("disabled",e.Recording&&7==e.Recording.RecType)}}function
Cae(t,i){1&t&&(k(0,"p-message",49),m(1,"translate")),2&t&&x("text",f(1,1,"common.networkfail"))}function
yae(t,i){if(1&t){const
e=I();l(0,"div",45),_(1,Cae,2,3,"p-message",46),c(),l(2,"p-button",47),C("onClick",function(){return
v(e),d().displayStop=!1}),m(3,"translate"),c(),l(4,"p-button",48),C("onClick",function(){v(e);const
s=d();return s.stopRecording(s.program)}),m(5,"translate"),c()}if(2&t){const
e=d();a(1),p("ngIf",e.errorCount>0),a(1),x("label",f(3,3,"common.close")),a(2),x("label",f(5,5,"dashboard.recordings.stop_recording"))}}let
wae=(()=>{class
t{constructor(e,n,s,r,o){this.dvrService=e,this.messageService=n,this.translate=s,this.dataService=r,this.u
tility=o,this.programs=[],this.recRules=[],this.allRecRules=[],this.activeRecRules=[],this.defaultRecRule={Id:0,Title:"settings.chanedit.all"},this.displayUpdateDlg=!1,this.showAllStatuses=!1,this.refreshing=!1,this.loaded=!1,this.inter={summaryComponent:this},this.displayStop=!1,this.errorCount=0,this.translate.get(this.defaultRecRule.Title).subscribe(u=>this.defaultRecRule.Title=u),this.loadRecRules()}ngOnInit(){}refresh(){this.refreshing=!0,this.loadRecRules(),this.loadLazy(this.lazyLoadEvent)}loadRecRules(){this.dvrService.GetRecordScheduleList({}).subscribe({next:e=>{this.allRecRules.length=0,this.allRecRules.push(this.defaultRecRule),this.activeRecRules.length=0,this.activeRecRules.push(this.defaultRecRule),e.RecRuleList.RecRules.forEach(n=>{if("Recording
Template"!=n.Type){let s={Id:n.Id,Title:n.Title.substring(0,30)+"
["+this.utility.recTypeTrans[n.Type]+"]"};this.allRecRules.push(s),n.NextRecording&&this.activeRecRules.push(s)}})}})}loadLazy(e){this.lazyLoadEvent=e;let
n={S
tartIndex:0,Count:1};e.first&&(n.StartIndex=e.first),e.rows&&(n.Count=e.rows,n.Count<100&&(n.Count=100)),e.filters&&(e.filters.ShowAll.value&&(n.ShowAll=!0),e.filters.RecordId.value&&(n.RecordId=e.filters.RecordId.value)),this.recRules.length=0,n.ShowAll?this.recRules.push(...this.allRecRules):this.recRules.push(...this.activeRecRules),this.dvrService.GetUpcomingList(n).subscribe(s=>{let
r=s.ProgramList;this.programs.length=s.ProgramList.TotalAvailable,this.programs.splice(r.StartIndex,r.Count,...r.Programs),this.programs=[...this.programs],this.refreshing=!1})}formatStartDate(e){return
this.utility.formatDate(e.Recording.StartTs,!0)}formatAirDate(e){return
e.Airdate?this.utility.formatDate(e.Airdate+"
00:00",!0):""}formatStartTime(e){return(new
Date(e.Recording.StartTs).toLocaleTimeString()+" ").replace(/:.. /,"
")}getDuration(e){let n=new Date(e.Recording.StartTs).getTime();return(new
Date(e.Recording.EndTs).getTime()-n)/6e4}updateRecRule(e){this.inter.sched&&this.inter.sched.open
(e)}override(e){this.inter.sched&&(7==e.Recording.RecType?this.inter.sched.open(e):this.inter.sched.open(e,void
0,{Type:"Override
Recording"}))}stopRequest(e){e.Recording.RecordId&&(this.program=e,this.displayStop=!0)}stopRecording(e){this.errorCount=0,this.dvrService.StopRecording(e.Recording.RecordedId).subscribe({next:n=>{n.bool?(this.displayStop=!1,setTimeout(()=>this.inter.summaryComponent.refresh(),3e3)):this.errorCount++},error:n=>{this.errorCount++}})}}return
t.\u0275fac=function(e){return
new(e||t)(D(jo),D(Gi),D(Oe),D(Ll),D(cs))},t.\u0275cmp=z({type:t,selectors:[["app-upcoming"]],features:[Pe([Gi])],decls:24,vars:25,consts:[[2,"white-space","pre-line"],["position","center"],[1,"block","card","w-full"],[2,"height","90vh"],["scrollHeight","flex","styleClass","p-datatable-striped",3,"value","scrollable","virtualScroll","rows","lazy","rowHover","onLazyLoad"],["pTemplate","header"],["pTemplate","body"],[3,"header","visible","modal","draggable","resizable","visibleChange"],["pTem
plate","footer"],[3,"inter"],["field","ShowAll","matchMode","equals",3,"showMenu","showClearButton"],["pTemplate","filter"],["field","RecordId","matchMode","equals",3,"showMenu","showClearButton"],[4,"ngIf","ngIfElse"],["refreshBn",""],[1,"justify-content-end","p-1",2,"flex-basis","8%"],[1,"justify-content-end","p-1",2,"flex-basis","6%"],[1,"justify-content-end","pl-1","pr-3","pt-1","pb-1",2,"flex-basis","7%"],[1,"p-1",2,"flex-basis","8%"],[1,"p-1",2,"flex-basis","12%"],[1,"p-1",2,"flex-basis","18%"],[1,"p-1",2,"flex-basis","4%"],[1,"p-1",2,"flex-basis","10%"],[1,"p-1",2,"flex-basis","7%"],[1,"p-1",2,"flex-basis","2%"],["pButton","","pRipple","","icon","pi
pi-paperclip",1,"p-button-text","p-button-primary",3,"disabled"],["pButton","","pRipple","","icon","pi
pi-pencil",1,"p-button-text","p-button-primary",3,"disabled"],["inputId","showAllStatuses","name","showAllStatuses",3,"ngModel","binary","label","onChange"],["showAll","ngModel"],["name","rulefilter","optionLabel","Title","option
Value","Id",3,"ngModel","options","placeholder","showClear","onChange"],["pButton","","pRipple","","icon","pi
pi-refresh",1,"p-button-text",".p-button-success",3,"pTooltip","click"],[1,"justify-content-end","p-1","overflow-hidden",2,"flex-basis","8%"],[3,"innerHTML"],[1,"justify-content-end","p-1","overflow-hidden",2,"flex-basis","6%"],[1,"justify-content-end","pl-1","pr-3","pt-1","pb-1","overflow-hidden",2,"flex-basis","7%"],[1,"p-1","overflow-hidden",2,"flex-basis","12%"],["tooltipPosition","top",1,"p-1","overflow-hidden",2,"flex-basis","18%",3,"pTooltip"],[4,"ngIf"],[3,"ngClass",4,"ngIf"],["pButton","","pRipple","","icon","pi
pi-stop-circle","class","p-button-text
p-button-danger","tooltipPosition","left",3,"pTooltip","click",4,"ngIf","ngIfElse"],["overrideBn",""],["pButton","","pRipple","","icon","pi
pi-pencil","tooltipPosition","left",1,"p-button-text","p-button-primary",3,"pTooltip","disabled","click"],[3,"ngClass"],["pButton","","pRipple","","icon","pi
pi-stop-circle","toolti
pPosition","left",1,"p-button-text","p-button-danger",3,"pTooltip","click"],["pButton","","pRipple","","icon","pi
pi-paperclip","tooltipPosition","left",1,"p-button-text","p-button-primary",3,"pTooltip","click"],[1,"col-12",2,"text-align","left"],["severity","error",3,"text",4,"ngIf"],["icon","pi
pi-times-circle","styleClass","p-button-warning",3,"label","onClick"],["icon","pi
pi-check-circle","styleClass","p-button-danger",3,"label","onClick"],["severity","error",3,"text"]],template:function(e,n){1&e&&(l(0,"div")(1,"div",0),k(2,"p-toast",1),c(),l(3,"h2"),g(4),m(5,"translate"),c(),l(6,"div",2)(7,"div",3)(8,"p-table",4),C("onLazyLoad",function(r){return
n.loadLazy(r)}),_(9,pae,48,42,"ng-template",5),_(10,vae,31,23,"ng-template",6),c(),l(11,"p-dialog",7),C("visibleChange",function(r){return
n.displayStop=r}),m(12,"translate"),l(13,"h2"),g(14),m(15,"translate"),c(),l(16,"p"),g(17),m(18,"translate"),k(19,"br"),l(20,"b"),g(21),c()(),_(22,yae,6,7,"ng-template",8),c(),k(23,"app-schedule",9
),c()()()),2&e&&(a(4),S(f(5,17,"dashboard.upcoming.heading")),a(4),p("value",n.programs)("scrollable",!0)("virtualScroll",!0)("rows",50)("lazy",!0)("rowHover",!0),a(3),x("header",f(12,19,"dashboard.recordings.stop_recording")),p("visible",n.displayStop)("modal",!0)("draggable",!1)("resizable",!1),a(3),S(f(15,21,"settings.common.ru_sure")),a(3),T("",f(18,23,"dashboard.recordings.stop_details"),"
"),a(4),We(" ",null==n.program?null:n.program.Title,":
",null==n.program?null:n.program.SubTitle,""),a(2),p("inter",n.inter))},directives:[Td,Dn,ne,vg,sn,Te,_e,Ot,Q,Go,On,bt,Kt,Le,bn,qe,ve,Rd],pipes:[ce,eu],styles:[""]}),t})();function
Tae(t,i){if(1&t){const
e=I();l(0,"button",10),C("click",function(){return
v(e),d(2).newRecRule()}),m(1,"translate"),c(),l(2,"button",11),C("click",function(){return
v(e),d(2).newTemplate()}),m(3,"translate"),c()}2&t&&(x("label",f(1,2,"dashboard.recrules.new_recrule")),a(2),x("label",f(3,4,"dashboard.recrules.new_teplate")))}function
Sae(t,i){1&t&&(l(0,"tr")(1,"
th",12),g(2),m(3,"translate"),k(4,"p-sortIcon",13),c(),l(5,"th",14),g(6),m(7,"translate"),c(),l(8,"th",15),g(9),m(10,"translate"),c(),l(11,"th",15),g(12),m(13,"translate"),c(),l(14,"th",15),g(15),m(16,"translate"),c(),l(17,"th",16),g(18),m(19,"translate"),k(20,"p-sortIcon",17),c(),l(21,"th",18),g(22),m(23,"translate"),k(24,"p-sortIcon",19),c(),l(25,"th",20),g(26,"Active"),c(),l(27,"th",21),k(28,"button",22)(29,"button",23),c()()),2&t&&(a(2),T("
",f(3,9,"dashboard.recordings.title"),"
"),a(4),S(f(7,11,"dashboard.recrule.type")),a(3),S(f(10,13,"common.priority")),a(3),T("
",f(13,15,"dashboard.recordings.recgrp")," "),a(3),T("
",f(16,17,"dashboard.recrules.storgrp")," "),a(3),T("
",f(19,19,"dashboard.recrules.lastrec"),""),a(4),T("
",f(23,21,"dashboard.recrules.nextrec"),""),a(6),p("disabled",!0),a(1),p("disabled",!0))}function
xae(t,i){1&t&&k(0,"i",31)}function
Dae(t,i){1&t&&k(0,"i",32)}function Mae(t,i){if(1&t){const
e=I();l(0,"tr")(1,"td",24),g(2),c(),l(3,"td",14),g(4),c(),l(5,"td",
15),g(6),c(),l(7,"td",15),g(8),c(),l(9,"td",15),g(10),c(),l(11,"td",25),g(12),c(),l(13,"td",26),g(14),c(),l(15,"td",20),_(16,xae,1,0,"i",27),_(17,Dae,1,0,"ng-template",null,28,we),c(),l(19,"td",21)(20,"button",29),C("click",function(){const
r=v(e).$implicit;return
d(2).updateRecRule(r)}),m(21,"translate"),c(),l(22,"button",30),C("click",function(){const
r=v(e).$implicit;return
d(2).deleteRequest(r)}),m(23,"translate"),c()()()}if(2&t){const
e=i.$implicit,n=F(18),s=d(2);a(2),T(" ",e.Title,""),a(2),T("
",s.utility.recTypeTrans[e.Type],""),a(2),S(e.RecPriority),a(2),S(e.RecGroup),a(2),S(e.StorageGroup),a(2),T("
",s.utility.formatDate(e.LastRecorded),""),a(2),We("
",s.utility.formatDate(e.NextRecording),"
",s.utility.formatTime(e.NextRecording),""),a(2),p("ngIf",e.Inactive)("ngIfElse",n),a(4),x("pTooltip",f(21,13,"dashboard.recordings.edit_rule")),a(2),x("pTooltip",f(23,15,"dashboard.recordings.delete_rule")),p("disabled","Recording
Template"==e.Type&&"Default"==e.Category)}}function kae
(t,i){if(1&t&&(l(0,"div",5)(1,"p-table",6),_(2,Tae,4,6,"ng-template",7),_(3,Sae,30,23,"ng-template",8),_(4,Mae,24,17,"ng-template",9),c()()),2&t){const
e=d();a(1),p("value",e.recRules)("scrollable",!0)("rowHover",!0)}}function
Iae(t,i){1&t&&(k(0,"p-message",37),m(1,"translate")),2&t&&x("text",f(1,1,"common.networkfail"))}function
Eae(t,i){if(1&t){const
e=I();l(0,"div",33),_(1,Iae,2,3,"p-message",34),c(),l(2,"p-button",35),C("onClick",function(){return
v(e),d().displayDelete=!1}),m(3,"translate"),c(),l(4,"p-button",36),C("onClick",function(){v(e);const
s=d();return s.deleteRule(s.recRule)}),m(5,"translate"),c()}if(2&t){const
e=d();a(1),p("ngIf",e.errorCount>0),a(1),x("label",f(3,3,"common.close")),a(2),x("label",f(5,5,"common.delete"))}}function
Rae(t,i){1&t&&k(0,"p-progressSpinner")}let Lae=(()=>{class
t{constructor(e,n){this.dvrService=e,this.utility=n,this.recRules=[],this.inter={summaryComponent:this},this.deSpacer=new
RegExp(/ /g),this.rulesLoaded=!1,this.errorCount=0,this.succe
ssCount=0,this.displayDelete=!1,this.saveObserver={next:s=>{this.recRule?this.recRule.Id&&s.bool?(this.successCount++,this.displayDelete=!1,setTimeout(()=>this.refresh(),1e3)):!this.recRule.Id&&s.uint?(this.successCount++,setTimeout(()=>this.inter.summaryComponent.refresh(),1e3),this.recRule.Id=s.uint):this.errorCount++:(console.log("ERROR:
recRule is
undefined"),this.errorCount++)},error:s=>{console.error(s),this.errorCount++}}}refresh(){this.loadLists()}ngOnInit(){this.loadLists()}loadLists(){this.recRules=[],this.errorCount=0,this.dvrService.GetRecordScheduleList({}).subscribe({next:e=>{this.recRules=e.RecRuleList.RecRules,this.rulesLoaded=!0},error:e=>{this.errorCount++}})}newRecRule(){this.updateRecRule()}updateRecRule(e){this.inter.sched&&this.inter.sched.open(void
0,void 0,e)}newTemplate(){this.updateRecRule({Type:"Recording
Template"})}deleteRequest(e){this.recRule=e,this.displayDelete=!0}deleteRule(e){this.dvrService.RemoveRecordSchedule(e.Id).subscribe(this.saveObserver)}}
return t.\u0275fac=function(e){return
new(e||t)(D(jo),D(cs))},t.\u0275cmp=z({type:t,selectors:[["app-recrules"]],decls:19,vars:21,consts:[["class","block
card w-full","style","height:
90vh",4,"ngIf","ngIfElse"],[3,"header","visible","modal","draggable","resizable","visibleChange"],["pTemplate","footer"],[3,"inter"],["loading",""],[1,"block","card","w-full",2,"height","90vh"],["scrollHeight","flex","styleClass","p-datatable-striped","responsiveLayout","scroll",3,"value","scrollable","rowHover"],["pTemplate","caption"],["pTemplate","header"],["pTemplate","body"],["pButton","","pRipple","","icon","pi
pi-plus",1,"p-button-success","mr-2",3,"label","click"],["pButton","","pRipple","","icon","pi
pi-plus",1,"p-button-success","p-button-outlined","mr-2",3,"label","click"],["pSortableColumn","Title",1,"p-1",2,"flex-basis","20%"],["field","Title"],[1,"p-1",2,"flex-basis","20%"],[1,"p-1",2,"flex-basis","10%"],["pSortableColumn","LastRecorded",1,"justify-content-end","pr-5",2,"flex-basis","10%"
],["field","LastRecorded"],["pSortableColumn","NextRecording",1,"justify-content-end","pr-5",2,"flex-basis","15%"],["field","NextRecording"],[1,"p-1",2,"flex-basis","5%"],[1,"p-1",2,"flex-basis","6%"],["pButton","","pRipple","","icon","pi
pi-pencil",1,"p-button-text","p-button-primary",3,"disabled"],["pButton","","pRipple","","icon","pi
pi-trash",1,"p-button-text","p-button-danger",3,"disabled"],[1,"p-1","overflow-hidden",2,"flex-basis","20%"],[1,"justify-content-end","p-1","pr-5",2,"flex-basis","10%"],[1,"justify-content-end","p-1","pr-5",2,"flex-basis","15%"],["class","pi
pi-times
text-pink-500",4,"ngIf","ngIfElse"],["checkmark",""],["pButton","","pRipple","","icon","pi
pi-pencil","tooltipPosition","left",1,"p-button-text","p-button-primary",3,"pTooltip","click"],["pButton","","pRipple","","icon","pi
pi-trash","tooltipPosition","left",1,"p-button-text","p-button-danger",3,"pTooltip","disabled","click"],[1,"pi","pi-times","text-pink-500"],[1,"pi","pi-check","text-green-500"],[1,"co
l-12",2,"text-align","left"],["severity","error",3,"text",4,"ngIf"],["icon","pi
pi-times-circle","styleClass","p-button-warning",3,"label","onClick"],["icon","pi
pi-check-circle","styleClass","p-button-danger",3,"label","onClick"],["severity","error",3,"text"]],template:function(e,n){if(1&e&&(l(0,"h2"),g(1),m(2,"translate"),c(),_(3,kae,5,3,"div",0),l(4,"p-dialog",1),C("visibleChange",function(r){return
n.displayDelete=r}),m(5,"translate"),l(6,"h2"),g(7),m(8,"translate"),c(),l(9,"p"),g(10),m(11,"translate"),k(12,"br"),l(13,"b"),g(14),c()(),_(15,Eae,6,7,"ng-template",2),c(),k(16,"app-schedule",3),_(17,Rae,1,0,"ng-template",null,4,we)),2&e){const
s=F(18);a(1),S(f(2,13,"dashboard.recrules.heading")),a(2),p("ngIf",n.rulesLoaded)("ngIfElse",s),a(1),x("header",f(5,15,"dashboard.recordings.delete_rule")),p("visible",n.displayDelete)("modal",!0)("draggable",!1)("resizable",!1),a(3),S(f(8,17,"settings.common.ru_sure")),a(3),T("",f(11,19,"dashboard.recordings.delete_details"),"
"),a(4),We(" ",
null==n.recRule?null:n.recRule.Title,":
",null==n.recRule?null:n.recRule.Type,""),a(2),p("inter",n.inter)}},directives:[Q,Dn,ne,On,bt,yd,wd,Kt,bn,qe,ve,Rd,Go],pipes:[ce],styles:[""]}),t})(),Oae=(()=>{class
t{constructor(e){this.httpClient=e}GetVideoList(e){let n=new ye;for(const[s,r]of
Object.entries(e))n=n.set(s,r);return
this.httpClient.get("/Video/GetVideoList",{params:n})}UpdateVideoWatchedStatus(e,n){return
this.httpClient.post("/Video/UpdateVideoWatchedStatus",{Id:e,Watched:n})}UpdateVideoMetadata(e){return
this.httpClient.post("/Video/UpdateVideoMetadata",e)}}return
t.\u0275fac=function(e){return
new(e||t)(K(Bi))},t.\u0275prov=X({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();const
Aae=["vidsform"],Pae=["menu"],Fae=["table"];function
Nae(t,i){}function Vae(t,i){if(1&t){const
e=I();l(0,"div")(1,"p-button",35),C("onClick",function(){const
r=v(e).index;return d(2).breadCrumb(r+1)}),c()()}if(2&t){const
e=i.$implicit;a(1),x("label",e)}}const Bae=function(){return{width:"30p
x",height:"30px"}};function
Hae(t,i){1&t&&(l(0,"div"),k(1,"p-progressSpinner"),c()),2&t&&(a(1),q(A(2,Bae)))}function
qae(t,i){if(1&t){const
e=I();l(0,"button",52),C("click",function(){v(e);const s=d(2);return
s.refreshing=!0,s.reLoadVideos()}),m(1,"translate"),c()}2&t&&x("pTooltip",f(1,1,"common.refresh"))}function
Gae(t,i){if(1&t){const
e=I();l(0,"tr")(1,"th")(2,"p-button",35),C("onClick",function(){return
v(e),d().breadCrumb(0)}),m(3,"translate"),c(),_(4,Vae,2,1,"div",36),g(5,"
\xa0\xa0\xa0
"),l(6,"p-checkbox",37,38),C("ngModelChange",function(s){return
v(e),d().showAllVideos=s})("onChange",function(){return
v(e),d().showAllChange()}),m(8,"translate"),c(),_(9,Hae,2,3,"div",39),_(10,qae,2,3,"ng-template",null,40,we),g(12),c()(),l(13,"tr")(14,"th",41),g(15),m(16,"translate"),k(17,"p-sortIcon",42),c(),k(18,"th",43),l(19,"th",44),g(20),m(21,"translate"),c(),l(22,"th",45),g(23),m(24,"translate"),c(),l(25,"th",46),g(26),m(27,"translate"),k(28,"p-sortIcon",47),c(),l(29,"th",48),g(30),m(3
1,"translate"),c(),l(32,"th",45)(33,"a",49),k(34,"i",50),c(),k(35,"button",51),c()()}if(2&t){const
e=F(11),n=d();a(2),x("label",f(3,14,"dashboard.videos.heading")),a(2),p("ngForOf",n.directory),a(2),Bn("label","",f(8,16,"dashboard.videos.showall"),"
"),p("ngModel",n.showAllVideos)("binary",!0),a(3),p("ngIf",n.refreshing)("ngIfElse",e),a(3),T("
\xa0\xa0\xa0",n.videos.length," Rows "),a(3),T("
",f(16,18,"dashboard.recordings.title"),"
"),a(5),S(f(21,20,"dashboard.recordings.subtitle")),a(3),S(f(24,22,"dashboard.recordings.seas_ep")),a(3),T("
",f(27,24,"dashboard.videos.releasedate")," "),a(4),T("
",f(31,26,"dashboard.recordings.duration"),"
"),a(5),p("disabled",!0)}}function Uae(t,i){if(1&t){const
e=I();l(0,"div")(1,"button",60),C("click",function(){v(e);const
s=d().$implicit;return d().onDirectory(s.Title)}),c()()}if(2&t){const
e=d().$implicit;a(1),x("label",e.Title)}}function
zae(t,i){1&t&&g(0),2&t&&T(" ",d().$implicit.Title,"
")}function jae(t,i){1&t&&k(0,"i",61)}function $ae(t,i){
if(1&t&&(l(0,"div"),g(1),c()),2&t){const
e=d().$implicit;a(1),We(" ",e.Season,"x",e.Episode,"
")}}function
Wae(t,i){if(1&t&&(l(0,"div"),g(1),c()),2&t){const
e=d().$implicit;a(1),T(" ",e.Length," min ")}}function
Kae(t,i){if(1&t){const
e=I();l(0,"div")(1,"a",62),m(2,"translate"),k(3,"i",63),c(),l(4,"button",64),C("click",function(s){v(e);const
r=d().$implicit;return d().showMenu(r,s)}),c()()}if(2&t){const
e=d().$implicit,n=d();a(1),x("href",n.URLencode("/Content/GetVideo?Id="+e.Id),ln),x("pTooltip",f(2,2,"dashboard.videos.download"))}}function
Qae(t,i){if(1&t&&(l(0,"tr")(1,"td",53),_(2,Uae,2,1,"div",39),_(3,zae,1,1,"ng-template",null,54,we),c(),l(5,"td",43),_(6,jae,1,0,"i",55),c(),l(7,"td",56),g(8),c(),l(9,"td",45),_(10,$ae,2,2,"div",57),c(),l(11,"td",58),k(12,"div",59),c(),l(13,"td",48),_(14,Wae,2,1,"div",57),c(),l(15,"td",45),_(16,Kae,5,4,"div",57),c()()),2&t){const
e=i.$implicit,n=F(4),s=d();a(2),p("ngIf","DIRECTORY"==e.ContentType)("ngIfElse",n),a(4),p("ngIf",e.Watched),a(1),x("p
Tooltip",e.Description),a(1),T("
",e.SubTitle,""),a(2),p("ngIf",e.Season>0||e.Episode>0),a(2),p("innerHTML",s.utility.formatDate(e.ReleaseDate,!0),Bt),a(2),p("ngIf",e.Length>0),a(2),p("ngIf","DIRECTORY"!=e.ContentType)}}function
Jae(t,i){1&t&&(k(0,"p-message",70),m(1,"translate")),2&t&&x("text",f(1,1,"common.savesuccess"))}function
Yae(t,i){1&t&&(k(0,"p-message",71),m(1,"translate")),2&t&&x("text",f(1,1,"common.networkfail"))}function
Zae(t,i){if(1&t){const
e=I();l(0,"div",65),_(1,Jae,2,3,"p-message",66),_(2,Yae,2,3,"p-message",67),c(),l(3,"p-button",68),C("onClick",function(){return
v(e),d().closeDialog()}),m(4,"translate"),c(),l(5,"p-button",69),C("onClick",function(){return
v(e),d().saveVideo()}),m(6,"translate"),c()}if(2&t){const
e=d(),n=F(15);a(1),p("ngIf",e.successCount>0&&0==e.errorCount&&!n.dirty),a(1),p("ngIf",e.errorCount>0),a(1),x("label",f(4,5,"common.close")),a(2),x("label",f(6,7,"common.save")),p("disabled",!n.dirty||""==e.video.Title.trim())}}function
Xae(t,i){if(1&t)
{const e=I();l(0,"p-button",72),C("onClick",function(){return
v(e),d().closeDialog()}),m(1,"translate"),c(),l(2,"p-button",73),C("onClick",function(){return
v(e),d().displayUnsaved=!1}),m(3,"translate"),c()}2&t&&(x("label",f(1,2,"common.nosave")),a(2),x("label",f(3,4,"common.continue")))}const
ele=function(){return{height:"75vw",width:"50vw"}};let
tle=(()=>{class
t{constructor(e,n,s,r){this.videoService=e,this.translate=n,this.messageService=s,this.utility=r,this.videos=[],this.refreshing=!1,this.successCount=0,this.errorCount=0,this.directory=[],this.video={Title:""},this.displayMetadataDlg=!1,this.displayUnsaved=!1,this.showAllVideos=!1,this.mnu_markwatched={label:"dashboard.recordings.mnu_markwatched",command:u=>this.markwatched(u,!0)},this.mnu_markunwatched={label:"dashboard.recordings.mnu_markunwatched",command:u=>this.markwatched(u,!1)},this.mnu_updatemeta={label:"dashboard.recordings.mnu_updatemeta",command:u=>this.updatemeta(u)},this.menuToShow=[],this.msg={Success:"common.s
uccess",Failed:"common.failed",NetFail:"common.networkfail"},this.saveObserver={next:u=>{u.bool?(console.log("saveObserver
success",u),this.successCount++,this.successCount++,this.currentForm.form.markAsPristine(),this.editingVideo&&Object.assign(this.editingVideo,this.video)):(console.log("saveObserver
error",u),this.errorCount++)},error:u=>{console.log("saveObserver
error",u),this.errorCount++}};for(const[u,h]of
Object.entries(this.msg))this.translate.get(h).subscribe(b=>{Object.defineProperty(this.msg,u,{value:b})});[this.mnu_markwatched,this.mnu_markunwatched,this.mnu_updatemeta].forEach(u=>{u.label&&this.translate.get(u.label).subscribe(h=>u.label=h)})}ngOnInit(){}loadLazy(e){this.lazyLoadEvent=e;let
n={Sort:"title",Folder:this.directory.join("/"),CollapseSubDirs:!this.showAllVideos,StartIndex:0,Count:1};e.sortField&&(n.Sort=e.sortField,e.sortOrder&&(n.Descending=e.sortOrder<0)),n.Sort+=",title,releasedate,season,episode",e.first&&(n.StartIndex=e.first),e.rows&&(n.Count=e.rows)
,this.videoService.GetVideoList(n).subscribe(s=>{let
r=s.VideoMetadataInfoList;this.videos.length=s.VideoMetadataInfoList.TotalAvailable,this.videos.splice(r.StartIndex,r.Count,...r.VideoMetadataInfos),this.videos=[...this.videos],this.refreshing=!1})}reLoadVideos(){this.table.resetScrollTop(),this.videos.length=0,this.lazyLoadEvent.first=0,this.lazyLoadEvent.rows=100,this.loadLazy(this.lazyLoadEvent)}showAllChange(){this.refreshing=!0,setTimeout(()=>this.reLoadVideos(),100)}URLencode(e){return
encodeURI(e)}onDirectory(e){this.directory.push(e),this.reLoadVideos()}breadCrumb(e){this.directory.length=e,this.reLoadVideos()}showMenu(e,n){this.video=e,this.menuToShow.length=0,this.menuToShow.push(e.Watched?this.mnu_markunwatched:this.mnu_markwatched),this.menuToShow.push(this.mnu_updatemeta),this.menu.toggle(n)}markwatched(e,n){this.videoService.UpdateVideoWatchedStatus(this.video.Id,n).subscribe({next:s=>{s.bool?(this.sendMessage("success",e.item.label,this.msg.Success),this.video.Watc
hed=n):this.sendMessage("error",e.item.label,this.msg.Failed)},error:s=>this.networkError(s)})}updatemeta(e){this.editingVideo=this.video,this.video=Object.assign({},this.video),this.video.ReleaseDate=this.video.ReleaseDate?new
Date(this.video.ReleaseDate):null,this.displayMetadataDlg=!0}sendMessage(e,n,s,r){this.messageService.add({severity:e,summary:s,detail:n+"
"+this.video.Title+"
"+this.video.SubTitle+(r=r?"\n"+r:""),life:3e3})}saveVideo(){this.successCount=0,this.errorCount=0,this.displayUnsaved=!1,this.videoService.UpdateVideoMetadata({Id:this.video.Id,Episode:this.video.Episode,Inetref:this.video.Inetref,Plot:this.video.Description,ReleaseDate:this.video.ReleaseDate,Season:this.video.Season,SubTitle:this.video.SubTitle,Title:this.video.Title}).subscribe(this.saveObserver)}networkError(e){console.log("network
error",e),this.sendMessage("error","",this.msg.NetFail)}closeDialog(){this.currentForm.dirty?this.displayUnsaved?(this.displayUnsaved=!1,this.displayMetadataDlg=!1,this.
editingVideo=void
0,this.currentForm.form.markAsPristine()):this.displayUnsaved=!0:(this.displayMetadataDlg=!1,this.displayUnsaved=!1,this.editingVideo=void
0)}}return t.\u0275fac=function(e){return
new(e||t)(D(Oae),D(Oe),D(Gi),D(cs))},t.\u0275cmp=z({type:t,selectors:[["app-videos"]],viewQuery:function(e,n){if(1&e&&(W(Aae,5),W(Pae,5),W(Fae,5)),2&e){let
s;V(s=B())&&(n.currentForm=s.first),V(s=B())&&(n.menu=s.first),V(s=B())&&(n.table=s.first)}},features:[Pe([Gi])],decls:70,vars:71,consts:[[2,"white-space","pre-line"],["position","center"],[1,"block","card","w-full",2,"height","90vh"],[3,"popup","model"],["menu",""],["name","table","scrollHeight","flex","styleClass","p-datatable-striped","responsiveLayout","scroll",3,"value","scrollable","virtualScroll","rows","lazy","rowHover","onLazyLoad"],["table",""],["pTemplate","caption"],["pTemplate","header"],["pTemplate","body"],["name","vidsform",1,"ml-3","mr-3"],["vidsform","ngForm"],[3,"header","visible","modal","closable","closeOnEscape",
"visibleChange"],[1,"form-group","field"],["for","Title",1,"label","block"],["pInputText","","id","Title","name","Title",1,"mb-2","form-control","w-full",3,"ngModel","ngModelChange"],["Title","ngModel"],["for","SubTitle",1,"label","block"],["pInputText","","id","SubTitle","name","SubTitle",1,"mb-2","form-control","w-full",3,"ngModel","ngModelChange"],["SubTitle","ngModel"],["for","Inetref",1,"label","block"],["pInputText","","id","Inetref","name","Inetref",1,"mb-2","form-control","w-full",3,"ngModel","ngModelChange"],["Inetref","ngModel"],["for","Description",1,"label","block"],["pInputTextarea","","id","Description","name","Description",1,"mb-2","form-control","w-full",3,"rows","cols","ngModel","ngModelChange"],["Description","ngModel"],["for","Season",1,"label","block"],["name","Season","id","Season",3,"ngModel","showButtons","min","max","step","ngModelChange"],["for","Episode",1,"label","block"],["name","Episode","id","Episode",3,"ngModel","showButtons","min","max","step","ngMode
lChange"],["for","ReleaseDate",1,"label","block"],["dateFormat","yy-mm-dd","name","ReleaseDate","id","ReleaseDate",3,"ngModel","ngModelChange"],["for","FileName",1,"label","block"],["pTemplate","footer"],[3,"header","visible","modal","visibleChange"],["styleClass","p-button-primary",1,"p-1",3,"label","onClick"],[4,"ngFor","ngForOf"],["inputId","showAllVideos","name","showAllVideos",3,"ngModel","binary","label","ngModelChange","onChange"],["showAll","ngModel"],[4,"ngIf","ngIfElse"],["refreshBn",""],["pSortableColumn","Title",1,"p-1",2,"flex-basis","30%"],["field","Title"],[1,"p-1",2,"flex-basis","3%"],[1,"p-1",2,"flex-basis","30%"],[1,"p-1",2,"flex-basis","6%"],["pSortableColumn","ReleaseDate",1,"justify-content-end","p-1",2,"flex-basis","12%"],["field","ReleaseDate"],[1,"justify-content-end","p-1",2,"flex-basis","10%"],["target","_blank"],[1,"pi","pi-download"],["pButton","","pRipple","","icon","pi
pi-ellipsis-v",1,"p-button-text","p-button-primary",3,"disabled"],["pButton","","pRip
ple","","icon","pi
pi-refresh",1,"p-button-text",".p-button-success",3,"pTooltip","click"],[1,"p-1","overflow-hidden",2,"flex-basis","30%"],["title",""],["class","pi
pi-eye",4,"ngIf"],["tooltipPosition","top",1,"p-1","overflow-hidden",2,"flex-basis","30%",3,"pTooltip"],[4,"ngIf"],[1,"justify-content-end","p-1",2,"flex-basis","12%"],[3,"innerHTML"],["pButton","","pRipple","","icon","pi
pi-folder",1,"p-button-text","p-button-primary",3,"label","click"],[1,"pi","pi-eye"],["target","_blank","tooltipPosition","left",3,"href","pTooltip"],[1,"pi","pi-download","text-primary"],["pButton","","pRipple","","icon","pi
pi-ellipsis-v",1,"p-button-text","p-button-primary",3,"click"],[1,"col-12",2,"text-align","left"],["severity","success",3,"text",4,"ngIf"],["severity","error",3,"text",4,"ngIf"],["icon","pi
pi-times-circle","styleClass","p-button-warning",3,"label","onClick"],["icon","pi
pi-check-circle","styleClass","p-button-success",3,"label","disabled","onClick"],["severity","success",3,"text"
],["severity","error",3,"text"],["icon","pi
pi-times-circle","styleClass","p-button-danger",3,"label","onClick"],["icon","pi
pi-check-circle","styleClass","p-button-success",3,"label","onClick"]],template:function(e,n){1&e&&(l(0,"div")(1,"div",0),k(2,"p-toast",1),c(),l(3,"h2"),g(4),m(5,"translate"),c(),l(6,"div",2),k(7,"p-menu",3,4),l(9,"p-table",5,6),C("onLazyLoad",function(r){return
n.loadLazy(r)}),_(11,Nae,0,0,"ng-template",7),_(12,Gae,36,28,"ng-template",8),_(13,Qae,17,9,"ng-template",9),c()(),l(14,"form",10,11)(16,"p-dialog",12),C("visibleChange",function(r){return
n.displayMetadataDlg=r}),m(17,"translate"),l(18,"div",13)(19,"label",14),g(20),m(21,"translate"),c(),l(22,"input",15,16),C("ngModelChange",function(r){return
n.video.Title=r}),c()(),l(24,"div",13)(25,"label",17),g(26),m(27,"translate"),c(),l(28,"input",18,19),C("ngModelChange",function(r){return
n.video.SubTitle=r}),c()(),l(30,"div",13)(31,"label",20),g(32),m(33,"translate"),c(),l(34,"input",21,22),C("ngModelChange",
function(r){return
n.video.Inetref=r}),c()(),l(36,"div",13)(37,"label",23),g(38),m(39,"translate"),c(),l(40,"textarea",24,25),C("ngModelChange",function(r){return
n.video.Description=r}),c()(),l(42,"div",13)(43,"label",26),g(44),m(45,"translate"),c(),l(46,"p-inputNumber",27),C("ngModelChange",function(r){return
n.video.Season=r}),c()(),l(47,"div",13)(48,"label",28),g(49),m(50,"translate"),c(),l(51,"p-inputNumber",29),C("ngModelChange",function(r){return
n.video.Episode=r}),c()(),l(52,"div",13)(53,"label",30),g(54),m(55,"translate"),c(),l(56,"p-calendar",31),C("ngModelChange",function(r){return
n.video.ReleaseDate=r}),c()(),l(57,"div",13)(58,"label",32),g(59),m(60,"translate"),c(),l(61,"pre"),g(62),c()(),_(63,Zae,7,9,"ng-template",33),c(),l(64,"p-dialog",34),C("visibleChange",function(r){return
n.displayUnsaved=r}),m(65,"translate"),l(66,"p"),g(67),m(68,"translate"),c(),_(69,Xae,4,6,"ng-template",33),c()()()),2&e&&(a(4),S(f(5,46,"dashboard.videos.heading")),a(3),p("popup",!0)("model"
,n.menuToShow),a(2),p("value",n.videos)("scrollable",!0)("virtualScroll",!0)("rows",50)("lazy",!0)("rowHover",!0),a(7),q(A(70,ele)),x("header",f(17,48,"dashboard.recordings.edit_metadata")),p("visible",n.displayMetadataDlg)("modal",!0)("closable",!1)("closeOnEscape",!1),a(4),S(f(21,50,"dashboard.recordings.title")),a(2),p("ngModel",n.video.Title),a(4),S(f(27,52,"dashboard.recordings.subtitle")),a(2),p("ngModel",n.video.SubTitle),a(4),S(f(33,54,"dashboard.recordings.inetref")),a(2),p("ngModel",n.video.Inetref),a(4),S(f(39,56,"dashboard.recordings.description")),a(2),p("rows",5)("cols",30)("ngModel",n.video.Description),a(4),S(f(45,58,"dashboard.recordings.season")),a(2),p("ngModel",n.video.Season)("showButtons",!0)("min",1)("max",99)("step",1),a(3),S(f(50,60,"dashboard.recordings.episode")),a(2),p("ngModel",n.video.Episode)("showButtons",!0)("min",1)("max",99)("step",1),a(3),S(f(55,62,"dashboard.videos.releasedate")),a(2),p("ngModel",n.video.ReleaseDate),a(3),S(f(60,64,"dashboard.rec
ordings.filename_label")),a(3),S(n.video.FileName),a(2),x("header",f(65,66,"common.unsaved_heading")),p("visible",n.displayUnsaved)("modal",!0),a(3),S(f(68,68,"common.unsaved_message")))},directives:[Td,sS,Dn,ne,ve,at,sn,Te,_e,Q,Go,On,bt,Kt,yd,wd,ze,Ue,He,bn,Ye,tS,pt,xr,qe],pipes:[ce],styles:[""]}),t})(),nle=(()=>{class
t{}return t.\u0275fac=function(e){return
new(e||t)},t.\u0275mod=he({type:t}),t.\u0275inj=ue({imports:[[vn.forChild([{path:"dashboard",component:oS,children:[{path:"status",component:_oe},{path:"channel-editor",component:bS},{path:"program-guide",component:CS},{path:"recordings",component:Foe},{path:"upcoming",component:wae},{path:"recrules",component:Lae},{path:"videos",component:tle}]}])],vn]}),t})();function
ile(t,i){1&t&&(l(0,"tr")(1,"th",7),g(2),m(3,"translate"),c(),l(4,"th",8),g(5),m(6,"translate"),c(),k(7,"th",9),l(8,"th",10),g(9),m(10,"translate"),c(),l(11,"th",11),g(12),m(13,"translate"),c(),l(14,"th",12),g(15),m(16,"translate"),c(),l(17,"th",7),g(18),m(19,"t
ranslate"),c(),l(20,"th",13),g(21),m(22,"translate"),c(),l(23,"th",14),g(24),m(25,"translate"),c(),l(26,"th",15),k(27,"button",16),c()()),2&t&&(a(2),T("
",f(3,9,"dashboard.upcoming.date")," "),a(3),T("
",f(6,11,"dashboard.upcoming.time")," "),a(4),T("
",f(10,13,"dashboard.recordings.title"),""),a(3),S(f(13,15,"dashboard.recordings.subtitle")),a(3),S(f(16,17,"dashboard.recordings.seas_ep")),a(3),T("
",f(19,19,"dashboard.recordings.orig_airdate"),"
"),a(3),S(f(22,21,"dashboard.recordings.channel")),a(3),T("
",f(25,23,"dashboard.upcoming.status"),"
"),a(3),p("disabled",!0))}function
sle(t,i){if(1&t&&(l(0,"div"),g(1),c()),2&t){const
e=d().$implicit;a(1),We("
",e.Season,"x",e.Episode,"")}}const
rle=function(){return["WillRecord","Recording","Recorded"]};function
ole(t,i){if(1&t&&(l(0,"div",28)(1,"b"),g(2),c()()),2&t){const
e=d().$implicit,n=d();p("ngClass",A(2,rle).indexOf(e.Recording.StatusName)>-1?"bg-green-500":"bg-pink-500"),a(2),S(n.dataService.recStatusText[e.Recording.StatusName])
}}function ale(t,i){if(1&t){const
e=I();l(0,"tr",17)(1,"td",18),k(2,"div",19),c(),l(3,"td",20),g(4),c(),l(5,"td",21),g(6),m(7,"number"),c(),l(8,"td",22),g(9),c(),l(10,"td",23),g(11),c(),l(12,"td",12),_(13,sle,2,2,"div",24),c(),l(14,"td",7),k(15,"div",19),c(),l(16,"td",13),g(17),c(),l(18,"td",14),_(19,ole,3,3,"div",25),c(),l(20,"td",26)(21,"button",27),C("click",function(){const
r=v(e).$implicit;return
d().updateRecRule(r)}),m(22,"translate"),c()()()}if(2&t){const
e=i.$implicit,n=d();p("ngClass",n.getClasses(e)),a(2),p("innerHTML",n.formatStartDate(e),Bt),a(2),T("
",n.formatStartTime(e),""),a(2),T("
",Dt(7,14,n.getDuration(e),"1.0-0")," min"),a(3),T("
",e.Title,""),a(1),x("pTooltip",e.Description),a(1),T("
",e.SubTitle.slice(0,50),""),a(2),p("ngIf",e.Season>0||e.Episode>0),a(2),p("innerHTML",n.formatAirDate(e),Bt),a(2),We("
",e.Channel.ChanNum,"
",e.Channel.CallSign,""),a(2),p("ngIf",e.Recording),a(2),x("pTooltip",f(22,17,"dashboard.recordings.edit_rule")),p("disabled",e.Recording&&7
==e.Recording.RecType)}}function
lle(t,i){1&t&&(k(0,"p-message",33),m(1,"translate")),2&t&&x("text",f(1,1,"common.networkfail"))}function
cle(t,i){if(1&t){const
e=I();l(0,"div",29),_(1,lle,2,3,"p-message",30),c(),l(2,"p-button",31),C("onClick",function(){return
v(e),d().displayStop=!1}),m(3,"translate"),c(),l(4,"p-button",32),C("onClick",function(){v(e);const
s=d();return s.stopRecording(s.program)}),m(5,"translate"),c()}if(2&t){const
e=d();a(1),p("ngIf",e.errorCount>0),a(1),x("label",f(3,3,"common.close")),a(2),x("label",f(5,5,"dashboard.recordings.stop_recording"))}}let
ule=(()=>{class
t{constructor(e,n,s){this.dataService=e,this.dvrService=n,this.utility=s,this.programs=[],this.displayStop=!1,this.successCount=0,this.errorCount=0,this.regex=/[^a-z0-9]/g}ngOnInit(){}formatStartDate(e){return
this.utility.formatDate(e.StartTime,!0)}formatAirDate(e){return
e.Airdate?this.utility.formatDate(e.Airdate+"
00:00",!0):""}formatStartTime(e){let n=new
Date(e.StartTime).getTime();return(new
Date(n).toLocaleTimeString()+" ").replace(/:.. /,"
")}getClasses(e){return["guide_type_"+e.CatType,"guide_cat_"+e.Category.toLowerCase().replace(this.regex,"_"),"guide_type_default"]}getDuration(e){let
n=new Date(e.StartTime).getTime();return(new
Date(e.EndTime).getTime()-n)/6e4}updateRecRule(e){this.inter.sched&&this.inter.sched.open(e)}override(e){this.inter.sched&&(7==e.Recording.RecType?this.inter.sched.open(e):this.inter.sched.open(e,void
0,{Type:"Override
Recording"}))}stopRequest(e){e.Recording.RecordId&&(this.program=e,this.displayStop=!0)}stopRecording(e){this.errorCount=0,this.dvrService.StopRecording(e.Recording.RecordedId).subscribe({next:n=>{n.bool?(this.displayStop=!1,setTimeout(()=>this.inter.summaryComponent.refresh(),3e3)):this.errorCount++},error:n=>{this.errorCount++}})}}return
t.\u0275fac=function(e){return
new(e||t)(D(Ll),D(jo),D(cs))},t.\u0275cmp=z({type:t,selectors:[["app-programs"]],inputs:{programs:"programs",inter:"inter"},decls:17,vars:19,consts:[[2,"heigh
t","90vh"],["scrollHeight","flex","styleClass","p-datatable-striped","responsiveLayout","scroll",3,"value","scrollable","rowHover"],["pTemplate","header"],["pTemplate","body"],[3,"header","visible","modal","draggable","resizable","visibleChange"],["pTemplate","footer"],[3,"inter"],[1,"justify-content-end","p-1",2,"flex-basis","8%"],[1,"justify-content-end","p-1",2,"flex-basis","6%"],[1,"justify-content-end","pl-1","pr-3","pt-1","pb-1",2,"flex-basis","7%"],[1,"p-1",2,"flex-basis","12%"],[1,"p-1",2,"flex-basis","18%"],[1,"p-1",2,"flex-basis","4%"],[1,"p-1",2,"flex-basis","10%"],[1,"p-1",2,"flex-basis","7%"],[1,"p-1",2,"flex-basis","2%"],["pButton","","pRipple","","icon","pi
pi-pencil",1,"p-button-text","p-button-primary",3,"disabled"],[3,"ngClass"],[1,"justify-content-end","p-1","overflow-hidden",2,"flex-basis","8%"],[3,"innerHTML"],[1,"justify-content-end","p-1","overflow-hidden",2,"flex-basis","6%"],[1,"justify-content-end","pl-1","pr-3","pt-1","pb-1","overflow-hidden",2,"flex-basis
","7%"],[1,"p-1","overflow-hidden",2,"flex-basis","12%"],["tooltipPosition","top",1,"p-1","overflow-hidden",2,"flex-basis","18%",3,"pTooltip"],[4,"ngIf"],["class","text-white",3,"ngClass",4,"ngIf"],[1,"p-1",2,"flex-basis","2%","background","var(--surface-card)"],["pButton","","pRipple","","icon","pi
pi-pencil","tooltipPosition","left",1,"p-button-text","p-button-primary",3,"pTooltip","disabled","click"],[1,"text-white",3,"ngClass"],[1,"col-12",2,"text-align","left"],["severity","error",3,"text",4,"ngIf"],["icon","pi
pi-times-circle","styleClass","p-button-warning",3,"label","onClick"],["icon","pi
pi-check-circle","styleClass","p-button-danger",3,"label","onClick"],["severity","error",3,"text"]],template:function(e,n){1&e&&(l(0,"div",0)(1,"p-table",1),_(2,ile,28,25,"ng-template",2),_(3,ale,23,19,"ng-template",3),c(),l(4,"p-dialog",4),C("visibleChange",function(r){return
n.displayStop=r}),m(5,"translate"),l(6,"h2"),g(7),m(8,"translate"),c(),l(9,"p"),g(10),m(11,"translate"),k(12,"br"),
l(13,"b"),g(14),c()(),_(15,cle,6,7,"ng-template",5),c(),k(16,"app-schedule",6),c()),2&e&&(a(1),p("value",n.programs)("scrollable",!0)("rowHover",!0),a(3),x("header",f(5,13,"dashboard.recordings.stop_recording")),p("visible",n.displayStop)("modal",!0)("draggable",!1)("resizable",!1),a(3),S(f(8,15,"settings.common.ru_sure")),a(3),T("",f(11,17,"dashboard.recordings.stop_details"),"
"),a(4),We(" ",null==n.program?null:n.program.Title,":
",null==n.program?null:n.program.SubTitle,""),a(2),p("inter",n.inter))},directives:[Dn,ne,On,bt,Le,Kt,Q,bn,qe,ve,Rd],pipes:[ce,eu],styles:[".type_series[_ngcontent-%COMP%]{background-color:#00008b;color:#fff}.type_tvshow[_ngcontent-%COMP%]{background-color:#2f4f4f;color:#fff}.type_movie[_ngcontent-%COMP%]{background-color:#8a2be2;color:#fff}.type_sports[_ngcontent-%COMP%]{background-color:#8b0000;color:#fff}"]}),t})();function
dle(t,i){1&t&&(g(0),m(1,"translate")),2&t&&T("
",f(1,1,"dashboard.guide.typecolors")," ")}const
ple=function(t){return[t,"guide_t
ype_default"]};function
hle(t,i){if(1&t&&(l(0,"div",4)(1,"div",5),g(2),c()()),2&t){const
e=i.$implicit;a(1),p("ngClass",U(2,ple,"guide_type_"+e)),a(1),T("
\xa0",e,"")}}function
mle(t,i){1&t&&(g(0),m(1,"translate")),2&t&&T("
",f(1,1,"dashboard.guide.catcolors")," ")}const
fle=function(t){return[t,"px-1"]};function
gle(t,i){if(1&t&&(l(0,"div",4)(1,"div",5),g(2),c()()),2&t){const
e=i.$implicit,n=d();a(1),p("ngClass",U(2,fle,"guide_cat_"+e.toLowerCase().replace(n.regex,"_"))),a(1),T("
",e,"")}}let _le=(()=>{class
t{constructor(){this.catTypes=[],this.categories=[],this.regex=/[^a-z0-9]/g}ngOnInit(){let
e=new Set,n=new
Set;null!=this.programGuide?this.programGuide.ProgramGuide.Channels.forEach(r=>{r.Programs.forEach(o=>{o.CatType&&e.add(o.CatType),o.Category&&n.add(o.Category)})}):null!=this.listPrograms&&this.listPrograms.forEach(r=>{r.CatType&&e.add(r.CatType),r.Category&&n.add(r.Category)}),this.catTypes=[];let
s=e.values();for(;;){let r=s.next();if(r.done)break;this.catTypes.push(r.v
alue)}for(this.categories=[],s=n.values();;){let
r=s.next();if(r.done)break;this.categories.push(r.value)}this.catTypes.sort(),this.catTypes.push("default"),this.categories.sort()}}return
t.\u0275fac=function(e){return
new(e||t)},t.\u0275cmp=z({type:t,selectors:[["app-legend"]],inputs:{programGuide:"programGuide",listPrograms:"listPrograms"},decls:20,vars:11,consts:[[1,"flex"],["layout","grid",3,"value"],["pTemplate","header"],["pTemplate","gridItem"],[1,"md:col-2","px-3","py-1"],[3,"ngClass"]],template:function(e,n){1&e&&(l(0,"div",0)(1,"div")(2,"p-dataView",1),_(3,dle,2,3,"ng-template",2),_(4,hle,3,4,"ng-template",3),c(),l(5,"p-dataView",1),_(6,mle,2,3,"ng-template",2),_(7,gle,3,4,"ng-template",3),c(),l(8,"p"),g(9),m(10,"translate"),k(11,"br"),g(12),m(13,"translate"),k(14,"br"),g(15),m(16,"translate"),l(17,"code"),g(18,"/usr/share/mythtv/html/assets/guidecolors.css"),c(),g(19,"\xa0."),c()()()),2&e&&(a(2),p("value",n.catTypes),a(3),p("value",n.categories),a(4),S(f(10,5,"dashboard.g
uide.color_includes")),a(3),T("
",f(13,7,"dashboard.guide.color_expl"),""),a(3),T("
",f(16,9,"dashboard.guide.color_customize"),""))},directives:[LT,ne,Le],pipes:[ce],styles:[""]}),t})();function
ble(t){return new WO(t)}let vle=(()=>{class t{}return t.\u0275fac=function(e){return
new(e||t)},t.\u0275mod=he({type:t,bootstrap:[VW]}),t.\u0275inj=ue({providers:[],imports:[[qy,IO,TW,UF,Mu,UA,sW,$O.forRoot({defaultLanguage:"en_US",loader:{provide:nl,useFactory:ble,deps:[Bi]}}),k$,eX,nle]]}),t})();Wi(CS,[Q,Ot,Te,_e,Kt,xr,Ye,On,bt,Go,K2,LT,ne,OX,MX,at,LX,ule,Rd,bn,_le],[ce]),Wi(hS,[Ne,ve,bn,os,Te,_e,ne,Q,qe,Ss,at,Ts,gr,Ja,jX,wS,xte,Fte,jte,ene,cne,jie,sse,gse,kse,Bse,km],[ce]),Wi(wS,[ze,Ue,He,Ne,ne,Q,Ot,Te,_e,_n,Ye,pt,sn,Ui,ve,bn,os,Kt,qe,kd,Al,wg,Pl],[ce]),Wi(Al,[ze,Ue,He,Ne,ne,Ye,Te,_e,pt,Ot,_n,Q,Dn,$2,DU,Ui,ve,bn,os,kd,Al,wg,Pl],[ce]),Wi(Pl,[ze,Ue,He,Ne,ne,Ye,Te,_e,pt,Ui,Q,ve,bn,os,kd,Al,wg,Pl],[ce]),Wi(_S,[Ne,Ss,at,Ts,ne,Q,kS,ve],[ce]),Wi(kS,[ze,Ue,He,Ne,ne,Q,gr,Ja,pt,Te,_e,Sd,Ye,Ot,_n,s
n,Ui,Mre,ve,bn,qe],[ce]),Wi(mS,[Ne,Ss,at,Ts,ne,Q,ES,ve],[ce]),Wi(ES,[ve,bn,Ye,Te,_e,ne,Q,qe,Ss,at,Ts,Lie],[ce]),function
QR(){if(ZC)throw new Error("Cannot enable prod mode after platform
setup.");YC=!1}(),nO().bootstrapModule(vle).catch(t=>console.error(t))}},Is=>{Is(Is.s=452)}]);
+\ No newline at end of file
+
+From 7d560c19493d1adacc861e9853780065b1387261 Mon Sep 17 00:00:00 2001
+From: Klaas de Waal <klaas(a)kldo.nl>
+Date: Sun, 17 Mar 2024 19:42:29 +0100
+Subject: [PATCH 19/21] Fix detection of libglslang in configure
+
+Detection of libglslang by the configure script fails on Fedora 39
+for MythTV version 34. Detection in master works good, so this is
+the backport of that code into the configure of MythTV version 34.
+---
+ mythtv/configure | 11 ++++++++++-
+ 1 file changed, 10 insertions(+), 1 deletion(-)
+
+diff --git a/mythtv/configure b/mythtv/configure
+index 70fa981e3ab..84589b8764b 100755
+--- a/mythtv/configure
++++ b/mythtv/configure
+@@ -6134,7 +6134,16 @@ case $ID in
+ esac
+ esac
+
+-enabled vulkan && enabled libglslang && require_cpp libglslang
glslang/SPIRV/GlslangToSpv.h "glslang::TIntermediate*" -lglslang
${EXTRA_GLSLANG_LIBS:-} -lOSDependent -lHLSL -lOGLCompiler -lSPVRemapper -lSPIRV
-lSPIRV-Tools-opt -lSPIRV-Tools -lpthread
++if enabled vulkan && enabled libglslang ; then
++ # Debian sid no longer ships the OSDependent and HLSL libraries,
++ # but vulkan support on that platform compiles fine without them.
++ # Test to see if these libraries are present, and if not, test
++ # again to see if the compile works without them.
++ GLSLANG_LIBS="${EXTRA_GLSLANG_LIBS:-} -lOSDependent -lSPVRemapper -lSPIRV
-lSPIRV-Tools-opt -lSPIRV-Tools -lpthread"
++ check_lib_cpp glslang/SPIRV/GlslangToSpv.h "glslang::TIntermediate*"
-lglslang ${GLSLANG_LIBS} -lHLSL -lOGLCompiler \
++ || check_lib_cpp glslang/SPIRV/GlslangToSpv.h "glslang::TIntermediate*"
-lglslang ${GLSLANG_LIBS} \
++ || die "ERROR: libglslang (or dependent) library not found"
++fi
+
+ # Qt private headers are required for wayland extras and some DRM functionality on
linux
+ if enabled qtprivateheaders ; then
+
+From ee6bbe981378fb708d1f4ecfb2bf9b27b27d6688 Mon Sep 17 00:00:00 2001
+From: Peter Bennett <pbennett(a)mythtv.org>
+Date: Mon, 25 Mar 2024 13:17:36 -0400
+Subject: [PATCH 20/21] web app fix bug in video sources setup with grabber
+ configuration
+
+Use correct default directory if MYTHCONFDIR is not supplied
+
+Fixes #889
+
+(cherry picked from commit 4a5aca849ddff994a455f6610c7895c603ea663f)
+---
+ .../settings/video-sources/vsource/vsource.component.ts | 8 ++++++--
+ 1 file changed, 6 insertions(+), 2 deletions(-)
+
+diff --git
a/mythtv/html/backend/src/app/config/settings/video-sources/vsource/vsource.component.ts
b/mythtv/html/backend/src/app/config/settings/video-sources/vsource/vsource.component.ts
+index a06026ea88f..c427d9e16b6 100644
+---
a/mythtv/html/backend/src/app/config/settings/video-sources/vsource/vsource.component.ts
++++
b/mythtv/html/backend/src/app/config/settings/video-sources/vsource/vsource.component.ts
+@@ -107,10 +107,14 @@ export class VsourceComponent implements OnInit, AfterViewInit {
+ || this.videoSource.Grabber == '' || this.videoSource.SourceName ==
''
+ || this.work.validateError)
+ this.configCommand = '';
+- else
++ else {
++ let confDir = this.backendInfo.BackendInfo.Env.MYTHCONFDIR;
++ if (!confDir)
++ confDir = this.backendInfo.BackendInfo.Env.HOME + "/.mythtv";
+ this.configCommand = "sudo -u " + this.backendInfo.BackendInfo.Env.USER
+ " "
+ + this.videoSource.Grabber + ' --configure --config-file "'
+- + this.backendInfo.BackendInfo.Env.MYTHCONFDIR + '/' +
this.videoSource.SourceName + '.xmltv"';
++ + confDir + '/' + this.videoSource.SourceName + '.xmltv"';
++ }
+ }
+
+ // good response to add: {"int": 19}
+
+From d6398e090fce4df92acb7831470134846e5ab38e Mon Sep 17 00:00:00 2001
+From: Peter Bennett <pbennett(a)mythtv.org>
+Date: Mon, 25 Mar 2024 13:23:05 -0400
+Subject: [PATCH 21/21] web app rebuild
+
+---
+ mythtv/html/apps/backend/main.js | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/mythtv/html/apps/backend/main.js b/mythtv/html/apps/backend/main.js
+index 51e4327832a..cd118cbb47d 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],{452:()=>{function
Is(t){return"function"==typeof t}let Qo=!1;const di={Promise:void 0,set
useDeprecatedSynchronousErrorHandling(t){if(t){const i=new
Error;console.warn("DEPRECATED! RxJS was set to use deprecated synchronous error
handling behavior by code at: \n"+i.stack)}else Qo&&console.log("RxJS:
Back to a better error behavior. Thank you. <3");Qo=t},get
useDeprecatedSynchronousErrorHandling(){return Qo}};function
Es(t){setTimeout(()=>{throw t},0)}const
Fl={closed:!0,next(t){},error(t){if(di.useDeprecatedSynchronousErrorHandling)throw
t;Es(t)},complete(){}},Nr=Array.isArray||(t=>t&&"number"==typeof
t.length);function Ld(t){return null!==t&&"object"==typeof t}const
Nl=(()=>{function t(i){return Error.call(this),this.message=i?`${i.length} errors
occurred during unsubscription:\n${i.map((e,n)=>`${n+1})
${e.toString()}`).join("\n
")}`:"",this.name="UnsubscriptionError",this.errors=i,this}return
t.pro
totype=Object.create(Error.prototype),t})();class
Et{constructor(i){this.closed=!1,this._parentOrParents=null,this._subscriptions=null,i&&(this._ctorUnsubscribe=!0,this._unsubscribe=i)}unsubscribe(){let
i;if(this.closed)return;let{_parentOrParents:e,_ctorUnsubscribe:n,_unsubscribe:s,_subscriptions:r}=this;if(this.closed=!0,this._parentOrParents=null,this._subscriptions=null,e
instanceof Et)e.remove(this);else if(null!==e)for(let
o=0;o<e.length;++o)e[o].remove(this);if(Is(s)){n&&(this._unsubscribe=void
0);try{s.call(this)}catch(o){i=o instanceof Nl?Dg(o.errors):[o]}}if(Nr(r)){let
o=-1,u=r.length;for(;++o<u;){const
h=r[o];if(Ld(h))try{h.unsubscribe()}catch(b){i=i||[],b instanceof
Nl?i=i.concat(Dg(b.errors)):i.push(b)}}}if(i)throw new Nl(i)}add(i){let e=i;if(!i)return
Et.EMPTY;switch(typeof i){case"function":e=new
Et(i);case"object":if(e===this||e.closed||"function"!=typeof
e.unsubscribe)return e;if(this.closed)return e.unsubscribe(),e;if(!(e instanceof
Et)){const r=e;e=new Et,e._subsc
riptions=[r]}break;default:throw new Error("unrecognized teardown "+i+"
added to
Subscription.")}let{_parentOrParents:n}=e;if(null===n)e._parentOrParents=this;else
if(n instanceof Et){if(n===this)return
e;e._parentOrParents=[n,this]}else{if(-1!==n.indexOf(this))return e;n.push(this)}const
s=this._subscriptions;return null===s?this._subscriptions=[e]:s.push(e),e}remove(i){const
e=this._subscriptions;if(e){const n=e.indexOf(i);-1!==n&&e.splice(n,1)}}}var
t;function Dg(t){return t.reduce((i,e)=>i.concat(e instanceof
Nl?e.errors:e),[])}Et.EMPTY=((t=new Et).closed=!0,t);const Vl="function"==typeof
Symbol?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random();class yt
extends
Et{constructor(i,e,n){switch(super(),this.syncErrorValue=null,this.syncErrorThrown=!1,this.syncErrorThrowable=!1,this.isStopped=!1,arguments.length){case
0:this.destination=Fl;break;case
1:if(!i){this.destination=Fl;break}if("object"==typeof i){i instanceof
yt?(this.syncErrorThrowable=i.syncErrorThrowable,this.destin
ation=i,i.add(this)):(this.syncErrorThrowable=!0,this.destination=new
Mg(this,i));break}default:this.syncErrorThrowable=!0,this.destination=new
Mg(this,i,e,n)}}[Vl](){return this}static create(i,e,n){const s=new yt(i,e,n);return
s.syncErrorThrowable=!1,s}next(i){this.isStopped||this._next(i)}error(i){this.isStopped||(this.isStopped=!0,this._error(i))}complete(){this.isStopped||(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe())}_next(i){this.destination.next(i)}_error(i){this.destination.error(i),this.unsubscribe()}_complete(){this.destination.complete(),this.unsubscribe()}_unsubscribeAndRecycle(){const{_parentOrParents:i}=this;return
this._parentOrParents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parentOrParents=i,this}}class
Mg extends yt{constructor(i,e,n,s){super(),this._parentSubscriber=i;let
r,o=this;Is(e)?r=e:e&&(r=e.next,n=e.error,s=e.complete,e!==Fl&&(o=Object.create(e),Is(o.unsubscribe)&&this.add(o.un
subscribe.bind(o)),o.unsubscribe=this.unsubscribe.bind(this))),this._context=o,this._next=r,this._error=n,this._complete=s}next(i){if(!this.isStopped&&this._next){const{_parentSubscriber:e}=this;di.useDeprecatedSynchronousErrorHandling&&e.syncErrorThrowable?this.__tryOrSetError(e,this._next,i)&&this.unsubscribe():this.__tryOrUnsub(this._next,i)}}error(i){if(!this.isStopped){const{_parentSubscriber:e}=this,{useDeprecatedSynchronousErrorHandling:n}=di;if(this._error)n&&e.syncErrorThrowable?(this.__tryOrSetError(e,this._error,i),this.unsubscribe()):(this.__tryOrUnsub(this._error,i),this.unsubscribe());else
if(e.syncErrorThrowable)n?(e.syncErrorValue=i,e.syncErrorThrown=!0):Es(i),this.unsubscribe();else{if(this.unsubscribe(),n)throw
i;Es(i)}}}complete(){if(!this.isStopped){const{_parentSubscriber:i}=this;if(this._complete){const
e=()=>this._complete.call(this._context);di.useDeprecatedSynchronousErrorHandling&&i.syncErrorThrowable?(this.__tryOrSetError(i,e),this.unsubscribe()):(this.__t
ryOrUnsub(e),this.unsubscribe())}else
this.unsubscribe()}}__tryOrUnsub(i,e){try{i.call(this._context,e)}catch(n){if(this.unsubscribe(),di.useDeprecatedSynchronousErrorHandling)throw
n;Es(n)}}__tryOrSetError(i,e,n){if(!di.useDeprecatedSynchronousErrorHandling)throw new
Error("bad call");try{e.call(this._context,n)}catch(s){return
di.useDeprecatedSynchronousErrorHandling?(i.syncErrorValue=s,i.syncErrorThrown=!0,!0):(Es(s),!0)}return!1}_unsubscribe(){const{_parentSubscriber:i}=this;this._context=null,this._parentSubscriber=null,i.unsubscribe()}}const
Jo="function"==typeof
Symbol&&Symbol.observable||"@@observable";function Bl(t){return t}let
Je=(()=>{class
t{constructor(e){this._isScalar=!1,e&&(this._subscribe=e)}lift(e){const n=new
t;return n.source=this,n.operator=e,n}subscribe(e,n,s){const{operator:r}=this,o=function
FS(t,i,e){if(t){if(t instanceof yt)return t;if(t[Vl])return t[Vl]()}return t||i||e?new
yt(t,i,e):new yt(Fl)}(e,n,s);if(o.add(r?r.call(o,this.source):this.source||di.useD
eprecatedSynchronousErrorHandling&&!o.syncErrorThrowable?this._subscribe(o):this._trySubscribe(o)),di.useDeprecatedSynchronousErrorHandling&&o.syncErrorThrowable&&(o.syncErrorThrowable=!1,o.syncErrorThrown))throw
o.syncErrorValue;return o}_trySubscribe(e){try{return
this._subscribe(e)}catch(n){di.useDeprecatedSynchronousErrorHandling&&(e.syncErrorThrown=!0,e.syncErrorValue=n),function
PS(t){for(;t;){const{closed:i,destination:e,isStopped:n}=t;if(i||n)return!1;t=e&&e
instanceof yt?e:null}return!0}(e)?e.error(n):console.warn(n)}}forEach(e,n){return
new(n=Ig(n))((s,r)=>{let
o;o=this.subscribe(u=>{try{e(u)}catch(h){r(h),o&&o.unsubscribe()}},r,s)})}_subscribe(e){const{source:n}=this;return
n&&n.subscribe(e)}[Jo](){return this}pipe(...e){return 0===e.length?this:function
kg(t){return 0===t.length?Bl:1===t.length?t[0]:function(e){return
t.reduce((n,s)=>s(n),e)}}(e)(this)}toPromise(e){return new(e=Ig(e))((n,s)=>{let
r;this.subscribe(o=>r=o,o=>s(o),()=>n(r))})}}return t.create=i=>new t(i),t}
)();function Ig(t){if(t||(t=di.Promise||Promise),!t)throw new Error("no Promise impl
found");return t}const nr=(()=>{function t(){return
Error.call(this),this.message="object
unsubscribed",this.name="ObjectUnsubscribedError",this}return
t.prototype=Object.create(Error.prototype),t})();class Eg extends
Et{constructor(i,e){super(),this.subject=i,this.subscriber=e,this.closed=!1}unsubscribe(){if(this.closed)return;this.closed=!0;const
i=this.subject,e=i.observers;if(this.subject=null,!e||0===e.length||i.isStopped||i.closed)return;const
n=e.indexOf(this.subscriber);-1!==n&&e.splice(n,1)}}class Rg extends
yt{constructor(i){super(i),this.destination=i}}let ct=(()=>{class t extends
Je{constructor(){super(),this.observers=[],this.closed=!1,this.isStopped=!1,this.hasError=!1,this.thrownError=null}[Vl](){return
new Rg(this)}lift(e){const n=new Lg(this,this);return
n.operator=e,n}next(e){if(this.closed)throw new
nr;if(!this.isStopped){const{observers:n}=this,s=n.length,r=n.slice();for(let o=0;
o<s;o++)r[o].next(e)}}error(e){if(this.closed)throw new
nr;this.hasError=!0,this.thrownError=e,this.isStopped=!0;const{observers:n}=this,s=n.length,r=n.slice();for(let
o=0;o<s;o++)r[o].error(e);this.observers.length=0}complete(){if(this.closed)throw new
nr;this.isStopped=!0;const{observers:e}=this,n=e.length,s=e.slice();for(let
r=0;r<n;r++)s[r].complete();this.observers.length=0}unsubscribe(){this.isStopped=!0,this.closed=!0,this.observers=null}_trySubscribe(e){if(this.closed)throw
new nr;return super._trySubscribe(e)}_subscribe(e){if(this.closed)throw new nr;return
this.hasError?(e.error(this.thrownError),Et.EMPTY):this.isStopped?(e.complete(),Et.EMPTY):(this.observers.push(e),new
Eg(this,e))}asObservable(){const e=new Je;return e.source=this,e}}return
t.create=(i,e)=>new Lg(i,e),t})();class Lg extends
ct{constructor(i,e){super(),this.destination=i,this.source=e}next(i){const{destination:e}=this;e&&e.next&&e.next(i)}error(i){const{destination:e}=this;e&&e.error&&this.destination.er
ror(i)}complete(){const{destination:i}=this;i&&i.complete&&this.destination.complete()}_subscribe(i){const{source:e}=this;return
e?this.source.subscribe(i):Et.EMPTY}}function Vr(t){return
t&&"function"==typeof t.schedule}function et(t,i){return
function(n){if("function"!=typeof t)throw new TypeError("argument is not a
function. Are you looking for `mapTo()`?");return n.lift(new NS(t,i))}}class
NS{constructor(i,e){this.project=i,this.thisArg=e}call(i,e){return e.subscribe(new
VS(i,this.project,this.thisArg))}}class VS extends
yt{constructor(i,e,n){super(i),this.project=e,this.count=0,this.thisArg=n||this}_next(i){let
e;try{e=this.project.call(this.thisArg,i,this.count++)}catch(n){return void
this.destination.error(n)}this.destination.next(e)}}const Og=t=>i=>{for(let
e=0,n=t.length;e<n&&!i.closed;e++)i.next(t[e]);i.complete()},Hl=function
HS(){return"function"==typeof
Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}(),Ag=t=>t&&"number"==typeof
t.length&&"function"!=typeof t;funct
ion Pg(t){return!!t&&"function"!=typeof
t.subscribe&&"function"==typeof t.then}const
Od=t=>{if(t&&"function"==typeof t[Jo])return(t=>i=>{const
e=t[Jo]();if("function"!=typeof e.subscribe)throw new TypeError("Provided
object does not correctly implement Symbol.observable");return
e.subscribe(i)})(t);if(Ag(t))return
Og(t);if(Pg(t))return(t=>i=>(t.then(e=>{i.closed||(i.next(e),i.complete())},e=>i.error(e)).then(null,Es),i))(t);if(t&&"function"==typeof
t[Hl])return(t=>i=>{const e=t[Hl]();for(;;){let n;try{n=e.next()}catch(s){return
i.error(s),i}if(n.done){i.complete();break}if(i.next(n.value),i.closed)break}return"function"==typeof
e.return&&i.add(()=>{e.return&&e.return()}),i})(t);{const e=`You
provided ${Ld(t)?"an invalid object":`'${t}'`} where a stream was
expected. You can provide an Observable, Promise, Array, or Iterable.`;throw new
TypeError(e)}};function Ad(t,i){return new Je(e=>{const n=new Et;let s=0;return
n.add(i.schedule(function(){s!==t.length?(e.next(t[s++]),e.closed||n.
add(this.schedule())):e.complete()})),n})}function Mn(t,i){return i?function
KS(t,i){if(null!=t){if(function $S(t){return t&&"function"==typeof
t[Jo]}(t))return function US(t,i){return new Je(e=>{const n=new Et;return
n.add(i.schedule(()=>{const
s=t[Jo]();n.add(s.subscribe({next(r){n.add(i.schedule(()=>e.next(r)))},error(r){n.add(i.schedule(()=>e.error(r)))},complete(){n.add(i.schedule(()=>e.complete()))}}))})),n})}(t,i);if(Pg(t))return
function zS(t,i){return new Je(e=>{const n=new Et;return
n.add(i.schedule(()=>t.then(s=>{n.add(i.schedule(()=>{e.next(s),n.add(i.schedule(()=>e.complete()))}))},s=>{n.add(i.schedule(()=>e.error(s)))}))),n})}(t,i);if(Ag(t))return
Ad(t,i);if(function WS(t){return t&&"function"==typeof
t[Hl]}(t)||"string"==typeof t)return function jS(t,i){if(!t)throw new
Error("Iterable cannot be null");return new Je(e=>{const n=new Et;let
s;return n.add(()=>{s&&"function"==typeof
s.return&&s.return()}),n.add(i.schedule(()=>{s=t[Hl](),n.add(i.schedule(function(){if(e.cl
osed)return;let r,o;try{const u=s.next();r=u.value,o=u.done}catch(u){return void
e.error(u)}o?e.complete():(e.next(r),this.schedule())}))})),n})}(t,i)}throw new
TypeError((null!==t&&typeof t||t)+" is not observable")}(t,i):t
instanceof Je?t:new Je(Od(t))}class Yo extends
yt{constructor(i){super(),this.parent=i}_next(i){this.parent.notifyNext(i)}_error(i){this.parent.notifyError(i),this.unsubscribe()}_complete(){this.parent.notifyComplete(),this.unsubscribe()}}class
Zo extends
yt{notifyNext(i){this.destination.next(i)}notifyError(i){this.destination.error(i)}notifyComplete(){this.destination.complete()}}function
Xo(t,i){if(i.closed)return;if(t instanceof Je)return t.subscribe(i);let
e;try{e=Od(t)(i)}catch(n){i.error(n)}return e}function
yn(t,i,e=Number.POSITIVE_INFINITY){return"function"==typeof
i?n=>n.pipe(yn((s,r)=>Mn(t(s,r)).pipe(et((o,u)=>i(s,o,r,u))),e)):("number"==typeof
i&&(e=i),n=>n.lift(new QS(t,e)))}class
QS{constructor(i,e=Number.POSITIVE_INFINITY){this.project=i,this.conc
urrent=e}call(i,e){return e.subscribe(new JS(i,this.project,this.concurrent))}}class JS
extends
Zo{constructor(i,e,n=Number.POSITIVE_INFINITY){super(i),this.project=e,this.concurrent=n,this.hasCompleted=!1,this.buffer=[],this.active=0,this.index=0}_next(i){this.active<this.concurrent?this._tryNext(i):this.buffer.push(i)}_tryNext(i){let
e;const n=this.index++;try{e=this.project(i,n)}catch(s){return void
this.destination.error(s)}this.active++,this._innerSub(e)}_innerSub(i){const e=new
Yo(this),n=this.destination;n.add(e);const
s=Xo(i,e);s!==e&&n.add(s)}_complete(){this.hasCompleted=!0,0===this.active&&0===this.buffer.length&&this.destination.complete(),this.unsubscribe()}notifyNext(i){this.destination.next(i)}notifyComplete(){const
i=this.buffer;this.active--,i.length>0?this._next(i.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()}}function
ea(t=Number.POSITIVE_INFINITY){return yn(Bl,t)}function Pd(t,i){return i?Ad(t,i):new
Je(Og(t))}function Fd(){return funct
ion(i){return i.lift(new ZS(i))}}class
ZS{constructor(i){this.connectable=i}call(i,e){const{connectable:n}=this;n._refCount++;const
s=new XS(i,n),r=e.subscribe(s);return s.closed||(s.connection=n.connect()),r}}class XS
extends
yt{constructor(i,e){super(i),this.connectable=e}_unsubscribe(){const{connectable:i}=this;if(!i)return
void(this.connection=null);this.connectable=null;const e=i._refCount;if(e<=0)return
void(this.connection=null);if(i._refCount=e-1,e>1)return
void(this.connection=null);const{connection:n}=this,s=i._connection;this.connection=null,s&&(!n||s===n)&&s.unsubscribe()}}class
Fg extends
Je{constructor(i,e){super(),this.source=i,this.subjectFactory=e,this._refCount=0,this._isComplete=!1}_subscribe(i){return
this.getSubject().subscribe(i)}getSubject(){const
i=this._subject;return(!i||i.isStopped)&&(this._subject=this.subjectFactory()),this._subject}connect(){let
i=this._connection;return i||(this._isComplete=!1,i=this._connection=new
Et,i.add(this.source.subscribe(new t
x(this.getSubject(),this))),i.closed&&(this._connection=null,i=Et.EMPTY)),i}refCount(){return
Fd()(this)}}const ex=(()=>{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
tx extends
Rg{constructor(i,e){super(i),this.connectable=e}_error(i){this._unsubscribe(),super._error(i)}_complete(){this.connectable._isComplete=!0,this._unsubscribe(),super._complete()}_unsubscribe(){const
i=this.connectable;if(i){this.connectable=null;const
e=i._connection;i._refCount=0,i._subject=null,i._connection=null,e&&e.unsubscribe()}}}class
sx{constructor(i,e){this.subjectFactory=i,this.selector=e}call(i,e){const{selector:n}=this,s=this.subjectFactory(),r=n(s).subscribe(i);return
r.add(e.subscribe(s)),r}}function rx(){return new ct}
function wt(t){for(let i in t)if(t[i]===wt)return i;throw Error("Could not find
renamed property on target object.")}function Nd(t,i){for(const e in
i)i.hasOwnProperty(e)&&!t.hasOwnProperty(e)&&(t[e]=i[e])}function
ft(t){if("string"==typeof t)return
t;if(Array.isArray(t))return"["+t.map(ft).join(",
")+"]";if(null==t)return""+t;if(t.overriddenName)return`${t.overriddenName}`;if(t.name)return`${t.name}`;const
i=t.toString();if(null==i)return""+i;const
e=i.indexOf("\n");return-1===e?i:i.substring(0,e)}function Vd(t,i){return
null==t||""===t?null===i?"":i:null==i||""===i?t:t+"
"+i}const ax=wt({__forward_ref__:wt});function je(t){return
t.__forward_ref__=je,t.toString=function(){return ft(this())},t}function Ve(t){return
Ng(t)?t():t}function Ng(t){return"function"==typeof
t&&t.hasOwnProperty(ax)&&t.__forward_ref__===je}class re extends
Error{constructor(i,e){super(function Bd(t,i){return`NG0${Math.abs(t)}${i?":
"+i:""}`}(i,e)),this.code=i}}function
Ie(t){return"string"==typeof t?t:null==
t?"":String(t)}function wn(t){return"function"==typeof
t?t.name||t.toString():"object"==typeof
t&&null!=t&&"function"==typeof
t.type?t.type.name||t.type.toString():Ie(t)}function ql(t,i){const e=i?` in
${i}`:"";throw new re(-201,`No provider for ${wn(t)} found${e}`)}function
Jn(t,i){null==t&&function gt(t,i,e,n){throw new Error(`ASSERTION ERROR:
${t}`+(null==n?"":` [Expected=> ${e} ${n} ${i}
<=Actual]`))}(i,t,null,"!=")}function
X(t){return{token:t.token,providedIn:t.providedIn||null,factory:t.factory,value:void
0}}function ue(t){return{providers:t.providers||[],imports:t.imports||[]}}function
Hd(t){return Vg(t,Gl)||Vg(t,Hg)}function Vg(t,i){return
t.hasOwnProperty(i)?t[i]:null}function Bg(t){return
t&&(t.hasOwnProperty(qd)||t.hasOwnProperty(mx))?t[qd]:null}const
Gl=wt({\u0275prov:wt}),qd=wt({\u0275inj:wt}),Hg=wt({ngInjectableDef:wt}),mx=wt({ngInjectorDef:wt});var
xe=(()=>((xe=xe||{})[xe.Default=0]="Default",xe[xe.Host=1]="Host",xe[xe.Self=2]="Self",xe[xe.SkipSelf=4]="SkipSelf",xe[x
e.Optional=8]="Optional",xe))();let Gd;function Rs(t){const i=Gd;return
Gd=t,i}function qg(t,i,e){const n=Hd(t);return
n&&"root"==n.providedIn?void
0===n.value?n.value=n.factory():n.value:e&xe.Optional?null:void 0!==i?i:void
ql(ft(t),"Injector")}function Ls(t){return{toString:t}.toString()}var
Mi=(()=>((Mi=Mi||{})[Mi.OnPush=0]="OnPush",Mi[Mi.Default=1]="Default",Mi))(),ki=(()=>(function(t){t[t.Emulated=0]="Emulated",t[t.None=2]="None",t[t.ShadowDom=3]="ShadowDom"}(ki||(ki={})),ki))();const
gx="undefined"!=typeof
globalThis&&globalThis,_x="undefined"!=typeof
window&&window,bx="undefined"!=typeof
self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof
WorkerGlobalScope&&self,vt=gx||"undefined"!=typeof
global&&global||_x||bx,Br={},Tt=[],Ul=wt({\u0275cmp:wt}),Ud=wt({\u0275dir:wt}),zd=wt({\u0275pipe:wt}),Gg=wt({\u0275mod:wt}),ps=wt({\u0275fac:wt}),ta=wt({__NG_ELEMENT_ID__:wt});let
vx=0;function z(t){return Ls(()=>{const
e={},n={type:t.type,providersResolver:null,decls:t.decls,vars:t
.vars,factory: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===Mi.OnPush,directiveDefs:null,pipeDefs:null,selectors:t.selectors||Tt,viewQuery:t.viewQuery||null,features:t.features||null,data:t.data||{},encapsulation:t.encapsulation||ki.Emulated,id:"c",styles:t.styles||Tt,_:null,setInput:null,schemas:t.schemas||null,tView:null},s=t.directives,r=t.features,o=t.pipes;return
n.id+=vx++,n.inputs=$g(t.inputs,e),n.outputs=$g(t.outputs),r&&r.forEach(u=>u(n)),n.directiveDefs=s?()=>("function"==typeof
s?s():s).map(Ug):null,n.pipeDefs=o?()=>("function"==typeof
o?o():o).map(zg):null,n})}function Wi(t,i,e){const
n=t.\u0275cmp;n.directiveDefs=()=>i.map(Ug),n.pipeDefs=()=>e.map(zg)}function
Ug(t){return Tn(t)||function Os(t){return t[Ud]||n
ull}(t)}function zg(t){return function ir(t){return t[zd]||null}(t)}const jg={};function
he(t){return Ls(()=>{const
i={type:t.type,bootstrap:t.bootstrap||Tt,declarations:t.declarations||Tt,imports:t.imports||Tt,exports:t.exports||Tt,transitiveCompileScopes:null,schemas:t.schemas||null,id:t.id||null};return
null!=t.id&&(jg[t.id]=t.type),i})}function $g(t,i){if(null==t)return Br;const
e={};for(const n in t)if(t.hasOwnProperty(n)){let
s=t[n],r=s;Array.isArray(s)&&(r=s[1],s=s[0]),e[s]=n,i&&(i[s]=r)}return
e}const le=z;function
An(t){return{type:t.type,name:t.name,factory:null,pure:!1!==t.pure,onDestroy:t.type.prototype.ngOnDestroy||null}}function
Tn(t){return t[Ul]||null}function pi(t,i){const e=t[Gg]||null;if(!e&&!0===i)throw
new Error(`Type ${ft(t)} does not have '\u0275mod' property.`);return e}function
Ki(t){return Array.isArray(t)&&"object"==typeof t[1]}function
Ei(t){return Array.isArray(t)&&!0===t[1]}function Wd(t){return
0!=(8&t.flags)}function Wl(t){return 2==(2&t.flags)}functi
on Kl(t){return 1==(1&t.flags)}function Ri(t){return null!==t.template}function
Sx(t){return 0!=(512&t[2])}function ar(t,i){return
t.hasOwnProperty(ps)?t[ps]:null}class
Mx{constructor(i,e,n){this.previousValue=i,this.currentValue=e,this.firstChange=n}isFirstChange(){return
this.firstChange}}function fn(){return Kg}function Kg(t){return
t.type.prototype.ngOnChanges&&(t.setInput=Ix),kx}function kx(){const
t=Jg(this),i=null==t?void 0:t.current;if(i){const e=t.previous;if(e===Br)t.previous=i;else
for(let n in i)e[n]=i[n];t.current=null,this.ngOnChanges(i)}}function Ix(t,i,e,n){const
s=Jg(t)||function Ex(t,i){return
t[Qg]=i}(t,{previous:Br,current:null}),r=s.current||(s.current={}),o=s.previous,u=this.declaredInputs[e],h=o[u];r[u]=new
Mx(h&&h.currentValue,i,o===Br),t[n]=i}fn.ngInherit=!0;const
Qg="__ngSimpleChanges__";function Jg(t){return t[Qg]||null}let Zd;function
Xd(){return void 0!==Zd?Zd:"undefined"!=typeof document?document:void 0}function
$t(t){return!!t.listen}const Yg={createRe
nderer:(t,i)=>Xd()};function Yt(t){for(;Array.isArray(t);)t=t[0];return t}function
Ql(t,i){return Yt(i[t])}function Zn(t,i){return Yt(i[t.index])}function ep(t,i){return
t.data[i]}function zr(t,i){return t[i]}function Xn(t,i){const e=i[t];return
Ki(e)?e:e[0]}function Zg(t){return 4==(4&t[2])}function tp(t){return
128==(128&t[2])}function As(t,i){return null==i?null:t[i]}function
Xg(t){t[18]=0}function np(t,i){t[5]+=i;let
e=t,n=t[3];for(;null!==n&&(1===i&&1===e[5]||-1===i&&0===e[5]);)n[5]+=i,e=n,n=n[3]}const
Ee={lFrame:l_(null),bindingsEnabled:!0};function t_(){return Ee.bindingsEnabled}function
$(){return Ee.lFrame.lView}function tt(){return Ee.lFrame.tView}function v(t){return
Ee.lFrame.contextLView=t,t[8]}function rn(){let
t=n_();for(;null!==t&&64===t.type;)t=t.parent;return t}function n_(){return
Ee.lFrame.currentTNode}function Qi(t,i){const
e=Ee.lFrame;e.currentTNode=t,e.isParent=i}function ip(){return Ee.lFrame.isParent}function
sp(){Ee.lFrame.isParent=!1}function Fn(){const t=
Ee.lFrame;let
i=t.bindingRootIndex;return-1===i&&(i=t.bindingRootIndex=t.tView.bindingStartIndex),i}function
hs(){return Ee.lFrame.bindingIndex}function jr(){return Ee.lFrame.bindingIndex++}function
ms(t){const i=Ee.lFrame,e=i.bindingIndex;return i.bindingIndex=i.bindingIndex+t,e}function
Wx(t,i){const e=Ee.lFrame;e.bindingIndex=e.bindingRootIndex=t,rp(i)}function
rp(t){Ee.lFrame.currentDirectiveIndex=t}function r_(){return
Ee.lFrame.currentQueryIndex}function ap(t){Ee.lFrame.currentQueryIndex=t}function
Qx(t){const i=t[1];return 2===i.type?i.declTNode:1===i.type?t[6]:null}function
o_(t,i,e){if(e&xe.SkipSelf){let
s=i,r=t;for(;!(s=s.parent,null!==s||e&xe.Host||(s=Qx(r),null===s||(r=r[15],10&s.type))););if(null===s)return!1;i=s,t=r}const
n=Ee.lFrame=a_();return n.currentTNode=i,n.lView=t,!0}function Yl(t){const
i=a_(),e=t[1];Ee.lFrame=i,i.currentTNode=e.firstChild,i.lView=t,i.tView=e,i.contextLView=t,i.bindingIndex=e.bindingStartIndex,i.inI18n=!1}function
a_(){const t=Ee.lFrame,i=null
===t?null:t.child;return null===i?l_(t):i}function l_(t){const
i={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=i),i}function c_(){const t=Ee.lFrame;return
Ee.lFrame=t.parent,t.currentTNode=null,t.lView=null,t}const u_=c_;function Zl(){const
t=c_();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
Nn(){return Ee.lFrame.selectedIndex}function Ps(t){Ee.lFrame.selectedIndex=t}function
Vt(){const t=Ee.lFrame;return ep(t.tView,t.selectedIndex)}function Xl(t,i){for(let
e=i.directiveStart,n=i.directiveEnd;e<n;e++){const
r=t.data[e].type.prototype,{ngAfterContentInit:o,ngAfterContentChecked:u,ngAfterViewInit:h,ngAfte
rViewChecked:b,ngOnDestroy:y}=r;o&&(t.contentHooks||(t.contentHooks=[])).push(-e,o),u&&((t.contentHooks||(t.contentHooks=[])).push(e,u),(t.contentCheckHooks||(t.contentCheckHooks=[])).push(e,u)),h&&(t.viewHooks||(t.viewHooks=[])).push(-e,h),b&&((t.viewHooks||(t.viewHooks=[])).push(e,b),(t.viewCheckHooks||(t.viewCheckHooks=[])).push(e,b)),null!=y&&(t.destroyHooks||(t.destroyHooks=[])).push(e,y)}}function
ec(t,i,e){p_(t,i,3,e)}function tc(t,i,e,n){(3&t[2])===e&&p_(t,i,e,n)}function
lp(t,i){let e=t[2];(3&e)===i&&(e&=2047,e+=1,t[2]=e)}function
p_(t,i,e,n){const r=null!=n?n:-1,o=i.length-1;let u=0;for(let h=void
0!==n?65535&t[18]:0;h<o;h++)if("number"==typeof
i[h+1]){if(u=i[h],null!=n&&u>=n)break}else
i[h]<0&&(t[18]+=65536),(u<r||-1==r)&&(iD(t,e,i,h),t[18]=(4294901760&t[18])+h+2),h++}function
iD(t,i,e,n){const
s=e[n]<0,r=e[n+1],u=t[s?-e[n]:e[n]];if(s){if(t[2]>>11<t[18]>>16&&(3&t[2])===i){t[2]+=2048;try{r.call(u)}finally{}}}else
try{r.call(u)}finally{}}class oa{constructor(i,e,n){this.fac
tory=i,this.resolving=!1,this.canSeeViewProviders=e,this.injectImpl=n}}function
nc(t,i,e){const n=$t(t);let s=0;for(;s<e.length;){const
r=e[s];if("number"==typeof r){if(0!==r)break;s++;const
o=e[s++],u=e[s++],h=e[s++];n?t.setAttribute(i,u,h,o):i.setAttributeNS(o,u,h)}else{const
o=r,u=e[++s];up(o)?n&&t.setProperty(i,o,u):n?t.setAttribute(i,o,u):i.setAttribute(o,u),s++}}return
s}function h_(t){return 3===t||4===t||6===t}function up(t){return
64===t.charCodeAt(0)}function
ic(t,i){if(null!==i&&0!==i.length)if(null===t||0===t.length)t=i.slice();else{let
e=-1;for(let n=0;n<i.length;n++){const s=i[n];"number"==typeof
s?e=s:0===e||m_(t,e,s,null,-1===e||2===e?i[++n]:null)}}return t}function m_(t,i,e,n,s){let
r=0,o=t.length;if(-1===i)o=-1;else for(;r<t.length;){const
u=t[r++];if("number"==typeof
u){if(u===i){o=-1;break}if(u>i){o=r-1;break}}}for(;r<t.length;){const
u=t[r];if("number"==typeof u)break;if(u===e){if(null===n)return
void(null!==s&&(t[r+1]=s));if(n===t[r+1])return void(t[r+2]=s)}r++
,null!==n&&r++,null!==s&&r++}-1!==o&&(t.splice(o,0,i),r=o+1),t.splice(r++,0,e),null!==n&&t.splice(r++,0,n),null!==s&&t.splice(r++,0,s)}function
f_(t){return-1!==t}function $r(t){return 32767&t}function Wr(t,i){let e=function
lD(t){return t>>16}(t),n=i;for(;e>0;)n=n[15],e--;return n}let dp=!0;function
sc(t){const i=dp;return dp=t,i}let cD=0;function la(t,i){const e=hp(t,i);if(-1!==e)return
e;const
n=i[1];n.firstCreatePass&&(t.injectorIndex=i.length,pp(n.data,t),pp(i,null),pp(n.blueprint,null));const
s=rc(t,i),r=t.injectorIndex;if(f_(s)){const o=$r(s),u=Wr(s,i),h=u[1].data;for(let
b=0;b<8;b++)i[r+b]=u[o+b]|h[o+b]}return i[r+8]=s,r}function
pp(t,i){t.push(0,0,0,0,0,0,0,0,i)}function
hp(t,i){return-1===t.injectorIndex||t.parent&&t.parent.injectorIndex===t.injectorIndex||null===i[t.injectorIndex+8]?-1:t.injectorIndex}function
rc(t,i){if(t.parent&&-1!==t.parent.injectorIndex)return t.parent.injectorIndex;let
e=0,n=null,s=i;for(;null!==s;){const r=s[1],o=r.type;if(n=2===o?r.declTNode:1===o
?s[6]:null,null===n)return-1;if(e++,s=s[15],-1!==n.injectorIndex)return
n.injectorIndex|e<<16}return-1}function oc(t,i,e){!function uD(t,i,e){let
n;"string"==typeof
e?n=e.charCodeAt(0)||0:e.hasOwnProperty(ta)&&(n=e[ta]),null==n&&(n=e[ta]=cD++);const
s=255&n;i.data[t+(s>>5)]|=1<<s}(t,i,e)}function
b_(t,i,e){if(e&xe.Optional)return t;ql(i,"NodeInjector")}function
v_(t,i,e,n){if(e&xe.Optional&&void
0===n&&(n=null),0==(e&(xe.Self|xe.Host))){const s=t[9],r=Rs(void 0);try{return
s?s.get(i,n,e&xe.Optional):qg(i,n,e&xe.Optional)}finally{Rs(r)}}return
b_(n,i,e)}function C_(t,i,e,n=xe.Default,s){if(null!==t){const r=function
mD(t){if("string"==typeof t)return t.charCodeAt(0)||0;const
i=t.hasOwnProperty(ta)?t[ta]:void 0;return"number"==typeof
i?i>=0?255&i:pD:i}(e);if("function"==typeof r){if(!o_(i,t,n))return
n&xe.Host?b_(s,e,n):v_(i,e,n,s);try{const o=r(n);if(null!=o||n&xe.Optional)return
o;ql(e)}finally{u_()}}else if("number"==typeof r){let
o=null,u=hp(t,i),h=-1,b=n&xe.Host?i[16][6]:null;for
((-1===u||n&xe.SkipSelf)&&(h=-1===u?rc(t,i):i[u+8],-1!==h&&T_(n,!1)?(o=i[1],u=$r(h),i=Wr(h,i)):u=-1);-1!==u;){const
y=i[1];if(w_(r,u,y.data)){const w=hD(u,i,e,o,n,b);if(w!==y_)return
w}h=i[u+8],-1!==h&&T_(n,i[1].data[u+8]===b)&&w_(r,u,i)?(o=y,u=$r(h),i=Wr(h,i)):u=-1}}}return
v_(i,e,n,s)}const y_={};function pD(){return new Kr(rn(),$())}function
hD(t,i,e,n,s,r){const
o=i[1],u=o.data[t+8],y=ac(u,o,e,null==n?Wl(u)&&dp:n!=o&&0!=(3&u.type),s&xe.Host&&r===u);return
null!==y?ca(i,o,y,u):y_}function ac(t,i,e,n,s){const
r=t.providerIndexes,o=i.data,u=1048575&r,h=t.directiveStart,y=r>>20,M=s?u+y:t.directiveEnd;for(let
E=n?u:u+y;E<M;E++){const
L=o[E];if(E<h&&e===L||E>=h&&L.type===e)return E}if(s){const
E=o[h];if(E&&Ri(E)&&E.type===e)return h}return null}function
ca(t,i,e,n){let s=t[e];const r=i.data;if(function sD(t){return t instanceof oa}(s)){const
o=s;o.resolving&&function lx(t,i){const e=i?`. Dependency path: ${i.join("
> ")} > ${t}`:"";throw new re(-200,`Circular dependency in DI
detected
for ${t}${e}`)}(wn(r[e]));const u=sc(o.canSeeViewProviders);o.resolving=!0;const
h=o.injectImpl?Rs(o.injectImpl):null;o_(t,n,xe.Default);try{s=t[e]=o.factory(void
0,r,t,n),i.firstCreatePass&&e>=n.directiveStart&&function
nD(t,i,e){const{ngOnChanges:n,ngOnInit:s,ngDoCheck:r}=i.type.prototype;if(n){const
o=Kg(i);(e.preOrderHooks||(e.preOrderHooks=[])).push(t,o),(e.preOrderCheckHooks||(e.preOrderCheckHooks=[])).push(t,o)}s&&(e.preOrderHooks||(e.preOrderHooks=[])).push(0-t,s),r&&((e.preOrderHooks||(e.preOrderHooks=[])).push(t,r),(e.preOrderCheckHooks||(e.preOrderCheckHooks=[])).push(t,r))}(e,r[e],i)}finally{null!==h&&Rs(h),sc(u),o.resolving=!1,u_()}}return
s}function w_(t,i,e){return!!(e[i+(t>>5)]&1<<t)}function
T_(t,i){return!(t&xe.Self||t&xe.Host&&i)}class
Kr{constructor(i,e){this._tNode=i,this._lView=e}get(i,e,n){return
C_(this._tNode,this._lView,i,n,e)}}function on(t){return Ls(()=>{const
i=t.prototype.constructor,e=i[ps]||mp(i),n=Object.prototype;let
s=Object.getPrototypeOf(t.prot
otype).constructor;for(;s&&s!==n;){const
r=s[ps]||mp(s);if(r&&r!==e)return r;s=Object.getPrototypeOf(s)}return r=>new
r})}function mp(t){return Ng(t)?()=>{const i=mp(Ve(t));return
i&&i()}:ar(t)}function ua(t){return function
dD(t,i){if("class"===i)return t.classes;if("style"===i)return
t.styles;const e=t.attrs;if(e){const n=e.length;let s=0;for(;s<n;){const
r=e[s];if(h_(r))break;if(0===r)s+=2;else if("number"==typeof
r)for(s++;s<n&&"string"==typeof e[s];)s++;else{if(r===i)return
e[s+1];s+=2}}}return null}(rn(),t)}const Jr="__parameters__";function
Zr(t,i,e){return Ls(()=>{const n=function fp(t){return function(...e){if(t){const
n=t(...e);for(const s in n)this[s]=n[s]}}}(i);function s(...r){if(this instanceof s)return
n.apply(this,r),this;const o=new s(...r);return u.annotation=o,u;function u(h,b,y){const
w=h.hasOwnProperty(Jr)?h[Jr]:Object.defineProperty(h,Jr,{value:[]})[Jr];for(;w.length<=y;)w.push(null);return(w[y]=w[y]||[]).push(o),h}}return
e&&(s.prototype=Object.create(e.protot
ype)),s.prototype.ngMetadataName=t,s.annotationCls=s,s})}class
be{constructor(i,e){this._desc=i,this.ngMetadataName="InjectionToken",this.\u0275prov=void
0,"number"==typeof e?this.__NG_ELEMENT_ID__=e:void
0!==e&&(this.\u0275prov=X({token:this,providedIn:e.providedIn||"root",factory:e.factory}))}toString(){return`InjectionToken
${this._desc}`}}const gD=new be("AnalyzeForEntryComponents");function
fi(t,i){void 0===i&&(i=t);for(let e=0;e<t.length;e++){let
n=t[e];Array.isArray(n)?(i===t&&(i=t.slice(0,e)),fi(n,i)):i!==t&&i.push(n)}return
i}function Ji(t,i){t.forEach(e=>Array.isArray(e)?Ji(e,i):i(e))}function
x_(t,i,e){i>=t.length?t.push(e):t.splice(i,0,e)}function lc(t,i){return
i>=t.length-1?t.pop():t.splice(i,1)[0]}function ha(t,i){const e=[];for(let
n=0;n<t;n++)e.push(i);return e}function ei(t,i,e){let n=Xr(t,i);return
n>=0?t[1|n]=e:(n=~n,function vD(t,i,e,n){let s=t.length;if(s==i)t.push(e,n);else
if(1===s)t.push(n,t[0]),t[0]=e;else{for(s--,t.push(t[s-1],t[s]);s>i;)t[s]=t[s-2],s--;t[
i]=e,t[i+1]=n}}(t,n,i,e)),n}function _p(t,i){const e=Xr(t,i);if(e>=0)return
t[1|e]}function Xr(t,i){return function k_(t,i,e){let
n=0,s=t.length>>e;for(;s!==n;){const
r=n+(s-n>>1),o=t[r<<e];if(i===o)return
r<<e;o>i?s=r:n=r+1}return~(s<<e)}(t,i,1)}const
ma={},vp="__NG_DI_FLAG__",uc="ngTempTokenPath",DD=/\n/gm,E_="__source",kD=wt({provide:String,useValue:wt});let
fa;function R_(t){const i=fa;return fa=t,i}function ID(t,i=xe.Default){if(void
0===fa)throw new re(203,"");return null===fa?qg(t,void
0,i):fa.get(t,i&xe.Optional?null:void 0,i)}function K(t,i=xe.Default){return(function
fx(){return Gd}()||ID)(Ve(t),i)}const O_=K;function Cp(t){const i=[];for(let
e=0;e<t.length;e++){const n=Ve(t[e]);if(Array.isArray(n)){if(0===n.length)throw new
re(900,"");let s,r=xe.Default;for(let o=0;o<n.length;o++){const
u=n[o],h=ED(u);"number"==typeof h?-1===h?s=u.token:r|=h:s=u}i.push(K(s,r))}else
i.push(K(n))}return i}function ga(t,i){return t[vp]=i,t.prototype[vp]=i,t}function
ED(t){return t[vp]}const
dc=ga(Zr("Inject",t=>({token:t})),-1),Ns=ga(Zr("Optional"),8),_a=ga(Zr("SkipSelf"),4);var
ti=(()=>((ti=ti||{})[ti.Important=1]="Important",ti[ti.DashCase=2]="DashCase",ti))();const
H_="__ngContext__";function In(t,i){t[H_]=i}function Tp(t){const i=function
va(t){return t[H_]||null}(t);return i?Array.isArray(i)?i:i.lView:null}function
xp(t,i){return undefined(t,i)}function Ca(t){const i=t[3];return Ei(i)?i[3]:i}function
Dp(t){return W_(t[13])}function Mp(t){return W_(t[4])}function
W_(t){for(;null!==t&&!Ei(t);)t=t[4];return t}function
to(t,i,e,n,s){if(null!=n){let r,o=!1;Ei(n)?r=n:Ki(n)&&(o=!0,n=n[0]);const
u=Yt(n);0===t&&null!==e?null==s?X_(i,e,u):lr(i,e,u,s||null,!0):1===t&&null!==e?lr(i,e,u,s||null,!0):2===t?function
Ap(t,i,e){const n=hc(t,i);n&&function
aM(t,i,e,n){$t(t)?t.removeChild(i,e,n):i.removeChild(e)}(t,n,i,e)}(i,u,o):3===t&&i.destroyNode(u),null!=r&&function
uM(t,i,e,n,s){const r=e[7];r!==Yt(e)&&to(i,t,n,r,s);for(let
u=10;u<e.length;u++){const h=e[u];ya(h[1],h,t,i,n,r)}}
(i,t,r,e,s)}}function Ip(t,i,e){if($t(t))return t.createElement(i,e);{const
n=null!==e?function Ax(t){const
i=t.toLowerCase();return"svg"===i?"http://www.w3.org/2000/...
null===n?t.createElement(i):t.createElementNS(n,i)}}function Q_(t,i){const
e=t[9],n=e.indexOf(i),s=i[3];1024&i[2]&&(i[2]&=-1025,np(s,-1)),e.splice(n,1)}function
Ep(t,i){if(t.length<=10)return;const e=10+i,n=t[e];if(n){const
s=n[17];null!==s&&s!==t&&Q_(s,n),i>0&&(t[e-1][4]=n[4]);const
r=lc(t,10+i);!function
XD(t,i){ya(t,i,i[11],2,null,null),i[0]=null,i[6]=null}(n[1],n);const
o=r[19];null!==o&&o.detachView(r[1]),n[3]=null,n[4]=null,n[2]&=-129}return
n}function J_(t,i){if(!(256&i[2])){const
e=i[11];$t(e)&&e.destroyNode&&ya(t,i,e,3,null,null),function nM(t){let
i=t[13];if(!i)return Rp(t[1],t);for(;i;){let e=null;if(Ki(i))e=i[13];else{const
n=i[10];n&&(e=n)}if(!e){for(;i&&!i[4]&&i!==t;)Ki(i)&&Rp(i[1],i),i=i[3];null===i&&(i=t),Ki(i)&&Rp(i[1],i),e=i&&i[4]}i=
e}}(i)}}function Rp(t,i){if(!(256&i[2])){i[2]&=-129,i[2]|=256,function
oM(t,i){let e;if(null!=t&&null!=(e=t.destroyHooks))for(let
n=0;n<e.length;n+=2){const s=i[e[n]];if(!(s instanceof oa)){const
r=e[n+1];if(Array.isArray(r))for(let o=0;o<r.length;o+=2){const
u=s[r[o]],h=r[o+1];try{h.call(u)}finally{}}else try{r.call(s)}finally{}}}}(t,i),function
rM(t,i){const e=t.cleanup,n=i[7];let s=-1;if(null!==e)for(let
r=0;r<e.length-1;r+=2)if("string"==typeof e[r]){const
o=e[r+1],u="function"==typeof
o?o(i):Yt(i[o]),h=n[s=e[r+2]],b=e[r+3];"boolean"==typeof
b?u.removeEventListener(e[r],h,b):b>=0?n[s=b]():n[s=-b].unsubscribe(),r+=2}else{const
o=n[s=e[r+1]];e[r].call(o)}if(null!==n){for(let
r=s+1;r<n.length;r++)n[r]();i[7]=null}}(t,i),1===i[1].type&&$t(i[11])&&i[11].destroy();const
e=i[17];if(null!==e&&Ei(i[3])){e!==i[3]&&Q_(e,i);const
n=i[19];null!==n&&n.detachView(t)}}}function Y_(t,i,e){return function
Z_(t,i,e){let n=i;for(;null!==n&&40&n.type;)n=(i=n).parent;if(null===n)return
e[0];if(2&n.fl
ags){const
s=t.data[n.directiveStart].encapsulation;if(s===ki.None||s===ki.Emulated)return
null}return Zn(n,e)}(t,i.parent,e)}function
lr(t,i,e,n,s){$t(t)?t.insertBefore(i,e,n,s):i.insertBefore(e,n,s)}function
X_(t,i,e){$t(t)?t.appendChild(i,e):i.appendChild(e)}function
eb(t,i,e,n,s){null!==n?lr(t,i,e,n,s):X_(t,i,e)}function hc(t,i){return
$t(t)?t.parentNode(i):i.parentNode}function tb(t,i,e){return ib(t,i,e)}let
gc,_c,ib=function nb(t,i,e){return 40&t.type?Zn(t,e):null};function mc(t,i,e,n){const
s=Y_(t,n,i),r=i[11],u=tb(n.parent||i[6],n,i);if(null!=s)if(Array.isArray(e))for(let
h=0;h<e.length;h++)eb(r,s,e[h],u,!1);else eb(r,s,e,u,!1)}function
fc(t,i){if(null!==i){const e=i.type;if(3&e)return Zn(i,t);if(4&e)return
Op(-1,t[i.index]);if(8&e){const n=i.child;if(null!==n)return fc(t,n);{const
s=t[i.index];return Ei(s)?Op(-1,s):Yt(s)}}if(32&e)return
xp(i,t)()||Yt(t[i.index]);{const n=rb(t,i);return
null!==n?Array.isArray(n)?n[0]:fc(Ca(t[16]),n):fc(t,i.next)}}return null}function rb(t,i)
{return null!==i?t[16][6].projection[i.projection]:null}function Op(t,i){const
e=10+t+1;if(e<i.length){const n=i[e],s=n[1].firstChild;if(null!==s)return
fc(n,s)}return i[7]}function Pp(t,i,e,n,s,r,o){for(;null!=e;){const
u=n[e.index],h=e.type;if(o&&0===i&&(u&&In(Yt(u),n),e.flags|=4),64!=(64&e.flags))if(8&h)Pp(t,i,e.child,n,s,r,!1),to(i,t,s,u,r);else
if(32&h){const b=xp(e,n);let y;for(;y=b();)to(i,t,s,y,r);to(i,t,s,u,r)}else
16&h?ob(t,i,n,e,s,r):to(i,t,s,u,r);e=o?e.projectionNext:e.next}}function
ya(t,i,e,n,s,r){Pp(e,n,t.firstChild,i,s,r,!1)}function ob(t,i,e,n,s,r){const
o=e[16],h=o[6].projection[n.projection];if(Array.isArray(h))for(let
b=0;b<h.length;b++)to(i,t,s,h[b],r);else Pp(t,i,h,o[3],s,r,!0)}function
ab(t,i,e){$t(t)?t.setAttribute(i,"style",e):i.style.cssText=e}function
Fp(t,i,e){$t(t)?""===e?t.removeAttribute(i,"class"):t.setAttribute(i,"class",e):i.className=e}function
cr(t){var i;return(null===(i=function Np(){if(void
0===gc&&(gc=null,vt.trustedTypes))try{gc=vt.trustedTyp
es.createPolicy("angular",{createHTML:t=>t,createScript:t=>t,createScriptURL:t=>t})}catch(t){}return
gc}())||void 0===i?void 0:i.createHTML(t))||t}function lb(t){var
i;return(null===(i=function Vp(){if(void
0===_c&&(_c=null,vt.trustedTypes))try{_c=vt.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:t=>t,createScript:t=>t,createScriptURL:t=>t})}catch(t){}return
_c}())||void 0===i?void 0:i.createHTML(t))||t}class
db{constructor(i){this.changingThisBreaksApplicationSecurity=i}toString(){return`SafeValue
must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see
https://g.co/ng/security#xss)`}}function Vs(t){return t instanceof
db?t.changingThisBreaksApplicationSecurity:t}function wa(t,i){const e=function
CM(t){return t instanceof
db&&t.getTypeName()||null}(t);if(null!=e&&e!==i){if("ResourceURL"===e&&"URL"===i)return!0;throw
new Error(`Required a safe ${i}, got a ${e} (see
https://g.co/ng/security#xss)`)}return
e===i}class yM{constructor(i){this.inertDo
cumentHelper=i}getInertBodyElement(i){i="<body><remove></remove>"+i;try{const
e=(new window.DOMParser).parseFromString(cr(i),"text/html").body;return
null===e?this.inertDocumentHelper.getInertBodyElement(i):(e.removeChild(e.firstChild),e)}catch(e){return
null}}}class
wM{constructor(i){if(this.defaultDoc=i,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert"),null==this.inertDocument.body){const
e=this.inertDocument.createElement("html");this.inertDocument.appendChild(e);const
n=this.inertDocument.createElement("body");e.appendChild(n)}}getInertBodyElement(i){const
e=this.inertDocument.createElement("template");if("content"in e)return
e.innerHTML=cr(i),e;const n=this.inertDocument.createElement("body");return
n.innerHTML=cr(i),this.defaultDoc.documentMode&&this.stripCustomNsAttrs(n),n}stripCustomNsAttrs(i){const
e=i.attributes;for(let s=e.length-1;0<s;s--){const
o=e.item(s).name;("xmlns:ns1"===o||0===o.indexOf("ns1:"))&&i.removeAttribute(o)}let
n=
i.firstChild;for(;n;)n.nodeType===Node.ELEMENT_NODE&&this.stripCustomNsAttrs(n),n=n.nextSibling}}const
SM=/^(?:(?:https?|mailto|ftp|tel|file|sms):|[^&:/?#]*(?:[/?#]|$))/gi,xM=/^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
bc(t){return(t=String(t)).match(SM)||t.match(xM)?t:"unsafe:"+t}function
hb(t){return(t=String(t)).split(",").map(i=>bc(i.trim())).join(",
")}function Yi(t){const i={};for(const e of t.split(","))i[e]=!0;return
i}function Ta(...t){const i={};for(const e of t)for(const n in
e)e.hasOwnProperty(n)&&(i[n]=!0);return i}const
mb=Yi("area,br,col,hr,img,wbr"),fb=Yi("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),gb=Yi("rp,rt"),Bp=Ta(mb,Ta(fb,Yi("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")),Ta(gb,Yi("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")),Ta(gb,fb)),Hp=Yi("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),qp=Yi("srcset"),_b=Ta(Hp,qp,Yi("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,start,summary,tabindex,target,title,translate,type,usemap,valign,value,vspace,width"),Yi("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-grab
bed,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")),DM=Yi("script,style,template");class
MM{constructor(){this.sanitizedSomething=!1,this.buf=[]}sanitizeChildren(i){let
e=i.firstChild,n=!0;for(;e;)if(e.nodeType===Node.ELEMENT_NODE?n=this.startElement(e):e.nodeType===Node.TEXT_NODE?this.chars(e.nodeValue):this.sanitizedSomething=!0,n&&e.firstChild)e=e.firstChild;else
for(;e;){e.nodeType===Node.ELEMENT_NODE&&this.endElement(e);let
s=this.checkClobberedElement(e,e.nextSibling);if(s){e=s;break}e=this.checkClobberedElement(e,e.parentNode)}return
this.buf.join("")}startElement(i){const e=i.nodeName.toLowerCase();if(!Bp.
hasOwnProperty(e))return
this.sanitizedSomething=!0,!DM.hasOwnProperty(e);this.buf.push("<"),this.buf.push(e);const
n=i.attributes;for(let s=0;s<n.length;s++){const
r=n.item(s),o=r.name,u=o.toLowerCase();if(!_b.hasOwnProperty(u)){this.sanitizedSomething=!0;continue}let
h=r.value;Hp[u]&&(h=bc(h)),qp[u]&&(h=hb(h)),this.buf.push("
",o,'="',bb(h),'"')}return
this.buf.push(">"),!0}endElement(i){const
e=i.nodeName.toLowerCase();Bp.hasOwnProperty(e)&&!mb.hasOwnProperty(e)&&(this.buf.push("</"),this.buf.push(e),this.buf.push(">"))}chars(i){this.buf.push(bb(i))}checkClobberedElement(i,e){if(e&&(i.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_CONTAINED_BY)===Node.DOCUMENT_POSITION_CONTAINED_BY)throw
new Error(`Failed to sanitize html because the element is clobbered:
${i.outerHTML}`);return e}}const kM=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,IM=/([^\#-~
|!])/g;function bb(t){return
t.replace(/&/g,"&").replace(kM,function(i){return"&#"+(1024*(i.charCodeAt(0)-55296)+(i.charCodeAt(1)-56320)+65
536)+";"}).replace(IM,function(i){return"&#"+i.charCodeAt(0)+";"}).replace(/</g,"<").replace(/>/g,">")}let
vc;function Gp(t){return"content"in t&&function RM(t){return
t.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===t.nodeName}(t)?t.content:null}var
Zt=(()=>((Zt=Zt||{})[Zt.NONE=0]="NONE",Zt[Zt.HTML=1]="HTML",Zt[Zt.STYLE=2]="STYLE",Zt[Zt.SCRIPT=3]="SCRIPT",Zt[Zt.URL=4]="URL",Zt[Zt.RESOURCE_URL=5]="RESOURCE_URL",Zt))();function
Bt(t){const i=Sa();return
i?lb(i.sanitize(Zt.HTML,t)||""):wa(t,"HTML")?lb(Vs(t)):function
EM(t,i){let e=null;try{vc=vc||function pb(t){const i=new wM(t);return function
TM(){try{return!!(new
window.DOMParser).parseFromString(cr(""),"text/html")}catch(t){return!1}}()?new
yM(i):i}(t);let n=i?String(i):"";e=vc.getInertBodyElement(n);let
s=5,r=n;do{if(0===s)throw new Error("Failed to sanitize html because the input is
unstable");s--,n=r,r=e.innerHTML,e=vc.getInertBodyElement(n)}while(n!==r);return
cr((new MM).sanitizeChildren(Gp(e)||e))}finally{if(e){const n=Gp(
e)||e;for(;n.firstChild;)n.removeChild(n.firstChild)}}}(Xd(),Ie(t))}function ln(t){const
i=Sa();return
i?i.sanitize(Zt.URL,t)||"":wa(t,"URL")?Vs(t):bc(Ie(t))}function
Sa(){const t=$();return t&&t[12]}function zp(t){return t.ngOriginalError}function
qM(t,...i){t.error(...i)}class xa{constructor(){this._console=console}handleError(i){const
e=this._findOriginalError(i),n=function HM(t){return
t&&t.ngErrorLogger||qM}(i);n(this._console,"ERROR",i),e&&n(this._console,"ORIGINAL
ERROR",e)}_findOriginalError(i){let
e=i&&zp(i);for(;e&&zp(e);)e=zp(e);return e||null}}const
KM=(()=>("undefined"!=typeof
requestAnimationFrame&&requestAnimationFrame||setTimeout).bind(vt))();function
ni(t){return t.ownerDocument.defaultView}function Zi(t){return t instanceof
Function?t():t}function yb(t,i,e){let n=t.length;for(;;){const
s=t.indexOf(i,e);if(-1===s)return s;if(0===s||t.charCodeAt(s-1)<=32){const
r=i.length;if(s+r===n||t.charCodeAt(s+r)<=32)return s}e=s+1}}const
wb="ng-template";function YM(t,i,e){let
n=0;for(;n<t.length;){let
s=t[n++];if(e&&"class"===s){if(s=t[n],-1!==yb(s.toLowerCase(),i,0))return!0}else
if(1===s){for(;n<t.length&&"string"==typeof(s=t[n++]);)if(s.toLowerCase()===i)return!0;return!1}}return!1}function
Tb(t){return 4===t.type&&t.value!==wb}function ZM(t,i,e){return
i===(4!==t.type||e?t.value:wb)}function XM(t,i,e){let n=4;const s=t.attrs||[],r=function
nk(t){for(let i=0;i<t.length;i++)if(h_(t[i]))return i;return t.length}(s);let
o=!1;for(let u=0;u<i.length;u++){const h=i[u];if("number"!=typeof
h){if(!o)if(4&n){if(n=2|1&n,""!==h&&!ZM(t,h,e)||""===h&&1===i.length){if(Li(n))return!1;o=!0}}else{const
b=8&n?h:i[++u];if(8&n&&null!==t.attrs){if(!YM(t.attrs,b,e)){if(Li(n))return!1;o=!0}continue}const
w=ek(8&n?"class":h,s,Tb(t),e);if(-1===w){if(Li(n))return!1;o=!0;continue}if(""!==b){let
M;M=w>r?"":s[w+1].toLowerCase();const
E=8&n?M:null;if(E&&-1!==yb(E,b,0)||2&n&&b!==M){if(Li(n))return!1;o=!0}}}}else{if(!o&&!Li(n)&&!Li(h))return!1;if(o&&Li(h))continue;o=!1,n=h|1&n}}retur
n Li(n)||o}function Li(t){return 0==(1&t)}function
ek(t,i,e,n){if(null===i)return-1;let s=0;if(n||!e){let r=!1;for(;s<i.length;){const
o=i[s];if(o===t)return s;if(3===o||6===o)r=!0;else{if(1===o||2===o){let
u=i[++s];for(;"string"==typeof
u;)u=i[++s];continue}if(4===o)break;if(0===o){s+=4;continue}}s+=r?1:2}return-1}return
function ik(t,i){let e=t.indexOf(4);if(e>-1)for(e++;e<t.length;){const
n=t[e];if("number"==typeof n)return-1;if(n===i)return
e;e++}return-1}(i,t)}function Sb(t,i,e=!1){for(let
n=0;n<i.length;n++)if(XM(t,i[n],e))return!0;return!1}function sk(t,i){e:for(let
e=0;e<i.length;e++){const n=i[e];if(t.length===n.length){for(let
s=0;s<t.length;s++)if(t[s]!==n[s])continue e;return!0}}return!1}function xb(t,i){return
t?":not("+i.trim()+")":i}function rk(t){let
i=t[0],e=1,n=2,s="",r=!1;for(;e<t.length;){let
o=t[e];if("string"==typeof o)if(2&n){const
u=t[++e];s+="["+o+(u.length>0?'="'+u+'"':"")+"]"}else
8&n?s+="."+o:4&n&&(s+="
"+o);else""!==s&&!Li(o)&&(i+=xb(r,s),s=""),n=o,r=r||
!Li(n);e++}return""!==s&&(i+=xb(r,s)),i}const Re={};function
a(t){Db(tt(),$(),Nn()+t,!1)}function Db(t,i,e,n){if(!n)if(3==(3&i[2])){const
r=t.preOrderCheckHooks;null!==r&&ec(i,r,e)}else{const
r=t.preOrderHooks;null!==r&&tc(i,r,0,e)}Ps(e)}function Cc(t,i){return
t<<17|i<<2}function Oi(t){return t>>17&32767}function jp(t){return
2|t}function fs(t){return(131068&t)>>2}function
$p(t,i){return-131069&t|i<<2}function Wp(t){return 1|t}function Nb(t,i){const
e=t.contentQueries;if(null!==e)for(let n=0;n<e.length;n+=2){const
s=e[n],r=e[n+1];if(-1!==r){const o=t.data[r];ap(s),o.contentQueries(2,i[r],r)}}}function
Da(t,i,e,n,s,r,o,u,h,b){const y=i.blueprint.slice();return
y[0]=s,y[2]=140|n,Xg(y),y[3]=y[15]=t,y[8]=e,y[10]=o||t&&t[10],y[11]=u||t&&t[11],y[12]=h||t&&t[12]||null,y[9]=b||t&&t[9]||null,y[6]=r,y[16]=2==i.type?t[16]:y,y}function
io(t,i,e,n,s){let r=t.data[i];if(null===r)r=function nh(t,i,e,n,s){const
r=n_(),o=ip(),h=t.data[i]=function Tk(t,i,e,n,s,r){return{type:e,index:n,insertBeforeIn
dex:null,injectorIndex:i?i.injectorIndex:-1,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,propertyBindings:null,flags:0,providerIndexes:0,value:s,attrs:r,mergedAttrs:null,localNames:null,initialInputs:void
0,inputs:null,outputs:null,tViews:null,next:null,projectionNext:null,child:null,parent:i,projection:null,styles:null,stylesWithoutHost:null,residualStyles:void
0,classes:null,classesWithoutHost:null,residualClasses:void
0,classBindings:0,styleBindings:0}}(0,o?r:r&&r.parent,e,i,n,s);return
null===t.firstChild&&(t.firstChild=h),null!==r&&(o?null==r.child&&null!==h.parent&&(r.child=h):null===r.next&&(r.next=h)),h}(t,i,e,n,s),function
$x(){return Ee.lFrame.inI18n}()&&(r.flags|=64);else
if(64&r.type){r.type=e,r.value=n,r.attrs=s;const o=function ra(){const
t=Ee.lFrame,i=t.currentTNode;return
t.isParent?i:i.parent}();r.injectorIndex=null===o?-1:o.injectorIndex}return
Qi(r,!0),r}function so(t,i,e,n){if(0===e)return-1;const s=i.length;for(let
r=0;r<e;r++)i.push(n),t.blueprint.
push(n),t.data.push(null);return s}function Ma(t,i,e){Yl(i);try{const
n=t.viewQuery;null!==n&&dh(1,n,e);const
s=t.template;null!==s&&Vb(t,i,s,1,e),t.firstCreatePass&&(t.firstCreatePass=!1),t.staticContentQueries&&Nb(t,i),t.staticViewQueries&&dh(2,t.viewQuery,e);const
r=t.components;null!==r&&function Ck(t,i){for(let
e=0;e<i.length;e++)qk(t,i[e])}(i,r)}catch(n){throw
t.firstCreatePass&&(t.incompleteFirstPass=!0,t.firstCreatePass=!1),n}finally{i[2]&=-5,Zl()}}function
ro(t,i,e,n){const s=i[2];if(256!=(256&s)){Yl(i);try{Xg(i),function i_(t){return
Ee.lFrame.bindingIndex=t}(t.bindingStartIndex),null!==e&&Vb(t,i,e,2,n);const
o=3==(3&s);if(o){const
b=t.preOrderCheckHooks;null!==b&&ec(i,b,null)}else{const
b=t.preOrderHooks;null!==b&&tc(i,b,0,null),lp(i,0)}if(function Bk(t){for(let
i=Dp(t);null!==i;i=Mp(i)){if(!i[2])continue;const e=i[9];for(let
n=0;n<e.length;n++){const
s=e[n],r=s[3];0==(1024&s[2])&&np(r,1),s[2]|=1024}}}(i),function Vk(t){for(let
i=Dp(t);null!==i;i=Mp(i))for(let e=10;e<i.le
ngth;e++){const
n=i[e],s=n[1];tp(n)&&ro(s,n,s.template,n[8])}}(i),null!==t.contentQueries&&Nb(t,i),o){const
b=t.contentCheckHooks;null!==b&&ec(i,b)}else{const
b=t.contentHooks;null!==b&&tc(i,b,1),lp(i,1)}!function bk(t,i){const
e=t.hostBindingOpCodes;if(null!==e)try{for(let n=0;n<e.length;n++){const
s=e[n];if(s<0)Ps(~s);else{const
r=s,o=e[++n],u=e[++n];Wx(o,r),u(2,i[r])}}}finally{Ps(-1)}}(t,i);const
u=t.components;null!==u&&function vk(t,i){for(let
e=0;e<i.length;e++)Hk(t,i[e])}(i,u);const
h=t.viewQuery;if(null!==h&&dh(2,h,n),o){const
b=t.viewCheckHooks;null!==b&&ec(i,b)}else{const
b=t.viewHooks;null!==b&&tc(i,b,2),lp(i,2)}!0===t.firstUpdatePass&&(t.firstUpdatePass=!1),i[2]&=-73,1024&i[2]&&(i[2]&=-1025,np(i[3],-1))}finally{Zl()}}}function
yk(t,i,e,n){const
s=i[10],o=Zg(i);try{!o&&s.begin&&s.begin(),o&&Ma(t,i,n),ro(t,i,e,n)}finally{!o&&s.end&&s.end()}}function
Vb(t,i,e,n,s){const
r=Nn(),o=2&n;try{Ps(-1),o&&i.length>20&&Db(t,i,20,!1),e(n,s)}finally{Ps(r)}}function
Bb(t,i,e){if(Wd(i)){
const s=i.directiveEnd;for(let r=i.directiveStart;r<s;r++){const
o=t.data[r];o.contentQueries&&o.contentQueries(1,e[r],r)}}}function
ih(t,i,e){!t_()||(function Ek(t,i,e,n){const
s=e.directiveStart,r=e.directiveEnd;t.firstCreatePass||la(e,i),In(n,i);const
o=e.initialInputs;for(let u=s;u<r;u++){const
h=t.data[u],b=Ri(h);b&&Pk(i,e,h);const
y=ca(i,t,u,e);In(y,i),null!==o&&Fk(0,u-s,y,h,0,o),b&&(Xn(e.index,i)[8]=y)}}(t,i,e,Zn(e,i)),128==(128&e.flags)&&function
Rk(t,i,e){const n=e.directiveStart,s=e.directiveEnd,o=e.index,u=function Kx(){return
Ee.lFrame.currentDirectiveIndex}();try{Ps(o);for(let h=n;h<s;h++){const
b=t.data[h],y=i[h];rp(h),(null!==b.hostBindings||0!==b.hostVars||null!==b.hostAttrs)&&Wb(b,y)}}finally{Ps(-1),rp(u)}}(t,i,e))}function
sh(t,i,e=Zn){const n=i.localNames;if(null!==n){let s=i.index+1;for(let
r=0;r<n.length;r+=2){const o=n[r+1],u=-1===o?e(i,t):t[o];t[s++]=u}}}function
Hb(t){const i=t.tView;return
null===i||i.incompleteFirstPass?t.tView=Tc(1,null,t.template,t.decls,
t.vars,t.directiveDefs,t.pipeDefs,t.viewQuery,t.schemas,t.consts):i}function
Tc(t,i,e,n,s,r,o,u,h,b){const y=20+n,w=y+s,M=function wk(t,i){const e=[];for(let
n=0;n<i;n++)e.push(n<t?null:Re);return e}(y,w),E="function"==typeof
b?b():b;return
M[1]={type:t,blueprint:M,template:e,queries:null,viewQuery:u,declTNode:i,data:M.slice().fill(null,y),bindingStartIndex:y,expandoStartIndex:w,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
r?r():r,pipeRegistry:"function"==typeof
o?o():o,firstChild:null,schemas:h,consts:E,incompleteFirstPass:!1}}function
Ub(t,i,e,n){const
s=Xb(i);null===e?s.push(n):(s.push(e),t.firstCreatePass&&ev(t).push(n,s.length-1))}function
zb(t,i,e){for(let n in t)if(t.hasOwnProperty(n)){const s=t[
n];(e=null===e?{}:e).hasOwnProperty(n)?e[n].push(i,s):e[n]=[i,s]}return e}function
ii(t,i,e,n,s,r,o,u){const h=Zn(i,e);let
y,b=i.inputs;!u&&null!=b&&(y=b[n])?(iv(t,e,y,n,s),Wl(i)&&function
Dk(t,i){const
e=Xn(i,t);16&e[2]||(e[2]|=64)}(e,i.index)):3&i.type&&(n=function
xk(t){return"class"===t?"className":"for"===t?"htmlFor":"formaction"===t?"formAction":"innerHtml"===t?"innerHTML":"readonly"===t?"readOnly":"tabindex"===t?"tabIndex":t}(n),s=null!=o?o(s,i.value||"",n):s,$t(r)?r.setProperty(h,n,s):up(n)||(h.setProperty?h.setProperty(n,s):h[n]=s))}function
rh(t,i,e,n){let s=!1;if(t_()){const r=function Lk(t,i,e){const n=t.directiveRegistry;let
s=null;if(n)for(let r=0;r<n.length;r++){const
o=n[r];Sb(e,o.selectors,!1)&&(s||(s=[]),oc(la(e,i),t,o.type),Ri(o)?(Kb(t,e),s.unshift(o)):s.push(o))}return
s}(t,i,e),o=null===n?null:{"":-1};if(null!==r){s=!0,Qb(e,t.data.length,r.length);for(let
y=0;y<r.length;y++){const
w=r[y];w.providersResolver&&w.providersResolver(w)}let
u=!1,h=!1,b=so(t,i,r.length
,null);for(let y=0;y<r.length;y++){const
w=r[y];e.mergedAttrs=ic(e.mergedAttrs,w.hostAttrs),Jb(t,e,i,b,w),Ak(b,w,o),null!==w.contentQueries&&(e.flags|=8),(null!==w.hostBindings||null!==w.hostAttrs||0!==w.hostVars)&&(e.flags|=128);const
M=w.type.prototype;!u&&(M.ngOnChanges||M.ngOnInit||M.ngDoCheck)&&((t.preOrderHooks||(t.preOrderHooks=[])).push(e.index),u=!0),!h&&(M.ngOnChanges||M.ngDoCheck)&&((t.preOrderCheckHooks||(t.preOrderCheckHooks=[])).push(e.index),h=!0),b++}!function
Sk(t,i){const n=i.directiveEnd,s=t.data,r=i.attrs,o=[];let u=null,h=null;for(let
b=i.directiveStart;b<n;b++){const
y=s[b],w=y.inputs,M=null===r||Tb(i)?null:Nk(w,r);o.push(M),u=zb(w,b,u),h=zb(y.outputs,b,h)}null!==u&&(u.hasOwnProperty("class")&&(i.flags|=16),u.hasOwnProperty("style")&&(i.flags|=32)),i.initialInputs=o,i.inputs=u,i.outputs=h}(t,e)}o&&function
Ok(t,i,e){if(i){const n=t.localNames=[];for(let s=0;s<i.length;s+=2){const
r=e[i[s+1]];if(null==r)throw new re(-301,!1);n.push(i[s],r)}}}(e,n,o)}return e.mer
gedAttrs=ic(e.mergedAttrs,e.attrs),s}function $b(t,i,e,n,s,r){const
o=r.hostBindings;if(o){let
u=t.hostBindingOpCodes;null===u&&(u=t.hostBindingOpCodes=[]);const
h=~i.index;(function Ik(t){let i=t.length;for(;i>0;){const
e=t[--i];if("number"==typeof e&&e<0)return e}return
0})(u)!=h&&u.push(h),u.push(n,s,o)}}function
Wb(t,i){null!==t.hostBindings&&t.hostBindings(1,i)}function
Kb(t,i){i.flags|=2,(t.components||(t.components=[])).push(i.index)}function
Ak(t,i,e){if(e){if(i.exportAs)for(let
n=0;n<i.exportAs.length;n++)e[i.exportAs[n]]=t;Ri(i)&&(e[""]=t)}}function
Qb(t,i,e){t.flags|=1,t.directiveStart=i,t.directiveEnd=i+e,t.providerIndexes=i}function
Jb(t,i,e,n,s){t.data[n]=s;const r=s.factory||(s.factory=ar(s.type)),o=new
oa(r,Ri(s),null);t.blueprint[n]=o,e[n]=o,$b(t,i,0,n,so(t,e,s.hostVars,Re),s)}function
Pk(t,i,e){const
n=Zn(i,t),s=Hb(e),r=t[10],o=Sc(t,Da(t,s,null,e.onPush?64:16,n,i,r,r.createRenderer(n,e),null,null));t[i.index]=o}function
Xi(t,i,e,n,s,r){const o=Zn(t,i);!function oh(
t,i,e,n,s,r,o){if(null==r)$t(t)?t.removeAttribute(i,s,e):i.removeAttribute(s);else{const
u=null==o?Ie(r):o(r,n||"",s);$t(t)?t.setAttribute(i,s,u,e):e?i.setAttributeNS(e,s,u):i.setAttribute(s,u)}}(i[11],o,r,t.value,e,n,s)}function
Fk(t,i,e,n,s,r){const o=r[i];if(null!==o){const u=n.setInput;for(let
h=0;h<o.length;){const
b=o[h++],y=o[h++],w=o[h++];null!==u?n.setInput(e,w,b,y):e[y]=w}}}function Nk(t,i){let
e=null,n=0;for(;n<i.length;){const
s=i[n];if(0!==s)if(5!==s){if("number"==typeof
s)break;t.hasOwnProperty(s)&&(null===e&&(e=[]),e.push(s,t[s],i[n+1])),n+=2}else
n+=2;else n+=4}return e}function Yb(t,i,e,n){return new
Array(t,!0,!1,i,null,0,n,e,null,null)}function Hk(t,i){const e=Xn(i,t);if(tp(e)){const
n=e[1];80&e[2]?ro(n,e,n.template,e[8]):e[5]>0&&ah(e)}}function
ah(t){for(let n=Dp(t);null!==n;n=Mp(n))for(let s=10;s<n.length;s++){const
r=n[s];if(1024&r[2]){const o=r[1];ro(o,r,o.template,r[8])}else
r[5]>0&&ah(r)}const e=t[1].components;if(null!==e)for(let
n=0;n<e.length;n++){const s
=Xn(e[n],t);tp(s)&&s[5]>0&&ah(s)}}function qk(t,i){const
e=Xn(i,t),n=e[1];(function Gk(t,i){for(let
e=i.length;e<t.blueprint.length;e++)i.push(t.blueprint[e])})(n,e),Ma(n,e,e[8])}function
Sc(t,i){return t[13]?t[14][4]=i:t[13]=i,t[14]=i,i}function lh(t){for(;t;){t[2]|=64;const
i=Ca(t);if(Sx(t)&&!i)return t;t=i}return null}function Zb(t){!function
ch(t){for(let i=0;i<t.components.length;i++){const
e=t.components[i],n=Tp(e),s=n[1];yk(s,n,s.template,e)}}(t[8])}function
dh(t,i,e){ap(0),i(t,e)}const zk=(()=>Promise.resolve(null))();function Xb(t){return
t[7]||(t[7]=[])}function ev(t){return t.cleanup||(t.cleanup=[])}function nv(t,i){const
e=t[9],n=e?e.get(xa,null):null;n&&n.handleError(i)}function iv(t,i,e,n,s){for(let
r=0;r<e.length;){const
o=e[r++],u=e[r++],h=i[o],b=t.data[o];null!==b.setInput?b.setInput(h,s,n,u):h[u]=s}}function
gs(t,i,e){const n=Ql(i,t);!function
K_(t,i,e){$t(t)?t.setValue(i,e):i.textContent=e}(t[11],n,e)}function xc(t,i,e){let
n=e?t.styles:null,s=e?t.classes:null,r=0
;if(null!==i)for(let o=0;o<i.length;o++){const u=i[o];"number"==typeof
u?r=u:1==r?s=Vd(s,u):2==r&&(n=Vd(n,u+":
"+i[++o]+";"))}e?t.styles=n:t.stylesWithoutHost=n,e?t.classes=s:t.classesWithoutHost=s}const
ph=new be("INJECTOR",-1);class sv{get(i,e=ma){if(e===ma){const n=new
Error(`NullInjectorError: No provider for ${ft(i)}!`);throw
n.name="NullInjectorError",n}return e}}const hh=new be("Set Injector
scope."),ka={},Wk={};let mh;function rv(){return void 0===mh&&(mh=new
sv),mh}function ov(t,i=null,e=null,n){const s=av(t,i,e,n);return
s._resolveInjectorDefTypes(),s}function av(t,i=null,e=null,n){return new
Kk(t,e,i||rv(),n)}class Kk{constructor(i,e,n,s=null){this.parent=n,this.records=new
Map,this.injectorDefTypes=new Set,this.onDestroy=new Set,this._destroyed=!1;const
r=[];e&&Ji(e,u=>this.processProvider(u,i,e)),Ji([i],u=>this.processInjectorType(u,[],r)),this.records.set(ph,oo(void
0,this));const
o=this.records.get(hh);this.scope=null!=o?o.value:null,this.source=s||("object"==typeof
i
?null:ft(i))}get destroyed(){return
this._destroyed}destroy(){this.assertNotDestroyed(),this._destroyed=!0;try{this.onDestroy.forEach(i=>i.ngOnDestroy())}finally{this.records.clear(),this.onDestroy.clear(),this.injectorDefTypes.clear()}}get(i,e=ma,n=xe.Default){this.assertNotDestroyed();const
s=R_(this),r=Rs(void 0);try{if(!(n&xe.SkipSelf)){let u=this.records.get(i);if(void
0===u){const h=function nI(t){return"function"==typeof
t||"object"==typeof t&&t instanceof
be}(i)&&Hd(i);u=h&&this.injectableDefInScope(h)?oo(fh(i),ka):null,this.records.set(i,u)}if(null!=u)return
this.hydrate(i,u)}return(n&xe.Self?rv():this.parent).get(i,e=n&xe.Optional&&e===ma?null:e)}catch(o){if("NullInjectorError"===o.name){if((o[uc]=o[uc]||[]).unshift(ft(i)),s)throw
o;return function RD(t,i,e,n){const s=t[uc];throw
i[E_]&&s.unshift(i[E_]),t.message=function
LD(t,i,e,n=null){t=t&&"\n"===t.charAt(0)&&"\u0275"==t.charAt(1)?t.substr(2):t;let
s=ft(i);if(Array.isArray(i))s=i.map(ft).join(" -> ");else
if("object"==
typeof i){let r=[];for(let o in i)if(i.hasOwnProperty(o)){let
u=i[o];r.push(o+":"+("string"==typeof
u?JSON.stringify(u):ft(u)))}s=`{${r.join(",
")}}`}return`${e}${n?"("+n+")":""}[${s}]:
${t.replace(DD,"\n
")}`}("\n"+t.message,s,e,n),t.ngTokenPath=s,t[uc]=null,t}(o,i,"R3InjectorError",this.source)}throw
o}finally{Rs(r),R_(s)}}_resolveInjectorDefTypes(){this.injectorDefTypes.forEach(i=>this.get(i))}toString(){const
i=[];return this.records.forEach((n,s)=>i.push(ft(s))),`R3Injector[${i.join(",
")}]`}assertNotDestroyed(){if(this._destroyed)throw new
re(205,!1)}processInjectorType(i,e,n){if(!(i=Ve(i)))return!1;let s=Bg(i);const
r=null==s&&i.ngModule||void 0,o=void 0===r?i:r,u=-1!==n.indexOf(o);if(void
0!==r&&(s=Bg(r)),null==s)return!1;if(null!=s.imports&&!u){let
y;n.push(o);try{Ji(s.imports,w=>{this.processInjectorType(w,e,n)&&(void
0===y&&(y=[]),y.push(w))})}finally{}if(void 0!==y)for(let
w=0;w<y.length;w++){const{ngModule:M,providers:E}=y[w];Ji(E,L=>this.processProvider(L,M,E||Tt))}}t
his.injectorDefTypes.add(o);const h=ar(o)||(()=>new
o);this.records.set(o,oo(h,ka));const b=s.providers;if(null!=b&&!u){const
y=i;Ji(b,w=>this.processProvider(w,y,b))}return void 0!==r&&void
0!==i.providers}processProvider(i,e,n){let s=ao(i=Ve(i))?i:Ve(i&&i.provide);const
r=function Jk(t,i,e){return cv(t)?oo(void
0,t.useValue):oo(lv(t),ka)}(i);if(ao(i)||!0!==i.multi)this.records.get(s);else{let
o=this.records.get(s);o||(o=oo(void
0,ka,!0),o.factory=()=>Cp(o.multi),this.records.set(s,o)),s=i,o.multi.push(i)}this.records.set(s,r)}hydrate(i,e){return
e.value===ka&&(e.value=Wk,e.value=e.factory()),"object"==typeof
e.value&&e.value&&function tI(t){return
null!==t&&"object"==typeof t&&"function"==typeof
t.ngOnDestroy}(e.value)&&this.onDestroy.add(e.value),e.value}injectableDefInScope(i){if(!i.providedIn)return!1;const
e=Ve(i.providedIn);return"string"==typeof
e?"any"===e||e===this.scope:this.injectorDefTypes.has(e)}}function fh(t){const
i=Hd(t),e=null!==i?i.factory:ar(t);if(null!==e)retur
n e;if(t instanceof be)throw new re(204,!1);if(t instanceof Function)return function
Qk(t){const i=t.length;if(i>0)throw ha(i,"?"),new re(204,!1);const e=function
px(t){const i=t&&(t[Gl]||t[Hg]);if(i){const e=function
hx(t){if(t.hasOwnProperty("name"))return t.name;const
i=(""+t).match(/^function\s*([^\s(]+)/);return
null===i?"":i[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.`),i}return null}(t);return
null!==e?()=>e.factory(t):()=>new t}(t);throw new re(204,!1)}function lv(t,i,e){let
n;if(ao(t)){const s=Ve(t);return ar(s)||fh(s)}if(cv(t))n=()=>Ve(t.useValue);else
if(function
Zk(t){return!(!t||!t.useFactory)}(t))n=()=>t.useFactory(...Cp(t.deps||[]));else
if(function Yk(t){return!(!t||!t.useExisting)}(t))n=()=>K(Ve(t.useExisting));else{const
s=Ve(t&&(t.useClass||t.provide));if(!fu
nction eI(t){return!!t.deps}(t))return ar(s)||fh(s);n=()=>new s(...Cp(t.deps))}return
n}function oo(t,i,e=!1){return{factory:t,value:i,multi:e?[]:void 0}}function cv(t){return
null!==t&&"object"==typeof t&&kD in t}function
ao(t){return"function"==typeof t}let En=(()=>{class t{static create(e,n){var
s;if(Array.isArray(e))return ov({name:""},n,e,"");{const
r=null!==(s=e.name)&&void 0!==s?s:"";return
ov({name:r},e.parent,e.providers,r)}}}return t.THROW_IF_NOT_FOUND=ma,t.NULL=new
sv,t.\u0275prov=X({token:t,providedIn:"any",factory:()=>K(ph)}),t.__NG_ELEMENT_ID__=-1,t})();function
uI(t,i){Xl(Tp(t)[1],rn())}function ut(t){let i=function yv(t){return
Object.getPrototypeOf(t.prototype).constructor}(t.type),e=!0;const n=[t];for(;i;){let
s;if(Ri(t))s=i.\u0275cmp||i.\u0275dir;else{if(i.\u0275cmp)throw new
re(903,"");s=i.\u0275dir}if(s){if(e){n.push(s);const
o=t;o.inputs=bh(t.inputs),o.declaredInputs=bh(t.declaredInputs),o.outputs=bh(t.outputs);const
u=s.hostBindings;u&&mI(t,u);const h=s.viewQu
ery,b=s.contentQueries;if(h&&pI(t,h),b&&hI(t,b),Nd(t.inputs,s.inputs),Nd(t.declaredInputs,s.declaredInputs),Nd(t.outputs,s.outputs),Ri(s)&&s.data.animation){const
y=t.data;y.animation=(y.animation||[]).concat(s.data.animation)}}const
r=s.features;if(r)for(let o=0;o<r.length;o++){const
u=r[o];u&&u.ngInherit&&u(t),u===ut&&(e=!1)}}i=Object.getPrototypeOf(i)}!function
dI(t){let i=0,e=null;for(let n=t.length-1;n>=0;n--){const
s=t[n];s.hostVars=i+=s.hostVars,s.hostAttrs=ic(s.hostAttrs,e=ic(e,s.hostAttrs))}}(n)}function
bh(t){return t===Br?{}:t===Tt?[]:t}function pI(t,i){const
e=t.viewQuery;t.viewQuery=e?(n,s)=>{i(n,s),e(n,s)}:i}function hI(t,i){const
e=t.contentQueries;t.contentQueries=e?(n,s,r)=>{i(n,s,r),e(n,s,r)}:i}function
mI(t,i){const e=t.hostBindings;t.hostBindings=e?(n,s)=>{i(n,s),e(n,s)}:i}let
Dc=null;function lo(){if(!Dc){const
t=vt.Symbol;if(t&&t.iterator)Dc=t.iterator;else{const
i=Object.getOwnPropertyNames(Map.prototype);for(let e=0;e<i.length;++e){const
n=i[e];"entries"!==n&
&"size"!==n&&Map.prototype[n]===Map.prototype.entries&&(Dc=n)}}}return
Dc}function Ia(t){return!!vh(t)&&(Array.isArray(t)||!(t instanceof
Map)&&lo()in t)}function vh(t){return
null!==t&&("function"==typeof t||"object"==typeof t)}function
es(t,i,e){return t[i]=e}function Ea(t,i){return t[i]}function
Rn(t,i,e){return!Object.is(t[i],e)&&(t[i]=e,!0)}function ur(t,i,e,n){const
s=Rn(t,i,e);return Rn(t,i+1,n)||s}function Mc(t,i,e,n,s){const r=ur(t,i,e,n);return
Rn(t,i+2,s)||r}function gi(t,i,e,n,s,r){const o=ur(t,i,e,n);return
ur(t,i+2,s,r)||o}function ie(t,i,e,n){const s=$();return
Rn(s,jr(),i)&&(tt(),Xi(Vt(),s,t,i,e,n)),ie}function uo(t,i,e,n){return
Rn(t,jr(),e)?i+Ie(e)+n:Re}function po(t,i,e,n,s,r){const u=ur(t,hs(),e,s);return
ms(2),u?i+Ie(e)+n+Ie(s)+r:Re}function _(t,i,e,n,s,r,o,u){const
h=$(),b=tt(),y=t+20,w=b.firstCreatePass?function yI(t,i,e,n,s,r,o,u,h){const
b=i.consts,y=io(i,t,4,o||null,As(b,u));rh(i,e,y,As(b,h)),Xl(i,y);const
w=y.tViews=Tc(2,y,n,s,r,i.directiveRegistry,i.pipeR
egistry,null,i.schemas,b);return
null!==i.queries&&(i.queries.template(i,y),w.queries=i.queries.embeddedTView(y)),y}(y,b,h,i,e,n,s,r,o):b.data[y];Qi(w,!1);const
M=h[11].createComment("");mc(b,h,M,w),In(M,h),Sc(h,h[y]=Yb(M,h,M,w)),Kl(w)&&ih(b,h,w),null!=o&&sh(h,w,u)}function
F(t){return zr(function jx(){return Ee.lFrame.contextLView}(),20+t)}function
D(t,i=xe.Default){const e=$();return null===e?K(t,i):C_(rn(),e,Ve(t),i)}function
Sh(){throw new Error("invalid")}function p(t,i,e){const n=$();return
Rn(n,jr(),i)&&ii(tt(),Vt(),n,t,i,n[11],e,!1),p}function xh(t,i,e,n,s){const
o=s?"class":"style";iv(t,e,i.inputs[o],o,n)}function l(t,i,e,n){const
s=$(),r=tt(),o=20+t,u=s[11],h=s[o]=Ip(u,i,function tD(){return
Ee.lFrame.currentNamespace}()),b=r.firstCreatePass?function GI(t,i,e,n,s,r,o){const
u=i.consts,b=io(i,t,2,s,As(u,r));return
rh(i,e,b,As(u,o)),null!==b.attrs&&xc(b,b.attrs,!1),null!==b.mergedAttrs&&xc(b,b.mergedAttrs,!0),null!==i.queries&&i.queries.elementStart(i,b),b}(o,r,s,0,i,e,n):r.
data[o];Qi(b,!0);const y=b.mergedAttrs;null!==y&&nc(u,h,y);const
w=b.classes;null!==w&&Fp(u,h,w);const M=b.styles;return
null!==M&&ab(u,h,M),64!=(64&b.flags)&&mc(r,s,h,b),0===function
Hx(){return Ee.lFrame.elementDepthCount}()&&In(h,s),function
qx(){Ee.lFrame.elementDepthCount++}(),Kl(b)&&(ih(r,s,b),Bb(r,b,s)),null!==n&&sh(s,b),l}function
c(){let t=rn();ip()?sp():(t=t.parent,Qi(t,!1));const i=t;!function
Gx(){Ee.lFrame.elementDepthCount--}();const e=tt();return
e.firstCreatePass&&(Xl(e,t),Wd(t)&&e.queries.elementEnd(t)),null!=i.classesWithoutHost&&function
oD(t){return
0!=(16&t.flags)}(i)&&xh(e,i,$(),i.classesWithoutHost,!0),null!=i.stylesWithoutHost&&function
aD(t){return
0!=(32&t.flags)}(i)&&xh(e,i,$(),i.stylesWithoutHost,!1),c}function
k(t,i,e,n){return l(t,i,e,n),c(),k}function de(t,i,e){const
n=$(),s=tt(),r=t+20,o=s.firstCreatePass?function UI(t,i,e,n,s){const
r=i.consts,o=As(r,n),u=io(i,t,8,"ng-container",o);return
null!==o&&xc(u,o,!0),rh(i,e,u,As(r,s)),null!==i.queries&&i.que
ries.elementStart(i,u),u}(r,s,n,i,e):s.data[r];Qi(o,!0);const
u=n[r]=n[11].createComment("");return
mc(s,n,u,o),In(u,n),Kl(o)&&(ih(s,n,o),Bb(s,o,n)),null!=e&&sh(n,o),de}function
pe(){let t=rn();const i=tt();return
ip()?sp():(t=t.parent,Qi(t,!1)),i.firstCreatePass&&(Xl(i,t),Wd(t)&&i.queries.elementEnd(t)),pe}function
Y(t,i,e){return de(t,i,e),pe(),Y}function I(){return $()}function
Ra(t){return!!t&&"function"==typeof t.then}function
qv(t){return!!t&&"function"==typeof t.subscribe}const Dh=qv;function
C(t,i,e,n){const s=$(),r=tt(),o=rn();return function Uv(t,i,e,n,s,r,o,u){const
h=Kl(n),y=t.firstCreatePass&&ev(t),w=i[8],M=Xb(i);let
E=!0;if(3&n.type||u){const
N=Zn(n,i),G=u?u(N):N,P=M.length,J=u?se=>u(Yt(se[n.index])):n.index;if($t(e)){let
se=null;if(!u&&h&&(se=function zI(t,i,e,n){const
s=t.cleanup;if(null!=s)for(let r=0;r<s.length-1;r+=2){const
o=s[r];if(o===e&&s[r+1]===n){const u=i[7],h=s[r+2];return
u.length>h?u[h]:null}"string"==typeof o&&(r+=2)}return
null}(t,i,s,n.index)),null!==
se)(se.__ngLastListenerFn__||se).__ngNextListenerFn__=r,se.__ngLastListenerFn__=r,E=!1;else{r=Mh(n,i,w,r,!1);const
ke=e.listen(G,s,r);M.push(r,ke),y&&y.push(s,J,P,P+1)}}else
r=Mh(n,i,w,r,!0),G.addEventListener(s,r,o),M.push(r),y&&y.push(s,J,P,o)}else
r=Mh(n,i,w,r,!1);const L=n.outputs;let O;if(E&&null!==L&&(O=L[s])){const
N=O.length;if(N)for(let G=0;G<N;G+=2){const
mt=i[O[G]][O[G+1]].subscribe(r),Ct=M.length;M.push(r,mt),y&&y.push(s,n.index,Ct,-(Ct+1))}}}(r,s,s[11],o,t,i,!!e,n),C}function
zv(t,i,e,n){try{return!1!==e(n)}catch(s){return nv(t,s),!1}}function Mh(t,i,e,n,s){return
function r(o){if(o===Function)return n;const
u=2&t.flags?Xn(t.index,i):i;0==(32&i[2])&&lh(u);let
h=zv(i,0,n,o),b=r.__ngNextListenerFn__;for(;b;)h=zv(i,0,b,o)&&h,b=b.__ngNextListenerFn__;return
s&&!1===h&&(o.preventDefault(),o.returnValue=!1),h}}function d(t=1){return
function Jx(t){return(Ee.lFrame.contextLView=function
Yx(t,i){for(;t>0;)i=i[15],t--;return i}(t,Ee.lFrame.contextLView))[8]}(t)}function
jI(t,i){
let e=null;const n=function tk(t){const i=t.attrs;if(null!=i){const
e=i.indexOf(5);if(0==(1&e))return i[e+1]}return null}(t);for(let
s=0;s<i.length;s++){const
r=i[s];if("*"!==r){if(null===n?Sb(t,r,!0):sk(n,r))return s}else e=s}return
e}function Sn(t){const i=$()[16][6];if(!i.projection){const
n=i.projection=ha(t?t.length:1,null),s=n.slice();let r=i.child;for(;null!==r;){const
o=t?jI(r,t):0;null!==o&&(s[o]?s[o].projectionNext=r:n[o]=r,s[o]=r),r=r.next}}}function
St(t,i=0,e){const
n=$(),s=tt(),r=io(s,20+t,16,null,e||null);null===r.projection&&(r.projection=i),sp(),64!=(64&r.flags)&&function
cM(t,i,e){ob(i[11],0,i,e,Y_(t,e,i),tb(e.parent||i[6],e,i))}(s,n,r)}function
x(t,i,e){return Bn(t,"",i,"",e),x}function Bn(t,i,e,n,s){const
r=$(),o=uo(r,i,e,n);return o!==Re&&ii(tt(),Vt(),r,t,o,r[11],s,!1),Bn}function
La(t,i,e,n,s,r,o){const u=$(),h=po(u,i,e,n,s,r);return
h!==Re&&ii(tt(),Vt(),u,t,h,u[11],o,!1),La}function Zv(t,i,e,n,s){const
r=t[e+1],o=null===i;let u=n?Oi(r):fs(r),h=!1;for(;0!==u&&(
!1===h||o);){const
y=t[u+1];KI(t[u],i)&&(h=!0,t[u+1]=n?Wp(y):jp(y)),u=n?Oi(y):fs(y)}h&&(t[e+1]=n?jp(r):Wp(r))}function
KI(t,i){return
null===t||null==i||(Array.isArray(t)?t[1]:t)===i||!(!Array.isArray(t)||"string"!=typeof
i)&&Xr(t,i)>=0}const cn={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function
Xv(t){return t.substring(cn.key,cn.keyEnd)}function QI(t){return
t.substring(cn.value,cn.valueEnd)}function e1(t,i){const e=cn.textEnd;return
e===i?-1:(i=cn.keyEnd=function
ZI(t,i,e){for(;i<e&&t.charCodeAt(i)>32;)i++;return
i}(t,cn.key=i,e),Co(t,i,e))}function t1(t,i){const e=cn.textEnd;let
n=cn.key=Co(t,i,e);return e===n?-1:(n=cn.keyEnd=function XI(t,i,e){let
n;for(;i<e&&(45===(n=t.charCodeAt(i))||95===n||(-33&n)>=65&&(-33&n)<=90||n>=48&&n<=57);)i++;return
i}(t,n,e),n=s1(t,n,e),n=cn.value=Co(t,n,e),n=cn.valueEnd=function e3(t,i,e){let
n=-1,s=-1,r=-1,o=i,u=o;for(;o<e;){const h=t.charCodeAt(o++);if(59===h)return
u;34===h||39===h?u=o=r1(t,h,o,e):i===o-4&&85===r&&82===s&&76===n&&40===h?u=o=
r1(t,41,o,e):h>32&&(u=o),r=s,s=n,n=-33&h}return
u}(t,n,e),s1(t,n,e))}function
n1(t){cn.key=0,cn.keyEnd=0,cn.value=0,cn.valueEnd=0,cn.textEnd=t.length}function
Co(t,i,e){for(;i<e&&t.charCodeAt(i)<=32;)i++;return i}function
s1(t,i,e,n){return(i=Co(t,i,e))<e&&i++,i}function r1(t,i,e,n){let
s=-1,r=e;for(;r<n;){const o=t.charCodeAt(r++);if(o==i&&92!==s)return
r;s=92==o&&92===s?0:o}throw new Error}function _i(t,i,e){return
Pi(t,i,e,!1),_i}function si(t,i){return Pi(t,i,null,!0),si}function
q(t){Fi(l1,t3,t,!1)}function t3(t,i){for(let e=function YI(t){return
n1(t),t1(t,Co(t,0,cn.textEnd))}(i);e>=0;e=t1(i,e))l1(t,Xv(i),QI(i))}function
me(t){Fi(ei,ts,t,!0)}function ts(t,i){for(let e=function JI(t){return
n1(t),e1(t,Co(t,0,cn.textEnd))}(i);e>=0;e=e1(i,e))ei(t,Xv(i),!0)}function
Pi(t,i,e,n){const
s=$(),r=tt(),o=ms(2);r.firstUpdatePass&&a1(r,t,o,n),i!==Re&&Rn(s,o,i)&&c1(r,r.data[Nn()],s,s[11],t,s[o+1]=function
c3(t,i){return null==t||("string"==typeof i?t+=i:"object"==typeof
t&&(t=ft(Vs(t)))),t
}(i,e),n,o)}function Fi(t,i,e,n){const
s=tt(),r=ms(2);s.firstUpdatePass&&a1(s,null,r,n);const
o=$();if(e!==Re&&Rn(o,r,e)){const u=s.data[Nn()];if(d1(u,n)&&!o1(s,r)){let
h=n?u.classesWithoutHost:u.stylesWithoutHost;null!==h&&(e=Vd(h,e||"")),xh(s,u,o,e,n)}else!function
l3(t,i,e,n,s,r,o,u){s===Re&&(s=Tt);let
h=0,b=0,y=0<s.length?s[0]:null,w=0<r.length?r[0]:null;for(;null!==y||null!==w;){const
M=h<s.length?s[h+1]:void 0,E=b<r.length?r[b+1]:void 0;let
O,L=null;y===w?(h+=2,b+=2,M!==E&&(L=w,O=E)):null===w||null!==y&&y<w?(h+=2,L=y):(b+=2,L=w,O=E),null!==L&&c1(t,i,e,n,L,O,o,u),y=h<s.length?s[h]:null,w=b<r.length?r[b]:null}}(s,u,o,o[11],o[r+1],o[r+1]=function
a3(t,i,e){if(null==e||""===e)return Tt;const
n=[],s=Vs(e);if(Array.isArray(s))for(let r=0;r<s.length;r++)t(n,s[r],!0);else
if("object"==typeof s)for(const r in
s)s.hasOwnProperty(r)&&t(n,r,s[r]);else"string"==typeof
s&&i(n,s);return n}(t,i,e),n,r)}}function o1(t,i){return
i>=t.expandoStartIndex}function a1(t,i,e,n){const s=t.data;if(null
===s[e+1]){const
r=s[Nn()],o=o1(t,e);d1(r,n)&&null===i&&!o&&(i=!1),i=function
n3(t,i,e,n){const s=function op(t){const
i=Ee.lFrame.currentDirectiveIndex;return-1===i?null:t[i]}(t);let
r=n?i.residualClasses:i.residualStyles;if(null===s)0===(n?i.classBindings:i.styleBindings)&&(e=Oa(e=kh(null,t,i,e,n),i.attrs,n),r=null);else{const
o=i.directiveStylingLast;if(-1===o||t[o]!==s)if(e=kh(s,t,i,e,n),null===r){let h=function
s3(t,i,e){const n=e?i.classBindings:i.styleBindings;if(0!==fs(n))return
t[Oi(n)]}(t,i,n);void
0!==h&&Array.isArray(h)&&(h=kh(null,t,i,h[1],n),h=Oa(h,i.attrs,n),function
r3(t,i,e,n){t[Oi(e?i.classBindings:i.styleBindings)]=n}(t,i,n,h))}else r=function
o3(t,i,e){let n;const s=i.directiveEnd;for(let
r=1+i.directiveStylingLast;r<s;r++)n=Oa(n,t[r].hostAttrs,e);return
Oa(n,i.attrs,e)}(t,i,n)}return void
0!==r&&(n?i.residualClasses=r:i.residualStyles=r),e}(s,r,i,n),function
$I(t,i,e,n,s,r){let o=r?i.classBindings:i.styleBindings,u=Oi(o),h=fs(o);t[n]=e;let
y,b=!1;if(Array.isArra
y(e)){const w=e;y=w[1],(null===y||Xr(w,y)>0)&&(b=!0)}else
y=e;if(s)if(0!==h){const
M=Oi(t[u+1]);t[n+1]=Cc(M,u),0!==M&&(t[M+1]=$p(t[M+1],n)),t[u+1]=function
lk(t,i){return 131071&t|i<<17}(t[u+1],n)}else
t[n+1]=Cc(u,0),0!==u&&(t[u+1]=$p(t[u+1],n)),u=n;else
t[n+1]=Cc(h,0),0===u?u=n:t[h+1]=$p(t[h+1],n),h=n;b&&(t[n+1]=jp(t[n+1])),Zv(t,y,n,!0),Zv(t,y,n,!1),function
WI(t,i,e,n,s){const
r=s?t.residualClasses:t.residualStyles;null!=r&&"string"==typeof
i&&Xr(r,i)>=0&&(e[n+1]=Wp(e[n+1]))}(i,y,t,n,r),o=Cc(u,h),r?i.classBindings=o:i.styleBindings=o}(s,r,i,e,o,n)}}function
kh(t,i,e,n,s){let r=null;const o=e.directiveEnd;let
u=e.directiveStylingLast;for(-1===u?u=e.directiveStart:u++;u<o&&(r=i[u],n=Oa(n,r.hostAttrs,s),r!==t);)u++;return
null!==t&&(e.directiveStylingLast=u),n}function Oa(t,i,e){const n=e?1:2;let
s=-1;if(null!==i)for(let r=0;r<i.length;r++){const o=i[r];"number"==typeof
o?s=o:s===n&&(Array.isArray(t)||(t=void
0===t?[]:["",t]),ei(t,o,!!e||i[++r]))}return void 0===t?null:t}function l1(
t,i,e){ei(t,i,Vs(e))}function c1(t,i,e,n,s,r,o,u){if(!(3&i.type))return;const
h=t.data,b=h[u+1];Ic(function Ib(t){return 1==(1&t)}(b)?u1(h,i,e,s,fs(b),o):void
0)||(Ic(r)||function kb(t){return
2==(2&t)}(b)&&(r=u1(h,null,e,s,u,o)),function dM(t,i,e,n,s){const
r=$t(t);if(i)s?r?t.addClass(e,n):e.classList.add(n):r?t.removeClass(e,n):e.classList.remove(n);else{let
o=-1===n.indexOf("-")?void
0:ti.DashCase;if(null==s)r?t.removeStyle(e,n,o):e.style.removeProperty(n);else{const
u="string"==typeof
s&&s.endsWith("!important");u&&(s=s.slice(0,-10),o|=ti.Important),r?t.setStyle(e,n,s,o):e.style.setProperty(n,s,u?"important":"")}}}(n,o,Ql(Nn(),e),s,r))}function
u1(t,i,e,n,s,r){const o=null===i;let u;for(;s>0;){const
h=t[s],b=Array.isArray(h),y=b?h[1]:h,w=null===y;let M=e[s+1];M===Re&&(M=w?Tt:void
0);let E=w?_p(M,n):y===n?M:void
0;if(b&&!Ic(E)&&(E=_p(h,n)),Ic(E)&&(u=E,o))return u;const
L=t[s+1];s=o?Oi(L):fs(L)}if(null!==i){let
h=r?i.residualClasses:i.residualStyles;null!=h&&(u=_p(h,n))}return u}f
unction Ic(t){return void 0!==t}function d1(t,i){return
0!=(t.flags&(i?16:32))}function g(t,i=""){const
e=$(),n=tt(),s=t+20,r=n.firstCreatePass?io(n,s,1,i,null):n.data[s],o=e[s]=function
kp(t,i){return
$t(t)?t.createText(i):t.createTextNode(i)}(e[11],i);mc(n,e,o,r),Qi(r,!1)}function
S(t){return T("",t,""),S}function T(t,i,e){const
n=$(),s=uo(n,t,i,e);return s!==Re&&gs(n,Nn(),s),T}function We(t,i,e,n,s){const
r=$(),o=po(r,t,i,e,n,s);return o!==Re&&gs(r,Nn(),o),We}function
yo(t,i,e,n,s,r,o){const u=$(),h=function ho(t,i,e,n,s,r,o,u){const
b=Mc(t,hs(),e,s,o);return ms(3),b?i+Ie(e)+n+Ie(s)+r+Ie(o)+u:Re}(u,t,i,e,n,s,r,o);return
h!==Re&&gs(u,Nn(),h),yo}function Ec(t,i,e,n,s,r,o,u,h){const b=$(),y=function
mo(t,i,e,n,s,r,o,u,h,b){const w=gi(t,hs(),e,s,o,h);return
ms(4),w?i+Ie(e)+n+Ie(s)+r+Ie(o)+u+Ie(h)+b:Re}(b,t,i,e,n,s,r,o,u,h);return
y!==Re&&gs(b,Nn(),y),Ec}function Ih(t,i,e,n,s,r,o,u,h,b,y){const w=$(),M=function
fo(t,i,e,n,s,r,o,u,h,b,y,w){const M=hs();let E=gi(t,M,e,s,o,h);return E=Rn
(t,M+4,y)||E,ms(5),E?i+Ie(e)+n+Ie(s)+r+Ie(o)+u+Ie(h)+b+Ie(y)+w:Re}(w,t,i,e,n,s,r,o,u,h,b,y);return
M!==Re&&gs(w,Nn(),M),Ih}function Eh(t,i,e,n,s,r,o,u,h,b,y,w,M){const
E=$(),L=function go(t,i,e,n,s,r,o,u,h,b,y,w,M,E){const L=hs();let O=gi(t,L,e,s,o,h);return
O=ur(t,L+4,y,M)||O,ms(6),O?i+Ie(e)+n+Ie(s)+r+Ie(o)+u+Ie(h)+b+Ie(y)+w+Ie(M)+E:Re}(E,t,i,e,n,s,r,o,u,h,b,y,w,M);return
L!==Re&&gs(E,Nn(),L),Eh}const dr=void 0;var
I3=["en",[["a","p"],["AM","PM"],dr],[["AM","PM"],dr,dr],[["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"]],dr,[["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"]],dr,[["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}",dr,"{1} 'at'
{0}",dr],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US
Dollar",{},"ltr",function k3(t){const
e=Math.floor(Math.abs(t)),n=t.toString().replace(/^[^.]*\.?/,"").length;return
1===e&&0===n?1:5}];let wo={};function Hn(t){const i=function E3(t){return
t.toLowerCase().replace(/_/g,"-")}(t);let e=M1(i);if(e)return e;const
n=i.split("-")[0];if(e=M1(n),e)return e;if("en"===n)return I3;throw
new Error(`Missing locale data for the locale "${t}".`)}function M1(t){return t
in
wo||(wo[t]=vt.ng&&vt.ng.common&&vt.ng.common.locales&&vt.ng.common.locales[t]),wo[t]}var
te=(()=>((te=te||{})[te.LocaleId=0]="LocaleId",te[te.DayPeriodsFormat=1]="DayPeriodsFormat",te[te.DayPeriodsStandalone=2]="DayPeriodsStandalone",te[te.DaysFormat=3]="DaysFormat",te[te.DaysStandalone=4]="DaysStandalone",te[te.MonthsFormat=5]="MonthsFormat",te[t
e.MonthsStandalone=6]="MonthsStandalone",te[te.Eras=7]="Eras",te[te.FirstDayOfWeek=8]="FirstDayOfWeek",te[te.WeekendRange=9]="WeekendRange",te[te.DateFormat=10]="DateFormat",te[te.TimeFormat=11]="TimeFormat",te[te.DateTimeFormat=12]="DateTimeFormat",te[te.NumberSymbols=13]="NumberSymbols",te[te.NumberFormats=14]="NumberFormats",te[te.CurrencyCode=15]="CurrencyCode",te[te.CurrencySymbol=16]="CurrencySymbol",te[te.CurrencyName=17]="CurrencyName",te[te.Currencies=18]="Currencies",te[te.Directionality=19]="Directionality",te[te.PluralCase=20]="PluralCase",te[te.ExtraData=21]="ExtraData",te))();const
Rc="en-US";let k1=Rc;function Oh(t,i,e,n,s){if(t=Ve(t),Array.isArray(t))for(let
r=0;r<t.length;r++)Oh(t[r],i,e,n,s);else{const r=tt(),o=$();let
u=ao(t)?t:Ve(t.provide),h=lv(t);const
b=rn(),y=1048575&b.providerIndexes,w=b.directiveStart,M=b.providerIndexes>>20;if(ao(t)||!t.multi){const
E=new
oa(h,s,D),L=Ph(u,i,s?y:y+M,w);-1===L?(oc(la(b,o),r,u),Ah(r,t,i.length),i.push(u),b.directiveStart++,b.
directiveEnd++,s&&(b.providerIndexes+=1048576),e.push(E),o.push(E)):(e[L]=E,o[L]=E)}else{const
E=Ph(u,i,y+M,w),L=Ph(u,i,y,y+M),O=E>=0&&e[E],N=L>=0&&e[L];if(s&&!N||!s&&!O){oc(la(b,o),r,u);const
G=function kE(t,i,e,n,s){const r=new oa(t,e,D);return
r.multi=[],r.index=i,r.componentProviders=0,Z1(r,s,n&&!e),r}(s?ME:DE,e.length,s,n,h);!s&&N&&(e[L].providerFactory=G),Ah(r,t,i.length,0),i.push(u),b.directiveStart++,b.directiveEnd++,s&&(b.providerIndexes+=1048576),e.push(G),o.push(G)}else
Ah(r,t,E>-1?E:L,Z1(e[s?L:E],h,!s&&n));!s&&n&&N&&e[L].componentProviders++}}}function
Ah(t,i,e,n){const s=ao(i),r=function Xk(t){return!!t.useClass}(i);if(s||r){const
h=(r?Ve(i.useClass):i).prototype.ngOnDestroy;if(h){const
b=t.destroyHooks||(t.destroyHooks=[]);if(!s&&i.multi){const
y=b.indexOf(e);-1===y?b.push(e,[n,h]):b[y+1].push(n,h)}else b.push(e,h)}}}function
Z1(t,i,e){return e&&t.componentProviders++,t.multi.push(i)-1}function
Ph(t,i,e,n){for(let s=e;s<n;s++)if(i[s]===t)return s;return-1}function DE(t
,i,e,n){return Fh(this.multi,[])}function ME(t,i,e,n){const s=this.multi;let
r;if(this.providerFactory){const
o=this.providerFactory.componentProviders,u=ca(e,e[1],this.providerFactory.index,n);r=u.slice(0,o),Fh(s,r);for(let
h=o;h<u.length;h++)r.push(u[h])}else r=[],Fh(s,r);return r}function Fh(t,i){for(let
e=0;e<t.length;e++)i.push((0,t[e])());return i}function Pe(t,i=[]){return
e=>{e.providersResolver=(n,s)=>function xE(t,i,e){const
n=tt();if(n.firstCreatePass){const
s=Ri(t);Oh(e,n.data,n.blueprint,s,!0),Oh(i,n.data,n.blueprint,s,!1)}}(n,s?s(t):t,i)}}class
X1{}class RE{resolveComponentFactory(i){throw function EE(t){const i=Error(`No component
factory found for ${ft(t)}. Did you add it to @NgModule.entryComponents?`);return
i.ngComponent=t,i}(i)}}let Va=(()=>{class t{}return t.NULL=new RE,t})();function
LE(){return So(rn(),$())}function So(t,i){return new De(Zn(t,i))}let De=(()=>{class
t{constructor(e){this.nativeElement=e}}return t.__NG_ELEMENT_ID__=LE,t})();function
OE(t){return
t instanceof De?t.nativeElement:t}class Ba{}let gn=(()=>{class t{}return
t.__NG_ELEMENT_ID__=()=>function PE(){const t=$(),e=Xn(rn().index,t);return function
AE(t){return t[11]}(Ki(e)?e:t)}(),t})(),FE=(()=>{class t{}return
t.\u0275prov=X({token:t,providedIn:"root",factory:()=>null}),t})();class
Ha{constructor(i){this.full=i,this.major=i.split(".")[0],this.minor=i.split(".")[1],this.patch=i.split(".").slice(2).join(".")}}const
NE=new Ha("13.3.12"),Nh={};function Fc(t,i,e,n,s=!1){for(;null!==e;){const
r=i[e.index];if(null!==r&&n.push(Yt(r)),Ei(r))for(let
u=10;u<r.length;u++){const
h=r[u],b=h[1].firstChild;null!==b&&Fc(h[1],h,b,n)}const
o=e.type;if(8&o)Fc(t,i,e.child,n);else if(32&o){const u=xp(e,i);let
h;for(;h=u();)n.push(h)}else if(16&o){const
u=rb(i,e);if(Array.isArray(u))n.push(...u);else{const
h=Ca(i[16]);Fc(h[1],h,u,n,!0)}}e=s?e.projectionNext:e.next}return n}class
qa{constructor(i,e){this._lView=i,this._cdRefInjectingView=e,this._appRef=null,this._attachedToViewContainer=!1}ge
t rootNodes(){const i=this._lView,e=i[1];return Fc(e,i,e.firstChild,[])}get
context(){return this._lView[8]}set context(i){this._lView[8]=i}get destroyed(){return
256==(256&this._lView[2])}destroy(){if(this._appRef)this._appRef.detachView(this);else
if(this._attachedToViewContainer){const i=this._lView[3];if(Ei(i)){const
e=i[8],n=e?e.indexOf(this):-1;n>-1&&(Ep(i,n),lc(e,n))}this._attachedToViewContainer=!1}J_(this._lView[1],this._lView)}onDestroy(i){Ub(this._lView[1],this._lView,null,i)}markForCheck(){lh(this._cdRefInjectingView||this._lView)}detach(){this._lView[2]&=-129}reattach(){this._lView[2]|=128}detectChanges(){!function
uh(t,i,e){const n=i[10];n.begin&&n.begin();try{ro(t,i,t.template,e)}catch(s){throw
nv(i,s),s}finally{n.end&&n.end()}}(this._lView[1],this._lView,this.context)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw
new
re(902,"");this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null,function
tM(t,i){ya(t,i,i[11],2,null,null)}(this._
lView[1],this._lView)}attachToAppRef(i){if(this._attachedToViewContainer)throw new
re(902,"");this._appRef=i}}class VE extends
qa{constructor(i){super(i),this._view=i}detectChanges(){Zb(this._view)}checkNoChanges(){}get
context(){return null}}class tC extends
Va{constructor(i){super(),this.ngModule=i}resolveComponentFactory(i){const e=Tn(i);return
new Vh(e,this.ngModule)}}function nC(t){const i=[];for(let e in
t)t.hasOwnProperty(e)&&i.push({propName:t[e],templateName:e});return i}class Vh
extends
X1{constructor(i,e){super(),this.componentDef=i,this.ngModule=e,this.componentType=i.type,this.selector=function
ok(t){return
t.map(rk).join(",")}(i.selectors),this.ngContentSelectors=i.ngContentSelectors?i.ngContentSelectors:[],this.isBoundToModule=!!e}get
inputs(){return nC(this.componentDef.inputs)}get outputs(){return
nC(this.componentDef.outputs)}create(i,e,n,s){const r=(s=s||this.ngModule)?function
HE(t,i){return{get:(e,n,s)=>{const r=t.get(e,Nh,s);return
r!==Nh||n===Nh?r:i.get(e,n,s)
}}}(i,s.injector):i,o=r.get(Ba,Yg),u=r.get(FE,null),h=o.createRenderer(null,this.componentDef),b=this.componentDef.selectors[0][0]||"div",y=n?function
Gb(t,i,e){if($t(t))return t.selectRootElement(i,e===ki.ShadowDom);let
n="string"==typeof i?t.querySelector(i):i;return
n.textContent="",n}(h,n,this.componentDef.encapsulation):Ip(o.createRenderer(null,this.componentDef),b,function
BE(t){const
i=t.toLowerCase();return"svg"===i?"svg":"math"===i?"math":null}(b)),w=this.componentDef.onPush?576:528,M=function
Cv(t,i){return{components:[],scheduler:t||KM,clean:zk,playerHandler:i||null,flags:0}}(),E=Tc(0,null,null,1,0,null,null,null,null,null),L=Da(null,E,M,w,null,null,o,h,u,r);let
O,N;Yl(L);try{const G=function bv(t,i,e,n,s,r){const o=e[1];e[20]=t;const
h=io(o,20,2,"#host",null),b=h.mergedAttrs=i.hostAttrs;null!==b&&(xc(h,b,!0),null!==t&&(nc(s,t,b),null!==h.classes&&Fp(s,t,h.classes),null!==h.styles&&ab(s,t,h.styles)));const
y=n.createRenderer(t,i),w=Da(e,Hb(i),null,i.onPush?64:16,e[20],h,n
,y,r||null,null);return
o.firstCreatePass&&(oc(la(h,e),o,i.type),Kb(o,h),Qb(h,e.length,1)),Sc(e,w),e[20]=w}(y,this.componentDef,L,o,h);if(y)if(n)nc(h,y,["ng-version",NE.full]);else{const{attrs:P,classes:J}=function
ak(t){const i=[],e=[];let n=1,s=2;for(;n<t.length;){let
r=t[n];if("string"==typeof
r)2===s?""!==r&&i.push(r,t[++n]):8===s&&e.push(r);else{if(!Li(s))break;s=r}n++}return{attrs:i,classes:e}}(this.componentDef.selectors[0]);P&&nc(h,y,P),J&&J.length>0&&Fp(h,y,J.join("
"))}if(N=ep(E,20),void 0!==e){const P=N.projection=[];for(let
J=0;J<this.ngContentSelectors.length;J++){const
se=e[J];P.push(null!=se?Array.from(se):null)}}O=function vv(t,i,e,n,s){const
r=e[1],o=function kk(t,i,e){const
n=rn();t.firstCreatePass&&(e.providersResolver&&e.providersResolver(e),Jb(t,n,i,so(t,i,1,null),e));const
s=ca(i,t,n.directiveStart,n);In(s,i);const r=Zn(n,i);return
r&&In(r,i),s}(r,e,i);if(n.components.push(o),t[8]=o,s&&s.forEach(h=>h(o,i)),i.contentQueries){const
h=rn();i.contentQueries(1,o,h.d
irectiveStart)}const
u=rn();return!r.firstCreatePass||null===i.hostBindings&&null===i.hostAttrs||(Ps(u.index),$b(e[1],u,0,u.directiveStart,u.directiveEnd,i),Wb(i,o)),o}(G,this.componentDef,L,M,[uI]),Ma(E,L,null)}finally{Zl()}return
new GE(this.componentType,O,So(N,L),L,N)}}class GE extends class
IE{}{constructor(i,e,n,s,r){super(),this.location=n,this._rootLView=s,this._tNode=r,this.instance=e,this.hostView=this.changeDetectorRef=new
VE(s),this.componentType=i}get injector(){return new
Kr(this._tNode,this._rootLView)}destroy(){this.hostView.destroy()}onDestroy(i){this.hostView.onDestroy(i)}}class
_s{}class iC{}const xo=new Map;class oC extends
_s{constructor(i,e){super(),this._parent=e,this._bootstrapComponents=[],this.injector=this,this.destroyCbs=[],this.componentFactoryResolver=new
tC(this);const
n=pi(i);this._bootstrapComponents=Zi(n.bootstrap),this._r3Injector=av(i,e,[{provide:_s,useValue:this},{provide:Va,useValue:this.componentFactoryResolver}],ft(i)),this._r3Injector._resolv
eInjectorDefTypes(),this.instance=this.get(i)}get(i,e=En.THROW_IF_NOT_FOUND,n=xe.Default){return
i===En||i===_s||i===ph?this:this._r3Injector.get(i,e,n)}destroy(){const
i=this._r3Injector;!i.destroyed&&i.destroy(),this.destroyCbs.forEach(e=>e()),this.destroyCbs=null}onDestroy(i){this.destroyCbs.push(i)}}class
Bh extends iC{constructor(i){super(),this.moduleType=i,null!==pi(i)&&function
zE(t){const i=new Set;!function e(n){const s=pi(n,!0),r=s.id;null!==r&&(function
sC(t,i,e){if(i&&i!==e)throw new Error(`Duplicate module registered for ${t} -
${ft(i)} vs ${ft(i.name)}`)}(r,xo.get(r),n),xo.set(r,n));const o=Zi(s.imports);for(const u
of o)i.has(u)||(i.add(u),e(u))}(t)}(i)}create(i){return new
oC(this.moduleType,i)}}function A(t,i,e){const n=Fn()+t,s=$();return
s[n]===Re?es(s,n,e?i.call(e):i()):Ea(s,n)}function U(t,i,e,n){return
lC($(),Fn(),t,i,e,n)}function Ge(t,i,e,n,s){return cC($(),Fn(),t,i,e,n,s)}function
Qt(t,i,e,n,s,r){return uC($(),Fn(),t,i,e,n,s,r)}function qn(t,i,e,n,s,r,o){re
turn function dC(t,i,e,n,s,r,o,u,h){const b=i+e;return
gi(t,b,s,r,o,u)?es(t,b+4,h?n.call(h,s,r,o,u):n(s,r,o,u)):Ga(t,b+4)}($(),Fn(),t,i,e,n,s,r,o)}function
pr(t,i,e,n,s,r,o,u){const h=Fn()+t,b=$(),y=gi(b,h,e,n,s,r);return
Rn(b,h+4,o)||y?es(b,h+5,u?i.call(u,e,n,s,r,o):i(e,n,s,r,o)):Ea(b,h+5)}function
Do(t,i,e,n,s,r,o,u,h){const b=Fn()+t,y=$(),w=gi(y,b,e,n,s,r);return
ur(y,b+4,o,u)||w?es(y,b+6,h?i.call(h,e,n,s,r,o,u):i(e,n,s,r,o,u)):Ea(y,b+6)}function
Hh(t,i,e,n){return function pC(t,i,e,n,s,r){let o=i+e,u=!1;for(let
h=0;h<s.length;h++)Rn(t,o++,s[h])&&(u=!0);return
u?es(t,o,n.apply(r,s)):Ga(t,o)}($(),Fn(),t,i,e,n)}function Ga(t,i){const e=t[i];return
e===Re?void 0:e}function lC(t,i,e,n,s,r){const o=i+e;return
Rn(t,o,s)?es(t,o+1,r?n.call(r,s):n(s)):Ga(t,o+1)}function cC(t,i,e,n,s,r,o){const
u=i+e;return ur(t,u,s,r)?es(t,u+2,o?n.call(o,s,r):n(s,r)):Ga(t,u+2)}function
uC(t,i,e,n,s,r,o,u){const h=i+e;return
Mc(t,h,s,r,o)?es(t,h+3,u?n.call(u,s,r,o):n(s,r,o)):Ga(t,h+3)}function m(t,i){const
e=tt();let n;const s=t+20;e.firstCreatePass?(n=function $E(t,i){if(i)for(let
e=i.length-1;e>=0;e--){const n=i[e];if(t===n.name)return
n}}(i,e.pipeRegistry),e.data[s]=n,n.onDestroy&&(e.destroyHooks||(e.destroyHooks=[])).push(s,n.onDestroy)):n=e.data[s];const
r=n.factory||(n.factory=ar(n.type)),o=Rs(D);try{const u=sc(!1),h=r();return sc(u),function
wI(t,i,e,n){e>=t.data.length&&(t.data[e]=null,t.blueprint[e]=null),i[e]=n}(e,$(),s,h),h}finally{Rs(o)}}function
f(t,i,e){const n=t+20,s=$(),r=zr(s,n);return
Ua(s,n)?lC(s,Fn(),i,r.transform,e,r):r.transform(e)}function Dt(t,i,e,n){const
s=t+20,r=$(),o=zr(r,s);return
Ua(r,s)?cC(r,Fn(),i,o.transform,e,n,o):o.transform(e,n)}function Ua(t,i){return
t[1].data[i].pure}function qh(t){return i=>{setTimeout(t,void 0,i)}}const H=class QE
extends
ct{constructor(i=!1){super(),this.__isAsync=i}emit(i){super.next(i)}subscribe(i,e,n){var
s,r,o;let u=i,h=e||(()=>null),b=n;if(i&&"object"==typeof i){const
w=i;u=null===(s=w.next)||void 0===s?void 0:s.bind(w),
h=null===(r=w.error)||void 0===r?void 0:r.bind(w),b=null===(o=w.complete)||void
0===o?void
0:o.bind(w)}this.__isAsync&&(h=qh(h),u&&(u=qh(u)),b&&(b=qh(b)));const
y=super.subscribe({next:u,error:h,complete:b});return i instanceof
Et&&i.add(y),y}};function JE(){return this._results[lo()]()}class
Gh{constructor(i=!1){this._emitDistinctChangesOnly=i,this.dirty=!0,this._results=[],this._changesDetected=!1,this._changes=null,this.length=0,this.first=void
0,this.last=void 0;const e=lo(),n=Gh.prototype;n[e]||(n[e]=JE)}get changes(){return
this._changes||(this._changes=new H)}get(i){return this._results[i]}map(i){return
this._results.map(i)}filter(i){return this._results.filter(i)}find(i){return
this._results.find(i)}reduce(i,e){return
this._results.reduce(i,e)}forEach(i){this._results.forEach(i)}some(i){return
this._results.some(i)}toArray(){return this._results.slice()}toString(){return
this._results.toString()}reset(i,e){const n=this;n.dirty=!1;const
s=fi(i);(this._changesDetected=!functio
n _D(t,i,e){if(t.length!==i.length)return!1;for(let n=0;n<t.length;n++){let
s=t[n],r=i[n];if(e&&(s=e(s),r=e(r)),r!==s)return!1}return!0}(n._results,s,e))&&(n._results=s,n.length=s.length,n.last=s[this.length-1],n.first=s[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
bi=(()=>{class t{}return t.__NG_ELEMENT_ID__=XE,t})();const YE=bi,ZE=class extends
YE{constructor(i,e,n){super(),this._declarationLView=i,this._declarationTContainer=e,this.elementRef=n}createEmbeddedView(i){const
e=this._declarationTContainer.tViews,n=Da(this._declarationLView,e,i,16,null,e.declTNode,null,null,null,null);n[17]=this._declarationLView[this._declarationTContainer.index];const
r=this._declarationLView[19];return
null!==r&&(n[19]=r.createEmbeddedView(e)),Ma(e,n,i),new qa(n)}};function
XE(){return Nc(rn(),$())}function Nc(t,i){return 4&t.typ
e?new ZE(i,t,So(t,i)):null}let vi=(()=>{class t{}return
t.__NG_ELEMENT_ID__=eR,t})();function eR(){return gC(rn(),$())}const tR=vi,mC=class
extends
tR{constructor(i,e,n){super(),this._lContainer=i,this._hostTNode=e,this._hostLView=n}get
element(){return So(this._hostTNode,this._hostLView)}get injector(){return new
Kr(this._hostTNode,this._hostLView)}get parentInjector(){const
i=rc(this._hostTNode,this._hostLView);if(f_(i)){const
e=Wr(i,this._hostLView),n=$r(i);return new Kr(e[1].data[n+8],e)}return new
Kr(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(i){const
e=fC(this._lContainer);return null!==e&&e[i]||null}get length(){return
this._lContainer.length-10}createEmbeddedView(i,e,n){const
s=i.createEmbeddedView(e||{});return this.insert(s,n),s}createComponent(i,e,n,s,r){const
o=i&&!function pa(t){return"function"==typeof t}(i);let
u;if(o)u=e;else{const
w=e||{};u=w.index,n=w.injector,s=w.projectableNodes,r=w.ngModuleRef}const h=o?i:new
Vh(Tn(i)),b=n||
this.parentInjector;if(!r&&null==h.ngModule){const
M=(o?b:this.parentInjector).get(_s,null);M&&(r=M)}const y=h.create(b,s,void
0,r);return this.insert(y.hostView,u),y}insert(i,e){const n=i._lView,s=n[1];if(function
Bx(t){return Ei(t[3])}(n)){const y=this.indexOf(i);if(-1!==y)this.detach(y);else{const
w=n[3],M=new mC(w,w[6],w[3]);M.detach(M.indexOf(i))}}const
r=this._adjustIndex(e),o=this._lContainer;!function iM(t,i,e,n){const
s=10+n,r=e.length;n>0&&(e[s-1][4]=i),n<r-10?(i[4]=e[s],x_(e,10+n,i)):(e.push(i),i[4]=null),i[3]=e;const
o=i[17];null!==o&&e!==o&&function sM(t,i){const
e=t[9];i[16]!==i[3][3][16]&&(t[2]=!0),null===e?t[9]=[i]:e.push(i)}(o,i);const
u=i[19];null!==u&&u.insertView(t),i[2]|=128}(s,n,o,r);const
u=Op(r,o),h=n[11],b=hc(h,o[7]);return null!==b&&function
eM(t,i,e,n,s,r){n[0]=s,n[6]=i,ya(t,n,e,1,s,r)}(s,o[6],h,n,b,u),i.attachToViewContainerRef(),x_(Uh(o),r,i),i}move(i,e){return
this.insert(i,e)}indexOf(i){const e=fC(this._lContainer);return
null!==e?e.indexOf(i):-1}remov
e(i){const
e=this._adjustIndex(i,-1),n=Ep(this._lContainer,e);n&&(lc(Uh(this._lContainer),e),J_(n[1],n))}detach(i){const
e=this._adjustIndex(i,-1),n=Ep(this._lContainer,e);return
n&&null!=lc(Uh(this._lContainer),e)?new qa(n):null}_adjustIndex(i,e=0){return
null==i?this.length+e:i}};function fC(t){return t[8]}function Uh(t){return
t[8]||(t[8]=[])}function gC(t,i){let e;const n=i[t.index];if(Ei(n))e=n;else{let
s;if(8&t.type)s=Yt(n);else{const r=i[11];s=r.createComment("");const
o=Zn(t,i);lr(r,hc(r,o),s,function lM(t,i){return
$t(t)?t.nextSibling(i):i.nextSibling}(r,o),!1)}i[t.index]=e=Yb(n,i,s,t),Sc(i,e)}return new
mC(e,t,i)}class zh{constructor(i){this.queryList=i,this.matches=null}clone(){return new
zh(this.queryList)}setDirty(){this.queryList.setDirty()}}class
jh{constructor(i=[]){this.queries=i}createEmbeddedView(i){const
e=i.queries;if(null!==e){const
n=null!==i.contentQueries?i.contentQueries[0]:e.length,s=[];for(let r=0;r<n;r++){const
o=e.getByIndex(r);s.push(this.queries[o.ind
exInDeclarationView].clone())}return new jh(s)}return
null}insertView(i){this.dirtyQueriesWithMatches(i)}detachView(i){this.dirtyQueriesWithMatches(i)}dirtyQueriesWithMatches(i){for(let
e=0;e<this.queries.length;e++)null!==yC(i,e).matches&&this.queries[e].setDirty()}}class
_C{constructor(i,e,n=null){this.predicate=i,this.flags=e,this.read=n}}class
$h{constructor(i=[]){this.queries=i}elementStart(i,e){for(let
n=0;n<this.queries.length;n++)this.queries[n].elementStart(i,e)}elementEnd(i){for(let
e=0;e<this.queries.length;e++)this.queries[e].elementEnd(i)}embeddedTView(i){let
e=null;for(let n=0;n<this.length;n++){const
s=null!==e?e.length:0,r=this.getByIndex(n).embeddedTView(i,s);r&&(r.indexInDeclarationView=n,null!==e?e.push(r):e=[r])}return
null!==e?new $h(e):null}template(i,e){for(let
n=0;n<this.queries.length;n++)this.queries[n].template(i,e)}getByIndex(i){return
this.queries[i]}get length(){return
this.queries.length}track(i){this.queries.push(i)}}class Wh{constructor(i,e=-1){this.
metadata=i,this.matches=null,this.indexInDeclarationView=-1,this.crossesNgTemplate=!1,this._appliesToNextNode=!0,this._declarationNodeIndex=e}elementStart(i,e){this.isApplyingToNode(e)&&this.matchTNode(i,e)}elementEnd(i){this._declarationNodeIndex===i.index&&(this._appliesToNextNode=!1)}template(i,e){this.elementStart(i,e)}embeddedTView(i,e){return
this.isApplyingToNode(i)?(this.crossesNgTemplate=!0,this.addMatch(-i.index,e),new
Wh(this.metadata)):null}isApplyingToNode(i){if(this._appliesToNextNode&&1!=(1&this.metadata.flags)){const
e=this._declarationNodeIndex;let
n=i.parent;for(;null!==n&&8&n.type&&n.index!==e;)n=n.parent;return
e===(null!==n?n.index:-1)}return this._appliesToNextNode}matchTNode(i,e){const
n=this.metadata.predicate;if(Array.isArray(n))for(let s=0;s<n.length;s++){const
r=n[s];this.matchTNodeWithReadOption(i,e,sR(e,r)),this.matchTNodeWithReadOption(i,e,ac(e,i,r,!1,!1))}else
n===bi?4&e.type&&this.matchTNodeWithReadOption(i,e,-1):this.matchTNodeWithReadOption(i,e,ac(e
,i,n,!1,!1))}matchTNodeWithReadOption(i,e,n){if(null!==n){const
s=this.metadata.read;if(null!==s)if(s===De||s===vi||s===bi&&4&e.type)this.addMatch(e.index,-2);else{const
r=ac(e,i,s,!1,!1);null!==r&&this.addMatch(e.index,r)}else
this.addMatch(e.index,n)}}addMatch(i,e){null===this.matches?this.matches=[i,e]:this.matches.push(i,e)}}function
sR(t,i){const e=t.localNames;if(null!==e)for(let n=0;n<e.length;n+=2)if(e[n]===i)return
e[n+1];return null}function oR(t,i,e,n){return-1===e?function rR(t,i){return
11&t.type?So(t,i):4&t.type?Nc(t,i):null}(i,t):-2===e?function aR(t,i,e){return
e===De?So(i,t):e===bi?Nc(i,t):e===vi?gC(i,t):void 0}(t,i,n):ca(t,t[1],e,i)}function
bC(t,i,e,n){const s=i[19].queries[n];if(null===s.matches){const
r=t.data,o=e.matches,u=[];for(let h=0;h<o.length;h+=2){const
b=o[h];u.push(b<0?null:oR(i,r[b],o[h+1],e.metadata.read))}s.matches=u}return
s.matches}function Kh(t,i,e,n){const
s=t.queries.getByIndex(e),r=s.matches;if(null!==r){const o=bC(t,i,s,e);for(let
u=0;u<r.len
gth;u+=2){const h=r[u];if(h>0)n.push(o[u/2]);else{const b=r[u+1],y=i[-h];for(let
w=10;w<y.length;w++){const
M=y[w];M[17]===M[3]&&Kh(M[1],M,b,n)}if(null!==y[9]){const w=y[9];for(let
M=0;M<w.length;M++){const E=w[M];Kh(E[1],E,b,n)}}}}}return n}function V(t){const
i=$(),e=tt(),n=r_();ap(n+1);const
s=yC(e,n);if(t.dirty&&Zg(i)===(2==(2&s.metadata.flags))){if(null===s.matches)t.reset([]);else{const
r=s.crossesNgTemplate?Kh(e,i,n,[]):bC(e,i,s,n);t.reset(r,OE),t.notifyOnChanges()}return!0}return!1}function
W(t,i,e){const n=tt();n.firstCreatePass&&(CC(n,new
_C(t,i,e),-1),2==(2&i)&&(n.staticViewQueries=!0)),vC(n,$(),i)}function
st(t,i,e,n){const s=tt();if(s.firstCreatePass){const r=rn();CC(s,new
_C(i,e,n),r.index),function cR(t,i){const
e=t.contentQueries||(t.contentQueries=[]);i!==(e.length?e[e.length-1]:-1)&&e.push(t.queries.length-1,i)}(s,t),2==(2&e)&&(s.staticContentQueries=!0)}vC(s,$(),e)}function
B(){return function lR(t,i){return t[19].queries[i].queryList}($(),r_())}function
vC(t,i,e)
{const n=new Gh(4==(4&e));Ub(t,i,n,n.destroy),null===i[19]&&(i[19]=new
jh),i[19].queries.push(new zh(n))}function
CC(t,i,e){null===t.queries&&(t.queries=new $h),t.queries.track(new
Wh(i,e))}function yC(t,i){return t.queries.getByIndex(i)}function we(t,i){return
Nc(t,i)}function Hc(...t){}const em=new be("Application Initializer");let
tm=(()=>{class
t{constructor(e){this.appInits=e,this.resolve=Hc,this.reject=Hc,this.initialized=!1,this.done=!1,this.donePromise=new
Promise((n,s)=>{this.resolve=n,this.reject=s})}runInitializers(){if(this.initialized)return;const
e=[],n=()=>{this.done=!0,this.resolve()};if(this.appInits)for(let
s=0;s<this.appInits.length;s++){const r=this.appInits[s]();if(Ra(r))e.push(r);else
if(Dh(r)){const o=new
Promise((u,h)=>{r.subscribe({complete:u,error:h})});e.push(o)}}Promise.all(e).then(()=>{n()}).catch(s=>{this.reject(s)}),0===e.length&&n(),this.initialized=!0}}return
t.\u0275fac=function(e){return
new(e||t)(K(em,8))},t.\u0275prov=X({token:t,factory:t.\u0275f
ac,providedIn:"root"}),t})();const ja=new
be("AppId",{providedIn:"root",factory:function
VC(){return`${nm()}${nm()}${nm()}`}});function nm(){return
String.fromCharCode(97+Math.floor(25*Math.random()))}const BC=new be("Platform
Initializer"),qc=new be("Platform
ID",{providedIn:"platform",factory:()=>"unknown"}),HC=new
be("appBootstrapListener");let DR=(()=>{class
t{log(e){console.log(e)}warn(e){console.warn(e)}}return t.\u0275fac=function(e){return
new(e||t)},t.\u0275prov=X({token:t,factory:t.\u0275fac,providedIn:"platform"}),t})();const
qs=new
be("LocaleId",{providedIn:"root",factory:()=>O_(qs,xe.Optional|xe.SkipSelf)||function
MR(){return"undefined"!=typeof
$localize&&$localize.locale||Rc}()});class
IR{constructor(i,e){this.ngModuleFactory=i,this.componentFactories=e}}let
qC=(()=>{class t{compileModuleSync(e){return new Bh(e)}compileModuleAsync(e){return
Promise.resolve(this.compileModuleSync(e))}compileModuleAndAllComponentsSync(e){const
n=this.compileModuleSync(e),r=Zi(pi(e).decl
arations).reduce((o,u)=>{const h=Tn(u);return h&&o.push(new
Vh(h)),o},[]);return new IR(n,r)}compileModuleAndAllComponentsAsync(e){return
Promise.resolve(this.compileModuleAndAllComponentsSync(e))}clearCache(){}clearCacheFor(e){}getModuleId(e){}}return
t.\u0275fac=function(e){return
new(e||t)},t.\u0275prov=X({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();const
RR=(()=>Promise.resolve(0))();function im(t){"undefined"==typeof
Zone?RR.then(()=>{t&&t.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",t)}class
nt{constructor({enableLongStackTrace:i=!1,shouldCoalesceEventChangeDetection:e=!1,shouldCoalesceRunChangeDetection:n=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new
H(!1),this.onMicrotaskEmpty=new H(!1),this.onStable=new H(!1),this.onError=new
H(!1),"undefined"==typeof Zone)throw new Error("In this configuration
Angular requires Zone.js");Zone.assertZonePatched();const
s=this;s._nesting=0,s._outer=s._
inner=Zone.current,Zone.TaskTrackingZoneSpec&&(s._inner=s._inner.fork(new
Zone.TaskTrackingZoneSpec)),i&&Zone.longStackTraceZoneSpec&&(s._inner=s._inner.fork(Zone.longStackTraceZoneSpec)),s.shouldCoalesceEventChangeDetection=!n&&e,s.shouldCoalesceRunChangeDetection=n,s.lastRequestAnimationFrameId=-1,s.nativeRequestAnimationFrame=function
LR(){let
t=vt.requestAnimationFrame,i=vt.cancelAnimationFrame;if("undefined"!=typeof
Zone&&t&&i){const
e=t[Zone.__symbol__("OriginalDelegate")];e&&(t=e);const
n=i[Zone.__symbol__("OriginalDelegate")];n&&(i=n)}return{nativeRequestAnimationFrame:t,nativeCancelAnimationFrame:i}}().nativeRequestAnimationFrame,function
PR(t){const i=()=>{!function
AR(t){t.isCheckStableRunning||-1!==t.lastRequestAnimationFrameId||(t.lastRequestAnimationFrameId=t.nativeRequestAnimationFrame.call(vt,()=>{t.fakeTopEventTask||(t.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{t.lastRequestAnimationFrameId=-1,rm(t),t.isCheckStableRunning=!0,sm(t),t.isCheck
StableRunning=!1},void
0,()=>{},()=>{})),t.fakeTopEventTask.invoke()}),rm(t))}(t)};t._inner=t._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(e,n,s,r,o,u)=>{try{return
GC(t),e.invokeTask(s,r,o,u)}finally{(t.shouldCoalesceEventChangeDetection&&"eventTask"===r.type||t.shouldCoalesceRunChangeDetection)&&i(),UC(t)}},onInvoke:(e,n,s,r,o,u,h)=>{try{return
GC(t),e.invoke(s,r,o,u,h)}finally{t.shouldCoalesceRunChangeDetection&&i(),UC(t)}},onHasTask:(e,n,s,r)=>{e.hasTask(s,r),n===s&&("microTask"==r.change?(t._hasPendingMicrotasks=r.microTask,rm(t),sm(t)):"macroTask"==r.change&&(t.hasPendingMacrotasks=r.macroTask))},onHandleError:(e,n,s,r)=>(e.handleError(s,r),t.runOutsideAngular(()=>t.onError.emit(r)),!1)})}(s)}static
isInAngularZone(){return"undefined"!=typeof
Zone&&!0===Zone.current.get("isAngularZone")}static
assertInAngularZone(){if(!nt.isInAngularZone())throw new Error("Expected to be in
Angular Zone, but it is not!")}static assertNotInAngularZone(){if(nt.isInAngu
larZone())throw new Error("Expected to not be in Angular Zone, but it
is!")}run(i,e,n){return this._inner.run(i,e,n)}runTask(i,e,n,s){const
r=this._inner,o=r.scheduleEventTask("NgZoneEvent: "+s,i,OR,Hc,Hc);try{return
r.runTask(o,e,n)}finally{r.cancelTask(o)}}runGuarded(i,e,n){return
this._inner.runGuarded(i,e,n)}runOutsideAngular(i){return this._outer.run(i)}}const
OR={};function
sm(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
rm(t){t.hasPendingMicrotasks=!!(t._hasPendingMicrotasks||(t.shouldCoalesceEventChangeDetection||t.shouldCoalesceRunChangeDetection)&&-1!==t.lastRequestAnimationFrameId)}function
GC(t){t._nesting++,t.isStable&&(t.isStable=!1,t.onUnstable.emit(null))}function
UC(t){t._nesting--,sm(t)}class
FR{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isSta
ble=!0,this.onUnstable=new H,this.onMicrotaskEmpty=new H,this.onStable=new
H,this.onError=new H}run(i,e,n){return i.apply(e,n)}runGuarded(i,e,n){return
i.apply(e,n)}runOutsideAngular(i){return i()}runTask(i,e,n,s){return i.apply(e,n)}}let
om=(()=>{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:()=>{nt.assertNotInAngularZone(),im(()=>{this._isZoneStable=!0,this._runCallbacksIfReady()})}})})}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())im(()=>{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(n=>!n.updateCb||!n.updateCb(e)||(clearTimeout(n.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,n,s){let
r=-1;n&&n>0&&(r=setTimeout(()=>{this._callbacks=this._callbacks.filter(o=>o.timeoutId!==r),e(this._didWork,this.getPendingTasks())},n)),this._callbacks.push({doneCb:e,timeoutId:r,updateCb:s})}whenStable(e,n,s){if(s&&!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,n,s),this._runCallbacksIfReady()}getPendingRequestCount(){return
this._pendingCount}findProviders(e,n,s){return[]}}return t.\u0275fac=function(e){return
new(e||t)(K(nt))},t.\u0275prov=X({token:t,factory:t.\u0275fac}),t})(),NR=(()=>{class
t{constructor(){this._applications=new
Map,am.addToWindow(this)}registerApplication(e,n){this._applications.set(e,n)}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())}findTestabilityInTree(e,n=!0){return
am.findTestabilityInTree(this,e,n)}}return t.\u0275fac=function(e){return
new(e||t)},t.\u0275prov=X({token:t,factory:t.\u0275fac,providedIn:"platform"}),t})();class
VR{addToWindow(i){}findTestabilityInTr
ee(i,e,n){return null}}let am=new VR,hr=null;const zC=new
be("AllowMultipleToken"),jC=new be("PlatformOnDestroy");class
$C{constructor(i,e){this.name=i,this.token=e}}function WC(t,i,e=[]){const n=`Platform:
${i}`,s=new be(n);return(r=[])=>{let o=lm();if(!o||o.injector.get(zC,!1)){const
u=[...e,...r,{provide:s,useValue:!0}];t?t(u):function
GR(t){if(hr&&!hr.get(zC,!1))throw new re(400,"");hr=t;const
i=t.get(KC),e=t.get(BC,null);e&&e.forEach(n=>n())}(function zR(t=[],i){return
En.create({name:i,providers:[{provide:hh,useValue:"platform"},{provide:jC,useValue:()=>hr=null},...t]})}(u,n))}return
function UR(t){const i=lm();if(!i)throw new re(401,"");return i}()}}function
lm(){var t;return null!==(t=null==hr?void 0:hr.get(KC))&&void 0!==t?t:null}let
KC=(()=>{class
t{constructor(e){this._injector=e,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(e,n){const
u=function jR(t,i){let e;return e="noop"===t?new
FR:("zone.js"===t?void 0:t)||new nt({enableLongSta
ckTrace:!1,shouldCoalesceEventChangeDetection:!!(null==i?void
0:i.ngZoneEventCoalescing),shouldCoalesceRunChangeDetection:!!(null==i?void
0:i.ngZoneRunCoalescing)}),e}(n?n.ngZone:void
0,{ngZoneEventCoalescing:n&&n.ngZoneEventCoalescing||!1,ngZoneRunCoalescing:n&&n.ngZoneRunCoalescing||!1}),h=[{provide:nt,useValue:u}];return
u.run(()=>{const
b=En.create({providers:h,parent:this.injector,name:e.moduleType.name}),y=e.create(b),w=y.injector.get(xa,null);if(!w)throw
new re(402,"");return u.runOutsideAngular(()=>{const
M=u.onError.subscribe({next:E=>{w.handleError(E)}});y.onDestroy(()=>{um(this._modules,y),M.unsubscribe()})}),function
$R(t,i,e){try{const n=e();return Ra(n)?n.catch(s=>{throw
i.runOutsideAngular(()=>t.handleError(s)),s}):n}catch(n){throw
i.runOutsideAngular(()=>t.handleError(n)),n}}(w,u,()=>{const
M=y.injector.get(tm);return M.runInitializers(),M.donePromise.then(()=>(function
A3(t){Jn(t,"Expected localeId to be defined"),"string"==typeof
t&&(k1=t.toLowerCase().replace(/_/g
,"-"))}(y.injector.get(qs,Rc)||Rc),this._moduleDoBootstrap(y),y))})})}bootstrapModule(e,n=[]){const
s=QC({},n);return function HR(t,i,e){const n=new Bh(e);return
Promise.resolve(n)}(0,0,e).then(r=>this.bootstrapModuleFactory(r,s))}_moduleDoBootstrap(e){const
n=e.injector.get(cm);if(e._bootstrapComponents.length>0)e._bootstrapComponents.forEach(s=>n.bootstrap(s));else{if(!e.instance.ngDoBootstrap)throw
new
re(403,"");e.instance.ngDoBootstrap(n)}this._modules.push(e)}onDestroy(e){this._destroyListeners.push(e)}get
injector(){return this._injector}destroy(){if(this._destroyed)throw new
re(404,"");this._modules.slice().forEach(n=>n.destroy()),this._destroyListeners.forEach(n=>n());const
e=this._injector.get(jC,null);null==e||e(),this._destroyed=!0}get destroyed(){return
this._destroyed}}return t.\u0275fac=function(e){return
new(e||t)(K(En))},t.\u0275prov=X({token:t,factory:t.\u0275fac,providedIn:"platform"}),t})();function
QC(t,i){return Array.isArray(i)?i.reduce(QC,t):Object.assign(Obj
ect.assign({},t),i)}let cm=(()=>{class
t{constructor(e,n,s,r){this._zone=e,this._injector=n,this._exceptionHandler=s,this._initStatus=r,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
o=new
Je(h=>{this._stable=this._zone.isStable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks,this._zone.runOutsideAngular(()=>{h.next(this._stable),h.complete()})}),u=new
Je(h=>{let
b;this._zone.runOutsideAngular(()=>{b=this._zone.onStable.subscribe(()=>{nt.assertNotInAngularZone(),im(()=>{!this._stable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks&&(this._stable=!0,h.next(!0))})})});const
y=this._zone.onUnstable.subscribe(()=>{nt.assertInAngularZone(),this._stable&&(this._stable=!1,this._zone.runOutsideAngular(()=>{h.next(!1)}))});return()=>{b.unsubscribe(),y.un
subscribe()}});this.isStable=function YS(...t){let
i=Number.POSITIVE_INFINITY,e=null,n=t[t.length-1];return
Vr(n)?(e=t.pop(),t.length>1&&"number"==typeof
t[t.length-1]&&(i=t.pop())):"number"==typeof
n&&(i=t.pop()),null===e&&1===t.length&&t[0]instanceof
Je?t[0]:ea(i)(Pd(t,e))}(o,u.pipe(function ox(){return t=>Fd()(function ix(t,i){return
function(n){let s;if(s="function"==typeof t?t:function(){return
t},"function"==typeof i)return n.lift(new sx(s,i));const
r=Object.create(n,ex);return
r.source=n,r.subjectFactory=s,r}}(rx)(t))}()))}bootstrap(e,n){if(!this._initStatus.done)throw
new re(405,"");let s;s=e instanceof
X1?e:this._injector.get(Va).resolveComponentFactory(e),this.componentTypes.push(s.componentType);const
r=function qR(t){return t.isBoundToModule}(s)?void
0:this._injector.get(_s),u=s.create(En.NULL,[],n||s.selector,r),h=u.location.nativeElement,b=u.injector.get(om,null),y=b&&u.injector.get(NR);return
b&&y&&y.registerApplication(h,b),u.onDestroy(()=>{this.detachView(u.hostView
),um(this.components,u),y&&y.unregisterApplication(h)}),this._loadComponent(u),u}tick(){if(this._runningTick)throw
new re(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
n=e;this._views.push(n),n.attachToAppRef(this)}detachView(e){const
n=e;um(this._views,n),n.detachFromAppRef()}_loadComponent(e){this.attachView(e.hostView),this.tick(),this.components.push(e),this._injector.get(HC,[]).concat(this._bootstrapListeners).forEach(s=>s(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)(K(nt),K(En),K(xa),K(tm))},t.\u0275prov=X({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();function
um(t,i){const e=t.indexOf(i);e>-1&&t.splice(e,1)}let
YC=!0,ZC=!1,rt=(()=>{class t{}return t.__NG_
ELEMENT_ID__=JR,t})();function JR(t){return function
YR(t,i,e){if(Wl(t)&&!e){const n=Xn(t.index,i);return new qa(n,n)}return
47&t.type?new qa(i[16],i):null}(rn(),$(),16==(16&t))}class
ny{constructor(){}supports(i){return Ia(i)}create(i){return new iL(i)}}const
nL=(t,i)=>i;class
iL{constructor(i){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=i||nL}forEachItem(i){let
e;for(e=this._itHead;null!==e;e=e._next)i(e)}forEachOperation(i){let
e=this._itHead,n=this._removalsHead,s=0,r=null;for(;e||n;){const
o=!n||e&&e.currentIndex<sy(n,s,r)?e:n,u=sy(o,s,r),h=o.currentIndex;if(o===n)s--,n=n._nextRemoved;else
if(e=e._next,null==o.previousIndex)s++;else{r||(r=[]);const b=u-s,y=h-s;if(b!=y){for(let
M=0;
M<b;M++){const
E=M<r.length?r[M]:r[M]=0,L=E+M;y<=L&&L<b&&(r[M]=E+1)}r[o.previousIndex]=y-b}}u!==h&&i(o,u,h)}}forEachPreviousItem(i){let
e;for(e=this._previousItHead;null!==e;e=e._nextPrevious)i(e)}forEachAddedItem(i){let
e;for(e=this._additionsHead;null!==e;e=e._nextAdded)i(e)}forEachMovedItem(i){let
e;for(e=this._movesHead;null!==e;e=e._nextMoved)i(e)}forEachRemovedItem(i){let
e;for(e=this._removalsHead;null!==e;e=e._nextRemoved)i(e)}forEachIdentityChange(i){let
e;for(e=this._identityChangesHead;null!==e;e=e._nextIdentityChange)i(e)}diff(i){if(null==i&&(i=[]),!Ia(i))throw
new re(900,"");return
this.check(i)?this:null}onDestroy(){}check(i){this._reset();let
s,r,o,e=this._itHead,n=!1;if(Array.isArray(i)){this.length=i.length;for(let
u=0;u<this.length;u++)r=i[u],o=this._trackByFn(u,r),null!==e&&Object.is(e.trackById,o)?(n&&(e=this._verifyReinsertion(e,r,o,u)),Object.is(e.item,r)||this._addIdentityChange(e,r)):(e=this._mismatch(e,r,o,u),n=!0),e=e._next}else
s=0,function CI(t,i){if(Arra
y.isArray(t))for(let e=0;e<t.length;e++)i(t[e]);else{const e=t[lo()]();let
n;for(;!(n=e.next()).done;)i(n.value)}}(i,u=>{o=this._trackByFn(s,u),null!==e&&Object.is(e.trackById,o)?(n&&(e=this._verifyReinsertion(e,u,o,s)),Object.is(e.item,u)||this._addIdentityChange(e,u)):(e=this._mismatch(e,u,o,s),n=!0),e=e._next,s++}),this.length=s;return
this._truncate(e),this.collection=i,this.isDirty}get isDirty(){return
null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let
i;for(i=this._previousItHead=this._itHead;null!==i;i=i._next)i._nextPrevious=i._next;for(i=this._additionsHead;null!==i;i=i._nextAdded)i.previousIndex=i.currentIndex;for(this._additionsHead=this._additionsTail=null,i=this._movesHead;null!==i;i=i._nextMoved)i.previousIndex=i.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(i,e,n,s)
{let r;return
null===i?r=this._itTail:(r=i._prev,this._remove(i)),null!==(i=null===this._unlinkedRecords?null:this._unlinkedRecords.get(n,null))?(Object.is(i.item,e)||this._addIdentityChange(i,e),this._reinsertAfter(i,r,s)):null!==(i=null===this._linkedRecords?null:this._linkedRecords.get(n,s))?(Object.is(i.item,e)||this._addIdentityChange(i,e),this._moveAfter(i,r,s)):i=this._addAfter(new
sL(e,n),r,s),i}_verifyReinsertion(i,e,n,s){let
r=null===this._unlinkedRecords?null:this._unlinkedRecords.get(n,null);return
null!==r?i=this._reinsertAfter(r,i._prev,s):i.currentIndex!=s&&(i.currentIndex=s,this._addToMoves(i,s)),i}_truncate(i){for(;null!==i;){const
e=i._next;this._addToRemovals(this._unlink(i)),i=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._nextRemove
d=null),null!==this._identityChangesTail&&(this._identityChangesTail._nextIdentityChange=null)}_reinsertAfter(i,e,n){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(i);const
s=i._prevRemoved,r=i._nextRemoved;return
null===s?this._removalsHead=r:s._nextRemoved=r,null===r?this._removalsTail=s:r._prevRemoved=s,this._insertAfter(i,e,n),this._addToMoves(i,n),i}_moveAfter(i,e,n){return
this._unlink(i),this._insertAfter(i,e,n),this._addToMoves(i,n),i}_addAfter(i,e,n){return
this._insertAfter(i,e,n),this._additionsTail=null===this._additionsTail?this._additionsHead=i:this._additionsTail._nextAdded=i,i}_insertAfter(i,e,n){const
s=null===e?this._itHead:e._next;return
i._next=s,i._prev=e,null===s?this._itTail=i:s._prev=i,null===e?this._itHead=i:e._next=i,null===this._linkedRecords&&(this._linkedRecords=new
iy),this._linkedRecords.put(i),i.currentIndex=n,i}_remove(i){return
this._addToRemovals(this._unlink(i))}_unlink(i){null!==this._linkedRecords&&this._linkedRecords.remove(i);const
e=i._prev,n=i._next;return
null===e?this._itHead=n:e._next=n,null===n?this._itTail=e:n._prev=e,i}_addToMoves(i,e){return
i.previousIndex===e||(this._movesTail=null===this._movesTail?this._movesHead=i:this._movesTail._nextMoved=i),i}_addToRemovals(i){return
null===this._unlinkedRecords&&(this._unlinkedRecords=new
iy),this._unlinkedRecords.put(i),i.currentIndex=null,i._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=i,i._prevRemoved=null):(i._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=i),i}_addIdentityChange(i,e){return
i.item=e,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=i:this._identityChangesTail._nextIdentityChange=i,i}}class
sL{constructor(i,e){this.item=i,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._next
Added=null,this._nextMoved=null,this._nextIdentityChange=null}}class
rL{constructor(){this._head=null,this._tail=null}add(i){null===this._head?(this._head=this._tail=i,i._nextDup=null,i._prevDup=null):(this._tail._nextDup=i,i._prevDup=this._tail,i._nextDup=null,this._tail=i)}get(i,e){let
n;for(n=this._head;null!==n;n=n._nextDup)if((null===e||e<=n.currentIndex)&&Object.is(n.trackById,i))return
n;return null}remove(i){const e=i._prevDup,n=i._nextDup;return
null===e?this._head=n:e._nextDup=n,null===n?this._tail=e:n._prevDup=e,null===this._head}}class
iy{constructor(){this.map=new Map}put(i){const e=i.trackById;let
n=this.map.get(e);n||(n=new rL,this.map.set(e,n)),n.add(i)}get(i,e){const
s=this.map.get(i);return s?s.get(i,e):null}remove(i){const e=i.trackById;return
this.map.get(e).remove(i)&&this.map.delete(e),i}get isEmpty(){return
0===this.map.size}clear(){this.map.clear()}}function sy(t,i,e){const
n=t.previousIndex;if(null===n)return n;let s=0;return
e&&n<e.length&&(s=e[n]),n+i+s}cl
ass ry{constructor(){}supports(i){return i instanceof Map||vh(i)}create(){return new
oL}}class oL{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(i){let
e;for(e=this._mapHead;null!==e;e=e._next)i(e)}forEachPreviousItem(i){let
e;for(e=this._previousMapHead;null!==e;e=e._nextPrevious)i(e)}forEachChangedItem(i){let
e;for(e=this._changesHead;null!==e;e=e._nextChanged)i(e)}forEachAddedItem(i){let
e;for(e=this._additionsHead;null!==e;e=e._nextAdded)i(e)}forEachRemovedItem(i){let
e;for(e=this._removalsHead;null!==e;e=e._nextRemoved)i(e)}diff(i){if(i){if(!(i instanceof
Map||vh(i)))throw new re(900,"")}else i=new Map;return
this.check(i)?this:null}onDestroy(){}check(i){this._reset();
let
e=this._mapHead;if(this._appendAfter=null,this._forEach(i,(n,s)=>{if(e&&e.key===s)this._maybeAddToChanges(e,n),this._appendAfter=e,e=e._next;else{const
r=this._getOrCreateRecordForKey(s,n);e=this._insertBeforeOrAppend(e,r)}}),e){e._prev&&(e._prev._next=null),this._removalsHead=e;for(let
n=e;null!==n;n=n._nextRemoved)n===this._mapHead&&(this._mapHead=null),this._records.delete(n.key),n._nextRemoved=n._next,n.previousValue=n.currentValue,n.currentValue=null,n._prev=null,n._next=null}return
this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(i,e){if(i){const
n=i._prev;return
e._next=i,e._prev=n,i._prev=e,n&&(n._next=e),i===this._mapHead&&(this._mapHead=e),this._appendAfter=i,i}return
this._appendAfter?(this._appendAfter._next=e,e._prev=this._appendAfter):this._mapHead=e,this._appendAfter=e,null}_getOrCreateRecordForKey(i,e){if(this._records.has(i)){const
s=this._records.get(i);this._m
aybeAddToChanges(s,e);const r=s._prev,o=s._next;return
r&&(r._next=o),o&&(o._prev=r),s._next=null,s._prev=null,s}const n=new
aL(i);return
this._records.set(i,n),n.currentValue=e,this._addToAdditions(n),n}_reset(){if(this.isDirty){let
i;for(this._previousMapHead=this._mapHead,i=this._previousMapHead;null!==i;i=i._next)i._nextPrevious=i._next;for(i=this._changesHead;null!==i;i=i._nextChanged)i.previousValue=i.currentValue;for(i=this._additionsHead;null!=i;i=i._nextAdded)i.previousValue=i.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(i,e){Object.is(e,i.currentValue)||(i.previousValue=i.currentValue,i.currentValue=e,this._addToChanges(i))}_addToAdditions(i){null===this._additionsHead?this._additionsHead=this._additionsTail=i:(this._additionsTail._nextAdded=i,this._additionsTail=i)}_addToChanges(i){null===this._changesHead?this._changesHead=this._changesTail=i:(this._changesTail._nextChanged=
i,this._changesTail=i)}_forEach(i,e){i instanceof
Map?i.forEach(e):Object.keys(i).forEach(n=>e(i[n],n))}}class
aL{constructor(i){this.key=i,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
oy(){return new $a([new ny])}let $a=(()=>{class
t{constructor(e){this.factories=e}static create(e,n){if(null!=n){const
s=n.factories.slice();e=e.concat(s)}return new t(e)}static
extend(e){return{provide:t,useFactory:n=>t.create(e,n||oy()),deps:[[t,new _a,new
Ns]]}}find(e){const n=this.factories.find(s=>s.supports(e));if(null!=n)return n;throw
new re(901,"")}}return
t.\u0275prov=X({token:t,providedIn:"root",factory:oy}),t})();function
ay(){return new Wa([new ry])}let Wa=(()=>{class
t{constructor(e){this.factories=e}static create(e,n){if(n){const
s=n.factories.slice();e=e.concat(s)}return new t(e)}static
extend(e){return{provide:t,useFactory:n=>t.create(e,n||ay()),deps:[
[t,new _a,new Ns]]}}find(e){const n=this.factories.find(r=>r.supports(e));if(n)return
n;throw new re(901,"")}}return
t.\u0275prov=X({token:t,providedIn:"root",factory:ay}),t})();const
uL=WC(null,"core",[]);let dL=(()=>{class t{constructor(e){}}return
t.\u0275fac=function(e){return
new(e||t)(K(cm))},t.\u0275mod=he({type:t}),t.\u0275inj=ue({}),t})(),zc=null;function
ns(){return zc}const Xt=new be("DocumentToken");let fr=(()=>{class
t{historyGo(e){throw new Error("Not implemented")}}return
t.\u0275fac=function(e){return
new(e||t)},t.\u0275prov=X({token:t,factory:function(){return function fL(){return
K(ly)}()},providedIn:"platform"}),t})();const gL=new be("Location
Initialized");let ly=(()=>{class t extends
fr{constructor(e){super(),this._doc=e,this._init()}_init(){this.location=window.location,this._history=window.history}getBaseHrefFromDOM(){return
ns().getBaseHref(this._doc)}onPopState(e){const
n=ns().getGlobalEventTarget(this._doc,"window");return
n.addEventListener("popstate",e,!1
),()=>n.removeEventListener("popstate",e)}onHashChange(e){const
n=ns().getGlobalEventTarget(this._doc,"window");return
n.addEventListener("hashchange",e,!1),()=>n.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,n,s){cy()?this._history.pushState(e,n,s):this.location.hash=s}replaceState(e,n,s){cy()?this._history.replaceState(e,n,s):this.location.hash=s}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)(K(Xt))},t.\u0275prov=X({token:t,factory:function(){return function _L(){return
new ly(K(Xt))}()},providedIn:"platform"}),t})();funct
ion cy(){return!!window.history.pushState}function fm(t,i){if(0==t.length)return
i;if(0==i.length)return t;let e=0;return
t.endsWith("/")&&e++,i.startsWith("/")&&e++,2==e?t+i.substring(1):1==e?t+i:t+"/"+i}function
uy(t){const i=t.match(/#|\?|$/),e=i&&i.index||t.length;return
t.slice(0,e-("/"===t[e-1]?1:0))+t.slice(e)}function bs(t){return
t&&"?"!==t[0]?"?"+t:t}let ko=(()=>{class
t{historyGo(e){throw new Error("Not implemented")}}return
t.\u0275fac=function(e){return
new(e||t)},t.\u0275prov=X({token:t,factory:function(){return function bL(t){const
i=K(Xt).location;return new
dy(K(fr),i&&i.origin||"")}()},providedIn:"root"}),t})();const
gm=new be("appBaseHref");let dy=(()=>{class t extends
ko{constructor(e,n){if(super(),this._platformLocation=e,this._removeListenerFns=[],null==n&&(n=this._platformLocation.getBaseHrefFromDOM()),null==n)throw
new Error("No base href set. Please provide a value for the APP_BASE_HREF token or
add a base element to the document.");this._baseHref=n}ngOnDest
roy(){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 fm(this._baseHref,e)}path(e=!1){const
n=this._platformLocation.pathname+bs(this._platformLocation.search),s=this._platformLocation.hash;return
s&&e?`${n}${s}`:n}pushState(e,n,s,r){const
o=this.prepareExternalUrl(s+bs(r));this._platformLocation.pushState(e,n,o)}replaceState(e,n,s,r){const
o=this.prepareExternalUrl(s+bs(r));this._platformLocation.replaceState(e,n,o)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}historyGo(e=0){var
n,s;null===(s=(n=this._platformLocation).historyGo)||void 0===s||s.call(n,e)}}return
t.\u0275fac=function(e){return
new(e||t)(K(fr),K(gm,8))},t.\u0275prov=X({token:t,factory:t.\u0275fac}),t})(),vL=(()=>{class
t extends ko{constructor(e,n){super(),this._platformLocation=e
,this._baseHref="",this._removeListenerFns=[],null!=n&&(this._baseHref=n)}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 n=this._platformLocation.hash;return
null==n&&(n="#"),n.length>0?n.substring(1):n}prepareExternalUrl(e){const
n=fm(this._baseHref,e);return n.length>0?"#"+n:n}pushState(e,n,s,r){let
o=this.prepareExternalUrl(s+bs(r));0==o.length&&(o=this._platformLocation.pathname),this._platformLocation.pushState(e,n,o)}replaceState(e,n,s,r){let
o=this.prepareExternalUrl(s+bs(r));0==o.length&&(o=this._platformLocation.pathname),this._platformLocation.replaceState(e,n,o)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}historyGo(e=0){var
n,s;null===(s=(n=this._platformLocation).historyGo)||void 0===s||s.call(n,e)}}return
t.\u0275fac=function(e){re
turn
new(e||t)(K(fr),K(gm,8))},t.\u0275prov=X({token:t,factory:t.\u0275fac}),t})(),_m=(()=>{class
t{constructor(e,n){this._subject=new
H,this._urlChangeListeners=[],this._platformStrategy=e;const
s=this._platformStrategy.getBaseHref();this._platformLocation=n,this._baseHref=uy(py(s)),this._platformStrategy.onPopState(r=>{this._subject.emit({url:this.path(!0),pop:!0,state:r.state,type:r.type})})}path(e=!1){return
this.normalize(this._platformStrategy.path(e))}getState(){return
this._platformLocation.getState()}isCurrentPathEqualTo(e,n=""){return
this.path()==this.normalize(e+bs(n))}normalize(e){return t.stripTrailingSlash(function
yL(t,i){return
t&&i.startsWith(t)?i.substring(t.length):i}(this._baseHref,py(e)))}prepareExternalUrl(e){return
e&&"/"!==e[0]&&(e="/"+e),this._platformStrategy.prepareExternalUrl(e)}go(e,n="",s=null){this._platformStrategy.pushState(s,"",e,n),this._notifyUrlChangeListeners(this.prepareExternalUrl(e+bs(n)),s)}replaceState(e,n="",s=null){this._platformStrategy
.replaceState(s,"",e,n),this._notifyUrlChangeListeners(this.prepareExternalUrl(e+bs(n)),s)}forward(){this._platformStrategy.forward()}back(){this._platformStrategy.back()}historyGo(e=0){var
n,s;null===(s=(n=this._platformStrategy).historyGo)||void
0===s||s.call(n,e)}onUrlChange(e){this._urlChangeListeners.push(e),this._urlChangeSubscription||(this._urlChangeSubscription=this.subscribe(n=>{this._notifyUrlChangeListeners(n.url,n.state)}))}_notifyUrlChangeListeners(e="",n){this._urlChangeListeners.forEach(s=>s(e,n))}subscribe(e,n,s){return
this._subject.subscribe({next:e,error:n,complete:s})}}return
t.normalizeQueryParams=bs,t.joinWithSlash=fm,t.stripTrailingSlash=uy,t.\u0275fac=function(e){return
new(e||t)(K(ko),K(fr))},t.\u0275prov=X({token:t,factory:function(){return function
CL(){return new _m(K(ko),K(fr))}()},providedIn:"root"}),t})();function
py(t){return t.replace(/\/index.html$/,"")}var
Wn=(()=>((Wn=Wn||{})[Wn.Decimal=0]="Decimal",Wn[Wn.Percent=1]="Percent",Wn[Wn.Currency=2]="C
urrency",Wn[Wn.Scientific=3]="Scientific",Wn))(),ge=(()=>((ge=ge||{})[ge.Decimal=0]="Decimal",ge[ge.Group=1]="Group",ge[ge.List=2]="List",ge[ge.PercentSign=3]="PercentSign",ge[ge.PlusSign=4]="PlusSign",ge[ge.MinusSign=5]="MinusSign",ge[ge.Exponential=6]="Exponential",ge[ge.SuperscriptingExponent=7]="SuperscriptingExponent",ge[ge.PerMille=8]="PerMille",ge[ge.Infinity=9]="Infinity",ge[ge.NaN=10]="NaN",ge[ge.TimeSeparator=11]="TimeSeparator",ge[ge.CurrencyDecimal=12]="CurrencyDecimal",ge[ge.CurrencyGroup=13]="CurrencyGroup",ge))();function
Ci(t,i){const e=Hn(t),n=e[te.NumberSymbols][i];if(void
0===n){if(i===ge.CurrencyDecimal)return
e[te.NumberSymbols][ge.Decimal];if(i===ge.CurrencyGroup)return
e[te.NumberSymbols][ge.Group]}return n}const WL=/^(\d+)?\.((\d+)(-(\d+))?)?$/;function
xm(t){const i=parseInt(t);if(isNaN(i))throw new Error("Invalid integer literal when
parsing "+t);return i}function yy(t,i){i=encodeURIComponent(i);for(const e of
t.split(";")){const n=e.indexOf("="),[s,r]=-1==
n?[e,""]:[e.slice(0,n),e.slice(n+1)];if(s.trim()===i)return
decodeURIComponent(r)}return null}let Le=(()=>{class
t{constructor(e,n,s,r){this._iterableDiffers=e,this._keyValueDiffers=n,this._ngEl=s,this._renderer=r,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&&(Ia(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._keyValueDiffer.diff(this._rawClass);e&&this._applyKeyValueChanges(e)}}_applyKeyValueChanges(e){e.forEachAddedItem(n=>this._toggleClass(n.key,n.currentValue)),e.forEachChangedItem(n=>this._toggleClass(n.key,n.currentValue)),e.forEachRemovedItem(n=>{n.previousValue&&this._toggleClass(n.key,!1)})}_applyIterableChanges(e){e.forEachAddedItem(n=>{if("string"!=typeof
n.item)throw new Error(`NgClass can only toggle CSS classes expressed as strings, got
${ft(n.item)}`);this._toggleClass(n.item,!0)}),e.forEachRemovedItem(n=>this._toggleClass(n.item,!1))}_applyClasses(e){e&&(Array.isArray(e)||e
instanceof
Set?e.forEach(n=>this._toggleClass(n,!0)):Object.keys(e).forEach(n=>this._toggleClass(n,!!e[n])))}_removeClasses(e){e&&(Array.isArray(e)||e
instanceof
Set?e.forEach(n=>this._toggleClass(n,!1)):Object.keys(e).forEach(n=>this._toggleClass(n,!1)))}_toggleClass(e,n){(e=e.trim())&&e.split(/\s+/g).forEach(s=>{n?this._renderer.addClass(this._ngEl.nativeEle
ment,s):this._renderer.removeClass(this._ngEl.nativeElement,s)})}}return
t.\u0275fac=function(e){return
new(e||t)(D($a),D(Wa),D(De),D(gn))},t.\u0275dir=le({type:t,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"}}),t})();class
o4{constructor(i,e,n,s){this.$implicit=i,this.ngForOf=e,this.index=n,this.count=s}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 at=(()=>{class
t{constructor(e,n,s){this._viewContainer=e,this._template=n,this._differs=s,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;!this._differ&&e&&(this._differ=this._differs.find(e).create(this.ngForTrackBy))}if(this._differ){const
e=th
is._differ.diff(this._ngForOf);e&&this._applyChanges(e)}}_applyChanges(e){const
n=this._viewContainer;e.forEachOperation((s,r,o)=>{if(null==s.previousIndex)n.createEmbeddedView(this._template,new
o4(s.item,this._ngForOf,-1,-1),null===o?void 0:o);else if(null==o)n.remove(null===r?void
0:r);else if(null!==r){const u=n.get(r);n.move(u,o),wy(u,s)}});for(let
s=0,r=n.length;s<r;s++){const
u=n.get(s).context;u.index=s,u.count=r,u.ngForOf=this._ngForOf}e.forEachIdentityChange(s=>{wy(n.get(s.currentIndex),s)})}static
ngTemplateContextGuard(e,n){return!0}}return t.\u0275fac=function(e){return
new(e||t)(D(vi),D(bi),D($a))},t.\u0275dir=le({type:t,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"}}),t})();function
wy(t,i){t.context.$implicit=i.item}let Q=(()=>{class
t{constructor(e,n){this._viewContainer=e,this._context=new
a4,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=n
ull,this._thenTemplateRef=n}set
ngIf(e){this._context.$implicit=this._context.ngIf=e,this._updateView()}set
ngIfThen(e){Ty("ngIfThen",e),this._thenTemplateRef=e,this._thenViewRef=null,this._updateView()}set
ngIfElse(e){Ty("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,n){return!0}}return t.\u0275fac=function(e){return
new(e||t)(D(vi),D(bi))},t.\u0275dir=le({type:t,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"}}),t})();class
a4{constructor(){this.$implicit=null,this.n
gIf=null}}function Ty(t,i){if(i&&!i.createEmbeddedView)throw new Error(`${t} must
be a TemplateRef, but received '${ft(i)}'.`)}class
Mm{constructor(i,e){this._viewContainerRef=i,this._templateRef=e,this._created=!1}create(){this._created=!0,this._viewContainerRef.createEmbeddedView(this._templateRef)}destroy(){this._created=!1,this._viewContainerRef.clear()}enforceState(i){i&&!this._created?this.create():!i&&this._created&&this.destroy()}}let
gr=(()=>{class
t{constructor(){this._defaultUsed=!1,this._caseCount=0,this._lastCaseCheckIndex=0,this._lastCasesMatched=!1}set
ngSwitch(e){this._ngSwitch=e,0===this._caseCount&&this._updateDefaultCases(!0)}_addCase(){return
this._caseCount++}_addDefault(e){this._defaultViews||(this._defaultViews=[]),this._defaultViews.push(e)}_matchCase(e){const
n=e==this._ngSwitch;return
this._lastCasesMatched=this._lastCasesMatched||n,this._lastCaseCheckIndex++,this._lastCaseCheckIndex===this._caseCount&&(this._updateDefaultCases(!this._lastCasesMatched),this
._lastCaseCheckIndex=0,this._lastCasesMatched=!1),n}_updateDefaultCases(e){if(this._defaultViews&&e!==this._defaultUsed){this._defaultUsed=e;for(let
n=0;n<this._defaultViews.length;n++)this._defaultViews[n].enforceState(e)}}}return
t.\u0275fac=function(e){return
new(e||t)},t.\u0275dir=le({type:t,selectors:[["","ngSwitch",""]],inputs:{ngSwitch:"ngSwitch"}}),t})(),Ja=(()=>{class
t{constructor(e,n,s){this.ngSwitch=s,s._addCase(),this._view=new
Mm(e,n)}ngDoCheck(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase))}}return
t.\u0275fac=function(e){return
new(e||t)(D(vi),D(bi),D(gr,9))},t.\u0275dir=le({type:t,selectors:[["","ngSwitchCase",""]],inputs:{ngSwitchCase:"ngSwitchCase"}}),t})(),km=(()=>{class
t{constructor(e,n,s){s._addDefault(new Mm(e,n))}}return t.\u0275fac=function(e){return
new(e||t)(D(vi),D(bi),D(gr,9))},t.\u0275dir=le({type:t,selectors:[["","ngSwitchDefault",""]]}),t})(),lt=(()=>{class
t{constructor(e,n,s){this._ngEl=e,this._differs=n,this._renderer=s,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,n){const[s,r]=e.split(".");null!=(n=null!=n&&r?`${n}${r}`:n)?this._renderer.setStyle(this._ngEl.nativeElement,s,n):this._renderer.removeStyle(this._ngEl.nativeElement,s)}_applyChanges(e){e.forEachRemovedItem(n=>this._setStyle(n.key,null)),e.forEachAddedItem(n=>this._setStyle(n.key,n.currentValue)),e.forEachChangedItem(n=>this._setStyle(n.key,n.currentValue))}}return
t.\u0275fac=function(e){return
new(e||t)(D(De),D(Wa),D(gn))},t.\u0275dir=le({type:t,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"}}),t})(),Rt=(()=>{class
t{constructor(e){this._viewContainerRef=e,this._viewRef=null,this.ngTemplateOutletContext=null,this.ngTemplateOutlet=null}ngOnChanges(e){if(e.ngTemplateOutlet){const
n=this._viewContainerRef;this._viewRef&&n.remove(n.indexOf(thi
s._viewRef)),this._viewRef=this.ngTemplateOutlet?n.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)(D(vi))},t.\u0275dir=le({type:t,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet"},features:[fn]}),t})();function
Vi(t,i){return new re(2100,"")}class c4{createSubscription(i,e){return
i.subscribe({next:e,error:n=>{throw
n}})}dispose(i){i.unsubscribe()}onDestroy(i){i.unsubscribe()}}class
u4{createSubscription(i,e){return i.then(e,n=>{throw
n})}dispose(i){}onDestroy(i){}}const d4=new u4,p4=new c4;let xy=(()=>{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,n=>this._updateLatestValue(e,n))}_selectStrategy(e){if(Ra(e))return
d4;if(qv(e))return p4;throw
Vi()}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null}_updateLatestValue(e,n){e===this._obj&&(this._latestValue=n,this._ref.markForCheck())}}return
t.\u0275fac=function(e){return
new(e||t)(D(rt,16))},t.\u0275pipe=An({name:"async",type:t,pure:!1}),t})(),eu=(()=>{class
t{constructor(e){this._locale=e}transform(e,n,s){if(!function
Im(t){return!(null==t||""===t||t!=t)}(e))return
null;s=s||this._locale;try{return function XL(t,i,e){return function
Tm(t,i,e,n,s,r,o=!1){let u="",h=!1;if(isFinite(t)){let b=function t4(t){let
n,s,r,o,u,i=Math.abs(t)+"",e=0;for((s=i.indexOf("."))>-1&&(i=i.replace(".","")),(
r=i.search(/e/i))>0?(s<0&&(s=r),s+=+i.slice(r+1),i=i.substring(0,r)):s<0&&(s=i.length),r=0;"0"===i.charAt(r);r++);if(r===(u=i.length))n=[0],s=1;else{for(u--;"0"===i.charAt(u);)u--;for(s-=r,n=[],o=0;r<=u;r++,o++)n[o]=Number(i.charAt(r))}return
s>22&&(n=n.splice(0,21),e=s-1,s=1),{digits:n,exponent:e,integerLen:s}}(t);o&&(b=function
e4(t){if(0===t.digits[0])return t;const i=t.digits.length-t.integerLen;return
t.exponent?t.exponent+=2:(0===i?t.digits.push(0,0):1===i&&t.digits.push(0),t.integerLen+=2),t}(b));let
y=i.minInt,w=i.minFrac,M=i.maxFrac;if(r){const P=r.match(WL);if(null===P)throw new
Error(`${r} is not a valid digit info`);const
J=P[1],se=P[3],ke=P[5];null!=J&&(y=xm(J)),null!=se&&(w=xm(se)),null!=ke?M=xm(ke):null!=se&&w>M&&(M=w)}!function
n4(t,i,e){if(i>e)throw new Error(`The minimum number of digits after fraction (${i}) is
higher than the maximum (${e}).`);let n=t.digits,s=n.length-t.integerLen;const
r=Math.min(Math.max(i,s),e);let o=r+t.integerLen,u=n[o];if(o>0){n.splice(Mat
h.max(t.integerLen,o));for(let
w=o;w<n.length;w++)n[w]=0}else{s=Math.max(0,s),t.integerLen=1,n.length=Math.max(1,o=r+1),n[0]=0;for(let
w=1;w<o;w++)n[w]=0}if(u>=5)if(o-1<0){for(let
w=0;w>o;w--)n.unshift(0),t.integerLen++;n.unshift(1),t.integerLen++}else
n[o-1]++;for(;s<Math.max(0,r);s++)n.push(0);let h=0!==r;const
b=i+t.integerLen,y=n.reduceRight(function(w,M,E,L){return
L[E]=(M+=w)<10?M:M-10,h&&(0===L[E]&&E>=b?L.pop():h=!1),M>=10?1:0},0);y&&(n.unshift(y),t.integerLen++)}(b,w,M);let
E=b.digits,L=b.integerLen;const O=b.exponent;let
N=[];for(h=E.every(P=>!P);L<y;L++)E.unshift(0);for(;L<0;L++)E.unshift(0);L>0?N=E.splice(L,E.length):(N=E,E=[0]);const
G=[];for(E.length>=i.lgSize&&G.unshift(E.splice(-i.lgSize,E.length).join(""));E.length>i.gSize;)G.unshift(E.splice(-i.gSize,E.length).join(""));E.length&&G.unshift(E.join("")),u=G.join(Ci(e,n)),N.length&&(u+=Ci(e,s)+N.join("")),O&&(u+=Ci(e,ge.Exponential)+"+"+O)}else
u=Ci(e,ge.Infinity);return u=t<0&&!h?i.negPre+u+i.negSuf:i.posPre+u+i.posSu
f,u}(t,function Sm(t,i="-"){const
e={minInt:1,minFrac:0,maxFrac:0,posPre:"",posSuf:"",negPre:"",negSuf:"",gSize:0,lgSize:0},n=t.split(";"),s=n[0],r=n[1],o=-1!==s.indexOf(".")?s.split("."):[s.substring(0,s.lastIndexOf("0")+1),s.substring(s.lastIndexOf("0")+1)],u=o[0],h=o[1]||"";e.posPre=u.substr(0,u.indexOf("#"));for(let
y=0;y<h.length;y++){const
w=h.charAt(y);"0"===w?e.minFrac=e.maxFrac=y+1:"#"===w?e.maxFrac=y+1:e.posSuf+=w}const
b=u.split(",");if(e.gSize=b[1]?b[1].length:0,e.lgSize=b[2]||b[1]?(b[2]||b[1]).length:0,r){const
y=s.length-e.posPre.length-e.posSuf.length,w=r.indexOf("#");e.negPre=r.substr(0,w).replace(/'/g,""),e.negSuf=r.substr(w+y).replace(/'/g,"")}else
e.negPre=i+e.posPre,e.negSuf=e.posSuf;return e}(function bm(t,i){return
Hn(t)[te.NumberFormats][i]}(i,Wn.Decimal),Ci(i,ge.MinusSign)),i,ge.Group,ge.Decimal,e)}(function
Em(t){if("string"==typeof t&&!isNaN(Number(t)-parseFloat(t)))return
Number(t);if("number"!=typeof t)throw new Error(`${t} is not a number`);return
t}(e),
s,n)}catch(r){throw Vi()}}}return t.\u0275fac=function(e){return
new(e||t)(D(qs,16))},t.\u0275pipe=An({name:"number",type:t,pure:!0}),t})();let
My=(()=>{class t{transform(e,n,s){if(null==e)return null;if(!this.supports(e))throw
Vi();return e.slice(n,s)}supports(e){return"string"==typeof
e||Array.isArray(e)}}return t.\u0275fac=function(e){return
new(e||t)},t.\u0275pipe=An({name:"slice",type:t,pure:!1}),t})(),Fe=(()=>{class
t{}return t.\u0275fac=function(e){return
new(e||t)},t.\u0275mod=he({type:t}),t.\u0275inj=ue({}),t})();const
ky="browser";let R4=(()=>{class t{}return
t.\u0275prov=X({token:t,providedIn:"root",factory:()=>new
L4(K(Xt),window)}),t})();class
L4{constructor(i,e){this.document=i,this.window=e,this.offset=()=>[0,0]}setOffset(i){this.offset=Array.isArray(i)?()=>i:i}getScrollPosition(){return
this.supportsScrolling()?[this.window.pageXOffset,this.window.pageYOffset]:[0,0]}scrollToPosition(i){this.supportsScrolling()&&this.window.scrollTo(i[0],i[1])}scrollToAnchor(i){if(!th
is.supportsScrolling())return;const e=function O4(t,i){const
e=t.getElementById(i)||t.getElementsByName(i)[0];if(e)return
e;if("function"==typeof
t.createTreeWalker&&t.body&&(t.body.createShadowRoot||t.body.attachShadow)){const
n=t.createTreeWalker(t.body,NodeFilter.SHOW_ELEMENT);let s=n.currentNode;for(;s;){const
r=s.shadowRoot;if(r){const
o=r.getElementById(i)||r.querySelector(`[name="${i}"]`);if(o)return
o}s=n.nextNode()}}return
null}(this.document,i);e&&(this.scrollToElement(e),e.focus())}setHistoryScrollRestoration(i){if(this.supportScrollRestoration()){const
e=this.window.history;e&&e.scrollRestoration&&(e.scrollRestoration=i)}}scrollToElement(i){const
e=i.getBoundingClientRect(),n=e.left+this.window.pageXOffset,s=e.top+this.window.pageYOffset,r=this.offset();this.window.scrollTo(n-r[0],s-r[1])}supportScrollRestoration(){try{if(!this.supportsScrolling())return!1;const
i=Iy(this.window.history)||Iy(Object.getPrototypeOf(this.window.history));return!(!i||!i.writable&&!i.set)}cat
ch(i){return!1}}supportsScrolling(){try{return!!this.window&&!!this.window.scrollTo&&"pageXOffset"in
this.window}catch(i){return!1}}}function Iy(t){return
Object.getOwnPropertyDescriptor(t,"scrollRestoration")}class Ey{}class Rm
extends class A4 extends class
mL{}{constructor(){super(...arguments),this.supportsDOMEvents=!0}}{static
makeCurrent(){!function hL(t){zc||(zc=t)}(new Rm)}onAndCancel(i,e,n){return
i.addEventListener(e,n,!1),()=>{i.removeEventListener(e,n,!1)}}dispatchEvent(i,e){i.dispatchEvent(e)}remove(i){i.parentNode&&i.parentNode.removeChild(i)}createElement(i,e){return(e=e||this.getDefaultDocument()).createElement(i)}createHtmlDocument(){return
document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return
document}isElementNode(i){return i.nodeType===Node.ELEMENT_NODE}isShadowRoot(i){return i
instanceof
DocumentFragment}getGlobalEventTarget(i,e){return"window"===e?window:"document"===e?i:"body"===e?i.body:null}getBaseHref(i){const
e=function P4(){r
eturn
Ya=Ya||document.querySelector("base"),Ya?Ya.getAttribute("href"):null}();return
null==e?null:function
F4(t){tu=tu||document.createElement("a"),tu.setAttribute("href",t);const
i=tu.pathname;return"/"===i.charAt(0)?i:`/${i}`}(e)}resetBaseElement(){Ya=null}getUserAgent(){return
window.navigator.userAgent}getCookie(i){return yy(document.cookie,i)}}let tu,Ya=null;const
Ry=new be("TRANSITION_ID"),V4=[{provide:em,useFactory:function
N4(t,i,e){return()=>{e.get(tm).donePromise.then(()=>{const
n=ns(),s=i.querySelectorAll(`style[ng-transition="${t}"]`);for(let
r=0;r<s.length;r++)n.remove(s[r])})}},deps:[Ry,Xt,En],multi:!0}];class Lm{static
init(){!function BR(t){am=t}(new
Lm)}addToWindow(i){vt.getAngularTestability=(n,s=!0)=>{const
r=i.findTestabilityInTree(n,s);if(null==r)throw new Error("Could not find testability
for element.");return
r},vt.getAllAngularTestabilities=()=>i.getAllTestabilities(),vt.getAllAngularRootElements=()=>i.getAllRootElements(),vt.frameworkStabilizers||(vt.framew
orkStabilizers=[]),vt.frameworkStabilizers.push(n=>{const
s=vt.getAllAngularTestabilities();let r=s.length,o=!1;const
u=function(h){o=o||h,r--,0==r&&n(o)};s.forEach(function(h){h.whenStable(u)})})}findTestabilityInTree(i,e,n){if(null==e)return
null;const s=i.getTestability(e);return
null!=s?s:n?ns().isShadowRoot(e)?this.findTestabilityInTree(i,e.host,!0):this.findTestabilityInTree(i,e.parentElement,!0):null}}let
B4=(()=>{class t{build(){return new XMLHttpRequest}}return
t.\u0275fac=function(e){return
new(e||t)},t.\u0275prov=X({token:t,factory:t.\u0275fac}),t})();const nu=new
be("EventManagerPlugins");let iu=(()=>{class
t{constructor(e,n){this._zone=n,this._eventNameToPlugin=new
Map,e.forEach(s=>s.manager=this),this._plugins=e.slice().reverse()}addEventListener(e,n,s){return
this._findPluginFor(n).addEventListener(e,n,s)}addGlobalEventListener(e,n,s){return
this._findPluginFor(n).addGlobalEventListener(e,n,s)}getZone(){return
this._zone}_findPluginFor(e){const n=this._eventNameToPlug
in.get(e);if(n)return n;const s=this._plugins;for(let r=0;r<s.length;r++){const
o=s[r];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)(K(nu),K(nt))},t.\u0275prov=X({token:t,factory:t.\u0275fac}),t})();class
Ly{constructor(i){this._doc=i}addGlobalEventListener(i,e,n){const
s=ns().getGlobalEventTarget(this._doc,i);if(!s)throw new Error(`Unsupported event target
${s} for event ${e}`);return this.addEventListener(s,e,n)}}let Oy=(()=>{class
t{constructor(){this._stylesSet=new Set}addStyles(e){const n=new
Set;e.forEach(s=>{this._stylesSet.has(s)||(this._stylesSet.add(s),n.add(s))}),this.onStylesAdded(n)}onStylesAdded(e){}getAllStyles(){return
Array.from(this._stylesSet)}}return t.\u0275fac=function(e){return
new(e||t)},t.\u0275prov=X({token:t,factory:t.\u0275fac}),t})(),Za=(()=>{class t extends
Oy{constructor(e){super(),this._doc=e,this._hostNodes=new Map,this._hostN
odes.set(e.head,[])}_addStylesToHost(e,n,s){e.forEach(r=>{const
o=this._doc.createElement("style");o.textContent=r,s.push(n.appendChild(o))})}addHost(e){const
n=[];this._addStylesToHost(this._stylesSet,e,n),this._hostNodes.set(e,n)}removeHost(e){const
n=this._hostNodes.get(e);n&&n.forEach(Ay),this._hostNodes.delete(e)}onStylesAdded(e){this._hostNodes.forEach((n,s)=>{this._addStylesToHost(e,s,n)})}ngOnDestroy(){this._hostNodes.forEach(e=>e.forEach(Ay))}}return
t.\u0275fac=function(e){return
new(e||t)(K(Xt))},t.\u0275prov=X({token:t,factory:t.\u0275fac}),t})();function
Ay(t){ns().remove(t)}const
Om={svg:"http://www.w3.org/2000/svg",xhtml:"http://www.w3....
su(t,i,e){for(let n=0;n<i.length;n++){let
s=i[n];Array.isArray(s)?su(t,s,e):(s=s.replace(Am,t),e.push(s))}return e}function
Ny(t){return i=>{if
("__ngUnwrap__"===i)return
t;!1===t(i)&&(i.preventDefault(),i.returnValue=!1)}}let ru=(()=>{class
t{constructor(e,n,s){this.eventManager=e,this.sharedStylesHost=n,this.appId=s,this.rendererByCompId=new
Map,this.defaultRenderer=new Pm(e)}createRenderer(e,n){if(!e||!n)return
this.defaultRenderer;switch(n.encapsulation){case ki.Emulated:{let
s=this.rendererByCompId.get(n.id);return s||(s=new
j4(this.eventManager,this.sharedStylesHost,n,this.appId),this.rendererByCompId.set(n.id,s)),s.applyToHost(e),s}case
1:case ki.ShadowDom:return new
$4(this.eventManager,this.sharedStylesHost,e,n);default:if(!this.rendererByCompId.has(n.id)){const
s=su(n.id,n.styles,[]);this.sharedStylesHost.addStyles(s),this.rendererByCompId.set(n.id,this.defaultRenderer)}return
this.defaultRenderer}}begin(){}end(){}}return t.\u0275fac=function(e){return
new(e||t)(K(iu),K(Za),K(ja))},t.\u0275prov=X({token:t,factory:t.\u0275fac}),t})();class
Pm{constructor(i){this.eventManager=i,this.data=Object.create(null),this.des
troyNode=null}destroy(){}createElement(i,e){return
e?document.createElementNS(Om[e]||e,i):document.createElement(i)}createComment(i){return
document.createComment(i)}createText(i){return
document.createTextNode(i)}appendChild(i,e){i.appendChild(e)}insertBefore(i,e,n){i&&i.insertBefore(e,n)}removeChild(i,e){i&&i.removeChild(e)}selectRootElement(i,e){let
n="string"==typeof i?document.querySelector(i):i;if(!n)throw new Error(`The
selector "${i}" did not match any elements`);return
e||(n.textContent=""),n}parentNode(i){return i.parentNode}nextSibling(i){return
i.nextSibling}setAttribute(i,e,n,s){if(s){e=s+":"+e;const
r=Om[s];r?i.setAttributeNS(r,e,n):i.setAttribute(e,n)}else
i.setAttribute(e,n)}removeAttribute(i,e,n){if(n){const
s=Om[n];s?i.removeAttributeNS(s,e):i.removeAttribute(`${n}:${e}`)}else
i.removeAttribute(e)}addClass(i,e){i.classList.add(e)}removeClass(i,e){i.classList.remove(e)}setStyle(i,e,n,s){s&(ti.DashCase|ti.Important)?i.style.setProperty(e,n,s&ti.Important?"important":
""):i.style[e]=n}removeStyle(i,e,n){n&ti.DashCase?i.style.removeProperty(e):i.style[e]=""}setProperty(i,e,n){i[e]=n}setValue(i,e){i.nodeValue=e}listen(i,e,n){return"string"==typeof
i?this.eventManager.addGlobalEventListener(i,e,Ny(n)):this.eventManager.addEventListener(i,e,Ny(n))}}class
j4 extends Pm{constructor(i,e,n,s){super(i),this.component=n;const
r=su(s+"-"+n.id,n.styles,[]);e.addStyles(r),this.contentAttr=function
G4(t){return"_ngcontent-%COMP%".replace(Am,t)}(s+"-"+n.id),this.hostAttr=function
U4(t){return"_nghost-%COMP%".replace(Am,t)}(s+"-"+n.id)}applyToHost(i){super.setAttribute(i,this.hostAttr,"")}createElement(i,e){const
n=super.createElement(i,e);return
super.setAttribute(n,this.contentAttr,""),n}}class $4 extends
Pm{constructor(i,e,n,s){super(i),this.sharedStylesHost=e,this.hostEl=n,this.shadowRoot=n.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const
r=su(s.id,s.styles,[]);for(let o=0;o<r.length;o++){const
u=document.createElement("style"
);u.textContent=r[o],this.shadowRoot.appendChild(u)}}nodeOrShadowRoot(i){return
i===this.hostEl?this.shadowRoot:i}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}appendChild(i,e){return
super.appendChild(this.nodeOrShadowRoot(i),e)}insertBefore(i,e,n){return
super.insertBefore(this.nodeOrShadowRoot(i),e,n)}removeChild(i,e){return
super.removeChild(this.nodeOrShadowRoot(i),e)}parentNode(i){return
this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(i)))}}let W4=(()=>{class t
extends Ly{constructor(e){super(e)}supports(e){return!0}addEventListener(e,n,s){return
e.addEventListener(n,s,!1),()=>this.removeEventListener(e,n,s)}removeEventListener(e,n,s){return
e.removeEventListener(n,s)}}return t.\u0275fac=function(e){return
new(e||t)(K(Xt))},t.\u0275prov=X({token:t,factory:t.\u0275fac}),t})();const
By=["alt","control","meta","shift"],Q4={"\b":"Backspace","\t":"Tab","\x7f":"Delete","\x1b":"Escape",Del:"Delete",Esc:"Escape",Left:"ArrowLeft",Right:"ArrowRight",Up:"ArrowU
p",Down:"ArrowDown",Menu:"ContextMenu",Scroll:"ScrollLock",Win:"OS"},Hy={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"},J4={alt:t=>t.altKey,control:t=>t.ctrlKey,meta:t=>t.metaKey,shift:t=>t.shiftKey};let
Y4=(()=>{class t extends Ly{constructor(e){super(e)}supports(e){return
null!=t.parseEventName(e)}addEventListener(e,n,s){const
r=t.parseEventName(n),o=t.eventCallback(r.fullKey,s,this.manager.getZone());return
this.manager.getZone().runOutsideAngular(()=>ns().onAndCancel(e,r.domEventName,o))}static
parseEventName(e){const
n=e.toLowerCase().split("."),s=n.shift();if(0===n.length||"keydown"!==s&&"keyup"!==s)return
null;const r=t._normalizeKey(n.pop());let o="";if(By.forEach(h=>{const
b=n.indexOf(h);b>-1&&(n.splice(b,1),o+=h+".")}),o+=r,0!=n.length||0===r.length)return
null;const u={};return u.domEventName=s,u.fullKey=o,u}static getEventFullKey(e){let
n="",s=function Z4(t){let i=t.key;if(null==i){if(i=t.keyIdentifier,null==
i)return"Unidentified";i.startsWith("U+")&&(i=String.fromCharCode(parseInt(i.substring(2),16)),3===t.location&&Hy.hasOwnProperty(i)&&(i=Hy[i]))}return
Q4[i]||i}(e);return s=s.toLowerCase(),"
"===s?s="space":"."===s&&(s="dot"),By.forEach(r=>{r!=s&&J4[r](e)&&(n+=r+".")}),n+=s,n}static
eventCallback(e,n,s){return
r=>{t.getEventFullKey(r)===e&&s.runGuarded(()=>n(r))}}static
_normalizeKey(e){return"esc"===e?"escape":e}}return
t.\u0275fac=function(e){return
new(e||t)(K(Xt))},t.\u0275prov=X({token:t,factory:t.\u0275fac}),t})();const
nO=WC(uL,"browser",[{provide:qc,useValue:ky},{provide:BC,useValue:function
X4(){Rm.makeCurrent(),Lm.init()},multi:!0},{provide:Xt,useFactory:function tO(){return
function
Px(t){Zd=t}(document),document},deps:[]}]),iO=[{provide:hh,useValue:"root"},{provide:xa,useFactory:function
eO(){return new
xa},deps:[]},{provide:nu,useClass:W4,multi:!0,deps:[Xt,nt,qc]},{provide:nu,useClass:Y4,multi:!0,deps:[Xt]},{provide:ru,useClass:ru,deps:[iu,Za,ja]},{provide:Ba,useExistin
g:ru},{provide:Oy,useExisting:Za},{provide:Za,useClass:Za,deps:[Xt]},{provide:om,useClass:om,deps:[nt]},{provide:iu,useClass:iu,deps:[nu,nt]},{provide:Ey,useClass:B4,deps:[]}];let
qy=(()=>{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:ja,useValue:e.appId},{provide:Ry,useExisting:ja},V4]}}}return
t.\u0275fac=function(e){return
new(e||t)(K(t,12))},t.\u0275mod=he({type:t}),t.\u0275inj=ue({providers:iO,imports:[Fe,dL]}),t})();function
oe(...t){let i=t[t.length-1];return Vr(i)?(t.pop(),Ad(t,i)):Pd(t)}function _r(t,i){return
yn(t,i,1)}function Us(t,i){return function(n){return n.lift(new
mO(t,i))}}"undefined"!=typeof window&&window;class
mO{constructor(i,e){this.predicate=i,this.thisArg=e}call(i,e){return e.subscribe(new
fO(i,this.predicate,this.thisArg))}}class fO
extends
yt{constructor(i,e,n){super(i),this.predicate=e,this.thisArg=n,this.count=0}_next(i){let
e;try{e=this.predicate.call(this.thisArg,i,this.count++)}catch(n){return void
this.destination.error(n)}e&&this.destination.next(i)}}class zy{}class jy{}class
Cs{constructor(i){this.normalizedNames=new
Map,this.lazyUpdate=null,i?this.lazyInit="string"==typeof
i?()=>{this.headers=new Map,i.split("\n").forEach(e=>{const
n=e.indexOf(":");if(n>0){const
s=e.slice(0,n),r=s.toLowerCase(),o=e.slice(n+1).trim();this.maybeSetNormalizedName(s,r),this.headers.has(r)?this.headers.get(r).push(o):this.headers.set(r,[o])}})}:()=>{this.headers=new
Map,Object.keys(i).forEach(e=>{let n=i[e];const
s=e.toLowerCase();"string"==typeof
n&&(n=[n]),n.length>0&&(this.headers.set(s,n),this.maybeSetNormalizedName(e,s))})}:this.headers=new
Map}has(i){return this.init(),this.headers.has(i.toLowerCase())}get(i){this.init();const
e=this.headers.get(i.toLowerCase());return
e&&e.length>0?e[0]:null}keys(){return this.init
(),Array.from(this.normalizedNames.values())}getAll(i){return
this.init(),this.headers.get(i.toLowerCase())||null}append(i,e){return
this.clone({name:i,value:e,op:"a"})}set(i,e){return
this.clone({name:i,value:e,op:"s"})}delete(i,e){return
this.clone({name:i,value:e,op:"d"})}maybeSetNormalizedName(i,e){this.normalizedNames.has(e)||this.normalizedNames.set(e,i)}init(){this.lazyInit&&(this.lazyInit
instanceof
Cs?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(i=>this.applyUpdate(i)),this.lazyUpdate=null))}copyFrom(i){i.init(),Array.from(i.headers.keys()).forEach(e=>{this.headers.set(e,i.headers.get(e)),this.normalizedNames.set(e,i.normalizedNames.get(e))})}clone(i){const
e=new Cs;return e.lazyInit=this.lazyInit&&this.lazyInit instanceof
Cs?this.lazyInit:this,e.lazyUpdate=(this.lazyUpdate||[]).concat([i]),e}applyUpdate(i){const
e=i.name.toLowerCase();switch(i.op){case"a":case"s":let
n=i.value;if("string"==typeof n&&(n=[n]),0===n
.length)return;this.maybeSetNormalizedName(i.name,e);const
s=("a"===i.op?this.headers.get(e):void
0)||[];s.push(...n),this.headers.set(e,s);break;case"d":const
r=i.value;if(r){let
o=this.headers.get(e);if(!o)return;o=o.filter(u=>-1===r.indexOf(u)),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(i){this.init(),Array.from(this.normalizedNames.keys()).forEach(e=>i(this.normalizedNames.get(e),this.headers.get(e)))}}class
gO{encodeKey(i){return $y(i)}encodeValue(i){return $y(i)}decodeKey(i){return
decodeURIComponent(i)}decodeValue(i){return decodeURIComponent(i)}}const
bO=/%(\d[a-f0-9])/gi,vO={40:"@","3A":":",24:"$","2C":",","3B":";","2B":"+","3D":"=","3F":"?","2F":"/"};function
$y(t){return encodeURIComponent(t).replace(bO,(i,e)=>{var n;return
null!==(n=vO[e])&&void 0!==n?n:i})}function Wy(t){return`${t}`}class
ye{constructor(i={}){if(this.updates=null,this.cloneFrom=null,this.
encoder=i.encoder||new gO,i.fromString){if(i.fromObject)throw new Error("Cannot
specify both fromString and fromObject.");this.map=function _O(t,i){const e=new
Map;return
t.length>0&&t.replace(/^\?/,"").split("&").forEach(s=>{const
r=s.indexOf("="),[o,u]=-1==r?[i.decodeKey(s),""]:[i.decodeKey(s.slice(0,r)),i.decodeValue(s.slice(r+1))],h=e.get(o)||[];h.push(u),e.set(o,h)}),e}(i.fromString,this.encoder)}else
i.fromObject?(this.map=new Map,Object.keys(i.fromObject).forEach(e=>{const
n=i.fromObject[e];this.map.set(e,Array.isArray(n)?n:[n])})):this.map=null}has(i){return
this.init(),this.map.has(i)}get(i){this.init();const e=this.map.get(i);return
e?e[0]:null}getAll(i){return this.init(),this.map.get(i)||null}keys(){return
this.init(),Array.from(this.map.keys())}append(i,e){return
this.clone({param:i,value:e,op:"a"})}appendAll(i){const e=[];return
Object.keys(i).forEach(n=>{const
s=i[n];Array.isArray(s)?s.forEach(r=>{e.push({param:n,value:r,op:"a"})}):e.push({param:n,value:s,op:"a"})}),t
his.clone(e)}set(i,e){return
this.clone({param:i,value:e,op:"s"})}delete(i,e){return
this.clone({param:i,value:e,op:"d"})}toString(){return
this.init(),this.keys().map(i=>{const e=this.encoder.encodeKey(i);return
this.map.get(i).map(n=>e+"="+this.encoder.encodeValue(n)).join("&")}).filter(i=>""!==i).join("&")}clone(i){const
e=new ye({encoder:this.encoder});return
e.cloneFrom=this.cloneFrom||this,e.updates=(this.updates||[]).concat(i),e}init(){null===this.map&&(this.map=new
Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(i=>this.map.set(i,this.cloneFrom.map.get(i))),this.updates.forEach(i=>{switch(i.op){case"a":case"s":const
e=("a"===i.op?this.map.get(i.param):void
0)||[];e.push(Wy(i.value)),this.map.set(i.param,e);break;case"d":if(void
0===i.value){this.map.delete(i.param);break}{let n=this.map.get(i.param)||[];const
s=n.indexOf(Wy(i.value));-1!==s&&n.splice(s,1),n.length>0?this.map.set(i.param,n):this.map.delete(i.param)}}}),this.cloneFrom=this.upda
tes=null)}}class CO{constructor(){this.map=new Map}set(i,e){return
this.map.set(i,e),this}get(i){return
this.map.has(i)||this.map.set(i,i.defaultValue()),this.map.get(i)}delete(i){return
this.map.delete(i),this}has(i){return this.map.has(i)}keys(){return
this.map.keys()}}function Ky(t){return"undefined"!=typeof ArrayBuffer&&t
instanceof ArrayBuffer}function Qy(t){return"undefined"!=typeof Blob&&t
instanceof Blob}function Jy(t){return"undefined"!=typeof FormData&&t
instanceof FormData}class Xa{constructor(i,e,n,s){let
r;if(this.url=e,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=i.toUpperCase(),function
yO(t){switch(t){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||s?(this.body=void
0!==n?n:null,r=s):r=n,r&&(this.reportProgress=!!r.reportProgress,this.withCredentials=!!r.withCredentials,r.responseType&&(this.responseType=r.responseType),r.headers&&(this.headers=r.headers),r.con
text&&(this.context=r.context),r.params&&(this.params=r.params)),this.headers||(this.headers=new
Cs),this.context||(this.context=new CO),this.params){const
o=this.params.toString();if(0===o.length)this.urlWithParams=e;else{const
u=e.indexOf("?");this.urlWithParams=e+(-1===u?"?":u<e.length-1?"&":"")+o}}else
this.params=new ye,this.urlWithParams=e}serializeBody(){return
null===this.body?null:Ky(this.body)||Qy(this.body)||Jy(this.body)||function
wO(t){return"undefined"!=typeof URLSearchParams&&t instanceof
URLSearchParams}(this.body)||"string"==typeof this.body?this.body:this.body
instanceof ye?this.body.toString():"object"==typeof
this.body||"boolean"==typeof
this.body||Array.isArray(this.body)?JSON.stringify(this.body):this.body.toString()}detectContentTypeHeader(){return
null===this.body||Jy(this.body)?null:Qy(this.body)?this.body.type||null:Ky(this.body)?null:"string"==typeof
this.body?"text/plain":this.body instanceof
ye?"application/x-www-form-urlencoded;charset=UTF-8":"object"==
typeof this.body||"number"==typeof this.body||"boolean"==typeof
this.body?"application/json":null}clone(i={}){var e;const
n=i.method||this.method,s=i.url||this.url,r=i.responseType||this.responseType,o=void
0!==i.body?i.body:this.body,u=void
0!==i.withCredentials?i.withCredentials:this.withCredentials,h=void
0!==i.reportProgress?i.reportProgress:this.reportProgress;let
b=i.headers||this.headers,y=i.params||this.params;const
w=null!==(e=i.context)&&void 0!==e?e:this.context;return void
0!==i.setHeaders&&(b=Object.keys(i.setHeaders).reduce((M,E)=>M.set(E,i.setHeaders[E]),b)),i.setParams&&(y=Object.keys(i.setParams).reduce((M,E)=>M.set(E,i.setParams[E]),y)),new
Xa(n,s,o,{params:y,headers:b,context:w,reportProgress:h,responseType:r,withCredentials:u})}}var
nn=(()=>((nn=nn||{})[nn.Sent=0]="Sent",nn[nn.UploadProgress=1]="UploadProgress",nn[nn.ResponseHeader=2]="ResponseHeader",nn[nn.DownloadProgress=3]="DownloadProgress",nn[nn.Response=4]="Response",nn[nn.User=5]="User",nn))();class
Nm{co
nstructor(i,e=200,n="OK"){this.headers=i.headers||new Cs,this.status=void
0!==i.status?i.status:e,this.statusText=i.statusText||n,this.url=i.url||null,this.ok=this.status>=200&&this.status<300}}class
Vm extends Nm{constructor(i={}){super(i),this.type=nn.ResponseHeader}clone(i={}){return
new Vm({headers:i.headers||this.headers,status:void
0!==i.status?i.status:this.status,statusText:i.statusText||this.statusText,url:i.url||this.url||void
0})}}class ou extends Nm{constructor(i={}){super(i),this.type=nn.Response,this.body=void
0!==i.body?i.body:null}clone(i={}){return new ou({body:void
0!==i.body?i.body:this.body,headers:i.headers||this.headers,status:void
0!==i.status?i.status:this.status,statusText:i.statusText||this.statusText,url:i.url||this.url||void
0})}}class Yy extends Nm{constructor(i){super(i,0,"Unknown
Error"),this.name="HttpErrorResponse",this.ok=!1,this.message=this.status>=200&&this.status<300?`Http
failure during parsing for ${i.url||"(unknown url)"}`:`Http failure respo
nse for ${i.url||"(unknown url)"}: ${i.status}
${i.statusText}`,this.error=i.error||null}}function
Bm(t,i){return{body:i,headers:t.headers,context:t.context,observe:t.observe,params:t.params,reportProgress:t.reportProgress,responseType:t.responseType,withCredentials:t.withCredentials}}let
Bi=(()=>{class t{constructor(e){this.handler=e}request(e,n,s={}){let r;if(e instanceof
Xa)r=e;else{let h,b;h=s.headers instanceof Cs?s.headers:new
Cs(s.headers),s.params&&(b=s.params instanceof ye?s.params:new
ye({fromObject:s.params})),r=new Xa(e,n,void
0!==s.body?s.body:null,{headers:h,context:s.context,params:b,reportProgress:s.reportProgress,responseType:s.responseType||"json",withCredentials:s.withCredentials})}const
o=oe(r).pipe(_r(h=>this.handler.handle(h)));if(e instanceof
Xa||"events"===s.observe)return o;const u=o.pipe(Us(h=>h instanceof
ou));switch(s.observe||"body"){case"body":switch(r.responseType){case"arraybuffer":return
u.pipe(et(h=>{if(null!==h.body&&!(h.body instanceof ArrayBuffer
))throw new Error("Response is not an ArrayBuffer.");return
h.body}));case"blob":return u.pipe(et(h=>{if(null!==h.body&&!(h.body
instanceof Blob))throw new Error("Response is not a Blob.");return
h.body}));case"text":return
u.pipe(et(h=>{if(null!==h.body&&"string"!=typeof h.body)throw new
Error("Response is not a string.");return h.body}));default:return
u.pipe(et(h=>h.body))}case"response":return u;default:throw new
Error(`Unreachable: unhandled observe type ${s.observe}}`)}}delete(e,n={}){return
this.request("DELETE",e,n)}get(e,n={}){return
this.request("GET",e,n)}head(e,n={}){return
this.request("HEAD",e,n)}jsonp(e,n){return
this.request("JSONP",e,{params:(new
ye).append(n,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(e,n={}){return
this.request("OPTIONS",e,n)}patch(e,n,s={}){return
this.request("PATCH",e,Bm(s,n))}post(e,n,s={}){return
this.request("POST",e,Bm(s,n))}put(e,n,s={}){return
this.request("PUT",e,Bm(s,n))}}return t.\u0275fac=function(e){return new(e||t
)(K(zy))},t.\u0275prov=X({token:t,factory:t.\u0275fac}),t})();class
Zy{constructor(i,e){this.next=i,this.interceptor=e}handle(i){return
this.interceptor.intercept(i,this.next)}}const Xy=new
be("HTTP_INTERCEPTORS");let TO=(()=>{class t{intercept(e,n){return
n.handle(e)}}return t.\u0275fac=function(e){return
new(e||t)},t.\u0275prov=X({token:t,factory:t.\u0275fac}),t})();const
SO=/^\)\]\}',?\n/;let e0=(()=>{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 Je(n=>{const
s=this.xhrFactory.build();if(s.open(e.method,e.urlWithParams),e.withCredentials&&(s.withCredentials=!0),e.headers.forEach((E,L)=>s.setRequestHeader(E,L.join(","))),e.headers.has("Accept")||s.setRequestHeader("Accept","application/json,
text/plain, */*"),!e.headers.has("Content-Type")){const
E=e.detectContentTypeHeader();null!==E&&s.setRequestHeader("Content-Type",E)}if(e.responseType){const
E
=e.responseType.toLowerCase();s.responseType="json"!==E?E:"text"}const
r=e.serializeBody();let o=null;const u=()=>{if(null!==o)return o;const
E=s.statusText||"OK",L=new Cs(s.getAllResponseHeaders()),O=function
xO(t){return"responseURL"in
t&&t.responseURL?t.responseURL:/^X-Request-URL:/m.test(t.getAllResponseHeaders())?t.getResponseHeader("X-Request-URL"):null}(s)||e.url;return
o=new
Vm({headers:L,status:s.status,statusText:E,url:O}),o},h=()=>{let{headers:E,status:L,statusText:O,url:N}=u(),G=null;204!==L&&(G=void
0===s.response?s.responseText:s.response),0===L&&(L=G?200:0);let
P=L>=200&&L<300;if("json"===e.responseType&&"string"==typeof
G){const
J=G;G=G.replace(SO,"");try{G=""!==G?JSON.parse(G):null}catch(se){G=J,P&&(P=!1,G={error:se,text:G})}}P?(n.next(new
ou({body:G,headers:E,status:L,statusText:O,url:N||void 0})),n.complete()):n.error(new
Yy({error:G,headers:E,status:L,statusText:O,url:N||void
0}))},b=E=>{const{url:L}=u(),O=new
Yy({error:E,status:s.status||0,statusText:s.statusTex
t||"Unknown Error",url:L||void 0});n.error(O)};let y=!1;const
w=E=>{y||(n.next(u()),y=!0);let
L={type:nn.DownloadProgress,loaded:E.loaded};E.lengthComputable&&(L.total=E.total),"text"===e.responseType&&!!s.responseText&&(L.partialText=s.responseText),n.next(L)},M=E=>{let
L={type:nn.UploadProgress,loaded:E.loaded};E.lengthComputable&&(L.total=E.total),n.next(L)};return
s.addEventListener("load",h),s.addEventListener("error",b),s.addEventListener("timeout",b),s.addEventListener("abort",b),e.reportProgress&&(s.addEventListener("progress",w),null!==r&&s.upload&&s.upload.addEventListener("progress",M)),s.send(r),n.next({type:nn.Sent}),()=>{s.removeEventListener("error",b),s.removeEventListener("abort",b),s.removeEventListener("load",h),s.removeEventListener("timeout",b),e.reportProgress&&(s.removeEventListener("progress",w),null!==r&&s.upload&&s.upload.removeEventListener("progress",M)),s.readyState!==s.DONE&&s.abort()}})}}return
t.\u0275fac=function(e){return new(e||t)(K(Ey))},t.\u0275p
rov=X({token:t,factory:t.\u0275fac}),t})();const Hm=new
be("XSRF_COOKIE_NAME"),qm=new be("XSRF_HEADER_NAME");class t0{}let
DO=(()=>{class
t{constructor(e,n,s){this.doc=e,this.platform=n,this.cookieName=s,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=yy(e,this.cookieName),this.lastCookieString=e),this.lastToken}}return
t.\u0275fac=function(e){return
new(e||t)(K(Xt),K(qc),K(Hm))},t.\u0275prov=X({token:t,factory:t.\u0275fac}),t})(),Gm=(()=>{class
t{constructor(e,n){this.tokenService=e,this.headerName=n}intercept(e,n){const
s=e.url.toLowerCase();if("GET"===e.method||"HEAD"===e.method||s.startsWith("http://")||s.startsWith("https://"))return
n.handle(e);const r=this.tokenService.getToken();return
null!==r&&!e.headers.has(this.headerName)&&(e=e.clone({headers:e.headers.set(this.headerName,r)})),n.handle(e)}}return
t.\u0275fac=f
unction(e){return
new(e||t)(K(t0),K(qm))},t.\u0275prov=X({token:t,factory:t.\u0275fac}),t})(),MO=(()=>{class
t{constructor(e,n){this.backend=e,this.injector=n,this.chain=null}handle(e){if(null===this.chain){const
n=this.injector.get(Xy,[]);this.chain=n.reduceRight((s,r)=>new
Zy(s,r),this.backend)}return this.chain.handle(e)}}return t.\u0275fac=function(e){return
new(e||t)(K(jy),K(En))},t.\u0275prov=X({token:t,factory:t.\u0275fac}),t})(),kO=(()=>{class
t{static disable(){return{ngModule:t,providers:[{provide:Gm,useClass:TO}]}}static
withOptions(e={}){return{ngModule:t,providers:[e.cookieName?{provide:Hm,useValue:e.cookieName}:[],e.headerName?{provide:qm,useValue:e.headerName}:[]]}}}return
t.\u0275fac=function(e){return
new(e||t)},t.\u0275mod=he({type:t}),t.\u0275inj=ue({providers:[Gm,{provide:Xy,useExisting:Gm,multi:!0},{provide:t0,useClass:DO},{provide:Hm,useValue:"XSRF-TOKEN"},{provide:qm,useValue:"X-XSRF-TOKEN"}]}),t})(),IO=(()=>{class
t{}return t.\u0275fac=function(e){return new(
e||t)},t.\u0275mod=he({type:t}),t.\u0275inj=ue({providers:[Bi,{provide:zy,useClass:MO},e0,{provide:jy,useExisting:e0}],imports:[[kO.withOptions({cookieName:"XSRF-TOKEN",headerName:"X-XSRF-TOKEN"})]]}),t})();function
is(t){return!!t&&(t instanceof Je||"function"==typeof
t.lift&&"function"==typeof t.subscribe)}function
n0(...t){if(1===t.length){const i=t[0];if(Nr(i))return
au(i,null);if(Ld(i)&&Object.getPrototypeOf(i)===Object.prototype){const
e=Object.keys(i);return au(e.map(n=>i[n]),e)}}if("function"==typeof
t[t.length-1]){const i=t.pop();return
au(t=1===t.length&&Nr(t[0])?t[0]:t,null).pipe(et(e=>i(...e)))}return
au(t,null)}function au(t,i){return new Je(e=>{const n=t.length;if(0===n)return void
e.complete();const s=new Array(n);let r=0,o=0;for(let u=0;u<n;u++){const h=Mn(t[u]);let
b=!1;e.add(h.subscribe({next:y=>{b||(b=!0,o++),s[u]=y},error:y=>e.error(y),complete:()=>{r++,(r===n||!b)&&(o===n&&e.next(i?i.reduce((y,w,M)=>(y[w]=s[M],y),{}):s),e.complete())}}))}})}function
el(...t){ret
urn function EO(){return ea(1)}()(oe(...t))}const Io=new Je(t=>t.complete());function
lu(t){return t?function RO(t){return new
Je(i=>t.schedule(()=>i.complete()))}(t):Io}function cu(t){return new Je(i=>{let
e;try{e=t()}catch(s){return void i.error(s)}return(e?Mn(e):lu()).subscribe(i)})}const
s0=(()=>{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 br(t){return
i=>0===t?lu():i.lift(new LO(t))}class
LO{constructor(i){if(this.total=i,this.total<0)throw new s0}call(i,e){return
e.subscribe(new OO(i,this.total))}}class OO extends
yt{constructor(i,e){super(i),this.total=e,this.count=0}_next(i){const
e=this.total,n=++this.count;n<=e&&(this.destination.next(i),n===e&&(this.destination.complete(),this.unsubscribe()))}}class
AO extends Et{constructor(i,e){super()}schedule(i,e=0){return this}}class uu extends
AO{constructor(i,e){super(i,e),this.scheduler=i,this.wor
k=e,this.pending=!1}schedule(i,e=0){if(this.closed)return this;this.state=i;const
n=this.id,s=this.scheduler;return
null!=n&&(this.id=this.recycleAsyncId(s,n,e)),this.pending=!0,this.delay=e,this.id=this.id||this.requestAsyncId(s,this.id,e),this}requestAsyncId(i,e,n=0){return
setInterval(i.flush.bind(i,this),n)}recycleAsyncId(i,e,n=0){if(null!==n&&this.delay===n&&!1===this.pending)return
e;clearInterval(e)}execute(i,e){if(this.closed)return new Error("executing a
cancelled action");this.pending=!1;const n=this._execute(i,e);if(n)return
n;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(i,e){let
s,n=!1;try{this.work(i)}catch(r){n=!0,s=!!r&&r||new Error(r)}if(n)return
this.unsubscribe(),s}_unsubscribe(){const
i=this.id,e=this.scheduler,n=e.actions,s=n.indexOf(this);this.work=null,this.state=null,this.pending=!1,this.scheduler=null,-1!==s&&n.splice(s,1),null!=i&&(this.id=this.recycleAsyncId(e,i,null)),this.delay=null}}let
r0=(()=>{cl
ass t{constructor(e,n=t.now){this.SchedulerAction=e,this.now=n}schedule(e,n=0,s){return
new this.SchedulerAction(this,e).schedule(s,n)}}return t.now=()=>Date.now(),t})();class
Hi extends
r0{constructor(i,e=r0.now){super(i,()=>Hi.delegate&&Hi.delegate!==this?Hi.delegate.now():e()),this.actions=[],this.active=!1,this.scheduled=void
0}schedule(i,e=0,n){return
Hi.delegate&&Hi.delegate!==this?Hi.delegate.schedule(i,e,n):super.schedule(i,e,n)}flush(i){const{actions:e}=this;if(this.active)return
void e.push(i);let
n;this.active=!0;do{if(n=i.execute(i.state,i.delay))break}while(i=e.shift());if(this.active=!1,n){for(;i=e.shift();)i.unsubscribe();throw
n}}}const NO=new class FO extends Hi{}(class PO extends
uu{constructor(i,e){super(i,e),this.scheduler=i,this.work=e}schedule(i,e=0){return
e>0?super.schedule(i,e):(this.delay=e,this.state=i,this.scheduler.flush(this),this)}execute(i,e){return
e>0||this.closed?super.execute(i,e):this._execute(i,e)}requestAsyncId(i,e,n=0){return
null!==n&&n>0||nu
ll===n&&this.delay>0?super.requestAsyncId(i,e,n):i.flush(this)}});function
tl(t,i){return new
Je(i?e=>i.schedule(VO,0,{error:t,subscriber:e}):e=>e.error(t))}function
VO({error:t,subscriber:i}){i.error(t)}class
Kn{constructor(i,e,n){this.kind=i,this.value=e,this.error=n,this.hasValue="N"===i}observe(i){switch(this.kind){case"N":return
i.next&&i.next(this.value);case"E":return
i.error&&i.error(this.error);case"C":return
i.complete&&i.complete()}}do(i,e,n){switch(this.kind){case"N":return
i&&i(this.value);case"E":return
e&&e(this.error);case"C":return n&&n()}}accept(i,e,n){return
i&&"function"==typeof
i.next?this.observe(i):this.do(i,e,n)}toObservable(){switch(this.kind){case"N":return
oe(this.value);case"E":return tl(this.error);case"C":return lu()}throw
new Error("unexpected notification kind value")}static createNext(i){return void
0!==i?new Kn("N",i):Kn.undefinedValueNotification}static createError(i){return
new Kn("E",void 0,i)}static createComplete(){return Kn.completeNotificatio
n}}Kn.completeNotification=new Kn("C"),Kn.undefinedValueNotification=new
Kn("N",void 0);class du extends
yt{constructor(i,e,n=0){super(i),this.scheduler=e,this.delay=n}static
dispatch(i){const{notification:e,destination:n}=i;e.observe(n),this.unsubscribe()}scheduleMessage(i){this.destination.add(this.scheduler.schedule(du.dispatch,this.delay,new
HO(i,this.destination)))}_next(i){this.scheduleMessage(Kn.createNext(i))}_error(i){this.scheduleMessage(Kn.createError(i)),this.unsubscribe()}_complete(){this.scheduleMessage(Kn.createComplete()),this.unsubscribe()}}class
HO{constructor(i,e){this.notification=i,this.destination=e}}class qO extends
ct{constructor(i=Number.POSITIVE_INFINITY,e=Number.POSITIVE_INFINITY,n){super(),this.scheduler=n,this._events=[],this._infiniteTimeWindow=!1,this._bufferSize=i<1?1:i,this._windowTime=e<1?1:e,e===Number.POSITIVE_INFINITY?(this._infiniteTimeWindow=!0,this.next=this.nextInfiniteTimeWindow):this.next=this.nextTimeWindow}nextInfiniteTimeWindow(i){if(!th
is.isStopped){const
e=this._events;e.push(i),e.length>this._bufferSize&&e.shift()}super.next(i)}nextTimeWindow(i){this.isStopped||(this._events.push(new
GO(this._getNow(),i)),this._trimBufferThenGetEvents()),super.next(i)}_subscribe(i){const
e=this._infiniteTimeWindow,n=e?this._events:this._trimBufferThenGetEvents(),s=this.scheduler,r=n.length;let
o;if(this.closed)throw new
nr;if(this.isStopped||this.hasError?o=Et.EMPTY:(this.observers.push(i),o=new
Eg(this,i)),s&&i.add(i=new du(i,s)),e)for(let
u=0;u<r&&!i.closed;u++)i.next(n[u]);else for(let
u=0;u<r&&!i.closed;u++)i.next(n[u].value);return
this.hasError?i.error(this.thrownError):this.isStopped&&i.complete(),o}_getNow(){return(this.scheduler||NO).now()}_trimBufferThenGetEvents(){const
i=this._getNow(),e=this._bufferSize,n=this._windowTime,s=this._events,r=s.length;let
o=0;for(;o<r&&!(i-s[o].time<n);)o++;return
r>e&&(o=Math.max(o,r-e)),o>0&&s.splice(0,o),s}}class
GO{constructor(i,e){this.time=i,this.value=e}}function Um(t,i,e){let n;
return n=t&&"object"==typeof
t?t:{bufferSize:t,windowTime:i,refCount:!1,scheduler:e},s=>s.lift(function
UO({bufferSize:t=Number.POSITIVE_INFINITY,windowTime:i=Number.POSITIVE_INFINITY,refCount:e,scheduler:n}){let
s,o,r=0,u=!1,h=!1;return function(y){let w;r++,!s||u?(u=!1,s=new
qO(t,i,n),w=s.subscribe(this),o=y.subscribe({next(M){s.next(M)},error(M){u=!0,s.error(M)},complete(){h=!0,o=void
0,s.complete()}}),h&&(o=void
0)):w=s.subscribe(this),this.add(()=>{r--,w.unsubscribe(),w=void
0,o&&!h&&e&&0===r&&(o.unsubscribe(),o=void 0,s=void
0)})}}(n))}function qi(t,i){return"function"==typeof
i?e=>e.pipe(qi((n,s)=>Mn(t(n,s)).pipe(et((r,o)=>i(n,r,s,o))))):e=>e.lift(new
zO(t))}class zO{constructor(i){this.project=i}call(i,e){return e.subscribe(new
jO(i,this.project))}}class jO extends
Zo{constructor(i,e){super(i),this.project=e,this.index=0}_next(i){let e;const
n=this.index++;try{e=this.project(i,n)}catch(s){return void
this.destination.error(s)}this._innerSub(e)}_innerSub(i){const e=this.inner
Subscription;e&&e.unsubscribe();const n=new
Yo(this),s=this.destination;s.add(n),this.innerSubscription=Xo(i,n),this.innerSubscription!==n&&s.add(this.innerSubscription)}_complete(){const{innerSubscription:i}=this;(!i||i.closed)&&super._complete(),this.unsubscribe()}_unsubscribe(){this.innerSubscription=void
0}notifyComplete(){this.innerSubscription=void
0,this.isStopped&&super._complete()}notifyNext(i){this.destination.next(i)}}class
nl{}let o0=(()=>{class t extends nl{getTranslation(e){return oe({})}}return
t.\u0275fac=function(){let i;return
function(n){return(i||(i=on(t)))(n||t)}}(),t.\u0275prov=X({token:t,factory:t.\u0275fac}),t})();class
zm{}let a0=(()=>{class t{handle(e){return e.key}}return t.\u0275fac=function(e){return
new(e||t)},t.\u0275prov=X({token:t,factory:t.\u0275fac}),t})();function
il(t,i){if(t===i)return!0;if(null===t||null===i)return!1;if(t!=t&&i!=i)return!0;let
s,r,o,e=typeof t;if(e==typeof
i&&"object"==e){if(!Array.isArray(t)){if(Array.isArray(i))return!1;for(r
in o=Object.create(null),t){if(!il(t[r],i[r]))return!1;o[r]=!0}for(r in i)if(!(r in
o)&&void
0!==i[r])return!1;return!0}if(!Array.isArray(i))return!1;if((s=t.length)==i.length){for(r=0;r<s;r++)if(!il(t[r],i[r]))return!1;return!0}}return!1}function
ri(t){return null!=t}function jm(t){return t&&"object"==typeof
t&&!Array.isArray(t)}function l0(t,i){let e=Object.assign({},t);return
jm(t)&&jm(i)&&Object.keys(i).forEach(n=>{jm(i[n])?n in
t?e[n]=l0(t[n],i[n]):Object.assign(e,{[n]:i[n]}):Object.assign(e,{[n]:i[n]})}),e}class
pu{}let c0=(()=>{class t extends
pu{constructor(){super(...arguments),this.templateMatcher=/{{\s?([^{}\s]*)\s?}}/g}interpolate(e,n){let
s;return s="string"==typeof
e?this.interpolateString(e,n):"function"==typeof
e?this.interpolateFunction(e,n):e,s}getValue(e,n){let s="string"==typeof
n?n.split("."):[n];n="";do{n+=s.shift(),!ri(e)||!ri(e[n])||"object"!=typeof
e[n]&&s.length?s.length?n+=".":e=void
0:(e=e[n],n="")}while(s.length);return e}interpolateFunction(e,n){return
e(n)}interpolateString(e,n){return n?e.replace(this.templateMatcher,(s,r)=>{let
o=this.getValue(n,r);return ri(o)?o:s}):e}}return t.\u0275fac=function(){let i;return
function(n){return(i||(i=on(t)))(n||t)}}(),t.\u0275prov=X({token:t,factory:t.\u0275fac}),t})();class
hu{}let u0=(()=>{class t extends hu{compile(e,n){return
e}compileTranslations(e,n){return e}}return t.\u0275fac=function(){let i;return
function(n){return(i||(i=on(t)))(n||t)}}(),t.\u0275prov=X({token:t,factory:t.\u0275fac}),t})();class
d0{constructor(){this.currentLang=this.defaultLang,this.translations={},this.langs=[],this.onTranslationChange=new
H,this.onLangChange=new H,this.onDefaultLangChange=new H}}const $m=new
be("USE_STORE"),Wm=new be("USE_DEFAULT_LANG"),Km=new
be("DEFAULT_LANGUAGE"),Qm=new be("USE_EXTEND");let Oe=(()=>{class
t{constructor(e,n,s,r,o,u=!0,h=!1,b=!1,y){this.store=e,this.currentLoader=n,this.compiler=s,this.parser=r,this.missingTranslationHandler=o,this.useDefaultLang=u,this.isolate=h,this.extend
=b,this.pending=!1,this._onTranslationChange=new H,this._onLangChange=new
H,this._onDefaultLangChange=new
H,this._langs=[],this._translations={},this._translationRequests={},y&&this.setDefaultLang(y)}get
onTranslationChange(){return
this.isolate?this._onTranslationChange:this.store.onTranslationChange}get
onLangChange(){return this.isolate?this._onLangChange:this.store.onLangChange}get
onDefaultLangChange(){return
this.isolate?this._onDefaultLangChange:this.store.onDefaultLangChange}get
defaultLang(){return this.isolate?this._defaultLang:this.store.defaultLang}set
defaultLang(e){this.isolate?this._defaultLang=e:this.store.defaultLang=e}get
currentLang(){return this.isolate?this._currentLang:this.store.currentLang}set
currentLang(e){this.isolate?this._currentLang=e:this.store.currentLang=e}get
langs(){return this.isolate?this._langs:this.store.langs}set
langs(e){this.isolate?this._langs=e:this.store.langs=e}get translations(){return
this.isolate?this._translations:this.store.translat
ions}set
translations(e){this.isolate?this._translations=e:this.store.translations=e}setDefaultLang(e){if(e===this.defaultLang)return;let
n=this.retrieveTranslations(e);void
0!==n?(null==this.defaultLang&&(this.defaultLang=e),n.pipe(br(1)).subscribe(s=>{this.changeDefaultLang(e)})):this.changeDefaultLang(e)}getDefaultLang(){return
this.defaultLang}use(e){if(e===this.currentLang)return oe(this.translations[e]);let
n=this.retrieveTranslations(e);return void
0!==n?(this.currentLang||(this.currentLang=e),n.pipe(br(1)).subscribe(s=>{this.changeLang(e)}),n):(this.changeLang(e),oe(this.translations[e]))}retrieveTranslations(e){let
n;return(void
0===this.translations[e]||this.extend)&&(this._translationRequests[e]=this._translationRequests[e]||this.getTranslation(e),n=this._translationRequests[e]),n}getTranslation(e){this.pending=!0;const
n=this.currentLoader.getTranslation(e).pipe(Um(1),br(1));return
this.loadingTranslations=n.pipe(et(s=>this.compiler.compileTranslations(s,e)),Um(1),br(1))
,this.loadingTranslations.subscribe({next:s=>{this.translations[e]=this.extend&&this.translations[e]?Object.assign(Object.assign({},s),this.translations[e]):s,this.updateLangs(),this.pending=!1},error:s=>{this.pending=!1}}),n}setTranslation(e,n,s=!1){n=this.compiler.compileTranslations(n,e),this.translations[e]=(s||this.extend)&&this.translations[e]?l0(this.translations[e],n):n,this.updateLangs(),this.onTranslationChange.emit({lang:e,translations:this.translations[e]})}getLangs(){return
this.langs}addLangs(e){e.forEach(n=>{-1===this.langs.indexOf(n)&&this.langs.push(n)})}updateLangs(){this.addLangs(Object.keys(this.translations))}getParsedResult(e,n,s){let
r;if(n instanceof Array){let o={},u=!1;for(let h of
n)o[h]=this.getParsedResult(e,h,s),is(o[h])&&(u=!0);return
u?n0(n.map(b=>is(o[b])?o[b]:oe(o[b]))).pipe(et(b=>{let y={};return
b.forEach((w,M)=>{y[n[M]]=w}),y})):o}if(e&&(r=this.parser.interpolate(this.parser.getValue(e,n),s)),void
0===r&&null!=this.defaultLang&&this.defaultLang!=
=this.currentLang&&this.useDefaultLang&&(r=this.parser.interpolate(this.parser.getValue(this.translations[this.defaultLang],n),s)),void
0===r){let o={key:n,translateService:this};void
0!==s&&(o.interpolateParams=s),r=this.missingTranslationHandler.handle(o)}return
void 0!==r?r:n}get(e,n){if(!ri(e)||!e.length)throw new Error('Parameter
"key" required');if(this.pending)return
this.loadingTranslations.pipe(_r(s=>is(s=this.getParsedResult(s,e,n))?s:oe(s)));{let
s=this.getParsedResult(this.translations[this.currentLang],e,n);return
is(s)?s:oe(s)}}getStreamOnTranslationChange(e,n){if(!ri(e)||!e.length)throw new
Error('Parameter "key" required');return
el(cu(()=>this.get(e,n)),this.onTranslationChange.pipe(qi(s=>{const
r=this.getParsedResult(s.translations,e,n);return"function"==typeof
r.subscribe?r:oe(r)})))}stream(e,n){if(!ri(e)||!e.length)throw new Error('Parameter
"key" required');return
el(cu(()=>this.get(e,n)),this.onLangChange.pipe(qi(s=>{const
r=this.getParsedResult(s.translations,
e,n);return is(r)?r:oe(r)})))}instant(e,n){if(!ri(e)||!e.length)throw new
Error('Parameter "key" required');let
s=this.getParsedResult(this.translations[this.currentLang],e,n);if(is(s)){if(e instanceof
Array){let r={};return e.forEach((o,u)=>{r[e[u]]=e[u]}),r}return e}return
s}set(e,n,s=this.currentLang){this.translations[s][e]=this.compiler.compile(n,s),this.updateLangs(),this.onTranslationChange.emit({lang:s,translations:this.translations[s]})}changeLang(e){this.currentLang=e,this.onLangChange.emit({lang:e,translations:this.translations[e]}),null==this.defaultLang&&this.changeDefaultLang(e)}changeDefaultLang(e){this.defaultLang=e,this.onDefaultLangChange.emit({lang:e,translations:this.translations[e]})}reloadLang(e){return
this.resetLang(e),this.getTranslation(e)}resetLang(e){this._translationRequests[e]=void
0,this.translations[e]=void 0}getBrowserLang(){if("undefined"==typeof
window||void 0===window.navigator)return;let
e=window.navigator.languages?window.navigator.languages[0]:
null;return
e=e||window.navigator.language||window.navigator.browserLanguage||window.navigator.userLanguage,void
0!==e?(-1!==e.indexOf("-")&&(e=e.split("-")[0]),-1!==e.indexOf("_")&&(e=e.split("_")[0]),e):void
0}getBrowserCultureLang(){if("undefined"==typeof window||void
0===window.navigator)return;let
e=window.navigator.languages?window.navigator.languages[0]:null;return
e=e||window.navigator.language||window.navigator.browserLanguage||window.navigator.userLanguage,e}}return
t.\u0275fac=function(e){return
new(e||t)(K(d0),K(nl),K(hu),K(pu),K(zm),K(Wm),K($m),K(Qm),K(Km))},t.\u0275prov=X({token:t,factory:t.\u0275fac}),t})(),mu=(()=>{class
t{constructor(e,n,s){this.translateService=e,this.element=n,this._ref=s,this.onTranslationChangeSub||(this.onTranslationChangeSub=this.translateService.onTranslationChange.subscribe(r=>{r.lang===this.translateService.currentLang&&this.checkNodes(!0,r.translations)})),this.onLangChangeSub||(this.onLangChangeSub=this.translateService.onLangChange.subsc
ribe(r=>{this.checkNodes(!0,r.translations)})),this.onDefaultLangChangeSub||(this.onDefaultLangChangeSub=this.translateService.onDefaultLangChange.subscribe(r=>{this.checkNodes(!0)}))}set
translate(e){e&&(this.key=e,this.checkNodes())}set
translateParams(e){il(this.currentParams,e)||(this.currentParams=e,this.checkNodes(!0))}ngAfterViewChecked(){this.checkNodes()}checkNodes(e=!1,n){let
s=this.element.nativeElement.childNodes;s.length||(this.setContent(this.element.nativeElement,this.key),s=this.element.nativeElement.childNodes);for(let
r=0;r<s.length;++r){let o=s[r];if(3===o.nodeType){let
u;if(e&&(o.lastKey=null),ri(o.lookupKey))u=o.lookupKey;else
if(this.key)u=this.key;else{let
h=this.getContent(o),b=h.trim();b.length&&(o.lookupKey=b,h!==o.currentValue?(u=b,o.originalContent=h||o.originalContent):o.originalContent?u=o.originalContent.trim():h!==o.currentValue&&(u=b,o.originalContent=h||o.originalContent))}this.updateValue(u,o,n)}}}updateValue(e,n,s){if(e){if(n.lastKey===e&&this.las
tParams===this.currentParams)return;this.lastParams=this.currentParams;let
r=o=>{o!==e&&(n.lastKey=e),n.originalContent||(n.originalContent=this.getContent(n)),n.currentValue=ri(o)?o:n.originalContent||e,this.setContent(n,this.key?n.currentValue:n.originalContent.replace(e,n.currentValue)),this._ref.markForCheck()};if(ri(s)){let
o=this.translateService.getParsedResult(s,e,this.currentParams);is(o)?o.subscribe({next:r}):r(o)}else
this.translateService.get(e,this.currentParams).subscribe(r)}}getContent(e){return
ri(e.textContent)?e.textContent:e.data}setContent(e,n){ri(e.textContent)?e.textContent=n:e.data=n}ngOnDestroy(){this.onLangChangeSub&&this.onLangChangeSub.unsubscribe(),this.onDefaultLangChangeSub&&this.onDefaultLangChangeSub.unsubscribe(),this.onTranslationChangeSub&&this.onTranslationChangeSub.unsubscribe()}}return
t.\u0275fac=function(e){return
new(e||t)(D(Oe),D(De),D(rt))},t.\u0275dir=le({type:t,selectors:[["","translate",""],["","ngx-translate",""]],inputs:{translate:"tra
nslate",translateParams:"translateParams"}}),t})(),ce=(()=>{class
t{constructor(e,n){this.translate=e,this._ref=n,this.value="",this.lastKey=null,this.lastParams=[]}updateValue(e,n,s){let
r=o=>{this.value=void 0!==o?o:e,this.lastKey=e,this._ref.markForCheck()};if(s){let
o=this.translate.getParsedResult(s,e,n);is(o.subscribe)?o.subscribe(r):r(o)}this.translate.get(e,n).subscribe(r)}transform(e,...n){if(!e||!e.length)return
e;if(il(e,this.lastKey)&&il(n,this.lastParams))return this.value;let
s;if(ri(n[0])&&n.length)if("string"==typeof
n[0]&&n[0].length){let
r=n[0].replace(/(\')?([a-zA-Z0-9_]+)(\')?(\s)?:/g,'"$2":').replace(/:(\s)?(\')(.*?)(\')/g,':"$3"');try{s=JSON.parse(r)}catch(o){throw
new SyntaxError(`Wrong parameter in TranslatePipe. Expected a valid Object, received:
${n[0]}`)}}else"object"==typeof
n[0]&&!Array.isArray(n[0])&&(s=n[0]);return
this.lastKey=e,this.lastParams=n,this.updateValue(e,s),this._dispose(),this.onTranslationChange||(this.onTranslationChange=this.translate.o
nTranslationChange.subscribe(r=>{this.lastKey&&r.lang===this.translate.currentLang&&(this.lastKey=null,this.updateValue(e,s,r.translations))})),this.onLangChange||(this.onLangChange=this.translate.onLangChange.subscribe(r=>{this.lastKey&&(this.lastKey=null,this.updateValue(e,s,r.translations))})),this.onDefaultLangChange||(this.onDefaultLangChange=this.translate.onDefaultLangChange.subscribe(()=>{this.lastKey&&(this.lastKey=null,this.updateValue(e,s))})),this.value}_dispose(){void
0!==this.onTranslationChange&&(this.onTranslationChange.unsubscribe(),this.onTranslationChange=void
0),void
0!==this.onLangChange&&(this.onLangChange.unsubscribe(),this.onLangChange=void
0),void
0!==this.onDefaultLangChange&&(this.onDefaultLangChange.unsubscribe(),this.onDefaultLangChange=void
0)}ngOnDestroy(){this._dispose()}}return t.\u0275fac=function(e){return
new(e||t)(D(Oe,16),D(rt,16))},t.\u0275pipe=An({name:"translate",type:t,pure:!1}),t.\u0275prov=X({token:t,factory:t.\u0275fac}),t})(),$O=(()=>{cl
ass t{static
forRoot(e={}){return{ngModule:t,providers:[e.loader||{provide:nl,useClass:o0},e.compiler||{provide:hu,useClass:u0},e.parser||{provide:pu,useClass:c0},e.missingTranslationHandler||{provide:zm,useClass:a0},d0,{provide:$m,useValue:e.isolate},{provide:Wm,useValue:e.useDefaultLang},{provide:Qm,useValue:e.extend},{provide:Km,useValue:e.defaultLanguage},Oe]}}static
forChild(e={}){return{ngModule:t,providers:[e.loader||{provide:nl,useClass:o0},e.compiler||{provide:hu,useClass:u0},e.parser||{provide:pu,useClass:c0},e.missingTranslationHandler||{provide:zm,useClass:a0},{provide:$m,useValue:e.isolate},{provide:Wm,useValue:e.useDefaultLang},{provide:Qm,useValue:e.extend},{provide:Km,useValue:e.defaultLanguage},Oe]}}}return
t.\u0275fac=function(e){return
new(e||t)},t.\u0275mod=he({type:t}),t.\u0275inj=ue({}),t})();class
WO{constructor(i,e="/assets/i18n/",n=".json"){this.http=i,this.prefix=e,this.suffix=n}getTranslation(i){return
this.http.get(`${this.prefix}${i}${this.suffix}`)}}let
p0=(()=>{class
t{constructor(e,n){this._renderer=e,this._elementRef=n,this.onChange=s=>{},this.onTouched=()=>{}}setProperty(e,n){this._renderer.setProperty(this._elementRef.nativeElement,e,n)}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)(D(gn),D(De))},t.\u0275dir=le({type:t}),t})(),vr=(()=>{class t extends
p0{}return t.\u0275fac=function(){let i;return
function(n){return(i||(i=on(t)))(n||t)}}(),t.\u0275dir=le({type:t,features:[ut]}),t})();const
dn=new
be("NgValueAccessor"),QO={provide:dn,useExisting:je(()=>Ye),multi:!0},YO=new
be("CompositionEventMode");let Ye=(()=>{class t extends
p0{constructor(e,n,s){super(e,n),this._compositionMode=s,this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function
JO(){const t=ns()?ns().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)(D(gn),D(De),D(YO,8))},t.\u0275dir=le({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,n){1&e&&C("input",function(r){return
n._handleInput(r.target.value)})("blur",function(){return
n.onTouched()})("compositionstart",function(){return
n._compositionStart()})("compositionend",function(r){return
n._compositionEnd(r.target.value)})},features:[Pe([QO]),ut]}),t})();function zs(t){return
null==t||0===t.length}const Ln=new be("NgValidators"),js=new
be("NgAsyncValidators");function
_0(t){return zs(t.value)?{required:!0}:null}function fu(t){return null}function
T0(t){return null!=t}function S0(t){const i=Ra(t)?Mn(t):t;return Dh(i),i}function
x0(t){let i={};return
t.forEach(e=>{i=null!=e?Object.assign(Object.assign({},i),e):i}),0===Object.keys(i).length?null:i}function
D0(t,i){return i.map(e=>e(t))}function M0(t){return t.map(i=>function
XO(t){return!t.validate}(i)?i:e=>i.validate(e))}function Jm(t){return null!=t?function
k0(t){if(!t)return null;const i=t.filter(T0);return 0==i.length?null:function(e){return
x0(D0(e,i))}}(M0(t)):null}function Ym(t){return null!=t?function I0(t){if(!t)return
null;const i=t.filter(T0);return 0==i.length?null:function(e){return
n0(D0(e,i).map(S0)).pipe(et(x0))}}(M0(t)):null}function E0(t,i){return
null===t?[i]:Array.isArray(t)?[...t,i]:[t,i]}function Zm(t){return
t?Array.isArray(t)?t:[t]:[]}function gu(t,i){return
Array.isArray(t)?t.includes(i):t===i}function O0(t,i){const e=Zm(i);return
Zm(t).forEach(s=>{gu(e,s)||e.push(s)}),e}f
unction A0(t,i){return Zm(i).filter(e=>!gu(t,e))}class
P0{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.valueChang
es:null}get path(){return
null}_setValidators(i){this._rawValidators=i||[],this._composedValidatorFn=Jm(this._rawValidators)}_setAsyncValidators(i){this._rawAsyncValidators=i||[],this._composedAsyncValidatorFn=Ym(this._rawAsyncValidators)}get
validator(){return this._composedValidatorFn||null}get asyncValidator(){return
this._composedAsyncValidatorFn||null}_registerOnDestroy(i){this._onDestroyCallbacks.push(i)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(i=>i()),this._onDestroyCallbacks=[]}reset(i){this.control&&this.control.reset(i)}hasError(i,e){return!!this.control&&this.control.hasError(i,e)}getError(i,e){return
this.control?this.control.getError(i,e):null}}class ss extends
P0{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}class
Un extends P0{get formDirective(){return null}get path(){return null}}class
F0{constructor(i){this._cd=i}is(i){var
e,n,s;return"submitted"===i?!!(null===(e=this._cd)||void 0===e?void 0:e.submit
ted):!!(null===(s=null===(n=this._cd)||void 0===n?void 0:n.control)||void 0===s?void
0:s[i])}}let Te=(()=>{class t extends F0{constructor(e){super(e)}}return
t.\u0275fac=function(e){return
new(e||t)(D(ss,2))},t.\u0275dir=le({type:t,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(e,n){2&e&&si("ng-untouched",n.is("untouched"))("ng-touched",n.is("touched"))("ng-pristine",n.is("pristine"))("ng-dirty",n.is("dirty"))("ng-valid",n.is("valid"))("ng-invalid",n.is("invalid"))("ng-pending",n.is("pending"))},features:[ut]}),t})(),Ue=(()=>{class
t extends F0{constructor(e){super(e)}}return t.\u0275fac=function(e){return
new(e||t)(D(Un,10))},t.\u0275dir=le({type:t,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(e,n){2&e&&si("ng-untouched",n.is("untouched"))("ng-touched",n.is("touched"))("ng-pristine",n.is
("pristine"))("ng-dirty",n.is("dirty"))("ng-valid",n.is("valid"))("ng-invalid",n.is("invalid"))("ng-pending",n.is("pending"))("ng-submitted",n.is("submitted"))},features:[ut]}),t})();function
sl(t,i){tf(t,i),i.valueAccessor.writeValue(t.value),function
aA(t,i){i.valueAccessor.registerOnChange(e=>{t._pendingValue=e,t._pendingChange=!0,t._pendingDirty=!0,"change"===t.updateOn&&V0(t,i)})}(t,i),function
cA(t,i){const
e=(n,s)=>{i.valueAccessor.writeValue(n),s&&i.viewToModelUpdate(n)};t.registerOnChange(e),i._registerOnDestroy(()=>{t._unregisterOnChange(e)})}(t,i),function
lA(t,i){i.valueAccessor.registerOnTouched(()=>{t._pendingTouched=!0,"blur"===t.updateOn&&t._pendingChange&&V0(t,i),"submit"!==t.updateOn&&t.markAsTouched()})}(t,i),function
oA(t,i){if(i.valueAccessor.setDisabledState){const
e=n=>{i.valueAccessor.setDisabledState(n)};t.registerOnDisabledChange(e),i._registerOnDestroy(()=>{t._unregisterOnDisabledChange(e)})}}(t,i)}function
Cu(t,i){t.forEach(e=>{e.registerOnValidatorChange
&&e.registerOnValidatorChange(i)})}function tf(t,i){const e=function R0(t){return
t._rawValidators}(t);null!==i.validator?t.setValidators(E0(e,i.validator)):"function"==typeof
e&&t.setValidators([e]);const n=function L0(t){return
t._rawAsyncValidators}(t);null!==i.asyncValidator?t.setAsyncValidators(E0(n,i.asyncValidator)):"function"==typeof
n&&t.setAsyncValidators([n]);const
s=()=>t.updateValueAndValidity();Cu(i._rawValidators,s),Cu(i._rawAsyncValidators,s)}function
V0(t,i){t._pendingDirty&&t.markAsDirty(),t.setValue(t._pendingValue,{emitModelToViewChange:!1}),i.viewToModelUpdate(t._pendingValue),t._pendingChange=!1}function
rf(t,i){const e=t.indexOf(i);e>-1&&t.splice(e,1)}const
rl="VALID",wu="INVALID",Eo="PENDING",ol="DISABLED";function
af(t){return(Tu(t)?t.validators:t)||null}function G0(t){return
Array.isArray(t)?Jm(t):t||null}function
lf(t,i){return(Tu(i)?i.asyncValidators:t)||null}function U0(t){return
Array.isArray(t)?Ym(t):t||null}function Tu(t){return null!=t&&!Array.isArra
y(t)&&"object"==typeof t}const cf=t=>t instanceof df;function
j0(t){return(t=>t instanceof K0)(t)?t.value:t.getRawValue()}function $0(t,i){const
e=cf(t),n=t.controls;if(!(e?Object.keys(n):n).length)throw new
re(1e3,"");if(!n[i])throw new re(1001,"")}function
W0(t,i){cf(t),t._forEachChild((n,s)=>{if(void 0===i[s])throw new
re(1002,"")})}class
uf{constructor(i,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=i,this._rawAsyncValidators=e,this._composedValidatorFn=G0(this._rawValidators),this._composedAsyncValidatorFn=U0(this._rawAsyncValidators)}get
validator(){return this._composedValidatorFn}set
validator(i){this._rawValidators=this._composedValidatorFn=i}get asyncValidator(){return
this._composedAsyncValidatorFn}set
asyncValidator(i){this._rawAsyncValidators=this._composedAsyncValidatorFn=i}get
parent(){return this._par
ent}get valid(){return this.status===rl}get invalid(){return this.status===wu}get
pending(){return this.status==Eo}get disabled(){return this.status===ol}get
enabled(){return this.status!==ol}get dirty(){return!this.pristine}get
untouched(){return!this.touched}get updateOn(){return
this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(i){this._rawValidators=i,this._composedValidatorFn=G0(i)}setAsyncValidators(i){this._rawAsyncValidators=i,this._composedAsyncValidatorFn=U0(i)}addValidators(i){this.setValidators(O0(i,this._rawValidators))}addAsyncValidators(i){this.setAsyncValidators(O0(i,this._rawAsyncValidators))}removeValidators(i){this.setValidators(A0(i,this._rawValidators))}removeAsyncValidators(i){this.setAsyncValidators(A0(i,this._rawAsyncValidators))}hasValidator(i){return
gu(this._rawValidators,i)}hasAsyncValidator(i){return
gu(this._rawAsyncValidators,i)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}mar
kAsTouched(i={}){this.touched=!0,this._parent&&!i.onlySelf&&this._parent.markAsTouched(i)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild(i=>i.markAllAsTouched())}markAsUntouched(i={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild(e=>{e.markAsUntouched({onlySelf:!0})}),this._parent&&!i.onlySelf&&this._parent._updateTouched(i)}markAsDirty(i={}){this.pristine=!1,this._parent&&!i.onlySelf&&this._parent.markAsDirty(i)}markAsPristine(i={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(e=>{e.markAsPristine({onlySelf:!0})}),this._parent&&!i.onlySelf&&this._parent._updatePristine(i)}markAsPending(i={}){this.status=Eo,!1!==i.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!i.onlySelf&&this._parent.markAsPending(i)}disable(i={}){const
e=this._parentMarkedDirty(i.onlySelf);this.status=ol,this.errors=null,this._forEachChild(n=>{n.disable(Object.assign(Object.assign({},i),{onlySelf:!0}))}),this._updateValue(),!1!==i.emitEvent&&(this.
valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(Object.assign(Object.assign({},i),{skipPristineCheck:e})),this._onDisabledChange.forEach(n=>n(!0))}enable(i={}){const
e=this._parentMarkedDirty(i.onlySelf);this.status=rl,this._forEachChild(n=>{n.enable(Object.assign(Object.assign({},i),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:i.emitEvent}),this._updateAncestors(Object.assign(Object.assign({},i),{skipPristineCheck:e})),this._onDisabledChange.forEach(n=>n(!1))}_updateAncestors(i){this._parent&&!i.onlySelf&&(this._parent.updateValueAndValidity(i),i.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(i){this._parent=i}updateValueAndValidity(i={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===rl||this.status===Eo)&&this._runAsyncValidator(i.emitEvent))
,!1!==i.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!i.onlySelf&&this._parent.updateValueAndValidity(i)}_updateTreeValidity(i={emitEvent:!0}){this._forEachChild(e=>e._updateTreeValidity(i)),this.updateValueAndValidity({onlySelf:!0,emitEvent:i.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?ol:rl}_runValidator(){return
this.validator?this.validator(this):null}_runAsyncValidator(i){if(this.asyncValidator){this.status=Eo,this._hasOwnPendingAsyncValidator=!0;const
e=S0(this.asyncValidator(this));this._asyncValidationSubscription=e.subscribe(n=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors(n,{emitEvent:i})})}}_cancelExistingSubscription(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}setErrors(i,e={}){this.errors=i,this._updateControlsErrors(!1!==e.emitEvent)}get(i){return
function hA(t,i,e){if(null==i||(Array.isArray(i)||(i=i.s
plit(e)),Array.isArray(i)&&0===i.length))return null;let n=t;return
i.forEach(s=>{n=cf(n)?n.controls.hasOwnProperty(s)?n.controls[s]:null:(t=>t
instanceof fA)(n)&&n.at(s)||null}),n}(this,i,".")}getError(i,e){const
n=e?this.get(e):this;return
n&&n.errors?n.errors[i]:null}hasError(i,e){return!!this.getError(i,e)}get
root(){let i=this;for(;i._parent;)i=i._parent;return
i}_updateControlsErrors(i){this.status=this._calculateStatus(),i&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(i)}_initObservables(){this.valueChanges=new
H,this.statusChanges=new H}_calculateStatus(){return
this._allControlsDisabled()?ol:this.errors?wu:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(Eo)?Eo:this._anyControlsHaveStatus(wu)?wu:rl}_anyControlsHaveStatus(i){return
this._anyControls(e=>e.status===i)}_anyControlsDirty(){return
this._anyControls(i=>i.dirty)}_anyControlsTouched(){return
this._anyControls(i=>i.touched)}_updatePristine(i={}){this.pristine=!th
is._anyControlsDirty(),this._parent&&!i.onlySelf&&this._parent._updatePristine(i)}_updateTouched(i={}){this.touched=this._anyControlsTouched(),this._parent&&!i.onlySelf&&this._parent._updateTouched(i)}_isBoxedValue(i){return"object"==typeof
i&&null!==i&&2===Object.keys(i).length&&"value"in
i&&"disabled"in
i}_registerOnCollectionChange(i){this._onCollectionChange=i}_setUpdateStrategy(i){Tu(i)&&null!=i.updateOn&&(this._updateOn=i.updateOn)}_parentMarkedDirty(i){return!i&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}}class
K0 extends
uf{constructor(i=null,e,n){super(af(e),lf(n,e)),this.defaultValue=null,this._onChange=[],this._pendingChange=!1,this._applyFormState(i),this._setUpdateStrategy(e),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),Tu(e)&&e.initialValueIsDefault&&(this.defaultValue=this._isBoxedValue(i)?i.value:i)}setValue(i,e={}){this.value=this._pendingValue=i,this._onChange.length&&!1!==e.emitMod
elToViewChange&&this._onChange.forEach(n=>n(this.value,!1!==e.emitViewToModelChange)),this.updateValueAndValidity(e)}patchValue(i,e={}){this.setValue(i,e)}reset(i=this.defaultValue,e={}){this._applyFormState(i),this.markAsPristine(e),this.markAsUntouched(e),this.setValue(this.value,e),this._pendingChange=!1}_updateValue(){}_anyControls(i){return!1}_allControlsDisabled(){return
this.disabled}registerOnChange(i){this._onChange.push(i)}_unregisterOnChange(i){rf(this._onChange,i)}registerOnDisabledChange(i){this._onDisabledChange.push(i)}_unregisterOnDisabledChange(i){rf(this._onDisabledChange,i)}_forEachChild(i){}_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(i){this._isBoxedValue(i)?(this.value=this._pendingValue=i.value,i.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.e
nable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=i}}class df extends
uf{constructor(i,e,n){super(af(e),lf(n,e)),this.controls=i,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}registerControl(i,e){return
this.controls[i]?this.controls[i]:(this.controls[i]=e,e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange),e)}addControl(i,e,n={}){this.registerControl(i,e),this.updateValueAndValidity({emitEvent:n.emitEvent}),this._onCollectionChange()}removeControl(i,e={}){this.controls[i]&&this.controls[i]._registerOnCollectionChange(()=>{}),delete
this.controls[i],this.updateValueAndValidity({emitEvent:e.emitEvent}),this._onCollectionChange()}setControl(i,e,n={}){this.controls[i]&&this.controls[i]._registerOnCollectionChange(()=>{}),delete
this.controls[i],e&&this.registerControl(i,e),this.updateValueAndValidity({emitEvent:n.emitEvent}),this._onCollectionChange
()}contains(i){return
this.controls.hasOwnProperty(i)&&this.controls[i].enabled}setValue(i,e={}){W0(this,i),Object.keys(i).forEach(n=>{$0(this,n),this.controls[n].setValue(i[n],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(i,e={}){null!=i&&(Object.keys(i).forEach(n=>{this.controls[n]&&this.controls[n].patchValue(i[n],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e))}reset(i={},e={}){this._forEachChild((n,s)=>{n.reset(i[s],{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e),this._updateTouched(e),this.updateValueAndValidity(e)}getRawValue(){return
this._reduceChildren({},(i,e,n)=>(i[n]=j0(e),i))}_syncPendingControls(){let
i=this._reduceChildren(!1,(e,n)=>!!n._syncPendingControls()||e);return
i&&this.updateValueAndValidity({onlySelf:!0}),i}_forEachChild(i){Object.keys(this.controls).forEach(e=>{const
n=this.controls[e];n&&i(n,e)})}_setUpControls(){this._forEachChild(i=>{i.setParent(this),i._registerOnCollectionChange(t
his._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(i){for(const
e of Object.keys(this.controls)){const
n=this.controls[e];if(this.contains(e)&&i(n))return!0}return!1}_reduceValue(){return
this._reduceChildren({},(i,e,n)=>((e.enabled||this.disabled)&&(i[n]=e.value),i))}_reduceChildren(i,e){let
n=i;return this._forEachChild((s,r)=>{n=e(n,s,r)}),n}_allControlsDisabled(){for(const i
of Object.keys(this.controls))if(this.controls[i].enabled)return!1;return
Object.keys(this.controls).length>0||this.disabled}}class fA extends
uf{constructor(i,e,n){super(af(e),lf(n,e)),this.controls=i,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}at(i){return
this.controls[i]}push(i,e={}){this.controls.push(i),this._registerControl(i),this.updateValueAndValidity({emitEvent:e.emitEvent}),this._onCollectionChange()}insert(i,e,n={}){this.controls.splice(i,0,e),this._registerC
ontrol(e),this.updateValueAndValidity({emitEvent:n.emitEvent})}removeAt(i,e={}){this.controls[i]&&this.controls[i]._registerOnCollectionChange(()=>{}),this.controls.splice(i,1),this.updateValueAndValidity({emitEvent:e.emitEvent})}setControl(i,e,n={}){this.controls[i]&&this.controls[i]._registerOnCollectionChange(()=>{}),this.controls.splice(i,1),e&&(this.controls.splice(i,0,e),this._registerControl(e)),this.updateValueAndValidity({emitEvent:n.emitEvent}),this._onCollectionChange()}get
length(){return
this.controls.length}setValue(i,e={}){W0(this,i),i.forEach((n,s)=>{$0(this,s),this.at(s).setValue(n,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(i,e={}){null!=i&&(i.forEach((n,s)=>{this.at(s)&&this.at(s).patchValue(n,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e))}reset(i=[],e={}){this._forEachChild((n,s)=>{n.reset(i[s],{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e),this._updateTouched(e),this.updateValueAndValid
ity(e)}getRawValue(){return
this.controls.map(i=>j0(i))}clear(i={}){this.controls.length<1||(this._forEachChild(e=>e._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity({emitEvent:i.emitEvent}))}_syncPendingControls(){let
i=this.controls.reduce((e,n)=>!!n._syncPendingControls()||e,!1);return
i&&this.updateValueAndValidity({onlySelf:!0}),i}_forEachChild(i){this.controls.forEach((e,n)=>{i(e,n)})}_updateValue(){this.value=this.controls.filter(i=>i.enabled||this.disabled).map(i=>i.value)}_anyControls(i){return
this.controls.some(e=>e.enabled&&i(e))}_setUpControls(){this._forEachChild(i=>this._registerControl(i))}_allControlsDisabled(){for(const
i of this.controls)if(i.enabled)return!1;return
this.controls.length>0||this.disabled}_registerControl(i){i.setParent(this),i._registerOnCollectionChange(this._onCollectionChange)}}const
gA={provide:Un,useExisting:je(()=>He)},al=(()=>Promise.resolve(null))();let
He=(()=>{class t extends Un{constructor(e,n){sup
er(),this.submitted=!1,this._directives=new Set,this.ngSubmit=new H,this.form=new
df({},Jm(e),Ym(n))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return
this}get control(){return this.form}get path(){return[]}get controls(){return
this.form.controls}addControl(e){al.then(()=>{const
n=this._findContainer(e.path);e.control=n.registerControl(e.name,e.control),sl(e.control,e),e.control.updateValueAndValidity({emitEvent:!1}),this._directives.add(e)})}getControl(e){return
this.form.get(e.path)}removeControl(e){al.then(()=>{const
n=this._findContainer(e.path);n&&n.removeControl(e.name),this._directives.delete(e)})}addFormGroup(e){al.then(()=>{const
n=this._findContainer(e.path),s=new df({});(function
B0(t,i){tf(t,i)})(s,e),n.registerControl(e.name,s),s.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(e){al.then(()=>{const
n=this._findContainer(e.path);n&&n.removeControl(e.name)})}getFormGroup(e){return
this.form.get(e.path)}updateModel(e,n){al.then(()=>{this.form
.get(e.path).setValue(n)})}setValue(e){this.control.setValue(e)}onSubmit(e){return
this.submitted=!0,function q0(t,i){t._syncPendingControls(),i.forEach(e=>{const
n=e.control;"submit"===n.updateOn&&n._pendingChange&&(e.viewToModelUpdate(n._pendingValue),n._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)(D(Ln,10),D(js,10))},t.\u0275dir=le({type:t,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(e,n){1&e&&C("submit",function(r){return
n.onSubmit(r)})("reset",function(){return
n.onReset()})},inputs:{options:["ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[Pe([gA]),ut]}
),t})();const
bA={provide:ss,useExisting:je(()=>_e)},Y0=(()=>Promise.resolve(null))();let
_e=(()=>{class t extends
ss{constructor(e,n,s,r,o){super(),this._changeDetectorRef=o,this.control=new
K0,this._registered=!1,this.update=new
H,this._parent=e,this._setValidators(n),this._setAsyncValidators(s),this.valueAccessor=function
sf(t,i){if(!i)return null;let e,n,s;return
Array.isArray(i),i.forEach(r=>{r.constructor===Ye?e=r:function pA(t){return
Object.getPrototypeOf(t.constructor)===vr}(r)?n=r:s=r}),s||n||e||null}(0,r)}ngOnChanges(e){if(this._checkForErrors(),!this._registered||"name"in
e){if(this._registered&&(this._checkName(),this.formDirective)){const
n=e.name.previousValue;this.formDirective.removeControl({name:n,path:this._getPath(n)})}this._setUpControl()}"isDisabled"in
e&&this._updateDisabled(e),function
nf(t,i){if(!t.hasOwnProperty("model"))return!1;const
e=t.model;return!!e.isFirstChange()||!Object.is(i,e.currentValue)}(e,this.viewModel)&&(this._updateValue(this.model),this.v
iewModel=this.model)}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}get
path(){return this._getPath(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}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.control._updateOn=this.options.updateOn)}_isStandalone(){return!this._parent||!(!this.options||!this.options.standalone)}_setUpStandalone(){sl(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){Y0.then(()=>{var
n;this.control.setValue(e,{emitViewToModelChange:!1}),null===(n=this._c
hangeDetectorRef)||void 0===n||n.markForCheck()})}_updateDisabled(e){const
n=e.isDisabled.currentValue,s=""===n||n&&"false"!==n;Y0.then(()=>{var
r;s&&!this.control.disabled?this.control.disable():!s&&this.control.disabled&&this.control.enable(),null===(r=this._changeDetectorRef)||void
0===r||r.markForCheck()})}_getPath(e){return this._parent?function
bu(t,i){return[...i.path,t]}(e,this._parent):[e]}}return t.\u0275fac=function(e){return
new(e||t)(D(Un,9),D(Ln,10),D(js,10),D(dn,10),D(rt,8))},t.\u0275dir=le({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:[Pe([bA]),ut,fn]}),t})(),ze=(()=>{class
t{}return t.\u0275fac=function(e){return
new(e||t)},t.\u0275dir=le({type:t,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]}),t})();const
vA={
provide:dn,useExisting:je(()=>Su),multi:!0};let Su=(()=>{class t extends
vr{writeValue(e){this.setProperty("value",null==e?"":e)}registerOnChange(e){this.onChange=n=>{e(""==n?null:parseFloat(n))}}}return
t.\u0275fac=function(){let i;return
function(n){return(i||(i=on(t)))(n||t)}}(),t.\u0275dir=le({type:t,selectors:[["input","type","number","formControlName",""],["input","type","number","formControl",""],["input","type","number","ngModel",""]],hostBindings:function(e,n){1&e&&C("input",function(r){return
n.onChange(r.target.value)})("blur",function(){return
n.onTouched()})},features:[Pe([vA]),ut]}),t})(),Z0=(()=>{class t{}return
t.\u0275fac=function(e){return
new(e||t)},t.\u0275mod=he({type:t}),t.\u0275inj=ue({}),t})();const pf=new
be("NgModelWithFormControlWarning");function
aw(t){return"number"==typeof t?t:parseFloat(t)}let Cr=(()=>{class
t{constructor(){this._validator=fu}ngOnChanges(e){if(this.inputName in e){const
n=this.normalizeInput(e[this.inputName].currentValue);this._enable
d=this.enabled(n),this._validator=this._enabled?this.createValidator(n):fu,this._onChange&&this._onChange()}}validate(e){return
this._validator(e)}registerOnValidatorChange(e){this._onChange=e}enabled(e){return
null!=e}}return t.\u0275fac=function(e){return
new(e||t)},t.\u0275dir=le({type:t,features:[fn]}),t})();const
PA={provide:Ln,useExisting:je(()=>xu),multi:!0};let xu=(()=>{class t extends
Cr{constructor(){super(...arguments),this.inputName="max",this.normalizeInput=e=>aw(e),this.createValidator=e=>function
g0(t){return i=>{if(zs(i.value)||zs(t))return null;const
e=parseFloat(i.value);return!isNaN(e)&&e>t?{max:{max:t,actual:i.value}}:null}}(e)}}return
t.\u0275fac=function(){let i;return
function(n){return(i||(i=on(t)))(n||t)}}(),t.\u0275dir=le({type:t,selectors:[["input","type","number","max","","formControlName",""],["input","type","number","max","","formControl",""],["input","type","number","max","","ngModel",""]],hostVars:1,hostBindings:function(e,n){2&e&&ie("max",n._enabled?
n.max:null)},inputs:{max:"max"},features:[Pe([PA]),ut]}),t})();const
FA={provide:Ln,useExisting:je(()=>Du),multi:!0};let Du=(()=>{class t extends
Cr{constructor(){super(...arguments),this.inputName="min",this.normalizeInput=e=>aw(e),this.createValidator=e=>function
f0(t){return i=>{if(zs(i.value)||zs(t))return null;const
e=parseFloat(i.value);return!isNaN(e)&&e<t?{min:{min:t,actual:i.value}}:null}}(e)}}return
t.\u0275fac=function(){let i;return
function(n){return(i||(i=on(t)))(n||t)}}(),t.\u0275dir=le({type:t,selectors:[["input","type","number","min","","formControlName",""],["input","type","number","min","","formControl",""],["input","type","number","min","","ngModel",""]],hostVars:1,hostBindings:function(e,n){2&e&&ie("min",n._enabled?n.min:null)},inputs:{min:"min"},features:[Pe([FA]),ut]}),t})();const
NA={provide:Ln,useExisting:je(()=>ll),multi:!0};let ll=(()=>{class t extends
Cr{constructor(){super(...arguments),this.inputName="required",this.normalizeInput=e=>function
AA(t){retu
rn
null!=t&&!1!==t&&"false"!=`${t}`}(e),this.createValidator=e=>_0}enabled(e){return
e}}return t.\u0275fac=function(){let i;return
function(n){return(i||(i=on(t)))(n||t)}}(),t.\u0275dir=le({type:t,selectors:[["","required","","formControlName","",3,"type","checkbox"],["","required","","formControl","",3,"type","checkbox"],["","required","","ngModel","",3,"type","checkbox"]],hostVars:1,hostBindings:function(e,n){2&e&&ie("required",n._enabled?"":null)},inputs:{required:"required"},features:[Pe([NA]),ut]}),t})();const
qA={provide:Ln,useExisting:je(()=>_n),multi:!0};let _n=(()=>{class t extends
Cr{constructor(){super(...arguments),this.inputName="maxlength",this.normalizeInput=e=>function
ow(t){return"number"==typeof
t?t:parseInt(t,10)}(e),this.createValidator=e=>function y0(t){return i=>function
m0(t){return null!=t&&"number"==typeof
t.length}(i.value)&&i.value.length>t?{maxlength:{requiredLength:t,actualLength:i.value.length}}:null}(e)}}return
t.\u0275fac=function(){let i;return funct
ion(n){return(i||(i=on(t)))(n||t)}}(),t.\u0275dir=le({type:t,selectors:[["","maxlength","","formControlName",""],["","maxlength","","formControl",""],["","maxlength","","ngModel",""]],hostVars:1,hostBindings:function(e,n){2&e&&ie("maxlength",n._enabled?n.maxlength:null)},inputs:{maxlength:"maxlength"},features:[Pe([qA]),ut]}),t})(),pw=(()=>{class
t{}return t.\u0275fac=function(e){return
new(e||t)},t.\u0275mod=he({type:t}),t.\u0275inj=ue({imports:[[Z0]]}),t})(),Mu=(()=>{class
t{}return t.\u0275fac=function(e){return
new(e||t)},t.\u0275mod=he({type:t}),t.\u0275inj=ue({imports:[pw]}),t})(),UA=(()=>{class
t{static
withConfig(e){return{ngModule:t,providers:[{provide:pf,useValue:e.warnOnNgModelWithFormControl}]}}}return
t.\u0275fac=function(e){return
new(e||t)},t.\u0275mod=he({type:t}),t.\u0275inj=ue({imports:[pw]}),t})();class hw{}const
ys="*";function wi(t,i){return{type:7,name:t,definitions:i,options:{}}}function
kt(t,i=null){return{type:4,styles:i,timings:t}}function mw(t,i=null){retu
rn{type:2,steps:t,options:i}}function it(t){return{type:6,styles:t,offset:null}}function
ws(t,i,e){return{type:0,name:t,styles:i,options:e}}function
Lt(t,i,e=null){return{type:1,expr:t,animation:i,options:e}}function
ku(t,i=null){return{type:8,animation:t,options:i}}function
jA(t=null){return{type:9,options:t}}function
fw(t,i=null){return{type:10,animation:t,options:i}}function
$A(t,i,e=null){return{type:11,selector:t,animation:i,options:e}}function
gw(t){Promise.resolve(null).then(t)}class
cl{constructor(i=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=i+e}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(i=>i()),this._onDoneFns=[])}onStart(i){this._onStartFns.push(i)}onDone(i){this._onDoneFns.push(i)}onDestroy(i){this._onDestroyFns.push(i)}hasStarted(){return
this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.trig
gerMicrotask()),this._started=!0}triggerMicrotask(){gw(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(i=>i()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(i=>i()),this._onDestroyFns=[])}reset(){this._started=!1}setPosition(i){this._position=this.totalTime?i*this.totalTime:1}getPosition(){return
this.totalTime?this._position/this.totalTime:1}triggerCallback(i){const
e="start"==i?this._onStartFns:this._onDoneFns;e.forEach(n=>n()),e.length=0}}class
_w{constructor(i){this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=i;let
e=0,n=0,s=0;const
r=this.players.length;0==r?gw(()=>this._onFinish()):this.players.forEach(o=>{o.onDone(()=>{++e==r&&this._onFinish()}),o.onDestroy(()=>{++n==r&&this._onDestroy()}),o.onStart(()=>{++s=
=r&&this._onStart()})}),this.totalTime=this.players.reduce((o,u)=>Math.max(o,u.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(i=>i()),this._onDoneFns=[])}init(){this.players.forEach(i=>i.init())}onStart(i){this._onStartFns.push(i)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(i=>i()),this._onStartFns=[])}onDone(i){this._onDoneFns.push(i)}onDestroy(i){this._onDestroyFns.push(i)}hasStarted(){return
this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(i=>i.play())}pause(){this.players.forEach(i=>i.pause())}restart(){this.players.forEach(i=>i.restart())}finish(){this._onFinish(),this.players.forEach(i=>i.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(i=>i.destroy()),this._onDestroyFns.forEach(i=>i()),this._onDestroyFns=[])}reset(){this.players.forEach(i=>i.reset()),this._destroyed=!1,this._finished=!1,this._st
arted=!1}setPosition(i){const e=i*this.totalTime;this.players.forEach(n=>{const
s=n.totalTime?Math.min(1,e/n.totalTime):1;n.setPosition(s)})}getPosition(){const
i=this.players.reduce((e,n)=>null===e||n.totalTime>e.totalTime?n:e,null);return
null!=i?i.getPosition():0}beforeDestroy(){this.players.forEach(i=>{i.beforeDestroy&&i.beforeDestroy()})}triggerCallback(i){const
e="start"==i?this._onStartFns:this._onDoneFns;e.forEach(n=>n()),e.length=0}}const
Ze=!1;function bw(t){return new re(3e3,Ze)}function
DP(){return"undefined"!=typeof window&&void 0!==window.document}function
vf(){return"undefined"!=typeof process&&"[object
process]"==={}.toString.call(process)}function $s(t){switch(t.length){case 0:return
new cl;case 1:return t[0];default:return new _w(t)}}function vw(t,i,e,n,s={},r={}){const
o=[],u=[];let h=-1,b=null;if(n.forEach(y=>{const
w=y.offset,M=w==h,E=M&&b||{};Object.keys(y).forEach(L=>{let
O=L,N=y[L];if("offset"!==L)switch(O=i.normalizePropertyName(O,o),N){case"!":N=s[L];break;
case
ys:N=r[L];break;default:N=i.normalizeStyleValue(L,O,N,o)}E[O]=N}),M||u.push(E),b=E,h=w}),o.length)throw
function fP(t){return new re(3502,Ze)}();return u}function
Cf(t,i,e,n){switch(i){case"start":t.onStart(()=>n(e&&yf(e,"start",t)));break;case"done":t.onDone(()=>n(e&&yf(e,"done",t)));break;case"destroy":t.onDestroy(()=>n(e&&yf(e,"destroy",t)))}}function
yf(t,i,e){const
n=e.totalTime,r=wf(t.element,t.triggerName,t.fromState,t.toState,i||t.phaseName,null==n?t.totalTime:n,!!e.disabled),o=t._data;return
null!=o&&(r._data=o),r}function
wf(t,i,e,n,s="",r=0,o){return{element:t,triggerName:i,fromState:e,toState:n,phaseName:s,totalTime:r,disabled:!!o}}function
oi(t,i,e){let n;return t instanceof
Map?(n=t.get(i),n||t.set(i,n=e)):(n=t[i],n||(n=t[i]=e)),n}function Cw(t){const
i=t.indexOf(":");return[t.substring(1,i),t.substr(i+1)]}let
Tf=(t,i)=>!1,yw=(t,i,e)=>[],ww=null;function Sf(t){const
i=t.parentNode||t.host;return i===ww?null:i}(vf()||"undefined"!=typeof
Element)&&(DP()?(ww=(()=>doc
ument.documentElement)(),Tf=(t,i)=>{for(;i;){if(i===t)return!0;i=Sf(i)}return!1}):Tf=(t,i)=>t.contains(i),yw=(t,i,e)=>{if(e)return
Array.from(t.querySelectorAll(i));const n=t.querySelector(i);return n?[n]:[]});let
yr=null,Tw=!1;function Sw(t){yr||(yr=function kP(){return"undefined"!=typeof
document?document.body:null}()||{},Tw=!!yr.style&&"WebkitAppearance"in
yr.style);let i=!0;return yr.style&&!function
MP(t){return"ebkit"==t.substring(1,6)}(t)&&(i=t in
yr.style,!i&&Tw&&(i="Webkit"+t.charAt(0).toUpperCase()+t.substr(1)in
yr.style)),i}const xw=Tf,Dw=yw;let Mw=(()=>{class t{validateStyleProperty(e){return
Sw(e)}matchesElement(e,n){return!1}containsElement(e,n){return
xw(e,n)}getParentElement(e){return Sf(e)}query(e,n,s){return
Dw(e,n,s)}computeStyle(e,n,s){return s||""}animate(e,n,s,r,o,u=[],h){return new
cl(s,r)}}return t.\u0275fac=function(e){return
new(e||t)},t.\u0275prov=X({token:t,factory:t.\u0275fac}),t})(),xf=(()=>{class t{}return
t.NOOP=new Mw,t})();const Df="ng-enter",Eu="ng
-leave",Ru="ng-trigger",Lu=".ng-trigger",Iw="ng-animating",Mf=".ng-animating";function
wr(t){if("number"==typeof t)return t;const
i=t.match(/^(-?[\.\d]+)(m?s)/);return!i||i.length<2?0:kf(parseFloat(i[1]),i[2])}function
kf(t,i){return"s"===i?1e3*t:t}function Ou(t,i,e){return
t.hasOwnProperty("duration")?t:function RP(t,i,e){let
s,r=0,o="";if("string"==typeof t){const
u=t.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===u)return
i.push(bw()),{duration:0,delay:0,easing:""};s=kf(parseFloat(u[1]),u[2]);const
h=u[3];null!=h&&(r=kf(parseFloat(h),u[4]));const b=u[5];b&&(o=b)}else
s=t;if(!e){let u=!1,h=i.length;s<0&&(i.push(function WA(){return new
re(3100,Ze)}()),u=!0),r<0&&(i.push(function KA(){return new
re(3101,Ze)}()),u=!0),u&&i.splice(h,0,bw())}return{duration:s,delay:r,easing:o}}(t,i,e)}function
Ro(t,i={}){return Object.keys(t).forEach(e=>{i[e]=t[e]}),i}function
Ws(t,i,e={}){if(i)for(let n in t)e[n]=t[n];else Ro(t,e);return e}function Rw(t,i,
e){return e?i+":"+e+";":""}function Lw(t){let
i="";for(let e=0;e<t.style.length;e++){const
n=t.style.item(e);i+=Rw(0,n,t.style.getPropertyValue(n))}for(const e in
t.style)t.style.hasOwnProperty(e)&&!e.startsWith("_")&&(i+=Rw(0,AP(e),t.style[e]));t.setAttribute("style",i)}function
rs(t,i,e){t.style&&(Object.keys(i).forEach(n=>{const
s=Ef(n);e&&!e.hasOwnProperty(n)&&(e[n]=t.style[s]),t.style[s]=i[n]}),vf()&&Lw(t))}function
Tr(t,i){t.style&&(Object.keys(i).forEach(e=>{const
n=Ef(e);t.style[n]=""}),vf()&&Lw(t))}function ul(t){return
Array.isArray(t)?1==t.length?t[0]:mw(t):t}const If=new
RegExp("{{\\s*(.+?)\\s*}}","g");function Ow(t){let
i=[];if("string"==typeof t){let
e;for(;e=If.exec(t);)i.push(e[1]);If.lastIndex=0}return i}function Au(t,i,e){const
n=t.toString(),s=n.replace(If,(r,o)=>{let u=i[o];return
i.hasOwnProperty(o)||(e.push(function JA(t){return new
re(3003,Ze)}()),u=""),u.toString()});return s==n?t:s}function Pu(t){const
i=[];let e=t.next();for(;!e.done;)i.push(e.value),e=t.ne
xt();return i}const OP=/-+([a-z0-9])/g;function Ef(t){return
t.replace(OP,(...i)=>i[1].toUpperCase())}function AP(t){return
t.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}function
ai(t,i,e){switch(i.type){case 7:return t.visitTrigger(i,e);case 0:return
t.visitState(i,e);case 1:return t.visitTransition(i,e);case 2:return
t.visitSequence(i,e);case 3:return t.visitGroup(i,e);case 4:return
t.visitAnimate(i,e);case 5:return t.visitKeyframes(i,e);case 6:return
t.visitStyle(i,e);case 8:return t.visitReference(i,e);case 9:return
t.visitAnimateChild(i,e);case 10:return t.visitAnimateRef(i,e);case 11:return
t.visitQuery(i,e);case 12:return t.visitStagger(i,e);default:throw function YA(t){return
new re(3004,Ze)}()}}function Aw(t,i){return window.getComputedStyle(t)[i]}function
HP(t,i){const e=[];return"string"==typeof
t?t.split(/\s*,\s*/).forEach(n=>function qP(t,i,e){if(":"==t[0]){const
h=function GP(t,i){switch(t){case":enter":return"void =>
*";case":leave":return"* => void";case":increm
ent":return(e,n)=>parseFloat(n)>parseFloat(e);case":decrement":return(e,n)=>parseFloat(n)<parseFloat(e);default:return
i.push(function dP(t){return new re(3016,Ze)}()),"* =>
*"}}(t,e);if("function"==typeof h)return void i.push(h);t=h}const
n=t.match(/^(\*|[-\w]+)\s*(<?[=-]>)\s*(\*|[-\w]+)$/);if(null==n||n.length<4)return
e.push(function uP(t){return new re(3015,Ze)}()),i;const
s=n[1],r=n[2],o=n[3];i.push(Pw(s,o));"<"==r[0]&&!("*"==s&&"*"==o)&&i.push(Pw(o,s))}(n,e,i)):e.push(t),e}const
Bu=new Set(["true","1"]),Hu=new
Set(["false","0"]);function Pw(t,i){const
e=Bu.has(t)||Hu.has(t),n=Bu.has(i)||Hu.has(i);return(s,r)=>{let
o="*"==t||t==s,u="*"==i||i==r;return!o&&e&&"boolean"==typeof
s&&(o=s?Bu.has(t):Hu.has(t)),!u&&n&&"boolean"==typeof
r&&(u=r?Bu.has(i):Hu.has(i)),o&&u}}const UP=new
RegExp("s*:selfs*,?","g");function Rf(t,i,e,n){return new
zP(t).build(i,e,n)}class zP{constructor(i){this._driver=i}build(i,e,n){const s=new
WP(e);this._resetContextStyleTimingState(s);const r=ai(this,ul(i)
,s);return
s.unsupportedCSSPropertiesFound.size&&s.unsupportedCSSPropertiesFound.keys(),r}_resetContextStyleTimingState(i){i.currentQuerySelector="",i.collectedStyles={},i.collectedStyles[""]={},i.currentTime=0}visitTrigger(i,e){let
n=e.queryCount=0,s=e.depCount=0;const
r=[],o=[];return"(a)"==i.name.charAt(0)&&e.errors.push(function
XA(){return new
re(3006,Ze)}()),i.definitions.forEach(u=>{if(this._resetContextStyleTimingState(e),0==u.type){const
h=u,b=h.name;b.toString().split(/\s*,\s*/).forEach(y=>{h.name=y,r.push(this.visitState(h,e))}),h.name=b}else
if(1==u.type){const
h=this.visitTransition(u,e);n+=h.queryCount,s+=h.depCount,o.push(h)}else
e.errors.push(function eP(){return new
re(3007,Ze)}())}),{type:7,name:i.name,states:r,transitions:o,queryCount:n,depCount:s,options:null}}visitState(i,e){const
n=this.visitStyle(i.styles,e),s=i.options&&i.options.params||null;if(n.containsDynamicStyles){const
r=new Set,o=s||{};n.styles.forEach(u=>{if(qu(u)){const
h=u;Object.keys(h).forEach(b=>{
Ow(h[b]).forEach(y=>{o.hasOwnProperty(y)||r.add(y)})})}}),r.size&&(Pu(r.values()),e.errors.push(function
tP(t,i){return new
re(3008,Ze)}()))}return{type:0,name:i.name,style:n,options:s?{params:s}:null}}visitTransition(i,e){e.queryCount=0,e.depCount=0;const
n=ai(this,ul(i.animation),e);return{type:1,matchers:HP(i.expr,e.errors),animation:n,queryCount:e.queryCount,depCount:e.depCount,options:Sr(i.options)}}visitSequence(i,e){return{type:2,steps:i.steps.map(n=>ai(this,n,e)),options:Sr(i.options)}}visitGroup(i,e){const
n=e.currentTime;let s=0;const r=i.steps.map(o=>{e.currentTime=n;const
u=ai(this,o,e);return s=Math.max(s,e.currentTime),u});return
e.currentTime=s,{type:3,steps:r,options:Sr(i.options)}}visitAnimate(i,e){const n=function
QP(t,i){if(t.hasOwnProperty("duration"))return t;if("number"==typeof
t)return Lf(Ou(t,i).duration,0,"");const
e=t;if(e.split(/\s+/).some(r=>"{"==r.charAt(0)&&"{"==r.charAt(1))){const
r=Lf(0,0,"");return r.dynamic=!0,r.strValue=e,r}const s=Ou(e,i);return L
f(s.duration,s.delay,s.easing)}(i.timings,e.errors);e.currentAnimateTimings=n;let
s,r=i.styles?i.styles:it({});if(5==r.type)s=this.visitKeyframes(r,e);else{let
o=i.styles,u=!1;if(!o){u=!0;const
b={};n.easing&&(b.easing=n.easing),o=it(b)}e.currentTime+=n.duration+n.delay;const
h=this.visitStyle(o,e);h.isEmptyStep=u,s=h}return
e.currentAnimateTimings=null,{type:4,timings:n,style:s,options:null}}visitStyle(i,e){const
n=this._makeStyleAst(i,e);return this._validateStyleAst(n,e),n}_makeStyleAst(i,e){const
n=[];Array.isArray(i.styles)?i.styles.forEach(o=>{"string"==typeof
o?o==ys?n.push(o):e.errors.push(function nP(t){return new
re(3002,Ze)}()):n.push(o)}):n.push(i.styles);let s=!1,r=null;return
n.forEach(o=>{if(qu(o)){const u=o,h=u.easing;if(h&&(r=h,delete
u.easing),!s)for(let b in
u)if(u[b].toString().indexOf("{{")>=0){s=!0;break}}}),{type:6,styles:n,easing:r,offset:i.offset,containsDynamicStyles:s,options:null}}_validateStyleAst(i,e){const
n=e.currentAnimateTimings;let s=e.currentTime,
r=e.currentTime;n&&r>0&&(r-=n.duration+n.delay),i.styles.forEach(o=>{"string"!=typeof
o&&Object.keys(o).forEach(u=>{if(!this._driver.validateStyleProperty(u))return
delete o[u],void e.unsupportedCSSPropertiesFound.add(u);const
h=e.collectedStyles[e.currentQuerySelector],b=h[u];let
y=!0;b&&(r!=s&&r>=b.startTime&&s<=b.endTime&&(e.errors.push(function
iP(t,i,e,n,s){return new
re(3010,Ze)}()),y=!1),r=b.startTime),y&&(h[u]={startTime:r,endTime:s}),e.options&&function
LP(t,i,e){const
n=i.params||{},s=Ow(t);s.length&&s.forEach(r=>{n.hasOwnProperty(r)||e.push(function
QA(t){return new re(3001,Ze)}())})}(o[u],e.options,e.errors)})})}visitKeyframes(i,e){const
n={type:5,styles:[],options:null};if(!e.currentAnimateTimings)return
e.errors.push(function sP(){return new re(3011,Ze)}()),n;let r=0;const o=[];let
u=!1,h=!1,b=0;const y=i.steps.map(G=>{const P=this._makeStyleAst(G,e);let
J=null!=P.offset?P.offset:function KP(t){if("string"==typeof t)return null;let
i=null;if(Array.isArray(t))t.forEach(
e=>{if(qu(e)&&e.hasOwnProperty("offset")){const
n=e;i=parseFloat(n.offset),delete n.offset}});else
if(qu(t)&&t.hasOwnProperty("offset")){const
e=t;i=parseFloat(e.offset),delete e.offset}return i}(P.styles),se=0;return
null!=J&&(r++,se=P.offset=J),h=h||se<0||se>1,u=u||se<b,b=se,o.push(se),P});h&&e.errors.push(function
rP(){return new re(3012,Ze)}()),u&&e.errors.push(function oP(){return new
re(3200,Ze)}());const w=i.steps.length;let
M=0;r>0&&r<w?e.errors.push(function aP(){return new
re(3202,Ze)}()):0==r&&(M=1/(w-1));const
E=w-1,L=e.currentTime,O=e.currentAnimateTimings,N=O.duration;return
y.forEach((G,P)=>{const
J=M>0?P==E?1:M*P:o[P],se=J*N;e.currentTime=L+O.delay+se,O.duration=se,this._validateStyleAst(G,e),G.offset=J,n.styles.push(G)}),n}visitReference(i,e){return{type:8,animation:ai(this,ul(i.animation),e),options:Sr(i.options)}}visitAnimateChild(i,e){return
e.depCount++,{type:9,options:Sr(i.options)}}visitAnimateRef(i,e){return{type:10,animation:this.visitReference(i.animation,e
),options:Sr(i.options)}}visitQuery(i,e){const
n=e.currentQuerySelector,s=i.options||{};e.queryCount++,e.currentQuery=i;const[r,o]=function
jP(t){const i=!!t.split(/\s*,\s*/).find(e=>":self"==e);return
i&&(t=t.replace(UP,"")),t=t.replace(/@\*/g,Lu).replace(/@\w+/g,e=>Lu+"-"+e.substr(1)).replace(/:animating/g,Mf),[t,i]}(i.selector);e.currentQuerySelector=n.length?n+"
"+r:r,oi(e.collectedStyles,e.currentQuerySelector,{});const
u=ai(this,ul(i.animation),e);return
e.currentQuery=null,e.currentQuerySelector=n,{type:11,selector:r,limit:s.limit||0,optional:!!s.optional,includeSelf:o,animation:u,originalSelector:i.selector,options:Sr(i.options)}}visitStagger(i,e){e.currentQuery||e.errors.push(function
lP(){return new re(3013,Ze)}());const
n="full"===i.timings?{duration:0,delay:0,easing:"full"}:Ou(i.timings,e.errors,!0);return{type:12,animation:ai(this,ul(i.animation),e),timings:n,options:null}}}class
WP{constructor(i){this.errors=i,this.queryCount=0,this.depCount=0,this.currentTransition=nu
ll,this.currentQuery=null,this.currentQuerySelector=null,this.currentAnimateTimings=null,this.currentTime=0,this.collectedStyles={},this.options=null,this.unsupportedCSSPropertiesFound=new
Set}}function qu(t){return!Array.isArray(t)&&"object"==typeof t}function
Sr(t){return t?(t=Ro(t)).params&&(t.params=function $P(t){return
t?Ro(t):null}(t.params)):t={},t}function
Lf(t,i,e){return{duration:t,delay:i,easing:e}}function
Of(t,i,e,n,s,r,o=null,u=!1){return{type:1,element:t,keyframes:i,preStyleProps:e,postStyleProps:n,duration:s,delay:r,totalTime:s+r,easing:o,subTimeline:u}}class
Gu{constructor(){this._map=new Map}get(i){return this._map.get(i)||[]}append(i,e){let
n=this._map.get(i);n||this._map.set(i,n=[]),n.push(...e)}has(i){return
this._map.has(i)}clear(){this._map.clear()}}const ZP=new
RegExp(":enter","g"),eF=new
RegExp(":leave","g");function
Af(t,i,e,n,s,r={},o={},u,h,b=[]){return(new tF).buildKeyframes(t,i,e,n,s,r,o,u,h,b)}class
tF{buildKeyframes(i,e,n,s,r,o,u,h,b,y=[]){b=b||new G
u;const w=new
Pf(i,e,b,s,r,y,[]);w.options=h,w.currentTimeline.setStyles([o],null,w.errors,h),ai(this,n,w);const
M=w.timelines.filter(E=>E.containsAnimation());if(Object.keys(u).length){let E;for(let
L=M.length-1;L>=0;L--){const
O=M[L];if(O.element===e){E=O;break}}E&&!E.allowOnlyTimelineStyles()&&E.setStyles([u],null,w.errors,h)}return
M.length?M.map(E=>E.buildKeyframes()):[Of(e,[],[],[],0,0,"",!1)]}visitTrigger(i,e){}visitState(i,e){}visitTransition(i,e){}visitAnimateChild(i,e){const
n=e.subInstructions.get(e.element);if(n){const
s=e.createSubContext(i.options),r=e.currentTimeline.currentTime,o=this._visitSubInstructions(n,s,s.options);r!=o&&e.transformIntoNewTimeline(o)}e.previousNode=i}visitAnimateRef(i,e){const
n=e.createSubContext(i.options);n.transformIntoNewTimeline(),this.visitReference(i.animation,n),e.transformIntoNewTimeline(n.currentTimeline.currentTime),e.previousNode=i}_visitSubInstructions(i,e,n){let
r=e.currentTimeline.currentTime;const o=null!=n.duration?wr(n.durati
on):null,u=null!=n.delay?wr(n.delay):null;return 0!==o&&i.forEach(h=>{const
b=e.appendInstructionToTimeline(h,o,u);r=Math.max(r,b.duration+b.delay)}),r}visitReference(i,e){e.updateOptions(i.options,!0),ai(this,i.animation,e),e.previousNode=i}visitSequence(i,e){const
n=e.subContextCount;let s=e;const
r=i.options;if(r&&(r.params||r.delay)&&(s=e.createSubContext(r),s.transformIntoNewTimeline(),null!=r.delay)){6==s.previousNode.type&&(s.currentTimeline.snapshotCurrentStyles(),s.previousNode=Uu);const
o=wr(r.delay);s.delayNextStep(o)}i.steps.length&&(i.steps.forEach(o=>ai(this,o,s)),s.currentTimeline.applyStylesToKeyframe(),s.subContextCount>n&&s.transformIntoNewTimeline()),e.previousNode=i}visitGroup(i,e){const
n=[];let s=e.currentTimeline.currentTime;const
r=i.options&&i.options.delay?wr(i.options.delay):0;i.steps.forEach(o=>{const
u=e.createSubContext(i.options);r&&u.delayNextStep(r),ai(this,o,u),s=Math.max(s,u.currentTimeline.currentTime),n.push(u.currentTimeline)}),n.forEach(o=>e.cu
rrentTimeline.mergeTimelineCollectedStyles(o)),e.transformIntoNewTimeline(s),e.previousNode=i}_visitTiming(i,e){if(i.dynamic){const
n=i.strValue;return
Ou(e.params?Au(n,e.params,e.errors):n,e.errors)}return{duration:i.duration,delay:i.delay,easing:i.easing}}visitAnimate(i,e){const
n=e.currentAnimateTimings=this._visitTiming(i.timings,e),s=e.currentTimeline;n.delay&&(e.incrementTime(n.delay),s.snapshotCurrentStyles());const
r=i.style;5==r.type?this.visitKeyframes(r,e):(e.incrementTime(n.duration),this.visitStyle(r,e),s.applyStylesToKeyframe()),e.currentAnimateTimings=null,e.previousNode=i}visitStyle(i,e){const
n=e.currentTimeline,s=e.currentAnimateTimings;!s&&n.getCurrentStyleProperties().length&&n.forwardFrame();const
r=s&&s.easing||i.easing;i.isEmptyStep?n.applyEmptyStep(r):n.setStyles(i.styles,r,e.errors,e.options),e.previousNode=i}visitKeyframes(i,e){const
n=e.currentAnimateTimings,s=e.currentTimeline.duration,r=n.duration,u=e.createSubContext().currentTimeline;u.easing=n.easing,
i.styles.forEach(h=>{u.forwardTime((h.offset||0)*r),u.setStyles(h.styles,h.easing,e.errors,e.options),u.applyStylesToKeyframe()}),e.currentTimeline.mergeTimelineCollectedStyles(u),e.transformIntoNewTimeline(s+r),e.previousNode=i}visitQuery(i,e){const
n=e.currentTimeline.currentTime,s=i.options||{},r=s.delay?wr(s.delay):0;r&&(6===e.previousNode.type||0==n&&e.currentTimeline.getCurrentStyleProperties().length)&&(e.currentTimeline.snapshotCurrentStyles(),e.previousNode=Uu);let
o=n;const
u=e.invokeQuery(i.selector,i.originalSelector,i.limit,i.includeSelf,!!s.optional,e.errors);e.currentQueryTotal=u.length;let
h=null;u.forEach((b,y)=>{e.currentQueryIndex=y;const
w=e.createSubContext(i.options,b);r&&w.delayNextStep(r),b===e.element&&(h=w.currentTimeline),ai(this,i.animation,w),w.currentTimeline.applyStylesToKeyframe(),o=Math.max(o,w.currentTimeline.currentTime)}),e.currentQueryIndex=0,e.currentQueryTotal=0,e.transformIntoNewTimeline(o),h&&(e.currentTimeline.mergeTimelineCollectedStyles(h)
,e.currentTimeline.snapshotCurrentStyles()),e.previousNode=i}visitStagger(i,e){const
n=e.parentContext,s=e.currentTimeline,r=i.timings,o=Math.abs(r.duration),u=o*(e.currentQueryTotal-1);let
h=o*e.currentQueryIndex;switch(r.duration<0?"reverse":r.easing){case"reverse":h=u-h;break;case"full":h=n.currentStaggerTime}const
y=e.currentTimeline;h&&y.delayNextStep(h);const
w=y.currentTime;ai(this,i.animation,e),e.previousNode=i,n.currentStaggerTime=s.currentTime-w+(s.startTime-n.currentTimeline.startTime)}}const
Uu={};class
Pf{constructor(i,e,n,s,r,o,u,h){this._driver=i,this.element=e,this.subInstructions=n,this._enterClassName=s,this._leaveClassName=r,this.errors=o,this.timelines=u,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=Uu,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=h||new
zu(this._driver,e,0),u.push(this.currentTimeline)}get params(){return
this.options.params}upd
ateOptions(i,e){if(!i)return;const n=i;let
s=this.options;null!=n.duration&&(s.duration=wr(n.duration)),null!=n.delay&&(s.delay=wr(n.delay));const
r=n.params;if(r){let
o=s.params;o||(o=this.options.params={}),Object.keys(r).forEach(u=>{(!e||!o.hasOwnProperty(u))&&(o[u]=Au(r[u],o,this.errors))})}}_copyOptions(){const
i={};if(this.options){const e=this.options.params;if(e){const
n=i.params={};Object.keys(e).forEach(s=>{n[s]=e[s]})}}return
i}createSubContext(i=null,e,n){const s=e||this.element,r=new
Pf(this._driver,s,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(s,n||0));return
r.previousNode=this.previousNode,r.currentAnimateTimings=this.currentAnimateTimings,r.options=this._copyOptions(),r.updateOptions(i),r.currentQueryIndex=this.currentQueryIndex,r.currentQueryTotal=this.currentQueryTotal,r.parentContext=this,this.subContextCount++,r}transformIntoNewTimeline(i){return
this.previousNode=Uu,this.currentTimeline=thi
s.currentTimeline.fork(this.element,i),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(i,e,n){const
s={duration:null!=e?e:i.duration,delay:this.currentTimeline.currentTime+(null!=n?n:0)+i.delay,easing:""},r=new
nF(this._driver,i.element,i.keyframes,i.preStyleProps,i.postStyleProps,s,i.stretchStartingKeyframe);return
this.timelines.push(r),s}incrementTime(i){this.currentTimeline.forwardTime(this.currentTimeline.duration+i)}delayNextStep(i){i>0&&this.currentTimeline.delayNextStep(i)}invokeQuery(i,e,n,s,r,o){let
u=[];if(s&&u.push(this.element),i.length>0){i=(i=i.replace(ZP,"."+this._enterClassName)).replace(eF,"."+this._leaveClassName);let
b=this._driver.query(this.element,i,1!=n);0!==n&&(b=n<0?b.slice(b.length+n,b.length):b.slice(0,n)),u.push(...b)}return!r&&0==u.length&&o.push(function
cP(t){return new re(3014,Ze)}()),u}}class
zu{constructor(i,e,n,s){this._driver=i,this.element=e,this.startTime=n,this._elementTimelineStylesLookup=s,this.dura
tion=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(i){const
e=1==this._keyframes.size&&Object.keys(this._pendingStyles).length;this.duration||e?(this.forwardTime(this.currentTime+i),e&&this.snapshotCurrentStyles()
):this.startTime+=i}fork(i,e){return this.applyStylesToKeyframe(),new
zu(this._driver,i,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(i){this.applyStylesToKeyframe(),this.duration=i,this._loadKeyframe()}_updateStyle(i,e){this._localTimelineStyles[i]=e,this._globalTimelineStyles[i]=e,this._styleSummary[i]={time:this.currentTime,value:e}}allowOnlyTimelineStyles(){return
this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(i){i&&(this._previousKeyframe.easing=i),Object.keys(this._globalTimelineStyles).forEach(e=>{this._backFill[e]=this._globalTimelineStyles[e]||ys,this._currentKeyframe[e]=ys}),this._currentEmptyStepKeyfra
me=this._currentKeyframe}setStyles(i,e,n,s){e&&(this._previousKeyframe.easing=e);const
r=s&&s.params||{},o=function iF(t,i){const e={};let n;return
t.forEach(s=>{"*"===s?(n=n||Object.keys(i),n.forEach(r=>{e[r]=ys})):Ws(s,!1,e)}),e}(i,this._globalTimelineStyles);Object.keys(o).forEach(u=>{const
h=Au(o[u],r,n);this._pendingStyles[u]=h,this._localTimelineStyles.hasOwnProperty(u)||(this._backFill[u]=this._globalTimelineStyles.hasOwnProperty(u)?this._globalTimelineStyles[u]:ys),this._updateStyle(u,h)})}applyStylesToKeyframe(){const
i=this._pendingStyles,e=Object.keys(i);0!=e.length&&(this._pendingStyles={},e.forEach(n=>{this._currentKeyframe[n]=i[n]}),Object.keys(this._localTimelineStyles).forEach(n=>{this._currentKeyframe.hasOwnProperty(n)||(this._currentKeyframe[n]=this._localTimelineStyles[n])}))}snapshotCurrentStyles(){Object.keys(this._localTimelineStyles).forEach(i=>{const
e=this._localTimelineStyles[i];this._pendingStyles[i]=e,this._updateStyle(i,e)})}getFinalKeyframe(){return
thi
s._keyframes.get(this.duration)}get properties(){const i=[];for(let e in
this._currentKeyframe)i.push(e);return
i}mergeTimelineCollectedStyles(i){Object.keys(i._styleSummary).forEach(e=>{const
n=this._styleSummary[e],s=i._styleSummary[e];(!n||s.time>n.time)&&this._updateStyle(e,s.value)})}buildKeyframes(){this.applyStylesToKeyframe();const
i=new Set,e=new Set,n=1===this._keyframes.size&&0===this.duration;let
s=[];this._keyframes.forEach((u,h)=>{const
b=Ws(u,!0);Object.keys(b).forEach(y=>{const
w=b[y];"!"==w?i.add(y):w==ys&&e.add(y)}),n||(b.offset=h/this.duration),s.push(b)});const
r=i.size?Pu(i.values()):[],o=e.size?Pu(e.values()):[];if(n){const
u=s[0],h=Ro(u);u.offset=0,h.offset=1,s=[u,h]}return
Of(this.element,s,r,o,this.duration,this.startTime,this.easing,!1)}}class nF extends
zu{constructor(i,e,n,s,r,o,u=!1){super(i,e,o.delay),this.keyframes=n,this.preStyleProps=s,this.postStyleProps=r,this._stretchStartingKeyframe=u,this.timings={duration:o.duration,delay:o.delay,easing:o.easin
g}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let
i=this.keyframes,{delay:e,duration:n,easing:s}=this.timings;if(this._stretchStartingKeyframe&&e){const
r=[],o=n+e,u=e/o,h=Ws(i[0],!1);h.offset=0,r.push(h);const
b=Ws(i[0],!1);b.offset=Vw(u),r.push(b);const y=i.length-1;for(let w=1;w<=y;w++){let
M=Ws(i[w],!1);M.offset=Vw((e+M.offset*n)/o),r.push(M)}n=o,e=0,s="",i=r}return
Of(this.element,i,this.preStyleProps,this.postStyleProps,n,e,s,!0)}}function
Vw(t,i=3){const e=Math.pow(10,i-1);return Math.round(t*e)/e}class Ff{}class sF extends
Ff{normalizePropertyName(i,e){return Ef(i)}normalizeStyleValue(i,e,n,s){let
r="";const
o=n.toString().trim();if(rF[e]&&0!==n&&"0"!==n)if("number"==typeof
n)r="px";else{const
u=n.match(/^[+-]?[\d\.]+([a-z]*)$/);u&&0==u[1].length&&s.push(function
ZA(t,i){return new re(3005,Ze)}())}return o+r}}const rF=(()=>function oF(t){const
i={};return
t.forEach(e=>i[e]=!0),i}("width,height,minWidth,minHeight,maxWidth,maxHeight,left,top,bottom,rig
ht,fontSize,outlineWidth,outlineOffset,paddingTop,paddingLeft,paddingBottom,paddingRight,marginTop,marginLeft,marginBottom,marginRight,borderRadius,borderWidth,borderTopWidth,borderLeftWidth,borderRightWidth,borderBottomWidth,textIndent,perspective".split(",")))();function
Bw(t,i,e,n,s,r,o,u,h,b,y,w,M){return{type:0,element:t,triggerName:i,isRemovalTransition:s,fromState:e,fromStyles:r,toState:n,toStyles:o,timelines:u,queriedElements:h,preStyleProps:b,postStyleProps:y,totalTime:w,errors:M}}const
Nf={};class
Hw{constructor(i,e,n){this._triggerName=i,this.ast=e,this._stateStyles=n}match(i,e,n,s){return
function aF(t,i,e,n,s){return
t.some(r=>r(i,e,n,s))}(this.ast.matchers,i,e,n,s)}buildStyles(i,e,n){const
s=this._stateStyles["*"],r=this._stateStyles[i],o=s?s.buildStyles(e,n):{};return
r?r.buildStyles(e,n):o}build(i,e,n,s,r,o,u,h,b,y){const
w=[],M=this.ast.options&&this.ast.options.params||Nf,L=this.buildStyles(n,u&&u.params||Nf,w),O=h&&h.params||Nf,N=this.buildStyles(s,O,w),G=new
Set,
P=new Map,J=new
Map,se="void"===s,ke={params:Object.assign(Object.assign({},M),O)},mt=y?[]:Af(i,e,this.ast.animation,r,o,L,N,ke,b,w);let
Ct=0;if(mt.forEach(At=>{Ct=Math.max(At.duration+At.delay,Ct)}),w.length)return
Bw(e,this._triggerName,n,s,se,L,N,[],[],P,J,Ct,w);mt.forEach(At=>{const
hn=At.element,$o=oi(P,hn,{});At.preStyleProps.forEach($i=>$o[$i]=!0);const
ks=oi(J,hn,{});At.postStyleProps.forEach($i=>ks[$i]=!0),hn!==e&&G.add(hn)});const
Ut=Pu(G.values());return Bw(e,this._triggerName,n,s,se,L,N,mt,Ut,P,J,Ct)}}class
lF{constructor(i,e,n){this.styles=i,this.defaultParams=e,this.normalizer=n}buildStyles(i,e){const
n={},s=Ro(this.defaultParams);return Object.keys(i).forEach(r=>{const
o=i[r];null!=o&&(s[r]=o)}),this.styles.styles.forEach(r=>{if("string"!=typeof
r){const o=r;Object.keys(o).forEach(u=>{let
h=o[u];h.length>1&&(h=Au(h,s,e));const
b=this.normalizer.normalizePropertyName(u,e);h=this.normalizer.normalizeStyleValue(u,b,h,e),n[b]=h})}}),n}}class
uF{constructor(i,e,n){this.nam
e=i,this.ast=e,this._normalizer=n,this.transitionFactories=[],this.states={},e.states.forEach(s=>{this.states[s.name]=new
lF(s.style,s.options&&s.options.params||{},n)}),qw(this.states,"true","1"),qw(this.states,"false","0"),e.transitions.forEach(s=>{this.transitionFactories.push(new
Hw(i,s,this.states))}),this.fallbackTransition=function dF(t,i,e){return new
Hw(t,{type:1,animation:{type:2,steps:[],options:null},matchers:[(o,u)=>!0],options:null,queryCount:0,depCount:0},i)}(i,this.states)}get
containsQueries(){return this.ast.queryCount>0}matchTransition(i,e,n,s){return
this.transitionFactories.find(o=>o.match(i,e,n,s))||null}matchStyles(i,e,n){return
this.fallbackTransition.buildStyles(i,e,n)}}function
qw(t,i,e){t.hasOwnProperty(i)?t.hasOwnProperty(e)||(t[e]=t[i]):t.hasOwnProperty(e)&&(t[i]=t[e])}const
pF=new Gu;class
hF{constructor(i,e,n){this.bodyNode=i,this._driver=e,this._normalizer=n,this._animations={},this._playersById={},this.players=[]}register(i,e){const
n=[],r=Rf(this._d
river,e,n,[]);if(n.length)throw function gP(t){return new
re(3503,Ze)}();this._animations[i]=r}_buildPlayer(i,e,n){const
s=i.element,r=vw(0,this._normalizer,0,i.keyframes,e,n);return
this._driver.animate(s,r,i.duration,i.delay,i.easing,[],!0)}create(i,e,n={}){const
s=[],r=this._animations[i];let o;const u=new
Map;if(r?(o=Af(this._driver,e,r,Df,Eu,{},{},n,pF,s),o.forEach(y=>{const
w=oi(u,y.element,{});y.postStyleProps.forEach(M=>w[M]=null)})):(s.push(function
_P(){return new re(3300,Ze)}()),o=[]),s.length)throw function bP(t){return new
re(3504,Ze)}();u.forEach((y,w)=>{Object.keys(y).forEach(M=>{y[M]=this._driver.computeStyle(w,M,ys)})});const
b=$s(o.map(y=>{const w=u.get(y.element);return this._buildPlayer(y,{},w)}));return
this._playersById[i]=b,b.onDestroy(()=>this.destroy(i)),this.players.push(b),b}destroy(i){const
e=this._getPlayer(i);e.destroy(),delete this._playersById[i];const
n=this.players.indexOf(e);n>=0&&this.players.splice(n,1)}_getPlayer(i){const
e=this._playersById[i];
if(!e)throw function vP(t){return new re(3301,Ze)}();return e}listen(i,e,n,s){const
r=wf(e,"","","");return
Cf(this._getPlayer(i),n,r,s),()=>{}}command(i,e,n,s){if("register"==n)return
void this.register(i,s[0]);if("create"==n)return void
this.create(i,e,s[0]||{});const
r=this._getPlayer(i);switch(n){case"play":r.play();break;case"pause":r.pause();break;case"reset":r.reset();break;case"restart":r.restart();break;case"finish":r.finish();break;case"init":r.init();break;case"setPosition":r.setPosition(parseFloat(s[0]));break;case"destroy":this.destroy(i)}}}const
Gw="ng-animate-queued",Vf="ng-animate-disabled",bF=[],Uw={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},vF={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},Ti="__ng_removed";class
Bf{constructor(i,e=""){this.namespaceId=e;const
n=i&&i.hasOwnProperty("value");if(this.value=function TF(t){return
null!=t?t:null}(n?i.value:i),n){const r=Ro(i);delete r.v
alue,this.options=r}else
this.options={};this.options.params||(this.options.params={})}get params(){return
this.options.params}absorbOptions(i){const e=i.params;if(e){const
n=this.options.params;Object.keys(e).forEach(s=>{null==n[s]&&(n[s]=e[s])})}}}const
dl="void",Hf=new Bf(dl);class
CF{constructor(i,e,n){this.id=i,this.hostElement=e,this._engine=n,this.players=[],this._triggers={},this._queue=[],this._elementListeners=new
Map,this._hostClassName="ng-tns-"+i,Si(e,this._hostClassName)}listen(i,e,n,s){if(!this._triggers.hasOwnProperty(e))throw
function CP(t,i){return new re(3302,Ze)}();if(null==n||0==n.length)throw function
yP(t){return new re(3303,Ze)}();if(!function
SF(t){return"start"==t||"done"==t}(n))throw function wP(t,i){return
new re(3400,Ze)}();const
r=oi(this._elementListeners,i,[]),o={name:e,phase:n,callback:s};r.push(o);const
u=oi(this._engine.statesByElement,i,{});return
u.hasOwnProperty(e)||(Si(i,Ru),Si(i,Ru+"-"+e),u[e]=Hf),()=>{this._engine.afterFlush(()=>{const
h=r.in
dexOf(o);h>=0&&r.splice(h,1),this._triggers[e]||delete
u[e]})}}register(i,e){return!this._triggers[i]&&(this._triggers[i]=e,!0)}_getTrigger(i){const
e=this._triggers[i];if(!e)throw function TP(t){return new re(3401,Ze)}();return
e}trigger(i,e,n,s=!0){const r=this._getTrigger(e),o=new qf(this.id,e,i);let
u=this._engine.statesByElement.get(i);u||(Si(i,Ru),Si(i,Ru+"-"+e),this._engine.statesByElement.set(i,u={}));let
h=u[e];const b=new
Bf(n,this.id);if(!(n&&n.hasOwnProperty("value"))&&h&&b.absorbOptions(h.options),u[e]=b,h||(h=Hf),b.value!==dl&&h.value===b.value){if(!function
MF(t,i){const e=Object.keys(t),n=Object.keys(i);if(e.length!=n.length)return!1;for(let
s=0;s<e.length;s++){const
r=e[s];if(!i.hasOwnProperty(r)||t[r]!==i[r])return!1}return!0}(h.params,b.params)){const
O=[],N=r.matchStyles(h.value,h.params,O),G=r.matchStyles(b.value,b.params,O);O.length?this._engine.reportError(O):this._engine.afterFlush(()=>{Tr(i,N),rs(i,G)})}return}const
M=oi(this._engine.playersByElement,i,[]);M
.forEach(O=>{O.namespaceId==this.id&&O.triggerName==e&&O.queued&&O.destroy()});let
E=r.matchTransition(h.value,b.value,i,b.params),L=!1;if(!E){if(!s)return;E=r.fallbackTransition,L=!0}return
this._engine.totalQueuedPlayers++,this._queue.push({element:i,triggerName:e,transition:E,fromState:h,toState:b,player:o,isFallbackTransition:L}),L||(Si(i,Gw),o.onStart(()=>{Lo(i,Gw)})),o.onDone(()=>{let
O=this.players.indexOf(o);O>=0&&this.players.splice(O,1);const
N=this._engine.playersByElement.get(i);if(N){let
G=N.indexOf(o);G>=0&&N.splice(G,1)}}),this.players.push(o),M.push(o),o}deregister(i){delete
this._triggers[i],this._engine.statesByElement.forEach((e,n)=>{delete
e[i]}),this._elementListeners.forEach((e,n)=>{this._elementListeners.set(n,e.filter(s=>s.name!=i))})}clearElementCache(i){this._engine.statesByElement.delete(i),this._elementListeners.delete(i);const
e=this._engine.playersByElement.get(i);e&&(e.forEach(n=>n.destroy()),this._engine.playersByElement.delete(i))}_signalRemovalForIn
nerTriggers(i,e){const
n=this._engine.driver.query(i,Lu,!0);n.forEach(s=>{if(s[Ti])return;const
r=this._engine.fetchNamespacesByElement(s);r.size?r.forEach(o=>o.triggerLeaveAnimation(s,e,!1,!0)):this.clearElementCache(s)}),this._engine.afterFlushAnimationsDone(()=>n.forEach(s=>this.clearElementCache(s)))}triggerLeaveAnimation(i,e,n,s){const
r=this._engine.statesByElement.get(i),o=new Map;if(r){const
u=[];if(Object.keys(r).forEach(h=>{if(o.set(h,r[h].value),this._triggers[h]){const
b=this.trigger(i,h,dl,s);b&&u.push(b)}}),u.length)return
this._engine.markElementAsRemoved(this.id,i,!0,e,o),n&&$s(u).onDone(()=>this._engine.processLeaveNode(i)),!0}return!1}prepareLeaveAnimationListeners(i){const
e=this._elementListeners.get(i),n=this._engine.statesByElement.get(i);if(e&&n){const
s=new Set;e.forEach(r=>{const o=r.name;if(s.has(o))return;s.add(o);const
h=this._triggers[o].fallbackTransition,b=n[o]||Hf,y=new Bf(dl),w=new
qf(this.id,o,i);this._engine.totalQueuedPlayers++,this._queue.push({e
lement:i,triggerName:o,transition:h,fromState:b,toState:y,player:w,isFallbackTransition:!0})})}}removeNode(i,e){const
n=this._engine;if(i.childElementCount&&this._signalRemovalForInnerTriggers(i,e),this.triggerLeaveAnimation(i,e,!0))return;let
s=!1;if(n.totalAnimations){const
r=n.players.length?n.playersByQueriedElement.get(i):[];if(r&&r.length)s=!0;else{let
o=i;for(;o=o.parentNode;)if(n.statesByElement.get(o)){s=!0;break}}}if(this.prepareLeaveAnimationListeners(i),s)n.markElementAsRemoved(this.id,i,!1,e);else{const
r=i[Ti];(!r||r===Uw)&&(n.afterFlush(()=>this.clearElementCache(i)),n.destroyInnerAnimations(i),n._onRemovalComplete(i,e))}}insertNode(i,e){Si(i,this._hostClassName)}drainQueuedTransitions(i){const
e=[];return this._queue.forEach(n=>{const s=n.player;if(s.destroyed)return;const
r=n.element,o=this._elementListeners.get(r);o&&o.forEach(u=>{if(u.name==n.triggerName){const
h=wf(r,n.triggerName,n.fromState.value,n.toState.value);h._data=i,Cf(n.player,u.phase,h,u.callback)}}),s
.markedForDestroy?this._engine.afterFlush(()=>{s.destroy()}):e.push(n)}),this._queue=[],e.sort((n,s)=>{const
r=n.transition.ast.depCount,o=s.transition.ast.depCount;return
0==r||0==o?r-o:this._engine.driver.containsElement(n.element,s.element)?1:-1})}destroy(i){this.players.forEach(e=>e.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,i)}elementContainsData(i){let
e=!1;return
this._elementListeners.has(i)&&(e=!0),e=!!this._queue.find(n=>n.element===i)||e,e}}class
yF{constructor(i,e,n){this.bodyNode=i,this.driver=e,this._normalizer=n,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=(s,r)=>{}}_onRem
ovalComplete(i,e){this.onRemovalComplete(i,e)}get queuedPlayers(){const i=[];return
this._namespaceList.forEach(e=>{e.players.forEach(n=>{n.queued&&i.push(n)})}),i}createNamespace(i,e){const
n=new CF(i,e,this);return
this.bodyNode&&this.driver.containsElement(this.bodyNode,e)?this._balanceNamespaceList(n,e):(this.newHostElements.set(e,n),this.collectEnterElement(e)),this._namespaceLookup[i]=n}_balanceNamespaceList(i,e){const
n=this._namespaceList,s=this.namespacesByHostElement,r=n.length-1;if(r>=0){let
o=!1;if(void 0!==this.driver.getParentElement){let
u=this.driver.getParentElement(e);for(;u;){const h=s.get(u);if(h){const
b=n.indexOf(h);n.splice(b+1,0,i),o=!0;break}u=this.driver.getParentElement(u)}}else
for(let
u=r;u>=0;u--)if(this.driver.containsElement(n[u].hostElement,e)){n.splice(u+1,0,i),o=!0;break}o||n.unshift(i)}else
n.push(i);return s.set(e,i),i}register(i,e){let n=this._namespaceLookup[i];return
n||(n=this.createNamespace(i,e)),n}registerTrigger(i,e,n){let s=this._namespa
ceLookup[i];s&&s.register(e,n)&&this.totalAnimations++}destroy(i,e){if(!i)return;const
n=this._fetchNamespace(i);this.afterFlush(()=>{this.namespacesByHostElement.delete(n.hostElement),delete
this._namespaceLookup[i];const
s=this._namespaceList.indexOf(n);s>=0&&this._namespaceList.splice(s,1)}),this.afterFlushAnimationsDone(()=>n.destroy(e))}_fetchNamespace(i){return
this._namespaceLookup[i]}fetchNamespacesByElement(i){const e=new
Set,n=this.statesByElement.get(i);if(n){const s=Object.keys(n);for(let
r=0;r<s.length;r++){const o=n[s[r]].namespaceId;if(o){const
u=this._fetchNamespace(o);u&&e.add(u)}}}return e}trigger(i,e,n,s){if(ju(e)){const
r=this._fetchNamespace(i);if(r)return
r.trigger(e,n,s),!0}return!1}insertNode(i,e,n,s){if(!ju(e))return;const
r=e[Ti];if(r&&r.setForRemoval){r.setForRemoval=!1,r.setForMove=!0;const
o=this.collectedLeaveElements.indexOf(e);o>=0&&this.collectedLeaveElements.splice(o,1)}if(i){const
o=this._fetchNamespace(i);o&&o.insertNode(e,n)}s&&this.collectEnterE
lement(e)}collectEnterElement(i){this.collectedEnterElements.push(i)}markElementAsDisabled(i,e){e?this.disabledNodes.has(i)||(this.disabledNodes.add(i),Si(i,Vf)):this.disabledNodes.has(i)&&(this.disabledNodes.delete(i),Lo(i,Vf))}removeNode(i,e,n,s){if(ju(e)){const
r=i?this._fetchNamespace(i):null;if(r?r.removeNode(e,s):this.markElementAsRemoved(i,e,!1,s),n){const
o=this.namespacesByHostElement.get(e);o&&o.id!==i&&o.removeNode(e,s)}}else
this._onRemovalComplete(e,s)}markElementAsRemoved(i,e,n,s,r){this.collectedLeaveElements.push(e),e[Ti]={namespaceId:i,setForRemoval:s,hasAnimation:n,removedBeforeQueried:!1,previousTriggersValues:r}}listen(i,e,n,s,r){return
ju(e)?this._fetchNamespace(i).listen(e,n,s,r):()=>{}}_buildInstruction(i,e,n,s,r){return
i.transition.build(this.driver,i.element,i.fromState.value,i.toState.value,n,s,i.fromState.options,i.toState.options,e,r)}destroyInnerAnimations(i){let
e=this.driver.query(i,Lu,!0);e.forEach(n=>this.destroyActiveAnimationsForElement(n)),0!=thi
s.playersByQueriedElement.size&&(e=this.driver.query(i,Mf,!0),e.forEach(n=>this.finishActiveQueriedAnimationOnElement(n)))}destroyActiveAnimationsForElement(i){const
e=this.playersByElement.get(i);e&&e.forEach(n=>{n.queued?n.markedForDestroy=!0:n.destroy()})}finishActiveQueriedAnimationOnElement(i){const
e=this.playersByQueriedElement.get(i);e&&e.forEach(n=>n.finish())}whenRenderingDone(){return
new Promise(i=>{if(this.players.length)return
$s(this.players).onDone(()=>i());i()})}processLeaveNode(i){var e;const
n=i[Ti];if(n&&n.setForRemoval){if(i[Ti]=Uw,n.namespaceId){this.destroyInnerAnimations(i);const
s=this._fetchNamespace(n.namespaceId);s&&s.clearElementCache(i)}this._onRemovalComplete(i,n.setForRemoval)}(null===(e=i.classList)||void
0===e?void
0:e.contains(Vf))&&this.markElementAsDisabled(i,!1),this.driver.query(i,".ng-animate-disabled",!0).forEach(s=>{this.markElementAsDisabled(s,!1)})}flush(i=-1){let
e=[];if(this.newHostElements.size&&(this.newHostElements.forEach((n,s)=>this
._balanceNamespaceList(n,s)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let
n=0;n<this.collectedEnterElements.length;n++)Si(this.collectedEnterElements[n],"ng-star-inserted");if(this._namespaceList.length&&(this.totalQueuedPlayers||this.collectedLeaveElements.length)){const
n=[];try{e=this._flushAnimations(n,i)}finally{for(let s=0;s<n.length;s++)n[s]()}}else
for(let
n=0;n<this.collectedLeaveElements.length;n++)this.processLeaveNode(this.collectedLeaveElements[n]);if(this.totalQueuedPlayers=0,this.collectedEnterElements.length=0,this.collectedLeaveElements.length=0,this._flushFns.forEach(n=>n()),this._flushFns=[],this._whenQuietFns.length){const
n=this._whenQuietFns;this._whenQuietFns=[],e.length?$s(e).onDone(()=>{n.forEach(s=>s())}):n.forEach(s=>s())}}reportError(i){throw
function SP(t){return new re(3402,Ze)}()}_flushAnimations(i,e){const n=new Gu,s=[],r=new
Map,o=[],u=new Map,h=new Map,b=new Map,y=new Set;this.disabledNodes.forEach(a
e=>{y.add(ae);const fe=this.driver.query(ae,".ng-animate-queued",!0);for(let
Se=0;Se<fe.length;Se++)y.add(fe[Se])});const
w=this.bodyNode,M=Array.from(this.statesByElement.keys()),E=$w(M,this.collectedEnterElements),L=new
Map;let O=0;E.forEach((ae,fe)=>{const
Se=Df+O++;L.set(fe,Se),ae.forEach(ot=>Si(ot,Se))});const N=[],G=new Set,P=new
Set;for(let ae=0;ae<this.collectedLeaveElements.length;ae++){const
fe=this.collectedLeaveElements[ae],Se=fe[Ti];Se&&Se.setForRemoval&&(N.push(fe),G.add(fe),Se.hasAnimation?this.driver.query(fe,".ng-star-inserted",!0).forEach(ot=>G.add(ot)):P.add(fe))}const
J=new Map,se=$w(M,Array.from(G));se.forEach((ae,fe)=>{const
Se=Eu+O++;J.set(fe,Se),ae.forEach(ot=>Si(ot,Se))}),i.push(()=>{E.forEach((ae,fe)=>{const
Se=L.get(fe);ae.forEach(ot=>Lo(ot,Se))}),se.forEach((ae,fe)=>{const
Se=J.get(fe);ae.forEach(ot=>Lo(ot,Se))}),N.forEach(ae=>{this.processLeaveNode(ae)})});const
ke=[],mt=[];for(let
ae=this._namespaceList.length-1;ae>=0;ae--)this._namespaceList[ae].drainQ
ueuedTransitions(e).forEach(Se=>{const
ot=Se.player,Cn=Se.element;if(ke.push(ot),this.collectedEnterElements.length){const
$n=Cn[Ti];if($n&&$n.setForMove){if($n.previousTriggersValues&&$n.previousTriggersValues.has(Se.triggerName)){const
Pr=$n.previousTriggersValues.get(Se.triggerName),tr=this.statesByElement.get(Se.element);tr&&tr[Se.triggerName]&&(tr[Se.triggerName].value=Pr)}return
void ot.destroy()}}const
us=!w||!this.driver.containsElement(w,Cn),ui=J.get(Cn),er=L.get(Cn),zt=this._buildInstruction(Se,n,er,ui,us);if(zt.errors&&zt.errors.length)return
void mt.push(zt);if(us)return
ot.onStart(()=>Tr(Cn,zt.fromStyles)),ot.onDestroy(()=>rs(Cn,zt.toStyles)),void
s.push(ot);if(Se.isFallbackTransition)return
ot.onStart(()=>Tr(Cn,zt.fromStyles)),ot.onDestroy(()=>rs(Cn,zt.toStyles)),void
s.push(ot);const
AS=[];zt.timelines.forEach($n=>{$n.stretchStartingKeyframe=!0,this.disabledNodes.has($n.element)||AS.push($n)}),zt.timelines=AS,n.append(Cn,zt.timelines),o.push({instruction:zt,player:ot,
element:Cn}),zt.queriedElements.forEach($n=>oi(u,$n,[]).push(ot)),zt.preStyleProps.forEach(($n,Pr)=>{const
tr=Object.keys($n);if(tr.length){let Fr=h.get(Pr);Fr||h.set(Pr,Fr=new
Set),tr.forEach(xg=>Fr.add(xg))}}),zt.postStyleProps.forEach(($n,Pr)=>{const
tr=Object.keys($n);let Fr=b.get(Pr);Fr||b.set(Pr,Fr=new
Set),tr.forEach(xg=>Fr.add(xg))})});if(mt.length){const
ae=[];mt.forEach(fe=>{ae.push(function xP(t,i){return new
re(3505,Ze)}())}),ke.forEach(fe=>fe.destroy()),this.reportError(ae)}const Ct=new
Map,Ut=new Map;o.forEach(ae=>{const
fe=ae.element;n.has(fe)&&(Ut.set(fe,fe),this._beforeAnimationBuild(ae.player.namespaceId,ae.instruction,Ct))}),s.forEach(ae=>{const
fe=ae.element;this._getPreviousPlayers(fe,!1,ae.namespaceId,ae.triggerName,null).forEach(ot=>{oi(Ct,fe,[]).push(ot),ot.destroy()})});const
At=N.filter(ae=>Kw(ae,h,b)),hn=new
Map;jw(hn,this.driver,P,b,ys).forEach(ae=>{Kw(ae,h,b)&&At.push(ae)});const
ks=new Map;E.forEach((ae,fe)=>{jw(ks,this.driver,new Set(ae),h,"!")}),At.fo
rEach(ae=>{const
fe=hn.get(ae),Se=ks.get(ae);hn.set(ae,Object.assign(Object.assign({},fe),Se))});const
$i=[],Wo=[],Ko={};o.forEach(ae=>{const{element:fe,player:Se,instruction:ot}=ae;if(n.has(fe)){if(y.has(fe))return
Se.onDestroy(()=>rs(fe,ot.toStyles)),Se.disabled=!0,Se.overrideTotalTime(ot.totalTime),void
s.push(Se);let Cn=Ko;if(Ut.size>1){let ui=fe;const er=[];for(;ui=ui.parentNode;){const
zt=Ut.get(ui);if(zt){Cn=zt;break}er.push(ui)}er.forEach(zt=>Ut.set(zt,Cn))}const
us=this._buildAnimation(Se.namespaceId,ot,Ct,r,ks,hn);if(Se.setRealPlayer(us),Cn===Ko)$i.push(Se);else{const
ui=this.playersByElement.get(Cn);ui&&ui.length&&(Se.parentPlayer=$s(ui)),s.push(Se)}}else
Tr(fe,ot.fromStyles),Se.onDestroy(()=>rs(fe,ot.toStyles)),Wo.push(Se),y.has(fe)&&s.push(Se)}),Wo.forEach(ae=>{const
fe=r.get(ae.element);if(fe&&fe.length){const
Se=$s(fe);ae.setRealPlayer(Se)}}),s.forEach(ae=>{ae.parentPlayer?ae.syncPlayerEvents(ae.parentPlayer):ae.destroy()});for(let
ae=0;ae<N.length;ae++){const fe=N[ae
],Se=fe[Ti];if(Lo(fe,Eu),Se&&Se.hasAnimation)continue;let ot=[];if(u.size){let
us=u.get(fe);us&&us.length&&ot.push(...us);let
ui=this.driver.query(fe,Mf,!0);for(let er=0;er<ui.length;er++){let
zt=u.get(ui[er]);zt&&zt.length&&ot.push(...zt)}}const
Cn=ot.filter(us=>!us.destroyed);Cn.length?xF(this,fe,Cn):this.processLeaveNode(fe)}return
N.length=0,$i.forEach(ae=>{this.players.push(ae),ae.onDone(()=>{ae.destroy();const
fe=this.players.indexOf(ae);this.players.splice(fe,1)}),ae.play()}),$i}elementContainsData(i,e){let
n=!1;const s=e[Ti];return
s&&s.setForRemoval&&(n=!0),this.playersByElement.has(e)&&(n=!0),this.playersByQueriedElement.has(e)&&(n=!0),this.statesByElement.has(e)&&(n=!0),this._fetchNamespace(i).elementContainsData(e)||n}afterFlush(i){this._flushFns.push(i)}afterFlushAnimationsDone(i){this._whenQuietFns.push(i)}_getPreviousPlayers(i,e,n,s,r){let
o=[];if(e){const u=this.playersByQueriedElement.get(i);u&&(o=u)}else{const
u=this.playersByElement.get(i);if(u){const h=!r||r==dl;
u.forEach(b=>{b.queued||!h&&b.triggerName!=s||o.push(b)})}}return(n||s)&&(o=o.filter(u=>!(n&&n!=u.namespaceId||s&&s!=u.triggerName))),o}_beforeAnimationBuild(i,e,n){const
r=e.element,o=e.isRemovalTransition?void 0:i,u=e.isRemovalTransition?void
0:e.triggerName;for(const h of e.timelines){const
b=h.element,y=b!==r,w=oi(n,b,[]);this._getPreviousPlayers(b,y,o,u,e.toState).forEach(E=>{const
L=E.getRealPlayer();L.beforeDestroy&&L.beforeDestroy(),E.destroy(),w.push(E)})}Tr(r,e.fromStyles)}_buildAnimation(i,e,n,s,r,o){const
u=e.triggerName,h=e.element,b=[],y=new Set,w=new Set,M=e.timelines.map(L=>{const
O=L.element;y.add(O);const N=O[Ti];if(N&&N.removedBeforeQueried)return new
cl(L.duration,L.delay);const G=O!==h,P=function DF(t){const i=[];return
Ww(t,i),i}((n.get(O)||bF).map(Ct=>Ct.getRealPlayer())).filter(Ct=>!!Ct.element&&Ct.element===O),J=r.get(O),se=o.get(O),ke=vw(0,this._normalizer,0,L.keyframes,J,se),mt=this._buildPlayer(L,ke,P);if(L.subTimeline&&s&&w.add(O),G){const
Ct=new qf(i,u,
O);Ct.setRealPlayer(mt),b.push(Ct)}return
mt});b.forEach(L=>{oi(this.playersByQueriedElement,L.element,[]).push(L),L.onDone(()=>function
wF(t,i,e){let n;if(t instanceof Map){if(n=t.get(i),n){if(n.length){const
s=n.indexOf(e);n.splice(s,1)}0==n.length&&t.delete(i)}}else
if(n=t[i],n){if(n.length){const s=n.indexOf(e);n.splice(s,1)}0==n.length&&delete
t[i]}return
n}(this.playersByQueriedElement,L.element,L))}),y.forEach(L=>Si(L,Iw));const
E=$s(M);return
E.onDestroy(()=>{y.forEach(L=>Lo(L,Iw)),rs(h,e.toStyles)}),w.forEach(L=>{oi(s,L,[]).push(E)}),E}_buildPlayer(i,e,n){return
e.length>0?this.driver.animate(i.element,e,i.duration,i.delay,i.easing,n):new
cl(i.duration,i.delay)}}class
qf{constructor(i,e,n){this.namespaceId=i,this.triggerName=e,this.element=n,this._player=new
cl,this._containsRealPlayer=!1,this._queuedCallbacks={},this.destroyed=!1,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}setRealPlayer(i){this._containsRealPlayer||(this._player=i,Object.keys(
this._queuedCallbacks).forEach(e=>{this._queuedCallbacks[e].forEach(n=>Cf(i,e,void
0,n))}),this._queuedCallbacks={},this._containsRealPlayer=!0,this.overrideTotalTime(i.totalTime),this.queued=!1)}getRealPlayer(){return
this._player}overrideTotalTime(i){this.totalTime=i}syncPlayerEvents(i){const
e=this._player;e.triggerCallback&&i.onStart(()=>e.triggerCallback("start")),i.onDone(()=>this.finish()),i.onDestroy(()=>this.destroy())}_queueEvent(i,e){oi(this._queuedCallbacks,i,[]).push(e)}onDone(i){this.queued&&this._queueEvent("done",i),this._player.onDone(i)}onStart(i){this.queued&&this._queueEvent("start",i),this._player.onStart(i)}onDestroy(i){this.queued&&this._queueEvent("destroy",i),this._player.onDestroy(i)}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,th
is._player.destroy()}reset(){!this.queued&&this._player.reset()}setPosition(i){this.queued||this._player.setPosition(i)}getPosition(){return
this.queued?0:this._player.getPosition()}triggerCallback(i){const
e=this._player;e.triggerCallback&&e.triggerCallback(i)}}function ju(t){return
t&&1===t.nodeType}function zw(t,i){const e=t.style.display;return
t.style.display=null!=i?i:"none",e}function jw(t,i,e,n,s){const
r=[];e.forEach(h=>r.push(zw(h)));const o=[];n.forEach((h,b)=>{const
y={};h.forEach(w=>{const
M=y[w]=i.computeStyle(b,w,s);(!M||0==M.length)&&(b[Ti]=vF,o.push(b))}),t.set(b,y)});let
u=0;return e.forEach(h=>zw(h,r[u++])),o}function $w(t,i){const e=new
Map;if(t.forEach(u=>e.set(u,[])),0==i.length)return e;const s=new Set(i),r=new
Map;function o(u){if(!u)return 1;let h=r.get(u);if(h)return h;const b=u.parentNode;return
h=e.has(b)?b:s.has(b)?1:o(b),r.set(u,h),h}return i.forEach(u=>{const
h=o(u);1!==h&&e.get(h).push(u)}),e}function Si(t,i){var
e;null===(e=t.classList)||void 0===e||
e.add(i)}function Lo(t,i){var e;null===(e=t.classList)||void 0===e||e.remove(i)}function
xF(t,i,e){$s(e).onDone(()=>t.processLeaveNode(i))}function Ww(t,i){for(let
e=0;e<t.length;e++){const n=t[e];n instanceof _w?Ww(n.players,i):i.push(n)}}function
Kw(t,i,e){const n=e.get(t);if(!n)return!1;let s=i.get(t);return
s?n.forEach(r=>s.add(r)):i.set(t,n),e.delete(t),!0}class
$u{constructor(i,e,n){this.bodyNode=i,this._driver=e,this._normalizer=n,this._triggerCache={},this.onRemovalComplete=(s,r)=>{},this._transitionEngine=new
yF(i,e,n),this._timelineEngine=new
hF(i,e,n),this._transitionEngine.onRemovalComplete=(s,r)=>this.onRemovalComplete(s,r)}registerTrigger(i,e,n,s,r){const
o=i+"-"+s;let u=this._triggerCache[o];if(!u){const
h=[],y=Rf(this._driver,r,h,[]);if(h.length)throw function mP(t,i){return new
re(3404,Ze)}();u=function cF(t,i,e){return new
uF(t,i,e)}(s,y,this._normalizer),this._triggerCache[o]=u}this._transitionEngine.registerTrigger(e,s,u)}register(i,e){this._transitionEngine.regi
ster(i,e)}destroy(i,e){this._transitionEngine.destroy(i,e)}onInsert(i,e,n,s){this._transitionEngine.insertNode(i,e,n,s)}onRemove(i,e,n,s){this._transitionEngine.removeNode(i,e,s||!1,n)}disableAnimations(i,e){this._transitionEngine.markElementAsDisabled(i,e)}process(i,e,n,s){if("(a)"==n.charAt(0)){const[r,o]=Cw(n);this._timelineEngine.command(r,e,o,s)}else
this._transitionEngine.trigger(i,e,n,s)}listen(i,e,n,s,r){if("(a)"==n.charAt(0)){const[o,u]=Cw(n);return
this._timelineEngine.listen(o,e,u,r)}return
this._transitionEngine.listen(i,e,n,s,r)}flush(i=-1){this._transitionEngine.flush(i)}get
players(){return
this._transitionEngine.players.concat(this._timelineEngine.players)}whenRenderingDone(){return
this._transitionEngine.whenRenderingDone()}}let IF=(()=>{class
t{constructor(e,n,s){this._element=e,this._startStyles=n,this._endStyles=s,this._state=0;let
r=t.initialStylesByElement.get(e);r||t.initialStylesByElement.set(e,r={}),this._initialStyles=r}start(){this._state<1&&(this._startStyles
&&rs(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(rs(this._element,this._initialStyles),this._endStyles&&(rs(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(t.initialStylesByElement.delete(this._element),this._startStyles&&(Tr(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(Tr(this._element,this._endStyles),this._endStyles=null),rs(this._element,this._initialStyles),this._state=3)}}return
t.initialStylesByElement=new WeakMap,t})();function Gf(t){let i=null;const
e=Object.keys(t);for(let n=0;n<e.length;n++){const
s=e[n];EF(s)&&(i=i||{},i[s]=t[s])}return i}function
EF(t){return"display"===t||"position"===t}class
Qw{constructor(i,e,n,s){this.element=i,this.keyframes=e,this.options=n,this._specialStyles=s,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=n.duration,this._delay=n.delay||0,this.time=this._duration+this._delay}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(i=>i()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;const
i=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,i,this.options),this._finalKeyframe=i.length?i[i.length-1]:{},this.domPlayer.addEventListener("finish",()=>this._onFinish())}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_triggerWebAnimation(i,e,n){return
i.animate(e,n)}onStart(i){this._onStartFns.push(i)}onDone(i){this._onDoneFns.push(i)}onDestroy(i){this._onDestroyFns.push(i)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(i=>i()),this._onStartFns=[],this._started=!0,this._specialStyles&&this._specialStyles.start()),this.domPlaye
r.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(i=>i()),this._onDestroyFns=[])}setPosition(i){void
0===this.domPlayer&&this.init(),this.domPlayer.currentTime=i*this.time}getPosition(){return
this.domPlayer.currentTime/this.time}get totalTime(){return
this._delay+this._duration}beforeDestroy(){const i={};if(this.hasStarted()){const
e=this._finalKeyframe;Object.keys(e).forEach(n=>{"offset"!=n&&(i[n]=this._finished?e[n]:Aw(this.element,n))})}this.currentSnapshot=i}triggerCallback(i){cons
t
e="start"==i?this._onStartFns:this._onDoneFns;e.forEach(n=>n()),e.length=0}}class
RF{validateStyleProperty(i){return
Sw(i)}matchesElement(i,e){return!1}containsElement(i,e){return
xw(i,e)}getParentElement(i){return Sf(i)}query(i,e,n){return
Dw(i,e,n)}computeStyle(i,e,n){return
window.getComputedStyle(i)[e]}animate(i,e,n,s,r,o=[]){const
h={duration:n,delay:s,fill:0==s?"both":"forwards"};r&&(h.easing=r);const
b={},y=o.filter(M=>M instanceof Qw);(function PP(t,i){return
0===t||0===i})(n,s)&&y.forEach(M=>{let
E=M.currentSnapshot;Object.keys(E).forEach(L=>b[L]=E[L])}),e=function FP(t,i,e){const
n=Object.keys(e);if(n.length&&i.length){let
r=i[0],o=[];if(n.forEach(u=>{r.hasOwnProperty(u)||o.push(u),r[u]=e[u]}),o.length)for(var
s=1;s<i.length;s++){let u=i[s];o.forEach(function(h){u[h]=Aw(t,h)})}}return
i}(i,e=e.map(M=>Ws(M,!1)),b);const w=function kF(t,i){let e=null,n=null;return
Array.isArray(i)&&i.length?(e=Gf(i[0]),i.length>1&&(n=Gf(i[i.length-1]))):i&&(e=Gf(i)),e||n?new
IF(t,e,n):null
}(i,e);return new Qw(i,e,h,w)}}let LF=(()=>{class t extends
hw{constructor(e,n){super(),this._nextAnimationId=0,this._renderer=e.createRenderer(n.body,{id:"0",encapsulation:ki.None,styles:[],data:{animation:[]}})}build(e){const
n=this._nextAnimationId.toString();this._nextAnimationId++;const
s=Array.isArray(e)?mw(e):e;return Jw(this._renderer,null,n,"register",[s]),new
OF(n,this._renderer)}}return t.\u0275fac=function(e){return
new(e||t)(K(Ba),K(Xt))},t.\u0275prov=X({token:t,factory:t.\u0275fac}),t})();class OF
extends class zA{}{constructor(i,e){super(),this._id=i,this._renderer=e}create(i,e){return
new AF(this._id,i,e||{},this._renderer)}}class
AF{constructor(i,e,n,s){this.id=i,this.element=e,this._renderer=s,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",n)}_listen(i,e){return
this._renderer.listen(this.element,`@@${this.id}:${i}`,e)}_command(i,...e){return
Jw(this._renderer,this.element,this.id,i,e)}onDone(i){this._listen("done",i)}onStart(i){thi
s._listen("start",i)}onDestroy(i){this._listen("destroy",i)}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(i){this._command("setPosition",i)}getPosition(){var
i,e;return null!==(e=null===(i=this._renderer.engine.players[+this.id])||void 0===i?void
0:i.getPosition())&&void 0!==e?e:0}}function Jw(t,i,e,n,s){return
t.setProperty(i,`@@${e}:${n}`,s)}const Yw="@.disabled";let PF=(()=>{class
t{constructor(e,n,s){this.delegate=e,this.engine=n,this._zone=s,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new
Map,this._cdRecurDepth=0,this.promise=Promise.resolve(0),n.onRemovalComplete=(r,o)=>{const
u=null==o?void 0:o.parentNode(r);u&&o.removeChild(u,r)}}createRenderer(e,n){const
r=this.delegate.crea
teRenderer(e,n);if(!(e&&n&&n.data&&n.data.animation)){let
y=this._rendererCache.get(r);return y||(y=new
Zw("",r,this.engine),this._rendererCache.set(r,y)),y}const
o=n.id,u=n.id+"-"+this._currentId;this._currentId++,this.engine.register(u,e);const
h=y=>{Array.isArray(y)?y.forEach(h):this.engine.registerTrigger(o,u,e,y.name,y)};return
n.data.animation.forEach(h),new
FF(this,u,r,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){this.promise.then(()=>{this._microtaskId++})}scheduleListenerCallback(e,n,s){e>=0&&e<this._microtaskId?this._zone.run(()=>n(s)):(0==this._animationCallbacksBuffer.length&&Promise.resolve(null).then(()=>{this._zone.run(()=>{this._animationCallbacksBuffer.forEach(r=>{const[o,u]=r;o(u)}),this._animationCallbacksBuffer=[]})}),this._animationCallbacksBuffer.push([n,s]))}end(){this._cdRecurDepth--,0==this._cdRecurDepth&&this._zone.runOutsideAngular(()=>{this._scheduleCountTask(),this.engine.flush(this._microtaskI
d)}),this.delegate.end&&this.delegate.end()}whenRenderingDone(){return
this.engine.whenRenderingDone()}}return t.\u0275fac=function(e){return
new(e||t)(K(Ba),K($u),K(nt))},t.\u0275prov=X({token:t,factory:t.\u0275fac}),t})();class
Zw{constructor(i,e,n){this.namespaceId=i,this.delegate=e,this.engine=n,this.destroyNode=this.delegate.destroyNode?s=>e.destroyNode(s):null}get
data(){return
this.delegate.data}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.delegate.destroy()}createElement(i,e){return
this.delegate.createElement(i,e)}createComment(i){return
this.delegate.createComment(i)}createText(i){return
this.delegate.createText(i)}appendChild(i,e){this.delegate.appendChild(i,e),this.engine.onInsert(this.namespaceId,e,i,!1)}insertBefore(i,e,n,s=!0){this.delegate.insertBefore(i,e,n),this.engine.onInsert(this.namespaceId,e,i,s)}removeChild(i,e,n){this.engine.onRemove(this.namespaceId,e,this.delegate,n)}selectRootElement(i,e){return
this.delegate.selectRootElement(i,e)}p
arentNode(i){return this.delegate.parentNode(i)}nextSibling(i){return
this.delegate.nextSibling(i)}setAttribute(i,e,n,s){this.delegate.setAttribute(i,e,n,s)}removeAttribute(i,e,n){this.delegate.removeAttribute(i,e,n)}addClass(i,e){this.delegate.addClass(i,e)}removeClass(i,e){this.delegate.removeClass(i,e)}setStyle(i,e,n,s){this.delegate.setStyle(i,e,n,s)}removeStyle(i,e,n){this.delegate.removeStyle(i,e,n)}setProperty(i,e,n){"@"==e.charAt(0)&&e==Yw?this.disableAnimations(i,!!n):this.delegate.setProperty(i,e,n)}setValue(i,e){this.delegate.setValue(i,e)}listen(i,e,n){return
this.delegate.listen(i,e,n)}disableAnimations(i,e){this.engine.disableAnimations(i,e)}}class
FF extends
Zw{constructor(i,e,n,s){super(e,n,s),this.factory=i,this.namespaceId=e}setProperty(i,e,n){"(a)"==e.charAt(0)?"."==e.charAt(1)&&e==Yw?this.disableAnimations(i,n=void
0===n||!!n):this.engine.process(this.namespaceId,i,e.substr(1),n):this.delegate.setProperty(i,e,n)}listen(i,e,n){if("@"==e.charAt(0)){const
s=function N
F(t){switch(t){case"body":return document.body;case"document":return
document;case"window":return window;default:return t}}(i);let
r=e.substr(1),o="";return"(a)"!=r.charAt(0)&&([r,o]=function
VF(t){const
i=t.indexOf(".");return[t.substring(0,i),t.substr(i+1)]}(r)),this.engine.listen(this.namespaceId,s,r,o,u=>{this.factory.scheduleListenerCallback(u._data||-1,n,u)})}return
this.delegate.listen(i,e,n)}}let BF=(()=>{class t extends
$u{constructor(e,n,s){super(e.body,n,s)}ngOnDestroy(){this.flush()}}return
t.\u0275fac=function(e){return
new(e||t)(K(Xt),K(xf),K(Ff))},t.\u0275prov=X({token:t,factory:t.\u0275fac}),t})();const
Xw=new
be("AnimationModuleType"),eT=[{provide:hw,useClass:LF},{provide:Ff,useFactory:function
HF(){return new sF}},{provide:$u,useClass:BF},{provide:Ba,useFactory:function
qF(t,i,e){return new PF(t,i,e)},deps:[ru,$u,nt]}],tT=[{provide:xf,useFactory:()=>new
RF},{provide:Xw,useValue:"BrowserAnimations"},...eT],GF=[{provide:xf,useClass:Mw},{provide:Xw,useValue:"NoopAnimati
ons"},...eT];let UF=(()=>{class t{static
withConfig(e){return{ngModule:t,providers:e.disableAnimations?GF:tT}}}return
t.\u0275fac=function(e){return
new(e||t)},t.\u0275mod=he({type:t}),t.\u0275inj=ue({providers:tT,imports:[qy]}),t})();class
Z{static equals(i,e,n){return
n?this.resolveFieldData(i,n)===this.resolveFieldData(e,n):this.equalsByValue(i,e)}static
equalsByValue(i,e){if(i===e)return!0;if(i&&e&&"object"==typeof
i&&"object"==typeof e){var
r,o,u,n=Array.isArray(i),s=Array.isArray(e);if(n&&s){if((o=i.length)!=e.length)return!1;for(r=o;0!=r--;)if(!this.equalsByValue(i[r],e[r]))return!1;return!0}if(n!=s)return!1;var
h=i instanceof Date,b=e instanceof Date;if(h!=b)return!1;if(h&&b)return
i.getTime()==e.getTime();var y=i instanceof RegExp,w=e instanceof
RegExp;if(y!=w)return!1;if(y&&w)return i.toString()==e.toString();var
M=Object.keys(i);if((o=M.length)!==Object.keys(e).length)return!1;for(r=o;0!=r--;)if(!Object.prototype.hasOwnProperty.call(e,M[r]))return!1;for(r=o;0!=r--;)if(!th
is.equalsByValue(i[u=M[r]],e[u]))return!1;return!0}return i!=i&&e!=e}static
resolveFieldData(i,e){if(i&&e){if(this.isFunction(e))return
e(i);if(-1==e.indexOf("."))return i[e];{let n=e.split("."),s=i;for(let
r=0,o=n.length;r<o;++r){if(null==s)return null;s=s[n[r]]}return s}}return null}static
isFunction(i){return!!(i&&i.constructor&&i.call&&i.apply)}static
reorderArray(i,e,n){i&&e!==n&&(n>=i.length&&(n%=i.length,e%=i.length),i.splice(n,0,i.splice(e,1)[0]))}static
insertIntoOrderedArray(i,e,n,s){if(n.length>0){let r=!1;for(let
o=0;o<n.length;o++)if(this.findIndexInList(n[o],s)>e){n.splice(o,0,i),r=!0;break}r||n.push(i)}else
n.push(i)}static findIndexInList(i,e){let n=-1;if(e)for(let
s=0;s<e.length;s++)if(e[s]==i){n=s;break}return n}static
contains(i,e){if(null!=i&&e&&e.length)for(let n of
e)if(this.equals(i,n))return!0;return!1}static removeAccents(i){return
i&&i.search(/[\xC0-\xFF]/g)>-1&&(i=i.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")),i}static
isEmpty(i){return null==i||""===i||Array.isArray(i)&&0===i.length||!(i
instanceof Date)&&"object"==typeof
i&&0===Object.keys(i).length}static isNotEmpty(i){return!this.isEmpty(i)}}var
nT=0;function pl(){return"pr_id_"+ ++nT}var dt=function zF(){let t=[];const
s=r=>r&&parseInt(r.style.zIndex,10)||0;return{get:s,set:(r,o,u)=>{o&&(o.style.zIndex=String(((r,o)=>{let
u=t.length>0?t[t.length-1]:{key:r,value:o},h=u.value+(u.key===r?0:o)+1;return
t.push({key:r,value:h}),h})(r,u)))},clear:r=>{r&&((r=>{t=t.filter(o=>o.value!==r)})(s(r)
),r.style.zIndex="")},getCurrent:()=>t.length>0?t[t.length-1].value:0}}();const
iT=["*"];let _t=(()=>{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.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})(),zn=(()=>{class
t{constructor(){this.ripple=!1,this.filterMatchModeOptions={text:[_t.STARTS_WITH,_t.CONTAINS,_t.NOT_CONTAINS,_t.ENDS_WITH,_t.EQUALS,_t.NOT_EQUALS],numeric:[_t.EQUALS,_t.NOT_EQUALS,_t.LESS_THAN,_t.LESS_THAN_OR_EQUAL_TO,_t.GREATER_THAN,_t.GREATER_THAN_OR_EQUAL_TO],date:[_t.DATE_IS,_t.DATE_IS_NOT,_t.DATE_BEFORE,_t.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:1e3,tooltip:1100},this.translationSource=new
ct,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=X({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),Ft=(()=>{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.A
CCEPT="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="dayNamesMin",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})(),hl=(()=>{class
t{constructor(){this.filters={startsWith:(e,n,s)=>{if(null==n||""===n.trim())return!0;if(null==e)return!1;let
r=Z.removeAccents(n.toString()).toLocaleLowerCase(s);return
Z.removeAccents(e.toString()).toLocaleLowerCase(s).slice(0,r.length)===r},contains:(e,n,s)=>{if(null==n||"string"==typeof
n&&""===n.trim())return!0;if(null==e)return!1;let
r=Z.removeAccents(n.toString()).toLocaleLowerCase(s);return-1!==Z.removeAccents(e.toString()).toLocaleLowerCase(s).indexOf(r)},notContains:(e,n,s)=>{if(nul
l==n||"string"==typeof
n&&""===n.trim())return!0;if(null==e)return!1;let
r=Z.removeAccents(n.toString()).toLocaleLowerCase(s);return-1===Z.removeAccents(e.toString()).toLocaleLowerCase(s).indexOf(r)},endsWith:(e,n,s)=>{if(null==n||""===n.trim())return!0;if(null==e)return!1;let
r=Z.removeAccents(n.toString()).toLocaleLowerCase(s),o=Z.removeAccents(e.toString()).toLocaleLowerCase(s);return-1!==o.indexOf(r,o.length-r.length)},equals:(e,n,s)=>null==n||"string"==typeof
n&&""===n.trim()||null!=e&&(e.getTime&&n.getTime?e.getTime()===n.getTime():Z.removeAccents(e.toString()).toLocaleLowerCase(s)==Z.removeAccents(n.toString()).toLocaleLowerCase(s)),notEquals:(e,n,s)=>!(null==n||"string"==typeof
n&&""===n.trim()||null!=e&&(e.getTime&&n.getTime?e.getTime()===n.getTime():Z.removeAccents(e.toString()).toLocaleLowerCase(s)==Z.removeAccents(n.toString()).toLocaleLowerCase(s))),in:(e,n)=>{if(null==n||0===n.length)return!0;for(let
s=0;s<n.length;s++)if(Z.equals(e,n[s]))return!0;return!1},between:(e,
n)=>null==n||null==n[0]||null==n[1]||null!=e&&(e.getTime?n[0].getTime()<=e.getTime()&&e.getTime()<=n[1].getTime():n[0]<=e&&e<=n[1]),lt:(e,n,s)=>null==n||null!=e&&(e.getTime&&n.getTime?e.getTime()<n.getTime():e<n),lte:(e,n,s)=>null==n||null!=e&&(e.getTime&&n.getTime?e.getTime()<=n.getTime():e<=n),gt:(e,n,s)=>null==n||null!=e&&(e.getTime&&n.getTime?e.getTime()>n.getTime():e>n),gte:(e,n,s)=>null==n||null!=e&&(e.getTime&&n.getTime?e.getTime()>=n.getTime():e>=n),is:(e,n,s)=>this.filters.equals(e,n,s),isNot:(e,n,s)=>this.filters.notEquals(e,n,s),before:(e,n,s)=>this.filters.lt(e,n,s),after:(e,n,s)=>this.filters.gt(e,n,s),dateIs:(e,n)=>null==n||null!=e&&e.toDateString()===n.toDateString(),dateIsNot:(e,n)=>null==n||null!=e&&e.toDateString()!==n.toDateString(),dateBefore:(e,n)=>null==n||null!=e&&e.getTime()<n.getTime(),dateAfter:(e,n)=>null==n||null!=e&&e.getTime()>n.getTime()}}filter(e,n,s,r,o){let
u=[];if(e)for(let h of e)for(let b of n){let
y=Z.resolveFieldData(h,b);if(this.filters[r](y,s
,o)){u.push(h);break}}return u}register(e,n){this.filters[e]=n}}return
t.\u0275fac=function(e){return
new(e||t)},t.\u0275prov=X({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),Gi=(()=>{class
t{constructor(){this.messageSource=new ct,this.clearSource=new
ct,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=X({token:t,factory:t.\u0275fac}),t})(),Ks=(()=>{class
t{constructor(){this.clickSource=new
ct,this.clickObservable=this.clickSource.asObservable()}add(e){e&&this.clickSource.next(e)}}return
t.\u0275fac=function(e){return
new(e||t)},t.\u0275prov=X({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),ml=(()=>{class
t{}return t.AND="and",t.OR="or",t})(),Oo=(()=>{class t{}return
t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=z({
type:t,selectors:[["p-header"]],ngContentSelectors:iT,decls:1,vars:0,template:function(e,n){1&e&&(Sn(),St(0))},encapsulation:2}),t})(),fl=(()=>{class
t{}return t.\u0275fac=function(e){return
new(e||t)},t.\u0275cmp=z({type:t,selectors:[["p-footer"]],ngContentSelectors:iT,decls:1,vars:0,template:function(e,n){1&e&&(Sn(),St(0))},encapsulation:2}),t})(),ne=(()=>{class
t{constructor(e){this.template=e}getType(){return this.name}}return
t.\u0275fac=function(e){return
new(e||t)(D(bi))},t.\u0275dir=le({type:t,selectors:[["","pTemplate",""]],inputs:{type:"type",name:["pTemplate","name"]}}),t})(),Nt=(()=>{class
t{}return t.\u0275fac=function(e){return
new(e||t)},t.\u0275mod=he({type:t}),t.\u0275inj=ue({imports:[[Fe]]}),t})();function
jF(t,i){if(1&t&&(l(0,"span",9),g(1),c()),2&t){const
e=d();a(1),T(" ",e.header," ")}}function
$F(t,i){1&t&&Y(0)}function
WF(t,i){1&t&&St(0,1,["*ngIf","hasHeaderFacet"])}function
KF(t,i){1&t&&Y(0)}function
QF(t,i){if(1&t&&(de(0),_(1,KF,1,0,"ng-container",5),pe()),2
&t){const e=d();a(1),p("ngTemplateOutlet",e.contentTemplate)}}const
JF=["*",[["p-header"]]],YF=function(t){return{"p-accordion-tab-active":t}},ZF=function(t,i){return{"p-highlight":t,"p-disabled":i}},sT=function(t){return{transitionParams:t}},XF=function(t){return{value:"visible",params:t}},eN=function(t){return{value:"hidden",params:t}},tN=["*","p-header"],nN=["*"];let
iN=0,Ts=(()=>{class
t{constructor(e,n){this.changeDetector=n,this.cache=!0,this.selectedChange=new
H,this.transitionOptions="400ms cubic-bezier(0.86, 0, 0.07,
1)",this.id="p-accordiontab-"+iN++,this.accordion=e}get selected(){return
this._selected}set
selected(e){this._selected=e,this.loaded||(this._selected&&this.cache&&(this.loaded=!0),this.changeDetector.detectChanges())}ngAfterContentInit(){this.templates.forEach(e=>{switch(e.getType()){case"content":default:this.contentTemplate=e.template;break;case"header":this.headerTemplate=e.template}})}toggle(e){if(this.disabled)return!1;let
n=this.findTabIndex();if(this.se
lected)this.selected=!1,this.accordion.onClose.emit({originalEvent:e,index:n});else{if(!this.accordion.multiple)for(var
s=0;s<this.accordion.tabs.length;s++)this.accordion.tabs[s].selected&&(this.accordion.tabs[s].selected=!1,this.accordion.tabs[s].selectedChange.emit(!1),this.accordion.tabs[s].changeDetector.markForCheck());this.selected=!0,this.loaded=!0,this.accordion.onOpen.emit({originalEvent:e,index:n})}this.selectedChange.emit(this.selected),this.accordion.updateActiveIndex(),this.changeDetector.markForCheck(),e.preventDefault()}findTabIndex(){let
e=-1;for(var
n=0;n<this.accordion.tabs.length;n++)if(this.accordion.tabs[n]==this){e=n;break}return
e}get hasHeaderFacet(){return
this.headerFacet&&this.headerFacet.length>0}onKeydown(e){(32===e.which||13===e.which)&&(this.toggle(e),e.preventDefault())}ngOnDestroy(){this.accordion.tabs.splice(this.findTabIndex(),1)}}return
t.\u0275fac=function(e){return
new(e||t)(D(je(()=>Ss)),D(rt))},t.\u0275cmp=z({type:t,selectors:[["p-accordionTa
b"]],contentQueries:function(e,n,s){if(1&e&&(st(s,Oo,4),st(s,ne,4)),2&e){let
r;V(r=B())&&(n.headerFacet=r),V(r=B())&&(n.templates=r)}},hostAttrs:[1,"p-element"],inputs:{header:"header",disabled:"disabled",cache:"cache",transitionOptions:"transitionOptions",selected:"selected"},outputs:{selectedChange:"selectedChange"},ngContentSelectors:tN,decls:11,vars:28,consts:[[1,"p-accordion-tab",3,"ngClass"],[1,"p-accordion-header",3,"ngClass"],["role","tab",1,"p-accordion-header-link",3,"click","keydown"],[1,"p-accordion-toggle-icon",3,"ngClass"],["class","p-accordion-header-text",4,"ngIf"],[4,"ngTemplateOutlet"],[4,"ngIf"],["role","region",1,"p-toggleable-content"],[1,"p-accordion-content"],[1,"p-accordion-header-text"]],template:function(e,n){1&e&&(Sn(JF),l(0,"div",0)(1,"div",1)(2,"a",2),C("click",function(r){return
n.toggle(r)})("keydown",function(r){return
n.onKeydown(r)}),k(3,"span",3),_(4,jF,2,1,"span",4),_(5,$F,1,0,"ng-container",5),_(6,WF,1,0,"ng-content",6),c()(),l(7,"div",7)(8,"div"
,8),St(9),_(10,QF,2,1,"ng-container",6),c()()()),2&e&&(p("ngClass",U(15,YF,n.selected)),a(1),p("ngClass",Ge(17,ZF,n.selected,n.disabled)),a(1),ie("tabindex",n.disabled?null:0)("id",n.id)("aria-controls",n.id+"-content")("aria-expanded",n.selected),a(1),p("ngClass",n.selected?n.accordion.collapseIcon:n.accordion.expandIcon),a(1),p("ngIf",!n.hasHeaderFacet),a(1),p("ngTemplateOutlet",n.headerTemplate),a(1),p("ngIf",n.hasHeaderFacet),a(1),p("@tabContent",n.selected?U(22,XF,U(20,sT,n.transitionOptions)):U(26,eN,U(24,sT,n.transitionOptions))),ie("id",n.id+"-content")("aria-hidden",!n.selected)("aria-labelledby",n.id),a(3),p("ngIf",n.contentTemplate&&(n.cache?n.loaded:n.selected)))},directives:[Le,Q,Rt],styles:[".p-accordion-header-link{cursor:pointer;display:flex;align-items:center;-webkit-user-select:none;user-select:none;position:relative;text-decoration:none}.p-accordion-header-link:focus{z-index:1}.p-accordion-header-text{line-height:1}\n"],encapsulation:2,data:{animation:[wi("tabCont
ent",[ws("hidden",it({height:"0",overflow:"hidden"})),ws("visible",it({height:"*"})),Lt("visible
<=>
hidden",[it({overflow:"hidden"}),kt("{{transitionParams}}")]),Lt("void
=> *",kt(0))])]},changeDetection:0}),t})(),Ss=(()=>{class
t{constructor(e,n){this.el=e,this.changeDetector=n,this.onClose=new H,this.onOpen=new
H,this.expandIcon="pi pi-fw pi-chevron-right",this.collapseIcon="pi pi-fw
pi-chevron-down",this.activeIndexChange=new
H,this.tabs=[]}ngAfterContentInit(){this.initTabs(),this.tabListSubscription=this.tabList.changes.subscribe(e=>{this.initTabs()})}initTabs(){this.tabs=this.tabList.toArray(),this.updateSelectionState(),this.changeDetector.markForCheck()}getBlockableElement(){return
this.el.nativeElement.children[0]}get activeIndex(){return this._activeIndex}set
activeIndex(e){this._activeIndex=e,this.preventActiveIndexPropagation?this.preventActiveIndexPropagation=!1:this.updateSelectionState()}updateSelectionState(){if(this.tabs&&this.tabs.length&&null!=this._activeIndex)f
or(let e=0;e<this.tabs.length;e++){let
n=this.multiple?this._activeIndex.includes(e):e===this._activeIndex;n!==this.tabs[e].selected&&(this.tabs[e].selected=n,this.tabs[e].selectedChange.emit(n),this.tabs[e].changeDetector.markForCheck())}}updateActiveIndex(){let
e=this.multiple?[]:null;this.tabs.forEach((n,s)=>{if(n.selected){if(!this.multiple)return
void(e=s);e.push(s)}}),this.preventActiveIndexPropagation=!0,this.activeIndexChange.emit(e)}ngOnDestroy(){this.tabListSubscription&&this.tabListSubscription.unsubscribe()}}return
t.\u0275fac=function(e){return
new(e||t)(D(De),D(rt))},t.\u0275cmp=z({type:t,selectors:[["p-accordion"]],contentQueries:function(e,n,s){if(1&e&&st(s,Ts,4),2&e){let
r;V(r=B())&&(n.tabList=r)}},hostAttrs:[1,"p-element"],inputs:{multiple:"multiple",style:"style",styleClass:"styleClass",expandIcon:"expandIcon",collapseIcon:"collapseIcon",activeIndex:"activeIndex"},outputs:{onClose:"onClose",onOpen:"onOpen",activeIndexChange:"activeIndexChange"},ngContentSelectors:
nN,decls:2,vars:4,consts:[["role","tablist",3,"ngClass","ngStyle"]],template:function(e,n){1&e&&(Sn(),l(0,"div",0),St(1),c()),2&e&&(me(n.styleClass),p("ngClass","p-accordion
p-component")("ngStyle",n.style))},directives:[Le,lt],encapsulation:2,changeDetection:0}),t})(),sN=(()=>{class
t{}return t.\u0275fac=function(e){return
new(e||t)},t.\u0275mod=he({type:t}),t.\u0275inj=ue({imports:[[Fe],Nt]}),t})(),R=(()=>{class
t{static addClass(e,n){e.classList?e.classList.add(n):e.className+=" "+n}static
addMultipleClasses(e,n){if(e.classList){let s=n.trim().split(" ");for(let
r=0;r<s.length;r++)e.classList.add(s[r])}else{let s=n.split(" ");for(let
r=0;r<s.length;r++)e.className+=" "+s[r]}}static
removeClass(e,n){e.classList?e.classList.remove(n):e.className=e.className.replace(new
RegExp("(^|\\b)"+n.split("
").join("|")+"(\\b|$)","gi")," ")}static
hasClass(e,n){return e.classList?e.classList.contains(n):new RegExp("(^|
)"+n+"( |$)","gi").test(e.className)}static siblings(e){return
Array.protot
ype.filter.call(e.parentNode.children,function(n){return n!==e})}static find(e,n){return
Array.from(e.querySelectorAll(n))}static findSingle(e,n){return
e?e.querySelector(n):null}static index(e){let n=e.parentNode.childNodes,s=0;for(var
r=0;r<n.length;r++){if(n[r]==e)return s;1==n[r].nodeType&&s++}return-1}static
indexWithinGroup(e,n){let s=e.parentNode?e.parentNode.childNodes:[],r=0;for(var
o=0;o<s.length;o++){if(s[o]==e)return
r;s[o].attributes&&s[o].attributes[n]&&1==s[o].nodeType&&r++}return-1}static
relativePosition(e,n){let
s=e.offsetParent?{width:e.offsetWidth,height:e.offsetHeight}:this.getHiddenElementDimensions(e);const
r=n.offsetHeight,o=n.getBoundingClientRect(),u=this.getViewport();let
h,b;o.top+r+s.height>u.height?(h=-1*s.height,e.style.transformOrigin="bottom",o.top+h<0&&(h=-1*o.top)):(h=r,e.style.transformOrigin="top"),b=s.width>u.width?-1*o.left:o.left+s.width>u.width?-1*(o.left+s.width-u.width):0,e.style.top=h+"px",e.style.left=b+"px"}static
absolutePosition(e,n){l
et
E,L,s=e.offsetParent?{width:e.offsetWidth,height:e.offsetHeight}:this.getHiddenElementDimensions(e),r=s.height,o=s.width,u=n.offsetHeight,h=n.offsetWidth,b=n.getBoundingClientRect(),y=this.getWindowScrollTop(),w=this.getWindowScrollLeft(),M=this.getViewport();b.top+u+r>M.height?(E=b.top+y-r,e.style.transformOrigin="bottom",E<0&&(E=y)):(E=u+b.top+y,e.style.transformOrigin="top"),L=b.left+o>M.width?Math.max(0,b.left+w+h-o):b.left+w,e.style.top=E+"px",e.style.left=L+"px"}static
getParents(e,n=[]){return
null===e.parentNode?n:this.getParents(e.parentNode,n.concat([e.parentNode]))}static
getScrollableParents(e){let n=[];if(e){let s=this.getParents(e);const
r=/(auto|scroll)/,o=u=>{let h=window.getComputedStyle(u,null);return
r.test(h.getPropertyValue("overflow"))||r.test(h.getPropertyValue("overflowX"))||r.test(h.getPropertyValue("overflowY"))};for(let
u of s){let h=1===u.nodeType&&u.dataset.scrollselectors;if(h){let
b=h.split(",");for(let y of b){let
w=this.findSingle(u,y);w&&o(w)&&n.
push(w)}}9!==u.nodeType&&o(u)&&n.push(u)}}return n}static
getHiddenElementOuterHeight(e){e.style.visibility="hidden",e.style.display="block";let
n=e.offsetHeight;return
e.style.display="none",e.style.visibility="visible",n}static
getHiddenElementOuterWidth(e){e.style.visibility="hidden",e.style.display="block";let
n=e.offsetWidth;return
e.style.display="none",e.style.visibility="visible",n}static
getHiddenElementDimensions(e){let n={};return
e.style.visibility="hidden",e.style.display="block",n.width=e.offsetWidth,n.height=e.offsetHeight,e.style.display="none",e.style.visibility="visible",n}static
scrollInView(e,n){let
s=getComputedStyle(e).getPropertyValue("borderTopWidth"),r=s?parseFloat(s):0,o=getComputedStyle(e).getPropertyValue("paddingTop"),u=o?parseFloat(o):0,h=e.getBoundingClientRect(),y=n.getBoundingClientRect().top+document.body.scrollTop-(h.top+document.body.scrollTop)-r-u,w=e.scrollTop,M=e.clientHeight,E=this.getOuterHeight(n);y<0?e.scrollTop=w+y:y+E>M&&(e.scrollTop=w+y-
M+E)}static fadeIn(e,n){e.style.opacity=0;let s=+new
Date,r=0,o=function(){r=+e.style.opacity.replace(",",".")+((new
Date).getTime()-s)/n,e.style.opacity=r,s=+new
Date,+r<1&&(window.requestAnimationFrame&&requestAnimationFrame(o)||setTimeout(o,16))};o()}static
fadeOut(e,n){var s=1,u=50/n;let
h=setInterval(()=>{(s-=u)<=0&&(s=0,clearInterval(h)),e.style.opacity=s},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,n){var
s=Element.prototype;return(s.matches||s.webkitMatchesSelector||s.mozMatchesSelector||s.msMatchesSelector||function(o){return-1!==[].indexOf.call(document.querySelectorAll(o),this)}).call(e,n)}static
getOuterWidth(e,n){let s=e.offsetWidth;if(n){let
r=getComputedStyle(e);s+=parseFloat(r.marginLeft)+parseFloat(r.marginRight)}return
s}static getHorizontalPadding(e){let n
=getComputedStyle(e);return parseFloat(n.paddingLeft)+parseFloat(n.paddingRight)}static
getHorizontalMargin(e){let n=getComputedStyle(e);return
parseFloat(n.marginLeft)+parseFloat(n.marginRight)}static innerWidth(e){let
n=e.offsetWidth,s=getComputedStyle(e);return
n+=parseFloat(s.paddingLeft)+parseFloat(s.paddingRight),n}static width(e){let
n=e.offsetWidth,s=getComputedStyle(e);return
n-=parseFloat(s.paddingLeft)+parseFloat(s.paddingRight),n}static getInnerHeight(e){let
n=e.offsetHeight,s=getComputedStyle(e);return
n+=parseFloat(s.paddingTop)+parseFloat(s.paddingBottom),n}static getOuterHeight(e,n){let
s=e.offsetHeight;if(n){let
r=getComputedStyle(e);s+=parseFloat(r.marginTop)+parseFloat(r.marginBottom)}return
s}static getHeight(e){let n=e.offsetHeight,s=getComputedStyle(e);return
n-=parseFloat(s.paddingTop)+parseFloat(s.paddingBottom)+parseFloat(s.borderTopWidth)+parseFloat(s.borderBottomWidth),n}static
getWidth(e){let n=e.offsetWidth,s=getComputedStyle(e);return n-=parseFloat(s.pa
ddingLeft)+parseFloat(s.paddingRight)+parseFloat(s.borderLeftWidth)+parseFloat(s.borderRightWidth),n}static
getViewport(){let
e=window,n=document,s=n.documentElement,r=n.getElementsByTagName("body")[0];return{width:e.innerWidth||s.clientWidth||r.clientWidth,height:e.innerHeight||s.clientHeight||r.clientHeight}}static
getOffset(e){var
n=e.getBoundingClientRect();return{top:n.top+(window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0),left:n.left+(window.pageXOffset||document.documentElement.scrollLeft||document.body.scrollLeft||0)}}static
replaceElementWith(e,n){let s=e.parentNode;if(!s)throw"Can't replace
element";return s.replaceChild(n,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,n){if(this.isElement(n))n.appendChild(e);else{if(!n.el||!n.el.nativeElement)throw"Cannot
append "+n+" to "+e;n.el.nativeElement.appendChild(e)}}static
removeChild(e,n){if(this.isElement(n))n.removeChild(e);else{if(!n.el||!n.el.nativeElement)throw"Cannot
remove "+e+" from "+n;n.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 n=getComputedStyle(e);return
e.offsetWidth-e.clientWidth-parseFloat(n.borderLeftWidth)-parseFloat(n.borderRightWidth)}{if(null!==this.calculatedScrollbarWidth)return
this.calculatedScrollbarWidth;let
n=document.createElement("div");n.className="p-scrollbar-measure",do
cument.body.appendChild(n);let s=n.offsetWidth-n.clientWidth;return
document.body.removeChild(n),this.calculatedScrollbarWidth=s,s}}static
calculateScrollbarHeight(){if(null!==this.calculatedScrollbarHeight)return
this.calculatedScrollbarHeight;let
e=document.createElement("div");e.className="p-scrollbar-measure",document.body.appendChild(e);let
n=e.offsetHeight-e.clientHeight;return
document.body.removeChild(e),this.calculatedScrollbarWidth=n,n}static
invokeElementMethod(e,n,s){e[n].apply(e,s)}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(),n=/(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:n[1]||"",version:n[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
n=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)'),s=[];for(let
r of
n)"none"!=getComputedStyle(r).display&&"hidden"!=getComputedStyle(r).visibility&&s.push(r);return
s}static generateZIndex(){return this.zindex=this.zindex||999,++this.zindex}}return
t.zindex=1e3,t.calculatedScrollbarWidth=null,t.calculatedScrollbarHeight=null,t})();class
Qs{constructor(i,e=(()=>{})){this.element=i,this.listener=e}bindScrollListener(){this.scrollableParents=R.getScrollableParents(this.element);for(let
i=0;i<this.scrollableParents.length;i++)this.scrollableParents[i].addEventListener("scroll",this.listener)}unbindScrollL
istener(){if(this.scrollableParents)for(let
i=0;i<this.scrollableParents.length;i++)this.scrollableParents[i].removeEventListener("scroll",this.listener)}destroy(){this.unbindScrollListener(),this.element=null,this.listener=null,this.scrollableParents=null}}let
bt=(()=>{class
t{constructor(e,n,s){this.el=e,this.zone=n,this.config=s}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
n=this.getInk();if(!n||"none"===getComputedStyle(n,null).display)return;if(R.removeClass(n,"p-ink-active"),!R.getHeight(n)&&!R.getWidth(n)){let
u=Math.max(R.getOuterWidth(this.el.nativeElement),R.getOuterHeight(this.el.nativeElement));n.style.height=u+"px",n.style.width=u+"px"}let
s=R.getOffset(this.el.nativeElement),r=e.pageX-s.left+document.body.scrollTop-R.getWidth(n)/2,o=e.pageY-s.top+document.body.scrollLeft-R
.getHeight(n)/2;n.style.top=o+"px",n.style.left=r+"px",R.addClass(n,"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&&R.removeClass(e,"p-ink-active")}onAnimationEnd(e){R.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),R.removeElement(e))}ngOnDestroy(){this.config&&this.config.ripple&&this.remove()}}return
t.\u0275fac=function(e){return
new(e||t)(D(De),D(nt),D(zn,8))},t.\u0275dir=le({type:t,selectors:[["","pRipple",""]],host
Attrs:[1,"p-ripple","p-element"]}),t})(),pn=(()=>{class t{}return
t.\u0275fac=function(e){return
new(e||t)},t.\u0275mod=he({type:t}),t.\u0275inj=ue({imports:[[Fe]]}),t})();function
rN(t,i){1&t&&Y(0)}const
oN=function(t,i,e,n){return{"p-button-icon":!0,"p-button-icon-left":t,"p-button-icon-right":i,"p-button-icon-top":e,"p-button-icon-bottom":n}};function
aN(t,i){if(1&t&&k(0,"span",4),2&t){const
e=d();me(e.loading?"p-button-loading-icon
"+e.loadingIcon:e.icon),p("ngClass",qn(4,oN,"left"===e.iconPos&&e.label,"right"===e.iconPos&&e.label,"top"===e.iconPos&&e.label,"bottom"===e.iconPos&&e.label)),ie("aria-hidden",!0)}}function
lN(t,i){if(1&t&&(l(0,"span",5),g(1),c()),2&t){const
e=d();ie("aria-hidden",e.icon&&!e.label),a(1),S(e.label||"\xa0")}}function
cN(t,i){if(1&t&&(l(0,"span",4),g(1),c()),2&t){const
e=d();me(e.badgeClass),p("ngClass",e.badgeStyleClass()),a(1),S(e.badge)}}const
uN=function(t,i,e,n,s){return{"p-button
p-component":!0,"p-button-icon-only":t,"p-button-vertical":i,"p-disa
bled":e,"p-button-loading":n,"p-button-loading-label-only":s}},dN=["*"];let
On=(()=>{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,R.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(){let
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=documen
t.createElement("span");e.className="p-button-icon",e.setAttribute("aria-hidden","true");let
n=this.label?"p-button-icon-"+this.iconPos:null;n&&R.addClass(e,n);let
s=this.getIconClass();s&&R.addMultipleClasses(e,s);let
r=R.findSingle(this.el.nativeElement,".p-button-label");r?this.el.nativeElement.insertBefore(e,r):this.el.nativeElement.appendChild(e)}getIconClass(){return
this.loading?"p-button-loading-icon
"+this.loadingIcon:this._icon}setIconClass(){let
e=R.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=R.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&&(R.findSingle(this.el.nativeElement,".p-button-label").textContent=this._label||" ",(this.loading||this.icon)&&this.setIconClass(),t
his.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)(D(De))},t.\u0275dir=le({type:t,selectors:[["","pButton",""]],hostAttrs:[1,"p-element"],inputs:{iconPos:"iconPos",loadingIcon:"loadingIcon",label:"label",icon:"icon",loading:"loading"}}),t})(),ve=(()=>{class
t{constructor(){this.type="button",this.iconPos="left",this.loading=!1,this.loadingIcon="pi
pi-spinner pi-spin",this.onClick=new H,this.onFocus=new H,this.onBlur=new
H}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=z({type:t,selectors:[["p-button"]],contentQueries:function(e,n,s){if(1&e&&st(s,ne,4),2&e){let
r;V(r=B())&&(n.templates=r)}},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",ariaLabel:"ariaLabel"},outputs:{onClick:"onClick",onFocus:"onFocus",onBlur:"onBlur"},ngContentSelectors:dN,decls:6,vars:17,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,n){1&e&&(Sn(),l(0,"button",0),C("click",function(r){return
n.onClick.emit(r)})("focus",function(r){return
n.onFocus.emit(r)})("blur",function(r){return
n.onBlur.emit(r)}),St(1),_(2,rN,1,0,"ng-container",1),_(3,aN,1,9,"span",2),_(4,lN,2,2,"span",3),_(5,c
N,2,4,"span",2),c()),2&e&&(me(n.styleClass),p("ngStyle",n.style)("disabled",n.disabled||n.loading)("ngClass",pr(11,uN,n.icon&&!n.label,("top"===n.iconPos||"bottom"===n.iconPos)&&n.label,n.disabled||n.loading,n.loading,n.loading&&!n.icon&&n.label)),ie("type",n.type)("aria-label",n.ariaLabel),a(2),p("ngTemplateOutlet",n.contentTemplate),a(1),p("ngIf",!n.contentTemplate&&(n.icon||n.loading)),a(1),p("ngIf",!n.contentTemplate),a(1),p("ngIf",!n.contentTemplate&&n.badge))},directives:[bt,lt,Le,Rt,Q],encapsulation:2,changeDetection:0}),t})(),gl=(()=>{class
t{}return t.\u0275fac=function(e){return
new(e||t)},t.\u0275mod=he({type:t}),t.\u0275inj=ue({imports:[[Fe,pn]]}),t})();const
pN=["container"],hN=["inputfield"],mN=["contentWrapper"];function
fN(t,i){if(1&t){const e=I();l(0,"i",8),C("click",function(){return
v(e),d(2).clear()}),c()}}function gN(t,i){if(1&t){const
e=I();l(0,"button",9),C("click",function(s){v(e),d();const
r=F(1);return d().onButtonClick(s,r)}),c()}if(2&t){const e=d(2);p("ic
on",e.icon)("disabled",e.disabled),ie("aria-label",e.iconAriaLabel)}}function
_N(t,i){if(1&t){const
e=I();l(0,"input",4,5),C("focus",function(s){return
v(e),d().onInputFocus(s)})("keydown",function(s){return
v(e),d().onInputKeydown(s)})("click",function(){return
v(e),d().onInputClick()})("blur",function(s){return
v(e),d().onInputBlur(s)})("input",function(s){return
v(e),d().onUserInput(s)}),c(),_(2,fN,1,0,"i",6),_(3,gN,1,3,"button",7)}if(2&t){const
e=d();me(e.inputStyleClass),p("value",e.inputFieldValue)("readonly",e.readonlyInput)("ngStyle",e.inputStyle)("placeholder",e.placeholder||"")("disabled",e.disabled)("ngClass","p-inputtext
p-component"),ie("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),a(2),p("ngIf",e.showClear&&!e.disabled&&null!=e.value),a(1),p("ngIf",e.showIcon)}}function
bN(t,i){1&t&&Y(0)}function vN(t,i){if(1&t){const
e=I();l(0,"button",30),C
("keydown",function(s){return
v(e),d(4).onContainerButtonKeydown(s)})("click",function(s){return
v(e),d(4).onPrevButtonClick(s)}),k(1,"span",31),c()}}function
CN(t,i){if(1&t){const
e=I();l(0,"button",32),C("click",function(s){return
v(e),d(4).switchToMonthView(s)})("keydown",function(s){return
v(e),d(4).onContainerButtonKeydown(s)}),g(1),c()}if(2&t){const
e=d().$implicit,n=d(3);p("disabled",n.switchViewButtonDisabled()),a(1),T("
",n.getMonthName(e.month)," ")}}function yN(t,i){if(1&t){const
e=I();l(0,"button",33),C("click",function(s){return
v(e),d(4).switchToYearView(s)})("keydown",function(s){return
v(e),d(4).onContainerButtonKeydown(s)}),g(1),c()}if(2&t){const
e=d().$implicit,n=d(3);p("disabled",n.switchViewButtonDisabled()),a(1),T("
",n.getYear(e)," ")}}function
wN(t,i){if(1&t&&(de(0),g(1),pe()),2&t){const
e=d(5);a(1),We("",e.yearPickerValues()[0]," -
",e.yearPickerValues()[e.yearPickerValues().length-1],"")}}function
TN(t,i){1&t&&Y(0)}const rT=function(t){return{$implicit:t}};f
unction
SN(t,i){if(1&t&&(l(0,"span",34),_(1,wN,2,2,"ng-container",13),_(2,TN,1,0,"ng-container",35),c()),2&t){const
e=d(4);a(1),p("ngIf",!e.decadeTemplate),a(1),p("ngTemplateOutlet",e.decadeTemplate)("ngTemplateOutletContext",U(3,rT,e.yearPickerValues))}}function
xN(t,i){if(1&t&&(l(0,"th",41)(1,"span"),g(2),c()()),2&t){const
e=d(5);a(2),S(e.getTranslation("weekHeader"))}}function
DN(t,i){if(1&t&&(l(0,"th",42)(1,"span"),g(2),c()()),2&t){const
e=i.$implicit;a(2),S(e)}}function
MN(t,i){if(1&t&&(l(0,"td",45)(1,"span",46),g(2),c()()),2&t){const
e=d().index,n=d(2).$implicit;a(2),T(" ",n.weekNumbers[e],"
")}}function kN(t,i){if(1&t&&(de(0),g(1),pe()),2&t){const
e=d(2).$implicit;a(1),S(e.day)}}function IN(t,i){1&t&&Y(0)}const
EN=function(t,i){return{"p-highlight":t,"p-disabled":i}};function
RN(t,i){if(1&t){const
e=I();de(0),l(1,"span",48),C("click",function(s){v(e);const
r=d().$implicit;return d(6).onDateSelect(s,r)})("keydown",function(s){v(e);const
r=d().$implicit,o=d(3).index;return d(3)
.onDateCellKeydown(s,r,o)}),_(2,kN,2,1,"ng-container",13),_(3,IN,1,0,"ng-container",35),c(),pe()}if(2&t){const
e=d().$implicit,n=d(6);a(1),p("ngClass",Ge(4,EN,n.isSelected(e),!e.selectable)),a(1),p("ngIf",!n.dateTemplate),a(1),p("ngTemplateOutlet",n.dateTemplate)("ngTemplateOutletContext",U(7,rT,e))}}const
LN=function(t,i){return{"p-datepicker-other-month":t,"p-datepicker-today":i}};function
ON(t,i){if(1&t&&(l(0,"td",47),_(1,RN,4,9,"ng-container",13),c()),2&t){const
e=i.$implicit,n=d(6);p("ngClass",Ge(2,LN,e.otherMonth,e.today)),a(1),p("ngIf",!e.otherMonth||n.showOtherMonths)}}function
AN(t,i){if(1&t&&(l(0,"tr"),_(1,MN,3,1,"td",43),_(2,ON,2,5,"td",44),c()),2&t){const
e=i.$implicit,n=d(5);a(1),p("ngIf",n.showWeek),a(1),p("ngForOf",e)}}function
PN(t,i){if(1&t&&(l(0,"div",36)(1,"table",37)(2,"thead")(3,"tr"),_(4,xN,3,1,"th",38),_(5,DN,3,1,"th",39),c()(),l(6,"tbody"),_(7,AN,3,2,"tr",40),c()()()),2&t){const
e=d().$implicit,n=d(3);a(4),p("ngIf",n.showWeek),a(1),p("ngForOf",n.weekDays),a(2
),p("ngForOf",e.dates)}}function FN(t,i){if(1&t){const
e=I();l(0,"div",20)(1,"div",21),_(2,vN,2,0,"button",22),l(3,"div",23),_(4,CN,2,2,"button",24),_(5,yN,2,2,"button",25),_(6,SN,3,5,"span",26),c(),l(7,"button",27),C("keydown",function(s){return
v(e),d(3).onContainerButtonKeydown(s)})("click",function(s){return
v(e),d(3).onNextButtonClick(s)}),k(8,"span",28),c()(),_(9,PN,8,3,"div",29),c()}if(2&t){const
e=i.index,n=d(3);a(2),p("ngIf",0===e),a(2),p("ngIf","date"===n.currentView),a(1),p("ngIf","year"!==n.currentView),a(1),p("ngIf","year"===n.currentView),a(1),_i("display",1===n.numberOfMonths||e===n.numberOfMonths-1?"inline-flex":"none"),a(2),p("ngIf","date"===n.currentView)}}const
oT=function(t){return{"p-highlight":t}};function NN(t,i){if(1&t){const
e=I();l(0,"span",51),C("click",function(s){const o=v(e).index;return
d(4).onMonthSelect(s,o)})("keydown",function(s){const o=v(e).index;return
d(4).onMonthCellKeydown(s,o)}),g(1),c()}if(2&t){const
e=i.$implicit,n=i.index,s=d(4);p("ngClas
s",U(2,oT,s.isMonthSelected(n))),a(1),T(" ",e," ")}}function
VN(t,i){if(1&t&&(l(0,"div",49),_(1,NN,2,4,"span",50),c()),2&t){const
e=d(3);a(1),p("ngForOf",e.monthPickerValues())}}function
BN(t,i){if(1&t){const
e=I();l(0,"span",54),C("click",function(s){const
o=v(e).$implicit;return d(4).onYearSelect(s,o)})("keydown",function(s){const
o=v(e).$implicit;return d(4).onYearCellKeydown(s,o)}),g(1),c()}if(2&t){const
e=i.$implicit,n=d(4);p("ngClass",U(2,oT,n.isYearSelected(e))),a(1),T("
",e," ")}}function
HN(t,i){if(1&t&&(l(0,"div",52),_(1,BN,2,4,"span",53),c()),2&t){const
e=d(3);a(1),p("ngForOf",e.yearPickerValues())}}function
qN(t,i){if(1&t&&(de(0),l(1,"div",16),_(2,FN,10,7,"div",17),c(),_(3,VN,2,1,"div",18),_(4,HN,2,1,"div",19),pe()),2&t){const
e=d(2);a(2),p("ngForOf",e.months),a(1),p("ngIf","month"===e.currentView),a(1),p("ngIf","year"===e.currentView)}}function
GN(t,i){1&t&&(de(0),g(1,"0"),pe())}function
UN(t,i){1&t&&(de(0),g(1,"0"),pe())}function
zN(t,i){if(1&t&&(l(0,"div",60)(1,"span"
),g(2),c()()),2&t){const e=d(3);a(2),S(e.timeSeparator)}}function
jN(t,i){1&t&&(de(0),g(1,"0"),pe())}function
$N(t,i){if(1&t){const
e=I();l(0,"div",65)(1,"button",57),C("keydown",function(s){return
v(e),d(3).onContainerButtonKeydown(s)})("keydown.enter",function(s){return
v(e),d(3).incrementSecond(s)})("keydown.space",function(s){return
v(e),d(3).incrementSecond(s)})("mousedown",function(s){return
v(e),d(3).onTimePickerElementMouseDown(s,2,1)})("mouseup",function(s){return
v(e),d(3).onTimePickerElementMouseUp(s)})("keyup.enter",function(s){return
v(e),d(3).onTimePickerElementMouseUp(s)})("keyup.space",function(s){return
v(e),d(3).onTimePickerElementMouseUp(s)})("mouseleave",function(){return
v(e),d(3).onTimePickerElementMouseLeave()}),k(2,"span",58),c(),l(3,"span"),_(4,jN,2,0,"ng-container",13),g(5),c(),l(6,"button",57),C("keydown",function(s){return
v(e),d(3).onContainerButtonKeydown(s)})("keydown.enter",function(s){return
v(e),d(3).decrementSecond(s)})("keydown.space",function(s){
return v(e),d(3).decrementSecond(s)})("mousedown",function(s){return
v(e),d(3).onTimePickerElementMouseDown(s,2,-1)})("mouseup",function(s){return
v(e),d(3).onTimePickerElementMouseUp(s)})("keyup.enter",function(s){return
v(e),d(3).onTimePickerElementMouseUp(s)})("keyup.space",function(s){return
v(e),d(3).onTimePickerElementMouseUp(s)})("mouseleave",function(){return
v(e),d(3).onTimePickerElementMouseLeave()}),k(7,"span",59),c()()}if(2&t){const
e=d(3);a(4),p("ngIf",e.currentSecond<10),a(1),S(e.currentSecond)}}function
WN(t,i){if(1&t){const
e=I();l(0,"div",66)(1,"button",67),C("keydown",function(s){return
v(e),d(3).onContainerButtonKeydown(s)})("click",function(s){return
v(e),d(3).toggleAMPM(s)})("keydown.enter",function(s){return
v(e),d(3).toggleAMPM(s)}),k(2,"span",58),c(),l(3,"span"),g(4),c(),l(5,"button",67),C("keydown",function(s){return
v(e),d(3).onContainerButtonKeydown(s)})("click",function(s){return
v(e),d(3).toggleAMPM(s)})("keydown.enter",function(s){return v(e),d(3).toggl
eAMPM(s)}),k(6,"span",59),c()()}if(2&t){const
e=d(3);a(4),S(e.pm?"PM":"AM")}}function KN(t,i){if(1&t){const
e=I();l(0,"div",55)(1,"div",56)(2,"button",57),C("keydown",function(s){return
v(e),d(2).onContainerButtonKeydown(s)})("keydown.enter",function(s){return
v(e),d(2).incrementHour(s)})("keydown.space",function(s){return
v(e),d(2).incrementHour(s)})("mousedown",function(s){return
v(e),d(2).onTimePickerElementMouseDown(s,0,1)})("mouseup",function(s){return
v(e),d(2).onTimePickerElementMouseUp(s)})("keyup.enter",function(s){return
v(e),d(2).onTimePickerElementMouseUp(s)})("keyup.space",function(s){return
v(e),d(2).onTimePickerElementMouseUp(s)})("mouseleave",function(){return
v(e),d(2).onTimePickerElementMouseLeave()}),k(3,"span",58),c(),l(4,"span"),_(5,GN,2,0,"ng-container",13),g(6),c(),l(7,"button",57),C("keydown",function(s){return
v(e),d(2).onContainerButtonKeydown(s)})("keydown.enter",function(s){return
v(e),d(2).decrementHour(s)})("keydown.space",function(s){return v(e),d(2).d
ecrementHour(s)})("mousedown",function(s){return
v(e),d(2).onTimePickerElementMouseDown(s,0,-1)})("mouseup",function(s){return
v(e),d(2).onTimePickerElementMouseUp(s)})("keyup.enter",function(s){return
v(e),d(2).onTimePickerElementMouseUp(s)})("keyup.space",function(s){return
v(e),d(2).onTimePickerElementMouseUp(s)})("mouseleave",function(){return
v(e),d(2).onTimePickerElementMouseLeave()}),k(8,"span",59),c()(),l(9,"div",60)(10,"span"),g(11),c()(),l(12,"div",61)(13,"button",57),C("keydown",function(s){return
v(e),d(2).onContainerButtonKeydown(s)})("keydown.enter",function(s){return
v(e),d(2).incrementMinute(s)})("keydown.space",function(s){return
v(e),d(2).incrementMinute(s)})("mousedown",function(s){return
v(e),d(2).onTimePickerElementMouseDown(s,1,1)})("mouseup",function(s){return
v(e),d(2).onTimePickerElementMouseUp(s)})("keyup.enter",function(s){return
v(e),d(2).onTimePickerElementMouseUp(s)})("keyup.space",function(s){return
v(e),d(2).onTimePickerElementMouseUp(s)})("mouseleave
",function(){return
v(e),d(2).onTimePickerElementMouseLeave()}),k(14,"span",58),c(),l(15,"span"),_(16,UN,2,0,"ng-container",13),g(17),c(),l(18,"button",57),C("keydown",function(s){return
v(e),d(2).onContainerButtonKeydown(s)})("keydown.enter",function(s){return
v(e),d(2).decrementMinute(s)})("keydown.space",function(s){return
v(e),d(2).decrementMinute(s)})("mousedown",function(s){return
v(e),d(2).onTimePickerElementMouseDown(s,1,-1)})("mouseup",function(s){return
v(e),d(2).onTimePickerElementMouseUp(s)})("keyup.enter",function(s){return
v(e),d(2).onTimePickerElementMouseUp(s)})("keyup.space",function(s){return
v(e),d(2).onTimePickerElementMouseUp(s)})("mouseleave",function(){return
v(e),d(2).onTimePickerElementMouseLeave()}),k(19,"span",59),c()(),_(20,zN,3,1,"div",62),_(21,$N,8,2,"div",63),_(22,WN,7,1,"div",64),c()}if(2&t){const
e=d(2);a(5),p("ngIf",e.currentHour<10),a(1),S(e.currentHour),a(5),S(e.timeSeparator),a(5),p("ngIf",e.currentMinute<10),a(1),S(e.currentMinute),a(3),p("ngIf"
,e.showSeconds),a(1),p("ngIf",e.showSeconds),a(1),p("ngIf","12"==e.hourFormat)}}const
aT=function(t){return[t]};function QN(t,i){if(1&t){const
e=I();l(0,"div",68)(1,"button",69),C("keydown",function(s){return
v(e),d(2).onContainerButtonKeydown(s)})("click",function(s){return
v(e),d(2).onTodayButtonClick(s)}),c(),l(2,"button",69),C("keydown",function(s){return
v(e),d(2).onContainerButtonKeydown(s)})("click",function(s){return
v(e),d(2).onClearButtonClick(s)}),c()()}if(2&t){const
e=d(2);a(1),p("label",e.getTranslation("today"))("ngClass",U(4,aT,e.todayButtonStyleClass)),a(1),p("label",e.getTranslation("clear"))("ngClass",U(6,aT,e.clearButtonStyleClass))}}function
JN(t,i){1&t&&Y(0)}const YN=function(t,i,e,n,s,r){return{"p-datepicker
p-component":!0,"p-datepicker-inline":t,"p-disabled":i,"p-datepicker-timeonly":e,"p-datepicker-multiple-month":n,"p-datepicker-monthpicker":s,"p-datepicker-touch-ui":r}},lT=function(t,i){return{showTransitionParams:t,hideTransitionParams:i}},ZN=function(t){
return{value:"visibleTouchUI",params:t}},XN=function(t){return{value:"visible",params:t}};function
e5(t,i){if(1&t){const
e=I();l(0,"div",10,11),C("(a)overlayAnimation.start",function(s){return
v(e),d().onOverlayAnimationStart(s)})("(a)overlayAnimation.done",function(s){return
v(e),d().onOverlayAnimationDone(s)})("click",function(s){return
v(e),d().onOverlayClick(s)}),St(2),_(3,bN,1,0,"ng-container",12),_(4,qN,5,3,"ng-container",13),_(5,KN,23,8,"div",14),_(6,QN,3,8,"div",15),St(7,1),_(8,JN,1,0,"ng-container",12),c()}if(2&t){const
e=d();me(e.panelStyleClass),p("ngStyle",e.panelStyle)("ngClass",Do(11,YN,e.inline,e.disabled,e.timeOnly,e.numberOfMonths>1,"month"===e.view,e.touchUI))("@overlayAnimation",e.touchUI?U(21,ZN,Ge(18,lT,e.showTransitionOptions,e.hideTransitionOptions)):U(26,XN,Ge(23,lT,e.showTransitionOptions,e.hideTransitionOptions)))("@.disabled",!0===e.inline),a(3),p("ngTemplateOutlet",e.headerTemplate),a(1),p("ngIf",!e.timeOnly),a(1),p("ngIf",(e.showTime||e.timeOnly)&&"date"===e
.currentView),a(1),p("ngIf",e.showButtonBar),a(2),p("ngTemplateOutlet",e.footerTemplate)}}const
t5=[[["p-header"]],[["p-footer"]]],n5=function(t,i,e,n){return{"p-calendar":!0,"p-calendar-w-btn":t,"p-calendar-timeonly":i,"p-calendar-disabled":e,"p-focus":n}},s5=["p-header","p-footer"],r5={provide:dn,useExisting:je(()=>xr),multi:!0};let
xr=(()=>{class
t{constructor(e,n,s,r,o,u){this.el=e,this.renderer=n,this.cd=s,this.zone=r,this.config=o,this.overlayService=u,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.showClear=!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
H,this.onBlur=new H,this.onClose=new H,this.onSelect=new H,this.onClear=new
H,this.onInput=new H,this.onTodayClick=new H,this.onClearClick=new
H,this.onMonthChange=new H,this.onYearChange=new H,this.onClickOutside=new
H,this.onShow=new
H,this.onModelChange=()=>{},this.onModelTouched=()=>{},this.inputFieldValue=null,this.navigationState=null,this._numberOfMonths=1,this._view="date",this.convertTo24Hour=function(h,b){return"12"==this.hourFormat?12===h?b?12:0:b?h+12:h:h}}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){co
nst n=e||new
Date;this.currentMonth=n.getMonth(),this.currentYear=n.getFullYear(),this.initTime(n),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 year
Range(e){if(this._yearRange=e,e){const
n=e.split(":"),s=parseInt(n[0]),r=parseInt(n[1]);this.populateYearOptions(s,r)}}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._firstDayOfWeek}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=pl();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.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=R.getOuterWidth(this.containerViewChild.nativeElemen
t)+"px")))}getTranslation(e){return
this.config.getTranslation(e)}populateYearOptions(e,n){this.yearOptions=[];for(let
s=e;s<=n;s++)this.yearOptions.push(s)}createWeekDays(){this.weekDays=[];let
e=this.getFirstDateOfWeek(),n=this.getTranslation(Ft.DAY_NAMES_MIN);for(let
s=0;s<7;s++)this.weekDays.push(n[e]),e=6==e?0:++e}monthPickerValues(){let e=[];for(let
n=0;n<=11;n++)e.push(this.config.getTranslation("monthNamesShort")[n]);return
e}yearPickerValues(){let e=[],n=this.currentYear-this.currentYear%10;for(let
s=0;s<10;s++)e.push(n+s);return e}createMonths(e,n){this.months=this.months=[];for(let
s=0;s<this.numberOfMonths;s++){let
r=e+s,o=n;r>11&&(r=r%11-1,o=n+1),this.months.push(this.createMonth(r,o))}}getWeekNumber(e){let
n=new Date(e.getTime());n.setDate(n.getDate()+4-(n.getDay()||7));let s=n.getTime();return
n.setMonth(0),n.setDate(1),Math.floor(Math.round((s-n.getTime())/864e5)/7)+1}createMonth(e,n){let
s=[],r=this.getFirstDayOfMonthIndex(e,n),o=this.getDaysCountInMonth(e,n),u=this
.getDaysCountInPrevMonth(e,n),h=1,b=new Date,y=[],w=Math.ceil((o+r)/7);for(let
M=0;M<w;M++){let E=[];if(0==M){for(let O=u-r+1;O<=u;O++){let
N=this.getPreviousMonthAndYear(e,n);E.push({day:O,month:N.month,year:N.year,otherMonth:!0,today:this.isToday(b,O,N.month,N.year),selectable:this.isSelectable(O,N.month,N.year,!0)})}let
L=7-E.length;for(let
O=0;O<L;O++)E.push({day:h,month:e,year:n,today:this.isToday(b,h,e,n),selectable:this.isSelectable(h,e,n,!1)}),h++}else
for(let L=0;L<7;L++){if(h>o){let
O=this.getNextMonthAndYear(e,n);E.push({day:h-o,month:O.month,year:O.year,otherMonth:!0,today:this.isToday(b,h-o,O.month,O.year),selectable:this.isSelectable(h-o,O.month,O.year,!0)})}else
E.push({day:h,month:e,year:n,today:this.isToday(b,h,e,n),selectable:this.isSelectable(h,e,n,!1)});h++}this.showWeek&&y.push(this.getWeekNumber(new
Date(E[0].year,E[0].month,E[0].day))),s.push(E)}return{month:e,year:n,dates:s,weekNumbers:y}}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"===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({m
onth: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[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.setCurrentView("month"),e.preventDefault()}switchToYearView(e){this.setCurrentView("year"),e.preventDefault()}onDateSelect(e,n){!this.disabled&&n.selectable?(this.isMultipleSelection()&&this.isSelected(n)?(this
.value=this.value.filter((s,r)=>!this.isDateEquals(s,n)),0===this.value.length&&(this.value=null),this.updateModel(this.value)):this.shouldSelectDate(n)&&this.selectDate(n),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,n){"month"===this.view?this.onDateSelect(e,{year:this.currentYear,month:n,day:1,selectable:!0}):(this.currentMonth=n,this.createMonths(this.currentMonth,this.currentYear),this.setCurrentView("date"),this.onMonthChange.emit({month:this.currentMonth+1,year:this.currentYear}))}onYearSelect(e,n){"year"===this.view?this.onDateSelect(e,{year:n,month:0,day:1,selectable:!0}):(this.currentYear=n,this.setCurrentView("month"),this.onYearChange.emit({m
onth: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
n=0;n<this.value.length;n++)e+=this.formatDateTime(this.value[n]),n!==this.value.length-1&&(e+=this.multipleSeparator+"
");else
if(this.isRangeSelection()&&this.value&&this.value.length){let
s=this.value[1];e=this.formatDateTime(this.value[0]),s&&(e+="
"+this.rangeSeparator+"
"+this.formatDateTime(s))}this.inputFieldValue=e,this.updateFilledState(),this.inputfieldViewChild&&this.inputfieldViewChild.nativeElement&&(this.inputfieldViewChild.nativeElement.value=this.inputFieldValue)}formatDateTime(e){let
n=this.keepInvalid?e:null;return
this.isValidDate(e)&&(this.timeOnly?n=this.formatTime(e):(n=this.formatDate(e,this.getDateFormat()),this.showTime&&(n+="
"+this.formatTime(e)))),n}setCurrentHourPM(e){"12"==this.hourFormat?(this.pm=e>11,this.currentHour=e>=12?12==e?12:e-12:0==e?12:e):this.curr
entHour=e}setCurrentView(e){this.currentView=e,this.cd.detectChanges(),this.alignOverlay()}selectDate(e){let
n=new
Date(e.year,e.month,e.day);if(this.showTime&&(n.setHours("12"==this.hourFormat?12===this.currentHour?this.pm?12:0:this.pm?this.currentHour+12:this.currentHour:this.currentHour),n.setMinutes(this.currentMinute),n.setSeconds(this.currentSecond)),this.minDate&&this.minDate>n&&(n=this.minDate,this.setCurrentHourPM(n.getHours()),this.currentMinute=n.getMinutes(),this.currentSecond=n.getSeconds()),this.maxDate&&this.maxDate<n&&(n=this.maxDate,this.setCurrentHourPM(n.getHours()),this.currentMinute=n.getMinutes(),this.currentSecond=n.getSeconds()),this.isSingleSelection())this.updateModel(n);else
if(this.isMultipleSelection())this.updateModel(this.value?[...this.value,n]:[n]);else
if(this.isRangeSelection())if(this.value&&this.value.length){let
s=this.value[0],r=this.value[1];!r&&n.getTime()>=s.getTime()?r=n:(s=n,r=null),this.updateModel([s,r])}else
this.updateModel([n,null]);t
his.onSelect.emit(n)}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
n=null;this.value&&(n=this.value.map(s=>this.formatDateTime(s))),this.onModelChange(n)}}getFirstDayOfMonthIndex(e,n){let
s=new Date;s.setDate(1),s.setMonth(e),s.setFullYear(n);let
r=s.getDay()+this.getSundayIndex();return r>=7?r-7:r}getDaysCountInMonth(e,n){return
32-this.daylightSavingAdjust(new Date(n,e,32)).getDate()}getDaysCountInPrevMonth(e,n){let
s=this.getPreviousMonthAndYear(e,n);return
this.getDaysCountInMonth(s.month,s.year)}getPreviousMonthAndYear(e,n){let s,r;return
0===e?(s=11,r=n-1):(s=e-1,r=n),{month:s,year:r}}getNextMonthAndYear(e,n){let s,r;return
11===e?(s=0,r=n+1):(s=e+1,r=n),{month:s,year:r}}getSundayIndex(){let
e=this.getFirstDateOfWeek();return
e>0?7-e:0}isSelected(e){if(!this.value)return!1;if(this.isSingleSelection())return
this.isDateEq
uals(this.value,e);if(this.isMultipleSelection()){let n=!1;for(let s of
this.value)if(n=this.isDateEquals(s,e),n)break;return n}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
n=this.isRangeSelection()?this.value[0]:this.value;return!this.isMultipleSelection()&&n.getMonth()===e&&n.getFullYear()===this.currentYear}return!1}isYearSelected(e){if(this.isComparable()){let
n=this.isRangeSelection()?this.value[0]:this.value;return!this.isMultipleSelection()&&n.getFullYear()===e}return!1}isDateEquals(e,n){return!!(e&&e
instanceof
Date)&&e.getDate()===n.day&&e.getMonth()===n.month&&e.getFullYear()===n.year}isDateBetween(e,n,s){if(e&&n){let
o=new Date(s.year,s.month,s.day);return
e.getTime()<=o.getTime()&&n.getTime()>=o.g
etTime()}return!1}isSingleSelection(){return"single"===this.selectionMode}isRangeSelection(){return"range"===this.selectionMode}isMultipleSelection(){return"multiple"===this.selectionMode}isToday(e,n,s,r){return
e.getDate()===n&&e.getMonth()===s&&e.getFullYear()===r}isSelectable(e,n,s,r){let
o=!0,u=!0,h=!0,b=!0;return!(r&&!this.selectOtherMonths)&&(this.minDate&&(this.minDate.getFullYear()>s||this.minDate.getFullYear()===s&&(this.minDate.getMonth()>n||this.minDate.getMonth()===n&&this.minDate.getDate()>e))&&(o=!1),this.maxDate&&(this.maxDate.getFullYear()<s||this.maxDate.getFullYear()===s&&(this.maxDate.getMonth()<n||this.maxDate.getMonth()===n&&this.maxDate.getDate()<e))&&(u=!1),this.disabledDates&&(h=!this.isDateDisabled(e,n,s)),this.disabledDays&&(b=!this.isDayDisabled(e,n,s)),o&&u&&h&&b)}isDateDisabled(e,n,s){if(this.disabledDates)for(let
r of
this.disabledDates)if(r.getFullYear()===s&&r.getMonth()===n&&r.getDate()===e)return!0;return!1}isDayDisabled(e,n,s){if(this.disabledDays)
{let o=new
Date(s,n,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,n){this.overlayVisible?this.hideOverlay():(n.focus(),this.showOverlay())}clear(){this.inputFieldValue=null,this.value=null,this.onModelChange(this.value),this.onClear.emit()}onOverlayClick(e){this.overlayService.add({originalEvent:e,target:this.el.nativeElement})}getMonthName(e){return
this.config.getTranslation("monthNames")[e]}getYear(e){return"month"===this.currentView?this.currentYear:e.year}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},thi
s.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&&(R.getFocusableElements(this.contentViewChild.nativeElement).forEach(n=>n.tabIndex="-1"),this.overlayVisible&&(this.overlayVisible=!1))}onDateCellKeydown(e,n,s){const
r=e.currentTarget,o=r.parentElement;switch(e.which){case 40:{r.tabIndex="-1";let
u=R.index(o),h=o.parentElement.nextElementSibling;h?R.hasClass(h.children[u].children[0],"p-disabled")?(this.navigationState={backward:!1},this.navForward(e)):(h.children[u].children[0].tabIndex="0",h.children[u].children[0].focus()):(this.navigationState={backward:!1},this.navForward(e)),e.preventDefault();break}case
38:{r.tabIndex="-1";let u=R.index(o),h=o.parentE
lement.previousElementSibling;if(h){let
b=h.children[u].children[0];R.hasClass(b,"p-disabled")?(this.navigationState={backward:!0},this.navBackward(e)):(b.tabIndex="0",b.focus())}else
this.navigationState={backward:!0},this.navBackward(e);e.preventDefault();break}case
37:{r.tabIndex="-1";let u=o.previousElementSibling;if(u){let
h=u.children[0];R.hasClass(h,"p-disabled")||R.hasClass(h.parentElement,"p-datepicker-weeknumber")?this.navigateToMonth(!0,s):(h.tabIndex="0",h.focus())}else
this.navigateToMonth(!0,s);e.preventDefault();break}case 39:{r.tabIndex="-1";let
u=o.nextElementSibling;if(u){let
h=u.children[0];R.hasClass(h,"p-disabled")?this.navigateToMonth(!1,s):(h.tabIndex="0",h.focus())}else
this.navigateToMonth(!1,s);e.preventDefault();break}case 13:case
32:this.onDateSelect(e,n),e.preventDefault();break;case
27:this.overlayVisible=!1,e.preventDefault();break;case
9:this.inline||this.trapFocus(e)}}onMonthCellKeydown(e,n){const
s=e.currentTarget;switch(e.which){case 38:case 40:{s.
tabIndex="-1";var r=s.parentElement.children,o=R.index(s);let
u=r[40===e.which?o+3:o-3];u&&(u.tabIndex="0",u.focus()),e.preventDefault();break}case
37:{s.tabIndex="-1";let
u=s.previousElementSibling;u?(u.tabIndex="0",u.focus()):(this.navigationState={backward:!0},this.navBackward(e)),e.preventDefault();break}case
39:{s.tabIndex="-1";let
u=s.nextElementSibling;u?(u.tabIndex="0",u.focus()):(this.navigationState={backward:!1},this.navForward(e)),e.preventDefault();break}case
13:this.onMonthSelect(e,n),e.preventDefault();break;case 13:case 32:case
27:this.overlayVisible=!1,e.preventDefault();break;case
9:this.inline||this.trapFocus(e)}}onYearCellKeydown(e,n){const
s=e.currentTarget;switch(e.which){case 38:case 40:{s.tabIndex="-1";var
r=s.parentElement.children,o=R.index(s);let
u=r[40===e.which?o+2:o-2];u&&(u.tabIndex="0",u.focus()),e.preventDefault();break}case
37:{s.tabIndex="-1";let
u=s.previousElementSibling;u?(u.tabIndex="0",u.focus()):(this.navigationState={backward:!0},this.navBac
kward(e)),e.preventDefault();break}case 39:{s.tabIndex="-1";let
u=s.nextElementSibling;u?(u.tabIndex="0",u.focus()):(this.navigationState={backward:!1},this.navForward(e)),e.preventDefault();break}case
13:case 32:this.onYearSelect(e,n),e.preventDefault();break;case
27:this.overlayVisible=!1,e.preventDefault();break;case
9:this.trapFocus(e)}}navigateToMonth(e,n){if(e)if(1===this.numberOfMonths||0===n)this.navigationState={backward:!0},this.navBackward(event);else{let
r=R.find(this.contentViewChild.nativeElement.children[n-1],".p-datepicker-calendar td
span:not(.p-disabled):not(.p-ink)"),o=r[r.length-1];o.tabIndex="0",o.focus()}else
if(1===this.numberOfMonths||n===this.numberOfMonths-1)this.navigationState={backward:!1},this.navForward(event);else{let
r=R.findSingle(this.contentViewChild.nativeElement.children[n+1],".p-datepicker-calendar
td
span:not(.p-disabled):not(.p-ink)");r.tabIndex="0",r.focus()}}updateFocus(){let
e;if(this.navigationState){if(this.navigationState.button)this.in
itFocusableCell(),this.navigationState.backward?R.findSingle(this.contentViewChild.nativeElement,".p-datepicker-prev").focus():R.findSingle(this.contentViewChild.nativeElement,".p-datepicker-next").focus();else{if(this.navigationState.backward){let
n;n=R.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)"),n&&n.length>0&&(e=n[n.length-1])}else
e=R.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 n=R.find(this.conte
ntViewChild.nativeElement,".p-monthpicker
.p-monthpicker-month:not(.p-disabled)"),s=R.findSingle(this.contentViewChild.nativeElement,".p-monthpicker
.p-monthpicker-month.p-highlight");n.forEach(r=>r.tabIndex=-1),e=s||n[0],0===n.length&&R.find(this.contentViewChild.nativeElement,'.p-monthpicker
.p-monthpicker-month.p-disabled[tabindex =
"0"]').forEach(o=>o.tabIndex=-1)}else
if("year"===this.currentView){let
n=R.find(this.contentViewChild.nativeElement,".p-yearpicker
.p-yearpicker-year:not(.p-disabled)"),s=R.findSingle(this.contentViewChild.nativeElement,".p-yearpicker
.p-yearpicker-year.p-highlight");n.forEach(r=>r.tabIndex=-1),e=s||n[0],0===n.length&&R.find(this.contentViewChild.nativeElement,'.p-yearpicker
.p-yearpicker-year.p-disabled[tabindex =
"0"]').forEach(o=>o.tabIndex=-1)}else
if(e=R.findSingle(this.contentViewChild.nativeElement,"span.p-highlight"),!e){let
n=R.findSingle(this.contentViewChild.nativeElement,"td.p-datepicker-today
span:not(.p-disabled):not(.p-ink)");e=n||R.fi
ndSingle(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
n=R.getFocusableElements(this.contentViewChild.nativeElement);if(n&&n.length>0)if(n[0].ownerDocument.activeElement){let
s=n.indexOf(n[0].ownerDocument.activeElement);if(e.shiftKey)if(-1==s||0===s)if(this.focusTrap)n[n.length-1].focus();else{if(-1===s)return
this.hideOverlay();if(0===s)return}else n[s-1].focus();else
if(-1==s||s===n.length-1){if(!this.focusTrap&&-1!=s)return
this.hideOverlay();n[0].focus()}else n[s+1].focus()}else
n[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,n,s,r){let
o=this.value;const
u=this.convertTo24Hour(e,r);this.isRangeSelection()&&(o=this.value[1]||this.value[0]),this.isMultipleSelection()&&(o=this.value[this.value.length-1]);const
h=o?o.toDateString():null;return!(this.minDate&&h&&this.minDate.toDateString()===h&&(this.minDate.getHours()>u||this.minDate.getHours()===u&&(this.minDate.getMinutes()>n||this.minDate.getMinutes()===n&&this.minDate.getSeconds()>s))||this.maxDate&&h&&this.maxDate.toDateString()===h&&(this.maxDate.getHours()<u||this.maxDate.getHours()===u&&(this.maxDate.getMinutes()<n||this.maxDate.getMinutes()===n&&this.maxDate.getSeconds()<s)))}incrementHour(e){let
s=this.currentHour+this.stepHour,r=this.pm;"24"==this.hourFormat?s=s>=24?s-24:s:"12"==this.hourFormat&&(this.currentHour<12&&s>11&&(r=!this.pm),s=s>=13?s-12:s),this.validateTime(s,this.currentMinute,this.currentSecond,r)&&(this.currentHou
r=s,this.pm=r),e.preventDefault()}onTimePickerElementMouseDown(e,n,s){this.disabled||(this.repeat(e,null,n,s),e.preventDefault())}onTimePickerElementMouseUp(e){this.disabled||(this.clearTimePickerTimer(),this.updateTime())}onTimePickerElementMouseLeave(){!this.disabled&&this.timePickerTimer&&(this.clearTimePickerTimer(),this.updateTime())}repeat(e,n,s,r){let
o=n||500;switch(this.clearTimePickerTimer(),this.timePickerTimer=setTimeout(()=>{this.repeat(e,100,s,r),this.cd.markForCheck()},o),s){case
0:1===r?this.incrementHour(e):this.decrementHour(e);break;case
1:1===r?this.incrementMinute(e):this.decrementMinute(e);break;case
2:1===r?this.incrementSecond(e):this.decrementSecond(e)}this.updateInputfield()}clearTimePickerTimer(){this.timePickerTimer&&(clearTimeout(this.timePickerTimer),this.timePickerTimer=null)}decrementHour(e){let
n=this.currentHour-this.stepHour,s=this.pm;"24"==this.hourFormat?n=n<0?24+n:n:"12"==this.hourFormat&&(12===this.currentHour&&(s=!this.pm),n=n<=0?12+n:n),this.
validateTime(n,this.currentMinute,this.currentSecond,s)&&(this.currentHour=n,this.pm=s),e.preventDefault()}incrementMinute(e){let
n=this.currentMinute+this.stepMinute;n=n>59?n-60:n,this.validateTime(this.currentHour,n,this.currentSecond,this.pm)&&(this.currentMinute=n),e.preventDefault()}decrementMinute(e){let
n=this.currentMinute-this.stepMinute;n=n<0?60+n:n,this.validateTime(this.currentHour,n,this.currentSecond,this.pm)&&(this.currentMinute=n),e.preventDefault()}incrementSecond(e){let
n=this.currentSecond+this.stepSecond;n=n>59?n-60:n,this.validateTime(this.currentHour,this.currentMinute,n,this.pm)&&(this.currentSecond=n),e.preventDefault()}decrementSecond(e){let
n=this.currentSecond-this.stepSecond;n=n<0?60+n:n,this.validateTime(this.currentHour,this.currentMinute,n,this.pm)&&(this.currentSecond=n),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
n=!this.pm;this.validateTime(this.currentHour,this.currentMinute,this.currentSecond,n)&&(this.pm=n,this.updateTime()),e.preventDefault()}onUserInput(e){if(!this.isKeydown)return;this.isKeydown=!1;let
n=e.target.value;try{let
s=this.parseValueFromString(n);this.isValidSelection(s)&&(this.updateModel(s),this.updateUI())}catch(s){this.updateModel(this.keepInvalid?n:null)}this.filled=null!=n&&n.length,this.onInput.emit(e)}isValidSelection(e){let
n=!0;return
this.isSingleSelection()?this.isSelectable(e.getDate(),e.getMonth(),e.getFullYear(),!1)||(n=!1):e.eve
ry(s=>this.isSelectable(s.getDate(),s.getMonth(),s.getFullYear(),!1))&&this.isRangeSelection()&&(n=e.length>1&&e[1]>e[0]),n}parseValueFromString(e){if(!e||0===e.trim().length)return
null;let n;if(this.isSingleSelection())n=this.parseDateTime(e);else
if(this.isMultipleSelection()){let s=e.split(this.multipleSeparator);n=[];for(let r of
s)n.push(this.parseDateTime(r.trim()))}else if(this.isRangeSelection()){let
s=e.split(" "+this.rangeSeparator+" ");n=[];for(let
r=0;r<s.length;r++)n[r]=this.parseDateTime(s[r].trim())}return n}parseDateTime(e){let
n,s=e.split(" ");if(this.timeOnly)n=new
Date,this.populateTime(n,s[0],s[1]);else{const
r=this.getDateFormat();if(this.showTime){let
o="12"==this.hourFormat?s.pop():null,u=s.pop();n=this.parseDate(s.join("
"),r),this.populateTime(n,u,o)}else n=this.parseDate(e,r)}return
n}populateTime(e,n,s){if("12"==this.hourFormat&&!s)throw"Invalid
Time";this.pm="PM"===s||"pm"===s;let
r=this.parseTime(n);e.setHours(r.hour),e.setMinutes(r.minute),e.setSeconds
(r.second)}isValidDate(e){return e instanceof
Date&&Z.isNotEmpty(e)}updateUI(){let
e=this.value;Array.isArray(e)&&(e=e[0]);let
n=this.defaultDate&&this.isValidDate(this.defaultDate)&&!this.value?this.defaultDate:e&&this.isValidDate(e)?e:new
Date;this.currentMonth=n.getMonth(),this.currentYear=n.getFullYear(),this.createMonths(this.currentMonth,this.currentYear),(this.showTime||this.timeOnly)&&(this.setCurrentHourPM(n.getHours()),this.currentMinute=n.getMinutes(),this.currentSecond=n.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.over
lay.setAttribute(this.attributeSelector,""),this.appendOverlay(),this.updateFocus(),this.autoZIndex&&(this.touchUI?dt.set("modal",this.overlay,this.baseZIndex||this.config.zIndex.modal):dt.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&&dt.clear(e.element)}}appendOverlay(){this.appendTo&&("body"===this.appendTo?document.body.appendChild(this.overlay):R.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=R.getOuterWidth(t
his.overlay)+"px",this.overlay.style.minWidth=R.getOuterWidth(this.inputfieldViewChild.nativeElement)+"px"):this.overlay.style.width=R.getOuterWidth(this.inputfieldViewChild.nativeElement)+"px",R.absolutePosition(this.overlay,this.inputfieldViewChild.nativeElement)):R.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),R.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",s=>{this.disableModality()}),document.body.appendChild(this.mask),R.addClass(document.body,"p-overflow-hidden"))}disableModality(){this.mask&&(R.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 n,e=document.body.children;for(let
s=0;s<e.length;s++)if(R.hasClass(e[s],"p-datepicker-mask-scrollblocker")){n=!0;break}n||R.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){if(this.value=e,this.value&&"string"==typeof
this.value)try{this.value=this.parseValueFromString(this.value)}catch(n){this.keepInvalid&&(this.value=e)}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||th
is.getTranslation("dateFormat")}getFirstDateOfWeek(){return
this._firstDayOfWeek||this.getTranslation(Ft.FIRST_DAY_OF_WEEK)}formatDate(e,n){if(!e)return"";let
s;const r=y=>{const w=s+1<n.length&&n.charAt(s+1)===y;return
w&&s++,w},o=(y,w,M)=>{let
E=""+w;if(r(y))for(;E.length<M;)E="0"+E;return
E},u=(y,w,M,E)=>r(y)?E[w]:M[w];let
h="",b=!1;if(e)for(s=0;s<n.length;s++)if(b)"'"!==n.charAt(s)||r("'")?h+=n.charAt(s):b=!1;else
switch(n.charAt(s)){case"d":h+=o("d",e.getDate(),2);break;case"D":h+=u("D",e.getDay(),this.getTranslation(Ft.DAY_NAMES_SHORT),this.getTranslation(Ft.DAY_NAMES));break;case"o":h+=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":h+=o("m",e.getMonth()+1,2);break;case"M":h+=u("M",e.getMonth(),this.getTranslation(Ft.MONTH_NAMES_SHORT),this.getTranslation(Ft.MONTH_NAMES));break;case"y":h+=r("y")?e.getFullYear():(e.getFullYear()%100<10?"0":"")+e.getFullYear()%100;break;case"@":h+=e.
getTime();break;case"!":h+=1e4*e.getTime()+this.ticksTo1970;break;case"'":r("'")?h+="'":b=!0;break;default:h+=n.charAt(s)}return
h}formatTime(e){if(!e)return"";let
n="",s=e.getHours(),r=e.getMinutes(),o=e.getSeconds();return"12"==this.hourFormat&&s>11&&12!=s&&(s-=12),n+="12"==this.hourFormat&&0===s?12:s<10?"0"+s:s,n+=":",n+=r<10?"0"+r:r,this.showSeconds&&(n+=":",n+=o<10?"0"+o:o),"12"==this.hourFormat&&(n+=e.getHours()>11?"
PM":" AM"),n}parseTime(e){let
n=e.split(":");if(n.length!==(this.showSeconds?3:2))throw"Invalid
time";let
r=parseInt(n[0]),o=parseInt(n[1]),u=this.showSeconds?parseInt(n[2]):null;if(isNaN(r)||isNaN(o)||r>23||o>59||"12"==this.hourFormat&&r>12||this.showSeconds&&(isNaN(u)||u>59))throw"Invalid
time";return"12"==this.hourFormat&&(12!==r&&this.pm?r+=12:!this.pm&&12===r&&(r-=12)),{hour:r,minute:o,second:u}}parseDate(e,n){if(null==n||null==e)throw"Invalid
arguments";if(""===(e="object"==typeof
e?e.toString():e+""))return null;let s,r,o,L,u=0,h="string"!=typeof
this.short
YearCutoff?this.shortYearCutoff:(new
Date).getFullYear()%100+parseInt(this.shortYearCutoff,10),b=-1,y=-1,w=-1,M=-1,E=!1,O=J=>{let
se=s+1<n.length&&n.charAt(s+1)===J;return se&&s++,se},N=J=>{let
se=O(J),ke="@"===J?14:"!"===J?20:"y"===J&&se?4:"o"===J?3:2,Ct=new
RegExp("^\\d{"+("y"===J?ke:1)+","+ke+"}"),Ut=e.substring(u).match(Ct);if(!Ut)throw"Missing
number at position "+u;return
u+=Ut[0].length,parseInt(Ut[0],10)},G=(J,se,ke)=>{let mt=-1,Ct=O(J)?ke:se,Ut=[];for(let
At=0;At<Ct.length;At++)Ut.push([At,Ct[At]]);Ut.sort((At,hn)=>-(At[1].length-hn[1].length));for(let
At=0;At<Ut.length;At++){let
hn=Ut[At][1];if(e.substr(u,hn.length).toLowerCase()===hn.toLowerCase()){mt=Ut[At][0],u+=hn.length;break}}if(-1!==mt)return
mt+1;throw"Unknown name at position
"+u},P=()=>{if(e.charAt(u)!==n.charAt(s))throw"Unexpected literal at position
"+u;u++};for("month"===this.view&&(w=1),s=0;s<n.length;s++)if(E)"'"!==n.charAt(s)||O("'")?P():E=!1;else
switch(n.charAt(s)){case"d":w=N("d");break;case"D":G("D",thi
s.getTranslation(Ft.DAY_NAMES_SHORT),this.getTranslation(Ft.DAY_NAMES));break;case"o":M=N("o");break;case"m":y=N("m");break;case"M":y=G("M",this.getTranslation(Ft.MONTH_NAMES_SHORT),this.getTranslation(Ft.MONTH_NAMES));break;case"y":b=N("y");break;case"@":L=new
Date(N("@")),b=L.getFullYear(),y=L.getMonth()+1,w=L.getDate();break;case"!":L=new
Date((N("!")-this.ticksTo1970)/1e4),b=L.getFullYear(),y=L.getMonth()+1,w=L.getDate();break;case"'":O("'")?P():E=!0;break;default:P()}if(u<e.length&&(o=e.substr(u),!/^\s+/.test(o)))throw"Extra/unparsed
characters found in date: "+o;if(-1===b?b=(new
Date).getFullYear():b<100&&(b+=(new Date).getFullYear()-(new
Date).getFullYear()%100+(b<=h?0:-100)),M>-1)for(y=1,w=M;r=this.getDaysCountInMonth(b,y-1),!(w<=r);)y++,w-=r;if(L=this.daylightSavingAdjust(new
Date(b,y-1,w)),L.getFullYear()!==b||L.getMonth()+1!==y||L.getDate()!==w)throw"Invalid
date";return L}daylightSavingAdjust(e){return
e?(e.setHours(e.getHours()>12?e.getHours()+2:0),e):null}updateFilledS
tate(){this.filled=this.inputFieldValue&&""!=this.inputFieldValue}onTodayButtonClick(e){let
n=new
Date,s={day:n.getDate(),month:n.getMonth(),year:n.getFullYear(),otherMonth:n.getMonth()!==this.currentMonth||n.getFullYear()!==this.currentYear,today:!0,selectable:!0};this.onDateSelect(e,s),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
n=[...this.responsiveOptions].filter(s=>!(!s.breakpoint||!s.numMonths)).sort((s,r)=>-1*s.breakpoint.localeCompare(r.breakpoint,void
0,{numeric:!0}));for(let s=0;s<n.length;s++){let{breakpoint:r,numMonths:o}=n[s],u=`\n
.p-datepicker[${this.at
tributeSelector}] .p-datepicker-group:nth-child(${o}) .p-datepicker-next {\n
display: inline-flex !important;\n }\n
`;for(let h=o;h<this.numberOfMonths;h++)u+=`\n
.p-datepicker[${this.attributeSelector}] .p-datepicker-group:nth-child(${h+1}) {\n
display: none !important;\n }\n
`;e+=`\n @media screen and (max-width: ${r}) {\n
${u}\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",n=>{this.
isOutsideClicked(n)&&this.overlayVisible&&this.zone.run(()=>{this.hideOverlay(),this.onClickOutside.emit(n),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
Qs(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
R.hasClass(e.target,"p-datepicker-prev")||R.hasClass(e.target,"p-datepicker-prev-icon")||R.hasClass(e.target,"p-datepicker-next")||R.hasClass(e.target,"p-datepicker-next-icon")}onWindowResize(){this.overlayVisible&&!R.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&&dt.clear(this.overlay),this.destroyResponsiveStyleElement(),this.clearTimePickerTimer(),this.restoreOverlayAppend(),this.onOverlayHide()}}return
t.\u0275fac=function(e){return
new(e||t)(D(De),D(gn),D(rt),D(nt),D(zn),D(Ks))},t.\u0275cmp=z({type:t,selecto
rs:[["p-calendar"]],contentQueries:function(e,n,s){if(1&e&&st(s,ne,4),2&e){let
r;V(r=B())&&(n.templates=r)}},viewQuery:function(e,n){if(1&e&&(W(pN,5),W(hN,5),W(mN,5)),2&e){let
s;V(s=B())&&(n.containerViewChild=s.first),V(s=B())&&(n.inputfieldViewChild=s.first),V(s=B())&&(n.content=s.first)}},hostAttrs:[1,"p-element","p-inputwrapper"],hostVars:6,hostBindings:function(e,n){2&e&&si("p-inputwrapper-filled",n.filled)("p-inputwrapper-focus",n.focus)("p-calendar-clearable",n.showClear&&!n.disabled)},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:"readonly
Input",shortYearCutoff:"shortYearCutoff",monthNavigator:"monthNavigator",yearNavigator:"yearNavigator",hourFormat:"hourFormat",timeOnly:"timeOnly",stepHour:"stepHour",stepMinute:"stepMinute",stepSecond:"stepSecond",showSeconds:"showSeconds",required:"required",showOnFocus:"showOnFocus",showWeek:"showWeek",showClear:"showClear",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",minDate:"minDate",maxDate:"maxDate",disabledDates:"disabledDates",disabl
edDays:"disabledDays",yearRange:"yearRange",showTime:"showTime",responsiveOptions:"responsiveOptions",numberOfMonths:"numberOfMonths",firstDayOfWeek:"firstDayOfWeek",locale:"locale"},outputs:{onFocus:"onFocus",onBlur:"onBlur",onClose:"onClose",onSelect:"onSelect",onClear:"onClear",onInput:"onInput",onTodayClick:"onTodayClick",onClearClick:"onClearClick",onMonthChange:"onMonthChange",onYearChange:"onYearChange",onClickOutside:"onClickOutside",onShow:"onShow"},features:[Pe([r5])],ngContentSelectors:s5,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",""],["class","p-calendar-clear-icon
pi
pi-times",3,"click",4,"ngIf"],["type","button","pButton","","pRipple","","class","p-datepicker-trigger","tabindex","0",3,"icon","disabled","click",4,"ngIf"],[1,"p-calenda
r-clear-icon","pi","pi-times",3,"click"],["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-chevr
on-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"],["pR
ipple","",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,n){1&e&&(Sn(t5),l(0,"span",0,1),_(2,_N,4,17,"ng-template",2),_(3,e5,9,28,"div",3),c()),2&e&&(me(n.styleClass),p("ngC
lass",qn(6,n5,n.showIcon,n.timeOnly,n.disabled,n.focus))("ngStyle",n.style),a(2),p("ngIf",!n.inline),a(1),p("ngIf",n.inline||n.overlayVisible))},directives:[Le,lt,Q,On,bt,Rt,at],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;p
osition: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;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:translat
e(-50%,-50%)}.p-yearpicker-year{width:50%;display:inline-flex;align-items:center;justify-content:center;cursor:pointer;overflow:hidden;position:relative}.p-calendar-clear-icon{position:absolute;top:50%;margin-top:-.5rem;cursor:pointer}.p-calendar-clearable{position:relative}\n"],encapsulation:2,data:{animation:[wi("overlayAnimation",[ws("visibleTouchUI",it({transform:"translate(-50%,-50%)",opacity:1})),Lt("void
=>
visible",[it({opacity:0,transform:"scaleY(0.8)"}),kt("{{showTransitionParams}}",it({opacity:1,transform:"*"}))]),Lt("visible
=> void",[kt("{{hideTransitionParams}}",it({opacity:0}))]),Lt("void
=> visibleTouchUI",[it({opacity:0,transform:"translate3d(-50%, -40%, 0)
scale(0.9)"}),kt("{{showTransitionParams}}")]),Lt("visibleTouchUI
=>
void",[kt("{{hideTransitionParams}}",it({opacity:0,transform:"translate3d(-50%,
-40%, 0) scale(0.9)"}))])])]},changeDetection:0}),t})(),cT=(()=>{class t{}return
t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=he({type:t}),t.\u0275inj=ue({i
mports:[[Fe,gl,Nt,pn],gl,Nt]}),t})();function o5(t,i){1&t&&Y(0)}function
a5(t,i){if(1&t&&(l(0,"div",8),St(1,1),_(2,o5,1,0,"ng-container",6),c()),2&t){const
e=d();a(2),p("ngTemplateOutlet",e.headerTemplate)}}function
l5(t,i){1&t&&Y(0)}function
c5(t,i){if(1&t&&(l(0,"div",9),g(1),_(2,l5,1,0,"ng-container",6),c()),2&t){const
e=d();a(1),T(" ",e.header,"
"),a(1),p("ngTemplateOutlet",e.titleTemplate)}}function
u5(t,i){1&t&&Y(0)}function
d5(t,i){if(1&t&&(l(0,"div",10),g(1),_(2,u5,1,0,"ng-container",6),c()),2&t){const
e=d();a(1),T(" ",e.subheader,"
"),a(1),p("ngTemplateOutlet",e.subtitleTemplate)}}function
p5(t,i){1&t&&Y(0)}function h5(t,i){1&t&&Y(0)}function
m5(t,i){if(1&t&&(l(0,"div",11),St(1,2),_(2,h5,1,0,"ng-container",6),c()),2&t){const
e=d();a(2),p("ngTemplateOutlet",e.footerTemplate)}}const
f5=["*",[["p-header"]],[["p-footer"]]],g5=["*","p-header","p-footer"];let
Ne=(()=>{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.template;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)(D(De))},t.\u0275cmp=z({type:t,selectors:[["p-card"]],contentQueries:function(e,n,s){if(1&e&&(st(s,Oo,5),st(s,fl,5),st(s,ne,4)),2&e){let
r;V(r=B())&&(n.headerFacet=r.first),V(r=B())&&(n.footerFacet=r.first),V(r=B())&&(n.templates=r)}},hostAttrs:[1,"p-element"],inputs:{header:"header",subheader:"subheader",style:"style",styleClass:"styleClass"},ngContentSelectors:g5,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:function(e,n){1&e&&(Sn(f5),l(0,"div",0),_(1,a5,3,1,"div",1),l(2,"div",2),_(3,c5,3,2,"div",3),_(4,d5,3,2,"div",4),l(5,"div",5),St(6),_(7,p5,1,0,"ng-container",6),c(),_(8,m5,3,1,"div",7),c()()),2&e&&(me(n.styleClass),p("ngClass","p-card
p-component")("ngStyle",n.style),a(1),p("ngIf",n.headerFacet||n.headerTemplate),a(2),p("ngIf",n.header||n.titleTemplate),a(1),p("ngIf",n.subheader||n.subtitleTemplate),a(3),p("ngTemplateOutlet",n.contentTemplate),a(1),p("ngIf",n.footerFacet||n.footerTemplate))},directives:[Le,lt,Q,Rt],styles:[".p-card-header
img{width:100%}\n"],encapsulation:2,changeDetection:0}),t})(),_5=(()=>{class
t{}return t.\u0275fac=function(e){return
new(e||t)},t.\u0275mod=he({type:t}),t.\u0275inj=ue({imports:[[Fe],Nt]}),t})();const
b5=["cb"],v5=function(t,i,e){return{"p-checkbox-label":!0,"p-checkbox-label-active":t,"p-disabled":i,"p-checkbox-label-focus":e}};function
C5(t,i){if(1&t){const e=I();l(0,"label",7)
,C("click",function(s){v(e);const r=d(),o=F(3);return
r.onClick(s,o,!0)}),g(1),c()}if(2&t){const
e=d();me(e.labelStyleClass),p("ngClass",Qt(5,v5,e.checked(),e.disabled,e.focused)),ie("for",e.inputId),a(1),S(e.label)}}const
y5=function(t,i,e){return{"p-checkbox
p-component":!0,"p-checkbox-checked":t,"p-checkbox-disabled":i,"p-checkbox-focused":e}},w5=function(t,i,e){return{"p-highlight":t,"p-disabled":i,"p-focus":e}},T5={provide:dn,useExisting:je(()=>sn),multi:!0};let
sn=(()=>{class t{constructor(e){this.cd=e,this.checkboxIcon="pi
pi-check",this.trueValue=!0,this.falseValue=!1,this.onChange=new
H,this.onModelChange=()=>{},this.onModelTouched=()=>{},this.focused=!1}onClick(e,n,s){e.preventDefault(),!this.disabled&&!this.readonly&&(this.updateModel(e),s&&n.focus())}updateModel(e){let
n;this.binary?(n=this.checked()?this.falseValue:this.trueValue,this.model=n,this.onModelChange(n)):(n=this.checked()?this.model.filter(s=>!Z.equals(s,this.value)):this.model?[...this.model,this.value]:[thi
s.value],this.onModelChange(n),this.model=n,this.formControl&&this.formControl.setValue(n)),this.onChange.emit({checked:n,originalEvent:e})}handleChange(e){this.readonly||this.updateModel(e)}onFocus(){this.focused=!0}onBlur(){this.focused=!1,this.onModelTouched()}focus(){this.inputViewChild.nativeElement.focus()}writeValue(e){this.model=e,this.cd.markForCheck()}registerOnChange(e){this.onModelChange=e}registerOnTouched(e){this.onModelTouched=e}setDisabledState(e){this.disabled=e,this.cd.markForCheck()}checked(){return
this.binary?this.model===this.trueValue:Z.contains(this.value,this.model)}}return
t.\u0275fac=function(e){return
new(e||t)(D(rt))},t.\u0275cmp=z({type:t,selectors:[["p-checkbox"]],viewQuery:function(e,n){if(1&e&&W(b5,5),2&e){let
s;V(s=B())&&(n.inputViewChild=s.first)}},hostAttrs:[1,"p-element"],inputs:{value:"value",name:"name",disabled:"disabled",binary:"binary",label:"label",ariaLabelledBy:"ariaLabelledBy",ariaLabel:"ariaLabel",tabindex:"tabindex",inputId:"inputId",s
tyle:"style",styleClass:"styleClass",labelStyleClass:"labelStyleClass",formControl:"formControl",checkboxIcon:"checkboxIcon",readonly:"readonly",required:"required",trueValue:"trueValue",falseValue:"falseValue"},outputs:{onChange:"onChange"},features:[Pe([T5])],decls:7,vars:26,consts:[[3,"ngStyle","ngClass"],[1,"p-hidden-accessible"],["type","checkbox",3,"readonly","value","checked","disabled","focus","blur","change"],["cb",""],[1,"p-checkbox-box",3,"ngClass","click"],[1,"p-checkbox-icon",3,"ngClass"],[3,"class","ngClass","click",4,"ngIf"],[3,"ngClass","click"]],template:function(e,n){if(1&e){const
s=I();l(0,"div",0)(1,"div",1)(2,"input",2,3),C("focus",function(){return
n.onFocus()})("blur",function(){return
n.onBlur()})("change",function(o){return
n.handleChange(o)}),c()(),l(4,"div",4),C("click",function(o){v(s);const
u=F(3);return
n.onClick(o,u,!0)}),k(5,"span",5),c()(),_(6,C5,2,9,"label",6)}2&e&&(me(n.styleClass),p("ngStyle",n.style)("ngClass",Qt(18,y5,n.checked(),n.disabled,n.fo
cused)),a(2),p("readonly",n.readonly)("value",n.value)("checked",n.checked())("disabled",n.disabled),ie("id",n.inputId)("name",n.name)("tabindex",n.tabindex)("aria-labelledby",n.ariaLabelledBy)("aria-label",n.ariaLabel)("aria-checked",n.checked())("required",n.required),a(2),p("ngClass",Qt(22,w5,n.checked(),n.disabled,n.focused)),a(1),p("ngClass",n.checked()?n.checkboxIcon:null),a(1),p("ngIf",n.label))},directives:[lt,Le,Q],styles:[".p-checkbox{display:inline-flex;cursor:pointer;-webkit-user-select:none;user-select:none;vertical-align:bottom;position:relative}.p-checkbox-disabled{cursor:default!important;pointer-events:none}.p-checkbox-box{display:flex;justify-content:center;align-items:center}p-checkbox{display:inline-flex;vertical-align:bottom;align-items:center}.p-checkbox-label{line-height:1}\n"],encapsulation:2,changeDetection:0}),t})(),S5=(()=>{class
t{}return t.\u0275fac=function(e){return
new(e||t)},t.\u0275mod=he({type:t}),t.\u0275inj=ue({imports:[[Fe]]}),t})();function Ku(
t,i=0){return function
D5(t){return!isNaN(parseFloat(t))&&!isNaN(Number(t))}(t)?Number(t):i}function
Uf(t,i,e,n){return Is(e)&&(n=e,e=void
0),n?Uf(t,i,e).pipe(et(s=>Nr(s)?n(...s):n(s))):new Je(s=>{uT(t,i,function
r(o){s.next(arguments.length>1?Array.prototype.slice.call(arguments):o)},s,e)})}function
uT(t,i,e,n,s){let r;if(function E5(t){return t&&"function"==typeof
t.addEventListener&&"function"==typeof t.removeEventListener}(t)){const
o=t;t.addEventListener(i,e,s),r=()=>o.removeEventListener(i,e,s)}else if(function
I5(t){return t&&"function"==typeof
t.on&&"function"==typeof t.off}(t)){const
o=t;t.on(i,e),r=()=>o.off(i,e)}else if(function k5(t){return
t&&"function"==typeof
t.addListener&&"function"==typeof t.removeListener}(t)){const
o=t;t.addListener(i,e),r=()=>o.removeListener(i,e)}else{if(!t||!t.length)throw new
TypeError("Invalid event target");for(let
o=0,u=t.length;o<u;o++)uT(t[o],i,e,n,s)}n.add(r)}const O5=new class L5 extends
Hi{flush(i){this.active=!0,this.scheduled=void 0
;const{actions:e}=this;let
n,s=-1,r=e.length;i=i||e.shift();do{if(n=i.execute(i.state,i.delay))break}while(++s<r&&(i=e.shift()));if(this.active=!1,n){for(;++s<r&&(i=e.shift());)i.unsubscribe();throw
n}}}(class R5 extends
uu{constructor(i,e){super(i,e),this.scheduler=i,this.work=e}requestAsyncId(i,e,n=0){return
null!==n&&n>0?super.requestAsyncId(i,e,n):(i.actions.push(this),i.scheduled||(i.scheduled=requestAnimationFrame(()=>i.flush(null))))}recycleAsyncId(i,e,n=0){if(null!==n&&n>0||null===n&&this.delay>0)return
super.recycleAsyncId(i,e,n);0===i.actions.length&&(cancelAnimationFrame(e),i.scheduled=void
0)}});let A5=1;const P5=Promise.resolve(),Qu={};function dT(t){return t in
Qu&&(delete Qu[t],!0)}const pT={setImmediate(t){const i=A5++;return
Qu[i]=!0,P5.then(()=>dT(i)&&t()),i},clearImmediate(t){dT(t)}},V5=new class N5
extends Hi{flush(i){this.active=!0,this.scheduled=void 0;const{actions:e}=this;let
n,s=-1,r=e.length;i=i||e.shift();do{if(n=i.execute(i.state,i.delay))break}while(++s<
r&&(i=e.shift()));if(this.active=!1,n){for(;++s<r&&(i=e.shift());)i.unsubscribe();throw
n}}}(class F5 extends
uu{constructor(i,e){super(i,e),this.scheduler=i,this.work=e}requestAsyncId(i,e,n=0){return
null!==n&&n>0?super.requestAsyncId(i,e,n):(i.actions.push(this),i.scheduled||(i.scheduled=pT.setImmediate(i.flush.bind(i,null))))}recycleAsyncId(i,e,n=0){if(null!==n&&n>0||null===n&&this.delay>0)return
super.recycleAsyncId(i,e,n);0===i.actions.length&&(pT.clearImmediate(e),i.scheduled=void
0)}});class H5{constructor(i,e){this.compare=i,this.keySelector=e}call(i,e){return
e.subscribe(new q5(i,this.compare,this.keySelector))}}class q5 extends
yt{constructor(i,e,n){super(i),this.keySelector=n,this.hasKey=!1,"function"==typeof
e&&(this.compare=e)}compare(i,e){return i===e}_next(i){let
e;try{const{keySelector:s}=this;e=s?s(i):i}catch(s){return this.destination.error(s)}let
n=!1;if(this.hasKey)try{const{compare:s}=this;n=s(this.key,e)}catch(s){return
this.destination.error(s)}else this.hasKe
y=!0;n||(this.key=e,this.destination.next(i))}}const zf=new Hi(uu);class
U5{constructor(i){this.durationSelector=i}call(i,e){return e.subscribe(new
z5(i,this.durationSelector))}}class z5 extends
Zo{constructor(i,e){super(i),this.durationSelector=e,this.hasValue=!1}_next(i){if(this.value=i,this.hasValue=!0,!this.throttled){let
e;try{const{durationSelector:s}=this;e=s(i)}catch(s){return
this.destination.error(s)}const n=Xo(e,new
Yo(this));!n||n.closed?this.clearThrottle():this.add(this.throttled=n)}}clearThrottle(){const{value:i,hasValue:e,throttled:n}=this;n&&(this.remove(n),this.throttled=void
0,n.unsubscribe()),e&&(this.value=void
0,this.hasValue=!1,this.destination.next(i))}notifyNext(){this.clearThrottle()}notifyComplete(){this.clearThrottle()}}function
hT(t){return!Nr(t)&&t-parseFloat(t)+1>=0}function
$5(t){const{index:i,period:e,subscriber:n}=t;if(n.next(i),!n.closed){if(-1===e)return
n.complete();t.index=i+1,this.schedule(t,e)}}function jf(t,i=zf){return function
G5(t){return
function(e){return e.lift(new U5(t))}}(()=>function j5(t=0,i,e){let n=-1;return
hT(i)?n=Number(i)<1?1:Number(i):Vr(i)&&(e=i),Vr(e)||(e=zf),new Je(s=>{const
r=hT(t)?t:+t-e.now();return
e.schedule($5,r,{index:0,period:n,subscriber:s})})}(t,i))}function $f(t){return
i=>i.lift(new W5(t))}class W5{constructor(i){this.notifier=i}call(i,e){const n=new
K5(i),s=Xo(this.notifier,new Yo(n));return
s&&!n.seenValue?(n.add(s),e.subscribe(n)):n}}class K5 extends
Zo{constructor(i){super(i),this.seenValue=!1}notifyNext(){this.seenValue=!0,this.complete()}notifyComplete(){}}function
Ju(...t){const i=t[t.length-1];return Vr(i)?(t.pop(),e=>el(t,e,i)):e=>el(t,e)}class
J5{call(i,e){return e.subscribe(new Y5(i))}}class Y5 extends
yt{constructor(i){super(i),this.hasPrev=!1}_next(i){let
e;this.hasPrev?e=[this.prev,i]:this.hasPrev=!0,this.prev=i,e&&this.destination.next(e)}}let
Wf;try{Wf="undefined"!=typeof
Intl&&Intl.v8BreakIterator}catch(t){Wf=!1}let Yu,Dr,mT=(()=>{class
t{constructor(e){this._platformId=e
,this.isBrowser=this._platformId?function E4(t){return
t===ky}(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),this.BLINK=this.isBrowser&&!(!window.chrome&&!Wf)&&"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)(K(qc))},t.\u0275prov=X({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();function
bl(){if("object"!=typeof document||!document)return 0;if(null==Yu)
{const
t=document.createElement("div"),i=t.style;t.dir="rtl",i.width="1px",i.overflow="auto",i.visibility="hidden",i.pointerEvents="none",i.position="absolute";const
e=document.createElement("div"),n=e.style;n.width="2px",n.height="1px",t.appendChild(e),document.body.appendChild(t),Yu=0,0===t.scrollLeft&&(t.scrollLeft=1,Yu=0===t.scrollLeft?1:2),t.remove()}return
Yu}const tV=new be("cdk-dir-doc",{providedIn:"root",factory:function
nV(){return
O_(Xt)}}),iV=/^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)/i;let
gT=(()=>{class t{constructor(e){if(this.value="ltr",this.change=new
H,e){const s=e.documentElement?e.documentElement.dir:null;this.value=function sV(t){const
i=(null==t?void
0:t.toLowerCase())||"";return"auto"===i&&"undefined"!=typeof
navigator&&(null==navigator?void
0:navigator.language)?iV.test(navigator.language)?"rtl":"ltr":"rtl"===i?"rtl":"ltr"}((e.body?e.body.dir:null)||s||"ltr")}}ngOnDestroy(){this.change.c
omplete()}}return t.\u0275fac=function(e){return
new(e||t)(K(tV,8))},t.\u0275prov=X({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),_T=(()=>{class
t{}return t.\u0275fac=function(e){return
new(e||t)},t.\u0275mod=he({type:t}),t.\u0275inj=ue({}),t})();class aV extends class
rV{}{constructor(i){super(),this._data=i}connect(){return
is(this._data)?this._data:oe(this._data)}disconnect(){}}class
lV{constructor(){this.viewCacheSize=20,this._viewCache=[]}applyChanges(i,e,n,s,r){i.forEachOperation((o,u,h)=>{let
b,y;null==o.previousIndex?(b=this._insertView(()=>n(o,u,h),h,e,s(o)),y=b?1:0):null==h?(this._detachAndCacheView(u,e),y=3):(b=this._moveView(u,h,e,s(o)),y=2),r&&r({context:null==b?void
0:b.context,operation:y,record:o})})}detach(){for(const i of
this._viewCache)i.destroy();this._viewCache=[]}_insertView(i,e,n,s){const
r=this._insertViewFromCache(e,n);if(r)return void(r.context.$implicit=s);const
o=i();return n.createEmbeddedView(o.templateRef,o.context,o.index)}_detachAndCacheVie
w(i,e){const n=e.detach(i);this._maybeCacheView(n,e)}_moveView(i,e,n,s){const
r=n.get(i);return
n.move(r,e),r.context.$implicit=s,r}_maybeCacheView(i,e){if(this._viewCache.length<this.viewCacheSize)this._viewCache.push(i);else{const
n=e.indexOf(i);-1===n?i.destroy():e.remove(n)}}_insertViewFromCache(i,e){const
n=this._viewCache.pop();return n&&e.insert(n,i),n||null}}const bT=new
be("_ViewRepeater"),cV=["contentWrapper"],uV=["*"],vT=new
be("VIRTUAL_SCROLL_STRATEGY");class
dV{constructor(i,e,n){this._scrolledIndexChange=new
ct,this.scrolledIndexChange=this._scrolledIndexChange.pipe(function B5(t,i){return
e=>e.lift(new
H5(t,i))}()),this._viewport=null,this._itemSize=i,this._minBufferPx=e,this._maxBufferPx=n}attach(i){this._viewport=i,this._updateTotalContentSize(),this._updateRenderedRange()}detach(){this._scrolledIndexChange.complete(),this._viewport=null}updateItemAndBufferSize(i,e,n){this._itemSize=i,this._minBufferPx=e,this._maxBufferPx=n,this._updateTotalContentSize(),this._updat
eRenderedRange()}onContentScrolled(){this._updateRenderedRange()}onDataLengthChanged(){this._updateTotalContentSize(),this._updateRenderedRange()}onContentRendered(){}onRenderedOffsetChanged(){}scrollToIndex(i,e){this._viewport&&this._viewport.scrollToOffset(i*this._itemSize,e)}_updateTotalContentSize(){!this._viewport||this._viewport.setTotalContentSize(this._viewport.getDataLength()*this._itemSize)}_updateRenderedRange(){if(!this._viewport)return;const
i=this._viewport.getRenderedRange(),e={start:i.start,end:i.end},n=this._viewport.getViewportSize(),s=this._viewport.getDataLength();let
r=this._viewport.measureScrollOffset(),o=this._itemSize>0?r/this._itemSize:0;if(e.end>s){const
h=Math.ceil(n/this._itemSize),b=Math.max(0,Math.min(o,s-h));o!=b&&(o=b,r=b*this._itemSize,e.start=Math.floor(o)),e.end=Math.max(0,Math.min(s,e.start+h))}const
u=r-e.start*this._itemSize;if(u<this._minBufferPx&&0!=e.start){const
h=Math.ceil((this._maxBufferPx-u)/this._itemSize);e.start=Math.max(0,e.start-h)
,e.end=Math.min(s,Math.ceil(o+(n+this._minBufferPx)/this._itemSize))}else{const
h=e.end*this._itemSize-(r+n);if(h<this._minBufferPx&&e.end!=s){const
b=Math.ceil((this._maxBufferPx-h)/this._itemSize);b>0&&(e.end=Math.min(s,e.end+b),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
pV(t){return t._scrollStrategy}let Qf=(()=>{class
t{constructor(){this._itemSize=20,this._minBufferPx=100,this._maxBufferPx=200,this._scrollStrategy=new
dV(this.itemSize,this.minBufferPx,this.maxBufferPx)}get itemSize(){return
this._itemSize}set itemSize(e){this._itemSize=Ku(e)}get minBufferPx(){return
this._minBufferPx}set minBufferPx(e){this._minBufferPx=Ku(e)}get maxBufferPx(){return
this._maxBufferPx}set
maxBufferPx(e){this._maxBufferPx=Ku(e)}ngOnChanges(){this._scrollStrategy.updateItemAndBufferSize(this.itemSize,this.minBufferPx,t
his.maxBufferPx)}}return t.\u0275fac=function(e){return
new(e||t)},t.\u0275dir=le({type:t,selectors:[["cdk-virtual-scroll-viewport","itemSize",""]],inputs:{itemSize:"itemSize",minBufferPx:"minBufferPx",maxBufferPx:"maxBufferPx"},features:[Pe([{provide:vT,useFactory:pV,deps:[je(()=>t)]}]),fn]}),t})(),CT=(()=>{class
t{constructor(e,n,s){this._ngZone=e,this._platform=n,this._scrolled=new
ct,this._globalSubscription=null,this._scrolledCount=0,this.scrollContainers=new
Map,this._document=s}register(e){this.scrollContainers.has(e)||this.scrollContainers.set(e,e.elementScrolled().subscribe(()=>this._scrolled.next(e)))}deregister(e){const
n=this.scrollContainers.get(e);n&&(n.unsubscribe(),this.scrollContainers.delete(e))}scrolled(e=20){return
this._platform.isBrowser?new
Je(n=>{this._globalSubscription||this._addGlobalListener();const
s=e>0?this._scrolled.pipe(jf(e)).subscribe(n):this._scrolled.subscribe(n);return
this._scrolledCount++,()=>{s.unsubscribe(),this._scrolledCount--,this._scroll
edCount||this._removeGlobalListener()}}):oe()}ngOnDestroy(){this._removeGlobalListener(),this.scrollContainers.forEach((e,n)=>this.deregister(n)),this._scrolled.complete()}ancestorScrolled(e,n){const
s=this.getAncestorScrollContainers(e);return
this.scrolled(n).pipe(Us(r=>!r||s.indexOf(r)>-1))}getAncestorScrollContainers(e){const
n=[];return
this.scrollContainers.forEach((s,r)=>{this._scrollableContainsElement(r,e)&&n.push(r)}),n}_getWindow(){return
this._document.defaultView||window}_scrollableContainsElement(e,n){let s=function
M5(t){return t instanceof
De?t.nativeElement:t}(n),r=e.getElementRef().nativeElement;do{if(s==r)return!0}while(s=s.parentElement);return!1}_addGlobalListener(){this._globalSubscription=this._ngZone.runOutsideAngular(()=>Uf(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)(K(nt),K(mT),K(Xt,8))},t.\u0275prov=X({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),yT=(()=>{class
t{constructor(e,n,s,r){this.elementRef=e,this.scrollDispatcher=n,this.ngZone=s,this.dir=r,this._destroyed=new
ct,this._elementScrolled=new
Je(o=>this.ngZone.runOutsideAngular(()=>Uf(this.elementRef.nativeElement,"scroll").pipe($f(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
n=this.elementRef.nativeElement,s=this.dir&&"rtl"==this.dir.value;null==e.left&&(e.left=s?e.end:e.start),null==e.right&&(e.right=s?e.start:e.end),null!=e.bottom&&(e.top=n.scrollHeight-n.clientHeight-e.bottom),s&&0!=bl()?(null!=e.left&&(e.right=n.scrollWidth-n.clientWidth-e.left),2==bl()?e.left=e.right:1==bl()&&(e.left=e.right?-e.right:e.right)):null!=e.right&&(e.
left=n.scrollWidth-n.clientWidth-e.right),this._applyScrollToOptions(e)}_applyScrollToOptions(e){const
n=this.elementRef.nativeElement;!function X5(){if(null==Dr){if("object"!=typeof
document||!document||"function"!=typeof Element||!Element)return
Dr=!1,Dr;if("scrollBehavior"in document.documentElement.style)Dr=!0;else{const
t=Element.prototype.scrollTo;Dr=!!t&&!/\{\s*\[native
code\]\s*\}/.test(t.toString())}}return
Dr}()?(null!=e.top&&(n.scrollTop=e.top),null!=e.left&&(n.scrollLeft=e.left)):n.scrollTo(e)}measureScrollOffset(e){const
n="left",s="right",r=this.elementRef.nativeElement;if("top"==e)return
r.scrollTop;if("bottom"==e)return
r.scrollHeight-r.clientHeight-r.scrollTop;const
o=this.dir&&"rtl"==this.dir.value;return"start"==e?e=o?s:n:"end"==e&&(e=o?n:s),o&&2==bl()?e==n?r.scrollWidth-r.clientWidth-r.scrollLeft:r.scrollLeft:o&&1==bl()?e==n?r.scrollLeft+r.scrollWidth-r.clientWidth:-r.scrollLeft:e==n?r.scrollLeft:r.scrollWidth-r.clientWidth-r.scrollLeft}}return
t.\u0275fac=functi
on(e){return
new(e||t)(D(De),D(CT),D(nt),D(gT,8))},t.\u0275dir=le({type:t,selectors:[["","cdk-scrollable",""],["","cdkScrollable",""]]}),t})(),fV=(()=>{class
t{constructor(e,n,s){this._platform=e,this._change=new
ct,this._changeListener=r=>{this._change.next(r)},this._document=s,n.runOutsideAngular(()=>{if(e.isBrowser){const
r=this._getWindow();r.addEventListener("resize",this._changeListener),r.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:n,height
:s}=this.getViewportSize();return{top:e.top,left:e.left,bottom:e.top+s,right:e.left+n,height:s,width:n}}getViewportScrollPosition(){if(!this._platform.isBrowser)return{top:0,left:0};const
e=this._document,n=this._getWindow(),s=e.documentElement,r=s.getBoundingClientRect();return{top:-r.top||e.body.scrollTop||n.scrollY||s.scrollTop||0,left:-r.left||e.body.scrollLeft||n.scrollX||s.scrollLeft||0}}change(e=20){return
e>0?this._change.pipe(jf(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)(K(mT),K(nt),K(Xt,8))},t.\u0275prov=X({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();const
_V="undefined"!=typeof requestAnimationFrame?O5:V5;let Po=(()=>{class t
extends
yT{constructor(e,n,s,r,o,u,h){super(e,u,s,o),this.elementRef=e,this._changeDetectorRef=n,this._scrollSt
rategy=r,this._detachedSubject=new ct,this._renderedRangeSubject=new
ct,this._orientation="vertical",this._appendOnly=!1,this.scrolledIndexChange=new
Je(b=>this._scrollStrategy.scrolledIndexChange.subscribe(y=>Promise.resolve().then(()=>this.ngZone.run(()=>b.next(y))))),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=Et.EMPTY,this._viewportChanges=h.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
x5(t){return null!=t&&"false"!=`${t}`}(e)}ngOnInit()
{super.ngOnInit(),this.ngZone.runOutsideAngular(()=>Promise.resolve().then(()=>{this._measureViewportSize(),this._scrollStrategy.attach(this),this.elementScrolled().pipe(Ju(null),jf(0,_V)).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($f(this._detachedSubject)).subscribe(n=>{const
s=n.length;s!==this._dataLength&&(this._dataLength=s,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._c
alculateSpacerSize(),this._markChangeDetectionNeeded())}setRenderedRange(e){(function
gV(t,i){return
t.start==i.start&&t.end==i.end})(this._renderedRange,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,n="to-start"){const
r="horizontal"==this.orientation,o=r?"X":"Y";let
h=`translate${o}(${Number((r&&this.dir&&"rtl"==this.dir.value?-1:1)*e)}px)`;this._renderedContentOffset=e=this.appendOnly&&"to-start"===n?0:e,"to-end"===n&&(h+=`
translate${o}(-100%)`,this._renderedContentOffsetNeedsRewrite=!0),this._renderedContentTransform!=h&&(this._renderedContentTransform=h,this._markChangeDetectionNeeded(()=>{this._renderedContentOffsetNeedsRewrite?(this._renderedContentOffset-=this.measureRen
deredContentSize(),this._renderedContentOffsetNeedsRewrite=!1,this.setRenderedContentOffset(this._renderedContentOffset)):this._scrollStrategy.onRenderedOffsetChanged()}))}scrollToOffset(e,n="auto"){const
s={behavior:n};"horizontal"===this.orientation?s.start=e:s.top=e,this.scrollTo(s)}scrollToIndex(e,n="auto"){this._scrollStrategy.scrollToIndex(e,n)}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 n of
e)n()}_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)(D(De),D(rt),D(nt),D(vT,8),D(gT,8),D(CT),D(fV))},t.\u0275cmp=z({type:t,selectors:[["cdk-virtual-scroll-viewport"]],viewQuery:function(e,n){if(1&e&&W(cV,7),2&e){let
s;V(s=B())&&(n._contentWrapper=s.first)}},hostAttrs:[1,"cdk-virtual-scroll-viewport"],hostVars:4,hostBindings:function(e,n){2&e&&si("cdk-vi
rtual-scroll-orientation-horizontal","horizontal"===n.orientation)("cdk-virtual-scroll-orientation-vertical","horizontal"!==n.orientation)},inputs:{orientation:"orientation",appendOnly:"appendOnly"},outputs:{scrolledIndexChange:"scrolledIndexChange"},features:[Pe([{provide:yT,useExisting:t}]),ut],ngContentSelectors:uV,decls:4,vars:4,consts:[[1,"cdk-virtual-scroll-content-wrapper"],["contentWrapper",""],[1,"cdk-virtual-scroll-spacer"]],template:function(e,n){1&e&&(Sn(),l(0,"div",0,1),St(2),c(),k(3,"div",2)),2&e&&(a(3),_i("width",n._totalContentWidth)("height",n._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-wrappe
r{min-height:100%}.cdk-virtual-scroll-orientation-horizontal
.cdk-virtual-scroll-content-wrapper>dl:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-horizontal
.cdk-virtual-scroll-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-virtua
l-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-scroll-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
wT(t,i,e){if(!e.getBoundingClientRect)return 0;const
s=e.getBoundingClientRect();return"horizontal"===t?"start"===i?s.left:s.right:"start"===i?s.top:s.bottom}let
Jf=(()=>{class
t{constructor(e,n,s,r,o,u){this._viewContainerRef=e,this._template=n,this._differs=s,this._viewRepeater=r,this._viewport=o,this.viewChange=new
ct,this._dataSourceChanges=new
ct,this.dataStream=this._dataSourceChanges.pipe(Ju(null),function Q5(){return
t=>t.lift(new
J5)}(),qi(([h,b])=>this._changeDataSource(h,b)),Um(1)),this._differ=null,this._needsUpdate=!1,this._destroyed=new
ct,this.dataStream.subscribe(h=>{this._dat
a=h,this._onRenderedDataChange()}),this._viewport.renderedRangeStream.pipe($f(this._destroyed)).subscribe(h=>{this._renderedRange=h,this.viewChange.observers.length&&u.run(()=>this.viewChange.next(this._renderedRange)),this._onRenderedDataChange()}),this._viewport.attach(this)}get
cdkVirtualForOf(){return this._cdkVirtualForOf}set
cdkVirtualForOf(e){this._cdkVirtualForOf=e,function oV(t){return
t&&"function"==typeof
t.connect}(e)?this._dataSourceChanges.next(e):this._dataSourceChanges.next(new
aV(is(e)?e:Array.from(e||[])))}get cdkVirtualForTrackBy(){return
this._cdkVirtualForTrackBy}set
cdkVirtualForTrackBy(e){this._needsUpdate=!0,this._cdkVirtualForTrackBy=e?(n,s)=>e(n+(this._renderedRange?this._renderedRange.start:0),s):void
0}set cdkVirtualForTemplate(e){e&&(this._needsUpdate=!0,this._template=e)}get
cdkVirtualForTemplateCacheSize(){return this._viewRepeater.viewCacheSize}set
cdkVirtualForTemplateCacheSize(e){this._viewRepeater.viewCacheSize=Ku(e)}measureRangeSize(e,n){if(e.star
t>=e.end)return 0;const s=e.start-this._renderedRange.start,r=e.end-e.start;let
o,u;for(let h=0;h<r;h++){const
b=this._viewContainerRef.get(h+s);if(b&&b.rootNodes.length){o=u=b.rootNodes[0];break}}for(let
h=r-1;h>-1;h--){const
b=this._viewContainerRef.get(h+s);if(b&&b.rootNodes.length){u=b.rootNodes[b.rootNodes.length-1];break}}return
o&&u?wT(n,"end",u)-wT(n,"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.complete(),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,n)=>this.cdkVirtualForTrackBy?th
is.cdkVirtualForTrackBy(e,n):n)),this._needsUpdate=!0)}_changeDataSource(e,n){return
e&&e.disconnect(this),this._needsUpdate=!0,n?n.connect(this):oe()}_updateContext(){const
e=this._data.length;let n=this._viewContainerRef.length;for(;n--;){const
s=this._viewContainerRef.get(n);s.context.index=this._renderedRange.start+n,s.context.count=e,this._updateComputedContextProperties(s.context),s.detectChanges()}}_applyChanges(e){this._viewRepeater.applyChanges(e,this._viewContainerRef,(r,o,u)=>this._getEmbeddedViewArgs(r,u),r=>r.item),e.forEachIdentityChange(r=>{this._viewContainerRef.get(r.currentIndex).context.$implicit=r.item});const
n=this._data.length;let s=this._viewContainerRef.length;for(;s--;){const
r=this._viewContainerRef.get(s);r.context.index=this._renderedRange.start+s,r.context.count=n,this._updateComputedContextProperties(r.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,n)
{return{templateRef:this._template,context:{$implicit:e.item,cdkVirtualForOf:this._cdkVirtualForOf,index:-1,count:-1,first:!1,last:!1,odd:!1,even:!1},index:n}}}return
t.\u0275fac=function(e){return
new(e||t)(D(vi),D(bi),D($a),D(bT),D(Po,4),D(nt))},t.\u0275dir=le({type:t,selectors:[["","cdkVirtualFor","","cdkVirtualForOf",""]],inputs:{cdkVirtualForOf:"cdkVirtualForOf",cdkVirtualForTrackBy:"cdkVirtualForTrackBy",cdkVirtualForTemplate:"cdkVirtualForTemplate",cdkVirtualForTemplateCacheSize:"cdkVirtualForTemplateCacheSize"},features:[Pe([{provide:bT,useClass:lV}])]}),t})(),TT=(()=>{class
t{}return t.\u0275fac=function(e){return
new(e||t)},t.\u0275mod=he({type:t}),t.\u0275inj=ue({}),t})(),Fo=(()=>{class t{}return
t.\u0275fac=function(e){return
new(e||t)},t.\u0275mod=he({type:t}),t.\u0275inj=ue({imports:[[_T,TT],_T,TT]}),t})(),Kt=(()=>{class
t{constructor(e,n,s){this.el=e,this.zone=n,this.config=s,this.escape=!0,this._tooltipOptions={tooltipPosition:"right",tooltipEvent:"hover",appendTo:"b
ody",tooltipZIndex:"auto",escape:!0,positionTop:0,positionLeft:0}}get
disabled(){return this._disabled}set
disabled(e){this._disabled=e,this.deactivate()}ngAfterViewInit(){this.zone.runOutsideAngular(()=>{if("hover"===this.getOption("tooltipEvent"))this.mouseEnterListener=this.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);else
if("focus"===this.getOption("tooltipEvent")){this.focusListener=this.onFocus.bind(this),this.blurListener=this.onBlur.bind(this);let
e=this.getTarget(this.el.nativeElement);e.addEventListener("focus",this.focusListener),e.addEventListener("blur",this.blurListener)}})}ngOnChanges(e){e.tooltipPosition&&this.setOption({tooltipPosition:e.tooltipPosition.currentValue}),e.tool
tipEvent&&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.align()):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.createElement("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")?R.appendChild(this.container,this.el.nativeElement):R.appendChild(this.container,this.getOption("appendTo")),this.container.style.display="inline-block"}show(){!this.getOption("tooltipLabel")||this.getOption("disabled")||(this.create(),this.align(),R.fadeIn(this.container,250),"auto"===this.getOption("tooltipZIndex")?dt.set("tooltip",this.container,this.config.zIndex.tool
tip):this.container.style.zIndex=this.getOption("tooltipZIndex"),this.bindDocumentResizeListener(),this.bindScrollListener())}hide(){"auto"===this.getOption("tooltipZIndex")&&dt.clear(this.container),this.remove()}updateText(){this.getOption("escape")?(this.tooltipText.innerHTML="",this.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.isOutOfBound
s()&&(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+R.getWindowScrollLeft(),top:e.top+R.getWindowScrollTop()}}return{left:0,top:0}}alignRight(){this.preAlign("right");let
e=this.getHostOffset(),n=e.left+R.getOuterWidth(this.el.nativeElement),s=e.top+(R.getOuterHeight(this.el.nativeElement)-R.getOuterHeight(this.container))/2;this.container.style.left=n+this.getOption("positionLeft")+"px",this.container.style.top=s+this.getOption("positionTop")+"px"}alignLeft(){this.preAlign("left");let
e=this.getHostOffset(),n=e.left-R.getOuterWidth(this.container),s=e.top+(R.getOuterHeight(this.el.nativeElement)-R.getOuterHeight(this.container))/2;this.container.style.left=n+this.getOption("positionLeft")+"px",this.container.style.top=s+this.getOption("positionTop")+"px"}alignTop(){
this.preAlign("top");let
e=this.getHostOffset(),n=e.left+(R.getOuterWidth(this.el.nativeElement)-R.getOuterWidth(this.container))/2,s=e.top-R.getOuterHeight(this.container);this.container.style.left=n+this.getOption("positionLeft")+"px",this.container.style.top=s+this.getOption("positionTop")+"px"}alignBottom(){this.preAlign("bottom");let
e=this.getHostOffset(),n=e.left+(R.getOuterWidth(this.el.nativeElement)-R.getOuterWidth(this.container))/2,s=e.top+R.getOuterHeight(this.el.nativeElement);this.container.style.left=n+this.getOption("positionLeft")+"px",this.container.style.top=s+this.getOption("positionTop")+"px"}setOption(e){this._tooltipOptions=Object.assign(Object.assign({},this._tooltipOptions),e)}getOption(e){return
this._tooltipOptions[e]}getTarget(e){return
R.hasClass(e,"p-inputwrapper")?R.findSingle(e,"input"):e}preAlign(e){this.container.style.left="-999px",this.container.style.top="-999px";let
n="p-tooltip p-component p-tooltip-"+e;this.container.className=this.getOption(
"tooltipStyleClass")?n+"
"+this.getOption("tooltipStyleClass"):n}isOutOfBounds(){let
e=this.container.getBoundingClientRect(),n=e.top,s=e.left,r=R.getOuterWidth(this.container),o=R.getOuterHeight(this.container),u=R.getViewport();return
s+r>u.width||s<0||n<0||n+o>u.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
Qs(this.el.nativeElement,()=>{this.container&&this.hide()})),this.scrollHandler.bindScrollListener()}unbindScrollListener(){this.scrollHandler&&this.scrollHandler.unbindScrollListener()}unbindEvents(){if("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);else
if("focus"===this.getOption("tooltipEvent")){let
e=this.getTarget(this.el.nativeElement);e.removeEventListener("focus",this.focusListener),e.removeEventListener("blur",this.blurListener)}this.unbindDocumentResizeListener()}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):R.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.clea
rShowTimeout(),this.clearHideTimeout()}ngOnDestroy(){this.unbindEvents(),this.container&&dt.clear(this.container),this.remove(),this.scrollHandler&&(this.scrollHandler.destroy(),this.scrollHandler=null)}}return
t.\u0275fac=function(e){return
new(e||t)(D(De),D(nt),D(zn))},t.\u0275dir=le({type:t,selectors:[["","pTooltip",""]],hostAttrs:[1,"p-element"],inputs:{tooltipPosition:"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:[fn]}),t})(),jn=(()=>{class
t{}return t.\u0275fac=function(e){return
new(e||t)},t.\u0275mod=he({type:t}),t.\u0275inj=ue({imports:[[Fe]]}),t})();function
bV(t,i){if(1&t&&(l(0,"span"),g(1),c()),2&t){const
e=d();a(1),S(e.label|
|"empty")}}function vV(t,i){1&t&&Y(0)}const
ST=function(t){return{height:t}},CV=function(t,i){return{"p-dropdown-item":!0,"p-highlight":t,"p-disabled":i}},Yf=function(t){return{$implicit:t}},yV=["container"],wV=["filter"],TV=["in"],SV=["editableInput"];function
xV(t,i){if(1&t&&(de(0),g(1),pe()),2&t){const
e=d(2);a(1),S(e.label||"empty")}}function DV(t,i){1&t&&Y(0)}const
MV=function(t){return{"p-dropdown-label
p-inputtext":!0,"p-dropdown-label-empty":t}};function
kV(t,i){if(1&t&&(l(0,"span",12),_(1,xV,2,1,"ng-container",13),_(2,DV,1,0,"ng-container",14),c()),2&t){const
e=d();p("ngClass",U(9,MV,null==e.label||0===e.label.length))("pTooltip",e.tooltip)("tooltipPosition",e.tooltipPosition)("positionStyle",e.tooltipPositionStyle)("tooltipStyleClass",e.tooltipStyleClass),ie("id",e.labelId),a(1),p("ngIf",!e.selectedItemTemplate),a(1),p("ngTemplateOutlet",e.selectedItemTemplate)("ngTemplateOutletContext",U(11,Yf,e.selectedOption))}}const
IV=function(t){return{"p-dropdown-label p-inputtext p
-placeholder":!0,"p-dropdown-label-empty":t}};function
EV(t,i){if(1&t&&(l(0,"span",15),g(1),c()),2&t){const
e=d();p("ngClass",U(2,IV,null==e.placeholder||0===e.placeholder.length)),a(1),S(e.placeholder||"empty")}}function
RV(t,i){if(1&t){const
e=I();l(0,"input",16,17),C("click",function(){return
v(e),d().onEditableInputClick()})("input",function(s){return
v(e),d().onEditableInputChange(s)})("focus",function(s){return
v(e),d().onEditableInputFocus(s)})("blur",function(s){return
v(e),d().onInputBlur(s)}),c()}if(2&t){const
e=d();p("disabled",e.disabled),ie("maxlength",e.maxlength)("placeholder",e.placeholder)("aria-expanded",e.overlayVisible)}}function
LV(t,i){if(1&t){const
e=I();l(0,"i",18),C("click",function(s){return
v(e),d().clear(s)}),c()}}function OV(t,i){1&t&&Y(0)}function
AV(t,i){if(1&t){const
e=I();l(0,"div",26)(1,"div",27),C("click",function(s){return
s.stopPropagation()}),l(2,"input",28,29),C("keydown.enter",function(s){return
s.preventDefault()})("keydown",function(s){retur
n v(e),d(2).onKeydown(s,!1)})("input",function(s){return
v(e),d(2).onFilterInputChange(s)}),c(),k(4,"span",30),c()()}if(2&t){const
e=d(2);a(2),p("value",e.filterValue||""),ie("placeholder",e.filterPlaceholder)("aria-label",e.ariaFilterLabel)("aria-activedescendant",e.overlayVisible?"p-highlighted-option":e.labelId)}}function
PV(t,i){if(1&t&&(l(0,"span"),g(1),c()),2&t){const
e=d().$implicit,n=d(3);a(1),S(n.getOptionGroupLabel(e)||"empty")}}function
FV(t,i){1&t&&Y(0)}function NV(t,i){1&t&&Y(0)}const
xT=function(t,i){return{$implicit:t,selectedOption:i}};function
VV(t,i){if(1&t&&(l(0,"li",32),_(1,PV,2,1,"span",13),_(2,FV,1,0,"ng-container",14),c(),_(3,NV,1,0,"ng-container",14)),2&t){const
e=i.$implicit;d(2);const
n=F(8),s=d();a(1),p("ngIf",!s.groupTemplate),a(1),p("ngTemplateOutlet",s.groupTemplate)("ngTemplateOutletContext",U(5,Yf,e)),a(1),p("ngTemplateOutlet",n)("ngTemplateOutletContext",Ge(7,xT,s.getOptionGroupChildren(e),s.selectedOption))}}function
BV(t,i){if(1&t&&(de(0),_(1,VV,4,
10,"ng-template",31),pe()),2&t){const
e=d(2);a(1),p("ngForOf",e.optionsToDisplay)}}function
HV(t,i){1&t&&Y(0)}function
qV(t,i){if(1&t&&(de(0),_(1,HV,1,0,"ng-container",14),pe()),2&t){d();const
e=F(8),n=d();a(1),p("ngTemplateOutlet",e)("ngTemplateOutletContext",Ge(2,xT,n.optionsToDisplay,n.selectedOption))}}function
GV(t,i){if(1&t){const
e=I();l(0,"p-dropdownItem",35),C("onClick",function(s){return
v(e),d(4).onItemClick(s)}),c()}if(2&t){const
e=i.$implicit,n=d(2).selectedOption,s=d(2);p("option",e)("selected",n==e)("label",s.getOptionLabel(e))("disabled",s.isOptionDisabled(e))("template",s.itemTemplate)}}function
UV(t,i){if(1&t&&(de(0),_(1,GV,1,5,"ng-template",31),pe()),2&t){const
e=d().$implicit;a(1),p("ngForOf",e)}}function zV(t,i){if(1&t){const
e=I();de(0),l(1,"p-dropdownItem",35),C("onClick",function(s){return
v(e),d(5).onItemClick(s)}),c(),pe()}if(2&t){const
e=i.$implicit,n=d(3).selectedOption,s=d(2);a(1),p("option",e)("selected",n==e)("label",s.getOptionLabel(e))("disabled",s.i
sOptionDisabled(e))("template",s.itemTemplate)}}function
jV(t,i){if(1&t){const
e=I();l(0,"cdk-virtual-scroll-viewport",37,38),C("scrolledIndexChange",function(){return
v(e),d(4).scrollToSelectedVirtualScrollElement()}),_(2,zV,2,5,"ng-container",39),c()}if(2&t){const
e=d(2).$implicit,n=d(2);p("ngStyle",U(3,ST,n.scrollHeight))("itemSize",n.itemSize),a(2),p("cdkVirtualForOf",e)}}function
$V(t,i){if(1&t&&_(0,jV,3,5,"cdk-virtual-scroll-viewport",36),2&t){const
e=d(3);p("ngIf",e.virtualScroll&&e.optionsToDisplay&&e.optionsToDisplay.length)}}function
WV(t,i){if(1&t&&(_(0,UV,2,1,"ng-container",33),_(1,$V,1,1,"ng-template",null,34,we)),2&t){const
e=F(2);p("ngIf",!d(2).virtualScroll)("ngIfElse",e)}}function
KV(t,i){if(1&t&&(de(0),g(1),pe()),2&t){const e=d(3);a(1),T("
",e.emptyFilterMessageLabel," ")}}function
QV(t,i){1&t&&Y(0,null,41)}function
JV(t,i){if(1&t&&(l(0,"li",40),_(1,KV,2,1,"ng-container",33),_(2,QV,2,0,"ng-container",20),c()),2&t){const
e=d(2);a(1),p("ngIf",!e.emptyFilterTemplate&&
!e.emptyTemplate)("ngIfElse",e.emptyFilter),a(1),p("ngTemplateOutlet",e.emptyFilterTemplate||e.emptyTemplate)}}function
YV(t,i){if(1&t&&(de(0),g(1),pe()),2&t){const e=d(3);a(1),T("
",e.emptyMessageLabel," ")}}function
ZV(t,i){1&t&&Y(0,null,42)}function
XV(t,i){if(1&t&&(l(0,"li",40),_(1,YV,2,1,"ng-container",33),_(2,ZV,2,0,"ng-container",20),c()),2&t){const
e=d(2);a(1),p("ngIf",!e.emptyTemplate)("ngIfElse",e.empty),a(1),p("ngTemplateOutlet",e.emptyTemplate)}}function
e6(t,i){1&t&&Y(0)}const
t6=function(t,i){return{showTransitionParams:t,hideTransitionParams:i}},n6=function(t){return{value:"visible",params:t}},i6=function(t){return{"p-dropdown-virtualscroll":t}};function
s6(t,i){if(1&t){const
e=I();l(0,"div",19),C("click",function(s){return
v(e),d().onOverlayClick(s)})("(a)overlayAnimation.start",function(s){return
v(e),d().onOverlayAnimationStart(s)})("(a)overlayAnimation.start",function(s){return
v(e),d().onOverlayAnimationEnd(s)}),_(1,OV,1,0,"ng-container",20),_(2,AV,5,4,"div",21),l(3,
"div",22)(4,"ul",23),_(5,BV,2,1,"ng-container",13),_(6,qV,2,5,"ng-container",13),_(7,WV,3,2,"ng-template",null,24,we),_(9,JV,3,3,"li",25),_(10,XV,3,3,"li",25),c()(),_(11,e6,1,0,"ng-container",20),c()}if(2&t){const
e=d();me(e.panelStyleClass),p("ngClass","p-dropdown-panel
p-component")("@overlayAnimation",U(19,n6,Ge(16,t6,e.showTransitionOptions,e.hideTransitionOptions)))("ngStyle",e.panelStyle),a(1),p("ngTemplateOutlet",e.headerTemplate),a(1),p("ngIf",e.filter),a(1),_i("max-height",e.virtualScroll?"auto":e.scrollHeight||"auto"),a(1),p("ngClass",U(21,i6,e.virtualScroll)),ie("id",e.listId),a(1),p("ngIf",e.group),a(1),p("ngIf",!e.group),a(3),p("ngIf",e.filterValue&&e.isEmpty()),a(1),p("ngIf",!e.filterValue&&e.isEmpty()),a(1),p("ngTemplateOutlet",e.footerTemplate)}}const
r6=function(t,i,e,n){return{"p-dropdown
p-component":!0,"p-disabled":t,"p-dropdown-open":i,"p-focus":e,"p-dropdown-clearable":n}},o6={provide:dn,useExisting:je(()=>Ot),multi:!0};let
a6=(()=>{class t{constructor(){this.o
nClick=new
H}onOptionClick(e){this.onClick.emit({originalEvent:e,option:this.option})}}return
t.\u0275fac=function(e){return
new(e||t)},t.\u0275cmp=z({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,n){1&e&&(l(0,"li",0),C("click",function(r){return
n.onOptionClick(r)}),_(1,bV,2,1,"span",1),_(2,vV,1,0,"ng-container",2),c()),2&e&&(p("ngStyle",U(8,ST,n.itemSize+"px"))("id",n.selected?"p-highlighted-option":"")("ngClass",Ge(10,CV,n.selected,n.disabled)),ie("aria-label",n.label)("aria-selected",n.selected),a(1),p("ngIf",!n.template),a(1),p("ngTemplateOutlet",n.template)("ngTemplateOutletContext",U(13,Yf,n.option)))},directives:[bt,lt,Le,Q,Rt]
,encapsulation:2}),t})(),Ot=(()=>{class
t{constructor(e,n,s,r,o,u,h){this.el=e,this.renderer=n,this.cd=s,this.zone=r,this.filterService=o,this.config=u,this.overlayService=h,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
H,this.onFilter=new H,this.onFocus=new H,this.onBlur=new H,this.onClick=new
H,this.onShow=new H,this.onHide=new H,this.onClear=new
H,this.onModelChange=()=>{},this.onModelTouched=()=>{},this.viewPortOffsetTop=0,this.id=pl()}get
disabled(){return this._disabled}set
disabled(e){e&&(this.focused=!1,this.overlayVisible&&this.hide()),t
his._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.optionsToDisplay=this._options,this.updateSelectedOption(this.value),this.selectedOption=this.findOption(this.value,this.optionsToDisplay),this.selectedOption||(this.value=null,this.onModelChange(this.value)),this.optionsChanged=!0,this._filterValue&&this._filterValue.length&&this.activateFilt
er()}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(Ft.EMPTY_MESSAGE)}get
emptyFilterMessageLabel(){return
this.emptyFilterMessage||this.config.getTranslation(Ft.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?Z.resolveFieldData(e,this.optionLabel):null!=e.label?e.label:e}getOptionValue(e){return
this.optionValue?Z.resolveFieldData(e,this.optionValue):this.optionLabel||void
0===e.value?e:e.value}isOptionDisabled
(e){return this.optionDisabled?Z.resolveFieldData(e,this.optionDisabled):void
0!==e.disabled&&e.disabled}getOptionGroupLabel(e){return
this.optionGroupLabel?Z.resolveFieldData(e,this.optionGroupLabel):null!=e.label?e.label:e}getOptionGroupChildren(e){return
this.optionGroupChildren?Z.resolveFieldData(e,this.optionGroupChildren):e.items}onItemClick(e){const
n=e.option;this.isOptionDisabled(n)||(this.selectItem(e.originalEvent,n),this.accessibleViewChild.nativeElement.focus()),setTimeout(()=>{this.hide()},150)}selectItem(e,n){this.selectedOption!=n&&(this.selectedOption=n,this.value=this.getOptionValue(n),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))}ngAfterViewChecked(){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
n=this.viewPort.getRenderedRange();this.updateVirtualScrollSelectedIndex(!1),(n.start>this.virtualScrollSelectedIndex||n.end<this.virtualScrollSelectedIndex)&&this.viewPort.scrollToIndex(this.virtualScrollSelectedIndex)}R.findSingle(this.overlay,"li.p-highlight")&&R.scrollInView(this.itemsWrapper,R.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}updateSelectedOption(e){this.selectedOption=this.findOption(e,this.optionsToDisplay),this.autoDisplayFirst&&!this.placeholder&&!this.selectedOption&&
this.optionsToDisplay&&this.optionsToDisplay.length&&!this.editable&&(this.selectedOption=this.group?this.optionsToDisplay[0].items[0]: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
R.hasClass(e.target,"p-dropdown-clear-icon")||e.target.isSameNode(this.accessibleViewChild.nativeElement)||this.editableInputViewChild&&e.target.isSameNode(this.editableInputViewChild.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.cd.markForCheck()}onOverlayAnimationStart(e){switch(e.toState){case"visible":if(this.overlay=e.element,this.itemsWrapper=R.findSingle(this.overlay,this.virtualScroll?".cdk-virtual-scroll-viewport":".p-dropdown-items-wrapper"),this.appendOverlay(),this.autoZIndex&&dt.set("overlay",this.overlay,this.baseZIndex+this.config.zIndex.overlay),this.alignOverlay(),this.bindDocumentClickListener(),this.bindDocumentResizeListener(),this.bindScrollListener(),this.options
&&this.options.length&&!this.virtualScroll){let
s=R.findSingle(this.itemsWrapper,".p-dropdown-item.p-highlight");s&&s.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&&dt.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.viewPortOffsetTop=0),this.virtualScrollSelectedIndex=this.findOptionIndex(this.getOptionValue(this.selectedOption),this.optionsToDisplay))}appen
dOverlay(){this.appendTo&&("body"===this.appendTo?document.body.appendChild(this.overlay):R.appendChild(this.overlay,this.appendTo),this.overlay.style.minWidth||(this.overlay.style.minWidth=R.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?R.absolutePosition(this.overlay,this.containerViewChild.nativeElement):R.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.preventModelTouched=!1}findPrevEnabledOption(e){let
n;if(this.optionsToDisplay&&this.optionsToDisplay.length){for(let
s=e-1;0<=s;s--){let r=this.op
tionsToDisplay[s];if(!this.isOptionDisabled(r)){n=r;break}}if(!n)for(let
s=this.optionsToDisplay.length-1;s>=e;s--){let
r=this.optionsToDisplay[s];if(!this.isOptionDisabled(r)){n=r;break}}}return
n}findNextEnabledOption(e){let
n;if(this.optionsToDisplay&&this.optionsToDisplay.length){for(let
s=e+1;s<this.optionsToDisplay.length;s++){let
r=this.optionsToDisplay[s];if(!this.isOptionDisabled(r)){n=r;break}}if(!n)for(let
s=0;s<e;s++){let
r=this.optionsToDisplay[s];if(!this.isOptionDisabled(r)){n=r;break}}}return
n}onKeydown(e,n){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
s=this.selectedOption?this.findOptionGroupIndex(this.getOptionValue(this.selectedOption),this.optionsToDisplay):-1;if(-1!==s){let
r=s.itemIndex+1;r<this.getOptionGroupChildren(this.optionsToDisplay[s.groupIndex]).length?(this.selectItem(e,this.getOptionGroupChildren(this.optionsToDisplay[s.gro
upIndex])[r]),this.selectedOptionUpdated=!0):this.optionsToDisplay[s.groupIndex+1]&&(this.selectItem(e,this.getOptionGroupChildren(this.optionsToDisplay[s.groupIndex+1])[0]),this.selectedOptionUpdated=!0)}else
this.optionsToDisplay&&this.optionsToDisplay.length>0&&this.selectItem(e,this.getOptionGroupChildren(this.optionsToDisplay[0])[0])}else{let
s=this.selectedOption?this.findOptionIndex(this.getOptionValue(this.selectedOption),this.optionsToDisplay):-1,r=this.findNextEnabledOption(s);r&&(this.selectItem(e,r),this.selectedOptionUpdated=!0)}e.preventDefault();break;case
38:if(this.group){let
s=this.selectedOption?this.findOptionGroupIndex(this.getOptionValue(this.selectedOption),this.optionsToDisplay):-1;if(-1!==s){let
r=s.itemIndex-1;if(r>=0)this.selectItem(e,this.getOptionGroupChildren(this.optionsToDisplay[s.groupIndex])[r]),this.selectedOptionUpdated=!0;else
if(r<0){let
o=this.optionsToDisplay[s.groupIndex-1];o&&(this.selectItem(e,this.getOptionGroupChildren(o)[this.getOptionGr
oupChildren(o).length-1]),this.selectedOptionUpdated=!0)}}}else{let
s=this.selectedOption?this.findOptionIndex(this.getOptionValue(this.selectedOption),this.optionsToDisplay):-1,r=this.findPrevEnabledOption(s);r&&(this.selectItem(e,r),this.selectedOptionUpdated=!0)}e.preventDefault();break;case
32:n&&(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:n&&!e.metaKey&&this.search(e)}}search(e){this.searchTimeout&&clearTimeout(this.searchTimeout);const
n=e.key;let
s;if(this.previousSearchChar=this.currentSearchChar,this.currentSearchChar=n,this.searchValue=this.previousSearchChar===this.currentSearchChar?this.currentSearchChar:this.searchValue?this.searchValue+n:n,this.group){let
r=this.selectedOption?this.findOptionGroupIndex(this.getOptionValue(this.selectedO
ption),this.optionsToDisplay):{groupIndex:0,itemIndex:0};s=this.searchOptionWithinGroup(r)}else{let
r=this.selectedOption?this.findOptionIndex(this.getOptionValue(this.selectedOption),this.optionsToDisplay):-1;s=this.searchOption(++r)}s&&!this.isOptionDisabled(s)&&(this.selectItem(e,s),this.selectedOptionUpdated=!0),this.searchTimeout=setTimeout(()=>{this.searchValue=null},250)}searchOption(e){let
n;return
this.searchValue&&(n=this.searchOptionInRange(e,this.optionsToDisplay.length),n||(n=this.searchOptionInRange(0,e))),n}searchOptionInRange(e,n){for(let
s=e;s<n;s++){let
r=this.optionsToDisplay[s];if(this.getOptionLabel(r).toLocaleLowerCase(this.filterLocale).startsWith(this.searchValue.toLocaleLowerCase(this.filterLocale))&&!this.isOptionDisabled(r))return
r}return null}searchOptionWithinGroup(e){if(this.searchValue){for(let
s=e.groupIndex;s<this.optionsToDisplay.length;s++)for(let
r=e.groupIndex===s?e.itemIndex+1:0;r<this.getOptionGroupChildren(this.optionsToDisplay[s]).length;r++
){let
o=this.getOptionGroupChildren(this.optionsToDisplay[s])[r];if(this.getOptionLabel(o).toLocaleLowerCase(this.filterLocale).startsWith(this.searchValue.toLocaleLowerCase(this.filterLocale))&&!this.isOptionDisabled(o))return
o}for(let s=0;s<=e.groupIndex;s++)for(let
r=0;r<(e.groupIndex===s?e.itemIndex:this.getOptionGroupChildren(this.optionsToDisplay[s]).length);r++){let
o=this.getOptionGroupChildren(this.optionsToDisplay[s])[r];if(this.getOptionLabel(o).toLocaleLowerCase(this.filterLocale).startsWith(this.searchValue.toLocaleLowerCase(this.filterLocale))&&!this.isOptionDisabled(o))return
o}}return null}findOptionIndex(e,n){let s=-1;if(n)for(let
r=0;r<n.length;r++)if(null==e&&null==this.getOptionValue(n[r])||Z.equals(e,this.getOptionValue(n[r]),this.dataKey)){s=r;break}return
s}findOptionGroupIndex(e,n){let s,r;if(n)for(let
o=0;o<n.length&&(s=o,r=this.findOptionIndex(e,this.getOptionGroupChildren(n[o])),-1===r);o++);return-1!==r?{groupIndex:s,itemIndex:r}:-1}findOption(e,n,s){if(
this.group&&!s){let r;if(n&&n.length)for(let o of
n)if(r=this.findOption(e,this.getOptionGroupChildren(o),!0),r)break;return r}{let
r=this.findOptionIndex(e,n);return-1!=r?n[r]:null}}onFilterInputChange(e){let
n=e.target.value;n&&n.length?(this._filterValue=n,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
n=[];for(let s of this.options){let
r=this.filterService.filter(this.getOptionGroupChildren(s),e,this.filterValue,this.filterMatchMode,this.filterLocale);r&&r.length&&n.push(Object.assign(Object.assign({},s),{[this.optionGroupChildren]:r}))}this.optionsToDisplay=n}else
this.optionsToDisplay=this.filterService.filter(this.options,e,this.filterValue,this.filterMatchMode,this.filterLocale);this.optionsChanged=!0}}applyFocus(){this.ed
itable?R.findSingle(this.el.nativeElement,".p-dropdown-label.p-inputtext").focus():R.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",n=>{!this.preventDocumentDefault&&this.isOutsideClicked(n)&&(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.documentResizeListener),this.documentResizeListener=null)}onWindowResize(){this.overlayVisible&&!R.isTouchDevice()&&this.hide()}bindScrollList
ener(){this.scrollHandler||(this.scrollHandler=new
Qs(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&&dt.clear(this.overlay),this.restoreOverlayAppend(),this.onOverlayHide()}}return
t.\u0275fac=function(e){return
new(e||t)(D(De),D(gn),D(rt),D(nt),D(hl),D(zn),D(Ks))},t.\u0275cmp=z({type:t,selectors:[["p-dropdown"]],contentQueries:function(e,n,s){if(1&e&&st(s,ne,4
),2&e){let
r;V(r=B())&&(n.templates=r)}},viewQuery:function(e,n){if(1&e&&(W(yV,5),W(wV,5),W(TV,5),W(Po,5),W(SV,5)),2&e){let
s;V(s=B())&&(n.containerViewChild=s.first),V(s=B())&&(n.filterViewChild=s.first),V(s=B())&&(n.accessibleViewChild=s.first),V(s=B())&&(n.viewPort=s.first),V(s=B())&&(n.editableInputViewChild=s.first)}},hostAttrs:[1,"p-element","p-inputwrapper"],hostVars:4,hostBindings:function(e,n){2&e&&si("p-inputwrapper-filled",n.filled)("p-inputwrapper-focus",n.focused||n.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:"inputId",selectId:"selectId",dataKey:"dataKey",filterBy:"filterBy",autofocus:"autofocus",resetFilterOnHide:"resetFilterOnHide",dropdown
Icon:"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",ariaLabel:"ariaLabel",ariaLabelledBy:"ariaLabelledBy",filterMatchMode:"filterMatchMode",maxlength:"maxlength",tooltip:"tooltip",tooltipPosition:"tooltipPosition",tooltipPositionStyle:"tooltipPositionStyle",tooltipStyleClass:"tooltipStyleClass",autofocusFilter:"autofocusFilter",disabled:"disabled",options:"options",filterValue:"filterValue"},outputs:{onChange:"onChange",onFilter:"onFilter",onFocus:"onFocus",onBlur:"onBlur",onClick:"onClick",onShow:
"onShow",onHide:"onHide",onClear:"onClear"},features:[Pe([o6])],decls:12,vars:25,consts:[[3,"ngClass","ngStyle","click"],["container",""],[1,"p-hidden-accessible"],["type","text","readonly","","aria-haspopup","listbox","aria-haspopup","listbox","role","combobox",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-label","dropdown
trigger","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"],["typ
e","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","scrolledIndexChange",4,"ngIf"],[3,"ngStyle","itemSize","scrolledIndexChange"],["viewport","
"],[4,"cdkVirtualFor","cdkVirtualForOf"],[1,"p-dropdown-empty-message"],["emptyFilter",""],["empty",""]],template:function(e,n){1&e&&(l(0,"div",0,1),C("click",function(r){return
n.onMouseclick(r)}),l(2,"div",2)(3,"input",3,4),C("focus",function(r){return
n.onInputFocus(r)})("blur",function(r){return
n.onInputBlur(r)})("keydown",function(r){return
n.onKeydown(r,!0)}),c()(),_(5,kV,3,13,"span",5),_(6,EV,2,4,"span",6),_(7,RV,2,4,"input",7),_(8,LV,1,0,"i",8),l(9,"div",9),k(10,"span",10),c(),_(11,s6,12,23,"div",11),c()),2&e&&(me(n.styleClass),p("ngClass",qn(20,r6,n.disabled,n.overlayVisible,n.focused,n.showClear&&!n.disabled))("ngStyle",n.style),a(3),p("disabled",n.disabled),ie("id",n.inputId)("placeholder",n.placeholder)("aria-label",n.ariaLabel)("aria-expanded",!1)("aria-labelledby",n.ariaLabelledBy)("tabindex",n.tabindex)("autofocus",n.autofocus)("aria-activedescendant",n.overlayVisible?n.labelId:null),a(2),p("ngIf",!n.editable&&null!=n.label),a(1),p("ngIf",!n.editable&&null==n.label),
a(1),p("ngIf",n.editable),a(1),p("ngIf",null!=n.value&&n.showClear&&!n.disabled),a(1),ie("aria-expanded",n.overlayVisible),a(1),p("ngClass",n.dropdownIcon),a(1),p("ngIf",n.overlayVisible))},directives:[a6,Po,Le,lt,Q,Kt,Rt,at,Qf,Jf],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:[wi("overlayAnimation",[Lt(":enter",[it({opacity:0,transform:"scaleY(0.8)"}),kt("{{showTransitionParams}}")]),Lt(":leave",[kt("{{hideTransitionParams}}",it({opacity:0}))])])]},changeDetection:0}),t})(),Zu=(()=>{class
t{}return t.\u0275fac=function(e){return
new(e||t)},t.\u0275mod=he({type:t}),t.\u0275inj=ue({imports:[[Fe,Nt,Fo,jn,pn],Nt,Fo]}),t})(),DT=(()=>{class
t{constructor(e,n,s){this.el=e,this.ngModel=n,this.cd=s}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.\u0275f
ac=function(e){return
new(e||t)(D(De),D(_e,8),D(rt))},t.\u0275dir=le({type:t,selectors:[["","pInputText",""]],hostAttrs:[1,"p-inputtext","p-component","p-element"],hostVars:2,hostBindings:function(e,n){1&e&&C("input",function(r){return
n.onInput(r)}),2&e&&si("p-filled",n.filled)}}),t})(),MT=(()=>{class
t{}return t.\u0275fac=function(e){return
new(e||t)},t.\u0275mod=he({type:t}),t.\u0275inj=ue({imports:[[Fe]]}),t})();const
l6=["input"];function c6(t,i){if(1&t){const
e=I();l(0,"i",6),C("click",function(){return
v(e),d().clear()}),c()}}const kT=function(){return{"p-inputnumber-button
p-inputnumber-button-up":!0}},IT=function(){return{"p-inputnumber-button
p-inputnumber-button-down":!0}};function u6(t,i){if(1&t){const
e=I();l(0,"span",7)(1,"button",8),C("mousedown",function(s){return
v(e),d().onUpButtonMouseDown(s)})("mouseup",function(){return
v(e),d().onUpButtonMouseUp()})("mouseleave",function(){return
v(e),d().onUpButtonMouseLeave()})("keydown",function(s){return
v(e),d().onUpButton
KeyDown(s)})("keyup",function(){return
v(e),d().onUpButtonKeyUp()}),c(),l(2,"button",8),C("mousedown",function(s){return
v(e),d().onDownButtonMouseDown(s)})("mouseup",function(){return
v(e),d().onDownButtonMouseUp()})("mouseleave",function(){return
v(e),d().onDownButtonMouseLeave()})("keydown",function(s){return
v(e),d().onDownButtonKeyDown(s)})("keyup",function(){return
v(e),d().onDownButtonKeyUp()}),c()()}if(2&t){const
e=d();a(1),me(e.incrementButtonClass),p("ngClass",A(10,kT))("icon",e.incrementButtonIcon)("disabled",e.disabled),a(1),me(e.decrementButtonClass),p("ngClass",A(11,IT))("icon",e.decrementButtonIcon)("disabled",e.disabled)}}function
d6(t,i){if(1&t){const
e=I();l(0,"button",8),C("mousedown",function(s){return
v(e),d().onUpButtonMouseDown(s)})("mouseup",function(){return
v(e),d().onUpButtonMouseUp()})("mouseleave",function(){return
v(e),d().onUpButtonMouseLeave()})("keydown",function(s){return
v(e),d().onUpButtonKeyDown(s)})("keyup",function(){return v(e),d().onUpButtonK
eyUp()}),c()}if(2&t){const
e=d();me(e.incrementButtonClass),p("ngClass",A(5,kT))("icon",e.incrementButtonIcon)("disabled",e.disabled)}}function
p6(t,i){if(1&t){const
e=I();l(0,"button",8),C("mousedown",function(s){return
v(e),d().onDownButtonMouseDown(s)})("mouseup",function(){return
v(e),d().onDownButtonMouseUp()})("mouseleave",function(){return
v(e),d().onDownButtonMouseLeave()})("keydown",function(s){return
v(e),d().onDownButtonKeyDown(s)})("keyup",function(){return
v(e),d().onDownButtonKeyUp()}),c()}if(2&t){const
e=d();me(e.decrementButtonClass),p("ngClass",A(5,IT))("icon",e.decrementButtonIcon)("disabled",e.disabled)}}const
h6=function(t,i,e){return{"p-inputnumber
p-component":!0,"p-inputnumber-buttons-stacked":t,"p-inputnumber-buttons-horizontal":i,"p-inputnumber-buttons-vertical":e}},m6={provide:dn,useExisting:je(()=>pt),multi:!0};let
pt=(()=>{class
t{constructor(e,n){this.el=e,this.cd=n,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.showClear=!1,this.onInput=new
H,this.onFocus=new H,this.onBlur=new H,this.onKeyDown=new H,this.onClear=new
H,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","minFractionDigits","maxFractionDigits","prefix","suffix"].some(s=>!!e[s])&&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}}constr
uctParser(){this.numberFormat=new Intl.NumberFormat(this.locale,this.getOptions());const
e=[...new
Intl.NumberFormat(this.locale,{useGrouping:!1}).format(9876543210)].reverse(),n=new
Map(e.map((s,r)=>[s,r]));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=s=>n.get(s)}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 th
is.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 s=new
Intl.NumberFormat(this.locale,this.getOptions()).format(e);return
this.prefix&&(s=this.prefix+s),this.suffix&&(s+=this.suffix),s}return
e.toString()}return""}parseValue(e){let
n=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(n){if("-"===n)return
n;let s=+n;return isNaN(s)?null:s}return null}repeat(e,n,s){if(this.readonly)return;let
r=n||500;this.clearTimer(),this.timer=setTimeout(()=>{this.repeat(e,40,s)},r),this.spin(e,s)}spin(e,n){let
s=this.step*n,r=this.parseValue(this.i
nput.nativeElement.value)||0,o=this.validateValue(r+s);this.maxlength&&this.maxlength<this.formatValue(o).length||(this.updateInput(o,null,"spin",null),this.updateModel(e,o),this.handleOnInput(e,r,o))}clear(){this.value=null,this.onModelChange(this.value),this.onClear.emit()}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()}onDownButtonMouseUp(){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
n=e.target.selectionStart,s=e.target.selectionEnd,r=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(r.charAt(n-1))||e.preventDefault();break;case
39:this.isNumeralChar(r.charAt(n))||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(),n===s){const
u=r.charAt(n-1),{decimalCharIndex:h,decimalCharIndexWithoutPrefix:b}=this.getDecimalCharIndexes(r);if(this.isNumeralChar(u)){const
y=this.getDecimalLength(r);if(this._group.test(u))this._group.lastIndex=0,o=r.slice(0,n-2)+r.slice(n-1);else
if(this._decimal.test(u))this._decimal.la
stIndex=0,y?this.input.nativeElement.setSelectionRange(n-1,n-1):o=r.slice(0,n-1)+r.slice(n);else
if(h>0&&n>h){const
w=this.isDecimalMode()&&(this.minFractionDigits||0)<y?"":"0";o=r.slice(0,n-1)+w+r.slice(n)}else
1===b?(o=r.slice(0,n-1)+"0"+r.slice(n),o=this.parseValue(o)>0?o:""):o=r.slice(0,n-1)+r.slice(n)}this.updateValue(e,o,null,"delete-single")}else
o=this.deleteRange(r,n,s),this.updateValue(e,o,null,"delete-range");break;case
46:if(e.preventDefault(),n===s){const
u=r.charAt(n),{decimalCharIndex:h,decimalCharIndexWithoutPrefix:b}=this.getDecimalCharIndexes(r);if(this.isNumeralChar(u)){const
y=this.getDecimalLength(r);if(this._group.test(u))this._group.lastIndex=0,o=r.slice(0,n)+r.slice(n+2);else
if(this._decimal.test(u))this._decimal.lastIndex=0,y?this.input.nativeElement.setSelectionRange(n+1,n+1):o=r.slice(0,n)+r.slice(n+1);else
if(h>0&&n>h){const
w=this.isDecimalMode()&&(this.minFractionDigits||0)<y?"":"0";o=r.slice(0,n)+w+r.slice(n+1)}else
1===b?(o=r.slice(0,n)+"0"+r.slice(n
+1),o=this.parseValue(o)>0?o:""):o=r.slice(0,n)+r.slice(n+1)}this.updateValue(e,o,null,"delete-back-single")}else
o=this.deleteRange(r,n,s),this.updateValue(e,o,null,"delete-range")}this.onKeyDown.emit(e)}onInputKeyPress(e){if(this.readonly)return;e.preventDefault();let
n=e.which||e.keyCode,s=String.fromCharCode(n);const
r=this.isDecimalSign(s),o=this.isMinusSign(s);(48<=n&&n<=57||o||r)&&this.insert(e,s,{isDecimalSign:r,isMinusSign:o})}onPaste(e){if(!this.disabled&&!this.readonly){e.preventDefault();let
n=(e.clipboardData||window.clipboardData).getData("Text");if(n){let
s=this.parseValue(n);null!=s&&this.insert(e,s.toString())}}}allowMinusSign(){return
null==this.min||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
n=e.search(this._decimal);this._decimal.lastIndex=0;const r=e.repl
ace(this._prefix,"").trim().replace(/\s/g,"").replace(this._currency,"").search(this._decimal);return
this._decimal.lastIndex=0,{decimalCharIndex:n,decimalCharIndexWithoutPrefix:r}}getCharIndexes(e){const
n=e.search(this._decimal);this._decimal.lastIndex=0;const
s=e.search(this._minusSign);this._minusSign.lastIndex=0;const
r=e.search(this._suffix);this._suffix.lastIndex=0;const o=e.search(this._currency);return
this._currency.lastIndex=0,{decimalCharIndex:n,minusCharIndex:s,suffixCharIndex:r,currencyCharIndex:o}}insert(e,n,s={isDecimalSign:!1,isMinusSign:!1}){const
r=n.search(this._minusSign);if(this._minusSign.lastIndex=0,!this.allowMinusSign()&&-1!==r)return;let
o=this.input.nativeElement.selectionStart,u=this.input.nativeElement.selectionEnd,h=this.input.nativeElement.value.trim();const{decimalCharIndex:b,minusCharIndex:y,suffixCharIndex:w,currencyCharIndex:M}=this.getCharIndexes(h);let
E;if(s.isMinusSign)0===o&&(E=h,(-1===y||0!==u)&&(E=this.insertText(h,n,0,u)),this.updateValue(
e,E,n,"insert"));else
if(s.isDecimalSign)b>0&&o===b?this.updateValue(e,h,n,"insert"):(b>o&&b<u||-1===b&&this.maxFractionDigits)&&(E=this.insertText(h,n,o,u),this.updateValue(e,E,n,"insert"));else{const
L=this.numberFormat.resolvedOptions().maximumFractionDigits,O=o!==u?"range-insert":"insert";if(b>0&&o>b){if(o+n.length-(b+1)<=L){const
N=M>=o?M-1:w>=o?w:h.length;E=h.slice(0,o)+n+h.slice(o+n.length,N)+h.slice(N),this.updateValue(e,E,n,O)}}else
E=this.insertText(h,n,o,u),this.updateValue(e,E,n,O)}}insertText(e,n,s,r){if(2===("."===n?n:n.split(".")).length){const
u=e.slice(s,r).search(this._decimal);return
this._decimal.lastIndex=0,u>0?e.slice(0,s)+this.formatValue(n)+e.slice(r):e||this.formatValue(n)}return
r-s===e.length?this.formatValue(n):0===s?n+e.slice(r):r===e.length?e.slice(0,s)+n:e.slice(0,s)+n+e.slice(r)}deleteRange(e,n,s){let
r;return
r=s-n===e.length?"":0===n?e.slice(s):s===e.length?e.slice(0,n):e.slice(0,n)+e.slice(s),r}initCursor(){let
e=this.input.nativeElement.selectionS
tart,n=this.input.nativeElement.value,s=n.length,r=null,o=(this.prefixChar||"").length;n=n.replace(this._prefix,""),e-=o;let
u=n.charAt(e);if(this.isNumeralChar(u))return e+o;let
h=e-1;for(;h>=0;){if(u=n.charAt(h),this.isNumeralChar(u)){r=h+o;break}h--}if(null!==r)this.input.nativeElement.setSelectionRange(r+1,r+1);else{for(h=e;h<s;){if(u=n.charAt(h),this.isNumeralChar(u)){r=h+o;break}h++}null!==r&&this.input.nativeElement.setSelectionRange(r,r)}return
r||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))}resetRegex(){this._numeral.lastIndex=0,this._decimal.lastIndex=0,this._group.lastIndex=0,this._minusSign.lastIndex=0}updateValue(e,n,s,r){let
o=this.input.nativeElement.value,u=null;null!=n&&(u=this.parseValue(n),u=u||this.allowEmpty?u:0,this.updateInput(u,s,r,n),this.handleOnInput(e,o,u))}handleOnInput(e,n,s){this.isValueChange
d(n,s)&&this.onInput.emit({originalEvent:e,value:s})}isValueChanged(e,n){return
null===n&&null!==e||null!=n&&n!==("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,n,s,r){n=n||"";let
o=this.input.nativeElement.value,u=this.formatValue(e),h=o.length;if(u!==r&&(u=this.concatValues(u,r)),0===h){this.input.nativeElement.value=u,this.input.nativeElement.setSelectionRange(0,0);const
y=this.initCursor()+n.length;this.input.nativeElement.setSelectionRange(y,y)}else{let
b=this.input.nativeElement.selectionStart,y=this.input.nativeElement.selectionEnd;if(this.maxlength&&this.maxlength<u.length)return;this.input.nativeElement.value=u;let
w=u.length;if("range-insert"===s){const
M=this.parseValue((o||"").slice(0,b)),L=(null!==M?M.toString():"").split("").join(`(${this.groupChar})?`),O=new
RegExp(L,"g");O.test(u);const
N=n.split("").join(`(${this.groupChar})?`),G=new RegExp(
N,"g");G.test(u.slice(O.lastIndex)),y=O.lastIndex+G.lastIndex,this.input.nativeElement.setSelectionRange(y,y)}else
if(w===h)"insert"===s||"delete-back-single"===s?this.input.nativeElement.setSelectionRange(y+1,y+1):"delete-single"===s?this.input.nativeElement.setSelectionRange(y-1,y-1):("delete-range"===s||"spin"===s)&&this.input.nativeElement.setSelectionRange(y,y);else
if("delete-back-single"===s){let
M=o.charAt(y-1),E=o.charAt(y),L=h-w,O=this._group.test(E);O&&1===L?y+=1:!O&&this.isNumeralChar(M)&&(y+=-1*L+1),this._group.lastIndex=0,this.input.nativeElement.setSelectionRange(y,y)}else
if("-"===o&&"insert"===s){this.input.nativeElement.setSelectionRange(0,0);const
E=this.initCursor()+n.length+1;this.input.nativeElement.setSelectionRange(E,E)}else
y+=w-h,this.input.nativeElement.setSelectionRange(y,y)}this.input.nativeElement.setAttribute("aria-valuenow",e)}concatValues(e,n){if(e&&n){let
s=n.search(this._decimal);return
this._decimal.lastIndex=0,-1!==s?e.split(this._decimal)[0]+n.s
lice(s):e}return e}getDecimalLength(e){if(e){const
n=e.split(this._decimal);if(2===n.length)return
n[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
n=this.validateValue(this.parseValue(this.input.nativeElement.value));this.input.nativeElement.value=this.formatValue(n),this.input.nativeElement.setAttribute("aria-valuenow",n),this.updateModel(e,n),this.onBlur.emit(e)}formattedValue(){return
this.formatValue(this.value||this.allowEmpty?this.value:0)}updateModel(e,n){this.value!==n&&(this.value=n,this.onModelChange(n)),this.onModelTouched()}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)}getF
ormatter(){return this.numberFormat}}return t.\u0275fac=function(e){return
new(e||t)(D(De),D(rt))},t.\u0275cmp=z({type:t,selectors:[["p-inputNumber"]],viewQuery:function(e,n){if(1&e&&W(l6,5),2&e){let
s;V(s=B())&&(n.input=s.first)}},hostAttrs:[1,"p-element","p-inputwrapper"],hostVars:6,hostBindings:function(e,n){2&e&&si("p-inputwrapper-filled",n.filled)("p-inputwrapper-focus",n.focused)("p-inputnumber-clearable",n.showClear&&"vertical"!=n.buttonLayout)},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",showClear:"showClear",disabled:"disabled"},outputs:{onInput:"onInput",onFocus:"onFocus",onBlur:"onBlur",onKeyDown:"onKeyDown",onClear:"onClear"},features:[Pe([m6]),fn],decls:7,vars:32,consts:[[3,"ngClass","ngStyle"],["pInputText","","inputmode","decimal",3,"ngClass","ngStyle","value","disabled","readonly","input","keydown","keypress","paste","click","focus","blur"],["input",""],["class","p-inputnumber-clear-icon
pi
pi-times",3,"click",4,"ngIf"],["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-c
lear-icon","pi","pi-times",3,"click"],[1,"p-inputnumber-button-group"],["type","button","pButton","",3,"ngClass","icon","disabled","mousedown","mouseup","mouseleave","keydown","keyup"]],template:function(e,n){1&e&&(l(0,"span",0)(1,"input",1,2),C("input",function(r){return
n.onUserInput(r)})("keydown",function(r){return
n.onInputKeyDown(r)})("keypress",function(r){return
n.onInputKeyPress(r)})("paste",function(r){return
n.onPaste(r)})("click",function(){return
n.onInputClick()})("focus",function(r){return
n.onInputFocus(r)})("blur",function(r){return
n.onInputBlur(r)}),c(),_(3,c6,1,0,"i",3),_(4,u6,3,12,"span",4),_(5,d6,1,6,"button",5),_(6,p6,1,6,"button",5),c()),2&e&&(me(n.styleClass),p("ngClass",Qt(28,h6,n.showButtons&&"stacked"===n.buttonLayout,n.showButtons&&"horizontal"===n.buttonLayout,n.showButtons&&"vertical"===n.buttonLayout))("ngStyle",n.style),a(1),me(n.inputStyleClass),p("ngClass","p-inputnumber-input")("ngStyle",n.inputStyle)("value",n.formattedValue())("disabled",n.disab
led)("readonly",n.readonly),ie("placeholder",n.placeholder)("title",n.title)("id",n.inputId)("size",n.size)("name",n.name)("autocomplete",n.autocomplete)("maxlength",n.maxlength)("tabindex",n.tabindex)("aria-label",n.ariaLabel)("aria-required",n.ariaRequired)("required",n.required)("min",n.min)("max",n.max),a(2),p("ngIf","vertical"!=n.buttonLayout&&n.showClear&&n.value),a(1),p("ngIf",n.showButtons&&"stacked"===n.buttonLayout),a(1),p("ngIf",n.showButtons&&"stacked"!==n.buttonLayout),a(1),p("ngIf",n.showButtons&&"stacked"!==n.buttonLayout))},directives:[Le,lt,DT,Q,On],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{border-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-inputnumber-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%}.p-inputnumber-clear-icon{position:absolute;top:50%;margin-top:-.5rem;cursor:pointer}.p-inputnumber-clearable{position:relative}\n"],encapsulation:2,changeDetection:0}),t})(),Xu=(()=>{class
t{}return t.\u0275fac=function(e){return
new(e||t)},t.\u0275mod=he({type:t}),t.\u0275inj=ue({imports:[[Fe,MT,gl]]}),t})();function
f6(t,i){1&t&&Y(0)}const Zf=function(t){return{$implicit:t}};function
g6(t,i){if(1&t&&(l(0,"div",15),_(1,f6,1,0,"ng-container",16),c()),2&t){const
e=d(2);a(1),p("ngTempl
ateOutlet",e.templateLeft)("ngTemplateOutletContext",U(2,Zf,e.paginatorState))}}function
_6(t,i){if(1&t&&(l(0,"span",17),g(1),c()),2&t){const
e=d(2);a(1),S(e.currentPageReport)}}const
ed=function(t){return{"p-disabled":t}};function b6(t,i){if(1&t){const
e=I();l(0,"button",18),C("click",function(s){return
v(e),d(2).changePageToFirst(s)}),k(1,"span",19),c()}if(2&t){const
e=d(2);p("disabled",e.isFirstPage()||e.empty())("ngClass",U(2,ed,e.isFirstPage()||e.empty()))}}const
v6=function(t){return{"p-highlight":t}};function C6(t,i){if(1&t){const
e=I();l(0,"button",22),C("click",function(s){const
o=v(e).$implicit;return d(3).onPageLinkClick(s,o-1)}),g(1),c()}if(2&t){const
e=i.$implicit,n=d(3);p("ngClass",U(2,v6,e-1==n.getPage())),a(1),S(e)}}function
y6(t,i){if(1&t&&(l(0,"span",20),_(1,C6,2,4,"button",21),c()),2&t){const
e=d(2);a(1),p("ngForOf",e.pageLinks)}}function
w6(t,i){1&t&&g(0),2&t&&S(d(3).currentPageReport)}function
T6(t,i){if(1&t){const
e=I();l(0,"p-dropdown",23),C("onChange",functio
n(s){return
v(e),d(2).onPageDropdownChange(s)}),_(1,w6,1,1,"ng-template",24),c()}if(2&t){const
e=d(2);p("options",e.pageItems)("ngModel",e.getPage())("disabled",e.empty())("appendTo",e.dropdownAppendTo)("scrollHeight",e.dropdownScrollHeight)}}function
S6(t,i){if(1&t){const
e=I();l(0,"button",25),C("click",function(s){return
v(e),d(2).changePageToLast(s)}),k(1,"span",26),c()}if(2&t){const
e=d(2);p("disabled",e.isLastPage()||e.empty())("ngClass",U(2,ed,e.isLastPage()||e.empty()))}}function
x6(t,i){if(1&t){const
e=I();l(0,"p-inputNumber",27),C("ngModelChange",function(s){return
v(e),d(2).changePage(s-1)}),c()}if(2&t){const
e=d(2);p("ngModel",e.currentPage())("disabled",e.empty())}}function
D6(t,i){1&t&&Y(0)}function
M6(t,i){if(1&t&&_(0,D6,1,0,"ng-container",16),2&t){const
e=i.$implicit;p("ngTemplateOutlet",d(4).dropdownItemTemplate)("ngTemplateOutletContext",U(2,Zf,e))}}function
k6(t,i){1&t&&(de(0),_(1,M6,1,4,"ng-template",30),pe())}function
I6(t,i){if(1&t){const e=I();l(0,"p-dropdown"
,28),C("ngModelChange",function(s){return
v(e),d(2).rows=s})("onChange",function(s){return
v(e),d(2).onRppChange(s)}),_(1,k6,2,0,"ng-container",29),c()}if(2&t){const
e=d(2);p("options",e.rowsPerPageItems)("ngModel",e.rows)("disabled",e.empty())("appendTo",e.dropdownAppendTo)("scrollHeight",e.dropdownScrollHeight),a(1),p("ngIf",e.dropdownItemTemplate)}}function
E6(t,i){1&t&&Y(0)}function
R6(t,i){if(1&t&&(l(0,"div",31),_(1,E6,1,0,"ng-container",16),c()),2&t){const
e=d(2);a(1),p("ngTemplateOutlet",e.templateRight)("ngTemplateOutletContext",U(2,Zf,e.paginatorState))}}function
L6(t,i){if(1&t){const
e=I();l(0,"div",1),_(1,g6,2,4,"div",2),_(2,_6,2,1,"span",3),_(3,b6,2,4,"button",4),l(4,"button",5),C("click",function(s){return
v(e),d().changePageToPrev(s)}),k(5,"span",6),c(),_(6,y6,2,1,"span",7),_(7,T6,2,5,"p-dropdown",8),l(8,"button",9),C("click",function(s){return
v(e),d().changePageToNext(s)}),k(9,"span",10),c(),_(10,S6,2,4,"button",11),_(11,x6,1,2,"p-inputNumber",12),_(12,I6,2,6,"p-drop
down",13),_(13,R6,2,4,"div",14),c()}if(2&t){const
e=d();me(e.styleClass),p("ngStyle",e.style)("ngClass","p-paginator
p-component"),a(1),p("ngIf",e.templateLeft),a(1),p("ngIf",e.showCurrentPageReport),a(1),p("ngIf",e.showFirstLastIcon),a(1),p("disabled",e.isFirstPage()||e.empty())("ngClass",U(17,ed,e.isFirstPage()||e.empty())),a(2),p("ngIf",e.showPageLinks),a(1),p("ngIf",e.showJumpToPageDropdown),a(1),p("disabled",e.isLastPage()||e.empty())("ngClass",U(19,ed,e.isLastPage()||e.empty())),a(2),p("ngIf",e.showFirstLastIcon),a(1),p("ngIf",e.showJumpToPageInput),a(1),p("ngIf",e.rowsPerPageOptions),a(1),p("ngIf",e.templateRight)}}let
ET=(()=>{class t{constructor(e){this.cd=e,this.pageLinkSize=5,this.onPageChange=new
H,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.updateRowsPerPageOptions()),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(),n=Math.min(this.pageLinkSize,e),s=Math.max(0,Math.ceil(this.getPage()-n/2)),r=Math.min(e-1,s+n-1);return
s=Math.max(0,
s-(this.pageLinkSize-(r-s+1))),[s,r]}updatePageLinks(){this.pageLinks=[];let
e=this.calculatePageLinkBoundaries(),s=e[1];for(let
r=e[0];r<=s;r++)this.pageLinks.push(r+1);if(this.showJumpToPageDropdown){this.pageItems=[];for(let
r=0;r<this.getPageCount();r++)this.pageItems.push({label:String(r+1),value:r})}}changePage(e){var
n=this.getPageCount();if(e>=0&&e<n){this._first=this.rows*e;var
s={page:e,first:this.first,rows:this.rows,pageCount:n};this.updatePageLinks(),this.onPageChange.emit(s),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,n){this.changePage(n),e.preventDefault()}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)(D(rt))},t.\u0275cmp=z({type:t,selectors:[["p-paginator"]],hostAttrs:[1,"p-element"],inputs:{pageLi
nkSize:"pageLinkSize",style:"style",styleClass:"styleClass",alwaysShow:"alwaysShow",templateLeft:"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:[fn],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-fir
st","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,n){1&e&&_(0,L6,14,21,"div",0),2&e&&p("ng
If",!!n.alwaysShow||n.pageLinks&&n.pageLinks.length>1)},directives:[Ot,pt,Q,lt,Le,Rt,bt,at,Te,_e,ne],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})(),RT=(()=>{class
t{}return t.\u0275fac=function(e){return
new(e||t)},t.\u0275mod=he({type:t}),t.\u0275inj=ue({imports:[[Fe,Zu,Xu,Mu,Nt,pn],Zu,Xu,Mu,Nt]}),t})();function
O6(t,i){if(1&t&&(l(0,"div",10)(1,"div",11),k(2,"i"),c()()),2&t){const
e=d();a(2),me("p-dataview-loading-icon pi-spin "+e.loadingIcon)}}function
A6(t,i){1&t&&Y(0)}functi
on
P6(t,i){if(1&t&&(l(0,"div",12),St(1),_(2,A6,1,0,"ng-container",13),c()),2&t){const
e=d();a(2),p("ngTemplateOutlet",e.headerTemplate)}}function
F6(t,i){if(1&t){const
e=I();l(0,"p-paginator",14),C("onPageChange",function(s){return
v(e),d().paginate(s)}),c()}if(2&t){const
e=d();p("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
N6(t,i){1&t&&Y(0)}const V6=function(t,i){return{$implicit:t,row
Index:i}};function
B6(t,i){if(1&t&&_(0,N6,1,0,"ng-container",15),2&t){const
e=i.$implicit,n=i.index;p("ngTemplateOutlet",d().itemTemplate)("ngTemplateOutletContext",Ge(2,V6,e,n))}}function
H6(t,i){if(1&t&&(de(0),g(1),pe()),2&t){const e=d(2);a(1),T("
",e.emptyMessageLabel," ")}}function
q6(t,i){1&t&&Y(0,null,19)}function
G6(t,i){if(1&t&&(l(0,"div",16)(1,"div",17),_(2,H6,2,1,"ng-container",18),_(3,q6,2,0,"ng-container",13),c()()),2&t){const
e=d();a(2),p("ngIf",!e.emptyMessageTemplate)("ngIfElse",e.emptyFilter),a(1),p("ngTemplateOutlet",e.emptyMessageTemplate)}}function
U6(t,i){if(1&t){const
e=I();l(0,"p-paginator",20),C("onPageChange",function(s){return
v(e),d().paginate(s)}),c()}if(2&t){const
e=d();p("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
z6(t,i){1&t&&Y(0)}function
j6(t,i){if(1&t&&(l(0,"div",21),St(1,1),_(2,z6,1,0,"ng-container",13),c()),2&t){const
e=d();a(2),p("ngTemplateOutlet",e.footerTemplate)}}const
$6=[[["p-header"]],[["p-footer"]]],W6=function(t,i){return{"p-dataview
p-component":!0,"p-dataview-list":t,"p-dataview-grid":i}},K6=["p-header","p-footer"];let
LT=(()=>{class
t{constructor(e,n,s,r){this.el=e,this.cd=n,this.filterService=s,this.config=r,this.pageLinks=5,this.paginatorPosition="bottom",this.alwaysShowPaginator=!0,this.paginatorDropdownScrollHeight="200px",this.currentPageReportTemplate="{currentPage}
of {totalPages}",this.showFirstLastIcon=!0,t
his.showPageLinks=!0,this.emptyMessage="",this.onLazyLoad=new
H,this.trackBy=(o,u)=>u,this.loadingIcon="pi
pi-spinner",this.first=0,this.onPage=new H,this.onSort=new H,this.onChangeLayout=new
H,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.pagi
natorRightTemplate=e.template;break;case"paginatordropdownitem":this.paginatorDropdownItemTemplate=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,n)=>{let
s=Z.resolveFieldData(e,this.sortField),r
=Z.resolveFieldData(n,this.sortField),o=null;return
o=null==s&&null!=r?-1:null!=s&&null==r?1:null==s&&null==r?0:"string"==typeof
s&&"string"==typeof
r?s.localeCompare(r):s<r?-1:s>r?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(Ft.EMPTY_MESSAGE)}filter(e,n="contains"){if(this.filterValue=e,this.value&&this.value.length){let
s=this.filterBy.split(",");this.filteredValue=this.filterService.filter(this.value,s,e,n,this.filterLocale),this.filteredValue.length===this.value.length&&(this.filteredValue=null),this.paginator&&(this.first=0,this.totalRecords=this.filteredValu
e?this.filteredValue.length:this.value?this.value.length:0),this.cd.markForCheck()}}hasFilter(){return
this.filterValue&&this.filterValue.trim().length>0}ngOnDestroy(){this.translationSubscription&&this.translationSubscription.unsubscribe()}}return
t.\u0275fac=function(e){return
new(e||t)(D(De),D(rt),D(hl),D(zn))},t.\u0275cmp=z({type:t,selectors:[["p-dataView"]],contentQueries:function(e,n,s){if(1&e&&(st(s,Oo,5),st(s,fl,5),st(s,ne,4)),2&e){let
r;V(r=B())&&(n.header=r.first),V(r=B())&&(n.footer=r.first),V(r=B())&&(n.templates=r)}},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",showJum
pToPageDropdown:"showJumpToPageDropdown",showFirstLastIcon:"showFirstLastIcon",showPageLinks:"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:[fn],ngContentSelectors:K6,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-emptymessage"],[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,n){1&e&&(Sn($6),l(0,"div",0),_(1,O6,3,2,"div",1),_(2,P6,3,1,"div",2),_(3,F6,1,16,"p-paginator",3),l(4,"div",4)(5,"div",5),_(6,B6,1,5,"ng-template",6),m(7,"slice"),_(8,G6,4,3,"div",7),c()(),_(9,U6,1,16,"p-paginator",8),_(10,j6,3,1,"div",9),c()),2&e&&(me(n.styleClass),p("ngClass",Ge(16,W6,"list"===n.layout,"grid"===n.layout))("ngStyle",n.style),a(1),p("ngIf",n.loading),a(1),p("ngIf",n.header||n.headerTemplate),a(1),p("ngIf",n.paginator&&("top"===n.paginatorPosition||"bot
h"==n.paginatorPosition)),a(3),p("ngForOf",n.paginator?function
hC(t,i,e,n,s){const r=t+20,o=$(),u=zr(o,r);return
Ua(o,r)?uC(o,Fn(),i,u.transform,e,n,s,u):u.transform(e,n,s)}(7,12,n.filteredValue||n.value,n.lazy?0:n.first,(n.lazy?0:n.first)+n.rows):n.filteredValue||n.value)("ngForTrackBy",n.trackBy),a(2),p("ngIf",n.isEmpty()),a(1),p("ngIf",n.paginator&&("bottom"===n.paginatorPosition||"both"==n.paginatorPosition)),a(1),p("ngIf",n.footer||n.footerTemplate))},directives:[ET,Le,lt,Q,Rt,at],pipes:[My],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})(),Q6=(()=>{class
t{}return t.\u0275fac=function(e){return
new(e||t)},t.\u0275mod=he({type:t}),t.\u0275inj=ue({imports:[[Fe,Nt,RT],Nt]}),t})(),J6=(()=>{class
t{constructor(e){this.el=e}onkeydown(e){if(!0!==this.pFocusTrapDisabled){e.preventDefault();let
n=R.getFocusableElements(this.el.n
ativeElement);if(n&&n.length>0)if(n[0].ownerDocument.activeElement){let
s=n.indexOf(n[0].ownerDocument.activeElement);e.shiftKey?-1==s||0===s?n[n.length-1].focus():n[s-1].focus():-1==s||s===n.length-1?n[0].focus():n[s+1].focus()}else
n[0].focus()}}}return t.\u0275fac=function(e){return
new(e||t)(D(De))},t.\u0275dir=le({type:t,selectors:[["","pFocusTrap",""]],hostAttrs:[1,"p-element"],hostBindings:function(e,n){1&e&&C("keydown.tab",function(r){return
n.onkeydown(r)})("keydown.shift.tab",function(r){return
n.onkeydown(r)})},inputs:{pFocusTrapDisabled:"pFocusTrapDisabled"}}),t})(),Y6=(()=>{class
t{}return t.\u0275fac=function(e){return
new(e||t)},t.\u0275mod=he({type:t}),t.\u0275inj=ue({imports:[[Fe]]}),t})();const
Z6=["titlebar"],X6=["content"],e7=["footer"];function
t7(t,i){if(1&t&&(l(0,"span",17),g(1),c()),2&t){const
e=d(4);ie("id",e.id+"-label"),a(1),S(e.header)}}function
n7(t,i){1&t&&(l(0,"span",17),St(1,1),c()),2&t&&ie("id",d(4).id+"-label")}function
i7(t,i){1&t&&Y(0)}const s7=fu
nction(){return{"p-dialog-header-icon p-dialog-header-maximize
p-link":!0}};function r7(t,i){if(1&t){const
e=I();l(0,"button",18),C("click",function(){return
v(e),d(4).maximize()})("keydown.enter",function(){return
v(e),d(4).maximize()}),k(1,"span",19),c()}if(2&t){const
e=d(4);p("ngClass",A(2,s7)),a(1),p("ngClass",e.maximized?e.minimizeIcon:e.maximizeIcon)}}const
o7=function(){return{"p-dialog-header-icon p-dialog-header-close
p-link":!0}};function a7(t,i){if(1&t){const
e=I();l(0,"button",20),C("click",function(s){return
v(e),d(4).close(s)})("keydown.enter",function(s){return
v(e),d(4).close(s)}),k(1,"span",21),c()}if(2&t){const
e=d(4);p("ngClass",A(4,o7)),ie("aria-label",e.closeAriaLabel)("tabindex",e.closeTabindex),a(1),p("ngClass",e.closeIcon)}}function
l7(t,i){if(1&t){const
e=I();l(0,"div",11,12),C("mousedown",function(s){return
v(e),d(3).initDrag(s)}),_(2,t7,2,2,"span",13),_(3,n7,2,1,"span",13),_(4,i7,1,0,"ng-container",8),l(5,"div",14),_(6,r7,2,3,"button",15),_(7,a7,2,5,"butto
n",16),c()()}if(2&t){const
e=d(3);a(2),p("ngIf",!e.headerFacet&&!e.headerTemplate),a(1),p("ngIf",e.headerFacet),a(1),p("ngTemplateOutlet",e.headerTemplate),a(2),p("ngIf",e.maximizable),a(1),p("ngIf",e.closable)}}function
c7(t,i){1&t&&Y(0)}function u7(t,i){1&t&&Y(0)}function
d7(t,i){if(1&t&&(l(0,"div",22,23),St(2,2),_(3,u7,1,0,"ng-container",8),c()),2&t){const
e=d(3);a(3),p("ngTemplateOutlet",e.footerTemplate)}}function
p7(t,i){if(1&t){const
e=I();l(0,"div",24),C("mousedown",function(s){return
v(e),d(3).initResize(s)}),c()}}const h7=function(t,i,e,n){return{"p-dialog
p-component":!0,"p-dialog-rtl":t,"p-dialog-draggable":i,"p-dialog-resizable":e,"p-dialog-maximized":n}},m7=function(t,i){return{transform:t,transition:i}},f7=function(t){return{value:"visible",params:t}};function
g7(t,i){if(1&t){const
e=I();l(0,"div",3,4),C("(a)animation.start",function(s){return
v(e),d(2).onAnimationStart(s)})("(a)animation.done",function(s){return
v(e),d(2).onAnimationEnd(s)}),_(2,l7,8,5,"div",5),l(3,"div"
,6,7),St(5),_(6,c7,1,0,"ng-container",8),c(),_(7,d7,4,1,"div",9),_(8,p7,1,0,"div",10),c()}if(2&t){const
e=d(2);me(e.styleClass),p("ngClass",qn(15,h7,e.rtl,e.draggable,e.resizable,e.maximized))("ngStyle",e.style)("pFocusTrapDisabled",!1===e.focusTrap)("@animation",U(23,f7,Ge(20,m7,e.transformOptions,e.transitionOptions))),ie("aria-labelledby",e.id+"-label"),a(2),p("ngIf",e.showHeader),a(1),me(e.contentStyleClass),p("ngClass","p-dialog-content")("ngStyle",e.contentStyle),a(3),p("ngTemplateOutlet",e.contentTemplate),a(1),p("ngIf",e.footerFacet||e.footerTemplate),a(1),p("ngIf",e.resizable)}}const
_7=function(t,i,e,n,s,r,o,u,h,b){return{"p-dialog-mask":!0,"p-component-overlay
p-component-overlay-enter":t,"p-dialog-mask-scrollblocker":i,"p-dialog-left":e,"p-dialog-right":n,"p-dialog-top":s,"p-dialog-top-left":r,"p-dialog-top-right":o,"p-dialog-bottom":u,"p-dialog-bottom-left":h,"p-dialog-bottom-right":b}};function
b7(t,i){if(1&t&&(l(0,"div",1),_(1,g7,9,25,"div",2),c()),2&t){const
e=d();me
(e.maskStyleClass),p("ngClass",Hh(4,_7,[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])),a(1),p("ngIf",e.visible)}}const
v7=["*",[["p-header"]],[["p-footer"]]],C7=["*","p-header","p-footer"],y7=ku([it({transform:"{{transform}}",opacity:0}),kt("{{transition}}")]),w7=ku([kt("{{transition}}",it({transform:"{{transform}}",opacity:0}))]);let
bn=(()=>{class
t{constructor(e,n,s,r,o){this.el=e,this.renderer=n,this.zone=s,this.cd=r,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 H,this.onHide=new H,this.visibleChange=new
H,this.onResizeInit=new H,this.onResizeEnd=new H,this.onDragEnd=new H,this.onMaximize=new
H,this.id=pl(),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.contentTemplat
e=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=R.findSingle(this.container,"[autofocus]");e&&this.zone.runOutsideAngular(()=>{setTimeout(()=>e.focus(),5)})}close(e){this.visibleChange.emit(!1),e.preventDefault()}enableModali
ty(){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&&R.addClass(document.body,"p-overflow-hidden")}disableModality(){this.wrapper&&(this.dismissableMask&&this.unbindMaskClickListener(),this.modal&&R.removeClass(document.body,"p-overflow-hidden"),this.cd.destroyed||this.cd.detectChanges())}maximize(){this.maximized=!this.maximized,!this.modal&&!this.blockScroll&&(this.maximized?R.addClass(document.body,"p-overflow-hidden"):R.removeClass(document.body,"p-overflow-hidden")),this.onMaximize.emit({maximized:this.maximized})}unbindMaskClickListener(){this.maskClickListener&&(this.maskClickListener(),this.maskClickListener=null)}moveOnTop(){this.autoZIndex&&(dt.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.styl
eElement=document.createElement("style"),this.styleElement.type="text/css",document.head.appendChild(this.styleElement);let
e="";for(let n in this.breakpoints)e+=`\n @media screen and
(max-width: ${n}) {\n .p-dialog[${this.id}] {\n
width: ${this.breakpoints[n]} !important;\n }\n
}\n
`;this.styleElement.innerHTML=e}}initDrag(e){R.hasClass(e.target,"p-dialog-header-icon")||R.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",R.addClass(document.body,"p-unselectable-text"))}onKeydown(e){if(this.focusTrap&&9===e.which){e.preventDefault();let
n=R.getFocusableElements(this.container);if(n&&n.length>0)if(n[0].ownerDocument.activeElement){let
s=n.indexOf(n[0].ownerDocument.activeElement);e.shiftKey?-1==s||0===s?n[n.length-1].focus():n[s-1].focus():-1=
=s||s===n.length-1?n[0].focus():n[s+1].focus()}else
n[0].focus()}}onDrag(e){if(this.dragging){let
n=R.getOuterWidth(this.container),s=R.getOuterHeight(this.container),r=e.pageX-this.lastPageX,o=e.pageY-this.lastPageY,u=this.container.getBoundingClientRect(),h=u.left+r,b=u.top+o,y=R.getViewport();this.container.style.position="fixed",this.keepInViewport?(h>=this.minX&&h+n<y.width&&(this._style.left=h+"px",this.lastPageX=e.pageX,this.container.style.left=h+"px"),b>=this.minY&&b+s<y.height&&(this._style.top=b+"px",this.lastPageY=e.pageY,this.container.style.top=b+"px")):(this.lastPageX=e.pageX,this.container.style.left=h+"px",this.lastPageY=e.pageY,this.container.style.top=b+"px")}}endDrag(e){this.dragging&&(this.dragging=!1,R.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,R.addClass(document.body,"p-unselectable-text"),this.onResizeInit.emit(e))}onResize(e){if(this.resizing){let
n=e.pageX-this.lastPageX,s=e.pageY-this.lastPageY,r=R.getOuterWidth(this.container),o=R.getOuterHeight(this.container),u=R.getOuterHeight(this.contentViewChild.nativeElement),h=r+n,b=o+s,y=this.container.style.minWidth,w=this.container.style.minHeight,M=this.container.getBoundingClientRect(),E=R.getViewport();(!parseInt(this.container.style.top)||!parseInt(this.container.style.left))&&(h+=n,b+=s),(!y||h>parseInt(y))&&M.left+h<E.width&&(this._style.width=h+"px",this.container.style.width=this._style.width),(!w||b>parseInt(w))&&M.top+b<E.height&&(this.contentViewChild.nativeElement.style.height=u+b-o+"px",this._style.height&&(this._style.height=b+"px",this.container.style.height=this._style.height)),this.lastPageX=e.pageX,this.lastPageY=e.pageY}}resizeEnd(e){this.resizing&&(this.resiz
ing=!1,R.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.documen
tDragEndListener)})}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.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",n=>{27==n.which&&
this.close(n)})}unbindDocumentEscapeListener(){this.documentEscapeListener&&(this.documentEscapeListener(),this.documentEscapeListener=null)}appendContainer(){this.appendTo&&("body"===this.appendTo?document.body.appendChild(this.wrapper):R.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&&R.addClass(document.body,"p-overflow-hidden"),this.focusOnShow&&this.focus();break;case"void":this.wrapper&&this.modal&&R.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&&(R.removeClass(document.body,"p-overflow-hidden"),this.maximized=!1),this.modal&&this.disableModality(),this.blockScroll&&R.removeClass(document.body,"p-overflow-hidden"),this.container&&this.autoZIndex&&dt.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.\u0275fac=function(e){return
new(e||t)(D(De),D(gn),D(nt),D(rt),D(zn))},t.\u0275cmp=z({type:t,selectors:[["p-dialog"]],contentQueries:function(e,n,s){if(1&e&&(st(s,Oo,5),st(s,fl,5),st(s,ne,4)),2&e){let
r;V(r=B())&&(n.headerFacet=r.first),V(r=B())&&(n.footerFacet=r.first),V(r=B())&&(n.templates=r)}},viewQuery:function(e,n){if(1&e&&(W(Z6,5),W(X6,5),W(e7,5)),2&e){l
et
s;V(s=B())&&(n.headerViewChild=s.first),V(s=B())&&(n.contentViewChild=s.first),V(s=B())&&(n.footerViewChild=s.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:"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:"maximizeIco
n",visible:"visible",style:"style",position:"position"},outputs:{onShow:"onShow",onHide:"onHide",visibleChange:"visibleChange",onResizeInit:"onResizeInit",onResizeEnd:"onResizeEnd",onDragEnd:"onDragEnd",onMaximize:"onMaximize"},ngContentSelectors:C7,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","keydo
wn.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,n){1&e&&(Sn(v7),_(0,b7,2,15,"div",0)),2&e&&p("ngIf",n.maskVisible)},directives:[Q,Le,J6,lt,Rt,bt],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-draggable
.p-dialog-header{curs
or:move}.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:[wi("animation",[Lt("void
=> visible",[fw(y7)]),Lt("visible =>
void",[fw(w7)])])]},changeDetection:0}),t})(),T7=(()=>{class t{}return
t.\u0275fac=function(e){return
new(e||t)},t.\u0275mod=he({type:t}),t.\u0275inj=ue({imports:[[Fe,Y6,pn],Nt]}),t})();const
S7=["*"];let x7=(()=>{class
t{constructor(){this.layout="horizontal",this.type="solid"}containerClass(){return{"p-divider
p-component":!0,"p-divider-horizontal":"horizontal"===this.layout,"p-divider-vertical":"vertical"===this.layout,"p-divider-solid":"solid"===this.type,"p-divider-dashed":"dashed"===this.type,"p-d
ivider-dotted":"dotted"===this.type,"p-divider-left":"horizontal"===this.layout&&(!this.align||"left"===this.align),"p-divider-center":"horizontal"===this.layout&&"center"===this.align||"vertical"===this.layout&&(!this.align||"center"===this.align),"p-divider-right":"horizontal"===this.layout&&"right"===this.align,"p-divider-top":"vertical"===this.layout&&"top"===this.align,"p-divider-bottom":"vertical"===this.layout&&"bottom"===this.align}}}return
t.\u0275fac=function(e){return
new(e||t)},t.\u0275cmp=z({type:t,selectors:[["p-divider"]],hostAttrs:[1,"p-element"],inputs:{styleClass:"styleClass",style:"style",layout:"layout",type:"type",align:"align"},ngContentSelectors:S7,decls:3,vars:4,consts:[["role","separator",3,"ngClass","ngStyle"],[1,"p-divider-content"]],template:function(e,n){1&e&&(Sn(),l(0,"div",0)(1,"div",1),St(2),c()()),2&e&&(me(n.styleClass),p("ngClass",n.containerClass())("ngStyle",n.style))},directives:[Le,lt],styles:['.p-divider-horizontal{display:flex;width:100%;posit
ion:relative;align-items:center}.p-divider-horizontal:before{position:absolute;display:block;top:50%;left:0;width:100%;content:""}.p-divider-horizontal.p-divider-left{justify-content:flex-start}.p-divider-horizontal.p-divider-right{justify-content:flex-end}.p-divider-horizontal.p-divider-center{justify-content:center}.p-divider-content{z-index:1}.p-divider-vertical{min-height:100%;margin:0
1rem;display:flex;position:relative;justify-content:center}.p-divider-vertical:before{position:absolute;display:block;top:0;left:50%;height:100%;content:""}.p-divider-vertical.p-divider-top{align-items:flex-start}.p-divider-vertical.p-divider-center{align-items:center}.p-divider-vertical.p-divider-bottom{align-items:flex-end}.p-divider-solid.p-divider-horizontal:before{border-top-style:solid}.p-divider-solid.p-divider-vertical:before{border-left-style:solid}.p-divider-dashed.p-divider-horizontal:before{border-top-style:dashed}.p-divider-dashed.p-divider-vertical:before{border-left-style:dashed}.p-
divider-dotted.p-divider-horizontal:before{border-top-style:dotted}.p-divider-dotted.p-divider-horizontal:before{border-left-style:dotted}\n'],encapsulation:2,changeDetection:0}),t})(),D7=(()=>{class
t{}return t.\u0275fac=function(e){return
new(e||t)},t.\u0275mod=he({type:t}),t.\u0275inj=ue({imports:[[Fe]]}),t})();const
M7=function(t,i){return{"pi-minus":t,"pi-plus":i}};function
k7(t,i){if(1&t&&k(0,"span",9),2&t){const
e=d(2);p("ngClass",Ge(1,M7,!e.collapsed,e.collapsed))}}function
I7(t,i){1&t&&Y(0)}function E7(t,i){if(1&t){const
e=I();de(0),l(1,"a",7),C("click",function(s){return
v(e),d().toggle(s)})("keydown.enter",function(s){return
v(e),d().toggle(s)}),_(2,k7,1,4,"span",8),_(3,I7,1,0,"ng-container",6),c(),pe()}if(2&t){const
e=d(),n=F(4);a(1),ie("aria-controls",e.id+"-content")("aria-expanded",!e.collapsed),a(1),p("ngIf",e.toggleable),a(1),p("ngTemplateOutlet",n)}}function
R7(t,i){1&t&&Y(0)}function
L7(t,i){if(1&t&&(l(0,"span",10),g(1),c(),St(2,1),_(3,R7,1,0,"ng-container",6)),2&
t){const
e=d();a(1),S(e.legend),a(2),p("ngTemplateOutlet",e.headerTemplate)}}function
O7(t,i){1&t&&Y(0)}const
A7=["*",[["p-header"]]],P7=function(t){return{"p-fieldset
p-component":!0,"p-fieldset-toggleable":t}},F7=function(t){return{transitionParams:t,height:"0"}},N7=function(t){return{value:"hidden",params:t}},V7=function(t){return{transitionParams:t,height:"*"}},B7=function(t){return{value:"visible",params:t}},H7=["*","p-header"];let
q7=0,Ui=(()=>{class
t{constructor(e){this.el=e,this.collapsed=!1,this.collapsedChange=new
H,this.onBeforeToggle=new H,this.onAfterToggle=new H,this.transitionOptions="400ms
cubic-bezier(0.86, 0, 0.07,
1)",this.id="p-fieldset-"+q7++}ngAfterContentInit(){this.templates.forEach(e=>{switch(e.getType()){case"header":this.headerTemplate=e.template;break;case"content":this.contentTemplate=e.template}})}toggle(e){if(this.animating)return!1;this.animating=!0,this.onBeforeToggle.emit({originalEvent:e,collapsed:this.collapsed}),this.collapsed?this.expand(e):thi
s.collapse(e),this.onAfterToggle.emit({originalEvent:e,collapsed:this.collapsed}),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(){this.animating=!1}}return
t.\u0275fac=function(e){return
new(e||t)(D(De))},t.\u0275cmp=z({type:t,selectors:[["p-fieldset"]],contentQueries:function(e,n,s){if(1&e&&st(s,ne,4),2&e){let
r;V(r=B())&&(n.templates=r)}},hostAttrs:[1,"p-element"],inputs:{legend:"legend",toggleable:"toggleable",collapsed:"collapsed",style:"style",styleClass:"styleClass",transitionOptions:"transitionOptions"},outputs:{collapsedChange:"collapsedChange",onBeforeToggle:"onBeforeToggle",onAfterToggle:"onAfterToggle"},ngContentSelectors:H7,decls:9,vars:22,consts:[[3,"ngClass","ngStyle"],[1,"p-fieldset-legend"],[4,"ngIf","ngIfElse"],["legendContent",""],["role","region",1,"p-toggleable-content"],[1,"
p-fieldset-content"],[4,"ngTemplateOutlet"],["tabindex","0","pRipple","",3,"click","keydown.enter"],["class","p-fieldset-toggler
pi",3,"ngClass",4,"ngIf"],[1,"p-fieldset-toggler","pi",3,"ngClass"],[1,"p-fieldset-legend-text"]],template:function(e,n){if(1&e&&(Sn(A7),l(0,"fieldset",0)(1,"legend",1),_(2,E7,4,4,"ng-container",2),_(3,L7,4,2,"ng-template",null,3,we),c(),l(5,"div",4),C("@fieldsetContent.done",function(){return
n.onToggleDone()}),l(6,"div",5),St(7),_(8,O7,1,0,"ng-container",6),c()()()),2&e){const
s=F(4);me(n.styleClass),p("ngClass",U(12,P7,n.toggleable))("ngStyle",n.style),ie("id",n.id),a(2),p("ngIf",n.toggleable)("ngIfElse",s),a(3),p("@fieldsetContent",n.collapsed?U(16,N7,U(14,F7,n.transitionOptions)):U(20,B7,U(18,V7,n.animating?n.transitionOptions:"0ms"))),ie("id",n.id+"-content")("aria-labelledby",n.id)("aria-hidden",n.collapsed),a(3),p("ngTemplateOutlet",n.contentTemplate)}},directives:[Le,lt,Q,bt,Rt],styles:[".p-fieldset-legend>a,.p-fieldset-legend>span{display:flex;al
ign-items:center;justify-content:center}.p-fieldset-toggleable .p-fieldset-legend
a{cursor:pointer;-webkit-user-select:none;user-select:none;overflow:hidden;position:relative}.p-fieldset-legend-text{line-height:1}\n"],encapsulation:2,data:{animation:[wi("fieldsetContent",[ws("hidden",it({height:"0",overflow:"hidden"})),ws("visible",it({height:"*"})),Lt("visible
<=>
hidden",[it({overflow:"hidden"}),kt("{{transitionParams}}")]),Lt("void
=> *",kt(0))])]},changeDetection:0}),t})(),G7=(()=>{class t{}return
t.\u0275fac=function(e){return
new(e||t)},t.\u0275mod=he({type:t}),t.\u0275inj=ue({imports:[[Fe,pn],Nt]}),t})();const
U7=["headerchkbox"];function z7(t,i){1&t&&Y(0)}function
j7(t,i){if(1&t&&(l(0,"div",6),St(1),_(2,z7,1,0,"ng-container",7),c()),2&t){const
e=d();a(2),p("ngTemplateOutlet",e.headerTemplate)}}const
OT=function(t){return{"p-checkbox-disabled":t}},$7=function(t,i,e){return{"p-highlight":t,"p-focus":i,"p-disabled":e}},AT=function(t){return{"pi
pi-check":t}};function W7(t,i){if
(1&t){const
e=I();l(0,"div",10)(1,"div",11)(2,"input",12),C("focus",function(){return
v(e),d(2).onHeaderCheckboxFocus()})("blur",function(){return
v(e),d(2).onHeaderCheckboxBlur()})("keydown.space",function(s){return
v(e),d(2).toggleAll(s)}),c()(),l(3,"div",13,14),C("click",function(s){return
v(e),d(2).toggleAll(s)}),k(5,"span",15),c()()}if(2&t){const
e=d(2);p("ngClass",U(5,OT,e.disabled||e.toggleAllDisabled)),a(2),p("checked",e.allChecked)("disabled",e.disabled||e.toggleAllDisabled),a(1),p("ngClass",Qt(7,$7,e.allChecked,e.headerCheckboxFocus,e.disabled||e.toggleAllDisabled)),a(2),p("ngClass",U(11,AT,e.allChecked))}}function
K7(t,i){if(1&t){const
e=I();l(0,"div",16)(1,"input",17),C("input",function(s){return
v(e),d(2).onFilter(s)}),c(),k(2,"span",18),c()}if(2&t){const
e=d(2);a(1),p("value",e.filterValue||"")("disabled",e.disabled),ie("placeholder",e.filterPlaceHolder)("aria-label",e.ariaFilterLabel)}}function
Q7(t,i){if(1&t&&(l(0,"div",6),_(1,W7,6,13,"div",8),_(2,K7,3,4,"div",9),c()
),2&t){const
e=d();a(1),p("ngIf",e.checkbox&&e.multiple&&e.showToggleAll),a(1),p("ngIf",e.filter)}}function
J7(t,i){if(1&t&&(l(0,"span"),g(1),c()),2&t){const
e=d().$implicit,n=d(2);a(1),S(n.getOptionGroupLabel(e)||"empty")}}function
Y7(t,i){1&t&&Y(0)}function Z7(t,i){1&t&&Y(0)}const
Xf=function(t){return{$implicit:t}};function
X7(t,i){if(1&t&&(l(0,"li",20),_(1,J7,2,1,"span",3),_(2,Y7,1,0,"ng-container",21),c(),_(3,Z7,1,0,"ng-container",21)),2&t){const
e=i.$implicit,n=d(2),s=F(8);a(1),p("ngIf",!n.groupTemplate),a(1),p("ngTemplateOutlet",n.groupTemplate)("ngTemplateOutletContext",U(5,Xf,e)),a(1),p("ngTemplateOutlet",s)("ngTemplateOutletContext",U(7,Xf,n.getOptionGroupChildren(e)))}}function
eB(t,i){if(1&t&&(de(0),_(1,X7,4,9,"ng-template",19),pe()),2&t){const
e=d();a(1),p("ngForOf",e.optionsToRender)}}function
tB(t,i){1&t&&Y(0)}function
nB(t,i){if(1&t&&(de(0),_(1,tB,1,0,"ng-container",21),pe()),2&t){const
e=d(),n=F(8);a(1),p("ngTemplateOutlet",n)("ngTemplateOutletContext",U(2,Xf,e.opti
onsToRender))}}const iB=function(t){return{"p-highlight":t}};function
sB(t,i){if(1&t&&(l(0,"div",10)(1,"div",25),k(2,"span",15),c()()),2&t){const
e=d().$implicit,n=d(2);p("ngClass",U(3,OT,n.disabled||n.isOptionDisabled(e))),a(1),p("ngClass",U(5,iB,n.isSelected(e))),a(1),p("ngClass",U(7,AT,n.isSelected(e)))}}function
rB(t,i){if(1&t&&(l(0,"span"),g(1),c()),2&t){const
e=d().$implicit,n=d(2);a(1),S(n.getOptionLabel(e))}}function
oB(t,i){1&t&&Y(0)}const
aB=function(t,i){return{"p-listbox-item":!0,"p-highlight":t,"p-disabled":i}},lB=function(t,i){return{$implicit:t,index:i}};function
cB(t,i){if(1&t){const
e=I();l(0,"li",24),C("click",function(s){const o=v(e).$implicit;return
d(2).onOptionClick(s,o)})("dblclick",function(s){const o=v(e).$implicit;return
d(2).onOptionDoubleClick(s,o)})("touchend",function(){const
r=v(e).$implicit;return d(2).onOptionTouchEnd(r)})("keydown",function(s){const
o=v(e).$implicit;return
d(2).onOptionKeyDown(s,o)}),_(1,sB,3,9,"div",8),_(2,rB,2,1,"span",3),_(3,oB,1
,0,"ng-container",21),c()}if(2&t){const
e=i.$implicit,n=i.index,s=d(2);p("ngClass",Ge(8,aB,s.isSelected(e),s.isOptionDisabled(e))),ie("tabindex",s.disabled||s.isOptionDisabled(e)?null:"0")("aria-label",s.getOptionLabel(e))("aria-selected",s.isSelected(e)),a(1),p("ngIf",s.checkbox&&s.multiple),a(1),p("ngIf",!s.itemTemplate),a(1),p("ngTemplateOutlet",s.itemTemplate)("ngTemplateOutletContext",Ge(11,lB,e,n))}}function
uB(t,i){if(1&t&&(de(0),g(1),pe()),2&t){const e=d(3);a(1),T("
",e.emptyFilterMessageLabel," ")}}function
dB(t,i){1&t&&Y(0,null,28)}function
pB(t,i){if(1&t&&(l(0,"li",26),_(1,uB,2,1,"ng-container",27),_(2,dB,2,0,"ng-container",7),c()),2&t){const
e=d(2);a(1),p("ngIf",!e.emptyFilterTemplate&&!e.emptyTemplate)("ngIfElse",e.emptyFilter),a(1),p("ngTemplateOutlet",e.emptyFilterTemplate||e.emptyTemplate)}}function
hB(t,i){if(1&t&&(de(0),g(1),pe()),2&t){const e=d(3);a(1),T("
",e.emptyMessageLabel," ")}}function
mB(t,i){1&t&&Y(0,null,29)}function
fB(t,i){if(1&t&&(l(0,"li",26),_(1,hB,
2,1,"ng-container",27),_(2,mB,2,0,"ng-container",7),c()),2&t){const
e=d(2);a(1),p("ngIf",!e.emptyTemplate)("ngIfElse",e.empty),a(1),p("ngTemplateOutlet",e.emptyTemplate)}}function
gB(t,i){if(1&t&&(_(0,cB,4,14,"li",22),_(1,pB,3,3,"li",23),_(2,fB,3,3,"li",23)),2&t){const
e=i.$implicit,n=d();p("ngForOf",e),a(1),p("ngIf",n.hasFilter()&&n.isEmpty(e)),a(1),p("ngIf",!n.hasFilter()&&n.isEmpty(e))}}function
_B(t,i){1&t&&Y(0)}function
bB(t,i){if(1&t&&(l(0,"div",30),St(1,1),_(2,_B,1,0,"ng-container",7),c()),2&t){const
e=d();a(2),p("ngTemplateOutlet",e.footerTemplate)}}const
vB=[[["p-header"]],[["p-footer"]]],CB=function(t){return{"p-listbox
p-component":!0,"p-disabled":t}},yB=["p-header","p-footer"],wB={provide:dn,useExisting:je(()=>os),multi:!0};let
os=(()=>{class
t{constructor(e,n,s,r){this.el=e,this.cd=n,this.filterService=s,this.config=r,this.checkbox=!1,this.filter=!1,this.filterMatchMode="contains",this.metaKeySelection=!0,this.showToggleAll=!0,this.optionGroupChildren="items",this.onCha
nge=new H,this.onClick=new H,this.onDblClick=new
H,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?Z.resolveFieldData(e,this.optionLabel):null!=e.label?e.label:e}getOptionGroupChildren(e){return
this.optionGroupChildren?Z.resolveFieldData(e,this.optionG
roupChildren):e.items}getOptionGroupLabel(e){return
this.optionGroupLabel?Z.resolveFieldData(e,this.optionGroupLabel):null!=e.label?e.label:e}getOptionValue(e){return
this.optionValue?Z.resolveFieldData(e,this.optionValue):this.optionLabel||void
0===e.value?e:e.value}isOptionDisabled(e){return
this.optionDisabled?Z.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,n){this.disabled||this.isOptionDisabled(n)||this.readonly||(this.multiple?this.checkbox?this.onOptionClickCheckbox(e,n):this.onOptionClickMultiple(e,n):this.onOptionClickSingle(e,n),this.onClick.emit({originalEvent:e,option:n,value:this.value}),this.optionTouched=!1)}onOptionTouchEnd(e){this.disabled||this.isOptionDisabled(e)||this.readonly||(this.optionTouched=!0)}onOptionDoubleClick(e,n){this.d
isabled||this.isOptionDisabled(n)||this.readonly||this.onDblClick.emit({originalEvent:e,option:n,value:this.value})}onOptionClickSingle(e,n){let
s=this.isSelected(n),r=!1;if(!this.optionTouched&&this.metaKeySelection){let
u=e.metaKey||e.ctrlKey;s?u&&(this.value=null,r=!0):(this.value=this.getOptionValue(n),r=!0)}else
this.value=s?null:this.getOptionValue(n),r=!0;r&&(this.onModelChange(this.value),this.onChange.emit({originalEvent:e,value:this.value}))}onOptionClickMultiple(e,n){let
s=this.isSelected(n),r=!1;if(!this.optionTouched&&this.metaKeySelection){let
u=e.metaKey||e.ctrlKey;s?(u?this.removeOption(n):this.value=[this.getOptionValue(n)],r=!0):(this.value=u&&this.value||[],this.value=[...this.value,this.getOptionValue(n)],r=!0)}else
s?this.removeOption(n):this.value=[...this.value||[],this.getOptionValue(n)],r=!0;r&&(this.onModelChange(this.value),this.onChange.emit({originalEvent:e,value:this.value}))}onOptionClickCheckbox(e,n){this.disabled||this.readonly||(this.isSelected(n)?t
his.removeOption(n):(this.value=this.value?this.value:[],this.value=[...this.value,this.getOptionValue(n)]),this.onModelChange(this.value),this.onChange.emit({originalEvent:e,value:this.value}))}removeOption(e){this.value=this.value.filter(n=>!Z.equals(n,this.getOptionValue(e),this.dataKey))}isSelected(e){let
n=!1,s=this.getOptionValue(e);if(this.multiple){if(this.value)for(let r of
this.value)if(Z.equals(r,s,this.dataKey)){n=!0;break}}else
n=Z.equals(this.value,s,this.dataKey);return n}get allChecked(){let
e=this.optionsToRender;if(!e||0===e.length)return!1;{let
n=0,s=0,r=0,o=this.group?0:this.optionsToRender.length;for(let u of
e)if(this.group)for(let h of this.getOptionGroupChildren(u)){let
b=this.isOptionDisabled(h),y=this.isSelected(h);if(b)y?n++:s++;else{if(!y)return!1;r++}o++}else{let
h=this.isOptionDisabled(u),b=this.isSelected(u);if(h)b?n++:s++;else{if(!b)return!1;r++}}return
o===n||o===r||r&&o===r+s+n}}get optionsToRender(){return
this._filteredOptions||this.options}get em
ptyMessageLabel(){return
this.emptyMessage||this.config.getTranslation(Ft.EMPTY_MESSAGE)}get
emptyFilterMessageLabel(){return
this.emptyFilterMessage||this.config.getTranslation(Ft.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(","),n=[];for(let s of
this.options){let
r=this.filterService.filter(this.getOptionGroupChildren(s),e,this.filterValue,this.filterMatchMode,this.filterLocale);r&&r.length&&n.push(Object.assign(Object.assign({},s),{[this.optionGroupChildren]:r}))}this._filteredOptions=n}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.optionsToRend
er;if(!e||0===e.length)return!0;for(let n of
e)if(!this.isOptionDisabled(n))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
n=[];this.optionsToRender.forEach(s=>{if(this.group){let
r=this.getOptionGroupChildren(s);r&&r.forEach(o=>{let
u=this.isOptionDisabled(o);(!u||u&&this.isSelected(o))&&n.push(this.getOptionValue(o))})}else{let
r=this.isOptionDisabled(s);(!r||r&&this.isSelected(s))&&n.push(this.getOptionValue(s))}}),this.value=n}uncheckAll(){let
n=[];this.optionsToRender.forEach(s=>{this.group?s.items&&s.items.forEach(r=>{this.isOptionDisabled(r)&&this.isSelected(r)&&n.push(this.getOptionValue(r))}):this.isOptionDisabled(s)&&this.isSelected(s)&&n.push(this.getOptionValue(s))}),this.value=n}onOptionKeyDown(e,n){if(this.readonly)return;let
s=e.currentTarget;switch(e.which){cas
e 40:var r=this.findNextItem(s);r&&r.focus(),e.preventDefault();break;case 38:var
o=this.findPrevItem(s);o&&o.focus(),e.preventDefault();break;case
13:this.onOptionClick(e,n),e.preventDefault()}}findNextItem(e){let
n=e.nextElementSibling;return
n?R.hasClass(n,"p-disabled")||R.isHidden(n)||R.hasClass(n,"p-listbox-item-group")?this.findNextItem(n):n:null}findPrevItem(e){let
n=e.previousElementSibling;return
n?R.hasClass(n,"p-disabled")||R.isHidden(n)||R.hasClass(n,"p-listbox-item-group")?this.findPrevItem(n):n:null}onHeaderCheckboxFocus(){this.headerCheckboxFocus=!0}onHeaderCheckboxBlur(){this.headerCheckboxFocus=!1}ngOnDestroy(){this.translationSubscription&&this.translationSubscription.unsubscribe()}}return
t.\u0275fac=function(e){return
new(e||t)(D(De),D(rt),D(hl),D(zn))},t.\u0275cmp=z({type:t,selectors:[["p-listbox"]],contentQueries:function(e,n,s){if(1&e&&(st(s,Oo,5),st(s,fl,5),st(s,ne,4)),2&e){let
r;V(r=B())&&(n.headerFacet=r.first),V(r=B())&&(n.footerFacet=r.first),V(r=B())&&(n
.templates=r)}},viewQuery:function(e,n){if(1&e&&W(U7,5),2&e){let
s;V(s=B())&&(n.headerCheckboxViewChild=s.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:[Pe([wB])],ngContentSelectors:yB,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,n){1&e&&(Sn(vB),l(0,"div",0),_(1,j7,3,1,"div",1),_(2,Q7,3,2,"div",1),l(3,"div",0)(4,"ul",2),_(5,eB,2,1,"ng-container",3),_(6,nB,2,4,"ng-container",3),_(7,gB,3,3,"ng-template",null,4,we),c()(),_(9,bB,3,1,"div",5),c()),2&e&&(me(n.styleClass),p("ngClass",U(13,CB,n.disabled))("ngStyle",n.style),a(1),p("ngIf",n.headerFacet||n.headerTemplate),a(1),p("ngIf",n.checkbox&&n.multiple&&n.showToggleAll||n.filter),a(1),me(n.listStyleClass),p("ngClass","p-listbox-list-wrapper")("ngStyle",n.listStyle),a(2),p("ngIf",n.group),a(1),p("ngIf",!n.group),a(3),p("ngIf",n.footerFacet||n.footerTemplate))},directives:[Le,lt,Q,Rt,at,bt],styles:[".p-listbox-list-wrapper{overflow:auto}.p-listbox-list{list-style-type:none;margin:0;padding:0}.p-listbox-it
em{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})(),TB=(()=>{class
t{}return t.\u0275fac=function(e){return
new(e||t)},t.\u0275mod=he({type:t}),t.\u0275inj=ue({imports:[[Fe,Nt,pn],Nt]}),t})();class
zi extends ct{constructor(i){super(),this._value=i}get value(){return
this.getValue()}_subscribe(i){const e=super._subscribe(i);return
e&&!e.closed&&i.next(this._value),e}getValue(){if(this.hasError)throw
this.thrownError;if(this.closed)throw new nr;return
this._value}next(i){super.next(this._value=i)}}class SB extends
yt{notifyNext(i,e,n,s,r){this.destination.next(e)}notifyError(i,e){this.destination.error(i)}notifyComplete(i){this.destination.complete()}}class
xB ex
tends
yt{constructor(i,e,n){super(),this.parent=i,this.outerValue=e,this.outerIndex=n,this.index=0}_next(i){this.parent.notifyNext(this.outerValue,i,this.outerIndex,this.index++,this)}_error(i){this.parent.notifyError(i,this),this.unsubscribe()}_complete(){this.parent.notifyComplete(this),this.unsubscribe()}}function
DB(t,i,e,n,s=new xB(t,e,n)){if(!s.closed)return i instanceof
Je?i.subscribe(s):Od(i)(s)}const PT={};class
kB{constructor(i){this.resultSelector=i}call(i,e){return e.subscribe(new
IB(i,this.resultSelector))}}class IB extends
SB{constructor(i,e){super(i),this.resultSelector=e,this.active=0,this.values=[],this.observables=[]}_next(i){this.values.push(PT),this.observables.push(i)}_complete(){const
i=this.observables,e=i.length;if(0===e)this.destination.complete();else{this.active=e,this.toRespond=e;for(let
n=0;n<e;n++)this.add(DB(this,i[n],void
0,n))}}notifyComplete(i){0==(this.active-=1)&&this.destination.complete()}notifyNext(i,e,n){const
s=this.values,o=this.toRespond?s[
n]===PT?--this.toRespond:this.toRespond:0;s[n]=e,0===o&&(this.resultSelector?this._tryResultSelector(s):this.destination.next(s.slice()))}_tryResultSelector(i){let
e;try{e=this.resultSelector.apply(this,i)}catch(n){return void
this.destination.error(n)}this.destination.next(e)}}const td=(()=>{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 FT(t,i){let e=!1;return
arguments.length>=2&&(e=!0),function(s){return s.lift(new EB(t,i,e))}}class
EB{constructor(i,e,n=!1){this.accumulator=i,this.seed=e,this.hasSeed=n}call(i,e){return
e.subscribe(new RB(i,this.accumulator,this.seed,this.hasSeed))}}class RB extends
yt{constructor(i,e,n,s){super(i),this.accumulator=e,this._seed=n,this.hasSeed=s,this.index=0}get
seed(){return this._seed}set
seed(i){this.hasSeed=!0,this._seed=i}_next(i){if(this.hasSeed)return
this._tryNext(i);this.seed=i,this.destination.next(i)}_tryNext(i){cons
t e=this.index++;let
n;try{n=this.accumulator(this.seed,i,e)}catch(s){this.destination.error(s)}this.seed=n,this.destination.next(n)}}function
Mr(t){return function(e){const n=new LB(t),s=e.lift(n);return n.caught=s}}class
LB{constructor(i){this.selector=i}call(i,e){return e.subscribe(new
OB(i,this.selector,this.caught))}}class OB extends
Zo{constructor(i,e,n){super(i),this.selector=e,this.caught=n}error(i){if(!this.isStopped){let
e;try{e=this.selector(i,this.caught)}catch(r){return void
super.error(r)}this._unsubscribeAndRecycle();const n=new Yo(this);this.add(n);const
s=Xo(e,n);s!==n&&this.add(s)}}}function eg(t){return function(e){return
0===t?lu():e.lift(new AB(t))}}class
AB{constructor(i){if(this.total=i,this.total<0)throw new s0}call(i,e){return
e.subscribe(new PB(i,this.total))}}class PB extends
yt{constructor(i,e){super(i),this.total=e,this.ring=new Array,this.count=0}_next(i){const
e=this.ring,n=this.total,s=this.count++;e.length<n?e.push(i):e[s%n]=i}_complete(){const
i=thi
s.destination;let e=this.count;if(e>0){const
n=this.count>=this.total?this.total:this.count,s=this.ring;for(let
r=0;r<n;r++){const o=e++%n;i.next(s[o])}}i.complete()}}function NT(t=VB){return
i=>i.lift(new FB(t))}class FB{constructor(i){this.errorFactory=i}call(i,e){return
e.subscribe(new NB(i,this.errorFactory))}}class NB extends
yt{constructor(i,e){super(i),this.errorFactory=e,this.hasValue=!1}_next(i){this.hasValue=!0,this.destination.next(i)}_complete(){if(this.hasValue)return
this.destination.complete();{let
i;try{i=this.errorFactory()}catch(e){i=e}this.destination.error(i)}}}function VB(){return
new td}function VT(t=null){return i=>i.lift(new BB(t))}class
BB{constructor(i){this.defaultValue=i}call(i,e){return e.subscribe(new
HB(i,this.defaultValue))}}class HB extends
yt{constructor(i,e){super(i),this.defaultValue=e,this.isEmpty=!0}_next(i){this.isEmpty=!1,this.destination.next(i)}_complete(){this.isEmpty&&this.destination.next(this.defaultValue),this.destination.complete()}}fu
nction No(t,i){const e=arguments.length>=2;return
n=>n.pipe(t?Us((s,r)=>t(s,r,n)):Bl,br(1),e?VT(i):NT(()=>new td))}function
Js(){}function li(t,i,e){return function(s){return s.lift(new GB(t,i,e))}}class
GB{constructor(i,e,n){this.nextOrObserver=i,this.error=e,this.complete=n}call(i,e){return
e.subscribe(new UB(i,this.nextOrObserver,this.error,this.complete))}}class UB extends
yt{constructor(i,e,n,s){super(i),this._tapNext=Js,this._tapError=Js,this._tapComplete=Js,this._tapError=n||Js,this._tapComplete=s||Js,Is(e)?(this._context=this,this._tapNext=e):e&&(this._context=e,this._tapNext=e.next||Js,this._tapError=e.error||Js,this._tapComplete=e.complete||Js)}_next(i){try{this._tapNext.call(this._context,i)}catch(e){return
void
this.destination.error(e)}this.destination.next(i)}_error(i){try{this._tapError.call(this._context,i)}catch(e){return
void
this.destination.error(e)}this.destination.error(i)}_complete(){try{this._tapComplete.call(this._context)}catch(i){return
void this.destinati
on.error(i)}return this.destination.complete()}}class
jB{constructor(i){this.callback=i}call(i,e){return e.subscribe(new
$B(i,this.callback))}}class $B extends yt{constructor(i,e){super(i),this.add(new
Et(e))}}class xs{constructor(i,e){this.id=i,this.url=e}}class tg extends
xs{constructor(i,e,n="imperative",s=null){super(i,e),this.navigationTrigger=n,this.restoredState=s}toString(){return`NavigationStart(id:
${this.id}, url: '${this.url}')`}}class vl extends
xs{constructor(i,e,n){super(i,e),this.urlAfterRedirects=n}toString(){return`NavigationEnd(id:
${this.id}, url: '${this.url}', urlAfterRedirects:
'${this.urlAfterRedirects}')`}}class BT extends
xs{constructor(i,e,n){super(i,e),this.reason=n}toString(){return`NavigationCancel(id:
${this.id}, url: '${this.url}')`}}class WB extends
xs{constructor(i,e,n){super(i,e),this.error=n}toString(){return`NavigationError(id:
${this.id}, url: '${this.url}', error: ${this.error})`}}class KB extends
xs{constructor(i,e,n,s){super(i,e),this.urlAfte
rRedirects=n,this.state=s}toString(){return`RoutesRecognized(id: ${this.id}, url:
'${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state:
${this.state})`}}class QB extends
xs{constructor(i,e,n,s){super(i,e),this.urlAfterRedirects=n,this.state=s}toString(){return`GuardsCheckStart(id:
${this.id}, url: '${this.url}', urlAfterRedirects:
'${this.urlAfterRedirects}', state: ${this.state})`}}class JB extends
xs{constructor(i,e,n,s,r){super(i,e),this.urlAfterRedirects=n,this.state=s,this.shouldActivate=r}toString(){return`GuardsCheckEnd(id:
${this.id}, url: '${this.url}', urlAfterRedirects:
'${this.urlAfterRedirects}', state: ${this.state}, shouldActivate:
${this.shouldActivate})`}}class YB extends
xs{constructor(i,e,n,s){super(i,e),this.urlAfterRedirects=n,this.state=s}toString(){return`ResolveStart(id:
${this.id}, url: '${this.url}', urlAfterRedirects:
'${this.urlAfterRedirects}', state: ${this.state})`}}class ZB extends
xs{constructor(i,e,n,s){super(i,e),this.urlAfterRedire
cts=n,this.state=s}toString(){return`ResolveEnd(id: ${this.id}, url:
'${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state:
${this.state})`}}class
HT{constructor(i){this.route=i}toString(){return`RouteConfigLoadStart(path:
${this.route.path})`}}class
qT{constructor(i){this.route=i}toString(){return`RouteConfigLoadEnd(path:
${this.route.path})`}}class
XB{constructor(i){this.snapshot=i}toString(){return`ChildActivationStart(path:
'${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class
e8{constructor(i){this.snapshot=i}toString(){return`ChildActivationEnd(path:
'${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class
t8{constructor(i){this.snapshot=i}toString(){return`ActivationStart(path:
'${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class
n8{constructor(i){this.snapshot=i}toString(){return`ActivationEnd(path:
'${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class
GT{constructor(i,e,n){t
his.routerEvent=i,this.position=e,this.anchor=n}toString(){return`Scroll(anchor:
'${this.anchor}', position: '${this.position?`${this.position[0]},
${this.position[1]}`:null}')`}}const Ke="primary";class
i8{constructor(i){this.params=i||{}}has(i){return
Object.prototype.hasOwnProperty.call(this.params,i)}get(i){if(this.has(i)){const
e=this.params[i];return Array.isArray(e)?e[0]:e}return
null}getAll(i){if(this.has(i)){const e=this.params[i];return
Array.isArray(e)?e:[e]}return[]}get keys(){return Object.keys(this.params)}}function
Vo(t){return new i8(t)}const UT="ngNavigationCancelingError";function
ng(t){const i=Error("NavigationCancelingError: "+t);return i[UT]=!0,i}function
r8(t,i,e){const
n=e.path.split("/");if(n.length>t.length||"full"===e.pathMatch&&(i.hasChildren()||n.length<t.length))return
null;const s={};for(let r=0;r<n.length;r++){const
o=n[r],u=t[r];if(o.startsWith(":"))s[o.substring(1)]=u;else if(o!==u.path)return
null}return{consumed:t.slice(0,n.length),posParams:s}}fun
ction as(t,i){const e=t?Object.keys(t):void 0,n=i?Object.keys(i):void
0;if(!e||!n||e.length!=n.length)return!1;let s;for(let
r=0;r<e.length;r++)if(s=e[r],!zT(t[s],i[s]))return!1;return!0}function
zT(t,i){if(Array.isArray(t)&&Array.isArray(i)){if(t.length!==i.length)return!1;const
e=[...t].sort(),n=[...i].sort();return e.every((s,r)=>n[r]===s)}return t===i}function
jT(t){return Array.prototype.concat.apply([],t)}function $T(t){return
t.length>0?t[t.length-1]:null}function xn(t,i){for(const e in
t)t.hasOwnProperty(e)&&i(t[e],e)}function ls(t){return
Dh(t)?t:Ra(t)?Mn(Promise.resolve(t)):oe(t)}const l8={exact:function
QT(t,i,e){if(!Ir(t.segments,i.segments)||!nd(t.segments,i.segments,e)||t.numberOfChildren!==i.numberOfChildren)return!1;for(const
n in
i.children)if(!t.children[n]||!QT(t.children[n],i.children[n],e))return!1;return!0},subset:JT},WT={exact:function
c8(t,i){return as(t,i)},subset:function u8(t,i){return
Object.keys(i).length<=Object.keys(t).length&&Object.keys(i).every(e=>z
T(t[e],i[e]))},ignored:()=>!0};function KT(t,i,e){return
l8[e.paths](t.root,i.root,e.matrixParams)&&WT[e.queryParams](t.queryParams,i.queryParams)&&!("exact"===e.fragment&&t.fragment!==i.fragment)}function
JT(t,i,e){return YT(t,i,i.segments,e)}function
YT(t,i,e,n){if(t.segments.length>e.length){const
s=t.segments.slice(0,e.length);return!(!Ir(s,e)||i.hasChildren()||!nd(s,e,n))}if(t.segments.length===e.length){if(!Ir(t.segments,e)||!nd(t.segments,e,n))return!1;for(const
s in
i.children)if(!t.children[s]||!JT(t.children[s],i.children[s],n))return!1;return!0}{const
s=e.slice(0,t.segments.length),r=e.slice(t.segments.length);return!!(Ir(t.segments,s)&&nd(t.segments,s,n)&&t.children[Ke])&&YT(t.children[Ke],i,r,n)}}function
nd(t,i,e){return i.every((n,s)=>WT[e](t[s].parameters,n.parameters))}class
kr{constructor(i,e,n){this.root=i,this.queryParams=e,this.fragment=n}get
queryParamMap(){return
this._queryParamMap||(this._queryParamMap=Vo(this.queryParams)),this._queryParamMap}toString(){ret
urn h8.serialize(this)}}class
Xe{constructor(i,e){this.segments=i,this.children=e,this.parent=null,xn(e,(n,s)=>n.parent=this)}hasChildren(){return
this.numberOfChildren>0}get numberOfChildren(){return
Object.keys(this.children).length}toString(){return id(this)}}class
Cl{constructor(i,e){this.path=i,this.parameters=e}get parameterMap(){return
this._parameterMap||(this._parameterMap=Vo(this.parameters)),this._parameterMap}toString(){return
n2(this)}}function Ir(t,i){return
t.length===i.length&&t.every((e,n)=>e.path===i[n].path)}class ZT{}class
XT{parse(i){const e=new w8(i);return new
kr(e.parseRootSegment(),e.parseQueryParams(),e.parseFragment())}serialize(i){const
e=`/${yl(i.root,!0)}`,n=function g8(t){const i=Object.keys(t).map(e=>{const
n=t[e];return
Array.isArray(n)?n.map(s=>`${sd(e)}=${sd(s)}`).join("&"):`${sd(e)}=${sd(n)}`}).filter(e=>!!e);return
i.length?`?${i.join("&")}`:""}(i.queryParams),s="string"==typeof
i.fragment?`#${function m8(t){return encodeURI(t)}(i.fragment)}`:"";
return`${e}${n}${s}`}}const h8=new XT;function id(t){return
t.segments.map(i=>n2(i)).join("/")}function
yl(t,i){if(!t.hasChildren())return id(t);if(i){const
e=t.children[Ke]?yl(t.children[Ke],!1):"",n=[];return
xn(t.children,(s,r)=>{r!==Ke&&n.push(`${r}:${yl(s,!1)}`)}),n.length>0?`${e}(${n.join("//")})`:e}{const
e=function p8(t,i){let e=[];return
xn(t.children,(n,s)=>{s===Ke&&(e=e.concat(i(n,s)))}),xn(t.children,(n,s)=>{s!==Ke&&(e=e.concat(i(n,s)))}),e}(t,(n,s)=>s===Ke?[yl(t.children[Ke],!1)]:[`${s}:${yl(n,!1)}`]);return
1===Object.keys(t.children).length&&null!=t.children[Ke]?`${id(t)}/${e[0]}`:`${id(t)}/(${e.join("//")})`}}function
e2(t){return
encodeURIComponent(t).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function
sd(t){return e2(t).replace(/%3B/gi,";")}function ig(t){return
e2(t).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function
rd(t){return decodeURIComponent(t)}function t2(t){return
rd(t.replace(/\+/g,"%20"))}funct
ion n2(t){return`${ig(t.path)}${function f8(t){return
Object.keys(t).map(i=>`;${ig(i)}=${ig(t[i])}`).join("")}(t.parameters)}`}const
_8=/^[^\/()?;=#]+/;function od(t){const i=t.match(_8);return i?i[0]:""}const
b8=/^[^=?&#]+/,C8=/^[^&#]+/;class
w8{constructor(i){this.url=i,this.remaining=i}parseRootSegment(){return
this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new
Xe([],{}):new Xe([],this.parseChildren())}parseQueryParams(){const
i={};if(this.consumeOptional("?"))do{this.parseQueryParam(i)}while(this.consumeOptional("&"));return
i}parseFragment(){return
this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(""===this.remaining)return{};this.consumeOptional("/");const
i=[];for(this.peekStartsWith("(")||i.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),i.push(this.parseSegment());let
e={};this.peekStartsWith("/(")&&(this.capture
("/"),e=this.parseParens(!0));let n={};return
this.peekStartsWith("(")&&(n=this.parseParens(!1)),(i.length>0||Object.keys(e).length>0)&&(n[Ke]=new
Xe(i,e)),n}parseSegment(){const
i=od(this.remaining);if(""===i&&this.peekStartsWith(";"))throw
new Error(`Empty path url segment cannot have parameters:
'${this.remaining}'.`);return this.capture(i),new
Cl(rd(i),this.parseMatrixParams())}parseMatrixParams(){const
i={};for(;this.consumeOptional(";");)this.parseParam(i);return
i}parseParam(i){const e=od(this.remaining);if(!e)return;this.capture(e);let
n="";if(this.consumeOptional("=")){const
s=od(this.remaining);s&&(n=s,this.capture(n))}i[rd(e)]=rd(n)}parseQueryParam(i){const
e=function v8(t){const i=t.match(b8);return
i?i[0]:""}(this.remaining);if(!e)return;this.capture(e);let
n="";if(this.consumeOptional("=")){const o=function y8(t){const
i=t.match(C8);return
i?i[0]:""}(this.remaining);o&&(n=o,this.capture(n))}const
s=t2(e),r=t2(n);if(i.hasOwnProperty(s)){let o=i[s];Array.isArray(o)||(o=[
o],i[s]=o),o.push(r)}else i[s]=r}parseParens(i){const
e={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const
n=od(this.remaining),s=this.remaining[n.length];if("/"!==s&&")"!==s&&";"!==s)throw
new Error(`Cannot parse url '${this.url}'`);let
r;n.indexOf(":")>-1?(r=n.substr(0,n.indexOf(":")),this.capture(r),this.capture(":")):i&&(r=Ke);const
o=this.parseChildren();e[r]=1===Object.keys(o).length?o[Ke]:new
Xe([],o),this.consumeOptional("//")}return e}peekStartsWith(i){return
this.remaining.startsWith(i)}consumeOptional(i){return!!this.peekStartsWith(i)&&(this.remaining=this.remaining.substring(i.length),!0)}capture(i){if(!this.consumeOptional(i))throw
new Error(`Expected "${i}".`)}}class s2{constructor(i){this._root=i}get
root(){return this._root.value}parent(i){const e=this.pathFromRoot(i);return
e.length>1?e[e.length-2]:null}children(i){const e=sg(i,this._root);return
e?e.children.map(n=>n.value):[]}firstChild(i){const e=sg(i,this._root);return
e&&e.chil
dren.length>0?e.children[0].value:null}siblings(i){const e=rg(i,this._root);return
e.length<2?[]:e[e.length-2].children.map(s=>s.value).filter(s=>s!==i)}pathFromRoot(i){return
rg(i,this._root).map(e=>e.value)}}function sg(t,i){if(t===i.value)return i;for(const e
of i.children){const n=sg(t,e);if(n)return n}return null}function
rg(t,i){if(t===i.value)return[i];for(const e of i.children){const
n=rg(t,e);if(n.length)return n.unshift(i),n}return[]}class
Ds{constructor(i,e){this.value=i,this.children=e}toString(){return`TreeNode(${this.value})`}}function
Bo(t){const i={};return t&&t.children.forEach(e=>i[e.value.outlet]=e),i}class
r2 extends s2{constructor(i,e){super(i),this.snapshot=e,og(this,i)}toString(){return
this.snapshot.toString()}}function o2(t,i){const e=function T8(t,i){const o=new
ad([],{},{},"",{},Ke,i,null,t.root,-1,{});return new l2("",new
Ds(o,[]))}(t,i),n=new zi([new Cl("",{})]),s=new zi({}),r=new zi({}),o=new
zi({}),u=new zi(""),h=new Er(n,s,o,u,r,Ke,i,e.root);return h.
snapshot=e.root,new r2(new Ds(h,[]),e)}class
Er{constructor(i,e,n,s,r,o,u,h){this.url=i,this.params=e,this.queryParams=n,this.fragment=s,this.data=r,this.outlet=o,this.component=u,this._futureSnapshot=h}get
routeConfig(){return this._futureSnapshot.routeConfig}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=this.params.pipe(et(i=>Vo(i)))),this._paramMap}get
queryParamMap(){return
this._queryParamMap||(this._queryParamMap=this.queryParams.pipe(et(i=>Vo(i)))),this._queryParamMap}toString(){return
this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function
a2(t,i="emptyOnly"){const e=t.pathFromRoot;let
n=0;if("always"!==i)for(n=e.length-1;n>=1;){const
s=e[n],r=e[n-1];if(s.routeConfig&&""===s.r
outeConfig.path)n--;else{if(r.component)break;n--}}return function S8(t){return
t.reduce((i,e)=>({params:Object.assign(Object.assign({},i.params),e.params),data:Object.assign(Object.assign({},i.data),e.data),resolve:Object.assign(Object.assign({},i.resolve),e._resolvedData)}),{params:{},data:{},resolve:{}})}(e.slice(n))}class
ad{constructor(i,e,n,s,r,o,u,h,b,y,w){this.url=i,this.params=e,this.queryParams=n,this.fragment=s,this.data=r,this.outlet=o,this.component=u,this.routeConfig=h,this._urlSegment=b,this._lastPathIndex=y,this._resolve=w}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=Vo(this.params)),this._paramMap}get queryParamMap(){return
this._queryParamMap||(this._queryParamMap=Vo(this.queryParams)),this._
queryParamMap}toString(){return`Route(url:'${this.url.map(n=>n.toString()).join("/")}',
path:'${this.routeConfig?this.routeConfig.path:""}')`}}class l2 extends
s2{constructor(i,e){super(e),this.url=i,og(this,e)}toString(){return
c2(this._root)}}function
og(t,i){i.value._routerState=t,i.children.forEach(e=>og(t,e))}function c2(t){const
i=t.children.length>0?` { ${t.children.map(c2).join(", ")} }
`:"";return`${t.value}${i}`}function ag(t){if(t.snapshot){const
i=t.snapshot,e=t._futureSnapshot;t.snapshot=e,as(i.queryParams,e.queryParams)||t.queryParams.next(e.queryParams),i.fragment!==e.fragment&&t.fragment.next(e.fragment),as(i.params,e.params)||t.params.next(e.params),function
o8(t,i){if(t.length!==i.length)return!1;for(let
e=0;e<t.length;++e)if(!as(t[e],i[e]))return!1;return!0}(i.url,e.url)||t.url.next(e.url),as(i.data,e.data)||t.data.next(e.data)}else
t.snapshot=t._futureSnapshot,t.data.next(t._futureSnapshot.data)}function lg(t,i){const
e=as(t.params,i.params)&&function d8(t,i){ret
urn
Ir(t,i)&&t.every((e,n)=>as(e.parameters,i[n].parameters))}(t.url,i.url);return
e&&!(!t.parent!=!i.parent)&&(!t.parent||lg(t.parent,i.parent))}function
wl(t,i,e){if(e&&t.shouldReuseRoute(i.value,e.value.snapshot)){const
n=e.value;n._futureSnapshot=i.value;const s=function D8(t,i,e){return
i.children.map(n=>{for(const s of
e.children)if(t.shouldReuseRoute(n.value,s.value.snapshot))return wl(t,n,s);return
wl(t,n)})}(t,i,e);return new Ds(n,s)}{if(t.shouldAttach(i.value)){const
r=t.retrieve(i.value);if(null!==r){const o=r.route;return
o.value._futureSnapshot=i.value,o.children=i.children.map(u=>wl(t,u)),o}}const
n=function M8(t){return new Er(new zi(t.url),new zi(t.params),new zi(t.queryParams),new
zi(t.fragment),new
zi(t.data),t.outlet,t.component,t)}(i.value),s=i.children.map(r=>wl(t,r));return new
Ds(n,s)}}function ld(t){return"object"==typeof
t&&null!=t&&!t.outlets&&!t.segmentPath}function
Tl(t){return"object"==typeof t&&null!=t&&t.outlets}function
cg(t,i,e,n,s){let r={};if(n&&xn
(n,(u,h)=>{r[h]=Array.isArray(u)?u.map(b=>`${b}`):`${u}`}),t===i)return new
kr(e,r,s);const o=u2(t,i,e);return new kr(o,r,s)}function u2(t,i,e){const n={};return
xn(t.children,(s,r)=>{n[r]=s===i?e:u2(s,i,e)}),new Xe(t.segments,n)}class
d2{constructor(i,e,n){if(this.isAbsolute=i,this.numberOfDoubleDots=e,this.commands=n,i&&n.length>0&&ld(n[0]))throw
new Error("Root segment cannot have matrix parameters");const
s=n.find(Tl);if(s&&s!==$T(n))throw new Error("{outlets:{}} has to be the last
command")}toRoot(){return
this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class
ug{constructor(i,e,n){this.segmentGroup=i,this.processChildren=e,this.index=n}}function
p2(t,i,e){if(t||(t=new Xe([],{})),0===t.segments.length&&t.hasChildren())return
cd(t,i,e);const n=function O8(t,i,e){let n=0,s=i;const
r={match:!1,pathIndex:0,commandIndex:0};for(;s<t.segments.length;){if(n>=e.length)return
r;const o=t.segments[s],u=e[n];if(Tl(u))break;const
h=`${u}`,b=n<e.length-1?e[n+1]:null;if(s>0&&
void 0===h)break;if(h&&b&&"object"==typeof b&&void
0===b.outlets){if(!m2(h,b,o))return r;n+=2}else{if(!m2(h,{},o))return
r;n++}s++}return{match:!0,pathIndex:s,commandIndex:n}}(t,i,e),s=e.slice(n.commandIndex);if(n.match&&n.pathIndex<t.segments.length){const
r=new Xe(t.segments.slice(0,n.pathIndex),{});return r.children[Ke]=new
Xe(t.segments.slice(n.pathIndex),t.children),cd(r,0,s)}return
n.match&&0===s.length?new
Xe(t.segments,{}):n.match&&!t.hasChildren()?dg(t,i,e):n.match?cd(t,0,s):dg(t,i,e)}function
cd(t,i,e){if(0===e.length)return new Xe(t.segments,{});{const n=function L8(t){return
Tl(t[0])?t[0].outlets:{[Ke]:t}}(e),s={};return xn(n,(r,o)=>{"string"==typeof
r&&(r=[r]),null!==r&&(s[o]=p2(t.children[o],i,r))}),xn(t.children,(r,o)=>{void
0===n[o]&&(s[o]=r)}),new Xe(t.segments,s)}}function dg(t,i,e){const
n=t.segments.slice(0,i);let s=0;for(;s<e.length;){const r=e[s];if(Tl(r)){const
h=A8(r.outlets);return new Xe(n,h)}if(0===s&&ld(e[0])){n.push(new
Cl(t.segments[i].path,h2(e[0]))),s
++;continue}const
o=Tl(r)?r.outlets[Ke]:`${r}`,u=s<e.length-1?e[s+1]:null;o&&u&&ld(u)?(n.push(new
Cl(o,h2(u))),s+=2):(n.push(new Cl(o,{})),s++)}return new Xe(n,{})}function A8(t){const
i={};return xn(t,(e,n)=>{"string"==typeof
e&&(e=[e]),null!==e&&(i[n]=dg(new Xe([],{}),0,e))}),i}function h2(t){const
i={};return xn(t,(e,n)=>i[n]=`${e}`),i}function m2(t,i,e){return
t==e.path&&as(i,e.parameters)}class
F8{constructor(i,e,n,s){this.routeReuseStrategy=i,this.futureState=e,this.currState=n,this.forwardEvent=s}activate(i){const
e=this.futureState._root,n=this.currState?this.currState._root:null;this.deactivateChildRoutes(e,n,i),ag(this.futureState.root),this.activateChildRoutes(e,n,i)}deactivateChildRoutes(i,e,n){const
s=Bo(e);i.children.forEach(r=>{const
o=r.value.outlet;this.deactivateRoutes(r,s[o],n),delete
s[o]}),xn(s,(r,o)=>{this.deactivateRouteAndItsChildren(r,n)})}deactivateRoutes(i,e,n){const
s=i.value,r=e?e.value:null;if(s===r)if(s.component){const
o=n.getContext(s.outlet);o&&this
.deactivateChildRoutes(i,e,o.children)}else this.deactivateChildRoutes(i,e,n);else
r&&this.deactivateRouteAndItsChildren(e,n)}deactivateRouteAndItsChildren(i,e){i.value.component&&this.routeReuseStrategy.shouldDetach(i.value.snapshot)?this.detachAndStoreRouteSubtree(i,e):this.deactivateRouteAndOutlet(i,e)}detachAndStoreRouteSubtree(i,e){const
n=e.getContext(i.value.outlet),s=n&&i.value.component?n.children:e,r=Bo(i);for(const
o of
Object.keys(r))this.deactivateRouteAndItsChildren(r[o],s);if(n&&n.outlet){const
o=n.outlet.detach(),u=n.children.onOutletDeactivated();this.routeReuseStrategy.store(i.value.snapshot,{componentRef:o,route:i,contexts:u})}}deactivateRouteAndOutlet(i,e){const
n=e.getContext(i.value.outlet),s=n&&i.value.component?n.children:e,r=Bo(i);for(const
o of
Object.keys(r))this.deactivateRouteAndItsChildren(r[o],s);n&&n.outlet&&(n.outlet.deactivate(),n.children.onOutletDeactivated(),n.attachRef=null,n.resolver=null,n.route=null)}activateChildRoutes(i,e,n){const
s=Bo(e);i
.children.forEach(r=>{this.activateRoutes(r,s[r.value.outlet],n),this.forwardEvent(new
n8(r.value.snapshot))}),i.children.length&&this.forwardEvent(new
e8(i.value.snapshot))}activateRoutes(i,e,n){const
s=i.value,r=e?e.value:null;if(ag(s),s===r)if(s.component){const
o=n.getOrCreateContext(s.outlet);this.activateChildRoutes(i,e,o.children)}else
this.activateChildRoutes(i,e,n);else if(s.component){const
o=n.getOrCreateContext(s.outlet);if(this.routeReuseStrategy.shouldAttach(s.snapshot)){const
u=this.routeReuseStrategy.retrieve(s.snapshot);this.routeReuseStrategy.store(s.snapshot,null),o.children.onOutletReAttached(u.contexts),o.attachRef=u.componentRef,o.route=u.route.value,o.outlet&&o.outlet.attach(u.componentRef,u.route.value),ag(u.route.value),this.activateChildRoutes(i,null,o.children)}else{const
u=function N8(t){for(let i=t.parent;i;i=i.parent){const
e=i.routeConfig;if(e&&e._loadedConfig)return
e._loadedConfig;if(e&&e.component)return null}return
null}(s.snapshot),h=u?u.module.co
mponentFactoryResolver:null;o.attachRef=null,o.route=s,o.resolver=h,o.outlet&&o.outlet.activateWith(s,h),this.activateChildRoutes(i,null,o.children)}}else
this.activateChildRoutes(i,null,n)}}class
pg{constructor(i,e){this.routes=i,this.module=e}}function
Ys(t){return"function"==typeof t}function Rr(t){return t instanceof kr}const
Sl=Symbol("INITIAL_VALUE");function xl(){return qi(t=>function MB(...t){let
i,e;return Vr(t[t.length-1])&&(e=t.pop()),"function"==typeof
t[t.length-1]&&(i=t.pop()),1===t.length&&Nr(t[0])&&(t=t[0]),Pd(t,e).lift(new
kB(i))}(t.map(i=>i.pipe(br(1),Ju(Sl)))).pipe(FT((i,e)=>{let n=!1;return
e.reduce((s,r,o)=>s!==Sl?s:(r===Sl&&(n=!0),n||!1!==r&&o!==e.length-1&&!Rr(r)?s:r),i)},Sl),Us(i=>i!==Sl),et(i=>Rr(i)?i:!0===i),br(1)))}class
U8{constructor(){this.outlet=null,this.route=null,this.resolver=null,this.children=new
Dl,this.attachRef=null}}class Dl{constructor(){this.contexts=new
Map}onChildOutletCreated(i,e){const n=this.getOrCreateContext(i);n.outlet=e,this.contex
ts.set(i,n)}onChildOutletDestroyed(i){const
e=this.getContext(i);e&&(e.outlet=null,e.attachRef=null)}onOutletDeactivated(){const
i=this.contexts;return this.contexts=new
Map,i}onOutletReAttached(i){this.contexts=i}getOrCreateContext(i){let
e=this.getContext(i);return e||(e=new U8,this.contexts.set(i,e)),e}getContext(i){return
this.contexts.get(i)||null}}let Ml=(()=>{class
t{constructor(e,n,s,r,o){this.parentContexts=e,this.location=n,this.resolver=s,this.changeDetector=o,this.activated=null,this._activatedRoute=null,this.activateEvents=new
H,this.deactivateEvents=new H,this.attachEvents=new H,this.detachEvents=new
H,this.name=r||Ke,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,n){this.activated=e,this._activatedRoute=n,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,n){if(this.isActivated)throw
new Error("Cannot activate an already activated
outlet");this._activatedRoute=e;const
o=(n=n||this.resolver).resolveComponentFactory(e._futureSnapshot.routeConfig.component),u=this.p
arentContexts.getOrCreateContext(this.name).children,h=new
z8(e,u,this.location.injector);this.activated=this.location.createComponent(o,this.location.length,h),this.changeDetector.markForCheck(),this.activateEvents.emit(this.activated.instance)}}return
t.\u0275fac=function(e){return
new(e||t)(D(Dl),D(vi),D(Va),ua("name"),D(rt))},t.\u0275dir=le({type:t,selectors:[["router-outlet"]],outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"]}),t})();class
z8{constructor(i,e,n){this.route=i,this.childContexts=e,this.parent=n}get(i,e){return
i===Er?this.route:i===Dl?this.childContexts:this.parent.get(i,e)}}let f2=(()=>{class
t{}return t.\u0275fac=function(e){return
new(e||t)},t.\u0275cmp=z({type:t,selectors:[["ng-component"]],decls:1,vars:0,template:function(e,n){1&e&&k(0,"router-outlet")},directives:[Ml],encapsulation:2}),t})();function
g2(t,i=""){for(let e=0;e<t.length;e++){const n=t[e];j8(n,$8(i,n))}}function
j8(t
,i){t.children&&g2(t.children,i)}function $8(t,i){return
i?t||i.path?t&&!i.path?`${t}/`:!t&&i.path?i.path:`${t}/${i.path}`:"":t}function
hg(t){const
i=t.children&&t.children.map(hg),e=i?Object.assign(Object.assign({},t),{children:i}):Object.assign({},t);return!e.component&&(i||e.loadChildren)&&e.outlet&&e.outlet!==Ke&&(e.component=f2),e}function
xi(t){return t.outlet||Ke}function _2(t,i){const e=t.filter(n=>xi(n)===i);return
e.push(...t.filter(n=>xi(n)!==i)),e}const
b2={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function
ud(t,i,e){var
n;if(""===i.path)return"full"===i.pathMatch&&(t.hasChildren()||e.length>0)?Object.assign({},b2):{matched:!0,consumedSegments:[],remainingSegments:e,parameters:{},positionalParamSegments:{}};const
r=(i.matcher||r8)(e,t,i);if(!r)return Object.assign({},b2);const
o={};xn(r.posParams,(h,b)=>{o[b]=h.path});const
u=r.consumed.length>0?Object.assign(Object.assign({},o),r.consumed[r.consumed.length-1].paramete
rs):o;return{matched:!0,consumedSegments:r.consumed,remainingSegments:e.slice(r.consumed.length),parameters:u,positionalParamSegments:null!==(n=r.posParams)&&void
0!==n?n:{}}}function
dd(t,i,e,n,s="corrected"){if(e.length>0&&function Q8(t,i,e){return
e.some(n=>pd(t,i,n)&&xi(n)!==Ke)}(t,e,n)){const o=new Xe(i,function
K8(t,i,e,n){const s={};s[Ke]=n,n._sourceSegment=t,n._segmentIndexShift=i.length;for(const
r of e)if(""===r.path&&xi(r)!==Ke){const o=new
Xe([],{});o._sourceSegment=t,o._segmentIndexShift=i.length,s[xi(r)]=o}return s}(t,i,n,new
Xe(e,t.children)));return
o._sourceSegment=t,o._segmentIndexShift=i.length,{segmentGroup:o,slicedSegments:[]}}if(0===e.length&&function
J8(t,i,e){return e.some(n=>pd(t,i,n))}(t,e,n)){const o=new Xe(t.segments,function
W8(t,i,e,n,s,r){const o={};for(const u of n)if(pd(t,e,u)&&!s[xi(u)]){const h=new
Xe([],{});h._sourceSegment=t,h._segmentIndexShift="legacy"===r?t.segments.length:i.length,o[xi(u)]=h}return
Object.assign(Object.assign({},s),o)}(t,i,e,
n,t.children,s));return
o._sourceSegment=t,o._segmentIndexShift=i.length,{segmentGroup:o,slicedSegments:e}}const
r=new Xe(t.segments,t.children);return
r._sourceSegment=t,r._segmentIndexShift=i.length,{segmentGroup:r,slicedSegments:e}}function
pd(t,i,e){return(!(t.hasChildren()||i.length>0)||"full"!==e.pathMatch)&&""===e.path}function
v2(t,i,e,n){return!!(xi(t)===n||n!==Ke&&pd(i,e,t))&&("**"===t.path||ud(i,t,e).matched)}function
C2(t,i,e){return 0===i.length&&!t.children[e]}class
hd{constructor(i){this.segmentGroup=i||null}}class
y2{constructor(i){this.urlTree=i}}function kl(t){return tl(new hd(t))}function
w2(t){return tl(new y2(t))}function Y8(t){return tl(new Error(`Only absolute redirects can
have named outlets. redirectTo: '${t}'`))}class
eH{constructor(i,e,n,s,r){this.configLoader=e,this.urlSerializer=n,this.urlTree=s,this.config=r,this.allowRedirects=!0,this.ngModule=i.get(_s)}apply(){const
i=dd(this.urlTree.root,[],[],this.config).segmentGroup,e=new Xe(i.segments,i.children)
;return
this.expandSegmentGroup(this.ngModule,this.config,e,Ke).pipe(et(r=>this.createUrlTree(mg(r),this.urlTree.queryParams,this.urlTree.fragment))).pipe(Mr(r=>{if(r
instanceof y2)return this.allowRedirects=!1,this.match(r.urlTree);throw r instanceof
hd?this.noMatchError(r):r}))}match(i){return
this.expandSegmentGroup(this.ngModule,this.config,i.root,Ke).pipe(et(s=>this.createUrlTree(mg(s),i.queryParams,i.fragment))).pipe(Mr(s=>{throw
s instanceof hd?this.noMatchError(s):s}))}noMatchError(i){return new Error(`Cannot match
any routes. URL Segment: '${i.segmentGroup}'`)}createUrlTree(i,e,n){const
s=i.segments.length>0?new Xe([],{[Ke]:i}):i;return new
kr(s,e,n)}expandSegmentGroup(i,e,n,s){return
0===n.segments.length&&n.hasChildren()?this.expandChildren(i,e,n).pipe(et(r=>new
Xe([],r))):this.expandSegment(i,n,e,n.segments,s,!0)}expandChildren(i,e,n){const
s=[];for(const r of
Object.keys(n.children))"primary"===r?s.unshift(r):s.push(r);return
Mn(s).pipe(_r(r=>{const o=n.children[r],u=_2
(e,r);return
this.expandSegmentGroup(i,u,o,r).pipe(et(h=>({segment:h,outlet:r})))}),FT((r,o)=>(r[o.outlet]=o.segment,r),{}),function
qB(t,i){const e=arguments.length>=2;return
n=>n.pipe(t?Us((s,r)=>t(s,r,n)):Bl,eg(1),e?VT(i):NT(()=>new
td))}())}expandSegment(i,e,n,s,r,o){return
Mn(n).pipe(_r(u=>this.expandSegmentAgainstRoute(i,e,n,u,s,r,o).pipe(Mr(b=>{if(b
instanceof hd)return oe(null);throw b}))),No(u=>!!u),Mr((u,h)=>{if(u instanceof
td||"EmptyError"===u.name)return C2(e,s,r)?oe(new Xe([],{})):kl(e);throw
u}))}expandSegmentAgainstRoute(i,e,n,s,r,o,u){return v2(s,e,r,o)?void
0===s.redirectTo?this.matchSegmentAgainstRoute(i,e,s,r,o):u&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(i,e,n,s,r,o):kl(e):kl(e)}expandSegmentAgainstRouteUsingRedirect(i,e,n,s,r,o){return"**"===s.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(i,n,s,o):this.expandRegularSegmentAgainstRouteUsingRedirect(i,e,n,s,r,o)}expandWildCardWithParamsAgainstRouteUsingRedirect(i,e,n,s){const
r=this.applyRedirectCommands([],n.redirectTo,{});return
n.redirectTo.startsWith("/")?w2(r):this.lineralizeSegments(n,r).pipe(yn(o=>{const
u=new Xe(o,{});return
this.expandSegment(i,u,e,o,s,!1)}))}expandRegularSegmentAgainstRouteUsingRedirect(i,e,n,s,r,o){const{matched:u,consumedSegments:h,remainingSegments:b,positionalParamSegments:y}=ud(e,s,r);if(!u)return
kl(e);const w=this.applyRedirectCommands(h,s.redirectTo,y);return
s.redirectTo.startsWith("/")?w2(w):this.lineralizeSegments(s,w).pipe(yn(M=>this.expandSegment(i,e,n,M.concat(b),o,!1)))}matchSegmentAgainstRoute(i,e,n,s,r){if("**"===n.path)return
n.loadChildren?(n._loadedConfig?oe(n._loadedConfig):this.configLoader.load(i.injector,n)).pipe(et(w=>(n._loadedConfig=w,new
Xe(s,{})))):oe(new
Xe(s,{}));const{matched:o,consumedSegments:u,remainingSegments:h}=ud(e,n,s);return
o?this.getChildConfig(i,n,s).pipe(yn(y=>{const
w=y.module,M=y.routes,{segmentGroup:E,slicedSegments:L}=dd(e,u,h,M),O=new
Xe(E.segments,E.children);if(0===L.length&&O
.hasChildren())return this.expandChildren(w,M,O).pipe(et(J=>new
Xe(u,J)));if(0===M.length&&0===L.length)return oe(new Xe(u,{}));const
N=xi(n)===r;return this.expandSegment(w,O,M,L,N?Ke:r,!0).pipe(et(P=>new
Xe(u.concat(P.segments),P.children)))})):kl(e)}getChildConfig(i,e,n){return
e.children?oe(new pg(e.children,i)):e.loadChildren?void
0!==e._loadedConfig?oe(e._loadedConfig):this.runCanLoadGuards(i.injector,e,n).pipe(yn(s=>s?this.configLoader.load(i.injector,e).pipe(et(r=>(e._loadedConfig=r,r))):function
Z8(t){return tl(ng(`Cannot load children because the guard of the route "path:
'${t.path}'" returned false`))}(e))):oe(new
pg([],i))}runCanLoadGuards(i,e,n){const s=e.canLoad;if(!s||0===s.length)return
oe(!0);const r=s.map(o=>{const u=i.get(o);let h;if(function B8(t){return
t&&Ys(t.canLoad)}(u))h=u.canLoad(e,n);else{if(!Ys(u))throw new Error("Invalid
CanLoad guard");h=u(e,n)}return ls(h)});return
oe(r).pipe(xl(),li(o=>{if(!Rr(o))return;const u=ng(`Redirecting to
"${this.urlSerialize
r.serialize(o)}"`);throw u.url=o,u}),et(o=>!0===o))}lineralizeSegments(i,e){let
n=[],s=e.root;for(;;){if(n=n.concat(s.segments),0===s.numberOfChildren)return
oe(n);if(s.numberOfChildren>1||!s.children[Ke])return
Y8(i.redirectTo);s=s.children[Ke]}}applyRedirectCommands(i,e,n){return
this.applyRedirectCreatreUrlTree(e,this.urlSerializer.parse(e),i,n)}applyRedirectCreatreUrlTree(i,e,n,s){const
r=this.createSegmentGroup(i,e.root,n,s);return new
kr(r,this.createQueryParams(e.queryParams,this.urlTree.queryParams),e.fragment)}createQueryParams(i,e){const
n={};return xn(i,(s,r)=>{if("string"==typeof
s&&s.startsWith(":")){const u=s.substring(1);n[r]=e[u]}else
n[r]=s}),n}createSegmentGroup(i,e,n,s){const r=this.createSegments(i,e.segments,n,s);let
o={};return xn(e.children,(u,h)=>{o[h]=this.createSegmentGroup(i,u,n,s)}),new
Xe(r,o)}createSegments(i,e,n,s){return
e.map(r=>r.path.startsWith(":")?this.findPosParam(i,r,s):this.findOrReturn(r,n))}findPosParam(i,e,n){const
s=n[e.path.substring(1)];
if(!s)throw new Error(`Cannot redirect to '${i}'. Cannot find
'${e.path}'.`);return s}findOrReturn(i,e){let n=0;for(const s of
e){if(s.path===i.path)return e.splice(n),s;n++}return i}}function mg(t){const
i={};for(const n of Object.keys(t.children)){const
r=mg(t.children[n]);(r.segments.length>0||r.hasChildren())&&(i[n]=r)}return
function tH(t){if(1===t.numberOfChildren&&t.children[Ke]){const
i=t.children[Ke];return new Xe(t.segments.concat(i.segments),i.children)}return t}(new
Xe(t.segments,i))}class
T2{constructor(i){this.path=i,this.route=this.path[this.path.length-1]}}class
md{constructor(i,e){this.component=i,this.route=e}}function iH(t,i,e){const
n=t._root;return Il(n,i?i._root:null,e,[n.value])}function fd(t,i,e){const n=function
rH(t){if(!t)return null;for(let i=t.parent;i;i=i.parent){const
e=i.routeConfig;if(e&&e._loadedConfig)return e._loadedConfig}return
null}(i);return(n?n.module.injector:e).get(t)}function
Il(t,i,e,n,s={canDeactivateChecks:[],canActivateChecks:[]}){cons
t r=Bo(i);return t.children.forEach(o=>{(function
oH(t,i,e,n,s={canDeactivateChecks:[],canActivateChecks:[]}){const
r=t.value,o=i?i.value:null,u=e?e.getContext(t.value.outlet):null;if(o&&r.routeConfig===o.routeConfig){const
h=function aH(t,i,e){if("function"==typeof e)return
e(t,i);switch(e){case"pathParamsChange":return!Ir(t.url,i.url);case"pathParamsOrQueryParamsChange":return!Ir(t.url,i.url)||!as(t.queryParams,i.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!lg(t,i)||!as(t.queryParams,i.queryParams);default:return!lg(t,i)}}(o,r,r.routeConfig.runGuardsAndResolvers);h?s.canActivateChecks.push(new
T2(n)):(r.data=o.data,r._resolvedData=o._resolvedData),Il(t,i,r.component?u?u.children:null:e,n,s),h&&u&&u.outlet&&u.outlet.isActivated&&s.canDeactivateChecks.push(new
md(u.outlet.component,o))}else o&&El(i,u,s),s.canActivateChecks.push(new
T2(n)),Il(t,null,r.component?u?u.children:null:e,n,s)})(o,r[o.value.outlet],e,n.concat([o.value]),s),delete
r[o.value.outlet
]}),xn(r,(o,u)=>El(o,e.getContext(u),s)),s}function El(t,i,e){const
n=Bo(t),s=t.value;xn(n,(r,o)=>{El(r,s.component?i?i.children.getContext(o):null:i,e)}),e.canDeactivateChecks.push(new
md(s.component&&i&&i.outlet&&i.outlet.isActivated?i.outlet.component:null,s))}class
gH{}function S2(t){return new Je(i=>i.error(t))}class
bH{constructor(i,e,n,s,r,o){this.rootComponentType=i,this.config=e,this.urlTree=n,this.url=s,this.paramsInheritanceStrategy=r,this.relativeLinkResolution=o}recognize(){const
i=dd(this.urlTree.root,[],[],this.config.filter(o=>void
0===o.redirectTo),this.relativeLinkResolution).segmentGroup,e=this.processSegmentGroup(this.config,i,Ke);if(null===e)return
null;const n=new
ad([],Object.freeze({}),Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,{},Ke,this.rootComponentType,null,this.urlTree.root,-1,{}),s=new
Ds(n,e),r=new l2(this.url,s);return
this.inheritParamsAndData(r._root),r}inheritParamsAndData(i){const
e=i.value,n=a2(e,this.paramsIn
heritanceStrategy);e.params=Object.freeze(n.params),e.data=Object.freeze(n.data),i.children.forEach(s=>this.inheritParamsAndData(s))}processSegmentGroup(i,e,n){return
0===e.segments.length&&e.hasChildren()?this.processChildren(i,e):this.processSegment(i,e,e.segments,n)}processChildren(i,e){const
n=[];for(const r of Object.keys(e.children)){const
o=e.children[r],u=_2(i,r),h=this.processSegmentGroup(u,o,r);if(null===h)return
null;n.push(...h)}const s=x2(n);return function
vH(t){t.sort((i,e)=>i.value.outlet===Ke?-1:e.value.outlet===Ke?1:i.value.outlet.localeCompare(e.value.outlet))}(s),s}processSegment(i,e,n,s){for(const
r of i){const o=this.processSegmentAgainstRoute(r,e,n,s);if(null!==o)return o}return
C2(e,n,s)?[]:null}processSegmentAgainstRoute(i,e,n,s){if(i.redirectTo||!v2(i,e,n,s))return
null;let r,o=[],u=[];if("**"===i.path){const
E=n.length>0?$T(n).parameters:{};r=new
ad(n,E,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,k2(i),xi(i),i.component,
i,D2(e),M2(e)+n.length,I2(i))}else{const E=ud(e,i,n);if(!E.matched)return
null;o=E.consumedSegments,u=E.remainingSegments,r=new
ad(o,E.parameters,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,k2(i),xi(i),i.component,i,D2(e),M2(e)+o.length,I2(i))}const
h=function CH(t){return
t.children?t.children:t.loadChildren?t._loadedConfig.routes:[]}(i),{segmentGroup:b,slicedSegments:y}=dd(e,o,u,h.filter(E=>void
0===E.redirectTo),this.relativeLinkResolution);if(0===y.length&&b.hasChildren()){const
E=this.processChildren(h,b);return null===E?null:[new
Ds(r,E)]}if(0===h.length&&0===y.length)return[new Ds(r,[])];const
w=xi(i)===s,M=this.processSegment(h,b,y,w?Ke:s);return null===M?null:[new
Ds(r,M)]}}function yH(t){const i=t.value.routeConfig;return
i&&""===i.path&&void 0===i.redirectTo}function x2(t){const
i=[],e=new Set;for(const n of t){if(!yH(n)){i.push(n);continue}const
s=i.find(r=>n.value.routeConfig===r.value.routeConfig);void
0!==s?(s.children.push(...n.chi
ldren),e.add(s)):i.push(n)}for(const n of e){const s=x2(n.children);i.push(new
Ds(n.value,s))}return i.filter(n=>!e.has(n))}function D2(t){let
i=t;for(;i._sourceSegment;)i=i._sourceSegment;return i}function M2(t){let
i=t,e=i._segmentIndexShift?i._segmentIndexShift:0;for(;i._sourceSegment;)i=i._sourceSegment,e+=i._segmentIndexShift?i._segmentIndexShift:0;return
e-1}function k2(t){return t.data||{}}function I2(t){return t.resolve||{}}function
E2(t){return[...Object.keys(t),...Object.getOwnPropertySymbols(t)]}function fg(t){return
qi(i=>{const e=t(i);return e?Mn(e).pipe(et(()=>i)):oe(i)})}class IH extends class
kH{shouldDetach(i){return!1}store(i,e){}shouldAttach(i){return!1}retrieve(i){return
null}shouldReuseRoute(i,e){return i.routeConfig===e.routeConfig}}{}const gg=new
be("ROUTES");class
R2{constructor(i,e,n,s){this.injector=i,this.compiler=e,this.onLoadStartListener=n,this.onLoadEndListener=s}load(i,e){if(e._loader$)return
e._loader$;this.onLoadStartListener&&this.onLoadStartListen
er(e);const
s=this.loadModuleFactory(e.loadChildren).pipe(et(r=>{this.onLoadEndListener&&this.onLoadEndListener(e);const
o=r.create(i);return new pg(jT(o.injector.get(gg,void
0,xe.Self|xe.Optional)).map(hg),o)}),Mr(r=>{throw e._loader$=void 0,r}));return
e._loader$=new Fg(s,()=>new ct).pipe(Fd()),e._loader$}loadModuleFactory(i){return
ls(i()).pipe(yn(e=>e instanceof
iC?oe(e):Mn(this.compiler.compileModuleAsync(e))))}}class
RH{shouldProcessUrl(i){return!0}extract(i){return i}merge(i,e){return i}}function
LH(t){throw t}function OH(t,i,e){return i.parse("/")}function L2(t,i){return
oe(null)}const
AH={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},PH={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};let
It=(()=>{class
t{constructor(e,n,s,r,o,u,h){this.rootComponentType=e,this.urlSerializer=n,this.rootContexts=s,this.location=r,this.config=h,this.lastSuccessfulNavigation=null,this.currentNavigation=null,this.disposed=!1,this.nav
igationId=0,this.currentPageId=0,this.isNgZoneEnabled=!1,this.events=new
ct,this.errorHandler=LH,this.malformedUriErrorHandler=OH,this.navigated=!1,this.lastSuccessfulId=-1,this.hooks={beforePreactivation:L2,afterPreactivation:L2},this.urlHandlingStrategy=new
RH,this.routeReuseStrategy=new
IH,this.onSameUrlNavigation="ignore",this.paramsInheritanceStrategy="emptyOnly",this.urlUpdateStrategy="deferred",this.relativeLinkResolution="corrected",this.canceledNavigationResolution="replace",this.ngModule=o.get(_s),this.console=o.get(DR);const
w=o.get(nt);this.isNgZoneEnabled=w instanceof
nt&&nt.isInAngularZone(),this.resetConfig(h),this.currentUrlTree=function
a8(){return new kr(new
Xe([],{}),{},null)}(),this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.configLoader=new
R2(o,u,M=>this.triggerEvent(new HT(M)),M=>this.triggerEvent(new
qT(M))),this.routerState=o2(this.currentUrlTree,this.rootComponentType),this.transitions=new
zi({id:0,targetPageId:0,currentUrlT
ree: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 n=this.events;return
e.pipe(Us(s=>0!==s.id),et(s=>Object.assign(Object.assign({},s),{extractedUrl:this.urlHandlingStrategy.extract(s.rawUrl)})),qi(s=>{let
r=!1,o=!1;return
oe(s).pipe(li(u=>{this.currentNavigation={id:u.id,initialUrl:u.currentRawUrl,extractedU
rl:u.extractedUrl,trigger:u.source,extras:u.extras,previousNavigation:this.lastSuccessfulNavigation?Object.assign(Object.assign({},this.lastSuccessfulNavigation),{previousNavigation:null}):null}}),qi(u=>{const
h=this.browserUrlTree.toString(),b=!this.navigated||u.extractedUrl.toString()!==h||h!==this.currentUrlTree.toString();if(("reload"===this.onSameUrlNavigation||b)&&this.urlHandlingStrategy.shouldProcessUrl(u.rawUrl))return
O2(u.source)&&(this.browserUrlTree=u.extractedUrl),oe(u).pipe(qi(w=>{const
M=this.transitions.getValue();return n.next(new
tg(w.id,this.serializeUrl(w.extractedUrl),w.source,w.restoredState)),M!==this.transitions.getValue()?Io:Promise.resolve(w)}),function
nH(t,i,e,n){return qi(s=>function X8(t,i,e,n,s){return new
eH(t,i,e,n,s).apply()}(t,i,e,s.extractedUrl,n).pipe(et(r=>Object.assign(Object.assign({},s),{urlAfterRedirects:r}))))}(this.ngModule.injector,this.configLoader,this.urlSerializer,this.config),li(w=>{this.currentNavigation=Object.assign(Object.assign
({},this.currentNavigation),{finalUrl:w.urlAfterRedirects})}),function
wH(t,i,e,n,s){return yn(r=>function
_H(t,i,e,n,s="emptyOnly",r="legacy"){try{const o=new
bH(t,i,e,n,s,r).recognize();return null===o?S2(new gH):oe(o)}catch(o){return
S2(o)}}(t,i,r.urlAfterRedirects,e(r.urlAfterRedirects),n,s).pipe(et(o=>Object.assign(Object.assign({},r),{targetSnapshot:o}))))}(this.rootComponentType,this.config,w=>this.serializeUrl(w),this.paramsInheritanceStrategy,this.relativeLinkResolution),li(w=>{if("eager"===this.urlUpdateStrategy){if(!w.extras.skipLocationChange){const
E=this.urlHandlingStrategy.merge(w.urlAfterRedirects,w.rawUrl);this.setBrowserUrl(E,w)}this.browserUrlTree=w.urlAfterRedirects}const
M=new
KB(w.id,this.serializeUrl(w.extractedUrl),this.serializeUrl(w.urlAfterRedirects),w.targetSnapshot);n.next(M)}));if(b&&this.rawUrlTree&&this.urlHandlingStrategy.shouldProcessUrl(this.rawUrlTree)){const{id:M,extractedUrl:E,source:L,restoredState:O,extras:N}=u,G=new
tg(M,this.serializeUrl(E),
L,O);n.next(G);const P=o2(E,this.rootComponentType).snapshot;return
oe(Object.assign(Object.assign({},u),{targetSnapshot:P,urlAfterRedirects:E,extras:Object.assign(Object.assign({},N),{skipLocationChange:!1,replaceUrl:!1})}))}return
this.rawUrlTree=u.rawUrl,u.resolve(null),Io}),fg(u=>{const{targetSnapshot:h,id:b,extractedUrl:y,rawUrl:w,extras:{skipLocationChange:M,replaceUrl:E}}=u;return
this.hooks.beforePreactivation(h,{navigationId:b,appliedUrlTree:y,rawUrlTree:w,skipLocationChange:!!M,replaceUrl:!!E})}),li(u=>{const
h=new
QB(u.id,this.serializeUrl(u.extractedUrl),this.serializeUrl(u.urlAfterRedirects),u.targetSnapshot);this.triggerEvent(h)}),et(u=>Object.assign(Object.assign({},u),{guards:iH(u.targetSnapshot,u.currentSnapshot,this.rootContexts)})),function
lH(t,i){return
yn(e=>{const{targetSnapshot:n,currentSnapshot:s,guards:{canActivateChecks:r,canDeactivateChecks:o}}=e;return
0===o.length&&0===r.length?oe(Object.assign(Object.assign({},e),{guardsResult:!0})):function
cH(t,i,e,n
){return Mn(t).pipe(yn(s=>function fH(t,i,e,n,s){const
r=i&&i.routeConfig?i.routeConfig.canDeactivate:null;return
r&&0!==r.length?oe(r.map(u=>{const h=fd(u,i,s);let b;if(function G8(t){return
t&&Ys(t.canDeactivate)}(h))b=ls(h.canDeactivate(t,i,e,n));else{if(!Ys(h))throw new
Error("Invalid CanDeactivate guard");b=ls(h(t,i,e,n))}return
b.pipe(No())})).pipe(xl()):oe(!0)}(s.component,s.route,e,i,n)),No(s=>!0!==s,!0))}(o,n,s,t).pipe(yn(u=>u&&function
V8(t){return"boolean"==typeof t}(u)?function uH(t,i,e,n){return
Mn(i).pipe(_r(s=>el(function pH(t,i){return null!==t&&i&&i(new
XB(t)),oe(!0)}(s.route.parent,n),function dH(t,i){return
null!==t&&i&&i(new t8(t)),oe(!0)}(s.route,n),function mH(t,i,e){const
n=i[i.length-1],r=i.slice(0,i.length-1).reverse().map(o=>function sH(t){const
i=t.routeConfig?t.routeConfig.canActivateChild:null;return
i&&0!==i.length?{node:t,guards:i}:null}(o)).filter(o=>null!==o).map(o=>cu(()=>oe(o.guards.map(h=>{const
b=fd(h,o.node,e);let y;if(function q8(t){return t&&Y
s(t.canActivateChild)}(b))y=ls(b.canActivateChild(n,t));else{if(!Ys(b))throw new
Error("Invalid CanActivateChild guard");y=ls(b(n,t))}return
y.pipe(No())})).pipe(xl())));return oe(r).pipe(xl())}(t,s.path,e),function hH(t,i,e){const
n=i.routeConfig?i.routeConfig.canActivate:null;if(!n||0===n.length)return oe(!0);const
s=n.map(r=>cu(()=>{const o=fd(r,i,e);let u;if(function H8(t){return
t&&Ys(t.canActivate)}(o))u=ls(o.canActivate(i,t));else{if(!Ys(o))throw new
Error("Invalid CanActivate guard");u=ls(o(i,t))}return u.pipe(No())}));return
oe(s).pipe(xl())}(t,s.route,e))),No(s=>!0!==s,!0))}(n,r,t,i):oe(u)),et(u=>Object.assign(Object.assign({},e),{guardsResult:u})))})}(this.ngModule.injector,u=>this.triggerEvent(u)),li(u=>{if(Rr(u.guardsResult)){const
b=ng(`Redirecting to "${this.serializeUrl(u.guardsResult)}"`);throw
b.url=u.guardsResult,b}const h=new
JB(u.id,this.serializeUrl(u.extractedUrl),this.serializeUrl(u.urlAfterRedirects),u.targetSnapshot,!!u.guardsResult);this.triggerEvent(h)}),
Us(u=>!!u.guardsResult||(this.restoreHistory(u),this.cancelNavigationTransition(u,""),!1)),fg(u=>{if(u.guards.canActivateChecks.length)return
oe(u).pipe(li(h=>{const b=new
YB(h.id,this.serializeUrl(h.extractedUrl),this.serializeUrl(h.urlAfterRedirects),h.targetSnapshot);this.triggerEvent(b)}),qi(h=>{let
b=!1;return oe(h).pipe(function TH(t,i){return
yn(e=>{const{targetSnapshot:n,guards:{canActivateChecks:s}}=e;if(!s.length)return
oe(e);let r=0;return Mn(s).pipe(_r(o=>function SH(t,i,e,n){return function
xH(t,i,e,n){const s=E2(t);if(0===s.length)return oe({});const r={};return
Mn(s).pipe(yn(o=>function DH(t,i,e,n){const s=fd(t,i,n);return
ls(s.resolve?s.resolve(i,e):s(i,e))}(t[o],i,e,n).pipe(li(u=>{r[o]=u}))),eg(1),yn(()=>E2(r).length===s.length?oe(r):Io))}(t._resolve,t,i,n).pipe(et(r=>(t._resolvedData=r,t.data=Object.assign(Object.assign({},t.data),a2(t,e).resolve),null)))}(o.route,n,t,i)),li(()=>r++),eg(1),yn(o=>r===s.length?oe(e):Io))})}(this.paramsInheritanceStrategy,this.ngModul
e.injector),li({next:()=>b=!0,complete:()=>{b||(this.restoreHistory(h),this.cancelNavigationTransition(h,"At
least one route resolver didn't emit any value."))}}))}),li(h=>{const b=new
ZB(h.id,this.serializeUrl(h.extractedUrl),this.serializeUrl(h.urlAfterRedirects),h.targetSnapshot);this.triggerEvent(b)}))}),fg(u=>{const{targetSnapshot:h,id:b,extractedUrl:y,rawUrl:w,extras:{skipLocationChange:M,replaceUrl:E}}=u;return
this.hooks.afterPreactivation(h,{navigationId:b,appliedUrlTree:y,rawUrlTree:w,skipLocationChange:!!M,replaceUrl:!!E})}),et(u=>{const
h=function x8(t,i,e){const n=wl(t,i._root,e?e._root:void 0);return new
r2(n,i)}(this.routeReuseStrategy,u.targetSnapshot,u.currentRouterState);return
Object.assign(Object.assign({},u),{targetRouterState:h})}),li(u=>{this.currentUrlTree=u.urlAfterRedirects,this.rawUrlTree=this.urlHandlingStrategy.merge(u.urlAfterRedirects,u.rawUrl),this.routerState=u.targetRouterState,"deferred"===this.urlUpdateStrategy&&(u.extras.skipLocationChange||this.
setBrowserUrl(this.rawUrlTree,u),this.browserUrlTree=u.urlAfterRedirects)}),((t,i,e)=>et(n=>(new
F8(i,n.targetRouterState,n.currentRouterState,e).activate(t),n)))(this.rootContexts,this.routeReuseStrategy,u=>this.triggerEvent(u)),li({next(){r=!0},complete(){r=!0}}),function
zB(t){return i=>i.lift(new jB(t))}(()=>{var
u;r||o||this.cancelNavigationTransition(s,`Navigation ID ${s.id} is not equal to the
current navigation id ${this.navigationId}`),(null===(u=this.currentNavigation)||void
0===u?void
0:u.id)===s.id&&(this.currentNavigation=null)}),Mr(u=>{if(o=!0,function
s8(t){return t&&t[UT]}(u)){const
h=Rr(u.url);h||(this.navigated=!0,this.restoreHistory(s,!0));const b=new
BT(s.id,this.serializeUrl(s.extractedUrl),u.message);n.next(b),h?setTimeout(()=>{const
y=this.urlHandlingStrategy.merge(u.url,this.rawUrlTree),w={skipLocationChange:s.extras.skipLocationChange,replaceUrl:"eager"===this.urlUpdateStrategy||O2(s.source)};this.scheduleNavigation(y,"imperative",null,w,{resolve:s.resolve,r
eject:s.reject,promise:s.promise})},0):s.resolve(!1)}else{this.restoreHistory(s,!0);const
h=new
WB(s.id,this.serializeUrl(s.extractedUrl),u);n.next(h);try{s.resolve(this.errorHandler(u))}catch(b){s.reject(b)}}return
Io}))}))}resetRootComponentType(e){this.rootComponentType=e,this.routerState.root.component=this.rootComponentType}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
n="popstate"===e.type?"popstate":"hashchange";"popstate"===n&&setTimeout(()=>{var
s;const r={replaceUrl:!0},o=(null===(s=e.state)||void 0===s?void
0:s.navigationId)?e.state:null;if(o){const h=Object.assign({},o);delete
h.navigationId,delete
h.\u0275routerPageId,0!==Object.keys(h).length&&(r.state=h)}const u=this
.parseUrl(e.url);this.scheduleNavigation(u,n,o,r)},0)}))}get url(){return
this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return
this.currentNavigation}triggerEvent(e){this.events.next(e)}resetConfig(e){g2(e),this.config=e.map(hg),this.navigated=!1,this.lastSuccessfulId=-1}ngOnDestroy(){this.dispose()}dispose(){this.transitions.complete(),this.locationSubscription&&(this.locationSubscription.unsubscribe(),this.locationSubscription=void
0),this.disposed=!0}createUrlTree(e,n={}){const{relativeTo:s,queryParams:r,fragment:o,queryParamsHandling:u,preserveFragment:h}=n,b=s||this.routerState.root,y=h?this.currentUrlTree.fragment:o;let
w=null;switch(u){case"merge":w=Object.assign(Object.assign({},this.currentUrlTree.queryParams),r);break;case"preserve":w=this.currentUrlTree.queryParams;break;default:w=r||null}return
null!==w&&(w=this.removeEmptyProps(w)),function
k8(t,i,e,n,s){if(0===e.length)return cg(i.root,i.root,i.root,n,s);const r=function
I8(t){if("string"==typeof t[0]&&
1===t.length&&"/"===t[0])return new d2(!0,0,t);let i=0,e=!1;const
n=t.reduce((s,r,o)=>{if("object"==typeof
r&&null!=r){if(r.outlets){const u={};return
xn(r.outlets,(h,b)=>{u[b]="string"==typeof
h?h.split("/"):h}),[...s,{outlets:u}]}if(r.segmentPath)return[...s,r.segmentPath]}return"string"!=typeof
r?[...s,r]:0===o?(r.split("/").forEach((u,h)=>{0==h&&"."===u||(0==h&&""===u?e=!0:".."===u?i++:""!=u&&s.push(u))}),s):[...s,r]},[]);return
new d2(e,i,n)}(e);if(r.toRoot())return cg(i.root,i.root,new Xe([],{}),n,s);const
o=function E8(t,i,e){if(t.isAbsolute)return new
ug(i.root,!0,0);if(-1===e.snapshot._lastPathIndex){const r=e.snapshot._urlSegment;return
new ug(r,r===i.root,0)}const n=ld(t.commands[0])?0:1;return function R8(t,i,e){let
n=t,s=i,r=e;for(;r>s;){if(r-=s,n=n.parent,!n)throw new Error("Invalid number of
'../'");s=n.segments.length}return new
ug(n,!1,s-r)}(e.snapshot._urlSegment,e.snapshot._lastPathIndex+n,t.numberOfDoubleDots)}(r,i,t),u=o.processChildren?cd(o.segmentGroup,o.index
,r.commands):p2(o.segmentGroup,o.index,r.commands);return
cg(i.root,o.segmentGroup,u,n,s)}(b,this.currentUrlTree,e,w,null!=y?y:null)}navigateByUrl(e,n={skipLocationChange:!1}){const
s=Rr(e)?e:this.parseUrl(e),r=this.urlHandlingStrategy.merge(s,this.rawUrlTree);return
this.scheduleNavigation(r,"imperative",null,n)}navigate(e,n={skipLocationChange:!1}){return
function FH(t){for(let i=0;i<t.length;i++){const e=t[i];if(null==e)throw new Error(`The
requested path contains ${e} segment at index
${i}`)}}(e),this.navigateByUrl(this.createUrlTree(e,n),n)}serializeUrl(e){return
this.urlSerializer.serialize(e)}parseUrl(e){let
n;try{n=this.urlSerializer.parse(e)}catch(s){n=this.malformedUriErrorHandler(s,this.urlSerializer,e)}return
n}isActive(e,n){let
s;if(s=!0===n?Object.assign({},AH):!1===n?Object.assign({},PH):n,Rr(e))return
KT(this.currentUrlTree,e,s);const r=this.parseUrl(e);return
KT(this.currentUrlTree,r,s)}removeEmptyProps(e){return
Object.keys(e).reduce((n,s)=>{const r=e[s];return nul
l!=r&&(n[s]=r),n},{})}processNavigations(){this.navigations.subscribe(e=>{this.navigated=!0,this.lastSuccessfulId=e.id,this.currentPageId=e.targetPageId,this.events.next(new
vl(e.id,this.serializeUrl(e.extractedUrl),this.serializeUrl(this.currentUrlTree))),this.lastSuccessfulNavigation=this.currentNavigation,e.resolve(!0)},e=>{this.console.warn(`Unhandled
Navigation Error: ${e}`)})}scheduleNavigation(e,n,s,r,o){var u,h;if(this.disposed)return
Promise.resolve(!1);let b,y,w;o?(b=o.resolve,y=o.reject,w=o.promise):w=new
Promise((L,O)=>{b=L,y=O});const M=++this.navigationId;let
E;return"computed"===this.canceledNavigationResolution?(0===this.currentPageId&&(s=this.location.getState()),E=s&&s.\u0275routerPageId?s.\u0275routerPageId:r.replaceUrl||r.skipLocationChange?null!==(u=this.browserPageId)&&void
0!==u?u:0:(null!==(h=this.browserPageId)&&void
0!==h?h:0)+1):E=0,this.setTransition({id:M,targetPageId:E,source:n,restoredState:s,currentUrlTree:this.currentUrlTree,currentRawUrl:this.rawUrl
Tree,rawUrl:e,extras:r,resolve:b,reject:y,promise:w,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),w.catch(L=>Promise.reject(L))}setBrowserUrl(e,n){const
s=this.urlSerializer.serialize(e),r=Object.assign(Object.assign({},n.extras.state),this.generateNgRouterState(n.id,n.targetPageId));this.location.isCurrentPathEqualTo(s)||n.extras.replaceUrl?this.location.replaceState(s,"",r):this.location.go(s,"",r)}restoreHistory(e,n=!1){var
s,r;if("computed"===this.canceledNavigationResolution){const
o=this.currentPageId-e.targetPageId;"popstate"!==e.source&&"eager"!==this.urlUpdateStrategy&&this.currentUrlTree!==(null===(s=this.currentNavigation)||void
0===s?void
0:s.finalUrl)||0===o?this.currentUrlTree===(null===(r=this.currentNavigation)||void
0===r?void
0:r.finalUrl)&&0===o&&(this.resetState(e),this.browserUrlTree=e.currentUrlTree,this.resetUrlToCurrentUrlTree()):this.location.historyGo(o)}else"replace"===this.canceledNavigationResolution&&(n&&this.resetState
(e),this.resetUrlToCurrentUrlTree())}resetState(e){this.routerState=e.currentRouterState,this.currentUrlTree=e.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,e.rawUrl)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}cancelNavigationTransition(e,n){const
s=new
BT(e.id,this.serializeUrl(e.extractedUrl),n);this.triggerEvent(s),e.resolve(!1)}generateNgRouterState(e,n){return"computed"===this.canceledNavigationResolution?{navigationId:e,\u0275routerPageId:n}:{navigationId:e}}}return
t.\u0275fac=function(e){Sh()},t.\u0275prov=X({token:t,factory:t.\u0275fac}),t})();function
O2(t){return"imperative"!==t}let gd=(()=>{class
t{constructor(e,n,s,r,o){this.router=e,this.route=n,this.tabIndexAttribute=s,this.renderer=r,this.el=o,this.commands=null,this.onChanges=new
ct,this.setTabIndexIfNotOnNativeEl("0")}setTabIndexIfNotOnNativeEl(e){if(n
ull!=this.tabIndexAttribute)return;const
n=this.renderer,s=this.el.nativeElement;null!==e?n.setAttribute(s,"tabindex",e):n.removeAttribute(s,"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:qo(this.skipLocationChange),replaceUrl:qo(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:qo(this.preserveFragment)})}}return
t.\u0275fac=function(e){return
new(e||t)(D(It),D(Er),ua("tabindex"),D(gn),D(De))},t.\u0275dir=le({type:t,selectors:[["","routerLink","",5,"a",
5,"area"]],hostBindings:function(e,n){1&e&&C("click",function(){return
n.onClick()})},inputs:{queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",preserveFragment:"preserveFragment",skipLocationChange:"skipLocationChange",replaceUrl:"replaceUrl",state:"state",relativeTo:"relativeTo",routerLink:"routerLink"},features:[fn]}),t})(),Ho=(()=>{class
t{constructor(e,n,s){this.router=e,this.route=n,this.locationStrategy=s,this.commands=null,this.href=null,this.onChanges=new
ct,this.subscription=e.events.subscribe(r=>{r instanceof
vl&&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,n,s,r,o){if(0!==e||n||s||r||o||"string"==typeof
this.target&&"_self"!=this.target||null===this.urlTree)return!0;const
u={skipLocationChange:qo(this.skipLocationChange),replaceUrl:qo(this.replaceUrl),sta
te:this.state};return
this.router.navigateByUrl(this.urlTree,u),!1}updateTargetUrlAndHref(){this.href=null!==this.urlTree?this.locationStrategy.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:qo(this.preserveFragment)})}}return
t.\u0275fac=function(e){return
new(e||t)(D(It),D(Er),D(ko))},t.\u0275dir=le({type:t,selectors:[["a","routerLink",""],["area","routerLink",""]],hostVars:2,hostBindings:function(e,n){1&e&&C("click",function(r){return
n.onClick(r.button,r.ctrlKey,r.shiftKey,r.altKey,r.metaKey)}),2&e&&ie("target",n.target)("href",n.href,ln)},inputs:{target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",preserveFragment:"preserveFragment",skipLocationChang
e:"skipLocationChange",replaceUrl:"replaceUrl",state:"state",relativeTo:"relativeTo",routerLink:"routerLink"},features:[fn]}),t})();function
qo(t){return""===t||!!t}let _d=(()=>{class
t{constructor(e,n,s,r,o,u){this.router=e,this.element=n,this.renderer=s,this.cdr=r,this.link=o,this.linkWithHref=u,this.classes=[],this.isActive=!1,this.routerLinkActiveOptions={exact:!1},this.isActiveChange=new
H,this.routerEventsSubscription=e.events.subscribe(h=>{h instanceof
vl&&this.update()})}ngAfterContentInit(){oe(this.links.changes,this.linksWithHrefs.changes,oe(null)).pipe(ea()).subscribe(e=>{this.update(),this.subscribeToEachLinkOnChanges()})}subscribeToEachLinkOnChanges(){var
e;null===(e=this.linkInputChangesSubscription)||void 0===e||e.unsubscribe();const
n=[...this.links.toArray(),...this.linksWithHrefs.toArray(),this.link,this.linkWithHref].filter(s=>!!s).map(s=>s.onChanges);this.linkInputChangesSubscription=Mn(n).pipe(ea()).subscribe(s=>{this.isActive!==this.isLinkActive(this.router)(s)
&&this.update()})}set routerLinkActive(e){const
n=Array.isArray(e)?e:e.split("
");this.classes=n.filter(s=>!!s)}ngOnChanges(e){this.update()}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(n=>{e?this.renderer.addClass(this.element.nativeElement,n):this.renderer.removeClass(this.element.nativeElement,n)}),this.isActiveChange.emit(e))})}isLinkActive(e){const
n=function
NH(t){return!!t.paths}(this.routerLinkActiveOptions)?this.routerLinkActiveOptions:this.routerLinkActiveOptions.exact||!1;return
s=>!!s.urlTree&&e.isActive(s.urlTree,n)}hasActiveLinks(){const
e=this.isLinkActive(this.router);return
this.link&&e(this.link)||this.linkWithHref&&e(this.linkWithHref)||this.links.some(e)||this.linksWit
hHrefs.some(e)}}return t.\u0275fac=function(e){return
new(e||t)(D(It),D(De),D(gn),D(rt),D(gd,8),D(Ho,8))},t.\u0275dir=le({type:t,selectors:[["","routerLinkActive",""]],contentQueries:function(e,n,s){if(1&e&&(st(s,gd,5),st(s,Ho,5)),2&e){let
r;V(r=B())&&(n.links=r),V(r=B())&&(n.linksWithHrefs=r)}},inputs:{routerLinkActiveOptions:"routerLinkActiveOptions",routerLinkActive:"routerLinkActive"},outputs:{isActiveChange:"isActiveChange"},exportAs:["routerLinkActive"],features:[fn]}),t})();class
A2{}class P2{preload(i,e){return oe(null)}}let F2=(()=>{class
t{constructor(e,n,s,r){this.router=e,this.injector=s,this.preloadingStrategy=r,this.loader=new
R2(s,n,h=>e.triggerEvent(new HT(h)),h=>e.triggerEvent(new
qT(h)))}setUpPreloading(){this.subscription=this.router.events.pipe(Us(e=>e instanceof
vl),_r(()=>this.preload())).subscribe(()=>{})}preload(){const
e=this.injector.get(_s);return
this.processRoutes(e,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}proc
essRoutes(e,n){const s=[];for(const r of
n)if(r.loadChildren&&!r.canLoad&&r._loadedConfig){const
o=r._loadedConfig;s.push(this.processRoutes(o.module,o.routes))}else
r.loadChildren&&!r.canLoad?s.push(this.preloadConfig(e,r)):r.children&&s.push(this.processRoutes(e,r.children));return
Mn(s).pipe(ea(),et(r=>{}))}preloadConfig(e,n){return
this.preloadingStrategy.preload(n,()=>(n._loadedConfig?oe(n._loadedConfig):this.loader.load(e.injector,n)).pipe(yn(r=>(n._loadedConfig=r,this.processRoutes(r.module,r.routes)))))}}return
t.\u0275fac=function(e){return
new(e||t)(K(It),K(qC),K(En),K(A2))},t.\u0275prov=X({token:t,factory:t.\u0275fac}),t})(),_g=(()=>{class
t{constructor(e,n,s={}){this.router=e,this.viewportScroller=n,this.options=s,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},s.scrollPositionRestoration=s.scrollPositionRestoration||"disabled",s.anchorScrolling=s.anchorScrolling||"disabled"}init(){"disabled"!==this.options.scrollPositionRestoration&&this.viewp
ortScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}createScrollEvents(){return
this.router.events.subscribe(e=>{e instanceof
tg?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=e.navigationTrigger,this.restoredId=e.restoredState?e.restoredState.navigationId:0):e
instanceof
vl&&(this.lastId=e.id,this.scheduleScrollEvent(e,this.router.parseUrl(e.urlAfterRedirects).fragment))})}consumeScrollEvents(){return
this.router.events.subscribe(e=>{e instanceof
GT&&(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.scrollToPosit
ion([0,0]))})}scheduleScrollEvent(e,n){this.router.triggerEvent(new
GT(e,"popstate"===this.lastSource?this.store[this.restoredId]:null,n))}ngOnDestroy(){this.routerEventsSubscription&&this.routerEventsSubscription.unsubscribe(),this.scrollEventsSubscription&&this.scrollEventsSubscription.unsubscribe()}}return
t.\u0275fac=function(e){Sh()},t.\u0275prov=X({token:t,factory:t.\u0275fac}),t})();const
Lr=new be("ROUTER_CONFIGURATION"),N2=new
be("ROUTER_FORROOT_GUARD"),BH=[_m,{provide:ZT,useClass:XT},{provide:It,useFactory:function
zH(t,i,e,n,s,r,o={},u,h){const b=new It(null,t,i,e,n,s,jT(r));return
u&&(b.urlHandlingStrategy=u),h&&(b.routeReuseStrategy=h),function
jH(t,i){t.errorHandler&&(i.errorHandler=t.errorHandler),t.malformedUriErrorHandler&&(i.malformedUriErrorHandler=t.malformedUriErrorHandler),t.onSameUrlNavigation&&(i.onSameUrlNavigation=t.onSameUrlNavigation),t.paramsInheritanceStrategy&&(i.paramsInheritanceStrategy=t.paramsInheritanceStrategy),t.relativeLinkResolution&&(i.relati
veLinkResolution=t.relativeLinkResolution),t.urlUpdateStrategy&&(i.urlUpdateStrategy=t.urlUpdateStrategy),t.canceledNavigationResolution&&(i.canceledNavigationResolution=t.canceledNavigationResolution)}(o,b),o.enableTracing&&b.events.subscribe(y=>{var
w,M;null===(w=console.group)||void 0===w||w.call(console,`Router Event:
${y.constructor.name}`),console.log(y.toString()),console.log(y),null===(M=console.groupEnd)||void
0===M||M.call(console)}),b},deps:[ZT,Dl,_m,En,qC,gg,Lr,[class EH{},new Ns],[class MH{},new
Ns]]},Dl,{provide:Er,useFactory:function $H(t){return
t.routerState.root},deps:[It]},F2,P2,class VH{preload(i,e){return
e().pipe(Mr(()=>oe(null)))}},{provide:Lr,useValue:{enableTracing:!1}}];function
HH(){return new $C("Router",It)}let vn=(()=>{class t{constructor(e,n){}static
forRoot(e,n){return{ngModule:t,providers:[BH,V2(e),{provide:N2,useFactory:UH,deps:[[It,new
Ns,new _a]]},{provide:Lr,useValue:n||{}},{provide:ko,useFactory:GH,deps:[fr,[new
dc(gm),new Ns],Lr]},{provide:_g,u
seFactory:qH,deps:[It,R4,Lr]},{provide:A2,useExisting:n&&n.preloadingStrategy?n.preloadingStrategy:P2},{provide:$C,multi:!0,useFactory:HH},[bg,{provide:em,multi:!0,useFactory:WH,deps:[bg]},{provide:B2,useFactory:KH,deps:[bg]},{provide:HC,multi:!0,useExisting:B2}]]}}static
forChild(e){return{ngModule:t,providers:[V2(e)]}}}return t.\u0275fac=function(e){return
new(e||t)(K(N2,8),K(It,8))},t.\u0275mod=he({type:t}),t.\u0275inj=ue({}),t})();function
qH(t,i,e){return e.scrollOffset&&i.setOffset(e.scrollOffset),new
_g(t,i,e)}function GH(t,i,e={}){return e.useHash?new vL(t,i):new dy(t,i)}function
UH(t){return"guarded"}function
V2(t){return[{provide:gD,multi:!0,useValue:t},{provide:gg,multi:!0,useValue:t}]}let
bg=(()=>{class
t{constructor(e){this.injector=e,this.initNavigation=!1,this.destroyed=!1,this.resultOfPreactivationDone=new
ct}appInitializer(){return
this.injector.get(gL,Promise.resolve(null)).then(()=>{if(this.destroyed)return
Promise.resolve(!0);let n=null;const s=new Promise(u=>n=u
),r=this.injector.get(It),o=this.injector.get(Lr);return"disabled"===o.initialNavigation?(r.setUpLocationChangeListener(),n(!0)):"enabled"===o.initialNavigation||"enabledBlocking"===o.initialNavigation?(r.hooks.afterPreactivation=()=>this.initNavigation?oe(null):(this.initNavigation=!0,n(!0),this.resultOfPreactivationDone),r.initialNavigation()):n(!0),s})}bootstrapListener(e){const
n=this.injector.get(Lr),s=this.injector.get(F2),r=this.injector.get(_g),o=this.injector.get(It),u=this.injector.get(cm);e===u.components[0]&&(("enabledNonBlocking"===n.initialNavigation||void
0===n.initialNavigation)&&o.initialNavigation(),s.setUpPreloading(),r.init(),o.resetRootComponentType(u.componentTypes[0]),this.resultOfPreactivationDone.next(null),this.resultOfPreactivationDone.complete())}ngOnDestroy(){this.destroyed=!0}}return
t.\u0275fac=function(e){return
new(e||t)(K(En))},t.\u0275prov=X({token:t,factory:t.\u0275fac}),t})();function
WH(t){return t.appInitializer.bind(t)}function KH(t){return t.
bootstrapListener.bind(t)}const B2=new be("Router Initializer");let
m9=(()=>{class t{}return t.\u0275fac=function(e){return
new(e||t)},t.\u0275mod=he({type:t}),t.\u0275inj=ue({imports:[[Fe,vn,pn,jn],vn,jn]}),t})();function
f9(t,i){1&t&&k(0,"span",6),2&t&&p("innerHTML",d(3).text,Bt)}function
g9(t,i){if(1&t&&(l(0,"div"),_(1,f9,1,1,"span",5),c()),2&t){const
e=d(2);a(1),p("ngIf",!e.escape)}}function
_9(t,i){if(1&t&&(l(0,"span",8),g(1),c()),2&t){const
e=d(3);a(1),S(e.text)}}function
b9(t,i){1&t&&_(0,_9,2,1,"span",7),2&t&&p("ngIf",d(2).escape)}const
v9=function(t,i,e,n,s){return{"p-inline-message-info":t,"p-inline-message-warn":i,"p-inline-message-error":e,"p-inline-message-success":n,"p-inline-message-icon-only":s}};function
C9(t,i){if(1&t&&(l(0,"div",1),k(1,"span",2),_(2,g9,2,1,"div",3),_(3,b9,1,1,"ng-template",null,4,we),c()),2&t){const
e=F(4),n=d();me(n.styleClass),p("ngStyle",n.style)("ngClass",pr(7,v9,"info"===n.severity,"warn"===n.severity,"error"===n.severity,"success"===n.severit
y,null==n.text)),a(1),p("ngClass",n.icon),a(1),p("ngIf",!n.escape)("ngIfElse",e)}}let
qe=(()=>{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=z({type:t,selectors:[["p-message"]],hostAttrs:[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,"inne
rHTML"],["class","p-inline-message-text",4,"ngIf"],[1,"p-inline-message-text"]],template:function(e,n){1&e&&_(0,C9,5,13,"div",0),2&e&&p("ngIf",n.severity)},directives:[Q,lt,Le],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})(),y9=(()=>{class
t{}return t.\u0275fac=function(e){return
new(e||t)},t.\u0275mod=he({type:t}),t.\u0275inj=ue({imports:[[Fe]]}),t})(),A9=(()=>{class
t{}return t.\u0275fac=function(e){return
new(e||t)},t.\u0275mod=he({type:t}),t.\u0275inj=ue({imports:[[Fe,pn]]}),t})();function
P9(t,i){1&t&&Y(0)}function F9(t,i){if(1&t){const
e=I();l(0,"button",5),C("click",function(s){return
v(e),d(2).onCloseClick(s)})("keydown.enter",function(){return
v(e),d(2).hide()}),k(1,"span",6),c()}2&t&&ie("aria-label",d(2).ariaCloseLabel)}const
N9=function(t,i){return{sho
wTransitionParams:t,hideTransitionParams:i}},V9=function(t,i){return{value:t,params:i}};function
B9(t,i){if(1&t){const
e=I();l(0,"div",1),C("click",function(s){return
v(e),d().onOverlayClick(s)})("(a)animation.start",function(s){return
v(e),d().onAnimationStart(s)})("(a)animation.done",function(s){return
v(e),d().onAnimationEnd(s)}),l(1,"div",2),C("click",function(){return
v(e),d().onContentClick()})("mousedown",function(){return
v(e),d().onContentClick()}),St(2),_(3,P9,1,0,"ng-container",3),c(),_(4,F9,2,1,"button",4),c()}if(2&t){const
e=d();me(e.styleClass),p("ngClass","p-overlaypanel
p-component")("ngStyle",e.style)("@animation",Ge(10,V9,e.overlayVisible?"open":"close",Ge(7,N9,e.showTransitionOptions,e.hideTransitionOptions))),a(3),p("ngTemplateOutlet",e.contentTemplate),a(1),p("ngIf",e.showCloseIcon)}}const
H9=["*"];let q9=(()=>{class
t{constructor(e,n,s,r,o,u){this.el=e,this.renderer=n,this.cd=s,this.zone=r,this.config=o,this.overlayService=u,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 H,this.onHide=new
H,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=R.isIOS()?"touchstart":"click";this.documentClickListener=this.renderer.listen(this.el?this.el.nativeElement.ownerDocument:"document",e,s=>{!this.container.contains(s.target)&&this.target!==s.target&&!this.target.contains(s.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,n){this.overlayVisible?(this.hasTargetC
hanged(e,n)&&(this.destroyCallback=()=>{this.show(null,n||e.currentTarget||e.target)}),this.hide()):this.show(e,n)}show(e,n){this.target=n||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,n){return
null!=this.target&&this.target!==(n||e.currentTarget||e.target)}appendContainer(){this.appendTo&&("body"===this.appendTo?document.body.appendChild(this.container):R.appendChild(this.container,this.appendTo))}restoreAppend(){this.container&&this.appendTo&&this.el.nativeElement.appendChild(this.container)}align(){this.autoZIndex&&dt.set("overlay",this.container,this.baseZIndex+this.config.zIndex.overlay),R.absolutePosition(this.container,this.target);const
e=R.getOffset(this.container),n=R.getOffset(this.target);let
s=0;e.left<n.left&&(s=n.left-e.left),this.container.style.setProperty("--overl
ayArrowLeft",`${s}px`),e.top<n.top&&R.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=n=>{this.container&&this.container.contains(n.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&&dt.clear(this.container),this.overlaySubscription&&this.overlaySubscription.unsubscribe(),this.onContainerDestroy(),this.onHide.emit({}),this.render=!1}}focus(){let
e=R.findSingle(this.container,"[autofocus]");e&&this.zone.runOutsideAngula
r(()=>{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
Qs(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.autoZI
ndex&&dt.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)(D(De),D(gn),D(rt),D(nt),D(zn),D(Ks))},t.\u0275cmp=z({type:t,selectors:[["p-overlayPanel"]],contentQueries:function(e,n,s){if(1&e&&st(s,ne,4),2&e){let
r;V(r=B())&&(n.templates=r)}},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:H9,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,n){1&e&&(Sn(),_(0,B9,5,13,"div",0)),2&e&&p("ngIf",n.render)},directives:[Q,Le,lt,Rt,bt],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;ri
ght: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:[wi("animation",[ws("void",it({transform:"scaleY(0.8)",opacity:0})),ws("close",it({opacity:0})),ws("open",it({transform:"translateY(0)",opacity:1})),Lt("void
=> open",kt("{{showTransitionParams}}")),Lt("open =>
close",kt("{{hideTransitionParams}}"))])]},changeDetection:0}),t})(),G9=(()=>{class
t{}return t.\u0275fac=function(e){return
new(e||t)},t.\u0275mod=he({type:t}),t.\u0275inj=ue({imports:[[Fe,pn,Nt],Nt]}),t})(),J9=(()=>{class
t{}return t.\u0275fac=function(e){return
new(e||t)},t.\u0275mod=he({type:t}),t.\u0275inj=ue({imports:[[Fe,Nt,pn],Nt]}),t})(),Go=(()=>{class
t{constructor(){this.strokeWidth="2",this.fill="none",this.animationDuration="2s"}}return
t.\u0275fac=function(e){return
new(e||t)},t.\u0275cmp=z({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,n){1&e&&(l(0,"div",0),function
d_(){Ee.lFrame.currentNamespace="svg"}(),l(1,"svg",1),k(2,"circle",2),c()()),2&e&&(p("ngStyle",n.style)("ngClass",n.styleClass),a(1),_i("animation-duration",n.animationDuration),a(1),ie("fill",n.fill)("stroke-width",n.strokeWidth))},directives:[lt,Le],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-rota
te 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})(),Y9=(()=>{class
t{}return t.\u0275fac=function(e){return
new(e||t)},t.\u0275mod=he({type:t}),t.\u0275inj=ue({imports:[[Fe]]}),t})();ku([it({transform:"{{transform}}",opacity:0}),kt("{{transition}}")]),ku([kt("{{transition}}",it(
{transform:"{{transform}}",opacity:0}))]);let iq=(()=>{class t{}return
t.\u0275fac=function(e){return
new(e||t)},t.\u0275mod=he({type:t}),t.\u0275inj=ue({imports:[[Fe,pn]]}),t})(),sq=(()=>{class
t{}return t.\u0275fac=function(e){return
new(e||t)},t.\u0275mod=he({type:t}),t.\u0275inj=ue({imports:[[Fe]]}),t})(),hq=(()=>{class
t{}return t.\u0275fac=function(e){return
new(e||t)},t.\u0275mod=he({type:t}),t.\u0275inj=ue({imports:[[Fe,vn,jn],vn,jn]}),t})();function
mq(t,i){1&t&&k(0,"span",8),2&t&&(me(d(2).$implicit.icon),p("ngClass","p-button-icon
p-button-icon-left"))}function
fq(t,i){if(1&t&&(de(0),_(1,mq,1,3,"span",6),l(2,"span",7),g(3),c(),pe()),2&t){const
e=d().$implicit,n=d();a(1),p("ngIf",e.icon),a(2),S(n.getOptionLabel(e))}}function
gq(t,i){1&t&&Y(0)}const _q=function(t,i){return{$implicit:t,index:i}};function
bq(t,i){if(1&t&&_(0,gq,1,0,"ng-container",9),2&t){const
e=d(),n=e.$implicit,s=e.index;p("ngTemplateOutlet",d().itemTemplate)("ngTemplateOutletContext",Ge(2,_q,n,s))}}const
vq
=function(t,i,e){return{"p-highlight":t,"p-disabled":i,"p-button-icon-only":e}};function
Cq(t,i){if(1&t){const
e=I();l(0,"div",2,3),C("click",function(s){const
r=v(e),o=r.$implicit,u=r.index;return
d().onItemClick(s,o,u)})("keydown.enter",function(s){const
r=v(e),o=r.$implicit,u=r.index;return
d().onItemClick(s,o,u)})("blur",function(){return
v(e),d().onBlur()}),_(2,fq,4,2,"ng-container",4),_(3,bq,1,5,"ng-template",null,5,we),c()}if(2&t){const
e=i.$implicit,n=F(4),s=d();me(e.styleClass),p("ngClass",Qt(10,vq,s.isSelected(e),s.disabled||s.isOptionDisabled(e),e.icon&&!s.getOptionLabel(e))),ie("aria-pressed",s.isSelected(e))("title",e.title)("aria-label",e.label)("tabindex",s.disabled?null:s.tabindex)("aria-labelledby",s.getOptionLabel(e)),a(2),p("ngIf",!s.itemTemplate)("ngIfElse",n)}}const
yq={provide:dn,useExisting:je(()=>wq),multi:!0};let wq=(()=>{class
t{constructor(e){this.cd=e,this.tabindex=0,this.onOptionClick=new H,this.onChange=new
H,this.onModelChange=()=>{},this.onModelTouche
d=()=>{}}getOptionLabel(e){return
this.optionLabel?Z.resolveFieldData(e,this.optionLabel):null!=e.label?e.label:e}getOptionValue(e){return
this.optionValue?Z.resolveFieldData(e,this.optionValue):this.optionLabel||void
0===e.value?e:e.value}isOptionDisabled(e){return
this.optionDisabled?Z.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,n,s){if(!this.disabled&&!this.isOptionDisabled(n)){if(this.multiple)this.isSelected(n)?this.removeOption(n):this.value=[...this.value||[],this.getOptionValue(n)],this.onModelChange(this.value),this.onChange.emit({originalEvent:e,value:this.value});else{let
r=this.getOptionValue(n);this.value!==r&&(this.value=this.getOptionValue(n),this.onModelChange(this.value),this.onChange.emit({originalEvent:e,value:this.value}))}this.onOp
tionClick.emit({originalEvent:e,option:n,index:s})}}onBlur(){this.onModelTouched()}removeOption(e){this.value=this.value.filter(n=>!Z.equals(n,this.getOptionValue(e),this.dataKey))}isSelected(e){let
n=!1,s=this.getOptionValue(e);if(this.multiple){if(this.value)for(let r of
this.value)if(Z.equals(r,s,this.dataKey)){n=!0;break}}else
n=Z.equals(this.getOptionValue(e),this.value,this.dataKey);return n}}return
t.\u0275fac=function(e){return
new(e||t)(D(rt))},t.\u0275cmp=z({type:t,selectors:[["p-selectButton"]],contentQueries:function(e,n,s){if(1&e&&st(s,bi,5),2&e){let
r;V(r=B())&&(n.itemTemplate=r.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:[Pe([yq])],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,n){1&e&&(l(0,"div",0),_(1,Cq,5,14,"div",1),c()),2&e&&(me(n.styleClass),p("ngClass","p-selectbutton
p-buttonset
p-component")("ngStyle",n.style),a(1),p("ngForOf",n.options))},directives:[Le,lt,at,bt,Q,Rt],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:cen
ter}.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}\n"],encapsulation:2,changeDetection:0}),t})(),Tq=(()=>{class
t{}return t.\u0275fac=function(e){return
new(e||t)},t.\u0275mod=he({type:t}),t.\u0275inj=ue({imports:[[Fe,pn]]}),t})();const
Sq=function(t,i,e){return{"p-checkbox-label-active":t,"p-disabled":i,"p-checkbox-label-focus":e}};function
xq(t,i){if(1&t){const
e=I();l(0,"label",7),C("click",function(s){v(e);const
r=d(),o=F(3);return r.onClick(s,o)}),g(1),c()}if(2&t){const e=d();p(
"ngClass",Qt(3,Sq,null!=e.value,e.disabled,e.focused)),ie("for",e.inputId),a(1),S(e.label)}}const
Dq=function(t,i){return{"p-checkbox
p-component":!0,"p-checkbox-disabled":t,"p-checkbox-focused":i}},Mq=function(t,i,e){return{"p-highlight":t,"p-disabled":i,"p-focus":e}},kq={provide:dn,useExisting:je(()=>G2),multi:!0};let
G2=(()=>{class t{constructor(e){this.cd=e,this.checkboxTrueIcon="pi
pi-check",this.checkboxFalseIcon="pi pi-times",this.onChange=new
H,this.onModelChange=()=>{},this.onModelTouched=()=>{}}onClick(e,n){!this.disabled&&!this.readonly&&(this.toggle(e),this.focused=!0,n.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.onModelTouch
ed()}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)(D(rt))},t.\u0275cmp=z({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:[Pe([kq])],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,n){if(1&e){const
s=I();l(0,"div",0)(1,"div",1)(2,"input",2,3),C("keyup",function(o){return
n.onKeyup(o)})("keydown",function(o){return
n.onKeydown(o)})("focus",function(){return
n.onFocus()})("blur",function(){return
n.onBlur()}),c()(),l(4,"div",4),C("click",function(o){v(s);const
u=F(3);return
n.onClick(o,u)}),k(5,"span",5),c()(),_(6,xq,2,7,"label",6)}2&e&&(me(n.styleClass),p("ngStyle",n.style)("ngClass",Ge(14,Dq,n.disabled,n.focused)),a(2),p("name",n.name)("readonly",n.readonly)("disabled",n.disabled),ie("id",n.inputId)("tabindex",n.tabindex)("aria-labelledby",n.ariaLabelledBy),a(2),p("ngClass",Qt(17,Mq,null!=n.value,n.disabled,n.focused)),ie("aria-checked",!0===n.value),a(1),p("ngClass",!0===n.value?n.checkboxTrueIcon:!1===n.value?n.checkboxFalseIcon:""),a(1),p("ngIf",n.label))},directives:[lt,Le,Q],encapsulation:2,changeDetection:0}),t})(),Iq=(()=>{class
t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=he({type:t}),
t.\u0275inj=ue({imports:[[Fe]]}),t})();const
Eq=["container"],Rq=["resizeHelper"],Lq=["reorderIndicatorUp"],Oq=["reorderIndicatorDown"],Aq=["wrapper"],Pq=["table"],Fq=["tableHeader"];function
Nq(t,i){if(1&t&&(l(0,"div",14),k(1,"i"),c()),2&t){const
e=d();a(1),me("p-datatable-loading-icon pi-spin "+e.loadingIcon)}}function
Vq(t,i){1&t&&Y(0)}function
Bq(t,i){if(1&t&&(l(0,"div",15),_(1,Vq,1,0,"ng-container",16),c()),2&t){const
e=d();a(1),p("ngTemplateOutlet",e.captionTemplate)}}function
Hq(t,i){if(1&t){const
e=I();l(0,"p-paginator",17),C("onPageChange",function(s){return
v(e),d().onPageChange(s)}),c()}if(2&t){const
e=d();p("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)("currentPageRe
portTemplate",e.currentPageReportTemplate)("showFirstLastIcon",e.showFirstLastIcon)("dropdownItemTemplate",e.paginatorDropdownItemTemplate)("showCurrentPageReport",e.showCurrentPageReport)("showJumpToPageDropdown",e.showJumpToPageDropdown)("showJumpToPageInput",e.showJumpToPageInput)("showPageLinks",e.showPageLinks)}}function
qq(t,i){1&t&&Y(0)}function Gq(t,i){1&t&&Y(0)}function
Uq(t,i){if(1&t&&k(0,"tbody",25),2&t){const
e=d(2);p("value",e.frozenValue)("frozenRows",!0)("pTableBody",e.columns)("pTableBodyTemplate",e.frozenBodyTemplate)("frozen",!0)}}function
zq(t,i){1&t&&Y(0)}const Zs=function(t){return{$implicit:t}};function
jq(t,i){if(1&t&&(l(0,"tfoot",26),_(1,zq,1,0,"ng-container",20),c()),2&t){const
e=d(2);a(1),p("ngTemplateOutlet",e.footerGroupedTemplate||e.footerTemplate)("ngTemplateOutletContext",U(2,Zs,e.columns))}}function
$q(t,i){if(1&t&&(l(0,"table",18,19),_(2,qq,1,0,"ng-container",20),l(3,"thead",21),_(4,Gq,1,0,"ng-container",20),c(),_(5,Uq,1,5,"tbody",22),k(6,"tbody",23)
,_(7,jq,2,4,"tfoot",24),c()),2&t){const
e=d();p("ngClass",e.tableStyleClass)("ngStyle",e.tableStyle),ie("id",e.id+"-table"),a(2),p("ngTemplateOutlet",e.colGroupTemplate)("ngTemplateOutletContext",U(12,Zs,e.columns)),a(2),p("ngTemplateOutlet",e.headerGroupedTemplate||e.headerTemplate)("ngTemplateOutletContext",U(14,Zs,e.columns)),a(1),p("ngIf",e.frozenValue||e.frozenBodyTemplate),a(1),p("value",e.dataToRender)("pTableBody",e.columns)("pTableBodyTemplate",e.bodyTemplate),a(1),p("ngIf",e.footerGroupedTemplate||e.footerTemplate)}}function
Wq(t,i){1&t&&Y(0)}function Kq(t,i){1&t&&Y(0)}function
Qq(t,i){if(1&t&&k(0,"tbody",25),2&t){const
e=d(2);p("value",e.frozenValue)("frozenRows",!0)("pTableBody",e.columns)("pTableBodyTemplate",e.bodyTemplate)("frozen",!0)}}function
Jq(t,i){1&t&&Y(0)}function
Yq(t,i){if(1&t&&(l(0,"tfoot",26),_(1,Jq,1,0,"ng-container",20),c()),2&t){const
e=d(2);a(1),p("ngTemplateOutlet",e.footerGroupedTemplate||e.footerTemplate)("ngTemplateOutletContext",U(2,Zs,e.columns))
}}function Zq(t,i){if(1&t){const
e=I();l(0,"cdk-virtual-scroll-viewport",27),C("scrolledIndexChange",function(s){return
v(e),d().onScrollIndexChange(s)}),l(1,"table",18,19),_(3,Wq,1,0,"ng-container",20),l(4,"thead",21,28),_(6,Kq,1,0,"ng-container",20),c(),_(7,Qq,1,5,"tbody",22),k(8,"tbody",23),_(9,Yq,2,4,"tfoot",24),c()()}if(2&t){const
e=d();_i("height","flex"!==e.scrollHeight?e.scrollHeight:void
0),p("itemSize",e.virtualRowHeight)("minBufferPx",e.minBufferPx)("maxBufferPx",e.maxBufferPx),a(1),p("ngClass",e.tableStyleClass)("ngStyle",e.tableStyle),ie("id",e.id+"-table"),a(2),p("ngTemplateOutlet",e.colGroupTemplate)("ngTemplateOutletContext",U(17,Zs,e.columns)),a(3),p("ngTemplateOutlet",e.headerGroupedTemplate||e.headerTemplate)("ngTemplateOutletContext",U(19,Zs,e.columns)),a(1),p("ngIf",e.frozenValue||e.frozenBodyTemplate),a(1),p("value",e.dataToRender)("pTableBody",e.columns)("pTableBodyTemplate",e.bodyTemplate),a(1),p("ngIf",e.footerGroupedTemplate||e.footerTemplate)}}function
Xq(
t,i){if(1&t){const
e=I();l(0,"p-paginator",29),C("onPageChange",function(s){return
v(e),d().onPageChange(s)}),c()}if(2&t){const
e=d();p("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
eG(t,i){1&t&&Y(0)}function
tG(t,i){if(1&t&&(l(0,"div",30),_(1,eG,1,0,"ng-container",16),c()),2&t){const
e=d();a(1),p("ngTemplateOutlet",e.summaryTemplate)}}functio
n nG(t,i){1&t&&k(0,"div",31,32)}function
iG(t,i){1&t&&k(0,"span",33,34)}function
sG(t,i){1&t&&k(0,"span",35,36)}const
rG=function(t,i,e,n,s,r,o,u,h,b,y,w,M,E){return{"p-datatable
p-component":!0,"p-datatable-hoverable-rows":t,"p-datatable-auto-layout":i,"p-datatable-resizable":e,"p-datatable-resizable-fit":n,"p-datatable-scrollable":s,"p-datatable-scrollable-vertical":r,"p-datatable-scrollable-horizontal":o,"p-datatable-scrollable-both":u,"p-datatable-flex-scrollable":h,"p-datatable-responsive-stack":b,"p-datatable-responsive-scroll":y,"p-datatable-responsive":w,"p-datatable-grouped-header":M,"p-datatable-grouped-footer":E}},oG=function(t){return{height:t}},aG=["pTableBody",""];function
lG(t,i){1&t&&Y(0)}const
bd=function(t,i,e,n,s){return{$implicit:t,rowIndex:i,columns:e,editing:n,frozen:s}};function
cG(t,i){if(1&t&&(de(0,3),_(1,lG,1,0,"ng-container",4),pe()),2&t){const
e=d(),n=e.$implicit,s=e.index,r=d(2);a(1),p("ngTemplateOutlet",r.dt.groupHeaderTemplate)("ngTemplateOutletContext
",pr(2,bd,n,r.dt.paginator?r.dt.first+s:s,r.columns,"row"===r.dt.editMode&&r.dt.isRowEditing(n),r.frozen))}}function
uG(t,i){1&t&&Y(0)}function
dG(t,i){if(1&t&&(de(0),_(1,uG,1,0,"ng-container",4),pe()),2&t){const
e=d(),n=e.$implicit,s=e.index,r=d(2);a(1),p("ngTemplateOutlet",r.template)("ngTemplateOutletContext",pr(2,bd,n,r.dt.paginator?r.dt.first+s:s,r.columns,"row"===r.dt.editMode&&r.dt.isRowEditing(n),r.frozen))}}function
pG(t,i){1&t&&Y(0)}const
hG=function(t,i,e,n,s,r,o){return{$implicit:t,rowIndex:i,columns:e,editing:n,frozen:s,rowgroup:r,rowspan:o}};function
mG(t,i){if(1&t&&(de(0),_(1,pG,1,0,"ng-container",4),pe()),2&t){const
e=d(),n=e.$implicit,s=e.index,r=d(2);a(1),p("ngTemplateOutlet",r.template)("ngTemplateOutletContext",function
aC(t,i,e,n,s,r,o,u,h,b){const y=Fn()+t,w=$();let M=gi(w,y,e,n,s,r);return
Mc(w,y+4,o,u,h)||M?es(w,y+7,b?i.call(b,e,n,s,r,o,u,h):i(e,n,s,r,o,u,h)):Ea(w,y+7)}(2,hG,n,r.dt.paginator?r.dt.first+s:s,r.columns,"row"===r.dt.editMode&&r.dt.isRowEditing(n)
,r.frozen,r.shouldRenderRowspan(r.value,n,s),r.calculateRowGroupSize(r.value,n,s)))}}function
fG(t,i){1&t&&Y(0)}function
gG(t,i){if(1&t&&(de(0,3),_(1,fG,1,0,"ng-container",4),pe()),2&t){const
e=d(),n=e.$implicit,s=e.index,r=d(2);a(1),p("ngTemplateOutlet",r.dt.groupFooterTemplate)("ngTemplateOutletContext",pr(2,bd,n,r.dt.paginator?r.dt.first+s:s,r.columns,"row"===r.dt.editMode&&r.dt.isRowEditing(n),r.frozen))}}function
_G(t,i){if(1&t&&(_(0,cG,2,8,"ng-container",2),_(1,dG,2,8,"ng-container",0),_(2,mG,2,10,"ng-container",0),_(3,gG,2,8,"ng-container",2)),2&t){const
e=i.$implicit,n=i.index,s=d(2);p("ngIf",s.dt.groupHeaderTemplate&&"subheader"===s.dt.rowGroupMode&&s.shouldRenderRowGroupHeader(s.value,e,n)),a(1),p("ngIf","rowspan"!==s.dt.rowGroupMode),a(1),p("ngIf","rowspan"===s.dt.rowGroupMode),a(1),p("ngIf",s.dt.groupFooterTemplate&&"subheader"===s.dt.rowGroupMode&&s.shouldRenderRowGroupFooter(s.value,e,n))}}function
bG(t,i){if(1&t&&(de(0),_(1,_G,4,4,"ng-template",1),pe()),2&t){const
e=d
();a(1),p("ngForOf",e.value)("ngForTrackBy",e.dt.rowTrackBy)}}function
vG(t,i){1&t&&Y(0)}function
CG(t,i){if(1&t&&_(0,vG,1,0,"ng-container",4),2&t){const
e=i.$implicit,n=i.index,s=d(2);p("ngTemplateOutlet",e?s.template:s.dt.loadingBodyTemplate)("ngTemplateOutletContext",pr(2,bd,e,s.dt.paginator?s.dt.first+n:n,s.columns,"row"===s.dt.editMode&&s.dt.isRowEditing(e),s.frozen))}}function
yG(t,i){if(1&t&&(de(0),_(1,CG,1,8,"ng-template",5),pe()),2&t){const
e=d();a(1),p("cdkVirtualForOf",e.dt.filteredValue||e.dt.value)("cdkVirtualForTrackBy",e.dt.rowTrackBy)("cdkVirtualForTemplateCacheSize",0)}}function
wG(t,i){1&t&&Y(0)}const
vd=function(t,i,e,n,s,r){return{$implicit:t,rowIndex:i,columns:e,expanded:n,editing:s,frozen:r}};function
TG(t,i){if(1&t&&(de(0),_(1,wG,1,0,"ng-container",4),pe()),2&t){const
e=d(),n=e.$implicit,s=e.index,r=d(2);a(1),p("ngTemplateOutlet",r.template)("ngTemplateOutletContext",Do(2,vd,n,r.dt.paginator?r.dt.first+s:s,r.columns,r.dt.isRowExpanded(n),"row"===r.dt.editMode&
&r.dt.isRowEditing(n),r.frozen))}}function SG(t,i){1&t&&Y(0)}function
xG(t,i){if(1&t&&(de(0,3),_(1,SG,1,0,"ng-container",4),pe()),2&t){const
e=d(),n=e.$implicit,s=e.index,r=d(2);a(1),p("ngTemplateOutlet",r.dt.groupHeaderTemplate)("ngTemplateOutletContext",Do(2,vd,n,r.dt.paginator?r.dt.first+s:s,r.columns,r.dt.isRowExpanded(n),"row"===r.dt.editMode&&r.dt.isRowEditing(n),r.frozen))}}function
DG(t,i){1&t&&Y(0)}function MG(t,i){1&t&&Y(0)}function
kG(t,i){if(1&t&&(de(0,3),_(1,MG,1,0,"ng-container",4),pe()),2&t){const
e=d(2),n=e.$implicit,s=e.index,r=d(2);a(1),p("ngTemplateOutlet",r.dt.groupFooterTemplate)("ngTemplateOutletContext",Do(2,vd,n,r.dt.paginator?r.dt.first+s:s,r.columns,r.dt.isRowExpanded(n),"row"===r.dt.editMode&&r.dt.isRowEditing(n),r.frozen))}}const
U2=function(t,i,e,n){return{$implicit:t,rowIndex:i,columns:e,frozen:n}};function
IG(t,i){if(1&t&&(de(0),_(1,DG,1,0,"ng-container",4),_(2,kG,2,9,"ng-container",2),pe()),2&t){const
e=d(),n=e.$implicit,s=e.index,r=d(2);a(1),p("ngTem
plateOutlet",r.dt.expandedRowTemplate)("ngTemplateOutletContext",qn(3,U2,n,r.dt.paginator?r.dt.first+s:s,r.columns,r.frozen)),a(1),p("ngIf",r.dt.groupFooterTemplate&&"subheader"===r.dt.rowGroupMode&&r.shouldRenderRowGroupFooter(r.value,n,s))}}function
EG(t,i){if(1&t&&(_(0,TG,2,9,"ng-container",0),_(1,xG,2,9,"ng-container",2),_(2,IG,3,8,"ng-container",0)),2&t){const
e=i.$implicit,n=i.index,s=d(2);p("ngIf",!s.dt.groupHeaderTemplate),a(1),p("ngIf",s.dt.groupHeaderTemplate&&"subheader"===s.dt.rowGroupMode&&s.shouldRenderRowGroupHeader(s.value,e,n)),a(1),p("ngIf",s.dt.isRowExpanded(e))}}function
RG(t,i){if(1&t&&(de(0),_(1,EG,3,3,"ng-template",1),pe()),2&t){const
e=d();a(1),p("ngForOf",e.value)("ngForTrackBy",e.dt.rowTrackBy)}}function
LG(t,i){1&t&&Y(0)}function OG(t,i){1&t&&Y(0)}function
AG(t,i){if(1&t&&(de(0),_(1,OG,1,0,"ng-container",4),pe()),2&t){const
e=d(),n=e.$implicit,s=e.index,r=d(2);a(1),p("ngTemplateOutlet",r.dt.frozenExpandedRowTemplate)("ngTemplateOutletContext",qn(2,U2,n,r.d
t.paginator?r.dt.first+s:s,r.columns,r.frozen))}}function
PG(t,i){if(1&t&&(_(0,LG,1,0,"ng-container",4),_(1,AG,2,7,"ng-container",0)),2&t){const
e=i.$implicit,n=i.index,s=d(2);p("ngTemplateOutlet",s.template)("ngTemplateOutletContext",Do(3,vd,e,s.dt.paginator?s.dt.first+n:n,s.columns,s.dt.isRowExpanded(e),"row"===s.dt.editMode&&s.dt.isRowEditing(e),s.frozen)),a(1),p("ngIf",s.dt.isRowExpanded(e))}}function
FG(t,i){if(1&t&&(de(0),_(1,PG,2,10,"ng-template",1),pe()),2&t){const
e=d();a(1),p("ngForOf",e.value)("ngForTrackBy",e.dt.rowTrackBy)}}function
NG(t,i){1&t&&Y(0)}const
z2=function(t,i){return{$implicit:t,frozen:i}};function
VG(t,i){if(1&t&&(de(0),_(1,NG,1,0,"ng-container",4),pe()),2&t){const
e=d();a(1),p("ngTemplateOutlet",e.dt.loadingBodyTemplate)("ngTemplateOutletContext",Ge(2,z2,e.columns,e.frozen))}}function
BG(t,i){1&t&&Y(0)}function
HG(t,i){if(1&t&&(de(0),_(1,BG,1,0,"ng-container",4),pe()),2&t){const
e=d();a(1),p("ngTemplateOutlet",e.dt.emptyMessageTemplate)("ngTemplateOutletC
ontext",Ge(2,z2,e.columns,e.frozen))}}function
qG(t,i){if(1&t&&(l(0,"span",2),g(1),c()),2&t){const
e=d();a(1),S(e.getBadgeValue())}}const
GG=function(t,i,e){return{"pi-sort-amount-up-alt":t,"pi-sort-amount-down":i,"pi-sort-alt":e}};function
UG(t,i){1&t&&Y(0)}function
zG(t,i){if(1&t&&(de(0),_(1,UG,1,0,"ng-container",1),pe()),2&t){const
e=d();a(1),p("ngTemplateOutlet",e.inputTemplate)}}function
jG(t,i){1&t&&Y(0)}function
$G(t,i){if(1&t&&(de(0),_(1,jG,1,0,"ng-container",1),pe()),2&t){const
e=d();a(1),p("ngTemplateOutlet",e.outputTemplate)}}function
WG(t,i){1&t&&Y(0)}const
KG=function(t,i){return{$implicit:t,filterCallback:i}};function
QG(t,i){if(1&t&&(de(0),_(1,WG,1,0,"ng-container",2),pe()),2&t){const
e=d();a(1),p("ngTemplateOutlet",e.filterTemplate)("ngTemplateOutletContext",Ge(2,KG,e.filterConstraint.value,e.filterCallback))}}function
JG(t,i){if(1&t){const
e=I();l(0,"input",8),C("input",function(s){return
v(e),d(2).onModelChange(s.target.value)})("keydown.enter",function(s){return v
(e),d(2).onTextInputEnterKeyDown(s)}),c()}if(2&t){const
e=d(2);p("value",null==e.filterConstraint?null:e.filterConstraint.value),ie("placeholder",e.placeholder)}}function
YG(t,i){if(1&t){const
e=I();l(0,"p-inputNumber",9),C("ngModelChange",function(s){return
v(e),d(2).onModelChange(s)})("onKeyDown",function(s){return
v(e),d(2).onNumericInputKeyDown(s)}),c()}if(2&t){const
e=d(2);p("ngModel",null==e.filterConstraint?null:e.filterConstraint.value)("showButtons",!0)("minFractionDigits",e.minFractionDigits)("maxFractionDigits",e.maxFractionDigits)("prefix",e.prefix)("suffix",e.suffix)("placeholder",e.placeholder)("mode",e.currency?"currency":"decimal")("locale",e.locale)("localeMatcher",e.localeMatcher)("currency",e.currency)("currencyDisplay",e.currencyDisplay)("useGrouping",e.useGrouping)}}function
ZG(t,i){if(1&t){const
e=I();l(0,"p-triStateCheckbox",10),C("ngModelChange",function(s){return
v(e),d(2).onModelChange(s)}),c()}if(2&t){const
e=d(2);p("ngModel",null==e.filterConstraint?null:
e.filterConstraint.value)}}function XG(t,i){if(1&t){const
e=I();l(0,"p-calendar",11),C("ngModelChange",function(s){return
v(e),d(2).onModelChange(s)}),c()}if(2&t){const
e=d(2);p("placeholder",e.placeholder)("ngModel",null==e.filterConstraint?null:e.filterConstraint.value)}}function
eU(t,i){1&t&&(de(0,3),_(1,JG,1,2,"input",4),_(2,YG,1,13,"p-inputNumber",5),_(3,ZG,1,1,"p-triStateCheckbox",6),_(4,XG,1,2,"p-calendar",7),pe()),2&t&&(p("ngSwitch",d().type),a(1),p("ngSwitchCase","text"),a(1),p("ngSwitchCase","numeric"),a(1),p("ngSwitchCase","boolean"),a(1),p("ngSwitchCase","date"))}const
tU=["icon"];function
nU(t,i){if(1&t&&k(0,"p-columnFilterFormElement",5),2&t){const
e=d();p("type",e.type)("field",e.field)("filterConstraint",e.dt.filters[e.field])("filterTemplate",e.filterTemplate)("placeholder",e.placeholder)("minFractionDigits",e.minFractionDigits)("maxFractionDigits",e.maxFractionDigits)("prefix",e.prefix)("suffix",e.suffix)("locale",e.locale)("localeMatcher",e.localeMatcher)("currenc
y",e.currency)("currencyDisplay",e.currencyDisplay)("useGrouping",e.useGrouping)}}const
iU=function(t,i){return{"p-column-filter-menu-button-open":t,"p-column-filter-menu-button-active":i}};function
sU(t,i){if(1&t){const
e=I();l(0,"button",6,7),C("click",function(){return
v(e),d().toggleMenu()})("keydown",function(s){return
v(e),d().onToggleButtonKeyDown(s)}),k(2,"span",8),c()}if(2&t){const
e=d();p("ngClass",Ge(2,iU,e.overlayVisible,e.hasFilter())),ie("aria-expanded",e.overlayVisible)}}const
rU=function(t){return{"p-hidden-space":t}};function oU(t,i){if(1&t){const
e=I();l(0,"button",9,7),C("click",function(){return
v(e),d().clearFilter()}),k(2,"span",10),c()}if(2&t){const
e=d();p("ngClass",U(1,rU,!e.hasRowFilter()))}}function
aU(t,i){1&t&&Y(0)}const
lU=function(t){return{"p-highlight":t}};function cU(t,i){if(1&t){const
e=I();l(0,"li",19),C("click",function(){const r=v(e).$implicit;return
d(3).onRowMatchModeChange(r.value)})("keydown",function(s){return
v(e),d(3).onRowMatchModeKeyDow
n(s)})("keydown.enter",function(){const r=v(e).$implicit;return
d(3).onRowMatchModeChange(r.value)}),g(1),c()}if(2&t){const
e=i.$implicit,n=i.index,s=d(3);p("ngClass",U(3,lU,s.isRowMatchModeSelected(e.value))),ie("tabindex",0===n?"0":null),a(1),S(e.label)}}function
uU(t,i){if(1&t){const
e=I();l(0,"ul",15),_(1,cU,2,5,"li",16),k(2,"li",17),l(3,"li",18),C("click",function(){return
v(e),d(2).onRowClearItemClick()})("keydown",function(s){return
v(e),d(2).onRowMatchModeKeyDown(s)})("keydown.enter",function(){return
v(e),d(2).onRowClearItemClick()}),g(4),c()()}if(2&t){const
e=d(2);a(1),p("ngForOf",e.matchModes),a(3),S(e.noFilterLabel)}}function
dU(t,i){if(1&t){const
e=I();l(0,"div",27)(1,"p-dropdown",28),C("ngModelChange",function(s){return
v(e),d(3).onOperatorChange(s)}),c()()}if(2&t){const
e=d(3);a(1),p("options",e.operatorOptions)("ngModel",e.operator)}}function
pU(t,i){if(1&t){const
e=I();l(0,"p-dropdown",33),C("ngModelChange",function(s){v(e);const
r=d().$implicit;return d(3).onMenuMa
tchModeChange(s,r)}),c()}if(2&t){const
e=d().$implicit;p("options",d(3).matchModes)("ngModel",e.matchMode)}}function
hU(t,i){if(1&t){const
e=I();l(0,"button",34),C("click",function(){v(e);const
s=d().$implicit;return
d(3).removeConstraint(s)}),c()}2&t&&p("label",d(4).removeRuleButtonLabel)}function
mU(t,i){if(1&t&&(l(0,"div",29),_(1,pU,1,2,"p-dropdown",30),k(2,"p-columnFilterFormElement",31),l(3,"div"),_(4,hU,1,1,"button",32),c()()),2&t){const
e=i.$implicit,n=d(3);a(1),p("ngIf",n.showMatchModes&&n.matchModes),a(1),p("type",n.type)("field",n.field)("filterConstraint",e)("filterTemplate",n.filterTemplate)("placeholder",n.placeholder)("minFractionDigits",n.minFractionDigits)("maxFractionDigits",n.maxFractionDigits)("prefix",n.prefix)("suffix",n.suffix)("locale",n.locale)("localeMatcher",n.localeMatcher)("currency",n.currency)("currencyDisplay",n.currencyDisplay)("useGrouping",n.useGrouping),a(2),p("ngIf",n.showRemoveIcon)}}function
fU(t,i){if(1&t){const e=I();l(0,"div",35)(1,"button",3
6),C("click",function(){return
v(e),d(3).addConstraint()}),c()()}if(2&t){const
e=d(3);a(1),p("label",e.addRuleButtonLabel)}}function gU(t,i){if(1&t){const
e=I();l(0,"button",37),C("click",function(){return
v(e),d(3).clearFilter()}),c()}2&t&&p("label",d(3).clearButtonLabel)}function
_U(t,i){if(1&t){const
e=I();l(0,"button",38),C("click",function(){return
v(e),d(3).applyFilter()}),c()}2&t&&p("label",d(3).applyButtonLabel)}function
bU(t,i){if(1&t&&(_(0,dU,2,2,"div",20),l(1,"div",21),_(2,mU,5,16,"div",22),c(),_(3,fU,2,1,"div",23),l(4,"div",24),_(5,gU,1,1,"button",25),_(6,_U,1,1,"button",26),c()),2&t){const
e=d(2);p("ngIf",e.isShowOperator),a(2),p("ngForOf",e.fieldConstraints),a(1),p("ngIf",e.isShowAddConstraint),a(2),p("ngIf",e.showClearButton),a(1),p("ngIf",e.showApplyButton)}}function
vU(t,i){1&t&&Y(0)}const CU=function(t){return{"p-column-filter-overlay
p-component p-fluid":!0,"p-column-filter-overlay-menu":t}};function
yU(t,i){if(1&t){const e=I();l(0,"div",11),C("click",function(){r
eturn v(e),d().onContentClick()})("(a)overlayAnimation.start",function(s){return
v(e),d().onOverlayAnimationStart(s)})("(a)overlayAnimation.done",function(s){return
v(e),d().onOverlayAnimationEnd(s)})("keydown.escape",function(){return
v(e),d().onEscape()}),_(1,aU,1,0,"ng-container",12),_(2,uU,5,2,"ul",13),_(3,bU,7,5,"ng-template",null,14,we),_(5,vU,1,0,"ng-container",12),c()}if(2&t){const
e=F(4),n=d();p("ngClass",U(8,CU,"menu"===n.display))("@overlayAnimation","visible"),a(1),p("ngTemplateOutlet",n.headerTemplate)("ngTemplateOutletContext",U(10,Zs,n.field)),a(1),p("ngIf","row"===n.display)("ngIfElse",e),a(3),p("ngTemplateOutlet",n.footerTemplate)("ngTemplateOutletContext",U(12,Zs,n.field))}}const
wU=function(t,i){return{"p-column-filter-row":t,"p-column-filter-menu":i}};let
Cd=(()=>{class t{constructor(){this.sortSource=new ct,this.selectionSource=new
ct,this.contextMenuSource=new ct,this.valueSource=new ct,this.totalRecordsSource=new
ct,this.columnsSource=new ct,this.resetSource=new c
t,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=X({token:t,factory:t.\u0275fac}),t})(),Dn=(()=>{class
t{constructor(e,n,s,r,o,u){this.el=e,this.zone=n,this.tableService=s,this.cd=r,this.filterService=o,this.overlayService=u,this.pageLinks=5,this.alwaysShowPaginator=!0,thi
s.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
H,this.selectionChange=new H,this.contextMenuSelectionChange=new
H,this.contextMenuSelectionMode="separate",this.rowTrackBy=(h,b)=>b,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
H,t
his.onRowUnselect=new H,this.onPage=new H,this.onSort=new H,this.onFilter=new
H,this.onLazyLoad=new H,this.onRowExpand=new H,this.onRowCollapse=new
H,this.onContextMenuSelect=new H,this.onColResize=new H,this.onColReorder=new
H,this.onRowReorder=new H,this.onEditInit=new H,this.onEditComplete=new
H,this.onEditCancel=new H,this.onHeaderCheckboxToggle=new H,this.sortFunction=new
H,this.firstChange=new H,this.rowsChange=new H,this.onStateSave=new
H,this.onStateRestore=new
H,this._value=[],this._totalRecords=0,this._first=0,this.selectionKeys={},this._sortOrder=1,this._selectAll=null,this.columnResizing=!1,this.rowGroupHeaderStyleObject={},this.id=pl(),this.virtualScrollInitialized=!1}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.forEac
h(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.frozenFooterTemplate=e.template;break;case"f
rozencolgroup":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():"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.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)&&this.sortMultiple()),e.selecti
on&&(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(Z.resolveFieldData(e,this.dataKey))]=1;else
this.selectionKeys[String(Z.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=null,this.scrollable&&this.res
etScrollTop()}sort(e){let
n=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
s=n.metaKey||n.ctrlKey,r=this.getSortMeta(e.field);r?s?r.order=-1*r.order:(this._multiSortMeta=[{field:e.field,order:-1*r.order}],this.resetPageOnSort&&(this._first=0,this.firstChange.emit(this._first),this.scrollable&&this.resetScrollTop())):((!s||!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,n=this.sortField?this.sortOrder:this.groupRowsByOrder;if(this.groupRowsBy&&this.so
rtField&&this.groupRowsBy!==this.sortField)return
this._multiSortMeta=[this.getGroupRowsMeta(),{field:this.sortField,order:this.sortOrder}],void
this.sortMultiple();if(e&&n){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:n}):(this.value.sort((r,o)=>{let
u=Z.resolveFieldData(r,e),h=Z.resolveFieldData(o,e),b=null;return
b=null==u&&null!=h?-1:null!=u&&null==h?1:null==u&&null==h?0:"string"==typeof
u&&"string"==typeof
h?u.localeCompare(h):u<h?-1:u>h?1:0,n*b}),this._value=[...this.value]),this.hasFilter()&&this._filter());let
s={field:e,order:n};this.onSort.emit(s),this.tableService.onSort(s)}}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,n)=>this.multisortField(e,n,this.multiSortMeta,0)),this._value=[...this.value]),this.hasFilter()&&this._filter()),this.onSort.emit({multisortmeta:this.multiSortMeta}),this.tableService.onSort(this.multiSortMeta))}multisortField(e,n,s,r){let
o=Z.resolveFieldData(e,s[r].field),u=Z.resolveFieldData(n,s[r].field),h=null;if(null==o&&null!=u)h=-1;else
if(null!=o&&null==u)h=1;else if(null==o&&null==u)h=0;else
if("string"==typeof o||o instanceof
String){if(o.localeCompare&&o!=u)return s[r].order*o.localeCompare(u)}else
h=o<u?-1:1;return
o==u?s.length-1>r?this.multisortField(e,n,s,r+1):0:s[r].order*h}getSortMeta(e){if(this.multiSortMeta&&this.multiSortMeta.length)for(let
n=0;n<this.multiSortMeta.length;n++)if(this.multiSortMeta[n].field===e)return
this.multiSortMeta[n];return null}isSorted(
e){if("single"===this.sortMode)return
this.sortField&&this.sortField===e;if("multiple"===this.sortMode){let
n=!1;if(this.multiSortMeta)for(let
s=0;s<this.multiSortMeta.length;s++)if(this.multiSortMeta[s].field==e){n=!0;break}return
n}}handleRowClick(e){let
n=e.originalEvent.target,s=n.nodeName,r=n.parentElement&&n.parentElement.nodeName;if("INPUT"!=s&&"BUTTON"!=s&&"A"!=s&&"INPUT"!=r&&"BUTTON"!=r&&"A"!=r&&!R.hasClass(e.originalEvent.target,"p-clickable")){if(this.selectionMode){let
o=e.rowData,u=e.rowIndex;if(this.preventSelectionSetterPropagation=!0,this.isMultipleSelectionMode()&&e.originalEvent.shiftKey&&null!=this.anchorRowIndex)R.clearSelection(),null!=this.rangeRowIndex&&this.clearSelectionRange(e.originalEvent),this.rangeRowIndex=u,this.selectRange(e.originalEvent,u);else{let
h=this.isSelected(o);if(!h&&!this.isRowSelectable(o,u))return;let
b=!this.rowTouched&&this.metaKeySelection,y=this.dataKey?String(Z.resolveFieldData(o,this.dataKey)):null;if(this.anchorRowIndex=u,this.ran
geRowIndex=u,b){let
w=e.originalEvent.metaKey||e.originalEvent.ctrlKey;if(h&&w){if(this.isSingleSelectionMode())this._selection=null,this.selectionKeys={},this.selectionChange.emit(null);else{let
M=this.findIndexInSelection(o);this._selection=this.selection.filter((E,L)=>L!=M),this.selectionChange.emit(this.selection),y&&delete
this.selectionKeys[y]}this.onRowUnselect.emit({originalEvent:e.originalEvent,data:o,type:"row"})}else
this.isSingleSelectionMode()?(this._selection=o,this.selectionChange.emit(o),y&&(this.selectionKeys={},this.selectionKeys[y]=1)):this.isMultipleSelectionMode()&&(w?this._selection=this.selection||[]:(this._selection=[],this.selectionKeys={}),this._selection=[...this.selection,o],this.selectionChange.emit(this.selection),y&&(this.selectionKeys[y]=1)),this.onRowSelect.emit({originalEvent:e.originalEvent,data:o,type:"row",index:u})}else
if("single"===this.selectionMode)h?(this._selection=null,this.selectionKeys={},this.selectionChange.emit(this.selection),this.o
nRowUnselect.emit({originalEvent:e.originalEvent,data:o,type:"row",index:u})):(this._selection=o,this.selectionChange.emit(this.selection),this.onRowSelect.emit({originalEvent:e.originalEvent,data:o,type:"row",index:u}),y&&(this.selectionKeys={},this.selectionKeys[y]=1));else
if("multiple"===this.selectionMode)if(h){let
w=this.findIndexInSelection(o);this._selection=this.selection.filter((M,E)=>E!=w),this.selectionChange.emit(this.selection),this.onRowUnselect.emit({originalEvent:e.originalEvent,data:o,type:"row",index:u}),y&&delete
this.selectionKeys[y]}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:u}),y&&(this.selectionKeys[y]=1)}this.tableService.onSelectionChange(),this.isStateful()&&this.saveState()}this.rowTouched=!1}}handleRowTouchEnd(e){this.rowTouched=!0}handleRowRightClick(e){if(this.contextMenu){const
n=e.rowData,s=e.rowIndex;if("separate"
===this.contextMenuSelectionMode)this.contextMenuSelection=n,this.contextMenuSelectionChange.emit(n),this.onContextMenuSelect.emit({originalEvent:e.originalEvent,data:n,index:e.rowIndex}),this.contextMenu.show(e.originalEvent),this.tableService.onContextMenu(n);else
if("joint"===this.contextMenuSelectionMode){this.preventSelectionSetterPropagation=!0;let
r=this.isSelected(n),o=this.dataKey?String(Z.resolveFieldData(n,this.dataKey)):null;if(!r){if(!this.isRowSelectable(n,s))return;this.isSingleSelectionMode()?(this.selection=n,this.selectionChange.emit(n),o&&(this.selectionKeys={},this.selectionKeys[o]=1)):this.isMultipleSelectionMode()&&(this._selection=this.selection?[...this.selection,n]:[n],this.selectionChange.emit(this.selection),o&&(this.selectionKeys[o]=1))}this.tableService.onSelectionChange(),this.contextMenu.show(e.originalEvent),this.onContextMenuSelect.emit({originalEvent:e,data:n,index:e.rowIndex})}}}selectRange(e,n){let
s,r;this.anchorRowIndex>n?(s=n,r=this.anchorRowIn
dex):this.anchorRowIndex<n?(s=this.anchorRowIndex,r=n):(s=n,r=n),this.lazy&&this.paginator&&(s-=this.first,r-=this.first);let
o=[];for(let u=s;u<=r;u++){let
h=this.filteredValue?this.filteredValue[u]:this.value[u];if(!this.isSelected(h)){if(!this.isRowSelectable(h,n))continue;o.push(h),this._selection=[...this.selection,h];let
b=this.dataKey?String(Z.resolveFieldData(h,this.dataKey)):null;b&&(this.selectionKeys[b]=1)}}this.selectionChange.emit(this.selection),this.onRowSelect.emit({originalEvent:e,data:o,type:"row"})}clearSelectionRange(e){let
n,s;this.rangeRowIndex>this.anchorRowIndex?(n=this.anchorRowIndex,s=this.rangeRowIndex):this.rangeRowIndex<this.anchorRowIndex?(n=this.rangeRowIndex,s=this.anchorRowIndex):(n=this.rangeRowIndex,s=this.rangeRowIndex);for(let
r=n;r<=s;r++){let
o=this.value[r],u=this.findIndexInSelection(o);this._selection=this.selection.filter((b,y)=>y!=u);let
h=this.dataKey?String(Z.resolveFieldData(o,this.dataKey)):null;h&&delete
this.selectionKeys[h],this.onR
owUnselect.emit({originalEvent:e,data:o,type:"row"})}}isSelected(e){return!(!e||!this.selection)&&(this.dataKey?void
0!==this.selectionKeys[Z.resolveFieldData(e,this.dataKey)]:this.selection instanceof
Array?this.findIndexInSelection(e)>-1:this.equals(e,this.selection))}findIndexInSelection(e){let
n=-1;if(this.selection&&this.selection.length)for(let
s=0;s<this.selection.length;s++)if(this.equals(e,this.selection[s])){n=s;break}return
n}isRowSelectable(e,n){return!(this.rowSelectable&&!this.rowSelectable({data:e,index:n}))}toggleRowWithRadio(e,n){if(this.preventSelectionSetterPropagation=!0,this.selection!=n){if(!this.isRowSelectable(n,e.rowIndex))return;this._selection=n,this.selectionChange.emit(this.selection),this.onRowSelect.emit({originalEvent:e.originalEvent,index:e.rowIndex,data:n,type:"radiobutton"}),this.dataKey&&(this.selectionKeys={},this.selectionKeys[String(Z.resolveFieldData(n,this.dataKey))]=1)}else
this._selection=null,this.selectionChange.emit(this.selection),this.
onRowUnselect.emit({originalEvent:e.originalEvent,index:e.rowIndex,data:n,type:"radiobutton"});this.tableService.onSelectionChange(),this.isStateful()&&this.saveState()}toggleRowWithCheckbox(e,n){this.selection=this.selection||[];let
s=this.isSelected(n),r=this.dataKey?String(Z.resolveFieldData(n,this.dataKey)):null;if(this.preventSelectionSetterPropagation=!0,s){let
o=this.findIndexInSelection(n);this._selection=this.selection.filter((u,h)=>h!=o),this.selectionChange.emit(this.selection),this.onRowUnselect.emit({originalEvent:e.originalEvent,index:e.rowIndex,data:n,type:"checkbox"}),r&&delete
this.selectionKeys[r]}else{if(!this.isRowSelectable(n,e.rowIndex))return;this._selection=this.selection?[...this.selection,n]:[n],this.selectionChange.emit(this.selection),this.onRowSelect.emit({originalEvent:e.originalEvent,index:e.rowIndex,data:n,type:"checkbox"}),r&&(this.selectionKeys[r]=1)}this.tableService.onSelectionChange(),this.isStateful()&&this.saveState()}toggleRowsWithCheckbox(e,n
){if(null!==this._selectAll)this.selectAllChange.emit({originalEvent:e,checked:n});else{const
s=this.selectionPageOnly?this.dataToRender:this.filteredValue||this.value||[];let
r=this.selectionPageOnly&&this._selection?this._selection.filter(o=>!s.some(u=>this.equals(o,u))):[];n&&(r=this.frozenValue?[...r,...this.frozenValue,...s]:[...r,...s],r=this.rowSelectable?r.filter((o,u)=>this.rowSelectable({data:o,index:u})):r),this._selection=r,this.preventSelectionSetterPropagation=!0,this.updateSelectionKeys(),this.selectionChange.emit(this._selection),this.tableService.onSelectionChange(),this.onHeaderCheckboxToggle.emit({originalEvent:e,checked:n}),this.isStateful()&&this.saveState()}}equals(e,n){return"equals"===this.compareSelectionBy?e===n:Z.equals(e,n,this.dataKey)}filter(e,n,s){this.filterTimeout&&clearTimeout(this.filterTimeout),this.isFilterBlank(e)?this.filters[n]&&delete
this.filters[n]:this.filters[n]={value:e,matchMode:s},this.filterTimeout=setTimeout(()=>{this._filter(),this.
filterTimeout=null},this.filterDelay),this.anchorRowIndex=null}filterGlobal(e,n){this.filter(e,"global",n)}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
n=0;n<this.value.length;n++){let u,s=!0,r=!1,o=!1;for(let h in
this.filters)if(this.filters.hasOwnProperty(h)&&"global"!==h){o=!0;let
b=h,y=this.filters[b];if(Array.isArray(y)){for(let w of
y)if(s=this.executeLocalFilter(b,this.value[n],w),w.operator===ml.OR&&s||w.operator===ml.AND&&!s)break}else
s=this.executeLocalFilter(b,this.value[n],y);if(!s)b
reak}if(this.filters.global&&!r&&e)for(let
h=0;h<e.length&&(r=this.filterService.filters[this.filters.global.matchMode](Z.resolveFieldData(this.value[n],e[h].field||e[h]),this.filters.global.value,this.filterLocale),!r);h++);u=this.filters.global?o?o&&s&&r:r:o&&s,u&&this.filteredValue.push(this.value[n])}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,n,s){let
r=s.value,o=s.matchMode||_t.STARTS_WITH,u=Z.resolveFieldData(n,e);return this.f
ilterService.filters[o](u,r,this.filterLocale)}hasFilter(){let e=!0;for(let n in
this.filters)if(this.filters.hasOwnProperty(n)){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()}getExportHeader(e){return
e[this.exportHeader]||e.header||e.field}exportCSV(e){let
n,s="",r=this.columns;e&&e.selectionOnly?n=this.selection||[]:(n=this.filteredValue||this.value,this.f
rozenValue&&(n=n?[...this.frozenValue,...n]:this.frozenValue));for(let
h=0;h<r.length;h++){let
b=r[h];!1!==b.exportable&&b.field&&(s+='"'+this.getExportHeader(b)+'"',h<r.length-1&&(s+=this.csvSeparator))}n.forEach((h,b)=>{s+="\n";for(let
y=0;y<r.length;y++){let w=r[y];if(!1!==w.exportable&&w.field){let
M=Z.resolveFieldData(h,w.field);M=null!=M?this.exportFunction?this.exportFunction({data:M,field:w.field}):String(M).replace(/"/g,'""'):"",s+='"'+M+'"',y<r.length-1&&(s+=this.csvSeparator)}}});let
o=new
Blob([s],{type:"text/csv;charset=utf-8;"}),u=document.createElement("a");u.style.display="none",document.body.appendChild(u),void
0!==u.download?(u.setAttribute("href",URL.createObjectURL(o)),u.setAttribute("download",this.exportFilename+".csv"),u.click()):(s="data:text/csv;charset=utf-8,"+s,window.open(encodeURI(s))),document.body.removeChild(u)}resetScrollTop(){this.virtualScroll?this.scrollToVirtualIndex(0):this.scrollTo({top:0})}scrollToVirtualIndex(e){this.virtualScrollBody&&this.v
irtualScrollBody.scrollToIndex(e)}onScrollIndexChange(e){this.lazy&&(this.virtualScrollTimeout&&clearTimeout(this.virtualScrollTimeout),this.virtualScrollTimeout=setTimeout(()=>{let
n=Math.floor(e/this.rows),s=0===n?0:(n-1)*this.rows,r=0===n?2*this.rows:3*this.rows;n!==this.virtualPage&&(this.virtualPage=n,this.lazyLoadOnInit||this.virtualScrollInitialized?this.onLazyLoad.emit({first:s,rows:r,sortField:this.sortField,sortOrder:this.sortOrder,filters:this.filters,globalFilter:this.filters&&this.filters.global?this.filters.global.value:null,multiSortMeta:this.multiSortMeta}):this.virtualScrollInitialized=!0)},this.virtualScrollDelay))}scrollTo(e){this.virtualScrollBody?this.virtualScrollBody.scrollTo(e):this.wrapperViewChild&&this.wrapperViewChild.nativeElement&&(this.wrapperViewChild.nativeElement.scrollTo?this.wrapperViewChild.nativeElement.scrollTo(e):(this.wrapperViewChild.nativeElement.scrollLeft=e.left,this.wrapperViewChild.nativeElement.scrollTop=e.top))}updateEditingCell(e,n,s
,r){this.editingCell=e,this.editingCellData=n,this.editingCellField=s,this.editingCellRowIndex=r,this.bindDocumentEditListener()}isEditingCellValid(){return
this.editingCell&&0===R.find(this.editingCell,".ng-invalid.ng-dirty").length}bindDocumentEditListener(){this.documentEditListener||(this.documentEditListener=e=>{this.editingCell&&!this.selfClick&&this.isEditingCellValid()&&(R.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.do
cumentEditListener=null)}initRowEdit(e){let
n=String(Z.resolveFieldData(e,this.dataKey));this.editingRowKeys[n]=!0}saveRowEdit(e,n){if(0===R.find(n,".ng-invalid.ng-dirty").length){let
s=String(Z.resolveFieldData(e,this.dataKey));delete
this.editingRowKeys[s]}}cancelRowEdit(e){let
n=String(Z.resolveFieldData(e,this.dataKey));delete
this.editingRowKeys[n]}toggleRow(e,n){if(!this.dataKey)throw new Error("dataKey must
be defined to use row expansion");let
s=String(Z.resolveFieldData(e,this.dataKey));null!=this.expandedRowKeys[s]?(delete
this.expandedRowKeys[s],this.onRowCollapse.emit({originalEvent:n,data:e})):("single"===this.rowExpandMode&&(this.expandedRowKeys={}),this.expandedRowKeys[s]=!0,this.onRowExpand.emit({originalEvent:n,data:e})),n&&n.preventDefault(),this.isStateful()&&this.saveState()}isRowExpanded(e){return!0===this.expandedRowKeys[String(Z.resolveFieldData(e,this.dataKey))]}isRowEditing(e){return!0===this.editingRowKeys[String(Z.resolveFieldData(e,this.dataKey))]}isSingl
eSelectionMode(){return"single"===this.selectionMode}isMultipleSelectionMode(){return"multiple"===this.selectionMode}onColumnResizeBegin(e){let
n=R.getOffset(this.containerViewChild.nativeElement).left;this.resizeColumnElement=e.target.parentElement,this.columnResizing=!0,this.lastResizerHelperX=e.pageX-n+this.containerViewChild.nativeElement.scrollLeft,this.onColumnResize(e),e.preventDefault()}onColumnResize(e){let
n=R.getOffset(this.containerViewChild.nativeElement).left;R.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-n+this.containerViewChild.nativeElement.scrollLeft+"px",this.resizeHelperViewChild.nativeElement.style.display="block"}onColumnResizeEnd(){let
e=this.resizeHelperViewChild.nativeElement.offsetLeft-this.lastResizerHelperX
,s=this.resizeColumnElement.offsetWidth+e;if(s>=(this.resizeColumnElement.style.minWidth||15)){if("fit"===this.columnResizeMode){let
u=this.resizeColumnElement.nextElementSibling.offsetWidth-e;s>15&&u>15&&this.resizeTableCells(s,u)}else
if("expand"===this.columnResizeMode){let
o=this.tableViewChild.nativeElement.offsetWidth+e;this.tableViewChild.nativeElement.style.width=o+"px",this.tableViewChild.nativeElement.style.minWidth=o+"px",this.resizeTableCells(s,null)}this.onColResize.emit({element:this.resizeColumnElement,delta:e}),this.isStateful()&&this.saveState()}this.resizeHelperViewChild.nativeElement.style.display="none",R.removeClass(this.containerViewChild.nativeElement,"p-unselectable-text")}resizeTableCells(e,n){let
s=R.index(this.resizeColumnElement),r=[];const
o=R.findSingle(this.containerViewChild.nativeElement,".p-datatable-thead");R.find(o,"tr
>
th").forEach(b=>r.push(R.getOuterWidth(b))),this.destroyStyleElement(),this.createStyleElement();let
h="";r.forEach((b,y)=>{let
w=y===s?e:n&&y===s+1?n:b;h+=`\n #${this.id} .p-datatable-thead
> tr > th:nth-child(${y+1}),\n #${this.id} .p-datatable-tbody > tr
> td:nth-child(${y+1}),\n #${this.id} .p-datatable-tfoot > tr >
td:nth-child(${y+1}) {\n ${this.scrollable?`flex: 1 1 ${w}px
!important`:`width: ${w}px !important`}\n }\n
`}),this.styleElement.innerHTML=h}onColumnDragStart(e,n){this.reorderIconWidth=R.getHiddenElementOuterWidth(this.reorderIndicatorUpViewChild.nativeElement),this.reorderIconHeight=R.getHiddenElementOuterHeight(this.reorderIndicatorDownViewChild.nativeElement),this.draggedColumn=n,e.dataTransfer.setData("text","b")}onColumnDragEnter(e,n){if(this.reorderableColumns&&this.draggedColumn&&n){e.preventDefault();let
s=R.getOffset(this.containerViewChild.nativeElement),r=R.getOffset(n);if(this.draggedColumn!=n){let
o=R.indexWithinGroup(this.draggedColumn,"preorderablecolumn"),u=R.indexWithinGroup(n,"preorder
ablecolumn"),h=r.left-s.left,y=r.left+n.offsetWidth/2;this.reorderIndicatorUpViewChild.nativeElement.style.top=r.top-s.top-(this.reorderIconHeight-1)+"px",this.reorderIndicatorDownViewChild.nativeElement.style.top=r.top-s.top+n.offsetHeight+"px",e.pageX>y?(this.reorderIndicatorUpViewChild.nativeElement.style.left=h+n.offsetWidth-Math.ceil(this.reorderIconWidth/2)+"px",this.reorderIndicatorDownViewChild.nativeElement.style.left=h+n.offsetWidth-Math.ceil(this.reorderIconWidth/2)+"px",this.dropPosition=1):(this.reorderIndicatorUpViewChild.nativeElement.style.left=h-Math.ceil(this.reorderIconWidth/2)+"px",this.reorderIndicatorDownViewChild.nativeElement.style.left=h-Math.ceil(this.reorderIconWidth/2)+"px",this.dropPosition=-1),u-o==1&&-1===this.dropPosition||u-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,n){if(e.preventDefault(),this.draggedColumn){let
s=R.indexWithinGroup(this.draggedColumn,"preorderablecolumn"),r=R.indexWithinGroup(n,"preorderablecolumn"),o=s!=r;o&&(r-s==1&&-1===this.dropPosition||s-r==1&&1===this.dropPosition)&&(o=!1),o&&r<s&&1===this.dropPosition&&(r+=1),o&&r>s&&-1===this.dropPosition&&(r-=1),o&&(Z.reorderArray(this.columns,s,r),this.onColReorder.emit({dragIndex:s,dropIndex:r,columns:this.columns}),this.isStateful()&&this.zone.runOutsideAngular(()=>{setTimeout(()=>{this.saveState()})})),this.reorderIndicatorUpViewChild.nativeElement.style.display="none",this.reorderIndicatorDownViewChild.nativeElement.style.d
isplay="none",this.draggedColumn.draggable=!1,this.draggedColumn=null,this.dropPosition=null}}onRowDragStart(e,n){this.rowDragging=!0,this.draggedRowIndex=n,e.dataTransfer.setData("text","b")}onRowDragOver(e,n,s){if(this.rowDragging&&this.draggedRowIndex!==n){let
r=R.getOffset(s).top+R.getWindowScrollTop(),o=e.pageY,u=r+R.getOuterHeight(s)/2,h=s.previousElementSibling;o<u?(R.removeClass(s,"p-datatable-dragpoint-bottom"),this.droppedRowIndex=n,h?R.addClass(h,"p-datatable-dragpoint-bottom"):R.addClass(s,"p-datatable-dragpoint-top")):(h?R.removeClass(h,"p-datatable-dragpoint-bottom"):R.addClass(s,"p-datatable-dragpoint-top"),this.droppedRowIndex=n+1,R.addClass(s,"p-datatable-dragpoint-bottom"))}}onRowDragLeave(e,n){let
s=n.previousElementSibling;s&&R.removeClass(s,"p-datatable-dragpoint-bottom"),R.removeClass(n,"p-datatable-dragpoint-bottom"),R.removeClass(n,"p-datatable-dragpoint-top")}onRowDragEnd(e){this.rowDragging=!1,this.draggedRowIndex=null,this.droppedRowIndex=null}onRowDrop(e,
n){if(null!=this.droppedRowIndex){let
s=this.draggedRowIndex>this.droppedRowIndex?this.droppedRowIndex:0===this.droppedRowIndex?0:this.droppedRowIndex-1;Z.reorderArray(this.value,this.draggedRowIndex,s),this.virtualScroll&&(this._value=[...this._value]),this.onRowReorder.emit({dragIndex:this.draggedRowIndex,dropIndex:s})}this.onRowDragLeave(e,n),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
n={};this.paginator&&(n.first=this.first,n.rows=this.rows),this.sortField&&(n.sortField=this.sortField,n.sortOrder=this.sortOrder),this.multiSortMeta&&(
n.multiSortMeta=this.multiSortMeta),this.hasFilter()&&(n.filters=this.filters),this.resizableColumns&&this.saveColumnWidths(n),this.reorderableColumns&&this.saveColumnOrder(n),this.selection&&(n.selection=this.selection),Object.keys(this.expandedRowKeys).length&&(n.expandedRowKeys=this.expandedRowKeys),e.setItem(this.stateKey,JSON.stringify(n)),this.onStateSave.emit(n)}clearState(){const
e=this.getStorage();this.stateKey&&e.removeItem(this.stateKey)}restoreState(){const
n=this.getStorage().getItem(this.stateKey),s=/\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}.\d{3}Z/;if(n){let
o=JSON.parse(n,function(o,u){return"string"==typeof u&&s.test(u)?new
Date(u):u});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.filt
ers&&(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
n=[];R.find(this.containerViewChild.nativeElement,".p-datatable-thead > tr >
th").forEach(r=>n.push(R.getOuterWidth(r))),e.columnWidths=n.join(","),"expand"===this.columnResizeMode&&(e.tableWidth=R.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),Z.isNotEmpty(e))
{this.createStyleElement();let n="";e.forEach((s,r)=>{n+=`\n
#${this.id} .p-datatable-thead > tr > th:nth-child(${r+1}),\n
#${this.id} .p-datatable-tbody > tr > td:nth-child(${r+1}),\n
#${this.id} .p-datatable-tfoot > tr > td:nth-child(${r+1}) {\n
${this.scrollable?`flex: 1 1 ${s}px !important`:`width: ${s}px !important`}\n
}\n
`}),this.styleElement.innerHTML=n}}}saveColumnOrder(e){if(this.columns){let
n=[];this.columns.map(s=>{n.push(s.field||s.key)}),e.columnOrder=n}}restoreColumnOrder(){const
n=this.getStorage().getItem(this.stateKey);if(n){let r=JSON.parse(n).columnOrder;if(r){let
o=[];r.map(u=>{let
h=this.findColumnByKey(u);h&&o.push(h)}),this.columnOrderStateRestored=!0,this.columns=o}}}findColumnByKey(e){if(!this.columns)return
null;for(let n of this.columns)if(n.key===e||n.field===e)return
n}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.virtualScrollInitialized=null,this.virtualScrollSubscription&&this.virtualScrollSubscription.unsubscribe(),this.destroyStyleElement(),this.destroyResponsiveStyle()}}return
t.\u0275fac=function(e){return
new(e||t)(D(De),D(nt),D(Cd),D(rt),D(hl),D(Ks))},t.\u0275cmp=z({type:t,selectors:[["p-table"]],contentQueries:function(e,n,s){if(1&e&&st(s,ne,4),2&e){let
r;V(r=B())&&(n.templates=r)}},viewQuery:function(e,n){if(1&e&&(W(Eq,5),W(Rq,5),W(Lq,5),W(Oq,5),W(Aq,5),W(Pq
,5),W(Fq,5),W(Po,5)),2&e){let
s;V(s=B())&&(n.containerViewChild=s.first),V(s=B())&&(n.resizeHelperViewChild=s.first),V(s=B())&&(n.reorderIndicatorUpViewChild=s.first),V(s=B())&&(n.reorderIndicatorDownViewChild=s.first),V(s=B())&&(n.wrapperViewChild=s.first),V(s=B())&&(n.tableViewChild=s.first),V(s=B())&&(n.tableHeaderViewChild=s.first),V(s=B())&&(n.virtualScrollBody=s.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",sho
wJumpToPageInput:"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",filterLocale:"filterLocale",expandedRowKeys:"expandedRowKeys",editingRowKeys:"editingRowKeys",rowExpandMode:"rowExpandMode",scrollable:"scrollable",scrollDirection:"scrollDirection",rowGroupMode:"rowGroupMode",scrollHeight:"scrollHeight",virtualScroll:"virtualScroll",virtualScrollDelay:"virtualScrol
lDelay",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",exportHeader:"exportHeader",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",c
ontextMenuSelectionChange:"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:[Pe([Cd]),fn],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","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","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","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"],["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,n){1&e&&(l(0,"div",0,1),_(
2,Nq,2,2,"div",2),_(3,Bq,2,1,"div",3),_(4,Hq,1,17,"p-paginator",4),l(5,"div",5,6),_(7,$q,8,16,"table",7),_(8,Zq,10,21,"cdk-virtual-scroll-viewport",8),c(),_(9,Xq,1,17,"p-paginator",9),_(10,tG,2,1,"div",10),_(11,nG,2,0,"div",11),_(12,iG,2,0,"span",12),_(13,sG,2,0,"span",13),c()),2&e&&(me(n.styleClass),p("ngStyle",n.style)("ngClass",Hh(16,rG,[n.rowHover||n.selectionMode,n.autoLayout,n.resizableColumns,n.resizableColumns&&"fit"===n.columnResizeMode,n.scrollable,n.scrollable&&"vertical"===n.scrollDirection,n.scrollable&&"horizontal"===n.scrollDirection,n.scrollable&&"both"===n.scrollDirection,n.scrollable&&"flex"===n.scrollHeight,"stack"===n.responsiveLayout,"scroll"===n.responsiveLayout,n.responsive,null!=n.headerGroupedTemplate,null!=n.footerGroupedTemplate])),ie("id",n.id),a(2),p("ngIf",n.loading&&n.showLoader),a(1),p("ngIf",n.captionTemplate),a(1),p("ngIf",n.paginator&&("top"===n.paginatorPosition||"both"==n.paginatorPosition)),a(1),p("ngStyle",U(31,oG,n.scrollHeight)),a(2),p("ngIf"
,!n.virtualScroll),a(1),p("ngIf",n.virtualScroll),a(1),p("ngIf",n.paginator&&("bottom"===n.paginatorPosition||"both"==n.paginatorPosition)),a(1),p("ngIf",n.summaryTemplate),a(1),p("ngIf",n.resizableColumns),a(1),p("ngIf",n.reorderableColumns),a(1),p("ngIf",n.reorderableColumns))},directives:function(){return[ET,TU,Po,lt,Le,Q,Rt,Qf]},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-responsi
ve-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-vi
rtual-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-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-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-s
pace:nowrap}.p-datatable-resizable
.p-resizable-column:not(.p-frozen-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-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{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;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})(),TU=(()=>{cla
ss
t{constructor(e,n,s,r){this.dt=e,this.tableService=n,this.cd=s,this.el=r,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,n,s){let
r=Z.resolveFieldData(n,this.dt.groupRowsBy),o=e[s-1];return!o||r!==Z.resolveFieldData(o,this.dt.groupRowsBy)}shouldRenderRowGroupFooter(e,n,s){let
r=Z.resolveFieldData(n,this.dt.groupRowsBy),o=e[s+1];return!o||r!==Z.resolveFieldData(o,this.dt.groupRowsBy)}shouldRenderRowspan(e,n,s){let
r=Z.resolveFieldData(n,this.dt.groupRowsBy),o=e[s-1];return!o||r!==Z.resolveFieldData(o,
this.dt.groupRowsBy)}calculateRowGroupSize(e,n,s){let
r=Z.resolveFieldData(n,this.dt.groupRowsBy),o=r,u=0;for(;r===o;){u++;let
h=e[++s];if(!h)break;o=Z.resolveFieldData(h,this.dt.groupRowsBy)}return
1===u?null:u}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}updateFrozenRowStickyPosition(){this.el.nativeElement.style.top=R.getOuterHeight(this.el.nativeElement.previousElementSibling)+"px"}updateFrozenRowGroupHeaderStickyPosition(){if(this.el.nativeElement.previousElementSibling){let
e=R.getOuterHeight(this.el.nativeElement.previousElementSibling);this.dt.rowGroupHeaderStyleObject.top=e+"px"}}}return
t.\u0275fac=function(e){return
new(e||t)(D(Dn),D(Cd),D(rt),D(De))},t.\u0275cmp=z({type:t,selectors:[["","pTableBody",""]],hostAttrs:[1,"p-element"],inputs:{columns:["pTableBody","columns"],template:["pTableBodyTemplate","template"],value:"value",frozen:"frozen",frozenRows:"frozenRows"},attrs:aG,decls:6,vars:6,consts:[[4,"ngIf"],["ngFor","",3,"ngForOf","ngForTrackBy"],["r
ole","row",4,"ngIf"],["role","row"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],["cdkVirtualFor","",3,"cdkVirtualForOf","cdkVirtualForTrackBy","cdkVirtualForTemplateCacheSize"]],template:function(e,n){1&e&&(_(0,bG,2,2,"ng-container",0),_(1,yG,2,3,"ng-container",0),_(2,RG,2,2,"ng-container",0),_(3,FG,2,2,"ng-container",0),_(4,VG,2,5,"ng-container",0),_(5,HG,2,5,"ng-container",0)),2&e&&(p("ngIf",!n.dt.expandedRowTemplate&&!n.dt.virtualScroll),a(1),p("ngIf",!n.dt.expandedRowTemplate&&n.dt.virtualScroll),a(1),p("ngIf",n.dt.expandedRowTemplate&&!(n.frozen&&n.dt.frozenExpandedRowTemplate)),a(1),p("ngIf",n.dt.frozenExpandedRowTemplate&&n.frozen),a(1),p("ngIf",n.dt.loading),a(1),p("ngIf",n.dt.isEmpty()&&!n.dt.loading))},directives:[Q,at,Rt,Jf],encapsulation:2}),t})(),SU=(()=>{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)(D(Dn)
)},t.\u0275dir=le({type:t,selectors:[["","pRowGroupHeader",""]],hostAttrs:[1,"p-rowgroup-header","p-element"],hostVars:2,hostBindings:function(e,n){2&e&&_i("top",n.getFrozenRowGroupHeaderStickyPosition)}}),t})(),yd=(()=>{class
t{constructor(e){this.dt=e,this.isEnabled()&&(this.subscription=this.dt.tableService.sortSource$.subscribe(n=>{this.updateSortState()}))}ngOnInit(){this.isEnabled()&&this.updateSortState()}updateSortState(){this.sorted=this.dt.isSorted(this.field),this.sortOrder=this.sorted?1===this.dt.sortOrder?"ascending":"descending":"none"}onClick(e){this.isEnabled()&&!this.isFilterElement(e.target)&&(this.updateSortState(),this.dt.sort({originalEvent:e,field:this.field}),R.clearSelection())}onEnterKey(e){this.onClick(e)}isEnabled(){return!0!==this.pSortableColumnDisabled}isFilterElement(e){return
R.hasClass(e,"pi-filter-icon")||R.hasClass(e,"p-column-filter-menu-button")}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}}return
t.\u0275fac=function(e){retur
n
new(e||t)(D(Dn))},t.\u0275dir=le({type:t,selectors:[["","pSortableColumn",""]],hostAttrs:[1,"p-element"],hostVars:7,hostBindings:function(e,n){1&e&&C("click",function(r){return
n.onClick(r)})("keydown.enter",function(r){return
n.onEnterKey(r)}),2&e&&(ie("tabindex",n.isEnabled()?"0":null)("role","columnheader")("aria-sort",n.sortOrder),si("p-sortable-column",n.isEnabled())("p-highlight",n.sorted))},inputs:{field:["pSortableColumn","field"],pSortableColumnDisabled:"pSortableColumnDisabled"}}),t})(),wd=(()=>{class
t{constructor(e,n){this.dt=e,this.cd=n,this.subscription=this.dt.tableService.sortSource$.subscribe(s=>{this.updateSortState()})}ngOnInit(){this.updateSortState()}onClick(e){e.preventDefault()}updateSortState(){if("single"===this.dt.sortMode)this.sortOrder=this.dt.isSorted(this.field)?this.dt.sortOrder:0;else
if("multiple"===this.dt.sortMode){let
e=this.dt.getSortMeta(this.field);this.sortOrder=e?e.order:0}this.cd.markForCheck()}getMultiSortMetaIndex(){let
e=this.dt._multiS
ortMeta,n=-1;if(e&&"multiple"===this.dt.sortMode&&(this.dt.showInitialSortBadge||e.length>1))for(let
s=0;s<e.length;s++){let
r=e[s];if(r.field===this.field||r.field===this.field){n=s;break}}return
n}getBadgeValue(){let e=this.getMultiSortMetaIndex();return
this.dt.groupRowsBy&&e>-1?e:e+1}isMultiSorted(){return"multiple"===this.dt.sortMode&&this.getMultiSortMetaIndex()>-1}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}}return
t.\u0275fac=function(e){return
new(e||t)(D(Dn),D(rt))},t.\u0275cmp=z({type:t,selectors:[["p-sortIcon"]],hostAttrs:[1,"p-element"],inputs:{field:"field"},decls:2,vars:6,consts:[[1,"p-sortable-column-icon","pi","pi-fw",3,"ngClass"],["class","p-sortable-column-badge",4,"ngIf"],[1,"p-sortable-column-badge"]],template:function(e,n){1&e&&(k(0,"i",0),_(1,qG,2,1,"span",1)),2&e&&(p("ngClass",Qt(2,GG,1===n.sortOrder,-1===n.sortOrder,0===n.sortOrder)),a(1),p("ngIf",n.isMultiSorted()))},directives:[Le,Q],encapsulation:2,changeDetection:0}),t})(),j2=(()=>{c
lass
t{constructor(e,n){this.dt=e,this.tableService=n,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
s=this.findNextSelectableRow(e.currentTarget);s&&s.focus(),e.preventDefault()}onArrowUpKeyDown(e){if(!this.isEnabled())return;const
s=this.findPrevSelectableRow(e.currentTarget);s&&s.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.virtua
lScrollBody.elementRef.nativeElement.focus()}findNextSelectableRow(e){let
n=e.nextElementSibling;return
n?R.hasClass(n,"p-selectable-row")?n:this.findNextSelectableRow(n):null}findPrevSelectableRow(e){let
n=e.previousElementSibling;return
n?R.hasClass(n,"p-selectable-row")?n:this.findPrevSelectableRow(n):null}isEnabled(){return!0!==this.pSelectableRowDisabled}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}}return
t.\u0275fac=function(e){return
new(e||t)(D(Dn),D(Cd))},t.\u0275dir=le({type:t,selectors:[["","pSelectableRow",""]],hostAttrs:[1,"p-element"],hostVars:5,hostBindings:function(e,n){1&e&&C("click",function(r){return
n.onClick(r)})("touchend",function(r){return
n.onTouchEnd(r)})("keydown.arrowdown",function(r){return
n.onArrowDownKeyDown(r)})("keydown.arrowup",function(r){return
n.onArrowUpKeyDown(r)})("keydown.enter",function(r){return
n.onEnterKeyDown(r)})("keydown.shift.enter",function(r){return
n.onEnterKeyDown(r)})("keydown.meta.enter",function(r){return
n.onEnterKeyDown(r)})("keydown.pagedown",function(){return
n.onPageDownKeyDown()})("keydown.pageup",function(){return
n.onPageDownKeyDown()})("keydown.home",function(){return
n.onPageDownKeyDown()})("keydown.end",function(){return
n.onPageDownKeyDown()})("keydown.space",function(){return
n.onSpaceKeydown()}),2&e&&(ie("tabindex",n.isEnabled()?0:void
0),si("p-selectable-row",n.isEnabled())("p-highlight",n.selected))},inputs:{data:["pSelectableRow","data"],index:["pSelectableRowIndex","index"],pSelectableRowDisabled:"pSelectableRowDisabled"}}),t})(),$2=(()=>{class
t{constructor(e,n,s){this.dt=e,this.el=n,this.zone=s}ngAfterViewInit(){this.isEnabled()&&R.addClass(this.el.nativeElement,"p-editable-column")}onClick(e){if(this.isEnabled())if(this.dt.selfClick=!0,this.dt.editingCell){if(this.dt.editingCell!==this.el.nativeElement){if(!this.dt.isEditingCellValid())return;this.closeEditingCell(!0,e),this.openCell()}}else
this.openCell()}openCell(){this.dt.updateEditingCell(this.el.nativeEleme
nt,this.data,this.field,this.rowIndex),R.addClass(this.el.nativeElement,"p-cell-editing"),this.dt.onEditInit.emit({field:this.field,data:this.data,index:this.rowIndex}),this.zone.runOutsideAngular(()=>{setTimeout(()=>{let
n=R.findSingle(this.el.nativeElement,this.pFocusCellSelector||"input, textarea,
select");n&&n.focus()},50)}),this.overlayEventListener=e=>{this.el&&this.el.nativeElement.contains(e.target)&&(this.dt.selfClick=!0)},this.dt.overlaySubscription=this.dt.overlayService.clickObservable.subscribe(this.overlayEventListener)}closeEditingCell(e,n){e?this.dt.onEditComplete.emit({field:this.dt.editingCellField,data:this.dt.editingCellData,originalEvent:n,index:this.dt.editingCellRowIndex}):this.dt.onEditCancel.emit({field:this.dt.editingCellField,data:this.dt.editingCellData,originalEvent:n,index:this.dt.editingCellRowIndex}),R.removeClass(this.dt.editingCell,"p-cell-editing"),this.dt.editingCell=null,this.dt.editingCellData=null,this.dt.editingCellField=null,this.dt.unbindDoc
umentEditListener(),this.dt.overlaySubscription&&this.dt.overlaySubscription.unsubscribe()}onEnterKeyDown(e){this.isEnabled()&&(this.dt.isEditingCellValid()&&this.closeEditingCell(!0,e),e.preventDefault())}onEscapeKeyDown(e){this.isEnabled()&&(this.dt.isEditingCellValid()&&this.closeEditingCell(!1,e),e.preventDefault())}onShiftKeyDown(e){this.isEnabled()&&(e.shiftKey?this.moveToPreviousCell(e):this.moveToNextCell(e))}onArrowDown(e){if(this.isEnabled()){let
n=this.findCell(e.target);if(n){let
s=R.index(n),r=this.findNextEditableColumnByIndex(n,s);r&&(this.dt.isEditingCellValid()&&this.closeEditingCell(!0,e),R.invokeElementMethod(e.target,"blur"),R.invokeElementMethod(r,"click")),e.preventDefault()}}}onArrowUp(e){if(this.isEnabled()){let
n=this.findCell(e.target);if(n){let
s=R.index(n),r=this.findPrevEditableColumnByIndex(n,s);r&&(this.dt.isEditingCellValid()&&this.closeEditingCell(!0,e),R.invokeElementMethod(e.target,"blur"),R.invokeElementMethod(r,"click")),e.preventDefault()}}}onAr
rowLeft(e){this.isEnabled()&&this.moveToPreviousCell(e)}onArrowRight(e){this.isEnabled()&&this.moveToNextCell(e)}findCell(e){if(e){let
n=e;for(;n&&!R.hasClass(n,"p-cell-editing");)n=n.parentElement;return
n}return null}moveToPreviousCell(e){let n=this.findCell(e.target);if(n){let
s=this.findPreviousEditableColumn(n);s&&(this.dt.isEditingCellValid()&&this.closeEditingCell(!0,e),R.invokeElementMethod(e.target,"blur"),R.invokeElementMethod(s,"click"),e.preventDefault())}}moveToNextCell(e){let
n=this.findCell(e.target);if(n){let
s=this.findNextEditableColumn(n);s&&(this.dt.isEditingCellValid()&&this.closeEditingCell(!0,e),R.invokeElementMethod(e.target,"blur"),R.invokeElementMethod(s,"click"),e.preventDefault())}}findPreviousEditableColumn(e){let
n=e.previousElementSibling;if(!n){let
s=e.parentElement.previousElementSibling;s&&(n=s.lastElementChild)}return
n?R.hasClass(n,"p-editable-column")?n:this.findPreviousEditableColumn(n):null}findNextEditableColumn(e){let
n=e.nextElementSibling;i
f(!n){let s=e.parentElement.nextElementSibling;s&&(n=s.firstElementChild)}return
n?R.hasClass(n,"p-editable-column")?n:this.findNextEditableColumn(n):null}findNextEditableColumnByIndex(e,n){let
s=e.parentElement.nextElementSibling;if(s){let r=s.children[n];return
r&&R.hasClass(r,"p-editable-column")?r:null}return
null}findPrevEditableColumnByIndex(e,n){let
s=e.parentElement.previousElementSibling;if(s){let r=s.children[n];return
r&&R.hasClass(r,"p-editable-column")?r:null}return
null}isEnabled(){return!0!==this.pEditableColumnDisabled}ngOnDestroy(){this.dt.overlaySubscription&&this.dt.overlaySubscription.unsubscribe()}}return
t.\u0275fac=function(e){return
new(e||t)(D(Dn),D(De),D(nt))},t.\u0275dir=le({type:t,selectors:[["","pEditableColumn",""]],hostAttrs:[1,"p-element"],hostBindings:function(e,n){1&e&&C("click",function(r){return
n.onClick(r)})("keydown.enter",function(r){return
n.onEnterKeyDown(r)})("keydown.escape",function(r){return
n.onEscapeKeyDown(r)})("keydown.tab",function(
r){return n.onShiftKeyDown(r)})("keydown.shift.tab",function(r){return
n.onShiftKeyDown(r)})("keydown.meta.tab",function(r){return
n.onShiftKeyDown(r)})("keydown.arrowdown",function(r){return
n.onArrowDown(r)})("keydown.arrowup",function(r){return
n.onArrowUp(r)})("keydown.arrowleft",function(r){return
n.onArrowLeft(r)})("keydown.arrowright",function(r){return
n.onArrowRight(r)})},inputs:{data:["pEditableColumn","data"],field:["pEditableColumnField","field"],rowIndex:["pEditableColumnRowIndex","rowIndex"],pEditableColumnDisabled:"pEditableColumnDisabled",pFocusCellSelector:"pFocusCellSelector"}}),t})(),xU=(()=>{class
t{constructor(e){this.el=e}isEnabled(){return!0!==this.pEditableRowDisabled}}return
t.\u0275fac=function(e){return
new(e||t)(D(De))},t.\u0275dir=le({type:t,selectors:[["","pEditableRow",""]],hostAttrs:[1,"p-element"],inputs:{data:["pEditableRow","data"],pEditableRowDisabled:"pEditableRowDisabled"}}),t})(),DU=(()=>{class
t{constructor(e,n,s){this.dt=e,this.editableColumn
=n,this.editableRow=s}ngAfterContentInit(){this.templates.forEach(e=>{switch(e.getType()){case"input":this.inputTemplate=e.template;break;case"output":this.outputTemplate=e.template}})}get
editing(){return
this.dt.editingCell&&this.editableColumn&&this.dt.editingCell===this.editableColumn.el.nativeElement||this.editableRow&&"row"===this.dt.editMode&&this.dt.isRowEditing(this.editableRow.data)}}return
t.\u0275fac=function(e){return
new(e||t)(D(Dn),D($2,8),D(xU,8))},t.\u0275cmp=z({type:t,selectors:[["p-cellEditor"]],contentQueries:function(e,n,s){if(1&e&&st(s,ne,4),2&e){let
r;V(r=B())&&(n.templates=r)}},hostAttrs:[1,"p-element"],decls:2,vars:2,consts:[[4,"ngIf"],[4,"ngTemplateOutlet"]],template:function(e,n){1&e&&(_(0,zG,2,1,"ng-container",0),_(1,$G,2,1,"ng-container",0)),2&e&&(p("ngIf",n.editing),a(1),p("ngIf",!n.editing))},directives:[Q,Rt],encapsulation:2}),t})(),MU=(()=>{class
t{constructor(e){this.dt=e,this.useGrouping=!0}ngOnInit(){this.filterCallback=e=>{this.filterConstraint.v
alue=e,this.dt._filter()}}onModelChange(e){this.filterConstraint.value=e,("boolean"===this.type||""===e)&&this.dt._filter()}onTextInputEnterKeyDown(e){this.dt._filter(),e.preventDefault()}onNumericInputKeyDown(e){"Enter"===e.key&&(this.dt._filter(),e.preventDefault())}}return
t.\u0275fac=function(e){return
new(e||t)(D(Dn))},t.\u0275cmp=z({type:t,selectors:[["p-columnFilterFormElement"]],hostAttrs:[1,"p-element"],inputs:{field:"field",type:"type",filterConstraint:"filterConstraint",filterTemplate:"filterTemplate",placeholder:"placeholder",minFractionDigits:"minFractionDigits",maxFractionDigits:"maxFractionDigits",prefix:"prefix",suffix:"suffix",locale:"locale",localeMatcher:"localeMatcher",currency:"currency",currencyDisplay:"currencyDisplay",useGrouping:"useGrouping"},decls:3,vars:2,consts:[[4,"ngIf","ngIfElse"],["builtInElement",""],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[3,"ngSwitch"],["type","text","pInputText","",3,"value","input","keydown.enter",4,"ngSwitchCase"],[3,"
ngModel","showButtons","minFractionDigits","maxFractionDigits","prefix","suffix","placeholder","mode","locale","localeMatcher","currency","currencyDisplay","useGrouping","ngModelChange","onKeyDown",4,"ngSwitchCase"],[3,"ngModel","ngModelChange",4,"ngSwitchCase"],[3,"placeholder","ngModel","ngModelChange",4,"ngSwitchCase"],["type","text","pInputText","",3,"value","input","keydown.enter"],[3,"ngModel","showButtons","minFractionDigits","maxFractionDigits","prefix","suffix","placeholder","mode","locale","localeMatcher","currency","currencyDisplay","useGrouping","ngModelChange","onKeyDown"],[3,"ngModel","ngModelChange"],[3,"placeholder","ngModel","ngModelChange"]],template:function(e,n){if(1&e&&(_(0,QG,2,5,"ng-container",0),_(1,eU,5,5,"ng-template",null,1,we)),2&e){const
s=F(2);p("ngIf",n.filterTemplate)("ngIfElse",s)}},directives:[pt,G2,xr,Q,Rt,gr,Ja,DT,Te,_e],encapsulation:2}),t})(),vg=(()=>{class
t{constructor(e,n,s,r,o){this.el=e,this.dt=n,this.renderer=s,this.config=r,this.overlaySe
rvice=o,this.type="text",this.display="row",this.showMenu=!0,this.operator=ml.AND,this.showOperator=!0,this.showClearButton=!0,this.showApplyButton=!0,this.showMatchModes=!0,this.showAddButton=!0,this.hideOnClear=!1,this.maxConstraints=2,this.useGrouping=!0}ngOnInit(){this.dt.filters[this.field]||this.initFieldFilterConstraint(),this.translationSubscription=this.config.translationObserver.subscribe(()=>{this.generateMatchModeOptions(),this.generateOperatorOptions()}),this.resetSubscription=this.dt.tableService.resetSource$.subscribe(()=>{this.initFieldFilterConstraint()}),this.generateMatchModeOptions(),this.generateOperatorOptions()}generateMatchModeOptions(){var
e;this.matchModes=this.matchModeOptions||(null===(e=this.config.filterMatchModeOptions[this.type])||void
0===e?void
0:e.map(n=>({label:this.config.getTranslation(n),value:n})))}generateOperatorOptions(){this.operatorOptions=[{label:this.config.getTranslation(Ft.MATCH_ALL),value:ml.AND},{label:this.config.getTranslation(Ft.
MATCH_ANY),value:ml.OR}]}ngAfterContentInit(){this.templates.forEach(e=>{switch(e.getType()){case"header":this.headerTemplate=e.template;break;case"filter":default:this.filterTemplate=e.template;break;case"footer":this.footerTemplate=e.template}})}initFieldFilterConstraint(){let
e=this.getDefaultMatchMode();this.dt.filters[this.field]="row"==this.display?{value:null,matchMode:e}:[{value:null,matchMode:e,operator:this.operator}]}onMenuMatchModeChange(e,n){n.matchMode=e,this.showApplyButton||this.dt._filter()}onRowMatchModeChange(e){this.dt.filters[this.field].matchMode=e,this.dt._filter(),this.hide()}onRowMatchModeKeyDown(e){let
n=e.target;switch(e.key){case"ArrowDown":var
s=this.findNextItem(n);s&&(n.removeAttribute("tabindex"),s.tabIndex="0",s.focus()),e.preventDefault();break;case"ArrowUp":var
r=this.findPrevItem(n);r&&(n.removeAttribute("tabindex"),r.tabIndex="0",r.focus()),e.preventDefault()}}onRowClearItemClick(){this.clearFilter(),this.hide()}isRowMatchModeSelected(e){return
t
his.dt.filters[this.field].matchMode===e}addConstraint(){this.dt.filters[this.field].push({value:null,matchMode:this.getDefaultMatchMode(),operator:this.getDefaultOperator()}),this.dt._filter()}removeConstraint(e){this.dt.filters[this.field]=this.dt.filters[this.field].filter(n=>n!==e),this.dt._filter()}onOperatorChange(e){this.dt.filters[this.field].forEach(n=>{n.operator=e,this.operator=e}),this.showApplyButton||this.dt._filter()}toggleMenu(){this.overlayVisible=!this.overlayVisible}onToggleButtonKeyDown(e){switch(e.key){case"Escape":case"Tab":this.overlayVisible=!1;break;case"ArrowDown":if(this.overlayVisible){let
n=R.getFocusableElements(this.overlay);n&&n[0].focus(),e.preventDefault()}else
e.altKey&&(this.overlayVisible=!0,e.preventDefault())}}onEscape(){this.overlayVisible=!1,this.icon.nativeElement.focus()}findNextItem(e){let
n=e.nextElementSibling;return
n?R.hasClass(n,"p-column-filter-separator")?this.findNextItem(n):n:e.parentElement.firstElementChild}findPrevItem(e){let
n
=e.previousElementSibling;return
n?R.hasClass(n,"p-column-filter-separator")?this.findPrevItem(n):n:e.parentElement.lastElementChild}onContentClick(){this.selfClick=!0}onOverlayAnimationStart(e){switch(e.toState){case"visible":this.overlay=e.element,document.body.appendChild(this.overlay),dt.set("overlay",this.overlay,this.config.zIndex.overlay),R.absolutePosition(this.overlay,this.icon.nativeElement),this.bindDocumentClickListener(),this.bindDocumentResizeListener(),this.bindScrollListener(),this.overlayEventListener=n=>{this.overlay&&this.overlay.contains(n.target)&&(this.selfClick=!0)},this.overlaySubscription=this.overlayService.clickObservable.subscribe(this.overlayEventListener);break;case"void":this.onOverlayHide(),this.overlaySubscription&&this.overlaySubscription.unsubscribe()}}onOverlayAnimationEnd(e){"void"===e.toState&&dt.clear(e.element)}getDefaultMatchMode(){return
this.matchMode?this.matchMode:"text"===this.type?_t.STARTS_WITH:"numeric"===this.type?_t.EQUALS:"date"===
this.type?_t.DATE_IS:_t.CONTAINS}getDefaultOperator(){return
this.dt.filters?this.dt.filters[this.field][0].operator:this.operator}hasRowFilter(){return
this.dt.filters[this.field]&&!this.dt.isFilterBlank(this.dt.filters[this.field].value)}get
fieldConstraints(){return this.dt.filters?this.dt.filters[this.field]:null}get
showRemoveIcon(){return!!this.fieldConstraints&&this.fieldConstraints.length>1}get
showMenuButton(){return
this.showMenu&&("row"!==this.display||"boolean"!==this.type)}get
isShowOperator(){return this.showOperator&&"boolean"!==this.type}get
isShowAddConstraint(){return
this.showAddButton&&"boolean"!==this.type&&this.fieldConstraints&&this.fieldConstraints.length<this.maxConstraints}get
applyButtonLabel(){return this.config.getTranslation(Ft.APPLY)}get
clearButtonLabel(){return this.config.getTranslation(Ft.CLEAR)}get
addRuleButtonLabel(){return this.config.getTranslation(Ft.ADD_RULE)}get
removeRuleButtonLabel(){return this.config.getTranslation(Ft.REMOVE_RULE)}get n
oFilterLabel(){return this.config.getTranslation(Ft.NO_FILTER)}hasFilter(){let
e=this.dt.filters[this.field];return!!e&&(Array.isArray(e)?!this.dt.isFilterBlank(e[0].value):!this.dt.isFilterBlank(e.value))}isOutsideClicked(e){return!(this.overlay.isSameNode(e.target)||this.overlay.contains(e.target)||this.icon.nativeElement.isSameNode(e.target)||this.icon.nativeElement.contains(e.target)||R.hasClass(e.target,"p-column-filter-add-button")||R.hasClass(e.target.parentElement,"p-column-filter-add-button")||R.hasClass(e.target,"p-column-filter-remove-button")||R.hasClass(e.target.parentElement,"p-column-filter-remove-button"))}bindDocumentClickListener(){this.documentClickListener||(this.documentClickListener=this.renderer.listen(this.el?this.el.nativeElement.ownerDocument:"document","mousedown",n=>{this.overlayVisible&&!this.selfClick&&this.isOutsideClicked(n)&&this.hide(),this.selfClick=!1}))}unbindDocumentClickListener(){this.documentClickListener&&(this.documentClickListener(),this.d
ocumentClickListener=null,this.selfClick=!1)}bindDocumentResizeListener(){this.documentResizeListener=()=>this.hide(),window.addEventListener("resize",this.documentResizeListener)}unbindDocumentResizeListener(){this.documentResizeListener&&(window.removeEventListener("resize",this.documentResizeListener),this.documentResizeListener=null)}bindScrollListener(){this.scrollHandler||(this.scrollHandler=new
Qs(this.icon.nativeElement,()=>{this.overlayVisible&&this.hide()})),this.scrollHandler.bindScrollListener()}unbindScrollListener(){this.scrollHandler&&this.scrollHandler.unbindScrollListener()}hide(){this.overlayVisible=!1}onOverlayHide(){this.unbindDocumentClickListener(),this.unbindDocumentResizeListener(),this.unbindScrollListener(),this.overlay=null}clearFilter(){this.initFieldFilterConstraint(),this.dt._filter(),this.hideOnClear&&this.hide()}applyFilter(){this.dt._filter(),this.hide()}ngOnDestroy(){this.overlay&&(this.el.nativeElement.appendChild(this.overlay),dt.clear(this.overla
y),this.onOverlayHide()),this.translationSubscription&&this.translationSubscription.unsubscribe(),this.resetSubscription&&this.resetSubscription.unsubscribe(),this.overlaySubscription&&this.overlaySubscription.unsubscribe()}}return
t.\u0275fac=function(e){return
new(e||t)(D(De),D(Dn),D(gn),D(zn),D(Ks))},t.\u0275cmp=z({type:t,selectors:[["p-columnFilter"]],contentQueries:function(e,n,s){if(1&e&&st(s,ne,4),2&e){let
r;V(r=B())&&(n.templates=r)}},viewQuery:function(e,n){if(1&e&&W(tU,5),2&e){let
s;V(s=B())&&(n.icon=s.first)}},hostAttrs:[1,"p-element"],inputs:{field:"field",type:"type",display:"display",showMenu:"showMenu",matchMode:"matchMode",operator:"operator",showOperator:"showOperator",showClearButton:"showClearButton",showApplyButton:"showApplyButton",showMatchModes:"showMatchModes",showAddButton:"showAddButton",hideOnClear:"hideOnClear",placeholder:"placeholder",matchModeOptions:"matchModeOptions",maxConstraints:"maxConstraints",minFractionDigits:"minFractionDigits",maxFractionDig
its:"maxFractionDigits",prefix:"prefix",suffix:"suffix",locale:"locale",localeMatcher:"localeMatcher",currency:"currency",currencyDisplay:"currencyDisplay",useGrouping:"useGrouping"},decls:5,vars:8,consts:[[1,"p-column-filter",3,"ngClass"],["class","p-fluid",3,"type","field","filterConstraint","filterTemplate","placeholder","minFractionDigits","maxFractionDigits","prefix","suffix","locale","localeMatcher","currency","currencyDisplay","useGrouping",4,"ngIf"],["type","button","class","p-column-filter-menu-button
p-link","aria-haspopup","true",3,"ngClass","click","keydown",4,"ngIf"],["type","button","class","p-column-filter-clear-button
p-link",3,"ngClass","click",4,"ngIf"],[3,"ngClass","click","keydown.escape",4,"ngIf"],[1,"p-fluid",3,"type","field","filterConstraint","filterTemplate","placeholder","minFractionDigits","maxFractionDigits","prefix","suffix","locale","localeMatcher","currency","currencyDisplay","useGrouping"],["type","button","aria-haspopup","true",1,"p-column-filter-men
u-button","p-link",3,"ngClass","click","keydown"],["icon",""],[1,"pi","pi-filter-icon","pi-filter"],["type","button",1,"p-column-filter-clear-button","p-link",3,"ngClass","click"],[1,"pi","pi-filter-slash"],[3,"ngClass","click","keydown.escape"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],["class","p-column-filter-row-items",4,"ngIf","ngIfElse"],["menu",""],[1,"p-column-filter-row-items"],["class","p-column-filter-row-item",3,"ngClass","click","keydown","keydown.enter",4,"ngFor","ngForOf"],[1,"p-column-filter-separator"],[1,"p-column-filter-row-item",3,"click","keydown","keydown.enter"],[1,"p-column-filter-row-item",3,"ngClass","click","keydown","keydown.enter"],["class","p-column-filter-operator",4,"ngIf"],[1,"p-column-filter-constraints"],["class","p-column-filter-constraint",4,"ngFor","ngForOf"],["class","p-column-filter-add-rule",4,"ngIf"],[1,"p-column-filter-buttonbar"],["type","button","pButton","","class","p-button-outlined
p-button-sm","pRipple","",3,"label","click",4,"
ngIf"],["type","button","pButton","","class","p-button-sm","pRipple","",3,"label","click",4,"ngIf"],[1,"p-column-filter-operator"],["styleClass","p-column-filter-operator-dropdown",3,"options","ngModel","ngModelChange"],[1,"p-column-filter-constraint"],["styleClass","p-column-filter-matchmode-dropdown",3,"options","ngModel","ngModelChange",4,"ngIf"],[3,"type","field","filterConstraint","filterTemplate","placeholder","minFractionDigits","maxFractionDigits","prefix","suffix","locale","localeMatcher","currency","currencyDisplay","useGrouping"],["type","button","pButton","","icon","pi
pi-trash","class","p-column-filter-remove-button p-button-text
p-button-danger
p-button-sm","pRipple","",3,"label","click",4,"ngIf"],["styleClass","p-column-filter-matchmode-dropdown",3,"options","ngModel","ngModelChange"],["type","button","pButton","","icon","pi
pi-trash","pRipple","",1,"p-column-filter-remove-button","p-button-text","p-button-danger","p-button-sm",3,"label","click"],[1,"p-column-filter-a
dd-rule"],["type","button","pButton","","icon","pi
pi-plus","pRipple","",1,"p-column-filter-add-button","p-button-text","p-button-sm",3,"label","click"],["type","button","pButton","","pRipple","",1,"p-button-outlined","p-button-sm",3,"label","click"],["type","button","pButton","","pRipple","",1,"p-button-sm",3,"label","click"]],template:function(e,n){1&e&&(l(0,"div",0),_(1,nU,1,14,"p-columnFilterFormElement",1),_(2,sU,3,5,"button",2),_(3,oU,3,3,"button",3),_(4,yU,6,14,"div",4),c()),2&e&&(p("ngClass",Ge(5,wU,"row"===n.display,"menu"===n.display)),a(1),p("ngIf","row"===n.display),a(1),p("ngIf",n.showMenuButton),a(1),p("ngIf",n.showClearButton&&"row"===n.display),a(1),p("ngIf",n.showMenu&&n.overlayVisible))},directives:[MU,Ot,Le,Q,Rt,at,Te,_e,On],encapsulation:2,data:{animation:[wi("overlayAnimation",[Lt(":enter",[it({opacity:0,transform:"scaleY(0.8)"}),kt(".12s
cubic-bezier(0, 0, 0.2, 1)")]),Lt(":leave",[kt(".1s
linear",it({opacity:0}))])])]}}),t})(),kU=(()=>{class t{}return t.\u0275f
ac=function(e){return
new(e||t)},t.\u0275mod=he({type:t}),t.\u0275inj=ue({imports:[[Fe,RT,MT,Zu,Fo,Mu,gl,Tq,cT,Xu,Iq],Nt,Fo]}),t})();const
W2=["container"],IU=function(t,i,e,n){return{"pi-info-circle":t,"pi-exclamation-triangle":i,"pi-times-circle":e,"pi-check":n}};function
EU(t,i){if(1&t&&(de(0),k(1,"span",6),l(2,"div",7)(3,"div",8),g(4),c(),l(5,"div",9),g(6),c()(),pe()),2&t){const
e=d();a(1),me("p-toast-message-icon pi"+(e.message.icon?"
"+e.message.icon:"")),p("ngClass",qn(5,IU,"info"==e.message.severity,"warn"==e.message.severity,"error"==e.message.severity,"success"==e.message.severity)),a(3),S(e.message.summary),a(2),S(e.message.detail)}}function
RU(t,i){1&t&&Y(0)}function LU(t,i){if(1&t){const
e=I();l(0,"button",10),C("click",function(s){return
v(e),d().onCloseIconClick(s)})("keydown.enter",function(s){return
v(e),d().onCloseIconClick(s)}),k(1,"span",11),c()}}const
OU=function(t){return[t,"p-toast-message"]},AU=function(t,i,e,n){return{showTransformParams:t,hideTransformParam
s:i,showTransitionParams:e,hideTransitionParams:n}},PU=function(t){return{value:"visible",params:t}},FU=function(t){return{$implicit:t}};function
NU(t,i){if(1&t){const
e=I();l(0,"p-toastItem",3),C("onClose",function(s){return
v(e),d().onMessageClose(s)})("(a)toastAnimation.start",function(s){return
v(e),d().onAnimationStart(s)})("(a)toastAnimation.done",function(s){return
v(e),d().onAnimationEnd(s)}),c()}if(2&t){const
e=i.$implicit,n=i.index,s=d();p("message",e)("index",n)("template",s.template)("@toastAnimation",void
0)("showTransformOptions",s.showTransformOptions)("hideTransformOptions",s.hideTransformOptions)("showTransitionOptions",s.showTransitionOptions)("hideTransitionOptions",s.hideTransitionOptions)}}let
VU=(()=>{class t{constructor(e){this.zone=e,this.onClose=new
H}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||3
e3)})}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)(D(nt))},t.\u0275cmp=z({type:t,selectors:[["p-toastItem"]],viewQuery:function(e,n){if(1&e&&W(W2,5),2&e){let
s;V(s=B())&&(n.containerViewChild=s.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,n){1&e&&(l(0,"div",0,1),C("mouseenter",function(){return
n.onMouseEnter()})("mouseleave",function(){return
n.onMouseLeave()}),l(2,"div",2),_(3,EU,7,10,"ng-container",3),_(4,RU,1,0,"ng-container",4),_(5,LU,2,0,"button",5),c()()),2&e&&(me(n.message.styleClass),p("ngClass",U(10,OU,"p-toast-message-"+n.message.severity))("(a)messageState",U(17,PU,qn(12,AU,n.showTransformOptions,n.hideTransformOptions,n.showTransitionOptions,n.hideTransitionOptions))),ie("id",n.message.id),a(2),p("ngClass",n.message.contentStyleClass),a(1),p("ngIf",!n.template),a(1),p("ngTemplateOutlet",n.template)("ngTemplateOutletContext",U(
19,FU,n.message)),a(1),p("ngIf",!1!==n.message.closable))},directives:[Le,Q,Rt,bt],encapsulation:2,data:{animation:[wi("messageState",[ws("visible",it({transform:"translateY(0)",opacity:1})),Lt("void
=>
*",[it({transform:"{{showTransformParams}}",opacity:0}),kt("{{showTransitionParams}}")]),Lt("*
=>
void",[kt("{{hideTransitionParams}}",it({height:0,opacity:0,transform:"{{hideTransformParams}}"}))])])]},changeDetection:0}),t})(),Td=(()=>{class
t{constructor(e,n,s){this.messageService=e,this.cd=n,this.config=s,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
H,this.id=pl()}ngOnInit(){this.messageSubscription=this.messageService.messageObserver.subscribe(e=>{if(e)if(e
instanceof Array){const n=e.filter(s=>this.canAdd(s));this
.add(n)}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
n=this.key===e.key;return
n&&this.preventOpenDuplicates&&(n=!this.containsMessage(this.messages,e)),n&&this.preventDuplicates&&(n=!this.containsMessage(this.messagesArchieve,e)),n}containsMessage(e,n){return!!e&&null!=e.find(s=>s.summary===n.summary&&s.detail==n.detail&&s.severity===n.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.fromSt
ate&&(this.containerViewChild.nativeElement.setAttribute(this.id,""),this.autoZIndex&&dt.set("modal",this.containerViewChild.nativeElement,this.baseZIndex||this.config.zIndex.modal))}onAnimationEnd(e){"void"===e.toState&&this.autoZIndex&&Z.isEmpty(this.messages)&&dt.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 n in this.breakpoints){let s="";for(let r in
this.breakpoints[n])s+=r+":"+this.breakpoints[n][r]+"
!important;";e+=`\n @media screen and (max-width: ${n}) {\n
.p-toast[${this.id}] {\n ${s}\n
}\n }\n
`}this.styleElement.innerHTML=e}}destroyStyle(){this.styleElement&&(document.head.removeChild(this.styleElement),this.styleElement=null)}ngOnDestroy(){this.messageSubscription&&t
his.messageSubscription.unsubscribe(),this.containerViewChild&&this.autoZIndex&&dt.clear(this.containerViewChild.nativeElement),this.clearSubscription&&this.clearSubscription.unsubscribe(),this.destroyStyle()}}return
t.\u0275fac=function(e){return
new(e||t)(D(Gi),D(rt),D(zn))},t.\u0275cmp=z({type:t,selectors:[["p-toast"]],contentQueries:function(e,n,s){if(1&e&&st(s,ne,4),2&e){let
r;V(r=B())&&(n.templates=r)}},viewQuery:function(e,n){if(1&e&&W(W2,5),2&e){let
s;V(s=B())&&(n.containerViewChild=s.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:function(e,n){1&e&&(l(0,"div",0,1),_(2,NU,1,8,"p-toastItem",2),c()),2&e&&(me(n.styleClass),p("ngClass","p-toast
p-component
p-toast-"+n.position)("ngStyle",n.style),a(2),p("ngForOf",n.messages))},directives:[VU,Le,lt,at],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{bot
tom: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:[wi("toastAnimation",[Lt(":enter,
:leave",[$A("@*",jA())])])]},changeDetection:0}),t})(),BU=(()=>{class
t{}return t.\u0275fac=function(e){return
new(e||t)},t.\u0275mod=he({type:t}),t.\u0275inj=ue({imports:[[Fe,pn],Nt]}),t})(),GU=(()=>{class
t{}return t.\u0275fac=function(e){return
new(e||t)},t.\u0275mod=he({type:t}),t.\u0275inj=ue({imports:[[Fe]]}),t})();const
UU=["rb"],zU=function(t,i,e){return{"p-radiobutton-label":!0,"p-radiobutton-label-active":t,"p-disabled":i,"p-radiobutton-label-focus":e}};function
jU(t,i){if(1&t){const
e=I();l(0,"label",4),C("click",function(s){return
v(e),d().select(s)}),g(1),c()}if(2&t){const
e=d(),n=F(3);me(e.labelStyleClass),p("ngClass",Qt(5,zU,n.ch
ecked,e.disabled,e.focused)),ie("for",e.inputId),a(1),S(e.label)}}const
$U=function(t,i,e){return{"p-radiobutton
p-component":!0,"p-radiobutton-checked":t,"p-radiobutton-disabled":i,"p-radiobutton-focused":e}},WU=function(t,i,e){return{"p-radiobutton-box":!0,"p-highlight":t,"p-disabled":i,"p-focus":e}},KU={provide:dn,useExisting:je(()=>Sd),multi:!0};let
QU=(()=>{class
t{constructor(){this.accessors=[]}add(e,n){this.accessors.push([e,n])}remove(e){this.accessors=this.accessors.filter(n=>n[1]!==e)}select(e){this.accessors.forEach(n=>{this.isSameGroup(n,e)&&n[1]!==e&&n[1].writeValue(e.value)})}isSameGroup(e,n){return!!e[0].control&&e[0].control.root===n.control.control.root&&e[1].name===n.name}}return
t.\u0275fac=function(e){return
new(e||t)},t.\u0275prov=X({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),Sd=(()=>{class
t{constructor(e,n,s){this.cd=e,this.injector=n,this.registry=s,this.onClick=new
H,this.onFocus=new H,this.onBlur=new H,this.onModelChange=()=>{},this.onModelTouch
ed=()=>{}}ngOnInit(){this.control=this.injector.get(ss),this.checkName(),this.registry.add(this.control,this)}handleClick(e,n,s){e.preventDefault(),!this.disabled&&(this.select(e),s&&n.focus())}select(e){this.disabled||(this.inputViewChild.nativeElement.checked=!0,this.checked=!0,this.onModelChange(this.value),this.registry.select(this),this.onClick.emit(e))}writeValue(e){this.checked=e==this.value,this.inputViewChild&&this.inputViewChild.nativeElement&&(this.inputViewChild.nativeElement.checked=this.checked),this.cd.markForCheck()}registerOnChange(e){this.onModelChange=e}registerOnTouched(e){this.onModelTouched=e}setDisabledState(e){this.disabled=e,this.cd.markForCheck()}onInputFocus(e){this.focused=!0,this.onFocus.emit(e)}onInputBlur(e){this.focused=!1,this.onModelTouched(),this.onBlur.emit(e)}onChange(e){this.select(e)}focus(){this.inputViewChild.nativeElement.focus()}ngOnDestroy(){this.registry.remove(this)}checkName(){this.name&&this.formControlName&&this.name!==this.formContro
lName&&this.throwNameError(),!this.name&&this.formControlName&&(this.name=this.formControlName)}throwNameError(){throw
new Error('\n If you define both a name and a formControlName attribute on
your radio button, their values\n must match. Ex: <p-radioButton
formControlName="food" name="food"></p-radioButton>\n
')}}return t.\u0275fac=function(e){return
new(e||t)(D(rt),D(En),D(QU))},t.\u0275cmp=z({type:t,selectors:[["p-radioButton"]],viewQuery:function(e,n){if(1&e&&W(UU,5),2&e){let
s;V(s=B())&&(n.inputViewChild=s.first)}},hostAttrs:[1,"p-element"],inputs:{value:"value",formControlName:"formControlName",name:"name",disabled:"disabled",label:"label",tabindex:"tabindex",inputId:"inputId",ariaLabelledBy:"ariaLabelledBy",ariaLabel:"ariaLabel",style:"style",styleClass:"styleClass",labelStyleClass:"labelStyleClass"},outputs:{onClick:"onClick",onFocus:"onFocus",onBlur:"onBlur"},features:[Pe([KU])],decls:7,vars:23,consts:[[3,"ngStyle","ngClass"],[1,"p-hidden-accessibl
e"],["type","radio",3,"checked","disabled","change","focus","blur"],["rb",""],[3,"ngClass","click"],[1,"p-radiobutton-icon"],[3,"class","ngClass","click",4,"ngIf"]],template:function(e,n){if(1&e){const
s=I();l(0,"div",0)(1,"div",1)(2,"input",2,3),C("change",function(o){return
n.onChange(o)})("focus",function(o){return
n.onInputFocus(o)})("blur",function(o){return
n.onInputBlur(o)}),c()(),l(4,"div",4),C("click",function(o){v(s);const
u=F(3);return
n.handleClick(o,u,!0)}),k(5,"span",5),c()(),_(6,jU,2,9,"label",6)}2&e&&(me(n.styleClass),p("ngStyle",n.style)("ngClass",Qt(15,$U,n.checked,n.disabled,n.focused)),a(2),p("checked",n.checked)("disabled",n.disabled),ie("id",n.inputId)("name",n.name)("value",n.value)("tabindex",n.tabindex)("aria-checked",n.checked)("aria-label",n.ariaLabel)("aria-labelledby",n.ariaLabelledBy),a(2),p("ngClass",Qt(19,WU,n.checked,n.disabled,n.focused)),a(2),p("ngIf",n.label))},directives:[lt,Le,Q],encapsulation:2,changeDetection:0}),t})(),JU=(()=>{class
t{}return
t.\u0275fac=function(e){return
new(e||t)},t.\u0275mod=he({type:t}),t.\u0275inj=ue({imports:[[Fe]]}),t})();function
YU(t,i){if(1&t&&(l(0,"div",5),g(1),c()),2&t){const
e=d(2);_i("display",null!=e.value&&0!==e.value?"flex":"none"),a(1),We("",e.value,"",e.unit,"")}}function
ZU(t,i){if(1&t&&(l(0,"div",3),_(1,YU,2,4,"div",4),c()),2&t){const
e=d();_i("width",e.value+"%"),a(1),p("ngIf",e.showValue)}}function
XU(t,i){1&t&&(l(0,"div",6),k(1,"div",7),c())}const
ez=function(t,i){return{"p-progressbar
p-component":!0,"p-progressbar-determinate":t,"p-progressbar-indeterminate":i}};let
tz=(()=>{class
t{constructor(){this.showValue=!0,this.unit="%",this.mode="determinate"}}return
t.\u0275fac=function(e){return
new(e||t)},t.\u0275cmp=z({type:t,selectors:[["p-progressBar"]],hostAttrs:[1,"p-element"],inputs:{value:"value",showValue:"showValue",style:"style",styleClass:"styleClass",unit:"unit",mode:"mode"},decls:3,vars:10,consts:[["role","progressbar","aria-valuemin","0","aria-valuemax","100",3,"ngSty
le","ngClass"],["class","p-progressbar-value
p-progressbar-value-animate","style","display:flex",3,"width",4,"ngIf"],["class","p-progressbar-indeterminate-container",4,"ngIf"],[1,"p-progressbar-value","p-progressbar-value-animate",2,"display","flex"],["class","p-progressbar-label",3,"display",4,"ngIf"],[1,"p-progressbar-label"],[1,"p-progressbar-indeterminate-container"],[1,"p-progressbar-value","p-progressbar-value-animate"]],template:function(e,n){1&e&&(l(0,"div",0),_(1,ZU,2,3,"div",1),_(2,XU,2,0,"div",2),c()),2&e&&(me(n.styleClass),p("ngStyle",n.style)("ngClass",Ge(7,ez,"determinate"===n.mode,"indeterminate"===n.mode)),ie("aria-valuenow",n.value),a(1),p("ngIf","determinate"===n.mode),a(1),p("ngIf","indeterminate"===n.mode))},directives:[lt,Le,Q],styles:['.p-progressbar{position:relative;overflow:hidden}.p-progressbar-determinate
.p-progressbar-value{height:100%;width:0%;position:absolute;display:none;border:0
none;display:flex;align-items:center;justify-content:center;overflow:hi
dden}.p-progressbar-determinate
.p-progressbar-label{display:inline-flex}.p-progressbar-determinate
.p-progressbar-value-animate{transition:width 1s ease-in-out}.p-progressbar-indeterminate
.p-progressbar-value:before{content:"";position:absolute;background-color:inherit;top:0;left:0;bottom:0;will-change:left,right;animation:p-progressbar-indeterminate-anim
2.1s cubic-bezier(.65,.815,.735,.395) infinite}.p-progressbar-indeterminate
.p-progressbar-value:after{content:"";position:absolute;background-color:inherit;top:0;left:0;bottom:0;will-change:left,right;animation:p-progressbar-indeterminate-anim-short
2.1s cubic-bezier(.165,.84,.44,1) infinite;animation-delay:1.15s}@keyframes
p-progressbar-indeterminate-anim{0%{left:-35%;right:100%}60%{left:100%;right:-90%}to{left:100%;right:-90%}}@keyframes
p-progressbar-indeterminate-anim-short{0%{left:-200%;right:100%}60%{left:107%;right:-8%}to{left:107%;right:-8%}}\n'],encapsulation:2,changeDetection:0}),t})(),nz=(()=>{class
t{}return t.\u0275
fac=function(e){return
new(e||t)},t.\u0275mod=he({type:t}),t.\u0275inj=ue({imports:[[Fe]]}),t})();const
iz=["container"],sz=["content"],rz=["xBar"],oz=["yBar"];function
az(t,i){1&t&&Y(0)}const lz=["*"];let K2=(()=>{class
t{constructor(e,n,s){this.el=e,this.zone=n,this.cd=s,this.timeoutFrame=r=>setTimeout(r,0)}ngAfterViewInit(){this.zone.runOutsideAngular(()=>{this.moveBar(),this.moveBar=this.moveBar.bind(this),this.onXBarMouseDown=this.onXBarMouseDown.bind(this),this.onYBarMouseDown=this.onYBarMouseDown.bind(this),this.onDocumentMouseMove=this.onDocumentMouseMove.bind(this),this.onDocumentMouseUp=this.onDocumentMouseUp.bind(this),window.addEventListener("resize",this.moveBar),this.contentViewChild.nativeElement.addEventListener("scroll",this.moveBar),this.contentViewChild.nativeElement.addEventListener("mouseenter",this.moveBar),this.xBarViewChild.nativeElement.addEventListener("mousedown",this.onXBarMouseDown),this.yBarViewChild.nativeElement.addEventListener("mousedown",this.onYBa
rMouseDown),this.calculateContainerHeight(),this.initialized=!0})}ngAfterContentInit(){this.templates.forEach(e=>{e.getType(),this.contentTemplate=e.template})}calculateContainerHeight(){let
e=this.containerViewChild.nativeElement,n=this.contentViewChild.nativeElement,s=this.xBarViewChild.nativeElement,r=getComputedStyle(e),o=getComputedStyle(s),u=R.getHeight(e)-parseInt(o.height,10);"none"!=r["max-height"]&&0==u&&(e.style.height=n.offsetHeight+parseInt(o.height,10)>parseInt(r["max-height"],10)?r["max-height"]:n.offsetHeight+parseFloat(r.paddingTop)+parseFloat(r.paddingBottom)+parseFloat(r.borderTopWidth)+parseFloat(r.borderBottomWidth)+"px")}moveBar(){let
e=this.containerViewChild.nativeElement,n=this.contentViewChild.nativeElement,s=this.xBarViewChild.nativeElement,r=n.scrollWidth,o=n.clientWidth,u=-1*(e.clientHeight-s.clientHeight);this.scrollXRatio=o/r;let
h=this.yBarViewChild.nativeElement,b=n.scrollHeight,y=n.clientHeight,w=-1*(e.clientWidth-h.clientWidth);this.scrollYRatio=y/
b,this.requestAnimationFrame(()=>{if(this.scrollXRatio>=1)R.addClass(s,"p-scrollpanel-hidden");else{R.removeClass(s,"p-scrollpanel-hidden");const
M=Math.max(100*this.scrollXRatio,10);s.style.cssText="width:"+M+"%;
left:"+n.scrollLeft*(100-M)/(r-o)+"%;bottom:"+u+"px;"}if(this.scrollYRatio>=1)R.addClass(h,"p-scrollpanel-hidden");else{R.removeClass(h,"p-scrollpanel-hidden");const
M=Math.max(100*this.scrollYRatio,10);h.style.cssText="height:"+M+"%; top:
calc("+n.scrollTop*(100-M)/(b-y)+"% -
"+s.clientHeight+"px);right:"+w+"px;"}}),this.cd.markForCheck()}onYBarMouseDown(e){this.isYBarClicked=!0,this.lastPageY=e.pageY,R.addClass(this.yBarViewChild.nativeElement,"p-scrollpanel-grabbed"),R.addClass(document.body,"p-scrollpanel-grabbed"),document.addEventListener("mousemove",this.onDocumentMouseMove),document.addEventListener("mouseup",this.onDocumentMouseUp),e.preventDefault()}onXBarMouseDown(e){this.isXBarClicked=!0,this.lastPageX=e.pageX,R.addClass(this.xBarViewChild.nativeElement,"p-scro
llpanel-grabbed"),R.addClass(document.body,"p-scrollpanel-grabbed"),document.addEventListener("mousemove",this.onDocumentMouseMove),document.addEventListener("mouseup",this.onDocumentMouseUp),e.preventDefault()}onDocumentMouseMove(e){this.isXBarClicked?this.onMouseMoveForXBar(e):(this.isYBarClicked||this.onMouseMoveForXBar(e),this.onMouseMoveForYBar(e))}onMouseMoveForXBar(e){let
n=e.pageX-this.lastPageX;this.lastPageX=e.pageX,this.requestAnimationFrame(()=>{this.contentViewChild.nativeElement.scrollLeft+=n/this.scrollXRatio})}onMouseMoveForYBar(e){let
n=e.pageY-this.lastPageY;this.lastPageY=e.pageY,this.requestAnimationFrame(()=>{this.contentViewChild.nativeElement.scrollTop+=n/this.scrollYRatio})}scrollTop(e){let
n=this.contentViewChild.nativeElement.scrollHeight-this.contentViewChild.nativeElement.clientHeight;this.contentViewChild.nativeElement.scrollTop=e=e>n?n:e>0?e:0}onDocumentMouseUp(e){R.removeClass(this.yBarViewChild.nativeElement,"p-scrollpanel-grabbed"),R.removeClass(this
.xBarViewChild.nativeElement,"p-scrollpanel-grabbed"),R.removeClass(document.body,"p-scrollpanel-grabbed"),document.removeEventListener("mousemove",this.onDocumentMouseMove),document.removeEventListener("mouseup",this.onDocumentMouseUp),this.isXBarClicked=!1,this.isYBarClicked=!1}requestAnimationFrame(e){(window.requestAnimationFrame||this.timeoutFrame)(e)}ngOnDestroy(){this.initialized&&(window.removeEventListener("resize",this.moveBar),this.contentViewChild.nativeElement.removeEventListener("scroll",this.moveBar),this.contentViewChild.nativeElement.removeEventListener("mouseenter",this.moveBar),this.xBarViewChild.nativeElement.removeEventListener("mousedown",this.onXBarMouseDown),this.yBarViewChild.nativeElement.removeEventListener("mousedown",this.onYBarMouseDown))}refresh(){this.moveBar()}}return
t.\u0275fac=function(e){return
new(e||t)(D(De),D(nt),D(rt))},t.\u0275cmp=z({type:t,selectors:[["p-scrollPanel"]],contentQueries:function(e,n,s){if(1&e&&st(s,ne,4),2&e){let
r;V(r=B())&&(
n.templates=r)}},viewQuery:function(e,n){if(1&e&&(W(iz,5),W(sz,5),W(rz,5),W(oz,5)),2&e){let
s;V(s=B())&&(n.containerViewChild=s.first),V(s=B())&&(n.contentViewChild=s.first),V(s=B())&&(n.xBarViewChild=s.first),V(s=B())&&(n.yBarViewChild=s.first)}},hostAttrs:[1,"p-element"],inputs:{style:"style",styleClass:"styleClass"},ngContentSelectors:lz,decls:11,vars:5,consts:[[3,"ngClass","ngStyle"],["container",""],[1,"p-scrollpanel-wrapper"],[1,"p-scrollpanel-content"],["content",""],[4,"ngTemplateOutlet"],[1,"p-scrollpanel-bar","p-scrollpanel-bar-x"],["xBar",""],[1,"p-scrollpanel-bar","p-scrollpanel-bar-y"],["yBar",""]],template:function(e,n){1&e&&(Sn(),l(0,"div",0,1)(2,"div",2)(3,"div",3,4),St(5),_(6,az,1,0,"ng-container",5),c()(),k(7,"div",6,7)(9,"div",8,9),c()),2&e&&(me(n.styleClass),p("ngClass","p-scrollpanel
p-component")("ngStyle",n.style),a(6),p("ngTemplateOutlet",n.contentTemplate))},directives:[Le,lt,Rt],styles:[".p-scrollpanel-wrapper{overflow:hidden;width:100%;height:100%;position
:relative;z-index:1;float:left}.p-scrollpanel-content{height:calc(100% +
18px);width:calc(100% + 18px);padding:0 18px 18px
0;position:relative;overflow:auto;box-sizing:border-box}.p-scrollpanel-bar{position:relative;background:#c1c1c1;border-radius:3px;z-index:2;cursor:pointer;opacity:0;transition:opacity
.25s
linear}.p-scrollpanel-bar-y{width:9px;top:0}.p-scrollpanel-bar-x{height:9px;bottom:0}.p-scrollpanel-hidden{visibility:hidden}.p-scrollpanel:hover
.p-scrollpanel-bar,.p-scrollpanel:active
.p-scrollpanel-bar{opacity:1}.p-scrollpanel-grabbed{-webkit-user-select:none;user-select:none}\n"],encapsulation:2,changeDetection:0}),t})(),cz=(()=>{class
t{}return t.\u0275fac=function(e){return
new(e||t)},t.\u0275mod=he({type:t}),t.\u0275inj=ue({imports:[[Fe]]}),t})();const
uz=["content"],dz=["navbar"],pz=["inkbar"],hz=["prevBtn"],mz=["nextBtn"];function
fz(t,i){if(1&t){const
e=I();l(0,"button",11,12),C("click",function(){return
v(e),d().navBackward()}),k(2,"span",13),c()}}function gz(t,i){
if(1&t&&k(0,"span",23),2&t){const
e=d(3).$implicit;p("ngClass",e.icon)("ngStyle",e.iconStyle)}}function
_z(t,i){if(1&t&&(l(0,"span",24),g(1),c()),2&t){const
e=d(3).$implicit;a(1),S(e.label)}}function
bz(t,i){1&t&&k(0,"span",25),2&t&&p("innerHTML",d(3).$implicit.label,Bt)}function
vz(t,i){if(1&t&&(de(0),_(1,gz,1,2,"span",20),_(2,_z,2,1,"span",21),_(3,bz,1,1,"ng-template",null,22,we),pe()),2&t){const
e=F(4),n=d(2).$implicit;a(1),p("ngIf",n.icon),a(1),p("ngIf",!1!==n.escape)("ngIfElse",e)}}function
Cz(t,i){1&t&&Y(0)}const Q2=function(t,i){return{$implicit:t,index:i}};function
yz(t,i){if(1&t){const
e=I();l(0,"a",17),C("click",function(s){v(e);const
r=d().$implicit;return
d().itemClick(s,r)})("keydown.enter",function(s){v(e);const
r=d().$implicit;return
d().itemClick(s,r)}),_(1,vz,5,3,"ng-container",18),_(2,Cz,1,0,"ng-container",19),c()}if(2&t){const
e=d(),n=e.$implicit,s=e.index,r=d();p("target",n.target),ie("href",n.url,ln)("tabindex",n.disabled?null:"0")("title",n.title)("id",n.id),a(
1),p("ngIf",!r.itemTemplate),a(1),p("ngTemplateOutlet",r.itemTemplate)("ngTemplateOutletContext",Ge(8,Q2,n,s))}}function
wz(t,i){if(1&t&&k(0,"span",23),2&t){const
e=d(3).$implicit;p("ngClass",e.icon)("ngStyle",e.iconStyle)}}function
Tz(t,i){if(1&t&&(l(0,"span",24),g(1),c()),2&t){const
e=d(3).$implicit;a(1),S(e.label)}}function
Sz(t,i){1&t&&k(0,"span",25),2&t&&p("innerHTML",d(3).$implicit.label,Bt)}function
xz(t,i){if(1&t&&(de(0),_(1,wz,1,2,"span",20),_(2,Tz,2,1,"span",21),_(3,Sz,1,1,"ng-template",null,27,we),pe()),2&t){const
e=F(4),n=d(2).$implicit;a(1),p("ngIf",n.icon),a(1),p("ngIf",!1!==n.escape)("ngIfElse",e)}}function
Dz(t,i){1&t&&Y(0)}const Mz=function(){return{exact:!1}};function
kz(t,i){if(1&t){const
e=I();l(0,"a",26),C("click",function(s){v(e);const
r=d().$implicit;return
d().itemClick(s,r)})("keydown.enter",function(s){v(e);const
r=d().$implicit;return
d().itemClick(s,r)}),_(1,xz,5,3,"ng-container",18),_(2,Dz,1,0,"ng-container",19),c()}if(2&t){const
e=d(),n=e.$implicit,s=e.
index,r=d();p("routerLink",n.routerLink)("queryParams",n.queryParams)("routerLinkActive","p-menuitem-link-active")("routerLinkActiveOptions",n.routerLinkActiveOptions||A(17,Mz))("target",n.target)("fragment",n.fragment)("queryParamsHandling",n.queryParamsHandling)("preserveFragment",n.preserveFragment)("skipLocationChange",n.skipLocationChange)("replaceUrl",n.replaceUrl)("state",n.state),ie("tabindex",n.disabled?null:"0")("title",n.title)("id",n.id),a(1),p("ngIf",!r.itemTemplate),a(1),p("ngTemplateOutlet",r.itemTemplate)("ngTemplateOutletContext",Ge(18,Q2,n,s))}}const
Iz=function(t,i,e){return{"p-tabmenuitem":!0,"p-disabled":t,"p-highlight":i,"p-hidden":e}};function
Ez(t,i){if(1&t&&(l(0,"li",14),_(1,yz,3,11,"a",15),_(2,kz,3,21,"a",16),c()),2&t){const
e=i.$implicit,n=d();me(e.styleClass),p("ngStyle",e.style)("ngClass",Qt(9,Iz,e.disabled,n.isActive(e),!1===e.visible))("tooltipOptions",e.tooltipOptions),ie("aria-selected",n.isActive(e))("aria-expanded",n.isActive(e)),a(1),p("ngIf",!e.r
outerLink),a(1),p("ngIf",e.routerLink)}}function Rz(t,i){if(1&t){const
e=I();l(0,"button",28,29),C("click",function(){return
v(e),d().navForward()}),k(2,"span",30),c()}}const
Lz=function(t){return{"p-tabmenu
p-component":!0,"p-tabmenu-scrollable":t}};let J2=(()=>{class
t{constructor(e,n,s){this.router=e,this.route=n,this.cd=s,this.backwardIsDisabled=!0,this.forwardIsDisabled=!1}ngAfterContentInit(){this.templates.forEach(e=>{e.getType(),this.itemTemplate=e.template})}ngAfterViewInit(){this.updateInkBar()}ngAfterViewChecked(){this.tabChanged&&(this.updateInkBar(),this.tabChanged=!1)}isActive(e){if(e.routerLink){let
n=Array.isArray(e.routerLink)?e.routerLink:[e.routerLink];return
this.router.isActive(this.router.createUrlTree(n,{relativeTo:this.route}).toString(),!1)}return
e===this.activeItem}itemClick(e,n){n.disabled?e.preventDefault():(!n.url&&!n.routerLink&&e.preventDefault(),n.command&&n.command({originalEvent:e,item:n}),this.activeItem=n,this.tabChanged=!0)}updateInkBar(){let
e=
R.findSingle(this.navbar.nativeElement,"li.p-highlight");e&&(this.inkbar.nativeElement.style.width=R.getWidth(e)+"px",this.inkbar.nativeElement.style.left=R.getOffset(e).left-R.getOffset(this.navbar.nativeElement).left+"px")}getVisibleButtonWidths(){var
e,n;return[null===(e=this.prevBtn)||void 0===e?void
0:e.nativeElement,null===(n=this.nextBtn)||void 0===n?void
0:n.nativeElement].reduce((s,r)=>r?s+R.getWidth(r):s,0)}updateButtonState(){const
e=this.content.nativeElement,{scrollLeft:n,scrollWidth:s}=e,r=R.getWidth(e);this.backwardIsDisabled=0===n,this.forwardIsDisabled=parseInt(n)===s-r}updateScrollBar(e){this.navbar.nativeElement.children[e].scrollIntoView({block:"nearest"})}onScroll(e){this.scrollable&&this.updateButtonState(),e.preventDefault()}navBackward(){const
e=this.content.nativeElement,n=R.getWidth(e)-this.getVisibleButtonWidths(),s=e.scrollLeft-n;e.scrollLeft=s<=0?0:s}navForward(){const
e=this.content.nativeElement,n=R.getWidth(e)-this.getVisibleButtonWidths(),s=e.scrollL
eft+n,r=e.scrollWidth-n;e.scrollLeft=s>=r?r:s}}return t.\u0275fac=function(e){return
new(e||t)(D(It),D(Er),D(rt))},t.\u0275cmp=z({type:t,selectors:[["p-tabMenu"]],contentQueries:function(e,n,s){if(1&e&&st(s,ne,4),2&e){let
r;V(r=B())&&(n.templates=r)}},viewQuery:function(e,n){if(1&e&&(W(uz,5),W(dz,5),W(pz,5),W(hz,5),W(mz,5)),2&e){let
s;V(s=B())&&(n.content=s.first),V(s=B())&&(n.navbar=s.first),V(s=B())&&(n.inkbar=s.first),V(s=B())&&(n.prevBtn=s.first),V(s=B())&&(n.nextBtn=s.first)}},hostAttrs:[1,"p-element"],inputs:{model:"model",activeItem:"activeItem",scrollable:"scrollable",popup:"popup",style:"style",styleClass:"styleClass"},decls:11,vars:9,consts:[[3,"ngClass","ngStyle"],[1,"p-tabmenu-nav-container"],["class","p-tabmenu-nav-prev
p-tabmenu-nav-btn
p-link","type","button","pRipple","",3,"click",4,"ngIf"],[1,"p-tabmenu-nav-content",3,"scroll"],["content",""],["role","tablist",1,"p-tabmenu-nav","p-reset"],["navbar",""],["role","tab","pTooltip","",3,"ngStyle","class","ngClass","toolt
ipOptions",4,"ngFor","ngForOf"],[1,"p-tabmenu-ink-bar"],["inkbar",""],["class","p-tabmenu-nav-next
p-tabmenu-nav-btn
p-link","type","button","pRipple","",3,"click",4,"ngIf"],["type","button","pRipple","",1,"p-tabmenu-nav-prev","p-tabmenu-nav-btn","p-link",3,"click"],["prevBtn",""],[1,"pi","pi-chevron-left"],["role","tab","pTooltip","",3,"ngStyle","ngClass","tooltipOptions"],["class","p-menuitem-link","role","presentation","pRipple","",3,"target","click","keydown.enter",4,"ngIf"],["role","presentation","class","p-menuitem-link","pRipple","",3,"routerLink","queryParams","routerLinkActive","routerLinkActiveOptions","target","fragment","queryParamsHandling","preserveFragment","skipLocationChange","replaceUrl","state","click","keydown.enter",4,"ngIf"],["role","presentation","pRipple","",1,"p-menuitem-link",3,"target","click","keydown.enter"],[4,"ngIf"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],["class","p-menuitem-icon",3,"ngClass","ngStyle",4,"ngIf"],["class","p-menuitem-text",4,
"ngIf","ngIfElse"],["htmlLabel",""],[1,"p-menuitem-icon",3,"ngClass","ngStyle"],[1,"p-menuitem-text"],[1,"p-menuitem-text",3,"innerHTML"],["role","presentation","pRipple","",1,"p-menuitem-link",3,"routerLink","queryParams","routerLinkActive","routerLinkActiveOptions","target","fragment","queryParamsHandling","preserveFragment","skipLocationChange","replaceUrl","state","click","keydown.enter"],["htmlRouteLabel",""],["type","button","pRipple","",1,"p-tabmenu-nav-next","p-tabmenu-nav-btn","p-link",3,"click"],["nextBtn",""],[1,"pi","pi-chevron-right"]],template:function(e,n){1&e&&(l(0,"div",0)(1,"div",1),_(2,fz,3,0,"button",2),l(3,"div",3,4),C("scroll",function(r){return
n.onScroll(r)}),l(5,"ul",5,6),_(7,Ez,3,13,"li",7),k(8,"li",8,9),c()(),_(10,Rz,3,0,"button",10),c()()),2&e&&(me(n.styleClass),p("ngClass",U(7,Lz,n.scrollable))("ngStyle",n.style),a(2),p("ngIf",n.scrollable&&!n.backwardIsDisabled),a(5),p("ngForOf",n.model),a(3),p("ngIf",n.scrollable&&!n.forwardIsDisabled))},directives:[Le
,lt,Q,bt,at,Kt,Rt,Ho,_d],styles:[".p-tabmenu-nav-container{position:relative}.p-tabmenu-scrollable
.p-tabmenu-nav-container{overflow:hidden}.p-tabmenu-nav-content{overflow-x:auto;overflow-y:hidden;scroll-behavior:smooth;scrollbar-width:none;overscroll-behavior:contain
auto}.p-tabmenu-nav-btn{position:absolute;top:0;z-index:2;height:100%;display:flex;align-items:center;justify-content:center}.p-tabmenu-nav-prev{left:0}.p-tabmenu-nav-next{right:0}.p-tabview-nav-content::-webkit-scrollbar{display:none}.p-tabmenu-nav{display:flex;margin:0;padding:0;list-style-type:none;flex-wrap:nowrap}.p-tabmenu-nav
a{cursor:pointer;-webkit-user-select:none;user-select:none;display:flex;align-items:center;position:relative;text-decoration:none;overflow:hidden}.p-tabmenu-nav
a:focus{z-index:1}.p-tabmenu-nav
.p-menuitem-text{line-height:1;white-space:nowrap}.p-tabmenu-ink-bar{display:none;z-index:1}.p-tabmenu-nav-content::-webkit-scrollbar{display:none}\n"],encapsulation:2,changeDetection:0}),t})(),Oz=((
)=>{class t{}return t.\u0275fac=function(e){return
new(e||t)},t.\u0275mod=he({type:t}),t.\u0275inj=ue({imports:[[Fe,vn,Nt,pn,jn],vn,Nt,jn]}),t})();function
Az(t,i){if(1&t&&(l(0,"span"),g(1),c()),2&t){const
e=d();a(1),S(e.label)}}function Pz(t,i){1&t&&Y(0)}const
Y2=function(t){return{height:t}},Fz=function(t,i){return{"p-highlight":t,"p-disabled":i}},Nz=function(t){return{"p-highlight":t}},Z2=function(t){return{"pi
pi-check":t}},Rl=function(t){return{$implicit:t}},Vz=["container"],Bz=["filterInput"],Hz=["in"];function
qz(t,i){if(1&t&&(de(0),g(1),pe()),2&t){const
e=d(2);a(1),S(e.valuesAsString||"empty")}}function Gz(t,i){if(1&t){const
e=I();l(0,"span",18),C("click",function(s){v(e);const
r=d().$implicit;return d(3).removeChip(r,s)}),c()}}function
Uz(t,i){if(1&t&&(l(0,"div",14,15)(2,"span",16),g(3),c(),_(4,Gz,1,0,"span",17),c()),2&t){const
e=i.$implicit,n=d(3);a(3),S(n.findLabelByValue(e)),a(1),p("ngIf",!n.disabled)}}function
zz(t,i){if(1&t&&(de(0),g(1),pe()),2&t){const e=d(3);a(1),S(e
.placeholder||e.defaultLabel||"empty")}}function
jz(t,i){if(1&t&&(de(0),_(1,Uz,5,2,"div",13),_(2,zz,2,1,"ng-container",7),pe()),2&t){const
e=d(2);a(1),p("ngForOf",e.value),a(1),p("ngIf",!e.value||0===e.value.length)}}function
$z(t,i){if(1&t&&(de(0),_(1,qz,2,1,"ng-container",7),_(2,jz,3,2,"ng-container",7),pe()),2&t){const
e=d();a(1),p("ngIf","comma"===e.display),a(1),p("ngIf","chip"===e.display)}}function
Wz(t,i){1&t&&Y(0)}function Kz(t,i){if(1&t){const
e=I();l(0,"i",19),C("click",function(s){return
v(e),d().clear(s)}),c()}}function Qz(t,i){1&t&&Y(0)}const
Jz=function(t){return{"p-checkbox-disabled":t}},Yz=function(t,i,e){return{"p-highlight":t,"p-focus":i,"p-disabled":e}};function
Zz(t,i){if(1&t){const
e=I();l(0,"div",32)(1,"div",2)(2,"input",33),C("focus",function(){return
v(e),d(3).onHeaderCheckboxFocus()})("blur",function(){return
v(e),d(3).onHeaderCheckboxBlur()})("keydown.space",function(s){return
v(e),d(3).toggleAll(s)}),c()(),l(3,"div",34),C("click",function(s){return
v(e),d
(3).toggleAll(s)}),k(4,"span",35),c()()}if(2&t){const
e=d(3);p("ngClass",U(6,Jz,e.disabled||e.toggleAllDisabled)),a(2),p("checked",e.allChecked)("disabled",e.disabled||e.toggleAllDisabled),a(1),p("ngClass",Qt(8,Yz,e.allChecked,e.headerCheckboxFocus,e.disabled||e.toggleAllDisabled)),ie("aria-checked",e.allChecked),a(1),p("ngClass",U(12,Z2,e.allChecked))}}function
Xz(t,i){if(1&t){const
e=I();l(0,"div",36)(1,"input",37,38),C("input",function(s){return
v(e),d(3).onFilterInputChange(s)}),c(),k(3,"span",39),c()}if(2&t){const
e=d(3);a(1),p("value",e.filterValue||"")("disabled",e.disabled),ie("autocomplete",e.autocomplete)("placeholder",e.filterPlaceHolder)("aria-label",e.ariaFilterLabel)}}function
ej(t,i){if(1&t){const
e=I();l(0,"div",26),St(1),_(2,Qz,1,0,"ng-container",27),_(3,Zz,5,14,"div",28),_(4,Xz,4,5,"div",29),l(5,"button",30),C("click",function(s){return
v(e),d(2).close(s)}),k(6,"span",31),c()()}if(2&t){const
e=d(2);a(2),p("ngTemplateOutlet",e.headerTemplate),a(1),p("ngIf",e.showTog
gleAll&&!e.selectionLimit),a(1),p("ngIf",e.filter)}}function
tj(t,i){if(1&t&&(l(0,"span"),g(1),c()),2&t){const
e=d().$implicit,n=d(3);a(1),S(n.getOptionGroupLabel(e)||"empty")}}function
nj(t,i){1&t&&Y(0)}function ij(t,i){1&t&&Y(0)}function
sj(t,i){if(1&t&&(l(0,"li",41),_(1,tj,2,1,"span",7),_(2,nj,1,0,"ng-container",8),c(),_(3,ij,1,0,"ng-container",8)),2&t){const
e=i.$implicit;d(2);const
n=F(7),s=d();a(1),p("ngIf",!s.groupTemplate),a(1),p("ngTemplateOutlet",s.groupTemplate)("ngTemplateOutletContext",U(5,Rl,e)),a(1),p("ngTemplateOutlet",n)("ngTemplateOutletContext",U(7,Rl,s.getOptionGroupChildren(e)))}}function
rj(t,i){if(1&t&&(de(0),_(1,sj,4,9,"ng-template",40),pe()),2&t){const
e=d(2);a(1),p("ngForOf",e.optionsToRender)}}function
oj(t,i){1&t&&Y(0)}function
aj(t,i){if(1&t&&(de(0),_(1,oj,1,0,"ng-container",8),pe()),2&t){d();const
e=F(7),n=d();a(1),p("ngTemplateOutlet",e)("ngTemplateOutletContext",U(2,Rl,n.optionsToRender))}}function
lj(t,i){if(1&t){const e=I();l(0,"p-multiSelectItem",4
5),C("onClick",function(s){return
v(e),d(4).onOptionClick(s)})("onKeydown",function(s){return
v(e),d(4).onOptionKeydown(s)}),c()}if(2&t){const
e=i.$implicit,n=d(4);p("option",e)("selected",n.isSelected(e))("label",n.getOptionLabel(e))("disabled",n.isOptionDisabled(e))("template",n.itemTemplate)}}function
cj(t,i){if(1&t&&(de(0),_(1,lj,1,5,"ng-template",40),pe()),2&t){const
e=d().$implicit;a(1),p("ngForOf",e)}}function uj(t,i){if(1&t){const
e=I();de(0),l(1,"p-multiSelectItem",50),C("onClick",function(s){return
v(e),d(5).onOptionClick(s)})("onKeydown",function(s){return
v(e),d(5).onOptionKeydown(s)}),c(),pe()}if(2&t){const
e=i.$implicit,n=d(5);a(1),p("option",e)("selected",n.isSelected(e))("label",n.getOptionLabel(e))("disabled",n.isOptionDisabled(e))("template",n.itemTemplate)("itemSize",n.itemSize)}}function
dj(t,i){if(1&t&&(l(0,"cdk-virtual-scroll-viewport",47,48),_(2,uj,2,6,"ng-container",49),c()),2&t){const
e=d(2).$implicit,n=d(2);p("ngStyle",U(3,Y2,n.scrollHeight))("itemSize",n.i
temSize),a(2),p("cdkVirtualForOf",e)}}function
pj(t,i){if(1&t&&_(0,dj,3,5,"cdk-virtual-scroll-viewport",46),2&t){const
e=d(3);p("ngIf",e.virtualScroll&&!e.emptyOptions)}}function
hj(t,i){if(1&t&&(de(0),g(1),pe()),2&t){const e=d(4);a(1),T("
",e.emptyFilterMessageLabel," ")}}function
mj(t,i){1&t&&Y(0,null,52)}function
fj(t,i){if(1&t&&(l(0,"li",51),_(1,hj,2,1,"ng-container",42),_(2,mj,2,0,"ng-container",27),c()),2&t){const
e=d(3);a(1),p("ngIf",!e.emptyFilterTemplate&&!e.emptyTemplate)("ngIfElse",e.emptyFilter),a(1),p("ngTemplateOutlet",e.emptyFilterTemplate||e.emptyTemplate)}}function
gj(t,i){if(1&t&&(de(0),g(1),pe()),2&t){const e=d(4);a(1),T("
",e.emptyMessageLabel," ")}}function
_j(t,i){1&t&&Y(0,null,53)}function
bj(t,i){if(1&t&&(l(0,"li",51),_(1,gj,2,1,"ng-container",42),_(2,_j,2,0,"ng-container",27),c()),2&t){const
e=d(3);a(1),p("ngIf",!e.emptyTemplate)("ngIfElse",e.empty),a(1),p("ngTemplateOutlet",e.emptyTemplate)}}function
vj(t,i){if(1&t&&(_(0,cj,2,1,"ng-container",42),_(1,pj,1,1
,"ng-template",null,43,we),_(3,fj,3,3,"li",44),_(4,bj,3,3,"li",44)),2&t){const
e=F(2),n=d(2);p("ngIf",!n.virtualScroll)("ngIfElse",e),a(3),p("ngIf",n.hasFilter()&&n.emptyOptions),a(1),p("ngIf",!n.hasFilter()&&n.emptyOptions)}}function
Cj(t,i){1&t&&Y(0)}function
yj(t,i){if(1&t&&(l(0,"div",54),St(1,1),_(2,Cj,1,0,"ng-container",27),c()),2&t){const
e=d(2);a(2),p("ngTemplateOutlet",e.footerTemplate)}}const
wj=function(){return["p-multiselect-panel
p-component"]},Tj=function(t,i){return{showTransitionParams:t,hideTransitionParams:i}},Sj=function(t){return{value:"visible",params:t}},xj=function(t){return{"p-multiselect-virtualscroll":t}};function
Dj(t,i){if(1&t){const
e=I();l(0,"div",20),C("(a)overlayAnimation.start",function(s){return
v(e),d().onOverlayAnimationStart(s)})("(a)overlayAnimation.done",function(s){return
v(e),d().onOverlayAnimationEnd(s)})("keydown",function(s){return
v(e),d().onKeydown(s)})("click",function(s){return
v(e),d().onOverlayClick(s)}),_(1,ej,7,3,"div",21),l(2,"div",22
)(3,"ul",23),_(4,rj,2,1,"ng-container",7),_(5,aj,2,4,"ng-container",7),_(6,vj,5,4,"ng-template",null,24,we),c()(),_(8,yj,3,1,"div",25),c()}if(2&t){const
e=d();me(e.panelStyleClass),p("ngClass",A(12,wj))("@overlayAnimation",U(16,Sj,Ge(13,Tj,e.showTransitionOptions,e.hideTransitionOptions)))("ngStyle",e.panelStyle),a(1),p("ngIf",e.showHeader),a(1),_i("max-height",e.virtualScroll?"auto":e.scrollHeight||"auto"),a(1),p("ngClass",U(18,xj,e.virtualScroll)),a(1),p("ngIf",e.group),a(1),p("ngIf",!e.group),a(3),p("ngIf",e.footerFacet||e.footerTemplate)}}const
Mj=[[["p-header"]],[["p-footer"]]],kj=function(t,i,e,n){return{"p-multiselect
p-component":!0,"p-multiselect-open":t,"p-multiselect-chip":i,"p-focus":e,"p-disabled":n}},Ij=function(t,i){return{"p-placeholder":t,"p-multiselect-label-empty":i}},Ej=function(){return{"p-multiselect-trigger":!0}},Rj=["p-header","p-footer"],Lj={provide:dn,useExisting:je(()=>X2),multi:!0};let
Oj=(()=>{class t{constructor(){this.onClick=new H,this.onKeydown=new H
}onOptionClick(e){this.onClick.emit({originalEvent:e,option:this.option})}onOptionKeydown(e){this.onKeydown.emit({originalEvent:e,option:this.option})}}return
t.\u0275fac=function(e){return
new(e||t)},t.\u0275cmp=z({type:t,selectors:[["p-multiSelectItem"]],hostAttrs:[1,"p-element"],inputs:{option:"option",selected:"selected",label:"label",disabled:"disabled",itemSize:"itemSize",template:"template"},outputs:{onClick:"onClick",onKeydown:"onKeydown"},decls:6,vars:20,consts:[["pRipple","",1,"p-multiselect-item",3,"ngStyle","ngClass","click","keydown"],[1,"p-checkbox","p-component"],[1,"p-checkbox-box",3,"ngClass"],[1,"p-checkbox-icon",3,"ngClass"],[4,"ngIf"],[4,"ngTemplateOutlet","ngTemplateOutletContext"]],template:function(e,n){1&e&&(l(0,"li",0),C("click",function(r){return
n.onOptionClick(r)})("keydown",function(r){return
n.onOptionKeydown(r)}),l(1,"div",1)(2,"div",2),k(3,"span",3),c()(),_(4,Az,2,1,"span",4),_(5,Pz,1,0,"ng-container",5),c()),2&e&&(p("ngStyle",U(9,Y2,n.itemSize+"px"))
("ngClass",Ge(11,Fz,n.selected,n.disabled)),ie("aria-label",n.label)("tabindex",n.disabled?null:"0"),a(2),p("ngClass",U(14,Nz,n.selected)),a(1),p("ngClass",U(16,Z2,n.selected)),a(1),p("ngIf",!n.template),a(1),p("ngTemplateOutlet",n.template)("ngTemplateOutletContext",U(18,Rl,n.option)))},directives:[bt,lt,Le,Q,Rt],encapsulation:2}),t})(),X2=(()=>{class
t{constructor(e,n,s,r,o,u){this.el=e,this.renderer=n,this.cd=s,this.filterService=r,this.config=o,this.overlayService=u,this.filter=!0,this.displaySelectedLabel=!0,this.maxSelectedLabels=3,this.selectedItemsLabel="ellipsis",this.showToggleAll=!0,this.emptyFilterMessage="",this.emptyMessage="",this.resetFilterOnHide=!1,this.dropdownIcon="pi
pi-chevron-down",this.optionGroupChildren="items",this.showHeader=!0,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.tooltipPosi
tionStyle="absolute",this.autofocusFilter=!0,this.display="comma",this.autocomplete="on",this.showClear=!1,this.onChange=new
H,this.onFilter=new H,this.onFocus=new H,this.onBlur=new H,this.onClick=new
H,this.onClear=new H,this.onPanelShow=new H,this.onPanelHide=new
H,this.scrollHeight="200px",this.onModelChange=()=>{},this.onModelTouched=()=>{}}set
defaultLabel(e){this._defaultLabel=e,this.updateLabel()}get defaultLabel(){return
this._defaultLabel}set placeholder(e){this._placeholder=e,this.updateLabel()}get
placeholder(){return this._placeholder}get options(){return this._options}set
options(e){this._options=e,this.updateLabel()}get filterValue(){return
this._filterValue}set
filterValue(e){this._filterValue=e,this.activateFilter()}ngOnInit(){this.updateLabel()}ngAfterContentInit(){this.templates.forEach(e=>{switch(e.getType()){case"item":default:this.itemTemplate=e.template;break;case"group":this.groupTemplate=e.template;break;case"selectedItems":this.selectedItemsTemplate=e.templa
te;break;case"header":this.headerTemplate=e.template;break;case"emptyfilter":this.emptyFilterTemplate=e.template;break;case"empty":this.emptyTemplate=e.template;break;case"footer":this.footerTemplate=e.template}})}ngAfterViewInit(){this.overlayVisible&&this.show()}ngAfterViewChecked(){this.filtered&&(this.alignOverlay(),this.filtered=!1)}getOptionLabel(e){return
this.optionLabel?Z.resolveFieldData(e,this.optionLabel):null!=e.label?e.label:e}getOptionValue(e){return
this.optionValue?Z.resolveFieldData(e,this.optionValue):this.optionLabel||void
0===e.value?e:e.value}getOptionGroupLabel(e){return
this.optionGroupLabel?Z.resolveFieldData(e,this.optionGroupLabel):null!=e.label?e.label:e}getOptionGroupChildren(e){return
this.optionGroupChildren?Z.resolveFieldData(e,this.optionGroupChildren):e.items}isOptionDisabled(e){return(this.optionDisabled?Z.resolveFieldData(e,this.optionDisabled):void
0!==e.disabled&&e.disabled)||this.maxSelectionLimitReached&&!this.isSelected(e)}writeValue(e){this.
value=e,this.updateLabel(),this.updateFilledState(),this.checkSelectionLimit(),this.cd.markForCheck()}checkSelectionLimit(){this.maxSelectionLimitReached=!(!this.selectionLimit||!this.value||this.value.length!==this.selectionLimit)}updateFilledState(){this.filled=this.value&&this.value.length>0}registerOnChange(e){this.onModelChange=e}registerOnTouched(e){this.onModelTouched=e}setDisabledState(e){this.disabled=e,this.cd.markForCheck()}onOptionClick(e){let
n=e.option;if(this.isOptionDisabled(n))return;let
s=this.getOptionValue(n),r=this.findSelectionIndex(s);-1!=r?(this.value=this.value.filter((o,u)=>u!=r),this.selectionLimit&&(this.maxSelectionLimitReached=!1)):((!this.selectionLimit||!this.value||this.value.length<this.selectionLimit)&&(this.value=[...this.value||[],s]),this.checkSelectionLimit()),this.onModelChange(this.value),this.onChange.emit({originalEvent:e.originalEvent,value:this.value,itemValue:s}),this.updateLabel(),this.updateFilledState()}isSelected(e){return-1!=this.fi
ndSelectionIndex(this.getOptionValue(e))}findSelectionIndex(e){let
n=-1;if(this.value)for(let
s=0;s<this.value.length;s++)if(Z.equals(this.value[s],e,this.dataKey)){n=s;break}return
n}get toggleAllDisabled(){let e=this.optionsToRender;if(!e||0===e.length)return!0;for(let
n of
e)if(!this.isOptionDisabled(n))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}),this.updateFilledState(),this.updateLabel(),e.preventDefault())}checkAll(){let
n=[];this.optionsToRender.forEach(s=>{if(this.group){let
r=this.getOptionGroupChildren(s);r&&r.forEach(o=>{let
u=this.isOptionDisabled(o);(!u||u&&this.isSelected(o))&&n.push(this.getOptionValue(o))})}else{let
r=this.isOptionDisabled(s);(!r||r&&this.isSelected(s))&&n.push(this.getOptionValue(s))}}),this.value=n}uncheckAll(){let
n=[];this.optionsToRender.forEach(s=>{this.group?s.items&&s
.items.forEach(r=>{this.isOptionDisabled(r)&&this.isSelected(r)&&n.push(this.getOptionValue(r))}):this.isOptionDisabled(s)&&this.isSelected(s)&&n.push(this.getOptionValue(s))}),this.value=n}show(){this.overlayVisible||(this.overlayVisible=!0,this.preventDocumentDefault=!0,this.cd.markForCheck())}onOverlayClick(e){this.overlayService.add({originalEvent:e,target:this.el.nativeElement})}onOverlayAnimationStart(e){switch(e.toState){case"visible":this.overlay=e.element,this.appendOverlay(),this.autoZIndex&&dt.set("overlay",this.overlay,this.baseZIndex+this.config.zIndex.overlay),this.alignOverlay(),this.bindDocumentClickListener(),this.bindDocumentResizeListener(),this.bindScrollListener(),this.filterInputChild&&this.filterInputChild.nativeElement&&(this.preventModelTouched=!0,this.autofocusFilter&&this.filterInputChild.nativeElement.focus()),this.onPanelShow.emit();break;case"void":this.onOverlayHide()}}onOverlayAnimationEnd(e){"void"===e.toState&&dt.clear(e.element)}appendOverlay(){thi
s.appendTo&&("body"===this.appendTo?document.body.appendChild(this.overlay):R.appendChild(this.overlay,this.appendTo),this.overlay.style.minWidth||(this.overlay.style.minWidth=R.getWidth(this.containerViewChild.nativeElement)+"px"))}restoreOverlayAppend(){this.overlay&&this.appendTo&&this.el.nativeElement.appendChild(this.overlay)}alignOverlay(){this.overlay&&(this.appendTo?R.absolutePosition(this.overlay,this.containerViewChild.nativeElement):R.relativePosition(this.overlay,this.containerViewChild.nativeElement))}hide(){this.overlayVisible=!1,this.unbindDocumentClickListener(),this.resetFilterOnHide&&(this.filterInputChild.nativeElement.value="",this._filterValue=null,this._filteredOptions=null),this.onPanelHide.emit(),this.cd.markForCheck()}close(e){this.hide(),e.preventDefault(),e.stopPropagation()}clear(e){this.value=null,this.updateLabel(),this.updateFilledState(),this.onClear.emit(),this.onModelChange(this.value),e.stopPropagation()}onMouseclick(e,n){this.disabled||this.readon
ly||e.target.isSameNode(this.accessibleViewChild.nativeElement)||(this.onClick.emit(e),!this.isOverlayClick(e)&&!R.hasClass(e.target,"p-multiselect-token-icon")&&(this.overlayVisible?this.hide():(n.focus(),this.show())))}removeChip(e,n){this.value=this.value.filter(s=>!Z.equals(s,e,this.dataKey)),this.onModelChange(this.value),this.checkSelectionLimit(),this.onChange.emit({originalEvent:n,value:this.value,itemValue:e}),this.updateLabel(),this.updateFilledState()}isOverlayClick(e){let
n=e.target;return!!this.overlay&&(this.overlay.isSameNode(n)||this.overlay.contains(n))}isOutsideClicked(e){return!(this.el.nativeElement.isSameNode(e.target)||this.el.nativeElement.contains(e.target)||this.isOverlayClick(e))}onInputFocus(e){this.focus=!0,this.onFocus.emit({originalEvent:e})}onInputBlur(e){this.focus=!1,this.onBlur.emit({originalEvent:e}),this.preventModelTouched||this.onModelTouched(),this.preventModelTouched=!1}onOptionKeydown(e){if(!this.readonly)switch(e.originalEvent.which){case
40
:var
n=this.findNextItem(e.originalEvent.target.parentElement);n&&n.focus(),e.originalEvent.preventDefault();break;case
38:var
s=this.findPrevItem(e.originalEvent.target.parentElement);s&&s.focus(),e.originalEvent.preventDefault();break;case
13:this.onOptionClick(e),e.originalEvent.preventDefault();break;case
9:this.hide()}}findNextItem(e){let n=e.nextElementSibling;return
n?R.hasClass(n.children[0],"p-disabled")||R.isHidden(n.children[0])||R.hasClass(n,"p-multiselect-item-group")?this.findNextItem(n):n.children[0]:null}findPrevItem(e){let
n=e.previousElementSibling;return
n?R.hasClass(n.children[0],"p-disabled")||R.isHidden(n.children[0])||R.hasClass(n,"p-multiselect-item-group")?this.findPrevItem(n):n.children[0]:null}onKeydown(e){switch(e.which){case
40:!this.overlayVisible&&e.altKey&&(this.show(),e.preventDefault());break;case
32:this.overlayVisible||(this.show(),e.preventDefault());break;case
27:this.hide()}}updateLabel(){if(this.value&&this.options&&this.value.length&&this.dis
playSelectedLabel){let e="";for(let n=0;n<this.value.length;n++){let
s=this.findLabelByValue(this.value[n]);s&&(e.length>0&&(e+=",
"),e+=s)}if(this.value.length<=this.maxSelectedLabels||"ellipsis"===this.selectedItemsLabel)this.valuesAsString=e;else{let
n=/{(.*?)}/;this.valuesAsString=n.test(this.selectedItemsLabel)?this.selectedItemsLabel.replace(this.selectedItemsLabel.match(n)[0],this.value.length+""):this.selectedItemsLabel}}else
this.valuesAsString=this.placeholder||this.defaultLabel}findLabelByValue(e){if(this.group){let
n=null;for(let s=0;s<this.options.length;s++){let
r=this.getOptionGroupChildren(this.options[s]);if(r&&(n=this.searchLabelByValue(e,r),n))break}return
n}return this.searchLabelByValue(e,this.options)}searchLabelByValue(e,n){let
s=null;for(let r=0;r<n.length;r++){let
o=n[r],u=this.getOptionValue(o);if(null==e&&null==u||Z.equals(e,u,this.dataKey)){s=this.getOptionLabel(o);break}}return
s}get allChecked(){let e=this.optionsToRender;if(!e||0===e.length)return!1;{l
et n=0,s=0,r=0,o=this.group?0:this.optionsToRender.length;for(let u of
e)if(this.group)for(let h of this.getOptionGroupChildren(u)){let
b=this.isOptionDisabled(h),y=this.isSelected(h);if(b)y?n++:s++;else{if(!y)return!1;r++}o++}else{let
h=this.isOptionDisabled(u),b=this.isSelected(u);if(h)b?n++:s++;else{if(!b)return!1;r++}}return
o===n||o===r||r&&o===r+s+n}}get optionsToRender(){return
this._filteredOptions||this.options}get emptyOptions(){let
e=this.optionsToRender;return!e||0===e.length}get emptyMessageLabel(){return
this.emptyMessage||this.config.getTranslation(Ft.EMPTY_MESSAGE)}get
emptyFilterMessageLabel(){return
this.emptyFilterMessage||this.config.getTranslation(Ft.EMPTY_FILTER_MESSAGE)}hasFilter(){return
this._filterValue&&this._filterValue.trim().length>0}onFilterInputChange(e){this._filterValue=e.target.value,this.activateFilter(),this.onFilter.emit({originalEvent:e,filter:this._filterValue}),this.cd.detectChanges(),this.alignOverlay()}activateFilter(){if(this.hasFilter()&&
this._options){let
e=(this.filterBy||this.optionLabel||"label").split(",");if(this.group){let
n=[];for(let s of this.options){let
r=this.filterService.filter(this.getOptionGroupChildren(s),e,this.filterValue,this.filterMatchMode,this.filterLocale);r&&r.length&&n.push(Object.assign(Object.assign({},s),{[this.optionGroupChildren]:r}))}this._filteredOptions=n}else
this._filteredOptions=this.filterService.filter(this.options,e,this._filterValue,this.filterMatchMode,this.filterLocale)}else
this._filteredOptions=null}onHeaderCheckboxFocus(){this.headerCheckboxFocus=!0}onHeaderCheckboxBlur(){this.headerCheckboxFocus=!1}bindDocumentClickListener(){this.documentClickListener||(this.documentClickListener=this.renderer.listen(this.el?this.el.nativeElement.ownerDocument:"document","click",n=>{!this.preventDocumentDefault&&this.isOutsideClicked(n)&&this.hide(),this.preventDocumentDefault=!1}))}unbindDocumentClickListener(){this.documentClickListener&&(this.documentClickListener(),this.documentCl
ickListener=null)}bindDocumentResizeListener(){this.documentResizeListener=this.onWindowResize.bind(this),window.addEventListener("resize",this.documentResizeListener)}unbindDocumentResizeListener(){this.documentResizeListener&&(window.removeEventListener("resize",this.documentResizeListener),this.documentResizeListener=null)}onWindowResize(){R.isAndroid()||this.hide()}bindScrollListener(){this.scrollHandler||(this.scrollHandler=new
Qs(this.containerViewChild.nativeElement,()=>{this.overlayVisible&&this.hide()})),this.scrollHandler.bindScrollListener()}unbindScrollListener(){this.scrollHandler&&this.scrollHandler.unbindScrollListener()}onOverlayHide(){this.unbindDocumentClickListener(),this.unbindDocumentResizeListener(),this.unbindScrollListener(),this.overlay=null,this.onModelTouched()}ngOnDestroy(){this.scrollHandler&&(this.scrollHandler.destroy(),this.scrollHandler=null),this.overlay&&dt.clear(this.overlay),this.restoreOverlayAppend(),this.onOverlayHide()}}return
t.\u0275fac=fun
ction(e){return
new(e||t)(D(De),D(gn),D(rt),D(hl),D(zn),D(Ks))},t.\u0275cmp=z({type:t,selectors:[["p-multiSelect"]],contentQueries:function(e,n,s){if(1&e&&(st(s,fl,5),st(s,Oo,5),st(s,ne,4)),2&e){let
r;V(r=B())&&(n.footerFacet=r.first),V(r=B())&&(n.headerFacet=r.first),V(r=B())&&(n.templates=r)}},viewQuery:function(e,n){if(1&e&&(W(Vz,5),W(Bz,5),W(Hz,5)),2&e){let
s;V(s=B())&&(n.containerViewChild=s.first),V(s=B())&&(n.filterInputChild=s.first),V(s=B())&&(n.accessibleViewChild=s.first)}},hostAttrs:[1,"p-element","p-inputwrapper"],hostVars:6,hostBindings:function(e,n){2&e&&si("p-inputwrapper-filled",n.filled)("p-inputwrapper-focus",n.focus||n.overlayVisible)("p-multiselect-clearable",n.showClear&&!n.disabled)},inputs:{style:"style",styleClass:"styleClass",panelStyle:"panelStyle",panelStyleClass:"panelStyleClass",inputId:"inputId",disabled:"disabled",readonly:"readonly",group:"group",filter:"filter",filterPlaceHolder:"filterPlaceHolder",filterLocale:"filterLocale",overlayVisible:"overlay
Visible",tabindex:"tabindex",appendTo:"appendTo",dataKey:"dataKey",name:"name",label:"label",ariaLabelledBy:"ariaLabelledBy",displaySelectedLabel:"displaySelectedLabel",maxSelectedLabels:"maxSelectedLabels",selectionLimit:"selectionLimit",selectedItemsLabel:"selectedItemsLabel",showToggleAll:"showToggleAll",emptyFilterMessage:"emptyFilterMessage",emptyMessage:"emptyMessage",resetFilterOnHide:"resetFilterOnHide",dropdownIcon:"dropdownIcon",optionLabel:"optionLabel",optionValue:"optionValue",optionDisabled:"optionDisabled",optionGroupLabel:"optionGroupLabel",optionGroupChildren:"optionGroupChildren",showHeader:"showHeader",autoZIndex:"autoZIndex",baseZIndex:"baseZIndex",filterBy:"filterBy",virtualScroll:"virtualScroll",itemSize:"itemSize",showTransitionOptions:"showTransitionOptions",hideTransitionOptions:"hideTransitionOptions",ariaFilterLabel:"ariaFilterLabel",filterMatchMode:"filterMatchMode",tooltip:"tooltip",tooltipPosition:"tooltipPosition",tooltipPositionStyle:"tooltipPositionS
tyle",tooltipStyleClass:"tooltipStyleClass",autofocusFilter:"autofocusFilter",display:"display",autocomplete:"autocomplete",showClear:"showClear",scrollHeight:"scrollHeight",defaultLabel:"defaultLabel",placeholder:"placeholder",options:"options",filterValue:"filterValue"},outputs:{onChange:"onChange",onFilter:"onFilter",onFocus:"onFocus",onBlur:"onBlur",onClick:"onClick",onClear:"onClear",onPanelShow:"onPanelShow",onPanelHide:"onPanelHide"},features:[Pe([Lj])],ngContentSelectors:Rj,decls:13,vars:34,consts:[[3,"ngClass","ngStyle","click"],["container",""],[1,"p-hidden-accessible"],["type","text","readonly","readonly","aria-haspopup","listbox","role","listbox",3,"disabled","focus","blur","keydown"],["in",""],[1,"p-multiselect-label-container",3,"pTooltip","tooltipPosition","positionStyle","tooltipStyleClass"],[1,"p-multiselect-label",3,"ngClass"],[4,"ngIf"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],["class","p-multiselect-clear-icon
pi pi-times",3,"click",4,"ngIf"],[3,"ngClass"
],[1,"p-multiselect-trigger-icon",3,"ngClass"],["onOverlayAnimationEnd","",3,"ngClass","ngStyle","class","keydown","click",4,"ngIf"],["class","p-multiselect-token",4,"ngFor","ngForOf"],[1,"p-multiselect-token"],["token",""],[1,"p-multiselect-token-label"],["class","p-multiselect-token-icon
pi
pi-times-circle",3,"click",4,"ngIf"],[1,"p-multiselect-token-icon","pi","pi-times-circle",3,"click"],[1,"p-multiselect-clear-icon","pi","pi-times",3,"click"],["onOverlayAnimationEnd","",3,"ngClass","ngStyle","keydown","click"],["class","p-multiselect-header",4,"ngIf"],[1,"p-multiselect-items-wrapper"],["role","listbox","aria-multiselectable","true",1,"p-multiselect-items","p-component",3,"ngClass"],["itemslist",""],["class","p-multiselect-footer",4,"ngIf"],[1,"p-multiselect-header"],[4,"ngTemplateOutlet"],["class","p-checkbox
p-component",3,"ngClass",4,"ngIf"],["class","p-multiselect-filter-container",4,"ngIf"],["type","button","pRipple","",1,"p-multiselect-close","p-link",3,"click"],[1,"p-mult
iselect-close-icon","pi","pi-times"],[1,"p-checkbox","p-component",3,"ngClass"],["type","checkbox","readonly","readonly",3,"checked","disabled","focus","blur","keydown.space"],["role","checkbox",1,"p-checkbox-box",3,"ngClass","click"],[1,"p-checkbox-icon",3,"ngClass"],[1,"p-multiselect-filter-container"],["type","text","role","textbox",1,"p-multiselect-filter","p-inputtext","p-component",3,"value","disabled","input"],["filterInput",""],[1,"p-multiselect-filter-icon","pi","pi-search"],["ngFor","",3,"ngForOf"],[1,"p-multiselect-item-group"],[4,"ngIf","ngIfElse"],["virtualScrollList",""],["class","p-multiselect-empty-message",4,"ngIf"],[3,"option","selected","label","disabled","template","onClick","onKeydown"],[3,"ngStyle","itemSize",4,"ngIf"],[3,"ngStyle","itemSize"],["viewport",""],[4,"cdkVirtualFor","cdkVirtualForOf"],[3,"option","selected","label","disabled","template","itemSize","onClick","onKeydown"],[1,"p-multiselect-empty-message"],["emptyFilter",""],["empty",""],[1,"p-multisel
ect-footer"]],template:function(e,n){if(1&e){const
s=I();Sn(Mj),l(0,"div",0,1),C("click",function(o){v(s);const
u=F(4);return
n.onMouseclick(o,u)}),l(2,"div",2)(3,"input",3,4),C("focus",function(o){return
n.onInputFocus(o)})("blur",function(o){return
n.onInputBlur(o)})("keydown",function(o){return
n.onKeydown(o)}),c()(),l(5,"div",5)(6,"div",6),_(7,$z,3,2,"ng-container",7),_(8,Wz,1,0,"ng-container",8),c(),_(9,Kz,1,0,"i",9),c(),l(10,"div",10),k(11,"span",11),c(),_(12,Dj,9,20,"div",12),c()}2&e&&(me(n.styleClass),p("ngClass",qn(23,kj,n.overlayVisible,"chip"===n.display,n.focus,n.disabled))("ngStyle",n.style),a(3),p("disabled",n.disabled),ie("label",n.label)("id",n.inputId)("name",n.name)("tabindex",n.tabindex)("aria-expanded",n.overlayVisible)("aria-labelledby",n.ariaLabelledBy),a(2),p("pTooltip",n.tooltip)("tooltipPosition",n.tooltipPosition)("positionStyle",n.tooltipPositionStyle)("tooltipStyleClass",n.tooltipStyleClass),a(1),p("ngClass",Ge(28,Ij,n.valuesAsString===(n.defaultLabel||n.
placeholder),!(null!=n.valuesAsString&&0!==n.valuesAsString.length||null!=n.placeholder&&0!==n.placeholder.length))),a(1),p("ngIf",!n.selectedItemsTemplate),a(1),p("ngTemplateOutlet",n.selectedItemsTemplate)("ngTemplateOutletContext",U(31,Rl,n.value)),a(1),p("ngIf",null!=n.value&&n.filled&&!n.disabled&&n.showClear),a(1),p("ngClass",A(33,Ej)),a(1),p("ngClass",n.dropdownIcon),a(1),p("ngIf",n.overlayVisible))},directives:[Oj,Po,Le,lt,Kt,Q,at,Rt,bt,Qf,Jf],styles:[".p-multiselect{display:inline-flex;cursor:pointer;position:relative;-webkit-user-select:none;user-select:none}.p-multiselect-trigger{display:flex;align-items:center;justify-content:center;flex-shrink:0}.p-multiselect-label-container{overflow:hidden;flex:1
1
auto;cursor:pointer}.p-multiselect-label{display:block;white-space:nowrap;cursor:pointer;overflow:hidden;text-overflow:ellipsis}.p-multiselect-label-empty{overflow:hidden;visibility:hidden}.p-multiselect-token{cursor:default;display:inline-flex;align-items:center;flex:0
0 a
uto}.p-multiselect-token-icon{cursor:pointer}.p-multiselect
.p-multiselect-panel{min-width:100%}.p-multiselect-panel{position:absolute;top:0;left:0}.p-multiselect-items-wrapper{overflow:auto}.p-multiselect-items{margin:0;padding:0;list-style-type:none}.p-multiselect-item{cursor:pointer;display:flex;align-items:center;font-weight:400;white-space:nowrap;position:relative;overflow:hidden}.p-multiselect-header{display:flex;align-items:center;justify-content:space-between}.p-multiselect-filter-container{position:relative;flex:1
1
auto}.p-multiselect-filter-icon{position:absolute;top:50%;margin-top:-.5rem}.p-multiselect-filter-container
.p-inputtext{width:100%}.p-multiselect-close{display:flex;align-items:center;justify-content:center;flex-shrink:0;overflow:hidden;position:relative}.p-fluid
.p-multiselect{display:flex}.p-multiselect-clear-icon{position:absolute;top:50%;margin-top:-.5rem;cursor:pointer}.p-multiselect-clearable{position:relative}\n"],encapsulation:2,data:{animation:[wi("ove
rlayAnimation",[Lt(":enter",[it({opacity:0,transform:"scaleY(0.8)"}),kt("{{showTransitionParams}}")]),Lt(":leave",[kt("{{hideTransitionParams}}",it({opacity:0}))])])]},changeDetection:0}),t})(),Aj=(()=>{class
t{}return t.\u0275fac=function(e){return
new(e||t)},t.\u0275mod=he({type:t}),t.\u0275inj=ue({imports:[[Fe,Nt,Fo,jn,pn],Nt,Fo]}),t})(),e$=(()=>{class
t{}return t.\u0275fac=function(e){return
new(e||t)},t.\u0275mod=he({type:t}),t.\u0275inj=ue({imports:[[Fe,vn,jn],vn,jn]}),t})(),tS=(()=>{class
t{constructor(e,n,s,r){this.el=e,this.ngModel=n,this.control=s,this.cd=r,this.onResize=new
H}ngOnInit(){this.ngModel&&(this.ngModelSubscription=this.ngModel.valueChanges.subscribe(()=>{this.updateState()})),this.control&&(this.ngControlSubscription=this.control.valueChanges.subscribe(()=>{this.updateState()}))}ngAfterViewInit(){this.autoResize&&this.resize(),this.updateFilledState(),this.cd.detectChanges()}onInput(e){this.updateState()}updateFilledState(){this.filled=this.el.nativeElement.va
lue&&this.el.nativeElement.value.length}onFocus(e){this.autoResize&&this.resize(e)}onBlur(e){this.autoResize&&this.resize(e)}resize(e){this.el.nativeElement.style.height="auto",this.el.nativeElement.style.height=this.el.nativeElement.scrollHeight+"px",parseFloat(this.el.nativeElement.style.height)>=parseFloat(this.el.nativeElement.style.maxHeight)?(this.el.nativeElement.style.overflowY="scroll",this.el.nativeElement.style.height=this.el.nativeElement.style.maxHeight):this.el.nativeElement.style.overflow="hidden",this.onResize.emit(e||{})}updateState(){this.updateFilledState(),this.autoResize&&this.resize()}ngOnDestroy(){this.ngModelSubscription&&this.ngModelSubscription.unsubscribe(),this.ngControlSubscription&&this.ngControlSubscription.unsubscribe()}}return
t.\u0275fac=function(e){return
new(e||t)(D(De),D(_e,8),D(ss,8),D(rt))},t.\u0275dir=le({type:t,selectors:[["","pInputTextarea",""]],hostAttrs:[1,"p-inputtextarea","p-inputtext","p-component","p-element"],hostVars:4,hostBindings:
function(e,n){1&e&&C("input",function(r){return
n.onInput(r)})("focus",function(r){return
n.onFocus(r)})("blur",function(r){return
n.onBlur(r)}),2&e&&si("p-filled",n.filled)("p-inputtextarea-resizable",n.autoResize)},inputs:{autoResize:"autoResize"},outputs:{onResize:"onResize"}}),t})(),t$=(()=>{class
t{}return t.\u0275fac=function(e){return
new(e||t)},t.\u0275mod=he({type:t}),t.\u0275inj=ue({imports:[[Fe]]}),t})();const
n$=["sublist"],i$=function(t){return{"p-hidden":t}};function
s$(t,i){if(1&t&&k(0,"li",5),2&t){const
e=d().$implicit;p("ngClass",U(1,i$,!1===e.visible))}}function
r$(t,i){if(1&t&&k(0,"span",16),2&t){const
e=d(3).$implicit;p("ngClass",e.icon)("ngStyle",e.iconStyle)}}function
o$(t,i){if(1&t&&(l(0,"span",17),g(1),c()),2&t){const
e=d(3).$implicit;a(1),S(e.label)}}function
a$(t,i){1&t&&k(0,"span",18),2&t&&p("innerHTML",d(3).$implicit.label,Bt)}function
l$(t,i){1&t&&k(0,"span",19)}const
nS=function(t){return{"p-menuitem-link":!0,"p-disabled":t}};function
c$(t,i){if(1&t){co
nst e=I();l(0,"a",11),C("keydown",function(s){v(e);const
r=d(2).$implicit;return d().onItemKeyDown(s,r)})("click",function(s){v(e);const
r=d(2).$implicit;return
d().onItemClick(s,r)})("mouseenter",function(s){v(e);const
r=d(2).$implicit;return
d().onItemMouseEnter(s,r)}),_(1,r$,1,2,"span",12),_(2,o$,2,1,"span",13),_(3,a$,1,1,"ng-template",null,14,we),_(5,l$,1,0,"span",15),c()}if(2&t){const
e=F(4),n=d(2).$implicit,s=d();p("target",n.target)("ngClass",U(13,nS,n.disabled)),ie("href",n.url,ln)("data-automationid",n.automationId)("title",n.title)("id",n.id)("tabindex",n.disabled?null:"0")("aria-haspopup",null!=s.item.items)("aria-expanded",s.item===s.activeItem),a(1),p("ngIf",n.icon),a(1),p("ngIf",!1!==n.escape)("ngIfElse",e),a(3),p("ngIf",n.items)}}function
u$(t,i){if(1&t&&k(0,"span",16),2&t){const
e=d(3).$implicit;p("ngClass",e.icon)("ngStyle",e.iconStyle)}}function
d$(t,i){if(1&t&&(l(0,"span",17),g(1),c()),2&t){const
e=d(3).$implicit;a(1),S(e.label)}}function
p$(t,i){1&t&&k(0,"span",1
8),2&t&&p("innerHTML",d(3).$implicit.label,Bt)}function
h$(t,i){1&t&&k(0,"span",19)}const
m$=function(){return{exact:!1}};function f$(t,i){if(1&t){const
e=I();l(0,"a",20),C("keydown",function(s){v(e);const
r=d(2).$implicit;return d().onItemKeyDown(s,r)})("click",function(s){v(e);const
r=d(2).$implicit;return
d().onItemClick(s,r)})("mouseenter",function(s){v(e);const
r=d(2).$implicit;return
d().onItemMouseEnter(s,r)}),_(1,u$,1,2,"span",12),_(2,d$,2,1,"span",13),_(3,p$,1,1,"ng-template",null,21,we),_(5,h$,1,0,"span",15),c()}if(2&t){const
e=F(4),n=d(2).$implicit;p("routerLink",n.routerLink)("queryParams",n.queryParams)("routerLinkActive","p-menuitem-link-active")("routerLinkActiveOptions",n.routerLinkActiveOptions||A(20,m$))("target",n.target)("ngClass",U(21,nS,n.disabled))("fragment",n.fragment)("queryParamsHandling",n.queryParamsHandling)("preserveFragment",n.preserveFragment)("skipLocationChange",n.skipLocationChange)("replaceUrl",n.replaceUrl)("state",n.state),ie("data-automationid
",n.automationId)("title",n.title)("id",n.id)("tabindex",n.disabled?null:"0"),a(1),p("ngIf",n.icon),a(1),p("ngIf",!1!==n.escape)("ngIfElse",e),a(3),p("ngIf",n.items)}}function
g$(t,i){if(1&t){const
e=I();l(0,"p-tieredMenuSub",22),C("keydownItem",function(s){return
v(e),d(3).onChildItemKeyDown(s)})("leafClick",function(){return
v(e),d(3).onLeafClick()}),c()}if(2&t){const
e=d(2).$implicit,n=d();p("parentActive",e===n.activeItem)("item",e)("mobileActive",n.mobileActive)("autoDisplay",n.autoDisplay)("popup",n.popup)}}const
_$=function(t,i){return{"p-menuitem":!0,"p-menuitem-active":t,"p-hidden":i}};function
b$(t,i){if(1&t&&(l(0,"li",6,7),_(2,c$,6,15,"a",8),_(3,f$,6,23,"a",9),_(4,g$,1,5,"p-tieredMenuSub",10),c()),2&t){const
e=d().$implicit,n=d();me(e.styleClass),p("ngClass",Ge(8,_$,e===n.activeItem,!1===e.visible))("ngStyle",e.style)("tooltipOptions",e.tooltipOptions),a(2),p("ngIf",!e.routerLink),a(1),p("ngIf",e.routerLink),a(1),p("ngIf",e.items)}}function
v$(t,i){if(1&t&&(_(0,s$,1,3,"li
",3),_(1,b$,5,11,"li",4)),2&t){const
e=i.$implicit;p("ngIf",e.separator),a(1),p("ngIf",!e.separator)}}const
C$=function(t){return{"p-submenu-list":t}},y$=function(t){return{"p-tieredmenu
p-component":!0,"p-tieredmenu-overlay":t}},w$=function(t,i){return{showTransitionParams:t,hideTransitionParams:i}},T$=function(t){return{value:"visible",params:t}};function
S$(t,i){if(1&t){const
e=I();l(0,"div",1),C("click",function(s){return
v(e),d().onOverlayClick(s)})("(a)overlayAnimation.start",function(s){return
v(e),d().onOverlayAnimationStart(s)})("(a)overlayAnimation.done",function(s){return
v(e),d().onOverlayAnimationEnd(s)}),l(1,"p-tieredMenuSub",2),C("leafClick",function(){return
v(e),d().onLeafClick()}),c()()}if(2&t){const
e=d();me(e.styleClass),p("ngClass",U(12,y$,e.popup))("ngStyle",e.style)("@overlayAnimation",U(17,T$,Ge(14,w$,e.showTransitionOptions,e.hideTransitionOptions)))("@.disabled",!0!==e.popup),a(1),p("item",e.model)("parentActive",e.parentActive)("baseZIndex",e.baseZIndex)("auto
ZIndex",e.autoZIndex)("autoDisplay",e.autoDisplay)("popup",e.popup)}}let
x$=(()=>{class
t{constructor(e,n,s){this.el=e,this.renderer=n,this.cd=s,this.autoZIndex=!0,this.baseZIndex=0,this.leafClick=new
H,this.keydownItem=new H,this.menuHoverActive=!1}get parentActive(){return
this._parentActive}set
parentActive(e){this.root||(this._parentActive=e,e?this.positionSubmenu():this.activeItem=null)}onItemClick(e,n){n.disabled?e.preventDefault():(!n.url&&!n.routerLink&&e.preventDefault(),n.command&&n.command({originalEvent:e,item:n}),n.items&&(this.activeItem&&n===this.activeItem?(this.activeItem=null,this.unbindDocumentClickListener()):(this.activeItem=n,this.root&&this.bindDocumentClickListener())),n.items||this.onLeafClick())}onItemMouseEnter(e,n){n.disabled||this.mobileActive?e.preventDefault():this.root?(this.activeItem||this.autoDisplay||this.popup)&&(this.activeItem=n,this.bindDocumentClickListener()):(this.activeItem=n,this.bindDocumentClickListener())}onLeafClick(){this.activeItem=
null,this.root&&this.unbindDocumentClickListener(),this.leafClick.emit()}onItemKeyDown(e,n){let
s=e.currentTarget.parentElement;switch(e.key){case"ArrowDown":var
r=this.findNextItem(s);r&&r.children[0].focus(),e.preventDefault();break;case"ArrowUp":var
o=this.findPrevItem(s);o&&o.children[0].focus(),e.preventDefault();break;case"ArrowRight":n.items&&(this.activeItem=n,this.root&&this.bindDocumentClickListener(),setTimeout(()=>{s.children[1].children[0].children[0].children[0].focus()},50)),e.preventDefault()}this.keydownItem.emit({originalEvent:e,element:s})}positionSubmenu(){let
e=this.sublistViewChild&&this.sublistViewChild.nativeElement;if(e){const
n=e.parentElement.parentElement,s=R.getOffset(n),r=R.getViewport(),o=e.offsetParent?e.offsetWidth:R.getHiddenElementOuterWidth(e),u=R.getOuterWidth(n.children[0]);parseInt(s.left,10)+u+o>r.width-R.calculateScrollbarWidth()&&R.addClass(e,"p-submenu-list-flipped")}}findNextItem(e){let
n=e.nextElementSibling;return n?R.hasClass(n,"p-disab
led")||!R.hasClass(n,"p-menuitem")?this.findNextItem(n):n:null}findPrevItem(e){let
n=e.previousElementSibling;return
n?R.hasClass(n,"p-disabled")||!R.hasClass(n,"p-menuitem")?this.findPrevItem(n):n:null}onChildItemKeyDown(e){"ArrowLeft"===e.originalEvent.key&&(this.activeItem=null,this.root&&this.unbindDocumentClickListener(),e.element.parentElement.parentElement.parentElement.children[0].focus())}bindDocumentClickListener(){this.documentClickListener||(this.documentClickListener=e=>{this.el&&!this.el.nativeElement.contains(e.target)&&(this.activeItem=null,this.cd.markForCheck(),this.unbindDocumentClickListener())},document.addEventListener("click",this.documentClickListener))}unbindDocumentClickListener(){this.documentClickListener&&(document.removeEventListener("click",this.documentClickListener),this.documentClickListener=null)}ngOnDestroy(){this.unbindDocumentClickListener()}}return
t.\u0275fac=function(e){return
new(e||t)(D(De),D(gn),D(rt))},t.\u0275cmp=z({type:t,selectors:[["p
-tieredMenuSub"]],viewQuery:function(e,n){if(1&e&&W(n$,5),2&e){let
s;V(s=B())&&(n.sublistViewChild=s.first)}},hostAttrs:[1,"p-element"],inputs:{item:"item",root:"root",autoDisplay:"autoDisplay",autoZIndex:"autoZIndex",baseZIndex:"baseZIndex",mobileActive:"mobileActive",popup:"popup",parentActive:"parentActive"},outputs:{leafClick:"leafClick",keydownItem:"keydownItem"},decls:3,vars:4,consts:[[3,"ngClass"],["sublist",""],["ngFor","",3,"ngForOf"],["class","p-menu-separator",3,"ngClass",4,"ngIf"],["pTooltip","",3,"ngClass","ngStyle","class","tooltipOptions",4,"ngIf"],[1,"p-menu-separator",3,"ngClass"],["pTooltip","",3,"ngClass","ngStyle","tooltipOptions"],["listItem",""],["pRipple","",3,"target","ngClass","keydown","click","mouseenter",4,"ngIf"],["role","menuitem","pRipple","",3,"routerLink","queryParams","routerLinkActive","routerLinkActiveOptions","target","ngClass","fragment","queryParamsHandling","preserveFragment","skipLocationChange","replaceUrl","state","keydown","click","mouseen
ter",4,"ngIf"],[3,"parentActive","item","mobileActive","autoDisplay","popup","keydownItem","leafClick",4,"ngIf"],["pRipple","",3,"target","ngClass","keydown","click","mouseenter"],["class","p-menuitem-icon",3,"ngClass","ngStyle",4,"ngIf"],["class","p-menuitem-text",4,"ngIf","ngIfElse"],["htmlLabel",""],["class","p-submenu-icon
pi
pi-angle-right",4,"ngIf"],[1,"p-menuitem-icon",3,"ngClass","ngStyle"],[1,"p-menuitem-text"],[1,"p-menuitem-text",3,"innerHTML"],[1,"p-submenu-icon","pi","pi-angle-right"],["role","menuitem","pRipple","",3,"routerLink","queryParams","routerLinkActive","routerLinkActiveOptions","target","ngClass","fragment","queryParamsHandling","preserveFragment","skipLocationChange","replaceUrl","state","keydown","click","mouseenter"],["htmlRouteLabel",""],[3,"parentActive","item","mobileActive","autoDisplay","popup","keydownItem","leafClick"]],template:function(e,n){1&e&&(l(0,"ul",0,1),_(2,v$,2,2,"ng-template",2),c()),2&e&&(p("ngClass",U(2,C$,!n.root)),a(2),p("ngForOf",n.r
oot?n.item:n.item.items))},directives:[t,Le,at,Q,Kt,lt,bt,Ho,_d],encapsulation:2}),t})(),D$=(()=>{class
t{constructor(e,n,s,r,o){this.el=e,this.renderer=n,this.cd=s,this.config=r,this.overlayService=o,this.autoZIndex=!0,this.baseZIndex=0,this.showTransitionOptions=".12s
cubic-bezier(0, 0, 0.2, 1)",this.hideTransitionOptions=".1s
linear"}toggle(e){this.visible?this.hide():this.show(e),this.preventDocumentDefault=!0}show(e){this.target=e.currentTarget,this.relativeAlign=e.relativeAlign,this.visible=!0,this.parentActive=!0,this.preventDocumentDefault=!0,this.cd.markForCheck()}onOverlayClick(e){this.popup&&this.overlayService.add({originalEvent:e,target:this.el.nativeElement}),this.preventDocumentDefault=!0}onOverlayAnimationStart(e){switch(e.toState){case"visible":this.popup&&(this.container=e.element,this.moveOnTop(),this.appendOverlay(),this.alignOverlay(),this.bindDocumentClickListener(),this.bindDocumentResizeListener(),this.bindScrollListener());break;case"void":this.onOverlayHide
()}}alignOverlay(){this.relativeAlign?R.relativePosition(this.container,this.target):R.absolutePosition(this.container,this.target)}onOverlayAnimationEnd(e){"void"===e.toState&&dt.clear(e.element)}appendOverlay(){this.appendTo&&("body"===this.appendTo?document.body.appendChild(this.container):R.appendChild(this.container,this.appendTo))}restoreOverlayAppend(){this.container&&this.appendTo&&this.el.nativeElement.appendChild(this.container)}moveOnTop(){this.autoZIndex&&dt.set("menu",this.container,this.baseZIndex+this.config.zIndex.menu)}hide(){this.visible=!1,this.relativeAlign=!1,this.parentActive=!1,this.cd.markForCheck()}onWindowResize(){this.hide()}onLeafClick(){this.popup&&this.hide(),this.unbindDocumentClickListener()}bindDocumentClickListener(){this.documentClickListener||(this.documentClickListener=this.renderer.listen(this.el?this.el.nativeElement.ownerDocument:"document","click",()=>{!this.preventDocumentDefault&&this.popup&&this.hide(),this.preventDocumentDefault=!1}))}unb
indDocumentClickListener(){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.documentResizeListener),this.documentResizeListener=null)}bindScrollListener(){this.scrollHandler||(this.scrollHandler=new
Qs(this.target,()=>{this.visible&&this.hide()})),this.scrollHandler.bindScrollListener()}unbindScrollListener(){this.scrollHandler&&this.scrollHandler.unbindScrollListener()}onOverlayHide(){this.unbindDocumentClickListener(),this.unbindDocumentResizeListener(),this.unbindScrollListener(),this.preventDocumentDefault=!1,this.cd.destroyed||(this.target=null)}ngOnDestroy(){this.popup&&(this.scrollHandler&&(this.scrollHandler.destroy(),this.scrollHandler=null),this.container&&this.autoZIndex&&dt.clear(th
is.container),this.restoreOverlayAppend(),this.onOverlayHide())}}return
t.\u0275fac=function(e){return
new(e||t)(D(De),D(gn),D(rt),D(zn),D(Ks))},t.\u0275cmp=z({type:t,selectors:[["p-tieredMenu"]],hostAttrs:[1,"p-element"],inputs:{model:"model",popup:"popup",style:"style",styleClass:"styleClass",appendTo:"appendTo",autoZIndex:"autoZIndex",baseZIndex:"baseZIndex",autoDisplay:"autoDisplay",showTransitionOptions:"showTransitionOptions",hideTransitionOptions:"hideTransitionOptions"},decls:1,vars:1,consts:[[3,"ngClass","class","ngStyle","click",4,"ngIf"],[3,"ngClass","ngStyle","click"],["root","root",3,"item","parentActive","baseZIndex","autoZIndex","autoDisplay","popup","leafClick"]],template:function(e,n){1&e&&_(0,S$,2,19,"div",0),2&e&&p("ngIf",!n.popup||n.visible)},directives:[x$,Q,Le,lt],styles:[".p-tieredmenu-overlay{position:absolute;top:0;left:0}.p-tieredmenu
ul{margin:0;padding:0;list-style:none}.p-tieredmenu
.p-submenu-list{position:absolute;min-width:100%;z-index:1;display:none}
.p-tieredmenu
.p-menuitem-link{cursor:pointer;display:flex;align-items:center;text-decoration:none;overflow:hidden;position:relative}.p-tieredmenu
.p-menuitem-text{line-height:1}.p-tieredmenu .p-menuitem{position:relative}.p-tieredmenu
.p-menuitem-link .p-submenu-icon{margin-left:auto}.p-tieredmenu
.p-menuitem-active>p-tieredmenusub>.p-submenu-list{display:block;left:100%;top:0}.p-tieredmenu
.p-menuitem-active>p-tieredmenusub>.p-submenu-list.p-submenu-list-flipped{left:-100%}\n"],encapsulation:2,data:{animation:[wi("overlayAnimation",[Lt(":enter",[it({opacity:0,transform:"scaleY(0.8)"}),kt("{{showTransitionParams}}")]),Lt(":leave",[kt("{{hideTransitionParams}}",it({opacity:0}))])])]},changeDetection:0}),t})(),M$=(()=>{class
t{}return t.\u0275fac=function(e){return
new(e||t)},t.\u0275mod=he({type:t}),t.\u0275inj=ue({imports:[[Fe,vn,pn,jn],vn,jn]}),t})(),k$=(()=>{class
t{}return t.\u0275fac=function(e){return
new(e||t)},t.\u0275mod=he({type:t}),t.\u0275inj=ue({imports:[sN,gl,cT,_5,S5,
Q6,T7,D7,Zu,G7,Xu,TB,m9,y9,A9,G9,J9,Y9,pn,iq,sq,hq,kU,BU,GU,jn,JU,nz,cz,Oz,Aj,e$,t$,M$]}),t})();const
I$=["pMenuItemContent",""];function
E$(t,i){if(1&t&&k(0,"span",6),2&t){const
e=d(2);me(e.item.iconClass),p("ngClass",e.item.icon)("ngStyle",e.item.iconStyle)}}function
R$(t,i){if(1&t&&(l(0,"span",7),g(1),c()),2&t){const
e=d(2);a(1),S(e.item.label)}}function
L$(t,i){1&t&&k(0,"span",8),2&t&&p("innerHTML",d(2).item.label,Bt)}const
iS=function(t){return{"p-disabled":t}};function O$(t,i){if(1&t){const
e=I();l(0,"a",2),C("keydown",function(s){return
v(e),d().onItemKeyDown(s)})("click",function(s){v(e);const r=d();return
r.menu.itemClick(s,r.item)}),_(1,E$,1,4,"span",3),_(2,R$,2,1,"span",4),_(3,L$,1,1,"ng-template",null,5,we),c()}if(2&t){const
e=F(4),n=d();p("target",n.item.target)("ngClass",U(11,iS,n.item.disabled))("target",n.item.target),ie("href",n.item.url||null,ln)("tabindex",n.item.disabled?null:"0")("data-automationid",n.item.automationId)("title",n.item.title)("id",n.item.id),a(1)
,p("ngIf",n.item.icon),a(1),p("ngIf",!1!==n.item.escape)("ngIfElse",e)}}function
A$(t,i){1&t&&k(0,"span",12),2&t&&p("ngClass",d(2).item.icon)}function
P$(t,i){if(1&t&&(l(0,"span",7),g(1),c()),2&t){const
e=d(2);a(1),S(e.item.label)}}function
F$(t,i){1&t&&k(0,"span",8),2&t&&p("innerHTML",d(2).item.label,Bt)}const
N$=function(){return{exact:!1}};function V$(t,i){if(1&t){const
e=I();l(0,"a",9),C("keydown",function(s){return
v(e),d().onItemKeyDown(s)})("click",function(s){v(e);const r=d();return
r.menu.itemClick(s,r.item)}),_(1,A$,1,1,"span",10),_(2,P$,2,1,"span",4),_(3,F$,1,1,"ng-template",null,11,we),c()}if(2&t){const
e=F(4),n=d();p("routerLink",n.item.routerLink)("queryParams",n.item.queryParams)("routerLinkActive","p-menuitem-link-active")("routerLinkActiveOptions",n.item.routerLinkActiveOptions||A(19,N$))("target",n.item.target)("ngClass",U(20,iS,n.item.disabled))("fragment",n.item.fragment)("queryParamsHandling",n.item.queryParamsHandling)("preserveFragment",n.item.preserveFragment
)("skipLocationChange",n.item.skipLocationChange)("replaceUrl",n.item.replaceUrl)("state",n.item.state),ie("data-automationid",n.item.automationId)("id",n.item.id)("tabindex",n.item.disabled?null:"0")("title",n.item.title),a(1),p("ngIf",n.item.icon),a(1),p("ngIf",!1!==n.item.escape)("ngIfElse",e)}}const
B$=["container"],Uo=function(t){return{"p-hidden":t}};function
H$(t,i){if(1&t&&k(0,"li",8),2&t){const
e=d().$implicit;p("ngClass",U(1,Uo,!1===e.visible))}}function
q$(t,i){if(1&t&&(l(0,"span"),g(1),c()),2&t){const
e=d(2).$implicit;a(1),S(e.label)}}function
G$(t,i){1&t&&k(0,"span",12),2&t&&p("innerHTML",d(2).$implicit.label,Bt)}function
U$(t,i){if(1&t&&(l(0,"li",9),_(1,q$,2,1,"span",10),_(2,G$,1,1,"ng-template",null,11,we),c()),2&t){const
e=F(3),n=d().$implicit;p("ngClass",U(5,Uo,!1===n.visible))("tooltipOptions",n.tooltipOptions),ie("data-automationid",n.automationId),a(1),p("ngIf",!1!==n.escape)("ngIfElse",e)}}function
z$(t,i){if(1&t&&k(0,"li",8),2&t){const
e=d().$implicit,n=d().$im
plicit;p("ngClass",U(1,Uo,!1===e.visible||!1===n.visible))}}function
j$(t,i){if(1&t&&k(0,"li",14),2&t){const
e=d().$implicit,n=d().$implicit;me(e.styleClass),p("pMenuItemContent",e)("ngClass",U(6,Uo,!1===e.visible||!1===n.visible))("ngStyle",e.style)("tooltipOptions",e.tooltipOptions)}}function
$$(t,i){if(1&t&&(_(0,z$,1,3,"li",6),_(1,j$,1,8,"li",13)),2&t){const
e=i.$implicit;p("ngIf",e.separator),a(1),p("ngIf",!e.separator)}}function
W$(t,i){if(1&t&&(_(0,H$,1,3,"li",6),_(1,U$,4,7,"li",7),_(2,$$,2,2,"ng-template",5)),2&t){const
e=i.$implicit;p("ngIf",e.separator),a(1),p("ngIf",!e.separator),a(1),p("ngForOf",e.items)}}function
K$(t,i){1&t&&_(0,W$,3,3,"ng-template",5),2&t&&p("ngForOf",d(2).model)}function
Q$(t,i){if(1&t&&k(0,"li",8),2&t){const
e=d().$implicit;p("ngClass",U(1,Uo,!1===e.visible))}}function
J$(t,i){if(1&t&&k(0,"li",14),2&t){const
e=d().$implicit;me(e.styleClass),p("pMenuItemContent",e)("ngClass",U(6,Uo,!1===e.visible))("ngStyle",e.style)("tooltipOptions",e.tooltipOptions)
}}function
Y$(t,i){if(1&t&&(_(0,Q$,1,3,"li",6),_(1,J$,1,8,"li",13)),2&t){const
e=i.$implicit;p("ngIf",e.separator),a(1),p("ngIf",!e.separator)}}function
Z$(t,i){1&t&&_(0,Y$,2,2,"ng-template",5),2&t&&p("ngForOf",d(2).model)}const
X$=function(t){return{"p-menu
p-component":!0,"p-menu-overlay":t}},eW=function(t,i){return{showTransitionParams:t,hideTransitionParams:i}},tW=function(t){return{value:"visible",params:t}};function
nW(t,i){if(1&t){const
e=I();l(0,"div",1,2),C("click",function(s){return
v(e),d().onOverlayClick(s)})("(a)overlayAnimation.start",function(s){return
v(e),d().onOverlayAnimationStart(s)})("(a)overlayAnimation.done",function(s){return
v(e),d().onOverlayAnimationEnd(s)}),l(2,"ul",3),_(3,K$,1,1,null,4),_(4,Z$,1,1,null,4),c()()}if(2&t){const
e=d();me(e.styleClass),p("ngClass",U(8,X$,e.popup))("ngStyle",e.style)("@overlayAnimation",U(13,tW,Ge(10,eW,e.showTransitionOptions,e.hideTransitionOptions)))("@.disabled",!0!==e.popup),a(3),p("ngIf",e.hasSubMenu()),a(1),p("ngIf",!e.hasS
ubMenu())}}let iW=(()=>{class t{constructor(e){this.menu=e}onItemKeyDown(e){let
n=e.currentTarget.parentElement;switch(e.code){case"ArrowDown":var
s=this.findNextItem(n);s&&s.children[0].focus(),e.preventDefault();break;case"ArrowUp":var
r=this.findPrevItem(n);r&&r.children[0].focus(),e.preventDefault();break;case"Space":case"Enter":n&&!R.hasClass(n,"p-disabled")&&n.children[0].click(),e.preventDefault()}}findNextItem(e){let
n=e.nextElementSibling;return
n?R.hasClass(n,"p-disabled")||!R.hasClass(n,"p-menuitem")?this.findNextItem(n):n:null}findPrevItem(e){let
n=e.previousElementSibling;return
n?R.hasClass(n,"p-disabled")||!R.hasClass(n,"p-menuitem")?this.findPrevItem(n):n:null}}return
t.\u0275fac=function(e){return
new(e||t)(D(je(()=>sS)))},t.\u0275cmp=z({type:t,selectors:[["","pMenuItemContent",""]],hostAttrs:[1,"p-element"],inputs:{item:["pMenuItemContent","item"]},attrs:I$,decls:2,vars:2,consts:[["class","p-menuitem-link","role","menuitem",3,"target","ngClass","keydown","click",4,
"ngIf"],["class","p-menuitem-link","role","menuitem","pRipple","",3,"routerLink","queryParams","routerLinkActive","routerLinkActiveOptions","target","ngClass","fragment","queryParamsHandling","preserveFragment","skipLocationChange","replaceUrl","state","keydown","click",4,"ngIf"],["role","menuitem",1,"p-menuitem-link",3,"target","ngClass","keydown","click"],["class","p-menuitem-icon",3,"ngClass","class","ngStyle",4,"ngIf"],["class","p-menuitem-text",4,"ngIf","ngIfElse"],["htmlLabel",""],[1,"p-menuitem-icon",3,"ngClass","ngStyle"],[1,"p-menuitem-text"],[1,"p-menuitem-text",3,"innerHTML"],["role","menuitem","pRipple","",1,"p-menuitem-link",3,"routerLink","queryParams","routerLinkActive","routerLinkActiveOptions","target","ngClass","fragment","queryParamsHandling","preserveFragment","skipLocationChange","replaceUrl","state","keydown","click"],["class","p-menuitem-icon",3,"ngClass",4,"ngIf"],["htmlRouteLabel",""],[1,"p-menuitem-icon",3,"ngClass"]],template:function(e,n){1&e&&(_(0,O$,5,1
3,"a",0),_(1,V$,5,22,"a",1)),2&e&&(p("ngIf",!n.item.routerLink),a(1),p("ngIf",n.item.routerLink))},directives:[Q,Le,lt,Ho,bt,_d],encapsulation:2}),t})(),sS=(()=>{class
t{constructor(e,n,s,r,o){this.el=e,this.renderer=n,this.cd=s,this.config=r,this.overlayService=o,this.autoZIndex=!0,this.baseZIndex=0,this.showTransitionOptions=".12s
cubic-bezier(0, 0, 0.2, 1)",this.hideTransitionOptions=".1s
linear",this.onShow=new H,this.onHide=new
H}toggle(e){this.visible?this.hide():this.show(e),this.preventDocumentDefault=!0}show(e){this.target=e.currentTarget,this.relativeAlign=e.relativeAlign,this.visible=!0,this.preventDocumentDefault=!0,this.cd.markForCheck()}onOverlayAnimationStart(e){switch(e.toState){case"visible":this.popup&&(this.container=e.element,this.moveOnTop(),this.onShow.emit({}),this.appendOverlay(),this.alignOverlay(),this.bindDocumentClickListener(),this.bindDocumentResizeListener(),this.bindScrollListener());break;case"void":this.onOverlayHide(),this.onHide.emit({})}}onOverla
yAnimationEnd(e){"void"===e.toState&&this.autoZIndex&&dt.clear(e.element)}alignOverlay(){this.relativeAlign?R.relativePosition(this.container,this.target):R.absolutePosition(this.container,this.target)}appendOverlay(){this.appendTo&&("body"===this.appendTo?document.body.appendChild(this.container):R.appendChild(this.container,this.appendTo))}restoreOverlayAppend(){this.container&&this.appendTo&&this.el.nativeElement.appendChild(this.container)}moveOnTop(){this.autoZIndex&&dt.set("menu",this.container,this.baseZIndex+this.config.zIndex.menu)}hide(){this.visible=!1,this.relativeAlign=!1,this.cd.markForCheck()}onWindowResize(){this.hide()}itemClick(e,n){n.disabled?e.preventDefault():(!n.url&&!n.routerLink&&e.preventDefault(),n.command&&n.command({originalEvent:e,item:n}),this.popup&&this.hide())}onOverlayClick(e){this.popup&&this.overlayService.add({originalEvent:e,target:this.el.nativeElement}),this.preventDocumentDefault=!0}bindDocumentClickListener(){this.documentClickListener||(thi
s.documentClickListener=this.renderer.listen(this.el?this.el.nativeElement.ownerDocument:"document","click",()=>{this.preventDocumentDefault||this.hide(),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.documentResizeListener),this.documentResizeListener=null)}bindScrollListener(){this.scrollHandler||(this.scrollHandler=new
Qs(this.target,()=>{this.visible&&this.hide()})),this.scrollHandler.bindScrollListener()}unbindScrollListener(){this.scrollHandler&&this.scrollHandler.unbindScrollListener()}onOverlayHide(){this.unbindDocumentClickListener(),this.unbindDocumentResizeListener(),this.unbindScrollListener(),this.preventDocumentDefa
ult=!1,this.cd.destroyed||(this.target=null)}ngOnDestroy(){this.popup&&(this.scrollHandler&&(this.scrollHandler.destroy(),this.scrollHandler=null),this.container&&this.autoZIndex&&dt.clear(this.container),this.restoreOverlayAppend(),this.onOverlayHide())}hasSubMenu(){if(this.model)for(var
e of this.model)if(e.items)return!0;return!1}}return t.\u0275fac=function(e){return
new(e||t)(D(De),D(gn),D(rt),D(zn),D(Ks))},t.\u0275cmp=z({type:t,selectors:[["p-menu"]],viewQuery:function(e,n){if(1&e&&W(B$,5),2&e){let
s;V(s=B())&&(n.containerViewChild=s.first)}},hostAttrs:[1,"p-element"],inputs:{model:"model",popup:"popup",style:"style",styleClass:"styleClass",appendTo:"appendTo",autoZIndex:"autoZIndex",baseZIndex:"baseZIndex",showTransitionOptions:"showTransitionOptions",hideTransitionOptions:"hideTransitionOptions"},outputs:{onShow:"onShow",onHide:"onHide"},decls:1,vars:1,consts:[[3,"ngClass","class","ngStyle","click",4,"ngIf"],[3,"ngClass","ngStyle","click"],["container",""],["role","menu",1,"
p-menu-list","p-reset"],[4,"ngIf"],["ngFor","",3,"ngForOf"],["class","p-menu-separator","role","separator",3,"ngClass",4,"ngIf"],["class","p-submenu-header","pTooltip","","role","none",3,"ngClass","tooltipOptions",4,"ngIf"],["role","separator",1,"p-menu-separator",3,"ngClass"],["pTooltip","","role","none",1,"p-submenu-header",3,"ngClass","tooltipOptions"],[4,"ngIf","ngIfElse"],["htmlSubmenuLabel",""],[3,"innerHTML"],["class","p-menuitem","pTooltip","","role","none",3,"pMenuItemContent","ngClass","ngStyle","class","tooltipOptions",4,"ngIf"],["pTooltip","","role","none",1,"p-menuitem",3,"pMenuItemContent","ngClass","ngStyle","tooltipOptions"]],template:function(e,n){1&e&&_(0,nW,5,15,"div",0),2&e&&p("ngIf",!n.popup||n.visible)},directives:[iW,Q,Le,lt,at,Kt],styles:[".p-menu-overlay{position:absolute;top:0;left:0}.p-menu
ul{margin:0;padding:0;list-style:none}.p-menu
.p-menuitem-link{cursor:pointer;display:flex;align-items:center;text-decoration:none;overflow:hidden;position:relative}.p-
menu
.p-menuitem-text{line-height:1}\n"],encapsulation:2,data:{animation:[wi("overlayAnimation",[Lt(":enter",[it({opacity:0,transform:"scaleY(0.8)"}),kt("{{showTransitionParams}}")]),Lt(":leave",[kt("{{hideTransitionParams}}",it({opacity:0}))])])]},changeDetection:0}),t})(),sW=(()=>{class
t{}return t.\u0275fac=function(e){return
new(e||t)},t.\u0275mod=he({type:t}),t.\u0275inj=ue({imports:[[Fe,vn,pn,jn],vn,jn]}),t})(),zo=(()=>{class
t{constructor(e){this.httpClient=e}GetDatabaseStatus(){return
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")}GetIPAddresses(e){let n=(new
ye).set("Protocol",e);return
this.httpClient.get("/Config/GetIPAddresses",{params:n})}GetSystemEvents(e){let
n=new ye;return
e&&n.set("Host",e),this.httpClient.get("/Config/GetSystemEvents",{params:n
})}}return t.\u0275fac=function(e){return
new(e||t)(K(Bi))},t.\u0275prov=X({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),qt=(()=>{class
t{constructor(e){this.httpClient=e}AddStorageGroupDir(e){return
this.httpClient.post("/Myth/AddStorageGroupDir",e)}BackupDatabase(){return
this.httpClient.post("/Myth/BackupDatabase",{body:void
0})}CheckDatabase(e){return
this.httpClient.post("/Myth/CheckDatabase",e)}DelayShutdown(){return
this.httpClient.post("Myth/DelayShutdown",{body:void 0})}GetBackendInfo(){return
this.httpClient.get("/Myth/GetBackendInfo")}GetConnectionInfo(e){let n=(new
ye).set("Pin",e);return
this.httpClient.get("/Myth/GetConnectionInfo",{params:n})}GetFrontends(e){let
n=(new ye).set("OnLine",e);return
this.httpClient.get("/Myth/GetFrontends",{params:n})}GetHostName(){return
this.httpClient.get("/Myth/GetHostName")}GetHosts(){return
this.httpClient.get("/Myth/GetHosts")}GetKeys(){return
this.httpClient.get("/Myth/GetKeys")}GetSetting(e){let n=(new
ye).set("HostName"
,e.HostName).set("Key",e.Key).set("Default",e.Default?e.Default:"");return
this.httpClient.get("/Myth/GetSetting",{params:n})}GetSettingList(e){let n=(new
ye).set("HostName",e);return
this.httpClient.get("/Myth/GetSettingList",{params:n})}GetStorageGroupDirs(e){return
void 0===e||void 0===e.GroupName&&void
0===e.HostName?this.httpClient.get("/Myth/GetStorageGroupDirs"):this.httpClient.post("/Myth/GetStorageGroupDirs",e)}GetDirListing(e){let
n=(new ye).set("DirName",e);return
this.httpClient.get("/Myth/GetDirListing",{params:n})}GetTimeZone(){return
this.httpClient.get("/Myth/GetTimeZone")}ManageDigestUser(e){return
this.httpClient.post("/Myth/ManageDigestUser",e)}ManageUrlProtection(e){return
this.httpClient.post("/Myth/ManageUrlProtection",e)}ProfileDelete(){return
this.httpClient.post("/Myth/ProfileDelete",{body:void 0})}ProfileSubmit(){return
this.httpClient.post("/Myth/ProfileSubmit",{body:void 0})}ProfileText(){return
this.httpClient.get("/Myth/ProfileText")}ProfileURL(){return
this.httpClient.get("/Myth/ProfileURL")}ProfileUpdated(){return
this.httpClient.get("/Myth/ProfileUpdated")}PutSetting(e){return
this.httpClient.post("/Myth/PutSetting",e)}DeleteSetting(e){return
this.httpClient.post("/Myth/DeleteSetting",e)}RemoveStorageGroupDir(e){return
this.httpClient.post("/Myth/RemoveStorageGroupDir",e)}SetConnectionInfo(e){return
this.httpClient.post("/Myth/SetConnectionInfo",e)}TestDBSettings(e){return
this.httpClient.post("/Myth/TestDBSettings",e)}ManageScheduler(e){return
this.httpClient.post("/Myth/ManageScheduler",e)}Shutdown(e){return
this.httpClient.post("/Myth/Shutdown",e)}}return t.\u0275fac=function(e){return
new(e||t)(K(Bi))},t.\u0275prov=X({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),xd=(()=>{class
t{constructor(e,n){this.configService=e,this.mythService=n,this.m_wizardData={Country:{Code:"",Country:"",NativeCountry:"",Image:""},Language:{Code:"",Language:"",NativeLanguage:"",Image:""},Database:{Host:"localhost",Port:3306,UserName:"myth
tv",Password:"mythtv",Ping:!1,Name:"mythconverg",Type:"QMYSQL",LocalHostName:"my-unique-identifier-goes-here",LocalEnabled:!1,DoTest:!0,WOLEnabled:!1,WOLReconnect:0,WOLRetry:0,WOLCommand:""},DatabaseStatus:{DatabaseStatus:{Host:"",Port:0,UserName:"",Password:"",Ping:!1,Name:"",Type:"",LocalHostName:"",LocalEnabled:!1,Connected:!1,HaveDatabase:!1,SchemaVersion:0,WOLEnabled:!1,WOLReconnect:0,WOLRetry:0,WOLCommand:""}}},this.m_topElement=null,this.m_hostName="",this.m_languageSetting="",this.m_languages=[],this.m_countrySetting="",this.m_countries=[],this.fullMenu=[],this.dbSetupMenu=[],this.wizardItems=[],this.mythService.GetHostName().subscribe(s=>{this.m_hostName=s.String})}ngOnInit(){}Init(){this.initDatabaseStatus(),this.initLanguages()}getWizardData(){return
this.Init(),this.m_wizardData}initDatabaseStatus(){this.dbPromise=new
Promise((e,n)=>{this.configService.GetDatabaseStatus().subscribe(s=>{this.m_wizardData.DatabaseStatus=s,this.m_wizardData.Database.Host=s.DatabaseStatus.Ho
st,this.m_wizardData.Database.Port=s.DatabaseStatus.Port,this.m_wizardData.Database.UserName=s.DatabaseStatus.UserName,this.m_wizardData.Database.Password=s.DatabaseStatus.Password,this.m_wizardData.Database.Name=s.DatabaseStatus.Name,this.m_wizardData.Database.LocalEnabled=s.DatabaseStatus.LocalEnabled,this.m_wizardData.Database.LocalHostName=s.DatabaseStatus.LocalHostName,this.m_wizardData.Database.WOLEnabled=s.DatabaseStatus.WOLEnabled,this.m_wizardData.Database.WOLReconnect=s.DatabaseStatus.WOLReconnect,this.m_wizardData.Database.WOLRetry=s.DatabaseStatus.WOLRetry,this.m_wizardData.Database.WOLCommand=s.DatabaseStatus.WOLCommand,e(!0)},s=>{console.log("Failed
to get database
status",s.statusText),n(!0)})})}initLanguages(){this.configService.GetCountries().subscribe(e=>{this.m_countries=e.CountryList.Countries,this.initCountry()}),this.configService.GetLanguages().subscribe(e=>{this.m_languages=e.LanguageList.Languages,this.initLanguage()})}initCountry(){this.mythService.GetSetti
ng({HostName:"_GLOBAL_",Key:"Country",Default:"US"}).subscribe(e=>{this.m_wizardData.Country=this.findCountryByCode(e.String)})}findCountryByCode(e){for(var
n=0;n<this.m_countries.length;n++)if(this.m_countries[n].Code===e)return
this.m_countries[n];return
this.m_countries[0]}initLanguage(){this.mythService.GetSetting({HostName:"_GLOBAL_",Key:"Language",Default:"en_US"}).subscribe(e=>{this.m_wizardData.Language=this.findLanguageByCode(e.String)})}findLanguageByCode(e){for(var
n=0;n<this.m_languages.length;n++)if(this.m_languages[n].Code===e)return
this.m_languages[n];return
this.m_languages[0]}updateDatabaseStatus(){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)(K(zo),K(qt))},t.\u0275prov=X({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),Me=(()=>{class
t{constructor(e,n){this.mythService=e,this.translate=n,this.m_hostName="
",this.m_initialized=!1,this.requesterForm=null,this.m_HostAddressData={successCount:0,errorCount:0,thisHostName:this.m_hostName,BackendServerPort:6543,BackendStatusPort:6544,SecurityPin:"0000",AllowConnFromAll:!1,ListenOnAllIps:!0,BackendServerIP:"127.0.0.1",BackendServerIP6:"::1",AllowLinkLocal:!0,BackendServerAddr:"",IsMasterBackend:!0,MasterServerName:this.m_hostName},this.HostAddressObs={next:s=>{s.bool?this.m_HostAddressData.successCount++:(this.m_HostAddressData.errorCount++,this.requesterForm&&this.requesterForm.form.markAsDirty())},error:s=>{console.error(s),this.m_HostAddressData.errorCount++,this.requesterForm&&this.requesterForm.form.markAsDirty()}},this.JobQCommandsObs={next:s=>{s.bool?this.m_JobQCommands.successCount++:(this.m_JobQCommands.errorCount++,this.requesterForm&&this.requesterForm.form.markAsDirty())},error:s=>{console.error(s),this.m_JobQCommands.errorCount++,this.requesterForm&&this.requesterForm.form.markAsDirty()}},this.currentForm=null,this.schedulingEna
bled=!0,this.isDatabaseIgnored=!1,this.DBTimezoneSupport=!1,this.WebOnlyStartup="",this.pageType=""}Init(){this.m_initialized=!0}getHostAddressData(){return
this.mythService.GetHostName().subscribe({next:e=>{this.m_hostName=e.String,this.m_HostAddressData.thisHostName=this.m_hostName,this.m_HostAddressData.MasterServerName=this.m_hostName,this.getHostSettings()},error:()=>this.m_HostAddressData.errorCount++}),this.m_HostAddressData}getHostSettings(){this.mythService.GetSetting({HostName:this.m_hostName,Key:"BackendServerPort",Default:"6543"}).subscribe({next:e=>this.m_HostAddressData.BackendServerPort=Number(e.String),error:()=>this.m_HostAddressData.errorCount++}),this.mythService.GetSetting({HostName:this.m_hostName,Key:"BackendStatusPort",Default:"6544"}).subscribe({next:e=>this.m_HostAddressData.BackendStatusPort=Number(e.String),error:()=>this.m_HostAddressData.errorCount++}),this.mythService.GetSetting({HostName:this.m_hostName,Key:"SecurityPin",Default:"0000"}).subscribe({nex
t:e=>this.m_HostAddressData.SecurityPin=e.String,error:()=>this.m_HostAddressData.errorCount++}),this.mythService.GetSetting({HostName:this.m_hostName,Key:"AllowConnFromAll",Default:"0"}).subscribe({next:e=>this.m_HostAddressData.AllowConnFromAll="1"==e.String,error:()=>this.m_HostAddressData.errorCount++}),this.mythService.GetSetting({HostName:this.m_hostName,Key:"ListenOnAllIps",Default:"1"}).subscribe({next:e=>this.m_HostAddressData.ListenOnAllIps="1"==e.String,error:()=>this.m_HostAddressData.errorCount++}),this.mythService.GetSetting({HostName:this.m_hostName,Key:"BackendServerIP"}).subscribe({next:e=>this.m_HostAddressData.BackendServerIP=e.String,error:()=>this.m_HostAddressData.errorCount++}),this.mythService.GetSetting({HostName:this.m_hostName,Key:"BackendServerIP6"}).subscribe({next:e=>this.m_HostAddressData.BackendServerIP6=e.String,error:()=>this.m_HostAddressData.errorCount++}),this.mythService.GetSetting({HostName:this.m_hostName,Key:"UseLinkLocal"}).subscribe({next:e
=>this.m_HostAddressData.AllowLinkLocal="1"==e.String,error:()=>this.m_HostAddressData.errorCount++}),this.mythService.GetSetting({HostName:this.m_hostName,Key:"BackendServerAddr"}).subscribe({next:e=>this.m_HostAddressData.BackendServerAddr=e.String,error:()=>this.m_HostAddressData.errorCount++}),this.mythService.GetSetting({HostName:"_GLOBAL_",Key:"MasterServerName",Default:this.m_hostName}).subscribe({next:e=>{this.m_HostAddressData.MasterServerName=e.String,this.m_HostAddressData.IsMasterBackend=this.m_HostAddressData.MasterServerName==this.m_hostName},error:()=>this.m_HostAddressData.errorCount++})}saveHostAddressData(e){this.requesterForm=e,this.m_HostAddressData.successCount=0,this.m_HostAddressData.errorCount=0,this.mythService.PutSetting({HostName:this.m_hostName,Key:"BackendServerPort",Value:String(this.m_HostAddressData.BackendServerPort)}).subscribe(this.HostAddressObs),this.mythService.PutSetting({HostName:this.m_hostName,Key:"BackendStatusPort",Value:String(this.m_Host
AddressData.BackendStatusPort)}).subscribe(this.HostAddressObs),this.mythService.PutSetting({HostName:this.m_hostName,Key:"SecurityPin",Value:this.m_HostAddressData.SecurityPin}).subscribe(this.HostAddressObs),this.mythService.PutSetting({HostName:this.m_hostName,Key:"AllowConnFromAll",Value:this.m_HostAddressData.AllowConnFromAll?"1":"0"}).subscribe(this.HostAddressObs),this.mythService.PutSetting({HostName:this.m_hostName,Key:"ListenOnAllIps",Value:this.m_HostAddressData.ListenOnAllIps?"1":"0"}).subscribe(this.HostAddressObs),this.mythService.PutSetting({HostName:this.m_hostName,Key:"BackendServerIP",Value:this.m_HostAddressData.BackendServerIP}).subscribe(this.HostAddressObs),this.mythService.PutSetting({HostName:this.m_hostName,Key:"BackendServerIP6",Value:this.m_HostAddressData.BackendServerIP6}).subscribe(this.HostAddressObs),this.mythService.PutSetting({HostName:this.m_hostName,Key:"AllowLinkLocal",Value:this.m_HostAddressData.AllowLinkLocal?"1":"0"}).subscribe(this.HostAddre
ssObs),this.mythService.PutSetting({HostName:this.m_hostName,Key:"BackendServerAddr",Value:this.m_HostAddressData.BackendServerAddr}).subscribe(this.HostAddressObs),this.mythService.PutSetting({HostName:"_GLOBAL_",Key:"MasterServerName",Value:this.m_HostAddressData.MasterServerName}).subscribe(this.HostAddressObs)}getLocaleData(){return
this.m_LocaleData={successCount:0,errorCount:0,TVFormat:"PAL",VbiFormat:"None",FreqTable:"us-bcast"},this.mythService.GetSetting({HostName:"_GLOBAL_",Key:"TVFormat"}).subscribe({next:e=>this.m_LocaleData.TVFormat=e.String,error:()=>this.m_LocaleData.errorCount++}),this.mythService.GetSetting({HostName:"_GLOBAL_",Key:"VbiFormat"}).subscribe({next:e=>this.m_LocaleData.VbiFormat=e.String,error:()=>this.m_LocaleData.errorCount++}),this.mythService.GetSetting({HostName:"_GLOBAL_",Key:"FreqTable"}).subscribe({next:e=>this.m_LocaleData.FreqTable=e.String,error:()=>this.m_LocaleData.errorCount++}),this.m_LocaleData}getSetupData(){return
this.getHostAddressDa
ta(),this.getLocaleData(),this.m_setupData={General:{HostAddress:this.m_HostAddressData,Locale:this.m_LocaleData}},this.m_setupData}parseTime(e,n){let
s=n.split(":");e.setHours(Number(s[0])),e.setMinutes(Number(s[1]))}formatTime(e){let
n=e.getHours(),s=e.getMinutes(),r="";return
n<10&&(r+="0"),r+=String(n),r+=":",s<10&&(r+="0"),r+=String(s),r}getJobQCommands(){if("object"==typeof
this.m_JobQCommands)return
this.m_JobQCommands;this.m_JobQCommands={successCount:0,errorCount:0,UserJobDesc:[],UserJob:[]};for(let
e=0;e<4;e++){let
n=e+1;this.translate.get("settings.services.job_default",{num:n}).subscribe(s=>this.m_JobQCommands.UserJobDesc[e]=s),this.mythService.GetSetting({HostName:"_GLOBAL_",Key:"UserJobDesc"+n,Default:""}).subscribe({next:s=>{s.String&&s.String.length>0&&(this.m_JobQCommands.UserJobDesc[e]=s.String)},error:()=>this.m_JobQCommands.errorCount++}),this.mythService.GetSetting({HostName:"_GLOBAL_",Key:"UserJob"+n,Default:""}).subscribe({next:s=>this.m_JobQCommands.UserJob[e
]=s.String,error:()=>this.m_JobQCommands.errorCount++})}return
this.m_JobQCommands}saveJobQCommands(e){this.requesterForm=e,this.m_JobQCommands.successCount=0,this.m_JobQCommands.errorCount=0;for(let
n=0;n<4;n++){let
s=n+1;this.mythService.PutSetting({HostName:"_GLOBAL_",Key:"UserJobDesc"+s,Value:this.m_JobQCommands.UserJobDesc[n]}).subscribe(this.JobQCommandsObs),this.mythService.PutSetting({HostName:"_GLOBAL_",Key:"UserJob"+s,Value:this.m_JobQCommands.UserJob[n]}).subscribe(this.JobQCommandsObs)}}getCurrentForm(){return
this.currentForm}setCurrentForm(e){this.currentForm=e}}return
t.\u0275fac=function(e){return
new(e||t)(K(qt),K(Oe))},t.\u0275prov=X({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),jo=(()=>{class
t{constructor(e){this.httpClient=e}AddDontRecordSchedule(e){return
this.httpClient.post("/Dvr/AddDontRecordSchedule",e)}AddRecordSchedule(e){return
this.httpClient.post("/Dvr/AddRecordSchedule",e)}UpdateRecordSchedule(e){return
this.httpClient.post("/Dvr/UpdateRecord
Schedule",e)}RemoveRecordSchedule(e){return
this.httpClient.post("/Dvr/RemoveRecordSchedule",{RecordId:e})}AddRecordedCredits(e){return
this.httpClient.post("/Dvr/AddRecordedCredits",e)}AddRecordedProgram(e){return
this.httpClient.post("/Dvr/AddRecordedProgram",e)}AllowReRecord(e){return
this.httpClient.post("/Dvr/AllowReRecord",{RecordedId:e})}DeleteRecording(e){return
this.httpClient.post("/Dvr/DeleteRecording",e)}UnDeleteRecording(e){return
this.httpClient.post("/Dvr/UnDeleteRecording",e)}UpdateRecordedMetadata(e){return
this.httpClient.post("/Dvr/UpdateRecordedMetadata",e)}DisableRecordSchedule(e){return
this.httpClient.post("/Dvr/DisableRecordSchedule",{RecordId:e})}DupInToDescription(e){let
n=(new ye).set("DupIn",e);return
this.httpClient.get("/Dvr/DupInToDescription",{params:n})}DupInToString(e){let
n=(new ye).set("DupIn",e);return
this.httpClient.get("/Dvr/DupInToString",{params:n})}DupMethodToDescription(e){let
n=(new ye).set("DupMethod",e);return this.httpClient.get("/Dvr/
DupMethodToDescription",{params:n})}DupMethodToString(e){let n=(new
ye).set("DupMethod",e);return
this.httpClient.get("/Dvr/DupMethodToString",{params:n})}EnableRecordSchedule(e){return
this.httpClient.post("/Dvr/EnableRecordSchedule",e)}GetConflictList(e){let
n=(new
ye).set("StartIndex",e.StartIndex).set("Count",e.Count).set("RecordId",e.RecordId);return
this.httpClient.get("/Dvr/GetConflictList",{params:n})}GetEncoderList(){return
this.httpClient.get("/Dvr/GetEncoderList")}GetExpiringList(e){let n=(new
ye).set("StartIndex",e.StartIndex).set("Count",e.Count);return
this.httpClient.get("/Dvr/GetExpiringList",{params:n})}GetInputList(){return
this.httpClient.get("/Dvr/GetInputList")}GetLastPlayPos(e){let n=(new
ye).set("RecordedId",e.RecordedId).set("ChanId",e.ChanId).set("StartTime",e.StartTime).set("OffsetType",e.OffsetType);return
this.httpClient.get("/Dvr/GetLastPlayPos",{params:n})}GetOldRecordedList(e){let
n=(new
ye).set("Descending",e.Descending).set("StartIndex",e.StartIndex)
.set("Count",e.Count).set("StartTime",e.StartTime).set("EndTime",e.EndTime).set("Title",e.Title).set("SeriesId",e.SeriesId).set("RecordId",e.RecordId).set("Sort",e.Sort);return
this.httpClient.get("/Dvr/GetOldRecordedList",{params:n})}GetPlayGroupList(){return
this.httpClient.get("/Dvr/GetPlayGroupList")}GetProgramCategories(e){return(new
ye).set("OnlyRecorded",e),this.httpClient.get("/Dvr/GetProgramCategories")}GetRecGroupList(){return
this.httpClient.get("/Dvr/GetRecGroupList")}GetRecRuleFilterList(){return
this.httpClient.get("/Dvr/GetRecRuleFilterList")}GetRecStorageGroupList(){return
this.httpClient.get("/Dvr/GetRecStorageGroupList")}GetRecordSchedule(e){let
n=new ye;for(const[s,r]of Object.entries(e))n=n.set(s,r);return
this.httpClient.get("/Dvr/GetRecordSchedule",{params:n})}GetRecordScheduleList(e){let
n=new ye;for(const[s,r]of Object.entries(e))n=n.set(s,r);return
this.httpClient.get("/Dvr/GetRecordScheduleList",{params:n})}GetRecorded(e){let
n=new ye;for(const[s,r]of Objec
t.entries(e))n=n.set(s,r);return
this.httpClient.get("/Dvr/GetRecorded",{params:n})}GetRecordedList(e){let n=new
ye;for(const[s,r]of Object.entries(e))n=n.set(s,r);return
this.httpClient.get("/Dvr/GetRecordedList",{params:n})}GetUpcomingList(e){let
n=new ye;for(const[s,r]of Object.entries(e))n=n.set(s,r);return
this.httpClient.get("/Dvr/GetUpcomingList",{params:n})}RecStatusToString(e){let
n=(new ye).set("RecStatus",e);return
this.httpClient.get("/Dvr/RecStatusToString",{params:n})}ManageJobQueue(e){return
this.httpClient.post("/Dvr/ManageJobQueue",e)}StopRecording(e){return
this.httpClient.post("/Dvr/StopRecording",{RecordedId:e})}}return
t.\u0275fac=function(e){return
new(e||t)(K(Bi))},t.\u0275prov=X({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();function
rW(t,i){if(1&t&&(l(0,"div",9),k(1,"p-message",10),m(2,"translate"),c()),2&t){const
e=d();a(1),x("text",f(2,2,"settings.main.webonly."+e.setupService.WebOnlyStartup)),p("styleClass","font-bold")}}function
oW(t,i){1&t&&(k(0
,"p-message",10),m(1,"translate")),2&t&&(x("text",f(1,2,"settings.main.mustenable")),p("styleClass","font-bold"))}function
aW(t,i){1&t&&(k(0,"p-message",10),m(1,"translate")),2&t&&(x("text",f(1,2,"settings.main.mustrestart")),p("styleClass","font-bold"))}function
lW(t,i){if(1&t&&(l(0,"div",9),_(1,oW,2,4,"p-message",11),_(2,aW,2,4,"ng-template",null,12,we),c()),2&t){const
e=F(3),n=d();a(1),p("ngIf",n.setupService.schedulingEnabled)("ngIfElse",e)}}function
cW(t,i){if(1&t){const
e=I();l(0,"div",13)(1,"div",14)(2,"p-button",15),C("onClick",function(){return
v(e),d().disableSched()}),m(3,"translate"),c()(),l(4,"div",14),g(5),m(6,"translate"),c()()}2&t&&(a(2),x("label",f(3,2,"settings.main.enableupdates_label")),a(3),S(f(6,4,"settings.main.enableupdates_desc")))}function
uW(t,i){1&t&&(l(0,"div",14)(1,"div",17),g(2),m(3,"translate"),c()()),2&t&&(a(2),S(f(3,1,"settings.main.restart_desc")))}function
dW(t,i){1&t&&(l(0,"div",14),g(1),m(2,"translate"),c()),2&t&&(a(1),T("
",f(2,1,"settings.main
.slave_enabled"),""))}function pW(t,i){if(1&t){const
e=I();l(0,"div",13)(1,"div",14)(2,"p-button",15),C("onClick",function(){return
v(e),d().restart()}),m(3,"translate"),c()(),_(4,uW,4,3,"div",16),_(5,dW,3,3,"div",16),c()}if(2&t){const
e=d();a(2),x("label",f(3,3,"WEBONLYPARM"==e.setupService.WebOnlyStartup?"settings.main.shutdown_label":"settings.main.restart_label")),a(2),p("ngIf",!e.masterServerName||!e.hostName||e.masterServerName==e.hostName),a(1),p("ngIf",e.masterServerName&&e.hostName&&e.masterServerName!=e.hostName)}}const
hW=function(t,i,e){return{Title:t,StartTime:i,Status:e}};function
mW(t,i){if(1&t&&(l(0,"small",18),g(1),m(2,"translate"),c()),2&t){const
e=d();a(1),T("
",Dt(2,1,"settings.main.upcomingrec",Qt(4,hW,e.upComing[0].Title,e.recStartTime,e.recStatusDesc)),"
")}}function
fW(t,i){1&t&&(l(0,"div")(1,"p"),g(2),m(3,"translate"),c(),l(4,"p"),g(5),m(6,"translate"),c()()),2&t&&(a(2),T("",f(3,2,"settings.main.slave_instructions"),"
"),a(3),T("",f(6,4,"settings.main.slave_
warning")," "))}function
gW(t,i){1&t&&k(0,"p-progressSpinner")}function
_W(t,i){1&t&&(k(0,"p-message",19),m(1,"translate")),2&t&&x("text",f(1,1,"settings.main.restarting"))}function
bW(t,i){1&t&&(k(0,"p-message",20),m(1,"translate")),2&t&&x("text",f(1,1,"common.networkfail"))}let
vW=(()=>{class
t{constructor(e,n,s,r,o,u){this.mythService=e,this.setupService=n,this.dvrService=s,this.wizardService=r,this.messageService=o,this.translate=u,this.errorCount=0,this.retryCount=0,this.upComing=[],this.recStatusDesc="",this.recStartTime="",this.ready=!1,this.delay=0,this.busy=!1,this.hostName="",this.masterServerName="",this.getBackendInfo(),this.refreshInfo()}refreshInfo(){setTimeout(()=>{this.getBackendInfo(),this.refreshInfo()},12e4)}getBackendInfo(){0==this.retryCount&&(this.errorCount=0),this.ready=!1,this.recStatusDesc="",this.recStartTime="",this.upComing=[],this.mythService.GetHostName().subscribe({next:e=>{this.hostName=e.String,this.mythService.GetSetting({HostName:"_GLOBAL_",Key:"M
asterServerName",Default:this.hostName}).subscribe({next:n=>{this.masterServerName=n.String},error:()=>this.errorCount++})},error:()=>this.errorCount++}),this.mythService.GetBackendInfo().subscribe({next:e=>{this.setupService.schedulingEnabled=e.BackendInfo.Env.SchedulingEnabled,this.setupService.isDatabaseIgnored=e.BackendInfo.Env.IsDatabaseIgnored,this.setupService.DBTimezoneSupport=e.BackendInfo.Env.DBTimezoneSupport,this.setupService.WebOnlyStartup=e.BackendInfo.Env.WebOnlyStartup,this.wizardService.wizardItems=this.setupService.isDatabaseIgnored?this.wizardService.dbSetupMenu:this.wizardService.fullMenu,this.wizardService.getWizardData(),this.retryCount>0&&this.errorCount>0?(this.retryCount=0,this.errorCount=0):this.retryCount>0&&0==this.errorCount&&setTimeout(()=>this.getBackendInfo(),2e3),0==this.retryCount&&(setTimeout(()=>this.getUpcoming(),this.delay),this.delay=0)},error:()=>{this.setupService.schedulingEnabled=!0,this.errorCount++,this.errorCount<this.retryCount?setTimeo
ut(()=>this.getBackendInfo(),2e3):this.retryCount=0}})}getUpcoming(){this.errorCount=0,this.dvrService.GetUpcomingList({Count:1}).subscribe({next:e=>{if(this.upComing=e.ProgramList.Programs,this.ready=!0,this.upComing.length>0){this.dvrService.RecStatusToString(this.upComing[0].Recording.Status).subscribe({next:s=>this.recStatusDesc=s.String,error:()=>this.errorCount++});var
n=new
Date(this.upComing[0].Recording.StartTs);this.recStartTime=n.toLocaleString()}},error:()=>this.errorCount++})}disableSched(){this.mythService.ManageScheduler({Disable:!0}).subscribe({next:e=>this.getBackendInfo(),error:()=>this.errorCount++})}restart(){let
e="WEBONLYPARM"!=this.setupService.WebOnlyStartup;this.mythService.Shutdown({Restart:e}).subscribe({next:n=>{n.bool?(this.retryCount=e?30:9999,this.getBackendInfo()):this.errorCount++},error:()=>this.errorCount++}),this.delay=5e3}ngOnInit(){}}return
t.\u0275fac=function(e){return
new(e||t)(D(qt),D(Me),D(jo),D(xd),D(Gi),D(Oe))},t.\u0275cmp=z({type:t,selec
tors:[["app-backend-warning"]],features:[Pe([Gi])],decls:15,vars:9,consts:[[1,"block","card","w-full"],[1,"block"],[1,"m-5"],["class","flex
mb-3",4,"ngIf"],["class","flex",4,"ngIf"],["class","pb-0
m-0",4,"ngIf"],[4,"ngIf"],["severity","info",3,"text",4,"ngIf"],["severity","error",3,"text",4,"ngIf"],[1,"flex","mb-3"],["severity","warn",3,"styleClass","text"],["severity","warn",3,"styleClass","text",4,"ngIf","ngIfElse"],["mustrestart",""],[1,"flex"],[1,"flex","align-items-center"],["icon","pi
pi-save","iconPos","left",1,"pr-5","pb-1","pt-0","m-0",3,"label","onClick"],["class","flex
align-items-center",4,"ngIf"],[1,"text-pink-500"],[1,"pb-0","m-0"],["severity","info",3,"text"],["severity","error",3,"text"]],template:function(e,n){1&e&&(l(0,"div",0)(1,"div",1)(2,"p-card",2),_(3,rW,3,4,"div",3),_(4,lW,4,2,"div",3),_(5,cW,7,6,"div",4),_(6,pW,6,5,"div",4),l(7,"div"),_(8,mW,3,8,"small",5),c(),_(9,fW,7,6,"div",6),l(10,"div"),_(11,gW,1,0,"p-progressSpinner",6),_(12,_W,2,3,"p-message",7),l(13,
"p"),_(14,bW,2,3,"p-message",8),c()()()()()),2&e&&(a(3),p("ngIf",0==n.retryCount&&"NONE"!=n.setupService.WebOnlyStartup),a(1),p("ngIf",0==n.retryCount),a(1),p("ngIf",n.setupService.schedulingEnabled&&0==n.retryCount),a(1),p("ngIf",!n.setupService.schedulingEnabled&&0==n.retryCount),a(2),p("ngIf",n.upComing.length>0),a(1),p("ngIf",n.masterServerName&&n.hostName&&n.masterServerName!=n.hostName&&0==n.retryCount),a(2),p("ngIf",n.retryCount>0),a(1),p("ngIf",n.retryCount>0),a(2),p("ngIf",!n.setupService.isDatabaseIgnored&&n.errorCount>0&&0==n.retryCount))},directives:[Ne,Q,qe,ve,Go],pipes:[ce],styles:[""]}),t})();const
CW=["top"];let rS=(()=>{class
t{constructor(e,n,s){this.wizardService=e,this.setupService=n,this.translate=s,this.fullMenu=[],this.dbSetupMenu=[],this.activeIndex=0,n.pageType="S"}ngOnInit(){this.translate.get("setupwizard.steps.selectlanguage").subscribe(e=>{this.fullMenu=[{label:this.translate.instant("setupwizard.steps.dbsetup"),routerLink:"dbsetup"},{label:this.translat
e.instant("setupwizard.steps.selectlanguage"),routerLink:"selectlanguage"},{label:this.translate.instant("setupwizard.steps.general"),routerLink:"general"},{label:this.translate.instant("setupwizard.steps.capture_cards"),routerLink:"capture-cards"},{label:this.translate.instant("setupwizard.steps.recording_profiles"),routerLink:"recording-profiles"},{label:this.translate.instant("setupwizard.steps.video_sources"),routerLink:"video-sources"},{label:this.translate.instant("setupwizard.steps.input_connections"),routerLink:"input-connections"},{label:this.translate.instant("setupwizard.steps.channel_editor"),routerLink:"channel-editor"},{label:this.translate.instant("setupwizard.steps.storage_groups"),routerLink:"storage-groups"},{label:this.translate.instant("setupwizard.steps.system_events"),routerLink:"system-events"}],this.wizardService.fullMenu=this.fullMenu,this.activeItem=this.fullMenu[0],this.dbSetupMenu=[this.fullMenu[0]],this.wizardService.dbSetupMenu=this.dbSetupMenu,this.wiz
ardService.wizardItems=this.wizardService.fullMenu})}ngAfterViewInit(){this.wizardService.m_topElement=this.topElement}}return
t.\u0275fac=function(e){return
new(e||t)(D(xd),D(Me),D(Oe))},t.\u0275cmp=z({type:t,selectors:[["app-settings"]],viewQuery:function(e,n){if(1&e&&W(CW,5),2&e){let
s;V(s=B())&&(n.topElement=s.first)}},decls:17,vars:12,consts:[["top",""],[1,"content-section","implementation"],[1,"card"],[1,"flex","flex-row"],["pButton","","pRipple","","icon","pi
pi-angle-double-left",1,"p-button-text","p-button-primary",3,"pTooltip","click"],[1,"col-11"],[3,"model","activeItem","scrollable"],["menu",""],["pButton","","pRipple","","icon","pi
pi-angle-double-right",1,"p-button-text","p-button-primary",3,"pTooltip","click"]],template:function(e,n){if(1&e){const
s=I();k(0,"span",null,0),l(2,"div",1)(3,"h1"),g(4),m(5,"translate"),c(),l(6,"div",2)(7,"div",3)(8,"button",4),C("click",function(){return
v(s),F(12).navBackward()}),m(9,"translate"),c(),l(10,"div",5),k(11,"p-tabMenu",6,7),c(
),l(13,"button",8),C("click",function(){return
v(s),F(12).navForward()}),m(14,"translate"),c()()(),k(15,"app-backend-warning")(16,"router-outlet"),c()}2&e&&(a(4),S(f(5,6,"settings.main.title")),a(4),x("pTooltip",f(9,8,"dashboard.scrolltabsleft")),a(3),p("model",n.wizardService.wizardItems)("activeItem",n.activeItem)("scrollable",!1),a(2),x("pTooltip",f(14,10,"dashboard.scrolltabsright")))},directives:[On,bt,Kt,J2,vW,Ml],pipes:[ce],styles:['.warning[_ngcontent-%COMP%]{color:#cc8925;background-color:#fff2e2}.connected[_ngcontent-%COMP%]{color:#1ea97c;background-color:#e4f8f0}.medium-width[_ngcontent-%COMP%]{width:"600"}']}),t})();function
yW(t,i){if(1&t){const
e=I();l(0,"div"),k(1,"h1"),l(2,"div",1)(3,"button",2),C("click",function(){return
v(e),F(7).navBackward()}),m(4,"translate"),c(),l(5,"div",3),k(6,"p-tabMenu",4,5),c(),l(8,"button",6),C("click",function(){return
v(e),F(7).navForward()}),m(9,"translate"),c()(),k(10,"router-outlet"),c()}if(2&t){const
e=d();a(3),x("pTooltip",f(4,5,"
dashboard.scrolltabsleft")),a(3),p("model",e.fullMenu)("activeItem",e.activeItem)("scrollable",!1),a(2),x("pTooltip",f(9,7,"dashboard.scrolltabsright"))}}let
oS=(()=>{class
t{constructor(e,n){this.translate=e,this.setupService=n,this.translateDone=!1,this.fullMenu=[{label:"dashboard.backendStatus",routerLink:"status"},{label:"dashboard.channeleditor",routerLink:"channel-editor"},{label:"dashboard.programguide",routerLink:"program-guide"},{label:"dashboard.recordings.heading",routerLink:"recordings"},{label:"dashboard.upcoming.heading",routerLink:"upcoming"},{label:"dashboard.recrules.heading",routerLink:"recrules"},{label:"dashboard.videos.heading",routerLink:"videos"}],this.activeItem=this.fullMenu[0],n.pageType="D",this.fullMenu.forEach(s=>{s.label&&this.translate.get(s.label).subscribe(r=>{s.label=r,this.translateDone=!0})})}ngOnInit(){}}return
t.\u0275fac=function(e){return
new(e||t)(D(Oe),D(Me))},t.\u0275cmp=z({type:t,selectors:[["app-dashboard"]],decls:1,vars:1,consts:[[4,"ngI
f"],[1,"flex","flex-row"],["pButton","","pRipple","","icon","pi
pi-angle-double-left",1,"p-button-text","p-button-primary",3,"pTooltip","click"],[1,"col-11"],[3,"model","activeItem","scrollable"],["menu",""],["pButton","","pRipple","","icon","pi
pi-angle-double-right",1,"p-button-text","p-button-primary",3,"pTooltip","click"]],template:function(e,n){1&e&&_(0,yW,11,9,"div",0),2&e&&p("ngIf",n.translateDone)},directives:[Q,On,bt,Kt,J2,Ml],pipes:[ce],styles:["[_nghost-%COMP%]
.dark-panel.p-panel
.p-panel-header{background:#c0c0c0}"]}),t})(),ji=(()=>{class
t{constructor(){}canDeactivate(e,n,s,r){return!e.canDeactivate||e.canDeactivate()}}return
t.\u0275fac=function(e){return
new(e||t)},t.\u0275prov=X({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();const
wW=[{path:"dashboard",component:oS},{path:"setupwizard",component:rS}];let
TW=(()=>{class t{}return t.\u0275fac=function(e){return
new(e||t)},t.\u0275mod=he({type:t}),t.\u0275inj=ue({providers:[ji],imports:[[vn.forRoot(wW)],vn]
}),t})(),SW=(()=>{class
t{constructor(e,n){this.http=e,this.document=n}switchTheme(e){let
n=this.document.getElementById("app-theme");n&&(n.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)(K(Bi),K(Xt))},t.\u0275prov=X({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),Ll=(()=>{class
t{constructor(e){this.translate=e,this.m_showSidebar=!0,this.recStatusText={Pending:"",Failing:"",MissedFuture:"",Tuning:"",Failed:"",TunerBusy:"",LowDiskSpace:"",Cancelled:"",Missed:"",Aborted:"",Recorded:"",Recording:"",WillRecord:"",Unknown:"",DontRecord:"",PreviousRecording:"",CurrentRecording:"",EarlierShowing:"",TooManyRecordings:"",NotListed:"",Conflict:"",LaterShowing:"",Repeat:"",Inactive:"",NeverRecord:"",Offline:""},this.getTranslations()}getTranslations(){for(const[e,n]of
Object.entries(this.recStatusText))this.translate.get("data.recstatus."+e).subscribe(s=>{Objec
t.defineProperty(this.recStatusText,e,{value:s})})}toggleShowSidebar(){this.m_showSidebar=!this.m_showSidebar}showSidebar(e){this.m_showSidebar=e}}return
t.\u0275fac=function(e){return
new(e||t)(K(Oe))},t.\u0275prov=X({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();function
xW(t,i){if(1&t&&(l(0,"div"),k(1,"img",26),c()),2&t){const
e=d(2);a(1),Bn("src","images/themes/",e.m_selectedTheme.Image,"",ln)}}function
DW(t,i){if(1&t&&(l(0,"div"),k(1,"img",27),c()),2&t){const
e=d(2);a(1),Bn("src","images/locale/",e.m_selectedLanguage.Image,"",ln)}}function
MW(t,i){if(1&t){const
e=I();l(0,"div",7)(1,"div",8)(2,"a",9),C("click",function(){return
v(e),d().toggleShowSidebar()}),k(3,"i",10)(4,"span",11),c(),k(5,"img",12),l(6,"div",13)(7,"h1"),g(8),m(9,"translate"),c()()(),l(10,"div",14)(11,"button",15),C("click",function(){return
v(e),d().showTopBar=!1}),m(12,"translate"),c()(),l(13,"div",16)(14,"a",17),C("click",function(){return
v(e),d().toggleShowNavbar()}),k(15,"i",18)(16,"span",11),c(),
l(17,"ul",19)(18,"li",20)(19,"a",21),C("click",function(s){return
v(e),d(),F(5).toggle(s)}),m(20,"translate"),_(21,xW,2,1,"div",22),l(22,"span",23),g(23),m(24,"translate"),c(),k(25,"span",24),c()(),l(26,"li",20)(27,"a",25),C("click",function(s){return
v(e),d(),F(8).toggle(s)}),m(28,"translate"),_(29,DW,2,1,"div",22),l(30,"span",23),g(31),m(32,"translate"),c(),k(33,"span",24),c()()()()()}if(2&t){const
e=d();a(8),S(f(9,9,"navbar.mainheading")),a(3),x("pTooltip",f(12,11,"navbar.hide")),a(6),p("hidden",e.m_showNavbar),a(2),x("pTooltip",f(20,13,"navbar.switchTheme")),a(2),p("ngIf",e.m_selectedTheme),a(2),S(f(24,15,"navbar.switchTheme")),a(4),x("pTooltip",f(28,17,"navbar.changeLanguage")),a(2),p("ngIf",e.m_selectedLanguage),a(2),S(f(32,19,"navbar.changeLanguage"))}}function
kW(t,i){if(1&t){const
e=I();l(0,"div",28)(1,"button",29),C("click",function(){return
v(e),d().showTopBar=!0}),m(2,"translate"),c()()}2&t&&(a(1),x("pTooltip",f(2,1,"navbar.show")))}function
IW(t,i){if(1&t&&(l(0,"tr",33)
(1,"td",34)(2,"span",35),g(3),c()()()),2&t){const
e=i.$implicit;a(3),S(e.Category)}}function EW(t,i){if(1&t){const
e=I();l(0,"tr",36),C("click",function(){const r=v(e).$implicit;return
d(2).changeTheme(r)}),l(1,"td",37),k(2,"img",38),c(),l(3,"td"),g(4),c()()}if(2&t){const
n=i.$implicit;p("pSelectableRow",i.$implicit),a(2),Bn("src","images/themes/",n.Image,"",ln),p("alt",n.image),a(2),S(n.Name)}}function
RW(t,i){1&t&&(l(0,"p-table",30),_(1,IW,4,1,"ng-template",31),_(2,EW,5,4,"ng-template",32),c()),2&t&&p("value",d().m_themes$)("paginator",!1)("scrollable",!0)}function
LW(t,i){if(1&t){const
e=I();l(0,"tr",36),C("click",function(){const
r=v(e).$implicit,o=d(2);return
F(8).hide(),o.changeLanguage(r)}),l(1,"td",37),k(2,"img",38),c(),l(3,"td")(4,"pre")(5,"span",40),g(6),c(),k(7,"br"),g(8),c()()()}if(2&t){const
n=i.$implicit;p("pSelectableRow",i.$implicit),a(2),Bn("src","images/locale/",n.Image,"",ln),p("alt",n.image),a(4),S(n.Language),a(2),T("",n.NativeLanguage,"
")}}function OW(t,i){1&t
&&(l(0,"p-table",39),_(1,LW,9,5,"ng-template",32),c()),2&t&&p("value",d().m_languages)("paginator",!1)("scrollable",!0)}const
AW=function(){return{width:"350px"}},PW=function(){return{width:"450px"}};let
FW=(()=>{class
t{constructor(e,n,s,r,o,u,h){this.themeService=e,this.configService=n,this.translateService=s,this.primeconfigService=r,this.dataService=o,this.mythService=u,this.router=h,this.m_showNavbar=!0,this.showTopBar=!0,this.m_devMode=function
KR(){return
ZC=!0,YC}(),this.m_haveDatabase=!0,this.themeService.getThemes().then(b=>{this.m_themes$=b,this.m_selectedTheme=this.findThemeByName(localStorage.getItem("Theme")||"Indigo
Light"),this.themeService.switchTheme(this.m_selectedTheme.CSS)}),this.configService.GetLanguages().subscribe(b=>{this.m_languages=b.LanguageList.Languages,this.m_selectedLanguage=this.findLanguageByCode(localStorage.getItem("Language")||"en_US")}),this.mythService.GetBackendInfo().subscribe(b=>{var
y=this.router.url;b.BackendInfo.Env.IsDatabaseIgnored||!b
.BackendInfo.Env.SchedulingEnabled&&!y.startsWith("/setupwizard/")?h.navigate(["setupwizard/dbsetup"]):"/"==y&&h.navigate(["dashboard/status"])})}ngOnInit(){}findThemeByName(e){for(var
n=0;n<this.m_themes$.length;n++)if(this.m_themes$[n].Name===e)return
this.m_themes$[n];return
this.m_themes$[0]}changeTheme(e){this.m_selectedTheme=e,this.themeService.switchTheme(e.CSS),localStorage.setItem("Theme",this.m_selectedTheme.Name)}findLanguageByCode(e){for(var
n=0;n<this.m_languages.length;n++)if(this.m_languages[n].Code===e)return
this.m_languages[n];return
this.m_languages[0]}changeLanguage(e){console.log("Language changed to
",e.NativeLanguage),this.m_selectedLanguage=e,localStorage.setItem("Language",this.m_selectedLanguage.Code),this.translateService.use(this.m_selectedLanguage.Code),this.translateService.get("primeng").subscribe(n=>this.primeconfigService.setTranslation(n))}toggleShowNavbar(){this.m_showNavbar=!this.m_showNavbar}toggleShowSidebar(){this.dataService.toggleShowSidebar(
)}}return t.\u0275fac=function(e){return
new(e||t)(D(SW),D(zo),D(Oe),D(zn),D(Ll),D(qt),D(It))},t.\u0275cmp=z({type:t,selectors:[["app-navbar"]],decls:10,vars:10,consts:[[1,"flex","flex-column","relative","flex-auto"],["class","toolbar
flex justify-content-between align-items-center pm-8 surface-section relative lg:static
surface-border","style","height:
80px;",4,"ngIf","ngIfElse"],["hidden",""],[3,"showCloseIcon"],["themePanel",""],["pTemplate",""],["languagePanel",""],[1,"toolbar","flex","justify-content-between","align-items-center","pm-8","surface-section","relative","lg:static","surface-border",2,"height","80px"],[1,"toolbar","flex","align-items-left","flex-shrink-0",2,"height","80px"],["pRipple","",1,"p-ripple","p-element","my-3","mx-1","flex","align-items-center","cursor-pointer","p-3","lg:hidden","lg:justify-content-center","hover:bg-gray-800","border-round","text-300","hover:text-0","transition-duration-150","transition-colors",3,"click"],[1,"pi","pi-bars","mr-1","lg:ml-1",
"text-base","lg:text-xl"],["ng","","serve","",1,"p-ink"],["src","images/mythtv.png","alt","Image","height","80",1,"py-2","pl-1"],[1,"hidden","md:inline-flex"],[1,"toolbar","flex","flex-grow-1","align-items-end",2,"height","80px"],["pButton","","pRipple","","icon","pi
pi-angle-up",1,"p-button-text","lg:col-offset-3","p-button-secondary",3,"pTooltip","click"],[1,"pr-2","toolbar",2,"height","80px"],["pRipple","",1,"toolbar","p-ripple","p-element","my-2","mx-2","flex","align-items-center","cursor-pointer","p-3","md:hidden","md:justify-content-center","hover:bg-gray-800","border-round","text-300","hover:text-0","transition-duration-150","transition-colors",2,"height","80px",3,"click"],[1,"pi","pi-ellipsis-v","mr-1","md:mr-0","text-base","md:text-xl"],[1,"toolbar","list-none","p-0","m-0","md:flex","md:align-items-center","select-none","md:flex-row","surface-section","border-1","md:border-none","surface-border","right-0","top-100","z-2","shadow-2","md:shadow-none","absolute","md:static",3,
"hidden"],[1,"toolbar",2,"height","80px"],["pRipple","","tooltipPosition","bottom",1,"p-ripple","p-element","my-3","mx-1","flex","align-items-center","cursor-pointer","p-2","lg:justify-content-center","hover:bg-gray-800","border-round","text-300","hover:text-0","transition-duration-150","transition-colors",3,"pTooltip","click"],[4,"ngIf"],[1,"font-medium","inline","md:hidden"],[1,"p-ink"],["pRipple","","tooltipPosition","bottom",1,"p-ripple","p-element","my-3","mx-1","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,"pTooltip","click"],[1,"mr-2","lg:mr-0",2,"width","32px","height","32px",3,"src"],[1,"mr-2","lg:mr-0",2,"width","32px",3,"src"],[1,"toolbar","block","flex","flex-grow-1","justify-content-center","align-items-end",2,"height","2rem"],["pButton","","pRipple","","icon","pi
pi-angle-down",1,"p-button-text","p-button-secondary",3,"pTooltip",
"click"],["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"],["selectionMode","single","sortField","NativeLanguage","sortMode","single","scrollHeight","500px","responsiveLayout","scroll",3,"value","paginator","scrollable"],[1,"font-bold"]],template:function(e,n){if(1&e&&(l(0,"div",0),_(1,MW,34,21,"div",1),_(2,kW,3,3,"ng-template",null,2,we),c(),l(4,"p-overlayPanel",3,4),_(6,RW,3,3,"ng-template",5),c(),l(7,"p-overlayPanel",3,6),_(9,OW,2,3,"ng-template",5),c()),2&e){const
s=F(3);a(1),p("ngIf",n.showTopBar)("ngIfElse",s),a(3),q(A(8,AW)),p("showCloseIcon",!0),a(3),q(A(9,PW)),p("showCloseIcon",!0)}},directives:[Q,bt,On,Kt,q9,ne,Dn,SU,j2],pipes:[ce
],styles:[".toolbar[_ngcontent-%COMP%]{background-color:#000;color:#4682b4}.theme-image[_ngcontent-%COMP%]{width:50px}"]}),t})(),NW=(()=>{class
t{constructor(e){this.dataService=e}ngOnInit(){}}return t.\u0275fac=function(e){return
new(e||t)(D(Ll))},t.\u0275cmp=z({type:t,selectors:[["app-sidenav"]],decls:32,vars:25,consts:[[1,"navbar","flex","relative","lg:static","surface-ground"],["id","sidebar",1,"bg-gray-900","lg:block","flex-shrink-0","absolute","lg:static","left-0","top-0","z-2","border-gray-800","w-18rem","lg:w-5rem","select-none",3,"hidden"],[1,"flex","flex-column","h-full"],[1,"mt-1","select-none"],[1,"list-none","p-3","lg:py-3","lg:px-2","m-0"],[3,"routerLink","pTooltip","tooltipDisabled","click"],["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"],["pRipple","",1,"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-cog","mr-2","lg:mr-0","text-base","lg:text-xl"],[1,"pi","pi-map","mr-2","lg:mr-0","text-base","lg:text-xl"],[1,"contentarea","px-0","lg:px-3","w-full"]],template:function(e,n){1&e&&(de(0),l(1,"div",0)(2,"div",1)(3,"div",2)(4,"div",3)(5,"ul",4)(6,"li",5),C("click",function(){return
n.dataService.showSidebar(!0)}),m(7,"translate"),l(8,"a",6),k(9,"i",7),l(10,"span",8),g(11),m(12,"translate"),c(),k(13,"span",9),c()(),l(14,"li",5),C("click",function(){return
n.dataService.showSidebar(!0)}),m(15,"translate"),l(16,"a",10),k(17,"i",11),l(18,"span",8),g(19),m(20,"translate"),c(),k(21,"span",9),c()(),l(22,"li",5),C("click",function(){return
n.dataService.showSidebar(!0)}),m(23,"translate"),l(24,"
a",10),k(25,"i",12),l(26,"span",8),g(27),m(28,"translate"),c(),k(29,"span",9),c()()()()()(),l(30,"div",13),k(31,"router-outlet"),c()(),pe()),2&e&&(a(2),p("hidden",n.dataService.m_showSidebar),a(4),x("pTooltip",f(7,13,"navbar.dashboard")),p("routerLink","dashboard/status")("tooltipDisabled",!1===n.dataService.m_showSidebar),a(5),S(f(12,15,"navbar.dashboard")),a(3),x("pTooltip",f(15,17,"navbar.backendSetup")),p("routerLink","setupwizard/dbsetup")("tooltipDisabled",!1===n.dataService.m_showSidebar),a(5),S(f(20,19,"navbar.backendSetup")),a(3),x("pTooltip",f(23,21,"dashboard.programguide")),p("routerLink","dashboard/program-guide")("tooltipDisabled",!1===n.dataService.m_showSidebar),a(5),S(f(28,23,"dashboard.programguide")))},directives:[gd,Kt,bt,Ml],pipes:[ce],styles:[".sidebar[_ngcontent-%COMP%]{width:70px;height:100%;margin:0}.navbar[_ngcontent-%COMP%]{min-height:calc(100vh
- 85px);max-height:calc(100vh -
85px)}.contentarea[_ngcontent-%COMP%]{overflow:scroll;height:calc(100vh - 85px)}
"]}),t})(),VW=(()=>{class
t{constructor(e,n){this.config=e,this.translate=n,this.title="MythTV
Backend",n.setDefaultLang("en_US"),n.use(localStorage.getItem("Language")||"en_US"),n.get("primeng").subscribe(s=>this.config.setTranslation(s)),this.config.ripple=!0}}return
t.\u0275fac=function(e){return
new(e||t)(D(zn),D(Oe))},t.\u0275cmp=z({type:t,selectors:[["app-root"]],decls:2,vars:0,template:function(e,n){1&e&&k(0,"app-navbar")(1,"app-sidenav")},directives:[FW,NW],styles:[""]}),t})();const
BW=["langform"],HW=["countryrow"],qW=["languagerow"];function
GW(t,i){1&t&&(g(0),m(1,"translate")),2&t&&T("
",f(1,1,"setupwizard.localSetup")," ")}function
UW(t,i){1&t&&(g(0),m(1,"translate")),2&t&&T("
",f(1,1,"setupwizard.countryAndLanguage")," ")}function
zW(t,i){1&t&&(l(0,"h2"),g(1),m(2,"translate"),c()),2&t&&(a(1),S(f(2,1,"setupwizard.selectCountry")))}function
jW(t,i){if(1&t&&(l(0,"div",18,19),k(2,"img",20),l(3,"pre")(4,"span",21),g(5),c(),g(6),c()()),2&t){const
e=i.$implicit;ie("id",e.Code)
,a(2),Bn("src","images/locale/",e.Image,"",ln),a(3),S(e.Country),a(1),We("",null!==e.NativeCountry?"
- "+e.NativeCountry:""," (",e.Code,")")}}function
$W(t,i){if(1&t&&(l(0,"div",22),k(1,"p-message",23),m(2,"translate"),c()),2&t){const
e=d(2);a(1),La("text","",f(2,2,"setupwizard.selectedCountry"),"
",e.m_wizardData.Country.Country,"")}}function
WW(t,i){1&t&&(l(0,"div",22),k(1,"p-message",24),m(2,"translate"),c()),2&t&&(a(1),x("text",f(2,1,"setupwizard.noCountry")))}function
KW(t,i){1&t&&(l(0,"h2"),g(1),m(2,"translate"),c()),2&t&&(a(1),S(f(2,1,"setupwizard.selectLanguage")))}function
QW(t,i){if(1&t&&(l(0,"div",18,25),k(2,"img",20),l(3,"pre")(4,"span",21),g(5),c(),g(6),c()()),2&t){const
e=i.$implicit;ie("id",e.Code),a(2),Bn("src","images/locale/",e.Image,"",ln),a(3),S(e.Language),a(1),We("
- ",e.NativeLanguage," (",e.Code,")")}}function
JW(t,i){if(1&t&&(l(0,"div",22),k(1,"p-message",23),m(2,"translate"),c()),2&t){const
e=d(2);a(1),La("text","",f(2,2,"setupwizard.selectedLanguage"),"
",
e.m_wizardData.Language.NativeLanguage,"")}}function
YW(t,i){1&t&&(l(0,"div",22),k(1,"p-message",26),m(2,"translate"),c()),2&t&&(a(1),x("text",f(2,1,"setupwizard.noLanguage")))}const
aS=function(){return{"max-height":"460px","min-height":"460px"}};function
ZW(t,i){if(1&t){const
e=I();l(0,"div",8)(1,"div",9)(2,"p-listbox",10),C("ngModelChange",function(s){return
v(e),d().m_wizardData.Country=s}),_(3,zW,3,3,"ng-template",11),_(4,jW,7,5,"ng-template",12),c(),_(5,$W,3,4,"div",13),_(6,WW,3,3,"ng-template",null,14,we),c(),l(8,"div",15)(9,"p-listbox",16),C("ngModelChange",function(s){return
v(e),d().m_wizardData.Language=s}),_(10,KW,3,3,"ng-template",11),_(11,QW,7,5,"ng-template",12),c(),_(12,JW,3,4,"div",13),_(13,YW,3,3,"ng-template",null,17,we),c()()}if(2&t){const
e=F(7),n=F(14),s=d();a(2),p("options",s.m_countries)("ngModel",s.m_wizardData.Country)("multiple",!1)("filter",!0)("listStyle",A(14,aS)),a(3),p("ngIf",""!=s.m_wizardData.Country.Code)("ngIfElse",e),a(4),p("options",s.m_language
s)("ngModel",s.m_wizardData.Language)("multiple",!1)("filter",!0)("listStyle",A(15,aS)),a(3),p("ngIf",""!=s.m_wizardData.Language.Code)("ngIfElse",n)}}function
XW(t,i){1&t&&(k(0,"p-message",23),m(1,"translate")),2&t&&x("text",f(1,1,"common.savesuccess"))}function
eK(t,i){1&t&&(k(0,"p-message",24),m(1,"translate")),2&t&&x("text",f(1,1,"common.networkfail"))}function
tK(t,i){if(1&t){const
e=I();l(0,"div",27)(1,"div",28),_(2,XW,2,3,"p-message",29),_(3,eK,2,3,"p-message",30),c(),l(4,"p-button",31),C("onClick",function(){v(e);const
s=d(),r=F(2);return
s.saveForm(),r.form.markAsPristine()}),m(5,"translate"),c(),l(6,"p-button",32),C("onClick",function(){return
v(e),d().router.navigate(["setupwizard/dbsetup"])}),m(7,"translate"),c(),l(8,"p-button",33),C("onClick",function(){return
v(e),d().router.navigate(["setupwizard/general"])}),m(9,"translate"),c()()}if(2&t){const
e=d(),n=F(2);a(2),p("ngIf",e.successCount>0&&e.successCount==e.expectedCount&&0==e.errorCount&&!n.dirty),a(1),p("ngIf",e.err
orCount>0),a(1),x("label",f(5,7,"common.save")),p("disabled",!n.dirty||e.setupService.schedulingEnabled),a(2),x("label",f(7,9,"common.back")),a(2),x("label",f(9,11,"common.next")),p("disabled",""==e.m_wizardData.Country.Code||""==e.m_wizardData.Language.Code)}}let
nK=(()=>{class
t{constructor(e,n,s,r,o,u){this.router=e,this.translate=n,this.setupService=s,this.configService=r,this.wizardService=o,this.mythService=u,this.m_countries=[],this.m_languages=[],this.successCount=0,this.errorCount=0,this.expectedCount=0,this.warningText="settings.common.warning",this.saveObserver={next:h=>{h.bool?(this.successCount++,this.successCount>=this.expectedCount&&localStorage.setItem("Language",this.m_wizardData.Language.Code),this.translate.use(this.m_wizardData.Language.Code)):(this.errorCount++,this.currentForm&&this.currentForm.form.markAsDirty())},error:h=>{console.error(h),this.errorCount++,this.currentForm&&this.currentForm.form.markAsDirty()}},this.translate.get(this.warningText).subscribe(
h=>{this.warningText=h})}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(),setTimeout(()=>this.scrollIntoView(),1e3)}ngAfterViewInit(){}scrollIntoView(){if(""!=this.m_wizardData.Country.Code){const
e=this.countryRowElement.find(n=>n.nativeElement.getAttribute("id")===this.m_wizardData.Country.Code);e?e.nativeElement.scrollIntoView({behavior:"instant",inline:"start",block:"center"}):console.log("Failed
to find element by ID")}if(""!=this.m_wizardData.Language.Code){const
e=this.languageRowElement.find(n=>n.nativeElement.getAttribute("id")===this.m_wizardData.Language.Code);e&&e.nativeElement.scrollIntoView({behavior:"instant",inline:"start",block:"center"})}null!=this.wizardService.m_topElement&&this.wizardService.m_topElement.nativeElement.scrollIntoView({behavior:"instant",block:"start"})}sav
eForm(){this.successCount=0,this.errorCount=0,this.expectedCount=2,this.mythService.PutSetting({HostName:"_GLOBAL_",Key:"Country",Value:this.m_wizardData.Country.Code}).subscribe(this.saveObserver),this.mythService.PutSetting({HostName:"_GLOBAL_",Key:"Language",Value:this.m_wizardData.Language.Code}).subscribe(this.saveObserver)}confirm(e){return
oe(window.confirm(e))}canDeactivate(){return!this.currentForm||!this.currentForm.dirty||this.confirm(this.warningText)}onWindowClose(e){this.currentForm&&this.currentForm.dirty&&(e.preventDefault(),e.returnValue=!1)}}return
t.\u0275fac=function(e){return
new(e||t)(D(It),D(Oe),D(Me),D(zo),D(xd),D(qt))},t.\u0275cmp=z({type:t,selectors:[["app-selectlanguage"]],viewQuery:function(e,n){if(1&e&&(W(BW,5),W(HW,5,De),W(qW,5,De)),2&e){let
s;V(s=B())&&(n.currentForm=s.first),V(s=B())&&(n.countryRowElement=s),V(s=B())&&(n.languageRowElement=s)}},hostBindings:function(e,n){1&e&&C("beforeunload",function(r){return
n.onWindowClose(r)},!1,ni)},decls:8,vars
:0,consts:[[1,"wizard-content","m-0","md:m-3"],["name","langform",1,"mx-0","md:mx-3"],["langform","ngForm"],[1,"m-0","md:m-5"],["pTemplate","title"],["pTemplate","subtitle"],["pTemplate","content"],["pTemplate","footer"],[1,"grid","m-0","md:m-3"],[1,"col-12","md:col-6","pt-2"],["optionLabel","Country","name","countries",3,"options","ngModel","multiple","filter","listStyle","ngModelChange"],["pTemplate","header"],["pTemplate","item"],["class","pt-5",4,"ngIf","ngIfElse"],["noCountry",""],[1,"col-12","md:col-6"],["optionLabel","Language","name","languages",3,"options","ngModel","multiple","filter","listStyle","ngModelChange"],["noLanguage",""],[1,"language-item"],["countryrow",""],[1,"pr-3",2,"width","70px",3,"src"],[1,"font-bold"],[1,"pt-5"],["severity","success",3,"text"],["severity","error",3,"text"],["languagerow",""],["severity","error",1,"pt-2",3,"text"],[1,"grid","nogutter","m-5"],[1,"col-12"],["severity","success",3,"text",4,"ngIf"],["severity","error",3,"text",4,"ngIf"],["icon
","pi
pi-save","iconPos","left",1,"col","pr-1",3,"label","disabled","onClick"],["icon","pi
pi-angle-left","iconPos","left",1,"pr-3",3,"label","onClick"],["icon","pi
pi-angle-right","iconPos","right",3,"label","disabled","onClick"]],template:function(e,n){1&e&&(l(0,"div",0)(1,"form",1,2)(3,"p-card",3),_(4,GW,2,3,"ng-template",4),_(5,UW,2,3,"ng-template",5),_(6,ZW,15,16,"ng-template",6),_(7,tK,10,13,"ng-template",7),c()()())},directives:[ze,Ue,He,Ne,ne,os,Te,_e,Q,qe,ve],pipes:[ce],styles:[".language-item{display:flex;align-items:center}@media
screen and (max-width:
48rem){.p-card-body,.p-card-content,.p-accordion-content{padding:0rem!important}}\n"],encapsulation:2}),t})();class
iK{constructor(i,e){this._document=e;const
n=this._textarea=this._document.createElement("textarea"),s=n.style;s.position="fixed",s.top=s.opacity="0",s.left="-999em",n.setAttribute("aria-hidden","true"),n.value=i,this._document.body.appendChild(n)}copy(){const
i=this._textarea;let e=!1;try{if(i){const n=this._
document.activeElement;i.select(),i.setSelectionRange(0,i.value.length),e=this._document.execCommand("copy"),n&&n.focus()}}catch(n){}return
e}destroy(){const i=this._textarea;i&&(i.remove(),this._textarea=void 0)}}let
lS=(()=>{class t{constructor(e){this._document=e}copy(e){const
n=this.beginCopy(e),s=n.copy();return n.destroy(),s}beginCopy(e){return new
iK(e,this._document)}}return t.\u0275fac=function(e){return
new(e||t)(K(Xt))},t.\u0275prov=X({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();const
sK=["databaseForm"];function
rK(t,i){1&t&&(g(0),m(1,"translate")),2&t&&T("
",f(1,1,"setupwizard.databaseSetup")," ")}function
oK(t,i){1&t&&(g(0),m(1,"translate")),2&t&&T("
",f(1,1,"setupwizard.enterDBLoginDetails")," ")}function
aK(t,i){1&t&&(l(0,"div")(1,"small",42),g(2),m(3,"translate"),c()()),2&t&&(a(2),S(f(3,1,"setupwizard.IPorAddressRequired")))}function
lK(t,i){1&t&&(l(0,"div")(1,"small",43),g(2),m(3,"translate"),c()()),2&t&&(a(2),S(f(3,1,"setupwizard.portRequired")))}functio
n
cK(t,i){1&t&&(l(0,"div")(1,"small",43),g(2),m(3,"translate"),c()()),2&t&&(a(2),S(f(3,1,"setupwizard.userRequired")))}function
uK(t,i){1&t&&(l(0,"div")(1,"small",43),g(2),m(3,"translate"),c()()),2&t&&(a(2),S(f(3,1,"setupwizard.passwordRequired")))}function
dK(t,i){1&t&&(l(0,"div")(1,"small",43),g(2),m(3,"translate"),c()()),2&t&&(a(2),S(f(3,1,"setupwizard.databaseNameRequired")))}function
pK(t,i){if(1&t){const
e=I();l(0,"div",30)(1,"label",44),g(2),m(3,"translate"),c(),l(4,"input",45,46),C("ngModelChange",function(s){return
v(e),d(2).database.LocalHostName=s}),c(),l(6,"small",47),g(7),m(8,"translate"),c()()}if(2&t){const
e=d(2);a(2),S(f(3,3,"setupwizard.LocalHostName_label")),a(2),p("ngModel",e.database.LocalHostName),a(3),S(f(8,5,"setupwizard.LocalHostName_desc"))}}function
hK(t,i){if(1&t){const
e=I();l(0,"div",8)(1,"label",48),g(2),m(3,"translate"),c(),l(4,"p-inputNumber",49),C("ngModelChange",function(s){return
v(e),d(2).database.WOLReconnect=s}),c(),l(5,"small",32),g(6),m(7,"tra
nslate"),c()()}if(2&t){const e=d(2);a(2),T("
",f(3,8,"settings.vsource.WOLReconnect_label"),"
"),a(2),p("ngModel",e.database.WOLReconnect)("min",0)("max",60)("step",1)("useGrouping",!1)("showButtons",!0),a(2),T("
",f(7,10,"settings.vsource.WOLReconnect_desc")," ")}}function
mK(t,i){if(1&t){const
e=I();l(0,"div",8)(1,"label",50),g(2),m(3,"translate"),c(),l(4,"p-inputNumber",51),C("ngModelChange",function(s){return
v(e),d(2).database.WOLRetry=s}),c(),l(5,"small",32),g(6),m(7,"translate"),c()()}if(2&t){const
e=d(2);a(2),T(" ",f(3,8,"settings.vsource.WOLRetry_label"),"
"),a(2),p("ngModel",e.database.WOLRetry)("min",1)("max",10)("step",1)("useGrouping",!1)("showButtons",!0),a(2),T("
",f(7,10,"settings.vsource.WOLRetry_desc")," ")}}function
fK(t,i){if(1&t){const
e=I();l(0,"div",30)(1,"label",52),g(2),m(3,"translate"),c(),l(4,"input",53,54),C("ngModelChange",function(s){return
v(e),d(2).database.WOLCommand=s}),c(),l(6,"small",55),g(7),m(8,"translate"),c()()}if(2&t){const
e=d(2);a(2),S(f(3,
3,"setupwizard.WOLCommand_label")),a(2),p("ngModel",e.database.WOLCommand),a(3),S(f(8,5,"setupwizard.WOLCommand_desc"))}}function
gK(t,i){1&t&&(l(0,"div"),k(1,"p-message",56),m(2,"translate"),c()),2&t&&(a(1),x("text",f(2,1,"setupwizard.connectedToDatabase")))}function
_K(t,i){1&t&&(l(0,"div",57,39),k(2,"p-message",58),m(3,"translate"),c()),2&t&&(a(2),x("text",f(3,1,"setupwizard.notConnectedToDatabase")))}const
cS=function(t){return{Name:t}};function
bK(t,i){if(1&t&&(l(0,"div"),k(1,"p-message",56),m(2,"translate"),c()),2&t){const
e=d(2);a(1),x("text",Dt(2,1,"setupwizard.dbsetup.havedb",U(4,cS,e.m_wizardData.Database.Name)))}}function
vK(t,i){if(1&t&&(l(0,"div",59,40),k(2,"p-message",60),m(3,"translate"),c()),2&t){const
e=d(2);a(2),x("text",Dt(3,1,"setupwizard.dbsetup.havenotdb",U(4,cS,e.m_wizardData.Database.Name)))}}const
CK=function(t){return{SchemaVersion:t}};function
yK(t,i){if(1&t&&(l(0,"div"),k(1,"p-message",61),m(2,"translate"),c()),2&t){const
e=d(2);a(1),x("text",Dt(2,1,"setu
pwizard.dbsetup.schemaver",U(4,CK,e.m_wizardData.DatabaseStatus.DatabaseStatus.SchemaVersion)))}}function
wK(t,i){1&t&&(l(0,"div",62,40),k(2,"p-message",63),m(3,"translate"),c()),2&t&&(a(2),x("text",f(3,1,"setupwizard.databaseSchemaUnknown")))}function
TK(t,i){if(1&t){const
e=I();l(0,"div")(1,"p"),g(2),m(3,"translate"),c(),l(4,"div",68)(5,"div",69),g(6,"
Sql Server Type:
"),c(),l(7,"div",70)(8,"p-radioButton",71),C("ngModelChange",function(s){return
v(e),d(3).dbtype=s})("ngModelChange",function(){return
v(e),d(3).setCommandList()}),c(),l(9,"label",72),g(10,"MySql"),c()(),l(11,"div",73)(12,"p-radioButton",74),C("ngModelChange",function(s){return
v(e),d(3).dbtype=s})("ngModelChange",function(){return
v(e),d(3).setCommandList()}),c(),l(13,"label",75),g(14,"MariaDB"),c()()(),l(15,"table",76)(16,"tr")(17,"td",65),g(18),c(),l(19,"td",66)(20,"button",67),C("click",function(){v(e);const
s=d(3);return
s.copyToclipboard(s.commandlist)}),m(21,"translate"),c()()()(),l(22,"p"),g(23),m(24,"transl
ate"),c(),l(25,"table")(26,"tr")(27,"td",65),g(28),c(),l(29,"td",66)(30,"button",67),C("click",function(){v(e);const
s=d(3);return
s.copyToclipboard(s.mySqlCommand)}),m(31,"translate"),c()()()()()}if(2&t){const
e=d(3);a(2),T(" ",f(3,8,"setupwizard.sqlinstructions"),"
"),a(6),p("ngModel",e.dbtype),a(4),p("ngModel",e.dbtype),a(6),T("
",e.commandlist,"
"),a(2),x("pTooltip",f(21,10,"settings.common.clipboard_tooltip")),a(3),S(f(24,12,"setupwizard.runcommand")),a(5),T("
",e.mySqlCommand,"
"),a(2),x("pTooltip",f(31,14,"settings.common.clipboard_tooltip"))}}function
SK(t,i){if(1&t){const
e=I();l(0,"div")(1,"h2"),g(2),m(3,"translate"),c(),_(4,TK,32,16,"div",13),l(5,"p",64),g(6),m(7,"translate"),c(),l(8,"table")(9,"tr")(10,"td",65),g(11),c(),l(12,"td",66)(13,"button",67),C("click",function(){v(e);const
s=d(2);return
s.copyToclipboard(s.tzCommand)}),m(14,"translate"),c()()()(),l(15,"p"),g(16),m(17,"translate"),c(),l(18,"p"),g(19),m(20,"translate"),c(),l(21,"p"),g(22),m(23,"translate"),c()()}i
f(2&t){const
e=d(2);a(2),S(f(3,8,"common.instructions")),a(2),p("ngIf",e.connectionFail),a(2),S(f(7,10,"setupwizard.tztables")),a(5),T("
",e.tzCommand,"
"),a(2),x("pTooltip",f(14,12,"settings.common.clipboard_tooltip")),a(3),T("",f(17,14,"setupwizard.ignoremessages"),"
"),a(3),S(f(20,16,"setupwizard.savethis")),a(3),S(f(23,18,"setupwizard.restartbe"))}}const
xK=function(t){return{"is-invalid":t}};function DK(t,i){if(1&t){const
e=I();l(0,"div",7)(1,"div",8)(2,"label",9),g(3),m(4,"translate"),c(),l(5,"input",10,11),C("ngModelChange",function(s){return
v(e),d().database.Host=s}),c(),l(7,"small",12),g(8),m(9,"translate"),c(),_(10,aK,4,3,"div",13),c(),l(11,"div",8)(12,"label",14),g(13),m(14,"translate"),c(),l(15,"input",15,16),C("ngModelChange",function(s){return
v(e),d().database.Port=s}),c(),l(17,"small",17),g(18),m(19,"translate"),c(),_(20,lK,4,3,"div",13),c(),l(21,"div",8)(22,"label",18),g(23),m(24,"translate"),c(),l(25,"input",19,20),C("ngModelChange",function(s){return
v(e),d().dat
abase.UserName=s}),c(),l(27,"small",21),g(28),m(29,"translate"),c(),_(30,cK,4,3,"div",13),c(),l(31,"div",8)(32,"label",22),g(33),m(34,"translate"),c(),l(35,"input",23,24),C("ngModelChange",function(s){return
v(e),d().database.Password=s}),c(),l(37,"small",25),g(38),m(39,"translate"),c(),_(40,uK,4,3,"div",13),c(),l(41,"div",8)(42,"label",26),g(43),m(44,"translate"),c(),l(45,"input",27,28),C("ngModelChange",function(s){return
v(e),d().database.Name=s}),c(),l(47,"small",29),g(48),m(49,"translate"),c(),_(50,dK,4,3,"div",13),c(),l(51,"div",30)(52,"p-checkbox",31),C("ngModelChange",function(s){return
v(e),d().database.LocalEnabled=s}),m(53,"translate"),c(),l(54,"small",32),g(55),m(56,"translate"),c()(),_(57,pK,9,7,"div",33),l(58,"div",30)(59,"p-checkbox",34),C("ngModelChange",function(s){return
v(e),d().database.WOLEnabled=s}),m(60,"translate"),c(),l(61,"small",32),g(62),m(63,"translate"),c()(),_(64,hK,8,12,"div",35),_(65,mK,8,12,"div",35),_(66,fK,9,7,"div",33),c(),l(67,"div")(68,"p-butto
n",36),C("click",function(){return
v(e),d().saveForm(!1)}),m(69,"translate"),c()(),l(70,"div",37),_(71,gK,3,3,"div",38),_(72,_K,4,3,"ng-template",null,39,we),_(74,bK,3,6,"div",38),_(75,vK,4,6,"ng-template",null,40,we),_(77,yK,3,6,"div",38),_(78,wK,4,3,"ng-template",null,41,we),c(),_(80,SK,24,20,"div",13)}if(2&t){const
e=F(6),n=F(16),s=F(26),r=F(36),o=F(46),u=F(73),h=F(76),b=F(79),y=d(),w=F(2);a(3),S(f(4,42,"setupwizard.MySQLServerIP")),a(2),p("ngModel",y.database.Host)("ngClass",U(72,xK,e.invalid)),a(3),S(f(9,44,"setupwizard.ipaddress_help")),a(2),p("ngIf",e.invalid&&(e.dirty||e.touched)),a(3),S(f(14,46,"setupwizard.MySQLServerPort")),a(2),p("ngModel",y.database.Port),a(3),S(f(19,48,"setupwizard.port_help")),a(2),p("ngIf",n.invalid&&(n.dirty||n.touched)),a(3),S(f(24,50,"setupwizard.MySQLUser")),a(2),p("ngModel",y.database.UserName),a(3),S(f(29,52,"setupwizard.user_help")),a(2),p("ngIf",s.invalid&&(s.dirty||s.touched)),a(3),S(f(34,54,"setupwizard.MySQLPassword")),a(2),p("ngModel",y.d
atabase.Password),a(3),S(f(39,56,"setupwizard.password_help")),a(2),p("ngIf",r.invalid&&(r.dirty||r.touched)),a(3),S(f(44,58,"setupwizard.MySQLDatabaseName")),a(2),p("ngModel",y.database.Name),a(3),S(f(49,60,"setupwizard.dbname_help")),a(2),p("ngIf",o.invalid&&(o.dirty||o.touched)),a(2),x("label",f(53,62,"setupwizard.LocalEnabled_label")),p("ngModel",y.database.LocalEnabled)("binary",!0),a(3),T("
",f(56,64,"setupwizard.LocalEnabled_desc"),"
"),a(2),p("ngIf",y.database.LocalEnabled),a(2),x("label",f(60,66,"setupwizard.WOLEnabled_label")),p("ngModel",y.database.WOLEnabled)("binary",!0),a(3),T("
",f(63,68,"setupwizard.WOLEnabled_desc"),"
"),a(2),p("ngIf",y.database.WOLEnabled),a(1),p("ngIf",y.database.WOLEnabled),a(1),p("ngIf",y.database.WOLEnabled),a(2),x("label",f(69,70,"setupwizard.testConnection")),p("disabled",null==w.invalid||w.invalid),a(3),p("ngIf",y.m_wizardData.DatabaseStatus.DatabaseStatus.Connected)("ngIfElse",u),a(3),p("ngIf",y.m_wizardData.DatabaseStatus.DatabaseStatus.Ha
veDatabase)("ngIfElse",h),a(3),p("ngIf",y.m_wizardData.DatabaseStatus.DatabaseStatus.Connected&&y.m_wizardData.DatabaseStatus.DatabaseStatus.HaveDatabase)("ngIfElse",b),a(3),p("ngIf",y.setupService.isDatabaseIgnored)}}function
MK(t,i){1&t&&(k(0,"p-message",83),m(1,"translate")),2&t&&x("text",f(1,1,"common.savesuccess"))}function
kK(t,i){1&t&&(k(0,"p-message",60),m(1,"translate")),2&t&&x("text",f(1,1,"common.networkfail"))}function
IK(t,i){1&t&&(k(0,"p-message",60),m(1,"translate")),2&t&&x("text",f(1,1,"setupwizard.connectionfail"))}function
EK(t,i){if(1&t){const
e=I();l(0,"div",77)(1,"div",78),_(2,MK,2,3,"p-message",79),_(3,kK,2,3,"p-message",80),_(4,IK,2,3,"p-message",80),c(),l(5,"p-button",81),C("onClick",function(){v(e);const
s=d(),r=F(2);return
s.saveForm(!0),r.form.markAsPristine()}),m(6,"translate"),c(),l(7,"p-button",82),C("onClick",function(){return
v(e),d().router.navigate(["setupwizard/selectlanguage"])}),m(8,"translate"),c()()}if(2&t){const
e=d(),n=F(2);a(2),p("ngIf",e.su
ccessCount>0&&e.successCount==e.expectedCount&&0==e.errorCount&&!n.dirty),a(1),p("ngIf",e.errorCount>0),a(1),p("ngIf",e.connectionFail),a(1),x("label",f(6,7,"common.save")),p("disabled",(!n.dirty||e.setupService.schedulingEnabled)&&!e.setupService.isDatabaseIgnored),a(2),x("label",f(8,9,"common.next")),p("disabled",e.setupService.isDatabaseIgnored)}}let
RK=(()=>{class
t{constructor(e,n,s,r,o,u,h,b){this.router=e,this.configService=n,this.mythService=s,this.wizardService=r,this.translate=o,this.messageService=u,this.setupService=h,this.clipboard=b,this.successCount=0,this.errorCount=0,this.expectedCount=2,this.connectionFail=!1,this.commandlist="",this.mySqlCommand="sudo
mysql -u root < setup.sql",this.tzCommand="mysql_tzinfo_to_sql
/usr/share/zoneinfo | sudo mysql -u root
mysql",this.dbtype="MySQL",this.msg_testconnection="setupwizard.testConnection",this.msg_connectionsuccess="setupwizard.connectionsuccess",this.msg_connectionfail="setupwizard.connectionfail",this.warningText="sett
ings.common.warning",this.saveObserver={next:y=>{y.bool?this.successCount++:(this.errorCount++,this.currentForm&&this.currentForm.form.markAsDirty())},error:y=>{console.error(y),this.errorCount++,this.currentForm&&this.currentForm.form.markAsDirty()}},this.translate.get(this.msg_testconnection).subscribe(y=>this.msg_testconnection=y),this.translate.get(this.msg_connectionsuccess).subscribe(y=>this.msg_connectionsuccess=y),this.translate.get(this.msg_connectionfail).subscribe(y=>this.msg_connectionfail=y),this.translate.get(this.warningText).subscribe(y=>this.warningText=y)}ngOnInit(){this.wizardService.initDatabaseStatus(),this.m_wizardData=this.wizardService.getWizardData(),this.database=Object.assign({},this.m_wizardData.Database),this.wizardService.dbPromise.then(()=>{this.database=Object.assign({},this.m_wizardData.Database)},()=>this.errorCount++)}copyToclipboard(e){this.clipboard.copy(e)}saveForm(e){this.successCount=0,this.errorCount=0,this.expectedCount=1,this.connectionFail
=!1;const
n={HostName:this.database.Host,UserName:this.database.UserName,Password:this.database.Password,DBName:this.database.Name,dbPort:this.database.Port};this.commandlist="",this.mythService.TestDBSettings(n).subscribe(s=>{s.bool?e?this.configService.SetDatabaseCredentials(this.database).subscribe(this.saveObserver):this.messageService.add({severity:"success",life:5e3,summary:this.msg_testconnection,detail:this.msg_connectionsuccess}):(this.messageService.add({severity:"error",life:5e3,summary:this.msg_testconnection,detail:this.msg_connectionfail}),this.connectionFail=!0,this.setCommandList())})}setCommandList(){let
e="";"MySQL"==this.dbtype&&(e="WITH
mysql_native_password"),this.commandlist=`CREATE DATABASE IF NOT EXISTS
${this.database.Name};\nCREATE USER IF NOT EXISTS
'${this.database.UserName}'@'localhost' IDENTIFIED ${e} by
'${this.database.Password}';\nCREATE USER IF NOT EXISTS
'${this.database.UserName}'@'%' IDENTIFIED ${e} by
'${this.database.Password}';\nGRANT ALL ON $
{this.database.Name}.* TO '${this.database.UserName}'@'localhost';\nGRANT
ALL ON ${this.database.Name}.* TO
'${this.database.UserName}'@'%';`}confirm(e){return
oe(window.confirm(e))}canDeactivate(){return!this.currentForm||!this.currentForm.dirty||this.confirm(this.warningText)}onWindowClose(e){this.currentForm&&this.currentForm.dirty&&(e.preventDefault(),e.returnValue=!1)}}return
t.\u0275fac=function(e){return
new(e||t)(D(It),D(zo),D(qt),D(xd),D(Oe),D(Gi),D(Me),D(lS))},t.\u0275cmp=z({type:t,selectors:[["app-dbsetup"]],viewQuery:function(e,n){if(1&e&&W(sK,5),2&e){let
s;V(s=B())&&(n.currentForm=s.first)}},hostBindings:function(e,n){1&e&&C("beforeunload",function(r){return
n.onWindowClose(r)},!1,ni)},features:[Pe([Gi])],decls:8,vars:0,consts:[["name","databaseForm",1,"mx-0","md:mx-3"],["databaseForm","ngForm"],[1,"m-0","md: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,"label","block"],["pInputText","","id","ipaddress","type","text","aria-describedby","ipaddress-help","name","hostname","placeholder","Ex.
127.0.0.1 or
localhost","required","",1,"mb-2","form-control","w-full",3,"ngModel","ngClass","ngModelChange"],["host","ngModel"],["id","ipaddress-help"],[4,"ngIf"],["for","port",1,"label","block"],["pInputText","","id","port","type","number","aria-describedby","port-help","name","port","placeholder","Ex.
3306","min","0","max","65536",1,"mb-2","form-control","w-full",3,"ngModel","ngModelChange"],["port","ngModel"],["id","port-help"],["for","user",1,"label","block"],["pInputText","","id","user","type","text","aria-describedby","user-help","name","user","placeholder","Ex.
mythtv","required","",1,"mb-2","form-control","w-full",3,"ngModel","ngModelChange"],["user","ngModel"],["id","user-help"],["for","password",1,"label","block"],["pInputText","","id","password","type","text","aria-describedby","password-help","name","password",
"placeholder","Ex.
mythtv","required","",1,"mb-2","form-control","w-full",3,"ngModel","ngModelChange"],["password","ngModel"],["id","password-help"],["for","dbname",1,"label","block"],["pInputText","","id","dbname","type","text","aria-describedby","dbname-help","name","dbname","placeholder","Ex.
mythconverg","required","",1,"mb-2","form-control","w-full",3,"ngModel","ngModelChange"],["dbname","ngModel"],["id","dbname-help"],[1,"field","col-12"],["name","LocalEnabled",1,"mb-2","w-full","label","block",3,"ngModel","binary","label","ngModelChange"],[1,"block"],["class","field
col-12",4,"ngIf"],["name","WOLEnabled",1,"mb-2","w-full","label","block",3,"ngModel","binary","label","ngModelChange"],["class","field
col-12
md:col-6",4,"ngIf"],["type","button",1,"mr-1","p-button-raised","p-button-secondary",3,"label","disabled","click"],[1,"pt-4",2,"display","flex"],[4,"ngIf","ngIfElse"],["notconnected",""],["nodatabase",""],["noschema",""],["id","address-help",1,"p-error","block"],[1,"p-error"
,"block"],["for","LocalHostName",1,"label","block"],["pInputText","","id","LocalHostName","type","text","aria-describedby","LocalHostName-help","name","LocalHostName",1,"mb-2","form-control","w-full",3,"ngModel","ngModelChange"],["LocalHostName","ngModel"],["id","LocalHostName-help"],["for","WOLReconnect",1,"label","block"],["name","WOLReconnect","id","WOLReconnect",3,"ngModel","min","max","step","useGrouping","showButtons","ngModelChange"],["for","WOLRetry",1,"label","block"],["name","WOLRetry","id","WOLRetry",3,"ngModel","min","max","step","useGrouping","showButtons","ngModelChange"],["for","WOLCommand",1,"label","block"],["pInputText","","id","WOLCommand","type","text","aria-describedby","WOLCommand-help","name","WOLCommand",1,"mb-2","form-control","w-full",3,"ngModel","ngModelChange"],["WOLCommand","ngModel"],["id","WOLCommand-help"],["severity","success",1,"pr-2",3,"text"],[1,"pr-2","notconnected"],["severity","error",1,"",3,"text"],[1,"pr-2","nodatabase"],["severity","error",3
,"text"],["severity","info",1,"pr-2",3,"text"],[1,"pr-2","noschema"],["severity","info",3,"text"],[1,""],[1,"align-items-center","bg-blue-100","text-gray-900",2,"font-family","monospace"],[1,"align-items-center"],["pButton","","pRipple","","type","button","icon","pi
pi-copy",1,"p-button-rounded","p-button-text",3,"pTooltip","click"],[1,"flex","pb-3"],[1,"flex-none","flex","align-items-center","label","block","pr-5"],[1,"flex-none","flex","align-items-center","pr-5"],["name","dbtype","value","MySQL","inputId","mysql",3,"ngModel","ngModelChange"],["for","mysql"],[1,"flex-none","flex","align-items-center"],["name","dbtype","value","MariaDB","inputId","mariadb",3,"ngModel","ngModelChange"],["for","mariadb"],[2,"white-space","pre-line"],[1,"grid","nogutter","m-5"],[1,"col-12"],["severity","success",3,"text",4,"ngIf"],["severity","error",3,"text",4,"ngIf"],["icon","pi
pi-save","iconPos","left",1,"col","pr-1",3,"label","disabled","onClick"],["icon","pi
pi-angle-right","iconPos","right",1,"
pr-3",3,"label","disabled","onClick"],["severity","success",3,"text"]],template:function(e,n){1&e&&(k(0,"p-toast"),l(1,"form",0,1)(3,"p-card",2),_(4,rK,2,3,"ng-template",3),_(5,oK,2,3,"ng-template",4),_(6,DK,81,74,"ng-template",5),_(7,EK,9,11,"ng-template",6),c()())},directives:[Td,ze,Ue,He,Ne,ne,Ye,ll,Te,_e,Le,Q,Du,xu,Su,sn,pt,ve,qe,Sd,On,bt,Kt],pipes:[ce],styles:[".is-invalid{border-color:red}@media
screen and (max-width:
48rem){.p-card-body,.p-card-content,.p-accordion-content{padding:0rem!important}}\n"],encapsulation:2}),t})();const
LK=["hostaddress"];function
OK(t,i){1&t&&(g(0),m(1,"translate")),2&t&&T("
",f(1,1,"settings.hostaddress.title")," ")}function
AK(t,i){1&t&&(g(0),m(1,"translate")),2&t&&T("
",f(1,1,"settings.hostaddress.subtitle")," ")}function
PK(t,i){1&t&&(l(0,"div")(1,"small",40),g(2),m(3,"translate"),c()()),2&t&&(a(2),S(f(3,1,"setupwizard.portRequired")))}function
FK(t,i){1&t&&(l(0,"div")(1,"small",40),g(2),m(3,"translate"),c()()),2&t&&(a(2),S(f(3,1,"setupwizard.
portRequired")))}function
NK(t,i){1&t&&(l(0,"div")(1,"small",40),g(2),m(3,"translate"),c()()),2&t&&(a(2),T("
",f(3,1,"settings.hostaddress.pin_reqd")," "))}function
VK(t,i){1&t&&(l(0,"div")(1,"small",52),g(2,"IPv4
address"),c()())}function
BK(t,i){1&t&&(l(0,"div")(1,"small",40),g(2,"IPv6
address"),c()())}function HK(t,i){if(1&t){const
e=I();l(0,"div")(1,"div",9)(2,"label",41),g(3),m(4,"translate"),c(),l(5,"p-dropdown",42,43),C("ngModelChange",function(s){return
v(e),d(2).m_HostAddressData.BackendServerIP=s}),c(),l(7,"small",44),g(8),m(9,"translate"),c(),_(10,VK,3,0,"div",14),c(),l(11,"div",9)(12,"label",45),g(13),m(14,"translate"),c(),l(15,"p-dropdown",46,47),C("ngModelChange",function(s){return
v(e),d(2).m_HostAddressData.BackendServerIP6=s}),c(),l(17,"small",48),g(18),m(19,"translate"),c(),_(20,BK,3,0,"div",14),c(),l(21,"div",9)(22,"p-checkbox",49,50),C("ngModelChange",function(s){return
v(e),d(2).m_HostAddressData.AllowLinkLocal=s}),m(24,"translate"),c(),l(25,"small",51),g(26),m(
27,"translate"),c()()()}if(2&t){const
e=F(6),n=F(16),s=d(2);a(3),S(f(4,14,"settings.hostaddress.ipv4_label")),a(2),p("options",s.m_IPsV4)("ngModel",s.m_HostAddressData.BackendServerIP),a(3),T("
",f(9,16,"settings.hostaddress.ipv4_desc"),"
"),a(2),p("ngIf",e.invalid&&(e.dirty||e.touched)),a(3),T("
",f(14,18,"settings.hostaddress.ipv6_label"),"
"),a(2),p("options",s.m_IPsV6)("ngModel",s.m_HostAddressData.BackendServerIP6),a(3),T("
",f(19,20,"settings.hostaddress.ipv6_desc"),"
"),a(2),p("ngIf",n.invalid&&(n.dirty||n.touched)),a(2),x("label",f(24,22,"settings.hostaddress.listenlinklocal_label")),p("ngModel",s.m_HostAddressData.AllowLinkLocal)("binary",!0),a(4),T("
",f(27,24,"settings.hostaddress.listenlinklocal_desc"),"
")}}function
qK(t,i){1&t&&(l(0,"div")(1,"small",40),g(2,"Primary
IP address / DNS name is required"),c()())}function
GK(t,i){1&t&&(l(0,"div")(1,"small",53),g(2),m(3,"translate"),c()()),2&t&&(a(2),T("
",f(3,1,"settings.hostaddress.ismaster_hint")," "))}function
UK(t,i){1&
t&&(l(0,"div")(1,"small",54),g(2,"Hostname of master
backend is required"),c()())}const
uS=function(t){return{"is-invalid":t}};function zK(t,i){if(1&t){const
e=I();l(0,"div",7)(1,"p-fieldset",8),m(2,"translate"),l(3,"div",9)(4,"label",10),g(5),m(6,"translate"),c(),l(7,"input",11,12),C("ngModelChange",function(s){return
v(e),d().m_HostAddressData.BackendServerPort=s}),c(),l(9,"small",13),g(10),m(11,"translate"),c(),_(12,PK,4,3,"div",14),c(),l(13,"div",9)(14,"label",15),g(15),m(16,"translate"),c(),l(17,"input",16,17),C("ngModelChange",function(s){return
v(e),d().m_HostAddressData.BackendStatusPort=s}),c(),l(19,"small",18),g(20),m(21,"translate"),c(),_(22,FK,4,3,"div",14),c()(),l(23,"p-fieldset",8),m(24,"translate"),l(25,"div",9)(26,"label",19),g(27),m(28,"translate"),c(),l(29,"input",20,21),C("ngModelChange",function(s){return
v(e),d().m_HostAddressData.SecurityPin=s}),c(),l(31,"small",22),g(32),m(33,"translate"),c(),_(34,NK,4,3,"div",14),c()(),l(35,"p-fieldset",8),m(36,"translate"),l
(37,"div",9)(38,"p-checkbox",23,24),C("ngModelChange",function(s){return
v(e),d().m_HostAddressData.AllowConnFromAll=s}),m(40,"translate"),c(),l(41,"small",22),k(42,"div",25),m(43,"translate"),c()()(),l(44,"p-fieldset",8),m(45,"translate"),l(46,"div",9)(47,"p-checkbox",26,27),C("ngModelChange",function(s){return
v(e),d().m_HostAddressData.ListenOnAllIps=s}),m(49,"translate"),c(),l(50,"small",28),g(51),m(52,"translate"),c()(),_(53,HK,28,26,"div",14),c(),l(54,"p-fieldset",8),m(55,"translate"),l(56,"div",9)(57,"div",9)(58,"label",29),g(59),m(60,"translate"),c(),l(61,"p-dropdown",30,31),C("ngModelChange",function(s){return
v(e),d().m_HostAddressData.BackendServerAddr=s}),c(),l(63,"small",32),g(64),m(65,"translate"),c()(),_(66,qK,3,0,"div",14),c()(),l(67,"p-fieldset",8),m(68,"translate"),l(69,"div",9)(70,"p-checkbox",33,34),C("ngModelChange",function(s){return
v(e),d().m_HostAddressData.IsMasterBackend=s})("onChange",function(){return
v(e),d().setMaster()}),m(72,"translate"),c(),l(73,"sm
all",35),g(74),m(75,"translate"),c(),_(76,GK,4,3,"div",14),c(),l(77,"div",9)(78,"label",36),g(79),m(80,"translate"),c(),l(81,"input",37,38),C("ngModelChange",function(s){return
v(e),d().m_HostAddressData.MasterServerName=s}),c(),l(83,"small",39),k(84,"div",25),m(85,"translate"),c(),_(86,UK,3,0,"div",14),c()()()}if(2&t){const
e=F(8),n=F(18),s=F(30),r=F(62),o=F(82),u=d();a(1),x("legend",f(2,44,"settings.hostaddress.panel.ports")),a(4),T("
",f(6,46,"settings.hostaddress.backendport_label"),"
"),a(2),p("ngModel",u.m_HostAddressData.BackendServerPort)("ngClass",U(88,uS,e.invalid)),a(3),T("
",f(11,48,"settings.hostaddress.backendport_desc"),"
"),a(2),p("ngIf",e.invalid&&(e.dirty||e.touched)),a(3),T("
",f(16,50,"settings.hostaddress.statusport_label"),"
"),a(2),p("ngModel",u.m_HostAddressData.BackendStatusPort)("ngClass",U(90,uS,n.invalid)),a(3),S(f(21,52,"settings.hostaddress.statusport_desc")),a(2),p("ngIf",n.invalid&&(n.dirty||n.touched)),a(1),x("legend",f(24,54,"settings.hostaddress.pa
nel.pin")),a(4),T("
",f(28,56,"settings.hostaddress.pin_label"),"
"),a(2),p("ngModel",u.m_HostAddressData.SecurityPin),a(3),T("
",f(33,58,"settings.hostaddress.pin_desc"),"
"),a(2),p("ngIf",s.invalid&&(s.dirty||s.touched)),a(1),x("legend",f(36,60,"settings.hostaddress.panel.allowconn")),a(3),x("label",f(40,62,"settings.hostaddress.allowconn_label")),p("ngModel",u.m_HostAddressData.AllowConnFromAll)("binary",!0),a(4),p("innerHTML",f(43,64,"settings.hostaddress.allowconn_desc"),Bt),a(2),x("legend",f(45,66,"settings.hostaddress.panel.iplisten")),a(3),x("label",f(49,68,"settings.hostaddress.listenall_label")),p("ngModel",u.m_HostAddressData.ListenOnAllIps)("binary",!0),a(4),T("
",f(52,70,"settings.hostaddress.listenall_desc"),"
"),a(2),p("ngIf",!u.m_HostAddressData.ListenOnAllIps),a(1),x("legend",f(55,72,"settings.hostaddress.panel.primaryadd")),a(5),T("
",f(60,74,"settings.hostaddress.primaryip_label"),"
"),a(2),p("options",u.m_IPsAll)("ngModel",u.m_HostAddressData.BackendServerAddr)("
editable",!0),a(3),T("
",f(65,76,"settings.hostaddress.primaryip_desc"),"
"),a(2),p("ngIf",r.invalid&&(r.dirty||r.touched)),a(1),x("legend",f(68,78,"settings.hostaddress.panel.masterbe")),a(3),x("label",f(72,80,"settings.hostaddress.ismaster_label")),p("ngModel",u.m_HostAddressData.IsMasterBackend)("binary",!0),a(4),T("
",f(75,82,"settings.hostaddress.ismaster_desc"),"
"),a(2),p("ngIf",u.m_showChangeHint),a(3),S(f(80,84,"settings.hostaddress.master_label")),a(2),p("ngModel",u.m_HostAddressData.MasterServerName),a(3),p("innerHTML",f(85,86,"settings.hostaddress.master_desc"),Bt),a(2),p("ngIf",o.invalid&&(o.dirty||o.touched))}}function
jK(t,i){1&t&&(k(0,"p-message",60),m(1,"translate")),2&t&&x("text",f(1,1,"common.savesuccess"))}function
$K(t,i){1&t&&(k(0,"p-message",61),m(1,"translate")),2&t&&x("text",f(1,1,"common.networkfail"))}function
WK(t,i){if(1&t){const
e=I();l(0,"div",55)(1,"div",56),_(2,jK,2,3,"p-message",57),_(3,$K,2,3,"p-message",58),c(),l(4,"p-button",59),C("onClick",funct
ion(){v(e);const s=d(),r=F(1);return
s.saveForm(),r.form.markAsPristine()}),m(5,"translate"),c()()}if(2&t){const
e=d(),n=F(1);a(2),p("ngIf",e.m_HostAddressData.successCount>0&&0==e.m_HostAddressData.errorCount&&!n.dirty),a(1),p("ngIf",e.m_HostAddressData.errorCount>0),a(1),x("label",f(5,4,"common.save")),p("disabled",!n.dirty||e.setupService.schedulingEnabled)}}let
KK=(()=>{class
t{constructor(e,n){this.setupService=e,this.configService=n,this.m_IsMasterBackend=!1,this.m_showChangeHint=!1,this.m_HostAddressData=this.setupService.getHostAddressData(),setTimeout(()=>n.GetIPAddresses("All").subscribe(s=>this.m_IPsAll=s.IPAddresses),500),n.GetIPAddresses("IPv4").subscribe(s=>this.m_IPsV4=s.IPAddresses),n.GetIPAddresses("IPv6").subscribe(s=>this.m_IPsV6=s.IPAddresses)}ngOnInit(){}ngAfterViewInit(){this.setupService.setCurrentForm(this.currentForm)}setMaster(){void
0===this.m_savedMaster&&(this.m_savedMaster=this.m_HostAddressData.MasterServerName),this.m_HostAddressData.IsMasterBackend?(
this.m_HostAddressData.MasterServerName=this.m_HostAddressData.thisHostName,this.m_showChangeHint=!1):this.m_HostAddressData.MasterServerName==this.m_savedMaster?this.m_showChangeHint=!0:this.m_HostAddressData.MasterServerName=this.m_savedMaster}saveForm(){console.log("save
form clicked"),this.setupService.saveHostAddressData(this.currentForm)}}return
t.\u0275fac=function(e){return
new(e||t)(D(Me),D(zo))},t.\u0275cmp=z({type:t,selectors:[["app-host-address"]],viewQuery:function(e,n){if(1&e&&W(LK,5),2&e){let
s;V(s=B())&&(n.currentForm=s.first)}},decls:7,vars:0,consts:[["name","hostaddress",1,"mx-0","md:mx-3"],["hostaddress","ngForm"],[1,"m-0","md:m-5"],["pTemplate","title"],["pTemplate","subtitle"],["pTemplate","content"],["pTemplate","footer"],[1,"grid"],[1,"mb-4","w-full",3,"legend"],[1,"form-group","field"],["for","backendserverport",1,"label","block"],["pInputText","","id","backendserverport","type","number","name","backendserverport","placeholder","Ex.
6543","required","","min",
"0","max","65536",1,"mb-2","form-control","w-10rem",3,"ngModel","ngClass","ngModelChange"],["backendserverport","ngModel"],["id","backendserverport-help",1,"block"],[4,"ngIf"],["for","backendstatusport",1,"label","block"],["pInputText","","id","backendstatusport","type","number","name","backendstatusport","placeholder","Ex.
6544","required","","min","0","max","65536",1,"mb-2","form-control","w-10rem",3,"ngModel","ngClass","ngModelChange"],["backendstatusport","ngModel"],["id","backendstatusport-help",1,"block"],["for","securitypin",1,"label","block"],["pInputText","","id","securitypin","type","text","name","securitypin","placeholder","Ex.
1234","required","",1,"mb-2","form-control","w-10rem",3,"ngModel","ngModelChange"],["securitypin","ngModel"],["id","securitypin-help",1,"block"],["inputId","AllowConnFromAll","name","AllowConnFromAll",1,"mb-2","w-full",3,"ngModel","binary","label","ngModelChange"],["AllowConnFromAll","ngModel"],[3,"innerHTML"],["inputId","ListenOnAllIps","name","Li
stenOnAllIps",1,"mb-2","w-full",3,"ngModel","binary","label","ngModelChange"],["ListenOnAllIps","ngModel"],["id","ListenOnAllIps-help",1,"block"],["for","BackendServerAddr",1,"label","block","w-full"],["name","BackendServerAddr","aria-describedby","BackendServerAddr-help",1,"block","mb-2","w-full",3,"options","ngModel","editable","ngModelChange"],["BackendServerAddr","ngModel"],["id","BackendServerAddr-help",1,"block","w-full"],["inputId","IsMasterBackend","name","IsMasterBackend",1,"mb-2","w-full",3,"ngModel","binary","label","ngModelChange","onChange"],["IsMasterBackend","ngModel"],["id","IsMasterBackend-help",1,"block"],["for","MasterServerName",1,"label","block"],["pInputText","","id","MasterServerName","type","text","name","MasterServerName","placeholder","Ex.
masterbe","disabled","disabled",1,"mb-2","form-control","w-15rem","read-only",3,"ngModel","ngModelChange"],["MasterServerName","ngModel"],["id","MasterServerName-help",1,"block"],[1,"p-error","block"],["for","BackendServe
rIP",1,"label","block"],["name","BackendServerIP","aria-describedby","BackendServerIP-help",1,"block","w-15rem","mb-2",3,"options","ngModel","ngModelChange"],["BackendServerIP","ngModel"],["id","BackendServerIP-help",1,"block"],["for","BackendServerIP6",1,"label","block"],["name","BackendServerIP6","aria-describedby","BackendServerIP6-help",1,"block","w-15rem","mb-2",3,"options","ngModel","ngModelChange"],["BackendServerIP6","ngModel"],["id","BackendServerIP6-help",1,"block"],["inputId","AllowLinkLocal","name","AllowLinkLocal",1,"mb-2","w-full",3,"ngModel","binary","label","ngModelChange"],["AllowLinkLocal","ngModel"],["id","AllowLinkLocal-help",1,"block"],["id","LocalServerIP-help",1,"p-error","block"],["id","IsMasterBackend-help",1,"p-error","block"],["id","MasterServerName-help",1,"p-error","block"],[1,"grid","nogutter"],[1,"col-12"],["severity","success",3,"text",4,"ngIf"],["severity","error",3,"text",4,"ngIf"],["icon","pi
pi-save","iconPos","left",1,"col","pr-1",3,"label","disa
bled","onClick"],["severity","success",3,"text"],["severity","error",3,"text"]],template:function(e,n){1&e&&(l(0,"form",0,1)(2,"p-card",2),_(3,OK,2,3,"ng-template",3),_(4,AK,2,3,"ng-template",4),_(5,zK,87,92,"ng-template",5),_(6,WK,6,6,"ng-template",6),c()())},directives:[ze,Ue,He,Ne,ne,Ui,Du,xu,Su,Ye,ll,Te,_e,Le,Q,sn,Ot,qe,ve],pipes:[ce],styles:["[_nghost-%COMP%]
.p-dropdown{width:18rem}.read-only[_ngcontent-%COMP%]{opacity:1;background-color:#e0e0e0;border-style:solid;height:2rem}"]}),t})();const
QK=["locale"];function
JK(t,i){1&t&&(g(0),m(1,"translate")),2&t&&T("
",f(1,1,"settings.locale.title")," ")}function
YK(t,i){1&t&&(g(0),m(1,"translate")),2&t&&T("
",f(1,1,"settings.locale.subtitle")," ")}function
ZK(t,i){if(1&t){const
e=I();l(0,"div",7)(1,"p-fieldset",8),m(2,"translate"),l(3,"div",9)(4,"label",10),g(5,"TV
Format"),c(),l(6,"p-dropdown",11),C("ngModelChange",function(s){return
v(e),d().TVFormat=s}),c(),l(7,"small",12),g(8),m(9,"translate"),c()(),l(10,"div",9)(11,"label",
13),g(12),m(13,"translate"),c(),l(14,"p-dropdown",14),C("ngModelChange",function(s){return
v(e),d().VbiFormat=s}),c(),l(15,"small",15),g(16),m(17,"translate"),c()()(),l(18,"p-fieldset",8),m(19,"translate"),l(20,"div",9)(21,"label",16),g(22),m(23,"translate"),c(),l(24,"p-dropdown",17),C("ngModelChange",function(s){return
v(e),d().FreqTable=s}),c(),l(25,"small",18),g(26),m(27,"translate"),c()()()()}if(2&t){const
e=d();a(1),x("legend",f(2,13,"settings.locale.tvformat_label")),a(5),p("options",e.m_TVFormats)("ngModel",e.TVFormat),a(2),T("
",f(9,15,"settings.locale.tvformat_desc"),"
"),a(4),S(f(13,17,"settings.locale.vbiformat_label")),a(2),p("options",e.m_vbiFormats)("ngModel",e.VbiFormat),a(2),T("
",f(17,19,"settings.locale.vbiformat_desc"),"
"),a(2),x("legend",f(19,21,"settings.locale.freqtable_label")),a(4),S(f(23,23,"settings.locale.channfreq_label")),a(2),p("options",e.m_FreqTables)("ngModel",e.FreqTable),a(2),T("
",f(27,25,"settings.locale.channfreq_desc")," ")}}function
XK(t,i){1
&t&&(k(0,"p-message",24),m(1,"translate")),2&t&&x("text",f(1,1,"common.savesuccess"))}function
eQ(t,i){1&t&&(k(0,"p-message",25),m(1,"translate")),2&t&&x("text",f(1,1,"common.networkfail"))}function
tQ(t,i){if(1&t){const
e=I();l(0,"div",19)(1,"div",20),_(2,XK,2,3,"p-message",21),_(3,eQ,2,3,"p-message",22),c(),l(4,"p-button",23),C("onClick",function(){v(e);const
s=d(),r=F(1);return
s.saveForm(),r.form.markAsPristine()}),m(5,"translate"),c()()}if(2&t){const
e=d(),n=F(1);a(2),p("ngIf",e.successCount>0&&0==e.errorCount&&!n.dirty),a(1),p("ngIf",e.errorCount>0),a(1),x("label",f(5,4,"common.save")),p("disabled",!n.dirty||e.setupService.schedulingEnabled)}}const
nQ=function(){return{width:"100%"}};let iQ=(()=>{class
t{constructor(e,n){this.setupService=e,this.mythService=n,this.successCount=0,this.errorCount=0,this.TVFormat="PAL",this.VbiFormat="None",this.FreqTable="us-bcast",this.LocaleObs={next:s=>{s.bool?this.successCount++:(this.errorCount++,this.currentForm&&this.currentForm.form.mark
AsDirty())},error:s=>{console.error(s),this.errorCount++,this.currentForm&&this.currentForm.form.markAsDirty()}},this.m_TVFormats=["NTSC","NTSC-JP","PAL","PAL-60","PAL-BG","PAL-DK","PAL-D","PAL-I","PAL-M","PAL-N","PAL-NC","SECAM","SECAM-D","DECAM-DK"],this.m_vbiFormats=["None","PAL
teletext","NTSC closed
caption"],this.m_FreqTables=["us-bcast","us-cable","us-cable-hrc","us-cable-irc","japan-bcast","japan-cable","europe-west","europe-east","italy","newzealand","australia","ireland","france","china-bcast","southafrica","argentina","australia-optus","singapore","malaysia","israel-hot-matav","try-all"],this.getLocaleData()}getLocaleData(){this.mythService.GetSetting({HostName:"_GLOBAL_",Key:"TVFormat"}).subscribe({next:e=>this.TVFormat=e.String,error:()=>this.errorCount++}),this.mythService.GetSetting({HostName:"_GLOBAL_",Key:"VbiFormat"}).subscribe({next:e=>this.VbiFormat=e.String,error:()=>this.errorCount++}),this.mythService.GetSetting({HostName:"_GLOBAL_",Key:"FreqTable"}).subscribe
({next:e=>this.FreqTable=e.String,error:()=>this.errorCount++})}ngOnInit(){}ngAfterViewInit(){this.setupService.setCurrentForm(this.currentForm)}saveForm(){this.successCount=0,this.errorCount=0,this.mythService.PutSetting({HostName:"_GLOBAL_",Key:"TVFormat",Value:this.TVFormat}).subscribe(this.LocaleObs),this.mythService.PutSetting({HostName:"_GLOBAL_",Key:"VbiFormat",Value:this.VbiFormat}).subscribe(this.LocaleObs),this.mythService.PutSetting({HostName:"_GLOBAL_",Key:"FreqTable",Value:this.FreqTable}).subscribe(this.LocaleObs)}}return
t.\u0275fac=function(e){return
new(e||t)(D(Me),D(qt))},t.\u0275cmp=z({type:t,selectors:[["app-locale"]],viewQuery:function(e,n){if(1&e&&W(QK,5),2&e){let
s;V(s=B())&&(n.currentForm=s.first)}},decls:7,vars:3,consts:[["name","locale",1,"ml-3","mr-3",3,"ngSubmit"],["locale","ngForm"],[1,"m-5"],["pTemplate","title"],["pTemplate","subtitle"],["pTemplate","TV
Formats"],["pTemplate","footer"],[1,"grid"],[1,"mb-4","w-full",3,"legend"],[1,"form-group","field"],
["for","tvformat",1,"label","block"],["name","tvformat","aria-describedby","tvformat-help",1,"w-full","mb-2",3,"options","ngModel","ngModelChange"],["id","tvformat-help",1,"block","mt-2"],["for","vbiformat",1,"label","block"],["name","vbiformat","aria-describedby","vbiformat-help",1,"mb-5","w-full",3,"options","ngModel","ngModelChange"],["id","vbiformat-help",1,"block","mt-2"],["for","freqtable",1,"label","block"],["name","freqtable",1,"mb-2","w-full",3,"options","ngModel","ngModelChange"],["id","freqtable-help",1,"block","pt-2"],[1,"grid","nogutter"],[1,"col-12"],["severity","success",3,"text",4,"ngIf"],["severity","error",3,"text",4,"ngIf"],["icon","pi
pi-save","iconPos","left",1,"col","pr-1",3,"label","disabled","onClick"],["severity","success",3,"text"],["severity","error",3,"text"]],template:function(e,n){1&e&&(l(0,"form",0,1),C("ngSubmit",function(){return
n.saveForm()}),l(2,"p-card",2),_(3,JK,2,3,"ng-template",3),_(4,YK,2,3,"ng-template",4),_(5,ZK,28,27,"ng-template",5),_(6,t
Q,6,6,"ng-template",6),c()()),2&e&&(a(2),q(A(2,nQ)))},directives:[ze,Ue,He,Ne,ne,Ui,Ot,Te,_e,Q,qe,ve],pipes:[ce],styles:["[_nghost-%COMP%]
.p-dropdown{width:18rem}"]}),t})();const sQ=["miscsettings"];function
rQ(t,i){1&t&&(g(0),m(1,"translate")),2&t&&T("
",f(1,1,"settings.misc.title")," ")}function
oQ(t,i){1&t&&(g(0),m(1,"translate")),2&t&&T("
",f(1,1,"settings.misc.subtitle")," ")}function
aQ(t,i){if(1&t){const
e=I();l(0,"div",7)(1,"p-fieldset",8),m(2,"translate"),l(3,"div",9)(4,"p-checkbox",10),C("ngModelChange",function(s){return
v(e),d().MasterBackendOverride=s}),m(5,"translate"),c(),l(6,"small",11),g(7),m(8,"translate"),c()(),l(9,"div",9)(10,"p-checkbox",12),C("ngModelChange",function(s){return
v(e),d().DeletesFollowLinks=s}),m(11,"translate"),c(),l(12,"small",11),g(13),m(14,"translate"),c()(),l(15,"div",9)(16,"p-checkbox",13),C("ngModelChange",function(s){return
v(e),d().TruncateDeletesSlowly=s}),m(17,"translate"),c(),l(18,"small",11),g(19),m(20,"translate"),c()(),l(21,"di
v",9)(22,"label",14),g(23),m(24,"translate"),c(),l(25,"p-inputNumber",15),C("ngModelChange",function(s){return
v(e),d().HDRingbufferSize=s}),c(),l(26,"small",11),g(27),m(28,"translate"),c()(),l(29,"div",9)(30,"label",16),g(31),m(32,"translate"),c(),l(33,"p-dropdown",17),C("ngModelChange",function(s){return
v(e),d().StorageScheduler=s}),c(),l(34,"small",11),g(35),m(36,"translate"),c()()(),l(37,"p-fieldset",8),m(38,"translate"),l(39,"div",9)(40,"label",18),g(41),m(42,"translate"),c(),l(43,"p-dropdown",19),C("ngModelChange",function(s){return
v(e),d().UPNPWmpSource=s}),c(),l(44,"small",11),g(45),m(46,"translate"),c()()(),l(47,"div",20)(48,"div",9)(49,"label",21),g(50),m(51,"translate"),c(),l(52,"input",22),C("ngModelChange",function(s){return
v(e),d().MiscStatusScript=s}),c(),l(53,"small",11),g(54),m(55,"translate"),l(56,"a",23),g(57,"Miscellaneous
Status
Information"),c()()(),l(58,"div",9)(59,"p-checkbox",24),C("ngModelChange",function(s){return
v(e),d().DisableAutomaticBackup=s}),m(6
0,"translate"),c(),l(61,"small",11),g(62),m(63,"translate"),c()(),l(64,"div",9)(65,"p-checkbox",25),C("ngModelChange",function(s){return
v(e),d().DisableFirewireReset=s}),m(66,"translate"),c(),l(67,"small",11),g(68),m(69,"translate"),c()()()()}if(2&t){const
e=d();a(1),x("legend",f(2,44,"settings.misc.panel_filemgmt")),p("toggleable",!0)("collapsed",!0),a(3),x("label",f(5,46,"settings.misc.mbo_label")),p("ngModel",e.MasterBackendOverride)("binary",!0),a(3),T("
",f(8,48,"settings.misc.mbo_desc"),"
"),a(3),x("label",f(11,50,"settings.misc.follow_label")),p("ngModel",e.DeletesFollowLinks)("binary",!0),a(3),T("
",f(14,52,"settings.misc.follow_desc"),"
"),a(3),x("label",f(17,54,"settings.misc.slowly_label")),p("ngModel",e.TruncateDeletesSlowly)("binary",!0),a(3),T("
",f(20,56,"settings.misc.slowly_desc"),"
"),a(4),S(f(24,58,"settings.misc.ringbuf_label")),a(2),p("ngModel",e.HDRingbufferSize)("showButtons",!0)("min",4700)("max",94e3)("step",4700),a(2),T("
",f(28,60,"settings.misc.ringbuf_d
esc"),"
"),a(4),S(f(32,62,"settings.misc.sg_label")),a(2),p("options",e.soptions)("ngModel",e.StorageScheduler),a(2),T("
",f(36,64,"settings.misc.sg_desc"),"
"),a(2),x("legend",f(38,66,"settings.misc.panel_upnp")),p("toggleable",!0)("collapsed",!0),a(4),S(f(42,68,"settings.misc.upnp_label")),a(2),p("options",e.uoptions)("ngModel",e.UPNPWmpSource),a(2),T("
",f(46,70,"settings.misc.upnp_desc"),"
"),a(5),S(f(51,72,"settings.misc.statapp_label")),a(2),p("ngModel",e.MiscStatusScript),a(2),T("
",f(55,74,"settings.misc.statapp_desc"),"
"),a(5),x("label",f(60,76,"settings.misc.disback_label")),p("ngModel",e.DisableAutomaticBackup)("binary",!0),a(3),T("
",f(63,78,"settings.misc.disback_desc"),"
"),a(3),x("label",f(66,80,"settings.misc.disfwr_label")),p("ngModel",e.DisableFirewireReset)("binary",!0),a(3),T("
",f(69,82,"settings.misc.disfwr_desc")," ")}}function
lQ(t,i){1&t&&(k(0,"p-message",31),m(1,"translate")),2&t&&x("text",f(1,1,"common.savesuccess"))}function
cQ(t,i){1&t&&(k(0,"p-message"
,32),m(1,"translate")),2&t&&x("text",f(1,1,"common.networkfail"))}function
uQ(t,i){if(1&t){const
e=I();l(0,"div",26)(1,"div",27),_(2,lQ,2,3,"p-message",28),_(3,cQ,2,3,"p-message",29),c(),l(4,"p-button",30),C("onClick",function(){v(e);const
s=d(),r=F(1);return
s.saveForm(),r.form.markAsPristine()}),m(5,"translate"),c()()}if(2&t){const
e=d(),n=F(1);a(2),p("ngIf",e.successCount>0&&0==e.errorCount&&!n.dirty),a(1),p("ngIf",e.errorCount>0&&!n.dirty),a(1),x("label",f(5,4,"common.save")),p("disabled",!n.dirty||e.setupService.schedulingEnabled)}}let
dQ=(()=>{class
t{constructor(e,n,s){this.setupService=e,this.translate=n,this.mythService=s,this.successCount=0,this.errorCount=0,this.MasterBackendOverride=!1,this.DeletesFollowLinks=!1,this.TruncateDeletesSlowly=!1,this.HDRingbufferSize=9400,this.StorageScheduler="BalancedFreeSpace",this.UPNPWmpSource="0",this.MiscStatusScript="",this.DisableAutomaticBackup=!1,this.DisableFirewireReset=!1,this.hostName="",this.soptions=[{name:"settings.misc.sg_
balfree",code:"BalancedFreeSpace"},{name:"settings.misc.sg_balpercent",code:"BalancedPercFreeSpace"},{name:"settings.misc.bal_io",code:"BalancedDiskIO"},{name:"settings.misc.sg_combination",code:"Combination"}],this.uoptions=[{name:"settings.misc.upnp_recs",code:"0"},{name:"settings.misc.upnp_videos",code:"1"}],this.miscObserver={next:r=>{r.bool?this.successCount++:(this.errorCount++,this.currentForm&&this.currentForm.form.markAsDirty())},error:r=>{console.error(r),this.errorCount++,this.currentForm&&this.currentForm.form.markAsDirty()}},n.get(this.soptions[0].name).subscribe(r=>this.soptions[0].name=r),n.get(this.soptions[1].name).subscribe(r=>this.soptions[1].name=r),n.get(this.soptions[2].name).subscribe(r=>this.soptions[2].name=r),n.get(this.soptions[3].name).subscribe(r=>this.soptions[3].name=r),n.get(this.uoptions[0].name).subscribe(r=>this.uoptions[0].name=r),n.get(this.uoptions[1].name).subscribe(r=>this.uoptions[1].name=r),this.mythService.GetHostName().subscribe({next:r=>{
this.hostName=r.String,this.getMiscellaneousData()},error:()=>this.errorCount++})}getMiscellaneousData(){this.mythService.GetSetting({HostName:"_GLOBAL_",Key:"MasterBackendOverride",Default:"0"}).subscribe({next:e=>this.MasterBackendOverride="1"==e.String,error:()=>this.errorCount++}),this.mythService.GetSetting({HostName:"_GLOBAL_",Key:"DeletesFollowLinks",Default:"0"}).subscribe({next:e=>this.DeletesFollowLinks="1"==e.String,error:()=>this.errorCount++}),this.mythService.GetSetting({HostName:this.hostName,Key:"TruncateDeletesSlowly",Default:"0"}).subscribe({next:e=>this.TruncateDeletesSlowly="1"==e.String,error:()=>this.errorCount++}),this.mythService.GetSetting({HostName:"_GLOBAL_",Key:"HDRingbufferSize",Default:"9400"}).subscribe({next:e=>this.HDRingbufferSize=Number(e.String),error:()=>this.errorCount++}),this.mythService.GetSetting({HostName:"_GLOBAL_",Key:"StorageScheduler",Default:"BalancedFreeSpace"}).subscribe({next:e=>this.StorageScheduler=e.String,error:()=>this.errorCou
nt++}),this.mythService.GetSetting({HostName:"_GLOBAL_",Key:"UPNPWmpSource",Default:"0"}).subscribe({next:e=>this.UPNPWmpSource=e.String,error:()=>this.errorCount++}),this.mythService.GetSetting({HostName:this.hostName,Key:"MiscStatusScript",Default:""}).subscribe({next:e=>this.MiscStatusScript=e.String,error:()=>this.errorCount++}),this.mythService.GetSetting({HostName:"_GLOBAL_",Key:"DisableAutomaticBackup",Default:"0"}).subscribe({next:e=>this.DisableAutomaticBackup="1"==e.String,error:()=>this.errorCount++}),this.mythService.GetSetting({HostName:this.hostName,Key:"DisableFirewireReset",Default:"0"}).subscribe({next:e=>this.DisableFirewireReset="1"==e.String,error:()=>this.errorCount++})}ngOnInit(){}ngAfterViewInit(){this.setupService.setCurrentForm(this.currentForm)}saveForm(){this.successCount=0,this.errorCount=0,this.mythService.PutSetting({HostName:"_GLOBAL_",Key:"MasterBackendOverride",Value:this.MasterBackendOverride?"1":"0"}).subscribe(this.miscObserver),this.mythService.P
utSetting({HostName:"_GLOBAL_",Key:"DeletesFollowLinks",Value:this.DeletesFollowLinks?"1":"0"}).subscribe(this.miscObserver),this.mythService.PutSetting({HostName:this.hostName,Key:"TruncateDeletesSlowly",Value:this.TruncateDeletesSlowly?"1":"0"}).subscribe(this.miscObserver),this.mythService.PutSetting({HostName:"_GLOBAL_",Key:"HDRingbufferSize",Value:String(this.HDRingbufferSize)}).subscribe(this.miscObserver),this.mythService.PutSetting({HostName:"_GLOBAL_",Key:"StorageScheduler",Value:this.StorageScheduler}).subscribe(this.miscObserver),this.mythService.PutSetting({HostName:"_GLOBAL_",Key:"UPNPWmpSource",Value:this.UPNPWmpSource}).subscribe(this.miscObserver),this.mythService.PutSetting({HostName:this.hostName,Key:"MiscStatusScript",Value:this.MiscStatusScript}).subscribe(this.miscObserver),this.mythService.PutSetting({HostName:"_GLOBAL_",Key:"DisableAutomaticBackup",Value:this.DisableAutomaticBackup?"1":"0"}).subscribe(this.miscObserver),this.mythService.PutSetting({HostName:th
is.hostName,Key:"DisableFirewireReset",Value:this.DisableFirewireReset?"1":"0"}).subscribe(this.miscObserver)}}return
t.\u0275fac=function(e){return
new(e||t)(D(Me),D(Oe),D(qt))},t.\u0275cmp=z({type:t,selectors:[["app-misc-settings"]],viewQuery:function(e,n){if(1&e&&W(sQ,5),2&e){let
s;V(s=B())&&(n.currentForm=s.first)}},decls:7,vars:0,consts:[["name","miscsettings",1,"ml-3","mr-3"],["miscsettings","ngForm"],[1,"m-5"],["pTemplate","title"],["pTemplate","subtitle"],["pTemplate","content"],["pTemplate","footer"],[1,"grid"],[1,"mb-4","w-full",3,"legend","toggleable","collapsed"],[1,"form-group","field"],["name","MasterBackendOverride",1,"mb-2","w-full","label",3,"ngModel","binary","label","ngModelChange"],[1,"block"],["name","DeletesFollowLinks",1,"mb-2","w-full","label",3,"ngModel","binary","label","ngModelChange"],["name","TruncateDeletesSlowly",1,"mb-2","w-full","label",3,"ngModel","binary","label","ngModelChange"],["for","HDRingbufferSize",1,"label","block"],["name","HDRingbufferSiz
e","id","HDRingbufferSize",3,"ngModel"...
t",4,"ngIf"],["severity","error",3,"text",4,"ngIf"],["icon","pi
pi-save","iconPos","left",1,"col","pr-1",3,"label","disabled","onClick"],["severity","success",3,"text"],["severity","error",3,"text"]],template:function(e,n){1&e&&(l(0,"form",0,1)(2,"p-card",2),_(3,rQ,2,3,"ng-template",3),_(4,oQ,2,3,"ng-template",4),_(5,aQ,70,84,"ng-template",5),_(6,uQ,6,6,"ng-template",6),c()())},directives:[ze,Ue,He,Ne,ne,Ui,sn,Te,_e,pt,Ot,Ye,Q,qe,ve],pipes:[ce],styles:["a[_ngcontent-%COMP%]:link,
a[_ngcontent-%COMP%]:visited,
a[_ngcontent-%COMP%]:active{background-color:#fff}"]}),t})();const
pQ=["eitscanopt"];function
hQ(t,i){1&t&&(g(0),m(1,"translate")),2&t&&T("
",f(1,1,"settings.eit.title")," ")}function
mQ(t,i){1&t&&(g(0),m(1,"translate")),2&t&&T("
",f(1,1,"settings.eit.subtitle")," ")}function
fQ(t,i){if(1&t){const
e=I();l(0,"div",7)(1,"div",8)(2,"div",9)(3,"label",10),g(4),m(5,"translate"),c(),l(6,"p-inputNumber",11),C("ngModelChange",function(s){return
v(e),d().EITTransportTimeout=s}),c(),l(7,
"small",12),g(8),m(9,"translate"),c()(),l(10,"div",9)(11,"label",13),g(12),m(13,"translate"),c(),l(14,"p-inputNumber",14),C("ngModelChange",function(s){return
v(e),d().EITCrawIdleStart=s}),c(),l(15,"small",12),g(16),m(17,"translate"),c()(),l(18,"div",9)(19,"label",15),g(20),m(21,"translate"),c(),l(22,"p-inputNumber",16),C("ngModelChange",function(s){return
v(e),d().EITScanPeriod=s}),c(),l(23,"small",12),g(24),m(25,"translate"),c()()()()}if(2&t){const
e=d();a(4),S(f(5,21,"settings.eit.timeout_label")),a(2),p("ngModel",e.EITTransportTimeout)("showButtons",!0)("min",1)("max",15)("step",1),a(2),T("
",f(9,23,"settings.eit.timeout_desc"),"
"),a(4),S(f(13,25,"settings.eit.crawl_label")),a(2),p("ngModel",e.EITCrawIdleStart)("showButtons",!0)("min",30)("max",7200)("step",30),a(2),T("
",f(17,27,"settings.eit.crawl_desc"),"
"),a(4),S(f(21,29,"settings.eit.scan_label")),a(2),p("ngModel",e.EITScanPeriod)("showButtons",!0)("min",5)("max",60)("step",5),a(2),T("
",f(25,31,"settings.eit.scan_desc"),
" ")}}function
gQ(t,i){1&t&&(k(0,"p-message",22),m(1,"translate")),2&t&&x("text",f(1,1,"common.savesuccess"))}function
_Q(t,i){1&t&&(k(0,"p-message",23),m(1,"translate")),2&t&&x("text",f(1,1,"common.networkfail"))}function
bQ(t,i){if(1&t){const
e=I();l(0,"div",17)(1,"div",18),_(2,gQ,2,3,"p-message",19),_(3,_Q,2,3,"p-message",20),c(),l(4,"p-button",21),C("onClick",function(){v(e);const
s=d(),r=F(1);return
s.saveForm(),r.form.markAsPristine()}),m(5,"translate"),c()()}if(2&t){const
e=d(),n=F(1);a(2),p("ngIf",e.successCount>0&&0==e.errorCount&&!n.dirty),a(1),p("ngIf",e.errorCount>0),a(1),x("label",f(5,4,"common.save")),p("disabled",!n.dirty||e.setupService.schedulingEnabled)}}let
vQ=(()=>{class
t{constructor(e,n){this.setupService=e,this.mythService=n,this.successCount=0,this.errorCount=0,this.EITTransportTimeout=5,this.EITCrawIdleStart=60,this.EITScanPeriod=15,this.eitObserver={next:s=>{s.bool?this.successCount++:(this.errorCount++,this.currentForm&&this.currentForm.form.markAsDirty())
},error:s=>{console.error(s),this.errorCount++,this.currentForm&&this.currentForm.form.markAsDirty()}},this.getEITScanner()}ngOnInit(){}ngAfterViewInit(){this.setupService.setCurrentForm(this.currentForm)}getEITScanner(){this.mythService.GetSetting({HostName:"_GLOBAL_",Key:"EITTransportTimeout",Default:"5"}).subscribe({next:e=>this.EITTransportTimeout=Number(e.String),error:()=>this.errorCount++}),this.mythService.GetSetting({HostName:"_GLOBAL_",Key:"EITCrawIdleStart",Default:"60"}).subscribe({next:e=>this.EITCrawIdleStart=Number(e.String),error:()=>this.errorCount++}),this.mythService.GetSetting({HostName:"_GLOBAL_",Key:"EITScanPeriod",Default:"15"}).subscribe({next:e=>this.EITScanPeriod=Number(e.String),error:()=>this.errorCount++})}saveForm(){this.successCount=0,this.errorCount=0,this.mythService.PutSetting({HostName:"_GLOBAL_",Key:"EITTransportTimeout",Value:String(this.EITTransportTimeout)}).subscribe(this.eitObserver),this.mythService.PutSetting({HostName:"_GLOBAL_",Key:"EITCr
awIdleStart",Value:String(this.EITCrawIdleStart)}).subscribe(this.eitObserver),this.mythService.PutSetting({HostName:"_GLOBAL_",Key:"EITScanPeriod",Value:String(this.EITScanPeriod)}).subscribe(this.eitObserver)}}return
t.\u0275fac=function(e){return
new(e||t)(D(Me),D(qt))},t.\u0275cmp=z({type:t,selectors:[["app-eit-scanner"]],viewQuery:function(e,n){if(1&e&&W(pQ,5),2&e){let
s;V(s=B())&&(n.currentForm=s.first)}},decls:7,vars:0,consts:[["name","eitscanopt",1,"ml-3","mr-3"],["eitscanopt","ngForm"],[1,"m-5"],["pTemplate","title"],["pTemplate","subtitle"],["pTemplate","content"],["pTemplate","footer"],[1,"grid"],[1,"mb-4","w-full"],[1,"form-group","field"],["for","EITTransportTimeout",1,"label","block"],["name","EITTransportTimeout","id","EITTransportTimeout",3,"ngModel","showButtons","min","max","step","ngModelChange"],[1,"block"],["for","EITCrawIdleStart",1,"label","block"],["name","EITCrawIdleStart","id","EITCrawIdleStart",3,"ngModel","showButtons","min","max","step","ngModelChange"],
["for","EITScanPeriod",1,"label","block"],["name","EITScanPeriod","id","EITScanPeriod",3,"ngModel","showButtons","min","max","step","ngModelChange"],[1,"grid","nogutter"],[1,"col-12"],["severity","success",3,"text",4,"ngIf"],["severity","error",3,"text",4,"ngIf"],["icon","pi
pi-save","iconPos","left",1,"col","pr-1",3,"label","disabled","onClick"],["severity","success",3,"text"],["severity","error",3,"text"]],template:function(e,n){1&e&&(l(0,"form",0,1)(2,"p-card",2),_(3,hQ,2,3,"ng-template",3),_(4,mQ,2,3,"ng-template",4),_(5,fQ,26,33,"ng-template",5),_(6,bQ,6,6,"ng-template",6),c()())},directives:[ze,Ue,He,Ne,ne,pt,Te,_e,Q,qe,ve],pipes:[ce],styles:[""]}),t})();const
CQ=["shutwakeopt"];function
yQ(t,i){1&t&&(g(0),m(1,"translate")),2&t&&T("
",f(1,1,"settings.shutwake.title")," ")}function
wQ(t,i){1&t&&(g(0),m(1,"translate")),2&t&&T("
",f(1,1,"settings.shutwake.subtitle")," ")}function
TQ(t,i){if(1&t){const
e=I();l(0,"div",7)(1,"div",8)(2,"div",9)(3,"label",10),g(4),m(5,"translate"),c(
),l(6,"input",11),C("ngModelChange",function(s){return
v(e),d().startupCommand=s}),c(),l(7,"small",12),g(8),m(9,"translate"),c()(),l(10,"div",9)(11,"p-checkbox",13),C("ngModelChange",function(s){return
v(e),d().blockSDWUwithoutClient=s}),m(12,"translate"),c(),l(13,"small",12),g(14),m(15,"translate"),c()(),l(16,"div",9)(17,"label",14),g(18),m(19,"translate"),c(),l(20,"p-inputNumber",15),C("ngModelChange",function(s){return
v(e),d().idleTimeoutSecs=s}),c(),l(21,"small",12),g(22),m(23,"translate"),c()(),l(24,"div",9)(25,"label",16),g(26),m(27,"translate"),c(),l(28,"p-inputNumber",17),C("ngModelChange",function(s){return
v(e),d().idleWaitForRecordingTime=s}),c(),l(29,"small",12),g(30),m(31,"translate"),c()(),l(32,"div",9)(33,"label",18),g(34),m(35,"translate"),c(),l(36,"p-inputNumber",19),C("ngModelChange",function(s){return
v(e),d().StartupSecsBeforeRecording=s}),c(),l(37,"small",12),g(38),m(39,"translate"),c()(),l(40,"div",9)(41,"label",20),g(42),m(43,"translate"),c(),l(44,"input",21)
,C("ngModelChange",function(s){return
v(e),d().WakeupTimeFormat=s}),c(),l(45,"small",12),g(46),m(47,"translate"),c()(),l(48,"div",9)(49,"label",22),g(50),m(51,"translate"),c(),l(52,"input",23),C("ngModelChange",function(s){return
v(e),d().SetWakeuptimeCommand=s}),c(),l(53,"small",12),g(54),m(55,"translate"),c()(),l(56,"div",9)(57,"label",24),g(58),m(59,"translate"),c(),l(60,"input",25),C("ngModelChange",function(s){return
v(e),d().ServerHaltCommand=s}),c(),l(61,"small",12),g(62),m(63,"translate"),c()(),l(64,"div",9)(65,"label",26),g(66),m(67,"translate"),c(),l(68,"input",27),C("ngModelChange",function(s){return
v(e),d().preSDWUCheckCommand=s}),c(),l(69,"small",12),g(70),m(71,"translate"),c()()()()}if(2&t){const
e=d();a(4),S(f(5,40,"settings.shutwake.startcmd_label")),a(2),p("ngModel",e.startupCommand),a(2),T("
",f(9,42,"settings.shutwake.startcmd_desc"),"
"),a(3),x("label",f(12,44,"settings.shutwake.block_label")),p("ngModel",e.blockSDWUwithoutClient)("binary",!0),a(3),T("
",f(15,46
,"settings.shutwake.block_desc"),"
"),a(4),T("",f(19,48,"settings.shutwake.idletime_label"),"}"),a(2),p("ngModel",e.idleTimeoutSecs)("showButtons",!0)("min",0)("max",1200)("step",5),a(2),T("
",f(23,50,"settings.shutwake.idletime_desc"),"
"),a(4),S(f(27,52,"settings.shutwake.maxwait_label")),a(2),p("ngModel",e.idleWaitForRecordingTime)("showButtons",!0)("min",0)("max",300)("step",1),a(2),T("
",f(31,54,"settings.shutwake.maxwait_desc"),"
"),a(4),S(f(35,56,"settings.shutwake.startbefore_label")),a(2),p("ngModel",e.StartupSecsBeforeRecording)("showButtons",!0)("min",0)("max",300)("step",1),a(2),T("
",f(39,58,"settings.shutwake.startbefore_desc"),"
"),a(4),S(f(43,60,"settings.shutwake.timeformat_label")),a(2),p("ngModel",e.WakeupTimeFormat),a(2),T("
",f(47,62,"settings.shutwake.timeformat_desc"),"
"),a(4),S(f(51,64,"settings.shutwake.timecmd_label")),a(2),p("ngModel",e.SetWakeuptimeCommand),a(2),T("
",f(55,66,"settings.shutwake.timecmd_desc"),"
"),a(4),S(f(59,68,"settings.shutwake.server
halt_label")),a(2),p("ngModel",e.ServerHaltCommand),a(2),T("
",f(63,70,"settings.shutwake.serverhalt_desc"),"
"),a(4),S(f(67,72,"settings.shutwake.preshut_label")),a(2),p("ngModel",e.preSDWUCheckCommand),a(2),T("
",f(71,74,"settings.shutwake.preshut_desc")," ")}}function
SQ(t,i){1&t&&(k(0,"p-message",33),m(1,"translate")),2&t&&x("text",f(1,1,"common.savesuccess"))}function
xQ(t,i){1&t&&(k(0,"p-message",34),m(1,"translate")),2&t&&x("text",f(1,1,"common.networkfail"))}function
DQ(t,i){if(1&t){const
e=I();l(0,"div",28)(1,"div",29),_(2,SQ,2,3,"p-message",30),_(3,xQ,2,3,"p-message",31),c(),l(4,"p-button",32),C("onClick",function(){v(e);const
s=d(),r=F(1);return
s.saveForm(),r.form.markAsPristine()}),m(5,"translate"),c()()}if(2&t){const
e=d(),n=F(1);a(2),p("ngIf",e.successCount>0&&0==e.errorCount&&!n.dirty),a(1),p("ngIf",e.errorCount>0),a(1),x("label",f(5,4,"common.save")),p("disabled",!n.dirty||e.setupService.schedulingEnabled)}}let
MQ=(()=>{class t{constructor(e,n){this.setupService=e,t
his.mythService=n,this.successCount=0,this.errorCount=0,this.startupCommand="",this.blockSDWUwithoutClient=!0,this.idleTimeoutSecs=0,this.idleWaitForRecordingTime=15,this.StartupSecsBeforeRecording=120,this.WakeupTimeFormat="hh
=mm
yyyy-MM-dd",this.SetWakeuptimeCommand="",this.ServerHaltCommand="sudo
/sbin/halt
-p",this.preSDWUCheckCommand="",this.swObserver={next:s=>{s.bool?this.successCount++:(this.errorCount++,this.currentForm&&this.currentForm.form.markAsDirty())},error:s=>{console.error(s),this.errorCount++,this.currentForm&&this.currentForm.form.markAsDirty()}},this.getShutWake()}ngOnInit(){}ngAfterViewInit(){this.setupService.setCurrentForm(this.currentForm)}getShutWake(){this.mythService.GetSetting({HostName:"_GLOBAL_",Key:"startupCommand",Default:""}).subscribe({next:e=>this.startupCommand=e.String,error:()=>this.errorCount++}),this.mythService.GetSetting({HostName:"_GLOBAL_",Key:"blockSDWUwithoutClient",Default:"1"}).subscribe({next:e=>this.blockSDWUwithoutClient="1"==e.St
ring,error:()=>this.errorCount++}),this.mythService.GetSetting({HostName:"_GLOBAL_",Key:"idleTimeoutSecs",Default:"0"}).subscribe({next:e=>this.idleTimeoutSecs=Number(e.String),error:()=>this.errorCount++}),this.mythService.GetSetting({HostName:"_GLOBAL_",Key:"idleWaitForRecordingTime",Default:""}).subscribe({next:e=>this.idleWaitForRecordingTime=Number(e.String),error:()=>this.errorCount++}),this.mythService.GetSetting({HostName:"_GLOBAL_",Key:"StartupSecsBeforeRecording",Default:"120"}).subscribe({next:e=>this.StartupSecsBeforeRecording=Number(e.String),error:()=>this.errorCount++}),this.mythService.GetSetting({HostName:"_GLOBAL_",Key:"WakeupTimeFormat",Default:"hh:mm
yyyy-MM-dd"}).subscribe({next:e=>this.WakeupTimeFormat=e.String,error:()=>this.errorCount++}),this.mythService.GetSetting({HostName:"_GLOBAL_",Key:"SetWakeuptimeCommand",Default:""}).subscribe({next:e=>this.SetWakeuptimeCommand=e.String,error:()=>this.errorCount++}),this.mythService.GetSetting({HostName:"_GLOBAL_",Ke
y:"ServerHaltCommand",Default:"sudo /sbin/halt
-p"}).subscribe({next:e=>this.ServerHaltCommand=e.String,error:()=>this.errorCount++}),this.mythService.GetSetting({HostName:"_GLOBAL_",Key:"preSDWUCheckCommand",Default:""}).subscribe({next:e=>this.preSDWUCheckCommand=e.String,error:()=>this.errorCount++})}saveForm(){this.successCount=0,this.errorCount=0,this.mythService.PutSetting({HostName:"_GLOBAL_",Key:"startupCommand",Value:this.startupCommand}).subscribe(this.swObserver),this.mythService.PutSetting({HostName:"_GLOBAL_",Key:"blockSDWUwithoutClient",Value:this.blockSDWUwithoutClient?"1":"0"}).subscribe(this.swObserver),this.mythService.PutSetting({HostName:"_GLOBAL_",Key:"idleTimeoutSecs",Value:String(this.idleTimeoutSecs)}).subscribe(this.swObserver),this.mythService.PutSetting({HostName:"_GLOBAL_",Key:"idleWaitForRecordingTime",Value:String(this.idleWaitForRecordingTime)}).subscribe(this.swObserver),this.mythService.PutSetting({HostName:"_GLOBAL_",Key:"StartupSecsBeforeRecording"
,Value:String(this.StartupSecsBeforeRecording)}).subscribe(this.swObserver),this.mythService.PutSetting({HostName:"_GLOBAL_",Key:"WakeupTimeFormat",Value:this.WakeupTimeFormat}).subscribe(this.swObserver),this.mythService.PutSetting({HostName:"_GLOBAL_",Key:"SetWakeuptimeCommand",Value:this.SetWakeuptimeCommand}).subscribe(this.swObserver),this.mythService.PutSetting({HostName:"_GLOBAL_",Key:"ServerHaltCommand",Value:this.ServerHaltCommand}).subscribe(this.swObserver),this.mythService.PutSetting({HostName:"_GLOBAL_",Key:"preSDWUCheckCommand",Value:this.preSDWUCheckCommand}).subscribe(this.swObserver)}}return
t.\u0275fac=function(e){return
new(e||t)(D(Me),D(qt))},t.\u0275cmp=z({type:t,selectors:[["app-shutdown-wakeup"]],viewQuery:function(e,n){if(1&e&&W(CQ,5),2&e){let
s;V(s=B())&&(n.currentForm=s.first)}},decls:7,vars:0,consts:[["name","shutwakeopt",1,"ml-3","mr-3"],["shutwakeopt","ngForm"],[1,"m-5"],["pTemplate","title"],["pTemplate","subtitle"],["pTemplate","content"],["pTemplate",
"footer"],[1,"grid"],[1,"mb-4","w-full"],[1,"form-group","field"],["for","startupCommand",1,"label","block"],["pInputText","","id","startupCommand","name","startupCommand",1,"mb-2","form-control","w-full",3,"ngModel","ngModelChange"],[1,"block"],["inputId","blockSDWUwithoutClient","name","blockSDWUwithoutClient",1,"mb-2","w-full","label",3,"ngModel","binary","label","ngModelChange"],["for","idleTimeoutSecs",1,"label","block"],["name","idleTimeoutSecs","id","idleTimeoutSecs",3,"ngModel","showButtons","min","max","step","ngModelChange"],["for","idleWaitForRecordingTime",1,"label","block"],["name","idleWaitForRecordingTime","id","idleWaitForRecordingTime",3,"ngModel","showButtons","min","max","step","ngModelChange"],["for","StartupSecsBeforeRecording",1,"label","block"],["name","StartupSecsBeforeRecording","id","StartupSecsBeforeRecording",3,"ngModel","showButtons","min","max","step","ngModelChange"],["for","WakeupTimeFormat",1,"label","block"],["pInputText","","id","WakeupTimeFormat",
"name","WakeupTimeFormat",1,"mb-2","form-control","w-full",3,"ngModel","ngModelChange"],["for","SetWakeuptimeCommand",1,"label","block"],["pInputText","","id","SetWakeuptimeCommand","name","SetWakeuptimeCommand",1,"mb-2","form-control","w-full",3,"ngModel","ngModelChange"],["for","ServerHaltCommand",1,"label","block"],["pInputText","","id","ServerHaltCommand","name","ServerHaltCommand",1,"mb-2","form-control","w-full",3,"ngModel","ngModelChange"],["for","preSDWUCheckCommand",1,"label","block"],["pInputText","","id","preSDWUCheckCommand","name","preSDWUCheckCommand",1,"mb-2","form-control","w-full",3,"ngModel","ngModelChange"],[1,"grid","nogutter"],[1,"col-12"],["severity","success",3,"text",4,"ngIf"],["severity","error",3,"text",4,"ngIf"],["icon","pi
pi-save","iconPos","left",1,"col","pr-1",3,"label","disabled","onClick"],["severity","success",3,"text"],["severity","error",3,"text"]],template:function(e,n){1&e&&(l(0,"form",0,1)(2,"p-card",2),_(3,yQ,2,3,"ng-template",3),_(4,wQ,2,3,"n
g-template",4),_(5,TQ,72,76,"ng-template",5),_(6,DQ,6,6,"ng-template",6),c()())},directives:[ze,Ue,He,Ne,ne,Ye,Te,_e,sn,pt,Q,qe,ve],pipes:[ce],styles:[""]}),t})();const
kQ=["backendwakeup"];function
IQ(t,i){1&t&&(g(0),m(1,"translate")),2&t&&T("
",f(1,1,"settings.backendwake.title")," ")}function
EQ(t,i){1&t&&(g(0),m(1,"translate")),2&t&&T("
",f(1,1,"settings.backendwake.subtitle")," ")}function
RQ(t,i){if(1&t){const
e=I();l(0,"div",7)(1,"p-fieldset",8),m(2,"translate"),l(3,"div",9)(4,"label",10),g(5),m(6,"translate"),c(),l(7,"p-inputNumber",11),C("ngModelChange",function(s){return
v(e),d().WOLbackendReconnectWaitTime=s}),c(),l(8,"small",12),g(9),m(10,"translate"),c()(),l(11,"div",9)(12,"label",13),g(13),m(14,"translate"),c(),l(15,"p-inputNumber",14),C("ngModelChange",function(s){return
v(e),d().WOLbackendConnectRetry=s}),c(),l(16,"small",12),g(17),m(18,"translate"),c()(),l(19,"div",9)(20,"label",15),g(21),m(22,"translate"),c(),l(23,"input",16),C("ngModelChange",function(s){return
v(
e),d().WOLbackendCommand=s}),c(),l(24,"small",12),g(25),m(26,"translate"),c()()(),l(27,"p-fieldset",8),m(28,"translate"),l(29,"div",9)(30,"label",17),g(31),m(32,"translate"),c(),l(33,"input",18),C("ngModelChange",function(s){return
v(e),d().SleepCommand=s}),c(),l(34,"small",12),g(35),m(36,"translate"),c()(),l(37,"div",9)(38,"label",19),g(39),m(40,"translate"),c(),l(41,"input",20),C("ngModelChange",function(s){return
v(e),d().WakeUpCommand=s}),c(),l(42,"small",12),g(43),m(44,"translate"),c()()()()}if(2&t){const
e=d();a(1),x("legend",f(2,29,"settings.backendwake.master.title")),p("toggleable",!0)("collapsed",!0),a(4),S(f(6,31,"settings.backendwake.master.delay_label")),a(2),p("ngModel",e.WOLbackendReconnectWaitTime)("showButtons",!0)("min",0)("max",1200)("step",5),a(2),T("
",f(10,33,"settings.backendwake.master.delay_desc"),"
"),a(4),S(f(14,35,"settings.backendwake.master.attempts_label")),a(2),p("ngModel",e.WOLbackendConnectRetry)("showButtons",!0)("min",1)("max",60)("step",1),a(2),T
(" ",f(18,37,"settings.backendwake.master.attempts_desc"),"
"),a(4),S(f(22,39,"settings.backendwake.master.cmd_label")),a(2),p("ngModel",e.WOLbackendCommand),a(2),T("
",f(26,41,"settings.backendwake.master.cmd_desc"),"
"),a(2),x("legend",f(28,43,"settings.backendwake.slave.title")),p("toggleable",!0)("collapsed",!0),a(4),S(f(32,45,"settings.backendwake.slave.sleep_label")),a(2),p("ngModel",e.SleepCommand),a(2),T("
",f(36,47,"settings.backendwake.slave.sleep_desc"),"
"),a(4),S(f(40,49,"settings.backendwake.slave.wake_label")),a(2),p("ngModel",e.WakeUpCommand),a(2),T("
",f(44,51,"settings.backendwake.slave.wake_desc")," ")}}function
LQ(t,i){1&t&&(k(0,"p-message",26),m(1,"translate")),2&t&&x("text",f(1,1,"common.savesuccess"))}function
OQ(t,i){1&t&&(k(0,"p-message",27),m(1,"translate")),2&t&&x("text",f(1,1,"common.networkfail"))}function
AQ(t,i){if(1&t){const
e=I();l(0,"div",21)(1,"div",22),_(2,LQ,2,3,"p-message",23),_(3,OQ,2,3,"p-message",24),c(),l(4,"p-button",25),C("onClick",functio
n(){v(e);const s=d(),r=F(1);return
s.saveForm(),r.form.markAsPristine()}),m(5,"translate"),c()()}if(2&t){const
e=d(),n=F(1);a(2),p("ngIf",e.successCount>0&&0==e.errorCount&&!n.dirty),a(1),p("ngIf",e.errorCount>0),a(1),x("label",f(5,4,"common.save")),p("disabled",!n.dirty||e.setupService.schedulingEnabled)}}let
PQ=(()=>{class
t{constructor(e,n){this.setupService=e,this.mythService=n,this.hostName="",this.successCount=0,this.errorCount=0,this.WOLbackendReconnectWaitTime=0,this.WOLbackendConnectRetry=5,this.WOLbackendCommand="",this.SleepCommand="",this.WakeUpCommand="",this.bewObserver={next:s=>{s.bool?this.successCount++:(this.errorCount++,this.currentForm&&this.currentForm.form.markAsDirty())},error:s=>{console.error(s),this.errorCount++,this.currentForm&&this.currentForm.form.markAsDirty()}}}ngOnInit(){}ngAfterViewInit(){this.setupService.setCurrentForm(this.currentForm)}getBackendWake(){this.mythService.GetHostName().subscribe({next:e=>{this.hostName=e.String,this.getSettings()},e
rror:()=>this.errorCount++})}getSettings(){this.mythService.GetSetting({HostName:"_GLOBAL_",Key:"WOLbackendReconnectWaitTime",Default:"0"}).subscribe({next:e=>this.WOLbackendReconnectWaitTime=Number(e.String),error:()=>this.errorCount++}),this.mythService.GetSetting({HostName:"_GLOBAL_",Key:"WOLbackendConnectRetry",Default:"5"}).subscribe({next:e=>this.WOLbackendConnectRetry=Number(e.String),error:()=>this.errorCount++}),this.mythService.GetSetting({HostName:"_GLOBAL_",Key:"WOLbackendCommand",Default:""}).subscribe({next:e=>this.WOLbackendCommand=e.String,error:()=>this.errorCount++}),this.mythService.GetSetting({HostName:this.hostName,Key:"SleepCommand",Default:""}).subscribe({next:e=>this.SleepCommand=e.String,error:()=>this.errorCount++}),this.mythService.GetSetting({HostName:this.hostName,Key:"WakeUpCommand",Default:""}).subscribe({next:e=>this.WakeUpCommand=e.String,error:()=>this.errorCount++})}saveForm(){this.successCount=0,this.errorCount=0,this.mythService.PutSetting({HostN
ame:"_GLOBAL_",Key:"WOLbackendReconnectWaitTime",Value:String(this.WOLbackendReconnectWaitTime)}).subscribe(this.bewObserver),this.mythService.PutSetting({HostName:"_GLOBAL_",Key:"WOLbackendConnectRetry",Value:String(this.WOLbackendConnectRetry)}).subscribe(this.bewObserver),this.mythService.PutSetting({HostName:"_GLOBAL_",Key:"WOLbackendCommand",Value:this.WOLbackendCommand}).subscribe(this.bewObserver),this.mythService.PutSetting({HostName:this.hostName,Key:"SleepCommand",Value:this.SleepCommand}).subscribe(this.bewObserver),this.mythService.PutSetting({HostName:this.hostName,Key:"WakeUpCommand",Value:this.WakeUpCommand}).subscribe(this.bewObserver)}}return
t.\u0275fac=function(e){return
new(e||t)(D(Me),D(qt))},t.\u0275cmp=z({type:t,selectors:[["app-backend-wakeup"]],viewQuery:function(e,n){if(1&e&&W(kQ,5),2&e){let
s;V(s=B())&&(n.currentForm=s.first)}},decls:7,vars:0,consts:[["name","backendwakeup",1,"ml-3","mr-3"],["backendwakeup","ngForm"],[1,"m-5"],["pTemplate","title"],["pTemp
late","subtitle"],["pTemplate","content"],["pTemplate","footer"],[1,"grid"],[1,"mb-4","w-full",3,"legend","toggleable","collapsed"],[1,"form-group","field"],["for","WOLbackendReconnectWaitTime",1,"label","block"],["name","WOLbackendReconnectWaitTime","id","WOLbackendReconnectWaitTime",3,"ngModel","showButtons","min","max","step","ngModelChange"],[1,"block"],["for","WOLbackendConnectRetry",1,"label","block"],["name","WOLbackendConnectRetry","id","WOLbackendConnectRetry",3,"ngModel","showButtons","min","max","step","ngModelChange"],["for","WOLbackendCommand",1,"label","block"],["pInputText","","id","WOLbackendCommand","name","WOLbackendCommand",1,"mb-2","form-control","w-full",3,"ngModel","ngModelChange"],["for","SleepCommand",1,"label","block"],["pInputText","","id","SleepCommand","name","SleepCommand",1,"mb-2","form-control","w-full",3,"ngModel","ngModelChange"],["for","WakeUpCommand",1,"label","block"],["pInputText","","id","WakeUpCommand","name","WakeUpCommand",1,"mb-2","form-cont
rol","w-full",3,"ngModel","ngModelChange"],[1,"grid","nogutter"],[1,"col-12"],["severity","success",3,"text",4,"ngIf"],["severity","error",3,"text",4,"ngIf"],["icon","pi
pi-save","iconPos","left",1,"col","pr-1",3,"label","disabled","onClick"],["severity","success",3,"text"],["severity","error",3,"text"]],template:function(e,n){1&e&&(l(0,"form",0,1)(2,"p-card",2),_(3,IQ,2,3,"ng-template",3),_(4,EQ,2,3,"ng-template",4),_(5,RQ,45,53,"ng-template",5),_(6,AQ,6,6,"ng-template",6),c()())},directives:[ze,Ue,He,Ne,ne,Ui,pt,Te,_e,Ye,Q,qe,ve],pipes:[ce],styles:[""]}),t})();const
FQ=["backendcontrol"];function
NQ(t,i){1&t&&(g(0),m(1,"translate")),2&t&&T("
",f(1,1,"settings.backendctrl.title")," ")}function
VQ(t,i){1&t&&(g(0),m(1,"translate")),2&t&&T("
",f(1,1,"settings.backendctrl.subtitle")," ")}function
BQ(t,i){if(1&t){const
e=I();l(0,"div",7)(1,"div",8)(2,"div",9)(3,"label",10),g(4),m(5,"translate"),c(),l(6,"input",11,12),C("ngModelChange",function(s){return
v(e),d().BackendStopCommand=s}),c
(),l(8,"small",13),g(9),m(10,"translate"),c()(),l(11,"div",9)(12,"label",14),g(13),m(14,"translate"),c(),l(15,"input",15,12),C("ngModelChange",function(s){return
v(e),d().BackendStartCommand=s}),c(),l(17,"small",13),g(18),m(19,"translate"),c()()()()}if(2&t){const
e=d();a(4),S(f(5,6,"settings.backendctrl.stop_label")),a(2),p("ngModel",e.BackendStopCommand),a(3),T("
",f(10,8,"settings.backendctrl.stop_desc"),"
"),a(4),S(f(14,10,"settings.backendctrl.start_label")),a(2),p("ngModel",e.BackendStartCommand),a(3),T("
",f(19,12,"settings.backendctrl.start_desc")," ")}}function
HQ(t,i){1&t&&(k(0,"p-message",21),m(1,"translate")),2&t&&x("text",f(1,1,"common.savesuccess"))}function
qQ(t,i){1&t&&(k(0,"p-message",22),m(1,"translate")),2&t&&x("text",f(1,1,"common.networkfail"))}function
GQ(t,i){if(1&t){const
e=I();l(0,"div",16)(1,"div",17),_(2,HQ,2,3,"p-message",18),_(3,qQ,2,3,"p-message",19),c(),l(4,"p-button",20),C("onClick",function(){v(e);const
s=d(),r=F(1);return s.saveForm(),r.form.markAsPr
istine()}),m(5,"translate"),c()()}if(2&t){const
e=d(),n=F(1);a(2),p("ngIf",e.successCount>0&&0==e.errorCount&&!n.dirty),a(1),p("ngIf",e.errorCount>0),a(1),x("label",f(5,4,"common.save")),p("disabled",!n.dirty||e.setupService.schedulingEnabled)}}let
UQ=(()=>{class
t{constructor(e,n){this.setupService=e,this.mythService=n,this.successCount=0,this.errorCount=0,this.BackendStopCommand="killall
mythbackend",this.BackendStartCommand="mythbackend",this.becObserver={next:s=>{s.bool?this.successCount++:(this.errorCount++,this.currentForm&&this.currentForm.form.markAsDirty())},error:s=>{console.error(s),this.errorCount++,this.currentForm&&this.currentForm.form.markAsDirty()}}}ngOnInit(){}ngAfterViewInit(){this.setupService.setCurrentForm(this.currentForm)}getBackendControl(){this.mythService.GetSetting({HostName:"_GLOBAL_",Key:"BackendStopCommand",Default:"killall
mythbackend"}).subscribe({next:e=>this.BackendStopCommand=e.String,error:()=>this.errorCount++}),this.mythService.GetSetting({Host
Name:"_GLOBAL_",Key:"BackendStartCommand",Default:"mythbackend"}).subscribe({next:e=>this.BackendStartCommand=e.String,error:()=>this.errorCount++})}saveForm(){this.successCount=0,this.errorCount=0,this.mythService.PutSetting({HostName:"_GLOBAL_",Key:"BackendStopCommand",Value:this.BackendStopCommand}).subscribe(this.becObserver),this.mythService.PutSetting({HostName:"_GLOBAL_",Key:"BackendStartCommand",Value:this.BackendStartCommand}).subscribe(this.becObserver)}}return
t.\u0275fac=function(e){return
new(e||t)(D(Me),D(qt))},t.\u0275cmp=z({type:t,selectors:[["app-backend-control"]],viewQuery:function(e,n){if(1&e&&W(FQ,5),2&e){let
s;V(s=B())&&(n.currentForm=s.first)}},decls:7,vars:0,consts:[["name","backendcontrol",1,"ml-3","mr-3"],["backendcontrol","ngForm"],[1,"m-5"],["pTemplate","title"],["pTemplate","subtitle"],["pTemplate","content"],["pTemplate","footer"],[1,"grid"],[1,"mb-4","w-full"],[1,"form-group","field"],["for","BackendStopCommand",1,"label","block"],["pInputText","","id"
,"BackendStopCommand","name","BackendStopCommand",1,"mb-2","form-control","w-full",3,"ngModel","ngModelChange"],["MiscStatusScript","ngModel"],[1,"block"],["for","BackendStartCommand",1,"label","block"],["pInputText","","id","BackendStartCommand","name","BackendStartCommand",1,"mb-2","form-control","w-full",3,"ngModel","ngModelChange"],[1,"grid","nogutter"],[1,"col-12"],["severity","success",3,"text",4,"ngIf"],["severity","error",3,"text",4,"ngIf"],["icon","pi
pi-save","iconPos","left",1,"col","pr-1",3,"label","disabled","onClick"],["severity","success",3,"text"],["severity","error",3,"text"]],template:function(e,n){1&e&&(l(0,"form",0,1)(2,"p-card",2),_(3,NQ,2,3,"ng-template",3),_(4,VQ,2,3,"ng-template",4),_(5,BQ,20,14,"ng-template",5),_(6,GQ,6,6,"ng-template",6),c()())},directives:[ze,Ue,He,Ne,ne,Ye,Te,_e,Q,qe,ve],pipes:[ce],styles:[""]}),t})();const
zQ=["jobqbackend"],jQ=["JobQueueWindowStartHT"],$Q=["JobQueueWindowEndHT"];function
WQ(t,i){1&t&&(g(0),m(1,"translate")),2&t&&T("
",f
(1,1,"settings.jobqbackend.title")," ")}function
KQ(t,i){1&t&&(g(0),m(1,"translate")),2&t&&T("
",f(1,1,"settings.jobqbackend.subtitle")," ")}function
QQ(t,i){if(1&t){const
e=I();l(0,"div",7)(1,"div",8)(2,"div",9)(3,"label",10),g(4),m(5,"translate"),c(),l(6,"p-inputNumber",11),C("ngModelChange",function(s){return
v(e),d().JobQueueMaxSimultaneousJobs=s}),c(),l(7,"small",12),g(8),m(9,"translate"),c()(),l(10,"div",9)(11,"label",13),g(12),m(13,"translate"),c(),l(14,"p-inputNumber",14),C("ngModelChange",function(s){return
v(e),d().JobQueueCheckFrequency=s}),c(),l(15,"small",12),g(16),m(17,"translate"),c()(),l(18,"div",9)(19,"label",15),g(20),m(21,"translate"),c(),l(22,"p-calendar",16,17),C("ngModelChange",function(s){return
v(e),d().JobQueueWindowStart=s}),c(),l(24,"small",12),g(25),m(26,"translate"),c()(),l(27,"div",9)(28,"label",18),g(29),m(30,"translate"),c(),l(31,"p-calendar",19,20),C("ngModelChange",function(s){return
v(e),d().JobQueueWindowEnd=s}),c(),l(33,"small",12),g(34),m(35,"tr
anslate"),c()(),l(36,"div",9)(37,"label",21),g(38),m(39,"translate"),c(),l(40,"p-dropdown",22),C("ngModelChange",function(s){return
v(e),d().JobQueueCPU=s}),c(),l(41,"small",12),g(42),m(43,"translate"),c()(),l(44,"div",9)(45,"p-checkbox",23),C("ngModelChange",function(s){return
v(e),d().JobAllowMetadata=s}),m(46,"translate"),c(),l(47,"small",12),g(48),m(49,"translate"),c()(),l(50,"div",9)(51,"p-checkbox",24),C("ngModelChange",function(s){return
v(e),d().JobAllowCommFlag=s}),m(52,"translate"),c(),l(53,"small",12),g(54),m(55,"translate"),c()(),l(56,"div",9)(57,"p-checkbox",25),C("ngModelChange",function(s){return
v(e),d().JobAllowTranscode=s}),m(58,"translate"),c(),l(59,"small",12),g(60),m(61,"translate"),c()(),l(62,"div",9)(63,"p-checkbox",26),C("ngModelChange",function(s){return
v(e),d().JobAllowPreview=s}),m(64,"translate"),c(),l(65,"small",12),g(66),m(67,"translate"),c()(),l(68,"div",9)(69,"p-checkbox",27),C("ngModelChange",function(s){return
v(e),d().JobAllowUserJob1=s}),c(),l(70
,"small",12),g(71),m(72,"translate"),c()(),l(73,"div",9)(74,"p-checkbox",28),C("ngModelChange",function(s){return
v(e),d().JobAllowUserJob2=s}),c(),l(75,"small",12),g(76),m(77,"translate"),c()(),l(78,"div",9)(79,"p-checkbox",29),C("ngModelChange",function(s){return
v(e),d().JobAllowUserJob3=s}),c(),l(80,"small",12),g(81),m(82,"translate"),c()(),l(83,"div",9)(84,"p-checkbox",30),C("ngModelChange",function(s){return
v(e),d().JobAllowUserJob4=s}),c(),l(85,"small",12),g(86),m(87,"translate"),c()()()()}if(2&t){const
e=d();a(4),S(f(5,60,"settings.jobqbackend.maxjobs_label")),a(2),p("ngModel",e.JobQueueMaxSimultaneousJobs)("showButtons",!0)("min",1)("max",10)("step",1),a(2),T("
",f(9,62,"settings.jobqbackend.maxjobs_desc"),"
"),a(4),S(f(13,64,"settings.jobqbackend.freq_label")),a(2),p("ngModel",e.JobQueueCheckFrequency)("showButtons",!0)("min",5)("max",300)("step",5),a(2),T("
",f(17,66,"settings.jobqbackend.freq_desc"),"
"),a(4),S(f(21,68,"settings.jobqbackend.start_label")),a(2),p("ngMode
l",e.JobQueueWindowStart)("timeOnly",!0)("readonlyInput",!0),a(3),T("
",f(26,70,"settings.jobqbackend.start_desc"),"
"),a(4),S(f(30,72,"settings.jobqbackend.end_label")),a(2),p("ngModel",e.JobQueueWindowEnd)("timeOnly",!0)("readonlyInput",!0),a(3),T("
",f(35,74,"settings.jobqbackend.end_desc"),"
"),a(4),S(f(39,76,"settings.jobqbackend.cpu_label")),a(2),p("options",e.cpuOptions)("ngModel",e.JobQueueCPU),a(2),T("
",f(43,78,"settings.jobqbackend.cpu_desc"),"
"),a(3),x("label",f(46,80,"settings.jobqbackend.meta_label")),p("ngModel",e.JobAllowMetadata)("binary",!0),a(3),T("
",f(49,82,"settings.jobqbackend.allow_desc"),"
"),a(3),x("label",f(52,84,"settings.jobqbackend.comm_label")),p("ngModel",e.JobAllowCommFlag)("binary",!0),a(3),T("
",f(55,86,"settings.jobqbackend.allow_desc"),"
"),a(3),x("label",f(58,88,"settings.jobqbackend.trans_label")),p("ngModel",e.JobAllowTranscode)("binary",!0),a(3),T("
",f(61,90,"settings.jobqbackend.allow_desc"),"
"),a(3),x("label",f(64,92,"settings.jobqbacken
d.preview_label")),p("ngModel",e.JobAllowPreview)("binary",!0),a(3),T("
",f(67,94,"settings.jobqbackend.allow_desc"),"
"),a(3),x("label",e.JobQCmds.UserJobDesc[0]),p("ngModel",e.JobAllowUserJob1)("binary",!0),a(2),T("
",f(72,96,"settings.jobqbackend.allow_desc"),"
"),a(3),x("label",e.JobQCmds.UserJobDesc[1]),p("ngModel",e.JobAllowUserJob2)("binary",!0),a(2),T("
",f(77,98,"settings.jobqbackend.allow_desc"),"
"),a(3),x("label",e.JobQCmds.UserJobDesc[2]),p("ngModel",e.JobAllowUserJob3)("binary",!0),a(2),T("
",f(82,100,"settings.jobqbackend.allow_desc"),"
"),a(3),x("label",e.JobQCmds.UserJobDesc[3]),p("ngModel",e.JobAllowUserJob4)("binary",!0),a(2),T("
",f(87,102,"settings.jobqbackend.allow_desc")," ")}}function
JQ(t,i){1&t&&(k(0,"p-message",36),m(1,"translate")),2&t&&x("text",f(1,1,"common.savesuccess"))}function
YQ(t,i){1&t&&(k(0,"p-message",37),m(1,"translate")),2&t&&x("text",f(1,1,"common.networkfail"))}function
ZQ(t,i){if(1&t){const
e=I();l(0,"div",31)(1,"div",32),_(2,JQ,2,3,"p-mes
sage",33),_(3,YQ,2,3,"p-message",34),c(),l(4,"p-button",35),C("onClick",function(){v(e);const
s=d(),r=F(1);return
s.saveForm(),r.form.markAsPristine()}),m(5,"translate"),c()()}if(2&t){const
e=d(),n=F(1);a(2),p("ngIf",e.successCount>0&&0==e.errorCount&&!n.dirty),a(1),p("ngIf",e.errorCount>0),a(1),x("label",f(5,4,"common.save")),p("disabled",!n.dirty||e.setupService.schedulingEnabled)}}let
XQ=(()=>{class
t{constructor(e,n,s){this.setupService=e,this.translate=n,this.mythService=s,this.successCount=0,this.errorCount=0,this.hostName="",this.JobQueueMaxSimultaneousJobs=1,this.JobQueueCheckFrequency=60,this.JobQueueWindowStart=new
Date(0),this.JobQueueWindowStartHT$=new Je,this.JobQueueWindowEnd=new
Date(0),this.JobQueueWindowEndHT$=new
Je,this.JobQueueCPU="0",this.JobAllowMetadata=!0,this.JobAllowCommFlag=!0,this.JobAllowTranscode=!0,this.JobAllowPreview=!0,this.JobAllowUserJob1=!1,this.JobAllowUserJob2=!1,this.JobAllowUserJob3=!1,this.JobAllowUserJob4=!1,this.cpuOptions=[{name:"settings
.jobqbackend.cpu_low",code:"0"},{name:"settings.jobqbackend.cpu_med",code:"1"},{name:"settings.jobqbackend.cpu_high",code:"2"}],this.jqbObserver={next:r=>{r.bool?this.successCount++:(this.errorCount++,this.currentForm&&this.currentForm.form.markAsDirty())},error:r=>{console.error(r),this.errorCount++,this.currentForm&&this.currentForm.form.markAsDirty()}},this.getJobQBackend(),this.JobQueueWindowStartHT$.subscribe({complete:()=>this.JobQueueWindowStartHT.updateInputfield()}),this.JobQueueWindowEndHT$.subscribe({complete:()=>this.JobQueueWindowEndHT.updateInputfield()}),this.JobQCmds=this.setupService.getJobQCommands(),n.get(this.cpuOptions[0].name).subscribe(r=>this.cpuOptions[0].name=r),n.get(this.cpuOptions[1].name).subscribe(r=>this.cpuOptions[1].name=r),n.get(this.cpuOptions[2].name).subscribe(r=>this.cpuOptions[2].name=r)}ngOnInit(){}ngAfterViewInit(){this.setupService.setCurrentForm(this.currentForm)}getJobQBackend(){this.successCount=0,this.errorCount=0,this.setupService.pars
eTime(this.JobQueueWindowStart,"00:00"),this.setupService.parseTime(this.JobQueueWindowEnd,"23:59"),this.mythService.GetHostName().subscribe({next:e=>{this.hostName=e.String,this.getSettings()},error:()=>this.errorCount++})}getSettings(){this.mythService.GetSetting({HostName:this.hostName,Key:"JobQueueMaxSimultaneousJobs",Default:"1"}).subscribe({next:e=>this.JobQueueMaxSimultaneousJobs=Number(e.String),error:()=>this.errorCount++}),this.mythService.GetSetting({HostName:this.hostName,Key:"JobQueueCheckFrequency",Default:"60"}).subscribe({next:e=>this.JobQueueCheckFrequency=Number(e.String),error:()=>this.errorCount++}),this.JobQueueWindowStartHT$=this.mythService.GetSetting({HostName:this.hostName,Key:"JobQueueWindowStart",Default:"00:00"}),this.JobQueueWindowStartHT$.subscribe({next:e=>{this.setupService.parseTime(this.JobQueueWindowStart,e.String),this.JobQueueWindowStartHT.updateInputfield()},error:()=>this.errorCount++}),this.JobQueueWindowEndHT$=this.mythService.GetSetting({Hos
tName:this.hostName,Key:"JobQueueWindowEnd",Default:"23:59"}),this.JobQueueWindowEndHT$.subscribe({next:e=>{this.setupService.parseTime(this.JobQueueWindowEnd,e.String),this.JobQueueWindowEndHT.updateInputfield()},error:()=>this.errorCount++}),this.mythService.GetSetting({HostName:this.hostName,Key:"JobQueueCPU",Default:"0"}).subscribe({next:e=>this.JobQueueCPU=e.String,error:()=>this.errorCount++}),this.mythService.GetSetting({HostName:this.hostName,Key:"JobAllowMetadata",Default:"1"}).subscribe({next:e=>this.JobAllowMetadata="1"==e.String,error:()=>this.errorCount++}),this.mythService.GetSetting({HostName:this.hostName,Key:"JobAllowCommFlag",Default:"1"}).subscribe({next:e=>this.JobAllowCommFlag="1"==e.String,error:()=>this.errorCount++}),this.mythService.GetSetting({HostName:this.hostName,Key:"JobAllowTranscode",Default:"1"}).subscribe({next:e=>this.JobAllowTranscode="1"==e.String,error:()=>this.errorCount++}),this.mythService.GetSetting({HostName:this.hostName,Key:"JobAllowPrevi
ew",Default:"1"}).subscribe({next:e=>this.JobAllowPreview="1"==e.String,error:()=>this.errorCount++}),this.mythService.GetSetting({HostName:this.hostName,Key:"JobAllowUserJob1",Default:"0"}).subscribe({next:e=>this.JobAllowUserJob1="1"==e.String,error:()=>this.errorCount++}),this.mythService.GetSetting({HostName:this.hostName,Key:"JobAllowUserJob2",Default:"0"}).subscribe({next:e=>this.JobAllowUserJob2="1"==e.String,error:()=>this.errorCount++}),this.mythService.GetSetting({HostName:this.hostName,Key:"JobAllowUserJob3",Default:"0"}).subscribe({next:e=>this.JobAllowUserJob3="1"==e.String,error:()=>this.errorCount++}),this.mythService.GetSetting({HostName:this.hostName,Key:"JobAllowUserJob4",Default:"0"}).subscribe({next:e=>this.JobAllowUserJob4="1"==e.String,error:()=>this.errorCount++})}saveForm(){this.successCount=0,this.errorCount=0,this.mythService.PutSetting({HostName:this.hostName,Key:"JobQueueMaxSimultaneousJobs",Value:String(this.JobQueueMaxSimultaneousJobs)}).subscribe(this.
jqbObserver),this.mythService.PutSetting({HostName:this.hostName,Key:"JobQueueCheckFrequency",Value:String(this.JobQueueCheckFrequency)}).subscribe(this.jqbObserver),this.mythService.PutSetting({HostName:this.hostName,Key:"JobQueueWindowStart",Value:this.setupService.formatTime(this.JobQueueWindowStart)}).subscribe(this.jqbObserver),this.mythService.PutSetting({HostName:this.hostName,Key:"JobQueueWindowEnd",Value:this.setupService.formatTime(this.JobQueueWindowEnd)}).subscribe(this.jqbObserver),this.mythService.PutSetting({HostName:this.hostName,Key:"JobQueueCPU",Value:this.JobQueueCPU}).subscribe(this.jqbObserver),this.mythService.PutSetting({HostName:this.hostName,Key:"JobAllowMetadata",Value:this.JobAllowMetadata?"1":"0"}).subscribe(this.jqbObserver),this.mythService.PutSetting({HostName:this.hostName,Key:"JobAllowCommFlag",Value:this.JobAllowCommFlag?"1":"0"}).subscribe(this.jqbObserver),this.mythService.PutSetting({HostName:this.hostName,Key:"JobAllowTranscode",Value:this.JobAl
lowTranscode?"1":"0"}).subscribe(this.jqbObserver),this.mythService.PutSetting({HostName:this.hostName,Key:"JobAllowPreview",Value:this.JobAllowPreview?"1":"0"}).subscribe(this.jqbObserver),this.mythService.PutSetting({HostName:this.hostName,Key:"JobAllowUserJob1",Value:this.JobAllowUserJob1?"1":"0"}).subscribe(this.jqbObserver),this.mythService.PutSetting({HostName:this.hostName,Key:"JobAllowUserJob2",Value:this.JobAllowUserJob2?"1":"0"}).subscribe(this.jqbObserver),this.mythService.PutSetting({HostName:this.hostName,Key:"JobAllowUserJob3",Value:this.JobAllowUserJob3?"1":"0"}).subscribe(this.jqbObserver),this.mythService.PutSetting({HostName:this.hostName,Key:"JobAllowUserJob4",Value:this.JobAllowUserJob4?"1":"0"}).subscribe(this.jqbObserver)}}return
t.\u0275fac=function(e){return
new(e||t)(D(Me),D(Oe),D(qt))},t.\u0275cmp=z({type:t,selectors:[["app-jobqueue-backend"]],viewQuery:function(e,n){if(1&e&&(W(zQ,5),W(jQ,5),W($Q,5)),2&e){let
s;V(s=B())&&(n.currentForm=s.first),V(s=B())&&(n
.JobQueueWindowStartHT=s.first),V(s=B())&&(n.JobQueueWindowEndHT=s.first)}},decls:7,vars:0,consts:[["name","jobqbackend",1,"ml-3","mr-3"],["jobqbackend","ngForm"],[1,"m-5"],["pTemplate","title"],["pTemplate","subtitle"],["pTemplate","content"],["pTemplate","footer"],[1,"grid"],[1,"mb-4","w-full"],[1,"form-group","field"],["for","JobQueueMaxSimultaneousJobs",1,"label","block"],["name","JobQueueMaxSimultaneousJobs","id","JobQueueMaxSimultaneousJobs",3,"ngModel","showButtons","min","max","step","ngModelChange"],[1,"block"],["for","JobQueueCheckFrequency",1,"label","block"],["name","JobQueueCheckFrequency","id","JobQueueCheckFrequency",3,"ngModel","showButtons","min","max","step","ngModelChange"],["for","JobQueueWindowStart",1,"label","block"],["name","JobQueueWindowStart","id","JobQueueWindowStart","ngControl","JobQueueWindowStart",3,"ngModel","timeOnly","readonlyInput","ngModelChange"],["JobQueueWindowStartHT",""],["for","JobQueueWindowEnd",1,"label","block"],["name","JobQueueWindowEn
d","id","JobQueueWindowEnd","ngControl","JobQueueWindowEnd",3,"ngModel","timeOnly","readonlyInput","ngModelChange"],["JobQueueWindowEndHT",""],["for","JobQueueCPU",1,"label","block"],["optionLabel","name","optionValue","code","name","JobQueueCPU",1,"block","w-15rem","mb-2",3,"options","ngModel","ngModelChange"],["inputId","JobAllowMetadata","name","JobAllowMetadata",1,"label","mb-2","w-full",3,"ngModel","binary","label","ngModelChange"],["inputId","JobAllowCommFlag","name","JobAllowCommFlag",1,"label","mb-2","w-full",3,"ngModel","binary","label","ngModelChange"],["inputId","JobAllowTranscode","name","JobAllowTranscode",1,"label","mb-2","w-full",3,"ngModel","binary","label","ngModelChange"],["inputId","JobAllowPreview","name","JobAllowPreview",1,"label","mb-2","w-full",3,"ngModel","binary","label","ngModelChange"],["inputId","JobAllowUserJob1","name","JobAllowUserJob1",1,"label","mb-2","w-full",3,"ngModel","binary","label","ngModelChange"],["inputId","JobAllowUserJob2","name","JobAll
owUserJob2",1,"label","mb-2","w-full",3,"ngModel","binary","label","ngModelChange"],["inputId","JobAllowUserJob3","name","JobAllowUserJob3",1,"label","mb-2","w-full",3,"ngModel","binary","label","ngModelChange"],["inputId","JobAllowUserJob4","name","JobAllowUserJob4",1,"label","mb-2","w-full",3,"ngModel","binary","label","ngModelChange"],[1,"grid","nogutter"],[1,"col-12"],["severity","success",3,"text",4,"ngIf"],["severity","error",3,"text",4,"ngIf"],["icon","pi
pi-save","iconPos","left",1,"col","pr-1",3,"label","disabled","onClick"],["severity","success",3,"text"],["severity","error",3,"text"]],template:function(e,n){1&e&&(l(0,"form",0,1)(2,"p-card",2),_(3,WQ,2,3,"ng-template",3),_(4,KQ,2,3,"ng-template",4),_(5,QQ,88,104,"ng-template",5),_(6,ZQ,6,6,"ng-template",6),c()())},directives:[ze,Ue,He,Ne,ne,pt,Te,_e,xr,Ot,sn,Q,qe,ve],pipes:[ce],styles:[""]}),t})();const
eJ=["jobqglobal"];function
tJ(t,i){1&t&&(g(0),m(1,"translate")),2&t&&T("
",f(1,1,"settings.jobqglobal.title")," ")}functi
on nJ(t,i){}function iJ(t,i){if(1&t){const
e=I();l(0,"div",7)(1,"div",8)(2,"div",9)(3,"p-checkbox",10),C("ngModelChange",function(s){return
v(e),d().JobsRunOnRecordHost=s}),m(4,"translate"),c(),l(5,"small",11),g(6),m(7,"translate"),c()(),l(8,"div",9)(9,"p-checkbox",12),C("ngModelChange",function(s){return
v(e),d().AutoCommflagWhileRecording=s}),m(10,"translate"),c(),l(11,"small",11),g(12),m(13,"translate"),c()(),l(14,"div",9)(15,"label",13),g(16),m(17,"translate"),c(),l(18,"input",14),C("ngModelChange",function(s){return
v(e),d().JobQueueCommFlagCommand=s}),c(),l(19,"small",11),g(20),m(21,"translate"),c()(),l(22,"div",9)(23,"label",15),g(24),m(25,"translate"),c(),l(26,"input",16),C("ngModelChange",function(s){return
v(e),d().JobQueueTranscodeCommand=s}),c(),l(27,"small",11),g(28),m(29,"translate"),c()(),l(30,"div",9)(31,"p-checkbox",17),C("ngModelChange",function(s){return
v(e),d().AutoTranscodeBeforeAutoCommflag=s}),m(32,"translate"),c(),l(33,"small",11),g(34),m(35,"translate"),c()
(),l(36,"div",9)(37,"p-checkbox",18),C("ngModelChange",function(s){return
v(e),d().SaveTranscoding=s}),m(38,"translate"),c(),l(39,"small",11),g(40),m(41,"translate"),c()()()()}if(2&t){const
e=d();a(3),x("label",f(4,22,"settings.jobqglobal.runonrechost_label")),p("ngModel",e.JobsRunOnRecordHost)("binary",!0),a(3),T("
",f(7,24,"settings.jobqglobal.runonrechost_desc"),"
"),a(3),x("label",f(10,26,"settings.jobqglobal.startcomm_label")),p("ngModel",e.AutoCommflagWhileRecording)("binary",!0),a(3),T("
",f(13,28,"settings.jobqglobal.startcomm_desc"),"
"),a(4),S(f(17,30,"settings.jobqglobal.commcmd_label")),a(2),p("ngModel",e.JobQueueCommFlagCommand),a(2),T("
",f(21,32,"settings.jobqglobal.commcmd_desc"),"
"),a(4),S(f(25,34,"settings.jobqglobal.transcmd_label")),a(2),p("ngModel",e.JobQueueTranscodeCommand),a(2),T("
",f(29,36,"settings.jobqglobal.transcmd_desc"),"
"),a(3),x("label",f(32,38,"settings.jobqglobal.transfirst_label")),p("ngModel",e.AutoTranscodeBeforeAutoCommflag)("binary",!0),a(3
),T(" ",f(35,40,"settings.jobqglobal.transfirst_desc"),"
"),a(3),x("label",f(38,42,"settings.jobqglobal.transsave_label")),p("ngModel",e.SaveTranscoding)("binary",!0),a(3),T("
",f(41,44,"settings.jobqglobal.transsave_desc")," ")}}function
sJ(t,i){1&t&&(k(0,"p-message",24),m(1,"translate")),2&t&&x("text",f(1,1,"common.savesuccess"))}function
rJ(t,i){1&t&&(k(0,"p-message",25),m(1,"translate")),2&t&&x("text",f(1,1,"common.networkfail"))}function
oJ(t,i){if(1&t){const
e=I();l(0,"div",19)(1,"div",20),_(2,sJ,2,3,"p-message",21),_(3,rJ,2,3,"p-message",22),c(),l(4,"p-button",23),C("onClick",function(){v(e);const
s=d(),r=F(1);return
s.saveForm(),r.form.markAsPristine()}),m(5,"translate"),c()()}if(2&t){const
e=d(),n=F(1);a(2),p("ngIf",e.successCount>0&&0==e.errorCount&&!n.dirty),a(1),p("ngIf",e.errorCount>0),a(1),x("label",f(5,4,"common.save")),p("disabled",!n.dirty||e.setupService.schedulingEnabled)}}let
aJ=(()=>{class
t{constructor(e,n){this.setupService=e,this.mythService=n,this.successCou
nt=0,this.errorCount=0,this.JobsRunOnRecordHost=!1,this.AutoCommflagWhileRecording=!1,this.JobQueueCommFlagCommand="mythcommflag",this.JobQueueTranscodeCommand="mythtranscode",this.AutoTranscodeBeforeAutoCommflag=!1,this.SaveTranscoding=!1,this.JobQGlobalObs={next:s=>{s.bool?this.successCount++:(this.errorCount++,this.currentForm&&this.currentForm.form.markAsDirty())},error:s=>{console.error(s),this.errorCount++,this.currentForm&&this.currentForm.form.markAsDirty()}},this.getJobQGlobal()}ngOnInit(){}ngAfterViewInit(){this.setupService.setCurrentForm(this.currentForm)}getJobQGlobal(){this.mythService.GetSetting({HostName:"_GLOBAL_",Key:"JobsRunOnRecordHost",Default:"0"}).subscribe({next:e=>this.JobsRunOnRecordHost="1"==e.String,error:()=>this.errorCount++}),this.mythService.GetSetting({HostName:"_GLOBAL_",Key:"AutoCommflagWhileRecording",Default:"0"}).subscribe({next:e=>this.AutoCommflagWhileRecording="1"==e.String,error:()=>this.errorCount++}),this.mythService.GetSetting({HostName:"
_GLOBAL_",Key:"JobQueueCommFlagCommand",Default:"mythcommflag"}).subscribe({next:e=>this.JobQueueCommFlagCommand=e.String,error:()=>this.errorCount++}),this.mythService.GetSetting({HostName:"_GLOBAL_",Key:"JobQueueTranscodeCommand",Default:"mythtranscode"}).subscribe({next:e=>this.JobQueueTranscodeCommand=e.String,error:()=>this.errorCount++}),this.mythService.GetSetting({HostName:"_GLOBAL_",Key:"AutoTranscodeBeforeAutoCommflag",Default:"0"}).subscribe({next:e=>this.AutoTranscodeBeforeAutoCommflag="1"==e.String,error:()=>this.errorCount++}),this.mythService.GetSetting({HostName:"_GLOBAL_",Key:"SaveTranscoding",Default:"0"}).subscribe({next:e=>this.SaveTranscoding="1"==e.String,error:()=>this.errorCount++})}saveForm(){this.successCount=0,this.errorCount=0,this.successCount=0,this.errorCount=0,this.mythService.PutSetting({HostName:"_GLOBAL_",Key:"JobsRunOnRecordHost",Value:this.JobsRunOnRecordHost?"1":"0"}).subscribe(this.JobQGlobalObs),this.mythService.PutSetting({HostName:"_GLOBAL_"
,Key:"AutoCommflagWhileRecording",Value:this.AutoCommflagWhileRecording?"1":"0"}).subscribe(this.JobQGlobalObs),this.mythService.PutSetting({HostName:"_GLOBAL_",Key:"JobQueueCommFlagCommand",Value:this.JobQueueCommFlagCommand}).subscribe(this.JobQGlobalObs),this.mythService.PutSetting({HostName:"_GLOBAL_",Key:"JobQueueTranscodeCommand",Value:this.JobQueueTranscodeCommand}).subscribe(this.JobQGlobalObs),this.mythService.PutSetting({HostName:"_GLOBAL_",Key:"AutoTranscodeBeforeAutoCommflag",Value:this.AutoTranscodeBeforeAutoCommflag?"1":"0"}).subscribe(this.JobQGlobalObs),this.mythService.PutSetting({HostName:"_GLOBAL_",Key:"SaveTranscoding",Value:this.SaveTranscoding?"1":"0"}).subscribe(this.JobQGlobalObs)}}return
t.\u0275fac=function(e){return
new(e||t)(D(Me),D(qt))},t.\u0275cmp=z({type:t,selectors:[["app-jobqueue-global"]],viewQuery:function(e,n){if(1&e&&W(eJ,5),2&e){let
s;V(s=B())&&(n.currentForm=s.first)}},decls:7,vars:0,consts:[["name","jobqglobal",1,"ml-3","mr-3"],["jobqglobal",
"ngForm"],[1,"m-5"],["pTemplate","title"],["pTemplate","subtitle"],["pTemplate","content"],["pTemplate","footer"],[1,"grid"],[1,"mb-4","w-full"],[1,"form-group","field"],["inputId","JobsRunOnRecordHost","name","JobsRunOnRecordHost",1,"label","mb-2","w-full",3,"ngModel","binary","label","ngModelChange"],[1,"block"],["inputId","AutoCommflagWhileRecording","name","AutoCommflagWhileRecording",1,"label","mb-2","w-full",3,"ngModel","binary","label","ngModelChange"],["for","JobQueueCommFlagCommand",1,"label","block"],["pInputText","","id","JobQueueCommFlagCommand","name","JobQueueCommFlagCommand",1,"mb-2","form-control","w-full",3,"ngModel","ngModelChange"],["for","JobQueueTranscodeCommand",1,"label","block"],["pInputText","","id","JobQueueTranscodeCommand","name","JobQueueTranscodeCommand",1,"mb-2","form-control","w-full",3,"ngModel","ngModelChange"],["inputId","AutoTranscodeBeforeAutoCommflag","name","AutoTranscodeBeforeAutoCommflag",1,"label","mb-2","w-full",3,"ngModel","binary","label"
,"ngModelChange"],["inputId","SaveTranscoding","name","SaveTranscoding",1,"label","mb-2","w-full",3,"ngModel","binary","label","ngModelChange"],[1,"grid","nogutter"],[1,"col-12"],["severity","success",3,"text",4,"ngIf"],["severity","error",3,"text",4,"ngIf"],["icon","pi
pi-save","iconPos","left",1,"col","pr-1",3,"label","disabled","onClick"],["severity","success",3,"text"],["severity","error",3,"text"]],template:function(e,n){1&e&&(l(0,"form",0,1)(2,"p-card",2),_(3,tJ,2,3,"ng-template",3),_(4,nJ,0,0,"ng-template",4),_(5,iJ,42,46,"ng-template",5),_(6,oJ,6,6,"ng-template",6),c()())},directives:[ze,Ue,He,Ne,ne,sn,Te,_e,Ye,Q,qe,ve],pipes:[ce],styles:[""]}),t})();const
lJ=["jobqcommands"];function
cJ(t,i){1&t&&(g(0),m(1,"translate")),2&t&&T("
",f(1,1,"settings.jobqcommands.title")," ")}function
uJ(t,i){1&t&&(g(0),m(1,"translate")),2&t&&T("
",f(1,1,"settings.jobqcommands.subtitle")," ")}const
dS=function(t){return{num:t}};function dJ(t,i){if(1&t){const
e=I();l(0,"div")(1,"div",10)(2,"labe
l",11),k(3,"div",12),c(),l(4,"input",13,14),C("ngModelChange",function(s){const
o=v(e).$implicit;return
d(2).JobQCommandsData.UserJobDesc[o]=s}),c(),l(6,"small",15),g(7),m(8,"translate"),c()(),l(9,"div",10)(10,"label",11),k(11,"div",12),c(),l(12,"input",13,16),C("ngModelChange",function(s){const
o=v(e).$implicit;return
d(2).JobQCommandsData.UserJob[o]=s}),c(),l(14,"small",15),g(15),m(16,"translate"),c()()()}if(2&t){const
e=i.$implicit,n=d(2);a(2),Bn("for","UserJobDesc",e,""),a(1),p("translate","settings.jobqcommands.job_label")("translateParams",U(18,dS,e+1)),a(1),Bn("id","UserJobDesc",e,"")("name","UserJobDesc",e,""),p("ngModel",n.JobQCommandsData.UserJobDesc[e]),a(3),T("
",f(8,14,"settings.jobqcommands.job_desc"),"
"),a(3),Bn("for","UserJob",e,""),a(1),p("translate","settings.jobqcommands.command_label")("translateParams",U(20,dS,e+1)),a(1),Bn("id","UserJob",e,"")("name","UserJob",e,""),p("ngModel",n.JobQCommandsData.UserJob[e]),a(3),T("
",f(16,16,"settings.jobqcommands.command_de
sc")," ")}}function
pJ(t,i){if(1&t&&(l(0,"div",7)(1,"div",8),_(2,dJ,17,22,"div",9),c()()),2&t){const
e=d();a(2),p("ngForOf",e.items)}}function
hJ(t,i){1&t&&(k(0,"p-message",22),m(1,"translate")),2&t&&x("text",f(1,1,"common.savesuccess"))}function
mJ(t,i){1&t&&(k(0,"p-message",23),m(1,"translate")),2&t&&x("text",f(1,1,"common.networkfail"))}function
fJ(t,i){if(1&t){const
e=I();l(0,"div",17)(1,"div",18),_(2,hJ,2,3,"p-message",19),_(3,mJ,2,3,"p-message",20),c(),l(4,"p-button",21),C("onClick",function(){v(e);const
s=d(),r=F(1);return
s.saveForm(),r.form.markAsPristine()}),m(5,"translate"),c()()}if(2&t){const
e=d(),n=F(1);a(2),p("ngIf",e.JobQCommandsData.successCount>0&&0==e.JobQCommandsData.errorCount&&!n.dirty),a(1),p("ngIf",e.JobQCommandsData.errorCount>0),a(1),x("label",f(5,4,"common.save")),p("disabled",!n.dirty||e.setupService.schedulingEnabled)}}let
gJ=(()=>{class
t{constructor(e){this.setupService=e,this.items=[0,1,2,3],this.JobQCommandsData=this.setupService.getJobQCommands()}ng
OnInit(){}ngAfterViewInit(){this.setupService.setCurrentForm(this.currentForm)}saveForm(){this.setupService.saveJobQCommands(this.currentForm)}}return
t.\u0275fac=function(e){return
new(e||t)(D(Me))},t.\u0275cmp=z({type:t,selectors:[["app-jobqueue-commands"]],viewQuery:function(e,n){if(1&e&&W(lJ,5),2&e){let
s;V(s=B())&&(n.currentForm=s.first)}},decls:7,vars:0,consts:[["name","jobqcommands",1,"ml-3","mr-3"],["jobqcommands","ngForm"],[1,"m-5"],["pTemplate","title"],["pTemplate","subtitle"],["pTemplate","content"],["pTemplate","footer"],[1,"grid"],[1,"mb-4","w-full"],[4,"ngFor","ngForOf"],[1,"form-group","field"],[1,"label","block",3,"for"],[3,"translate","translateParams"],["pInputText","",1,"mb-2","form-control","w-full",3,"id","ngModel","name","ngModelChange"],["UserJobDesc{{item}}","ngModel"],[1,"block"],["UserJob{{item}}","ngModel"],[1,"grid","nogutter"],[1,"col-12"],["severity","success",3,"text",4,"ngIf"],["severity","error",3,"text",4,"ngIf"],["icon","pi
pi-save","iconPos","lef
t",1,"col","pr-1",3,"label","disabled","onClick"],["severity","success",3,"text"],["severity","error",3,"text"]],template:function(e,n){1&e&&(l(0,"form",0,1)(2,"p-card",2),_(3,cJ,2,3,"ng-template",3),_(4,uJ,2,3,"ng-template",4),_(5,pJ,3,1,"ng-template",5),_(6,fJ,6,6,"ng-template",6),c()())},directives:[ze,Ue,He,Ne,ne,at,mu,Ye,Te,_e,Q,qe,ve],pipes:[ce],styles:[""]}),t})();const
_J=["epgdownload"];function
bJ(t,i){1&t&&(g(0),m(1,"translate")),2&t&&T("
",f(1,1,"settings.epgdownload.title")," ")}function
vJ(t,i){}function CJ(t,i){if(1&t){const
e=I();l(0,"div",7)(1,"div",8)(2,"div",9)(3,"p-checkbox",10),C("ngModelChange",function(s){return
v(e),d().MythFillEnabled=s}),m(4,"translate"),c(),l(5,"small",11),g(6),m(7,"translate"),c()()()()}if(2&t){const
e=d();a(3),x("label",f(4,4,"settings.epgdownload.enabled_label")),p("ngModel",e.MythFillEnabled)("binary",!0),a(3),T("
",f(7,6,"settings.epgdownload.enabled_desc")," ")}}function
yJ(t,i){1&t&&(k(0,"p-message",17),m(1,"translate")),2&t&&x("tex
t",f(1,1,"common.savesuccess"))}function
wJ(t,i){1&t&&(k(0,"p-message",18),m(1,"translate")),2&t&&x("text",f(1,1,"common.networkfail"))}function
TJ(t,i){if(1&t){const
e=I();l(0,"div",12)(1,"div",13),_(2,yJ,2,3,"p-message",14),_(3,wJ,2,3,"p-message",15),c(),l(4,"p-button",16),C("onClick",function(){v(e);const
s=d(),r=F(1);return
s.saveForm(),r.form.markAsPristine()}),m(5,"translate"),c()()}if(2&t){const
e=d(),n=F(1);a(2),p("ngIf",e.successCount>0&&0==e.errorCount&&!n.dirty),a(1),p("ngIf",e.errorCount>0),a(1),x("label",f(5,4,"common.save")),p("disabled",!n.dirty||e.setupService.schedulingEnabled)}}let
SJ=(()=>{class
t{constructor(e,n){this.setupService=e,this.mythService=n,this.successCount=0,this.errorCount=0,this.MythFillEnabled=!0,this.EpgDownloadObs={next:s=>{s.bool?this.successCount++:(this.errorCount++,this.currentForm&&this.currentForm.form.markAsDirty())},error:s=>{console.error(s),this.errorCount++,this.currentForm&&this.currentForm.form.markAsDirty()}},this.getEpgDownload()}
ngOnInit(){}ngAfterViewInit(){this.setupService.setCurrentForm(this.currentForm)}getEpgDownload(){this.successCount=0,this.errorCount=0,this.mythService.GetSetting({HostName:"_GLOBAL_",Key:"MythFillEnabled",Default:"1"}).subscribe({next:e=>this.MythFillEnabled="1"==e.String,error:()=>this.errorCount++})}saveForm(){console.log("save
form
clicked"),this.successCount=0,this.errorCount=0,this.mythService.PutSetting({HostName:"_GLOBAL_",Key:"MythFillEnabled",Value:this.MythFillEnabled?"1":"0"}).subscribe(this.EpgDownloadObs)}}return
t.\u0275fac=function(e){return
new(e||t)(D(Me),D(qt))},t.\u0275cmp=z({type:t,selectors:[["app-epg-downloading"]],viewQuery:function(e,n){if(1&e&&W(_J,5),2&e){let
s;V(s=B())&&(n.currentForm=s.first)}},decls:7,vars:0,consts:[["name","epgdownload",1,"ml-3","mr-3"],["epgdownload","ngForm"],[1,"m-5"],["pTemplate","title"],["pTemplate","subtitle"],["pTemplate","content"],["pTemplate","footer"],[1,"grid"],[1,"mb-4","w-full"],[1,"form-group","field"],["inputId","Myth
FillEnabled","name","MythFillEnabled",1,"label","mb-2","w-full",3,"ngModel","binary","label","ngModelChange"],[1,"block"],[1,"grid","nogutter"],[1,"col-12"],["severity","success",3,"text",4,"ngIf"],["severity","error",3,"text",4,"ngIf"],["icon","pi
pi-save","iconPos","left",1,"col","pr-1",3,"label","disabled","onClick"],["severity","success",3,"text"],["severity","error",3,"text"]],template:function(e,n){1&e&&(l(0,"form",0,1)(2,"p-card",2),_(3,bJ,2,3,"ng-template",3),_(4,vJ,0,0,"ng-template",4),_(5,CJ,8,8,"ng-template",5),_(6,TJ,6,6,"ng-template",6),c()())},directives:[ze,Ue,He,Ne,ne,sn,Te,_e,Q,qe,ve],pipes:[ce],styles:[""]}),t})();function
xJ(t,i){if(1&t&&(l(0,"b"),g(1),c()),2&t){const
e=d();a(1),T("\xa0",e.dirtyMessages[0],"")}}function
DJ(t,i){1&t&&k(0,"app-host-address")}function
MJ(t,i){if(1&t&&(l(0,"b"),g(1),c()),2&t){const
e=d();a(1),T("\xa0",e.dirtyMessages[1],"")}}function
kJ(t,i){1&t&&k(0,"app-locale")}function
IJ(t,i){if(1&t&&(l(0,"b"),g(1),c()),2&t){const
e=d();a(1),T("\
xa0",e.dirtyMessages[2],"")}}function
EJ(t,i){1&t&&k(0,"app-misc-settings")}function
RJ(t,i){if(1&t&&(l(0,"b"),g(1),c()),2&t){const
e=d();a(1),T("\xa0",e.dirtyMessages[3],"")}}function
LJ(t,i){1&t&&k(0,"app-eit-scanner")}function
OJ(t,i){if(1&t&&(l(0,"b"),g(1),c()),2&t){const
e=d();a(1),T("\xa0",e.dirtyMessages[4],"")}}function
AJ(t,i){1&t&&k(0,"app-shutdown-wakeup")}function
PJ(t,i){if(1&t&&(l(0,"b"),g(1),c()),2&t){const
e=d();a(1),T("\xa0",e.dirtyMessages[5],"")}}function
FJ(t,i){1&t&&k(0,"app-backend-wakeup")}function
NJ(t,i){if(1&t&&(l(0,"b"),g(1),c()),2&t){const
e=d();a(1),T("\xa0",e.dirtyMessages[6],"")}}function
VJ(t,i){1&t&&k(0,"app-backend-control")}function
BJ(t,i){if(1&t&&(l(0,"b"),g(1),c()),2&t){const
e=d();a(1),T("\xa0",e.dirtyMessages[7],"")}}function
HJ(t,i){1&t&&k(0,"app-jobqueue-backend")}function
qJ(t,i){if(1&t&&(l(0,"b"),g(1),c()),2&t){const
e=d();a(1),T("\xa0",e.dirtyMessages[8],"")}}function
GJ(t,i){1&t&&k(0,"app-jobqueue-global")}function
UJ(t,i){if(1&t&&(l(0,"
b"),g(1),c()),2&t){const
e=d();a(1),T("\xa0",e.dirtyMessages[9],"")}}function
zJ(t,i){1&t&&k(0,"app-jobqueue-commands")}function
jJ(t,i){if(1&t&&(l(0,"b"),g(1),c()),2&t){const
e=d();a(1),T("\xa0",e.dirtyMessages[10],"")}}function
$J(t,i){1&t&&k(0,"app-epg-downloading")}let WJ=(()=>{class
t{constructor(e,n,s){this.setupService=e,this.translate=n,this.router=s,this.m_showHelp=!1,this.currentTab=-1,this.dirtyMessages=["","","","","","","","","","","","","","","",""],this.forms=[,,,,,,,,,,,,,,,,],this.dirtyText="settings.common.unsaved",this.warningText="settings.common.warning",this.setupService.setCurrentForm(null),n.get(this.dirtyText).subscribe(r=>this.dirtyText=r),n.get(this.warningText).subscribe(r=>this.warningText=r)}ngOnInit(){}onTabOpen(e){this.showDirty(),void
0===this.forms[e.index]&&(this.forms[e.index]=this.setupService.getCurrentForm()),this.currentTab=e.index,console.log("onTabOpen"),console.log(e),this.dirtyMessages[this.currentTab]=""}onTabClose(e){this.showDirty()}sho
wDirty(){-1!=this.currentTab&&(this.dirtyMessages[this.currentTab]=this.forms[this.currentTab].dirty?this.dirtyText:"")}showHelp(){this.m_showHelp=!0}confirm(e){return
oe(window.confirm(e))}canDeactivate(){return!(this.forms[this.currentTab]&&this.forms[this.currentTab].dirty||this.dirtyMessages.find(e=>e.length>0))||this.confirm(this.warningText)}onWindowClose(e){(this.forms[this.currentTab]&&this.forms[this.currentTab].dirty||this.dirtyMessages.find(n=>n.length>0))&&(e.preventDefault(),e.returnValue=!1)}}return
t.\u0275fac=function(e){return
new(e||t)(D(Me),D(Oe),D(It))},t.\u0275cmp=z({type:t,selectors:[["app-general-settings"]],hostBindings:function(e,n){1&e&&C("beforeunload",function(r){return
n.onWindowClose(r)},!1,ni)},decls:54,vars:42,consts:[[1,"col-12","w-full","p-0",3,"onClose","onOpen"],[3,"header"],["pTemplate","header"],["pTemplate","content"],[1,"flex","justify-content-end"],["icon","pi
pi-angle-left","iconPos","left",1,"p-3",3,"label","onClick"],["icon","pi
pi-angle-r
ight","iconPos","right",1,"p-3",3,"label","onClick"]],template:function(e,n){1&e&&(l(0,"p-card")(1,"h2"),g(2),m(3,"translate"),c(),l(4,"p-accordion",0),C("onClose",function(r){return
n.onTabClose(r)})("onOpen",function(r){return
n.onTabOpen(r)}),l(5,"p-accordionTab",1),m(6,"translate"),_(7,xJ,2,1,"ng-template",2),_(8,DJ,1,0,"ng-template",3),c(),l(9,"p-accordionTab",1),m(10,"translate"),_(11,MJ,2,1,"ng-template",2),_(12,kJ,1,0,"ng-template",3),c(),l(13,"p-accordionTab",1),m(14,"translate"),_(15,IJ,2,1,"ng-template",2),_(16,EJ,1,0,"ng-template",3),c(),l(17,"p-accordionTab",1),m(18,"translate"),_(19,RJ,2,1,"ng-template",2),_(20,LJ,1,0,"ng-template",3),c(),l(21,"p-accordionTab",1),m(22,"translate"),_(23,OJ,2,1,"ng-template",2),_(24,AJ,1,0,"ng-template",3),c(),l(25,"p-accordionTab",1),m(26,"translate"),_(27,PJ,2,1,"ng-template",2),_(28,FJ,1,0,"ng-template",3),c(),l(29,"p-accordionTab",1),m(30,"translate"),_(31,NJ,2,1,"ng-template",2),_(32,VJ,1,0,"ng-template",3),c(),l(33,"p-accordionTab"
,1),m(34,"translate"),_(35,BJ,2,1,"ng-template",2),_(36,HJ,1,0,"ng-template",3),c(),l(37,"p-accordionTab",1),m(38,"translate"),_(39,qJ,2,1,"ng-template",2),_(40,GJ,1,0,"ng-template",3),c(),l(41,"p-accordionTab",1),m(42,"translate"),_(43,UJ,2,1,"ng-template",2),_(44,zJ,1,0,"ng-template",3),c(),l(45,"p-accordionTab",1),m(46,"translate"),_(47,jJ,2,1,"ng-template",2),_(48,$J,1,0,"ng-template",3),c()(),l(49,"div",4)(50,"p-button",5),C("onClick",function(){return
n.router.navigate(["setupwizard/selectlanguage"])}),m(51,"translate"),c(),l(52,"p-button",6),C("onClick",function(){return
n.router.navigate(["setupwizard/capture-cards"])}),m(53,"translate"),c()()()),2&e&&(a(2),S(f(3,14,"settings.general.title")),a(3),x("header",f(6,16,"settings.hostaddress.title")),a(4),x("header",f(10,18,"settings.locale.title")),a(4),x("header",f(14,20,"settings.misc.title")),a(4),x("header",f(18,22,"settings.eit.title")),a(4),x("header",f(22,24,"settings.shutwake.title")),a(4),x("header",f(26,26,"settings.ba
ckendwake.title")),a(4),x("header",f(30,28,"settings.backendctrl.title")),a(4),x("header",f(34,30,"settings.jobqbackend.title")),a(4),x("header",f(38,32,"settings.jobqglobal.title")),a(4),x("header",f(42,34,"settings.jobqcommands.title")),a(4),x("header",f(46,36,"settings.epgdownload.title")),a(5),x("label",f(51,38,"common.back")),a(2),x("label",f(53,40,"common.next")))},directives:[Ne,Ss,Ts,ne,KK,iQ,dQ,vQ,MQ,PQ,UQ,XQ,aJ,gJ,SJ,ve],pipes:[ce],styles:["@media
screen and (max-width:
48rem){.p-card-body,.p-card-content,.p-accordion-content{padding:0rem!important}}\n"],encapsulation:2}),t})(),Gt=(()=>{class
t{constructor(e){this.httpClient=e,this.diseqcTypes=[{description:"Switch",type:"switch",inactive:!1},{description:"Rotor",type:"rotor",inactive:!1},{description:"Unicable",type:"scr",inactive:!1},{description:"LNB",type:"lnb",inactive:!1}]}GetCaptureCardList(e,n){let
s=(new ye).set("HostName",e).set("CardType",n);return
this.httpClient.get("/Capture/GetCaptureCardList",{params:s})}Ge
tCardTypeList(){return
this.httpClient.get("/Capture/GetCardTypeList",{})}UpdateCaptureCard(e,n,s){return
this.httpClient.post("/Capture/UpdateCaptureCard",{Cardid:e,Setting:n,Value:s})}DeleteCaptureCard(e){return
this.httpClient.post("/Capture/RemoveCardInput",{CardInputId:e})}AddCaptureCard(e){return
this.httpClient.post("/Capture/AddCaptureCard",e)}GetCaptureDeviceList(e){let
n=(new ye).set("CardType",e);return
this.httpClient.get("/Capture/GetCaptureDeviceList",{params:n})}GetDiseqcTreeList(){return
this.httpClient.get("/Capture/GetDiseqcTreeList",{})}AddDiseqcTree(e){return
this.httpClient.post("/Capture/AddDiseqcTree",e)}UpdateDiseqcTree(e){return
this.httpClient.post("/Capture/UpdateDiseqcTree",e)}DeleteDiseqcTree(e){return
this.httpClient.post("/Capture/RemoveDiseqcTree",{DiseqcId:e})}GetDiseqcConfigList(){return
this.httpClient.get("/Capture/GetDiseqcConfigList",{})}AddDiseqcConfig(e){return
this.httpClient.post("/Capture/AddDiseqcConfig",e)}DeleteDiseqcConfig(e){return
con
sole.log(e),this.httpClient.post("/Capture/RemoveDiseqcConfig",{CardId:e})}GetInputGroupList(){return
this.httpClient.get("/Capture/GetUserInputGroupList",{})}SetInputMaxRecordings(e,n){return
this.httpClient.post("/Capture/SetInputMaxRecordings",{InputId:e,Max:n})}AddUserInputGroup(e){return
this.httpClient.post("/Capture/AddUserInputGroup",{Name:e})}LinkInputGroup(e,n){return
this.httpClient.post("/Capture/LinkInputGroup",{InputId:e,InputGroupId:n})}UnlinkInputGroup(e,n){return
this.httpClient.post("/Capture/UnlinkInputGroup",{InputId:e,InputGroupId:n})}GetRecProfileGroupList(e,n,s){let
r=(new
ye).set("GroupId",e).set("ProfileId",n).set("OnlyInUse",s);return
this.httpClient.get("/Capture/GetRecProfileGroupList",{params:r})}AddRecProfile(e,n,s,r){return
this.httpClient.post("/Capture/AddRecProfile",{GroupId:e,ProfileName:n,VideoCodec:s,AudioCodec:r})}DeleteRecProfile(e){return
this.httpClient.post("/Capture/DeleteRecProfile",{ProfileId:e})}UpdateRecProfile(e,n,s){return
this.httpCl
ient.post("/Capture/UpdateRecProfile",{ProfileId:e,VideoCodec:n,AudioCodec:s})}UpdateRecProfileParam(e,n,s){return
this.httpClient.post("/Capture/UpdateRecProfileParam",{ProfileId:e,Name:n,Value:s})}GetCardSubType(e){let
n=(new ye).set("cardid",e);return
this.httpClient.get("/Capture/GetCardSubType",{params:n})}}return
t.\u0275fac=function(e){return
new(e||t)(K(Bi))},t.\u0275prov=X({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();function
KJ(t,i){if(1&t){const
e=I();l(0,"p-button",14),C("onClick",function(){return
v(e),d().displayModal=!1}),m(1,"translate"),c(),l(2,"p-button",15),C("onClick",function(){return
v(e),d().newCard()}),m(3,"translate"),c()}if(2&t){const
e=d();x("label",f(1,3,"common.cancel")),a(2),x("label",f(3,5,"common.ok")),p("disabled",""==e.selectedCardType.CardType)}}function
QJ(t,i){if(1&t){const
e=I();l(0,"p-button",16),C("click",function(){return
v(e),d().displayDeleteAllonHost=!1}),m(1,"translate"),c(),l(2,"p-button",17),C("click",function(){return
v(e),d(
).deleteAllOnHost()}),m(3,"translate"),c()}2&t&&(x("label",f(1,2,"common.no")),a(2),x("label",f(3,4,"common.yes")))}function
JJ(t,i){if(1&t){const
e=I();l(0,"p-button",16),C("click",function(){return
v(e),d().displayDeleteAll=!1}),m(1,"translate"),c(),l(2,"p-button",17),C("click",function(){return
v(e),d().deleteAllOnAllHosts()}),m(3,"translate"),c()}2&t&&(x("label",f(1,2,"common.no")),a(2),x("label",f(3,4,"common.yes")))}function
YJ(t,i){1&t&&(l(0,"div",18),k(1,"br")(2,"p-message",19),m(3,"translate"),k(4,"br"),c()),2&t&&(a(2),x("text",f(3,1,"settings.common.successful_delete")))}function
ZJ(t,i){1&t&&(l(0,"div",18),k(1,"br")(2,"p-message",20),m(3,"translate"),k(4,"br"),c()),2&t&&(a(2),x("text",f(3,1,"common.networkfail")))}function
XJ(t,i){if(1&t&&(l(0,"div",24)(1,"div",25),g(2),l(3,"b"),g(4),c()()()),2&t){const
e=d().index,n=d();a(2),yo(" ",n.m_CaptureCardsFiltered[e].CardType,"
",n.m_CaptureCardsFiltered[e].VideoDevice,"
(",n.m_CaptureCardsFiltered[e].DisplayName,") "),a(2),T("\
xa0",n.dirtyMessages[e],"")}}function eY(t,i){if(1&t){const
e=I();l(0,"p-button",16),C("click",function(){v(e);const
s=d(2).index;return
d().displayDeleteThis[s]=!1}),m(1,"translate"),c(),l(2,"p-button",17),C("click",function(){v(e);const
s=d(2).index;return
d().deleteThis(s)}),m(3,"translate"),c()}2&t&&(x("label",f(1,2,"common.no")),a(2),x("label",f(3,4,"common.yes")))}function
tY(t,i){if(1&t&&k(0,"app-ceton",31),2&t){const
e=d(2).index,n=d();p("card",n.m_CaptureCardsFiltered[e])("cardList",n.m_CaptureCardList)}}function
nY(t,i){if(1&t&&k(0,"app-dvb",32),2&t){const
e=d(2).index,n=d();p("card",n.m_CaptureCardsFiltered[e])("cardList",n.m_CaptureCardList)("diseqcTreeList",n.diseqcTreeList)("parent",n)}}function
iY(t,i){if(1&t&&k(0,"app-external",31),2&t){const
e=d(2).index,n=d();p("card",n.m_CaptureCardsFiltered[e])("cardList",n.m_CaptureCardList)}}function
sY(t,i){if(1&t&&k(0,"app-hdhomerun",31),2&t){const
e=d(2).index,n=d();p("card",n.m_CaptureCardsFiltered[e])("cardList",n.m_Captur
eCardList)}}function
rY(t,i){if(1&t&&k(0,"app-iptv",31),2&t){const
e=d(2).index,n=d();p("card",n.m_CaptureCardsFiltered[e])("cardList",n.m_CaptureCardList)}}function
oY(t,i){if(1&t&&k(0,"app-import",31),2&t){const
e=d(2).index,n=d();p("card",n.m_CaptureCardsFiltered[e])("cardList",n.m_CaptureCardList)}}function
aY(t,i){if(1&t&&k(0,"app-demo",31),2&t){const
e=d(2).index,n=d();p("card",n.m_CaptureCardsFiltered[e])("cardList",n.m_CaptureCardList)}}function
lY(t,i){if(1&t&&k(0,"app-v4l2",31),2&t){const
e=d(2).index,n=d();p("card",n.m_CaptureCardsFiltered[e])("cardList",n.m_CaptureCardList)}}function
cY(t,i){if(1&t&&k(0,"app-hdpvr",31),2&t){const
e=d(2).index,n=d();p("card",n.m_CaptureCardsFiltered[e])("cardList",n.m_CaptureCardList)}}function
uY(t,i){if(1&t&&k(0,"app-satip",31),2&t){const
e=d(2).index,n=d();p("card",n.m_CaptureCardsFiltered[e])("cardList",n.m_CaptureCardList)}}function
dY(t,i){if(1&t&&k(0,"app-vbox",31),2&t){const
e=d(2).index,n=d();p("card",n.m_CaptureCardsFiltered[e])
("cardList",n.m_CaptureCardList)}}function
pY(t,i){if(1&t&&k(0,"app-firewire",31),2&t){const
e=d(2).index,n=d();p("card",n.m_CaptureCardsFiltered[e])("cardList",n.m_CaptureCardList)}}function
hY(t,i){1&t&&(l(0,"div"),k(1,"br"),g(2,"Not Supported
"),c())}const
Dd=function(){return{width:"50vw"}},mY=function(t,i,e){return{CardType:t,VideoDevice:i,DisplayName:e}};function
fY(t,i){if(1&t){const
e=I();l(0,"p-button",26),C("onClick",function(){v(e);const
s=d().index;return
d().displayDeleteThis[s]=!0}),m(1,"translate"),c(),l(2,"p-dialog",2),C("visibleChange",function(s){v(e);const
r=d().index;return
d().displayDeleteThis[r]=s}),m(3,"translate"),l(4,"h2"),g(5),m(6,"translate"),c(),l(7,"p"),g(8),m(9,"translate"),c(),_(10,eY,4,6,"ng-template",4),c(),l(11,"div",27),_(12,tY,1,2,"app-ceton",28),_(13,nY,1,4,"app-dvb",29),_(14,iY,1,2,"app-external",28),_(15,sY,1,2,"app-hdhomerun",28),_(16,rY,1,2,"app-iptv",28),_(17,oY,1,2,"app-import",28),_(18,aY,1,2,"app-demo",28),_(19,lY,1,2,"app-v4l2",28),_(20
,cY,1,2,"app-hdpvr",28),_(21,uY,1,2,"app-satip",28),_(22,dY,1,2,"app-vbox",28),_(23,pY,1,2,"app-firewire",28),_(24,hY,3,0,"div",30),c()}if(2&t){const
e=d().index,n=d();x("label",f(1,24,"settings.capture.delete_this")),p("disabled",!n.m_CaptureCardsFiltered[e].CardId||n.setupService.schedulingEnabled),a(2),q(A(33,Dd)),x("header",f(3,26,"settings.capture.delete_this")),p("visible",n.displayDeleteThis[e])("modal",!0)("draggable",!1)("resizable",!1),a(3),S(f(6,28,"settings.common.ru_sure")),a(3),S(Dt(9,30,"settings.capture.delete_details",Qt(34,mY,n.m_CaptureCardsFiltered[e].CardType,n.m_CaptureCardsFiltered[e].VideoDevice,n.m_CaptureCardsFiltered[e].DisplayName))),a(3),p("ngSwitch",n.m_CaptureCardsFiltered[e].CardType),a(1),p("ngSwitchCase","CETON"),a(1),p("ngSwitchCase","DVB"),a(1),p("ngSwitchCase","EXTERNAL"),a(1),p("ngSwitchCase","HDHOMERUN"),a(1),p("ngSwitchCase","FREEBOX"),a(1),p("ngSwitchCase","IMPORT"),a(1),p("ngSwitchCase","DEMO"),a(1),p("ngSwitchCase","V4L2ENC"),a(1),p("ngSwit
chCase","HDPVR"),a(1),p("ngSwitchCase","SATIP"),a(1),p("ngSwitchCase","VBOX"),a(1),p("ngSwitchCase","FIREWIRE")}}function
gY(t,i){if(1&t){const
e=I();l(0,"p-accordionTab",21),C("selectedChange",function(s){const
o=v(e).index;return
d().activeTab[o]=s}),_(1,XJ,5,4,"ng-template",22),_(2,fY,25,38,"ng-template",23),c()}if(2&t){const
e=i.index,n=d();p("disabled",n.disabledTab[e])("selected",n.activeTab[e])}}const
_Y=function(){return{height:"50vh"}},pS=function(t){return{host:t}};let
hS=(()=>{class
t{constructor(e,n,s,r,o){this.mythService=e,this.router=n,this.captureCardService=s,this.setupService=r,this.translate=o,this.currentTab=-1,this.deletedTab=-1,this.dirtyMessages=[],this.forms=[],this.disabledTab=[],this.activeTab=[],this.displayDeleteThis=[],this.dirtyText="settings.common.unsaved",this.warningText="settings.common.warning",this.deletedText="settings.common.deleted",this.newText="settings.common.new",this.m_hostName="",this.displayModal=!1,this.selectedCardType={CardType:"",De
scription:""},this.displayDeleteAllonHost=!1,this.displayDeleteAll=!1,this.successCount=0,this.expectedCount=0,this.errorCount=0,this.deleteAll=!1,this.delObserver={next:u=>{u.bool?(this.successCount++,this.successCount==this.expectedCount&&(this.deleteAll?(this.loadCards(!0),this.deleteAll=!1):this.deletedTab>-1&&(this.dirtyMessages[this.deletedTab]=this.deletedText,this.disabledTab[this.deletedTab]=!0,this.activeTab[this.deletedTab]=!1,this.deletedTab=-1))):(this.errorCount++,this.deletedTab=-1,this.deleteAll=!1)},error:u=>{console.error(u),this.errorCount++,this.deleteAll=!1}},this.setupService.setCurrentForm(null),this.mythService.GetHostName().subscribe(u=>{this.m_hostName=u.String,this.loadCards(!0)}),o.get(this.dirtyText).subscribe(u=>this.dirtyText=u),o.get(this.warningText).subscribe(u=>this.warningText=u),o.get(this.deletedText).subscribe(u=>this.deletedText=u),o.get(this.newText).subscribe(u=>this.newText=u),this.captureCardService.GetCardTypeList().subscribe(u=>{this.car
dTypes=u.CardTypeList.CardTypes,this.cardTypes.forEach(h=>{h.Inactive=t.supportedCardTypes.indexOf(h.CardType)<0})})}loadCards(e){this.m_CaptureCardList$=this.captureCardService.GetCaptureCardList("",""),this.m_CaptureCardList$.subscribe(n=>{this.m_CaptureCardList=n,e&&this.filterCards()})}filterCards(){this.m_CaptureCardsFiltered=this.m_CaptureCardList.CaptureCardList.CaptureCards.filter(e=>0==e.ParentId&&e.HostName==this.m_hostName),this.dirtyMessages=[],this.forms=[],this.disabledTab=[],this.activeTab=[],this.displayDeleteThis=[];for(let
e=0;e<this.m_CaptureCardsFiltered.length;e++)this.dirtyMessages.push(""),this.disabledTab.push(!1),this.activeTab.push(!1),this.displayDeleteThis.push(!1)}ngOnInit(){this.loadDiseqc()}loadDiseqc(){this.captureCardService.GetDiseqcTreeList().subscribe({next:e=>{this.diseqcTreeList=e},error:e=>{console.log("GetDiseqcTreeList",e),this.errorCount++}})}onTabOpen(e){this.successCount+this.errorCount>=this.expectedCount&&(this.errorCount=0,this.successC
ount=0,this.expectedCount=0),this.showDirty();let
n=this.setupService.getCurrentForm();null!=n&&(this.forms[e.index]=n),this.setupService.setCurrentForm(null),this.currentTab=e.index,this.dirtyMessages[this.currentTab]=""}onTabClose(e){this.showDirty(),this.currentTab=-1}showDirty(){-1==this.currentTab||!this.forms[this.currentTab]||this.disabledTab[this.currentTab]||(this.dirtyMessages[this.currentTab]=this.forms[this.currentTab].dirty?this.dirtyText:this.m_CaptureCardsFiltered[this.currentTab].CardId?"":this.newText)}newCard(){this.displayModal=!1;let
e={CardType:this.selectedCardType.CardType,HostName:this.m_hostName,ChannelTimeout:3e3,SignalTimeout:1e3};switch(e.CardType){case"EXTERNAL":e.ChannelTimeout=2e4;break;case"FREEBOX":e.VideoDevice="http://mafreebox.freebox.fr/freeboxtv/playlist.m3u",e.ChannelTimeout=3e4;break;case"SATIP":e.DVBDiSEqCType=1}for(let
n=0;n<this.activeTab.length;n++)this.activeTab[n]=!1;this.dirtyMessages.push(this.newText),this.disabledTab.push(!1),this.ac
tiveTab.push(!1),this.displayDeleteThis.push(!1),this.m_CaptureCardsFiltered.push(e),this.selectedCardType={CardType:"",Description:""}}deleteThis(e){let
n=this.m_CaptureCardsFiltered[e].CardId;if(!this.deleteAll){if(this.successCount+this.errorCount<this.expectedCount)return;this.errorCount=0,this.successCount=0,this.expectedCount=0,this.displayDeleteThis[e]=!1,this.deletedTab=e}this.m_CaptureCardList.CaptureCardList.CaptureCards.forEach(s=>{s.ParentId==n&&(console.log("DeleteThis
(parent):",s.CardId),this.expectedCount++,this.captureCardService.DeleteCaptureCard(s.CardId).subscribe(this.delObserver))}),this.m_CaptureCardsFiltered[e].DiSEqCId=0,console.log("DeleteThis:",n),this.expectedCount++,this.captureCardService.DeleteCaptureCard(n).subscribe(this.delObserver)}deleteAllOnHost(){if(!(this.successCount+this.errorCount<this.expectedCount)){this.errorCount=0,this.successCount=0,this.expectedCount=0,this.displayDeleteAllonHost=!1,this.deletedTab=-1,this.deleteAll=!0;for(let
e=0;e<t
his.m_CaptureCardsFiltered.length;e++)!this.disabledTab[e]&&this.m_CaptureCardsFiltered[e].CardId&&this.deleteThis(e)}}deleteAllOnAllHosts(){this.successCount+this.errorCount<this.expectedCount||(this.displayDeleteAll=!1,this.deleteAllOnHost(),this.m_CaptureCardList.CaptureCardList.CaptureCards.forEach(e=>{e.HostName!=this.m_hostName&&(e.DiSEqCId=0,console.log("DeleteThis
(other
host):",e.CardId),this.expectedCount++,this.captureCardService.DeleteCaptureCard(e.CardId).subscribe(this.delObserver))}))}confirm(e){return
oe(window.confirm(e))}canDeactivate(){let
e=this.setupService.getCurrentForm();return!(this.forms[this.currentTab]&&this.forms[this.currentTab].dirty||this.dirtyMessages.find(n=>n==this.dirtyText)||e&&e.dirty)||this.confirm(this.warningText)}onWindowClose(e){let
n=this.setupService.getCurrentForm();(this.forms[this.currentTab]&&this.forms[this.currentTab].dirty||this.dirtyMessages.find(s=>s==this.dirtyText)||n&&n.dirty)&&(e.preventDefault(),e.returnValue=!1)}}return
t.s
upportedCardTypes=["CETON","DVB","EXTERNAL","HDHOMERUN","FREEBOX","IMPORT","DEMO","V4L2ENC","HDPVR","SATIP","VBOX","FIREWIRE"],t.\u0275fac=function(e){return
new(e||t)(D(qt),D(It),D(Gt),D(Me),D(Oe))},t.\u0275cmp=z({type:t,selectors:[["app-capture-cards"]],hostBindings:function(e,n){1&e&&C("beforeunload",function(r){return
n.onWindowClose(r)},!1,ni)},decls:42,vars:72,consts:[[1,"m-5"],["icon","pi
pi-plus-circle","styleClass","p-button-plain",3,"label","onClick"],[3,"header","visible","modal","draggable","resizable","visibleChange"],["optionLabel","Description","optionDisabled","Inactive",3,"options","ngModel","listStyle","ngModelChange","onDblClick"],["pTemplate","footer"],["styleClass","p-button-warning","icon","pi
pi-trash",3,"label","disabled","click"],["styleClass","p-button-danger","icon","pi
pi-trash","iconPos","left",3,"label","disabled","click"],[1,"grid","nogutter"],["class","col-12",4,"ngIf"],[1,"col-12","w-full",3,"onClose","onOpen"],[3,"disabled","selected","selectedChang
e",4,"ngFor","ngForOf"],[1,"flex","justify-content-end"],["icon","pi
pi-angle-left","iconPos","left",1,"p-3",3,"label","onClick"],["icon","pi
pi-angle-right","iconPos","right",1,"p-3",3,"label","onClick"],["icon","pi
pi-times-circle","styleClass","p-button-plain",3,"label","onClick"],["icon","pi
pi-check-circle","styleClass","p-button-plain",3,"label","disabled","onClick"],["icon","pi
pi-times-circle","styleClass","p-button-plain",3,"label","click"],["icon","pi
pi-check-circle","styleClass","p-button-plain",3,"label","click"],[1,"col-12"],["severity","success",3,"text"],["severity","error",3,"text"],[3,"disabled","selected","selectedChange"],["pTemplate","header"],["pTemplate","content"],[1,"grid","w-full"],[1,"col-11","pr-1"],["styleClass","p-button-warning","icon","pi
pi-trash",3,"label","disabled","onClick"],[3,"ngSwitch"],[3,"card","cardList",4,"ngSwitchCase"],[3,"card","cardList","diseqcTreeList","parent",4,"ngSwitchCase"],[4,"ngSwitchDefault"],[3,"card","cardList"],[3,"card","
cardList","diseqcTreeList","parent"]],template:function(e,n){1&e&&(l(0,"p-card",0)(1,"h2"),g(2),m(3,"translate"),c(),l(4,"p-button",1),C("onClick",function(){return
n.displayModal=!0}),m(5,"translate"),c(),l(6,"p-dialog",2),C("visibleChange",function(r){return
n.displayModal=r}),m(7,"translate"),l(8,"p"),g(9),m(10,"translate"),c(),l(11,"p-listbox",3),C("ngModelChange",function(r){return
n.selectedCardType=r})("onDblClick",function(){return
n.newCard()}),c(),_(12,KJ,4,7,"ng-template",4),c(),g(13," \xa0
"),l(14,"p-button",5),C("click",function(){return
n.displayDeleteAllonHost=!0}),m(15,"translate"),c(),l(16,"p-dialog",2),C("visibleChange",function(r){return
n.displayDeleteAllonHost=r}),m(17,"translate"),l(18,"h2"),g(19),m(20,"translate"),c(),_(21,QJ,4,6,"ng-template",4),c(),g(22,"
\xa0 "),l(23,"p-button",6),C("click",function(){return
n.displayDeleteAll=!0}),m(24,"translate"),c(),l(25,"p-dialog",2),C("visibleChange",function(r){return
n.displayDeleteAll=r}),m(26,"translate"),l(27,"h2
"),g(28),m(29,"translate"),c(),_(30,JJ,4,6,"ng-template",4),c(),k(31,"br"),l(32,"div",7),_(33,YJ,5,3,"div",8),_(34,ZJ,5,3,"div",8),c(),l(35,"p-accordion",9),C("onClose",function(r){return
n.onTabClose(r)})("onOpen",function(r){return
n.onTabOpen(r)}),_(36,gY,3,2,"p-accordionTab",10),c(),l(37,"div",11)(38,"p-button",12),C("onClick",function(){return
n.router.navigate(["setupwizard/general"])}),m(39,"translate"),c(),l(40,"p-button",13),C("onClick",function(){return
n.router.navigate(["setupwizard/recording-profiles"])}),m(41,"translate"),c()()()),2&e&&(a(2),S(f(3,38,"settings.capture.title")),a(2),x("label",f(5,40,"settings.capture.new_capture_card")),a(2),q(A(64,Dd)),x("header",f(7,42,"settings.capture.new_capture_card")),p("visible",n.displayModal)("modal",!0)("draggable",!1)("resizable",!1),a(3),S(f(10,44,"settings.capture.select_type")),a(2),p("options",n.cardTypes)("ngModel",n.selectedCardType)("listStyle",A(65,_Y)),a(3),x("label",Dt(15,46,"settings.capture.delete_on_host",U(66,p
S,n.m_hostName))),p("disabled",n.setupService.schedulingEnabled),a(2),q(A(68,Dd)),x("header",Dt(17,49,"settings.capture.delete_on_host",U(69,pS,n.m_hostName))),p("visible",n.displayDeleteAllonHost)("modal",!0)("draggable",!1)("resizable",!1),a(3),S(f(20,52,"settings.common.ru_sure")),a(4),x("label",f(24,54,"settings.capture.delete_all")),p("disabled",n.setupService.schedulingEnabled),a(2),q(A(71,Dd)),x("header",f(26,56,"settings.capture.delete_all_all")),p("visible",n.displayDeleteAll)("modal",!0)("draggable",!1)("resizable",!1),a(3),S(f(29,58,"settings.common.ru_sure")),a(5),p("ngIf",n.expectedCount&&n.successCount==n.expectedCount),a(1),p("ngIf",n.errorCount>0),a(2),p("ngForOf",n.m_CaptureCardsFiltered),a(2),x("label",f(39,60,"common.back")),a(2),x("label",f(41,62,"common.next")))},styles:["@media
screen and (max-width:
48rem){.p-card-body,.p-card-content,.p-accordion-content{padding:0rem!important}}\n"],encapsulation:2}),t})();function
bY(t,i){if(1&t&&(l(0,"div",10)(1,"div",11),g
(2),l(3,"b"),g(4),c()()()),2&t){const
e=d(2),n=e.$implicit,s=e.index,r=d();a(2),T(" ",n.Name,"
"),a(2),T("\xa0",r.dirtyMessages[s],"")}}function
vY(t,i){1&t&&_(0,bY,5,2,"div",9),2&t&&p("ngIf",d(2).readyCount>0)}function
CY(t,i){if(1&t&&k(0,"app-profile-group",12),2&t){const
e=d().$implicit,n=d();p("group",e)("parentComponent",n)}}function
yY(t,i){if(1&t){const
e=I();l(0,"p-accordionTab",6),C("selectedChange",function(s){const
o=v(e).index;return
d().activeTab[o]=s}),_(1,vY,1,1,"ng-template",7),_(2,CY,1,2,"ng-template",8),c()}if(2&t){const
e=i.index;p("selected",d().activeTab[e])}}let mS=(()=>{class
t{constructor(e,n,s,r){this.captureCardService=e,this.router=n,this.translate=s,this.setupService=r,this.currentTab=-1,this.deletedTab=-1,this.dirtyMessages=[],this.activeTab=[],this.readyCount=0,this.profileGroups=[],this.dirtyText="settings.common.unsaved",this.warningText="settings.common.warning",this.groups=[],this.setupService.setCurrentForm(null),this.loadGroups(),s.get(this.dirtyT
ext).subscribe(o=>this.dirtyText=o),s.get(this.warningText).subscribe(o=>this.warningText=o)}loadGroups(){this.captureCardService.GetRecProfileGroupList(0,0,!0).subscribe(n=>{this.groups=n.RecProfileGroupList.RecProfileGroups,this.readyCount++})}ngOnInit(){}onTabOpen(e){this.currentTab=e.index,this.dirtyMessages[this.currentTab]=""}onTabClose(e){this.showDirty(),this.currentTab=-1}showDirty(){-1==this.currentTab||!this.profileGroups[this.currentTab]||(this.dirtyMessages[this.currentTab]=this.profileGroups[this.currentTab].allClean()?"":this.dirtyText)}confirm(e){return
oe(window.confirm(e))}canDeactivate(){let e=!0;return
this.profileGroups.forEach(n=>{n.allClean()||(e=!1)}),!!e||this.confirm(this.warningText)}onWindowClose(e){let
n=!0;this.profileGroups.forEach(s=>{s.allClean()||(n=!1)}),n||(e.preventDefault(),e.returnValue=!1)}}return
t.\u0275fac=function(e){return
new(e||t)(D(Gt),D(It),D(Oe),D(Me))},t.\u0275cmp=z({type:t,selectors:[["app-recording-profiles"]],hostBindings:functio
n(e,n){1&e&&C("beforeunload",function(r){return
n.onWindowClose(r)},!1,ni)},decls:11,vars:10,consts:[[1,"md:m-5"],[1,"col-12","w-full",3,"onOpen","onClose"],[3,"selected","selectedChange",4,"ngFor","ngForOf"],[1,"flex","justify-content-end"],["icon","pi
pi-angle-left","iconPos","left",1,"p-3",3,"label","onClick"],["icon","pi
pi-angle-right","iconPos","right",1,"p-3",3,"label","onClick"],[3,"selected","selectedChange"],["pTemplate","header"],["pTemplate","content"],["class","grid
w-full",4,"ngIf"],[1,"grid","w-full"],[1,"col-9","pr-1"],[3,"group","parentComponent"]],template:function(e,n){1&e&&(l(0,"p-card",0)(1,"h2"),g(2),m(3,"translate"),c(),l(4,"p-accordion",1),C("onOpen",function(r){return
n.onTabOpen(r)})("onClose",function(r){return
n.onTabClose(r)}),_(5,yY,3,1,"p-accordionTab",2),c(),l(6,"div",3)(7,"p-button",4),C("onClick",function(){return
n.router.navigate(["setupwizard/capture-cards"])}),m(8,"translate"),c(),l(9,"p-button",5),C("onClick",function(){return
n.router.navigat
e(["setupwizard/video-sources"])}),m(10,"translate"),c()()()),2&e&&(a(2),S(f(3,4,"settings.rprofiles.title")),a(3),p("ngForOf",n.groups),a(2),x("label",f(8,6,"common.back")),a(2),x("label",f(10,8,"common.next")))},styles:["@media
screen and (max-width:
48rem){.p-card-body,.p-card-content,.p-accordion-content{padding:0rem!important}}\n"],encapsulation:2}),t})(),Or=(()=>{class
t{constructor(e){this.httpClient=e}AddDBChannel(e){return
this.httpClient.post("/Channel/AddDBChannel",e)}UpdateDBChannel(e){return
this.httpClient.post("/Channel/UpdateDBChannel",e)}AddVideoSource(e){return
this.httpClient.post("/Channel/AddVideoSource",e)}FetchChannelsFromSource(e){let
n=(new
ye).set("SourceId",e.SourceId).set("CardId",e.CardId).set("WaitForFinish",e.WaitForFinish);return
this.httpClient.get("/Channel/FetchChannelsFromSource",{params:n})}GetChannelInfo(e){let
n=(new ye).set("ChanID",e);return
this.httpClient.get("/Channel/GetChannelInfo",{params:n})}GetChannelInfoList(e){let
n=new ye;return vo
id 0!==e.SourceID&&(n=n.set("SourceID",e.SourceID)),void
0!==e.ChannelGroupID&&(n=n.set("ChannelGroupID",e.ChannelGroupID)),void
0!==e.StartIndex&&(n=n.set("StartIndex",e.StartIndex)),void
0!==e.Count&&(n=n.set("Count",e.Count)),void
0!==e.OnlyVisible&&(n=n.set("OnlyVisible",e.OnlyVisible)),void
0!==e.Details&&(n=n.set("Details",e.Details)),void
0!==e.OrderByName&&(n=n.set("OrderByName",e.OrderByName)),void
0!==e.GroupByCallsign&&(n=n.set("GroupByCallsign",e.GroupByCallsign)),void
0!==e.OnlyTunable&&(n=n.set("OnlyTunable",e.OnlyTunable)),this.httpClient.get("/Channel/GetChannelInfoList",{params:n})}GetDDLineupList(e){let
n=(new
ye).set("Source",e.Source).set("UserId",e.UserId).set("Password",e.Password);return
this.httpClient.get("/Channel/GetDDLineupList",{params:n})}GetVideoMultiplex(e){let
n=(new ye).set("MplexID",e);return
this.httpClient.get("/Channel/GetVideoMultiplex",{params:n})}GetVideoMultiplexList(e){let
n=(new ye).set("SourceID",e.SourceID);return e.StartIndex&&(n=n.set(
"StartIndex",e.StartIndex)),e.Count&&(n=n.set("Count",e.Count)),this.httpClient.get("/Channel/GetVideoMultiplexList",{params:n})}GetVideoSource(e){let
n=(new ye).set("SourceID",e);return
this.httpClient.get("/Channel/GetVideoSource",{params:n})}GetVideoSourceList(){return
this.httpClient.get("/Channel/GetVideoSourceList")}GetXMLTVIdList(e){let n=(new
ye).set("SourceID",e);return
this.httpClient.get("/Channel/GetXMLTVIdList",{params:n})}GetAvailableChanid(){return
this.httpClient.get("/Channel/GetAvailableChanid",{})}RemoveDBChannel(e){return
this.httpClient.post("/Channel/RemoveDBChannel",{ChannelID:e})}RemoveVideoSource(e){return
this.httpClient.post("/Channel/RemoveVideoSource",{SourceId:e})}UpdateVideoSource(e){return
this.httpClient.post("/Channel/UpdateVideoSource",e)}GetGrabberList(){return
this.httpClient.get("/Channel/GetGrabberList")}GetFreqTableList(){return
this.httpClient.get("/Channel/GetFreqTableList")}GetCommMethodList(){return
this.httpClient.get("/Channel/GetCommMet
hodList")}StartScan(e){return
this.httpClient.post("/Channel/StartScan",e)}GetScanStatus(){return
this.httpClient.get("/Channel/GetScanStatus")}StopScan(e){return
this.httpClient.post("/Channel/StopScan",{Cardid:e})}GetScanList(e){let n=(new
ye).set("SourceID",e);return
this.httpClient.get("/Channel/GetScanList",{params:n})}SendScanDialogResponse(e){return
this.httpClient.post("/Channel/SendScanDialogResponse",e)}}return
t.\u0275fac=function(e){return
new(e||t)(K(Bi))},t.\u0275prov=X({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();const
wY=["vsourceform"],TY=["top"];function
SY(t,i){1&t&&(g(0),m(1,"translate")),2&t&&T("
",f(1,1,"settings.vsource.item_title")," ")}function
xY(t,i){}function
DY(t,i){if(1&t&&(l(0,"div")(1,"small",34),g(2),c()()),2&t){const
e=d(2);a(2),T(" ",e.work.errorMessage," ")}}const
fS=function(){return{minWidth:"80%"}};function MY(t,i){if(1&t){const
e=I();l(0,"p-dropdown",35,36),C("ngModelChange",function(s){return
v(e),d(2).videoSource.Grabber=s})("onCha
nge",function(){return v(e),d(2).checkName()}),c()}if(2&t){const
e=d(2);q(A(5,fS)),p("options",e.grabberList.GrabberList.Grabbers)("ngModel",e.videoSource.Grabber)("editable",!1)}}function
kY(t,i){if(1&t){const
e=I();l(0,"div",10)(1,"label",37),g(2),m(3,"translate"),c(),l(4,"p"),g(5),m(6,"translate"),l(7,"a",38),g(8,"XMLTV"),c()(),l(9,"table")(10,"tr")(11,"td",39),g(12),c(),l(13,"td",40)(14,"button",41),C("click",function(){return
v(e),d(2).copyConfigure()}),m(15,"translate"),c()()()()()}if(2&t){const
e=d(2);a(2),T(" ",f(3,4,"settings.vsource.grabberconfig_label"),"
"),a(3),T(" ",f(6,6,"settings.vsource.grabberconfig_desc"),"
"),a(7),T(" ",e.configCommand,"
"),a(2),x("pTooltip",f(15,8,"settings.common.clipboard_tooltip"))}}function
IY(t,i){if(1&t){const
e=I();l(0,"p-dropdown",42,43),C("ngModelChange",function(s){return
v(e),d(2).videoSource.FreqTable=s}),c()}if(2&t){const
e=d(2);q(A(5,fS)),p("options",e.freqTableList.FreqTableList)("ngModel",e.videoSource.FreqTable)("editable",!1)}}
function EY(t,i){if(1&t){const
e=I();l(0,"div",8)(1,"div",9)(2,"div",10)(3,"label",11),g(4),m(5,"translate"),c(),l(6,"input",12,13),C("ngModelChange",function(s){return
v(e),d().videoSource.SourceName=s})("change",function(){return
v(e),d().checkName()}),c(),_(8,DY,3,1,"div",14),l(9,"small",15),g(10),m(11,"translate"),c()(),l(12,"div",10)(13,"label",16),g(14),m(15,"translate"),c(),_(16,MY,2,6,"p-dropdown",17),l(17,"small",15),g(18),m(19,"translate"),c()(),_(20,kY,16,10,"div",18),l(21,"div",10)(22,"p-checkbox",19,20),C("ngModelChange",function(s){return
v(e),d().videoSource.UseEIT=s}),m(24,"translate"),c(),l(25,"small",15),g(26),m(27,"translate"),c()(),l(28,"div",10)(29,"label",21),g(30),m(31,"translate"),c(),_(32,IY,2,6,"p-dropdown",22),l(33,"small",15),g(34),m(35,"translate"),c()(),l(36,"div",10)(37,"label",23),g(38),m(39,"translate"),c(),l(40,"p-inputNumber",24),C("ngModelChange",function(s){return
v(e),d().videoSource.ScanFrequency=s}),c(),l(41,"small",15),g(42),m(43,"translate")
,c()(),l(44,"div",10)(45,"label",25),g(46),m(47,"translate"),c(),l(48,"p-inputNumber",26),C("ngModelChange",function(s){return
v(e),d().videoSource.NITId=s}),c(),l(49,"small",15),g(50),m(51,"translate"),c()(),l(52,"div",10)(53,"label",27),g(54),m(55,"translate"),c(),l(56,"p-inputNumber",28),C("ngModelChange",function(s){return
v(e),d().videoSource.BouquetId=s}),c(),l(57,"small",15),g(58),m(59,"translate"),l(60,"a",29),g(61,"DVB
UK"),c()()(),l(62,"div",10)(63,"label",30),g(64),m(65,"translate"),c(),l(66,"p-inputNumber",31),C("ngModelChange",function(s){return
v(e),d().videoSource.RegionId=s}),c(),l(67,"small",15),g(68),m(69,"translate"),l(70,"a",29),g(71,"DVB
UK"),c()()(),l(72,"div",10)(73,"label",32),g(74),m(75,"translate"),c(),l(76,"p-inputNumber",33),C("ngModelChange",function(s){return
v(e),d().videoSource.LCNOffset=s}),c(),l(77,"small",15),g(78),m(79,"translate"),c()()()()}if(2&t){const
e=d();a(4),S(f(5,54,"settings.vsource.source_label")),a(2),p("ngModel",e.videoSource.SourceNa
me)("disabled",e.videoSource.Id>0)("maxlength",50),a(2),p("ngIf",e.work.errorMessage),a(2),T("
",f(11,56,"settings.vsource.source_desc")," "),a(4),T("
",f(15,58,"settings.vsource.grabber_label"),"
"),a(2),p("ngIf",e.grabberList.GrabberList.Grabbers.length>0),a(2),T("
",f(19,60,"settings.vsource.grabber_desc"),"
"),a(2),p("ngIf",e.configCommand.length>0),a(2),x("label",f(24,62,"settings.vsource.eit_label")),p("ngModel",e.videoSource.UseEIT)("binary",!0),a(4),T("
",f(27,64,"settings.vsource.eit_desc")," "),a(4),T("
",f(31,66,"settings.vsource.freqtable_label"),"
"),a(2),p("ngIf",e.freqTableList.FreqTableList.length>0),a(2),T("
",f(35,68,"settings.vsource.freqtable_desc")," "),a(4),T("
",f(39,70,"settings.vsource.scanfreq_label"),"
"),a(2),p("ngModel",e.videoSource.ScanFrequency)("min",0)("max",999999999),a(2),T("
",f(43,72,"settings.vsource.scanfreq_desc")," "),a(4),T("
",f(47,74,"settings.vsource.netid_label"),"
"),a(2),p("ngModel",e.videoSource.NITId)("showButtons",!0)("min",-1)("ma
x",65535)("step",1)("useGrouping",!1),a(2),T("
",f(51,76,"settings.vsource.netid_desc")," "),a(4),T("
",f(55,78,"settings.vsource.bouquet_label"),"
"),a(2),p("ngModel",e.videoSource.BouquetId)("showButtons",!0)("min",0)("max",65535)("step",1)("useGrouping",!1),a(2),T("
",f(59,80,"settings.vsource.bouquet_desc")," "),a(6),T("
",f(65,82,"settings.vsource.region_label"),"
"),a(2),p("ngModel",e.videoSource.RegionId)("showButtons",!0)("min",0)("max",100)("step",1)("useGrouping",!1),a(2),T("
",f(69,84,"settings.vsource.region_desc")," "),a(6),T("
",f(75,86,"settings.vsource.lcnoffset_label"),"
"),a(2),p("ngModel",e.videoSource.LCNOffset)("showButtons",!0)("min",0)("max",2e4)("step",100)("useGrouping",!1),a(2),T("
",f(79,88,"settings.vsource.lcnoffset_desc")," ")}}function
RY(t,i){1&t&&(k(0,"p-message",49),m(1,"translate")),2&t&&x("text",f(1,1,"common.savesuccess"))}function
LY(t,i){1&t&&(k(0,"p-message",50),m(1,"translate")),2&t&&x("text",f(1,1,"common.networkfail"))}function
OY(t,i){if(1
&t){const
e=I();l(0,"div",44)(1,"div",45),_(2,RY,2,3,"p-message",46),_(3,LY,2,3,"p-message",47),c(),l(4,"p-button",48),C("onClick",function(){v(e);const
s=d(),r=F(1);return
s.saveForm(),r.form.markAsPristine()}),m(5,"translate"),c()()}if(2&t){const
e=d(),n=F(1);a(2),p("ngIf",e.work.successCount>0&&0==e.work.errorCount&&!n.dirty),a(1),p("ngIf",e.work.errorCount>0),a(1),x("label",f(5,4,"common.save")),p("disabled",!n.dirty||!e.videoSource.SourceName||e.work.validateError||e.setupService.schedulingEnabled)}}let
AY=(()=>{class
t{constructor(e,n,s,r,o){this.channelService=e,this.translate=n,this.setupService=s,this.clipboard=r,this.mythService=o,this.grabberList={GrabberList:{Grabbers:[]}},this.freqTableList={FreqTableList:[]},this.work={successCount:0,errorCount:0,errorMessage:"",validateError:!1},this.messages={nameInUse:"settings.vsource.nameInUse",nameRequired:"settings.vsource.nameRequired"},this.configCommand="",this.saveObserver={next:u=>{u.bool?this.work.successCount++:!this.vide
oSource.Id&&u.int?(this.work.successCount++,this.videoSource.Id||(this.videoSource.Id=u.int)):(console.log("saveObserver
error",u),this.work.errorCount++,this.currentForm.form.markAsDirty())},error:u=>{console.log("saveObserver
error",u),this.work.errorCount++,this.currentForm.form.markAsDirty()}},n.get(this.messages.nameInUse).subscribe(u=>this.messages.nameInUse=u),n.get(this.messages.nameRequired).subscribe(u=>this.messages.nameRequired=u)}ngOnInit(){this.channelService.GetGrabberList().subscribe(e=>{this.grabberList=e}),this.channelService.GetFreqTableList().subscribe(e=>{this.freqTableList=e}),this.mythService.GetBackendInfo().subscribe(e=>{this.backendInfo=e,this.setupConf()})}ngAfterViewInit(){this.setupService.setCurrentForm(this.currentForm),this.topElement.nativeElement.scrollIntoView({behavior:"smooth",block:"start"})}copyConfigure(){this.clipboard.copy(this.configCommand)}checkName(){this.work.errorMessage="",this.work.validateError=!1,this.videoSource.SourceName=this.vi
deoSource.SourceName.trim(),this.videoSourceList.VideoSourceList.VideoSources.find(n=>n.SourceName==this.videoSource.SourceName&&n.Id!=this.videoSource.Id)&&(this.work.errorMessage=this.messages.nameInUse,this.work.validateError=!0),""==this.videoSource.SourceName&&(this.work.errorMessage=this.messages.nameRequired,this.work.validateError=!0),this.setupConf()}setupConf(){this.configCommand="eitonly"==this.videoSource.Grabber||"/bin/true"==this.videoSource.Grabber||""==this.videoSource.Grabber||""==this.videoSource.SourceName||this.work.validateError?"":"sudo
-u "+this.backendInfo.BackendInfo.Env.USER+"
"+this.videoSource.Grabber+' --configure --config-file
"'+this.backendInfo.BackendInfo.Env.MYTHCONFDIR+"/"+this.videoSource.SourceName+'.xmltv"'}saveForm(){if(this.work.successCount=0,this.work.errorCount=0,this.videoSource.Id){let
e=this.videoSource;e.SourceID=this.videoSource.Id,this.channelService.UpdateVideoSource(e).subscribe(this.saveObserver)}else
this.channelService.AddVideoSo
urce(this.videoSource).subscribe(this.saveObserver)}}return
t.\u0275fac=function(e){return
new(e||t)(D(Or),D(Oe),D(Me),D(lS),D(qt))},t.\u0275cmp=z({type:t,selectors:[["app-vsource"]],viewQuery:function(e,n){if(1&e&&(W(wY,5),W(TY,5)),2&e){let
s;V(s=B())&&(n.currentForm=s.first),V(s=B())&&(n.topElement=s.first)}},inputs:{videoSource:"videoSource",videoSourceList:"videoSourceList"},decls:9,vars:0,consts:[["name","vsourceform",1,"ml-3","mr-3"],["vsourceform","ngForm"],["top",""],[1,"m-5"],["pTemplate","title"],["pTemplate","subtitle"],["pTemplate","content"],["pTemplate","footer"],[1,"grid"],[1,"mb-4","w-full"],[1,"form-group","field"],["for","SourceName",1,"label","block"],["pInputText","","id","SourceName","name","SourceName",1,"mb-2","form-control","w-full",3,"ngModel","disabled","maxlength","ngModelChange","change"],["SourceName","ngModel"],[4,"ngIf"],[1,"block"],["for","Grabber",1,"label","block"],["optionLabel","DisplayName","optionValue","Program","name","Grabber",3,"options","ng
Model","editable","style","ngModelChange","onChange",4,"ngIf"],["class","form-group
field",4,"ngIf"],["inputId","UseEIT",&...
ffset",1,"label","block"],["name",&quo...
pi-copy",1,"p-button-rounded","p-button-text",3,"pTooltip","click"],["name","FreqTable",3,"options","ngModel","editable","ngModelChange"],["FreqTable","ngModel"],[1,"grid","nogutter"],[1,"col-12"],["severity","success",3,"text",4,"ngIf"],["severity","error",3,"text",4,"ngIf"],["icon","pi
pi-save","iconPos","left",1,"col","pr-1",3,"label","disabled","onClick"],["severity","success",3,"text"],["severity","error",3,"text
"]],template:function(e,n){1&e&&(l(0,"form",0,1),k(2,"span",null,2),l(4,"p-card",3),_(5,SY,2,3,"ng-template",4),_(6,xY,0,0,"ng-template",5),_(7,EY,80,90,"ng-template",6),_(8,OY,6,6,"ng-template",7),c()())},directives:[ze,Ue,He,Ne,ne,Ye,Te,_e,_n,Q,Ot,On,bt,Kt,sn,pt,qe,ve],pipes:[ce],styles:["a[_ngcontent-%COMP%]:link,
a[_ngcontent-%COMP%]:visited,
a[_ngcontent-%COMP%]:active{background-color:#fff}"]}),t})();function
PY(t,i){if(1&t){const
e=I();l(0,"p-button",12),C("click",function(){return
v(e),d().displayDeleteAll=!1}),m(1,"translate"),c(),l(2,"p-button",13),C("click",function(){return
v(e),d().deleteAllSources()}),m(3,"translate"),c()}2&t&&(x("label",f(1,2,"common.no")),a(2),x("label",f(3,4,"common.yes")))}function
FY(t,i){1&t&&(l(0,"div",14),k(1,"br")(2,"p-message",15),m(3,"translate"),k(4,"br"),c()),2&t&&(a(2),x("text",f(3,1,"settings.common.successful_delete")))}function
NY(t,i){1&t&&(l(0,"div",14),k(1,"br")(2,"p-message",16),m(3,"translate"),k(4,"br"),c()),2&t&&(a(2),x("text",f
(3,1,"common.networkfail")))}function
VY(t,i){if(1&t&&(l(0,"div",20)(1,"div",21),g(2),l(3,"b"),g(4),c()()()),2&t){const
e=d().index,n=d();a(2),We("
",n.videoSourceList.VideoSourceList.VideoSources[e].SourceName,"
(",n.videoSourceList.VideoSourceList.VideoSources[e].Grabber,")
"),a(2),T("\xa0",n.dirtyMessages[e],"")}}function
BY(t,i){if(1&t){const
e=I();l(0,"p-button",12),C("click",function(){v(e);const
s=d(2).index;return
d().displayDeleteThis[s]=!1}),m(1,"translate"),c(),l(2,"p-button",13),C("click",function(){v(e);const
s=d(2).index;return
d().deleteThis(s)}),m(3,"translate"),c()}2&t&&(x("label",f(1,2,"common.no")),a(2),x("label",f(3,4,"common.yes")))}const
gS=function(){return{width:"50vw"}},HY=function(t,i){return{Grabber:t,DisplayName:i}};function
qY(t,i){if(1&t){const
e=I();l(0,"p-button",22),C("onClick",function(){v(e);const
s=d().index;return
d().displayDeleteThis[s]=!0}),m(1,"translate"),c(),l(2,"p-dialog",3),C("visibleChange",function(s){v(e);const
r=d().index;return d().d
isplayDeleteThis[r]=s}),m(3,"translate"),l(4,"h2"),g(5),m(6,"translate"),c(),l(7,"p"),g(8),m(9,"translate"),c(),_(10,BY,4,6,"ng-template",4),c(),k(11,"app-vsource",23)}if(2&t){const
e=d().index,n=d();x("label",f(1,13,"settings.vsource.delete_this")),p("disabled",!n.videoSourceList.VideoSourceList.VideoSources[e].Id||n.setupService.schedulingEnabled),a(2),q(A(22,gS)),x("header",f(3,15,"settings.vsource.delete_this")),p("visible",n.displayDeleteThis[e])("modal",!0)("draggable",!1)("resizable",!1),a(3),S(f(6,17,"settings.common.ru_sure")),a(3),S(Dt(9,19,"settings.vsource.delete_details",Ge(23,HY,n.videoSourceList.VideoSourceList.VideoSources[e].Grabber,n.videoSourceList.VideoSourceList.VideoSources[e].SourceName))),a(3),p("videoSource",n.videoSourceList.VideoSourceList.VideoSources[e])("videoSourceList",n.videoSourceList)}}function
GY(t,i){if(1&t){const
e=I();l(0,"p-accordionTab",17),C("selectedChange",function(s){const
o=v(e).index;return d().activeTab[o]=s}),_(1,VY,5,3,"ng-template",
18),_(2,qY,12,26,"ng-template",19),c()}if(2&t){const
e=i.index,n=d();p("disabled",n.disabledTab[e])("selected",n.activeTab[e])}}let
UY=(()=>{class
t{constructor(e,n,s,r){this.setupService=e,this.translate=n,this.channelService=s,this.router=r,this.currentTab=-1,this.deletedTab=-1,this.dirtyMessages=[],this.forms=[],this.disabledTab=[],this.activeTab=[],this.displayDeleteThis=[],this.dirtyText="settings.common.unsaved",this.warningText="settings.common.warning",this.deletedText="settings.common.deleted",this.newText="settings.common.new",this.successCount=0,this.expectedCount=0,this.errorCount=0,this.displayDeleteAll=!1,this.deleteAll=!1,this.videoSourceList={VideoSourceList:{VideoSources:[],AsOf:"",Version:"",ProtoVer:""}},this.delObserver={next:o=>{o.bool?(this.successCount++,this.successCount==this.expectedCount&&(this.deleteAll?(this.loadSources(),this.deleteAll=!1):this.deletedTab>-1&&(this.dirtyMessages[this.deletedTab]=this.deletedText,this.disabledTab[this.deletedTab]=!0,this
.activeTab[this.deletedTab]=!1,this.deletedTab=-1))):(this.errorCount++,this.deletedTab=-1,this.deleteAll=!1)},error:o=>{console.error(o),this.errorCount++,this.deleteAll=!1}},this.setupService.setCurrentForm(null),this.loadSources(),n.get(this.dirtyText).subscribe(o=>this.dirtyText=o),n.get(this.warningText).subscribe(o=>this.warningText=o),n.get(this.deletedText).subscribe(o=>this.deletedText=o),n.get(this.newText).subscribe(o=>this.newText=o)}loadSources(){this.channelService.GetVideoSourceList().subscribe(e=>{this.videoSourceList=e,this.dirtyMessages=[],this.forms=[],this.disabledTab=[],this.activeTab=[],this.displayDeleteThis=[];for(let
n=0;n<this.videoSourceList.VideoSourceList.VideoSources.length;n++)this.dirtyMessages.push(""),this.forms.push({}),this.disabledTab.push(!1),this.activeTab.push(!1),this.displayDeleteThis.push(!1)})}ngOnInit(){}onTabOpen(e){this.successCount+this.errorCount>=this.expectedCount&&(this.errorCount=0,this.successCount=0,this.expectedCount=0),this.sh
owDirty();let
n=this.setupService.getCurrentForm();null!=n&&(this.forms[e.index]=n),this.setupService.setCurrentForm(null),this.currentTab=e.index,this.dirtyMessages[this.currentTab]=""}onTabClose(e){this.showDirty(),this.currentTab=-1}showDirty(){-1==this.currentTab||!this.forms[this.currentTab]||this.disabledTab[this.currentTab]||(this.dirtyMessages[this.currentTab]=this.forms[this.currentTab].dirty?this.dirtyText:this.videoSourceList.VideoSourceList.VideoSources[this.currentTab].Id?"":this.newText)}newSource(){for(let
n=0;n<this.activeTab.length;n++)this.activeTab[n]=!1;this.dirtyMessages.push(this.newText),this.disabledTab.push(!1),this.activeTab.push(!1),this.displayDeleteThis.push(!1),this.videoSourceList.VideoSourceList.VideoSources.push({Grabber:"eitonly",FreqTable:"default",ScanFrequency:0,NITId:-1,BouquetId:0,RegionId:0,LCNOffset:0,SourceName:""})}deleteAllSources(){if(!(this.successCount+this.errorCount<this.expectedCount)){this.errorCount=0,this.successCount=0,this.expec
tedCount=0,this.displayDeleteAll=!1,this.deletedTab=-1,this.deleteAll=!0;for(let
e=0;e<this.videoSourceList.VideoSourceList.VideoSources.length;e++)!this.disabledTab[e]&&this.videoSourceList.VideoSourceList.VideoSources[e].Id&&this.deleteThis(e)}}deleteThis(e){let
n=this.videoSourceList.VideoSourceList.VideoSources[e].Id;if(!this.deleteAll){if(this.successCount+this.errorCount<this.expectedCount)return;this.errorCount=0,this.successCount=0,this.expectedCount=0,this.displayDeleteThis[e]=!1,this.deletedTab=e}this.expectedCount++,this.channelService.RemoveVideoSource(n).subscribe(this.delObserver)}confirm(e){return
oe(window.confirm(e))}canDeactivate(){let
e=this.setupService.getCurrentForm();return!(this.forms[this.currentTab]&&this.forms[this.currentTab].dirty||this.dirtyMessages.find(n=>n==this.dirtyText)||e&&e.dirty)||this.confirm(this.warningText)}onWindowClose(e){let
n=this.setupService.getCurrentForm();(this.forms[this.currentTab]&&this.forms[this.currentTab].dirty||this.dirtyMe
ssages.find(s=>s==this.dirtyText)||n&&n.dirty)&&(e.preventDefault(),e.returnValue=!1)}}return
t.\u0275fac=function(e){return
new(e||t)(D(Me),D(Oe),D(Or),D(It))},t.\u0275cmp=z({type:t,selectors:[["app-video-sources"]],hostBindings:function(e,n){1&e&&C("beforeunload",function(r){return
n.onWindowClose(r)},!1,ni)},decls:26,vars:32,consts:[[1,"m-5"],["icon","pi
pi-plus-circle","styleClass","p-button-plain",3,"label","onClick"],["styleClass","p-button-danger","icon","pi
pi-trash","iconPos","left",3,"label","disabled","click"],[3,"header","visible","modal","draggable","resizable","visibleChange"],["pTemplate","footer"],[1,"grid","nogutter"],["class","col-12",4,"ngIf"],[1,"col-12","w-full",3,"onClose","onOpen"],[3,"disabled","selected","selectedChange",4,"ngFor","ngForOf"],[1,"flex","justify-content-end"],["icon","pi
pi-angle-left","iconPos","left",1,"p-3",3,"label","onClick"],["icon","pi
pi-angle-right","iconPos","right",1,"p-3",3,"label","onClick"],["icon","pi
pi-times-circle","styleClas
s","p-button-plain",3,"label","click"],["icon","pi
pi-check-circle","styleClass","p-button-plain",3,"label","click"],[1,"col-12"],["severity","success",3,"text"],["severity","error",3,"text"],[3,"disabled","selected","selectedChange"],["pTemplate","header"],["pTemplate","content"],[1,"grid","w-full"],[1,"col-9","pr-1"],["styleClass","p-button-warning","icon","pi
pi-trash",3,"label","disabled","onClick"],[3,"videoSource","videoSourceList"]],template:function(e,n){1&e&&(l(0,"p-card",0)(1,"h2"),g(2),m(3,"translate"),c(),l(4,"p-button",1),C("onClick",function(){return
n.newSource()}),m(5,"translate"),c(),g(6," \xa0
"),l(7,"p-button",2),C("click",function(){return
n.displayDeleteAll=!0}),m(8,"translate"),c(),l(9,"p-dialog",3),C("visibleChange",function(r){return
n.displayDeleteAll=r}),m(10,"translate"),l(11,"h2"),g(12),m(13,"translate"),c(),_(14,PY,4,6,"ng-template",4),c(),k(15,"br"),l(16,"div",5),_(17,FY,5,3,"div",6),_(18,NY,5,3,"div",6),c(),l(19,"p-accordion",7),C("onClose",function(r)
{return n.onTabClose(r)})("onOpen",function(r){return
n.onTabOpen(r)}),_(20,GY,3,2,"p-accordionTab",8),c(),l(21,"div",9)(22,"p-button",10),C("onClick",function(){return
n.router.navigate(["setupwizard/recording-profiles"])}),m(23,"translate"),c(),l(24,"p-button",11),C("onClick",function(){return
n.router.navigate(["setupwizard/input-connections"])}),m(25,"translate"),c()()()),2&e&&(a(2),S(f(3,17,"settings.vsource.title")),a(2),x("label",f(5,19,"settings.vsource.new_video_source")),a(3),x("label",f(8,21,"settings.vsource.delete_all")),p("disabled",n.setupService.schedulingEnabled),a(2),q(A(31,gS)),x("header",f(10,23,"settings.vsource.delete_all")),p("visible",n.displayDeleteAll)("modal",!0)("draggable",!1)("resizable",!1),a(3),S(f(13,25,"settings.common.ru_sure")),a(5),p("ngIf",n.expectedCount&&n.successCount==n.expectedCount),a(1),p("ngIf",n.errorCount>0),a(2),p("ngForOf",n.videoSourceList.VideoSourceList.VideoSources),a(2),x("label",f(23,27,"common.back")),a(2),x("label",f(25,29,"c
ommon.next")))},directives:[Ne,ve,bn,ne,Q,qe,Ss,at,Ts,AY],pipes:[ce],styles:["@media
screen and (max-width:
48rem){.p-card-body,.p-card-content,.p-accordion-content{padding:0rem!important}}\n"],encapsulation:2}),t})();function
zY(t,i){if(1&t&&(l(0,"div",10)(1,"div",11),g(2),l(3,"b"),g(4),c()()()),2&t){const
e=d(2),n=e.$implicit,s=e.index,r=d();a(2),Ec(" ",n.CardType,"
",n.VideoDevice," (",n.DisplayName,") =>
",r.videoSourceLookup[n.SourceId].SourceName,"
"),a(2),T("\xa0",r.dirtyMessages[s],"")}}function
jY(t,i){1&t&&_(0,zY,5,5,"div",9),2&t&&p("ngIf",d(2).readyCount>1)}function
$Y(t,i){if(1&t&&k(0,"app-iconnection",12),2&t){const
e=d().index,n=d();p("card",n.m_CaptureCardsFiltered[e])("cardList",n.m_CaptureCardList)("videoSourceLookup",n.videoSourceLookup)("videoSourceList",n.videoSourceList)("parentComponent",n)}}function
WY(t,i){if(1&t){const
e=I();l(0,"p-accordionTab",6),C("selectedChange",function(s){const
o=v(e).index;return d().activeTab[o]=s}),_(1,jY,1,1,"ng-template",7),_(2,$
Y,1,5,"ng-template",8),c()}if(2&t){const
e=i.index;p("selected",d().activeTab[e])}}let _S=(()=>{class
t{constructor(e,n,s,r,o,u){this.mythService=e,this.router=n,this.captureCardService=s,this.setupService=r,this.translate=o,this.channelService=u,this.currentTab=-1,this.deletedTab=-1,this.dirtyMessages=[],this.forms=[],this.activeTab=[],this.readyCount=0,this.dirtyText="settings.common.unsaved",this.warningText="settings.common.warning",this.m_hostName="",this.m_CaptureCardsFiltered=[],this.videoSourceList={VideoSourceList:{VideoSources:[],AsOf:"",Version:"",ProtoVer:""}},this.videoSourceLookup=[],this.setupService.setCurrentForm(null),this.mythService.GetHostName().subscribe(h=>{this.m_hostName=h.String,this.loadCards(!0)}),this.loadSources(),o.get(this.dirtyText).subscribe(h=>this.dirtyText=h),o.get(this.warningText).subscribe(h=>this.warningText=h)}loadCards(e){this.m_CaptureCardList$=this.captureCardService.GetCaptureCardList("",""),this.m_CaptureCardList$.subscribe(n=>{this.m_C
aptureCardList=n,e&&this.filterCards(),this.readyCount++})}filterCards(){this.m_CaptureCardsFiltered=this.m_CaptureCardList.CaptureCardList.CaptureCards.filter(e=>0==e.ParentId&&e.HostName==this.m_hostName),this.dirtyMessages=[],this.forms=[],this.activeTab=[];for(let
e=0;e<this.m_CaptureCardsFiltered.length;e++)this.dirtyMessages.push(""),this.activeTab.push(!1)}loadSources(){this.channelService.GetVideoSourceList().subscribe(e=>{this.videoSourceList=e,this.videoSourceList.VideoSourceList.VideoSources.unshift({Id:0,SourceName:"(None)",ScanFrequency:0}),this.videoSourceLookup=[],this.videoSourceList.VideoSourceList.VideoSources.forEach(n=>{this.videoSourceLookup[n.Id]=n}),this.readyCount++})}ngOnInit(){}onTabOpen(e){this.showDirty();let
n=this.setupService.getCurrentForm();null!=n&&(this.forms[e.index]=n),this.setupService.setCurrentForm(null),this.currentTab=e.index,this.dirtyMessages[this.currentTab]=""}onTabClose(e){this.showDirty(),this.currentTab=-1}showDirty(){-1==this.current
Tab||!this.forms[this.currentTab]||(this.dirtyMessages[this.currentTab]=this.forms[this.currentTab].dirty?this.dirtyText:"")}confirm(e){return
oe(window.confirm(e))}canDeactivate(){let
e=this.setupService.getCurrentForm();return!(this.forms[this.currentTab]&&this.forms[this.currentTab].dirty||this.dirtyMessages.find(n=>n==this.dirtyText)||e&&e.dirty)||this.confirm(this.warningText)}onWindowClose(e){let
n=this.setupService.getCurrentForm();(this.forms[this.currentTab]&&this.forms[this.currentTab].dirty||this.dirtyMessages.find(s=>s==this.dirtyText)||n&&n.dirty)&&(e.preventDefault(),e.returnValue=!1)}}return
t.\u0275fac=function(e){return
new(e||t)(D(qt),D(It),D(Gt),D(Me),D(Oe),D(Or))},t.\u0275cmp=z({type:t,selectors:[["app-input-connections"]],hostBindings:function(e,n){1&e&&C("beforeunload",function(r){return
n.onWindowClose(r)},!1,ni)},decls:11,vars:10,consts:[[1,"m-5"],[1,"col-12","w-full",3,"onClose","onOpen"],[3,"selected","selectedChange",4,"ngFor","ngForOf"],[1,"flex","justify
-content-end"],["icon","pi
pi-angle-left","iconPos","left",1,"p-3",3,"label","onClick"],["icon","pi
pi-angle-right","iconPos","right",1,"p-3",3,"label","onClick"],[3,"selected","selectedChange"],["pTemplate","header"],["pTemplate","content"],["class","grid
w-full",4,"ngIf"],[1,"grid","w-full"],[1,"col-9","pr-1"],[3,"card","cardList","videoSourceLookup","videoSourceList","parentComponent"]],template:function(e,n){1&e&&(l(0,"p-card",0)(1,"h2"),g(2),m(3,"translate"),c(),l(4,"p-accordion",1),C("onClose",function(r){return
n.onTabClose(r)})("onOpen",function(r){return
n.onTabOpen(r)}),_(5,WY,3,1,"p-accordionTab",2),c(),l(6,"div",3)(7,"p-button",4),C("onClick",function(){return
n.router.navigate(["setupwizard/video-sources"])}),m(8,"translate"),c(),l(9,"p-button",5),C("onClick",function(){return
n.router.navigate(["setupwizard/channel-editor"])}),m(10,"translate"),c()()()),2&e&&(a(2),S(f(3,4,"settings.iconnections.title")),a(3),p("ngForOf",n.m_CaptureCardsFiltered),a(2),x("label",f(8,6,"
common.back")),a(2),x("label",f(10,8,"common.next")))},styles:["@media
screen and (max-width:
48rem){.p-card-body,.p-card-content,.p-accordion-content{padding:0rem!important}}\n"],encapsulation:2}),t})();const
KY=["sgroupform"],QY=function(t){return{name:t}};function
JY(t,i){if(1&t&&k(0,"span",8),2&t){const
e=d();p("translate","settings.sgroups.sgroup_title")("translateParams",U(2,QY,e.sgroup.LocalizedName))}}function
YY(t,i){}function
ZY(t,i){1&t&&(l(0,"div")(1,"b"),g(2),m(3,"translate"),c()()),2&t&&(a(2),S(f(3,1,"settings.sgroups.deleted_label")))}function
XY(t,i){if(1&t){const
e=I();l(0,"tr")(1,"td",20),g(2),c(),l(3,"td",21)(4,"button",22),C("click",function(){const
r=v(e).index;return
d(2).editDirectory(r)}),c()(),l(5,"td",21)(6,"button",23),C("click",function(){const
r=v(e).index;return
d(2).deleteDirectory(r)}),c()(),l(7,"td"),_(8,ZY,4,3,"div",24),c()()}if(2&t){const
e=i.index,n=d(2);a(2),T(" ",n.editDirs[e],"
"),a(2),p("disabled",!n.editDirs[e]),a(2),p("disabled",!n.editDirs[
e]),a(2),p("ngIf",!n.editDirs[e])}}function eZ(t,i){if(1&t){const
e=I();l(0,"p-button",25),C("onClick",function(){return
v(e),d(2).showEditDlg=!1}),m(1,"translate"),c(),l(2,"p-button",26),C("onClick",function(){v(e);const
s=d(2);return
s.editDirs[s.editDlgNum]=s.editDirName,s.showEditDlg=!1}),m(3,"translate"),c()}2&t&&(x("label",f(1,2,"common.cancel")),a(2),x("label",f(3,4,"common.ok")))}const
tZ=function(){return{width:"50vw"}},nZ=function(){return{height:"50vh"}};function
iZ(t,i){if(1&t){const
e=I();l(0,"div",9)(1,"div",10)(2,"table"),_(3,XY,9,4,"tr",11),c(),l(4,"p-dialog",12),C("visibleChange",function(s){return
v(e),d().showEditDlg=s}),m(5,"translate"),l(6,"div",13)(7,"label",14),g(8),m(9,"translate"),c(),l(10,"input",15,16),C("ngModelChange",function(s){return
v(e),d().editDirName=s})("change",function(){return
v(e),d().textChange()}),c()(),l(12,"p-listbox",17,18),C("ngModelChange",function(s){return
v(e),d().selectedDir=s})("onClick",function(){return v(e),d().selectDir()}),c(
),_(14,eZ,4,6,"ng-template",7),c(),k(15,"br"),l(16,"p-button",19),C("onClick",function(){return
v(e),d().addDirectory()}),m(17,"translate"),c()()()}if(2&t){const
e=d();a(3),p("ngForOf",e.editDirs),a(1),q(A(20,tZ)),x("header",f(5,14,"settings.sgroups.seldir_title")),p("visible",e.showEditDlg)("modal",!0)("draggable",!1)("resizable",!1),a(4),S(f(9,16,"settings.sgroups.dirname_label")),a(2),p("ngModel",e.editDirName),a(2),p("options",e.dirSelect)("ngModel",e.selectedDir)("listStyle",A(21,nZ)),a(4),x("label",f(17,18,"settings.sgroups.adddir_button"))}}function
sZ(t,i){1&t&&(k(0,"p-message",32),m(1,"translate")),2&t&&x("text",f(1,1,"common.savesuccess"))}function
rZ(t,i){1&t&&(k(0,"p-message",33),m(1,"translate")),2&t&&x("text",f(1,1,"common.networkfail"))}function
oZ(t,i){if(1&t){const
e=I();l(0,"div",27)(1,"div",28),_(2,sZ,2,3,"p-message",29),_(3,rZ,2,3,"p-message",30),c(),l(4,"p-button",31),C("onClick",function(){v(e);const
s=d(),r=F(1);return s.saveForm(),r.form.markAsPristine()}),m(
5,"translate"),c()()}if(2&t){const
e=d(),n=F(1);a(2),p("ngIf",e.successCount>0&&0==e.errorCount&&!n.dirty),a(1),p("ngIf",e.errorCount>0),a(1),x("label",f(5,4,"common.save")),p("disabled",!n.dirty||e.setupService.schedulingEnabled)}}let
aZ=(()=>{class
t{constructor(e,n,s){this.mythService=e,this.setupService=n,this.translate=s,this.successCount=0,this.errorCount=0,this.expectCount=0,this.showEditDlg=!1,this.editDlgNum=-1,this.editDirName="",this.editDirs=[],this.dirSelect=[],this.selectedDir="",this.upString="UP
1
LEVEL",this.saveObserver={next:r=>{r.bool?(this.successCount++,this.successCount==this.expectCount&&(this.sgroup.DirNames=this.editDirs.filter(o=>o.length>1))):(this.errorCount++,this.currentForm.form.markAsDirty())},error:r=>{console.error(r),this.errorCount++,this.currentForm.form.markAsDirty()}},s.get("settings.sgroups.updir").subscribe(r=>this.upString="//
** "+r+"
**")}ngOnInit(){this.editDirs=this.sgroup.DirNames.slice()}ngAfterViewInit(){this.setupService.setCurrentF
orm(this.currentForm)}selectDir(){for(;"/"==this.editDirName.charAt(this.editDirName.length-1);)this.editDirName=this.editDirName.substring(0,this.editDirName.length-1);if(this.selectedDir.startsWith("//")){let
e=this.editDirName.lastIndexOf("/");this.editDirName=this.editDirName.substring(0,e),0==this.editDirName.length&&(this.editDirName="/")}else
this.editDirName=this.editDirName+"/"+this.selectedDir;this.fillDirList()}textChange(){this.fillDirList()}fillDirList(){0!=this.editDirName.indexOf("/")&&(this.editDirName="/"+this.editDirName),this.mythService.GetDirListing(this.editDirName).subscribe(e=>{"/"!=this.editDirName&&e.DirListing.unshift(this.upString),this.dirSelect=e.DirListing})}addDirectory(){this.editDirs.push("/"),this.editDirectory(this.editDirs.length-1)}editDirectory(e){this.editDirName=this.editDirs[e],this.editDlgNum=e,this.showEditDlg=!0,this.fillDirList()}deleteDirectory(e){this.editDirs[e]="",this.currentForm.form.markAsDirty()}saveForm(){this.successCount=0,thi
s.errorCount=0,this.expectCount=0;for(let
e=0;e<this.editDirs.length;e++){"/"==this.editDirs[e]&&(this.editDirs[e]="");for(let
n=e+1;n<this.editDirs.length;n++)this.editDirs[e]==this.editDirs[n]&&(this.editDirs[n]="")}this.editDirs.forEach(e=>{""!=e&&-1==this.sgroup.DirNames.indexOf(e)&&(this.mythService.AddStorageGroupDir({GroupName:this.sgroup.GroupName,DirName:e,HostName:this.hostName}).subscribe(this.saveObserver),this.expectCount++)}),this.sgroup.DirNames.forEach(e=>{-1==this.editDirs.indexOf(e)&&(this.mythService.RemoveStorageGroupDir({GroupName:this.sgroup.GroupName,DirName:e,HostName:this.hostName}).subscribe(this.saveObserver),this.expectCount++)})}}return
t.\u0275fac=function(e){return
new(e||t)(D(qt),D(Me),D(Oe))},t.\u0275cmp=z({type:t,selectors:[["app-sgroup"]],viewQuery:function(e,n){if(1&e&&W(KY,5),2&e){let
s;V(s=B())&&(n.currentForm=s.first)}},inputs:{sgroup:"sgroup",hostName:"hostName"},decls:9,vars:0,consts:[["name","sgroupform",1,"ml-3","mr-3"],["sgroupform","ngFor
m"],["top",""],[1,"m-5"],["pTemplate","title"],["pTemplate","subtitle"],["pTemplate","content"],["pTemplate","footer"],[3,"translate","translateParams"],[1,"grid"],[1,"mb-4","w-full"],[4,"ngFor","ngForOf"],[3,"header","visible","modal","draggable","resizable","visibleChange"],[1,"form-group","field"],["for","DirName",1,"label","block"],["pInputText","","id","DirName","name","DirName",1,"mb-2","form-control","w-full",2,"font-family","monospace",3,"ngModel","ngModelChange","change"],["DirName","ngModel"],["name","ListDirs",3,"options","ngModel","listStyle","ngModelChange","onClick"],["ListDirs","ngModel"],["icon","pi
pi-plus-circle","styleClass","p-button-plain",3,"label","onClick"],[1,"align-items-center","bg-blue-100","text-gray-900",2,"font-family","monospace"],[1,"align-items-center"],["pButton","","pRipple","","type","button","icon","pi
pi-pencil","pTooltip","Edit",1,"p-button-rounded","p-button-text",3,"disabled","click"],["pButton","","pRipple","","type","button","icon","pi
pi-
trash","pTooltip","Delete",1,"p-button-rounded","p-button-text",3,"disabled","click"],[4,"ngIf"],["icon","pi
pi-times-circle","styleClass","p-button-plain",3,"label","onClick"],["icon","pi
pi-check-circle","styleClass","p-button-plain",3,"label","onClick"],[1,"grid","nogutter"],[1,"col-12"],["severity","success",3,"text",4,"ngIf"],["severity","error",3,"text",4,"ngIf"],["icon","pi
pi-save","iconPos","left",1,"col","pr-1",3,"label","disabled","onClick"],["severity","success",3,"text"],["severity","error",3,"text"]],template:function(e,n){1&e&&(l(0,"form",0,1),k(2,"span",null,2),l(4,"p-card",3),_(5,JY,1,4,"ng-template",4),_(6,YY,0,0,"ng-template",5),_(7,iZ,18,22,"ng-template",6),_(8,oZ,6,6,"ng-template",7),c()())},directives:[ze,Ue,He,Ne,ne,mu,at,On,bt,Kt,Q,bn,Ye,Te,_e,os,ve,qe],pipes:[ce],styles:[""]}),t})();function
lZ(t,i){if(1&t){const
e=I();l(0,"p-button",14),C("onClick",function(){return
v(e),d().displayNewDlg=!1}),m(1,"translate"),c(),l(2,"p-button",15),C("onClick",function(){r
eturn v(e),d().newGroup()}),m(3,"translate"),c()}if(2&t){const
e=d();x("label",f(1,3,"common.cancel")),a(2),x("label",f(3,5,"common.ok")),p("disabled",""==e.newGroupName)}}const
cZ=function(t){return{name:t}};function
uZ(t,i){if(1&t&&k(0,"span",23),2&t){const
e=d(2).index,n=d();p("translate","settings.sgroups.tab_create_title")("translateParams",U(2,cZ,n.storageGroups[e].LocalizedName))}}function
dZ(t,i){if(1&t&&g(0),2&t){const e=d(2).index;T("
",d().storageGroups[e].LocalizedName," ")}}function
pZ(t,i){if(1&t&&(l(0,"div",19)(1,"div",20),_(2,uZ,1,4,"span",21),_(3,dZ,1,1,"ng-template",null,22,we),l(5,"b"),g(6),c()()()),2&t){const
e=F(4),n=d().index,s=d();a(2),p("ngIf",0==s.storageGroups[n].DirNames.length)("ngIfElse",e),a(4),T("\xa0",s.dirtyMessages[n],"")}}function
hZ(t,i){if(1&t&&k(0,"app-sgroup",24),2&t){const
e=d().index,n=d();p("sgroup",n.storageGroups[e])("hostName",n.hostName)}}function
mZ(t,i){if(1&t){const
e=I();l(0,"p-accordionTab",16),C("selectedChange",function(s){const o
=v(e).index;return
d().activeTab[o]=s}),_(1,pZ,7,3,"ng-template",17),_(2,hZ,1,2,"ng-template",18),c()}if(2&t){const
e=i.index;p("selected",d().activeTab[e])}}const
fZ=function(){return{width:"50vw"}};let gZ=(()=>{class
t{constructor(e,n,s,r){this.setupService=e,this.translate=n,this.mythService=s,this.router=r,this.forms=[],this.dirtyMessages=[],this.currentTab=-1,this.activeTab=[],this.dirtyText="settings.common.unsaved",this.warningText="settings.common.warning",this.deletedText="settings.common.deleted",this.newText="settings.common.new",this.hostName="",this.storageGroupDirs=[],this.storageGroups=[{GroupName:"Default",LocalizedName:"",DirNames:[]},{GroupName:"LiveTV",LocalizedName:"",DirNames:[]},{GroupName:"DB
Backups",LocalizedName:"",DirNames:[]},{GroupName:"Videos",LocalizedName:"",DirNames:[]},{GroupName:"Trailers",LocalizedName:"",DirNames:[]},{GroupName:"Coverart",LocalizedName:"",DirNames:[]},{GroupName:"Fanart",LocalizedName:"",DirNames:[]},{GroupName:"Screenshots",Loca
lizedName:"",DirNames:[]},{GroupName:"Banners",LocalizedName:"",DirNames:[]},{GroupName:"Photographs",LocalizedName:"",DirNames:[]},{GroupName:"Music",LocalizedName:"",DirNames:[]},{GroupName:"MusicArt",LocalizedName:"",DirNames:[]}],this.displayNewDlg=!1,this.newGroupName="",this.setupService.setCurrentForm(null),this.mythService.GetHostName().subscribe(o=>{this.hostName=o.String,this.loadGroups()}),n.get(this.dirtyText).subscribe(o=>this.dirtyText=o),n.get(this.warningText).subscribe(o=>this.warningText=o),n.get(this.deletedText).subscribe(o=>this.deletedText=o),n.get(this.newText).subscribe(o=>this.newText=o),this.storageGroups.forEach(o=>n.get("settings.sgroups.special."+o.GroupName).subscribe(u=>o.LocalizedName=u))}loadGroups(){this.mythService.GetStorageGroupDirs({HostName:this.hostName}).subscribe(e=>{this.storageGroupDirs=e.StorageGroupDirList.StorageGroupDirs,this.storageGroupDirs.forEach(n=>{let
s=this.storageGroups.find(r=>r.GroupName==n.GroupName);s?s.DirNames.push(n.Dir
Name):this.storageGroups.push({GroupName:n.GroupName,LocalizedName:n.GroupName,DirNames:[n.DirName]})})})}ngOnInit(){}onTabOpen(e){this.showDirty();let
n=this.setupService.getCurrentForm();null!=n&&(this.forms[e.index]=n),this.setupService.setCurrentForm(null),this.currentTab=e.index,this.dirtyMessages[this.currentTab]=""}onTabClose(e){this.showDirty(),this.currentTab=-1}showDirty(){-1==this.currentTab||!this.forms[this.currentTab]||(this.dirtyMessages[this.currentTab]=this.forms[this.currentTab].dirty?this.dirtyText:"")}newGroup(){this.displayNewDlg=!1,!this.storageGroups.find(n=>n.GroupName==this.newGroupName)&&(this.storageGroups.push({GroupName:this.newGroupName,LocalizedName:this.newGroupName,DirNames:[]}),this.newGroupName="")}confirm(e){return
oe(window.confirm(e))}canDeactivate(){let
e=this.setupService.getCurrentForm();return!(this.forms[this.currentTab]&&this.forms[this.currentTab].dirty||this.dirtyMessages.find(n=>n==this.dirtyText)||e&&e.dirty)||this.confirm(this.warning
Text)}onWindowClose(e){let
n=this.setupService.getCurrentForm();(this.forms[this.currentTab]&&this.forms[this.currentTab].dirty||this.dirtyMessages.find(s=>s==this.dirtyText)||n&&n.dirty)&&(e.preventDefault(),e.returnValue=!1)}}return
t.\u0275fac=function(e){return
new(e||t)(D(Me),D(Oe),D(qt),D(It))},t.\u0275cmp=z({type:t,selectors:[["app-storage-groups"]],hostBindings:function(e,n){1&e&&C("beforeunload",function(r){return
n.onWindowClose(r)},!1,ni)},decls:25,vars:24,consts:[[1,"m-5"],["label","New
Storage Group","icon","pi
pi-plus-circle","styleClass","p-button-plain",3,"onClick"],["header","New
Storage
Group",3,"visible","modal","draggable","resizable","visibleChange"],[1,"form-group","field"],["for","GroupName",1,"block"],["pInputText","","id","GroupName","name","GroupName",1,"mb-2","form-control","w-full",3,"ngModel","ngModelChange"],["GroupName","ngModel"],[1,"block"],["pTemplate","footer"],[1,"col-12","w-full",3,"onClose","onOpen"],[3,"selected","selectedChange",4,"ngFor","ngF
orOf"],[1,"flex","justify-content-end"],["icon","pi
pi-angle-left","iconPos","left",1,"p-3",3,"label","onClick"],["icon","pi
pi-angle-right","iconPos","right",1,"p-3",3,"label","onClick"],["icon","pi
pi-times-circle","styleClass","p-button-plain",3,"label","onClick"],["icon","pi
pi-check-circle","styleClass","p-button-plain",3,"label","disabled","onClick"],[3,"selected","selectedChange"],["pTemplate","header"],["pTemplate","content"],[1,"grid","w-full"],[1,"col-9","pr-1"],[3,"translate","translateParams",4,"ngIf","ngIfElse"],["onlyName",""],[3,"translate","translateParams"],[3,"sgroup","hostName"]],template:function(e,n){1&e&&(l(0,"p-card",0)(1,"h2"),g(2),m(3,"translate"),c(),l(4,"p-button",1),C("onClick",function(){return
n.displayNewDlg=!0}),c(),l(5,"p-dialog",2),C("visibleChange",function(r){return
n.displayNewDlg=r}),l(6,"p"),g(7),m(8,"translate"),c(),l(9,"div",3)(10,"label",4),g(11),m(12,"translate"),c(),l(13,"input",5,6),C("ngModelChange",function(r){return
n.newGroupName=r}),
c(),k(15,"small",7),c(),_(16,lZ,4,7,"ng-template",8),c(),k(17,"br"),l(18,"p-accordion",9),C("onClose",function(r){return
n.onTabClose(r)})("onOpen",function(r){return
n.onTabOpen(r)}),_(19,mZ,3,1,"p-accordionTab",10),c(),l(20,"div",11)(21,"p-button",12),C("onClick",function(){return
n.router.navigate(["setupwizard/channel-editor"])}),m(22,"translate"),c(),l(23,"p-button",13),C("onClick",function(){return
n.router.navigate(["setupwizard/system-events"])}),m(24,"translate"),c()()()),2&e&&(a(2),S(f(3,13,"settings.sgroups.title")),a(3),q(A(23,fZ)),p("visible",n.displayNewDlg)("modal",!0)("draggable",!1)("resizable",!1),a(2),S(f(8,15,"settings.sgroups.name_prompt")),a(4),S(f(12,17,"settings.sgroups.name_label")),a(2),p("ngModel",n.newGroupName),a(6),p("ngForOf",n.storageGroups),a(2),x("label",f(22,19,"common.back")),a(2),x("label",f(24,21,"common.next")))},directives:[Ne,ve,bn,Ye,Te,_e,ne,Ss,at,Ts,Q,mu,aZ],pipes:[ce],styles:["@media
screen and (max-width: 48rem){.p-card-body,.p-card-cont
ent,.p-accordion-content{padding:0rem!important}}\n"],encapsulation:2}),t})();const
_Z=["eventsform"];function bZ(t,i){if(1&t){const
e=I();l(0,"div",9)(1,"div",10)(2,"label",11),g(3),c(),l(4,"input",12),C("ngModelChange",function(s){return
v(e).$implicit.Value=s}),c()()()}if(2&t){const
e=i.$implicit;a(2),x("for",e.Key),a(1),S(e.LocalizedName),a(1),x("id",e.Key),x("name",e.Key),p("ngModel",e.Value)}}function
vZ(t,i){if(1&t&&(l(0,"div",7),_(1,bZ,5,5,"div",8),c()),2&t){const
e=d();a(1),p("ngForOf",e.events)}}function
CZ(t,i){1&t&&(k(0,"p-message",18),m(1,"translate")),2&t&&x("text",f(1,1,"common.savesuccess"))}function
yZ(t,i){1&t&&(k(0,"p-message",19),m(1,"translate")),2&t&&x("text",f(1,1,"common.networkfail"))}function
wZ(t,i){if(1&t){const
e=I();l(0,"div",13)(1,"div",14),_(2,CZ,2,3,"p-message",15),_(3,yZ,2,3,"p-message",16),c(),l(4,"p-button",17),C("onClick",function(){v(e);const
s=d(),r=F(1);return
s.saveForm(),r.form.markAsPristine()}),m(5,"translate"),c()()}if(2&t){const
e=d(),n=
F(1);a(2),p("ngIf",e.successCount>0&&e.successCount==e.expectedCount&&0==e.errorCount&&!n.dirty),a(1),p("ngIf",e.errorCount>0),a(1),x("label",f(5,4,"common.save")),p("disabled",!n.dirty||e.setupService.schedulingEnabled)}}let
TZ=(()=>{class
t{constructor(e,n,s,r,o){this.configService=e,this.translate=n,this.setupService=s,this.mythService=r,this.router=o,this.hostName="",this.events=[],this.successCount=0,this.errorCount=0,this.expectedCount=0,this.warningText="settings.common.warning",this.kClearSettingValue="<clear_setting_value>",this.jqbObserver={next:u=>{u.bool?this.successCount++:(this.errorCount++,this.currentForm&&this.currentForm.form.markAsDirty())},error:u=>{console.error(u),this.errorCount++,this.currentForm&&this.currentForm.form.markAsDirty()}},this.mythService.GetHostName().subscribe({next:u=>{this.hostName=u.String,this.configService.GetSystemEvents().subscribe(h=>{this.eventList=h,this.events=h.SystemEventList.SystemEvents})},error:()=>this.errorCount++}),this.trans
late.get(this.warningText).subscribe(u=>{this.warningText=u})}ngOnInit(){}saveForm(){this.successCount=0,this.errorCount=0,this.expectedCount=0,this.events.forEach(e=>{let
n=e.Value.trim();n?this.mythService.PutSetting({HostName:this.hostName,Key:e.Key,Value:n}).subscribe(this.jqbObserver):this.mythService.DeleteSetting({HostName:this.hostName,Key:e.Key}).subscribe(this.jqbObserver),this.expectedCount++})}confirm(e){return
oe(window.confirm(e))}canDeactivate(){return!this.currentForm||!this.currentForm.dirty||this.confirm(this.warningText)}onWindowClose(e){this.currentForm&&this.currentForm.dirty&&(e.preventDefault(),e.returnValue=!1)}}return
t.\u0275fac=function(e){return
new(e||t)(D(zo),D(Oe),D(Me),D(qt),D(It))},t.\u0275cmp=z({type:t,selectors:[["app-system-events"]],viewQuery:function(e,n){if(1&e&&W(_Z,5),2&e){let
s;V(s=B())&&(n.currentForm=s.first)}},hostBindings:function(e,n){1&e&&C("beforeunload",function(r){return
n.onWindowClose(r)},!1,ni)},decls:11,vars:6,consts:[["name","e
ventsform",1,"ml-3","mr-3"],["eventsform","ngForm"],[1,"m-5"],["pTemplate","content"],["pTemplate","footer"],[1,"flex","justify-content-end"],["icon","pi
pi-angle-left","iconPos","left",1,"p-3",3,"label","onClick"],[1,"grid"],["class","mb-4
w-full",4,"ngFor","ngForOf"],[1,"mb-4","w-full"],[1,"form-group","field"],[1,"label","block",3,"for"],["pInputText","",1,"mb-2","form-control","w-full",3,"id","ngModel","name","ngModelChange"],[1,"grid","nogutter"],[1,"col-12"],["severity","success",3,"text",4,"ngIf"],["severity","error",3,"text",4,"ngIf"],["icon","pi
pi-save","iconPos","left",1,"col","pr-1",3,"label","disabled","onClick"],["severity","success",3,"text"],["severity","error",3,"text"]],template:function(e,n){1&e&&(l(0,"form",0,1)(2,"h2"),g(3),m(4,"translate"),c(),l(5,"p-card",2),_(6,vZ,2,1,"ng-template",3),_(7,wZ,6,6,"ng-template",4),c(),l(8,"div",5)(9,"p-button",6),C("onClick",function(){return
n.router.navigate(["setupwizard/storage-groups"])}),m(10,"translate"),c()()()),2&e&&(a
(3),S(f(4,2,"settings.sysevents.title")),a(6),x("label",f(10,4,"common.back")))},directives:[ze,Ue,He,Ne,ne,at,Ye,Te,_e,Q,qe,ve],pipes:[ce],styles:["@media
screen and (max-width:
48rem){.p-card-body,.p-card-content,.p-accordion-content{padding:0rem!important}}\n"],encapsulation:2}),t})();const
SZ=["chanform"];function xZ(t,i){if(1&t){const
e=I();l(0,"button",57),C("click",function(){return
v(e),d(2).openNew()}),m(1,"translate"),c()}if(2&t){const
e=d(2);x("label",f(1,2,"settings.chanedit.new_channel")),p("disabled","S"==e.setupService.pageType&&e.setupService.schedulingEnabled)}}function
DZ(t,i){1&t&&g(0),2&t&&T(" ",i.$implicit,"
")}function MZ(t,i){if(1&t){const
e=I();l(0,"p-dropdown",72),C("onChange",function(s){return
v(e).filterCallback(s.value)}),m(1,"translate"),_(2,DZ,1,1,"ng-template",73),c()}if(2&t){const
e=i.$implicit,n=d(3);x("placeholder",f(1,4,"settings.chanedit.all")),p("ngModel",e)("options",n.sourceNames)("showClear",!0)}}function
kZ(t,i){if(1&t){const e=I();l(0,"p-bu
tton",74),C("onClick",function(){return
v(e),d(3).deleteSourceRequest()}),m(1,"translate"),m(2,"translate"),c()}if(2&t){const
e=d(3);x("pTooltip",f(1,3,"settings.chanedit.delete_source")),x("label",f(2,5,"common.delete")),p("disabled",e.setupService.schedulingEnabled)}}function
IZ(t,i){1&t&&(g(0),m(1,"translate")),2&t&&T("
",f(1,1,"settings.chanedit.delete_message")," ")}function
EZ(t,i){1&t&&k(0,"button",75)}function
RZ(t,i){if(1&t&&(l(0,"tr")(1,"th"),g(2),m(3,"translate"),l(4,"p-columnFilter",58),_(5,MZ,3,6,"ng-template",59),c(),_(6,kZ,3,7,"p-button",60),_(7,IZ,2,3,"ng-template",null,61,we),c()(),l(9,"tr")(10,"th",62),g(11,"\xa0"),c(),l(12,"th",63),g(13),m(14,"translate"),k(15,"p-sortIcon",64),c(),l(16,"th",65),g(17),m(18,"translate"),c(),l(19,"th",66),g(20),m(21,"translate"),c(),l(22,"th",67),g(23),m(24,"translate"),c(),l(25,"th",68),g(26),m(27,"translate"),k(28,"p-sortIcon",69),c(),l(29,"th",65),g(30),m(31,"translate"),c(),l(32,"th",66),g(33),m(34,"translate"),c(),l(35,"th",65),
g(36),m(37,"translate"),c(),l(38,"th",65),k(39,"button",70),_(40,EZ,1,0,"button",71),c()()),2&t){const
e=F(8),n=d(2);a(2),T("",f(3,13,"settings.chanedit.col_source"),":
\xa0
"),a(2),p("showMenu",!1),a(2),p("ngIf","S"==n.setupService.pageType)("ngIfElse",e),a(7),T("
",f(14,15,"settings.chanedit.col_channum"),"
"),a(4),S(f(18,17,"settings.chanedit.col_freqid")),a(3),S(f(21,19,"settings.chanedit.col_callsign")),a(3),S(f(24,21,"settings.chanedit.col_name")),a(3),T("
",f(27,23,"settings.chanedit.col_source"),"
"),a(4),S(f(31,25,"settings.chanedit.col_priority")),a(3),S(f(34,27,"settings.chanedit.col_visibility")),a(3),S(f(37,29,"settings.chanedit.col_useeit")),a(4),p("ngIf","S"==n.setupService.pageType)}}function
LZ(t,i){1&t&&k(0,"img",83),2&t&&x("src",d().$implicit.IconURL,ln)}function
OZ(t,i){1&t&&k(0,"img",84)}function AZ(t,i){if(1&t){const
e=I();l(0,"button",85),C("click",function(){v(e);const
s=d().$implicit;return
d(2).deleteRequest(s)}),m(1,"translate"),c()}if(2&t){const e=d().$im
plicit,n=d(2);x("pTooltip",f(1,2,"settings.chanedit.deletechan")),p("disabled",e.ChanId<0||n.setupService.schedulingEnabled)}}const
PZ=function(t){return{"line-through":t}};function FZ(t,i){if(1&t){const
e=I();l(0,"tr",76)(1,"td",62),_(2,LZ,1,1,"img",77),_(3,OZ,1,0,"ng-template",null,78,we),c(),l(5,"td",79),g(6),c(),l(7,"td",65),g(8),c(),l(9,"td",66),g(10),c(),l(11,"td",67),g(12),c(),l(13,"td",80),g(14),c(),l(15,"td",65),g(16),c(),l(17,"td",66),g(18),c(),l(19,"td",65),g(20),c(),l(21,"td",65)(22,"button",81),C("click",function(){const
r=v(e).$implicit;return
d(2).editChannel(r)}),m(23,"translate"),c(),_(24,AZ,2,4,"button",82),c()()}if(2&t){const
e=i.$implicit,n=F(4),s=d(2);p("ngClass",U(16,PZ,e.ChanId<0)),a(2),p("ngIf",e.IconURL)("ngIfElse",n),a(4),S(e.ChanNum),a(2),S(e.FrequencyId),a(2),S(e.CallSign),a(2),S(e.ChannelName),a(2),S(e.Source),a(2),S(e.RecPriority),a(2),S(s.getVisibility(e)),a(2),S(e.UseEIT?"Y":"N"),a(2),x("pTooltip",f(23,14,"settings.chanedit.editchan")),p("disabled",e.
ChanId<0||"S"==s.setupService.pageType&&s.setupService.schedulingEnabled),a(2),p("ngIf","S"==s.setupService.pageType)}}function
NZ(t,i){if(1&t){const
e=I();l(0,"div",52)(1,"p-table",53),C("onFilter",function(s){return
v(e),d().onFilter(s)}),_(2,xZ,2,4,"ng-template",54),_(3,RZ,41,31,"ng-template",55),_(4,FZ,25,18,"ng-template",56),c()()}if(2&t){const
e=d();a(1),p("value",e.allChannels)("scrollable",!0)("rowHover",!0)}}function
VZ(t,i){1&t&&k(0,"p-progressSpinner")}function
BZ(t,i){1&t&&(k(0,"p-message",91),m(1,"translate")),2&t&&x("text",f(1,1,"common.savesuccess"))}function
HZ(t,i){1&t&&(k(0,"p-message",92),m(1,"translate")),2&t&&x("text",f(1,1,"common.networkfail"))}function
qZ(t,i){if(1&t){const
e=I();l(0,"div",86),_(1,BZ,2,3,"p-message",87),_(2,HZ,2,3,"p-message",88),c(),l(3,"p-button",89),C("onClick",function(){return
v(e),d().closeDialog()}),m(4,"translate"),c(),l(5,"p-button",90),C("onClick",function(){return
v(e),d().saveChannel()}),m(6,"translate"),c()}if(2&t){const e=d(),n=
F(7);a(1),p("ngIf",e.successCount>0&&0==e.errorCount&&!n.dirty),a(1),p("ngIf",e.errorCount>0),a(1),x("label",f(4,5,"common.close")),a(2),x("label",f(6,7,"common.save")),p("disabled",!n.dirty||""==e.channel.ChannelName.trim()||""==e.channel.ChanNum.trim()||""==e.channel.CallSign.trim())}}function
GZ(t,i){if(1&t){const
e=I();l(0,"p-button",93),C("onClick",function(){return
v(e),d().closeDialog()}),m(1,"translate"),c(),l(2,"p-button",94),C("onClick",function(){return
v(e),d().displayUnsaved=!1}),m(3,"translate"),c()}2&t&&(x("label",f(1,2,"common.nosave")),a(2),x("label",f(3,4,"common.continue")))}function
UZ(t,i){1&t&&(k(0,"p-message",92),m(1,"translate")),2&t&&x("text",f(1,1,"common.networkfail"))}function
zZ(t,i){if(1&t){const
e=I();l(0,"div",86),_(1,UZ,2,3,"p-message",88),c(),l(2,"p-button",89),C("onClick",function(){v(e);const
s=d(),r=F(7);return
s.displayDelete=!1,r.form.markAsPristine()}),m(3,"translate"),c(),l(4,"p-button",95),C("onClick",function(){v(e);const
s=d();return s.del
eteChannel(s.channel)}),m(5,"translate"),c()}if(2&t){const
e=d();a(1),p("ngIf",e.errorCount>0),a(1),x("label",f(3,3,"common.close")),a(2),x("label",f(5,5,"common.delete"))}}const
jZ=function(t){return{Source:t}};function
$Z(t,i){if(1&t&&(l(0,"p")(1,"b"),g(2),m(3,"translate"),c()()),2&t){const
e=d();a(2),S(Dt(3,1,"settings.chanedit.delete_source_details",U(4,jZ,e.filterEvent.filters.Source.value)))}}function
WZ(t,i){1&t&&(l(0,"p")(1,"b"),g(2),m(3,"translate"),c()()),2&t&&(a(2),S(f(3,1,"settings.chanedit.delete_all_details")))}function
KZ(t,i){if(1&t&&(l(0,"div")(1,"p"),g(2),m(3,"translate"),c()()),2&t){const
e=d();a(2),yo(" ",f(3,3,"common.delete"),"
",e.channel.ChanNum," ",e.channel.ChannelName,"")}}function
QZ(t,i){1&t&&(k(0,"p-message",92),m(1,"translate")),2&t&&x("text",f(1,1,"common.networkfail"))}function
JZ(t,i){if(1&t){const
e=I();l(0,"div",86),_(1,QZ,2,3,"p-message",88),c(),l(2,"p-button",89),C("onClick",function(){v(e);const
s=d(),r=F(7);return s.displayDeleteSource=!1,s.ch
annelOperation=-1,r.form.markAsPristine()}),m(3,"translate"),c(),l(4,"p-button",96),C("onClick",function(){return
v(e),d().deleteSource()}),m(5,"translate"),c()}if(2&t){const
e=d();a(1),p("ngIf",e.errorCount>0),a(1),x("label",f(3,4,"common.cancel")),a(2),x("label",f(5,6,"common.delete")),p("disabled",e.working)}}const
YZ=function(){return{height:"75vw",width:"50vw"}},Ol=function(){return{minWidth:"400px"}},ZZ=function(t,i,e){return{ChanNum:t,ChannelName:i,Source:e}};let
bS=(()=>{class
t{constructor(e,n,s,r){this.channelService=e,this.translate=n,this.setupService=s,this.router=r,this.allChannels=[],this.videoSources=[],this.commMethods=[],this.sourceNames=[],this.multiplexes=[],this.tvFormats=[{value:"Default",prompt:"common.default"},{value:"NTSC",prompt:"NTSC"},{value:"NTSC-JP",prompt:"NTSC-JP"},{value:"PAL",prompt:"PAL"},{value:"PAL-60",prompt:"PAL-60"},{value:"PAL-BG",prompt:"PAL-BG"},{value:"PAL-DK",prompt:"PAL-DK"},{value:"PAL-D",prompt:"PAL-D"},{value:"PAL-I",prompt:"PAL-I"},
{value:"PAL-M",prompt:"PAL-M"},{value:"PAL-N",prompt:"PAL-N"},{value:"PAL-NC",prompt:"PAL-NC"},{value:"SECAM",prompt:"SECAM"},{value:"SECAM-D",prompt:"SECAM-D"},{value:"SECAM-DK",prompt:"SECAM-DK"}],this.visibilities=[{value:"Always
Visible",prompt:"settings.chanedit.always-visible"},{value:"Visible",prompt:"settings.chanedit.visible"},{value:"Not
Visible",prompt:"settings.chanedit.not-visible"},{value:"Never
Visible",prompt:"settings.chanedit.never-visible"}],this.headingNew="settings.chanedit.new_channel",this.headingEdit="settings.chanedit.title",this.warningText="settings.common.warning",this.deleteText="settings.common.ru_sure",this.unassignedText="settings.chanedit.unassigned",this.transDone=0,this.visDone=0,this.numTranslations=10,this.successCount=0,this.errorCount=0,this.selectedAdvanced=!1,this.displayChannelDlg=!1,this.dialogHeader="",this.displayUnsaved=!1,this.displayDelete=!1,this.displayDeleteSource=!1,this.working=!1,this.chansLoaded=!1,this.filterEvent={filters:{Sou
rce:{matchMode:"",value:""}}},this.channel=this.resetChannel(),this.channelOperation=0,this.saveObserver={next:o=>{if(o.bool)switch(console.log("saveObserver
success",o),this.successCount++,this.currentForm.form.markAsPristine(),this.channelOperation){case
0:this.editingChannel&&(Object.assign(this.editingChannel,this.channel),this.editingChannel.Source=this.getSource(this.editingChannel));break;case
1:this.allChannels.push(this.channel);break;case-1:this.channel.ChanId=-99,this.displayDelete=!1,this.displayDeleteSource=!1,this.currentForm.form.markAsPristine();break;case-2:this.channel.ChanId=-99,this.deleteSource()}else
console.log("saveObserver
error",o),this.errorCount++,this.working=!1},error:o=>{console.log("saveObserver
error",o),this.errorCount++,this.working=!1}},this.translate.get(this.unassignedText).subscribe(o=>{this.unassignedText=o,this.transDone++,this.loadLists()}),this.loadTranslations()}ngOnInit(){this.markPristine()}resetChannel(){return{ATSCMajorChan:0,ATSCMinor
Chan:0,CallSign:"",ChanFilters:"",ChanId:0,ChanNum:"",ChannelGroups:"",ChannelName:"",CommFree:!1,CommMethod:-1,DefaultAuth:"",ExtendedVisible:"Visible",FineTune:0,Format:"Default",FrequencyId:"",IconURL:"",InputId:0,Inputs:"",MplexId:0,Programs:[],RecPriority:0,ServiceId:0,ServiceType:0,SourceId:0,TimeOffset:0,UseEIT:!1,Visible:!0,XMLTVID:"",ChanSeq:0}}loadLists(){this.channelService.GetChannelInfoList({Details:!0}).subscribe(e=>{this.allChannels=e.ChannelInfoList.ChannelInfos,this.chansLoaded=!0,this.channelService.GetVideoSourceList().subscribe(n=>{this.videoSources=n.VideoSourceList.VideoSources,this.videoSources.unshift({Id:0,SourceName:this.unassignedText}),this.videoSources.forEach(s=>this.sourceNames.push(s.SourceName)),this.allChannels.forEach((s,r)=>{s.ChanSeq=r,s.Source=this.getSource(s)})})}),this.channelService.GetCommMethodList().subscribe(e=>this.commMethods=e.CommMethodList.CommMethods)}loadMultiplexes(e){this.channelService.GetVideoMultiplexList({SourceID:e}).subscr
ibe(n=>{this.multiplexes=n.VideoMultiplexList.VideoMultiplexes})}loadTranslations(){this.visibilities.forEach(e=>{this.translate.get(e.prompt).subscribe(n=>{e.prompt=n,this.transDone++,this.visDone++,this.visDone>=this.visibilities.length&&(this.visibilities=[...this.visibilities])})}),this.translate.get(this.headingNew).subscribe(e=>{this.headingNew=e,this.transDone++}),this.translate.get(this.headingEdit).subscribe(e=>{this.headingEdit=e,this.transDone++}),this.translate.get(this.warningText).subscribe(e=>{this.warningText=e,this.transDone++}),this.translate.get(this.deleteText).subscribe(e=>{this.deleteText=e,this.transDone++}),this.translate.get(this.tvFormats[0].prompt).subscribe(e=>{this.tvFormats[0].prompt=e,this.tvFormats=[...this.tvFormats],this.transDone++})}getSource(e){const
n=this.videoSources.find(s=>e.SourceId==s.Id);return
null!=n?n.SourceName:this.unassignedText}getVisibility(e){const
n=this.visibilities.find(s=>e.ExtendedVisible==s.value);return
null!=n?n.prompt:""
}openNew(){this.successCount=0,this.errorCount=0,this.dialogHeader=this.headingNew,this.channel=this.resetChannel(),this.displayChannelDlg=!0,this.markPristine()}editChannel(e){this.editingChannel=e,this.successCount=0,this.errorCount=0,this.dialogHeader=this.headingEdit,this.channel=Object.assign({},e),this.displayChannelDlg=!0,this.markPristine(),this.loadMultiplexes(e.SourceId),this.selectedAdvanced=!1}saveChannel(){this.successCount=0,this.errorCount=0,this.displayUnsaved=!1;let
e={CallSign:this.channel.CallSign,ChannelID:this.channel.ChanId,ChannelNumber:this.channel.ChanNum,ChannelName:this.channel.ChannelName,CommMethod:this.channel.CommMethod,ExtendedVisible:this.channel.ExtendedVisible,Format:this.channel.Format,FrequencyID:this.channel.FrequencyId,MplexID:this.channel.MplexId,RecPriority:this.channel.RecPriority,ServiceID:this.channel.ServiceId,SourceID:this.channel.SourceId,TimeOffset:this.channel.TimeOffset,UseEIT:this.channel.UseEIT,XMLTVID:this.channel.XMLTVID};0==this
.channel.ChanId?(this.channelOperation=1,this.channelService.GetAvailableChanid().subscribe(n=>{this.channel.ChanId=n.int,e.ChannelID=n.int,this.channelService.AddDBChannel(e).subscribe(this.saveObserver)})):(this.channelOperation=0,this.channelService.UpdateDBChannel(e).subscribe(this.saveObserver))}closeDialog(){this.currentForm.dirty?this.displayUnsaved?(this.displayUnsaved=!1,this.displayChannelDlg=!1,this.editingChannel=void
0,this.currentForm.form.markAsPristine()):this.displayUnsaved=!0:(this.displayChannelDlg=!1,this.displayUnsaved=!1,this.editingChannel=void
0)}deleteRequest(e){this.channel=e,this.displayDelete=!0}deleteChannel(e,n){this.successCount=0,this.errorCount=0,this.channel=e,this.channelOperation=n?-2:-1,console.log("Delete
Channel",e),this.channelService.RemoveDBChannel(e.ChanId).subscribe(this.saveObserver)}deleteSourceRequest(){this.channel=this.resetChannel(),this.displayDeleteSource=!0}deleteSource(){this.working=!0;const
e=this.allChannels.find(n=>n.ChanId>0
&&(!this.filterEvent.filters.Source.value||this.filterEvent.filters.Source.value==n.Source));e?this.deleteChannel(e,!0):(this.displayDelete=!1,this.displayDeleteSource=!1,this.currentForm.form.markAsPristine(),this.working=!1)}onFilter(e){this.filterEvent=e}markPristine(){setTimeout(()=>this.currentForm.form.markAsPristine(),200)}confirm(e){return
oe(window.confirm(e))}canDeactivate(){return!this.currentForm||!this.currentForm.dirty||this.confirm(this.warningText)}onWindowClose(e){this.currentForm&&this.currentForm.dirty&&(e.preventDefault(),e.returnValue=!1)}}return
t.\u0275fac=function(e){return
new(e||t)(D(Or),D(Oe),D(Me),D(It))},t.\u0275cmp=z({type:t,selectors:[["app-channel-editor"]],viewQuery:function(e,n){if(1&e&&W(SZ,5),2&e){let
s;V(s=B())&&(n.currentForm=s.first)}},hostBindings:function(e,n){1&e&&C("beforeunload",function(r){return
n.onWindowClose(r)},!1,ni)},decls:167,vars:197,consts:[["class","block card
w-full","style","height:
90vh",4,"ngIf","ngIfElse"],["loading",""],[
"name","chanform",1,"ml-3","mr-3"],["chanform","ngForm"],[3,"header","visible","modal","closable","closeOnEscape","visibleChange"],[1,"form-group","field"],["for","ChannelName",1,"label","block"],["pInputText","","id","ChannelName","name","ChannelName",1,"mb-2","form-control","w-full",3,"ngModel","ngModelChange"],["ChannelName","ngModel"],[1,"block"],["for","ChanNum",1,"label","block"],["pInputText","","id","ChanNum","name","ChanNum",1,"mb-2","form-control","w-full",3,"ngModel","ngModelChange"],["ChanNum","ngModel"],["for","FrequencyId",1,"label","block"],["pInputText","","id","FrequencyId","name","FrequencyId",1,"mb-2","form-control","w-full",3,"ngModel","ngModelChange"],["FrequencyId","ngModel"],["for","CallSign",1,"label","block"],["pInputText","","id","CallSign","name","CallSign",1,"mb-2","form-control","w-full",3,"ngModel","ngModelChange"],["CallSign","ngModel"],["for","ExtendedVisible",1,"label","block"],["optionLabel","prompt","optionValue","value","name","ExtendedVisible",3,
"options","ngModel","editable","maxlength","ngModelChange"],["ExtendedVisible","ngModel"],["for","SourceId",1,"label","block"],["optionLabel","SourceName","optionValue","Id","name","SourceId",3,"options","ngModel","editable","maxlength","ngModelChange"],["SourceId","ngModel"],["for","Format",1,"label","block"],["optionLabel","prompt","optionValue","value","name","Format",3,"options","ngModel","editable","maxlength","ngModelChange"],["Format","ngModel"],["for","RecPriority",1,"label","block"],["name","RecPriority","id","RecPriority",3,"ngModel","showButtons","min","max","step","ngModelChange"],["inputId","UseEIT","name","UseEIT",1,"label","mb-2","w-full",3,"ngModel","binary","label","ngModelChange"],["UseEIT","ngModel"],["for","XMLTVID",1,"label","block"],["pInputText","","id","XMLTVID","name","XMLTVID",1,"mb-2","form-control","w-full",3,"ngModel","ngModelChange"],["XMLTVID","ngModel"],["for","TimeOffset",1,"label","block"],["name","TimeOffset","id","TimeOffset",3,"ngModel","showButt
ons","min","max","step","ngModelChange"],["for","CommMethod",1,"label","block"],["optionLabel","LocalizedName","optionValue","CommMethod","name","CommMethod",3,"options","ngModel","editable","maxlength","ngModelChange"],["CommMethod","ngModel"],[3,"header","selected","selectedChange"],["for","MplexId",1,"label","block"],["optionLabel","Description","optionValue","MplexId","name","MplexId",3,"options","ngModel","editable","maxlength","ngModelChange"],["MplexId","ngModel"],["for","ServiceId",1,"label","block"],["name","ServiceId","id","ServiceId",3,"ngModel","showButtons","min","max","step","ngModelChange"],["pTemplate","footer"],[3,"header","visible","modal","visibleChange"],[3,"header","visible","modal","draggable","resizable","visibleChange"],[4,"ngIf","ngIfElse"],["all",""],[4,"ngIf"],[1,"block","card","w-full",2,"height","90vh"],["scrollHeight","flex","styleClass","p-datatable-striped","responsiveLayout","scroll",3,"value","scrollable","rowHover","onFilter"],["pTemplate","caption
"],["pTemplate","header"],["pTemplate","body"],["pButton","","pRipple","","icon","pi
pi-plus",1,"p-button-success","mr-2",3,"label","disabled","click"],["field","Source","matchMode","equals",3,"showMenu"],["pTemplate","filter"],["icon","pi
pi-trash","styleClass","p-button-danger",3,"pTooltip","label","disabled","onClick",4,"ngIf","ngIfElse"],["explain",""],[2,"flex-basis","8%"],["pSortableColumn","ChanSeq",2,"flex-basis","9%"],["field","ChanSeq"],[2,"flex-basis","6%"],[2,"flex-basis","10%"],[2,"flex-basis","24%"],["pSortableColumn","Source",2,"flex-basis","16%"],["field","Source"],["pButton","","pRipple","","icon","pi
pi-pencil","disabled","true",1,"p-button-text"],["pButton","","pRipple","","icon","pi
pi-trash","class","p-button-text
p-button-danger","disabled","true",4,"ngIf"],["name","filter",3,"ngModel","options","placeholder","showClear","onChange"],["pTemplate","item"],["icon","pi
pi-trash","styleClass","p-button-danger",3,"pTooltip","label","disabled","onClick"],["pButton",""
,"pRipple","","icon","pi
pi-trash","disabled","true",1,"p-button-text","p-button-danger"],["height","40",3,"ngClass"],["height","32","width","42","style","background-color:#000000","onerror","this.height='0'",3,"src",4,"ngIf","ngIfElse"],["nullIcon",""],[2,"flex-basis","9%"],[2,"flex-basis","16%"],["pButton","","pRipple","","icon","pi
pi-pencil","tooltipPosition","left",1,"p-button-text",3,"disabled","pTooltip","click"],["pButton","","pRipple","","icon","pi
pi-trash","class","p-button-text
p-button-danger","tooltipPosition","left",3,"pTooltip","disabled","click",4,"ngIf"],["height","32","width","42","onerror","this.height='0'",2,"background-color","#000000",3,"src"],["height","32","width","42"],["pButton","","pRipple","","icon","pi
pi-trash","tooltipPosition","left",1,"p-button-text","p-button-danger",3,"pTooltip","disabled","click"],[1,"col-12",2,"text-align","left"],["severity","success",3,"text",4,"ngIf"],["severity","error",3,"text",4,"ngIf"],["icon","pi
pi-times-circle","styleC
lass","p-button-warning",3,"label","onClick"],["icon","pi
pi-check-circle","styleClass","p-button-success",3,"label","disabled","onClick"],["severity","success",3,"text"],["severity","error",3,"text"],["icon","pi
pi-times-circle","styleClass","p-button-danger",3,"label","onClick"],["icon","pi
pi-check-circle","styleClass","p-button-success",3,"label","onClick"],["icon","pi
pi-check-circle","styleClass","p-button-danger",3,"label","onClick"],["icon","pi
pi-check-circle","styleClass","p-button-danger",3,"disabled","label","onClick"]],template:function(e,n){if(1&e&&(l(0,"h2"),g(1),m(2,"translate"),c(),_(3,NZ,5,3,"div",0),_(4,VZ,1,0,"ng-template",null,1,we),l(6,"form",2,3)(8,"p-dialog",4),C("visibleChange",function(r){return
n.displayChannelDlg=r}),l(9,"div",5)(10,"label",6),g(11),m(12,"translate"),c(),l(13,"input",7,8),C("ngModelChange",function(r){return
n.channel.ChannelName=r}),c(),l(15,"small",9),g(16),m(17,"translate"),c()(),l(18,"div",5)(19,"label",10),g(20),m(21,"translate"),c()
,l(22,"input",11,12),C("ngModelChange",function(r){return
n.channel.ChanNum=r}),c(),l(24,"small",9),g(25),m(26,"translate"),c()(),l(27,"div",5)(28,"label",13),g(29),m(30,"translate"),c(),l(31,"input",14,15),C("ngModelChange",function(r){return
n.channel.FrequencyId=r}),c(),l(33,"small",9),g(34),m(35,"translate"),c()(),l(36,"div",5)(37,"label",16),g(38),m(39,"translate"),c(),l(40,"input",17,18),C("ngModelChange",function(r){return
n.channel.CallSign=r}),c(),l(42,"small",9),g(43),m(44,"translate"),c()(),l(45,"div",5)(46,"label",19),g(47),m(48,"translate"),c(),l(49,"p-dropdown",20,21),C("ngModelChange",function(r){return
n.channel.ExtendedVisible=r}),c(),l(51,"small",9),g(52),m(53,"translate"),c()(),l(54,"div",5)(55,"label",22),g(56),m(57,"translate"),c(),l(58,"p-dropdown",23,24),C("ngModelChange",function(r){return
n.channel.SourceId=r}),c(),l(60,"small",9),g(61),m(62,"translate"),c()(),l(63,"div",5)(64,"label",25),g(65),m(66,"translate"),c(),l(67,"p-dropdown",26,27),C("ngModelChange"
,function(r){return
n.channel.Format=r}),c(),l(69,"small",9),g(70),m(71,"translate"),c()(),l(72,"div",5)(73,"label",28),g(74),m(75,"translate"),c(),l(76,"p-inputNumber",29),C("ngModelChange",function(r){return
n.channel.RecPriority=r}),c(),l(77,"small",9),g(78),m(79,"translate"),c()(),l(80,"div",5)(81,"p-checkbox",30,31),C("ngModelChange",function(r){return
n.channel.UseEIT=r}),m(83,"translate"),c(),l(84,"small",9),g(85),m(86,"translate"),c()(),l(87,"div",5)(88,"label",32),g(89),m(90,"translate"),c(),l(91,"input",33,34),C("ngModelChange",function(r){return
n.channel.XMLTVID=r}),c(),l(93,"small",9),g(94),m(95,"translate"),c()(),l(96,"div",5)(97,"label",35),g(98),m(99,"translate"),c(),l(100,"p-inputNumber",36),C("ngModelChange",function(r){return
n.channel.TimeOffset=r}),c(),l(101,"small",9),g(102),m(103,"translate"),c()(),l(104,"div",5)(105,"label",37),g(106),m(107,"translate"),c(),l(108,"p-dropdown",38,39),C("ngModelChange",function(r){return
n.channel.CommMethod=r}),c(),l(110,"smal
l",9),g(111),m(112,"translate"),c()(),l(113,"p-accordion")(114,"p-accordionTab",40),C("selectedChange",function(r){return
n.selectedAdvanced=r}),m(115,"translate"),l(116,"div",5)(117,"label",41),g(118),m(119,"translate"),c(),l(120,"p-dropdown",42,43),C("ngModelChange",function(r){return
n.channel.MplexId=r}),c(),l(122,"small",9),g(123),m(124,"translate"),c()(),l(125,"div",5)(126,"label",44),g(127),m(128,"translate"),c(),l(129,"p-inputNumber",45),C("ngModelChange",function(r){return
n.channel.ServiceId=r}),c(),l(130,"small",9),g(131),m(132,"translate"),c()()()(),k(133,"br")(134,"br")(135,"br")(136,"br")(137,"br")(138,"br")(139,"br")(140,"br"),_(141,qZ,7,9,"ng-template",46),c(),l(142,"p-dialog",47),C("visibleChange",function(r){return
n.displayUnsaved=r}),m(143,"translate"),l(144,"p"),g(145),m(146,"translate"),c(),_(147,GZ,4,6,"ng-template",46),c(),l(148,"p-dialog",48),C("visibleChange",function(r){return
n.displayDelete=r}),m(149,"translate"),l(150,"h2"),g(151),m(152,"translate"),c()
,l(153,"p"),g(154),m(155,"translate"),c(),_(156,zZ,6,7,"ng-template",46),c(),l(157,"p-dialog",48),C("visibleChange",function(r){return
n.displayDeleteSource=r}),m(158,"translate"),l(159,"h2"),g(160),m(161,"translate"),c(),_(162,$Z,4,6,"p",49),_(163,WZ,4,3,"ng-template",null,50,we),_(165,KZ,4,5,"div",51),_(166,JZ,6,8,"ng-template",46),c()()),2&e){const
s=F(5),r=F(164);a(1),S(f(2,112,"settings.chanedit.title")),a(2),p("ngIf",n.chansLoaded&&n.transDone>=n.numTranslations)("ngIfElse",s),a(5),q(A(187,YZ)),x("header",n.dialogHeader),p("visible",n.displayChannelDlg)("modal",!0)("closable",!1)("closeOnEscape",!1),a(3),S(f(12,114,"settings.chanedit.channame")),a(2),p("ngModel",n.channel.ChannelName),a(3),T("
",f(17,116,"settings.chanedit.channame_desc"),"
"),a(4),S(f(21,118,"settings.chanedit.channum")),a(2),p("ngModel",n.channel.ChanNum),a(3),T("
",f(26,120,"settings.chanedit.channum_desc"),"
"),a(4),S(f(30,122,"settings.chanedit.freqid")),a(2),p("ngModel",n.channel.FrequencyId),a(3),T("
",
f(35,124,"settings.chanedit.freqid_desc"),"
"),a(4),S(f(39,126,"settings.chanedit.callsign")),a(2),p("ngModel",n.channel.CallSign),a(3),T("
",f(44,128,"settings.chanedit.callsign_desc"),"
"),a(4),S(f(48,130,"settings.chanedit.visible_label")),a(2),q(A(188,Ol)),p("options",n.visibilities)("ngModel",n.channel.ExtendedVisible)("editable",!1)("maxlength",0),a(3),T("
",f(53,132,"settings.chanedit.visible_desc"),"
"),a(4),S(f(57,134,"settings.chanedit.source_label")),a(2),q(A(189,Ol)),p("options",n.videoSources)("ngModel",n.channel.SourceId)("editable",!1)("maxlength",0),a(3),T("
",f(62,136,"settings.chanedit.source_desc"),"
"),a(4),S(f(66,138,"settings.chanedit.format_label")),a(2),q(A(190,Ol)),p("options",n.tvFormats)("ngModel",n.channel.Format)("editable",!1)("maxlength",0),a(3),T("
",f(71,140,"settings.chanedit.format_desc"),"
"),a(4),S(f(75,142,"settings.chanedit.priority_label")),a(2),p("ngModel",n.channel.RecPriority)("showButtons",!0)("min",-99)("max",99)("step",1),a(2),T("
",f(79
,144,"settings.chanedit.priority_desc"),"
"),a(3),x("label",f(83,146,"settings.chanedit.eit_label")),p("ngModel",n.channel.UseEIT)("binary",!0),a(4),T("
",f(86,148,"settings.chanedit.eit_desc"),"
"),a(4),S(f(90,150,"settings.chanedit.xmltvid_label")),a(2),p("ngModel",n.channel.XMLTVID),a(3),T("
",f(95,152,"settings.chanedit.xmltvid_desc"),"
"),a(4),S(f(99,154,"settings.chanedit.timeoffset_label")),a(2),p("ngModel",n.channel.TimeOffset)("showButtons",!0)("min",-1440)("max",1440)("step",30),a(2),T("
",f(103,156,"settings.chanedit.timeoffset_desc"),"
"),a(4),S(f(107,158,"settings.chanedit.commmethod_label")),a(2),q(A(191,Ol)),p("options",n.commMethods)("ngModel",n.channel.CommMethod)("editable",!1)("maxlength",0),a(3),T("
",f(112,160,"settings.chanedit.commmethod_desc"),"
"),a(3),x("header",f(115,162,"settings.chanedit_advanced")),p("selected",n.selectedAdvanced),a(4),S(f(119,164,"settings.chanedit.mplex_label")),a(2),q(A(192,Ol)),p("options",n.multiplexes)("ngModel",n.channel.MplexId)
("editable",!1)("maxlength",0),a(3),T("
",f(124,166,"settings.chanedit.mplex_desc"),"
"),a(4),S(f(128,168,"settings.chanedit.serviceid_label")),a(2),p("ngModel",n.channel.ServiceId)("showButtons",!0)("min",-1)("max",65535)("step",1),a(2),T("
",f(132,170,"settings.chanedit.serviceid_desc"),"
"),a(11),x("header",f(143,172,"common.unsaved_heading")),p("visible",n.displayUnsaved)("modal",!0),a(3),S(f(146,174,"common.unsaved_message")),a(3),x("header",f(149,176,"settings.chanedit.delete_this")),p("visible",n.displayDelete)("modal",!0)("draggable",!1)("resizable",!1),a(3),S(f(152,178,"settings.common.ru_sure")),a(3),S(Dt(155,180,"settings.chanedit.delete_details",Qt(193,ZZ,n.channel.ChanNum,n.channel.ChannelName,n.getSource(n.channel)))),a(3),x("header",f(158,183,"settings.chanedit.delete_source")),p("visible",n.displayDeleteSource)("modal",!0)("draggable",!1)("resizable",!1),a(3),S(f(161,185,"settings.common.ru_sure")),a(2),p("ngIf",n.filterEvent.filters.Source.value)("ngIfElse",r),a(3),
p("ngIf",0!=n.channel.ChanId)}},directives:[Q,Dn,ne,On,bt,vg,Ot,Te,_e,ve,Kt,yd,wd,Le,Go,ze,Ue,He,bn,Ye,_n,pt,sn,Ss,Ts,qe],pipes:[ce],styles:[""]}),t})(),XZ=(()=>{class
t{constructor(e){this.router=e}ngOnInit(){}}return t.\u0275fac=function(e){return
new(e||t)(D(It))},t.\u0275cmp=z({type:t,selectors:[["app-wiz-channeledit"]],decls:11,vars:6,consts:[[1,"m-5"],[1,"flex","justify-content-end"],["icon","pi
pi-angle-left","iconPos","left",1,"p-3",3,"label","onClick"],["icon","pi
pi-angle-right","iconPos","right",1,"p-3",3,"label","onClick"]],template:function(e,n){1&e&&(l(0,"p-card",0),k(1,"app-channel-editor")(2,"br")(3,"br")(4,"br")(5,"br"),l(6,"div",1)(7,"p-button",2),C("onClick",function(){return
n.router.navigate(["setupwizard/input-connections"])}),m(8,"translate"),c(),l(9,"p-button",3),C("onClick",function(){return
n.router.navigate(["setupwizard/storage-groups"])}),m(10,"translate"),c()()()),2&e&&(a(7),x("label",f(8,2,"common.back")),a(2),x("label",f(10,4,"common.next")))},directi
ves:[Ne,bS,ve],pipes:[ce],styles:[""]}),t})(),eX=(()=>{class t{}return
t.\u0275fac=function(e){return
new(e||t)},t.\u0275mod=he({type:t}),t.\u0275inj=ue({imports:[[vn.forChild([{path:"setupwizard",component:rS,children:[{path:"selectlanguage",component:nK,canDeactivate:[ji]},{path:"dbsetup",component:RK,canDeactivate:[ji]},{path:"general",component:WJ,canDeactivate:[ji]},{path:"capture-cards",component:hS,canDeactivate:[ji]},{path:"recording-profiles",component:mS,canDeactivate:[ji]},{path:"video-sources",component:UY,canDeactivate:[ji]},{path:"input-connections",component:_S,canDeactivate:[ji]},{path:"channel-editor",component:XZ,canDeactivate:[ji]},{path:"storage-groups",component:gZ,canDeactivate:[ji]},{path:"system-events",component:TZ,canDeactivate:[ji]}]}])],vn]}),t})(),vS=(()=>{class
t{constructor(e){this.httpClient=e,this.guide_hours=3,this.guide_millisecs=60*this.guide_hours*60*1e3,this.startDate=new
Date}toTime(e){return new Date(e).toISOString()}toStartTime(e){return this
.toTime(e)}toEndTime(e){let n=new Date(e),s=new
Date(n.getTime()+this.guide_millisecs);return
this.toTime(s.toISOString())}toHalfHour(e){let n=new Date(e);return
n.setMinutes(n.getMinutes()<30?0:30),n.setSeconds(0),n}AddToChannelGroup(e){return
this.httpClient.post("/Guide/AddToChannelGroup",e)}GetCategoryList(){return
this.httpClient.get("/Guide/GetCategoryList")}GetChannelGroupList(e){let n=(new
ye).set("IncludeEmpty",e);return
this.httpClient.get("/Guide/GetChannelGroupList",{params:n})}GetChannelIcon(e){let
n=(new
ye).set("ChanId",e.ChanId).set("Width",e.Width).set("Height",e.Height);return
this.httpClient.get("/Guide/GetChannelIcon",{params:n})}GetProgramDetails(e){let
n=(new ye).set("ChanId",e.ChanId).set("StartTime",e.StartTime);return
this.httpClient.get("/Guide/GetProgramDetails",{params:n})}GetProgramGuide(e,n){e&&(this.startDate=e);let
s=this.toHalfHour(this.startDate).toISOString(),r={StartTime:this.toStartTime(s),EndTime:this.toEndTime(s),Details:!0,ChannelGroupId:n};re
turn this.httpClient.post("/Guide/GetProgramGuide",r)}GetProgramList(e){let
n=new ye;for(const[s,r]of Object.entries(e))n=n.set(s,r);return
this.httpClient.get("/Guide/GetProgramList",{params:n})}GetStoredSearches(e){let
n=(new ye).set("Type",e);return
this.httpClient.get("/Guide/GetStoredSearches",{params:n})}RemoveFromChannelGroup(e){return
this.httpClient.post("/Guide/RemoveFromChannelGroup",e)}}return
t.\u0275fac=function(e){return
new(e||t)(K(Bi))},t.\u0275prov=X({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();function
tX(t,i){if(1&t){const
e=I();l(0,"div",15)(1,"p-dropdown",16),C("ngModelChange",function(s){return
v(e),d(2).channelGroup=s})("onChange",function(){return
v(e),d(2).refresh()}),m(2,"translate"),c()()}if(2&t){const
e=d(2);a(1),x("pTooltip",f(2,3,"dashboard.guide.channel_group")),p("ngModel",e.channelGroup)("options",e.channelGroups)}}function
nX(t,i){if(1&t&&(l(0,"div",17)(1,"b"),g(2),m(3,"translate"),c()()),2&t){const
e=d(2);a(2),Ec(" ",f(3,4,"dashboard.gui
de.channel")," ",e.channel.ChanNum," ",e.channel.CallSign,"
",e.channel.ChannelName,"")}}function
iX(t,i){1&t&&(l(0,"div",17)(1,"b"),g(2),m(3,"translate"),c()()),2&t&&(a(2),T("
",f(3,1,"dashboard.guide.people_search")," "))}function
sX(t,i){1&t&&(l(0,"div",17)(1,"b"),g(2),m(3,"translate"),c()()),2&t&&(a(2),T("
",f(3,1,"dashboard.guide.title_search")," "))}function
rX(t,i){1&t&&(l(0,"div",17)(1,"b"),g(2),m(3,"translate"),c()()),2&t&&(a(2),T("
",f(3,1,"dashboard.guide.full_search")," "))}function
oX(t,i){if(1&t){const
e=I();l(0,"div",18)(1,"input",19),C("ngModelChange",function(s){return
v(e),d(2).searchValue=s}),c(),l(2,"button",20),C("click",function(){return
v(e),d(2).titleSearch()}),m(3,"translate"),c(),l(4,"button",21),C("click",function(){return
v(e),d(2).peopleSearch()}),m(5,"translate"),c(),l(6,"button",22),C("click",function(){return
v(e),d(2).fullSearch()}),m(7,"translate"),c()()}if(2&t){const
e=d(2);a(1),p("ngModel",e.searchValue),a(1),x("pTooltip",f(3,4,"dashboard.guide.ti
tle_search")),a(2),x("pTooltip",f(5,6,"dashboard.guide.people_search")),a(2),x("pTooltip",f(7,8,"dashboard.guide.full_search"))}}function
aX(t,i){if(1&t){const
e=I();l(0,"div",7)(1,"button",23),C("click",function(){return
v(e),d(2).onGrid()}),m(2,"translate"),c()()}2&t&&(a(1),x("pTooltip",f(2,1,"dashboard.guide.retgrid")))}const
lX=function(){return{width:"30px",height:"30px"}};function
cX(t,i){1&t&&(l(0,"div"),k(1,"p-progressSpinner"),c()),2&t&&(a(1),q(A(2,lX)))}function
uX(t,i){if(1&t){const
e=I();l(0,"div")(1,"button",24),C("click",function(){v(e);const
s=d(3);return
s.refreshing=!0,s.refresh()}),m(2,"translate"),c()()}2&t&&(a(1),x("pTooltip",f(2,1,"common.refresh")))}const
dX=function(t,i){return[t,i]};function
pX(t,i){if(1&t&&_(0,uX,3,3,"div",14),2&t){const
e=d(2);p("ngIf",Ge(1,dX,e.CHANNEL,e.GRID).indexOf(e.displayType)>-1)}}function
hX(t,i){}function
mX(t,i){if(1&t&&(de(0),l(1,"div",34),k(2,"app-guide-timebar",35),c(),pe()),2&t){const
e=d(4);a(2),p("guide",e)}}function fX(t,i
){if(1&t&&(de(0),k(1,"app-guide-programentry",36),pe()),2&t){const
e=d().$implicit,n=d().$implicit,s=d(3);a(1),p("program",e)("guideStartTime",s.m_programGuide.ProgramGuide.StartTime)("guideEndTime",s.m_programGuide.ProgramGuide.EndTime)("guideComponent",s)("channel",n)}}function
gX(t,i){if(1&t&&(de(0),_(1,fX,2,5,"ng-container",14),pe()),2&t){const
e=i.$implicit,n=d(4);a(1),p("ngIf",!n.timeChange&&n.inDisplayWindow(e.StartTime,e.EndTime))}}function
_X(t,i){if(1&t&&(l(0,"div",28),_(1,mX,3,1,"ng-container",14),l(2,"div",29)(3,"div",30),k(4,"app-guide-channelicon",31),c(),l(5,"div",32),_(6,gX,2,1,"ng-container",33),c()()()),2&t){const
e=i.$implicit,n=i.rowIndex,s=d(3);a(1),p("ngIf",n%5==0),a(3),p("channel",e)("guideComponent",s),a(2),p("ngForOf",e.Programs)}}const
bX=function(){return{width:"100%",height:"90vh"}};function
vX(t,i){if(1&t&&(l(0,"div")(1,"p-scrollPanel")(2,"p-dataView",25),_(3,hX,0,0,"ng-template",26),_(4,_X,7,4,"ng-template",27),c()()()),2&t){const
e=d(2);a(1),q(A(4,bX))
,a(1),p("value",e.m_programGuide.ProgramGuide.Channels)("totalRecords",e.m_programGuide.ProgramGuide.TotalAvailable)}}function
CX(t,i){if(1&t&&(l(0,"div"),k(1,"app-programs",37),c()),2&t){const
e=d(2);a(1),p("inter",e.inter)("programs",e.listPrograms)}}const
Cg=function(t,i,e,n){return[t,i,e,n]};function yX(t,i){if(1&t){const
e=I();l(0,"div")(1,"div",5),_(2,tX,3,5,"div",6),l(3,"div",7)(4,"p-calendar",8),C("ngModelChange",function(s){return
v(e),d().m_pickerDate=s})("onClose",function(){return
v(e),d().onDateChange()})("keyup.enter",function(){return
v(e),d().onDateChange()})("onBlur",function(){return
v(e),d().onDateChange()}),m(5,"translate"),c()(),_(6,nX,4,6,"div",9),_(7,iX,4,3,"div",9),_(8,sX,4,3,"div",9),_(9,rX,4,3,"div",9),_(10,oX,8,10,"div",10),_(11,aX,3,3,"div",11),l(12,"div",7),_(13,cX,2,3,"div",0),_(14,pX,1,4,"ng-template",null,12,we),c(),l(16,"div",7)(17,"button",13),C("click",function(){return
v(e),d().showLegend=!0}),m(18,"translate"),c()()(),_(19,vX,5,5,"div",14),_(20,C
X,2,2,"div",14),c()}if(2&t){const
e=F(15),n=d();a(2),p("ngIf",n.displayType==n.GRID),a(2),x("pTooltip",f(5,22,"dashboard.guide.calendar_tip")),p("ngModel",n.m_pickerDate)("showTime",!0)("stepMinute",30)("dateFormat","yy/mm/dd")("selectOtherMonths",!0)("showIcon",!0)("showOnFocus",!0)("showButtonBar",!0)("clearButtonStyleClass","hidden"),a(2),p("ngIf",n.displayType==n.CHANNEL),a(1),p("ngIf",n.displayType==n.PEOPLESEARCH),a(1),p("ngIf",n.displayType==n.TITLESEARCH),a(1),p("ngIf",n.displayType==n.FULLSEARCH),a(1),p("ngIf",qn(26,Cg,n.GRID,n.TITLESEARCH,n.PEOPLESEARCH,n.FULLSEARCH).indexOf(n.displayType)>-1),a(1),p("ngIf",qn(31,Cg,n.CHANNEL,n.TITLESEARCH,n.PEOPLESEARCH,n.FULLSEARCH).indexOf(n.displayType)>-1),a(2),p("ngIf",n.refreshing)("ngIfElse",e),a(4),x("label",f(18,24,"dashboard.guide.colors")),a(2),p("ngIf",n.displayType==n.GRID),a(1),p("ngIf",qn(36,Cg,n.CHANNEL,n.TITLESEARCH,n.PEOPLESEARCH,n.FULLSEARCH).indexOf(n.displayType)>-1)}}function
wX(t,i){1&t&&k(0,"p-progressSpinner")}fun
ction TX(t,i){if(1&t&&k(0,"app-legend",38),2&t){const
e=d();p("programGuide",e.displayType==e.GRID?e.m_programGuide:null)("listPrograms",e.displayType==e.GRID?null:e.listPrograms)}}const
SX=function(){return{width:"80vw"}};let CS=(()=>{class
t{constructor(e,n){this.guideService=e,this.translate=n,this.m_startDate=new
Date,this.m_pickerDate=new Date,this.m_endDate=new
Date,this.channelGroups=[],this.m_channelData=[],this.m_channelTotal=10,this.m_rows=10,this.listPrograms=[],this.allGroup={GroupId:0,Name:this.translate.instant("settings.chanedit.all"),Password:""},this.channelGroup=this.allGroup,this.loaded=!1,this.refreshing=!1,this.timeChange=!1,this.inter={summaryComponent:this},this.GRID=1,this.CHANNEL=2,this.TITLESEARCH=3,this.PEOPLESEARCH=4,this.FULLSEARCH=5,this.displayType=this.GRID,this.searchValue="",this.showLegend=!1,this.translate.onLangChange.subscribe(s=>{console.log("Event:
language change, new language
("+s.lang+")"),this.switchLanguage(s.lang),this.fetchData()})}ngOn
Init(){this.fetchData()}switchLanguage(e){this.translate.use(e)}fetchData(e){0==this.channelGroups.length&&this.guideService.GetChannelGroupList(!1).subscribe(n=>{console.log(n),this.channelGroups=n.ChannelGroupList.ChannelGroups,this.channelGroups.unshift(this.allGroup)}),this.guideService.GetProgramGuide(e,this.channelGroup.GroupId).subscribe(n=>{this.m_programGuide=n,this.m_startDate=new
Date(n.ProgramGuide.StartTime),this.m_pickerDate=new
Date(this.m_startDate),this.m_endDate=new
Date(n.ProgramGuide.EndTime),this.m_channelData=n.ProgramGuide.Channels,this.m_channelTotal=n.ProgramGuide.TotalAvailable,this.loaded=!0,this.refreshing=!1,this.timeChange=!1})}fetchDetails(){let
e=this.m_startDate.getTime(),s={Details:!0,StartTime:new
Date(e+1e3).toISOString()};switch(this.displayType){case
this.CHANNEL:s.ChanId=this.channel.ChanId;break;case
this.TITLESEARCH:s.TitleFilter=this.searchValue,s.Count=1e3;break;case
this.PEOPLESEARCH:s.PersonFilter=this.searchValue,s.Count=1e3;break;case t
his.FULLSEARCH:s.KeywordFilter=this.searchValue,s.Count=1e3}this.listPrograms=[],this.guideService.GetProgramList(s).subscribe(r=>{this.listPrograms=r.ProgramList.Programs,this.loaded=!0,this.refreshing=!1})}inDisplayWindow(e,n){let
s=new Date(e),r=new Date(n),o=new Date(this.m_startDate),u=new
Date(this.m_endDate);return!(r<=o||s>=u)&&s<u}onDateChange(){this.m_pickerDate||(this.m_pickerDate=new
Date),this.m_pickerDate.getTime()!=this.m_startDate.getTime()&&(this.m_startDate=new
Date(this.m_pickerDate),this.timeChange=!0,this.refresh())}refresh(){switch(this.refreshing=!0,this.displayType){case
this.GRID:this.m_startDate&&(this.refreshing=!0,this.fetchData(this.m_startDate));break;case
this.CHANNEL:case this.TITLESEARCH:case this.PEOPLESEARCH:case
this.FULLSEARCH:this.refreshing=!0,this.fetchDetails()}}onChannel(e){this.channel=e,this.displayType=this.CHANNEL,this.refresh()}onGrid(){this.displayType=this.GRID,this.refresh()}titleSearch(){this.searchValue=this.searchValue.trim(),this
.searchValue.length>1&&(this.displayType=this.TITLESEARCH,this.refresh())}peopleSearch(){this.searchValue=this.searchValue.trim(),this.searchValue.length>1&&(this.displayType=this.PEOPLESEARCH,this.refresh())}fullSearch(){this.searchValue=this.searchValue.trim(),this.searchValue.length>1&&(this.displayType=this.FULLSEARCH,this.refresh())}}return
t.\u0275fac=function(e){return
new(e||t)(D(vS),D(Oe))},t.\u0275cmp=z({type:t,selectors:[["app-guide"]],decls:10,vars:14,consts:[[4,"ngIf","ngIfElse"],[3,"inter"],["loading",""],[3,"header","visible","modal","visibleChange"],["pTemplate",""],[1,"flex"],["class","flex
align-items-center
pr-5",4,"ngIf"],[1,"flex","align-items-center"],["tooltipPosition","top",3,"ngModel","showTime","stepMinute","dateFormat","selectOtherMonths","showIcon","showOnFocus","showButtonBar","clearButtonStyleClass","pTooltip","ngModelChange","onClose","keyup.enter","onBlur"],["class","flex
align-items-center p-5",4,"ngIf"],["class","flex
align-items-center pl-5",4,"ngI
f"],["class","flex
align-items-center",4,"ngIf"],["refreshBn",""],["type","text","pButton","",3,"label","click"],[4,"ngIf"],[1,"flex","align-items-center","pr-5"],["name","channelGroup","optionLabel","Name","tooltipPosition","top",3,"ngModel","options","pTooltip","ngModelChange","onChange"],[1,"flex","align-items-center","p-5"],[1,"flex","align-items-center","pl-5"],["type","text","pInputText","","id","searchValue","name","searchValue","placeholder","Search",1,"text-xl",3,"ngModel","ngModelChange"],["pButton","","pRipple","","icon","pi
pi-search","tooltipPosition","top",1,"p-button-text",3,"pTooltip","click"],["pButton","","pRipple","","icon","pi
pi-user","tooltipPosition","top",1,"p-button-text",3,"pTooltip","click"],["pButton","","pRipple","","icon","pi
pi-search-plus","tooltipPosition","top",1,"p-button-text",3,"pTooltip","click"],["pButton","","pRipple","","icon","pi
pi-table","tooltipPosition","top",1,"p-button-text",3,"pTooltip","click"],["pButton","","pRipple","","icon","pi
p
i-refresh","tooltipPosition","top",1,"p-button-text",3,"pTooltip","click"],[3,"value","totalRecords"],["pTemplate","header","styleClass","timeHeader"],["pTemplate","listItem"],[1,"grid","col-12","p-3"],[1,"grid","flex-grow-1"],[1,"col-1"],[3,"channel","guideComponent"],[1,"col"],[4,"ngFor","ngForOf"],[1,"col-12"],[3,"guide"],[3,"program","guideStartTime","guideEndTime","guideComponent","channel"],[3,"inter","programs"],[3,"programGuide","listPrograms"]],template:function(e,n){if(1&e&&(l(0,"h2"),g(1),m(2,"translate"),c(),_(3,yX,21,41,"div",0),k(4,"app-schedule",1),_(5,wX,1,0,"ng-template",null,2,we),l(7,"p-dialog",3),C("visibleChange",function(r){return
n.showLegend=r}),m(8,"translate"),_(9,TX,1,2,"ng-template",4),c()),2&e){const
s=F(6);a(1),T("",f(2,9,"dashboard.programguide"),"
"),a(2),p("ngIf",n.loaded)("ngIfElse",s),a(1),p("inter",n.inter),a(3),q(A(13,SX)),x("header",f(8,11,"dashboard.guide.colors")),p("visible",n.showLegend)("modal",!0)}},styles:[".channelRow[_ngcontent-%COMP%]{
display:block;grid-template-columns:90px
auto;width:100%;height:82px;padding-bottom:2px}.programsBox[_ngcontent-%COMP%],
.timebarbox[_ngcontent-%COMP%]{grid-template-columns:90px
auto;grid-template-rows:28px;width:100%}"]}),t})();function
xX(t,i){1&t&&k(0,"img",5),2&t&&x("src",d().channel.IconURL,ln)}function
DX(t,i){1&t&&k(0,"img",6)}let MX=(()=>{class
t{constructor(){}ngOnInit(){}}return t.\u0275fac=function(e){return
new(e||t)},t.\u0275cmp=z({type:t,selectors:[["app-guide-channelicon"]],inputs:{channel:"channel",guideComponent:"guideComponent"},decls:8,vars:4,consts:[[1,"flex","flex-column","align-items-center","channelBox","cursor-pointer",3,"click"],[1,"channelIcon"],["height","57",3,"src",4,"ngIf","ngIfElse"],["nullIcon",""],[1,"channelText"],["height","57",3,"src"],["height","0","width","0"]],template:function(e,n){if(1&e&&(l(0,"div",0),C("click",function(){return
n.guideComponent.onChannel(n.channel)}),l(1,"div",1),_(2,xX,1,1,"img",2),_(3,DX,1,0,"ng-template",null,3,we),c(),
l(5,"div",4)(6,"span"),g(7),c()()()),2&e){const
s=F(4);a(2),p("ngIf",n.channel.IconURL)("ngIfElse",s),a(5),We("",n.channel.ChanNum,"
",n.channel.CallSign,"")}},directives:[Q],styles:[".channelBox[_ngcontent-%COMP%]{border-radius:10px;background:var(--surface-200);height:120px}.channelIcon[_ngcontent-%COMP%]{height:57px;max-width:86px;margin-top:10px;margin-bottom:3px;overflow:hidden;float:right}.channelText[_ngcontent-%COMP%]{clear:both;font-weight:700;text-align:-webkit-center;overflow:hidden;text-overflow:ellipsis;padding:0
3px}"]}),t})();const
kX=function(){return["WillRecord","Recording"]};function
IX(t,i){if(1&t&&(l(0,"div")(1,"div",5),g(2),c()()),2&t){const
e=d();a(1),p("ngClass",A(2,kX).indexOf(e.program.Recording.StatusName)>-1?"bg-green-500":"bg-pink-400"),a(1),T("
",e.dataService.recStatusText[e.program.Recording.StatusName],"")}}function
EX(t,i){if(1&t&&(l(0,"div")(1,"div",6),g(2),c()()),2&t){const
e=d();a(2),S((e.program.Season>0?"S"+e.program.Season+"E"+e.program.Episod
e:"")+" "+e.program.SubTitle)}}const
RX=function(t,i){return[t,i,"guide_type_default"]};let LX=(()=>{class
t{constructor(e){this.dataService=e,this.editSchedule=!1,this.typeclass="",this.catclass="",this.regex=/[^a-z0-9]/g}ngOnInit(){this.typeclass="guide_type_"+this.program.CatType,this.catclass="guide_cat_"+this.program.Category.toLowerCase().replace(this.regex,"_")}durationToWidth(){let
e=new Date(this.program.StartTime),n=new Date(this.program.EndTime),s=new
Date(this.guideStartTime),r=new
Date(this.guideEndTime),h=e<s?s:e,b=n>r?r:n,y=r.getTime()-s.getTime();return(b.getTime()-h.getTime())/y*100}openDialog(){this.guideComponent.inter.sched&&this.guideComponent.inter.sched.open(this.program,this.channel)}}return
t.\u0275fac=function(e){return
new(e||t)(D(Ll))},t.\u0275cmp=z({type:t,selectors:[["app-guide-programentry"]],inputs:{program:"program",channel:"channel",guideStartTime:"guideStartTime",guideEndTime:"guideEndTime",guideComponent:"guideComponent"},decls:8,vars:11,consts:[[
"tooltipPosition","top",1,"programBox","cursor-pointer",3,"ngClass","pTooltip","click"],[1,"programTitle"],[1,"programBody"],[1,"programCatType"],[4,"ngIf"],[1,"programCatType",3,"ngClass"],[1,"programSubtitle"]],template:function(e,n){1&e&&(l(0,"div",0),C("click",function(){return
n.openDialog()}),l(1,"div",1),g(2),c(),l(3,"div",2)(4,"div",3),g(5),c(),_(6,IX,3,3,"div",4),_(7,EX,3,1,"div",4),c()()),2&e&&(_i("width",n.durationToWidth(),"%"),x("pTooltip",n.program.Description),p("ngClass",Ge(8,RX,n.typeclass,n.catclass)),a(2),S(n.program.Title),a(3),S(n.program.Category),a(1),p("ngIf",n.program.Recording),a(1),p("ngIf",0!=n.program.SubTitle.length))},directives:[Le,Kt,Q],styles:[".programBox[_ngcontent-%COMP%]{float:left;height:120px;padding:0
0 0
2px;color:var(--primary-color-text);background:var(--surface-200);border-radius:10px;overflow:hidden;text-overflow:ellipsis}.programTitle[_ngcontent-%COMP%]{padding:5px
8px 4px 7px;width:100%;height:28px;color:var(--primary-color-text);backg
round:linear-gradient(to bottom,var(--surface-800) 1%,var(--surface-500)
90%,var(--surface-200)
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;height:45px;z-index:5}.programCatType[_ngcontent-%COMP%]{position:relative;font-weight:700;margin-right:5px;line-height:15px;padding-top:2px;padding-bottom:3px}.programSubtitle[_ngcontent-%COMP%]{position:relative;z-index:1;line-height:15px}"]}),t})(),OX=(()=>{class
t{constructor(e){this.guideService=e}ngOnInit(){}segmentToStartTime(e){const
n=18e5*e;return(new Date(this.guide.m_startDate.getTime()+n).toLocaleTimeString()+"
").replace(/:.. /," ")}pageLeft(){this.guide.m_pickerDate=new
Date(this.guide.m_startDate.getTime()-this.guideService.guide_millisecs),this.guide.onDateChange()}pageRight(){this.guide.m_picke
rDate=new
Date(this.guide.m_startDate.getTime()+this.guideService.guide_millisecs),this.guide.onDateChange()}}return
t.\u0275fac=function(e){return
new(e||t)(D(vS))},t.\u0275cmp=z({type:t,selectors:[["app-guide-timebar"]],inputs:{guide:"guide"},decls:25,vars:7,consts:[[1,"grid"],[1,"col-1","datebox"],[1,"col","segmentbox"],[1,"flex"],[1,"flex-none","cursor-pointer",3,"click"],[1,"flex-none"],[1,"flex-grow-1"]],template:function(e,n){1&e&&(l(0,"div",0)(1,"div",1),g(2),c(),l(3,"div",2)(4,"div",3)(5,"div",4),C("click",function(){return
n.pageLeft()}),g(6,"<<"),c(),l(7,"div",5),g(8),c()()(),l(9,"div",2),g(10),c(),l(11,"div",2),g(12),c(),l(13,"div",2),g(14),c(),l(15,"div",2),g(16),c(),l(17,"div",2)(18,"div",3)(19,"div",5),g(20),c(),l(21,"div",6),g(22,"\xa0"),c(),l(23,"div",4),C("click",function(){return
n.pageRight()}),g(24,">>"),c()()()()),2&e&&(a(2),S(n.guide.m_startDate.toLocaleDateString()),a(6),T("\xa0",n.segmentToStartTime(0),""),a(2),S(n.segmentToStartTime(1)),a(2),S(n.segmentToSt
artTime(2)),a(2),S(n.segmentToStartTime(3)),a(2),S(n.segmentToStartTime(4)),a(4),S(n.segmentToStartTime(5)))},styles:[".timebarbox[_ngcontent-%COMP%]{grid-template-columns:90px
auto;grid-template-rows:28px;width:100%}.datebox[_ngcontent-%COMP%]{padding:5px 8px 4px
7px;color:var(--primary-color-text);background:linear-gradient(to
bottom,var(--surface-800) 1%,var(--surface-500) 90%,var(--surface-200)
99%);border-radius:10px}.segmentsbox[_ngcontent-%COMP%]{display:block;float:left;position:relative;height:100%;width:calc(100%
- 91px)}.segmentbox[_ngcontent-%COMP%]{width:25%;padding:5px 8px 4px
7px;color:var(--primary-color-text);background:linear-gradient(to
bottom,var(--surface-800) 1%,var(--surface-500) 90%,var(--surface-200)
99%);height:auto;border-radius:10px}"]}),t})();function yS(t,i=zf){const n=function
AX(t){return t instanceof Date&&!isNaN(+t)}(t)?+t-i.now():Math.abs(t);return
s=>s.lift(new PX(n,i))}class
PX{constructor(i,e){this.delay=i,this.scheduler=e}call(i,e){return e.sub
scribe(new yg(i,this.delay,this.scheduler))}}class yg extends
yt{constructor(i,e,n){super(i),this.delay=e,this.scheduler=n,this.queue=[],this.active=!1,this.errored=!1}static
dispatch(i){const
e=i.source,n=e.queue,s=i.scheduler,r=i.destination;for(;n.length>0&&n[0].time-s.now()<=0;)n.shift().notification.observe(r);if(n.length>0){const
o=Math.max(0,n[0].time-s.now());this.schedule(i,o)}else
this.unsubscribe(),e.active=!1}_schedule(i){this.active=!0,this.destination.add(i.schedule(yg.dispatch,this.delay,{source:this,destination:this.destination,scheduler:i}))}scheduleNotification(i){if(!0===this.errored)return;const
e=this.scheduler,n=new
FX(e.now()+this.delay,i);this.queue.push(n),!1===this.active&&this._schedule(e)}_next(i){this.scheduleNotification(Kn.createNext(i))}_error(i){this.errored=!0,this.queue=[],this.destination.error(i),this.unsubscribe()}_complete(){this.scheduleNotification(Kn.createComplete()),this.unsubscribe()}}class
FX{constructor(i,e){this.time=i,this.notificatio
n=e}}const NX=["cetonform"],VX=["top"];function
BX(t,i){1&t&&(g(0),m(1,"translate")),2&t&&T("
",f(1,1,"settings.capture.ceton.title")," ")}function
HX(t,i){}function qX(t,i){if(1&t){const
e=I();l(0,"div",8)(1,"div",9)(2,"div",10)(3,"label",11),g(4),m(5,"translate"),c(),l(6,"input",12,13),C("ngModelChange",function(s){return
v(e),d().work.ipAddress=s}),c(),l(8,"small",14),g(9),m(10,"translate"),c()(),l(11,"div",10)(12,"label",15),g(13),m(14,"translate"),c(),l(15,"input",16,13),C("ngModelChange",function(s){return
v(e),d().work.tuner=s}),c(),l(17,"small",14),g(18),m(19,"translate"),c()(),l(20,"div",10)(21,"label",17),g(22),m(23,"translate"),c(),l(24,"input",18,19),C("ngModelChange",function(s){return
v(e),d().card.VideoDevice=s}),c(),l(26,"small",14),g(27),m(28,"translate"),c()(),l(29,"div",10)(30,"label",20),g(31),m(32,"translate"),c(),l(33,"p-inputNumber",21),C("ngModelChange",function(s){return
v(e),d().card.SignalTimeout=s}),c(),l(34,"small",14),g(35),m(36,"translate"),c()(),l(37,
"div",10)(38,"label",22),g(39),m(40,"translate"),c(),l(41,"p-inputNumber",23),C("ngModelChange",function(s){return
v(e),d().card.ChannelTimeout=s}),c(),l(42,"small",14),g(43),m(44,"translate"),c()()()()}if(2&t){const
e=d();a(4),S(f(5,23,"settings.capture.ceton.ipaddress_label")),a(2),p("ngModel",e.work.ipAddress),a(3),T("
",f(10,25,"settings.capture.ceton.ipaddress_desc"),"
"),a(4),S(f(14,27,"settings.capture.ceton.tuner_label")),a(2),p("ngModel",e.work.tuner),a(3),T("
",f(19,29,"settings.capture.ceton.tuner_desc"),"
"),a(4),S(f(23,31,"settings.capture.ceton.deviceid_label")),a(2),p("ngModel",e.card.VideoDevice),a(3),T("
",f(28,33,"settings.capture.ceton.deviceid_desc"),"
"),a(4),S(f(32,35,"settings.capture.sigtimeout_label")),a(2),p("ngModel",e.card.SignalTimeout)("showButtons",!0)("min",250)("max",6e4)("step",250),a(2),T("
",f(36,37,"settings.capture.sigtimeout_desc"),"
"),a(4),S(f(40,39,"settings.capture.tunetimeout_label")),a(2),p("ngModel",e.card.ChannelTimeout)("showButtons",!
0)("min",1750)("max",65e3)("step",250),a(2),T("
",f(44,41,"settings.capture.tunetimeout_desc")," ")}}function
GX(t,i){1&t&&(k(0,"p-message",29),m(1,"translate")),2&t&&x("text",f(1,1,"common.savesuccess"))}function
UX(t,i){1&t&&(k(0,"p-message",30),m(1,"translate")),2&t&&x("text",f(1,1,"common.networkfail"))}function
zX(t,i){if(1&t){const
e=I();l(0,"div",24)(1,"div",25),_(2,GX,2,3,"p-message",26),_(3,UX,2,3,"p-message",27),c(),l(4,"p-button",28),C("onClick",function(){v(e);const
s=d(),r=F(1);return
s.saveForm(),r.form.markAsPristine()}),m(5,"translate"),c()()}if(2&t){const
e=d(),n=F(1);a(2),p("ngIf",e.work.successCount>0&&0==e.work.errorCount&&!n.dirty),a(1),p("ngIf",e.work.errorCount>0),a(1),x("label",f(5,4,"common.save")),p("disabled",!n.dirty||!e.card.VideoDevice||e.setupService.schedulingEnabled)}}let
jX=(()=>{class
t{constructor(e,n){this.captureCardService=e,this.setupService=n,this.work={ipAddress:"",tuner:"",successCount:0,errorCount:0},this.saveObserver={next:s=>{this.card.C
ardId&&s.bool?this.work.successCount++:!this.card.CardId&&s.int?(this.work.successCount++,this.card.CardId=s.int):(this.work.errorCount++,this.currentForm.form.markAsDirty())},error:s=>{console.error(s),this.work.errorCount++,this.currentForm.form.markAsDirty()}}}ngOnInit(){if(this.card.VideoDevice){const
e=this.card.VideoDevice.split("-");if(2==e.length){this.work.ipAddress=e[0];const
n=e[1].split(".");2==n.length&&(this.work.tuner=n[1])}}}ngAfterViewInit(){this.currentForm.valueChanges.pipe(yS(50)).subscribe(()=>this.card.VideoDevice=this.work.ipAddress+"-RTP."+this.work.tuner),this.setupService.setCurrentForm(this.currentForm),this.topElement.nativeElement.scrollIntoView({behavior:"smooth",block:"start"})}saveForm(){console.log("save
form
clicked"),this.work.successCount=0,this.work.errorCount=0,this.card.CardId?this.cardList.CaptureCardList.CaptureCards.forEach(e=>{(e.CardId==this.card.CardId||e.ParentId==this.card.CardId)&&(this.captureCardService.UpdateCaptureCard(e.CardId,"vi
deodevice",this.card.VideoDevice).subscribe(this.saveObserver),this.captureCardService.UpdateCaptureCard(e.CardId,"signal_timeout",String(this.card.SignalTimeout)).subscribe(this.saveObserver),this.captureCardService.UpdateCaptureCard(e.CardId,"channel_timeout",String(this.card.ChannelTimeout)).subscribe(this.saveObserver))}):this.captureCardService.AddCaptureCard(this.card).subscribe(this.saveObserver)}}return
t.\u0275fac=function(e){return
new(e||t)(D(Gt),D(Me))},t.\u0275cmp=z({type:t,selectors:[["app-ceton"]],viewQuery:function(e,n){if(1&e&&(W(NX,5),W(VX,5)),2&e){let
s;V(s=B())&&(n.currentForm=s.first),V(s=B())&&(n.topElement=s.first)}},inputs:{card:"card",cardList:"cardList"},decls:9,vars:0,consts:[["name","cetonform",1,"ml-3","mr-3"],["cetonform","ngForm"],["top",""],[1,"m-5"],["pTemplate","title"],["pTemplate","subtitle"],["pTemplate","content"],["pTemplate","footer"],[1,"grid"],[1,"mb-4","w-full"],[1,"form-group","field"],["for","ip",1,"label","block"],["pInputText","","id","
ip","name","ip",1,"mb-2","form-control","w-full",3,"ngModel","ngModelChange"],["ipAddress","ngModel"],[1,"block"],["for","tuner",1,"label","block"],["pInputText","","id","tuner","name","tuner",1,"mb-2","form-control","w-full",3,"ngModel","ngModelChange"],["for","VideoDevice",1,"label","block"],["pInputText","","id","VideoDevice","name","VideoDevice","disabled","true",1,"mb-2","form-control","w-full",3,"ngModel","ngModelChange"],["VideoDevice","ngModel"],["for","SignalTimeout",1,"label","block"],["name","SignalTimeout","id","SignalTimeout",3,"ngModel","showButtons","min","max","step","ngModelChange"],["for","ChannelTimeout",1,"label","block"],["name","ChannelTimeout","id","ChannelTimeout",3,"ngModel","showButtons","min","max","step","ngModelChange"],[1,"grid","nogutter"],[1,"col-12"],["severity","success",3,"text",4,"ngIf"],["severity","error",3,"text",4,"ngIf"],["icon","pi
pi-save","iconPos","left",1,"col","pr-1",3,"label","disabled","onClick"],["severity","success",3,"text"],["seve
rity","error",3,"text"]],template:function(e,n){1&e&&(l(0,"form",0,1),k(2,"span",null,2),l(4,"p-card",3),_(5,BX,2,3,"ng-template",4),_(6,HX,0,0,"ng-template",5),_(7,qX,45,43,"ng-template",6),_(8,zX,6,6,"ng-template",7),c()())},directives:[ze,Ue,He,Ne,ne,Ye,Te,_e,pt,Q,qe,ve],pipes:[ce],styles:[""]}),t})();const
$X=["dvbform"],WX=["top"];function
KX(t,i){1&t&&(g(0),m(1,"translate")),2&t&&T("
",f(1,1,"settings.capture.dvb.title")," ")}function
QX(t,i){}const JX=function(){return{minWidth:"80%"}};function
YX(t,i){if(1&t){const
e=I();l(0,"p-dropdown",43,44),C("ngModelChange",function(s){return
v(e),d(2).currentDevice=s})("onChange",function(){return
v(e),d(2).updateDevice()}),c()}if(2&t){const
e=d(2);q(A(6,JX)),p("options",e.captureDeviceList.CaptureDeviceList.CaptureDevices)("ngModel",e.currentDevice)("editable",!1)("maxlength",0)}}function
ZX(t,i){if(1&t&&(l(0,"div")(1,"small",45),g(2),c()()),2&t){const
e=d(2);a(2),T(" ",e.work.warningMessage," ")}}function
XX(t,i){if(1&t){const e=I();
l(0,"input",46,47),C("ngModelChange",function(s){return
v(e),d(2).currentDevice.FrontendName=s}),c()}2&t&&p("ngModel",d(2).currentDevice.FrontendName)}function
eee(t,i){if(1&t){const
e=I();l(0,"p-dropdown",48,49),C("ngModelChange",function(s){return
v(e),d(2).card.InputName=s}),c()}if(2&t){const
e=d(2);p("options",e.currentDevice.InputNames)("ngModel",e.card.InputName)}}function
tee(t,i){if(1&t){const
e=I();l(0,"p-button",50),C("onClick",function(){return
v(e),d(2).work.displayNewDiseqc=!0}),m(1,"translate"),c()}2&t&&x("label",f(1,1,"settings.capture.dvb.newsatellite_button"))}function
nee(t,i){if(1&t){const
e=I();l(0,"p-button",51),C("onClick",function(){return
v(e),d(2).work.displayNewDiseqc=!1}),m(1,"translate"),c(),l(2,"p-button",52),C("onClick",function(){return
v(e),d(2).newDiseqc()}),m(3,"translate"),c()}if(2&t){const
e=d(2);x("label",f(1,3,"common.cancel")),a(2),x("label",f(3,5,"common.ok")),p("disabled",e.selectedDiseqcType.inactive)}}function
iee(t,i){if(1&t){const e=I();l
(0,"p-button",53),C("onClick",function(){v(e);const s=d(2);return
s.setupRootTrees(),s.work.displayConnectDevice=!0}),m(1,"translate"),m(2,"translate"),c()}2&t&&(x("label",f(1,2,"settings.capture.dvb.satellite_connect")),x("pTooltip",f(2,4,"settings.capture.dvb.satellite_connect_tooltip")))}function
see(t,i){if(1&t){const
e=I();l(0,"p-button",51),C("onClick",function(){return
v(e),d(2).work.displayConnectDevice=!1}),m(1,"translate"),c(),l(2,"p-button",52),C("onClick",function(){return
v(e),d(2).selectDiseqc()}),m(3,"translate"),c()}if(2&t){const
e=d(2);x("label",f(1,3,"common.cancel")),a(2),x("label",f(3,5,"common.ok")),p("disabled",!e.work.selectedDiseqcTree)}}function
ree(t,i){if(1&t){const
e=I();l(0,"p-button",54),C("onClick",function(){return
v(e),d(2).canDeleteDiseqc()}),c()}}function oee(t,i){if(1&t){const
e=I();l(0,"p-button",55),C("click",function(){return
v(e),d(2).work.displayDeleteDiseqc=!1}),m(1,"translate"),c(),l(2,"p-button",56),C("click",function(){return
v(e),d(2).de
leteDiseqc()}),m(3,"translate"),c()}2&t&&(x("label",f(1,2,"common.no")),a(2),x("label",f(3,4,"common.yes")))}function
aee(t,i){if(1&t){const
e=I();l(0,"p-button",57),C("onClick",function(){return
v(e),d(2).work.displayDisconnect=!0}),m(1,"translate"),c()}2&t&&x("label",f(1,1,"settings.capture.dvb.satellite_disconnect"))}function
lee(t,i){if(1&t){const
e=I();l(0,"p-button",55),C("click",function(){return
v(e),d(2).work.displayDisconnect=!1}),m(1,"translate"),c(),l(2,"p-button",56),C("click",function(){return
v(e),d(2).unSelectDiseqc()}),m(3,"translate"),c()}2&t&&(x("label",f(1,2,"common.no")),a(2),x("label",f(3,4,"common.yes")))}function
cee(t,i){1&t&&(k(0,"p-message",58),m(1,"translate")),2&t&&x("text",f(1,1,"settings.capture.dvb.satellite_disconnect_error"))}function
uee(t,i){if(1&t){const
e=I();l(0,"app-lnb",59),C("baseEvent",function(s){return
v(e),d(2).setDiseqcObject(s)}),c()}if(2&t){const
e=d(2);p("diseqcTree",e.diseqcTree)("diseqcTreeList",e.diseqcTreeList)("dvbComponent",e)}
}function dee(t,i){if(1&t){const
e=I();l(0,"app-rotor",59),C("baseEvent",function(s){return
v(e),d(2).setDiseqcObject(s)}),c()}if(2&t){const
e=d(2);p("diseqcTree",e.diseqcTree)("diseqcTreeList",e.diseqcTreeList)("dvbComponent",e)}}function
pee(t,i){if(1&t){const
e=I();l(0,"app-switch",59),C("baseEvent",function(s){return
v(e),d(2).setDiseqcObject(s)}),c()}if(2&t){const
e=d(2);p("diseqcTree",e.diseqcTree)("diseqcTreeList",e.diseqcTreeList)("dvbComponent",e)}}function
hee(t,i){if(1&t){const
e=I();l(0,"app-unicable",59),C("baseEvent",function(s){return
v(e),d(2).setDiseqcObject(s)}),c()}if(2&t){const
e=d(2);p("diseqcTree",e.diseqcTree)("diseqcTreeList",e.diseqcTreeList)("dvbComponent",e)}}const
Md=function(){return{width:"50vw"}};function mee(t,i){if(1&t){const
e=I();l(0,"div",8)(1,"div",9)(2,"div",10)(3,"label",11),g(4),m(5,"translate"),c(),_(6,YX,2,7,"p-dropdown",12),_(7,ZX,3,1,"div",13),l(8,"small",14),g(9),m(10,"translate"),c()(),l(11,"div",10)(12,"label",15),g(13),m(14,"translate"
),c(),_(15,XX,2,1,"input",16),l(16,"small",14),g(17),m(18,"translate"),c()(),l(19,"div",10)(20,"label",17),g(21),m(22,"translate"),c(),_(23,eee,2,2,"p-dropdown",18),l(24,"small",14),g(25),m(26,"translate"),c()(),l(27,"div",10)(28,"label",19),g(29),m(30,"translate"),c(),l(31,"p-inputNumber",20),C("ngModelChange",function(s){return
v(e),d().card.SignalTimeout=s}),c(),l(32,"small",14),g(33),m(34,"translate"),c()(),l(35,"div",10)(36,"label",21),g(37),m(38,"translate"),c(),l(39,"p-inputNumber",22),C("ngModelChange",function(s){return
v(e),d().card.ChannelTimeout=s}),c(),l(40,"small",14),g(41),m(42,"translate"),c()(),l(43,"div",10)(44,"p-checkbox",23,24),C("ngModelChange",function(s){return
v(e),d().card.DVBWaitForSeqStart=s}),m(46,"translate"),c(),l(47,"small",14),g(48),m(49,"translate"),c()(),l(50,"div",10)(51,"p-checkbox",25,26),C("ngModelChange",function(s){return
v(e),d().card.DVBOnDemand=s}),m(53,"translate"),c(),l(54,"small",14),g(55),m(56,"translate"),c()(),l(57,"div",10)(58,"p-ch
eckbox",27,28),C("ngModelChange",function(s){return
v(e),d().card.DVBEITScan=s}),m(60,"translate"),c(),l(61,"small",14),g(62),m(63,"translate"),c()(),l(64,"div",10)(65,"label",29),g(66),m(67,"translate"),c(),l(68,"p-inputNumber",30),C("ngModelChange",function(s){return
v(e),d().card.DVBTuningDelay=s}),c(),l(69,"small",14),g(70),m(71,"translate"),c()()(),l(72,"p-fieldset",31),m(73,"translate"),_(74,tee,2,3,"p-button",32),l(75,"p-dialog",33),C("visibleChange",function(s){return
v(e),d().work.displayNewDiseqc=s}),m(76,"translate"),l(77,"label",34),g(78),m(79,"translate"),c(),l(80,"p-listbox",35),C("ngModelChange",function(s){return
v(e),d().selectedDiseqcType=s})("onDblClick",function(){return
v(e),d().newDiseqc()}),c(),_(81,nee,4,7,"ng-template",7),c(),g(82," \xa0
"),_(83,iee,3,6,"p-button",36),l(84,"p-dialog",33),C("visibleChange",function(s){return
v(e),d().work.displayConnectDevice=s}),m(85,"translate"),l(86,"label",37),g(87),m(88,"translate"),c(),l(89,"p-listbox",38),C("ngModelCha
nge",function(s){return
v(e),d().work.selectedDiseqcTree=s})("onDblClick",function(){return
v(e),d().selectDiseqc()}),c(),_(90,see,4,7,"ng-template",7),c(),_(91,ree,1,0,"p-button",39),l(92,"p-dialog",33),C("visibleChange",function(s){return
v(e),d().work.displayDeleteDiseqc=s}),m(93,"translate"),l(94,"h2"),g(95),m(96,"translate"),c(),l(97,"p"),g(98),m(99,"translate"),c(),_(100,oee,4,6,"ng-template",7),c(),g(101,"
\xa0
"),_(102,aee,2,3,"p-button",40),l(103,"p-dialog",33),C("visibleChange",function(s){return
v(e),d().work.displayDisconnect=s}),m(104,"translate"),l(105,"h2"),g(106),m(107,"translate"),c(),l(108,"p"),g(109),m(110,"translate"),c(),_(111,lee,4,6,"ng-template",7),c(),_(112,cee,2,3,"p-message",41),_(113,uee,1,3,"app-lnb",42),_(114,dee,1,3,"app-rotor",42),_(115,pee,1,3,"app-switch",42),_(116,hee,1,3,"app-unicable",42),c()()}if(2&t){const
e=d();a(4),S(f(5,93,"settings.capture.dvb.device_label")),a(2),p("ngIf",e.work.isReady),a(1),p("ngIf",e.work.warningMessage),a(2),T("
",f(10
,95,"settings.capture.device_desc"),"
"),a(4),S(f(14,97,"settings.capture.dvb.frontend_label")),a(2),p("ngIf",e.work.isReady),a(2),T("
",f(18,99,"settings.capture.frontend_desc"),"
"),a(4),S(f(22,101,"settings.capture.dvb.inputname_label")),a(2),p("ngIf",e.work.isReady),a(2),T("
",f(26,103,"settings.capture.inputname_desc"),"
"),a(4),S(f(30,105,"settings.capture.sigtimeout_label")),a(2),p("ngModel",e.card.SignalTimeout)("showButtons",!0)("min",250)("max",6e4)("step",250),a(2),T("
",f(34,107,"settings.capture.sigtimeout_desc"),"
"),a(4),S(f(38,109,"settings.capture.tunetimeout_label")),a(2),p("ngModel",e.card.ChannelTimeout)("showButtons",!0)("min",1750)("max",65e3)("step",250),a(2),T("
",f(42,111,"settings.capture.tunetimeout_desc"),"
"),a(3),x("label",f(46,113,"settings.capture.dvb.wait_label")),p("ngModel",e.card.DVBWaitForSeqStart)("binary",!0),a(4),T("
",f(49,115,"settings.capture.dvb.wait_desc"),"
"),a(3),x("label",f(53,117,"settings.capture.dvb.ondemand_label")),p("ngModel",e.
card.DVBOnDemand)("binary",!0),a(4),T("
",f(56,119,"settings.capture.dvb.ondemand_desc"),"
"),a(3),x("label",f(60,121,"settings.capture.dvb.eitscan_label")),p("ngModel",e.card.DVBEITScan)("binary",!0),a(4),T("
",f(63,123,"settings.capture.dvb.eitscan_desc"),"
"),a(4),S(f(67,125,"settings.capture.dvb.tuningdelay_label")),a(2),p("ngModel",e.card.DVBTuningDelay)("showButtons",!0)("min",0)("max",2e3)("step",25),a(2),T("
",f(71,127,"settings.capture.dvb.tuningdelay_desc"),"
"),a(2),x("legend",f(73,129,"settings.capture.dvb.satellite_heading")),p("toggleable",!0)("collapsed",!0),a(2),p("ngIf",!e.diseqcTree),a(1),q(A(151,Md)),x("header",f(76,131,"settings.capture.dvb.newsatellite_heading")),p("visible",e.work.displayNewDiseqc)("modal",!0)("draggable",!1)("resizable",!1),a(3),S(f(79,133,"settings.capture.dvb.newsatellite_devtype")),a(2),p("options",e.captureCardService.diseqcTypes)("ngModel",e.selectedDiseqcType),a(3),p("ngIf",!e.diseqcTree),a(1),q(A(152,Md)),x("header",f(85,135,"settings.c
apture.dvb.satellite_connect")),p("visible",e.work.displayConnectDevice)("modal",!0)("draggable",!1)("resizable",!1),a(3),S(f(88,137,"settings.capture.dvb.satellite_select")),a(2),p("options",e.diseqcRootTrees)("ngModel",e.work.selectedDiseqcTree),a(2),p("ngIf",e.diseqcTree),a(1),q(A(153,Md)),x("header",f(93,139,"settings.capture.dvb.satellite_delete_header")),p("visible",e.work.displayDeleteDiseqc)("modal",!0)("draggable",!1)("resizable",!1),a(3),S(f(96,141,"settings.common.ru_sure")),a(3),S(f(99,143,"settings.capture.dvb.satellite_delete_desc")),a(4),p("ngIf",e.diseqcTree),a(1),q(A(154,Md)),x("header",f(104,145,"settings.capture.dvb.satellite_disconnect")),p("visible",e.work.displayDisconnect)("modal",!0)("draggable",!1)("resizable",!1),a(3),S(f(107,147,"settings.common.ru_sure")),a(3),S(f(110,149,"settings.capture.dvb.satellite_disconnect_warning")),a(3),p("ngIf",e.work.diseqcError),a(1),p("ngIf",e.diseqcTree&&"lnb"==e.diseqcTree.Type),a(1),p("ngIf",e.diseqcTree&&"rotor"==e.diseq
cTree.Type),a(1),p("ngIf",e.diseqcTree&&"switch"==e.diseqcTree.Type),a(1),p("ngIf",e.diseqcTree&&"scr"==e.diseqcTree.Type)}}function
fee(t,i){1&t&&(k(0,"p-message",64),m(1,"translate")),2&t&&x("text",f(1,1,"common.savesuccess"))}function
gee(t,i){1&t&&(k(0,"p-message",58),m(1,"translate")),2&t&&x("text",f(1,1,"common.networkfail"))}function
_ee(t,i){if(1&t){const
e=I();l(0,"div",60)(1,"div",61),_(2,fee,2,3,"p-message",62),_(3,gee,2,3,"p-message",41),c(),l(4,"p-button",63),C("onClick",function(){v(e);const
s=d(),r=F(1);return
s.saveForm(),r.form.markAsPristine()}),m(5,"translate"),c()()}if(2&t){const
e=d(),n=F(1);a(2),p("ngIf",e.work.successCount>0&&0==e.work.errorCount&&!n.dirty),a(1),p("ngIf",e.work.errorCount>0),a(1),x("label",f(5,4,"common.save")),p("disabled",!n.dirty||!e.card.VideoDevice||e.setupService.schedulingEnabled)}}let
wS=(()=>{class
t{constructor(e,n,s){this.captureCardService=e,this.setupService=n,this.translate=s,this.work={InputName:"",successCount:0,errorCount:0,in
putNames:[""],isReady:!1,warningMessage:"",displayNewDiseqc:!1,displayDeleteDiseqc:!1,displayConnectDevice:!1,displayDisconnect:!1,selectedDiseqcTree:0,diseqcError:!1},this.captureDeviceList={CaptureDeviceList:{CaptureDevices:[]}},this.diseqcRootTrees=[],this.diseqcTree=void
0,this.messages={devNotExist:"settings.capture.dvb.devNotExist",unknownName:"settings.capture.dvb.unknownName",devInUse:"settings.capture.dvb.devInUse",noDevSelected:"settings.capture.dvb.noDevSelected"},this.currentDevice={FrontendName:"Unknown",InputNames:[""]},this.selectedDiseqcType={description:"",type:"",inactive:!0},this.saveObserver={next:r=>{r.bool?(console.log("saveObserver
success",r),this.work.successCount++):!this.card.CardId&&r.int?(console.log("saveObserver
success",r),this.work.successCount++,this.card.CardId||(this.card.CardId=r.int,this.cardList.CaptureCardList.CaptureCards.push(this.card),this.captureCardService.UpdateCaptureCard(this.card.CardId,"inputname",this.card.InputName).subscribe(this
.saveObserver))):(console.log("saveObserver
error",r),this.work.errorCount++,this.currentForm.form.markAsDirty())},error:r=>{console.log("saveObserver
error",r),this.work.errorCount++,this.currentForm.form.markAsDirty()}},s.get(this.messages.devNotExist).subscribe(r=>this.messages.devNotExist=r),s.get(this.messages.unknownName).subscribe(r=>this.messages.unknownName=r),s.get(this.messages.devInUse).subscribe(r=>this.messages.devInUse=r),s.get(this.messages.noDevSelected).subscribe(r=>this.messages.noDevSelected=r)}ngOnInit(){null==this.card.DVBWaitForSeqStart&&(this.card.DVBWaitForSeqStart=!0),null==this.card.DVBOnDemand&&(this.card.DVBOnDemand=!0),null==this.card.DVBEITScan&&(this.card.DVBEITScan=!0),null==this.card.CardId&&(this.card.CardId=0),null==this.card.VideoDevice&&(this.card.VideoDevice=""),null==this.card.DiSEqCId&&(this.card.DiSEqCId=0),this.captureCardService.GetCaptureDeviceList("DVB").subscribe({next:e=>{this.captureDeviceList=e,this.setupDevice()},error:e=>{console.l
og("GetCaptureDeviceList",e),this.work.errorCount++}}),this.setupDiseqc()}ngAfterViewInit(){this.setupService.setCurrentForm(this.currentForm),this.topElement.nativeElement.scrollIntoView({behavior:"smooth",block:"start"})}setupDiseqc(){this.diseqcTree=this.diseqcTreeList.DiseqcTreeList.DiseqcTrees.find(e=>e.DiSEqCId==this.card.DiSEqCId),this.work.diseqcError=!1}newDiseqc(){this.work.displayNewDiseqc=!1,this.work.diseqcError=!1,this.diseqcTree={Type:this.selectedDiseqcType.type,Description:this.selectedDiseqcType.description}}setupRootTrees(){this.diseqcRootTrees=this.diseqcTreeList.DiseqcTreeList.DiseqcTrees.filter(e=>!e.ParentId)}selectDiseqc(){this.work.displayConnectDevice=!1,this.work.diseqcError=!1,this.card.DiSEqCId=this.work.selectedDiseqcTree,this.currentForm.form.markAsDirty(),this.setupDiseqc()}unSelectDiseqc(){this.work.displayDisconnect=!1,this.work.diseqcError=!1,this.card.DiSEqCId=0,this.currentForm.form.markAsDirty(),this.diseqcTree=void
0,this.captureCardService.Del
eteDiseqcConfig(this.card.CardId).subscribe()}canDeleteDiseqc(){this.work.diseqcError=!1,this.cardList.CaptureCardList.CaptureCards.filter(n=>n.DiSEqCId==this.card.DiSEqCId).length>1?this.work.diseqcError=!0:this.work.displayDeleteDiseqc=!0}deleteDiseqc(){this.work.displayDeleteDiseqc=!1,this.work.successCount=0,this.work.errorCount=0,this.diseqcTree&&this.diseqcTree.DiSEqCId&&(this.captureCardService.DeleteDiseqcTree(this.diseqcTree.DiSEqCId).subscribe({next:e=>{e.bool?this.work.successCount++:(this.work.errorCount++,console.log("DeleteDiseqcTree",e)),this.parent.loadDiseqc()},error:e=>{console.log("DeleteDiseqcTree",e),this.work.errorCount++}}),this.card.DiSEqCId=0,this.card.CardId&&(this.cardList.CaptureCardList.CaptureCards.forEach(e=>{(e.CardId==this.card.CardId||e.ParentId==this.card.CardId)&&this.captureCardService.UpdateCaptureCard(e.CardId,"DiSEqCId",String(this.card.DiSEqCId)).subscribe(this.saveObserver)}),this.captureCardService.DeleteDiseqcConfig(this.card.CardId).subsc
ribe())),this.diseqcTree=void
0}setDiseqcObject(e){this.diseqcComponent=e}setupDevice(){if(this.card.VideoDevice||this.captureDeviceList.CaptureDeviceList.CaptureDevices.unshift({VideoDevice:"",FrontendName:this.messages.noDevSelected,InputNames:[""]}),this.card.VideoDevice){let
e=this.captureDeviceList.CaptureDeviceList.CaptureDevices.find(n=>n.VideoDevice==this.card.VideoDevice);e?this.currentDevice=e:(this.currentDevice={VideoDevice:this.card.VideoDevice,FrontendName:this.messages.devNotExist,InputNames:[""]},this.captureDeviceList.CaptureDeviceList.CaptureDevices.push(this.currentDevice))}this.currentDevice&&this.card.InputName&&(this.currentDevice.InputNames.includes(this.card.InputName)||this.currentDevice.InputNames.push(this.card.InputName)),this.work.isReady=!0}updateDevice(){this.card.VideoDevice=this.currentDevice.VideoDevice,this.card.InputName=this.currentDevice.DefaultInputName,this.card.SignalTimeout=this.currentDevice.SignalTimeout,this.card.ChannelTimeout=this.curre
ntDevice.ChannelTimeout,this.checkInUse()}checkInUse(){this.work.warningMessage=this.cardList.CaptureCardList.CaptureCards.find(n=>n.VideoDevice==this.currentDevice.VideoDevice&&n.CardId!=this.card.CardId)?this.messages.devInUse:""}saveForm(){this.work.successCount=0,this.work.errorCount=0,this.work.diseqcError=!1,this.diseqcTree&&this.diseqcComponent?this.diseqcComponent.saveForm(0,{next:e=>{var
n;this.card.DiSEqCId&&e.bool&&this.card.DiSEqCId==(null===(n=this.diseqcTree)||void
0===n?void
0:n.DiSEqCId)?(this.work.successCount++,this.saveCard()):e.int&&this.diseqcTree?(this.card.DiSEqCId=e.int,this.diseqcTree.DiSEqCId=e.int,this.diseqcTreeList.DiseqcTreeList.DiseqcTrees.push(this.diseqcTree),this.saveCard()):(console.log("saveForm",e),this.work.errorCount++,this.currentForm.form.markAsDirty())},error:e=>{console.log("saveForm",e),this.work.errorCount++,this.currentForm.form.markAsDirty()},complete:()=>{}}):this.saveCard()}saveCard(){this.card.CardId?this.cardList.CaptureCardList.Cap
tureCards.forEach(e=>{(e.CardId==this.card.CardId||e.ParentId==this.card.CardId)&&(this.captureCardService.UpdateCaptureCard(e.CardId,"videodevice",this.card.VideoDevice).subscribe(this.saveObserver),this.captureCardService.UpdateCaptureCard(e.CardId,"dvb_wait_for_seqstart",this.card.DVBWaitForSeqStart?"1":"0").subscribe(this.saveObserver),this.captureCardService.UpdateCaptureCard(e.CardId,"dvb_on_demand",this.card.DVBOnDemand?"1":"0").subscribe(this.saveObserver),this.captureCardService.UpdateCaptureCard(e.CardId,"signal_timeout",String(this.card.SignalTimeout)).subscribe(this.saveObserver),this.captureCardService.UpdateCaptureCard(e.CardId,"channel_timeout",String(this.card.ChannelTimeout)).subscribe(this.saveObserver),this.captureCardService.UpdateCaptureCard(e.CardId,"dvb_tuning_delay",String(this.card.DVBTuningDelay)).subscribe(this.saveObserver),this.captureCardService.UpdateCaptureCard(e.CardId,"dvb_eitscan",String(this.card.DVBEITScan?"1":"0")).subscribe(this.saveObserver),t
his.captureCardService.UpdateCaptureCard(e.CardId,"inputname",this.card.InputName).subscribe(this.saveObserver),this.captureCardService.UpdateCaptureCard(e.CardId,"DiSEqCId",String(this.card.DiSEqCId)).subscribe(this.saveObserver))}):this.captureCardService.AddCaptureCard(this.card).subscribe(this.saveObserver)}}return
t.\u0275fac=function(e){return
new(e||t)(D(Gt),D(Me),D(Oe))},t.\u0275cmp=z({type:t,selectors:[["app-dvb"]],viewQuery:function(e,n){if(1&e&&(W($X,5),W(WX,5)),2&e){let
s;V(s=B())&&(n.currentForm=s.first),V(s=B())&&(n.topElement=s.first)}},inputs:{card:"card",cardList:"cardList",diseqcTreeList:"diseqcTreeList",parent:"parent"},decls:9,vars:0,consts:[["name","dvbform",1,"ml-3","mr-3"],["dvbform","ngForm"],["top",""],[1,"m-5"],["pTemplate","title"],["pTemplate","subtitle"],["pTemplate","content"],["pTemplate","footer"],[1,"grid"],[1,"mb-4","w-full"],[1,"form-group","field"],["for","VideoDevice",1,"label","block"],["optionLabel","VideoDevice","name","VideoDevice",3,"options
","ngModel","editable","maxlength","style","ngModelChange","onChange",4,"ngIf"],[4,"ngIf"],[1,"block"],["for","FrontendName",1,"label","block"],["pInputText","","id","FrontendName","name","FrontendName","disabled","true","class","mb-2
form-control
w-full",3,"ngModel","ngModelChange",4,"ngIf"],["for","InputName",1,"label","block"],["name","InputName",3,"options","ngModel","ngModelChange",4,"ngIf"],["for","SignalTimeout",1,"label","block"],["name","SignalTimeout","id","SignalTimeout",3,"ngModel","showButtons","min","max","step","ngModelChange"],["for","ChannelTimeout",1,"label","block"],["name","ChannelTimeout","id","ChannelTimeout",3,"ngModel","showButtons","min","max","step","ngModelChange"],["inputId","DVBWaitForSeqStart","name","DVBWaitForSeqStart",1,"label","mb-2","w-full",3,"ngModel","binary","label","ngModelChange"],["DVBWaitForSeqStart","ngModel"],["inputId","DVBOnDemand","name","DVBOnDemand",1,"label","mb-2","w-full",3,"ngModel","binary","label","ngModelChange"],["DVBOnDemand
","ngModel"],["inputId","DVBEITScan","name","DVBEITScan",1,"label","mb-2","w-full",3,"ngModel","binary","label","ngModelChange"],["DVBEITScan","ngModel"],["for","DVBTuningDelay",1,"label","block"],["name","DVBTuningDelay","id","DVBTuningDelay",3,"ngModel","showButtons","min","max","step","ngModelChange"],[1,"mb-4","w-full",3,"legend","toggleable","collapsed"],["icon","pi
pi-plus-circle","styleClass","p-button-plain",3,"label","onClick",4,"ngIf"],[3,"header","visible","modal","draggable","resizable","visibleChange"],["for","disenqcTypes",1,"label","block"],["optionLabel","description","name","disenqcTypes","optionDisabled","inactive",3,"options","ngModel","ngModelChange","onDblClick"],["icon","pi
pi-plus-circle","styleClass","p-button-plain",3,"label","pTooltip","onClick",4,"ngIf"],["for","diseqcRootTrees",1,"label","block"],["optionLabel","Description","name","diseqcRootTrees","optionValue","DiSEqCId",3,"options","ngModel","ngModelChange","onDblClick"],["styleClass","p-button-warnin
g","label","Delete Satellite Devices","icon","pi
pi-trash",3,"onClick",4,"ngIf"],["icon","pi
pi-minus-circle","styleClass","p-button-warning",3,"label","onClick",4,"ngIf"],["severity","error",3,"text",4,"ngIf"],[3,"diseqcTree","diseqcTreeList","dvbComponent","baseEvent",4,"ngIf"],["optionLabel","VideoDevice","name","VideoDevice",3,"options","ngModel","editable","maxlength","ngModelChange","onChange"],["VideoDevice","ngModel"],[1,"p-error","block"],["pInputText","","id","FrontendName","name","FrontendName","disabled","true",1,"mb-2","form-control","w-full",3,"ngModel","ngModelChange"],["FrontendName","ngModel"],["name","InputName",3,"options","ngModel","ngModelChange"],["InputName","ngModel"],["icon","pi
pi-plus-circle","styleClass","p-button-plain",3,"label","onClick"],["icon","pi
pi-times-circle","styleClass","p-button-plain",3,"label","onClick"],["icon","pi
pi-check-circle","styleClass","p-button-plain",3,"label","disabled","onClick"],["icon","pi
pi-plus-circle","styleClass","p-bu
tton-plain",3,"label","pTooltip","onClick"],["styleClass","p-button-warning","label","Delete
Satellite Devices","icon","pi
pi-trash",3,"onClick"],["icon","pi
pi-times-circle","styleClass","p-button-plain",3,"label","click"],["icon","pi
pi-check-circle","styleClass","p-button-plain",3,"label","click"],["icon","pi
pi-minus-circle","styleClass","p-button-warning",3,"label","onClick"],["severity","error",3,"text"],[3,"diseqcTree","diseqcTreeList","dvbComponent","baseEvent"],[1,"grid","nogutter"],[1,"col-12"],["severity","success",3,"text",4,"ngIf"],["icon","pi
pi-save","iconPos","left",1,"col","pr-1",3,"label","disabled","onClick"],["severity","success",3,"text"]],template:function(e,n){1&e&&(l(0,"form",0,1),k(2,"span",null,2),l(4,"p-card",3),_(5,KX,2,3,"ng-template",4),_(6,QX,0,0,"ng-template",5),_(7,mee,117,155,"ng-template",6),_(8,_ee,6,6,"ng-template",7),c()())},styles:[""]}),t})();const
bee=["lnbform"];function
vee(t,i){1&t&&(g(0),m(1,"translate")),2&t&&T("
",f(1,1,"settings.captur
e.diseqc.lnb.title")," ")}function Cee(t,i){}const
TS=function(){return{minWidth:"80%"}};function yee(t,i){if(1&t){const
e=I();l(0,"div",6)(1,"div",7)(2,"div",8)(3,"label",9),g(4),m(5,"translate"),c(),l(6,"input",10,11),C("ngModelChange",function(s){return
v(e),d().diseqcTree.Description=s}),c(),l(8,"small",12),g(9),m(10,"translate"),c()(),l(11,"div",8)(12,"label",13),g(13),m(14,"translate"),c(),l(15,"p-dropdown",14,15),C("ngModelChange",function(s){return
v(e),d().currentPreset=s})("onChange",function(){return
v(e),d().updatePreset()}),c(),l(17,"small",12),g(18),m(19,"translate"),c()(),l(20,"div",8)(21,"label",16),g(22),m(23,"translate"),c(),l(24,"p-dropdown",17,18),C("ngModelChange",function(s){return
v(e),d().currentSubType=s})("onChange",function(){return
v(e),d().updateSubType()}),c(),l(26,"small",12),g(27),m(28,"translate"),c()(),l(29,"div",8)(30,"label",19),g(31),m(32,"translate"),c(),l(33,"p-inputNumber",20),C("ngModelChange",function(s){return
v(e),d().work.LnbLofSwitch=s})
,c(),l(34,"small",12),g(35),m(36,"translate"),c()(),l(37,"div",8)(38,"label",21),g(39),m(40,"translate"),c(),l(41,"p-inputNumber",22),C("ngModelChange",function(s){return
v(e),d().work.LnbLofLo=s}),c(),l(42,"small",12),g(43),m(44,"translate"),c()(),l(45,"div",8)(46,"label",23),g(47),m(48,"translate"),c(),l(49,"p-inputNumber",24),C("ngModelChange",function(s){return
v(e),d().work.LnbLofHi=s}),c(),l(50,"small",12),g(51),m(52,"translate"),c()(),l(53,"div",8)(54,"p-checkbox",25,26),C("ngModelChange",function(s){return
v(e),d().diseqcTree.LnbPolInv=s}),m(56,"translate"),c(),l(57,"small",12),g(58),m(59,"translate"),c()()()()}if(2&t){const
e=d();a(4),S(f(5,41,"settings.capture.diseqc.description_label")),a(2),p("ngModel",e.diseqcTree.Description),a(3),T("
",f(10,43,"settings.capture.diseqc.description_desc"),"
"),a(4),S(f(14,45,"settings.capture.diseqc.lnb.preset_label")),a(2),q(A(69,TS)),p("options",e.lnbPresetList)("ngModel",e.currentPreset)("editable",!1)("maxlength",0)("scrollHeight","
400px"),a(3),T("
",f(19,47,"settings.capture.diseqc.lnb.preset_desc"),"
"),a(4),S(f(23,49,"settings.capture.diseqc.lnb.type_label")),a(2),q(A(70,TS)),p("options",e.lnbSubTypes)("ngModel",e.currentSubType)("editable",!1)("maxlength",0)("disabled","custom"!=e.currentPreset.SubType),a(3),T("
",f(28,51,"settings.capture.diseqc.lnb.type_desc"),"
"),a(4),S(f(32,53,"settings.capture.diseqc.lnb.lofswitch_label")),a(2),p("ngModel",e.work.LnbLofSwitch)("useGrouping",!1)("disabled","custom"!=e.currentPreset.SubType||"voltage_tone"!=e.diseqcTree.SubType),a(2),T("
",f(36,55,"settings.capture.diseqc.lnb.lofswitch_desc"),"
"),a(4),S(f(40,57,"settings.capture.diseqc.lnb.loflow_label")),a(2),p("ngModel",e.work.LnbLofLo)("useGrouping",!1)("disabled","custom"!=e.currentPreset.SubType),a(2),T("
",f(44,59,"settings.capture.diseqc.lnb.loflow_desc"),"
"),a(4),S(f(48,61,"settings.capture.diseqc.lnb.lofhigh_label")),a(2),p("ngModel",e.work.LnbLofHi)("useGrouping",!1)("disabled","custom"!=e.currentPreset.Sub
Type||!("voltage_tone"==e.diseqcTree.SubType||"bandstacked"==e.diseqcTree.SubType)),a(2),T("
",f(52,63,"settings.capture.diseqc.lnb.lofhigh_desc"),"
"),a(3),x("label",f(56,65,"settings.capture.diseqc.lnb.reversed_label")),p("ngModel",e.diseqcTree.LnbPolInv)("binary",!0)("disabled","custom"!=e.currentPreset.SubType),a(4),T("
",f(59,67,"settings.capture.diseqc.lnb.reversed_desc")," ")}}let
kd=(()=>{class
t{constructor(e,n,s){this.captureCardService=e,this.setupService=n,this.translate=s,this.baseEvent=new
H,this.work={LnbLofSwitch:0,LnbLofLo:0,LnbLofHi:0},this.lnbSubTypes=[{Name:"settings.capture.diseqc.subtype_legacy",SubType:"fixed"},{Name:"settings.capture.diseqc.subtype_standard",SubType:"voltage"},{Name:"settings.capture.diseqc.subtype_universal",SubType:"voltage_tone"},{Name:"settings.capture.diseqc.subtype_backstacked",SubType:"bandstacked"}],this.lnbPresetList=[{Name:"settings.capture.diseqc.lnbpreset_universal",SubType:"voltage_tone",LnbLofSwitch:11700,LnbLofLo:9750,LnbLofHi:
10600,LnbPolInv:!1},{Name:"settings.capture.diseqc.lnbpreset_single",SubType:"voltage",LnbLofSwitch:0,LnbLofLo:9750,LnbLofHi:0,LnbPolInv:!1},{Name:"settings.capture.diseqc.lnbpreset_circular",SubType:"voltage",LnbLofSwitch:0,LnbLofLo:11250,LnbLofHi:0,LnbPolInv:!1},{Name:"settings.capture.diseqc.lnbpreset_Linear",SubType:"voltage",LnbLofSwitch:0,LnbLofLo:10750,LnbLofHi:0,LnbPolInv:!1},{Name:"settings.capture.diseqc.lnbpreset_cband",SubType:"voltage",LnbLofSwitch:0,LnbLofLo:5150,LnbLofHi:0,LnbPolInv:!1},{Name:"settings.capture.diseqc.lnbpreset_dishpro",SubType:"bandstacked",LnbLofSwitch:0,LnbLofLo:11250,LnbLofHi:14350,LnbPolInv:!1},{Name:"settings.capture.diseqc.lnbpreset_custom",SubType:"custom",LnbLofSwitch:0,LnbLofLo:0,LnbLofHi:0,LnbPolInv:!1}],this.setupDone=!1,this.lnbSubTypes.forEach(r=>s.get(r.Name).subscribe(o=>r.Name=o)),this.lnbPresetList.forEach(r=>s.get(r.Name).subscribe(o=>r.Name=o))}ngOnInit(){if(this.diseqcTree.DiSEqCId){let
e;this.work.LnbLofSwitch=this.diseqcTree.LnbL
ofSwitch/1e3,this.work.LnbLofLo=this.diseqcTree.LnbLofLo/1e3,this.work.LnbLofHi=this.diseqcTree.LnbLofHi/1e3,e=this.lnbPresetList.find(n=>n.SubType==this.diseqcTree.SubType&&n.LnbLofSwitch==this.work.LnbLofSwitch&&n.LnbLofLo==this.work.LnbLofLo&&n.LnbLofHi==this.work.LnbLofHi&&n.LnbPolInv==this.diseqcTree.LnbPolInv),this.currentPreset=null==e?this.lnbPresetList[this.lnbPresetList.length-1]:e}else
this.currentPreset=this.lnbPresetList[0],this.updatePreset()}ngAfterViewInit(){this.baseEvent.emit(this),this.currentForm.valueChanges.subscribe(n=>{this.setupDone&&this.currentForm.dirty&&this.dvbComponent.currentForm.form.markAsDirty()}),new
Je(n=>{setTimeout(()=>{n.next(1),n.complete()},100)}).subscribe(n=>{this.setupDone=!0,this.diseqcTree.DiSEqCId?this.currentForm.form.markAsPristine():(this.currentForm.form.markAsDirty(),this.dvbComponent.currentForm.form.markAsDirty())})}updatePreset(){if("custom"!=this.currentPreset.SubType){let
e=this.lnbSubTypes.find(n=>n.SubType==this.currentPres
et.SubType);e&&(this.currentSubType=e,this.updateSubType()),this.work.LnbLofSwitch=this.currentPreset.LnbLofSwitch,this.work.LnbLofLo=this.currentPreset.LnbLofLo,this.work.LnbLofHi=this.currentPreset.LnbLofHi,this.diseqcTree.LnbPolInv=this.currentPreset.LnbPolInv}}updateSubType(){this.diseqcTree.SubType=this.currentSubType.SubType}saveForm(e,n){this.diseqcTree.ParentId=e,this.diseqcTree.LnbLofSwitch=1e3*this.work.LnbLofSwitch,this.diseqcTree.LnbLofLo=1e3*this.work.LnbLofLo,this.diseqcTree.LnbLofHi=1e3*this.work.LnbLofHi,this.diseqcTree.DiSEqCId?this.captureCardService.UpdateDiseqcTree(this.diseqcTree).subscribe(n):this.captureCardService.AddDiseqcTree(this.diseqcTree).subscribe({next:s=>{s.int&&s.int>0?(this.diseqcTree.DiSEqCId=s.int,n.next&&n.next(s)):(console.log("UpdateDiseqcTree",s),n.error(s))},error:s=>{console.log("UpdateDiseqcTree",s),n.error(s)}})}}return
t.\u0275fac=function(e){return
new(e||t)(D(Gt),D(Me),D(Oe))},t.\u0275cmp=z({type:t,selectors:[["app-lnb"]],viewQuery:fun
ction(e,n){if(1&e&&W(bee,5),2&e){let
s;V(s=B())&&(n.currentForm=s.first)}},inputs:{diseqcTree:"diseqcTree",diseqcTreeList:"diseqcTreeList",dvbComponent:"dvbComponent"},outputs:{baseEvent:"baseEvent"},decls:6,vars:0,consts:[["name","lnbform",1,"ml-3","mr-3"],["lnbform","ngForm"],[1,"m-5"],["pTemplate","title"],["pTemplate","subtitle"],["pTemplate","content"],[1,"grid"],[1,"mb-4","w-full"],[1,"form-group","field"],["for","Description",1,"label","block"],["pInputText","","id","ip","name","Description",1,"mb-2","form-control","w-full",3,"ngModel","ngModelChange"],["Description","ngModel"],[1,"block"],["for","LnbPreset",1,"label","block"],["optionLabel","Name","name","LnbPreset",3,"options","ngModel","editable","maxlength","scrollHeight","ngModelChange","onChange"],["LnbPreset","ngModel"],["for","SubType",1,"label","block"],["optionLabel","Name","name","SubType",3,"options","ngModel","editable","maxlength","disabled","ngModelChange","onChange"],["SubType","ngModel"],["for","LnbLofSwitch"
,1,"label","block"],["name","LnbLofSwitch","id","LnbLofSwitch","mode","decimal","inputId","withoutgrouping",3,"ngModel","useGrouping","disabled","ngModelChange"],["for","LnbLofLo",1,"label","block"],["name","LnbLofLo","id","LnbLofLo","mode","decimal","inputId","withoutgrouping",3,"ngModel","useGrouping","disabled","ngModelChange"],["for","LnbLofHi",1,"label","block"],["name","LnbLofHi","id","LnbLofHi","mode","decimal","inputId","withoutgrouping",3,"ngModel","useGrouping","disabled","ngModelChange"],["inputId","LnbPolInv","name","LnbPolInv",1,"label","mb-2","w-full",3,"ngModel","binary","label","disabled","ngModelChange"],["LnbPolInv","ngModel"]],template:function(e,n){1&e&&(l(0,"form",0,1)(2,"p-card",2),_(3,vee,2,3,"ng-template",3),_(4,Cee,0,0,"ng-template",4),_(5,yee,60,71,"ng-template",5),c()())},directives:[ze,Ue,He,Ne,ne,Ye,Te,_e,Ot,_n,pt,sn],pipes:[ce],styles:[""]}),t})();const
wee=["rotorform"];function
Tee(t,i){1&t&&(g(0),m(1,"translate")),2&t&&T("
",f(1,1,"settings.capture.d
iseqc.rotor.title")," ")}function See(t,i){}function
xee(t,i){1&t&&(l(0,"tr")(1,"th"),g(2,"Position
#"),c(),l(3,"th"),g(4,"Angle (Degrees)"),c()())}function
Dee(t,i){if(1&t){const
e=I();l(0,"p-inputNumber",43),C("ngModelChange",function(s){return
v(e),d().$implicit.Angle=s}),c()}2&t&&p("ngModel",d().$implicit.Angle)("min",-180)("max",180)("maxFractionDigits",5)}function
Mee(t,i){if(1&t&&(l(0,"div"),g(1),c()),2&t){const
e=d(2).$implicit;a(1),T("",e.Angle," (W)")}}function
kee(t,i){if(1&t&&(l(0,"div"),g(1),c()),2&t){const
e=d(2).$implicit;a(1),T(" ",e.Angle," (E)")}}function
Iee(t,i){if(1&t&&(_(0,Mee,2,1,"div",44),_(1,kee,2,1,"div",44)),2&t){const
e=d().$implicit;p("ngIf",e.Angle<0),a(1),p("ngIf",null!=e.Angle&&e.Angle>=0)}}function
Eee(t,i){if(1&t&&(l(0,"tr")(1,"td"),g(2),c(),l(3,"td",40)(4,"p-cellEditor"),_(5,Dee,1,4,"ng-template",41),_(6,Iee,2,2,"ng-template",42),c()()()),2&t){const
e=i.$implicit;a(2),T(" ",e.Num," ")}}const
SS=function(){return{width:"25rem"}};function Ree(t,i){if
(1&t&&(l(0,"div",8)(1,"label",36),g(2),m(3,"translate"),c(),l(4,"div")(5,"p-table",37),_(6,xee,5,0,"ng-template",38),_(7,Eee,7,1,"ng-template",39),c()(),l(8,"small",12),g(9),m(10,"translate"),c()()),2&t){const
e=d(2);a(2),S(f(3,6,"settings.capture.diseqc.rotor.positions_label")),a(2),q(A(10,SS)),a(1),p("value",e.rotorPositions)("scrollable",!0),a(4),T("
",f(10,8,"settings.capture.diseqc.rotor.positions_desc"),"
")}}function Lee(t,i){if(1&t){const
e=I();l(0,"p-button",45),C("onClick",function(){return
v(e),d(2).work.displayNewDiseqc=!0}),m(1,"translate"),c()}2&t&&x("label",f(1,1,"settings.capture.dvb.newsatellite_button"))}function
Oee(t,i){if(1&t){const
e=I();l(0,"p-button",46),C("onClick",function(){return
v(e),d(2).work.displayNewDiseqc=!1}),m(1,"translate"),c(),l(2,"p-button",47),C("onClick",function(){return
v(e),d(2).newDiseqc()}),m(3,"translate"),c()}if(2&t){const
e=d(2);x("label",f(1,3,"common.cancel")),a(2),x("label",f(3,5,"common.ok")),p("disabled",e.selectedDiseqcType.inac
tive)}}function Aee(t,i){if(1&t){const
e=I();l(0,"p-button",48),C("onClick",function(){return
v(e),d(2).work.displayDeleteDiseqc=!0}),c()}2&t&&p("disabled",!d(2).diseqcSubTree)}function
Pee(t,i){if(1&t){const
e=I();l(0,"p-button",49),C("click",function(){return
v(e),d(2).work.displayDeleteDiseqc=!1}),m(1,"translate"),c(),l(2,"p-button",50),C("click",function(){return
v(e),d(2).deleteDiseqc()}),m(3,"translate"),c()}2&t&&(x("label",f(1,2,"common.no")),a(2),x("label",f(3,4,"common.yes")))}function
Fee(t,i){if(1&t){const
e=I();l(0,"app-lnb",51),C("baseEvent",function(s){return
v(e),d(2).setDiseqcObject(s)}),c()}if(2&t){const
e=d(2);p("diseqcTree",e.diseqcSubTree)("diseqcTreeList",e.diseqcTreeList)("dvbComponent",e.dvbComponent)}}function
Nee(t,i){if(1&t){const
e=I();l(0,"app-rotor",51),C("baseEvent",function(s){return
v(e),d(2).setDiseqcObject(s)}),c()}if(2&t){const
e=d(2);p("diseqcTree",e.diseqcSubTree)("diseqcTreeList",e.diseqcTreeList)("dvbComponent",e.dvbComponent)}}function
Vee(t,i
){if(1&t){const
e=I();l(0,"app-switch",51),C("baseEvent",function(s){return
v(e),d(2).setDiseqcObject(s)}),c()}if(2&t){const
e=d(2);p("diseqcTree",e.diseqcSubTree)("diseqcTreeList",e.diseqcTreeList)("dvbComponent",e.dvbComponent)}}function
Bee(t,i){if(1&t){const
e=I();l(0,"app-unicable",51),C("baseEvent",function(s){return
v(e),d(2).setDiseqcObject(s)}),c()}if(2&t){const
e=d(2);p("diseqcTree",e.diseqcSubTree)("diseqcTreeList",e.diseqcTreeList)("dvbComponent",e.dvbComponent)}}const
Hee=function(){return{minWidth:"80%"}},xS=function(){return{width:"50vw"}};function
qee(t,i){if(1&t){const
e=I();l(0,"div",6)(1,"div",7)(2,"div",8)(3,"label",9),g(4),m(5,"translate"),c(),l(6,"input",10,11),C("ngModelChange",function(s){return
v(e),d().diseqcTree.Description=s}),c(),l(8,"small",12),g(9),m(10,"translate"),c()(),l(11,"div",8)(12,"label",13),g(13),m(14,"translate"),c(),l(15,"p-inputNumber",14),C("ngModelChange",function(s){return
v(e),d().diseqcTree.CmdRepeat=s}),c(),l(16,"small",12),k(17,"div
",15),m(18,"translate"),c()(),l(19,"div",8)(20,"label",16),g(21),m(22,"translate"),c(),l(23,"p-dropdown",17,18),C("ngModelChange",function(s){return
v(e),d().currentSubType=s})("onChange",function(){return
v(e),d().updateSubType()}),c(),l(25,"small",12),g(26),m(27,"translate"),c()(),_(28,Ree,11,11,"div",19),l(29,"div",8)(30,"label",20),g(31),m(32,"translate"),c(),l(33,"p-inputNumber",21),C("ngModelChange",function(s){return
v(e),d().diseqcTree.RotorLoSpeed=s}),c(),l(34,"small",12),g(35),m(36,"translate"),c()(),l(37,"div",8)(38,"label",22),g(39),m(40,"translate"),c(),l(41,"p-inputNumber",23),C("ngModelChange",function(s){return
v(e),d().diseqcTree.RotorHiSpeed=s}),c(),l(42,"small",12),g(43),m(44,"translate"),c()(),l(45,"div",8)(46,"label",24),g(47),m(48,"translate"),c(),l(49,"p-inputNumber",25),C("ngModelChange",function(s){return
v(e),d().fields.Latitude=s}),c(),l(50,"small",12),g(51),m(52,"translate"),c()(),l(53,"div",8)(54,"label",26),g(55),m(56,"translate"),c(),l(57,"p-inputNumbe
r",27),C("ngModelChange",function(s){return
v(e),d().fields.Longitude=s}),c(),l(58,"small",12),g(59),m(60,"translate"),c()(),l(61,"p-fieldset",28),m(62,"translate"),_(63,Lee,2,3,"p-button",29),l(64,"p-dialog",30),C("visibleChange",function(s){return
v(e),d().work.displayNewDiseqc=s}),m(65,"translate"),l(66,"label",31),g(67),m(68,"translate"),c(),l(69,"p-listbox",32),C("ngModelChange",function(s){return
v(e),d().selectedDiseqcType=s})("onDblClick",function(){return
v(e),d().newDiseqc()}),c(),_(70,Oee,4,7,"ng-template",33),c(),_(71,Aee,1,1,"p-button",34),l(72,"p-dialog",30),C("visibleChange",function(s){return
v(e),d().work.displayDeleteDiseqc=s}),m(73,"translate"),l(74,"h2"),g(75),m(76,"translate"),c(),l(77,"p"),g(78),m(79,"translate"),c(),_(80,Pee,4,6,"ng-template",33),c(),_(81,Fee,1,3,"app-lnb",35),_(82,Nee,1,3,"app-rotor",35),_(83,Vee,1,3,"app-switch",35),_(84,Bee,1,3,"app-unicable",35),c()()()}if(2&t){const
e=d();a(4),S(f(5,65,"settings.capture.diseqc.description_label")),a(2),p(
"ngModel",e.diseqcTree.Description),a(3),T("
",f(10,67,"settings.capture.diseqc.description_desc"),"
"),a(4),S(f(14,69,"settings.capture.diseqc.cmdrepeat_label")),a(2),p("ngModel",e.diseqcTree.CmdRepeat)("showButtons",!0)("min",0)("max",15)("step",1),a(2),p("innerHTML",f(18,71,"settings.capture.diseqc.cmdrepeat_desc"),Bt),a(2),q(A(105,SS)),a(2),S(f(22,73,"settings.capture.diseqc.rotor.type_label")),a(2),q(A(106,Hee)),p("options",e.rotorSubTypes)("ngModel",e.currentSubType)("editable",!1)("maxlength",0),a(3),T("
",f(27,75,"settings.capture.diseqc.rotor.type_desc"),"
"),a(2),p("ngIf","diseqc_1_2"==e.diseqcTree.SubType),a(3),S(f(32,77,"settings.capture.diseqc.rotor.lospeed_label")),a(2),p("ngModel",e.diseqcTree.RotorLoSpeed)("maxFractionDigits",5),a(2),T("
",f(36,79,"settings.capture.diseqc.rotor.lospeed_desc"),"
"),a(4),S(f(40,81,"settings.capture.diseqc.rotor.hispeed_label")),a(2),p("ngModel",e.diseqcTree.RotorHiSpeed)("maxFractionDigits",5),a(2),T("
",f(44,83,"settings.capture.diseq
c.rotor.hispeed_desc"),"
"),a(4),S(f(48,85,"settings.capture.diseqc.rotor.latitude_label")),a(2),p("ngModel",e.fields.Latitude)("maxFractionDigits",5),a(2),T("
",f(52,87,"settings.capture.diseqc.rotor.latitude_desc"),"
"),a(4),S(f(56,89,"settings.capture.diseqc.rotor.longitude_label")),a(2),p("ngModel",e.fields.Longitude)("maxFractionDigits",5),a(2),T("
",f(60,91,"settings.capture.diseqc.rotor.longitude_desc"),"
"),a(2),x("legend",f(62,93,"settings.capture.dvb.satellite_heading")),p("toggleable",!0)("collapsed",!0),a(2),p("ngIf",!e.diseqcSubTree),a(1),q(A(107,xS)),x("header",f(65,95,"settings.capture.dvb.newsatellite_heading")),p("visible",e.work.displayNewDiseqc)("modal",!0)("draggable",!1)("resizable",!1),a(3),S(f(68,97,"settings.capture.dvb.newsatellite_devtype")),a(2),p("options",e.captureCardService.diseqcTypes)("ngModel",e.selectedDiseqcType),a(2),p("ngIf",e.diseqcSubTree),a(1),q(A(108,xS)),x("header",f(73,99,"settings.capture.dvb.satellite_delete_header")),p("visible",e.work.
displayDeleteDiseqc)("modal",!0)("draggable",!1)("resizable",!1),a(3),S(f(76,101,"settings.common.ru_sure")),a(3),S(f(79,103,"settings.capture.dvb.satellite_delete_desc")),a(3),p("ngIf",e.diseqcSubTree&&"lnb"==e.diseqcSubTree.Type),a(1),p("ngIf",e.diseqcSubTree&&"rotor"==e.diseqcSubTree.Type),a(1),p("ngIf",e.diseqcSubTree&&"switch"==e.diseqcSubTree.Type),a(1),p("ngIf",e.diseqcSubTree&&"scr"==e.diseqcSubTree.Type)}}let
Al=(()=>{class
t{constructor(e,n,s,r){this.captureCardService=e,this.setupService=n,this.translate=s,this.mythService=r,this.baseEvent=new
H,this.rotorSubTypes=[{Name:"settings.capture.diseqc.subtype_diseqc_1_2",SubType:"diseqc_1_2"},{Name:"settings.capture.diseqc.subtype_diseqc_1_3",SubType:"diseqc_1_3"}],this.selectedDiseqcType={description:"",type:"",inactive:!0},this.rotorPositions=[],this.fields={Latitude:null,Longitude:null},this.work={displayNewDiseqc:!1,displayDeleteDiseqc:!1},this.setupDone=!1,this.rotorSubTypes.forEach(o=>s.get(o.Name).subscribe(u=>o.Name=u))
}ngOnInit(){this.mythService.GetSetting({HostName:"_GLOBAL_",Key:"latitude"}).subscribe({next:e=>{e.String.length>0&&(this.fields.Latitude=Number(e.String))},error:()=>this.dvbComponent.work.errorCount++}),this.mythService.GetSetting({HostName:"_GLOBAL_",Key:"longitude"}).subscribe({next:e=>{e.String.length>0&&(this.fields.Longitude=Number(e.String))},error:()=>this.dvbComponent.work.errorCount++});for(let
e=0;e<48;e++)this.rotorPositions.push({Num:e+1,Angle:null});if(this.diseqcTree.DiSEqCId?this.diseqcTree.RotorPositions.split(":").forEach(n=>{let
s=n.split("=");if(2==s.length&&s[0].length>0&&s[1].length>0){let
r=Number.parseInt(s[1])-1,o=Number.parseFloat(s[0]);r>-1&&r<48&&(this.rotorPositions[r].Angle=o)}}):(this.diseqcTree.RotorHiSpeed=2.5,this.diseqcTree.RotorLoSpeed=1.9,this.diseqcTree.SubType="diseqc_1_3",this.diseqcTree.CmdRepeat=1),this.diseqcTree.SubType){let
e=this.rotorSubTypes.find(n=>n.SubType==this.diseqcTree.SubType);e&&(this.currentSubType=e)}this.diseqcSubTree=thi
s.diseqcTreeList.DiseqcTreeList.DiseqcTrees.find(e=>e.ParentId==this.diseqcTree.DiSEqCId)}ngAfterViewInit(){this.baseEvent.emit(this),this.currentForm.valueChanges.subscribe(n=>{this.setupDone&&this.currentForm.dirty&&this.dvbComponent.currentForm.form.markAsDirty()}),new
Je(n=>{setTimeout(()=>{n.next(1),n.complete()},100)}).subscribe(n=>{this.setupDone=!0,this.diseqcTree.DiSEqCId?this.currentForm.form.markAsPristine():(this.currentForm.form.markAsDirty(),this.dvbComponent.currentForm.form.markAsDirty())})}updateSubType(){this.diseqcTree.SubType=this.currentSubType.SubType}newDiseqc(){this.work.displayNewDiseqc=!1,this.diseqcSubTree={Type:this.selectedDiseqcType.type,Description:this.selectedDiseqcType.description}}setDiseqcObject(e){this.diseqcSubComponent=e}deleteDiseqc(){this.work.displayDeleteDiseqc=!1,this.dvbComponent.work.errorCount=0,this.diseqcSubTree&&this.diseqcSubTree.DiSEqCId&&this.captureCardService.DeleteDiseqcTree(this.diseqcSubTree.DiSEqCId).subscribe({next:e=>{e.bo
ol||(console.log("DeleteDiseqcTree",e),this.dvbComponent.work.errorCount++)},error:e=>{console.log("DeleteDiseqcTree",e),this.dvbComponent.work.errorCount++}}),0==this.dvbComponent.work.errorCount&&(this.diseqcSubTree=void
0)}saveForm(e,n){this.diseqcTree.ParentId=e,null!=this.fields.Latitude&&this.mythService.PutSetting({HostName:"_GLOBAL_",Key:"latitude",Value:String(this.fields.Latitude)}).subscribe(this.dvbComponent.saveObserver),null!=this.fields.Longitude&&this.mythService.PutSetting({HostName:"_GLOBAL_",Key:"longitude",Value:String(this.fields.Longitude)}).subscribe(this.dvbComponent.saveObserver),this.diseqcTree.RotorPositions="",this.rotorPositions.forEach(s=>{null!=s.Angle&&(this.diseqcTree.RotorPositions.length>0&&(this.diseqcTree.RotorPositions=this.diseqcTree.RotorPositions+":"),this.diseqcTree.RotorPositions=this.diseqcTree.RotorPositions+s.Angle+"="+s.Num)}),this.diseqcTree.DiSEqCId?(this.captureCardService.UpdateDiseqcTree(this.diseqcTree).subscribe(n),this.diseqcSub
Component&&this.diseqcSubComponent.saveForm(this.diseqcTree.DiSEqCId,{error:s=>{n.error(s)}})):this.captureCardService.AddDiseqcTree(this.diseqcTree).subscribe({next:s=>{s.int&&s.int>0?(this.diseqcTree.DiSEqCId=s.int,n.next(s),this.diseqcSubComponent&&this.diseqcSubComponent.saveForm(this.diseqcTree.DiSEqCId,{next:r=>{},error:r=>{n.error(r)}})):(console.log("UpdateDiseqcTree",s),n.error(s))},error:s=>{console.log("UpdateDiseqcTree",s),n.error(s)}})}}return
t.\u0275fac=function(e){return
new(e||t)(D(Gt),D(Me),D(Oe),D(qt))},t.\u0275cmp=z({type:t,selectors:[["app-rotor"]],viewQuery:function(e,n){if(1&e&&W(wee,5),2&e){let
s;V(s=B())&&(n.currentForm=s.first)}},inputs:{diseqcTree:"diseqcTree",diseqcTreeList:"diseqcTreeList",dvbComponent:"dvbComponent"},outputs:{baseEvent:"baseEvent"},decls:6,vars:0,consts:[["name","rotorform",1,"ml-3","mr-3"],["rotorform","ngForm"],[1,"m-5"],["pTemplate","title"],["pTemplate","subtitle"],["pTemplate","content"],[1,"grid"],[1,"mb-4","w-full"],[1,"form-grou
p","field"],["for","Description",1,"label","block"],["pInputText","","id","ip","name","Description",1,"mb-2","form-control","w-full",3,"ngModel","ngModelChange"],["Description","ngModel"],[1,"block"],["for","CmdRepeat",1,"label","block"],["name","CmdRepeat","id","CmdRepeat",3,"ngModel","showButtons","min","max","step","ngModelChange"],[3,"innerHTML"],["for","SubType",1,"label","block"],["optionLabel","Name","name","SubType",3,"options","ngModel","editable","maxlength","ngModelChange","onChange"],["SubType","ngModel"],["class","form-group
field",4,"ngIf"],["for","RotorLoSpeed",1,"label","block"],["name","RotorLoSpeed","id","RotorLoSpeed","mode","decimal",3,"ngModel","maxFractionDigits","ngModelChange"],["for","RotorHiSpeed",1,"label","block"],["name","RotorHiSpeed","id","RotorHiSpeed","mode","decimal",3,"ngModel","maxFractionDigits","ngModelChange"],["for","Latitude",1,"label","block"],["name","Latitude","id","Latitude","mode","decimal",3,"ngModel","maxFractionDigits","ngModelChange"
],["for","Longitude",1,"label","block"],["name","Longitude","id","Longitude","mode","decimal",3,"ngModel","maxFractionDigits","ngModelChange"],[1,"mb-4","w-full",3,"legend","toggleable","collapsed"],["icon","pi
pi-plus-circle","styleClass","p-button-plain",3,"label","onClick",4,"ngIf"],[3,"header","visible","modal","draggable","resizable","visibleChange"],["for","disenqcTypes",1,"label","block"],["optionLabel","description","name","disenqcTypes","optionDisabled","inactive",3,"options","ngModel","ngModelChange","onDblClick"],["pTemplate","footer"],["styleClass","p-button-warning","label","Delete
Satellite Devices","icon","pi
pi-trash",3,"disabled","onClick",4,"ngIf"],[3,"diseqcTree","diseqcTreeList","dvbComponent","baseEvent",4,"ngIf"],["for","RotorPositions",1,"label","block"],["dataKey","Num","responsiveLayout","scroll","name","RotorPositions","styleClass","p-datatable-gridlines","scrollHeight","20rem",3,"value","scrollable"],["pTemplate","header"],["pTemplate","body"],["pEditableC
olumn",""],["pTemplate","input"],["pTemplate","output"],["name","Angle",3,"ngModel","min","max","maxFractionDigits","ngModelChange"],[4,"ngIf"],["icon","pi
pi-plus-circle","styleClass","p-button-plain",3,"label","onClick"],["icon","pi
pi-times-circle","styleClass","p-button-plain",3,"label","onClick"],["icon","pi
pi-check-circle","styleClass","p-button-plain",3,"label","disabled","onClick"],["styleClass","p-button-warning","label","Delete
Satellite Devices","icon","pi
pi-trash",3,"disabled","onClick"],["icon","pi
pi-times-circle","styleClass","p-button-plain",3,"label","click"],["icon","pi
pi-check-circle","styleClass","p-button-plain",3,"label","click"],[3,"diseqcTree","diseqcTreeList","dvbComponent","baseEvent"]],template:function(e,n){1&e&&(l(0,"form",0,1)(2,"p-card",2),_(3,Tee,2,3,"ng-template",3),_(4,See,0,0,"ng-template",4),_(5,qee,85,109,"ng-template",5),c()())},styles:[""]}),t})();const
Gee=["unicableform"];function
Uee(t,i){1&t&&(g(0),m(1,"translate")),2&t&&T("
",f(1,1,"set
tings.capture.diseqc.unicable.title")," ")}function zee(t,i){}function
jee(t,i){if(1&t){const
e=I();l(0,"p-button",30),C("onClick",function(){return
v(e),d(2).work.displayNewDiseqc=!0}),m(1,"translate"),c()}2&t&&x("label",f(1,1,"settings.capture.dvb.newsatellite_button"))}function
$ee(t,i){if(1&t){const
e=I();l(0,"p-button",31),C("onClick",function(){return
v(e),d(2).work.displayNewDiseqc=!1}),m(1,"translate"),c(),l(2,"p-button",32),C("onClick",function(){return
v(e),d(2).newDiseqc()}),m(3,"translate"),c()}if(2&t){const
e=d(2);x("label",f(1,3,"common.cancel")),a(2),x("label",f(3,5,"common.ok")),p("disabled",e.selectedDiseqcType.inactive)}}function
Wee(t,i){if(1&t){const
e=I();l(0,"p-button",33),C("onClick",function(){return
v(e),d(2).work.displayDeleteDiseqc=!0}),c()}2&t&&p("disabled",!d(2).diseqcSubTree)}function
Kee(t,i){if(1&t){const
e=I();l(0,"p-button",34),C("click",function(){return
v(e),d(2).work.displayDeleteDiseqc=!1}),m(1,"translate"),c(),l(2,"p-button",35),C("click",funct
ion(){return
v(e),d(2).deleteDiseqc()}),m(3,"translate"),c()}2&t&&(x("label",f(1,2,"common.no")),a(2),x("label",f(3,4,"common.yes")))}function
Qee(t,i){if(1&t){const
e=I();l(0,"app-lnb",36),C("baseEvent",function(s){return
v(e),d(2).setDiseqcObject(s)}),c()}if(2&t){const
e=d(2);p("diseqcTree",e.diseqcSubTree)("diseqcTreeList",e.diseqcTreeList)("dvbComponent",e.dvbComponent)}}function
Jee(t,i){if(1&t){const
e=I();l(0,"app-rotor",36),C("baseEvent",function(s){return
v(e),d(2).setDiseqcObject(s)}),c()}if(2&t){const
e=d(2);p("diseqcTree",e.diseqcSubTree)("diseqcTreeList",e.diseqcTreeList)("dvbComponent",e.dvbComponent)}}function
Yee(t,i){if(1&t){const
e=I();l(0,"app-switch",36),C("baseEvent",function(s){return
v(e),d(2).setDiseqcObject(s)}),c()}if(2&t){const
e=d(2);p("diseqcTree",e.diseqcSubTree)("diseqcTreeList",e.diseqcTreeList)("dvbComponent",e.dvbComponent)}}function
Zee(t,i){if(1&t){const
e=I();l(0,"app-unicable",36),C("baseEvent",function(s){return
v(e),d(2).setDiseqcObject(s)}),c
()}if(2&t){const
e=d(2);p("diseqcTree",e.diseqcSubTree)("diseqcTreeList",e.diseqcTreeList)("dvbComponent",e.dvbComponent)}}const
DS=function(){return{width:"50vw"}};function Xee(t,i){if(1&t){const
e=I();l(0,"div",6)(1,"div",7)(2,"div",8)(3,"label",9),g(4),m(5,"translate"),c(),l(6,"input",10,11),C("ngModelChange",function(s){return
v(e),d().diseqcTree.Description=s}),c(),l(8,"small",12),g(9),m(10,"translate"),c()(),l(11,"div",8)(12,"label",13),g(13),m(14,"translate"),c(),l(15,"p-inputNumber",14),C("ngModelChange",function(s){return
v(e),d().diseqcTree.ScrUserband=s}),c(),l(16,"small",12),k(17,"div",15),m(18,"translate"),c()(),l(19,"div",8)(20,"label",16),g(21),m(22,"translate"),c(),l(23,"p-inputNumber",17),C("ngModelChange",function(s){return
v(e),d().diseqcTree.ScrFrequency=s}),c(),l(24,"small",12),g(25),m(26,"translate"),c()(),l(27,"div",8)(28,"label",18),g(29),m(30,"translate"),c(),l(31,"p-inputNumber",19),C("ngModelChange",function(s){return
v(e),d().diseqcTree.ScrPin=s}),c(),l(3
2,"small",12),g(33),m(34,"translate"),c()(),l(35,"div",8)(36,"label",20),g(37),m(38,"translate"),c(),l(39,"p-inputNumber",21),C("ngModelChange",function(s){return
v(e),d().diseqcTree.CmdRepeat=s}),c(),l(40,"small",12),k(41,"div",15),m(42,"translate"),c()(),l(43,"p-fieldset",22),m(44,"translate"),_(45,jee,2,3,"p-button",23),l(46,"p-dialog",24),C("visibleChange",function(s){return
v(e),d().work.displayNewDiseqc=s}),m(47,"translate"),l(48,"label",25),g(49),m(50,"translate"),c(),l(51,"p-listbox",26),C("ngModelChange",function(s){return
v(e),d().selectedDiseqcType=s})("onDblClick",function(){return
v(e),d().newDiseqc()}),c(),_(52,$ee,4,7,"ng-template",27),c(),_(53,Wee,1,1,"p-button",28),l(54,"p-dialog",24),C("visibleChange",function(s){return
v(e),d().work.displayDeleteDiseqc=s}),m(55,"translate"),l(56,"h2"),g(57),m(58,"translate"),c(),l(59,"p"),g(60),m(61,"translate"),c(),_(62,Kee,4,6,"ng-template",27),c(),_(63,Qee,1,3,"app-lnb",29),_(64,Jee,1,3,"app-rotor",29),_(65,Yee,1,3,"app-switch"
,29),_(66,Zee,1,3,"app-unicable",29),c()()()}if(2&t){const
e=d();a(4),S(f(5,55,"settings.capture.diseqc.description_label")),a(2),p("ngModel",e.diseqcTree.Description),a(3),T("
",f(10,57,"settings.capture.diseqc.description_desc"),"
"),a(4),S(f(14,59,"settings.capture.diseqc.unicable.userband_label")),a(2),p("ngModel",e.diseqcTree.ScrUserband)("showButtons",!0)("min",0)("max",7)("step",1),a(2),p("innerHTML",f(18,61,"settings.capture.diseqc.userband_desc"),Bt),a(4),S(f(22,63,"settings.capture.diseqc.unicable.frequency_label")),a(2),p("ngModel",e.diseqcTree.ScrFrequency)("useGrouping",!1),a(2),T("
",f(26,65,"settings.capture.diseqc.unicable.frequency_desc"),"
"),a(4),S(f(30,67,"settings.capture.diseqc.unicable.pin_label")),a(2),p("ngModel",e.diseqcTree.ScrPin)("useGrouping",!1)("min",-1)("max",255),a(2),T("
",f(34,69,"settings.capture.diseqc.unicable.pin_desc"),"
"),a(4),S(f(38,71,"settings.capture.diseqc.cmdrepeat_label")),a(2),p("ngModel",e.diseqcTree.CmdRepeat)("showButtons",!0)("m
in",0)("max",15)("step",1),a(2),p("innerHTML",f(42,73,"settings.capture.diseqc.cmdrepeat_desc"),Bt),a(2),x("legend",f(44,75,"settings.capture.dvb.satellite_heading")),p("toggleable",!0)("collapsed",!0),a(2),p("ngIf",!e.diseqcSubTree),a(1),q(A(87,DS)),x("header",f(47,77,"settings.capture.dvb.newsatellite_heading")),p("visible",e.work.displayNewDiseqc)("modal",!0)("draggable",!1)("resizable",!1),a(3),S(f(50,79,"settings.capture.dvb.newsatellite_devtype")),a(2),p("options",e.captureCardService.diseqcTypes)("ngModel",e.selectedDiseqcType),a(2),p("ngIf",e.diseqcSubTree),a(1),q(A(88,DS)),x("header",f(55,81,"settings.capture.dvb.satellite_delete_header")),p("visible",e.work.displayDeleteDiseqc)("modal",!0)("draggable",!1)("resizable",!1),a(3),S(f(58,83,"settings.common.ru_sure")),a(3),S(f(61,85,"settings.capture.dvb.satellite_delete_desc")),a(3),p("ngIf",e.diseqcSubTree&&"lnb"==e.diseqcSubTree.Type),a(1),p("ngIf",e.diseqcSubTree&&"rotor"==e.diseqcSubTree.Type),a(1),p("ngIf",e.diseqcSubTree
&&"switch"==e.diseqcSubTree.Type),a(1),p("ngIf",e.diseqcSubTree&&"scr"==e.diseqcSubTree.Type)}}let
Pl=(()=>{class
t{constructor(e){this.captureCardService=e,this.selectedDiseqcType={description:"",type:"",inactive:!0},this.baseEvent=new
H,this.work={displayNewDiseqc:!1,displayDeleteDiseqc:!1},this.setupDone=!1}ngOnInit(){this.diseqcTree.DiSEqCId||(this.diseqcTree.ScrUserband=0,this.diseqcTree.ScrFrequency=1210,this.diseqcTree.ScrPin=-1,this.diseqcTree.CmdRepeat=1),this.diseqcSubTree=this.diseqcTreeList.DiseqcTreeList.DiseqcTrees.find(e=>e.ParentId==this.diseqcTree.DiSEqCId)}ngAfterViewInit(){this.baseEvent.emit(this),this.currentForm.valueChanges.subscribe(n=>{this.setupDone&&this.currentForm.dirty&&this.dvbComponent.currentForm.form.markAsDirty()}),new
Je(n=>{setTimeout(()=>{n.next(1),n.complete()},100)}).subscribe(n=>{this.setupDone=!0,this.diseqcTree.DiSEqCId?this.currentForm.form.markAsPristine():(this.currentForm.form.markAsDirty(),this.dvbComponent.currentForm.form.markAsDirty
())})}newDiseqc(){this.work.displayNewDiseqc=!1,this.diseqcSubTree={Type:this.selectedDiseqcType.type,Description:this.selectedDiseqcType.description}}setDiseqcObject(e){this.diseqcSubComponent=e}deleteDiseqc(){this.work.displayDeleteDiseqc=!1,this.dvbComponent.work.errorCount=0,this.diseqcSubTree&&this.diseqcSubTree.DiSEqCId&&this.captureCardService.DeleteDiseqcTree(this.diseqcSubTree.DiSEqCId).subscribe({next:e=>{e.bool||(console.log("DeleteDiseqcTree",e),this.dvbComponent.work.errorCount++)},error:e=>{console.log("DeleteDiseqcTree",e),this.dvbComponent.work.errorCount++}}),0==this.dvbComponent.work.errorCount&&(this.diseqcSubTree=void
0)}saveForm(e,n){this.diseqcTree.ParentId=e,this.diseqcTree.DiSEqCId?(this.captureCardService.UpdateDiseqcTree(this.diseqcTree).subscribe(n),this.diseqcSubComponent&&this.diseqcSubComponent.saveForm(this.diseqcTree.DiSEqCId,{error:s=>{n.error(s)}})):this.captureCardService.AddDiseqcTree(this.diseqcTree).subscribe({next:s=>{s.int&&s.int>0?(this.diseq
cTree.DiSEqCId=s.int,n.next&&n.next(s),this.diseqcSubComponent&&this.diseqcSubComponent.saveForm(this.diseqcTree.DiSEqCId,{next:r=>{},error:r=>{n.error(r)}})):(console.log("UpdateDiseqcTree",s),n.error(s))},error:s=>{console.log("UpdateDiseqcTree",s),n.error(s)}})}}return
t.\u0275fac=function(e){return
new(e||t)(D(Gt))},t.\u0275cmp=z({type:t,selectors:[["app-unicable"]],viewQuery:function(e,n){if(1&e&&W(Gee,5),2&e){let
s;V(s=B())&&(n.currentForm=s.first)}},inputs:{diseqcTree:"diseqcTree",diseqcTreeList:"diseqcTreeList",dvbComponent:"dvbComponent"},outputs:{baseEvent:"baseEvent"},decls:6,vars:0,consts:[["name","unicableform",1,"ml-3","mr-3"],["unicableform","ngForm"],[1,"m-5"],["pTemplate","title"],["pTemplate","subtitle"],["pTemplate","content"],[1,"grid"],[1,"mb-4","w-full"],[1,"form-group","field"],["for","Description",1,"label","block"],["pInputText","","id","ip","name","Description",1,"mb-2","form-control","w-full",3,"ngModel","ngModelChange"],["Description","ngModel"],[1,"block
"],["for","ScrUserband",1,"label","block"],["name","ScrUserband","id","ScrUserband",3,"ngModel","showButtons","min","max","step","ngModelChange"],[3,"innerHTML"],["for","ScrFrequency",1,"label","block"],["name","ScrFrequency","id","ScrFrequency","mode","decimal","inputId","withoutgrouping",3,"ngModel","useGrouping","ngModelChange"],["for","ScrPin",1,"label","block"],["name","ScrPin","id","ScrPin","mode","decimal","inputId","withoutgrouping",3,"ngModel","useGrouping","min","max","ngModelChange"],["for","CmdRepeat",1,"label","block"],["name","CmdRepeat","id","CmdRepeat",3,"ngModel","showButtons","min","max","step","ngModelChange"],[1,"mb-4","w-full",3,"legend","toggleable","collapsed"],["icon","pi
pi-plus-circle","styleClass","p-button-plain",3,"label","onClick",4,"ngIf"],[3,"header","visible","modal","draggable","resizable","visibleChange"],["for","disenqcTypes",1,"label","block"],["optionLabel","description","name","disenqcTypes","optionDisabled","inactive",3,"options","ngModel","ng
ModelChange","onDblClick"],["pTemplate","footer"],["styleClass","p-button-warning","label","Delete
Satellite Devices","icon","pi
pi-trash",3,"disabled","onClick",4,"ngIf"],[3,"diseqcTree","diseqcTreeList","dvbComponent","baseEvent",4,"ngIf"],["icon","pi
pi-plus-circle","styleClass","p-button-plain",3,"label","onClick"],["icon","pi
pi-times-circle","styleClass","p-button-plain",3,"label","onClick"],["icon","pi
pi-check-circle","styleClass","p-button-plain",3,"label","disabled","onClick"],["styleClass","p-button-warning","label","Delete
Satellite Devices","icon","pi
pi-trash",3,"disabled","onClick"],["icon","pi
pi-times-circle","styleClass","p-button-plain",3,"label","click"],["icon","pi
pi-check-circle","styleClass","p-button-plain",3,"label","click"],[3,"diseqcTree","diseqcTreeList","dvbComponent","baseEvent"]],template:function(e,n){1&e&&(l(0,"form",0,1)(2,"p-card",2),_(3,Uee,2,3,"ng-template",3),_(4,zee,0,0,"ng-template",4),_(5,Xee,67,89,"ng-template",5),c()())},styles:[""]}),t})(
);const ete=["switchform"];function
tte(t,i){1&t&&(g(0),m(1,"translate")),2&t&&T("
",f(1,1,"settings.capture.diseqc.switch.title")," ")}function
nte(t,i){}function
ite(t,i){1&t&&(l(0,"div")(1,"small",27),g(2),m(3,"translate"),c()()),2&t&&(a(2),S(f(3,1,"settings.capture.diseqc.switchports_error")))}function
ste(t,i){if(1&t){const
e=I();l(0,"p-button",33),C("onClick",function(){v(e);const
s=d(2).index;return
d(2).displayDeleteThis[s]=!0}),c()}2&t&&p("disabled",!d(2).$implicit)}function
rte(t,i){if(1&t){const
e=I();l(0,"p-button",34),C("click",function(){v(e);const
s=d(2).index;return
d(2).displayDeleteThis[s]=!1}),m(1,"translate"),c(),l(2,"p-button",35),C("click",function(){v(e);const
s=d(2).index;return
d(2).deleteDiseqc(s)}),m(3,"translate"),c()}2&t&&(x("label",f(1,2,"common.no")),a(2),x("label",f(3,4,"common.yes")))}function
ote(t,i){if(1&t){const
e=I();l(0,"app-lnb",36),C("baseEvent",function(s){return
v(e),d(4).setDiseqcObject(s)}),c()}if(2&t){const e=d(2).$implicit,n=d(2);p("dis
eqcTree",e)("diseqcTreeList",n.diseqcTreeList)("dvbComponent",n.dvbComponent)}}function
ate(t,i){if(1&t){const
e=I();l(0,"app-rotor",36),C("baseEvent",function(s){return
v(e),d(4).setDiseqcObject(s)}),c()}if(2&t){const
e=d(2).$implicit,n=d(2);p("diseqcTree",e)("diseqcTreeList",n.diseqcTreeList)("dvbComponent",n.dvbComponent)}}function
lte(t,i){if(1&t){const
e=I();l(0,"app-switch",36),C("baseEvent",function(s){return
v(e),d(4).setDiseqcObject(s)}),c()}if(2&t){const
e=d(2).$implicit,n=d(2);p("diseqcTree",e)("diseqcTreeList",n.diseqcTreeList)("dvbComponent",n.dvbComponent)}}function
cte(t,i){if(1&t){const
e=I();l(0,"app-unicable",36),C("baseEvent",function(s){return
v(e),d(4).setDiseqcObject(s)}),c()}if(2&t){const
e=d(2).$implicit,n=d(2);p("diseqcTree",e)("diseqcTreeList",n.diseqcTreeList)("dvbComponent",n.dvbComponent)}}const
MS=function(){return{width:"50vw"}};function ute(t,i){if(1&t){const
e=I();l(0,"p-fieldset",28),m(1,"translate"),_(2,ste,1,1,"p-button",29),l(3,"p-dialog",30),C("
visibleChange",function(s){v(e);const r=d().index;return
d(2).displayDeleteThis[r]=s}),m(4,"translate"),l(5,"h2"),g(6),m(7,"translate"),c(),l(8,"p"),g(9),m(10,"translate"),c(),_(11,rte,4,6,"ng-template",31),c(),_(12,ote,1,3,"app-lnb",32),_(13,ate,1,3,"app-rotor",32),_(14,lte,1,3,"app-switch",32),_(15,cte,1,3,"app-unicable",32),c()}if(2&t){const
e=d(),n=e.$implicit,s=e.index,r=d(2);x("legend",f(1,17,"settings.capture.dvb.satellite_heading")),p("toggleable",!0)("collapsed",!0),a(2),p("ngIf",n),a(1),q(A(25,MS)),x("header",f(4,19,"settings.capture.dvb.satellite_delete_header")),p("visible",r.displayDeleteThis[s])("modal",!0)("draggable",!1)("resizable",!1),a(3),S(f(7,21,"settings.common.ru_sure")),a(3),S(f(10,23,"settings.capture.dvb.satellite_delete_desc")),a(3),p("ngIf",n&&"lnb"==n.Type),a(1),p("ngIf",n&&"rotor"==n.Type),a(1),p("ngIf",n&&"switch"==n.Type),a(1),p("ngIf",n&&"scr"==n.Type)}}function
dte(t,i){if(1&t&&(l(0,"div"),_(1,ute,16,26,"p-fieldset",26),c()),2&t){const
e=i.$implicit
;a(1),p("ngIf",e)}}function pte(t,i){if(1&t){const
e=I();l(0,"p-button",40),C("onClick",function(){return
v(e),d(3).work.displayNewDiseqc=!1}),m(1,"translate"),c(),l(2,"p-button",41),C("onClick",function(){return
v(e),d(3).newDiseqc()}),m(3,"translate"),c()}if(2&t){const
e=d(3);x("label",f(1,3,"common.cancel")),a(2),x("label",f(3,5,"common.ok")),p("disabled",e.selectedDiseqcType.inactive)}}function
hte(t,i){if(1&t){const
e=I();l(0,"p-fieldset",28),m(1,"translate"),l(2,"p-button",37),C("onClick",function(){return
v(e),d(2).work.displayNewDiseqc=!0}),m(3,"translate"),c(),l(4,"p-dialog",30),C("visibleChange",function(s){return
v(e),d(2).work.displayNewDiseqc=s}),m(5,"translate"),l(6,"label",38),g(7),m(8,"translate"),c(),l(9,"p-listbox",39),C("ngModelChange",function(s){return
v(e),d(2).selectedDiseqcType=s})("onDblClick",function(){return
v(e),d(2).newDiseqc()}),c(),_(10,pte,4,7,"ng-template",31),c()()}if(2&t){const
e=d(2);x("legend",f(1,14,"settings.capture.dvb.satellite_heading")),p(
"toggleable",!0)("collapsed",!1),a(2),x("label",f(3,16,"settings.capture.dvb.newsatellite_button")),a(2),q(A(22,MS)),x("header",f(5,18,"settings.capture.dvb.newsatellite_heading")),p("visible",e.work.displayNewDiseqc)("modal",!0)("draggable",!1)("resizable",!1),a(3),T("
",f(8,20,"settings.capture.dvb.newsatellite_devtype"),"
"),a(2),p("options",e.captureCardService.diseqcTypes)("ngModel",e.selectedDiseqcType)}}const
mte=function(){return{width:"25rem"}},fte=function(){return{minWidth:"80%"}};function
gte(t,i){if(1&t){const
e=I();l(0,"div",6)(1,"div",7)(2,"div",8)(3,"label",9),g(4),m(5,"translate"),c(),l(6,"input",10,11),C("ngModelChange",function(s){return
v(e),d().diseqcTree.Description=s}),c(),l(8,"small",12),g(9),m(10,"translate"),c()(),l(11,"div",8)(12,"label",13),g(13),m(14,"translate"),c(),l(15,"p-inputNumber",14),C("ngModelChange",function(s){return
v(e),d().diseqcTree.CmdRepeat=s}),c(),l(16,"small",12),k(17,"div",15),m(18,"translate"),c()(),l(19,"div",8)(20,"label",16),g(21)
,m(22,"translate"),c(),l(23,"p-dropdown",17,18),C("ngModelChange",function(s){return
v(e),d().currentSubType=s})("onChange",function(){return
v(e),d().updateSubType()}),c(),l(25,"small",12),g(26),m(27,"translate"),c()(),l(28,"div",8)(29,"label",19),g(30),m(31,"translate"),c(),l(32,"input",20,21),C("ngModelChange",function(s){return
v(e),d().work.addressText=s}),c(),l(34,"small",12),g(35),m(36,"translate"),c()(),l(37,"div",8)(38,"label",22),g(39),m(40,"translate"),c(),l(41,"p-inputNumber",23),C("ngModelChange",function(s){return
v(e),d().diseqcTree.SwitchPorts=s}),c(),l(42,"small",12),k(43,"div",15),m(44,"translate"),c(),_(45,ite,4,3,"div",24),c(),_(46,dte,2,1,"div",25),_(47,hte,11,23,"p-fieldset",26),c()()}if(2&t){const
e=d();a(4),S(f(5,35,"settings.capture.diseqc.description_label")),a(2),p("ngModel",e.diseqcTree.Description),a(3),T("
",f(10,37,"settings.capture.diseqc.description_desc"),"
"),a(4),S(f(14,39,"settings.capture.diseqc.cmdrepeat_label")),a(2),p("ngModel",e.diseqcTree.C
mdRepeat)("showButtons",!0)("min",0)("max",15)("step",1),a(2),p("innerHTML",f(18,41,"settings.capture.diseqc.cmdrepeat_desc"),Bt),a(2),q(A(55,mte)),a(2),S(f(22,43,"settings.capture.diseqc.switch.type_label")),a(2),q(A(56,fte)),p("options",e.switchSubTypes)("ngModel",e.currentSubType)("editable",!1)("maxlength",0),a(3),T("
",f(27,45,"settings.capture.diseqc.switch.type_desc"),"
"),a(4),S(f(31,47,"settings.capture.diseqc.address_label")),a(2),p("ngModel",e.work.addressText)("disabled",!e.work.enableAddrAndPorts),a(3),T("
",f(36,49,"settings.capture.diseqc.address_desc"),"
"),a(4),T("
",f(40,51,"settings.capture.diseqc.switchports_label"),"
"),a(2),p("ngModel",e.diseqcTree.SwitchPorts)("showButtons",!0)("min",0)("max",255)("step",1)("disabled",!e.work.enableAddrAndPorts),a(2),p("innerHTML",f(44,53,"settings.capture.diseqc.switchports_desc"),Bt),a(2),p("ngIf",e.diseqcSubTreeCount>e.diseqcTree.SwitchPorts),a(1),p("ngForOf",e.diseqcSubTree),a(1),p("ngIf",e.diseqcSubTreeCount<e.diseqcTree.
SwitchPorts)}}let wg=(()=>{class
t{constructor(e,n){this.captureCardService=e,this.translate=n,this.diseqcSubComponent=[],this.baseEvent=new
H,this.switchSubTypes=[{Name:"settings.capture.diseqc.switch.tone",SubType:"tone"},{Name:"settings.capture.diseqc.switch.voltage",SubType:"voltage"},{Name:"settings.capture.diseqc.switch.mini_diseqc",SubType:"mini_diseqc"},{Name:"settings.capture.diseqc.switch.diseqc",SubType:"diseqc"},{Name:"settings.capture.diseqc.switch.diseqc_uncom",SubType:"diseqc_uncom"},{Name:"settings.capture.diseqc.switch.legacy_sw21",SubType:"legacy_sw21"},{Name:"settings.capture.diseqc.switch.legacy_sw42",SubType:"legacy_sw42"},{Name:"settings.capture.diseqc.switch.legacy_sw64",SubType:"legacy_sw64"}],this.diseqcSubTree=[],this.diseqcSubTreeCount=0,this.work={addressText:"",displayNewDiseqc:!1,enableAddrAndPorts:!1},this.displayDeleteThis=[],this.selectedDiseqcType={description:"",type:"",inactive:!0},this.setupDone=!1,this.switchSubTypes.forEach(s=>n.get(s.Name).sub
scribe(r=>s.Name=r))}ngOnInit(){if(this.diseqcTree.DiSEqCId?this.work.addressText="0x"+this.diseqcTree.Address.toString(16):(this.diseqcTree.Address=16,this.work.addressText="0x10",this.diseqcTree.SwitchPorts=2,this.diseqcTree.SubType="tone",this.diseqcTree.CmdRepeat=1),this.diseqcTree.SubType){let
e=this.switchSubTypes.find(n=>n.SubType==this.diseqcTree.SubType);e&&(this.currentSubType=e)}this.updateSubType(),this.displayDeleteThis=[],this.diseqcTreeList.DiseqcTreeList.DiseqcTrees.forEach(e=>{e.ParentId==this.diseqcTree.DiSEqCId&&(this.diseqcSubTree.push(e),this.displayDeleteThis.push(!1),this.diseqcSubTreeCount++)})}ngAfterViewInit(){this.baseEvent.emit(this),this.currentForm.valueChanges.subscribe(n=>{this.setupDone&&this.currentForm.dirty&&this.dvbComponent.currentForm.form.markAsDirty()}),new
Je(n=>{setTimeout(()=>{n.next(1),n.complete()},100)}).subscribe(n=>{this.setupDone=!0,this.diseqcTree.DiSEqCId?this.currentForm.form.markAsPristine():(this.currentForm.form.markAsDirty(),t
his.dvbComponent.currentForm.form.markAsDirty())})}newDiseqc(){this.work.displayNewDiseqc=!1,this.diseqcSubTree.push({Type:this.selectedDiseqcType.type,Description:this.selectedDiseqcType.description}),this.displayDeleteThis.push(!1),this.diseqcSubTreeCount++}setDiseqcObject(e){this.diseqcSubComponent.findIndex(s=>s===e)<0&&this.diseqcSubComponent.push(e),console.log("setDiseqcObject",this.diseqcSubComponent.length)}deleteDiseqc(e){this.displayDeleteThis[e]=!1,this.dvbComponent.work.errorCount=0,console.log("Delete",e),null!=this.diseqcSubTree[e]&&(this.diseqcSubTree[e].DiSEqCId&&this.captureCardService.DeleteDiseqcTree(this.diseqcSubTree[e].DiSEqCId).subscribe({next:n=>{n.bool||(console.log("DeleteDiseqcTree",n),this.dvbComponent.work.errorCount++)},error:n=>{console.log("DeleteDiseqcTree",n),this.dvbComponent.work.errorCount++}}),0==this.dvbComponent.work.errorCount&&(this.diseqcSubTree[e]=null,this.diseqcSubTreeCount--))}updateSubType(){switch(this.diseqcTree.SubType=this.current
SubType.SubType,this.diseqcTree.SubType){case"tone":case"voltage":case"mini_diseqc":case"legacy_sw21":case"legacy_sw42":this.work.addressText="0x10",this.diseqcTree.SwitchPorts=2,this.work.enableAddrAndPorts=!1;break;case"legacy_sw64":this.work.addressText="0x10",this.diseqcTree.SwitchPorts=3,this.work.enableAddrAndPorts=!1;break;case"diseqc_uncom":case"diseqc":this.work.enableAddrAndPorts=!0}}saveForm(e,n){this.diseqcTree.ParentId=e,this.diseqcTree.Address=Number.parseInt(this.work.addressText),this.diseqcTree.DiSEqCId?(this.captureCardService.UpdateDiseqcTree(this.diseqcTree).subscribe(n),this.diseqcSubComponent.forEach(s=>{s&&s.saveForm(this.diseqcTree.DiSEqCId,{error:r=>{n.error(r)}})})):this.captureCardService.AddDiseqcTree(this.diseqcTree).subscribe({next:s=>{s.int&&s.int>0?(this.diseqcTree.DiSEqCId=s.int,n.next&&n.next(s),this.diseqcSubComponent.forEach(r=>{r&&r.saveForm(this.diseqcTree.DiSEqCId,{next:o=>{},error:o=>{n.error(o)}})})):(console.log("UpdateDiseqcTree",s),n.error
(s))},error:s=>{console.log("UpdateDiseqcTree",s),n.error(s)}})}}return
t.\u0275fac=function(e){return
new(e||t)(D(Gt),D(Oe))},t.\u0275cmp=z({type:t,selectors:[["app-switch"]],viewQuery:function(e,n){if(1&e&&W(ete,5),2&e){let
s;V(s=B())&&(n.currentForm=s.first)}},inputs:{diseqcTree:"diseqcTree",diseqcTreeList:"diseqcTreeList",dvbComponent:"dvbComponent"},outputs:{baseEvent:"baseEvent"},decls:6,vars:0,consts:[["name","switchform",1,"ml-3","mr-3"],["switchform","ngForm"],[1,"m-5"],["pTemplate","title"],["pTemplate","subtitle"],["pTemplate","content"],[1,"grid"],[1,"mb-4","w-full"],[1,"form-group","field"],["for","Description",1,"label","block"],["pInputText","","id","ip","name","Description",1,"mb-2","form-control","w-full",3,"ngModel","ngModelChange"],["Description","ngModel"],[1,"block"],["for","CmdRepeat",1,"label","block"],["name","CmdRepeat","id","CmdRepeat",3,"ngModel","showButtons","min","max","step","ngModelChange"],[3,"innerHTML"],["for","SubType",1,"label","block"],["optionL
abel","Name","name","SubType",3,"options","ngModel","editable","maxlength","ngModelChange","onChange"],["SubType","ngModel"],["for","Address",1,"label","block"],["pInputText","","id","Address","name","Address",1,"mb-2","form-control","w-full",3,"ngModel","disabled","ngModelChange"],["Address","ngModel"],["for","SwitchPorts",1,"label","block"],["name","SwitchPorts","id","SwitchPorts",3,"ngModel","showButtons","min","max","step","disabled","ngModelChange"],[4,"ngIf"],[4,"ngFor","ngForOf"],["class","mb-4
w-full",3,"legend","toggleable","collapsed",4,"ngIf"],[1,"p-error","block"],[1,"mb-4","w-full",3,"legend","toggleable","collapsed"],["styleClass","p-button-warning","label","Delete
Satellite Devices","icon","pi
pi-trash",3,"disabled","onClick",4,"ngIf"],[3,"header","visible","modal","draggable","resizable","visibleChange"],["pTemplate","footer"],[3,"diseqcTree","diseqcTreeList","dvbComponent","baseEvent",4,"ngIf"],["styleClass","p-button-warning","label","Delete
Satellite Devices","ico
n","pi
pi-trash",3,"disabled","onClick"],["icon","pi
pi-times-circle","styleClass","p-button-plain",3,"label","click"],["icon","pi
pi-check-circle","styleClass","p-button-plain",3,"label","click"],[3,"diseqcTree","diseqcTreeList","dvbComponent","baseEvent"],["icon","pi
pi-plus-circle","styleClass","p-button-plain",3,"label","onClick"],["for","disenqcTypes",1,"label","block"],["optionLabel","description","name","disenqcTypes","optionDisabled","inactive",3,"options","ngModel","ngModelChange","onDblClick"],["icon","pi
pi-times-circle","styleClass","p-button-plain",3,"label","onClick"],["icon","pi
pi-check-circle","styleClass","p-button-plain",3,"label","disabled","onClick"]],template:function(e,n){1&e&&(l(0,"form",0,1)(2,"p-card",2),_(3,tte,2,3,"ng-template",3),_(4,nte,0,0,"ng-template",4),_(5,gte,48,57,"ng-template",5),c()())},directives:[ze,Ue,He,Ne,ne,Ye,Te,_e,pt,Ot,_n,Q,at,Ui,ve,bn,kd,Al,t,Pl,os],pipes:[ce],styles:[""]}),t})();const
_te=["externalform"],bte=["top"];function vte(t,i
){1&t&&(g(0),m(1,"translate")),2&t&&T("
",f(1,1,"settings.capture.external.title")," ")}function
Cte(t,i){}function yte(t,i){if(1&t){const
e=I();l(0,"div",8)(1,"div",9)(2,"div",10)(3,"label",11),g(4),m(5,"translate"),c(),l(6,"input",12,13),C("ngModelChange",function(s){return
v(e),d().card.VideoDevice=s}),c(),l(8,"small",14),g(9),m(10,"translate"),c()(),l(11,"div",10)(12,"label",15),g(13),m(14,"translate"),c(),l(15,"p-inputNumber",16),C("ngModelChange",function(s){return
v(e),d().card.ChannelTimeout=s}),c(),l(16,"small",14),g(17),m(18,"translate"),c()()()()}if(2&t){const
e=d();a(4),S(f(5,10,"settings.capture.external.command_label")),a(2),p("ngModel",e.card.VideoDevice),a(3),T("
",f(10,12,"settings.capture.external.command_desc"),"
"),a(4),S(f(14,14,"settings.capture.tunetimeout_label")),a(2),p("ngModel",e.card.ChannelTimeout)("showButtons",!0)("min",1750)("max",65e3)("step",250),a(2),T("
",f(18,16,"settings.capture.tunetimeout_desc")," ")}}function
wte(t,i){1&t&&(k(0,"p-message",22
),m(1,"translate")),2&t&&x("text",f(1,1,"common.savesuccess"))}function
Tte(t,i){1&t&&(k(0,"p-message",23),m(1,"translate")),2&t&&x("text",f(1,1,"common.networkfail"))}function
Ste(t,i){if(1&t){const
e=I();l(0,"div",17)(1,"div",18),_(2,wte,2,3,"p-message",19),_(3,Tte,2,3,"p-message",20),c(),l(4,"p-button",21),C("onClick",function(){v(e);const
s=d(),r=F(1);return
s.saveForm(),r.form.markAsPristine()}),m(5,"translate"),c()()}if(2&t){const
e=d(),n=F(1);a(2),p("ngIf",e.work.successCount>0&&0==e.work.errorCount&&!n.dirty),a(1),p("ngIf",e.work.errorCount>0),a(1),x("label",f(5,4,"common.save")),p("disabled",!n.dirty||!e.card.VideoDevice||e.setupService.schedulingEnabled)}}let
xte=(()=>{class
t{constructor(e,n){this.captureCardService=e,this.setupService=n,this.work={successCount:0,errorCount:0},this.saveObserver={next:s=>{this.card.CardId&&s.bool?this.work.successCount++:!this.card.CardId&&s.int?(this.work.successCount++,this.card.CardId=s.int):(this.work.errorCount++,this.currentForm.form
.markAsDirty())},error:s=>{console.error(s),this.work.errorCount++,this.currentForm.form.markAsDirty()}}}ngOnInit(){}ngAfterViewInit(){this.setupService.setCurrentForm(this.currentForm),this.topElement.nativeElement.scrollIntoView({behavior:"smooth",block:"start"})}saveForm(){this.work.successCount=0,this.work.errorCount=0,this.card.CardId?this.cardList.CaptureCardList.CaptureCards.forEach(e=>{(e.CardId==this.card.CardId||e.ParentId==this.card.CardId)&&(this.captureCardService.UpdateCaptureCard(e.CardId,"videodevice",this.card.VideoDevice).subscribe(this.saveObserver),this.captureCardService.UpdateCaptureCard(e.CardId,"channel_timeout",String(this.card.ChannelTimeout)).subscribe(this.saveObserver))}):this.captureCardService.AddCaptureCard(this.card).subscribe(this.saveObserver)}}return
t.\u0275fac=function(e){return
new(e||t)(D(Gt),D(Me))},t.\u0275cmp=z({type:t,selectors:[["app-external"]],viewQuery:function(e,n){if(1&e&&(W(_te,5),W(bte,5)),2&e){let
s;V(s=B())&&(n.currentForm=s.firs
t),V(s=B())&&(n.topElement=s.first)}},inputs:{card:"card",cardList:"cardList"},decls:9,vars:0,consts:[["name","externalform",1,"ml-3","mr-3"],["externalform","ngForm"],["top",""],[1,"m-5"],["pTemplate","title"],["pTemplate","subtitle"],["pTemplate","content"],["pTemplate","footer"],[1,"grid"],[1,"mb-4","w-full"],[1,"form-group","field"],["for","VideoDevice",1,"label","block"],["pInputText","","id","VideoDevice","name","VideoDevice",1,"mb-2","form-control","w-full",3,"ngModel","ngModelChange"],["VideoDevice","ngModel"],[1,"block"],["for","ChannelTimeout",1,"label","block"],["name","ChannelTimeout","id","ChannelTimeout",3,"ngModel","showButtons","min","max","step","ngModelChange"],[1,"grid","nogutter"],[1,"col-12"],["severity","success",3,"text",4,"ngIf"],["severity","error",3,"text",4,"ngIf"],["icon","pi
pi-save","iconPos","left",1,"col","pr-1",3,"label","disabled","onClick"],["severity","success",3,"text"],["severity","error",3,"text"]],template:function(e,n){1&e&&(l(0,"form",0,1),k
(2,"span",null,2),l(4,"p-card",3),_(5,vte,2,3,"ng-template",4),_(6,Cte,0,0,"ng-template",5),_(7,yte,19,18,"ng-template",6),_(8,Ste,6,6,"ng-template",7),c()())},directives:[ze,Ue,He,Ne,ne,Ye,Te,_e,pt,Q,qe,ve],pipes:[ce],styles:[""]}),t})();const
Dte=["hdhomerunform"],Mte=["top"];function
kte(t,i){1&t&&(g(0),m(1,"translate")),2&t&&T("
",f(1,1,"settings.capture.hdhomerun.title")," ")}function
Ite(t,i){}function Ete(t,i){if(1&t){const
e=I();l(0,"p-listbox",20,21),C("ngModelChange",function(s){return
v(e),d(2).selectedDevices=s})("onChange",function(){return
v(e),d(2).updateDevices()}),c()}if(2&t){const
e=d(2);p("options",e.captureDeviceList.CaptureDeviceList.CaptureDevices)("ngModel",e.selectedDevices)("checkbox",!0)("showToggleAll",!1)("multiple",!0)}}const
Rte=function(){return{width:"30rem"}};function Lte(t,i){if(1&t){const
e=I();l(0,"div",8)(1,"div",9)(2,"div",10)(3,"label",11),g(4),m(5,"translate"),c(),l(6,"div"),_(7,Ete,2,5,"p-listbox",12),l(8,"small",13),g(9),m(10,"translate"),c(
)()(),l(11,"div",10)(12,"label",14),g(13),m(14,"translate"),c(),l(15,"p-inputNumber",15),C("ngModelChange",function(s){return
v(e),d().card.SignalTimeout=s}),c(),l(16,"small",13),g(17),m(18,"translate"),c()(),l(19,"div",10)(20,"label",16),g(21),m(22,"translate"),c(),l(23,"p-inputNumber",17),C("ngModelChange",function(s){return
v(e),d().card.ChannelTimeout=s}),c(),l(24,"small",13),g(25),m(26,"translate"),c()(),l(27,"div",10)(28,"p-checkbox",18,19),C("ngModelChange",function(s){return
v(e),d().card.DVBEITScan=s}),m(30,"translate"),c(),l(31,"small",13),g(32),m(33,"translate"),c()()()()}if(2&t){const
e=d();a(4),S(f(5,23,"settings.capture.hdhomerun.device_label")),a(2),q(A(39,Rte)),a(1),p("ngIf",e.work.isReady),a(2),T("
",f(10,25,"settings.capture.hdhomerun.device_desc"),"
"),a(4),S(f(14,27,"settings.capture.sigtimeout_label")),a(2),p("ngModel",e.card.SignalTimeout)("showButtons",!0)("min",250)("max",6e4)("step",250),a(2),T("
",f(18,29,"settings.capture.sigtimeout_desc")," "),a(4),S(f(22
,31,"settings.capture.tunetimeout_label")),a(2),p("ngModel",e.card.ChannelTimeout)("showButtons",!0)("min",1750)("max",65e3)("step",250),a(2),T("
",f(26,33,"settings.capture.tunetimeout_desc"),"
"),a(3),x("label",f(30,35,"settings.capture.hdhomerun.eitscan_label")),p("ngModel",e.card.DVBEITScan)("binary",!0),a(4),T("
",f(33,37,"settings.capture.dvb.eitscan_ldesc")," ")}}function
Ote(t,i){1&t&&(k(0,"p-message",27),m(1,"translate")),2&t&&x("text",f(1,1,"common.savesuccess"))}function
Ate(t,i){1&t&&(k(0,"p-message",28),m(1,"translate")),2&t&&x("text",f(1,1,"common.networkfail"))}function
Pte(t,i){if(1&t){const
e=I();l(0,"div",22)(1,"div",23),_(2,Ote,2,3,"p-message",24),_(3,Ate,2,3,"p-message",25),c(),l(4,"p-button",26),C("onClick",function(){v(e);const
s=d(),r=F(1);return
s.saveForm(),r.form.markAsPristine()}),m(5,"translate"),c()()}if(2&t){const
e=d(),n=F(1);a(2),p("ngIf",e.work.successCount>0&&0==e.work.errorCount&&!n.dirty),a(1),p("ngIf",e.work.errorCount>0),a(1),x("label",f(5,4,"co
mmon.save")),p("disabled",!n.dirty||!e.card.VideoDevice||e.setupService.schedulingEnabled)}}let
Fte=(()=>{class
t{constructor(e,n){this.captureCardService=e,this.setupService=n,this.work={isReady:!1,successCount:0,errorCount:0},this.captureDeviceList={CaptureDeviceList:{CaptureDevices:[]}},this.selectedDevices=[],this.saveObserver={next:s=>{this.card.CardId&&s.bool?this.work.successCount++:!this.card.CardId&&s.int?(this.work.successCount++,this.card.CardId=s.int):(this.work.errorCount++,this.currentForm.form.markAsDirty())},error:s=>{console.error(s),this.work.errorCount++,this.currentForm.form.markAsDirty()}}}ngOnInit(){this.captureCardService.GetCaptureDeviceList("HDHOMERUN").subscribe({next:e=>{this.captureDeviceList=e,this.setupDevices()},error:e=>{console.log("GetCaptureDeviceList",e),this.work.errorCount++}})}ngAfterViewInit(){this.setupService.setCurrentForm(this.currentForm),this.topElement.nativeElement.scrollIntoView({behavior:"smooth",block:"start"})}setupDevices(){this.c
ard.VideoDevice&&this.card.VideoDevice.split(",").forEach(n=>{const
s=this.captureDeviceList.CaptureDeviceList.CaptureDevices.find(r=>n==r.VideoDevice.split("
")[0]);s&&this.selectedDevices.push(s)}),this.work.isReady=!0}updateDevices(){let
e="",n=[];this.selectedDevices.forEach(s=>{n.push(s.VideoDevice.split("
")[0]),this.card.SignalTimeout=s.SignalTimeout,this.card.ChannelTimeout=s.ChannelTimeout}),n.sort(),console.log(n),n.forEach(s=>{e&&(e+=","),e+=s}),this.card.VideoDevice=e}saveForm(){console.log("save
form
clicked"),this.work.successCount=0,this.work.errorCount=0,this.card.CardId?this.cardList.CaptureCardList.CaptureCards.forEach(e=>{(e.CardId==this.card.CardId||e.ParentId==this.card.CardId)&&(this.captureCardService.UpdateCaptureCard(e.CardId,"videodevice",this.card.VideoDevice).subscribe(this.saveObserver),this.captureCardService.UpdateCaptureCard(e.CardId,"signal_timeout",String(this.card.SignalTimeout)).subscribe(this.saveObserver),this.captureCardService.UpdateCaptureCar
d(e.CardId,"channel_timeout",String(this.card.ChannelTimeout)).subscribe(this.saveObserver),this.captureCardService.UpdateCaptureCard(e.CardId,"dvb_eitscan",String(this.card.DVBEITScan?"1":"0")).subscribe(this.saveObserver))}):this.captureCardService.AddCaptureCard(this.card).subscribe(this.saveObserver)}}return
t.\u0275fac=function(e){return
new(e||t)(D(Gt),D(Me))},t.\u0275cmp=z({type:t,selectors:[["app-hdhomerun"]],viewQuery:function(e,n){if(1&e&&(W(Dte,5),W(Mte,5)),2&e){let
s;V(s=B())&&(n.currentForm=s.first),V(s=B())&&(n.topElement=s.first)}},inputs:{card:"card",cardList:"cardList"},decls:9,vars:0,consts:[["name","hdhomerunform",1,"ml-3","mr-3"],["hdhomerunform","ngForm"],["top",""],[1,"m-5"],["pTemplate","title"],["pTemplate","subtitle"],["pTemplate","content"],["pTemplate","footer"],[1,"grid"],[1,"mb-4","w-full"],[1,"form-group","field"],["for","VideoDevice",1,"label","block"],["optionLabel","VideoDevice","name","VideoDevice",3,"options","ngModel","checkbox","showToggleAll","m
ultiple","ngModelChange","onChange",4,"ngIf"],[1,"block"],["for","SignalTimeout",1,"label","block"],["name","SignalTimeout","id","SignalTimeout",3,"ngModel","showButtons","min","max","step","ngModelChange"],["for","ChannelTimeout",1,"label","block"],["name","ChannelTimeout","id","ChannelTimeout",3,"ngModel","showButtons","min","max","step","ngModelChange"],["inputId","DVBEITScan","name","DVBEITScan",1,"label","mb-2","w-full",3,"ngModel","binary","label","ngModelChange"],["DVBEITScan","ngModel"],["optionLabel","VideoDevice","name","VideoDevice",3,"options","ngModel","checkbox","showToggleAll","multiple","ngModelChange","onChange"],["VideoDevice","ngModel"],[1,"grid","nogutter"],[1,"col-12"],["severity","success",3,"text",4,"ngIf"],["severity","error",3,"text",4,"ngIf"],["icon","pi
pi-save","iconPos","left",1,"col","pr-1",3,"label","disabled","onClick"],["severity","success",3,"text"],["severity","error",3,"text"]],template:function(e,n){1&e&&(l(0,"form",0,1),k(2,"span",null,2),l(4,"p
-card",3),_(5,kte,2,3,"ng-template",4),_(6,Ite,0,0,"ng-template",5),_(7,Lte,34,40,"ng-template",6),_(8,Pte,6,6,"ng-template",7),c()())},directives:[ze,Ue,He,Ne,ne,Q,os,Te,_e,pt,sn,qe,ve],pipes:[ce],styles:[""]}),t})();const
Nte=["iptvform"],Vte=["top"];function
Bte(t,i){1&t&&(g(0),m(1,"translate")),2&t&&T("
",f(1,1,"settings.capture.iptv.title")," ")}function
Hte(t,i){}function qte(t,i){if(1&t){const
e=I();l(0,"div",8)(1,"div",9)(2,"div",10)(3,"label",11),g(4),m(5,"translate"),c(),l(6,"input",12,13),C("ngModelChange",function(s){return
v(e),d().card.VideoDevice=s}),c(),l(8,"small",14),g(9),m(10,"translate"),c()(),l(11,"div",10)(12,"label",15),g(13),m(14,"translate"),c(),l(15,"p-inputNumber",16),C("ngModelChange",function(s){return
v(e),d().card.ChannelTimeout=s}),c(),l(16,"small",14),g(17),m(18,"translate"),c()()()()}if(2&t){const
e=d();a(4),S(f(5,10,"settings.capture.iptv.url_label")),a(2),p("ngModel",e.card.VideoDevice),a(3),T("
",f(10,12,"settings.capture.iptv.url_desc")," "),a(4
),S(f(14,14,"settings.capture.tunetimeout_label")),a(2),p("ngModel",e.card.ChannelTimeout)("showButtons",!0)("min",1750)("max",65e3)("step",250),a(2),T("
",f(18,16,"settings.capture.tunetimeout_desc")," ")}}function
Gte(t,i){1&t&&(k(0,"p-message",22),m(1,"translate")),2&t&&x("text",f(1,1,"common.savesuccess"))}function
Ute(t,i){1&t&&(k(0,"p-message",23),m(1,"translate")),2&t&&x("text",f(1,1,"common.networkfail"))}function
zte(t,i){if(1&t){const
e=I();l(0,"div",17)(1,"div",18),_(2,Gte,2,3,"p-message",19),_(3,Ute,2,3,"p-message",20),c(),l(4,"p-button",21),C("onClick",function(){v(e);const
s=d(),r=F(1);return
s.saveForm(),r.form.markAsPristine()}),m(5,"translate"),c()()}if(2&t){const
e=d(),n=F(1);a(2),p("ngIf",e.work.successCount>0&&0==e.work.errorCount&&!n.dirty),a(1),p("ngIf",e.work.errorCount>0),a(1),x("label",f(5,4,"common.save")),p("disabled",!n.dirty||!e.card.VideoDevice||e.setupService.schedulingEnabled)}}let
jte=(()=>{class t{constructor(e,n){this.captureCardService=e,this.setu
pService=n,this.work={successCount:0,errorCount:0},this.saveObserver={next:s=>{this.card.CardId&&s.bool?this.work.successCount++:!this.card.CardId&&s.int?(this.work.successCount++,this.card.CardId=s.int):(this.work.errorCount++,this.currentForm.form.markAsDirty())},error:s=>{console.error(s),this.work.errorCount++,this.currentForm.form.markAsDirty()}}}ngOnInit(){}ngAfterViewInit(){this.setupService.setCurrentForm(this.currentForm),this.topElement.nativeElement.scrollIntoView({behavior:"smooth",block:"start"}),this.card.CardId||new
Je(n=>{setTimeout(()=>{n.next(1),n.complete()},100)}).subscribe(n=>{this.currentForm.form.markAsDirty()})}saveForm(){console.log("save
form
clicked"),this.work.successCount=0,this.work.errorCount=0,this.card.CardId?this.cardList.CaptureCardList.CaptureCards.forEach(e=>{(e.CardId==this.card.CardId||e.ParentId==this.card.CardId)&&(this.captureCardService.UpdateCaptureCard(e.CardId,"videodevice",this.card.VideoDevice).subscribe(this.saveObserver),this.capture
CardService.UpdateCaptureCard(e.CardId,"channel_timeout",String(this.card.ChannelTimeout)).subscribe(this.saveObserver))}):this.captureCardService.AddCaptureCard(this.card).subscribe(this.saveObserver)}}return
t.\u0275fac=function(e){return
new(e||t)(D(Gt),D(Me))},t.\u0275cmp=z({type:t,selectors:[["app-iptv"]],viewQuery:function(e,n){if(1&e&&(W(Nte,5),W(Vte,5)),2&e){let
s;V(s=B())&&(n.currentForm=s.first),V(s=B())&&(n.topElement=s.first)}},inputs:{card:"card",cardList:"cardList"},decls:9,vars:0,consts:[["name","iptvform",1,"ml-3","mr-3"],["iptvform","ngForm"],["top",""],[1,"m-5"],["pTemplate","title"],["pTemplate","subtitle"],["pTemplate","content"],["pTemplate","footer"],[1,"grid"],[1,"mb-4","w-full"],[1,"form-group","field"],["for","VideoDevice",1,"label","block"],["pInputText","","id","VideoDevice","name","VideoDevice",1,"mb-2","form-control","w-full",3,"ngModel","ngModelChange"],["VideoDevice","ngModel"],[1,"block"],["for","ChannelTimeout",1,"label","block"],["name","ChannelTime
out","id","ChannelTimeout",3,"ngModel","showButtons","min","max","step","ngModelChange"],[1,"grid","nogutter"],[1,"col-12"],["severity","success",3,"text",4,"ngIf"],["severity","error",3,"text",4,"ngIf"],["icon","pi
pi-save","iconPos","left",1,"col","pr-1",3,"label","disabled","onClick"],["severity","success",3,"text"],["severity","error",3,"text"]],template:function(e,n){1&e&&(l(0,"form",0,1),k(2,"span",null,2),l(4,"p-card",3),_(5,Bte,2,3,"ng-template",4),_(6,Hte,0,0,"ng-template",5),_(7,qte,19,18,"ng-template",6),_(8,zte,6,6,"ng-template",7),c()())},directives:[ze,Ue,He,Ne,ne,Ye,Te,_e,pt,Q,qe,ve],pipes:[ce],styles:[""]}),t})();const
$te=["importform"],Wte=["top"];function
Kte(t,i){1&t&&(g(0),m(1,"translate")),2&t&&T("
",f(1,1,"settings.capture.import.title")," ")}function
Qte(t,i){}function Jte(t,i){if(1&t){const
e=I();l(0,"div",8)(1,"div",9)(2,"div",10)(3,"label",11),g(4),m(5,"translate"),c(),l(6,"input",12,13),C("ngModelChange",function(s){return
v(e),d().card.VideoDevice=s}),c(
),l(8,"small",14),g(9),m(10,"translate"),c()()()()}if(2&t){const
e=d();a(4),S(f(5,3,"settings.capture.import.file_label")),a(2),p("ngModel",e.card.VideoDevice),a(3),T("
",f(10,5,"settings.capture.import.file_desc")," ")}}function
Yte(t,i){1&t&&(k(0,"p-message",20),m(1,"translate")),2&t&&x("text",f(1,1,"common.savesuccess"))}function
Zte(t,i){1&t&&(k(0,"p-message",21),m(1,"translate")),2&t&&x("text",f(1,1,"common.networkfail"))}function
Xte(t,i){if(1&t){const
e=I();l(0,"div",15)(1,"div",16),_(2,Yte,2,3,"p-message",17),_(3,Zte,2,3,"p-message",18),c(),l(4,"p-button",19),C("onClick",function(){v(e);const
s=d(),r=F(1);return
s.saveForm(),r.form.markAsPristine()}),m(5,"translate"),c()()}if(2&t){const
e=d(),n=F(1);a(2),p("ngIf",e.work.successCount>0&&0==e.work.errorCount&&!n.dirty),a(1),p("ngIf",e.work.errorCount>0),a(1),x("label",f(5,4,"common.save")),p("disabled",!n.dirty||!e.card.VideoDevice||e.setupService.schedulingEnabled)}}let
ene=(()=>{class t{constructor(e,n){this.captureCardServi
ce=e,this.setupService=n,this.work={successCount:0,errorCount:0},this.saveObserver={next:s=>{this.card.CardId&&s.bool?this.work.successCount++:!this.card.CardId&&s.int?(this.work.successCount++,this.card.CardId=s.int):(this.work.errorCount++,this.currentForm.form.markAsDirty())},error:s=>{console.error(s),this.work.errorCount++,this.currentForm.form.markAsDirty()}}}ngOnInit(){}ngAfterViewInit(){this.setupService.setCurrentForm(this.currentForm),this.topElement.nativeElement.scrollIntoView({behavior:"smooth",block:"start"})}saveForm(){console.log("save
form
clicked"),this.work.successCount=0,this.work.errorCount=0,this.card.CardId?this.cardList.CaptureCardList.CaptureCards.forEach(e=>{(e.CardId==this.card.CardId||e.ParentId==this.card.CardId)&&this.captureCardService.UpdateCaptureCard(e.CardId,"videodevice",this.card.VideoDevice).subscribe(this.saveObserver)}):this.captureCardService.AddCaptureCard(this.card).subscribe(this.saveObserver)}}return
t.\u0275fac=function(e){return new(e||
t)(D(Gt),D(Me))},t.\u0275cmp=z({type:t,selectors:[["app-import"]],viewQuery:function(e,n){if(1&e&&(W($te,5),W(Wte,5)),2&e){let
s;V(s=B())&&(n.currentForm=s.first),V(s=B())&&(n.topElement=s.first)}},inputs:{card:"card",cardList:"cardList"},decls:9,vars:0,consts:[["name","importform",1,"ml-3","mr-3"],["importform","ngForm"],["top",""],[1,"m-5"],["pTemplate","title"],["pTemplate","subtitle"],["pTemplate","content"],["pTemplate","footer"],[1,"grid"],[1,"mb-4","w-full"],[1,"form-group","field"],["for","VideoDevice",1,"label","block"],["pInputText","","id","VideoDevice","name","VideoDevice",1,"mb-2","form-control","w-full",3,"ngModel","ngModelChange"],["VideoDevice","ngModel"],[1,"block"],[1,"grid","nogutter"],[1,"col-12"],["severity","success",3,"text",4,"ngIf"],["severity","error",3,"text",4,"ngIf"],["icon","pi
pi-save","iconPos","left",1,"col","pr-1",3,"label","disabled","onClick"],["severity","success",3,"text"],["severity","error",3,"text"]],template:function(e,n){1&e&&(l(0,"form",0,
1),k(2,"span",null,2),l(4,"p-card",3),_(5,Kte,2,3,"ng-template",4),_(6,Qte,0,0,"ng-template",5),_(7,Jte,11,7,"ng-template",6),_(8,Xte,6,6,"ng-template",7),c()())},directives:[ze,Ue,He,Ne,ne,Ye,Te,_e,Q,qe,ve],pipes:[ce],styles:[""]}),t})();const
tne=["demoform"],nne=["top"];function
ine(t,i){1&t&&(g(0),m(1,"translate")),2&t&&T("
",f(1,1,"settings.capture.demo.title")," ")}function
sne(t,i){}function rne(t,i){if(1&t){const
e=I();l(0,"div",8)(1,"div",9)(2,"div",10)(3,"label",11),g(4),m(5,"translate"),c(),l(6,"input",12,13),C("ngModelChange",function(s){return
v(e),d().card.VideoDevice=s}),c(),l(8,"small",14),g(9),m(10,"translate"),c()()()()}if(2&t){const
e=d();a(4),S(f(5,3,"settings.capture.import.file_label")),a(2),p("ngModel",e.card.VideoDevice),a(3),T("
",f(10,5,"settings.capture.demo.file_desc")," ")}}function
one(t,i){1&t&&(k(0,"p-message",20),m(1,"translate")),2&t&&x("text",f(1,1,"common.savesuccess"))}function
ane(t,i){1&t&&(k(0,"p-message",21),m(1,"translate")),2&t&&x("text",f(
1,1,"common.networkfail"))}function lne(t,i){if(1&t){const
e=I();l(0,"div",15)(1,"div",16),_(2,one,2,3,"p-message",17),_(3,ane,2,3,"p-message",18),c(),l(4,"p-button",19),C("onClick",function(){v(e);const
s=d(),r=F(1);return
s.saveForm(),r.form.markAsPristine()}),m(5,"translate"),c()()}if(2&t){const
e=d(),n=F(1);a(2),p("ngIf",e.work.successCount>0&&0==e.work.errorCount&&!n.dirty),a(1),p("ngIf",e.work.errorCount>0),a(1),x("label",f(5,4,"common.save")),p("disabled",!n.dirty||!e.card.VideoDevice||e.setupService.schedulingEnabled)}}let
cne=(()=>{class
t{constructor(e,n){this.captureCardService=e,this.setupService=n,this.work={successCount:0,errorCount:0},this.saveObserver={next:s=>{this.card.CardId&&s.bool?this.work.successCount++:!this.card.CardId&&s.int?(this.work.successCount++,this.card.CardId=s.int):(this.work.errorCount++,this.currentForm.form.markAsDirty())},error:s=>{console.error(s),this.work.errorCount++,this.currentForm.form.markAsDirty()}}}ngOnInit(){}ngAfterViewInit(){this.s
etupService.setCurrentForm(this.currentForm),this.topElement.nativeElement.scrollIntoView({behavior:"smooth",block:"start"})}saveForm(){console.log("save
form
clicked"),this.work.successCount=0,this.work.errorCount=0,this.card.CardId?this.cardList.CaptureCardList.CaptureCards.forEach(e=>{(e.CardId==this.card.CardId||e.ParentId==this.card.CardId)&&this.captureCardService.UpdateCaptureCard(e.CardId,"videodevice",this.card.VideoDevice).subscribe(this.saveObserver)}):this.captureCardService.AddCaptureCard(this.card).subscribe(this.saveObserver)}}return
t.\u0275fac=function(e){return
new(e||t)(D(Gt),D(Me))},t.\u0275cmp=z({type:t,selectors:[["app-demo"]],viewQuery:function(e,n){if(1&e&&(W(tne,5),W(nne,5)),2&e){let
s;V(s=B())&&(n.currentForm=s.first),V(s=B())&&(n.topElement=s.first)}},inputs:{card:"card",cardList:"cardList"},decls:9,vars:0,consts:[["name","demoform",1,"ml-3","mr-3"],["demoform","ngForm"],["top",""],[1,"m-5"],["pTemplate","title"],["pTemplate","subtitle"],["pTemplate","cont
ent"],["pTemplate","footer"],[1,"grid"],[1,"mb-4","w-full"],[1,"form-group","field"],["for","VideoDevice",1,"label","block"],["pInputText","","id","VideoDevice","name","VideoDevice",1,"mb-2","form-control","w-full",3,"ngModel","ngModelChange"],["VideoDevice","ngModel"],[1,"block"],[1,"grid","nogutter"],[1,"col-12"],["severity","success",3,"text",4,"ngIf"],["severity","error",3,"text",4,"ngIf"],["icon","pi
pi-save","iconPos","left",1,"col","pr-1",3,"label","disabled","onClick"],["severity","success",3,"text"],["severity","error",3,"text"]],template:function(e,n){1&e&&(l(0,"form",0,1),k(2,"span",null,2),l(4,"p-card",3),_(5,ine,2,3,"ng-template",4),_(6,sne,0,0,"ng-template",5),_(7,rne,11,7,"ng-template",6),_(8,lne,6,6,"ng-template",7),c()())},directives:[ze,Ue,He,Ne,ne,Ye,Te,_e,Q,qe,ve],pipes:[ce],styles:[""]}),t})();const
une=["connform"];function
dne(t,i){1&t&&(g(0),m(1,"translate")),2&t&&T("
",f(1,1,"settings.iconnection.title")," ")}function
pne(t,i){}function hne(t,i){if(1&t){cons
t
e=I();l(0,"div",12)(1,"label",44),g(2),m(3,"translate"),c(),l(4,"p-inputNumber",45),C("ngModelChange",function(s){return
v(e),d(3).work.switchPort=s}),c(),l(5,"small",16),g(6),m(7,"translate"),c()()}if(2&t){const
e=d(3);a(2),S(f(3,7,"settings.iconnection.switchport_label")),a(2),p("ngModel",e.work.switchPort)("showButtons",!0)("min",1)("max",e.diseqcTree.SwitchPorts)("step",1),a(2),T("
",f(7,9,"settings.iconnection.switchport_desc")," ")}}function
mne(t,i){if(1&t){const
e=I();l(0,"div")(1,"div",12)(2,"label",46),g(3),m(4,"translate"),c(),l(5,"p-inputNumber",47),C("ngModelChange",function(s){return
v(e),d(3).work.rotorDegrees=s}),c(),k(6,"br")(7,"br"),l(8,"div",48)(9,"p-radioButton",49),C("ngModelChange",function(s){return
v(e),d(3).work.hemisphere=s}),c(),l(10,"label",50),g(11),m(12,"translate"),c()(),l(13,"div",48)(14,"p-radioButton",51),C("ngModelChange",function(s){return
v(e),d(3).work.hemisphere=s}),c(),l(15,"label",52),g(16),m(17,"translate"),c()(),l(18,"small",16),g(19),m(2
0,"translate"),c()()()}if(2&t){const
e=d(3);a(3),S(f(4,10,"settings.iconnection.longitude_label")),a(2),p("ngModel",e.work.rotorDegrees)("min",0)("max",180)("maxFractionDigits",4),a(4),p("ngModel",e.work.hemisphere),a(2),S(f(12,12,"settings.iconnection.longitude_east")),a(3),p("ngModel",e.work.hemisphere),a(2),S(f(17,14,"settings.iconnection.longitude_west")),a(3),T("
",f(20,16,"settings.iconnection.longitude_desc")," ")}}function
fne(t,i){if(1&t){const
e=I();l(0,"div",12)(1,"label",53),g(2),m(3,"translate"),c(),l(4,"div",48)(5,"p-radioButton",54),C("ngModelChange",function(s){return
v(e),d(3).work.scrPort=s}),c(),l(6,"label",55),g(7),m(8,"translate"),c()(),l(9,"div",48)(10,"p-radioButton",56),C("ngModelChange",function(s){return
v(e),d(3).work.scrPort=s}),c(),l(11,"label",57),g(12),m(13,"translate"),c()(),l(14,"small",16),g(15),m(16,"translate"),c()()}if(2&t){const
e=d(3);a(2),S(f(3,6,"settings.iconnection.unicablepos_label")),a(3),p("ngModel",e.work.scrPort),a(2),S(f(8,8,"settings
.iconnection.unicablepos_porta")),a(3),p("ngModel",e.work.scrPort),a(2),S(f(13,10,"settings.iconnection.unicablepos_portb")),a(3),T("
",f(16,12,"settings.iconnection.unicablepos_desc")," ")}}function
gne(t,i){1&t&&(l(0,"div",41),_(1,hne,8,11,"div",42),_(2,mne,21,18,"div",43),_(3,fne,17,14,"div",42),c()),2&t&&(p("ngSwitch",d(2).diseqcTree.Type),a(1),p("ngSwitchCase","switch"),a(1),p("ngSwitchCase","rotor"),a(1),p("ngSwitchCase","scr"))}function
_ne(t,i){if(1&t){const
e=I();l(0,"div",12)(1,"label",58),g(2),m(3,"translate"),c(),l(4,"input",59,60),C("ngModelChange",function(s){return
v(e),d(2).card.InputName=s}),c(),l(6,"small",16),g(7),m(8,"translate"),c()()}if(2&t){const
e=d(2);a(2),S(f(3,3,"settings.iconnection.delivery_label")),a(2),p("ngModel",e.card.InputName),a(3),T("
",f(8,5,"settings.iconnection.delivery_desc")," ")}}function
bne(t,i){if(1&t){const
e=I();l(0,"p-dropdown",63,60),C("ngModelChange",function(s){return
v(e),d(3).card.InputName=s}),c()}if(2&t){const e=d(3);p("options
",e.currentDevice.InputNames)("ngModel",e.card.InputName)}}function
vne(t,i){if(1&t&&(l(0,"div",12)(1,"label",61),g(2),m(3,"translate"),c(),_(4,bne,2,2,"p-dropdown",62),l(5,"small",16),g(6),m(7,"translate"),c()()),2&t){const
e=d(2);a(2),S(f(3,3,"settings.iconnection.input_label")),a(2),p("ngIf",e.work.isReady),a(2),T("
",f(7,5,"settings.capture.inputname_desc")," ")}}function
Cne(t,i){if(1&t){const
e=I();l(0,"div",12)(1,"label",64),g(2),m(3,"translate"),c(),l(4,"input",65,66),C("ngModelChange",function(s){return
v(e),d(2).card.ExternalCommand=s}),c(),l(6,"small",16),g(7),m(8,"translate"),c()()}if(2&t){const
e=d(2);a(2),S(f(3,3,"settings.iconnection.externalcmd_label")),a(2),p("ngModel",e.card.ExternalCommand),a(3),T("
",f(8,5,"settings.iconnection.externalcmd_desc")," ")}}function
yne(t,i){if(1&t){const
e=I();l(0,"div",12)(1,"label",67),g(2),m(3,"translate"),c(),l(4,"input",68,69),C("ngModelChange",function(s){return
v(e),d(2).card.TuneChan=s}),c(),l(6,"small",16),g(7),m(8,"translat
e"),c()()}if(2&t){const
e=d(2);a(2),S(f(3,3,"settings.iconnection.tunechan_label")),a(2),p("ngModel",e.card.TuneChan),a(3),T("
",f(8,5,"settings.iconnection.tunechan_desc")," ")}}const
Id=function(){return{minWidth:"400px"}};function wne(t,i){if(1&t){const
e=I();l(0,"div",12)(1,"label",70),g(2),m(3,"translate"),c(),l(4,"p-dropdown",71,72),C("ngModelChange",function(s){return
v(e),d(2).card.Quicktune=s}),c(),l(6,"small",16),g(7),m(8,"translate"),c()()}if(2&t){const
e=d(2);a(2),S(f(3,8,"settings.iconnection.quicktune_label")),a(2),q(A(12,Id)),p("options",e.quickTuneValues)("ngModel",e.card.Quicktune)("editable",!1)("maxlength",0),a(3),T("
",f(8,10,"settings.iconnection.quicktune_desc")," ")}}function
Tne(t,i){if(1&t){const
e=I();l(0,"div",12)(1,"p-checkbox",73,74),C("ngModelChange",function(s){return
v(e),d(2).card.DishnetEIT=s}),m(3,"translate"),c(),l(4,"small",16),g(5),m(6,"translate"),c()()}if(2&t){const
e=d(2);a(1),x("label",f(3,4,"settings.iconnection.dishneteit_label")),p("ngMod
el",e.card.DishnetEIT)("binary",!0),a(4),T("
",f(6,6,"settings.iconnection.dishneteit_desc")," ")}}function
Sne(t,i){if(1&t&&(l(0,"p-fieldset",75),m(1,"translate"),k(2,"app-channelscan",76),c()),2&t){const
e=d(2);x("legend",f(1,7,"settings.iconnection.scan_title")),p("collapsed",!0)("toggleable",!0),a(2),p("card",e.card)("cardList",e.cardList)("iconnection",e)("videoSourceLookup",e.videoSourceLookup)}}function
xne(t,i){if(1&t){const
e=I();l(0,"p-button",77),C("click",function(){return
v(e),d(2).work.fetchChannelsDialog=!1}),m(1,"translate"),c(),l(2,"p-button",78),C("click",function(){return
v(e),d(2).fetchChannels()}),m(3,"translate"),c()}2&t&&(x("label",f(1,2,"common.no")),a(2),x("label",f(3,4,"common.yes")))}const
Dne=function(t){return{num:t}},Mne=function(){return{width:"50vw"}};function
kne(t,i){if(1&t){const
e=I();l(0,"div",8)(1,"div",9),_(2,gne,4,4,"div",10),_(3,_ne,9,7,"div",11),_(4,vne,8,7,"div",11),l(5,"div",12)(6,"label",13),g(7),m(8,"translate"),c(),l(9,"input",14,15),C(
"ngModelChange",function(s){return
v(e),d().card.DisplayName=s}),c(),l(11,"small",16),g(12),m(13,"translate"),c()(),l(14,"div",12)(15,"label",17),g(16),m(17,"translate"),c(),l(18,"p-dropdown",18,19),C("ngModelChange",function(s){return
v(e),d().card.SourceId=s})("onChange",function(){return
v(e),d().fillChannelList()}),c(),l(20,"small",16),g(21),m(22,"translate"),c()(),_(23,Cne,9,7,"div",11),_(24,yne,9,7,"div",11),_(25,wne,9,13,"div",11),_(26,Tne,7,8,"div",11),_(27,Sne,3,9,"p-fieldset",20),k(28,"br")(29,"br"),l(30,"div",12)(31,"div",8)(32,"div",21)(33,"p-button",22),C("onClick",function(){return
v(e),d().work.fetchChannelsDialog=!0}),m(34,"translate"),c()(),l(35,"div",21),g(36),m(37,"translate"),c()(),l(38,"small",16),g(39),m(40,"translate"),c()(),l(41,"p-dialog",23),C("visibleChange",function(s){return
v(e),d().work.fetchChannelsDialog=s}),l(42,"p"),g(43),m(44,"translate"),c(),l(45,"p"),g(46),m(47,"translate"),c(),_(48,xne,4,6,"ng-template",7),c(),l(49,"div",12)(50,"label",24),g(51
),m(52,"translate"),c(),l(53,"p-dropdown",25,26),C("ngModelChange",function(s){return
v(e),d().card.StartChannel=s}),c(),l(55,"small",16),g(56),m(57,"translate"),c()(),l(58,"p-fieldset",27),m(59,"translate"),l(60,"div",12)(61,"label",28),g(62),m(63,"translate"),c(),l(64,"p-inputNumber",29),C("ngModelChange",function(s){return
v(e),d().card.RecLimit=s}),c(),l(65,"small",16),g(66),m(67,"translate"),c()(),l(68,"div",12)(69,"p-checkbox",30,31),C("ngModelChange",function(s){return
v(e),d().card.SchedGroup=s}),m(71,"translate"),c(),l(72,"small",16),g(73),m(74,"translate"),c()(),l(75,"div",12)(76,"label",32),g(77),m(78,"translate"),c(),l(79,"p-inputNumber",33),C("ngModelChange",function(s){return
v(e),d().card.RecPriority=s}),c(),l(80,"small",16),g(81),m(82,"translate"),c()(),l(83,"div",12)(84,"label",34),g(85),m(86,"translate"),c(),l(87,"p-inputNumber",35),C("ngModelChange",function(s){return
v(e),d().card.SchedOrder=s}),c(),l(88,"small",16),g(89),m(90,"translate"),c()(),l(91,"div",12)(92
,"label",36),g(93),m(94,"translate"),c(),l(95,"p-inputNumber",37),C("ngModelChange",function(s){return
v(e),d().card.LiveTVOrder=s}),c(),l(96,"small",16),g(97),m(98,"translate"),c()(),l(99,"div",12)(100,"label",38),g(101),m(102,"translate"),c(),l(103,"p-dropdown",39,40),C("ngModelChange",function(s){return
v(e),d().work.inputGroupName=s}),c(),l(105,"small",16),g(106),m(107,"translate"),c()()()()()}if(2&t){const
e=d(),n=F(1);a(2),p("ngIf",e.diseqcTree),a(1),p("ngIf","DVB"==e.card.CardType),a(1),p("ngIf","DVB"!=e.card.CardType),a(3),S(f(8,80,"settings.iconnection.displayname_label")),a(2),p("ngModel",e.card.DisplayName),a(3),T("
",f(13,82,"settings.iconnection.displayname_desc"),"
"),a(4),S(f(17,84,"settings.iconnection.sourceid_label")),a(2),q(A(129,Id)),p("options",e.videoSourceList.VideoSourceList.VideoSources)("ngModel",e.card.SourceId)("editable",!1)("maxlength",0),a(3),T("
",f(22,86,"settings.iconnection.sourceid_desc"),"
"),a(2),p("ngIf",e.work.isEncoder||e.work.isUnscanable),a
(1),p("ngIf",e.work.showPresetTuner),a(1),p("ngIf",!e.work.isEncoder&&!e.work.isUnscanable),a(1),p("ngIf","DVB"==e.card.CardType),a(1),p("ngIf",!e.work.isUnscanable),a(6),x("label",f(34,88,"settings.iconnection.fetch.label")),p("disabled",!e.card.SourceId||n.dirty||1==e.work.fetchStatus||e.setupService.schedulingEnabled),a(3),T("
\xa0\xa0",Dt(37,90,e.fetchMessages[e.work.fetchStatus],U(130,Dne,e.work.fetchCount)),"
"),a(3),T(" ",f(40,93,"settings.iconnection.fetch.desc"),"
"),a(2),q(A(132,Mne)),p("visible",e.work.fetchChannelsDialog)("modal",!0)("draggable",!1)("resizable",!1),a(2),S(f(44,95,"settings.iconnection.fetch.warning")),a(3),S(f(47,97,"settings.common.ru_sure")),a(5),S(f(52,99,"settings.iconnection.startchan_label")),a(2),q(A(133,Id)),p("options",e.sourceChannels)("ngModel",e.card.StartChannel)("editable",!1),a(3),T("
",f(57,101,"settings.iconnection.startchan_desc"),"
"),a(2),x("legend",f(59,103,"settings.iconnection.interact_title")),p("toggleable",!0)("collapsed",!0),a(
4),S(f(63,105,"settings.iconnection.maxrec_label")),a(2),p("ngModel",e.card.RecLimit)("showButtons",!0)("min",1)("max",10)("step",1),a(2),T("
",f(67,107,"settings.iconnection.maxrec_desc"),"
"),a(3),x("label",f(71,109,"settings.iconnection.schedgrp_label")),p("ngModel",e.card.SchedGroup)("binary",!0),a(4),T("
",f(74,111,"settings.iconnection.schedgrp_desc"),"
"),a(4),S(f(78,113,"settings.iconnection.recpri_label")),a(2),p("ngModel",e.card.RecPriority)("showButtons",!0)("min",-99)("max",99)("step",1),a(2),T("
",f(82,115,"settings.iconnection.recpri_desc"),"
"),a(4),S(f(86,117,"settings.iconnection.schedorder_label")),a(2),p("ngModel",e.card.SchedOrder)("showButtons",!0)("min",0)("max",99)("step",1),a(2),T("
",f(90,119,"settings.iconnection.schedorder_desc"),"
"),a(4),S(f(94,121,"settings.iconnection.liveorder_label")),a(2),p("ngModel",e.card.LiveTVOrder)("showButtons",!0)("min",0)("max",99)("step",1),a(2),T("
",f(98,123,"settings.iconnection.liveorder_desc"),"
"),a(4),S(f(102,125,"se
ttings.iconnection.inpgroup_label")),a(2),q(A(134,Id)),p("options",e.selectGroups)("ngModel",e.work.inputGroupName)("editable",!0),a(3),T("
",f(107,127,"settings.iconnection.inpgroup_desc")," ")}}function
Ine(t,i){1&t&&(k(0,"p-message",84),m(1,"translate")),2&t&&x("text",f(1,1,"common.savesuccess"))}function
Ene(t,i){1&t&&(k(0,"p-message",85),m(1,"translate")),2&t&&x("text",f(1,1,"common.networkfail"))}function
Rne(t,i){if(1&t){const
e=I();l(0,"div",79)(1,"div",80),_(2,Ine,2,3,"p-message",81),_(3,Ene,2,3,"p-message",82),c(),l(4,"p-button",83),C("onClick",function(){v(e);const
s=d(),r=F(1);return
s.saveForm(),r.form.markAsPristine()}),m(5,"translate"),c()()}if(2&t){const
e=d(),n=F(1);a(2),p("ngIf",e.work.successCount>0&&0==e.work.errorCount&&!n.dirty),a(1),p("ngIf",e.work.errorCount>0),a(1),x("label",f(5,4,"common.save")),p("disabled",!n.dirty||!e.card.VideoDevice||e.setupService.schedulingEnabled)}}let
kS=(()=>{class t{constructor(e,n,s,r){this.translate=e,this.channelService=n,this
.captureCardService=s,this.setupService=r,this.allChannels=[],this.sourceChannels=[],this.inputGroups=[],this.selectGroups=[],this.captureDeviceList={CaptureDeviceList:{CaptureDevices:[]}},this.currentDevice={FrontendName:"Unknown",InputNames:["MPEG2TS"]},this.work={successCount:0,errorCount:0,expectedCount:0,recLimitUpd:!1,reloadGroups:!1,isEncoder:!1,isUnscanable:!1,hasTuner:!1,showPresetTuner:!1,inputGroupName:"",orgInputGroupName:"",fetchChannelsDialog:!1,fetchStatus:0,fetchCount:0,switchPort:0,rotorDegrees:0,scrPort:"",hemisphere:1,isReady:!1,startScan:!1},this.deviceFree=new
ct,this.orgInputGroupIds=[],this.fetchMessages=["","settings.iconnection.fetch.inprog","settings.iconnection.fetch.complete","settings.iconnection.fetch.failed"],this.messages={devNotExist:"settings.capture.dvb.devNotExist"},this.preEncodedTypes=["DVB","FIREWIRE","HDHOMERUN","FREEBOX","IMPORT","DEMO","ASI","CETON","VBOX","SATIP"],this.unscanableTypes=["FIREWIRE","HDPVR","IMPORT","DEMO","GO7007","MJPEG"],th
is.hasTunerTypes=["DVB","HDHOMERUN","FREEBOX","CETON","VBOX","SATIP"],this.quickTuneValues=[{prompt:"settings.iconnection.quicktune.never",value:0},{prompt:"settings.iconnection.quicktune.livetv",value:1},{prompt:"settings.iconnection.quicktune.always",value:2}],this.saveObserver={next:o=>{o.bool?(this.work.successCount++,this.work.recLimitUpd&&(this.work.successCount==this.work.expectedCount?this.captureCardService.SetInputMaxRecordings(this.card.CardId,this.card.RecLimit).subscribe(this.saveObserver):this.work.successCount==this.work.expectedCount+1&&(this.parentComponent.loadCards(!1),this.work.recLimitUpd=!1)),this.work.successCount==this.work.expectedCount&&this.work.reloadGroups&&(this.loadInputGroups(),this.work.reloadGroups=!1),this.work.successCount==this.work.expectedCount&&this.work.startScan&&this.scanComponent&&(this.work.startScan=!1,this.currentForm.form.markAsPristine(),this.scanComponent.startScan())):(console.log("saveObserver
error",o),this.work.startScan=!1,this.
work.errorCount++,this.currentForm.form.markAsDirty())},error:o=>{console.log("saveObserver
error",o),this.work.startScan=!1,this.work.errorCount++,this.currentForm.form.markAsDirty()}},this.quickTuneValues.forEach(o=>e.get(o.prompt).subscribe(u=>o.prompt=u)),this.loadChannels(),this.loadInputGroups()}loadChannels(){this.channelService.GetChannelInfoList({Details:!0}).subscribe(n=>{this.allChannels=n.ChannelInfoList.ChannelInfos,this.fillChannelList()})}fillChannelList(){this.sourceChannels=this.allChannels.filter(e=>e.SourceId==this.card.SourceId),this.sourceChannels.find(e=>e.ChanNum==this.card.StartChannel)||(this.card.StartChannel="")}loadInputGroups(){this.captureCardService.GetInputGroupList().subscribe(e=>{this.inputGroups=e.InputGroupList.InputGroups,this.inputGroups.forEach(n=>{if(Ju("user:")){const
s=n.InputGroupName.substring(5);-1==this.selectGroups.findIndex(r=>s==r.InputGroupName)&&this.selectGroups.push({CardInputId:0,InputGroupId:n.InputGroupId,InputGroupName:s}),n.C
ardInputId==this.card.CardId&&(this.work.inputGroupName||(this.work.inputGroupName=s,this.work.orgInputGroupName=s),this.orgInputGroupIds.push(n.InputGroupId))}})})}ngOnInit(){this.work.isEncoder=this.preEncodedTypes.indexOf(this.card.CardType)<0,this.work.isUnscanable=this.unscanableTypes.indexOf(this.card.CardType)>=0,this.work.hasTuner=this.hasTunerTypes.indexOf(this.card.CardType)>=0,(this.work.isEncoder||this.work.isUnscanable)&&(this.work.hasTuner||"EXTERNAL"==this.card.CardType)&&(this.work.showPresetTuner=!0),"DVB"==this.card.CardType&&this.loadDiseqc(),this.card.DisplayName||(this.card.DisplayName="Input
"+this.card.CardId),this.captureCardService.GetCaptureDeviceList(this.card.CardType).subscribe({next:e=>{this.captureDeviceList=e,this.setupDevice(),this.deviceFree.next(!0)},error:e=>{console.log("GetCaptureDeviceList",e),this.work.errorCount++}})}setupDevice(){if(this.card.VideoDevice){let
e=this.captureDeviceList.CaptureDeviceList.CaptureDevices.find(n=>n.VideoDevice==th
is.card.VideoDevice);e?this.currentDevice=e:(this.currentDevice={VideoDevice:this.card.VideoDevice,FrontendName:this.messages.devNotExist,InputNames:["MPEG2TS"]},this.captureDeviceList.CaptureDeviceList.CaptureDevices.push(this.currentDevice))}this.currentDevice&&this.card.InputName&&(this.currentDevice.InputNames.includes(this.card.InputName)||this.currentDevice.InputNames.push(this.card.InputName),this.currentDevice.InputNames.includes("MPEG2TS")||this.currentDevice.InputNames.push("MPEG2TS")),this.work.isReady=!0}loadDiseqc(){this.captureCardService.GetDiseqcTreeList().subscribe({next:e=>{this.diseqcTreeList=e,this.setupDiseqc()},error:e=>{console.log("GetDiseqcTreeList",e),this.work.errorCount++}})}setupDiseqc(){let
e=this.diseqcTreeList.DiseqcTreeList.DiseqcTrees.find(n=>n.DiSEqCId==this.card.DiSEqCId);if(e)switch(this.diseqcTree=e,this.diseqcTree.Type){case"switch":case"rotor":case"scr":this.captureCardService.GetDiseqcConfigList().subscribe({next:n=>{let
s=n.DiseqcConfigList.
DiseqcConfigs.find(r=>r.CardId==this.card.CardId&&r.DiSEqCId==this.card.DiSEqCId);if(this.diseqcConfig=s||{CardId:this.card.CardId,DiSEqCId:this.card.DiSEqCId,Value:""},"switch"==this.diseqcTree.Type)this.work.switchPort=Number.parseInt(this.diseqcConfig.Value)-1,Number.isNaN(this.work.switchPort)&&(this.work.switchPort=0);else
if("rotor"==this.diseqcTree.Type)this.work.rotorDegrees=Number.parseFloat(this.diseqcConfig.Value),Number.isNaN(this.work.rotorDegrees)&&(this.work.rotorDegrees=0),this.work.rotorDegrees<0?(this.work.hemisphere=-1,this.work.rotorDegrees=-this.work.rotorDegrees):this.work.hemisphere=1;else
if("scr"==this.diseqcTree.Type)switch(this.diseqcConfig.Value){case"0":this.work.scrPort="A";break;case"1":this.work.scrPort="B";break;default:this.work.scrPort=""}},error:n=>{console.log("GetDiseqcTreeList",n),this.work.errorCount++}})}}ngAfterViewInit(){this.setupService.setCurrentForm(this.currentForm),this.currentForm.form.markAsDirty(),setTimeout(()=>{this.currentForm.f
orm.markAsPristine()},0)}fetchChannels(){this.work.fetchChannelsDialog=!1;let
e={SourceId:this.card.SourceId,CardId:this.card.CardId,WaitForFinish:!0};this.work.fetchStatus=1,this.channelService.FetchChannelsFromSource(e).subscribe({next:n=>{this.work.fetchStatus=n.int>0?2:3,this.work.fetchCount=n.int,this.loadChannels()},error:n=>{console.log("fetchChannels",n),this.work.fetchStatus=3,this.work.fetchCount=0}})}saveForm(){this.work.successCount=0,this.work.errorCount=0,this.work.expectedCount=0,this.work.inputGroupName!=this.work.orgInputGroupName?this.work.inputGroupName?this.captureCardService.AddUserInputGroup(this.work.inputGroupName).subscribe({next:n=>{this.saveCard(n.int)},error:n=>{console.log("saveForm
error",n),this.work.errorCount++,this.currentForm.form.markAsDirty()}}):this.saveCard(-1):this.saveCard(0)}saveCard(e){0!=e&&(this.work.reloadGroups=!0);let
n=0;if(this.work.recLimitUpd=!1,this.cardList.CaptureCardList.CaptureCards.forEach(s=>{(s.CardId==this.card.CardId||s.P
arentId==this.card.CardId)&&(this.captureCardService.UpdateCaptureCard(s.CardId,"inputname",s.InputName=this.card.InputName).subscribe(this.saveObserver),this.captureCardService.UpdateCaptureCard(s.CardId,"displayname",s.DisplayName=this.card.DisplayName).subscribe(this.saveObserver),this.captureCardService.UpdateCaptureCard(s.CardId,"sourceid",String(s.SourceId=this.card.SourceId)).subscribe(this.saveObserver),this.captureCardService.UpdateCaptureCard(s.CardId,"quicktune",String(s.Quicktune=this.card.Quicktune)).subscribe(this.saveObserver),this.captureCardService.UpdateCaptureCard(s.CardId,"dishnet_eit",(s.DishnetEIT=this.card.DishnetEIT)?"1":"0").subscribe(this.saveObserver),this.card.StartChannel&&(this.captureCardService.UpdateCaptureCard(s.CardId,"startchan",s.StartChannel=this.card.StartChannel).subscribe(this.saveObserver),this.work.expectedCount++),this.captureCardService.UpdateCaptureCard(s.CardId,"recpriority",String(s.RecPriority=this.card.RecPriority)).subscribe(this.sa
veObserver),this.captureCardService.UpdateCaptureCard(s.CardId,"livetvorder",String(s.LiveTVOrder=this.card.LiveTVOrder)).subscribe(this.saveObserver),this.captureCardService.UpdateCaptureCard(s.CardId,"reclimit",String(s.RecLimit=this.card.RecLimit)).subscribe(this.saveObserver),this.card.SchedGroup&&this.card.CardId!=s.CardId?(s.SchedGroup=!1,s.SchedOrder=0):(s.SchedGroup=this.card.SchedGroup,s.SchedOrder=this.card.SchedOrder),this.captureCardService.UpdateCaptureCard(s.CardId,"schedgroup",s.SchedGroup?"1":"0").subscribe(this.saveObserver),this.captureCardService.UpdateCaptureCard(s.CardId,"schedorder",String(s.SchedOrder)).subscribe(this.saveObserver),this.work.expectedCount+=10,0!=e&&this.orgInputGroupIds.forEach(r=>{this.captureCardService.UnlinkInputGroup(s.CardId,r).subscribe(this.saveObserver),this.work.expectedCount++}),e>0&&(this.captureCardService.LinkInputGroup(s.CardId,e).subscribe(this.saveObserver),this.work.expectedCount++),n++)}),n!=this.card.RecLimit&&(this.work.re
cLimitUpd=!0),this.diseqcConfig){let
s="";if("switch"==this.diseqcTree.Type)s=(this.work.switchPort-1).toString();else
if("rotor"==this.diseqcTree.Type)s=(this.work.rotorDegrees*this.work.hemisphere).toString();else
if("scr"==this.diseqcTree.Type)switch(this.work.scrPort){case"A":default:s="0";break;case"B":s="1"}s!=this.diseqcConfig.Value&&(this.diseqcConfig.Value=s,this.captureCardService.DeleteDiseqcConfig(this.card.CardId).subscribe(r=>{this.captureCardService.AddDiseqcConfig(this.diseqcConfig).subscribe(this.saveObserver)}))}}}return
t.\u0275fac=function(e){return
new(e||t)(D(Oe),D(Or),D(Gt),D(Me))},t.\u0275cmp=z({type:t,selectors:[["app-iconnection"]],viewQuery:function(e,n){if(1&e&&W(une,5),2&e){let
s;V(s=B())&&(n.currentForm=s.first)}},inputs:{card:"card",cardList:"cardList",videoSourceLookup:"videoSourceLookup",videoSourceList:"videoSourceList",parentComponent:"parentComponent"},decls:9,vars:0,consts:[["name","connform",1,"ml-3","mr-3"],["connform","ngForm"],["top",""],[1,"
m-5"],["pTemplate","title"],["pTemplate","subtitle"],["pTemplate","content"],["pTemplate","footer"],[1,"grid"],[1,"mb-4","w-full"],[3,"ngSwitch",4,"ngIf"],["class","form-group
field",4,"ngIf"],[1,"form-group","field"],["for","DisplayName",1,"label","block"],["pInputText","","id","DisplayName","name","DisplayName",1,"mb-2","form-control","w-full",3,"ngModel","ngModelChange"],["DisplayName","ngModel"],[1,"block"],["for","SourceId",1,"label","block"],["optionLabel","SourceName","optionValue","Id","name","SourceId",3,"options","ngModel","editable","maxlength","ngModelChange","onChange"],["SourceId","ngModel"],["class","mb-4
w-full",3,"legend","collapsed","toggleable",4,"ngIf"],[2,"display","flex","align-items","center"],["icon","pi
pi-download","iconPos","left",3,"label","disabled","onClick"],["header","Fetch
Channels",3,"visible","modal","draggable","resizable","visibleChange"],["for","StartChannel",1,"label","block"],["placeholder","Select
Item","optionLabel","ChanNum","optionValue","
ChanNum","scrollHeight","400px","name","StartChannel",3,"options","ngModel","editable","ngModelChange"],["StartChannel","ngModel"],[1,"mb-4","w-full",3,"legend","toggleable","collapsed"],["for","RecLimit",1,"label","block"],["name","RecLimit","id","RecLimit",3,"ngModel","showButtons","min","max","step","ngModelChange"],["inputId","SchedGroup","name","SchedGroup",1,"label","mb-2","w-full",3,"ngModel","binary","label","ngModelChange"],["DVBWaitForSeqStart","ngModel"],["for","RecPriority",1,"label","block"],["name","RecPriority","id","RecPriority",3,"ngModel","showButtons","min","max","step","ngModelChange"],["for","SchedOrder",1,"label","block"],["name","SchedOrder","id","SchedOrder",3,"ngModel","showButtons","min","max","step","ngModelChange"],["for","LiveTVOrder",1,"label","block"],["name","LiveTVOrder","id","LiveTVOrder",3,"ngModel","showButtons","min","max","step","ngModelChange"],["for","inputGroupName",1,"label","block"],["placeholder","Optional
Group Name","optionLabel","InputG
roupName","optionValue","InputGroupName","scrollHeight","400px","name","inputGroupName",3,"options","ngModel","editable","ngModelChange"],["inputGroupName","ngModel"],[3,"ngSwitch"],["class","form-group
field",4,"ngSwitchCase"],[4,"ngSwitchCase"],["for","Port",1,"label","block"],["name","Port","id","Port",3,"ngModel","showButtons","min","max","step","ngModelChange"],["for","Degrees",1,"label","block"],["name","Degrees","id","Degrees",3,"ngModel","min","max","maxFractionDigits","ngModelChange"],[1,"field-radiobutton"],["name","hemisphere","value","1","inputId","east",3,"ngModel","ngModelChange"],["for","east",1,"label","block"],["name","hemisphere","value","-1","inputId","west",3,"ngModel","ngModelChange"],["for","west",1,"label","block"],[1,"label","block"],["name","scrPort","value","A","inputId","portA",3,"ngModel","ngModelChange"],["for","portA",1,"label","block"],["name","scrPort","value","B","inputId","portB",3,"ngModel","ngModelChange"],["for","portB",1,"label","block"],["for",
"Delivery",1,"label","block"],["pInputText","","id","Delivery","name","Delivery","disabled","true",1,"mb-2","form-control","w-full",3,"ngModel","ngModelChange"],["InputName","ngModel"],["for","InputName",1,"label","block"],["name","InputName",3,"options","ngModel","ngModelChange",4,"ngIf"],["name","InputName",3,"options","ngModel","ngModelChange"],["for","ExternalCommand",1,"label","block"],["pInputText","","id","ExternalCommand","name","ExternalCommand",1,"mb-2","form-control","w-full",3,"ngModel","ngModelChange"],["ExternalCommand","ngModel"],["for","TuneChan",1,"label","block"],["pInputText","","id","TuneChan","name","TuneChan",1,"mb-2","form-control","w-full",3,"ngModel","ngModelChange"],["TuneChan","ngModel"],["for","Quicktune",1,"label","block"],["optionLabel","prompt","optionValue","value","name","Quicktune",3,"options","ngModel","editable","maxlength","ngModelChange"],["Quicktune","ngModel"],["inputId","DishnetEIT","name","DishnetEIT",1,"label","mb-2","w-full",3,"ngModel","b
inary","label","ngModelChange"],["DishnetEIT","ngModel"],[1,"mb-4","w-full",3,"legend","collapsed","toggleable"],[3,"card","cardList","iconnection","videoSourceLookup"],["icon","pi
pi-times-circle","styleClass","p-button-plain",3,"label","click"],["icon","pi
pi-check-circle","styleClass","p-button-plain",3,"label","click"],[1,"grid","nogutter"],[1,"col-12"],["severity","success",3,"text",4,"ngIf"],["severity","error",3,"text",4,"ngIf"],["icon","pi
pi-save","iconPos","left",1,"col","pr-1",3,"label","disabled","onClick"],["severity","success",3,"text"],["severity","error",3,"text"]],template:function(e,n){1&e&&(l(0,"form",0,1),k(2,"span",null,2),l(4,"p-card",3),_(5,dne,2,3,"ng-template",4),_(6,pne,0,0,"ng-template",5),_(7,kne,108,135,"ng-template",6),_(8,Rne,6,6,"ng-template",7),c()())},styles:[""]}),t})();function
Lne(t,i){if(1&t){const
e=I();l(0,"p-button",10),C("onClick",function(){return
v(e),d().displayNewDialog=!1}),m(1,"translate"),c(),l(2,"p-button",11),C("onClick",function(){
return v(e),d().newProfile()}),m(3,"translate"),c()}if(2&t){const
e=d();x("label",f(1,3,"common.cancel")),a(2),x("label",f(3,5,"common.ok")),p("disabled",e.rejectName())}}function
One(t,i){1&t&&(l(0,"div",12),k(1,"br")(2,"p-message",13),m(3,"translate"),k(4,"br"),c()),2&t&&(a(2),x("text",f(3,1,"settings.common.successful_delete")))}function
Ane(t,i){1&t&&(l(0,"div",12),k(1,"br")(2,"p-message",14),m(3,"translate"),k(4,"br"),c()),2&t&&(a(2),x("text",f(3,1,"common.networkfail")))}function
Pne(t,i){if(1&t&&(l(0,"div",18)(1,"div",19),g(2),l(3,"b"),g(4),c()()()),2&t){const
e=d(),n=e.$implicit,s=e.index,r=d();a(2),T(" ",n.Name,"
"),a(2),T("\xa0",r.dirtyMessages[s],"")}}function
Fne(t,i){if(1&t){const
e=I();l(0,"p-button",22),C("click",function(){v(e);const
s=d(2).index;return
d().displayDeleteThis[s]=!1}),m(1,"translate"),c(),l(2,"p-button",23),C("click",function(){v(e);const
s=d(2).index;return
d().deleteThis(s)}),m(3,"translate"),c()}2&t&&(x("label",f(1,2,"common.no")),a(2),x("label",f(3
,4,"common.yes")))}const
IS=function(){return{width:"50vw"}},Nne=function(t,i){return{ProfileName:t,GroupName:i}};function
Vne(t,i){if(1&t){const
e=I();l(0,"p-button",20),C("onClick",function(){v(e);const
s=d().index;return
d().displayDeleteThis[s]=!0}),m(1,"translate"),c(),l(2,"p-dialog",2),C("visibleChange",function(s){v(e);const
r=d().index;return
d().displayDeleteThis[r]=s}),m(3,"translate"),l(4,"h2"),g(5),m(6,"translate"),c(),l(7,"p"),g(8),m(9,"translate"),c(),_(10,Fne,4,6,"ng-template",5),c(),k(11,"app-recprofile",21)}if(2&t){const
e=d(),n=e.index,s=e.$implicit,r=d();x("label",f(1,14,"settings.rprofiles.delete_this")),p("disabled",!r.group.RecProfiles[n].Id||r.setupService.schedulingEnabled),a(2),q(A(23,IS)),x("header",f(3,16,"settings.rprofiles.delete_this")),p("visible",r.displayDeleteThis[n])("modal",!0)("draggable",!1)("resizable",!1),a(3),S(f(6,18,"settings.common.ru_sure")),a(3),S(Dt(9,20,"settings.rprofiles.delete_details",Ge(24,Nne,r.group.RecProfiles[n].Name,r.group.N
ame))),a(3),p("profile",s)("group",r.group)("parentComponent",r)}}function
Bne(t,i){if(1&t){const
e=I();l(0,"p-accordionTab",15),C("selectedChange",function(s){const
o=v(e).index;return
d().activeTab[o]=s}),_(1,Pne,5,2,"ng-template",16),_(2,Vne,12,27,"ng-template",17),c()}if(2&t){const
e=i.index,n=d();p("disabled",n.disabledTab[e])("selected",n.activeTab[e])}}let
ES=(()=>{class
t{constructor(e,n,s){this.captureCardService=e,this.setupService=n,this.translate=s,this.currentTab=-1,this.deletedTab=-1,this.dirtyMessages=[],this.forms=[],this.disabledTab=[],this.activeTab=[],this.readyCount=0,this.displayNewDialog=!1,this.newProfileName="",this.successCount=0,this.expectedCount=0,this.errorCount=0,this.displayDeleteThis=[],this.dirtyText="settings.common.unsaved",this.warningText="settings.common.warning",this.deletedText="settings.common.deleted",this.newText="settings.common.new",this.delObserver={next:r=>{r.bool?(this.successCount++,this.deletedTab>-1&&(this.dirtyMessages[this.deleted
Tab]=this.deletedText,this.disabledTab[this.deletedTab]=!0,this.activeTab[this.deletedTab]=!1,this.deletedTab=-1)):(this.errorCount++,this.deletedTab=-1)},error:r=>{console.error(r),this.errorCount++}},s.get(this.dirtyText).subscribe(r=>this.dirtyText=r),s.get(this.warningText).subscribe(r=>this.warningText=r),s.get(this.deletedText).subscribe(r=>this.deletedText=r),s.get(this.newText).subscribe(r=>this.newText=r)}ngOnInit(){let
e=this.parentComponent.groups.findIndex(n=>n===this.group);this.parentComponent.profileGroups[e]=this}onTabOpen(e){this.showDirty();let
n=this.setupService.getCurrentForm();null!=n&&(this.forms[e.index]=n),this.setupService.setCurrentForm(null),this.currentTab=e.index,this.dirtyMessages[this.currentTab]=""}onTabClose(e){this.showDirty(),this.currentTab=-1}showDirty(){-1==this.currentTab||this.disabledTab[this.currentTab]||(this.dirtyMessages[this.currentTab]=this.forms[this.currentTab]&&this.forms[this.currentTab].dirty?this.dirtyText:this.group.RecProfiles[
this.currentTab].Id?"":this.newText)}newProfile(){this.displayNewDialog=!1;for(let
n=0;n<this.activeTab.length;n++)this.activeTab[n]=!1;this.group.RecProfiles.push({Id:0,Name:this.newProfileName.trim(),VideoCodec:"MPEG-4",AudioCodec:"MP3",RecProfParams:[]}),this.currentTab=this.group.RecProfiles.length-1,this.showDirty()}deleteThis(e){this.errorCount=0,this.successCount=0,this.expectedCount=1,this.displayDeleteThis[e]=!1,this.deletedTab=e,this.captureCardService.DeleteRecProfile(this.group.RecProfiles[e].Id).subscribe(this.delObserver)}rejectName(){let
e=this.newProfileName.trim();return""==e||null!=this.group.RecProfiles.find(n=>n.Name==e)}confirm(e){return
oe(window.confirm(e))}canDeactivate(){let
e=this.setupService.getCurrentForm();return!(this.forms[this.currentTab]&&this.forms[this.currentTab].dirty||this.dirtyMessages.find(n=>n==this.dirtyText)||e&&e.dirty)||this.confirm(this.warningText)}allClean(){let
e=this.setupService.getCurrentForm();return!(this.forms[this.currentTab]&
&this.forms[this.currentTab].dirty||this.dirtyMessages.find(n=>n==this.dirtyText)||e&&e.dirty)}onWindowClose(e){let
n=this.setupService.getCurrentForm();(this.forms[this.currentTab]&&this.forms[this.currentTab].dirty||this.dirtyMessages.find(s=>s==this.dirtyText)||n&&n.dirty)&&(e.preventDefault(),e.returnValue=!1)}}return
t.\u0275fac=function(e){return
new(e||t)(D(Gt),D(Me),D(Oe))},t.\u0275cmp=z({type:t,selectors:[["app-profile-group"]],hostBindings:function(e,n){1&e&&C("beforeunload",function(r){return
n.onWindowClose(r)},!1,ni)},inputs:{group:"group",parentComponent:"parentComponent"},decls:19,vars:24,consts:[[1,"block","card","w-full"],["icon","pi
pi-plus-circle","styleClass","p-button-plain",3,"label","onClick"],[3,"header","visible","modal","draggable","resizable","visibleChange"],["pInputText","","id","Name","name","Name","autofocus","",1,"mb-2","form-control","w-full",3,"ngModel","ngModelChange"],["Name","ngModel"],["pTemplate","footer"],[1,"grid","nogutter"],["class","col-12
",4,"ngIf"],[1,"col-12","w-full",3,"onClose","onOpen"],[3,"disabled","selected","selectedChange",4,"ngFor","ngForOf"],["icon","pi
pi-times-circle","styleClass","p-button-plain",3,"label","onClick"],["icon","pi
pi-check-circle","styleClass","p-button-plain",3,"label","disabled","onClick"],[1,"col-12"],["severity","success",3,"text"],["severity","error",3,"text"],[3,"disabled","selected","selectedChange"],["pTemplate","header"],["pTemplate","content"],[1,"grid","w-full"],[1,"col-9","pr-1"],["styleClass","p-button-warning","icon","pi
pi-trash",3,"label","disabled","onClick"],[3,"profile","group","parentComponent"],["icon","pi
pi-times-circle","styleClass","p-button-plain",3,"label","click"],["icon","pi
pi-check-circle","styleClass","p-button-plain",3,"label","click"]],template:function(e,n){1&e&&(l(0,"div",0)(1,"h3"),g(2),m(3,"translate"),c(),l(4,"p-button",1),C("onClick",function(){return
n.displayNewDialog=!0}),m(5,"translate"),c(),l(6,"p-dialog",2),C("visibleChange",function(r){retu
rn
n.displayNewDialog=r}),m(7,"translate"),l(8,"p"),g(9),m(10,"translate"),c(),l(11,"input",3,4),C("ngModelChange",function(r){return
n.newProfileName=r}),c(),_(13,Lne,4,7,"ng-template",5),c(),l(14,"div",6),_(15,One,5,3,"div",7),_(16,Ane,5,3,"div",7),c(),l(17,"p-accordion",8),C("onClose",function(r){return
n.onTabClose(r)})("onOpen",function(r){return
n.onTabOpen(r)}),_(18,Bne,3,2,"p-accordionTab",9),c()()),2&e&&(a(2),We("",f(3,15,"settings.rprofiles.grouptitle"),"
",n.group.Name,""),a(2),x("label",f(5,17,"settings.rprofiles.new_profile")),a(2),q(A(23,IS)),x("header",f(7,19,"settings.rprofiles.new_profile")),p("visible",n.displayNewDialog)("modal",!0)("draggable",!1)("resizable",!1),a(3),S(f(10,21,"settings.rprofiles.enter_profile_name")),a(2),p("ngModel",n.newProfileName),a(4),p("ngIf",n.expectedCount&&n.successCount==n.expectedCount),a(1),p("ngIf",n.errorCount>0),a(2),p("ngForOf",n.group.RecProfiles))},styles:[""]}),t})();const
Hne=["recprofform"],qne=["top"];function Gne(t,i){if(
1&t&&(g(0),m(1,"translate")),2&t){const e=d();We("
",f(1,2,"settings.rprofiles.proftitle")," ",e.profile.Name,"
")}}function Une(t,i){}function zne(t,i){if(1&t){const
e=I();l(0,"div",12)(1,"p-checkbox",13,14),C("ngModelChange",function(s){v(e);const
r=d(2);return
r.profile.RecProfParams[r.findIx("autotranscode",!1)].Value=s}),m(3,"translate"),c(),l(4,"small",15),g(5),m(6,"translate"),c()()}if(2&t){const
e=d(2);a(1),x("label",f(3,4,"settings.rprofiles.autotranscode_label")),p("ngModel",e.profile.RecProfParams[e.findIx("autotranscode",!1)].Value)("binary",!0),a(4),T("
",f(6,6,"settings.rprofiles.autotranscode_desc")," ")}}function
jne(t,i){if(1&t){const
e=I();l(0,"div",12)(1,"label",16),g(2),m(3,"translate"),c(),l(4,"p-inputNumber",17),C("ngModelChange",function(s){v(e);const
r=d(2);return
r.profile.RecProfParams[r.findIx("width","480")].Value=s}),c(),l(5,"small",15),g(6),m(7,"translate"),c()()}if(2&t){const
e=d(2);a(2),S(f(3,7,"settings.rprofiles.width_label")),a(2),p("ngModel",e.pro
file.RecProfParams[e.findIx("width","480")].Value)("showButtons",!0)("min",160)("max",720)("step",16),a(2),T("
",f(7,9,"settings.rprofiles.width_desc")," ")}}function
$ne(t,i){if(1&t){const
e=I();l(0,"div",12)(1,"label",18),g(2),m(3,"translate"),c(),l(4,"p-inputNumber",19),C("ngModelChange",function(s){v(e);const
r=d(2);return
r.profile.RecProfParams[r.findIx("height","480")].Value=s}),c(),l(5,"small",15),g(6),m(7,"translate"),c()()}if(2&t){const
e=d(2);a(2),S(f(3,7,"settings.rprofiles.height_label")),a(2),p("ngModel",e.profile.RecProfParams[e.findIx("height","480")].Value)("showButtons",!0)("min",160)("max",480)("step",16),a(2),T("
",f(7,9,"settings.rprofiles.height_desc")," ")}}const
Ms=function(){return{minWidth:"400px"}};function Wne(t,i){if(1&t){const
e=I();l(0,"div",12)(1,"label",20),g(2),m(3,"translate"),c(),l(4,"p-dropdown",21,22),C("ngModelChange",function(s){v(e);const
r=d(2);return
r.profile.RecProfParams[r.findIx("recordingtype","all")].Value=s}),c(),l(6,"small",15),g(7)
,m(8,"translate"),c()()}if(2&t){const
e=d(2);a(2),S(f(3,8,"settings.rprofiles.recordingtype_label")),a(2),q(A(12,Ms)),p("options",e.recordingtypeOptions)("ngModel",e.profile.RecProfParams[e.findIx("recordingtype","all")].Value)("editable",!1)("maxlength",0),a(3),T("
",f(8,10,"settings.rprofiles.recordingtype_desc")," ")}}function
Kne(t,i){if(1&t){const
e=I();l(0,"div",12)(1,"p-checkbox",23,24),C("ngModelChange",function(s){v(e);const
r=d(2);return
r.profile.RecProfParams[r.findIx("recordmpts",!1)].Value=s}),m(3,"translate"),c(),l(4,"small",15),g(5),m(6,"translate"),c()()}if(2&t){const
e=d(2);a(1),x("label",f(3,4,"settings.rprofiles.recordmpts_label")),p("ngModel",e.profile.RecProfParams[e.findIx("recordmpts",!1)].Value)("binary",!0),a(4),T("
",f(6,6,"settings.rprofiles.recordmpts_desc")," ")}}function
Qne(t,i){if(1&t){const
e=I();l(0,"div",12)(1,"label",26),g(2),m(3,"translate"),c(),l(4,"p-dropdown",27,28),C("ngModelChange",function(s){return
v(e),d(3).profile.VideoCodec=s}),c(),k(6
,"small",15),c()}if(2&t){const
e=d(3);a(2),S(f(3,7,"settings.rprofiles.videocodec_label")),a(2),q(A(9,Ms)),p("options",e.params.Video)("ngModel",e.profile.VideoCodec)("editable",!1)("maxlength",0)}}function
Jne(t,i){if(1&t){const
e=I();l(0,"div",12)(1,"label",29),g(2),m(3,"translate"),c(),l(4,"p-inputNumber",30),C("ngModelChange",function(s){v(e);const
r=d(3);return
r.profile.RecProfParams[r.findIx("rtjpegquality","170")].Value=s}),c(),l(5,"small",15),g(6),m(7,"translate"),c()()}if(2&t){const
e=d(3);a(2),S(f(3,7,"settings.rprofiles.rtjpegquality_label")),a(2),p("ngModel",e.profile.RecProfParams[e.findIx("rtjpegquality","170")].Value)("showButtons",!0)("min",1)("max",255)("step",1),a(2),T("
",f(7,9,"settings.rprofiles.rtjpegquality_desc")," ")}}function
Yne(t,i){if(1&t){const
e=I();l(0,"div",12)(1,"label",31),g(2),m(3,"translate"),c(),l(4,"p-inputNumber",32),C("ngModelChange",function(s){v(e);const
r=d(3);return
r.profile.RecProfParams[r.findIx("rtjpeglumafilter","0")].Value=s}),c(),
l(5,"small",15),g(6),m(7,"translate"),c()()}if(2&t){const
e=d(3);a(2),S(f(3,7,"settings.rprofiles.rtjpeglumafilter_label")),a(2),p("ngModel",e.profile.RecProfParams[e.findIx("rtjpeglumafilter","0")].Value)("showButtons",!0)("min",0)("max",31)("step",1),a(2),T("
",f(7,9,"settings.rprofiles.rtjpegfilter_desc")," ")}}function
Zne(t,i){if(1&t){const
e=I();l(0,"div",12)(1,"label",33),g(2),m(3,"translate"),c(),l(4,"p-inputNumber",34),C("ngModelChange",function(s){v(e);const
r=d(3);return
r.profile.RecProfParams[r.findIx("rtjpegchromafilter","0")].Value=s}),c(),l(5,"small",15),g(6),m(7,"translate"),c()()}if(2&t){const
e=d(3);a(2),S(f(3,7,"settings.rprofiles.rtjpegchromafilter_label")),a(2),p("ngModel",e.profile.RecProfParams[e.findIx("rtjpegchromafilter","0")].Value)("showButtons",!0)("min",0)("max",31)("step",1),a(2),T("
",f(7,9,"settings.rprofiles.rtjpegfilter_desc")," ")}}function
Xne(t,i){if(1&t){const
e=I();l(0,"div",12)(1,"label",35),g(2),m(3,"translate"),c(),l(4,"p-inputNumber",36),
C("ngModelChange",function(s){v(e);const r=d(3);return
r.profile.RecProfParams[r.findIx("mpeg4bitrate","2200")].Value=s}),c(),l(5,"small",15),g(6),m(7,"translate"),c()()}if(2&t){const
e=d(3);a(2),S(f(3,7,"settings.rprofiles.mpeg4bitrate_label")),a(2),p("ngModel",e.profile.RecProfParams[e.findIx("mpeg4bitrate","2200")].Value)("showButtons",!0)("min",100)("max",8e3)("step",100),a(2),T("
",f(7,9,"settings.rprofiles.mpeg4bitrate_desc")," ")}}function
eie(t,i){if(1&t){const
e=I();l(0,"div",12)(1,"label",37),g(2),m(3,"translate"),c(),l(4,"p-inputNumber",38),C("ngModelChange",function(s){v(e);const
r=d(3);return
r.profile.RecProfParams[r.findIx("mpeg4maxquality","2")].Value=s}),c(),l(5,"small",15),g(6),m(7,"translate"),c()()}if(2&t){const
e=d(3);a(2),S(f(3,7,"settings.rprofiles.mpeg4maxquality_label")),a(2),p("ngModel",e.profile.RecProfParams[e.findIx("mpeg4maxquality","2")].Value)("showButtons",!0)("min",1)("max",31)("step",1),a(2),T("
",f(7,9,"settings.rprofiles.mpeg4quality_desc")," ")}
}function tie(t,i){if(1&t){const
e=I();l(0,"div",12)(1,"label",39),g(2),m(3,"translate"),c(),l(4,"p-inputNumber",40),C("ngModelChange",function(s){v(e);const
r=d(3);return
r.profile.RecProfParams[r.findIx("mpeg4minquality","15")].Value=s}),c(),l(5,"small",15),g(6),m(7,"translate"),c()()}if(2&t){const
e=d(3);a(2),S(f(3,7,"settings.rprofiles.mpeg4minquality_label")),a(2),p("ngModel",e.profile.RecProfParams[e.findIx("mpeg4minquality","15")].Value)("showButtons",!0)("min",1)("max",31)("step",1),a(2),T("
",f(7,9,"settings.rprofiles.mpeg4quality_desc")," ")}}function
nie(t,i){if(1&t){const
e=I();l(0,"div",12)(1,"label",41),g(2),m(3,"translate"),c(),l(4,"p-inputNumber",42),C("ngModelChange",function(s){v(e);const
r=d(3);return
r.profile.RecProfParams[r.findIx("hardwaremjpegquality","100")].Value=s}),c(),k(5,"small",15),c()}if(2&t){const
e=d(3);a(2),S(f(3,6,"settings.rprofiles.hardwaremjpegquality_label")),a(2),p("ngModel",e.profile.RecProfParams[e.findIx("hardwaremjpegquality","100")].Valu
e)("showButtons",!0)("min",0)("max",100)("step",1)}}const
RS=function(){return["1","2","4"]};function
iie(t,i){if(1&t){const
e=I();l(0,"div",12)(1,"label",43),g(2),m(3,"translate"),c(),l(4,"p-dropdown",44,45),C("ngModelChange",function(s){v(e);const
r=d(3);return
r.profile.RecProfParams[r.findIx("hardwaremjpeghdecimation","2")].Value=s}),c(),k(6,"small",15),c()}if(2&t){const
e=d(3);a(2),S(f(3,7,"settings.rprofiles.hardwaremjpeghdecimation_label")),a(2),q(A(9,Ms)),p("options",A(10,RS))("ngModel",e.profile.RecProfParams[e.findIx("hardwaremjpeghdecimation","2")].Value)("editable",!1)("maxlength",0)}}function
sie(t,i){if(1&t){const
e=I();l(0,"div",12)(1,"label",46),g(2),m(3,"translate"),c(),l(4,"p-dropdown",47,48),C("ngModelChange",function(s){v(e);const
r=d(3);return
r.profile.RecProfParams[r.findIx("hardwaremjpegvdecimation","2")].Value=s}),c(),k(6,"small",15),c()}if(2&t){const
e=d(3);a(2),S(f(3,7,"settings.rprofiles.hardwaremjpegvdecimation_label")),a(2),q(A(9,Ms)),p("options",A(10,R
S))("ngModel",e.profile.RecProfParams[e.findIx("hardwaremjpegvdecimation","2")].Value)("editable",!1)("maxlength",0)}}function
rie(t,i){if(1&t){const
e=I();l(0,"div",12)(1,"label",49),g(2),m(3,"translate"),c(),l(4,"p-inputNumber",50),C("ngModelChange",function(s){v(e);const
r=d(3);return
r.profile.RecProfParams[r.findIx("mpeg4qualdiff","3")].Value=s}),c(),l(5,"small",15),g(6),m(7,"translate"),c()()}if(2&t){const
e=d(3);a(2),S(f(3,7,"settings.rprofiles.mpeg4qualdiff_label")),a(2),p("ngModel",e.profile.RecProfParams[e.findIx("mpeg4qualdiff","3")].Value)("showButtons",!0)("min",1)("max",31)("step",1),a(2),T("
",f(7,9,"settings.rprofiles.mpeg4quality_desc")," ")}}function
oie(t,i){if(1&t){const
e=I();l(0,"div",12)(1,"label",51),g(2),m(3,"translate"),c(),l(4,"p-dropdown",52,53),C("ngModelChange",function(s){v(e);const
r=d(3);return
r.profile.RecProfParams[r.findIx("mpeg2streamtype","2")].Value=s}),c(),l(6,"small",15),g(7),m(8,"translate"),c()()}if(2&t){const
e=d(3);a(2),S(f(3,8,"settings
.rprofiles.mpeg2streamtype_label")),a(2),q(A(12,Ms)),p("options",e.streamTypeOptions)("ngModel",e.profile.RecProfParams[e.findIx("mpeg2streamtype","2")].Value)("editable",!1)("maxlength",0),a(3),T("
",f(8,10,"settings.rprofiles.mpeg2streamtype_desc")," ")}}const
aie=function(){return["Square","4:3","16:9","2.21:1"]};function
lie(t,i){if(1&t){const
e=I();l(0,"div",12)(1,"label",54),g(2),m(3,"translate"),c(),l(4,"p-dropdown",55,56),C("ngModelChange",function(s){v(e);const
r=d(3);return
r.profile.RecProfParams[r.findIx("mpeg2aspectratio","Square")].Value=s}),c(),l(6,"small",15),g(7),m(8,"translate"),c()()}if(2&t){const
e=d(3);a(2),S(f(3,8,"settings.rprofiles.mpeg2aspectratio_label")),a(2),q(A(12,Ms)),p("options",A(13,aie))("ngModel",e.profile.RecProfParams[e.findIx("mpeg2aspectratio","Square")].Value)("editable",!1)("maxlength",0),a(3),T("
",f(8,10,"settings.rprofiles.mpeg2aspectratio_desc"),"
")}}function cie(t,i){if(1&t){const
e=I();l(0,"div",12)(1,"label",57),g(2),m(3,"translate"),c
(),l(4,"p-inputNumber",58),C("ngModelChange",function(s){v(e);const
r=d(3);return
r.profile.RecProfParams[r.findIx("mpeg2bitrate","6000")].Value=s}),c(),l(5,"small",15),g(6),m(7,"translate"),c()()}if(2&t){const
e=d(3);a(2),S(f(3,7,"settings.rprofiles.mpeg2bitrate_label")),a(2),p("ngModel",e.profile.RecProfParams[e.findIx("mpeg2bitrate","6000")].Value)("showButtons",!0)("min",1e3)("max",16e3)("step",100),a(2),T("
",f(7,9,"settings.rprofiles.mpeg2bitrate_desc")," ")}}function
uie(t,i){if(1&t){const
e=I();l(0,"div",12)(1,"label",59),g(2),m(3,"translate"),c(),l(4,"p-inputNumber",60),C("ngModelChange",function(s){v(e);const
r=d(3);return
r.profile.RecProfParams[r.findIx("mpeg2maxbitrate","4500")].Value=s}),c(),l(5,"small",15),g(6),m(7,"translate"),c()()}if(2&t){const
e=d(3);a(2),S(f(3,7,"settings.rprofiles.mpeg2maxbitrate_label")),a(2),p("ngModel",e.profile.RecProfParams[e.findIx("mpeg2maxbitrate","4500")].Value)("showButtons",!0)("min",1e3)("max",16e3)("step",100),a(2),T("
",f(7,9,"sett
ings.rprofiles.mpeg2maxbitrate_desc")," ")}}function
die(t,i){if(1&t){const
e=I();l(0,"p-fieldset",25),m(1,"translate"),l(2,"div",12)(3,"label",61),g(4),m(5,"translate"),c(),l(6,"p-inputNumber",62),C("ngModelChange",function(s){v(e);const
r=d(3);return
r.profile.RecProfParams[r.findIx("low_mpeg4avgbitrate","4500")].Value=s}),c(),l(7,"small",15),g(8),m(9,"translate"),c()(),l(10,"div",12)(11,"label",63),g(12),m(13,"translate"),c(),l(14,"p-inputNumber",64),C("ngModelChange",function(s){v(e);const
r=d(3);return
r.profile.RecProfParams[r.findIx("low_mpeg4peakbitrate","6000")].Value=s}),c(),l(15,"small",15),g(16),m(17,"translate"),c()()()}if(2&t){const
e=d(3);x("legend",f(1,17,"settings.rprofiles.lowres_label")),p("toggleable",!0)("collapsed",!0),a(4),S(f(5,19,"settings.rprofiles.mpeg2bitrate_label")),a(2),p("ngModel",e.profile.RecProfParams[e.findIx("low_mpeg4avgbitrate","4500")].Value)("showButtons",!0)("min",1e3)("max",13500)("step",500),a(2),T("
",f(9,21,"settings.rprofiles.mpeg2bitra
te_desc"),"
"),a(4),S(f(13,23,"settings.rprofiles.mpeg2maxbitrate_label")),a(2),p("ngModel",e.profile.RecProfParams[e.findIx("low_mpeg4peakbitrate","6000")].Value)("showButtons",!0)("min",1100)("max",20200)("step",500),a(2),T("
",f(17,25,"settings.rprofiles.mpeg2maxbitrate_desc"),"
")}}function pie(t,i){if(1&t){const
e=I();l(0,"p-fieldset",25),m(1,"translate"),l(2,"div",12)(3,"label",65),g(4),m(5,"translate"),c(),l(6,"p-inputNumber",66),C("ngModelChange",function(s){v(e);const
r=d(3);return
r.profile.RecProfParams[r.findIx("medium_mpeg4avgbitrate","9000")].Value=s}),c(),l(7,"small",15),g(8),m(9,"translate"),c()(),l(10,"div",12)(11,"label",67),g(12),m(13,"translate"),c(),l(14,"p-inputNumber",68),C("ngModelChange",function(s){v(e);const
r=d(3);return
r.profile.RecProfParams[r.findIx("medium_mpeg4peakbitrate","11000")].Value=s}),c(),l(15,"small",15),g(16),m(17,"translate"),c()()()}if(2&t){const
e=d(3);x("legend",f(1,17,"settings.rprofiles.medres_label")),p("toggleable",!0)("collapsed",
!0),a(4),S(f(5,19,"settings.rprofiles.mpeg2bitrate_label")),a(2),p("ngModel",e.profile.RecProfParams[e.findIx("medium_mpeg4avgbitrate","9000")].Value)("showButtons",!0)("min",1e3)("max",13500)("step",500),a(2),T("
",f(9,21,"settings.rprofiles.mpeg2bitrate_desc"),"
"),a(4),S(f(13,23,"settings.rprofiles.mpeg2maxbitrate_label")),a(2),p("ngModel",e.profile.RecProfParams[e.findIx("medium_mpeg4peakbitrate","11000")].Value)("showButtons",!0)("min",1100)("max",20200)("step",500),a(2),T("
",f(17,25,"settings.rprofiles.mpeg2maxbitrate_desc"),"
")}}function hie(t,i){if(1&t){const
e=I();l(0,"p-fieldset",25),m(1,"translate"),l(2,"div",12)(3,"label",69),g(4),m(5,"translate"),c(),l(6,"p-inputNumber",70),C("ngModelChange",function(s){v(e);const
r=d(3);return
r.profile.RecProfParams[r.findIx("high_mpeg4avgbitrate","13500")].Value=s}),c(),l(7,"small",15),g(8),m(9,"translate"),c()(),l(10,"div",12)(11,"label",71),g(12),m(13,"translate"),c(),l(14,"p-inputNumber",72),C("ngModelChange",function(s){v(e);co
nst r=d(3);return
r.profile.RecProfParams[r.findIx("high_mpeg4peakbitrate","20200")].Value=s}),c(),l(15,"small",15),g(16),m(17,"translate"),c()()()}if(2&t){const
e=d(3);x("legend",f(1,17,"settings.rprofiles.highres_label")),p("toggleable",!0)("collapsed",!0),a(4),S(f(5,19,"settings.rprofiles.mpeg2bitrate_label")),a(2),p("ngModel",e.profile.RecProfParams[e.findIx("high_mpeg4avgbitrate","13500")].Value)("showButtons",!0)("min",1e3)("max",13500)("step",500),a(2),T("
",f(9,21,"settings.rprofiles.mpeg2bitrate_desc"),"
"),a(4),S(f(13,23,"settings.rprofiles.mpeg2maxbitrate_label")),a(2),p("ngModel",e.profile.RecProfParams[e.findIx("high_mpeg4peakbitrate","20200")].Value)("showButtons",!0)("min",1100)("max",20200)("step",500),a(2),T("
",f(17,25,"settings.rprofiles.mpeg2maxbitrate_desc"),"
")}}function mie(t,i){if(1&t){const
e=I();l(0,"div",12)(1,"p-checkbox",73,74),C("ngModelChange",function(s){v(e);const
r=d(3);return
r.profile.RecProfParams[r.findIx("scalebitrate",!0)].Value=s}),m(3,"tran
slate"),c(),l(4,"small",15),g(5),m(6,"translate"),c()()}if(2&t){const
e=d(3);a(1),x("label",f(3,4,"settings.rprofiles.scalebitrate_label")),p("ngModel",e.profile.RecProfParams[e.findIx("scalebitrate",!0)].Value)("binary",!0),a(4),T("
",f(6,6,"settings.rprofiles.scalebitrate_desc")," ")}}function
fie(t,i){if(1&t){const
e=I();l(0,"div",12)(1,"p-checkbox",75,76),C("ngModelChange",function(s){v(e);const
r=d(3);return
r.profile.RecProfParams[r.findIx("mpeg4optionvhq",!1)].Value=s}),m(3,"translate"),c(),l(4,"small",15),g(5),m(6,"translate"),c()()}if(2&t){const
e=d(3);a(1),x("label",f(3,4,"settings.rprofiles.mpeg4optionvhq_label")),p("ngModel",e.profile.RecProfParams[e.findIx("mpeg4optionvhq",!1)].Value)("binary",!0),a(4),T("
",f(6,6,"settings.rprofiles.mpeg4optionvhq_desc")," ")}}function
gie(t,i){if(1&t){const
e=I();l(0,"div",12)(1,"p-checkbox",77,78),C("ngModelChange",function(s){v(e);const
r=d(3);return
r.profile.RecProfParams[r.findIx("mpeg4option4mv",!1)].Value=s}),m(3,"translate"),c
(),l(4,"small",15),g(5),m(6,"translate"),c()()}if(2&t){const
e=d(3);a(1),x("label",f(3,4,"settings.rprofiles.mpeg4option4mv_label")),p("ngModel",e.profile.RecProfParams[e.findIx("mpeg4option4mv",!1)].Value)("binary",!0),a(4),T("
",f(6,6,"settings.rprofiles.mpeg4option4mv_desc")," ")}}function
_ie(t,i){if(1&t){const
e=I();l(0,"div",12)(1,"p-checkbox",79,80),C("ngModelChange",function(s){v(e);const
r=d(3);return
r.profile.RecProfParams[r.findIx("mpeg4optionidct",!1)].Value=s}),m(3,"translate"),c(),l(4,"small",15),g(5),m(6,"translate"),c()()}if(2&t){const
e=d(3);a(1),x("label",f(3,4,"settings.rprofiles.mpeg4optionidct_label")),p("ngModel",e.profile.RecProfParams[e.findIx("mpeg4optionidct",!1)].Value)("binary",!0),a(4),T("
",f(6,6,"settings.rprofiles.mpeg4optionidct_desc")," ")}}function
bie(t,i){if(1&t){const
e=I();l(0,"div",12)(1,"p-checkbox",81,82),C("ngModelChange",function(s){v(e);const
r=d(3);return
r.profile.RecProfParams[r.findIx("mpeg4optionime",!1)].Value=s}),m(3,"translate"),
c(),l(4,"small",15),g(5),m(6,"translate"),c()()}if(2&t){const
e=d(3);a(1),x("label",f(3,4,"settings.rprofiles.mpeg4optionime_label")),p("ngModel",e.profile.RecProfParams[e.findIx("mpeg4optionime",!1)].Value)("binary",!0),a(4),T("
",f(6,6,"settings.rprofiles.mpeg4optionime_desc")," ")}}function
vie(t,i){if(1&t){const
e=I();l(0,"div",12)(1,"label",83),g(2),m(3,"translate"),c(),l(4,"p-inputNumber",84),C("ngModelChange",function(s){v(e);const
r=d(3);return
r.profile.RecProfParams[r.findIx("encodingthreadcount","1")].Value=s}),c(),l(5,"small",15),g(6),m(7,"translate"),c()()}if(2&t){const
e=d(3);a(2),S(f(3,7,"settings.rprofiles.encodingthreadcount_label")),a(2),p("ngModel",e.profile.RecProfParams[e.findIx("encodingthreadcount","1")].Value)("showButtons",!0)("min",1)("max",8)("step",1),a(2),T("
",f(7,9,"settings.rprofiles.encodingthreadcount_desc"),"
")}}function
Cie(t,i){if(1&t&&(l(0,"p-fieldset",25),m(1,"translate"),_(2,Qne,7,10,"div",10),_(3,Jne,8,11,"div",10),_(4,Yne,8,11,"div",10),_(5
,Zne,8,11,"div",10),_(6,Xne,8,11,"div",10),_(7,eie,8,11,"div",10),_(8,tie,8,11,"div",10),_(9,nie,6,8,"div",10),_(10,iie,7,11,"div",10),_(11,sie,7,11,"div",10),_(12,rie,8,11,"div",10),_(13,oie,9,13,"div",10),_(14,lie,9,14,"div",10),_(15,cie,8,11,"div",10),_(16,uie,8,11,"div",10),_(17,die,18,27,"p-fieldset",11),_(18,pie,18,27,"p-fieldset",11),_(19,hie,18,27,"p-fieldset",11),_(20,mie,7,8,"div",10),_(21,fie,7,8,"div",10),_(22,gie,7,8,"div",10),_(23,_ie,7,8,"div",10),_(24,bie,7,8,"div",10),_(25,vie,8,11,"div",10),c()),2&t){const
e=d(2);x("legend",f(1,27,"settings.rprofiles.video_label")),p("toggleable",!0)("collapsed",!0),a(2),p("ngIf",e.params.Video.length>0),a(1),p("ngIf","RTjpeg"==e.profile.VideoCodec),a(1),p("ngIf","RTjpeg"==e.profile.VideoCodec),a(1),p("ngIf","RTjpeg"==e.profile.VideoCodec),a(1),p("ngIf","MPEG-4"==e.profile.VideoCodec),a(1),p("ngIf","MPEG-4"==e.profile.VideoCodec),a(1),p("ngIf","MPEG-4"==e.profile.VideoCodec),a(1),p("ngIf","Hardware
MJPEG"==e.profile.VideoCodec),a(1
),p("ngIf","Hardware
MJPEG"==e.profile.VideoCodec),a(1),p("ngIf","Hardware
MJPEG"==e.profile.VideoCodec),a(1),p("ngIf","MPEG-4"==e.profile.VideoCodec),a(1),p("ngIf","MPEG-2
Hardware Encoder"==e.profile.VideoCodec),a(1),p("ngIf","MPEG-2
Hardware
Encoder"==e.profile.VideoCodec),a(1),p("ngIf","MPEG-2"==e.profile.VideoCodec||"MPEG-2
Hardware Encoder"==e.profile.VideoCodec),a(1),p("ngIf","MPEG-2
Hardware Encoder"==e.profile.VideoCodec),a(1),p("ngIf","MPEG-4 AVC
Hardware Encoder"==e.profile.VideoCodec),a(1),p("ngIf","MPEG-4 AVC
Hardware Encoder"==e.profile.VideoCodec),a(1),p("ngIf","MPEG-4 AVC
Hardware
Encoder"==e.profile.VideoCodec),a(1),p("ngIf","MPEG-4"==e.profile.VideoCodec||"MPEG-2"==e.profile.VideoCodec),a(1),p("ngIf","MPEG-4"==e.profile.VideoCodec),a(1),p("ngIf","MPEG-4"==e.profile.VideoCodec),a(1),p("ngIf","MPEG-4"==e.profile.VideoCodec),a(1),p("ngIf","MPEG-4"==e.profile.VideoCodec),a(1),p("ngIf","MPEG-4"==e.profile.VideoCodec||"MPEG-2"==e.profile.VideoCodec)}}function
yie(t,i){if
(1&t){const
e=I();l(0,"div",12)(1,"label",85),g(2),m(3,"translate"),c(),l(4,"p-dropdown",86,87),C("ngModelChange",function(s){return
v(e),d(3).profile.AudioCodec=s}),c(),k(6,"small",15),c()}if(2&t){const
e=d(3);a(2),S(f(3,7,"settings.rprofiles.audiocodec_label")),a(2),q(A(9,Ms)),p("options",e.params.Audio)("ngModel",e.profile.AudioCodec)("editable",!1)("maxlength",0)}}function
wie(t,i){if(1&t){const
e=I();l(0,"div",12)(1,"label",88),g(2),m(3,"translate"),c(),l(4,"p-dropdown",89,90),C("ngModelChange",function(s){v(e);const
r=d(3);return
r.profile.RecProfParams[r.findIx("samplerate","32000")].Value=s}),c(),l(6,"small",15),g(7),m(8,"translate"),c()()}if(2&t){const
e=d(3);a(2),S(f(3,8,"settings.rprofiles.samplerate_label")),a(2),q(A(12,Ms)),p("options",e.samplerateOptions)("ngModel",e.profile.RecProfParams[e.findIx("samplerate","32000")].Value)("editable",!1)("maxlength",0),a(3),T("
",f(8,10,"settings.rprofiles.samplerate_desc")," ")}}function
Tie(t,i){if(1&t){const e=I();l(0,"div",12)(
1,"label",91),g(2),m(3,"translate"),c(),l(4,"p-dropdown",92,93),C("ngModelChange",function(s){v(e);const
r=d(3);return
r.profile.RecProfParams[r.findIx("mpeg2language","32000")].Value=s}),c(),l(6,"small",15),g(7),m(8,"translate"),c()()}if(2&t){const
e=d(3);a(2),S(f(3,8,"settings.rprofiles.mpeg2language_label")),a(2),q(A(12,Ms)),p("options",e.mpeg2languageOptions)("ngModel",e.profile.RecProfParams[e.findIx("mpeg2language","32000")].Value)("editable",!1)("maxlength",0),a(3),T("
",f(8,10,"settings.rprofiles.mpeg2language_desc")," ")}}function
Sie(t,i){if(1&t){const
e=I();l(0,"div",12)(1,"label",94),g(2),m(3,"translate"),c(),l(4,"p-inputNumber",95),C("ngModelChange",function(s){v(e);const
r=d(3);return
r.profile.RecProfParams[r.findIx("mp3quality","1")].Value=s}),c(),l(5,"small",15),g(6),m(7,"translate"),c()()}if(2&t){const
e=d(3);a(2),S(f(3,7,"settings.rprofiles.mp3quality_label")),a(2),p("ngModel",e.profile.RecProfParams[e.findIx("mp3quality","1")].Value)("showButtons",!0)("min",1)("m
ax",9)("step",1),a(2),T("
",f(7,9,"settings.rprofiles.mp3quality_desc")," ")}}function
xie(t,i){if(1&t){const
e=I();l(0,"div",12)(1,"label",96),g(2),m(3,"translate"),c(),l(4,"p-inputNumber",97),C("ngModelChange",function(s){v(e);const
r=d(3);return
r.profile.RecProfParams[r.findIx("volume","90")].Value=s}),c(),l(5,"small",15),g(6),m(7,"translate"),c()()}if(2&t){const
e=d(3);a(2),S(f(3,7,"settings.rprofiles.volume_label")),a(2),p("ngModel",e.profile.RecProfParams[e.findIx("volume","90")].Value)("showButtons",!0)("min",0)("max",100)("step",1),a(2),T("
",f(7,9,"settings.rprofiles.volume_desc")," ")}}function
Die(t,i){if(1&t){const
e=I();l(0,"div",12)(1,"label",98),g(2),m(3,"translate"),c(),l(4,"p-inputNumber",99),C("ngModelChange",function(s){v(e);const
r=d(3);return
r.profile.RecProfParams[r.findIx("mpeg2audvolume","90")].Value=s}),c(),l(5,"small",15),g(6),m(7,"translate"),c()()}if(2&t){const
e=d(3);a(2),S(f(3,7,"settings.rprofiles.volume_label")),a(2),p("ngModel",e.profile.RecProfPar
ams[e.findIx("mpeg2audvolume","90")].Value)("showButtons",!0)("min",0)("max",100)("step",1),a(2),T("
",f(7,9,"settings.rprofiles.mpeg2audvolume_desc")," ")}}function
Mie(t,i){if(1&t&&(l(0,"p-fieldset",25),m(1,"translate"),_(2,yie,7,10,"div",10),_(3,wie,9,13,"div",10),_(4,Tie,9,13,"div",10),_(5,Sie,8,11,"div",10),_(6,xie,8,11,"div",10),_(7,Die,8,11,"div",10),c()),2&t){const
e=d(2);x("legend",f(1,9,"settings.rprofiles.audio_label")),p("toggleable",!0)("collapsed",!0),a(2),p("ngIf",e.params.Audio.length>0),a(1),p("ngIf","MP3"==e.profile.AudioCodec||"MPEG-2
Hardware
Encoder"==e.profile.AudioCodec||"Uncompressed"==e.profile.AudioCodec),a(1),p("ngIf","MPEG-2
Hardware
Encoder"==e.profile.AudioCodec),a(1),p("ngIf","MP3"==e.profile.AudioCodec),a(1),p("ngIf","MP3"==e.profile.AudioCodec||"Uncompressed"==e.profile.AudioCodec),a(1),p("ngIf","MPEG-2
Hardware Encoder"==e.profile.AudioCodec)}}function
kie(t,i){if(1&t&&(l(0,"div",8)(1,"div",9),_(2,zne,7,8,"div",10),_(3,jne,8,11,"div",10),_(4,$ne,8,1
1,"div",10),_(5,Wne,9,13,"div",10),_(6,Kne,7,8,"div",10),_(7,Cie,26,29,"p-fieldset",11),_(8,Mie,8,11,"p-fieldset",11),c()()),2&t){const
e=d();a(2),p("ngIf",e.params.Param.includes("autotranscode")),a(1),p("ngIf",e.params.Param.includes("width")),a(1),p("ngIf",e.params.Param.includes("height")),a(1),p("ngIf",e.params.Param.includes("recordingtype")),a(1),p("ngIf",e.params.Param.includes("recordmpts")),a(1),p("ngIf",e.params.Video.length>0),a(1),p("ngIf",e.params.Audio.length>0)}}function
Iie(t,i){1&t&&(k(0,"p-message",105),m(1,"translate")),2&t&&x("text",f(1,1,"common.savesuccess"))}function
Eie(t,i){1&t&&(k(0,"p-message",106),m(1,"translate")),2&t&&x("text",f(1,1,"common.networkfail"))}function
Rie(t,i){if(1&t){const
e=I();l(0,"div",100)(1,"div",101),_(2,Iie,2,3,"p-message",102),_(3,Eie,2,3,"p-message",103),c(),l(4,"p-button",104),C("onClick",function(){v(e);const
s=d(),r=F(1);return
s.saveForm(1),r.form.markAsPristine()}),m(5,"translate"),c()()}if(2&t){const
e=d(),n=F(1);a(2),p("ng
If",e.successCount>0&&0==e.errorCount&&!n.dirty),a(1),p("ngIf",e.errorCount>0),a(1),x("label",f(5,4,"common.save")),p("disabled",!n.dirty||e.setupService.schedulingEnabled)}}let
Lie=(()=>{class
t{constructor(e,n,s){this.translate=e,this.captureCardService=n,this.setupService=s,this.successCount=0,this.errorCount=0,this.expectedCount=0,this.paramList=[{CardType:"V4L",Param:["autotranscode","height","width"],Video:["RTjpeg","MPEG-4"],Audio:["MP3","Uncompressed"]},{CardType:"MPEG",Param:["autotranscode","height","width"],Video:["MPEG-2
Hardware Encoder"],Audio:["MPEG-2 Hardware
Encoder"]},{CardType:"MJPEG",Param:["autotranscode","height","width"],Video:["Hardware
MJPEG"],Audio:["MP3","Uncompressed"]},{CardType:"HDTV",Param:["autotranscode","height","width"],Video:["RTjpeg","MPEG-4"],Audio:["MP3","Uncompressed"]},{CardType:"DVB",Param:["autotranscode","recordingtype","recordmpts"],Video:[],Audio:[]},{CardType:"FIREWIRE",Param:["autotranscode"],Video:[],Audio:[]},{CardType:"GO7007",Param
:["autotranscode","height","width"],Video:["MPEG-4","MPEG-2"],Audio:["MP3","Uncompressed"]},{CardType:"IMPORT",Param:["autotranscode"],Video:[],Audio:[]},{CardType:"FREEBOX",Param:["autotranscode","recordmpts"],Video:[],Audio:[]},{CardType:"HDHOMERUN",Param:["autotranscode","recordingtype","recordmpts"],Video:[],Audio:[]},{CardType:"CRC_IP",Param:["autotranscode","height","width"],Video:["RTjpeg","MPEG-4"],Audio:["MP3","Uncompressed"]},{CardType:"HDPVR",Param:["autotranscode"],Video:["MPEG-4
AVC Hardware Encoder"],Audio:["AC3 Hardware Encoder","AAC Hardware
Encoder"]},{CardType:"ASI",Param:["autotranscode","recordmpts"],Video:[],Audio:[]},{CardType:"OCUR",Param:["autotranscode","height","width"],Video:["RTjpeg","MPEG-4"],Audio:["MP3","Uncompressed"]},{CardType:"CETON",Param:["autotranscode","recordmpts"],Video:[],Audio:[]},{CardType:"VBOX",Param:["autotranscode","recordmpts"],Video:[],Audio:[]},{CardType:"SATIP",Param:["autotranscode","recordingtype","recordmpts"],Video:[],Audio:[]}
,{CardType:"V4L2:uvcvideo",Param:["autotranscode","height","width"],Video:["V4L2:MPEG-2
Video"],Audio:["V4L2:MPEG-1/2 Layer II
encoding"]},{CardType:"TRANSCODE",Param:["autotranscode","height","width"],Video:["RTjpeg","MPEG-4"],Audio:["MP3","Uncompressed"]}],this.params={CardType:"",Param:[""],Video:[""],Audio:[""]},this.videoParamList=[{Codec:"RTjpeg",Param:["rtjpegquality","rtjpeglumafilter","rtjpegchromafilter"]},{Codec:"MPEG-4",Param:["mpeg4bitrate","mpeg4maxquality","mpeg4minquality","mpeg4qualdiff","scalebitrate","mpeg4optionvhq","mpeg4option4mv","mpeg4optionidct","mpeg4optionime","encodingthreadcount"]},{Codec:"MPEG-2",Param:["mpeg2bitrate","scalebitrate","encodingthreadcount"]},{Codec:"Hardware
MJPEG",Param:["hardwaremjpegquality","hardwaremjpeghdecimation","hardwaremjpegvdecimation"]},{Codec:"MPEG-2
Hardware
Encoder",Param:["mpeg2streamtype","mpeg2aspectratio","mpeg2bitrate","mpeg2maxbitrate"]},{Codec:"MPEG-4
AVC Hardware Encoder",Param:["low_mpeg4avgbitrate","low_mpeg4peak
bitrate","medium_mpeg4avgbitrate","medium_mpeg4peakbitrate","high_mpeg4avgbitrate","high_mpeg4peakbitrate"]},{Codec:"V4L2:MPEG-2
Video",Param:[]}],this.audioParamList=[{Codec:"MP3",Param:["samplerate","mp3quality","volume"]},{Codec:"MPEG-2
Hardware
Encoder",Param:["samplerate","mpeg2language","mpeg2audvolume"]},{Codec:"Uncompressed",Param:["samplerate","volume"]}],this.recordingtypeOptions=[{Name:"settings.rprofiles.rectype_normal",Value:"all"},{Name:"settings.rprofiles.rectype_tv",Value:"tv"},{Name:"settings.rprofiles.rectype_audio",Value:"audio"}],this.samplerateOptions=["32000","44100","48000"],this.streamTypeOptions=["MPEG-2
PS","MPEG-2 TS","MPEG-1 VCD","PES AV","PES
V","PES A","DVD","DVD-Special 1","DVD-Special
2"],this.mpeg2languageOptions=[{Name:"settings.rprofiles.lang_main",Value:"0"},{Name:"settings.rprofiles.lang_sap",Value:"1"},{Name:"settings.rprofiles.lang_dual",Value:"2"}],this.saveObserver={next:r=>{this.profile.Id&&r.bool?this.successCount++:!this.profile.Id&&r.int?
(this.successCount++,this.profile.Id=r.int,this.saveForm(2)):(console.log("saveObserver
error",r),this.errorCount++,this.currentForm.form.markAsDirty())},error:r=>{console.log("saveObserver
error",r),this.errorCount++,this.currentForm.form.markAsDirty()}},this.recordingtypeOptions.forEach(r=>{e.get(r.Name).subscribe(o=>r.Name=o)}),this.mpeg2languageOptions.forEach(r=>{e.get(r.Name).subscribe(o=>r.Name=o)})}ngOnInit(){let
e=this.paramList.find(n=>n.CardType==this.group.CardType);e&&(this.params=e)}ngAfterViewInit(){this.setupService.setCurrentForm(this.currentForm),this.topElement.nativeElement.scrollIntoView({behavior:"smooth",block:"start"})}findIx(e,n){let
s=this.profile.RecProfParams.findIndex(r=>r.Name==e);return-1==s?s=this.profile.RecProfParams.push({Name:e,Value:n})-1:"boolean"==typeof
n&&"string"==typeof
this.profile.RecProfParams[s].Value&&(this.profile.RecProfParams[s].Value="1"==this.profile.RecProfParams[s].Value),s}saveForm(e){switch(e){case
1:if(this.successCount=0,thi
s.errorCount=0,this.expectedCount=0,this.profile.Id<=0)return
this.captureCardService.AddRecProfile(this.group.Id,this.profile.Name,this.profile.VideoCodec,this.profile.AudioCodec).subscribe(this.saveObserver),void
this.expectedCount++;this.captureCardService.UpdateRecProfile(this.profile.Id,this.profile.VideoCodec,this.profile.AudioCodec).subscribe(this.saveObserver),this.expectedCount++;case
2:this.saveParams(this.params.Param);let
n=this.videoParamList.find(r=>r.Codec==this.profile.VideoCodec);n?this.saveParams(n.Param):(console.log("ERROR
videoparams not found"),this.errorCount++,this.currentForm.form.markAsDirty());let
s=this.audioParamList.find(r=>r.Codec==this.profile.AudioCodec);s?this.saveParams(s.Param):(console.log("ERROR
audioparams not
found"),this.errorCount++,this.currentForm.form.markAsDirty())}}saveParams(e){e.forEach(n=>{let
s=this.profile.RecProfParams[this.findIx(n,"0")].Value;s="boolean"==typeof
s?s?"1":"0":s.toString(),this.captureCardService.UpdateRecProfilePa
ram(this.profile.Id,n,s).subscribe(this.saveObserver),this.expectedCount++})}}return
t.\u0275fac=function(e){return
new(e||t)(D(Oe),D(Gt),D(Me))},t.\u0275cmp=z({type:t,selectors:[["app-recprofile"]],viewQuery:function(e,n){if(1&e&&(W(Hne,5),W(qne,5)),2&e){let
s;V(s=B())&&(n.currentForm=s.first),V(s=B())&&(n.topElement=s.first)}},inputs:{profile:"profile",group:"group",parentComponent:"parentComponent"},decls:9,vars:0,consts:[["name","recprofform",1,"ml-3","mr-3"],["recprofform","ngForm"],["top",""],[1,"m-5"],["pTemplate","title"],["pTemplate","subtitle"],["pTemplate","content"],["pTemplate","footer"],[1,"grid"],[1,"mb-4","w-full"],["class","form-group
field",4,"ngIf"],["class","mb-4
w-full",3,"legend","toggleable","collapsed",4,"ngIf"],[1,"form-group","field"],["inputId","autotranscode","name","autotranscode",1,"label","mb-2","w-full",3,"ngModel","binary","label","ngModelChange"],["autotranscode","ngModel"],[1,"block"],["for","width",1,"label","block"],["name","width","id","width",3
,"ngModel","showButtons","min","max","step","ngModelChange"],["for","height",1,"label","block"],["name","height","id","height",3,"ngModel","showButtons","min","max","step","ngModelChange"],["for","recordingtype",1,"label","block"],["optionLabel","Name","optionValue","Value","name","recordingtype",3,"options","ngModel","editable","maxlength","ngModelChange"],["recordingtype","ngModel"],["inputId","recordmpts","name","recordmpts",1,"label","mb-2","w-full",3,"ngModel","binary","label","ngModelChange"],["recordmpts","ngModel"],[1,"mb-4","w-full",3,"legend","toggleable","collapsed"],["for","VideoCodec",1,"label","block"],["name","VideoCodec",3,"options","ngModel","editable","maxlength","ngModelChange"],["VideoCodec","ngModel"],["for","rtjpegquality",1,"label","block"],["name","rtjpegquality","id","rtjpegquality",3,"ngModel","showButtons","min","max","step","ngModelChange"],["for","rtjpeglumafilter",1,"label","block"],["name","rtjpeglumafilter","id","rtjpeglumafilter",3,"ngModel","showBut
tons","min","max","step","ngModelChange"],["for","rtjpegchromafilter",1,"label","block"],["name","rtjpegchromafilter","id","rtjpegchromafilter",3,"ngModel","showButtons","min","max","step","ngModelChange"],["for","mpeg4bitrate",1,"label","block"],["name","mpeg4bitrate","id","mpeg4bitrate",3,"ngModel","showButtons","min","max","step","ngModelChange"],["for","mpeg4maxquality",1,"label","block"],["name","mpeg4maxquality","id","mpeg4maxquality",3,"ngModel","showButtons","min","max","step","ngModelChange"],["for","mpeg4minquality",1,"label","block"],["name","mpeg4minquality","id","mpeg4minquality",3,"ngModel","showButtons","min","max","step","ngModelChange"],["for","hardwaremjpegquality",1,"label","block"],["name","hardwaremjpegquality","id","hardwaremjpegquality",3,"ngModel","showButtons","min","max","step","ngModelChange"],["for","hardwaremjpeghdecimation",1,"label","block"],["name","hardwaremjpeghdecimation",3,"options","ngModel","editable","maxlength","ngModelChange"],["hardwaremjpeg
hdecimation","ngModel"],["for","hardwaremjpegvdecimation",1,"label","block"],["name","hardwaremjpegvdecimation",3,"options","ngModel","editable","maxlength","ngModelChange"],["hardwaremjpegvdecimation","ngModel"],["for","mpeg4qualdiff",1,"label","block"],["name","mpeg4qualdiff","id","mpeg4qualdiff",3,"ngModel","showButtons","min","max","step","ngModelChange"],["for","mpeg2streamtype",1,"label","block"],["name","mpeg2streamtype",3,"options","ngModel","editable","maxlength","ngModelChange"],["mpeg2streamtype","ngModel"],["for","mpeg2aspectratio",1,"label","block"],["name","mpeg2aspectratio",3,"options","ngModel","editable","maxlength","ngModelChange"],["mpeg2aspectratio","ngModel"],["for","mpeg2bitrate",1,"label","block"],["name","mpeg2bitrate","id","mpeg2bitrate",3,"ngModel","showButtons","min","max","step","ngModelChange"],["for","mpeg2maxbitrate",1,"label","block"],["name","mpeg2maxbitrate","id","mpeg2maxbitrate",3,"ngModel","showButtons","min","max","step","ngModelChange"],["for",
"low_mpeg4avgbitrate",1,"label","block"],["name","low_mpeg4avgbitrate","id","low_mpeg4avgbitrate",3,"ngModel","showButtons","min","max","step","ngModelChange"],["for","low_mpeg4peakbitrate",1,"label","block"],["name","low_mpeg4peakbitrate","id","low_mpeg4peakbitrate",3,"ngModel","showButtons","min","max","step","ngModelChange"],["for","medium_mpeg4avgbitrate",1,"label","block"],["name","medium_mpeg4avgbitrate","id","medium_mpeg4avgbitrate",3,"ngModel","showButtons","min","max","step","ngModelChange"],["for","medium_mpeg4peakbitrate",1,"label","block"],["name","medium_mpeg4peakbitrate","id","medium_mpeg4peakbitrate",3,"ngModel","showButtons","min","max","step","ngModelChange"],["for","high_mpeg4avgbitrate",1,"label","block"],["name","high_mpeg4avgbitrate","id","high_mpeg4avgbitrate",3,"ngModel","showButtons","min","max","step","ngModelChange"],["for","high_mpeg4peakbitrate",1,"label","block"],["name","high_mpeg4peakbitrate","id","high_mpeg4peakbitrate",3,"ngModel","showButtons","min"
,"max","step","ngModelChange"],["inputId","scalebitrate","name","scalebitrate",1,"label","mb-2","w-full",3,"ngModel","binary","label","ngModelChange"],["scalebitrate","ngModel"],["inputId","mpeg4optionvhq","name","mpeg4optionvhq",1,"label","mb-2","w-full",3,"ngModel","binary","label","ngModelChange"],["mpeg4optionvhq","ngModel"],["inputId","mpeg4option4mv","name","mpeg4option4mv",1,"label","mb-2","w-full",3,"ngModel","binary","label","ngModelChange"],["mpeg4option4mv","ngModel"],["inputId","mpeg4optionidct","name","mpeg4optionidct",1,"label","mb-2","w-full",3,"ngModel","binary","label","ngModelChange"],["mpeg4optionidct","ngModel"],["inputId","mpeg4optionime","name","mpeg4optionime",1,"label","mb-2","w-full",3,"ngModel","binary","label","ngModelChange"],["mpeg4optionime","ngModel"],["for","encodingthreadcount",1,"label","block"],["name","encodingthreadcount","id","encodingthreadcount",3,"ngModel","showButtons","min","max","step","ngModelChange"],["for","AudioCodec",1,"label","block"
],["name","AudioCodec",3,"options","ngModel","editable","maxlength","ngModelChange"],["AudioCodec","ngModel"],["for","samplerate",1,"label","block"],["name","samplerate",3,"options","ngModel","editable","maxlength","ngModelChange"],["samplerate","ngModel"],["for","mpeg2language",1,"label","block"],["optionLabel","Name","optionValue","Value","name","mpeg2language",3,"options","ngModel","editable","maxlength","ngModelChange"],["mpeg2language","ngModel"],["for","mp3quality",1,"label","block"],["name","mp3quality","id","mp3quality",3,"ngModel","showButtons","min","max","step","ngModelChange"],["for","volume",1,"label","block"],["name","volume","id","volume",3,"ngModel","showButtons","min","max","step","ngModelChange"],["for","mpeg2audvolume",1,"label","block"],["name","mpeg2audvolume","id","mpeg2audvolume",3,"ngModel","showButtons","min","max","step","ngModelChange"],[1,"grid","nogutter"],[1,"col-12"],["severity","success",3,"text",4,"ngIf"],["severity","error",3,"text",4,"ngIf"],["icon
","pi
pi-save","iconPos","left",1,"col","pr-1",3,"label","disabled","onClick"],["severity","success",3,"text"],["severity","error",3,"text"]],template:function(e,n){1&e&&(l(0,"form",0,1),k(2,"span",null,2),l(4,"p-card",3),_(5,Gne,2,4,"ng-template",4),_(6,Une,0,0,"ng-template",5),_(7,kie,9,7,"ng-template",6),_(8,Rie,6,6,"ng-template",7),c()())},directives:[ze,Ue,He,Ne,ne,Q,sn,Te,_e,pt,Ot,_n,Ui,qe,ve],pipes:[ce],styles:[""]}),t})();const
Oie=["v4l2form"],Aie=["top"];function
Pie(t,i){1&t&&(g(0),m(1,"translate")),2&t&&T("
",f(1,1,"settings.capture.v4l2.title")," ")}function
Fie(t,i){}const Nie=function(){return{minWidth:"80%"}};function
Vie(t,i){if(1&t){const
e=I();l(0,"p-dropdown",17,18),C("ngModelChange",function(s){return
v(e),d(2).currentDevice=s})("onChange",function(){return
v(e),d(2).updateDevice()}),c()}if(2&t){const
e=d(2);q(A(6,Nie)),p("options",e.captureDeviceList.CaptureDeviceList.CaptureDevices)("ngModel",e.currentDevice)("editable",!1)("maxlength",0)}}function
Bie(t,i){if
(1&t&&(l(0,"div")(1,"small",19),g(2),c()()),2&t){const
e=d(2);a(2),T(" ",e.warningMessage," ")}}function
Hie(t,i){if(1&t){const
e=I();l(0,"input",20,21),C("ngModelChange",function(s){return
v(e),d(2).currentDevice.FrontendName=s}),c()}2&t&&p("ngModel",d(2).currentDevice.FrontendName)}function
qie(t,i){if(1&t&&(l(0,"div",8)(1,"div",9)(2,"div",10)(3,"label",11),g(4),m(5,"translate"),c(),_(6,Vie,2,7,"p-dropdown",12),_(7,Bie,3,1,"div",13),l(8,"small",14),g(9),m(10,"translate"),c()(),l(11,"div",10)(12,"label",15),g(13),m(14,"translate"),c(),_(15,Hie,2,1,"input",16),l(16,"small",14),g(17),m(18,"translate"),c()()()()),2&t){const
e=d();a(4),S(f(5,7,"settings.capture.v4l2.device_label")),a(2),p("ngIf",e.isReady),a(1),p("ngIf",e.warningMessage),a(2),T("
",f(10,9,"settings.capture.device_desc"),"
"),a(4),S(f(14,11,"settings.capture.v4l2.frontend_label")),a(2),p("ngIf",e.isReady),a(2),T("
",f(18,13,"settings.capture.frontend_desc")," ")}}function
Gie(t,i){1&t&&(k(0,"p-message",27),m(1,"translat
e")),2&t&&x("text",f(1,1,"common.savesuccess"))}function
Uie(t,i){1&t&&(k(0,"p-message",28),m(1,"translate")),2&t&&x("text",f(1,1,"common.networkfail"))}function
zie(t,i){if(1&t){const
e=I();l(0,"div",22)(1,"div",23),_(2,Gie,2,3,"p-message",24),_(3,Uie,2,3,"p-message",25),c(),l(4,"p-button",26),C("onClick",function(){v(e);const
s=d(),r=F(1);return
s.saveForm(),r.form.markAsPristine()}),m(5,"translate"),c()()}if(2&t){const
e=d(),n=F(1);a(2),p("ngIf",e.successCount>0&&0==e.errorCount&&!n.dirty),a(1),p("ngIf",e.errorCount>0),a(1),x("label",f(5,4,"common.save")),p("disabled",!n.dirty||!e.card.VideoDevice||e.setupService.schedulingEnabled)}}let
jie=(()=>{class
t{constructor(e,n,s){this.captureCardService=e,this.setupService=n,this.translate=s,this.messages={devNotExist:"settings.capture.dvb.devNotExist",unknownName:"settings.capture.dvb.unknownName",devInUse:"settings.capture.dvb.devInUse",noDevSelected:"settings.capture.dvb.noDevSelected"},this.captureDeviceList={CaptureDeviceList:{Capt
ureDevices:[]}},this.currentDevice={FrontendName:"Unknown",InputNames:[""]},this.isReady=!1,this.warningMessage="",this.errorCount=0,this.successCount=0,this.saveObserver={next:r=>{this.card.CardId&&r.bool?this.successCount++:!this.card.CardId&&r.int?(this.successCount++,this.card.CardId=r.int):(this.errorCount++,this.currentForm.form.markAsDirty())},error:r=>{console.error(r),this.errorCount++,this.currentForm.form.markAsDirty()}},s.get(this.messages.devNotExist).subscribe(r=>this.messages.devNotExist=r),s.get(this.messages.unknownName).subscribe(r=>this.messages.unknownName=r),s.get(this.messages.devInUse).subscribe(r=>this.messages.devInUse=r),s.get(this.messages.noDevSelected).subscribe(r=>this.messages.noDevSelected=r)}ngOnInit(){this.captureCardService.GetCaptureDeviceList("V4L2ENC").subscribe({next:e=>{this.captureDeviceList=e,this.setupDevice()},error:e=>{console.log("GetCaptureDeviceList",e),this.errorCount++}})}ngAfterViewInit(){this.setupService.setCurrentForm(this.curren
tForm),this.topElement.nativeElement.scrollIntoView({behavior:"smooth",block:"start"})}setupDevice(){if(this.card.VideoDevice||this.captureDeviceList.CaptureDeviceList.CaptureDevices.unshift({VideoDevice:"",FrontendName:this.messages.noDevSelected,InputNames:[""]}),this.card.VideoDevice){let
e=this.captureDeviceList.CaptureDeviceList.CaptureDevices.find(n=>n.VideoDevice==this.card.VideoDevice);e?this.currentDevice=e:(this.currentDevice={VideoDevice:this.card.VideoDevice,FrontendName:this.messages.devNotExist,InputNames:[""]},this.captureDeviceList.CaptureDeviceList.CaptureDevices.push(this.currentDevice))}this.currentDevice&&this.card.InputName&&(this.currentDevice.InputNames.includes(this.card.InputName)||this.currentDevice.InputNames.push(this.card.InputName)),this.isReady=!0}updateDevice(){this.card.VideoDevice=this.currentDevice.VideoDevice,this.card.InputName=this.currentDevice.DefaultInputName,this.card.SignalTimeout=this.currentDevice.SignalTimeout,this.card.ChannelTimeout=th
is.currentDevice.ChannelTimeout,this.checkInUse()}checkInUse(){this.warningMessage=this.cardList.CaptureCardList.CaptureCards.find(n=>n.VideoDevice==this.currentDevice.VideoDevice&&n.CardId!=this.card.CardId)?this.messages.devInUse:""}saveForm(){this.successCount=0,this.errorCount=0,this.card.CardId?this.cardList.CaptureCardList.CaptureCards.forEach(e=>{(e.CardId==this.card.CardId||e.ParentId==this.card.CardId)&&this.captureCardService.UpdateCaptureCard(e.CardId,"videodevice",this.card.VideoDevice).subscribe(this.saveObserver)}):this.captureCardService.AddCaptureCard(this.card).subscribe(this.saveObserver)}}return
t.\u0275fac=function(e){return
new(e||t)(D(Gt),D(Me),D(Oe))},t.\u0275cmp=z({type:t,selectors:[["app-v4l2"]],viewQuery:function(e,n){if(1&e&&(W(Oie,5),W(Aie,5)),2&e){let
s;V(s=B())&&(n.currentForm=s.first),V(s=B())&&(n.topElement=s.first)}},inputs:{card:"card",cardList:"cardList"},decls:9,vars:0,consts:[["name","v4l2form",1,"ml-3","mr-3"],["v4l2form","ngForm"],["top",""],[1
,"m-5"],["pTemplate","title"],["pTemplate","subtitle"],["pTemplate","content"],["pTemplate","footer"],[1,"grid"],[1,"mb-4","w-full"],[1,"form-group","field"],["for","VideoDevice",1,"label","block"],["optionLabel","VideoDevice","name","VideoDevice",3,"options","ngModel","editable","maxlength","style","ngModelChange","onChange",4,"ngIf"],[4,"ngIf"],[1,"block"],["for","FrontendName",1,"label","block"],["pInputText","","id","FrontendName","name","FrontendName","disabled","true","class","mb-2
form-control
w-full",3,"ngModel","ngModelChange",4,"ngIf"],["optionLabel","VideoDevice","name","VideoDevice",3,"options","ngModel","editable","maxlength","ngModelChange","onChange"],["VideoDevice","ngModel"],[1,"p-error","block"],["pInputText","","id","FrontendName","name","FrontendName","disabled","true",1,"mb-2","form-control","w-full",3,"ngModel","ngModelChange"],["FrontendName","ngModel"],[1,"grid","nogutter"],[1,"col-12"],["severity","success",3,"text",4,"ngIf"],["severity","error",3,"text",4,"
ngIf"],["icon","pi
pi-save","iconPos","left",1,"col","pr-1",3,"label","disabled","onClick"],["severity","success",3,"text"],["severity","error",3,"text"]],template:function(e,n){1&e&&(l(0,"form",0,1),k(2,"span",null,2),l(4,"p-card",3),_(5,Pie,2,3,"ng-template",4),_(6,Fie,0,0,"ng-template",5),_(7,qie,19,15,"ng-template",6),_(8,zie,6,6,"ng-template",7),c()())},directives:[ze,Ue,He,Ne,ne,Q,Ot,Te,_e,_n,Ye,qe,ve],pipes:[ce],styles:[""]}),t})();const
$ie=["hdpvrform"],Wie=["top"];function
Kie(t,i){1&t&&(g(0),m(1,"translate")),2&t&&T("
",f(1,1,"settings.capture.hdpvr.title")," ")}function
Qie(t,i){}const LS=function(){return{minWidth:"80%"}};function
Jie(t,i){if(1&t){const
e=I();l(0,"p-dropdown",21,22),C("ngModelChange",function(s){return
v(e),d(2).currentDevice=s})("onChange",function(){return
v(e),d(2).updateDevice()}),c()}if(2&t){const
e=d(2);q(A(6,LS)),p("options",e.captureDeviceList.CaptureDeviceList.CaptureDevices)("ngModel",e.currentDevice)("editable",!1)("maxlength",0)}}function
Yi
e(t,i){if(1&t&&(l(0,"div")(1,"small",23),g(2),c()()),2&t){const
e=d(2);a(2),T(" ",e.warningMessage," ")}}function
Zie(t,i){if(1&t){const
e=I();l(0,"input",24,25),C("ngModelChange",function(s){return
v(e),d(2).currentDevice.FrontendName=s}),c()}2&t&&p("ngModel",d(2).currentDevice.FrontendName)}function
Xie(t,i){if(1&t){const
e=I();l(0,"p-dropdown",26,27),C("ngModelChange",function(s){return
v(e),d(2).card.AudioDevice=s}),c()}if(2&t){const
e=d(2);q(A(6,LS)),p("options",e.currentDevice.AudioDevices)("ngModel",e.card.AudioDevice)("editable",!1)("maxlength",0)}}function
ese(t,i){if(1&t){const
e=I();l(0,"div",8)(1,"div",9)(2,"div",10)(3,"label",11),g(4),m(5,"translate"),c(),_(6,Jie,2,7,"p-dropdown",12),_(7,Yie,3,1,"div",13),l(8,"small",14),g(9),m(10,"translate"),c()(),l(11,"div",10)(12,"label",15),g(13),m(14,"translate"),c(),_(15,Zie,2,1,"input",16),l(16,"small",14),g(17),m(18,"translate"),c()(),l(19,"div",10)(20,"label",17),g(21),m(22,"translate"),c(),_(23,Xie,2,7,"p-dropdown",18),l(24,"
small",14),g(25),m(26,"translate"),c()(),l(27,"div",10)(28,"label",19),g(29),m(30,"translate"),c(),l(31,"p-inputNumber",20),C("ngModelChange",function(s){return
v(e),d().card.ChannelTimeout=s}),c(),l(32,"small",14),g(33),m(34,"translate"),c()()()()}if(2&t){const
e=d();a(4),S(f(5,17,"settings.capture.v4l2.device_label")),a(2),p("ngIf",e.isReady),a(1),p("ngIf",e.warningMessage),a(2),T("
",f(10,19,"settings.capture.device_desc"),"
"),a(4),S(f(14,21,"settings.capture.v4l2.frontend_label")),a(2),p("ngIf",e.isReady),a(2),T("
",f(18,23,"settings.capture.frontend_desc"),"
"),a(4),S(f(22,25,"settings.capture.hdpvr.audiodevice_label")),a(2),p("ngIf",e.isReady),a(2),T("
",f(26,27,"settings.capture.hdpvr.audiodevice_desc"),"
"),a(4),S(f(30,29,"settings.capture.tunetimeout_label")),a(2),p("ngModel",e.card.ChannelTimeout)("showButtons",!0)("min",2e3)("max",65e3)("step",250),a(2),T("
",f(34,31,"settings.capture.tunetimeout_desc")," ")}}function
tse(t,i){1&t&&(k(0,"p-message",33),m(1,"translate")),
2&t&&x("text",f(1,1,"common.savesuccess"))}function
nse(t,i){1&t&&(k(0,"p-message",34),m(1,"translate")),2&t&&x("text",f(1,1,"common.networkfail"))}function
ise(t,i){if(1&t){const
e=I();l(0,"div",28)(1,"div",29),_(2,tse,2,3,"p-message",30),_(3,nse,2,3,"p-message",31),c(),l(4,"p-button",32),C("onClick",function(){v(e);const
s=d(),r=F(1);return
s.saveForm(),r.form.markAsPristine()}),m(5,"translate"),c()()}if(2&t){const
e=d(),n=F(1);a(2),p("ngIf",e.successCount>0&&0==e.errorCount&&!n.dirty),a(1),p("ngIf",e.errorCount>0),a(1),x("label",f(5,4,"common.save")),p("disabled",!n.dirty||!e.card.VideoDevice||e.setupService.schedulingEnabled)}}let
sse=(()=>{class
t{constructor(e,n,s){this.captureCardService=e,this.setupService=n,this.translate=s,this.messages={devNotExist:"settings.capture.dvb.devNotExist",unknownName:"settings.capture.dvb.unknownName",devInUse:"settings.capture.dvb.devInUse",noDevSelected:"settings.capture.dvb.noDevSelected"},this.captureDeviceList={CaptureDeviceList:{CaptureDe
vices:[]}},this.currentDevice={FrontendName:"Unknown",InputNames:[""]},this.isReady=!1,this.warningMessage="",this.errorCount=0,this.successCount=0,this.saveObserver={next:r=>{this.card.CardId&&r.bool?this.successCount++:!this.card.CardId&&r.int?(this.successCount++,this.card.CardId=r.int):(this.errorCount++,this.currentForm.form.markAsDirty())},error:r=>{console.error(r),this.errorCount++,this.currentForm.form.markAsDirty()}},s.get(this.messages.devNotExist).subscribe(r=>this.messages.devNotExist=r),s.get(this.messages.unknownName).subscribe(r=>this.messages.unknownName=r),s.get(this.messages.devInUse).subscribe(r=>this.messages.devInUse=r),s.get(this.messages.noDevSelected).subscribe(r=>this.messages.noDevSelected=r)}ngOnInit(){this.captureCardService.GetCaptureDeviceList("HDPVR").subscribe({next:e=>{this.captureDeviceList=e,this.setupDevice()},error:e=>{console.log("GetCaptureDeviceList",e),this.errorCount++}})}setupDevice(){if(this.card.VideoDevice||this.captureDeviceList.Captur
eDeviceList.CaptureDevices.unshift({VideoDevice:"",FrontendName:this.messages.noDevSelected,InputNames:[""]}),this.card.VideoDevice){let
e=this.captureDeviceList.CaptureDeviceList.CaptureDevices.find(n=>n.VideoDevice==this.card.VideoDevice);e?this.currentDevice=e:(this.currentDevice={VideoDevice:this.card.VideoDevice,FrontendName:this.messages.devNotExist,InputNames:[""]},this.captureDeviceList.CaptureDeviceList.CaptureDevices.push(this.currentDevice))}this.currentDevice&&this.card.InputName&&(this.currentDevice.InputNames.includes(this.card.InputName)||this.currentDevice.InputNames.push(this.card.InputName)),this.isReady=!0}updateDevice(){this.card.VideoDevice=this.currentDevice.VideoDevice,this.card.InputName=this.currentDevice.DefaultInputName,this.card.AudioDevice="",this.card.ChannelTimeout=this.currentDevice.ChannelTimeout,this.checkInUse()}checkInUse(){this.warningMessage=this.cardList.CaptureCardList.CaptureCards.find(n=>n.VideoDevice==this.currentDevice.VideoDevice&&n.CardI
d!=this.card.CardId)?this.messages.devInUse:""}saveForm(){this.successCount=0,this.errorCount=0,this.card.CardId?this.cardList.CaptureCardList.CaptureCards.forEach(e=>{(e.CardId==this.card.CardId||e.ParentId==this.card.CardId)&&(this.captureCardService.UpdateCaptureCard(e.CardId,"videodevice",this.card.VideoDevice).subscribe(this.saveObserver),this.captureCardService.UpdateCaptureCard(e.CardId,"channel_timeout",String(this.card.ChannelTimeout)).subscribe(this.saveObserver),this.captureCardService.UpdateCaptureCard(e.CardId,"audiodevice",String(this.card.AudioDevice)).subscribe(this.saveObserver))}):this.captureCardService.AddCaptureCard(this.card).subscribe(this.saveObserver)}}return
t.\u0275fac=function(e){return
new(e||t)(D(Gt),D(Me),D(Oe))},t.\u0275cmp=z({type:t,selectors:[["app-hdpvr"]],viewQuery:function(e,n){if(1&e&&(W($ie,5),W(Wie,5)),2&e){let
s;V(s=B())&&(n.currentForm=s.first),V(s=B())&&(n.topElement=s.first)}},inputs:{card:"card",cardList:"cardList"},decls:9,vars:0,consts:
[["name","hdpvrform",1,"ml-3","mr-3"],["dvbform","ngForm"],["top",""],[1,"m-5"],["pTemplate","title"],["pTemplate","subtitle"],["pTemplate","content"],["pTemplate","footer"],[1,"grid"],[1,"mb-4","w-full"],[1,"form-group","field"],["for","VideoDevice",1,"label","block"],["optionLabel","VideoDevice","name","VideoDevice",3,"options","ngModel","editable","maxlength","style","ngModelChange","onChange",4,"ngIf"],[4,"ngIf"],[1,"block"],["for","FrontendName",1,"label","block"],["pInputText","","id","FrontendName","name","FrontendName","disabled","true","class","mb-2
form-control
w-full",3,"ngModel","ngModelChange",4,"ngIf"],["for","AudioDevice",1,"label","block"],["name","AudioDevice",3,"options","ngModel","editable","maxlength","style","ngModelChange",4,"ngIf"],["for","ChannelTimeout",1,"label","block"],["name","ChannelTimeout","id","ChannelTimeout",3,"ngModel","showButtons","min","max","step","ngModelChange"],["optionLabel","VideoDevice","name","VideoDevice",3,"options","ngModel","editabl
e","maxlength","ngModelChange","onChange"],["VideoDevice","ngModel"],[1,"p-error","block"],["pInputText","","id","FrontendName","name","FrontendName","disabled","true",1,"mb-2","form-control","w-full",3,"ngModel","ngModelChange"],["FrontendName","ngModel"],["name","AudioDevice",3,"options","ngModel","editable","maxlength","ngModelChange"],["AudioDevice","ngModel"],[1,"grid","nogutter"],[1,"col-12"],["severity","success",3,"text",4,"ngIf"],["severity","error",3,"text",4,"ngIf"],["icon","pi
pi-save","iconPos","left",1,"col","pr-1",3,"label","disabled","onClick"],["severity","success",3,"text"],["severity","error",3,"text"]],template:function(e,n){1&e&&(l(0,"form",0,1),k(2,"span",null,2),l(4,"p-card",3),_(5,Kie,2,3,"ng-template",4),_(6,Qie,0,0,"ng-template",5),_(7,ese,35,33,"ng-template",6),_(8,ise,6,6,"ng-template",7),c()())},directives:[ze,Ue,He,Ne,ne,Q,Ot,Te,_e,_n,Ye,pt,qe,ve],pipes:[ce],styles:[""]}),t})();const
rse=["satipform"],ose=["top"];function
ase(t,i){1&t&&(g(0),m(1,"transl
ate")),2&t&&T("
",f(1,1,"settings.capture.satip.title")," ")}function
lse(t,i){}const cse=function(){return{minWidth:"83%"}};function
use(t,i){if(1&t){const
e=I();l(0,"p-dropdown",25,26),C("ngModelChange",function(s){return
v(e),d(2).currentDevice=s})("onChange",function(){return
v(e),d(2).updateDevice()}),c()}if(2&t){const
e=d(2);q(A(6,cse)),p("options",e.captureDeviceList.CaptureDeviceList.CaptureDevices)("ngModel",e.currentDevice)("editable",!1)("maxlength",0)}}function
dse(t,i){if(1&t&&(l(0,"div")(1,"small",27),g(2),c()()),2&t){const
e=d(2);a(2),T(" ",e.warningMessage," ")}}function
pse(t,i){if(1&t){const
e=I();l(0,"div",8)(1,"div",9)(2,"div",10)(3,"label",11),g(4),m(5,"translate"),c(),_(6,use,2,7,"p-dropdown",12),_(7,dse,3,1,"div",13),l(8,"small",14),g(9),m(10,"translate"),c()(),l(11,"div",10)(12,"label",15),g(13),m(14,"translate"),c(),l(15,"div",16),g(16),c(),l(17,"small",14),g(18),m(19,"translate"),c()(),l(20,"div",10)(21,"label",15),g(22),m(23,"translate"),c(),l(24,"div",16)
,g(25),c(),l(26,"small",14),g(27),m(28,"translate"),c()(),l(29,"div",10)(30,"label",15),g(31),m(32,"translate"),c(),l(33,"div",16),g(34),c(),l(35,"small",14),g(36),m(37,"translate"),c()(),l(38,"div",10)(39,"label",15),g(40),m(41,"translate"),c(),l(42,"div",16),g(43),c(),l(44,"small",14),g(45),m(46,"translate"),c()(),l(47,"div",10)(48,"label",17),g(49),m(50,"translate"),c(),l(51,"p-inputNumber",18),C("ngModelChange",function(s){return
v(e),d().card.SignalTimeout=s}),c(),l(52,"small",14),g(53),m(54,"translate"),c()(),l(55,"div",10)(56,"label",19),g(57),m(58,"translate"),c(),l(59,"p-inputNumber",20),C("ngModelChange",function(s){return
v(e),d().card.ChannelTimeout=s}),c(),l(60,"small",14),g(61),m(62,"translate"),c()(),l(63,"div",10)(64,"p-checkbox",21,22),C("ngModelChange",function(s){return
v(e),d().card.DVBEITScan=s}),m(66,"translate"),c(),l(67,"small",14),g(68),m(69,"translate"),c()(),l(70,"div",10)(71,"label",23),g(72),m(73,"translate"),c(),l(74,"p-inputNumber",24),C("ngModelChange
",function(s){return
v(e),d().card.DVBDiSEqCType=s}),c(),l(75,"small",14),g(76),m(77,"translate"),c()()()()}if(2&t){const
e=d();a(4),S(f(5,41,"settings.capture.satip.device_label")),a(2),p("ngIf",e.isReady),a(1),p("ngIf",e.warningMessage),a(2),T("
",f(10,43,"settings.capture.satip.device_desc"),"
"),a(4),S(f(14,45,"settings.capture.satip.friendly_label")),a(3),T("
",e.currentDevice.Description," \xa0 "),a(2),T("
",f(19,47,"settings.capture.satip.friendly_desc"),"
"),a(4),S(f(23,49,"settings.capture.satip.tunertype_label")),a(3),T("
",e.currentDevice.TunerType," \xa0 "),a(2),T("
",f(28,51,"settings.capture.tunertype_desc"),"
"),a(4),S(f(32,53,"settings.capture.satip.tunerindex_label")),a(3),T("
",e.currentDevice.TunerNumber," \xa0 "),a(2),T("
",f(37,55,"settings.capture.tunerindex_desc"),"
"),a(4),S(f(41,57,"settings.capture.satip.deviceid_label")),a(3),T("
",e.card.VideoDevice," \xa0 "),a(2),T("
",f(46,59,"settings.capture.deviceid_desc"),"
"),a(4),S(f(50,61,"settings.capture.sigtim
eout_label")),a(2),p("ngModel",e.card.SignalTimeout)("showButtons",!0)("min",250)("max",6e4)("step",250),a(2),T("
",f(54,63,"settings.capture.sigtimeout_desc"),"
"),a(4),S(f(58,65,"settings.capture.tunetimeout_label")),a(2),p("ngModel",e.card.ChannelTimeout)("showButtons",!0)("min",2e3)("max",65e3)("step",250),a(2),T("
",f(62,67,"settings.capture.tunetimeout_desc"),"
"),a(3),x("label",f(66,69,"settings.capture.dvb.eitscan_label")),p("ngModel",e.card.DVBEITScan)("binary",!0),a(4),T("
",f(69,71,"settings.capture.dvb.eitscan_desc"),"
"),a(4),S(f(73,73,"settings.capture.satip.diseqcpos_label")),a(2),p("ngModel",e.card.DVBDiSEqCType)("showButtons",!0)("min",1)("max",255)("step",1),a(2),T("
",f(77,75,"settings.capture.satip.diseqcpos_desc")," ")}}function
hse(t,i){1&t&&(k(0,"p-message",33),m(1,"translate")),2&t&&x("text",f(1,1,"common.savesuccess"))}function
mse(t,i){1&t&&(k(0,"p-message",34),m(1,"translate")),2&t&&x("text",f(1,1,"common.networkfail"))}function
fse(t,i){if(1&t){const e=I(
);l(0,"div",28)(1,"div",29),_(2,hse,2,3,"p-message",30),_(3,mse,2,3,"p-message",31),c(),l(4,"p-button",32),C("onClick",function(){v(e);const
s=d(),r=F(1);return
s.saveForm(),r.form.markAsPristine()}),m(5,"translate"),c()()}if(2&t){const
e=d(),n=F(1);a(2),p("ngIf",e.successCount>0&&0==e.errorCount&&!n.dirty),a(1),p("ngIf",e.errorCount>0),a(1),x("label",f(5,4,"common.save")),p("disabled",!n.dirty||!e.card.VideoDevice||e.setupService.schedulingEnabled)}}let
gse=(()=>{class
t{constructor(e,n,s){this.captureCardService=e,this.setupService=n,this.translate=s,this.messages={devNotExist:"settings.capture.dvb.devNotExist",unknownName:"settings.capture.dvb.unknownName",devInUse:"settings.capture.dvb.devInUse",noDevSelected:"settings.capture.dvb.noDevSelected"},this.captureDeviceList={CaptureDeviceList:{CaptureDevices:[]}},this.currentDevice={FrontendName:"Unknown",InputNames:[""]},this.isReady=!1,this.warningMessage="",this.errorCount=0,this.successCount=0,this.saveObserver={next:r=>{this.car
d.CardId&&r.bool?this.successCount++:!this.card.CardId&&r.int?(this.successCount++,this.card.CardId=r.int,this.cardList.CaptureCardList.CaptureCards.push(this.card)):(this.errorCount++,this.currentForm.form.markAsDirty())},error:r=>{console.error(r),this.errorCount++,this.currentForm.form.markAsDirty()}},s.get(this.messages.devNotExist).subscribe(r=>this.messages.devNotExist=r),s.get(this.messages.unknownName).subscribe(r=>this.messages.unknownName=r),s.get(this.messages.devInUse).subscribe(r=>this.messages.devInUse=r),s.get(this.messages.noDevSelected).subscribe(r=>this.messages.noDevSelected=r)}ngOnInit(){this.captureCardService.GetCaptureDeviceList("SATIP").subscribe({next:e=>{this.captureDeviceList=e,this.setupDevice()},error:e=>{console.log("GetCaptureDeviceList",e),this.errorCount++}})}ngAfterViewInit(){this.setupService.setCurrentForm(this.currentForm),this.topElement.nativeElement.scrollIntoView({behavior:"smooth",block:"start"})}setupDevice(){if(this.card.VideoDevice||this.
captureDeviceList.CaptureDeviceList.CaptureDevices.unshift({VideoDevice:"",VideoDevicePrompt:this.messages.noDevSelected}),this.card.VideoDevice){let
e=this.captureDeviceList.CaptureDeviceList.CaptureDevices.find(n=>n.VideoDevice==this.card.VideoDevice);e?this.currentDevice=e:(this.currentDevice={VideoDevice:this.card.VideoDevice,Description:this.messages.devNotExist},this.captureDeviceList.CaptureDeviceList.CaptureDevices.push(this.currentDevice))}this.isReady=!0}updateDevice(){this.card.VideoDevice=this.currentDevice.VideoDevice,this.card.ChannelTimeout=this.currentDevice.ChannelTimeout,this.card.SignalTimeout=this.currentDevice.SignalTimeout,this.checkInUse()}checkInUse(){this.warningMessage=this.cardList.CaptureCardList.CaptureCards.find(n=>n.VideoDevice==this.currentDevice.VideoDevice&&n.CardId!=this.card.CardId)?this.messages.devInUse:""}saveForm(){this.successCount=0,this.errorCount=0,this.card.CardId?this.cardList.CaptureCardList.CaptureCards.forEach(e=>{(e.CardId==this.card
.CardId||e.ParentId==this.card.CardId)&&(this.captureCardService.UpdateCaptureCard(e.CardId,"videodevice",this.card.VideoDevice).subscribe(this.saveObserver),this.captureCardService.UpdateCaptureCard(e.CardId,"signal_timeout",String(this.card.SignalTimeout)).subscribe(this.saveObserver),this.captureCardService.UpdateCaptureCard(e.CardId,"channel_timeout",String(this.card.ChannelTimeout)).subscribe(this.saveObserver),this.captureCardService.UpdateCaptureCard(e.CardId,"dvb_eitscan",String(this.card.DVBEITScan?"1":"0")).subscribe(this.saveObserver),this.captureCardService.UpdateCaptureCard(e.CardId,"dvb_diseqc_type",String(this.card.DVBDiSEqCType)).subscribe(this.saveObserver))}):this.captureCardService.AddCaptureCard(this.card).subscribe(this.saveObserver)}}return
t.\u0275fac=function(e){return
new(e||t)(D(Gt),D(Me),D(Oe))},t.\u0275cmp=z({type:t,selectors:[["app-satip"]],viewQuery:function(e,n){if(1&e&&(W(rse,5),W(ose,5)),2&e){let
s;V(s=B())&&(n.currentForm=s.first),V(s=B())&&(n.topEl
ement=s.first)}},inputs:{card:"card",cardList:"cardList"},decls:9,vars:0,consts:[["name","satipform",1,"ml-3","mr-3"],["satipform","ngForm"],["top",""],[1,"m-5"],["pTemplate","title"],["pTemplate","subtitle"],["pTemplate","content"],["pTemplate","footer"],[1,"grid"],[1,"mb-4","w-full"],[1,"form-group","field"],["for","VideoDevice",1,"label","block"],["optionLabel","VideoDevicePrompt","name","VideoDevice",3,"options","ngModel","editable","maxlength","style","ngModelChange","onChange",4,"ngIf"],[4,"ngIf"],[1,"block"],[1,"label","block"],[1,"col-10","bg-blue-100","text-gray-900"],["for","SignalTimeout",1,"label","block"],["name","SignalTimeout","id","SignalTimeout",3,"ngModel","showButtons","min","max","step","ngModelChange"],["for","ChannelTimeout",1,"label","block"],["name","ChannelTimeout","id","ChannelTimeout",3,"ngModel","showButtons","min","max","step","ngModelChange"],["inputId","DVBEITScan","name","DVBEITScan",1,"label","mb-2","w-full",3,"ngModel","binary","label","ngModelChang
e"],["DVBEITScan","ngModel"],["for","DVBDiSEqCType",1,"label","block"],["name","DVBDiSEqCType","id","DVBDiSEqCType",3,"ngModel","showButtons","min","max","step","ngModelChange"],["optionLabel","VideoDevicePrompt","name","VideoDevice",3,"options","ngModel","editable","maxlength","ngModelChange","onChange"],["VideoDevice","ngModel"],[1,"p-error","block"],[1,"grid","nogutter"],[1,"col-12"],["severity","success",3,"text",4,"ngIf"],["severity","error",3,"text",4,"ngIf"],["icon","pi
pi-save","iconPos","left",1,"col","pr-1",3,"label","disabled","onClick"],["severity","success",3,"text"],["severity","error",3,"text"]],template:function(e,n){1&e&&(l(0,"form",0,1),k(2,"span",null,2),l(4,"p-card",3),_(5,ase,2,3,"ng-template",4),_(6,lse,0,0,"ng-template",5),_(7,pse,78,77,"ng-template",6),_(8,fse,6,6,"ng-template",7),c()())},directives:[ze,Ue,He,Ne,ne,Q,Ot,Te,_e,_n,pt,sn,qe,ve],pipes:[ce],styles:[""]}),t})();const
_se=["vboxform"],bse=["top"];function
vse(t,i){1&t&&(g(0),m(1,"translate")),2&t&&T
(" ",f(1,1,"settings.capture.vbox.title")," ")}function
Cse(t,i){}const yse=function(){return{minWidth:"83%"}};function
wse(t,i){if(1&t){const
e=I();l(0,"p-dropdown",26,27),C("ngModelChange",function(s){return
v(e),d(2).currentDevice=s})("onChange",function(){return
v(e),d(2).updateDevice()}),c()}if(2&t){const
e=d(2);q(A(6,yse)),p("options",e.captureDeviceList.CaptureDeviceList.CaptureDevices)("ngModel",e.currentDevice)("editable",!1)("maxlength",0)}}function
Tse(t,i){if(1&t&&(l(0,"div")(1,"small",28),g(2),c()()),2&t){const
e=d(2);a(2),T(" ",e.warningMessage," ")}}function
Sse(t,i){if(1&t){const
e=I();l(0,"div",8)(1,"div",9)(2,"div",10)(3,"label",11),g(4),m(5,"translate"),c(),_(6,wse,2,7,"p-dropdown",12),_(7,Tse,3,1,"div",13),l(8,"small",14),g(9),m(10,"translate"),c()(),l(11,"div",10)(12,"label",15),g(13),m(14,"translate"),c(),l(15,"div",16),g(16),c(),l(17,"small",14),g(18),m(19,"translate"),c()(),l(20,"div",10)(21,"label",15),g(22),m(23,"translate"),c(),l(24,"div",16),g(25),c(),k(2
6,"small",14),c(),l(27,"div",10)(28,"label",17),g(29),m(30,"translate"),c(),l(31,"input",18,19),C("ngModelChange",function(s){return
v(e),d().currentDevice.IPAddress=s}),c(),l(33,"small",14),g(34),m(35,"translate"),c()(),l(36,"div",10)(37,"label",20),g(38),m(39,"translate"),c(),l(40,"input",21,19),C("ngModelChange",function(s){return
v(e),d().currentDevice.TunerNumber=s}),c(),l(42,"small",14),g(43),m(44,"translate"),c()(),l(45,"div",10)(46,"label",22),g(47),m(48,"translate"),c(),l(49,"p-inputNumber",23),C("ngModelChange",function(s){return
v(e),d().card.SignalTimeout=s}),c(),l(50,"small",14),g(51),m(52,"translate"),c()(),l(53,"div",10)(54,"label",24),g(55),m(56,"translate"),c(),l(57,"p-inputNumber",25),C("ngModelChange",function(s){return
v(e),d().card.ChannelTimeout=s}),c(),l(58,"small",14),g(59),m(60,"translate"),c()()()()}if(2&t){const
e=d();a(4),S(f(5,31,"settings.capture.satip.device_label")),a(2),p("ngIf",e.isReady),a(1),p("ngIf",e.warningMessage),a(2),T("
",f(10,33,"settings.
capture.vbox.device_desc"),"
"),a(4),S(f(14,35,"settings.capture.vbox.deviceid_label")),a(3),T("
",e.card.VideoDevice," \xa0 "),a(2),T("
",f(19,37,"settings.capture.vbox.deviceid_desc"),"
"),a(4),S(f(23,39,"settings.capture.vbox.description_label")),a(3),T("
",e.currentDevice.Description," \xa0
"),a(4),S(f(30,41,"settings.capture.ceton.ipaddress_label")),a(2),p("ngModel",e.currentDevice.IPAddress)("disabled",e.currentDevice!==e.manualDevice),a(3),T("
",f(35,43,"settings.capture.vbox.ipaddress_desc"),"
"),a(4),S(f(39,45,"settings.capture.ceton.tuner_label")),a(2),p("ngModel",e.currentDevice.TunerNumber)("disabled",e.currentDevice!==e.manualDevice),a(3),T("
",f(44,47,"settings.capture.vbox.tuner_desc"),"
"),a(4),S(f(48,49,"settings.capture.sigtimeout_label")),a(2),p("ngModel",e.card.SignalTimeout)("showButtons",!0)("min",250)("max",6e4)("step",250),a(2),T("
",f(52,51,"settings.capture.sigtimeout_desc"),"
"),a(4),S(f(56,53,"settings.capture.tunetimeout_label")),a(2),p("ngModel",e.card.
ChannelTimeout)("showButtons",!0)("min",2e3)("max",65e3)("step",250),a(2),T("
",f(60,55,"settings.capture.tunetimeout_desc")," ")}}function
xse(t,i){1&t&&(k(0,"p-message",34),m(1,"translate")),2&t&&x("text",f(1,1,"common.savesuccess"))}function
Dse(t,i){1&t&&(k(0,"p-message",35),m(1,"translate")),2&t&&x("text",f(1,1,"common.networkfail"))}function
Mse(t,i){if(1&t){const
e=I();l(0,"div",29)(1,"div",30),_(2,xse,2,3,"p-message",31),_(3,Dse,2,3,"p-message",32),c(),l(4,"p-button",33),C("onClick",function(){v(e);const
s=d(),r=F(1);return
s.saveForm(),r.form.markAsPristine()}),m(5,"translate"),c()()}if(2&t){const
e=d(),n=F(1);a(2),p("ngIf",e.successCount>0&&0==e.errorCount&&!n.dirty),a(1),p("ngIf",e.errorCount>0),a(1),x("label",f(5,4,"common.save")),p("disabled",!n.dirty||!e.card.VideoDevice||e.setupService.schedulingEnabled)}}let
kse=(()=>{class
t{constructor(e,n,s){this.captureCardService=e,this.setupService=n,this.translate=s,this.messages={devNotExist:"settings.capture.dvb.devNotExist"
,unknownName:"settings.capture.dvb.unknownName",devInUse:"settings.capture.dvb.devInUse",noDevSelected:"settings.capture.dvb.noDevSelected",manuallyEnter:"settings.capture.vbox.manuallyenter"},this.captureDeviceList={CaptureDeviceList:{CaptureDevices:[]}},this.currentDevice={FrontendName:"Unknown",InputNames:[""]},this.isReady=!1,this.warningMessage="",this.errorCount=0,this.successCount=0,this.saveObserver={next:r=>{this.card.CardId&&r.bool?this.successCount++:!this.card.CardId&&r.int?(this.successCount++,this.card.CardId=r.int,this.cardList.CaptureCardList.CaptureCards.push(this.card)):(this.errorCount++,this.currentForm.form.markAsDirty())},error:r=>{console.error(r),this.errorCount++,this.currentForm.form.markAsDirty()}},s.get(this.messages.devNotExist).subscribe(r=>this.messages.devNotExist=r),s.get(this.messages.unknownName).subscribe(r=>this.messages.unknownName=r),s.get(this.messages.devInUse).subscribe(r=>this.messages.devInUse=r),s.get(this.messages.noDevSelected).subscrib
e(r=>this.messages.noDevSelected=r),s.get(this.messages.manuallyEnter).subscribe(r=>this.messages.manuallyEnter=r)}ngOnInit(){this.captureCardService.GetCaptureDeviceList("VBOX").subscribe({next:e=>{this.captureDeviceList=e,this.setupDevice()},error:e=>{console.log("GetCaptureDeviceList",e),this.errorCount++}})}ngAfterViewInit(){this.setupService.setCurrentForm(this.currentForm),this.topElement.nativeElement.scrollIntoView({behavior:"smooth",block:"start"})}setupDevice(){if(this.manualDevice={VideoDevicePrompt:this.messages.manuallyEnter,VideoDevice:"",Description:"",IPAddress:"",TunerNumber:0,SignalTimeout:7e3,ChannelTimeout:1e4},this.captureDeviceList.CaptureDeviceList.CaptureDevices.unshift(this.manualDevice),this.card.VideoDevice||this.captureDeviceList.CaptureDeviceList.CaptureDevices.unshift({VideoDevice:"",FrontendName:this.messages.noDevSelected}),this.card.VideoDevice){let
e=this.captureDeviceList.CaptureDeviceList.CaptureDevices.find(n=>n.VideoDevice==this.card.VideoDevice
);e?this.currentDevice=e:(this.currentDevice={VideoDevice:this.card.VideoDevice,FrontendName:this.messages.devNotExist},this.captureDeviceList.CaptureDeviceList.CaptureDevices.push(this.currentDevice))}this.isReady=!0}updateDevice(){this.currentDevice===this.manualDevice?this.subscription=this.currentForm.valueChanges.pipe(yS(50)).subscribe(()=>this.card.VideoDevice=this.manualDevice.IPAddress+"-"+this.manualDevice.TunerNumber):this.subscription&&(this.subscription.unsubscribe(),this.subscription=void
0),this.card.VideoDevice=this.currentDevice.VideoDevice,this.card.ChannelTimeout=this.currentDevice.ChannelTimeout,this.card.SignalTimeout=this.currentDevice.SignalTimeout,this.checkInUse()}checkInUse(){this.warningMessage=this.cardList.CaptureCardList.CaptureCards.find(n=>n.VideoDevice==this.currentDevice.VideoDevice&&n.CardId!=this.card.CardId)?this.messages.devInUse:""}saveForm(){this.successCount=0,this.errorCount=0,this.card.CardId?this.cardList.CaptureCardList.CaptureCards.forEac
h(e=>{(e.CardId==this.card.CardId||e.ParentId==this.card.CardId)&&(this.captureCardService.UpdateCaptureCard(e.CardId,"videodevice",this.card.VideoDevice).subscribe(this.saveObserver),this.captureCardService.UpdateCaptureCard(e.CardId,"signal_timeout",String(this.card.SignalTimeout)).subscribe(this.saveObserver),this.captureCardService.UpdateCaptureCard(e.CardId,"channel_timeout",String(this.card.ChannelTimeout)).subscribe(this.saveObserver))}):this.captureCardService.AddCaptureCard(this.card).subscribe(this.saveObserver)}}return
t.\u0275fac=function(e){return
new(e||t)(D(Gt),D(Me),D(Oe))},t.\u0275cmp=z({type:t,selectors:[["app-vbox"]],viewQuery:function(e,n){if(1&e&&(W(_se,5),W(bse,5)),2&e){let
s;V(s=B())&&(n.currentForm=s.first),V(s=B())&&(n.topElement=s.first)}},inputs:{card:"card",cardList:"cardList"},decls:9,vars:0,consts:[["name","vboxform",1,"ml-3","mr-3"],["vboxform","ngForm"],["top",""],[1,"m-5"],["pTemplate","title"],["pTemplate","subtitle"],["pTemplate","content"],["pTemp
late","footer"],[1,"grid"],["u","",1,"mb-4","w-full"],[1,"form-group","field"],["for","VideoDevicePrompt",1,"label","block"],["optionLabel","VideoDevicePrompt","name","VideoDevicePrompt",3,"options","ngModel","editable","maxlength","style","ngModelChange","onChange",4,"ngIf"],[4,"ngIf"],[1,"block"],[1,"label","block"],[1,"col-10","bg-blue-100","text-gray-900"],["for","ip",1,"label","block"],["pInputText","","id","ip","name","ip",1,"mb-2","form-control","w-full",3,"ngModel","disabled","ngModelChange"],["ipAddress","ngModel"],["for","tuner",1,"label","block"],["pInputText","","id","tuner","name","tuner",1,"mb-2","form-control","w-full",3,"ngModel","disabled","ngModelChange"],["for","SignalTimeout",1,"label","block"],["name","SignalTimeout","id","SignalTimeout",3,"ngModel","showButtons","min","max","step","ngModelChange"],["for","ChannelTimeout",1,"label","block"],["name","ChannelTimeout","id","ChannelTimeout",3,"ngModel","showButtons","min","max","step","ngModelChange"],["optionLabel"
,"VideoDevicePrompt","name","VideoDevicePrompt",3,"options","ngModel","editable","maxlength","ngModelChange","onChange"],["VideoDevicePrompt","ngModel"],[1,"p-error","block"],[1,"grid","nogutter"],[1,"col-12"],["severity","success",3,"text",4,"ngIf"],["severity","error",3,"text",4,"ngIf"],["icon","pi
pi-save","iconPos","left",1,"col","pr-1",3,"label","disabled","onClick"],["severity","success",3,"text"],["severity","error",3,"text"]],template:function(e,n){1&e&&(l(0,"form",0,1),k(2,"span",null,2),l(4,"p-card",3),_(5,vse,2,3,"ng-template",4),_(6,Cse,0,0,"ng-template",5),_(7,Sse,61,57,"ng-template",6),_(8,Mse,6,6,"ng-template",7),c()())},directives:[ze,Ue,He,Ne,ne,Q,Ot,Te,_e,_n,Ye,pt,qe,ve],pipes:[ce],styles:[""]}),t})();const
Ise=["firewireform"],Ese=["top"];function
Rse(t,i){1&t&&(g(0),m(1,"translate")),2&t&&T("
",f(1,1,"settings.capture.firewire.title")," ")}function
Lse(t,i){}const Ed=function(){return{minWidth:"83%"}};function
Ose(t,i){if(1&t){const e=I();l(0,"p-dropdown",30,31),
C("ngModelChange",function(s){return
v(e),d(2).currentDevice=s})("onChange",function(){return
v(e),d(2).updateDevice()}),c()}if(2&t){const
e=d(2);q(A(6,Ed)),p("options",e.captureDeviceList.CaptureDeviceList.CaptureDevices)("ngModel",e.currentDevice)("editable",!1)("maxlength",0)}}function
Ase(t,i){if(1&t&&(l(0,"div")(1,"small",32),g(2),c()()),2&t){const
e=d(2);a(2),T(" ",e.warningMessage," ")}}function
Pse(t,i){if(1&t){const
e=I();l(0,"div",8)(1,"div",9)(2,"div",10)(3,"label",11),g(4),m(5,"translate"),c(),_(6,Ose,2,7,"p-dropdown",12),_(7,Ase,3,1,"div",13),k(8,"small",14),c(),l(9,"div",10)(10,"label",15),g(11),m(12,"translate"),c(),l(13,"div",16),g(14),c(),k(15,"small",14),c(),l(16,"div",10)(17,"label",17),g(18),m(19,"translate"),c(),l(20,"p-dropdown",18,19),C("ngModelChange",function(s){return
v(e),d().card.FirewireModel=s}),c(),l(22,"small",14),g(23),m(24,"translate"),c()(),l(25,"div",10)(26,"label",20),g(27),m(28,"translate"),c(),l(29,"p-dropdown",21,22),C("ngModelChange",function
(s){return
v(e),d().card.FirewireConnection=s}),c(),k(31,"small",14),c(),l(32,"div",10)(33,"label",23),g(34),m(35,"translate"),c(),l(36,"p-dropdown",24,25),C("ngModelChange",function(s){return
v(e),d().card.FirewireSpeed=s}),c(),k(38,"small",14),c(),l(39,"div",10)(40,"label",26),g(41),m(42,"translate"),c(),l(43,"p-inputNumber",27),C("ngModelChange",function(s){return
v(e),d().card.SignalTimeout=s}),c(),l(44,"small",14),g(45),m(46,"translate"),c()(),l(47,"div",10)(48,"label",28),g(49),m(50,"translate"),c(),l(51,"p-inputNumber",29),C("ngModelChange",function(s){return
v(e),d().card.ChannelTimeout=s}),c(),l(52,"small",14),g(53),m(54,"translate"),c()()()()}if(2&t){const
e=d();a(4),S(f(5,41,"settings.capture.firewire.device_label")),a(2),p("ngIf",e.isReady),a(1),p("ngIf",e.warningMessage),a(4),S(f(12,43,"settings.capture.vbox.description_label")),a(3),T("
",e.currentDevice.Description," \xa0
"),a(4),S(f(19,45,"settings.capture.firewire.model_label")),a(2),q(A(61,Ed)),p("options",e.models
)("ngModel",e.card.FirewireModel)("editable",!1)("maxlength",0),a(3),T("
",f(24,47,"settings.capture.firewire.model_desc"),"
"),a(4),S(f(28,49,"settings.capture.firewire.connection_label")),a(2),q(A(62,Ed)),p("options",e.connectionTypes)("ngModel",e.card.FirewireConnection)("editable",!1)("maxlength",0),a(5),S(f(35,51,"settings.capture.firewire.speed_label")),a(2),q(A(63,Ed)),p("options",e.speeds)("ngModel",e.card.FirewireSpeed)("editable",!1)("maxlength",0),a(5),S(f(42,53,"settings.capture.sigtimeout_label")),a(2),p("ngModel",e.card.SignalTimeout)("showButtons",!0)("min",250)("max",6e4)("step",250),a(2),T("
",f(46,55,"settings.capture.sigtimeout_desc"),"
"),a(4),S(f(50,57,"settings.capture.tunetimeout_label")),a(2),p("ngModel",e.card.ChannelTimeout)("showButtons",!0)("min",2e3)("max",65e3)("step",250),a(2),T("
",f(54,59,"settings.capture.tunetimeout_desc")," ")}}function
Fse(t,i){1&t&&(k(0,"p-message",38),m(1,"translate")),2&t&&x("text",f(1,1,"common.savesuccess"))}function
Nse(t,i
){1&t&&(k(0,"p-message",39),m(1,"translate")),2&t&&x("text",f(1,1,"common.networkfail"))}function
Vse(t,i){if(1&t){const
e=I();l(0,"div",33)(1,"div",34),_(2,Fse,2,3,"p-message",35),_(3,Nse,2,3,"p-message",36),c(),l(4,"p-button",37),C("onClick",function(){v(e);const
s=d(),r=F(1);return
s.saveForm(),r.form.markAsPristine()}),m(5,"translate"),c()()}if(2&t){const
e=d(),n=F(1);a(2),p("ngIf",e.successCount>0&&0==e.errorCount&&!n.dirty),a(1),p("ngIf",e.errorCount>0),a(1),x("label",f(5,4,"common.save")),p("disabled",!n.dirty||!e.card.VideoDevice||e.setupService.schedulingEnabled)}}let
Bse=(()=>{class
t{constructor(e,n,s){this.captureCardService=e,this.setupService=n,this.translate=s,this.messages={devNotExist:"settings.capture.dvb.devNotExist",unknownName:"settings.capture.dvb.unknownName",devInUse:"settings.capture.dvb.devInUse",noDevSelected:"settings.capture.dvb.noDevSelected",manuallyEnter:"settings.capture.vbox.manuallyenter"},this.models=[{name:"settings.capture.firewire.motogeneric",
value:"MOTO
GENERIC"},{name:"settings.capture.firewire.sageneric",value:"SA
GENERIC"},{name:"DCH-3200",value:"DCH-3200"},{name:"DCX-3200",value:"DCX-3200"},{name:"DCT-3412",value:"DCT-3412"},{name:"DCT-3416",value:"DCT-3416"},{name:"DCT-6200",value:"DCT-6200"},{name:"DCT-6212",value:"DCT-6212"},{name:"DCT-6216",value:"DCT-6216"},{name:"QIP-6200",value:"QIP-6200"},{name:"QIP-7100",value:"QIP-7100"},{name:"PACE-550",value:"PACE-550"},{name:"PACE-779",value:"PACE-779"},{name:"SA3250HD",value:"SA3250HD"},{name:"SA4200HD",value:"SA4200HD"},{name:"SA4250HDC",value:"SA4250HDC"},{name:"SA8300HD",value:"SA8300HD"}],this.connectionTypes=[{name:"settings.capture.firewire.pointtopoint",value:0},{name:"settings.capture.firewire.broadcast",value:1}],this.speeds=[{name:"100Mbps",value:0},{name:"200Mbps",value:1},{name:"400Mbps",value:2},{name:"800Mbps",value:3}],this.captureDeviceList={CaptureDeviceList:{CaptureDevices:[]}},this.currentDevice={FrontendName:"Unknown",InputNames:[""]},this.isReady=!
1,this.warningMessage="",this.errorCount=0,this.successCount=0,this.saveObserver={next:r=>{this.card.CardId&&r.bool?this.successCount++:!this.card.CardId&&r.int?(this.successCount++,this.card.CardId=r.int,this.cardList.CaptureCardList.CaptureCards.push(this.card)):(this.errorCount++,this.currentForm.form.markAsDirty())},error:r=>{console.error(r),this.errorCount++,this.currentForm.form.markAsDirty()}},s.get(this.messages.devNotExist).subscribe(r=>this.messages.devNotExist=r),s.get(this.messages.unknownName).subscribe(r=>this.messages.unknownName=r),s.get(this.messages.devInUse).subscribe(r=>this.messages.devInUse=r),s.get(this.messages.noDevSelected).subscribe(r=>this.messages.noDevSelected=r),s.get(this.messages.manuallyEnter).subscribe(r=>this.messages.manuallyEnter=r),s.get(this.models[0].name).subscribe(r=>this.models[0].name=r),s.get(this.models[1].name).subscribe(r=>this.models[1].name=r),s.get(this.connectionTypes[0].name).subscribe(r=>this.connectionTypes[0].name=r),s.get(th
is.connectionTypes[1].name).subscribe(r=>this.connectionTypes[1].name=r)}ngOnInit(){this.captureCardService.GetCaptureDeviceList("FIREWIRE").subscribe({next:e=>{this.captureDeviceList=e,this.setupDevice()},error:e=>{console.log("GetCaptureDeviceList",e),this.errorCount++}})}ngAfterViewInit(){this.setupService.setCurrentForm(this.currentForm),this.topElement.nativeElement.scrollIntoView({behavior:"smooth",block:"start"})}setupDevice(){if(this.card.VideoDevice||this.captureDeviceList.CaptureDeviceList.CaptureDevices.unshift({VideoDevice:"",FrontendName:this.messages.noDevSelected}),this.card.VideoDevice){let
e=this.captureDeviceList.CaptureDeviceList.CaptureDevices.find(n=>n.VideoDevice==this.card.VideoDevice);e?this.currentDevice=e:(this.currentDevice={VideoDevice:this.card.VideoDevice,FrontendName:this.messages.devNotExist},this.captureDeviceList.CaptureDeviceList.CaptureDevices.push(this.currentDevice))}this.isReady=!0}updateDevice(){this.card.VideoDevice=this.currentDevice.VideoDe
vice,this.card.ChannelTimeout=this.currentDevice.ChannelTimeout,this.card.SignalTimeout=this.currentDevice.SignalTimeout,this.card.FirewireModel=this.currentDevice.FirewireModel,this.checkInUse()}checkInUse(){this.warningMessage=this.cardList.CaptureCardList.CaptureCards.find(n=>n.VideoDevice==this.currentDevice.VideoDevice&&n.CardId!=this.card.CardId)?this.messages.devInUse:""}saveForm(){this.successCount=0,this.errorCount=0,this.card.CardId?this.cardList.CaptureCardList.CaptureCards.forEach(e=>{(e.CardId==this.card.CardId||e.ParentId==this.card.CardId)&&(this.captureCardService.UpdateCaptureCard(e.CardId,"videodevice",this.card.VideoDevice).subscribe(this.saveObserver),this.captureCardService.UpdateCaptureCard(e.CardId,"firewire_model",this.card.FirewireModel).subscribe(this.saveObserver),this.captureCardService.UpdateCaptureCard(e.CardId,"firewire_connection",String(this.card.FirewireConnection)).subscribe(this.saveObserver),this.captureCardService.UpdateCaptureCard(e.CardId,"fir
ewire_speed",String(this.card.FirewireSpeed)).subscribe(this.saveObserver),this.captureCardService.UpdateCaptureCard(e.CardId,"signal_timeout",String(this.card.SignalTimeout)).subscribe(this.saveObserver),this.captureCardService.UpdateCaptureCard(e.CardId,"channel_timeout",String(this.card.ChannelTimeout)).subscribe(this.saveObserver))}):this.captureCardService.AddCaptureCard(this.card).subscribe(this.saveObserver)}}return
t.\u0275fac=function(e){return
new(e||t)(D(Gt),D(Me),D(Oe))},t.\u0275cmp=z({type:t,selectors:[["app-firewire"]],viewQuery:function(e,n){if(1&e&&(W(Ise,5),W(Ese,5)),2&e){let
s;V(s=B())&&(n.currentForm=s.first),V(s=B())&&(n.topElement=s.first)}},inputs:{card:"card",cardList:"cardList"},decls:9,vars:0,consts:[["name","firewireform",1,"ml-3","mr-3"],["firewireform","ngForm"],["top",""],[1,"m-5"],["pTemplate","title"],["pTemplate","subtitle"],["pTemplate","content"],["pTemplate","footer"],[1,"grid"],[1,"mb-4","w-full"],[1,"form-group","field"],["for","VideoDevice",1,"l
abel","block"],["optionLabel","VideoDevice","name","VideoDevice",3,"options","ngModel","editable","maxlength","style","ngModelChange","onChange",4,"ngIf"],[4,"ngIf"],[1,"block"],[1,"label","block"],[1,"col-10","bg-blue-100","text-gray-900"],["for","FirewireModel",1,"label","block"],["optionLabel","name","optionValue","value","name","FirewireModel",3,"options","ngModel","editable","maxlength","ngModelChange"],["FirewireModel","ngModel"],["for","FirewireConnection",1,"label","block"],["optionLabel","name","optionValue","value","name","FirewireConnection",3,"options","ngModel","editable","maxlength","ngModelChange"],["FirewireConnection","ngModel"],["for","FirewireSpeed",1,"label","block"],["optionLabel","name","optionValue","value","name","FirewireSpeed",3,"options","ngModel","editable","maxlength","ngModelChange"],["FirewireSpeed","ngModel"],["for","SignalTimeout",1,"label","block"],["name","SignalTimeout","id","SignalTimeout",3,"ngModel","showButtons","min","max","step","ngModelChan
ge"],["for","ChannelTimeout",1,"label","block"],["name","ChannelTimeout","id","ChannelTimeout",3,"ngModel","showButtons","min","max","step","ngModelChange"],["optionLabel","VideoDevice","name","VideoDevice",3,"options","ngModel","editable","maxlength","ngModelChange","onChange"],["VideoDevice","ngModel"],[1,"p-error","block"],[1,"grid","nogutter"],[1,"col-12"],["severity","success",3,"text",4,"ngIf"],["severity","error",3,"text",4,"ngIf"],["icon","pi
pi-save","iconPos","left",1,"col","pr-1",3,"label","disabled","onClick"],["severity","success",3,"text"],["severity","error",3,"text"]],template:function(e,n){1&e&&(l(0,"form",0,1),k(2,"span",null,2),l(4,"p-card",3),_(5,Rse,2,3,"ng-template",4),_(6,Lse,0,0,"ng-template",5),_(7,Pse,55,64,"ng-template",6),_(8,Vse,6,6,"ng-template",7),c()())},directives:[ze,Ue,He,Ne,ne,Q,Ot,Te,_e,_n,pt,qe,ve],pipes:[ce],styles:[""]}),t})();const
Hse=["scroll"],ht=function(){return{minWidth:"400px"}};function
qse(t,i){if(1&t){const e=I();l(0,"div",0)(1,"lab
el",38),g(2),m(3,"translate"),c(),l(4,"p-dropdown",39,40),C("ngModelChange",function(s){return
v(e),d(2).scanRequest.FreqTable=s})("onChange",function(){return
v(e),d(2).onFreqTableChange(!1)}),c(),l(6,"small",4),g(7),m(8,"translate"),c()()}if(2&t){const
e=d(2);a(2),S(f(3,8,"settings.channelscan.freqtable_label")),a(2),q(A(12,ht)),p("options",e.freqTableSelect)("ngModel",e.scanRequest.FreqTable)("editable",!1)("maxlength",0),a(3),T("
",f(8,10,"settings.channelscan.freqtable_desc")," ")}}function
Gse(t,i){if(1&t){const
e=I();l(0,"div",0)(1,"label",41),g(2),m(3,"translate"),c(),l(4,"p-dropdown",42,43),C("ngModelChange",function(s){return
v(e),d(2).scanRequest.FreqTable=s}),c(),l(6,"small",4),g(7),m(8,"translate"),c()()}if(2&t){const
e=d(2);a(2),S(f(3,8,"settings.channelscan.country_label")),a(2),q(A(12,ht)),p("options",e.countryTable)("ngModel",e.scanRequest.FreqTable)("editable",!1)("maxlength",0),a(3),T("
",f(8,10,"settings.channelscan.scantype_dvbt_desc"),"
")}}function Use(t,i){if
(1&t){const
e=I();l(0,"div",0)(1,"label",41),g(2),m(3,"translate"),c(),l(4,"p-dropdown",42,43),C("ngModelChange",function(s){return
v(e),d(2).scanRequest.FreqTable=s}),c(),k(6,"small",4),c()}if(2&t){const
e=d(2);a(2),S(f(3,7,"settings.channelscan.country_label")),a(2),q(A(9,ht)),p("options",e.networkTable)("ngModel",e.scanRequest.FreqTable)("editable",!1)("maxlength",0)}}function
zse(t,i){if(1&t){const
e=I();l(0,"div",0)(1,"label",44),g(2),m(3,"translate"),c(),l(4,"p-dropdown",45,46),C("ngModelChange",function(s){return
v(e),d(2).scanRequest.Modulation=s})("onChange",function(){return
v(e),d(2).onFreqTableChange(!0)}),c(),l(6,"small",4),g(7),m(8,"translate"),c()()}if(2&t){const
e=d(2);a(2),S(f(3,8,"settings.channelscan.modulation_label")),a(2),q(A(12,ht)),p("options",e.atscModulationTable)("ngModel",e.scanRequest.Modulation)("editable",!1)("maxlength",0),a(3),T("
",f(8,10,"settings.channelscan.atscmodulation_desc"),"
")}}function
jse(t,i){1&t&&(l(0,"div")(1,"small",51),g(2),m(3,"tra
nslate"),c()()),2&t&&(a(2),S(f(3,1,"settings.channelscan.invalid_range")))}function
$se(t,i){if(1&t){const
e=I();l(0,"div",0)(1,"label",47),g(2),m(3,"translate"),c(),l(4,"p-dropdown",48,49),C("ngModelChange",function(s){return
v(e),d(2).scanRequest.FirstChan=s}),c(),l(6,"small",4),g(7),m(8,"translate"),c(),_(9,jse,4,3,"div",50),c()}if(2&t){const
e=d(2);a(2),S(f(3,9,"settings.channelscan.firstchan_label")),a(2),q(A(13,ht)),p("options",e.channels)("ngModel",e.scanRequest.FirstChan)("editable",!1)("maxlength",0),a(3),T("
",f(8,11,"settings.channelscan.firstchan_desc"),"
"),a(2),p("ngIf",e.channelCount<1)}}function
Wse(t,i){1&t&&(l(0,"div")(1,"small",51),g(2),m(3,"translate"),c()()),2&t&&(a(2),S(f(3,1,"settings.channelscan.invalid_range")))}function
Kse(t,i){if(1&t){const
e=I();l(0,"div",0)(1,"label",52),g(2),m(3,"translate"),c(),l(4,"p-dropdown",53,54),C("ngModelChange",function(s){return
v(e),d(2).scanRequest.LastChan=s}),c(),l(6,"small",4),g(7),m(8,"translate"),c(),_(9,Wse,4,3,"div",
50),c()}if(2&t){const
e=d(2);a(2),S(f(3,9,"settings.channelscan.lastchan_label")),a(2),q(A(13,ht)),p("options",e.channels)("ngModel",e.scanRequest.LastChan)("editable",!1)("maxlength",0),a(3),T("
",f(8,11,"settings.channelscan.lastchan_desc"),"
"),a(2),p("ngIf",e.channelCount<1)}}function
Qse(t,i){if(1&t&&(l(0,"div",0)(1,"label",30),g(2),m(3,"translate"),c(),l(4,"div",29),g(5),c(),l(6,"small",4),g(7),m(8,"translate"),c()()),2&t){const
e=d(2);a(2),S(f(3,3,"settings.channelscan.chancount_label")),a(3),T("
",e.calcCount()," \xa0 "),a(2),T("
",f(8,5,"settings.channelscan.chancount_desc")," ")}}const
Xs=function(){return["DVBT","DVBT2"]};function
Jse(t,i){if(1&t&&(l(0,"p-fieldset",37),m(1,"translate"),_(2,qse,9,13,"div",33),_(3,Gse,9,13,"div",33),_(4,Use,7,10,"div",33),_(5,zse,9,13,"div",33),_(6,$se,10,14,"div",33),_(7,Kse,10,14,"div",33),_(8,Qse,9,7,"div",33),c()),2&t){const
e=d();x("legend",f(1,10,"settings.channelscan.type.full")),p("toggleable",!1)("collapsed",!1),a(2),p("ngIf","ATSC
"==e.scanSubType),a(1),p("ngIf",A(12,Xs).includes(e.scanSubType)),a(1),p("ngIf","DVBC"==e.scanSubType),a(1),p("ngIf","ATSC"==e.scanSubType),a(1),p("ngIf","ATSC"==e.scanSubType),a(1),p("ngIf","ATSC"==e.scanSubType),a(1),p("ngIf","ATSC"==e.scanSubType)}}function
Yse(t,i){if(1&t){const
e=I();l(0,"div",0)(1,"label",61),g(2),m(3,"translate"),c(),l(4,"p-dropdown",62,63),C("ngModelChange",function(s){return
v(e),d(2).satTuning=s})("onChange",function(){return
v(e),d(2).onSatTuningChange()}),c(),l(6,"small",4),g(7),m(8,"translate"),c()()}if(2&t){const
e=d(2);a(2),S(f(3,8,"settings.channelscan.sattuning_label")),a(2),q(A(12,ht)),p("options",e.satTuningTable)("ngModel",e.satTuning)("editable",!1)("maxlength",0),a(3),T("
",f(8,10,"settings.channelscan.sattuning_desc")," ")}}function
Zse(t,i){if(1&t){const
e=I();l(0,"div",0)(1,"label",64),g(2),m(3,"translate"),c(),l(4,"p-dropdown",65,66),C("ngModelChange",function(s){return
v(e),d(2).scanRequest.Bandwidth=s}),c(),l(6,"small",4),g(7),m(8,"transl
ate"),c()()}if(2&t){const
e=d(2);a(2),S(f(3,8,"settings.channelscan.bandwidth_label")),a(2),q(A(12,ht)),p("options",e.bandwidthTable)("ngModel",e.scanRequest.Bandwidth)("editable",!1)("maxlength",0),a(3),T("
",f(8,10,"settings.channelscan.bandwidth_desc")," ")}}function
Xse(t,i){if(1&t){const
e=I();l(0,"div",0)(1,"label",67),g(2),m(3,"translate"),c(),l(4,"p-dropdown",68,69),C("ngModelChange",function(s){return
v(e),d(2).scanRequest.Polarity=s}),c(),l(6,"small",4),g(7),m(8,"translate"),c()()}if(2&t){const
e=d(2);a(2),S(f(3,8,"settings.channelscan.polarity_label")),a(2),q(A(12,ht)),p("options",e.polarityTable)("ngModel",e.scanRequest.Polarity)("editable",!1)("maxlength",0),a(3),T("
",f(8,10,"settings.channelscan.polarity_desc")," ")}}function
ere(t,i){if(1&t){const
e=I();l(0,"div",0)(1,"label",70),g(2),m(3,"translate"),c(),l(4,"p-dropdown",71,72),C("ngModelChange",function(s){return
v(e),d(2).scanRequest.SymbolRate=s}),c(),l(6,"small",4),g(7),m(8,"translate"),c()()}if(2&t){const
e=d(2
);a(2),S(f(3,8,"settings.channelscan.symbolrate_label")),a(2),q(A(12,ht)),p("options",e.dvbcSymbolRateTable)("ngModel",e.scanRequest.SymbolRate)("editable",!0)("maxlength",8),a(3),T("
",f(8,10,"settings.channelscan.dvbcsymbolrate_desc"),"
")}}function tre(t,i){if(1&t){const
e=I();l(0,"div",0)(1,"label",73),g(2),m(3,"translate"),c(),l(4,"p-dropdown",74,75),C("ngModelChange",function(s){return
v(e),d(2).scanRequest.SymbolRate=s}),c(),l(6,"small",4),g(7),m(8,"translate"),c()()}if(2&t){const
e=d(2);a(2),S(f(3,8,"settings.channelscan.symbolrate_label")),a(2),q(A(12,ht)),p("options",e.dvbsSymbolRateTable)("ngModel",e.scanRequest.SymbolRate)("editable",!0)("maxlength",8),a(3),T("
",f(8,10,"settings.channelscan.dvbssymbolrate_desc"),"
")}}function nre(t,i){if(1&t){const
e=I();l(0,"div",0)(1,"label",76),g(2),m(3,"translate"),c(),l(4,"p-dropdown",77,78),C("ngModelChange",function(s){return
v(e),d(2).scanRequest.Constellation=s}),c(),l(6,"small",4),g(7),m(8,"translate"),c()()}if(2&t){const
e=d
(2);a(2),S(f(3,8,"settings.channelscan.constellation_label")),a(2),q(A(12,ht)),p("options",e.modulationTable)("ngModel",e.scanRequest.Constellation)("editable",!1)("maxlength",0),a(3),T("
",f(8,10,"settings.channelscan.constellation_desc"),"
")}}function ire(t,i){if(1&t){const
e=I();l(0,"div",0)(1,"label",79),g(2),m(3,"translate"),c(),l(4,"p-dropdown",80,81),C("ngModelChange",function(s){return
v(e),d(2).scanRequest.Modulation=s}),c(),l(6,"small",4),g(7),m(8,"translate"),c()()}if(2&t){const
e=d(2);a(2),S(f(3,8,"settings.channelscan.modulation_label")),a(2),q(A(12,ht)),p("options",e.modulationTable)("ngModel",e.scanRequest.Modulation)("editable",!1)("maxlength",0),a(3),T("
",f(8,10,"settings.channelscan.Modulation_desc")," ")}}function
sre(t,i){if(1&t){const
e=I();l(0,"div",0)(1,"label",82),g(2),m(3,"translate"),c(),l(4,"p-dropdown",83,84),C("ngModelChange",function(s){return
v(e),d(2).scanRequest.Modulation=s}),c(),l(6,"small",4),g(7),m(8,"translate"),c()()}if(2&t){const
e=d(2);a(2)
,S(f(3,8,"settings.channelscan.modulation_label")),a(2),q(A(12,ht)),p("options",e.dvbsModulationTable)("ngModel",e.scanRequest.Modulation)("editable",!1)("maxlength",0),a(3),T("
",f(8,10,"settings.channelscan.dvbsmodulation_desc"),"
")}}function rre(t,i){if(1&t){const
e=I();l(0,"div",0)(1,"label",85),g(2),m(3,"translate"),c(),l(4,"p-dropdown",86,87),C("ngModelChange",function(s){return
v(e),d(2).scanRequest.ModSys=s}),c(),l(6,"small",4),g(7),m(8,"translate"),c()()}if(2&t){const
e=d(2);a(2),S(f(3,8,"settings.channelscan.modsys_label")),a(2),q(A(12,ht)),p("options",e.dvbtModSysTable)("ngModel",e.scanRequest.ModSys)("editable",!1)("maxlength",0),a(3),T("
",f(8,10,"settings.channelscan.dvbtmodsys_desc")," ")}}function
ore(t,i){if(1&t){const
e=I();l(0,"div",0)(1,"label",88),g(2),m(3,"translate"),c(),l(4,"p-dropdown",89,90),C("ngModelChange",function(s){return
v(e),d(2).scanRequest.ModSys=s}),c(),l(6,"small",4),g(7),m(8,"translate"),c()()}if(2&t){const
e=d(2);a(2),S(f(3,8,"settings.channe
lscan.modsys_label")),a(2),q(A(12,ht)),p("options",e.dvbcModSysTable)("ngModel",e.scanRequest.ModSys)("editable",!1)("maxlength",0),a(3),T("
",f(8,10,"settings.channelscan.dvbcmodsys_desc")," ")}}function
are(t,i){if(1&t){const
e=I();l(0,"div",0)(1,"label",91),g(2),m(3,"translate"),c(),l(4,"p-dropdown",92,93),C("ngModelChange",function(s){return
v(e),d(2).scanRequest.ModSys=s}),c(),l(6,"small",4),g(7),m(8,"translate"),c()()}if(2&t){const
e=d(2);a(2),S(f(3,8,"settings.channelscan.modsys_label")),a(2),q(A(12,ht)),p("options",e.dvbsModSysTable)("ngModel",e.scanRequest.ModSys)("editable",!1)("maxlength",0),a(3),T("
",f(8,10,"settings.channelscan.dvbsmodsys_desc")," ")}}function
lre(t,i){if(1&t){const
e=I();l(0,"div",0)(1,"label",94),g(2),m(3,"translate"),c(),l(4,"p-dropdown",95,96),C("ngModelChange",function(s){return
v(e),d(2).scanRequest.CodeRateLP=s}),c(),l(6,"small",4),g(7),m(8,"translate"),c()()}if(2&t){const
e=d(2);a(2),S(f(3,8,"settings.channelscan.coderatelp_label")),a(2),q(A(12
,ht)),p("options",e.fecTable)("ngModel",e.scanRequest.CodeRateLP)("editable",!1)("maxlength",0),a(3),T("
",f(8,10,"settings.channelscan.coderatelp_desc")," ")}}function
cre(t,i){if(1&t){const
e=I();l(0,"div",0)(1,"label",97),g(2),m(3,"translate"),c(),l(4,"p-dropdown",98,99),C("ngModelChange",function(s){return
v(e),d(2).scanRequest.CodeRateHP=s}),c(),l(6,"small",4),g(7),m(8,"translate"),c()()}if(2&t){const
e=d(2);a(2),S(f(3,8,"settings.channelscan.coderatehp_label")),a(2),q(A(12,ht)),p("options",e.fecTable)("ngModel",e.scanRequest.CodeRateHP)("editable",!1)("maxlength",0),a(3),T("
",f(8,10,"settings.channelscan.coderatehp_desc")," ")}}function
ure(t,i){if(1&t){const
e=I();l(0,"div",0)(1,"label",100),g(2),m(3,"translate"),c(),l(4,"p-dropdown",101,102),C("ngModelChange",function(s){return
v(e),d(2).scanRequest.FEC=s}),c(),l(6,"small",4),g(7),m(8,"translate"),c()()}if(2&t){const
e=d(2);a(2),S(f(3,8,"settings.channelscan.FEC_label")),a(2),q(A(12,ht)),p("options",e.fecTable)("ngModel",e.
scanRequest.FEC)("editable",!1)("maxlength",0),a(3),T("
",f(8,10,"settings.channelscan.FEC_desc")," ")}}function
dre(t,i){if(1&t){const
e=I();l(0,"div",0)(1,"label",103),g(2),m(3,"translate"),c(),l(4,"p-dropdown",104,105),C("ngModelChange",function(s){return
v(e),d(2).scanRequest.TransmissionMode=s}),c(),l(6,"small",4),g(7),m(8,"translate"),c()()}if(2&t){const
e=d(2);a(2),S(f(3,8,"settings.channelscan.transmissionmode_label")),a(2),q(A(12,ht)),p("options",e.transmissionModeTable)("ngModel",e.scanRequest.TransmissionMode)("editable",!1)("maxlength",0),a(3),T("
",f(8,10,"settings.channelscan.transmissionmode_desc"),"
")}}function pre(t,i){if(1&t){const
e=I();l(0,"div",0)(1,"label",106),g(2),m(3,"translate"),c(),l(4,"p-dropdown",107,108),C("ngModelChange",function(s){return
v(e),d(2).scanRequest.GuardInterval=s}),c(),l(6,"small",4),g(7),m(8,"translate"),c()()}if(2&t){const
e=d(2);a(2),S(f(3,8,"settings.channelscan.guardinterval_label")),a(2),q(A(12,ht)),p("options",e.guardIntervalTable
)("ngModel",e.scanRequest.GuardInterval)("editable",!1)("maxlength",0),a(3),T("
",f(8,10,"settings.channelscan.guardinterval_desc"),"
")}}function hre(t,i){if(1&t){const
e=I();l(0,"div",0)(1,"label",109),g(2),m(3,"translate"),c(),l(4,"p-dropdown",110,111),C("ngModelChange",function(s){return
v(e),d(2).scanRequest.Hierarchy=s}),c(),l(6,"small",4),g(7),m(8,"translate"),c()()}if(2&t){const
e=d(2);a(2),S(f(3,8,"settings.channelscan.hierarchy_label")),a(2),q(A(12,ht)),p("options",e.hierarchyTable)("ngModel",e.scanRequest.Hierarchy)("editable",!1)("maxlength",0),a(3),T("
",f(8,10,"settings.channelscan.hierarchy_desc")," ")}}function
mre(t,i){if(1&t){const
e=I();l(0,"div",0)(1,"label",112),g(2),m(3,"translate"),c(),l(4,"p-dropdown",113,114),C("ngModelChange",function(s){return
v(e),d(2).scanRequest.RollOff=s}),c(),l(6,"small",4),g(7),m(8,"translate"),c()()}if(2&t){const
e=d(2);a(2),S(f(3,8,"settings.channelscan.rolloff_label")),a(2),q(A(12,ht)),p("options",e.rollOffTable)("ngModel",e.scanR
equest.RollOff)("editable",!1)("maxlength",0),a(3),T("
",f(8,10,"settings.channelscan.rolloff_desc")," ")}}const
Tg=function(){return["DVBS","DVBS2"]},fre=function(t){return{unit:t}},gre=function(){return["DVBC","DVBS","DVBS2"]};function
_re(t,i){if(1&t){const
e=I();l(0,"p-fieldset",37),m(1,"translate"),_(2,Yse,9,13,"div",33),l(3,"div",0)(4,"label",55),g(5),m(6,"translate"),c(),l(7,"p-inputNumber",56),C("ngModelChange",function(s){return
v(e),d().scanRequest.Frequency=s}),c(),l(8,"small",4),k(9,"div",57),c()(),_(10,Zse,9,13,"div",33),_(11,Xse,9,13,"div",33),_(12,ere,9,13,"div",33),_(13,tre,9,13,"div",33),l(14,"div",0)(15,"label",58),g(16),m(17,"translate"),c(),l(18,"p-dropdown",59,60),C("ngModelChange",function(s){return
v(e),d().scanRequest.Inversion=s}),c(),l(20,"small",4),g(21),m(22,"translate"),c()(),_(23,nre,9,13,"div",33),_(24,ire,9,13,"div",33),_(25,sre,9,13,"div",33),_(26,rre,9,13,"div",33),_(27,ore,9,13,"div",33),_(28,are,9,13,"div",33),_(29,lre,9,13,"div",33),_(30,cre,9,13
,"div",33),_(31,ure,9,13,"div",33),_(32,dre,9,13,"div",33),_(33,pre,9,13,"div",33),_(34,hre,9,13,"div",33),_(35,mre,9,13,"div",33),c()}if(2&t){const
e=d();x("legend",f(1,35,"settings.channelscan.type.fulltuned")),p("toggleable",!1)("collapsed",!1),a(2),p("ngIf","DVBS2"==e.scanSubType),a(3),S(f(6,37,"settings.channelscan.frequency_label")),a(2),p("ngModel",e.scanRequest.Frequency)("min",0)("max",999999999),a(2),p("translate","settings.channelscan.frequency_desc")("translateParams",U(44,fre,A(43,Tg).includes(e.scanSubType)?"kHZ":"Hz")),a(1),p("ngIf",A(46,Xs).includes(e.scanSubType)),a(1),p("ngIf",A(47,Tg).includes(e.scanSubType)),a(1),p("ngIf","DVBC"==e.scanSubType),a(1),p("ngIf",A(48,Tg).includes(e.scanSubType)),a(3),S(f(17,39,"settings.channelscan.inversion_label")),a(2),q(A(49,ht)),p("options",e.inversionTable)("ngModel",e.scanRequest.Inversion)("editable",!1)("maxlength",0),a(3),T("
",f(22,41,"settings.channelscan.inversion_desc"),"
"),a(2),p("ngIf",A(50,Xs).includes(e.scanSubType
)),a(1),p("ngIf","DVBC"==e.scanSubType),a(1),p("ngIf","DVBS2"==e.scanSubType),a(1),p("ngIf","DVBT2"==e.scanSubType),a(1),p("ngIf","DVBC"==e.scanSubType),a(1),p("ngIf","DVBS2"==e.scanSubType),a(1),p("ngIf",A(51,Xs).includes(e.scanSubType)),a(1),p("ngIf",A(52,Xs).includes(e.scanSubType)),a(1),p("ngIf",A(53,gre).includes(e.scanSubType)),a(1),p("ngIf",A(54,Xs).includes(e.scanSubType)),a(1),p("ngIf",A(55,Xs).includes(e.scanSubType)),a(1),p("ngIf",A(56,Xs).includes(e.scanSubType)),a(1),p("ngIf","DVBS2"==e.scanSubType)}}function
bre(t,i){if(1&t){const
e=I();l(0,"p-fieldset",37),m(1,"translate"),l(2,"div",0)(3,"label",115),g(4),m(5,"translate"),c(),l(6,"p-dropdown",116,117),C("ngModelChange",function(s){return
v(e),d().scanRequest.ScanId=s}),c(),k(8,"small",4),c()()}if(2&t){const
e=d();x("legend",f(1,10,"settings.channelscan.type.import")),p("toggleable",!1)("collapsed",!1),a(4),S(f(5,12,"settings.channelscan.scanimport_label")),a(2),q(A(14,ht)),p("options",e.scans)("ngModel",e.scanRequest.
ScanId)("editable",!1)("maxlength",0)}}function
vre(t,i){if(1&t){const
e=I();l(0,"div",0)(1,"label",122),g(2),m(3,"translate"),c(),l(4,"p-dropdown",123,124),C("ngModelChange",function(s){return
v(e),d(2).scanRequest.MplexId=s}),c(),k(6,"small",4),c()}if(2&t){const
e=d(2);a(2),S(f(3,7,"settings.channelscan.transport_label")),a(2),q(A(9,ht)),p("options",e.multiplex)("ngModel",e.scanRequest.MplexId)("editable",!1)("maxlength",0)}}function
Cre(t,i){if(1&t){const
e=I();l(0,"p-fieldset",37),m(1,"translate"),_(2,vre,7,10,"div",33),l(3,"div",0)(4,"p-checkbox",118,119),C("ngModelChange",function(s){return
v(e),d().scanRequest.IgnoreSignalTimeout=s}),m(6,"translate"),c(),l(7,"small",4),g(8),m(9,"translate"),c()(),l(10,"div",0)(11,"p-checkbox",120,121),C("ngModelChange",function(s){return
v(e),d().scanRequest.FollowNITSetting=s}),m(13,"translate"),c(),l(14,"small",4),g(15),m(16,"translate"),c()()()}if(2&t){const
e=d();x("legend",f(1,12,"settings.channelscan.type.transports")),p("toggleable",!1
)("collapsed",!1),a(2),p("ngIf","ONETRANSPORT"==e.scanRequest.ScanType),a(2),x("label",f(6,14,"settings.channelscan.ignoresignaltimeout_label")),p("ngModel",e.scanRequest.IgnoreSignalTimeout)("binary",!0),a(4),T("
",f(9,16,"settings.channelscan.ignoresignaltimeout_desc"),"
"),a(3),x("label",f(13,18,"settings.channelscan.follownitsetting_label")),p("ngModel",e.scanRequest.FollowNITSetting)("binary",!0),a(4),T("
",f(16,20,"settings.channelscan.follownitsetting_desc"),"
")}}function
yre(t,i){1&t&&(l(0,"small",4),g(1),m(2,"translate"),c()),2&t&&(a(1),T("
",f(2,1,"settings.channelscan.scan_desc")," "))}function
wre(t,i){if(1&t&&(l(0,"div",0)(1,"div",125)(2,"b"),g(3),c(),g(4,"
\xa0 "),c(),k(5,"br"),c()),2&t){const
e=d();a(3),S(e.scanStatus.DialogMsg)}}function Tre(t,i){if(1&t){const
e=I();l(0,"div",0)(1,"input",126,127),C("ngModelChange",function(s){return
v(e),d().dialogResponse.DialogString=s}),c()()}if(2&t){const
e=d();a(1),p("ngModel",e.dialogResponse.DialogString)}}function Sre(t,i){
if(1&t){const
e=I();l(0,"div",0)(1,"label",128),g(2),m(3,"translate"),c(),l(4,"p-dropdown",129,3),C("ngModelChange",function(s){return
v(e),d().buttonText=s}),c()()}if(2&t){const
e=d();a(2),S(f(3,7,"settings.channelscan.scanimport_option")),a(2),q(A(9,ht)),p("options",e.scanStatus.DialogButtons)("ngModel",e.buttonText)("editable",!1)("maxlength",0)}}function
xre(t,i){if(1&t){const
e=I();l(0,"div",0)(1,"p-button",130),C("onClick",function(){return
v(e),d().respondDialog()}),m(2,"translate"),c()()}2&t&&(a(1),x("label",f(2,1,"common.submit")))}const
Sg=function(){return{height:"20px"}},Dre=function(){return{width:"100%",height:"400px"}};class
j{constructor(i,e){this.label=i,this.value=e}}class
Ar{constructor(i,e,n,s,r,o,u){this.label=i,this.Frequency=e,this.Polarity=n,this.SymbolRate=s,this.Modulation=r,this.ModSys=o,this.FEC=u}}let
Mre=(()=>{class
t{constructor(e,n,s,r){this.translate=e,this.channelService=n,this.captureCardService=s,this.setupService=r,this.serviceValues=[new
j("sett
ings.channelscan.tv","tv"),new
j("settings.channelscan.tvradio","audio"),new
j("settings.channelscan.all","all")],this.scanSubType="",this.scanTypes=[],this.freqTableSelect=[new
j("settings.channelscan.freq.usa.broadcast","us"),new
j("settings.channelscan.freq.usa.cablehi","uscablehigh"),new
j("settings.channelscan.freq.usa.cablehrchi","ushrchigh"),new
j("settings.channelscan.freq.usa.cableirchi","usirchigh"),new
j("settings.channelscan.freq.usa.cable","uscable"),new
j("settings.channelscan.freq.usa.cablehrc","ushrc"),new
j("settings.channelscan.freq.usa.cableirc","usirc")],this.countryTable=[new
j("settings.channelscan.country.au","au"),new
j("settings.channelscan.country.cl","cl"),new
j("settings.channelscan.country.cz","cz"),new
j("settings.channelscan.country.dk","dk"),new
j("settings.channelscan.country.fi","fi"),new
j("settings.channelscan.country.fr","fr"),new
j("settings.channelscan.country.de","de"),new
j("settings.channelscan.country.gr","gr"),new
j("settings.channelscan.c
ountry.il","il"),new
j("settings.channelscan.country.it","it"),new
j("settings.channelscan.country.nl","nl"),new
j("settings.channelscan.country.nz","nz"),new
j("settings.channelscan.country.es","es"),new
j("settings.channelscan.country.se","se"),new
j("settings.channelscan.country.gb","gb")],this.networkTable=[new
j("settings.channelscan.country.de","de"),new
j("settings.channelscan.country.nl","nl"),new
j("settings.channelscan.country.gb","gb")],this.satTuningTable=[new
Ar("(Select
Satellite)",0,"h","27500000","qpsk","DVB-S2","auto"),new
Ar("Thor 5/6/7
0.8W",10872e3,"h","25000000","8psk","DVB-S2","3/4"),new
Ar("Eutelsat
7.0E",10721e3,"h","22000000","qpsk","DVB-S","3/4"),new
Ar("Hotbird
13.0E",12015e3,"h","27500000","8psk","DVB-S2","3/4"),new
Ar("Astra-1
19.2E",11229e3,"v","22000000","8psk","DVB-S2","2/3"),new
Ar("Astra-3
23.5E",12031500,"h","27500000","qpsk","DVB-S2","auto"),new
Ar("Astra-2
28.2E",10714e3,"h","22000000","qpsk","DVB-S","5/6")],this.atscModulationTable=[ne
w j("settings.channelscan.modulation.atsc.vsb8","vsb8"),new
j("settings.channelscan.modulation.atsc.qam256","qam256"),new
j("settings.channelscan.modulation.atsc.qam128","qam128"),new
j("settings.channelscan.modulation.atsc.qam64","qam64")],this.bandwidthTable=[new
j("settings.channelscan.auto","a"),new j("6
MHz","6"),new j("7 MHz","7"),new j("8
MHz","8")],this.inversionTable=[new
j("settings.channelscan.auto","a"),new
j("settings.channelscan.on","1"),new
j("settings.channelscan.off","0")],this.modulationTable=[new
j("settings.channelscan.auto","auto"),new
j("QPSK","qpsk"),new j("QAM-16","qam_16"),new
j("QAM-32","qam_32"),new j("QAM-64","qam_64"),new
j("QAM-128","qam_128"),new
j("QAM-256","qam_256")],this.dvbsModulationTable=[new
j("QPSK","qpsk"),new j("8PSK","8psk"),new
j("QAM-16","qam_16"),new j("16PSK","16psk"),new
j("32PSK","32psk")],this.dvbtModSysTable=[new
j("DVB-T","DVB-T"),new
j("DVB-T2","DVB-T2")],this.dvbcModSysTable=[new
j("DVB-C/A","DVB-C/A"),new
j("DVB-C/B","DVB-C/B"),
new j("DVB-C/C","DVB-C/C")],this.dvbsModSysTable=[new
j("DVB-S","DVB-S"),new
j("DVB-S2","DVB-S2")],this.polarityTable=[new
j("settings.channelscan.polarity.horizontal","h"),new
j("settings.channelscan.polarity.vertical","v"),new
j("settings.channelscan.polarity.right","r"),new
j("settings.channelscan.polarity.left","l")],this.fecTable=[new
j("settings.channelscan.auto","auto"),new
j("settings.channelscan.none","none"),new
j("1/2","1/2"),new j("2/3","2/3"),new
j("3/4","3/4"),new j("4/5","4/5"),new
j("5/6","5/6"),new j("6/2","6/2"),new
j("7/8","7/8"),new j("8/9","8/9"),new
j("3/5","3/5"),new
j("9/10","9/10")],this.transmissionModeTable=[new
j("settings.channelscan.auto","a"),new
j("2K","2"),new
j("8K","8")],this.guardIntervalTable=[new
j("settings.channelscan.auto","auto"),new
j("1/4","1/4"),new j("1/8","1/8"),new
j("1/16","1/16"),new
j("1/32","1/32")],this.hierarchyTable=[new
j("settings.channelscan.auto","a"),new
j("settings.channelscan.none","n"),new
j("1","1"),new j("2","2"),new j
("4","4")],this.dvbcSymbolRateTable=[new
j("3450000","3450000"),new
j("5000000","5000000"),new
j("5900000","5900000"),new
j("6875000","6875000"),new
j("6900000","6900000"),new
j("6950000","6950000")],this.dvbsSymbolRateTable=[new
j("3333000","3333000"),new
j("22000000","22000000"),new
j("22500000","22500000"),new
j("23000000","23000000"),new
j("27500000","27500000"),new
j("28000000","28000000"),new
j("28500000","28500000"),new
j("29500000","29500000"),new
j("29700000","29700000"),new
j("29900000","29900000")],this.rollOffTable=[new
j("0.35","0.35"),new j("0.20","0.20"),new
j("0.25","0.25"),new
j("Auto","auto")],this.lockDesc="settings.channelscan.lock_value",this.nolockDesc="settings.channelscan.nolock_value",this.procDesc="processed",this.unprocDesc="unprocessed",this.satTuning=this.satTuningTable[0],this.scanRequest={CardId:0,DesiredServices:"tv",FreeToAirOnly:!0,ChannelNumbersOnly:!1,CompleteChannelsOnly:!0,FullChannelSearch:!0,RemoveDuplicates:!0,AddFullTS:!1,TestDecryptable:!1,
ScanType:"",FreqTable:"",Modulation:"",FirstChan:"",LastChan:"",ScanId:0,IgnoreSignalTimeout:!1,FollowNITSetting:!1,MplexId:0,Frequency:0,Bandwidth:"",Polarity:"",SymbolRate:"",Inversion:"",Constellation:"",ModSys:"",CodeRateLP:"",CodeRateHP:"",FEC:"",TransmissionMode:"",GuardInterval:"",Hierarchy:"",RollOff:""},this.emptyScanStatus={CardId:0,Status:"",SignalLock:!1,Progress:0,SignalNoise:0,SignalStrength:0,StatusLog:"",StatusText:"",StatusTitle:"",DialogMsg:"",DialogInputReq:!1,DialogButtons:[]},this.dialogResponse={CardId:0,DialogString:"",DialogButton:0},this.buttonText="",this.scanStatus=Object.assign({},this.emptyScanStatus),this.channels=[],this.channelCount=1,this.refreshCount=0,this.helpText="",this.scans=[],this.multiplex=[],this.tableTranslate(this.serviceValues),this.tableTranslate(this.freqTableSelect),this.tableTranslate(this.countryTable),this.tableTranslate(this.networkTable),this.tableTranslate(this.atscModulationTable),this.tableTranslate(this.bandwidthTable),this.t
ableTranslate(this.inversionTable),this.tableTranslate(this.modulationTable),this.tableTranslate(this.fecTable),this.tableTranslate(this.transmissionModeTable),this.tableTranslate(this.guardIntervalTable),this.tableTranslate(this.hierarchyTable),this.tableTranslate(this.polarityTable),e.get(this.lockDesc).subscribe(o=>this.lockDesc=o),e.get(this.nolockDesc).subscribe(o=>this.nolockDesc=o)}tableTranslate(e){e.forEach(n=>{n.label.startsWith("settings.")&&this.translate.get(n.label).subscribe(s=>n.label=s)})}ngAfterViewInit(){this.refreshStatus(!1),this.getScanList(),this.getmultiplexList(),this.iconnection.scanComponent=this}ngOnInit(){this.iconnection.deviceFree.subscribe(e=>{this.captureCardService.GetCardSubType(this.card.CardId).subscribe(n=>{this.cardSubType=n.CardSubType,this.buildScanTypeList(),this.onFreqTableChange(!1),"DVBT2"==this.cardSubType.InputType&&(this.scanRequest.ModSys="DVB-T2"),"DVBS2"==this.cardSubType.InputType&&(this.scanRequest.ModSys="DVB-S2"),"DVBC"==this.ca
rdSubType.InputType&&(this.scanRequest.SymbolRate="6900000"),["DVBS","DVBS2"].includes(this.cardSubType.InputType)&&(this.scanRequest.SymbolRate="27500000")})}),this.iconnection.captureDeviceList.CaptureDeviceList.CaptureDevices.length>0&&!this.cardSubType&&this.iconnection.deviceFree.next(!0)}buildScanTypeList(){let
e=!1;switch(this.helpText="",this.scanSubType=this.cardSubType.InputType,this.cardSubType.InputType){case"V4L":case"MPEG":this.scanTypes.push({label:"settings.channelscan.type.full",value:"FULL"}),this.scanTypes.push({label:"settings.channelscan.type.import",value:"IMPORT"});break;case"DVBT":case"DVBT2":this.scanTypes.push({label:"settings.channelscan.type.full",value:"FULL"}),this.scanTypes.push({label:"settings.channelscan.type.fulltuned",value:"FULLTUNED"}),this.scanTypes.push({label:"settings.channelscan.type.import",value:"IMPORT"}),this.helpText="settings.channelscan.scantype_dvbt_desc",e=!0;break;case"DVBC":this.scanTypes.push({label:"settings.channelscan.type.fu
lltuned",value:"FULLTUNED"}),this.scanTypes.push({label:"settings.channelscan.type.full",value:"FULL"}),this.scanTypes.push({label:"settings.channelscan.type.import",value:"IMPORT"}),e=!0;break;case"DVBS":case"DVBS2":this.scanTypes.push({label:"settings.channelscan.type.fulltuned",value:"FULLTUNED"}),this.scanTypes.push({label:"settings.channelscan.type.import",value:"IMPORT"}),e=!0;break;case"ATSC":this.scanTypes.push({label:"settings.channelscan.type.full",value:"FULL"}),this.scanTypes.push({label:"settings.channelscan.type.import",value:"IMPORT"}),e=!0;break;case"HDHOMERUN":this.cardSubType.HDHRdoesDVBC?(this.scanSubType="DVBC",this.scanTypes.push({label:"settings.channelscan.type.fulltuned",value:"FULLTUNED"}),this.scanTypes.push({label:"settings.channelscan.type.full",value:"FULL"}),this.scanTypes.push({label:"settings.channelscan.type.import",value:"IMPORT"})):this.cardSubType.HDHRdoesDVB?(this.scanSubType="DVBT",this.scanTypes.push({label:"settings.channelscan.type.full",valu
e:"FULL"}),this.scanTypes.push({label:"settings.channelscan.type.fulltuned",value:"FULLTUNED"}),this.helpText="settings.channelscan.scantype_dvbt_desc"):(this.scanSubType="ATSC",this.scanTypes.push({label:"settings.channelscan.type.full",value:"FULL"})),this.scanTypes.push({label:"settings.channelscan.type.import",value:"IMPORT"}),this.scanTypes.push({label:"settings.channelscan.type.hdhrimport",value:"HDHRIMPORT"}),e=!0;break;case"VBOX":this.scanTypes.push({label:"settings.channelscan.type.vboximport",value:"VBOXIMPORT"});break;case"FREEBOX":this.scanTypes.push({label:"settings.channelscan.type.m3umpts",value:"MPTSIMPORT"}),this.scanTypes.push({label:"settings.channelscan.type.m3u",value:"M3UIMPORT"});break;case"ASI":this.scanTypes.push({label:"settings.channelscan.type.asi",value:"ASI"});break;case"EXTERNAL":this.scanTypes.push({label:"settings.channelscan.type.mpts",value:"MPTS"}),this.scanTypes.push({label:"settings.channelscan.type.externimport",value:"EXTIMPORT"});break;case"E
RROR_PROBE":this.scanTypes.push({label:"settings.channelscan.type.errorprobe",value:"ERROR"});break;default:this.scanTypes.push({label:"settings.channelscan.type.erroropen",value:"ERROR"})}e&&(this.scanTypes.push({label:"settings.channelscan.type.alltransport",value:"ALLTRANSPORT"}),this.scanTypes.push({label:"settings.channelscan.type.onetransport",value:"ONETRANSPORT"})),this.scanTypes.forEach(n=>this.translate.get(n.label).subscribe(s=>n.label=s)),this.helpText&&this.translate.get(this.helpText).subscribe(n=>this.helpText=n)}onScanTypeChange(){this.scanRequest.Frequency="FULLTUNED"==this.scanRequest.ScanType?this.videoSourceLookup[this.card.SourceId].ScanFrequency:0,setTimeout(()=>this.onFreqTableChange(!1),100)}onFreqTableChange(e){this.channels=[];let
n="";if(this.scanRequest.FreqTable.startsWith("us")){if(e||("us"==this.scanRequest.FreqTable?this.scanRequest.Modulation="vsb8":"vsb8"==this.scanRequest.Modulation&&(this.scanRequest.Modulation="qam256")),"vsb8"==this.scanRequest.
Modulation?n="ATSC Channel
":"qam256"==this.scanRequest.Modulation?n="QAM-256 Channel
":"qam128"==this.scanRequest.Modulation?n="QAM-128 Channel
":"qam64"==this.scanRequest.Modulation&&(n="QAM-64 Channel
"),"us"==this.scanRequest.FreqTable){if("vsb8"==this.scanRequest.Modulation)for(let
s=2;s<=36;s++)this.channels.push(n+s)}else
if(this.scanRequest.FreqTable.match(/us.*high/))for(let
s=78;s<=158;s++)this.channels.push(n+s);else
if(this.scanRequest.FreqTable.match(/^us/)){this.channels.push(n+"T-13"),this.channels.push(n+"T-14");for(let
s=2;s<=158;s++)this.channels.push(n+s)}this.channels.length>0?setTimeout(()=>{this.scanRequest.FirstChan=this.channels[0],this.scanRequest.LastChan=this.channels[this.channels.length-1]},100):(this.scanRequest.FirstChan="",this.scanRequest.LastChan="")}}onSatTuningChange(){Object.assign(this.scanRequest,this.satTuning)}calcCount(){return
this.channelCount=this.channels.findIndex(e=>e==this.scanRequest.LastChan)-this.channels.findIndex(e=>e==this.scanR
equest.FirstChan)+1}getScanList(){this.channelService.GetScanList(this.card.SourceId).subscribe(e=>{this.scans=e.ScanList.Scans,this.scans.forEach(n=>{var
s=new Date(n.ScanDate);n.label=s.toLocaleDateString()+"
"+s.toLocaleTimeString()+"
"+(n.Processed?this.procDesc:this.unprocDesc)})})}getmultiplexList(){this.channelService.GetVideoMultiplexList({SourceID:this.card.SourceId}).subscribe(e=>{this.multiplex=e.VideoMultiplexList.VideoMultiplexes})}startScan(){if(this.iconnection.currentForm&&this.iconnection.currentForm.form.dirty)return
this.iconnection.work.startScan=!0,void
this.iconnection.saveForm();this.scanRequest.CardId=this.card.CardId,this.channelService.StartScan(this.scanRequest).subscribe(e=>{setTimeout(()=>this.refreshStatus(!0),500)})}stopScan(){this.channelService.StopScan(this.card.CardId).subscribe()}respondDialog(){this.dialogResponse.CardId=this.card.CardId,this.dialogResponse.DialogButton=this.scanStatus.DialogButtons.indexOf(this.buttonText),this.channelService.Se
ndScanDialogResponse(this.dialogResponse).subscribe(e=>this.iconnection.loadChannels())}refreshStatus(e){this.channelService.GetScanStatus().subscribe(n=>{this.scanStatus=n.ScanStatus,this.scrollpanel.scrollTop(1e5),"RUNNING"==this.scanStatus.Status?this.refreshCount=5:this.refreshCount--,this.refreshCount>0?setTimeout(()=>this.refreshStatus(!0),500):e&&this.iconnection.loadChannels()})}}return
t.\u0275fac=function(e){return
new(e||t)(D(Oe),D(Or),D(Gt),D(Me))},t.\u0275cmp=z({type:t,selectors:[["app-channelscan"]],viewQuery:function(e,n){if(1&e&&W(Hse,5),2&e){let
s;V(s=B())&&(n.scrollpanel=s.first)}},inputs:{card:"card",cardList:"cardList",iconnection:"iconnection",videoSourceLookup:"videoSourceLookup"},decls:131,vars:137,consts:[[1,"form-group","field"],["for","DesiredServices",1,"label","block"],["optionLabel","label","optionValue","value","name","DesiredServices",3,"options","ngModel","editable","maxlength","ngModelChange"],["DesiredServices","ngModel"],[1,"block"],["inputId","Fre
eToAirOnly","name","FreeToAirOnly",1,"label","mb-2","w-full",3,"ngModel","binary","label","ngModelChange"],["FreeToAirOnly","ngModel"],["inputId","ChannelNumbersOnly","name","ChannelNumbersOnly",1,"label","mb-2","w-full",3,"ngModel","binary","label","ngModelChange"],["ChannelNumbersOnly","ngModel"],["inputId","CompleteChannelsOnly","name","CompleteChannelsOnly",1,"label","mb-2","w-full",3,"ngModel","binary","label","ngModelChange"],["CompleteChannelsOnly","ngModel"],["inputId","FullChannelSearch","name","FullChannelSearch",1,"label","mb-2","w-full",3,"ngModel","binary","label","ngModelChange"],["FullChannelSearch","ngModel"],["inputId","RemoveDuplicates","name","RemoveDuplicates",1,"label","mb-2","w-full",3,"ngModel","binary","label","ngModelChange"],["RemoveDuplicates","ngModel"],["inputId","AddFullTS","name","AddFullTS",1,"label","mb-2","w-full",3,"ngModel","binary","label","ngModelChange"],["AddFullTS","ngModel"],["inputId","TestDecryptable","name","TestDecryptable",1,"label","mb
-2","w-full",3,"ngModel","binary","label","ngModelChange"],["TestDecryptable","ngModel"],["for","ScanType",1,"label","block"],["optionLabel","label","optionValue","value","name","ScanType",3,"options","ngModel","editable","maxlength","ngModelChange","onChange"],["ScanType","ngModel"],["class","mb-4
w-full",3,"legend","toggleable","collapsed",4,"ngIf"],[1,"grid"],[2,"display","flex","align-items","center"],["icon","pi
pi-play","iconPos","left",3,"label","disabled","onClick"],["class","block",4,"ngIf"],[1,"mb-4","w-full",3,"legend","collapsed","toggleable"],[1,"col-6"],[1,"col-10","bg-blue-100","text-gray-900"],[1,"label","block"],[1,"col-10"],[3,"value"],["class","form-group
field",4,"ngIf"],["icon","pi
pi-times-circle","iconPos","left","styleClass","p-button-danger",3,"label","disabled","onClick"],[1,"col-6",2,"white-space","pre-line"],["scroll",""],[1,"mb-4","w-full",3,"legend","toggleable","collapsed"],["for","FreqTable",1,"label","block"],["optionLabel","label","optionValue","val
ue","name","FreqTable",3,"options","ngModel","editable","maxlength","ngModelChange","onChange"],["FreqTable","ngModel"],["for","Country",1,"label","block"],["optionLabel","label","optionValue","value","name","Country",3,"options","ngModel","editable","maxlength","ngModelChange"],["Country","ngModel"],["for","atscModulation",1,"label","block"],["optionLabel","label","optionValue","value","name","atscModulation",3,"options","ngModel","editable","maxlength","ngModelChange","onChange"],["atscModulation","ngModel"],["for","FirstChan",1,"label","block"],["name","FirstChan",3,"options","ngModel","editable","maxlength","ngModelChange"],["FirstChan","ngModel"],[4,"ngIf"],[1,"p-error","block"],["for","LastChan",1,"label","block"],["name","LastChan",3,"options","ngModel","editable","maxlength","ngModelChange"],["LastChan","ngModel"],["for","Frequency",1,"label","block"],["name","Frequency","id","Frequency",3,"ngModel","min","max","ngModelChange"],[3,"translate","translateParams"],["for","Inver
sion",1,"label","block"],["name","Inversion","optionLabel","label","optionValue","value",3,"options","ngModel","editable","maxlength","ngModelChange"],["Inversion","ngModel"],["for","SatTuning",1,"label","block"],["name","SatTuning","optionLabel","label",3,"options","ngModel","editable","maxlength","ngModelChange","onChange"],["SatTuning","ngModel"],["for","Bandwidth",1,"label","block"],["name","Bandwidth","optionLabel","label","optionValue","value",3,"options","ngModel","editable","maxlength","ngModelChange"],["Bandwidth","ngModel"],["for","Polarity",1,"label","block"],["name","Polarity","optionLabel","label","optionValue","value",3,"options","ngModel","editable","maxlength","ngModelChange"],["Polarity","ngModel"],["for","dvbcSymbolRate",1,"label","block"],["name","dvbcSymbolRate","optionLabel","label","optionValue","value",3,"options","ngModel","editable","maxlength","ngModelChange"],["dvbcSymbolRate","ngModel"],["for","dvbsSymbolRate",1,"label","block"],["name","dvbsSymbolRate","
optionLabel","label","optionValue","value",3,"options","ngModel","editable","maxlength","ngModelChange"],["dvbsSymbolRate","ngModel"],["for","Constellation",1,"label","block"],["name","Constellation","optionLabel","label","optionValue","value",3,"options","ngModel","editable","maxlength","ngModelChange"],["Constellation","ngModel"],["for","Modulation",1,"label","block"],["name","Modulation","optionLabel","label","optionValue","value",3,"options","ngModel","editable","maxlength","ngModelChange"],["Modulation","ngModel"],["for","DVBSModulation",1,"label","block"],["name","DVBSModulation","optionLabel","label","optionValue","value",3,"options","ngModel","editable","maxlength","ngModelChange"],["DVBSModulation","ngModel"],["for","DVBTModSys",1,"label","block"],["name","DVBTModSys","optionLabel","label","optionValue","value",3,"options","ngModel","editable","maxlength","ngModelChange"],["DVBTModSys","ngModel"],["for","DVBCModSys",1,"label","block"],["name","DVBCModSys","optionLabel","lab
el","optionValue","value",3,"options","ngModel","editable","maxlength","ngModelChange"],["DVBCModSys","ngModel"],["for","DVBSModSys",1,"label","block"],["name","DVBSModSys","optionLabel","label","optionValue","value",3,"options","ngModel","editable","maxlength","ngModelChange"],["DVBSModSys","ngModel"],["for","CodeRateLP",1,"label","block"],["name","CodeRateLP","optionLabel","label","optionValue","value",3,"options","ngModel","editable","maxlength","ngModelChange"],["CodeRateLP","ngModel"],["for","CodeRateHP",1,"label","block"],["name","CodeRateHP","optionLabel","label","optionValue","value",3,"options","ngModel","editable","maxlength","ngModelChange"],["CodeRateHP","ngModel"],["for","FEC",1,"label","block"],["name","FEC","optionLabel","label","optionValue","value",3,"options","ngModel","editable","maxlength","ngModelChange"],["FEC","ngModel"],["for","TransmissionMode",1,"label","block"],["name","TransmissionMode","optionLabel","label","optionValue","value",3,"options","ngModel","ed
itable","maxlength","ngModelChange"],["TransmissionMode","ngModel"],["for","GuardInterval",1,"label","block"],["name","GuardInterval","optionLabel","label","optionValue","value",3,"options","ngModel","editable","maxlength","ngModelChange"],["GuardInterval","ngModel"],["for","Hierarchy",1,"label","block"],["name","Hierarchy","optionLabel","label","optionValue","value",3,"options","ngModel","editable","maxlength","ngModelChange"],["Hierarchy","ngModel"],["for","RollOff",1,"label","block"],["name","RollOff","optionLabel","label","optionValue","value",3,"options","ngModel","editable","maxlength","ngModelChange"],["RollOff","ngModel"],["for","ScanId",1,"label","block"],["optionLabel","label","optionValue","ScanId","name","ScanId",3,"options","ngModel","editable","maxlength","ngModelChange"],["ScanId","ngModel"],["inputId","IgnoreSignalTimeout","name","IgnoreSignalTimeout",1,"label","mb-2","w-full",3,"ngModel","binary","label","ngModelChange"],["IgnoreSignalTimeout","ngModel"],["inputId",
"FollowNITSetting","name","FollowNITSetting",1,"label","mb-2","w-full",3,"ngModel","binary","label","ngModelChange"],["FollowNITSetting","ngModel"],["for","MplexId",1,"label","block"],["optionLabel","Description","optionValue","MplexId","name","MplexId",3,"options","ngModel","editable","maxlength","ngModelChange"],["MplexId","ngModel"],[1,"col-10",2,"color","black","background-color","pink"],["pInputText","","id","DialogString","name","DialogString",1,"mb-2","form-control","w-full",3,"ngModel","ngModelChange"],["InputName","ngModel"],["for","DialogButtons",1,"label","block"],["name","DialogButtons",3,"options","ngModel","editable","maxlength","ngModelChange"],["styleClass","p-button-info",1,"gap-3",3,"label","onClick"]],template:function(e,n){1&e&&(l(0,"div",0)(1,"label",1),g(2),m(3,"translate"),c(),l(4,"p-dropdown",2,3),C("ngModelChange",function(r){return
n.scanRequest.DesiredServices=r}),c(),l(6,"small",4),g(7),m(8,"translate"),c()(),l(9,"div",0)(10,"p-checkbox",5,6),C("ngModelCh
ange",function(r){return
n.scanRequest.FreeToAirOnly=r}),m(12,"translate"),c(),l(13,"small",4),g(14),m(15,"translate"),c()(),l(16,"div",0)(17,"p-checkbox",7,8),C("ngModelChange",function(r){return
n.scanRequest.ChannelNumbersOnly=r}),m(19,"translate"),c(),l(20,"small",4),g(21),m(22,"translate"),c()(),l(23,"div",0)(24,"p-checkbox",9,10),C("ngModelChange",function(r){return
n.scanRequest.CompleteChannelsOnly=r}),m(26,"translate"),c(),l(27,"small",4),g(28),m(29,"translate"),c()(),l(30,"div",0)(31,"p-checkbox",11,12),C("ngModelChange",function(r){return
n.scanRequest.FullChannelSearch=r}),m(33,"translate"),c(),l(34,"small",4),g(35),m(36,"translate"),c()(),l(37,"div",0)(38,"p-checkbox",13,14),C("ngModelChange",function(r){return
n.scanRequest.RemoveDuplicates=r}),m(40,"translate"),c(),l(41,"small",4),g(42),m(43,"translate"),c()(),l(44,"div",0)(45,"p-checkbox",15,16),C("ngModelChange",function(r){return
n.scanRequest.AddFullTS=r}),m(47,"translate"),c(),l(48,"small",4),g(49),m(50,"translat
e"),c()(),l(51,"div",0)(52,"p-checkbox",17,18),C("ngModelChange",function(r){return
n.scanRequest.TestDecryptable=r}),m(54,"translate"),c(),l(55,"small",4),g(56),m(57,"translate"),c()(),l(58,"div",0)(59,"label",19),g(60),m(61,"translate"),c(),l(62,"p-dropdown",20,21),C("ngModelChange",function(r){return
n.scanRequest.ScanType=r})("onChange",function(){return
n.onScanTypeChange()}),c(),l(64,"small",4),g(65),c()(),_(66,Jse,9,13,"p-fieldset",22),_(67,_re,36,57,"p-fieldset",22),_(68,bre,9,15,"p-fieldset",22),_(69,Cre,17,22,"p-fieldset",22),k(70,"br")(71,"br"),l(72,"div",0)(73,"div",23)(74,"div",24)(75,"p-button",25),C("onClick",function(){return
n.startScan()}),m(76,"translate"),c()()(),_(77,yre,3,3,"small",26),c(),l(78,"p-fieldset",27),m(79,"translate"),l(80,"div",23)(81,"div",28)(82,"div",0)(83,"div",29)(84,"b"),g(85),c()()(),l(86,"div",0)(87,"label",30),g(88),m(89,"translate"),c(),l(90,"div",29),g(91),c()(),l(92,"div",0)(93,"label",30),g(94),m(95,"translate"),c(),l(96,"div",29),g(97)
,c()(),l(98,"div",0)(99,"label",30),g(100),m(101,"translate"),c(),l(102,"div",31),k(103,"p-progressBar",32),c()(),l(104,"div",0)(105,"label",30),g(106),m(107,"translate"),c(),l(108,"div",31),k(109,"p-progressBar",32),c()(),l(110,"div",0)(111,"label",30),g(112),m(113,"translate"),c(),l(114,"div",31),k(115,"p-progressBar",32),c()(),k(116,"br"),_(117,wre,6,1,"div",33),_(118,Tre,3,1,"div",33),_(119,Sre,6,10,"div",33),_(120,xre,3,3,"div",33),k(121,"br"),l(122,"div",0)(123,"div",24)(124,"p-button",34),C("onClick",function(){return
n.stopScan()}),m(125,"translate"),c()(),k(126,"small",4),c()(),l(127,"div",35)(128,"p-scrollPanel",null,36),g(130),c()()()()),2&e&&(a(2),S(f(3,81,"settings.channelscan.services_label")),a(2),q(A(131,ht)),p("options",n.serviceValues)("ngModel",n.scanRequest.DesiredServices)("editable",!1)("maxlength",0),a(3),T("
",f(8,83,"settings.channelscan.services_desc"),"
"),a(3),x("label",f(12,85,"settings.channelscan.ftaonly_label")),p("ngModel",n.scanRequest.FreeToAirOnly
)("binary",!0),a(4),T("
",f(15,87,"settings.channelscan.ftaonly_desc"),"
"),a(3),x("label",f(19,89,"settings.channelscan.channelnumbersonly_label")),p("ngModel",n.scanRequest.ChannelNumbersOnly)("binary",!0),a(4),T("
",f(22,91,"settings.channelscan.channelnumbersonly_desc"),"
"),a(3),x("label",f(26,93,"settings.channelscan.completeonly_label")),p("ngModel",n.scanRequest.CompleteChannelsOnly)("binary",!0),a(4),T("
",f(29,95,"settings.channelscan.completeonly_desc"),"
"),a(3),x("label",f(33,97,"settings.channelscan.fullsearch_label")),p("ngModel",n.scanRequest.FullChannelSearch)("binary",!0),a(4),T("
",f(36,99,"settings.channelscan.fullsearch_desc"),"
"),a(3),x("label",f(40,101,"settings.channelscan.removeduplicates_label")),p("ngModel",n.scanRequest.RemoveDuplicates)("binary",!0),a(4),T("
",f(43,103,"settings.channelscan.removeduplicates_desc"),"
"),a(3),x("label",f(47,105,"settings.channelscan.addfullts_label")),p("ngModel",n.scanRequest.AddFullTS)("binary",!0),a(4),T("
",f(50,107,"
settings.channelscan.addfullts_desc"),"
"),a(3),x("label",f(54,109,"settings.channelscan.testdecryptable_label")),p("ngModel",n.scanRequest.TestDecryptable)("binary",!0),a(4),T("
",f(57,111,"settings.channelscan.testdecryptable_desc"),"
"),a(4),S(f(61,113,"settings.channelscan.scantype_label")),a(2),q(A(132,ht)),p("options",n.scanTypes)("ngModel",n.scanRequest.ScanType)("editable",!1)("maxlength",0),a(3),T("
",n.helpText,"
"),a(1),p("ngIf","FULL"==n.scanRequest.ScanType),a(1),p("ngIf","FULLTUNED"==n.scanRequest.ScanType),a(1),p("ngIf","IMPORT"==n.scanRequest.ScanType),a(1),p("ngIf","ALLTRANSPORT"==n.scanRequest.ScanType||"ONETRANSPORT"==n.scanRequest.ScanType),a(6),x("label",f(76,115,"settings.channelscan.scan_label")),p("disabled",n.setupService.schedulingEnabled||"RUNNING"==n.scanStatus.Status||!n.card.SourceId),a(2),p("ngIf",n.iconnection.currentForm&&n.iconnection.currentForm.form.dirty||!n.card.SourceId),a(1),x("legend",f(79,117,"settings.channelscan.status_title")),p("collapse
d",!0)("toggleable",!1)("collapsed",!1),a(7),T("",n.scanStatus.StatusTitle,"
\xa0"),a(3),S(f(89,119,"settings.channelscan.status_label")),a(3),T("
",n.scanStatus.StatusText," \xa0
"),a(3),S(f(95,121,"settings.channelscan.lock_label")),a(3),T("
",n.scanStatus.SignalLock?n.lockDesc:n.nolockDesc," \xa0
"),a(3),S(f(101,123,"settings.channelscan.progress_label")),a(3),q(A(133,Sg)),p("value",n.scanStatus.Progress),a(3),S(f(107,125,"settings.channelscan.noise_label")),a(3),q(A(134,Sg)),p("value",n.scanStatus.SignalNoise),a(3),S(f(113,127,"settings.channelscan.strength_label")),a(3),q(A(135,Sg)),p("value",n.scanStatus.SignalStrength),a(2),p("ngIf",n.scanStatus.DialogMsg),a(1),p("ngIf",n.scanStatus.DialogInputReq),a(1),p("ngIf",n.scanStatus.DialogButtons.length>0),a(1),p("ngIf",n.scanStatus.DialogButtons.length>0||n.scanStatus.DialogInputReq),a(4),x("label",f(125,129,"settings.channelscan.stop_label")),p("disabled","RUNNING"!=n.scanStatus.Status||n.scanStatus.DialogButtons.length>0),a(4),q(A
(136,Dre)),a(2),T(" ",n.scanStatus.StatusLog,"
"))},directives:[Ot,Te,_e,_n,sn,Q,Ui,pt,mu,ve,tz,Ye,K2],pipes:[ce],styles:[""]}),t})(),kre=(()=>{class
t{constructor(e){this.httpClient=e}GetBackendStatus(){return
this.httpClient.get("/Status/GetBackendStatus")}}return
t.\u0275fac=function(e){return
new(e||t)(K(Bi))},t.\u0275prov=X({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();var
ci=(()=>(function(t){t[t.kState_Error=-1]="kState_Error",t[t.kState_None=0]="kState_None",t[t.kState_WatchingLiveTV=1]="kState_WatchingLiveTV",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"}(ci||(ci={})),ci))();let
cs=(()=>{class t{constructor(e){this.translate=e,this.allSlashes=new Reg
Exp(/\//g),this.deSpacer=new RegExp(/ /g),this.recTypeTrans={"Single
Record":"","Record All":"","Record
One":"","Record Daily":"","Record
Weekly":"","Override Recording":"","Do not
Record":"","Recording Template":"","Not
Recording":""};for(const[n,s]of Object.entries(this.recTypeTrans)){const
r="recrule."+n.replace(this.deSpacer,"");this.translate.get(r).subscribe(o=>{Object.defineProperty(this.recTypeTrans,n,{value:o})})}}formatDate(e,n){if(!e)return"";10==e.length&&(e+="
00:00");let s=new Date(e).toLocaleDateString();return
n?s.replace(this.allSlashes,"/<wbr>"):s}formatTime(e){return e?(new
Date(e).toLocaleTimeString()+" ").replace(/:..
/,""):""}formatDateTime(e,n){return this.formatDate(e,n)+"
"+this.formatTime(e)}}return t.\u0275fac=function(e){return
new(e||t)(K(Oe))},t.\u0275prov=X({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();const
Ire=function(t){return{EndTime:t}};function
Ere(t,i){if(1&t&&(de(0),g(1),m(2,"translate"),pe()),2&t){const
e=d().$implicit,n=d(2);a(1),yo
(" '",e.Recording.Title,"' on
",e.Recording.Channel.CallSign,".
",Dt(2,3,"dashboard.status.endtime_text",U(6,Ire,n.utility.formatTime(e.Recording.EndTime))),"
")}}const
Rre=function(t,i,e,n){return{CardId:t,Id:i,InputName:e,DisplayName:n}};function
Lre(t,i){if(1&t&&(l(0,"div")(1,"ul")(2,"li"),g(3),m(4,"translate"),c()()()),2&t){const
e=i.$implicit;a(3),T("",Dt(4,1,"dashboard.status.card_text",qn(4,Rre,e.CardId,e.Id,e.InputName,e.DisplayName)),"
")}}const Ore=function(t,i,e){return{Id:t,HostName:i,State:e}};function
Are(t,i){if(1&t&&(l(0,"div")(1,"ul")(2,"li"),g(3),m(4,"translate"),_(5,Ere,3,8,"ng-container",4),c(),_(6,Lre,5,9,"div",3),c()()),2&t){const
e=i.$implicit,n=d(2);a(3),T("
",Dt(4,3,"dashboard.status.encoder_text",Qt(6,Ore,e.Id,e.HostName,n.EncoderStatusText(e.State))),"
"),a(2),p("ngIf",7==e.State),a(1),p("ngForOf",e.Inputs)}}function
Pre(t,i){if(1&t&&(l(0,"div"),_(1,Are,7,10,"div",3),c()),2&t){const
e=d();a(1),p("ngForOf",e.encoders)}}function
Fre(t,i){1&t&&(l(0,"div"),g(1
),m(2,"translate"),c()),2&t&&(a(1),S(f(2,1,"dashboard.status.no_encoders")))}let
Nre=(()=>{class
t{constructor(e){this.utility=e}ngOnInit(){}EncoderStatusText(e){switch(e){case
ci.kState_Error:return"Error";case ci.kState_None:return"Idle";case
ci.kState_WatchingLiveTV:return"Watching Live TV";case
ci.kState_WatchingPreRecorded:return"Watching Pre Recorded";case
ci.kState_WatchingVideo:return"Watching Video";case
ci.kState_WatchingDVD:return"Watching DVD";case
ci.kState_WatchingBD:return"Watching BD";case
ci.kState_WatchingRecording:return"Watching Recording";case
ci.kState_RecordingOnly:return"Recording";case
ci.kState_ChangingState:return"Changing
State";default:return"unknown"}}}return t.\u0275fac=function(e){return
new(e||t)(D(cs))},t.\u0275cmp=z({type:t,selectors:[["app-status-encoders"]],inputs:{encoders:"encoders"},decls:7,vars:5,consts:[[1,"statusBox"],[4,"ngIf","ngIfElse"],["noEncoders",""],[4,"ngFor","ngForOf"],[4,"ngIf"]],template:function(e,n){if(1&e&&(l(0,"div",0)(1,"h2
"),g(2),m(3,"translate"),c(),_(4,Pre,2,1,"div",1),c(),_(5,Fre,3,3,"ng-template",null,2,we)),2&e){const
s=F(6);a(2),S(f(3,3,"dashboard.status.encoder_title")),a(2),p("ngIf",0!=(null==n.encoders?null:n.encoders.length))("ngIfElse",s)}},directives:[Q,at],pipes:[ce],styles:["","div.statusBox[_ngcontent-%COMP%]{width:auto;border-top:1px
solid var(--text-color);border-right:1px solid var(--text-color);border-bottom:1px solid
var(--text-color);border-left:10px solid var(--text-color);padding:10px;border-radius:8px
0 0 8px;margin:20px}"]}),t})();function
Vre(t,i){if(1&t&&(l(0,"li",4)(1,"div",5),g(2),c()()),2&t){const
e=i.$implicit,n=d(2);a(1),x("pTooltip",e.Description),a(1),Ih("
",n.utility.formatDate(e.StartTime),"
",n.utility.formatTime(e.StartTime)," - ",e.Recording.EncoderId," -
",e.Channel.CallSign," - ",e.Title," ")}}const
Bre=function(t){return{length:t}};function
Hre(t,i){if(1&t&&(l(0,"div")(1,"p"),g(2),m(3,"translate"),c(),l(4,"ul"),_(5,Vre,3,6,"li",3),c()()),2&t){const
e=d();a(2)
,S(Dt(3,2,"dashboard.status.schedule_text",U(5,Bre,null==e.scheduled?null:e.scheduled.length))),a(3),p("ngForOf",e.scheduled)}}function
qre(t,i){1&t&&(l(0,"p"),g(1),m(2,"translate"),c()),2&t&&(a(1),S(f(2,1,"dashboard.status.schedule_none")))}let
Gre=(()=>{class t{constructor(e){this.utility=e}ngOnInit(){}}return
t.\u0275fac=function(e){return
new(e||t)(D(cs))},t.\u0275cmp=z({type:t,selectors:[["app-status-scheduled"]],inputs:{scheduled:"scheduled"},decls:7,vars:5,consts:[[1,"statusBox"],[4,"ngIf","ngIfElse"],["noSchedule",""],["class","flex",4,"ngFor","ngForOf"],[1,"flex"],["tooltipPosition","bottom",3,"pTooltip"]],template:function(e,n){if(1&e&&(l(0,"div",0)(1,"h2"),g(2),m(3,"translate"),c(),_(4,Hre,6,7,"div",1),c(),_(5,qre,3,3,"ng-template",null,2,we)),2&e){const
s=F(6);a(2),S(f(3,3,"dashboard.status.schedule_title")),a(2),p("ngIf",0!=(null==n.scheduled?null:n.scheduled.length))("ngIfElse",s)}},directives:[Q,at,Kt],pipes:[ce],styles:["","div.statusBox[_ngcontent-%COMP%]{width:auto
;border-top:1px solid var(--text-color);border-right:1px solid
var(--text-color);border-bottom:1px solid var(--text-color);border-left:10px solid
var(--text-color);padding:10px;border-radius:8px 0 0
8px;margin:20px}"]}),t})();function
Ure(t,i){if(1&t&&(l(0,"div")(1,"p"),g(2),m(3,"translate"),c()()),2&t){const
e=i.$implicit,n=d(2);a(2),Eh("",n.utility.formatDate(e.StatusTime),"
",n.utility.formatTime(e.StatusTime)," - ",e.Program.Title," -
",e.LocalizedJobName," -
",f(3,6,"dashboard.status.jobs_status"),":
",e.LocalizedStatus," ")}}function
zre(t,i){if(1&t&&(l(0,"div")(1,"p"),g(2),m(3,"translate"),c(),l(4,"ul"),_(5,Ure,4,8,"div",3),c()()),2&t){const
e=d();a(2),T("",f(3,2,"dashboard.status.jobs_text"),":"),a(3),p("ngForOf",e.jobqueue)}}function
jre(t,i){1&t&&(l(0,"p"),g(1),m(2,"translate"),c()),2&t&&(a(1),S(f(2,1,"dashboard.status.jobs_none")))}let
$re=(()=>{class t{constructor(e){this.utility=e}ngOnInit(){}}return
t.\u0275fac=function(e){return new(e||t)(D(cs))},t.\u0275cmp=z({type:t
,selectors:[["app-status-jobqueue"]],inputs:{jobqueue:"jobqueue"},decls:7,vars:5,consts:[[1,"statusBox"],[4,"ngIf","ngIfElse"],["noJobs",""],[4,"ngFor","ngForOf"]],template:function(e,n){if(1&e&&(l(0,"div",0)(1,"h2"),g(2),m(3,"translate"),c(),_(4,zre,6,4,"div",1),c(),_(5,jre,3,3,"ng-template",null,2,we)),2&e){const
s=F(6);a(2),S(f(3,3,"dashboard.status.jobs_title")),a(2),p("ngIf",0!=(null==n.jobqueue?null:n.jobqueue.length))("ngIfElse",s)}},directives:[Q,at],pipes:[ce],styles:["","div.statusBox[_ngcontent-%COMP%]{width:auto;border-top:1px
solid var(--text-color);border-right:1px solid var(--text-color);border-bottom:1px solid
var(--text-color);border-left:10px solid var(--text-color);padding:10px;border-radius:8px
0 0 8px;margin:20px}"]}),t})();function
Wre(t,i){if(1&t&&(l(0,"div")(1,"p"),g(2),m(3,"translate"),c(),l(4,"ul")(5,"li"),g(6),m(7,"translate"),c(),l(8,"ul")(9,"li"),g(10),m(11,"translate"),c(),l(12,"li"),g(13),m(14,"translate"),c(),l(15,"li"),g(16),m(17,"translate"),c(),l(1
8,"li"),g(19),m(20,"translate"),c(),l(21,"ul")(22,"li"),g(23),m(24,"translate"),c(),l(25,"li"),g(26),m(27,"translate"),c(),l(28,"li"),g(29),m(30,"translate"),c()()()()()),2&t){const
e=i.ngIf;a(2),T("",f(3,16,"dashboard.status.mach.disk_summ"),":"),a(4),T("",f(7,18,"dashboard.status.mach.disk_total"),":"),a(4),We("",f(11,20,"dashboard.status.mach.total_space"),":
",e.Total.toLocaleString(),"
MiB"),a(3),We("",f(14,22,"dashboard.status.mach.space_used"),":
",e.Used.toLocaleString(),"
MiB"),a(3),We("",f(17,24,"dashboard.status.mach.space_free"),":
",e.Free.toLocaleString(),"
MiB"),a(3),We("",f(20,26,"dashboard.status.mach.space_after_expire"),":
",(e.Free+e.Expirable).toLocaleString(),""),a(4),We("",f(24,28,"dashboard.status.mach.space_livetv"),":
",e.LiveTV.toLocaleString(),"
MiB"),a(3),We("",f(27,30,"dashboard.status.mach.space_deleted"),":
",e.Deleted.toLocaleString(),"
MiB"),a(3),We("",f(30,32,"dashboard.status.mach.space_expirable"),":
",e.Expirable.toLocaleString()," MiB")}}functi
on Kre(t,i){1&t&&Y(0)}function
Qre(t,i){if(1&t&&(l(0,"div"),_(1,Kre,1,0,"ng-container",6),c()),2&t){const
e=i.$implicit;d(2);const
n=F(10);a(1),p("ngTemplateOutlet",n)("ngTemplateOutletContext",e)}}const
Jre=function(t,i,e){return{GuideStart:t,GuideEnd:i,GuideStatus:e}},Yre=function(t){return{GuideNext:t}},Zre=function(t,i){return{GuideThru:t,GuideDays:i}};function
Xre(t,i){if(1&t&&(l(0,"div")(1,"div")(2,"p"),g(3),m(4,"translate"),c(),l(5,"ul")(6,"li"),g(7),m(8,"translate"),c(),l(9,"li"),g(10),m(11,"translate"),c(),l(12,"li"),g(13),m(14,"translate"),c()()(),_(15,Wre,31,34,"div",1),l(16,"div")(17,"p"),g(18),m(19,"translate"),c(),_(20,Qre,2,2,"div",5),c(),l(21,"div")(22,"p"),g(23),m(24,"translate"),k(25,"br"),g(26),m(27,"translate"),k(28,"br"),g(29),m(30,"translate"),c()()()),2&t){const
e=d(),n=F(8);a(3),S(f(4,14,"dashboard.status.mach.load")),a(4),We("1
",f(8,16,"dashboard.status.mach.minute"),":
",e.machineinfo.LoadAvg1.toLocaleString(),""),a(3),We("5
",f(11,18,"dashboard.status.mac
h.minutes"),":
",e.machineinfo.LoadAvg2.toLocaleString(),""),a(3),We("15
",f(14,20,"dashboard.status.mach.minutes"),":
",e.machineinfo.LoadAvg3.toLocaleString(),""),a(2),p("ngIf",e.getStorageGroupTotal(e.machineinfo.StorageGroups))("ngIfElse",n),a(3),T("",f(19,22,"dashboard.status.mach.disk_details"),":"),a(2),p("ngForOf",e.getStorageGroupDetails(e.machineinfo.StorageGroups)),a(3),S(Dt(24,24,"dashboard.status.mach.mythfill_last",Qt(33,Jre,e.utility.formatDateTime(e.machineinfo.GuideStart),e.utility.formatDateTime(e.machineinfo.GuideEnd),e.machineinfo.GuideStatus))),a(3),T("
",Dt(27,27,"dashboard.status.mach.mythfill_next",U(37,Yre,e.utility.formatDateTime(e.machineinfo.GuideNext))),""),a(3),T("
",Dt(30,30,"dashboard.status.mach.mythfill_until",Ge(39,Zre,e.utility.formatDateTime(e.machineinfo.GuideThru),e.machineinfo.GuideDays)),"
")}}function
eoe(t,i){1&t&&(l(0,"p"),g(1),m(2,"translate"),c()),2&t&&(a(1),S(f(2,1,"dashboard.status.mach.none")))}function
toe(t,i){1&t&&(l(0,"p"),g(1),m(
2,"translate"),c()),2&t&&(a(1),S(f(2,1,"dashboard.status.mach.disk_none")))}function
noe(t,i){if(1&t&&(l(0,"ul")(1,"li"),g(2),m(3,"translate"),c(),l(4,"ul")(5,"li"),g(6),m(7,"translate"),c(),l(8,"li"),g(9),m(10,"translate"),c(),l(11,"li"),g(12),m(13,"translate"),c(),l(14,"li"),g(15),m(16,"translate"),c()()()),2&t){const
e=i.Id,n=i.Directory,s=i.Total,r=i.Used,o=i.Free;a(2),We("",f(3,10,"dashboard.status.mach.myth_drive"),"
#",e,""),a(4),We("",f(7,12,"dashboard.status.mach.disk_dirs"),":
",n,""),a(3),We("",f(10,14,"dashboard.status.mach.total_space"),":
",s.toLocaleString(),"
MiB"),a(3),We("",f(13,16,"dashboard.status.mach.space_used"),":
",r.toLocaleString(),"
MiB"),a(3),We("",f(16,18,"dashboard.status.mach.space_free"),":
",o.toLocaleString()," MiB")}}let ioe=(()=>{class
t{constructor(e){this.utility=e}ngOnInit(){}getStorageGroupTotal(e){return
e.filter(n=>"total"==n.Id)[0]}getStorageGroupDetails(e){return
e.filter(n=>"total"!=n.Id)}}return t.\u0275fac=function(e){return new(e||t)(
D(cs))},t.\u0275cmp=z({type:t,selectors:[["app-status-machineinfo"]],inputs:{machineinfo:"machineinfo"},decls:11,vars:5,consts:[[1,"statusBox"],[4,"ngIf","ngIfElse"],["noMachineInfo",""],["noDiskInfo",""],["printStorageGroup",""],[4,"ngFor","ngForOf"],[4,"ngTemplateOutlet","ngTemplateOutletContext"]],template:function(e,n){if(1&e&&(l(0,"div",0)(1,"h2"),g(2),m(3,"translate"),c(),_(4,Xre,31,42,"div",1),c(),_(5,eoe,3,3,"ng-template",null,2,we),_(7,toe,3,3,"ng-template",null,3,we),_(9,noe,17,20,"ng-template",null,4,we)),2&e){const
s=F(6);a(2),S(f(3,3,"dashboard.status.mach.title")),a(2),p("ngIf",n.machineinfo)("ngIfElse",s)}},directives:[Q,at,Rt],pipes:[ce],styles:["","div.statusBox[_ngcontent-%COMP%]{width:auto;border-top:1px
solid var(--text-color);border-right:1px solid var(--text-color);border-bottom:1px solid
var(--text-color);border-left:10px solid var(--text-color);padding:10px;border-radius:8px
0 0 8px;margin:20px}"]}),t})();const
soe=function(t,i,e){return{Name:t,Type:i,IP:e}};
function
roe(t,i){if(1&t&&(l(0,"div")(1,"li"),g(2),m(3,"translate"),c()()),2&t){const
e=i.$implicit;a(2),T("",Dt(3,1,"dashboard.status.backends_detail",Qt(4,soe,e.Name,e.Type,e.IP)),"
")}}function
ooe(t,i){if(1&t&&(l(0,"div")(1,"ul"),_(2,roe,4,8,"div",3),c()()),2&t){const
e=d();a(2),p("ngForOf",e.backends)}}function
aoe(t,i){1&t&&(l(0,"p"),g(1),m(2,"translate"),c()),2&t&&(a(1),S(f(2,1,"dashboard.status.backends_none")))}let
loe=(()=>{class t{constructor(){}ngOnInit(){}}return t.\u0275fac=function(e){return
new(e||t)},t.\u0275cmp=z({type:t,selectors:[["app-status-backends"]],inputs:{backends:"backends"},decls:7,vars:5,consts:[[1,"statusBox"],[4,"ngIf","ngIfElse"],["noBackends",""],[4,"ngFor","ngForOf"]],template:function(e,n){if(1&e&&(l(0,"div",0)(1,"h2"),g(2),m(3,"translate"),c(),_(4,ooe,3,1,"div",1),c(),_(5,aoe,3,3,"ng-template",null,2,we)),2&e){const
s=F(6);a(2),S(f(3,3,"dashboard.status.backends_title")),a(2),p("ngIf",0!=(null==n.backends?null:n.backends.length))("ngIfElse",s)}},
directives:[Q,at],pipes:[ce],styles:["","div.statusBox[_ngcontent-%COMP%]{width:auto;border-top:1px
solid var(--text-color);border-right:1px solid var(--text-color);border-bottom:1px solid
var(--text-color);border-left:10px solid var(--text-color);padding:10px;border-radius:8px
0 0 8px;margin:20px}"]}),t})();const
coe=function(t,i,e,n){return{Name:t,IP:i,Port:e,OnLine:n}};function
uoe(t,i){if(1&t&&(l(0,"div")(1,"li"),g(2),m(3,"translate"),c()()),2&t){const
e=i.$implicit;a(2),T("",Dt(3,1,"dashboard.status.frontends_detail",qn(4,coe,e.Name,e.IP,e.Port,e.OnLine)),"
")}}function
doe(t,i){if(1&t&&(l(0,"div")(1,"ul"),_(2,uoe,4,9,"div",3),c()()),2&t){const
e=d();a(2),p("ngForOf",e.frontends)}}function
poe(t,i){1&t&&(l(0,"p"),g(1),m(2,"translate"),c()),2&t&&(a(1),S(f(2,1,"dashboard.status.frontends_none")))}let
hoe=(()=>{class t{constructor(){}ngOnInit(){}}return t.\u0275fac=function(e){return
new(e||t)},t.\u0275cmp=z({type:t,selectors:[["app-status-frontends"]],inputs:{frontends:"frontends
"},decls:7,vars:5,consts:[[1,"statusBox"],[4,"ngIf","ngIfElse"],["noFrontends",""],[4,"ngFor","ngForOf"]],template:function(e,n){if(1&e&&(l(0,"div",0)(1,"h2"),g(2),m(3,"translate"),c(),_(4,doe,3,1,"div",1),c(),_(5,poe,3,3,"ng-template",null,2,we)),2&e){const
s=F(6);a(2),S(f(3,3,"dashboard.status.frontends_title")),a(2),p("ngIf",0!=(null==n.frontends?null:n.frontends.length))("ngIfElse",s)}},directives:[Q,at],pipes:[ce],styles:["","div.statusBox[_ngcontent-%COMP%]{width:auto;border-top:1px
solid var(--text-color);border-right:1px solid var(--text-color);border-bottom:1px solid
var(--text-color);border-left:10px solid var(--text-color);padding:10px;border-radius:8px
0 0 8px;margin:20px}"]}),t})();function
moe(t,i){if(1&t&&(l(0,"div",9)(1,"h2"),g(2),m(3,"translate"),c(),l(4,"div"),g(5),c()()),2&t){const
e=d().ngIf;a(2),S(f(3,2,"dashboard.status.misc_title")),a(3),T("
",e.Miscellaneous," ")}}function
foe(t,i){if(1&t&&(l(0,"div"),k(1,"app-status-encoders",2)(2,"app-status-scheduled",3)(3
,"app-status-jobqueue",4)(4,"app-status-machineinfo",5)(5,"app-status-backends",6)(6,"app-status-frontends",7),_(7,moe,6,4,"div",8),c()),2&t){const
e=i.ngIf;a(1),p("encoders",e.Encoders),a(1),p("scheduled",e.Scheduled),a(1),p("jobqueue",e.JobQueue),a(1),p("machineinfo",e.MachineInfo),a(1),p("backends",e.Backends),a(1),p("frontends",e.Frontends),a(1),p("ngIf",e.Miscellaneous)}}function
goe(t,i){1&t&&(l(0,"div"),g(1,"Loading..."),c())}let
_oe=(()=>{class
t{constructor(e){this.statusService=e}ngOnInit(){this.m_status$=this.statusService.GetBackendStatus()}}return
t.\u0275fac=function(e){return
new(e||t)(D(kre))},t.\u0275cmp=z({type:t,selectors:[["app-status"]],decls:7,vars:7,consts:[[4,"ngIf","ngIfElse"],["loading",""],[3,"encoders"],[3,"scheduled"],[3,"jobqueue"],[3,"machineinfo"],[3,"backends"],[3,"frontends"],["class","statusBox",4,"ngIf"],[1,"statusBox"]],template:function(e,n){if(1&e&&(l(0,"h2"),g(1),m(2,"translate"),c(),_(3,foe,8,7,"div",0),m(4,"async"),_(5,goe,2,0,"ng-template",
null,1,we)),2&e){const s=F(6);let
r;a(1),T("",f(2,3,"dashboard.backendStatus"),"
"),a(2),p("ngIf",null==(r=f(4,5,n.m_status$))?null:r.BackendStatus)("ngIfElse",s)}},directives:[Q,Nre,Gre,$re,ioe,loe,hoe],pipes:[ce,xy],styles:["div.statusBox[_ngcontent-%COMP%]{width:auto;border-top:1px
solid var(--text-color);border-right:1px solid var(--text-color);border-bottom:1px solid
var(--text-color);border-left:10px solid var(--text-color);padding:10px;border-radius:8px
0 0 8px;margin:20px}"]}),t})();const
boe=["recsform"],voe=["menu"];function Coe(t,i){}function
yoe(t,i){1&t&&g(0),2&t&&T(" ",i.$implicit,"
")}function woe(t,i){if(1&t){const
e=I();l(0,"p-dropdown",67),C("onChange",function(s){return
v(e).filterCallback(s.value)}),m(1,"translate"),_(2,yoe,1,1,"ng-template",68),c()}if(2&t){const
e=i.$implicit,n=d(2);x("placeholder",f(1,4,"settings.chanedit.all")),p("ngModel",e)("options",n.recGroups)("showClear",!0)}}function
Toe(t,i){if(1&t){const
e=I();l(0,"tr")(1,"th",43)(2,"button",44),C("cl
ick",function(s){return
v(e),d().showContextMenu(null,s)}),m(3,"translate"),c(),g(4),m(5,"translate"),m(6,"translate"),k(7,"p-columnFilter",45),g(8),m(9,"translate"),l(10,"p-columnFilter",46),_(11,woe,3,6,"ng-template",47),c(),l(12,"button",48),C("click",function(){v(e);const
s=d();return
s.refreshing=!0,s.refresh()}),m(13,"translate"),c(),g(14),c()(),l(15,"tr")(16,"th",49),g(17),m(18,"translate"),k(19,"p-sortIcon",50),c(),k(20,"th",51),l(21,"th",52),g(22),m(23,"translate"),c(),l(24,"th",53),g(25),m(26,"translate"),c(),l(27,"th",54),g(28),m(29,"translate"),k(30,"p-sortIcon",55),c(),l(31,"th",56),g(32),m(33,"translate"),k(34,"p-sortIcon",57),c(),l(35,"th",58),g(36),m(37,"translate"),c(),l(38,"th",59),g(39),m(40,"translate"),k(41,"p-sortIcon",60),c(),l(42,"th",61),g(43),m(44,"translate"),c(),l(45,"th",62),g(46),m(47,"translate"),c(),l(48,"th",63)(49,"a",64),k(50,"i",65),c(),k(51,"button",66),c()()}if(2&t){const
e=d();a(2),x("pTooltip",f(3,18,"common.selected_menu")),a(2),We("
\xa0\xa0
\xa0\xa0\xa0 ",f(5,20,"dashboard.recordings.filter"),": \xa0\xa0
",f(6,22,"dashboard.recordings.title"),": \xa0
"),a(3),p("matchModeOptions",e.matchModeTitle),a(1),T("
",f(9,24,"dashboard.recordings.recgrp"),": \xa0
"),a(2),p("showMenu",!1),a(2),x("pTooltip",f(13,26,"common.refresh")),a(2),T("
\xa0\xa0\xa0",e.programs.length," Rows "),a(3),T("
",f(18,28,"dashboard.recordings.title"),"
"),a(5),S(f(23,30,"dashboard.recordings.subtitle")),a(3),S(f(26,32,"dashboard.recordings.seas_ep")),a(3),T("
",f(29,34,"dashboard.recordings.orig_airdate")," "),a(4),T("
",f(33,36,"dashboard.recordings.airdate"),"
"),a(4),S(f(37,38,"dashboard.recordings.channel")),a(3),T("
",f(40,40,"dashboard.recordings.recgrp")," "),a(4),T("
",f(44,42,"dashboard.recordings.duration"),"
"),a(3),S(f(47,44,"dashboard.recordings.file_size")),a(5),p("disabled",!0)}}function
Soe(t,i){1&t&&(k(0,"i",80),m(1,"translate")),2&t&&x("pTooltip",f(1,1,"dashboard.recordings.damaged"))}function
xoe(t,i){1&t&&(k(0,"i",81),m(1,"transla
te")),2&t&&x("pTooltip",f(1,1,"dashboard.recordings.watched"))}function
Doe(t,i){if(1&t&&(l(0,"div"),g(1),c()),2&t){const
e=d().$implicit;a(1),We(" ",e.Season,"x",e.Episode,"
")}}const Moe=function(t){return{"line-through":t}};function
koe(t,i){if(1&t){const
e=I();l(0,"tr",69),C("contextmenu",function(s){const
o=v(e).$implicit;return
d().onContextMenu(o,s)}),l(1,"td",70),_(2,Soe,2,3,"i",71),g(3),c(),l(4,"td",51),_(5,xoe,2,3,"i",72),c(),l(6,"td",73),g(7),c(),l(8,"td",53),_(9,Doe,2,2,"div",74),c(),l(10,"td",62),k(11,"div",75),c(),l(12,"td",62),k(13,"div",75),c(),l(14,"td",58),g(15),c(),l(16,"td",76),g(17),c(),l(18,"td",61),g(19),m(20,"number"),c(),l(21,"td",62),g(22),m(23,"number"),c(),l(24,"td",63)(25,"a",77),m(26,"translate"),k(27,"i",78),c(),l(28,"button",79),C("click",function(s){const
o=v(e).$implicit;return d().showContextMenu(o,s)}),c()()()}if(2&t){const
e=i.$implicit,n=i.rowIndex,s=d();p("ngClass",U(27,Moe,"Deleted"==e.Recording.RecGroup))("pSelectableRow",e)("pSelectableRowIn
dex",n),a(2),p("ngIf",e.VideoPropNames.indexOf("DAMAGED")>-1),a(1),T("
",e.Title,"
"),a(2),p("ngIf",e.ProgramFlagNames.indexOf("WATCHED")>-1),a(1),x("pTooltip",e.Description),a(1),T("
",e.SubTitle,""),a(2),p("ngIf",e.Season>0||e.Episode>0),a(2),p("innerHTML",s.utility.formatDate(e.Airdate,!0),Bt),a(2),p("innerHTML",s.utility.formatDate(e.StartTime,!0),Bt),a(2),We("
",e.Channel.ChanNum,"
",e.Channel.CallSign,""),a(2),S(e.Recording.RecGroup),a(2),T("",Dt(20,19,s.getDuration(e),"1.0-0"),"
min"),a(3),T("
",Dt(23,22,e.Recording.FileSize/1e6,"1.0-0"),"
MB"),a(3),x("href",s.URLencode("/Content/GetRecording?RecordedId="+e.Recording.RecordedId),ln),x("pTooltip",f(26,25,"dashboard.recordings.download")),a(2),p("id","download_"+n)}}function
Ioe(t,i){1&t&&(k(0,"p-message",87),m(1,"translate")),2&t&&x("text",f(1,1,"common.savesuccess"))}function
Eoe(t,i){1&t&&(k(0,"p-message",88),m(1,"translate")),2&t&&x("text",f(1,1,"common.networkfail"))}function
Roe(t,i){if(1&t){const e=I();l(0,"div",82),_(1,
Ioe,2,3,"p-message",83),_(2,Eoe,2,3,"p-message",84),c(),l(3,"p-button",85),C("onClick",function(){return
v(e),d().closeDialog()}),m(4,"translate"),c(),l(5,"p-button",86),C("onClick",function(){return
v(e),d().saveProgram()}),m(6,"translate"),c()}if(2&t){const
e=d(),n=F(1);a(1),p("ngIf",e.successCount>0&&0==e.errorCount&&!n.dirty),a(1),p("ngIf",e.errorCount>0),a(1),x("label",f(4,5,"common.close")),a(2),x("label",f(6,7,"common.save")),p("disabled",!n.dirty||""==e.program.Title.trim())}}function
Loe(t,i){if(1&t){const
e=I();l(0,"p-button",89),C("onClick",function(){return
v(e),d().displayRecGrpDlg=!1}),m(1,"translate"),c(),l(2,"p-button",90),C("onClick",function(){return
v(e),d().updaterecgrp()}),m(3,"translate"),c()}if(2&t){const
e=d();x("label",f(1,3,"common.cancel")),a(2),x("label",f(3,5,"common.ok")),p("disabled",!e.newRecGroup.trim())}}function
Ooe(t,i){if(1&t){const
e=I();l(0,"p-button",91),C("onClick",function(){return
v(e),d().closeDialog()}),m(1,"translate"),c(),l(2,"p-button"
,92),C("onClick",function(){return
v(e),d().displayUnsaved=!1}),m(3,"translate"),c()}2&t&&(x("label",f(1,2,"common.nosave")),a(2),x("label",f(3,4,"common.continue")))}const
Aoe=function(){return{height:"75vw",width:"50vw"}},Poe=function(){return{minWidth:"400px"}};let
Foe=(()=>{class
t{constructor(e,n,s,r,o){this.dvrService=e,this.messageService=n,this.translate=s,this.setupService=r,this.utility=o,this.programs=[],this.selection=[],this.actionList=[],this.recGroups=[],this.newRecGroup="",this.program={Title:"",Recording:{}},this.displayMetadataDlg=!1,this.displayRecGrpDlg=!1,this.displayRunJobs=!1,this.displayUnsaved=!1,this.successCount=0,this.errorCount=0,this.refreshing=!1,this.priorRequest={},this.msg={Success:"common.success",Failed:"common.failed",NetFail:"common.networkfail",CanUndo:"dashboard.recordings.canundel",AlreadyDel:"dashboard.recordings.alreadydel",NonReRec:"dashboard.recordings.nonrerec",ActionsSelected:"dashboard.recordings.actionsselected",JobsSelected:"dashboar
d.recordings.jobsselected",UndefSelection:"dashboard.undefselection"},this.jobsoffset=3,this.jobs=[{id:"Transcode",label:"dashboard.recordings.job_Transcode",command:h=>this.runjob(h)},{id:"Commflag",label:"dashboard.recordings.job_Commflag",command:h=>this.runjob(h)},{id:"Metadata",label:"dashboard.recordings.job_Metadata",command:h=>this.runjob(h)},{id:"UserJob1",visible:!1,command:h=>this.runjob(h)},{id:"UserJob2",visible:!1,command:h=>this.runjob(h)},{id:"UserJob3",visible:!1,command:h=>this.runjob(h)},{id:"UserJob4",visible:!1,command:h=>this.runjob(h)}],this.mnu_delete={label:"dashboard.recordings.mnu_delete",command:h=>this.delete(h,!1)},this.mnu_delete_rerec={label:"dashboard.recordings.mnu_delete_rerec",command:h=>this.delete(h,!0)},this.mnu_undelete={label:"dashboard.recordings.mnu_undelete",command:h=>this.undelete(h)},this.mnu_rerec={label:"dashboard.recordings.mnu_rerec",command:h=>this.rerec(h)},this.mnu_markwatched={label:"dashboard.recordings.mnu_markwatched",command
:h=>this.markwatched(h,!0)},this.mnu_markunwatched={label:"dashboard.recordings.mnu_markunwatched",command:h=>this.markwatched(h,!1)},this.mnu_markdamaged={label:"dashboard.recordings.mnu_markdamaged",command:h=>this.markdamaged(h,!0)},this.mnu_markundamaged={label:"dashboard.recordings.mnu_markundamaged",command:h=>this.markdamaged(h,!1)},this.mnu_updaterecgrp={label:"dashboard.recordings.mnu_updaterecgrp",command:h=>this.promptrecgrp(h)},this.mnu_updatemeta={label:"dashboard.recordings.mnu_updatemeta",command:h=>this.updatemeta(h)},this.mnu_updaterecrule={label:"dashboard.recordings.mnu_updaterecrule",command:h=>this.updaterecrule(h)},this.mnu_stoprec={label:"dashboard.recordings.mnu_stoprec",command:h=>this.stoprec(h)},this.mnu_runjobs={label:"dashboard.recordings.mnu_runjobs",items:this.jobs},this.menuToShow=[],this.matchModeRecGrp=[{value:_t.EQUALS,label:"common.filter.equals"}],this.matchModeTitle=[{value:_t.STARTS_WITH,label:"common.filter.startswith"},{value:_t.CONTAINS,labe
l:"common.filter.contains"},{value:_t.EQUALS,label:"common.filter.equals"}],this.saveObserver={next:h=>{h.bool?(this.successCount++,this.currentForm.form.markAsPristine(),this.editingProgram&&Object.assign(this.editingProgram,this.program)):(console.log("saveObserver
error",h),this.errorCount++)},error:h=>{console.log("saveObserver
error",h),this.errorCount++}},this.JobQCmds=this.setupService.getJobQCommands(),this.dvrService.GetRecGroupList().subscribe(h=>{this.recGroups=h.RecGroupList,this.recGroups.push("Deleted")});for(const[h,b]of
Object.entries(this.msg))this.translate.get(b).subscribe(y=>{Object.defineProperty(this.msg,h,{value:y})});[this.mnu_delete,this.mnu_delete_rerec,this.mnu_undelete,this.mnu_rerec,this.mnu_markwatched,this.mnu_markunwatched,this.mnu_markdamaged,this.mnu_markundamaged,this.mnu_updatemeta,this.mnu_updaterecrule,this.mnu_stoprec,this.mnu_updaterecgrp,this.mnu_runjobs,this.jobs[0],this.jobs[1],this.jobs[2],...this.matchModeRecGrp,...this.matchModeTitle].fo
rEach(h=>{h.label&&this.translate.get(h.label).subscribe(b=>h.label=b)})}ngOnInit(){}loadLazy(e){this.lazyLoadEvent=e;let
n={StartIndex:0,Count:1};e.first&&(n.StartIndex=e.first),e.rows&&(n.Count=e.rows),e.sortField||(e.sortField="Title"),n.Sort=e.sortField,n.Sort="Airdate"==e.sortField?"originalairdate":"Recording.RecGroup"==e.sortField?"recgroup":e.sortField;let
s=" asc";if(e.sortOrder&&e.sortOrder<0&&(s="
desc"),n.Sort=n.Sort+s,n.Sort+=`,title${s},originalairdate${s},season${s},episode${s}`,e.filters){if(e.filters.Title.value)switch(e.filters.Title.matchMode){case
_t.STARTS_WITH:n.TitleRegEx="^"+e.filters.Title.value;break;case
_t.CONTAINS:n.TitleRegEx=e.filters.Title.value;break;case
_t.EQUALS:n.TitleRegEx="^"+e.filters.Title.value+"$"}e.filters["Recording.RecGroup"].value&&e.filters["Recording.RecGroup"].matchMode==_t.EQUALS&&(n.RecGroup=e.filters["Recording.RecGroup"].value)}(n.TitleRegEx!=this.priorRequest.TitleRegEx||n.RecGroup!=this.priorRequest.RecGroup)&&(this.programs=[]
,this.selection=[],this.menu.hide(),this.priorRequest=n),this.dvrService.GetRecordedList(n).subscribe(r=>{let
o=r.ProgramList;this.programs.length=r.ProgramList.TotalAvailable,this.programs.splice(o.StartIndex,o.Count,...o.Programs),this.programs=[...this.programs],this.refreshing=!1})}refresh(){this.selection=[],this.menu.hide(),this.loadLazy(this.lazyLoadEvent)}URLencode(e){return
encodeURI(e)}getDuration(e){const n=new Date(e.Recording.StartTs).getTime();return(new
Date(e.Recording.EndTs).getTime()-n)/6e4}onContextMenu(e,n){return!(!(0==this.selection.length||n.target&&n.target.id&&n.target.id.startsWith("download_"))&&(this.selection.some(s=>!s)?(this.sendMessage("error",null,"",this.msg.UndefSelection),1):this.selection.some(s=>s.Recording.RecordedId==e.Recording.RecordedId)&&(this.showContextMenu(null,n),1)))}onSelectChange(){this.menu.hide()}showContextMenu(e,n){if(this.actionList.length=0,e&&e.Title?this.actionList.push(e):this.actionList.push(...this.selection),0==this.acti
onList.length)return;if(this.actionList.some(r=>!r))return void
this.sendMessage("error",null,"",this.msg.UndefSelection);this.menuToShow.length=0;let
s=[];if(this.actionList.some(r=>"Deleted"==r.Recording.RecGroup)&&s.push(this.mnu_undelete),this.actionList.some(r=>"Deleted"!=r.Recording.RecGroup)&&(s.push(this.mnu_delete),s.push(this.mnu_delete_rerec)),s.push(this.mnu_rerec),this.actionList.some(r=>r.ProgramFlagNames.indexOf("WATCHED")>-1)&&s.push(this.mnu_markunwatched),this.actionList.some(r=>r.ProgramFlagNames.indexOf("WATCHED")<0)&&s.push(this.mnu_markwatched),this.actionList.some(r=>r.VideoPropNames.indexOf("DAMAGED")>-1)&&s.push(this.mnu_markundamaged),this.actionList.some(r=>r.VideoPropNames.indexOf("DAMAGED")<0)&&s.push(this.mnu_markdamaged),s.push(this.mnu_updaterecgrp),1==this.actionList.length?(s.push(this.mnu_updatemeta),this.menuToShow.push({label:this.actionList[0].Title+"
-
"+this.actionList[0].SubTitle,items:s})):this.menuToShow.push({label:this.msg.ActionsSelected
.replace(/{{ *num
*}}/,this.actionList.length.toString()),items:s}),this.actionList.every(r=>"Deleted"!=r.Recording.RecGroup)){this.menuToShow.push(1==this.actionList.length?this.mnu_runjobs:{label:this.msg.JobsSelected.replace(/{{
*num *}}/,this.actionList.length.toString()),items:this.jobs});for(let
r=0;r<4;r++)this.JobQCmds.UserJob[r]?(this.jobs[r+this.jobsoffset].visible=!0,this.jobs[r+this.jobsoffset].label=this.JobQCmds.UserJobDesc[r]):this.jobs[r+this.jobsoffset].visible=!1}this.menu.toggle(n)}delete(e,n){let
s=this.actionList.shift();s&&this.dvrService.GetRecorded({RecordedId:s.Recording.RecordedId}).subscribe({next:r=>{"Deleted"==r.Program.Recording.RecGroup?(this.sendMessage("error",s,e.item.label,this.msg.AlreadyDel),s.Recording.RecGroup="Deleted"):this.dvrService.DeleteRecording({RecordedId:s.Recording.RecordedId,AllowRerecord:n}).subscribe({next:o=>{o.bool?(this.sendMessage("success",s,e.item.label,this.msg.Success,this.msg.CanUndo),s.Recording.RecGroup="Deleted"):this.
sendMessage("error",s,e.item.label,this.msg.Failed)},error:o=>this.networkError(s,o)}),this.delete(e,n)},error:r=>{this.networkError(s,r),this.delete(e,n)}})}undelete(e){let
n=this.actionList.shift();n&&this.dvrService.UnDeleteRecording({RecordedId:n.Recording.RecordedId}).subscribe({next:s=>{s.bool?(n.Recording.RecGroup="Default",this.sendMessage("success",n,e.item.label,this.msg.Success)):this.sendMessage("error",n,e.item.label,this.msg.Failed),this.undelete(e)},error:s=>{this.networkError(n,s),this.undelete(e)}})}networkError(e,n){console.log("network
error",n),this.sendMessage("error",e,"",this.msg.NetFail)}sendMessage(e,n,s,r,o){o=o?"\n"+o:"";let
u=s;null!=n&&(u=s+" "+n.Title+"
"+n.SubTitle+o),this.messageService.add({severity:e,summary:r,detail:u,life:5e3,sticky:"error"==e})}rerec(e){let
n=this.actionList.shift();n&&this.dvrService.AllowReRecord(n.Recording.RecordedId).subscribe({next:s=>{s.bool?this.sendMessage("success",n,e.item.label,this.msg.Success):this.sendMessage("erro
r",n,e.item.label,this.msg.Failed),this.rerec(e)},error:s=>{this.networkError(n,s),this.rerec(e)}})}markwatched(e,n){let
s=this.actionList.shift();s&&this.dvrService.UpdateRecordedMetadata({RecordedId:s.Recording.RecordedId,Watched:n}).subscribe({next:r=>{r.bool?(this.sendMessage("success",s,e.item.label,this.msg.Success),s.ProgramFlagNames=n?s.ProgramFlagNames+"|WATCHED|":s.ProgramFlagNames.replace(/WATCHED/g,"")):this.sendMessage("error",s,e.item.label,this.msg.Failed),this.markwatched(e,n)},error:r=>{this.networkError(s,r),this.markwatched(e,n)}})}markdamaged(e,n){let
s=this.actionList.shift();s&&this.dvrService.UpdateRecordedMetadata({RecordedId:s.Recording.RecordedId,Damaged:n}).subscribe({next:r=>{r.bool?n?(this.sendMessage("success",s,e.item.label,this.msg.Success,this.msg.NonReRec),s.VideoPropNames=s.VideoPropNames+"|DAMAGED|"):(this.sendMessage("success",s,e.item.label,this.msg.Success),s.VideoPropNames=s.VideoPropNames.replace(/DAMAGED/g,"")):this.sendMessage("error",s,e.i
tem.label,this.msg.Failed),this.markdamaged(e,n)},error:r=>{this.networkError(s,r),this.markdamaged(e,n)}})}promptrecgrp(e){this.newRecGroup=1==this.actionList.length?this.actionList[0].Recording.RecGroup:"",this.displayRecGrpDlg=!0}updaterecgrp(){this.displayRecGrpDlg=!1,this.newRecGroup=this.newRecGroup.trim();let
e=this.actionList.shift();e&&this.newRecGroup&&this.dvrService.UpdateRecordedMetadata({RecordedId:e.Recording.RecordedId,RecGroup:this.newRecGroup}).subscribe({next:n=>{n.bool?(this.sendMessage("success",e,this.mnu_updaterecgrp.label,this.msg.Success),e.Recording.RecGroup=this.newRecGroup):this.sendMessage("error",e,this.mnu_updaterecgrp.label,this.msg.Failed),this.updaterecgrp()},error:n=>{this.networkError(e,n),this.updaterecgrp()}})}updaterecrule(e){}stoprec(e){}runjob(e){let
n=this.actionList.shift();n&&this.dvrService.ManageJobQueue({Action:"Add",JobName:e.item.id,RecordedId:n.Recording.RecordedId}).subscribe({next:s=>{s.int>0?this.sendMessage("success",n,e.item.lab
el,this.msg.Success):this.sendMessage("error",n,e.item.label,this.msg.Failed),this.runjob(e)},error:s=>{this.networkError(n,s),this.runjob(e)}})}updatemeta(e){this.program=this.actionList.shift(),this.program&&(this.editingProgram=this.program,this.program=Object.assign({},this.program),this.program.Airdate=this.program.Airdate?new
Date(this.program.Airdate+"
00:00"):null,this.displayMetadataDlg=!0,this.currentForm.form.markAsPristine())}saveProgram(){this.successCount=0,this.errorCount=0,this.displayUnsaved=!1,this.dvrService.UpdateRecordedMetadata({RecordedId:this.program.Recording.RecordedId,Description:this.program.Description,Episode:this.program.Episode,Inetref:this.program.Inetref,OriginalAirDate:this.program.Airdate,Season:this.program.Season,SubTitle:this.program.SubTitle,Title:this.program.Title,RecGroup:this.program.Recording.RecGroup}).subscribe(this.saveObserver)}closeDialog(){this.currentForm.dirty?this.displayUnsaved?(this.displayUnsaved=!1,this.displayMetadataDlg=!1,
this.editingProgram=void
0,this.currentForm.form.markAsPristine()):this.displayUnsaved=!0:(this.displayMetadataDlg=!1,this.displayUnsaved=!1,this.editingProgram=void
0)}}return t.\u0275fac=function(e){return
new(e||t)(D(jo),D(Gi),D(Oe),D(Me),D(cs))},t.\u0275cmp=z({type:t,selectors:[["app-recordings"]],viewQuery:function(e,n){if(1&e&&(W(boe,5),W(voe,5)),2&e){let
s;V(s=B())&&(n.currentForm=s.first),V(s=B())&&(n.menu=s.first)}},features:[Pe([Gi])],decls:85,vars:96,consts:[["name","recsform"],["recsform","ngForm"],[2,"white-space","pre-line"],["position","center"],[1,"block","card","w-full",2,"height","90vh"],[1,"font-bold",3,"popup","model"],["menu",""],["scrollHeight","flex","styleClass","p-datatable-striped","selectionMode","multiple","dataKey","Recording.RecordedId",3,"value","scrollable","virtualScroll","rows","lazy","rowHover","selection","metaKeySelection","onLazyLoad","selectionChange","onRowSelect","onRowUnelect"],["pTemplate","caption"],["pTemplate","header"],["pTemplate","bod
y"],[3,"header","visible","modal","closable","closeOnEscape","visibleChange"],[1,"form-group","field"],["for","Title",1,"label","block"],["pInputText","","id","Title","name","Title",1,"mb-2","form-control","w-full",3,"ngModel","ngModelChange"],["Title","ngModel"],["for","SubTitle",1,"label","block"],["pInputText","","id","SubTitle","name","SubTitle",1,"mb-2","form-control","w-full",3,"ngModel","ngModelChange"],["SubTitle","ngModel"],["for","Inetref",1,"label","block"],["pInputText","","id","Inetref","name","Inetref",1,"mb-2","form-control","w-full",3,"ngModel","ngModelChange"],["Inetref","ngModel"],["for","Description",1,"label","block"],["pInputTextarea","","id","Description","name","Description",1,"mb-2","form-control","w-full",3,"rows","cols","ngModel","ngModelChange"],["Description","ngModel"],["for","Season",1,"label","block"],["name","Season","id","Season",3,"ngModel","showButtons","min","max","step","ngModelChange"],["for","Episode",1,"label","block"],["name","Episode","id","
Episode",3,"ngModel","showButtons","min","max","step","ngModelChange"],["for","Airdate",1,"label","block"],["dateFormat","yy-mm-dd","name","Airdate","id","Airdate",3,"ngModel","ngModelChange"],["for","RecGroup",1,"label","block"],["name","RecGroup",3,"options","ngModel","editable","maxlength","ngModelChange"],["RecGroup","ngModel"],["for","FileName",1,"label","block"],["pTemplate","footer"],[3,"header","visible","modal","draggable","resizable","visibleChange"],["for","newrecgroup",1,"label","block"],["pInputText","","id","newrecgroup","name","newrecgroup",1,"mb-2","form-control","w-full",3,"ngModel","ngModelChange"],["newrecgroup","ngModel"],["name","recgrplist",3,"options","ngModel","ngModelChange"],["recgrplist","ngModel"],[3,"header","visible","modal","visibleChange"],[1,"pl-1"],["pButton","","pRipple","","icon","pi
pi-bars","tooltipPosition","top",1,"p-button-text",".p-button-success",3,"pTooltip","click"],["type","text","field","Title",3,"matchModeOptions"],["field","Recording.
RecGroup","matchMode","equals",3,"showMenu"],["pTemplate","filter"],["pButton","","pRipple","","icon","pi
pi-refresh","tooltipPosition","top",1,"p-button-text",".p-button-success",3,"pTooltip","click"],["pSortableColumn","Title",1,"p-1",2,"flex-basis","12%"],["field","Title"],[1,"p-1",2,"flex-basis","2%"],[1,"p-1",2,"flex-basis","18%"],[1,"p-1",2,"flex-basis","4%"],["pSortableColumn","Airdate",1,"justify-content-end","p-1",2,"flex-basis","8%"],["field","Airdate"],["pSortableColumn","StartTime",1,"justify-content-end","p-1",2,"flex-basis","8%"],["field","StartTime"],[1,"p-1",2,"flex-basis","10%"],["pSortableColumn","Recording.RecGroup",1,"p-1",2,"flex-basis","8%"],["field","Recording.RecGroup"],[1,"justify-content-end","p-1",2,"flex-basis","6%"],[1,"justify-content-end","p-1",2,"flex-basis","8%"],[1,"p-1",2,"background","var(--surface-card)"],["target","_blank"],[1,"pi","pi-download"],["pButton","","pRipple","","icon","pi
pi-ellipsis-v",1,"p-button-text","p-button-primary",3,"disable
d"],["name","filter",3,"ngModel","options","placeholder","showClear","onChange"],["pTemplate","item"],[3,"ngClass","pSelectableRow","pSelectableRowIndex","contextmenu"],[1,"p-1","overflow-hidden",2,"flex-basis","12%"],["class","pi
pi-exclamation-triangle
p-1","tooltipPosition","top",3,"pTooltip",4,"ngIf"],["class","pi
pi-eye","tooltipPosition","top",3,"pTooltip",4,"ngIf"],["tooltipPosition","top",1,"p-1","overflow-hidden",2,"flex-basis","18%",3,"pTooltip"],[4,"ngIf"],[3,"innerHTML"],[1,"p-1",2,"flex-basis","8%"],["target","_blank","tooltipPosition","left",3,"href","pTooltip"],[1,"pi","pi-download","text-primary",3,"id"],["pButton","","pRipple","","icon","pi
pi-ellipsis-v",1,"p-button-text","p-button-primary",3,"click"],["tooltipPosition","top",1,"pi","pi-exclamation-triangle","p-1",3,"pTooltip"],["tooltipPosition","top",1,"pi","pi-eye",3,"pTooltip"],[1,"col-12",2,"text-align","left"],["severity","success",3,"text",4,"ngIf"],["severity","error",3,"text",4,"ngIf"],["icon","pi
pi-times
-circle","styleClass","p-button-warning",3,"label","onClick"],["icon","pi
pi-check-circle","styleClass","p-button-success",3,"label","disabled","onClick"],["severity","success",3,"text"],["severity","error",3,"text"],["icon","pi
pi-times-circle","styleClass","p-button-plain",3,"label","onClick"],["icon","pi
pi-check-circle","styleClass","p-button-plain",3,"label","disabled","onClick"],["icon","pi
pi-times-circle","styleClass","p-button-danger",3,"label","onClick"],["icon","pi
pi-check-circle","styleClass","p-button-success",3,"label","onClick"]],template:function(e,n){1&e&&(l(0,"form",0,1)(2,"div",2),k(3,"p-toast",3),c(),l(4,"h2"),g(5),m(6,"translate"),c(),l(7,"div",4),k(8,"p-tieredMenu",5,6),l(10,"p-table",7),C("onLazyLoad",function(r){return
n.loadLazy(r)})("selectionChange",function(r){return
n.selection=r})("onRowSelect",function(){return
n.onSelectChange()})("onRowUnelect",function(){return
n.onSelectChange()}),_(11,Coe,0,0,"ng-template",8),_(12,Toe,52,46,"ng-template",9),_(13,
koe,29,29,"ng-template",10),c(),l(14,"p-dialog",11),C("visibleChange",function(r){return
n.displayMetadataDlg=r}),m(15,"translate"),l(16,"div",12)(17,"label",13),g(18),m(19,"translate"),c(),l(20,"input",14,15),C("ngModelChange",function(r){return
n.program.Title=r}),c()(),l(22,"div",12)(23,"label",16),g(24),m(25,"translate"),c(),l(26,"input",17,18),C("ngModelChange",function(r){return
n.program.SubTitle=r}),c()(),l(28,"div",12)(29,"label",19),g(30),m(31,"translate"),c(),l(32,"input",20,21),C("ngModelChange",function(r){return
n.program.Inetref=r}),c()(),l(34,"div",12)(35,"label",22),g(36),m(37,"translate"),c(),l(38,"textarea",23,24),C("ngModelChange",function(r){return
n.program.Description=r}),c()(),l(40,"div",12)(41,"label",25),g(42),m(43,"translate"),c(),l(44,"p-inputNumber",26),C("ngModelChange",function(r){return
n.program.Season=r}),c()(),l(45,"div",12)(46,"label",27),g(47),m(48,"translate"),c(),l(49,"p-inputNumber",28),C("ngModelChange",function(r){return
n.program.Episode=r}
),c()(),l(50,"div",12)(51,"label",29),g(52),m(53,"translate"),c(),l(54,"p-calendar",30),C("ngModelChange",function(r){return
n.program.Airdate=r}),c()(),l(55,"div",12)(56,"label",31),g(57),m(58,"translate"),c(),l(59,"p-dropdown",32,33),C("ngModelChange",function(r){return
n.program.Recording.RecGroup=r}),c()(),l(61,"div",12)(62,"label",34),g(63),m(64,"translate"),c(),l(65,"pre"),g(66),c()(),_(67,Roe,7,9,"ng-template",35),c(),l(68,"p-dialog",36),C("visibleChange",function(r){return
n.displayRecGrpDlg=r}),m(69,"translate"),l(70,"div",12)(71,"label",37),g(72),m(73,"translate"),c(),l(74,"input",38,39),C("ngModelChange",function(r){return
n.newRecGroup=r}),c()(),l(76,"p-listbox",40,41),C("ngModelChange",function(r){return
n.newRecGroup=r}),c(),_(78,Loe,4,7,"ng-template",35),c(),l(79,"p-dialog",42),C("visibleChange",function(r){return
n.displayUnsaved=r}),m(80,"translate"),l(81,"p"),g(82),m(83,"translate"),c(),_(84,Ooe,4,6,"ng-template",35),c()()()),2&e&&(a(5),S(f(6,64,"dashboard.recordin
gs.heading")),a(3),p("popup",!0)("model",n.menuToShow),a(2),p("value",n.programs)("scrollable",!0)("virtualScroll",!0)("rows",50)("lazy",!0)("rowHover",!0)("selection",n.selection)("metaKeySelection",!0),a(4),q(A(94,Aoe)),x("header",f(15,66,"dashboard.recordings.edit_metadata")),p("visible",n.displayMetadataDlg)("modal",!0)("closable",!1)("closeOnEscape",!1),a(4),S(f(19,68,"dashboard.recordings.title")),a(2),p("ngModel",n.program.Title),a(4),S(f(25,70,"dashboard.recordings.subtitle")),a(2),p("ngModel",n.program.SubTitle),a(4),S(f(31,72,"dashboard.recordings.inetref")),a(2),p("ngModel",n.program.Inetref),a(4),S(f(37,74,"dashboard.recordings.description")),a(2),p("rows",5)("cols",30)("ngModel",n.program.Description),a(4),S(f(43,76,"dashboard.recordings.season")),a(2),p("ngModel",n.program.Season)("showButtons",!0)("min",1)("max",99)("step",1),a(3),S(f(48,78,"dashboard.recordings.episode")),a(2),p("ngModel",n.program.Episode)("showButtons",!0)("min",1)("max",99)("step",1),a(3),S(f(53,8
0,"dashboard.recordings.orig_airdate")),a(2),p("ngModel",n.program.Airdate),a(3),S(f(58,82,"dashboard.sched.recgroup_label")),a(2),q(A(95,Poe)),p("options",n.recGroups)("ngModel",n.program.Recording.RecGroup)("editable",!0)("maxlength",64),a(4),S(f(64,84,"dashboard.recordings.filename_label")),a(3),S(n.program.FileName),a(2),x("header",f(69,86,"dashboard.recordings.selrecgroup")),p("visible",n.displayRecGrpDlg)("modal",!0)("draggable",!1)("resizable",!1),a(4),S(f(73,88,"dashboard.sched.recgroup_label")),a(2),p("ngModel",n.newRecGroup),a(2),p("options",n.recGroups)("ngModel",n.newRecGroup),a(3),x("header",f(80,90,"common.unsaved_heading")),p("visible",n.displayUnsaved)("modal",!0),a(3),S(f(83,92,"common.unsaved_message")))},directives:[ze,Ue,He,Td,D$,Dn,ne,On,bt,Kt,vg,Ot,Te,_e,yd,wd,Le,j2,Q,bn,Ye,tS,pt,xr,_n,qe,ve,os],pipes:[ce,eu],styles:["[_nghost-%COMP%]
.p-tieredmenu{border:2px solid}[_nghost-%COMP%] .p-tieredmenu
.p-submenu-list{border:2px solid}"]}),t})();const Noe=["sc
hedform"],Di=function(){return{minWidth:"400px"}};function
Voe(t,i){if(1&t){const
e=I();l(0,"div",5)(1,"label",63),g(2),m(3,"translate"),c(),l(4,"p-dropdown",64,65),C("ngModelChange",function(s){return
v(e),d(2).templateId=s})("onClick",function(){v(e);const s=d(2);return
s.templateChange(s.recRule)})("onChange",function(){v(e);const s=d(2);return
s.templateChange(s.recRule)}),c()()}if(2&t){const
e=d(2);a(2),S(f(3,7,"dashboard.sched.template_label")),a(2),q(A(9,Di)),p("options",e.templates)("ngModel",e.templateId)("editable",!1)("maxlength",0)}}function
Boe(t,i){1&t&&(l(0,"label",68),g(1),m(2,"translate"),c()),2&t&&(a(1),T("
",f(2,1,"dashboard.sched.subtitle_label"),""))}function
Hoe(t,i){1&t&&(l(0,"label",68),g(1),m(2,"translate"),c()),2&t&&(a(1),T("
",f(2,1,"dashboard.sched.add_tables_label"),""))}function
qoe(t,i){if(1&t){const
e=I();l(0,"textarea",69),C("ngModelChange",function(s){return
v(e),d(3).recRule.SubTitle=s}),g(1," "),c()}if(2&t){const
e=d(3);p("ngModel",
e.recRule.SubTitle)("disabled","Power
Search"!=e.recRule.SearchType)("rows",e.subTitleRows)}}const
Goe=function(){return["None","Power Search"]};function
Uoe(t,i){if(1&t&&(l(0,"div",5),_(1,Boe,3,3,"label",66),_(2,Hoe,3,3,"label",66),_(3,qoe,2,3,"textarea",67),c()),2&t){const
e=d(2);a(1),p("ngIf","None"==e.recRule.SearchType),a(1),p("ngIf","Power
Search"==e.recRule.SearchType),a(1),p("ngIf",A(3,Goe).indexOf(e.recRule.SearchType)>-1)}}function
zoe(t,i){if(1&t&&(l(0,"span"),g(1),c()),2&t){const
e=d(2);a(1),We("S",e.recRule.Season,"
E",e.recRule.Episode,"")}}function
joe(t,i){1&t&&(l(0,"label",74),g(1),m(2,"translate"),c()),2&t&&(a(1),T("
",f(2,1,"dashboard.sched.description_label"),""))}function
$oe(t,i){1&t&&(l(0,"label",74),g(1),m(2,"translate"),c()),2&t&&(a(1),T("
",f(2,1,"dashboard.sched.sqlwhere_label"),""))}function
Woe(t,i){1&t&&(l(0,"label",74),g(1),m(2,"translate"),c()),2&t&&(a(1),T("
",f(2,1,"dashboard.sched.description_label"),""))}function
Koe(t,i){1&t&&(l(0,"label",74),g(1
),m(2,"translate"),c()),2&t&&(a(1),T("
",f(2,1,"dashboard.sched.srchValue_label"),""))}const
Qoe=function(){return["None","Manual Search"]};function
Joe(t,i){if(1&t){const
e=I();l(0,"div",5)(1,"div",70),_(2,joe,3,3,"label",71),_(3,$oe,3,3,"label",71),_(4,Woe,3,3,"label",71),_(5,Koe,3,3,"label",72),c(),l(6,"textarea",73),C("ngModelChange",function(s){return
v(e),d(2).recRule.Description=s})("focusout",function(){return
v(e),d(2).onDescriptionBlur()}),g(7," "),c()()}if(2&t){const
e=d(2);a(1),p("ngSwitch",e.recRule.SearchType),a(1),p("ngSwitchCase","None"),a(1),p("ngSwitchCase","Power
Search"),a(1),p("ngSwitchCase","Manual
Search"),a(2),p("ngModel",e.recRule.Description)("disabled",A(7,Qoe).indexOf(e.recRule.SearchType)>-1)("rows",e.descriptionRows)}}function
Yoe(t,i){1&t&&(l(0,"div"),g(1," Examples of SQL Additional
Tables and Where Conditions are in the MythTV wiki
at"),k(2,"br"),l(3,"a",75),g(4,"Power
Search"),c()())}function Zoe(t,i){if(1&t){const e=I();l(0,"div"),k(
1,"p-divider"),l(2,"div",5)(3,"label",76),g(4),m(5,"translate"),c(),l(6,"p-dropdown",77),C("ngModelChange",function(s){return
v(e),d(2).channel=s})("onChange",function(){return
v(e),d(2).onChannelChange()}),c()(),l(7,"div",5)(8,"label",78),g(9),m(10,"translate"),c(),l(11,"p-calendar",79),C("ngModelChange",function(s){return
v(e),d(2).reqDate=s})("onClose",function(){return
v(e),d(2).onDateChange()})("keyup.enter",function(){return
v(e),d(2).onDateChange()})("onBlur",function(){return
v(e),d(2).onDateChange()}),c()(),l(12,"div",5)(13,"label",80),g(14),m(15,"translate"),c(),l(16,"p-inputNumber",81),C("ngModelChange",function(s){return
v(e),d(2).reqDuration=s})("ngModelChange",function(){return
v(e),d(2).onDurationChange()}),c()()()}if(2&t){const
e=d(2);a(4),S(f(5,23,"dashboard.sched.channel_label")),a(2),q(A(29,Di)),p("options",e.allChannels)("ngModel",e.channel)("editable",!1)("maxlength",0),a(3),S(f(10,25,"dashboard.sched.starttime_label")),a(2),p("ngModel",e.reqDate)("showTime",!0)
("stepMinute",5)("dateFormat","yy/mm/dd")("selectOtherMonths",!0)("showIcon",!0)("showOnFocus",!1)("showButtonBar",!0)("clearButtonStyleClass","hidden"),a(3),S(f(15,27,"dashboard.sched.duration_label")),a(2),p("ngModel",e.reqDuration)("showButtons",!0)("min",5)("max",360)("step",5)}}function
Xoe(t,i){if(1&t){const
e=I();l(0,"div",5)(1,"label",82),g(2),m(3,"translate"),c(),l(4,"div",83)(5,"div",84)(6,"p-radioButton",85),C("ngModelChange",function(s){return
v(e),d(2).metaPrefix=s})("ngModelChange",function(){v(e);const s=d(2);return
s.iCheckbox(s.recRule)}),c(),l(7,"label",86),k(8,"img",87),c()(),l(9,"div",88)(10,"a",89),g(11),m(12,"translate"),c(),k(13,"br"),c(),l(14,"div",90)(15,"p-radioButton",91),C("ngModelChange",function(s){return
v(e),d(2).metaPrefix=s})("ngModelChange",function(){v(e);const s=d(2);return
s.iCheckbox(s.recRule)}),c(),l(16,"label",92),k(17,"img",93),c()(),l(18,"div",94)(19,"a",89),g(20),m(21,"translate"),c(),k(22,"br"),c(),l(23,"div",84)(24,"p-radioButton",95),C
("ngModelChange",function(s){return
v(e),d(2).metaPrefix=s})("ngModelChange",function(){v(e);const s=d(2);return
s.iCheckbox(s.recRule)}),c(),l(25,"label",96),k(26,"img",97),c()(),l(27,"div",88)(28,"a",89),g(29),m(30,"translate"),c(),k(31,"br"),c()(),g(32),l(33,"input",98,99),C("ngModelChange",function(s){return
v(e),d(2).recRule.Inetref=s})("ngModelChange",function(){v(e);const
s=d(2);return
s.iText(s.recRule)}),c(),l(35,"small",55),g(36),m(37,"translate"),k(38,"br"),c()()}if(2&t){const
e=d(2);a(2),S(f(3,13,"dashboard.sched.inetref_label")),a(4),p(&...
",f(12,15,"dashboard.sched.isearch"),"
thetvdb.com"),a(4),p("ngModel",e.metaPrefix),a(4),x("...
",f(21,17,"dashboard.sched.isearch"),"
tvmaze.com"),a(4),p("ngModel",e.metaPrefix),a(4),x("h...
+e.recRule.Title),ln),a(1),T("
",f(30,19,"dashboard.sched.isearch"),"
themoviedb.org"),a(3),T(" ",e.metaPrefix," \xa0
"),a(1),p("ngModel",e.recRule.Inetref),a(3),T("
",f(37,21,"dashboard.sched.inetref_desc"),"")}}function
eae(t,i){1&t&&(k(0,"p-message",105),m(1,"translate")),2&t&&x("text",f(1,1,"common.savesuccess"))}function
tae(t,i){if(1&t&&(k(0,"p-message",106),m(1,"translate")),2&t){const
e=d(3);La("text","",f(1,2,"common.backenderror"),":
",e.errortext,"")}}function nae(t,i){if(1&t){const
e=I();l(0,"div",100),_(1,eae,2,3,"p-message",101),_(2,tae,2,4,"p-message",102),c(),l(3,"p-button",103),C("onClick",function(){return
v(e),d(2).close()}),m(4,"translate"),c(),l(5,"p-button",104),C("onClick",function(){return
v(e),d(2).save()}),m(6,"translate"),c()}if(2&t){const
e=d(2),n=F(1);a(1),p("ngIf",e.successCount>0&&0==e.errorCount&&!n.dirty),a(1),p("ngIf",e.errorCount>0),a(1),x("label",f(4,5,"common.close")),a(2),x("label",f(6,7,"common.save")),p("disabled",!n.dirty||0==e.recRule.Id&&"
Not Recording"==e.recRule.Type||!e.recRule.Title)}}function
iae(t,i){if(1&t){const
e=I();l(0,"p-button",107),C("onClick",function(){return
v(e),d(2).close()}),m(1,"translate"),c(),l(2,"p-button",108),C("onClick",function(){return
v(e),d(2).displayUnsaved=!1}),m(3,"translate"),c()}2&t&&(x("label",f(1,2,"common.nosave")),a(2),x("label",f(3,4,"common.continue")))}const
sae=function(){return{height:"90vw",width:"700px"}},rae=function(){return["Power
Search","Manual
Search"]},OS=function(){return{minWidth:"400px",maxHeight:"400px",maxWidth:"640px"}};function
oae(t,i){if(1&t){const
e=I();l(0,"div")(1,"p-dialog",3),C("visibleChange",function(s){return
v(e),d().displayDlg=s}),m(2,"translate"),l(3,"p"),g(4),c(),l(5,"p"),g(6),c(),_(7,Voe,6,10,"div",4),l(8,"div",5)(9,"label",6),g(10),m(11,"translate"),c(),l(12,"p-dropdown",7,8),C("ngModelChange",function(s){return
v(e),d().recRule.SearchType=s})("onChange",function(){return
v(e),d().onSearchTypeChange()}),c()(),l(14,"div",5)(15,"label",9),g(16
),m(17,"translate"),c(),l(18,"textarea",10),C("ngModelChange",function(s){return
v(e),d().recRule.Title=s})("focusout",function(){return
v(e),d().onTitleBlur()}),g(19,"
"),c()(),_(20,Uoe,4,4,"div",4),l(21,"p"),_(22,zoe,2,2,"span",2),c(),_(23,Joe,8,8,"div",4),_(24,Yoe,5,0,"div",2),_(25,Zoe,17,30,"div",2),k(26,"p-divider"),l(27,"div",5)(28,"label",11),g(29),m(30,"translate"),c(),l(31,"p-dropdown",12,13),C("ngModelChange",function(s){return
v(e),d().recRule.Type=s}),c()(),l(33,"div",5)(34,"label",14),g(35),m(36,"translate"),c(),l(37,"p-dropdown",15,16),C("ngModelChange",function(s){return
v(e),d().recRule.RecGroup=s}),c()(),l(39,"div",5)(40,"p-checkbox",17,18),C("ngModelChange",function(s){return
v(e),d().recRule.Inactive=s}),m(42,"translate"),c()(),l(43,"div",5)(44,"label",19),g(45),m(46,"translate"),c(),l(47,"p-dropdown",20,21),C("ngModelChange",function(s){return
v(e),d().recRule.PlayGroup=s}),c()(),l(49,"div",5)(50,"label",22),g(51),m(52,"translate"),c(),l(53,"p-inpu
tNumber",23),C("ngModelChange",function(s){return
v(e),d().recRule.StartOffset=s}),c()(),l(54,"div",5)(55,"label",24),g(56),m(57,"translate"),c(),l(58,"p-inputNumber",25),C("ngModelChange",function(s){return
v(e),d().recRule.EndOffset=s}),c()(),l(59,"div",5)(60,"p-checkbox",26,27),C("ngModelChange",function(s){return
v(e),d().recRule.NewEpisOnly=s}),m(62,"translate"),c()(),l(63,"div",5)(64,"label",28),g(65),m(66,"translate"),c(),l(67,"p-inputNumber",29),C("ngModelChange",function(s){return
v(e),d().recRule.RecPriority=s}),c()(),l(68,"div",5)(69,"label",30),g(70),m(71,"translate"),c(),l(72,"p-dropdown",31,32),C("ngModelChange",function(s){return
v(e),d().recRule.PreferredInput=s}),c()(),l(74,"div",5)(75,"label",33),g(76),m(77,"translate"),c(),l(78,"p-dropdown",34,35),C("ngModelChange",function(s){return
v(e),d().recRule.DupMethod=s}),c()(),l(80,"div",5)(81,"label",36),g(82),m(83,"translate"),c(),l(84,"p-dropdown",37,38),C("ngModelChange",function(s){return
v(e),d().recRule.DupIn=s}),
c()(),l(86,"div",5)(87,"label",39),g(88),m(89,"translate"),c(),l(90,"p-dropdown",40,41),C("ngModelChange",function(s){return
v(e),d().recRule.AutoExtend=s}),c()(),l(92,"div",5)(93,"label",42),g(94),m(95,"translate"),c(),l(96,"p-multiSelect",43,44),C("ngModelChange",function(s){return
v(e),d().selectedFilters=s})("onChange",function(){v(e);const s=d();return
s.filterToRec(s.recRule)}),c()(),l(98,"div",5)(99,"label",45),g(100),m(101,"translate"),c(),l(102,"p-dropdown",46,47),C("ngModelChange",function(s){return
v(e),d().recRule.RecProfile=s}),c()(),l(104,"div",5)(105,"label",48),g(106),m(107,"translate"),c(),l(108,"p-dropdown",49,50),C("ngModelChange",function(s){return
v(e),d().recRule.StorageGroup=s}),c()(),l(110,"div",5)(111,"label",51),g(112),m(113,"translate"),c(),l(114,"p-inputNumber",52),C("ngModelChange",function(s){return
v(e),d().recRule.MaxEpisodes=s}),c()(),l(115,"div",5)(116,"p-checkbox",53,54),C("ngModelChange",function(s){return
v(e),d().recRule.MaxNewest=s}),m(118,"tra
nslate"),c(),l(119,"small",55),g(120),m(121,"translate"),c()(),l(122,"div",5)(123,"p-checkbox",56,57),C("ngModelChange",function(s){return
v(e),d().recRule.AutoExpire=s}),m(125,"translate"),c()(),l(126,"div",5)(127,"label",58),g(128),m(129,"translate"),c(),l(130,"p-multiSelect",59,60),C("ngModelChange",function(s){return
v(e),d().selectedPostProc=s})("onChange",function(){v(e);const s=d();return
s.postProcToRec(s.recRule)}),c()(),_(132,Xoe,39,23,"div",4),k(133,"br")(134,"br")(135,"br")(136,"br")(137,"br")(138,"br")(139,"br")(140,"br")(141,"br")(142,"br")(143,"br")(144,"br")(145,"br")(146,"br"),_(147,nae,7,9,"ng-template",61),c(),l(148,"p-dialog",62),C("visibleChange",function(s){return
v(e),d().displayUnsaved=s}),m(149,"translate"),l(150,"p"),g(151),m(152,"translate"),c(),_(153,iae,4,6,"ng-template",61),c()()}if(2&t){const
e=d();a(1),q(A(198,sae)),x("header",f(2,148,"dashboard.sched.heading")),p("visible",e.displayDlg)("modal",!0)("closable",!1)("closeOnEscape",!1),a(3),T("
",e.recR
ule.CallSign,""),a(2),yo("
",e.utility.formatDate(e.recRule.StartTime),"
",e.utility.formatTime(e.recRule.StartTime)," -
",e.utility.formatTime(e.recRule.EndTime),"
"),a(1),p("ngIf","Recording
Template"!=e.recRule.Type),a(3),S(f(11,150,"dashboard.sched.srchtype_label")),a(2),q(A(199,Di)),p("options",e.srchTypeList)("ngModel",e.recRule.SearchType)("editable",!1)("maxlength",0)("disabled",e.srchTypeDisabled),a(4),S(f(17,152,"dashboard.sched.title_label")),a(2),p("ngModel",e.recRule.Title)("disabled",-1==A(200,rae).indexOf(e.recRule.SearchType)&&"Recording
Template"!=e.recRule.Type||e.recRule.Id==(null==e.defaultTemplate?null:e.defaultTemplate.Id))("rows",e.titleRows),a(2),p("ngIf","Recording
Template"!=e.recRule.Type),a(2),p("ngIf",e.recRule.Season&&e.recRule.Episode),a(1),p("ngIf","Recording
Template"!=e.recRule.Type),a(1),p("ngIf","Power
Search"==e.recRule.SearchType),a(1),p("ngIf","Manual
Search"==e.recRule.SearchType),a(4),S(f(30,154,"dashboard.sched.type_label")),a(2),q(A(201,Di)
),p("options",e.typeList)("ngModel",e.recRule.Type)("editable",!1)("maxlength",0),a(4),S(f(36,156,"dashboard.sched.recgroup_label")),a(2),q(A(202,Di)),p("options",e.recGroups)("ngModel",e.recRule.RecGroup)("editable",!0)("maxlength",64),a(3),x("label",f(42,158,"dashboard.sched.active_label")),p("ngModel",e.recRule.Inactive)("binary",!0)("trueValue",!1)("falseValue",!0)("disabled",e.override),a(5),S(f(46,160,"dashboard.sched.playgroup_label")),a(2),q(A(203,Di)),p("options",e.playGroups)("ngModel",e.recRule.PlayGroup)("editable",!1)("maxlength",0),a(4),S(f(52,162,"dashboard.sched.startoffset_label")),a(2),p("ngModel",e.recRule.StartOffset)("showButtons",!0)("min",-480)("max",480)("step",1),a(3),S(f(57,164,"dashboard.sched.endoffset_label")),a(2),p("ngModel",e.recRule.EndOffset)("showButtons",!0)("min",-480)("max",480)("step",1),a(2),x("label",f(62,166,"dashboard.sched.newepis_label")),p("ngModel",e.recRule.NewEpisOnly)("binary",!0),a(5),S(f(66,168,"dashboard.sched.priority_label")),a(
2),p("ngModel",e.recRule.RecPriority)("showButtons",!0)("min",-100)("max",100)("step",1),a(3),S(f(71,170,"dashboard.sched.prefinput_label")),a(2),q(A(204,Di)),p("options",e.inputList.Inputs)("ngModel",e.recRule.PreferredInput)("editable",!1)("maxlength",0),a(4),S(f(77,172,"dashboard.sched.dupmethod_label")),a(2),q(A(205,Di)),p("options",e.dupMethodList)("ngModel",e.recRule.DupMethod)("editable",!1)("maxlength",0),a(4),S(f(83,174,"dashboard.sched.dupin_label")),a(2),q(A(206,Di)),p("options",e.dupInList)("ngModel",e.recRule.DupIn)("editable",!1)("maxlength",0),a(4),S(f(89,176,"dashboard.sched.autoextend_label")),a(2),q(A(207,Di)),p("options",e.autoExtendList)("ngModel",e.recRule.AutoExtend)("editable",!1)("maxlength",0),a(4),S(f(95,178,"dashboard.sched.filters_label")),a(2),q(A(208,OS)),p("options",e.recRuleFilters)("ngModel",e.selectedFilters),a(4),S(f(101,180,"dashboard.sched.recprofile_label")),a(2),q(A(209,Di)),p("options",e.recProfileList)("ngModel",e.recRule.RecProfile)("editabl
e",!1)("maxlength",0),a(4),S(f(107,182,"dashboard.sched.sgroup_label")),a(2),q(A(210,Di)),p("options",e.recStorageGroups)("ngModel",e.recRule.StorageGroup)("editable",!1)("maxlength",0),a(4),S(f(113,184,"dashboard.sched.maxeps_label")),a(2),p("ngModel",e.recRule.MaxEpisodes)("showButtons",!0)("min",0)("max",100)("step",1),a(2),x("label",f(118,186,"dashboard.sched.maxnewest_label")),p("ngModel",e.recRule.MaxNewest)("binary",!0),a(4),T("
",f(121,188,"dashboard.sched.maxnewest_desc"),"
"),a(3),x("label",f(125,190,"dashboard.sched.autoexpire_label")),p("ngModel",e.recRule.AutoExpire)("binary",!0),a(5),S(f(129,192,"dashboard.sched.postproc_label")),a(2),q(A(211,OS)),p("options",e.postProcList)("ngModel",e.selectedPostProc)("filter",!0),a(2),p("ngIf","Recording
Template"!=e.recRule.Type),a(16),x("header",f(149,194,"common.unsaved_heading")),p("visible",e.displayUnsaved)("modal",!0),a(3),S(f(152,196,"common.unsaved_message"))}}let
Rd=(()=>{class t{constructor(e,n,s,r,o){this.dvrService=e,t
his.translate=n,this.mythService=s,this.utility=r,this.channelService=o,this.displayDlg=!1,this.displayUnsaved=!1,this.loadCount=0,this.successCount=0,this.errorCount=0,this.errortext="",this.htmlRegex=new
RegExp("<TITLE>|</TITLE>"),this.srchTypeDisabled=!0,this.titleRows=1,this.subTitleRows=1,this.descriptionRows=5,this.override=!1,this.reqDate=new
Date,this.reqDuration=60,this.recRules=[],this.playGroups=[],this.recGroups=[],this.recStorageGroups=[],this.inputList={Inputs:[]},this.recRuleFilters=[],this.selectedFilters=[],this.templates=[],this.typeList=[],this.allChannels=[],this.srchTypeList=[{prompt:this.translate.instant("recrule.srch_None"),value:"None"},{prompt:this.translate.instant("recrule.srch_PowerSearch"),value:"Power
Search"},{prompt:this.translate.instant("recrule.srch_TitleSearch"),value:"Title
Search"},{prompt:this.translate.instant("recrule.srch_KeywordSearch"),value:"Keyword
Search"},{prompt:this.translate.instant("recrule.srch_PeopleSearch"),value:"People
Search
"},{prompt:this.translate.instant("recrule.srch_ManualSearch"),value:"Manual
Search"}],this.dupMethodList=[{prompt:this.translate.instant("dashboard.sched.dupmethod.none"),value:"None"},{prompt:this.translate.instant("dashboard.sched.dupmethod.s_and_d"),value:"Subtitle
and
Description"},{prompt:this.translate.instant("dashboard.sched.dupmethod.s_then_d"),value:"Subtitle
then
Description"},{prompt:this.translate.instant("dashboard.sched.dupmethod.s"),value:"Subtitle"},{prompt:this.translate.instant("dashboard.sched.dupmethod.d"),value:"Description"}],this.dupInList=[{prompt:this.translate.instant("dashboard.sched.dupin.both"),value:"All
Recordings"},{prompt:this.translate.instant("dashboard.sched.dupin.curr"),value:"Current
Recordings"},{prompt:this.translate.instant("dashboard.sched.dupin.prev"),value:"Previous
Recordings"}],this.autoExtendList=[{prompt:this.translate.instant("dashboard.sched.extend_none"),value:"None"},{prompt:"ESPN",value:"ESPN"},{prompt:"MLB",value:"MLB"}],this.r
ecProfileList=[{prompt:this.translate.instant("dashboard.sched.recprof.default"),value:"Default"},{prompt:this.translate.instant("dashboard.sched.recprof.livetv"),value:"Live
TV"},{prompt:this.translate.instant("dashboard.sched.recprof.highq"),value:"High
Quality"},{prompt:this.translate.instant("dashboard.sched.recprof.lowq"),value:"Low
Quality"}],this.postProcList=[{prompt:this.translate.instant("dashboard.sched.postproc.autocommflag"),value:"AutoCommflag"},{prompt:this.translate.instant("dashboard.sched.postproc.autometalookup"),value:"AutoMetaLookup"},{prompt:this.translate.instant("dashboard.sched.postproc.autotranscode"),value:"AutoTranscode"},{prompt:"1",value:"AutoUserJob1"},{prompt:"2",value:"AutoUserJob2"},{prompt:"3",value:"AutoUserJob3"},{prompt:"4",value:"AutoUserJob4"}],this.selectedPostProc=[],this.metaPrefix="",this.templateId=0,this.saveObserver={next:u=>{this.recRule?this.recRule.Id&&u.bool?(this.successCount++,this.currentForm.form.markAsPristine(),setTimeout(()=>
this.inter.summaryComponent.refresh(),3e3),"Not
Recording"==this.recRule.Type&&(this.recRule.Id=0)):!this.recRule.Id&&u.uint?(this.successCount++,this.currentForm.form.markAsPristine(),setTimeout(()=>this.inter.summaryComponent.refresh(),3e3),this.recRule.Id=u.uint):(this.errorCount++,this.currentForm.form.markAsDirty()):(console.log("ERROR:
recRule is
undefined"),this.errorCount++)},error:u=>{if(console.error(u),400==u.status){let
h=u.error.split(this.htmlRegex);h.length>1&&(this.errortext=h[1])}this.errorCount++,this.currentForm.form.markAsDirty()}}}ngOnInit(){this.inter.sched=this}loadLists(){let
e;this.recRules=[],this.playGroups=[],this.recGroups=[],this.recStorageGroups=[],this.inputList.Inputs=[],this.recRuleFilters=[],this.loadCount=0,this.errorCount=0,this.dvrService.GetRecordScheduleList({}).subscribe({next:n=>{this.recRules=n.RecRuleList.RecRules,this.loadSuccess()},error:n=>this.loadFail()}),this.dvrService.GetPlayGroupList().subscribe({next:n=>{this.playGroups=n.PlayGro
upList,this.playGroups.unshift("Default"),this.loadSuccess()},error:n=>this.loadFail()}),this.dvrService.GetRecGroupList().subscribe({next:n=>{this.recGroups=n.RecGroupList,this.loadSuccess()},error:n=>this.loadFail()}),this.dvrService.GetRecStorageGroupList().subscribe({next:n=>{this.recStorageGroups=n.RecStorageGroupList,this.loadSuccess()},error:n=>this.loadFail()}),this.dvrService.GetInputList().subscribe({next:n=>{this.inputList=n.InputList,this.inputList.Inputs.unshift({Id:0,CardId:0,SourceId:0,InputName:"",DisplayName:this.translate.instant("dashboard.sched.input_any"),QuickTune:!1,RecPriority:0,ScheduleOrder:0,LiveTVOrder:0}),this.loadSuccess()},error:n=>this.loadFail()}),this.dvrService.GetRecRuleFilterList().subscribe({next:n=>{this.recRuleFilters=n.RecRuleFilterList.RecRuleFilters,this.loadSuccess()},error:n=>this.loadFail()});for(let
n=1;n<5;n++)e=this.translate.instant("settings.services.job_default",{num:n}),this.mythService.GetSetting({HostName:"_GLOBAL_",Key:"UserJob
Desc"+n,Default:e}).subscribe({next:s=>{this.postProcList[n+2].prompt=s.String,this.loadSuccess()},error:()=>this.loadFail()});this.channelService.GetChannelInfoList({Details:!0}).subscribe(n=>{this.allChannels=n.ChannelInfoList.ChannelInfos,this.allChannels.forEach(s=>s.Description=s.ChanNum+"
"+s.ChannelName+"
("+s.CallSign+")"),this.loadSuccess()})}loadSuccess(){this.loadCount++,11==this.loadCount&&(this.loadCount=0,this.setupData(),this.displayDlg=!0,this.currentForm.form.markAsPristine())}loadFail(){this.errorCount++}open(e,n,s){this.templateId=0,this.reqProgram=e,this.reqChannel=n,this.reqRecRule=s,this.titleRows=1,e||s?(this.srchTypeDisabled=!0,this.srchTypeList[0].inactive=!1):(this.srchTypeDisabled=!1,this.srchTypeList[0].inactive=!0),this.loadLists()}setupData(){let
e=!1;this.program=this.reqProgram;let
n="";this.reqRecRule&&(n=this.reqRecRule.Type),this.reqRecRule?["Override
Recording","Do not
Record"].indexOf(n)>-1&&!this.reqRecRule.Id?(e=!0,this.recRule=void
0):this.rec
Rule=Object.assign({},this.reqRecRule):this.recRule=void
0,this.reqChannel?this.channel=this.reqChannel:this.reqRecRule&&(this.channel=this.allChannels.find(r=>{var
o;return r.ChanId==(null===(o=this.reqRecRule)||void 0===o?void
0:o.ChanId)})),this.program&&!this.channel&&this.program.Channel&&(this.channel=this.program.Channel);var
s=0;if(this.typeList=[],this.templates=[{Id:0,Title:""}],this.defaultTemplate=void
0,this.program&&this.program.Recording&&!e&&(s=this.program.Recording.RecordId),this.recRules.forEach((r,o)=>{r.Id==s&&(this.recRule=r,n=this.recRule.Type),"Recording
Template"==r.Type&&(this.templates.push(r),"Default"==r.Category&&(this.defaultTemplate=r))}),this.recRule||(this.recRule={Id:0}),this.recRule.Title||(this.recRule.Title="",this.recRule.SubTitle="",this.recRule.Description="",this.defaultTemplate&&this.mergeTemplate(this.recRule,this.defaultTemplate)),this.recRule.SearchType||(this.recRule.SearchType="None"),this.program&&this.channel&&"None"==this.recRule.Se
archType&&this.mergeProgram(this.recRule,this.program,this.channel),e&&(this.recRule.ParentId=this.program.Recording.RecordId),n||(n="Not
Recording"),!this.recRule.StartTime){let r=new
Date;this.recRule.StartTime=r.toISOString(),this.recRule.FindDay=(r.getDay()+1)%7,this.recRule.FindTime=r.toTimeString().slice(0,8)}this.filterFromRec(this.recRule),this.postProcFromRec(this.recRule),this.recRule.Type=n,this.setupTypeList(this.recRule),this.srchTypeDisabled||this.onSearchTypeChange(),this.override&&(this.recRule.Inactive=!1),setTimeout(()=>{this.recRule&&(this.recRule.Type=n),this.currentForm.form.markAsPristine()},10)}setupTypeList(e){let
n=e.Type;if(this.typeList.length=0,this.override=!1,"Recording
Template"==n)this.typeList.push({prompt:this.translate.instant("dashboard.sched.type.mod_template"),value:"Recording
Template"}),"Default"!=e.Category&&e.Id>0&&this.typeList.push({prompt:this.translate.instant("dashboard.sched.type.del_template"),value:"Not
Recording"});else if(["Overrid
e Recording","Do not
Record"].indexOf(n)>-1)this.override=!0,this.typeList.push({prompt:this.translate.instant("dashboard.sched.type.del_override"),value:"Not
Recording"},{prompt:this.translate.instant("dashboard.sched.type.rec_override"),value:"Override
Recording"},{prompt:this.translate.instant("dashboard.sched.type.dont_rec_override"),value:"Do
not Record"});else{const s="Manual
Search"==e.SearchType,r="None"!=e.SearchType;this.typeList.push({prompt:this.translate.instant("dashboard.sched.type.not"),value:"Not
Recording"}),(e.CallSign&&!r||s)&&this.typeList.push({prompt:this.translate.instant("dashboard.sched.type.this"),value:"Single
Record"}),s||this.typeList.push({prompt:this.translate.instant("dashboard.sched.type.one"),value:"Record
One"}),(!e.CallSign||r)&&this.typeList.push({prompt:this.translate.instant("dashboard.sched.type.weekly"),value:"Record
Weekly"},{prompt:this.translate.instant("dashboard.sched.type.daily"),value:"Record
Daily"}),s||this.typeList.push({prompt:thi
s.translate.instant("dashboard.sched.type.all"),value:"Record
All"})}-1==this.typeList.findIndex(s=>s.value==e.Type)&&(e.Type=this.typeList[0].value)}mergeProgram(e,n,s){e.Title=n.Title,e.SubTitle=n.SubTitle,e.Description=n.Description,e.Category=n.Category,e.StartTime=n.StartTime,e.EndTime=n.EndTime,e.SeriesId=n.SeriesId,e.ProgramId=n.ProgramId,e.ChanId=s.ChanId,e.CallSign=s.CallSign,e.Season=n.Season,e.Episode=n.Episode;let
r=new
Date(e.StartTime);e.FindDay=(r.getDay()+1)%7,e.FindTime=r.toTimeString().slice(0,8)}filterFromRec(e){this.selectedFilters=[],this.recRuleFilters.forEach(n=>{0!=(e.Filter&1<<n.Id)&&this.selectedFilters.push(n.Id)})}filterToRec(e){e.Filter=0,this.selectedFilters.forEach(n=>{e.Filter|=1<<n})}postProcFromRec(e){this.selectedPostProc=[];let
n=e;this.postProcList.forEach(s=>{n[s.value]&&this.selectedPostProc.push(s.value)})}postProcToRec(e){let
n=e;this.postProcList.forEach(s=>n[s.value]=!1),this.selectedPostProc.forEach(s=>n[s]=!0)}iCheckbox(e){e.Inetref||(e.I
netref=""),e.Inetref=e.Inetref.includes(".py_")?e.Inetref.replace(/^.*\.py_/,this.metaPrefix):this.metaPrefix+e.Inetref}iText(e){this.metaPrefix=e.Inetref.replace(/_.*/,"_"),this.metaPrefix.endsWith(".py_")||(this.metaPrefix="")}templateChange(e){if(this.templateId){const
n=this.templates.find(s=>s.Id==this.templateId);n&&this.mergeTemplate(e,n)}}onSearchTypeChange(){this.recRule&&(this.recRule.Title="",this.reqDate=new
Date,this.reqDate.setMinutes(0),this.reqDate.setSeconds(0,0),this.reqDuration=60,this.onDateChange(),"Manual
Search"==this.recRule.SearchType&&(this.recRule.Description="",setTimeout(()=>this.onChannelChange(),100)),this.subTitleRows="Power
Search"==this.recRule.SearchType?5:1,this.descriptionRows=["None","Power
Search"].indexOf(this.recRule.SearchType)>-1?5:1,this.recRule.SubTitle="",this.recRule.Description="",this.setupTypeList(this.recRule)),this.onTitleBlur(),this.onDescriptionBlur()}onTitleBlur(){if(this.recRule){if(this.recRule.Title=this.recRule.Title.trim(),
this.recRule.Title.length>0){let e;["Manual Search","Power
Search"].indexOf(this.recRule.SearchType)>-1&&this.recRule.Title.length>0&&(e="("+this.trSearch(this.recRule.SearchType)+")"),"Recording
Template"==this.recRule.Type&&this.recRule.Title.length>0&&(e="("+this.translate.instant("recrule.template")+")"),e&&-1==this.recRule.Title.indexOf(e)&&(this.recRule.Title=this.recRule.Title+"
"+e)}"Manual
Search"==this.recRule.SearchType&&(this.recRule.Description=this.recRule.Title)}}onDescriptionBlur(){this.recRule&&(this.recRule.Description=this.recRule.Description.trim(),["Title
Search","Keyword Search","People
Search"].indexOf(this.recRule.SearchType)>-1&&(this.recRule.Title=this.recRule.Description.length>0?this.recRule.Description+"
("+this.trSearch(this.recRule.SearchType)+")":""))}onChannelChange(){this.recRule&&this.channel&&(this.recRule.ChanId=this.channel.ChanId,this.recRule.CallSign=this.channel.CallSign)}onDateChange(){this.recRule&&(this.recRule.StartTime=this.reqDate.toISO
String(),this.recRule.FindDay=(this.reqDate.getDay()+1)%7,this.recRule.FindTime=this.reqDate.toTimeString().slice(0,8),this.onDurationChange())}onDurationChange(){if(this.recRule){let
e=new Date(this.recRule.StartTime),n=new
Date(e.getTime()+6e4*this.reqDuration);this.recRule.EndTime=n.toISOString()}}trSearch(e){return
this.translate.instant("recrule.srch_"+e.replace("
",""))}mergeTemplate(e,n){e.Inactive=n.Inactive,e.RecPriority=n.RecPriority,e.PreferredInput=n.PreferredInput,e.StartOffset=n.StartOffset,e.EndOffset=n.EndOffset,e.DupMethod=n.DupMethod,e.DupIn=n.DupIn,e.NewEpisOnly=n.NewEpisOnly,e.Filter=n.Filter,e.RecProfile=n.RecProfile,e.RecGroup=n.RecGroup,e.StorageGroup=n.StorageGroup,e.PlayGroup=n.PlayGroup,e.AutoExpire=n.AutoExpire,e.MaxEpisodes=n.MaxEpisodes,e.MaxNewest=n.MaxNewest,e.AutoCommflag=n.AutoCommflag,e.AutoMetaLookup=n.AutoMetaLookup,e.AutoTranscode=n.AutoTranscode,e.AutoUserJob1=n.AutoUserJob1,e.AutoUserJob2=n.AutoUserJob2,e.AutoUserJob3=n.AutoUserJob3,e.AutoUserJ
ob4=n.AutoUserJob4,e.Transcoder=n.Transcoder,this.postProcFromRec(e),this.filterFromRec(e)}close(){!this.recRule||0==this.recRule.Id&&"Not
Recording"==this.recRule.Type?this.displayDlg=!1:this.currentForm.dirty?this.displayUnsaved?(this.displayUnsaved=!1,this.displayDlg=!1,this.currentForm.form.markAsPristine()):this.displayUnsaved=!0:(this.displayDlg=!1,this.displayUnsaved=!1)}save(){if(this.errortext="",this.recRule&&(0!=this.recRule.Id||"Not
Recording"!=this.recRule.Type))if(this.errorCount=0,this.successCount=0,this.recRule.Id>0&&"Not
Recording"==this.recRule.Type)this.dvrService.RemoveRecordSchedule(this.recRule.Id).subscribe(this.saveObserver);else
if(this.recRule.Id>0){const
e=this.createRequest(this.recRule);e.RecordId=this.recRule.Id,this.dvrService.UpdateRecordSchedule(e).subscribe(this.saveObserver)}else{const
e=this.createRequest(this.recRule);this.dvrService.AddRecordSchedule(e).subscribe(this.saveObserver)}}createRequest(e){return{Title:e.Title,Subtitle:e.SubTitle,Desc
ription:e.Description,Category:e.Category,StartTime:e.StartTime,EndTime:e.EndTime,SeriesId:e.SeriesId,ProgramId:e.ProgramId,ChanId:e.ChanId,Station:e.CallSign,FindDay:e.FindDay,FindTime:e.FindTime,ParentId:e.ParentId,Inactive:e.Inactive,Season:e.Season,Episode:e.Episode,Inetref:e.Inetref,Type:e.Type,SearchType:e.SearchType,RecPriority:e.RecPriority,PreferredInput:e.PreferredInput,StartOffset:e.StartOffset,EndOffset:e.EndOffset,LastRecorded:e.LastRecorded,DupMethod:e.DupMethod,DupIn:e.DupIn,NewEpisOnly:e.NewEpisOnly,Filter:e.Filter,RecProfile:e.RecProfile,RecGroup:e.RecGroup,StorageGroup:e.StorageGroup,PlayGroup:e.PlayGroup,AutoExpire:e.AutoExpire,MaxEpisodes:e.MaxEpisodes,MaxNewest:e.MaxNewest,AutoCommflag:e.AutoCommflag,AutoTranscode:e.AutoTranscode,AutoMetaLookup:e.AutoMetaLookup,AutoUserJob1:e.AutoUserJob1,AutoUserJob2:e.AutoUserJob2,AutoUserJob3:e.AutoUserJob3,AutoUserJob4:e.AutoUserJob4,Transcoder:e.Transcoder,AutoExtend:e.AutoExtend}}URLencode(e){return
encodeURI(e)}confirm(e)
{return
oe(window.confirm(e))}canDeactivate(){return!this.currentForm||!this.currentForm.dirty||this.confirm(this.translate.instant("settings.common.warning"))}onWindowClose(e){this.currentForm&&this.currentForm.dirty&&(e.preventDefault(),e.returnValue=!1)}}return
t.\u0275fac=function(e){return
new(e||t)(D(jo),D(Oe),D(qt),D(cs),D(Or))},t.\u0275cmp=z({type:t,selectors:[["app-schedule"]],viewQuery:function(e,n){if(1&e&&W(Noe,5),2&e){let
s;V(s=B())&&(n.currentForm=s.first)}},hostBindings:function(e,n){1&e&&C("beforeunload",function(r){return
n.onWindowClose(r)},!1,ni)},inputs:{inter:"inter"},decls:3,vars:1,consts:[["name","schedform",1,"ml-3","mr-3"],["schedform","ngForm"],[4,"ngIf"],[3,"header","visible","modal","closable","closeOnEscape","visibleChange"],["class","form-group
field",4,"ngIf"],[1,"form-group","field"],["for","SearchType",1,"label","block"],["optionLabel","prompt","optionValue","value","name","SearchType","optionDisabled","inactive",3,"options","ngModel","editable","max
length","disabled","ngModelChange","onChange"],["SearchType","ngModel"],["for","Title",1,"label","block"],["pInputTextArea","","id","Title","name","Title",1,"text-lg","mb-2","form-control","w-full",3,"ngModel","disabled","rows","ngModelChange","focusout"],["for","Type",1,"label","block"],["optionLabel","prompt","optionValue","value","name","Type",3,"options","ngModel","editable","maxlength","ngModelChange"],["Type","ngModel"],["for","RecGroup",1,"label","block"],["name","RecGroup",3,"options","ngModel","editable","maxlength","ngModelChange"],["RecGroup","ngModel"],["inputId","Active","name","Active",1,"label","mb-2","w-full",3,"ngModel","binary","label","trueValue","falseValue","disabled","ngModelChange"],["Active","ngModel"],["for","PlayGroup",1,"label","block"],["PlayGroup","Type","name","PlayGroup",3,"options","ngModel","editable","maxlength","ngModelChange"],["PlayGroup","ngModel"],["for","StartOffset",1,"label","block"],["name","StartOffset","id","StartOffset",3,"ngModel","show
Buttons","min","max","step","ngModelChange"],["for","EndOffset",1,"label","block"],["name","EndOffset","id","EndOffset",3,"ngModel","showButtons","min","max","step","ngModelChange"],["inputId","NewEpisOnly","name","NewEpisOnly",1,"label","mb-2","w-full",3,"ngModel","binary","label","ngModelChange"],["UseEIT","ngModel"],["for","RecPriority",1,"label","block"],["name","RecPriority","id","RecPriority",3,"ngModel","showButtons","min","max","step","ngModelChange"],["for","PreferredInput",1,"label","block"],["optionLabel","DisplayName","optionValue","Id","name","PreferredInput",3,"options","ngModel","editable","maxlength","ngModelChange"],["PreferredInput","ngModel"],["for","DupMethod",1,"label","block"],["optionLabel","prompt","optionValue","value","name","DupMethod",3,"options","ngModel","editable","maxlength","ngModelChange"],["DupMethod","ngModel"],["for","DupIn",1,"label","block"],["optionLabel","prompt","optionValue","value","name","DupIn",3,"options","ngModel","editable","maxlength
","ngModelChange"],["DupIn","ngModel"],["for","AutoExtend",1,"label","block"],["optionLabel","prompt","optionValue","value","name","AutoExtend",3,"options","ngModel","editable","maxlength","ngModelChange"],["AutoExtend","ngModel"],["for","Filters",1,"label","block"],["optionLabel","Description","optionValue","Id","name","Filters",3,"options","ngModel","ngModelChange","onChange"],["Filters","ngModel"],["for","RecProfile",1,"label","block"],["optionLabel","prompt","optionValue","value","name","RecProfile",3,"options","ngModel","editable","maxlength","ngModelChange"],["RecProfile","ngModel"],["for","StorageGroup",1,"label","block"],["name","StorageGroup",3,"options","ngModel","editable","maxlength","ngModelChange"],["StorageGroup","ngModel"],["for","MaxEpisodes",1,"label","block"],["name","MaxEpisodes","id","MaxEpisodes",3,"ngModel","showButtons","min","max","step","ngModelChange"],["inputId","MaxNewest","name","MaxNewest",1,"label","mb-2","w-full",3,"ngModel","binary","label","ngModel
Change"],["MaxNewest","ngModel"],[1,"block"],["inputId","AutoExpire","name","AutoExpire",1,"label","mb-2","w-full",3,"ngModel","binary","label","ngModelChange"],["AutoExpire","ngModel"],["for","PostProc",1,"label","block"],["optionLabel","prompt","optionValue","value","name","PostProc",3,"options","ngModel","filter","ngModelChange","onChange"],["PostProc","ngModel"],["pTemplate","footer"],[3,"header","visible","modal","visibleChange"],["for","Template",1,"label","block"],["optionLabel","Title","optionValue","Id","name","Template",1,"pr-2",3,"options","ngModel","editable","maxlength","ngModelChange","onClick","onChange"],["Template","ngModel"],["for","SubTitle","class","label
block",4,"ngIf"],["pInputTextArea","","id","SubTitle","name","SubTitle","class","text-lg
mb-2 form-control
w-full",3,"ngModel","disabled","rows","ngModelChange",4,"ngIf"],["for","SubTitle",1,"label","block"],["pInputTextArea","","id","SubTitle","name","SubTitle",1,"text-lg","mb-2","form-control","w-full",3,"ngMo
del","disabled","rows","ngModelChange"],[3,"ngSwitch"],["for","Description","class","label
block
mb-2",4,"ngSwitchCase"],["for","Description","class","label
block
mb-2",4,"ngSwitchDefault"],["pInputTextArea",&qu...
],["for","Inetref",1,"label","block"],[1,"grid","p-0"],[1,"col-3","flex","align-items-center"],["name","prefix","value","ttvdb4.py_","inputId","ttvdb",3,"ngModel","ngModelChange"],["for","ttvdb"],["src","images/metadata/thetvdb.png","alt","thtvdb","height","40",1,"pl-1"],[1,"col-9","flex","align-items-center"],["target","_blank",3,"href"],[1,"col-5","flex","align-items-center"],["name","prefix","value","tvmaze.py_","inputId","tvmaze",3,"ngModel","ngModelChange"],["for","tvmaze"],["src","images/metadata/tvmaze.png","alt","tvmaze","height","40",1,"pl-1"],[1,"col-7","flex","align-items-center"],["name","prefix","value","tmdb3.py_","inputId","tmdb",3,"ngModel","ngModelChange"],["for","tmdb"],["src","images/metadata/themoviedb.svg","alt","themoviedb","height","40",1,"pl-1"],["pInputText","","id","Inetref","name","Inetref",1,"mb-2","form-control","w-full",3,"ngModel","ngModelChange"],["Inetref","ngModel"],[1,"col-12",2,"text-align","left"],["severity","success",3,"text",4,"ngIf"],["severi
ty","error",3,"text",4,"ngIf"],["icon","pi
pi-times-circle","styleClass","p-button-warning",3,"label","onClick"],["icon","pi
pi-check-circle","styleClass","p-button-success",3,"label","disabled","onClick"],["severity","success",3,"text"],["severity","error",3,"text"],["icon","pi
pi-times-circle","styleClass","p-button-danger",3,"label","onClick"],["icon","pi
pi-check-circle","styleClass","p-button-success",3,"label","onClick"]],template:function(e,n){1&e&&(l(0,"form",0,1),_(2,oae,154,212,"div",2),c()),2&e&&(a(2),p("ngIf",n.recRule))},directives:[ze,Ue,He,Q,bn,Ot,Te,_e,_n,Ye,gr,Ja,km,x7,xr,pt,sn,X2,Sd,ne,qe,ve],pipes:[ce],styles:[""]}),t})();function
aae(t,i){if(1&t){const
e=I();l(0,"p-checkbox",27,28),C("onChange",function(s){return
v(e).filterCallback(s.checked)}),m(2,"translate"),c()}if(2&t){const
e=i.$implicit;Bn("label","",f(2,3,"dashboard.upcoming.showall"),"
"),p("ngModel",e)("binary",!0)}}function
lae(t,i){if(1&t){const
e=I();l(0,"p-dropdown",29),C("onChange",function(s){retu
rn v(e).filterCallback(s.value)}),m(1,"translate"),c()}if(2&t){const
e=i.$implicit,n=d(2);x("placeholder",f(1,4,"settings.chanedit.all")),p("ngModel",e)("options",n.recRules)("showClear",!0)}}const
cae=function(){return{width:"2rem",height:"2rem"}};function
uae(t,i){1&t&&(l(0,"div"),k(1,"p-progressSpinner"),c()),2&t&&(a(1),q(A(2,cae)))}function
dae(t,i){if(1&t){const
e=I();l(0,"button",30),C("click",function(){return
v(e),d(2).refresh()}),m(1,"translate"),c()}2&t&&x("pTooltip",f(1,1,"common.refresh"))}function
pae(t,i){if(1&t&&(l(0,"tr")(1,"th")(2,"p-columnFilter",10),_(3,aae,3,5,"ng-template",11),c(),g(4),m(5,"translate"),l(6,"p-columnFilter",12),_(7,lae,2,6,"ng-template",11),c(),_(8,uae,2,3,"div",13),_(9,dae,2,3,"ng-template",null,14,we),g(11),c()(),l(12,"tr")(13,"th",15),g(14),m(15,"translate"),c(),l(16,"th",16),g(17),m(18,"translate"),c(),k(19,"th",17),l(20,"th",18),g(21),m(22,"translate"),c(),l(23,"th",19),g(24),m(25,"translate"),c(),l(26,"th",20),g(27),m(28,"translate"),c(),l(
29,"th",21),g(30),m(31,"translate"),c(),l(32,"th",15),g(33),m(34,"translate"),c(),l(35,"th",22),g(36),m(37,"translate"),c(),l(38,"th",18),g(39),m(40,"translate"),c(),l(41,"th",23),g(42),m(43,"translate"),c(),l(44,"th",24),k(45,"button",25),c(),l(46,"th",24),k(47,"button",26),c()()),2&t){const
e=F(10),n=d();a(2),p("showMenu",!1)("showClearButton",!1),a(2),T("
\xa0\xa0\xa0\xa0\xa0 ",f(5,20,"dashboard.upcoming.recrule"),": \xa0
"),a(2),p("showMenu",!1)("showClearButton",!1),a(2),p("ngIf",n.refreshing)("ngIfElse",e),a(3),T("
\xa0\xa0\xa0",n.programs.length," Rows "),a(3),T("
",f(15,22,"dashboard.upcoming.date")," "),a(3),T("
",f(18,24,"dashboard.upcoming.time"),"
"),a(4),T("",f(22,26,"dashboard.upcoming.encoder"),"
"),a(3),T("
",f(25,28,"dashboard.recordings.title"),""),a(3),S(f(28,30,"dashboard.recordings.subtitle")),a(3),S(f(31,32,"dashboard.recordings.seas_ep")),a(3),T("
",f(34,34,"dashboard.recordings.orig_airdate"),"
"),a(3),S(f(37,36,"dashboard.recordings.channel")),a(3),T("
",f(4
0,38,"dashboard.recordings.recgrp")," "),a(3),T("
",f(43,40,"dashboard.upcoming.status"),"
"),a(3),p("disabled",!0),a(2),p("disabled",!0)}}function
hae(t,i){if(1&t&&(l(0,"div"),g(1),c()),2&t){const
e=d().$implicit;a(1),We(" ",e.Season,"x",e.Episode,"
")}}const
mae=function(){return["WillRecord","Recording","Recorded"]};function
fae(t,i){if(1&t&&(l(0,"div",42),g(1),c()),2&t){const
e=d().$implicit,n=d();p("ngClass",A(2,mae).indexOf(e.Recording.StatusName)>-1?"text-green-500":"text-pink-500"),a(1),T("
",n.dataService.recStatusText[e.Recording.StatusName]," ")}}function
gae(t,i){if(1&t){const
e=I();l(0,"button",43),C("click",function(){v(e);const
s=d().$implicit;return
d().stopRequest(s)}),m(1,"translate"),c()}2&t&&x("pTooltip",f(1,1,"dashboard.recordings.stop_recording"))}function
_ae(t,i){if(1&t){const
e=I();l(0,"button",44),C("click",function(){v(e);const
s=d().$implicit;return
d().override(s)}),m(1,"translate"),c()}2&t&&x("pTooltip",f(1,1,"dashboard.recordings.override_rule"))}const
bae=function(){return["Recording","Failing"]};function
vae(t,i){if(1&t){const
e=I();l(0,"tr")(1,"td",31),k(2,"div",32),c(),l(3,"td",33),g(4),c(),l(5,"td",34),g(6),m(7,"number"),c(),l(8,"td",18),g(9),c(),l(10,"td",35),g(11),c(),l(12,"td",36),g(13),c(),l(14,"td",21),_(15,hae,2,2,"div",37),c(),l(16,"td",15),k(17,"div",32),c(),l(18,"td",22),g(19),c(),l(20,"td",18),g(21),c(),l(22,"td",23),_(23,fae,2,3,"div",38),c(),l(24,"td",24),_(25,gae,2,3,"button",39),_(26,_ae,2,3,"ng-template",null,40,we),c(),l(28,"td",24)(29,"button",41),C("click",function(){const
r=v(e).$implicit;return
d().updateRecRule(r)}),m(30,"translate"),c()()()}if(2&t){const
e=i.$implicit,n=F(27),s=d();a(2),p("innerHTML",s.formatStartDate(e),Bt),a(2),T("
",s.formatStartTime(e),""),a(2),T("
",Dt(7,17,s.getDuration(e),"1.0-0"),"
min"),a(3),T("",e.Recording.EncoderName," "),a(2),T("
",e.Title,""),a(1),x("pTooltip",e.Description),a(1),T("
",e.SubTitle.slice(0,50),""),a(2),p("ngIf",e.Season>0||e.Episode>0),a(2),p("innerHTML",s.f
ormatAirDate(e),Bt),a(2),We(" ",e.Channel.ChanNum,"
",e.Channel.CallSign,""),a(2),S(e.Recording.RecGroup),a(2),p("ngIf",e.Recording),a(2),p("ngIf",A(22,bae).indexOf(e.Recording.StatusName)>-1)("ngIfElse",n),a(4),x("pTooltip",f(30,20,"dashboard.recordings.edit_rule")),p("disabled",e.Recording&&7==e.Recording.RecType)}}function
Cae(t,i){1&t&&(k(0,"p-message",49),m(1,"translate")),2&t&&x("text",f(1,1,"common.networkfail"))}function
yae(t,i){if(1&t){const
e=I();l(0,"div",45),_(1,Cae,2,3,"p-message",46),c(),l(2,"p-button",47),C("onClick",function(){return
v(e),d().displayStop=!1}),m(3,"translate"),c(),l(4,"p-button",48),C("onClick",function(){v(e);const
s=d();return s.stopRecording(s.program)}),m(5,"translate"),c()}if(2&t){const
e=d();a(1),p("ngIf",e.errorCount>0),a(1),x("label",f(3,3,"common.close")),a(2),x("label",f(5,5,"dashboard.recordings.stop_recording"))}}let
wae=(()=>{class
t{constructor(e,n,s,r,o){this.dvrService=e,this.messageService=n,this.translate=s,this.dataService=r,this.u
tility=o,this.programs=[],this.recRules=[],this.allRecRules=[],this.activeRecRules=[],this.defaultRecRule={Id:0,Title:"settings.chanedit.all"},this.displayUpdateDlg=!1,this.showAllStatuses=!1,this.refreshing=!1,this.loaded=!1,this.inter={summaryComponent:this},this.displayStop=!1,this.errorCount=0,this.translate.get(this.defaultRecRule.Title).subscribe(u=>this.defaultRecRule.Title=u),this.loadRecRules()}ngOnInit(){}refresh(){this.refreshing=!0,this.loadRecRules(),this.loadLazy(this.lazyLoadEvent)}loadRecRules(){this.dvrService.GetRecordScheduleList({}).subscribe({next:e=>{this.allRecRules.length=0,this.allRecRules.push(this.defaultRecRule),this.activeRecRules.length=0,this.activeRecRules.push(this.defaultRecRule),e.RecRuleList.RecRules.forEach(n=>{if("Recording
Template"!=n.Type){let s={Id:n.Id,Title:n.Title.substring(0,30)+"
["+this.utility.recTypeTrans[n.Type]+"]"};this.allRecRules.push(s),n.NextRecording&&this.activeRecRules.push(s)}})}})}loadLazy(e){this.lazyLoadEvent=e;let
n={S
tartIndex:0,Count:1};e.first&&(n.StartIndex=e.first),e.rows&&(n.Count=e.rows,n.Count<100&&(n.Count=100)),e.filters&&(e.filters.ShowAll.value&&(n.ShowAll=!0),e.filters.RecordId.value&&(n.RecordId=e.filters.RecordId.value)),this.recRules.length=0,n.ShowAll?this.recRules.push(...this.allRecRules):this.recRules.push(...this.activeRecRules),this.dvrService.GetUpcomingList(n).subscribe(s=>{let
r=s.ProgramList;this.programs.length=s.ProgramList.TotalAvailable,this.programs.splice(r.StartIndex,r.Count,...r.Programs),this.programs=[...this.programs],this.refreshing=!1})}formatStartDate(e){return
this.utility.formatDate(e.Recording.StartTs,!0)}formatAirDate(e){return
e.Airdate?this.utility.formatDate(e.Airdate+"
00:00",!0):""}formatStartTime(e){return(new
Date(e.Recording.StartTs).toLocaleTimeString()+" ").replace(/:.. /,"
")}getDuration(e){let n=new Date(e.Recording.StartTs).getTime();return(new
Date(e.Recording.EndTs).getTime()-n)/6e4}updateRecRule(e){this.inter.sched&&this.inter.sched.open
(e)}override(e){this.inter.sched&&(7==e.Recording.RecType?this.inter.sched.open(e):this.inter.sched.open(e,void
0,{Type:"Override
Recording"}))}stopRequest(e){e.Recording.RecordId&&(this.program=e,this.displayStop=!0)}stopRecording(e){this.errorCount=0,this.dvrService.StopRecording(e.Recording.RecordedId).subscribe({next:n=>{n.bool?(this.displayStop=!1,setTimeout(()=>this.inter.summaryComponent.refresh(),3e3)):this.errorCount++},error:n=>{this.errorCount++}})}}return
t.\u0275fac=function(e){return
new(e||t)(D(jo),D(Gi),D(Oe),D(Ll),D(cs))},t.\u0275cmp=z({type:t,selectors:[["app-upcoming"]],features:[Pe([Gi])],decls:24,vars:25,consts:[[2,"white-space","pre-line"],["position","center"],[1,"block","card","w-full"],[2,"height","90vh"],["scrollHeight","flex","styleClass","p-datatable-striped",3,"value","scrollable","virtualScroll","rows","lazy","rowHover","onLazyLoad"],["pTemplate","header"],["pTemplate","body"],[3,"header","visible","modal","draggable","resizable","visibleChange"],["pTem
plate","footer"],[3,"inter"],["field","ShowAll","matchMode","equals",3,"showMenu","showClearButton"],["pTemplate","filter"],["field","RecordId","matchMode","equals",3,"showMenu","showClearButton"],[4,"ngIf","ngIfElse"],["refreshBn",""],[1,"justify-content-end","p-1",2,"flex-basis","8%"],[1,"justify-content-end","p-1",2,"flex-basis","6%"],[1,"justify-content-end","pl-1","pr-3","pt-1","pb-1",2,"flex-basis","7%"],[1,"p-1",2,"flex-basis","8%"],[1,"p-1",2,"flex-basis","12%"],[1,"p-1",2,"flex-basis","18%"],[1,"p-1",2,"flex-basis","4%"],[1,"p-1",2,"flex-basis","10%"],[1,"p-1",2,"flex-basis","7%"],[1,"p-1",2,"flex-basis","2%"],["pButton","","pRipple","","icon","pi
pi-paperclip",1,"p-button-text","p-button-primary",3,"disabled"],["pButton","","pRipple","","icon","pi
pi-pencil",1,"p-button-text","p-button-primary",3,"disabled"],["inputId","showAllStatuses","name","showAllStatuses",3,"ngModel","binary","label","onChange"],["showAll","ngModel"],["name","rulefilter","optionLabel","Title","option
Value","Id",3,"ngModel","options","placeholder","showClear","onChange"],["pButton","","pRipple","","icon","pi
pi-refresh",1,"p-button-text",".p-button-success",3,"pTooltip","click"],[1,"justify-content-end","p-1","overflow-hidden",2,"flex-basis","8%"],[3,"innerHTML"],[1,"justify-content-end","p-1","overflow-hidden",2,"flex-basis","6%"],[1,"justify-content-end","pl-1","pr-3","pt-1","pb-1","overflow-hidden",2,"flex-basis","7%"],[1,"p-1","overflow-hidden",2,"flex-basis","12%"],["tooltipPosition","top",1,"p-1","overflow-hidden",2,"flex-basis","18%",3,"pTooltip"],[4,"ngIf"],[3,"ngClass",4,"ngIf"],["pButton","","pRipple","","icon","pi
pi-stop-circle","class","p-button-text
p-button-danger","tooltipPosition","left",3,"pTooltip","click",4,"ngIf","ngIfElse"],["overrideBn",""],["pButton","","pRipple","","icon","pi
pi-pencil","tooltipPosition","left",1,"p-button-text","p-button-primary",3,"pTooltip","disabled","click"],[3,"ngClass"],["pButton","","pRipple","","icon","pi
pi-stop-circle","toolti
pPosition","left",1,"p-button-text","p-button-danger",3,"pTooltip","click"],["pButton","","pRipple","","icon","pi
pi-paperclip","tooltipPosition","left",1,"p-button-text","p-button-primary",3,"pTooltip","click"],[1,"col-12",2,"text-align","left"],["severity","error",3,"text",4,"ngIf"],["icon","pi
pi-times-circle","styleClass","p-button-warning",3,"label","onClick"],["icon","pi
pi-check-circle","styleClass","p-button-danger",3,"label","onClick"],["severity","error",3,"text"]],template:function(e,n){1&e&&(l(0,"div")(1,"div",0),k(2,"p-toast",1),c(),l(3,"h2"),g(4),m(5,"translate"),c(),l(6,"div",2)(7,"div",3)(8,"p-table",4),C("onLazyLoad",function(r){return
n.loadLazy(r)}),_(9,pae,48,42,"ng-template",5),_(10,vae,31,23,"ng-template",6),c(),l(11,"p-dialog",7),C("visibleChange",function(r){return
n.displayStop=r}),m(12,"translate"),l(13,"h2"),g(14),m(15,"translate"),c(),l(16,"p"),g(17),m(18,"translate"),k(19,"br"),l(20,"b"),g(21),c()(),_(22,yae,6,7,"ng-template",8),c(),k(23,"app-schedule",9
),c()()()),2&e&&(a(4),S(f(5,17,"dashboard.upcoming.heading")),a(4),p("value",n.programs)("scrollable",!0)("virtualScroll",!0)("rows",50)("lazy",!0)("rowHover",!0),a(3),x("header",f(12,19,"dashboard.recordings.stop_recording")),p("visible",n.displayStop)("modal",!0)("draggable",!1)("resizable",!1),a(3),S(f(15,21,"settings.common.ru_sure")),a(3),T("",f(18,23,"dashboard.recordings.stop_details"),"
"),a(4),We(" ",null==n.program?null:n.program.Title,":
",null==n.program?null:n.program.SubTitle,""),a(2),p("inter",n.inter))},directives:[Td,Dn,ne,vg,sn,Te,_e,Ot,Q,Go,On,bt,Kt,Le,bn,qe,ve,Rd],pipes:[ce,eu],styles:[""]}),t})();function
Tae(t,i){if(1&t){const
e=I();l(0,"button",10),C("click",function(){return
v(e),d(2).newRecRule()}),m(1,"translate"),c(),l(2,"button",11),C("click",function(){return
v(e),d(2).newTemplate()}),m(3,"translate"),c()}2&t&&(x("label",f(1,2,"dashboard.recrules.new_recrule")),a(2),x("label",f(3,4,"dashboard.recrules.new_teplate")))}function
Sae(t,i){1&t&&(l(0,"tr")(1,"
th",12),g(2),m(3,"translate"),k(4,"p-sortIcon",13),c(),l(5,"th",14),g(6),m(7,"translate"),c(),l(8,"th",15),g(9),m(10,"translate"),c(),l(11,"th",15),g(12),m(13,"translate"),c(),l(14,"th",15),g(15),m(16,"translate"),c(),l(17,"th",16),g(18),m(19,"translate"),k(20,"p-sortIcon",17),c(),l(21,"th",18),g(22),m(23,"translate"),k(24,"p-sortIcon",19),c(),l(25,"th",20),g(26,"Active"),c(),l(27,"th",21),k(28,"button",22)(29,"button",23),c()()),2&t&&(a(2),T("
",f(3,9,"dashboard.recordings.title"),"
"),a(4),S(f(7,11,"dashboard.recrule.type")),a(3),S(f(10,13,"common.priority")),a(3),T("
",f(13,15,"dashboard.recordings.recgrp")," "),a(3),T("
",f(16,17,"dashboard.recrules.storgrp")," "),a(3),T("
",f(19,19,"dashboard.recrules.lastrec"),""),a(4),T("
",f(23,21,"dashboard.recrules.nextrec"),""),a(6),p("disabled",!0),a(1),p("disabled",!0))}function
xae(t,i){1&t&&k(0,"i",31)}function
Dae(t,i){1&t&&k(0,"i",32)}function Mae(t,i){if(1&t){const
e=I();l(0,"tr")(1,"td",24),g(2),c(),l(3,"td",14),g(4),c(),l(5,"td",
15),g(6),c(),l(7,"td",15),g(8),c(),l(9,"td",15),g(10),c(),l(11,"td",25),g(12),c(),l(13,"td",26),g(14),c(),l(15,"td",20),_(16,xae,1,0,"i",27),_(17,Dae,1,0,"ng-template",null,28,we),c(),l(19,"td",21)(20,"button",29),C("click",function(){const
r=v(e).$implicit;return
d(2).updateRecRule(r)}),m(21,"translate"),c(),l(22,"button",30),C("click",function(){const
r=v(e).$implicit;return
d(2).deleteRequest(r)}),m(23,"translate"),c()()()}if(2&t){const
e=i.$implicit,n=F(18),s=d(2);a(2),T(" ",e.Title,""),a(2),T("
",s.utility.recTypeTrans[e.Type],""),a(2),S(e.RecPriority),a(2),S(e.RecGroup),a(2),S(e.StorageGroup),a(2),T("
",s.utility.formatDate(e.LastRecorded),""),a(2),We("
",s.utility.formatDate(e.NextRecording),"
",s.utility.formatTime(e.NextRecording),""),a(2),p("ngIf",e.Inactive)("ngIfElse",n),a(4),x("pTooltip",f(21,13,"dashboard.recordings.edit_rule")),a(2),x("pTooltip",f(23,15,"dashboard.recordings.delete_rule")),p("disabled","Recording
Template"==e.Type&&"Default"==e.Category)}}function kae
(t,i){if(1&t&&(l(0,"div",5)(1,"p-table",6),_(2,Tae,4,6,"ng-template",7),_(3,Sae,30,23,"ng-template",8),_(4,Mae,24,17,"ng-template",9),c()()),2&t){const
e=d();a(1),p("value",e.recRules)("scrollable",!0)("rowHover",!0)}}function
Iae(t,i){1&t&&(k(0,"p-message",37),m(1,"translate")),2&t&&x("text",f(1,1,"common.networkfail"))}function
Eae(t,i){if(1&t){const
e=I();l(0,"div",33),_(1,Iae,2,3,"p-message",34),c(),l(2,"p-button",35),C("onClick",function(){return
v(e),d().displayDelete=!1}),m(3,"translate"),c(),l(4,"p-button",36),C("onClick",function(){v(e);const
s=d();return s.deleteRule(s.recRule)}),m(5,"translate"),c()}if(2&t){const
e=d();a(1),p("ngIf",e.errorCount>0),a(1),x("label",f(3,3,"common.close")),a(2),x("label",f(5,5,"common.delete"))}}function
Rae(t,i){1&t&&k(0,"p-progressSpinner")}let Lae=(()=>{class
t{constructor(e,n){this.dvrService=e,this.utility=n,this.recRules=[],this.inter={summaryComponent:this},this.deSpacer=new
RegExp(/ /g),this.rulesLoaded=!1,this.errorCount=0,this.succe
ssCount=0,this.displayDelete=!1,this.saveObserver={next:s=>{this.recRule?this.recRule.Id&&s.bool?(this.successCount++,this.displayDelete=!1,setTimeout(()=>this.refresh(),1e3)):!this.recRule.Id&&s.uint?(this.successCount++,setTimeout(()=>this.inter.summaryComponent.refresh(),1e3),this.recRule.Id=s.uint):this.errorCount++:(console.log("ERROR:
recRule is
undefined"),this.errorCount++)},error:s=>{console.error(s),this.errorCount++}}}refresh(){this.loadLists()}ngOnInit(){this.loadLists()}loadLists(){this.recRules=[],this.errorCount=0,this.dvrService.GetRecordScheduleList({}).subscribe({next:e=>{this.recRules=e.RecRuleList.RecRules,this.rulesLoaded=!0},error:e=>{this.errorCount++}})}newRecRule(){this.updateRecRule()}updateRecRule(e){this.inter.sched&&this.inter.sched.open(void
0,void 0,e)}newTemplate(){this.updateRecRule({Type:"Recording
Template"})}deleteRequest(e){this.recRule=e,this.displayDelete=!0}deleteRule(e){this.dvrService.RemoveRecordSchedule(e.Id).subscribe(this.saveObserver)}}
return t.\u0275fac=function(e){return
new(e||t)(D(jo),D(cs))},t.\u0275cmp=z({type:t,selectors:[["app-recrules"]],decls:19,vars:21,consts:[["class","block
card w-full","style","height:
90vh",4,"ngIf","ngIfElse"],[3,"header","visible","modal","draggable","resizable","visibleChange"],["pTemplate","footer"],[3,"inter"],["loading",""],[1,"block","card","w-full",2,"height","90vh"],["scrollHeight","flex","styleClass","p-datatable-striped","responsiveLayout","scroll",3,"value","scrollable","rowHover"],["pTemplate","caption"],["pTemplate","header"],["pTemplate","body"],["pButton","","pRipple","","icon","pi
pi-plus",1,"p-button-success","mr-2",3,"label","click"],["pButton","","pRipple","","icon","pi
pi-plus",1,"p-button-success","p-button-outlined","mr-2",3,"label","click"],["pSortableColumn","Title",1,"p-1",2,"flex-basis","20%"],["field","Title"],[1,"p-1",2,"flex-basis","20%"],[1,"p-1",2,"flex-basis","10%"],["pSortableColumn","LastRecorded",1,"justify-content-end","pr-5",2,"flex-basis","10%"
],["field","LastRecorded"],["pSortableColumn","NextRecording",1,"justify-content-end","pr-5",2,"flex-basis","15%"],["field","NextRecording"],[1,"p-1",2,"flex-basis","5%"],[1,"p-1",2,"flex-basis","6%"],["pButton","","pRipple","","icon","pi
pi-pencil",1,"p-button-text","p-button-primary",3,"disabled"],["pButton","","pRipple","","icon","pi
pi-trash",1,"p-button-text","p-button-danger",3,"disabled"],[1,"p-1","overflow-hidden",2,"flex-basis","20%"],[1,"justify-content-end","p-1","pr-5",2,"flex-basis","10%"],[1,"justify-content-end","p-1","pr-5",2,"flex-basis","15%"],["class","pi
pi-times
text-pink-500",4,"ngIf","ngIfElse"],["checkmark",""],["pButton","","pRipple","","icon","pi
pi-pencil","tooltipPosition","left",1,"p-button-text","p-button-primary",3,"pTooltip","click"],["pButton","","pRipple","","icon","pi
pi-trash","tooltipPosition","left",1,"p-button-text","p-button-danger",3,"pTooltip","disabled","click"],[1,"pi","pi-times","text-pink-500"],[1,"pi","pi-check","text-green-500"],[1,"co
l-12",2,"text-align","left"],["severity","error",3,"text",4,"ngIf"],["icon","pi
pi-times-circle","styleClass","p-button-warning",3,"label","onClick"],["icon","pi
pi-check-circle","styleClass","p-button-danger",3,"label","onClick"],["severity","error",3,"text"]],template:function(e,n){if(1&e&&(l(0,"h2"),g(1),m(2,"translate"),c(),_(3,kae,5,3,"div",0),l(4,"p-dialog",1),C("visibleChange",function(r){return
n.displayDelete=r}),m(5,"translate"),l(6,"h2"),g(7),m(8,"translate"),c(),l(9,"p"),g(10),m(11,"translate"),k(12,"br"),l(13,"b"),g(14),c()(),_(15,Eae,6,7,"ng-template",2),c(),k(16,"app-schedule",3),_(17,Rae,1,0,"ng-template",null,4,we)),2&e){const
s=F(18);a(1),S(f(2,13,"dashboard.recrules.heading")),a(2),p("ngIf",n.rulesLoaded)("ngIfElse",s),a(1),x("header",f(5,15,"dashboard.recordings.delete_rule")),p("visible",n.displayDelete)("modal",!0)("draggable",!1)("resizable",!1),a(3),S(f(8,17,"settings.common.ru_sure")),a(3),T("",f(11,19,"dashboard.recordings.delete_details"),"
"),a(4),We(" ",
null==n.recRule?null:n.recRule.Title,":
",null==n.recRule?null:n.recRule.Type,""),a(2),p("inter",n.inter)}},directives:[Q,Dn,ne,On,bt,yd,wd,Kt,bn,qe,ve,Rd,Go],pipes:[ce],styles:[""]}),t})(),Oae=(()=>{class
t{constructor(e){this.httpClient=e}GetVideoList(e){let n=new ye;for(const[s,r]of
Object.entries(e))n=n.set(s,r);return
this.httpClient.get("/Video/GetVideoList",{params:n})}UpdateVideoWatchedStatus(e,n){return
this.httpClient.post("/Video/UpdateVideoWatchedStatus",{Id:e,Watched:n})}UpdateVideoMetadata(e){return
this.httpClient.post("/Video/UpdateVideoMetadata",e)}}return
t.\u0275fac=function(e){return
new(e||t)(K(Bi))},t.\u0275prov=X({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();const
Aae=["vidsform"],Pae=["menu"],Fae=["table"];function
Nae(t,i){}function Vae(t,i){if(1&t){const
e=I();l(0,"div")(1,"p-button",35),C("onClick",function(){const
r=v(e).index;return d(2).breadCrumb(r+1)}),c()()}if(2&t){const
e=i.$implicit;a(1),x("label",e)}}const Bae=function(){return{width:"30p
x",height:"30px"}};function
Hae(t,i){1&t&&(l(0,"div"),k(1,"p-progressSpinner"),c()),2&t&&(a(1),q(A(2,Bae)))}function
qae(t,i){if(1&t){const
e=I();l(0,"button",52),C("click",function(){v(e);const s=d(2);return
s.refreshing=!0,s.reLoadVideos()}),m(1,"translate"),c()}2&t&&x("pTooltip",f(1,1,"common.refresh"))}function
Gae(t,i){if(1&t){const
e=I();l(0,"tr")(1,"th")(2,"p-button",35),C("onClick",function(){return
v(e),d().breadCrumb(0)}),m(3,"translate"),c(),_(4,Vae,2,1,"div",36),g(5,"
\xa0\xa0\xa0
"),l(6,"p-checkbox",37,38),C("ngModelChange",function(s){return
v(e),d().showAllVideos=s})("onChange",function(){return
v(e),d().showAllChange()}),m(8,"translate"),c(),_(9,Hae,2,3,"div",39),_(10,qae,2,3,"ng-template",null,40,we),g(12),c()(),l(13,"tr")(14,"th",41),g(15),m(16,"translate"),k(17,"p-sortIcon",42),c(),k(18,"th",43),l(19,"th",44),g(20),m(21,"translate"),c(),l(22,"th",45),g(23),m(24,"translate"),c(),l(25,"th",46),g(26),m(27,"translate"),k(28,"p-sortIcon",47),c(),l(29,"th",48),g(30),m(3
1,"translate"),c(),l(32,"th",45)(33,"a",49),k(34,"i",50),c(),k(35,"button",51),c()()}if(2&t){const
e=F(11),n=d();a(2),x("label",f(3,14,"dashboard.videos.heading")),a(2),p("ngForOf",n.directory),a(2),Bn("label","",f(8,16,"dashboard.videos.showall"),"
"),p("ngModel",n.showAllVideos)("binary",!0),a(3),p("ngIf",n.refreshing)("ngIfElse",e),a(3),T("
\xa0\xa0\xa0",n.videos.length," Rows "),a(3),T("
",f(16,18,"dashboard.recordings.title"),"
"),a(5),S(f(21,20,"dashboard.recordings.subtitle")),a(3),S(f(24,22,"dashboard.recordings.seas_ep")),a(3),T("
",f(27,24,"dashboard.videos.releasedate")," "),a(4),T("
",f(31,26,"dashboard.recordings.duration"),"
"),a(5),p("disabled",!0)}}function Uae(t,i){if(1&t){const
e=I();l(0,"div")(1,"button",60),C("click",function(){v(e);const
s=d().$implicit;return d().onDirectory(s.Title)}),c()()}if(2&t){const
e=d().$implicit;a(1),x("label",e.Title)}}function
zae(t,i){1&t&&g(0),2&t&&T(" ",d().$implicit.Title,"
")}function jae(t,i){1&t&&k(0,"i",61)}function $ae(t,i){
if(1&t&&(l(0,"div"),g(1),c()),2&t){const
e=d().$implicit;a(1),We(" ",e.Season,"x",e.Episode,"
")}}function
Wae(t,i){if(1&t&&(l(0,"div"),g(1),c()),2&t){const
e=d().$implicit;a(1),T(" ",e.Length," min ")}}function
Kae(t,i){if(1&t){const
e=I();l(0,"div")(1,"a",62),m(2,"translate"),k(3,"i",63),c(),l(4,"button",64),C("click",function(s){v(e);const
r=d().$implicit;return d().showMenu(r,s)}),c()()}if(2&t){const
e=d().$implicit,n=d();a(1),x("href",n.URLencode("/Content/GetVideo?Id="+e.Id),ln),x("pTooltip",f(2,2,"dashboard.videos.download"))}}function
Qae(t,i){if(1&t&&(l(0,"tr")(1,"td",53),_(2,Uae,2,1,"div",39),_(3,zae,1,1,"ng-template",null,54,we),c(),l(5,"td",43),_(6,jae,1,0,"i",55),c(),l(7,"td",56),g(8),c(),l(9,"td",45),_(10,$ae,2,2,"div",57),c(),l(11,"td",58),k(12,"div",59),c(),l(13,"td",48),_(14,Wae,2,1,"div",57),c(),l(15,"td",45),_(16,Kae,5,4,"div",57),c()()),2&t){const
e=i.$implicit,n=F(4),s=d();a(2),p("ngIf","DIRECTORY"==e.ContentType)("ngIfElse",n),a(4),p("ngIf",e.Watched),a(1),x("p
Tooltip",e.Description),a(1),T("
",e.SubTitle,""),a(2),p("ngIf",e.Season>0||e.Episode>0),a(2),p("innerHTML",s.utility.formatDate(e.ReleaseDate,!0),Bt),a(2),p("ngIf",e.Length>0),a(2),p("ngIf","DIRECTORY"!=e.ContentType)}}function
Jae(t,i){1&t&&(k(0,"p-message",70),m(1,"translate")),2&t&&x("text",f(1,1,"common.savesuccess"))}function
Yae(t,i){1&t&&(k(0,"p-message",71),m(1,"translate")),2&t&&x("text",f(1,1,"common.networkfail"))}function
Zae(t,i){if(1&t){const
e=I();l(0,"div",65),_(1,Jae,2,3,"p-message",66),_(2,Yae,2,3,"p-message",67),c(),l(3,"p-button",68),C("onClick",function(){return
v(e),d().closeDialog()}),m(4,"translate"),c(),l(5,"p-button",69),C("onClick",function(){return
v(e),d().saveVideo()}),m(6,"translate"),c()}if(2&t){const
e=d(),n=F(15);a(1),p("ngIf",e.successCount>0&&0==e.errorCount&&!n.dirty),a(1),p("ngIf",e.errorCount>0),a(1),x("label",f(4,5,"common.close")),a(2),x("label",f(6,7,"common.save")),p("disabled",!n.dirty||""==e.video.Title.trim())}}function
Xae(t,i){if(1&t)
{const e=I();l(0,"p-button",72),C("onClick",function(){return
v(e),d().closeDialog()}),m(1,"translate"),c(),l(2,"p-button",73),C("onClick",function(){return
v(e),d().displayUnsaved=!1}),m(3,"translate"),c()}2&t&&(x("label",f(1,2,"common.nosave")),a(2),x("label",f(3,4,"common.continue")))}const
ele=function(){return{height:"75vw",width:"50vw"}};let
tle=(()=>{class
t{constructor(e,n,s,r){this.videoService=e,this.translate=n,this.messageService=s,this.utility=r,this.videos=[],this.refreshing=!1,this.successCount=0,this.errorCount=0,this.directory=[],this.video={Title:""},this.displayMetadataDlg=!1,this.displayUnsaved=!1,this.showAllVideos=!1,this.mnu_markwatched={label:"dashboard.recordings.mnu_markwatched",command:u=>this.markwatched(u,!0)},this.mnu_markunwatched={label:"dashboard.recordings.mnu_markunwatched",command:u=>this.markwatched(u,!1)},this.mnu_updatemeta={label:"dashboard.recordings.mnu_updatemeta",command:u=>this.updatemeta(u)},this.menuToShow=[],this.msg={Success:"common.s
uccess",Failed:"common.failed",NetFail:"common.networkfail"},this.saveObserver={next:u=>{u.bool?(console.log("saveObserver
success",u),this.successCount++,this.successCount++,this.currentForm.form.markAsPristine(),this.editingVideo&&Object.assign(this.editingVideo,this.video)):(console.log("saveObserver
error",u),this.errorCount++)},error:u=>{console.log("saveObserver
error",u),this.errorCount++}};for(const[u,h]of
Object.entries(this.msg))this.translate.get(h).subscribe(b=>{Object.defineProperty(this.msg,u,{value:b})});[this.mnu_markwatched,this.mnu_markunwatched,this.mnu_updatemeta].forEach(u=>{u.label&&this.translate.get(u.label).subscribe(h=>u.label=h)})}ngOnInit(){}loadLazy(e){this.lazyLoadEvent=e;let
n={Sort:"title",Folder:this.directory.join("/"),CollapseSubDirs:!this.showAllVideos,StartIndex:0,Count:1};e.sortField&&(n.Sort=e.sortField,e.sortOrder&&(n.Descending=e.sortOrder<0)),n.Sort+=",title,releasedate,season,episode",e.first&&(n.StartIndex=e.first),e.rows&&(n.Count=e.rows)
,this.videoService.GetVideoList(n).subscribe(s=>{let
r=s.VideoMetadataInfoList;this.videos.length=s.VideoMetadataInfoList.TotalAvailable,this.videos.splice(r.StartIndex,r.Count,...r.VideoMetadataInfos),this.videos=[...this.videos],this.refreshing=!1})}reLoadVideos(){this.table.resetScrollTop(),this.videos.length=0,this.lazyLoadEvent.first=0,this.lazyLoadEvent.rows=100,this.loadLazy(this.lazyLoadEvent)}showAllChange(){this.refreshing=!0,setTimeout(()=>this.reLoadVideos(),100)}URLencode(e){return
encodeURI(e)}onDirectory(e){this.directory.push(e),this.reLoadVideos()}breadCrumb(e){this.directory.length=e,this.reLoadVideos()}showMenu(e,n){this.video=e,this.menuToShow.length=0,this.menuToShow.push(e.Watched?this.mnu_markunwatched:this.mnu_markwatched),this.menuToShow.push(this.mnu_updatemeta),this.menu.toggle(n)}markwatched(e,n){this.videoService.UpdateVideoWatchedStatus(this.video.Id,n).subscribe({next:s=>{s.bool?(this.sendMessage("success",e.item.label,this.msg.Success),this.video.Watc
hed=n):this.sendMessage("error",e.item.label,this.msg.Failed)},error:s=>this.networkError(s)})}updatemeta(e){this.editingVideo=this.video,this.video=Object.assign({},this.video),this.video.ReleaseDate=this.video.ReleaseDate?new
Date(this.video.ReleaseDate):null,this.displayMetadataDlg=!0}sendMessage(e,n,s,r){this.messageService.add({severity:e,summary:s,detail:n+"
"+this.video.Title+"
"+this.video.SubTitle+(r=r?"\n"+r:""),life:3e3})}saveVideo(){this.successCount=0,this.errorCount=0,this.displayUnsaved=!1,this.videoService.UpdateVideoMetadata({Id:this.video.Id,Episode:this.video.Episode,Inetref:this.video.Inetref,Plot:this.video.Description,ReleaseDate:this.video.ReleaseDate,Season:this.video.Season,SubTitle:this.video.SubTitle,Title:this.video.Title}).subscribe(this.saveObserver)}networkError(e){console.log("network
error",e),this.sendMessage("error","",this.msg.NetFail)}closeDialog(){this.currentForm.dirty?this.displayUnsaved?(this.displayUnsaved=!1,this.displayMetadataDlg=!1,this.
editingVideo=void
0,this.currentForm.form.markAsPristine()):this.displayUnsaved=!0:(this.displayMetadataDlg=!1,this.displayUnsaved=!1,this.editingVideo=void
0)}}return t.\u0275fac=function(e){return
new(e||t)(D(Oae),D(Oe),D(Gi),D(cs))},t.\u0275cmp=z({type:t,selectors:[["app-videos"]],viewQuery:function(e,n){if(1&e&&(W(Aae,5),W(Pae,5),W(Fae,5)),2&e){let
s;V(s=B())&&(n.currentForm=s.first),V(s=B())&&(n.menu=s.first),V(s=B())&&(n.table=s.first)}},features:[Pe([Gi])],decls:70,vars:71,consts:[[2,"white-space","pre-line"],["position","center"],[1,"block","card","w-full",2,"height","90vh"],[3,"popup","model"],["menu",""],["name","table","scrollHeight","flex","styleClass","p-datatable-striped","responsiveLayout","scroll",3,"value","scrollable","virtualScroll","rows","lazy","rowHover","onLazyLoad"],["table",""],["pTemplate","caption"],["pTemplate","header"],["pTemplate","body"],["name","vidsform",1,"ml-3","mr-3"],["vidsform","ngForm"],[3,"header","visible","modal","closable","closeOnEscape",
"visibleChange"],[1,"form-group","field"],["for","Title",1,"label","block"],["pInputText","","id","Title","name","Title",1,"mb-2","form-control","w-full",3,"ngModel","ngModelChange"],["Title","ngModel"],["for","SubTitle",1,"label","block"],["pInputText","","id","SubTitle","name","SubTitle",1,"mb-2","form-control","w-full",3,"ngModel","ngModelChange"],["SubTitle","ngModel"],["for","Inetref",1,"label","block"],["pInputText","","id","Inetref","name","Inetref",1,"mb-2","form-control","w-full",3,"ngModel","ngModelChange"],["Inetref","ngModel"],["for","Description",1,"label","block"],["pInputTextarea","","id","Description","name","Description",1,"mb-2","form-control","w-full",3,"rows","cols","ngModel","ngModelChange"],["Description","ngModel"],["for","Season",1,"label","block"],["name","Season","id","Season",3,"ngModel","showButtons","min","max","step","ngModelChange"],["for","Episode",1,"label","block"],["name","Episode","id","Episode",3,"ngModel","showButtons","min","max","step","ngMode
lChange"],["for","ReleaseDate",1,"label","block"],["dateFormat","yy-mm-dd","name","ReleaseDate","id","ReleaseDate",3,"ngModel","ngModelChange"],["for","FileName",1,"label","block"],["pTemplate","footer"],[3,"header","visible","modal","visibleChange"],["styleClass","p-button-primary",1,"p-1",3,"label","onClick"],[4,"ngFor","ngForOf"],["inputId","showAllVideos","name","showAllVideos",3,"ngModel","binary","label","ngModelChange","onChange"],["showAll","ngModel"],[4,"ngIf","ngIfElse"],["refreshBn",""],["pSortableColumn","Title",1,"p-1",2,"flex-basis","30%"],["field","Title"],[1,"p-1",2,"flex-basis","3%"],[1,"p-1",2,"flex-basis","30%"],[1,"p-1",2,"flex-basis","6%"],["pSortableColumn","ReleaseDate",1,"justify-content-end","p-1",2,"flex-basis","12%"],["field","ReleaseDate"],[1,"justify-content-end","p-1",2,"flex-basis","10%"],["target","_blank"],[1,"pi","pi-download"],["pButton","","pRipple","","icon","pi
pi-ellipsis-v",1,"p-button-text","p-button-primary",3,"disabled"],["pButton","","pRip
ple","","icon","pi
pi-refresh",1,"p-button-text",".p-button-success",3,"pTooltip","click"],[1,"p-1","overflow-hidden",2,"flex-basis","30%"],["title",""],["class","pi
pi-eye",4,"ngIf"],["tooltipPosition","top",1,"p-1","overflow-hidden",2,"flex-basis","30%",3,"pTooltip"],[4,"ngIf"],[1,"justify-content-end","p-1",2,"flex-basis","12%"],[3,"innerHTML"],["pButton","","pRipple","","icon","pi
pi-folder",1,"p-button-text","p-button-primary",3,"label","click"],[1,"pi","pi-eye"],["target","_blank","tooltipPosition","left",3,"href","pTooltip"],[1,"pi","pi-download","text-primary"],["pButton","","pRipple","","icon","pi
pi-ellipsis-v",1,"p-button-text","p-button-primary",3,"click"],[1,"col-12",2,"text-align","left"],["severity","success",3,"text",4,"ngIf"],["severity","error",3,"text",4,"ngIf"],["icon","pi
pi-times-circle","styleClass","p-button-warning",3,"label","onClick"],["icon","pi
pi-check-circle","styleClass","p-button-success",3,"label","disabled","onClick"],["severity","success",3,"text"
],["severity","error",3,"text"],["icon","pi
pi-times-circle","styleClass","p-button-danger",3,"label","onClick"],["icon","pi
pi-check-circle","styleClass","p-button-success",3,"label","onClick"]],template:function(e,n){1&e&&(l(0,"div")(1,"div",0),k(2,"p-toast",1),c(),l(3,"h2"),g(4),m(5,"translate"),c(),l(6,"div",2),k(7,"p-menu",3,4),l(9,"p-table",5,6),C("onLazyLoad",function(r){return
n.loadLazy(r)}),_(11,Nae,0,0,"ng-template",7),_(12,Gae,36,28,"ng-template",8),_(13,Qae,17,9,"ng-template",9),c()(),l(14,"form",10,11)(16,"p-dialog",12),C("visibleChange",function(r){return
n.displayMetadataDlg=r}),m(17,"translate"),l(18,"div",13)(19,"label",14),g(20),m(21,"translate"),c(),l(22,"input",15,16),C("ngModelChange",function(r){return
n.video.Title=r}),c()(),l(24,"div",13)(25,"label",17),g(26),m(27,"translate"),c(),l(28,"input",18,19),C("ngModelChange",function(r){return
n.video.SubTitle=r}),c()(),l(30,"div",13)(31,"label",20),g(32),m(33,"translate"),c(),l(34,"input",21,22),C("ngModelChange",
function(r){return
n.video.Inetref=r}),c()(),l(36,"div",13)(37,"label",23),g(38),m(39,"translate"),c(),l(40,"textarea",24,25),C("ngModelChange",function(r){return
n.video.Description=r}),c()(),l(42,"div",13)(43,"label",26),g(44),m(45,"translate"),c(),l(46,"p-inputNumber",27),C("ngModelChange",function(r){return
n.video.Season=r}),c()(),l(47,"div",13)(48,"label",28),g(49),m(50,"translate"),c(),l(51,"p-inputNumber",29),C("ngModelChange",function(r){return
n.video.Episode=r}),c()(),l(52,"div",13)(53,"label",30),g(54),m(55,"translate"),c(),l(56,"p-calendar",31),C("ngModelChange",function(r){return
n.video.ReleaseDate=r}),c()(),l(57,"div",13)(58,"label",32),g(59),m(60,"translate"),c(),l(61,"pre"),g(62),c()(),_(63,Zae,7,9,"ng-template",33),c(),l(64,"p-dialog",34),C("visibleChange",function(r){return
n.displayUnsaved=r}),m(65,"translate"),l(66,"p"),g(67),m(68,"translate"),c(),_(69,Xae,4,6,"ng-template",33),c()()()),2&e&&(a(4),S(f(5,46,"dashboard.videos.heading")),a(3),p("popup",!0)("model"
,n.menuToShow),a(2),p("value",n.videos)("scrollable",!0)("virtualScroll",!0)("rows",50)("lazy",!0)("rowHover",!0),a(7),q(A(70,ele)),x("header",f(17,48,"dashboard.recordings.edit_metadata")),p("visible",n.displayMetadataDlg)("modal",!0)("closable",!1)("closeOnEscape",!1),a(4),S(f(21,50,"dashboard.recordings.title")),a(2),p("ngModel",n.video.Title),a(4),S(f(27,52,"dashboard.recordings.subtitle")),a(2),p("ngModel",n.video.SubTitle),a(4),S(f(33,54,"dashboard.recordings.inetref")),a(2),p("ngModel",n.video.Inetref),a(4),S(f(39,56,"dashboard.recordings.description")),a(2),p("rows",5)("cols",30)("ngModel",n.video.Description),a(4),S(f(45,58,"dashboard.recordings.season")),a(2),p("ngModel",n.video.Season)("showButtons",!0)("min",1)("max",99)("step",1),a(3),S(f(50,60,"dashboard.recordings.episode")),a(2),p("ngModel",n.video.Episode)("showButtons",!0)("min",1)("max",99)("step",1),a(3),S(f(55,62,"dashboard.videos.releasedate")),a(2),p("ngModel",n.video.ReleaseDate),a(3),S(f(60,64,"dashboard.rec
ordings.filename_label")),a(3),S(n.video.FileName),a(2),x("header",f(65,66,"common.unsaved_heading")),p("visible",n.displayUnsaved)("modal",!0),a(3),S(f(68,68,"common.unsaved_message")))},directives:[Td,sS,Dn,ne,ve,at,sn,Te,_e,Q,Go,On,bt,Kt,yd,wd,ze,Ue,He,bn,Ye,tS,pt,xr,qe],pipes:[ce],styles:[""]}),t})(),nle=(()=>{class
t{}return t.\u0275fac=function(e){return
new(e||t)},t.\u0275mod=he({type:t}),t.\u0275inj=ue({imports:[[vn.forChild([{path:"dashboard",component:oS,children:[{path:"status",component:_oe},{path:"channel-editor",component:bS},{path:"program-guide",component:CS},{path:"recordings",component:Foe},{path:"upcoming",component:wae},{path:"recrules",component:Lae},{path:"videos",component:tle}]}])],vn]}),t})();function
ile(t,i){1&t&&(l(0,"tr")(1,"th",7),g(2),m(3,"translate"),c(),l(4,"th",8),g(5),m(6,"translate"),c(),k(7,"th",9),l(8,"th",10),g(9),m(10,"translate"),c(),l(11,"th",11),g(12),m(13,"translate"),c(),l(14,"th",12),g(15),m(16,"translate"),c(),l(17,"th",7),g(18),m(19,"t
ranslate"),c(),l(20,"th",13),g(21),m(22,"translate"),c(),l(23,"th",14),g(24),m(25,"translate"),c(),l(26,"th",15),k(27,"button",16),c()()),2&t&&(a(2),T("
",f(3,9,"dashboard.upcoming.date")," "),a(3),T("
",f(6,11,"dashboard.upcoming.time")," "),a(4),T("
",f(10,13,"dashboard.recordings.title"),""),a(3),S(f(13,15,"dashboard.recordings.subtitle")),a(3),S(f(16,17,"dashboard.recordings.seas_ep")),a(3),T("
",f(19,19,"dashboard.recordings.orig_airdate"),"
"),a(3),S(f(22,21,"dashboard.recordings.channel")),a(3),T("
",f(25,23,"dashboard.upcoming.status"),"
"),a(3),p("disabled",!0))}function
sle(t,i){if(1&t&&(l(0,"div"),g(1),c()),2&t){const
e=d().$implicit;a(1),We("
",e.Season,"x",e.Episode,"")}}const
rle=function(){return["WillRecord","Recording","Recorded"]};function
ole(t,i){if(1&t&&(l(0,"div",28)(1,"b"),g(2),c()()),2&t){const
e=d().$implicit,n=d();p("ngClass",A(2,rle).indexOf(e.Recording.StatusName)>-1?"bg-green-500":"bg-pink-500"),a(2),S(n.dataService.recStatusText[e.Recording.StatusName])
}}function ale(t,i){if(1&t){const
e=I();l(0,"tr",17)(1,"td",18),k(2,"div",19),c(),l(3,"td",20),g(4),c(),l(5,"td",21),g(6),m(7,"number"),c(),l(8,"td",22),g(9),c(),l(10,"td",23),g(11),c(),l(12,"td",12),_(13,sle,2,2,"div",24),c(),l(14,"td",7),k(15,"div",19),c(),l(16,"td",13),g(17),c(),l(18,"td",14),_(19,ole,3,3,"div",25),c(),l(20,"td",26)(21,"button",27),C("click",function(){const
r=v(e).$implicit;return
d().updateRecRule(r)}),m(22,"translate"),c()()()}if(2&t){const
e=i.$implicit,n=d();p("ngClass",n.getClasses(e)),a(2),p("innerHTML",n.formatStartDate(e),Bt),a(2),T("
",n.formatStartTime(e),""),a(2),T("
",Dt(7,14,n.getDuration(e),"1.0-0")," min"),a(3),T("
",e.Title,""),a(1),x("pTooltip",e.Description),a(1),T("
",e.SubTitle.slice(0,50),""),a(2),p("ngIf",e.Season>0||e.Episode>0),a(2),p("innerHTML",n.formatAirDate(e),Bt),a(2),We("
",e.Channel.ChanNum,"
",e.Channel.CallSign,""),a(2),p("ngIf",e.Recording),a(2),x("pTooltip",f(22,17,"dashboard.recordings.edit_rule")),p("disabled",e.Recording&&7
==e.Recording.RecType)}}function
lle(t,i){1&t&&(k(0,"p-message",33),m(1,"translate")),2&t&&x("text",f(1,1,"common.networkfail"))}function
cle(t,i){if(1&t){const
e=I();l(0,"div",29),_(1,lle,2,3,"p-message",30),c(),l(2,"p-button",31),C("onClick",function(){return
v(e),d().displayStop=!1}),m(3,"translate"),c(),l(4,"p-button",32),C("onClick",function(){v(e);const
s=d();return s.stopRecording(s.program)}),m(5,"translate"),c()}if(2&t){const
e=d();a(1),p("ngIf",e.errorCount>0),a(1),x("label",f(3,3,"common.close")),a(2),x("label",f(5,5,"dashboard.recordings.stop_recording"))}}let
ule=(()=>{class
t{constructor(e,n,s){this.dataService=e,this.dvrService=n,this.utility=s,this.programs=[],this.displayStop=!1,this.successCount=0,this.errorCount=0,this.regex=/[^a-z0-9]/g}ngOnInit(){}formatStartDate(e){return
this.utility.formatDate(e.StartTime,!0)}formatAirDate(e){return
e.Airdate?this.utility.formatDate(e.Airdate+"
00:00",!0):""}formatStartTime(e){let n=new
Date(e.StartTime).getTime();return(new
Date(n).toLocaleTimeString()+" ").replace(/:.. /,"
")}getClasses(e){return["guide_type_"+e.CatType,"guide_cat_"+e.Category.toLowerCase().replace(this.regex,"_"),"guide_type_default"]}getDuration(e){let
n=new Date(e.StartTime).getTime();return(new
Date(e.EndTime).getTime()-n)/6e4}updateRecRule(e){this.inter.sched&&this.inter.sched.open(e)}override(e){this.inter.sched&&(7==e.Recording.RecType?this.inter.sched.open(e):this.inter.sched.open(e,void
0,{Type:"Override
Recording"}))}stopRequest(e){e.Recording.RecordId&&(this.program=e,this.displayStop=!0)}stopRecording(e){this.errorCount=0,this.dvrService.StopRecording(e.Recording.RecordedId).subscribe({next:n=>{n.bool?(this.displayStop=!1,setTimeout(()=>this.inter.summaryComponent.refresh(),3e3)):this.errorCount++},error:n=>{this.errorCount++}})}}return
t.\u0275fac=function(e){return
new(e||t)(D(Ll),D(jo),D(cs))},t.\u0275cmp=z({type:t,selectors:[["app-programs"]],inputs:{programs:"programs",inter:"inter"},decls:17,vars:19,consts:[[2,"heigh
t","90vh"],["scrollHeight","flex","styleClass","p-datatable-striped","responsiveLayout","scroll",3,"value","scrollable","rowHover"],["pTemplate","header"],["pTemplate","body"],[3,"header","visible","modal","draggable","resizable","visibleChange"],["pTemplate","footer"],[3,"inter"],[1,"justify-content-end","p-1",2,"flex-basis","8%"],[1,"justify-content-end","p-1",2,"flex-basis","6%"],[1,"justify-content-end","pl-1","pr-3","pt-1","pb-1",2,"flex-basis","7%"],[1,"p-1",2,"flex-basis","12%"],[1,"p-1",2,"flex-basis","18%"],[1,"p-1",2,"flex-basis","4%"],[1,"p-1",2,"flex-basis","10%"],[1,"p-1",2,"flex-basis","7%"],[1,"p-1",2,"flex-basis","2%"],["pButton","","pRipple","","icon","pi
pi-pencil",1,"p-button-text","p-button-primary",3,"disabled"],[3,"ngClass"],[1,"justify-content-end","p-1","overflow-hidden",2,"flex-basis","8%"],[3,"innerHTML"],[1,"justify-content-end","p-1","overflow-hidden",2,"flex-basis","6%"],[1,"justify-content-end","pl-1","pr-3","pt-1","pb-1","overflow-hidden",2,"flex-basis
","7%"],[1,"p-1","overflow-hidden",2,"flex-basis","12%"],["tooltipPosition","top",1,"p-1","overflow-hidden",2,"flex-basis","18%",3,"pTooltip"],[4,"ngIf"],["class","text-white",3,"ngClass",4,"ngIf"],[1,"p-1",2,"flex-basis","2%","background","var(--surface-card)"],["pButton","","pRipple","","icon","pi
pi-pencil","tooltipPosition","left",1,"p-button-text","p-button-primary",3,"pTooltip","disabled","click"],[1,"text-white",3,"ngClass"],[1,"col-12",2,"text-align","left"],["severity","error",3,"text",4,"ngIf"],["icon","pi
pi-times-circle","styleClass","p-button-warning",3,"label","onClick"],["icon","pi
pi-check-circle","styleClass","p-button-danger",3,"label","onClick"],["severity","error",3,"text"]],template:function(e,n){1&e&&(l(0,"div",0)(1,"p-table",1),_(2,ile,28,25,"ng-template",2),_(3,ale,23,19,"ng-template",3),c(),l(4,"p-dialog",4),C("visibleChange",function(r){return
n.displayStop=r}),m(5,"translate"),l(6,"h2"),g(7),m(8,"translate"),c(),l(9,"p"),g(10),m(11,"translate"),k(12,"br"),
l(13,"b"),g(14),c()(),_(15,cle,6,7,"ng-template",5),c(),k(16,"app-schedule",6),c()),2&e&&(a(1),p("value",n.programs)("scrollable",!0)("rowHover",!0),a(3),x("header",f(5,13,"dashboard.recordings.stop_recording")),p("visible",n.displayStop)("modal",!0)("draggable",!1)("resizable",!1),a(3),S(f(8,15,"settings.common.ru_sure")),a(3),T("",f(11,17,"dashboard.recordings.stop_details"),"
"),a(4),We(" ",null==n.program?null:n.program.Title,":
",null==n.program?null:n.program.SubTitle,""),a(2),p("inter",n.inter))},directives:[Dn,ne,On,bt,Le,Kt,Q,bn,qe,ve,Rd],pipes:[ce,eu],styles:[".type_series[_ngcontent-%COMP%]{background-color:#00008b;color:#fff}.type_tvshow[_ngcontent-%COMP%]{background-color:#2f4f4f;color:#fff}.type_movie[_ngcontent-%COMP%]{background-color:#8a2be2;color:#fff}.type_sports[_ngcontent-%COMP%]{background-color:#8b0000;color:#fff}"]}),t})();function
dle(t,i){1&t&&(g(0),m(1,"translate")),2&t&&T("
",f(1,1,"dashboard.guide.typecolors")," ")}const
ple=function(t){return[t,"guide_t
ype_default"]};function
hle(t,i){if(1&t&&(l(0,"div",4)(1,"div",5),g(2),c()()),2&t){const
e=i.$implicit;a(1),p("ngClass",U(2,ple,"guide_type_"+e)),a(1),T("
\xa0",e,"")}}function
mle(t,i){1&t&&(g(0),m(1,"translate")),2&t&&T("
",f(1,1,"dashboard.guide.catcolors")," ")}const
fle=function(t){return[t,"px-1"]};function
gle(t,i){if(1&t&&(l(0,"div",4)(1,"div",5),g(2),c()()),2&t){const
e=i.$implicit,n=d();a(1),p("ngClass",U(2,fle,"guide_cat_"+e.toLowerCase().replace(n.regex,"_"))),a(1),T("
",e,"")}}let _le=(()=>{class
t{constructor(){this.catTypes=[],this.categories=[],this.regex=/[^a-z0-9]/g}ngOnInit(){let
e=new Set,n=new
Set;null!=this.programGuide?this.programGuide.ProgramGuide.Channels.forEach(r=>{r.Programs.forEach(o=>{o.CatType&&e.add(o.CatType),o.Category&&n.add(o.Category)})}):null!=this.listPrograms&&this.listPrograms.forEach(r=>{r.CatType&&e.add(r.CatType),r.Category&&n.add(r.Category)}),this.catTypes=[];let
s=e.values();for(;;){let r=s.next();if(r.done)break;this.catTypes.push(r.v
alue)}for(this.categories=[],s=n.values();;){let
r=s.next();if(r.done)break;this.categories.push(r.value)}this.catTypes.sort(),this.catTypes.push("default"),this.categories.sort()}}return
t.\u0275fac=function(e){return
new(e||t)},t.\u0275cmp=z({type:t,selectors:[["app-legend"]],inputs:{programGuide:"programGuide",listPrograms:"listPrograms"},decls:20,vars:11,consts:[[1,"flex"],["layout","grid",3,"value"],["pTemplate","header"],["pTemplate","gridItem"],[1,"md:col-2","px-3","py-1"],[3,"ngClass"]],template:function(e,n){1&e&&(l(0,"div",0)(1,"div")(2,"p-dataView",1),_(3,dle,2,3,"ng-template",2),_(4,hle,3,4,"ng-template",3),c(),l(5,"p-dataView",1),_(6,mle,2,3,"ng-template",2),_(7,gle,3,4,"ng-template",3),c(),l(8,"p"),g(9),m(10,"translate"),k(11,"br"),g(12),m(13,"translate"),k(14,"br"),g(15),m(16,"translate"),l(17,"code"),g(18,"/usr/share/mythtv/html/assets/guidecolors.css"),c(),g(19,"\xa0."),c()()()),2&e&&(a(2),p("value",n.catTypes),a(3),p("value",n.categories),a(4),S(f(10,5,"dashboard.g
uide.color_includes")),a(3),T("
",f(13,7,"dashboard.guide.color_expl"),""),a(3),T("
",f(16,9,"dashboard.guide.color_customize"),""))},directives:[LT,ne,Le],pipes:[ce],styles:[""]}),t})();function
ble(t){return new WO(t)}let vle=(()=>{class t{}return t.\u0275fac=function(e){return
new(e||t)},t.\u0275mod=he({type:t,bootstrap:[VW]}),t.\u0275inj=ue({providers:[],imports:[[qy,IO,TW,UF,Mu,UA,sW,$O.forRoot({defaultLanguage:"en_US",loader:{provide:nl,useFactory:ble,deps:[Bi]}}),k$,eX,nle]]}),t})();Wi(CS,[Q,Ot,Te,_e,Kt,xr,Ye,On,bt,Go,K2,LT,ne,OX,MX,at,LX,ule,Rd,bn,_le],[ce]),Wi(hS,[Ne,ve,bn,os,Te,_e,ne,Q,qe,Ss,at,Ts,gr,Ja,jX,wS,xte,Fte,jte,ene,cne,jie,sse,gse,kse,Bse,km],[ce]),Wi(wS,[ze,Ue,He,Ne,ne,Q,Ot,Te,_e,_n,Ye,pt,sn,Ui,ve,bn,os,Kt,qe,kd,Al,wg,Pl],[ce]),Wi(Al,[ze,Ue,He,Ne,ne,Ye,Te,_e,pt,Ot,_n,Q,Dn,$2,DU,Ui,ve,bn,os,kd,Al,wg,Pl],[ce]),Wi(Pl,[ze,Ue,He,Ne,ne,Ye,Te,_e,pt,Ui,Q,ve,bn,os,kd,Al,wg,Pl],[ce]),Wi(_S,[Ne,Ss,at,Ts,ne,Q,kS,ve],[ce]),Wi(kS,[ze,Ue,He,Ne,ne,Q,gr,Ja,pt,Te,_e,Sd,Ye,Ot,_n,s
n,Ui,Mre,ve,bn,qe],[ce]),Wi(mS,[Ne,Ss,at,Ts,ne,Q,ES,ve],[ce]),Wi(ES,[ve,bn,Ye,Te,_e,ne,Q,qe,Ss,at,Ts,Lie],[ce]),function
QR(){if(ZC)throw new Error("Cannot enable prod mode after platform
setup.");YC=!1}(),nO().bootstrapModule(vle).catch(t=>console.error(t))}},Is=>{Is(Is.s=452)}]);
+\ No newline at end of file
++"use
strict";(self.webpackChunkbackend=self.webpackChunkbackend||[]).push([[179],{452:()=>{function
Is(t){return"function"==typeof t}let Qo=!1;const di={Promise:void 0,set
useDeprecatedSynchronousErrorHandling(t){if(t){const i=new
Error;console.warn("DEPRECATED! RxJS was set to use deprecated synchronous error
handling behavior by code at: \n"+i.stack)}else Qo&&console.log("RxJS:
Back to a better error behavior. Thank you. <3");Qo=t},get
useDeprecatedSynchronousErrorHandling(){return Qo}};function
Es(t){setTimeout(()=>{throw t},0)}const
Fl={closed:!0,next(t){},error(t){if(di.useDeprecatedSynchronousErrorHandling)throw
t;Es(t)},complete(){}},Nr=Array.isArray||(t=>t&&"number"==typeof
t.length);function Ld(t){return null!==t&&"object"==typeof t}const
Nl=(()=>{function t(i){return Error.call(this),this.message=i?`${i.length} errors
occurred during unsubscription:\n${i.map((e,n)=>`${n+1})
${e.toString()}`).join("\n
")}`:"",this.name="UnsubscriptionError",this.errors=i,this}return
t.pro
totype=Object.create(Error.prototype),t})();class
Et{constructor(i){this.closed=!1,this._parentOrParents=null,this._subscriptions=null,i&&(this._ctorUnsubscribe=!0,this._unsubscribe=i)}unsubscribe(){let
i;if(this.closed)return;let{_parentOrParents:e,_ctorUnsubscribe:n,_unsubscribe:s,_subscriptions:r}=this;if(this.closed=!0,this._parentOrParents=null,this._subscriptions=null,e
instanceof Et)e.remove(this);else if(null!==e)for(let
o=0;o<e.length;++o)e[o].remove(this);if(Is(s)){n&&(this._unsubscribe=void
0);try{s.call(this)}catch(o){i=o instanceof Nl?Dg(o.errors):[o]}}if(Nr(r)){let
o=-1,u=r.length;for(;++o<u;){const
h=r[o];if(Ld(h))try{h.unsubscribe()}catch(b){i=i||[],b instanceof
Nl?i=i.concat(Dg(b.errors)):i.push(b)}}}if(i)throw new Nl(i)}add(i){let e=i;if(!i)return
Et.EMPTY;switch(typeof i){case"function":e=new
Et(i);case"object":if(e===this||e.closed||"function"!=typeof
e.unsubscribe)return e;if(this.closed)return e.unsubscribe(),e;if(!(e instanceof
Et)){const r=e;e=new Et,e._subsc
riptions=[r]}break;default:throw new Error("unrecognized teardown "+i+"
added to
Subscription.")}let{_parentOrParents:n}=e;if(null===n)e._parentOrParents=this;else
if(n instanceof Et){if(n===this)return
e;e._parentOrParents=[n,this]}else{if(-1!==n.indexOf(this))return e;n.push(this)}const
s=this._subscriptions;return null===s?this._subscriptions=[e]:s.push(e),e}remove(i){const
e=this._subscriptions;if(e){const n=e.indexOf(i);-1!==n&&e.splice(n,1)}}}var
t;function Dg(t){return t.reduce((i,e)=>i.concat(e instanceof
Nl?e.errors:e),[])}Et.EMPTY=((t=new Et).closed=!0,t);const Vl="function"==typeof
Symbol?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random();class yt
extends
Et{constructor(i,e,n){switch(super(),this.syncErrorValue=null,this.syncErrorThrown=!1,this.syncErrorThrowable=!1,this.isStopped=!1,arguments.length){case
0:this.destination=Fl;break;case
1:if(!i){this.destination=Fl;break}if("object"==typeof i){i instanceof
yt?(this.syncErrorThrowable=i.syncErrorThrowable,this.destin
ation=i,i.add(this)):(this.syncErrorThrowable=!0,this.destination=new
Mg(this,i));break}default:this.syncErrorThrowable=!0,this.destination=new
Mg(this,i,e,n)}}[Vl](){return this}static create(i,e,n){const s=new yt(i,e,n);return
s.syncErrorThrowable=!1,s}next(i){this.isStopped||this._next(i)}error(i){this.isStopped||(this.isStopped=!0,this._error(i))}complete(){this.isStopped||(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe())}_next(i){this.destination.next(i)}_error(i){this.destination.error(i),this.unsubscribe()}_complete(){this.destination.complete(),this.unsubscribe()}_unsubscribeAndRecycle(){const{_parentOrParents:i}=this;return
this._parentOrParents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parentOrParents=i,this}}class
Mg extends yt{constructor(i,e,n,s){super(),this._parentSubscriber=i;let
r,o=this;Is(e)?r=e:e&&(r=e.next,n=e.error,s=e.complete,e!==Fl&&(o=Object.create(e),Is(o.unsubscribe)&&this.add(o.un
subscribe.bind(o)),o.unsubscribe=this.unsubscribe.bind(this))),this._context=o,this._next=r,this._error=n,this._complete=s}next(i){if(!this.isStopped&&this._next){const{_parentSubscriber:e}=this;di.useDeprecatedSynchronousErrorHandling&&e.syncErrorThrowable?this.__tryOrSetError(e,this._next,i)&&this.unsubscribe():this.__tryOrUnsub(this._next,i)}}error(i){if(!this.isStopped){const{_parentSubscriber:e}=this,{useDeprecatedSynchronousErrorHandling:n}=di;if(this._error)n&&e.syncErrorThrowable?(this.__tryOrSetError(e,this._error,i),this.unsubscribe()):(this.__tryOrUnsub(this._error,i),this.unsubscribe());else
if(e.syncErrorThrowable)n?(e.syncErrorValue=i,e.syncErrorThrown=!0):Es(i),this.unsubscribe();else{if(this.unsubscribe(),n)throw
i;Es(i)}}}complete(){if(!this.isStopped){const{_parentSubscriber:i}=this;if(this._complete){const
e=()=>this._complete.call(this._context);di.useDeprecatedSynchronousErrorHandling&&i.syncErrorThrowable?(this.__tryOrSetError(i,e),this.unsubscribe()):(this.__t
ryOrUnsub(e),this.unsubscribe())}else
this.unsubscribe()}}__tryOrUnsub(i,e){try{i.call(this._context,e)}catch(n){if(this.unsubscribe(),di.useDeprecatedSynchronousErrorHandling)throw
n;Es(n)}}__tryOrSetError(i,e,n){if(!di.useDeprecatedSynchronousErrorHandling)throw new
Error("bad call");try{e.call(this._context,n)}catch(s){return
di.useDeprecatedSynchronousErrorHandling?(i.syncErrorValue=s,i.syncErrorThrown=!0,!0):(Es(s),!0)}return!1}_unsubscribe(){const{_parentSubscriber:i}=this;this._context=null,this._parentSubscriber=null,i.unsubscribe()}}const
Jo="function"==typeof
Symbol&&Symbol.observable||"@@observable";function Bl(t){return t}let
Je=(()=>{class
t{constructor(e){this._isScalar=!1,e&&(this._subscribe=e)}lift(e){const n=new
t;return n.source=this,n.operator=e,n}subscribe(e,n,s){const{operator:r}=this,o=function
FS(t,i,e){if(t){if(t instanceof yt)return t;if(t[Vl])return t[Vl]()}return t||i||e?new
yt(t,i,e):new yt(Fl)}(e,n,s);if(o.add(r?r.call(o,this.source):this.source||di.useD
eprecatedSynchronousErrorHandling&&!o.syncErrorThrowable?this._subscribe(o):this._trySubscribe(o)),di.useDeprecatedSynchronousErrorHandling&&o.syncErrorThrowable&&(o.syncErrorThrowable=!1,o.syncErrorThrown))throw
o.syncErrorValue;return o}_trySubscribe(e){try{return
this._subscribe(e)}catch(n){di.useDeprecatedSynchronousErrorHandling&&(e.syncErrorThrown=!0,e.syncErrorValue=n),function
PS(t){for(;t;){const{closed:i,destination:e,isStopped:n}=t;if(i||n)return!1;t=e&&e
instanceof yt?e:null}return!0}(e)?e.error(n):console.warn(n)}}forEach(e,n){return
new(n=Ig(n))((s,r)=>{let
o;o=this.subscribe(u=>{try{e(u)}catch(h){r(h),o&&o.unsubscribe()}},r,s)})}_subscribe(e){const{source:n}=this;return
n&&n.subscribe(e)}[Jo](){return this}pipe(...e){return 0===e.length?this:function
kg(t){return 0===t.length?Bl:1===t.length?t[0]:function(e){return
t.reduce((n,s)=>s(n),e)}}(e)(this)}toPromise(e){return new(e=Ig(e))((n,s)=>{let
r;this.subscribe(o=>r=o,o=>s(o),()=>n(r))})}}return t.create=i=>new t(i),t}
)();function Ig(t){if(t||(t=di.Promise||Promise),!t)throw new Error("no Promise impl
found");return t}const nr=(()=>{function t(){return
Error.call(this),this.message="object
unsubscribed",this.name="ObjectUnsubscribedError",this}return
t.prototype=Object.create(Error.prototype),t})();class Eg extends
Et{constructor(i,e){super(),this.subject=i,this.subscriber=e,this.closed=!1}unsubscribe(){if(this.closed)return;this.closed=!0;const
i=this.subject,e=i.observers;if(this.subject=null,!e||0===e.length||i.isStopped||i.closed)return;const
n=e.indexOf(this.subscriber);-1!==n&&e.splice(n,1)}}class Rg extends
yt{constructor(i){super(i),this.destination=i}}let ct=(()=>{class t extends
Je{constructor(){super(),this.observers=[],this.closed=!1,this.isStopped=!1,this.hasError=!1,this.thrownError=null}[Vl](){return
new Rg(this)}lift(e){const n=new Lg(this,this);return
n.operator=e,n}next(e){if(this.closed)throw new
nr;if(!this.isStopped){const{observers:n}=this,s=n.length,r=n.slice();for(let o=0;
o<s;o++)r[o].next(e)}}error(e){if(this.closed)throw new
nr;this.hasError=!0,this.thrownError=e,this.isStopped=!0;const{observers:n}=this,s=n.length,r=n.slice();for(let
o=0;o<s;o++)r[o].error(e);this.observers.length=0}complete(){if(this.closed)throw new
nr;this.isStopped=!0;const{observers:e}=this,n=e.length,s=e.slice();for(let
r=0;r<n;r++)s[r].complete();this.observers.length=0}unsubscribe(){this.isStopped=!0,this.closed=!0,this.observers=null}_trySubscribe(e){if(this.closed)throw
new nr;return super._trySubscribe(e)}_subscribe(e){if(this.closed)throw new nr;return
this.hasError?(e.error(this.thrownError),Et.EMPTY):this.isStopped?(e.complete(),Et.EMPTY):(this.observers.push(e),new
Eg(this,e))}asObservable(){const e=new Je;return e.source=this,e}}return
t.create=(i,e)=>new Lg(i,e),t})();class Lg extends
ct{constructor(i,e){super(),this.destination=i,this.source=e}next(i){const{destination:e}=this;e&&e.next&&e.next(i)}error(i){const{destination:e}=this;e&&e.error&&this.destination.er
ror(i)}complete(){const{destination:i}=this;i&&i.complete&&this.destination.complete()}_subscribe(i){const{source:e}=this;return
e?this.source.subscribe(i):Et.EMPTY}}function Vr(t){return
t&&"function"==typeof t.schedule}function et(t,i){return
function(n){if("function"!=typeof t)throw new TypeError("argument is not a
function. Are you looking for `mapTo()`?");return n.lift(new NS(t,i))}}class
NS{constructor(i,e){this.project=i,this.thisArg=e}call(i,e){return e.subscribe(new
VS(i,this.project,this.thisArg))}}class VS extends
yt{constructor(i,e,n){super(i),this.project=e,this.count=0,this.thisArg=n||this}_next(i){let
e;try{e=this.project.call(this.thisArg,i,this.count++)}catch(n){return void
this.destination.error(n)}this.destination.next(e)}}const Og=t=>i=>{for(let
e=0,n=t.length;e<n&&!i.closed;e++)i.next(t[e]);i.complete()},Hl=function
HS(){return"function"==typeof
Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}(),Ag=t=>t&&"number"==typeof
t.length&&"function"!=typeof t;funct
ion Pg(t){return!!t&&"function"!=typeof
t.subscribe&&"function"==typeof t.then}const
Od=t=>{if(t&&"function"==typeof t[Jo])return(t=>i=>{const
e=t[Jo]();if("function"!=typeof e.subscribe)throw new TypeError("Provided
object does not correctly implement Symbol.observable");return
e.subscribe(i)})(t);if(Ag(t))return
Og(t);if(Pg(t))return(t=>i=>(t.then(e=>{i.closed||(i.next(e),i.complete())},e=>i.error(e)).then(null,Es),i))(t);if(t&&"function"==typeof
t[Hl])return(t=>i=>{const e=t[Hl]();for(;;){let n;try{n=e.next()}catch(s){return
i.error(s),i}if(n.done){i.complete();break}if(i.next(n.value),i.closed)break}return"function"==typeof
e.return&&i.add(()=>{e.return&&e.return()}),i})(t);{const e=`You
provided ${Ld(t)?"an invalid object":`'${t}'`} where a stream was
expected. You can provide an Observable, Promise, Array, or Iterable.`;throw new
TypeError(e)}};function Ad(t,i){return new Je(e=>{const n=new Et;let s=0;return
n.add(i.schedule(function(){s!==t.length?(e.next(t[s++]),e.closed||n.
add(this.schedule())):e.complete()})),n})}function Mn(t,i){return i?function
KS(t,i){if(null!=t){if(function $S(t){return t&&"function"==typeof
t[Jo]}(t))return function US(t,i){return new Je(e=>{const n=new Et;return
n.add(i.schedule(()=>{const
s=t[Jo]();n.add(s.subscribe({next(r){n.add(i.schedule(()=>e.next(r)))},error(r){n.add(i.schedule(()=>e.error(r)))},complete(){n.add(i.schedule(()=>e.complete()))}}))})),n})}(t,i);if(Pg(t))return
function zS(t,i){return new Je(e=>{const n=new Et;return
n.add(i.schedule(()=>t.then(s=>{n.add(i.schedule(()=>{e.next(s),n.add(i.schedule(()=>e.complete()))}))},s=>{n.add(i.schedule(()=>e.error(s)))}))),n})}(t,i);if(Ag(t))return
Ad(t,i);if(function WS(t){return t&&"function"==typeof
t[Hl]}(t)||"string"==typeof t)return function jS(t,i){if(!t)throw new
Error("Iterable cannot be null");return new Je(e=>{const n=new Et;let
s;return n.add(()=>{s&&"function"==typeof
s.return&&s.return()}),n.add(i.schedule(()=>{s=t[Hl](),n.add(i.schedule(function(){if(e.cl
osed)return;let r,o;try{const u=s.next();r=u.value,o=u.done}catch(u){return void
e.error(u)}o?e.complete():(e.next(r),this.schedule())}))})),n})}(t,i)}throw new
TypeError((null!==t&&typeof t||t)+" is not observable")}(t,i):t
instanceof Je?t:new Je(Od(t))}class Yo extends
yt{constructor(i){super(),this.parent=i}_next(i){this.parent.notifyNext(i)}_error(i){this.parent.notifyError(i),this.unsubscribe()}_complete(){this.parent.notifyComplete(),this.unsubscribe()}}class
Zo extends
yt{notifyNext(i){this.destination.next(i)}notifyError(i){this.destination.error(i)}notifyComplete(){this.destination.complete()}}function
Xo(t,i){if(i.closed)return;if(t instanceof Je)return t.subscribe(i);let
e;try{e=Od(t)(i)}catch(n){i.error(n)}return e}function
yn(t,i,e=Number.POSITIVE_INFINITY){return"function"==typeof
i?n=>n.pipe(yn((s,r)=>Mn(t(s,r)).pipe(et((o,u)=>i(s,o,r,u))),e)):("number"==typeof
i&&(e=i),n=>n.lift(new QS(t,e)))}class
QS{constructor(i,e=Number.POSITIVE_INFINITY){this.project=i,this.conc
urrent=e}call(i,e){return e.subscribe(new JS(i,this.project,this.concurrent))}}class JS
extends
Zo{constructor(i,e,n=Number.POSITIVE_INFINITY){super(i),this.project=e,this.concurrent=n,this.hasCompleted=!1,this.buffer=[],this.active=0,this.index=0}_next(i){this.active<this.concurrent?this._tryNext(i):this.buffer.push(i)}_tryNext(i){let
e;const n=this.index++;try{e=this.project(i,n)}catch(s){return void
this.destination.error(s)}this.active++,this._innerSub(e)}_innerSub(i){const e=new
Yo(this),n=this.destination;n.add(e);const
s=Xo(i,e);s!==e&&n.add(s)}_complete(){this.hasCompleted=!0,0===this.active&&0===this.buffer.length&&this.destination.complete(),this.unsubscribe()}notifyNext(i){this.destination.next(i)}notifyComplete(){const
i=this.buffer;this.active--,i.length>0?this._next(i.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()}}function
ea(t=Number.POSITIVE_INFINITY){return yn(Bl,t)}function Pd(t,i){return i?Ad(t,i):new
Je(Og(t))}function Fd(){return funct
ion(i){return i.lift(new ZS(i))}}class
ZS{constructor(i){this.connectable=i}call(i,e){const{connectable:n}=this;n._refCount++;const
s=new XS(i,n),r=e.subscribe(s);return s.closed||(s.connection=n.connect()),r}}class XS
extends
yt{constructor(i,e){super(i),this.connectable=e}_unsubscribe(){const{connectable:i}=this;if(!i)return
void(this.connection=null);this.connectable=null;const e=i._refCount;if(e<=0)return
void(this.connection=null);if(i._refCount=e-1,e>1)return
void(this.connection=null);const{connection:n}=this,s=i._connection;this.connection=null,s&&(!n||s===n)&&s.unsubscribe()}}class
Fg extends
Je{constructor(i,e){super(),this.source=i,this.subjectFactory=e,this._refCount=0,this._isComplete=!1}_subscribe(i){return
this.getSubject().subscribe(i)}getSubject(){const
i=this._subject;return(!i||i.isStopped)&&(this._subject=this.subjectFactory()),this._subject}connect(){let
i=this._connection;return i||(this._isComplete=!1,i=this._connection=new
Et,i.add(this.source.subscribe(new t
x(this.getSubject(),this))),i.closed&&(this._connection=null,i=Et.EMPTY)),i}refCount(){return
Fd()(this)}}const ex=(()=>{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
tx extends
Rg{constructor(i,e){super(i),this.connectable=e}_error(i){this._unsubscribe(),super._error(i)}_complete(){this.connectable._isComplete=!0,this._unsubscribe(),super._complete()}_unsubscribe(){const
i=this.connectable;if(i){this.connectable=null;const
e=i._connection;i._refCount=0,i._subject=null,i._connection=null,e&&e.unsubscribe()}}}class
sx{constructor(i,e){this.subjectFactory=i,this.selector=e}call(i,e){const{selector:n}=this,s=this.subjectFactory(),r=n(s).subscribe(i);return
r.add(e.subscribe(s)),r}}function rx(){return new ct}
function wt(t){for(let i in t)if(t[i]===wt)return i;throw Error("Could not find
renamed property on target object.")}function Nd(t,i){for(const e in
i)i.hasOwnProperty(e)&&!t.hasOwnProperty(e)&&(t[e]=i[e])}function
ft(t){if("string"==typeof t)return
t;if(Array.isArray(t))return"["+t.map(ft).join(",
")+"]";if(null==t)return""+t;if(t.overriddenName)return`${t.overriddenName}`;if(t.name)return`${t.name}`;const
i=t.toString();if(null==i)return""+i;const
e=i.indexOf("\n");return-1===e?i:i.substring(0,e)}function Vd(t,i){return
null==t||""===t?null===i?"":i:null==i||""===i?t:t+"
"+i}const ax=wt({__forward_ref__:wt});function je(t){return
t.__forward_ref__=je,t.toString=function(){return ft(this())},t}function Ve(t){return
Ng(t)?t():t}function Ng(t){return"function"==typeof
t&&t.hasOwnProperty(ax)&&t.__forward_ref__===je}class re extends
Error{constructor(i,e){super(function Bd(t,i){return`NG0${Math.abs(t)}${i?":
"+i:""}`}(i,e)),this.code=i}}function
Ie(t){return"string"==typeof t?t:null==
t?"":String(t)}function wn(t){return"function"==typeof
t?t.name||t.toString():"object"==typeof
t&&null!=t&&"function"==typeof
t.type?t.type.name||t.type.toString():Ie(t)}function ql(t,i){const e=i?` in
${i}`:"";throw new re(-201,`No provider for ${wn(t)} found${e}`)}function
Jn(t,i){null==t&&function gt(t,i,e,n){throw new Error(`ASSERTION ERROR:
${t}`+(null==n?"":` [Expected=> ${e} ${n} ${i}
<=Actual]`))}(i,t,null,"!=")}function
X(t){return{token:t.token,providedIn:t.providedIn||null,factory:t.factory,value:void
0}}function ue(t){return{providers:t.providers||[],imports:t.imports||[]}}function
Hd(t){return Vg(t,Gl)||Vg(t,Hg)}function Vg(t,i){return
t.hasOwnProperty(i)?t[i]:null}function Bg(t){return
t&&(t.hasOwnProperty(qd)||t.hasOwnProperty(mx))?t[qd]:null}const
Gl=wt({\u0275prov:wt}),qd=wt({\u0275inj:wt}),Hg=wt({ngInjectableDef:wt}),mx=wt({ngInjectorDef:wt});var
xe=(()=>((xe=xe||{})[xe.Default=0]="Default",xe[xe.Host=1]="Host",xe[xe.Self=2]="Self",xe[xe.SkipSelf=4]="SkipSelf",xe[x
e.Optional=8]="Optional",xe))();let Gd;function Rs(t){const i=Gd;return
Gd=t,i}function qg(t,i,e){const n=Hd(t);return
n&&"root"==n.providedIn?void
0===n.value?n.value=n.factory():n.value:e&xe.Optional?null:void 0!==i?i:void
ql(ft(t),"Injector")}function Ls(t){return{toString:t}.toString()}var
Mi=(()=>((Mi=Mi||{})[Mi.OnPush=0]="OnPush",Mi[Mi.Default=1]="Default",Mi))(),ki=(()=>(function(t){t[t.Emulated=0]="Emulated",t[t.None=2]="None",t[t.ShadowDom=3]="ShadowDom"}(ki||(ki={})),ki))();const
gx="undefined"!=typeof
globalThis&&globalThis,_x="undefined"!=typeof
window&&window,bx="undefined"!=typeof
self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof
WorkerGlobalScope&&self,vt=gx||"undefined"!=typeof
global&&global||_x||bx,Br={},Tt=[],Ul=wt({\u0275cmp:wt}),Ud=wt({\u0275dir:wt}),zd=wt({\u0275pipe:wt}),Gg=wt({\u0275mod:wt}),ps=wt({\u0275fac:wt}),ta=wt({__NG_ELEMENT_ID__:wt});let
vx=0;function z(t){return Ls(()=>{const
e={},n={type:t.type,providersResolver:null,decls:t.decls,vars:t
.vars,factory: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===Mi.OnPush,directiveDefs:null,pipeDefs:null,selectors:t.selectors||Tt,viewQuery:t.viewQuery||null,features:t.features||null,data:t.data||{},encapsulation:t.encapsulation||ki.Emulated,id:"c",styles:t.styles||Tt,_:null,setInput:null,schemas:t.schemas||null,tView:null},s=t.directives,r=t.features,o=t.pipes;return
n.id+=vx++,n.inputs=$g(t.inputs,e),n.outputs=$g(t.outputs),r&&r.forEach(u=>u(n)),n.directiveDefs=s?()=>("function"==typeof
s?s():s).map(Ug):null,n.pipeDefs=o?()=>("function"==typeof
o?o():o).map(zg):null,n})}function Wi(t,i,e){const
n=t.\u0275cmp;n.directiveDefs=()=>i.map(Ug),n.pipeDefs=()=>e.map(zg)}function
Ug(t){return Tn(t)||function Os(t){return t[Ud]||n
ull}(t)}function zg(t){return function ir(t){return t[zd]||null}(t)}const jg={};function
he(t){return Ls(()=>{const
i={type:t.type,bootstrap:t.bootstrap||Tt,declarations:t.declarations||Tt,imports:t.imports||Tt,exports:t.exports||Tt,transitiveCompileScopes:null,schemas:t.schemas||null,id:t.id||null};return
null!=t.id&&(jg[t.id]=t.type),i})}function $g(t,i){if(null==t)return Br;const
e={};for(const n in t)if(t.hasOwnProperty(n)){let
s=t[n],r=s;Array.isArray(s)&&(r=s[1],s=s[0]),e[s]=n,i&&(i[s]=r)}return
e}const le=z;function
An(t){return{type:t.type,name:t.name,factory:null,pure:!1!==t.pure,onDestroy:t.type.prototype.ngOnDestroy||null}}function
Tn(t){return t[Ul]||null}function pi(t,i){const e=t[Gg]||null;if(!e&&!0===i)throw
new Error(`Type ${ft(t)} does not have '\u0275mod' property.`);return e}function
Ki(t){return Array.isArray(t)&&"object"==typeof t[1]}function
Ei(t){return Array.isArray(t)&&!0===t[1]}function Wd(t){return
0!=(8&t.flags)}function Wl(t){return 2==(2&t.flags)}functi
on Kl(t){return 1==(1&t.flags)}function Ri(t){return null!==t.template}function
Sx(t){return 0!=(512&t[2])}function ar(t,i){return
t.hasOwnProperty(ps)?t[ps]:null}class
Mx{constructor(i,e,n){this.previousValue=i,this.currentValue=e,this.firstChange=n}isFirstChange(){return
this.firstChange}}function fn(){return Kg}function Kg(t){return
t.type.prototype.ngOnChanges&&(t.setInput=Ix),kx}function kx(){const
t=Jg(this),i=null==t?void 0:t.current;if(i){const e=t.previous;if(e===Br)t.previous=i;else
for(let n in i)e[n]=i[n];t.current=null,this.ngOnChanges(i)}}function Ix(t,i,e,n){const
s=Jg(t)||function Ex(t,i){return
t[Qg]=i}(t,{previous:Br,current:null}),r=s.current||(s.current={}),o=s.previous,u=this.declaredInputs[e],h=o[u];r[u]=new
Mx(h&&h.currentValue,i,o===Br),t[n]=i}fn.ngInherit=!0;const
Qg="__ngSimpleChanges__";function Jg(t){return t[Qg]||null}let Zd;function
Xd(){return void 0!==Zd?Zd:"undefined"!=typeof document?document:void 0}function
$t(t){return!!t.listen}const Yg={createRe
nderer:(t,i)=>Xd()};function Yt(t){for(;Array.isArray(t);)t=t[0];return t}function
Ql(t,i){return Yt(i[t])}function Zn(t,i){return Yt(i[t.index])}function ep(t,i){return
t.data[i]}function zr(t,i){return t[i]}function Xn(t,i){const e=i[t];return
Ki(e)?e:e[0]}function Zg(t){return 4==(4&t[2])}function tp(t){return
128==(128&t[2])}function As(t,i){return null==i?null:t[i]}function
Xg(t){t[18]=0}function np(t,i){t[5]+=i;let
e=t,n=t[3];for(;null!==n&&(1===i&&1===e[5]||-1===i&&0===e[5]);)n[5]+=i,e=n,n=n[3]}const
Ee={lFrame:l_(null),bindingsEnabled:!0};function t_(){return Ee.bindingsEnabled}function
$(){return Ee.lFrame.lView}function tt(){return Ee.lFrame.tView}function v(t){return
Ee.lFrame.contextLView=t,t[8]}function rn(){let
t=n_();for(;null!==t&&64===t.type;)t=t.parent;return t}function n_(){return
Ee.lFrame.currentTNode}function Qi(t,i){const
e=Ee.lFrame;e.currentTNode=t,e.isParent=i}function ip(){return Ee.lFrame.isParent}function
sp(){Ee.lFrame.isParent=!1}function Fn(){const t=
Ee.lFrame;let
i=t.bindingRootIndex;return-1===i&&(i=t.bindingRootIndex=t.tView.bindingStartIndex),i}function
hs(){return Ee.lFrame.bindingIndex}function jr(){return Ee.lFrame.bindingIndex++}function
ms(t){const i=Ee.lFrame,e=i.bindingIndex;return i.bindingIndex=i.bindingIndex+t,e}function
Wx(t,i){const e=Ee.lFrame;e.bindingIndex=e.bindingRootIndex=t,rp(i)}function
rp(t){Ee.lFrame.currentDirectiveIndex=t}function r_(){return
Ee.lFrame.currentQueryIndex}function ap(t){Ee.lFrame.currentQueryIndex=t}function
Qx(t){const i=t[1];return 2===i.type?i.declTNode:1===i.type?t[6]:null}function
o_(t,i,e){if(e&xe.SkipSelf){let
s=i,r=t;for(;!(s=s.parent,null!==s||e&xe.Host||(s=Qx(r),null===s||(r=r[15],10&s.type))););if(null===s)return!1;i=s,t=r}const
n=Ee.lFrame=a_();return n.currentTNode=i,n.lView=t,!0}function Yl(t){const
i=a_(),e=t[1];Ee.lFrame=i,i.currentTNode=e.firstChild,i.lView=t,i.tView=e,i.contextLView=t,i.bindingIndex=e.bindingStartIndex,i.inI18n=!1}function
a_(){const t=Ee.lFrame,i=null
===t?null:t.child;return null===i?l_(t):i}function l_(t){const
i={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=i),i}function c_(){const t=Ee.lFrame;return
Ee.lFrame=t.parent,t.currentTNode=null,t.lView=null,t}const u_=c_;function Zl(){const
t=c_();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
Nn(){return Ee.lFrame.selectedIndex}function Ps(t){Ee.lFrame.selectedIndex=t}function
Vt(){const t=Ee.lFrame;return ep(t.tView,t.selectedIndex)}function Xl(t,i){for(let
e=i.directiveStart,n=i.directiveEnd;e<n;e++){const
r=t.data[e].type.prototype,{ngAfterContentInit:o,ngAfterContentChecked:u,ngAfterViewInit:h,ngAfte
rViewChecked:b,ngOnDestroy:y}=r;o&&(t.contentHooks||(t.contentHooks=[])).push(-e,o),u&&((t.contentHooks||(t.contentHooks=[])).push(e,u),(t.contentCheckHooks||(t.contentCheckHooks=[])).push(e,u)),h&&(t.viewHooks||(t.viewHooks=[])).push(-e,h),b&&((t.viewHooks||(t.viewHooks=[])).push(e,b),(t.viewCheckHooks||(t.viewCheckHooks=[])).push(e,b)),null!=y&&(t.destroyHooks||(t.destroyHooks=[])).push(e,y)}}function
ec(t,i,e){p_(t,i,3,e)}function tc(t,i,e,n){(3&t[2])===e&&p_(t,i,e,n)}function
lp(t,i){let e=t[2];(3&e)===i&&(e&=2047,e+=1,t[2]=e)}function
p_(t,i,e,n){const r=null!=n?n:-1,o=i.length-1;let u=0;for(let h=void
0!==n?65535&t[18]:0;h<o;h++)if("number"==typeof
i[h+1]){if(u=i[h],null!=n&&u>=n)break}else
i[h]<0&&(t[18]+=65536),(u<r||-1==r)&&(iD(t,e,i,h),t[18]=(4294901760&t[18])+h+2),h++}function
iD(t,i,e,n){const
s=e[n]<0,r=e[n+1],u=t[s?-e[n]:e[n]];if(s){if(t[2]>>11<t[18]>>16&&(3&t[2])===i){t[2]+=2048;try{r.call(u)}finally{}}}else
try{r.call(u)}finally{}}class oa{constructor(i,e,n){this.fac
tory=i,this.resolving=!1,this.canSeeViewProviders=e,this.injectImpl=n}}function
nc(t,i,e){const n=$t(t);let s=0;for(;s<e.length;){const
r=e[s];if("number"==typeof r){if(0!==r)break;s++;const
o=e[s++],u=e[s++],h=e[s++];n?t.setAttribute(i,u,h,o):i.setAttributeNS(o,u,h)}else{const
o=r,u=e[++s];up(o)?n&&t.setProperty(i,o,u):n?t.setAttribute(i,o,u):i.setAttribute(o,u),s++}}return
s}function h_(t){return 3===t||4===t||6===t}function up(t){return
64===t.charCodeAt(0)}function
ic(t,i){if(null!==i&&0!==i.length)if(null===t||0===t.length)t=i.slice();else{let
e=-1;for(let n=0;n<i.length;n++){const s=i[n];"number"==typeof
s?e=s:0===e||m_(t,e,s,null,-1===e||2===e?i[++n]:null)}}return t}function m_(t,i,e,n,s){let
r=0,o=t.length;if(-1===i)o=-1;else for(;r<t.length;){const
u=t[r++];if("number"==typeof
u){if(u===i){o=-1;break}if(u>i){o=r-1;break}}}for(;r<t.length;){const
u=t[r];if("number"==typeof u)break;if(u===e){if(null===n)return
void(null!==s&&(t[r+1]=s));if(n===t[r+1])return void(t[r+2]=s)}r++
,null!==n&&r++,null!==s&&r++}-1!==o&&(t.splice(o,0,i),r=o+1),t.splice(r++,0,e),null!==n&&t.splice(r++,0,n),null!==s&&t.splice(r++,0,s)}function
f_(t){return-1!==t}function $r(t){return 32767&t}function Wr(t,i){let e=function
lD(t){return t>>16}(t),n=i;for(;e>0;)n=n[15],e--;return n}let dp=!0;function
sc(t){const i=dp;return dp=t,i}let cD=0;function la(t,i){const e=hp(t,i);if(-1!==e)return
e;const
n=i[1];n.firstCreatePass&&(t.injectorIndex=i.length,pp(n.data,t),pp(i,null),pp(n.blueprint,null));const
s=rc(t,i),r=t.injectorIndex;if(f_(s)){const o=$r(s),u=Wr(s,i),h=u[1].data;for(let
b=0;b<8;b++)i[r+b]=u[o+b]|h[o+b]}return i[r+8]=s,r}function
pp(t,i){t.push(0,0,0,0,0,0,0,0,i)}function
hp(t,i){return-1===t.injectorIndex||t.parent&&t.parent.injectorIndex===t.injectorIndex||null===i[t.injectorIndex+8]?-1:t.injectorIndex}function
rc(t,i){if(t.parent&&-1!==t.parent.injectorIndex)return t.parent.injectorIndex;let
e=0,n=null,s=i;for(;null!==s;){const r=s[1],o=r.type;if(n=2===o?r.declTNode:1===o
?s[6]:null,null===n)return-1;if(e++,s=s[15],-1!==n.injectorIndex)return
n.injectorIndex|e<<16}return-1}function oc(t,i,e){!function uD(t,i,e){let
n;"string"==typeof
e?n=e.charCodeAt(0)||0:e.hasOwnProperty(ta)&&(n=e[ta]),null==n&&(n=e[ta]=cD++);const
s=255&n;i.data[t+(s>>5)]|=1<<s}(t,i,e)}function
b_(t,i,e){if(e&xe.Optional)return t;ql(i,"NodeInjector")}function
v_(t,i,e,n){if(e&xe.Optional&&void
0===n&&(n=null),0==(e&(xe.Self|xe.Host))){const s=t[9],r=Rs(void 0);try{return
s?s.get(i,n,e&xe.Optional):qg(i,n,e&xe.Optional)}finally{Rs(r)}}return
b_(n,i,e)}function C_(t,i,e,n=xe.Default,s){if(null!==t){const r=function
mD(t){if("string"==typeof t)return t.charCodeAt(0)||0;const
i=t.hasOwnProperty(ta)?t[ta]:void 0;return"number"==typeof
i?i>=0?255&i:pD:i}(e);if("function"==typeof r){if(!o_(i,t,n))return
n&xe.Host?b_(s,e,n):v_(i,e,n,s);try{const o=r(n);if(null!=o||n&xe.Optional)return
o;ql(e)}finally{u_()}}else if("number"==typeof r){let
o=null,u=hp(t,i),h=-1,b=n&xe.Host?i[16][6]:null;for
((-1===u||n&xe.SkipSelf)&&(h=-1===u?rc(t,i):i[u+8],-1!==h&&T_(n,!1)?(o=i[1],u=$r(h),i=Wr(h,i)):u=-1);-1!==u;){const
y=i[1];if(w_(r,u,y.data)){const w=hD(u,i,e,o,n,b);if(w!==y_)return
w}h=i[u+8],-1!==h&&T_(n,i[1].data[u+8]===b)&&w_(r,u,i)?(o=y,u=$r(h),i=Wr(h,i)):u=-1}}}return
v_(i,e,n,s)}const y_={};function pD(){return new Kr(rn(),$())}function
hD(t,i,e,n,s,r){const
o=i[1],u=o.data[t+8],y=ac(u,o,e,null==n?Wl(u)&&dp:n!=o&&0!=(3&u.type),s&xe.Host&&r===u);return
null!==y?ca(i,o,y,u):y_}function ac(t,i,e,n,s){const
r=t.providerIndexes,o=i.data,u=1048575&r,h=t.directiveStart,y=r>>20,M=s?u+y:t.directiveEnd;for(let
E=n?u:u+y;E<M;E++){const
L=o[E];if(E<h&&e===L||E>=h&&L.type===e)return E}if(s){const
E=o[h];if(E&&Ri(E)&&E.type===e)return h}return null}function
ca(t,i,e,n){let s=t[e];const r=i.data;if(function sD(t){return t instanceof oa}(s)){const
o=s;o.resolving&&function lx(t,i){const e=i?`. Dependency path: ${i.join("
> ")} > ${t}`:"";throw new re(-200,`Circular dependency in DI
detected
for ${t}${e}`)}(wn(r[e]));const u=sc(o.canSeeViewProviders);o.resolving=!0;const
h=o.injectImpl?Rs(o.injectImpl):null;o_(t,n,xe.Default);try{s=t[e]=o.factory(void
0,r,t,n),i.firstCreatePass&&e>=n.directiveStart&&function
nD(t,i,e){const{ngOnChanges:n,ngOnInit:s,ngDoCheck:r}=i.type.prototype;if(n){const
o=Kg(i);(e.preOrderHooks||(e.preOrderHooks=[])).push(t,o),(e.preOrderCheckHooks||(e.preOrderCheckHooks=[])).push(t,o)}s&&(e.preOrderHooks||(e.preOrderHooks=[])).push(0-t,s),r&&((e.preOrderHooks||(e.preOrderHooks=[])).push(t,r),(e.preOrderCheckHooks||(e.preOrderCheckHooks=[])).push(t,r))}(e,r[e],i)}finally{null!==h&&Rs(h),sc(u),o.resolving=!1,u_()}}return
s}function w_(t,i,e){return!!(e[i+(t>>5)]&1<<t)}function
T_(t,i){return!(t&xe.Self||t&xe.Host&&i)}class
Kr{constructor(i,e){this._tNode=i,this._lView=e}get(i,e,n){return
C_(this._tNode,this._lView,i,n,e)}}function on(t){return Ls(()=>{const
i=t.prototype.constructor,e=i[ps]||mp(i),n=Object.prototype;let
s=Object.getPrototypeOf(t.prot
otype).constructor;for(;s&&s!==n;){const
r=s[ps]||mp(s);if(r&&r!==e)return r;s=Object.getPrototypeOf(s)}return r=>new
r})}function mp(t){return Ng(t)?()=>{const i=mp(Ve(t));return
i&&i()}:ar(t)}function ua(t){return function
dD(t,i){if("class"===i)return t.classes;if("style"===i)return
t.styles;const e=t.attrs;if(e){const n=e.length;let s=0;for(;s<n;){const
r=e[s];if(h_(r))break;if(0===r)s+=2;else if("number"==typeof
r)for(s++;s<n&&"string"==typeof e[s];)s++;else{if(r===i)return
e[s+1];s+=2}}}return null}(rn(),t)}const Jr="__parameters__";function
Zr(t,i,e){return Ls(()=>{const n=function fp(t){return function(...e){if(t){const
n=t(...e);for(const s in n)this[s]=n[s]}}}(i);function s(...r){if(this instanceof s)return
n.apply(this,r),this;const o=new s(...r);return u.annotation=o,u;function u(h,b,y){const
w=h.hasOwnProperty(Jr)?h[Jr]:Object.defineProperty(h,Jr,{value:[]})[Jr];for(;w.length<=y;)w.push(null);return(w[y]=w[y]||[]).push(o),h}}return
e&&(s.prototype=Object.create(e.protot
ype)),s.prototype.ngMetadataName=t,s.annotationCls=s,s})}class
be{constructor(i,e){this._desc=i,this.ngMetadataName="InjectionToken",this.\u0275prov=void
0,"number"==typeof e?this.__NG_ELEMENT_ID__=e:void
0!==e&&(this.\u0275prov=X({token:this,providedIn:e.providedIn||"root",factory:e.factory}))}toString(){return`InjectionToken
${this._desc}`}}const gD=new be("AnalyzeForEntryComponents");function
fi(t,i){void 0===i&&(i=t);for(let e=0;e<t.length;e++){let
n=t[e];Array.isArray(n)?(i===t&&(i=t.slice(0,e)),fi(n,i)):i!==t&&i.push(n)}return
i}function Ji(t,i){t.forEach(e=>Array.isArray(e)?Ji(e,i):i(e))}function
x_(t,i,e){i>=t.length?t.push(e):t.splice(i,0,e)}function lc(t,i){return
i>=t.length-1?t.pop():t.splice(i,1)[0]}function ha(t,i){const e=[];for(let
n=0;n<t;n++)e.push(i);return e}function ei(t,i,e){let n=Xr(t,i);return
n>=0?t[1|n]=e:(n=~n,function vD(t,i,e,n){let s=t.length;if(s==i)t.push(e,n);else
if(1===s)t.push(n,t[0]),t[0]=e;else{for(s--,t.push(t[s-1],t[s]);s>i;)t[s]=t[s-2],s--;t[
i]=e,t[i+1]=n}}(t,n,i,e)),n}function _p(t,i){const e=Xr(t,i);if(e>=0)return
t[1|e]}function Xr(t,i){return function k_(t,i,e){let
n=0,s=t.length>>e;for(;s!==n;){const
r=n+(s-n>>1),o=t[r<<e];if(i===o)return
r<<e;o>i?s=r:n=r+1}return~(s<<e)}(t,i,1)}const
ma={},vp="__NG_DI_FLAG__",uc="ngTempTokenPath",DD=/\n/gm,E_="__source",kD=wt({provide:String,useValue:wt});let
fa;function R_(t){const i=fa;return fa=t,i}function ID(t,i=xe.Default){if(void
0===fa)throw new re(203,"");return null===fa?qg(t,void
0,i):fa.get(t,i&xe.Optional?null:void 0,i)}function K(t,i=xe.Default){return(function
fx(){return Gd}()||ID)(Ve(t),i)}const O_=K;function Cp(t){const i=[];for(let
e=0;e<t.length;e++){const n=Ve(t[e]);if(Array.isArray(n)){if(0===n.length)throw new
re(900,"");let s,r=xe.Default;for(let o=0;o<n.length;o++){const
u=n[o],h=ED(u);"number"==typeof h?-1===h?s=u.token:r|=h:s=u}i.push(K(s,r))}else
i.push(K(n))}return i}function ga(t,i){return t[vp]=i,t.prototype[vp]=i,t}function
ED(t){return t[vp]}const
dc=ga(Zr("Inject",t=>({token:t})),-1),Ns=ga(Zr("Optional"),8),_a=ga(Zr("SkipSelf"),4);var
ti=(()=>((ti=ti||{})[ti.Important=1]="Important",ti[ti.DashCase=2]="DashCase",ti))();const
H_="__ngContext__";function In(t,i){t[H_]=i}function Tp(t){const i=function
va(t){return t[H_]||null}(t);return i?Array.isArray(i)?i:i.lView:null}function
xp(t,i){return undefined(t,i)}function Ca(t){const i=t[3];return Ei(i)?i[3]:i}function
Dp(t){return W_(t[13])}function Mp(t){return W_(t[4])}function
W_(t){for(;null!==t&&!Ei(t);)t=t[4];return t}function
to(t,i,e,n,s){if(null!=n){let r,o=!1;Ei(n)?r=n:Ki(n)&&(o=!0,n=n[0]);const
u=Yt(n);0===t&&null!==e?null==s?X_(i,e,u):lr(i,e,u,s||null,!0):1===t&&null!==e?lr(i,e,u,s||null,!0):2===t?function
Ap(t,i,e){const n=hc(t,i);n&&function
aM(t,i,e,n){$t(t)?t.removeChild(i,e,n):i.removeChild(e)}(t,n,i,e)}(i,u,o):3===t&&i.destroyNode(u),null!=r&&function
uM(t,i,e,n,s){const r=e[7];r!==Yt(e)&&to(i,t,n,r,s);for(let
u=10;u<e.length;u++){const h=e[u];ya(h[1],h,t,i,n,r)}}
(i,t,r,e,s)}}function Ip(t,i,e){if($t(t))return t.createElement(i,e);{const
n=null!==e?function Ax(t){const
i=t.toLowerCase();return"svg"===i?"http://www.w3.org/2000/...
null===n?t.createElement(i):t.createElementNS(n,i)}}function Q_(t,i){const
e=t[9],n=e.indexOf(i),s=i[3];1024&i[2]&&(i[2]&=-1025,np(s,-1)),e.splice(n,1)}function
Ep(t,i){if(t.length<=10)return;const e=10+i,n=t[e];if(n){const
s=n[17];null!==s&&s!==t&&Q_(s,n),i>0&&(t[e-1][4]=n[4]);const
r=lc(t,10+i);!function
XD(t,i){ya(t,i,i[11],2,null,null),i[0]=null,i[6]=null}(n[1],n);const
o=r[19];null!==o&&o.detachView(r[1]),n[3]=null,n[4]=null,n[2]&=-129}return
n}function J_(t,i){if(!(256&i[2])){const
e=i[11];$t(e)&&e.destroyNode&&ya(t,i,e,3,null,null),function nM(t){let
i=t[13];if(!i)return Rp(t[1],t);for(;i;){let e=null;if(Ki(i))e=i[13];else{const
n=i[10];n&&(e=n)}if(!e){for(;i&&!i[4]&&i!==t;)Ki(i)&&Rp(i[1],i),i=i[3];null===i&&(i=t),Ki(i)&&Rp(i[1],i),e=i&&i[4]}i=
e}}(i)}}function Rp(t,i){if(!(256&i[2])){i[2]&=-129,i[2]|=256,function
oM(t,i){let e;if(null!=t&&null!=(e=t.destroyHooks))for(let
n=0;n<e.length;n+=2){const s=i[e[n]];if(!(s instanceof oa)){const
r=e[n+1];if(Array.isArray(r))for(let o=0;o<r.length;o+=2){const
u=s[r[o]],h=r[o+1];try{h.call(u)}finally{}}else try{r.call(s)}finally{}}}}(t,i),function
rM(t,i){const e=t.cleanup,n=i[7];let s=-1;if(null!==e)for(let
r=0;r<e.length-1;r+=2)if("string"==typeof e[r]){const
o=e[r+1],u="function"==typeof
o?o(i):Yt(i[o]),h=n[s=e[r+2]],b=e[r+3];"boolean"==typeof
b?u.removeEventListener(e[r],h,b):b>=0?n[s=b]():n[s=-b].unsubscribe(),r+=2}else{const
o=n[s=e[r+1]];e[r].call(o)}if(null!==n){for(let
r=s+1;r<n.length;r++)n[r]();i[7]=null}}(t,i),1===i[1].type&&$t(i[11])&&i[11].destroy();const
e=i[17];if(null!==e&&Ei(i[3])){e!==i[3]&&Q_(e,i);const
n=i[19];null!==n&&n.detachView(t)}}}function Y_(t,i,e){return function
Z_(t,i,e){let n=i;for(;null!==n&&40&n.type;)n=(i=n).parent;if(null===n)return
e[0];if(2&n.fl
ags){const
s=t.data[n.directiveStart].encapsulation;if(s===ki.None||s===ki.Emulated)return
null}return Zn(n,e)}(t,i.parent,e)}function
lr(t,i,e,n,s){$t(t)?t.insertBefore(i,e,n,s):i.insertBefore(e,n,s)}function
X_(t,i,e){$t(t)?t.appendChild(i,e):i.appendChild(e)}function
eb(t,i,e,n,s){null!==n?lr(t,i,e,n,s):X_(t,i,e)}function hc(t,i){return
$t(t)?t.parentNode(i):i.parentNode}function tb(t,i,e){return ib(t,i,e)}let
gc,_c,ib=function nb(t,i,e){return 40&t.type?Zn(t,e):null};function mc(t,i,e,n){const
s=Y_(t,n,i),r=i[11],u=tb(n.parent||i[6],n,i);if(null!=s)if(Array.isArray(e))for(let
h=0;h<e.length;h++)eb(r,s,e[h],u,!1);else eb(r,s,e,u,!1)}function
fc(t,i){if(null!==i){const e=i.type;if(3&e)return Zn(i,t);if(4&e)return
Op(-1,t[i.index]);if(8&e){const n=i.child;if(null!==n)return fc(t,n);{const
s=t[i.index];return Ei(s)?Op(-1,s):Yt(s)}}if(32&e)return
xp(i,t)()||Yt(t[i.index]);{const n=rb(t,i);return
null!==n?Array.isArray(n)?n[0]:fc(Ca(t[16]),n):fc(t,i.next)}}return null}function rb(t,i)
{return null!==i?t[16][6].projection[i.projection]:null}function Op(t,i){const
e=10+t+1;if(e<i.length){const n=i[e],s=n[1].firstChild;if(null!==s)return
fc(n,s)}return i[7]}function Pp(t,i,e,n,s,r,o){for(;null!=e;){const
u=n[e.index],h=e.type;if(o&&0===i&&(u&&In(Yt(u),n),e.flags|=4),64!=(64&e.flags))if(8&h)Pp(t,i,e.child,n,s,r,!1),to(i,t,s,u,r);else
if(32&h){const b=xp(e,n);let y;for(;y=b();)to(i,t,s,y,r);to(i,t,s,u,r)}else
16&h?ob(t,i,n,e,s,r):to(i,t,s,u,r);e=o?e.projectionNext:e.next}}function
ya(t,i,e,n,s,r){Pp(e,n,t.firstChild,i,s,r,!1)}function ob(t,i,e,n,s,r){const
o=e[16],h=o[6].projection[n.projection];if(Array.isArray(h))for(let
b=0;b<h.length;b++)to(i,t,s,h[b],r);else Pp(t,i,h,o[3],s,r,!0)}function
ab(t,i,e){$t(t)?t.setAttribute(i,"style",e):i.style.cssText=e}function
Fp(t,i,e){$t(t)?""===e?t.removeAttribute(i,"class"):t.setAttribute(i,"class",e):i.className=e}function
cr(t){var i;return(null===(i=function Np(){if(void
0===gc&&(gc=null,vt.trustedTypes))try{gc=vt.trustedTyp
es.createPolicy("angular",{createHTML:t=>t,createScript:t=>t,createScriptURL:t=>t})}catch(t){}return
gc}())||void 0===i?void 0:i.createHTML(t))||t}function lb(t){var
i;return(null===(i=function Vp(){if(void
0===_c&&(_c=null,vt.trustedTypes))try{_c=vt.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:t=>t,createScript:t=>t,createScriptURL:t=>t})}catch(t){}return
_c}())||void 0===i?void 0:i.createHTML(t))||t}class
db{constructor(i){this.changingThisBreaksApplicationSecurity=i}toString(){return`SafeValue
must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see
https://g.co/ng/security#xss)`}}function Vs(t){return t instanceof
db?t.changingThisBreaksApplicationSecurity:t}function wa(t,i){const e=function
CM(t){return t instanceof
db&&t.getTypeName()||null}(t);if(null!=e&&e!==i){if("ResourceURL"===e&&"URL"===i)return!0;throw
new Error(`Required a safe ${i}, got a ${e} (see
https://g.co/ng/security#xss)`)}return
e===i}class yM{constructor(i){this.inertDo
cumentHelper=i}getInertBodyElement(i){i="<body><remove></remove>"+i;try{const
e=(new window.DOMParser).parseFromString(cr(i),"text/html").body;return
null===e?this.inertDocumentHelper.getInertBodyElement(i):(e.removeChild(e.firstChild),e)}catch(e){return
null}}}class
wM{constructor(i){if(this.defaultDoc=i,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert"),null==this.inertDocument.body){const
e=this.inertDocument.createElement("html");this.inertDocument.appendChild(e);const
n=this.inertDocument.createElement("body");e.appendChild(n)}}getInertBodyElement(i){const
e=this.inertDocument.createElement("template");if("content"in e)return
e.innerHTML=cr(i),e;const n=this.inertDocument.createElement("body");return
n.innerHTML=cr(i),this.defaultDoc.documentMode&&this.stripCustomNsAttrs(n),n}stripCustomNsAttrs(i){const
e=i.attributes;for(let s=e.length-1;0<s;s--){const
o=e.item(s).name;("xmlns:ns1"===o||0===o.indexOf("ns1:"))&&i.removeAttribute(o)}let
n=
i.firstChild;for(;n;)n.nodeType===Node.ELEMENT_NODE&&this.stripCustomNsAttrs(n),n=n.nextSibling}}const
SM=/^(?:(?:https?|mailto|ftp|tel|file|sms):|[^&:/?#]*(?:[/?#]|$))/gi,xM=/^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
bc(t){return(t=String(t)).match(SM)||t.match(xM)?t:"unsafe:"+t}function
hb(t){return(t=String(t)).split(",").map(i=>bc(i.trim())).join(",
")}function Yi(t){const i={};for(const e of t.split(","))i[e]=!0;return
i}function Ta(...t){const i={};for(const e of t)for(const n in
e)e.hasOwnProperty(n)&&(i[n]=!0);return i}const
mb=Yi("area,br,col,hr,img,wbr"),fb=Yi("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),gb=Yi("rp,rt"),Bp=Ta(mb,Ta(fb,Yi("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")),Ta(gb,Yi("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")),Ta(gb,fb)),Hp=Yi("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),qp=Yi("srcset"),_b=Ta(Hp,qp,Yi("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,start,summary,tabindex,target,title,translate,type,usemap,valign,value,vspace,width"),Yi("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-grab
bed,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")),DM=Yi("script,style,template");class
MM{constructor(){this.sanitizedSomething=!1,this.buf=[]}sanitizeChildren(i){let
e=i.firstChild,n=!0;for(;e;)if(e.nodeType===Node.ELEMENT_NODE?n=this.startElement(e):e.nodeType===Node.TEXT_NODE?this.chars(e.nodeValue):this.sanitizedSomething=!0,n&&e.firstChild)e=e.firstChild;else
for(;e;){e.nodeType===Node.ELEMENT_NODE&&this.endElement(e);let
s=this.checkClobberedElement(e,e.nextSibling);if(s){e=s;break}e=this.checkClobberedElement(e,e.parentNode)}return
this.buf.join("")}startElement(i){const e=i.nodeName.toLowerCase();if(!Bp.
hasOwnProperty(e))return
this.sanitizedSomething=!0,!DM.hasOwnProperty(e);this.buf.push("<"),this.buf.push(e);const
n=i.attributes;for(let s=0;s<n.length;s++){const
r=n.item(s),o=r.name,u=o.toLowerCase();if(!_b.hasOwnProperty(u)){this.sanitizedSomething=!0;continue}let
h=r.value;Hp[u]&&(h=bc(h)),qp[u]&&(h=hb(h)),this.buf.push("
",o,'="',bb(h),'"')}return
this.buf.push(">"),!0}endElement(i){const
e=i.nodeName.toLowerCase();Bp.hasOwnProperty(e)&&!mb.hasOwnProperty(e)&&(this.buf.push("</"),this.buf.push(e),this.buf.push(">"))}chars(i){this.buf.push(bb(i))}checkClobberedElement(i,e){if(e&&(i.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_CONTAINED_BY)===Node.DOCUMENT_POSITION_CONTAINED_BY)throw
new Error(`Failed to sanitize html because the element is clobbered:
${i.outerHTML}`);return e}}const kM=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,IM=/([^\#-~
|!])/g;function bb(t){return
t.replace(/&/g,"&").replace(kM,function(i){return"&#"+(1024*(i.charCodeAt(0)-55296)+(i.charCodeAt(1)-56320)+65
536)+";"}).replace(IM,function(i){return"&#"+i.charCodeAt(0)+";"}).replace(/</g,"<").replace(/>/g,">")}let
vc;function Gp(t){return"content"in t&&function RM(t){return
t.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===t.nodeName}(t)?t.content:null}var
Zt=(()=>((Zt=Zt||{})[Zt.NONE=0]="NONE",Zt[Zt.HTML=1]="HTML",Zt[Zt.STYLE=2]="STYLE",Zt[Zt.SCRIPT=3]="SCRIPT",Zt[Zt.URL=4]="URL",Zt[Zt.RESOURCE_URL=5]="RESOURCE_URL",Zt))();function
Bt(t){const i=Sa();return
i?lb(i.sanitize(Zt.HTML,t)||""):wa(t,"HTML")?lb(Vs(t)):function
EM(t,i){let e=null;try{vc=vc||function pb(t){const i=new wM(t);return function
TM(){try{return!!(new
window.DOMParser).parseFromString(cr(""),"text/html")}catch(t){return!1}}()?new
yM(i):i}(t);let n=i?String(i):"";e=vc.getInertBodyElement(n);let
s=5,r=n;do{if(0===s)throw new Error("Failed to sanitize html because the input is
unstable");s--,n=r,r=e.innerHTML,e=vc.getInertBodyElement(n)}while(n!==r);return
cr((new MM).sanitizeChildren(Gp(e)||e))}finally{if(e){const n=Gp(
e)||e;for(;n.firstChild;)n.removeChild(n.firstChild)}}}(Xd(),Ie(t))}function ln(t){const
i=Sa();return
i?i.sanitize(Zt.URL,t)||"":wa(t,"URL")?Vs(t):bc(Ie(t))}function
Sa(){const t=$();return t&&t[12]}function zp(t){return t.ngOriginalError}function
qM(t,...i){t.error(...i)}class xa{constructor(){this._console=console}handleError(i){const
e=this._findOriginalError(i),n=function HM(t){return
t&&t.ngErrorLogger||qM}(i);n(this._console,"ERROR",i),e&&n(this._console,"ORIGINAL
ERROR",e)}_findOriginalError(i){let
e=i&&zp(i);for(;e&&zp(e);)e=zp(e);return e||null}}const
KM=(()=>("undefined"!=typeof
requestAnimationFrame&&requestAnimationFrame||setTimeout).bind(vt))();function
ni(t){return t.ownerDocument.defaultView}function Zi(t){return t instanceof
Function?t():t}function yb(t,i,e){let n=t.length;for(;;){const
s=t.indexOf(i,e);if(-1===s)return s;if(0===s||t.charCodeAt(s-1)<=32){const
r=i.length;if(s+r===n||t.charCodeAt(s+r)<=32)return s}e=s+1}}const
wb="ng-template";function YM(t,i,e){let
n=0;for(;n<t.length;){let
s=t[n++];if(e&&"class"===s){if(s=t[n],-1!==yb(s.toLowerCase(),i,0))return!0}else
if(1===s){for(;n<t.length&&"string"==typeof(s=t[n++]);)if(s.toLowerCase()===i)return!0;return!1}}return!1}function
Tb(t){return 4===t.type&&t.value!==wb}function ZM(t,i,e){return
i===(4!==t.type||e?t.value:wb)}function XM(t,i,e){let n=4;const s=t.attrs||[],r=function
nk(t){for(let i=0;i<t.length;i++)if(h_(t[i]))return i;return t.length}(s);let
o=!1;for(let u=0;u<i.length;u++){const h=i[u];if("number"!=typeof
h){if(!o)if(4&n){if(n=2|1&n,""!==h&&!ZM(t,h,e)||""===h&&1===i.length){if(Li(n))return!1;o=!0}}else{const
b=8&n?h:i[++u];if(8&n&&null!==t.attrs){if(!YM(t.attrs,b,e)){if(Li(n))return!1;o=!0}continue}const
w=ek(8&n?"class":h,s,Tb(t),e);if(-1===w){if(Li(n))return!1;o=!0;continue}if(""!==b){let
M;M=w>r?"":s[w+1].toLowerCase();const
E=8&n?M:null;if(E&&-1!==yb(E,b,0)||2&n&&b!==M){if(Li(n))return!1;o=!0}}}}else{if(!o&&!Li(n)&&!Li(h))return!1;if(o&&Li(h))continue;o=!1,n=h|1&n}}retur
n Li(n)||o}function Li(t){return 0==(1&t)}function
ek(t,i,e,n){if(null===i)return-1;let s=0;if(n||!e){let r=!1;for(;s<i.length;){const
o=i[s];if(o===t)return s;if(3===o||6===o)r=!0;else{if(1===o||2===o){let
u=i[++s];for(;"string"==typeof
u;)u=i[++s];continue}if(4===o)break;if(0===o){s+=4;continue}}s+=r?1:2}return-1}return
function ik(t,i){let e=t.indexOf(4);if(e>-1)for(e++;e<t.length;){const
n=t[e];if("number"==typeof n)return-1;if(n===i)return
e;e++}return-1}(i,t)}function Sb(t,i,e=!1){for(let
n=0;n<i.length;n++)if(XM(t,i[n],e))return!0;return!1}function sk(t,i){e:for(let
e=0;e<i.length;e++){const n=i[e];if(t.length===n.length){for(let
s=0;s<t.length;s++)if(t[s]!==n[s])continue e;return!0}}return!1}function xb(t,i){return
t?":not("+i.trim()+")":i}function rk(t){let
i=t[0],e=1,n=2,s="",r=!1;for(;e<t.length;){let
o=t[e];if("string"==typeof o)if(2&n){const
u=t[++e];s+="["+o+(u.length>0?'="'+u+'"':"")+"]"}else
8&n?s+="."+o:4&n&&(s+="
"+o);else""!==s&&!Li(o)&&(i+=xb(r,s),s=""),n=o,r=r||
!Li(n);e++}return""!==s&&(i+=xb(r,s)),i}const Re={};function
a(t){Db(tt(),$(),Nn()+t,!1)}function Db(t,i,e,n){if(!n)if(3==(3&i[2])){const
r=t.preOrderCheckHooks;null!==r&&ec(i,r,e)}else{const
r=t.preOrderHooks;null!==r&&tc(i,r,0,e)}Ps(e)}function Cc(t,i){return
t<<17|i<<2}function Oi(t){return t>>17&32767}function jp(t){return
2|t}function fs(t){return(131068&t)>>2}function
$p(t,i){return-131069&t|i<<2}function Wp(t){return 1|t}function Nb(t,i){const
e=t.contentQueries;if(null!==e)for(let n=0;n<e.length;n+=2){const
s=e[n],r=e[n+1];if(-1!==r){const o=t.data[r];ap(s),o.contentQueries(2,i[r],r)}}}function
Da(t,i,e,n,s,r,o,u,h,b){const y=i.blueprint.slice();return
y[0]=s,y[2]=140|n,Xg(y),y[3]=y[15]=t,y[8]=e,y[10]=o||t&&t[10],y[11]=u||t&&t[11],y[12]=h||t&&t[12]||null,y[9]=b||t&&t[9]||null,y[6]=r,y[16]=2==i.type?t[16]:y,y}function
io(t,i,e,n,s){let r=t.data[i];if(null===r)r=function nh(t,i,e,n,s){const
r=n_(),o=ip(),h=t.data[i]=function Tk(t,i,e,n,s,r){return{type:e,index:n,insertBeforeIn
dex:null,injectorIndex:i?i.injectorIndex:-1,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,propertyBindings:null,flags:0,providerIndexes:0,value:s,attrs:r,mergedAttrs:null,localNames:null,initialInputs:void
0,inputs:null,outputs:null,tViews:null,next:null,projectionNext:null,child:null,parent:i,projection:null,styles:null,stylesWithoutHost:null,residualStyles:void
0,classes:null,classesWithoutHost:null,residualClasses:void
0,classBindings:0,styleBindings:0}}(0,o?r:r&&r.parent,e,i,n,s);return
null===t.firstChild&&(t.firstChild=h),null!==r&&(o?null==r.child&&null!==h.parent&&(r.child=h):null===r.next&&(r.next=h)),h}(t,i,e,n,s),function
$x(){return Ee.lFrame.inI18n}()&&(r.flags|=64);else
if(64&r.type){r.type=e,r.value=n,r.attrs=s;const o=function ra(){const
t=Ee.lFrame,i=t.currentTNode;return
t.isParent?i:i.parent}();r.injectorIndex=null===o?-1:o.injectorIndex}return
Qi(r,!0),r}function so(t,i,e,n){if(0===e)return-1;const s=i.length;for(let
r=0;r<e;r++)i.push(n),t.blueprint.
push(n),t.data.push(null);return s}function Ma(t,i,e){Yl(i);try{const
n=t.viewQuery;null!==n&&dh(1,n,e);const
s=t.template;null!==s&&Vb(t,i,s,1,e),t.firstCreatePass&&(t.firstCreatePass=!1),t.staticContentQueries&&Nb(t,i),t.staticViewQueries&&dh(2,t.viewQuery,e);const
r=t.components;null!==r&&function Ck(t,i){for(let
e=0;e<i.length;e++)qk(t,i[e])}(i,r)}catch(n){throw
t.firstCreatePass&&(t.incompleteFirstPass=!0,t.firstCreatePass=!1),n}finally{i[2]&=-5,Zl()}}function
ro(t,i,e,n){const s=i[2];if(256!=(256&s)){Yl(i);try{Xg(i),function i_(t){return
Ee.lFrame.bindingIndex=t}(t.bindingStartIndex),null!==e&&Vb(t,i,e,2,n);const
o=3==(3&s);if(o){const
b=t.preOrderCheckHooks;null!==b&&ec(i,b,null)}else{const
b=t.preOrderHooks;null!==b&&tc(i,b,0,null),lp(i,0)}if(function Bk(t){for(let
i=Dp(t);null!==i;i=Mp(i)){if(!i[2])continue;const e=i[9];for(let
n=0;n<e.length;n++){const
s=e[n],r=s[3];0==(1024&s[2])&&np(r,1),s[2]|=1024}}}(i),function Vk(t){for(let
i=Dp(t);null!==i;i=Mp(i))for(let e=10;e<i.le
ngth;e++){const
n=i[e],s=n[1];tp(n)&&ro(s,n,s.template,n[8])}}(i),null!==t.contentQueries&&Nb(t,i),o){const
b=t.contentCheckHooks;null!==b&&ec(i,b)}else{const
b=t.contentHooks;null!==b&&tc(i,b,1),lp(i,1)}!function bk(t,i){const
e=t.hostBindingOpCodes;if(null!==e)try{for(let n=0;n<e.length;n++){const
s=e[n];if(s<0)Ps(~s);else{const
r=s,o=e[++n],u=e[++n];Wx(o,r),u(2,i[r])}}}finally{Ps(-1)}}(t,i);const
u=t.components;null!==u&&function vk(t,i){for(let
e=0;e<i.length;e++)Hk(t,i[e])}(i,u);const
h=t.viewQuery;if(null!==h&&dh(2,h,n),o){const
b=t.viewCheckHooks;null!==b&&ec(i,b)}else{const
b=t.viewHooks;null!==b&&tc(i,b,2),lp(i,2)}!0===t.firstUpdatePass&&(t.firstUpdatePass=!1),i[2]&=-73,1024&i[2]&&(i[2]&=-1025,np(i[3],-1))}finally{Zl()}}}function
yk(t,i,e,n){const
s=i[10],o=Zg(i);try{!o&&s.begin&&s.begin(),o&&Ma(t,i,n),ro(t,i,e,n)}finally{!o&&s.end&&s.end()}}function
Vb(t,i,e,n,s){const
r=Nn(),o=2&n;try{Ps(-1),o&&i.length>20&&Db(t,i,20,!1),e(n,s)}finally{Ps(r)}}function
Bb(t,i,e){if(Wd(i)){
const s=i.directiveEnd;for(let r=i.directiveStart;r<s;r++){const
o=t.data[r];o.contentQueries&&o.contentQueries(1,e[r],r)}}}function
ih(t,i,e){!t_()||(function Ek(t,i,e,n){const
s=e.directiveStart,r=e.directiveEnd;t.firstCreatePass||la(e,i),In(n,i);const
o=e.initialInputs;for(let u=s;u<r;u++){const
h=t.data[u],b=Ri(h);b&&Pk(i,e,h);const
y=ca(i,t,u,e);In(y,i),null!==o&&Fk(0,u-s,y,h,0,o),b&&(Xn(e.index,i)[8]=y)}}(t,i,e,Zn(e,i)),128==(128&e.flags)&&function
Rk(t,i,e){const n=e.directiveStart,s=e.directiveEnd,o=e.index,u=function Kx(){return
Ee.lFrame.currentDirectiveIndex}();try{Ps(o);for(let h=n;h<s;h++){const
b=t.data[h],y=i[h];rp(h),(null!==b.hostBindings||0!==b.hostVars||null!==b.hostAttrs)&&Wb(b,y)}}finally{Ps(-1),rp(u)}}(t,i,e))}function
sh(t,i,e=Zn){const n=i.localNames;if(null!==n){let s=i.index+1;for(let
r=0;r<n.length;r+=2){const o=n[r+1],u=-1===o?e(i,t):t[o];t[s++]=u}}}function
Hb(t){const i=t.tView;return
null===i||i.incompleteFirstPass?t.tView=Tc(1,null,t.template,t.decls,
t.vars,t.directiveDefs,t.pipeDefs,t.viewQuery,t.schemas,t.consts):i}function
Tc(t,i,e,n,s,r,o,u,h,b){const y=20+n,w=y+s,M=function wk(t,i){const e=[];for(let
n=0;n<i;n++)e.push(n<t?null:Re);return e}(y,w),E="function"==typeof
b?b():b;return
M[1]={type:t,blueprint:M,template:e,queries:null,viewQuery:u,declTNode:i,data:M.slice().fill(null,y),bindingStartIndex:y,expandoStartIndex:w,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
r?r():r,pipeRegistry:"function"==typeof
o?o():o,firstChild:null,schemas:h,consts:E,incompleteFirstPass:!1}}function
Ub(t,i,e,n){const
s=Xb(i);null===e?s.push(n):(s.push(e),t.firstCreatePass&&ev(t).push(n,s.length-1))}function
zb(t,i,e){for(let n in t)if(t.hasOwnProperty(n)){const s=t[
n];(e=null===e?{}:e).hasOwnProperty(n)?e[n].push(i,s):e[n]=[i,s]}return e}function
ii(t,i,e,n,s,r,o,u){const h=Zn(i,e);let
y,b=i.inputs;!u&&null!=b&&(y=b[n])?(iv(t,e,y,n,s),Wl(i)&&function
Dk(t,i){const
e=Xn(i,t);16&e[2]||(e[2]|=64)}(e,i.index)):3&i.type&&(n=function
xk(t){return"class"===t?"className":"for"===t?"htmlFor":"formaction"===t?"formAction":"innerHtml"===t?"innerHTML":"readonly"===t?"readOnly":"tabindex"===t?"tabIndex":t}(n),s=null!=o?o(s,i.value||"",n):s,$t(r)?r.setProperty(h,n,s):up(n)||(h.setProperty?h.setProperty(n,s):h[n]=s))}function
rh(t,i,e,n){let s=!1;if(t_()){const r=function Lk(t,i,e){const n=t.directiveRegistry;let
s=null;if(n)for(let r=0;r<n.length;r++){const
o=n[r];Sb(e,o.selectors,!1)&&(s||(s=[]),oc(la(e,i),t,o.type),Ri(o)?(Kb(t,e),s.unshift(o)):s.push(o))}return
s}(t,i,e),o=null===n?null:{"":-1};if(null!==r){s=!0,Qb(e,t.data.length,r.length);for(let
y=0;y<r.length;y++){const
w=r[y];w.providersResolver&&w.providersResolver(w)}let
u=!1,h=!1,b=so(t,i,r.length
,null);for(let y=0;y<r.length;y++){const
w=r[y];e.mergedAttrs=ic(e.mergedAttrs,w.hostAttrs),Jb(t,e,i,b,w),Ak(b,w,o),null!==w.contentQueries&&(e.flags|=8),(null!==w.hostBindings||null!==w.hostAttrs||0!==w.hostVars)&&(e.flags|=128);const
M=w.type.prototype;!u&&(M.ngOnChanges||M.ngOnInit||M.ngDoCheck)&&((t.preOrderHooks||(t.preOrderHooks=[])).push(e.index),u=!0),!h&&(M.ngOnChanges||M.ngDoCheck)&&((t.preOrderCheckHooks||(t.preOrderCheckHooks=[])).push(e.index),h=!0),b++}!function
Sk(t,i){const n=i.directiveEnd,s=t.data,r=i.attrs,o=[];let u=null,h=null;for(let
b=i.directiveStart;b<n;b++){const
y=s[b],w=y.inputs,M=null===r||Tb(i)?null:Nk(w,r);o.push(M),u=zb(w,b,u),h=zb(y.outputs,b,h)}null!==u&&(u.hasOwnProperty("class")&&(i.flags|=16),u.hasOwnProperty("style")&&(i.flags|=32)),i.initialInputs=o,i.inputs=u,i.outputs=h}(t,e)}o&&function
Ok(t,i,e){if(i){const n=t.localNames=[];for(let s=0;s<i.length;s+=2){const
r=e[i[s+1]];if(null==r)throw new re(-301,!1);n.push(i[s],r)}}}(e,n,o)}return e.mer
gedAttrs=ic(e.mergedAttrs,e.attrs),s}function $b(t,i,e,n,s,r){const
o=r.hostBindings;if(o){let
u=t.hostBindingOpCodes;null===u&&(u=t.hostBindingOpCodes=[]);const
h=~i.index;(function Ik(t){let i=t.length;for(;i>0;){const
e=t[--i];if("number"==typeof e&&e<0)return e}return
0})(u)!=h&&u.push(h),u.push(n,s,o)}}function
Wb(t,i){null!==t.hostBindings&&t.hostBindings(1,i)}function
Kb(t,i){i.flags|=2,(t.components||(t.components=[])).push(i.index)}function
Ak(t,i,e){if(e){if(i.exportAs)for(let
n=0;n<i.exportAs.length;n++)e[i.exportAs[n]]=t;Ri(i)&&(e[""]=t)}}function
Qb(t,i,e){t.flags|=1,t.directiveStart=i,t.directiveEnd=i+e,t.providerIndexes=i}function
Jb(t,i,e,n,s){t.data[n]=s;const r=s.factory||(s.factory=ar(s.type)),o=new
oa(r,Ri(s),null);t.blueprint[n]=o,e[n]=o,$b(t,i,0,n,so(t,e,s.hostVars,Re),s)}function
Pk(t,i,e){const
n=Zn(i,t),s=Hb(e),r=t[10],o=Sc(t,Da(t,s,null,e.onPush?64:16,n,i,r,r.createRenderer(n,e),null,null));t[i.index]=o}function
Xi(t,i,e,n,s,r){const o=Zn(t,i);!function oh(
t,i,e,n,s,r,o){if(null==r)$t(t)?t.removeAttribute(i,s,e):i.removeAttribute(s);else{const
u=null==o?Ie(r):o(r,n||"",s);$t(t)?t.setAttribute(i,s,u,e):e?i.setAttributeNS(e,s,u):i.setAttribute(s,u)}}(i[11],o,r,t.value,e,n,s)}function
Fk(t,i,e,n,s,r){const o=r[i];if(null!==o){const u=n.setInput;for(let
h=0;h<o.length;){const
b=o[h++],y=o[h++],w=o[h++];null!==u?n.setInput(e,w,b,y):e[y]=w}}}function Nk(t,i){let
e=null,n=0;for(;n<i.length;){const
s=i[n];if(0!==s)if(5!==s){if("number"==typeof
s)break;t.hasOwnProperty(s)&&(null===e&&(e=[]),e.push(s,t[s],i[n+1])),n+=2}else
n+=2;else n+=4}return e}function Yb(t,i,e,n){return new
Array(t,!0,!1,i,null,0,n,e,null,null)}function Hk(t,i){const e=Xn(i,t);if(tp(e)){const
n=e[1];80&e[2]?ro(n,e,n.template,e[8]):e[5]>0&&ah(e)}}function
ah(t){for(let n=Dp(t);null!==n;n=Mp(n))for(let s=10;s<n.length;s++){const
r=n[s];if(1024&r[2]){const o=r[1];ro(o,r,o.template,r[8])}else
r[5]>0&&ah(r)}const e=t[1].components;if(null!==e)for(let
n=0;n<e.length;n++){const s
=Xn(e[n],t);tp(s)&&s[5]>0&&ah(s)}}function qk(t,i){const
e=Xn(i,t),n=e[1];(function Gk(t,i){for(let
e=i.length;e<t.blueprint.length;e++)i.push(t.blueprint[e])})(n,e),Ma(n,e,e[8])}function
Sc(t,i){return t[13]?t[14][4]=i:t[13]=i,t[14]=i,i}function lh(t){for(;t;){t[2]|=64;const
i=Ca(t);if(Sx(t)&&!i)return t;t=i}return null}function Zb(t){!function
ch(t){for(let i=0;i<t.components.length;i++){const
e=t.components[i],n=Tp(e),s=n[1];yk(s,n,s.template,e)}}(t[8])}function
dh(t,i,e){ap(0),i(t,e)}const zk=(()=>Promise.resolve(null))();function Xb(t){return
t[7]||(t[7]=[])}function ev(t){return t.cleanup||(t.cleanup=[])}function nv(t,i){const
e=t[9],n=e?e.get(xa,null):null;n&&n.handleError(i)}function iv(t,i,e,n,s){for(let
r=0;r<e.length;){const
o=e[r++],u=e[r++],h=i[o],b=t.data[o];null!==b.setInput?b.setInput(h,s,n,u):h[u]=s}}function
gs(t,i,e){const n=Ql(i,t);!function
K_(t,i,e){$t(t)?t.setValue(i,e):i.textContent=e}(t[11],n,e)}function xc(t,i,e){let
n=e?t.styles:null,s=e?t.classes:null,r=0
;if(null!==i)for(let o=0;o<i.length;o++){const u=i[o];"number"==typeof
u?r=u:1==r?s=Vd(s,u):2==r&&(n=Vd(n,u+":
"+i[++o]+";"))}e?t.styles=n:t.stylesWithoutHost=n,e?t.classes=s:t.classesWithoutHost=s}const
ph=new be("INJECTOR",-1);class sv{get(i,e=ma){if(e===ma){const n=new
Error(`NullInjectorError: No provider for ${ft(i)}!`);throw
n.name="NullInjectorError",n}return e}}const hh=new be("Set Injector
scope."),ka={},Wk={};let mh;function rv(){return void 0===mh&&(mh=new
sv),mh}function ov(t,i=null,e=null,n){const s=av(t,i,e,n);return
s._resolveInjectorDefTypes(),s}function av(t,i=null,e=null,n){return new
Kk(t,e,i||rv(),n)}class Kk{constructor(i,e,n,s=null){this.parent=n,this.records=new
Map,this.injectorDefTypes=new Set,this.onDestroy=new Set,this._destroyed=!1;const
r=[];e&&Ji(e,u=>this.processProvider(u,i,e)),Ji([i],u=>this.processInjectorType(u,[],r)),this.records.set(ph,oo(void
0,this));const
o=this.records.get(hh);this.scope=null!=o?o.value:null,this.source=s||("object"==typeof
i
?null:ft(i))}get destroyed(){return
this._destroyed}destroy(){this.assertNotDestroyed(),this._destroyed=!0;try{this.onDestroy.forEach(i=>i.ngOnDestroy())}finally{this.records.clear(),this.onDestroy.clear(),this.injectorDefTypes.clear()}}get(i,e=ma,n=xe.Default){this.assertNotDestroyed();const
s=R_(this),r=Rs(void 0);try{if(!(n&xe.SkipSelf)){let u=this.records.get(i);if(void
0===u){const h=function nI(t){return"function"==typeof
t||"object"==typeof t&&t instanceof
be}(i)&&Hd(i);u=h&&this.injectableDefInScope(h)?oo(fh(i),ka):null,this.records.set(i,u)}if(null!=u)return
this.hydrate(i,u)}return(n&xe.Self?rv():this.parent).get(i,e=n&xe.Optional&&e===ma?null:e)}catch(o){if("NullInjectorError"===o.name){if((o[uc]=o[uc]||[]).unshift(ft(i)),s)throw
o;return function RD(t,i,e,n){const s=t[uc];throw
i[E_]&&s.unshift(i[E_]),t.message=function
LD(t,i,e,n=null){t=t&&"\n"===t.charAt(0)&&"\u0275"==t.charAt(1)?t.substr(2):t;let
s=ft(i);if(Array.isArray(i))s=i.map(ft).join(" -> ");else
if("object"==
typeof i){let r=[];for(let o in i)if(i.hasOwnProperty(o)){let
u=i[o];r.push(o+":"+("string"==typeof
u?JSON.stringify(u):ft(u)))}s=`{${r.join(",
")}}`}return`${e}${n?"("+n+")":""}[${s}]:
${t.replace(DD,"\n
")}`}("\n"+t.message,s,e,n),t.ngTokenPath=s,t[uc]=null,t}(o,i,"R3InjectorError",this.source)}throw
o}finally{Rs(r),R_(s)}}_resolveInjectorDefTypes(){this.injectorDefTypes.forEach(i=>this.get(i))}toString(){const
i=[];return this.records.forEach((n,s)=>i.push(ft(s))),`R3Injector[${i.join(",
")}]`}assertNotDestroyed(){if(this._destroyed)throw new
re(205,!1)}processInjectorType(i,e,n){if(!(i=Ve(i)))return!1;let s=Bg(i);const
r=null==s&&i.ngModule||void 0,o=void 0===r?i:r,u=-1!==n.indexOf(o);if(void
0!==r&&(s=Bg(r)),null==s)return!1;if(null!=s.imports&&!u){let
y;n.push(o);try{Ji(s.imports,w=>{this.processInjectorType(w,e,n)&&(void
0===y&&(y=[]),y.push(w))})}finally{}if(void 0!==y)for(let
w=0;w<y.length;w++){const{ngModule:M,providers:E}=y[w];Ji(E,L=>this.processProvider(L,M,E||Tt))}}t
his.injectorDefTypes.add(o);const h=ar(o)||(()=>new
o);this.records.set(o,oo(h,ka));const b=s.providers;if(null!=b&&!u){const
y=i;Ji(b,w=>this.processProvider(w,y,b))}return void 0!==r&&void
0!==i.providers}processProvider(i,e,n){let s=ao(i=Ve(i))?i:Ve(i&&i.provide);const
r=function Jk(t,i,e){return cv(t)?oo(void
0,t.useValue):oo(lv(t),ka)}(i);if(ao(i)||!0!==i.multi)this.records.get(s);else{let
o=this.records.get(s);o||(o=oo(void
0,ka,!0),o.factory=()=>Cp(o.multi),this.records.set(s,o)),s=i,o.multi.push(i)}this.records.set(s,r)}hydrate(i,e){return
e.value===ka&&(e.value=Wk,e.value=e.factory()),"object"==typeof
e.value&&e.value&&function tI(t){return
null!==t&&"object"==typeof t&&"function"==typeof
t.ngOnDestroy}(e.value)&&this.onDestroy.add(e.value),e.value}injectableDefInScope(i){if(!i.providedIn)return!1;const
e=Ve(i.providedIn);return"string"==typeof
e?"any"===e||e===this.scope:this.injectorDefTypes.has(e)}}function fh(t){const
i=Hd(t),e=null!==i?i.factory:ar(t);if(null!==e)retur
n e;if(t instanceof be)throw new re(204,!1);if(t instanceof Function)return function
Qk(t){const i=t.length;if(i>0)throw ha(i,"?"),new re(204,!1);const e=function
px(t){const i=t&&(t[Gl]||t[Hg]);if(i){const e=function
hx(t){if(t.hasOwnProperty("name"))return t.name;const
i=(""+t).match(/^function\s*([^\s(]+)/);return
null===i?"":i[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.`),i}return null}(t);return
null!==e?()=>e.factory(t):()=>new t}(t);throw new re(204,!1)}function lv(t,i,e){let
n;if(ao(t)){const s=Ve(t);return ar(s)||fh(s)}if(cv(t))n=()=>Ve(t.useValue);else
if(function
Zk(t){return!(!t||!t.useFactory)}(t))n=()=>t.useFactory(...Cp(t.deps||[]));else
if(function Yk(t){return!(!t||!t.useExisting)}(t))n=()=>K(Ve(t.useExisting));else{const
s=Ve(t&&(t.useClass||t.provide));if(!fu
nction eI(t){return!!t.deps}(t))return ar(s)||fh(s);n=()=>new s(...Cp(t.deps))}return
n}function oo(t,i,e=!1){return{factory:t,value:i,multi:e?[]:void 0}}function cv(t){return
null!==t&&"object"==typeof t&&kD in t}function
ao(t){return"function"==typeof t}let En=(()=>{class t{static create(e,n){var
s;if(Array.isArray(e))return ov({name:""},n,e,"");{const
r=null!==(s=e.name)&&void 0!==s?s:"";return
ov({name:r},e.parent,e.providers,r)}}}return t.THROW_IF_NOT_FOUND=ma,t.NULL=new
sv,t.\u0275prov=X({token:t,providedIn:"any",factory:()=>K(ph)}),t.__NG_ELEMENT_ID__=-1,t})();function
uI(t,i){Xl(Tp(t)[1],rn())}function ut(t){let i=function yv(t){return
Object.getPrototypeOf(t.prototype).constructor}(t.type),e=!0;const n=[t];for(;i;){let
s;if(Ri(t))s=i.\u0275cmp||i.\u0275dir;else{if(i.\u0275cmp)throw new
re(903,"");s=i.\u0275dir}if(s){if(e){n.push(s);const
o=t;o.inputs=bh(t.inputs),o.declaredInputs=bh(t.declaredInputs),o.outputs=bh(t.outputs);const
u=s.hostBindings;u&&mI(t,u);const h=s.viewQu
ery,b=s.contentQueries;if(h&&pI(t,h),b&&hI(t,b),Nd(t.inputs,s.inputs),Nd(t.declaredInputs,s.declaredInputs),Nd(t.outputs,s.outputs),Ri(s)&&s.data.animation){const
y=t.data;y.animation=(y.animation||[]).concat(s.data.animation)}}const
r=s.features;if(r)for(let o=0;o<r.length;o++){const
u=r[o];u&&u.ngInherit&&u(t),u===ut&&(e=!1)}}i=Object.getPrototypeOf(i)}!function
dI(t){let i=0,e=null;for(let n=t.length-1;n>=0;n--){const
s=t[n];s.hostVars=i+=s.hostVars,s.hostAttrs=ic(s.hostAttrs,e=ic(e,s.hostAttrs))}}(n)}function
bh(t){return t===Br?{}:t===Tt?[]:t}function pI(t,i){const
e=t.viewQuery;t.viewQuery=e?(n,s)=>{i(n,s),e(n,s)}:i}function hI(t,i){const
e=t.contentQueries;t.contentQueries=e?(n,s,r)=>{i(n,s,r),e(n,s,r)}:i}function
mI(t,i){const e=t.hostBindings;t.hostBindings=e?(n,s)=>{i(n,s),e(n,s)}:i}let
Dc=null;function lo(){if(!Dc){const
t=vt.Symbol;if(t&&t.iterator)Dc=t.iterator;else{const
i=Object.getOwnPropertyNames(Map.prototype);for(let e=0;e<i.length;++e){const
n=i[e];"entries"!==n&
&"size"!==n&&Map.prototype[n]===Map.prototype.entries&&(Dc=n)}}}return
Dc}function Ia(t){return!!vh(t)&&(Array.isArray(t)||!(t instanceof
Map)&&lo()in t)}function vh(t){return
null!==t&&("function"==typeof t||"object"==typeof t)}function
es(t,i,e){return t[i]=e}function Ea(t,i){return t[i]}function
Rn(t,i,e){return!Object.is(t[i],e)&&(t[i]=e,!0)}function ur(t,i,e,n){const
s=Rn(t,i,e);return Rn(t,i+1,n)||s}function Mc(t,i,e,n,s){const r=ur(t,i,e,n);return
Rn(t,i+2,s)||r}function gi(t,i,e,n,s,r){const o=ur(t,i,e,n);return
ur(t,i+2,s,r)||o}function ie(t,i,e,n){const s=$();return
Rn(s,jr(),i)&&(tt(),Xi(Vt(),s,t,i,e,n)),ie}function uo(t,i,e,n){return
Rn(t,jr(),e)?i+Ie(e)+n:Re}function po(t,i,e,n,s,r){const u=ur(t,hs(),e,s);return
ms(2),u?i+Ie(e)+n+Ie(s)+r:Re}function _(t,i,e,n,s,r,o,u){const
h=$(),b=tt(),y=t+20,w=b.firstCreatePass?function yI(t,i,e,n,s,r,o,u,h){const
b=i.consts,y=io(i,t,4,o||null,As(b,u));rh(i,e,y,As(b,h)),Xl(i,y);const
w=y.tViews=Tc(2,y,n,s,r,i.directiveRegistry,i.pipeR
egistry,null,i.schemas,b);return
null!==i.queries&&(i.queries.template(i,y),w.queries=i.queries.embeddedTView(y)),y}(y,b,h,i,e,n,s,r,o):b.data[y];Qi(w,!1);const
M=h[11].createComment("");mc(b,h,M,w),In(M,h),Sc(h,h[y]=Yb(M,h,M,w)),Kl(w)&&ih(b,h,w),null!=o&&sh(h,w,u)}function
F(t){return zr(function jx(){return Ee.lFrame.contextLView}(),20+t)}function
D(t,i=xe.Default){const e=$();return null===e?K(t,i):C_(rn(),e,Ve(t),i)}function
Sh(){throw new Error("invalid")}function p(t,i,e){const n=$();return
Rn(n,jr(),i)&&ii(tt(),Vt(),n,t,i,n[11],e,!1),p}function xh(t,i,e,n,s){const
o=s?"class":"style";iv(t,e,i.inputs[o],o,n)}function l(t,i,e,n){const
s=$(),r=tt(),o=20+t,u=s[11],h=s[o]=Ip(u,i,function tD(){return
Ee.lFrame.currentNamespace}()),b=r.firstCreatePass?function GI(t,i,e,n,s,r,o){const
u=i.consts,b=io(i,t,2,s,As(u,r));return
rh(i,e,b,As(u,o)),null!==b.attrs&&xc(b,b.attrs,!1),null!==b.mergedAttrs&&xc(b,b.mergedAttrs,!0),null!==i.queries&&i.queries.elementStart(i,b),b}(o,r,s,0,i,e,n):r.
data[o];Qi(b,!0);const y=b.mergedAttrs;null!==y&&nc(u,h,y);const
w=b.classes;null!==w&&Fp(u,h,w);const M=b.styles;return
null!==M&&ab(u,h,M),64!=(64&b.flags)&&mc(r,s,h,b),0===function
Hx(){return Ee.lFrame.elementDepthCount}()&&In(h,s),function
qx(){Ee.lFrame.elementDepthCount++}(),Kl(b)&&(ih(r,s,b),Bb(r,b,s)),null!==n&&sh(s,b),l}function
c(){let t=rn();ip()?sp():(t=t.parent,Qi(t,!1));const i=t;!function
Gx(){Ee.lFrame.elementDepthCount--}();const e=tt();return
e.firstCreatePass&&(Xl(e,t),Wd(t)&&e.queries.elementEnd(t)),null!=i.classesWithoutHost&&function
oD(t){return
0!=(16&t.flags)}(i)&&xh(e,i,$(),i.classesWithoutHost,!0),null!=i.stylesWithoutHost&&function
aD(t){return
0!=(32&t.flags)}(i)&&xh(e,i,$(),i.stylesWithoutHost,!1),c}function
k(t,i,e,n){return l(t,i,e,n),c(),k}function de(t,i,e){const
n=$(),s=tt(),r=t+20,o=s.firstCreatePass?function UI(t,i,e,n,s){const
r=i.consts,o=As(r,n),u=io(i,t,8,"ng-container",o);return
null!==o&&xc(u,o,!0),rh(i,e,u,As(r,s)),null!==i.queries&&i.que
ries.elementStart(i,u),u}(r,s,n,i,e):s.data[r];Qi(o,!0);const
u=n[r]=n[11].createComment("");return
mc(s,n,u,o),In(u,n),Kl(o)&&(ih(s,n,o),Bb(s,o,n)),null!=e&&sh(n,o),de}function
pe(){let t=rn();const i=tt();return
ip()?sp():(t=t.parent,Qi(t,!1)),i.firstCreatePass&&(Xl(i,t),Wd(t)&&i.queries.elementEnd(t)),pe}function
Y(t,i,e){return de(t,i,e),pe(),Y}function I(){return $()}function
Ra(t){return!!t&&"function"==typeof t.then}function
qv(t){return!!t&&"function"==typeof t.subscribe}const Dh=qv;function
C(t,i,e,n){const s=$(),r=tt(),o=rn();return function Uv(t,i,e,n,s,r,o,u){const
h=Kl(n),y=t.firstCreatePass&&ev(t),w=i[8],M=Xb(i);let
E=!0;if(3&n.type||u){const
N=Zn(n,i),G=u?u(N):N,P=M.length,J=u?se=>u(Yt(se[n.index])):n.index;if($t(e)){let
se=null;if(!u&&h&&(se=function zI(t,i,e,n){const
s=t.cleanup;if(null!=s)for(let r=0;r<s.length-1;r+=2){const
o=s[r];if(o===e&&s[r+1]===n){const u=i[7],h=s[r+2];return
u.length>h?u[h]:null}"string"==typeof o&&(r+=2)}return
null}(t,i,s,n.index)),null!==
se)(se.__ngLastListenerFn__||se).__ngNextListenerFn__=r,se.__ngLastListenerFn__=r,E=!1;else{r=Mh(n,i,w,r,!1);const
ke=e.listen(G,s,r);M.push(r,ke),y&&y.push(s,J,P,P+1)}}else
r=Mh(n,i,w,r,!0),G.addEventListener(s,r,o),M.push(r),y&&y.push(s,J,P,o)}else
r=Mh(n,i,w,r,!1);const L=n.outputs;let O;if(E&&null!==L&&(O=L[s])){const
N=O.length;if(N)for(let G=0;G<N;G+=2){const
mt=i[O[G]][O[G+1]].subscribe(r),Ct=M.length;M.push(r,mt),y&&y.push(s,n.index,Ct,-(Ct+1))}}}(r,s,s[11],o,t,i,!!e,n),C}function
zv(t,i,e,n){try{return!1!==e(n)}catch(s){return nv(t,s),!1}}function Mh(t,i,e,n,s){return
function r(o){if(o===Function)return n;const
u=2&t.flags?Xn(t.index,i):i;0==(32&i[2])&&lh(u);let
h=zv(i,0,n,o),b=r.__ngNextListenerFn__;for(;b;)h=zv(i,0,b,o)&&h,b=b.__ngNextListenerFn__;return
s&&!1===h&&(o.preventDefault(),o.returnValue=!1),h}}function d(t=1){return
function Jx(t){return(Ee.lFrame.contextLView=function
Yx(t,i){for(;t>0;)i=i[15],t--;return i}(t,Ee.lFrame.contextLView))[8]}(t)}function
jI(t,i){
let e=null;const n=function tk(t){const i=t.attrs;if(null!=i){const
e=i.indexOf(5);if(0==(1&e))return i[e+1]}return null}(t);for(let
s=0;s<i.length;s++){const
r=i[s];if("*"!==r){if(null===n?Sb(t,r,!0):sk(n,r))return s}else e=s}return
e}function Sn(t){const i=$()[16][6];if(!i.projection){const
n=i.projection=ha(t?t.length:1,null),s=n.slice();let r=i.child;for(;null!==r;){const
o=t?jI(r,t):0;null!==o&&(s[o]?s[o].projectionNext=r:n[o]=r,s[o]=r),r=r.next}}}function
St(t,i=0,e){const
n=$(),s=tt(),r=io(s,20+t,16,null,e||null);null===r.projection&&(r.projection=i),sp(),64!=(64&r.flags)&&function
cM(t,i,e){ob(i[11],0,i,e,Y_(t,e,i),tb(e.parent||i[6],e,i))}(s,n,r)}function
x(t,i,e){return Bn(t,"",i,"",e),x}function Bn(t,i,e,n,s){const
r=$(),o=uo(r,i,e,n);return o!==Re&&ii(tt(),Vt(),r,t,o,r[11],s,!1),Bn}function
La(t,i,e,n,s,r,o){const u=$(),h=po(u,i,e,n,s,r);return
h!==Re&&ii(tt(),Vt(),u,t,h,u[11],o,!1),La}function Zv(t,i,e,n,s){const
r=t[e+1],o=null===i;let u=n?Oi(r):fs(r),h=!1;for(;0!==u&&(
!1===h||o);){const
y=t[u+1];KI(t[u],i)&&(h=!0,t[u+1]=n?Wp(y):jp(y)),u=n?Oi(y):fs(y)}h&&(t[e+1]=n?jp(r):Wp(r))}function
KI(t,i){return
null===t||null==i||(Array.isArray(t)?t[1]:t)===i||!(!Array.isArray(t)||"string"!=typeof
i)&&Xr(t,i)>=0}const cn={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function
Xv(t){return t.substring(cn.key,cn.keyEnd)}function QI(t){return
t.substring(cn.value,cn.valueEnd)}function e1(t,i){const e=cn.textEnd;return
e===i?-1:(i=cn.keyEnd=function
ZI(t,i,e){for(;i<e&&t.charCodeAt(i)>32;)i++;return
i}(t,cn.key=i,e),Co(t,i,e))}function t1(t,i){const e=cn.textEnd;let
n=cn.key=Co(t,i,e);return e===n?-1:(n=cn.keyEnd=function XI(t,i,e){let
n;for(;i<e&&(45===(n=t.charCodeAt(i))||95===n||(-33&n)>=65&&(-33&n)<=90||n>=48&&n<=57);)i++;return
i}(t,n,e),n=s1(t,n,e),n=cn.value=Co(t,n,e),n=cn.valueEnd=function e3(t,i,e){let
n=-1,s=-1,r=-1,o=i,u=o;for(;o<e;){const h=t.charCodeAt(o++);if(59===h)return
u;34===h||39===h?u=o=r1(t,h,o,e):i===o-4&&85===r&&82===s&&76===n&&40===h?u=o=
r1(t,41,o,e):h>32&&(u=o),r=s,s=n,n=-33&h}return
u}(t,n,e),s1(t,n,e))}function
n1(t){cn.key=0,cn.keyEnd=0,cn.value=0,cn.valueEnd=0,cn.textEnd=t.length}function
Co(t,i,e){for(;i<e&&t.charCodeAt(i)<=32;)i++;return i}function
s1(t,i,e,n){return(i=Co(t,i,e))<e&&i++,i}function r1(t,i,e,n){let
s=-1,r=e;for(;r<n;){const o=t.charCodeAt(r++);if(o==i&&92!==s)return
r;s=92==o&&92===s?0:o}throw new Error}function _i(t,i,e){return
Pi(t,i,e,!1),_i}function si(t,i){return Pi(t,i,null,!0),si}function
q(t){Fi(l1,t3,t,!1)}function t3(t,i){for(let e=function YI(t){return
n1(t),t1(t,Co(t,0,cn.textEnd))}(i);e>=0;e=t1(i,e))l1(t,Xv(i),QI(i))}function
me(t){Fi(ei,ts,t,!0)}function ts(t,i){for(let e=function JI(t){return
n1(t),e1(t,Co(t,0,cn.textEnd))}(i);e>=0;e=e1(i,e))ei(t,Xv(i),!0)}function
Pi(t,i,e,n){const
s=$(),r=tt(),o=ms(2);r.firstUpdatePass&&a1(r,t,o,n),i!==Re&&Rn(s,o,i)&&c1(r,r.data[Nn()],s,s[11],t,s[o+1]=function
c3(t,i){return null==t||("string"==typeof i?t+=i:"object"==typeof
t&&(t=ft(Vs(t)))),t
}(i,e),n,o)}function Fi(t,i,e,n){const
s=tt(),r=ms(2);s.firstUpdatePass&&a1(s,null,r,n);const
o=$();if(e!==Re&&Rn(o,r,e)){const u=s.data[Nn()];if(d1(u,n)&&!o1(s,r)){let
h=n?u.classesWithoutHost:u.stylesWithoutHost;null!==h&&(e=Vd(h,e||"")),xh(s,u,o,e,n)}else!function
l3(t,i,e,n,s,r,o,u){s===Re&&(s=Tt);let
h=0,b=0,y=0<s.length?s[0]:null,w=0<r.length?r[0]:null;for(;null!==y||null!==w;){const
M=h<s.length?s[h+1]:void 0,E=b<r.length?r[b+1]:void 0;let
O,L=null;y===w?(h+=2,b+=2,M!==E&&(L=w,O=E)):null===w||null!==y&&y<w?(h+=2,L=y):(b+=2,L=w,O=E),null!==L&&c1(t,i,e,n,L,O,o,u),y=h<s.length?s[h]:null,w=b<r.length?r[b]:null}}(s,u,o,o[11],o[r+1],o[r+1]=function
a3(t,i,e){if(null==e||""===e)return Tt;const
n=[],s=Vs(e);if(Array.isArray(s))for(let r=0;r<s.length;r++)t(n,s[r],!0);else
if("object"==typeof s)for(const r in
s)s.hasOwnProperty(r)&&t(n,r,s[r]);else"string"==typeof
s&&i(n,s);return n}(t,i,e),n,r)}}function o1(t,i){return
i>=t.expandoStartIndex}function a1(t,i,e,n){const s=t.data;if(null
===s[e+1]){const
r=s[Nn()],o=o1(t,e);d1(r,n)&&null===i&&!o&&(i=!1),i=function
n3(t,i,e,n){const s=function op(t){const
i=Ee.lFrame.currentDirectiveIndex;return-1===i?null:t[i]}(t);let
r=n?i.residualClasses:i.residualStyles;if(null===s)0===(n?i.classBindings:i.styleBindings)&&(e=Oa(e=kh(null,t,i,e,n),i.attrs,n),r=null);else{const
o=i.directiveStylingLast;if(-1===o||t[o]!==s)if(e=kh(s,t,i,e,n),null===r){let h=function
s3(t,i,e){const n=e?i.classBindings:i.styleBindings;if(0!==fs(n))return
t[Oi(n)]}(t,i,n);void
0!==h&&Array.isArray(h)&&(h=kh(null,t,i,h[1],n),h=Oa(h,i.attrs,n),function
r3(t,i,e,n){t[Oi(e?i.classBindings:i.styleBindings)]=n}(t,i,n,h))}else r=function
o3(t,i,e){let n;const s=i.directiveEnd;for(let
r=1+i.directiveStylingLast;r<s;r++)n=Oa(n,t[r].hostAttrs,e);return
Oa(n,i.attrs,e)}(t,i,n)}return void
0!==r&&(n?i.residualClasses=r:i.residualStyles=r),e}(s,r,i,n),function
$I(t,i,e,n,s,r){let o=r?i.classBindings:i.styleBindings,u=Oi(o),h=fs(o);t[n]=e;let
y,b=!1;if(Array.isArra
y(e)){const w=e;y=w[1],(null===y||Xr(w,y)>0)&&(b=!0)}else
y=e;if(s)if(0!==h){const
M=Oi(t[u+1]);t[n+1]=Cc(M,u),0!==M&&(t[M+1]=$p(t[M+1],n)),t[u+1]=function
lk(t,i){return 131071&t|i<<17}(t[u+1],n)}else
t[n+1]=Cc(u,0),0!==u&&(t[u+1]=$p(t[u+1],n)),u=n;else
t[n+1]=Cc(h,0),0===u?u=n:t[h+1]=$p(t[h+1],n),h=n;b&&(t[n+1]=jp(t[n+1])),Zv(t,y,n,!0),Zv(t,y,n,!1),function
WI(t,i,e,n,s){const
r=s?t.residualClasses:t.residualStyles;null!=r&&"string"==typeof
i&&Xr(r,i)>=0&&(e[n+1]=Wp(e[n+1]))}(i,y,t,n,r),o=Cc(u,h),r?i.classBindings=o:i.styleBindings=o}(s,r,i,e,o,n)}}function
kh(t,i,e,n,s){let r=null;const o=e.directiveEnd;let
u=e.directiveStylingLast;for(-1===u?u=e.directiveStart:u++;u<o&&(r=i[u],n=Oa(n,r.hostAttrs,s),r!==t);)u++;return
null!==t&&(e.directiveStylingLast=u),n}function Oa(t,i,e){const n=e?1:2;let
s=-1;if(null!==i)for(let r=0;r<i.length;r++){const o=i[r];"number"==typeof
o?s=o:s===n&&(Array.isArray(t)||(t=void
0===t?[]:["",t]),ei(t,o,!!e||i[++r]))}return void 0===t?null:t}function l1(
t,i,e){ei(t,i,Vs(e))}function c1(t,i,e,n,s,r,o,u){if(!(3&i.type))return;const
h=t.data,b=h[u+1];Ic(function Ib(t){return 1==(1&t)}(b)?u1(h,i,e,s,fs(b),o):void
0)||(Ic(r)||function kb(t){return
2==(2&t)}(b)&&(r=u1(h,null,e,s,u,o)),function dM(t,i,e,n,s){const
r=$t(t);if(i)s?r?t.addClass(e,n):e.classList.add(n):r?t.removeClass(e,n):e.classList.remove(n);else{let
o=-1===n.indexOf("-")?void
0:ti.DashCase;if(null==s)r?t.removeStyle(e,n,o):e.style.removeProperty(n);else{const
u="string"==typeof
s&&s.endsWith("!important");u&&(s=s.slice(0,-10),o|=ti.Important),r?t.setStyle(e,n,s,o):e.style.setProperty(n,s,u?"important":"")}}}(n,o,Ql(Nn(),e),s,r))}function
u1(t,i,e,n,s,r){const o=null===i;let u;for(;s>0;){const
h=t[s],b=Array.isArray(h),y=b?h[1]:h,w=null===y;let M=e[s+1];M===Re&&(M=w?Tt:void
0);let E=w?_p(M,n):y===n?M:void
0;if(b&&!Ic(E)&&(E=_p(h,n)),Ic(E)&&(u=E,o))return u;const
L=t[s+1];s=o?Oi(L):fs(L)}if(null!==i){let
h=r?i.residualClasses:i.residualStyles;null!=h&&(u=_p(h,n))}return u}f
unction Ic(t){return void 0!==t}function d1(t,i){return
0!=(t.flags&(i?16:32))}function g(t,i=""){const
e=$(),n=tt(),s=t+20,r=n.firstCreatePass?io(n,s,1,i,null):n.data[s],o=e[s]=function
kp(t,i){return
$t(t)?t.createText(i):t.createTextNode(i)}(e[11],i);mc(n,e,o,r),Qi(r,!1)}function
S(t){return T("",t,""),S}function T(t,i,e){const
n=$(),s=uo(n,t,i,e);return s!==Re&&gs(n,Nn(),s),T}function We(t,i,e,n,s){const
r=$(),o=po(r,t,i,e,n,s);return o!==Re&&gs(r,Nn(),o),We}function
yo(t,i,e,n,s,r,o){const u=$(),h=function ho(t,i,e,n,s,r,o,u){const
b=Mc(t,hs(),e,s,o);return ms(3),b?i+Ie(e)+n+Ie(s)+r+Ie(o)+u:Re}(u,t,i,e,n,s,r,o);return
h!==Re&&gs(u,Nn(),h),yo}function Ec(t,i,e,n,s,r,o,u,h){const b=$(),y=function
mo(t,i,e,n,s,r,o,u,h,b){const w=gi(t,hs(),e,s,o,h);return
ms(4),w?i+Ie(e)+n+Ie(s)+r+Ie(o)+u+Ie(h)+b:Re}(b,t,i,e,n,s,r,o,u,h);return
y!==Re&&gs(b,Nn(),y),Ec}function Ih(t,i,e,n,s,r,o,u,h,b,y){const w=$(),M=function
fo(t,i,e,n,s,r,o,u,h,b,y,w){const M=hs();let E=gi(t,M,e,s,o,h);return E=Rn
(t,M+4,y)||E,ms(5),E?i+Ie(e)+n+Ie(s)+r+Ie(o)+u+Ie(h)+b+Ie(y)+w:Re}(w,t,i,e,n,s,r,o,u,h,b,y);return
M!==Re&&gs(w,Nn(),M),Ih}function Eh(t,i,e,n,s,r,o,u,h,b,y,w,M){const
E=$(),L=function go(t,i,e,n,s,r,o,u,h,b,y,w,M,E){const L=hs();let O=gi(t,L,e,s,o,h);return
O=ur(t,L+4,y,M)||O,ms(6),O?i+Ie(e)+n+Ie(s)+r+Ie(o)+u+Ie(h)+b+Ie(y)+w+Ie(M)+E:Re}(E,t,i,e,n,s,r,o,u,h,b,y,w,M);return
L!==Re&&gs(E,Nn(),L),Eh}const dr=void 0;var
I3=["en",[["a","p"],["AM","PM"],dr],[["AM","PM"],dr,dr],[["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"]],dr,[["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"]],dr,[["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}",dr,"{1} 'at'
{0}",dr],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US
Dollar",{},"ltr",function k3(t){const
e=Math.floor(Math.abs(t)),n=t.toString().replace(/^[^.]*\.?/,"").length;return
1===e&&0===n?1:5}];let wo={};function Hn(t){const i=function E3(t){return
t.toLowerCase().replace(/_/g,"-")}(t);let e=M1(i);if(e)return e;const
n=i.split("-")[0];if(e=M1(n),e)return e;if("en"===n)return I3;throw
new Error(`Missing locale data for the locale "${t}".`)}function M1(t){return t
in
wo||(wo[t]=vt.ng&&vt.ng.common&&vt.ng.common.locales&&vt.ng.common.locales[t]),wo[t]}var
te=(()=>((te=te||{})[te.LocaleId=0]="LocaleId",te[te.DayPeriodsFormat=1]="DayPeriodsFormat",te[te.DayPeriodsStandalone=2]="DayPeriodsStandalone",te[te.DaysFormat=3]="DaysFormat",te[te.DaysStandalone=4]="DaysStandalone",te[te.MonthsFormat=5]="MonthsFormat",te[t
e.MonthsStandalone=6]="MonthsStandalone",te[te.Eras=7]="Eras",te[te.FirstDayOfWeek=8]="FirstDayOfWeek",te[te.WeekendRange=9]="WeekendRange",te[te.DateFormat=10]="DateFormat",te[te.TimeFormat=11]="TimeFormat",te[te.DateTimeFormat=12]="DateTimeFormat",te[te.NumberSymbols=13]="NumberSymbols",te[te.NumberFormats=14]="NumberFormats",te[te.CurrencyCode=15]="CurrencyCode",te[te.CurrencySymbol=16]="CurrencySymbol",te[te.CurrencyName=17]="CurrencyName",te[te.Currencies=18]="Currencies",te[te.Directionality=19]="Directionality",te[te.PluralCase=20]="PluralCase",te[te.ExtraData=21]="ExtraData",te))();const
Rc="en-US";let k1=Rc;function Oh(t,i,e,n,s){if(t=Ve(t),Array.isArray(t))for(let
r=0;r<t.length;r++)Oh(t[r],i,e,n,s);else{const r=tt(),o=$();let
u=ao(t)?t:Ve(t.provide),h=lv(t);const
b=rn(),y=1048575&b.providerIndexes,w=b.directiveStart,M=b.providerIndexes>>20;if(ao(t)||!t.multi){const
E=new
oa(h,s,D),L=Ph(u,i,s?y:y+M,w);-1===L?(oc(la(b,o),r,u),Ah(r,t,i.length),i.push(u),b.directiveStart++,b.
directiveEnd++,s&&(b.providerIndexes+=1048576),e.push(E),o.push(E)):(e[L]=E,o[L]=E)}else{const
E=Ph(u,i,y+M,w),L=Ph(u,i,y,y+M),O=E>=0&&e[E],N=L>=0&&e[L];if(s&&!N||!s&&!O){oc(la(b,o),r,u);const
G=function kE(t,i,e,n,s){const r=new oa(t,e,D);return
r.multi=[],r.index=i,r.componentProviders=0,Z1(r,s,n&&!e),r}(s?ME:DE,e.length,s,n,h);!s&&N&&(e[L].providerFactory=G),Ah(r,t,i.length,0),i.push(u),b.directiveStart++,b.directiveEnd++,s&&(b.providerIndexes+=1048576),e.push(G),o.push(G)}else
Ah(r,t,E>-1?E:L,Z1(e[s?L:E],h,!s&&n));!s&&n&&N&&e[L].componentProviders++}}}function
Ah(t,i,e,n){const s=ao(i),r=function Xk(t){return!!t.useClass}(i);if(s||r){const
h=(r?Ve(i.useClass):i).prototype.ngOnDestroy;if(h){const
b=t.destroyHooks||(t.destroyHooks=[]);if(!s&&i.multi){const
y=b.indexOf(e);-1===y?b.push(e,[n,h]):b[y+1].push(n,h)}else b.push(e,h)}}}function
Z1(t,i,e){return e&&t.componentProviders++,t.multi.push(i)-1}function
Ph(t,i,e,n){for(let s=e;s<n;s++)if(i[s]===t)return s;return-1}function DE(t
,i,e,n){return Fh(this.multi,[])}function ME(t,i,e,n){const s=this.multi;let
r;if(this.providerFactory){const
o=this.providerFactory.componentProviders,u=ca(e,e[1],this.providerFactory.index,n);r=u.slice(0,o),Fh(s,r);for(let
h=o;h<u.length;h++)r.push(u[h])}else r=[],Fh(s,r);return r}function Fh(t,i){for(let
e=0;e<t.length;e++)i.push((0,t[e])());return i}function Pe(t,i=[]){return
e=>{e.providersResolver=(n,s)=>function xE(t,i,e){const
n=tt();if(n.firstCreatePass){const
s=Ri(t);Oh(e,n.data,n.blueprint,s,!0),Oh(i,n.data,n.blueprint,s,!1)}}(n,s?s(t):t,i)}}class
X1{}class RE{resolveComponentFactory(i){throw function EE(t){const i=Error(`No component
factory found for ${ft(t)}. Did you add it to @NgModule.entryComponents?`);return
i.ngComponent=t,i}(i)}}let Va=(()=>{class t{}return t.NULL=new RE,t})();function
LE(){return So(rn(),$())}function So(t,i){return new De(Zn(t,i))}let De=(()=>{class
t{constructor(e){this.nativeElement=e}}return t.__NG_ELEMENT_ID__=LE,t})();function
OE(t){return
t instanceof De?t.nativeElement:t}class Ba{}let gn=(()=>{class t{}return
t.__NG_ELEMENT_ID__=()=>function PE(){const t=$(),e=Xn(rn().index,t);return function
AE(t){return t[11]}(Ki(e)?e:t)}(),t})(),FE=(()=>{class t{}return
t.\u0275prov=X({token:t,providedIn:"root",factory:()=>null}),t})();class
Ha{constructor(i){this.full=i,this.major=i.split(".")[0],this.minor=i.split(".")[1],this.patch=i.split(".").slice(2).join(".")}}const
NE=new Ha("13.3.12"),Nh={};function Fc(t,i,e,n,s=!1){for(;null!==e;){const
r=i[e.index];if(null!==r&&n.push(Yt(r)),Ei(r))for(let
u=10;u<r.length;u++){const
h=r[u],b=h[1].firstChild;null!==b&&Fc(h[1],h,b,n)}const
o=e.type;if(8&o)Fc(t,i,e.child,n);else if(32&o){const u=xp(e,i);let
h;for(;h=u();)n.push(h)}else if(16&o){const
u=rb(i,e);if(Array.isArray(u))n.push(...u);else{const
h=Ca(i[16]);Fc(h[1],h,u,n,!0)}}e=s?e.projectionNext:e.next}return n}class
qa{constructor(i,e){this._lView=i,this._cdRefInjectingView=e,this._appRef=null,this._attachedToViewContainer=!1}ge
t rootNodes(){const i=this._lView,e=i[1];return Fc(e,i,e.firstChild,[])}get
context(){return this._lView[8]}set context(i){this._lView[8]=i}get destroyed(){return
256==(256&this._lView[2])}destroy(){if(this._appRef)this._appRef.detachView(this);else
if(this._attachedToViewContainer){const i=this._lView[3];if(Ei(i)){const
e=i[8],n=e?e.indexOf(this):-1;n>-1&&(Ep(i,n),lc(e,n))}this._attachedToViewContainer=!1}J_(this._lView[1],this._lView)}onDestroy(i){Ub(this._lView[1],this._lView,null,i)}markForCheck(){lh(this._cdRefInjectingView||this._lView)}detach(){this._lView[2]&=-129}reattach(){this._lView[2]|=128}detectChanges(){!function
uh(t,i,e){const n=i[10];n.begin&&n.begin();try{ro(t,i,t.template,e)}catch(s){throw
nv(i,s),s}finally{n.end&&n.end()}}(this._lView[1],this._lView,this.context)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw
new
re(902,"");this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null,function
tM(t,i){ya(t,i,i[11],2,null,null)}(this._
lView[1],this._lView)}attachToAppRef(i){if(this._attachedToViewContainer)throw new
re(902,"");this._appRef=i}}class VE extends
qa{constructor(i){super(i),this._view=i}detectChanges(){Zb(this._view)}checkNoChanges(){}get
context(){return null}}class tC extends
Va{constructor(i){super(),this.ngModule=i}resolveComponentFactory(i){const e=Tn(i);return
new Vh(e,this.ngModule)}}function nC(t){const i=[];for(let e in
t)t.hasOwnProperty(e)&&i.push({propName:t[e],templateName:e});return i}class Vh
extends
X1{constructor(i,e){super(),this.componentDef=i,this.ngModule=e,this.componentType=i.type,this.selector=function
ok(t){return
t.map(rk).join(",")}(i.selectors),this.ngContentSelectors=i.ngContentSelectors?i.ngContentSelectors:[],this.isBoundToModule=!!e}get
inputs(){return nC(this.componentDef.inputs)}get outputs(){return
nC(this.componentDef.outputs)}create(i,e,n,s){const r=(s=s||this.ngModule)?function
HE(t,i){return{get:(e,n,s)=>{const r=t.get(e,Nh,s);return
r!==Nh||n===Nh?r:i.get(e,n,s)
}}}(i,s.injector):i,o=r.get(Ba,Yg),u=r.get(FE,null),h=o.createRenderer(null,this.componentDef),b=this.componentDef.selectors[0][0]||"div",y=n?function
Gb(t,i,e){if($t(t))return t.selectRootElement(i,e===ki.ShadowDom);let
n="string"==typeof i?t.querySelector(i):i;return
n.textContent="",n}(h,n,this.componentDef.encapsulation):Ip(o.createRenderer(null,this.componentDef),b,function
BE(t){const
i=t.toLowerCase();return"svg"===i?"svg":"math"===i?"math":null}(b)),w=this.componentDef.onPush?576:528,M=function
Cv(t,i){return{components:[],scheduler:t||KM,clean:zk,playerHandler:i||null,flags:0}}(),E=Tc(0,null,null,1,0,null,null,null,null,null),L=Da(null,E,M,w,null,null,o,h,u,r);let
O,N;Yl(L);try{const G=function bv(t,i,e,n,s,r){const o=e[1];e[20]=t;const
h=io(o,20,2,"#host",null),b=h.mergedAttrs=i.hostAttrs;null!==b&&(xc(h,b,!0),null!==t&&(nc(s,t,b),null!==h.classes&&Fp(s,t,h.classes),null!==h.styles&&ab(s,t,h.styles)));const
y=n.createRenderer(t,i),w=Da(e,Hb(i),null,i.onPush?64:16,e[20],h,n
,y,r||null,null);return
o.firstCreatePass&&(oc(la(h,e),o,i.type),Kb(o,h),Qb(h,e.length,1)),Sc(e,w),e[20]=w}(y,this.componentDef,L,o,h);if(y)if(n)nc(h,y,["ng-version",NE.full]);else{const{attrs:P,classes:J}=function
ak(t){const i=[],e=[];let n=1,s=2;for(;n<t.length;){let
r=t[n];if("string"==typeof
r)2===s?""!==r&&i.push(r,t[++n]):8===s&&e.push(r);else{if(!Li(s))break;s=r}n++}return{attrs:i,classes:e}}(this.componentDef.selectors[0]);P&&nc(h,y,P),J&&J.length>0&&Fp(h,y,J.join("
"))}if(N=ep(E,20),void 0!==e){const P=N.projection=[];for(let
J=0;J<this.ngContentSelectors.length;J++){const
se=e[J];P.push(null!=se?Array.from(se):null)}}O=function vv(t,i,e,n,s){const
r=e[1],o=function kk(t,i,e){const
n=rn();t.firstCreatePass&&(e.providersResolver&&e.providersResolver(e),Jb(t,n,i,so(t,i,1,null),e));const
s=ca(i,t,n.directiveStart,n);In(s,i);const r=Zn(n,i);return
r&&In(r,i),s}(r,e,i);if(n.components.push(o),t[8]=o,s&&s.forEach(h=>h(o,i)),i.contentQueries){const
h=rn();i.contentQueries(1,o,h.d
irectiveStart)}const
u=rn();return!r.firstCreatePass||null===i.hostBindings&&null===i.hostAttrs||(Ps(u.index),$b(e[1],u,0,u.directiveStart,u.directiveEnd,i),Wb(i,o)),o}(G,this.componentDef,L,M,[uI]),Ma(E,L,null)}finally{Zl()}return
new GE(this.componentType,O,So(N,L),L,N)}}class GE extends class
IE{}{constructor(i,e,n,s,r){super(),this.location=n,this._rootLView=s,this._tNode=r,this.instance=e,this.hostView=this.changeDetectorRef=new
VE(s),this.componentType=i}get injector(){return new
Kr(this._tNode,this._rootLView)}destroy(){this.hostView.destroy()}onDestroy(i){this.hostView.onDestroy(i)}}class
_s{}class iC{}const xo=new Map;class oC extends
_s{constructor(i,e){super(),this._parent=e,this._bootstrapComponents=[],this.injector=this,this.destroyCbs=[],this.componentFactoryResolver=new
tC(this);const
n=pi(i);this._bootstrapComponents=Zi(n.bootstrap),this._r3Injector=av(i,e,[{provide:_s,useValue:this},{provide:Va,useValue:this.componentFactoryResolver}],ft(i)),this._r3Injector._resolv
eInjectorDefTypes(),this.instance=this.get(i)}get(i,e=En.THROW_IF_NOT_FOUND,n=xe.Default){return
i===En||i===_s||i===ph?this:this._r3Injector.get(i,e,n)}destroy(){const
i=this._r3Injector;!i.destroyed&&i.destroy(),this.destroyCbs.forEach(e=>e()),this.destroyCbs=null}onDestroy(i){this.destroyCbs.push(i)}}class
Bh extends iC{constructor(i){super(),this.moduleType=i,null!==pi(i)&&function
zE(t){const i=new Set;!function e(n){const s=pi(n,!0),r=s.id;null!==r&&(function
sC(t,i,e){if(i&&i!==e)throw new Error(`Duplicate module registered for ${t} -
${ft(i)} vs ${ft(i.name)}`)}(r,xo.get(r),n),xo.set(r,n));const o=Zi(s.imports);for(const u
of o)i.has(u)||(i.add(u),e(u))}(t)}(i)}create(i){return new
oC(this.moduleType,i)}}function A(t,i,e){const n=Fn()+t,s=$();return
s[n]===Re?es(s,n,e?i.call(e):i()):Ea(s,n)}function U(t,i,e,n){return
lC($(),Fn(),t,i,e,n)}function Ge(t,i,e,n,s){return cC($(),Fn(),t,i,e,n,s)}function
Qt(t,i,e,n,s,r){return uC($(),Fn(),t,i,e,n,s,r)}function qn(t,i,e,n,s,r,o){re
turn function dC(t,i,e,n,s,r,o,u,h){const b=i+e;return
gi(t,b,s,r,o,u)?es(t,b+4,h?n.call(h,s,r,o,u):n(s,r,o,u)):Ga(t,b+4)}($(),Fn(),t,i,e,n,s,r,o)}function
pr(t,i,e,n,s,r,o,u){const h=Fn()+t,b=$(),y=gi(b,h,e,n,s,r);return
Rn(b,h+4,o)||y?es(b,h+5,u?i.call(u,e,n,s,r,o):i(e,n,s,r,o)):Ea(b,h+5)}function
Do(t,i,e,n,s,r,o,u,h){const b=Fn()+t,y=$(),w=gi(y,b,e,n,s,r);return
ur(y,b+4,o,u)||w?es(y,b+6,h?i.call(h,e,n,s,r,o,u):i(e,n,s,r,o,u)):Ea(y,b+6)}function
Hh(t,i,e,n){return function pC(t,i,e,n,s,r){let o=i+e,u=!1;for(let
h=0;h<s.length;h++)Rn(t,o++,s[h])&&(u=!0);return
u?es(t,o,n.apply(r,s)):Ga(t,o)}($(),Fn(),t,i,e,n)}function Ga(t,i){const e=t[i];return
e===Re?void 0:e}function lC(t,i,e,n,s,r){const o=i+e;return
Rn(t,o,s)?es(t,o+1,r?n.call(r,s):n(s)):Ga(t,o+1)}function cC(t,i,e,n,s,r,o){const
u=i+e;return ur(t,u,s,r)?es(t,u+2,o?n.call(o,s,r):n(s,r)):Ga(t,u+2)}function
uC(t,i,e,n,s,r,o,u){const h=i+e;return
Mc(t,h,s,r,o)?es(t,h+3,u?n.call(u,s,r,o):n(s,r,o)):Ga(t,h+3)}function m(t,i){const
e=tt();let n;const s=t+20;e.firstCreatePass?(n=function $E(t,i){if(i)for(let
e=i.length-1;e>=0;e--){const n=i[e];if(t===n.name)return
n}}(i,e.pipeRegistry),e.data[s]=n,n.onDestroy&&(e.destroyHooks||(e.destroyHooks=[])).push(s,n.onDestroy)):n=e.data[s];const
r=n.factory||(n.factory=ar(n.type)),o=Rs(D);try{const u=sc(!1),h=r();return sc(u),function
wI(t,i,e,n){e>=t.data.length&&(t.data[e]=null,t.blueprint[e]=null),i[e]=n}(e,$(),s,h),h}finally{Rs(o)}}function
f(t,i,e){const n=t+20,s=$(),r=zr(s,n);return
Ua(s,n)?lC(s,Fn(),i,r.transform,e,r):r.transform(e)}function Dt(t,i,e,n){const
s=t+20,r=$(),o=zr(r,s);return
Ua(r,s)?cC(r,Fn(),i,o.transform,e,n,o):o.transform(e,n)}function Ua(t,i){return
t[1].data[i].pure}function qh(t){return i=>{setTimeout(t,void 0,i)}}const H=class QE
extends
ct{constructor(i=!1){super(),this.__isAsync=i}emit(i){super.next(i)}subscribe(i,e,n){var
s,r,o;let u=i,h=e||(()=>null),b=n;if(i&&"object"==typeof i){const
w=i;u=null===(s=w.next)||void 0===s?void 0:s.bind(w),
h=null===(r=w.error)||void 0===r?void 0:r.bind(w),b=null===(o=w.complete)||void
0===o?void
0:o.bind(w)}this.__isAsync&&(h=qh(h),u&&(u=qh(u)),b&&(b=qh(b)));const
y=super.subscribe({next:u,error:h,complete:b});return i instanceof
Et&&i.add(y),y}};function JE(){return this._results[lo()]()}class
Gh{constructor(i=!1){this._emitDistinctChangesOnly=i,this.dirty=!0,this._results=[],this._changesDetected=!1,this._changes=null,this.length=0,this.first=void
0,this.last=void 0;const e=lo(),n=Gh.prototype;n[e]||(n[e]=JE)}get changes(){return
this._changes||(this._changes=new H)}get(i){return this._results[i]}map(i){return
this._results.map(i)}filter(i){return this._results.filter(i)}find(i){return
this._results.find(i)}reduce(i,e){return
this._results.reduce(i,e)}forEach(i){this._results.forEach(i)}some(i){return
this._results.some(i)}toArray(){return this._results.slice()}toString(){return
this._results.toString()}reset(i,e){const n=this;n.dirty=!1;const
s=fi(i);(this._changesDetected=!functio
n _D(t,i,e){if(t.length!==i.length)return!1;for(let n=0;n<t.length;n++){let
s=t[n],r=i[n];if(e&&(s=e(s),r=e(r)),r!==s)return!1}return!0}(n._results,s,e))&&(n._results=s,n.length=s.length,n.last=s[this.length-1],n.first=s[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
bi=(()=>{class t{}return t.__NG_ELEMENT_ID__=XE,t})();const YE=bi,ZE=class extends
YE{constructor(i,e,n){super(),this._declarationLView=i,this._declarationTContainer=e,this.elementRef=n}createEmbeddedView(i){const
e=this._declarationTContainer.tViews,n=Da(this._declarationLView,e,i,16,null,e.declTNode,null,null,null,null);n[17]=this._declarationLView[this._declarationTContainer.index];const
r=this._declarationLView[19];return
null!==r&&(n[19]=r.createEmbeddedView(e)),Ma(e,n,i),new qa(n)}};function
XE(){return Nc(rn(),$())}function Nc(t,i){return 4&t.typ
e?new ZE(i,t,So(t,i)):null}let vi=(()=>{class t{}return
t.__NG_ELEMENT_ID__=eR,t})();function eR(){return gC(rn(),$())}const tR=vi,mC=class
extends
tR{constructor(i,e,n){super(),this._lContainer=i,this._hostTNode=e,this._hostLView=n}get
element(){return So(this._hostTNode,this._hostLView)}get injector(){return new
Kr(this._hostTNode,this._hostLView)}get parentInjector(){const
i=rc(this._hostTNode,this._hostLView);if(f_(i)){const
e=Wr(i,this._hostLView),n=$r(i);return new Kr(e[1].data[n+8],e)}return new
Kr(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(i){const
e=fC(this._lContainer);return null!==e&&e[i]||null}get length(){return
this._lContainer.length-10}createEmbeddedView(i,e,n){const
s=i.createEmbeddedView(e||{});return this.insert(s,n),s}createComponent(i,e,n,s,r){const
o=i&&!function pa(t){return"function"==typeof t}(i);let
u;if(o)u=e;else{const
w=e||{};u=w.index,n=w.injector,s=w.projectableNodes,r=w.ngModuleRef}const h=o?i:new
Vh(Tn(i)),b=n||
this.parentInjector;if(!r&&null==h.ngModule){const
M=(o?b:this.parentInjector).get(_s,null);M&&(r=M)}const y=h.create(b,s,void
0,r);return this.insert(y.hostView,u),y}insert(i,e){const n=i._lView,s=n[1];if(function
Bx(t){return Ei(t[3])}(n)){const y=this.indexOf(i);if(-1!==y)this.detach(y);else{const
w=n[3],M=new mC(w,w[6],w[3]);M.detach(M.indexOf(i))}}const
r=this._adjustIndex(e),o=this._lContainer;!function iM(t,i,e,n){const
s=10+n,r=e.length;n>0&&(e[s-1][4]=i),n<r-10?(i[4]=e[s],x_(e,10+n,i)):(e.push(i),i[4]=null),i[3]=e;const
o=i[17];null!==o&&e!==o&&function sM(t,i){const
e=t[9];i[16]!==i[3][3][16]&&(t[2]=!0),null===e?t[9]=[i]:e.push(i)}(o,i);const
u=i[19];null!==u&&u.insertView(t),i[2]|=128}(s,n,o,r);const
u=Op(r,o),h=n[11],b=hc(h,o[7]);return null!==b&&function
eM(t,i,e,n,s,r){n[0]=s,n[6]=i,ya(t,n,e,1,s,r)}(s,o[6],h,n,b,u),i.attachToViewContainerRef(),x_(Uh(o),r,i),i}move(i,e){return
this.insert(i,e)}indexOf(i){const e=fC(this._lContainer);return
null!==e?e.indexOf(i):-1}remov
e(i){const
e=this._adjustIndex(i,-1),n=Ep(this._lContainer,e);n&&(lc(Uh(this._lContainer),e),J_(n[1],n))}detach(i){const
e=this._adjustIndex(i,-1),n=Ep(this._lContainer,e);return
n&&null!=lc(Uh(this._lContainer),e)?new qa(n):null}_adjustIndex(i,e=0){return
null==i?this.length+e:i}};function fC(t){return t[8]}function Uh(t){return
t[8]||(t[8]=[])}function gC(t,i){let e;const n=i[t.index];if(Ei(n))e=n;else{let
s;if(8&t.type)s=Yt(n);else{const r=i[11];s=r.createComment("");const
o=Zn(t,i);lr(r,hc(r,o),s,function lM(t,i){return
$t(t)?t.nextSibling(i):i.nextSibling}(r,o),!1)}i[t.index]=e=Yb(n,i,s,t),Sc(i,e)}return new
mC(e,t,i)}class zh{constructor(i){this.queryList=i,this.matches=null}clone(){return new
zh(this.queryList)}setDirty(){this.queryList.setDirty()}}class
jh{constructor(i=[]){this.queries=i}createEmbeddedView(i){const
e=i.queries;if(null!==e){const
n=null!==i.contentQueries?i.contentQueries[0]:e.length,s=[];for(let r=0;r<n;r++){const
o=e.getByIndex(r);s.push(this.queries[o.ind
exInDeclarationView].clone())}return new jh(s)}return
null}insertView(i){this.dirtyQueriesWithMatches(i)}detachView(i){this.dirtyQueriesWithMatches(i)}dirtyQueriesWithMatches(i){for(let
e=0;e<this.queries.length;e++)null!==yC(i,e).matches&&this.queries[e].setDirty()}}class
_C{constructor(i,e,n=null){this.predicate=i,this.flags=e,this.read=n}}class
$h{constructor(i=[]){this.queries=i}elementStart(i,e){for(let
n=0;n<this.queries.length;n++)this.queries[n].elementStart(i,e)}elementEnd(i){for(let
e=0;e<this.queries.length;e++)this.queries[e].elementEnd(i)}embeddedTView(i){let
e=null;for(let n=0;n<this.length;n++){const
s=null!==e?e.length:0,r=this.getByIndex(n).embeddedTView(i,s);r&&(r.indexInDeclarationView=n,null!==e?e.push(r):e=[r])}return
null!==e?new $h(e):null}template(i,e){for(let
n=0;n<this.queries.length;n++)this.queries[n].template(i,e)}getByIndex(i){return
this.queries[i]}get length(){return
this.queries.length}track(i){this.queries.push(i)}}class Wh{constructor(i,e=-1){this.
metadata=i,this.matches=null,this.indexInDeclarationView=-1,this.crossesNgTemplate=!1,this._appliesToNextNode=!0,this._declarationNodeIndex=e}elementStart(i,e){this.isApplyingToNode(e)&&this.matchTNode(i,e)}elementEnd(i){this._declarationNodeIndex===i.index&&(this._appliesToNextNode=!1)}template(i,e){this.elementStart(i,e)}embeddedTView(i,e){return
this.isApplyingToNode(i)?(this.crossesNgTemplate=!0,this.addMatch(-i.index,e),new
Wh(this.metadata)):null}isApplyingToNode(i){if(this._appliesToNextNode&&1!=(1&this.metadata.flags)){const
e=this._declarationNodeIndex;let
n=i.parent;for(;null!==n&&8&n.type&&n.index!==e;)n=n.parent;return
e===(null!==n?n.index:-1)}return this._appliesToNextNode}matchTNode(i,e){const
n=this.metadata.predicate;if(Array.isArray(n))for(let s=0;s<n.length;s++){const
r=n[s];this.matchTNodeWithReadOption(i,e,sR(e,r)),this.matchTNodeWithReadOption(i,e,ac(e,i,r,!1,!1))}else
n===bi?4&e.type&&this.matchTNodeWithReadOption(i,e,-1):this.matchTNodeWithReadOption(i,e,ac(e
,i,n,!1,!1))}matchTNodeWithReadOption(i,e,n){if(null!==n){const
s=this.metadata.read;if(null!==s)if(s===De||s===vi||s===bi&&4&e.type)this.addMatch(e.index,-2);else{const
r=ac(e,i,s,!1,!1);null!==r&&this.addMatch(e.index,r)}else
this.addMatch(e.index,n)}}addMatch(i,e){null===this.matches?this.matches=[i,e]:this.matches.push(i,e)}}function
sR(t,i){const e=t.localNames;if(null!==e)for(let n=0;n<e.length;n+=2)if(e[n]===i)return
e[n+1];return null}function oR(t,i,e,n){return-1===e?function rR(t,i){return
11&t.type?So(t,i):4&t.type?Nc(t,i):null}(i,t):-2===e?function aR(t,i,e){return
e===De?So(i,t):e===bi?Nc(i,t):e===vi?gC(i,t):void 0}(t,i,n):ca(t,t[1],e,i)}function
bC(t,i,e,n){const s=i[19].queries[n];if(null===s.matches){const
r=t.data,o=e.matches,u=[];for(let h=0;h<o.length;h+=2){const
b=o[h];u.push(b<0?null:oR(i,r[b],o[h+1],e.metadata.read))}s.matches=u}return
s.matches}function Kh(t,i,e,n){const
s=t.queries.getByIndex(e),r=s.matches;if(null!==r){const o=bC(t,i,s,e);for(let
u=0;u<r.len
gth;u+=2){const h=r[u];if(h>0)n.push(o[u/2]);else{const b=r[u+1],y=i[-h];for(let
w=10;w<y.length;w++){const
M=y[w];M[17]===M[3]&&Kh(M[1],M,b,n)}if(null!==y[9]){const w=y[9];for(let
M=0;M<w.length;M++){const E=w[M];Kh(E[1],E,b,n)}}}}}return n}function V(t){const
i=$(),e=tt(),n=r_();ap(n+1);const
s=yC(e,n);if(t.dirty&&Zg(i)===(2==(2&s.metadata.flags))){if(null===s.matches)t.reset([]);else{const
r=s.crossesNgTemplate?Kh(e,i,n,[]):bC(e,i,s,n);t.reset(r,OE),t.notifyOnChanges()}return!0}return!1}function
W(t,i,e){const n=tt();n.firstCreatePass&&(CC(n,new
_C(t,i,e),-1),2==(2&i)&&(n.staticViewQueries=!0)),vC(n,$(),i)}function
st(t,i,e,n){const s=tt();if(s.firstCreatePass){const r=rn();CC(s,new
_C(i,e,n),r.index),function cR(t,i){const
e=t.contentQueries||(t.contentQueries=[]);i!==(e.length?e[e.length-1]:-1)&&e.push(t.queries.length-1,i)}(s,t),2==(2&e)&&(s.staticContentQueries=!0)}vC(s,$(),e)}function
B(){return function lR(t,i){return t[19].queries[i].queryList}($(),r_())}function
vC(t,i,e)
{const n=new Gh(4==(4&e));Ub(t,i,n,n.destroy),null===i[19]&&(i[19]=new
jh),i[19].queries.push(new zh(n))}function
CC(t,i,e){null===t.queries&&(t.queries=new $h),t.queries.track(new
Wh(i,e))}function yC(t,i){return t.queries.getByIndex(i)}function we(t,i){return
Nc(t,i)}function Hc(...t){}const em=new be("Application Initializer");let
tm=(()=>{class
t{constructor(e){this.appInits=e,this.resolve=Hc,this.reject=Hc,this.initialized=!1,this.done=!1,this.donePromise=new
Promise((n,s)=>{this.resolve=n,this.reject=s})}runInitializers(){if(this.initialized)return;const
e=[],n=()=>{this.done=!0,this.resolve()};if(this.appInits)for(let
s=0;s<this.appInits.length;s++){const r=this.appInits[s]();if(Ra(r))e.push(r);else
if(Dh(r)){const o=new
Promise((u,h)=>{r.subscribe({complete:u,error:h})});e.push(o)}}Promise.all(e).then(()=>{n()}).catch(s=>{this.reject(s)}),0===e.length&&n(),this.initialized=!0}}return
t.\u0275fac=function(e){return
new(e||t)(K(em,8))},t.\u0275prov=X({token:t,factory:t.\u0275f
ac,providedIn:"root"}),t})();const ja=new
be("AppId",{providedIn:"root",factory:function
VC(){return`${nm()}${nm()}${nm()}`}});function nm(){return
String.fromCharCode(97+Math.floor(25*Math.random()))}const BC=new be("Platform
Initializer"),qc=new be("Platform
ID",{providedIn:"platform",factory:()=>"unknown"}),HC=new
be("appBootstrapListener");let DR=(()=>{class
t{log(e){console.log(e)}warn(e){console.warn(e)}}return t.\u0275fac=function(e){return
new(e||t)},t.\u0275prov=X({token:t,factory:t.\u0275fac,providedIn:"platform"}),t})();const
qs=new
be("LocaleId",{providedIn:"root",factory:()=>O_(qs,xe.Optional|xe.SkipSelf)||function
MR(){return"undefined"!=typeof
$localize&&$localize.locale||Rc}()});class
IR{constructor(i,e){this.ngModuleFactory=i,this.componentFactories=e}}let
qC=(()=>{class t{compileModuleSync(e){return new Bh(e)}compileModuleAsync(e){return
Promise.resolve(this.compileModuleSync(e))}compileModuleAndAllComponentsSync(e){const
n=this.compileModuleSync(e),r=Zi(pi(e).decl
arations).reduce((o,u)=>{const h=Tn(u);return h&&o.push(new
Vh(h)),o},[]);return new IR(n,r)}compileModuleAndAllComponentsAsync(e){return
Promise.resolve(this.compileModuleAndAllComponentsSync(e))}clearCache(){}clearCacheFor(e){}getModuleId(e){}}return
t.\u0275fac=function(e){return
new(e||t)},t.\u0275prov=X({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();const
RR=(()=>Promise.resolve(0))();function im(t){"undefined"==typeof
Zone?RR.then(()=>{t&&t.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",t)}class
nt{constructor({enableLongStackTrace:i=!1,shouldCoalesceEventChangeDetection:e=!1,shouldCoalesceRunChangeDetection:n=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new
H(!1),this.onMicrotaskEmpty=new H(!1),this.onStable=new H(!1),this.onError=new
H(!1),"undefined"==typeof Zone)throw new Error("In this configuration
Angular requires Zone.js");Zone.assertZonePatched();const
s=this;s._nesting=0,s._outer=s._
inner=Zone.current,Zone.TaskTrackingZoneSpec&&(s._inner=s._inner.fork(new
Zone.TaskTrackingZoneSpec)),i&&Zone.longStackTraceZoneSpec&&(s._inner=s._inner.fork(Zone.longStackTraceZoneSpec)),s.shouldCoalesceEventChangeDetection=!n&&e,s.shouldCoalesceRunChangeDetection=n,s.lastRequestAnimationFrameId=-1,s.nativeRequestAnimationFrame=function
LR(){let
t=vt.requestAnimationFrame,i=vt.cancelAnimationFrame;if("undefined"!=typeof
Zone&&t&&i){const
e=t[Zone.__symbol__("OriginalDelegate")];e&&(t=e);const
n=i[Zone.__symbol__("OriginalDelegate")];n&&(i=n)}return{nativeRequestAnimationFrame:t,nativeCancelAnimationFrame:i}}().nativeRequestAnimationFrame,function
PR(t){const i=()=>{!function
AR(t){t.isCheckStableRunning||-1!==t.lastRequestAnimationFrameId||(t.lastRequestAnimationFrameId=t.nativeRequestAnimationFrame.call(vt,()=>{t.fakeTopEventTask||(t.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{t.lastRequestAnimationFrameId=-1,rm(t),t.isCheckStableRunning=!0,sm(t),t.isCheck
StableRunning=!1},void
0,()=>{},()=>{})),t.fakeTopEventTask.invoke()}),rm(t))}(t)};t._inner=t._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(e,n,s,r,o,u)=>{try{return
GC(t),e.invokeTask(s,r,o,u)}finally{(t.shouldCoalesceEventChangeDetection&&"eventTask"===r.type||t.shouldCoalesceRunChangeDetection)&&i(),UC(t)}},onInvoke:(e,n,s,r,o,u,h)=>{try{return
GC(t),e.invoke(s,r,o,u,h)}finally{t.shouldCoalesceRunChangeDetection&&i(),UC(t)}},onHasTask:(e,n,s,r)=>{e.hasTask(s,r),n===s&&("microTask"==r.change?(t._hasPendingMicrotasks=r.microTask,rm(t),sm(t)):"macroTask"==r.change&&(t.hasPendingMacrotasks=r.macroTask))},onHandleError:(e,n,s,r)=>(e.handleError(s,r),t.runOutsideAngular(()=>t.onError.emit(r)),!1)})}(s)}static
isInAngularZone(){return"undefined"!=typeof
Zone&&!0===Zone.current.get("isAngularZone")}static
assertInAngularZone(){if(!nt.isInAngularZone())throw new Error("Expected to be in
Angular Zone, but it is not!")}static assertNotInAngularZone(){if(nt.isInAngu
larZone())throw new Error("Expected to not be in Angular Zone, but it
is!")}run(i,e,n){return this._inner.run(i,e,n)}runTask(i,e,n,s){const
r=this._inner,o=r.scheduleEventTask("NgZoneEvent: "+s,i,OR,Hc,Hc);try{return
r.runTask(o,e,n)}finally{r.cancelTask(o)}}runGuarded(i,e,n){return
this._inner.runGuarded(i,e,n)}runOutsideAngular(i){return this._outer.run(i)}}const
OR={};function
sm(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
rm(t){t.hasPendingMicrotasks=!!(t._hasPendingMicrotasks||(t.shouldCoalesceEventChangeDetection||t.shouldCoalesceRunChangeDetection)&&-1!==t.lastRequestAnimationFrameId)}function
GC(t){t._nesting++,t.isStable&&(t.isStable=!1,t.onUnstable.emit(null))}function
UC(t){t._nesting--,sm(t)}class
FR{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isSta
ble=!0,this.onUnstable=new H,this.onMicrotaskEmpty=new H,this.onStable=new
H,this.onError=new H}run(i,e,n){return i.apply(e,n)}runGuarded(i,e,n){return
i.apply(e,n)}runOutsideAngular(i){return i()}runTask(i,e,n,s){return i.apply(e,n)}}let
om=(()=>{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:()=>{nt.assertNotInAngularZone(),im(()=>{this._isZoneStable=!0,this._runCallbacksIfReady()})}})})}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())im(()=>{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(n=>!n.updateCb||!n.updateCb(e)||(clearTimeout(n.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,n,s){let
r=-1;n&&n>0&&(r=setTimeout(()=>{this._callbacks=this._callbacks.filter(o=>o.timeoutId!==r),e(this._didWork,this.getPendingTasks())},n)),this._callbacks.push({doneCb:e,timeoutId:r,updateCb:s})}whenStable(e,n,s){if(s&&!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,n,s),this._runCallbacksIfReady()}getPendingRequestCount(){return
this._pendingCount}findProviders(e,n,s){return[]}}return t.\u0275fac=function(e){return
new(e||t)(K(nt))},t.\u0275prov=X({token:t,factory:t.\u0275fac}),t})(),NR=(()=>{class
t{constructor(){this._applications=new
Map,am.addToWindow(this)}registerApplication(e,n){this._applications.set(e,n)}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())}findTestabilityInTree(e,n=!0){return
am.findTestabilityInTree(this,e,n)}}return t.\u0275fac=function(e){return
new(e||t)},t.\u0275prov=X({token:t,factory:t.\u0275fac,providedIn:"platform"}),t})();class
VR{addToWindow(i){}findTestabilityInTr
ee(i,e,n){return null}}let am=new VR,hr=null;const zC=new
be("AllowMultipleToken"),jC=new be("PlatformOnDestroy");class
$C{constructor(i,e){this.name=i,this.token=e}}function WC(t,i,e=[]){const n=`Platform:
${i}`,s=new be(n);return(r=[])=>{let o=lm();if(!o||o.injector.get(zC,!1)){const
u=[...e,...r,{provide:s,useValue:!0}];t?t(u):function
GR(t){if(hr&&!hr.get(zC,!1))throw new re(400,"");hr=t;const
i=t.get(KC),e=t.get(BC,null);e&&e.forEach(n=>n())}(function zR(t=[],i){return
En.create({name:i,providers:[{provide:hh,useValue:"platform"},{provide:jC,useValue:()=>hr=null},...t]})}(u,n))}return
function UR(t){const i=lm();if(!i)throw new re(401,"");return i}()}}function
lm(){var t;return null!==(t=null==hr?void 0:hr.get(KC))&&void 0!==t?t:null}let
KC=(()=>{class
t{constructor(e){this._injector=e,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(e,n){const
u=function jR(t,i){let e;return e="noop"===t?new
FR:("zone.js"===t?void 0:t)||new nt({enableLongSta
ckTrace:!1,shouldCoalesceEventChangeDetection:!!(null==i?void
0:i.ngZoneEventCoalescing),shouldCoalesceRunChangeDetection:!!(null==i?void
0:i.ngZoneRunCoalescing)}),e}(n?n.ngZone:void
0,{ngZoneEventCoalescing:n&&n.ngZoneEventCoalescing||!1,ngZoneRunCoalescing:n&&n.ngZoneRunCoalescing||!1}),h=[{provide:nt,useValue:u}];return
u.run(()=>{const
b=En.create({providers:h,parent:this.injector,name:e.moduleType.name}),y=e.create(b),w=y.injector.get(xa,null);if(!w)throw
new re(402,"");return u.runOutsideAngular(()=>{const
M=u.onError.subscribe({next:E=>{w.handleError(E)}});y.onDestroy(()=>{um(this._modules,y),M.unsubscribe()})}),function
$R(t,i,e){try{const n=e();return Ra(n)?n.catch(s=>{throw
i.runOutsideAngular(()=>t.handleError(s)),s}):n}catch(n){throw
i.runOutsideAngular(()=>t.handleError(n)),n}}(w,u,()=>{const
M=y.injector.get(tm);return M.runInitializers(),M.donePromise.then(()=>(function
A3(t){Jn(t,"Expected localeId to be defined"),"string"==typeof
t&&(k1=t.toLowerCase().replace(/_/g
,"-"))}(y.injector.get(qs,Rc)||Rc),this._moduleDoBootstrap(y),y))})})}bootstrapModule(e,n=[]){const
s=QC({},n);return function HR(t,i,e){const n=new Bh(e);return
Promise.resolve(n)}(0,0,e).then(r=>this.bootstrapModuleFactory(r,s))}_moduleDoBootstrap(e){const
n=e.injector.get(cm);if(e._bootstrapComponents.length>0)e._bootstrapComponents.forEach(s=>n.bootstrap(s));else{if(!e.instance.ngDoBootstrap)throw
new
re(403,"");e.instance.ngDoBootstrap(n)}this._modules.push(e)}onDestroy(e){this._destroyListeners.push(e)}get
injector(){return this._injector}destroy(){if(this._destroyed)throw new
re(404,"");this._modules.slice().forEach(n=>n.destroy()),this._destroyListeners.forEach(n=>n());const
e=this._injector.get(jC,null);null==e||e(),this._destroyed=!0}get destroyed(){return
this._destroyed}}return t.\u0275fac=function(e){return
new(e||t)(K(En))},t.\u0275prov=X({token:t,factory:t.\u0275fac,providedIn:"platform"}),t})();function
QC(t,i){return Array.isArray(i)?i.reduce(QC,t):Object.assign(Obj
ect.assign({},t),i)}let cm=(()=>{class
t{constructor(e,n,s,r){this._zone=e,this._injector=n,this._exceptionHandler=s,this._initStatus=r,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
o=new
Je(h=>{this._stable=this._zone.isStable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks,this._zone.runOutsideAngular(()=>{h.next(this._stable),h.complete()})}),u=new
Je(h=>{let
b;this._zone.runOutsideAngular(()=>{b=this._zone.onStable.subscribe(()=>{nt.assertNotInAngularZone(),im(()=>{!this._stable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks&&(this._stable=!0,h.next(!0))})})});const
y=this._zone.onUnstable.subscribe(()=>{nt.assertInAngularZone(),this._stable&&(this._stable=!1,this._zone.runOutsideAngular(()=>{h.next(!1)}))});return()=>{b.unsubscribe(),y.un
subscribe()}});this.isStable=function YS(...t){let
i=Number.POSITIVE_INFINITY,e=null,n=t[t.length-1];return
Vr(n)?(e=t.pop(),t.length>1&&"number"==typeof
t[t.length-1]&&(i=t.pop())):"number"==typeof
n&&(i=t.pop()),null===e&&1===t.length&&t[0]instanceof
Je?t[0]:ea(i)(Pd(t,e))}(o,u.pipe(function ox(){return t=>Fd()(function ix(t,i){return
function(n){let s;if(s="function"==typeof t?t:function(){return
t},"function"==typeof i)return n.lift(new sx(s,i));const
r=Object.create(n,ex);return
r.source=n,r.subjectFactory=s,r}}(rx)(t))}()))}bootstrap(e,n){if(!this._initStatus.done)throw
new re(405,"");let s;s=e instanceof
X1?e:this._injector.get(Va).resolveComponentFactory(e),this.componentTypes.push(s.componentType);const
r=function qR(t){return t.isBoundToModule}(s)?void
0:this._injector.get(_s),u=s.create(En.NULL,[],n||s.selector,r),h=u.location.nativeElement,b=u.injector.get(om,null),y=b&&u.injector.get(NR);return
b&&y&&y.registerApplication(h,b),u.onDestroy(()=>{this.detachView(u.hostView
),um(this.components,u),y&&y.unregisterApplication(h)}),this._loadComponent(u),u}tick(){if(this._runningTick)throw
new re(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
n=e;this._views.push(n),n.attachToAppRef(this)}detachView(e){const
n=e;um(this._views,n),n.detachFromAppRef()}_loadComponent(e){this.attachView(e.hostView),this.tick(),this.components.push(e),this._injector.get(HC,[]).concat(this._bootstrapListeners).forEach(s=>s(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)(K(nt),K(En),K(xa),K(tm))},t.\u0275prov=X({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();function
um(t,i){const e=t.indexOf(i);e>-1&&t.splice(e,1)}let
YC=!0,ZC=!1,rt=(()=>{class t{}return t.__NG_
ELEMENT_ID__=JR,t})();function JR(t){return function
YR(t,i,e){if(Wl(t)&&!e){const n=Xn(t.index,i);return new qa(n,n)}return
47&t.type?new qa(i[16],i):null}(rn(),$(),16==(16&t))}class
ny{constructor(){}supports(i){return Ia(i)}create(i){return new iL(i)}}const
nL=(t,i)=>i;class
iL{constructor(i){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=i||nL}forEachItem(i){let
e;for(e=this._itHead;null!==e;e=e._next)i(e)}forEachOperation(i){let
e=this._itHead,n=this._removalsHead,s=0,r=null;for(;e||n;){const
o=!n||e&&e.currentIndex<sy(n,s,r)?e:n,u=sy(o,s,r),h=o.currentIndex;if(o===n)s--,n=n._nextRemoved;else
if(e=e._next,null==o.previousIndex)s++;else{r||(r=[]);const b=u-s,y=h-s;if(b!=y){for(let
M=0;
M<b;M++){const
E=M<r.length?r[M]:r[M]=0,L=E+M;y<=L&&L<b&&(r[M]=E+1)}r[o.previousIndex]=y-b}}u!==h&&i(o,u,h)}}forEachPreviousItem(i){let
e;for(e=this._previousItHead;null!==e;e=e._nextPrevious)i(e)}forEachAddedItem(i){let
e;for(e=this._additionsHead;null!==e;e=e._nextAdded)i(e)}forEachMovedItem(i){let
e;for(e=this._movesHead;null!==e;e=e._nextMoved)i(e)}forEachRemovedItem(i){let
e;for(e=this._removalsHead;null!==e;e=e._nextRemoved)i(e)}forEachIdentityChange(i){let
e;for(e=this._identityChangesHead;null!==e;e=e._nextIdentityChange)i(e)}diff(i){if(null==i&&(i=[]),!Ia(i))throw
new re(900,"");return
this.check(i)?this:null}onDestroy(){}check(i){this._reset();let
s,r,o,e=this._itHead,n=!1;if(Array.isArray(i)){this.length=i.length;for(let
u=0;u<this.length;u++)r=i[u],o=this._trackByFn(u,r),null!==e&&Object.is(e.trackById,o)?(n&&(e=this._verifyReinsertion(e,r,o,u)),Object.is(e.item,r)||this._addIdentityChange(e,r)):(e=this._mismatch(e,r,o,u),n=!0),e=e._next}else
s=0,function CI(t,i){if(Arra
y.isArray(t))for(let e=0;e<t.length;e++)i(t[e]);else{const e=t[lo()]();let
n;for(;!(n=e.next()).done;)i(n.value)}}(i,u=>{o=this._trackByFn(s,u),null!==e&&Object.is(e.trackById,o)?(n&&(e=this._verifyReinsertion(e,u,o,s)),Object.is(e.item,u)||this._addIdentityChange(e,u)):(e=this._mismatch(e,u,o,s),n=!0),e=e._next,s++}),this.length=s;return
this._truncate(e),this.collection=i,this.isDirty}get isDirty(){return
null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let
i;for(i=this._previousItHead=this._itHead;null!==i;i=i._next)i._nextPrevious=i._next;for(i=this._additionsHead;null!==i;i=i._nextAdded)i.previousIndex=i.currentIndex;for(this._additionsHead=this._additionsTail=null,i=this._movesHead;null!==i;i=i._nextMoved)i.previousIndex=i.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(i,e,n,s)
{let r;return
null===i?r=this._itTail:(r=i._prev,this._remove(i)),null!==(i=null===this._unlinkedRecords?null:this._unlinkedRecords.get(n,null))?(Object.is(i.item,e)||this._addIdentityChange(i,e),this._reinsertAfter(i,r,s)):null!==(i=null===this._linkedRecords?null:this._linkedRecords.get(n,s))?(Object.is(i.item,e)||this._addIdentityChange(i,e),this._moveAfter(i,r,s)):i=this._addAfter(new
sL(e,n),r,s),i}_verifyReinsertion(i,e,n,s){let
r=null===this._unlinkedRecords?null:this._unlinkedRecords.get(n,null);return
null!==r?i=this._reinsertAfter(r,i._prev,s):i.currentIndex!=s&&(i.currentIndex=s,this._addToMoves(i,s)),i}_truncate(i){for(;null!==i;){const
e=i._next;this._addToRemovals(this._unlink(i)),i=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._nextRemove
d=null),null!==this._identityChangesTail&&(this._identityChangesTail._nextIdentityChange=null)}_reinsertAfter(i,e,n){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(i);const
s=i._prevRemoved,r=i._nextRemoved;return
null===s?this._removalsHead=r:s._nextRemoved=r,null===r?this._removalsTail=s:r._prevRemoved=s,this._insertAfter(i,e,n),this._addToMoves(i,n),i}_moveAfter(i,e,n){return
this._unlink(i),this._insertAfter(i,e,n),this._addToMoves(i,n),i}_addAfter(i,e,n){return
this._insertAfter(i,e,n),this._additionsTail=null===this._additionsTail?this._additionsHead=i:this._additionsTail._nextAdded=i,i}_insertAfter(i,e,n){const
s=null===e?this._itHead:e._next;return
i._next=s,i._prev=e,null===s?this._itTail=i:s._prev=i,null===e?this._itHead=i:e._next=i,null===this._linkedRecords&&(this._linkedRecords=new
iy),this._linkedRecords.put(i),i.currentIndex=n,i}_remove(i){return
this._addToRemovals(this._unlink(i))}_unlink(i){null!==this._linkedRecords&&this._linkedRecords.remove(i);const
e=i._prev,n=i._next;return
null===e?this._itHead=n:e._next=n,null===n?this._itTail=e:n._prev=e,i}_addToMoves(i,e){return
i.previousIndex===e||(this._movesTail=null===this._movesTail?this._movesHead=i:this._movesTail._nextMoved=i),i}_addToRemovals(i){return
null===this._unlinkedRecords&&(this._unlinkedRecords=new
iy),this._unlinkedRecords.put(i),i.currentIndex=null,i._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=i,i._prevRemoved=null):(i._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=i),i}_addIdentityChange(i,e){return
i.item=e,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=i:this._identityChangesTail._nextIdentityChange=i,i}}class
sL{constructor(i,e){this.item=i,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._next
Added=null,this._nextMoved=null,this._nextIdentityChange=null}}class
rL{constructor(){this._head=null,this._tail=null}add(i){null===this._head?(this._head=this._tail=i,i._nextDup=null,i._prevDup=null):(this._tail._nextDup=i,i._prevDup=this._tail,i._nextDup=null,this._tail=i)}get(i,e){let
n;for(n=this._head;null!==n;n=n._nextDup)if((null===e||e<=n.currentIndex)&&Object.is(n.trackById,i))return
n;return null}remove(i){const e=i._prevDup,n=i._nextDup;return
null===e?this._head=n:e._nextDup=n,null===n?this._tail=e:n._prevDup=e,null===this._head}}class
iy{constructor(){this.map=new Map}put(i){const e=i.trackById;let
n=this.map.get(e);n||(n=new rL,this.map.set(e,n)),n.add(i)}get(i,e){const
s=this.map.get(i);return s?s.get(i,e):null}remove(i){const e=i.trackById;return
this.map.get(e).remove(i)&&this.map.delete(e),i}get isEmpty(){return
0===this.map.size}clear(){this.map.clear()}}function sy(t,i,e){const
n=t.previousIndex;if(null===n)return n;let s=0;return
e&&n<e.length&&(s=e[n]),n+i+s}cl
ass ry{constructor(){}supports(i){return i instanceof Map||vh(i)}create(){return new
oL}}class oL{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(i){let
e;for(e=this._mapHead;null!==e;e=e._next)i(e)}forEachPreviousItem(i){let
e;for(e=this._previousMapHead;null!==e;e=e._nextPrevious)i(e)}forEachChangedItem(i){let
e;for(e=this._changesHead;null!==e;e=e._nextChanged)i(e)}forEachAddedItem(i){let
e;for(e=this._additionsHead;null!==e;e=e._nextAdded)i(e)}forEachRemovedItem(i){let
e;for(e=this._removalsHead;null!==e;e=e._nextRemoved)i(e)}diff(i){if(i){if(!(i instanceof
Map||vh(i)))throw new re(900,"")}else i=new Map;return
this.check(i)?this:null}onDestroy(){}check(i){this._reset();
let
e=this._mapHead;if(this._appendAfter=null,this._forEach(i,(n,s)=>{if(e&&e.key===s)this._maybeAddToChanges(e,n),this._appendAfter=e,e=e._next;else{const
r=this._getOrCreateRecordForKey(s,n);e=this._insertBeforeOrAppend(e,r)}}),e){e._prev&&(e._prev._next=null),this._removalsHead=e;for(let
n=e;null!==n;n=n._nextRemoved)n===this._mapHead&&(this._mapHead=null),this._records.delete(n.key),n._nextRemoved=n._next,n.previousValue=n.currentValue,n.currentValue=null,n._prev=null,n._next=null}return
this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(i,e){if(i){const
n=i._prev;return
e._next=i,e._prev=n,i._prev=e,n&&(n._next=e),i===this._mapHead&&(this._mapHead=e),this._appendAfter=i,i}return
this._appendAfter?(this._appendAfter._next=e,e._prev=this._appendAfter):this._mapHead=e,this._appendAfter=e,null}_getOrCreateRecordForKey(i,e){if(this._records.has(i)){const
s=this._records.get(i);this._m
aybeAddToChanges(s,e);const r=s._prev,o=s._next;return
r&&(r._next=o),o&&(o._prev=r),s._next=null,s._prev=null,s}const n=new
aL(i);return
this._records.set(i,n),n.currentValue=e,this._addToAdditions(n),n}_reset(){if(this.isDirty){let
i;for(this._previousMapHead=this._mapHead,i=this._previousMapHead;null!==i;i=i._next)i._nextPrevious=i._next;for(i=this._changesHead;null!==i;i=i._nextChanged)i.previousValue=i.currentValue;for(i=this._additionsHead;null!=i;i=i._nextAdded)i.previousValue=i.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(i,e){Object.is(e,i.currentValue)||(i.previousValue=i.currentValue,i.currentValue=e,this._addToChanges(i))}_addToAdditions(i){null===this._additionsHead?this._additionsHead=this._additionsTail=i:(this._additionsTail._nextAdded=i,this._additionsTail=i)}_addToChanges(i){null===this._changesHead?this._changesHead=this._changesTail=i:(this._changesTail._nextChanged=
i,this._changesTail=i)}_forEach(i,e){i instanceof
Map?i.forEach(e):Object.keys(i).forEach(n=>e(i[n],n))}}class
aL{constructor(i){this.key=i,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
oy(){return new $a([new ny])}let $a=(()=>{class
t{constructor(e){this.factories=e}static create(e,n){if(null!=n){const
s=n.factories.slice();e=e.concat(s)}return new t(e)}static
extend(e){return{provide:t,useFactory:n=>t.create(e,n||oy()),deps:[[t,new _a,new
Ns]]}}find(e){const n=this.factories.find(s=>s.supports(e));if(null!=n)return n;throw
new re(901,"")}}return
t.\u0275prov=X({token:t,providedIn:"root",factory:oy}),t})();function
ay(){return new Wa([new ry])}let Wa=(()=>{class
t{constructor(e){this.factories=e}static create(e,n){if(n){const
s=n.factories.slice();e=e.concat(s)}return new t(e)}static
extend(e){return{provide:t,useFactory:n=>t.create(e,n||ay()),deps:[
[t,new _a,new Ns]]}}find(e){const n=this.factories.find(r=>r.supports(e));if(n)return
n;throw new re(901,"")}}return
t.\u0275prov=X({token:t,providedIn:"root",factory:ay}),t})();const
uL=WC(null,"core",[]);let dL=(()=>{class t{constructor(e){}}return
t.\u0275fac=function(e){return
new(e||t)(K(cm))},t.\u0275mod=he({type:t}),t.\u0275inj=ue({}),t})(),zc=null;function
ns(){return zc}const Xt=new be("DocumentToken");let fr=(()=>{class
t{historyGo(e){throw new Error("Not implemented")}}return
t.\u0275fac=function(e){return
new(e||t)},t.\u0275prov=X({token:t,factory:function(){return function fL(){return
K(ly)}()},providedIn:"platform"}),t})();const gL=new be("Location
Initialized");let ly=(()=>{class t extends
fr{constructor(e){super(),this._doc=e,this._init()}_init(){this.location=window.location,this._history=window.history}getBaseHrefFromDOM(){return
ns().getBaseHref(this._doc)}onPopState(e){const
n=ns().getGlobalEventTarget(this._doc,"window");return
n.addEventListener("popstate",e,!1
),()=>n.removeEventListener("popstate",e)}onHashChange(e){const
n=ns().getGlobalEventTarget(this._doc,"window");return
n.addEventListener("hashchange",e,!1),()=>n.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,n,s){cy()?this._history.pushState(e,n,s):this.location.hash=s}replaceState(e,n,s){cy()?this._history.replaceState(e,n,s):this.location.hash=s}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)(K(Xt))},t.\u0275prov=X({token:t,factory:function(){return function _L(){return
new ly(K(Xt))}()},providedIn:"platform"}),t})();funct
ion cy(){return!!window.history.pushState}function fm(t,i){if(0==t.length)return
i;if(0==i.length)return t;let e=0;return
t.endsWith("/")&&e++,i.startsWith("/")&&e++,2==e?t+i.substring(1):1==e?t+i:t+"/"+i}function
uy(t){const i=t.match(/#|\?|$/),e=i&&i.index||t.length;return
t.slice(0,e-("/"===t[e-1]?1:0))+t.slice(e)}function bs(t){return
t&&"?"!==t[0]?"?"+t:t}let ko=(()=>{class
t{historyGo(e){throw new Error("Not implemented")}}return
t.\u0275fac=function(e){return
new(e||t)},t.\u0275prov=X({token:t,factory:function(){return function bL(t){const
i=K(Xt).location;return new
dy(K(fr),i&&i.origin||"")}()},providedIn:"root"}),t})();const
gm=new be("appBaseHref");let dy=(()=>{class t extends
ko{constructor(e,n){if(super(),this._platformLocation=e,this._removeListenerFns=[],null==n&&(n=this._platformLocation.getBaseHrefFromDOM()),null==n)throw
new Error("No base href set. Please provide a value for the APP_BASE_HREF token or
add a base element to the document.");this._baseHref=n}ngOnDest
roy(){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 fm(this._baseHref,e)}path(e=!1){const
n=this._platformLocation.pathname+bs(this._platformLocation.search),s=this._platformLocation.hash;return
s&&e?`${n}${s}`:n}pushState(e,n,s,r){const
o=this.prepareExternalUrl(s+bs(r));this._platformLocation.pushState(e,n,o)}replaceState(e,n,s,r){const
o=this.prepareExternalUrl(s+bs(r));this._platformLocation.replaceState(e,n,o)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}historyGo(e=0){var
n,s;null===(s=(n=this._platformLocation).historyGo)||void 0===s||s.call(n,e)}}return
t.\u0275fac=function(e){return
new(e||t)(K(fr),K(gm,8))},t.\u0275prov=X({token:t,factory:t.\u0275fac}),t})(),vL=(()=>{class
t extends ko{constructor(e,n){super(),this._platformLocation=e
,this._baseHref="",this._removeListenerFns=[],null!=n&&(this._baseHref=n)}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 n=this._platformLocation.hash;return
null==n&&(n="#"),n.length>0?n.substring(1):n}prepareExternalUrl(e){const
n=fm(this._baseHref,e);return n.length>0?"#"+n:n}pushState(e,n,s,r){let
o=this.prepareExternalUrl(s+bs(r));0==o.length&&(o=this._platformLocation.pathname),this._platformLocation.pushState(e,n,o)}replaceState(e,n,s,r){let
o=this.prepareExternalUrl(s+bs(r));0==o.length&&(o=this._platformLocation.pathname),this._platformLocation.replaceState(e,n,o)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}historyGo(e=0){var
n,s;null===(s=(n=this._platformLocation).historyGo)||void 0===s||s.call(n,e)}}return
t.\u0275fac=function(e){re
turn
new(e||t)(K(fr),K(gm,8))},t.\u0275prov=X({token:t,factory:t.\u0275fac}),t})(),_m=(()=>{class
t{constructor(e,n){this._subject=new
H,this._urlChangeListeners=[],this._platformStrategy=e;const
s=this._platformStrategy.getBaseHref();this._platformLocation=n,this._baseHref=uy(py(s)),this._platformStrategy.onPopState(r=>{this._subject.emit({url:this.path(!0),pop:!0,state:r.state,type:r.type})})}path(e=!1){return
this.normalize(this._platformStrategy.path(e))}getState(){return
this._platformLocation.getState()}isCurrentPathEqualTo(e,n=""){return
this.path()==this.normalize(e+bs(n))}normalize(e){return t.stripTrailingSlash(function
yL(t,i){return
t&&i.startsWith(t)?i.substring(t.length):i}(this._baseHref,py(e)))}prepareExternalUrl(e){return
e&&"/"!==e[0]&&(e="/"+e),this._platformStrategy.prepareExternalUrl(e)}go(e,n="",s=null){this._platformStrategy.pushState(s,"",e,n),this._notifyUrlChangeListeners(this.prepareExternalUrl(e+bs(n)),s)}replaceState(e,n="",s=null){this._platformStrategy
.replaceState(s,"",e,n),this._notifyUrlChangeListeners(this.prepareExternalUrl(e+bs(n)),s)}forward(){this._platformStrategy.forward()}back(){this._platformStrategy.back()}historyGo(e=0){var
n,s;null===(s=(n=this._platformStrategy).historyGo)||void
0===s||s.call(n,e)}onUrlChange(e){this._urlChangeListeners.push(e),this._urlChangeSubscription||(this._urlChangeSubscription=this.subscribe(n=>{this._notifyUrlChangeListeners(n.url,n.state)}))}_notifyUrlChangeListeners(e="",n){this._urlChangeListeners.forEach(s=>s(e,n))}subscribe(e,n,s){return
this._subject.subscribe({next:e,error:n,complete:s})}}return
t.normalizeQueryParams=bs,t.joinWithSlash=fm,t.stripTrailingSlash=uy,t.\u0275fac=function(e){return
new(e||t)(K(ko),K(fr))},t.\u0275prov=X({token:t,factory:function(){return function
CL(){return new _m(K(ko),K(fr))}()},providedIn:"root"}),t})();function
py(t){return t.replace(/\/index.html$/,"")}var
Wn=(()=>((Wn=Wn||{})[Wn.Decimal=0]="Decimal",Wn[Wn.Percent=1]="Percent",Wn[Wn.Currency=2]="C
urrency",Wn[Wn.Scientific=3]="Scientific",Wn))(),ge=(()=>((ge=ge||{})[ge.Decimal=0]="Decimal",ge[ge.Group=1]="Group",ge[ge.List=2]="List",ge[ge.PercentSign=3]="PercentSign",ge[ge.PlusSign=4]="PlusSign",ge[ge.MinusSign=5]="MinusSign",ge[ge.Exponential=6]="Exponential",ge[ge.SuperscriptingExponent=7]="SuperscriptingExponent",ge[ge.PerMille=8]="PerMille",ge[ge.Infinity=9]="Infinity",ge[ge.NaN=10]="NaN",ge[ge.TimeSeparator=11]="TimeSeparator",ge[ge.CurrencyDecimal=12]="CurrencyDecimal",ge[ge.CurrencyGroup=13]="CurrencyGroup",ge))();function
Ci(t,i){const e=Hn(t),n=e[te.NumberSymbols][i];if(void
0===n){if(i===ge.CurrencyDecimal)return
e[te.NumberSymbols][ge.Decimal];if(i===ge.CurrencyGroup)return
e[te.NumberSymbols][ge.Group]}return n}const WL=/^(\d+)?\.((\d+)(-(\d+))?)?$/;function
xm(t){const i=parseInt(t);if(isNaN(i))throw new Error("Invalid integer literal when
parsing "+t);return i}function yy(t,i){i=encodeURIComponent(i);for(const e of
t.split(";")){const n=e.indexOf("="),[s,r]=-1==
n?[e,""]:[e.slice(0,n),e.slice(n+1)];if(s.trim()===i)return
decodeURIComponent(r)}return null}let Le=(()=>{class
t{constructor(e,n,s,r){this._iterableDiffers=e,this._keyValueDiffers=n,this._ngEl=s,this._renderer=r,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&&(Ia(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._keyValueDiffer.diff(this._rawClass);e&&this._applyKeyValueChanges(e)}}_applyKeyValueChanges(e){e.forEachAddedItem(n=>this._toggleClass(n.key,n.currentValue)),e.forEachChangedItem(n=>this._toggleClass(n.key,n.currentValue)),e.forEachRemovedItem(n=>{n.previousValue&&this._toggleClass(n.key,!1)})}_applyIterableChanges(e){e.forEachAddedItem(n=>{if("string"!=typeof
n.item)throw new Error(`NgClass can only toggle CSS classes expressed as strings, got
${ft(n.item)}`);this._toggleClass(n.item,!0)}),e.forEachRemovedItem(n=>this._toggleClass(n.item,!1))}_applyClasses(e){e&&(Array.isArray(e)||e
instanceof
Set?e.forEach(n=>this._toggleClass(n,!0)):Object.keys(e).forEach(n=>this._toggleClass(n,!!e[n])))}_removeClasses(e){e&&(Array.isArray(e)||e
instanceof
Set?e.forEach(n=>this._toggleClass(n,!1)):Object.keys(e).forEach(n=>this._toggleClass(n,!1)))}_toggleClass(e,n){(e=e.trim())&&e.split(/\s+/g).forEach(s=>{n?this._renderer.addClass(this._ngEl.nativeEle
ment,s):this._renderer.removeClass(this._ngEl.nativeElement,s)})}}return
t.\u0275fac=function(e){return
new(e||t)(D($a),D(Wa),D(De),D(gn))},t.\u0275dir=le({type:t,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"}}),t})();class
o4{constructor(i,e,n,s){this.$implicit=i,this.ngForOf=e,this.index=n,this.count=s}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 at=(()=>{class
t{constructor(e,n,s){this._viewContainer=e,this._template=n,this._differs=s,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;!this._differ&&e&&(this._differ=this._differs.find(e).create(this.ngForTrackBy))}if(this._differ){const
e=th
is._differ.diff(this._ngForOf);e&&this._applyChanges(e)}}_applyChanges(e){const
n=this._viewContainer;e.forEachOperation((s,r,o)=>{if(null==s.previousIndex)n.createEmbeddedView(this._template,new
o4(s.item,this._ngForOf,-1,-1),null===o?void 0:o);else if(null==o)n.remove(null===r?void
0:r);else if(null!==r){const u=n.get(r);n.move(u,o),wy(u,s)}});for(let
s=0,r=n.length;s<r;s++){const
u=n.get(s).context;u.index=s,u.count=r,u.ngForOf=this._ngForOf}e.forEachIdentityChange(s=>{wy(n.get(s.currentIndex),s)})}static
ngTemplateContextGuard(e,n){return!0}}return t.\u0275fac=function(e){return
new(e||t)(D(vi),D(bi),D($a))},t.\u0275dir=le({type:t,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"}}),t})();function
wy(t,i){t.context.$implicit=i.item}let Q=(()=>{class
t{constructor(e,n){this._viewContainer=e,this._context=new
a4,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=n
ull,this._thenTemplateRef=n}set
ngIf(e){this._context.$implicit=this._context.ngIf=e,this._updateView()}set
ngIfThen(e){Ty("ngIfThen",e),this._thenTemplateRef=e,this._thenViewRef=null,this._updateView()}set
ngIfElse(e){Ty("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,n){return!0}}return t.\u0275fac=function(e){return
new(e||t)(D(vi),D(bi))},t.\u0275dir=le({type:t,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"}}),t})();class
a4{constructor(){this.$implicit=null,this.n
gIf=null}}function Ty(t,i){if(i&&!i.createEmbeddedView)throw new Error(`${t} must
be a TemplateRef, but received '${ft(i)}'.`)}class
Mm{constructor(i,e){this._viewContainerRef=i,this._templateRef=e,this._created=!1}create(){this._created=!0,this._viewContainerRef.createEmbeddedView(this._templateRef)}destroy(){this._created=!1,this._viewContainerRef.clear()}enforceState(i){i&&!this._created?this.create():!i&&this._created&&this.destroy()}}let
gr=(()=>{class
t{constructor(){this._defaultUsed=!1,this._caseCount=0,this._lastCaseCheckIndex=0,this._lastCasesMatched=!1}set
ngSwitch(e){this._ngSwitch=e,0===this._caseCount&&this._updateDefaultCases(!0)}_addCase(){return
this._caseCount++}_addDefault(e){this._defaultViews||(this._defaultViews=[]),this._defaultViews.push(e)}_matchCase(e){const
n=e==this._ngSwitch;return
this._lastCasesMatched=this._lastCasesMatched||n,this._lastCaseCheckIndex++,this._lastCaseCheckIndex===this._caseCount&&(this._updateDefaultCases(!this._lastCasesMatched),this
._lastCaseCheckIndex=0,this._lastCasesMatched=!1),n}_updateDefaultCases(e){if(this._defaultViews&&e!==this._defaultUsed){this._defaultUsed=e;for(let
n=0;n<this._defaultViews.length;n++)this._defaultViews[n].enforceState(e)}}}return
t.\u0275fac=function(e){return
new(e||t)},t.\u0275dir=le({type:t,selectors:[["","ngSwitch",""]],inputs:{ngSwitch:"ngSwitch"}}),t})(),Ja=(()=>{class
t{constructor(e,n,s){this.ngSwitch=s,s._addCase(),this._view=new
Mm(e,n)}ngDoCheck(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase))}}return
t.\u0275fac=function(e){return
new(e||t)(D(vi),D(bi),D(gr,9))},t.\u0275dir=le({type:t,selectors:[["","ngSwitchCase",""]],inputs:{ngSwitchCase:"ngSwitchCase"}}),t})(),km=(()=>{class
t{constructor(e,n,s){s._addDefault(new Mm(e,n))}}return t.\u0275fac=function(e){return
new(e||t)(D(vi),D(bi),D(gr,9))},t.\u0275dir=le({type:t,selectors:[["","ngSwitchDefault",""]]}),t})(),lt=(()=>{class
t{constructor(e,n,s){this._ngEl=e,this._differs=n,this._renderer=s,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,n){const[s,r]=e.split(".");null!=(n=null!=n&&r?`${n}${r}`:n)?this._renderer.setStyle(this._ngEl.nativeElement,s,n):this._renderer.removeStyle(this._ngEl.nativeElement,s)}_applyChanges(e){e.forEachRemovedItem(n=>this._setStyle(n.key,null)),e.forEachAddedItem(n=>this._setStyle(n.key,n.currentValue)),e.forEachChangedItem(n=>this._setStyle(n.key,n.currentValue))}}return
t.\u0275fac=function(e){return
new(e||t)(D(De),D(Wa),D(gn))},t.\u0275dir=le({type:t,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"}}),t})(),Rt=(()=>{class
t{constructor(e){this._viewContainerRef=e,this._viewRef=null,this.ngTemplateOutletContext=null,this.ngTemplateOutlet=null}ngOnChanges(e){if(e.ngTemplateOutlet){const
n=this._viewContainerRef;this._viewRef&&n.remove(n.indexOf(thi
s._viewRef)),this._viewRef=this.ngTemplateOutlet?n.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)(D(vi))},t.\u0275dir=le({type:t,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet"},features:[fn]}),t})();function
Vi(t,i){return new re(2100,"")}class c4{createSubscription(i,e){return
i.subscribe({next:e,error:n=>{throw
n}})}dispose(i){i.unsubscribe()}onDestroy(i){i.unsubscribe()}}class
u4{createSubscription(i,e){return i.then(e,n=>{throw
n})}dispose(i){}onDestroy(i){}}const d4=new u4,p4=new c4;let xy=(()=>{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,n=>this._updateLatestValue(e,n))}_selectStrategy(e){if(Ra(e))return
d4;if(qv(e))return p4;throw
Vi()}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null}_updateLatestValue(e,n){e===this._obj&&(this._latestValue=n,this._ref.markForCheck())}}return
t.\u0275fac=function(e){return
new(e||t)(D(rt,16))},t.\u0275pipe=An({name:"async",type:t,pure:!1}),t})(),eu=(()=>{class
t{constructor(e){this._locale=e}transform(e,n,s){if(!function
Im(t){return!(null==t||""===t||t!=t)}(e))return
null;s=s||this._locale;try{return function XL(t,i,e){return function
Tm(t,i,e,n,s,r,o=!1){let u="",h=!1;if(isFinite(t)){let b=function t4(t){let
n,s,r,o,u,i=Math.abs(t)+"",e=0;for((s=i.indexOf("."))>-1&&(i=i.replace(".","")),(
r=i.search(/e/i))>0?(s<0&&(s=r),s+=+i.slice(r+1),i=i.substring(0,r)):s<0&&(s=i.length),r=0;"0"===i.charAt(r);r++);if(r===(u=i.length))n=[0],s=1;else{for(u--;"0"===i.charAt(u);)u--;for(s-=r,n=[],o=0;r<=u;r++,o++)n[o]=Number(i.charAt(r))}return
s>22&&(n=n.splice(0,21),e=s-1,s=1),{digits:n,exponent:e,integerLen:s}}(t);o&&(b=function
e4(t){if(0===t.digits[0])return t;const i=t.digits.length-t.integerLen;return
t.exponent?t.exponent+=2:(0===i?t.digits.push(0,0):1===i&&t.digits.push(0),t.integerLen+=2),t}(b));let
y=i.minInt,w=i.minFrac,M=i.maxFrac;if(r){const P=r.match(WL);if(null===P)throw new
Error(`${r} is not a valid digit info`);const
J=P[1],se=P[3],ke=P[5];null!=J&&(y=xm(J)),null!=se&&(w=xm(se)),null!=ke?M=xm(ke):null!=se&&w>M&&(M=w)}!function
n4(t,i,e){if(i>e)throw new Error(`The minimum number of digits after fraction (${i}) is
higher than the maximum (${e}).`);let n=t.digits,s=n.length-t.integerLen;const
r=Math.min(Math.max(i,s),e);let o=r+t.integerLen,u=n[o];if(o>0){n.splice(Mat
h.max(t.integerLen,o));for(let
w=o;w<n.length;w++)n[w]=0}else{s=Math.max(0,s),t.integerLen=1,n.length=Math.max(1,o=r+1),n[0]=0;for(let
w=1;w<o;w++)n[w]=0}if(u>=5)if(o-1<0){for(let
w=0;w>o;w--)n.unshift(0),t.integerLen++;n.unshift(1),t.integerLen++}else
n[o-1]++;for(;s<Math.max(0,r);s++)n.push(0);let h=0!==r;const
b=i+t.integerLen,y=n.reduceRight(function(w,M,E,L){return
L[E]=(M+=w)<10?M:M-10,h&&(0===L[E]&&E>=b?L.pop():h=!1),M>=10?1:0},0);y&&(n.unshift(y),t.integerLen++)}(b,w,M);let
E=b.digits,L=b.integerLen;const O=b.exponent;let
N=[];for(h=E.every(P=>!P);L<y;L++)E.unshift(0);for(;L<0;L++)E.unshift(0);L>0?N=E.splice(L,E.length):(N=E,E=[0]);const
G=[];for(E.length>=i.lgSize&&G.unshift(E.splice(-i.lgSize,E.length).join(""));E.length>i.gSize;)G.unshift(E.splice(-i.gSize,E.length).join(""));E.length&&G.unshift(E.join("")),u=G.join(Ci(e,n)),N.length&&(u+=Ci(e,s)+N.join("")),O&&(u+=Ci(e,ge.Exponential)+"+"+O)}else
u=Ci(e,ge.Infinity);return u=t<0&&!h?i.negPre+u+i.negSuf:i.posPre+u+i.posSu
f,u}(t,function Sm(t,i="-"){const
e={minInt:1,minFrac:0,maxFrac:0,posPre:"",posSuf:"",negPre:"",negSuf:"",gSize:0,lgSize:0},n=t.split(";"),s=n[0],r=n[1],o=-1!==s.indexOf(".")?s.split("."):[s.substring(0,s.lastIndexOf("0")+1),s.substring(s.lastIndexOf("0")+1)],u=o[0],h=o[1]||"";e.posPre=u.substr(0,u.indexOf("#"));for(let
y=0;y<h.length;y++){const
w=h.charAt(y);"0"===w?e.minFrac=e.maxFrac=y+1:"#"===w?e.maxFrac=y+1:e.posSuf+=w}const
b=u.split(",");if(e.gSize=b[1]?b[1].length:0,e.lgSize=b[2]||b[1]?(b[2]||b[1]).length:0,r){const
y=s.length-e.posPre.length-e.posSuf.length,w=r.indexOf("#");e.negPre=r.substr(0,w).replace(/'/g,""),e.negSuf=r.substr(w+y).replace(/'/g,"")}else
e.negPre=i+e.posPre,e.negSuf=e.posSuf;return e}(function bm(t,i){return
Hn(t)[te.NumberFormats][i]}(i,Wn.Decimal),Ci(i,ge.MinusSign)),i,ge.Group,ge.Decimal,e)}(function
Em(t){if("string"==typeof t&&!isNaN(Number(t)-parseFloat(t)))return
Number(t);if("number"!=typeof t)throw new Error(`${t} is not a number`);return
t}(e),
s,n)}catch(r){throw Vi()}}}return t.\u0275fac=function(e){return
new(e||t)(D(qs,16))},t.\u0275pipe=An({name:"number",type:t,pure:!0}),t})();let
My=(()=>{class t{transform(e,n,s){if(null==e)return null;if(!this.supports(e))throw
Vi();return e.slice(n,s)}supports(e){return"string"==typeof
e||Array.isArray(e)}}return t.\u0275fac=function(e){return
new(e||t)},t.\u0275pipe=An({name:"slice",type:t,pure:!1}),t})(),Fe=(()=>{class
t{}return t.\u0275fac=function(e){return
new(e||t)},t.\u0275mod=he({type:t}),t.\u0275inj=ue({}),t})();const
ky="browser";let R4=(()=>{class t{}return
t.\u0275prov=X({token:t,providedIn:"root",factory:()=>new
L4(K(Xt),window)}),t})();class
L4{constructor(i,e){this.document=i,this.window=e,this.offset=()=>[0,0]}setOffset(i){this.offset=Array.isArray(i)?()=>i:i}getScrollPosition(){return
this.supportsScrolling()?[this.window.pageXOffset,this.window.pageYOffset]:[0,0]}scrollToPosition(i){this.supportsScrolling()&&this.window.scrollTo(i[0],i[1])}scrollToAnchor(i){if(!th
is.supportsScrolling())return;const e=function O4(t,i){const
e=t.getElementById(i)||t.getElementsByName(i)[0];if(e)return
e;if("function"==typeof
t.createTreeWalker&&t.body&&(t.body.createShadowRoot||t.body.attachShadow)){const
n=t.createTreeWalker(t.body,NodeFilter.SHOW_ELEMENT);let s=n.currentNode;for(;s;){const
r=s.shadowRoot;if(r){const
o=r.getElementById(i)||r.querySelector(`[name="${i}"]`);if(o)return
o}s=n.nextNode()}}return
null}(this.document,i);e&&(this.scrollToElement(e),e.focus())}setHistoryScrollRestoration(i){if(this.supportScrollRestoration()){const
e=this.window.history;e&&e.scrollRestoration&&(e.scrollRestoration=i)}}scrollToElement(i){const
e=i.getBoundingClientRect(),n=e.left+this.window.pageXOffset,s=e.top+this.window.pageYOffset,r=this.offset();this.window.scrollTo(n-r[0],s-r[1])}supportScrollRestoration(){try{if(!this.supportsScrolling())return!1;const
i=Iy(this.window.history)||Iy(Object.getPrototypeOf(this.window.history));return!(!i||!i.writable&&!i.set)}cat
ch(i){return!1}}supportsScrolling(){try{return!!this.window&&!!this.window.scrollTo&&"pageXOffset"in
this.window}catch(i){return!1}}}function Iy(t){return
Object.getOwnPropertyDescriptor(t,"scrollRestoration")}class Ey{}class Rm
extends class A4 extends class
mL{}{constructor(){super(...arguments),this.supportsDOMEvents=!0}}{static
makeCurrent(){!function hL(t){zc||(zc=t)}(new Rm)}onAndCancel(i,e,n){return
i.addEventListener(e,n,!1),()=>{i.removeEventListener(e,n,!1)}}dispatchEvent(i,e){i.dispatchEvent(e)}remove(i){i.parentNode&&i.parentNode.removeChild(i)}createElement(i,e){return(e=e||this.getDefaultDocument()).createElement(i)}createHtmlDocument(){return
document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return
document}isElementNode(i){return i.nodeType===Node.ELEMENT_NODE}isShadowRoot(i){return i
instanceof
DocumentFragment}getGlobalEventTarget(i,e){return"window"===e?window:"document"===e?i:"body"===e?i.body:null}getBaseHref(i){const
e=function P4(){r
eturn
Ya=Ya||document.querySelector("base"),Ya?Ya.getAttribute("href"):null}();return
null==e?null:function
F4(t){tu=tu||document.createElement("a"),tu.setAttribute("href",t);const
i=tu.pathname;return"/"===i.charAt(0)?i:`/${i}`}(e)}resetBaseElement(){Ya=null}getUserAgent(){return
window.navigator.userAgent}getCookie(i){return yy(document.cookie,i)}}let tu,Ya=null;const
Ry=new be("TRANSITION_ID"),V4=[{provide:em,useFactory:function
N4(t,i,e){return()=>{e.get(tm).donePromise.then(()=>{const
n=ns(),s=i.querySelectorAll(`style[ng-transition="${t}"]`);for(let
r=0;r<s.length;r++)n.remove(s[r])})}},deps:[Ry,Xt,En],multi:!0}];class Lm{static
init(){!function BR(t){am=t}(new
Lm)}addToWindow(i){vt.getAngularTestability=(n,s=!0)=>{const
r=i.findTestabilityInTree(n,s);if(null==r)throw new Error("Could not find testability
for element.");return
r},vt.getAllAngularTestabilities=()=>i.getAllTestabilities(),vt.getAllAngularRootElements=()=>i.getAllRootElements(),vt.frameworkStabilizers||(vt.framew
orkStabilizers=[]),vt.frameworkStabilizers.push(n=>{const
s=vt.getAllAngularTestabilities();let r=s.length,o=!1;const
u=function(h){o=o||h,r--,0==r&&n(o)};s.forEach(function(h){h.whenStable(u)})})}findTestabilityInTree(i,e,n){if(null==e)return
null;const s=i.getTestability(e);return
null!=s?s:n?ns().isShadowRoot(e)?this.findTestabilityInTree(i,e.host,!0):this.findTestabilityInTree(i,e.parentElement,!0):null}}let
B4=(()=>{class t{build(){return new XMLHttpRequest}}return
t.\u0275fac=function(e){return
new(e||t)},t.\u0275prov=X({token:t,factory:t.\u0275fac}),t})();const nu=new
be("EventManagerPlugins");let iu=(()=>{class
t{constructor(e,n){this._zone=n,this._eventNameToPlugin=new
Map,e.forEach(s=>s.manager=this),this._plugins=e.slice().reverse()}addEventListener(e,n,s){return
this._findPluginFor(n).addEventListener(e,n,s)}addGlobalEventListener(e,n,s){return
this._findPluginFor(n).addGlobalEventListener(e,n,s)}getZone(){return
this._zone}_findPluginFor(e){const n=this._eventNameToPlug
in.get(e);if(n)return n;const s=this._plugins;for(let r=0;r<s.length;r++){const
o=s[r];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)(K(nu),K(nt))},t.\u0275prov=X({token:t,factory:t.\u0275fac}),t})();class
Ly{constructor(i){this._doc=i}addGlobalEventListener(i,e,n){const
s=ns().getGlobalEventTarget(this._doc,i);if(!s)throw new Error(`Unsupported event target
${s} for event ${e}`);return this.addEventListener(s,e,n)}}let Oy=(()=>{class
t{constructor(){this._stylesSet=new Set}addStyles(e){const n=new
Set;e.forEach(s=>{this._stylesSet.has(s)||(this._stylesSet.add(s),n.add(s))}),this.onStylesAdded(n)}onStylesAdded(e){}getAllStyles(){return
Array.from(this._stylesSet)}}return t.\u0275fac=function(e){return
new(e||t)},t.\u0275prov=X({token:t,factory:t.\u0275fac}),t})(),Za=(()=>{class t extends
Oy{constructor(e){super(),this._doc=e,this._hostNodes=new Map,this._hostN
odes.set(e.head,[])}_addStylesToHost(e,n,s){e.forEach(r=>{const
o=this._doc.createElement("style");o.textContent=r,s.push(n.appendChild(o))})}addHost(e){const
n=[];this._addStylesToHost(this._stylesSet,e,n),this._hostNodes.set(e,n)}removeHost(e){const
n=this._hostNodes.get(e);n&&n.forEach(Ay),this._hostNodes.delete(e)}onStylesAdded(e){this._hostNodes.forEach((n,s)=>{this._addStylesToHost(e,s,n)})}ngOnDestroy(){this._hostNodes.forEach(e=>e.forEach(Ay))}}return
t.\u0275fac=function(e){return
new(e||t)(K(Xt))},t.\u0275prov=X({token:t,factory:t.\u0275fac}),t})();function
Ay(t){ns().remove(t)}const
Om={svg:"http://www.w3.org/2000/svg",xhtml:"http://www.w3....
su(t,i,e){for(let n=0;n<i.length;n++){let
s=i[n];Array.isArray(s)?su(t,s,e):(s=s.replace(Am,t),e.push(s))}return e}function
Ny(t){return i=>{if
("__ngUnwrap__"===i)return
t;!1===t(i)&&(i.preventDefault(),i.returnValue=!1)}}let ru=(()=>{class
t{constructor(e,n,s){this.eventManager=e,this.sharedStylesHost=n,this.appId=s,this.rendererByCompId=new
Map,this.defaultRenderer=new Pm(e)}createRenderer(e,n){if(!e||!n)return
this.defaultRenderer;switch(n.encapsulation){case ki.Emulated:{let
s=this.rendererByCompId.get(n.id);return s||(s=new
j4(this.eventManager,this.sharedStylesHost,n,this.appId),this.rendererByCompId.set(n.id,s)),s.applyToHost(e),s}case
1:case ki.ShadowDom:return new
$4(this.eventManager,this.sharedStylesHost,e,n);default:if(!this.rendererByCompId.has(n.id)){const
s=su(n.id,n.styles,[]);this.sharedStylesHost.addStyles(s),this.rendererByCompId.set(n.id,this.defaultRenderer)}return
this.defaultRenderer}}begin(){}end(){}}return t.\u0275fac=function(e){return
new(e||t)(K(iu),K(Za),K(ja))},t.\u0275prov=X({token:t,factory:t.\u0275fac}),t})();class
Pm{constructor(i){this.eventManager=i,this.data=Object.create(null),this.des
troyNode=null}destroy(){}createElement(i,e){return
e?document.createElementNS(Om[e]||e,i):document.createElement(i)}createComment(i){return
document.createComment(i)}createText(i){return
document.createTextNode(i)}appendChild(i,e){i.appendChild(e)}insertBefore(i,e,n){i&&i.insertBefore(e,n)}removeChild(i,e){i&&i.removeChild(e)}selectRootElement(i,e){let
n="string"==typeof i?document.querySelector(i):i;if(!n)throw new Error(`The
selector "${i}" did not match any elements`);return
e||(n.textContent=""),n}parentNode(i){return i.parentNode}nextSibling(i){return
i.nextSibling}setAttribute(i,e,n,s){if(s){e=s+":"+e;const
r=Om[s];r?i.setAttributeNS(r,e,n):i.setAttribute(e,n)}else
i.setAttribute(e,n)}removeAttribute(i,e,n){if(n){const
s=Om[n];s?i.removeAttributeNS(s,e):i.removeAttribute(`${n}:${e}`)}else
i.removeAttribute(e)}addClass(i,e){i.classList.add(e)}removeClass(i,e){i.classList.remove(e)}setStyle(i,e,n,s){s&(ti.DashCase|ti.Important)?i.style.setProperty(e,n,s&ti.Important?"important":
""):i.style[e]=n}removeStyle(i,e,n){n&ti.DashCase?i.style.removeProperty(e):i.style[e]=""}setProperty(i,e,n){i[e]=n}setValue(i,e){i.nodeValue=e}listen(i,e,n){return"string"==typeof
i?this.eventManager.addGlobalEventListener(i,e,Ny(n)):this.eventManager.addEventListener(i,e,Ny(n))}}class
j4 extends Pm{constructor(i,e,n,s){super(i),this.component=n;const
r=su(s+"-"+n.id,n.styles,[]);e.addStyles(r),this.contentAttr=function
G4(t){return"_ngcontent-%COMP%".replace(Am,t)}(s+"-"+n.id),this.hostAttr=function
U4(t){return"_nghost-%COMP%".replace(Am,t)}(s+"-"+n.id)}applyToHost(i){super.setAttribute(i,this.hostAttr,"")}createElement(i,e){const
n=super.createElement(i,e);return
super.setAttribute(n,this.contentAttr,""),n}}class $4 extends
Pm{constructor(i,e,n,s){super(i),this.sharedStylesHost=e,this.hostEl=n,this.shadowRoot=n.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const
r=su(s.id,s.styles,[]);for(let o=0;o<r.length;o++){const
u=document.createElement("style"
);u.textContent=r[o],this.shadowRoot.appendChild(u)}}nodeOrShadowRoot(i){return
i===this.hostEl?this.shadowRoot:i}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}appendChild(i,e){return
super.appendChild(this.nodeOrShadowRoot(i),e)}insertBefore(i,e,n){return
super.insertBefore(this.nodeOrShadowRoot(i),e,n)}removeChild(i,e){return
super.removeChild(this.nodeOrShadowRoot(i),e)}parentNode(i){return
this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(i)))}}let W4=(()=>{class t
extends Ly{constructor(e){super(e)}supports(e){return!0}addEventListener(e,n,s){return
e.addEventListener(n,s,!1),()=>this.removeEventListener(e,n,s)}removeEventListener(e,n,s){return
e.removeEventListener(n,s)}}return t.\u0275fac=function(e){return
new(e||t)(K(Xt))},t.\u0275prov=X({token:t,factory:t.\u0275fac}),t})();const
By=["alt","control","meta","shift"],Q4={"\b":"Backspace","\t":"Tab","\x7f":"Delete","\x1b":"Escape",Del:"Delete",Esc:"Escape",Left:"ArrowLeft",Right:"ArrowRight",Up:"ArrowU
p",Down:"ArrowDown",Menu:"ContextMenu",Scroll:"ScrollLock",Win:"OS"},Hy={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"},J4={alt:t=>t.altKey,control:t=>t.ctrlKey,meta:t=>t.metaKey,shift:t=>t.shiftKey};let
Y4=(()=>{class t extends Ly{constructor(e){super(e)}supports(e){return
null!=t.parseEventName(e)}addEventListener(e,n,s){const
r=t.parseEventName(n),o=t.eventCallback(r.fullKey,s,this.manager.getZone());return
this.manager.getZone().runOutsideAngular(()=>ns().onAndCancel(e,r.domEventName,o))}static
parseEventName(e){const
n=e.toLowerCase().split("."),s=n.shift();if(0===n.length||"keydown"!==s&&"keyup"!==s)return
null;const r=t._normalizeKey(n.pop());let o="";if(By.forEach(h=>{const
b=n.indexOf(h);b>-1&&(n.splice(b,1),o+=h+".")}),o+=r,0!=n.length||0===r.length)return
null;const u={};return u.domEventName=s,u.fullKey=o,u}static getEventFullKey(e){let
n="",s=function Z4(t){let i=t.key;if(null==i){if(i=t.keyIdentifier,null==
i)return"Unidentified";i.startsWith("U+")&&(i=String.fromCharCode(parseInt(i.substring(2),16)),3===t.location&&Hy.hasOwnProperty(i)&&(i=Hy[i]))}return
Q4[i]||i}(e);return s=s.toLowerCase(),"
"===s?s="space":"."===s&&(s="dot"),By.forEach(r=>{r!=s&&J4[r](e)&&(n+=r+".")}),n+=s,n}static
eventCallback(e,n,s){return
r=>{t.getEventFullKey(r)===e&&s.runGuarded(()=>n(r))}}static
_normalizeKey(e){return"esc"===e?"escape":e}}return
t.\u0275fac=function(e){return
new(e||t)(K(Xt))},t.\u0275prov=X({token:t,factory:t.\u0275fac}),t})();const
nO=WC(uL,"browser",[{provide:qc,useValue:ky},{provide:BC,useValue:function
X4(){Rm.makeCurrent(),Lm.init()},multi:!0},{provide:Xt,useFactory:function tO(){return
function
Px(t){Zd=t}(document),document},deps:[]}]),iO=[{provide:hh,useValue:"root"},{provide:xa,useFactory:function
eO(){return new
xa},deps:[]},{provide:nu,useClass:W4,multi:!0,deps:[Xt,nt,qc]},{provide:nu,useClass:Y4,multi:!0,deps:[Xt]},{provide:ru,useClass:ru,deps:[iu,Za,ja]},{provide:Ba,useExistin
g:ru},{provide:Oy,useExisting:Za},{provide:Za,useClass:Za,deps:[Xt]},{provide:om,useClass:om,deps:[nt]},{provide:iu,useClass:iu,deps:[nu,nt]},{provide:Ey,useClass:B4,deps:[]}];let
qy=(()=>{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:ja,useValue:e.appId},{provide:Ry,useExisting:ja},V4]}}}return
t.\u0275fac=function(e){return
new(e||t)(K(t,12))},t.\u0275mod=he({type:t}),t.\u0275inj=ue({providers:iO,imports:[Fe,dL]}),t})();function
oe(...t){let i=t[t.length-1];return Vr(i)?(t.pop(),Ad(t,i)):Pd(t)}function _r(t,i){return
yn(t,i,1)}function Us(t,i){return function(n){return n.lift(new
mO(t,i))}}"undefined"!=typeof window&&window;class
mO{constructor(i,e){this.predicate=i,this.thisArg=e}call(i,e){return e.subscribe(new
fO(i,this.predicate,this.thisArg))}}class fO
extends
yt{constructor(i,e,n){super(i),this.predicate=e,this.thisArg=n,this.count=0}_next(i){let
e;try{e=this.predicate.call(this.thisArg,i,this.count++)}catch(n){return void
this.destination.error(n)}e&&this.destination.next(i)}}class zy{}class jy{}class
Cs{constructor(i){this.normalizedNames=new
Map,this.lazyUpdate=null,i?this.lazyInit="string"==typeof
i?()=>{this.headers=new Map,i.split("\n").forEach(e=>{const
n=e.indexOf(":");if(n>0){const
s=e.slice(0,n),r=s.toLowerCase(),o=e.slice(n+1).trim();this.maybeSetNormalizedName(s,r),this.headers.has(r)?this.headers.get(r).push(o):this.headers.set(r,[o])}})}:()=>{this.headers=new
Map,Object.keys(i).forEach(e=>{let n=i[e];const
s=e.toLowerCase();"string"==typeof
n&&(n=[n]),n.length>0&&(this.headers.set(s,n),this.maybeSetNormalizedName(e,s))})}:this.headers=new
Map}has(i){return this.init(),this.headers.has(i.toLowerCase())}get(i){this.init();const
e=this.headers.get(i.toLowerCase());return
e&&e.length>0?e[0]:null}keys(){return this.init
(),Array.from(this.normalizedNames.values())}getAll(i){return
this.init(),this.headers.get(i.toLowerCase())||null}append(i,e){return
this.clone({name:i,value:e,op:"a"})}set(i,e){return
this.clone({name:i,value:e,op:"s"})}delete(i,e){return
this.clone({name:i,value:e,op:"d"})}maybeSetNormalizedName(i,e){this.normalizedNames.has(e)||this.normalizedNames.set(e,i)}init(){this.lazyInit&&(this.lazyInit
instanceof
Cs?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(i=>this.applyUpdate(i)),this.lazyUpdate=null))}copyFrom(i){i.init(),Array.from(i.headers.keys()).forEach(e=>{this.headers.set(e,i.headers.get(e)),this.normalizedNames.set(e,i.normalizedNames.get(e))})}clone(i){const
e=new Cs;return e.lazyInit=this.lazyInit&&this.lazyInit instanceof
Cs?this.lazyInit:this,e.lazyUpdate=(this.lazyUpdate||[]).concat([i]),e}applyUpdate(i){const
e=i.name.toLowerCase();switch(i.op){case"a":case"s":let
n=i.value;if("string"==typeof n&&(n=[n]),0===n
.length)return;this.maybeSetNormalizedName(i.name,e);const
s=("a"===i.op?this.headers.get(e):void
0)||[];s.push(...n),this.headers.set(e,s);break;case"d":const
r=i.value;if(r){let
o=this.headers.get(e);if(!o)return;o=o.filter(u=>-1===r.indexOf(u)),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(i){this.init(),Array.from(this.normalizedNames.keys()).forEach(e=>i(this.normalizedNames.get(e),this.headers.get(e)))}}class
gO{encodeKey(i){return $y(i)}encodeValue(i){return $y(i)}decodeKey(i){return
decodeURIComponent(i)}decodeValue(i){return decodeURIComponent(i)}}const
bO=/%(\d[a-f0-9])/gi,vO={40:"@","3A":":",24:"$","2C":",","3B":";","2B":"+","3D":"=","3F":"?","2F":"/"};function
$y(t){return encodeURIComponent(t).replace(bO,(i,e)=>{var n;return
null!==(n=vO[e])&&void 0!==n?n:i})}function Wy(t){return`${t}`}class
ye{constructor(i={}){if(this.updates=null,this.cloneFrom=null,this.
encoder=i.encoder||new gO,i.fromString){if(i.fromObject)throw new Error("Cannot
specify both fromString and fromObject.");this.map=function _O(t,i){const e=new
Map;return
t.length>0&&t.replace(/^\?/,"").split("&").forEach(s=>{const
r=s.indexOf("="),[o,u]=-1==r?[i.decodeKey(s),""]:[i.decodeKey(s.slice(0,r)),i.decodeValue(s.slice(r+1))],h=e.get(o)||[];h.push(u),e.set(o,h)}),e}(i.fromString,this.encoder)}else
i.fromObject?(this.map=new Map,Object.keys(i.fromObject).forEach(e=>{const
n=i.fromObject[e];this.map.set(e,Array.isArray(n)?n:[n])})):this.map=null}has(i){return
this.init(),this.map.has(i)}get(i){this.init();const e=this.map.get(i);return
e?e[0]:null}getAll(i){return this.init(),this.map.get(i)||null}keys(){return
this.init(),Array.from(this.map.keys())}append(i,e){return
this.clone({param:i,value:e,op:"a"})}appendAll(i){const e=[];return
Object.keys(i).forEach(n=>{const
s=i[n];Array.isArray(s)?s.forEach(r=>{e.push({param:n,value:r,op:"a"})}):e.push({param:n,value:s,op:"a"})}),t
his.clone(e)}set(i,e){return
this.clone({param:i,value:e,op:"s"})}delete(i,e){return
this.clone({param:i,value:e,op:"d"})}toString(){return
this.init(),this.keys().map(i=>{const e=this.encoder.encodeKey(i);return
this.map.get(i).map(n=>e+"="+this.encoder.encodeValue(n)).join("&")}).filter(i=>""!==i).join("&")}clone(i){const
e=new ye({encoder:this.encoder});return
e.cloneFrom=this.cloneFrom||this,e.updates=(this.updates||[]).concat(i),e}init(){null===this.map&&(this.map=new
Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(i=>this.map.set(i,this.cloneFrom.map.get(i))),this.updates.forEach(i=>{switch(i.op){case"a":case"s":const
e=("a"===i.op?this.map.get(i.param):void
0)||[];e.push(Wy(i.value)),this.map.set(i.param,e);break;case"d":if(void
0===i.value){this.map.delete(i.param);break}{let n=this.map.get(i.param)||[];const
s=n.indexOf(Wy(i.value));-1!==s&&n.splice(s,1),n.length>0?this.map.set(i.param,n):this.map.delete(i.param)}}}),this.cloneFrom=this.upda
tes=null)}}class CO{constructor(){this.map=new Map}set(i,e){return
this.map.set(i,e),this}get(i){return
this.map.has(i)||this.map.set(i,i.defaultValue()),this.map.get(i)}delete(i){return
this.map.delete(i),this}has(i){return this.map.has(i)}keys(){return
this.map.keys()}}function Ky(t){return"undefined"!=typeof ArrayBuffer&&t
instanceof ArrayBuffer}function Qy(t){return"undefined"!=typeof Blob&&t
instanceof Blob}function Jy(t){return"undefined"!=typeof FormData&&t
instanceof FormData}class Xa{constructor(i,e,n,s){let
r;if(this.url=e,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=i.toUpperCase(),function
yO(t){switch(t){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||s?(this.body=void
0!==n?n:null,r=s):r=n,r&&(this.reportProgress=!!r.reportProgress,this.withCredentials=!!r.withCredentials,r.responseType&&(this.responseType=r.responseType),r.headers&&(this.headers=r.headers),r.con
text&&(this.context=r.context),r.params&&(this.params=r.params)),this.headers||(this.headers=new
Cs),this.context||(this.context=new CO),this.params){const
o=this.params.toString();if(0===o.length)this.urlWithParams=e;else{const
u=e.indexOf("?");this.urlWithParams=e+(-1===u?"?":u<e.length-1?"&":"")+o}}else
this.params=new ye,this.urlWithParams=e}serializeBody(){return
null===this.body?null:Ky(this.body)||Qy(this.body)||Jy(this.body)||function
wO(t){return"undefined"!=typeof URLSearchParams&&t instanceof
URLSearchParams}(this.body)||"string"==typeof this.body?this.body:this.body
instanceof ye?this.body.toString():"object"==typeof
this.body||"boolean"==typeof
this.body||Array.isArray(this.body)?JSON.stringify(this.body):this.body.toString()}detectContentTypeHeader(){return
null===this.body||Jy(this.body)?null:Qy(this.body)?this.body.type||null:Ky(this.body)?null:"string"==typeof
this.body?"text/plain":this.body instanceof
ye?"application/x-www-form-urlencoded;charset=UTF-8":"object"==
typeof this.body||"number"==typeof this.body||"boolean"==typeof
this.body?"application/json":null}clone(i={}){var e;const
n=i.method||this.method,s=i.url||this.url,r=i.responseType||this.responseType,o=void
0!==i.body?i.body:this.body,u=void
0!==i.withCredentials?i.withCredentials:this.withCredentials,h=void
0!==i.reportProgress?i.reportProgress:this.reportProgress;let
b=i.headers||this.headers,y=i.params||this.params;const
w=null!==(e=i.context)&&void 0!==e?e:this.context;return void
0!==i.setHeaders&&(b=Object.keys(i.setHeaders).reduce((M,E)=>M.set(E,i.setHeaders[E]),b)),i.setParams&&(y=Object.keys(i.setParams).reduce((M,E)=>M.set(E,i.setParams[E]),y)),new
Xa(n,s,o,{params:y,headers:b,context:w,reportProgress:h,responseType:r,withCredentials:u})}}var
nn=(()=>((nn=nn||{})[nn.Sent=0]="Sent",nn[nn.UploadProgress=1]="UploadProgress",nn[nn.ResponseHeader=2]="ResponseHeader",nn[nn.DownloadProgress=3]="DownloadProgress",nn[nn.Response=4]="Response",nn[nn.User=5]="User",nn))();class
Nm{co
nstructor(i,e=200,n="OK"){this.headers=i.headers||new Cs,this.status=void
0!==i.status?i.status:e,this.statusText=i.statusText||n,this.url=i.url||null,this.ok=this.status>=200&&this.status<300}}class
Vm extends Nm{constructor(i={}){super(i),this.type=nn.ResponseHeader}clone(i={}){return
new Vm({headers:i.headers||this.headers,status:void
0!==i.status?i.status:this.status,statusText:i.statusText||this.statusText,url:i.url||this.url||void
0})}}class ou extends Nm{constructor(i={}){super(i),this.type=nn.Response,this.body=void
0!==i.body?i.body:null}clone(i={}){return new ou({body:void
0!==i.body?i.body:this.body,headers:i.headers||this.headers,status:void
0!==i.status?i.status:this.status,statusText:i.statusText||this.statusText,url:i.url||this.url||void
0})}}class Yy extends Nm{constructor(i){super(i,0,"Unknown
Error"),this.name="HttpErrorResponse",this.ok=!1,this.message=this.status>=200&&this.status<300?`Http
failure during parsing for ${i.url||"(unknown url)"}`:`Http failure respo
nse for ${i.url||"(unknown url)"}: ${i.status}
${i.statusText}`,this.error=i.error||null}}function
Bm(t,i){return{body:i,headers:t.headers,context:t.context,observe:t.observe,params:t.params,reportProgress:t.reportProgress,responseType:t.responseType,withCredentials:t.withCredentials}}let
Bi=(()=>{class t{constructor(e){this.handler=e}request(e,n,s={}){let r;if(e instanceof
Xa)r=e;else{let h,b;h=s.headers instanceof Cs?s.headers:new
Cs(s.headers),s.params&&(b=s.params instanceof ye?s.params:new
ye({fromObject:s.params})),r=new Xa(e,n,void
0!==s.body?s.body:null,{headers:h,context:s.context,params:b,reportProgress:s.reportProgress,responseType:s.responseType||"json",withCredentials:s.withCredentials})}const
o=oe(r).pipe(_r(h=>this.handler.handle(h)));if(e instanceof
Xa||"events"===s.observe)return o;const u=o.pipe(Us(h=>h instanceof
ou));switch(s.observe||"body"){case"body":switch(r.responseType){case"arraybuffer":return
u.pipe(et(h=>{if(null!==h.body&&!(h.body instanceof ArrayBuffer
))throw new Error("Response is not an ArrayBuffer.");return
h.body}));case"blob":return u.pipe(et(h=>{if(null!==h.body&&!(h.body
instanceof Blob))throw new Error("Response is not a Blob.");return
h.body}));case"text":return
u.pipe(et(h=>{if(null!==h.body&&"string"!=typeof h.body)throw new
Error("Response is not a string.");return h.body}));default:return
u.pipe(et(h=>h.body))}case"response":return u;default:throw new
Error(`Unreachable: unhandled observe type ${s.observe}}`)}}delete(e,n={}){return
this.request("DELETE",e,n)}get(e,n={}){return
this.request("GET",e,n)}head(e,n={}){return
this.request("HEAD",e,n)}jsonp(e,n){return
this.request("JSONP",e,{params:(new
ye).append(n,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(e,n={}){return
this.request("OPTIONS",e,n)}patch(e,n,s={}){return
this.request("PATCH",e,Bm(s,n))}post(e,n,s={}){return
this.request("POST",e,Bm(s,n))}put(e,n,s={}){return
this.request("PUT",e,Bm(s,n))}}return t.\u0275fac=function(e){return new(e||t
)(K(zy))},t.\u0275prov=X({token:t,factory:t.\u0275fac}),t})();class
Zy{constructor(i,e){this.next=i,this.interceptor=e}handle(i){return
this.interceptor.intercept(i,this.next)}}const Xy=new
be("HTTP_INTERCEPTORS");let TO=(()=>{class t{intercept(e,n){return
n.handle(e)}}return t.\u0275fac=function(e){return
new(e||t)},t.\u0275prov=X({token:t,factory:t.\u0275fac}),t})();const
SO=/^\)\]\}',?\n/;let e0=(()=>{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 Je(n=>{const
s=this.xhrFactory.build();if(s.open(e.method,e.urlWithParams),e.withCredentials&&(s.withCredentials=!0),e.headers.forEach((E,L)=>s.setRequestHeader(E,L.join(","))),e.headers.has("Accept")||s.setRequestHeader("Accept","application/json,
text/plain, */*"),!e.headers.has("Content-Type")){const
E=e.detectContentTypeHeader();null!==E&&s.setRequestHeader("Content-Type",E)}if(e.responseType){const
E
=e.responseType.toLowerCase();s.responseType="json"!==E?E:"text"}const
r=e.serializeBody();let o=null;const u=()=>{if(null!==o)return o;const
E=s.statusText||"OK",L=new Cs(s.getAllResponseHeaders()),O=function
xO(t){return"responseURL"in
t&&t.responseURL?t.responseURL:/^X-Request-URL:/m.test(t.getAllResponseHeaders())?t.getResponseHeader("X-Request-URL"):null}(s)||e.url;return
o=new
Vm({headers:L,status:s.status,statusText:E,url:O}),o},h=()=>{let{headers:E,status:L,statusText:O,url:N}=u(),G=null;204!==L&&(G=void
0===s.response?s.responseText:s.response),0===L&&(L=G?200:0);let
P=L>=200&&L<300;if("json"===e.responseType&&"string"==typeof
G){const
J=G;G=G.replace(SO,"");try{G=""!==G?JSON.parse(G):null}catch(se){G=J,P&&(P=!1,G={error:se,text:G})}}P?(n.next(new
ou({body:G,headers:E,status:L,statusText:O,url:N||void 0})),n.complete()):n.error(new
Yy({error:G,headers:E,status:L,statusText:O,url:N||void
0}))},b=E=>{const{url:L}=u(),O=new
Yy({error:E,status:s.status||0,statusText:s.statusTex
t||"Unknown Error",url:L||void 0});n.error(O)};let y=!1;const
w=E=>{y||(n.next(u()),y=!0);let
L={type:nn.DownloadProgress,loaded:E.loaded};E.lengthComputable&&(L.total=E.total),"text"===e.responseType&&!!s.responseText&&(L.partialText=s.responseText),n.next(L)},M=E=>{let
L={type:nn.UploadProgress,loaded:E.loaded};E.lengthComputable&&(L.total=E.total),n.next(L)};return
s.addEventListener("load",h),s.addEventListener("error",b),s.addEventListener("timeout",b),s.addEventListener("abort",b),e.reportProgress&&(s.addEventListener("progress",w),null!==r&&s.upload&&s.upload.addEventListener("progress",M)),s.send(r),n.next({type:nn.Sent}),()=>{s.removeEventListener("error",b),s.removeEventListener("abort",b),s.removeEventListener("load",h),s.removeEventListener("timeout",b),e.reportProgress&&(s.removeEventListener("progress",w),null!==r&&s.upload&&s.upload.removeEventListener("progress",M)),s.readyState!==s.DONE&&s.abort()}})}}return
t.\u0275fac=function(e){return new(e||t)(K(Ey))},t.\u0275p
rov=X({token:t,factory:t.\u0275fac}),t})();const Hm=new
be("XSRF_COOKIE_NAME"),qm=new be("XSRF_HEADER_NAME");class t0{}let
DO=(()=>{class
t{constructor(e,n,s){this.doc=e,this.platform=n,this.cookieName=s,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=yy(e,this.cookieName),this.lastCookieString=e),this.lastToken}}return
t.\u0275fac=function(e){return
new(e||t)(K(Xt),K(qc),K(Hm))},t.\u0275prov=X({token:t,factory:t.\u0275fac}),t})(),Gm=(()=>{class
t{constructor(e,n){this.tokenService=e,this.headerName=n}intercept(e,n){const
s=e.url.toLowerCase();if("GET"===e.method||"HEAD"===e.method||s.startsWith("http://")||s.startsWith("https://"))return
n.handle(e);const r=this.tokenService.getToken();return
null!==r&&!e.headers.has(this.headerName)&&(e=e.clone({headers:e.headers.set(this.headerName,r)})),n.handle(e)}}return
t.\u0275fac=f
unction(e){return
new(e||t)(K(t0),K(qm))},t.\u0275prov=X({token:t,factory:t.\u0275fac}),t})(),MO=(()=>{class
t{constructor(e,n){this.backend=e,this.injector=n,this.chain=null}handle(e){if(null===this.chain){const
n=this.injector.get(Xy,[]);this.chain=n.reduceRight((s,r)=>new
Zy(s,r),this.backend)}return this.chain.handle(e)}}return t.\u0275fac=function(e){return
new(e||t)(K(jy),K(En))},t.\u0275prov=X({token:t,factory:t.\u0275fac}),t})(),kO=(()=>{class
t{static disable(){return{ngModule:t,providers:[{provide:Gm,useClass:TO}]}}static
withOptions(e={}){return{ngModule:t,providers:[e.cookieName?{provide:Hm,useValue:e.cookieName}:[],e.headerName?{provide:qm,useValue:e.headerName}:[]]}}}return
t.\u0275fac=function(e){return
new(e||t)},t.\u0275mod=he({type:t}),t.\u0275inj=ue({providers:[Gm,{provide:Xy,useExisting:Gm,multi:!0},{provide:t0,useClass:DO},{provide:Hm,useValue:"XSRF-TOKEN"},{provide:qm,useValue:"X-XSRF-TOKEN"}]}),t})(),IO=(()=>{class
t{}return t.\u0275fac=function(e){return new(
e||t)},t.\u0275mod=he({type:t}),t.\u0275inj=ue({providers:[Bi,{provide:zy,useClass:MO},e0,{provide:jy,useExisting:e0}],imports:[[kO.withOptions({cookieName:"XSRF-TOKEN",headerName:"X-XSRF-TOKEN"})]]}),t})();function
is(t){return!!t&&(t instanceof Je||"function"==typeof
t.lift&&"function"==typeof t.subscribe)}function
n0(...t){if(1===t.length){const i=t[0];if(Nr(i))return
au(i,null);if(Ld(i)&&Object.getPrototypeOf(i)===Object.prototype){const
e=Object.keys(i);return au(e.map(n=>i[n]),e)}}if("function"==typeof
t[t.length-1]){const i=t.pop();return
au(t=1===t.length&&Nr(t[0])?t[0]:t,null).pipe(et(e=>i(...e)))}return
au(t,null)}function au(t,i){return new Je(e=>{const n=t.length;if(0===n)return void
e.complete();const s=new Array(n);let r=0,o=0;for(let u=0;u<n;u++){const h=Mn(t[u]);let
b=!1;e.add(h.subscribe({next:y=>{b||(b=!0,o++),s[u]=y},error:y=>e.error(y),complete:()=>{r++,(r===n||!b)&&(o===n&&e.next(i?i.reduce((y,w,M)=>(y[w]=s[M],y),{}):s),e.complete())}}))}})}function
el(...t){ret
urn function EO(){return ea(1)}()(oe(...t))}const Io=new Je(t=>t.complete());function
lu(t){return t?function RO(t){return new
Je(i=>t.schedule(()=>i.complete()))}(t):Io}function cu(t){return new Je(i=>{let
e;try{e=t()}catch(s){return void i.error(s)}return(e?Mn(e):lu()).subscribe(i)})}const
s0=(()=>{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 br(t){return
i=>0===t?lu():i.lift(new LO(t))}class
LO{constructor(i){if(this.total=i,this.total<0)throw new s0}call(i,e){return
e.subscribe(new OO(i,this.total))}}class OO extends
yt{constructor(i,e){super(i),this.total=e,this.count=0}_next(i){const
e=this.total,n=++this.count;n<=e&&(this.destination.next(i),n===e&&(this.destination.complete(),this.unsubscribe()))}}class
AO extends Et{constructor(i,e){super()}schedule(i,e=0){return this}}class uu extends
AO{constructor(i,e){super(i,e),this.scheduler=i,this.wor
k=e,this.pending=!1}schedule(i,e=0){if(this.closed)return this;this.state=i;const
n=this.id,s=this.scheduler;return
null!=n&&(this.id=this.recycleAsyncId(s,n,e)),this.pending=!0,this.delay=e,this.id=this.id||this.requestAsyncId(s,this.id,e),this}requestAsyncId(i,e,n=0){return
setInterval(i.flush.bind(i,this),n)}recycleAsyncId(i,e,n=0){if(null!==n&&this.delay===n&&!1===this.pending)return
e;clearInterval(e)}execute(i,e){if(this.closed)return new Error("executing a
cancelled action");this.pending=!1;const n=this._execute(i,e);if(n)return
n;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(i,e){let
s,n=!1;try{this.work(i)}catch(r){n=!0,s=!!r&&r||new Error(r)}if(n)return
this.unsubscribe(),s}_unsubscribe(){const
i=this.id,e=this.scheduler,n=e.actions,s=n.indexOf(this);this.work=null,this.state=null,this.pending=!1,this.scheduler=null,-1!==s&&n.splice(s,1),null!=i&&(this.id=this.recycleAsyncId(e,i,null)),this.delay=null}}let
r0=(()=>{cl
ass t{constructor(e,n=t.now){this.SchedulerAction=e,this.now=n}schedule(e,n=0,s){return
new this.SchedulerAction(this,e).schedule(s,n)}}return t.now=()=>Date.now(),t})();class
Hi extends
r0{constructor(i,e=r0.now){super(i,()=>Hi.delegate&&Hi.delegate!==this?Hi.delegate.now():e()),this.actions=[],this.active=!1,this.scheduled=void
0}schedule(i,e=0,n){return
Hi.delegate&&Hi.delegate!==this?Hi.delegate.schedule(i,e,n):super.schedule(i,e,n)}flush(i){const{actions:e}=this;if(this.active)return
void e.push(i);let
n;this.active=!0;do{if(n=i.execute(i.state,i.delay))break}while(i=e.shift());if(this.active=!1,n){for(;i=e.shift();)i.unsubscribe();throw
n}}}const NO=new class FO extends Hi{}(class PO extends
uu{constructor(i,e){super(i,e),this.scheduler=i,this.work=e}schedule(i,e=0){return
e>0?super.schedule(i,e):(this.delay=e,this.state=i,this.scheduler.flush(this),this)}execute(i,e){return
e>0||this.closed?super.execute(i,e):this._execute(i,e)}requestAsyncId(i,e,n=0){return
null!==n&&n>0||nu
ll===n&&this.delay>0?super.requestAsyncId(i,e,n):i.flush(this)}});function
tl(t,i){return new
Je(i?e=>i.schedule(VO,0,{error:t,subscriber:e}):e=>e.error(t))}function
VO({error:t,subscriber:i}){i.error(t)}class
Kn{constructor(i,e,n){this.kind=i,this.value=e,this.error=n,this.hasValue="N"===i}observe(i){switch(this.kind){case"N":return
i.next&&i.next(this.value);case"E":return
i.error&&i.error(this.error);case"C":return
i.complete&&i.complete()}}do(i,e,n){switch(this.kind){case"N":return
i&&i(this.value);case"E":return
e&&e(this.error);case"C":return n&&n()}}accept(i,e,n){return
i&&"function"==typeof
i.next?this.observe(i):this.do(i,e,n)}toObservable(){switch(this.kind){case"N":return
oe(this.value);case"E":return tl(this.error);case"C":return lu()}throw
new Error("unexpected notification kind value")}static createNext(i){return void
0!==i?new Kn("N",i):Kn.undefinedValueNotification}static createError(i){return
new Kn("E",void 0,i)}static createComplete(){return Kn.completeNotificatio
n}}Kn.completeNotification=new Kn("C"),Kn.undefinedValueNotification=new
Kn("N",void 0);class du extends
yt{constructor(i,e,n=0){super(i),this.scheduler=e,this.delay=n}static
dispatch(i){const{notification:e,destination:n}=i;e.observe(n),this.unsubscribe()}scheduleMessage(i){this.destination.add(this.scheduler.schedule(du.dispatch,this.delay,new
HO(i,this.destination)))}_next(i){this.scheduleMessage(Kn.createNext(i))}_error(i){this.scheduleMessage(Kn.createError(i)),this.unsubscribe()}_complete(){this.scheduleMessage(Kn.createComplete()),this.unsubscribe()}}class
HO{constructor(i,e){this.notification=i,this.destination=e}}class qO extends
ct{constructor(i=Number.POSITIVE_INFINITY,e=Number.POSITIVE_INFINITY,n){super(),this.scheduler=n,this._events=[],this._infiniteTimeWindow=!1,this._bufferSize=i<1?1:i,this._windowTime=e<1?1:e,e===Number.POSITIVE_INFINITY?(this._infiniteTimeWindow=!0,this.next=this.nextInfiniteTimeWindow):this.next=this.nextTimeWindow}nextInfiniteTimeWindow(i){if(!th
is.isStopped){const
e=this._events;e.push(i),e.length>this._bufferSize&&e.shift()}super.next(i)}nextTimeWindow(i){this.isStopped||(this._events.push(new
GO(this._getNow(),i)),this._trimBufferThenGetEvents()),super.next(i)}_subscribe(i){const
e=this._infiniteTimeWindow,n=e?this._events:this._trimBufferThenGetEvents(),s=this.scheduler,r=n.length;let
o;if(this.closed)throw new
nr;if(this.isStopped||this.hasError?o=Et.EMPTY:(this.observers.push(i),o=new
Eg(this,i)),s&&i.add(i=new du(i,s)),e)for(let
u=0;u<r&&!i.closed;u++)i.next(n[u]);else for(let
u=0;u<r&&!i.closed;u++)i.next(n[u].value);return
this.hasError?i.error(this.thrownError):this.isStopped&&i.complete(),o}_getNow(){return(this.scheduler||NO).now()}_trimBufferThenGetEvents(){const
i=this._getNow(),e=this._bufferSize,n=this._windowTime,s=this._events,r=s.length;let
o=0;for(;o<r&&!(i-s[o].time<n);)o++;return
r>e&&(o=Math.max(o,r-e)),o>0&&s.splice(0,o),s}}class
GO{constructor(i,e){this.time=i,this.value=e}}function Um(t,i,e){let n;
return n=t&&"object"==typeof
t?t:{bufferSize:t,windowTime:i,refCount:!1,scheduler:e},s=>s.lift(function
UO({bufferSize:t=Number.POSITIVE_INFINITY,windowTime:i=Number.POSITIVE_INFINITY,refCount:e,scheduler:n}){let
s,o,r=0,u=!1,h=!1;return function(y){let w;r++,!s||u?(u=!1,s=new
qO(t,i,n),w=s.subscribe(this),o=y.subscribe({next(M){s.next(M)},error(M){u=!0,s.error(M)},complete(){h=!0,o=void
0,s.complete()}}),h&&(o=void
0)):w=s.subscribe(this),this.add(()=>{r--,w.unsubscribe(),w=void
0,o&&!h&&e&&0===r&&(o.unsubscribe(),o=void 0,s=void
0)})}}(n))}function qi(t,i){return"function"==typeof
i?e=>e.pipe(qi((n,s)=>Mn(t(n,s)).pipe(et((r,o)=>i(n,r,s,o))))):e=>e.lift(new
zO(t))}class zO{constructor(i){this.project=i}call(i,e){return e.subscribe(new
jO(i,this.project))}}class jO extends
Zo{constructor(i,e){super(i),this.project=e,this.index=0}_next(i){let e;const
n=this.index++;try{e=this.project(i,n)}catch(s){return void
this.destination.error(s)}this._innerSub(e)}_innerSub(i){const e=this.inner
Subscription;e&&e.unsubscribe();const n=new
Yo(this),s=this.destination;s.add(n),this.innerSubscription=Xo(i,n),this.innerSubscription!==n&&s.add(this.innerSubscription)}_complete(){const{innerSubscription:i}=this;(!i||i.closed)&&super._complete(),this.unsubscribe()}_unsubscribe(){this.innerSubscription=void
0}notifyComplete(){this.innerSubscription=void
0,this.isStopped&&super._complete()}notifyNext(i){this.destination.next(i)}}class
nl{}let o0=(()=>{class t extends nl{getTranslation(e){return oe({})}}return
t.\u0275fac=function(){let i;return
function(n){return(i||(i=on(t)))(n||t)}}(),t.\u0275prov=X({token:t,factory:t.\u0275fac}),t})();class
zm{}let a0=(()=>{class t{handle(e){return e.key}}return t.\u0275fac=function(e){return
new(e||t)},t.\u0275prov=X({token:t,factory:t.\u0275fac}),t})();function
il(t,i){if(t===i)return!0;if(null===t||null===i)return!1;if(t!=t&&i!=i)return!0;let
s,r,o,e=typeof t;if(e==typeof
i&&"object"==e){if(!Array.isArray(t)){if(Array.isArray(i))return!1;for(r
in o=Object.create(null),t){if(!il(t[r],i[r]))return!1;o[r]=!0}for(r in i)if(!(r in
o)&&void
0!==i[r])return!1;return!0}if(!Array.isArray(i))return!1;if((s=t.length)==i.length){for(r=0;r<s;r++)if(!il(t[r],i[r]))return!1;return!0}}return!1}function
ri(t){return null!=t}function jm(t){return t&&"object"==typeof
t&&!Array.isArray(t)}function l0(t,i){let e=Object.assign({},t);return
jm(t)&&jm(i)&&Object.keys(i).forEach(n=>{jm(i[n])?n in
t?e[n]=l0(t[n],i[n]):Object.assign(e,{[n]:i[n]}):Object.assign(e,{[n]:i[n]})}),e}class
pu{}let c0=(()=>{class t extends
pu{constructor(){super(...arguments),this.templateMatcher=/{{\s?([^{}\s]*)\s?}}/g}interpolate(e,n){let
s;return s="string"==typeof
e?this.interpolateString(e,n):"function"==typeof
e?this.interpolateFunction(e,n):e,s}getValue(e,n){let s="string"==typeof
n?n.split("."):[n];n="";do{n+=s.shift(),!ri(e)||!ri(e[n])||"object"!=typeof
e[n]&&s.length?s.length?n+=".":e=void
0:(e=e[n],n="")}while(s.length);return e}interpolateFunction(e,n){return
e(n)}interpolateString(e,n){return n?e.replace(this.templateMatcher,(s,r)=>{let
o=this.getValue(n,r);return ri(o)?o:s}):e}}return t.\u0275fac=function(){let i;return
function(n){return(i||(i=on(t)))(n||t)}}(),t.\u0275prov=X({token:t,factory:t.\u0275fac}),t})();class
hu{}let u0=(()=>{class t extends hu{compile(e,n){return
e}compileTranslations(e,n){return e}}return t.\u0275fac=function(){let i;return
function(n){return(i||(i=on(t)))(n||t)}}(),t.\u0275prov=X({token:t,factory:t.\u0275fac}),t})();class
d0{constructor(){this.currentLang=this.defaultLang,this.translations={},this.langs=[],this.onTranslationChange=new
H,this.onLangChange=new H,this.onDefaultLangChange=new H}}const $m=new
be("USE_STORE"),Wm=new be("USE_DEFAULT_LANG"),Km=new
be("DEFAULT_LANGUAGE"),Qm=new be("USE_EXTEND");let Oe=(()=>{class
t{constructor(e,n,s,r,o,u=!0,h=!1,b=!1,y){this.store=e,this.currentLoader=n,this.compiler=s,this.parser=r,this.missingTranslationHandler=o,this.useDefaultLang=u,this.isolate=h,this.extend
=b,this.pending=!1,this._onTranslationChange=new H,this._onLangChange=new
H,this._onDefaultLangChange=new
H,this._langs=[],this._translations={},this._translationRequests={},y&&this.setDefaultLang(y)}get
onTranslationChange(){return
this.isolate?this._onTranslationChange:this.store.onTranslationChange}get
onLangChange(){return this.isolate?this._onLangChange:this.store.onLangChange}get
onDefaultLangChange(){return
this.isolate?this._onDefaultLangChange:this.store.onDefaultLangChange}get
defaultLang(){return this.isolate?this._defaultLang:this.store.defaultLang}set
defaultLang(e){this.isolate?this._defaultLang=e:this.store.defaultLang=e}get
currentLang(){return this.isolate?this._currentLang:this.store.currentLang}set
currentLang(e){this.isolate?this._currentLang=e:this.store.currentLang=e}get
langs(){return this.isolate?this._langs:this.store.langs}set
langs(e){this.isolate?this._langs=e:this.store.langs=e}get translations(){return
this.isolate?this._translations:this.store.translat
ions}set
translations(e){this.isolate?this._translations=e:this.store.translations=e}setDefaultLang(e){if(e===this.defaultLang)return;let
n=this.retrieveTranslations(e);void
0!==n?(null==this.defaultLang&&(this.defaultLang=e),n.pipe(br(1)).subscribe(s=>{this.changeDefaultLang(e)})):this.changeDefaultLang(e)}getDefaultLang(){return
this.defaultLang}use(e){if(e===this.currentLang)return oe(this.translations[e]);let
n=this.retrieveTranslations(e);return void
0!==n?(this.currentLang||(this.currentLang=e),n.pipe(br(1)).subscribe(s=>{this.changeLang(e)}),n):(this.changeLang(e),oe(this.translations[e]))}retrieveTranslations(e){let
n;return(void
0===this.translations[e]||this.extend)&&(this._translationRequests[e]=this._translationRequests[e]||this.getTranslation(e),n=this._translationRequests[e]),n}getTranslation(e){this.pending=!0;const
n=this.currentLoader.getTranslation(e).pipe(Um(1),br(1));return
this.loadingTranslations=n.pipe(et(s=>this.compiler.compileTranslations(s,e)),Um(1),br(1))
,this.loadingTranslations.subscribe({next:s=>{this.translations[e]=this.extend&&this.translations[e]?Object.assign(Object.assign({},s),this.translations[e]):s,this.updateLangs(),this.pending=!1},error:s=>{this.pending=!1}}),n}setTranslation(e,n,s=!1){n=this.compiler.compileTranslations(n,e),this.translations[e]=(s||this.extend)&&this.translations[e]?l0(this.translations[e],n):n,this.updateLangs(),this.onTranslationChange.emit({lang:e,translations:this.translations[e]})}getLangs(){return
this.langs}addLangs(e){e.forEach(n=>{-1===this.langs.indexOf(n)&&this.langs.push(n)})}updateLangs(){this.addLangs(Object.keys(this.translations))}getParsedResult(e,n,s){let
r;if(n instanceof Array){let o={},u=!1;for(let h of
n)o[h]=this.getParsedResult(e,h,s),is(o[h])&&(u=!0);return
u?n0(n.map(b=>is(o[b])?o[b]:oe(o[b]))).pipe(et(b=>{let y={};return
b.forEach((w,M)=>{y[n[M]]=w}),y})):o}if(e&&(r=this.parser.interpolate(this.parser.getValue(e,n),s)),void
0===r&&null!=this.defaultLang&&this.defaultLang!=
=this.currentLang&&this.useDefaultLang&&(r=this.parser.interpolate(this.parser.getValue(this.translations[this.defaultLang],n),s)),void
0===r){let o={key:n,translateService:this};void
0!==s&&(o.interpolateParams=s),r=this.missingTranslationHandler.handle(o)}return
void 0!==r?r:n}get(e,n){if(!ri(e)||!e.length)throw new Error('Parameter
"key" required');if(this.pending)return
this.loadingTranslations.pipe(_r(s=>is(s=this.getParsedResult(s,e,n))?s:oe(s)));{let
s=this.getParsedResult(this.translations[this.currentLang],e,n);return
is(s)?s:oe(s)}}getStreamOnTranslationChange(e,n){if(!ri(e)||!e.length)throw new
Error('Parameter "key" required');return
el(cu(()=>this.get(e,n)),this.onTranslationChange.pipe(qi(s=>{const
r=this.getParsedResult(s.translations,e,n);return"function"==typeof
r.subscribe?r:oe(r)})))}stream(e,n){if(!ri(e)||!e.length)throw new Error('Parameter
"key" required');return
el(cu(()=>this.get(e,n)),this.onLangChange.pipe(qi(s=>{const
r=this.getParsedResult(s.translations,
e,n);return is(r)?r:oe(r)})))}instant(e,n){if(!ri(e)||!e.length)throw new
Error('Parameter "key" required');let
s=this.getParsedResult(this.translations[this.currentLang],e,n);if(is(s)){if(e instanceof
Array){let r={};return e.forEach((o,u)=>{r[e[u]]=e[u]}),r}return e}return
s}set(e,n,s=this.currentLang){this.translations[s][e]=this.compiler.compile(n,s),this.updateLangs(),this.onTranslationChange.emit({lang:s,translations:this.translations[s]})}changeLang(e){this.currentLang=e,this.onLangChange.emit({lang:e,translations:this.translations[e]}),null==this.defaultLang&&this.changeDefaultLang(e)}changeDefaultLang(e){this.defaultLang=e,this.onDefaultLangChange.emit({lang:e,translations:this.translations[e]})}reloadLang(e){return
this.resetLang(e),this.getTranslation(e)}resetLang(e){this._translationRequests[e]=void
0,this.translations[e]=void 0}getBrowserLang(){if("undefined"==typeof
window||void 0===window.navigator)return;let
e=window.navigator.languages?window.navigator.languages[0]:
null;return
e=e||window.navigator.language||window.navigator.browserLanguage||window.navigator.userLanguage,void
0!==e?(-1!==e.indexOf("-")&&(e=e.split("-")[0]),-1!==e.indexOf("_")&&(e=e.split("_")[0]),e):void
0}getBrowserCultureLang(){if("undefined"==typeof window||void
0===window.navigator)return;let
e=window.navigator.languages?window.navigator.languages[0]:null;return
e=e||window.navigator.language||window.navigator.browserLanguage||window.navigator.userLanguage,e}}return
t.\u0275fac=function(e){return
new(e||t)(K(d0),K(nl),K(hu),K(pu),K(zm),K(Wm),K($m),K(Qm),K(Km))},t.\u0275prov=X({token:t,factory:t.\u0275fac}),t})(),mu=(()=>{class
t{constructor(e,n,s){this.translateService=e,this.element=n,this._ref=s,this.onTranslationChangeSub||(this.onTranslationChangeSub=this.translateService.onTranslationChange.subscribe(r=>{r.lang===this.translateService.currentLang&&this.checkNodes(!0,r.translations)})),this.onLangChangeSub||(this.onLangChangeSub=this.translateService.onLangChange.subsc
ribe(r=>{this.checkNodes(!0,r.translations)})),this.onDefaultLangChangeSub||(this.onDefaultLangChangeSub=this.translateService.onDefaultLangChange.subscribe(r=>{this.checkNodes(!0)}))}set
translate(e){e&&(this.key=e,this.checkNodes())}set
translateParams(e){il(this.currentParams,e)||(this.currentParams=e,this.checkNodes(!0))}ngAfterViewChecked(){this.checkNodes()}checkNodes(e=!1,n){let
s=this.element.nativeElement.childNodes;s.length||(this.setContent(this.element.nativeElement,this.key),s=this.element.nativeElement.childNodes);for(let
r=0;r<s.length;++r){let o=s[r];if(3===o.nodeType){let
u;if(e&&(o.lastKey=null),ri(o.lookupKey))u=o.lookupKey;else
if(this.key)u=this.key;else{let
h=this.getContent(o),b=h.trim();b.length&&(o.lookupKey=b,h!==o.currentValue?(u=b,o.originalContent=h||o.originalContent):o.originalContent?u=o.originalContent.trim():h!==o.currentValue&&(u=b,o.originalContent=h||o.originalContent))}this.updateValue(u,o,n)}}}updateValue(e,n,s){if(e){if(n.lastKey===e&&this.las
tParams===this.currentParams)return;this.lastParams=this.currentParams;let
r=o=>{o!==e&&(n.lastKey=e),n.originalContent||(n.originalContent=this.getContent(n)),n.currentValue=ri(o)?o:n.originalContent||e,this.setContent(n,this.key?n.currentValue:n.originalContent.replace(e,n.currentValue)),this._ref.markForCheck()};if(ri(s)){let
o=this.translateService.getParsedResult(s,e,this.currentParams);is(o)?o.subscribe({next:r}):r(o)}else
this.translateService.get(e,this.currentParams).subscribe(r)}}getContent(e){return
ri(e.textContent)?e.textContent:e.data}setContent(e,n){ri(e.textContent)?e.textContent=n:e.data=n}ngOnDestroy(){this.onLangChangeSub&&this.onLangChangeSub.unsubscribe(),this.onDefaultLangChangeSub&&this.onDefaultLangChangeSub.unsubscribe(),this.onTranslationChangeSub&&this.onTranslationChangeSub.unsubscribe()}}return
t.\u0275fac=function(e){return
new(e||t)(D(Oe),D(De),D(rt))},t.\u0275dir=le({type:t,selectors:[["","translate",""],["","ngx-translate",""]],inputs:{translate:"tra
nslate",translateParams:"translateParams"}}),t})(),ce=(()=>{class
t{constructor(e,n){this.translate=e,this._ref=n,this.value="",this.lastKey=null,this.lastParams=[]}updateValue(e,n,s){let
r=o=>{this.value=void 0!==o?o:e,this.lastKey=e,this._ref.markForCheck()};if(s){let
o=this.translate.getParsedResult(s,e,n);is(o.subscribe)?o.subscribe(r):r(o)}this.translate.get(e,n).subscribe(r)}transform(e,...n){if(!e||!e.length)return
e;if(il(e,this.lastKey)&&il(n,this.lastParams))return this.value;let
s;if(ri(n[0])&&n.length)if("string"==typeof
n[0]&&n[0].length){let
r=n[0].replace(/(\')?([a-zA-Z0-9_]+)(\')?(\s)?:/g,'"$2":').replace(/:(\s)?(\')(.*?)(\')/g,':"$3"');try{s=JSON.parse(r)}catch(o){throw
new SyntaxError(`Wrong parameter in TranslatePipe. Expected a valid Object, received:
${n[0]}`)}}else"object"==typeof
n[0]&&!Array.isArray(n[0])&&(s=n[0]);return
this.lastKey=e,this.lastParams=n,this.updateValue(e,s),this._dispose(),this.onTranslationChange||(this.onTranslationChange=this.translate.o
nTranslationChange.subscribe(r=>{this.lastKey&&r.lang===this.translate.currentLang&&(this.lastKey=null,this.updateValue(e,s,r.translations))})),this.onLangChange||(this.onLangChange=this.translate.onLangChange.subscribe(r=>{this.lastKey&&(this.lastKey=null,this.updateValue(e,s,r.translations))})),this.onDefaultLangChange||(this.onDefaultLangChange=this.translate.onDefaultLangChange.subscribe(()=>{this.lastKey&&(this.lastKey=null,this.updateValue(e,s))})),this.value}_dispose(){void
0!==this.onTranslationChange&&(this.onTranslationChange.unsubscribe(),this.onTranslationChange=void
0),void
0!==this.onLangChange&&(this.onLangChange.unsubscribe(),this.onLangChange=void
0),void
0!==this.onDefaultLangChange&&(this.onDefaultLangChange.unsubscribe(),this.onDefaultLangChange=void
0)}ngOnDestroy(){this._dispose()}}return t.\u0275fac=function(e){return
new(e||t)(D(Oe,16),D(rt,16))},t.\u0275pipe=An({name:"translate",type:t,pure:!1}),t.\u0275prov=X({token:t,factory:t.\u0275fac}),t})(),$O=(()=>{cl
ass t{static
forRoot(e={}){return{ngModule:t,providers:[e.loader||{provide:nl,useClass:o0},e.compiler||{provide:hu,useClass:u0},e.parser||{provide:pu,useClass:c0},e.missingTranslationHandler||{provide:zm,useClass:a0},d0,{provide:$m,useValue:e.isolate},{provide:Wm,useValue:e.useDefaultLang},{provide:Qm,useValue:e.extend},{provide:Km,useValue:e.defaultLanguage},Oe]}}static
forChild(e={}){return{ngModule:t,providers:[e.loader||{provide:nl,useClass:o0},e.compiler||{provide:hu,useClass:u0},e.parser||{provide:pu,useClass:c0},e.missingTranslationHandler||{provide:zm,useClass:a0},{provide:$m,useValue:e.isolate},{provide:Wm,useValue:e.useDefaultLang},{provide:Qm,useValue:e.extend},{provide:Km,useValue:e.defaultLanguage},Oe]}}}return
t.\u0275fac=function(e){return
new(e||t)},t.\u0275mod=he({type:t}),t.\u0275inj=ue({}),t})();class
WO{constructor(i,e="/assets/i18n/",n=".json"){this.http=i,this.prefix=e,this.suffix=n}getTranslation(i){return
this.http.get(`${this.prefix}${i}${this.suffix}`)}}let
p0=(()=>{class
t{constructor(e,n){this._renderer=e,this._elementRef=n,this.onChange=s=>{},this.onTouched=()=>{}}setProperty(e,n){this._renderer.setProperty(this._elementRef.nativeElement,e,n)}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)(D(gn),D(De))},t.\u0275dir=le({type:t}),t})(),vr=(()=>{class t extends
p0{}return t.\u0275fac=function(){let i;return
function(n){return(i||(i=on(t)))(n||t)}}(),t.\u0275dir=le({type:t,features:[ut]}),t})();const
dn=new
be("NgValueAccessor"),QO={provide:dn,useExisting:je(()=>Ye),multi:!0},YO=new
be("CompositionEventMode");let Ye=(()=>{class t extends
p0{constructor(e,n,s){super(e,n),this._compositionMode=s,this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function
JO(){const t=ns()?ns().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)(D(gn),D(De),D(YO,8))},t.\u0275dir=le({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,n){1&e&&C("input",function(r){return
n._handleInput(r.target.value)})("blur",function(){return
n.onTouched()})("compositionstart",function(){return
n._compositionStart()})("compositionend",function(r){return
n._compositionEnd(r.target.value)})},features:[Pe([QO]),ut]}),t})();function zs(t){return
null==t||0===t.length}const Ln=new be("NgValidators"),js=new
be("NgAsyncValidators");function
_0(t){return zs(t.value)?{required:!0}:null}function fu(t){return null}function
T0(t){return null!=t}function S0(t){const i=Ra(t)?Mn(t):t;return Dh(i),i}function
x0(t){let i={};return
t.forEach(e=>{i=null!=e?Object.assign(Object.assign({},i),e):i}),0===Object.keys(i).length?null:i}function
D0(t,i){return i.map(e=>e(t))}function M0(t){return t.map(i=>function
XO(t){return!t.validate}(i)?i:e=>i.validate(e))}function Jm(t){return null!=t?function
k0(t){if(!t)return null;const i=t.filter(T0);return 0==i.length?null:function(e){return
x0(D0(e,i))}}(M0(t)):null}function Ym(t){return null!=t?function I0(t){if(!t)return
null;const i=t.filter(T0);return 0==i.length?null:function(e){return
n0(D0(e,i).map(S0)).pipe(et(x0))}}(M0(t)):null}function E0(t,i){return
null===t?[i]:Array.isArray(t)?[...t,i]:[t,i]}function Zm(t){return
t?Array.isArray(t)?t:[t]:[]}function gu(t,i){return
Array.isArray(t)?t.includes(i):t===i}function O0(t,i){const e=Zm(i);return
Zm(t).forEach(s=>{gu(e,s)||e.push(s)}),e}f
unction A0(t,i){return Zm(i).filter(e=>!gu(t,e))}class
P0{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.valueChang
es:null}get path(){return
null}_setValidators(i){this._rawValidators=i||[],this._composedValidatorFn=Jm(this._rawValidators)}_setAsyncValidators(i){this._rawAsyncValidators=i||[],this._composedAsyncValidatorFn=Ym(this._rawAsyncValidators)}get
validator(){return this._composedValidatorFn||null}get asyncValidator(){return
this._composedAsyncValidatorFn||null}_registerOnDestroy(i){this._onDestroyCallbacks.push(i)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(i=>i()),this._onDestroyCallbacks=[]}reset(i){this.control&&this.control.reset(i)}hasError(i,e){return!!this.control&&this.control.hasError(i,e)}getError(i,e){return
this.control?this.control.getError(i,e):null}}class ss extends
P0{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}class
Un extends P0{get formDirective(){return null}get path(){return null}}class
F0{constructor(i){this._cd=i}is(i){var
e,n,s;return"submitted"===i?!!(null===(e=this._cd)||void 0===e?void 0:e.submit
ted):!!(null===(s=null===(n=this._cd)||void 0===n?void 0:n.control)||void 0===s?void
0:s[i])}}let Te=(()=>{class t extends F0{constructor(e){super(e)}}return
t.\u0275fac=function(e){return
new(e||t)(D(ss,2))},t.\u0275dir=le({type:t,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(e,n){2&e&&si("ng-untouched",n.is("untouched"))("ng-touched",n.is("touched"))("ng-pristine",n.is("pristine"))("ng-dirty",n.is("dirty"))("ng-valid",n.is("valid"))("ng-invalid",n.is("invalid"))("ng-pending",n.is("pending"))},features:[ut]}),t})(),Ue=(()=>{class
t extends F0{constructor(e){super(e)}}return t.\u0275fac=function(e){return
new(e||t)(D(Un,10))},t.\u0275dir=le({type:t,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(e,n){2&e&&si("ng-untouched",n.is("untouched"))("ng-touched",n.is("touched"))("ng-pristine",n.is
("pristine"))("ng-dirty",n.is("dirty"))("ng-valid",n.is("valid"))("ng-invalid",n.is("invalid"))("ng-pending",n.is("pending"))("ng-submitted",n.is("submitted"))},features:[ut]}),t})();function
sl(t,i){tf(t,i),i.valueAccessor.writeValue(t.value),function
aA(t,i){i.valueAccessor.registerOnChange(e=>{t._pendingValue=e,t._pendingChange=!0,t._pendingDirty=!0,"change"===t.updateOn&&V0(t,i)})}(t,i),function
cA(t,i){const
e=(n,s)=>{i.valueAccessor.writeValue(n),s&&i.viewToModelUpdate(n)};t.registerOnChange(e),i._registerOnDestroy(()=>{t._unregisterOnChange(e)})}(t,i),function
lA(t,i){i.valueAccessor.registerOnTouched(()=>{t._pendingTouched=!0,"blur"===t.updateOn&&t._pendingChange&&V0(t,i),"submit"!==t.updateOn&&t.markAsTouched()})}(t,i),function
oA(t,i){if(i.valueAccessor.setDisabledState){const
e=n=>{i.valueAccessor.setDisabledState(n)};t.registerOnDisabledChange(e),i._registerOnDestroy(()=>{t._unregisterOnDisabledChange(e)})}}(t,i)}function
Cu(t,i){t.forEach(e=>{e.registerOnValidatorChange
&&e.registerOnValidatorChange(i)})}function tf(t,i){const e=function R0(t){return
t._rawValidators}(t);null!==i.validator?t.setValidators(E0(e,i.validator)):"function"==typeof
e&&t.setValidators([e]);const n=function L0(t){return
t._rawAsyncValidators}(t);null!==i.asyncValidator?t.setAsyncValidators(E0(n,i.asyncValidator)):"function"==typeof
n&&t.setAsyncValidators([n]);const
s=()=>t.updateValueAndValidity();Cu(i._rawValidators,s),Cu(i._rawAsyncValidators,s)}function
V0(t,i){t._pendingDirty&&t.markAsDirty(),t.setValue(t._pendingValue,{emitModelToViewChange:!1}),i.viewToModelUpdate(t._pendingValue),t._pendingChange=!1}function
rf(t,i){const e=t.indexOf(i);e>-1&&t.splice(e,1)}const
rl="VALID",wu="INVALID",Eo="PENDING",ol="DISABLED";function
af(t){return(Tu(t)?t.validators:t)||null}function G0(t){return
Array.isArray(t)?Jm(t):t||null}function
lf(t,i){return(Tu(i)?i.asyncValidators:t)||null}function U0(t){return
Array.isArray(t)?Ym(t):t||null}function Tu(t){return null!=t&&!Array.isArra
y(t)&&"object"==typeof t}const cf=t=>t instanceof df;function
j0(t){return(t=>t instanceof K0)(t)?t.value:t.getRawValue()}function $0(t,i){const
e=cf(t),n=t.controls;if(!(e?Object.keys(n):n).length)throw new
re(1e3,"");if(!n[i])throw new re(1001,"")}function
W0(t,i){cf(t),t._forEachChild((n,s)=>{if(void 0===i[s])throw new
re(1002,"")})}class
uf{constructor(i,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=i,this._rawAsyncValidators=e,this._composedValidatorFn=G0(this._rawValidators),this._composedAsyncValidatorFn=U0(this._rawAsyncValidators)}get
validator(){return this._composedValidatorFn}set
validator(i){this._rawValidators=this._composedValidatorFn=i}get asyncValidator(){return
this._composedAsyncValidatorFn}set
asyncValidator(i){this._rawAsyncValidators=this._composedAsyncValidatorFn=i}get
parent(){return this._par
ent}get valid(){return this.status===rl}get invalid(){return this.status===wu}get
pending(){return this.status==Eo}get disabled(){return this.status===ol}get
enabled(){return this.status!==ol}get dirty(){return!this.pristine}get
untouched(){return!this.touched}get updateOn(){return
this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(i){this._rawValidators=i,this._composedValidatorFn=G0(i)}setAsyncValidators(i){this._rawAsyncValidators=i,this._composedAsyncValidatorFn=U0(i)}addValidators(i){this.setValidators(O0(i,this._rawValidators))}addAsyncValidators(i){this.setAsyncValidators(O0(i,this._rawAsyncValidators))}removeValidators(i){this.setValidators(A0(i,this._rawValidators))}removeAsyncValidators(i){this.setAsyncValidators(A0(i,this._rawAsyncValidators))}hasValidator(i){return
gu(this._rawValidators,i)}hasAsyncValidator(i){return
gu(this._rawAsyncValidators,i)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}mar
kAsTouched(i={}){this.touched=!0,this._parent&&!i.onlySelf&&this._parent.markAsTouched(i)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild(i=>i.markAllAsTouched())}markAsUntouched(i={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild(e=>{e.markAsUntouched({onlySelf:!0})}),this._parent&&!i.onlySelf&&this._parent._updateTouched(i)}markAsDirty(i={}){this.pristine=!1,this._parent&&!i.onlySelf&&this._parent.markAsDirty(i)}markAsPristine(i={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(e=>{e.markAsPristine({onlySelf:!0})}),this._parent&&!i.onlySelf&&this._parent._updatePristine(i)}markAsPending(i={}){this.status=Eo,!1!==i.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!i.onlySelf&&this._parent.markAsPending(i)}disable(i={}){const
e=this._parentMarkedDirty(i.onlySelf);this.status=ol,this.errors=null,this._forEachChild(n=>{n.disable(Object.assign(Object.assign({},i),{onlySelf:!0}))}),this._updateValue(),!1!==i.emitEvent&&(this.
valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(Object.assign(Object.assign({},i),{skipPristineCheck:e})),this._onDisabledChange.forEach(n=>n(!0))}enable(i={}){const
e=this._parentMarkedDirty(i.onlySelf);this.status=rl,this._forEachChild(n=>{n.enable(Object.assign(Object.assign({},i),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:i.emitEvent}),this._updateAncestors(Object.assign(Object.assign({},i),{skipPristineCheck:e})),this._onDisabledChange.forEach(n=>n(!1))}_updateAncestors(i){this._parent&&!i.onlySelf&&(this._parent.updateValueAndValidity(i),i.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(i){this._parent=i}updateValueAndValidity(i={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===rl||this.status===Eo)&&this._runAsyncValidator(i.emitEvent))
,!1!==i.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!i.onlySelf&&this._parent.updateValueAndValidity(i)}_updateTreeValidity(i={emitEvent:!0}){this._forEachChild(e=>e._updateTreeValidity(i)),this.updateValueAndValidity({onlySelf:!0,emitEvent:i.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?ol:rl}_runValidator(){return
this.validator?this.validator(this):null}_runAsyncValidator(i){if(this.asyncValidator){this.status=Eo,this._hasOwnPendingAsyncValidator=!0;const
e=S0(this.asyncValidator(this));this._asyncValidationSubscription=e.subscribe(n=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors(n,{emitEvent:i})})}}_cancelExistingSubscription(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}setErrors(i,e={}){this.errors=i,this._updateControlsErrors(!1!==e.emitEvent)}get(i){return
function hA(t,i,e){if(null==i||(Array.isArray(i)||(i=i.s
plit(e)),Array.isArray(i)&&0===i.length))return null;let n=t;return
i.forEach(s=>{n=cf(n)?n.controls.hasOwnProperty(s)?n.controls[s]:null:(t=>t
instanceof fA)(n)&&n.at(s)||null}),n}(this,i,".")}getError(i,e){const
n=e?this.get(e):this;return
n&&n.errors?n.errors[i]:null}hasError(i,e){return!!this.getError(i,e)}get
root(){let i=this;for(;i._parent;)i=i._parent;return
i}_updateControlsErrors(i){this.status=this._calculateStatus(),i&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(i)}_initObservables(){this.valueChanges=new
H,this.statusChanges=new H}_calculateStatus(){return
this._allControlsDisabled()?ol:this.errors?wu:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(Eo)?Eo:this._anyControlsHaveStatus(wu)?wu:rl}_anyControlsHaveStatus(i){return
this._anyControls(e=>e.status===i)}_anyControlsDirty(){return
this._anyControls(i=>i.dirty)}_anyControlsTouched(){return
this._anyControls(i=>i.touched)}_updatePristine(i={}){this.pristine=!th
is._anyControlsDirty(),this._parent&&!i.onlySelf&&this._parent._updatePristine(i)}_updateTouched(i={}){this.touched=this._anyControlsTouched(),this._parent&&!i.onlySelf&&this._parent._updateTouched(i)}_isBoxedValue(i){return"object"==typeof
i&&null!==i&&2===Object.keys(i).length&&"value"in
i&&"disabled"in
i}_registerOnCollectionChange(i){this._onCollectionChange=i}_setUpdateStrategy(i){Tu(i)&&null!=i.updateOn&&(this._updateOn=i.updateOn)}_parentMarkedDirty(i){return!i&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}}class
K0 extends
uf{constructor(i=null,e,n){super(af(e),lf(n,e)),this.defaultValue=null,this._onChange=[],this._pendingChange=!1,this._applyFormState(i),this._setUpdateStrategy(e),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),Tu(e)&&e.initialValueIsDefault&&(this.defaultValue=this._isBoxedValue(i)?i.value:i)}setValue(i,e={}){this.value=this._pendingValue=i,this._onChange.length&&!1!==e.emitMod
elToViewChange&&this._onChange.forEach(n=>n(this.value,!1!==e.emitViewToModelChange)),this.updateValueAndValidity(e)}patchValue(i,e={}){this.setValue(i,e)}reset(i=this.defaultValue,e={}){this._applyFormState(i),this.markAsPristine(e),this.markAsUntouched(e),this.setValue(this.value,e),this._pendingChange=!1}_updateValue(){}_anyControls(i){return!1}_allControlsDisabled(){return
this.disabled}registerOnChange(i){this._onChange.push(i)}_unregisterOnChange(i){rf(this._onChange,i)}registerOnDisabledChange(i){this._onDisabledChange.push(i)}_unregisterOnDisabledChange(i){rf(this._onDisabledChange,i)}_forEachChild(i){}_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(i){this._isBoxedValue(i)?(this.value=this._pendingValue=i.value,i.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.e
nable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=i}}class df extends
uf{constructor(i,e,n){super(af(e),lf(n,e)),this.controls=i,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}registerControl(i,e){return
this.controls[i]?this.controls[i]:(this.controls[i]=e,e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange),e)}addControl(i,e,n={}){this.registerControl(i,e),this.updateValueAndValidity({emitEvent:n.emitEvent}),this._onCollectionChange()}removeControl(i,e={}){this.controls[i]&&this.controls[i]._registerOnCollectionChange(()=>{}),delete
this.controls[i],this.updateValueAndValidity({emitEvent:e.emitEvent}),this._onCollectionChange()}setControl(i,e,n={}){this.controls[i]&&this.controls[i]._registerOnCollectionChange(()=>{}),delete
this.controls[i],e&&this.registerControl(i,e),this.updateValueAndValidity({emitEvent:n.emitEvent}),this._onCollectionChange
()}contains(i){return
this.controls.hasOwnProperty(i)&&this.controls[i].enabled}setValue(i,e={}){W0(this,i),Object.keys(i).forEach(n=>{$0(this,n),this.controls[n].setValue(i[n],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(i,e={}){null!=i&&(Object.keys(i).forEach(n=>{this.controls[n]&&this.controls[n].patchValue(i[n],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e))}reset(i={},e={}){this._forEachChild((n,s)=>{n.reset(i[s],{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e),this._updateTouched(e),this.updateValueAndValidity(e)}getRawValue(){return
this._reduceChildren({},(i,e,n)=>(i[n]=j0(e),i))}_syncPendingControls(){let
i=this._reduceChildren(!1,(e,n)=>!!n._syncPendingControls()||e);return
i&&this.updateValueAndValidity({onlySelf:!0}),i}_forEachChild(i){Object.keys(this.controls).forEach(e=>{const
n=this.controls[e];n&&i(n,e)})}_setUpControls(){this._forEachChild(i=>{i.setParent(this),i._registerOnCollectionChange(t
his._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(i){for(const
e of Object.keys(this.controls)){const
n=this.controls[e];if(this.contains(e)&&i(n))return!0}return!1}_reduceValue(){return
this._reduceChildren({},(i,e,n)=>((e.enabled||this.disabled)&&(i[n]=e.value),i))}_reduceChildren(i,e){let
n=i;return this._forEachChild((s,r)=>{n=e(n,s,r)}),n}_allControlsDisabled(){for(const i
of Object.keys(this.controls))if(this.controls[i].enabled)return!1;return
Object.keys(this.controls).length>0||this.disabled}}class fA extends
uf{constructor(i,e,n){super(af(e),lf(n,e)),this.controls=i,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}at(i){return
this.controls[i]}push(i,e={}){this.controls.push(i),this._registerControl(i),this.updateValueAndValidity({emitEvent:e.emitEvent}),this._onCollectionChange()}insert(i,e,n={}){this.controls.splice(i,0,e),this._registerC
ontrol(e),this.updateValueAndValidity({emitEvent:n.emitEvent})}removeAt(i,e={}){this.controls[i]&&this.controls[i]._registerOnCollectionChange(()=>{}),this.controls.splice(i,1),this.updateValueAndValidity({emitEvent:e.emitEvent})}setControl(i,e,n={}){this.controls[i]&&this.controls[i]._registerOnCollectionChange(()=>{}),this.controls.splice(i,1),e&&(this.controls.splice(i,0,e),this._registerControl(e)),this.updateValueAndValidity({emitEvent:n.emitEvent}),this._onCollectionChange()}get
length(){return
this.controls.length}setValue(i,e={}){W0(this,i),i.forEach((n,s)=>{$0(this,s),this.at(s).setValue(n,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(i,e={}){null!=i&&(i.forEach((n,s)=>{this.at(s)&&this.at(s).patchValue(n,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e))}reset(i=[],e={}){this._forEachChild((n,s)=>{n.reset(i[s],{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e),this._updateTouched(e),this.updateValueAndValid
ity(e)}getRawValue(){return
this.controls.map(i=>j0(i))}clear(i={}){this.controls.length<1||(this._forEachChild(e=>e._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity({emitEvent:i.emitEvent}))}_syncPendingControls(){let
i=this.controls.reduce((e,n)=>!!n._syncPendingControls()||e,!1);return
i&&this.updateValueAndValidity({onlySelf:!0}),i}_forEachChild(i){this.controls.forEach((e,n)=>{i(e,n)})}_updateValue(){this.value=this.controls.filter(i=>i.enabled||this.disabled).map(i=>i.value)}_anyControls(i){return
this.controls.some(e=>e.enabled&&i(e))}_setUpControls(){this._forEachChild(i=>this._registerControl(i))}_allControlsDisabled(){for(const
i of this.controls)if(i.enabled)return!1;return
this.controls.length>0||this.disabled}_registerControl(i){i.setParent(this),i._registerOnCollectionChange(this._onCollectionChange)}}const
gA={provide:Un,useExisting:je(()=>He)},al=(()=>Promise.resolve(null))();let
He=(()=>{class t extends Un{constructor(e,n){sup
er(),this.submitted=!1,this._directives=new Set,this.ngSubmit=new H,this.form=new
df({},Jm(e),Ym(n))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return
this}get control(){return this.form}get path(){return[]}get controls(){return
this.form.controls}addControl(e){al.then(()=>{const
n=this._findContainer(e.path);e.control=n.registerControl(e.name,e.control),sl(e.control,e),e.control.updateValueAndValidity({emitEvent:!1}),this._directives.add(e)})}getControl(e){return
this.form.get(e.path)}removeControl(e){al.then(()=>{const
n=this._findContainer(e.path);n&&n.removeControl(e.name),this._directives.delete(e)})}addFormGroup(e){al.then(()=>{const
n=this._findContainer(e.path),s=new df({});(function
B0(t,i){tf(t,i)})(s,e),n.registerControl(e.name,s),s.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(e){al.then(()=>{const
n=this._findContainer(e.path);n&&n.removeControl(e.name)})}getFormGroup(e){return
this.form.get(e.path)}updateModel(e,n){al.then(()=>{this.form
.get(e.path).setValue(n)})}setValue(e){this.control.setValue(e)}onSubmit(e){return
this.submitted=!0,function q0(t,i){t._syncPendingControls(),i.forEach(e=>{const
n=e.control;"submit"===n.updateOn&&n._pendingChange&&(e.viewToModelUpdate(n._pendingValue),n._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)(D(Ln,10),D(js,10))},t.\u0275dir=le({type:t,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(e,n){1&e&&C("submit",function(r){return
n.onSubmit(r)})("reset",function(){return
n.onReset()})},inputs:{options:["ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[Pe([gA]),ut]}
),t})();const
bA={provide:ss,useExisting:je(()=>_e)},Y0=(()=>Promise.resolve(null))();let
_e=(()=>{class t extends
ss{constructor(e,n,s,r,o){super(),this._changeDetectorRef=o,this.control=new
K0,this._registered=!1,this.update=new
H,this._parent=e,this._setValidators(n),this._setAsyncValidators(s),this.valueAccessor=function
sf(t,i){if(!i)return null;let e,n,s;return
Array.isArray(i),i.forEach(r=>{r.constructor===Ye?e=r:function pA(t){return
Object.getPrototypeOf(t.constructor)===vr}(r)?n=r:s=r}),s||n||e||null}(0,r)}ngOnChanges(e){if(this._checkForErrors(),!this._registered||"name"in
e){if(this._registered&&(this._checkName(),this.formDirective)){const
n=e.name.previousValue;this.formDirective.removeControl({name:n,path:this._getPath(n)})}this._setUpControl()}"isDisabled"in
e&&this._updateDisabled(e),function
nf(t,i){if(!t.hasOwnProperty("model"))return!1;const
e=t.model;return!!e.isFirstChange()||!Object.is(i,e.currentValue)}(e,this.viewModel)&&(this._updateValue(this.model),this.v
iewModel=this.model)}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}get
path(){return this._getPath(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}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.control._updateOn=this.options.updateOn)}_isStandalone(){return!this._parent||!(!this.options||!this.options.standalone)}_setUpStandalone(){sl(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){Y0.then(()=>{var
n;this.control.setValue(e,{emitViewToModelChange:!1}),null===(n=this._c
hangeDetectorRef)||void 0===n||n.markForCheck()})}_updateDisabled(e){const
n=e.isDisabled.currentValue,s=""===n||n&&"false"!==n;Y0.then(()=>{var
r;s&&!this.control.disabled?this.control.disable():!s&&this.control.disabled&&this.control.enable(),null===(r=this._changeDetectorRef)||void
0===r||r.markForCheck()})}_getPath(e){return this._parent?function
bu(t,i){return[...i.path,t]}(e,this._parent):[e]}}return t.\u0275fac=function(e){return
new(e||t)(D(Un,9),D(Ln,10),D(js,10),D(dn,10),D(rt,8))},t.\u0275dir=le({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:[Pe([bA]),ut,fn]}),t})(),ze=(()=>{class
t{}return t.\u0275fac=function(e){return
new(e||t)},t.\u0275dir=le({type:t,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]}),t})();const
vA={
provide:dn,useExisting:je(()=>Su),multi:!0};let Su=(()=>{class t extends
vr{writeValue(e){this.setProperty("value",null==e?"":e)}registerOnChange(e){this.onChange=n=>{e(""==n?null:parseFloat(n))}}}return
t.\u0275fac=function(){let i;return
function(n){return(i||(i=on(t)))(n||t)}}(),t.\u0275dir=le({type:t,selectors:[["input","type","number","formControlName",""],["input","type","number","formControl",""],["input","type","number","ngModel",""]],hostBindings:function(e,n){1&e&&C("input",function(r){return
n.onChange(r.target.value)})("blur",function(){return
n.onTouched()})},features:[Pe([vA]),ut]}),t})(),Z0=(()=>{class t{}return
t.\u0275fac=function(e){return
new(e||t)},t.\u0275mod=he({type:t}),t.\u0275inj=ue({}),t})();const pf=new
be("NgModelWithFormControlWarning");function
aw(t){return"number"==typeof t?t:parseFloat(t)}let Cr=(()=>{class
t{constructor(){this._validator=fu}ngOnChanges(e){if(this.inputName in e){const
n=this.normalizeInput(e[this.inputName].currentValue);this._enable
d=this.enabled(n),this._validator=this._enabled?this.createValidator(n):fu,this._onChange&&this._onChange()}}validate(e){return
this._validator(e)}registerOnValidatorChange(e){this._onChange=e}enabled(e){return
null!=e}}return t.\u0275fac=function(e){return
new(e||t)},t.\u0275dir=le({type:t,features:[fn]}),t})();const
PA={provide:Ln,useExisting:je(()=>xu),multi:!0};let xu=(()=>{class t extends
Cr{constructor(){super(...arguments),this.inputName="max",this.normalizeInput=e=>aw(e),this.createValidator=e=>function
g0(t){return i=>{if(zs(i.value)||zs(t))return null;const
e=parseFloat(i.value);return!isNaN(e)&&e>t?{max:{max:t,actual:i.value}}:null}}(e)}}return
t.\u0275fac=function(){let i;return
function(n){return(i||(i=on(t)))(n||t)}}(),t.\u0275dir=le({type:t,selectors:[["input","type","number","max","","formControlName",""],["input","type","number","max","","formControl",""],["input","type","number","max","","ngModel",""]],hostVars:1,hostBindings:function(e,n){2&e&&ie("max",n._enabled?
n.max:null)},inputs:{max:"max"},features:[Pe([PA]),ut]}),t})();const
FA={provide:Ln,useExisting:je(()=>Du),multi:!0};let Du=(()=>{class t extends
Cr{constructor(){super(...arguments),this.inputName="min",this.normalizeInput=e=>aw(e),this.createValidator=e=>function
f0(t){return i=>{if(zs(i.value)||zs(t))return null;const
e=parseFloat(i.value);return!isNaN(e)&&e<t?{min:{min:t,actual:i.value}}:null}}(e)}}return
t.\u0275fac=function(){let i;return
function(n){return(i||(i=on(t)))(n||t)}}(),t.\u0275dir=le({type:t,selectors:[["input","type","number","min","","formControlName",""],["input","type","number","min","","formControl",""],["input","type","number","min","","ngModel",""]],hostVars:1,hostBindings:function(e,n){2&e&&ie("min",n._enabled?n.min:null)},inputs:{min:"min"},features:[Pe([FA]),ut]}),t})();const
NA={provide:Ln,useExisting:je(()=>ll),multi:!0};let ll=(()=>{class t extends
Cr{constructor(){super(...arguments),this.inputName="required",this.normalizeInput=e=>function
AA(t){retu
rn
null!=t&&!1!==t&&"false"!=`${t}`}(e),this.createValidator=e=>_0}enabled(e){return
e}}return t.\u0275fac=function(){let i;return
function(n){return(i||(i=on(t)))(n||t)}}(),t.\u0275dir=le({type:t,selectors:[["","required","","formControlName","",3,"type","checkbox"],["","required","","formControl","",3,"type","checkbox"],["","required","","ngModel","",3,"type","checkbox"]],hostVars:1,hostBindings:function(e,n){2&e&&ie("required",n._enabled?"":null)},inputs:{required:"required"},features:[Pe([NA]),ut]}),t})();const
qA={provide:Ln,useExisting:je(()=>_n),multi:!0};let _n=(()=>{class t extends
Cr{constructor(){super(...arguments),this.inputName="maxlength",this.normalizeInput=e=>function
ow(t){return"number"==typeof
t?t:parseInt(t,10)}(e),this.createValidator=e=>function y0(t){return i=>function
m0(t){return null!=t&&"number"==typeof
t.length}(i.value)&&i.value.length>t?{maxlength:{requiredLength:t,actualLength:i.value.length}}:null}(e)}}return
t.\u0275fac=function(){let i;return funct
ion(n){return(i||(i=on(t)))(n||t)}}(),t.\u0275dir=le({type:t,selectors:[["","maxlength","","formControlName",""],["","maxlength","","formControl",""],["","maxlength","","ngModel",""]],hostVars:1,hostBindings:function(e,n){2&e&&ie("maxlength",n._enabled?n.maxlength:null)},inputs:{maxlength:"maxlength"},features:[Pe([qA]),ut]}),t})(),pw=(()=>{class
t{}return t.\u0275fac=function(e){return
new(e||t)},t.\u0275mod=he({type:t}),t.\u0275inj=ue({imports:[[Z0]]}),t})(),Mu=(()=>{class
t{}return t.\u0275fac=function(e){return
new(e||t)},t.\u0275mod=he({type:t}),t.\u0275inj=ue({imports:[pw]}),t})(),UA=(()=>{class
t{static
withConfig(e){return{ngModule:t,providers:[{provide:pf,useValue:e.warnOnNgModelWithFormControl}]}}}return
t.\u0275fac=function(e){return
new(e||t)},t.\u0275mod=he({type:t}),t.\u0275inj=ue({imports:[pw]}),t})();class hw{}const
ys="*";function wi(t,i){return{type:7,name:t,definitions:i,options:{}}}function
kt(t,i=null){return{type:4,styles:i,timings:t}}function mw(t,i=null){retu
rn{type:2,steps:t,options:i}}function it(t){return{type:6,styles:t,offset:null}}function
ws(t,i,e){return{type:0,name:t,styles:i,options:e}}function
Lt(t,i,e=null){return{type:1,expr:t,animation:i,options:e}}function
ku(t,i=null){return{type:8,animation:t,options:i}}function
jA(t=null){return{type:9,options:t}}function
fw(t,i=null){return{type:10,animation:t,options:i}}function
$A(t,i,e=null){return{type:11,selector:t,animation:i,options:e}}function
gw(t){Promise.resolve(null).then(t)}class
cl{constructor(i=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=i+e}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(i=>i()),this._onDoneFns=[])}onStart(i){this._onStartFns.push(i)}onDone(i){this._onDoneFns.push(i)}onDestroy(i){this._onDestroyFns.push(i)}hasStarted(){return
this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.trig
gerMicrotask()),this._started=!0}triggerMicrotask(){gw(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(i=>i()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(i=>i()),this._onDestroyFns=[])}reset(){this._started=!1}setPosition(i){this._position=this.totalTime?i*this.totalTime:1}getPosition(){return
this.totalTime?this._position/this.totalTime:1}triggerCallback(i){const
e="start"==i?this._onStartFns:this._onDoneFns;e.forEach(n=>n()),e.length=0}}class
_w{constructor(i){this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=i;let
e=0,n=0,s=0;const
r=this.players.length;0==r?gw(()=>this._onFinish()):this.players.forEach(o=>{o.onDone(()=>{++e==r&&this._onFinish()}),o.onDestroy(()=>{++n==r&&this._onDestroy()}),o.onStart(()=>{++s=
=r&&this._onStart()})}),this.totalTime=this.players.reduce((o,u)=>Math.max(o,u.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(i=>i()),this._onDoneFns=[])}init(){this.players.forEach(i=>i.init())}onStart(i){this._onStartFns.push(i)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(i=>i()),this._onStartFns=[])}onDone(i){this._onDoneFns.push(i)}onDestroy(i){this._onDestroyFns.push(i)}hasStarted(){return
this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(i=>i.play())}pause(){this.players.forEach(i=>i.pause())}restart(){this.players.forEach(i=>i.restart())}finish(){this._onFinish(),this.players.forEach(i=>i.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(i=>i.destroy()),this._onDestroyFns.forEach(i=>i()),this._onDestroyFns=[])}reset(){this.players.forEach(i=>i.reset()),this._destroyed=!1,this._finished=!1,this._st
arted=!1}setPosition(i){const e=i*this.totalTime;this.players.forEach(n=>{const
s=n.totalTime?Math.min(1,e/n.totalTime):1;n.setPosition(s)})}getPosition(){const
i=this.players.reduce((e,n)=>null===e||n.totalTime>e.totalTime?n:e,null);return
null!=i?i.getPosition():0}beforeDestroy(){this.players.forEach(i=>{i.beforeDestroy&&i.beforeDestroy()})}triggerCallback(i){const
e="start"==i?this._onStartFns:this._onDoneFns;e.forEach(n=>n()),e.length=0}}const
Ze=!1;function bw(t){return new re(3e3,Ze)}function
DP(){return"undefined"!=typeof window&&void 0!==window.document}function
vf(){return"undefined"!=typeof process&&"[object
process]"==={}.toString.call(process)}function $s(t){switch(t.length){case 0:return
new cl;case 1:return t[0];default:return new _w(t)}}function vw(t,i,e,n,s={},r={}){const
o=[],u=[];let h=-1,b=null;if(n.forEach(y=>{const
w=y.offset,M=w==h,E=M&&b||{};Object.keys(y).forEach(L=>{let
O=L,N=y[L];if("offset"!==L)switch(O=i.normalizePropertyName(O,o),N){case"!":N=s[L];break;
case
ys:N=r[L];break;default:N=i.normalizeStyleValue(L,O,N,o)}E[O]=N}),M||u.push(E),b=E,h=w}),o.length)throw
function fP(t){return new re(3502,Ze)}();return u}function
Cf(t,i,e,n){switch(i){case"start":t.onStart(()=>n(e&&yf(e,"start",t)));break;case"done":t.onDone(()=>n(e&&yf(e,"done",t)));break;case"destroy":t.onDestroy(()=>n(e&&yf(e,"destroy",t)))}}function
yf(t,i,e){const
n=e.totalTime,r=wf(t.element,t.triggerName,t.fromState,t.toState,i||t.phaseName,null==n?t.totalTime:n,!!e.disabled),o=t._data;return
null!=o&&(r._data=o),r}function
wf(t,i,e,n,s="",r=0,o){return{element:t,triggerName:i,fromState:e,toState:n,phaseName:s,totalTime:r,disabled:!!o}}function
oi(t,i,e){let n;return t instanceof
Map?(n=t.get(i),n||t.set(i,n=e)):(n=t[i],n||(n=t[i]=e)),n}function Cw(t){const
i=t.indexOf(":");return[t.substring(1,i),t.substr(i+1)]}let
Tf=(t,i)=>!1,yw=(t,i,e)=>[],ww=null;function Sf(t){const
i=t.parentNode||t.host;return i===ww?null:i}(vf()||"undefined"!=typeof
Element)&&(DP()?(ww=(()=>doc
ument.documentElement)(),Tf=(t,i)=>{for(;i;){if(i===t)return!0;i=Sf(i)}return!1}):Tf=(t,i)=>t.contains(i),yw=(t,i,e)=>{if(e)return
Array.from(t.querySelectorAll(i));const n=t.querySelector(i);return n?[n]:[]});let
yr=null,Tw=!1;function Sw(t){yr||(yr=function kP(){return"undefined"!=typeof
document?document.body:null}()||{},Tw=!!yr.style&&"WebkitAppearance"in
yr.style);let i=!0;return yr.style&&!function
MP(t){return"ebkit"==t.substring(1,6)}(t)&&(i=t in
yr.style,!i&&Tw&&(i="Webkit"+t.charAt(0).toUpperCase()+t.substr(1)in
yr.style)),i}const xw=Tf,Dw=yw;let Mw=(()=>{class t{validateStyleProperty(e){return
Sw(e)}matchesElement(e,n){return!1}containsElement(e,n){return
xw(e,n)}getParentElement(e){return Sf(e)}query(e,n,s){return
Dw(e,n,s)}computeStyle(e,n,s){return s||""}animate(e,n,s,r,o,u=[],h){return new
cl(s,r)}}return t.\u0275fac=function(e){return
new(e||t)},t.\u0275prov=X({token:t,factory:t.\u0275fac}),t})(),xf=(()=>{class t{}return
t.NOOP=new Mw,t})();const Df="ng-enter",Eu="ng
-leave",Ru="ng-trigger",Lu=".ng-trigger",Iw="ng-animating",Mf=".ng-animating";function
wr(t){if("number"==typeof t)return t;const
i=t.match(/^(-?[\.\d]+)(m?s)/);return!i||i.length<2?0:kf(parseFloat(i[1]),i[2])}function
kf(t,i){return"s"===i?1e3*t:t}function Ou(t,i,e){return
t.hasOwnProperty("duration")?t:function RP(t,i,e){let
s,r=0,o="";if("string"==typeof t){const
u=t.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===u)return
i.push(bw()),{duration:0,delay:0,easing:""};s=kf(parseFloat(u[1]),u[2]);const
h=u[3];null!=h&&(r=kf(parseFloat(h),u[4]));const b=u[5];b&&(o=b)}else
s=t;if(!e){let u=!1,h=i.length;s<0&&(i.push(function WA(){return new
re(3100,Ze)}()),u=!0),r<0&&(i.push(function KA(){return new
re(3101,Ze)}()),u=!0),u&&i.splice(h,0,bw())}return{duration:s,delay:r,easing:o}}(t,i,e)}function
Ro(t,i={}){return Object.keys(t).forEach(e=>{i[e]=t[e]}),i}function
Ws(t,i,e={}){if(i)for(let n in t)e[n]=t[n];else Ro(t,e);return e}function Rw(t,i,
e){return e?i+":"+e+";":""}function Lw(t){let
i="";for(let e=0;e<t.style.length;e++){const
n=t.style.item(e);i+=Rw(0,n,t.style.getPropertyValue(n))}for(const e in
t.style)t.style.hasOwnProperty(e)&&!e.startsWith("_")&&(i+=Rw(0,AP(e),t.style[e]));t.setAttribute("style",i)}function
rs(t,i,e){t.style&&(Object.keys(i).forEach(n=>{const
s=Ef(n);e&&!e.hasOwnProperty(n)&&(e[n]=t.style[s]),t.style[s]=i[n]}),vf()&&Lw(t))}function
Tr(t,i){t.style&&(Object.keys(i).forEach(e=>{const
n=Ef(e);t.style[n]=""}),vf()&&Lw(t))}function ul(t){return
Array.isArray(t)?1==t.length?t[0]:mw(t):t}const If=new
RegExp("{{\\s*(.+?)\\s*}}","g");function Ow(t){let
i=[];if("string"==typeof t){let
e;for(;e=If.exec(t);)i.push(e[1]);If.lastIndex=0}return i}function Au(t,i,e){const
n=t.toString(),s=n.replace(If,(r,o)=>{let u=i[o];return
i.hasOwnProperty(o)||(e.push(function JA(t){return new
re(3003,Ze)}()),u=""),u.toString()});return s==n?t:s}function Pu(t){const
i=[];let e=t.next();for(;!e.done;)i.push(e.value),e=t.ne
xt();return i}const OP=/-+([a-z0-9])/g;function Ef(t){return
t.replace(OP,(...i)=>i[1].toUpperCase())}function AP(t){return
t.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}function
ai(t,i,e){switch(i.type){case 7:return t.visitTrigger(i,e);case 0:return
t.visitState(i,e);case 1:return t.visitTransition(i,e);case 2:return
t.visitSequence(i,e);case 3:return t.visitGroup(i,e);case 4:return
t.visitAnimate(i,e);case 5:return t.visitKeyframes(i,e);case 6:return
t.visitStyle(i,e);case 8:return t.visitReference(i,e);case 9:return
t.visitAnimateChild(i,e);case 10:return t.visitAnimateRef(i,e);case 11:return
t.visitQuery(i,e);case 12:return t.visitStagger(i,e);default:throw function YA(t){return
new re(3004,Ze)}()}}function Aw(t,i){return window.getComputedStyle(t)[i]}function
HP(t,i){const e=[];return"string"==typeof
t?t.split(/\s*,\s*/).forEach(n=>function qP(t,i,e){if(":"==t[0]){const
h=function GP(t,i){switch(t){case":enter":return"void =>
*";case":leave":return"* => void";case":increm
ent":return(e,n)=>parseFloat(n)>parseFloat(e);case":decrement":return(e,n)=>parseFloat(n)<parseFloat(e);default:return
i.push(function dP(t){return new re(3016,Ze)}()),"* =>
*"}}(t,e);if("function"==typeof h)return void i.push(h);t=h}const
n=t.match(/^(\*|[-\w]+)\s*(<?[=-]>)\s*(\*|[-\w]+)$/);if(null==n||n.length<4)return
e.push(function uP(t){return new re(3015,Ze)}()),i;const
s=n[1],r=n[2],o=n[3];i.push(Pw(s,o));"<"==r[0]&&!("*"==s&&"*"==o)&&i.push(Pw(o,s))}(n,e,i)):e.push(t),e}const
Bu=new Set(["true","1"]),Hu=new
Set(["false","0"]);function Pw(t,i){const
e=Bu.has(t)||Hu.has(t),n=Bu.has(i)||Hu.has(i);return(s,r)=>{let
o="*"==t||t==s,u="*"==i||i==r;return!o&&e&&"boolean"==typeof
s&&(o=s?Bu.has(t):Hu.has(t)),!u&&n&&"boolean"==typeof
r&&(u=r?Bu.has(i):Hu.has(i)),o&&u}}const UP=new
RegExp("s*:selfs*,?","g");function Rf(t,i,e,n){return new
zP(t).build(i,e,n)}class zP{constructor(i){this._driver=i}build(i,e,n){const s=new
WP(e);this._resetContextStyleTimingState(s);const r=ai(this,ul(i)
,s);return
s.unsupportedCSSPropertiesFound.size&&s.unsupportedCSSPropertiesFound.keys(),r}_resetContextStyleTimingState(i){i.currentQuerySelector="",i.collectedStyles={},i.collectedStyles[""]={},i.currentTime=0}visitTrigger(i,e){let
n=e.queryCount=0,s=e.depCount=0;const
r=[],o=[];return"(a)"==i.name.charAt(0)&&e.errors.push(function
XA(){return new
re(3006,Ze)}()),i.definitions.forEach(u=>{if(this._resetContextStyleTimingState(e),0==u.type){const
h=u,b=h.name;b.toString().split(/\s*,\s*/).forEach(y=>{h.name=y,r.push(this.visitState(h,e))}),h.name=b}else
if(1==u.type){const
h=this.visitTransition(u,e);n+=h.queryCount,s+=h.depCount,o.push(h)}else
e.errors.push(function eP(){return new
re(3007,Ze)}())}),{type:7,name:i.name,states:r,transitions:o,queryCount:n,depCount:s,options:null}}visitState(i,e){const
n=this.visitStyle(i.styles,e),s=i.options&&i.options.params||null;if(n.containsDynamicStyles){const
r=new Set,o=s||{};n.styles.forEach(u=>{if(qu(u)){const
h=u;Object.keys(h).forEach(b=>{
Ow(h[b]).forEach(y=>{o.hasOwnProperty(y)||r.add(y)})})}}),r.size&&(Pu(r.values()),e.errors.push(function
tP(t,i){return new
re(3008,Ze)}()))}return{type:0,name:i.name,style:n,options:s?{params:s}:null}}visitTransition(i,e){e.queryCount=0,e.depCount=0;const
n=ai(this,ul(i.animation),e);return{type:1,matchers:HP(i.expr,e.errors),animation:n,queryCount:e.queryCount,depCount:e.depCount,options:Sr(i.options)}}visitSequence(i,e){return{type:2,steps:i.steps.map(n=>ai(this,n,e)),options:Sr(i.options)}}visitGroup(i,e){const
n=e.currentTime;let s=0;const r=i.steps.map(o=>{e.currentTime=n;const
u=ai(this,o,e);return s=Math.max(s,e.currentTime),u});return
e.currentTime=s,{type:3,steps:r,options:Sr(i.options)}}visitAnimate(i,e){const n=function
QP(t,i){if(t.hasOwnProperty("duration"))return t;if("number"==typeof
t)return Lf(Ou(t,i).duration,0,"");const
e=t;if(e.split(/\s+/).some(r=>"{"==r.charAt(0)&&"{"==r.charAt(1))){const
r=Lf(0,0,"");return r.dynamic=!0,r.strValue=e,r}const s=Ou(e,i);return L
f(s.duration,s.delay,s.easing)}(i.timings,e.errors);e.currentAnimateTimings=n;let
s,r=i.styles?i.styles:it({});if(5==r.type)s=this.visitKeyframes(r,e);else{let
o=i.styles,u=!1;if(!o){u=!0;const
b={};n.easing&&(b.easing=n.easing),o=it(b)}e.currentTime+=n.duration+n.delay;const
h=this.visitStyle(o,e);h.isEmptyStep=u,s=h}return
e.currentAnimateTimings=null,{type:4,timings:n,style:s,options:null}}visitStyle(i,e){const
n=this._makeStyleAst(i,e);return this._validateStyleAst(n,e),n}_makeStyleAst(i,e){const
n=[];Array.isArray(i.styles)?i.styles.forEach(o=>{"string"==typeof
o?o==ys?n.push(o):e.errors.push(function nP(t){return new
re(3002,Ze)}()):n.push(o)}):n.push(i.styles);let s=!1,r=null;return
n.forEach(o=>{if(qu(o)){const u=o,h=u.easing;if(h&&(r=h,delete
u.easing),!s)for(let b in
u)if(u[b].toString().indexOf("{{")>=0){s=!0;break}}}),{type:6,styles:n,easing:r,offset:i.offset,containsDynamicStyles:s,options:null}}_validateStyleAst(i,e){const
n=e.currentAnimateTimings;let s=e.currentTime,
r=e.currentTime;n&&r>0&&(r-=n.duration+n.delay),i.styles.forEach(o=>{"string"!=typeof
o&&Object.keys(o).forEach(u=>{if(!this._driver.validateStyleProperty(u))return
delete o[u],void e.unsupportedCSSPropertiesFound.add(u);const
h=e.collectedStyles[e.currentQuerySelector],b=h[u];let
y=!0;b&&(r!=s&&r>=b.startTime&&s<=b.endTime&&(e.errors.push(function
iP(t,i,e,n,s){return new
re(3010,Ze)}()),y=!1),r=b.startTime),y&&(h[u]={startTime:r,endTime:s}),e.options&&function
LP(t,i,e){const
n=i.params||{},s=Ow(t);s.length&&s.forEach(r=>{n.hasOwnProperty(r)||e.push(function
QA(t){return new re(3001,Ze)}())})}(o[u],e.options,e.errors)})})}visitKeyframes(i,e){const
n={type:5,styles:[],options:null};if(!e.currentAnimateTimings)return
e.errors.push(function sP(){return new re(3011,Ze)}()),n;let r=0;const o=[];let
u=!1,h=!1,b=0;const y=i.steps.map(G=>{const P=this._makeStyleAst(G,e);let
J=null!=P.offset?P.offset:function KP(t){if("string"==typeof t)return null;let
i=null;if(Array.isArray(t))t.forEach(
e=>{if(qu(e)&&e.hasOwnProperty("offset")){const
n=e;i=parseFloat(n.offset),delete n.offset}});else
if(qu(t)&&t.hasOwnProperty("offset")){const
e=t;i=parseFloat(e.offset),delete e.offset}return i}(P.styles),se=0;return
null!=J&&(r++,se=P.offset=J),h=h||se<0||se>1,u=u||se<b,b=se,o.push(se),P});h&&e.errors.push(function
rP(){return new re(3012,Ze)}()),u&&e.errors.push(function oP(){return new
re(3200,Ze)}());const w=i.steps.length;let
M=0;r>0&&r<w?e.errors.push(function aP(){return new
re(3202,Ze)}()):0==r&&(M=1/(w-1));const
E=w-1,L=e.currentTime,O=e.currentAnimateTimings,N=O.duration;return
y.forEach((G,P)=>{const
J=M>0?P==E?1:M*P:o[P],se=J*N;e.currentTime=L+O.delay+se,O.duration=se,this._validateStyleAst(G,e),G.offset=J,n.styles.push(G)}),n}visitReference(i,e){return{type:8,animation:ai(this,ul(i.animation),e),options:Sr(i.options)}}visitAnimateChild(i,e){return
e.depCount++,{type:9,options:Sr(i.options)}}visitAnimateRef(i,e){return{type:10,animation:this.visitReference(i.animation,e
),options:Sr(i.options)}}visitQuery(i,e){const
n=e.currentQuerySelector,s=i.options||{};e.queryCount++,e.currentQuery=i;const[r,o]=function
jP(t){const i=!!t.split(/\s*,\s*/).find(e=>":self"==e);return
i&&(t=t.replace(UP,"")),t=t.replace(/@\*/g,Lu).replace(/@\w+/g,e=>Lu+"-"+e.substr(1)).replace(/:animating/g,Mf),[t,i]}(i.selector);e.currentQuerySelector=n.length?n+"
"+r:r,oi(e.collectedStyles,e.currentQuerySelector,{});const
u=ai(this,ul(i.animation),e);return
e.currentQuery=null,e.currentQuerySelector=n,{type:11,selector:r,limit:s.limit||0,optional:!!s.optional,includeSelf:o,animation:u,originalSelector:i.selector,options:Sr(i.options)}}visitStagger(i,e){e.currentQuery||e.errors.push(function
lP(){return new re(3013,Ze)}());const
n="full"===i.timings?{duration:0,delay:0,easing:"full"}:Ou(i.timings,e.errors,!0);return{type:12,animation:ai(this,ul(i.animation),e),timings:n,options:null}}}class
WP{constructor(i){this.errors=i,this.queryCount=0,this.depCount=0,this.currentTransition=nu
ll,this.currentQuery=null,this.currentQuerySelector=null,this.currentAnimateTimings=null,this.currentTime=0,this.collectedStyles={},this.options=null,this.unsupportedCSSPropertiesFound=new
Set}}function qu(t){return!Array.isArray(t)&&"object"==typeof t}function
Sr(t){return t?(t=Ro(t)).params&&(t.params=function $P(t){return
t?Ro(t):null}(t.params)):t={},t}function
Lf(t,i,e){return{duration:t,delay:i,easing:e}}function
Of(t,i,e,n,s,r,o=null,u=!1){return{type:1,element:t,keyframes:i,preStyleProps:e,postStyleProps:n,duration:s,delay:r,totalTime:s+r,easing:o,subTimeline:u}}class
Gu{constructor(){this._map=new Map}get(i){return this._map.get(i)||[]}append(i,e){let
n=this._map.get(i);n||this._map.set(i,n=[]),n.push(...e)}has(i){return
this._map.has(i)}clear(){this._map.clear()}}const ZP=new
RegExp(":enter","g"),eF=new
RegExp(":leave","g");function
Af(t,i,e,n,s,r={},o={},u,h,b=[]){return(new tF).buildKeyframes(t,i,e,n,s,r,o,u,h,b)}class
tF{buildKeyframes(i,e,n,s,r,o,u,h,b,y=[]){b=b||new G
u;const w=new
Pf(i,e,b,s,r,y,[]);w.options=h,w.currentTimeline.setStyles([o],null,w.errors,h),ai(this,n,w);const
M=w.timelines.filter(E=>E.containsAnimation());if(Object.keys(u).length){let E;for(let
L=M.length-1;L>=0;L--){const
O=M[L];if(O.element===e){E=O;break}}E&&!E.allowOnlyTimelineStyles()&&E.setStyles([u],null,w.errors,h)}return
M.length?M.map(E=>E.buildKeyframes()):[Of(e,[],[],[],0,0,"",!1)]}visitTrigger(i,e){}visitState(i,e){}visitTransition(i,e){}visitAnimateChild(i,e){const
n=e.subInstructions.get(e.element);if(n){const
s=e.createSubContext(i.options),r=e.currentTimeline.currentTime,o=this._visitSubInstructions(n,s,s.options);r!=o&&e.transformIntoNewTimeline(o)}e.previousNode=i}visitAnimateRef(i,e){const
n=e.createSubContext(i.options);n.transformIntoNewTimeline(),this.visitReference(i.animation,n),e.transformIntoNewTimeline(n.currentTimeline.currentTime),e.previousNode=i}_visitSubInstructions(i,e,n){let
r=e.currentTimeline.currentTime;const o=null!=n.duration?wr(n.durati
on):null,u=null!=n.delay?wr(n.delay):null;return 0!==o&&i.forEach(h=>{const
b=e.appendInstructionToTimeline(h,o,u);r=Math.max(r,b.duration+b.delay)}),r}visitReference(i,e){e.updateOptions(i.options,!0),ai(this,i.animation,e),e.previousNode=i}visitSequence(i,e){const
n=e.subContextCount;let s=e;const
r=i.options;if(r&&(r.params||r.delay)&&(s=e.createSubContext(r),s.transformIntoNewTimeline(),null!=r.delay)){6==s.previousNode.type&&(s.currentTimeline.snapshotCurrentStyles(),s.previousNode=Uu);const
o=wr(r.delay);s.delayNextStep(o)}i.steps.length&&(i.steps.forEach(o=>ai(this,o,s)),s.currentTimeline.applyStylesToKeyframe(),s.subContextCount>n&&s.transformIntoNewTimeline()),e.previousNode=i}visitGroup(i,e){const
n=[];let s=e.currentTimeline.currentTime;const
r=i.options&&i.options.delay?wr(i.options.delay):0;i.steps.forEach(o=>{const
u=e.createSubContext(i.options);r&&u.delayNextStep(r),ai(this,o,u),s=Math.max(s,u.currentTimeline.currentTime),n.push(u.currentTimeline)}),n.forEach(o=>e.cu
rrentTimeline.mergeTimelineCollectedStyles(o)),e.transformIntoNewTimeline(s),e.previousNode=i}_visitTiming(i,e){if(i.dynamic){const
n=i.strValue;return
Ou(e.params?Au(n,e.params,e.errors):n,e.errors)}return{duration:i.duration,delay:i.delay,easing:i.easing}}visitAnimate(i,e){const
n=e.currentAnimateTimings=this._visitTiming(i.timings,e),s=e.currentTimeline;n.delay&&(e.incrementTime(n.delay),s.snapshotCurrentStyles());const
r=i.style;5==r.type?this.visitKeyframes(r,e):(e.incrementTime(n.duration),this.visitStyle(r,e),s.applyStylesToKeyframe()),e.currentAnimateTimings=null,e.previousNode=i}visitStyle(i,e){const
n=e.currentTimeline,s=e.currentAnimateTimings;!s&&n.getCurrentStyleProperties().length&&n.forwardFrame();const
r=s&&s.easing||i.easing;i.isEmptyStep?n.applyEmptyStep(r):n.setStyles(i.styles,r,e.errors,e.options),e.previousNode=i}visitKeyframes(i,e){const
n=e.currentAnimateTimings,s=e.currentTimeline.duration,r=n.duration,u=e.createSubContext().currentTimeline;u.easing=n.easing,
i.styles.forEach(h=>{u.forwardTime((h.offset||0)*r),u.setStyles(h.styles,h.easing,e.errors,e.options),u.applyStylesToKeyframe()}),e.currentTimeline.mergeTimelineCollectedStyles(u),e.transformIntoNewTimeline(s+r),e.previousNode=i}visitQuery(i,e){const
n=e.currentTimeline.currentTime,s=i.options||{},r=s.delay?wr(s.delay):0;r&&(6===e.previousNode.type||0==n&&e.currentTimeline.getCurrentStyleProperties().length)&&(e.currentTimeline.snapshotCurrentStyles(),e.previousNode=Uu);let
o=n;const
u=e.invokeQuery(i.selector,i.originalSelector,i.limit,i.includeSelf,!!s.optional,e.errors);e.currentQueryTotal=u.length;let
h=null;u.forEach((b,y)=>{e.currentQueryIndex=y;const
w=e.createSubContext(i.options,b);r&&w.delayNextStep(r),b===e.element&&(h=w.currentTimeline),ai(this,i.animation,w),w.currentTimeline.applyStylesToKeyframe(),o=Math.max(o,w.currentTimeline.currentTime)}),e.currentQueryIndex=0,e.currentQueryTotal=0,e.transformIntoNewTimeline(o),h&&(e.currentTimeline.mergeTimelineCollectedStyles(h)
,e.currentTimeline.snapshotCurrentStyles()),e.previousNode=i}visitStagger(i,e){const
n=e.parentContext,s=e.currentTimeline,r=i.timings,o=Math.abs(r.duration),u=o*(e.currentQueryTotal-1);let
h=o*e.currentQueryIndex;switch(r.duration<0?"reverse":r.easing){case"reverse":h=u-h;break;case"full":h=n.currentStaggerTime}const
y=e.currentTimeline;h&&y.delayNextStep(h);const
w=y.currentTime;ai(this,i.animation,e),e.previousNode=i,n.currentStaggerTime=s.currentTime-w+(s.startTime-n.currentTimeline.startTime)}}const
Uu={};class
Pf{constructor(i,e,n,s,r,o,u,h){this._driver=i,this.element=e,this.subInstructions=n,this._enterClassName=s,this._leaveClassName=r,this.errors=o,this.timelines=u,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=Uu,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=h||new
zu(this._driver,e,0),u.push(this.currentTimeline)}get params(){return
this.options.params}upd
ateOptions(i,e){if(!i)return;const n=i;let
s=this.options;null!=n.duration&&(s.duration=wr(n.duration)),null!=n.delay&&(s.delay=wr(n.delay));const
r=n.params;if(r){let
o=s.params;o||(o=this.options.params={}),Object.keys(r).forEach(u=>{(!e||!o.hasOwnProperty(u))&&(o[u]=Au(r[u],o,this.errors))})}}_copyOptions(){const
i={};if(this.options){const e=this.options.params;if(e){const
n=i.params={};Object.keys(e).forEach(s=>{n[s]=e[s]})}}return
i}createSubContext(i=null,e,n){const s=e||this.element,r=new
Pf(this._driver,s,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(s,n||0));return
r.previousNode=this.previousNode,r.currentAnimateTimings=this.currentAnimateTimings,r.options=this._copyOptions(),r.updateOptions(i),r.currentQueryIndex=this.currentQueryIndex,r.currentQueryTotal=this.currentQueryTotal,r.parentContext=this,this.subContextCount++,r}transformIntoNewTimeline(i){return
this.previousNode=Uu,this.currentTimeline=thi
s.currentTimeline.fork(this.element,i),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(i,e,n){const
s={duration:null!=e?e:i.duration,delay:this.currentTimeline.currentTime+(null!=n?n:0)+i.delay,easing:""},r=new
nF(this._driver,i.element,i.keyframes,i.preStyleProps,i.postStyleProps,s,i.stretchStartingKeyframe);return
this.timelines.push(r),s}incrementTime(i){this.currentTimeline.forwardTime(this.currentTimeline.duration+i)}delayNextStep(i){i>0&&this.currentTimeline.delayNextStep(i)}invokeQuery(i,e,n,s,r,o){let
u=[];if(s&&u.push(this.element),i.length>0){i=(i=i.replace(ZP,"."+this._enterClassName)).replace(eF,"."+this._leaveClassName);let
b=this._driver.query(this.element,i,1!=n);0!==n&&(b=n<0?b.slice(b.length+n,b.length):b.slice(0,n)),u.push(...b)}return!r&&0==u.length&&o.push(function
cP(t){return new re(3014,Ze)}()),u}}class
zu{constructor(i,e,n,s){this._driver=i,this.element=e,this.startTime=n,this._elementTimelineStylesLookup=s,this.dura
tion=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(i){const
e=1==this._keyframes.size&&Object.keys(this._pendingStyles).length;this.duration||e?(this.forwardTime(this.currentTime+i),e&&this.snapshotCurrentStyles()
):this.startTime+=i}fork(i,e){return this.applyStylesToKeyframe(),new
zu(this._driver,i,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(i){this.applyStylesToKeyframe(),this.duration=i,this._loadKeyframe()}_updateStyle(i,e){this._localTimelineStyles[i]=e,this._globalTimelineStyles[i]=e,this._styleSummary[i]={time:this.currentTime,value:e}}allowOnlyTimelineStyles(){return
this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(i){i&&(this._previousKeyframe.easing=i),Object.keys(this._globalTimelineStyles).forEach(e=>{this._backFill[e]=this._globalTimelineStyles[e]||ys,this._currentKeyframe[e]=ys}),this._currentEmptyStepKeyfra
me=this._currentKeyframe}setStyles(i,e,n,s){e&&(this._previousKeyframe.easing=e);const
r=s&&s.params||{},o=function iF(t,i){const e={};let n;return
t.forEach(s=>{"*"===s?(n=n||Object.keys(i),n.forEach(r=>{e[r]=ys})):Ws(s,!1,e)}),e}(i,this._globalTimelineStyles);Object.keys(o).forEach(u=>{const
h=Au(o[u],r,n);this._pendingStyles[u]=h,this._localTimelineStyles.hasOwnProperty(u)||(this._backFill[u]=this._globalTimelineStyles.hasOwnProperty(u)?this._globalTimelineStyles[u]:ys),this._updateStyle(u,h)})}applyStylesToKeyframe(){const
i=this._pendingStyles,e=Object.keys(i);0!=e.length&&(this._pendingStyles={},e.forEach(n=>{this._currentKeyframe[n]=i[n]}),Object.keys(this._localTimelineStyles).forEach(n=>{this._currentKeyframe.hasOwnProperty(n)||(this._currentKeyframe[n]=this._localTimelineStyles[n])}))}snapshotCurrentStyles(){Object.keys(this._localTimelineStyles).forEach(i=>{const
e=this._localTimelineStyles[i];this._pendingStyles[i]=e,this._updateStyle(i,e)})}getFinalKeyframe(){return
thi
s._keyframes.get(this.duration)}get properties(){const i=[];for(let e in
this._currentKeyframe)i.push(e);return
i}mergeTimelineCollectedStyles(i){Object.keys(i._styleSummary).forEach(e=>{const
n=this._styleSummary[e],s=i._styleSummary[e];(!n||s.time>n.time)&&this._updateStyle(e,s.value)})}buildKeyframes(){this.applyStylesToKeyframe();const
i=new Set,e=new Set,n=1===this._keyframes.size&&0===this.duration;let
s=[];this._keyframes.forEach((u,h)=>{const
b=Ws(u,!0);Object.keys(b).forEach(y=>{const
w=b[y];"!"==w?i.add(y):w==ys&&e.add(y)}),n||(b.offset=h/this.duration),s.push(b)});const
r=i.size?Pu(i.values()):[],o=e.size?Pu(e.values()):[];if(n){const
u=s[0],h=Ro(u);u.offset=0,h.offset=1,s=[u,h]}return
Of(this.element,s,r,o,this.duration,this.startTime,this.easing,!1)}}class nF extends
zu{constructor(i,e,n,s,r,o,u=!1){super(i,e,o.delay),this.keyframes=n,this.preStyleProps=s,this.postStyleProps=r,this._stretchStartingKeyframe=u,this.timings={duration:o.duration,delay:o.delay,easing:o.easin
g}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let
i=this.keyframes,{delay:e,duration:n,easing:s}=this.timings;if(this._stretchStartingKeyframe&&e){const
r=[],o=n+e,u=e/o,h=Ws(i[0],!1);h.offset=0,r.push(h);const
b=Ws(i[0],!1);b.offset=Vw(u),r.push(b);const y=i.length-1;for(let w=1;w<=y;w++){let
M=Ws(i[w],!1);M.offset=Vw((e+M.offset*n)/o),r.push(M)}n=o,e=0,s="",i=r}return
Of(this.element,i,this.preStyleProps,this.postStyleProps,n,e,s,!0)}}function
Vw(t,i=3){const e=Math.pow(10,i-1);return Math.round(t*e)/e}class Ff{}class sF extends
Ff{normalizePropertyName(i,e){return Ef(i)}normalizeStyleValue(i,e,n,s){let
r="";const
o=n.toString().trim();if(rF[e]&&0!==n&&"0"!==n)if("number"==typeof
n)r="px";else{const
u=n.match(/^[+-]?[\d\.]+([a-z]*)$/);u&&0==u[1].length&&s.push(function
ZA(t,i){return new re(3005,Ze)}())}return o+r}}const rF=(()=>function oF(t){const
i={};return
t.forEach(e=>i[e]=!0),i}("width,height,minWidth,minHeight,maxWidth,maxHeight,left,top,bottom,rig
ht,fontSize,outlineWidth,outlineOffset,paddingTop,paddingLeft,paddingBottom,paddingRight,marginTop,marginLeft,marginBottom,marginRight,borderRadius,borderWidth,borderTopWidth,borderLeftWidth,borderRightWidth,borderBottomWidth,textIndent,perspective".split(",")))();function
Bw(t,i,e,n,s,r,o,u,h,b,y,w,M){return{type:0,element:t,triggerName:i,isRemovalTransition:s,fromState:e,fromStyles:r,toState:n,toStyles:o,timelines:u,queriedElements:h,preStyleProps:b,postStyleProps:y,totalTime:w,errors:M}}const
Nf={};class
Hw{constructor(i,e,n){this._triggerName=i,this.ast=e,this._stateStyles=n}match(i,e,n,s){return
function aF(t,i,e,n,s){return
t.some(r=>r(i,e,n,s))}(this.ast.matchers,i,e,n,s)}buildStyles(i,e,n){const
s=this._stateStyles["*"],r=this._stateStyles[i],o=s?s.buildStyles(e,n):{};return
r?r.buildStyles(e,n):o}build(i,e,n,s,r,o,u,h,b,y){const
w=[],M=this.ast.options&&this.ast.options.params||Nf,L=this.buildStyles(n,u&&u.params||Nf,w),O=h&&h.params||Nf,N=this.buildStyles(s,O,w),G=new
Set,
P=new Map,J=new
Map,se="void"===s,ke={params:Object.assign(Object.assign({},M),O)},mt=y?[]:Af(i,e,this.ast.animation,r,o,L,N,ke,b,w);let
Ct=0;if(mt.forEach(At=>{Ct=Math.max(At.duration+At.delay,Ct)}),w.length)return
Bw(e,this._triggerName,n,s,se,L,N,[],[],P,J,Ct,w);mt.forEach(At=>{const
hn=At.element,$o=oi(P,hn,{});At.preStyleProps.forEach($i=>$o[$i]=!0);const
ks=oi(J,hn,{});At.postStyleProps.forEach($i=>ks[$i]=!0),hn!==e&&G.add(hn)});const
Ut=Pu(G.values());return Bw(e,this._triggerName,n,s,se,L,N,mt,Ut,P,J,Ct)}}class
lF{constructor(i,e,n){this.styles=i,this.defaultParams=e,this.normalizer=n}buildStyles(i,e){const
n={},s=Ro(this.defaultParams);return Object.keys(i).forEach(r=>{const
o=i[r];null!=o&&(s[r]=o)}),this.styles.styles.forEach(r=>{if("string"!=typeof
r){const o=r;Object.keys(o).forEach(u=>{let
h=o[u];h.length>1&&(h=Au(h,s,e));const
b=this.normalizer.normalizePropertyName(u,e);h=this.normalizer.normalizeStyleValue(u,b,h,e),n[b]=h})}}),n}}class
uF{constructor(i,e,n){this.nam
e=i,this.ast=e,this._normalizer=n,this.transitionFactories=[],this.states={},e.states.forEach(s=>{this.states[s.name]=new
lF(s.style,s.options&&s.options.params||{},n)}),qw(this.states,"true","1"),qw(this.states,"false","0"),e.transitions.forEach(s=>{this.transitionFactories.push(new
Hw(i,s,this.states))}),this.fallbackTransition=function dF(t,i,e){return new
Hw(t,{type:1,animation:{type:2,steps:[],options:null},matchers:[(o,u)=>!0],options:null,queryCount:0,depCount:0},i)}(i,this.states)}get
containsQueries(){return this.ast.queryCount>0}matchTransition(i,e,n,s){return
this.transitionFactories.find(o=>o.match(i,e,n,s))||null}matchStyles(i,e,n){return
this.fallbackTransition.buildStyles(i,e,n)}}function
qw(t,i,e){t.hasOwnProperty(i)?t.hasOwnProperty(e)||(t[e]=t[i]):t.hasOwnProperty(e)&&(t[i]=t[e])}const
pF=new Gu;class
hF{constructor(i,e,n){this.bodyNode=i,this._driver=e,this._normalizer=n,this._animations={},this._playersById={},this.players=[]}register(i,e){const
n=[],r=Rf(this._d
river,e,n,[]);if(n.length)throw function gP(t){return new
re(3503,Ze)}();this._animations[i]=r}_buildPlayer(i,e,n){const
s=i.element,r=vw(0,this._normalizer,0,i.keyframes,e,n);return
this._driver.animate(s,r,i.duration,i.delay,i.easing,[],!0)}create(i,e,n={}){const
s=[],r=this._animations[i];let o;const u=new
Map;if(r?(o=Af(this._driver,e,r,Df,Eu,{},{},n,pF,s),o.forEach(y=>{const
w=oi(u,y.element,{});y.postStyleProps.forEach(M=>w[M]=null)})):(s.push(function
_P(){return new re(3300,Ze)}()),o=[]),s.length)throw function bP(t){return new
re(3504,Ze)}();u.forEach((y,w)=>{Object.keys(y).forEach(M=>{y[M]=this._driver.computeStyle(w,M,ys)})});const
b=$s(o.map(y=>{const w=u.get(y.element);return this._buildPlayer(y,{},w)}));return
this._playersById[i]=b,b.onDestroy(()=>this.destroy(i)),this.players.push(b),b}destroy(i){const
e=this._getPlayer(i);e.destroy(),delete this._playersById[i];const
n=this.players.indexOf(e);n>=0&&this.players.splice(n,1)}_getPlayer(i){const
e=this._playersById[i];
if(!e)throw function vP(t){return new re(3301,Ze)}();return e}listen(i,e,n,s){const
r=wf(e,"","","");return
Cf(this._getPlayer(i),n,r,s),()=>{}}command(i,e,n,s){if("register"==n)return
void this.register(i,s[0]);if("create"==n)return void
this.create(i,e,s[0]||{});const
r=this._getPlayer(i);switch(n){case"play":r.play();break;case"pause":r.pause();break;case"reset":r.reset();break;case"restart":r.restart();break;case"finish":r.finish();break;case"init":r.init();break;case"setPosition":r.setPosition(parseFloat(s[0]));break;case"destroy":this.destroy(i)}}}const
Gw="ng-animate-queued",Vf="ng-animate-disabled",bF=[],Uw={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},vF={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},Ti="__ng_removed";class
Bf{constructor(i,e=""){this.namespaceId=e;const
n=i&&i.hasOwnProperty("value");if(this.value=function TF(t){return
null!=t?t:null}(n?i.value:i),n){const r=Ro(i);delete r.v
alue,this.options=r}else
this.options={};this.options.params||(this.options.params={})}get params(){return
this.options.params}absorbOptions(i){const e=i.params;if(e){const
n=this.options.params;Object.keys(e).forEach(s=>{null==n[s]&&(n[s]=e[s])})}}}const
dl="void",Hf=new Bf(dl);class
CF{constructor(i,e,n){this.id=i,this.hostElement=e,this._engine=n,this.players=[],this._triggers={},this._queue=[],this._elementListeners=new
Map,this._hostClassName="ng-tns-"+i,Si(e,this._hostClassName)}listen(i,e,n,s){if(!this._triggers.hasOwnProperty(e))throw
function CP(t,i){return new re(3302,Ze)}();if(null==n||0==n.length)throw function
yP(t){return new re(3303,Ze)}();if(!function
SF(t){return"start"==t||"done"==t}(n))throw function wP(t,i){return
new re(3400,Ze)}();const
r=oi(this._elementListeners,i,[]),o={name:e,phase:n,callback:s};r.push(o);const
u=oi(this._engine.statesByElement,i,{});return
u.hasOwnProperty(e)||(Si(i,Ru),Si(i,Ru+"-"+e),u[e]=Hf),()=>{this._engine.afterFlush(()=>{const
h=r.in
dexOf(o);h>=0&&r.splice(h,1),this._triggers[e]||delete
u[e]})}}register(i,e){return!this._triggers[i]&&(this._triggers[i]=e,!0)}_getTrigger(i){const
e=this._triggers[i];if(!e)throw function TP(t){return new re(3401,Ze)}();return
e}trigger(i,e,n,s=!0){const r=this._getTrigger(e),o=new qf(this.id,e,i);let
u=this._engine.statesByElement.get(i);u||(Si(i,Ru),Si(i,Ru+"-"+e),this._engine.statesByElement.set(i,u={}));let
h=u[e];const b=new
Bf(n,this.id);if(!(n&&n.hasOwnProperty("value"))&&h&&b.absorbOptions(h.options),u[e]=b,h||(h=Hf),b.value!==dl&&h.value===b.value){if(!function
MF(t,i){const e=Object.keys(t),n=Object.keys(i);if(e.length!=n.length)return!1;for(let
s=0;s<e.length;s++){const
r=e[s];if(!i.hasOwnProperty(r)||t[r]!==i[r])return!1}return!0}(h.params,b.params)){const
O=[],N=r.matchStyles(h.value,h.params,O),G=r.matchStyles(b.value,b.params,O);O.length?this._engine.reportError(O):this._engine.afterFlush(()=>{Tr(i,N),rs(i,G)})}return}const
M=oi(this._engine.playersByElement,i,[]);M
.forEach(O=>{O.namespaceId==this.id&&O.triggerName==e&&O.queued&&O.destroy()});let
E=r.matchTransition(h.value,b.value,i,b.params),L=!1;if(!E){if(!s)return;E=r.fallbackTransition,L=!0}return
this._engine.totalQueuedPlayers++,this._queue.push({element:i,triggerName:e,transition:E,fromState:h,toState:b,player:o,isFallbackTransition:L}),L||(Si(i,Gw),o.onStart(()=>{Lo(i,Gw)})),o.onDone(()=>{let
O=this.players.indexOf(o);O>=0&&this.players.splice(O,1);const
N=this._engine.playersByElement.get(i);if(N){let
G=N.indexOf(o);G>=0&&N.splice(G,1)}}),this.players.push(o),M.push(o),o}deregister(i){delete
this._triggers[i],this._engine.statesByElement.forEach((e,n)=>{delete
e[i]}),this._elementListeners.forEach((e,n)=>{this._elementListeners.set(n,e.filter(s=>s.name!=i))})}clearElementCache(i){this._engine.statesByElement.delete(i),this._elementListeners.delete(i);const
e=this._engine.playersByElement.get(i);e&&(e.forEach(n=>n.destroy()),this._engine.playersByElement.delete(i))}_signalRemovalForIn
nerTriggers(i,e){const
n=this._engine.driver.query(i,Lu,!0);n.forEach(s=>{if(s[Ti])return;const
r=this._engine.fetchNamespacesByElement(s);r.size?r.forEach(o=>o.triggerLeaveAnimation(s,e,!1,!0)):this.clearElementCache(s)}),this._engine.afterFlushAnimationsDone(()=>n.forEach(s=>this.clearElementCache(s)))}triggerLeaveAnimation(i,e,n,s){const
r=this._engine.statesByElement.get(i),o=new Map;if(r){const
u=[];if(Object.keys(r).forEach(h=>{if(o.set(h,r[h].value),this._triggers[h]){const
b=this.trigger(i,h,dl,s);b&&u.push(b)}}),u.length)return
this._engine.markElementAsRemoved(this.id,i,!0,e,o),n&&$s(u).onDone(()=>this._engine.processLeaveNode(i)),!0}return!1}prepareLeaveAnimationListeners(i){const
e=this._elementListeners.get(i),n=this._engine.statesByElement.get(i);if(e&&n){const
s=new Set;e.forEach(r=>{const o=r.name;if(s.has(o))return;s.add(o);const
h=this._triggers[o].fallbackTransition,b=n[o]||Hf,y=new Bf(dl),w=new
qf(this.id,o,i);this._engine.totalQueuedPlayers++,this._queue.push({e
lement:i,triggerName:o,transition:h,fromState:b,toState:y,player:w,isFallbackTransition:!0})})}}removeNode(i,e){const
n=this._engine;if(i.childElementCount&&this._signalRemovalForInnerTriggers(i,e),this.triggerLeaveAnimation(i,e,!0))return;let
s=!1;if(n.totalAnimations){const
r=n.players.length?n.playersByQueriedElement.get(i):[];if(r&&r.length)s=!0;else{let
o=i;for(;o=o.parentNode;)if(n.statesByElement.get(o)){s=!0;break}}}if(this.prepareLeaveAnimationListeners(i),s)n.markElementAsRemoved(this.id,i,!1,e);else{const
r=i[Ti];(!r||r===Uw)&&(n.afterFlush(()=>this.clearElementCache(i)),n.destroyInnerAnimations(i),n._onRemovalComplete(i,e))}}insertNode(i,e){Si(i,this._hostClassName)}drainQueuedTransitions(i){const
e=[];return this._queue.forEach(n=>{const s=n.player;if(s.destroyed)return;const
r=n.element,o=this._elementListeners.get(r);o&&o.forEach(u=>{if(u.name==n.triggerName){const
h=wf(r,n.triggerName,n.fromState.value,n.toState.value);h._data=i,Cf(n.player,u.phase,h,u.callback)}}),s
.markedForDestroy?this._engine.afterFlush(()=>{s.destroy()}):e.push(n)}),this._queue=[],e.sort((n,s)=>{const
r=n.transition.ast.depCount,o=s.transition.ast.depCount;return
0==r||0==o?r-o:this._engine.driver.containsElement(n.element,s.element)?1:-1})}destroy(i){this.players.forEach(e=>e.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,i)}elementContainsData(i){let
e=!1;return
this._elementListeners.has(i)&&(e=!0),e=!!this._queue.find(n=>n.element===i)||e,e}}class
yF{constructor(i,e,n){this.bodyNode=i,this.driver=e,this._normalizer=n,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=(s,r)=>{}}_onRem
ovalComplete(i,e){this.onRemovalComplete(i,e)}get queuedPlayers(){const i=[];return
this._namespaceList.forEach(e=>{e.players.forEach(n=>{n.queued&&i.push(n)})}),i}createNamespace(i,e){const
n=new CF(i,e,this);return
this.bodyNode&&this.driver.containsElement(this.bodyNode,e)?this._balanceNamespaceList(n,e):(this.newHostElements.set(e,n),this.collectEnterElement(e)),this._namespaceLookup[i]=n}_balanceNamespaceList(i,e){const
n=this._namespaceList,s=this.namespacesByHostElement,r=n.length-1;if(r>=0){let
o=!1;if(void 0!==this.driver.getParentElement){let
u=this.driver.getParentElement(e);for(;u;){const h=s.get(u);if(h){const
b=n.indexOf(h);n.splice(b+1,0,i),o=!0;break}u=this.driver.getParentElement(u)}}else
for(let
u=r;u>=0;u--)if(this.driver.containsElement(n[u].hostElement,e)){n.splice(u+1,0,i),o=!0;break}o||n.unshift(i)}else
n.push(i);return s.set(e,i),i}register(i,e){let n=this._namespaceLookup[i];return
n||(n=this.createNamespace(i,e)),n}registerTrigger(i,e,n){let s=this._namespa
ceLookup[i];s&&s.register(e,n)&&this.totalAnimations++}destroy(i,e){if(!i)return;const
n=this._fetchNamespace(i);this.afterFlush(()=>{this.namespacesByHostElement.delete(n.hostElement),delete
this._namespaceLookup[i];const
s=this._namespaceList.indexOf(n);s>=0&&this._namespaceList.splice(s,1)}),this.afterFlushAnimationsDone(()=>n.destroy(e))}_fetchNamespace(i){return
this._namespaceLookup[i]}fetchNamespacesByElement(i){const e=new
Set,n=this.statesByElement.get(i);if(n){const s=Object.keys(n);for(let
r=0;r<s.length;r++){const o=n[s[r]].namespaceId;if(o){const
u=this._fetchNamespace(o);u&&e.add(u)}}}return e}trigger(i,e,n,s){if(ju(e)){const
r=this._fetchNamespace(i);if(r)return
r.trigger(e,n,s),!0}return!1}insertNode(i,e,n,s){if(!ju(e))return;const
r=e[Ti];if(r&&r.setForRemoval){r.setForRemoval=!1,r.setForMove=!0;const
o=this.collectedLeaveElements.indexOf(e);o>=0&&this.collectedLeaveElements.splice(o,1)}if(i){const
o=this._fetchNamespace(i);o&&o.insertNode(e,n)}s&&this.collectEnterE
lement(e)}collectEnterElement(i){this.collectedEnterElements.push(i)}markElementAsDisabled(i,e){e?this.disabledNodes.has(i)||(this.disabledNodes.add(i),Si(i,Vf)):this.disabledNodes.has(i)&&(this.disabledNodes.delete(i),Lo(i,Vf))}removeNode(i,e,n,s){if(ju(e)){const
r=i?this._fetchNamespace(i):null;if(r?r.removeNode(e,s):this.markElementAsRemoved(i,e,!1,s),n){const
o=this.namespacesByHostElement.get(e);o&&o.id!==i&&o.removeNode(e,s)}}else
this._onRemovalComplete(e,s)}markElementAsRemoved(i,e,n,s,r){this.collectedLeaveElements.push(e),e[Ti]={namespaceId:i,setForRemoval:s,hasAnimation:n,removedBeforeQueried:!1,previousTriggersValues:r}}listen(i,e,n,s,r){return
ju(e)?this._fetchNamespace(i).listen(e,n,s,r):()=>{}}_buildInstruction(i,e,n,s,r){return
i.transition.build(this.driver,i.element,i.fromState.value,i.toState.value,n,s,i.fromState.options,i.toState.options,e,r)}destroyInnerAnimations(i){let
e=this.driver.query(i,Lu,!0);e.forEach(n=>this.destroyActiveAnimationsForElement(n)),0!=thi
s.playersByQueriedElement.size&&(e=this.driver.query(i,Mf,!0),e.forEach(n=>this.finishActiveQueriedAnimationOnElement(n)))}destroyActiveAnimationsForElement(i){const
e=this.playersByElement.get(i);e&&e.forEach(n=>{n.queued?n.markedForDestroy=!0:n.destroy()})}finishActiveQueriedAnimationOnElement(i){const
e=this.playersByQueriedElement.get(i);e&&e.forEach(n=>n.finish())}whenRenderingDone(){return
new Promise(i=>{if(this.players.length)return
$s(this.players).onDone(()=>i());i()})}processLeaveNode(i){var e;const
n=i[Ti];if(n&&n.setForRemoval){if(i[Ti]=Uw,n.namespaceId){this.destroyInnerAnimations(i);const
s=this._fetchNamespace(n.namespaceId);s&&s.clearElementCache(i)}this._onRemovalComplete(i,n.setForRemoval)}(null===(e=i.classList)||void
0===e?void
0:e.contains(Vf))&&this.markElementAsDisabled(i,!1),this.driver.query(i,".ng-animate-disabled",!0).forEach(s=>{this.markElementAsDisabled(s,!1)})}flush(i=-1){let
e=[];if(this.newHostElements.size&&(this.newHostElements.forEach((n,s)=>this
._balanceNamespaceList(n,s)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let
n=0;n<this.collectedEnterElements.length;n++)Si(this.collectedEnterElements[n],"ng-star-inserted");if(this._namespaceList.length&&(this.totalQueuedPlayers||this.collectedLeaveElements.length)){const
n=[];try{e=this._flushAnimations(n,i)}finally{for(let s=0;s<n.length;s++)n[s]()}}else
for(let
n=0;n<this.collectedLeaveElements.length;n++)this.processLeaveNode(this.collectedLeaveElements[n]);if(this.totalQueuedPlayers=0,this.collectedEnterElements.length=0,this.collectedLeaveElements.length=0,this._flushFns.forEach(n=>n()),this._flushFns=[],this._whenQuietFns.length){const
n=this._whenQuietFns;this._whenQuietFns=[],e.length?$s(e).onDone(()=>{n.forEach(s=>s())}):n.forEach(s=>s())}}reportError(i){throw
function SP(t){return new re(3402,Ze)}()}_flushAnimations(i,e){const n=new Gu,s=[],r=new
Map,o=[],u=new Map,h=new Map,b=new Map,y=new Set;this.disabledNodes.forEach(a
e=>{y.add(ae);const fe=this.driver.query(ae,".ng-animate-queued",!0);for(let
Se=0;Se<fe.length;Se++)y.add(fe[Se])});const
w=this.bodyNode,M=Array.from(this.statesByElement.keys()),E=$w(M,this.collectedEnterElements),L=new
Map;let O=0;E.forEach((ae,fe)=>{const
Se=Df+O++;L.set(fe,Se),ae.forEach(ot=>Si(ot,Se))});const N=[],G=new Set,P=new
Set;for(let ae=0;ae<this.collectedLeaveElements.length;ae++){const
fe=this.collectedLeaveElements[ae],Se=fe[Ti];Se&&Se.setForRemoval&&(N.push(fe),G.add(fe),Se.hasAnimation?this.driver.query(fe,".ng-star-inserted",!0).forEach(ot=>G.add(ot)):P.add(fe))}const
J=new Map,se=$w(M,Array.from(G));se.forEach((ae,fe)=>{const
Se=Eu+O++;J.set(fe,Se),ae.forEach(ot=>Si(ot,Se))}),i.push(()=>{E.forEach((ae,fe)=>{const
Se=L.get(fe);ae.forEach(ot=>Lo(ot,Se))}),se.forEach((ae,fe)=>{const
Se=J.get(fe);ae.forEach(ot=>Lo(ot,Se))}),N.forEach(ae=>{this.processLeaveNode(ae)})});const
ke=[],mt=[];for(let
ae=this._namespaceList.length-1;ae>=0;ae--)this._namespaceList[ae].drainQ
ueuedTransitions(e).forEach(Se=>{const
ot=Se.player,Cn=Se.element;if(ke.push(ot),this.collectedEnterElements.length){const
$n=Cn[Ti];if($n&&$n.setForMove){if($n.previousTriggersValues&&$n.previousTriggersValues.has(Se.triggerName)){const
Pr=$n.previousTriggersValues.get(Se.triggerName),tr=this.statesByElement.get(Se.element);tr&&tr[Se.triggerName]&&(tr[Se.triggerName].value=Pr)}return
void ot.destroy()}}const
us=!w||!this.driver.containsElement(w,Cn),ui=J.get(Cn),er=L.get(Cn),zt=this._buildInstruction(Se,n,er,ui,us);if(zt.errors&&zt.errors.length)return
void mt.push(zt);if(us)return
ot.onStart(()=>Tr(Cn,zt.fromStyles)),ot.onDestroy(()=>rs(Cn,zt.toStyles)),void
s.push(ot);if(Se.isFallbackTransition)return
ot.onStart(()=>Tr(Cn,zt.fromStyles)),ot.onDestroy(()=>rs(Cn,zt.toStyles)),void
s.push(ot);const
AS=[];zt.timelines.forEach($n=>{$n.stretchStartingKeyframe=!0,this.disabledNodes.has($n.element)||AS.push($n)}),zt.timelines=AS,n.append(Cn,zt.timelines),o.push({instruction:zt,player:ot,
element:Cn}),zt.queriedElements.forEach($n=>oi(u,$n,[]).push(ot)),zt.preStyleProps.forEach(($n,Pr)=>{const
tr=Object.keys($n);if(tr.length){let Fr=h.get(Pr);Fr||h.set(Pr,Fr=new
Set),tr.forEach(xg=>Fr.add(xg))}}),zt.postStyleProps.forEach(($n,Pr)=>{const
tr=Object.keys($n);let Fr=b.get(Pr);Fr||b.set(Pr,Fr=new
Set),tr.forEach(xg=>Fr.add(xg))})});if(mt.length){const
ae=[];mt.forEach(fe=>{ae.push(function xP(t,i){return new
re(3505,Ze)}())}),ke.forEach(fe=>fe.destroy()),this.reportError(ae)}const Ct=new
Map,Ut=new Map;o.forEach(ae=>{const
fe=ae.element;n.has(fe)&&(Ut.set(fe,fe),this._beforeAnimationBuild(ae.player.namespaceId,ae.instruction,Ct))}),s.forEach(ae=>{const
fe=ae.element;this._getPreviousPlayers(fe,!1,ae.namespaceId,ae.triggerName,null).forEach(ot=>{oi(Ct,fe,[]).push(ot),ot.destroy()})});const
At=N.filter(ae=>Kw(ae,h,b)),hn=new
Map;jw(hn,this.driver,P,b,ys).forEach(ae=>{Kw(ae,h,b)&&At.push(ae)});const
ks=new Map;E.forEach((ae,fe)=>{jw(ks,this.driver,new Set(ae),h,"!")}),At.fo
rEach(ae=>{const
fe=hn.get(ae),Se=ks.get(ae);hn.set(ae,Object.assign(Object.assign({},fe),Se))});const
$i=[],Wo=[],Ko={};o.forEach(ae=>{const{element:fe,player:Se,instruction:ot}=ae;if(n.has(fe)){if(y.has(fe))return
Se.onDestroy(()=>rs(fe,ot.toStyles)),Se.disabled=!0,Se.overrideTotalTime(ot.totalTime),void
s.push(Se);let Cn=Ko;if(Ut.size>1){let ui=fe;const er=[];for(;ui=ui.parentNode;){const
zt=Ut.get(ui);if(zt){Cn=zt;break}er.push(ui)}er.forEach(zt=>Ut.set(zt,Cn))}const
us=this._buildAnimation(Se.namespaceId,ot,Ct,r,ks,hn);if(Se.setRealPlayer(us),Cn===Ko)$i.push(Se);else{const
ui=this.playersByElement.get(Cn);ui&&ui.length&&(Se.parentPlayer=$s(ui)),s.push(Se)}}else
Tr(fe,ot.fromStyles),Se.onDestroy(()=>rs(fe,ot.toStyles)),Wo.push(Se),y.has(fe)&&s.push(Se)}),Wo.forEach(ae=>{const
fe=r.get(ae.element);if(fe&&fe.length){const
Se=$s(fe);ae.setRealPlayer(Se)}}),s.forEach(ae=>{ae.parentPlayer?ae.syncPlayerEvents(ae.parentPlayer):ae.destroy()});for(let
ae=0;ae<N.length;ae++){const fe=N[ae
],Se=fe[Ti];if(Lo(fe,Eu),Se&&Se.hasAnimation)continue;let ot=[];if(u.size){let
us=u.get(fe);us&&us.length&&ot.push(...us);let
ui=this.driver.query(fe,Mf,!0);for(let er=0;er<ui.length;er++){let
zt=u.get(ui[er]);zt&&zt.length&&ot.push(...zt)}}const
Cn=ot.filter(us=>!us.destroyed);Cn.length?xF(this,fe,Cn):this.processLeaveNode(fe)}return
N.length=0,$i.forEach(ae=>{this.players.push(ae),ae.onDone(()=>{ae.destroy();const
fe=this.players.indexOf(ae);this.players.splice(fe,1)}),ae.play()}),$i}elementContainsData(i,e){let
n=!1;const s=e[Ti];return
s&&s.setForRemoval&&(n=!0),this.playersByElement.has(e)&&(n=!0),this.playersByQueriedElement.has(e)&&(n=!0),this.statesByElement.has(e)&&(n=!0),this._fetchNamespace(i).elementContainsData(e)||n}afterFlush(i){this._flushFns.push(i)}afterFlushAnimationsDone(i){this._whenQuietFns.push(i)}_getPreviousPlayers(i,e,n,s,r){let
o=[];if(e){const u=this.playersByQueriedElement.get(i);u&&(o=u)}else{const
u=this.playersByElement.get(i);if(u){const h=!r||r==dl;
u.forEach(b=>{b.queued||!h&&b.triggerName!=s||o.push(b)})}}return(n||s)&&(o=o.filter(u=>!(n&&n!=u.namespaceId||s&&s!=u.triggerName))),o}_beforeAnimationBuild(i,e,n){const
r=e.element,o=e.isRemovalTransition?void 0:i,u=e.isRemovalTransition?void
0:e.triggerName;for(const h of e.timelines){const
b=h.element,y=b!==r,w=oi(n,b,[]);this._getPreviousPlayers(b,y,o,u,e.toState).forEach(E=>{const
L=E.getRealPlayer();L.beforeDestroy&&L.beforeDestroy(),E.destroy(),w.push(E)})}Tr(r,e.fromStyles)}_buildAnimation(i,e,n,s,r,o){const
u=e.triggerName,h=e.element,b=[],y=new Set,w=new Set,M=e.timelines.map(L=>{const
O=L.element;y.add(O);const N=O[Ti];if(N&&N.removedBeforeQueried)return new
cl(L.duration,L.delay);const G=O!==h,P=function DF(t){const i=[];return
Ww(t,i),i}((n.get(O)||bF).map(Ct=>Ct.getRealPlayer())).filter(Ct=>!!Ct.element&&Ct.element===O),J=r.get(O),se=o.get(O),ke=vw(0,this._normalizer,0,L.keyframes,J,se),mt=this._buildPlayer(L,ke,P);if(L.subTimeline&&s&&w.add(O),G){const
Ct=new qf(i,u,
O);Ct.setRealPlayer(mt),b.push(Ct)}return
mt});b.forEach(L=>{oi(this.playersByQueriedElement,L.element,[]).push(L),L.onDone(()=>function
wF(t,i,e){let n;if(t instanceof Map){if(n=t.get(i),n){if(n.length){const
s=n.indexOf(e);n.splice(s,1)}0==n.length&&t.delete(i)}}else
if(n=t[i],n){if(n.length){const s=n.indexOf(e);n.splice(s,1)}0==n.length&&delete
t[i]}return
n}(this.playersByQueriedElement,L.element,L))}),y.forEach(L=>Si(L,Iw));const
E=$s(M);return
E.onDestroy(()=>{y.forEach(L=>Lo(L,Iw)),rs(h,e.toStyles)}),w.forEach(L=>{oi(s,L,[]).push(E)}),E}_buildPlayer(i,e,n){return
e.length>0?this.driver.animate(i.element,e,i.duration,i.delay,i.easing,n):new
cl(i.duration,i.delay)}}class
qf{constructor(i,e,n){this.namespaceId=i,this.triggerName=e,this.element=n,this._player=new
cl,this._containsRealPlayer=!1,this._queuedCallbacks={},this.destroyed=!1,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}setRealPlayer(i){this._containsRealPlayer||(this._player=i,Object.keys(
this._queuedCallbacks).forEach(e=>{this._queuedCallbacks[e].forEach(n=>Cf(i,e,void
0,n))}),this._queuedCallbacks={},this._containsRealPlayer=!0,this.overrideTotalTime(i.totalTime),this.queued=!1)}getRealPlayer(){return
this._player}overrideTotalTime(i){this.totalTime=i}syncPlayerEvents(i){const
e=this._player;e.triggerCallback&&i.onStart(()=>e.triggerCallback("start")),i.onDone(()=>this.finish()),i.onDestroy(()=>this.destroy())}_queueEvent(i,e){oi(this._queuedCallbacks,i,[]).push(e)}onDone(i){this.queued&&this._queueEvent("done",i),this._player.onDone(i)}onStart(i){this.queued&&this._queueEvent("start",i),this._player.onStart(i)}onDestroy(i){this.queued&&this._queueEvent("destroy",i),this._player.onDestroy(i)}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,th
is._player.destroy()}reset(){!this.queued&&this._player.reset()}setPosition(i){this.queued||this._player.setPosition(i)}getPosition(){return
this.queued?0:this._player.getPosition()}triggerCallback(i){const
e=this._player;e.triggerCallback&&e.triggerCallback(i)}}function ju(t){return
t&&1===t.nodeType}function zw(t,i){const e=t.style.display;return
t.style.display=null!=i?i:"none",e}function jw(t,i,e,n,s){const
r=[];e.forEach(h=>r.push(zw(h)));const o=[];n.forEach((h,b)=>{const
y={};h.forEach(w=>{const
M=y[w]=i.computeStyle(b,w,s);(!M||0==M.length)&&(b[Ti]=vF,o.push(b))}),t.set(b,y)});let
u=0;return e.forEach(h=>zw(h,r[u++])),o}function $w(t,i){const e=new
Map;if(t.forEach(u=>e.set(u,[])),0==i.length)return e;const s=new Set(i),r=new
Map;function o(u){if(!u)return 1;let h=r.get(u);if(h)return h;const b=u.parentNode;return
h=e.has(b)?b:s.has(b)?1:o(b),r.set(u,h),h}return i.forEach(u=>{const
h=o(u);1!==h&&e.get(h).push(u)}),e}function Si(t,i){var
e;null===(e=t.classList)||void 0===e||
e.add(i)}function Lo(t,i){var e;null===(e=t.classList)||void 0===e||e.remove(i)}function
xF(t,i,e){$s(e).onDone(()=>t.processLeaveNode(i))}function Ww(t,i){for(let
e=0;e<t.length;e++){const n=t[e];n instanceof _w?Ww(n.players,i):i.push(n)}}function
Kw(t,i,e){const n=e.get(t);if(!n)return!1;let s=i.get(t);return
s?n.forEach(r=>s.add(r)):i.set(t,n),e.delete(t),!0}class
$u{constructor(i,e,n){this.bodyNode=i,this._driver=e,this._normalizer=n,this._triggerCache={},this.onRemovalComplete=(s,r)=>{},this._transitionEngine=new
yF(i,e,n),this._timelineEngine=new
hF(i,e,n),this._transitionEngine.onRemovalComplete=(s,r)=>this.onRemovalComplete(s,r)}registerTrigger(i,e,n,s,r){const
o=i+"-"+s;let u=this._triggerCache[o];if(!u){const
h=[],y=Rf(this._driver,r,h,[]);if(h.length)throw function mP(t,i){return new
re(3404,Ze)}();u=function cF(t,i,e){return new
uF(t,i,e)}(s,y,this._normalizer),this._triggerCache[o]=u}this._transitionEngine.registerTrigger(e,s,u)}register(i,e){this._transitionEngine.regi
ster(i,e)}destroy(i,e){this._transitionEngine.destroy(i,e)}onInsert(i,e,n,s){this._transitionEngine.insertNode(i,e,n,s)}onRemove(i,e,n,s){this._transitionEngine.removeNode(i,e,s||!1,n)}disableAnimations(i,e){this._transitionEngine.markElementAsDisabled(i,e)}process(i,e,n,s){if("(a)"==n.charAt(0)){const[r,o]=Cw(n);this._timelineEngine.command(r,e,o,s)}else
this._transitionEngine.trigger(i,e,n,s)}listen(i,e,n,s,r){if("(a)"==n.charAt(0)){const[o,u]=Cw(n);return
this._timelineEngine.listen(o,e,u,r)}return
this._transitionEngine.listen(i,e,n,s,r)}flush(i=-1){this._transitionEngine.flush(i)}get
players(){return
this._transitionEngine.players.concat(this._timelineEngine.players)}whenRenderingDone(){return
this._transitionEngine.whenRenderingDone()}}let IF=(()=>{class
t{constructor(e,n,s){this._element=e,this._startStyles=n,this._endStyles=s,this._state=0;let
r=t.initialStylesByElement.get(e);r||t.initialStylesByElement.set(e,r={}),this._initialStyles=r}start(){this._state<1&&(this._startStyles
&&rs(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(rs(this._element,this._initialStyles),this._endStyles&&(rs(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(t.initialStylesByElement.delete(this._element),this._startStyles&&(Tr(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(Tr(this._element,this._endStyles),this._endStyles=null),rs(this._element,this._initialStyles),this._state=3)}}return
t.initialStylesByElement=new WeakMap,t})();function Gf(t){let i=null;const
e=Object.keys(t);for(let n=0;n<e.length;n++){const
s=e[n];EF(s)&&(i=i||{},i[s]=t[s])}return i}function
EF(t){return"display"===t||"position"===t}class
Qw{constructor(i,e,n,s){this.element=i,this.keyframes=e,this.options=n,this._specialStyles=s,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=n.duration,this._delay=n.delay||0,this.time=this._duration+this._delay}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(i=>i()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;const
i=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,i,this.options),this._finalKeyframe=i.length?i[i.length-1]:{},this.domPlayer.addEventListener("finish",()=>this._onFinish())}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_triggerWebAnimation(i,e,n){return
i.animate(e,n)}onStart(i){this._onStartFns.push(i)}onDone(i){this._onDoneFns.push(i)}onDestroy(i){this._onDestroyFns.push(i)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(i=>i()),this._onStartFns=[],this._started=!0,this._specialStyles&&this._specialStyles.start()),this.domPlaye
r.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(i=>i()),this._onDestroyFns=[])}setPosition(i){void
0===this.domPlayer&&this.init(),this.domPlayer.currentTime=i*this.time}getPosition(){return
this.domPlayer.currentTime/this.time}get totalTime(){return
this._delay+this._duration}beforeDestroy(){const i={};if(this.hasStarted()){const
e=this._finalKeyframe;Object.keys(e).forEach(n=>{"offset"!=n&&(i[n]=this._finished?e[n]:Aw(this.element,n))})}this.currentSnapshot=i}triggerCallback(i){cons
t
e="start"==i?this._onStartFns:this._onDoneFns;e.forEach(n=>n()),e.length=0}}class
RF{validateStyleProperty(i){return
Sw(i)}matchesElement(i,e){return!1}containsElement(i,e){return
xw(i,e)}getParentElement(i){return Sf(i)}query(i,e,n){return
Dw(i,e,n)}computeStyle(i,e,n){return
window.getComputedStyle(i)[e]}animate(i,e,n,s,r,o=[]){const
h={duration:n,delay:s,fill:0==s?"both":"forwards"};r&&(h.easing=r);const
b={},y=o.filter(M=>M instanceof Qw);(function PP(t,i){return
0===t||0===i})(n,s)&&y.forEach(M=>{let
E=M.currentSnapshot;Object.keys(E).forEach(L=>b[L]=E[L])}),e=function FP(t,i,e){const
n=Object.keys(e);if(n.length&&i.length){let
r=i[0],o=[];if(n.forEach(u=>{r.hasOwnProperty(u)||o.push(u),r[u]=e[u]}),o.length)for(var
s=1;s<i.length;s++){let u=i[s];o.forEach(function(h){u[h]=Aw(t,h)})}}return
i}(i,e=e.map(M=>Ws(M,!1)),b);const w=function kF(t,i){let e=null,n=null;return
Array.isArray(i)&&i.length?(e=Gf(i[0]),i.length>1&&(n=Gf(i[i.length-1]))):i&&(e=Gf(i)),e||n?new
IF(t,e,n):null
}(i,e);return new Qw(i,e,h,w)}}let LF=(()=>{class t extends
hw{constructor(e,n){super(),this._nextAnimationId=0,this._renderer=e.createRenderer(n.body,{id:"0",encapsulation:ki.None,styles:[],data:{animation:[]}})}build(e){const
n=this._nextAnimationId.toString();this._nextAnimationId++;const
s=Array.isArray(e)?mw(e):e;return Jw(this._renderer,null,n,"register",[s]),new
OF(n,this._renderer)}}return t.\u0275fac=function(e){return
new(e||t)(K(Ba),K(Xt))},t.\u0275prov=X({token:t,factory:t.\u0275fac}),t})();class OF
extends class zA{}{constructor(i,e){super(),this._id=i,this._renderer=e}create(i,e){return
new AF(this._id,i,e||{},this._renderer)}}class
AF{constructor(i,e,n,s){this.id=i,this.element=e,this._renderer=s,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",n)}_listen(i,e){return
this._renderer.listen(this.element,`@@${this.id}:${i}`,e)}_command(i,...e){return
Jw(this._renderer,this.element,this.id,i,e)}onDone(i){this._listen("done",i)}onStart(i){thi
s._listen("start",i)}onDestroy(i){this._listen("destroy",i)}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(i){this._command("setPosition",i)}getPosition(){var
i,e;return null!==(e=null===(i=this._renderer.engine.players[+this.id])||void 0===i?void
0:i.getPosition())&&void 0!==e?e:0}}function Jw(t,i,e,n,s){return
t.setProperty(i,`@@${e}:${n}`,s)}const Yw="@.disabled";let PF=(()=>{class
t{constructor(e,n,s){this.delegate=e,this.engine=n,this._zone=s,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new
Map,this._cdRecurDepth=0,this.promise=Promise.resolve(0),n.onRemovalComplete=(r,o)=>{const
u=null==o?void 0:o.parentNode(r);u&&o.removeChild(u,r)}}createRenderer(e,n){const
r=this.delegate.crea
teRenderer(e,n);if(!(e&&n&&n.data&&n.data.animation)){let
y=this._rendererCache.get(r);return y||(y=new
Zw("",r,this.engine),this._rendererCache.set(r,y)),y}const
o=n.id,u=n.id+"-"+this._currentId;this._currentId++,this.engine.register(u,e);const
h=y=>{Array.isArray(y)?y.forEach(h):this.engine.registerTrigger(o,u,e,y.name,y)};return
n.data.animation.forEach(h),new
FF(this,u,r,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){this.promise.then(()=>{this._microtaskId++})}scheduleListenerCallback(e,n,s){e>=0&&e<this._microtaskId?this._zone.run(()=>n(s)):(0==this._animationCallbacksBuffer.length&&Promise.resolve(null).then(()=>{this._zone.run(()=>{this._animationCallbacksBuffer.forEach(r=>{const[o,u]=r;o(u)}),this._animationCallbacksBuffer=[]})}),this._animationCallbacksBuffer.push([n,s]))}end(){this._cdRecurDepth--,0==this._cdRecurDepth&&this._zone.runOutsideAngular(()=>{this._scheduleCountTask(),this.engine.flush(this._microtaskI
d)}),this.delegate.end&&this.delegate.end()}whenRenderingDone(){return
this.engine.whenRenderingDone()}}return t.\u0275fac=function(e){return
new(e||t)(K(Ba),K($u),K(nt))},t.\u0275prov=X({token:t,factory:t.\u0275fac}),t})();class
Zw{constructor(i,e,n){this.namespaceId=i,this.delegate=e,this.engine=n,this.destroyNode=this.delegate.destroyNode?s=>e.destroyNode(s):null}get
data(){return
this.delegate.data}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.delegate.destroy()}createElement(i,e){return
this.delegate.createElement(i,e)}createComment(i){return
this.delegate.createComment(i)}createText(i){return
this.delegate.createText(i)}appendChild(i,e){this.delegate.appendChild(i,e),this.engine.onInsert(this.namespaceId,e,i,!1)}insertBefore(i,e,n,s=!0){this.delegate.insertBefore(i,e,n),this.engine.onInsert(this.namespaceId,e,i,s)}removeChild(i,e,n){this.engine.onRemove(this.namespaceId,e,this.delegate,n)}selectRootElement(i,e){return
this.delegate.selectRootElement(i,e)}p
arentNode(i){return this.delegate.parentNode(i)}nextSibling(i){return
this.delegate.nextSibling(i)}setAttribute(i,e,n,s){this.delegate.setAttribute(i,e,n,s)}removeAttribute(i,e,n){this.delegate.removeAttribute(i,e,n)}addClass(i,e){this.delegate.addClass(i,e)}removeClass(i,e){this.delegate.removeClass(i,e)}setStyle(i,e,n,s){this.delegate.setStyle(i,e,n,s)}removeStyle(i,e,n){this.delegate.removeStyle(i,e,n)}setProperty(i,e,n){"@"==e.charAt(0)&&e==Yw?this.disableAnimations(i,!!n):this.delegate.setProperty(i,e,n)}setValue(i,e){this.delegate.setValue(i,e)}listen(i,e,n){return
this.delegate.listen(i,e,n)}disableAnimations(i,e){this.engine.disableAnimations(i,e)}}class
FF extends
Zw{constructor(i,e,n,s){super(e,n,s),this.factory=i,this.namespaceId=e}setProperty(i,e,n){"(a)"==e.charAt(0)?"."==e.charAt(1)&&e==Yw?this.disableAnimations(i,n=void
0===n||!!n):this.engine.process(this.namespaceId,i,e.substr(1),n):this.delegate.setProperty(i,e,n)}listen(i,e,n){if("@"==e.charAt(0)){const
s=function N
F(t){switch(t){case"body":return document.body;case"document":return
document;case"window":return window;default:return t}}(i);let
r=e.substr(1),o="";return"(a)"!=r.charAt(0)&&([r,o]=function
VF(t){const
i=t.indexOf(".");return[t.substring(0,i),t.substr(i+1)]}(r)),this.engine.listen(this.namespaceId,s,r,o,u=>{this.factory.scheduleListenerCallback(u._data||-1,n,u)})}return
this.delegate.listen(i,e,n)}}let BF=(()=>{class t extends
$u{constructor(e,n,s){super(e.body,n,s)}ngOnDestroy(){this.flush()}}return
t.\u0275fac=function(e){return
new(e||t)(K(Xt),K(xf),K(Ff))},t.\u0275prov=X({token:t,factory:t.\u0275fac}),t})();const
Xw=new
be("AnimationModuleType"),eT=[{provide:hw,useClass:LF},{provide:Ff,useFactory:function
HF(){return new sF}},{provide:$u,useClass:BF},{provide:Ba,useFactory:function
qF(t,i,e){return new PF(t,i,e)},deps:[ru,$u,nt]}],tT=[{provide:xf,useFactory:()=>new
RF},{provide:Xw,useValue:"BrowserAnimations"},...eT],GF=[{provide:xf,useClass:Mw},{provide:Xw,useValue:"NoopAnimati
ons"},...eT];let UF=(()=>{class t{static
withConfig(e){return{ngModule:t,providers:e.disableAnimations?GF:tT}}}return
t.\u0275fac=function(e){return
new(e||t)},t.\u0275mod=he({type:t}),t.\u0275inj=ue({providers:tT,imports:[qy]}),t})();class
Z{static equals(i,e,n){return
n?this.resolveFieldData(i,n)===this.resolveFieldData(e,n):this.equalsByValue(i,e)}static
equalsByValue(i,e){if(i===e)return!0;if(i&&e&&"object"==typeof
i&&"object"==typeof e){var
r,o,u,n=Array.isArray(i),s=Array.isArray(e);if(n&&s){if((o=i.length)!=e.length)return!1;for(r=o;0!=r--;)if(!this.equalsByValue(i[r],e[r]))return!1;return!0}if(n!=s)return!1;var
h=i instanceof Date,b=e instanceof Date;if(h!=b)return!1;if(h&&b)return
i.getTime()==e.getTime();var y=i instanceof RegExp,w=e instanceof
RegExp;if(y!=w)return!1;if(y&&w)return i.toString()==e.toString();var
M=Object.keys(i);if((o=M.length)!==Object.keys(e).length)return!1;for(r=o;0!=r--;)if(!Object.prototype.hasOwnProperty.call(e,M[r]))return!1;for(r=o;0!=r--;)if(!th
is.equalsByValue(i[u=M[r]],e[u]))return!1;return!0}return i!=i&&e!=e}static
resolveFieldData(i,e){if(i&&e){if(this.isFunction(e))return
e(i);if(-1==e.indexOf("."))return i[e];{let n=e.split("."),s=i;for(let
r=0,o=n.length;r<o;++r){if(null==s)return null;s=s[n[r]]}return s}}return null}static
isFunction(i){return!!(i&&i.constructor&&i.call&&i.apply)}static
reorderArray(i,e,n){i&&e!==n&&(n>=i.length&&(n%=i.length,e%=i.length),i.splice(n,0,i.splice(e,1)[0]))}static
insertIntoOrderedArray(i,e,n,s){if(n.length>0){let r=!1;for(let
o=0;o<n.length;o++)if(this.findIndexInList(n[o],s)>e){n.splice(o,0,i),r=!0;break}r||n.push(i)}else
n.push(i)}static findIndexInList(i,e){let n=-1;if(e)for(let
s=0;s<e.length;s++)if(e[s]==i){n=s;break}return n}static
contains(i,e){if(null!=i&&e&&e.length)for(let n of
e)if(this.equals(i,n))return!0;return!1}static removeAccents(i){return
i&&i.search(/[\xC0-\xFF]/g)>-1&&(i=i.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")),i}static
isEmpty(i){return null==i||""===i||Array.isArray(i)&&0===i.length||!(i
instanceof Date)&&"object"==typeof
i&&0===Object.keys(i).length}static isNotEmpty(i){return!this.isEmpty(i)}}var
nT=0;function pl(){return"pr_id_"+ ++nT}var dt=function zF(){let t=[];const
s=r=>r&&parseInt(r.style.zIndex,10)||0;return{get:s,set:(r,o,u)=>{o&&(o.style.zIndex=String(((r,o)=>{let
u=t.length>0?t[t.length-1]:{key:r,value:o},h=u.value+(u.key===r?0:o)+1;return
t.push({key:r,value:h}),h})(r,u)))},clear:r=>{r&&((r=>{t=t.filter(o=>o.value!==r)})(s(r)
),r.style.zIndex="")},getCurrent:()=>t.length>0?t[t.length-1].value:0}}();const
iT=["*"];let _t=(()=>{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.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})(),zn=(()=>{class
t{constructor(){this.ripple=!1,this.filterMatchModeOptions={text:[_t.STARTS_WITH,_t.CONTAINS,_t.NOT_CONTAINS,_t.ENDS_WITH,_t.EQUALS,_t.NOT_EQUALS],numeric:[_t.EQUALS,_t.NOT_EQUALS,_t.LESS_THAN,_t.LESS_THAN_OR_EQUAL_TO,_t.GREATER_THAN,_t.GREATER_THAN_OR_EQUAL_TO],date:[_t.DATE_IS,_t.DATE_IS_NOT,_t.DATE_BEFORE,_t.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:1e3,tooltip:1100},this.translationSource=new
ct,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=X({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),Ft=(()=>{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.A
CCEPT="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="dayNamesMin",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})(),hl=(()=>{class
t{constructor(){this.filters={startsWith:(e,n,s)=>{if(null==n||""===n.trim())return!0;if(null==e)return!1;let
r=Z.removeAccents(n.toString()).toLocaleLowerCase(s);return
Z.removeAccents(e.toString()).toLocaleLowerCase(s).slice(0,r.length)===r},contains:(e,n,s)=>{if(null==n||"string"==typeof
n&&""===n.trim())return!0;if(null==e)return!1;let
r=Z.removeAccents(n.toString()).toLocaleLowerCase(s);return-1!==Z.removeAccents(e.toString()).toLocaleLowerCase(s).indexOf(r)},notContains:(e,n,s)=>{if(nul
l==n||"string"==typeof
n&&""===n.trim())return!0;if(null==e)return!1;let
r=Z.removeAccents(n.toString()).toLocaleLowerCase(s);return-1===Z.removeAccents(e.toString()).toLocaleLowerCase(s).indexOf(r)},endsWith:(e,n,s)=>{if(null==n||""===n.trim())return!0;if(null==e)return!1;let
r=Z.removeAccents(n.toString()).toLocaleLowerCase(s),o=Z.removeAccents(e.toString()).toLocaleLowerCase(s);return-1!==o.indexOf(r,o.length-r.length)},equals:(e,n,s)=>null==n||"string"==typeof
n&&""===n.trim()||null!=e&&(e.getTime&&n.getTime?e.getTime()===n.getTime():Z.removeAccents(e.toString()).toLocaleLowerCase(s)==Z.removeAccents(n.toString()).toLocaleLowerCase(s)),notEquals:(e,n,s)=>!(null==n||"string"==typeof
n&&""===n.trim()||null!=e&&(e.getTime&&n.getTime?e.getTime()===n.getTime():Z.removeAccents(e.toString()).toLocaleLowerCase(s)==Z.removeAccents(n.toString()).toLocaleLowerCase(s))),in:(e,n)=>{if(null==n||0===n.length)return!0;for(let
s=0;s<n.length;s++)if(Z.equals(e,n[s]))return!0;return!1},between:(e,
n)=>null==n||null==n[0]||null==n[1]||null!=e&&(e.getTime?n[0].getTime()<=e.getTime()&&e.getTime()<=n[1].getTime():n[0]<=e&&e<=n[1]),lt:(e,n,s)=>null==n||null!=e&&(e.getTime&&n.getTime?e.getTime()<n.getTime():e<n),lte:(e,n,s)=>null==n||null!=e&&(e.getTime&&n.getTime?e.getTime()<=n.getTime():e<=n),gt:(e,n,s)=>null==n||null!=e&&(e.getTime&&n.getTime?e.getTime()>n.getTime():e>n),gte:(e,n,s)=>null==n||null!=e&&(e.getTime&&n.getTime?e.getTime()>=n.getTime():e>=n),is:(e,n,s)=>this.filters.equals(e,n,s),isNot:(e,n,s)=>this.filters.notEquals(e,n,s),before:(e,n,s)=>this.filters.lt(e,n,s),after:(e,n,s)=>this.filters.gt(e,n,s),dateIs:(e,n)=>null==n||null!=e&&e.toDateString()===n.toDateString(),dateIsNot:(e,n)=>null==n||null!=e&&e.toDateString()!==n.toDateString(),dateBefore:(e,n)=>null==n||null!=e&&e.getTime()<n.getTime(),dateAfter:(e,n)=>null==n||null!=e&&e.getTime()>n.getTime()}}filter(e,n,s,r,o){let
u=[];if(e)for(let h of e)for(let b of n){let
y=Z.resolveFieldData(h,b);if(this.filters[r](y,s
,o)){u.push(h);break}}return u}register(e,n){this.filters[e]=n}}return
t.\u0275fac=function(e){return
new(e||t)},t.\u0275prov=X({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),Gi=(()=>{class
t{constructor(){this.messageSource=new ct,this.clearSource=new
ct,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=X({token:t,factory:t.\u0275fac}),t})(),Ks=(()=>{class
t{constructor(){this.clickSource=new
ct,this.clickObservable=this.clickSource.asObservable()}add(e){e&&this.clickSource.next(e)}}return
t.\u0275fac=function(e){return
new(e||t)},t.\u0275prov=X({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),ml=(()=>{class
t{}return t.AND="and",t.OR="or",t})(),Oo=(()=>{class t{}return
t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=z({
type:t,selectors:[["p-header"]],ngContentSelectors:iT,decls:1,vars:0,template:function(e,n){1&e&&(Sn(),St(0))},encapsulation:2}),t})(),fl=(()=>{class
t{}return t.\u0275fac=function(e){return
new(e||t)},t.\u0275cmp=z({type:t,selectors:[["p-footer"]],ngContentSelectors:iT,decls:1,vars:0,template:function(e,n){1&e&&(Sn(),St(0))},encapsulation:2}),t})(),ne=(()=>{class
t{constructor(e){this.template=e}getType(){return this.name}}return
t.\u0275fac=function(e){return
new(e||t)(D(bi))},t.\u0275dir=le({type:t,selectors:[["","pTemplate",""]],inputs:{type:"type",name:["pTemplate","name"]}}),t})(),Nt=(()=>{class
t{}return t.\u0275fac=function(e){return
new(e||t)},t.\u0275mod=he({type:t}),t.\u0275inj=ue({imports:[[Fe]]}),t})();function
jF(t,i){if(1&t&&(l(0,"span",9),g(1),c()),2&t){const
e=d();a(1),T(" ",e.header," ")}}function
$F(t,i){1&t&&Y(0)}function
WF(t,i){1&t&&St(0,1,["*ngIf","hasHeaderFacet"])}function
KF(t,i){1&t&&Y(0)}function
QF(t,i){if(1&t&&(de(0),_(1,KF,1,0,"ng-container",5),pe()),2
&t){const e=d();a(1),p("ngTemplateOutlet",e.contentTemplate)}}const
JF=["*",[["p-header"]]],YF=function(t){return{"p-accordion-tab-active":t}},ZF=function(t,i){return{"p-highlight":t,"p-disabled":i}},sT=function(t){return{transitionParams:t}},XF=function(t){return{value:"visible",params:t}},eN=function(t){return{value:"hidden",params:t}},tN=["*","p-header"],nN=["*"];let
iN=0,Ts=(()=>{class
t{constructor(e,n){this.changeDetector=n,this.cache=!0,this.selectedChange=new
H,this.transitionOptions="400ms cubic-bezier(0.86, 0, 0.07,
1)",this.id="p-accordiontab-"+iN++,this.accordion=e}get selected(){return
this._selected}set
selected(e){this._selected=e,this.loaded||(this._selected&&this.cache&&(this.loaded=!0),this.changeDetector.detectChanges())}ngAfterContentInit(){this.templates.forEach(e=>{switch(e.getType()){case"content":default:this.contentTemplate=e.template;break;case"header":this.headerTemplate=e.template}})}toggle(e){if(this.disabled)return!1;let
n=this.findTabIndex();if(this.se
lected)this.selected=!1,this.accordion.onClose.emit({originalEvent:e,index:n});else{if(!this.accordion.multiple)for(var
s=0;s<this.accordion.tabs.length;s++)this.accordion.tabs[s].selected&&(this.accordion.tabs[s].selected=!1,this.accordion.tabs[s].selectedChange.emit(!1),this.accordion.tabs[s].changeDetector.markForCheck());this.selected=!0,this.loaded=!0,this.accordion.onOpen.emit({originalEvent:e,index:n})}this.selectedChange.emit(this.selected),this.accordion.updateActiveIndex(),this.changeDetector.markForCheck(),e.preventDefault()}findTabIndex(){let
e=-1;for(var
n=0;n<this.accordion.tabs.length;n++)if(this.accordion.tabs[n]==this){e=n;break}return
e}get hasHeaderFacet(){return
this.headerFacet&&this.headerFacet.length>0}onKeydown(e){(32===e.which||13===e.which)&&(this.toggle(e),e.preventDefault())}ngOnDestroy(){this.accordion.tabs.splice(this.findTabIndex(),1)}}return
t.\u0275fac=function(e){return
new(e||t)(D(je(()=>Ss)),D(rt))},t.\u0275cmp=z({type:t,selectors:[["p-accordionTa
b"]],contentQueries:function(e,n,s){if(1&e&&(st(s,Oo,4),st(s,ne,4)),2&e){let
r;V(r=B())&&(n.headerFacet=r),V(r=B())&&(n.templates=r)}},hostAttrs:[1,"p-element"],inputs:{header:"header",disabled:"disabled",cache:"cache",transitionOptions:"transitionOptions",selected:"selected"},outputs:{selectedChange:"selectedChange"},ngContentSelectors:tN,decls:11,vars:28,consts:[[1,"p-accordion-tab",3,"ngClass"],[1,"p-accordion-header",3,"ngClass"],["role","tab",1,"p-accordion-header-link",3,"click","keydown"],[1,"p-accordion-toggle-icon",3,"ngClass"],["class","p-accordion-header-text",4,"ngIf"],[4,"ngTemplateOutlet"],[4,"ngIf"],["role","region",1,"p-toggleable-content"],[1,"p-accordion-content"],[1,"p-accordion-header-text"]],template:function(e,n){1&e&&(Sn(JF),l(0,"div",0)(1,"div",1)(2,"a",2),C("click",function(r){return
n.toggle(r)})("keydown",function(r){return
n.onKeydown(r)}),k(3,"span",3),_(4,jF,2,1,"span",4),_(5,$F,1,0,"ng-container",5),_(6,WF,1,0,"ng-content",6),c()(),l(7,"div",7)(8,"div"
,8),St(9),_(10,QF,2,1,"ng-container",6),c()()()),2&e&&(p("ngClass",U(15,YF,n.selected)),a(1),p("ngClass",Ge(17,ZF,n.selected,n.disabled)),a(1),ie("tabindex",n.disabled?null:0)("id",n.id)("aria-controls",n.id+"-content")("aria-expanded",n.selected),a(1),p("ngClass",n.selected?n.accordion.collapseIcon:n.accordion.expandIcon),a(1),p("ngIf",!n.hasHeaderFacet),a(1),p("ngTemplateOutlet",n.headerTemplate),a(1),p("ngIf",n.hasHeaderFacet),a(1),p("@tabContent",n.selected?U(22,XF,U(20,sT,n.transitionOptions)):U(26,eN,U(24,sT,n.transitionOptions))),ie("id",n.id+"-content")("aria-hidden",!n.selected)("aria-labelledby",n.id),a(3),p("ngIf",n.contentTemplate&&(n.cache?n.loaded:n.selected)))},directives:[Le,Q,Rt],styles:[".p-accordion-header-link{cursor:pointer;display:flex;align-items:center;-webkit-user-select:none;user-select:none;position:relative;text-decoration:none}.p-accordion-header-link:focus{z-index:1}.p-accordion-header-text{line-height:1}\n"],encapsulation:2,data:{animation:[wi("tabCont
ent",[ws("hidden",it({height:"0",overflow:"hidden"})),ws("visible",it({height:"*"})),Lt("visible
<=>
hidden",[it({overflow:"hidden"}),kt("{{transitionParams}}")]),Lt("void
=> *",kt(0))])]},changeDetection:0}),t})(),Ss=(()=>{class
t{constructor(e,n){this.el=e,this.changeDetector=n,this.onClose=new H,this.onOpen=new
H,this.expandIcon="pi pi-fw pi-chevron-right",this.collapseIcon="pi pi-fw
pi-chevron-down",this.activeIndexChange=new
H,this.tabs=[]}ngAfterContentInit(){this.initTabs(),this.tabListSubscription=this.tabList.changes.subscribe(e=>{this.initTabs()})}initTabs(){this.tabs=this.tabList.toArray(),this.updateSelectionState(),this.changeDetector.markForCheck()}getBlockableElement(){return
this.el.nativeElement.children[0]}get activeIndex(){return this._activeIndex}set
activeIndex(e){this._activeIndex=e,this.preventActiveIndexPropagation?this.preventActiveIndexPropagation=!1:this.updateSelectionState()}updateSelectionState(){if(this.tabs&&this.tabs.length&&null!=this._activeIndex)f
or(let e=0;e<this.tabs.length;e++){let
n=this.multiple?this._activeIndex.includes(e):e===this._activeIndex;n!==this.tabs[e].selected&&(this.tabs[e].selected=n,this.tabs[e].selectedChange.emit(n),this.tabs[e].changeDetector.markForCheck())}}updateActiveIndex(){let
e=this.multiple?[]:null;this.tabs.forEach((n,s)=>{if(n.selected){if(!this.multiple)return
void(e=s);e.push(s)}}),this.preventActiveIndexPropagation=!0,this.activeIndexChange.emit(e)}ngOnDestroy(){this.tabListSubscription&&this.tabListSubscription.unsubscribe()}}return
t.\u0275fac=function(e){return
new(e||t)(D(De),D(rt))},t.\u0275cmp=z({type:t,selectors:[["p-accordion"]],contentQueries:function(e,n,s){if(1&e&&st(s,Ts,4),2&e){let
r;V(r=B())&&(n.tabList=r)}},hostAttrs:[1,"p-element"],inputs:{multiple:"multiple",style:"style",styleClass:"styleClass",expandIcon:"expandIcon",collapseIcon:"collapseIcon",activeIndex:"activeIndex"},outputs:{onClose:"onClose",onOpen:"onOpen",activeIndexChange:"activeIndexChange"},ngContentSelectors:
nN,decls:2,vars:4,consts:[["role","tablist",3,"ngClass","ngStyle"]],template:function(e,n){1&e&&(Sn(),l(0,"div",0),St(1),c()),2&e&&(me(n.styleClass),p("ngClass","p-accordion
p-component")("ngStyle",n.style))},directives:[Le,lt],encapsulation:2,changeDetection:0}),t})(),sN=(()=>{class
t{}return t.\u0275fac=function(e){return
new(e||t)},t.\u0275mod=he({type:t}),t.\u0275inj=ue({imports:[[Fe],Nt]}),t})(),R=(()=>{class
t{static addClass(e,n){e.classList?e.classList.add(n):e.className+=" "+n}static
addMultipleClasses(e,n){if(e.classList){let s=n.trim().split(" ");for(let
r=0;r<s.length;r++)e.classList.add(s[r])}else{let s=n.split(" ");for(let
r=0;r<s.length;r++)e.className+=" "+s[r]}}static
removeClass(e,n){e.classList?e.classList.remove(n):e.className=e.className.replace(new
RegExp("(^|\\b)"+n.split("
").join("|")+"(\\b|$)","gi")," ")}static
hasClass(e,n){return e.classList?e.classList.contains(n):new RegExp("(^|
)"+n+"( |$)","gi").test(e.className)}static siblings(e){return
Array.protot
ype.filter.call(e.parentNode.children,function(n){return n!==e})}static find(e,n){return
Array.from(e.querySelectorAll(n))}static findSingle(e,n){return
e?e.querySelector(n):null}static index(e){let n=e.parentNode.childNodes,s=0;for(var
r=0;r<n.length;r++){if(n[r]==e)return s;1==n[r].nodeType&&s++}return-1}static
indexWithinGroup(e,n){let s=e.parentNode?e.parentNode.childNodes:[],r=0;for(var
o=0;o<s.length;o++){if(s[o]==e)return
r;s[o].attributes&&s[o].attributes[n]&&1==s[o].nodeType&&r++}return-1}static
relativePosition(e,n){let
s=e.offsetParent?{width:e.offsetWidth,height:e.offsetHeight}:this.getHiddenElementDimensions(e);const
r=n.offsetHeight,o=n.getBoundingClientRect(),u=this.getViewport();let
h,b;o.top+r+s.height>u.height?(h=-1*s.height,e.style.transformOrigin="bottom",o.top+h<0&&(h=-1*o.top)):(h=r,e.style.transformOrigin="top"),b=s.width>u.width?-1*o.left:o.left+s.width>u.width?-1*(o.left+s.width-u.width):0,e.style.top=h+"px",e.style.left=b+"px"}static
absolutePosition(e,n){l
et
E,L,s=e.offsetParent?{width:e.offsetWidth,height:e.offsetHeight}:this.getHiddenElementDimensions(e),r=s.height,o=s.width,u=n.offsetHeight,h=n.offsetWidth,b=n.getBoundingClientRect(),y=this.getWindowScrollTop(),w=this.getWindowScrollLeft(),M=this.getViewport();b.top+u+r>M.height?(E=b.top+y-r,e.style.transformOrigin="bottom",E<0&&(E=y)):(E=u+b.top+y,e.style.transformOrigin="top"),L=b.left+o>M.width?Math.max(0,b.left+w+h-o):b.left+w,e.style.top=E+"px",e.style.left=L+"px"}static
getParents(e,n=[]){return
null===e.parentNode?n:this.getParents(e.parentNode,n.concat([e.parentNode]))}static
getScrollableParents(e){let n=[];if(e){let s=this.getParents(e);const
r=/(auto|scroll)/,o=u=>{let h=window.getComputedStyle(u,null);return
r.test(h.getPropertyValue("overflow"))||r.test(h.getPropertyValue("overflowX"))||r.test(h.getPropertyValue("overflowY"))};for(let
u of s){let h=1===u.nodeType&&u.dataset.scrollselectors;if(h){let
b=h.split(",");for(let y of b){let
w=this.findSingle(u,y);w&&o(w)&&n.
push(w)}}9!==u.nodeType&&o(u)&&n.push(u)}}return n}static
getHiddenElementOuterHeight(e){e.style.visibility="hidden",e.style.display="block";let
n=e.offsetHeight;return
e.style.display="none",e.style.visibility="visible",n}static
getHiddenElementOuterWidth(e){e.style.visibility="hidden",e.style.display="block";let
n=e.offsetWidth;return
e.style.display="none",e.style.visibility="visible",n}static
getHiddenElementDimensions(e){let n={};return
e.style.visibility="hidden",e.style.display="block",n.width=e.offsetWidth,n.height=e.offsetHeight,e.style.display="none",e.style.visibility="visible",n}static
scrollInView(e,n){let
s=getComputedStyle(e).getPropertyValue("borderTopWidth"),r=s?parseFloat(s):0,o=getComputedStyle(e).getPropertyValue("paddingTop"),u=o?parseFloat(o):0,h=e.getBoundingClientRect(),y=n.getBoundingClientRect().top+document.body.scrollTop-(h.top+document.body.scrollTop)-r-u,w=e.scrollTop,M=e.clientHeight,E=this.getOuterHeight(n);y<0?e.scrollTop=w+y:y+E>M&&(e.scrollTop=w+y-
M+E)}static fadeIn(e,n){e.style.opacity=0;let s=+new
Date,r=0,o=function(){r=+e.style.opacity.replace(",",".")+((new
Date).getTime()-s)/n,e.style.opacity=r,s=+new
Date,+r<1&&(window.requestAnimationFrame&&requestAnimationFrame(o)||setTimeout(o,16))};o()}static
fadeOut(e,n){var s=1,u=50/n;let
h=setInterval(()=>{(s-=u)<=0&&(s=0,clearInterval(h)),e.style.opacity=s},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,n){var
s=Element.prototype;return(s.matches||s.webkitMatchesSelector||s.mozMatchesSelector||s.msMatchesSelector||function(o){return-1!==[].indexOf.call(document.querySelectorAll(o),this)}).call(e,n)}static
getOuterWidth(e,n){let s=e.offsetWidth;if(n){let
r=getComputedStyle(e);s+=parseFloat(r.marginLeft)+parseFloat(r.marginRight)}return
s}static getHorizontalPadding(e){let n
=getComputedStyle(e);return parseFloat(n.paddingLeft)+parseFloat(n.paddingRight)}static
getHorizontalMargin(e){let n=getComputedStyle(e);return
parseFloat(n.marginLeft)+parseFloat(n.marginRight)}static innerWidth(e){let
n=e.offsetWidth,s=getComputedStyle(e);return
n+=parseFloat(s.paddingLeft)+parseFloat(s.paddingRight),n}static width(e){let
n=e.offsetWidth,s=getComputedStyle(e);return
n-=parseFloat(s.paddingLeft)+parseFloat(s.paddingRight),n}static getInnerHeight(e){let
n=e.offsetHeight,s=getComputedStyle(e);return
n+=parseFloat(s.paddingTop)+parseFloat(s.paddingBottom),n}static getOuterHeight(e,n){let
s=e.offsetHeight;if(n){let
r=getComputedStyle(e);s+=parseFloat(r.marginTop)+parseFloat(r.marginBottom)}return
s}static getHeight(e){let n=e.offsetHeight,s=getComputedStyle(e);return
n-=parseFloat(s.paddingTop)+parseFloat(s.paddingBottom)+parseFloat(s.borderTopWidth)+parseFloat(s.borderBottomWidth),n}static
getWidth(e){let n=e.offsetWidth,s=getComputedStyle(e);return n-=parseFloat(s.pa
ddingLeft)+parseFloat(s.paddingRight)+parseFloat(s.borderLeftWidth)+parseFloat(s.borderRightWidth),n}static
getViewport(){let
e=window,n=document,s=n.documentElement,r=n.getElementsByTagName("body")[0];return{width:e.innerWidth||s.clientWidth||r.clientWidth,height:e.innerHeight||s.clientHeight||r.clientHeight}}static
getOffset(e){var
n=e.getBoundingClientRect();return{top:n.top+(window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0),left:n.left+(window.pageXOffset||document.documentElement.scrollLeft||document.body.scrollLeft||0)}}static
replaceElementWith(e,n){let s=e.parentNode;if(!s)throw"Can't replace
element";return s.replaceChild(n,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,n){if(this.isElement(n))n.appendChild(e);else{if(!n.el||!n.el.nativeElement)throw"Cannot
append "+n+" to "+e;n.el.nativeElement.appendChild(e)}}static
removeChild(e,n){if(this.isElement(n))n.removeChild(e);else{if(!n.el||!n.el.nativeElement)throw"Cannot
remove "+e+" from "+n;n.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 n=getComputedStyle(e);return
e.offsetWidth-e.clientWidth-parseFloat(n.borderLeftWidth)-parseFloat(n.borderRightWidth)}{if(null!==this.calculatedScrollbarWidth)return
this.calculatedScrollbarWidth;let
n=document.createElement("div");n.className="p-scrollbar-measure",do
cument.body.appendChild(n);let s=n.offsetWidth-n.clientWidth;return
document.body.removeChild(n),this.calculatedScrollbarWidth=s,s}}static
calculateScrollbarHeight(){if(null!==this.calculatedScrollbarHeight)return
this.calculatedScrollbarHeight;let
e=document.createElement("div");e.className="p-scrollbar-measure",document.body.appendChild(e);let
n=e.offsetHeight-e.clientHeight;return
document.body.removeChild(e),this.calculatedScrollbarWidth=n,n}static
invokeElementMethod(e,n,s){e[n].apply(e,s)}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(),n=/(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:n[1]||"",version:n[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
n=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)'),s=[];for(let
r of
n)"none"!=getComputedStyle(r).display&&"hidden"!=getComputedStyle(r).visibility&&s.push(r);return
s}static generateZIndex(){return this.zindex=this.zindex||999,++this.zindex}}return
t.zindex=1e3,t.calculatedScrollbarWidth=null,t.calculatedScrollbarHeight=null,t})();class
Qs{constructor(i,e=(()=>{})){this.element=i,this.listener=e}bindScrollListener(){this.scrollableParents=R.getScrollableParents(this.element);for(let
i=0;i<this.scrollableParents.length;i++)this.scrollableParents[i].addEventListener("scroll",this.listener)}unbindScrollL
istener(){if(this.scrollableParents)for(let
i=0;i<this.scrollableParents.length;i++)this.scrollableParents[i].removeEventListener("scroll",this.listener)}destroy(){this.unbindScrollListener(),this.element=null,this.listener=null,this.scrollableParents=null}}let
bt=(()=>{class
t{constructor(e,n,s){this.el=e,this.zone=n,this.config=s}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
n=this.getInk();if(!n||"none"===getComputedStyle(n,null).display)return;if(R.removeClass(n,"p-ink-active"),!R.getHeight(n)&&!R.getWidth(n)){let
u=Math.max(R.getOuterWidth(this.el.nativeElement),R.getOuterHeight(this.el.nativeElement));n.style.height=u+"px",n.style.width=u+"px"}let
s=R.getOffset(this.el.nativeElement),r=e.pageX-s.left+document.body.scrollTop-R.getWidth(n)/2,o=e.pageY-s.top+document.body.scrollLeft-R
.getHeight(n)/2;n.style.top=o+"px",n.style.left=r+"px",R.addClass(n,"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&&R.removeClass(e,"p-ink-active")}onAnimationEnd(e){R.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),R.removeElement(e))}ngOnDestroy(){this.config&&this.config.ripple&&this.remove()}}return
t.\u0275fac=function(e){return
new(e||t)(D(De),D(nt),D(zn,8))},t.\u0275dir=le({type:t,selectors:[["","pRipple",""]],host
Attrs:[1,"p-ripple","p-element"]}),t})(),pn=(()=>{class t{}return
t.\u0275fac=function(e){return
new(e||t)},t.\u0275mod=he({type:t}),t.\u0275inj=ue({imports:[[Fe]]}),t})();function
rN(t,i){1&t&&Y(0)}const
oN=function(t,i,e,n){return{"p-button-icon":!0,"p-button-icon-left":t,"p-button-icon-right":i,"p-button-icon-top":e,"p-button-icon-bottom":n}};function
aN(t,i){if(1&t&&k(0,"span",4),2&t){const
e=d();me(e.loading?"p-button-loading-icon
"+e.loadingIcon:e.icon),p("ngClass",qn(4,oN,"left"===e.iconPos&&e.label,"right"===e.iconPos&&e.label,"top"===e.iconPos&&e.label,"bottom"===e.iconPos&&e.label)),ie("aria-hidden",!0)}}function
lN(t,i){if(1&t&&(l(0,"span",5),g(1),c()),2&t){const
e=d();ie("aria-hidden",e.icon&&!e.label),a(1),S(e.label||"\xa0")}}function
cN(t,i){if(1&t&&(l(0,"span",4),g(1),c()),2&t){const
e=d();me(e.badgeClass),p("ngClass",e.badgeStyleClass()),a(1),S(e.badge)}}const
uN=function(t,i,e,n,s){return{"p-button
p-component":!0,"p-button-icon-only":t,"p-button-vertical":i,"p-disa
bled":e,"p-button-loading":n,"p-button-loading-label-only":s}},dN=["*"];let
On=(()=>{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,R.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(){let
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=documen
t.createElement("span");e.className="p-button-icon",e.setAttribute("aria-hidden","true");let
n=this.label?"p-button-icon-"+this.iconPos:null;n&&R.addClass(e,n);let
s=this.getIconClass();s&&R.addMultipleClasses(e,s);let
r=R.findSingle(this.el.nativeElement,".p-button-label");r?this.el.nativeElement.insertBefore(e,r):this.el.nativeElement.appendChild(e)}getIconClass(){return
this.loading?"p-button-loading-icon
"+this.loadingIcon:this._icon}setIconClass(){let
e=R.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=R.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&&(R.findSingle(this.el.nativeElement,".p-button-label").textContent=this._label||" ",(this.loading||this.icon)&&this.setIconClass(),t
his.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)(D(De))},t.\u0275dir=le({type:t,selectors:[["","pButton",""]],hostAttrs:[1,"p-element"],inputs:{iconPos:"iconPos",loadingIcon:"loadingIcon",label:"label",icon:"icon",loading:"loading"}}),t})(),ve=(()=>{class
t{constructor(){this.type="button",this.iconPos="left",this.loading=!1,this.loadingIcon="pi
pi-spinner pi-spin",this.onClick=new H,this.onFocus=new H,this.onBlur=new
H}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=z({type:t,selectors:[["p-button"]],contentQueries:function(e,n,s){if(1&e&&st(s,ne,4),2&e){let
r;V(r=B())&&(n.templates=r)}},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",ariaLabel:"ariaLabel"},outputs:{onClick:"onClick",onFocus:"onFocus",onBlur:"onBlur"},ngContentSelectors:dN,decls:6,vars:17,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,n){1&e&&(Sn(),l(0,"button",0),C("click",function(r){return
n.onClick.emit(r)})("focus",function(r){return
n.onFocus.emit(r)})("blur",function(r){return
n.onBlur.emit(r)}),St(1),_(2,rN,1,0,"ng-container",1),_(3,aN,1,9,"span",2),_(4,lN,2,2,"span",3),_(5,c
N,2,4,"span",2),c()),2&e&&(me(n.styleClass),p("ngStyle",n.style)("disabled",n.disabled||n.loading)("ngClass",pr(11,uN,n.icon&&!n.label,("top"===n.iconPos||"bottom"===n.iconPos)&&n.label,n.disabled||n.loading,n.loading,n.loading&&!n.icon&&n.label)),ie("type",n.type)("aria-label",n.ariaLabel),a(2),p("ngTemplateOutlet",n.contentTemplate),a(1),p("ngIf",!n.contentTemplate&&(n.icon||n.loading)),a(1),p("ngIf",!n.contentTemplate),a(1),p("ngIf",!n.contentTemplate&&n.badge))},directives:[bt,lt,Le,Rt,Q],encapsulation:2,changeDetection:0}),t})(),gl=(()=>{class
t{}return t.\u0275fac=function(e){return
new(e||t)},t.\u0275mod=he({type:t}),t.\u0275inj=ue({imports:[[Fe,pn]]}),t})();const
pN=["container"],hN=["inputfield"],mN=["contentWrapper"];function
fN(t,i){if(1&t){const e=I();l(0,"i",8),C("click",function(){return
v(e),d(2).clear()}),c()}}function gN(t,i){if(1&t){const
e=I();l(0,"button",9),C("click",function(s){v(e),d();const
r=F(1);return d().onButtonClick(s,r)}),c()}if(2&t){const e=d(2);p("ic
on",e.icon)("disabled",e.disabled),ie("aria-label",e.iconAriaLabel)}}function
_N(t,i){if(1&t){const
e=I();l(0,"input",4,5),C("focus",function(s){return
v(e),d().onInputFocus(s)})("keydown",function(s){return
v(e),d().onInputKeydown(s)})("click",function(){return
v(e),d().onInputClick()})("blur",function(s){return
v(e),d().onInputBlur(s)})("input",function(s){return
v(e),d().onUserInput(s)}),c(),_(2,fN,1,0,"i",6),_(3,gN,1,3,"button",7)}if(2&t){const
e=d();me(e.inputStyleClass),p("value",e.inputFieldValue)("readonly",e.readonlyInput)("ngStyle",e.inputStyle)("placeholder",e.placeholder||"")("disabled",e.disabled)("ngClass","p-inputtext
p-component"),ie("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),a(2),p("ngIf",e.showClear&&!e.disabled&&null!=e.value),a(1),p("ngIf",e.showIcon)}}function
bN(t,i){1&t&&Y(0)}function vN(t,i){if(1&t){const
e=I();l(0,"button",30),C
("keydown",function(s){return
v(e),d(4).onContainerButtonKeydown(s)})("click",function(s){return
v(e),d(4).onPrevButtonClick(s)}),k(1,"span",31),c()}}function
CN(t,i){if(1&t){const
e=I();l(0,"button",32),C("click",function(s){return
v(e),d(4).switchToMonthView(s)})("keydown",function(s){return
v(e),d(4).onContainerButtonKeydown(s)}),g(1),c()}if(2&t){const
e=d().$implicit,n=d(3);p("disabled",n.switchViewButtonDisabled()),a(1),T("
",n.getMonthName(e.month)," ")}}function yN(t,i){if(1&t){const
e=I();l(0,"button",33),C("click",function(s){return
v(e),d(4).switchToYearView(s)})("keydown",function(s){return
v(e),d(4).onContainerButtonKeydown(s)}),g(1),c()}if(2&t){const
e=d().$implicit,n=d(3);p("disabled",n.switchViewButtonDisabled()),a(1),T("
",n.getYear(e)," ")}}function
wN(t,i){if(1&t&&(de(0),g(1),pe()),2&t){const
e=d(5);a(1),We("",e.yearPickerValues()[0]," -
",e.yearPickerValues()[e.yearPickerValues().length-1],"")}}function
TN(t,i){1&t&&Y(0)}const rT=function(t){return{$implicit:t}};f
unction
SN(t,i){if(1&t&&(l(0,"span",34),_(1,wN,2,2,"ng-container",13),_(2,TN,1,0,"ng-container",35),c()),2&t){const
e=d(4);a(1),p("ngIf",!e.decadeTemplate),a(1),p("ngTemplateOutlet",e.decadeTemplate)("ngTemplateOutletContext",U(3,rT,e.yearPickerValues))}}function
xN(t,i){if(1&t&&(l(0,"th",41)(1,"span"),g(2),c()()),2&t){const
e=d(5);a(2),S(e.getTranslation("weekHeader"))}}function
DN(t,i){if(1&t&&(l(0,"th",42)(1,"span"),g(2),c()()),2&t){const
e=i.$implicit;a(2),S(e)}}function
MN(t,i){if(1&t&&(l(0,"td",45)(1,"span",46),g(2),c()()),2&t){const
e=d().index,n=d(2).$implicit;a(2),T(" ",n.weekNumbers[e],"
")}}function kN(t,i){if(1&t&&(de(0),g(1),pe()),2&t){const
e=d(2).$implicit;a(1),S(e.day)}}function IN(t,i){1&t&&Y(0)}const
EN=function(t,i){return{"p-highlight":t,"p-disabled":i}};function
RN(t,i){if(1&t){const
e=I();de(0),l(1,"span",48),C("click",function(s){v(e);const
r=d().$implicit;return d(6).onDateSelect(s,r)})("keydown",function(s){v(e);const
r=d().$implicit,o=d(3).index;return d(3)
.onDateCellKeydown(s,r,o)}),_(2,kN,2,1,"ng-container",13),_(3,IN,1,0,"ng-container",35),c(),pe()}if(2&t){const
e=d().$implicit,n=d(6);a(1),p("ngClass",Ge(4,EN,n.isSelected(e),!e.selectable)),a(1),p("ngIf",!n.dateTemplate),a(1),p("ngTemplateOutlet",n.dateTemplate)("ngTemplateOutletContext",U(7,rT,e))}}const
LN=function(t,i){return{"p-datepicker-other-month":t,"p-datepicker-today":i}};function
ON(t,i){if(1&t&&(l(0,"td",47),_(1,RN,4,9,"ng-container",13),c()),2&t){const
e=i.$implicit,n=d(6);p("ngClass",Ge(2,LN,e.otherMonth,e.today)),a(1),p("ngIf",!e.otherMonth||n.showOtherMonths)}}function
AN(t,i){if(1&t&&(l(0,"tr"),_(1,MN,3,1,"td",43),_(2,ON,2,5,"td",44),c()),2&t){const
e=i.$implicit,n=d(5);a(1),p("ngIf",n.showWeek),a(1),p("ngForOf",e)}}function
PN(t,i){if(1&t&&(l(0,"div",36)(1,"table",37)(2,"thead")(3,"tr"),_(4,xN,3,1,"th",38),_(5,DN,3,1,"th",39),c()(),l(6,"tbody"),_(7,AN,3,2,"tr",40),c()()()),2&t){const
e=d().$implicit,n=d(3);a(4),p("ngIf",n.showWeek),a(1),p("ngForOf",n.weekDays),a(2
),p("ngForOf",e.dates)}}function FN(t,i){if(1&t){const
e=I();l(0,"div",20)(1,"div",21),_(2,vN,2,0,"button",22),l(3,"div",23),_(4,CN,2,2,"button",24),_(5,yN,2,2,"button",25),_(6,SN,3,5,"span",26),c(),l(7,"button",27),C("keydown",function(s){return
v(e),d(3).onContainerButtonKeydown(s)})("click",function(s){return
v(e),d(3).onNextButtonClick(s)}),k(8,"span",28),c()(),_(9,PN,8,3,"div",29),c()}if(2&t){const
e=i.index,n=d(3);a(2),p("ngIf",0===e),a(2),p("ngIf","date"===n.currentView),a(1),p("ngIf","year"!==n.currentView),a(1),p("ngIf","year"===n.currentView),a(1),_i("display",1===n.numberOfMonths||e===n.numberOfMonths-1?"inline-flex":"none"),a(2),p("ngIf","date"===n.currentView)}}const
oT=function(t){return{"p-highlight":t}};function NN(t,i){if(1&t){const
e=I();l(0,"span",51),C("click",function(s){const o=v(e).index;return
d(4).onMonthSelect(s,o)})("keydown",function(s){const o=v(e).index;return
d(4).onMonthCellKeydown(s,o)}),g(1),c()}if(2&t){const
e=i.$implicit,n=i.index,s=d(4);p("ngClas
s",U(2,oT,s.isMonthSelected(n))),a(1),T(" ",e," ")}}function
VN(t,i){if(1&t&&(l(0,"div",49),_(1,NN,2,4,"span",50),c()),2&t){const
e=d(3);a(1),p("ngForOf",e.monthPickerValues())}}function
BN(t,i){if(1&t){const
e=I();l(0,"span",54),C("click",function(s){const
o=v(e).$implicit;return d(4).onYearSelect(s,o)})("keydown",function(s){const
o=v(e).$implicit;return d(4).onYearCellKeydown(s,o)}),g(1),c()}if(2&t){const
e=i.$implicit,n=d(4);p("ngClass",U(2,oT,n.isYearSelected(e))),a(1),T("
",e," ")}}function
HN(t,i){if(1&t&&(l(0,"div",52),_(1,BN,2,4,"span",53),c()),2&t){const
e=d(3);a(1),p("ngForOf",e.yearPickerValues())}}function
qN(t,i){if(1&t&&(de(0),l(1,"div",16),_(2,FN,10,7,"div",17),c(),_(3,VN,2,1,"div",18),_(4,HN,2,1,"div",19),pe()),2&t){const
e=d(2);a(2),p("ngForOf",e.months),a(1),p("ngIf","month"===e.currentView),a(1),p("ngIf","year"===e.currentView)}}function
GN(t,i){1&t&&(de(0),g(1,"0"),pe())}function
UN(t,i){1&t&&(de(0),g(1,"0"),pe())}function
zN(t,i){if(1&t&&(l(0,"div",60)(1,"span"
),g(2),c()()),2&t){const e=d(3);a(2),S(e.timeSeparator)}}function
jN(t,i){1&t&&(de(0),g(1,"0"),pe())}function
$N(t,i){if(1&t){const
e=I();l(0,"div",65)(1,"button",57),C("keydown",function(s){return
v(e),d(3).onContainerButtonKeydown(s)})("keydown.enter",function(s){return
v(e),d(3).incrementSecond(s)})("keydown.space",function(s){return
v(e),d(3).incrementSecond(s)})("mousedown",function(s){return
v(e),d(3).onTimePickerElementMouseDown(s,2,1)})("mouseup",function(s){return
v(e),d(3).onTimePickerElementMouseUp(s)})("keyup.enter",function(s){return
v(e),d(3).onTimePickerElementMouseUp(s)})("keyup.space",function(s){return
v(e),d(3).onTimePickerElementMouseUp(s)})("mouseleave",function(){return
v(e),d(3).onTimePickerElementMouseLeave()}),k(2,"span",58),c(),l(3,"span"),_(4,jN,2,0,"ng-container",13),g(5),c(),l(6,"button",57),C("keydown",function(s){return
v(e),d(3).onContainerButtonKeydown(s)})("keydown.enter",function(s){return
v(e),d(3).decrementSecond(s)})("keydown.space",function(s){
return v(e),d(3).decrementSecond(s)})("mousedown",function(s){return
v(e),d(3).onTimePickerElementMouseDown(s,2,-1)})("mouseup",function(s){return
v(e),d(3).onTimePickerElementMouseUp(s)})("keyup.enter",function(s){return
v(e),d(3).onTimePickerElementMouseUp(s)})("keyup.space",function(s){return
v(e),d(3).onTimePickerElementMouseUp(s)})("mouseleave",function(){return
v(e),d(3).onTimePickerElementMouseLeave()}),k(7,"span",59),c()()}if(2&t){const
e=d(3);a(4),p("ngIf",e.currentSecond<10),a(1),S(e.currentSecond)}}function
WN(t,i){if(1&t){const
e=I();l(0,"div",66)(1,"button",67),C("keydown",function(s){return
v(e),d(3).onContainerButtonKeydown(s)})("click",function(s){return
v(e),d(3).toggleAMPM(s)})("keydown.enter",function(s){return
v(e),d(3).toggleAMPM(s)}),k(2,"span",58),c(),l(3,"span"),g(4),c(),l(5,"button",67),C("keydown",function(s){return
v(e),d(3).onContainerButtonKeydown(s)})("click",function(s){return
v(e),d(3).toggleAMPM(s)})("keydown.enter",function(s){return v(e),d(3).toggl
eAMPM(s)}),k(6,"span",59),c()()}if(2&t){const
e=d(3);a(4),S(e.pm?"PM":"AM")}}function KN(t,i){if(1&t){const
e=I();l(0,"div",55)(1,"div",56)(2,"button",57),C("keydown",function(s){return
v(e),d(2).onContainerButtonKeydown(s)})("keydown.enter",function(s){return
v(e),d(2).incrementHour(s)})("keydown.space",function(s){return
v(e),d(2).incrementHour(s)})("mousedown",function(s){return
v(e),d(2).onTimePickerElementMouseDown(s,0,1)})("mouseup",function(s){return
v(e),d(2).onTimePickerElementMouseUp(s)})("keyup.enter",function(s){return
v(e),d(2).onTimePickerElementMouseUp(s)})("keyup.space",function(s){return
v(e),d(2).onTimePickerElementMouseUp(s)})("mouseleave",function(){return
v(e),d(2).onTimePickerElementMouseLeave()}),k(3,"span",58),c(),l(4,"span"),_(5,GN,2,0,"ng-container",13),g(6),c(),l(7,"button",57),C("keydown",function(s){return
v(e),d(2).onContainerButtonKeydown(s)})("keydown.enter",function(s){return
v(e),d(2).decrementHour(s)})("keydown.space",function(s){return v(e),d(2).d
ecrementHour(s)})("mousedown",function(s){return
v(e),d(2).onTimePickerElementMouseDown(s,0,-1)})("mouseup",function(s){return
v(e),d(2).onTimePickerElementMouseUp(s)})("keyup.enter",function(s){return
v(e),d(2).onTimePickerElementMouseUp(s)})("keyup.space",function(s){return
v(e),d(2).onTimePickerElementMouseUp(s)})("mouseleave",function(){return
v(e),d(2).onTimePickerElementMouseLeave()}),k(8,"span",59),c()(),l(9,"div",60)(10,"span"),g(11),c()(),l(12,"div",61)(13,"button",57),C("keydown",function(s){return
v(e),d(2).onContainerButtonKeydown(s)})("keydown.enter",function(s){return
v(e),d(2).incrementMinute(s)})("keydown.space",function(s){return
v(e),d(2).incrementMinute(s)})("mousedown",function(s){return
v(e),d(2).onTimePickerElementMouseDown(s,1,1)})("mouseup",function(s){return
v(e),d(2).onTimePickerElementMouseUp(s)})("keyup.enter",function(s){return
v(e),d(2).onTimePickerElementMouseUp(s)})("keyup.space",function(s){return
v(e),d(2).onTimePickerElementMouseUp(s)})("mouseleave
",function(){return
v(e),d(2).onTimePickerElementMouseLeave()}),k(14,"span",58),c(),l(15,"span"),_(16,UN,2,0,"ng-container",13),g(17),c(),l(18,"button",57),C("keydown",function(s){return
v(e),d(2).onContainerButtonKeydown(s)})("keydown.enter",function(s){return
v(e),d(2).decrementMinute(s)})("keydown.space",function(s){return
v(e),d(2).decrementMinute(s)})("mousedown",function(s){return
v(e),d(2).onTimePickerElementMouseDown(s,1,-1)})("mouseup",function(s){return
v(e),d(2).onTimePickerElementMouseUp(s)})("keyup.enter",function(s){return
v(e),d(2).onTimePickerElementMouseUp(s)})("keyup.space",function(s){return
v(e),d(2).onTimePickerElementMouseUp(s)})("mouseleave",function(){return
v(e),d(2).onTimePickerElementMouseLeave()}),k(19,"span",59),c()(),_(20,zN,3,1,"div",62),_(21,$N,8,2,"div",63),_(22,WN,7,1,"div",64),c()}if(2&t){const
e=d(2);a(5),p("ngIf",e.currentHour<10),a(1),S(e.currentHour),a(5),S(e.timeSeparator),a(5),p("ngIf",e.currentMinute<10),a(1),S(e.currentMinute),a(3),p("ngIf"
,e.showSeconds),a(1),p("ngIf",e.showSeconds),a(1),p("ngIf","12"==e.hourFormat)}}const
aT=function(t){return[t]};function QN(t,i){if(1&t){const
e=I();l(0,"div",68)(1,"button",69),C("keydown",function(s){return
v(e),d(2).onContainerButtonKeydown(s)})("click",function(s){return
v(e),d(2).onTodayButtonClick(s)}),c(),l(2,"button",69),C("keydown",function(s){return
v(e),d(2).onContainerButtonKeydown(s)})("click",function(s){return
v(e),d(2).onClearButtonClick(s)}),c()()}if(2&t){const
e=d(2);a(1),p("label",e.getTranslation("today"))("ngClass",U(4,aT,e.todayButtonStyleClass)),a(1),p("label",e.getTranslation("clear"))("ngClass",U(6,aT,e.clearButtonStyleClass))}}function
JN(t,i){1&t&&Y(0)}const YN=function(t,i,e,n,s,r){return{"p-datepicker
p-component":!0,"p-datepicker-inline":t,"p-disabled":i,"p-datepicker-timeonly":e,"p-datepicker-multiple-month":n,"p-datepicker-monthpicker":s,"p-datepicker-touch-ui":r}},lT=function(t,i){return{showTransitionParams:t,hideTransitionParams:i}},ZN=function(t){
return{value:"visibleTouchUI",params:t}},XN=function(t){return{value:"visible",params:t}};function
e5(t,i){if(1&t){const
e=I();l(0,"div",10,11),C("(a)overlayAnimation.start",function(s){return
v(e),d().onOverlayAnimationStart(s)})("(a)overlayAnimation.done",function(s){return
v(e),d().onOverlayAnimationDone(s)})("click",function(s){return
v(e),d().onOverlayClick(s)}),St(2),_(3,bN,1,0,"ng-container",12),_(4,qN,5,3,"ng-container",13),_(5,KN,23,8,"div",14),_(6,QN,3,8,"div",15),St(7,1),_(8,JN,1,0,"ng-container",12),c()}if(2&t){const
e=d();me(e.panelStyleClass),p("ngStyle",e.panelStyle)("ngClass",Do(11,YN,e.inline,e.disabled,e.timeOnly,e.numberOfMonths>1,"month"===e.view,e.touchUI))("@overlayAnimation",e.touchUI?U(21,ZN,Ge(18,lT,e.showTransitionOptions,e.hideTransitionOptions)):U(26,XN,Ge(23,lT,e.showTransitionOptions,e.hideTransitionOptions)))("@.disabled",!0===e.inline),a(3),p("ngTemplateOutlet",e.headerTemplate),a(1),p("ngIf",!e.timeOnly),a(1),p("ngIf",(e.showTime||e.timeOnly)&&"date"===e
.currentView),a(1),p("ngIf",e.showButtonBar),a(2),p("ngTemplateOutlet",e.footerTemplate)}}const
t5=[[["p-header"]],[["p-footer"]]],n5=function(t,i,e,n){return{"p-calendar":!0,"p-calendar-w-btn":t,"p-calendar-timeonly":i,"p-calendar-disabled":e,"p-focus":n}},s5=["p-header","p-footer"],r5={provide:dn,useExisting:je(()=>xr),multi:!0};let
xr=(()=>{class
t{constructor(e,n,s,r,o,u){this.el=e,this.renderer=n,this.cd=s,this.zone=r,this.config=o,this.overlayService=u,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.showClear=!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
H,this.onBlur=new H,this.onClose=new H,this.onSelect=new H,this.onClear=new
H,this.onInput=new H,this.onTodayClick=new H,this.onClearClick=new
H,this.onMonthChange=new H,this.onYearChange=new H,this.onClickOutside=new
H,this.onShow=new
H,this.onModelChange=()=>{},this.onModelTouched=()=>{},this.inputFieldValue=null,this.navigationState=null,this._numberOfMonths=1,this._view="date",this.convertTo24Hour=function(h,b){return"12"==this.hourFormat?12===h?b?12:0:b?h+12:h:h}}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){co
nst n=e||new
Date;this.currentMonth=n.getMonth(),this.currentYear=n.getFullYear(),this.initTime(n),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 year
Range(e){if(this._yearRange=e,e){const
n=e.split(":"),s=parseInt(n[0]),r=parseInt(n[1]);this.populateYearOptions(s,r)}}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._firstDayOfWeek}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=pl();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.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=R.getOuterWidth(this.containerViewChild.nativeElemen
t)+"px")))}getTranslation(e){return
this.config.getTranslation(e)}populateYearOptions(e,n){this.yearOptions=[];for(let
s=e;s<=n;s++)this.yearOptions.push(s)}createWeekDays(){this.weekDays=[];let
e=this.getFirstDateOfWeek(),n=this.getTranslation(Ft.DAY_NAMES_MIN);for(let
s=0;s<7;s++)this.weekDays.push(n[e]),e=6==e?0:++e}monthPickerValues(){let e=[];for(let
n=0;n<=11;n++)e.push(this.config.getTranslation("monthNamesShort")[n]);return
e}yearPickerValues(){let e=[],n=this.currentYear-this.currentYear%10;for(let
s=0;s<10;s++)e.push(n+s);return e}createMonths(e,n){this.months=this.months=[];for(let
s=0;s<this.numberOfMonths;s++){let
r=e+s,o=n;r>11&&(r=r%11-1,o=n+1),this.months.push(this.createMonth(r,o))}}getWeekNumber(e){let
n=new Date(e.getTime());n.setDate(n.getDate()+4-(n.getDay()||7));let s=n.getTime();return
n.setMonth(0),n.setDate(1),Math.floor(Math.round((s-n.getTime())/864e5)/7)+1}createMonth(e,n){let
s=[],r=this.getFirstDayOfMonthIndex(e,n),o=this.getDaysCountInMonth(e,n),u=this
.getDaysCountInPrevMonth(e,n),h=1,b=new Date,y=[],w=Math.ceil((o+r)/7);for(let
M=0;M<w;M++){let E=[];if(0==M){for(let O=u-r+1;O<=u;O++){let
N=this.getPreviousMonthAndYear(e,n);E.push({day:O,month:N.month,year:N.year,otherMonth:!0,today:this.isToday(b,O,N.month,N.year),selectable:this.isSelectable(O,N.month,N.year,!0)})}let
L=7-E.length;for(let
O=0;O<L;O++)E.push({day:h,month:e,year:n,today:this.isToday(b,h,e,n),selectable:this.isSelectable(h,e,n,!1)}),h++}else
for(let L=0;L<7;L++){if(h>o){let
O=this.getNextMonthAndYear(e,n);E.push({day:h-o,month:O.month,year:O.year,otherMonth:!0,today:this.isToday(b,h-o,O.month,O.year),selectable:this.isSelectable(h-o,O.month,O.year,!0)})}else
E.push({day:h,month:e,year:n,today:this.isToday(b,h,e,n),selectable:this.isSelectable(h,e,n,!1)});h++}this.showWeek&&y.push(this.getWeekNumber(new
Date(E[0].year,E[0].month,E[0].day))),s.push(E)}return{month:e,year:n,dates:s,weekNumbers:y}}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"===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({m
onth: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[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.setCurrentView("month"),e.preventDefault()}switchToYearView(e){this.setCurrentView("year"),e.preventDefault()}onDateSelect(e,n){!this.disabled&&n.selectable?(this.isMultipleSelection()&&this.isSelected(n)?(this
.value=this.value.filter((s,r)=>!this.isDateEquals(s,n)),0===this.value.length&&(this.value=null),this.updateModel(this.value)):this.shouldSelectDate(n)&&this.selectDate(n),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,n){"month"===this.view?this.onDateSelect(e,{year:this.currentYear,month:n,day:1,selectable:!0}):(this.currentMonth=n,this.createMonths(this.currentMonth,this.currentYear),this.setCurrentView("date"),this.onMonthChange.emit({month:this.currentMonth+1,year:this.currentYear}))}onYearSelect(e,n){"year"===this.view?this.onDateSelect(e,{year:n,month:0,day:1,selectable:!0}):(this.currentYear=n,this.setCurrentView("month"),this.onYearChange.emit({m
onth: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
n=0;n<this.value.length;n++)e+=this.formatDateTime(this.value[n]),n!==this.value.length-1&&(e+=this.multipleSeparator+"
");else
if(this.isRangeSelection()&&this.value&&this.value.length){let
s=this.value[1];e=this.formatDateTime(this.value[0]),s&&(e+="
"+this.rangeSeparator+"
"+this.formatDateTime(s))}this.inputFieldValue=e,this.updateFilledState(),this.inputfieldViewChild&&this.inputfieldViewChild.nativeElement&&(this.inputfieldViewChild.nativeElement.value=this.inputFieldValue)}formatDateTime(e){let
n=this.keepInvalid?e:null;return
this.isValidDate(e)&&(this.timeOnly?n=this.formatTime(e):(n=this.formatDate(e,this.getDateFormat()),this.showTime&&(n+="
"+this.formatTime(e)))),n}setCurrentHourPM(e){"12"==this.hourFormat?(this.pm=e>11,this.currentHour=e>=12?12==e?12:e-12:0==e?12:e):this.curr
entHour=e}setCurrentView(e){this.currentView=e,this.cd.detectChanges(),this.alignOverlay()}selectDate(e){let
n=new
Date(e.year,e.month,e.day);if(this.showTime&&(n.setHours("12"==this.hourFormat?12===this.currentHour?this.pm?12:0:this.pm?this.currentHour+12:this.currentHour:this.currentHour),n.setMinutes(this.currentMinute),n.setSeconds(this.currentSecond)),this.minDate&&this.minDate>n&&(n=this.minDate,this.setCurrentHourPM(n.getHours()),this.currentMinute=n.getMinutes(),this.currentSecond=n.getSeconds()),this.maxDate&&this.maxDate<n&&(n=this.maxDate,this.setCurrentHourPM(n.getHours()),this.currentMinute=n.getMinutes(),this.currentSecond=n.getSeconds()),this.isSingleSelection())this.updateModel(n);else
if(this.isMultipleSelection())this.updateModel(this.value?[...this.value,n]:[n]);else
if(this.isRangeSelection())if(this.value&&this.value.length){let
s=this.value[0],r=this.value[1];!r&&n.getTime()>=s.getTime()?r=n:(s=n,r=null),this.updateModel([s,r])}else
this.updateModel([n,null]);t
his.onSelect.emit(n)}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
n=null;this.value&&(n=this.value.map(s=>this.formatDateTime(s))),this.onModelChange(n)}}getFirstDayOfMonthIndex(e,n){let
s=new Date;s.setDate(1),s.setMonth(e),s.setFullYear(n);let
r=s.getDay()+this.getSundayIndex();return r>=7?r-7:r}getDaysCountInMonth(e,n){return
32-this.daylightSavingAdjust(new Date(n,e,32)).getDate()}getDaysCountInPrevMonth(e,n){let
s=this.getPreviousMonthAndYear(e,n);return
this.getDaysCountInMonth(s.month,s.year)}getPreviousMonthAndYear(e,n){let s,r;return
0===e?(s=11,r=n-1):(s=e-1,r=n),{month:s,year:r}}getNextMonthAndYear(e,n){let s,r;return
11===e?(s=0,r=n+1):(s=e+1,r=n),{month:s,year:r}}getSundayIndex(){let
e=this.getFirstDateOfWeek();return
e>0?7-e:0}isSelected(e){if(!this.value)return!1;if(this.isSingleSelection())return
this.isDateEq
uals(this.value,e);if(this.isMultipleSelection()){let n=!1;for(let s of
this.value)if(n=this.isDateEquals(s,e),n)break;return n}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
n=this.isRangeSelection()?this.value[0]:this.value;return!this.isMultipleSelection()&&n.getMonth()===e&&n.getFullYear()===this.currentYear}return!1}isYearSelected(e){if(this.isComparable()){let
n=this.isRangeSelection()?this.value[0]:this.value;return!this.isMultipleSelection()&&n.getFullYear()===e}return!1}isDateEquals(e,n){return!!(e&&e
instanceof
Date)&&e.getDate()===n.day&&e.getMonth()===n.month&&e.getFullYear()===n.year}isDateBetween(e,n,s){if(e&&n){let
o=new Date(s.year,s.month,s.day);return
e.getTime()<=o.getTime()&&n.getTime()>=o.g
etTime()}return!1}isSingleSelection(){return"single"===this.selectionMode}isRangeSelection(){return"range"===this.selectionMode}isMultipleSelection(){return"multiple"===this.selectionMode}isToday(e,n,s,r){return
e.getDate()===n&&e.getMonth()===s&&e.getFullYear()===r}isSelectable(e,n,s,r){let
o=!0,u=!0,h=!0,b=!0;return!(r&&!this.selectOtherMonths)&&(this.minDate&&(this.minDate.getFullYear()>s||this.minDate.getFullYear()===s&&(this.minDate.getMonth()>n||this.minDate.getMonth()===n&&this.minDate.getDate()>e))&&(o=!1),this.maxDate&&(this.maxDate.getFullYear()<s||this.maxDate.getFullYear()===s&&(this.maxDate.getMonth()<n||this.maxDate.getMonth()===n&&this.maxDate.getDate()<e))&&(u=!1),this.disabledDates&&(h=!this.isDateDisabled(e,n,s)),this.disabledDays&&(b=!this.isDayDisabled(e,n,s)),o&&u&&h&&b)}isDateDisabled(e,n,s){if(this.disabledDates)for(let
r of
this.disabledDates)if(r.getFullYear()===s&&r.getMonth()===n&&r.getDate()===e)return!0;return!1}isDayDisabled(e,n,s){if(this.disabledDays)
{let o=new
Date(s,n,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,n){this.overlayVisible?this.hideOverlay():(n.focus(),this.showOverlay())}clear(){this.inputFieldValue=null,this.value=null,this.onModelChange(this.value),this.onClear.emit()}onOverlayClick(e){this.overlayService.add({originalEvent:e,target:this.el.nativeElement})}getMonthName(e){return
this.config.getTranslation("monthNames")[e]}getYear(e){return"month"===this.currentView?this.currentYear:e.year}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},thi
s.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&&(R.getFocusableElements(this.contentViewChild.nativeElement).forEach(n=>n.tabIndex="-1"),this.overlayVisible&&(this.overlayVisible=!1))}onDateCellKeydown(e,n,s){const
r=e.currentTarget,o=r.parentElement;switch(e.which){case 40:{r.tabIndex="-1";let
u=R.index(o),h=o.parentElement.nextElementSibling;h?R.hasClass(h.children[u].children[0],"p-disabled")?(this.navigationState={backward:!1},this.navForward(e)):(h.children[u].children[0].tabIndex="0",h.children[u].children[0].focus()):(this.navigationState={backward:!1},this.navForward(e)),e.preventDefault();break}case
38:{r.tabIndex="-1";let u=R.index(o),h=o.parentE
lement.previousElementSibling;if(h){let
b=h.children[u].children[0];R.hasClass(b,"p-disabled")?(this.navigationState={backward:!0},this.navBackward(e)):(b.tabIndex="0",b.focus())}else
this.navigationState={backward:!0},this.navBackward(e);e.preventDefault();break}case
37:{r.tabIndex="-1";let u=o.previousElementSibling;if(u){let
h=u.children[0];R.hasClass(h,"p-disabled")||R.hasClass(h.parentElement,"p-datepicker-weeknumber")?this.navigateToMonth(!0,s):(h.tabIndex="0",h.focus())}else
this.navigateToMonth(!0,s);e.preventDefault();break}case 39:{r.tabIndex="-1";let
u=o.nextElementSibling;if(u){let
h=u.children[0];R.hasClass(h,"p-disabled")?this.navigateToMonth(!1,s):(h.tabIndex="0",h.focus())}else
this.navigateToMonth(!1,s);e.preventDefault();break}case 13:case
32:this.onDateSelect(e,n),e.preventDefault();break;case
27:this.overlayVisible=!1,e.preventDefault();break;case
9:this.inline||this.trapFocus(e)}}onMonthCellKeydown(e,n){const
s=e.currentTarget;switch(e.which){case 38:case 40:{s.
tabIndex="-1";var r=s.parentElement.children,o=R.index(s);let
u=r[40===e.which?o+3:o-3];u&&(u.tabIndex="0",u.focus()),e.preventDefault();break}case
37:{s.tabIndex="-1";let
u=s.previousElementSibling;u?(u.tabIndex="0",u.focus()):(this.navigationState={backward:!0},this.navBackward(e)),e.preventDefault();break}case
39:{s.tabIndex="-1";let
u=s.nextElementSibling;u?(u.tabIndex="0",u.focus()):(this.navigationState={backward:!1},this.navForward(e)),e.preventDefault();break}case
13:this.onMonthSelect(e,n),e.preventDefault();break;case 13:case 32:case
27:this.overlayVisible=!1,e.preventDefault();break;case
9:this.inline||this.trapFocus(e)}}onYearCellKeydown(e,n){const
s=e.currentTarget;switch(e.which){case 38:case 40:{s.tabIndex="-1";var
r=s.parentElement.children,o=R.index(s);let
u=r[40===e.which?o+2:o-2];u&&(u.tabIndex="0",u.focus()),e.preventDefault();break}case
37:{s.tabIndex="-1";let
u=s.previousElementSibling;u?(u.tabIndex="0",u.focus()):(this.navigationState={backward:!0},this.navBac
kward(e)),e.preventDefault();break}case 39:{s.tabIndex="-1";let
u=s.nextElementSibling;u?(u.tabIndex="0",u.focus()):(this.navigationState={backward:!1},this.navForward(e)),e.preventDefault();break}case
13:case 32:this.onYearSelect(e,n),e.preventDefault();break;case
27:this.overlayVisible=!1,e.preventDefault();break;case
9:this.trapFocus(e)}}navigateToMonth(e,n){if(e)if(1===this.numberOfMonths||0===n)this.navigationState={backward:!0},this.navBackward(event);else{let
r=R.find(this.contentViewChild.nativeElement.children[n-1],".p-datepicker-calendar td
span:not(.p-disabled):not(.p-ink)"),o=r[r.length-1];o.tabIndex="0",o.focus()}else
if(1===this.numberOfMonths||n===this.numberOfMonths-1)this.navigationState={backward:!1},this.navForward(event);else{let
r=R.findSingle(this.contentViewChild.nativeElement.children[n+1],".p-datepicker-calendar
td
span:not(.p-disabled):not(.p-ink)");r.tabIndex="0",r.focus()}}updateFocus(){let
e;if(this.navigationState){if(this.navigationState.button)this.in
itFocusableCell(),this.navigationState.backward?R.findSingle(this.contentViewChild.nativeElement,".p-datepicker-prev").focus():R.findSingle(this.contentViewChild.nativeElement,".p-datepicker-next").focus();else{if(this.navigationState.backward){let
n;n=R.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)"),n&&n.length>0&&(e=n[n.length-1])}else
e=R.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 n=R.find(this.conte
ntViewChild.nativeElement,".p-monthpicker
.p-monthpicker-month:not(.p-disabled)"),s=R.findSingle(this.contentViewChild.nativeElement,".p-monthpicker
.p-monthpicker-month.p-highlight");n.forEach(r=>r.tabIndex=-1),e=s||n[0],0===n.length&&R.find(this.contentViewChild.nativeElement,'.p-monthpicker
.p-monthpicker-month.p-disabled[tabindex =
"0"]').forEach(o=>o.tabIndex=-1)}else
if("year"===this.currentView){let
n=R.find(this.contentViewChild.nativeElement,".p-yearpicker
.p-yearpicker-year:not(.p-disabled)"),s=R.findSingle(this.contentViewChild.nativeElement,".p-yearpicker
.p-yearpicker-year.p-highlight");n.forEach(r=>r.tabIndex=-1),e=s||n[0],0===n.length&&R.find(this.contentViewChild.nativeElement,'.p-yearpicker
.p-yearpicker-year.p-disabled[tabindex =
"0"]').forEach(o=>o.tabIndex=-1)}else
if(e=R.findSingle(this.contentViewChild.nativeElement,"span.p-highlight"),!e){let
n=R.findSingle(this.contentViewChild.nativeElement,"td.p-datepicker-today
span:not(.p-disabled):not(.p-ink)");e=n||R.fi
ndSingle(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
n=R.getFocusableElements(this.contentViewChild.nativeElement);if(n&&n.length>0)if(n[0].ownerDocument.activeElement){let
s=n.indexOf(n[0].ownerDocument.activeElement);if(e.shiftKey)if(-1==s||0===s)if(this.focusTrap)n[n.length-1].focus();else{if(-1===s)return
this.hideOverlay();if(0===s)return}else n[s-1].focus();else
if(-1==s||s===n.length-1){if(!this.focusTrap&&-1!=s)return
this.hideOverlay();n[0].focus()}else n[s+1].focus()}else
n[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,n,s,r){let
o=this.value;const
u=this.convertTo24Hour(e,r);this.isRangeSelection()&&(o=this.value[1]||this.value[0]),this.isMultipleSelection()&&(o=this.value[this.value.length-1]);const
h=o?o.toDateString():null;return!(this.minDate&&h&&this.minDate.toDateString()===h&&(this.minDate.getHours()>u||this.minDate.getHours()===u&&(this.minDate.getMinutes()>n||this.minDate.getMinutes()===n&&this.minDate.getSeconds()>s))||this.maxDate&&h&&this.maxDate.toDateString()===h&&(this.maxDate.getHours()<u||this.maxDate.getHours()===u&&(this.maxDate.getMinutes()<n||this.maxDate.getMinutes()===n&&this.maxDate.getSeconds()<s)))}incrementHour(e){let
s=this.currentHour+this.stepHour,r=this.pm;"24"==this.hourFormat?s=s>=24?s-24:s:"12"==this.hourFormat&&(this.currentHour<12&&s>11&&(r=!this.pm),s=s>=13?s-12:s),this.validateTime(s,this.currentMinute,this.currentSecond,r)&&(this.currentHou
r=s,this.pm=r),e.preventDefault()}onTimePickerElementMouseDown(e,n,s){this.disabled||(this.repeat(e,null,n,s),e.preventDefault())}onTimePickerElementMouseUp(e){this.disabled||(this.clearTimePickerTimer(),this.updateTime())}onTimePickerElementMouseLeave(){!this.disabled&&this.timePickerTimer&&(this.clearTimePickerTimer(),this.updateTime())}repeat(e,n,s,r){let
o=n||500;switch(this.clearTimePickerTimer(),this.timePickerTimer=setTimeout(()=>{this.repeat(e,100,s,r),this.cd.markForCheck()},o),s){case
0:1===r?this.incrementHour(e):this.decrementHour(e);break;case
1:1===r?this.incrementMinute(e):this.decrementMinute(e);break;case
2:1===r?this.incrementSecond(e):this.decrementSecond(e)}this.updateInputfield()}clearTimePickerTimer(){this.timePickerTimer&&(clearTimeout(this.timePickerTimer),this.timePickerTimer=null)}decrementHour(e){let
n=this.currentHour-this.stepHour,s=this.pm;"24"==this.hourFormat?n=n<0?24+n:n:"12"==this.hourFormat&&(12===this.currentHour&&(s=!this.pm),n=n<=0?12+n:n),this.
validateTime(n,this.currentMinute,this.currentSecond,s)&&(this.currentHour=n,this.pm=s),e.preventDefault()}incrementMinute(e){let
n=this.currentMinute+this.stepMinute;n=n>59?n-60:n,this.validateTime(this.currentHour,n,this.currentSecond,this.pm)&&(this.currentMinute=n),e.preventDefault()}decrementMinute(e){let
n=this.currentMinute-this.stepMinute;n=n<0?60+n:n,this.validateTime(this.currentHour,n,this.currentSecond,this.pm)&&(this.currentMinute=n),e.preventDefault()}incrementSecond(e){let
n=this.currentSecond+this.stepSecond;n=n>59?n-60:n,this.validateTime(this.currentHour,this.currentMinute,n,this.pm)&&(this.currentSecond=n),e.preventDefault()}decrementSecond(e){let
n=this.currentSecond-this.stepSecond;n=n<0?60+n:n,this.validateTime(this.currentHour,this.currentMinute,n,this.pm)&&(this.currentSecond=n),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
n=!this.pm;this.validateTime(this.currentHour,this.currentMinute,this.currentSecond,n)&&(this.pm=n,this.updateTime()),e.preventDefault()}onUserInput(e){if(!this.isKeydown)return;this.isKeydown=!1;let
n=e.target.value;try{let
s=this.parseValueFromString(n);this.isValidSelection(s)&&(this.updateModel(s),this.updateUI())}catch(s){this.updateModel(this.keepInvalid?n:null)}this.filled=null!=n&&n.length,this.onInput.emit(e)}isValidSelection(e){let
n=!0;return
this.isSingleSelection()?this.isSelectable(e.getDate(),e.getMonth(),e.getFullYear(),!1)||(n=!1):e.eve
ry(s=>this.isSelectable(s.getDate(),s.getMonth(),s.getFullYear(),!1))&&this.isRangeSelection()&&(n=e.length>1&&e[1]>e[0]),n}parseValueFromString(e){if(!e||0===e.trim().length)return
null;let n;if(this.isSingleSelection())n=this.parseDateTime(e);else
if(this.isMultipleSelection()){let s=e.split(this.multipleSeparator);n=[];for(let r of
s)n.push(this.parseDateTime(r.trim()))}else if(this.isRangeSelection()){let
s=e.split(" "+this.rangeSeparator+" ");n=[];for(let
r=0;r<s.length;r++)n[r]=this.parseDateTime(s[r].trim())}return n}parseDateTime(e){let
n,s=e.split(" ");if(this.timeOnly)n=new
Date,this.populateTime(n,s[0],s[1]);else{const
r=this.getDateFormat();if(this.showTime){let
o="12"==this.hourFormat?s.pop():null,u=s.pop();n=this.parseDate(s.join("
"),r),this.populateTime(n,u,o)}else n=this.parseDate(e,r)}return
n}populateTime(e,n,s){if("12"==this.hourFormat&&!s)throw"Invalid
Time";this.pm="PM"===s||"pm"===s;let
r=this.parseTime(n);e.setHours(r.hour),e.setMinutes(r.minute),e.setSeconds
(r.second)}isValidDate(e){return e instanceof
Date&&Z.isNotEmpty(e)}updateUI(){let
e=this.value;Array.isArray(e)&&(e=e[0]);let
n=this.defaultDate&&this.isValidDate(this.defaultDate)&&!this.value?this.defaultDate:e&&this.isValidDate(e)?e:new
Date;this.currentMonth=n.getMonth(),this.currentYear=n.getFullYear(),this.createMonths(this.currentMonth,this.currentYear),(this.showTime||this.timeOnly)&&(this.setCurrentHourPM(n.getHours()),this.currentMinute=n.getMinutes(),this.currentSecond=n.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.over
lay.setAttribute(this.attributeSelector,""),this.appendOverlay(),this.updateFocus(),this.autoZIndex&&(this.touchUI?dt.set("modal",this.overlay,this.baseZIndex||this.config.zIndex.modal):dt.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&&dt.clear(e.element)}}appendOverlay(){this.appendTo&&("body"===this.appendTo?document.body.appendChild(this.overlay):R.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=R.getOuterWidth(t
his.overlay)+"px",this.overlay.style.minWidth=R.getOuterWidth(this.inputfieldViewChild.nativeElement)+"px"):this.overlay.style.width=R.getOuterWidth(this.inputfieldViewChild.nativeElement)+"px",R.absolutePosition(this.overlay,this.inputfieldViewChild.nativeElement)):R.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),R.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",s=>{this.disableModality()}),document.body.appendChild(this.mask),R.addClass(document.body,"p-overflow-hidden"))}disableModality(){this.mask&&(R.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 n,e=document.body.children;for(let
s=0;s<e.length;s++)if(R.hasClass(e[s],"p-datepicker-mask-scrollblocker")){n=!0;break}n||R.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){if(this.value=e,this.value&&"string"==typeof
this.value)try{this.value=this.parseValueFromString(this.value)}catch(n){this.keepInvalid&&(this.value=e)}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||th
is.getTranslation("dateFormat")}getFirstDateOfWeek(){return
this._firstDayOfWeek||this.getTranslation(Ft.FIRST_DAY_OF_WEEK)}formatDate(e,n){if(!e)return"";let
s;const r=y=>{const w=s+1<n.length&&n.charAt(s+1)===y;return
w&&s++,w},o=(y,w,M)=>{let
E=""+w;if(r(y))for(;E.length<M;)E="0"+E;return
E},u=(y,w,M,E)=>r(y)?E[w]:M[w];let
h="",b=!1;if(e)for(s=0;s<n.length;s++)if(b)"'"!==n.charAt(s)||r("'")?h+=n.charAt(s):b=!1;else
switch(n.charAt(s)){case"d":h+=o("d",e.getDate(),2);break;case"D":h+=u("D",e.getDay(),this.getTranslation(Ft.DAY_NAMES_SHORT),this.getTranslation(Ft.DAY_NAMES));break;case"o":h+=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":h+=o("m",e.getMonth()+1,2);break;case"M":h+=u("M",e.getMonth(),this.getTranslation(Ft.MONTH_NAMES_SHORT),this.getTranslation(Ft.MONTH_NAMES));break;case"y":h+=r("y")?e.getFullYear():(e.getFullYear()%100<10?"0":"")+e.getFullYear()%100;break;case"@":h+=e.
getTime();break;case"!":h+=1e4*e.getTime()+this.ticksTo1970;break;case"'":r("'")?h+="'":b=!0;break;default:h+=n.charAt(s)}return
h}formatTime(e){if(!e)return"";let
n="",s=e.getHours(),r=e.getMinutes(),o=e.getSeconds();return"12"==this.hourFormat&&s>11&&12!=s&&(s-=12),n+="12"==this.hourFormat&&0===s?12:s<10?"0"+s:s,n+=":",n+=r<10?"0"+r:r,this.showSeconds&&(n+=":",n+=o<10?"0"+o:o),"12"==this.hourFormat&&(n+=e.getHours()>11?"
PM":" AM"),n}parseTime(e){let
n=e.split(":");if(n.length!==(this.showSeconds?3:2))throw"Invalid
time";let
r=parseInt(n[0]),o=parseInt(n[1]),u=this.showSeconds?parseInt(n[2]):null;if(isNaN(r)||isNaN(o)||r>23||o>59||"12"==this.hourFormat&&r>12||this.showSeconds&&(isNaN(u)||u>59))throw"Invalid
time";return"12"==this.hourFormat&&(12!==r&&this.pm?r+=12:!this.pm&&12===r&&(r-=12)),{hour:r,minute:o,second:u}}parseDate(e,n){if(null==n||null==e)throw"Invalid
arguments";if(""===(e="object"==typeof
e?e.toString():e+""))return null;let s,r,o,L,u=0,h="string"!=typeof
this.short
YearCutoff?this.shortYearCutoff:(new
Date).getFullYear()%100+parseInt(this.shortYearCutoff,10),b=-1,y=-1,w=-1,M=-1,E=!1,O=J=>{let
se=s+1<n.length&&n.charAt(s+1)===J;return se&&s++,se},N=J=>{let
se=O(J),ke="@"===J?14:"!"===J?20:"y"===J&&se?4:"o"===J?3:2,Ct=new
RegExp("^\\d{"+("y"===J?ke:1)+","+ke+"}"),Ut=e.substring(u).match(Ct);if(!Ut)throw"Missing
number at position "+u;return
u+=Ut[0].length,parseInt(Ut[0],10)},G=(J,se,ke)=>{let mt=-1,Ct=O(J)?ke:se,Ut=[];for(let
At=0;At<Ct.length;At++)Ut.push([At,Ct[At]]);Ut.sort((At,hn)=>-(At[1].length-hn[1].length));for(let
At=0;At<Ut.length;At++){let
hn=Ut[At][1];if(e.substr(u,hn.length).toLowerCase()===hn.toLowerCase()){mt=Ut[At][0],u+=hn.length;break}}if(-1!==mt)return
mt+1;throw"Unknown name at position
"+u},P=()=>{if(e.charAt(u)!==n.charAt(s))throw"Unexpected literal at position
"+u;u++};for("month"===this.view&&(w=1),s=0;s<n.length;s++)if(E)"'"!==n.charAt(s)||O("'")?P():E=!1;else
switch(n.charAt(s)){case"d":w=N("d");break;case"D":G("D",thi
s.getTranslation(Ft.DAY_NAMES_SHORT),this.getTranslation(Ft.DAY_NAMES));break;case"o":M=N("o");break;case"m":y=N("m");break;case"M":y=G("M",this.getTranslation(Ft.MONTH_NAMES_SHORT),this.getTranslation(Ft.MONTH_NAMES));break;case"y":b=N("y");break;case"@":L=new
Date(N("@")),b=L.getFullYear(),y=L.getMonth()+1,w=L.getDate();break;case"!":L=new
Date((N("!")-this.ticksTo1970)/1e4),b=L.getFullYear(),y=L.getMonth()+1,w=L.getDate();break;case"'":O("'")?P():E=!0;break;default:P()}if(u<e.length&&(o=e.substr(u),!/^\s+/.test(o)))throw"Extra/unparsed
characters found in date: "+o;if(-1===b?b=(new
Date).getFullYear():b<100&&(b+=(new Date).getFullYear()-(new
Date).getFullYear()%100+(b<=h?0:-100)),M>-1)for(y=1,w=M;r=this.getDaysCountInMonth(b,y-1),!(w<=r);)y++,w-=r;if(L=this.daylightSavingAdjust(new
Date(b,y-1,w)),L.getFullYear()!==b||L.getMonth()+1!==y||L.getDate()!==w)throw"Invalid
date";return L}daylightSavingAdjust(e){return
e?(e.setHours(e.getHours()>12?e.getHours()+2:0),e):null}updateFilledS
tate(){this.filled=this.inputFieldValue&&""!=this.inputFieldValue}onTodayButtonClick(e){let
n=new
Date,s={day:n.getDate(),month:n.getMonth(),year:n.getFullYear(),otherMonth:n.getMonth()!==this.currentMonth||n.getFullYear()!==this.currentYear,today:!0,selectable:!0};this.onDateSelect(e,s),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
n=[...this.responsiveOptions].filter(s=>!(!s.breakpoint||!s.numMonths)).sort((s,r)=>-1*s.breakpoint.localeCompare(r.breakpoint,void
0,{numeric:!0}));for(let s=0;s<n.length;s++){let{breakpoint:r,numMonths:o}=n[s],u=`\n
.p-datepicker[${this.at
tributeSelector}] .p-datepicker-group:nth-child(${o}) .p-datepicker-next {\n
display: inline-flex !important;\n }\n
`;for(let h=o;h<this.numberOfMonths;h++)u+=`\n
.p-datepicker[${this.attributeSelector}] .p-datepicker-group:nth-child(${h+1}) {\n
display: none !important;\n }\n
`;e+=`\n @media screen and (max-width: ${r}) {\n
${u}\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",n=>{this.
isOutsideClicked(n)&&this.overlayVisible&&this.zone.run(()=>{this.hideOverlay(),this.onClickOutside.emit(n),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
Qs(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
R.hasClass(e.target,"p-datepicker-prev")||R.hasClass(e.target,"p-datepicker-prev-icon")||R.hasClass(e.target,"p-datepicker-next")||R.hasClass(e.target,"p-datepicker-next-icon")}onWindowResize(){this.overlayVisible&&!R.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&&dt.clear(this.overlay),this.destroyResponsiveStyleElement(),this.clearTimePickerTimer(),this.restoreOverlayAppend(),this.onOverlayHide()}}return
t.\u0275fac=function(e){return
new(e||t)(D(De),D(gn),D(rt),D(nt),D(zn),D(Ks))},t.\u0275cmp=z({type:t,selecto
rs:[["p-calendar"]],contentQueries:function(e,n,s){if(1&e&&st(s,ne,4),2&e){let
r;V(r=B())&&(n.templates=r)}},viewQuery:function(e,n){if(1&e&&(W(pN,5),W(hN,5),W(mN,5)),2&e){let
s;V(s=B())&&(n.containerViewChild=s.first),V(s=B())&&(n.inputfieldViewChild=s.first),V(s=B())&&(n.content=s.first)}},hostAttrs:[1,"p-element","p-inputwrapper"],hostVars:6,hostBindings:function(e,n){2&e&&si("p-inputwrapper-filled",n.filled)("p-inputwrapper-focus",n.focus)("p-calendar-clearable",n.showClear&&!n.disabled)},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:"readonly
Input",shortYearCutoff:"shortYearCutoff",monthNavigator:"monthNavigator",yearNavigator:"yearNavigator",hourFormat:"hourFormat",timeOnly:"timeOnly",stepHour:"stepHour",stepMinute:"stepMinute",stepSecond:"stepSecond",showSeconds:"showSeconds",required:"required",showOnFocus:"showOnFocus",showWeek:"showWeek",showClear:"showClear",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",minDate:"minDate",maxDate:"maxDate",disabledDates:"disabledDates",disabl
edDays:"disabledDays",yearRange:"yearRange",showTime:"showTime",responsiveOptions:"responsiveOptions",numberOfMonths:"numberOfMonths",firstDayOfWeek:"firstDayOfWeek",locale:"locale"},outputs:{onFocus:"onFocus",onBlur:"onBlur",onClose:"onClose",onSelect:"onSelect",onClear:"onClear",onInput:"onInput",onTodayClick:"onTodayClick",onClearClick:"onClearClick",onMonthChange:"onMonthChange",onYearChange:"onYearChange",onClickOutside:"onClickOutside",onShow:"onShow"},features:[Pe([r5])],ngContentSelectors:s5,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",""],["class","p-calendar-clear-icon
pi
pi-times",3,"click",4,"ngIf"],["type","button","pButton","","pRipple","","class","p-datepicker-trigger","tabindex","0",3,"icon","disabled","click",4,"ngIf"],[1,"p-calenda
r-clear-icon","pi","pi-times",3,"click"],["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-chevr
on-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"],["pR
ipple","",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,n){1&e&&(Sn(t5),l(0,"span",0,1),_(2,_N,4,17,"ng-template",2),_(3,e5,9,28,"div",3),c()),2&e&&(me(n.styleClass),p("ngC
lass",qn(6,n5,n.showIcon,n.timeOnly,n.disabled,n.focus))("ngStyle",n.style),a(2),p("ngIf",!n.inline),a(1),p("ngIf",n.inline||n.overlayVisible))},directives:[Le,lt,Q,On,bt,Rt,at],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;p
osition: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;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:translat
e(-50%,-50%)}.p-yearpicker-year{width:50%;display:inline-flex;align-items:center;justify-content:center;cursor:pointer;overflow:hidden;position:relative}.p-calendar-clear-icon{position:absolute;top:50%;margin-top:-.5rem;cursor:pointer}.p-calendar-clearable{position:relative}\n"],encapsulation:2,data:{animation:[wi("overlayAnimation",[ws("visibleTouchUI",it({transform:"translate(-50%,-50%)",opacity:1})),Lt("void
=>
visible",[it({opacity:0,transform:"scaleY(0.8)"}),kt("{{showTransitionParams}}",it({opacity:1,transform:"*"}))]),Lt("visible
=> void",[kt("{{hideTransitionParams}}",it({opacity:0}))]),Lt("void
=> visibleTouchUI",[it({opacity:0,transform:"translate3d(-50%, -40%, 0)
scale(0.9)"}),kt("{{showTransitionParams}}")]),Lt("visibleTouchUI
=>
void",[kt("{{hideTransitionParams}}",it({opacity:0,transform:"translate3d(-50%,
-40%, 0) scale(0.9)"}))])])]},changeDetection:0}),t})(),cT=(()=>{class t{}return
t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=he({type:t}),t.\u0275inj=ue({i
mports:[[Fe,gl,Nt,pn],gl,Nt]}),t})();function o5(t,i){1&t&&Y(0)}function
a5(t,i){if(1&t&&(l(0,"div",8),St(1,1),_(2,o5,1,0,"ng-container",6),c()),2&t){const
e=d();a(2),p("ngTemplateOutlet",e.headerTemplate)}}function
l5(t,i){1&t&&Y(0)}function
c5(t,i){if(1&t&&(l(0,"div",9),g(1),_(2,l5,1,0,"ng-container",6),c()),2&t){const
e=d();a(1),T(" ",e.header,"
"),a(1),p("ngTemplateOutlet",e.titleTemplate)}}function
u5(t,i){1&t&&Y(0)}function
d5(t,i){if(1&t&&(l(0,"div",10),g(1),_(2,u5,1,0,"ng-container",6),c()),2&t){const
e=d();a(1),T(" ",e.subheader,"
"),a(1),p("ngTemplateOutlet",e.subtitleTemplate)}}function
p5(t,i){1&t&&Y(0)}function h5(t,i){1&t&&Y(0)}function
m5(t,i){if(1&t&&(l(0,"div",11),St(1,2),_(2,h5,1,0,"ng-container",6),c()),2&t){const
e=d();a(2),p("ngTemplateOutlet",e.footerTemplate)}}const
f5=["*",[["p-header"]],[["p-footer"]]],g5=["*","p-header","p-footer"];let
Ne=(()=>{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.template;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)(D(De))},t.\u0275cmp=z({type:t,selectors:[["p-card"]],contentQueries:function(e,n,s){if(1&e&&(st(s,Oo,5),st(s,fl,5),st(s,ne,4)),2&e){let
r;V(r=B())&&(n.headerFacet=r.first),V(r=B())&&(n.footerFacet=r.first),V(r=B())&&(n.templates=r)}},hostAttrs:[1,"p-element"],inputs:{header:"header",subheader:"subheader",style:"style",styleClass:"styleClass"},ngContentSelectors:g5,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:function(e,n){1&e&&(Sn(f5),l(0,"div",0),_(1,a5,3,1,"div",1),l(2,"div",2),_(3,c5,3,2,"div",3),_(4,d5,3,2,"div",4),l(5,"div",5),St(6),_(7,p5,1,0,"ng-container",6),c(),_(8,m5,3,1,"div",7),c()()),2&e&&(me(n.styleClass),p("ngClass","p-card
p-component")("ngStyle",n.style),a(1),p("ngIf",n.headerFacet||n.headerTemplate),a(2),p("ngIf",n.header||n.titleTemplate),a(1),p("ngIf",n.subheader||n.subtitleTemplate),a(3),p("ngTemplateOutlet",n.contentTemplate),a(1),p("ngIf",n.footerFacet||n.footerTemplate))},directives:[Le,lt,Q,Rt],styles:[".p-card-header
img{width:100%}\n"],encapsulation:2,changeDetection:0}),t})(),_5=(()=>{class
t{}return t.\u0275fac=function(e){return
new(e||t)},t.\u0275mod=he({type:t}),t.\u0275inj=ue({imports:[[Fe],Nt]}),t})();const
b5=["cb"],v5=function(t,i,e){return{"p-checkbox-label":!0,"p-checkbox-label-active":t,"p-disabled":i,"p-checkbox-label-focus":e}};function
C5(t,i){if(1&t){const e=I();l(0,"label",7)
,C("click",function(s){v(e);const r=d(),o=F(3);return
r.onClick(s,o,!0)}),g(1),c()}if(2&t){const
e=d();me(e.labelStyleClass),p("ngClass",Qt(5,v5,e.checked(),e.disabled,e.focused)),ie("for",e.inputId),a(1),S(e.label)}}const
y5=function(t,i,e){return{"p-checkbox
p-component":!0,"p-checkbox-checked":t,"p-checkbox-disabled":i,"p-checkbox-focused":e}},w5=function(t,i,e){return{"p-highlight":t,"p-disabled":i,"p-focus":e}},T5={provide:dn,useExisting:je(()=>sn),multi:!0};let
sn=(()=>{class t{constructor(e){this.cd=e,this.checkboxIcon="pi
pi-check",this.trueValue=!0,this.falseValue=!1,this.onChange=new
H,this.onModelChange=()=>{},this.onModelTouched=()=>{},this.focused=!1}onClick(e,n,s){e.preventDefault(),!this.disabled&&!this.readonly&&(this.updateModel(e),s&&n.focus())}updateModel(e){let
n;this.binary?(n=this.checked()?this.falseValue:this.trueValue,this.model=n,this.onModelChange(n)):(n=this.checked()?this.model.filter(s=>!Z.equals(s,this.value)):this.model?[...this.model,this.value]:[thi
s.value],this.onModelChange(n),this.model=n,this.formControl&&this.formControl.setValue(n)),this.onChange.emit({checked:n,originalEvent:e})}handleChange(e){this.readonly||this.updateModel(e)}onFocus(){this.focused=!0}onBlur(){this.focused=!1,this.onModelTouched()}focus(){this.inputViewChild.nativeElement.focus()}writeValue(e){this.model=e,this.cd.markForCheck()}registerOnChange(e){this.onModelChange=e}registerOnTouched(e){this.onModelTouched=e}setDisabledState(e){this.disabled=e,this.cd.markForCheck()}checked(){return
this.binary?this.model===this.trueValue:Z.contains(this.value,this.model)}}return
t.\u0275fac=function(e){return
new(e||t)(D(rt))},t.\u0275cmp=z({type:t,selectors:[["p-checkbox"]],viewQuery:function(e,n){if(1&e&&W(b5,5),2&e){let
s;V(s=B())&&(n.inputViewChild=s.first)}},hostAttrs:[1,"p-element"],inputs:{value:"value",name:"name",disabled:"disabled",binary:"binary",label:"label",ariaLabelledBy:"ariaLabelledBy",ariaLabel:"ariaLabel",tabindex:"tabindex",inputId:"inputId",s
tyle:"style",styleClass:"styleClass",labelStyleClass:"labelStyleClass",formControl:"formControl",checkboxIcon:"checkboxIcon",readonly:"readonly",required:"required",trueValue:"trueValue",falseValue:"falseValue"},outputs:{onChange:"onChange"},features:[Pe([T5])],decls:7,vars:26,consts:[[3,"ngStyle","ngClass"],[1,"p-hidden-accessible"],["type","checkbox",3,"readonly","value","checked","disabled","focus","blur","change"],["cb",""],[1,"p-checkbox-box",3,"ngClass","click"],[1,"p-checkbox-icon",3,"ngClass"],[3,"class","ngClass","click",4,"ngIf"],[3,"ngClass","click"]],template:function(e,n){if(1&e){const
s=I();l(0,"div",0)(1,"div",1)(2,"input",2,3),C("focus",function(){return
n.onFocus()})("blur",function(){return
n.onBlur()})("change",function(o){return
n.handleChange(o)}),c()(),l(4,"div",4),C("click",function(o){v(s);const
u=F(3);return
n.onClick(o,u,!0)}),k(5,"span",5),c()(),_(6,C5,2,9,"label",6)}2&e&&(me(n.styleClass),p("ngStyle",n.style)("ngClass",Qt(18,y5,n.checked(),n.disabled,n.fo
cused)),a(2),p("readonly",n.readonly)("value",n.value)("checked",n.checked())("disabled",n.disabled),ie("id",n.inputId)("name",n.name)("tabindex",n.tabindex)("aria-labelledby",n.ariaLabelledBy)("aria-label",n.ariaLabel)("aria-checked",n.checked())("required",n.required),a(2),p("ngClass",Qt(22,w5,n.checked(),n.disabled,n.focused)),a(1),p("ngClass",n.checked()?n.checkboxIcon:null),a(1),p("ngIf",n.label))},directives:[lt,Le,Q],styles:[".p-checkbox{display:inline-flex;cursor:pointer;-webkit-user-select:none;user-select:none;vertical-align:bottom;position:relative}.p-checkbox-disabled{cursor:default!important;pointer-events:none}.p-checkbox-box{display:flex;justify-content:center;align-items:center}p-checkbox{display:inline-flex;vertical-align:bottom;align-items:center}.p-checkbox-label{line-height:1}\n"],encapsulation:2,changeDetection:0}),t})(),S5=(()=>{class
t{}return t.\u0275fac=function(e){return
new(e||t)},t.\u0275mod=he({type:t}),t.\u0275inj=ue({imports:[[Fe]]}),t})();function Ku(
t,i=0){return function
D5(t){return!isNaN(parseFloat(t))&&!isNaN(Number(t))}(t)?Number(t):i}function
Uf(t,i,e,n){return Is(e)&&(n=e,e=void
0),n?Uf(t,i,e).pipe(et(s=>Nr(s)?n(...s):n(s))):new Je(s=>{uT(t,i,function
r(o){s.next(arguments.length>1?Array.prototype.slice.call(arguments):o)},s,e)})}function
uT(t,i,e,n,s){let r;if(function E5(t){return t&&"function"==typeof
t.addEventListener&&"function"==typeof t.removeEventListener}(t)){const
o=t;t.addEventListener(i,e,s),r=()=>o.removeEventListener(i,e,s)}else if(function
I5(t){return t&&"function"==typeof
t.on&&"function"==typeof t.off}(t)){const
o=t;t.on(i,e),r=()=>o.off(i,e)}else if(function k5(t){return
t&&"function"==typeof
t.addListener&&"function"==typeof t.removeListener}(t)){const
o=t;t.addListener(i,e),r=()=>o.removeListener(i,e)}else{if(!t||!t.length)throw new
TypeError("Invalid event target");for(let
o=0,u=t.length;o<u;o++)uT(t[o],i,e,n,s)}n.add(r)}const O5=new class L5 extends
Hi{flush(i){this.active=!0,this.scheduled=void 0
;const{actions:e}=this;let
n,s=-1,r=e.length;i=i||e.shift();do{if(n=i.execute(i.state,i.delay))break}while(++s<r&&(i=e.shift()));if(this.active=!1,n){for(;++s<r&&(i=e.shift());)i.unsubscribe();throw
n}}}(class R5 extends
uu{constructor(i,e){super(i,e),this.scheduler=i,this.work=e}requestAsyncId(i,e,n=0){return
null!==n&&n>0?super.requestAsyncId(i,e,n):(i.actions.push(this),i.scheduled||(i.scheduled=requestAnimationFrame(()=>i.flush(null))))}recycleAsyncId(i,e,n=0){if(null!==n&&n>0||null===n&&this.delay>0)return
super.recycleAsyncId(i,e,n);0===i.actions.length&&(cancelAnimationFrame(e),i.scheduled=void
0)}});let A5=1;const P5=Promise.resolve(),Qu={};function dT(t){return t in
Qu&&(delete Qu[t],!0)}const pT={setImmediate(t){const i=A5++;return
Qu[i]=!0,P5.then(()=>dT(i)&&t()),i},clearImmediate(t){dT(t)}},V5=new class N5
extends Hi{flush(i){this.active=!0,this.scheduled=void 0;const{actions:e}=this;let
n,s=-1,r=e.length;i=i||e.shift();do{if(n=i.execute(i.state,i.delay))break}while(++s<
r&&(i=e.shift()));if(this.active=!1,n){for(;++s<r&&(i=e.shift());)i.unsubscribe();throw
n}}}(class F5 extends
uu{constructor(i,e){super(i,e),this.scheduler=i,this.work=e}requestAsyncId(i,e,n=0){return
null!==n&&n>0?super.requestAsyncId(i,e,n):(i.actions.push(this),i.scheduled||(i.scheduled=pT.setImmediate(i.flush.bind(i,null))))}recycleAsyncId(i,e,n=0){if(null!==n&&n>0||null===n&&this.delay>0)return
super.recycleAsyncId(i,e,n);0===i.actions.length&&(pT.clearImmediate(e),i.scheduled=void
0)}});class H5{constructor(i,e){this.compare=i,this.keySelector=e}call(i,e){return
e.subscribe(new q5(i,this.compare,this.keySelector))}}class q5 extends
yt{constructor(i,e,n){super(i),this.keySelector=n,this.hasKey=!1,"function"==typeof
e&&(this.compare=e)}compare(i,e){return i===e}_next(i){let
e;try{const{keySelector:s}=this;e=s?s(i):i}catch(s){return this.destination.error(s)}let
n=!1;if(this.hasKey)try{const{compare:s}=this;n=s(this.key,e)}catch(s){return
this.destination.error(s)}else this.hasKe
y=!0;n||(this.key=e,this.destination.next(i))}}const zf=new Hi(uu);class
U5{constructor(i){this.durationSelector=i}call(i,e){return e.subscribe(new
z5(i,this.durationSelector))}}class z5 extends
Zo{constructor(i,e){super(i),this.durationSelector=e,this.hasValue=!1}_next(i){if(this.value=i,this.hasValue=!0,!this.throttled){let
e;try{const{durationSelector:s}=this;e=s(i)}catch(s){return
this.destination.error(s)}const n=Xo(e,new
Yo(this));!n||n.closed?this.clearThrottle():this.add(this.throttled=n)}}clearThrottle(){const{value:i,hasValue:e,throttled:n}=this;n&&(this.remove(n),this.throttled=void
0,n.unsubscribe()),e&&(this.value=void
0,this.hasValue=!1,this.destination.next(i))}notifyNext(){this.clearThrottle()}notifyComplete(){this.clearThrottle()}}function
hT(t){return!Nr(t)&&t-parseFloat(t)+1>=0}function
$5(t){const{index:i,period:e,subscriber:n}=t;if(n.next(i),!n.closed){if(-1===e)return
n.complete();t.index=i+1,this.schedule(t,e)}}function jf(t,i=zf){return function
G5(t){return
function(e){return e.lift(new U5(t))}}(()=>function j5(t=0,i,e){let n=-1;return
hT(i)?n=Number(i)<1?1:Number(i):Vr(i)&&(e=i),Vr(e)||(e=zf),new Je(s=>{const
r=hT(t)?t:+t-e.now();return
e.schedule($5,r,{index:0,period:n,subscriber:s})})}(t,i))}function $f(t){return
i=>i.lift(new W5(t))}class W5{constructor(i){this.notifier=i}call(i,e){const n=new
K5(i),s=Xo(this.notifier,new Yo(n));return
s&&!n.seenValue?(n.add(s),e.subscribe(n)):n}}class K5 extends
Zo{constructor(i){super(i),this.seenValue=!1}notifyNext(){this.seenValue=!0,this.complete()}notifyComplete(){}}function
Ju(...t){const i=t[t.length-1];return Vr(i)?(t.pop(),e=>el(t,e,i)):e=>el(t,e)}class
J5{call(i,e){return e.subscribe(new Y5(i))}}class Y5 extends
yt{constructor(i){super(i),this.hasPrev=!1}_next(i){let
e;this.hasPrev?e=[this.prev,i]:this.hasPrev=!0,this.prev=i,e&&this.destination.next(e)}}let
Wf;try{Wf="undefined"!=typeof
Intl&&Intl.v8BreakIterator}catch(t){Wf=!1}let Yu,Dr,mT=(()=>{class
t{constructor(e){this._platformId=e
,this.isBrowser=this._platformId?function E4(t){return
t===ky}(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),this.BLINK=this.isBrowser&&!(!window.chrome&&!Wf)&&"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)(K(qc))},t.\u0275prov=X({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();function
bl(){if("object"!=typeof document||!document)return 0;if(null==Yu)
{const
t=document.createElement("div"),i=t.style;t.dir="rtl",i.width="1px",i.overflow="auto",i.visibility="hidden",i.pointerEvents="none",i.position="absolute";const
e=document.createElement("div"),n=e.style;n.width="2px",n.height="1px",t.appendChild(e),document.body.appendChild(t),Yu=0,0===t.scrollLeft&&(t.scrollLeft=1,Yu=0===t.scrollLeft?1:2),t.remove()}return
Yu}const tV=new be("cdk-dir-doc",{providedIn:"root",factory:function
nV(){return
O_(Xt)}}),iV=/^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)/i;let
gT=(()=>{class t{constructor(e){if(this.value="ltr",this.change=new
H,e){const s=e.documentElement?e.documentElement.dir:null;this.value=function sV(t){const
i=(null==t?void
0:t.toLowerCase())||"";return"auto"===i&&"undefined"!=typeof
navigator&&(null==navigator?void
0:navigator.language)?iV.test(navigator.language)?"rtl":"ltr":"rtl"===i?"rtl":"ltr"}((e.body?e.body.dir:null)||s||"ltr")}}ngOnDestroy(){this.change.c
omplete()}}return t.\u0275fac=function(e){return
new(e||t)(K(tV,8))},t.\u0275prov=X({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),_T=(()=>{class
t{}return t.\u0275fac=function(e){return
new(e||t)},t.\u0275mod=he({type:t}),t.\u0275inj=ue({}),t})();class aV extends class
rV{}{constructor(i){super(),this._data=i}connect(){return
is(this._data)?this._data:oe(this._data)}disconnect(){}}class
lV{constructor(){this.viewCacheSize=20,this._viewCache=[]}applyChanges(i,e,n,s,r){i.forEachOperation((o,u,h)=>{let
b,y;null==o.previousIndex?(b=this._insertView(()=>n(o,u,h),h,e,s(o)),y=b?1:0):null==h?(this._detachAndCacheView(u,e),y=3):(b=this._moveView(u,h,e,s(o)),y=2),r&&r({context:null==b?void
0:b.context,operation:y,record:o})})}detach(){for(const i of
this._viewCache)i.destroy();this._viewCache=[]}_insertView(i,e,n,s){const
r=this._insertViewFromCache(e,n);if(r)return void(r.context.$implicit=s);const
o=i();return n.createEmbeddedView(o.templateRef,o.context,o.index)}_detachAndCacheVie
w(i,e){const n=e.detach(i);this._maybeCacheView(n,e)}_moveView(i,e,n,s){const
r=n.get(i);return
n.move(r,e),r.context.$implicit=s,r}_maybeCacheView(i,e){if(this._viewCache.length<this.viewCacheSize)this._viewCache.push(i);else{const
n=e.indexOf(i);-1===n?i.destroy():e.remove(n)}}_insertViewFromCache(i,e){const
n=this._viewCache.pop();return n&&e.insert(n,i),n||null}}const bT=new
be("_ViewRepeater"),cV=["contentWrapper"],uV=["*"],vT=new
be("VIRTUAL_SCROLL_STRATEGY");class
dV{constructor(i,e,n){this._scrolledIndexChange=new
ct,this.scrolledIndexChange=this._scrolledIndexChange.pipe(function B5(t,i){return
e=>e.lift(new
H5(t,i))}()),this._viewport=null,this._itemSize=i,this._minBufferPx=e,this._maxBufferPx=n}attach(i){this._viewport=i,this._updateTotalContentSize(),this._updateRenderedRange()}detach(){this._scrolledIndexChange.complete(),this._viewport=null}updateItemAndBufferSize(i,e,n){this._itemSize=i,this._minBufferPx=e,this._maxBufferPx=n,this._updateTotalContentSize(),this._updat
eRenderedRange()}onContentScrolled(){this._updateRenderedRange()}onDataLengthChanged(){this._updateTotalContentSize(),this._updateRenderedRange()}onContentRendered(){}onRenderedOffsetChanged(){}scrollToIndex(i,e){this._viewport&&this._viewport.scrollToOffset(i*this._itemSize,e)}_updateTotalContentSize(){!this._viewport||this._viewport.setTotalContentSize(this._viewport.getDataLength()*this._itemSize)}_updateRenderedRange(){if(!this._viewport)return;const
i=this._viewport.getRenderedRange(),e={start:i.start,end:i.end},n=this._viewport.getViewportSize(),s=this._viewport.getDataLength();let
r=this._viewport.measureScrollOffset(),o=this._itemSize>0?r/this._itemSize:0;if(e.end>s){const
h=Math.ceil(n/this._itemSize),b=Math.max(0,Math.min(o,s-h));o!=b&&(o=b,r=b*this._itemSize,e.start=Math.floor(o)),e.end=Math.max(0,Math.min(s,e.start+h))}const
u=r-e.start*this._itemSize;if(u<this._minBufferPx&&0!=e.start){const
h=Math.ceil((this._maxBufferPx-u)/this._itemSize);e.start=Math.max(0,e.start-h)
,e.end=Math.min(s,Math.ceil(o+(n+this._minBufferPx)/this._itemSize))}else{const
h=e.end*this._itemSize-(r+n);if(h<this._minBufferPx&&e.end!=s){const
b=Math.ceil((this._maxBufferPx-h)/this._itemSize);b>0&&(e.end=Math.min(s,e.end+b),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
pV(t){return t._scrollStrategy}let Qf=(()=>{class
t{constructor(){this._itemSize=20,this._minBufferPx=100,this._maxBufferPx=200,this._scrollStrategy=new
dV(this.itemSize,this.minBufferPx,this.maxBufferPx)}get itemSize(){return
this._itemSize}set itemSize(e){this._itemSize=Ku(e)}get minBufferPx(){return
this._minBufferPx}set minBufferPx(e){this._minBufferPx=Ku(e)}get maxBufferPx(){return
this._maxBufferPx}set
maxBufferPx(e){this._maxBufferPx=Ku(e)}ngOnChanges(){this._scrollStrategy.updateItemAndBufferSize(this.itemSize,this.minBufferPx,t
his.maxBufferPx)}}return t.\u0275fac=function(e){return
new(e||t)},t.\u0275dir=le({type:t,selectors:[["cdk-virtual-scroll-viewport","itemSize",""]],inputs:{itemSize:"itemSize",minBufferPx:"minBufferPx",maxBufferPx:"maxBufferPx"},features:[Pe([{provide:vT,useFactory:pV,deps:[je(()=>t)]}]),fn]}),t})(),CT=(()=>{class
t{constructor(e,n,s){this._ngZone=e,this._platform=n,this._scrolled=new
ct,this._globalSubscription=null,this._scrolledCount=0,this.scrollContainers=new
Map,this._document=s}register(e){this.scrollContainers.has(e)||this.scrollContainers.set(e,e.elementScrolled().subscribe(()=>this._scrolled.next(e)))}deregister(e){const
n=this.scrollContainers.get(e);n&&(n.unsubscribe(),this.scrollContainers.delete(e))}scrolled(e=20){return
this._platform.isBrowser?new
Je(n=>{this._globalSubscription||this._addGlobalListener();const
s=e>0?this._scrolled.pipe(jf(e)).subscribe(n):this._scrolled.subscribe(n);return
this._scrolledCount++,()=>{s.unsubscribe(),this._scrolledCount--,this._scroll
edCount||this._removeGlobalListener()}}):oe()}ngOnDestroy(){this._removeGlobalListener(),this.scrollContainers.forEach((e,n)=>this.deregister(n)),this._scrolled.complete()}ancestorScrolled(e,n){const
s=this.getAncestorScrollContainers(e);return
this.scrolled(n).pipe(Us(r=>!r||s.indexOf(r)>-1))}getAncestorScrollContainers(e){const
n=[];return
this.scrollContainers.forEach((s,r)=>{this._scrollableContainsElement(r,e)&&n.push(r)}),n}_getWindow(){return
this._document.defaultView||window}_scrollableContainsElement(e,n){let s=function
M5(t){return t instanceof
De?t.nativeElement:t}(n),r=e.getElementRef().nativeElement;do{if(s==r)return!0}while(s=s.parentElement);return!1}_addGlobalListener(){this._globalSubscription=this._ngZone.runOutsideAngular(()=>Uf(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)(K(nt),K(mT),K(Xt,8))},t.\u0275prov=X({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),yT=(()=>{class
t{constructor(e,n,s,r){this.elementRef=e,this.scrollDispatcher=n,this.ngZone=s,this.dir=r,this._destroyed=new
ct,this._elementScrolled=new
Je(o=>this.ngZone.runOutsideAngular(()=>Uf(this.elementRef.nativeElement,"scroll").pipe($f(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
n=this.elementRef.nativeElement,s=this.dir&&"rtl"==this.dir.value;null==e.left&&(e.left=s?e.end:e.start),null==e.right&&(e.right=s?e.start:e.end),null!=e.bottom&&(e.top=n.scrollHeight-n.clientHeight-e.bottom),s&&0!=bl()?(null!=e.left&&(e.right=n.scrollWidth-n.clientWidth-e.left),2==bl()?e.left=e.right:1==bl()&&(e.left=e.right?-e.right:e.right)):null!=e.right&&(e.
left=n.scrollWidth-n.clientWidth-e.right),this._applyScrollToOptions(e)}_applyScrollToOptions(e){const
n=this.elementRef.nativeElement;!function X5(){if(null==Dr){if("object"!=typeof
document||!document||"function"!=typeof Element||!Element)return
Dr=!1,Dr;if("scrollBehavior"in document.documentElement.style)Dr=!0;else{const
t=Element.prototype.scrollTo;Dr=!!t&&!/\{\s*\[native
code\]\s*\}/.test(t.toString())}}return
Dr}()?(null!=e.top&&(n.scrollTop=e.top),null!=e.left&&(n.scrollLeft=e.left)):n.scrollTo(e)}measureScrollOffset(e){const
n="left",s="right",r=this.elementRef.nativeElement;if("top"==e)return
r.scrollTop;if("bottom"==e)return
r.scrollHeight-r.clientHeight-r.scrollTop;const
o=this.dir&&"rtl"==this.dir.value;return"start"==e?e=o?s:n:"end"==e&&(e=o?n:s),o&&2==bl()?e==n?r.scrollWidth-r.clientWidth-r.scrollLeft:r.scrollLeft:o&&1==bl()?e==n?r.scrollLeft+r.scrollWidth-r.clientWidth:-r.scrollLeft:e==n?r.scrollLeft:r.scrollWidth-r.clientWidth-r.scrollLeft}}return
t.\u0275fac=functi
on(e){return
new(e||t)(D(De),D(CT),D(nt),D(gT,8))},t.\u0275dir=le({type:t,selectors:[["","cdk-scrollable",""],["","cdkScrollable",""]]}),t})(),fV=(()=>{class
t{constructor(e,n,s){this._platform=e,this._change=new
ct,this._changeListener=r=>{this._change.next(r)},this._document=s,n.runOutsideAngular(()=>{if(e.isBrowser){const
r=this._getWindow();r.addEventListener("resize",this._changeListener),r.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:n,height
:s}=this.getViewportSize();return{top:e.top,left:e.left,bottom:e.top+s,right:e.left+n,height:s,width:n}}getViewportScrollPosition(){if(!this._platform.isBrowser)return{top:0,left:0};const
e=this._document,n=this._getWindow(),s=e.documentElement,r=s.getBoundingClientRect();return{top:-r.top||e.body.scrollTop||n.scrollY||s.scrollTop||0,left:-r.left||e.body.scrollLeft||n.scrollX||s.scrollLeft||0}}change(e=20){return
e>0?this._change.pipe(jf(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)(K(mT),K(nt),K(Xt,8))},t.\u0275prov=X({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();const
_V="undefined"!=typeof requestAnimationFrame?O5:V5;let Po=(()=>{class t
extends
yT{constructor(e,n,s,r,o,u,h){super(e,u,s,o),this.elementRef=e,this._changeDetectorRef=n,this._scrollSt
rategy=r,this._detachedSubject=new ct,this._renderedRangeSubject=new
ct,this._orientation="vertical",this._appendOnly=!1,this.scrolledIndexChange=new
Je(b=>this._scrollStrategy.scrolledIndexChange.subscribe(y=>Promise.resolve().then(()=>this.ngZone.run(()=>b.next(y))))),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=Et.EMPTY,this._viewportChanges=h.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
x5(t){return null!=t&&"false"!=`${t}`}(e)}ngOnInit()
{super.ngOnInit(),this.ngZone.runOutsideAngular(()=>Promise.resolve().then(()=>{this._measureViewportSize(),this._scrollStrategy.attach(this),this.elementScrolled().pipe(Ju(null),jf(0,_V)).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($f(this._detachedSubject)).subscribe(n=>{const
s=n.length;s!==this._dataLength&&(this._dataLength=s,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._c
alculateSpacerSize(),this._markChangeDetectionNeeded())}setRenderedRange(e){(function
gV(t,i){return
t.start==i.start&&t.end==i.end})(this._renderedRange,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,n="to-start"){const
r="horizontal"==this.orientation,o=r?"X":"Y";let
h=`translate${o}(${Number((r&&this.dir&&"rtl"==this.dir.value?-1:1)*e)}px)`;this._renderedContentOffset=e=this.appendOnly&&"to-start"===n?0:e,"to-end"===n&&(h+=`
translate${o}(-100%)`,this._renderedContentOffsetNeedsRewrite=!0),this._renderedContentTransform!=h&&(this._renderedContentTransform=h,this._markChangeDetectionNeeded(()=>{this._renderedContentOffsetNeedsRewrite?(this._renderedContentOffset-=this.measureRen
deredContentSize(),this._renderedContentOffsetNeedsRewrite=!1,this.setRenderedContentOffset(this._renderedContentOffset)):this._scrollStrategy.onRenderedOffsetChanged()}))}scrollToOffset(e,n="auto"){const
s={behavior:n};"horizontal"===this.orientation?s.start=e:s.top=e,this.scrollTo(s)}scrollToIndex(e,n="auto"){this._scrollStrategy.scrollToIndex(e,n)}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 n of
e)n()}_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)(D(De),D(rt),D(nt),D(vT,8),D(gT,8),D(CT),D(fV))},t.\u0275cmp=z({type:t,selectors:[["cdk-virtual-scroll-viewport"]],viewQuery:function(e,n){if(1&e&&W(cV,7),2&e){let
s;V(s=B())&&(n._contentWrapper=s.first)}},hostAttrs:[1,"cdk-virtual-scroll-viewport"],hostVars:4,hostBindings:function(e,n){2&e&&si("cdk-vi
rtual-scroll-orientation-horizontal","horizontal"===n.orientation)("cdk-virtual-scroll-orientation-vertical","horizontal"!==n.orientation)},inputs:{orientation:"orientation",appendOnly:"appendOnly"},outputs:{scrolledIndexChange:"scrolledIndexChange"},features:[Pe([{provide:yT,useExisting:t}]),ut],ngContentSelectors:uV,decls:4,vars:4,consts:[[1,"cdk-virtual-scroll-content-wrapper"],["contentWrapper",""],[1,"cdk-virtual-scroll-spacer"]],template:function(e,n){1&e&&(Sn(),l(0,"div",0,1),St(2),c(),k(3,"div",2)),2&e&&(a(3),_i("width",n._totalContentWidth)("height",n._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-wrappe
r{min-height:100%}.cdk-virtual-scroll-orientation-horizontal
.cdk-virtual-scroll-content-wrapper>dl:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-horizontal
.cdk-virtual-scroll-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-virtua
l-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-scroll-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
wT(t,i,e){if(!e.getBoundingClientRect)return 0;const
s=e.getBoundingClientRect();return"horizontal"===t?"start"===i?s.left:s.right:"start"===i?s.top:s.bottom}let
Jf=(()=>{class
t{constructor(e,n,s,r,o,u){this._viewContainerRef=e,this._template=n,this._differs=s,this._viewRepeater=r,this._viewport=o,this.viewChange=new
ct,this._dataSourceChanges=new
ct,this.dataStream=this._dataSourceChanges.pipe(Ju(null),function Q5(){return
t=>t.lift(new
J5)}(),qi(([h,b])=>this._changeDataSource(h,b)),Um(1)),this._differ=null,this._needsUpdate=!1,this._destroyed=new
ct,this.dataStream.subscribe(h=>{this._dat
a=h,this._onRenderedDataChange()}),this._viewport.renderedRangeStream.pipe($f(this._destroyed)).subscribe(h=>{this._renderedRange=h,this.viewChange.observers.length&&u.run(()=>this.viewChange.next(this._renderedRange)),this._onRenderedDataChange()}),this._viewport.attach(this)}get
cdkVirtualForOf(){return this._cdkVirtualForOf}set
cdkVirtualForOf(e){this._cdkVirtualForOf=e,function oV(t){return
t&&"function"==typeof
t.connect}(e)?this._dataSourceChanges.next(e):this._dataSourceChanges.next(new
aV(is(e)?e:Array.from(e||[])))}get cdkVirtualForTrackBy(){return
this._cdkVirtualForTrackBy}set
cdkVirtualForTrackBy(e){this._needsUpdate=!0,this._cdkVirtualForTrackBy=e?(n,s)=>e(n+(this._renderedRange?this._renderedRange.start:0),s):void
0}set cdkVirtualForTemplate(e){e&&(this._needsUpdate=!0,this._template=e)}get
cdkVirtualForTemplateCacheSize(){return this._viewRepeater.viewCacheSize}set
cdkVirtualForTemplateCacheSize(e){this._viewRepeater.viewCacheSize=Ku(e)}measureRangeSize(e,n){if(e.star
t>=e.end)return 0;const s=e.start-this._renderedRange.start,r=e.end-e.start;let
o,u;for(let h=0;h<r;h++){const
b=this._viewContainerRef.get(h+s);if(b&&b.rootNodes.length){o=u=b.rootNodes[0];break}}for(let
h=r-1;h>-1;h--){const
b=this._viewContainerRef.get(h+s);if(b&&b.rootNodes.length){u=b.rootNodes[b.rootNodes.length-1];break}}return
o&&u?wT(n,"end",u)-wT(n,"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.complete(),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,n)=>this.cdkVirtualForTrackBy?th
is.cdkVirtualForTrackBy(e,n):n)),this._needsUpdate=!0)}_changeDataSource(e,n){return
e&&e.disconnect(this),this._needsUpdate=!0,n?n.connect(this):oe()}_updateContext(){const
e=this._data.length;let n=this._viewContainerRef.length;for(;n--;){const
s=this._viewContainerRef.get(n);s.context.index=this._renderedRange.start+n,s.context.count=e,this._updateComputedContextProperties(s.context),s.detectChanges()}}_applyChanges(e){this._viewRepeater.applyChanges(e,this._viewContainerRef,(r,o,u)=>this._getEmbeddedViewArgs(r,u),r=>r.item),e.forEachIdentityChange(r=>{this._viewContainerRef.get(r.currentIndex).context.$implicit=r.item});const
n=this._data.length;let s=this._viewContainerRef.length;for(;s--;){const
r=this._viewContainerRef.get(s);r.context.index=this._renderedRange.start+s,r.context.count=n,this._updateComputedContextProperties(r.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,n)
{return{templateRef:this._template,context:{$implicit:e.item,cdkVirtualForOf:this._cdkVirtualForOf,index:-1,count:-1,first:!1,last:!1,odd:!1,even:!1},index:n}}}return
t.\u0275fac=function(e){return
new(e||t)(D(vi),D(bi),D($a),D(bT),D(Po,4),D(nt))},t.\u0275dir=le({type:t,selectors:[["","cdkVirtualFor","","cdkVirtualForOf",""]],inputs:{cdkVirtualForOf:"cdkVirtualForOf",cdkVirtualForTrackBy:"cdkVirtualForTrackBy",cdkVirtualForTemplate:"cdkVirtualForTemplate",cdkVirtualForTemplateCacheSize:"cdkVirtualForTemplateCacheSize"},features:[Pe([{provide:bT,useClass:lV}])]}),t})(),TT=(()=>{class
t{}return t.\u0275fac=function(e){return
new(e||t)},t.\u0275mod=he({type:t}),t.\u0275inj=ue({}),t})(),Fo=(()=>{class t{}return
t.\u0275fac=function(e){return
new(e||t)},t.\u0275mod=he({type:t}),t.\u0275inj=ue({imports:[[_T,TT],_T,TT]}),t})(),Kt=(()=>{class
t{constructor(e,n,s){this.el=e,this.zone=n,this.config=s,this.escape=!0,this._tooltipOptions={tooltipPosition:"right",tooltipEvent:"hover",appendTo:"b
ody",tooltipZIndex:"auto",escape:!0,positionTop:0,positionLeft:0}}get
disabled(){return this._disabled}set
disabled(e){this._disabled=e,this.deactivate()}ngAfterViewInit(){this.zone.runOutsideAngular(()=>{if("hover"===this.getOption("tooltipEvent"))this.mouseEnterListener=this.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);else
if("focus"===this.getOption("tooltipEvent")){this.focusListener=this.onFocus.bind(this),this.blurListener=this.onBlur.bind(this);let
e=this.getTarget(this.el.nativeElement);e.addEventListener("focus",this.focusListener),e.addEventListener("blur",this.blurListener)}})}ngOnChanges(e){e.tooltipPosition&&this.setOption({tooltipPosition:e.tooltipPosition.currentValue}),e.tool
tipEvent&&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.align()):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.createElement("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")?R.appendChild(this.container,this.el.nativeElement):R.appendChild(this.container,this.getOption("appendTo")),this.container.style.display="inline-block"}show(){!this.getOption("tooltipLabel")||this.getOption("disabled")||(this.create(),this.align(),R.fadeIn(this.container,250),"auto"===this.getOption("tooltipZIndex")?dt.set("tooltip",this.container,this.config.zIndex.tool
tip):this.container.style.zIndex=this.getOption("tooltipZIndex"),this.bindDocumentResizeListener(),this.bindScrollListener())}hide(){"auto"===this.getOption("tooltipZIndex")&&dt.clear(this.container),this.remove()}updateText(){this.getOption("escape")?(this.tooltipText.innerHTML="",this.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.isOutOfBound
s()&&(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+R.getWindowScrollLeft(),top:e.top+R.getWindowScrollTop()}}return{left:0,top:0}}alignRight(){this.preAlign("right");let
e=this.getHostOffset(),n=e.left+R.getOuterWidth(this.el.nativeElement),s=e.top+(R.getOuterHeight(this.el.nativeElement)-R.getOuterHeight(this.container))/2;this.container.style.left=n+this.getOption("positionLeft")+"px",this.container.style.top=s+this.getOption("positionTop")+"px"}alignLeft(){this.preAlign("left");let
e=this.getHostOffset(),n=e.left-R.getOuterWidth(this.container),s=e.top+(R.getOuterHeight(this.el.nativeElement)-R.getOuterHeight(this.container))/2;this.container.style.left=n+this.getOption("positionLeft")+"px",this.container.style.top=s+this.getOption("positionTop")+"px"}alignTop(){
this.preAlign("top");let
e=this.getHostOffset(),n=e.left+(R.getOuterWidth(this.el.nativeElement)-R.getOuterWidth(this.container))/2,s=e.top-R.getOuterHeight(this.container);this.container.style.left=n+this.getOption("positionLeft")+"px",this.container.style.top=s+this.getOption("positionTop")+"px"}alignBottom(){this.preAlign("bottom");let
e=this.getHostOffset(),n=e.left+(R.getOuterWidth(this.el.nativeElement)-R.getOuterWidth(this.container))/2,s=e.top+R.getOuterHeight(this.el.nativeElement);this.container.style.left=n+this.getOption("positionLeft")+"px",this.container.style.top=s+this.getOption("positionTop")+"px"}setOption(e){this._tooltipOptions=Object.assign(Object.assign({},this._tooltipOptions),e)}getOption(e){return
this._tooltipOptions[e]}getTarget(e){return
R.hasClass(e,"p-inputwrapper")?R.findSingle(e,"input"):e}preAlign(e){this.container.style.left="-999px",this.container.style.top="-999px";let
n="p-tooltip p-component p-tooltip-"+e;this.container.className=this.getOption(
"tooltipStyleClass")?n+"
"+this.getOption("tooltipStyleClass"):n}isOutOfBounds(){let
e=this.container.getBoundingClientRect(),n=e.top,s=e.left,r=R.getOuterWidth(this.container),o=R.getOuterHeight(this.container),u=R.getViewport();return
s+r>u.width||s<0||n<0||n+o>u.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
Qs(this.el.nativeElement,()=>{this.container&&this.hide()})),this.scrollHandler.bindScrollListener()}unbindScrollListener(){this.scrollHandler&&this.scrollHandler.unbindScrollListener()}unbindEvents(){if("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);else
if("focus"===this.getOption("tooltipEvent")){let
e=this.getTarget(this.el.nativeElement);e.removeEventListener("focus",this.focusListener),e.removeEventListener("blur",this.blurListener)}this.unbindDocumentResizeListener()}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):R.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.clea
rShowTimeout(),this.clearHideTimeout()}ngOnDestroy(){this.unbindEvents(),this.container&&dt.clear(this.container),this.remove(),this.scrollHandler&&(this.scrollHandler.destroy(),this.scrollHandler=null)}}return
t.\u0275fac=function(e){return
new(e||t)(D(De),D(nt),D(zn))},t.\u0275dir=le({type:t,selectors:[["","pTooltip",""]],hostAttrs:[1,"p-element"],inputs:{tooltipPosition:"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:[fn]}),t})(),jn=(()=>{class
t{}return t.\u0275fac=function(e){return
new(e||t)},t.\u0275mod=he({type:t}),t.\u0275inj=ue({imports:[[Fe]]}),t})();function
bV(t,i){if(1&t&&(l(0,"span"),g(1),c()),2&t){const
e=d();a(1),S(e.label|
|"empty")}}function vV(t,i){1&t&&Y(0)}const
ST=function(t){return{height:t}},CV=function(t,i){return{"p-dropdown-item":!0,"p-highlight":t,"p-disabled":i}},Yf=function(t){return{$implicit:t}},yV=["container"],wV=["filter"],TV=["in"],SV=["editableInput"];function
xV(t,i){if(1&t&&(de(0),g(1),pe()),2&t){const
e=d(2);a(1),S(e.label||"empty")}}function DV(t,i){1&t&&Y(0)}const
MV=function(t){return{"p-dropdown-label
p-inputtext":!0,"p-dropdown-label-empty":t}};function
kV(t,i){if(1&t&&(l(0,"span",12),_(1,xV,2,1,"ng-container",13),_(2,DV,1,0,"ng-container",14),c()),2&t){const
e=d();p("ngClass",U(9,MV,null==e.label||0===e.label.length))("pTooltip",e.tooltip)("tooltipPosition",e.tooltipPosition)("positionStyle",e.tooltipPositionStyle)("tooltipStyleClass",e.tooltipStyleClass),ie("id",e.labelId),a(1),p("ngIf",!e.selectedItemTemplate),a(1),p("ngTemplateOutlet",e.selectedItemTemplate)("ngTemplateOutletContext",U(11,Yf,e.selectedOption))}}const
IV=function(t){return{"p-dropdown-label p-inputtext p
-placeholder":!0,"p-dropdown-label-empty":t}};function
EV(t,i){if(1&t&&(l(0,"span",15),g(1),c()),2&t){const
e=d();p("ngClass",U(2,IV,null==e.placeholder||0===e.placeholder.length)),a(1),S(e.placeholder||"empty")}}function
RV(t,i){if(1&t){const
e=I();l(0,"input",16,17),C("click",function(){return
v(e),d().onEditableInputClick()})("input",function(s){return
v(e),d().onEditableInputChange(s)})("focus",function(s){return
v(e),d().onEditableInputFocus(s)})("blur",function(s){return
v(e),d().onInputBlur(s)}),c()}if(2&t){const
e=d();p("disabled",e.disabled),ie("maxlength",e.maxlength)("placeholder",e.placeholder)("aria-expanded",e.overlayVisible)}}function
LV(t,i){if(1&t){const
e=I();l(0,"i",18),C("click",function(s){return
v(e),d().clear(s)}),c()}}function OV(t,i){1&t&&Y(0)}function
AV(t,i){if(1&t){const
e=I();l(0,"div",26)(1,"div",27),C("click",function(s){return
s.stopPropagation()}),l(2,"input",28,29),C("keydown.enter",function(s){return
s.preventDefault()})("keydown",function(s){retur
n v(e),d(2).onKeydown(s,!1)})("input",function(s){return
v(e),d(2).onFilterInputChange(s)}),c(),k(4,"span",30),c()()}if(2&t){const
e=d(2);a(2),p("value",e.filterValue||""),ie("placeholder",e.filterPlaceholder)("aria-label",e.ariaFilterLabel)("aria-activedescendant",e.overlayVisible?"p-highlighted-option":e.labelId)}}function
PV(t,i){if(1&t&&(l(0,"span"),g(1),c()),2&t){const
e=d().$implicit,n=d(3);a(1),S(n.getOptionGroupLabel(e)||"empty")}}function
FV(t,i){1&t&&Y(0)}function NV(t,i){1&t&&Y(0)}const
xT=function(t,i){return{$implicit:t,selectedOption:i}};function
VV(t,i){if(1&t&&(l(0,"li",32),_(1,PV,2,1,"span",13),_(2,FV,1,0,"ng-container",14),c(),_(3,NV,1,0,"ng-container",14)),2&t){const
e=i.$implicit;d(2);const
n=F(8),s=d();a(1),p("ngIf",!s.groupTemplate),a(1),p("ngTemplateOutlet",s.groupTemplate)("ngTemplateOutletContext",U(5,Yf,e)),a(1),p("ngTemplateOutlet",n)("ngTemplateOutletContext",Ge(7,xT,s.getOptionGroupChildren(e),s.selectedOption))}}function
BV(t,i){if(1&t&&(de(0),_(1,VV,4,
10,"ng-template",31),pe()),2&t){const
e=d(2);a(1),p("ngForOf",e.optionsToDisplay)}}function
HV(t,i){1&t&&Y(0)}function
qV(t,i){if(1&t&&(de(0),_(1,HV,1,0,"ng-container",14),pe()),2&t){d();const
e=F(8),n=d();a(1),p("ngTemplateOutlet",e)("ngTemplateOutletContext",Ge(2,xT,n.optionsToDisplay,n.selectedOption))}}function
GV(t,i){if(1&t){const
e=I();l(0,"p-dropdownItem",35),C("onClick",function(s){return
v(e),d(4).onItemClick(s)}),c()}if(2&t){const
e=i.$implicit,n=d(2).selectedOption,s=d(2);p("option",e)("selected",n==e)("label",s.getOptionLabel(e))("disabled",s.isOptionDisabled(e))("template",s.itemTemplate)}}function
UV(t,i){if(1&t&&(de(0),_(1,GV,1,5,"ng-template",31),pe()),2&t){const
e=d().$implicit;a(1),p("ngForOf",e)}}function zV(t,i){if(1&t){const
e=I();de(0),l(1,"p-dropdownItem",35),C("onClick",function(s){return
v(e),d(5).onItemClick(s)}),c(),pe()}if(2&t){const
e=i.$implicit,n=d(3).selectedOption,s=d(2);a(1),p("option",e)("selected",n==e)("label",s.getOptionLabel(e))("disabled",s.i
sOptionDisabled(e))("template",s.itemTemplate)}}function
jV(t,i){if(1&t){const
e=I();l(0,"cdk-virtual-scroll-viewport",37,38),C("scrolledIndexChange",function(){return
v(e),d(4).scrollToSelectedVirtualScrollElement()}),_(2,zV,2,5,"ng-container",39),c()}if(2&t){const
e=d(2).$implicit,n=d(2);p("ngStyle",U(3,ST,n.scrollHeight))("itemSize",n.itemSize),a(2),p("cdkVirtualForOf",e)}}function
$V(t,i){if(1&t&&_(0,jV,3,5,"cdk-virtual-scroll-viewport",36),2&t){const
e=d(3);p("ngIf",e.virtualScroll&&e.optionsToDisplay&&e.optionsToDisplay.length)}}function
WV(t,i){if(1&t&&(_(0,UV,2,1,"ng-container",33),_(1,$V,1,1,"ng-template",null,34,we)),2&t){const
e=F(2);p("ngIf",!d(2).virtualScroll)("ngIfElse",e)}}function
KV(t,i){if(1&t&&(de(0),g(1),pe()),2&t){const e=d(3);a(1),T("
",e.emptyFilterMessageLabel," ")}}function
QV(t,i){1&t&&Y(0,null,41)}function
JV(t,i){if(1&t&&(l(0,"li",40),_(1,KV,2,1,"ng-container",33),_(2,QV,2,0,"ng-container",20),c()),2&t){const
e=d(2);a(1),p("ngIf",!e.emptyFilterTemplate&&
!e.emptyTemplate)("ngIfElse",e.emptyFilter),a(1),p("ngTemplateOutlet",e.emptyFilterTemplate||e.emptyTemplate)}}function
YV(t,i){if(1&t&&(de(0),g(1),pe()),2&t){const e=d(3);a(1),T("
",e.emptyMessageLabel," ")}}function
ZV(t,i){1&t&&Y(0,null,42)}function
XV(t,i){if(1&t&&(l(0,"li",40),_(1,YV,2,1,"ng-container",33),_(2,ZV,2,0,"ng-container",20),c()),2&t){const
e=d(2);a(1),p("ngIf",!e.emptyTemplate)("ngIfElse",e.empty),a(1),p("ngTemplateOutlet",e.emptyTemplate)}}function
e6(t,i){1&t&&Y(0)}const
t6=function(t,i){return{showTransitionParams:t,hideTransitionParams:i}},n6=function(t){return{value:"visible",params:t}},i6=function(t){return{"p-dropdown-virtualscroll":t}};function
s6(t,i){if(1&t){const
e=I();l(0,"div",19),C("click",function(s){return
v(e),d().onOverlayClick(s)})("(a)overlayAnimation.start",function(s){return
v(e),d().onOverlayAnimationStart(s)})("(a)overlayAnimation.start",function(s){return
v(e),d().onOverlayAnimationEnd(s)}),_(1,OV,1,0,"ng-container",20),_(2,AV,5,4,"div",21),l(3,
"div",22)(4,"ul",23),_(5,BV,2,1,"ng-container",13),_(6,qV,2,5,"ng-container",13),_(7,WV,3,2,"ng-template",null,24,we),_(9,JV,3,3,"li",25),_(10,XV,3,3,"li",25),c()(),_(11,e6,1,0,"ng-container",20),c()}if(2&t){const
e=d();me(e.panelStyleClass),p("ngClass","p-dropdown-panel
p-component")("@overlayAnimation",U(19,n6,Ge(16,t6,e.showTransitionOptions,e.hideTransitionOptions)))("ngStyle",e.panelStyle),a(1),p("ngTemplateOutlet",e.headerTemplate),a(1),p("ngIf",e.filter),a(1),_i("max-height",e.virtualScroll?"auto":e.scrollHeight||"auto"),a(1),p("ngClass",U(21,i6,e.virtualScroll)),ie("id",e.listId),a(1),p("ngIf",e.group),a(1),p("ngIf",!e.group),a(3),p("ngIf",e.filterValue&&e.isEmpty()),a(1),p("ngIf",!e.filterValue&&e.isEmpty()),a(1),p("ngTemplateOutlet",e.footerTemplate)}}const
r6=function(t,i,e,n){return{"p-dropdown
p-component":!0,"p-disabled":t,"p-dropdown-open":i,"p-focus":e,"p-dropdown-clearable":n}},o6={provide:dn,useExisting:je(()=>Ot),multi:!0};let
a6=(()=>{class t{constructor(){this.o
nClick=new
H}onOptionClick(e){this.onClick.emit({originalEvent:e,option:this.option})}}return
t.\u0275fac=function(e){return
new(e||t)},t.\u0275cmp=z({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,n){1&e&&(l(0,"li",0),C("click",function(r){return
n.onOptionClick(r)}),_(1,bV,2,1,"span",1),_(2,vV,1,0,"ng-container",2),c()),2&e&&(p("ngStyle",U(8,ST,n.itemSize+"px"))("id",n.selected?"p-highlighted-option":"")("ngClass",Ge(10,CV,n.selected,n.disabled)),ie("aria-label",n.label)("aria-selected",n.selected),a(1),p("ngIf",!n.template),a(1),p("ngTemplateOutlet",n.template)("ngTemplateOutletContext",U(13,Yf,n.option)))},directives:[bt,lt,Le,Q,Rt]
,encapsulation:2}),t})(),Ot=(()=>{class
t{constructor(e,n,s,r,o,u,h){this.el=e,this.renderer=n,this.cd=s,this.zone=r,this.filterService=o,this.config=u,this.overlayService=h,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
H,this.onFilter=new H,this.onFocus=new H,this.onBlur=new H,this.onClick=new
H,this.onShow=new H,this.onHide=new H,this.onClear=new
H,this.onModelChange=()=>{},this.onModelTouched=()=>{},this.viewPortOffsetTop=0,this.id=pl()}get
disabled(){return this._disabled}set
disabled(e){e&&(this.focused=!1,this.overlayVisible&&this.hide()),t
his._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.optionsToDisplay=this._options,this.updateSelectedOption(this.value),this.selectedOption=this.findOption(this.value,this.optionsToDisplay),this.selectedOption||(this.value=null,this.onModelChange(this.value)),this.optionsChanged=!0,this._filterValue&&this._filterValue.length&&this.activateFilt
er()}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(Ft.EMPTY_MESSAGE)}get
emptyFilterMessageLabel(){return
this.emptyFilterMessage||this.config.getTranslation(Ft.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?Z.resolveFieldData(e,this.optionLabel):null!=e.label?e.label:e}getOptionValue(e){return
this.optionValue?Z.resolveFieldData(e,this.optionValue):this.optionLabel||void
0===e.value?e:e.value}isOptionDisabled
(e){return this.optionDisabled?Z.resolveFieldData(e,this.optionDisabled):void
0!==e.disabled&&e.disabled}getOptionGroupLabel(e){return
this.optionGroupLabel?Z.resolveFieldData(e,this.optionGroupLabel):null!=e.label?e.label:e}getOptionGroupChildren(e){return
this.optionGroupChildren?Z.resolveFieldData(e,this.optionGroupChildren):e.items}onItemClick(e){const
n=e.option;this.isOptionDisabled(n)||(this.selectItem(e.originalEvent,n),this.accessibleViewChild.nativeElement.focus()),setTimeout(()=>{this.hide()},150)}selectItem(e,n){this.selectedOption!=n&&(this.selectedOption=n,this.value=this.getOptionValue(n),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))}ngAfterViewChecked(){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
n=this.viewPort.getRenderedRange();this.updateVirtualScrollSelectedIndex(!1),(n.start>this.virtualScrollSelectedIndex||n.end<this.virtualScrollSelectedIndex)&&this.viewPort.scrollToIndex(this.virtualScrollSelectedIndex)}R.findSingle(this.overlay,"li.p-highlight")&&R.scrollInView(this.itemsWrapper,R.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}updateSelectedOption(e){this.selectedOption=this.findOption(e,this.optionsToDisplay),this.autoDisplayFirst&&!this.placeholder&&!this.selectedOption&&
this.optionsToDisplay&&this.optionsToDisplay.length&&!this.editable&&(this.selectedOption=this.group?this.optionsToDisplay[0].items[0]: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
R.hasClass(e.target,"p-dropdown-clear-icon")||e.target.isSameNode(this.accessibleViewChild.nativeElement)||this.editableInputViewChild&&e.target.isSameNode(this.editableInputViewChild.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.cd.markForCheck()}onOverlayAnimationStart(e){switch(e.toState){case"visible":if(this.overlay=e.element,this.itemsWrapper=R.findSingle(this.overlay,this.virtualScroll?".cdk-virtual-scroll-viewport":".p-dropdown-items-wrapper"),this.appendOverlay(),this.autoZIndex&&dt.set("overlay",this.overlay,this.baseZIndex+this.config.zIndex.overlay),this.alignOverlay(),this.bindDocumentClickListener(),this.bindDocumentResizeListener(),this.bindScrollListener(),this.options
&&this.options.length&&!this.virtualScroll){let
s=R.findSingle(this.itemsWrapper,".p-dropdown-item.p-highlight");s&&s.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&&dt.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.viewPortOffsetTop=0),this.virtualScrollSelectedIndex=this.findOptionIndex(this.getOptionValue(this.selectedOption),this.optionsToDisplay))}appen
dOverlay(){this.appendTo&&("body"===this.appendTo?document.body.appendChild(this.overlay):R.appendChild(this.overlay,this.appendTo),this.overlay.style.minWidth||(this.overlay.style.minWidth=R.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?R.absolutePosition(this.overlay,this.containerViewChild.nativeElement):R.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.preventModelTouched=!1}findPrevEnabledOption(e){let
n;if(this.optionsToDisplay&&this.optionsToDisplay.length){for(let
s=e-1;0<=s;s--){let r=this.op
tionsToDisplay[s];if(!this.isOptionDisabled(r)){n=r;break}}if(!n)for(let
s=this.optionsToDisplay.length-1;s>=e;s--){let
r=this.optionsToDisplay[s];if(!this.isOptionDisabled(r)){n=r;break}}}return
n}findNextEnabledOption(e){let
n;if(this.optionsToDisplay&&this.optionsToDisplay.length){for(let
s=e+1;s<this.optionsToDisplay.length;s++){let
r=this.optionsToDisplay[s];if(!this.isOptionDisabled(r)){n=r;break}}if(!n)for(let
s=0;s<e;s++){let
r=this.optionsToDisplay[s];if(!this.isOptionDisabled(r)){n=r;break}}}return
n}onKeydown(e,n){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
s=this.selectedOption?this.findOptionGroupIndex(this.getOptionValue(this.selectedOption),this.optionsToDisplay):-1;if(-1!==s){let
r=s.itemIndex+1;r<this.getOptionGroupChildren(this.optionsToDisplay[s.groupIndex]).length?(this.selectItem(e,this.getOptionGroupChildren(this.optionsToDisplay[s.gro
upIndex])[r]),this.selectedOptionUpdated=!0):this.optionsToDisplay[s.groupIndex+1]&&(this.selectItem(e,this.getOptionGroupChildren(this.optionsToDisplay[s.groupIndex+1])[0]),this.selectedOptionUpdated=!0)}else
this.optionsToDisplay&&this.optionsToDisplay.length>0&&this.selectItem(e,this.getOptionGroupChildren(this.optionsToDisplay[0])[0])}else{let
s=this.selectedOption?this.findOptionIndex(this.getOptionValue(this.selectedOption),this.optionsToDisplay):-1,r=this.findNextEnabledOption(s);r&&(this.selectItem(e,r),this.selectedOptionUpdated=!0)}e.preventDefault();break;case
38:if(this.group){let
s=this.selectedOption?this.findOptionGroupIndex(this.getOptionValue(this.selectedOption),this.optionsToDisplay):-1;if(-1!==s){let
r=s.itemIndex-1;if(r>=0)this.selectItem(e,this.getOptionGroupChildren(this.optionsToDisplay[s.groupIndex])[r]),this.selectedOptionUpdated=!0;else
if(r<0){let
o=this.optionsToDisplay[s.groupIndex-1];o&&(this.selectItem(e,this.getOptionGroupChildren(o)[this.getOptionGr
oupChildren(o).length-1]),this.selectedOptionUpdated=!0)}}}else{let
s=this.selectedOption?this.findOptionIndex(this.getOptionValue(this.selectedOption),this.optionsToDisplay):-1,r=this.findPrevEnabledOption(s);r&&(this.selectItem(e,r),this.selectedOptionUpdated=!0)}e.preventDefault();break;case
32:n&&(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:n&&!e.metaKey&&this.search(e)}}search(e){this.searchTimeout&&clearTimeout(this.searchTimeout);const
n=e.key;let
s;if(this.previousSearchChar=this.currentSearchChar,this.currentSearchChar=n,this.searchValue=this.previousSearchChar===this.currentSearchChar?this.currentSearchChar:this.searchValue?this.searchValue+n:n,this.group){let
r=this.selectedOption?this.findOptionGroupIndex(this.getOptionValue(this.selectedO
ption),this.optionsToDisplay):{groupIndex:0,itemIndex:0};s=this.searchOptionWithinGroup(r)}else{let
r=this.selectedOption?this.findOptionIndex(this.getOptionValue(this.selectedOption),this.optionsToDisplay):-1;s=this.searchOption(++r)}s&&!this.isOptionDisabled(s)&&(this.selectItem(e,s),this.selectedOptionUpdated=!0),this.searchTimeout=setTimeout(()=>{this.searchValue=null},250)}searchOption(e){let
n;return
this.searchValue&&(n=this.searchOptionInRange(e,this.optionsToDisplay.length),n||(n=this.searchOptionInRange(0,e))),n}searchOptionInRange(e,n){for(let
s=e;s<n;s++){let
r=this.optionsToDisplay[s];if(this.getOptionLabel(r).toLocaleLowerCase(this.filterLocale).startsWith(this.searchValue.toLocaleLowerCase(this.filterLocale))&&!this.isOptionDisabled(r))return
r}return null}searchOptionWithinGroup(e){if(this.searchValue){for(let
s=e.groupIndex;s<this.optionsToDisplay.length;s++)for(let
r=e.groupIndex===s?e.itemIndex+1:0;r<this.getOptionGroupChildren(this.optionsToDisplay[s]).length;r++
){let
o=this.getOptionGroupChildren(this.optionsToDisplay[s])[r];if(this.getOptionLabel(o).toLocaleLowerCase(this.filterLocale).startsWith(this.searchValue.toLocaleLowerCase(this.filterLocale))&&!this.isOptionDisabled(o))return
o}for(let s=0;s<=e.groupIndex;s++)for(let
r=0;r<(e.groupIndex===s?e.itemIndex:this.getOptionGroupChildren(this.optionsToDisplay[s]).length);r++){let
o=this.getOptionGroupChildren(this.optionsToDisplay[s])[r];if(this.getOptionLabel(o).toLocaleLowerCase(this.filterLocale).startsWith(this.searchValue.toLocaleLowerCase(this.filterLocale))&&!this.isOptionDisabled(o))return
o}}return null}findOptionIndex(e,n){let s=-1;if(n)for(let
r=0;r<n.length;r++)if(null==e&&null==this.getOptionValue(n[r])||Z.equals(e,this.getOptionValue(n[r]),this.dataKey)){s=r;break}return
s}findOptionGroupIndex(e,n){let s,r;if(n)for(let
o=0;o<n.length&&(s=o,r=this.findOptionIndex(e,this.getOptionGroupChildren(n[o])),-1===r);o++);return-1!==r?{groupIndex:s,itemIndex:r}:-1}findOption(e,n,s){if(
this.group&&!s){let r;if(n&&n.length)for(let o of
n)if(r=this.findOption(e,this.getOptionGroupChildren(o),!0),r)break;return r}{let
r=this.findOptionIndex(e,n);return-1!=r?n[r]:null}}onFilterInputChange(e){let
n=e.target.value;n&&n.length?(this._filterValue=n,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
n=[];for(let s of this.options){let
r=this.filterService.filter(this.getOptionGroupChildren(s),e,this.filterValue,this.filterMatchMode,this.filterLocale);r&&r.length&&n.push(Object.assign(Object.assign({},s),{[this.optionGroupChildren]:r}))}this.optionsToDisplay=n}else
this.optionsToDisplay=this.filterService.filter(this.options,e,this.filterValue,this.filterMatchMode,this.filterLocale);this.optionsChanged=!0}}applyFocus(){this.ed
itable?R.findSingle(this.el.nativeElement,".p-dropdown-label.p-inputtext").focus():R.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",n=>{!this.preventDocumentDefault&&this.isOutsideClicked(n)&&(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.documentResizeListener),this.documentResizeListener=null)}onWindowResize(){this.overlayVisible&&!R.isTouchDevice()&&this.hide()}bindScrollList
ener(){this.scrollHandler||(this.scrollHandler=new
Qs(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&&dt.clear(this.overlay),this.restoreOverlayAppend(),this.onOverlayHide()}}return
t.\u0275fac=function(e){return
new(e||t)(D(De),D(gn),D(rt),D(nt),D(hl),D(zn),D(Ks))},t.\u0275cmp=z({type:t,selectors:[["p-dropdown"]],contentQueries:function(e,n,s){if(1&e&&st(s,ne,4
),2&e){let
r;V(r=B())&&(n.templates=r)}},viewQuery:function(e,n){if(1&e&&(W(yV,5),W(wV,5),W(TV,5),W(Po,5),W(SV,5)),2&e){let
s;V(s=B())&&(n.containerViewChild=s.first),V(s=B())&&(n.filterViewChild=s.first),V(s=B())&&(n.accessibleViewChild=s.first),V(s=B())&&(n.viewPort=s.first),V(s=B())&&(n.editableInputViewChild=s.first)}},hostAttrs:[1,"p-element","p-inputwrapper"],hostVars:4,hostBindings:function(e,n){2&e&&si("p-inputwrapper-filled",n.filled)("p-inputwrapper-focus",n.focused||n.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:"inputId",selectId:"selectId",dataKey:"dataKey",filterBy:"filterBy",autofocus:"autofocus",resetFilterOnHide:"resetFilterOnHide",dropdown
Icon:"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",ariaLabel:"ariaLabel",ariaLabelledBy:"ariaLabelledBy",filterMatchMode:"filterMatchMode",maxlength:"maxlength",tooltip:"tooltip",tooltipPosition:"tooltipPosition",tooltipPositionStyle:"tooltipPositionStyle",tooltipStyleClass:"tooltipStyleClass",autofocusFilter:"autofocusFilter",disabled:"disabled",options:"options",filterValue:"filterValue"},outputs:{onChange:"onChange",onFilter:"onFilter",onFocus:"onFocus",onBlur:"onBlur",onClick:"onClick",onShow:
"onShow",onHide:"onHide",onClear:"onClear"},features:[Pe([o6])],decls:12,vars:25,consts:[[3,"ngClass","ngStyle","click"],["container",""],[1,"p-hidden-accessible"],["type","text","readonly","","aria-haspopup","listbox","aria-haspopup","listbox","role","combobox",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-label","dropdown
trigger","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"],["typ
e","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","scrolledIndexChange",4,"ngIf"],[3,"ngStyle","itemSize","scrolledIndexChange"],["viewport","
"],[4,"cdkVirtualFor","cdkVirtualForOf"],[1,"p-dropdown-empty-message"],["emptyFilter",""],["empty",""]],template:function(e,n){1&e&&(l(0,"div",0,1),C("click",function(r){return
n.onMouseclick(r)}),l(2,"div",2)(3,"input",3,4),C("focus",function(r){return
n.onInputFocus(r)})("blur",function(r){return
n.onInputBlur(r)})("keydown",function(r){return
n.onKeydown(r,!0)}),c()(),_(5,kV,3,13,"span",5),_(6,EV,2,4,"span",6),_(7,RV,2,4,"input",7),_(8,LV,1,0,"i",8),l(9,"div",9),k(10,"span",10),c(),_(11,s6,12,23,"div",11),c()),2&e&&(me(n.styleClass),p("ngClass",qn(20,r6,n.disabled,n.overlayVisible,n.focused,n.showClear&&!n.disabled))("ngStyle",n.style),a(3),p("disabled",n.disabled),ie("id",n.inputId)("placeholder",n.placeholder)("aria-label",n.ariaLabel)("aria-expanded",!1)("aria-labelledby",n.ariaLabelledBy)("tabindex",n.tabindex)("autofocus",n.autofocus)("aria-activedescendant",n.overlayVisible?n.labelId:null),a(2),p("ngIf",!n.editable&&null!=n.label),a(1),p("ngIf",!n.editable&&null==n.label),
a(1),p("ngIf",n.editable),a(1),p("ngIf",null!=n.value&&n.showClear&&!n.disabled),a(1),ie("aria-expanded",n.overlayVisible),a(1),p("ngClass",n.dropdownIcon),a(1),p("ngIf",n.overlayVisible))},directives:[a6,Po,Le,lt,Q,Kt,Rt,at,Qf,Jf],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:[wi("overlayAnimation",[Lt(":enter",[it({opacity:0,transform:"scaleY(0.8)"}),kt("{{showTransitionParams}}")]),Lt(":leave",[kt("{{hideTransitionParams}}",it({opacity:0}))])])]},changeDetection:0}),t})(),Zu=(()=>{class
t{}return t.\u0275fac=function(e){return
new(e||t)},t.\u0275mod=he({type:t}),t.\u0275inj=ue({imports:[[Fe,Nt,Fo,jn,pn],Nt,Fo]}),t})(),DT=(()=>{class
t{constructor(e,n,s){this.el=e,this.ngModel=n,this.cd=s}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.\u0275f
ac=function(e){return
new(e||t)(D(De),D(_e,8),D(rt))},t.\u0275dir=le({type:t,selectors:[["","pInputText",""]],hostAttrs:[1,"p-inputtext","p-component","p-element"],hostVars:2,hostBindings:function(e,n){1&e&&C("input",function(r){return
n.onInput(r)}),2&e&&si("p-filled",n.filled)}}),t})(),MT=(()=>{class
t{}return t.\u0275fac=function(e){return
new(e||t)},t.\u0275mod=he({type:t}),t.\u0275inj=ue({imports:[[Fe]]}),t})();const
l6=["input"];function c6(t,i){if(1&t){const
e=I();l(0,"i",6),C("click",function(){return
v(e),d().clear()}),c()}}const kT=function(){return{"p-inputnumber-button
p-inputnumber-button-up":!0}},IT=function(){return{"p-inputnumber-button
p-inputnumber-button-down":!0}};function u6(t,i){if(1&t){const
e=I();l(0,"span",7)(1,"button",8),C("mousedown",function(s){return
v(e),d().onUpButtonMouseDown(s)})("mouseup",function(){return
v(e),d().onUpButtonMouseUp()})("mouseleave",function(){return
v(e),d().onUpButtonMouseLeave()})("keydown",function(s){return
v(e),d().onUpButton
KeyDown(s)})("keyup",function(){return
v(e),d().onUpButtonKeyUp()}),c(),l(2,"button",8),C("mousedown",function(s){return
v(e),d().onDownButtonMouseDown(s)})("mouseup",function(){return
v(e),d().onDownButtonMouseUp()})("mouseleave",function(){return
v(e),d().onDownButtonMouseLeave()})("keydown",function(s){return
v(e),d().onDownButtonKeyDown(s)})("keyup",function(){return
v(e),d().onDownButtonKeyUp()}),c()()}if(2&t){const
e=d();a(1),me(e.incrementButtonClass),p("ngClass",A(10,kT))("icon",e.incrementButtonIcon)("disabled",e.disabled),a(1),me(e.decrementButtonClass),p("ngClass",A(11,IT))("icon",e.decrementButtonIcon)("disabled",e.disabled)}}function
d6(t,i){if(1&t){const
e=I();l(0,"button",8),C("mousedown",function(s){return
v(e),d().onUpButtonMouseDown(s)})("mouseup",function(){return
v(e),d().onUpButtonMouseUp()})("mouseleave",function(){return
v(e),d().onUpButtonMouseLeave()})("keydown",function(s){return
v(e),d().onUpButtonKeyDown(s)})("keyup",function(){return v(e),d().onUpButtonK
eyUp()}),c()}if(2&t){const
e=d();me(e.incrementButtonClass),p("ngClass",A(5,kT))("icon",e.incrementButtonIcon)("disabled",e.disabled)}}function
p6(t,i){if(1&t){const
e=I();l(0,"button",8),C("mousedown",function(s){return
v(e),d().onDownButtonMouseDown(s)})("mouseup",function(){return
v(e),d().onDownButtonMouseUp()})("mouseleave",function(){return
v(e),d().onDownButtonMouseLeave()})("keydown",function(s){return
v(e),d().onDownButtonKeyDown(s)})("keyup",function(){return
v(e),d().onDownButtonKeyUp()}),c()}if(2&t){const
e=d();me(e.decrementButtonClass),p("ngClass",A(5,IT))("icon",e.decrementButtonIcon)("disabled",e.disabled)}}const
h6=function(t,i,e){return{"p-inputnumber
p-component":!0,"p-inputnumber-buttons-stacked":t,"p-inputnumber-buttons-horizontal":i,"p-inputnumber-buttons-vertical":e}},m6={provide:dn,useExisting:je(()=>pt),multi:!0};let
pt=(()=>{class
t{constructor(e,n){this.el=e,this.cd=n,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.showClear=!1,this.onInput=new
H,this.onFocus=new H,this.onBlur=new H,this.onKeyDown=new H,this.onClear=new
H,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","minFractionDigits","maxFractionDigits","prefix","suffix"].some(s=>!!e[s])&&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}}constr
uctParser(){this.numberFormat=new Intl.NumberFormat(this.locale,this.getOptions());const
e=[...new
Intl.NumberFormat(this.locale,{useGrouping:!1}).format(9876543210)].reverse(),n=new
Map(e.map((s,r)=>[s,r]));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=s=>n.get(s)}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 th
is.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 s=new
Intl.NumberFormat(this.locale,this.getOptions()).format(e);return
this.prefix&&(s=this.prefix+s),this.suffix&&(s+=this.suffix),s}return
e.toString()}return""}parseValue(e){let
n=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(n){if("-"===n)return
n;let s=+n;return isNaN(s)?null:s}return null}repeat(e,n,s){if(this.readonly)return;let
r=n||500;this.clearTimer(),this.timer=setTimeout(()=>{this.repeat(e,40,s)},r),this.spin(e,s)}spin(e,n){let
s=this.step*n,r=this.parseValue(this.i
nput.nativeElement.value)||0,o=this.validateValue(r+s);this.maxlength&&this.maxlength<this.formatValue(o).length||(this.updateInput(o,null,"spin",null),this.updateModel(e,o),this.handleOnInput(e,r,o))}clear(){this.value=null,this.onModelChange(this.value),this.onClear.emit()}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()}onDownButtonMouseUp(){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
n=e.target.selectionStart,s=e.target.selectionEnd,r=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(r.charAt(n-1))||e.preventDefault();break;case
39:this.isNumeralChar(r.charAt(n))||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(),n===s){const
u=r.charAt(n-1),{decimalCharIndex:h,decimalCharIndexWithoutPrefix:b}=this.getDecimalCharIndexes(r);if(this.isNumeralChar(u)){const
y=this.getDecimalLength(r);if(this._group.test(u))this._group.lastIndex=0,o=r.slice(0,n-2)+r.slice(n-1);else
if(this._decimal.test(u))this._decimal.la
stIndex=0,y?this.input.nativeElement.setSelectionRange(n-1,n-1):o=r.slice(0,n-1)+r.slice(n);else
if(h>0&&n>h){const
w=this.isDecimalMode()&&(this.minFractionDigits||0)<y?"":"0";o=r.slice(0,n-1)+w+r.slice(n)}else
1===b?(o=r.slice(0,n-1)+"0"+r.slice(n),o=this.parseValue(o)>0?o:""):o=r.slice(0,n-1)+r.slice(n)}this.updateValue(e,o,null,"delete-single")}else
o=this.deleteRange(r,n,s),this.updateValue(e,o,null,"delete-range");break;case
46:if(e.preventDefault(),n===s){const
u=r.charAt(n),{decimalCharIndex:h,decimalCharIndexWithoutPrefix:b}=this.getDecimalCharIndexes(r);if(this.isNumeralChar(u)){const
y=this.getDecimalLength(r);if(this._group.test(u))this._group.lastIndex=0,o=r.slice(0,n)+r.slice(n+2);else
if(this._decimal.test(u))this._decimal.lastIndex=0,y?this.input.nativeElement.setSelectionRange(n+1,n+1):o=r.slice(0,n)+r.slice(n+1);else
if(h>0&&n>h){const
w=this.isDecimalMode()&&(this.minFractionDigits||0)<y?"":"0";o=r.slice(0,n)+w+r.slice(n+1)}else
1===b?(o=r.slice(0,n)+"0"+r.slice(n
+1),o=this.parseValue(o)>0?o:""):o=r.slice(0,n)+r.slice(n+1)}this.updateValue(e,o,null,"delete-back-single")}else
o=this.deleteRange(r,n,s),this.updateValue(e,o,null,"delete-range")}this.onKeyDown.emit(e)}onInputKeyPress(e){if(this.readonly)return;e.preventDefault();let
n=e.which||e.keyCode,s=String.fromCharCode(n);const
r=this.isDecimalSign(s),o=this.isMinusSign(s);(48<=n&&n<=57||o||r)&&this.insert(e,s,{isDecimalSign:r,isMinusSign:o})}onPaste(e){if(!this.disabled&&!this.readonly){e.preventDefault();let
n=(e.clipboardData||window.clipboardData).getData("Text");if(n){let
s=this.parseValue(n);null!=s&&this.insert(e,s.toString())}}}allowMinusSign(){return
null==this.min||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
n=e.search(this._decimal);this._decimal.lastIndex=0;const r=e.repl
ace(this._prefix,"").trim().replace(/\s/g,"").replace(this._currency,"").search(this._decimal);return
this._decimal.lastIndex=0,{decimalCharIndex:n,decimalCharIndexWithoutPrefix:r}}getCharIndexes(e){const
n=e.search(this._decimal);this._decimal.lastIndex=0;const
s=e.search(this._minusSign);this._minusSign.lastIndex=0;const
r=e.search(this._suffix);this._suffix.lastIndex=0;const o=e.search(this._currency);return
this._currency.lastIndex=0,{decimalCharIndex:n,minusCharIndex:s,suffixCharIndex:r,currencyCharIndex:o}}insert(e,n,s={isDecimalSign:!1,isMinusSign:!1}){const
r=n.search(this._minusSign);if(this._minusSign.lastIndex=0,!this.allowMinusSign()&&-1!==r)return;let
o=this.input.nativeElement.selectionStart,u=this.input.nativeElement.selectionEnd,h=this.input.nativeElement.value.trim();const{decimalCharIndex:b,minusCharIndex:y,suffixCharIndex:w,currencyCharIndex:M}=this.getCharIndexes(h);let
E;if(s.isMinusSign)0===o&&(E=h,(-1===y||0!==u)&&(E=this.insertText(h,n,0,u)),this.updateValue(
e,E,n,"insert"));else
if(s.isDecimalSign)b>0&&o===b?this.updateValue(e,h,n,"insert"):(b>o&&b<u||-1===b&&this.maxFractionDigits)&&(E=this.insertText(h,n,o,u),this.updateValue(e,E,n,"insert"));else{const
L=this.numberFormat.resolvedOptions().maximumFractionDigits,O=o!==u?"range-insert":"insert";if(b>0&&o>b){if(o+n.length-(b+1)<=L){const
N=M>=o?M-1:w>=o?w:h.length;E=h.slice(0,o)+n+h.slice(o+n.length,N)+h.slice(N),this.updateValue(e,E,n,O)}}else
E=this.insertText(h,n,o,u),this.updateValue(e,E,n,O)}}insertText(e,n,s,r){if(2===("."===n?n:n.split(".")).length){const
u=e.slice(s,r).search(this._decimal);return
this._decimal.lastIndex=0,u>0?e.slice(0,s)+this.formatValue(n)+e.slice(r):e||this.formatValue(n)}return
r-s===e.length?this.formatValue(n):0===s?n+e.slice(r):r===e.length?e.slice(0,s)+n:e.slice(0,s)+n+e.slice(r)}deleteRange(e,n,s){let
r;return
r=s-n===e.length?"":0===n?e.slice(s):s===e.length?e.slice(0,n):e.slice(0,n)+e.slice(s),r}initCursor(){let
e=this.input.nativeElement.selectionS
tart,n=this.input.nativeElement.value,s=n.length,r=null,o=(this.prefixChar||"").length;n=n.replace(this._prefix,""),e-=o;let
u=n.charAt(e);if(this.isNumeralChar(u))return e+o;let
h=e-1;for(;h>=0;){if(u=n.charAt(h),this.isNumeralChar(u)){r=h+o;break}h--}if(null!==r)this.input.nativeElement.setSelectionRange(r+1,r+1);else{for(h=e;h<s;){if(u=n.charAt(h),this.isNumeralChar(u)){r=h+o;break}h++}null!==r&&this.input.nativeElement.setSelectionRange(r,r)}return
r||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))}resetRegex(){this._numeral.lastIndex=0,this._decimal.lastIndex=0,this._group.lastIndex=0,this._minusSign.lastIndex=0}updateValue(e,n,s,r){let
o=this.input.nativeElement.value,u=null;null!=n&&(u=this.parseValue(n),u=u||this.allowEmpty?u:0,this.updateInput(u,s,r,n),this.handleOnInput(e,o,u))}handleOnInput(e,n,s){this.isValueChange
d(n,s)&&this.onInput.emit({originalEvent:e,value:s})}isValueChanged(e,n){return
null===n&&null!==e||null!=n&&n!==("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,n,s,r){n=n||"";let
o=this.input.nativeElement.value,u=this.formatValue(e),h=o.length;if(u!==r&&(u=this.concatValues(u,r)),0===h){this.input.nativeElement.value=u,this.input.nativeElement.setSelectionRange(0,0);const
y=this.initCursor()+n.length;this.input.nativeElement.setSelectionRange(y,y)}else{let
b=this.input.nativeElement.selectionStart,y=this.input.nativeElement.selectionEnd;if(this.maxlength&&this.maxlength<u.length)return;this.input.nativeElement.value=u;let
w=u.length;if("range-insert"===s){const
M=this.parseValue((o||"").slice(0,b)),L=(null!==M?M.toString():"").split("").join(`(${this.groupChar})?`),O=new
RegExp(L,"g");O.test(u);const
N=n.split("").join(`(${this.groupChar})?`),G=new RegExp(
N,"g");G.test(u.slice(O.lastIndex)),y=O.lastIndex+G.lastIndex,this.input.nativeElement.setSelectionRange(y,y)}else
if(w===h)"insert"===s||"delete-back-single"===s?this.input.nativeElement.setSelectionRange(y+1,y+1):"delete-single"===s?this.input.nativeElement.setSelectionRange(y-1,y-1):("delete-range"===s||"spin"===s)&&this.input.nativeElement.setSelectionRange(y,y);else
if("delete-back-single"===s){let
M=o.charAt(y-1),E=o.charAt(y),L=h-w,O=this._group.test(E);O&&1===L?y+=1:!O&&this.isNumeralChar(M)&&(y+=-1*L+1),this._group.lastIndex=0,this.input.nativeElement.setSelectionRange(y,y)}else
if("-"===o&&"insert"===s){this.input.nativeElement.setSelectionRange(0,0);const
E=this.initCursor()+n.length+1;this.input.nativeElement.setSelectionRange(E,E)}else
y+=w-h,this.input.nativeElement.setSelectionRange(y,y)}this.input.nativeElement.setAttribute("aria-valuenow",e)}concatValues(e,n){if(e&&n){let
s=n.search(this._decimal);return
this._decimal.lastIndex=0,-1!==s?e.split(this._decimal)[0]+n.s
lice(s):e}return e}getDecimalLength(e){if(e){const
n=e.split(this._decimal);if(2===n.length)return
n[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
n=this.validateValue(this.parseValue(this.input.nativeElement.value));this.input.nativeElement.value=this.formatValue(n),this.input.nativeElement.setAttribute("aria-valuenow",n),this.updateModel(e,n),this.onBlur.emit(e)}formattedValue(){return
this.formatValue(this.value||this.allowEmpty?this.value:0)}updateModel(e,n){this.value!==n&&(this.value=n,this.onModelChange(n)),this.onModelTouched()}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)}getF
ormatter(){return this.numberFormat}}return t.\u0275fac=function(e){return
new(e||t)(D(De),D(rt))},t.\u0275cmp=z({type:t,selectors:[["p-inputNumber"]],viewQuery:function(e,n){if(1&e&&W(l6,5),2&e){let
s;V(s=B())&&(n.input=s.first)}},hostAttrs:[1,"p-element","p-inputwrapper"],hostVars:6,hostBindings:function(e,n){2&e&&si("p-inputwrapper-filled",n.filled)("p-inputwrapper-focus",n.focused)("p-inputnumber-clearable",n.showClear&&"vertical"!=n.buttonLayout)},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",showClear:"showClear",disabled:"disabled"},outputs:{onInput:"onInput",onFocus:"onFocus",onBlur:"onBlur",onKeyDown:"onKeyDown",onClear:"onClear"},features:[Pe([m6]),fn],decls:7,vars:32,consts:[[3,"ngClass","ngStyle"],["pInputText","","inputmode","decimal",3,"ngClass","ngStyle","value","disabled","readonly","input","keydown","keypress","paste","click","focus","blur"],["input",""],["class","p-inputnumber-clear-icon
pi
pi-times",3,"click",4,"ngIf"],["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-c
lear-icon","pi","pi-times",3,"click"],[1,"p-inputnumber-button-group"],["type","button","pButton","",3,"ngClass","icon","disabled","mousedown","mouseup","mouseleave","keydown","keyup"]],template:function(e,n){1&e&&(l(0,"span",0)(1,"input",1,2),C("input",function(r){return
n.onUserInput(r)})("keydown",function(r){return
n.onInputKeyDown(r)})("keypress",function(r){return
n.onInputKeyPress(r)})("paste",function(r){return
n.onPaste(r)})("click",function(){return
n.onInputClick()})("focus",function(r){return
n.onInputFocus(r)})("blur",function(r){return
n.onInputBlur(r)}),c(),_(3,c6,1,0,"i",3),_(4,u6,3,12,"span",4),_(5,d6,1,6,"button",5),_(6,p6,1,6,"button",5),c()),2&e&&(me(n.styleClass),p("ngClass",Qt(28,h6,n.showButtons&&"stacked"===n.buttonLayout,n.showButtons&&"horizontal"===n.buttonLayout,n.showButtons&&"vertical"===n.buttonLayout))("ngStyle",n.style),a(1),me(n.inputStyleClass),p("ngClass","p-inputnumber-input")("ngStyle",n.inputStyle)("value",n.formattedValue())("disabled",n.disab
led)("readonly",n.readonly),ie("placeholder",n.placeholder)("title",n.title)("id",n.inputId)("size",n.size)("name",n.name)("autocomplete",n.autocomplete)("maxlength",n.maxlength)("tabindex",n.tabindex)("aria-label",n.ariaLabel)("aria-required",n.ariaRequired)("required",n.required)("min",n.min)("max",n.max),a(2),p("ngIf","vertical"!=n.buttonLayout&&n.showClear&&n.value),a(1),p("ngIf",n.showButtons&&"stacked"===n.buttonLayout),a(1),p("ngIf",n.showButtons&&"stacked"!==n.buttonLayout),a(1),p("ngIf",n.showButtons&&"stacked"!==n.buttonLayout))},directives:[Le,lt,DT,Q,On],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{border-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-inputnumber-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%}.p-inputnumber-clear-icon{position:absolute;top:50%;margin-top:-.5rem;cursor:pointer}.p-inputnumber-clearable{position:relative}\n"],encapsulation:2,changeDetection:0}),t})(),Xu=(()=>{class
t{}return t.\u0275fac=function(e){return
new(e||t)},t.\u0275mod=he({type:t}),t.\u0275inj=ue({imports:[[Fe,MT,gl]]}),t})();function
f6(t,i){1&t&&Y(0)}const Zf=function(t){return{$implicit:t}};function
g6(t,i){if(1&t&&(l(0,"div",15),_(1,f6,1,0,"ng-container",16),c()),2&t){const
e=d(2);a(1),p("ngTempl
ateOutlet",e.templateLeft)("ngTemplateOutletContext",U(2,Zf,e.paginatorState))}}function
_6(t,i){if(1&t&&(l(0,"span",17),g(1),c()),2&t){const
e=d(2);a(1),S(e.currentPageReport)}}const
ed=function(t){return{"p-disabled":t}};function b6(t,i){if(1&t){const
e=I();l(0,"button",18),C("click",function(s){return
v(e),d(2).changePageToFirst(s)}),k(1,"span",19),c()}if(2&t){const
e=d(2);p("disabled",e.isFirstPage()||e.empty())("ngClass",U(2,ed,e.isFirstPage()||e.empty()))}}const
v6=function(t){return{"p-highlight":t}};function C6(t,i){if(1&t){const
e=I();l(0,"button",22),C("click",function(s){const
o=v(e).$implicit;return d(3).onPageLinkClick(s,o-1)}),g(1),c()}if(2&t){const
e=i.$implicit,n=d(3);p("ngClass",U(2,v6,e-1==n.getPage())),a(1),S(e)}}function
y6(t,i){if(1&t&&(l(0,"span",20),_(1,C6,2,4,"button",21),c()),2&t){const
e=d(2);a(1),p("ngForOf",e.pageLinks)}}function
w6(t,i){1&t&&g(0),2&t&&S(d(3).currentPageReport)}function
T6(t,i){if(1&t){const
e=I();l(0,"p-dropdown",23),C("onChange",functio
n(s){return
v(e),d(2).onPageDropdownChange(s)}),_(1,w6,1,1,"ng-template",24),c()}if(2&t){const
e=d(2);p("options",e.pageItems)("ngModel",e.getPage())("disabled",e.empty())("appendTo",e.dropdownAppendTo)("scrollHeight",e.dropdownScrollHeight)}}function
S6(t,i){if(1&t){const
e=I();l(0,"button",25),C("click",function(s){return
v(e),d(2).changePageToLast(s)}),k(1,"span",26),c()}if(2&t){const
e=d(2);p("disabled",e.isLastPage()||e.empty())("ngClass",U(2,ed,e.isLastPage()||e.empty()))}}function
x6(t,i){if(1&t){const
e=I();l(0,"p-inputNumber",27),C("ngModelChange",function(s){return
v(e),d(2).changePage(s-1)}),c()}if(2&t){const
e=d(2);p("ngModel",e.currentPage())("disabled",e.empty())}}function
D6(t,i){1&t&&Y(0)}function
M6(t,i){if(1&t&&_(0,D6,1,0,"ng-container",16),2&t){const
e=i.$implicit;p("ngTemplateOutlet",d(4).dropdownItemTemplate)("ngTemplateOutletContext",U(2,Zf,e))}}function
k6(t,i){1&t&&(de(0),_(1,M6,1,4,"ng-template",30),pe())}function
I6(t,i){if(1&t){const e=I();l(0,"p-dropdown"
,28),C("ngModelChange",function(s){return
v(e),d(2).rows=s})("onChange",function(s){return
v(e),d(2).onRppChange(s)}),_(1,k6,2,0,"ng-container",29),c()}if(2&t){const
e=d(2);p("options",e.rowsPerPageItems)("ngModel",e.rows)("disabled",e.empty())("appendTo",e.dropdownAppendTo)("scrollHeight",e.dropdownScrollHeight),a(1),p("ngIf",e.dropdownItemTemplate)}}function
E6(t,i){1&t&&Y(0)}function
R6(t,i){if(1&t&&(l(0,"div",31),_(1,E6,1,0,"ng-container",16),c()),2&t){const
e=d(2);a(1),p("ngTemplateOutlet",e.templateRight)("ngTemplateOutletContext",U(2,Zf,e.paginatorState))}}function
L6(t,i){if(1&t){const
e=I();l(0,"div",1),_(1,g6,2,4,"div",2),_(2,_6,2,1,"span",3),_(3,b6,2,4,"button",4),l(4,"button",5),C("click",function(s){return
v(e),d().changePageToPrev(s)}),k(5,"span",6),c(),_(6,y6,2,1,"span",7),_(7,T6,2,5,"p-dropdown",8),l(8,"button",9),C("click",function(s){return
v(e),d().changePageToNext(s)}),k(9,"span",10),c(),_(10,S6,2,4,"button",11),_(11,x6,1,2,"p-inputNumber",12),_(12,I6,2,6,"p-drop
down",13),_(13,R6,2,4,"div",14),c()}if(2&t){const
e=d();me(e.styleClass),p("ngStyle",e.style)("ngClass","p-paginator
p-component"),a(1),p("ngIf",e.templateLeft),a(1),p("ngIf",e.showCurrentPageReport),a(1),p("ngIf",e.showFirstLastIcon),a(1),p("disabled",e.isFirstPage()||e.empty())("ngClass",U(17,ed,e.isFirstPage()||e.empty())),a(2),p("ngIf",e.showPageLinks),a(1),p("ngIf",e.showJumpToPageDropdown),a(1),p("disabled",e.isLastPage()||e.empty())("ngClass",U(19,ed,e.isLastPage()||e.empty())),a(2),p("ngIf",e.showFirstLastIcon),a(1),p("ngIf",e.showJumpToPageInput),a(1),p("ngIf",e.rowsPerPageOptions),a(1),p("ngIf",e.templateRight)}}let
ET=(()=>{class t{constructor(e){this.cd=e,this.pageLinkSize=5,this.onPageChange=new
H,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.updateRowsPerPageOptions()),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(),n=Math.min(this.pageLinkSize,e),s=Math.max(0,Math.ceil(this.getPage()-n/2)),r=Math.min(e-1,s+n-1);return
s=Math.max(0,
s-(this.pageLinkSize-(r-s+1))),[s,r]}updatePageLinks(){this.pageLinks=[];let
e=this.calculatePageLinkBoundaries(),s=e[1];for(let
r=e[0];r<=s;r++)this.pageLinks.push(r+1);if(this.showJumpToPageDropdown){this.pageItems=[];for(let
r=0;r<this.getPageCount();r++)this.pageItems.push({label:String(r+1),value:r})}}changePage(e){var
n=this.getPageCount();if(e>=0&&e<n){this._first=this.rows*e;var
s={page:e,first:this.first,rows:this.rows,pageCount:n};this.updatePageLinks(),this.onPageChange.emit(s),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,n){this.changePage(n),e.preventDefault()}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)(D(rt))},t.\u0275cmp=z({type:t,selectors:[["p-paginator"]],hostAttrs:[1,"p-element"],inputs:{pageLi
nkSize:"pageLinkSize",style:"style",styleClass:"styleClass",alwaysShow:"alwaysShow",templateLeft:"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:[fn],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-fir
st","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,n){1&e&&_(0,L6,14,21,"div",0),2&e&&p("ng
If",!!n.alwaysShow||n.pageLinks&&n.pageLinks.length>1)},directives:[Ot,pt,Q,lt,Le,Rt,bt,at,Te,_e,ne],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})(),RT=(()=>{class
t{}return t.\u0275fac=function(e){return
new(e||t)},t.\u0275mod=he({type:t}),t.\u0275inj=ue({imports:[[Fe,Zu,Xu,Mu,Nt,pn],Zu,Xu,Mu,Nt]}),t})();function
O6(t,i){if(1&t&&(l(0,"div",10)(1,"div",11),k(2,"i"),c()()),2&t){const
e=d();a(2),me("p-dataview-loading-icon pi-spin "+e.loadingIcon)}}function
A6(t,i){1&t&&Y(0)}functi
on
P6(t,i){if(1&t&&(l(0,"div",12),St(1),_(2,A6,1,0,"ng-container",13),c()),2&t){const
e=d();a(2),p("ngTemplateOutlet",e.headerTemplate)}}function
F6(t,i){if(1&t){const
e=I();l(0,"p-paginator",14),C("onPageChange",function(s){return
v(e),d().paginate(s)}),c()}if(2&t){const
e=d();p("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
N6(t,i){1&t&&Y(0)}const V6=function(t,i){return{$implicit:t,row
Index:i}};function
B6(t,i){if(1&t&&_(0,N6,1,0,"ng-container",15),2&t){const
e=i.$implicit,n=i.index;p("ngTemplateOutlet",d().itemTemplate)("ngTemplateOutletContext",Ge(2,V6,e,n))}}function
H6(t,i){if(1&t&&(de(0),g(1),pe()),2&t){const e=d(2);a(1),T("
",e.emptyMessageLabel," ")}}function
q6(t,i){1&t&&Y(0,null,19)}function
G6(t,i){if(1&t&&(l(0,"div",16)(1,"div",17),_(2,H6,2,1,"ng-container",18),_(3,q6,2,0,"ng-container",13),c()()),2&t){const
e=d();a(2),p("ngIf",!e.emptyMessageTemplate)("ngIfElse",e.emptyFilter),a(1),p("ngTemplateOutlet",e.emptyMessageTemplate)}}function
U6(t,i){if(1&t){const
e=I();l(0,"p-paginator",20),C("onPageChange",function(s){return
v(e),d().paginate(s)}),c()}if(2&t){const
e=d();p("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
z6(t,i){1&t&&Y(0)}function
j6(t,i){if(1&t&&(l(0,"div",21),St(1,1),_(2,z6,1,0,"ng-container",13),c()),2&t){const
e=d();a(2),p("ngTemplateOutlet",e.footerTemplate)}}const
$6=[[["p-header"]],[["p-footer"]]],W6=function(t,i){return{"p-dataview
p-component":!0,"p-dataview-list":t,"p-dataview-grid":i}},K6=["p-header","p-footer"];let
LT=(()=>{class
t{constructor(e,n,s,r){this.el=e,this.cd=n,this.filterService=s,this.config=r,this.pageLinks=5,this.paginatorPosition="bottom",this.alwaysShowPaginator=!0,this.paginatorDropdownScrollHeight="200px",this.currentPageReportTemplate="{currentPage}
of {totalPages}",this.showFirstLastIcon=!0,t
his.showPageLinks=!0,this.emptyMessage="",this.onLazyLoad=new
H,this.trackBy=(o,u)=>u,this.loadingIcon="pi
pi-spinner",this.first=0,this.onPage=new H,this.onSort=new H,this.onChangeLayout=new
H,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.pagi
natorRightTemplate=e.template;break;case"paginatordropdownitem":this.paginatorDropdownItemTemplate=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,n)=>{let
s=Z.resolveFieldData(e,this.sortField),r
=Z.resolveFieldData(n,this.sortField),o=null;return
o=null==s&&null!=r?-1:null!=s&&null==r?1:null==s&&null==r?0:"string"==typeof
s&&"string"==typeof
r?s.localeCompare(r):s<r?-1:s>r?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(Ft.EMPTY_MESSAGE)}filter(e,n="contains"){if(this.filterValue=e,this.value&&this.value.length){let
s=this.filterBy.split(",");this.filteredValue=this.filterService.filter(this.value,s,e,n,this.filterLocale),this.filteredValue.length===this.value.length&&(this.filteredValue=null),this.paginator&&(this.first=0,this.totalRecords=this.filteredValu
e?this.filteredValue.length:this.value?this.value.length:0),this.cd.markForCheck()}}hasFilter(){return
this.filterValue&&this.filterValue.trim().length>0}ngOnDestroy(){this.translationSubscription&&this.translationSubscription.unsubscribe()}}return
t.\u0275fac=function(e){return
new(e||t)(D(De),D(rt),D(hl),D(zn))},t.\u0275cmp=z({type:t,selectors:[["p-dataView"]],contentQueries:function(e,n,s){if(1&e&&(st(s,Oo,5),st(s,fl,5),st(s,ne,4)),2&e){let
r;V(r=B())&&(n.header=r.first),V(r=B())&&(n.footer=r.first),V(r=B())&&(n.templates=r)}},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",showJum
pToPageDropdown:"showJumpToPageDropdown",showFirstLastIcon:"showFirstLastIcon",showPageLinks:"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:[fn],ngContentSelectors:K6,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-emptymessage"],[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,n){1&e&&(Sn($6),l(0,"div",0),_(1,O6,3,2,"div",1),_(2,P6,3,1,"div",2),_(3,F6,1,16,"p-paginator",3),l(4,"div",4)(5,"div",5),_(6,B6,1,5,"ng-template",6),m(7,"slice"),_(8,G6,4,3,"div",7),c()(),_(9,U6,1,16,"p-paginator",8),_(10,j6,3,1,"div",9),c()),2&e&&(me(n.styleClass),p("ngClass",Ge(16,W6,"list"===n.layout,"grid"===n.layout))("ngStyle",n.style),a(1),p("ngIf",n.loading),a(1),p("ngIf",n.header||n.headerTemplate),a(1),p("ngIf",n.paginator&&("top"===n.paginatorPosition||"bot
h"==n.paginatorPosition)),a(3),p("ngForOf",n.paginator?function
hC(t,i,e,n,s){const r=t+20,o=$(),u=zr(o,r);return
Ua(o,r)?uC(o,Fn(),i,u.transform,e,n,s,u):u.transform(e,n,s)}(7,12,n.filteredValue||n.value,n.lazy?0:n.first,(n.lazy?0:n.first)+n.rows):n.filteredValue||n.value)("ngForTrackBy",n.trackBy),a(2),p("ngIf",n.isEmpty()),a(1),p("ngIf",n.paginator&&("bottom"===n.paginatorPosition||"both"==n.paginatorPosition)),a(1),p("ngIf",n.footer||n.footerTemplate))},directives:[ET,Le,lt,Q,Rt,at],pipes:[My],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})(),Q6=(()=>{class
t{}return t.\u0275fac=function(e){return
new(e||t)},t.\u0275mod=he({type:t}),t.\u0275inj=ue({imports:[[Fe,Nt,RT],Nt]}),t})(),J6=(()=>{class
t{constructor(e){this.el=e}onkeydown(e){if(!0!==this.pFocusTrapDisabled){e.preventDefault();let
n=R.getFocusableElements(this.el.n
ativeElement);if(n&&n.length>0)if(n[0].ownerDocument.activeElement){let
s=n.indexOf(n[0].ownerDocument.activeElement);e.shiftKey?-1==s||0===s?n[n.length-1].focus():n[s-1].focus():-1==s||s===n.length-1?n[0].focus():n[s+1].focus()}else
n[0].focus()}}}return t.\u0275fac=function(e){return
new(e||t)(D(De))},t.\u0275dir=le({type:t,selectors:[["","pFocusTrap",""]],hostAttrs:[1,"p-element"],hostBindings:function(e,n){1&e&&C("keydown.tab",function(r){return
n.onkeydown(r)})("keydown.shift.tab",function(r){return
n.onkeydown(r)})},inputs:{pFocusTrapDisabled:"pFocusTrapDisabled"}}),t})(),Y6=(()=>{class
t{}return t.\u0275fac=function(e){return
new(e||t)},t.\u0275mod=he({type:t}),t.\u0275inj=ue({imports:[[Fe]]}),t})();const
Z6=["titlebar"],X6=["content"],e7=["footer"];function
t7(t,i){if(1&t&&(l(0,"span",17),g(1),c()),2&t){const
e=d(4);ie("id",e.id+"-label"),a(1),S(e.header)}}function
n7(t,i){1&t&&(l(0,"span",17),St(1,1),c()),2&t&&ie("id",d(4).id+"-label")}function
i7(t,i){1&t&&Y(0)}const s7=fu
nction(){return{"p-dialog-header-icon p-dialog-header-maximize
p-link":!0}};function r7(t,i){if(1&t){const
e=I();l(0,"button",18),C("click",function(){return
v(e),d(4).maximize()})("keydown.enter",function(){return
v(e),d(4).maximize()}),k(1,"span",19),c()}if(2&t){const
e=d(4);p("ngClass",A(2,s7)),a(1),p("ngClass",e.maximized?e.minimizeIcon:e.maximizeIcon)}}const
o7=function(){return{"p-dialog-header-icon p-dialog-header-close
p-link":!0}};function a7(t,i){if(1&t){const
e=I();l(0,"button",20),C("click",function(s){return
v(e),d(4).close(s)})("keydown.enter",function(s){return
v(e),d(4).close(s)}),k(1,"span",21),c()}if(2&t){const
e=d(4);p("ngClass",A(4,o7)),ie("aria-label",e.closeAriaLabel)("tabindex",e.closeTabindex),a(1),p("ngClass",e.closeIcon)}}function
l7(t,i){if(1&t){const
e=I();l(0,"div",11,12),C("mousedown",function(s){return
v(e),d(3).initDrag(s)}),_(2,t7,2,2,"span",13),_(3,n7,2,1,"span",13),_(4,i7,1,0,"ng-container",8),l(5,"div",14),_(6,r7,2,3,"button",15),_(7,a7,2,5,"butto
n",16),c()()}if(2&t){const
e=d(3);a(2),p("ngIf",!e.headerFacet&&!e.headerTemplate),a(1),p("ngIf",e.headerFacet),a(1),p("ngTemplateOutlet",e.headerTemplate),a(2),p("ngIf",e.maximizable),a(1),p("ngIf",e.closable)}}function
c7(t,i){1&t&&Y(0)}function u7(t,i){1&t&&Y(0)}function
d7(t,i){if(1&t&&(l(0,"div",22,23),St(2,2),_(3,u7,1,0,"ng-container",8),c()),2&t){const
e=d(3);a(3),p("ngTemplateOutlet",e.footerTemplate)}}function
p7(t,i){if(1&t){const
e=I();l(0,"div",24),C("mousedown",function(s){return
v(e),d(3).initResize(s)}),c()}}const h7=function(t,i,e,n){return{"p-dialog
p-component":!0,"p-dialog-rtl":t,"p-dialog-draggable":i,"p-dialog-resizable":e,"p-dialog-maximized":n}},m7=function(t,i){return{transform:t,transition:i}},f7=function(t){return{value:"visible",params:t}};function
g7(t,i){if(1&t){const
e=I();l(0,"div",3,4),C("(a)animation.start",function(s){return
v(e),d(2).onAnimationStart(s)})("(a)animation.done",function(s){return
v(e),d(2).onAnimationEnd(s)}),_(2,l7,8,5,"div",5),l(3,"div"
,6,7),St(5),_(6,c7,1,0,"ng-container",8),c(),_(7,d7,4,1,"div",9),_(8,p7,1,0,"div",10),c()}if(2&t){const
e=d(2);me(e.styleClass),p("ngClass",qn(15,h7,e.rtl,e.draggable,e.resizable,e.maximized))("ngStyle",e.style)("pFocusTrapDisabled",!1===e.focusTrap)("@animation",U(23,f7,Ge(20,m7,e.transformOptions,e.transitionOptions))),ie("aria-labelledby",e.id+"-label"),a(2),p("ngIf",e.showHeader),a(1),me(e.contentStyleClass),p("ngClass","p-dialog-content")("ngStyle",e.contentStyle),a(3),p("ngTemplateOutlet",e.contentTemplate),a(1),p("ngIf",e.footerFacet||e.footerTemplate),a(1),p("ngIf",e.resizable)}}const
_7=function(t,i,e,n,s,r,o,u,h,b){return{"p-dialog-mask":!0,"p-component-overlay
p-component-overlay-enter":t,"p-dialog-mask-scrollblocker":i,"p-dialog-left":e,"p-dialog-right":n,"p-dialog-top":s,"p-dialog-top-left":r,"p-dialog-top-right":o,"p-dialog-bottom":u,"p-dialog-bottom-left":h,"p-dialog-bottom-right":b}};function
b7(t,i){if(1&t&&(l(0,"div",1),_(1,g7,9,25,"div",2),c()),2&t){const
e=d();me
(e.maskStyleClass),p("ngClass",Hh(4,_7,[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])),a(1),p("ngIf",e.visible)}}const
v7=["*",[["p-header"]],[["p-footer"]]],C7=["*","p-header","p-footer"],y7=ku([it({transform:"{{transform}}",opacity:0}),kt("{{transition}}")]),w7=ku([kt("{{transition}}",it({transform:"{{transform}}",opacity:0}))]);let
bn=(()=>{class
t{constructor(e,n,s,r,o){this.el=e,this.renderer=n,this.zone=s,this.cd=r,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 H,this.onHide=new H,this.visibleChange=new
H,this.onResizeInit=new H,this.onResizeEnd=new H,this.onDragEnd=new H,this.onMaximize=new
H,this.id=pl(),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.contentTemplat
e=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=R.findSingle(this.container,"[autofocus]");e&&this.zone.runOutsideAngular(()=>{setTimeout(()=>e.focus(),5)})}close(e){this.visibleChange.emit(!1),e.preventDefault()}enableModali
ty(){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&&R.addClass(document.body,"p-overflow-hidden")}disableModality(){this.wrapper&&(this.dismissableMask&&this.unbindMaskClickListener(),this.modal&&R.removeClass(document.body,"p-overflow-hidden"),this.cd.destroyed||this.cd.detectChanges())}maximize(){this.maximized=!this.maximized,!this.modal&&!this.blockScroll&&(this.maximized?R.addClass(document.body,"p-overflow-hidden"):R.removeClass(document.body,"p-overflow-hidden")),this.onMaximize.emit({maximized:this.maximized})}unbindMaskClickListener(){this.maskClickListener&&(this.maskClickListener(),this.maskClickListener=null)}moveOnTop(){this.autoZIndex&&(dt.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.styl
eElement=document.createElement("style"),this.styleElement.type="text/css",document.head.appendChild(this.styleElement);let
e="";for(let n in this.breakpoints)e+=`\n @media screen and
(max-width: ${n}) {\n .p-dialog[${this.id}] {\n
width: ${this.breakpoints[n]} !important;\n }\n
}\n
`;this.styleElement.innerHTML=e}}initDrag(e){R.hasClass(e.target,"p-dialog-header-icon")||R.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",R.addClass(document.body,"p-unselectable-text"))}onKeydown(e){if(this.focusTrap&&9===e.which){e.preventDefault();let
n=R.getFocusableElements(this.container);if(n&&n.length>0)if(n[0].ownerDocument.activeElement){let
s=n.indexOf(n[0].ownerDocument.activeElement);e.shiftKey?-1==s||0===s?n[n.length-1].focus():n[s-1].focus():-1=
=s||s===n.length-1?n[0].focus():n[s+1].focus()}else
n[0].focus()}}onDrag(e){if(this.dragging){let
n=R.getOuterWidth(this.container),s=R.getOuterHeight(this.container),r=e.pageX-this.lastPageX,o=e.pageY-this.lastPageY,u=this.container.getBoundingClientRect(),h=u.left+r,b=u.top+o,y=R.getViewport();this.container.style.position="fixed",this.keepInViewport?(h>=this.minX&&h+n<y.width&&(this._style.left=h+"px",this.lastPageX=e.pageX,this.container.style.left=h+"px"),b>=this.minY&&b+s<y.height&&(this._style.top=b+"px",this.lastPageY=e.pageY,this.container.style.top=b+"px")):(this.lastPageX=e.pageX,this.container.style.left=h+"px",this.lastPageY=e.pageY,this.container.style.top=b+"px")}}endDrag(e){this.dragging&&(this.dragging=!1,R.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,R.addClass(document.body,"p-unselectable-text"),this.onResizeInit.emit(e))}onResize(e){if(this.resizing){let
n=e.pageX-this.lastPageX,s=e.pageY-this.lastPageY,r=R.getOuterWidth(this.container),o=R.getOuterHeight(this.container),u=R.getOuterHeight(this.contentViewChild.nativeElement),h=r+n,b=o+s,y=this.container.style.minWidth,w=this.container.style.minHeight,M=this.container.getBoundingClientRect(),E=R.getViewport();(!parseInt(this.container.style.top)||!parseInt(this.container.style.left))&&(h+=n,b+=s),(!y||h>parseInt(y))&&M.left+h<E.width&&(this._style.width=h+"px",this.container.style.width=this._style.width),(!w||b>parseInt(w))&&M.top+b<E.height&&(this.contentViewChild.nativeElement.style.height=u+b-o+"px",this._style.height&&(this._style.height=b+"px",this.container.style.height=this._style.height)),this.lastPageX=e.pageX,this.lastPageY=e.pageY}}resizeEnd(e){this.resizing&&(this.resiz
ing=!1,R.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.documen
tDragEndListener)})}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.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",n=>{27==n.which&&
this.close(n)})}unbindDocumentEscapeListener(){this.documentEscapeListener&&(this.documentEscapeListener(),this.documentEscapeListener=null)}appendContainer(){this.appendTo&&("body"===this.appendTo?document.body.appendChild(this.wrapper):R.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&&R.addClass(document.body,"p-overflow-hidden"),this.focusOnShow&&this.focus();break;case"void":this.wrapper&&this.modal&&R.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&&(R.removeClass(document.body,"p-overflow-hidden"),this.maximized=!1),this.modal&&this.disableModality(),this.blockScroll&&R.removeClass(document.body,"p-overflow-hidden"),this.container&&this.autoZIndex&&dt.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.\u0275fac=function(e){return
new(e||t)(D(De),D(gn),D(nt),D(rt),D(zn))},t.\u0275cmp=z({type:t,selectors:[["p-dialog"]],contentQueries:function(e,n,s){if(1&e&&(st(s,Oo,5),st(s,fl,5),st(s,ne,4)),2&e){let
r;V(r=B())&&(n.headerFacet=r.first),V(r=B())&&(n.footerFacet=r.first),V(r=B())&&(n.templates=r)}},viewQuery:function(e,n){if(1&e&&(W(Z6,5),W(X6,5),W(e7,5)),2&e){l
et
s;V(s=B())&&(n.headerViewChild=s.first),V(s=B())&&(n.contentViewChild=s.first),V(s=B())&&(n.footerViewChild=s.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:"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:"maximizeIco
n",visible:"visible",style:"style",position:"position"},outputs:{onShow:"onShow",onHide:"onHide",visibleChange:"visibleChange",onResizeInit:"onResizeInit",onResizeEnd:"onResizeEnd",onDragEnd:"onDragEnd",onMaximize:"onMaximize"},ngContentSelectors:C7,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","keydo
wn.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,n){1&e&&(Sn(v7),_(0,b7,2,15,"div",0)),2&e&&p("ngIf",n.maskVisible)},directives:[Q,Le,J6,lt,Rt,bt],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-draggable
.p-dialog-header{curs
or:move}.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:[wi("animation",[Lt("void
=> visible",[fw(y7)]),Lt("visible =>
void",[fw(w7)])])]},changeDetection:0}),t})(),T7=(()=>{class t{}return
t.\u0275fac=function(e){return
new(e||t)},t.\u0275mod=he({type:t}),t.\u0275inj=ue({imports:[[Fe,Y6,pn],Nt]}),t})();const
S7=["*"];let x7=(()=>{class
t{constructor(){this.layout="horizontal",this.type="solid"}containerClass(){return{"p-divider
p-component":!0,"p-divider-horizontal":"horizontal"===this.layout,"p-divider-vertical":"vertical"===this.layout,"p-divider-solid":"solid"===this.type,"p-divider-dashed":"dashed"===this.type,"p-d
ivider-dotted":"dotted"===this.type,"p-divider-left":"horizontal"===this.layout&&(!this.align||"left"===this.align),"p-divider-center":"horizontal"===this.layout&&"center"===this.align||"vertical"===this.layout&&(!this.align||"center"===this.align),"p-divider-right":"horizontal"===this.layout&&"right"===this.align,"p-divider-top":"vertical"===this.layout&&"top"===this.align,"p-divider-bottom":"vertical"===this.layout&&"bottom"===this.align}}}return
t.\u0275fac=function(e){return
new(e||t)},t.\u0275cmp=z({type:t,selectors:[["p-divider"]],hostAttrs:[1,"p-element"],inputs:{styleClass:"styleClass",style:"style",layout:"layout",type:"type",align:"align"},ngContentSelectors:S7,decls:3,vars:4,consts:[["role","separator",3,"ngClass","ngStyle"],[1,"p-divider-content"]],template:function(e,n){1&e&&(Sn(),l(0,"div",0)(1,"div",1),St(2),c()()),2&e&&(me(n.styleClass),p("ngClass",n.containerClass())("ngStyle",n.style))},directives:[Le,lt],styles:['.p-divider-horizontal{display:flex;width:100%;posit
ion:relative;align-items:center}.p-divider-horizontal:before{position:absolute;display:block;top:50%;left:0;width:100%;content:""}.p-divider-horizontal.p-divider-left{justify-content:flex-start}.p-divider-horizontal.p-divider-right{justify-content:flex-end}.p-divider-horizontal.p-divider-center{justify-content:center}.p-divider-content{z-index:1}.p-divider-vertical{min-height:100%;margin:0
1rem;display:flex;position:relative;justify-content:center}.p-divider-vertical:before{position:absolute;display:block;top:0;left:50%;height:100%;content:""}.p-divider-vertical.p-divider-top{align-items:flex-start}.p-divider-vertical.p-divider-center{align-items:center}.p-divider-vertical.p-divider-bottom{align-items:flex-end}.p-divider-solid.p-divider-horizontal:before{border-top-style:solid}.p-divider-solid.p-divider-vertical:before{border-left-style:solid}.p-divider-dashed.p-divider-horizontal:before{border-top-style:dashed}.p-divider-dashed.p-divider-vertical:before{border-left-style:dashed}.p-
divider-dotted.p-divider-horizontal:before{border-top-style:dotted}.p-divider-dotted.p-divider-horizontal:before{border-left-style:dotted}\n'],encapsulation:2,changeDetection:0}),t})(),D7=(()=>{class
t{}return t.\u0275fac=function(e){return
new(e||t)},t.\u0275mod=he({type:t}),t.\u0275inj=ue({imports:[[Fe]]}),t})();const
M7=function(t,i){return{"pi-minus":t,"pi-plus":i}};function
k7(t,i){if(1&t&&k(0,"span",9),2&t){const
e=d(2);p("ngClass",Ge(1,M7,!e.collapsed,e.collapsed))}}function
I7(t,i){1&t&&Y(0)}function E7(t,i){if(1&t){const
e=I();de(0),l(1,"a",7),C("click",function(s){return
v(e),d().toggle(s)})("keydown.enter",function(s){return
v(e),d().toggle(s)}),_(2,k7,1,4,"span",8),_(3,I7,1,0,"ng-container",6),c(),pe()}if(2&t){const
e=d(),n=F(4);a(1),ie("aria-controls",e.id+"-content")("aria-expanded",!e.collapsed),a(1),p("ngIf",e.toggleable),a(1),p("ngTemplateOutlet",n)}}function
R7(t,i){1&t&&Y(0)}function
L7(t,i){if(1&t&&(l(0,"span",10),g(1),c(),St(2,1),_(3,R7,1,0,"ng-container",6)),2&
t){const
e=d();a(1),S(e.legend),a(2),p("ngTemplateOutlet",e.headerTemplate)}}function
O7(t,i){1&t&&Y(0)}const
A7=["*",[["p-header"]]],P7=function(t){return{"p-fieldset
p-component":!0,"p-fieldset-toggleable":t}},F7=function(t){return{transitionParams:t,height:"0"}},N7=function(t){return{value:"hidden",params:t}},V7=function(t){return{transitionParams:t,height:"*"}},B7=function(t){return{value:"visible",params:t}},H7=["*","p-header"];let
q7=0,Ui=(()=>{class
t{constructor(e){this.el=e,this.collapsed=!1,this.collapsedChange=new
H,this.onBeforeToggle=new H,this.onAfterToggle=new H,this.transitionOptions="400ms
cubic-bezier(0.86, 0, 0.07,
1)",this.id="p-fieldset-"+q7++}ngAfterContentInit(){this.templates.forEach(e=>{switch(e.getType()){case"header":this.headerTemplate=e.template;break;case"content":this.contentTemplate=e.template}})}toggle(e){if(this.animating)return!1;this.animating=!0,this.onBeforeToggle.emit({originalEvent:e,collapsed:this.collapsed}),this.collapsed?this.expand(e):thi
s.collapse(e),this.onAfterToggle.emit({originalEvent:e,collapsed:this.collapsed}),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(){this.animating=!1}}return
t.\u0275fac=function(e){return
new(e||t)(D(De))},t.\u0275cmp=z({type:t,selectors:[["p-fieldset"]],contentQueries:function(e,n,s){if(1&e&&st(s,ne,4),2&e){let
r;V(r=B())&&(n.templates=r)}},hostAttrs:[1,"p-element"],inputs:{legend:"legend",toggleable:"toggleable",collapsed:"collapsed",style:"style",styleClass:"styleClass",transitionOptions:"transitionOptions"},outputs:{collapsedChange:"collapsedChange",onBeforeToggle:"onBeforeToggle",onAfterToggle:"onAfterToggle"},ngContentSelectors:H7,decls:9,vars:22,consts:[[3,"ngClass","ngStyle"],[1,"p-fieldset-legend"],[4,"ngIf","ngIfElse"],["legendContent",""],["role","region",1,"p-toggleable-content"],[1,"
p-fieldset-content"],[4,"ngTemplateOutlet"],["tabindex","0","pRipple","",3,"click","keydown.enter"],["class","p-fieldset-toggler
pi",3,"ngClass",4,"ngIf"],[1,"p-fieldset-toggler","pi",3,"ngClass"],[1,"p-fieldset-legend-text"]],template:function(e,n){if(1&e&&(Sn(A7),l(0,"fieldset",0)(1,"legend",1),_(2,E7,4,4,"ng-container",2),_(3,L7,4,2,"ng-template",null,3,we),c(),l(5,"div",4),C("@fieldsetContent.done",function(){return
n.onToggleDone()}),l(6,"div",5),St(7),_(8,O7,1,0,"ng-container",6),c()()()),2&e){const
s=F(4);me(n.styleClass),p("ngClass",U(12,P7,n.toggleable))("ngStyle",n.style),ie("id",n.id),a(2),p("ngIf",n.toggleable)("ngIfElse",s),a(3),p("@fieldsetContent",n.collapsed?U(16,N7,U(14,F7,n.transitionOptions)):U(20,B7,U(18,V7,n.animating?n.transitionOptions:"0ms"))),ie("id",n.id+"-content")("aria-labelledby",n.id)("aria-hidden",n.collapsed),a(3),p("ngTemplateOutlet",n.contentTemplate)}},directives:[Le,lt,Q,bt,Rt],styles:[".p-fieldset-legend>a,.p-fieldset-legend>span{display:flex;al
ign-items:center;justify-content:center}.p-fieldset-toggleable .p-fieldset-legend
a{cursor:pointer;-webkit-user-select:none;user-select:none;overflow:hidden;position:relative}.p-fieldset-legend-text{line-height:1}\n"],encapsulation:2,data:{animation:[wi("fieldsetContent",[ws("hidden",it({height:"0",overflow:"hidden"})),ws("visible",it({height:"*"})),Lt("visible
<=>
hidden",[it({overflow:"hidden"}),kt("{{transitionParams}}")]),Lt("void
=> *",kt(0))])]},changeDetection:0}),t})(),G7=(()=>{class t{}return
t.\u0275fac=function(e){return
new(e||t)},t.\u0275mod=he({type:t}),t.\u0275inj=ue({imports:[[Fe,pn],Nt]}),t})();const
U7=["headerchkbox"];function z7(t,i){1&t&&Y(0)}function
j7(t,i){if(1&t&&(l(0,"div",6),St(1),_(2,z7,1,0,"ng-container",7),c()),2&t){const
e=d();a(2),p("ngTemplateOutlet",e.headerTemplate)}}const
OT=function(t){return{"p-checkbox-disabled":t}},$7=function(t,i,e){return{"p-highlight":t,"p-focus":i,"p-disabled":e}},AT=function(t){return{"pi
pi-check":t}};function W7(t,i){if
(1&t){const
e=I();l(0,"div",10)(1,"div",11)(2,"input",12),C("focus",function(){return
v(e),d(2).onHeaderCheckboxFocus()})("blur",function(){return
v(e),d(2).onHeaderCheckboxBlur()})("keydown.space",function(s){return
v(e),d(2).toggleAll(s)}),c()(),l(3,"div",13,14),C("click",function(s){return
v(e),d(2).toggleAll(s)}),k(5,"span",15),c()()}if(2&t){const
e=d(2);p("ngClass",U(5,OT,e.disabled||e.toggleAllDisabled)),a(2),p("checked",e.allChecked)("disabled",e.disabled||e.toggleAllDisabled),a(1),p("ngClass",Qt(7,$7,e.allChecked,e.headerCheckboxFocus,e.disabled||e.toggleAllDisabled)),a(2),p("ngClass",U(11,AT,e.allChecked))}}function
K7(t,i){if(1&t){const
e=I();l(0,"div",16)(1,"input",17),C("input",function(s){return
v(e),d(2).onFilter(s)}),c(),k(2,"span",18),c()}if(2&t){const
e=d(2);a(1),p("value",e.filterValue||"")("disabled",e.disabled),ie("placeholder",e.filterPlaceHolder)("aria-label",e.ariaFilterLabel)}}function
Q7(t,i){if(1&t&&(l(0,"div",6),_(1,W7,6,13,"div",8),_(2,K7,3,4,"div",9),c()
),2&t){const
e=d();a(1),p("ngIf",e.checkbox&&e.multiple&&e.showToggleAll),a(1),p("ngIf",e.filter)}}function
J7(t,i){if(1&t&&(l(0,"span"),g(1),c()),2&t){const
e=d().$implicit,n=d(2);a(1),S(n.getOptionGroupLabel(e)||"empty")}}function
Y7(t,i){1&t&&Y(0)}function Z7(t,i){1&t&&Y(0)}const
Xf=function(t){return{$implicit:t}};function
X7(t,i){if(1&t&&(l(0,"li",20),_(1,J7,2,1,"span",3),_(2,Y7,1,0,"ng-container",21),c(),_(3,Z7,1,0,"ng-container",21)),2&t){const
e=i.$implicit,n=d(2),s=F(8);a(1),p("ngIf",!n.groupTemplate),a(1),p("ngTemplateOutlet",n.groupTemplate)("ngTemplateOutletContext",U(5,Xf,e)),a(1),p("ngTemplateOutlet",s)("ngTemplateOutletContext",U(7,Xf,n.getOptionGroupChildren(e)))}}function
eB(t,i){if(1&t&&(de(0),_(1,X7,4,9,"ng-template",19),pe()),2&t){const
e=d();a(1),p("ngForOf",e.optionsToRender)}}function
tB(t,i){1&t&&Y(0)}function
nB(t,i){if(1&t&&(de(0),_(1,tB,1,0,"ng-container",21),pe()),2&t){const
e=d(),n=F(8);a(1),p("ngTemplateOutlet",n)("ngTemplateOutletContext",U(2,Xf,e.opti
onsToRender))}}const iB=function(t){return{"p-highlight":t}};function
sB(t,i){if(1&t&&(l(0,"div",10)(1,"div",25),k(2,"span",15),c()()),2&t){const
e=d().$implicit,n=d(2);p("ngClass",U(3,OT,n.disabled||n.isOptionDisabled(e))),a(1),p("ngClass",U(5,iB,n.isSelected(e))),a(1),p("ngClass",U(7,AT,n.isSelected(e)))}}function
rB(t,i){if(1&t&&(l(0,"span"),g(1),c()),2&t){const
e=d().$implicit,n=d(2);a(1),S(n.getOptionLabel(e))}}function
oB(t,i){1&t&&Y(0)}const
aB=function(t,i){return{"p-listbox-item":!0,"p-highlight":t,"p-disabled":i}},lB=function(t,i){return{$implicit:t,index:i}};function
cB(t,i){if(1&t){const
e=I();l(0,"li",24),C("click",function(s){const o=v(e).$implicit;return
d(2).onOptionClick(s,o)})("dblclick",function(s){const o=v(e).$implicit;return
d(2).onOptionDoubleClick(s,o)})("touchend",function(){const
r=v(e).$implicit;return d(2).onOptionTouchEnd(r)})("keydown",function(s){const
o=v(e).$implicit;return
d(2).onOptionKeyDown(s,o)}),_(1,sB,3,9,"div",8),_(2,rB,2,1,"span",3),_(3,oB,1
,0,"ng-container",21),c()}if(2&t){const
e=i.$implicit,n=i.index,s=d(2);p("ngClass",Ge(8,aB,s.isSelected(e),s.isOptionDisabled(e))),ie("tabindex",s.disabled||s.isOptionDisabled(e)?null:"0")("aria-label",s.getOptionLabel(e))("aria-selected",s.isSelected(e)),a(1),p("ngIf",s.checkbox&&s.multiple),a(1),p("ngIf",!s.itemTemplate),a(1),p("ngTemplateOutlet",s.itemTemplate)("ngTemplateOutletContext",Ge(11,lB,e,n))}}function
uB(t,i){if(1&t&&(de(0),g(1),pe()),2&t){const e=d(3);a(1),T("
",e.emptyFilterMessageLabel," ")}}function
dB(t,i){1&t&&Y(0,null,28)}function
pB(t,i){if(1&t&&(l(0,"li",26),_(1,uB,2,1,"ng-container",27),_(2,dB,2,0,"ng-container",7),c()),2&t){const
e=d(2);a(1),p("ngIf",!e.emptyFilterTemplate&&!e.emptyTemplate)("ngIfElse",e.emptyFilter),a(1),p("ngTemplateOutlet",e.emptyFilterTemplate||e.emptyTemplate)}}function
hB(t,i){if(1&t&&(de(0),g(1),pe()),2&t){const e=d(3);a(1),T("
",e.emptyMessageLabel," ")}}function
mB(t,i){1&t&&Y(0,null,29)}function
fB(t,i){if(1&t&&(l(0,"li",26),_(1,hB,
2,1,"ng-container",27),_(2,mB,2,0,"ng-container",7),c()),2&t){const
e=d(2);a(1),p("ngIf",!e.emptyTemplate)("ngIfElse",e.empty),a(1),p("ngTemplateOutlet",e.emptyTemplate)}}function
gB(t,i){if(1&t&&(_(0,cB,4,14,"li",22),_(1,pB,3,3,"li",23),_(2,fB,3,3,"li",23)),2&t){const
e=i.$implicit,n=d();p("ngForOf",e),a(1),p("ngIf",n.hasFilter()&&n.isEmpty(e)),a(1),p("ngIf",!n.hasFilter()&&n.isEmpty(e))}}function
_B(t,i){1&t&&Y(0)}function
bB(t,i){if(1&t&&(l(0,"div",30),St(1,1),_(2,_B,1,0,"ng-container",7),c()),2&t){const
e=d();a(2),p("ngTemplateOutlet",e.footerTemplate)}}const
vB=[[["p-header"]],[["p-footer"]]],CB=function(t){return{"p-listbox
p-component":!0,"p-disabled":t}},yB=["p-header","p-footer"],wB={provide:dn,useExisting:je(()=>os),multi:!0};let
os=(()=>{class
t{constructor(e,n,s,r){this.el=e,this.cd=n,this.filterService=s,this.config=r,this.checkbox=!1,this.filter=!1,this.filterMatchMode="contains",this.metaKeySelection=!0,this.showToggleAll=!0,this.optionGroupChildren="items",this.onCha
nge=new H,this.onClick=new H,this.onDblClick=new
H,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?Z.resolveFieldData(e,this.optionLabel):null!=e.label?e.label:e}getOptionGroupChildren(e){return
this.optionGroupChildren?Z.resolveFieldData(e,this.optionG
roupChildren):e.items}getOptionGroupLabel(e){return
this.optionGroupLabel?Z.resolveFieldData(e,this.optionGroupLabel):null!=e.label?e.label:e}getOptionValue(e){return
this.optionValue?Z.resolveFieldData(e,this.optionValue):this.optionLabel||void
0===e.value?e:e.value}isOptionDisabled(e){return
this.optionDisabled?Z.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,n){this.disabled||this.isOptionDisabled(n)||this.readonly||(this.multiple?this.checkbox?this.onOptionClickCheckbox(e,n):this.onOptionClickMultiple(e,n):this.onOptionClickSingle(e,n),this.onClick.emit({originalEvent:e,option:n,value:this.value}),this.optionTouched=!1)}onOptionTouchEnd(e){this.disabled||this.isOptionDisabled(e)||this.readonly||(this.optionTouched=!0)}onOptionDoubleClick(e,n){this.d
isabled||this.isOptionDisabled(n)||this.readonly||this.onDblClick.emit({originalEvent:e,option:n,value:this.value})}onOptionClickSingle(e,n){let
s=this.isSelected(n),r=!1;if(!this.optionTouched&&this.metaKeySelection){let
u=e.metaKey||e.ctrlKey;s?u&&(this.value=null,r=!0):(this.value=this.getOptionValue(n),r=!0)}else
this.value=s?null:this.getOptionValue(n),r=!0;r&&(this.onModelChange(this.value),this.onChange.emit({originalEvent:e,value:this.value}))}onOptionClickMultiple(e,n){let
s=this.isSelected(n),r=!1;if(!this.optionTouched&&this.metaKeySelection){let
u=e.metaKey||e.ctrlKey;s?(u?this.removeOption(n):this.value=[this.getOptionValue(n)],r=!0):(this.value=u&&this.value||[],this.value=[...this.value,this.getOptionValue(n)],r=!0)}else
s?this.removeOption(n):this.value=[...this.value||[],this.getOptionValue(n)],r=!0;r&&(this.onModelChange(this.value),this.onChange.emit({originalEvent:e,value:this.value}))}onOptionClickCheckbox(e,n){this.disabled||this.readonly||(this.isSelected(n)?t
his.removeOption(n):(this.value=this.value?this.value:[],this.value=[...this.value,this.getOptionValue(n)]),this.onModelChange(this.value),this.onChange.emit({originalEvent:e,value:this.value}))}removeOption(e){this.value=this.value.filter(n=>!Z.equals(n,this.getOptionValue(e),this.dataKey))}isSelected(e){let
n=!1,s=this.getOptionValue(e);if(this.multiple){if(this.value)for(let r of
this.value)if(Z.equals(r,s,this.dataKey)){n=!0;break}}else
n=Z.equals(this.value,s,this.dataKey);return n}get allChecked(){let
e=this.optionsToRender;if(!e||0===e.length)return!1;{let
n=0,s=0,r=0,o=this.group?0:this.optionsToRender.length;for(let u of
e)if(this.group)for(let h of this.getOptionGroupChildren(u)){let
b=this.isOptionDisabled(h),y=this.isSelected(h);if(b)y?n++:s++;else{if(!y)return!1;r++}o++}else{let
h=this.isOptionDisabled(u),b=this.isSelected(u);if(h)b?n++:s++;else{if(!b)return!1;r++}}return
o===n||o===r||r&&o===r+s+n}}get optionsToRender(){return
this._filteredOptions||this.options}get em
ptyMessageLabel(){return
this.emptyMessage||this.config.getTranslation(Ft.EMPTY_MESSAGE)}get
emptyFilterMessageLabel(){return
this.emptyFilterMessage||this.config.getTranslation(Ft.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(","),n=[];for(let s of
this.options){let
r=this.filterService.filter(this.getOptionGroupChildren(s),e,this.filterValue,this.filterMatchMode,this.filterLocale);r&&r.length&&n.push(Object.assign(Object.assign({},s),{[this.optionGroupChildren]:r}))}this._filteredOptions=n}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.optionsToRend
er;if(!e||0===e.length)return!0;for(let n of
e)if(!this.isOptionDisabled(n))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
n=[];this.optionsToRender.forEach(s=>{if(this.group){let
r=this.getOptionGroupChildren(s);r&&r.forEach(o=>{let
u=this.isOptionDisabled(o);(!u||u&&this.isSelected(o))&&n.push(this.getOptionValue(o))})}else{let
r=this.isOptionDisabled(s);(!r||r&&this.isSelected(s))&&n.push(this.getOptionValue(s))}}),this.value=n}uncheckAll(){let
n=[];this.optionsToRender.forEach(s=>{this.group?s.items&&s.items.forEach(r=>{this.isOptionDisabled(r)&&this.isSelected(r)&&n.push(this.getOptionValue(r))}):this.isOptionDisabled(s)&&this.isSelected(s)&&n.push(this.getOptionValue(s))}),this.value=n}onOptionKeyDown(e,n){if(this.readonly)return;let
s=e.currentTarget;switch(e.which){cas
e 40:var r=this.findNextItem(s);r&&r.focus(),e.preventDefault();break;case 38:var
o=this.findPrevItem(s);o&&o.focus(),e.preventDefault();break;case
13:this.onOptionClick(e,n),e.preventDefault()}}findNextItem(e){let
n=e.nextElementSibling;return
n?R.hasClass(n,"p-disabled")||R.isHidden(n)||R.hasClass(n,"p-listbox-item-group")?this.findNextItem(n):n:null}findPrevItem(e){let
n=e.previousElementSibling;return
n?R.hasClass(n,"p-disabled")||R.isHidden(n)||R.hasClass(n,"p-listbox-item-group")?this.findPrevItem(n):n:null}onHeaderCheckboxFocus(){this.headerCheckboxFocus=!0}onHeaderCheckboxBlur(){this.headerCheckboxFocus=!1}ngOnDestroy(){this.translationSubscription&&this.translationSubscription.unsubscribe()}}return
t.\u0275fac=function(e){return
new(e||t)(D(De),D(rt),D(hl),D(zn))},t.\u0275cmp=z({type:t,selectors:[["p-listbox"]],contentQueries:function(e,n,s){if(1&e&&(st(s,Oo,5),st(s,fl,5),st(s,ne,4)),2&e){let
r;V(r=B())&&(n.headerFacet=r.first),V(r=B())&&(n.footerFacet=r.first),V(r=B())&&(n
.templates=r)}},viewQuery:function(e,n){if(1&e&&W(U7,5),2&e){let
s;V(s=B())&&(n.headerCheckboxViewChild=s.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:[Pe([wB])],ngContentSelectors:yB,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,n){1&e&&(Sn(vB),l(0,"div",0),_(1,j7,3,1,"div",1),_(2,Q7,3,2,"div",1),l(3,"div",0)(4,"ul",2),_(5,eB,2,1,"ng-container",3),_(6,nB,2,4,"ng-container",3),_(7,gB,3,3,"ng-template",null,4,we),c()(),_(9,bB,3,1,"div",5),c()),2&e&&(me(n.styleClass),p("ngClass",U(13,CB,n.disabled))("ngStyle",n.style),a(1),p("ngIf",n.headerFacet||n.headerTemplate),a(1),p("ngIf",n.checkbox&&n.multiple&&n.showToggleAll||n.filter),a(1),me(n.listStyleClass),p("ngClass","p-listbox-list-wrapper")("ngStyle",n.listStyle),a(2),p("ngIf",n.group),a(1),p("ngIf",!n.group),a(3),p("ngIf",n.footerFacet||n.footerTemplate))},directives:[Le,lt,Q,Rt,at,bt],styles:[".p-listbox-list-wrapper{overflow:auto}.p-listbox-list{list-style-type:none;margin:0;padding:0}.p-listbox-it
em{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})(),TB=(()=>{class
t{}return t.\u0275fac=function(e){return
new(e||t)},t.\u0275mod=he({type:t}),t.\u0275inj=ue({imports:[[Fe,Nt,pn],Nt]}),t})();class
zi extends ct{constructor(i){super(),this._value=i}get value(){return
this.getValue()}_subscribe(i){const e=super._subscribe(i);return
e&&!e.closed&&i.next(this._value),e}getValue(){if(this.hasError)throw
this.thrownError;if(this.closed)throw new nr;return
this._value}next(i){super.next(this._value=i)}}class SB extends
yt{notifyNext(i,e,n,s,r){this.destination.next(e)}notifyError(i,e){this.destination.error(i)}notifyComplete(i){this.destination.complete()}}class
xB ex
tends
yt{constructor(i,e,n){super(),this.parent=i,this.outerValue=e,this.outerIndex=n,this.index=0}_next(i){this.parent.notifyNext(this.outerValue,i,this.outerIndex,this.index++,this)}_error(i){this.parent.notifyError(i,this),this.unsubscribe()}_complete(){this.parent.notifyComplete(this),this.unsubscribe()}}function
DB(t,i,e,n,s=new xB(t,e,n)){if(!s.closed)return i instanceof
Je?i.subscribe(s):Od(i)(s)}const PT={};class
kB{constructor(i){this.resultSelector=i}call(i,e){return e.subscribe(new
IB(i,this.resultSelector))}}class IB extends
SB{constructor(i,e){super(i),this.resultSelector=e,this.active=0,this.values=[],this.observables=[]}_next(i){this.values.push(PT),this.observables.push(i)}_complete(){const
i=this.observables,e=i.length;if(0===e)this.destination.complete();else{this.active=e,this.toRespond=e;for(let
n=0;n<e;n++)this.add(DB(this,i[n],void
0,n))}}notifyComplete(i){0==(this.active-=1)&&this.destination.complete()}notifyNext(i,e,n){const
s=this.values,o=this.toRespond?s[
n]===PT?--this.toRespond:this.toRespond:0;s[n]=e,0===o&&(this.resultSelector?this._tryResultSelector(s):this.destination.next(s.slice()))}_tryResultSelector(i){let
e;try{e=this.resultSelector.apply(this,i)}catch(n){return void
this.destination.error(n)}this.destination.next(e)}}const td=(()=>{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 FT(t,i){let e=!1;return
arguments.length>=2&&(e=!0),function(s){return s.lift(new EB(t,i,e))}}class
EB{constructor(i,e,n=!1){this.accumulator=i,this.seed=e,this.hasSeed=n}call(i,e){return
e.subscribe(new RB(i,this.accumulator,this.seed,this.hasSeed))}}class RB extends
yt{constructor(i,e,n,s){super(i),this.accumulator=e,this._seed=n,this.hasSeed=s,this.index=0}get
seed(){return this._seed}set
seed(i){this.hasSeed=!0,this._seed=i}_next(i){if(this.hasSeed)return
this._tryNext(i);this.seed=i,this.destination.next(i)}_tryNext(i){cons
t e=this.index++;let
n;try{n=this.accumulator(this.seed,i,e)}catch(s){this.destination.error(s)}this.seed=n,this.destination.next(n)}}function
Mr(t){return function(e){const n=new LB(t),s=e.lift(n);return n.caught=s}}class
LB{constructor(i){this.selector=i}call(i,e){return e.subscribe(new
OB(i,this.selector,this.caught))}}class OB extends
Zo{constructor(i,e,n){super(i),this.selector=e,this.caught=n}error(i){if(!this.isStopped){let
e;try{e=this.selector(i,this.caught)}catch(r){return void
super.error(r)}this._unsubscribeAndRecycle();const n=new Yo(this);this.add(n);const
s=Xo(e,n);s!==n&&this.add(s)}}}function eg(t){return function(e){return
0===t?lu():e.lift(new AB(t))}}class
AB{constructor(i){if(this.total=i,this.total<0)throw new s0}call(i,e){return
e.subscribe(new PB(i,this.total))}}class PB extends
yt{constructor(i,e){super(i),this.total=e,this.ring=new Array,this.count=0}_next(i){const
e=this.ring,n=this.total,s=this.count++;e.length<n?e.push(i):e[s%n]=i}_complete(){const
i=thi
s.destination;let e=this.count;if(e>0){const
n=this.count>=this.total?this.total:this.count,s=this.ring;for(let
r=0;r<n;r++){const o=e++%n;i.next(s[o])}}i.complete()}}function NT(t=VB){return
i=>i.lift(new FB(t))}class FB{constructor(i){this.errorFactory=i}call(i,e){return
e.subscribe(new NB(i,this.errorFactory))}}class NB extends
yt{constructor(i,e){super(i),this.errorFactory=e,this.hasValue=!1}_next(i){this.hasValue=!0,this.destination.next(i)}_complete(){if(this.hasValue)return
this.destination.complete();{let
i;try{i=this.errorFactory()}catch(e){i=e}this.destination.error(i)}}}function VB(){return
new td}function VT(t=null){return i=>i.lift(new BB(t))}class
BB{constructor(i){this.defaultValue=i}call(i,e){return e.subscribe(new
HB(i,this.defaultValue))}}class HB extends
yt{constructor(i,e){super(i),this.defaultValue=e,this.isEmpty=!0}_next(i){this.isEmpty=!1,this.destination.next(i)}_complete(){this.isEmpty&&this.destination.next(this.defaultValue),this.destination.complete()}}fu
nction No(t,i){const e=arguments.length>=2;return
n=>n.pipe(t?Us((s,r)=>t(s,r,n)):Bl,br(1),e?VT(i):NT(()=>new td))}function
Js(){}function li(t,i,e){return function(s){return s.lift(new GB(t,i,e))}}class
GB{constructor(i,e,n){this.nextOrObserver=i,this.error=e,this.complete=n}call(i,e){return
e.subscribe(new UB(i,this.nextOrObserver,this.error,this.complete))}}class UB extends
yt{constructor(i,e,n,s){super(i),this._tapNext=Js,this._tapError=Js,this._tapComplete=Js,this._tapError=n||Js,this._tapComplete=s||Js,Is(e)?(this._context=this,this._tapNext=e):e&&(this._context=e,this._tapNext=e.next||Js,this._tapError=e.error||Js,this._tapComplete=e.complete||Js)}_next(i){try{this._tapNext.call(this._context,i)}catch(e){return
void
this.destination.error(e)}this.destination.next(i)}_error(i){try{this._tapError.call(this._context,i)}catch(e){return
void
this.destination.error(e)}this.destination.error(i)}_complete(){try{this._tapComplete.call(this._context)}catch(i){return
void this.destinati
on.error(i)}return this.destination.complete()}}class
jB{constructor(i){this.callback=i}call(i,e){return e.subscribe(new
$B(i,this.callback))}}class $B extends yt{constructor(i,e){super(i),this.add(new
Et(e))}}class xs{constructor(i,e){this.id=i,this.url=e}}class tg extends
xs{constructor(i,e,n="imperative",s=null){super(i,e),this.navigationTrigger=n,this.restoredState=s}toString(){return`NavigationStart(id:
${this.id}, url: '${this.url}')`}}class vl extends
xs{constructor(i,e,n){super(i,e),this.urlAfterRedirects=n}toString(){return`NavigationEnd(id:
${this.id}, url: '${this.url}', urlAfterRedirects:
'${this.urlAfterRedirects}')`}}class BT extends
xs{constructor(i,e,n){super(i,e),this.reason=n}toString(){return`NavigationCancel(id:
${this.id}, url: '${this.url}')`}}class WB extends
xs{constructor(i,e,n){super(i,e),this.error=n}toString(){return`NavigationError(id:
${this.id}, url: '${this.url}', error: ${this.error})`}}class KB extends
xs{constructor(i,e,n,s){super(i,e),this.urlAfte
rRedirects=n,this.state=s}toString(){return`RoutesRecognized(id: ${this.id}, url:
'${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state:
${this.state})`}}class QB extends
xs{constructor(i,e,n,s){super(i,e),this.urlAfterRedirects=n,this.state=s}toString(){return`GuardsCheckStart(id:
${this.id}, url: '${this.url}', urlAfterRedirects:
'${this.urlAfterRedirects}', state: ${this.state})`}}class JB extends
xs{constructor(i,e,n,s,r){super(i,e),this.urlAfterRedirects=n,this.state=s,this.shouldActivate=r}toString(){return`GuardsCheckEnd(id:
${this.id}, url: '${this.url}', urlAfterRedirects:
'${this.urlAfterRedirects}', state: ${this.state}, shouldActivate:
${this.shouldActivate})`}}class YB extends
xs{constructor(i,e,n,s){super(i,e),this.urlAfterRedirects=n,this.state=s}toString(){return`ResolveStart(id:
${this.id}, url: '${this.url}', urlAfterRedirects:
'${this.urlAfterRedirects}', state: ${this.state})`}}class ZB extends
xs{constructor(i,e,n,s){super(i,e),this.urlAfterRedire
cts=n,this.state=s}toString(){return`ResolveEnd(id: ${this.id}, url:
'${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state:
${this.state})`}}class
HT{constructor(i){this.route=i}toString(){return`RouteConfigLoadStart(path:
${this.route.path})`}}class
qT{constructor(i){this.route=i}toString(){return`RouteConfigLoadEnd(path:
${this.route.path})`}}class
XB{constructor(i){this.snapshot=i}toString(){return`ChildActivationStart(path:
'${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class
e8{constructor(i){this.snapshot=i}toString(){return`ChildActivationEnd(path:
'${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class
t8{constructor(i){this.snapshot=i}toString(){return`ActivationStart(path:
'${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class
n8{constructor(i){this.snapshot=i}toString(){return`ActivationEnd(path:
'${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class
GT{constructor(i,e,n){t
his.routerEvent=i,this.position=e,this.anchor=n}toString(){return`Scroll(anchor:
'${this.anchor}', position: '${this.position?`${this.position[0]},
${this.position[1]}`:null}')`}}const Ke="primary";class
i8{constructor(i){this.params=i||{}}has(i){return
Object.prototype.hasOwnProperty.call(this.params,i)}get(i){if(this.has(i)){const
e=this.params[i];return Array.isArray(e)?e[0]:e}return
null}getAll(i){if(this.has(i)){const e=this.params[i];return
Array.isArray(e)?e:[e]}return[]}get keys(){return Object.keys(this.params)}}function
Vo(t){return new i8(t)}const UT="ngNavigationCancelingError";function
ng(t){const i=Error("NavigationCancelingError: "+t);return i[UT]=!0,i}function
r8(t,i,e){const
n=e.path.split("/");if(n.length>t.length||"full"===e.pathMatch&&(i.hasChildren()||n.length<t.length))return
null;const s={};for(let r=0;r<n.length;r++){const
o=n[r],u=t[r];if(o.startsWith(":"))s[o.substring(1)]=u;else if(o!==u.path)return
null}return{consumed:t.slice(0,n.length),posParams:s}}fun
ction as(t,i){const e=t?Object.keys(t):void 0,n=i?Object.keys(i):void
0;if(!e||!n||e.length!=n.length)return!1;let s;for(let
r=0;r<e.length;r++)if(s=e[r],!zT(t[s],i[s]))return!1;return!0}function
zT(t,i){if(Array.isArray(t)&&Array.isArray(i)){if(t.length!==i.length)return!1;const
e=[...t].sort(),n=[...i].sort();return e.every((s,r)=>n[r]===s)}return t===i}function
jT(t){return Array.prototype.concat.apply([],t)}function $T(t){return
t.length>0?t[t.length-1]:null}function xn(t,i){for(const e in
t)t.hasOwnProperty(e)&&i(t[e],e)}function ls(t){return
Dh(t)?t:Ra(t)?Mn(Promise.resolve(t)):oe(t)}const l8={exact:function
QT(t,i,e){if(!Ir(t.segments,i.segments)||!nd(t.segments,i.segments,e)||t.numberOfChildren!==i.numberOfChildren)return!1;for(const
n in
i.children)if(!t.children[n]||!QT(t.children[n],i.children[n],e))return!1;return!0},subset:JT},WT={exact:function
c8(t,i){return as(t,i)},subset:function u8(t,i){return
Object.keys(i).length<=Object.keys(t).length&&Object.keys(i).every(e=>z
T(t[e],i[e]))},ignored:()=>!0};function KT(t,i,e){return
l8[e.paths](t.root,i.root,e.matrixParams)&&WT[e.queryParams](t.queryParams,i.queryParams)&&!("exact"===e.fragment&&t.fragment!==i.fragment)}function
JT(t,i,e){return YT(t,i,i.segments,e)}function
YT(t,i,e,n){if(t.segments.length>e.length){const
s=t.segments.slice(0,e.length);return!(!Ir(s,e)||i.hasChildren()||!nd(s,e,n))}if(t.segments.length===e.length){if(!Ir(t.segments,e)||!nd(t.segments,e,n))return!1;for(const
s in
i.children)if(!t.children[s]||!JT(t.children[s],i.children[s],n))return!1;return!0}{const
s=e.slice(0,t.segments.length),r=e.slice(t.segments.length);return!!(Ir(t.segments,s)&&nd(t.segments,s,n)&&t.children[Ke])&&YT(t.children[Ke],i,r,n)}}function
nd(t,i,e){return i.every((n,s)=>WT[e](t[s].parameters,n.parameters))}class
kr{constructor(i,e,n){this.root=i,this.queryParams=e,this.fragment=n}get
queryParamMap(){return
this._queryParamMap||(this._queryParamMap=Vo(this.queryParams)),this._queryParamMap}toString(){ret
urn h8.serialize(this)}}class
Xe{constructor(i,e){this.segments=i,this.children=e,this.parent=null,xn(e,(n,s)=>n.parent=this)}hasChildren(){return
this.numberOfChildren>0}get numberOfChildren(){return
Object.keys(this.children).length}toString(){return id(this)}}class
Cl{constructor(i,e){this.path=i,this.parameters=e}get parameterMap(){return
this._parameterMap||(this._parameterMap=Vo(this.parameters)),this._parameterMap}toString(){return
n2(this)}}function Ir(t,i){return
t.length===i.length&&t.every((e,n)=>e.path===i[n].path)}class ZT{}class
XT{parse(i){const e=new w8(i);return new
kr(e.parseRootSegment(),e.parseQueryParams(),e.parseFragment())}serialize(i){const
e=`/${yl(i.root,!0)}`,n=function g8(t){const i=Object.keys(t).map(e=>{const
n=t[e];return
Array.isArray(n)?n.map(s=>`${sd(e)}=${sd(s)}`).join("&"):`${sd(e)}=${sd(n)}`}).filter(e=>!!e);return
i.length?`?${i.join("&")}`:""}(i.queryParams),s="string"==typeof
i.fragment?`#${function m8(t){return encodeURI(t)}(i.fragment)}`:"";
return`${e}${n}${s}`}}const h8=new XT;function id(t){return
t.segments.map(i=>n2(i)).join("/")}function
yl(t,i){if(!t.hasChildren())return id(t);if(i){const
e=t.children[Ke]?yl(t.children[Ke],!1):"",n=[];return
xn(t.children,(s,r)=>{r!==Ke&&n.push(`${r}:${yl(s,!1)}`)}),n.length>0?`${e}(${n.join("//")})`:e}{const
e=function p8(t,i){let e=[];return
xn(t.children,(n,s)=>{s===Ke&&(e=e.concat(i(n,s)))}),xn(t.children,(n,s)=>{s!==Ke&&(e=e.concat(i(n,s)))}),e}(t,(n,s)=>s===Ke?[yl(t.children[Ke],!1)]:[`${s}:${yl(n,!1)}`]);return
1===Object.keys(t.children).length&&null!=t.children[Ke]?`${id(t)}/${e[0]}`:`${id(t)}/(${e.join("//")})`}}function
e2(t){return
encodeURIComponent(t).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function
sd(t){return e2(t).replace(/%3B/gi,";")}function ig(t){return
e2(t).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function
rd(t){return decodeURIComponent(t)}function t2(t){return
rd(t.replace(/\+/g,"%20"))}funct
ion n2(t){return`${ig(t.path)}${function f8(t){return
Object.keys(t).map(i=>`;${ig(i)}=${ig(t[i])}`).join("")}(t.parameters)}`}const
_8=/^[^\/()?;=#]+/;function od(t){const i=t.match(_8);return i?i[0]:""}const
b8=/^[^=?&#]+/,C8=/^[^&#]+/;class
w8{constructor(i){this.url=i,this.remaining=i}parseRootSegment(){return
this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new
Xe([],{}):new Xe([],this.parseChildren())}parseQueryParams(){const
i={};if(this.consumeOptional("?"))do{this.parseQueryParam(i)}while(this.consumeOptional("&"));return
i}parseFragment(){return
this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(""===this.remaining)return{};this.consumeOptional("/");const
i=[];for(this.peekStartsWith("(")||i.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),i.push(this.parseSegment());let
e={};this.peekStartsWith("/(")&&(this.capture
("/"),e=this.parseParens(!0));let n={};return
this.peekStartsWith("(")&&(n=this.parseParens(!1)),(i.length>0||Object.keys(e).length>0)&&(n[Ke]=new
Xe(i,e)),n}parseSegment(){const
i=od(this.remaining);if(""===i&&this.peekStartsWith(";"))throw
new Error(`Empty path url segment cannot have parameters:
'${this.remaining}'.`);return this.capture(i),new
Cl(rd(i),this.parseMatrixParams())}parseMatrixParams(){const
i={};for(;this.consumeOptional(";");)this.parseParam(i);return
i}parseParam(i){const e=od(this.remaining);if(!e)return;this.capture(e);let
n="";if(this.consumeOptional("=")){const
s=od(this.remaining);s&&(n=s,this.capture(n))}i[rd(e)]=rd(n)}parseQueryParam(i){const
e=function v8(t){const i=t.match(b8);return
i?i[0]:""}(this.remaining);if(!e)return;this.capture(e);let
n="";if(this.consumeOptional("=")){const o=function y8(t){const
i=t.match(C8);return
i?i[0]:""}(this.remaining);o&&(n=o,this.capture(n))}const
s=t2(e),r=t2(n);if(i.hasOwnProperty(s)){let o=i[s];Array.isArray(o)||(o=[
o],i[s]=o),o.push(r)}else i[s]=r}parseParens(i){const
e={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const
n=od(this.remaining),s=this.remaining[n.length];if("/"!==s&&")"!==s&&";"!==s)throw
new Error(`Cannot parse url '${this.url}'`);let
r;n.indexOf(":")>-1?(r=n.substr(0,n.indexOf(":")),this.capture(r),this.capture(":")):i&&(r=Ke);const
o=this.parseChildren();e[r]=1===Object.keys(o).length?o[Ke]:new
Xe([],o),this.consumeOptional("//")}return e}peekStartsWith(i){return
this.remaining.startsWith(i)}consumeOptional(i){return!!this.peekStartsWith(i)&&(this.remaining=this.remaining.substring(i.length),!0)}capture(i){if(!this.consumeOptional(i))throw
new Error(`Expected "${i}".`)}}class s2{constructor(i){this._root=i}get
root(){return this._root.value}parent(i){const e=this.pathFromRoot(i);return
e.length>1?e[e.length-2]:null}children(i){const e=sg(i,this._root);return
e?e.children.map(n=>n.value):[]}firstChild(i){const e=sg(i,this._root);return
e&&e.chil
dren.length>0?e.children[0].value:null}siblings(i){const e=rg(i,this._root);return
e.length<2?[]:e[e.length-2].children.map(s=>s.value).filter(s=>s!==i)}pathFromRoot(i){return
rg(i,this._root).map(e=>e.value)}}function sg(t,i){if(t===i.value)return i;for(const e
of i.children){const n=sg(t,e);if(n)return n}return null}function
rg(t,i){if(t===i.value)return[i];for(const e of i.children){const
n=rg(t,e);if(n.length)return n.unshift(i),n}return[]}class
Ds{constructor(i,e){this.value=i,this.children=e}toString(){return`TreeNode(${this.value})`}}function
Bo(t){const i={};return t&&t.children.forEach(e=>i[e.value.outlet]=e),i}class
r2 extends s2{constructor(i,e){super(i),this.snapshot=e,og(this,i)}toString(){return
this.snapshot.toString()}}function o2(t,i){const e=function T8(t,i){const o=new
ad([],{},{},"",{},Ke,i,null,t.root,-1,{});return new l2("",new
Ds(o,[]))}(t,i),n=new zi([new Cl("",{})]),s=new zi({}),r=new zi({}),o=new
zi({}),u=new zi(""),h=new Er(n,s,o,u,r,Ke,i,e.root);return h.
snapshot=e.root,new r2(new Ds(h,[]),e)}class
Er{constructor(i,e,n,s,r,o,u,h){this.url=i,this.params=e,this.queryParams=n,this.fragment=s,this.data=r,this.outlet=o,this.component=u,this._futureSnapshot=h}get
routeConfig(){return this._futureSnapshot.routeConfig}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=this.params.pipe(et(i=>Vo(i)))),this._paramMap}get
queryParamMap(){return
this._queryParamMap||(this._queryParamMap=this.queryParams.pipe(et(i=>Vo(i)))),this._queryParamMap}toString(){return
this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function
a2(t,i="emptyOnly"){const e=t.pathFromRoot;let
n=0;if("always"!==i)for(n=e.length-1;n>=1;){const
s=e[n],r=e[n-1];if(s.routeConfig&&""===s.r
outeConfig.path)n--;else{if(r.component)break;n--}}return function S8(t){return
t.reduce((i,e)=>({params:Object.assign(Object.assign({},i.params),e.params),data:Object.assign(Object.assign({},i.data),e.data),resolve:Object.assign(Object.assign({},i.resolve),e._resolvedData)}),{params:{},data:{},resolve:{}})}(e.slice(n))}class
ad{constructor(i,e,n,s,r,o,u,h,b,y,w){this.url=i,this.params=e,this.queryParams=n,this.fragment=s,this.data=r,this.outlet=o,this.component=u,this.routeConfig=h,this._urlSegment=b,this._lastPathIndex=y,this._resolve=w}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=Vo(this.params)),this._paramMap}get queryParamMap(){return
this._queryParamMap||(this._queryParamMap=Vo(this.queryParams)),this._
queryParamMap}toString(){return`Route(url:'${this.url.map(n=>n.toString()).join("/")}',
path:'${this.routeConfig?this.routeConfig.path:""}')`}}class l2 extends
s2{constructor(i,e){super(e),this.url=i,og(this,e)}toString(){return
c2(this._root)}}function
og(t,i){i.value._routerState=t,i.children.forEach(e=>og(t,e))}function c2(t){const
i=t.children.length>0?` { ${t.children.map(c2).join(", ")} }
`:"";return`${t.value}${i}`}function ag(t){if(t.snapshot){const
i=t.snapshot,e=t._futureSnapshot;t.snapshot=e,as(i.queryParams,e.queryParams)||t.queryParams.next(e.queryParams),i.fragment!==e.fragment&&t.fragment.next(e.fragment),as(i.params,e.params)||t.params.next(e.params),function
o8(t,i){if(t.length!==i.length)return!1;for(let
e=0;e<t.length;++e)if(!as(t[e],i[e]))return!1;return!0}(i.url,e.url)||t.url.next(e.url),as(i.data,e.data)||t.data.next(e.data)}else
t.snapshot=t._futureSnapshot,t.data.next(t._futureSnapshot.data)}function lg(t,i){const
e=as(t.params,i.params)&&function d8(t,i){ret
urn
Ir(t,i)&&t.every((e,n)=>as(e.parameters,i[n].parameters))}(t.url,i.url);return
e&&!(!t.parent!=!i.parent)&&(!t.parent||lg(t.parent,i.parent))}function
wl(t,i,e){if(e&&t.shouldReuseRoute(i.value,e.value.snapshot)){const
n=e.value;n._futureSnapshot=i.value;const s=function D8(t,i,e){return
i.children.map(n=>{for(const s of
e.children)if(t.shouldReuseRoute(n.value,s.value.snapshot))return wl(t,n,s);return
wl(t,n)})}(t,i,e);return new Ds(n,s)}{if(t.shouldAttach(i.value)){const
r=t.retrieve(i.value);if(null!==r){const o=r.route;return
o.value._futureSnapshot=i.value,o.children=i.children.map(u=>wl(t,u)),o}}const
n=function M8(t){return new Er(new zi(t.url),new zi(t.params),new zi(t.queryParams),new
zi(t.fragment),new
zi(t.data),t.outlet,t.component,t)}(i.value),s=i.children.map(r=>wl(t,r));return new
Ds(n,s)}}function ld(t){return"object"==typeof
t&&null!=t&&!t.outlets&&!t.segmentPath}function
Tl(t){return"object"==typeof t&&null!=t&&t.outlets}function
cg(t,i,e,n,s){let r={};if(n&&xn
(n,(u,h)=>{r[h]=Array.isArray(u)?u.map(b=>`${b}`):`${u}`}),t===i)return new
kr(e,r,s);const o=u2(t,i,e);return new kr(o,r,s)}function u2(t,i,e){const n={};return
xn(t.children,(s,r)=>{n[r]=s===i?e:u2(s,i,e)}),new Xe(t.segments,n)}class
d2{constructor(i,e,n){if(this.isAbsolute=i,this.numberOfDoubleDots=e,this.commands=n,i&&n.length>0&&ld(n[0]))throw
new Error("Root segment cannot have matrix parameters");const
s=n.find(Tl);if(s&&s!==$T(n))throw new Error("{outlets:{}} has to be the last
command")}toRoot(){return
this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class
ug{constructor(i,e,n){this.segmentGroup=i,this.processChildren=e,this.index=n}}function
p2(t,i,e){if(t||(t=new Xe([],{})),0===t.segments.length&&t.hasChildren())return
cd(t,i,e);const n=function O8(t,i,e){let n=0,s=i;const
r={match:!1,pathIndex:0,commandIndex:0};for(;s<t.segments.length;){if(n>=e.length)return
r;const o=t.segments[s],u=e[n];if(Tl(u))break;const
h=`${u}`,b=n<e.length-1?e[n+1]:null;if(s>0&&
void 0===h)break;if(h&&b&&"object"==typeof b&&void
0===b.outlets){if(!m2(h,b,o))return r;n+=2}else{if(!m2(h,{},o))return
r;n++}s++}return{match:!0,pathIndex:s,commandIndex:n}}(t,i,e),s=e.slice(n.commandIndex);if(n.match&&n.pathIndex<t.segments.length){const
r=new Xe(t.segments.slice(0,n.pathIndex),{});return r.children[Ke]=new
Xe(t.segments.slice(n.pathIndex),t.children),cd(r,0,s)}return
n.match&&0===s.length?new
Xe(t.segments,{}):n.match&&!t.hasChildren()?dg(t,i,e):n.match?cd(t,0,s):dg(t,i,e)}function
cd(t,i,e){if(0===e.length)return new Xe(t.segments,{});{const n=function L8(t){return
Tl(t[0])?t[0].outlets:{[Ke]:t}}(e),s={};return xn(n,(r,o)=>{"string"==typeof
r&&(r=[r]),null!==r&&(s[o]=p2(t.children[o],i,r))}),xn(t.children,(r,o)=>{void
0===n[o]&&(s[o]=r)}),new Xe(t.segments,s)}}function dg(t,i,e){const
n=t.segments.slice(0,i);let s=0;for(;s<e.length;){const r=e[s];if(Tl(r)){const
h=A8(r.outlets);return new Xe(n,h)}if(0===s&&ld(e[0])){n.push(new
Cl(t.segments[i].path,h2(e[0]))),s
++;continue}const
o=Tl(r)?r.outlets[Ke]:`${r}`,u=s<e.length-1?e[s+1]:null;o&&u&&ld(u)?(n.push(new
Cl(o,h2(u))),s+=2):(n.push(new Cl(o,{})),s++)}return new Xe(n,{})}function A8(t){const
i={};return xn(t,(e,n)=>{"string"==typeof
e&&(e=[e]),null!==e&&(i[n]=dg(new Xe([],{}),0,e))}),i}function h2(t){const
i={};return xn(t,(e,n)=>i[n]=`${e}`),i}function m2(t,i,e){return
t==e.path&&as(i,e.parameters)}class
F8{constructor(i,e,n,s){this.routeReuseStrategy=i,this.futureState=e,this.currState=n,this.forwardEvent=s}activate(i){const
e=this.futureState._root,n=this.currState?this.currState._root:null;this.deactivateChildRoutes(e,n,i),ag(this.futureState.root),this.activateChildRoutes(e,n,i)}deactivateChildRoutes(i,e,n){const
s=Bo(e);i.children.forEach(r=>{const
o=r.value.outlet;this.deactivateRoutes(r,s[o],n),delete
s[o]}),xn(s,(r,o)=>{this.deactivateRouteAndItsChildren(r,n)})}deactivateRoutes(i,e,n){const
s=i.value,r=e?e.value:null;if(s===r)if(s.component){const
o=n.getContext(s.outlet);o&&this
.deactivateChildRoutes(i,e,o.children)}else this.deactivateChildRoutes(i,e,n);else
r&&this.deactivateRouteAndItsChildren(e,n)}deactivateRouteAndItsChildren(i,e){i.value.component&&this.routeReuseStrategy.shouldDetach(i.value.snapshot)?this.detachAndStoreRouteSubtree(i,e):this.deactivateRouteAndOutlet(i,e)}detachAndStoreRouteSubtree(i,e){const
n=e.getContext(i.value.outlet),s=n&&i.value.component?n.children:e,r=Bo(i);for(const
o of
Object.keys(r))this.deactivateRouteAndItsChildren(r[o],s);if(n&&n.outlet){const
o=n.outlet.detach(),u=n.children.onOutletDeactivated();this.routeReuseStrategy.store(i.value.snapshot,{componentRef:o,route:i,contexts:u})}}deactivateRouteAndOutlet(i,e){const
n=e.getContext(i.value.outlet),s=n&&i.value.component?n.children:e,r=Bo(i);for(const
o of
Object.keys(r))this.deactivateRouteAndItsChildren(r[o],s);n&&n.outlet&&(n.outlet.deactivate(),n.children.onOutletDeactivated(),n.attachRef=null,n.resolver=null,n.route=null)}activateChildRoutes(i,e,n){const
s=Bo(e);i
.children.forEach(r=>{this.activateRoutes(r,s[r.value.outlet],n),this.forwardEvent(new
n8(r.value.snapshot))}),i.children.length&&this.forwardEvent(new
e8(i.value.snapshot))}activateRoutes(i,e,n){const
s=i.value,r=e?e.value:null;if(ag(s),s===r)if(s.component){const
o=n.getOrCreateContext(s.outlet);this.activateChildRoutes(i,e,o.children)}else
this.activateChildRoutes(i,e,n);else if(s.component){const
o=n.getOrCreateContext(s.outlet);if(this.routeReuseStrategy.shouldAttach(s.snapshot)){const
u=this.routeReuseStrategy.retrieve(s.snapshot);this.routeReuseStrategy.store(s.snapshot,null),o.children.onOutletReAttached(u.contexts),o.attachRef=u.componentRef,o.route=u.route.value,o.outlet&&o.outlet.attach(u.componentRef,u.route.value),ag(u.route.value),this.activateChildRoutes(i,null,o.children)}else{const
u=function N8(t){for(let i=t.parent;i;i=i.parent){const
e=i.routeConfig;if(e&&e._loadedConfig)return
e._loadedConfig;if(e&&e.component)return null}return
null}(s.snapshot),h=u?u.module.co
mponentFactoryResolver:null;o.attachRef=null,o.route=s,o.resolver=h,o.outlet&&o.outlet.activateWith(s,h),this.activateChildRoutes(i,null,o.children)}}else
this.activateChildRoutes(i,null,n)}}class
pg{constructor(i,e){this.routes=i,this.module=e}}function
Ys(t){return"function"==typeof t}function Rr(t){return t instanceof kr}const
Sl=Symbol("INITIAL_VALUE");function xl(){return qi(t=>function MB(...t){let
i,e;return Vr(t[t.length-1])&&(e=t.pop()),"function"==typeof
t[t.length-1]&&(i=t.pop()),1===t.length&&Nr(t[0])&&(t=t[0]),Pd(t,e).lift(new
kB(i))}(t.map(i=>i.pipe(br(1),Ju(Sl)))).pipe(FT((i,e)=>{let n=!1;return
e.reduce((s,r,o)=>s!==Sl?s:(r===Sl&&(n=!0),n||!1!==r&&o!==e.length-1&&!Rr(r)?s:r),i)},Sl),Us(i=>i!==Sl),et(i=>Rr(i)?i:!0===i),br(1)))}class
U8{constructor(){this.outlet=null,this.route=null,this.resolver=null,this.children=new
Dl,this.attachRef=null}}class Dl{constructor(){this.contexts=new
Map}onChildOutletCreated(i,e){const n=this.getOrCreateContext(i);n.outlet=e,this.contex
ts.set(i,n)}onChildOutletDestroyed(i){const
e=this.getContext(i);e&&(e.outlet=null,e.attachRef=null)}onOutletDeactivated(){const
i=this.contexts;return this.contexts=new
Map,i}onOutletReAttached(i){this.contexts=i}getOrCreateContext(i){let
e=this.getContext(i);return e||(e=new U8,this.contexts.set(i,e)),e}getContext(i){return
this.contexts.get(i)||null}}let Ml=(()=>{class
t{constructor(e,n,s,r,o){this.parentContexts=e,this.location=n,this.resolver=s,this.changeDetector=o,this.activated=null,this._activatedRoute=null,this.activateEvents=new
H,this.deactivateEvents=new H,this.attachEvents=new H,this.detachEvents=new
H,this.name=r||Ke,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,n){this.activated=e,this._activatedRoute=n,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,n){if(this.isActivated)throw
new Error("Cannot activate an already activated
outlet");this._activatedRoute=e;const
o=(n=n||this.resolver).resolveComponentFactory(e._futureSnapshot.routeConfig.component),u=this.p
arentContexts.getOrCreateContext(this.name).children,h=new
z8(e,u,this.location.injector);this.activated=this.location.createComponent(o,this.location.length,h),this.changeDetector.markForCheck(),this.activateEvents.emit(this.activated.instance)}}return
t.\u0275fac=function(e){return
new(e||t)(D(Dl),D(vi),D(Va),ua("name"),D(rt))},t.\u0275dir=le({type:t,selectors:[["router-outlet"]],outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"]}),t})();class
z8{constructor(i,e,n){this.route=i,this.childContexts=e,this.parent=n}get(i,e){return
i===Er?this.route:i===Dl?this.childContexts:this.parent.get(i,e)}}let f2=(()=>{class
t{}return t.\u0275fac=function(e){return
new(e||t)},t.\u0275cmp=z({type:t,selectors:[["ng-component"]],decls:1,vars:0,template:function(e,n){1&e&&k(0,"router-outlet")},directives:[Ml],encapsulation:2}),t})();function
g2(t,i=""){for(let e=0;e<t.length;e++){const n=t[e];j8(n,$8(i,n))}}function
j8(t
,i){t.children&&g2(t.children,i)}function $8(t,i){return
i?t||i.path?t&&!i.path?`${t}/`:!t&&i.path?i.path:`${t}/${i.path}`:"":t}function
hg(t){const
i=t.children&&t.children.map(hg),e=i?Object.assign(Object.assign({},t),{children:i}):Object.assign({},t);return!e.component&&(i||e.loadChildren)&&e.outlet&&e.outlet!==Ke&&(e.component=f2),e}function
xi(t){return t.outlet||Ke}function _2(t,i){const e=t.filter(n=>xi(n)===i);return
e.push(...t.filter(n=>xi(n)!==i)),e}const
b2={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function
ud(t,i,e){var
n;if(""===i.path)return"full"===i.pathMatch&&(t.hasChildren()||e.length>0)?Object.assign({},b2):{matched:!0,consumedSegments:[],remainingSegments:e,parameters:{},positionalParamSegments:{}};const
r=(i.matcher||r8)(e,t,i);if(!r)return Object.assign({},b2);const
o={};xn(r.posParams,(h,b)=>{o[b]=h.path});const
u=r.consumed.length>0?Object.assign(Object.assign({},o),r.consumed[r.consumed.length-1].paramete
rs):o;return{matched:!0,consumedSegments:r.consumed,remainingSegments:e.slice(r.consumed.length),parameters:u,positionalParamSegments:null!==(n=r.posParams)&&void
0!==n?n:{}}}function
dd(t,i,e,n,s="corrected"){if(e.length>0&&function Q8(t,i,e){return
e.some(n=>pd(t,i,n)&&xi(n)!==Ke)}(t,e,n)){const o=new Xe(i,function
K8(t,i,e,n){const s={};s[Ke]=n,n._sourceSegment=t,n._segmentIndexShift=i.length;for(const
r of e)if(""===r.path&&xi(r)!==Ke){const o=new
Xe([],{});o._sourceSegment=t,o._segmentIndexShift=i.length,s[xi(r)]=o}return s}(t,i,n,new
Xe(e,t.children)));return
o._sourceSegment=t,o._segmentIndexShift=i.length,{segmentGroup:o,slicedSegments:[]}}if(0===e.length&&function
J8(t,i,e){return e.some(n=>pd(t,i,n))}(t,e,n)){const o=new Xe(t.segments,function
W8(t,i,e,n,s,r){const o={};for(const u of n)if(pd(t,e,u)&&!s[xi(u)]){const h=new
Xe([],{});h._sourceSegment=t,h._segmentIndexShift="legacy"===r?t.segments.length:i.length,o[xi(u)]=h}return
Object.assign(Object.assign({},s),o)}(t,i,e,
n,t.children,s));return
o._sourceSegment=t,o._segmentIndexShift=i.length,{segmentGroup:o,slicedSegments:e}}const
r=new Xe(t.segments,t.children);return
r._sourceSegment=t,r._segmentIndexShift=i.length,{segmentGroup:r,slicedSegments:e}}function
pd(t,i,e){return(!(t.hasChildren()||i.length>0)||"full"!==e.pathMatch)&&""===e.path}function
v2(t,i,e,n){return!!(xi(t)===n||n!==Ke&&pd(i,e,t))&&("**"===t.path||ud(i,t,e).matched)}function
C2(t,i,e){return 0===i.length&&!t.children[e]}class
hd{constructor(i){this.segmentGroup=i||null}}class
y2{constructor(i){this.urlTree=i}}function kl(t){return tl(new hd(t))}function
w2(t){return tl(new y2(t))}function Y8(t){return tl(new Error(`Only absolute redirects can
have named outlets. redirectTo: '${t}'`))}class
eH{constructor(i,e,n,s,r){this.configLoader=e,this.urlSerializer=n,this.urlTree=s,this.config=r,this.allowRedirects=!0,this.ngModule=i.get(_s)}apply(){const
i=dd(this.urlTree.root,[],[],this.config).segmentGroup,e=new Xe(i.segments,i.children)
;return
this.expandSegmentGroup(this.ngModule,this.config,e,Ke).pipe(et(r=>this.createUrlTree(mg(r),this.urlTree.queryParams,this.urlTree.fragment))).pipe(Mr(r=>{if(r
instanceof y2)return this.allowRedirects=!1,this.match(r.urlTree);throw r instanceof
hd?this.noMatchError(r):r}))}match(i){return
this.expandSegmentGroup(this.ngModule,this.config,i.root,Ke).pipe(et(s=>this.createUrlTree(mg(s),i.queryParams,i.fragment))).pipe(Mr(s=>{throw
s instanceof hd?this.noMatchError(s):s}))}noMatchError(i){return new Error(`Cannot match
any routes. URL Segment: '${i.segmentGroup}'`)}createUrlTree(i,e,n){const
s=i.segments.length>0?new Xe([],{[Ke]:i}):i;return new
kr(s,e,n)}expandSegmentGroup(i,e,n,s){return
0===n.segments.length&&n.hasChildren()?this.expandChildren(i,e,n).pipe(et(r=>new
Xe([],r))):this.expandSegment(i,n,e,n.segments,s,!0)}expandChildren(i,e,n){const
s=[];for(const r of
Object.keys(n.children))"primary"===r?s.unshift(r):s.push(r);return
Mn(s).pipe(_r(r=>{const o=n.children[r],u=_2
(e,r);return
this.expandSegmentGroup(i,u,o,r).pipe(et(h=>({segment:h,outlet:r})))}),FT((r,o)=>(r[o.outlet]=o.segment,r),{}),function
qB(t,i){const e=arguments.length>=2;return
n=>n.pipe(t?Us((s,r)=>t(s,r,n)):Bl,eg(1),e?VT(i):NT(()=>new
td))}())}expandSegment(i,e,n,s,r,o){return
Mn(n).pipe(_r(u=>this.expandSegmentAgainstRoute(i,e,n,u,s,r,o).pipe(Mr(b=>{if(b
instanceof hd)return oe(null);throw b}))),No(u=>!!u),Mr((u,h)=>{if(u instanceof
td||"EmptyError"===u.name)return C2(e,s,r)?oe(new Xe([],{})):kl(e);throw
u}))}expandSegmentAgainstRoute(i,e,n,s,r,o,u){return v2(s,e,r,o)?void
0===s.redirectTo?this.matchSegmentAgainstRoute(i,e,s,r,o):u&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(i,e,n,s,r,o):kl(e):kl(e)}expandSegmentAgainstRouteUsingRedirect(i,e,n,s,r,o){return"**"===s.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(i,n,s,o):this.expandRegularSegmentAgainstRouteUsingRedirect(i,e,n,s,r,o)}expandWildCardWithParamsAgainstRouteUsingRedirect(i,e,n,s){const
r=this.applyRedirectCommands([],n.redirectTo,{});return
n.redirectTo.startsWith("/")?w2(r):this.lineralizeSegments(n,r).pipe(yn(o=>{const
u=new Xe(o,{});return
this.expandSegment(i,u,e,o,s,!1)}))}expandRegularSegmentAgainstRouteUsingRedirect(i,e,n,s,r,o){const{matched:u,consumedSegments:h,remainingSegments:b,positionalParamSegments:y}=ud(e,s,r);if(!u)return
kl(e);const w=this.applyRedirectCommands(h,s.redirectTo,y);return
s.redirectTo.startsWith("/")?w2(w):this.lineralizeSegments(s,w).pipe(yn(M=>this.expandSegment(i,e,n,M.concat(b),o,!1)))}matchSegmentAgainstRoute(i,e,n,s,r){if("**"===n.path)return
n.loadChildren?(n._loadedConfig?oe(n._loadedConfig):this.configLoader.load(i.injector,n)).pipe(et(w=>(n._loadedConfig=w,new
Xe(s,{})))):oe(new
Xe(s,{}));const{matched:o,consumedSegments:u,remainingSegments:h}=ud(e,n,s);return
o?this.getChildConfig(i,n,s).pipe(yn(y=>{const
w=y.module,M=y.routes,{segmentGroup:E,slicedSegments:L}=dd(e,u,h,M),O=new
Xe(E.segments,E.children);if(0===L.length&&O
.hasChildren())return this.expandChildren(w,M,O).pipe(et(J=>new
Xe(u,J)));if(0===M.length&&0===L.length)return oe(new Xe(u,{}));const
N=xi(n)===r;return this.expandSegment(w,O,M,L,N?Ke:r,!0).pipe(et(P=>new
Xe(u.concat(P.segments),P.children)))})):kl(e)}getChildConfig(i,e,n){return
e.children?oe(new pg(e.children,i)):e.loadChildren?void
0!==e._loadedConfig?oe(e._loadedConfig):this.runCanLoadGuards(i.injector,e,n).pipe(yn(s=>s?this.configLoader.load(i.injector,e).pipe(et(r=>(e._loadedConfig=r,r))):function
Z8(t){return tl(ng(`Cannot load children because the guard of the route "path:
'${t.path}'" returned false`))}(e))):oe(new
pg([],i))}runCanLoadGuards(i,e,n){const s=e.canLoad;if(!s||0===s.length)return
oe(!0);const r=s.map(o=>{const u=i.get(o);let h;if(function B8(t){return
t&&Ys(t.canLoad)}(u))h=u.canLoad(e,n);else{if(!Ys(u))throw new Error("Invalid
CanLoad guard");h=u(e,n)}return ls(h)});return
oe(r).pipe(xl(),li(o=>{if(!Rr(o))return;const u=ng(`Redirecting to
"${this.urlSerialize
r.serialize(o)}"`);throw u.url=o,u}),et(o=>!0===o))}lineralizeSegments(i,e){let
n=[],s=e.root;for(;;){if(n=n.concat(s.segments),0===s.numberOfChildren)return
oe(n);if(s.numberOfChildren>1||!s.children[Ke])return
Y8(i.redirectTo);s=s.children[Ke]}}applyRedirectCommands(i,e,n){return
this.applyRedirectCreatreUrlTree(e,this.urlSerializer.parse(e),i,n)}applyRedirectCreatreUrlTree(i,e,n,s){const
r=this.createSegmentGroup(i,e.root,n,s);return new
kr(r,this.createQueryParams(e.queryParams,this.urlTree.queryParams),e.fragment)}createQueryParams(i,e){const
n={};return xn(i,(s,r)=>{if("string"==typeof
s&&s.startsWith(":")){const u=s.substring(1);n[r]=e[u]}else
n[r]=s}),n}createSegmentGroup(i,e,n,s){const r=this.createSegments(i,e.segments,n,s);let
o={};return xn(e.children,(u,h)=>{o[h]=this.createSegmentGroup(i,u,n,s)}),new
Xe(r,o)}createSegments(i,e,n,s){return
e.map(r=>r.path.startsWith(":")?this.findPosParam(i,r,s):this.findOrReturn(r,n))}findPosParam(i,e,n){const
s=n[e.path.substring(1)];
if(!s)throw new Error(`Cannot redirect to '${i}'. Cannot find
'${e.path}'.`);return s}findOrReturn(i,e){let n=0;for(const s of
e){if(s.path===i.path)return e.splice(n),s;n++}return i}}function mg(t){const
i={};for(const n of Object.keys(t.children)){const
r=mg(t.children[n]);(r.segments.length>0||r.hasChildren())&&(i[n]=r)}return
function tH(t){if(1===t.numberOfChildren&&t.children[Ke]){const
i=t.children[Ke];return new Xe(t.segments.concat(i.segments),i.children)}return t}(new
Xe(t.segments,i))}class
T2{constructor(i){this.path=i,this.route=this.path[this.path.length-1]}}class
md{constructor(i,e){this.component=i,this.route=e}}function iH(t,i,e){const
n=t._root;return Il(n,i?i._root:null,e,[n.value])}function fd(t,i,e){const n=function
rH(t){if(!t)return null;for(let i=t.parent;i;i=i.parent){const
e=i.routeConfig;if(e&&e._loadedConfig)return e._loadedConfig}return
null}(i);return(n?n.module.injector:e).get(t)}function
Il(t,i,e,n,s={canDeactivateChecks:[],canActivateChecks:[]}){cons
t r=Bo(i);return t.children.forEach(o=>{(function
oH(t,i,e,n,s={canDeactivateChecks:[],canActivateChecks:[]}){const
r=t.value,o=i?i.value:null,u=e?e.getContext(t.value.outlet):null;if(o&&r.routeConfig===o.routeConfig){const
h=function aH(t,i,e){if("function"==typeof e)return
e(t,i);switch(e){case"pathParamsChange":return!Ir(t.url,i.url);case"pathParamsOrQueryParamsChange":return!Ir(t.url,i.url)||!as(t.queryParams,i.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!lg(t,i)||!as(t.queryParams,i.queryParams);default:return!lg(t,i)}}(o,r,r.routeConfig.runGuardsAndResolvers);h?s.canActivateChecks.push(new
T2(n)):(r.data=o.data,r._resolvedData=o._resolvedData),Il(t,i,r.component?u?u.children:null:e,n,s),h&&u&&u.outlet&&u.outlet.isActivated&&s.canDeactivateChecks.push(new
md(u.outlet.component,o))}else o&&El(i,u,s),s.canActivateChecks.push(new
T2(n)),Il(t,null,r.component?u?u.children:null:e,n,s)})(o,r[o.value.outlet],e,n.concat([o.value]),s),delete
r[o.value.outlet
]}),xn(r,(o,u)=>El(o,e.getContext(u),s)),s}function El(t,i,e){const
n=Bo(t),s=t.value;xn(n,(r,o)=>{El(r,s.component?i?i.children.getContext(o):null:i,e)}),e.canDeactivateChecks.push(new
md(s.component&&i&&i.outlet&&i.outlet.isActivated?i.outlet.component:null,s))}class
gH{}function S2(t){return new Je(i=>i.error(t))}class
bH{constructor(i,e,n,s,r,o){this.rootComponentType=i,this.config=e,this.urlTree=n,this.url=s,this.paramsInheritanceStrategy=r,this.relativeLinkResolution=o}recognize(){const
i=dd(this.urlTree.root,[],[],this.config.filter(o=>void
0===o.redirectTo),this.relativeLinkResolution).segmentGroup,e=this.processSegmentGroup(this.config,i,Ke);if(null===e)return
null;const n=new
ad([],Object.freeze({}),Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,{},Ke,this.rootComponentType,null,this.urlTree.root,-1,{}),s=new
Ds(n,e),r=new l2(this.url,s);return
this.inheritParamsAndData(r._root),r}inheritParamsAndData(i){const
e=i.value,n=a2(e,this.paramsIn
heritanceStrategy);e.params=Object.freeze(n.params),e.data=Object.freeze(n.data),i.children.forEach(s=>this.inheritParamsAndData(s))}processSegmentGroup(i,e,n){return
0===e.segments.length&&e.hasChildren()?this.processChildren(i,e):this.processSegment(i,e,e.segments,n)}processChildren(i,e){const
n=[];for(const r of Object.keys(e.children)){const
o=e.children[r],u=_2(i,r),h=this.processSegmentGroup(u,o,r);if(null===h)return
null;n.push(...h)}const s=x2(n);return function
vH(t){t.sort((i,e)=>i.value.outlet===Ke?-1:e.value.outlet===Ke?1:i.value.outlet.localeCompare(e.value.outlet))}(s),s}processSegment(i,e,n,s){for(const
r of i){const o=this.processSegmentAgainstRoute(r,e,n,s);if(null!==o)return o}return
C2(e,n,s)?[]:null}processSegmentAgainstRoute(i,e,n,s){if(i.redirectTo||!v2(i,e,n,s))return
null;let r,o=[],u=[];if("**"===i.path){const
E=n.length>0?$T(n).parameters:{};r=new
ad(n,E,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,k2(i),xi(i),i.component,
i,D2(e),M2(e)+n.length,I2(i))}else{const E=ud(e,i,n);if(!E.matched)return
null;o=E.consumedSegments,u=E.remainingSegments,r=new
ad(o,E.parameters,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,k2(i),xi(i),i.component,i,D2(e),M2(e)+o.length,I2(i))}const
h=function CH(t){return
t.children?t.children:t.loadChildren?t._loadedConfig.routes:[]}(i),{segmentGroup:b,slicedSegments:y}=dd(e,o,u,h.filter(E=>void
0===E.redirectTo),this.relativeLinkResolution);if(0===y.length&&b.hasChildren()){const
E=this.processChildren(h,b);return null===E?null:[new
Ds(r,E)]}if(0===h.length&&0===y.length)return[new Ds(r,[])];const
w=xi(i)===s,M=this.processSegment(h,b,y,w?Ke:s);return null===M?null:[new
Ds(r,M)]}}function yH(t){const i=t.value.routeConfig;return
i&&""===i.path&&void 0===i.redirectTo}function x2(t){const
i=[],e=new Set;for(const n of t){if(!yH(n)){i.push(n);continue}const
s=i.find(r=>n.value.routeConfig===r.value.routeConfig);void
0!==s?(s.children.push(...n.chi
ldren),e.add(s)):i.push(n)}for(const n of e){const s=x2(n.children);i.push(new
Ds(n.value,s))}return i.filter(n=>!e.has(n))}function D2(t){let
i=t;for(;i._sourceSegment;)i=i._sourceSegment;return i}function M2(t){let
i=t,e=i._segmentIndexShift?i._segmentIndexShift:0;for(;i._sourceSegment;)i=i._sourceSegment,e+=i._segmentIndexShift?i._segmentIndexShift:0;return
e-1}function k2(t){return t.data||{}}function I2(t){return t.resolve||{}}function
E2(t){return[...Object.keys(t),...Object.getOwnPropertySymbols(t)]}function fg(t){return
qi(i=>{const e=t(i);return e?Mn(e).pipe(et(()=>i)):oe(i)})}class IH extends class
kH{shouldDetach(i){return!1}store(i,e){}shouldAttach(i){return!1}retrieve(i){return
null}shouldReuseRoute(i,e){return i.routeConfig===e.routeConfig}}{}const gg=new
be("ROUTES");class
R2{constructor(i,e,n,s){this.injector=i,this.compiler=e,this.onLoadStartListener=n,this.onLoadEndListener=s}load(i,e){if(e._loader$)return
e._loader$;this.onLoadStartListener&&this.onLoadStartListen
er(e);const
s=this.loadModuleFactory(e.loadChildren).pipe(et(r=>{this.onLoadEndListener&&this.onLoadEndListener(e);const
o=r.create(i);return new pg(jT(o.injector.get(gg,void
0,xe.Self|xe.Optional)).map(hg),o)}),Mr(r=>{throw e._loader$=void 0,r}));return
e._loader$=new Fg(s,()=>new ct).pipe(Fd()),e._loader$}loadModuleFactory(i){return
ls(i()).pipe(yn(e=>e instanceof
iC?oe(e):Mn(this.compiler.compileModuleAsync(e))))}}class
RH{shouldProcessUrl(i){return!0}extract(i){return i}merge(i,e){return i}}function
LH(t){throw t}function OH(t,i,e){return i.parse("/")}function L2(t,i){return
oe(null)}const
AH={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},PH={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};let
It=(()=>{class
t{constructor(e,n,s,r,o,u,h){this.rootComponentType=e,this.urlSerializer=n,this.rootContexts=s,this.location=r,this.config=h,this.lastSuccessfulNavigation=null,this.currentNavigation=null,this.disposed=!1,this.nav
igationId=0,this.currentPageId=0,this.isNgZoneEnabled=!1,this.events=new
ct,this.errorHandler=LH,this.malformedUriErrorHandler=OH,this.navigated=!1,this.lastSuccessfulId=-1,this.hooks={beforePreactivation:L2,afterPreactivation:L2},this.urlHandlingStrategy=new
RH,this.routeReuseStrategy=new
IH,this.onSameUrlNavigation="ignore",this.paramsInheritanceStrategy="emptyOnly",this.urlUpdateStrategy="deferred",this.relativeLinkResolution="corrected",this.canceledNavigationResolution="replace",this.ngModule=o.get(_s),this.console=o.get(DR);const
w=o.get(nt);this.isNgZoneEnabled=w instanceof
nt&&nt.isInAngularZone(),this.resetConfig(h),this.currentUrlTree=function
a8(){return new kr(new
Xe([],{}),{},null)}(),this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.configLoader=new
R2(o,u,M=>this.triggerEvent(new HT(M)),M=>this.triggerEvent(new
qT(M))),this.routerState=o2(this.currentUrlTree,this.rootComponentType),this.transitions=new
zi({id:0,targetPageId:0,currentUrlT
ree: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 n=this.events;return
e.pipe(Us(s=>0!==s.id),et(s=>Object.assign(Object.assign({},s),{extractedUrl:this.urlHandlingStrategy.extract(s.rawUrl)})),qi(s=>{let
r=!1,o=!1;return
oe(s).pipe(li(u=>{this.currentNavigation={id:u.id,initialUrl:u.currentRawUrl,extractedU
rl:u.extractedUrl,trigger:u.source,extras:u.extras,previousNavigation:this.lastSuccessfulNavigation?Object.assign(Object.assign({},this.lastSuccessfulNavigation),{previousNavigation:null}):null}}),qi(u=>{const
h=this.browserUrlTree.toString(),b=!this.navigated||u.extractedUrl.toString()!==h||h!==this.currentUrlTree.toString();if(("reload"===this.onSameUrlNavigation||b)&&this.urlHandlingStrategy.shouldProcessUrl(u.rawUrl))return
O2(u.source)&&(this.browserUrlTree=u.extractedUrl),oe(u).pipe(qi(w=>{const
M=this.transitions.getValue();return n.next(new
tg(w.id,this.serializeUrl(w.extractedUrl),w.source,w.restoredState)),M!==this.transitions.getValue()?Io:Promise.resolve(w)}),function
nH(t,i,e,n){return qi(s=>function X8(t,i,e,n,s){return new
eH(t,i,e,n,s).apply()}(t,i,e,s.extractedUrl,n).pipe(et(r=>Object.assign(Object.assign({},s),{urlAfterRedirects:r}))))}(this.ngModule.injector,this.configLoader,this.urlSerializer,this.config),li(w=>{this.currentNavigation=Object.assign(Object.assign
({},this.currentNavigation),{finalUrl:w.urlAfterRedirects})}),function
wH(t,i,e,n,s){return yn(r=>function
_H(t,i,e,n,s="emptyOnly",r="legacy"){try{const o=new
bH(t,i,e,n,s,r).recognize();return null===o?S2(new gH):oe(o)}catch(o){return
S2(o)}}(t,i,r.urlAfterRedirects,e(r.urlAfterRedirects),n,s).pipe(et(o=>Object.assign(Object.assign({},r),{targetSnapshot:o}))))}(this.rootComponentType,this.config,w=>this.serializeUrl(w),this.paramsInheritanceStrategy,this.relativeLinkResolution),li(w=>{if("eager"===this.urlUpdateStrategy){if(!w.extras.skipLocationChange){const
E=this.urlHandlingStrategy.merge(w.urlAfterRedirects,w.rawUrl);this.setBrowserUrl(E,w)}this.browserUrlTree=w.urlAfterRedirects}const
M=new
KB(w.id,this.serializeUrl(w.extractedUrl),this.serializeUrl(w.urlAfterRedirects),w.targetSnapshot);n.next(M)}));if(b&&this.rawUrlTree&&this.urlHandlingStrategy.shouldProcessUrl(this.rawUrlTree)){const{id:M,extractedUrl:E,source:L,restoredState:O,extras:N}=u,G=new
tg(M,this.serializeUrl(E),
L,O);n.next(G);const P=o2(E,this.rootComponentType).snapshot;return
oe(Object.assign(Object.assign({},u),{targetSnapshot:P,urlAfterRedirects:E,extras:Object.assign(Object.assign({},N),{skipLocationChange:!1,replaceUrl:!1})}))}return
this.rawUrlTree=u.rawUrl,u.resolve(null),Io}),fg(u=>{const{targetSnapshot:h,id:b,extractedUrl:y,rawUrl:w,extras:{skipLocationChange:M,replaceUrl:E}}=u;return
this.hooks.beforePreactivation(h,{navigationId:b,appliedUrlTree:y,rawUrlTree:w,skipLocationChange:!!M,replaceUrl:!!E})}),li(u=>{const
h=new
QB(u.id,this.serializeUrl(u.extractedUrl),this.serializeUrl(u.urlAfterRedirects),u.targetSnapshot);this.triggerEvent(h)}),et(u=>Object.assign(Object.assign({},u),{guards:iH(u.targetSnapshot,u.currentSnapshot,this.rootContexts)})),function
lH(t,i){return
yn(e=>{const{targetSnapshot:n,currentSnapshot:s,guards:{canActivateChecks:r,canDeactivateChecks:o}}=e;return
0===o.length&&0===r.length?oe(Object.assign(Object.assign({},e),{guardsResult:!0})):function
cH(t,i,e,n
){return Mn(t).pipe(yn(s=>function fH(t,i,e,n,s){const
r=i&&i.routeConfig?i.routeConfig.canDeactivate:null;return
r&&0!==r.length?oe(r.map(u=>{const h=fd(u,i,s);let b;if(function G8(t){return
t&&Ys(t.canDeactivate)}(h))b=ls(h.canDeactivate(t,i,e,n));else{if(!Ys(h))throw new
Error("Invalid CanDeactivate guard");b=ls(h(t,i,e,n))}return
b.pipe(No())})).pipe(xl()):oe(!0)}(s.component,s.route,e,i,n)),No(s=>!0!==s,!0))}(o,n,s,t).pipe(yn(u=>u&&function
V8(t){return"boolean"==typeof t}(u)?function uH(t,i,e,n){return
Mn(i).pipe(_r(s=>el(function pH(t,i){return null!==t&&i&&i(new
XB(t)),oe(!0)}(s.route.parent,n),function dH(t,i){return
null!==t&&i&&i(new t8(t)),oe(!0)}(s.route,n),function mH(t,i,e){const
n=i[i.length-1],r=i.slice(0,i.length-1).reverse().map(o=>function sH(t){const
i=t.routeConfig?t.routeConfig.canActivateChild:null;return
i&&0!==i.length?{node:t,guards:i}:null}(o)).filter(o=>null!==o).map(o=>cu(()=>oe(o.guards.map(h=>{const
b=fd(h,o.node,e);let y;if(function q8(t){return t&&Y
s(t.canActivateChild)}(b))y=ls(b.canActivateChild(n,t));else{if(!Ys(b))throw new
Error("Invalid CanActivateChild guard");y=ls(b(n,t))}return
y.pipe(No())})).pipe(xl())));return oe(r).pipe(xl())}(t,s.path,e),function hH(t,i,e){const
n=i.routeConfig?i.routeConfig.canActivate:null;if(!n||0===n.length)return oe(!0);const
s=n.map(r=>cu(()=>{const o=fd(r,i,e);let u;if(function H8(t){return
t&&Ys(t.canActivate)}(o))u=ls(o.canActivate(i,t));else{if(!Ys(o))throw new
Error("Invalid CanActivate guard");u=ls(o(i,t))}return u.pipe(No())}));return
oe(s).pipe(xl())}(t,s.route,e))),No(s=>!0!==s,!0))}(n,r,t,i):oe(u)),et(u=>Object.assign(Object.assign({},e),{guardsResult:u})))})}(this.ngModule.injector,u=>this.triggerEvent(u)),li(u=>{if(Rr(u.guardsResult)){const
b=ng(`Redirecting to "${this.serializeUrl(u.guardsResult)}"`);throw
b.url=u.guardsResult,b}const h=new
JB(u.id,this.serializeUrl(u.extractedUrl),this.serializeUrl(u.urlAfterRedirects),u.targetSnapshot,!!u.guardsResult);this.triggerEvent(h)}),
Us(u=>!!u.guardsResult||(this.restoreHistory(u),this.cancelNavigationTransition(u,""),!1)),fg(u=>{if(u.guards.canActivateChecks.length)return
oe(u).pipe(li(h=>{const b=new
YB(h.id,this.serializeUrl(h.extractedUrl),this.serializeUrl(h.urlAfterRedirects),h.targetSnapshot);this.triggerEvent(b)}),qi(h=>{let
b=!1;return oe(h).pipe(function TH(t,i){return
yn(e=>{const{targetSnapshot:n,guards:{canActivateChecks:s}}=e;if(!s.length)return
oe(e);let r=0;return Mn(s).pipe(_r(o=>function SH(t,i,e,n){return function
xH(t,i,e,n){const s=E2(t);if(0===s.length)return oe({});const r={};return
Mn(s).pipe(yn(o=>function DH(t,i,e,n){const s=fd(t,i,n);return
ls(s.resolve?s.resolve(i,e):s(i,e))}(t[o],i,e,n).pipe(li(u=>{r[o]=u}))),eg(1),yn(()=>E2(r).length===s.length?oe(r):Io))}(t._resolve,t,i,n).pipe(et(r=>(t._resolvedData=r,t.data=Object.assign(Object.assign({},t.data),a2(t,e).resolve),null)))}(o.route,n,t,i)),li(()=>r++),eg(1),yn(o=>r===s.length?oe(e):Io))})}(this.paramsInheritanceStrategy,this.ngModul
e.injector),li({next:()=>b=!0,complete:()=>{b||(this.restoreHistory(h),this.cancelNavigationTransition(h,"At
least one route resolver didn't emit any value."))}}))}),li(h=>{const b=new
ZB(h.id,this.serializeUrl(h.extractedUrl),this.serializeUrl(h.urlAfterRedirects),h.targetSnapshot);this.triggerEvent(b)}))}),fg(u=>{const{targetSnapshot:h,id:b,extractedUrl:y,rawUrl:w,extras:{skipLocationChange:M,replaceUrl:E}}=u;return
this.hooks.afterPreactivation(h,{navigationId:b,appliedUrlTree:y,rawUrlTree:w,skipLocationChange:!!M,replaceUrl:!!E})}),et(u=>{const
h=function x8(t,i,e){const n=wl(t,i._root,e?e._root:void 0);return new
r2(n,i)}(this.routeReuseStrategy,u.targetSnapshot,u.currentRouterState);return
Object.assign(Object.assign({},u),{targetRouterState:h})}),li(u=>{this.currentUrlTree=u.urlAfterRedirects,this.rawUrlTree=this.urlHandlingStrategy.merge(u.urlAfterRedirects,u.rawUrl),this.routerState=u.targetRouterState,"deferred"===this.urlUpdateStrategy&&(u.extras.skipLocationChange||this.
setBrowserUrl(this.rawUrlTree,u),this.browserUrlTree=u.urlAfterRedirects)}),((t,i,e)=>et(n=>(new
F8(i,n.targetRouterState,n.currentRouterState,e).activate(t),n)))(this.rootContexts,this.routeReuseStrategy,u=>this.triggerEvent(u)),li({next(){r=!0},complete(){r=!0}}),function
zB(t){return i=>i.lift(new jB(t))}(()=>{var
u;r||o||this.cancelNavigationTransition(s,`Navigation ID ${s.id} is not equal to the
current navigation id ${this.navigationId}`),(null===(u=this.currentNavigation)||void
0===u?void
0:u.id)===s.id&&(this.currentNavigation=null)}),Mr(u=>{if(o=!0,function
s8(t){return t&&t[UT]}(u)){const
h=Rr(u.url);h||(this.navigated=!0,this.restoreHistory(s,!0));const b=new
BT(s.id,this.serializeUrl(s.extractedUrl),u.message);n.next(b),h?setTimeout(()=>{const
y=this.urlHandlingStrategy.merge(u.url,this.rawUrlTree),w={skipLocationChange:s.extras.skipLocationChange,replaceUrl:"eager"===this.urlUpdateStrategy||O2(s.source)};this.scheduleNavigation(y,"imperative",null,w,{resolve:s.resolve,r
eject:s.reject,promise:s.promise})},0):s.resolve(!1)}else{this.restoreHistory(s,!0);const
h=new
WB(s.id,this.serializeUrl(s.extractedUrl),u);n.next(h);try{s.resolve(this.errorHandler(u))}catch(b){s.reject(b)}}return
Io}))}))}resetRootComponentType(e){this.rootComponentType=e,this.routerState.root.component=this.rootComponentType}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
n="popstate"===e.type?"popstate":"hashchange";"popstate"===n&&setTimeout(()=>{var
s;const r={replaceUrl:!0},o=(null===(s=e.state)||void 0===s?void
0:s.navigationId)?e.state:null;if(o){const h=Object.assign({},o);delete
h.navigationId,delete
h.\u0275routerPageId,0!==Object.keys(h).length&&(r.state=h)}const u=this
.parseUrl(e.url);this.scheduleNavigation(u,n,o,r)},0)}))}get url(){return
this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return
this.currentNavigation}triggerEvent(e){this.events.next(e)}resetConfig(e){g2(e),this.config=e.map(hg),this.navigated=!1,this.lastSuccessfulId=-1}ngOnDestroy(){this.dispose()}dispose(){this.transitions.complete(),this.locationSubscription&&(this.locationSubscription.unsubscribe(),this.locationSubscription=void
0),this.disposed=!0}createUrlTree(e,n={}){const{relativeTo:s,queryParams:r,fragment:o,queryParamsHandling:u,preserveFragment:h}=n,b=s||this.routerState.root,y=h?this.currentUrlTree.fragment:o;let
w=null;switch(u){case"merge":w=Object.assign(Object.assign({},this.currentUrlTree.queryParams),r);break;case"preserve":w=this.currentUrlTree.queryParams;break;default:w=r||null}return
null!==w&&(w=this.removeEmptyProps(w)),function
k8(t,i,e,n,s){if(0===e.length)return cg(i.root,i.root,i.root,n,s);const r=function
I8(t){if("string"==typeof t[0]&&
1===t.length&&"/"===t[0])return new d2(!0,0,t);let i=0,e=!1;const
n=t.reduce((s,r,o)=>{if("object"==typeof
r&&null!=r){if(r.outlets){const u={};return
xn(r.outlets,(h,b)=>{u[b]="string"==typeof
h?h.split("/"):h}),[...s,{outlets:u}]}if(r.segmentPath)return[...s,r.segmentPath]}return"string"!=typeof
r?[...s,r]:0===o?(r.split("/").forEach((u,h)=>{0==h&&"."===u||(0==h&&""===u?e=!0:".."===u?i++:""!=u&&s.push(u))}),s):[...s,r]},[]);return
new d2(e,i,n)}(e);if(r.toRoot())return cg(i.root,i.root,new Xe([],{}),n,s);const
o=function E8(t,i,e){if(t.isAbsolute)return new
ug(i.root,!0,0);if(-1===e.snapshot._lastPathIndex){const r=e.snapshot._urlSegment;return
new ug(r,r===i.root,0)}const n=ld(t.commands[0])?0:1;return function R8(t,i,e){let
n=t,s=i,r=e;for(;r>s;){if(r-=s,n=n.parent,!n)throw new Error("Invalid number of
'../'");s=n.segments.length}return new
ug(n,!1,s-r)}(e.snapshot._urlSegment,e.snapshot._lastPathIndex+n,t.numberOfDoubleDots)}(r,i,t),u=o.processChildren?cd(o.segmentGroup,o.index
,r.commands):p2(o.segmentGroup,o.index,r.commands);return
cg(i.root,o.segmentGroup,u,n,s)}(b,this.currentUrlTree,e,w,null!=y?y:null)}navigateByUrl(e,n={skipLocationChange:!1}){const
s=Rr(e)?e:this.parseUrl(e),r=this.urlHandlingStrategy.merge(s,this.rawUrlTree);return
this.scheduleNavigation(r,"imperative",null,n)}navigate(e,n={skipLocationChange:!1}){return
function FH(t){for(let i=0;i<t.length;i++){const e=t[i];if(null==e)throw new Error(`The
requested path contains ${e} segment at index
${i}`)}}(e),this.navigateByUrl(this.createUrlTree(e,n),n)}serializeUrl(e){return
this.urlSerializer.serialize(e)}parseUrl(e){let
n;try{n=this.urlSerializer.parse(e)}catch(s){n=this.malformedUriErrorHandler(s,this.urlSerializer,e)}return
n}isActive(e,n){let
s;if(s=!0===n?Object.assign({},AH):!1===n?Object.assign({},PH):n,Rr(e))return
KT(this.currentUrlTree,e,s);const r=this.parseUrl(e);return
KT(this.currentUrlTree,r,s)}removeEmptyProps(e){return
Object.keys(e).reduce((n,s)=>{const r=e[s];return nul
l!=r&&(n[s]=r),n},{})}processNavigations(){this.navigations.subscribe(e=>{this.navigated=!0,this.lastSuccessfulId=e.id,this.currentPageId=e.targetPageId,this.events.next(new
vl(e.id,this.serializeUrl(e.extractedUrl),this.serializeUrl(this.currentUrlTree))),this.lastSuccessfulNavigation=this.currentNavigation,e.resolve(!0)},e=>{this.console.warn(`Unhandled
Navigation Error: ${e}`)})}scheduleNavigation(e,n,s,r,o){var u,h;if(this.disposed)return
Promise.resolve(!1);let b,y,w;o?(b=o.resolve,y=o.reject,w=o.promise):w=new
Promise((L,O)=>{b=L,y=O});const M=++this.navigationId;let
E;return"computed"===this.canceledNavigationResolution?(0===this.currentPageId&&(s=this.location.getState()),E=s&&s.\u0275routerPageId?s.\u0275routerPageId:r.replaceUrl||r.skipLocationChange?null!==(u=this.browserPageId)&&void
0!==u?u:0:(null!==(h=this.browserPageId)&&void
0!==h?h:0)+1):E=0,this.setTransition({id:M,targetPageId:E,source:n,restoredState:s,currentUrlTree:this.currentUrlTree,currentRawUrl:this.rawUrl
Tree,rawUrl:e,extras:r,resolve:b,reject:y,promise:w,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),w.catch(L=>Promise.reject(L))}setBrowserUrl(e,n){const
s=this.urlSerializer.serialize(e),r=Object.assign(Object.assign({},n.extras.state),this.generateNgRouterState(n.id,n.targetPageId));this.location.isCurrentPathEqualTo(s)||n.extras.replaceUrl?this.location.replaceState(s,"",r):this.location.go(s,"",r)}restoreHistory(e,n=!1){var
s,r;if("computed"===this.canceledNavigationResolution){const
o=this.currentPageId-e.targetPageId;"popstate"!==e.source&&"eager"!==this.urlUpdateStrategy&&this.currentUrlTree!==(null===(s=this.currentNavigation)||void
0===s?void
0:s.finalUrl)||0===o?this.currentUrlTree===(null===(r=this.currentNavigation)||void
0===r?void
0:r.finalUrl)&&0===o&&(this.resetState(e),this.browserUrlTree=e.currentUrlTree,this.resetUrlToCurrentUrlTree()):this.location.historyGo(o)}else"replace"===this.canceledNavigationResolution&&(n&&this.resetState
(e),this.resetUrlToCurrentUrlTree())}resetState(e){this.routerState=e.currentRouterState,this.currentUrlTree=e.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,e.rawUrl)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}cancelNavigationTransition(e,n){const
s=new
BT(e.id,this.serializeUrl(e.extractedUrl),n);this.triggerEvent(s),e.resolve(!1)}generateNgRouterState(e,n){return"computed"===this.canceledNavigationResolution?{navigationId:e,\u0275routerPageId:n}:{navigationId:e}}}return
t.\u0275fac=function(e){Sh()},t.\u0275prov=X({token:t,factory:t.\u0275fac}),t})();function
O2(t){return"imperative"!==t}let gd=(()=>{class
t{constructor(e,n,s,r,o){this.router=e,this.route=n,this.tabIndexAttribute=s,this.renderer=r,this.el=o,this.commands=null,this.onChanges=new
ct,this.setTabIndexIfNotOnNativeEl("0")}setTabIndexIfNotOnNativeEl(e){if(n
ull!=this.tabIndexAttribute)return;const
n=this.renderer,s=this.el.nativeElement;null!==e?n.setAttribute(s,"tabindex",e):n.removeAttribute(s,"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:qo(this.skipLocationChange),replaceUrl:qo(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:qo(this.preserveFragment)})}}return
t.\u0275fac=function(e){return
new(e||t)(D(It),D(Er),ua("tabindex"),D(gn),D(De))},t.\u0275dir=le({type:t,selectors:[["","routerLink","",5,"a",
5,"area"]],hostBindings:function(e,n){1&e&&C("click",function(){return
n.onClick()})},inputs:{queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",preserveFragment:"preserveFragment",skipLocationChange:"skipLocationChange",replaceUrl:"replaceUrl",state:"state",relativeTo:"relativeTo",routerLink:"routerLink"},features:[fn]}),t})(),Ho=(()=>{class
t{constructor(e,n,s){this.router=e,this.route=n,this.locationStrategy=s,this.commands=null,this.href=null,this.onChanges=new
ct,this.subscription=e.events.subscribe(r=>{r instanceof
vl&&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,n,s,r,o){if(0!==e||n||s||r||o||"string"==typeof
this.target&&"_self"!=this.target||null===this.urlTree)return!0;const
u={skipLocationChange:qo(this.skipLocationChange),replaceUrl:qo(this.replaceUrl),sta
te:this.state};return
this.router.navigateByUrl(this.urlTree,u),!1}updateTargetUrlAndHref(){this.href=null!==this.urlTree?this.locationStrategy.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:qo(this.preserveFragment)})}}return
t.\u0275fac=function(e){return
new(e||t)(D(It),D(Er),D(ko))},t.\u0275dir=le({type:t,selectors:[["a","routerLink",""],["area","routerLink",""]],hostVars:2,hostBindings:function(e,n){1&e&&C("click",function(r){return
n.onClick(r.button,r.ctrlKey,r.shiftKey,r.altKey,r.metaKey)}),2&e&&ie("target",n.target)("href",n.href,ln)},inputs:{target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",preserveFragment:"preserveFragment",skipLocationChang
e:"skipLocationChange",replaceUrl:"replaceUrl",state:"state",relativeTo:"relativeTo",routerLink:"routerLink"},features:[fn]}),t})();function
qo(t){return""===t||!!t}let _d=(()=>{class
t{constructor(e,n,s,r,o,u){this.router=e,this.element=n,this.renderer=s,this.cdr=r,this.link=o,this.linkWithHref=u,this.classes=[],this.isActive=!1,this.routerLinkActiveOptions={exact:!1},this.isActiveChange=new
H,this.routerEventsSubscription=e.events.subscribe(h=>{h instanceof
vl&&this.update()})}ngAfterContentInit(){oe(this.links.changes,this.linksWithHrefs.changes,oe(null)).pipe(ea()).subscribe(e=>{this.update(),this.subscribeToEachLinkOnChanges()})}subscribeToEachLinkOnChanges(){var
e;null===(e=this.linkInputChangesSubscription)||void 0===e||e.unsubscribe();const
n=[...this.links.toArray(),...this.linksWithHrefs.toArray(),this.link,this.linkWithHref].filter(s=>!!s).map(s=>s.onChanges);this.linkInputChangesSubscription=Mn(n).pipe(ea()).subscribe(s=>{this.isActive!==this.isLinkActive(this.router)(s)
&&this.update()})}set routerLinkActive(e){const
n=Array.isArray(e)?e:e.split("
");this.classes=n.filter(s=>!!s)}ngOnChanges(e){this.update()}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(n=>{e?this.renderer.addClass(this.element.nativeElement,n):this.renderer.removeClass(this.element.nativeElement,n)}),this.isActiveChange.emit(e))})}isLinkActive(e){const
n=function
NH(t){return!!t.paths}(this.routerLinkActiveOptions)?this.routerLinkActiveOptions:this.routerLinkActiveOptions.exact||!1;return
s=>!!s.urlTree&&e.isActive(s.urlTree,n)}hasActiveLinks(){const
e=this.isLinkActive(this.router);return
this.link&&e(this.link)||this.linkWithHref&&e(this.linkWithHref)||this.links.some(e)||this.linksWit
hHrefs.some(e)}}return t.\u0275fac=function(e){return
new(e||t)(D(It),D(De),D(gn),D(rt),D(gd,8),D(Ho,8))},t.\u0275dir=le({type:t,selectors:[["","routerLinkActive",""]],contentQueries:function(e,n,s){if(1&e&&(st(s,gd,5),st(s,Ho,5)),2&e){let
r;V(r=B())&&(n.links=r),V(r=B())&&(n.linksWithHrefs=r)}},inputs:{routerLinkActiveOptions:"routerLinkActiveOptions",routerLinkActive:"routerLinkActive"},outputs:{isActiveChange:"isActiveChange"},exportAs:["routerLinkActive"],features:[fn]}),t})();class
A2{}class P2{preload(i,e){return oe(null)}}let F2=(()=>{class
t{constructor(e,n,s,r){this.router=e,this.injector=s,this.preloadingStrategy=r,this.loader=new
R2(s,n,h=>e.triggerEvent(new HT(h)),h=>e.triggerEvent(new
qT(h)))}setUpPreloading(){this.subscription=this.router.events.pipe(Us(e=>e instanceof
vl),_r(()=>this.preload())).subscribe(()=>{})}preload(){const
e=this.injector.get(_s);return
this.processRoutes(e,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}proc
essRoutes(e,n){const s=[];for(const r of
n)if(r.loadChildren&&!r.canLoad&&r._loadedConfig){const
o=r._loadedConfig;s.push(this.processRoutes(o.module,o.routes))}else
r.loadChildren&&!r.canLoad?s.push(this.preloadConfig(e,r)):r.children&&s.push(this.processRoutes(e,r.children));return
Mn(s).pipe(ea(),et(r=>{}))}preloadConfig(e,n){return
this.preloadingStrategy.preload(n,()=>(n._loadedConfig?oe(n._loadedConfig):this.loader.load(e.injector,n)).pipe(yn(r=>(n._loadedConfig=r,this.processRoutes(r.module,r.routes)))))}}return
t.\u0275fac=function(e){return
new(e||t)(K(It),K(qC),K(En),K(A2))},t.\u0275prov=X({token:t,factory:t.\u0275fac}),t})(),_g=(()=>{class
t{constructor(e,n,s={}){this.router=e,this.viewportScroller=n,this.options=s,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},s.scrollPositionRestoration=s.scrollPositionRestoration||"disabled",s.anchorScrolling=s.anchorScrolling||"disabled"}init(){"disabled"!==this.options.scrollPositionRestoration&&this.viewp
ortScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}createScrollEvents(){return
this.router.events.subscribe(e=>{e instanceof
tg?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=e.navigationTrigger,this.restoredId=e.restoredState?e.restoredState.navigationId:0):e
instanceof
vl&&(this.lastId=e.id,this.scheduleScrollEvent(e,this.router.parseUrl(e.urlAfterRedirects).fragment))})}consumeScrollEvents(){return
this.router.events.subscribe(e=>{e instanceof
GT&&(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.scrollToPosit
ion([0,0]))})}scheduleScrollEvent(e,n){this.router.triggerEvent(new
GT(e,"popstate"===this.lastSource?this.store[this.restoredId]:null,n))}ngOnDestroy(){this.routerEventsSubscription&&this.routerEventsSubscription.unsubscribe(),this.scrollEventsSubscription&&this.scrollEventsSubscription.unsubscribe()}}return
t.\u0275fac=function(e){Sh()},t.\u0275prov=X({token:t,factory:t.\u0275fac}),t})();const
Lr=new be("ROUTER_CONFIGURATION"),N2=new
be("ROUTER_FORROOT_GUARD"),BH=[_m,{provide:ZT,useClass:XT},{provide:It,useFactory:function
zH(t,i,e,n,s,r,o={},u,h){const b=new It(null,t,i,e,n,s,jT(r));return
u&&(b.urlHandlingStrategy=u),h&&(b.routeReuseStrategy=h),function
jH(t,i){t.errorHandler&&(i.errorHandler=t.errorHandler),t.malformedUriErrorHandler&&(i.malformedUriErrorHandler=t.malformedUriErrorHandler),t.onSameUrlNavigation&&(i.onSameUrlNavigation=t.onSameUrlNavigation),t.paramsInheritanceStrategy&&(i.paramsInheritanceStrategy=t.paramsInheritanceStrategy),t.relativeLinkResolution&&(i.relati
veLinkResolution=t.relativeLinkResolution),t.urlUpdateStrategy&&(i.urlUpdateStrategy=t.urlUpdateStrategy),t.canceledNavigationResolution&&(i.canceledNavigationResolution=t.canceledNavigationResolution)}(o,b),o.enableTracing&&b.events.subscribe(y=>{var
w,M;null===(w=console.group)||void 0===w||w.call(console,`Router Event:
${y.constructor.name}`),console.log(y.toString()),console.log(y),null===(M=console.groupEnd)||void
0===M||M.call(console)}),b},deps:[ZT,Dl,_m,En,qC,gg,Lr,[class EH{},new Ns],[class MH{},new
Ns]]},Dl,{provide:Er,useFactory:function $H(t){return
t.routerState.root},deps:[It]},F2,P2,class VH{preload(i,e){return
e().pipe(Mr(()=>oe(null)))}},{provide:Lr,useValue:{enableTracing:!1}}];function
HH(){return new $C("Router",It)}let vn=(()=>{class t{constructor(e,n){}static
forRoot(e,n){return{ngModule:t,providers:[BH,V2(e),{provide:N2,useFactory:UH,deps:[[It,new
Ns,new _a]]},{provide:Lr,useValue:n||{}},{provide:ko,useFactory:GH,deps:[fr,[new
dc(gm),new Ns],Lr]},{provide:_g,u
seFactory:qH,deps:[It,R4,Lr]},{provide:A2,useExisting:n&&n.preloadingStrategy?n.preloadingStrategy:P2},{provide:$C,multi:!0,useFactory:HH},[bg,{provide:em,multi:!0,useFactory:WH,deps:[bg]},{provide:B2,useFactory:KH,deps:[bg]},{provide:HC,multi:!0,useExisting:B2}]]}}static
forChild(e){return{ngModule:t,providers:[V2(e)]}}}return t.\u0275fac=function(e){return
new(e||t)(K(N2,8),K(It,8))},t.\u0275mod=he({type:t}),t.\u0275inj=ue({}),t})();function
qH(t,i,e){return e.scrollOffset&&i.setOffset(e.scrollOffset),new
_g(t,i,e)}function GH(t,i,e={}){return e.useHash?new vL(t,i):new dy(t,i)}function
UH(t){return"guarded"}function
V2(t){return[{provide:gD,multi:!0,useValue:t},{provide:gg,multi:!0,useValue:t}]}let
bg=(()=>{class
t{constructor(e){this.injector=e,this.initNavigation=!1,this.destroyed=!1,this.resultOfPreactivationDone=new
ct}appInitializer(){return
this.injector.get(gL,Promise.resolve(null)).then(()=>{if(this.destroyed)return
Promise.resolve(!0);let n=null;const s=new Promise(u=>n=u
),r=this.injector.get(It),o=this.injector.get(Lr);return"disabled"===o.initialNavigation?(r.setUpLocationChangeListener(),n(!0)):"enabled"===o.initialNavigation||"enabledBlocking"===o.initialNavigation?(r.hooks.afterPreactivation=()=>this.initNavigation?oe(null):(this.initNavigation=!0,n(!0),this.resultOfPreactivationDone),r.initialNavigation()):n(!0),s})}bootstrapListener(e){const
n=this.injector.get(Lr),s=this.injector.get(F2),r=this.injector.get(_g),o=this.injector.get(It),u=this.injector.get(cm);e===u.components[0]&&(("enabledNonBlocking"===n.initialNavigation||void
0===n.initialNavigation)&&o.initialNavigation(),s.setUpPreloading(),r.init(),o.resetRootComponentType(u.componentTypes[0]),this.resultOfPreactivationDone.next(null),this.resultOfPreactivationDone.complete())}ngOnDestroy(){this.destroyed=!0}}return
t.\u0275fac=function(e){return
new(e||t)(K(En))},t.\u0275prov=X({token:t,factory:t.\u0275fac}),t})();function
WH(t){return t.appInitializer.bind(t)}function KH(t){return t.
bootstrapListener.bind(t)}const B2=new be("Router Initializer");let
m9=(()=>{class t{}return t.\u0275fac=function(e){return
new(e||t)},t.\u0275mod=he({type:t}),t.\u0275inj=ue({imports:[[Fe,vn,pn,jn],vn,jn]}),t})();function
f9(t,i){1&t&&k(0,"span",6),2&t&&p("innerHTML",d(3).text,Bt)}function
g9(t,i){if(1&t&&(l(0,"div"),_(1,f9,1,1,"span",5),c()),2&t){const
e=d(2);a(1),p("ngIf",!e.escape)}}function
_9(t,i){if(1&t&&(l(0,"span",8),g(1),c()),2&t){const
e=d(3);a(1),S(e.text)}}function
b9(t,i){1&t&&_(0,_9,2,1,"span",7),2&t&&p("ngIf",d(2).escape)}const
v9=function(t,i,e,n,s){return{"p-inline-message-info":t,"p-inline-message-warn":i,"p-inline-message-error":e,"p-inline-message-success":n,"p-inline-message-icon-only":s}};function
C9(t,i){if(1&t&&(l(0,"div",1),k(1,"span",2),_(2,g9,2,1,"div",3),_(3,b9,1,1,"ng-template",null,4,we),c()),2&t){const
e=F(4),n=d();me(n.styleClass),p("ngStyle",n.style)("ngClass",pr(7,v9,"info"===n.severity,"warn"===n.severity,"error"===n.severity,"success"===n.severit
y,null==n.text)),a(1),p("ngClass",n.icon),a(1),p("ngIf",!n.escape)("ngIfElse",e)}}let
qe=(()=>{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=z({type:t,selectors:[["p-message"]],hostAttrs:[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,"inne
rHTML"],["class","p-inline-message-text",4,"ngIf"],[1,"p-inline-message-text"]],template:function(e,n){1&e&&_(0,C9,5,13,"div",0),2&e&&p("ngIf",n.severity)},directives:[Q,lt,Le],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})(),y9=(()=>{class
t{}return t.\u0275fac=function(e){return
new(e||t)},t.\u0275mod=he({type:t}),t.\u0275inj=ue({imports:[[Fe]]}),t})(),A9=(()=>{class
t{}return t.\u0275fac=function(e){return
new(e||t)},t.\u0275mod=he({type:t}),t.\u0275inj=ue({imports:[[Fe,pn]]}),t})();function
P9(t,i){1&t&&Y(0)}function F9(t,i){if(1&t){const
e=I();l(0,"button",5),C("click",function(s){return
v(e),d(2).onCloseClick(s)})("keydown.enter",function(){return
v(e),d(2).hide()}),k(1,"span",6),c()}2&t&&ie("aria-label",d(2).ariaCloseLabel)}const
N9=function(t,i){return{sho
wTransitionParams:t,hideTransitionParams:i}},V9=function(t,i){return{value:t,params:i}};function
B9(t,i){if(1&t){const
e=I();l(0,"div",1),C("click",function(s){return
v(e),d().onOverlayClick(s)})("(a)animation.start",function(s){return
v(e),d().onAnimationStart(s)})("(a)animation.done",function(s){return
v(e),d().onAnimationEnd(s)}),l(1,"div",2),C("click",function(){return
v(e),d().onContentClick()})("mousedown",function(){return
v(e),d().onContentClick()}),St(2),_(3,P9,1,0,"ng-container",3),c(),_(4,F9,2,1,"button",4),c()}if(2&t){const
e=d();me(e.styleClass),p("ngClass","p-overlaypanel
p-component")("ngStyle",e.style)("@animation",Ge(10,V9,e.overlayVisible?"open":"close",Ge(7,N9,e.showTransitionOptions,e.hideTransitionOptions))),a(3),p("ngTemplateOutlet",e.contentTemplate),a(1),p("ngIf",e.showCloseIcon)}}const
H9=["*"];let q9=(()=>{class
t{constructor(e,n,s,r,o,u){this.el=e,this.renderer=n,this.cd=s,this.zone=r,this.config=o,this.overlayService=u,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 H,this.onHide=new
H,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=R.isIOS()?"touchstart":"click";this.documentClickListener=this.renderer.listen(this.el?this.el.nativeElement.ownerDocument:"document",e,s=>{!this.container.contains(s.target)&&this.target!==s.target&&!this.target.contains(s.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,n){this.overlayVisible?(this.hasTargetC
hanged(e,n)&&(this.destroyCallback=()=>{this.show(null,n||e.currentTarget||e.target)}),this.hide()):this.show(e,n)}show(e,n){this.target=n||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,n){return
null!=this.target&&this.target!==(n||e.currentTarget||e.target)}appendContainer(){this.appendTo&&("body"===this.appendTo?document.body.appendChild(this.container):R.appendChild(this.container,this.appendTo))}restoreAppend(){this.container&&this.appendTo&&this.el.nativeElement.appendChild(this.container)}align(){this.autoZIndex&&dt.set("overlay",this.container,this.baseZIndex+this.config.zIndex.overlay),R.absolutePosition(this.container,this.target);const
e=R.getOffset(this.container),n=R.getOffset(this.target);let
s=0;e.left<n.left&&(s=n.left-e.left),this.container.style.setProperty("--overl
ayArrowLeft",`${s}px`),e.top<n.top&&R.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=n=>{this.container&&this.container.contains(n.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&&dt.clear(this.container),this.overlaySubscription&&this.overlaySubscription.unsubscribe(),this.onContainerDestroy(),this.onHide.emit({}),this.render=!1}}focus(){let
e=R.findSingle(this.container,"[autofocus]");e&&this.zone.runOutsideAngula
r(()=>{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
Qs(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.autoZI
ndex&&dt.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)(D(De),D(gn),D(rt),D(nt),D(zn),D(Ks))},t.\u0275cmp=z({type:t,selectors:[["p-overlayPanel"]],contentQueries:function(e,n,s){if(1&e&&st(s,ne,4),2&e){let
r;V(r=B())&&(n.templates=r)}},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:H9,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,n){1&e&&(Sn(),_(0,B9,5,13,"div",0)),2&e&&p("ngIf",n.render)},directives:[Q,Le,lt,Rt,bt],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;ri
ght: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:[wi("animation",[ws("void",it({transform:"scaleY(0.8)",opacity:0})),ws("close",it({opacity:0})),ws("open",it({transform:"translateY(0)",opacity:1})),Lt("void
=> open",kt("{{showTransitionParams}}")),Lt("open =>
close",kt("{{hideTransitionParams}}"))])]},changeDetection:0}),t})(),G9=(()=>{class
t{}return t.\u0275fac=function(e){return
new(e||t)},t.\u0275mod=he({type:t}),t.\u0275inj=ue({imports:[[Fe,pn,Nt],Nt]}),t})(),J9=(()=>{class
t{}return t.\u0275fac=function(e){return
new(e||t)},t.\u0275mod=he({type:t}),t.\u0275inj=ue({imports:[[Fe,Nt,pn],Nt]}),t})(),Go=(()=>{class
t{constructor(){this.strokeWidth="2",this.fill="none",this.animationDuration="2s"}}return
t.\u0275fac=function(e){return
new(e||t)},t.\u0275cmp=z({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,n){1&e&&(l(0,"div",0),function
d_(){Ee.lFrame.currentNamespace="svg"}(),l(1,"svg",1),k(2,"circle",2),c()()),2&e&&(p("ngStyle",n.style)("ngClass",n.styleClass),a(1),_i("animation-duration",n.animationDuration),a(1),ie("fill",n.fill)("stroke-width",n.strokeWidth))},directives:[lt,Le],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-rota
te 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})(),Y9=(()=>{class
t{}return t.\u0275fac=function(e){return
new(e||t)},t.\u0275mod=he({type:t}),t.\u0275inj=ue({imports:[[Fe]]}),t})();ku([it({transform:"{{transform}}",opacity:0}),kt("{{transition}}")]),ku([kt("{{transition}}",it(
{transform:"{{transform}}",opacity:0}))]);let iq=(()=>{class t{}return
t.\u0275fac=function(e){return
new(e||t)},t.\u0275mod=he({type:t}),t.\u0275inj=ue({imports:[[Fe,pn]]}),t})(),sq=(()=>{class
t{}return t.\u0275fac=function(e){return
new(e||t)},t.\u0275mod=he({type:t}),t.\u0275inj=ue({imports:[[Fe]]}),t})(),hq=(()=>{class
t{}return t.\u0275fac=function(e){return
new(e||t)},t.\u0275mod=he({type:t}),t.\u0275inj=ue({imports:[[Fe,vn,jn],vn,jn]}),t})();function
mq(t,i){1&t&&k(0,"span",8),2&t&&(me(d(2).$implicit.icon),p("ngClass","p-button-icon
p-button-icon-left"))}function
fq(t,i){if(1&t&&(de(0),_(1,mq,1,3,"span",6),l(2,"span",7),g(3),c(),pe()),2&t){const
e=d().$implicit,n=d();a(1),p("ngIf",e.icon),a(2),S(n.getOptionLabel(e))}}function
gq(t,i){1&t&&Y(0)}const _q=function(t,i){return{$implicit:t,index:i}};function
bq(t,i){if(1&t&&_(0,gq,1,0,"ng-container",9),2&t){const
e=d(),n=e.$implicit,s=e.index;p("ngTemplateOutlet",d().itemTemplate)("ngTemplateOutletContext",Ge(2,_q,n,s))}}const
vq
=function(t,i,e){return{"p-highlight":t,"p-disabled":i,"p-button-icon-only":e}};function
Cq(t,i){if(1&t){const
e=I();l(0,"div",2,3),C("click",function(s){const
r=v(e),o=r.$implicit,u=r.index;return
d().onItemClick(s,o,u)})("keydown.enter",function(s){const
r=v(e),o=r.$implicit,u=r.index;return
d().onItemClick(s,o,u)})("blur",function(){return
v(e),d().onBlur()}),_(2,fq,4,2,"ng-container",4),_(3,bq,1,5,"ng-template",null,5,we),c()}if(2&t){const
e=i.$implicit,n=F(4),s=d();me(e.styleClass),p("ngClass",Qt(10,vq,s.isSelected(e),s.disabled||s.isOptionDisabled(e),e.icon&&!s.getOptionLabel(e))),ie("aria-pressed",s.isSelected(e))("title",e.title)("aria-label",e.label)("tabindex",s.disabled?null:s.tabindex)("aria-labelledby",s.getOptionLabel(e)),a(2),p("ngIf",!s.itemTemplate)("ngIfElse",n)}}const
yq={provide:dn,useExisting:je(()=>wq),multi:!0};let wq=(()=>{class
t{constructor(e){this.cd=e,this.tabindex=0,this.onOptionClick=new H,this.onChange=new
H,this.onModelChange=()=>{},this.onModelTouche
d=()=>{}}getOptionLabel(e){return
this.optionLabel?Z.resolveFieldData(e,this.optionLabel):null!=e.label?e.label:e}getOptionValue(e){return
this.optionValue?Z.resolveFieldData(e,this.optionValue):this.optionLabel||void
0===e.value?e:e.value}isOptionDisabled(e){return
this.optionDisabled?Z.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,n,s){if(!this.disabled&&!this.isOptionDisabled(n)){if(this.multiple)this.isSelected(n)?this.removeOption(n):this.value=[...this.value||[],this.getOptionValue(n)],this.onModelChange(this.value),this.onChange.emit({originalEvent:e,value:this.value});else{let
r=this.getOptionValue(n);this.value!==r&&(this.value=this.getOptionValue(n),this.onModelChange(this.value),this.onChange.emit({originalEvent:e,value:this.value}))}this.onOp
tionClick.emit({originalEvent:e,option:n,index:s})}}onBlur(){this.onModelTouched()}removeOption(e){this.value=this.value.filter(n=>!Z.equals(n,this.getOptionValue(e),this.dataKey))}isSelected(e){let
n=!1,s=this.getOptionValue(e);if(this.multiple){if(this.value)for(let r of
this.value)if(Z.equals(r,s,this.dataKey)){n=!0;break}}else
n=Z.equals(this.getOptionValue(e),this.value,this.dataKey);return n}}return
t.\u0275fac=function(e){return
new(e||t)(D(rt))},t.\u0275cmp=z({type:t,selectors:[["p-selectButton"]],contentQueries:function(e,n,s){if(1&e&&st(s,bi,5),2&e){let
r;V(r=B())&&(n.itemTemplate=r.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:[Pe([yq])],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,n){1&e&&(l(0,"div",0),_(1,Cq,5,14,"div",1),c()),2&e&&(me(n.styleClass),p("ngClass","p-selectbutton
p-buttonset
p-component")("ngStyle",n.style),a(1),p("ngForOf",n.options))},directives:[Le,lt,at,bt,Q,Rt],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:cen
ter}.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}\n"],encapsulation:2,changeDetection:0}),t})(),Tq=(()=>{class
t{}return t.\u0275fac=function(e){return
new(e||t)},t.\u0275mod=he({type:t}),t.\u0275inj=ue({imports:[[Fe,pn]]}),t})();const
Sq=function(t,i,e){return{"p-checkbox-label-active":t,"p-disabled":i,"p-checkbox-label-focus":e}};function
xq(t,i){if(1&t){const
e=I();l(0,"label",7),C("click",function(s){v(e);const
r=d(),o=F(3);return r.onClick(s,o)}),g(1),c()}if(2&t){const e=d();p(
"ngClass",Qt(3,Sq,null!=e.value,e.disabled,e.focused)),ie("for",e.inputId),a(1),S(e.label)}}const
Dq=function(t,i){return{"p-checkbox
p-component":!0,"p-checkbox-disabled":t,"p-checkbox-focused":i}},Mq=function(t,i,e){return{"p-highlight":t,"p-disabled":i,"p-focus":e}},kq={provide:dn,useExisting:je(()=>G2),multi:!0};let
G2=(()=>{class t{constructor(e){this.cd=e,this.checkboxTrueIcon="pi
pi-check",this.checkboxFalseIcon="pi pi-times",this.onChange=new
H,this.onModelChange=()=>{},this.onModelTouched=()=>{}}onClick(e,n){!this.disabled&&!this.readonly&&(this.toggle(e),this.focused=!0,n.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.onModelTouch
ed()}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)(D(rt))},t.\u0275cmp=z({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:[Pe([kq])],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,n){if(1&e){const
s=I();l(0,"div",0)(1,"div",1)(2,"input",2,3),C("keyup",function(o){return
n.onKeyup(o)})("keydown",function(o){return
n.onKeydown(o)})("focus",function(){return
n.onFocus()})("blur",function(){return
n.onBlur()}),c()(),l(4,"div",4),C("click",function(o){v(s);const
u=F(3);return
n.onClick(o,u)}),k(5,"span",5),c()(),_(6,xq,2,7,"label",6)}2&e&&(me(n.styleClass),p("ngStyle",n.style)("ngClass",Ge(14,Dq,n.disabled,n.focused)),a(2),p("name",n.name)("readonly",n.readonly)("disabled",n.disabled),ie("id",n.inputId)("tabindex",n.tabindex)("aria-labelledby",n.ariaLabelledBy),a(2),p("ngClass",Qt(17,Mq,null!=n.value,n.disabled,n.focused)),ie("aria-checked",!0===n.value),a(1),p("ngClass",!0===n.value?n.checkboxTrueIcon:!1===n.value?n.checkboxFalseIcon:""),a(1),p("ngIf",n.label))},directives:[lt,Le,Q],encapsulation:2,changeDetection:0}),t})(),Iq=(()=>{class
t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=he({type:t}),
t.\u0275inj=ue({imports:[[Fe]]}),t})();const
Eq=["container"],Rq=["resizeHelper"],Lq=["reorderIndicatorUp"],Oq=["reorderIndicatorDown"],Aq=["wrapper"],Pq=["table"],Fq=["tableHeader"];function
Nq(t,i){if(1&t&&(l(0,"div",14),k(1,"i"),c()),2&t){const
e=d();a(1),me("p-datatable-loading-icon pi-spin "+e.loadingIcon)}}function
Vq(t,i){1&t&&Y(0)}function
Bq(t,i){if(1&t&&(l(0,"div",15),_(1,Vq,1,0,"ng-container",16),c()),2&t){const
e=d();a(1),p("ngTemplateOutlet",e.captionTemplate)}}function
Hq(t,i){if(1&t){const
e=I();l(0,"p-paginator",17),C("onPageChange",function(s){return
v(e),d().onPageChange(s)}),c()}if(2&t){const
e=d();p("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)("currentPageRe
portTemplate",e.currentPageReportTemplate)("showFirstLastIcon",e.showFirstLastIcon)("dropdownItemTemplate",e.paginatorDropdownItemTemplate)("showCurrentPageReport",e.showCurrentPageReport)("showJumpToPageDropdown",e.showJumpToPageDropdown)("showJumpToPageInput",e.showJumpToPageInput)("showPageLinks",e.showPageLinks)}}function
qq(t,i){1&t&&Y(0)}function Gq(t,i){1&t&&Y(0)}function
Uq(t,i){if(1&t&&k(0,"tbody",25),2&t){const
e=d(2);p("value",e.frozenValue)("frozenRows",!0)("pTableBody",e.columns)("pTableBodyTemplate",e.frozenBodyTemplate)("frozen",!0)}}function
zq(t,i){1&t&&Y(0)}const Zs=function(t){return{$implicit:t}};function
jq(t,i){if(1&t&&(l(0,"tfoot",26),_(1,zq,1,0,"ng-container",20),c()),2&t){const
e=d(2);a(1),p("ngTemplateOutlet",e.footerGroupedTemplate||e.footerTemplate)("ngTemplateOutletContext",U(2,Zs,e.columns))}}function
$q(t,i){if(1&t&&(l(0,"table",18,19),_(2,qq,1,0,"ng-container",20),l(3,"thead",21),_(4,Gq,1,0,"ng-container",20),c(),_(5,Uq,1,5,"tbody",22),k(6,"tbody",23)
,_(7,jq,2,4,"tfoot",24),c()),2&t){const
e=d();p("ngClass",e.tableStyleClass)("ngStyle",e.tableStyle),ie("id",e.id+"-table"),a(2),p("ngTemplateOutlet",e.colGroupTemplate)("ngTemplateOutletContext",U(12,Zs,e.columns)),a(2),p("ngTemplateOutlet",e.headerGroupedTemplate||e.headerTemplate)("ngTemplateOutletContext",U(14,Zs,e.columns)),a(1),p("ngIf",e.frozenValue||e.frozenBodyTemplate),a(1),p("value",e.dataToRender)("pTableBody",e.columns)("pTableBodyTemplate",e.bodyTemplate),a(1),p("ngIf",e.footerGroupedTemplate||e.footerTemplate)}}function
Wq(t,i){1&t&&Y(0)}function Kq(t,i){1&t&&Y(0)}function
Qq(t,i){if(1&t&&k(0,"tbody",25),2&t){const
e=d(2);p("value",e.frozenValue)("frozenRows",!0)("pTableBody",e.columns)("pTableBodyTemplate",e.bodyTemplate)("frozen",!0)}}function
Jq(t,i){1&t&&Y(0)}function
Yq(t,i){if(1&t&&(l(0,"tfoot",26),_(1,Jq,1,0,"ng-container",20),c()),2&t){const
e=d(2);a(1),p("ngTemplateOutlet",e.footerGroupedTemplate||e.footerTemplate)("ngTemplateOutletContext",U(2,Zs,e.columns))
}}function Zq(t,i){if(1&t){const
e=I();l(0,"cdk-virtual-scroll-viewport",27),C("scrolledIndexChange",function(s){return
v(e),d().onScrollIndexChange(s)}),l(1,"table",18,19),_(3,Wq,1,0,"ng-container",20),l(4,"thead",21,28),_(6,Kq,1,0,"ng-container",20),c(),_(7,Qq,1,5,"tbody",22),k(8,"tbody",23),_(9,Yq,2,4,"tfoot",24),c()()}if(2&t){const
e=d();_i("height","flex"!==e.scrollHeight?e.scrollHeight:void
0),p("itemSize",e.virtualRowHeight)("minBufferPx",e.minBufferPx)("maxBufferPx",e.maxBufferPx),a(1),p("ngClass",e.tableStyleClass)("ngStyle",e.tableStyle),ie("id",e.id+"-table"),a(2),p("ngTemplateOutlet",e.colGroupTemplate)("ngTemplateOutletContext",U(17,Zs,e.columns)),a(3),p("ngTemplateOutlet",e.headerGroupedTemplate||e.headerTemplate)("ngTemplateOutletContext",U(19,Zs,e.columns)),a(1),p("ngIf",e.frozenValue||e.frozenBodyTemplate),a(1),p("value",e.dataToRender)("pTableBody",e.columns)("pTableBodyTemplate",e.bodyTemplate),a(1),p("ngIf",e.footerGroupedTemplate||e.footerTemplate)}}function
Xq(
t,i){if(1&t){const
e=I();l(0,"p-paginator",29),C("onPageChange",function(s){return
v(e),d().onPageChange(s)}),c()}if(2&t){const
e=d();p("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
eG(t,i){1&t&&Y(0)}function
tG(t,i){if(1&t&&(l(0,"div",30),_(1,eG,1,0,"ng-container",16),c()),2&t){const
e=d();a(1),p("ngTemplateOutlet",e.summaryTemplate)}}functio
n nG(t,i){1&t&&k(0,"div",31,32)}function
iG(t,i){1&t&&k(0,"span",33,34)}function
sG(t,i){1&t&&k(0,"span",35,36)}const
rG=function(t,i,e,n,s,r,o,u,h,b,y,w,M,E){return{"p-datatable
p-component":!0,"p-datatable-hoverable-rows":t,"p-datatable-auto-layout":i,"p-datatable-resizable":e,"p-datatable-resizable-fit":n,"p-datatable-scrollable":s,"p-datatable-scrollable-vertical":r,"p-datatable-scrollable-horizontal":o,"p-datatable-scrollable-both":u,"p-datatable-flex-scrollable":h,"p-datatable-responsive-stack":b,"p-datatable-responsive-scroll":y,"p-datatable-responsive":w,"p-datatable-grouped-header":M,"p-datatable-grouped-footer":E}},oG=function(t){return{height:t}},aG=["pTableBody",""];function
lG(t,i){1&t&&Y(0)}const
bd=function(t,i,e,n,s){return{$implicit:t,rowIndex:i,columns:e,editing:n,frozen:s}};function
cG(t,i){if(1&t&&(de(0,3),_(1,lG,1,0,"ng-container",4),pe()),2&t){const
e=d(),n=e.$implicit,s=e.index,r=d(2);a(1),p("ngTemplateOutlet",r.dt.groupHeaderTemplate)("ngTemplateOutletContext
",pr(2,bd,n,r.dt.paginator?r.dt.first+s:s,r.columns,"row"===r.dt.editMode&&r.dt.isRowEditing(n),r.frozen))}}function
uG(t,i){1&t&&Y(0)}function
dG(t,i){if(1&t&&(de(0),_(1,uG,1,0,"ng-container",4),pe()),2&t){const
e=d(),n=e.$implicit,s=e.index,r=d(2);a(1),p("ngTemplateOutlet",r.template)("ngTemplateOutletContext",pr(2,bd,n,r.dt.paginator?r.dt.first+s:s,r.columns,"row"===r.dt.editMode&&r.dt.isRowEditing(n),r.frozen))}}function
pG(t,i){1&t&&Y(0)}const
hG=function(t,i,e,n,s,r,o){return{$implicit:t,rowIndex:i,columns:e,editing:n,frozen:s,rowgroup:r,rowspan:o}};function
mG(t,i){if(1&t&&(de(0),_(1,pG,1,0,"ng-container",4),pe()),2&t){const
e=d(),n=e.$implicit,s=e.index,r=d(2);a(1),p("ngTemplateOutlet",r.template)("ngTemplateOutletContext",function
aC(t,i,e,n,s,r,o,u,h,b){const y=Fn()+t,w=$();let M=gi(w,y,e,n,s,r);return
Mc(w,y+4,o,u,h)||M?es(w,y+7,b?i.call(b,e,n,s,r,o,u,h):i(e,n,s,r,o,u,h)):Ea(w,y+7)}(2,hG,n,r.dt.paginator?r.dt.first+s:s,r.columns,"row"===r.dt.editMode&&r.dt.isRowEditing(n)
,r.frozen,r.shouldRenderRowspan(r.value,n,s),r.calculateRowGroupSize(r.value,n,s)))}}function
fG(t,i){1&t&&Y(0)}function
gG(t,i){if(1&t&&(de(0,3),_(1,fG,1,0,"ng-container",4),pe()),2&t){const
e=d(),n=e.$implicit,s=e.index,r=d(2);a(1),p("ngTemplateOutlet",r.dt.groupFooterTemplate)("ngTemplateOutletContext",pr(2,bd,n,r.dt.paginator?r.dt.first+s:s,r.columns,"row"===r.dt.editMode&&r.dt.isRowEditing(n),r.frozen))}}function
_G(t,i){if(1&t&&(_(0,cG,2,8,"ng-container",2),_(1,dG,2,8,"ng-container",0),_(2,mG,2,10,"ng-container",0),_(3,gG,2,8,"ng-container",2)),2&t){const
e=i.$implicit,n=i.index,s=d(2);p("ngIf",s.dt.groupHeaderTemplate&&"subheader"===s.dt.rowGroupMode&&s.shouldRenderRowGroupHeader(s.value,e,n)),a(1),p("ngIf","rowspan"!==s.dt.rowGroupMode),a(1),p("ngIf","rowspan"===s.dt.rowGroupMode),a(1),p("ngIf",s.dt.groupFooterTemplate&&"subheader"===s.dt.rowGroupMode&&s.shouldRenderRowGroupFooter(s.value,e,n))}}function
bG(t,i){if(1&t&&(de(0),_(1,_G,4,4,"ng-template",1),pe()),2&t){const
e=d
();a(1),p("ngForOf",e.value)("ngForTrackBy",e.dt.rowTrackBy)}}function
vG(t,i){1&t&&Y(0)}function
CG(t,i){if(1&t&&_(0,vG,1,0,"ng-container",4),2&t){const
e=i.$implicit,n=i.index,s=d(2);p("ngTemplateOutlet",e?s.template:s.dt.loadingBodyTemplate)("ngTemplateOutletContext",pr(2,bd,e,s.dt.paginator?s.dt.first+n:n,s.columns,"row"===s.dt.editMode&&s.dt.isRowEditing(e),s.frozen))}}function
yG(t,i){if(1&t&&(de(0),_(1,CG,1,8,"ng-template",5),pe()),2&t){const
e=d();a(1),p("cdkVirtualForOf",e.dt.filteredValue||e.dt.value)("cdkVirtualForTrackBy",e.dt.rowTrackBy)("cdkVirtualForTemplateCacheSize",0)}}function
wG(t,i){1&t&&Y(0)}const
vd=function(t,i,e,n,s,r){return{$implicit:t,rowIndex:i,columns:e,expanded:n,editing:s,frozen:r}};function
TG(t,i){if(1&t&&(de(0),_(1,wG,1,0,"ng-container",4),pe()),2&t){const
e=d(),n=e.$implicit,s=e.index,r=d(2);a(1),p("ngTemplateOutlet",r.template)("ngTemplateOutletContext",Do(2,vd,n,r.dt.paginator?r.dt.first+s:s,r.columns,r.dt.isRowExpanded(n),"row"===r.dt.editMode&
&r.dt.isRowEditing(n),r.frozen))}}function SG(t,i){1&t&&Y(0)}function
xG(t,i){if(1&t&&(de(0,3),_(1,SG,1,0,"ng-container",4),pe()),2&t){const
e=d(),n=e.$implicit,s=e.index,r=d(2);a(1),p("ngTemplateOutlet",r.dt.groupHeaderTemplate)("ngTemplateOutletContext",Do(2,vd,n,r.dt.paginator?r.dt.first+s:s,r.columns,r.dt.isRowExpanded(n),"row"===r.dt.editMode&&r.dt.isRowEditing(n),r.frozen))}}function
DG(t,i){1&t&&Y(0)}function MG(t,i){1&t&&Y(0)}function
kG(t,i){if(1&t&&(de(0,3),_(1,MG,1,0,"ng-container",4),pe()),2&t){const
e=d(2),n=e.$implicit,s=e.index,r=d(2);a(1),p("ngTemplateOutlet",r.dt.groupFooterTemplate)("ngTemplateOutletContext",Do(2,vd,n,r.dt.paginator?r.dt.first+s:s,r.columns,r.dt.isRowExpanded(n),"row"===r.dt.editMode&&r.dt.isRowEditing(n),r.frozen))}}const
U2=function(t,i,e,n){return{$implicit:t,rowIndex:i,columns:e,frozen:n}};function
IG(t,i){if(1&t&&(de(0),_(1,DG,1,0,"ng-container",4),_(2,kG,2,9,"ng-container",2),pe()),2&t){const
e=d(),n=e.$implicit,s=e.index,r=d(2);a(1),p("ngTem
plateOutlet",r.dt.expandedRowTemplate)("ngTemplateOutletContext",qn(3,U2,n,r.dt.paginator?r.dt.first+s:s,r.columns,r.frozen)),a(1),p("ngIf",r.dt.groupFooterTemplate&&"subheader"===r.dt.rowGroupMode&&r.shouldRenderRowGroupFooter(r.value,n,s))}}function
EG(t,i){if(1&t&&(_(0,TG,2,9,"ng-container",0),_(1,xG,2,9,"ng-container",2),_(2,IG,3,8,"ng-container",0)),2&t){const
e=i.$implicit,n=i.index,s=d(2);p("ngIf",!s.dt.groupHeaderTemplate),a(1),p("ngIf",s.dt.groupHeaderTemplate&&"subheader"===s.dt.rowGroupMode&&s.shouldRenderRowGroupHeader(s.value,e,n)),a(1),p("ngIf",s.dt.isRowExpanded(e))}}function
RG(t,i){if(1&t&&(de(0),_(1,EG,3,3,"ng-template",1),pe()),2&t){const
e=d();a(1),p("ngForOf",e.value)("ngForTrackBy",e.dt.rowTrackBy)}}function
LG(t,i){1&t&&Y(0)}function OG(t,i){1&t&&Y(0)}function
AG(t,i){if(1&t&&(de(0),_(1,OG,1,0,"ng-container",4),pe()),2&t){const
e=d(),n=e.$implicit,s=e.index,r=d(2);a(1),p("ngTemplateOutlet",r.dt.frozenExpandedRowTemplate)("ngTemplateOutletContext",qn(2,U2,n,r.d
t.paginator?r.dt.first+s:s,r.columns,r.frozen))}}function
PG(t,i){if(1&t&&(_(0,LG,1,0,"ng-container",4),_(1,AG,2,7,"ng-container",0)),2&t){const
e=i.$implicit,n=i.index,s=d(2);p("ngTemplateOutlet",s.template)("ngTemplateOutletContext",Do(3,vd,e,s.dt.paginator?s.dt.first+n:n,s.columns,s.dt.isRowExpanded(e),"row"===s.dt.editMode&&s.dt.isRowEditing(e),s.frozen)),a(1),p("ngIf",s.dt.isRowExpanded(e))}}function
FG(t,i){if(1&t&&(de(0),_(1,PG,2,10,"ng-template",1),pe()),2&t){const
e=d();a(1),p("ngForOf",e.value)("ngForTrackBy",e.dt.rowTrackBy)}}function
NG(t,i){1&t&&Y(0)}const
z2=function(t,i){return{$implicit:t,frozen:i}};function
VG(t,i){if(1&t&&(de(0),_(1,NG,1,0,"ng-container",4),pe()),2&t){const
e=d();a(1),p("ngTemplateOutlet",e.dt.loadingBodyTemplate)("ngTemplateOutletContext",Ge(2,z2,e.columns,e.frozen))}}function
BG(t,i){1&t&&Y(0)}function
HG(t,i){if(1&t&&(de(0),_(1,BG,1,0,"ng-container",4),pe()),2&t){const
e=d();a(1),p("ngTemplateOutlet",e.dt.emptyMessageTemplate)("ngTemplateOutletC
ontext",Ge(2,z2,e.columns,e.frozen))}}function
qG(t,i){if(1&t&&(l(0,"span",2),g(1),c()),2&t){const
e=d();a(1),S(e.getBadgeValue())}}const
GG=function(t,i,e){return{"pi-sort-amount-up-alt":t,"pi-sort-amount-down":i,"pi-sort-alt":e}};function
UG(t,i){1&t&&Y(0)}function
zG(t,i){if(1&t&&(de(0),_(1,UG,1,0,"ng-container",1),pe()),2&t){const
e=d();a(1),p("ngTemplateOutlet",e.inputTemplate)}}function
jG(t,i){1&t&&Y(0)}function
$G(t,i){if(1&t&&(de(0),_(1,jG,1,0,"ng-container",1),pe()),2&t){const
e=d();a(1),p("ngTemplateOutlet",e.outputTemplate)}}function
WG(t,i){1&t&&Y(0)}const
KG=function(t,i){return{$implicit:t,filterCallback:i}};function
QG(t,i){if(1&t&&(de(0),_(1,WG,1,0,"ng-container",2),pe()),2&t){const
e=d();a(1),p("ngTemplateOutlet",e.filterTemplate)("ngTemplateOutletContext",Ge(2,KG,e.filterConstraint.value,e.filterCallback))}}function
JG(t,i){if(1&t){const
e=I();l(0,"input",8),C("input",function(s){return
v(e),d(2).onModelChange(s.target.value)})("keydown.enter",function(s){return v
(e),d(2).onTextInputEnterKeyDown(s)}),c()}if(2&t){const
e=d(2);p("value",null==e.filterConstraint?null:e.filterConstraint.value),ie("placeholder",e.placeholder)}}function
YG(t,i){if(1&t){const
e=I();l(0,"p-inputNumber",9),C("ngModelChange",function(s){return
v(e),d(2).onModelChange(s)})("onKeyDown",function(s){return
v(e),d(2).onNumericInputKeyDown(s)}),c()}if(2&t){const
e=d(2);p("ngModel",null==e.filterConstraint?null:e.filterConstraint.value)("showButtons",!0)("minFractionDigits",e.minFractionDigits)("maxFractionDigits",e.maxFractionDigits)("prefix",e.prefix)("suffix",e.suffix)("placeholder",e.placeholder)("mode",e.currency?"currency":"decimal")("locale",e.locale)("localeMatcher",e.localeMatcher)("currency",e.currency)("currencyDisplay",e.currencyDisplay)("useGrouping",e.useGrouping)}}function
ZG(t,i){if(1&t){const
e=I();l(0,"p-triStateCheckbox",10),C("ngModelChange",function(s){return
v(e),d(2).onModelChange(s)}),c()}if(2&t){const
e=d(2);p("ngModel",null==e.filterConstraint?null:
e.filterConstraint.value)}}function XG(t,i){if(1&t){const
e=I();l(0,"p-calendar",11),C("ngModelChange",function(s){return
v(e),d(2).onModelChange(s)}),c()}if(2&t){const
e=d(2);p("placeholder",e.placeholder)("ngModel",null==e.filterConstraint?null:e.filterConstraint.value)}}function
eU(t,i){1&t&&(de(0,3),_(1,JG,1,2,"input",4),_(2,YG,1,13,"p-inputNumber",5),_(3,ZG,1,1,"p-triStateCheckbox",6),_(4,XG,1,2,"p-calendar",7),pe()),2&t&&(p("ngSwitch",d().type),a(1),p("ngSwitchCase","text"),a(1),p("ngSwitchCase","numeric"),a(1),p("ngSwitchCase","boolean"),a(1),p("ngSwitchCase","date"))}const
tU=["icon"];function
nU(t,i){if(1&t&&k(0,"p-columnFilterFormElement",5),2&t){const
e=d();p("type",e.type)("field",e.field)("filterConstraint",e.dt.filters[e.field])("filterTemplate",e.filterTemplate)("placeholder",e.placeholder)("minFractionDigits",e.minFractionDigits)("maxFractionDigits",e.maxFractionDigits)("prefix",e.prefix)("suffix",e.suffix)("locale",e.locale)("localeMatcher",e.localeMatcher)("currenc
y",e.currency)("currencyDisplay",e.currencyDisplay)("useGrouping",e.useGrouping)}}const
iU=function(t,i){return{"p-column-filter-menu-button-open":t,"p-column-filter-menu-button-active":i}};function
sU(t,i){if(1&t){const
e=I();l(0,"button",6,7),C("click",function(){return
v(e),d().toggleMenu()})("keydown",function(s){return
v(e),d().onToggleButtonKeyDown(s)}),k(2,"span",8),c()}if(2&t){const
e=d();p("ngClass",Ge(2,iU,e.overlayVisible,e.hasFilter())),ie("aria-expanded",e.overlayVisible)}}const
rU=function(t){return{"p-hidden-space":t}};function oU(t,i){if(1&t){const
e=I();l(0,"button",9,7),C("click",function(){return
v(e),d().clearFilter()}),k(2,"span",10),c()}if(2&t){const
e=d();p("ngClass",U(1,rU,!e.hasRowFilter()))}}function
aU(t,i){1&t&&Y(0)}const
lU=function(t){return{"p-highlight":t}};function cU(t,i){if(1&t){const
e=I();l(0,"li",19),C("click",function(){const r=v(e).$implicit;return
d(3).onRowMatchModeChange(r.value)})("keydown",function(s){return
v(e),d(3).onRowMatchModeKeyDow
n(s)})("keydown.enter",function(){const r=v(e).$implicit;return
d(3).onRowMatchModeChange(r.value)}),g(1),c()}if(2&t){const
e=i.$implicit,n=i.index,s=d(3);p("ngClass",U(3,lU,s.isRowMatchModeSelected(e.value))),ie("tabindex",0===n?"0":null),a(1),S(e.label)}}function
uU(t,i){if(1&t){const
e=I();l(0,"ul",15),_(1,cU,2,5,"li",16),k(2,"li",17),l(3,"li",18),C("click",function(){return
v(e),d(2).onRowClearItemClick()})("keydown",function(s){return
v(e),d(2).onRowMatchModeKeyDown(s)})("keydown.enter",function(){return
v(e),d(2).onRowClearItemClick()}),g(4),c()()}if(2&t){const
e=d(2);a(1),p("ngForOf",e.matchModes),a(3),S(e.noFilterLabel)}}function
dU(t,i){if(1&t){const
e=I();l(0,"div",27)(1,"p-dropdown",28),C("ngModelChange",function(s){return
v(e),d(3).onOperatorChange(s)}),c()()}if(2&t){const
e=d(3);a(1),p("options",e.operatorOptions)("ngModel",e.operator)}}function
pU(t,i){if(1&t){const
e=I();l(0,"p-dropdown",33),C("ngModelChange",function(s){v(e);const
r=d().$implicit;return d(3).onMenuMa
tchModeChange(s,r)}),c()}if(2&t){const
e=d().$implicit;p("options",d(3).matchModes)("ngModel",e.matchMode)}}function
hU(t,i){if(1&t){const
e=I();l(0,"button",34),C("click",function(){v(e);const
s=d().$implicit;return
d(3).removeConstraint(s)}),c()}2&t&&p("label",d(4).removeRuleButtonLabel)}function
mU(t,i){if(1&t&&(l(0,"div",29),_(1,pU,1,2,"p-dropdown",30),k(2,"p-columnFilterFormElement",31),l(3,"div"),_(4,hU,1,1,"button",32),c()()),2&t){const
e=i.$implicit,n=d(3);a(1),p("ngIf",n.showMatchModes&&n.matchModes),a(1),p("type",n.type)("field",n.field)("filterConstraint",e)("filterTemplate",n.filterTemplate)("placeholder",n.placeholder)("minFractionDigits",n.minFractionDigits)("maxFractionDigits",n.maxFractionDigits)("prefix",n.prefix)("suffix",n.suffix)("locale",n.locale)("localeMatcher",n.localeMatcher)("currency",n.currency)("currencyDisplay",n.currencyDisplay)("useGrouping",n.useGrouping),a(2),p("ngIf",n.showRemoveIcon)}}function
fU(t,i){if(1&t){const e=I();l(0,"div",35)(1,"button",3
6),C("click",function(){return
v(e),d(3).addConstraint()}),c()()}if(2&t){const
e=d(3);a(1),p("label",e.addRuleButtonLabel)}}function gU(t,i){if(1&t){const
e=I();l(0,"button",37),C("click",function(){return
v(e),d(3).clearFilter()}),c()}2&t&&p("label",d(3).clearButtonLabel)}function
_U(t,i){if(1&t){const
e=I();l(0,"button",38),C("click",function(){return
v(e),d(3).applyFilter()}),c()}2&t&&p("label",d(3).applyButtonLabel)}function
bU(t,i){if(1&t&&(_(0,dU,2,2,"div",20),l(1,"div",21),_(2,mU,5,16,"div",22),c(),_(3,fU,2,1,"div",23),l(4,"div",24),_(5,gU,1,1,"button",25),_(6,_U,1,1,"button",26),c()),2&t){const
e=d(2);p("ngIf",e.isShowOperator),a(2),p("ngForOf",e.fieldConstraints),a(1),p("ngIf",e.isShowAddConstraint),a(2),p("ngIf",e.showClearButton),a(1),p("ngIf",e.showApplyButton)}}function
vU(t,i){1&t&&Y(0)}const CU=function(t){return{"p-column-filter-overlay
p-component p-fluid":!0,"p-column-filter-overlay-menu":t}};function
yU(t,i){if(1&t){const e=I();l(0,"div",11),C("click",function(){r
eturn v(e),d().onContentClick()})("(a)overlayAnimation.start",function(s){return
v(e),d().onOverlayAnimationStart(s)})("(a)overlayAnimation.done",function(s){return
v(e),d().onOverlayAnimationEnd(s)})("keydown.escape",function(){return
v(e),d().onEscape()}),_(1,aU,1,0,"ng-container",12),_(2,uU,5,2,"ul",13),_(3,bU,7,5,"ng-template",null,14,we),_(5,vU,1,0,"ng-container",12),c()}if(2&t){const
e=F(4),n=d();p("ngClass",U(8,CU,"menu"===n.display))("@overlayAnimation","visible"),a(1),p("ngTemplateOutlet",n.headerTemplate)("ngTemplateOutletContext",U(10,Zs,n.field)),a(1),p("ngIf","row"===n.display)("ngIfElse",e),a(3),p("ngTemplateOutlet",n.footerTemplate)("ngTemplateOutletContext",U(12,Zs,n.field))}}const
wU=function(t,i){return{"p-column-filter-row":t,"p-column-filter-menu":i}};let
Cd=(()=>{class t{constructor(){this.sortSource=new ct,this.selectionSource=new
ct,this.contextMenuSource=new ct,this.valueSource=new ct,this.totalRecordsSource=new
ct,this.columnsSource=new ct,this.resetSource=new c
t,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=X({token:t,factory:t.\u0275fac}),t})(),Dn=(()=>{class
t{constructor(e,n,s,r,o,u){this.el=e,this.zone=n,this.tableService=s,this.cd=r,this.filterService=o,this.overlayService=u,this.pageLinks=5,this.alwaysShowPaginator=!0,thi
s.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
H,this.selectionChange=new H,this.contextMenuSelectionChange=new
H,this.contextMenuSelectionMode="separate",this.rowTrackBy=(h,b)=>b,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
H,t
his.onRowUnselect=new H,this.onPage=new H,this.onSort=new H,this.onFilter=new
H,this.onLazyLoad=new H,this.onRowExpand=new H,this.onRowCollapse=new
H,this.onContextMenuSelect=new H,this.onColResize=new H,this.onColReorder=new
H,this.onRowReorder=new H,this.onEditInit=new H,this.onEditComplete=new
H,this.onEditCancel=new H,this.onHeaderCheckboxToggle=new H,this.sortFunction=new
H,this.firstChange=new H,this.rowsChange=new H,this.onStateSave=new
H,this.onStateRestore=new
H,this._value=[],this._totalRecords=0,this._first=0,this.selectionKeys={},this._sortOrder=1,this._selectAll=null,this.columnResizing=!1,this.rowGroupHeaderStyleObject={},this.id=pl(),this.virtualScrollInitialized=!1}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.forEac
h(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.frozenFooterTemplate=e.template;break;case"f
rozencolgroup":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():"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.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)&&this.sortMultiple()),e.selecti
on&&(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(Z.resolveFieldData(e,this.dataKey))]=1;else
this.selectionKeys[String(Z.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=null,this.scrollable&&this.res
etScrollTop()}sort(e){let
n=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
s=n.metaKey||n.ctrlKey,r=this.getSortMeta(e.field);r?s?r.order=-1*r.order:(this._multiSortMeta=[{field:e.field,order:-1*r.order}],this.resetPageOnSort&&(this._first=0,this.firstChange.emit(this._first),this.scrollable&&this.resetScrollTop())):((!s||!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,n=this.sortField?this.sortOrder:this.groupRowsByOrder;if(this.groupRowsBy&&this.so
rtField&&this.groupRowsBy!==this.sortField)return
this._multiSortMeta=[this.getGroupRowsMeta(),{field:this.sortField,order:this.sortOrder}],void
this.sortMultiple();if(e&&n){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:n}):(this.value.sort((r,o)=>{let
u=Z.resolveFieldData(r,e),h=Z.resolveFieldData(o,e),b=null;return
b=null==u&&null!=h?-1:null!=u&&null==h?1:null==u&&null==h?0:"string"==typeof
u&&"string"==typeof
h?u.localeCompare(h):u<h?-1:u>h?1:0,n*b}),this._value=[...this.value]),this.hasFilter()&&this._filter());let
s={field:e,order:n};this.onSort.emit(s),this.tableService.onSort(s)}}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,n)=>this.multisortField(e,n,this.multiSortMeta,0)),this._value=[...this.value]),this.hasFilter()&&this._filter()),this.onSort.emit({multisortmeta:this.multiSortMeta}),this.tableService.onSort(this.multiSortMeta))}multisortField(e,n,s,r){let
o=Z.resolveFieldData(e,s[r].field),u=Z.resolveFieldData(n,s[r].field),h=null;if(null==o&&null!=u)h=-1;else
if(null!=o&&null==u)h=1;else if(null==o&&null==u)h=0;else
if("string"==typeof o||o instanceof
String){if(o.localeCompare&&o!=u)return s[r].order*o.localeCompare(u)}else
h=o<u?-1:1;return
o==u?s.length-1>r?this.multisortField(e,n,s,r+1):0:s[r].order*h}getSortMeta(e){if(this.multiSortMeta&&this.multiSortMeta.length)for(let
n=0;n<this.multiSortMeta.length;n++)if(this.multiSortMeta[n].field===e)return
this.multiSortMeta[n];return null}isSorted(
e){if("single"===this.sortMode)return
this.sortField&&this.sortField===e;if("multiple"===this.sortMode){let
n=!1;if(this.multiSortMeta)for(let
s=0;s<this.multiSortMeta.length;s++)if(this.multiSortMeta[s].field==e){n=!0;break}return
n}}handleRowClick(e){let
n=e.originalEvent.target,s=n.nodeName,r=n.parentElement&&n.parentElement.nodeName;if("INPUT"!=s&&"BUTTON"!=s&&"A"!=s&&"INPUT"!=r&&"BUTTON"!=r&&"A"!=r&&!R.hasClass(e.originalEvent.target,"p-clickable")){if(this.selectionMode){let
o=e.rowData,u=e.rowIndex;if(this.preventSelectionSetterPropagation=!0,this.isMultipleSelectionMode()&&e.originalEvent.shiftKey&&null!=this.anchorRowIndex)R.clearSelection(),null!=this.rangeRowIndex&&this.clearSelectionRange(e.originalEvent),this.rangeRowIndex=u,this.selectRange(e.originalEvent,u);else{let
h=this.isSelected(o);if(!h&&!this.isRowSelectable(o,u))return;let
b=!this.rowTouched&&this.metaKeySelection,y=this.dataKey?String(Z.resolveFieldData(o,this.dataKey)):null;if(this.anchorRowIndex=u,this.ran
geRowIndex=u,b){let
w=e.originalEvent.metaKey||e.originalEvent.ctrlKey;if(h&&w){if(this.isSingleSelectionMode())this._selection=null,this.selectionKeys={},this.selectionChange.emit(null);else{let
M=this.findIndexInSelection(o);this._selection=this.selection.filter((E,L)=>L!=M),this.selectionChange.emit(this.selection),y&&delete
this.selectionKeys[y]}this.onRowUnselect.emit({originalEvent:e.originalEvent,data:o,type:"row"})}else
this.isSingleSelectionMode()?(this._selection=o,this.selectionChange.emit(o),y&&(this.selectionKeys={},this.selectionKeys[y]=1)):this.isMultipleSelectionMode()&&(w?this._selection=this.selection||[]:(this._selection=[],this.selectionKeys={}),this._selection=[...this.selection,o],this.selectionChange.emit(this.selection),y&&(this.selectionKeys[y]=1)),this.onRowSelect.emit({originalEvent:e.originalEvent,data:o,type:"row",index:u})}else
if("single"===this.selectionMode)h?(this._selection=null,this.selectionKeys={},this.selectionChange.emit(this.selection),this.o
nRowUnselect.emit({originalEvent:e.originalEvent,data:o,type:"row",index:u})):(this._selection=o,this.selectionChange.emit(this.selection),this.onRowSelect.emit({originalEvent:e.originalEvent,data:o,type:"row",index:u}),y&&(this.selectionKeys={},this.selectionKeys[y]=1));else
if("multiple"===this.selectionMode)if(h){let
w=this.findIndexInSelection(o);this._selection=this.selection.filter((M,E)=>E!=w),this.selectionChange.emit(this.selection),this.onRowUnselect.emit({originalEvent:e.originalEvent,data:o,type:"row",index:u}),y&&delete
this.selectionKeys[y]}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:u}),y&&(this.selectionKeys[y]=1)}this.tableService.onSelectionChange(),this.isStateful()&&this.saveState()}this.rowTouched=!1}}handleRowTouchEnd(e){this.rowTouched=!0}handleRowRightClick(e){if(this.contextMenu){const
n=e.rowData,s=e.rowIndex;if("separate"
===this.contextMenuSelectionMode)this.contextMenuSelection=n,this.contextMenuSelectionChange.emit(n),this.onContextMenuSelect.emit({originalEvent:e.originalEvent,data:n,index:e.rowIndex}),this.contextMenu.show(e.originalEvent),this.tableService.onContextMenu(n);else
if("joint"===this.contextMenuSelectionMode){this.preventSelectionSetterPropagation=!0;let
r=this.isSelected(n),o=this.dataKey?String(Z.resolveFieldData(n,this.dataKey)):null;if(!r){if(!this.isRowSelectable(n,s))return;this.isSingleSelectionMode()?(this.selection=n,this.selectionChange.emit(n),o&&(this.selectionKeys={},this.selectionKeys[o]=1)):this.isMultipleSelectionMode()&&(this._selection=this.selection?[...this.selection,n]:[n],this.selectionChange.emit(this.selection),o&&(this.selectionKeys[o]=1))}this.tableService.onSelectionChange(),this.contextMenu.show(e.originalEvent),this.onContextMenuSelect.emit({originalEvent:e,data:n,index:e.rowIndex})}}}selectRange(e,n){let
s,r;this.anchorRowIndex>n?(s=n,r=this.anchorRowIn
dex):this.anchorRowIndex<n?(s=this.anchorRowIndex,r=n):(s=n,r=n),this.lazy&&this.paginator&&(s-=this.first,r-=this.first);let
o=[];for(let u=s;u<=r;u++){let
h=this.filteredValue?this.filteredValue[u]:this.value[u];if(!this.isSelected(h)){if(!this.isRowSelectable(h,n))continue;o.push(h),this._selection=[...this.selection,h];let
b=this.dataKey?String(Z.resolveFieldData(h,this.dataKey)):null;b&&(this.selectionKeys[b]=1)}}this.selectionChange.emit(this.selection),this.onRowSelect.emit({originalEvent:e,data:o,type:"row"})}clearSelectionRange(e){let
n,s;this.rangeRowIndex>this.anchorRowIndex?(n=this.anchorRowIndex,s=this.rangeRowIndex):this.rangeRowIndex<this.anchorRowIndex?(n=this.rangeRowIndex,s=this.anchorRowIndex):(n=this.rangeRowIndex,s=this.rangeRowIndex);for(let
r=n;r<=s;r++){let
o=this.value[r],u=this.findIndexInSelection(o);this._selection=this.selection.filter((b,y)=>y!=u);let
h=this.dataKey?String(Z.resolveFieldData(o,this.dataKey)):null;h&&delete
this.selectionKeys[h],this.onR
owUnselect.emit({originalEvent:e,data:o,type:"row"})}}isSelected(e){return!(!e||!this.selection)&&(this.dataKey?void
0!==this.selectionKeys[Z.resolveFieldData(e,this.dataKey)]:this.selection instanceof
Array?this.findIndexInSelection(e)>-1:this.equals(e,this.selection))}findIndexInSelection(e){let
n=-1;if(this.selection&&this.selection.length)for(let
s=0;s<this.selection.length;s++)if(this.equals(e,this.selection[s])){n=s;break}return
n}isRowSelectable(e,n){return!(this.rowSelectable&&!this.rowSelectable({data:e,index:n}))}toggleRowWithRadio(e,n){if(this.preventSelectionSetterPropagation=!0,this.selection!=n){if(!this.isRowSelectable(n,e.rowIndex))return;this._selection=n,this.selectionChange.emit(this.selection),this.onRowSelect.emit({originalEvent:e.originalEvent,index:e.rowIndex,data:n,type:"radiobutton"}),this.dataKey&&(this.selectionKeys={},this.selectionKeys[String(Z.resolveFieldData(n,this.dataKey))]=1)}else
this._selection=null,this.selectionChange.emit(this.selection),this.
onRowUnselect.emit({originalEvent:e.originalEvent,index:e.rowIndex,data:n,type:"radiobutton"});this.tableService.onSelectionChange(),this.isStateful()&&this.saveState()}toggleRowWithCheckbox(e,n){this.selection=this.selection||[];let
s=this.isSelected(n),r=this.dataKey?String(Z.resolveFieldData(n,this.dataKey)):null;if(this.preventSelectionSetterPropagation=!0,s){let
o=this.findIndexInSelection(n);this._selection=this.selection.filter((u,h)=>h!=o),this.selectionChange.emit(this.selection),this.onRowUnselect.emit({originalEvent:e.originalEvent,index:e.rowIndex,data:n,type:"checkbox"}),r&&delete
this.selectionKeys[r]}else{if(!this.isRowSelectable(n,e.rowIndex))return;this._selection=this.selection?[...this.selection,n]:[n],this.selectionChange.emit(this.selection),this.onRowSelect.emit({originalEvent:e.originalEvent,index:e.rowIndex,data:n,type:"checkbox"}),r&&(this.selectionKeys[r]=1)}this.tableService.onSelectionChange(),this.isStateful()&&this.saveState()}toggleRowsWithCheckbox(e,n
){if(null!==this._selectAll)this.selectAllChange.emit({originalEvent:e,checked:n});else{const
s=this.selectionPageOnly?this.dataToRender:this.filteredValue||this.value||[];let
r=this.selectionPageOnly&&this._selection?this._selection.filter(o=>!s.some(u=>this.equals(o,u))):[];n&&(r=this.frozenValue?[...r,...this.frozenValue,...s]:[...r,...s],r=this.rowSelectable?r.filter((o,u)=>this.rowSelectable({data:o,index:u})):r),this._selection=r,this.preventSelectionSetterPropagation=!0,this.updateSelectionKeys(),this.selectionChange.emit(this._selection),this.tableService.onSelectionChange(),this.onHeaderCheckboxToggle.emit({originalEvent:e,checked:n}),this.isStateful()&&this.saveState()}}equals(e,n){return"equals"===this.compareSelectionBy?e===n:Z.equals(e,n,this.dataKey)}filter(e,n,s){this.filterTimeout&&clearTimeout(this.filterTimeout),this.isFilterBlank(e)?this.filters[n]&&delete
this.filters[n]:this.filters[n]={value:e,matchMode:s},this.filterTimeout=setTimeout(()=>{this._filter(),this.
filterTimeout=null},this.filterDelay),this.anchorRowIndex=null}filterGlobal(e,n){this.filter(e,"global",n)}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
n=0;n<this.value.length;n++){let u,s=!0,r=!1,o=!1;for(let h in
this.filters)if(this.filters.hasOwnProperty(h)&&"global"!==h){o=!0;let
b=h,y=this.filters[b];if(Array.isArray(y)){for(let w of
y)if(s=this.executeLocalFilter(b,this.value[n],w),w.operator===ml.OR&&s||w.operator===ml.AND&&!s)break}else
s=this.executeLocalFilter(b,this.value[n],y);if(!s)b
reak}if(this.filters.global&&!r&&e)for(let
h=0;h<e.length&&(r=this.filterService.filters[this.filters.global.matchMode](Z.resolveFieldData(this.value[n],e[h].field||e[h]),this.filters.global.value,this.filterLocale),!r);h++);u=this.filters.global?o?o&&s&&r:r:o&&s,u&&this.filteredValue.push(this.value[n])}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,n,s){let
r=s.value,o=s.matchMode||_t.STARTS_WITH,u=Z.resolveFieldData(n,e);return this.f
ilterService.filters[o](u,r,this.filterLocale)}hasFilter(){let e=!0;for(let n in
this.filters)if(this.filters.hasOwnProperty(n)){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()}getExportHeader(e){return
e[this.exportHeader]||e.header||e.field}exportCSV(e){let
n,s="",r=this.columns;e&&e.selectionOnly?n=this.selection||[]:(n=this.filteredValue||this.value,this.f
rozenValue&&(n=n?[...this.frozenValue,...n]:this.frozenValue));for(let
h=0;h<r.length;h++){let
b=r[h];!1!==b.exportable&&b.field&&(s+='"'+this.getExportHeader(b)+'"',h<r.length-1&&(s+=this.csvSeparator))}n.forEach((h,b)=>{s+="\n";for(let
y=0;y<r.length;y++){let w=r[y];if(!1!==w.exportable&&w.field){let
M=Z.resolveFieldData(h,w.field);M=null!=M?this.exportFunction?this.exportFunction({data:M,field:w.field}):String(M).replace(/"/g,'""'):"",s+='"'+M+'"',y<r.length-1&&(s+=this.csvSeparator)}}});let
o=new
Blob([s],{type:"text/csv;charset=utf-8;"}),u=document.createElement("a");u.style.display="none",document.body.appendChild(u),void
0!==u.download?(u.setAttribute("href",URL.createObjectURL(o)),u.setAttribute("download",this.exportFilename+".csv"),u.click()):(s="data:text/csv;charset=utf-8,"+s,window.open(encodeURI(s))),document.body.removeChild(u)}resetScrollTop(){this.virtualScroll?this.scrollToVirtualIndex(0):this.scrollTo({top:0})}scrollToVirtualIndex(e){this.virtualScrollBody&&this.v
irtualScrollBody.scrollToIndex(e)}onScrollIndexChange(e){this.lazy&&(this.virtualScrollTimeout&&clearTimeout(this.virtualScrollTimeout),this.virtualScrollTimeout=setTimeout(()=>{let
n=Math.floor(e/this.rows),s=0===n?0:(n-1)*this.rows,r=0===n?2*this.rows:3*this.rows;n!==this.virtualPage&&(this.virtualPage=n,this.lazyLoadOnInit||this.virtualScrollInitialized?this.onLazyLoad.emit({first:s,rows:r,sortField:this.sortField,sortOrder:this.sortOrder,filters:this.filters,globalFilter:this.filters&&this.filters.global?this.filters.global.value:null,multiSortMeta:this.multiSortMeta}):this.virtualScrollInitialized=!0)},this.virtualScrollDelay))}scrollTo(e){this.virtualScrollBody?this.virtualScrollBody.scrollTo(e):this.wrapperViewChild&&this.wrapperViewChild.nativeElement&&(this.wrapperViewChild.nativeElement.scrollTo?this.wrapperViewChild.nativeElement.scrollTo(e):(this.wrapperViewChild.nativeElement.scrollLeft=e.left,this.wrapperViewChild.nativeElement.scrollTop=e.top))}updateEditingCell(e,n,s
,r){this.editingCell=e,this.editingCellData=n,this.editingCellField=s,this.editingCellRowIndex=r,this.bindDocumentEditListener()}isEditingCellValid(){return
this.editingCell&&0===R.find(this.editingCell,".ng-invalid.ng-dirty").length}bindDocumentEditListener(){this.documentEditListener||(this.documentEditListener=e=>{this.editingCell&&!this.selfClick&&this.isEditingCellValid()&&(R.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.do
cumentEditListener=null)}initRowEdit(e){let
n=String(Z.resolveFieldData(e,this.dataKey));this.editingRowKeys[n]=!0}saveRowEdit(e,n){if(0===R.find(n,".ng-invalid.ng-dirty").length){let
s=String(Z.resolveFieldData(e,this.dataKey));delete
this.editingRowKeys[s]}}cancelRowEdit(e){let
n=String(Z.resolveFieldData(e,this.dataKey));delete
this.editingRowKeys[n]}toggleRow(e,n){if(!this.dataKey)throw new Error("dataKey must
be defined to use row expansion");let
s=String(Z.resolveFieldData(e,this.dataKey));null!=this.expandedRowKeys[s]?(delete
this.expandedRowKeys[s],this.onRowCollapse.emit({originalEvent:n,data:e})):("single"===this.rowExpandMode&&(this.expandedRowKeys={}),this.expandedRowKeys[s]=!0,this.onRowExpand.emit({originalEvent:n,data:e})),n&&n.preventDefault(),this.isStateful()&&this.saveState()}isRowExpanded(e){return!0===this.expandedRowKeys[String(Z.resolveFieldData(e,this.dataKey))]}isRowEditing(e){return!0===this.editingRowKeys[String(Z.resolveFieldData(e,this.dataKey))]}isSingl
eSelectionMode(){return"single"===this.selectionMode}isMultipleSelectionMode(){return"multiple"===this.selectionMode}onColumnResizeBegin(e){let
n=R.getOffset(this.containerViewChild.nativeElement).left;this.resizeColumnElement=e.target.parentElement,this.columnResizing=!0,this.lastResizerHelperX=e.pageX-n+this.containerViewChild.nativeElement.scrollLeft,this.onColumnResize(e),e.preventDefault()}onColumnResize(e){let
n=R.getOffset(this.containerViewChild.nativeElement).left;R.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-n+this.containerViewChild.nativeElement.scrollLeft+"px",this.resizeHelperViewChild.nativeElement.style.display="block"}onColumnResizeEnd(){let
e=this.resizeHelperViewChild.nativeElement.offsetLeft-this.lastResizerHelperX
,s=this.resizeColumnElement.offsetWidth+e;if(s>=(this.resizeColumnElement.style.minWidth||15)){if("fit"===this.columnResizeMode){let
u=this.resizeColumnElement.nextElementSibling.offsetWidth-e;s>15&&u>15&&this.resizeTableCells(s,u)}else
if("expand"===this.columnResizeMode){let
o=this.tableViewChild.nativeElement.offsetWidth+e;this.tableViewChild.nativeElement.style.width=o+"px",this.tableViewChild.nativeElement.style.minWidth=o+"px",this.resizeTableCells(s,null)}this.onColResize.emit({element:this.resizeColumnElement,delta:e}),this.isStateful()&&this.saveState()}this.resizeHelperViewChild.nativeElement.style.display="none",R.removeClass(this.containerViewChild.nativeElement,"p-unselectable-text")}resizeTableCells(e,n){let
s=R.index(this.resizeColumnElement),r=[];const
o=R.findSingle(this.containerViewChild.nativeElement,".p-datatable-thead");R.find(o,"tr
>
th").forEach(b=>r.push(R.getOuterWidth(b))),this.destroyStyleElement(),this.createStyleElement();let
h="";r.forEach((b,y)=>{let
w=y===s?e:n&&y===s+1?n:b;h+=`\n #${this.id} .p-datatable-thead
> tr > th:nth-child(${y+1}),\n #${this.id} .p-datatable-tbody > tr
> td:nth-child(${y+1}),\n #${this.id} .p-datatable-tfoot > tr >
td:nth-child(${y+1}) {\n ${this.scrollable?`flex: 1 1 ${w}px
!important`:`width: ${w}px !important`}\n }\n
`}),this.styleElement.innerHTML=h}onColumnDragStart(e,n){this.reorderIconWidth=R.getHiddenElementOuterWidth(this.reorderIndicatorUpViewChild.nativeElement),this.reorderIconHeight=R.getHiddenElementOuterHeight(this.reorderIndicatorDownViewChild.nativeElement),this.draggedColumn=n,e.dataTransfer.setData("text","b")}onColumnDragEnter(e,n){if(this.reorderableColumns&&this.draggedColumn&&n){e.preventDefault();let
s=R.getOffset(this.containerViewChild.nativeElement),r=R.getOffset(n);if(this.draggedColumn!=n){let
o=R.indexWithinGroup(this.draggedColumn,"preorderablecolumn"),u=R.indexWithinGroup(n,"preorder
ablecolumn"),h=r.left-s.left,y=r.left+n.offsetWidth/2;this.reorderIndicatorUpViewChild.nativeElement.style.top=r.top-s.top-(this.reorderIconHeight-1)+"px",this.reorderIndicatorDownViewChild.nativeElement.style.top=r.top-s.top+n.offsetHeight+"px",e.pageX>y?(this.reorderIndicatorUpViewChild.nativeElement.style.left=h+n.offsetWidth-Math.ceil(this.reorderIconWidth/2)+"px",this.reorderIndicatorDownViewChild.nativeElement.style.left=h+n.offsetWidth-Math.ceil(this.reorderIconWidth/2)+"px",this.dropPosition=1):(this.reorderIndicatorUpViewChild.nativeElement.style.left=h-Math.ceil(this.reorderIconWidth/2)+"px",this.reorderIndicatorDownViewChild.nativeElement.style.left=h-Math.ceil(this.reorderIconWidth/2)+"px",this.dropPosition=-1),u-o==1&&-1===this.dropPosition||u-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,n){if(e.preventDefault(),this.draggedColumn){let
s=R.indexWithinGroup(this.draggedColumn,"preorderablecolumn"),r=R.indexWithinGroup(n,"preorderablecolumn"),o=s!=r;o&&(r-s==1&&-1===this.dropPosition||s-r==1&&1===this.dropPosition)&&(o=!1),o&&r<s&&1===this.dropPosition&&(r+=1),o&&r>s&&-1===this.dropPosition&&(r-=1),o&&(Z.reorderArray(this.columns,s,r),this.onColReorder.emit({dragIndex:s,dropIndex:r,columns:this.columns}),this.isStateful()&&this.zone.runOutsideAngular(()=>{setTimeout(()=>{this.saveState()})})),this.reorderIndicatorUpViewChild.nativeElement.style.display="none",this.reorderIndicatorDownViewChild.nativeElement.style.d
isplay="none",this.draggedColumn.draggable=!1,this.draggedColumn=null,this.dropPosition=null}}onRowDragStart(e,n){this.rowDragging=!0,this.draggedRowIndex=n,e.dataTransfer.setData("text","b")}onRowDragOver(e,n,s){if(this.rowDragging&&this.draggedRowIndex!==n){let
r=R.getOffset(s).top+R.getWindowScrollTop(),o=e.pageY,u=r+R.getOuterHeight(s)/2,h=s.previousElementSibling;o<u?(R.removeClass(s,"p-datatable-dragpoint-bottom"),this.droppedRowIndex=n,h?R.addClass(h,"p-datatable-dragpoint-bottom"):R.addClass(s,"p-datatable-dragpoint-top")):(h?R.removeClass(h,"p-datatable-dragpoint-bottom"):R.addClass(s,"p-datatable-dragpoint-top"),this.droppedRowIndex=n+1,R.addClass(s,"p-datatable-dragpoint-bottom"))}}onRowDragLeave(e,n){let
s=n.previousElementSibling;s&&R.removeClass(s,"p-datatable-dragpoint-bottom"),R.removeClass(n,"p-datatable-dragpoint-bottom"),R.removeClass(n,"p-datatable-dragpoint-top")}onRowDragEnd(e){this.rowDragging=!1,this.draggedRowIndex=null,this.droppedRowIndex=null}onRowDrop(e,
n){if(null!=this.droppedRowIndex){let
s=this.draggedRowIndex>this.droppedRowIndex?this.droppedRowIndex:0===this.droppedRowIndex?0:this.droppedRowIndex-1;Z.reorderArray(this.value,this.draggedRowIndex,s),this.virtualScroll&&(this._value=[...this._value]),this.onRowReorder.emit({dragIndex:this.draggedRowIndex,dropIndex:s})}this.onRowDragLeave(e,n),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
n={};this.paginator&&(n.first=this.first,n.rows=this.rows),this.sortField&&(n.sortField=this.sortField,n.sortOrder=this.sortOrder),this.multiSortMeta&&(
n.multiSortMeta=this.multiSortMeta),this.hasFilter()&&(n.filters=this.filters),this.resizableColumns&&this.saveColumnWidths(n),this.reorderableColumns&&this.saveColumnOrder(n),this.selection&&(n.selection=this.selection),Object.keys(this.expandedRowKeys).length&&(n.expandedRowKeys=this.expandedRowKeys),e.setItem(this.stateKey,JSON.stringify(n)),this.onStateSave.emit(n)}clearState(){const
e=this.getStorage();this.stateKey&&e.removeItem(this.stateKey)}restoreState(){const
n=this.getStorage().getItem(this.stateKey),s=/\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}.\d{3}Z/;if(n){let
o=JSON.parse(n,function(o,u){return"string"==typeof u&&s.test(u)?new
Date(u):u});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.filt
ers&&(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
n=[];R.find(this.containerViewChild.nativeElement,".p-datatable-thead > tr >
th").forEach(r=>n.push(R.getOuterWidth(r))),e.columnWidths=n.join(","),"expand"===this.columnResizeMode&&(e.tableWidth=R.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),Z.isNotEmpty(e))
{this.createStyleElement();let n="";e.forEach((s,r)=>{n+=`\n
#${this.id} .p-datatable-thead > tr > th:nth-child(${r+1}),\n
#${this.id} .p-datatable-tbody > tr > td:nth-child(${r+1}),\n
#${this.id} .p-datatable-tfoot > tr > td:nth-child(${r+1}) {\n
${this.scrollable?`flex: 1 1 ${s}px !important`:`width: ${s}px !important`}\n
}\n
`}),this.styleElement.innerHTML=n}}}saveColumnOrder(e){if(this.columns){let
n=[];this.columns.map(s=>{n.push(s.field||s.key)}),e.columnOrder=n}}restoreColumnOrder(){const
n=this.getStorage().getItem(this.stateKey);if(n){let r=JSON.parse(n).columnOrder;if(r){let
o=[];r.map(u=>{let
h=this.findColumnByKey(u);h&&o.push(h)}),this.columnOrderStateRestored=!0,this.columns=o}}}findColumnByKey(e){if(!this.columns)return
null;for(let n of this.columns)if(n.key===e||n.field===e)return
n}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.virtualScrollInitialized=null,this.virtualScrollSubscription&&this.virtualScrollSubscription.unsubscribe(),this.destroyStyleElement(),this.destroyResponsiveStyle()}}return
t.\u0275fac=function(e){return
new(e||t)(D(De),D(nt),D(Cd),D(rt),D(hl),D(Ks))},t.\u0275cmp=z({type:t,selectors:[["p-table"]],contentQueries:function(e,n,s){if(1&e&&st(s,ne,4),2&e){let
r;V(r=B())&&(n.templates=r)}},viewQuery:function(e,n){if(1&e&&(W(Eq,5),W(Rq,5),W(Lq,5),W(Oq,5),W(Aq,5),W(Pq
,5),W(Fq,5),W(Po,5)),2&e){let
s;V(s=B())&&(n.containerViewChild=s.first),V(s=B())&&(n.resizeHelperViewChild=s.first),V(s=B())&&(n.reorderIndicatorUpViewChild=s.first),V(s=B())&&(n.reorderIndicatorDownViewChild=s.first),V(s=B())&&(n.wrapperViewChild=s.first),V(s=B())&&(n.tableViewChild=s.first),V(s=B())&&(n.tableHeaderViewChild=s.first),V(s=B())&&(n.virtualScrollBody=s.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",sho
wJumpToPageInput:"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",filterLocale:"filterLocale",expandedRowKeys:"expandedRowKeys",editingRowKeys:"editingRowKeys",rowExpandMode:"rowExpandMode",scrollable:"scrollable",scrollDirection:"scrollDirection",rowGroupMode:"rowGroupMode",scrollHeight:"scrollHeight",virtualScroll:"virtualScroll",virtualScrollDelay:"virtualScrol
lDelay",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",exportHeader:"exportHeader",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",c
ontextMenuSelectionChange:"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:[Pe([Cd]),fn],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","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","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","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"],["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,n){1&e&&(l(0,"div",0,1),_(
2,Nq,2,2,"div",2),_(3,Bq,2,1,"div",3),_(4,Hq,1,17,"p-paginator",4),l(5,"div",5,6),_(7,$q,8,16,"table",7),_(8,Zq,10,21,"cdk-virtual-scroll-viewport",8),c(),_(9,Xq,1,17,"p-paginator",9),_(10,tG,2,1,"div",10),_(11,nG,2,0,"div",11),_(12,iG,2,0,"span",12),_(13,sG,2,0,"span",13),c()),2&e&&(me(n.styleClass),p("ngStyle",n.style)("ngClass",Hh(16,rG,[n.rowHover||n.selectionMode,n.autoLayout,n.resizableColumns,n.resizableColumns&&"fit"===n.columnResizeMode,n.scrollable,n.scrollable&&"vertical"===n.scrollDirection,n.scrollable&&"horizontal"===n.scrollDirection,n.scrollable&&"both"===n.scrollDirection,n.scrollable&&"flex"===n.scrollHeight,"stack"===n.responsiveLayout,"scroll"===n.responsiveLayout,n.responsive,null!=n.headerGroupedTemplate,null!=n.footerGroupedTemplate])),ie("id",n.id),a(2),p("ngIf",n.loading&&n.showLoader),a(1),p("ngIf",n.captionTemplate),a(1),p("ngIf",n.paginator&&("top"===n.paginatorPosition||"both"==n.paginatorPosition)),a(1),p("ngStyle",U(31,oG,n.scrollHeight)),a(2),p("ngIf"
,!n.virtualScroll),a(1),p("ngIf",n.virtualScroll),a(1),p("ngIf",n.paginator&&("bottom"===n.paginatorPosition||"both"==n.paginatorPosition)),a(1),p("ngIf",n.summaryTemplate),a(1),p("ngIf",n.resizableColumns),a(1),p("ngIf",n.reorderableColumns),a(1),p("ngIf",n.reorderableColumns))},directives:function(){return[ET,TU,Po,lt,Le,Q,Rt,Qf]},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-responsi
ve-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-vi
rtual-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-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-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-s
pace:nowrap}.p-datatable-resizable
.p-resizable-column:not(.p-frozen-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-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{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;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})(),TU=(()=>{cla
ss
t{constructor(e,n,s,r){this.dt=e,this.tableService=n,this.cd=s,this.el=r,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,n,s){let
r=Z.resolveFieldData(n,this.dt.groupRowsBy),o=e[s-1];return!o||r!==Z.resolveFieldData(o,this.dt.groupRowsBy)}shouldRenderRowGroupFooter(e,n,s){let
r=Z.resolveFieldData(n,this.dt.groupRowsBy),o=e[s+1];return!o||r!==Z.resolveFieldData(o,this.dt.groupRowsBy)}shouldRenderRowspan(e,n,s){let
r=Z.resolveFieldData(n,this.dt.groupRowsBy),o=e[s-1];return!o||r!==Z.resolveFieldData(o,
this.dt.groupRowsBy)}calculateRowGroupSize(e,n,s){let
r=Z.resolveFieldData(n,this.dt.groupRowsBy),o=r,u=0;for(;r===o;){u++;let
h=e[++s];if(!h)break;o=Z.resolveFieldData(h,this.dt.groupRowsBy)}return
1===u?null:u}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}updateFrozenRowStickyPosition(){this.el.nativeElement.style.top=R.getOuterHeight(this.el.nativeElement.previousElementSibling)+"px"}updateFrozenRowGroupHeaderStickyPosition(){if(this.el.nativeElement.previousElementSibling){let
e=R.getOuterHeight(this.el.nativeElement.previousElementSibling);this.dt.rowGroupHeaderStyleObject.top=e+"px"}}}return
t.\u0275fac=function(e){return
new(e||t)(D(Dn),D(Cd),D(rt),D(De))},t.\u0275cmp=z({type:t,selectors:[["","pTableBody",""]],hostAttrs:[1,"p-element"],inputs:{columns:["pTableBody","columns"],template:["pTableBodyTemplate","template"],value:"value",frozen:"frozen",frozenRows:"frozenRows"},attrs:aG,decls:6,vars:6,consts:[[4,"ngIf"],["ngFor","",3,"ngForOf","ngForTrackBy"],["r
ole","row",4,"ngIf"],["role","row"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],["cdkVirtualFor","",3,"cdkVirtualForOf","cdkVirtualForTrackBy","cdkVirtualForTemplateCacheSize"]],template:function(e,n){1&e&&(_(0,bG,2,2,"ng-container",0),_(1,yG,2,3,"ng-container",0),_(2,RG,2,2,"ng-container",0),_(3,FG,2,2,"ng-container",0),_(4,VG,2,5,"ng-container",0),_(5,HG,2,5,"ng-container",0)),2&e&&(p("ngIf",!n.dt.expandedRowTemplate&&!n.dt.virtualScroll),a(1),p("ngIf",!n.dt.expandedRowTemplate&&n.dt.virtualScroll),a(1),p("ngIf",n.dt.expandedRowTemplate&&!(n.frozen&&n.dt.frozenExpandedRowTemplate)),a(1),p("ngIf",n.dt.frozenExpandedRowTemplate&&n.frozen),a(1),p("ngIf",n.dt.loading),a(1),p("ngIf",n.dt.isEmpty()&&!n.dt.loading))},directives:[Q,at,Rt,Jf],encapsulation:2}),t})(),SU=(()=>{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)(D(Dn)
)},t.\u0275dir=le({type:t,selectors:[["","pRowGroupHeader",""]],hostAttrs:[1,"p-rowgroup-header","p-element"],hostVars:2,hostBindings:function(e,n){2&e&&_i("top",n.getFrozenRowGroupHeaderStickyPosition)}}),t})(),yd=(()=>{class
t{constructor(e){this.dt=e,this.isEnabled()&&(this.subscription=this.dt.tableService.sortSource$.subscribe(n=>{this.updateSortState()}))}ngOnInit(){this.isEnabled()&&this.updateSortState()}updateSortState(){this.sorted=this.dt.isSorted(this.field),this.sortOrder=this.sorted?1===this.dt.sortOrder?"ascending":"descending":"none"}onClick(e){this.isEnabled()&&!this.isFilterElement(e.target)&&(this.updateSortState(),this.dt.sort({originalEvent:e,field:this.field}),R.clearSelection())}onEnterKey(e){this.onClick(e)}isEnabled(){return!0!==this.pSortableColumnDisabled}isFilterElement(e){return
R.hasClass(e,"pi-filter-icon")||R.hasClass(e,"p-column-filter-menu-button")}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}}return
t.\u0275fac=function(e){retur
n
new(e||t)(D(Dn))},t.\u0275dir=le({type:t,selectors:[["","pSortableColumn",""]],hostAttrs:[1,"p-element"],hostVars:7,hostBindings:function(e,n){1&e&&C("click",function(r){return
n.onClick(r)})("keydown.enter",function(r){return
n.onEnterKey(r)}),2&e&&(ie("tabindex",n.isEnabled()?"0":null)("role","columnheader")("aria-sort",n.sortOrder),si("p-sortable-column",n.isEnabled())("p-highlight",n.sorted))},inputs:{field:["pSortableColumn","field"],pSortableColumnDisabled:"pSortableColumnDisabled"}}),t})(),wd=(()=>{class
t{constructor(e,n){this.dt=e,this.cd=n,this.subscription=this.dt.tableService.sortSource$.subscribe(s=>{this.updateSortState()})}ngOnInit(){this.updateSortState()}onClick(e){e.preventDefault()}updateSortState(){if("single"===this.dt.sortMode)this.sortOrder=this.dt.isSorted(this.field)?this.dt.sortOrder:0;else
if("multiple"===this.dt.sortMode){let
e=this.dt.getSortMeta(this.field);this.sortOrder=e?e.order:0}this.cd.markForCheck()}getMultiSortMetaIndex(){let
e=this.dt._multiS
ortMeta,n=-1;if(e&&"multiple"===this.dt.sortMode&&(this.dt.showInitialSortBadge||e.length>1))for(let
s=0;s<e.length;s++){let
r=e[s];if(r.field===this.field||r.field===this.field){n=s;break}}return
n}getBadgeValue(){let e=this.getMultiSortMetaIndex();return
this.dt.groupRowsBy&&e>-1?e:e+1}isMultiSorted(){return"multiple"===this.dt.sortMode&&this.getMultiSortMetaIndex()>-1}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}}return
t.\u0275fac=function(e){return
new(e||t)(D(Dn),D(rt))},t.\u0275cmp=z({type:t,selectors:[["p-sortIcon"]],hostAttrs:[1,"p-element"],inputs:{field:"field"},decls:2,vars:6,consts:[[1,"p-sortable-column-icon","pi","pi-fw",3,"ngClass"],["class","p-sortable-column-badge",4,"ngIf"],[1,"p-sortable-column-badge"]],template:function(e,n){1&e&&(k(0,"i",0),_(1,qG,2,1,"span",1)),2&e&&(p("ngClass",Qt(2,GG,1===n.sortOrder,-1===n.sortOrder,0===n.sortOrder)),a(1),p("ngIf",n.isMultiSorted()))},directives:[Le,Q],encapsulation:2,changeDetection:0}),t})(),j2=(()=>{c
lass
t{constructor(e,n){this.dt=e,this.tableService=n,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
s=this.findNextSelectableRow(e.currentTarget);s&&s.focus(),e.preventDefault()}onArrowUpKeyDown(e){if(!this.isEnabled())return;const
s=this.findPrevSelectableRow(e.currentTarget);s&&s.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.virtua
lScrollBody.elementRef.nativeElement.focus()}findNextSelectableRow(e){let
n=e.nextElementSibling;return
n?R.hasClass(n,"p-selectable-row")?n:this.findNextSelectableRow(n):null}findPrevSelectableRow(e){let
n=e.previousElementSibling;return
n?R.hasClass(n,"p-selectable-row")?n:this.findPrevSelectableRow(n):null}isEnabled(){return!0!==this.pSelectableRowDisabled}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}}return
t.\u0275fac=function(e){return
new(e||t)(D(Dn),D(Cd))},t.\u0275dir=le({type:t,selectors:[["","pSelectableRow",""]],hostAttrs:[1,"p-element"],hostVars:5,hostBindings:function(e,n){1&e&&C("click",function(r){return
n.onClick(r)})("touchend",function(r){return
n.onTouchEnd(r)})("keydown.arrowdown",function(r){return
n.onArrowDownKeyDown(r)})("keydown.arrowup",function(r){return
n.onArrowUpKeyDown(r)})("keydown.enter",function(r){return
n.onEnterKeyDown(r)})("keydown.shift.enter",function(r){return
n.onEnterKeyDown(r)})("keydown.meta.enter",function(r){return
n.onEnterKeyDown(r)})("keydown.pagedown",function(){return
n.onPageDownKeyDown()})("keydown.pageup",function(){return
n.onPageDownKeyDown()})("keydown.home",function(){return
n.onPageDownKeyDown()})("keydown.end",function(){return
n.onPageDownKeyDown()})("keydown.space",function(){return
n.onSpaceKeydown()}),2&e&&(ie("tabindex",n.isEnabled()?0:void
0),si("p-selectable-row",n.isEnabled())("p-highlight",n.selected))},inputs:{data:["pSelectableRow","data"],index:["pSelectableRowIndex","index"],pSelectableRowDisabled:"pSelectableRowDisabled"}}),t})(),$2=(()=>{class
t{constructor(e,n,s){this.dt=e,this.el=n,this.zone=s}ngAfterViewInit(){this.isEnabled()&&R.addClass(this.el.nativeElement,"p-editable-column")}onClick(e){if(this.isEnabled())if(this.dt.selfClick=!0,this.dt.editingCell){if(this.dt.editingCell!==this.el.nativeElement){if(!this.dt.isEditingCellValid())return;this.closeEditingCell(!0,e),this.openCell()}}else
this.openCell()}openCell(){this.dt.updateEditingCell(this.el.nativeEleme
nt,this.data,this.field,this.rowIndex),R.addClass(this.el.nativeElement,"p-cell-editing"),this.dt.onEditInit.emit({field:this.field,data:this.data,index:this.rowIndex}),this.zone.runOutsideAngular(()=>{setTimeout(()=>{let
n=R.findSingle(this.el.nativeElement,this.pFocusCellSelector||"input, textarea,
select");n&&n.focus()},50)}),this.overlayEventListener=e=>{this.el&&this.el.nativeElement.contains(e.target)&&(this.dt.selfClick=!0)},this.dt.overlaySubscription=this.dt.overlayService.clickObservable.subscribe(this.overlayEventListener)}closeEditingCell(e,n){e?this.dt.onEditComplete.emit({field:this.dt.editingCellField,data:this.dt.editingCellData,originalEvent:n,index:this.dt.editingCellRowIndex}):this.dt.onEditCancel.emit({field:this.dt.editingCellField,data:this.dt.editingCellData,originalEvent:n,index:this.dt.editingCellRowIndex}),R.removeClass(this.dt.editingCell,"p-cell-editing"),this.dt.editingCell=null,this.dt.editingCellData=null,this.dt.editingCellField=null,this.dt.unbindDoc
umentEditListener(),this.dt.overlaySubscription&&this.dt.overlaySubscription.unsubscribe()}onEnterKeyDown(e){this.isEnabled()&&(this.dt.isEditingCellValid()&&this.closeEditingCell(!0,e),e.preventDefault())}onEscapeKeyDown(e){this.isEnabled()&&(this.dt.isEditingCellValid()&&this.closeEditingCell(!1,e),e.preventDefault())}onShiftKeyDown(e){this.isEnabled()&&(e.shiftKey?this.moveToPreviousCell(e):this.moveToNextCell(e))}onArrowDown(e){if(this.isEnabled()){let
n=this.findCell(e.target);if(n){let
s=R.index(n),r=this.findNextEditableColumnByIndex(n,s);r&&(this.dt.isEditingCellValid()&&this.closeEditingCell(!0,e),R.invokeElementMethod(e.target,"blur"),R.invokeElementMethod(r,"click")),e.preventDefault()}}}onArrowUp(e){if(this.isEnabled()){let
n=this.findCell(e.target);if(n){let
s=R.index(n),r=this.findPrevEditableColumnByIndex(n,s);r&&(this.dt.isEditingCellValid()&&this.closeEditingCell(!0,e),R.invokeElementMethod(e.target,"blur"),R.invokeElementMethod(r,"click")),e.preventDefault()}}}onAr
rowLeft(e){this.isEnabled()&&this.moveToPreviousCell(e)}onArrowRight(e){this.isEnabled()&&this.moveToNextCell(e)}findCell(e){if(e){let
n=e;for(;n&&!R.hasClass(n,"p-cell-editing");)n=n.parentElement;return
n}return null}moveToPreviousCell(e){let n=this.findCell(e.target);if(n){let
s=this.findPreviousEditableColumn(n);s&&(this.dt.isEditingCellValid()&&this.closeEditingCell(!0,e),R.invokeElementMethod(e.target,"blur"),R.invokeElementMethod(s,"click"),e.preventDefault())}}moveToNextCell(e){let
n=this.findCell(e.target);if(n){let
s=this.findNextEditableColumn(n);s&&(this.dt.isEditingCellValid()&&this.closeEditingCell(!0,e),R.invokeElementMethod(e.target,"blur"),R.invokeElementMethod(s,"click"),e.preventDefault())}}findPreviousEditableColumn(e){let
n=e.previousElementSibling;if(!n){let
s=e.parentElement.previousElementSibling;s&&(n=s.lastElementChild)}return
n?R.hasClass(n,"p-editable-column")?n:this.findPreviousEditableColumn(n):null}findNextEditableColumn(e){let
n=e.nextElementSibling;i
f(!n){let s=e.parentElement.nextElementSibling;s&&(n=s.firstElementChild)}return
n?R.hasClass(n,"p-editable-column")?n:this.findNextEditableColumn(n):null}findNextEditableColumnByIndex(e,n){let
s=e.parentElement.nextElementSibling;if(s){let r=s.children[n];return
r&&R.hasClass(r,"p-editable-column")?r:null}return
null}findPrevEditableColumnByIndex(e,n){let
s=e.parentElement.previousElementSibling;if(s){let r=s.children[n];return
r&&R.hasClass(r,"p-editable-column")?r:null}return
null}isEnabled(){return!0!==this.pEditableColumnDisabled}ngOnDestroy(){this.dt.overlaySubscription&&this.dt.overlaySubscription.unsubscribe()}}return
t.\u0275fac=function(e){return
new(e||t)(D(Dn),D(De),D(nt))},t.\u0275dir=le({type:t,selectors:[["","pEditableColumn",""]],hostAttrs:[1,"p-element"],hostBindings:function(e,n){1&e&&C("click",function(r){return
n.onClick(r)})("keydown.enter",function(r){return
n.onEnterKeyDown(r)})("keydown.escape",function(r){return
n.onEscapeKeyDown(r)})("keydown.tab",function(
r){return n.onShiftKeyDown(r)})("keydown.shift.tab",function(r){return
n.onShiftKeyDown(r)})("keydown.meta.tab",function(r){return
n.onShiftKeyDown(r)})("keydown.arrowdown",function(r){return
n.onArrowDown(r)})("keydown.arrowup",function(r){return
n.onArrowUp(r)})("keydown.arrowleft",function(r){return
n.onArrowLeft(r)})("keydown.arrowright",function(r){return
n.onArrowRight(r)})},inputs:{data:["pEditableColumn","data"],field:["pEditableColumnField","field"],rowIndex:["pEditableColumnRowIndex","rowIndex"],pEditableColumnDisabled:"pEditableColumnDisabled",pFocusCellSelector:"pFocusCellSelector"}}),t})(),xU=(()=>{class
t{constructor(e){this.el=e}isEnabled(){return!0!==this.pEditableRowDisabled}}return
t.\u0275fac=function(e){return
new(e||t)(D(De))},t.\u0275dir=le({type:t,selectors:[["","pEditableRow",""]],hostAttrs:[1,"p-element"],inputs:{data:["pEditableRow","data"],pEditableRowDisabled:"pEditableRowDisabled"}}),t})(),DU=(()=>{class
t{constructor(e,n,s){this.dt=e,this.editableColumn
=n,this.editableRow=s}ngAfterContentInit(){this.templates.forEach(e=>{switch(e.getType()){case"input":this.inputTemplate=e.template;break;case"output":this.outputTemplate=e.template}})}get
editing(){return
this.dt.editingCell&&this.editableColumn&&this.dt.editingCell===this.editableColumn.el.nativeElement||this.editableRow&&"row"===this.dt.editMode&&this.dt.isRowEditing(this.editableRow.data)}}return
t.\u0275fac=function(e){return
new(e||t)(D(Dn),D($2,8),D(xU,8))},t.\u0275cmp=z({type:t,selectors:[["p-cellEditor"]],contentQueries:function(e,n,s){if(1&e&&st(s,ne,4),2&e){let
r;V(r=B())&&(n.templates=r)}},hostAttrs:[1,"p-element"],decls:2,vars:2,consts:[[4,"ngIf"],[4,"ngTemplateOutlet"]],template:function(e,n){1&e&&(_(0,zG,2,1,"ng-container",0),_(1,$G,2,1,"ng-container",0)),2&e&&(p("ngIf",n.editing),a(1),p("ngIf",!n.editing))},directives:[Q,Rt],encapsulation:2}),t})(),MU=(()=>{class
t{constructor(e){this.dt=e,this.useGrouping=!0}ngOnInit(){this.filterCallback=e=>{this.filterConstraint.v
alue=e,this.dt._filter()}}onModelChange(e){this.filterConstraint.value=e,("boolean"===this.type||""===e)&&this.dt._filter()}onTextInputEnterKeyDown(e){this.dt._filter(),e.preventDefault()}onNumericInputKeyDown(e){"Enter"===e.key&&(this.dt._filter(),e.preventDefault())}}return
t.\u0275fac=function(e){return
new(e||t)(D(Dn))},t.\u0275cmp=z({type:t,selectors:[["p-columnFilterFormElement"]],hostAttrs:[1,"p-element"],inputs:{field:"field",type:"type",filterConstraint:"filterConstraint",filterTemplate:"filterTemplate",placeholder:"placeholder",minFractionDigits:"minFractionDigits",maxFractionDigits:"maxFractionDigits",prefix:"prefix",suffix:"suffix",locale:"locale",localeMatcher:"localeMatcher",currency:"currency",currencyDisplay:"currencyDisplay",useGrouping:"useGrouping"},decls:3,vars:2,consts:[[4,"ngIf","ngIfElse"],["builtInElement",""],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[3,"ngSwitch"],["type","text","pInputText","",3,"value","input","keydown.enter",4,"ngSwitchCase"],[3,"
ngModel","showButtons","minFractionDigits","maxFractionDigits","prefix","suffix","placeholder","mode","locale","localeMatcher","currency","currencyDisplay","useGrouping","ngModelChange","onKeyDown",4,"ngSwitchCase"],[3,"ngModel","ngModelChange",4,"ngSwitchCase"],[3,"placeholder","ngModel","ngModelChange",4,"ngSwitchCase"],["type","text","pInputText","",3,"value","input","keydown.enter"],[3,"ngModel","showButtons","minFractionDigits","maxFractionDigits","prefix","suffix","placeholder","mode","locale","localeMatcher","currency","currencyDisplay","useGrouping","ngModelChange","onKeyDown"],[3,"ngModel","ngModelChange"],[3,"placeholder","ngModel","ngModelChange"]],template:function(e,n){if(1&e&&(_(0,QG,2,5,"ng-container",0),_(1,eU,5,5,"ng-template",null,1,we)),2&e){const
s=F(2);p("ngIf",n.filterTemplate)("ngIfElse",s)}},directives:[pt,G2,xr,Q,Rt,gr,Ja,DT,Te,_e],encapsulation:2}),t})(),vg=(()=>{class
t{constructor(e,n,s,r,o){this.el=e,this.dt=n,this.renderer=s,this.config=r,this.overlaySe
rvice=o,this.type="text",this.display="row",this.showMenu=!0,this.operator=ml.AND,this.showOperator=!0,this.showClearButton=!0,this.showApplyButton=!0,this.showMatchModes=!0,this.showAddButton=!0,this.hideOnClear=!1,this.maxConstraints=2,this.useGrouping=!0}ngOnInit(){this.dt.filters[this.field]||this.initFieldFilterConstraint(),this.translationSubscription=this.config.translationObserver.subscribe(()=>{this.generateMatchModeOptions(),this.generateOperatorOptions()}),this.resetSubscription=this.dt.tableService.resetSource$.subscribe(()=>{this.initFieldFilterConstraint()}),this.generateMatchModeOptions(),this.generateOperatorOptions()}generateMatchModeOptions(){var
e;this.matchModes=this.matchModeOptions||(null===(e=this.config.filterMatchModeOptions[this.type])||void
0===e?void
0:e.map(n=>({label:this.config.getTranslation(n),value:n})))}generateOperatorOptions(){this.operatorOptions=[{label:this.config.getTranslation(Ft.MATCH_ALL),value:ml.AND},{label:this.config.getTranslation(Ft.
MATCH_ANY),value:ml.OR}]}ngAfterContentInit(){this.templates.forEach(e=>{switch(e.getType()){case"header":this.headerTemplate=e.template;break;case"filter":default:this.filterTemplate=e.template;break;case"footer":this.footerTemplate=e.template}})}initFieldFilterConstraint(){let
e=this.getDefaultMatchMode();this.dt.filters[this.field]="row"==this.display?{value:null,matchMode:e}:[{value:null,matchMode:e,operator:this.operator}]}onMenuMatchModeChange(e,n){n.matchMode=e,this.showApplyButton||this.dt._filter()}onRowMatchModeChange(e){this.dt.filters[this.field].matchMode=e,this.dt._filter(),this.hide()}onRowMatchModeKeyDown(e){let
n=e.target;switch(e.key){case"ArrowDown":var
s=this.findNextItem(n);s&&(n.removeAttribute("tabindex"),s.tabIndex="0",s.focus()),e.preventDefault();break;case"ArrowUp":var
r=this.findPrevItem(n);r&&(n.removeAttribute("tabindex"),r.tabIndex="0",r.focus()),e.preventDefault()}}onRowClearItemClick(){this.clearFilter(),this.hide()}isRowMatchModeSelected(e){return
t
his.dt.filters[this.field].matchMode===e}addConstraint(){this.dt.filters[this.field].push({value:null,matchMode:this.getDefaultMatchMode(),operator:this.getDefaultOperator()}),this.dt._filter()}removeConstraint(e){this.dt.filters[this.field]=this.dt.filters[this.field].filter(n=>n!==e),this.dt._filter()}onOperatorChange(e){this.dt.filters[this.field].forEach(n=>{n.operator=e,this.operator=e}),this.showApplyButton||this.dt._filter()}toggleMenu(){this.overlayVisible=!this.overlayVisible}onToggleButtonKeyDown(e){switch(e.key){case"Escape":case"Tab":this.overlayVisible=!1;break;case"ArrowDown":if(this.overlayVisible){let
n=R.getFocusableElements(this.overlay);n&&n[0].focus(),e.preventDefault()}else
e.altKey&&(this.overlayVisible=!0,e.preventDefault())}}onEscape(){this.overlayVisible=!1,this.icon.nativeElement.focus()}findNextItem(e){let
n=e.nextElementSibling;return
n?R.hasClass(n,"p-column-filter-separator")?this.findNextItem(n):n:e.parentElement.firstElementChild}findPrevItem(e){let
n
=e.previousElementSibling;return
n?R.hasClass(n,"p-column-filter-separator")?this.findPrevItem(n):n:e.parentElement.lastElementChild}onContentClick(){this.selfClick=!0}onOverlayAnimationStart(e){switch(e.toState){case"visible":this.overlay=e.element,document.body.appendChild(this.overlay),dt.set("overlay",this.overlay,this.config.zIndex.overlay),R.absolutePosition(this.overlay,this.icon.nativeElement),this.bindDocumentClickListener(),this.bindDocumentResizeListener(),this.bindScrollListener(),this.overlayEventListener=n=>{this.overlay&&this.overlay.contains(n.target)&&(this.selfClick=!0)},this.overlaySubscription=this.overlayService.clickObservable.subscribe(this.overlayEventListener);break;case"void":this.onOverlayHide(),this.overlaySubscription&&this.overlaySubscription.unsubscribe()}}onOverlayAnimationEnd(e){"void"===e.toState&&dt.clear(e.element)}getDefaultMatchMode(){return
this.matchMode?this.matchMode:"text"===this.type?_t.STARTS_WITH:"numeric"===this.type?_t.EQUALS:"date"===
this.type?_t.DATE_IS:_t.CONTAINS}getDefaultOperator(){return
this.dt.filters?this.dt.filters[this.field][0].operator:this.operator}hasRowFilter(){return
this.dt.filters[this.field]&&!this.dt.isFilterBlank(this.dt.filters[this.field].value)}get
fieldConstraints(){return this.dt.filters?this.dt.filters[this.field]:null}get
showRemoveIcon(){return!!this.fieldConstraints&&this.fieldConstraints.length>1}get
showMenuButton(){return
this.showMenu&&("row"!==this.display||"boolean"!==this.type)}get
isShowOperator(){return this.showOperator&&"boolean"!==this.type}get
isShowAddConstraint(){return
this.showAddButton&&"boolean"!==this.type&&this.fieldConstraints&&this.fieldConstraints.length<this.maxConstraints}get
applyButtonLabel(){return this.config.getTranslation(Ft.APPLY)}get
clearButtonLabel(){return this.config.getTranslation(Ft.CLEAR)}get
addRuleButtonLabel(){return this.config.getTranslation(Ft.ADD_RULE)}get
removeRuleButtonLabel(){return this.config.getTranslation(Ft.REMOVE_RULE)}get n
oFilterLabel(){return this.config.getTranslation(Ft.NO_FILTER)}hasFilter(){let
e=this.dt.filters[this.field];return!!e&&(Array.isArray(e)?!this.dt.isFilterBlank(e[0].value):!this.dt.isFilterBlank(e.value))}isOutsideClicked(e){return!(this.overlay.isSameNode(e.target)||this.overlay.contains(e.target)||this.icon.nativeElement.isSameNode(e.target)||this.icon.nativeElement.contains(e.target)||R.hasClass(e.target,"p-column-filter-add-button")||R.hasClass(e.target.parentElement,"p-column-filter-add-button")||R.hasClass(e.target,"p-column-filter-remove-button")||R.hasClass(e.target.parentElement,"p-column-filter-remove-button"))}bindDocumentClickListener(){this.documentClickListener||(this.documentClickListener=this.renderer.listen(this.el?this.el.nativeElement.ownerDocument:"document","mousedown",n=>{this.overlayVisible&&!this.selfClick&&this.isOutsideClicked(n)&&this.hide(),this.selfClick=!1}))}unbindDocumentClickListener(){this.documentClickListener&&(this.documentClickListener(),this.d
ocumentClickListener=null,this.selfClick=!1)}bindDocumentResizeListener(){this.documentResizeListener=()=>this.hide(),window.addEventListener("resize",this.documentResizeListener)}unbindDocumentResizeListener(){this.documentResizeListener&&(window.removeEventListener("resize",this.documentResizeListener),this.documentResizeListener=null)}bindScrollListener(){this.scrollHandler||(this.scrollHandler=new
Qs(this.icon.nativeElement,()=>{this.overlayVisible&&this.hide()})),this.scrollHandler.bindScrollListener()}unbindScrollListener(){this.scrollHandler&&this.scrollHandler.unbindScrollListener()}hide(){this.overlayVisible=!1}onOverlayHide(){this.unbindDocumentClickListener(),this.unbindDocumentResizeListener(),this.unbindScrollListener(),this.overlay=null}clearFilter(){this.initFieldFilterConstraint(),this.dt._filter(),this.hideOnClear&&this.hide()}applyFilter(){this.dt._filter(),this.hide()}ngOnDestroy(){this.overlay&&(this.el.nativeElement.appendChild(this.overlay),dt.clear(this.overla
y),this.onOverlayHide()),this.translationSubscription&&this.translationSubscription.unsubscribe(),this.resetSubscription&&this.resetSubscription.unsubscribe(),this.overlaySubscription&&this.overlaySubscription.unsubscribe()}}return
t.\u0275fac=function(e){return
new(e||t)(D(De),D(Dn),D(gn),D(zn),D(Ks))},t.\u0275cmp=z({type:t,selectors:[["p-columnFilter"]],contentQueries:function(e,n,s){if(1&e&&st(s,ne,4),2&e){let
r;V(r=B())&&(n.templates=r)}},viewQuery:function(e,n){if(1&e&&W(tU,5),2&e){let
s;V(s=B())&&(n.icon=s.first)}},hostAttrs:[1,"p-element"],inputs:{field:"field",type:"type",display:"display",showMenu:"showMenu",matchMode:"matchMode",operator:"operator",showOperator:"showOperator",showClearButton:"showClearButton",showApplyButton:"showApplyButton",showMatchModes:"showMatchModes",showAddButton:"showAddButton",hideOnClear:"hideOnClear",placeholder:"placeholder",matchModeOptions:"matchModeOptions",maxConstraints:"maxConstraints",minFractionDigits:"minFractionDigits",maxFractionDig
its:"maxFractionDigits",prefix:"prefix",suffix:"suffix",locale:"locale",localeMatcher:"localeMatcher",currency:"currency",currencyDisplay:"currencyDisplay",useGrouping:"useGrouping"},decls:5,vars:8,consts:[[1,"p-column-filter",3,"ngClass"],["class","p-fluid",3,"type","field","filterConstraint","filterTemplate","placeholder","minFractionDigits","maxFractionDigits","prefix","suffix","locale","localeMatcher","currency","currencyDisplay","useGrouping",4,"ngIf"],["type","button","class","p-column-filter-menu-button
p-link","aria-haspopup","true",3,"ngClass","click","keydown",4,"ngIf"],["type","button","class","p-column-filter-clear-button
p-link",3,"ngClass","click",4,"ngIf"],[3,"ngClass","click","keydown.escape",4,"ngIf"],[1,"p-fluid",3,"type","field","filterConstraint","filterTemplate","placeholder","minFractionDigits","maxFractionDigits","prefix","suffix","locale","localeMatcher","currency","currencyDisplay","useGrouping"],["type","button","aria-haspopup","true",1,"p-column-filter-men
u-button","p-link",3,"ngClass","click","keydown"],["icon",""],[1,"pi","pi-filter-icon","pi-filter"],["type","button",1,"p-column-filter-clear-button","p-link",3,"ngClass","click"],[1,"pi","pi-filter-slash"],[3,"ngClass","click","keydown.escape"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],["class","p-column-filter-row-items",4,"ngIf","ngIfElse"],["menu",""],[1,"p-column-filter-row-items"],["class","p-column-filter-row-item",3,"ngClass","click","keydown","keydown.enter",4,"ngFor","ngForOf"],[1,"p-column-filter-separator"],[1,"p-column-filter-row-item",3,"click","keydown","keydown.enter"],[1,"p-column-filter-row-item",3,"ngClass","click","keydown","keydown.enter"],["class","p-column-filter-operator",4,"ngIf"],[1,"p-column-filter-constraints"],["class","p-column-filter-constraint",4,"ngFor","ngForOf"],["class","p-column-filter-add-rule",4,"ngIf"],[1,"p-column-filter-buttonbar"],["type","button","pButton","","class","p-button-outlined
p-button-sm","pRipple","",3,"label","click",4,"
ngIf"],["type","button","pButton","","class","p-button-sm","pRipple","",3,"label","click",4,"ngIf"],[1,"p-column-filter-operator"],["styleClass","p-column-filter-operator-dropdown",3,"options","ngModel","ngModelChange"],[1,"p-column-filter-constraint"],["styleClass","p-column-filter-matchmode-dropdown",3,"options","ngModel","ngModelChange",4,"ngIf"],[3,"type","field","filterConstraint","filterTemplate","placeholder","minFractionDigits","maxFractionDigits","prefix","suffix","locale","localeMatcher","currency","currencyDisplay","useGrouping"],["type","button","pButton","","icon","pi
pi-trash","class","p-column-filter-remove-button p-button-text
p-button-danger
p-button-sm","pRipple","",3,"label","click",4,"ngIf"],["styleClass","p-column-filter-matchmode-dropdown",3,"options","ngModel","ngModelChange"],["type","button","pButton","","icon","pi
pi-trash","pRipple","",1,"p-column-filter-remove-button","p-button-text","p-button-danger","p-button-sm",3,"label","click"],[1,"p-column-filter-a
dd-rule"],["type","button","pButton","","icon","pi
pi-plus","pRipple","",1,"p-column-filter-add-button","p-button-text","p-button-sm",3,"label","click"],["type","button","pButton","","pRipple","",1,"p-button-outlined","p-button-sm",3,"label","click"],["type","button","pButton","","pRipple","",1,"p-button-sm",3,"label","click"]],template:function(e,n){1&e&&(l(0,"div",0),_(1,nU,1,14,"p-columnFilterFormElement",1),_(2,sU,3,5,"button",2),_(3,oU,3,3,"button",3),_(4,yU,6,14,"div",4),c()),2&e&&(p("ngClass",Ge(5,wU,"row"===n.display,"menu"===n.display)),a(1),p("ngIf","row"===n.display),a(1),p("ngIf",n.showMenuButton),a(1),p("ngIf",n.showClearButton&&"row"===n.display),a(1),p("ngIf",n.showMenu&&n.overlayVisible))},directives:[MU,Ot,Le,Q,Rt,at,Te,_e,On],encapsulation:2,data:{animation:[wi("overlayAnimation",[Lt(":enter",[it({opacity:0,transform:"scaleY(0.8)"}),kt(".12s
cubic-bezier(0, 0, 0.2, 1)")]),Lt(":leave",[kt(".1s
linear",it({opacity:0}))])])]}}),t})(),kU=(()=>{class t{}return t.\u0275f
ac=function(e){return
new(e||t)},t.\u0275mod=he({type:t}),t.\u0275inj=ue({imports:[[Fe,RT,MT,Zu,Fo,Mu,gl,Tq,cT,Xu,Iq],Nt,Fo]}),t})();const
W2=["container"],IU=function(t,i,e,n){return{"pi-info-circle":t,"pi-exclamation-triangle":i,"pi-times-circle":e,"pi-check":n}};function
EU(t,i){if(1&t&&(de(0),k(1,"span",6),l(2,"div",7)(3,"div",8),g(4),c(),l(5,"div",9),g(6),c()(),pe()),2&t){const
e=d();a(1),me("p-toast-message-icon pi"+(e.message.icon?"
"+e.message.icon:"")),p("ngClass",qn(5,IU,"info"==e.message.severity,"warn"==e.message.severity,"error"==e.message.severity,"success"==e.message.severity)),a(3),S(e.message.summary),a(2),S(e.message.detail)}}function
RU(t,i){1&t&&Y(0)}function LU(t,i){if(1&t){const
e=I();l(0,"button",10),C("click",function(s){return
v(e),d().onCloseIconClick(s)})("keydown.enter",function(s){return
v(e),d().onCloseIconClick(s)}),k(1,"span",11),c()}}const
OU=function(t){return[t,"p-toast-message"]},AU=function(t,i,e,n){return{showTransformParams:t,hideTransformParam
s:i,showTransitionParams:e,hideTransitionParams:n}},PU=function(t){return{value:"visible",params:t}},FU=function(t){return{$implicit:t}};function
NU(t,i){if(1&t){const
e=I();l(0,"p-toastItem",3),C("onClose",function(s){return
v(e),d().onMessageClose(s)})("(a)toastAnimation.start",function(s){return
v(e),d().onAnimationStart(s)})("(a)toastAnimation.done",function(s){return
v(e),d().onAnimationEnd(s)}),c()}if(2&t){const
e=i.$implicit,n=i.index,s=d();p("message",e)("index",n)("template",s.template)("@toastAnimation",void
0)("showTransformOptions",s.showTransformOptions)("hideTransformOptions",s.hideTransformOptions)("showTransitionOptions",s.showTransitionOptions)("hideTransitionOptions",s.hideTransitionOptions)}}let
VU=(()=>{class t{constructor(e){this.zone=e,this.onClose=new
H}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||3
e3)})}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)(D(nt))},t.\u0275cmp=z({type:t,selectors:[["p-toastItem"]],viewQuery:function(e,n){if(1&e&&W(W2,5),2&e){let
s;V(s=B())&&(n.containerViewChild=s.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,n){1&e&&(l(0,"div",0,1),C("mouseenter",function(){return
n.onMouseEnter()})("mouseleave",function(){return
n.onMouseLeave()}),l(2,"div",2),_(3,EU,7,10,"ng-container",3),_(4,RU,1,0,"ng-container",4),_(5,LU,2,0,"button",5),c()()),2&e&&(me(n.message.styleClass),p("ngClass",U(10,OU,"p-toast-message-"+n.message.severity))("(a)messageState",U(17,PU,qn(12,AU,n.showTransformOptions,n.hideTransformOptions,n.showTransitionOptions,n.hideTransitionOptions))),ie("id",n.message.id),a(2),p("ngClass",n.message.contentStyleClass),a(1),p("ngIf",!n.template),a(1),p("ngTemplateOutlet",n.template)("ngTemplateOutletContext",U(
19,FU,n.message)),a(1),p("ngIf",!1!==n.message.closable))},directives:[Le,Q,Rt,bt],encapsulation:2,data:{animation:[wi("messageState",[ws("visible",it({transform:"translateY(0)",opacity:1})),Lt("void
=>
*",[it({transform:"{{showTransformParams}}",opacity:0}),kt("{{showTransitionParams}}")]),Lt("*
=>
void",[kt("{{hideTransitionParams}}",it({height:0,opacity:0,transform:"{{hideTransformParams}}"}))])])]},changeDetection:0}),t})(),Td=(()=>{class
t{constructor(e,n,s){this.messageService=e,this.cd=n,this.config=s,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
H,this.id=pl()}ngOnInit(){this.messageSubscription=this.messageService.messageObserver.subscribe(e=>{if(e)if(e
instanceof Array){const n=e.filter(s=>this.canAdd(s));this
.add(n)}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
n=this.key===e.key;return
n&&this.preventOpenDuplicates&&(n=!this.containsMessage(this.messages,e)),n&&this.preventDuplicates&&(n=!this.containsMessage(this.messagesArchieve,e)),n}containsMessage(e,n){return!!e&&null!=e.find(s=>s.summary===n.summary&&s.detail==n.detail&&s.severity===n.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.fromSt
ate&&(this.containerViewChild.nativeElement.setAttribute(this.id,""),this.autoZIndex&&dt.set("modal",this.containerViewChild.nativeElement,this.baseZIndex||this.config.zIndex.modal))}onAnimationEnd(e){"void"===e.toState&&this.autoZIndex&&Z.isEmpty(this.messages)&&dt.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 n in this.breakpoints){let s="";for(let r in
this.breakpoints[n])s+=r+":"+this.breakpoints[n][r]+"
!important;";e+=`\n @media screen and (max-width: ${n}) {\n
.p-toast[${this.id}] {\n ${s}\n
}\n }\n
`}this.styleElement.innerHTML=e}}destroyStyle(){this.styleElement&&(document.head.removeChild(this.styleElement),this.styleElement=null)}ngOnDestroy(){this.messageSubscription&&t
his.messageSubscription.unsubscribe(),this.containerViewChild&&this.autoZIndex&&dt.clear(this.containerViewChild.nativeElement),this.clearSubscription&&this.clearSubscription.unsubscribe(),this.destroyStyle()}}return
t.\u0275fac=function(e){return
new(e||t)(D(Gi),D(rt),D(zn))},t.\u0275cmp=z({type:t,selectors:[["p-toast"]],contentQueries:function(e,n,s){if(1&e&&st(s,ne,4),2&e){let
r;V(r=B())&&(n.templates=r)}},viewQuery:function(e,n){if(1&e&&W(W2,5),2&e){let
s;V(s=B())&&(n.containerViewChild=s.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:function(e,n){1&e&&(l(0,"div",0,1),_(2,NU,1,8,"p-toastItem",2),c()),2&e&&(me(n.styleClass),p("ngClass","p-toast
p-component
p-toast-"+n.position)("ngStyle",n.style),a(2),p("ngForOf",n.messages))},directives:[VU,Le,lt,at],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{bot
tom: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:[wi("toastAnimation",[Lt(":enter,
:leave",[$A("@*",jA())])])]},changeDetection:0}),t})(),BU=(()=>{class
t{}return t.\u0275fac=function(e){return
new(e||t)},t.\u0275mod=he({type:t}),t.\u0275inj=ue({imports:[[Fe,pn],Nt]}),t})(),GU=(()=>{class
t{}return t.\u0275fac=function(e){return
new(e||t)},t.\u0275mod=he({type:t}),t.\u0275inj=ue({imports:[[Fe]]}),t})();const
UU=["rb"],zU=function(t,i,e){return{"p-radiobutton-label":!0,"p-radiobutton-label-active":t,"p-disabled":i,"p-radiobutton-label-focus":e}};function
jU(t,i){if(1&t){const
e=I();l(0,"label",4),C("click",function(s){return
v(e),d().select(s)}),g(1),c()}if(2&t){const
e=d(),n=F(3);me(e.labelStyleClass),p("ngClass",Qt(5,zU,n.ch
ecked,e.disabled,e.focused)),ie("for",e.inputId),a(1),S(e.label)}}const
$U=function(t,i,e){return{"p-radiobutton
p-component":!0,"p-radiobutton-checked":t,"p-radiobutton-disabled":i,"p-radiobutton-focused":e}},WU=function(t,i,e){return{"p-radiobutton-box":!0,"p-highlight":t,"p-disabled":i,"p-focus":e}},KU={provide:dn,useExisting:je(()=>Sd),multi:!0};let
QU=(()=>{class
t{constructor(){this.accessors=[]}add(e,n){this.accessors.push([e,n])}remove(e){this.accessors=this.accessors.filter(n=>n[1]!==e)}select(e){this.accessors.forEach(n=>{this.isSameGroup(n,e)&&n[1]!==e&&n[1].writeValue(e.value)})}isSameGroup(e,n){return!!e[0].control&&e[0].control.root===n.control.control.root&&e[1].name===n.name}}return
t.\u0275fac=function(e){return
new(e||t)},t.\u0275prov=X({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),Sd=(()=>{class
t{constructor(e,n,s){this.cd=e,this.injector=n,this.registry=s,this.onClick=new
H,this.onFocus=new H,this.onBlur=new H,this.onModelChange=()=>{},this.onModelTouch
ed=()=>{}}ngOnInit(){this.control=this.injector.get(ss),this.checkName(),this.registry.add(this.control,this)}handleClick(e,n,s){e.preventDefault(),!this.disabled&&(this.select(e),s&&n.focus())}select(e){this.disabled||(this.inputViewChild.nativeElement.checked=!0,this.checked=!0,this.onModelChange(this.value),this.registry.select(this),this.onClick.emit(e))}writeValue(e){this.checked=e==this.value,this.inputViewChild&&this.inputViewChild.nativeElement&&(this.inputViewChild.nativeElement.checked=this.checked),this.cd.markForCheck()}registerOnChange(e){this.onModelChange=e}registerOnTouched(e){this.onModelTouched=e}setDisabledState(e){this.disabled=e,this.cd.markForCheck()}onInputFocus(e){this.focused=!0,this.onFocus.emit(e)}onInputBlur(e){this.focused=!1,this.onModelTouched(),this.onBlur.emit(e)}onChange(e){this.select(e)}focus(){this.inputViewChild.nativeElement.focus()}ngOnDestroy(){this.registry.remove(this)}checkName(){this.name&&this.formControlName&&this.name!==this.formContro
lName&&this.throwNameError(),!this.name&&this.formControlName&&(this.name=this.formControlName)}throwNameError(){throw
new Error('\n If you define both a name and a formControlName attribute on
your radio button, their values\n must match. Ex: <p-radioButton
formControlName="food" name="food"></p-radioButton>\n
')}}return t.\u0275fac=function(e){return
new(e||t)(D(rt),D(En),D(QU))},t.\u0275cmp=z({type:t,selectors:[["p-radioButton"]],viewQuery:function(e,n){if(1&e&&W(UU,5),2&e){let
s;V(s=B())&&(n.inputViewChild=s.first)}},hostAttrs:[1,"p-element"],inputs:{value:"value",formControlName:"formControlName",name:"name",disabled:"disabled",label:"label",tabindex:"tabindex",inputId:"inputId",ariaLabelledBy:"ariaLabelledBy",ariaLabel:"ariaLabel",style:"style",styleClass:"styleClass",labelStyleClass:"labelStyleClass"},outputs:{onClick:"onClick",onFocus:"onFocus",onBlur:"onBlur"},features:[Pe([KU])],decls:7,vars:23,consts:[[3,"ngStyle","ngClass"],[1,"p-hidden-accessibl
e"],["type","radio",3,"checked","disabled","change","focus","blur"],["rb",""],[3,"ngClass","click"],[1,"p-radiobutton-icon"],[3,"class","ngClass","click",4,"ngIf"]],template:function(e,n){if(1&e){const
s=I();l(0,"div",0)(1,"div",1)(2,"input",2,3),C("change",function(o){return
n.onChange(o)})("focus",function(o){return
n.onInputFocus(o)})("blur",function(o){return
n.onInputBlur(o)}),c()(),l(4,"div",4),C("click",function(o){v(s);const
u=F(3);return
n.handleClick(o,u,!0)}),k(5,"span",5),c()(),_(6,jU,2,9,"label",6)}2&e&&(me(n.styleClass),p("ngStyle",n.style)("ngClass",Qt(15,$U,n.checked,n.disabled,n.focused)),a(2),p("checked",n.checked)("disabled",n.disabled),ie("id",n.inputId)("name",n.name)("value",n.value)("tabindex",n.tabindex)("aria-checked",n.checked)("aria-label",n.ariaLabel)("aria-labelledby",n.ariaLabelledBy),a(2),p("ngClass",Qt(19,WU,n.checked,n.disabled,n.focused)),a(2),p("ngIf",n.label))},directives:[lt,Le,Q],encapsulation:2,changeDetection:0}),t})(),JU=(()=>{class
t{}return
t.\u0275fac=function(e){return
new(e||t)},t.\u0275mod=he({type:t}),t.\u0275inj=ue({imports:[[Fe]]}),t})();function
YU(t,i){if(1&t&&(l(0,"div",5),g(1),c()),2&t){const
e=d(2);_i("display",null!=e.value&&0!==e.value?"flex":"none"),a(1),We("",e.value,"",e.unit,"")}}function
ZU(t,i){if(1&t&&(l(0,"div",3),_(1,YU,2,4,"div",4),c()),2&t){const
e=d();_i("width",e.value+"%"),a(1),p("ngIf",e.showValue)}}function
XU(t,i){1&t&&(l(0,"div",6),k(1,"div",7),c())}const
ez=function(t,i){return{"p-progressbar
p-component":!0,"p-progressbar-determinate":t,"p-progressbar-indeterminate":i}};let
tz=(()=>{class
t{constructor(){this.showValue=!0,this.unit="%",this.mode="determinate"}}return
t.\u0275fac=function(e){return
new(e||t)},t.\u0275cmp=z({type:t,selectors:[["p-progressBar"]],hostAttrs:[1,"p-element"],inputs:{value:"value",showValue:"showValue",style:"style",styleClass:"styleClass",unit:"unit",mode:"mode"},decls:3,vars:10,consts:[["role","progressbar","aria-valuemin","0","aria-valuemax","100",3,"ngSty
le","ngClass"],["class","p-progressbar-value
p-progressbar-value-animate","style","display:flex",3,"width",4,"ngIf"],["class","p-progressbar-indeterminate-container",4,"ngIf"],[1,"p-progressbar-value","p-progressbar-value-animate",2,"display","flex"],["class","p-progressbar-label",3,"display",4,"ngIf"],[1,"p-progressbar-label"],[1,"p-progressbar-indeterminate-container"],[1,"p-progressbar-value","p-progressbar-value-animate"]],template:function(e,n){1&e&&(l(0,"div",0),_(1,ZU,2,3,"div",1),_(2,XU,2,0,"div",2),c()),2&e&&(me(n.styleClass),p("ngStyle",n.style)("ngClass",Ge(7,ez,"determinate"===n.mode,"indeterminate"===n.mode)),ie("aria-valuenow",n.value),a(1),p("ngIf","determinate"===n.mode),a(1),p("ngIf","indeterminate"===n.mode))},directives:[lt,Le,Q],styles:['.p-progressbar{position:relative;overflow:hidden}.p-progressbar-determinate
.p-progressbar-value{height:100%;width:0%;position:absolute;display:none;border:0
none;display:flex;align-items:center;justify-content:center;overflow:hi
dden}.p-progressbar-determinate
.p-progressbar-label{display:inline-flex}.p-progressbar-determinate
.p-progressbar-value-animate{transition:width 1s ease-in-out}.p-progressbar-indeterminate
.p-progressbar-value:before{content:"";position:absolute;background-color:inherit;top:0;left:0;bottom:0;will-change:left,right;animation:p-progressbar-indeterminate-anim
2.1s cubic-bezier(.65,.815,.735,.395) infinite}.p-progressbar-indeterminate
.p-progressbar-value:after{content:"";position:absolute;background-color:inherit;top:0;left:0;bottom:0;will-change:left,right;animation:p-progressbar-indeterminate-anim-short
2.1s cubic-bezier(.165,.84,.44,1) infinite;animation-delay:1.15s}@keyframes
p-progressbar-indeterminate-anim{0%{left:-35%;right:100%}60%{left:100%;right:-90%}to{left:100%;right:-90%}}@keyframes
p-progressbar-indeterminate-anim-short{0%{left:-200%;right:100%}60%{left:107%;right:-8%}to{left:107%;right:-8%}}\n'],encapsulation:2,changeDetection:0}),t})(),nz=(()=>{class
t{}return t.\u0275
fac=function(e){return
new(e||t)},t.\u0275mod=he({type:t}),t.\u0275inj=ue({imports:[[Fe]]}),t})();const
iz=["container"],sz=["content"],rz=["xBar"],oz=["yBar"];function
az(t,i){1&t&&Y(0)}const lz=["*"];let K2=(()=>{class
t{constructor(e,n,s){this.el=e,this.zone=n,this.cd=s,this.timeoutFrame=r=>setTimeout(r,0)}ngAfterViewInit(){this.zone.runOutsideAngular(()=>{this.moveBar(),this.moveBar=this.moveBar.bind(this),this.onXBarMouseDown=this.onXBarMouseDown.bind(this),this.onYBarMouseDown=this.onYBarMouseDown.bind(this),this.onDocumentMouseMove=this.onDocumentMouseMove.bind(this),this.onDocumentMouseUp=this.onDocumentMouseUp.bind(this),window.addEventListener("resize",this.moveBar),this.contentViewChild.nativeElement.addEventListener("scroll",this.moveBar),this.contentViewChild.nativeElement.addEventListener("mouseenter",this.moveBar),this.xBarViewChild.nativeElement.addEventListener("mousedown",this.onXBarMouseDown),this.yBarViewChild.nativeElement.addEventListener("mousedown",this.onYBa
rMouseDown),this.calculateContainerHeight(),this.initialized=!0})}ngAfterContentInit(){this.templates.forEach(e=>{e.getType(),this.contentTemplate=e.template})}calculateContainerHeight(){let
e=this.containerViewChild.nativeElement,n=this.contentViewChild.nativeElement,s=this.xBarViewChild.nativeElement,r=getComputedStyle(e),o=getComputedStyle(s),u=R.getHeight(e)-parseInt(o.height,10);"none"!=r["max-height"]&&0==u&&(e.style.height=n.offsetHeight+parseInt(o.height,10)>parseInt(r["max-height"],10)?r["max-height"]:n.offsetHeight+parseFloat(r.paddingTop)+parseFloat(r.paddingBottom)+parseFloat(r.borderTopWidth)+parseFloat(r.borderBottomWidth)+"px")}moveBar(){let
e=this.containerViewChild.nativeElement,n=this.contentViewChild.nativeElement,s=this.xBarViewChild.nativeElement,r=n.scrollWidth,o=n.clientWidth,u=-1*(e.clientHeight-s.clientHeight);this.scrollXRatio=o/r;let
h=this.yBarViewChild.nativeElement,b=n.scrollHeight,y=n.clientHeight,w=-1*(e.clientWidth-h.clientWidth);this.scrollYRatio=y/
b,this.requestAnimationFrame(()=>{if(this.scrollXRatio>=1)R.addClass(s,"p-scrollpanel-hidden");else{R.removeClass(s,"p-scrollpanel-hidden");const
M=Math.max(100*this.scrollXRatio,10);s.style.cssText="width:"+M+"%;
left:"+n.scrollLeft*(100-M)/(r-o)+"%;bottom:"+u+"px;"}if(this.scrollYRatio>=1)R.addClass(h,"p-scrollpanel-hidden");else{R.removeClass(h,"p-scrollpanel-hidden");const
M=Math.max(100*this.scrollYRatio,10);h.style.cssText="height:"+M+"%; top:
calc("+n.scrollTop*(100-M)/(b-y)+"% -
"+s.clientHeight+"px);right:"+w+"px;"}}),this.cd.markForCheck()}onYBarMouseDown(e){this.isYBarClicked=!0,this.lastPageY=e.pageY,R.addClass(this.yBarViewChild.nativeElement,"p-scrollpanel-grabbed"),R.addClass(document.body,"p-scrollpanel-grabbed"),document.addEventListener("mousemove",this.onDocumentMouseMove),document.addEventListener("mouseup",this.onDocumentMouseUp),e.preventDefault()}onXBarMouseDown(e){this.isXBarClicked=!0,this.lastPageX=e.pageX,R.addClass(this.xBarViewChild.nativeElement,"p-scro
llpanel-grabbed"),R.addClass(document.body,"p-scrollpanel-grabbed"),document.addEventListener("mousemove",this.onDocumentMouseMove),document.addEventListener("mouseup",this.onDocumentMouseUp),e.preventDefault()}onDocumentMouseMove(e){this.isXBarClicked?this.onMouseMoveForXBar(e):(this.isYBarClicked||this.onMouseMoveForXBar(e),this.onMouseMoveForYBar(e))}onMouseMoveForXBar(e){let
n=e.pageX-this.lastPageX;this.lastPageX=e.pageX,this.requestAnimationFrame(()=>{this.contentViewChild.nativeElement.scrollLeft+=n/this.scrollXRatio})}onMouseMoveForYBar(e){let
n=e.pageY-this.lastPageY;this.lastPageY=e.pageY,this.requestAnimationFrame(()=>{this.contentViewChild.nativeElement.scrollTop+=n/this.scrollYRatio})}scrollTop(e){let
n=this.contentViewChild.nativeElement.scrollHeight-this.contentViewChild.nativeElement.clientHeight;this.contentViewChild.nativeElement.scrollTop=e=e>n?n:e>0?e:0}onDocumentMouseUp(e){R.removeClass(this.yBarViewChild.nativeElement,"p-scrollpanel-grabbed"),R.removeClass(this
.xBarViewChild.nativeElement,"p-scrollpanel-grabbed"),R.removeClass(document.body,"p-scrollpanel-grabbed"),document.removeEventListener("mousemove",this.onDocumentMouseMove),document.removeEventListener("mouseup",this.onDocumentMouseUp),this.isXBarClicked=!1,this.isYBarClicked=!1}requestAnimationFrame(e){(window.requestAnimationFrame||this.timeoutFrame)(e)}ngOnDestroy(){this.initialized&&(window.removeEventListener("resize",this.moveBar),this.contentViewChild.nativeElement.removeEventListener("scroll",this.moveBar),this.contentViewChild.nativeElement.removeEventListener("mouseenter",this.moveBar),this.xBarViewChild.nativeElement.removeEventListener("mousedown",this.onXBarMouseDown),this.yBarViewChild.nativeElement.removeEventListener("mousedown",this.onYBarMouseDown))}refresh(){this.moveBar()}}return
t.\u0275fac=function(e){return
new(e||t)(D(De),D(nt),D(rt))},t.\u0275cmp=z({type:t,selectors:[["p-scrollPanel"]],contentQueries:function(e,n,s){if(1&e&&st(s,ne,4),2&e){let
r;V(r=B())&&(
n.templates=r)}},viewQuery:function(e,n){if(1&e&&(W(iz,5),W(sz,5),W(rz,5),W(oz,5)),2&e){let
s;V(s=B())&&(n.containerViewChild=s.first),V(s=B())&&(n.contentViewChild=s.first),V(s=B())&&(n.xBarViewChild=s.first),V(s=B())&&(n.yBarViewChild=s.first)}},hostAttrs:[1,"p-element"],inputs:{style:"style",styleClass:"styleClass"},ngContentSelectors:lz,decls:11,vars:5,consts:[[3,"ngClass","ngStyle"],["container",""],[1,"p-scrollpanel-wrapper"],[1,"p-scrollpanel-content"],["content",""],[4,"ngTemplateOutlet"],[1,"p-scrollpanel-bar","p-scrollpanel-bar-x"],["xBar",""],[1,"p-scrollpanel-bar","p-scrollpanel-bar-y"],["yBar",""]],template:function(e,n){1&e&&(Sn(),l(0,"div",0,1)(2,"div",2)(3,"div",3,4),St(5),_(6,az,1,0,"ng-container",5),c()(),k(7,"div",6,7)(9,"div",8,9),c()),2&e&&(me(n.styleClass),p("ngClass","p-scrollpanel
p-component")("ngStyle",n.style),a(6),p("ngTemplateOutlet",n.contentTemplate))},directives:[Le,lt,Rt],styles:[".p-scrollpanel-wrapper{overflow:hidden;width:100%;height:100%;position
:relative;z-index:1;float:left}.p-scrollpanel-content{height:calc(100% +
18px);width:calc(100% + 18px);padding:0 18px 18px
0;position:relative;overflow:auto;box-sizing:border-box}.p-scrollpanel-bar{position:relative;background:#c1c1c1;border-radius:3px;z-index:2;cursor:pointer;opacity:0;transition:opacity
.25s
linear}.p-scrollpanel-bar-y{width:9px;top:0}.p-scrollpanel-bar-x{height:9px;bottom:0}.p-scrollpanel-hidden{visibility:hidden}.p-scrollpanel:hover
.p-scrollpanel-bar,.p-scrollpanel:active
.p-scrollpanel-bar{opacity:1}.p-scrollpanel-grabbed{-webkit-user-select:none;user-select:none}\n"],encapsulation:2,changeDetection:0}),t})(),cz=(()=>{class
t{}return t.\u0275fac=function(e){return
new(e||t)},t.\u0275mod=he({type:t}),t.\u0275inj=ue({imports:[[Fe]]}),t})();const
uz=["content"],dz=["navbar"],pz=["inkbar"],hz=["prevBtn"],mz=["nextBtn"];function
fz(t,i){if(1&t){const
e=I();l(0,"button",11,12),C("click",function(){return
v(e),d().navBackward()}),k(2,"span",13),c()}}function gz(t,i){
if(1&t&&k(0,"span",23),2&t){const
e=d(3).$implicit;p("ngClass",e.icon)("ngStyle",e.iconStyle)}}function
_z(t,i){if(1&t&&(l(0,"span",24),g(1),c()),2&t){const
e=d(3).$implicit;a(1),S(e.label)}}function
bz(t,i){1&t&&k(0,"span",25),2&t&&p("innerHTML",d(3).$implicit.label,Bt)}function
vz(t,i){if(1&t&&(de(0),_(1,gz,1,2,"span",20),_(2,_z,2,1,"span",21),_(3,bz,1,1,"ng-template",null,22,we),pe()),2&t){const
e=F(4),n=d(2).$implicit;a(1),p("ngIf",n.icon),a(1),p("ngIf",!1!==n.escape)("ngIfElse",e)}}function
Cz(t,i){1&t&&Y(0)}const Q2=function(t,i){return{$implicit:t,index:i}};function
yz(t,i){if(1&t){const
e=I();l(0,"a",17),C("click",function(s){v(e);const
r=d().$implicit;return
d().itemClick(s,r)})("keydown.enter",function(s){v(e);const
r=d().$implicit;return
d().itemClick(s,r)}),_(1,vz,5,3,"ng-container",18),_(2,Cz,1,0,"ng-container",19),c()}if(2&t){const
e=d(),n=e.$implicit,s=e.index,r=d();p("target",n.target),ie("href",n.url,ln)("tabindex",n.disabled?null:"0")("title",n.title)("id",n.id),a(
1),p("ngIf",!r.itemTemplate),a(1),p("ngTemplateOutlet",r.itemTemplate)("ngTemplateOutletContext",Ge(8,Q2,n,s))}}function
wz(t,i){if(1&t&&k(0,"span",23),2&t){const
e=d(3).$implicit;p("ngClass",e.icon)("ngStyle",e.iconStyle)}}function
Tz(t,i){if(1&t&&(l(0,"span",24),g(1),c()),2&t){const
e=d(3).$implicit;a(1),S(e.label)}}function
Sz(t,i){1&t&&k(0,"span",25),2&t&&p("innerHTML",d(3).$implicit.label,Bt)}function
xz(t,i){if(1&t&&(de(0),_(1,wz,1,2,"span",20),_(2,Tz,2,1,"span",21),_(3,Sz,1,1,"ng-template",null,27,we),pe()),2&t){const
e=F(4),n=d(2).$implicit;a(1),p("ngIf",n.icon),a(1),p("ngIf",!1!==n.escape)("ngIfElse",e)}}function
Dz(t,i){1&t&&Y(0)}const Mz=function(){return{exact:!1}};function
kz(t,i){if(1&t){const
e=I();l(0,"a",26),C("click",function(s){v(e);const
r=d().$implicit;return
d().itemClick(s,r)})("keydown.enter",function(s){v(e);const
r=d().$implicit;return
d().itemClick(s,r)}),_(1,xz,5,3,"ng-container",18),_(2,Dz,1,0,"ng-container",19),c()}if(2&t){const
e=d(),n=e.$implicit,s=e.
index,r=d();p("routerLink",n.routerLink)("queryParams",n.queryParams)("routerLinkActive","p-menuitem-link-active")("routerLinkActiveOptions",n.routerLinkActiveOptions||A(17,Mz))("target",n.target)("fragment",n.fragment)("queryParamsHandling",n.queryParamsHandling)("preserveFragment",n.preserveFragment)("skipLocationChange",n.skipLocationChange)("replaceUrl",n.replaceUrl)("state",n.state),ie("tabindex",n.disabled?null:"0")("title",n.title)("id",n.id),a(1),p("ngIf",!r.itemTemplate),a(1),p("ngTemplateOutlet",r.itemTemplate)("ngTemplateOutletContext",Ge(18,Q2,n,s))}}const
Iz=function(t,i,e){return{"p-tabmenuitem":!0,"p-disabled":t,"p-highlight":i,"p-hidden":e}};function
Ez(t,i){if(1&t&&(l(0,"li",14),_(1,yz,3,11,"a",15),_(2,kz,3,21,"a",16),c()),2&t){const
e=i.$implicit,n=d();me(e.styleClass),p("ngStyle",e.style)("ngClass",Qt(9,Iz,e.disabled,n.isActive(e),!1===e.visible))("tooltipOptions",e.tooltipOptions),ie("aria-selected",n.isActive(e))("aria-expanded",n.isActive(e)),a(1),p("ngIf",!e.r
outerLink),a(1),p("ngIf",e.routerLink)}}function Rz(t,i){if(1&t){const
e=I();l(0,"button",28,29),C("click",function(){return
v(e),d().navForward()}),k(2,"span",30),c()}}const
Lz=function(t){return{"p-tabmenu
p-component":!0,"p-tabmenu-scrollable":t}};let J2=(()=>{class
t{constructor(e,n,s){this.router=e,this.route=n,this.cd=s,this.backwardIsDisabled=!0,this.forwardIsDisabled=!1}ngAfterContentInit(){this.templates.forEach(e=>{e.getType(),this.itemTemplate=e.template})}ngAfterViewInit(){this.updateInkBar()}ngAfterViewChecked(){this.tabChanged&&(this.updateInkBar(),this.tabChanged=!1)}isActive(e){if(e.routerLink){let
n=Array.isArray(e.routerLink)?e.routerLink:[e.routerLink];return
this.router.isActive(this.router.createUrlTree(n,{relativeTo:this.route}).toString(),!1)}return
e===this.activeItem}itemClick(e,n){n.disabled?e.preventDefault():(!n.url&&!n.routerLink&&e.preventDefault(),n.command&&n.command({originalEvent:e,item:n}),this.activeItem=n,this.tabChanged=!0)}updateInkBar(){let
e=
R.findSingle(this.navbar.nativeElement,"li.p-highlight");e&&(this.inkbar.nativeElement.style.width=R.getWidth(e)+"px",this.inkbar.nativeElement.style.left=R.getOffset(e).left-R.getOffset(this.navbar.nativeElement).left+"px")}getVisibleButtonWidths(){var
e,n;return[null===(e=this.prevBtn)||void 0===e?void
0:e.nativeElement,null===(n=this.nextBtn)||void 0===n?void
0:n.nativeElement].reduce((s,r)=>r?s+R.getWidth(r):s,0)}updateButtonState(){const
e=this.content.nativeElement,{scrollLeft:n,scrollWidth:s}=e,r=R.getWidth(e);this.backwardIsDisabled=0===n,this.forwardIsDisabled=parseInt(n)===s-r}updateScrollBar(e){this.navbar.nativeElement.children[e].scrollIntoView({block:"nearest"})}onScroll(e){this.scrollable&&this.updateButtonState(),e.preventDefault()}navBackward(){const
e=this.content.nativeElement,n=R.getWidth(e)-this.getVisibleButtonWidths(),s=e.scrollLeft-n;e.scrollLeft=s<=0?0:s}navForward(){const
e=this.content.nativeElement,n=R.getWidth(e)-this.getVisibleButtonWidths(),s=e.scrollL
eft+n,r=e.scrollWidth-n;e.scrollLeft=s>=r?r:s}}return t.\u0275fac=function(e){return
new(e||t)(D(It),D(Er),D(rt))},t.\u0275cmp=z({type:t,selectors:[["p-tabMenu"]],contentQueries:function(e,n,s){if(1&e&&st(s,ne,4),2&e){let
r;V(r=B())&&(n.templates=r)}},viewQuery:function(e,n){if(1&e&&(W(uz,5),W(dz,5),W(pz,5),W(hz,5),W(mz,5)),2&e){let
s;V(s=B())&&(n.content=s.first),V(s=B())&&(n.navbar=s.first),V(s=B())&&(n.inkbar=s.first),V(s=B())&&(n.prevBtn=s.first),V(s=B())&&(n.nextBtn=s.first)}},hostAttrs:[1,"p-element"],inputs:{model:"model",activeItem:"activeItem",scrollable:"scrollable",popup:"popup",style:"style",styleClass:"styleClass"},decls:11,vars:9,consts:[[3,"ngClass","ngStyle"],[1,"p-tabmenu-nav-container"],["class","p-tabmenu-nav-prev
p-tabmenu-nav-btn
p-link","type","button","pRipple","",3,"click",4,"ngIf"],[1,"p-tabmenu-nav-content",3,"scroll"],["content",""],["role","tablist",1,"p-tabmenu-nav","p-reset"],["navbar",""],["role","tab","pTooltip","",3,"ngStyle","class","ngClass","toolt
ipOptions",4,"ngFor","ngForOf"],[1,"p-tabmenu-ink-bar"],["inkbar",""],["class","p-tabmenu-nav-next
p-tabmenu-nav-btn
p-link","type","button","pRipple","",3,"click",4,"ngIf"],["type","button","pRipple","",1,"p-tabmenu-nav-prev","p-tabmenu-nav-btn","p-link",3,"click"],["prevBtn",""],[1,"pi","pi-chevron-left"],["role","tab","pTooltip","",3,"ngStyle","ngClass","tooltipOptions"],["class","p-menuitem-link","role","presentation","pRipple","",3,"target","click","keydown.enter",4,"ngIf"],["role","presentation","class","p-menuitem-link","pRipple","",3,"routerLink","queryParams","routerLinkActive","routerLinkActiveOptions","target","fragment","queryParamsHandling","preserveFragment","skipLocationChange","replaceUrl","state","click","keydown.enter",4,"ngIf"],["role","presentation","pRipple","",1,"p-menuitem-link",3,"target","click","keydown.enter"],[4,"ngIf"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],["class","p-menuitem-icon",3,"ngClass","ngStyle",4,"ngIf"],["class","p-menuitem-text",4,
"ngIf","ngIfElse"],["htmlLabel",""],[1,"p-menuitem-icon",3,"ngClass","ngStyle"],[1,"p-menuitem-text"],[1,"p-menuitem-text",3,"innerHTML"],["role","presentation","pRipple","",1,"p-menuitem-link",3,"routerLink","queryParams","routerLinkActive","routerLinkActiveOptions","target","fragment","queryParamsHandling","preserveFragment","skipLocationChange","replaceUrl","state","click","keydown.enter"],["htmlRouteLabel",""],["type","button","pRipple","",1,"p-tabmenu-nav-next","p-tabmenu-nav-btn","p-link",3,"click"],["nextBtn",""],[1,"pi","pi-chevron-right"]],template:function(e,n){1&e&&(l(0,"div",0)(1,"div",1),_(2,fz,3,0,"button",2),l(3,"div",3,4),C("scroll",function(r){return
n.onScroll(r)}),l(5,"ul",5,6),_(7,Ez,3,13,"li",7),k(8,"li",8,9),c()(),_(10,Rz,3,0,"button",10),c()()),2&e&&(me(n.styleClass),p("ngClass",U(7,Lz,n.scrollable))("ngStyle",n.style),a(2),p("ngIf",n.scrollable&&!n.backwardIsDisabled),a(5),p("ngForOf",n.model),a(3),p("ngIf",n.scrollable&&!n.forwardIsDisabled))},directives:[Le
,lt,Q,bt,at,Kt,Rt,Ho,_d],styles:[".p-tabmenu-nav-container{position:relative}.p-tabmenu-scrollable
.p-tabmenu-nav-container{overflow:hidden}.p-tabmenu-nav-content{overflow-x:auto;overflow-y:hidden;scroll-behavior:smooth;scrollbar-width:none;overscroll-behavior:contain
auto}.p-tabmenu-nav-btn{position:absolute;top:0;z-index:2;height:100%;display:flex;align-items:center;justify-content:center}.p-tabmenu-nav-prev{left:0}.p-tabmenu-nav-next{right:0}.p-tabview-nav-content::-webkit-scrollbar{display:none}.p-tabmenu-nav{display:flex;margin:0;padding:0;list-style-type:none;flex-wrap:nowrap}.p-tabmenu-nav
a{cursor:pointer;-webkit-user-select:none;user-select:none;display:flex;align-items:center;position:relative;text-decoration:none;overflow:hidden}.p-tabmenu-nav
a:focus{z-index:1}.p-tabmenu-nav
.p-menuitem-text{line-height:1;white-space:nowrap}.p-tabmenu-ink-bar{display:none;z-index:1}.p-tabmenu-nav-content::-webkit-scrollbar{display:none}\n"],encapsulation:2,changeDetection:0}),t})(),Oz=((
)=>{class t{}return t.\u0275fac=function(e){return
new(e||t)},t.\u0275mod=he({type:t}),t.\u0275inj=ue({imports:[[Fe,vn,Nt,pn,jn],vn,Nt,jn]}),t})();function
Az(t,i){if(1&t&&(l(0,"span"),g(1),c()),2&t){const
e=d();a(1),S(e.label)}}function Pz(t,i){1&t&&Y(0)}const
Y2=function(t){return{height:t}},Fz=function(t,i){return{"p-highlight":t,"p-disabled":i}},Nz=function(t){return{"p-highlight":t}},Z2=function(t){return{"pi
pi-check":t}},Rl=function(t){return{$implicit:t}},Vz=["container"],Bz=["filterInput"],Hz=["in"];function
qz(t,i){if(1&t&&(de(0),g(1),pe()),2&t){const
e=d(2);a(1),S(e.valuesAsString||"empty")}}function Gz(t,i){if(1&t){const
e=I();l(0,"span",18),C("click",function(s){v(e);const
r=d().$implicit;return d(3).removeChip(r,s)}),c()}}function
Uz(t,i){if(1&t&&(l(0,"div",14,15)(2,"span",16),g(3),c(),_(4,Gz,1,0,"span",17),c()),2&t){const
e=i.$implicit,n=d(3);a(3),S(n.findLabelByValue(e)),a(1),p("ngIf",!n.disabled)}}function
zz(t,i){if(1&t&&(de(0),g(1),pe()),2&t){const e=d(3);a(1),S(e
.placeholder||e.defaultLabel||"empty")}}function
jz(t,i){if(1&t&&(de(0),_(1,Uz,5,2,"div",13),_(2,zz,2,1,"ng-container",7),pe()),2&t){const
e=d(2);a(1),p("ngForOf",e.value),a(1),p("ngIf",!e.value||0===e.value.length)}}function
$z(t,i){if(1&t&&(de(0),_(1,qz,2,1,"ng-container",7),_(2,jz,3,2,"ng-container",7),pe()),2&t){const
e=d();a(1),p("ngIf","comma"===e.display),a(1),p("ngIf","chip"===e.display)}}function
Wz(t,i){1&t&&Y(0)}function Kz(t,i){if(1&t){const
e=I();l(0,"i",19),C("click",function(s){return
v(e),d().clear(s)}),c()}}function Qz(t,i){1&t&&Y(0)}const
Jz=function(t){return{"p-checkbox-disabled":t}},Yz=function(t,i,e){return{"p-highlight":t,"p-focus":i,"p-disabled":e}};function
Zz(t,i){if(1&t){const
e=I();l(0,"div",32)(1,"div",2)(2,"input",33),C("focus",function(){return
v(e),d(3).onHeaderCheckboxFocus()})("blur",function(){return
v(e),d(3).onHeaderCheckboxBlur()})("keydown.space",function(s){return
v(e),d(3).toggleAll(s)}),c()(),l(3,"div",34),C("click",function(s){return
v(e),d
(3).toggleAll(s)}),k(4,"span",35),c()()}if(2&t){const
e=d(3);p("ngClass",U(6,Jz,e.disabled||e.toggleAllDisabled)),a(2),p("checked",e.allChecked)("disabled",e.disabled||e.toggleAllDisabled),a(1),p("ngClass",Qt(8,Yz,e.allChecked,e.headerCheckboxFocus,e.disabled||e.toggleAllDisabled)),ie("aria-checked",e.allChecked),a(1),p("ngClass",U(12,Z2,e.allChecked))}}function
Xz(t,i){if(1&t){const
e=I();l(0,"div",36)(1,"input",37,38),C("input",function(s){return
v(e),d(3).onFilterInputChange(s)}),c(),k(3,"span",39),c()}if(2&t){const
e=d(3);a(1),p("value",e.filterValue||"")("disabled",e.disabled),ie("autocomplete",e.autocomplete)("placeholder",e.filterPlaceHolder)("aria-label",e.ariaFilterLabel)}}function
ej(t,i){if(1&t){const
e=I();l(0,"div",26),St(1),_(2,Qz,1,0,"ng-container",27),_(3,Zz,5,14,"div",28),_(4,Xz,4,5,"div",29),l(5,"button",30),C("click",function(s){return
v(e),d(2).close(s)}),k(6,"span",31),c()()}if(2&t){const
e=d(2);a(2),p("ngTemplateOutlet",e.headerTemplate),a(1),p("ngIf",e.showTog
gleAll&&!e.selectionLimit),a(1),p("ngIf",e.filter)}}function
tj(t,i){if(1&t&&(l(0,"span"),g(1),c()),2&t){const
e=d().$implicit,n=d(3);a(1),S(n.getOptionGroupLabel(e)||"empty")}}function
nj(t,i){1&t&&Y(0)}function ij(t,i){1&t&&Y(0)}function
sj(t,i){if(1&t&&(l(0,"li",41),_(1,tj,2,1,"span",7),_(2,nj,1,0,"ng-container",8),c(),_(3,ij,1,0,"ng-container",8)),2&t){const
e=i.$implicit;d(2);const
n=F(7),s=d();a(1),p("ngIf",!s.groupTemplate),a(1),p("ngTemplateOutlet",s.groupTemplate)("ngTemplateOutletContext",U(5,Rl,e)),a(1),p("ngTemplateOutlet",n)("ngTemplateOutletContext",U(7,Rl,s.getOptionGroupChildren(e)))}}function
rj(t,i){if(1&t&&(de(0),_(1,sj,4,9,"ng-template",40),pe()),2&t){const
e=d(2);a(1),p("ngForOf",e.optionsToRender)}}function
oj(t,i){1&t&&Y(0)}function
aj(t,i){if(1&t&&(de(0),_(1,oj,1,0,"ng-container",8),pe()),2&t){d();const
e=F(7),n=d();a(1),p("ngTemplateOutlet",e)("ngTemplateOutletContext",U(2,Rl,n.optionsToRender))}}function
lj(t,i){if(1&t){const e=I();l(0,"p-multiSelectItem",4
5),C("onClick",function(s){return
v(e),d(4).onOptionClick(s)})("onKeydown",function(s){return
v(e),d(4).onOptionKeydown(s)}),c()}if(2&t){const
e=i.$implicit,n=d(4);p("option",e)("selected",n.isSelected(e))("label",n.getOptionLabel(e))("disabled",n.isOptionDisabled(e))("template",n.itemTemplate)}}function
cj(t,i){if(1&t&&(de(0),_(1,lj,1,5,"ng-template",40),pe()),2&t){const
e=d().$implicit;a(1),p("ngForOf",e)}}function uj(t,i){if(1&t){const
e=I();de(0),l(1,"p-multiSelectItem",50),C("onClick",function(s){return
v(e),d(5).onOptionClick(s)})("onKeydown",function(s){return
v(e),d(5).onOptionKeydown(s)}),c(),pe()}if(2&t){const
e=i.$implicit,n=d(5);a(1),p("option",e)("selected",n.isSelected(e))("label",n.getOptionLabel(e))("disabled",n.isOptionDisabled(e))("template",n.itemTemplate)("itemSize",n.itemSize)}}function
dj(t,i){if(1&t&&(l(0,"cdk-virtual-scroll-viewport",47,48),_(2,uj,2,6,"ng-container",49),c()),2&t){const
e=d(2).$implicit,n=d(2);p("ngStyle",U(3,Y2,n.scrollHeight))("itemSize",n.i
temSize),a(2),p("cdkVirtualForOf",e)}}function
pj(t,i){if(1&t&&_(0,dj,3,5,"cdk-virtual-scroll-viewport",46),2&t){const
e=d(3);p("ngIf",e.virtualScroll&&!e.emptyOptions)}}function
hj(t,i){if(1&t&&(de(0),g(1),pe()),2&t){const e=d(4);a(1),T("
",e.emptyFilterMessageLabel," ")}}function
mj(t,i){1&t&&Y(0,null,52)}function
fj(t,i){if(1&t&&(l(0,"li",51),_(1,hj,2,1,"ng-container",42),_(2,mj,2,0,"ng-container",27),c()),2&t){const
e=d(3);a(1),p("ngIf",!e.emptyFilterTemplate&&!e.emptyTemplate)("ngIfElse",e.emptyFilter),a(1),p("ngTemplateOutlet",e.emptyFilterTemplate||e.emptyTemplate)}}function
gj(t,i){if(1&t&&(de(0),g(1),pe()),2&t){const e=d(4);a(1),T("
",e.emptyMessageLabel," ")}}function
_j(t,i){1&t&&Y(0,null,53)}function
bj(t,i){if(1&t&&(l(0,"li",51),_(1,gj,2,1,"ng-container",42),_(2,_j,2,0,"ng-container",27),c()),2&t){const
e=d(3);a(1),p("ngIf",!e.emptyTemplate)("ngIfElse",e.empty),a(1),p("ngTemplateOutlet",e.emptyTemplate)}}function
vj(t,i){if(1&t&&(_(0,cj,2,1,"ng-container",42),_(1,pj,1,1
,"ng-template",null,43,we),_(3,fj,3,3,"li",44),_(4,bj,3,3,"li",44)),2&t){const
e=F(2),n=d(2);p("ngIf",!n.virtualScroll)("ngIfElse",e),a(3),p("ngIf",n.hasFilter()&&n.emptyOptions),a(1),p("ngIf",!n.hasFilter()&&n.emptyOptions)}}function
Cj(t,i){1&t&&Y(0)}function
yj(t,i){if(1&t&&(l(0,"div",54),St(1,1),_(2,Cj,1,0,"ng-container",27),c()),2&t){const
e=d(2);a(2),p("ngTemplateOutlet",e.footerTemplate)}}const
wj=function(){return["p-multiselect-panel
p-component"]},Tj=function(t,i){return{showTransitionParams:t,hideTransitionParams:i}},Sj=function(t){return{value:"visible",params:t}},xj=function(t){return{"p-multiselect-virtualscroll":t}};function
Dj(t,i){if(1&t){const
e=I();l(0,"div",20),C("(a)overlayAnimation.start",function(s){return
v(e),d().onOverlayAnimationStart(s)})("(a)overlayAnimation.done",function(s){return
v(e),d().onOverlayAnimationEnd(s)})("keydown",function(s){return
v(e),d().onKeydown(s)})("click",function(s){return
v(e),d().onOverlayClick(s)}),_(1,ej,7,3,"div",21),l(2,"div",22
)(3,"ul",23),_(4,rj,2,1,"ng-container",7),_(5,aj,2,4,"ng-container",7),_(6,vj,5,4,"ng-template",null,24,we),c()(),_(8,yj,3,1,"div",25),c()}if(2&t){const
e=d();me(e.panelStyleClass),p("ngClass",A(12,wj))("@overlayAnimation",U(16,Sj,Ge(13,Tj,e.showTransitionOptions,e.hideTransitionOptions)))("ngStyle",e.panelStyle),a(1),p("ngIf",e.showHeader),a(1),_i("max-height",e.virtualScroll?"auto":e.scrollHeight||"auto"),a(1),p("ngClass",U(18,xj,e.virtualScroll)),a(1),p("ngIf",e.group),a(1),p("ngIf",!e.group),a(3),p("ngIf",e.footerFacet||e.footerTemplate)}}const
Mj=[[["p-header"]],[["p-footer"]]],kj=function(t,i,e,n){return{"p-multiselect
p-component":!0,"p-multiselect-open":t,"p-multiselect-chip":i,"p-focus":e,"p-disabled":n}},Ij=function(t,i){return{"p-placeholder":t,"p-multiselect-label-empty":i}},Ej=function(){return{"p-multiselect-trigger":!0}},Rj=["p-header","p-footer"],Lj={provide:dn,useExisting:je(()=>X2),multi:!0};let
Oj=(()=>{class t{constructor(){this.onClick=new H,this.onKeydown=new H
}onOptionClick(e){this.onClick.emit({originalEvent:e,option:this.option})}onOptionKeydown(e){this.onKeydown.emit({originalEvent:e,option:this.option})}}return
t.\u0275fac=function(e){return
new(e||t)},t.\u0275cmp=z({type:t,selectors:[["p-multiSelectItem"]],hostAttrs:[1,"p-element"],inputs:{option:"option",selected:"selected",label:"label",disabled:"disabled",itemSize:"itemSize",template:"template"},outputs:{onClick:"onClick",onKeydown:"onKeydown"},decls:6,vars:20,consts:[["pRipple","",1,"p-multiselect-item",3,"ngStyle","ngClass","click","keydown"],[1,"p-checkbox","p-component"],[1,"p-checkbox-box",3,"ngClass"],[1,"p-checkbox-icon",3,"ngClass"],[4,"ngIf"],[4,"ngTemplateOutlet","ngTemplateOutletContext"]],template:function(e,n){1&e&&(l(0,"li",0),C("click",function(r){return
n.onOptionClick(r)})("keydown",function(r){return
n.onOptionKeydown(r)}),l(1,"div",1)(2,"div",2),k(3,"span",3),c()(),_(4,Az,2,1,"span",4),_(5,Pz,1,0,"ng-container",5),c()),2&e&&(p("ngStyle",U(9,Y2,n.itemSize+"px"))
("ngClass",Ge(11,Fz,n.selected,n.disabled)),ie("aria-label",n.label)("tabindex",n.disabled?null:"0"),a(2),p("ngClass",U(14,Nz,n.selected)),a(1),p("ngClass",U(16,Z2,n.selected)),a(1),p("ngIf",!n.template),a(1),p("ngTemplateOutlet",n.template)("ngTemplateOutletContext",U(18,Rl,n.option)))},directives:[bt,lt,Le,Q,Rt],encapsulation:2}),t})(),X2=(()=>{class
t{constructor(e,n,s,r,o,u){this.el=e,this.renderer=n,this.cd=s,this.filterService=r,this.config=o,this.overlayService=u,this.filter=!0,this.displaySelectedLabel=!0,this.maxSelectedLabels=3,this.selectedItemsLabel="ellipsis",this.showToggleAll=!0,this.emptyFilterMessage="",this.emptyMessage="",this.resetFilterOnHide=!1,this.dropdownIcon="pi
pi-chevron-down",this.optionGroupChildren="items",this.showHeader=!0,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.tooltipPosi
tionStyle="absolute",this.autofocusFilter=!0,this.display="comma",this.autocomplete="on",this.showClear=!1,this.onChange=new
H,this.onFilter=new H,this.onFocus=new H,this.onBlur=new H,this.onClick=new
H,this.onClear=new H,this.onPanelShow=new H,this.onPanelHide=new
H,this.scrollHeight="200px",this.onModelChange=()=>{},this.onModelTouched=()=>{}}set
defaultLabel(e){this._defaultLabel=e,this.updateLabel()}get defaultLabel(){return
this._defaultLabel}set placeholder(e){this._placeholder=e,this.updateLabel()}get
placeholder(){return this._placeholder}get options(){return this._options}set
options(e){this._options=e,this.updateLabel()}get filterValue(){return
this._filterValue}set
filterValue(e){this._filterValue=e,this.activateFilter()}ngOnInit(){this.updateLabel()}ngAfterContentInit(){this.templates.forEach(e=>{switch(e.getType()){case"item":default:this.itemTemplate=e.template;break;case"group":this.groupTemplate=e.template;break;case"selectedItems":this.selectedItemsTemplate=e.templa
te;break;case"header":this.headerTemplate=e.template;break;case"emptyfilter":this.emptyFilterTemplate=e.template;break;case"empty":this.emptyTemplate=e.template;break;case"footer":this.footerTemplate=e.template}})}ngAfterViewInit(){this.overlayVisible&&this.show()}ngAfterViewChecked(){this.filtered&&(this.alignOverlay(),this.filtered=!1)}getOptionLabel(e){return
this.optionLabel?Z.resolveFieldData(e,this.optionLabel):null!=e.label?e.label:e}getOptionValue(e){return
this.optionValue?Z.resolveFieldData(e,this.optionValue):this.optionLabel||void
0===e.value?e:e.value}getOptionGroupLabel(e){return
this.optionGroupLabel?Z.resolveFieldData(e,this.optionGroupLabel):null!=e.label?e.label:e}getOptionGroupChildren(e){return
this.optionGroupChildren?Z.resolveFieldData(e,this.optionGroupChildren):e.items}isOptionDisabled(e){return(this.optionDisabled?Z.resolveFieldData(e,this.optionDisabled):void
0!==e.disabled&&e.disabled)||this.maxSelectionLimitReached&&!this.isSelected(e)}writeValue(e){this.
value=e,this.updateLabel(),this.updateFilledState(),this.checkSelectionLimit(),this.cd.markForCheck()}checkSelectionLimit(){this.maxSelectionLimitReached=!(!this.selectionLimit||!this.value||this.value.length!==this.selectionLimit)}updateFilledState(){this.filled=this.value&&this.value.length>0}registerOnChange(e){this.onModelChange=e}registerOnTouched(e){this.onModelTouched=e}setDisabledState(e){this.disabled=e,this.cd.markForCheck()}onOptionClick(e){let
n=e.option;if(this.isOptionDisabled(n))return;let
s=this.getOptionValue(n),r=this.findSelectionIndex(s);-1!=r?(this.value=this.value.filter((o,u)=>u!=r),this.selectionLimit&&(this.maxSelectionLimitReached=!1)):((!this.selectionLimit||!this.value||this.value.length<this.selectionLimit)&&(this.value=[...this.value||[],s]),this.checkSelectionLimit()),this.onModelChange(this.value),this.onChange.emit({originalEvent:e.originalEvent,value:this.value,itemValue:s}),this.updateLabel(),this.updateFilledState()}isSelected(e){return-1!=this.fi
ndSelectionIndex(this.getOptionValue(e))}findSelectionIndex(e){let
n=-1;if(this.value)for(let
s=0;s<this.value.length;s++)if(Z.equals(this.value[s],e,this.dataKey)){n=s;break}return
n}get toggleAllDisabled(){let e=this.optionsToRender;if(!e||0===e.length)return!0;for(let
n of
e)if(!this.isOptionDisabled(n))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}),this.updateFilledState(),this.updateLabel(),e.preventDefault())}checkAll(){let
n=[];this.optionsToRender.forEach(s=>{if(this.group){let
r=this.getOptionGroupChildren(s);r&&r.forEach(o=>{let
u=this.isOptionDisabled(o);(!u||u&&this.isSelected(o))&&n.push(this.getOptionValue(o))})}else{let
r=this.isOptionDisabled(s);(!r||r&&this.isSelected(s))&&n.push(this.getOptionValue(s))}}),this.value=n}uncheckAll(){let
n=[];this.optionsToRender.forEach(s=>{this.group?s.items&&s
.items.forEach(r=>{this.isOptionDisabled(r)&&this.isSelected(r)&&n.push(this.getOptionValue(r))}):this.isOptionDisabled(s)&&this.isSelected(s)&&n.push(this.getOptionValue(s))}),this.value=n}show(){this.overlayVisible||(this.overlayVisible=!0,this.preventDocumentDefault=!0,this.cd.markForCheck())}onOverlayClick(e){this.overlayService.add({originalEvent:e,target:this.el.nativeElement})}onOverlayAnimationStart(e){switch(e.toState){case"visible":this.overlay=e.element,this.appendOverlay(),this.autoZIndex&&dt.set("overlay",this.overlay,this.baseZIndex+this.config.zIndex.overlay),this.alignOverlay(),this.bindDocumentClickListener(),this.bindDocumentResizeListener(),this.bindScrollListener(),this.filterInputChild&&this.filterInputChild.nativeElement&&(this.preventModelTouched=!0,this.autofocusFilter&&this.filterInputChild.nativeElement.focus()),this.onPanelShow.emit();break;case"void":this.onOverlayHide()}}onOverlayAnimationEnd(e){"void"===e.toState&&dt.clear(e.element)}appendOverlay(){thi
s.appendTo&&("body"===this.appendTo?document.body.appendChild(this.overlay):R.appendChild(this.overlay,this.appendTo),this.overlay.style.minWidth||(this.overlay.style.minWidth=R.getWidth(this.containerViewChild.nativeElement)+"px"))}restoreOverlayAppend(){this.overlay&&this.appendTo&&this.el.nativeElement.appendChild(this.overlay)}alignOverlay(){this.overlay&&(this.appendTo?R.absolutePosition(this.overlay,this.containerViewChild.nativeElement):R.relativePosition(this.overlay,this.containerViewChild.nativeElement))}hide(){this.overlayVisible=!1,this.unbindDocumentClickListener(),this.resetFilterOnHide&&(this.filterInputChild.nativeElement.value="",this._filterValue=null,this._filteredOptions=null),this.onPanelHide.emit(),this.cd.markForCheck()}close(e){this.hide(),e.preventDefault(),e.stopPropagation()}clear(e){this.value=null,this.updateLabel(),this.updateFilledState(),this.onClear.emit(),this.onModelChange(this.value),e.stopPropagation()}onMouseclick(e,n){this.disabled||this.readon
ly||e.target.isSameNode(this.accessibleViewChild.nativeElement)||(this.onClick.emit(e),!this.isOverlayClick(e)&&!R.hasClass(e.target,"p-multiselect-token-icon")&&(this.overlayVisible?this.hide():(n.focus(),this.show())))}removeChip(e,n){this.value=this.value.filter(s=>!Z.equals(s,e,this.dataKey)),this.onModelChange(this.value),this.checkSelectionLimit(),this.onChange.emit({originalEvent:n,value:this.value,itemValue:e}),this.updateLabel(),this.updateFilledState()}isOverlayClick(e){let
n=e.target;return!!this.overlay&&(this.overlay.isSameNode(n)||this.overlay.contains(n))}isOutsideClicked(e){return!(this.el.nativeElement.isSameNode(e.target)||this.el.nativeElement.contains(e.target)||this.isOverlayClick(e))}onInputFocus(e){this.focus=!0,this.onFocus.emit({originalEvent:e})}onInputBlur(e){this.focus=!1,this.onBlur.emit({originalEvent:e}),this.preventModelTouched||this.onModelTouched(),this.preventModelTouched=!1}onOptionKeydown(e){if(!this.readonly)switch(e.originalEvent.which){case
40
:var
n=this.findNextItem(e.originalEvent.target.parentElement);n&&n.focus(),e.originalEvent.preventDefault();break;case
38:var
s=this.findPrevItem(e.originalEvent.target.parentElement);s&&s.focus(),e.originalEvent.preventDefault();break;case
13:this.onOptionClick(e),e.originalEvent.preventDefault();break;case
9:this.hide()}}findNextItem(e){let n=e.nextElementSibling;return
n?R.hasClass(n.children[0],"p-disabled")||R.isHidden(n.children[0])||R.hasClass(n,"p-multiselect-item-group")?this.findNextItem(n):n.children[0]:null}findPrevItem(e){let
n=e.previousElementSibling;return
n?R.hasClass(n.children[0],"p-disabled")||R.isHidden(n.children[0])||R.hasClass(n,"p-multiselect-item-group")?this.findPrevItem(n):n.children[0]:null}onKeydown(e){switch(e.which){case
40:!this.overlayVisible&&e.altKey&&(this.show(),e.preventDefault());break;case
32:this.overlayVisible||(this.show(),e.preventDefault());break;case
27:this.hide()}}updateLabel(){if(this.value&&this.options&&this.value.length&&this.dis
playSelectedLabel){let e="";for(let n=0;n<this.value.length;n++){let
s=this.findLabelByValue(this.value[n]);s&&(e.length>0&&(e+=",
"),e+=s)}if(this.value.length<=this.maxSelectedLabels||"ellipsis"===this.selectedItemsLabel)this.valuesAsString=e;else{let
n=/{(.*?)}/;this.valuesAsString=n.test(this.selectedItemsLabel)?this.selectedItemsLabel.replace(this.selectedItemsLabel.match(n)[0],this.value.length+""):this.selectedItemsLabel}}else
this.valuesAsString=this.placeholder||this.defaultLabel}findLabelByValue(e){if(this.group){let
n=null;for(let s=0;s<this.options.length;s++){let
r=this.getOptionGroupChildren(this.options[s]);if(r&&(n=this.searchLabelByValue(e,r),n))break}return
n}return this.searchLabelByValue(e,this.options)}searchLabelByValue(e,n){let
s=null;for(let r=0;r<n.length;r++){let
o=n[r],u=this.getOptionValue(o);if(null==e&&null==u||Z.equals(e,u,this.dataKey)){s=this.getOptionLabel(o);break}}return
s}get allChecked(){let e=this.optionsToRender;if(!e||0===e.length)return!1;{l
et n=0,s=0,r=0,o=this.group?0:this.optionsToRender.length;for(let u of
e)if(this.group)for(let h of this.getOptionGroupChildren(u)){let
b=this.isOptionDisabled(h),y=this.isSelected(h);if(b)y?n++:s++;else{if(!y)return!1;r++}o++}else{let
h=this.isOptionDisabled(u),b=this.isSelected(u);if(h)b?n++:s++;else{if(!b)return!1;r++}}return
o===n||o===r||r&&o===r+s+n}}get optionsToRender(){return
this._filteredOptions||this.options}get emptyOptions(){let
e=this.optionsToRender;return!e||0===e.length}get emptyMessageLabel(){return
this.emptyMessage||this.config.getTranslation(Ft.EMPTY_MESSAGE)}get
emptyFilterMessageLabel(){return
this.emptyFilterMessage||this.config.getTranslation(Ft.EMPTY_FILTER_MESSAGE)}hasFilter(){return
this._filterValue&&this._filterValue.trim().length>0}onFilterInputChange(e){this._filterValue=e.target.value,this.activateFilter(),this.onFilter.emit({originalEvent:e,filter:this._filterValue}),this.cd.detectChanges(),this.alignOverlay()}activateFilter(){if(this.hasFilter()&&
this._options){let
e=(this.filterBy||this.optionLabel||"label").split(",");if(this.group){let
n=[];for(let s of this.options){let
r=this.filterService.filter(this.getOptionGroupChildren(s),e,this.filterValue,this.filterMatchMode,this.filterLocale);r&&r.length&&n.push(Object.assign(Object.assign({},s),{[this.optionGroupChildren]:r}))}this._filteredOptions=n}else
this._filteredOptions=this.filterService.filter(this.options,e,this._filterValue,this.filterMatchMode,this.filterLocale)}else
this._filteredOptions=null}onHeaderCheckboxFocus(){this.headerCheckboxFocus=!0}onHeaderCheckboxBlur(){this.headerCheckboxFocus=!1}bindDocumentClickListener(){this.documentClickListener||(this.documentClickListener=this.renderer.listen(this.el?this.el.nativeElement.ownerDocument:"document","click",n=>{!this.preventDocumentDefault&&this.isOutsideClicked(n)&&this.hide(),this.preventDocumentDefault=!1}))}unbindDocumentClickListener(){this.documentClickListener&&(this.documentClickListener(),this.documentCl
ickListener=null)}bindDocumentResizeListener(){this.documentResizeListener=this.onWindowResize.bind(this),window.addEventListener("resize",this.documentResizeListener)}unbindDocumentResizeListener(){this.documentResizeListener&&(window.removeEventListener("resize",this.documentResizeListener),this.documentResizeListener=null)}onWindowResize(){R.isAndroid()||this.hide()}bindScrollListener(){this.scrollHandler||(this.scrollHandler=new
Qs(this.containerViewChild.nativeElement,()=>{this.overlayVisible&&this.hide()})),this.scrollHandler.bindScrollListener()}unbindScrollListener(){this.scrollHandler&&this.scrollHandler.unbindScrollListener()}onOverlayHide(){this.unbindDocumentClickListener(),this.unbindDocumentResizeListener(),this.unbindScrollListener(),this.overlay=null,this.onModelTouched()}ngOnDestroy(){this.scrollHandler&&(this.scrollHandler.destroy(),this.scrollHandler=null),this.overlay&&dt.clear(this.overlay),this.restoreOverlayAppend(),this.onOverlayHide()}}return
t.\u0275fac=fun
ction(e){return
new(e||t)(D(De),D(gn),D(rt),D(hl),D(zn),D(Ks))},t.\u0275cmp=z({type:t,selectors:[["p-multiSelect"]],contentQueries:function(e,n,s){if(1&e&&(st(s,fl,5),st(s,Oo,5),st(s,ne,4)),2&e){let
r;V(r=B())&&(n.footerFacet=r.first),V(r=B())&&(n.headerFacet=r.first),V(r=B())&&(n.templates=r)}},viewQuery:function(e,n){if(1&e&&(W(Vz,5),W(Bz,5),W(Hz,5)),2&e){let
s;V(s=B())&&(n.containerViewChild=s.first),V(s=B())&&(n.filterInputChild=s.first),V(s=B())&&(n.accessibleViewChild=s.first)}},hostAttrs:[1,"p-element","p-inputwrapper"],hostVars:6,hostBindings:function(e,n){2&e&&si("p-inputwrapper-filled",n.filled)("p-inputwrapper-focus",n.focus||n.overlayVisible)("p-multiselect-clearable",n.showClear&&!n.disabled)},inputs:{style:"style",styleClass:"styleClass",panelStyle:"panelStyle",panelStyleClass:"panelStyleClass",inputId:"inputId",disabled:"disabled",readonly:"readonly",group:"group",filter:"filter",filterPlaceHolder:"filterPlaceHolder",filterLocale:"filterLocale",overlayVisible:"overlay
Visible",tabindex:"tabindex",appendTo:"appendTo",dataKey:"dataKey",name:"name",label:"label",ariaLabelledBy:"ariaLabelledBy",displaySelectedLabel:"displaySelectedLabel",maxSelectedLabels:"maxSelectedLabels",selectionLimit:"selectionLimit",selectedItemsLabel:"selectedItemsLabel",showToggleAll:"showToggleAll",emptyFilterMessage:"emptyFilterMessage",emptyMessage:"emptyMessage",resetFilterOnHide:"resetFilterOnHide",dropdownIcon:"dropdownIcon",optionLabel:"optionLabel",optionValue:"optionValue",optionDisabled:"optionDisabled",optionGroupLabel:"optionGroupLabel",optionGroupChildren:"optionGroupChildren",showHeader:"showHeader",autoZIndex:"autoZIndex",baseZIndex:"baseZIndex",filterBy:"filterBy",virtualScroll:"virtualScroll",itemSize:"itemSize",showTransitionOptions:"showTransitionOptions",hideTransitionOptions:"hideTransitionOptions",ariaFilterLabel:"ariaFilterLabel",filterMatchMode:"filterMatchMode",tooltip:"tooltip",tooltipPosition:"tooltipPosition",tooltipPositionStyle:"tooltipPositionS
tyle",tooltipStyleClass:"tooltipStyleClass",autofocusFilter:"autofocusFilter",display:"display",autocomplete:"autocomplete",showClear:"showClear",scrollHeight:"scrollHeight",defaultLabel:"defaultLabel",placeholder:"placeholder",options:"options",filterValue:"filterValue"},outputs:{onChange:"onChange",onFilter:"onFilter",onFocus:"onFocus",onBlur:"onBlur",onClick:"onClick",onClear:"onClear",onPanelShow:"onPanelShow",onPanelHide:"onPanelHide"},features:[Pe([Lj])],ngContentSelectors:Rj,decls:13,vars:34,consts:[[3,"ngClass","ngStyle","click"],["container",""],[1,"p-hidden-accessible"],["type","text","readonly","readonly","aria-haspopup","listbox","role","listbox",3,"disabled","focus","blur","keydown"],["in",""],[1,"p-multiselect-label-container",3,"pTooltip","tooltipPosition","positionStyle","tooltipStyleClass"],[1,"p-multiselect-label",3,"ngClass"],[4,"ngIf"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],["class","p-multiselect-clear-icon
pi pi-times",3,"click",4,"ngIf"],[3,"ngClass"
],[1,"p-multiselect-trigger-icon",3,"ngClass"],["onOverlayAnimationEnd","",3,"ngClass","ngStyle","class","keydown","click",4,"ngIf"],["class","p-multiselect-token",4,"ngFor","ngForOf"],[1,"p-multiselect-token"],["token",""],[1,"p-multiselect-token-label"],["class","p-multiselect-token-icon
pi
pi-times-circle",3,"click",4,"ngIf"],[1,"p-multiselect-token-icon","pi","pi-times-circle",3,"click"],[1,"p-multiselect-clear-icon","pi","pi-times",3,"click"],["onOverlayAnimationEnd","",3,"ngClass","ngStyle","keydown","click"],["class","p-multiselect-header",4,"ngIf"],[1,"p-multiselect-items-wrapper"],["role","listbox","aria-multiselectable","true",1,"p-multiselect-items","p-component",3,"ngClass"],["itemslist",""],["class","p-multiselect-footer",4,"ngIf"],[1,"p-multiselect-header"],[4,"ngTemplateOutlet"],["class","p-checkbox
p-component",3,"ngClass",4,"ngIf"],["class","p-multiselect-filter-container",4,"ngIf"],["type","button","pRipple","",1,"p-multiselect-close","p-link",3,"click"],[1,"p-mult
iselect-close-icon","pi","pi-times"],[1,"p-checkbox","p-component",3,"ngClass"],["type","checkbox","readonly","readonly",3,"checked","disabled","focus","blur","keydown.space"],["role","checkbox",1,"p-checkbox-box",3,"ngClass","click"],[1,"p-checkbox-icon",3,"ngClass"],[1,"p-multiselect-filter-container"],["type","text","role","textbox",1,"p-multiselect-filter","p-inputtext","p-component",3,"value","disabled","input"],["filterInput",""],[1,"p-multiselect-filter-icon","pi","pi-search"],["ngFor","",3,"ngForOf"],[1,"p-multiselect-item-group"],[4,"ngIf","ngIfElse"],["virtualScrollList",""],["class","p-multiselect-empty-message",4,"ngIf"],[3,"option","selected","label","disabled","template","onClick","onKeydown"],[3,"ngStyle","itemSize",4,"ngIf"],[3,"ngStyle","itemSize"],["viewport",""],[4,"cdkVirtualFor","cdkVirtualForOf"],[3,"option","selected","label","disabled","template","itemSize","onClick","onKeydown"],[1,"p-multiselect-empty-message"],["emptyFilter",""],["empty",""],[1,"p-multisel
ect-footer"]],template:function(e,n){if(1&e){const
s=I();Sn(Mj),l(0,"div",0,1),C("click",function(o){v(s);const
u=F(4);return
n.onMouseclick(o,u)}),l(2,"div",2)(3,"input",3,4),C("focus",function(o){return
n.onInputFocus(o)})("blur",function(o){return
n.onInputBlur(o)})("keydown",function(o){return
n.onKeydown(o)}),c()(),l(5,"div",5)(6,"div",6),_(7,$z,3,2,"ng-container",7),_(8,Wz,1,0,"ng-container",8),c(),_(9,Kz,1,0,"i",9),c(),l(10,"div",10),k(11,"span",11),c(),_(12,Dj,9,20,"div",12),c()}2&e&&(me(n.styleClass),p("ngClass",qn(23,kj,n.overlayVisible,"chip"===n.display,n.focus,n.disabled))("ngStyle",n.style),a(3),p("disabled",n.disabled),ie("label",n.label)("id",n.inputId)("name",n.name)("tabindex",n.tabindex)("aria-expanded",n.overlayVisible)("aria-labelledby",n.ariaLabelledBy),a(2),p("pTooltip",n.tooltip)("tooltipPosition",n.tooltipPosition)("positionStyle",n.tooltipPositionStyle)("tooltipStyleClass",n.tooltipStyleClass),a(1),p("ngClass",Ge(28,Ij,n.valuesAsString===(n.defaultLabel||n.
placeholder),!(null!=n.valuesAsString&&0!==n.valuesAsString.length||null!=n.placeholder&&0!==n.placeholder.length))),a(1),p("ngIf",!n.selectedItemsTemplate),a(1),p("ngTemplateOutlet",n.selectedItemsTemplate)("ngTemplateOutletContext",U(31,Rl,n.value)),a(1),p("ngIf",null!=n.value&&n.filled&&!n.disabled&&n.showClear),a(1),p("ngClass",A(33,Ej)),a(1),p("ngClass",n.dropdownIcon),a(1),p("ngIf",n.overlayVisible))},directives:[Oj,Po,Le,lt,Kt,Q,at,Rt,bt,Qf,Jf],styles:[".p-multiselect{display:inline-flex;cursor:pointer;position:relative;-webkit-user-select:none;user-select:none}.p-multiselect-trigger{display:flex;align-items:center;justify-content:center;flex-shrink:0}.p-multiselect-label-container{overflow:hidden;flex:1
1
auto;cursor:pointer}.p-multiselect-label{display:block;white-space:nowrap;cursor:pointer;overflow:hidden;text-overflow:ellipsis}.p-multiselect-label-empty{overflow:hidden;visibility:hidden}.p-multiselect-token{cursor:default;display:inline-flex;align-items:center;flex:0
0 a
uto}.p-multiselect-token-icon{cursor:pointer}.p-multiselect
.p-multiselect-panel{min-width:100%}.p-multiselect-panel{position:absolute;top:0;left:0}.p-multiselect-items-wrapper{overflow:auto}.p-multiselect-items{margin:0;padding:0;list-style-type:none}.p-multiselect-item{cursor:pointer;display:flex;align-items:center;font-weight:400;white-space:nowrap;position:relative;overflow:hidden}.p-multiselect-header{display:flex;align-items:center;justify-content:space-between}.p-multiselect-filter-container{position:relative;flex:1
1
auto}.p-multiselect-filter-icon{position:absolute;top:50%;margin-top:-.5rem}.p-multiselect-filter-container
.p-inputtext{width:100%}.p-multiselect-close{display:flex;align-items:center;justify-content:center;flex-shrink:0;overflow:hidden;position:relative}.p-fluid
.p-multiselect{display:flex}.p-multiselect-clear-icon{position:absolute;top:50%;margin-top:-.5rem;cursor:pointer}.p-multiselect-clearable{position:relative}\n"],encapsulation:2,data:{animation:[wi("ove
rlayAnimation",[Lt(":enter",[it({opacity:0,transform:"scaleY(0.8)"}),kt("{{showTransitionParams}}")]),Lt(":leave",[kt("{{hideTransitionParams}}",it({opacity:0}))])])]},changeDetection:0}),t})(),Aj=(()=>{class
t{}return t.\u0275fac=function(e){return
new(e||t)},t.\u0275mod=he({type:t}),t.\u0275inj=ue({imports:[[Fe,Nt,Fo,jn,pn],Nt,Fo]}),t})(),e$=(()=>{class
t{}return t.\u0275fac=function(e){return
new(e||t)},t.\u0275mod=he({type:t}),t.\u0275inj=ue({imports:[[Fe,vn,jn],vn,jn]}),t})(),tS=(()=>{class
t{constructor(e,n,s,r){this.el=e,this.ngModel=n,this.control=s,this.cd=r,this.onResize=new
H}ngOnInit(){this.ngModel&&(this.ngModelSubscription=this.ngModel.valueChanges.subscribe(()=>{this.updateState()})),this.control&&(this.ngControlSubscription=this.control.valueChanges.subscribe(()=>{this.updateState()}))}ngAfterViewInit(){this.autoResize&&this.resize(),this.updateFilledState(),this.cd.detectChanges()}onInput(e){this.updateState()}updateFilledState(){this.filled=this.el.nativeElement.va
lue&&this.el.nativeElement.value.length}onFocus(e){this.autoResize&&this.resize(e)}onBlur(e){this.autoResize&&this.resize(e)}resize(e){this.el.nativeElement.style.height="auto",this.el.nativeElement.style.height=this.el.nativeElement.scrollHeight+"px",parseFloat(this.el.nativeElement.style.height)>=parseFloat(this.el.nativeElement.style.maxHeight)?(this.el.nativeElement.style.overflowY="scroll",this.el.nativeElement.style.height=this.el.nativeElement.style.maxHeight):this.el.nativeElement.style.overflow="hidden",this.onResize.emit(e||{})}updateState(){this.updateFilledState(),this.autoResize&&this.resize()}ngOnDestroy(){this.ngModelSubscription&&this.ngModelSubscription.unsubscribe(),this.ngControlSubscription&&this.ngControlSubscription.unsubscribe()}}return
t.\u0275fac=function(e){return
new(e||t)(D(De),D(_e,8),D(ss,8),D(rt))},t.\u0275dir=le({type:t,selectors:[["","pInputTextarea",""]],hostAttrs:[1,"p-inputtextarea","p-inputtext","p-component","p-element"],hostVars:4,hostBindings:
function(e,n){1&e&&C("input",function(r){return
n.onInput(r)})("focus",function(r){return
n.onFocus(r)})("blur",function(r){return
n.onBlur(r)}),2&e&&si("p-filled",n.filled)("p-inputtextarea-resizable",n.autoResize)},inputs:{autoResize:"autoResize"},outputs:{onResize:"onResize"}}),t})(),t$=(()=>{class
t{}return t.\u0275fac=function(e){return
new(e||t)},t.\u0275mod=he({type:t}),t.\u0275inj=ue({imports:[[Fe]]}),t})();const
n$=["sublist"],i$=function(t){return{"p-hidden":t}};function
s$(t,i){if(1&t&&k(0,"li",5),2&t){const
e=d().$implicit;p("ngClass",U(1,i$,!1===e.visible))}}function
r$(t,i){if(1&t&&k(0,"span",16),2&t){const
e=d(3).$implicit;p("ngClass",e.icon)("ngStyle",e.iconStyle)}}function
o$(t,i){if(1&t&&(l(0,"span",17),g(1),c()),2&t){const
e=d(3).$implicit;a(1),S(e.label)}}function
a$(t,i){1&t&&k(0,"span",18),2&t&&p("innerHTML",d(3).$implicit.label,Bt)}function
l$(t,i){1&t&&k(0,"span",19)}const
nS=function(t){return{"p-menuitem-link":!0,"p-disabled":t}};function
c$(t,i){if(1&t){co
nst e=I();l(0,"a",11),C("keydown",function(s){v(e);const
r=d(2).$implicit;return d().onItemKeyDown(s,r)})("click",function(s){v(e);const
r=d(2).$implicit;return
d().onItemClick(s,r)})("mouseenter",function(s){v(e);const
r=d(2).$implicit;return
d().onItemMouseEnter(s,r)}),_(1,r$,1,2,"span",12),_(2,o$,2,1,"span",13),_(3,a$,1,1,"ng-template",null,14,we),_(5,l$,1,0,"span",15),c()}if(2&t){const
e=F(4),n=d(2).$implicit,s=d();p("target",n.target)("ngClass",U(13,nS,n.disabled)),ie("href",n.url,ln)("data-automationid",n.automationId)("title",n.title)("id",n.id)("tabindex",n.disabled?null:"0")("aria-haspopup",null!=s.item.items)("aria-expanded",s.item===s.activeItem),a(1),p("ngIf",n.icon),a(1),p("ngIf",!1!==n.escape)("ngIfElse",e),a(3),p("ngIf",n.items)}}function
u$(t,i){if(1&t&&k(0,"span",16),2&t){const
e=d(3).$implicit;p("ngClass",e.icon)("ngStyle",e.iconStyle)}}function
d$(t,i){if(1&t&&(l(0,"span",17),g(1),c()),2&t){const
e=d(3).$implicit;a(1),S(e.label)}}function
p$(t,i){1&t&&k(0,"span",1
8),2&t&&p("innerHTML",d(3).$implicit.label,Bt)}function
h$(t,i){1&t&&k(0,"span",19)}const
m$=function(){return{exact:!1}};function f$(t,i){if(1&t){const
e=I();l(0,"a",20),C("keydown",function(s){v(e);const
r=d(2).$implicit;return d().onItemKeyDown(s,r)})("click",function(s){v(e);const
r=d(2).$implicit;return
d().onItemClick(s,r)})("mouseenter",function(s){v(e);const
r=d(2).$implicit;return
d().onItemMouseEnter(s,r)}),_(1,u$,1,2,"span",12),_(2,d$,2,1,"span",13),_(3,p$,1,1,"ng-template",null,21,we),_(5,h$,1,0,"span",15),c()}if(2&t){const
e=F(4),n=d(2).$implicit;p("routerLink",n.routerLink)("queryParams",n.queryParams)("routerLinkActive","p-menuitem-link-active")("routerLinkActiveOptions",n.routerLinkActiveOptions||A(20,m$))("target",n.target)("ngClass",U(21,nS,n.disabled))("fragment",n.fragment)("queryParamsHandling",n.queryParamsHandling)("preserveFragment",n.preserveFragment)("skipLocationChange",n.skipLocationChange)("replaceUrl",n.replaceUrl)("state",n.state),ie("data-automationid
",n.automationId)("title",n.title)("id",n.id)("tabindex",n.disabled?null:"0"),a(1),p("ngIf",n.icon),a(1),p("ngIf",!1!==n.escape)("ngIfElse",e),a(3),p("ngIf",n.items)}}function
g$(t,i){if(1&t){const
e=I();l(0,"p-tieredMenuSub",22),C("keydownItem",function(s){return
v(e),d(3).onChildItemKeyDown(s)})("leafClick",function(){return
v(e),d(3).onLeafClick()}),c()}if(2&t){const
e=d(2).$implicit,n=d();p("parentActive",e===n.activeItem)("item",e)("mobileActive",n.mobileActive)("autoDisplay",n.autoDisplay)("popup",n.popup)}}const
_$=function(t,i){return{"p-menuitem":!0,"p-menuitem-active":t,"p-hidden":i}};function
b$(t,i){if(1&t&&(l(0,"li",6,7),_(2,c$,6,15,"a",8),_(3,f$,6,23,"a",9),_(4,g$,1,5,"p-tieredMenuSub",10),c()),2&t){const
e=d().$implicit,n=d();me(e.styleClass),p("ngClass",Ge(8,_$,e===n.activeItem,!1===e.visible))("ngStyle",e.style)("tooltipOptions",e.tooltipOptions),a(2),p("ngIf",!e.routerLink),a(1),p("ngIf",e.routerLink),a(1),p("ngIf",e.items)}}function
v$(t,i){if(1&t&&(_(0,s$,1,3,"li
",3),_(1,b$,5,11,"li",4)),2&t){const
e=i.$implicit;p("ngIf",e.separator),a(1),p("ngIf",!e.separator)}}const
C$=function(t){return{"p-submenu-list":t}},y$=function(t){return{"p-tieredmenu
p-component":!0,"p-tieredmenu-overlay":t}},w$=function(t,i){return{showTransitionParams:t,hideTransitionParams:i}},T$=function(t){return{value:"visible",params:t}};function
S$(t,i){if(1&t){const
e=I();l(0,"div",1),C("click",function(s){return
v(e),d().onOverlayClick(s)})("(a)overlayAnimation.start",function(s){return
v(e),d().onOverlayAnimationStart(s)})("(a)overlayAnimation.done",function(s){return
v(e),d().onOverlayAnimationEnd(s)}),l(1,"p-tieredMenuSub",2),C("leafClick",function(){return
v(e),d().onLeafClick()}),c()()}if(2&t){const
e=d();me(e.styleClass),p("ngClass",U(12,y$,e.popup))("ngStyle",e.style)("@overlayAnimation",U(17,T$,Ge(14,w$,e.showTransitionOptions,e.hideTransitionOptions)))("@.disabled",!0!==e.popup),a(1),p("item",e.model)("parentActive",e.parentActive)("baseZIndex",e.baseZIndex)("auto
ZIndex",e.autoZIndex)("autoDisplay",e.autoDisplay)("popup",e.popup)}}let
x$=(()=>{class
t{constructor(e,n,s){this.el=e,this.renderer=n,this.cd=s,this.autoZIndex=!0,this.baseZIndex=0,this.leafClick=new
H,this.keydownItem=new H,this.menuHoverActive=!1}get parentActive(){return
this._parentActive}set
parentActive(e){this.root||(this._parentActive=e,e?this.positionSubmenu():this.activeItem=null)}onItemClick(e,n){n.disabled?e.preventDefault():(!n.url&&!n.routerLink&&e.preventDefault(),n.command&&n.command({originalEvent:e,item:n}),n.items&&(this.activeItem&&n===this.activeItem?(this.activeItem=null,this.unbindDocumentClickListener()):(this.activeItem=n,this.root&&this.bindDocumentClickListener())),n.items||this.onLeafClick())}onItemMouseEnter(e,n){n.disabled||this.mobileActive?e.preventDefault():this.root?(this.activeItem||this.autoDisplay||this.popup)&&(this.activeItem=n,this.bindDocumentClickListener()):(this.activeItem=n,this.bindDocumentClickListener())}onLeafClick(){this.activeItem=
null,this.root&&this.unbindDocumentClickListener(),this.leafClick.emit()}onItemKeyDown(e,n){let
s=e.currentTarget.parentElement;switch(e.key){case"ArrowDown":var
r=this.findNextItem(s);r&&r.children[0].focus(),e.preventDefault();break;case"ArrowUp":var
o=this.findPrevItem(s);o&&o.children[0].focus(),e.preventDefault();break;case"ArrowRight":n.items&&(this.activeItem=n,this.root&&this.bindDocumentClickListener(),setTimeout(()=>{s.children[1].children[0].children[0].children[0].focus()},50)),e.preventDefault()}this.keydownItem.emit({originalEvent:e,element:s})}positionSubmenu(){let
e=this.sublistViewChild&&this.sublistViewChild.nativeElement;if(e){const
n=e.parentElement.parentElement,s=R.getOffset(n),r=R.getViewport(),o=e.offsetParent?e.offsetWidth:R.getHiddenElementOuterWidth(e),u=R.getOuterWidth(n.children[0]);parseInt(s.left,10)+u+o>r.width-R.calculateScrollbarWidth()&&R.addClass(e,"p-submenu-list-flipped")}}findNextItem(e){let
n=e.nextElementSibling;return n?R.hasClass(n,"p-disab
led")||!R.hasClass(n,"p-menuitem")?this.findNextItem(n):n:null}findPrevItem(e){let
n=e.previousElementSibling;return
n?R.hasClass(n,"p-disabled")||!R.hasClass(n,"p-menuitem")?this.findPrevItem(n):n:null}onChildItemKeyDown(e){"ArrowLeft"===e.originalEvent.key&&(this.activeItem=null,this.root&&this.unbindDocumentClickListener(),e.element.parentElement.parentElement.parentElement.children[0].focus())}bindDocumentClickListener(){this.documentClickListener||(this.documentClickListener=e=>{this.el&&!this.el.nativeElement.contains(e.target)&&(this.activeItem=null,this.cd.markForCheck(),this.unbindDocumentClickListener())},document.addEventListener("click",this.documentClickListener))}unbindDocumentClickListener(){this.documentClickListener&&(document.removeEventListener("click",this.documentClickListener),this.documentClickListener=null)}ngOnDestroy(){this.unbindDocumentClickListener()}}return
t.\u0275fac=function(e){return
new(e||t)(D(De),D(gn),D(rt))},t.\u0275cmp=z({type:t,selectors:[["p
-tieredMenuSub"]],viewQuery:function(e,n){if(1&e&&W(n$,5),2&e){let
s;V(s=B())&&(n.sublistViewChild=s.first)}},hostAttrs:[1,"p-element"],inputs:{item:"item",root:"root",autoDisplay:"autoDisplay",autoZIndex:"autoZIndex",baseZIndex:"baseZIndex",mobileActive:"mobileActive",popup:"popup",parentActive:"parentActive"},outputs:{leafClick:"leafClick",keydownItem:"keydownItem"},decls:3,vars:4,consts:[[3,"ngClass"],["sublist",""],["ngFor","",3,"ngForOf"],["class","p-menu-separator",3,"ngClass",4,"ngIf"],["pTooltip","",3,"ngClass","ngStyle","class","tooltipOptions",4,"ngIf"],[1,"p-menu-separator",3,"ngClass"],["pTooltip","",3,"ngClass","ngStyle","tooltipOptions"],["listItem",""],["pRipple","",3,"target","ngClass","keydown","click","mouseenter",4,"ngIf"],["role","menuitem","pRipple","",3,"routerLink","queryParams","routerLinkActive","routerLinkActiveOptions","target","ngClass","fragment","queryParamsHandling","preserveFragment","skipLocationChange","replaceUrl","state","keydown","click","mouseen
ter",4,"ngIf"],[3,"parentActive","item","mobileActive","autoDisplay","popup","keydownItem","leafClick",4,"ngIf"],["pRipple","",3,"target","ngClass","keydown","click","mouseenter"],["class","p-menuitem-icon",3,"ngClass","ngStyle",4,"ngIf"],["class","p-menuitem-text",4,"ngIf","ngIfElse"],["htmlLabel",""],["class","p-submenu-icon
pi
pi-angle-right",4,"ngIf"],[1,"p-menuitem-icon",3,"ngClass","ngStyle"],[1,"p-menuitem-text"],[1,"p-menuitem-text",3,"innerHTML"],[1,"p-submenu-icon","pi","pi-angle-right"],["role","menuitem","pRipple","",3,"routerLink","queryParams","routerLinkActive","routerLinkActiveOptions","target","ngClass","fragment","queryParamsHandling","preserveFragment","skipLocationChange","replaceUrl","state","keydown","click","mouseenter"],["htmlRouteLabel",""],[3,"parentActive","item","mobileActive","autoDisplay","popup","keydownItem","leafClick"]],template:function(e,n){1&e&&(l(0,"ul",0,1),_(2,v$,2,2,"ng-template",2),c()),2&e&&(p("ngClass",U(2,C$,!n.root)),a(2),p("ngForOf",n.r
oot?n.item:n.item.items))},directives:[t,Le,at,Q,Kt,lt,bt,Ho,_d],encapsulation:2}),t})(),D$=(()=>{class
t{constructor(e,n,s,r,o){this.el=e,this.renderer=n,this.cd=s,this.config=r,this.overlayService=o,this.autoZIndex=!0,this.baseZIndex=0,this.showTransitionOptions=".12s
cubic-bezier(0, 0, 0.2, 1)",this.hideTransitionOptions=".1s
linear"}toggle(e){this.visible?this.hide():this.show(e),this.preventDocumentDefault=!0}show(e){this.target=e.currentTarget,this.relativeAlign=e.relativeAlign,this.visible=!0,this.parentActive=!0,this.preventDocumentDefault=!0,this.cd.markForCheck()}onOverlayClick(e){this.popup&&this.overlayService.add({originalEvent:e,target:this.el.nativeElement}),this.preventDocumentDefault=!0}onOverlayAnimationStart(e){switch(e.toState){case"visible":this.popup&&(this.container=e.element,this.moveOnTop(),this.appendOverlay(),this.alignOverlay(),this.bindDocumentClickListener(),this.bindDocumentResizeListener(),this.bindScrollListener());break;case"void":this.onOverlayHide
()}}alignOverlay(){this.relativeAlign?R.relativePosition(this.container,this.target):R.absolutePosition(this.container,this.target)}onOverlayAnimationEnd(e){"void"===e.toState&&dt.clear(e.element)}appendOverlay(){this.appendTo&&("body"===this.appendTo?document.body.appendChild(this.container):R.appendChild(this.container,this.appendTo))}restoreOverlayAppend(){this.container&&this.appendTo&&this.el.nativeElement.appendChild(this.container)}moveOnTop(){this.autoZIndex&&dt.set("menu",this.container,this.baseZIndex+this.config.zIndex.menu)}hide(){this.visible=!1,this.relativeAlign=!1,this.parentActive=!1,this.cd.markForCheck()}onWindowResize(){this.hide()}onLeafClick(){this.popup&&this.hide(),this.unbindDocumentClickListener()}bindDocumentClickListener(){this.documentClickListener||(this.documentClickListener=this.renderer.listen(this.el?this.el.nativeElement.ownerDocument:"document","click",()=>{!this.preventDocumentDefault&&this.popup&&this.hide(),this.preventDocumentDefault=!1}))}unb
indDocumentClickListener(){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.documentResizeListener),this.documentResizeListener=null)}bindScrollListener(){this.scrollHandler||(this.scrollHandler=new
Qs(this.target,()=>{this.visible&&this.hide()})),this.scrollHandler.bindScrollListener()}unbindScrollListener(){this.scrollHandler&&this.scrollHandler.unbindScrollListener()}onOverlayHide(){this.unbindDocumentClickListener(),this.unbindDocumentResizeListener(),this.unbindScrollListener(),this.preventDocumentDefault=!1,this.cd.destroyed||(this.target=null)}ngOnDestroy(){this.popup&&(this.scrollHandler&&(this.scrollHandler.destroy(),this.scrollHandler=null),this.container&&this.autoZIndex&&dt.clear(th
is.container),this.restoreOverlayAppend(),this.onOverlayHide())}}return
t.\u0275fac=function(e){return
new(e||t)(D(De),D(gn),D(rt),D(zn),D(Ks))},t.\u0275cmp=z({type:t,selectors:[["p-tieredMenu"]],hostAttrs:[1,"p-element"],inputs:{model:"model",popup:"popup",style:"style",styleClass:"styleClass",appendTo:"appendTo",autoZIndex:"autoZIndex",baseZIndex:"baseZIndex",autoDisplay:"autoDisplay",showTransitionOptions:"showTransitionOptions",hideTransitionOptions:"hideTransitionOptions"},decls:1,vars:1,consts:[[3,"ngClass","class","ngStyle","click",4,"ngIf"],[3,"ngClass","ngStyle","click"],["root","root",3,"item","parentActive","baseZIndex","autoZIndex","autoDisplay","popup","leafClick"]],template:function(e,n){1&e&&_(0,S$,2,19,"div",0),2&e&&p("ngIf",!n.popup||n.visible)},directives:[x$,Q,Le,lt],styles:[".p-tieredmenu-overlay{position:absolute;top:0;left:0}.p-tieredmenu
ul{margin:0;padding:0;list-style:none}.p-tieredmenu
.p-submenu-list{position:absolute;min-width:100%;z-index:1;display:none}
.p-tieredmenu
.p-menuitem-link{cursor:pointer;display:flex;align-items:center;text-decoration:none;overflow:hidden;position:relative}.p-tieredmenu
.p-menuitem-text{line-height:1}.p-tieredmenu .p-menuitem{position:relative}.p-tieredmenu
.p-menuitem-link .p-submenu-icon{margin-left:auto}.p-tieredmenu
.p-menuitem-active>p-tieredmenusub>.p-submenu-list{display:block;left:100%;top:0}.p-tieredmenu
.p-menuitem-active>p-tieredmenusub>.p-submenu-list.p-submenu-list-flipped{left:-100%}\n"],encapsulation:2,data:{animation:[wi("overlayAnimation",[Lt(":enter",[it({opacity:0,transform:"scaleY(0.8)"}),kt("{{showTransitionParams}}")]),Lt(":leave",[kt("{{hideTransitionParams}}",it({opacity:0}))])])]},changeDetection:0}),t})(),M$=(()=>{class
t{}return t.\u0275fac=function(e){return
new(e||t)},t.\u0275mod=he({type:t}),t.\u0275inj=ue({imports:[[Fe,vn,pn,jn],vn,jn]}),t})(),k$=(()=>{class
t{}return t.\u0275fac=function(e){return
new(e||t)},t.\u0275mod=he({type:t}),t.\u0275inj=ue({imports:[sN,gl,cT,_5,S5,
Q6,T7,D7,Zu,G7,Xu,TB,m9,y9,A9,G9,J9,Y9,pn,iq,sq,hq,kU,BU,GU,jn,JU,nz,cz,Oz,Aj,e$,t$,M$]}),t})();const
I$=["pMenuItemContent",""];function
E$(t,i){if(1&t&&k(0,"span",6),2&t){const
e=d(2);me(e.item.iconClass),p("ngClass",e.item.icon)("ngStyle",e.item.iconStyle)}}function
R$(t,i){if(1&t&&(l(0,"span",7),g(1),c()),2&t){const
e=d(2);a(1),S(e.item.label)}}function
L$(t,i){1&t&&k(0,"span",8),2&t&&p("innerHTML",d(2).item.label,Bt)}const
iS=function(t){return{"p-disabled":t}};function O$(t,i){if(1&t){const
e=I();l(0,"a",2),C("keydown",function(s){return
v(e),d().onItemKeyDown(s)})("click",function(s){v(e);const r=d();return
r.menu.itemClick(s,r.item)}),_(1,E$,1,4,"span",3),_(2,R$,2,1,"span",4),_(3,L$,1,1,"ng-template",null,5,we),c()}if(2&t){const
e=F(4),n=d();p("target",n.item.target)("ngClass",U(11,iS,n.item.disabled))("target",n.item.target),ie("href",n.item.url||null,ln)("tabindex",n.item.disabled?null:"0")("data-automationid",n.item.automationId)("title",n.item.title)("id",n.item.id),a(1)
,p("ngIf",n.item.icon),a(1),p("ngIf",!1!==n.item.escape)("ngIfElse",e)}}function
A$(t,i){1&t&&k(0,"span",12),2&t&&p("ngClass",d(2).item.icon)}function
P$(t,i){if(1&t&&(l(0,"span",7),g(1),c()),2&t){const
e=d(2);a(1),S(e.item.label)}}function
F$(t,i){1&t&&k(0,"span",8),2&t&&p("innerHTML",d(2).item.label,Bt)}const
N$=function(){return{exact:!1}};function V$(t,i){if(1&t){const
e=I();l(0,"a",9),C("keydown",function(s){return
v(e),d().onItemKeyDown(s)})("click",function(s){v(e);const r=d();return
r.menu.itemClick(s,r.item)}),_(1,A$,1,1,"span",10),_(2,P$,2,1,"span",4),_(3,F$,1,1,"ng-template",null,11,we),c()}if(2&t){const
e=F(4),n=d();p("routerLink",n.item.routerLink)("queryParams",n.item.queryParams)("routerLinkActive","p-menuitem-link-active")("routerLinkActiveOptions",n.item.routerLinkActiveOptions||A(19,N$))("target",n.item.target)("ngClass",U(20,iS,n.item.disabled))("fragment",n.item.fragment)("queryParamsHandling",n.item.queryParamsHandling)("preserveFragment",n.item.preserveFragment
)("skipLocationChange",n.item.skipLocationChange)("replaceUrl",n.item.replaceUrl)("state",n.item.state),ie("data-automationid",n.item.automationId)("id",n.item.id)("tabindex",n.item.disabled?null:"0")("title",n.item.title),a(1),p("ngIf",n.item.icon),a(1),p("ngIf",!1!==n.item.escape)("ngIfElse",e)}}const
B$=["container"],Uo=function(t){return{"p-hidden":t}};function
H$(t,i){if(1&t&&k(0,"li",8),2&t){const
e=d().$implicit;p("ngClass",U(1,Uo,!1===e.visible))}}function
q$(t,i){if(1&t&&(l(0,"span"),g(1),c()),2&t){const
e=d(2).$implicit;a(1),S(e.label)}}function
G$(t,i){1&t&&k(0,"span",12),2&t&&p("innerHTML",d(2).$implicit.label,Bt)}function
U$(t,i){if(1&t&&(l(0,"li",9),_(1,q$,2,1,"span",10),_(2,G$,1,1,"ng-template",null,11,we),c()),2&t){const
e=F(3),n=d().$implicit;p("ngClass",U(5,Uo,!1===n.visible))("tooltipOptions",n.tooltipOptions),ie("data-automationid",n.automationId),a(1),p("ngIf",!1!==n.escape)("ngIfElse",e)}}function
z$(t,i){if(1&t&&k(0,"li",8),2&t){const
e=d().$implicit,n=d().$im
plicit;p("ngClass",U(1,Uo,!1===e.visible||!1===n.visible))}}function
j$(t,i){if(1&t&&k(0,"li",14),2&t){const
e=d().$implicit,n=d().$implicit;me(e.styleClass),p("pMenuItemContent",e)("ngClass",U(6,Uo,!1===e.visible||!1===n.visible))("ngStyle",e.style)("tooltipOptions",e.tooltipOptions)}}function
$$(t,i){if(1&t&&(_(0,z$,1,3,"li",6),_(1,j$,1,8,"li",13)),2&t){const
e=i.$implicit;p("ngIf",e.separator),a(1),p("ngIf",!e.separator)}}function
W$(t,i){if(1&t&&(_(0,H$,1,3,"li",6),_(1,U$,4,7,"li",7),_(2,$$,2,2,"ng-template",5)),2&t){const
e=i.$implicit;p("ngIf",e.separator),a(1),p("ngIf",!e.separator),a(1),p("ngForOf",e.items)}}function
K$(t,i){1&t&&_(0,W$,3,3,"ng-template",5),2&t&&p("ngForOf",d(2).model)}function
Q$(t,i){if(1&t&&k(0,"li",8),2&t){const
e=d().$implicit;p("ngClass",U(1,Uo,!1===e.visible))}}function
J$(t,i){if(1&t&&k(0,"li",14),2&t){const
e=d().$implicit;me(e.styleClass),p("pMenuItemContent",e)("ngClass",U(6,Uo,!1===e.visible))("ngStyle",e.style)("tooltipOptions",e.tooltipOptions)
}}function
Y$(t,i){if(1&t&&(_(0,Q$,1,3,"li",6),_(1,J$,1,8,"li",13)),2&t){const
e=i.$implicit;p("ngIf",e.separator),a(1),p("ngIf",!e.separator)}}function
Z$(t,i){1&t&&_(0,Y$,2,2,"ng-template",5),2&t&&p("ngForOf",d(2).model)}const
X$=function(t){return{"p-menu
p-component":!0,"p-menu-overlay":t}},eW=function(t,i){return{showTransitionParams:t,hideTransitionParams:i}},tW=function(t){return{value:"visible",params:t}};function
nW(t,i){if(1&t){const
e=I();l(0,"div",1,2),C("click",function(s){return
v(e),d().onOverlayClick(s)})("(a)overlayAnimation.start",function(s){return
v(e),d().onOverlayAnimationStart(s)})("(a)overlayAnimation.done",function(s){return
v(e),d().onOverlayAnimationEnd(s)}),l(2,"ul",3),_(3,K$,1,1,null,4),_(4,Z$,1,1,null,4),c()()}if(2&t){const
e=d();me(e.styleClass),p("ngClass",U(8,X$,e.popup))("ngStyle",e.style)("@overlayAnimation",U(13,tW,Ge(10,eW,e.showTransitionOptions,e.hideTransitionOptions)))("@.disabled",!0!==e.popup),a(3),p("ngIf",e.hasSubMenu()),a(1),p("ngIf",!e.hasS
ubMenu())}}let iW=(()=>{class t{constructor(e){this.menu=e}onItemKeyDown(e){let
n=e.currentTarget.parentElement;switch(e.code){case"ArrowDown":var
s=this.findNextItem(n);s&&s.children[0].focus(),e.preventDefault();break;case"ArrowUp":var
r=this.findPrevItem(n);r&&r.children[0].focus(),e.preventDefault();break;case"Space":case"Enter":n&&!R.hasClass(n,"p-disabled")&&n.children[0].click(),e.preventDefault()}}findNextItem(e){let
n=e.nextElementSibling;return
n?R.hasClass(n,"p-disabled")||!R.hasClass(n,"p-menuitem")?this.findNextItem(n):n:null}findPrevItem(e){let
n=e.previousElementSibling;return
n?R.hasClass(n,"p-disabled")||!R.hasClass(n,"p-menuitem")?this.findPrevItem(n):n:null}}return
t.\u0275fac=function(e){return
new(e||t)(D(je(()=>sS)))},t.\u0275cmp=z({type:t,selectors:[["","pMenuItemContent",""]],hostAttrs:[1,"p-element"],inputs:{item:["pMenuItemContent","item"]},attrs:I$,decls:2,vars:2,consts:[["class","p-menuitem-link","role","menuitem",3,"target","ngClass","keydown","click",4,
"ngIf"],["class","p-menuitem-link","role","menuitem","pRipple","",3,"routerLink","queryParams","routerLinkActive","routerLinkActiveOptions","target","ngClass","fragment","queryParamsHandling","preserveFragment","skipLocationChange","replaceUrl","state","keydown","click",4,"ngIf"],["role","menuitem",1,"p-menuitem-link",3,"target","ngClass","keydown","click"],["class","p-menuitem-icon",3,"ngClass","class","ngStyle",4,"ngIf"],["class","p-menuitem-text",4,"ngIf","ngIfElse"],["htmlLabel",""],[1,"p-menuitem-icon",3,"ngClass","ngStyle"],[1,"p-menuitem-text"],[1,"p-menuitem-text",3,"innerHTML"],["role","menuitem","pRipple","",1,"p-menuitem-link",3,"routerLink","queryParams","routerLinkActive","routerLinkActiveOptions","target","ngClass","fragment","queryParamsHandling","preserveFragment","skipLocationChange","replaceUrl","state","keydown","click"],["class","p-menuitem-icon",3,"ngClass",4,"ngIf"],["htmlRouteLabel",""],[1,"p-menuitem-icon",3,"ngClass"]],template:function(e,n){1&e&&(_(0,O$,5,1
3,"a",0),_(1,V$,5,22,"a",1)),2&e&&(p("ngIf",!n.item.routerLink),a(1),p("ngIf",n.item.routerLink))},directives:[Q,Le,lt,Ho,bt,_d],encapsulation:2}),t})(),sS=(()=>{class
t{constructor(e,n,s,r,o){this.el=e,this.renderer=n,this.cd=s,this.config=r,this.overlayService=o,this.autoZIndex=!0,this.baseZIndex=0,this.showTransitionOptions=".12s
cubic-bezier(0, 0, 0.2, 1)",this.hideTransitionOptions=".1s
linear",this.onShow=new H,this.onHide=new
H}toggle(e){this.visible?this.hide():this.show(e),this.preventDocumentDefault=!0}show(e){this.target=e.currentTarget,this.relativeAlign=e.relativeAlign,this.visible=!0,this.preventDocumentDefault=!0,this.cd.markForCheck()}onOverlayAnimationStart(e){switch(e.toState){case"visible":this.popup&&(this.container=e.element,this.moveOnTop(),this.onShow.emit({}),this.appendOverlay(),this.alignOverlay(),this.bindDocumentClickListener(),this.bindDocumentResizeListener(),this.bindScrollListener());break;case"void":this.onOverlayHide(),this.onHide.emit({})}}onOverla
yAnimationEnd(e){"void"===e.toState&&this.autoZIndex&&dt.clear(e.element)}alignOverlay(){this.relativeAlign?R.relativePosition(this.container,this.target):R.absolutePosition(this.container,this.target)}appendOverlay(){this.appendTo&&("body"===this.appendTo?document.body.appendChild(this.container):R.appendChild(this.container,this.appendTo))}restoreOverlayAppend(){this.container&&this.appendTo&&this.el.nativeElement.appendChild(this.container)}moveOnTop(){this.autoZIndex&&dt.set("menu",this.container,this.baseZIndex+this.config.zIndex.menu)}hide(){this.visible=!1,this.relativeAlign=!1,this.cd.markForCheck()}onWindowResize(){this.hide()}itemClick(e,n){n.disabled?e.preventDefault():(!n.url&&!n.routerLink&&e.preventDefault(),n.command&&n.command({originalEvent:e,item:n}),this.popup&&this.hide())}onOverlayClick(e){this.popup&&this.overlayService.add({originalEvent:e,target:this.el.nativeElement}),this.preventDocumentDefault=!0}bindDocumentClickListener(){this.documentClickListener||(thi
s.documentClickListener=this.renderer.listen(this.el?this.el.nativeElement.ownerDocument:"document","click",()=>{this.preventDocumentDefault||this.hide(),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.documentResizeListener),this.documentResizeListener=null)}bindScrollListener(){this.scrollHandler||(this.scrollHandler=new
Qs(this.target,()=>{this.visible&&this.hide()})),this.scrollHandler.bindScrollListener()}unbindScrollListener(){this.scrollHandler&&this.scrollHandler.unbindScrollListener()}onOverlayHide(){this.unbindDocumentClickListener(),this.unbindDocumentResizeListener(),this.unbindScrollListener(),this.preventDocumentDefa
ult=!1,this.cd.destroyed||(this.target=null)}ngOnDestroy(){this.popup&&(this.scrollHandler&&(this.scrollHandler.destroy(),this.scrollHandler=null),this.container&&this.autoZIndex&&dt.clear(this.container),this.restoreOverlayAppend(),this.onOverlayHide())}hasSubMenu(){if(this.model)for(var
e of this.model)if(e.items)return!0;return!1}}return t.\u0275fac=function(e){return
new(e||t)(D(De),D(gn),D(rt),D(zn),D(Ks))},t.\u0275cmp=z({type:t,selectors:[["p-menu"]],viewQuery:function(e,n){if(1&e&&W(B$,5),2&e){let
s;V(s=B())&&(n.containerViewChild=s.first)}},hostAttrs:[1,"p-element"],inputs:{model:"model",popup:"popup",style:"style",styleClass:"styleClass",appendTo:"appendTo",autoZIndex:"autoZIndex",baseZIndex:"baseZIndex",showTransitionOptions:"showTransitionOptions",hideTransitionOptions:"hideTransitionOptions"},outputs:{onShow:"onShow",onHide:"onHide"},decls:1,vars:1,consts:[[3,"ngClass","class","ngStyle","click",4,"ngIf"],[3,"ngClass","ngStyle","click"],["container",""],["role","menu",1,"
p-menu-list","p-reset"],[4,"ngIf"],["ngFor","",3,"ngForOf"],["class","p-menu-separator","role","separator",3,"ngClass",4,"ngIf"],["class","p-submenu-header","pTooltip","","role","none",3,"ngClass","tooltipOptions",4,"ngIf"],["role","separator",1,"p-menu-separator",3,"ngClass"],["pTooltip","","role","none",1,"p-submenu-header",3,"ngClass","tooltipOptions"],[4,"ngIf","ngIfElse"],["htmlSubmenuLabel",""],[3,"innerHTML"],["class","p-menuitem","pTooltip","","role","none",3,"pMenuItemContent","ngClass","ngStyle","class","tooltipOptions",4,"ngIf"],["pTooltip","","role","none",1,"p-menuitem",3,"pMenuItemContent","ngClass","ngStyle","tooltipOptions"]],template:function(e,n){1&e&&_(0,nW,5,15,"div",0),2&e&&p("ngIf",!n.popup||n.visible)},directives:[iW,Q,Le,lt,at,Kt],styles:[".p-menu-overlay{position:absolute;top:0;left:0}.p-menu
ul{margin:0;padding:0;list-style:none}.p-menu
.p-menuitem-link{cursor:pointer;display:flex;align-items:center;text-decoration:none;overflow:hidden;position:relative}.p-
menu
.p-menuitem-text{line-height:1}\n"],encapsulation:2,data:{animation:[wi("overlayAnimation",[Lt(":enter",[it({opacity:0,transform:"scaleY(0.8)"}),kt("{{showTransitionParams}}")]),Lt(":leave",[kt("{{hideTransitionParams}}",it({opacity:0}))])])]},changeDetection:0}),t})(),sW=(()=>{class
t{}return t.\u0275fac=function(e){return
new(e||t)},t.\u0275mod=he({type:t}),t.\u0275inj=ue({imports:[[Fe,vn,pn,jn],vn,jn]}),t})(),zo=(()=>{class
t{constructor(e){this.httpClient=e}GetDatabaseStatus(){return
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")}GetIPAddresses(e){let n=(new
ye).set("Protocol",e);return
this.httpClient.get("/Config/GetIPAddresses",{params:n})}GetSystemEvents(e){let
n=new ye;return
e&&n.set("Host",e),this.httpClient.get("/Config/GetSystemEvents",{params:n
})}}return t.\u0275fac=function(e){return
new(e||t)(K(Bi))},t.\u0275prov=X({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),qt=(()=>{class
t{constructor(e){this.httpClient=e}AddStorageGroupDir(e){return
this.httpClient.post("/Myth/AddStorageGroupDir",e)}BackupDatabase(){return
this.httpClient.post("/Myth/BackupDatabase",{body:void
0})}CheckDatabase(e){return
this.httpClient.post("/Myth/CheckDatabase",e)}DelayShutdown(){return
this.httpClient.post("Myth/DelayShutdown",{body:void 0})}GetBackendInfo(){return
this.httpClient.get("/Myth/GetBackendInfo")}GetConnectionInfo(e){let n=(new
ye).set("Pin",e);return
this.httpClient.get("/Myth/GetConnectionInfo",{params:n})}GetFrontends(e){let
n=(new ye).set("OnLine",e);return
this.httpClient.get("/Myth/GetFrontends",{params:n})}GetHostName(){return
this.httpClient.get("/Myth/GetHostName")}GetHosts(){return
this.httpClient.get("/Myth/GetHosts")}GetKeys(){return
this.httpClient.get("/Myth/GetKeys")}GetSetting(e){let n=(new
ye).set("HostName"
,e.HostName).set("Key",e.Key).set("Default",e.Default?e.Default:"");return
this.httpClient.get("/Myth/GetSetting",{params:n})}GetSettingList(e){let n=(new
ye).set("HostName",e);return
this.httpClient.get("/Myth/GetSettingList",{params:n})}GetStorageGroupDirs(e){return
void 0===e||void 0===e.GroupName&&void
0===e.HostName?this.httpClient.get("/Myth/GetStorageGroupDirs"):this.httpClient.post("/Myth/GetStorageGroupDirs",e)}GetDirListing(e){let
n=(new ye).set("DirName",e);return
this.httpClient.get("/Myth/GetDirListing",{params:n})}GetTimeZone(){return
this.httpClient.get("/Myth/GetTimeZone")}ManageDigestUser(e){return
this.httpClient.post("/Myth/ManageDigestUser",e)}ManageUrlProtection(e){return
this.httpClient.post("/Myth/ManageUrlProtection",e)}ProfileDelete(){return
this.httpClient.post("/Myth/ProfileDelete",{body:void 0})}ProfileSubmit(){return
this.httpClient.post("/Myth/ProfileSubmit",{body:void 0})}ProfileText(){return
this.httpClient.get("/Myth/ProfileText")}ProfileURL(){return
this.httpClient.get("/Myth/ProfileURL")}ProfileUpdated(){return
this.httpClient.get("/Myth/ProfileUpdated")}PutSetting(e){return
this.httpClient.post("/Myth/PutSetting",e)}DeleteSetting(e){return
this.httpClient.post("/Myth/DeleteSetting",e)}RemoveStorageGroupDir(e){return
this.httpClient.post("/Myth/RemoveStorageGroupDir",e)}SetConnectionInfo(e){return
this.httpClient.post("/Myth/SetConnectionInfo",e)}TestDBSettings(e){return
this.httpClient.post("/Myth/TestDBSettings",e)}ManageScheduler(e){return
this.httpClient.post("/Myth/ManageScheduler",e)}Shutdown(e){return
this.httpClient.post("/Myth/Shutdown",e)}}return t.\u0275fac=function(e){return
new(e||t)(K(Bi))},t.\u0275prov=X({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),xd=(()=>{class
t{constructor(e,n){this.configService=e,this.mythService=n,this.m_wizardData={Country:{Code:"",Country:"",NativeCountry:"",Image:""},Language:{Code:"",Language:"",NativeLanguage:"",Image:""},Database:{Host:"localhost",Port:3306,UserName:"myth
tv",Password:"mythtv",Ping:!1,Name:"mythconverg",Type:"QMYSQL",LocalHostName:"my-unique-identifier-goes-here",LocalEnabled:!1,DoTest:!0,WOLEnabled:!1,WOLReconnect:0,WOLRetry:0,WOLCommand:""},DatabaseStatus:{DatabaseStatus:{Host:"",Port:0,UserName:"",Password:"",Ping:!1,Name:"",Type:"",LocalHostName:"",LocalEnabled:!1,Connected:!1,HaveDatabase:!1,SchemaVersion:0,WOLEnabled:!1,WOLReconnect:0,WOLRetry:0,WOLCommand:""}}},this.m_topElement=null,this.m_hostName="",this.m_languageSetting="",this.m_languages=[],this.m_countrySetting="",this.m_countries=[],this.fullMenu=[],this.dbSetupMenu=[],this.wizardItems=[],this.mythService.GetHostName().subscribe(s=>{this.m_hostName=s.String})}ngOnInit(){}Init(){this.initDatabaseStatus(),this.initLanguages()}getWizardData(){return
this.Init(),this.m_wizardData}initDatabaseStatus(){this.dbPromise=new
Promise((e,n)=>{this.configService.GetDatabaseStatus().subscribe(s=>{this.m_wizardData.DatabaseStatus=s,this.m_wizardData.Database.Host=s.DatabaseStatus.Ho
st,this.m_wizardData.Database.Port=s.DatabaseStatus.Port,this.m_wizardData.Database.UserName=s.DatabaseStatus.UserName,this.m_wizardData.Database.Password=s.DatabaseStatus.Password,this.m_wizardData.Database.Name=s.DatabaseStatus.Name,this.m_wizardData.Database.LocalEnabled=s.DatabaseStatus.LocalEnabled,this.m_wizardData.Database.LocalHostName=s.DatabaseStatus.LocalHostName,this.m_wizardData.Database.WOLEnabled=s.DatabaseStatus.WOLEnabled,this.m_wizardData.Database.WOLReconnect=s.DatabaseStatus.WOLReconnect,this.m_wizardData.Database.WOLRetry=s.DatabaseStatus.WOLRetry,this.m_wizardData.Database.WOLCommand=s.DatabaseStatus.WOLCommand,e(!0)},s=>{console.log("Failed
to get database
status",s.statusText),n(!0)})})}initLanguages(){this.configService.GetCountries().subscribe(e=>{this.m_countries=e.CountryList.Countries,this.initCountry()}),this.configService.GetLanguages().subscribe(e=>{this.m_languages=e.LanguageList.Languages,this.initLanguage()})}initCountry(){this.mythService.GetSetti
ng({HostName:"_GLOBAL_",Key:"Country",Default:"US"}).subscribe(e=>{this.m_wizardData.Country=this.findCountryByCode(e.String)})}findCountryByCode(e){for(var
n=0;n<this.m_countries.length;n++)if(this.m_countries[n].Code===e)return
this.m_countries[n];return
this.m_countries[0]}initLanguage(){this.mythService.GetSetting({HostName:"_GLOBAL_",Key:"Language",Default:"en_US"}).subscribe(e=>{this.m_wizardData.Language=this.findLanguageByCode(e.String)})}findLanguageByCode(e){for(var
n=0;n<this.m_languages.length;n++)if(this.m_languages[n].Code===e)return
this.m_languages[n];return
this.m_languages[0]}updateDatabaseStatus(){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)(K(zo),K(qt))},t.\u0275prov=X({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),Me=(()=>{class
t{constructor(e,n){this.mythService=e,this.translate=n,this.m_hostName="
",this.m_initialized=!1,this.requesterForm=null,this.m_HostAddressData={successCount:0,errorCount:0,thisHostName:this.m_hostName,BackendServerPort:6543,BackendStatusPort:6544,SecurityPin:"0000",AllowConnFromAll:!1,ListenOnAllIps:!0,BackendServerIP:"127.0.0.1",BackendServerIP6:"::1",AllowLinkLocal:!0,BackendServerAddr:"",IsMasterBackend:!0,MasterServerName:this.m_hostName},this.HostAddressObs={next:s=>{s.bool?this.m_HostAddressData.successCount++:(this.m_HostAddressData.errorCount++,this.requesterForm&&this.requesterForm.form.markAsDirty())},error:s=>{console.error(s),this.m_HostAddressData.errorCount++,this.requesterForm&&this.requesterForm.form.markAsDirty()}},this.JobQCommandsObs={next:s=>{s.bool?this.m_JobQCommands.successCount++:(this.m_JobQCommands.errorCount++,this.requesterForm&&this.requesterForm.form.markAsDirty())},error:s=>{console.error(s),this.m_JobQCommands.errorCount++,this.requesterForm&&this.requesterForm.form.markAsDirty()}},this.currentForm=null,this.schedulingEna
bled=!0,this.isDatabaseIgnored=!1,this.DBTimezoneSupport=!1,this.WebOnlyStartup="",this.pageType=""}Init(){this.m_initialized=!0}getHostAddressData(){return
this.mythService.GetHostName().subscribe({next:e=>{this.m_hostName=e.String,this.m_HostAddressData.thisHostName=this.m_hostName,this.m_HostAddressData.MasterServerName=this.m_hostName,this.getHostSettings()},error:()=>this.m_HostAddressData.errorCount++}),this.m_HostAddressData}getHostSettings(){this.mythService.GetSetting({HostName:this.m_hostName,Key:"BackendServerPort",Default:"6543"}).subscribe({next:e=>this.m_HostAddressData.BackendServerPort=Number(e.String),error:()=>this.m_HostAddressData.errorCount++}),this.mythService.GetSetting({HostName:this.m_hostName,Key:"BackendStatusPort",Default:"6544"}).subscribe({next:e=>this.m_HostAddressData.BackendStatusPort=Number(e.String),error:()=>this.m_HostAddressData.errorCount++}),this.mythService.GetSetting({HostName:this.m_hostName,Key:"SecurityPin",Default:"0000"}).subscribe({nex
t:e=>this.m_HostAddressData.SecurityPin=e.String,error:()=>this.m_HostAddressData.errorCount++}),this.mythService.GetSetting({HostName:this.m_hostName,Key:"AllowConnFromAll",Default:"0"}).subscribe({next:e=>this.m_HostAddressData.AllowConnFromAll="1"==e.String,error:()=>this.m_HostAddressData.errorCount++}),this.mythService.GetSetting({HostName:this.m_hostName,Key:"ListenOnAllIps",Default:"1"}).subscribe({next:e=>this.m_HostAddressData.ListenOnAllIps="1"==e.String,error:()=>this.m_HostAddressData.errorCount++}),this.mythService.GetSetting({HostName:this.m_hostName,Key:"BackendServerIP"}).subscribe({next:e=>this.m_HostAddressData.BackendServerIP=e.String,error:()=>this.m_HostAddressData.errorCount++}),this.mythService.GetSetting({HostName:this.m_hostName,Key:"BackendServerIP6"}).subscribe({next:e=>this.m_HostAddressData.BackendServerIP6=e.String,error:()=>this.m_HostAddressData.errorCount++}),this.mythService.GetSetting({HostName:this.m_hostName,Key:"UseLinkLocal"}).subscribe({next:e
=>this.m_HostAddressData.AllowLinkLocal="1"==e.String,error:()=>this.m_HostAddressData.errorCount++}),this.mythService.GetSetting({HostName:this.m_hostName,Key:"BackendServerAddr"}).subscribe({next:e=>this.m_HostAddressData.BackendServerAddr=e.String,error:()=>this.m_HostAddressData.errorCount++}),this.mythService.GetSetting({HostName:"_GLOBAL_",Key:"MasterServerName",Default:this.m_hostName}).subscribe({next:e=>{this.m_HostAddressData.MasterServerName=e.String,this.m_HostAddressData.IsMasterBackend=this.m_HostAddressData.MasterServerName==this.m_hostName},error:()=>this.m_HostAddressData.errorCount++})}saveHostAddressData(e){this.requesterForm=e,this.m_HostAddressData.successCount=0,this.m_HostAddressData.errorCount=0,this.mythService.PutSetting({HostName:this.m_hostName,Key:"BackendServerPort",Value:String(this.m_HostAddressData.BackendServerPort)}).subscribe(this.HostAddressObs),this.mythService.PutSetting({HostName:this.m_hostName,Key:"BackendStatusPort",Value:String(this.m_Host
AddressData.BackendStatusPort)}).subscribe(this.HostAddressObs),this.mythService.PutSetting({HostName:this.m_hostName,Key:"SecurityPin",Value:this.m_HostAddressData.SecurityPin}).subscribe(this.HostAddressObs),this.mythService.PutSetting({HostName:this.m_hostName,Key:"AllowConnFromAll",Value:this.m_HostAddressData.AllowConnFromAll?"1":"0"}).subscribe(this.HostAddressObs),this.mythService.PutSetting({HostName:this.m_hostName,Key:"ListenOnAllIps",Value:this.m_HostAddressData.ListenOnAllIps?"1":"0"}).subscribe(this.HostAddressObs),this.mythService.PutSetting({HostName:this.m_hostName,Key:"BackendServerIP",Value:this.m_HostAddressData.BackendServerIP}).subscribe(this.HostAddressObs),this.mythService.PutSetting({HostName:this.m_hostName,Key:"BackendServerIP6",Value:this.m_HostAddressData.BackendServerIP6}).subscribe(this.HostAddressObs),this.mythService.PutSetting({HostName:this.m_hostName,Key:"AllowLinkLocal",Value:this.m_HostAddressData.AllowLinkLocal?"1":"0"}).subscribe(this.HostAddre
ssObs),this.mythService.PutSetting({HostName:this.m_hostName,Key:"BackendServerAddr",Value:this.m_HostAddressData.BackendServerAddr}).subscribe(this.HostAddressObs),this.mythService.PutSetting({HostName:"_GLOBAL_",Key:"MasterServerName",Value:this.m_HostAddressData.MasterServerName}).subscribe(this.HostAddressObs)}getLocaleData(){return
this.m_LocaleData={successCount:0,errorCount:0,TVFormat:"PAL",VbiFormat:"None",FreqTable:"us-bcast"},this.mythService.GetSetting({HostName:"_GLOBAL_",Key:"TVFormat"}).subscribe({next:e=>this.m_LocaleData.TVFormat=e.String,error:()=>this.m_LocaleData.errorCount++}),this.mythService.GetSetting({HostName:"_GLOBAL_",Key:"VbiFormat"}).subscribe({next:e=>this.m_LocaleData.VbiFormat=e.String,error:()=>this.m_LocaleData.errorCount++}),this.mythService.GetSetting({HostName:"_GLOBAL_",Key:"FreqTable"}).subscribe({next:e=>this.m_LocaleData.FreqTable=e.String,error:()=>this.m_LocaleData.errorCount++}),this.m_LocaleData}getSetupData(){return
this.getHostAddressDa
ta(),this.getLocaleData(),this.m_setupData={General:{HostAddress:this.m_HostAddressData,Locale:this.m_LocaleData}},this.m_setupData}parseTime(e,n){let
s=n.split(":");e.setHours(Number(s[0])),e.setMinutes(Number(s[1]))}formatTime(e){let
n=e.getHours(),s=e.getMinutes(),r="";return
n<10&&(r+="0"),r+=String(n),r+=":",s<10&&(r+="0"),r+=String(s),r}getJobQCommands(){if("object"==typeof
this.m_JobQCommands)return
this.m_JobQCommands;this.m_JobQCommands={successCount:0,errorCount:0,UserJobDesc:[],UserJob:[]};for(let
e=0;e<4;e++){let
n=e+1;this.translate.get("settings.services.job_default",{num:n}).subscribe(s=>this.m_JobQCommands.UserJobDesc[e]=s),this.mythService.GetSetting({HostName:"_GLOBAL_",Key:"UserJobDesc"+n,Default:""}).subscribe({next:s=>{s.String&&s.String.length>0&&(this.m_JobQCommands.UserJobDesc[e]=s.String)},error:()=>this.m_JobQCommands.errorCount++}),this.mythService.GetSetting({HostName:"_GLOBAL_",Key:"UserJob"+n,Default:""}).subscribe({next:s=>this.m_JobQCommands.UserJob[e
]=s.String,error:()=>this.m_JobQCommands.errorCount++})}return
this.m_JobQCommands}saveJobQCommands(e){this.requesterForm=e,this.m_JobQCommands.successCount=0,this.m_JobQCommands.errorCount=0;for(let
n=0;n<4;n++){let
s=n+1;this.mythService.PutSetting({HostName:"_GLOBAL_",Key:"UserJobDesc"+s,Value:this.m_JobQCommands.UserJobDesc[n]}).subscribe(this.JobQCommandsObs),this.mythService.PutSetting({HostName:"_GLOBAL_",Key:"UserJob"+s,Value:this.m_JobQCommands.UserJob[n]}).subscribe(this.JobQCommandsObs)}}getCurrentForm(){return
this.currentForm}setCurrentForm(e){this.currentForm=e}}return
t.\u0275fac=function(e){return
new(e||t)(K(qt),K(Oe))},t.\u0275prov=X({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),jo=(()=>{class
t{constructor(e){this.httpClient=e}AddDontRecordSchedule(e){return
this.httpClient.post("/Dvr/AddDontRecordSchedule",e)}AddRecordSchedule(e){return
this.httpClient.post("/Dvr/AddRecordSchedule",e)}UpdateRecordSchedule(e){return
this.httpClient.post("/Dvr/UpdateRecord
Schedule",e)}RemoveRecordSchedule(e){return
this.httpClient.post("/Dvr/RemoveRecordSchedule",{RecordId:e})}AddRecordedCredits(e){return
this.httpClient.post("/Dvr/AddRecordedCredits",e)}AddRecordedProgram(e){return
this.httpClient.post("/Dvr/AddRecordedProgram",e)}AllowReRecord(e){return
this.httpClient.post("/Dvr/AllowReRecord",{RecordedId:e})}DeleteRecording(e){return
this.httpClient.post("/Dvr/DeleteRecording",e)}UnDeleteRecording(e){return
this.httpClient.post("/Dvr/UnDeleteRecording",e)}UpdateRecordedMetadata(e){return
this.httpClient.post("/Dvr/UpdateRecordedMetadata",e)}DisableRecordSchedule(e){return
this.httpClient.post("/Dvr/DisableRecordSchedule",{RecordId:e})}DupInToDescription(e){let
n=(new ye).set("DupIn",e);return
this.httpClient.get("/Dvr/DupInToDescription",{params:n})}DupInToString(e){let
n=(new ye).set("DupIn",e);return
this.httpClient.get("/Dvr/DupInToString",{params:n})}DupMethodToDescription(e){let
n=(new ye).set("DupMethod",e);return this.httpClient.get("/Dvr/
DupMethodToDescription",{params:n})}DupMethodToString(e){let n=(new
ye).set("DupMethod",e);return
this.httpClient.get("/Dvr/DupMethodToString",{params:n})}EnableRecordSchedule(e){return
this.httpClient.post("/Dvr/EnableRecordSchedule",e)}GetConflictList(e){let
n=(new
ye).set("StartIndex",e.StartIndex).set("Count",e.Count).set("RecordId",e.RecordId);return
this.httpClient.get("/Dvr/GetConflictList",{params:n})}GetEncoderList(){return
this.httpClient.get("/Dvr/GetEncoderList")}GetExpiringList(e){let n=(new
ye).set("StartIndex",e.StartIndex).set("Count",e.Count);return
this.httpClient.get("/Dvr/GetExpiringList",{params:n})}GetInputList(){return
this.httpClient.get("/Dvr/GetInputList")}GetLastPlayPos(e){let n=(new
ye).set("RecordedId",e.RecordedId).set("ChanId",e.ChanId).set("StartTime",e.StartTime).set("OffsetType",e.OffsetType);return
this.httpClient.get("/Dvr/GetLastPlayPos",{params:n})}GetOldRecordedList(e){let
n=(new
ye).set("Descending",e.Descending).set("StartIndex",e.StartIndex)
.set("Count",e.Count).set("StartTime",e.StartTime).set("EndTime",e.EndTime).set("Title",e.Title).set("SeriesId",e.SeriesId).set("RecordId",e.RecordId).set("Sort",e.Sort);return
this.httpClient.get("/Dvr/GetOldRecordedList",{params:n})}GetPlayGroupList(){return
this.httpClient.get("/Dvr/GetPlayGroupList")}GetProgramCategories(e){return(new
ye).set("OnlyRecorded",e),this.httpClient.get("/Dvr/GetProgramCategories")}GetRecGroupList(){return
this.httpClient.get("/Dvr/GetRecGroupList")}GetRecRuleFilterList(){return
this.httpClient.get("/Dvr/GetRecRuleFilterList")}GetRecStorageGroupList(){return
this.httpClient.get("/Dvr/GetRecStorageGroupList")}GetRecordSchedule(e){let
n=new ye;for(const[s,r]of Object.entries(e))n=n.set(s,r);return
this.httpClient.get("/Dvr/GetRecordSchedule",{params:n})}GetRecordScheduleList(e){let
n=new ye;for(const[s,r]of Object.entries(e))n=n.set(s,r);return
this.httpClient.get("/Dvr/GetRecordScheduleList",{params:n})}GetRecorded(e){let
n=new ye;for(const[s,r]of Objec
t.entries(e))n=n.set(s,r);return
this.httpClient.get("/Dvr/GetRecorded",{params:n})}GetRecordedList(e){let n=new
ye;for(const[s,r]of Object.entries(e))n=n.set(s,r);return
this.httpClient.get("/Dvr/GetRecordedList",{params:n})}GetUpcomingList(e){let
n=new ye;for(const[s,r]of Object.entries(e))n=n.set(s,r);return
this.httpClient.get("/Dvr/GetUpcomingList",{params:n})}RecStatusToString(e){let
n=(new ye).set("RecStatus",e);return
this.httpClient.get("/Dvr/RecStatusToString",{params:n})}ManageJobQueue(e){return
this.httpClient.post("/Dvr/ManageJobQueue",e)}StopRecording(e){return
this.httpClient.post("/Dvr/StopRecording",{RecordedId:e})}}return
t.\u0275fac=function(e){return
new(e||t)(K(Bi))},t.\u0275prov=X({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();function
rW(t,i){if(1&t&&(l(0,"div",9),k(1,"p-message",10),m(2,"translate"),c()),2&t){const
e=d();a(1),x("text",f(2,2,"settings.main.webonly."+e.setupService.WebOnlyStartup)),p("styleClass","font-bold")}}function
oW(t,i){1&t&&(k(0
,"p-message",10),m(1,"translate")),2&t&&(x("text",f(1,2,"settings.main.mustenable")),p("styleClass","font-bold"))}function
aW(t,i){1&t&&(k(0,"p-message",10),m(1,"translate")),2&t&&(x("text",f(1,2,"settings.main.mustrestart")),p("styleClass","font-bold"))}function
lW(t,i){if(1&t&&(l(0,"div",9),_(1,oW,2,4,"p-message",11),_(2,aW,2,4,"ng-template",null,12,we),c()),2&t){const
e=F(3),n=d();a(1),p("ngIf",n.setupService.schedulingEnabled)("ngIfElse",e)}}function
cW(t,i){if(1&t){const
e=I();l(0,"div",13)(1,"div",14)(2,"p-button",15),C("onClick",function(){return
v(e),d().disableSched()}),m(3,"translate"),c()(),l(4,"div",14),g(5),m(6,"translate"),c()()}2&t&&(a(2),x("label",f(3,2,"settings.main.enableupdates_label")),a(3),S(f(6,4,"settings.main.enableupdates_desc")))}function
uW(t,i){1&t&&(l(0,"div",14)(1,"div",17),g(2),m(3,"translate"),c()()),2&t&&(a(2),S(f(3,1,"settings.main.restart_desc")))}function
dW(t,i){1&t&&(l(0,"div",14),g(1),m(2,"translate"),c()),2&t&&(a(1),T("
",f(2,1,"settings.main
.slave_enabled"),""))}function pW(t,i){if(1&t){const
e=I();l(0,"div",13)(1,"div",14)(2,"p-button",15),C("onClick",function(){return
v(e),d().restart()}),m(3,"translate"),c()(),_(4,uW,4,3,"div",16),_(5,dW,3,3,"div",16),c()}if(2&t){const
e=d();a(2),x("label",f(3,3,"WEBONLYPARM"==e.setupService.WebOnlyStartup?"settings.main.shutdown_label":"settings.main.restart_label")),a(2),p("ngIf",!e.masterServerName||!e.hostName||e.masterServerName==e.hostName),a(1),p("ngIf",e.masterServerName&&e.hostName&&e.masterServerName!=e.hostName)}}const
hW=function(t,i,e){return{Title:t,StartTime:i,Status:e}};function
mW(t,i){if(1&t&&(l(0,"small",18),g(1),m(2,"translate"),c()),2&t){const
e=d();a(1),T("
",Dt(2,1,"settings.main.upcomingrec",Qt(4,hW,e.upComing[0].Title,e.recStartTime,e.recStatusDesc)),"
")}}function
fW(t,i){1&t&&(l(0,"div")(1,"p"),g(2),m(3,"translate"),c(),l(4,"p"),g(5),m(6,"translate"),c()()),2&t&&(a(2),T("",f(3,2,"settings.main.slave_instructions"),"
"),a(3),T("",f(6,4,"settings.main.slave_
warning")," "))}function
gW(t,i){1&t&&k(0,"p-progressSpinner")}function
_W(t,i){1&t&&(k(0,"p-message",19),m(1,"translate")),2&t&&x("text",f(1,1,"settings.main.restarting"))}function
bW(t,i){1&t&&(k(0,"p-message",20),m(1,"translate")),2&t&&x("text",f(1,1,"common.networkfail"))}let
vW=(()=>{class
t{constructor(e,n,s,r,o,u){this.mythService=e,this.setupService=n,this.dvrService=s,this.wizardService=r,this.messageService=o,this.translate=u,this.errorCount=0,this.retryCount=0,this.upComing=[],this.recStatusDesc="",this.recStartTime="",this.ready=!1,this.delay=0,this.busy=!1,this.hostName="",this.masterServerName="",this.getBackendInfo(),this.refreshInfo()}refreshInfo(){setTimeout(()=>{this.getBackendInfo(),this.refreshInfo()},12e4)}getBackendInfo(){0==this.retryCount&&(this.errorCount=0),this.ready=!1,this.recStatusDesc="",this.recStartTime="",this.upComing=[],this.mythService.GetHostName().subscribe({next:e=>{this.hostName=e.String,this.mythService.GetSetting({HostName:"_GLOBAL_",Key:"M
asterServerName",Default:this.hostName}).subscribe({next:n=>{this.masterServerName=n.String},error:()=>this.errorCount++})},error:()=>this.errorCount++}),this.mythService.GetBackendInfo().subscribe({next:e=>{this.setupService.schedulingEnabled=e.BackendInfo.Env.SchedulingEnabled,this.setupService.isDatabaseIgnored=e.BackendInfo.Env.IsDatabaseIgnored,this.setupService.DBTimezoneSupport=e.BackendInfo.Env.DBTimezoneSupport,this.setupService.WebOnlyStartup=e.BackendInfo.Env.WebOnlyStartup,this.wizardService.wizardItems=this.setupService.isDatabaseIgnored?this.wizardService.dbSetupMenu:this.wizardService.fullMenu,this.wizardService.getWizardData(),this.retryCount>0&&this.errorCount>0?(this.retryCount=0,this.errorCount=0):this.retryCount>0&&0==this.errorCount&&setTimeout(()=>this.getBackendInfo(),2e3),0==this.retryCount&&(setTimeout(()=>this.getUpcoming(),this.delay),this.delay=0)},error:()=>{this.setupService.schedulingEnabled=!0,this.errorCount++,this.errorCount<this.retryCount?setTimeo
ut(()=>this.getBackendInfo(),2e3):this.retryCount=0}})}getUpcoming(){this.errorCount=0,this.dvrService.GetUpcomingList({Count:1}).subscribe({next:e=>{if(this.upComing=e.ProgramList.Programs,this.ready=!0,this.upComing.length>0){this.dvrService.RecStatusToString(this.upComing[0].Recording.Status).subscribe({next:s=>this.recStatusDesc=s.String,error:()=>this.errorCount++});var
n=new
Date(this.upComing[0].Recording.StartTs);this.recStartTime=n.toLocaleString()}},error:()=>this.errorCount++})}disableSched(){this.mythService.ManageScheduler({Disable:!0}).subscribe({next:e=>this.getBackendInfo(),error:()=>this.errorCount++})}restart(){let
e="WEBONLYPARM"!=this.setupService.WebOnlyStartup;this.mythService.Shutdown({Restart:e}).subscribe({next:n=>{n.bool?(this.retryCount=e?30:9999,this.getBackendInfo()):this.errorCount++},error:()=>this.errorCount++}),this.delay=5e3}ngOnInit(){}}return
t.\u0275fac=function(e){return
new(e||t)(D(qt),D(Me),D(jo),D(xd),D(Gi),D(Oe))},t.\u0275cmp=z({type:t,selec
tors:[["app-backend-warning"]],features:[Pe([Gi])],decls:15,vars:9,consts:[[1,"block","card","w-full"],[1,"block"],[1,"m-5"],["class","flex
mb-3",4,"ngIf"],["class","flex",4,"ngIf"],["class","pb-0
m-0",4,"ngIf"],[4,"ngIf"],["severity","info",3,"text",4,"ngIf"],["severity","error",3,"text",4,"ngIf"],[1,"flex","mb-3"],["severity","warn",3,"styleClass","text"],["severity","warn",3,"styleClass","text",4,"ngIf","ngIfElse"],["mustrestart",""],[1,"flex"],[1,"flex","align-items-center"],["icon","pi
pi-save","iconPos","left",1,"pr-5","pb-1","pt-0","m-0",3,"label","onClick"],["class","flex
align-items-center",4,"ngIf"],[1,"text-pink-500"],[1,"pb-0","m-0"],["severity","info",3,"text"],["severity","error",3,"text"]],template:function(e,n){1&e&&(l(0,"div",0)(1,"div",1)(2,"p-card",2),_(3,rW,3,4,"div",3),_(4,lW,4,2,"div",3),_(5,cW,7,6,"div",4),_(6,pW,6,5,"div",4),l(7,"div"),_(8,mW,3,8,"small",5),c(),_(9,fW,7,6,"div",6),l(10,"div"),_(11,gW,1,0,"p-progressSpinner",6),_(12,_W,2,3,"p-message",7),l(13,
"p"),_(14,bW,2,3,"p-message",8),c()()()()()),2&e&&(a(3),p("ngIf",0==n.retryCount&&"NONE"!=n.setupService.WebOnlyStartup),a(1),p("ngIf",0==n.retryCount),a(1),p("ngIf",n.setupService.schedulingEnabled&&0==n.retryCount),a(1),p("ngIf",!n.setupService.schedulingEnabled&&0==n.retryCount),a(2),p("ngIf",n.upComing.length>0),a(1),p("ngIf",n.masterServerName&&n.hostName&&n.masterServerName!=n.hostName&&0==n.retryCount),a(2),p("ngIf",n.retryCount>0),a(1),p("ngIf",n.retryCount>0),a(2),p("ngIf",!n.setupService.isDatabaseIgnored&&n.errorCount>0&&0==n.retryCount))},directives:[Ne,Q,qe,ve,Go],pipes:[ce],styles:[""]}),t})();const
CW=["top"];let rS=(()=>{class
t{constructor(e,n,s){this.wizardService=e,this.setupService=n,this.translate=s,this.fullMenu=[],this.dbSetupMenu=[],this.activeIndex=0,n.pageType="S"}ngOnInit(){this.translate.get("setupwizard.steps.selectlanguage").subscribe(e=>{this.fullMenu=[{label:this.translate.instant("setupwizard.steps.dbsetup"),routerLink:"dbsetup"},{label:this.translat
e.instant("setupwizard.steps.selectlanguage"),routerLink:"selectlanguage"},{label:this.translate.instant("setupwizard.steps.general"),routerLink:"general"},{label:this.translate.instant("setupwizard.steps.capture_cards"),routerLink:"capture-cards"},{label:this.translate.instant("setupwizard.steps.recording_profiles"),routerLink:"recording-profiles"},{label:this.translate.instant("setupwizard.steps.video_sources"),routerLink:"video-sources"},{label:this.translate.instant("setupwizard.steps.input_connections"),routerLink:"input-connections"},{label:this.translate.instant("setupwizard.steps.channel_editor"),routerLink:"channel-editor"},{label:this.translate.instant("setupwizard.steps.storage_groups"),routerLink:"storage-groups"},{label:this.translate.instant("setupwizard.steps.system_events"),routerLink:"system-events"}],this.wizardService.fullMenu=this.fullMenu,this.activeItem=this.fullMenu[0],this.dbSetupMenu=[this.fullMenu[0]],this.wizardService.dbSetupMenu=this.dbSetupMenu,this.wiz
ardService.wizardItems=this.wizardService.fullMenu})}ngAfterViewInit(){this.wizardService.m_topElement=this.topElement}}return
t.\u0275fac=function(e){return
new(e||t)(D(xd),D(Me),D(Oe))},t.\u0275cmp=z({type:t,selectors:[["app-settings"]],viewQuery:function(e,n){if(1&e&&W(CW,5),2&e){let
s;V(s=B())&&(n.topElement=s.first)}},decls:17,vars:12,consts:[["top",""],[1,"content-section","implementation"],[1,"card"],[1,"flex","flex-row"],["pButton","","pRipple","","icon","pi
pi-angle-double-left",1,"p-button-text","p-button-primary",3,"pTooltip","click"],[1,"col-11"],[3,"model","activeItem","scrollable"],["menu",""],["pButton","","pRipple","","icon","pi
pi-angle-double-right",1,"p-button-text","p-button-primary",3,"pTooltip","click"]],template:function(e,n){if(1&e){const
s=I();k(0,"span",null,0),l(2,"div",1)(3,"h1"),g(4),m(5,"translate"),c(),l(6,"div",2)(7,"div",3)(8,"button",4),C("click",function(){return
v(s),F(12).navBackward()}),m(9,"translate"),c(),l(10,"div",5),k(11,"p-tabMenu",6,7),c(
),l(13,"button",8),C("click",function(){return
v(s),F(12).navForward()}),m(14,"translate"),c()()(),k(15,"app-backend-warning")(16,"router-outlet"),c()}2&e&&(a(4),S(f(5,6,"settings.main.title")),a(4),x("pTooltip",f(9,8,"dashboard.scrolltabsleft")),a(3),p("model",n.wizardService.wizardItems)("activeItem",n.activeItem)("scrollable",!1),a(2),x("pTooltip",f(14,10,"dashboard.scrolltabsright")))},directives:[On,bt,Kt,J2,vW,Ml],pipes:[ce],styles:['.warning[_ngcontent-%COMP%]{color:#cc8925;background-color:#fff2e2}.connected[_ngcontent-%COMP%]{color:#1ea97c;background-color:#e4f8f0}.medium-width[_ngcontent-%COMP%]{width:"600"}']}),t})();function
yW(t,i){if(1&t){const
e=I();l(0,"div"),k(1,"h1"),l(2,"div",1)(3,"button",2),C("click",function(){return
v(e),F(7).navBackward()}),m(4,"translate"),c(),l(5,"div",3),k(6,"p-tabMenu",4,5),c(),l(8,"button",6),C("click",function(){return
v(e),F(7).navForward()}),m(9,"translate"),c()(),k(10,"router-outlet"),c()}if(2&t){const
e=d();a(3),x("pTooltip",f(4,5,"
dashboard.scrolltabsleft")),a(3),p("model",e.fullMenu)("activeItem",e.activeItem)("scrollable",!1),a(2),x("pTooltip",f(9,7,"dashboard.scrolltabsright"))}}let
oS=(()=>{class
t{constructor(e,n){this.translate=e,this.setupService=n,this.translateDone=!1,this.fullMenu=[{label:"dashboard.backendStatus",routerLink:"status"},{label:"dashboard.channeleditor",routerLink:"channel-editor"},{label:"dashboard.programguide",routerLink:"program-guide"},{label:"dashboard.recordings.heading",routerLink:"recordings"},{label:"dashboard.upcoming.heading",routerLink:"upcoming"},{label:"dashboard.recrules.heading",routerLink:"recrules"},{label:"dashboard.videos.heading",routerLink:"videos"}],this.activeItem=this.fullMenu[0],n.pageType="D",this.fullMenu.forEach(s=>{s.label&&this.translate.get(s.label).subscribe(r=>{s.label=r,this.translateDone=!0})})}ngOnInit(){}}return
t.\u0275fac=function(e){return
new(e||t)(D(Oe),D(Me))},t.\u0275cmp=z({type:t,selectors:[["app-dashboard"]],decls:1,vars:1,consts:[[4,"ngI
f"],[1,"flex","flex-row"],["pButton","","pRipple","","icon","pi
pi-angle-double-left",1,"p-button-text","p-button-primary",3,"pTooltip","click"],[1,"col-11"],[3,"model","activeItem","scrollable"],["menu",""],["pButton","","pRipple","","icon","pi
pi-angle-double-right",1,"p-button-text","p-button-primary",3,"pTooltip","click"]],template:function(e,n){1&e&&_(0,yW,11,9,"div",0),2&e&&p("ngIf",n.translateDone)},directives:[Q,On,bt,Kt,J2,Ml],pipes:[ce],styles:["[_nghost-%COMP%]
.dark-panel.p-panel
.p-panel-header{background:#c0c0c0}"]}),t})(),ji=(()=>{class
t{constructor(){}canDeactivate(e,n,s,r){return!e.canDeactivate||e.canDeactivate()}}return
t.\u0275fac=function(e){return
new(e||t)},t.\u0275prov=X({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();const
wW=[{path:"dashboard",component:oS},{path:"setupwizard",component:rS}];let
TW=(()=>{class t{}return t.\u0275fac=function(e){return
new(e||t)},t.\u0275mod=he({type:t}),t.\u0275inj=ue({providers:[ji],imports:[[vn.forRoot(wW)],vn]
}),t})(),SW=(()=>{class
t{constructor(e,n){this.http=e,this.document=n}switchTheme(e){let
n=this.document.getElementById("app-theme");n&&(n.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)(K(Bi),K(Xt))},t.\u0275prov=X({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),Ll=(()=>{class
t{constructor(e){this.translate=e,this.m_showSidebar=!0,this.recStatusText={Pending:"",Failing:"",MissedFuture:"",Tuning:"",Failed:"",TunerBusy:"",LowDiskSpace:"",Cancelled:"",Missed:"",Aborted:"",Recorded:"",Recording:"",WillRecord:"",Unknown:"",DontRecord:"",PreviousRecording:"",CurrentRecording:"",EarlierShowing:"",TooManyRecordings:"",NotListed:"",Conflict:"",LaterShowing:"",Repeat:"",Inactive:"",NeverRecord:"",Offline:""},this.getTranslations()}getTranslations(){for(const[e,n]of
Object.entries(this.recStatusText))this.translate.get("data.recstatus."+e).subscribe(s=>{Objec
t.defineProperty(this.recStatusText,e,{value:s})})}toggleShowSidebar(){this.m_showSidebar=!this.m_showSidebar}showSidebar(e){this.m_showSidebar=e}}return
t.\u0275fac=function(e){return
new(e||t)(K(Oe))},t.\u0275prov=X({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();function
xW(t,i){if(1&t&&(l(0,"div"),k(1,"img",26),c()),2&t){const
e=d(2);a(1),Bn("src","images/themes/",e.m_selectedTheme.Image,"",ln)}}function
DW(t,i){if(1&t&&(l(0,"div"),k(1,"img",27),c()),2&t){const
e=d(2);a(1),Bn("src","images/locale/",e.m_selectedLanguage.Image,"",ln)}}function
MW(t,i){if(1&t){const
e=I();l(0,"div",7)(1,"div",8)(2,"a",9),C("click",function(){return
v(e),d().toggleShowSidebar()}),k(3,"i",10)(4,"span",11),c(),k(5,"img",12),l(6,"div",13)(7,"h1"),g(8),m(9,"translate"),c()()(),l(10,"div",14)(11,"button",15),C("click",function(){return
v(e),d().showTopBar=!1}),m(12,"translate"),c()(),l(13,"div",16)(14,"a",17),C("click",function(){return
v(e),d().toggleShowNavbar()}),k(15,"i",18)(16,"span",11),c(),
l(17,"ul",19)(18,"li",20)(19,"a",21),C("click",function(s){return
v(e),d(),F(5).toggle(s)}),m(20,"translate"),_(21,xW,2,1,"div",22),l(22,"span",23),g(23),m(24,"translate"),c(),k(25,"span",24),c()(),l(26,"li",20)(27,"a",25),C("click",function(s){return
v(e),d(),F(8).toggle(s)}),m(28,"translate"),_(29,DW,2,1,"div",22),l(30,"span",23),g(31),m(32,"translate"),c(),k(33,"span",24),c()()()()()}if(2&t){const
e=d();a(8),S(f(9,9,"navbar.mainheading")),a(3),x("pTooltip",f(12,11,"navbar.hide")),a(6),p("hidden",e.m_showNavbar),a(2),x("pTooltip",f(20,13,"navbar.switchTheme")),a(2),p("ngIf",e.m_selectedTheme),a(2),S(f(24,15,"navbar.switchTheme")),a(4),x("pTooltip",f(28,17,"navbar.changeLanguage")),a(2),p("ngIf",e.m_selectedLanguage),a(2),S(f(32,19,"navbar.changeLanguage"))}}function
kW(t,i){if(1&t){const
e=I();l(0,"div",28)(1,"button",29),C("click",function(){return
v(e),d().showTopBar=!0}),m(2,"translate"),c()()}2&t&&(a(1),x("pTooltip",f(2,1,"navbar.show")))}function
IW(t,i){if(1&t&&(l(0,"tr",33)
(1,"td",34)(2,"span",35),g(3),c()()()),2&t){const
e=i.$implicit;a(3),S(e.Category)}}function EW(t,i){if(1&t){const
e=I();l(0,"tr",36),C("click",function(){const r=v(e).$implicit;return
d(2).changeTheme(r)}),l(1,"td",37),k(2,"img",38),c(),l(3,"td"),g(4),c()()}if(2&t){const
n=i.$implicit;p("pSelectableRow",i.$implicit),a(2),Bn("src","images/themes/",n.Image,"",ln),p("alt",n.image),a(2),S(n.Name)}}function
RW(t,i){1&t&&(l(0,"p-table",30),_(1,IW,4,1,"ng-template",31),_(2,EW,5,4,"ng-template",32),c()),2&t&&p("value",d().m_themes$)("paginator",!1)("scrollable",!0)}function
LW(t,i){if(1&t){const
e=I();l(0,"tr",36),C("click",function(){const
r=v(e).$implicit,o=d(2);return
F(8).hide(),o.changeLanguage(r)}),l(1,"td",37),k(2,"img",38),c(),l(3,"td")(4,"pre")(5,"span",40),g(6),c(),k(7,"br"),g(8),c()()()}if(2&t){const
n=i.$implicit;p("pSelectableRow",i.$implicit),a(2),Bn("src","images/locale/",n.Image,"",ln),p("alt",n.image),a(4),S(n.Language),a(2),T("",n.NativeLanguage,"
")}}function OW(t,i){1&t
&&(l(0,"p-table",39),_(1,LW,9,5,"ng-template",32),c()),2&t&&p("value",d().m_languages)("paginator",!1)("scrollable",!0)}const
AW=function(){return{width:"350px"}},PW=function(){return{width:"450px"}};let
FW=(()=>{class
t{constructor(e,n,s,r,o,u,h){this.themeService=e,this.configService=n,this.translateService=s,this.primeconfigService=r,this.dataService=o,this.mythService=u,this.router=h,this.m_showNavbar=!0,this.showTopBar=!0,this.m_devMode=function
KR(){return
ZC=!0,YC}(),this.m_haveDatabase=!0,this.themeService.getThemes().then(b=>{this.m_themes$=b,this.m_selectedTheme=this.findThemeByName(localStorage.getItem("Theme")||"Indigo
Light"),this.themeService.switchTheme(this.m_selectedTheme.CSS)}),this.configService.GetLanguages().subscribe(b=>{this.m_languages=b.LanguageList.Languages,this.m_selectedLanguage=this.findLanguageByCode(localStorage.getItem("Language")||"en_US")}),this.mythService.GetBackendInfo().subscribe(b=>{var
y=this.router.url;b.BackendInfo.Env.IsDatabaseIgnored||!b
.BackendInfo.Env.SchedulingEnabled&&!y.startsWith("/setupwizard/")?h.navigate(["setupwizard/dbsetup"]):"/"==y&&h.navigate(["dashboard/status"])})}ngOnInit(){}findThemeByName(e){for(var
n=0;n<this.m_themes$.length;n++)if(this.m_themes$[n].Name===e)return
this.m_themes$[n];return
this.m_themes$[0]}changeTheme(e){this.m_selectedTheme=e,this.themeService.switchTheme(e.CSS),localStorage.setItem("Theme",this.m_selectedTheme.Name)}findLanguageByCode(e){for(var
n=0;n<this.m_languages.length;n++)if(this.m_languages[n].Code===e)return
this.m_languages[n];return
this.m_languages[0]}changeLanguage(e){console.log("Language changed to
",e.NativeLanguage),this.m_selectedLanguage=e,localStorage.setItem("Language",this.m_selectedLanguage.Code),this.translateService.use(this.m_selectedLanguage.Code),this.translateService.get("primeng").subscribe(n=>this.primeconfigService.setTranslation(n))}toggleShowNavbar(){this.m_showNavbar=!this.m_showNavbar}toggleShowSidebar(){this.dataService.toggleShowSidebar(
)}}return t.\u0275fac=function(e){return
new(e||t)(D(SW),D(zo),D(Oe),D(zn),D(Ll),D(qt),D(It))},t.\u0275cmp=z({type:t,selectors:[["app-navbar"]],decls:10,vars:10,consts:[[1,"flex","flex-column","relative","flex-auto"],["class","toolbar
flex justify-content-between align-items-center pm-8 surface-section relative lg:static
surface-border","style","height:
80px;",4,"ngIf","ngIfElse"],["hidden",""],[3,"showCloseIcon"],["themePanel",""],["pTemplate",""],["languagePanel",""],[1,"toolbar","flex","justify-content-between","align-items-center","pm-8","surface-section","relative","lg:static","surface-border",2,"height","80px"],[1,"toolbar","flex","align-items-left","flex-shrink-0",2,"height","80px"],["pRipple","",1,"p-ripple","p-element","my-3","mx-1","flex","align-items-center","cursor-pointer","p-3","lg:hidden","lg:justify-content-center","hover:bg-gray-800","border-round","text-300","hover:text-0","transition-duration-150","transition-colors",3,"click"],[1,"pi","pi-bars","mr-1","lg:ml-1",
"text-base","lg:text-xl"],["ng","","serve","",1,"p-ink"],["src","images/mythtv.png","alt","Image","height","80",1,"py-2","pl-1"],[1,"hidden","md:inline-flex"],[1,"toolbar","flex","flex-grow-1","align-items-end",2,"height","80px"],["pButton","","pRipple","","icon","pi
pi-angle-up",1,"p-button-text","lg:col-offset-3","p-button-secondary",3,"pTooltip","click"],[1,"pr-2","toolbar",2,"height","80px"],["pRipple","",1,"toolbar","p-ripple","p-element","my-2","mx-2","flex","align-items-center","cursor-pointer","p-3","md:hidden","md:justify-content-center","hover:bg-gray-800","border-round","text-300","hover:text-0","transition-duration-150","transition-colors",2,"height","80px",3,"click"],[1,"pi","pi-ellipsis-v","mr-1","md:mr-0","text-base","md:text-xl"],[1,"toolbar","list-none","p-0","m-0","md:flex","md:align-items-center","select-none","md:flex-row","surface-section","border-1","md:border-none","surface-border","right-0","top-100","z-2","shadow-2","md:shadow-none","absolute","md:static",3,
"hidden"],[1,"toolbar",2,"height","80px"],["pRipple","","tooltipPosition","bottom",1,"p-ripple","p-element","my-3","mx-1","flex","align-items-center","cursor-pointer","p-2","lg:justify-content-center","hover:bg-gray-800","border-round","text-300","hover:text-0","transition-duration-150","transition-colors",3,"pTooltip","click"],[4,"ngIf"],[1,"font-medium","inline","md:hidden"],[1,"p-ink"],["pRipple","","tooltipPosition","bottom",1,"p-ripple","p-element","my-3","mx-1","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,"pTooltip","click"],[1,"mr-2","lg:mr-0",2,"width","32px","height","32px",3,"src"],[1,"mr-2","lg:mr-0",2,"width","32px",3,"src"],[1,"toolbar","block","flex","flex-grow-1","justify-content-center","align-items-end",2,"height","2rem"],["pButton","","pRipple","","icon","pi
pi-angle-down",1,"p-button-text","p-button-secondary",3,"pTooltip",
"click"],["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"],["selectionMode","single","sortField","NativeLanguage","sortMode","single","scrollHeight","500px","responsiveLayout","scroll",3,"value","paginator","scrollable"],[1,"font-bold"]],template:function(e,n){if(1&e&&(l(0,"div",0),_(1,MW,34,21,"div",1),_(2,kW,3,3,"ng-template",null,2,we),c(),l(4,"p-overlayPanel",3,4),_(6,RW,3,3,"ng-template",5),c(),l(7,"p-overlayPanel",3,6),_(9,OW,2,3,"ng-template",5),c()),2&e){const
s=F(3);a(1),p("ngIf",n.showTopBar)("ngIfElse",s),a(3),q(A(8,AW)),p("showCloseIcon",!0),a(3),q(A(9,PW)),p("showCloseIcon",!0)}},directives:[Q,bt,On,Kt,q9,ne,Dn,SU,j2],pipes:[ce
],styles:[".toolbar[_ngcontent-%COMP%]{background-color:#000;color:#4682b4}.theme-image[_ngcontent-%COMP%]{width:50px}"]}),t})(),NW=(()=>{class
t{constructor(e){this.dataService=e}ngOnInit(){}}return t.\u0275fac=function(e){return
new(e||t)(D(Ll))},t.\u0275cmp=z({type:t,selectors:[["app-sidenav"]],decls:32,vars:25,consts:[[1,"navbar","flex","relative","lg:static","surface-ground"],["id","sidebar",1,"bg-gray-900","lg:block","flex-shrink-0","absolute","lg:static","left-0","top-0","z-2","border-gray-800","w-18rem","lg:w-5rem","select-none",3,"hidden"],[1,"flex","flex-column","h-full"],[1,"mt-1","select-none"],[1,"list-none","p-3","lg:py-3","lg:px-2","m-0"],[3,"routerLink","pTooltip","tooltipDisabled","click"],["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"],["pRipple","",1,"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-cog","mr-2","lg:mr-0","text-base","lg:text-xl"],[1,"pi","pi-map","mr-2","lg:mr-0","text-base","lg:text-xl"],[1,"contentarea","px-0","lg:px-3","w-full"]],template:function(e,n){1&e&&(de(0),l(1,"div",0)(2,"div",1)(3,"div",2)(4,"div",3)(5,"ul",4)(6,"li",5),C("click",function(){return
n.dataService.showSidebar(!0)}),m(7,"translate"),l(8,"a",6),k(9,"i",7),l(10,"span",8),g(11),m(12,"translate"),c(),k(13,"span",9),c()(),l(14,"li",5),C("click",function(){return
n.dataService.showSidebar(!0)}),m(15,"translate"),l(16,"a",10),k(17,"i",11),l(18,"span",8),g(19),m(20,"translate"),c(),k(21,"span",9),c()(),l(22,"li",5),C("click",function(){return
n.dataService.showSidebar(!0)}),m(23,"translate"),l(24,"
a",10),k(25,"i",12),l(26,"span",8),g(27),m(28,"translate"),c(),k(29,"span",9),c()()()()()(),l(30,"div",13),k(31,"router-outlet"),c()(),pe()),2&e&&(a(2),p("hidden",n.dataService.m_showSidebar),a(4),x("pTooltip",f(7,13,"navbar.dashboard")),p("routerLink","dashboard/status")("tooltipDisabled",!1===n.dataService.m_showSidebar),a(5),S(f(12,15,"navbar.dashboard")),a(3),x("pTooltip",f(15,17,"navbar.backendSetup")),p("routerLink","setupwizard/dbsetup")("tooltipDisabled",!1===n.dataService.m_showSidebar),a(5),S(f(20,19,"navbar.backendSetup")),a(3),x("pTooltip",f(23,21,"dashboard.programguide")),p("routerLink","dashboard/program-guide")("tooltipDisabled",!1===n.dataService.m_showSidebar),a(5),S(f(28,23,"dashboard.programguide")))},directives:[gd,Kt,bt,Ml],pipes:[ce],styles:[".sidebar[_ngcontent-%COMP%]{width:70px;height:100%;margin:0}.navbar[_ngcontent-%COMP%]{min-height:calc(100vh
- 85px);max-height:calc(100vh -
85px)}.contentarea[_ngcontent-%COMP%]{overflow:scroll;height:calc(100vh - 85px)}
"]}),t})(),VW=(()=>{class
t{constructor(e,n){this.config=e,this.translate=n,this.title="MythTV
Backend",n.setDefaultLang("en_US"),n.use(localStorage.getItem("Language")||"en_US"),n.get("primeng").subscribe(s=>this.config.setTranslation(s)),this.config.ripple=!0}}return
t.\u0275fac=function(e){return
new(e||t)(D(zn),D(Oe))},t.\u0275cmp=z({type:t,selectors:[["app-root"]],decls:2,vars:0,template:function(e,n){1&e&&k(0,"app-navbar")(1,"app-sidenav")},directives:[FW,NW],styles:[""]}),t})();const
BW=["langform"],HW=["countryrow"],qW=["languagerow"];function
GW(t,i){1&t&&(g(0),m(1,"translate")),2&t&&T("
",f(1,1,"setupwizard.localSetup")," ")}function
UW(t,i){1&t&&(g(0),m(1,"translate")),2&t&&T("
",f(1,1,"setupwizard.countryAndLanguage")," ")}function
zW(t,i){1&t&&(l(0,"h2"),g(1),m(2,"translate"),c()),2&t&&(a(1),S(f(2,1,"setupwizard.selectCountry")))}function
jW(t,i){if(1&t&&(l(0,"div",18,19),k(2,"img",20),l(3,"pre")(4,"span",21),g(5),c(),g(6),c()()),2&t){const
e=i.$implicit;ie("id",e.Code)
,a(2),Bn("src","images/locale/",e.Image,"",ln),a(3),S(e.Country),a(1),We("",null!==e.NativeCountry?"
- "+e.NativeCountry:""," (",e.Code,")")}}function
$W(t,i){if(1&t&&(l(0,"div",22),k(1,"p-message",23),m(2,"translate"),c()),2&t){const
e=d(2);a(1),La("text","",f(2,2,"setupwizard.selectedCountry"),"
",e.m_wizardData.Country.Country,"")}}function
WW(t,i){1&t&&(l(0,"div",22),k(1,"p-message",24),m(2,"translate"),c()),2&t&&(a(1),x("text",f(2,1,"setupwizard.noCountry")))}function
KW(t,i){1&t&&(l(0,"h2"),g(1),m(2,"translate"),c()),2&t&&(a(1),S(f(2,1,"setupwizard.selectLanguage")))}function
QW(t,i){if(1&t&&(l(0,"div",18,25),k(2,"img",20),l(3,"pre")(4,"span",21),g(5),c(),g(6),c()()),2&t){const
e=i.$implicit;ie("id",e.Code),a(2),Bn("src","images/locale/",e.Image,"",ln),a(3),S(e.Language),a(1),We("
- ",e.NativeLanguage," (",e.Code,")")}}function
JW(t,i){if(1&t&&(l(0,"div",22),k(1,"p-message",23),m(2,"translate"),c()),2&t){const
e=d(2);a(1),La("text","",f(2,2,"setupwizard.selectedLanguage"),"
",
e.m_wizardData.Language.NativeLanguage,"")}}function
YW(t,i){1&t&&(l(0,"div",22),k(1,"p-message",26),m(2,"translate"),c()),2&t&&(a(1),x("text",f(2,1,"setupwizard.noLanguage")))}const
aS=function(){return{"max-height":"460px","min-height":"460px"}};function
ZW(t,i){if(1&t){const
e=I();l(0,"div",8)(1,"div",9)(2,"p-listbox",10),C("ngModelChange",function(s){return
v(e),d().m_wizardData.Country=s}),_(3,zW,3,3,"ng-template",11),_(4,jW,7,5,"ng-template",12),c(),_(5,$W,3,4,"div",13),_(6,WW,3,3,"ng-template",null,14,we),c(),l(8,"div",15)(9,"p-listbox",16),C("ngModelChange",function(s){return
v(e),d().m_wizardData.Language=s}),_(10,KW,3,3,"ng-template",11),_(11,QW,7,5,"ng-template",12),c(),_(12,JW,3,4,"div",13),_(13,YW,3,3,"ng-template",null,17,we),c()()}if(2&t){const
e=F(7),n=F(14),s=d();a(2),p("options",s.m_countries)("ngModel",s.m_wizardData.Country)("multiple",!1)("filter",!0)("listStyle",A(14,aS)),a(3),p("ngIf",""!=s.m_wizardData.Country.Code)("ngIfElse",e),a(4),p("options",s.m_language
s)("ngModel",s.m_wizardData.Language)("multiple",!1)("filter",!0)("listStyle",A(15,aS)),a(3),p("ngIf",""!=s.m_wizardData.Language.Code)("ngIfElse",n)}}function
XW(t,i){1&t&&(k(0,"p-message",23),m(1,"translate")),2&t&&x("text",f(1,1,"common.savesuccess"))}function
eK(t,i){1&t&&(k(0,"p-message",24),m(1,"translate")),2&t&&x("text",f(1,1,"common.networkfail"))}function
tK(t,i){if(1&t){const
e=I();l(0,"div",27)(1,"div",28),_(2,XW,2,3,"p-message",29),_(3,eK,2,3,"p-message",30),c(),l(4,"p-button",31),C("onClick",function(){v(e);const
s=d(),r=F(2);return
s.saveForm(),r.form.markAsPristine()}),m(5,"translate"),c(),l(6,"p-button",32),C("onClick",function(){return
v(e),d().router.navigate(["setupwizard/dbsetup"])}),m(7,"translate"),c(),l(8,"p-button",33),C("onClick",function(){return
v(e),d().router.navigate(["setupwizard/general"])}),m(9,"translate"),c()()}if(2&t){const
e=d(),n=F(2);a(2),p("ngIf",e.successCount>0&&e.successCount==e.expectedCount&&0==e.errorCount&&!n.dirty),a(1),p("ngIf",e.err
orCount>0),a(1),x("label",f(5,7,"common.save")),p("disabled",!n.dirty||e.setupService.schedulingEnabled),a(2),x("label",f(7,9,"common.back")),a(2),x("label",f(9,11,"common.next")),p("disabled",""==e.m_wizardData.Country.Code||""==e.m_wizardData.Language.Code)}}let
nK=(()=>{class
t{constructor(e,n,s,r,o,u){this.router=e,this.translate=n,this.setupService=s,this.configService=r,this.wizardService=o,this.mythService=u,this.m_countries=[],this.m_languages=[],this.successCount=0,this.errorCount=0,this.expectedCount=0,this.warningText="settings.common.warning",this.saveObserver={next:h=>{h.bool?(this.successCount++,this.successCount>=this.expectedCount&&localStorage.setItem("Language",this.m_wizardData.Language.Code),this.translate.use(this.m_wizardData.Language.Code)):(this.errorCount++,this.currentForm&&this.currentForm.form.markAsDirty())},error:h=>{console.error(h),this.errorCount++,this.currentForm&&this.currentForm.form.markAsDirty()}},this.translate.get(this.warningText).subscribe(
h=>{this.warningText=h})}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(),setTimeout(()=>this.scrollIntoView(),1e3)}ngAfterViewInit(){}scrollIntoView(){if(""!=this.m_wizardData.Country.Code){const
e=this.countryRowElement.find(n=>n.nativeElement.getAttribute("id")===this.m_wizardData.Country.Code);e?e.nativeElement.scrollIntoView({behavior:"instant",inline:"start",block:"center"}):console.log("Failed
to find element by ID")}if(""!=this.m_wizardData.Language.Code){const
e=this.languageRowElement.find(n=>n.nativeElement.getAttribute("id")===this.m_wizardData.Language.Code);e&&e.nativeElement.scrollIntoView({behavior:"instant",inline:"start",block:"center"})}null!=this.wizardService.m_topElement&&this.wizardService.m_topElement.nativeElement.scrollIntoView({behavior:"instant",block:"start"})}sav
eForm(){this.successCount=0,this.errorCount=0,this.expectedCount=2,this.mythService.PutSetting({HostName:"_GLOBAL_",Key:"Country",Value:this.m_wizardData.Country.Code}).subscribe(this.saveObserver),this.mythService.PutSetting({HostName:"_GLOBAL_",Key:"Language",Value:this.m_wizardData.Language.Code}).subscribe(this.saveObserver)}confirm(e){return
oe(window.confirm(e))}canDeactivate(){return!this.currentForm||!this.currentForm.dirty||this.confirm(this.warningText)}onWindowClose(e){this.currentForm&&this.currentForm.dirty&&(e.preventDefault(),e.returnValue=!1)}}return
t.\u0275fac=function(e){return
new(e||t)(D(It),D(Oe),D(Me),D(zo),D(xd),D(qt))},t.\u0275cmp=z({type:t,selectors:[["app-selectlanguage"]],viewQuery:function(e,n){if(1&e&&(W(BW,5),W(HW,5,De),W(qW,5,De)),2&e){let
s;V(s=B())&&(n.currentForm=s.first),V(s=B())&&(n.countryRowElement=s),V(s=B())&&(n.languageRowElement=s)}},hostBindings:function(e,n){1&e&&C("beforeunload",function(r){return
n.onWindowClose(r)},!1,ni)},decls:8,vars
:0,consts:[[1,"wizard-content","m-0","md:m-3"],["name","langform",1,"mx-0","md:mx-3"],["langform","ngForm"],[1,"m-0","md:m-5"],["pTemplate","title"],["pTemplate","subtitle"],["pTemplate","content"],["pTemplate","footer"],[1,"grid","m-0","md:m-3"],[1,"col-12","md:col-6","pt-2"],["optionLabel","Country","name","countries",3,"options","ngModel","multiple","filter","listStyle","ngModelChange"],["pTemplate","header"],["pTemplate","item"],["class","pt-5",4,"ngIf","ngIfElse"],["noCountry",""],[1,"col-12","md:col-6"],["optionLabel","Language","name","languages",3,"options","ngModel","multiple","filter","listStyle","ngModelChange"],["noLanguage",""],[1,"language-item"],["countryrow",""],[1,"pr-3",2,"width","70px",3,"src"],[1,"font-bold"],[1,"pt-5"],["severity","success",3,"text"],["severity","error",3,"text"],["languagerow",""],["severity","error",1,"pt-2",3,"text"],[1,"grid","nogutter","m-5"],[1,"col-12"],["severity","success",3,"text",4,"ngIf"],["severity","error",3,"text",4,"ngIf"],["icon
","pi
pi-save","iconPos","left",1,"col","pr-1",3,"label","disabled","onClick"],["icon","pi
pi-angle-left","iconPos","left",1,"pr-3",3,"label","onClick"],["icon","pi
pi-angle-right","iconPos","right",3,"label","disabled","onClick"]],template:function(e,n){1&e&&(l(0,"div",0)(1,"form",1,2)(3,"p-card",3),_(4,GW,2,3,"ng-template",4),_(5,UW,2,3,"ng-template",5),_(6,ZW,15,16,"ng-template",6),_(7,tK,10,13,"ng-template",7),c()()())},directives:[ze,Ue,He,Ne,ne,os,Te,_e,Q,qe,ve],pipes:[ce],styles:[".language-item{display:flex;align-items:center}@media
screen and (max-width:
48rem){.p-card-body,.p-card-content,.p-accordion-content{padding:0rem!important}}\n"],encapsulation:2}),t})();class
iK{constructor(i,e){this._document=e;const
n=this._textarea=this._document.createElement("textarea"),s=n.style;s.position="fixed",s.top=s.opacity="0",s.left="-999em",n.setAttribute("aria-hidden","true"),n.value=i,this._document.body.appendChild(n)}copy(){const
i=this._textarea;let e=!1;try{if(i){const n=this._
document.activeElement;i.select(),i.setSelectionRange(0,i.value.length),e=this._document.execCommand("copy"),n&&n.focus()}}catch(n){}return
e}destroy(){const i=this._textarea;i&&(i.remove(),this._textarea=void 0)}}let
lS=(()=>{class t{constructor(e){this._document=e}copy(e){const
n=this.beginCopy(e),s=n.copy();return n.destroy(),s}beginCopy(e){return new
iK(e,this._document)}}return t.\u0275fac=function(e){return
new(e||t)(K(Xt))},t.\u0275prov=X({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();const
sK=["databaseForm"];function
rK(t,i){1&t&&(g(0),m(1,"translate")),2&t&&T("
",f(1,1,"setupwizard.databaseSetup")," ")}function
oK(t,i){1&t&&(g(0),m(1,"translate")),2&t&&T("
",f(1,1,"setupwizard.enterDBLoginDetails")," ")}function
aK(t,i){1&t&&(l(0,"div")(1,"small",42),g(2),m(3,"translate"),c()()),2&t&&(a(2),S(f(3,1,"setupwizard.IPorAddressRequired")))}function
lK(t,i){1&t&&(l(0,"div")(1,"small",43),g(2),m(3,"translate"),c()()),2&t&&(a(2),S(f(3,1,"setupwizard.portRequired")))}functio
n
cK(t,i){1&t&&(l(0,"div")(1,"small",43),g(2),m(3,"translate"),c()()),2&t&&(a(2),S(f(3,1,"setupwizard.userRequired")))}function
uK(t,i){1&t&&(l(0,"div")(1,"small",43),g(2),m(3,"translate"),c()()),2&t&&(a(2),S(f(3,1,"setupwizard.passwordRequired")))}function
dK(t,i){1&t&&(l(0,"div")(1,"small",43),g(2),m(3,"translate"),c()()),2&t&&(a(2),S(f(3,1,"setupwizard.databaseNameRequired")))}function
pK(t,i){if(1&t){const
e=I();l(0,"div",30)(1,"label",44),g(2),m(3,"translate"),c(),l(4,"input",45,46),C("ngModelChange",function(s){return
v(e),d(2).database.LocalHostName=s}),c(),l(6,"small",47),g(7),m(8,"translate"),c()()}if(2&t){const
e=d(2);a(2),S(f(3,3,"setupwizard.LocalHostName_label")),a(2),p("ngModel",e.database.LocalHostName),a(3),S(f(8,5,"setupwizard.LocalHostName_desc"))}}function
hK(t,i){if(1&t){const
e=I();l(0,"div",8)(1,"label",48),g(2),m(3,"translate"),c(),l(4,"p-inputNumber",49),C("ngModelChange",function(s){return
v(e),d(2).database.WOLReconnect=s}),c(),l(5,"small",32),g(6),m(7,"tra
nslate"),c()()}if(2&t){const e=d(2);a(2),T("
",f(3,8,"settings.vsource.WOLReconnect_label"),"
"),a(2),p("ngModel",e.database.WOLReconnect)("min",0)("max",60)("step",1)("useGrouping",!1)("showButtons",!0),a(2),T("
",f(7,10,"settings.vsource.WOLReconnect_desc")," ")}}function
mK(t,i){if(1&t){const
e=I();l(0,"div",8)(1,"label",50),g(2),m(3,"translate"),c(),l(4,"p-inputNumber",51),C("ngModelChange",function(s){return
v(e),d(2).database.WOLRetry=s}),c(),l(5,"small",32),g(6),m(7,"translate"),c()()}if(2&t){const
e=d(2);a(2),T(" ",f(3,8,"settings.vsource.WOLRetry_label"),"
"),a(2),p("ngModel",e.database.WOLRetry)("min",1)("max",10)("step",1)("useGrouping",!1)("showButtons",!0),a(2),T("
",f(7,10,"settings.vsource.WOLRetry_desc")," ")}}function
fK(t,i){if(1&t){const
e=I();l(0,"div",30)(1,"label",52),g(2),m(3,"translate"),c(),l(4,"input",53,54),C("ngModelChange",function(s){return
v(e),d(2).database.WOLCommand=s}),c(),l(6,"small",55),g(7),m(8,"translate"),c()()}if(2&t){const
e=d(2);a(2),S(f(3,
3,"setupwizard.WOLCommand_label")),a(2),p("ngModel",e.database.WOLCommand),a(3),S(f(8,5,"setupwizard.WOLCommand_desc"))}}function
gK(t,i){1&t&&(l(0,"div"),k(1,"p-message",56),m(2,"translate"),c()),2&t&&(a(1),x("text",f(2,1,"setupwizard.connectedToDatabase")))}function
_K(t,i){1&t&&(l(0,"div",57,39),k(2,"p-message",58),m(3,"translate"),c()),2&t&&(a(2),x("text",f(3,1,"setupwizard.notConnectedToDatabase")))}const
cS=function(t){return{Name:t}};function
bK(t,i){if(1&t&&(l(0,"div"),k(1,"p-message",56),m(2,"translate"),c()),2&t){const
e=d(2);a(1),x("text",Dt(2,1,"setupwizard.dbsetup.havedb",U(4,cS,e.m_wizardData.Database.Name)))}}function
vK(t,i){if(1&t&&(l(0,"div",59,40),k(2,"p-message",60),m(3,"translate"),c()),2&t){const
e=d(2);a(2),x("text",Dt(3,1,"setupwizard.dbsetup.havenotdb",U(4,cS,e.m_wizardData.Database.Name)))}}const
CK=function(t){return{SchemaVersion:t}};function
yK(t,i){if(1&t&&(l(0,"div"),k(1,"p-message",61),m(2,"translate"),c()),2&t){const
e=d(2);a(1),x("text",Dt(2,1,"setu
pwizard.dbsetup.schemaver",U(4,CK,e.m_wizardData.DatabaseStatus.DatabaseStatus.SchemaVersion)))}}function
wK(t,i){1&t&&(l(0,"div",62,40),k(2,"p-message",63),m(3,"translate"),c()),2&t&&(a(2),x("text",f(3,1,"setupwizard.databaseSchemaUnknown")))}function
TK(t,i){if(1&t){const
e=I();l(0,"div")(1,"p"),g(2),m(3,"translate"),c(),l(4,"div",68)(5,"div",69),g(6,"
Sql Server Type:
"),c(),l(7,"div",70)(8,"p-radioButton",71),C("ngModelChange",function(s){return
v(e),d(3).dbtype=s})("ngModelChange",function(){return
v(e),d(3).setCommandList()}),c(),l(9,"label",72),g(10,"MySql"),c()(),l(11,"div",73)(12,"p-radioButton",74),C("ngModelChange",function(s){return
v(e),d(3).dbtype=s})("ngModelChange",function(){return
v(e),d(3).setCommandList()}),c(),l(13,"label",75),g(14,"MariaDB"),c()()(),l(15,"table",76)(16,"tr")(17,"td",65),g(18),c(),l(19,"td",66)(20,"button",67),C("click",function(){v(e);const
s=d(3);return
s.copyToclipboard(s.commandlist)}),m(21,"translate"),c()()()(),l(22,"p"),g(23),m(24,"transl
ate"),c(),l(25,"table")(26,"tr")(27,"td",65),g(28),c(),l(29,"td",66)(30,"button",67),C("click",function(){v(e);const
s=d(3);return
s.copyToclipboard(s.mySqlCommand)}),m(31,"translate"),c()()()()()}if(2&t){const
e=d(3);a(2),T(" ",f(3,8,"setupwizard.sqlinstructions"),"
"),a(6),p("ngModel",e.dbtype),a(4),p("ngModel",e.dbtype),a(6),T("
",e.commandlist,"
"),a(2),x("pTooltip",f(21,10,"settings.common.clipboard_tooltip")),a(3),S(f(24,12,"setupwizard.runcommand")),a(5),T("
",e.mySqlCommand,"
"),a(2),x("pTooltip",f(31,14,"settings.common.clipboard_tooltip"))}}function
SK(t,i){if(1&t){const
e=I();l(0,"div")(1,"h2"),g(2),m(3,"translate"),c(),_(4,TK,32,16,"div",13),l(5,"p",64),g(6),m(7,"translate"),c(),l(8,"table")(9,"tr")(10,"td",65),g(11),c(),l(12,"td",66)(13,"button",67),C("click",function(){v(e);const
s=d(2);return
s.copyToclipboard(s.tzCommand)}),m(14,"translate"),c()()()(),l(15,"p"),g(16),m(17,"translate"),c(),l(18,"p"),g(19),m(20,"translate"),c(),l(21,"p"),g(22),m(23,"translate"),c()()}i
f(2&t){const
e=d(2);a(2),S(f(3,8,"common.instructions")),a(2),p("ngIf",e.connectionFail),a(2),S(f(7,10,"setupwizard.tztables")),a(5),T("
",e.tzCommand,"
"),a(2),x("pTooltip",f(14,12,"settings.common.clipboard_tooltip")),a(3),T("",f(17,14,"setupwizard.ignoremessages"),"
"),a(3),S(f(20,16,"setupwizard.savethis")),a(3),S(f(23,18,"setupwizard.restartbe"))}}const
xK=function(t){return{"is-invalid":t}};function DK(t,i){if(1&t){const
e=I();l(0,"div",7)(1,"div",8)(2,"label",9),g(3),m(4,"translate"),c(),l(5,"input",10,11),C("ngModelChange",function(s){return
v(e),d().database.Host=s}),c(),l(7,"small",12),g(8),m(9,"translate"),c(),_(10,aK,4,3,"div",13),c(),l(11,"div",8)(12,"label",14),g(13),m(14,"translate"),c(),l(15,"input",15,16),C("ngModelChange",function(s){return
v(e),d().database.Port=s}),c(),l(17,"small",17),g(18),m(19,"translate"),c(),_(20,lK,4,3,"div",13),c(),l(21,"div",8)(22,"label",18),g(23),m(24,"translate"),c(),l(25,"input",19,20),C("ngModelChange",function(s){return
v(e),d().dat
abase.UserName=s}),c(),l(27,"small",21),g(28),m(29,"translate"),c(),_(30,cK,4,3,"div",13),c(),l(31,"div",8)(32,"label",22),g(33),m(34,"translate"),c(),l(35,"input",23,24),C("ngModelChange",function(s){return
v(e),d().database.Password=s}),c(),l(37,"small",25),g(38),m(39,"translate"),c(),_(40,uK,4,3,"div",13),c(),l(41,"div",8)(42,"label",26),g(43),m(44,"translate"),c(),l(45,"input",27,28),C("ngModelChange",function(s){return
v(e),d().database.Name=s}),c(),l(47,"small",29),g(48),m(49,"translate"),c(),_(50,dK,4,3,"div",13),c(),l(51,"div",30)(52,"p-checkbox",31),C("ngModelChange",function(s){return
v(e),d().database.LocalEnabled=s}),m(53,"translate"),c(),l(54,"small",32),g(55),m(56,"translate"),c()(),_(57,pK,9,7,"div",33),l(58,"div",30)(59,"p-checkbox",34),C("ngModelChange",function(s){return
v(e),d().database.WOLEnabled=s}),m(60,"translate"),c(),l(61,"small",32),g(62),m(63,"translate"),c()(),_(64,hK,8,12,"div",35),_(65,mK,8,12,"div",35),_(66,fK,9,7,"div",33),c(),l(67,"div")(68,"p-butto
n",36),C("click",function(){return
v(e),d().saveForm(!1)}),m(69,"translate"),c()(),l(70,"div",37),_(71,gK,3,3,"div",38),_(72,_K,4,3,"ng-template",null,39,we),_(74,bK,3,6,"div",38),_(75,vK,4,6,"ng-template",null,40,we),_(77,yK,3,6,"div",38),_(78,wK,4,3,"ng-template",null,41,we),c(),_(80,SK,24,20,"div",13)}if(2&t){const
e=F(6),n=F(16),s=F(26),r=F(36),o=F(46),u=F(73),h=F(76),b=F(79),y=d(),w=F(2);a(3),S(f(4,42,"setupwizard.MySQLServerIP")),a(2),p("ngModel",y.database.Host)("ngClass",U(72,xK,e.invalid)),a(3),S(f(9,44,"setupwizard.ipaddress_help")),a(2),p("ngIf",e.invalid&&(e.dirty||e.touched)),a(3),S(f(14,46,"setupwizard.MySQLServerPort")),a(2),p("ngModel",y.database.Port),a(3),S(f(19,48,"setupwizard.port_help")),a(2),p("ngIf",n.invalid&&(n.dirty||n.touched)),a(3),S(f(24,50,"setupwizard.MySQLUser")),a(2),p("ngModel",y.database.UserName),a(3),S(f(29,52,"setupwizard.user_help")),a(2),p("ngIf",s.invalid&&(s.dirty||s.touched)),a(3),S(f(34,54,"setupwizard.MySQLPassword")),a(2),p("ngModel",y.d
atabase.Password),a(3),S(f(39,56,"setupwizard.password_help")),a(2),p("ngIf",r.invalid&&(r.dirty||r.touched)),a(3),S(f(44,58,"setupwizard.MySQLDatabaseName")),a(2),p("ngModel",y.database.Name),a(3),S(f(49,60,"setupwizard.dbname_help")),a(2),p("ngIf",o.invalid&&(o.dirty||o.touched)),a(2),x("label",f(53,62,"setupwizard.LocalEnabled_label")),p("ngModel",y.database.LocalEnabled)("binary",!0),a(3),T("
",f(56,64,"setupwizard.LocalEnabled_desc"),"
"),a(2),p("ngIf",y.database.LocalEnabled),a(2),x("label",f(60,66,"setupwizard.WOLEnabled_label")),p("ngModel",y.database.WOLEnabled)("binary",!0),a(3),T("
",f(63,68,"setupwizard.WOLEnabled_desc"),"
"),a(2),p("ngIf",y.database.WOLEnabled),a(1),p("ngIf",y.database.WOLEnabled),a(1),p("ngIf",y.database.WOLEnabled),a(2),x("label",f(69,70,"setupwizard.testConnection")),p("disabled",null==w.invalid||w.invalid),a(3),p("ngIf",y.m_wizardData.DatabaseStatus.DatabaseStatus.Connected)("ngIfElse",u),a(3),p("ngIf",y.m_wizardData.DatabaseStatus.DatabaseStatus.Ha
veDatabase)("ngIfElse",h),a(3),p("ngIf",y.m_wizardData.DatabaseStatus.DatabaseStatus.Connected&&y.m_wizardData.DatabaseStatus.DatabaseStatus.HaveDatabase)("ngIfElse",b),a(3),p("ngIf",y.setupService.isDatabaseIgnored)}}function
MK(t,i){1&t&&(k(0,"p-message",83),m(1,"translate")),2&t&&x("text",f(1,1,"common.savesuccess"))}function
kK(t,i){1&t&&(k(0,"p-message",60),m(1,"translate")),2&t&&x("text",f(1,1,"common.networkfail"))}function
IK(t,i){1&t&&(k(0,"p-message",60),m(1,"translate")),2&t&&x("text",f(1,1,"setupwizard.connectionfail"))}function
EK(t,i){if(1&t){const
e=I();l(0,"div",77)(1,"div",78),_(2,MK,2,3,"p-message",79),_(3,kK,2,3,"p-message",80),_(4,IK,2,3,"p-message",80),c(),l(5,"p-button",81),C("onClick",function(){v(e);const
s=d(),r=F(2);return
s.saveForm(!0),r.form.markAsPristine()}),m(6,"translate"),c(),l(7,"p-button",82),C("onClick",function(){return
v(e),d().router.navigate(["setupwizard/selectlanguage"])}),m(8,"translate"),c()()}if(2&t){const
e=d(),n=F(2);a(2),p("ngIf",e.su
ccessCount>0&&e.successCount==e.expectedCount&&0==e.errorCount&&!n.dirty),a(1),p("ngIf",e.errorCount>0),a(1),p("ngIf",e.connectionFail),a(1),x("label",f(6,7,"common.save")),p("disabled",(!n.dirty||e.setupService.schedulingEnabled)&&!e.setupService.isDatabaseIgnored),a(2),x("label",f(8,9,"common.next")),p("disabled",e.setupService.isDatabaseIgnored)}}let
RK=(()=>{class
t{constructor(e,n,s,r,o,u,h,b){this.router=e,this.configService=n,this.mythService=s,this.wizardService=r,this.translate=o,this.messageService=u,this.setupService=h,this.clipboard=b,this.successCount=0,this.errorCount=0,this.expectedCount=2,this.connectionFail=!1,this.commandlist="",this.mySqlCommand="sudo
mysql -u root < setup.sql",this.tzCommand="mysql_tzinfo_to_sql
/usr/share/zoneinfo | sudo mysql -u root
mysql",this.dbtype="MySQL",this.msg_testconnection="setupwizard.testConnection",this.msg_connectionsuccess="setupwizard.connectionsuccess",this.msg_connectionfail="setupwizard.connectionfail",this.warningText="sett
ings.common.warning",this.saveObserver={next:y=>{y.bool?this.successCount++:(this.errorCount++,this.currentForm&&this.currentForm.form.markAsDirty())},error:y=>{console.error(y),this.errorCount++,this.currentForm&&this.currentForm.form.markAsDirty()}},this.translate.get(this.msg_testconnection).subscribe(y=>this.msg_testconnection=y),this.translate.get(this.msg_connectionsuccess).subscribe(y=>this.msg_connectionsuccess=y),this.translate.get(this.msg_connectionfail).subscribe(y=>this.msg_connectionfail=y),this.translate.get(this.warningText).subscribe(y=>this.warningText=y)}ngOnInit(){this.wizardService.initDatabaseStatus(),this.m_wizardData=this.wizardService.getWizardData(),this.database=Object.assign({},this.m_wizardData.Database),this.wizardService.dbPromise.then(()=>{this.database=Object.assign({},this.m_wizardData.Database)},()=>this.errorCount++)}copyToclipboard(e){this.clipboard.copy(e)}saveForm(e){this.successCount=0,this.errorCount=0,this.expectedCount=1,this.connectionFail
=!1;const
n={HostName:this.database.Host,UserName:this.database.UserName,Password:this.database.Password,DBName:this.database.Name,dbPort:this.database.Port};this.commandlist="",this.mythService.TestDBSettings(n).subscribe(s=>{s.bool?e?this.configService.SetDatabaseCredentials(this.database).subscribe(this.saveObserver):this.messageService.add({severity:"success",life:5e3,summary:this.msg_testconnection,detail:this.msg_connectionsuccess}):(this.messageService.add({severity:"error",life:5e3,summary:this.msg_testconnection,detail:this.msg_connectionfail}),this.connectionFail=!0,this.setCommandList())})}setCommandList(){let
e="";"MySQL"==this.dbtype&&(e="WITH
mysql_native_password"),this.commandlist=`CREATE DATABASE IF NOT EXISTS
${this.database.Name};\nCREATE USER IF NOT EXISTS
'${this.database.UserName}'@'localhost' IDENTIFIED ${e} by
'${this.database.Password}';\nCREATE USER IF NOT EXISTS
'${this.database.UserName}'@'%' IDENTIFIED ${e} by
'${this.database.Password}';\nGRANT ALL ON $
{this.database.Name}.* TO '${this.database.UserName}'@'localhost';\nGRANT
ALL ON ${this.database.Name}.* TO
'${this.database.UserName}'@'%';`}confirm(e){return
oe(window.confirm(e))}canDeactivate(){return!this.currentForm||!this.currentForm.dirty||this.confirm(this.warningText)}onWindowClose(e){this.currentForm&&this.currentForm.dirty&&(e.preventDefault(),e.returnValue=!1)}}return
t.\u0275fac=function(e){return
new(e||t)(D(It),D(zo),D(qt),D(xd),D(Oe),D(Gi),D(Me),D(lS))},t.\u0275cmp=z({type:t,selectors:[["app-dbsetup"]],viewQuery:function(e,n){if(1&e&&W(sK,5),2&e){let
s;V(s=B())&&(n.currentForm=s.first)}},hostBindings:function(e,n){1&e&&C("beforeunload",function(r){return
n.onWindowClose(r)},!1,ni)},features:[Pe([Gi])],decls:8,vars:0,consts:[["name","databaseForm",1,"mx-0","md:mx-3"],["databaseForm","ngForm"],[1,"m-0","md: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,"label","block"],["pInputText","","id","ipaddress","type","text","aria-describedby","ipaddress-help","name","hostname","placeholder","Ex.
127.0.0.1 or
localhost","required","",1,"mb-2","form-control","w-full",3,"ngModel","ngClass","ngModelChange"],["host","ngModel"],["id","ipaddress-help"],[4,"ngIf"],["for","port",1,"label","block"],["pInputText","","id","port","type","number","aria-describedby","port-help","name","port","placeholder","Ex.
3306","min","0","max","65536",1,"mb-2","form-control","w-full",3,"ngModel","ngModelChange"],["port","ngModel"],["id","port-help"],["for","user",1,"label","block"],["pInputText","","id","user","type","text","aria-describedby","user-help","name","user","placeholder","Ex.
mythtv","required","",1,"mb-2","form-control","w-full",3,"ngModel","ngModelChange"],["user","ngModel"],["id","user-help"],["for","password",1,"label","block"],["pInputText","","id","password","type","text","aria-describedby","password-help","name","password",
"placeholder","Ex.
mythtv","required","",1,"mb-2","form-control","w-full",3,"ngModel","ngModelChange"],["password","ngModel"],["id","password-help"],["for","dbname",1,"label","block"],["pInputText","","id","dbname","type","text","aria-describedby","dbname-help","name","dbname","placeholder","Ex.
mythconverg","required","",1,"mb-2","form-control","w-full",3,"ngModel","ngModelChange"],["dbname","ngModel"],["id","dbname-help"],[1,"field","col-12"],["name","LocalEnabled",1,"mb-2","w-full","label","block",3,"ngModel","binary","label","ngModelChange"],[1,"block"],["class","field
col-12",4,"ngIf"],["name","WOLEnabled",1,"mb-2","w-full","label","block",3,"ngModel","binary","label","ngModelChange"],["class","field
col-12
md:col-6",4,"ngIf"],["type","button",1,"mr-1","p-button-raised","p-button-secondary",3,"label","disabled","click"],[1,"pt-4",2,"display","flex"],[4,"ngIf","ngIfElse"],["notconnected",""],["nodatabase",""],["noschema",""],["id","address-help",1,"p-error","block"],[1,"p-error"
,"block"],["for","LocalHostName",1,"label","block"],["pInputText","","id","LocalHostName","type","text","aria-describedby","LocalHostName-help","name","LocalHostName",1,"mb-2","form-control","w-full",3,"ngModel","ngModelChange"],["LocalHostName","ngModel"],["id","LocalHostName-help"],["for","WOLReconnect",1,"label","block"],["name","WOLReconnect","id","WOLReconnect",3,"ngModel","min","max","step","useGrouping","showButtons","ngModelChange"],["for","WOLRetry",1,"label","block"],["name","WOLRetry","id","WOLRetry",3,"ngModel","min","max","step","useGrouping","showButtons","ngModelChange"],["for","WOLCommand",1,"label","block"],["pInputText","","id","WOLCommand","type","text","aria-describedby","WOLCommand-help","name","WOLCommand",1,"mb-2","form-control","w-full",3,"ngModel","ngModelChange"],["WOLCommand","ngModel"],["id","WOLCommand-help"],["severity","success",1,"pr-2",3,"text"],[1,"pr-2","notconnected"],["severity","error",1,"",3,"text"],[1,"pr-2","nodatabase"],["severity","error",3
,"text"],["severity","info",1,"pr-2",3,"text"],[1,"pr-2","noschema"],["severity","info",3,"text"],[1,""],[1,"align-items-center","bg-blue-100","text-gray-900",2,"font-family","monospace"],[1,"align-items-center"],["pButton","","pRipple","","type","button","icon","pi
pi-copy",1,"p-button-rounded","p-button-text",3,"pTooltip","click"],[1,"flex","pb-3"],[1,"flex-none","flex","align-items-center","label","block","pr-5"],[1,"flex-none","flex","align-items-center","pr-5"],["name","dbtype","value","MySQL","inputId","mysql",3,"ngModel","ngModelChange"],["for","mysql"],[1,"flex-none","flex","align-items-center"],["name","dbtype","value","MariaDB","inputId","mariadb",3,"ngModel","ngModelChange"],["for","mariadb"],[2,"white-space","pre-line"],[1,"grid","nogutter","m-5"],[1,"col-12"],["severity","success",3,"text",4,"ngIf"],["severity","error",3,"text",4,"ngIf"],["icon","pi
pi-save","iconPos","left",1,"col","pr-1",3,"label","disabled","onClick"],["icon","pi
pi-angle-right","iconPos","right",1,"
pr-3",3,"label","disabled","onClick"],["severity","success",3,"text"]],template:function(e,n){1&e&&(k(0,"p-toast"),l(1,"form",0,1)(3,"p-card",2),_(4,rK,2,3,"ng-template",3),_(5,oK,2,3,"ng-template",4),_(6,DK,81,74,"ng-template",5),_(7,EK,9,11,"ng-template",6),c()())},directives:[Td,ze,Ue,He,Ne,ne,Ye,ll,Te,_e,Le,Q,Du,xu,Su,sn,pt,ve,qe,Sd,On,bt,Kt],pipes:[ce],styles:[".is-invalid{border-color:red}@media
screen and (max-width:
48rem){.p-card-body,.p-card-content,.p-accordion-content{padding:0rem!important}}\n"],encapsulation:2}),t})();const
LK=["hostaddress"];function
OK(t,i){1&t&&(g(0),m(1,"translate")),2&t&&T("
",f(1,1,"settings.hostaddress.title")," ")}function
AK(t,i){1&t&&(g(0),m(1,"translate")),2&t&&T("
",f(1,1,"settings.hostaddress.subtitle")," ")}function
PK(t,i){1&t&&(l(0,"div")(1,"small",40),g(2),m(3,"translate"),c()()),2&t&&(a(2),S(f(3,1,"setupwizard.portRequired")))}function
FK(t,i){1&t&&(l(0,"div")(1,"small",40),g(2),m(3,"translate"),c()()),2&t&&(a(2),S(f(3,1,"setupwizard.
portRequired")))}function
NK(t,i){1&t&&(l(0,"div")(1,"small",40),g(2),m(3,"translate"),c()()),2&t&&(a(2),T("
",f(3,1,"settings.hostaddress.pin_reqd")," "))}function
VK(t,i){1&t&&(l(0,"div")(1,"small",52),g(2,"IPv4
address"),c()())}function
BK(t,i){1&t&&(l(0,"div")(1,"small",40),g(2,"IPv6
address"),c()())}function HK(t,i){if(1&t){const
e=I();l(0,"div")(1,"div",9)(2,"label",41),g(3),m(4,"translate"),c(),l(5,"p-dropdown",42,43),C("ngModelChange",function(s){return
v(e),d(2).m_HostAddressData.BackendServerIP=s}),c(),l(7,"small",44),g(8),m(9,"translate"),c(),_(10,VK,3,0,"div",14),c(),l(11,"div",9)(12,"label",45),g(13),m(14,"translate"),c(),l(15,"p-dropdown",46,47),C("ngModelChange",function(s){return
v(e),d(2).m_HostAddressData.BackendServerIP6=s}),c(),l(17,"small",48),g(18),m(19,"translate"),c(),_(20,BK,3,0,"div",14),c(),l(21,"div",9)(22,"p-checkbox",49,50),C("ngModelChange",function(s){return
v(e),d(2).m_HostAddressData.AllowLinkLocal=s}),m(24,"translate"),c(),l(25,"small",51),g(26),m(
27,"translate"),c()()()}if(2&t){const
e=F(6),n=F(16),s=d(2);a(3),S(f(4,14,"settings.hostaddress.ipv4_label")),a(2),p("options",s.m_IPsV4)("ngModel",s.m_HostAddressData.BackendServerIP),a(3),T("
",f(9,16,"settings.hostaddress.ipv4_desc"),"
"),a(2),p("ngIf",e.invalid&&(e.dirty||e.touched)),a(3),T("
",f(14,18,"settings.hostaddress.ipv6_label"),"
"),a(2),p("options",s.m_IPsV6)("ngModel",s.m_HostAddressData.BackendServerIP6),a(3),T("
",f(19,20,"settings.hostaddress.ipv6_desc"),"
"),a(2),p("ngIf",n.invalid&&(n.dirty||n.touched)),a(2),x("label",f(24,22,"settings.hostaddress.listenlinklocal_label")),p("ngModel",s.m_HostAddressData.AllowLinkLocal)("binary",!0),a(4),T("
",f(27,24,"settings.hostaddress.listenlinklocal_desc"),"
")}}function
qK(t,i){1&t&&(l(0,"div")(1,"small",40),g(2,"Primary
IP address / DNS name is required"),c()())}function
GK(t,i){1&t&&(l(0,"div")(1,"small",53),g(2),m(3,"translate"),c()()),2&t&&(a(2),T("
",f(3,1,"settings.hostaddress.ismaster_hint")," "))}function
UK(t,i){1&
t&&(l(0,"div")(1,"small",54),g(2,"Hostname of master
backend is required"),c()())}const
uS=function(t){return{"is-invalid":t}};function zK(t,i){if(1&t){const
e=I();l(0,"div",7)(1,"p-fieldset",8),m(2,"translate"),l(3,"div",9)(4,"label",10),g(5),m(6,"translate"),c(),l(7,"input",11,12),C("ngModelChange",function(s){return
v(e),d().m_HostAddressData.BackendServerPort=s}),c(),l(9,"small",13),g(10),m(11,"translate"),c(),_(12,PK,4,3,"div",14),c(),l(13,"div",9)(14,"label",15),g(15),m(16,"translate"),c(),l(17,"input",16,17),C("ngModelChange",function(s){return
v(e),d().m_HostAddressData.BackendStatusPort=s}),c(),l(19,"small",18),g(20),m(21,"translate"),c(),_(22,FK,4,3,"div",14),c()(),l(23,"p-fieldset",8),m(24,"translate"),l(25,"div",9)(26,"label",19),g(27),m(28,"translate"),c(),l(29,"input",20,21),C("ngModelChange",function(s){return
v(e),d().m_HostAddressData.SecurityPin=s}),c(),l(31,"small",22),g(32),m(33,"translate"),c(),_(34,NK,4,3,"div",14),c()(),l(35,"p-fieldset",8),m(36,"translate"),l
(37,"div",9)(38,"p-checkbox",23,24),C("ngModelChange",function(s){return
v(e),d().m_HostAddressData.AllowConnFromAll=s}),m(40,"translate"),c(),l(41,"small",22),k(42,"div",25),m(43,"translate"),c()()(),l(44,"p-fieldset",8),m(45,"translate"),l(46,"div",9)(47,"p-checkbox",26,27),C("ngModelChange",function(s){return
v(e),d().m_HostAddressData.ListenOnAllIps=s}),m(49,"translate"),c(),l(50,"small",28),g(51),m(52,"translate"),c()(),_(53,HK,28,26,"div",14),c(),l(54,"p-fieldset",8),m(55,"translate"),l(56,"div",9)(57,"div",9)(58,"label",29),g(59),m(60,"translate"),c(),l(61,"p-dropdown",30,31),C("ngModelChange",function(s){return
v(e),d().m_HostAddressData.BackendServerAddr=s}),c(),l(63,"small",32),g(64),m(65,"translate"),c()(),_(66,qK,3,0,"div",14),c()(),l(67,"p-fieldset",8),m(68,"translate"),l(69,"div",9)(70,"p-checkbox",33,34),C("ngModelChange",function(s){return
v(e),d().m_HostAddressData.IsMasterBackend=s})("onChange",function(){return
v(e),d().setMaster()}),m(72,"translate"),c(),l(73,"sm
all",35),g(74),m(75,"translate"),c(),_(76,GK,4,3,"div",14),c(),l(77,"div",9)(78,"label",36),g(79),m(80,"translate"),c(),l(81,"input",37,38),C("ngModelChange",function(s){return
v(e),d().m_HostAddressData.MasterServerName=s}),c(),l(83,"small",39),k(84,"div",25),m(85,"translate"),c(),_(86,UK,3,0,"div",14),c()()()}if(2&t){const
e=F(8),n=F(18),s=F(30),r=F(62),o=F(82),u=d();a(1),x("legend",f(2,44,"settings.hostaddress.panel.ports")),a(4),T("
",f(6,46,"settings.hostaddress.backendport_label"),"
"),a(2),p("ngModel",u.m_HostAddressData.BackendServerPort)("ngClass",U(88,uS,e.invalid)),a(3),T("
",f(11,48,"settings.hostaddress.backendport_desc"),"
"),a(2),p("ngIf",e.invalid&&(e.dirty||e.touched)),a(3),T("
",f(16,50,"settings.hostaddress.statusport_label"),"
"),a(2),p("ngModel",u.m_HostAddressData.BackendStatusPort)("ngClass",U(90,uS,n.invalid)),a(3),S(f(21,52,"settings.hostaddress.statusport_desc")),a(2),p("ngIf",n.invalid&&(n.dirty||n.touched)),a(1),x("legend",f(24,54,"settings.hostaddress.pa
nel.pin")),a(4),T("
",f(28,56,"settings.hostaddress.pin_label"),"
"),a(2),p("ngModel",u.m_HostAddressData.SecurityPin),a(3),T("
",f(33,58,"settings.hostaddress.pin_desc"),"
"),a(2),p("ngIf",s.invalid&&(s.dirty||s.touched)),a(1),x("legend",f(36,60,"settings.hostaddress.panel.allowconn")),a(3),x("label",f(40,62,"settings.hostaddress.allowconn_label")),p("ngModel",u.m_HostAddressData.AllowConnFromAll)("binary",!0),a(4),p("innerHTML",f(43,64,"settings.hostaddress.allowconn_desc"),Bt),a(2),x("legend",f(45,66,"settings.hostaddress.panel.iplisten")),a(3),x("label",f(49,68,"settings.hostaddress.listenall_label")),p("ngModel",u.m_HostAddressData.ListenOnAllIps)("binary",!0),a(4),T("
",f(52,70,"settings.hostaddress.listenall_desc"),"
"),a(2),p("ngIf",!u.m_HostAddressData.ListenOnAllIps),a(1),x("legend",f(55,72,"settings.hostaddress.panel.primaryadd")),a(5),T("
",f(60,74,"settings.hostaddress.primaryip_label"),"
"),a(2),p("options",u.m_IPsAll)("ngModel",u.m_HostAddressData.BackendServerAddr)("
editable",!0),a(3),T("
",f(65,76,"settings.hostaddress.primaryip_desc"),"
"),a(2),p("ngIf",r.invalid&&(r.dirty||r.touched)),a(1),x("legend",f(68,78,"settings.hostaddress.panel.masterbe")),a(3),x("label",f(72,80,"settings.hostaddress.ismaster_label")),p("ngModel",u.m_HostAddressData.IsMasterBackend)("binary",!0),a(4),T("
",f(75,82,"settings.hostaddress.ismaster_desc"),"
"),a(2),p("ngIf",u.m_showChangeHint),a(3),S(f(80,84,"settings.hostaddress.master_label")),a(2),p("ngModel",u.m_HostAddressData.MasterServerName),a(3),p("innerHTML",f(85,86,"settings.hostaddress.master_desc"),Bt),a(2),p("ngIf",o.invalid&&(o.dirty||o.touched))}}function
jK(t,i){1&t&&(k(0,"p-message",60),m(1,"translate")),2&t&&x("text",f(1,1,"common.savesuccess"))}function
$K(t,i){1&t&&(k(0,"p-message",61),m(1,"translate")),2&t&&x("text",f(1,1,"common.networkfail"))}function
WK(t,i){if(1&t){const
e=I();l(0,"div",55)(1,"div",56),_(2,jK,2,3,"p-message",57),_(3,$K,2,3,"p-message",58),c(),l(4,"p-button",59),C("onClick",funct
ion(){v(e);const s=d(),r=F(1);return
s.saveForm(),r.form.markAsPristine()}),m(5,"translate"),c()()}if(2&t){const
e=d(),n=F(1);a(2),p("ngIf",e.m_HostAddressData.successCount>0&&0==e.m_HostAddressData.errorCount&&!n.dirty),a(1),p("ngIf",e.m_HostAddressData.errorCount>0),a(1),x("label",f(5,4,"common.save")),p("disabled",!n.dirty||e.setupService.schedulingEnabled)}}let
KK=(()=>{class
t{constructor(e,n){this.setupService=e,this.configService=n,this.m_IsMasterBackend=!1,this.m_showChangeHint=!1,this.m_HostAddressData=this.setupService.getHostAddressData(),setTimeout(()=>n.GetIPAddresses("All").subscribe(s=>this.m_IPsAll=s.IPAddresses),500),n.GetIPAddresses("IPv4").subscribe(s=>this.m_IPsV4=s.IPAddresses),n.GetIPAddresses("IPv6").subscribe(s=>this.m_IPsV6=s.IPAddresses)}ngOnInit(){}ngAfterViewInit(){this.setupService.setCurrentForm(this.currentForm)}setMaster(){void
0===this.m_savedMaster&&(this.m_savedMaster=this.m_HostAddressData.MasterServerName),this.m_HostAddressData.IsMasterBackend?(
this.m_HostAddressData.MasterServerName=this.m_HostAddressData.thisHostName,this.m_showChangeHint=!1):this.m_HostAddressData.MasterServerName==this.m_savedMaster?this.m_showChangeHint=!0:this.m_HostAddressData.MasterServerName=this.m_savedMaster}saveForm(){console.log("save
form clicked"),this.setupService.saveHostAddressData(this.currentForm)}}return
t.\u0275fac=function(e){return
new(e||t)(D(Me),D(zo))},t.\u0275cmp=z({type:t,selectors:[["app-host-address"]],viewQuery:function(e,n){if(1&e&&W(LK,5),2&e){let
s;V(s=B())&&(n.currentForm=s.first)}},decls:7,vars:0,consts:[["name","hostaddress",1,"mx-0","md:mx-3"],["hostaddress","ngForm"],[1,"m-0","md:m-5"],["pTemplate","title"],["pTemplate","subtitle"],["pTemplate","content"],["pTemplate","footer"],[1,"grid"],[1,"mb-4","w-full",3,"legend"],[1,"form-group","field"],["for","backendserverport",1,"label","block"],["pInputText","","id","backendserverport","type","number","name","backendserverport","placeholder","Ex.
6543","required","","min",
"0","max","65536",1,"mb-2","form-control","w-10rem",3,"ngModel","ngClass","ngModelChange"],["backendserverport","ngModel"],["id","backendserverport-help",1,"block"],[4,"ngIf"],["for","backendstatusport",1,"label","block"],["pInputText","","id","backendstatusport","type","number","name","backendstatusport","placeholder","Ex.
6544","required","","min","0","max","65536",1,"mb-2","form-control","w-10rem",3,"ngModel","ngClass","ngModelChange"],["backendstatusport","ngModel"],["id","backendstatusport-help",1,"block"],["for","securitypin",1,"label","block"],["pInputText","","id","securitypin","type","text","name","securitypin","placeholder","Ex.
1234","required","",1,"mb-2","form-control","w-10rem",3,"ngModel","ngModelChange"],["securitypin","ngModel"],["id","securitypin-help",1,"block"],["inputId","AllowConnFromAll","name","AllowConnFromAll",1,"mb-2","w-full",3,"ngModel","binary","label","ngModelChange"],["AllowConnFromAll","ngModel"],[3,"innerHTML"],["inputId","ListenOnAllIps","name","Li
stenOnAllIps",1,"mb-2","w-full",3,"ngModel","binary","label","ngModelChange"],["ListenOnAllIps","ngModel"],["id","ListenOnAllIps-help",1,"block"],["for","BackendServerAddr",1,"label","block","w-full"],["name","BackendServerAddr","aria-describedby","BackendServerAddr-help",1,"block","mb-2","w-full",3,"options","ngModel","editable","ngModelChange"],["BackendServerAddr","ngModel"],["id","BackendServerAddr-help",1,"block","w-full"],["inputId","IsMasterBackend","name","IsMasterBackend",1,"mb-2","w-full",3,"ngModel","binary","label","ngModelChange","onChange"],["IsMasterBackend","ngModel"],["id","IsMasterBackend-help",1,"block"],["for","MasterServerName",1,"label","block"],["pInputText","","id","MasterServerName","type","text","name","MasterServerName","placeholder","Ex.
masterbe","disabled","disabled",1,"mb-2","form-control","w-15rem","read-only",3,"ngModel","ngModelChange"],["MasterServerName","ngModel"],["id","MasterServerName-help",1,"block"],[1,"p-error","block"],["for","BackendServe
rIP",1,"label","block"],["name","BackendServerIP","aria-describedby","BackendServerIP-help",1,"block","w-15rem","mb-2",3,"options","ngModel","ngModelChange"],["BackendServerIP","ngModel"],["id","BackendServerIP-help",1,"block"],["for","BackendServerIP6",1,"label","block"],["name","BackendServerIP6","aria-describedby","BackendServerIP6-help",1,"block","w-15rem","mb-2",3,"options","ngModel","ngModelChange"],["BackendServerIP6","ngModel"],["id","BackendServerIP6-help",1,"block"],["inputId","AllowLinkLocal","name","AllowLinkLocal",1,"mb-2","w-full",3,"ngModel","binary","label","ngModelChange"],["AllowLinkLocal","ngModel"],["id","AllowLinkLocal-help",1,"block"],["id","LocalServerIP-help",1,"p-error","block"],["id","IsMasterBackend-help",1,"p-error","block"],["id","MasterServerName-help",1,"p-error","block"],[1,"grid","nogutter"],[1,"col-12"],["severity","success",3,"text",4,"ngIf"],["severity","error",3,"text",4,"ngIf"],["icon","pi
pi-save","iconPos","left",1,"col","pr-1",3,"label","disa
bled","onClick"],["severity","success",3,"text"],["severity","error",3,"text"]],template:function(e,n){1&e&&(l(0,"form",0,1)(2,"p-card",2),_(3,OK,2,3,"ng-template",3),_(4,AK,2,3,"ng-template",4),_(5,zK,87,92,"ng-template",5),_(6,WK,6,6,"ng-template",6),c()())},directives:[ze,Ue,He,Ne,ne,Ui,Du,xu,Su,Ye,ll,Te,_e,Le,Q,sn,Ot,qe,ve],pipes:[ce],styles:["[_nghost-%COMP%]
.p-dropdown{width:18rem}.read-only[_ngcontent-%COMP%]{opacity:1;background-color:#e0e0e0;border-style:solid;height:2rem}"]}),t})();const
QK=["locale"];function
JK(t,i){1&t&&(g(0),m(1,"translate")),2&t&&T("
",f(1,1,"settings.locale.title")," ")}function
YK(t,i){1&t&&(g(0),m(1,"translate")),2&t&&T("
",f(1,1,"settings.locale.subtitle")," ")}function
ZK(t,i){if(1&t){const
e=I();l(0,"div",7)(1,"p-fieldset",8),m(2,"translate"),l(3,"div",9)(4,"label",10),g(5,"TV
Format"),c(),l(6,"p-dropdown",11),C("ngModelChange",function(s){return
v(e),d().TVFormat=s}),c(),l(7,"small",12),g(8),m(9,"translate"),c()(),l(10,"div",9)(11,"label",
13),g(12),m(13,"translate"),c(),l(14,"p-dropdown",14),C("ngModelChange",function(s){return
v(e),d().VbiFormat=s}),c(),l(15,"small",15),g(16),m(17,"translate"),c()()(),l(18,"p-fieldset",8),m(19,"translate"),l(20,"div",9)(21,"label",16),g(22),m(23,"translate"),c(),l(24,"p-dropdown",17),C("ngModelChange",function(s){return
v(e),d().FreqTable=s}),c(),l(25,"small",18),g(26),m(27,"translate"),c()()()()}if(2&t){const
e=d();a(1),x("legend",f(2,13,"settings.locale.tvformat_label")),a(5),p("options",e.m_TVFormats)("ngModel",e.TVFormat),a(2),T("
",f(9,15,"settings.locale.tvformat_desc"),"
"),a(4),S(f(13,17,"settings.locale.vbiformat_label")),a(2),p("options",e.m_vbiFormats)("ngModel",e.VbiFormat),a(2),T("
",f(17,19,"settings.locale.vbiformat_desc"),"
"),a(2),x("legend",f(19,21,"settings.locale.freqtable_label")),a(4),S(f(23,23,"settings.locale.channfreq_label")),a(2),p("options",e.m_FreqTables)("ngModel",e.FreqTable),a(2),T("
",f(27,25,"settings.locale.channfreq_desc")," ")}}function
XK(t,i){1
&t&&(k(0,"p-message",24),m(1,"translate")),2&t&&x("text",f(1,1,"common.savesuccess"))}function
eQ(t,i){1&t&&(k(0,"p-message",25),m(1,"translate")),2&t&&x("text",f(1,1,"common.networkfail"))}function
tQ(t,i){if(1&t){const
e=I();l(0,"div",19)(1,"div",20),_(2,XK,2,3,"p-message",21),_(3,eQ,2,3,"p-message",22),c(),l(4,"p-button",23),C("onClick",function(){v(e);const
s=d(),r=F(1);return
s.saveForm(),r.form.markAsPristine()}),m(5,"translate"),c()()}if(2&t){const
e=d(),n=F(1);a(2),p("ngIf",e.successCount>0&&0==e.errorCount&&!n.dirty),a(1),p("ngIf",e.errorCount>0),a(1),x("label",f(5,4,"common.save")),p("disabled",!n.dirty||e.setupService.schedulingEnabled)}}const
nQ=function(){return{width:"100%"}};let iQ=(()=>{class
t{constructor(e,n){this.setupService=e,this.mythService=n,this.successCount=0,this.errorCount=0,this.TVFormat="PAL",this.VbiFormat="None",this.FreqTable="us-bcast",this.LocaleObs={next:s=>{s.bool?this.successCount++:(this.errorCount++,this.currentForm&&this.currentForm.form.mark
AsDirty())},error:s=>{console.error(s),this.errorCount++,this.currentForm&&this.currentForm.form.markAsDirty()}},this.m_TVFormats=["NTSC","NTSC-JP","PAL","PAL-60","PAL-BG","PAL-DK","PAL-D","PAL-I","PAL-M","PAL-N","PAL-NC","SECAM","SECAM-D","DECAM-DK"],this.m_vbiFormats=["None","PAL
teletext","NTSC closed
caption"],this.m_FreqTables=["us-bcast","us-cable","us-cable-hrc","us-cable-irc","japan-bcast","japan-cable","europe-west","europe-east","italy","newzealand","australia","ireland","france","china-bcast","southafrica","argentina","australia-optus","singapore","malaysia","israel-hot-matav","try-all"],this.getLocaleData()}getLocaleData(){this.mythService.GetSetting({HostName:"_GLOBAL_",Key:"TVFormat"}).subscribe({next:e=>this.TVFormat=e.String,error:()=>this.errorCount++}),this.mythService.GetSetting({HostName:"_GLOBAL_",Key:"VbiFormat"}).subscribe({next:e=>this.VbiFormat=e.String,error:()=>this.errorCount++}),this.mythService.GetSetting({HostName:"_GLOBAL_",Key:"FreqTable"}).subscribe
({next:e=>this.FreqTable=e.String,error:()=>this.errorCount++})}ngOnInit(){}ngAfterViewInit(){this.setupService.setCurrentForm(this.currentForm)}saveForm(){this.successCount=0,this.errorCount=0,this.mythService.PutSetting({HostName:"_GLOBAL_",Key:"TVFormat",Value:this.TVFormat}).subscribe(this.LocaleObs),this.mythService.PutSetting({HostName:"_GLOBAL_",Key:"VbiFormat",Value:this.VbiFormat}).subscribe(this.LocaleObs),this.mythService.PutSetting({HostName:"_GLOBAL_",Key:"FreqTable",Value:this.FreqTable}).subscribe(this.LocaleObs)}}return
t.\u0275fac=function(e){return
new(e||t)(D(Me),D(qt))},t.\u0275cmp=z({type:t,selectors:[["app-locale"]],viewQuery:function(e,n){if(1&e&&W(QK,5),2&e){let
s;V(s=B())&&(n.currentForm=s.first)}},decls:7,vars:3,consts:[["name","locale",1,"ml-3","mr-3",3,"ngSubmit"],["locale","ngForm"],[1,"m-5"],["pTemplate","title"],["pTemplate","subtitle"],["pTemplate","TV
Formats"],["pTemplate","footer"],[1,"grid"],[1,"mb-4","w-full",3,"legend"],[1,"form-group","field"],
["for","tvformat",1,"label","block"],["name","tvformat","aria-describedby","tvformat-help",1,"w-full","mb-2",3,"options","ngModel","ngModelChange"],["id","tvformat-help",1,"block","mt-2"],["for","vbiformat",1,"label","block"],["name","vbiformat","aria-describedby","vbiformat-help",1,"mb-5","w-full",3,"options","ngModel","ngModelChange"],["id","vbiformat-help",1,"block","mt-2"],["for","freqtable",1,"label","block"],["name","freqtable",1,"mb-2","w-full",3,"options","ngModel","ngModelChange"],["id","freqtable-help",1,"block","pt-2"],[1,"grid","nogutter"],[1,"col-12"],["severity","success",3,"text",4,"ngIf"],["severity","error",3,"text",4,"ngIf"],["icon","pi
pi-save","iconPos","left",1,"col","pr-1",3,"label","disabled","onClick"],["severity","success",3,"text"],["severity","error",3,"text"]],template:function(e,n){1&e&&(l(0,"form",0,1),C("ngSubmit",function(){return
n.saveForm()}),l(2,"p-card",2),_(3,JK,2,3,"ng-template",3),_(4,YK,2,3,"ng-template",4),_(5,ZK,28,27,"ng-template",5),_(6,t
Q,6,6,"ng-template",6),c()()),2&e&&(a(2),q(A(2,nQ)))},directives:[ze,Ue,He,Ne,ne,Ui,Ot,Te,_e,Q,qe,ve],pipes:[ce],styles:["[_nghost-%COMP%]
.p-dropdown{width:18rem}"]}),t})();const sQ=["miscsettings"];function
rQ(t,i){1&t&&(g(0),m(1,"translate")),2&t&&T("
",f(1,1,"settings.misc.title")," ")}function
oQ(t,i){1&t&&(g(0),m(1,"translate")),2&t&&T("
",f(1,1,"settings.misc.subtitle")," ")}function
aQ(t,i){if(1&t){const
e=I();l(0,"div",7)(1,"p-fieldset",8),m(2,"translate"),l(3,"div",9)(4,"p-checkbox",10),C("ngModelChange",function(s){return
v(e),d().MasterBackendOverride=s}),m(5,"translate"),c(),l(6,"small",11),g(7),m(8,"translate"),c()(),l(9,"div",9)(10,"p-checkbox",12),C("ngModelChange",function(s){return
v(e),d().DeletesFollowLinks=s}),m(11,"translate"),c(),l(12,"small",11),g(13),m(14,"translate"),c()(),l(15,"div",9)(16,"p-checkbox",13),C("ngModelChange",function(s){return
v(e),d().TruncateDeletesSlowly=s}),m(17,"translate"),c(),l(18,"small",11),g(19),m(20,"translate"),c()(),l(21,"di
v",9)(22,"label",14),g(23),m(24,"translate"),c(),l(25,"p-inputNumber",15),C("ngModelChange",function(s){return
v(e),d().HDRingbufferSize=s}),c(),l(26,"small",11),g(27),m(28,"translate"),c()(),l(29,"div",9)(30,"label",16),g(31),m(32,"translate"),c(),l(33,"p-dropdown",17),C("ngModelChange",function(s){return
v(e),d().StorageScheduler=s}),c(),l(34,"small",11),g(35),m(36,"translate"),c()()(),l(37,"p-fieldset",8),m(38,"translate"),l(39,"div",9)(40,"label",18),g(41),m(42,"translate"),c(),l(43,"p-dropdown",19),C("ngModelChange",function(s){return
v(e),d().UPNPWmpSource=s}),c(),l(44,"small",11),g(45),m(46,"translate"),c()()(),l(47,"div",20)(48,"div",9)(49,"label",21),g(50),m(51,"translate"),c(),l(52,"input",22),C("ngModelChange",function(s){return
v(e),d().MiscStatusScript=s}),c(),l(53,"small",11),g(54),m(55,"translate"),l(56,"a",23),g(57,"Miscellaneous
Status
Information"),c()()(),l(58,"div",9)(59,"p-checkbox",24),C("ngModelChange",function(s){return
v(e),d().DisableAutomaticBackup=s}),m(6
0,"translate"),c(),l(61,"small",11),g(62),m(63,"translate"),c()(),l(64,"div",9)(65,"p-checkbox",25),C("ngModelChange",function(s){return
v(e),d().DisableFirewireReset=s}),m(66,"translate"),c(),l(67,"small",11),g(68),m(69,"translate"),c()()()()}if(2&t){const
e=d();a(1),x("legend",f(2,44,"settings.misc.panel_filemgmt")),p("toggleable",!0)("collapsed",!0),a(3),x("label",f(5,46,"settings.misc.mbo_label")),p("ngModel",e.MasterBackendOverride)("binary",!0),a(3),T("
",f(8,48,"settings.misc.mbo_desc"),"
"),a(3),x("label",f(11,50,"settings.misc.follow_label")),p("ngModel",e.DeletesFollowLinks)("binary",!0),a(3),T("
",f(14,52,"settings.misc.follow_desc"),"
"),a(3),x("label",f(17,54,"settings.misc.slowly_label")),p("ngModel",e.TruncateDeletesSlowly)("binary",!0),a(3),T("
",f(20,56,"settings.misc.slowly_desc"),"
"),a(4),S(f(24,58,"settings.misc.ringbuf_label")),a(2),p("ngModel",e.HDRingbufferSize)("showButtons",!0)("min",4700)("max",94e3)("step",4700),a(2),T("
",f(28,60,"settings.misc.ringbuf_d
esc"),"
"),a(4),S(f(32,62,"settings.misc.sg_label")),a(2),p("options",e.soptions)("ngModel",e.StorageScheduler),a(2),T("
",f(36,64,"settings.misc.sg_desc"),"
"),a(2),x("legend",f(38,66,"settings.misc.panel_upnp")),p("toggleable",!0)("collapsed",!0),a(4),S(f(42,68,"settings.misc.upnp_label")),a(2),p("options",e.uoptions)("ngModel",e.UPNPWmpSource),a(2),T("
",f(46,70,"settings.misc.upnp_desc"),"
"),a(5),S(f(51,72,"settings.misc.statapp_label")),a(2),p("ngModel",e.MiscStatusScript),a(2),T("
",f(55,74,"settings.misc.statapp_desc"),"
"),a(5),x("label",f(60,76,"settings.misc.disback_label")),p("ngModel",e.DisableAutomaticBackup)("binary",!0),a(3),T("
",f(63,78,"settings.misc.disback_desc"),"
"),a(3),x("label",f(66,80,"settings.misc.disfwr_label")),p("ngModel",e.DisableFirewireReset)("binary",!0),a(3),T("
",f(69,82,"settings.misc.disfwr_desc")," ")}}function
lQ(t,i){1&t&&(k(0,"p-message",31),m(1,"translate")),2&t&&x("text",f(1,1,"common.savesuccess"))}function
cQ(t,i){1&t&&(k(0,"p-message"
,32),m(1,"translate")),2&t&&x("text",f(1,1,"common.networkfail"))}function
uQ(t,i){if(1&t){const
e=I();l(0,"div",26)(1,"div",27),_(2,lQ,2,3,"p-message",28),_(3,cQ,2,3,"p-message",29),c(),l(4,"p-button",30),C("onClick",function(){v(e);const
s=d(),r=F(1);return
s.saveForm(),r.form.markAsPristine()}),m(5,"translate"),c()()}if(2&t){const
e=d(),n=F(1);a(2),p("ngIf",e.successCount>0&&0==e.errorCount&&!n.dirty),a(1),p("ngIf",e.errorCount>0&&!n.dirty),a(1),x("label",f(5,4,"common.save")),p("disabled",!n.dirty||e.setupService.schedulingEnabled)}}let
dQ=(()=>{class
t{constructor(e,n,s){this.setupService=e,this.translate=n,this.mythService=s,this.successCount=0,this.errorCount=0,this.MasterBackendOverride=!1,this.DeletesFollowLinks=!1,this.TruncateDeletesSlowly=!1,this.HDRingbufferSize=9400,this.StorageScheduler="BalancedFreeSpace",this.UPNPWmpSource="0",this.MiscStatusScript="",this.DisableAutomaticBackup=!1,this.DisableFirewireReset=!1,this.hostName="",this.soptions=[{name:"settings.misc.sg_
balfree",code:"BalancedFreeSpace"},{name:"settings.misc.sg_balpercent",code:"BalancedPercFreeSpace"},{name:"settings.misc.bal_io",code:"BalancedDiskIO"},{name:"settings.misc.sg_combination",code:"Combination"}],this.uoptions=[{name:"settings.misc.upnp_recs",code:"0"},{name:"settings.misc.upnp_videos",code:"1"}],this.miscObserver={next:r=>{r.bool?this.successCount++:(this.errorCount++,this.currentForm&&this.currentForm.form.markAsDirty())},error:r=>{console.error(r),this.errorCount++,this.currentForm&&this.currentForm.form.markAsDirty()}},n.get(this.soptions[0].name).subscribe(r=>this.soptions[0].name=r),n.get(this.soptions[1].name).subscribe(r=>this.soptions[1].name=r),n.get(this.soptions[2].name).subscribe(r=>this.soptions[2].name=r),n.get(this.soptions[3].name).subscribe(r=>this.soptions[3].name=r),n.get(this.uoptions[0].name).subscribe(r=>this.uoptions[0].name=r),n.get(this.uoptions[1].name).subscribe(r=>this.uoptions[1].name=r),this.mythService.GetHostName().subscribe({next:r=>{
this.hostName=r.String,this.getMiscellaneousData()},error:()=>this.errorCount++})}getMiscellaneousData(){this.mythService.GetSetting({HostName:"_GLOBAL_",Key:"MasterBackendOverride",Default:"0"}).subscribe({next:e=>this.MasterBackendOverride="1"==e.String,error:()=>this.errorCount++}),this.mythService.GetSetting({HostName:"_GLOBAL_",Key:"DeletesFollowLinks",Default:"0"}).subscribe({next:e=>this.DeletesFollowLinks="1"==e.String,error:()=>this.errorCount++}),this.mythService.GetSetting({HostName:this.hostName,Key:"TruncateDeletesSlowly",Default:"0"}).subscribe({next:e=>this.TruncateDeletesSlowly="1"==e.String,error:()=>this.errorCount++}),this.mythService.GetSetting({HostName:"_GLOBAL_",Key:"HDRingbufferSize",Default:"9400"}).subscribe({next:e=>this.HDRingbufferSize=Number(e.String),error:()=>this.errorCount++}),this.mythService.GetSetting({HostName:"_GLOBAL_",Key:"StorageScheduler",Default:"BalancedFreeSpace"}).subscribe({next:e=>this.StorageScheduler=e.String,error:()=>this.errorCou
nt++}),this.mythService.GetSetting({HostName:"_GLOBAL_",Key:"UPNPWmpSource",Default:"0"}).subscribe({next:e=>this.UPNPWmpSource=e.String,error:()=>this.errorCount++}),this.mythService.GetSetting({HostName:this.hostName,Key:"MiscStatusScript",Default:""}).subscribe({next:e=>this.MiscStatusScript=e.String,error:()=>this.errorCount++}),this.mythService.GetSetting({HostName:"_GLOBAL_",Key:"DisableAutomaticBackup",Default:"0"}).subscribe({next:e=>this.DisableAutomaticBackup="1"==e.String,error:()=>this.errorCount++}),this.mythService.GetSetting({HostName:this.hostName,Key:"DisableFirewireReset",Default:"0"}).subscribe({next:e=>this.DisableFirewireReset="1"==e.String,error:()=>this.errorCount++})}ngOnInit(){}ngAfterViewInit(){this.setupService.setCurrentForm(this.currentForm)}saveForm(){this.successCount=0,this.errorCount=0,this.mythService.PutSetting({HostName:"_GLOBAL_",Key:"MasterBackendOverride",Value:this.MasterBackendOverride?"1":"0"}).subscribe(this.miscObserver),this.mythService.P
utSetting({HostName:"_GLOBAL_",Key:"DeletesFollowLinks",Value:this.DeletesFollowLinks?"1":"0"}).subscribe(this.miscObserver),this.mythService.PutSetting({HostName:this.hostName,Key:"TruncateDeletesSlowly",Value:this.TruncateDeletesSlowly?"1":"0"}).subscribe(this.miscObserver),this.mythService.PutSetting({HostName:"_GLOBAL_",Key:"HDRingbufferSize",Value:String(this.HDRingbufferSize)}).subscribe(this.miscObserver),this.mythService.PutSetting({HostName:"_GLOBAL_",Key:"StorageScheduler",Value:this.StorageScheduler}).subscribe(this.miscObserver),this.mythService.PutSetting({HostName:"_GLOBAL_",Key:"UPNPWmpSource",Value:this.UPNPWmpSource}).subscribe(this.miscObserver),this.mythService.PutSetting({HostName:this.hostName,Key:"MiscStatusScript",Value:this.MiscStatusScript}).subscribe(this.miscObserver),this.mythService.PutSetting({HostName:"_GLOBAL_",Key:"DisableAutomaticBackup",Value:this.DisableAutomaticBackup?"1":"0"}).subscribe(this.miscObserver),this.mythService.PutSetting({HostName:th
is.hostName,Key:"DisableFirewireReset",Value:this.DisableFirewireReset?"1":"0"}).subscribe(this.miscObserver)}}return
t.\u0275fac=function(e){return
new(e||t)(D(Me),D(Oe),D(qt))},t.\u0275cmp=z({type:t,selectors:[["app-misc-settings"]],viewQuery:function(e,n){if(1&e&&W(sQ,5),2&e){let
s;V(s=B())&&(n.currentForm=s.first)}},decls:7,vars:0,consts:[["name","miscsettings",1,"ml-3","mr-3"],["miscsettings","ngForm"],[1,"m-5"],["pTemplate","title"],["pTemplate","subtitle"],["pTemplate","content"],["pTemplate","footer"],[1,"grid"],[1,"mb-4","w-full",3,"legend","toggleable","collapsed"],[1,"form-group","field"],["name","MasterBackendOverride",1,"mb-2","w-full","label",3,"ngModel","binary","label","ngModelChange"],[1,"block"],["name","DeletesFollowLinks",1,"mb-2","w-full","label",3,"ngModel","binary","label","ngModelChange"],["name","TruncateDeletesSlowly",1,"mb-2","w-full","label",3,"ngModel","binary","label","ngModelChange"],["for","HDRingbufferSize",1,"label","block"],["name","HDRingbufferSiz
e","id","HDRingbufferSize",3,"ngModel"...
t",4,"ngIf"],["severity","error",3,"text",4,"ngIf"],["icon","pi
pi-save","iconPos","left",1,"col","pr-1",3,"label","disabled","onClick"],["severity","success",3,"text"],["severity","error",3,"text"]],template:function(e,n){1&e&&(l(0,"form",0,1)(2,"p-card",2),_(3,rQ,2,3,"ng-template",3),_(4,oQ,2,3,"ng-template",4),_(5,aQ,70,84,"ng-template",5),_(6,uQ,6,6,"ng-template",6),c()())},directives:[ze,Ue,He,Ne,ne,Ui,sn,Te,_e,pt,Ot,Ye,Q,qe,ve],pipes:[ce],styles:["a[_ngcontent-%COMP%]:link,
a[_ngcontent-%COMP%]:visited,
a[_ngcontent-%COMP%]:active{background-color:#fff}"]}),t})();const
pQ=["eitscanopt"];function
hQ(t,i){1&t&&(g(0),m(1,"translate")),2&t&&T("
",f(1,1,"settings.eit.title")," ")}function
mQ(t,i){1&t&&(g(0),m(1,"translate")),2&t&&T("
",f(1,1,"settings.eit.subtitle")," ")}function
fQ(t,i){if(1&t){const
e=I();l(0,"div",7)(1,"div",8)(2,"div",9)(3,"label",10),g(4),m(5,"translate"),c(),l(6,"p-inputNumber",11),C("ngModelChange",function(s){return
v(e),d().EITTransportTimeout=s}),c(),l(7,
"small",12),g(8),m(9,"translate"),c()(),l(10,"div",9)(11,"label",13),g(12),m(13,"translate"),c(),l(14,"p-inputNumber",14),C("ngModelChange",function(s){return
v(e),d().EITCrawIdleStart=s}),c(),l(15,"small",12),g(16),m(17,"translate"),c()(),l(18,"div",9)(19,"label",15),g(20),m(21,"translate"),c(),l(22,"p-inputNumber",16),C("ngModelChange",function(s){return
v(e),d().EITScanPeriod=s}),c(),l(23,"small",12),g(24),m(25,"translate"),c()()()()}if(2&t){const
e=d();a(4),S(f(5,21,"settings.eit.timeout_label")),a(2),p("ngModel",e.EITTransportTimeout)("showButtons",!0)("min",1)("max",15)("step",1),a(2),T("
",f(9,23,"settings.eit.timeout_desc"),"
"),a(4),S(f(13,25,"settings.eit.crawl_label")),a(2),p("ngModel",e.EITCrawIdleStart)("showButtons",!0)("min",30)("max",7200)("step",30),a(2),T("
",f(17,27,"settings.eit.crawl_desc"),"
"),a(4),S(f(21,29,"settings.eit.scan_label")),a(2),p("ngModel",e.EITScanPeriod)("showButtons",!0)("min",5)("max",60)("step",5),a(2),T("
",f(25,31,"settings.eit.scan_desc"),
" ")}}function
gQ(t,i){1&t&&(k(0,"p-message",22),m(1,"translate")),2&t&&x("text",f(1,1,"common.savesuccess"))}function
_Q(t,i){1&t&&(k(0,"p-message",23),m(1,"translate")),2&t&&x("text",f(1,1,"common.networkfail"))}function
bQ(t,i){if(1&t){const
e=I();l(0,"div",17)(1,"div",18),_(2,gQ,2,3,"p-message",19),_(3,_Q,2,3,"p-message",20),c(),l(4,"p-button",21),C("onClick",function(){v(e);const
s=d(),r=F(1);return
s.saveForm(),r.form.markAsPristine()}),m(5,"translate"),c()()}if(2&t){const
e=d(),n=F(1);a(2),p("ngIf",e.successCount>0&&0==e.errorCount&&!n.dirty),a(1),p("ngIf",e.errorCount>0),a(1),x("label",f(5,4,"common.save")),p("disabled",!n.dirty||e.setupService.schedulingEnabled)}}let
vQ=(()=>{class
t{constructor(e,n){this.setupService=e,this.mythService=n,this.successCount=0,this.errorCount=0,this.EITTransportTimeout=5,this.EITCrawIdleStart=60,this.EITScanPeriod=15,this.eitObserver={next:s=>{s.bool?this.successCount++:(this.errorCount++,this.currentForm&&this.currentForm.form.markAsDirty())
},error:s=>{console.error(s),this.errorCount++,this.currentForm&&this.currentForm.form.markAsDirty()}},this.getEITScanner()}ngOnInit(){}ngAfterViewInit(){this.setupService.setCurrentForm(this.currentForm)}getEITScanner(){this.mythService.GetSetting({HostName:"_GLOBAL_",Key:"EITTransportTimeout",Default:"5"}).subscribe({next:e=>this.EITTransportTimeout=Number(e.String),error:()=>this.errorCount++}),this.mythService.GetSetting({HostName:"_GLOBAL_",Key:"EITCrawIdleStart",Default:"60"}).subscribe({next:e=>this.EITCrawIdleStart=Number(e.String),error:()=>this.errorCount++}),this.mythService.GetSetting({HostName:"_GLOBAL_",Key:"EITScanPeriod",Default:"15"}).subscribe({next:e=>this.EITScanPeriod=Number(e.String),error:()=>this.errorCount++})}saveForm(){this.successCount=0,this.errorCount=0,this.mythService.PutSetting({HostName:"_GLOBAL_",Key:"EITTransportTimeout",Value:String(this.EITTransportTimeout)}).subscribe(this.eitObserver),this.mythService.PutSetting({HostName:"_GLOBAL_",Key:"EITCr
awIdleStart",Value:String(this.EITCrawIdleStart)}).subscribe(this.eitObserver),this.mythService.PutSetting({HostName:"_GLOBAL_",Key:"EITScanPeriod",Value:String(this.EITScanPeriod)}).subscribe(this.eitObserver)}}return
t.\u0275fac=function(e){return
new(e||t)(D(Me),D(qt))},t.\u0275cmp=z({type:t,selectors:[["app-eit-scanner"]],viewQuery:function(e,n){if(1&e&&W(pQ,5),2&e){let
s;V(s=B())&&(n.currentForm=s.first)}},decls:7,vars:0,consts:[["name","eitscanopt",1,"ml-3","mr-3"],["eitscanopt","ngForm"],[1,"m-5"],["pTemplate","title"],["pTemplate","subtitle"],["pTemplate","content"],["pTemplate","footer"],[1,"grid"],[1,"mb-4","w-full"],[1,"form-group","field"],["for","EITTransportTimeout",1,"label","block"],["name","EITTransportTimeout","id","EITTransportTimeout",3,"ngModel","showButtons","min","max","step","ngModelChange"],[1,"block"],["for","EITCrawIdleStart",1,"label","block"],["name","EITCrawIdleStart","id","EITCrawIdleStart",3,"ngModel","showButtons","min","max","step","ngModelChange"],
["for","EITScanPeriod",1,"label","block"],["name","EITScanPeriod","id","EITScanPeriod",3,"ngModel","showButtons","min","max","step","ngModelChange"],[1,"grid","nogutter"],[1,"col-12"],["severity","success",3,"text",4,"ngIf"],["severity","error",3,"text",4,"ngIf"],["icon","pi
pi-save","iconPos","left",1,"col","pr-1",3,"label","disabled","onClick"],["severity","success",3,"text"],["severity","error",3,"text"]],template:function(e,n){1&e&&(l(0,"form",0,1)(2,"p-card",2),_(3,hQ,2,3,"ng-template",3),_(4,mQ,2,3,"ng-template",4),_(5,fQ,26,33,"ng-template",5),_(6,bQ,6,6,"ng-template",6),c()())},directives:[ze,Ue,He,Ne,ne,pt,Te,_e,Q,qe,ve],pipes:[ce],styles:[""]}),t})();const
CQ=["shutwakeopt"];function
yQ(t,i){1&t&&(g(0),m(1,"translate")),2&t&&T("
",f(1,1,"settings.shutwake.title")," ")}function
wQ(t,i){1&t&&(g(0),m(1,"translate")),2&t&&T("
",f(1,1,"settings.shutwake.subtitle")," ")}function
TQ(t,i){if(1&t){const
e=I();l(0,"div",7)(1,"div",8)(2,"div",9)(3,"label",10),g(4),m(5,"translate"),c(
),l(6,"input",11),C("ngModelChange",function(s){return
v(e),d().startupCommand=s}),c(),l(7,"small",12),g(8),m(9,"translate"),c()(),l(10,"div",9)(11,"p-checkbox",13),C("ngModelChange",function(s){return
v(e),d().blockSDWUwithoutClient=s}),m(12,"translate"),c(),l(13,"small",12),g(14),m(15,"translate"),c()(),l(16,"div",9)(17,"label",14),g(18),m(19,"translate"),c(),l(20,"p-inputNumber",15),C("ngModelChange",function(s){return
v(e),d().idleTimeoutSecs=s}),c(),l(21,"small",12),g(22),m(23,"translate"),c()(),l(24,"div",9)(25,"label",16),g(26),m(27,"translate"),c(),l(28,"p-inputNumber",17),C("ngModelChange",function(s){return
v(e),d().idleWaitForRecordingTime=s}),c(),l(29,"small",12),g(30),m(31,"translate"),c()(),l(32,"div",9)(33,"label",18),g(34),m(35,"translate"),c(),l(36,"p-inputNumber",19),C("ngModelChange",function(s){return
v(e),d().StartupSecsBeforeRecording=s}),c(),l(37,"small",12),g(38),m(39,"translate"),c()(),l(40,"div",9)(41,"label",20),g(42),m(43,"translate"),c(),l(44,"input",21)
,C("ngModelChange",function(s){return
v(e),d().WakeupTimeFormat=s}),c(),l(45,"small",12),g(46),m(47,"translate"),c()(),l(48,"div",9)(49,"label",22),g(50),m(51,"translate"),c(),l(52,"input",23),C("ngModelChange",function(s){return
v(e),d().SetWakeuptimeCommand=s}),c(),l(53,"small",12),g(54),m(55,"translate"),c()(),l(56,"div",9)(57,"label",24),g(58),m(59,"translate"),c(),l(60,"input",25),C("ngModelChange",function(s){return
v(e),d().ServerHaltCommand=s}),c(),l(61,"small",12),g(62),m(63,"translate"),c()(),l(64,"div",9)(65,"label",26),g(66),m(67,"translate"),c(),l(68,"input",27),C("ngModelChange",function(s){return
v(e),d().preSDWUCheckCommand=s}),c(),l(69,"small",12),g(70),m(71,"translate"),c()()()()}if(2&t){const
e=d();a(4),S(f(5,40,"settings.shutwake.startcmd_label")),a(2),p("ngModel",e.startupCommand),a(2),T("
",f(9,42,"settings.shutwake.startcmd_desc"),"
"),a(3),x("label",f(12,44,"settings.shutwake.block_label")),p("ngModel",e.blockSDWUwithoutClient)("binary",!0),a(3),T("
",f(15,46
,"settings.shutwake.block_desc"),"
"),a(4),T("",f(19,48,"settings.shutwake.idletime_label"),"}"),a(2),p("ngModel",e.idleTimeoutSecs)("showButtons",!0)("min",0)("max",1200)("step",5),a(2),T("
",f(23,50,"settings.shutwake.idletime_desc"),"
"),a(4),S(f(27,52,"settings.shutwake.maxwait_label")),a(2),p("ngModel",e.idleWaitForRecordingTime)("showButtons",!0)("min",0)("max",300)("step",1),a(2),T("
",f(31,54,"settings.shutwake.maxwait_desc"),"
"),a(4),S(f(35,56,"settings.shutwake.startbefore_label")),a(2),p("ngModel",e.StartupSecsBeforeRecording)("showButtons",!0)("min",0)("max",300)("step",1),a(2),T("
",f(39,58,"settings.shutwake.startbefore_desc"),"
"),a(4),S(f(43,60,"settings.shutwake.timeformat_label")),a(2),p("ngModel",e.WakeupTimeFormat),a(2),T("
",f(47,62,"settings.shutwake.timeformat_desc"),"
"),a(4),S(f(51,64,"settings.shutwake.timecmd_label")),a(2),p("ngModel",e.SetWakeuptimeCommand),a(2),T("
",f(55,66,"settings.shutwake.timecmd_desc"),"
"),a(4),S(f(59,68,"settings.shutwake.server
halt_label")),a(2),p("ngModel",e.ServerHaltCommand),a(2),T("
",f(63,70,"settings.shutwake.serverhalt_desc"),"
"),a(4),S(f(67,72,"settings.shutwake.preshut_label")),a(2),p("ngModel",e.preSDWUCheckCommand),a(2),T("
",f(71,74,"settings.shutwake.preshut_desc")," ")}}function
SQ(t,i){1&t&&(k(0,"p-message",33),m(1,"translate")),2&t&&x("text",f(1,1,"common.savesuccess"))}function
xQ(t,i){1&t&&(k(0,"p-message",34),m(1,"translate")),2&t&&x("text",f(1,1,"common.networkfail"))}function
DQ(t,i){if(1&t){const
e=I();l(0,"div",28)(1,"div",29),_(2,SQ,2,3,"p-message",30),_(3,xQ,2,3,"p-message",31),c(),l(4,"p-button",32),C("onClick",function(){v(e);const
s=d(),r=F(1);return
s.saveForm(),r.form.markAsPristine()}),m(5,"translate"),c()()}if(2&t){const
e=d(),n=F(1);a(2),p("ngIf",e.successCount>0&&0==e.errorCount&&!n.dirty),a(1),p("ngIf",e.errorCount>0),a(1),x("label",f(5,4,"common.save")),p("disabled",!n.dirty||e.setupService.schedulingEnabled)}}let
MQ=(()=>{class t{constructor(e,n){this.setupService=e,t
his.mythService=n,this.successCount=0,this.errorCount=0,this.startupCommand="",this.blockSDWUwithoutClient=!0,this.idleTimeoutSecs=0,this.idleWaitForRecordingTime=15,this.StartupSecsBeforeRecording=120,this.WakeupTimeFormat="hh
=mm
yyyy-MM-dd",this.SetWakeuptimeCommand="",this.ServerHaltCommand="sudo
/sbin/halt
-p",this.preSDWUCheckCommand="",this.swObserver={next:s=>{s.bool?this.successCount++:(this.errorCount++,this.currentForm&&this.currentForm.form.markAsDirty())},error:s=>{console.error(s),this.errorCount++,this.currentForm&&this.currentForm.form.markAsDirty()}},this.getShutWake()}ngOnInit(){}ngAfterViewInit(){this.setupService.setCurrentForm(this.currentForm)}getShutWake(){this.mythService.GetSetting({HostName:"_GLOBAL_",Key:"startupCommand",Default:""}).subscribe({next:e=>this.startupCommand=e.String,error:()=>this.errorCount++}),this.mythService.GetSetting({HostName:"_GLOBAL_",Key:"blockSDWUwithoutClient",Default:"1"}).subscribe({next:e=>this.blockSDWUwithoutClient="1"==e.St
ring,error:()=>this.errorCount++}),this.mythService.GetSetting({HostName:"_GLOBAL_",Key:"idleTimeoutSecs",Default:"0"}).subscribe({next:e=>this.idleTimeoutSecs=Number(e.String),error:()=>this.errorCount++}),this.mythService.GetSetting({HostName:"_GLOBAL_",Key:"idleWaitForRecordingTime",Default:""}).subscribe({next:e=>this.idleWaitForRecordingTime=Number(e.String),error:()=>this.errorCount++}),this.mythService.GetSetting({HostName:"_GLOBAL_",Key:"StartupSecsBeforeRecording",Default:"120"}).subscribe({next:e=>this.StartupSecsBeforeRecording=Number(e.String),error:()=>this.errorCount++}),this.mythService.GetSetting({HostName:"_GLOBAL_",Key:"WakeupTimeFormat",Default:"hh:mm
yyyy-MM-dd"}).subscribe({next:e=>this.WakeupTimeFormat=e.String,error:()=>this.errorCount++}),this.mythService.GetSetting({HostName:"_GLOBAL_",Key:"SetWakeuptimeCommand",Default:""}).subscribe({next:e=>this.SetWakeuptimeCommand=e.String,error:()=>this.errorCount++}),this.mythService.GetSetting({HostName:"_GLOBAL_",Ke
y:"ServerHaltCommand",Default:"sudo /sbin/halt
-p"}).subscribe({next:e=>this.ServerHaltCommand=e.String,error:()=>this.errorCount++}),this.mythService.GetSetting({HostName:"_GLOBAL_",Key:"preSDWUCheckCommand",Default:""}).subscribe({next:e=>this.preSDWUCheckCommand=e.String,error:()=>this.errorCount++})}saveForm(){this.successCount=0,this.errorCount=0,this.mythService.PutSetting({HostName:"_GLOBAL_",Key:"startupCommand",Value:this.startupCommand}).subscribe(this.swObserver),this.mythService.PutSetting({HostName:"_GLOBAL_",Key:"blockSDWUwithoutClient",Value:this.blockSDWUwithoutClient?"1":"0"}).subscribe(this.swObserver),this.mythService.PutSetting({HostName:"_GLOBAL_",Key:"idleTimeoutSecs",Value:String(this.idleTimeoutSecs)}).subscribe(this.swObserver),this.mythService.PutSetting({HostName:"_GLOBAL_",Key:"idleWaitForRecordingTime",Value:String(this.idleWaitForRecordingTime)}).subscribe(this.swObserver),this.mythService.PutSetting({HostName:"_GLOBAL_",Key:"StartupSecsBeforeRecording"
,Value:String(this.StartupSecsBeforeRecording)}).subscribe(this.swObserver),this.mythService.PutSetting({HostName:"_GLOBAL_",Key:"WakeupTimeFormat",Value:this.WakeupTimeFormat}).subscribe(this.swObserver),this.mythService.PutSetting({HostName:"_GLOBAL_",Key:"SetWakeuptimeCommand",Value:this.SetWakeuptimeCommand}).subscribe(this.swObserver),this.mythService.PutSetting({HostName:"_GLOBAL_",Key:"ServerHaltCommand",Value:this.ServerHaltCommand}).subscribe(this.swObserver),this.mythService.PutSetting({HostName:"_GLOBAL_",Key:"preSDWUCheckCommand",Value:this.preSDWUCheckCommand}).subscribe(this.swObserver)}}return
t.\u0275fac=function(e){return
new(e||t)(D(Me),D(qt))},t.\u0275cmp=z({type:t,selectors:[["app-shutdown-wakeup"]],viewQuery:function(e,n){if(1&e&&W(CQ,5),2&e){let
s;V(s=B())&&(n.currentForm=s.first)}},decls:7,vars:0,consts:[["name","shutwakeopt",1,"ml-3","mr-3"],["shutwakeopt","ngForm"],[1,"m-5"],["pTemplate","title"],["pTemplate","subtitle"],["pTemplate","content"],["pTemplate",
"footer"],[1,"grid"],[1,"mb-4","w-full"],[1,"form-group","field"],["for","startupCommand",1,"label","block"],["pInputText","","id","startupCommand","name","startupCommand",1,"mb-2","form-control","w-full",3,"ngModel","ngModelChange"],[1,"block"],["inputId","blockSDWUwithoutClient","name","blockSDWUwithoutClient",1,"mb-2","w-full","label",3,"ngModel","binary","label","ngModelChange"],["for","idleTimeoutSecs",1,"label","block"],["name","idleTimeoutSecs","id","idleTimeoutSecs",3,"ngModel","showButtons","min","max","step","ngModelChange"],["for","idleWaitForRecordingTime",1,"label","block"],["name","idleWaitForRecordingTime","id","idleWaitForRecordingTime",3,"ngModel","showButtons","min","max","step","ngModelChange"],["for","StartupSecsBeforeRecording",1,"label","block"],["name","StartupSecsBeforeRecording","id","StartupSecsBeforeRecording",3,"ngModel","showButtons","min","max","step","ngModelChange"],["for","WakeupTimeFormat",1,"label","block"],["pInputText","","id","WakeupTimeFormat",
"name","WakeupTimeFormat",1,"mb-2","form-control","w-full",3,"ngModel","ngModelChange"],["for","SetWakeuptimeCommand",1,"label","block"],["pInputText","","id","SetWakeuptimeCommand","name","SetWakeuptimeCommand",1,"mb-2","form-control","w-full",3,"ngModel","ngModelChange"],["for","ServerHaltCommand",1,"label","block"],["pInputText","","id","ServerHaltCommand","name","ServerHaltCommand",1,"mb-2","form-control","w-full",3,"ngModel","ngModelChange"],["for","preSDWUCheckCommand",1,"label","block"],["pInputText","","id","preSDWUCheckCommand","name","preSDWUCheckCommand",1,"mb-2","form-control","w-full",3,"ngModel","ngModelChange"],[1,"grid","nogutter"],[1,"col-12"],["severity","success",3,"text",4,"ngIf"],["severity","error",3,"text",4,"ngIf"],["icon","pi
pi-save","iconPos","left",1,"col","pr-1",3,"label","disabled","onClick"],["severity","success",3,"text"],["severity","error",3,"text"]],template:function(e,n){1&e&&(l(0,"form",0,1)(2,"p-card",2),_(3,yQ,2,3,"ng-template",3),_(4,wQ,2,3,"n
g-template",4),_(5,TQ,72,76,"ng-template",5),_(6,DQ,6,6,"ng-template",6),c()())},directives:[ze,Ue,He,Ne,ne,Ye,Te,_e,sn,pt,Q,qe,ve],pipes:[ce],styles:[""]}),t})();const
kQ=["backendwakeup"];function
IQ(t,i){1&t&&(g(0),m(1,"translate")),2&t&&T("
",f(1,1,"settings.backendwake.title")," ")}function
EQ(t,i){1&t&&(g(0),m(1,"translate")),2&t&&T("
",f(1,1,"settings.backendwake.subtitle")," ")}function
RQ(t,i){if(1&t){const
e=I();l(0,"div",7)(1,"p-fieldset",8),m(2,"translate"),l(3,"div",9)(4,"label",10),g(5),m(6,"translate"),c(),l(7,"p-inputNumber",11),C("ngModelChange",function(s){return
v(e),d().WOLbackendReconnectWaitTime=s}),c(),l(8,"small",12),g(9),m(10,"translate"),c()(),l(11,"div",9)(12,"label",13),g(13),m(14,"translate"),c(),l(15,"p-inputNumber",14),C("ngModelChange",function(s){return
v(e),d().WOLbackendConnectRetry=s}),c(),l(16,"small",12),g(17),m(18,"translate"),c()(),l(19,"div",9)(20,"label",15),g(21),m(22,"translate"),c(),l(23,"input",16),C("ngModelChange",function(s){return
v(
e),d().WOLbackendCommand=s}),c(),l(24,"small",12),g(25),m(26,"translate"),c()()(),l(27,"p-fieldset",8),m(28,"translate"),l(29,"div",9)(30,"label",17),g(31),m(32,"translate"),c(),l(33,"input",18),C("ngModelChange",function(s){return
v(e),d().SleepCommand=s}),c(),l(34,"small",12),g(35),m(36,"translate"),c()(),l(37,"div",9)(38,"label",19),g(39),m(40,"translate"),c(),l(41,"input",20),C("ngModelChange",function(s){return
v(e),d().WakeUpCommand=s}),c(),l(42,"small",12),g(43),m(44,"translate"),c()()()()}if(2&t){const
e=d();a(1),x("legend",f(2,29,"settings.backendwake.master.title")),p("toggleable",!0)("collapsed",!0),a(4),S(f(6,31,"settings.backendwake.master.delay_label")),a(2),p("ngModel",e.WOLbackendReconnectWaitTime)("showButtons",!0)("min",0)("max",1200)("step",5),a(2),T("
",f(10,33,"settings.backendwake.master.delay_desc"),"
"),a(4),S(f(14,35,"settings.backendwake.master.attempts_label")),a(2),p("ngModel",e.WOLbackendConnectRetry)("showButtons",!0)("min",1)("max",60)("step",1),a(2),T
(" ",f(18,37,"settings.backendwake.master.attempts_desc"),"
"),a(4),S(f(22,39,"settings.backendwake.master.cmd_label")),a(2),p("ngModel",e.WOLbackendCommand),a(2),T("
",f(26,41,"settings.backendwake.master.cmd_desc"),"
"),a(2),x("legend",f(28,43,"settings.backendwake.slave.title")),p("toggleable",!0)("collapsed",!0),a(4),S(f(32,45,"settings.backendwake.slave.sleep_label")),a(2),p("ngModel",e.SleepCommand),a(2),T("
",f(36,47,"settings.backendwake.slave.sleep_desc"),"
"),a(4),S(f(40,49,"settings.backendwake.slave.wake_label")),a(2),p("ngModel",e.WakeUpCommand),a(2),T("
",f(44,51,"settings.backendwake.slave.wake_desc")," ")}}function
LQ(t,i){1&t&&(k(0,"p-message",26),m(1,"translate")),2&t&&x("text",f(1,1,"common.savesuccess"))}function
OQ(t,i){1&t&&(k(0,"p-message",27),m(1,"translate")),2&t&&x("text",f(1,1,"common.networkfail"))}function
AQ(t,i){if(1&t){const
e=I();l(0,"div",21)(1,"div",22),_(2,LQ,2,3,"p-message",23),_(3,OQ,2,3,"p-message",24),c(),l(4,"p-button",25),C("onClick",functio
n(){v(e);const s=d(),r=F(1);return
s.saveForm(),r.form.markAsPristine()}),m(5,"translate"),c()()}if(2&t){const
e=d(),n=F(1);a(2),p("ngIf",e.successCount>0&&0==e.errorCount&&!n.dirty),a(1),p("ngIf",e.errorCount>0),a(1),x("label",f(5,4,"common.save")),p("disabled",!n.dirty||e.setupService.schedulingEnabled)}}let
PQ=(()=>{class
t{constructor(e,n){this.setupService=e,this.mythService=n,this.hostName="",this.successCount=0,this.errorCount=0,this.WOLbackendReconnectWaitTime=0,this.WOLbackendConnectRetry=5,this.WOLbackendCommand="",this.SleepCommand="",this.WakeUpCommand="",this.bewObserver={next:s=>{s.bool?this.successCount++:(this.errorCount++,this.currentForm&&this.currentForm.form.markAsDirty())},error:s=>{console.error(s),this.errorCount++,this.currentForm&&this.currentForm.form.markAsDirty()}}}ngOnInit(){}ngAfterViewInit(){this.setupService.setCurrentForm(this.currentForm)}getBackendWake(){this.mythService.GetHostName().subscribe({next:e=>{this.hostName=e.String,this.getSettings()},e
rror:()=>this.errorCount++})}getSettings(){this.mythService.GetSetting({HostName:"_GLOBAL_",Key:"WOLbackendReconnectWaitTime",Default:"0"}).subscribe({next:e=>this.WOLbackendReconnectWaitTime=Number(e.String),error:()=>this.errorCount++}),this.mythService.GetSetting({HostName:"_GLOBAL_",Key:"WOLbackendConnectRetry",Default:"5"}).subscribe({next:e=>this.WOLbackendConnectRetry=Number(e.String),error:()=>this.errorCount++}),this.mythService.GetSetting({HostName:"_GLOBAL_",Key:"WOLbackendCommand",Default:""}).subscribe({next:e=>this.WOLbackendCommand=e.String,error:()=>this.errorCount++}),this.mythService.GetSetting({HostName:this.hostName,Key:"SleepCommand",Default:""}).subscribe({next:e=>this.SleepCommand=e.String,error:()=>this.errorCount++}),this.mythService.GetSetting({HostName:this.hostName,Key:"WakeUpCommand",Default:""}).subscribe({next:e=>this.WakeUpCommand=e.String,error:()=>this.errorCount++})}saveForm(){this.successCount=0,this.errorCount=0,this.mythService.PutSetting({HostN
ame:"_GLOBAL_",Key:"WOLbackendReconnectWaitTime",Value:String(this.WOLbackendReconnectWaitTime)}).subscribe(this.bewObserver),this.mythService.PutSetting({HostName:"_GLOBAL_",Key:"WOLbackendConnectRetry",Value:String(this.WOLbackendConnectRetry)}).subscribe(this.bewObserver),this.mythService.PutSetting({HostName:"_GLOBAL_",Key:"WOLbackendCommand",Value:this.WOLbackendCommand}).subscribe(this.bewObserver),this.mythService.PutSetting({HostName:this.hostName,Key:"SleepCommand",Value:this.SleepCommand}).subscribe(this.bewObserver),this.mythService.PutSetting({HostName:this.hostName,Key:"WakeUpCommand",Value:this.WakeUpCommand}).subscribe(this.bewObserver)}}return
t.\u0275fac=function(e){return
new(e||t)(D(Me),D(qt))},t.\u0275cmp=z({type:t,selectors:[["app-backend-wakeup"]],viewQuery:function(e,n){if(1&e&&W(kQ,5),2&e){let
s;V(s=B())&&(n.currentForm=s.first)}},decls:7,vars:0,consts:[["name","backendwakeup",1,"ml-3","mr-3"],["backendwakeup","ngForm"],[1,"m-5"],["pTemplate","title"],["pTemp
late","subtitle"],["pTemplate","content"],["pTemplate","footer"],[1,"grid"],[1,"mb-4","w-full",3,"legend","toggleable","collapsed"],[1,"form-group","field"],["for","WOLbackendReconnectWaitTime",1,"label","block"],["name","WOLbackendReconnectWaitTime","id","WOLbackendReconnectWaitTime",3,"ngModel","showButtons","min","max","step","ngModelChange"],[1,"block"],["for","WOLbackendConnectRetry",1,"label","block"],["name","WOLbackendConnectRetry","id","WOLbackendConnectRetry",3,"ngModel","showButtons","min","max","step","ngModelChange"],["for","WOLbackendCommand",1,"label","block"],["pInputText","","id","WOLbackendCommand","name","WOLbackendCommand",1,"mb-2","form-control","w-full",3,"ngModel","ngModelChange"],["for","SleepCommand",1,"label","block"],["pInputText","","id","SleepCommand","name","SleepCommand",1,"mb-2","form-control","w-full",3,"ngModel","ngModelChange"],["for","WakeUpCommand",1,"label","block"],["pInputText","","id","WakeUpCommand","name","WakeUpCommand",1,"mb-2","form-cont
rol","w-full",3,"ngModel","ngModelChange"],[1,"grid","nogutter"],[1,"col-12"],["severity","success",3,"text",4,"ngIf"],["severity","error",3,"text",4,"ngIf"],["icon","pi
pi-save","iconPos","left",1,"col","pr-1",3,"label","disabled","onClick"],["severity","success",3,"text"],["severity","error",3,"text"]],template:function(e,n){1&e&&(l(0,"form",0,1)(2,"p-card",2),_(3,IQ,2,3,"ng-template",3),_(4,EQ,2,3,"ng-template",4),_(5,RQ,45,53,"ng-template",5),_(6,AQ,6,6,"ng-template",6),c()())},directives:[ze,Ue,He,Ne,ne,Ui,pt,Te,_e,Ye,Q,qe,ve],pipes:[ce],styles:[""]}),t})();const
FQ=["backendcontrol"];function
NQ(t,i){1&t&&(g(0),m(1,"translate")),2&t&&T("
",f(1,1,"settings.backendctrl.title")," ")}function
VQ(t,i){1&t&&(g(0),m(1,"translate")),2&t&&T("
",f(1,1,"settings.backendctrl.subtitle")," ")}function
BQ(t,i){if(1&t){const
e=I();l(0,"div",7)(1,"div",8)(2,"div",9)(3,"label",10),g(4),m(5,"translate"),c(),l(6,"input",11,12),C("ngModelChange",function(s){return
v(e),d().BackendStopCommand=s}),c
(),l(8,"small",13),g(9),m(10,"translate"),c()(),l(11,"div",9)(12,"label",14),g(13),m(14,"translate"),c(),l(15,"input",15,12),C("ngModelChange",function(s){return
v(e),d().BackendStartCommand=s}),c(),l(17,"small",13),g(18),m(19,"translate"),c()()()()}if(2&t){const
e=d();a(4),S(f(5,6,"settings.backendctrl.stop_label")),a(2),p("ngModel",e.BackendStopCommand),a(3),T("
",f(10,8,"settings.backendctrl.stop_desc"),"
"),a(4),S(f(14,10,"settings.backendctrl.start_label")),a(2),p("ngModel",e.BackendStartCommand),a(3),T("
",f(19,12,"settings.backendctrl.start_desc")," ")}}function
HQ(t,i){1&t&&(k(0,"p-message",21),m(1,"translate")),2&t&&x("text",f(1,1,"common.savesuccess"))}function
qQ(t,i){1&t&&(k(0,"p-message",22),m(1,"translate")),2&t&&x("text",f(1,1,"common.networkfail"))}function
GQ(t,i){if(1&t){const
e=I();l(0,"div",16)(1,"div",17),_(2,HQ,2,3,"p-message",18),_(3,qQ,2,3,"p-message",19),c(),l(4,"p-button",20),C("onClick",function(){v(e);const
s=d(),r=F(1);return s.saveForm(),r.form.markAsPr
istine()}),m(5,"translate"),c()()}if(2&t){const
e=d(),n=F(1);a(2),p("ngIf",e.successCount>0&&0==e.errorCount&&!n.dirty),a(1),p("ngIf",e.errorCount>0),a(1),x("label",f(5,4,"common.save")),p("disabled",!n.dirty||e.setupService.schedulingEnabled)}}let
UQ=(()=>{class
t{constructor(e,n){this.setupService=e,this.mythService=n,this.successCount=0,this.errorCount=0,this.BackendStopCommand="killall
mythbackend",this.BackendStartCommand="mythbackend",this.becObserver={next:s=>{s.bool?this.successCount++:(this.errorCount++,this.currentForm&&this.currentForm.form.markAsDirty())},error:s=>{console.error(s),this.errorCount++,this.currentForm&&this.currentForm.form.markAsDirty()}}}ngOnInit(){}ngAfterViewInit(){this.setupService.setCurrentForm(this.currentForm)}getBackendControl(){this.mythService.GetSetting({HostName:"_GLOBAL_",Key:"BackendStopCommand",Default:"killall
mythbackend"}).subscribe({next:e=>this.BackendStopCommand=e.String,error:()=>this.errorCount++}),this.mythService.GetSetting({Host
Name:"_GLOBAL_",Key:"BackendStartCommand",Default:"mythbackend"}).subscribe({next:e=>this.BackendStartCommand=e.String,error:()=>this.errorCount++})}saveForm(){this.successCount=0,this.errorCount=0,this.mythService.PutSetting({HostName:"_GLOBAL_",Key:"BackendStopCommand",Value:this.BackendStopCommand}).subscribe(this.becObserver),this.mythService.PutSetting({HostName:"_GLOBAL_",Key:"BackendStartCommand",Value:this.BackendStartCommand}).subscribe(this.becObserver)}}return
t.\u0275fac=function(e){return
new(e||t)(D(Me),D(qt))},t.\u0275cmp=z({type:t,selectors:[["app-backend-control"]],viewQuery:function(e,n){if(1&e&&W(FQ,5),2&e){let
s;V(s=B())&&(n.currentForm=s.first)}},decls:7,vars:0,consts:[["name","backendcontrol",1,"ml-3","mr-3"],["backendcontrol","ngForm"],[1,"m-5"],["pTemplate","title"],["pTemplate","subtitle"],["pTemplate","content"],["pTemplate","footer"],[1,"grid"],[1,"mb-4","w-full"],[1,"form-group","field"],["for","BackendStopCommand",1,"label","block"],["pInputText","","id"
,"BackendStopCommand","name","BackendStopCommand",1,"mb-2","form-control","w-full",3,"ngModel","ngModelChange"],["MiscStatusScript","ngModel"],[1,"block"],["for","BackendStartCommand",1,"label","block"],["pInputText","","id","BackendStartCommand","name","BackendStartCommand",1,"mb-2","form-control","w-full",3,"ngModel","ngModelChange"],[1,"grid","nogutter"],[1,"col-12"],["severity","success",3,"text",4,"ngIf"],["severity","error",3,"text",4,"ngIf"],["icon","pi
pi-save","iconPos","left",1,"col","pr-1",3,"label","disabled","onClick"],["severity","success",3,"text"],["severity","error",3,"text"]],template:function(e,n){1&e&&(l(0,"form",0,1)(2,"p-card",2),_(3,NQ,2,3,"ng-template",3),_(4,VQ,2,3,"ng-template",4),_(5,BQ,20,14,"ng-template",5),_(6,GQ,6,6,"ng-template",6),c()())},directives:[ze,Ue,He,Ne,ne,Ye,Te,_e,Q,qe,ve],pipes:[ce],styles:[""]}),t})();const
zQ=["jobqbackend"],jQ=["JobQueueWindowStartHT"],$Q=["JobQueueWindowEndHT"];function
WQ(t,i){1&t&&(g(0),m(1,"translate")),2&t&&T("
",f
(1,1,"settings.jobqbackend.title")," ")}function
KQ(t,i){1&t&&(g(0),m(1,"translate")),2&t&&T("
",f(1,1,"settings.jobqbackend.subtitle")," ")}function
QQ(t,i){if(1&t){const
e=I();l(0,"div",7)(1,"div",8)(2,"div",9)(3,"label",10),g(4),m(5,"translate"),c(),l(6,"p-inputNumber",11),C("ngModelChange",function(s){return
v(e),d().JobQueueMaxSimultaneousJobs=s}),c(),l(7,"small",12),g(8),m(9,"translate"),c()(),l(10,"div",9)(11,"label",13),g(12),m(13,"translate"),c(),l(14,"p-inputNumber",14),C("ngModelChange",function(s){return
v(e),d().JobQueueCheckFrequency=s}),c(),l(15,"small",12),g(16),m(17,"translate"),c()(),l(18,"div",9)(19,"label",15),g(20),m(21,"translate"),c(),l(22,"p-calendar",16,17),C("ngModelChange",function(s){return
v(e),d().JobQueueWindowStart=s}),c(),l(24,"small",12),g(25),m(26,"translate"),c()(),l(27,"div",9)(28,"label",18),g(29),m(30,"translate"),c(),l(31,"p-calendar",19,20),C("ngModelChange",function(s){return
v(e),d().JobQueueWindowEnd=s}),c(),l(33,"small",12),g(34),m(35,"tr
anslate"),c()(),l(36,"div",9)(37,"label",21),g(38),m(39,"translate"),c(),l(40,"p-dropdown",22),C("ngModelChange",function(s){return
v(e),d().JobQueueCPU=s}),c(),l(41,"small",12),g(42),m(43,"translate"),c()(),l(44,"div",9)(45,"p-checkbox",23),C("ngModelChange",function(s){return
v(e),d().JobAllowMetadata=s}),m(46,"translate"),c(),l(47,"small",12),g(48),m(49,"translate"),c()(),l(50,"div",9)(51,"p-checkbox",24),C("ngModelChange",function(s){return
v(e),d().JobAllowCommFlag=s}),m(52,"translate"),c(),l(53,"small",12),g(54),m(55,"translate"),c()(),l(56,"div",9)(57,"p-checkbox",25),C("ngModelChange",function(s){return
v(e),d().JobAllowTranscode=s}),m(58,"translate"),c(),l(59,"small",12),g(60),m(61,"translate"),c()(),l(62,"div",9)(63,"p-checkbox",26),C("ngModelChange",function(s){return
v(e),d().JobAllowPreview=s}),m(64,"translate"),c(),l(65,"small",12),g(66),m(67,"translate"),c()(),l(68,"div",9)(69,"p-checkbox",27),C("ngModelChange",function(s){return
v(e),d().JobAllowUserJob1=s}),c(),l(70
,"small",12),g(71),m(72,"translate"),c()(),l(73,"div",9)(74,"p-checkbox",28),C("ngModelChange",function(s){return
v(e),d().JobAllowUserJob2=s}),c(),l(75,"small",12),g(76),m(77,"translate"),c()(),l(78,"div",9)(79,"p-checkbox",29),C("ngModelChange",function(s){return
v(e),d().JobAllowUserJob3=s}),c(),l(80,"small",12),g(81),m(82,"translate"),c()(),l(83,"div",9)(84,"p-checkbox",30),C("ngModelChange",function(s){return
v(e),d().JobAllowUserJob4=s}),c(),l(85,"small",12),g(86),m(87,"translate"),c()()()()}if(2&t){const
e=d();a(4),S(f(5,60,"settings.jobqbackend.maxjobs_label")),a(2),p("ngModel",e.JobQueueMaxSimultaneousJobs)("showButtons",!0)("min",1)("max",10)("step",1),a(2),T("
",f(9,62,"settings.jobqbackend.maxjobs_desc"),"
"),a(4),S(f(13,64,"settings.jobqbackend.freq_label")),a(2),p("ngModel",e.JobQueueCheckFrequency)("showButtons",!0)("min",5)("max",300)("step",5),a(2),T("
",f(17,66,"settings.jobqbackend.freq_desc"),"
"),a(4),S(f(21,68,"settings.jobqbackend.start_label")),a(2),p("ngMode
l",e.JobQueueWindowStart)("timeOnly",!0)("readonlyInput",!0),a(3),T("
",f(26,70,"settings.jobqbackend.start_desc"),"
"),a(4),S(f(30,72,"settings.jobqbackend.end_label")),a(2),p("ngModel",e.JobQueueWindowEnd)("timeOnly",!0)("readonlyInput",!0),a(3),T("
",f(35,74,"settings.jobqbackend.end_desc"),"
"),a(4),S(f(39,76,"settings.jobqbackend.cpu_label")),a(2),p("options",e.cpuOptions)("ngModel",e.JobQueueCPU),a(2),T("
",f(43,78,"settings.jobqbackend.cpu_desc"),"
"),a(3),x("label",f(46,80,"settings.jobqbackend.meta_label")),p("ngModel",e.JobAllowMetadata)("binary",!0),a(3),T("
",f(49,82,"settings.jobqbackend.allow_desc"),"
"),a(3),x("label",f(52,84,"settings.jobqbackend.comm_label")),p("ngModel",e.JobAllowCommFlag)("binary",!0),a(3),T("
",f(55,86,"settings.jobqbackend.allow_desc"),"
"),a(3),x("label",f(58,88,"settings.jobqbackend.trans_label")),p("ngModel",e.JobAllowTranscode)("binary",!0),a(3),T("
",f(61,90,"settings.jobqbackend.allow_desc"),"
"),a(3),x("label",f(64,92,"settings.jobqbacken
d.preview_label")),p("ngModel",e.JobAllowPreview)("binary",!0),a(3),T("
",f(67,94,"settings.jobqbackend.allow_desc"),"
"),a(3),x("label",e.JobQCmds.UserJobDesc[0]),p("ngModel",e.JobAllowUserJob1)("binary",!0),a(2),T("
",f(72,96,"settings.jobqbackend.allow_desc"),"
"),a(3),x("label",e.JobQCmds.UserJobDesc[1]),p("ngModel",e.JobAllowUserJob2)("binary",!0),a(2),T("
",f(77,98,"settings.jobqbackend.allow_desc"),"
"),a(3),x("label",e.JobQCmds.UserJobDesc[2]),p("ngModel",e.JobAllowUserJob3)("binary",!0),a(2),T("
",f(82,100,"settings.jobqbackend.allow_desc"),"
"),a(3),x("label",e.JobQCmds.UserJobDesc[3]),p("ngModel",e.JobAllowUserJob4)("binary",!0),a(2),T("
",f(87,102,"settings.jobqbackend.allow_desc")," ")}}function
JQ(t,i){1&t&&(k(0,"p-message",36),m(1,"translate")),2&t&&x("text",f(1,1,"common.savesuccess"))}function
YQ(t,i){1&t&&(k(0,"p-message",37),m(1,"translate")),2&t&&x("text",f(1,1,"common.networkfail"))}function
ZQ(t,i){if(1&t){const
e=I();l(0,"div",31)(1,"div",32),_(2,JQ,2,3,"p-mes
sage",33),_(3,YQ,2,3,"p-message",34),c(),l(4,"p-button",35),C("onClick",function(){v(e);const
s=d(),r=F(1);return
s.saveForm(),r.form.markAsPristine()}),m(5,"translate"),c()()}if(2&t){const
e=d(),n=F(1);a(2),p("ngIf",e.successCount>0&&0==e.errorCount&&!n.dirty),a(1),p("ngIf",e.errorCount>0),a(1),x("label",f(5,4,"common.save")),p("disabled",!n.dirty||e.setupService.schedulingEnabled)}}let
XQ=(()=>{class
t{constructor(e,n,s){this.setupService=e,this.translate=n,this.mythService=s,this.successCount=0,this.errorCount=0,this.hostName="",this.JobQueueMaxSimultaneousJobs=1,this.JobQueueCheckFrequency=60,this.JobQueueWindowStart=new
Date(0),this.JobQueueWindowStartHT$=new Je,this.JobQueueWindowEnd=new
Date(0),this.JobQueueWindowEndHT$=new
Je,this.JobQueueCPU="0",this.JobAllowMetadata=!0,this.JobAllowCommFlag=!0,this.JobAllowTranscode=!0,this.JobAllowPreview=!0,this.JobAllowUserJob1=!1,this.JobAllowUserJob2=!1,this.JobAllowUserJob3=!1,this.JobAllowUserJob4=!1,this.cpuOptions=[{name:"settings
.jobqbackend.cpu_low",code:"0"},{name:"settings.jobqbackend.cpu_med",code:"1"},{name:"settings.jobqbackend.cpu_high",code:"2"}],this.jqbObserver={next:r=>{r.bool?this.successCount++:(this.errorCount++,this.currentForm&&this.currentForm.form.markAsDirty())},error:r=>{console.error(r),this.errorCount++,this.currentForm&&this.currentForm.form.markAsDirty()}},this.getJobQBackend(),this.JobQueueWindowStartHT$.subscribe({complete:()=>this.JobQueueWindowStartHT.updateInputfield()}),this.JobQueueWindowEndHT$.subscribe({complete:()=>this.JobQueueWindowEndHT.updateInputfield()}),this.JobQCmds=this.setupService.getJobQCommands(),n.get(this.cpuOptions[0].name).subscribe(r=>this.cpuOptions[0].name=r),n.get(this.cpuOptions[1].name).subscribe(r=>this.cpuOptions[1].name=r),n.get(this.cpuOptions[2].name).subscribe(r=>this.cpuOptions[2].name=r)}ngOnInit(){}ngAfterViewInit(){this.setupService.setCurrentForm(this.currentForm)}getJobQBackend(){this.successCount=0,this.errorCount=0,this.setupService.pars
eTime(this.JobQueueWindowStart,"00:00"),this.setupService.parseTime(this.JobQueueWindowEnd,"23:59"),this.mythService.GetHostName().subscribe({next:e=>{this.hostName=e.String,this.getSettings()},error:()=>this.errorCount++})}getSettings(){this.mythService.GetSetting({HostName:this.hostName,Key:"JobQueueMaxSimultaneousJobs",Default:"1"}).subscribe({next:e=>this.JobQueueMaxSimultaneousJobs=Number(e.String),error:()=>this.errorCount++}),this.mythService.GetSetting({HostName:this.hostName,Key:"JobQueueCheckFrequency",Default:"60"}).subscribe({next:e=>this.JobQueueCheckFrequency=Number(e.String),error:()=>this.errorCount++}),this.JobQueueWindowStartHT$=this.mythService.GetSetting({HostName:this.hostName,Key:"JobQueueWindowStart",Default:"00:00"}),this.JobQueueWindowStartHT$.subscribe({next:e=>{this.setupService.parseTime(this.JobQueueWindowStart,e.String),this.JobQueueWindowStartHT.updateInputfield()},error:()=>this.errorCount++}),this.JobQueueWindowEndHT$=this.mythService.GetSetting({Hos
tName:this.hostName,Key:"JobQueueWindowEnd",Default:"23:59"}),this.JobQueueWindowEndHT$.subscribe({next:e=>{this.setupService.parseTime(this.JobQueueWindowEnd,e.String),this.JobQueueWindowEndHT.updateInputfield()},error:()=>this.errorCount++}),this.mythService.GetSetting({HostName:this.hostName,Key:"JobQueueCPU",Default:"0"}).subscribe({next:e=>this.JobQueueCPU=e.String,error:()=>this.errorCount++}),this.mythService.GetSetting({HostName:this.hostName,Key:"JobAllowMetadata",Default:"1"}).subscribe({next:e=>this.JobAllowMetadata="1"==e.String,error:()=>this.errorCount++}),this.mythService.GetSetting({HostName:this.hostName,Key:"JobAllowCommFlag",Default:"1"}).subscribe({next:e=>this.JobAllowCommFlag="1"==e.String,error:()=>this.errorCount++}),this.mythService.GetSetting({HostName:this.hostName,Key:"JobAllowTranscode",Default:"1"}).subscribe({next:e=>this.JobAllowTranscode="1"==e.String,error:()=>this.errorCount++}),this.mythService.GetSetting({HostName:this.hostName,Key:"JobAllowPrevi
ew",Default:"1"}).subscribe({next:e=>this.JobAllowPreview="1"==e.String,error:()=>this.errorCount++}),this.mythService.GetSetting({HostName:this.hostName,Key:"JobAllowUserJob1",Default:"0"}).subscribe({next:e=>this.JobAllowUserJob1="1"==e.String,error:()=>this.errorCount++}),this.mythService.GetSetting({HostName:this.hostName,Key:"JobAllowUserJob2",Default:"0"}).subscribe({next:e=>this.JobAllowUserJob2="1"==e.String,error:()=>this.errorCount++}),this.mythService.GetSetting({HostName:this.hostName,Key:"JobAllowUserJob3",Default:"0"}).subscribe({next:e=>this.JobAllowUserJob3="1"==e.String,error:()=>this.errorCount++}),this.mythService.GetSetting({HostName:this.hostName,Key:"JobAllowUserJob4",Default:"0"}).subscribe({next:e=>this.JobAllowUserJob4="1"==e.String,error:()=>this.errorCount++})}saveForm(){this.successCount=0,this.errorCount=0,this.mythService.PutSetting({HostName:this.hostName,Key:"JobQueueMaxSimultaneousJobs",Value:String(this.JobQueueMaxSimultaneousJobs)}).subscribe(this.
jqbObserver),this.mythService.PutSetting({HostName:this.hostName,Key:"JobQueueCheckFrequency",Value:String(this.JobQueueCheckFrequency)}).subscribe(this.jqbObserver),this.mythService.PutSetting({HostName:this.hostName,Key:"JobQueueWindowStart",Value:this.setupService.formatTime(this.JobQueueWindowStart)}).subscribe(this.jqbObserver),this.mythService.PutSetting({HostName:this.hostName,Key:"JobQueueWindowEnd",Value:this.setupService.formatTime(this.JobQueueWindowEnd)}).subscribe(this.jqbObserver),this.mythService.PutSetting({HostName:this.hostName,Key:"JobQueueCPU",Value:this.JobQueueCPU}).subscribe(this.jqbObserver),this.mythService.PutSetting({HostName:this.hostName,Key:"JobAllowMetadata",Value:this.JobAllowMetadata?"1":"0"}).subscribe(this.jqbObserver),this.mythService.PutSetting({HostName:this.hostName,Key:"JobAllowCommFlag",Value:this.JobAllowCommFlag?"1":"0"}).subscribe(this.jqbObserver),this.mythService.PutSetting({HostName:this.hostName,Key:"JobAllowTranscode",Value:this.JobAl
lowTranscode?"1":"0"}).subscribe(this.jqbObserver),this.mythService.PutSetting({HostName:this.hostName,Key:"JobAllowPreview",Value:this.JobAllowPreview?"1":"0"}).subscribe(this.jqbObserver),this.mythService.PutSetting({HostName:this.hostName,Key:"JobAllowUserJob1",Value:this.JobAllowUserJob1?"1":"0"}).subscribe(this.jqbObserver),this.mythService.PutSetting({HostName:this.hostName,Key:"JobAllowUserJob2",Value:this.JobAllowUserJob2?"1":"0"}).subscribe(this.jqbObserver),this.mythService.PutSetting({HostName:this.hostName,Key:"JobAllowUserJob3",Value:this.JobAllowUserJob3?"1":"0"}).subscribe(this.jqbObserver),this.mythService.PutSetting({HostName:this.hostName,Key:"JobAllowUserJob4",Value:this.JobAllowUserJob4?"1":"0"}).subscribe(this.jqbObserver)}}return
t.\u0275fac=function(e){return
new(e||t)(D(Me),D(Oe),D(qt))},t.\u0275cmp=z({type:t,selectors:[["app-jobqueue-backend"]],viewQuery:function(e,n){if(1&e&&(W(zQ,5),W(jQ,5),W($Q,5)),2&e){let
s;V(s=B())&&(n.currentForm=s.first),V(s=B())&&(n
.JobQueueWindowStartHT=s.first),V(s=B())&&(n.JobQueueWindowEndHT=s.first)}},decls:7,vars:0,consts:[["name","jobqbackend",1,"ml-3","mr-3"],["jobqbackend","ngForm"],[1,"m-5"],["pTemplate","title"],["pTemplate","subtitle"],["pTemplate","content"],["pTemplate","footer"],[1,"grid"],[1,"mb-4","w-full"],[1,"form-group","field"],["for","JobQueueMaxSimultaneousJobs",1,"label","block"],["name","JobQueueMaxSimultaneousJobs","id","JobQueueMaxSimultaneousJobs",3,"ngModel","showButtons","min","max","step","ngModelChange"],[1,"block"],["for","JobQueueCheckFrequency",1,"label","block"],["name","JobQueueCheckFrequency","id","JobQueueCheckFrequency",3,"ngModel","showButtons","min","max","step","ngModelChange"],["for","JobQueueWindowStart",1,"label","block"],["name","JobQueueWindowStart","id","JobQueueWindowStart","ngControl","JobQueueWindowStart",3,"ngModel","timeOnly","readonlyInput","ngModelChange"],["JobQueueWindowStartHT",""],["for","JobQueueWindowEnd",1,"label","block"],["name","JobQueueWindowEn
d","id","JobQueueWindowEnd","ngControl","JobQueueWindowEnd",3,"ngModel","timeOnly","readonlyInput","ngModelChange"],["JobQueueWindowEndHT",""],["for","JobQueueCPU",1,"label","block"],["optionLabel","name","optionValue","code","name","JobQueueCPU",1,"block","w-15rem","mb-2",3,"options","ngModel","ngModelChange"],["inputId","JobAllowMetadata","name","JobAllowMetadata",1,"label","mb-2","w-full",3,"ngModel","binary","label","ngModelChange"],["inputId","JobAllowCommFlag","name","JobAllowCommFlag",1,"label","mb-2","w-full",3,"ngModel","binary","label","ngModelChange"],["inputId","JobAllowTranscode","name","JobAllowTranscode",1,"label","mb-2","w-full",3,"ngModel","binary","label","ngModelChange"],["inputId","JobAllowPreview","name","JobAllowPreview",1,"label","mb-2","w-full",3,"ngModel","binary","label","ngModelChange"],["inputId","JobAllowUserJob1","name","JobAllowUserJob1",1,"label","mb-2","w-full",3,"ngModel","binary","label","ngModelChange"],["inputId","JobAllowUserJob2","name","JobAll
owUserJob2",1,"label","mb-2","w-full",3,"ngModel","binary","label","ngModelChange"],["inputId","JobAllowUserJob3","name","JobAllowUserJob3",1,"label","mb-2","w-full",3,"ngModel","binary","label","ngModelChange"],["inputId","JobAllowUserJob4","name","JobAllowUserJob4",1,"label","mb-2","w-full",3,"ngModel","binary","label","ngModelChange"],[1,"grid","nogutter"],[1,"col-12"],["severity","success",3,"text",4,"ngIf"],["severity","error",3,"text",4,"ngIf"],["icon","pi
pi-save","iconPos","left",1,"col","pr-1",3,"label","disabled","onClick"],["severity","success",3,"text"],["severity","error",3,"text"]],template:function(e,n){1&e&&(l(0,"form",0,1)(2,"p-card",2),_(3,WQ,2,3,"ng-template",3),_(4,KQ,2,3,"ng-template",4),_(5,QQ,88,104,"ng-template",5),_(6,ZQ,6,6,"ng-template",6),c()())},directives:[ze,Ue,He,Ne,ne,pt,Te,_e,xr,Ot,sn,Q,qe,ve],pipes:[ce],styles:[""]}),t})();const
eJ=["jobqglobal"];function
tJ(t,i){1&t&&(g(0),m(1,"translate")),2&t&&T("
",f(1,1,"settings.jobqglobal.title")," ")}functi
on nJ(t,i){}function iJ(t,i){if(1&t){const
e=I();l(0,"div",7)(1,"div",8)(2,"div",9)(3,"p-checkbox",10),C("ngModelChange",function(s){return
v(e),d().JobsRunOnRecordHost=s}),m(4,"translate"),c(),l(5,"small",11),g(6),m(7,"translate"),c()(),l(8,"div",9)(9,"p-checkbox",12),C("ngModelChange",function(s){return
v(e),d().AutoCommflagWhileRecording=s}),m(10,"translate"),c(),l(11,"small",11),g(12),m(13,"translate"),c()(),l(14,"div",9)(15,"label",13),g(16),m(17,"translate"),c(),l(18,"input",14),C("ngModelChange",function(s){return
v(e),d().JobQueueCommFlagCommand=s}),c(),l(19,"small",11),g(20),m(21,"translate"),c()(),l(22,"div",9)(23,"label",15),g(24),m(25,"translate"),c(),l(26,"input",16),C("ngModelChange",function(s){return
v(e),d().JobQueueTranscodeCommand=s}),c(),l(27,"small",11),g(28),m(29,"translate"),c()(),l(30,"div",9)(31,"p-checkbox",17),C("ngModelChange",function(s){return
v(e),d().AutoTranscodeBeforeAutoCommflag=s}),m(32,"translate"),c(),l(33,"small",11),g(34),m(35,"translate"),c()
(),l(36,"div",9)(37,"p-checkbox",18),C("ngModelChange",function(s){return
v(e),d().SaveTranscoding=s}),m(38,"translate"),c(),l(39,"small",11),g(40),m(41,"translate"),c()()()()}if(2&t){const
e=d();a(3),x("label",f(4,22,"settings.jobqglobal.runonrechost_label")),p("ngModel",e.JobsRunOnRecordHost)("binary",!0),a(3),T("
",f(7,24,"settings.jobqglobal.runonrechost_desc"),"
"),a(3),x("label",f(10,26,"settings.jobqglobal.startcomm_label")),p("ngModel",e.AutoCommflagWhileRecording)("binary",!0),a(3),T("
",f(13,28,"settings.jobqglobal.startcomm_desc"),"
"),a(4),S(f(17,30,"settings.jobqglobal.commcmd_label")),a(2),p("ngModel",e.JobQueueCommFlagCommand),a(2),T("
",f(21,32,"settings.jobqglobal.commcmd_desc"),"
"),a(4),S(f(25,34,"settings.jobqglobal.transcmd_label")),a(2),p("ngModel",e.JobQueueTranscodeCommand),a(2),T("
",f(29,36,"settings.jobqglobal.transcmd_desc"),"
"),a(3),x("label",f(32,38,"settings.jobqglobal.transfirst_label")),p("ngModel",e.AutoTranscodeBeforeAutoCommflag)("binary",!0),a(3
),T(" ",f(35,40,"settings.jobqglobal.transfirst_desc"),"
"),a(3),x("label",f(38,42,"settings.jobqglobal.transsave_label")),p("ngModel",e.SaveTranscoding)("binary",!0),a(3),T("
",f(41,44,"settings.jobqglobal.transsave_desc")," ")}}function
sJ(t,i){1&t&&(k(0,"p-message",24),m(1,"translate")),2&t&&x("text",f(1,1,"common.savesuccess"))}function
rJ(t,i){1&t&&(k(0,"p-message",25),m(1,"translate")),2&t&&x("text",f(1,1,"common.networkfail"))}function
oJ(t,i){if(1&t){const
e=I();l(0,"div",19)(1,"div",20),_(2,sJ,2,3,"p-message",21),_(3,rJ,2,3,"p-message",22),c(),l(4,"p-button",23),C("onClick",function(){v(e);const
s=d(),r=F(1);return
s.saveForm(),r.form.markAsPristine()}),m(5,"translate"),c()()}if(2&t){const
e=d(),n=F(1);a(2),p("ngIf",e.successCount>0&&0==e.errorCount&&!n.dirty),a(1),p("ngIf",e.errorCount>0),a(1),x("label",f(5,4,"common.save")),p("disabled",!n.dirty||e.setupService.schedulingEnabled)}}let
aJ=(()=>{class
t{constructor(e,n){this.setupService=e,this.mythService=n,this.successCou
nt=0,this.errorCount=0,this.JobsRunOnRecordHost=!1,this.AutoCommflagWhileRecording=!1,this.JobQueueCommFlagCommand="mythcommflag",this.JobQueueTranscodeCommand="mythtranscode",this.AutoTranscodeBeforeAutoCommflag=!1,this.SaveTranscoding=!1,this.JobQGlobalObs={next:s=>{s.bool?this.successCount++:(this.errorCount++,this.currentForm&&this.currentForm.form.markAsDirty())},error:s=>{console.error(s),this.errorCount++,this.currentForm&&this.currentForm.form.markAsDirty()}},this.getJobQGlobal()}ngOnInit(){}ngAfterViewInit(){this.setupService.setCurrentForm(this.currentForm)}getJobQGlobal(){this.mythService.GetSetting({HostName:"_GLOBAL_",Key:"JobsRunOnRecordHost",Default:"0"}).subscribe({next:e=>this.JobsRunOnRecordHost="1"==e.String,error:()=>this.errorCount++}),this.mythService.GetSetting({HostName:"_GLOBAL_",Key:"AutoCommflagWhileRecording",Default:"0"}).subscribe({next:e=>this.AutoCommflagWhileRecording="1"==e.String,error:()=>this.errorCount++}),this.mythService.GetSetting({HostName:"
_GLOBAL_",Key:"JobQueueCommFlagCommand",Default:"mythcommflag"}).subscribe({next:e=>this.JobQueueCommFlagCommand=e.String,error:()=>this.errorCount++}),this.mythService.GetSetting({HostName:"_GLOBAL_",Key:"JobQueueTranscodeCommand",Default:"mythtranscode"}).subscribe({next:e=>this.JobQueueTranscodeCommand=e.String,error:()=>this.errorCount++}),this.mythService.GetSetting({HostName:"_GLOBAL_",Key:"AutoTranscodeBeforeAutoCommflag",Default:"0"}).subscribe({next:e=>this.AutoTranscodeBeforeAutoCommflag="1"==e.String,error:()=>this.errorCount++}),this.mythService.GetSetting({HostName:"_GLOBAL_",Key:"SaveTranscoding",Default:"0"}).subscribe({next:e=>this.SaveTranscoding="1"==e.String,error:()=>this.errorCount++})}saveForm(){this.successCount=0,this.errorCount=0,this.successCount=0,this.errorCount=0,this.mythService.PutSetting({HostName:"_GLOBAL_",Key:"JobsRunOnRecordHost",Value:this.JobsRunOnRecordHost?"1":"0"}).subscribe(this.JobQGlobalObs),this.mythService.PutSetting({HostName:"_GLOBAL_"
,Key:"AutoCommflagWhileRecording",Value:this.AutoCommflagWhileRecording?"1":"0"}).subscribe(this.JobQGlobalObs),this.mythService.PutSetting({HostName:"_GLOBAL_",Key:"JobQueueCommFlagCommand",Value:this.JobQueueCommFlagCommand}).subscribe(this.JobQGlobalObs),this.mythService.PutSetting({HostName:"_GLOBAL_",Key:"JobQueueTranscodeCommand",Value:this.JobQueueTranscodeCommand}).subscribe(this.JobQGlobalObs),this.mythService.PutSetting({HostName:"_GLOBAL_",Key:"AutoTranscodeBeforeAutoCommflag",Value:this.AutoTranscodeBeforeAutoCommflag?"1":"0"}).subscribe(this.JobQGlobalObs),this.mythService.PutSetting({HostName:"_GLOBAL_",Key:"SaveTranscoding",Value:this.SaveTranscoding?"1":"0"}).subscribe(this.JobQGlobalObs)}}return
t.\u0275fac=function(e){return
new(e||t)(D(Me),D(qt))},t.\u0275cmp=z({type:t,selectors:[["app-jobqueue-global"]],viewQuery:function(e,n){if(1&e&&W(eJ,5),2&e){let
s;V(s=B())&&(n.currentForm=s.first)}},decls:7,vars:0,consts:[["name","jobqglobal",1,"ml-3","mr-3"],["jobqglobal",
"ngForm"],[1,"m-5"],["pTemplate","title"],["pTemplate","subtitle"],["pTemplate","content"],["pTemplate","footer"],[1,"grid"],[1,"mb-4","w-full"],[1,"form-group","field"],["inputId","JobsRunOnRecordHost","name","JobsRunOnRecordHost",1,"label","mb-2","w-full",3,"ngModel","binary","label","ngModelChange"],[1,"block"],["inputId","AutoCommflagWhileRecording","name","AutoCommflagWhileRecording",1,"label","mb-2","w-full",3,"ngModel","binary","label","ngModelChange"],["for","JobQueueCommFlagCommand",1,"label","block"],["pInputText","","id","JobQueueCommFlagCommand","name","JobQueueCommFlagCommand",1,"mb-2","form-control","w-full",3,"ngModel","ngModelChange"],["for","JobQueueTranscodeCommand",1,"label","block"],["pInputText","","id","JobQueueTranscodeCommand","name","JobQueueTranscodeCommand",1,"mb-2","form-control","w-full",3,"ngModel","ngModelChange"],["inputId","AutoTranscodeBeforeAutoCommflag","name","AutoTranscodeBeforeAutoCommflag",1,"label","mb-2","w-full",3,"ngModel","binary","label"
,"ngModelChange"],["inputId","SaveTranscoding","name","SaveTranscoding",1,"label","mb-2","w-full",3,"ngModel","binary","label","ngModelChange"],[1,"grid","nogutter"],[1,"col-12"],["severity","success",3,"text",4,"ngIf"],["severity","error",3,"text",4,"ngIf"],["icon","pi
pi-save","iconPos","left",1,"col","pr-1",3,"label","disabled","onClick"],["severity","success",3,"text"],["severity","error",3,"text"]],template:function(e,n){1&e&&(l(0,"form",0,1)(2,"p-card",2),_(3,tJ,2,3,"ng-template",3),_(4,nJ,0,0,"ng-template",4),_(5,iJ,42,46,"ng-template",5),_(6,oJ,6,6,"ng-template",6),c()())},directives:[ze,Ue,He,Ne,ne,sn,Te,_e,Ye,Q,qe,ve],pipes:[ce],styles:[""]}),t})();const
lJ=["jobqcommands"];function
cJ(t,i){1&t&&(g(0),m(1,"translate")),2&t&&T("
",f(1,1,"settings.jobqcommands.title")," ")}function
uJ(t,i){1&t&&(g(0),m(1,"translate")),2&t&&T("
",f(1,1,"settings.jobqcommands.subtitle")," ")}const
dS=function(t){return{num:t}};function dJ(t,i){if(1&t){const
e=I();l(0,"div")(1,"div",10)(2,"labe
l",11),k(3,"div",12),c(),l(4,"input",13,14),C("ngModelChange",function(s){const
o=v(e).$implicit;return
d(2).JobQCommandsData.UserJobDesc[o]=s}),c(),l(6,"small",15),g(7),m(8,"translate"),c()(),l(9,"div",10)(10,"label",11),k(11,"div",12),c(),l(12,"input",13,16),C("ngModelChange",function(s){const
o=v(e).$implicit;return
d(2).JobQCommandsData.UserJob[o]=s}),c(),l(14,"small",15),g(15),m(16,"translate"),c()()()}if(2&t){const
e=i.$implicit,n=d(2);a(2),Bn("for","UserJobDesc",e,""),a(1),p("translate","settings.jobqcommands.job_label")("translateParams",U(18,dS,e+1)),a(1),Bn("id","UserJobDesc",e,"")("name","UserJobDesc",e,""),p("ngModel",n.JobQCommandsData.UserJobDesc[e]),a(3),T("
",f(8,14,"settings.jobqcommands.job_desc"),"
"),a(3),Bn("for","UserJob",e,""),a(1),p("translate","settings.jobqcommands.command_label")("translateParams",U(20,dS,e+1)),a(1),Bn("id","UserJob",e,"")("name","UserJob",e,""),p("ngModel",n.JobQCommandsData.UserJob[e]),a(3),T("
",f(16,16,"settings.jobqcommands.command_de
sc")," ")}}function
pJ(t,i){if(1&t&&(l(0,"div",7)(1,"div",8),_(2,dJ,17,22,"div",9),c()()),2&t){const
e=d();a(2),p("ngForOf",e.items)}}function
hJ(t,i){1&t&&(k(0,"p-message",22),m(1,"translate")),2&t&&x("text",f(1,1,"common.savesuccess"))}function
mJ(t,i){1&t&&(k(0,"p-message",23),m(1,"translate")),2&t&&x("text",f(1,1,"common.networkfail"))}function
fJ(t,i){if(1&t){const
e=I();l(0,"div",17)(1,"div",18),_(2,hJ,2,3,"p-message",19),_(3,mJ,2,3,"p-message",20),c(),l(4,"p-button",21),C("onClick",function(){v(e);const
s=d(),r=F(1);return
s.saveForm(),r.form.markAsPristine()}),m(5,"translate"),c()()}if(2&t){const
e=d(),n=F(1);a(2),p("ngIf",e.JobQCommandsData.successCount>0&&0==e.JobQCommandsData.errorCount&&!n.dirty),a(1),p("ngIf",e.JobQCommandsData.errorCount>0),a(1),x("label",f(5,4,"common.save")),p("disabled",!n.dirty||e.setupService.schedulingEnabled)}}let
gJ=(()=>{class
t{constructor(e){this.setupService=e,this.items=[0,1,2,3],this.JobQCommandsData=this.setupService.getJobQCommands()}ng
OnInit(){}ngAfterViewInit(){this.setupService.setCurrentForm(this.currentForm)}saveForm(){this.setupService.saveJobQCommands(this.currentForm)}}return
t.\u0275fac=function(e){return
new(e||t)(D(Me))},t.\u0275cmp=z({type:t,selectors:[["app-jobqueue-commands"]],viewQuery:function(e,n){if(1&e&&W(lJ,5),2&e){let
s;V(s=B())&&(n.currentForm=s.first)}},decls:7,vars:0,consts:[["name","jobqcommands",1,"ml-3","mr-3"],["jobqcommands","ngForm"],[1,"m-5"],["pTemplate","title"],["pTemplate","subtitle"],["pTemplate","content"],["pTemplate","footer"],[1,"grid"],[1,"mb-4","w-full"],[4,"ngFor","ngForOf"],[1,"form-group","field"],[1,"label","block",3,"for"],[3,"translate","translateParams"],["pInputText","",1,"mb-2","form-control","w-full",3,"id","ngModel","name","ngModelChange"],["UserJobDesc{{item}}","ngModel"],[1,"block"],["UserJob{{item}}","ngModel"],[1,"grid","nogutter"],[1,"col-12"],["severity","success",3,"text",4,"ngIf"],["severity","error",3,"text",4,"ngIf"],["icon","pi
pi-save","iconPos","lef
t",1,"col","pr-1",3,"label","disabled","onClick"],["severity","success",3,"text"],["severity","error",3,"text"]],template:function(e,n){1&e&&(l(0,"form",0,1)(2,"p-card",2),_(3,cJ,2,3,"ng-template",3),_(4,uJ,2,3,"ng-template",4),_(5,pJ,3,1,"ng-template",5),_(6,fJ,6,6,"ng-template",6),c()())},directives:[ze,Ue,He,Ne,ne,at,mu,Ye,Te,_e,Q,qe,ve],pipes:[ce],styles:[""]}),t})();const
_J=["epgdownload"];function
bJ(t,i){1&t&&(g(0),m(1,"translate")),2&t&&T("
",f(1,1,"settings.epgdownload.title")," ")}function
vJ(t,i){}function CJ(t,i){if(1&t){const
e=I();l(0,"div",7)(1,"div",8)(2,"div",9)(3,"p-checkbox",10),C("ngModelChange",function(s){return
v(e),d().MythFillEnabled=s}),m(4,"translate"),c(),l(5,"small",11),g(6),m(7,"translate"),c()()()()}if(2&t){const
e=d();a(3),x("label",f(4,4,"settings.epgdownload.enabled_label")),p("ngModel",e.MythFillEnabled)("binary",!0),a(3),T("
",f(7,6,"settings.epgdownload.enabled_desc")," ")}}function
yJ(t,i){1&t&&(k(0,"p-message",17),m(1,"translate")),2&t&&x("tex
t",f(1,1,"common.savesuccess"))}function
wJ(t,i){1&t&&(k(0,"p-message",18),m(1,"translate")),2&t&&x("text",f(1,1,"common.networkfail"))}function
TJ(t,i){if(1&t){const
e=I();l(0,"div",12)(1,"div",13),_(2,yJ,2,3,"p-message",14),_(3,wJ,2,3,"p-message",15),c(),l(4,"p-button",16),C("onClick",function(){v(e);const
s=d(),r=F(1);return
s.saveForm(),r.form.markAsPristine()}),m(5,"translate"),c()()}if(2&t){const
e=d(),n=F(1);a(2),p("ngIf",e.successCount>0&&0==e.errorCount&&!n.dirty),a(1),p("ngIf",e.errorCount>0),a(1),x("label",f(5,4,"common.save")),p("disabled",!n.dirty||e.setupService.schedulingEnabled)}}let
SJ=(()=>{class
t{constructor(e,n){this.setupService=e,this.mythService=n,this.successCount=0,this.errorCount=0,this.MythFillEnabled=!0,this.EpgDownloadObs={next:s=>{s.bool?this.successCount++:(this.errorCount++,this.currentForm&&this.currentForm.form.markAsDirty())},error:s=>{console.error(s),this.errorCount++,this.currentForm&&this.currentForm.form.markAsDirty()}},this.getEpgDownload()}
ngOnInit(){}ngAfterViewInit(){this.setupService.setCurrentForm(this.currentForm)}getEpgDownload(){this.successCount=0,this.errorCount=0,this.mythService.GetSetting({HostName:"_GLOBAL_",Key:"MythFillEnabled",Default:"1"}).subscribe({next:e=>this.MythFillEnabled="1"==e.String,error:()=>this.errorCount++})}saveForm(){console.log("save
form
clicked"),this.successCount=0,this.errorCount=0,this.mythService.PutSetting({HostName:"_GLOBAL_",Key:"MythFillEnabled",Value:this.MythFillEnabled?"1":"0"}).subscribe(this.EpgDownloadObs)}}return
t.\u0275fac=function(e){return
new(e||t)(D(Me),D(qt))},t.\u0275cmp=z({type:t,selectors:[["app-epg-downloading"]],viewQuery:function(e,n){if(1&e&&W(_J,5),2&e){let
s;V(s=B())&&(n.currentForm=s.first)}},decls:7,vars:0,consts:[["name","epgdownload",1,"ml-3","mr-3"],["epgdownload","ngForm"],[1,"m-5"],["pTemplate","title"],["pTemplate","subtitle"],["pTemplate","content"],["pTemplate","footer"],[1,"grid"],[1,"mb-4","w-full"],[1,"form-group","field"],["inputId","Myth
FillEnabled","name","MythFillEnabled",1,"label","mb-2","w-full",3,"ngModel","binary","label","ngModelChange"],[1,"block"],[1,"grid","nogutter"],[1,"col-12"],["severity","success",3,"text",4,"ngIf"],["severity","error",3,"text",4,"ngIf"],["icon","pi
pi-save","iconPos","left",1,"col","pr-1",3,"label","disabled","onClick"],["severity","success",3,"text"],["severity","error",3,"text"]],template:function(e,n){1&e&&(l(0,"form",0,1)(2,"p-card",2),_(3,bJ,2,3,"ng-template",3),_(4,vJ,0,0,"ng-template",4),_(5,CJ,8,8,"ng-template",5),_(6,TJ,6,6,"ng-template",6),c()())},directives:[ze,Ue,He,Ne,ne,sn,Te,_e,Q,qe,ve],pipes:[ce],styles:[""]}),t})();function
xJ(t,i){if(1&t&&(l(0,"b"),g(1),c()),2&t){const
e=d();a(1),T("\xa0",e.dirtyMessages[0],"")}}function
DJ(t,i){1&t&&k(0,"app-host-address")}function
MJ(t,i){if(1&t&&(l(0,"b"),g(1),c()),2&t){const
e=d();a(1),T("\xa0",e.dirtyMessages[1],"")}}function
kJ(t,i){1&t&&k(0,"app-locale")}function
IJ(t,i){if(1&t&&(l(0,"b"),g(1),c()),2&t){const
e=d();a(1),T("\
xa0",e.dirtyMessages[2],"")}}function
EJ(t,i){1&t&&k(0,"app-misc-settings")}function
RJ(t,i){if(1&t&&(l(0,"b"),g(1),c()),2&t){const
e=d();a(1),T("\xa0",e.dirtyMessages[3],"")}}function
LJ(t,i){1&t&&k(0,"app-eit-scanner")}function
OJ(t,i){if(1&t&&(l(0,"b"),g(1),c()),2&t){const
e=d();a(1),T("\xa0",e.dirtyMessages[4],"")}}function
AJ(t,i){1&t&&k(0,"app-shutdown-wakeup")}function
PJ(t,i){if(1&t&&(l(0,"b"),g(1),c()),2&t){const
e=d();a(1),T("\xa0",e.dirtyMessages[5],"")}}function
FJ(t,i){1&t&&k(0,"app-backend-wakeup")}function
NJ(t,i){if(1&t&&(l(0,"b"),g(1),c()),2&t){const
e=d();a(1),T("\xa0",e.dirtyMessages[6],"")}}function
VJ(t,i){1&t&&k(0,"app-backend-control")}function
BJ(t,i){if(1&t&&(l(0,"b"),g(1),c()),2&t){const
e=d();a(1),T("\xa0",e.dirtyMessages[7],"")}}function
HJ(t,i){1&t&&k(0,"app-jobqueue-backend")}function
qJ(t,i){if(1&t&&(l(0,"b"),g(1),c()),2&t){const
e=d();a(1),T("\xa0",e.dirtyMessages[8],"")}}function
GJ(t,i){1&t&&k(0,"app-jobqueue-global")}function
UJ(t,i){if(1&t&&(l(0,"
b"),g(1),c()),2&t){const
e=d();a(1),T("\xa0",e.dirtyMessages[9],"")}}function
zJ(t,i){1&t&&k(0,"app-jobqueue-commands")}function
jJ(t,i){if(1&t&&(l(0,"b"),g(1),c()),2&t){const
e=d();a(1),T("\xa0",e.dirtyMessages[10],"")}}function
$J(t,i){1&t&&k(0,"app-epg-downloading")}let WJ=(()=>{class
t{constructor(e,n,s){this.setupService=e,this.translate=n,this.router=s,this.m_showHelp=!1,this.currentTab=-1,this.dirtyMessages=["","","","","","","","","","","","","","","",""],this.forms=[,,,,,,,,,,,,,,,,],this.dirtyText="settings.common.unsaved",this.warningText="settings.common.warning",this.setupService.setCurrentForm(null),n.get(this.dirtyText).subscribe(r=>this.dirtyText=r),n.get(this.warningText).subscribe(r=>this.warningText=r)}ngOnInit(){}onTabOpen(e){this.showDirty(),void
0===this.forms[e.index]&&(this.forms[e.index]=this.setupService.getCurrentForm()),this.currentTab=e.index,console.log("onTabOpen"),console.log(e),this.dirtyMessages[this.currentTab]=""}onTabClose(e){this.showDirty()}sho
wDirty(){-1!=this.currentTab&&(this.dirtyMessages[this.currentTab]=this.forms[this.currentTab].dirty?this.dirtyText:"")}showHelp(){this.m_showHelp=!0}confirm(e){return
oe(window.confirm(e))}canDeactivate(){return!(this.forms[this.currentTab]&&this.forms[this.currentTab].dirty||this.dirtyMessages.find(e=>e.length>0))||this.confirm(this.warningText)}onWindowClose(e){(this.forms[this.currentTab]&&this.forms[this.currentTab].dirty||this.dirtyMessages.find(n=>n.length>0))&&(e.preventDefault(),e.returnValue=!1)}}return
t.\u0275fac=function(e){return
new(e||t)(D(Me),D(Oe),D(It))},t.\u0275cmp=z({type:t,selectors:[["app-general-settings"]],hostBindings:function(e,n){1&e&&C("beforeunload",function(r){return
n.onWindowClose(r)},!1,ni)},decls:54,vars:42,consts:[[1,"col-12","w-full","p-0",3,"onClose","onOpen"],[3,"header"],["pTemplate","header"],["pTemplate","content"],[1,"flex","justify-content-end"],["icon","pi
pi-angle-left","iconPos","left",1,"p-3",3,"label","onClick"],["icon","pi
pi-angle-r
ight","iconPos","right",1,"p-3",3,"label","onClick"]],template:function(e,n){1&e&&(l(0,"p-card")(1,"h2"),g(2),m(3,"translate"),c(),l(4,"p-accordion",0),C("onClose",function(r){return
n.onTabClose(r)})("onOpen",function(r){return
n.onTabOpen(r)}),l(5,"p-accordionTab",1),m(6,"translate"),_(7,xJ,2,1,"ng-template",2),_(8,DJ,1,0,"ng-template",3),c(),l(9,"p-accordionTab",1),m(10,"translate"),_(11,MJ,2,1,"ng-template",2),_(12,kJ,1,0,"ng-template",3),c(),l(13,"p-accordionTab",1),m(14,"translate"),_(15,IJ,2,1,"ng-template",2),_(16,EJ,1,0,"ng-template",3),c(),l(17,"p-accordionTab",1),m(18,"translate"),_(19,RJ,2,1,"ng-template",2),_(20,LJ,1,0,"ng-template",3),c(),l(21,"p-accordionTab",1),m(22,"translate"),_(23,OJ,2,1,"ng-template",2),_(24,AJ,1,0,"ng-template",3),c(),l(25,"p-accordionTab",1),m(26,"translate"),_(27,PJ,2,1,"ng-template",2),_(28,FJ,1,0,"ng-template",3),c(),l(29,"p-accordionTab",1),m(30,"translate"),_(31,NJ,2,1,"ng-template",2),_(32,VJ,1,0,"ng-template",3),c(),l(33,"p-accordionTab"
,1),m(34,"translate"),_(35,BJ,2,1,"ng-template",2),_(36,HJ,1,0,"ng-template",3),c(),l(37,"p-accordionTab",1),m(38,"translate"),_(39,qJ,2,1,"ng-template",2),_(40,GJ,1,0,"ng-template",3),c(),l(41,"p-accordionTab",1),m(42,"translate"),_(43,UJ,2,1,"ng-template",2),_(44,zJ,1,0,"ng-template",3),c(),l(45,"p-accordionTab",1),m(46,"translate"),_(47,jJ,2,1,"ng-template",2),_(48,$J,1,0,"ng-template",3),c()(),l(49,"div",4)(50,"p-button",5),C("onClick",function(){return
n.router.navigate(["setupwizard/selectlanguage"])}),m(51,"translate"),c(),l(52,"p-button",6),C("onClick",function(){return
n.router.navigate(["setupwizard/capture-cards"])}),m(53,"translate"),c()()()),2&e&&(a(2),S(f(3,14,"settings.general.title")),a(3),x("header",f(6,16,"settings.hostaddress.title")),a(4),x("header",f(10,18,"settings.locale.title")),a(4),x("header",f(14,20,"settings.misc.title")),a(4),x("header",f(18,22,"settings.eit.title")),a(4),x("header",f(22,24,"settings.shutwake.title")),a(4),x("header",f(26,26,"settings.ba
ckendwake.title")),a(4),x("header",f(30,28,"settings.backendctrl.title")),a(4),x("header",f(34,30,"settings.jobqbackend.title")),a(4),x("header",f(38,32,"settings.jobqglobal.title")),a(4),x("header",f(42,34,"settings.jobqcommands.title")),a(4),x("header",f(46,36,"settings.epgdownload.title")),a(5),x("label",f(51,38,"common.back")),a(2),x("label",f(53,40,"common.next")))},directives:[Ne,Ss,Ts,ne,KK,iQ,dQ,vQ,MQ,PQ,UQ,XQ,aJ,gJ,SJ,ve],pipes:[ce],styles:["@media
screen and (max-width:
48rem){.p-card-body,.p-card-content,.p-accordion-content{padding:0rem!important}}\n"],encapsulation:2}),t})(),Gt=(()=>{class
t{constructor(e){this.httpClient=e,this.diseqcTypes=[{description:"Switch",type:"switch",inactive:!1},{description:"Rotor",type:"rotor",inactive:!1},{description:"Unicable",type:"scr",inactive:!1},{description:"LNB",type:"lnb",inactive:!1}]}GetCaptureCardList(e,n){let
s=(new ye).set("HostName",e).set("CardType",n);return
this.httpClient.get("/Capture/GetCaptureCardList",{params:s})}Ge
tCardTypeList(){return
this.httpClient.get("/Capture/GetCardTypeList",{})}UpdateCaptureCard(e,n,s){return
this.httpClient.post("/Capture/UpdateCaptureCard",{Cardid:e,Setting:n,Value:s})}DeleteCaptureCard(e){return
this.httpClient.post("/Capture/RemoveCardInput",{CardInputId:e})}AddCaptureCard(e){return
this.httpClient.post("/Capture/AddCaptureCard",e)}GetCaptureDeviceList(e){let
n=(new ye).set("CardType",e);return
this.httpClient.get("/Capture/GetCaptureDeviceList",{params:n})}GetDiseqcTreeList(){return
this.httpClient.get("/Capture/GetDiseqcTreeList",{})}AddDiseqcTree(e){return
this.httpClient.post("/Capture/AddDiseqcTree",e)}UpdateDiseqcTree(e){return
this.httpClient.post("/Capture/UpdateDiseqcTree",e)}DeleteDiseqcTree(e){return
this.httpClient.post("/Capture/RemoveDiseqcTree",{DiseqcId:e})}GetDiseqcConfigList(){return
this.httpClient.get("/Capture/GetDiseqcConfigList",{})}AddDiseqcConfig(e){return
this.httpClient.post("/Capture/AddDiseqcConfig",e)}DeleteDiseqcConfig(e){return
con
sole.log(e),this.httpClient.post("/Capture/RemoveDiseqcConfig",{CardId:e})}GetInputGroupList(){return
this.httpClient.get("/Capture/GetUserInputGroupList",{})}SetInputMaxRecordings(e,n){return
this.httpClient.post("/Capture/SetInputMaxRecordings",{InputId:e,Max:n})}AddUserInputGroup(e){return
this.httpClient.post("/Capture/AddUserInputGroup",{Name:e})}LinkInputGroup(e,n){return
this.httpClient.post("/Capture/LinkInputGroup",{InputId:e,InputGroupId:n})}UnlinkInputGroup(e,n){return
this.httpClient.post("/Capture/UnlinkInputGroup",{InputId:e,InputGroupId:n})}GetRecProfileGroupList(e,n,s){let
r=(new
ye).set("GroupId",e).set("ProfileId",n).set("OnlyInUse",s);return
this.httpClient.get("/Capture/GetRecProfileGroupList",{params:r})}AddRecProfile(e,n,s,r){return
this.httpClient.post("/Capture/AddRecProfile",{GroupId:e,ProfileName:n,VideoCodec:s,AudioCodec:r})}DeleteRecProfile(e){return
this.httpClient.post("/Capture/DeleteRecProfile",{ProfileId:e})}UpdateRecProfile(e,n,s){return
this.httpCl
ient.post("/Capture/UpdateRecProfile",{ProfileId:e,VideoCodec:n,AudioCodec:s})}UpdateRecProfileParam(e,n,s){return
this.httpClient.post("/Capture/UpdateRecProfileParam",{ProfileId:e,Name:n,Value:s})}GetCardSubType(e){let
n=(new ye).set("cardid",e);return
this.httpClient.get("/Capture/GetCardSubType",{params:n})}}return
t.\u0275fac=function(e){return
new(e||t)(K(Bi))},t.\u0275prov=X({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();function
KJ(t,i){if(1&t){const
e=I();l(0,"p-button",14),C("onClick",function(){return
v(e),d().displayModal=!1}),m(1,"translate"),c(),l(2,"p-button",15),C("onClick",function(){return
v(e),d().newCard()}),m(3,"translate"),c()}if(2&t){const
e=d();x("label",f(1,3,"common.cancel")),a(2),x("label",f(3,5,"common.ok")),p("disabled",""==e.selectedCardType.CardType)}}function
QJ(t,i){if(1&t){const
e=I();l(0,"p-button",16),C("click",function(){return
v(e),d().displayDeleteAllonHost=!1}),m(1,"translate"),c(),l(2,"p-button",17),C("click",function(){return
v(e),d(
).deleteAllOnHost()}),m(3,"translate"),c()}2&t&&(x("label",f(1,2,"common.no")),a(2),x("label",f(3,4,"common.yes")))}function
JJ(t,i){if(1&t){const
e=I();l(0,"p-button",16),C("click",function(){return
v(e),d().displayDeleteAll=!1}),m(1,"translate"),c(),l(2,"p-button",17),C("click",function(){return
v(e),d().deleteAllOnAllHosts()}),m(3,"translate"),c()}2&t&&(x("label",f(1,2,"common.no")),a(2),x("label",f(3,4,"common.yes")))}function
YJ(t,i){1&t&&(l(0,"div",18),k(1,"br")(2,"p-message",19),m(3,"translate"),k(4,"br"),c()),2&t&&(a(2),x("text",f(3,1,"settings.common.successful_delete")))}function
ZJ(t,i){1&t&&(l(0,"div",18),k(1,"br")(2,"p-message",20),m(3,"translate"),k(4,"br"),c()),2&t&&(a(2),x("text",f(3,1,"common.networkfail")))}function
XJ(t,i){if(1&t&&(l(0,"div",24)(1,"div",25),g(2),l(3,"b"),g(4),c()()()),2&t){const
e=d().index,n=d();a(2),yo(" ",n.m_CaptureCardsFiltered[e].CardType,"
",n.m_CaptureCardsFiltered[e].VideoDevice,"
(",n.m_CaptureCardsFiltered[e].DisplayName,") "),a(2),T("\
xa0",n.dirtyMessages[e],"")}}function eY(t,i){if(1&t){const
e=I();l(0,"p-button",16),C("click",function(){v(e);const
s=d(2).index;return
d().displayDeleteThis[s]=!1}),m(1,"translate"),c(),l(2,"p-button",17),C("click",function(){v(e);const
s=d(2).index;return
d().deleteThis(s)}),m(3,"translate"),c()}2&t&&(x("label",f(1,2,"common.no")),a(2),x("label",f(3,4,"common.yes")))}function
tY(t,i){if(1&t&&k(0,"app-ceton",31),2&t){const
e=d(2).index,n=d();p("card",n.m_CaptureCardsFiltered[e])("cardList",n.m_CaptureCardList)}}function
nY(t,i){if(1&t&&k(0,"app-dvb",32),2&t){const
e=d(2).index,n=d();p("card",n.m_CaptureCardsFiltered[e])("cardList",n.m_CaptureCardList)("diseqcTreeList",n.diseqcTreeList)("parent",n)}}function
iY(t,i){if(1&t&&k(0,"app-external",31),2&t){const
e=d(2).index,n=d();p("card",n.m_CaptureCardsFiltered[e])("cardList",n.m_CaptureCardList)}}function
sY(t,i){if(1&t&&k(0,"app-hdhomerun",31),2&t){const
e=d(2).index,n=d();p("card",n.m_CaptureCardsFiltered[e])("cardList",n.m_Captur
eCardList)}}function
rY(t,i){if(1&t&&k(0,"app-iptv",31),2&t){const
e=d(2).index,n=d();p("card",n.m_CaptureCardsFiltered[e])("cardList",n.m_CaptureCardList)}}function
oY(t,i){if(1&t&&k(0,"app-import",31),2&t){const
e=d(2).index,n=d();p("card",n.m_CaptureCardsFiltered[e])("cardList",n.m_CaptureCardList)}}function
aY(t,i){if(1&t&&k(0,"app-demo",31),2&t){const
e=d(2).index,n=d();p("card",n.m_CaptureCardsFiltered[e])("cardList",n.m_CaptureCardList)}}function
lY(t,i){if(1&t&&k(0,"app-v4l2",31),2&t){const
e=d(2).index,n=d();p("card",n.m_CaptureCardsFiltered[e])("cardList",n.m_CaptureCardList)}}function
cY(t,i){if(1&t&&k(0,"app-hdpvr",31),2&t){const
e=d(2).index,n=d();p("card",n.m_CaptureCardsFiltered[e])("cardList",n.m_CaptureCardList)}}function
uY(t,i){if(1&t&&k(0,"app-satip",31),2&t){const
e=d(2).index,n=d();p("card",n.m_CaptureCardsFiltered[e])("cardList",n.m_CaptureCardList)}}function
dY(t,i){if(1&t&&k(0,"app-vbox",31),2&t){const
e=d(2).index,n=d();p("card",n.m_CaptureCardsFiltered[e])
("cardList",n.m_CaptureCardList)}}function
pY(t,i){if(1&t&&k(0,"app-firewire",31),2&t){const
e=d(2).index,n=d();p("card",n.m_CaptureCardsFiltered[e])("cardList",n.m_CaptureCardList)}}function
hY(t,i){1&t&&(l(0,"div"),k(1,"br"),g(2,"Not Supported
"),c())}const
Dd=function(){return{width:"50vw"}},mY=function(t,i,e){return{CardType:t,VideoDevice:i,DisplayName:e}};function
fY(t,i){if(1&t){const
e=I();l(0,"p-button",26),C("onClick",function(){v(e);const
s=d().index;return
d().displayDeleteThis[s]=!0}),m(1,"translate"),c(),l(2,"p-dialog",2),C("visibleChange",function(s){v(e);const
r=d().index;return
d().displayDeleteThis[r]=s}),m(3,"translate"),l(4,"h2"),g(5),m(6,"translate"),c(),l(7,"p"),g(8),m(9,"translate"),c(),_(10,eY,4,6,"ng-template",4),c(),l(11,"div",27),_(12,tY,1,2,"app-ceton",28),_(13,nY,1,4,"app-dvb",29),_(14,iY,1,2,"app-external",28),_(15,sY,1,2,"app-hdhomerun",28),_(16,rY,1,2,"app-iptv",28),_(17,oY,1,2,"app-import",28),_(18,aY,1,2,"app-demo",28),_(19,lY,1,2,"app-v4l2",28),_(20
,cY,1,2,"app-hdpvr",28),_(21,uY,1,2,"app-satip",28),_(22,dY,1,2,"app-vbox",28),_(23,pY,1,2,"app-firewire",28),_(24,hY,3,0,"div",30),c()}if(2&t){const
e=d().index,n=d();x("label",f(1,24,"settings.capture.delete_this")),p("disabled",!n.m_CaptureCardsFiltered[e].CardId||n.setupService.schedulingEnabled),a(2),q(A(33,Dd)),x("header",f(3,26,"settings.capture.delete_this")),p("visible",n.displayDeleteThis[e])("modal",!0)("draggable",!1)("resizable",!1),a(3),S(f(6,28,"settings.common.ru_sure")),a(3),S(Dt(9,30,"settings.capture.delete_details",Qt(34,mY,n.m_CaptureCardsFiltered[e].CardType,n.m_CaptureCardsFiltered[e].VideoDevice,n.m_CaptureCardsFiltered[e].DisplayName))),a(3),p("ngSwitch",n.m_CaptureCardsFiltered[e].CardType),a(1),p("ngSwitchCase","CETON"),a(1),p("ngSwitchCase","DVB"),a(1),p("ngSwitchCase","EXTERNAL"),a(1),p("ngSwitchCase","HDHOMERUN"),a(1),p("ngSwitchCase","FREEBOX"),a(1),p("ngSwitchCase","IMPORT"),a(1),p("ngSwitchCase","DEMO"),a(1),p("ngSwitchCase","V4L2ENC"),a(1),p("ngSwit
chCase","HDPVR"),a(1),p("ngSwitchCase","SATIP"),a(1),p("ngSwitchCase","VBOX"),a(1),p("ngSwitchCase","FIREWIRE")}}function
gY(t,i){if(1&t){const
e=I();l(0,"p-accordionTab",21),C("selectedChange",function(s){const
o=v(e).index;return
d().activeTab[o]=s}),_(1,XJ,5,4,"ng-template",22),_(2,fY,25,38,"ng-template",23),c()}if(2&t){const
e=i.index,n=d();p("disabled",n.disabledTab[e])("selected",n.activeTab[e])}}const
_Y=function(){return{height:"50vh"}},pS=function(t){return{host:t}};let
hS=(()=>{class
t{constructor(e,n,s,r,o){this.mythService=e,this.router=n,this.captureCardService=s,this.setupService=r,this.translate=o,this.currentTab=-1,this.deletedTab=-1,this.dirtyMessages=[],this.forms=[],this.disabledTab=[],this.activeTab=[],this.displayDeleteThis=[],this.dirtyText="settings.common.unsaved",this.warningText="settings.common.warning",this.deletedText="settings.common.deleted",this.newText="settings.common.new",this.m_hostName="",this.displayModal=!1,this.selectedCardType={CardType:"",De
scription:""},this.displayDeleteAllonHost=!1,this.displayDeleteAll=!1,this.successCount=0,this.expectedCount=0,this.errorCount=0,this.deleteAll=!1,this.delObserver={next:u=>{u.bool?(this.successCount++,this.successCount==this.expectedCount&&(this.deleteAll?(this.loadCards(!0),this.deleteAll=!1):this.deletedTab>-1&&(this.dirtyMessages[this.deletedTab]=this.deletedText,this.disabledTab[this.deletedTab]=!0,this.activeTab[this.deletedTab]=!1,this.deletedTab=-1))):(this.errorCount++,this.deletedTab=-1,this.deleteAll=!1)},error:u=>{console.error(u),this.errorCount++,this.deleteAll=!1}},this.setupService.setCurrentForm(null),this.mythService.GetHostName().subscribe(u=>{this.m_hostName=u.String,this.loadCards(!0)}),o.get(this.dirtyText).subscribe(u=>this.dirtyText=u),o.get(this.warningText).subscribe(u=>this.warningText=u),o.get(this.deletedText).subscribe(u=>this.deletedText=u),o.get(this.newText).subscribe(u=>this.newText=u),this.captureCardService.GetCardTypeList().subscribe(u=>{this.car
dTypes=u.CardTypeList.CardTypes,this.cardTypes.forEach(h=>{h.Inactive=t.supportedCardTypes.indexOf(h.CardType)<0})})}loadCards(e){this.m_CaptureCardList$=this.captureCardService.GetCaptureCardList("",""),this.m_CaptureCardList$.subscribe(n=>{this.m_CaptureCardList=n,e&&this.filterCards()})}filterCards(){this.m_CaptureCardsFiltered=this.m_CaptureCardList.CaptureCardList.CaptureCards.filter(e=>0==e.ParentId&&e.HostName==this.m_hostName),this.dirtyMessages=[],this.forms=[],this.disabledTab=[],this.activeTab=[],this.displayDeleteThis=[];for(let
e=0;e<this.m_CaptureCardsFiltered.length;e++)this.dirtyMessages.push(""),this.disabledTab.push(!1),this.activeTab.push(!1),this.displayDeleteThis.push(!1)}ngOnInit(){this.loadDiseqc()}loadDiseqc(){this.captureCardService.GetDiseqcTreeList().subscribe({next:e=>{this.diseqcTreeList=e},error:e=>{console.log("GetDiseqcTreeList",e),this.errorCount++}})}onTabOpen(e){this.successCount+this.errorCount>=this.expectedCount&&(this.errorCount=0,this.successC
ount=0,this.expectedCount=0),this.showDirty();let
n=this.setupService.getCurrentForm();null!=n&&(this.forms[e.index]=n),this.setupService.setCurrentForm(null),this.currentTab=e.index,this.dirtyMessages[this.currentTab]=""}onTabClose(e){this.showDirty(),this.currentTab=-1}showDirty(){-1==this.currentTab||!this.forms[this.currentTab]||this.disabledTab[this.currentTab]||(this.dirtyMessages[this.currentTab]=this.forms[this.currentTab].dirty?this.dirtyText:this.m_CaptureCardsFiltered[this.currentTab].CardId?"":this.newText)}newCard(){this.displayModal=!1;let
e={CardType:this.selectedCardType.CardType,HostName:this.m_hostName,ChannelTimeout:3e3,SignalTimeout:1e3};switch(e.CardType){case"EXTERNAL":e.ChannelTimeout=2e4;break;case"FREEBOX":e.VideoDevice="http://mafreebox.freebox.fr/freeboxtv/playlist.m3u",e.ChannelTimeout=3e4;break;case"SATIP":e.DVBDiSEqCType=1}for(let
n=0;n<this.activeTab.length;n++)this.activeTab[n]=!1;this.dirtyMessages.push(this.newText),this.disabledTab.push(!1),this.ac
tiveTab.push(!1),this.displayDeleteThis.push(!1),this.m_CaptureCardsFiltered.push(e),this.selectedCardType={CardType:"",Description:""}}deleteThis(e){let
n=this.m_CaptureCardsFiltered[e].CardId;if(!this.deleteAll){if(this.successCount+this.errorCount<this.expectedCount)return;this.errorCount=0,this.successCount=0,this.expectedCount=0,this.displayDeleteThis[e]=!1,this.deletedTab=e}this.m_CaptureCardList.CaptureCardList.CaptureCards.forEach(s=>{s.ParentId==n&&(console.log("DeleteThis
(parent):",s.CardId),this.expectedCount++,this.captureCardService.DeleteCaptureCard(s.CardId).subscribe(this.delObserver))}),this.m_CaptureCardsFiltered[e].DiSEqCId=0,console.log("DeleteThis:",n),this.expectedCount++,this.captureCardService.DeleteCaptureCard(n).subscribe(this.delObserver)}deleteAllOnHost(){if(!(this.successCount+this.errorCount<this.expectedCount)){this.errorCount=0,this.successCount=0,this.expectedCount=0,this.displayDeleteAllonHost=!1,this.deletedTab=-1,this.deleteAll=!0;for(let
e=0;e<t
his.m_CaptureCardsFiltered.length;e++)!this.disabledTab[e]&&this.m_CaptureCardsFiltered[e].CardId&&this.deleteThis(e)}}deleteAllOnAllHosts(){this.successCount+this.errorCount<this.expectedCount||(this.displayDeleteAll=!1,this.deleteAllOnHost(),this.m_CaptureCardList.CaptureCardList.CaptureCards.forEach(e=>{e.HostName!=this.m_hostName&&(e.DiSEqCId=0,console.log("DeleteThis
(other
host):",e.CardId),this.expectedCount++,this.captureCardService.DeleteCaptureCard(e.CardId).subscribe(this.delObserver))}))}confirm(e){return
oe(window.confirm(e))}canDeactivate(){let
e=this.setupService.getCurrentForm();return!(this.forms[this.currentTab]&&this.forms[this.currentTab].dirty||this.dirtyMessages.find(n=>n==this.dirtyText)||e&&e.dirty)||this.confirm(this.warningText)}onWindowClose(e){let
n=this.setupService.getCurrentForm();(this.forms[this.currentTab]&&this.forms[this.currentTab].dirty||this.dirtyMessages.find(s=>s==this.dirtyText)||n&&n.dirty)&&(e.preventDefault(),e.returnValue=!1)}}return
t.s
upportedCardTypes=["CETON","DVB","EXTERNAL","HDHOMERUN","FREEBOX","IMPORT","DEMO","V4L2ENC","HDPVR","SATIP","VBOX","FIREWIRE"],t.\u0275fac=function(e){return
new(e||t)(D(qt),D(It),D(Gt),D(Me),D(Oe))},t.\u0275cmp=z({type:t,selectors:[["app-capture-cards"]],hostBindings:function(e,n){1&e&&C("beforeunload",function(r){return
n.onWindowClose(r)},!1,ni)},decls:42,vars:72,consts:[[1,"m-5"],["icon","pi
pi-plus-circle","styleClass","p-button-plain",3,"label","onClick"],[3,"header","visible","modal","draggable","resizable","visibleChange"],["optionLabel","Description","optionDisabled","Inactive",3,"options","ngModel","listStyle","ngModelChange","onDblClick"],["pTemplate","footer"],["styleClass","p-button-warning","icon","pi
pi-trash",3,"label","disabled","click"],["styleClass","p-button-danger","icon","pi
pi-trash","iconPos","left",3,"label","disabled","click"],[1,"grid","nogutter"],["class","col-12",4,"ngIf"],[1,"col-12","w-full",3,"onClose","onOpen"],[3,"disabled","selected","selectedChang
e",4,"ngFor","ngForOf"],[1,"flex","justify-content-end"],["icon","pi
pi-angle-left","iconPos","left",1,"p-3",3,"label","onClick"],["icon","pi
pi-angle-right","iconPos","right",1,"p-3",3,"label","onClick"],["icon","pi
pi-times-circle","styleClass","p-button-plain",3,"label","onClick"],["icon","pi
pi-check-circle","styleClass","p-button-plain",3,"label","disabled","onClick"],["icon","pi
pi-times-circle","styleClass","p-button-plain",3,"label","click"],["icon","pi
pi-check-circle","styleClass","p-button-plain",3,"label","click"],[1,"col-12"],["severity","success",3,"text"],["severity","error",3,"text"],[3,"disabled","selected","selectedChange"],["pTemplate","header"],["pTemplate","content"],[1,"grid","w-full"],[1,"col-11","pr-1"],["styleClass","p-button-warning","icon","pi
pi-trash",3,"label","disabled","onClick"],[3,"ngSwitch"],[3,"card","cardList",4,"ngSwitchCase"],[3,"card","cardList","diseqcTreeList","parent",4,"ngSwitchCase"],[4,"ngSwitchDefault"],[3,"card","cardList"],[3,"card","
cardList","diseqcTreeList","parent"]],template:function(e,n){1&e&&(l(0,"p-card",0)(1,"h2"),g(2),m(3,"translate"),c(),l(4,"p-button",1),C("onClick",function(){return
n.displayModal=!0}),m(5,"translate"),c(),l(6,"p-dialog",2),C("visibleChange",function(r){return
n.displayModal=r}),m(7,"translate"),l(8,"p"),g(9),m(10,"translate"),c(),l(11,"p-listbox",3),C("ngModelChange",function(r){return
n.selectedCardType=r})("onDblClick",function(){return
n.newCard()}),c(),_(12,KJ,4,7,"ng-template",4),c(),g(13," \xa0
"),l(14,"p-button",5),C("click",function(){return
n.displayDeleteAllonHost=!0}),m(15,"translate"),c(),l(16,"p-dialog",2),C("visibleChange",function(r){return
n.displayDeleteAllonHost=r}),m(17,"translate"),l(18,"h2"),g(19),m(20,"translate"),c(),_(21,QJ,4,6,"ng-template",4),c(),g(22,"
\xa0 "),l(23,"p-button",6),C("click",function(){return
n.displayDeleteAll=!0}),m(24,"translate"),c(),l(25,"p-dialog",2),C("visibleChange",function(r){return
n.displayDeleteAll=r}),m(26,"translate"),l(27,"h2
"),g(28),m(29,"translate"),c(),_(30,JJ,4,6,"ng-template",4),c(),k(31,"br"),l(32,"div",7),_(33,YJ,5,3,"div",8),_(34,ZJ,5,3,"div",8),c(),l(35,"p-accordion",9),C("onClose",function(r){return
n.onTabClose(r)})("onOpen",function(r){return
n.onTabOpen(r)}),_(36,gY,3,2,"p-accordionTab",10),c(),l(37,"div",11)(38,"p-button",12),C("onClick",function(){return
n.router.navigate(["setupwizard/general"])}),m(39,"translate"),c(),l(40,"p-button",13),C("onClick",function(){return
n.router.navigate(["setupwizard/recording-profiles"])}),m(41,"translate"),c()()()),2&e&&(a(2),S(f(3,38,"settings.capture.title")),a(2),x("label",f(5,40,"settings.capture.new_capture_card")),a(2),q(A(64,Dd)),x("header",f(7,42,"settings.capture.new_capture_card")),p("visible",n.displayModal)("modal",!0)("draggable",!1)("resizable",!1),a(3),S(f(10,44,"settings.capture.select_type")),a(2),p("options",n.cardTypes)("ngModel",n.selectedCardType)("listStyle",A(65,_Y)),a(3),x("label",Dt(15,46,"settings.capture.delete_on_host",U(66,p
S,n.m_hostName))),p("disabled",n.setupService.schedulingEnabled),a(2),q(A(68,Dd)),x("header",Dt(17,49,"settings.capture.delete_on_host",U(69,pS,n.m_hostName))),p("visible",n.displayDeleteAllonHost)("modal",!0)("draggable",!1)("resizable",!1),a(3),S(f(20,52,"settings.common.ru_sure")),a(4),x("label",f(24,54,"settings.capture.delete_all")),p("disabled",n.setupService.schedulingEnabled),a(2),q(A(71,Dd)),x("header",f(26,56,"settings.capture.delete_all_all")),p("visible",n.displayDeleteAll)("modal",!0)("draggable",!1)("resizable",!1),a(3),S(f(29,58,"settings.common.ru_sure")),a(5),p("ngIf",n.expectedCount&&n.successCount==n.expectedCount),a(1),p("ngIf",n.errorCount>0),a(2),p("ngForOf",n.m_CaptureCardsFiltered),a(2),x("label",f(39,60,"common.back")),a(2),x("label",f(41,62,"common.next")))},styles:["@media
screen and (max-width:
48rem){.p-card-body,.p-card-content,.p-accordion-content{padding:0rem!important}}\n"],encapsulation:2}),t})();function
bY(t,i){if(1&t&&(l(0,"div",10)(1,"div",11),g
(2),l(3,"b"),g(4),c()()()),2&t){const
e=d(2),n=e.$implicit,s=e.index,r=d();a(2),T(" ",n.Name,"
"),a(2),T("\xa0",r.dirtyMessages[s],"")}}function
vY(t,i){1&t&&_(0,bY,5,2,"div",9),2&t&&p("ngIf",d(2).readyCount>0)}function
CY(t,i){if(1&t&&k(0,"app-profile-group",12),2&t){const
e=d().$implicit,n=d();p("group",e)("parentComponent",n)}}function
yY(t,i){if(1&t){const
e=I();l(0,"p-accordionTab",6),C("selectedChange",function(s){const
o=v(e).index;return
d().activeTab[o]=s}),_(1,vY,1,1,"ng-template",7),_(2,CY,1,2,"ng-template",8),c()}if(2&t){const
e=i.index;p("selected",d().activeTab[e])}}let mS=(()=>{class
t{constructor(e,n,s,r){this.captureCardService=e,this.router=n,this.translate=s,this.setupService=r,this.currentTab=-1,this.deletedTab=-1,this.dirtyMessages=[],this.activeTab=[],this.readyCount=0,this.profileGroups=[],this.dirtyText="settings.common.unsaved",this.warningText="settings.common.warning",this.groups=[],this.setupService.setCurrentForm(null),this.loadGroups(),s.get(this.dirtyT
ext).subscribe(o=>this.dirtyText=o),s.get(this.warningText).subscribe(o=>this.warningText=o)}loadGroups(){this.captureCardService.GetRecProfileGroupList(0,0,!0).subscribe(n=>{this.groups=n.RecProfileGroupList.RecProfileGroups,this.readyCount++})}ngOnInit(){}onTabOpen(e){this.currentTab=e.index,this.dirtyMessages[this.currentTab]=""}onTabClose(e){this.showDirty(),this.currentTab=-1}showDirty(){-1==this.currentTab||!this.profileGroups[this.currentTab]||(this.dirtyMessages[this.currentTab]=this.profileGroups[this.currentTab].allClean()?"":this.dirtyText)}confirm(e){return
oe(window.confirm(e))}canDeactivate(){let e=!0;return
this.profileGroups.forEach(n=>{n.allClean()||(e=!1)}),!!e||this.confirm(this.warningText)}onWindowClose(e){let
n=!0;this.profileGroups.forEach(s=>{s.allClean()||(n=!1)}),n||(e.preventDefault(),e.returnValue=!1)}}return
t.\u0275fac=function(e){return
new(e||t)(D(Gt),D(It),D(Oe),D(Me))},t.\u0275cmp=z({type:t,selectors:[["app-recording-profiles"]],hostBindings:functio
n(e,n){1&e&&C("beforeunload",function(r){return
n.onWindowClose(r)},!1,ni)},decls:11,vars:10,consts:[[1,"md:m-5"],[1,"col-12","w-full",3,"onOpen","onClose"],[3,"selected","selectedChange",4,"ngFor","ngForOf"],[1,"flex","justify-content-end"],["icon","pi
pi-angle-left","iconPos","left",1,"p-3",3,"label","onClick"],["icon","pi
pi-angle-right","iconPos","right",1,"p-3",3,"label","onClick"],[3,"selected","selectedChange"],["pTemplate","header"],["pTemplate","content"],["class","grid
w-full",4,"ngIf"],[1,"grid","w-full"],[1,"col-9","pr-1"],[3,"group","parentComponent"]],template:function(e,n){1&e&&(l(0,"p-card",0)(1,"h2"),g(2),m(3,"translate"),c(),l(4,"p-accordion",1),C("onOpen",function(r){return
n.onTabOpen(r)})("onClose",function(r){return
n.onTabClose(r)}),_(5,yY,3,1,"p-accordionTab",2),c(),l(6,"div",3)(7,"p-button",4),C("onClick",function(){return
n.router.navigate(["setupwizard/capture-cards"])}),m(8,"translate"),c(),l(9,"p-button",5),C("onClick",function(){return
n.router.navigat
e(["setupwizard/video-sources"])}),m(10,"translate"),c()()()),2&e&&(a(2),S(f(3,4,"settings.rprofiles.title")),a(3),p("ngForOf",n.groups),a(2),x("label",f(8,6,"common.back")),a(2),x("label",f(10,8,"common.next")))},styles:["@media
screen and (max-width:
48rem){.p-card-body,.p-card-content,.p-accordion-content{padding:0rem!important}}\n"],encapsulation:2}),t})(),Or=(()=>{class
t{constructor(e){this.httpClient=e}AddDBChannel(e){return
this.httpClient.post("/Channel/AddDBChannel",e)}UpdateDBChannel(e){return
this.httpClient.post("/Channel/UpdateDBChannel",e)}AddVideoSource(e){return
this.httpClient.post("/Channel/AddVideoSource",e)}FetchChannelsFromSource(e){let
n=(new
ye).set("SourceId",e.SourceId).set("CardId",e.CardId).set("WaitForFinish",e.WaitForFinish);return
this.httpClient.get("/Channel/FetchChannelsFromSource",{params:n})}GetChannelInfo(e){let
n=(new ye).set("ChanID",e);return
this.httpClient.get("/Channel/GetChannelInfo",{params:n})}GetChannelInfoList(e){let
n=new ye;return vo
id 0!==e.SourceID&&(n=n.set("SourceID",e.SourceID)),void
0!==e.ChannelGroupID&&(n=n.set("ChannelGroupID",e.ChannelGroupID)),void
0!==e.StartIndex&&(n=n.set("StartIndex",e.StartIndex)),void
0!==e.Count&&(n=n.set("Count",e.Count)),void
0!==e.OnlyVisible&&(n=n.set("OnlyVisible",e.OnlyVisible)),void
0!==e.Details&&(n=n.set("Details",e.Details)),void
0!==e.OrderByName&&(n=n.set("OrderByName",e.OrderByName)),void
0!==e.GroupByCallsign&&(n=n.set("GroupByCallsign",e.GroupByCallsign)),void
0!==e.OnlyTunable&&(n=n.set("OnlyTunable",e.OnlyTunable)),this.httpClient.get("/Channel/GetChannelInfoList",{params:n})}GetDDLineupList(e){let
n=(new
ye).set("Source",e.Source).set("UserId",e.UserId).set("Password",e.Password);return
this.httpClient.get("/Channel/GetDDLineupList",{params:n})}GetVideoMultiplex(e){let
n=(new ye).set("MplexID",e);return
this.httpClient.get("/Channel/GetVideoMultiplex",{params:n})}GetVideoMultiplexList(e){let
n=(new ye).set("SourceID",e.SourceID);return e.StartIndex&&(n=n.set(
"StartIndex",e.StartIndex)),e.Count&&(n=n.set("Count",e.Count)),this.httpClient.get("/Channel/GetVideoMultiplexList",{params:n})}GetVideoSource(e){let
n=(new ye).set("SourceID",e);return
this.httpClient.get("/Channel/GetVideoSource",{params:n})}GetVideoSourceList(){return
this.httpClient.get("/Channel/GetVideoSourceList")}GetXMLTVIdList(e){let n=(new
ye).set("SourceID",e);return
this.httpClient.get("/Channel/GetXMLTVIdList",{params:n})}GetAvailableChanid(){return
this.httpClient.get("/Channel/GetAvailableChanid",{})}RemoveDBChannel(e){return
this.httpClient.post("/Channel/RemoveDBChannel",{ChannelID:e})}RemoveVideoSource(e){return
this.httpClient.post("/Channel/RemoveVideoSource",{SourceId:e})}UpdateVideoSource(e){return
this.httpClient.post("/Channel/UpdateVideoSource",e)}GetGrabberList(){return
this.httpClient.get("/Channel/GetGrabberList")}GetFreqTableList(){return
this.httpClient.get("/Channel/GetFreqTableList")}GetCommMethodList(){return
this.httpClient.get("/Channel/GetCommMet
hodList")}StartScan(e){return
this.httpClient.post("/Channel/StartScan",e)}GetScanStatus(){return
this.httpClient.get("/Channel/GetScanStatus")}StopScan(e){return
this.httpClient.post("/Channel/StopScan",{Cardid:e})}GetScanList(e){let n=(new
ye).set("SourceID",e);return
this.httpClient.get("/Channel/GetScanList",{params:n})}SendScanDialogResponse(e){return
this.httpClient.post("/Channel/SendScanDialogResponse",e)}}return
t.\u0275fac=function(e){return
new(e||t)(K(Bi))},t.\u0275prov=X({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();const
wY=["vsourceform"],TY=["top"];function
SY(t,i){1&t&&(g(0),m(1,"translate")),2&t&&T("
",f(1,1,"settings.vsource.item_title")," ")}function
xY(t,i){}function
DY(t,i){if(1&t&&(l(0,"div")(1,"small",34),g(2),c()()),2&t){const
e=d(2);a(2),T(" ",e.work.errorMessage," ")}}const
fS=function(){return{minWidth:"80%"}};function MY(t,i){if(1&t){const
e=I();l(0,"p-dropdown",35,36),C("ngModelChange",function(s){return
v(e),d(2).videoSource.Grabber=s})("onCha
nge",function(){return v(e),d(2).checkName()}),c()}if(2&t){const
e=d(2);q(A(5,fS)),p("options",e.grabberList.GrabberList.Grabbers)("ngModel",e.videoSource.Grabber)("editable",!1)}}function
kY(t,i){if(1&t){const
e=I();l(0,"div",10)(1,"label",37),g(2),m(3,"translate"),c(),l(4,"p"),g(5),m(6,"translate"),l(7,"a",38),g(8,"XMLTV"),c()(),l(9,"table")(10,"tr")(11,"td",39),g(12),c(),l(13,"td",40)(14,"button",41),C("click",function(){return
v(e),d(2).copyConfigure()}),m(15,"translate"),c()()()()()}if(2&t){const
e=d(2);a(2),T(" ",f(3,4,"settings.vsource.grabberconfig_label"),"
"),a(3),T(" ",f(6,6,"settings.vsource.grabberconfig_desc"),"
"),a(7),T(" ",e.configCommand,"
"),a(2),x("pTooltip",f(15,8,"settings.common.clipboard_tooltip"))}}function
IY(t,i){if(1&t){const
e=I();l(0,"p-dropdown",42,43),C("ngModelChange",function(s){return
v(e),d(2).videoSource.FreqTable=s}),c()}if(2&t){const
e=d(2);q(A(5,fS)),p("options",e.freqTableList.FreqTableList)("ngModel",e.videoSource.FreqTable)("editable",!1)}}
function EY(t,i){if(1&t){const
e=I();l(0,"div",8)(1,"div",9)(2,"div",10)(3,"label",11),g(4),m(5,"translate"),c(),l(6,"input",12,13),C("ngModelChange",function(s){return
v(e),d().videoSource.SourceName=s})("change",function(){return
v(e),d().checkName()}),c(),_(8,DY,3,1,"div",14),l(9,"small",15),g(10),m(11,"translate"),c()(),l(12,"div",10)(13,"label",16),g(14),m(15,"translate"),c(),_(16,MY,2,6,"p-dropdown",17),l(17,"small",15),g(18),m(19,"translate"),c()(),_(20,kY,16,10,"div",18),l(21,"div",10)(22,"p-checkbox",19,20),C("ngModelChange",function(s){return
v(e),d().videoSource.UseEIT=s}),m(24,"translate"),c(),l(25,"small",15),g(26),m(27,"translate"),c()(),l(28,"div",10)(29,"label",21),g(30),m(31,"translate"),c(),_(32,IY,2,6,"p-dropdown",22),l(33,"small",15),g(34),m(35,"translate"),c()(),l(36,"div",10)(37,"label",23),g(38),m(39,"translate"),c(),l(40,"p-inputNumber",24),C("ngModelChange",function(s){return
v(e),d().videoSource.ScanFrequency=s}),c(),l(41,"small",15),g(42),m(43,"translate")
,c()(),l(44,"div",10)(45,"label",25),g(46),m(47,"translate"),c(),l(48,"p-inputNumber",26),C("ngModelChange",function(s){return
v(e),d().videoSource.NITId=s}),c(),l(49,"small",15),g(50),m(51,"translate"),c()(),l(52,"div",10)(53,"label",27),g(54),m(55,"translate"),c(),l(56,"p-inputNumber",28),C("ngModelChange",function(s){return
v(e),d().videoSource.BouquetId=s}),c(),l(57,"small",15),g(58),m(59,"translate"),l(60,"a",29),g(61,"DVB
UK"),c()()(),l(62,"div",10)(63,"label",30),g(64),m(65,"translate"),c(),l(66,"p-inputNumber",31),C("ngModelChange",function(s){return
v(e),d().videoSource.RegionId=s}),c(),l(67,"small",15),g(68),m(69,"translate"),l(70,"a",29),g(71,"DVB
UK"),c()()(),l(72,"div",10)(73,"label",32),g(74),m(75,"translate"),c(),l(76,"p-inputNumber",33),C("ngModelChange",function(s){return
v(e),d().videoSource.LCNOffset=s}),c(),l(77,"small",15),g(78),m(79,"translate"),c()()()()}if(2&t){const
e=d();a(4),S(f(5,54,"settings.vsource.source_label")),a(2),p("ngModel",e.videoSource.SourceNa
me)("disabled",e.videoSource.Id>0)("maxlength",50),a(2),p("ngIf",e.work.errorMessage),a(2),T("
",f(11,56,"settings.vsource.source_desc")," "),a(4),T("
",f(15,58,"settings.vsource.grabber_label"),"
"),a(2),p("ngIf",e.grabberList.GrabberList.Grabbers.length>0),a(2),T("
",f(19,60,"settings.vsource.grabber_desc"),"
"),a(2),p("ngIf",e.configCommand.length>0),a(2),x("label",f(24,62,"settings.vsource.eit_label")),p("ngModel",e.videoSource.UseEIT)("binary",!0),a(4),T("
",f(27,64,"settings.vsource.eit_desc")," "),a(4),T("
",f(31,66,"settings.vsource.freqtable_label"),"
"),a(2),p("ngIf",e.freqTableList.FreqTableList.length>0),a(2),T("
",f(35,68,"settings.vsource.freqtable_desc")," "),a(4),T("
",f(39,70,"settings.vsource.scanfreq_label"),"
"),a(2),p("ngModel",e.videoSource.ScanFrequency)("min",0)("max",999999999),a(2),T("
",f(43,72,"settings.vsource.scanfreq_desc")," "),a(4),T("
",f(47,74,"settings.vsource.netid_label"),"
"),a(2),p("ngModel",e.videoSource.NITId)("showButtons",!0)("min",-1)("ma
x",65535)("step",1)("useGrouping",!1),a(2),T("
",f(51,76,"settings.vsource.netid_desc")," "),a(4),T("
",f(55,78,"settings.vsource.bouquet_label"),"
"),a(2),p("ngModel",e.videoSource.BouquetId)("showButtons",!0)("min",0)("max",65535)("step",1)("useGrouping",!1),a(2),T("
",f(59,80,"settings.vsource.bouquet_desc")," "),a(6),T("
",f(65,82,"settings.vsource.region_label"),"
"),a(2),p("ngModel",e.videoSource.RegionId)("showButtons",!0)("min",0)("max",100)("step",1)("useGrouping",!1),a(2),T("
",f(69,84,"settings.vsource.region_desc")," "),a(6),T("
",f(75,86,"settings.vsource.lcnoffset_label"),"
"),a(2),p("ngModel",e.videoSource.LCNOffset)("showButtons",!0)("min",0)("max",2e4)("step",100)("useGrouping",!1),a(2),T("
",f(79,88,"settings.vsource.lcnoffset_desc")," ")}}function
RY(t,i){1&t&&(k(0,"p-message",49),m(1,"translate")),2&t&&x("text",f(1,1,"common.savesuccess"))}function
LY(t,i){1&t&&(k(0,"p-message",50),m(1,"translate")),2&t&&x("text",f(1,1,"common.networkfail"))}function
OY(t,i){if(1
&t){const
e=I();l(0,"div",44)(1,"div",45),_(2,RY,2,3,"p-message",46),_(3,LY,2,3,"p-message",47),c(),l(4,"p-button",48),C("onClick",function(){v(e);const
s=d(),r=F(1);return
s.saveForm(),r.form.markAsPristine()}),m(5,"translate"),c()()}if(2&t){const
e=d(),n=F(1);a(2),p("ngIf",e.work.successCount>0&&0==e.work.errorCount&&!n.dirty),a(1),p("ngIf",e.work.errorCount>0),a(1),x("label",f(5,4,"common.save")),p("disabled",!n.dirty||!e.videoSource.SourceName||e.work.validateError||e.setupService.schedulingEnabled)}}let
AY=(()=>{class
t{constructor(e,n,s,r,o){this.channelService=e,this.translate=n,this.setupService=s,this.clipboard=r,this.mythService=o,this.grabberList={GrabberList:{Grabbers:[]}},this.freqTableList={FreqTableList:[]},this.work={successCount:0,errorCount:0,errorMessage:"",validateError:!1},this.messages={nameInUse:"settings.vsource.nameInUse",nameRequired:"settings.vsource.nameRequired"},this.configCommand="",this.saveObserver={next:u=>{u.bool?this.work.successCount++:!this.vide
oSource.Id&&u.int?(this.work.successCount++,this.videoSource.Id||(this.videoSource.Id=u.int)):(console.log("saveObserver
error",u),this.work.errorCount++,this.currentForm.form.markAsDirty())},error:u=>{console.log("saveObserver
error",u),this.work.errorCount++,this.currentForm.form.markAsDirty()}},n.get(this.messages.nameInUse).subscribe(u=>this.messages.nameInUse=u),n.get(this.messages.nameRequired).subscribe(u=>this.messages.nameRequired=u)}ngOnInit(){this.channelService.GetGrabberList().subscribe(e=>{this.grabberList=e}),this.channelService.GetFreqTableList().subscribe(e=>{this.freqTableList=e}),this.mythService.GetBackendInfo().subscribe(e=>{this.backendInfo=e,this.setupConf()})}ngAfterViewInit(){this.setupService.setCurrentForm(this.currentForm),this.topElement.nativeElement.scrollIntoView({behavior:"smooth",block:"start"})}copyConfigure(){this.clipboard.copy(this.configCommand)}checkName(){this.work.errorMessage="",this.work.validateError=!1,this.videoSource.SourceName=this.vi
deoSource.SourceName.trim(),this.videoSourceList.VideoSourceList.VideoSources.find(n=>n.SourceName==this.videoSource.SourceName&&n.Id!=this.videoSource.Id)&&(this.work.errorMessage=this.messages.nameInUse,this.work.validateError=!0),""==this.videoSource.SourceName&&(this.work.errorMessage=this.messages.nameRequired,this.work.validateError=!0),this.setupConf()}setupConf(){if("eitonly"==this.videoSource.Grabber||"/bin/true"==this.videoSource.Grabber||""==this.videoSource.Grabber||""==this.videoSource.SourceName||this.work.validateError)this.configCommand="";else{let
e=this.backendInfo.BackendInfo.Env.MYTHCONFDIR;e||(e=this.backendInfo.BackendInfo.Env.HOME+"/.mythtv"),this.configCommand="sudo
-u "+this.backendInfo.BackendInfo.Env.USER+"
"+this.videoSource.Grabber+' --configure --config-file
"'+e+"/"+this.videoSource.SourceName+'.xmltv"'}}saveForm(){if(this.work.successCount=0,this.work.errorCount=0,this.videoSource.Id){let
e=this.videoSource;e.SourceID=this.videoSource.Id,this.channelS
ervice.UpdateVideoSource(e).subscribe(this.saveObserver)}else
this.channelService.AddVideoSource(this.videoSource).subscribe(this.saveObserver)}}return
t.\u0275fac=function(e){return
new(e||t)(D(Or),D(Oe),D(Me),D(lS),D(qt))},t.\u0275cmp=z({type:t,selectors:[["app-vsource"]],viewQuery:function(e,n){if(1&e&&(W(wY,5),W(TY,5)),2&e){let
s;V(s=B())&&(n.currentForm=s.first),V(s=B())&&(n.topElement=s.first)}},inputs:{videoSource:"videoSource",videoSourceList:"videoSourceList"},decls:9,vars:0,consts:[["name","vsourceform",1,"ml-3","mr-3"],["vsourceform","ngForm"],["top",""],[1,"m-5"],["pTemplate","title"],["pTemplate","subtitle"],["pTemplate","content"],["pTemplate","footer"],[1,"grid"],[1,"mb-4","w-full"],[1,"form-group","field"],["for","SourceName",1,"label","block"],["pInputText","","id","SourceName","name","SourceName",1,"mb-2","form-control","w-full",3,"ngModel","disabled","maxlength","ngModelChange","change"],["SourceName","ngModel"],[4,"ngIf"],[1,"block"],["for","Grabber",1,"label","b
lock"],["optionLabel","DisplayName","optionValue","Program","name","Grabber",3,"options","ngModel","editable","style","ngModelChange","onChange",4,"ngIf"],["class","form-group
field",4,"ngIf"],["inputId","UseEIT",&...
Id",3,"ngModel","showButtons","min",&q...
pi-copy",1,"p-button-rounded","p-button-text",3,"pTooltip","click"],["name","FreqTable",3,"options","ngModel","editable","ngModelChange"],["FreqTable","ngModel"],[1,"grid","nogutter"],[1,"col-12"],["severity","success",3,"text",4,"ngIf"],["severity","error",3,"text",4,"ngIf"],["icon","pi
pi-save","iconPos","left",1,"col","pr-1"
,3,"label","disabled","onClick"],["severity","success",3,"text"],["severity","error",3,"text"]],template:function(e,n){1&e&&(l(0,"form",0,1),k(2,"span",null,2),l(4,"p-card",3),_(5,SY,2,3,"ng-template",4),_(6,xY,0,0,"ng-template",5),_(7,EY,80,90,"ng-template",6),_(8,OY,6,6,"ng-template",7),c()())},directives:[ze,Ue,He,Ne,ne,Ye,Te,_e,_n,Q,Ot,On,bt,Kt,sn,pt,qe,ve],pipes:[ce],styles:["a[_ngcontent-%COMP%]:link,
a[_ngcontent-%COMP%]:visited,
a[_ngcontent-%COMP%]:active{background-color:#fff}"]}),t})();function
PY(t,i){if(1&t){const
e=I();l(0,"p-button",12),C("click",function(){return
v(e),d().displayDeleteAll=!1}),m(1,"translate"),c(),l(2,"p-button",13),C("click",function(){return
v(e),d().deleteAllSources()}),m(3,"translate"),c()}2&t&&(x("label",f(1,2,"common.no")),a(2),x("label",f(3,4,"common.yes")))}function
FY(t,i){1&t&&(l(0,"div",14),k(1,"br")(2,"p-message",15),m(3,"translate"),k(4,"br"),c()),2&t&&(a(2),x("text",f(3,1,"settings.common.successful_delete")))}function
NY(t,i){1&t&&(l(0
,"div",14),k(1,"br")(2,"p-message",16),m(3,"translate"),k(4,"br"),c()),2&t&&(a(2),x("text",f(3,1,"common.networkfail")))}function
VY(t,i){if(1&t&&(l(0,"div",20)(1,"div",21),g(2),l(3,"b"),g(4),c()()()),2&t){const
e=d().index,n=d();a(2),We("
",n.videoSourceList.VideoSourceList.VideoSources[e].SourceName,"
(",n.videoSourceList.VideoSourceList.VideoSources[e].Grabber,")
"),a(2),T("\xa0",n.dirtyMessages[e],"")}}function
BY(t,i){if(1&t){const
e=I();l(0,"p-button",12),C("click",function(){v(e);const
s=d(2).index;return
d().displayDeleteThis[s]=!1}),m(1,"translate"),c(),l(2,"p-button",13),C("click",function(){v(e);const
s=d(2).index;return
d().deleteThis(s)}),m(3,"translate"),c()}2&t&&(x("label",f(1,2,"common.no")),a(2),x("label",f(3,4,"common.yes")))}const
gS=function(){return{width:"50vw"}},HY=function(t,i){return{Grabber:t,DisplayName:i}};function
qY(t,i){if(1&t){const
e=I();l(0,"p-button",22),C("onClick",function(){v(e);const
s=d().index;return d().displayDeleteThis[s]=!0}),m(1,"transla
te"),c(),l(2,"p-dialog",3),C("visibleChange",function(s){v(e);const
r=d().index;return
d().displayDeleteThis[r]=s}),m(3,"translate"),l(4,"h2"),g(5),m(6,"translate"),c(),l(7,"p"),g(8),m(9,"translate"),c(),_(10,BY,4,6,"ng-template",4),c(),k(11,"app-vsource",23)}if(2&t){const
e=d().index,n=d();x("label",f(1,13,"settings.vsource.delete_this")),p("disabled",!n.videoSourceList.VideoSourceList.VideoSources[e].Id||n.setupService.schedulingEnabled),a(2),q(A(22,gS)),x("header",f(3,15,"settings.vsource.delete_this")),p("visible",n.displayDeleteThis[e])("modal",!0)("draggable",!1)("resizable",!1),a(3),S(f(6,17,"settings.common.ru_sure")),a(3),S(Dt(9,19,"settings.vsource.delete_details",Ge(23,HY,n.videoSourceList.VideoSourceList.VideoSources[e].Grabber,n.videoSourceList.VideoSourceList.VideoSources[e].SourceName))),a(3),p("videoSource",n.videoSourceList.VideoSourceList.VideoSources[e])("videoSourceList",n.videoSourceList)}}function
GY(t,i){if(1&t){const e=I();l(0,"p-accordionTab",17),C("selected
Change",function(s){const o=v(e).index;return
d().activeTab[o]=s}),_(1,VY,5,3,"ng-template",18),_(2,qY,12,26,"ng-template",19),c()}if(2&t){const
e=i.index,n=d();p("disabled",n.disabledTab[e])("selected",n.activeTab[e])}}let
UY=(()=>{class
t{constructor(e,n,s,r){this.setupService=e,this.translate=n,this.channelService=s,this.router=r,this.currentTab=-1,this.deletedTab=-1,this.dirtyMessages=[],this.forms=[],this.disabledTab=[],this.activeTab=[],this.displayDeleteThis=[],this.dirtyText="settings.common.unsaved",this.warningText="settings.common.warning",this.deletedText="settings.common.deleted",this.newText="settings.common.new",this.successCount=0,this.expectedCount=0,this.errorCount=0,this.displayDeleteAll=!1,this.deleteAll=!1,this.videoSourceList={VideoSourceList:{VideoSources:[],AsOf:"",Version:"",ProtoVer:""}},this.delObserver={next:o=>{o.bool?(this.successCount++,this.successCount==this.expectedCount&&(this.deleteAll?(this.loadSources(),this.deleteAll=!1):this.deletedTab>-1&&(th
is.dirtyMessages[this.deletedTab]=this.deletedText,this.disabledTab[this.deletedTab]=!0,this.activeTab[this.deletedTab]=!1,this.deletedTab=-1))):(this.errorCount++,this.deletedTab=-1,this.deleteAll=!1)},error:o=>{console.error(o),this.errorCount++,this.deleteAll=!1}},this.setupService.setCurrentForm(null),this.loadSources(),n.get(this.dirtyText).subscribe(o=>this.dirtyText=o),n.get(this.warningText).subscribe(o=>this.warningText=o),n.get(this.deletedText).subscribe(o=>this.deletedText=o),n.get(this.newText).subscribe(o=>this.newText=o)}loadSources(){this.channelService.GetVideoSourceList().subscribe(e=>{this.videoSourceList=e,this.dirtyMessages=[],this.forms=[],this.disabledTab=[],this.activeTab=[],this.displayDeleteThis=[];for(let
n=0;n<this.videoSourceList.VideoSourceList.VideoSources.length;n++)this.dirtyMessages.push(""),this.forms.push({}),this.disabledTab.push(!1),this.activeTab.push(!1),this.displayDeleteThis.push(!1)})}ngOnInit(){}onTabOpen(e){this.successCount+this.errorCou
nt>=this.expectedCount&&(this.errorCount=0,this.successCount=0,this.expectedCount=0),this.showDirty();let
n=this.setupService.getCurrentForm();null!=n&&(this.forms[e.index]=n),this.setupService.setCurrentForm(null),this.currentTab=e.index,this.dirtyMessages[this.currentTab]=""}onTabClose(e){this.showDirty(),this.currentTab=-1}showDirty(){-1==this.currentTab||!this.forms[this.currentTab]||this.disabledTab[this.currentTab]||(this.dirtyMessages[this.currentTab]=this.forms[this.currentTab].dirty?this.dirtyText:this.videoSourceList.VideoSourceList.VideoSources[this.currentTab].Id?"":this.newText)}newSource(){for(let
n=0;n<this.activeTab.length;n++)this.activeTab[n]=!1;this.dirtyMessages.push(this.newText),this.disabledTab.push(!1),this.activeTab.push(!1),this.displayDeleteThis.push(!1),this.videoSourceList.VideoSourceList.VideoSources.push({Grabber:"eitonly",FreqTable:"default",ScanFrequency:0,NITId:-1,BouquetId:0,RegionId:0,LCNOffset:0,SourceName:""})}deleteAllSources(){if(!(this.succes
sCount+this.errorCount<this.expectedCount)){this.errorCount=0,this.successCount=0,this.expectedCount=0,this.displayDeleteAll=!1,this.deletedTab=-1,this.deleteAll=!0;for(let
e=0;e<this.videoSourceList.VideoSourceList.VideoSources.length;e++)!this.disabledTab[e]&&this.videoSourceList.VideoSourceList.VideoSources[e].Id&&this.deleteThis(e)}}deleteThis(e){let
n=this.videoSourceList.VideoSourceList.VideoSources[e].Id;if(!this.deleteAll){if(this.successCount+this.errorCount<this.expectedCount)return;this.errorCount=0,this.successCount=0,this.expectedCount=0,this.displayDeleteThis[e]=!1,this.deletedTab=e}this.expectedCount++,this.channelService.RemoveVideoSource(n).subscribe(this.delObserver)}confirm(e){return
oe(window.confirm(e))}canDeactivate(){let
e=this.setupService.getCurrentForm();return!(this.forms[this.currentTab]&&this.forms[this.currentTab].dirty||this.dirtyMessages.find(n=>n==this.dirtyText)||e&&e.dirty)||this.confirm(this.warningText)}onWindowClose(e){let
n=this.setupService.ge
tCurrentForm();(this.forms[this.currentTab]&&this.forms[this.currentTab].dirty||this.dirtyMessages.find(s=>s==this.dirtyText)||n&&n.dirty)&&(e.preventDefault(),e.returnValue=!1)}}return
t.\u0275fac=function(e){return
new(e||t)(D(Me),D(Oe),D(Or),D(It))},t.\u0275cmp=z({type:t,selectors:[["app-video-sources"]],hostBindings:function(e,n){1&e&&C("beforeunload",function(r){return
n.onWindowClose(r)},!1,ni)},decls:26,vars:32,consts:[[1,"m-5"],["icon","pi
pi-plus-circle","styleClass","p-button-plain",3,"label","onClick"],["styleClass","p-button-danger","icon","pi
pi-trash","iconPos","left",3,"label","disabled","click"],[3,"header","visible","modal","draggable","resizable","visibleChange"],["pTemplate","footer"],[1,"grid","nogutter"],["class","col-12",4,"ngIf"],[1,"col-12","w-full",3,"onClose","onOpen"],[3,"disabled","selected","selectedChange",4,"ngFor","ngForOf"],[1,"flex","justify-content-end"],["icon","pi
pi-angle-left","iconPos","left",1,"p-3",3,"label","onClick"],["icon","pi
pi-angle-r
ight","iconPos","right",1,"p-3",3,"label","onClick"],["icon","pi
pi-times-circle","styleClass","p-button-plain",3,"label","click"],["icon","pi
pi-check-circle","styleClass","p-button-plain",3,"label","click"],[1,"col-12"],["severity","success",3,"text"],["severity","error",3,"text"],[3,"disabled","selected","selectedChange"],["pTemplate","header"],["pTemplate","content"],[1,"grid","w-full"],[1,"col-9","pr-1"],["styleClass","p-button-warning","icon","pi
pi-trash",3,"label","disabled","onClick"],[3,"videoSource","videoSourceList"]],template:function(e,n){1&e&&(l(0,"p-card",0)(1,"h2"),g(2),m(3,"translate"),c(),l(4,"p-button",1),C("onClick",function(){return
n.newSource()}),m(5,"translate"),c(),g(6," \xa0
"),l(7,"p-button",2),C("click",function(){return
n.displayDeleteAll=!0}),m(8,"translate"),c(),l(9,"p-dialog",3),C("visibleChange",function(r){return
n.displayDeleteAll=r}),m(10,"translate"),l(11,"h2"),g(12),m(13,"translate"),c(),_(14,PY,4,6,"ng-template",4),c(),k(15,"br"),l(16,"div",5)
,_(17,FY,5,3,"div",6),_(18,NY,5,3,"div",6),c(),l(19,"p-accordion",7),C("onClose",function(r){return
n.onTabClose(r)})("onOpen",function(r){return
n.onTabOpen(r)}),_(20,GY,3,2,"p-accordionTab",8),c(),l(21,"div",9)(22,"p-button",10),C("onClick",function(){return
n.router.navigate(["setupwizard/recording-profiles"])}),m(23,"translate"),c(),l(24,"p-button",11),C("onClick",function(){return
n.router.navigate(["setupwizard/input-connections"])}),m(25,"translate"),c()()()),2&e&&(a(2),S(f(3,17,"settings.vsource.title")),a(2),x("label",f(5,19,"settings.vsource.new_video_source")),a(3),x("label",f(8,21,"settings.vsource.delete_all")),p("disabled",n.setupService.schedulingEnabled),a(2),q(A(31,gS)),x("header",f(10,23,"settings.vsource.delete_all")),p("visible",n.displayDeleteAll)("modal",!0)("draggable",!1)("resizable",!1),a(3),S(f(13,25,"settings.common.ru_sure")),a(5),p("ngIf",n.expectedCount&&n.successCount==n.expectedCount),a(1),p("ngIf",n.errorCount>0),a(2),p("ngForOf",n.videoSourceList.Vi
deoSourceList.VideoSources),a(2),x("label",f(23,27,"common.back")),a(2),x("label",f(25,29,"common.next")))},directives:[Ne,ve,bn,ne,Q,qe,Ss,at,Ts,AY],pipes:[ce],styles:["@media
screen and (max-width:
48rem){.p-card-body,.p-card-content,.p-accordion-content{padding:0rem!important}}\n"],encapsulation:2}),t})();function
zY(t,i){if(1&t&&(l(0,"div",10)(1,"div",11),g(2),l(3,"b"),g(4),c()()()),2&t){const
e=d(2),n=e.$implicit,s=e.index,r=d();a(2),Ec(" ",n.CardType,"
",n.VideoDevice," (",n.DisplayName,") =>
",r.videoSourceLookup[n.SourceId].SourceName,"
"),a(2),T("\xa0",r.dirtyMessages[s],"")}}function
jY(t,i){1&t&&_(0,zY,5,5,"div",9),2&t&&p("ngIf",d(2).readyCount>1)}function
$Y(t,i){if(1&t&&k(0,"app-iconnection",12),2&t){const
e=d().index,n=d();p("card",n.m_CaptureCardsFiltered[e])("cardList",n.m_CaptureCardList)("videoSourceLookup",n.videoSourceLookup)("videoSourceList",n.videoSourceList)("parentComponent",n)}}function
WY(t,i){if(1&t){const
e=I();l(0,"p-accordionTab",6),C("selectedChange",
function(s){const o=v(e).index;return
d().activeTab[o]=s}),_(1,jY,1,1,"ng-template",7),_(2,$Y,1,5,"ng-template",8),c()}if(2&t){const
e=i.index;p("selected",d().activeTab[e])}}let _S=(()=>{class
t{constructor(e,n,s,r,o,u){this.mythService=e,this.router=n,this.captureCardService=s,this.setupService=r,this.translate=o,this.channelService=u,this.currentTab=-1,this.deletedTab=-1,this.dirtyMessages=[],this.forms=[],this.activeTab=[],this.readyCount=0,this.dirtyText="settings.common.unsaved",this.warningText="settings.common.warning",this.m_hostName="",this.m_CaptureCardsFiltered=[],this.videoSourceList={VideoSourceList:{VideoSources:[],AsOf:"",Version:"",ProtoVer:""}},this.videoSourceLookup=[],this.setupService.setCurrentForm(null),this.mythService.GetHostName().subscribe(h=>{this.m_hostName=h.String,this.loadCards(!0)}),this.loadSources(),o.get(this.dirtyText).subscribe(h=>this.dirtyText=h),o.get(this.warningText).subscribe(h=>this.warningText=h)}loadCards(e){this.m_CaptureCardList$=this
.captureCardService.GetCaptureCardList("",""),this.m_CaptureCardList$.subscribe(n=>{this.m_CaptureCardList=n,e&&this.filterCards(),this.readyCount++})}filterCards(){this.m_CaptureCardsFiltered=this.m_CaptureCardList.CaptureCardList.CaptureCards.filter(e=>0==e.ParentId&&e.HostName==this.m_hostName),this.dirtyMessages=[],this.forms=[],this.activeTab=[];for(let
e=0;e<this.m_CaptureCardsFiltered.length;e++)this.dirtyMessages.push(""),this.activeTab.push(!1)}loadSources(){this.channelService.GetVideoSourceList().subscribe(e=>{this.videoSourceList=e,this.videoSourceList.VideoSourceList.VideoSources.unshift({Id:0,SourceName:"(None)",ScanFrequency:0}),this.videoSourceLookup=[],this.videoSourceList.VideoSourceList.VideoSources.forEach(n=>{this.videoSourceLookup[n.Id]=n}),this.readyCount++})}ngOnInit(){}onTabOpen(e){this.showDirty();let
n=this.setupService.getCurrentForm();null!=n&&(this.forms[e.index]=n),this.setupService.setCurrentForm(null),this.currentTab=e.index,this.dirtyMessages[this.c
urrentTab]=""}onTabClose(e){this.showDirty(),this.currentTab=-1}showDirty(){-1==this.currentTab||!this.forms[this.currentTab]||(this.dirtyMessages[this.currentTab]=this.forms[this.currentTab].dirty?this.dirtyText:"")}confirm(e){return
oe(window.confirm(e))}canDeactivate(){let
e=this.setupService.getCurrentForm();return!(this.forms[this.currentTab]&&this.forms[this.currentTab].dirty||this.dirtyMessages.find(n=>n==this.dirtyText)||e&&e.dirty)||this.confirm(this.warningText)}onWindowClose(e){let
n=this.setupService.getCurrentForm();(this.forms[this.currentTab]&&this.forms[this.currentTab].dirty||this.dirtyMessages.find(s=>s==this.dirtyText)||n&&n.dirty)&&(e.preventDefault(),e.returnValue=!1)}}return
t.\u0275fac=function(e){return
new(e||t)(D(qt),D(It),D(Gt),D(Me),D(Oe),D(Or))},t.\u0275cmp=z({type:t,selectors:[["app-input-connections"]],hostBindings:function(e,n){1&e&&C("beforeunload",function(r){return
n.onWindowClose(r)},!1,ni)},decls:11,vars:10,consts:[[1,"m-5"],[1,"col-12","w-full",
3,"onClose","onOpen"],[3,"selected","selectedChange",4,"ngFor","ngForOf"],[1,"flex","justify-content-end"],["icon","pi
pi-angle-left","iconPos","left",1,"p-3",3,"label","onClick"],["icon","pi
pi-angle-right","iconPos","right",1,"p-3",3,"label","onClick"],[3,"selected","selectedChange"],["pTemplate","header"],["pTemplate","content"],["class","grid
w-full",4,"ngIf"],[1,"grid","w-full"],[1,"col-9","pr-1"],[3,"card","cardList","videoSourceLookup","videoSourceList","parentComponent"]],template:function(e,n){1&e&&(l(0,"p-card",0)(1,"h2"),g(2),m(3,"translate"),c(),l(4,"p-accordion",1),C("onClose",function(r){return
n.onTabClose(r)})("onOpen",function(r){return
n.onTabOpen(r)}),_(5,WY,3,1,"p-accordionTab",2),c(),l(6,"div",3)(7,"p-button",4),C("onClick",function(){return
n.router.navigate(["setupwizard/video-sources"])}),m(8,"translate"),c(),l(9,"p-button",5),C("onClick",function(){return
n.router.navigate(["setupwizard/channel-editor"])}),m(10,"translate"),c()()()),2&e&&(a(2),S(f(3,4,"sett
ings.iconnections.title")),a(3),p("ngForOf",n.m_CaptureCardsFiltered),a(2),x("label",f(8,6,"common.back")),a(2),x("label",f(10,8,"common.next")))},styles:["@media
screen and (max-width:
48rem){.p-card-body,.p-card-content,.p-accordion-content{padding:0rem!important}}\n"],encapsulation:2}),t})();const
KY=["sgroupform"],QY=function(t){return{name:t}};function
JY(t,i){if(1&t&&k(0,"span",8),2&t){const
e=d();p("translate","settings.sgroups.sgroup_title")("translateParams",U(2,QY,e.sgroup.LocalizedName))}}function
YY(t,i){}function
ZY(t,i){1&t&&(l(0,"div")(1,"b"),g(2),m(3,"translate"),c()()),2&t&&(a(2),S(f(3,1,"settings.sgroups.deleted_label")))}function
XY(t,i){if(1&t){const
e=I();l(0,"tr")(1,"td",20),g(2),c(),l(3,"td",21)(4,"button",22),C("click",function(){const
r=v(e).index;return
d(2).editDirectory(r)}),c()(),l(5,"td",21)(6,"button",23),C("click",function(){const
r=v(e).index;return
d(2).deleteDirectory(r)}),c()(),l(7,"td"),_(8,ZY,4,3,"div",24),c()()}if(2&t){const
e=i.index,n=d(2);a(
2),T(" ",n.editDirs[e],"
"),a(2),p("disabled",!n.editDirs[e]),a(2),p("disabled",!n.editDirs[e]),a(2),p("ngIf",!n.editDirs[e])}}function
eZ(t,i){if(1&t){const
e=I();l(0,"p-button",25),C("onClick",function(){return
v(e),d(2).showEditDlg=!1}),m(1,"translate"),c(),l(2,"p-button",26),C("onClick",function(){v(e);const
s=d(2);return
s.editDirs[s.editDlgNum]=s.editDirName,s.showEditDlg=!1}),m(3,"translate"),c()}2&t&&(x("label",f(1,2,"common.cancel")),a(2),x("label",f(3,4,"common.ok")))}const
tZ=function(){return{width:"50vw"}},nZ=function(){return{height:"50vh"}};function
iZ(t,i){if(1&t){const
e=I();l(0,"div",9)(1,"div",10)(2,"table"),_(3,XY,9,4,"tr",11),c(),l(4,"p-dialog",12),C("visibleChange",function(s){return
v(e),d().showEditDlg=s}),m(5,"translate"),l(6,"div",13)(7,"label",14),g(8),m(9,"translate"),c(),l(10,"input",15,16),C("ngModelChange",function(s){return
v(e),d().editDirName=s})("change",function(){return
v(e),d().textChange()}),c()(),l(12,"p-listbox",17,18),C("ngModelChange",funct
ion(s){return v(e),d().selectedDir=s})("onClick",function(){return
v(e),d().selectDir()}),c(),_(14,eZ,4,6,"ng-template",7),c(),k(15,"br"),l(16,"p-button",19),C("onClick",function(){return
v(e),d().addDirectory()}),m(17,"translate"),c()()()}if(2&t){const
e=d();a(3),p("ngForOf",e.editDirs),a(1),q(A(20,tZ)),x("header",f(5,14,"settings.sgroups.seldir_title")),p("visible",e.showEditDlg)("modal",!0)("draggable",!1)("resizable",!1),a(4),S(f(9,16,"settings.sgroups.dirname_label")),a(2),p("ngModel",e.editDirName),a(2),p("options",e.dirSelect)("ngModel",e.selectedDir)("listStyle",A(21,nZ)),a(4),x("label",f(17,18,"settings.sgroups.adddir_button"))}}function
sZ(t,i){1&t&&(k(0,"p-message",32),m(1,"translate")),2&t&&x("text",f(1,1,"common.savesuccess"))}function
rZ(t,i){1&t&&(k(0,"p-message",33),m(1,"translate")),2&t&&x("text",f(1,1,"common.networkfail"))}function
oZ(t,i){if(1&t){const
e=I();l(0,"div",27)(1,"div",28),_(2,sZ,2,3,"p-message",29),_(3,rZ,2,3,"p-message",30),c(),l(4,"p-button",31),C("
onClick",function(){v(e);const s=d(),r=F(1);return
s.saveForm(),r.form.markAsPristine()}),m(5,"translate"),c()()}if(2&t){const
e=d(),n=F(1);a(2),p("ngIf",e.successCount>0&&0==e.errorCount&&!n.dirty),a(1),p("ngIf",e.errorCount>0),a(1),x("label",f(5,4,"common.save")),p("disabled",!n.dirty||e.setupService.schedulingEnabled)}}let
aZ=(()=>{class
t{constructor(e,n,s){this.mythService=e,this.setupService=n,this.translate=s,this.successCount=0,this.errorCount=0,this.expectCount=0,this.showEditDlg=!1,this.editDlgNum=-1,this.editDirName="",this.editDirs=[],this.dirSelect=[],this.selectedDir="",this.upString="UP
1
LEVEL",this.saveObserver={next:r=>{r.bool?(this.successCount++,this.successCount==this.expectCount&&(this.sgroup.DirNames=this.editDirs.filter(o=>o.length>1))):(this.errorCount++,this.currentForm.form.markAsDirty())},error:r=>{console.error(r),this.errorCount++,this.currentForm.form.markAsDirty()}},s.get("settings.sgroups.updir").subscribe(r=>this.upString="//
** "+r+" **")}ngOnInit(
){this.editDirs=this.sgroup.DirNames.slice()}ngAfterViewInit(){this.setupService.setCurrentForm(this.currentForm)}selectDir(){for(;"/"==this.editDirName.charAt(this.editDirName.length-1);)this.editDirName=this.editDirName.substring(0,this.editDirName.length-1);if(this.selectedDir.startsWith("//")){let
e=this.editDirName.lastIndexOf("/");this.editDirName=this.editDirName.substring(0,e),0==this.editDirName.length&&(this.editDirName="/")}else
this.editDirName=this.editDirName+"/"+this.selectedDir;this.fillDirList()}textChange(){this.fillDirList()}fillDirList(){0!=this.editDirName.indexOf("/")&&(this.editDirName="/"+this.editDirName),this.mythService.GetDirListing(this.editDirName).subscribe(e=>{"/"!=this.editDirName&&e.DirListing.unshift(this.upString),this.dirSelect=e.DirListing})}addDirectory(){this.editDirs.push("/"),this.editDirectory(this.editDirs.length-1)}editDirectory(e){this.editDirName=this.editDirs[e],this.editDlgNum=e,this.showEditDlg=!0,this.fillDirList()}deleteDirectory(e
){this.editDirs[e]="",this.currentForm.form.markAsDirty()}saveForm(){this.successCount=0,this.errorCount=0,this.expectCount=0;for(let
e=0;e<this.editDirs.length;e++){"/"==this.editDirs[e]&&(this.editDirs[e]="");for(let
n=e+1;n<this.editDirs.length;n++)this.editDirs[e]==this.editDirs[n]&&(this.editDirs[n]="")}this.editDirs.forEach(e=>{""!=e&&-1==this.sgroup.DirNames.indexOf(e)&&(this.mythService.AddStorageGroupDir({GroupName:this.sgroup.GroupName,DirName:e,HostName:this.hostName}).subscribe(this.saveObserver),this.expectCount++)}),this.sgroup.DirNames.forEach(e=>{-1==this.editDirs.indexOf(e)&&(this.mythService.RemoveStorageGroupDir({GroupName:this.sgroup.GroupName,DirName:e,HostName:this.hostName}).subscribe(this.saveObserver),this.expectCount++)})}}return
t.\u0275fac=function(e){return
new(e||t)(D(qt),D(Me),D(Oe))},t.\u0275cmp=z({type:t,selectors:[["app-sgroup"]],viewQuery:function(e,n){if(1&e&&W(KY,5),2&e){let
s;V(s=B())&&(n.currentForm=s.first)}},inputs:{sgroup:"sgroup",hostName:"
hostName"},decls:9,vars:0,consts:[["name","sgroupform",1,"ml-3","mr-3"],["sgroupform","ngForm"],["top",""],[1,"m-5"],["pTemplate","title"],["pTemplate","subtitle"],["pTemplate","content"],["pTemplate","footer"],[3,"translate","translateParams"],[1,"grid"],[1,"mb-4","w-full"],[4,"ngFor","ngForOf"],[3,"header","visible","modal","draggable","resizable","visibleChange"],[1,"form-group","field"],["for","DirName",1,"label","block"],["pInputText","","id","DirName","name","DirName",1,"mb-2","form-control","w-full",2,"font-family","monospace",3,"ngModel","ngModelChange","change"],["DirName","ngModel"],["name","ListDirs",3,"options","ngModel","listStyle","ngModelChange","onClick"],["ListDirs","ngModel"],["icon","pi
pi-plus-circle","styleClass","p-button-plain",3,"label","onClick"],[1,"align-items-center","bg-blue-100","text-gray-900",2,"font-family","monospace"],[1,"align-items-center"],["pButton","","pRipple","","type","button","icon","pi
pi-pencil","pTooltip","Edit",1,"p-button-rounded","p-
button-text",3,"disabled","click"],["pButton","","pRipple","","type","button","icon","pi
pi-trash","pTooltip","Delete",1,"p-button-rounded","p-button-text",3,"disabled","click"],[4,"ngIf"],["icon","pi
pi-times-circle","styleClass","p-button-plain",3,"label","onClick"],["icon","pi
pi-check-circle","styleClass","p-button-plain",3,"label","onClick"],[1,"grid","nogutter"],[1,"col-12"],["severity","success",3,"text",4,"ngIf"],["severity","error",3,"text",4,"ngIf"],["icon","pi
pi-save","iconPos","left",1,"col","pr-1",3,"label","disabled","onClick"],["severity","success",3,"text"],["severity","error",3,"text"]],template:function(e,n){1&e&&(l(0,"form",0,1),k(2,"span",null,2),l(4,"p-card",3),_(5,JY,1,4,"ng-template",4),_(6,YY,0,0,"ng-template",5),_(7,iZ,18,22,"ng-template",6),_(8,oZ,6,6,"ng-template",7),c()())},directives:[ze,Ue,He,Ne,ne,mu,at,On,bt,Kt,Q,bn,Ye,Te,_e,os,ve,qe],pipes:[ce],styles:[""]}),t})();function
lZ(t,i){if(1&t){const
e=I();l(0,"p-button",14),C("onClick",function(){return
v(e),d().displayNewDlg=!1}),m(1,"translate"),c(),l(2,"p-button",15),C("onClick",function(){return
v(e),d().newGroup()}),m(3,"translate"),c()}if(2&t){const
e=d();x("label",f(1,3,"common.cancel")),a(2),x("label",f(3,5,"common.ok")),p("disabled",""==e.newGroupName)}}const
cZ=function(t){return{name:t}};function
uZ(t,i){if(1&t&&k(0,"span",23),2&t){const
e=d(2).index,n=d();p("translate","settings.sgroups.tab_create_title")("translateParams",U(2,cZ,n.storageGroups[e].LocalizedName))}}function
dZ(t,i){if(1&t&&g(0),2&t){const e=d(2).index;T("
",d().storageGroups[e].LocalizedName," ")}}function
pZ(t,i){if(1&t&&(l(0,"div",19)(1,"div",20),_(2,uZ,1,4,"span",21),_(3,dZ,1,1,"ng-template",null,22,we),l(5,"b"),g(6),c()()()),2&t){const
e=F(4),n=d().index,s=d();a(2),p("ngIf",0==s.storageGroups[n].DirNames.length)("ngIfElse",e),a(4),T("\xa0",s.dirtyMessages[n],"")}}function
hZ(t,i){if(1&t&&k(0,"app-sgroup",24),2&t){const
e=d().index,n=d();p("sgroup",n.storageGroups[e])("hostName",n.hostName)}}function
mZ(t,i){if(1&t){const
e=I();l(0,"p-accordionTab",16),C("selectedChange",function(s){const
o=v(e).index;return
d().activeTab[o]=s}),_(1,pZ,7,3,"ng-template",17),_(2,hZ,1,2,"ng-template",18),c()}if(2&t){const
e=i.index;p("selected",d().activeTab[e])}}const
fZ=function(){return{width:"50vw"}};let gZ=(()=>{class
t{constructor(e,n,s,r){this.setupService=e,this.translate=n,this.mythService=s,this.router=r,this.forms=[],this.dirtyMessages=[],this.currentTab=-1,this.activeTab=[],this.dirtyText="settings.common.unsaved",this.warningText="settings.common.warning",this.deletedText="settings.common.deleted",this.newText="settings.common.new",this.hostName="",this.storageGroupDirs=[],this.storageGroups=[{GroupName:"Default",LocalizedName:"",DirNames:[]},{GroupName:"LiveTV",LocalizedName:"",DirNames:[]},{GroupName:"DB
Backups",LocalizedName:"",DirNames:[]},{GroupName:"Videos",LocalizedName:"",DirNames:[]},{GroupName:"Trailers",LocalizedName:"",DirNames:[]},{GroupName:"Coverart",LocalizedName:"",
DirNames:[]},{GroupName:"Fanart",LocalizedName:"",DirNames:[]},{GroupName:"Screenshots",LocalizedName:"",DirNames:[]},{GroupName:"Banners",LocalizedName:"",DirNames:[]},{GroupName:"Photographs",LocalizedName:"",DirNames:[]},{GroupName:"Music",LocalizedName:"",DirNames:[]},{GroupName:"MusicArt",LocalizedName:"",DirNames:[]}],this.displayNewDlg=!1,this.newGroupName="",this.setupService.setCurrentForm(null),this.mythService.GetHostName().subscribe(o=>{this.hostName=o.String,this.loadGroups()}),n.get(this.dirtyText).subscribe(o=>this.dirtyText=o),n.get(this.warningText).subscribe(o=>this.warningText=o),n.get(this.deletedText).subscribe(o=>this.deletedText=o),n.get(this.newText).subscribe(o=>this.newText=o),this.storageGroups.forEach(o=>n.get("settings.sgroups.special."+o.GroupName).subscribe(u=>o.LocalizedName=u))}loadGroups(){this.mythService.GetStorageGroupDirs({HostName:this.hostName}).subscribe(e=>{this.storageGroupDirs=e.StorageGroupDirList.StorageGroupDirs,this.storageGroupDirs.fo
rEach(n=>{let
s=this.storageGroups.find(r=>r.GroupName==n.GroupName);s?s.DirNames.push(n.DirName):this.storageGroups.push({GroupName:n.GroupName,LocalizedName:n.GroupName,DirNames:[n.DirName]})})})}ngOnInit(){}onTabOpen(e){this.showDirty();let
n=this.setupService.getCurrentForm();null!=n&&(this.forms[e.index]=n),this.setupService.setCurrentForm(null),this.currentTab=e.index,this.dirtyMessages[this.currentTab]=""}onTabClose(e){this.showDirty(),this.currentTab=-1}showDirty(){-1==this.currentTab||!this.forms[this.currentTab]||(this.dirtyMessages[this.currentTab]=this.forms[this.currentTab].dirty?this.dirtyText:"")}newGroup(){this.displayNewDlg=!1,!this.storageGroups.find(n=>n.GroupName==this.newGroupName)&&(this.storageGroups.push({GroupName:this.newGroupName,LocalizedName:this.newGroupName,DirNames:[]}),this.newGroupName="")}confirm(e){return
oe(window.confirm(e))}canDeactivate(){let
e=this.setupService.getCurrentForm();return!(this.forms[this.currentTab]&&this.forms[this.currentTab].
dirty||this.dirtyMessages.find(n=>n==this.dirtyText)||e&&e.dirty)||this.confirm(this.warningText)}onWindowClose(e){let
n=this.setupService.getCurrentForm();(this.forms[this.currentTab]&&this.forms[this.currentTab].dirty||this.dirtyMessages.find(s=>s==this.dirtyText)||n&&n.dirty)&&(e.preventDefault(),e.returnValue=!1)}}return
t.\u0275fac=function(e){return
new(e||t)(D(Me),D(Oe),D(qt),D(It))},t.\u0275cmp=z({type:t,selectors:[["app-storage-groups"]],hostBindings:function(e,n){1&e&&C("beforeunload",function(r){return
n.onWindowClose(r)},!1,ni)},decls:25,vars:24,consts:[[1,"m-5"],["label","New
Storage Group","icon","pi
pi-plus-circle","styleClass","p-button-plain",3,"onClick"],["header","New
Storage
Group",3,"visible","modal","draggable","resizable","visibleChange"],[1,"form-group","field"],["for","GroupName",1,"block"],["pInputText","","id","GroupName","name","GroupName",1,"mb-2","form-control","w-full",3,"ngModel","ngModelChange"],["GroupName","ngModel"],[1,"block"],["pTemplate","foote
r"],[1,"col-12","w-full",3,"onClose","onOpen"],[3,"selected","selectedChange",4,"ngFor","ngForOf"],[1,"flex","justify-content-end"],["icon","pi
pi-angle-left","iconPos","left",1,"p-3",3,"label","onClick"],["icon","pi
pi-angle-right","iconPos","right",1,"p-3",3,"label","onClick"],["icon","pi
pi-times-circle","styleClass","p-button-plain",3,"label","onClick"],["icon","pi
pi-check-circle","styleClass","p-button-plain",3,"label","disabled","onClick"],[3,"selected","selectedChange"],["pTemplate","header"],["pTemplate","content"],[1,"grid","w-full"],[1,"col-9","pr-1"],[3,"translate","translateParams",4,"ngIf","ngIfElse"],["onlyName",""],[3,"translate","translateParams"],[3,"sgroup","hostName"]],template:function(e,n){1&e&&(l(0,"p-card",0)(1,"h2"),g(2),m(3,"translate"),c(),l(4,"p-button",1),C("onClick",function(){return
n.displayNewDlg=!0}),c(),l(5,"p-dialog",2),C("visibleChange",function(r){return
n.displayNewDlg=r}),l(6,"p"),g(7),m(8,"translate"),c(),l(9,"div",3)(10,"label",4),g(11),m(12
,"translate"),c(),l(13,"input",5,6),C("ngModelChange",function(r){return
n.newGroupName=r}),c(),k(15,"small",7),c(),_(16,lZ,4,7,"ng-template",8),c(),k(17,"br"),l(18,"p-accordion",9),C("onClose",function(r){return
n.onTabClose(r)})("onOpen",function(r){return
n.onTabOpen(r)}),_(19,mZ,3,1,"p-accordionTab",10),c(),l(20,"div",11)(21,"p-button",12),C("onClick",function(){return
n.router.navigate(["setupwizard/channel-editor"])}),m(22,"translate"),c(),l(23,"p-button",13),C("onClick",function(){return
n.router.navigate(["setupwizard/system-events"])}),m(24,"translate"),c()()()),2&e&&(a(2),S(f(3,13,"settings.sgroups.title")),a(3),q(A(23,fZ)),p("visible",n.displayNewDlg)("modal",!0)("draggable",!1)("resizable",!1),a(2),S(f(8,15,"settings.sgroups.name_prompt")),a(4),S(f(12,17,"settings.sgroups.name_label")),a(2),p("ngModel",n.newGroupName),a(6),p("ngForOf",n.storageGroups),a(2),x("label",f(22,19,"common.back")),a(2),x("label",f(24,21,"common.next")))},directives:[Ne,ve,bn,Ye,Te,_e,ne,Ss,at,Ts
,Q,mu,aZ],pipes:[ce],styles:["@media screen and (max-width:
48rem){.p-card-body,.p-card-content,.p-accordion-content{padding:0rem!important}}\n"],encapsulation:2}),t})();const
_Z=["eventsform"];function bZ(t,i){if(1&t){const
e=I();l(0,"div",9)(1,"div",10)(2,"label",11),g(3),c(),l(4,"input",12),C("ngModelChange",function(s){return
v(e).$implicit.Value=s}),c()()()}if(2&t){const
e=i.$implicit;a(2),x("for",e.Key),a(1),S(e.LocalizedName),a(1),x("id",e.Key),x("name",e.Key),p("ngModel",e.Value)}}function
vZ(t,i){if(1&t&&(l(0,"div",7),_(1,bZ,5,5,"div",8),c()),2&t){const
e=d();a(1),p("ngForOf",e.events)}}function
CZ(t,i){1&t&&(k(0,"p-message",18),m(1,"translate")),2&t&&x("text",f(1,1,"common.savesuccess"))}function
yZ(t,i){1&t&&(k(0,"p-message",19),m(1,"translate")),2&t&&x("text",f(1,1,"common.networkfail"))}function
wZ(t,i){if(1&t){const
e=I();l(0,"div",13)(1,"div",14),_(2,CZ,2,3,"p-message",15),_(3,yZ,2,3,"p-message",16),c(),l(4,"p-button",17),C("onClick",function(){v(e);const
s=d(),r=F(1)
;return
s.saveForm(),r.form.markAsPristine()}),m(5,"translate"),c()()}if(2&t){const
e=d(),n=F(1);a(2),p("ngIf",e.successCount>0&&e.successCount==e.expectedCount&&0==e.errorCount&&!n.dirty),a(1),p("ngIf",e.errorCount>0),a(1),x("label",f(5,4,"common.save")),p("disabled",!n.dirty||e.setupService.schedulingEnabled)}}let
TZ=(()=>{class
t{constructor(e,n,s,r,o){this.configService=e,this.translate=n,this.setupService=s,this.mythService=r,this.router=o,this.hostName="",this.events=[],this.successCount=0,this.errorCount=0,this.expectedCount=0,this.warningText="settings.common.warning",this.kClearSettingValue="<clear_setting_value>",this.jqbObserver={next:u=>{u.bool?this.successCount++:(this.errorCount++,this.currentForm&&this.currentForm.form.markAsDirty())},error:u=>{console.error(u),this.errorCount++,this.currentForm&&this.currentForm.form.markAsDirty()}},this.mythService.GetHostName().subscribe({next:u=>{this.hostName=u.String,this.configService.GetSystemEvents().subscribe(h=>{this.eventL
ist=h,this.events=h.SystemEventList.SystemEvents})},error:()=>this.errorCount++}),this.translate.get(this.warningText).subscribe(u=>{this.warningText=u})}ngOnInit(){}saveForm(){this.successCount=0,this.errorCount=0,this.expectedCount=0,this.events.forEach(e=>{let
n=e.Value.trim();n?this.mythService.PutSetting({HostName:this.hostName,Key:e.Key,Value:n}).subscribe(this.jqbObserver):this.mythService.DeleteSetting({HostName:this.hostName,Key:e.Key}).subscribe(this.jqbObserver),this.expectedCount++})}confirm(e){return
oe(window.confirm(e))}canDeactivate(){return!this.currentForm||!this.currentForm.dirty||this.confirm(this.warningText)}onWindowClose(e){this.currentForm&&this.currentForm.dirty&&(e.preventDefault(),e.returnValue=!1)}}return
t.\u0275fac=function(e){return
new(e||t)(D(zo),D(Oe),D(Me),D(qt),D(It))},t.\u0275cmp=z({type:t,selectors:[["app-system-events"]],viewQuery:function(e,n){if(1&e&&W(_Z,5),2&e){let
s;V(s=B())&&(n.currentForm=s.first)}},hostBindings:function(e,n){1&e&&C("bef
oreunload",function(r){return
n.onWindowClose(r)},!1,ni)},decls:11,vars:6,consts:[["name","eventsform",1,"ml-3","mr-3"],["eventsform","ngForm"],[1,"m-5"],["pTemplate","content"],["pTemplate","footer"],[1,"flex","justify-content-end"],["icon","pi
pi-angle-left","iconPos","left",1,"p-3",3,"label","onClick"],[1,"grid"],["class","mb-4
w-full",4,"ngFor","ngForOf"],[1,"mb-4","w-full"],[1,"form-group","field"],[1,"label","block",3,"for"],["pInputText","",1,"mb-2","form-control","w-full",3,"id","ngModel","name","ngModelChange"],[1,"grid","nogutter"],[1,"col-12"],["severity","success",3,"text",4,"ngIf"],["severity","error",3,"text",4,"ngIf"],["icon","pi
pi-save","iconPos","left",1,"col","pr-1",3,"label","disabled","onClick"],["severity","success",3,"text"],["severity","error",3,"text"]],template:function(e,n){1&e&&(l(0,"form",0,1)(2,"h2"),g(3),m(4,"translate"),c(),l(5,"p-card",2),_(6,vZ,2,1,"ng-template",3),_(7,wZ,6,6,"ng-template",4),c(),l(8,"div",5)(9,"p-button",6),C("onClick",function(){r
eturn
n.router.navigate(["setupwizard/storage-groups"])}),m(10,"translate"),c()()()),2&e&&(a(3),S(f(4,2,"settings.sysevents.title")),a(6),x("label",f(10,4,"common.back")))},directives:[ze,Ue,He,Ne,ne,at,Ye,Te,_e,Q,qe,ve],pipes:[ce],styles:["@media
screen and (max-width:
48rem){.p-card-body,.p-card-content,.p-accordion-content{padding:0rem!important}}\n"],encapsulation:2}),t})();const
SZ=["chanform"];function xZ(t,i){if(1&t){const
e=I();l(0,"button",57),C("click",function(){return
v(e),d(2).openNew()}),m(1,"translate"),c()}if(2&t){const
e=d(2);x("label",f(1,2,"settings.chanedit.new_channel")),p("disabled","S"==e.setupService.pageType&&e.setupService.schedulingEnabled)}}function
DZ(t,i){1&t&&g(0),2&t&&T(" ",i.$implicit,"
")}function MZ(t,i){if(1&t){const
e=I();l(0,"p-dropdown",72),C("onChange",function(s){return
v(e).filterCallback(s.value)}),m(1,"translate"),_(2,DZ,1,1,"ng-template",73),c()}if(2&t){const
e=i.$implicit,n=d(3);x("placeholder",f(1,4,"settings.chanedit.all")),p("ngModel"
,e)("options",n.sourceNames)("showClear",!0)}}function
kZ(t,i){if(1&t){const
e=I();l(0,"p-button",74),C("onClick",function(){return
v(e),d(3).deleteSourceRequest()}),m(1,"translate"),m(2,"translate"),c()}if(2&t){const
e=d(3);x("pTooltip",f(1,3,"settings.chanedit.delete_source")),x("label",f(2,5,"common.delete")),p("disabled",e.setupService.schedulingEnabled)}}function
IZ(t,i){1&t&&(g(0),m(1,"translate")),2&t&&T("
",f(1,1,"settings.chanedit.delete_message")," ")}function
EZ(t,i){1&t&&k(0,"button",75)}function
RZ(t,i){if(1&t&&(l(0,"tr")(1,"th"),g(2),m(3,"translate"),l(4,"p-columnFilter",58),_(5,MZ,3,6,"ng-template",59),c(),_(6,kZ,3,7,"p-button",60),_(7,IZ,2,3,"ng-template",null,61,we),c()(),l(9,"tr")(10,"th",62),g(11,"\xa0"),c(),l(12,"th",63),g(13),m(14,"translate"),k(15,"p-sortIcon",64),c(),l(16,"th",65),g(17),m(18,"translate"),c(),l(19,"th",66),g(20),m(21,"translate"),c(),l(22,"th",67),g(23),m(24,"translate"),c(),l(25,"th",68),g(26),m(27,"translate"),k(28,"p-sortIcon",69),c(),l(29,"
th",65),g(30),m(31,"translate"),c(),l(32,"th",66),g(33),m(34,"translate"),c(),l(35,"th",65),g(36),m(37,"translate"),c(),l(38,"th",65),k(39,"button",70),_(40,EZ,1,0,"button",71),c()()),2&t){const
e=F(8),n=d(2);a(2),T("",f(3,13,"settings.chanedit.col_source"),":
\xa0
"),a(2),p("showMenu",!1),a(2),p("ngIf","S"==n.setupService.pageType)("ngIfElse",e),a(7),T("
",f(14,15,"settings.chanedit.col_channum"),"
"),a(4),S(f(18,17,"settings.chanedit.col_freqid")),a(3),S(f(21,19,"settings.chanedit.col_callsign")),a(3),S(f(24,21,"settings.chanedit.col_name")),a(3),T("
",f(27,23,"settings.chanedit.col_source"),"
"),a(4),S(f(31,25,"settings.chanedit.col_priority")),a(3),S(f(34,27,"settings.chanedit.col_visibility")),a(3),S(f(37,29,"settings.chanedit.col_useeit")),a(4),p("ngIf","S"==n.setupService.pageType)}}function
LZ(t,i){1&t&&k(0,"img",83),2&t&&x("src",d().$implicit.IconURL,ln)}function
OZ(t,i){1&t&&k(0,"img",84)}function AZ(t,i){if(1&t){const
e=I();l(0,"button",85),C("click",function(){v(e);const
s=d().$implicit;return
d(2).deleteRequest(s)}),m(1,"translate"),c()}if(2&t){const
e=d().$implicit,n=d(2);x("pTooltip",f(1,2,"settings.chanedit.deletechan")),p("disabled",e.ChanId<0||n.setupService.schedulingEnabled)}}const
PZ=function(t){return{"line-through":t}};function FZ(t,i){if(1&t){const
e=I();l(0,"tr",76)(1,"td",62),_(2,LZ,1,1,"img",77),_(3,OZ,1,0,"ng-template",null,78,we),c(),l(5,"td",79),g(6),c(),l(7,"td",65),g(8),c(),l(9,"td",66),g(10),c(),l(11,"td",67),g(12),c(),l(13,"td",80),g(14),c(),l(15,"td",65),g(16),c(),l(17,"td",66),g(18),c(),l(19,"td",65),g(20),c(),l(21,"td",65)(22,"button",81),C("click",function(){const
r=v(e).$implicit;return
d(2).editChannel(r)}),m(23,"translate"),c(),_(24,AZ,2,4,"button",82),c()()}if(2&t){const
e=i.$implicit,n=F(4),s=d(2);p("ngClass",U(16,PZ,e.ChanId<0)),a(2),p("ngIf",e.IconURL)("ngIfElse",n),a(4),S(e.ChanNum),a(2),S(e.FrequencyId),a(2),S(e.CallSign),a(2),S(e.ChannelName),a(2),S(e.Source),a(2),S(e.RecPriority),a(2),S(s.getVisibility(e)),a(2),
S(e.UseEIT?"Y":"N"),a(2),x("pTooltip",f(23,14,"settings.chanedit.editchan")),p("disabled",e.ChanId<0||"S"==s.setupService.pageType&&s.setupService.schedulingEnabled),a(2),p("ngIf","S"==s.setupService.pageType)}}function
NZ(t,i){if(1&t){const
e=I();l(0,"div",52)(1,"p-table",53),C("onFilter",function(s){return
v(e),d().onFilter(s)}),_(2,xZ,2,4,"ng-template",54),_(3,RZ,41,31,"ng-template",55),_(4,FZ,25,18,"ng-template",56),c()()}if(2&t){const
e=d();a(1),p("value",e.allChannels)("scrollable",!0)("rowHover",!0)}}function
VZ(t,i){1&t&&k(0,"p-progressSpinner")}function
BZ(t,i){1&t&&(k(0,"p-message",91),m(1,"translate")),2&t&&x("text",f(1,1,"common.savesuccess"))}function
HZ(t,i){1&t&&(k(0,"p-message",92),m(1,"translate")),2&t&&x("text",f(1,1,"common.networkfail"))}function
qZ(t,i){if(1&t){const
e=I();l(0,"div",86),_(1,BZ,2,3,"p-message",87),_(2,HZ,2,3,"p-message",88),c(),l(3,"p-button",89),C("onClick",function(){return
v(e),d().closeDialog()}),m(4,"translate"),c(),l(5,"p-button",90),C("onC
lick",function(){return
v(e),d().saveChannel()}),m(6,"translate"),c()}if(2&t){const
e=d(),n=F(7);a(1),p("ngIf",e.successCount>0&&0==e.errorCount&&!n.dirty),a(1),p("ngIf",e.errorCount>0),a(1),x("label",f(4,5,"common.close")),a(2),x("label",f(6,7,"common.save")),p("disabled",!n.dirty||""==e.channel.ChannelName.trim()||""==e.channel.ChanNum.trim()||""==e.channel.CallSign.trim())}}function
GZ(t,i){if(1&t){const
e=I();l(0,"p-button",93),C("onClick",function(){return
v(e),d().closeDialog()}),m(1,"translate"),c(),l(2,"p-button",94),C("onClick",function(){return
v(e),d().displayUnsaved=!1}),m(3,"translate"),c()}2&t&&(x("label",f(1,2,"common.nosave")),a(2),x("label",f(3,4,"common.continue")))}function
UZ(t,i){1&t&&(k(0,"p-message",92),m(1,"translate")),2&t&&x("text",f(1,1,"common.networkfail"))}function
zZ(t,i){if(1&t){const
e=I();l(0,"div",86),_(1,UZ,2,3,"p-message",88),c(),l(2,"p-button",89),C("onClick",function(){v(e);const
s=d(),r=F(7);return s.displayDelete=!1,r.form.markAsPristine()}),
m(3,"translate"),c(),l(4,"p-button",95),C("onClick",function(){v(e);const
s=d();return s.deleteChannel(s.channel)}),m(5,"translate"),c()}if(2&t){const
e=d();a(1),p("ngIf",e.errorCount>0),a(1),x("label",f(3,3,"common.close")),a(2),x("label",f(5,5,"common.delete"))}}const
jZ=function(t){return{Source:t}};function
$Z(t,i){if(1&t&&(l(0,"p")(1,"b"),g(2),m(3,"translate"),c()()),2&t){const
e=d();a(2),S(Dt(3,1,"settings.chanedit.delete_source_details",U(4,jZ,e.filterEvent.filters.Source.value)))}}function
WZ(t,i){1&t&&(l(0,"p")(1,"b"),g(2),m(3,"translate"),c()()),2&t&&(a(2),S(f(3,1,"settings.chanedit.delete_all_details")))}function
KZ(t,i){if(1&t&&(l(0,"div")(1,"p"),g(2),m(3,"translate"),c()()),2&t){const
e=d();a(2),yo(" ",f(3,3,"common.delete"),"
",e.channel.ChanNum," ",e.channel.ChannelName,"")}}function
QZ(t,i){1&t&&(k(0,"p-message",92),m(1,"translate")),2&t&&x("text",f(1,1,"common.networkfail"))}function
JZ(t,i){if(1&t){const
e=I();l(0,"div",86),_(1,QZ,2,3,"p-message",88),c(),l(2,"p-but
ton",89),C("onClick",function(){v(e);const s=d(),r=F(7);return
s.displayDeleteSource=!1,s.channelOperation=-1,r.form.markAsPristine()}),m(3,"translate"),c(),l(4,"p-button",96),C("onClick",function(){return
v(e),d().deleteSource()}),m(5,"translate"),c()}if(2&t){const
e=d();a(1),p("ngIf",e.errorCount>0),a(1),x("label",f(3,4,"common.cancel")),a(2),x("label",f(5,6,"common.delete")),p("disabled",e.working)}}const
YZ=function(){return{height:"75vw",width:"50vw"}},Ol=function(){return{minWidth:"400px"}},ZZ=function(t,i,e){return{ChanNum:t,ChannelName:i,Source:e}};let
bS=(()=>{class
t{constructor(e,n,s,r){this.channelService=e,this.translate=n,this.setupService=s,this.router=r,this.allChannels=[],this.videoSources=[],this.commMethods=[],this.sourceNames=[],this.multiplexes=[],this.tvFormats=[{value:"Default",prompt:"common.default"},{value:"NTSC",prompt:"NTSC"},{value:"NTSC-JP",prompt:"NTSC-JP"},{value:"PAL",prompt:"PAL"},{value:"PAL-60",prompt:"PAL-60"},{value:"PAL-BG",prompt:"PAL-BG"},{va
lue:"PAL-DK",prompt:"PAL-DK"},{value:"PAL-D",prompt:"PAL-D"},{value:"PAL-I",prompt:"PAL-I"},{value:"PAL-M",prompt:"PAL-M"},{value:"PAL-N",prompt:"PAL-N"},{value:"PAL-NC",prompt:"PAL-NC"},{value:"SECAM",prompt:"SECAM"},{value:"SECAM-D",prompt:"SECAM-D"},{value:"SECAM-DK",prompt:"SECAM-DK"}],this.visibilities=[{value:"Always
Visible",prompt:"settings.chanedit.always-visible"},{value:"Visible",prompt:"settings.chanedit.visible"},{value:"Not
Visible",prompt:"settings.chanedit.not-visible"},{value:"Never
Visible",prompt:"settings.chanedit.never-visible"}],this.headingNew="settings.chanedit.new_channel",this.headingEdit="settings.chanedit.title",this.warningText="settings.common.warning",this.deleteText="settings.common.ru_sure",this.unassignedText="settings.chanedit.unassigned",this.transDone=0,this.visDone=0,this.numTranslations=10,this.successCount=0,this.errorCount=0,this.selectedAdvanced=!1,this.displayChannelDlg=!1,this.dialogHeader="",this.displayUnsaved=!1,this.displayDelete=!1,th
is.displayDeleteSource=!1,this.working=!1,this.chansLoaded=!1,this.filterEvent={filters:{Source:{matchMode:"",value:""}}},this.channel=this.resetChannel(),this.channelOperation=0,this.saveObserver={next:o=>{if(o.bool)switch(console.log("saveObserver
success",o),this.successCount++,this.currentForm.form.markAsPristine(),this.channelOperation){case
0:this.editingChannel&&(Object.assign(this.editingChannel,this.channel),this.editingChannel.Source=this.getSource(this.editingChannel));break;case
1:this.allChannels.push(this.channel);break;case-1:this.channel.ChanId=-99,this.displayDelete=!1,this.displayDeleteSource=!1,this.currentForm.form.markAsPristine();break;case-2:this.channel.ChanId=-99,this.deleteSource()}else
console.log("saveObserver
error",o),this.errorCount++,this.working=!1},error:o=>{console.log("saveObserver
error",o),this.errorCount++,this.working=!1}},this.translate.get(this.unassignedText).subscribe(o=>{this.unassignedText=o,this.transDone++,this.loadLists()}),this.loadT
ranslations()}ngOnInit(){this.markPristine()}resetChannel(){return{ATSCMajorChan:0,ATSCMinorChan:0,CallSign:"",ChanFilters:"",ChanId:0,ChanNum:"",ChannelGroups:"",ChannelName:"",CommFree:!1,CommMethod:-1,DefaultAuth:"",ExtendedVisible:"Visible",FineTune:0,Format:"Default",FrequencyId:"",IconURL:"",InputId:0,Inputs:"",MplexId:0,Programs:[],RecPriority:0,ServiceId:0,ServiceType:0,SourceId:0,TimeOffset:0,UseEIT:!1,Visible:!0,XMLTVID:"",ChanSeq:0}}loadLists(){this.channelService.GetChannelInfoList({Details:!0}).subscribe(e=>{this.allChannels=e.ChannelInfoList.ChannelInfos,this.chansLoaded=!0,this.channelService.GetVideoSourceList().subscribe(n=>{this.videoSources=n.VideoSourceList.VideoSources,this.videoSources.unshift({Id:0,SourceName:this.unassignedText}),this.videoSources.forEach(s=>this.sourceNames.push(s.SourceName)),this.allChannels.forEach((s,r)=>{s.ChanSeq=r,s.Source=this.getSource(s)})})}),this.channelService.GetCommMethodList().subscribe(e=>this.commMethods=e.CommMethodList.Co
mmMethods)}loadMultiplexes(e){this.channelService.GetVideoMultiplexList({SourceID:e}).subscribe(n=>{this.multiplexes=n.VideoMultiplexList.VideoMultiplexes})}loadTranslations(){this.visibilities.forEach(e=>{this.translate.get(e.prompt).subscribe(n=>{e.prompt=n,this.transDone++,this.visDone++,this.visDone>=this.visibilities.length&&(this.visibilities=[...this.visibilities])})}),this.translate.get(this.headingNew).subscribe(e=>{this.headingNew=e,this.transDone++}),this.translate.get(this.headingEdit).subscribe(e=>{this.headingEdit=e,this.transDone++}),this.translate.get(this.warningText).subscribe(e=>{this.warningText=e,this.transDone++}),this.translate.get(this.deleteText).subscribe(e=>{this.deleteText=e,this.transDone++}),this.translate.get(this.tvFormats[0].prompt).subscribe(e=>{this.tvFormats[0].prompt=e,this.tvFormats=[...this.tvFormats],this.transDone++})}getSource(e){const
n=this.videoSources.find(s=>e.SourceId==s.Id);return
null!=n?n.SourceName:this.unassignedText}getVisibility
(e){const n=this.visibilities.find(s=>e.ExtendedVisible==s.value);return
null!=n?n.prompt:""}openNew(){this.successCount=0,this.errorCount=0,this.dialogHeader=this.headingNew,this.channel=this.resetChannel(),this.displayChannelDlg=!0,this.markPristine()}editChannel(e){this.editingChannel=e,this.successCount=0,this.errorCount=0,this.dialogHeader=this.headingEdit,this.channel=Object.assign({},e),this.displayChannelDlg=!0,this.markPristine(),this.loadMultiplexes(e.SourceId),this.selectedAdvanced=!1}saveChannel(){this.successCount=0,this.errorCount=0,this.displayUnsaved=!1;let
e={CallSign:this.channel.CallSign,ChannelID:this.channel.ChanId,ChannelNumber:this.channel.ChanNum,ChannelName:this.channel.ChannelName,CommMethod:this.channel.CommMethod,ExtendedVisible:this.channel.ExtendedVisible,Format:this.channel.Format,FrequencyID:this.channel.FrequencyId,MplexID:this.channel.MplexId,RecPriority:this.channel.RecPriority,ServiceID:this.channel.ServiceId,SourceID:this.channel.SourceId,TimeOff
set:this.channel.TimeOffset,UseEIT:this.channel.UseEIT,XMLTVID:this.channel.XMLTVID};0==this.channel.ChanId?(this.channelOperation=1,this.channelService.GetAvailableChanid().subscribe(n=>{this.channel.ChanId=n.int,e.ChannelID=n.int,this.channelService.AddDBChannel(e).subscribe(this.saveObserver)})):(this.channelOperation=0,this.channelService.UpdateDBChannel(e).subscribe(this.saveObserver))}closeDialog(){this.currentForm.dirty?this.displayUnsaved?(this.displayUnsaved=!1,this.displayChannelDlg=!1,this.editingChannel=void
0,this.currentForm.form.markAsPristine()):this.displayUnsaved=!0:(this.displayChannelDlg=!1,this.displayUnsaved=!1,this.editingChannel=void
0)}deleteRequest(e){this.channel=e,this.displayDelete=!0}deleteChannel(e,n){this.successCount=0,this.errorCount=0,this.channel=e,this.channelOperation=n?-2:-1,console.log("Delete
Channel",e),this.channelService.RemoveDBChannel(e.ChanId).subscribe(this.saveObserver)}deleteSourceRequest(){this.channel=this.resetChannel(),this.displ
ayDeleteSource=!0}deleteSource(){this.working=!0;const
e=this.allChannels.find(n=>n.ChanId>0&&(!this.filterEvent.filters.Source.value||this.filterEvent.filters.Source.value==n.Source));e?this.deleteChannel(e,!0):(this.displayDelete=!1,this.displayDeleteSource=!1,this.currentForm.form.markAsPristine(),this.working=!1)}onFilter(e){this.filterEvent=e}markPristine(){setTimeout(()=>this.currentForm.form.markAsPristine(),200)}confirm(e){return
oe(window.confirm(e))}canDeactivate(){return!this.currentForm||!this.currentForm.dirty||this.confirm(this.warningText)}onWindowClose(e){this.currentForm&&this.currentForm.dirty&&(e.preventDefault(),e.returnValue=!1)}}return
t.\u0275fac=function(e){return
new(e||t)(D(Or),D(Oe),D(Me),D(It))},t.\u0275cmp=z({type:t,selectors:[["app-channel-editor"]],viewQuery:function(e,n){if(1&e&&W(SZ,5),2&e){let
s;V(s=B())&&(n.currentForm=s.first)}},hostBindings:function(e,n){1&e&&C("beforeunload",function(r){return
n.onWindowClose(r)},!1,ni)},decls:167,vars:197,const
s:[["class","block card w-full","style","height:
90vh",4,"ngIf","ngIfElse"],["loading",""],["name","chanform",1,"ml-3","mr-3"],["chanform","ngForm"],[3,"header","visible","modal","closable","closeOnEscape","visibleChange"],[1,"form-group","field"],["for","ChannelName",1,"label","block"],["pInputText","","id","ChannelName","name","ChannelName",1,"mb-2","form-control","w-full",3,"ngModel","ngModelChange"],["ChannelName","ngModel"],[1,"block"],["for","ChanNum",1,"label","block"],["pInputText","","id","ChanNum","name","ChanNum",1,"mb-2","form-control","w-full",3,"ngModel","ngModelChange"],["ChanNum","ngModel"],["for","FrequencyId",1,"label","block"],["pInputText","","id","FrequencyId","name","FrequencyId",1,"mb-2","form-control","w-full",3,"ngModel","ngModelChange"],["FrequencyId","ngModel"],["for","CallSign",1,"label","block"],["pInputText","","id","CallSign","name","CallSign",1,"mb-2","form-control","w-full",3,"ngModel","ngModelChange"],["CallSign","ngModel"],["for","ExtendedVisible",
1,"label","block"],["optionLabel","prompt","optionValue","value","name","ExtendedVisible",3,"options","ngModel","editable","maxlength","ngModelChange"],["ExtendedVisible","ngModel"],["for","SourceId",1,"label","block"],["optionLabel","SourceName","optionValue","Id","name","SourceId",3,"options","ngModel","editable","maxlength","ngModelChange"],["SourceId","ngModel"],["for","Format",1,"label","block"],["optionLabel","prompt","optionValue","value","name","Format",3,"options","ngModel","editable","maxlength","ngModelChange"],["Format","ngModel"],["for","RecPriority",1,"label","block"],["name","RecPriority","id","RecPriority",3,"ngModel","showButtons","min","max","step","ngModelChange"],["inputId","UseEIT","name","UseEIT",1,"label","mb-2","w-full",3,"ngModel","binary","label","ngModelChange"],["UseEIT","ngModel"],["for","XMLTVID",1,"label","block"],["pInputText","","id","XMLTVID","name","XMLTVID",1,"mb-2","form-control","w-full",3,"ngModel","ngModelChange"],["XMLTVID","ngModel"],["for",
"TimeOffset",1,"label","block"],["name","TimeOffset","id","TimeOffset",3,"ngModel","showButtons","min","max","step","ngModelChange"],["for","CommMethod",1,"label","block"],["optionLabel","LocalizedName","optionValue","CommMethod","name","CommMethod",3,"options","ngModel","editable","maxlength","ngModelChange"],["CommMethod","ngModel"],[3,"header","selected","selectedChange"],["for","MplexId",1,"label","block"],["optionLabel","Description","optionValue","MplexId","name","MplexId",3,"options","ngModel","editable","maxlength","ngModelChange"],["MplexId","ngModel"],["for","ServiceId",1,"label","block"],["name","ServiceId","id","ServiceId",3,"ngModel","showButtons","min","max","step","ngModelChange"],["pTemplate","footer"],[3,"header","visible","modal","visibleChange"],[3,"header","visible","modal","draggable","resizable","visibleChange"],[4,"ngIf","ngIfElse"],["all",""],[4,"ngIf"],[1,"block","card","w-full",2,"height","90vh"],["scrollHeight","flex","styleClass","p-datatable-striped","re
sponsiveLayout","scroll",3,"value","scrollable","rowHover","onFilter"],["pTemplate","caption"],["pTemplate","header"],["pTemplate","body"],["pButton","","pRipple","","icon","pi
pi-plus",1,"p-button-success","mr-2",3,"label","disabled","click"],["field","Source","matchMode","equals",3,"showMenu"],["pTemplate","filter"],["icon","pi
pi-trash","styleClass","p-button-danger",3,"pTooltip","label","disabled","onClick",4,"ngIf","ngIfElse"],["explain",""],[2,"flex-basis","8%"],["pSortableColumn","ChanSeq",2,"flex-basis","9%"],["field","ChanSeq"],[2,"flex-basis","6%"],[2,"flex-basis","10%"],[2,"flex-basis","24%"],["pSortableColumn","Source",2,"flex-basis","16%"],["field","Source"],["pButton","","pRipple","","icon","pi
pi-pencil","disabled","true",1,"p-button-text"],["pButton","","pRipple","","icon","pi
pi-trash","class","p-button-text
p-button-danger","disabled","true",4,"ngIf"],["name","filter",3,"ngModel","options","placeholder","showClear","onChange"],["pTemplate","item"],["icon","pi
pi-tr
ash","styleClass","p-button-danger",3,"pTooltip","label","disabled","onClick"],["pButton","","pRipple","","icon","pi
pi-trash","disabled","true",1,"p-button-text","p-button-danger"],["height","40",3,"ngClass"],["height","32","width","42","style","background-color:#000000","onerror","this.height='0'",3,"src",4,"ngIf","ngIfElse"],["nullIcon",""],[2,"flex-basis","9%"],[2,"flex-basis","16%"],["pButton","","pRipple","","icon","pi
pi-pencil","tooltipPosition","left",1,"p-button-text",3,"disabled","pTooltip","click"],["pButton","","pRipple","","icon","pi
pi-trash","class","p-button-text
p-button-danger","tooltipPosition","left",3,"pTooltip","disabled","click",4,"ngIf"],["height","32","width","42","onerror","this.height='0'",2,"background-color","#000000",3,"src"],["height","32","width","42"],["pButton","","pRipple","","icon","pi
pi-trash","tooltipPosition","left",1,"p-button-text","p-button-danger",3,"pTooltip","disabled","click"],[1,"col-12",2,"text-align","left"],["severity","success",3,
"text",4,"ngIf"],["severity","error",3,"text",4,"ngIf"],["icon","pi
pi-times-circle","styleClass","p-button-warning",3,"label","onClick"],["icon","pi
pi-check-circle","styleClass","p-button-success",3,"label","disabled","onClick"],["severity","success",3,"text"],["severity","error",3,"text"],["icon","pi
pi-times-circle","styleClass","p-button-danger",3,"label","onClick"],["icon","pi
pi-check-circle","styleClass","p-button-success",3,"label","onClick"],["icon","pi
pi-check-circle","styleClass","p-button-danger",3,"label","onClick"],["icon","pi
pi-check-circle","styleClass","p-button-danger",3,"disabled","label","onClick"]],template:function(e,n){if(1&e&&(l(0,"h2"),g(1),m(2,"translate"),c(),_(3,NZ,5,3,"div",0),_(4,VZ,1,0,"ng-template",null,1,we),l(6,"form",2,3)(8,"p-dialog",4),C("visibleChange",function(r){return
n.displayChannelDlg=r}),l(9,"div",5)(10,"label",6),g(11),m(12,"translate"),c(),l(13,"input",7,8),C("ngModelChange",function(r){return
n.channel.ChannelName=r}),c(),l(15,"smal
l",9),g(16),m(17,"translate"),c()(),l(18,"div",5)(19,"label",10),g(20),m(21,"translate"),c(),l(22,"input",11,12),C("ngModelChange",function(r){return
n.channel.ChanNum=r}),c(),l(24,"small",9),g(25),m(26,"translate"),c()(),l(27,"div",5)(28,"label",13),g(29),m(30,"translate"),c(),l(31,"input",14,15),C("ngModelChange",function(r){return
n.channel.FrequencyId=r}),c(),l(33,"small",9),g(34),m(35,"translate"),c()(),l(36,"div",5)(37,"label",16),g(38),m(39,"translate"),c(),l(40,"input",17,18),C("ngModelChange",function(r){return
n.channel.CallSign=r}),c(),l(42,"small",9),g(43),m(44,"translate"),c()(),l(45,"div",5)(46,"label",19),g(47),m(48,"translate"),c(),l(49,"p-dropdown",20,21),C("ngModelChange",function(r){return
n.channel.ExtendedVisible=r}),c(),l(51,"small",9),g(52),m(53,"translate"),c()(),l(54,"div",5)(55,"label",22),g(56),m(57,"translate"),c(),l(58,"p-dropdown",23,24),C("ngModelChange",function(r){return
n.channel.SourceId=r}),c(),l(60,"small",9),g(61),m(62,"translate"),c()(),l(63,"d
iv",5)(64,"label",25),g(65),m(66,"translate"),c(),l(67,"p-dropdown",26,27),C("ngModelChange",function(r){return
n.channel.Format=r}),c(),l(69,"small",9),g(70),m(71,"translate"),c()(),l(72,"div",5)(73,"label",28),g(74),m(75,"translate"),c(),l(76,"p-inputNumber",29),C("ngModelChange",function(r){return
n.channel.RecPriority=r}),c(),l(77,"small",9),g(78),m(79,"translate"),c()(),l(80,"div",5)(81,"p-checkbox",30,31),C("ngModelChange",function(r){return
n.channel.UseEIT=r}),m(83,"translate"),c(),l(84,"small",9),g(85),m(86,"translate"),c()(),l(87,"div",5)(88,"label",32),g(89),m(90,"translate"),c(),l(91,"input",33,34),C("ngModelChange",function(r){return
n.channel.XMLTVID=r}),c(),l(93,"small",9),g(94),m(95,"translate"),c()(),l(96,"div",5)(97,"label",35),g(98),m(99,"translate"),c(),l(100,"p-inputNumber",36),C("ngModelChange",function(r){return
n.channel.TimeOffset=r}),c(),l(101,"small",9),g(102),m(103,"translate"),c()(),l(104,"div",5)(105,"label",37),g(106),m(107,"translate"),c(),l(108,"p-dr
opdown",38,39),C("ngModelChange",function(r){return
n.channel.CommMethod=r}),c(),l(110,"small",9),g(111),m(112,"translate"),c()(),l(113,"p-accordion")(114,"p-accordionTab",40),C("selectedChange",function(r){return
n.selectedAdvanced=r}),m(115,"translate"),l(116,"div",5)(117,"label",41),g(118),m(119,"translate"),c(),l(120,"p-dropdown",42,43),C("ngModelChange",function(r){return
n.channel.MplexId=r}),c(),l(122,"small",9),g(123),m(124,"translate"),c()(),l(125,"div",5)(126,"label",44),g(127),m(128,"translate"),c(),l(129,"p-inputNumber",45),C("ngModelChange",function(r){return
n.channel.ServiceId=r}),c(),l(130,"small",9),g(131),m(132,"translate"),c()()()(),k(133,"br")(134,"br")(135,"br")(136,"br")(137,"br")(138,"br")(139,"br")(140,"br"),_(141,qZ,7,9,"ng-template",46),c(),l(142,"p-dialog",47),C("visibleChange",function(r){return
n.displayUnsaved=r}),m(143,"translate"),l(144,"p"),g(145),m(146,"translate"),c(),_(147,GZ,4,6,"ng-template",46),c(),l(148,"p-dialog",48),C("visibleChange",functio
n(r){return
n.displayDelete=r}),m(149,"translate"),l(150,"h2"),g(151),m(152,"translate"),c(),l(153,"p"),g(154),m(155,"translate"),c(),_(156,zZ,6,7,"ng-template",46),c(),l(157,"p-dialog",48),C("visibleChange",function(r){return
n.displayDeleteSource=r}),m(158,"translate"),l(159,"h2"),g(160),m(161,"translate"),c(),_(162,$Z,4,6,"p",49),_(163,WZ,4,3,"ng-template",null,50,we),_(165,KZ,4,5,"div",51),_(166,JZ,6,8,"ng-template",46),c()()),2&e){const
s=F(5),r=F(164);a(1),S(f(2,112,"settings.chanedit.title")),a(2),p("ngIf",n.chansLoaded&&n.transDone>=n.numTranslations)("ngIfElse",s),a(5),q(A(187,YZ)),x("header",n.dialogHeader),p("visible",n.displayChannelDlg)("modal",!0)("closable",!1)("closeOnEscape",!1),a(3),S(f(12,114,"settings.chanedit.channame")),a(2),p("ngModel",n.channel.ChannelName),a(3),T("
",f(17,116,"settings.chanedit.channame_desc"),"
"),a(4),S(f(21,118,"settings.chanedit.channum")),a(2),p("ngModel",n.channel.ChanNum),a(3),T("
",f(26,120,"settings.chanedit.channum_desc")," "),a(4)
,S(f(30,122,"settings.chanedit.freqid")),a(2),p("ngModel",n.channel.FrequencyId),a(3),T("
",f(35,124,"settings.chanedit.freqid_desc"),"
"),a(4),S(f(39,126,"settings.chanedit.callsign")),a(2),p("ngModel",n.channel.CallSign),a(3),T("
",f(44,128,"settings.chanedit.callsign_desc"),"
"),a(4),S(f(48,130,"settings.chanedit.visible_label")),a(2),q(A(188,Ol)),p("options",n.visibilities)("ngModel",n.channel.ExtendedVisible)("editable",!1)("maxlength",0),a(3),T("
",f(53,132,"settings.chanedit.visible_desc"),"
"),a(4),S(f(57,134,"settings.chanedit.source_label")),a(2),q(A(189,Ol)),p("options",n.videoSources)("ngModel",n.channel.SourceId)("editable",!1)("maxlength",0),a(3),T("
",f(62,136,"settings.chanedit.source_desc"),"
"),a(4),S(f(66,138,"settings.chanedit.format_label")),a(2),q(A(190,Ol)),p("options",n.tvFormats)("ngModel",n.channel.Format)("editable",!1)("maxlength",0),a(3),T("
",f(71,140,"settings.chanedit.format_desc"),"
"),a(4),S(f(75,142,"settings.chanedit.priority_label")),a(2),p("ngMo
del",n.channel.RecPriority)("showButtons",!0)("min",-99)("max",99)("step",1),a(2),T("
",f(79,144,"settings.chanedit.priority_desc"),"
"),a(3),x("label",f(83,146,"settings.chanedit.eit_label")),p("ngModel",n.channel.UseEIT)("binary",!0),a(4),T("
",f(86,148,"settings.chanedit.eit_desc"),"
"),a(4),S(f(90,150,"settings.chanedit.xmltvid_label")),a(2),p("ngModel",n.channel.XMLTVID),a(3),T("
",f(95,152,"settings.chanedit.xmltvid_desc"),"
"),a(4),S(f(99,154,"settings.chanedit.timeoffset_label")),a(2),p("ngModel",n.channel.TimeOffset)("showButtons",!0)("min",-1440)("max",1440)("step",30),a(2),T("
",f(103,156,"settings.chanedit.timeoffset_desc"),"
"),a(4),S(f(107,158,"settings.chanedit.commmethod_label")),a(2),q(A(191,Ol)),p("options",n.commMethods)("ngModel",n.channel.CommMethod)("editable",!1)("maxlength",0),a(3),T("
",f(112,160,"settings.chanedit.commmethod_desc"),"
"),a(3),x("header",f(115,162,"settings.chanedit_advanced")),p("selected",n.selectedAdvanced),a(4),S(f(119,164,"settings.chane
dit.mplex_label")),a(2),q(A(192,Ol)),p("options",n.multiplexes)("ngModel",n.channel.MplexId)("editable",!1)("maxlength",0),a(3),T("
",f(124,166,"settings.chanedit.mplex_desc"),"
"),a(4),S(f(128,168,"settings.chanedit.serviceid_label")),a(2),p("ngModel",n.channel.ServiceId)("showButtons",!0)("min",-1)("max",65535)("step",1),a(2),T("
",f(132,170,"settings.chanedit.serviceid_desc"),"
"),a(11),x("header",f(143,172,"common.unsaved_heading")),p("visible",n.displayUnsaved)("modal",!0),a(3),S(f(146,174,"common.unsaved_message")),a(3),x("header",f(149,176,"settings.chanedit.delete_this")),p("visible",n.displayDelete)("modal",!0)("draggable",!1)("resizable",!1),a(3),S(f(152,178,"settings.common.ru_sure")),a(3),S(Dt(155,180,"settings.chanedit.delete_details",Qt(193,ZZ,n.channel.ChanNum,n.channel.ChannelName,n.getSource(n.channel)))),a(3),x("header",f(158,183,"settings.chanedit.delete_source")),p("visible",n.displayDeleteSource)("modal",!0)("draggable",!1)("resizable",!1),a(3),S(f(161,185,"sett
ings.common.ru_sure")),a(2),p("ngIf",n.filterEvent.filters.Source.value)("ngIfElse",r),a(3),p("ngIf",0!=n.channel.ChanId)}},directives:[Q,Dn,ne,On,bt,vg,Ot,Te,_e,ve,Kt,yd,wd,Le,Go,ze,Ue,He,bn,Ye,_n,pt,sn,Ss,Ts,qe],pipes:[ce],styles:[""]}),t})(),XZ=(()=>{class
t{constructor(e){this.router=e}ngOnInit(){}}return t.\u0275fac=function(e){return
new(e||t)(D(It))},t.\u0275cmp=z({type:t,selectors:[["app-wiz-channeledit"]],decls:11,vars:6,consts:[[1,"m-5"],[1,"flex","justify-content-end"],["icon","pi
pi-angle-left","iconPos","left",1,"p-3",3,"label","onClick"],["icon","pi
pi-angle-right","iconPos","right",1,"p-3",3,"label","onClick"]],template:function(e,n){1&e&&(l(0,"p-card",0),k(1,"app-channel-editor")(2,"br")(3,"br")(4,"br")(5,"br"),l(6,"div",1)(7,"p-button",2),C("onClick",function(){return
n.router.navigate(["setupwizard/input-connections"])}),m(8,"translate"),c(),l(9,"p-button",3),C("onClick",function(){return
n.router.navigate(["setupwizard/storage-groups"])}),m(10,"translate"),c()()()
),2&e&&(a(7),x("label",f(8,2,"common.back")),a(2),x("label",f(10,4,"common.next")))},directives:[Ne,bS,ve],pipes:[ce],styles:[""]}),t})(),eX=(()=>{class
t{}return t.\u0275fac=function(e){return
new(e||t)},t.\u0275mod=he({type:t}),t.\u0275inj=ue({imports:[[vn.forChild([{path:"setupwizard",component:rS,children:[{path:"selectlanguage",component:nK,canDeactivate:[ji]},{path:"dbsetup",component:RK,canDeactivate:[ji]},{path:"general",component:WJ,canDeactivate:[ji]},{path:"capture-cards",component:hS,canDeactivate:[ji]},{path:"recording-profiles",component:mS,canDeactivate:[ji]},{path:"video-sources",component:UY,canDeactivate:[ji]},{path:"input-connections",component:_S,canDeactivate:[ji]},{path:"channel-editor",component:XZ,canDeactivate:[ji]},{path:"storage-groups",component:gZ,canDeactivate:[ji]},{path:"system-events",component:TZ,canDeactivate:[ji]}]}])],vn]}),t})(),vS=(()=>{class
t{constructor(e){this.httpClient=e,this.guide_hours=3,this.guide_millisecs=60*this.guide_hours*60*1e3,t
his.startDate=new Date}toTime(e){return new Date(e).toISOString()}toStartTime(e){return
this.toTime(e)}toEndTime(e){let n=new Date(e),s=new
Date(n.getTime()+this.guide_millisecs);return
this.toTime(s.toISOString())}toHalfHour(e){let n=new Date(e);return
n.setMinutes(n.getMinutes()<30?0:30),n.setSeconds(0),n}AddToChannelGroup(e){return
this.httpClient.post("/Guide/AddToChannelGroup",e)}GetCategoryList(){return
this.httpClient.get("/Guide/GetCategoryList")}GetChannelGroupList(e){let n=(new
ye).set("IncludeEmpty",e);return
this.httpClient.get("/Guide/GetChannelGroupList",{params:n})}GetChannelIcon(e){let
n=(new
ye).set("ChanId",e.ChanId).set("Width",e.Width).set("Height",e.Height);return
this.httpClient.get("/Guide/GetChannelIcon",{params:n})}GetProgramDetails(e){let
n=(new ye).set("ChanId",e.ChanId).set("StartTime",e.StartTime);return
this.httpClient.get("/Guide/GetProgramDetails",{params:n})}GetProgramGuide(e,n){e&&(this.startDate=e);let
s=this.toHalfHour(this.startDate).toISOString(
),r={StartTime:this.toStartTime(s),EndTime:this.toEndTime(s),Details:!0,ChannelGroupId:n};return
this.httpClient.post("/Guide/GetProgramGuide",r)}GetProgramList(e){let n=new
ye;for(const[s,r]of Object.entries(e))n=n.set(s,r);return
this.httpClient.get("/Guide/GetProgramList",{params:n})}GetStoredSearches(e){let
n=(new ye).set("Type",e);return
this.httpClient.get("/Guide/GetStoredSearches",{params:n})}RemoveFromChannelGroup(e){return
this.httpClient.post("/Guide/RemoveFromChannelGroup",e)}}return
t.\u0275fac=function(e){return
new(e||t)(K(Bi))},t.\u0275prov=X({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();function
tX(t,i){if(1&t){const
e=I();l(0,"div",15)(1,"p-dropdown",16),C("ngModelChange",function(s){return
v(e),d(2).channelGroup=s})("onChange",function(){return
v(e),d(2).refresh()}),m(2,"translate"),c()()}if(2&t){const
e=d(2);a(1),x("pTooltip",f(2,3,"dashboard.guide.channel_group")),p("ngModel",e.channelGroup)("options",e.channelGroups)}}function
nX(t,i){if(1&t&&(l(0,"div
",17)(1,"b"),g(2),m(3,"translate"),c()()),2&t){const
e=d(2);a(2),Ec(" ",f(3,4,"dashboard.guide.channel"),"
",e.channel.ChanNum," ",e.channel.CallSign,"
",e.channel.ChannelName,"")}}function
iX(t,i){1&t&&(l(0,"div",17)(1,"b"),g(2),m(3,"translate"),c()()),2&t&&(a(2),T("
",f(3,1,"dashboard.guide.people_search")," "))}function
sX(t,i){1&t&&(l(0,"div",17)(1,"b"),g(2),m(3,"translate"),c()()),2&t&&(a(2),T("
",f(3,1,"dashboard.guide.title_search")," "))}function
rX(t,i){1&t&&(l(0,"div",17)(1,"b"),g(2),m(3,"translate"),c()()),2&t&&(a(2),T("
",f(3,1,"dashboard.guide.full_search")," "))}function
oX(t,i){if(1&t){const
e=I();l(0,"div",18)(1,"input",19),C("ngModelChange",function(s){return
v(e),d(2).searchValue=s}),c(),l(2,"button",20),C("click",function(){return
v(e),d(2).titleSearch()}),m(3,"translate"),c(),l(4,"button",21),C("click",function(){return
v(e),d(2).peopleSearch()}),m(5,"translate"),c(),l(6,"button",22),C("click",function(){return
v(e),d(2).fullSearch()}),m(7,"translate"),c()()}if(2
&t){const
e=d(2);a(1),p("ngModel",e.searchValue),a(1),x("pTooltip",f(3,4,"dashboard.guide.title_search")),a(2),x("pTooltip",f(5,6,"dashboard.guide.people_search")),a(2),x("pTooltip",f(7,8,"dashboard.guide.full_search"))}}function
aX(t,i){if(1&t){const
e=I();l(0,"div",7)(1,"button",23),C("click",function(){return
v(e),d(2).onGrid()}),m(2,"translate"),c()()}2&t&&(a(1),x("pTooltip",f(2,1,"dashboard.guide.retgrid")))}const
lX=function(){return{width:"30px",height:"30px"}};function
cX(t,i){1&t&&(l(0,"div"),k(1,"p-progressSpinner"),c()),2&t&&(a(1),q(A(2,lX)))}function
uX(t,i){if(1&t){const
e=I();l(0,"div")(1,"button",24),C("click",function(){v(e);const
s=d(3);return
s.refreshing=!0,s.refresh()}),m(2,"translate"),c()()}2&t&&(a(1),x("pTooltip",f(2,1,"common.refresh")))}const
dX=function(t,i){return[t,i]};function
pX(t,i){if(1&t&&_(0,uX,3,3,"div",14),2&t){const
e=d(2);p("ngIf",Ge(1,dX,e.CHANNEL,e.GRID).indexOf(e.displayType)>-1)}}function
hX(t,i){}function mX(t,i){if(1&t&&(de(0),l(1,"div",34
),k(2,"app-guide-timebar",35),c(),pe()),2&t){const
e=d(4);a(2),p("guide",e)}}function
fX(t,i){if(1&t&&(de(0),k(1,"app-guide-programentry",36),pe()),2&t){const
e=d().$implicit,n=d().$implicit,s=d(3);a(1),p("program",e)("guideStartTime",s.m_programGuide.ProgramGuide.StartTime)("guideEndTime",s.m_programGuide.ProgramGuide.EndTime)("guideComponent",s)("channel",n)}}function
gX(t,i){if(1&t&&(de(0),_(1,fX,2,5,"ng-container",14),pe()),2&t){const
e=i.$implicit,n=d(4);a(1),p("ngIf",!n.timeChange&&n.inDisplayWindow(e.StartTime,e.EndTime))}}function
_X(t,i){if(1&t&&(l(0,"div",28),_(1,mX,3,1,"ng-container",14),l(2,"div",29)(3,"div",30),k(4,"app-guide-channelicon",31),c(),l(5,"div",32),_(6,gX,2,1,"ng-container",33),c()()()),2&t){const
e=i.$implicit,n=i.rowIndex,s=d(3);a(1),p("ngIf",n%5==0),a(3),p("channel",e)("guideComponent",s),a(2),p("ngForOf",e.Programs)}}const
bX=function(){return{width:"100%",height:"90vh"}};function
vX(t,i){if(1&t&&(l(0,"div")(1,"p-scrollPanel")(2,"p-dataView",25),_(3,hX,0
,0,"ng-template",26),_(4,_X,7,4,"ng-template",27),c()()()),2&t){const
e=d(2);a(1),q(A(4,bX)),a(1),p("value",e.m_programGuide.ProgramGuide.Channels)("totalRecords",e.m_programGuide.ProgramGuide.TotalAvailable)}}function
CX(t,i){if(1&t&&(l(0,"div"),k(1,"app-programs",37),c()),2&t){const
e=d(2);a(1),p("inter",e.inter)("programs",e.listPrograms)}}const
Cg=function(t,i,e,n){return[t,i,e,n]};function yX(t,i){if(1&t){const
e=I();l(0,"div")(1,"div",5),_(2,tX,3,5,"div",6),l(3,"div",7)(4,"p-calendar",8),C("ngModelChange",function(s){return
v(e),d().m_pickerDate=s})("onClose",function(){return
v(e),d().onDateChange()})("keyup.enter",function(){return
v(e),d().onDateChange()})("onBlur",function(){return
v(e),d().onDateChange()}),m(5,"translate"),c()(),_(6,nX,4,6,"div",9),_(7,iX,4,3,"div",9),_(8,sX,4,3,"div",9),_(9,rX,4,3,"div",9),_(10,oX,8,10,"div",10),_(11,aX,3,3,"div",11),l(12,"div",7),_(13,cX,2,3,"div",0),_(14,pX,1,4,"ng-template",null,12,we),c(),l(16,"div",7)(17,"button",13),C("click",funct
ion(){return
v(e),d().showLegend=!0}),m(18,"translate"),c()()(),_(19,vX,5,5,"div",14),_(20,CX,2,2,"div",14),c()}if(2&t){const
e=F(15),n=d();a(2),p("ngIf",n.displayType==n.GRID),a(2),x("pTooltip",f(5,22,"dashboard.guide.calendar_tip")),p("ngModel",n.m_pickerDate)("showTime",!0)("stepMinute",30)("dateFormat","yy/mm/dd")("selectOtherMonths",!0)("showIcon",!0)("showOnFocus",!0)("showButtonBar",!0)("clearButtonStyleClass","hidden"),a(2),p("ngIf",n.displayType==n.CHANNEL),a(1),p("ngIf",n.displayType==n.PEOPLESEARCH),a(1),p("ngIf",n.displayType==n.TITLESEARCH),a(1),p("ngIf",n.displayType==n.FULLSEARCH),a(1),p("ngIf",qn(26,Cg,n.GRID,n.TITLESEARCH,n.PEOPLESEARCH,n.FULLSEARCH).indexOf(n.displayType)>-1),a(1),p("ngIf",qn(31,Cg,n.CHANNEL,n.TITLESEARCH,n.PEOPLESEARCH,n.FULLSEARCH).indexOf(n.displayType)>-1),a(2),p("ngIf",n.refreshing)("ngIfElse",e),a(4),x("label",f(18,24,"dashboard.guide.colors")),a(2),p("ngIf",n.displayType==n.GRID),a(1),p("ngIf",qn(36,Cg,n.CHANNEL,n.TITLESEARCH,n.PEOPLESEARCH,
n.FULLSEARCH).indexOf(n.displayType)>-1)}}function
wX(t,i){1&t&&k(0,"p-progressSpinner")}function
TX(t,i){if(1&t&&k(0,"app-legend",38),2&t){const
e=d();p("programGuide",e.displayType==e.GRID?e.m_programGuide:null)("listPrograms",e.displayType==e.GRID?null:e.listPrograms)}}const
SX=function(){return{width:"80vw"}};let CS=(()=>{class
t{constructor(e,n){this.guideService=e,this.translate=n,this.m_startDate=new
Date,this.m_pickerDate=new Date,this.m_endDate=new
Date,this.channelGroups=[],this.m_channelData=[],this.m_channelTotal=10,this.m_rows=10,this.listPrograms=[],this.allGroup={GroupId:0,Name:this.translate.instant("settings.chanedit.all"),Password:""},this.channelGroup=this.allGroup,this.loaded=!1,this.refreshing=!1,this.timeChange=!1,this.inter={summaryComponent:this},this.GRID=1,this.CHANNEL=2,this.TITLESEARCH=3,this.PEOPLESEARCH=4,this.FULLSEARCH=5,this.displayType=this.GRID,this.searchValue="",this.showLegend=!1,this.translate.onLangChange.subscribe(s=>{console.log("Event:
lang
uage change, new language
("+s.lang+")"),this.switchLanguage(s.lang),this.fetchData()})}ngOnInit(){this.fetchData()}switchLanguage(e){this.translate.use(e)}fetchData(e){0==this.channelGroups.length&&this.guideService.GetChannelGroupList(!1).subscribe(n=>{console.log(n),this.channelGroups=n.ChannelGroupList.ChannelGroups,this.channelGroups.unshift(this.allGroup)}),this.guideService.GetProgramGuide(e,this.channelGroup.GroupId).subscribe(n=>{this.m_programGuide=n,this.m_startDate=new
Date(n.ProgramGuide.StartTime),this.m_pickerDate=new
Date(this.m_startDate),this.m_endDate=new
Date(n.ProgramGuide.EndTime),this.m_channelData=n.ProgramGuide.Channels,this.m_channelTotal=n.ProgramGuide.TotalAvailable,this.loaded=!0,this.refreshing=!1,this.timeChange=!1})}fetchDetails(){let
e=this.m_startDate.getTime(),s={Details:!0,StartTime:new
Date(e+1e3).toISOString()};switch(this.displayType){case
this.CHANNEL:s.ChanId=this.channel.ChanId;break;case
this.TITLESEARCH:s.TitleFilter=this.searchValue,s.Cou
nt=1e3;break;case
this.PEOPLESEARCH:s.PersonFilter=this.searchValue,s.Count=1e3;break;case
this.FULLSEARCH:s.KeywordFilter=this.searchValue,s.Count=1e3}this.listPrograms=[],this.guideService.GetProgramList(s).subscribe(r=>{this.listPrograms=r.ProgramList.Programs,this.loaded=!0,this.refreshing=!1})}inDisplayWindow(e,n){let
s=new Date(e),r=new Date(n),o=new Date(this.m_startDate),u=new
Date(this.m_endDate);return!(r<=o||s>=u)&&s<u}onDateChange(){this.m_pickerDate||(this.m_pickerDate=new
Date),this.m_pickerDate.getTime()!=this.m_startDate.getTime()&&(this.m_startDate=new
Date(this.m_pickerDate),this.timeChange=!0,this.refresh())}refresh(){switch(this.refreshing=!0,this.displayType){case
this.GRID:this.m_startDate&&(this.refreshing=!0,this.fetchData(this.m_startDate));break;case
this.CHANNEL:case this.TITLESEARCH:case this.PEOPLESEARCH:case
this.FULLSEARCH:this.refreshing=!0,this.fetchDetails()}}onChannel(e){this.channel=e,this.displayType=this.CHANNEL,this.refresh()}onGrid(){this.disp
layType=this.GRID,this.refresh()}titleSearch(){this.searchValue=this.searchValue.trim(),this.searchValue.length>1&&(this.displayType=this.TITLESEARCH,this.refresh())}peopleSearch(){this.searchValue=this.searchValue.trim(),this.searchValue.length>1&&(this.displayType=this.PEOPLESEARCH,this.refresh())}fullSearch(){this.searchValue=this.searchValue.trim(),this.searchValue.length>1&&(this.displayType=this.FULLSEARCH,this.refresh())}}return
t.\u0275fac=function(e){return
new(e||t)(D(vS),D(Oe))},t.\u0275cmp=z({type:t,selectors:[["app-guide"]],decls:10,vars:14,consts:[[4,"ngIf","ngIfElse"],[3,"inter"],["loading",""],[3,"header","visible","modal","visibleChange"],["pTemplate",""],[1,"flex"],["class","flex
align-items-center
pr-5",4,"ngIf"],[1,"flex","align-items-center"],["tooltipPosition","top",3,"ngModel","showTime","stepMinute","dateFormat","selectOtherMonths","showIcon","showOnFocus","showButtonBar","clearButtonStyleClass","pTooltip","ngModelChange","onClose","keyup.enter","onBlur"],["c
lass","flex align-items-center
p-5",4,"ngIf"],["class","flex align-items-center
pl-5",4,"ngIf"],["class","flex
align-items-center",4,"ngIf"],["refreshBn",""],["type","text","pButton","",3,"label","click"],[4,"ngIf"],[1,"flex","align-items-center","pr-5"],["name","channelGroup","optionLabel","Name","tooltipPosition","top",3,"ngModel","options","pTooltip","ngModelChange","onChange"],[1,"flex","align-items-center","p-5"],[1,"flex","align-items-center","pl-5"],["type","text","pInputText","","id","searchValue","name","searchValue","placeholder","Search",1,"text-xl",3,"ngModel","ngModelChange"],["pButton","","pRipple","","icon","pi
pi-search","tooltipPosition","top",1,"p-button-text",3,"pTooltip","click"],["pButton","","pRipple","","icon","pi
pi-user","tooltipPosition","top",1,"p-button-text",3,"pTooltip","click"],["pButton","","pRipple","","icon","pi
pi-search-plus","tooltipPosition","top",1,"p-button-text",3,"pTooltip","click"],["pButton","","pRipple","","icon","pi
pi-table","tooltipPos
ition","top",1,"p-button-text",3,"pTooltip","click"],["pButton","","pRipple","","icon","pi
pi-refresh","tooltipPosition","top",1,"p-button-text",3,"pTooltip","click"],[3,"value","totalRecords"],["pTemplate","header","styleClass","timeHeader"],["pTemplate","listItem"],[1,"grid","col-12","p-3"],[1,"grid","flex-grow-1"],[1,"col-1"],[3,"channel","guideComponent"],[1,"col"],[4,"ngFor","ngForOf"],[1,"col-12"],[3,"guide"],[3,"program","guideStartTime","guideEndTime","guideComponent","channel"],[3,"inter","programs"],[3,"programGuide","listPrograms"]],template:function(e,n){if(1&e&&(l(0,"h2"),g(1),m(2,"translate"),c(),_(3,yX,21,41,"div",0),k(4,"app-schedule",1),_(5,wX,1,0,"ng-template",null,2,we),l(7,"p-dialog",3),C("visibleChange",function(r){return
n.showLegend=r}),m(8,"translate"),_(9,TX,1,2,"ng-template",4),c()),2&e){const
s=F(6);a(1),T("",f(2,9,"dashboard.programguide"),"
"),a(2),p("ngIf",n.loaded)("ngIfElse",s),a(1),p("inter",n.inter),a(3),q(A(13,SX)),x("header",f(8,11,"dashboard.guid
e.colors")),p("visible",n.showLegend)("modal",!0)}},styles:[".channelRow[_ngcontent-%COMP%]{display:block;grid-template-columns:90px
auto;width:100%;height:82px;padding-bottom:2px}.programsBox[_ngcontent-%COMP%],
.timebarbox[_ngcontent-%COMP%]{grid-template-columns:90px
auto;grid-template-rows:28px;width:100%}"]}),t})();function
xX(t,i){1&t&&k(0,"img",5),2&t&&x("src",d().channel.IconURL,ln)}function
DX(t,i){1&t&&k(0,"img",6)}let MX=(()=>{class
t{constructor(){}ngOnInit(){}}return t.\u0275fac=function(e){return
new(e||t)},t.\u0275cmp=z({type:t,selectors:[["app-guide-channelicon"]],inputs:{channel:"channel",guideComponent:"guideComponent"},decls:8,vars:4,consts:[[1,"flex","flex-column","align-items-center","channelBox","cursor-pointer",3,"click"],[1,"channelIcon"],["height","57",3,"src",4,"ngIf","ngIfElse"],["nullIcon",""],[1,"channelText"],["height","57",3,"src"],["height","0","width","0"]],template:function(e,n){if(1&e&&(l(0,"div",0),C("click",function(){return
n.guideComponent.onCh
annel(n.channel)}),l(1,"div",1),_(2,xX,1,1,"img",2),_(3,DX,1,0,"ng-template",null,3,we),c(),l(5,"div",4)(6,"span"),g(7),c()()()),2&e){const
s=F(4);a(2),p("ngIf",n.channel.IconURL)("ngIfElse",s),a(5),We("",n.channel.ChanNum,"
",n.channel.CallSign,"")}},directives:[Q],styles:[".channelBox[_ngcontent-%COMP%]{border-radius:10px;background:var(--surface-200);height:120px}.channelIcon[_ngcontent-%COMP%]{height:57px;max-width:86px;margin-top:10px;margin-bottom:3px;overflow:hidden;float:right}.channelText[_ngcontent-%COMP%]{clear:both;font-weight:700;text-align:-webkit-center;overflow:hidden;text-overflow:ellipsis;padding:0
3px}"]}),t})();const
kX=function(){return["WillRecord","Recording"]};function
IX(t,i){if(1&t&&(l(0,"div")(1,"div",5),g(2),c()()),2&t){const
e=d();a(1),p("ngClass",A(2,kX).indexOf(e.program.Recording.StatusName)>-1?"bg-green-500":"bg-pink-400"),a(1),T("
",e.dataService.recStatusText[e.program.Recording.StatusName],"")}}function
EX(t,i){if(1&t&&(l(0,"div")(1,"div",6),g(2),
c()()),2&t){const
e=d();a(2),S((e.program.Season>0?"S"+e.program.Season+"E"+e.program.Episode:"")+"
"+e.program.SubTitle)}}const
RX=function(t,i){return[t,i,"guide_type_default"]};let LX=(()=>{class
t{constructor(e){this.dataService=e,this.editSchedule=!1,this.typeclass="",this.catclass="",this.regex=/[^a-z0-9]/g}ngOnInit(){this.typeclass="guide_type_"+this.program.CatType,this.catclass="guide_cat_"+this.program.Category.toLowerCase().replace(this.regex,"_")}durationToWidth(){let
e=new Date(this.program.StartTime),n=new Date(this.program.EndTime),s=new
Date(this.guideStartTime),r=new
Date(this.guideEndTime),h=e<s?s:e,b=n>r?r:n,y=r.getTime()-s.getTime();return(b.getTime()-h.getTime())/y*100}openDialog(){this.guideComponent.inter.sched&&this.guideComponent.inter.sched.open(this.program,this.channel)}}return
t.\u0275fac=function(e){return
new(e||t)(D(Ll))},t.\u0275cmp=z({type:t,selectors:[["app-guide-programentry"]],inputs:{program:"program",channel:"channel",guideStartTime:"guideStart
Time",guideEndTime:"guideEndTime",guideComponent:"guideComponent"},decls:8,vars:11,consts:[["tooltipPosition","top",1,"programBox","cursor-pointer",3,"ngClass","pTooltip","click"],[1,"programTitle"],[1,"programBody"],[1,"programCatType"],[4,"ngIf"],[1,"programCatType",3,"ngClass"],[1,"programSubtitle"]],template:function(e,n){1&e&&(l(0,"div",0),C("click",function(){return
n.openDialog()}),l(1,"div",1),g(2),c(),l(3,"div",2)(4,"div",3),g(5),c(),_(6,IX,3,3,"div",4),_(7,EX,3,1,"div",4),c()()),2&e&&(_i("width",n.durationToWidth(),"%"),x("pTooltip",n.program.Description),p("ngClass",Ge(8,RX,n.typeclass,n.catclass)),a(2),S(n.program.Title),a(3),S(n.program.Category),a(1),p("ngIf",n.program.Recording),a(1),p("ngIf",0!=n.program.SubTitle.length))},directives:[Le,Kt,Q],styles:[".programBox[_ngcontent-%COMP%]{float:left;height:120px;padding:0
0 0
2px;color:var(--primary-color-text);background:var(--surface-200);border-radius:10px;overflow:hidden;text-overflow:ellipsis}.programTitle[_ngcontent-
%COMP%]{padding:5px 8px 4px
7px;width:100%;height:28px;color:var(--primary-color-text);background:linear-gradient(to
bottom,var(--surface-800) 1%,var(--surface-500) 90%,var(--surface-200)
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;height:45px;z-index:5}.programCatType[_ngcontent-%COMP%]{position:relative;font-weight:700;margin-right:5px;line-height:15px;padding-top:2px;padding-bottom:3px}.programSubtitle[_ngcontent-%COMP%]{position:relative;z-index:1;line-height:15px}"]}),t})(),OX=(()=>{class
t{constructor(e){this.guideService=e}ngOnInit(){}segmentToStartTime(e){const
n=18e5*e;return(new Date(this.guide.m_startDate.getTime()+n).toLocaleTimeString()+"
").replace(/:.. /," ")}pageLeft(){this.guide.m_pickerDate=new
Date(this.guide.m_startDate.getTime()
-this.guideService.guide_millisecs),this.guide.onDateChange()}pageRight(){this.guide.m_pickerDate=new
Date(this.guide.m_startDate.getTime()+this.guideService.guide_millisecs),this.guide.onDateChange()}}return
t.\u0275fac=function(e){return
new(e||t)(D(vS))},t.\u0275cmp=z({type:t,selectors:[["app-guide-timebar"]],inputs:{guide:"guide"},decls:25,vars:7,consts:[[1,"grid"],[1,"col-1","datebox"],[1,"col","segmentbox"],[1,"flex"],[1,"flex-none","cursor-pointer",3,"click"],[1,"flex-none"],[1,"flex-grow-1"]],template:function(e,n){1&e&&(l(0,"div",0)(1,"div",1),g(2),c(),l(3,"div",2)(4,"div",3)(5,"div",4),C("click",function(){return
n.pageLeft()}),g(6,"<<"),c(),l(7,"div",5),g(8),c()()(),l(9,"div",2),g(10),c(),l(11,"div",2),g(12),c(),l(13,"div",2),g(14),c(),l(15,"div",2),g(16),c(),l(17,"div",2)(18,"div",3)(19,"div",5),g(20),c(),l(21,"div",6),g(22,"\xa0"),c(),l(23,"div",4),C("click",function(){return
n.pageRight()}),g(24,">>"),c()()()()),2&e&&(a(2),S(n.guide.m_startDate.toLocaleDateString()),a(
6),T("\xa0",n.segmentToStartTime(0),""),a(2),S(n.segmentToStartTime(1)),a(2),S(n.segmentToStartTime(2)),a(2),S(n.segmentToStartTime(3)),a(2),S(n.segmentToStartTime(4)),a(4),S(n.segmentToStartTime(5)))},styles:[".timebarbox[_ngcontent-%COMP%]{grid-template-columns:90px
auto;grid-template-rows:28px;width:100%}.datebox[_ngcontent-%COMP%]{padding:5px 8px 4px
7px;color:var(--primary-color-text);background:linear-gradient(to
bottom,var(--surface-800) 1%,var(--surface-500) 90%,var(--surface-200)
99%);border-radius:10px}.segmentsbox[_ngcontent-%COMP%]{display:block;float:left;position:relative;height:100%;width:calc(100%
- 91px)}.segmentbox[_ngcontent-%COMP%]{width:25%;padding:5px 8px 4px
7px;color:var(--primary-color-text);background:linear-gradient(to
bottom,var(--surface-800) 1%,var(--surface-500) 90%,var(--surface-200)
99%);height:auto;border-radius:10px}"]}),t})();function yS(t,i=zf){const n=function
AX(t){return t instanceof Date&&!isNaN(+t)}(t)?+t-i.now():Math.abs(t);return
s=>s.lift
(new PX(n,i))}class PX{constructor(i,e){this.delay=i,this.scheduler=e}call(i,e){return
e.subscribe(new yg(i,this.delay,this.scheduler))}}class yg extends
yt{constructor(i,e,n){super(i),this.delay=e,this.scheduler=n,this.queue=[],this.active=!1,this.errored=!1}static
dispatch(i){const
e=i.source,n=e.queue,s=i.scheduler,r=i.destination;for(;n.length>0&&n[0].time-s.now()<=0;)n.shift().notification.observe(r);if(n.length>0){const
o=Math.max(0,n[0].time-s.now());this.schedule(i,o)}else
this.unsubscribe(),e.active=!1}_schedule(i){this.active=!0,this.destination.add(i.schedule(yg.dispatch,this.delay,{source:this,destination:this.destination,scheduler:i}))}scheduleNotification(i){if(!0===this.errored)return;const
e=this.scheduler,n=new
FX(e.now()+this.delay,i);this.queue.push(n),!1===this.active&&this._schedule(e)}_next(i){this.scheduleNotification(Kn.createNext(i))}_error(i){this.errored=!0,this.queue=[],this.destination.error(i),this.unsubscribe()}_complete(){this.scheduleNotification(Kn.
createComplete()),this.unsubscribe()}}class
FX{constructor(i,e){this.time=i,this.notification=e}}const
NX=["cetonform"],VX=["top"];function
BX(t,i){1&t&&(g(0),m(1,"translate")),2&t&&T("
",f(1,1,"settings.capture.ceton.title")," ")}function
HX(t,i){}function qX(t,i){if(1&t){const
e=I();l(0,"div",8)(1,"div",9)(2,"div",10)(3,"label",11),g(4),m(5,"translate"),c(),l(6,"input",12,13),C("ngModelChange",function(s){return
v(e),d().work.ipAddress=s}),c(),l(8,"small",14),g(9),m(10,"translate"),c()(),l(11,"div",10)(12,"label",15),g(13),m(14,"translate"),c(),l(15,"input",16,13),C("ngModelChange",function(s){return
v(e),d().work.tuner=s}),c(),l(17,"small",14),g(18),m(19,"translate"),c()(),l(20,"div",10)(21,"label",17),g(22),m(23,"translate"),c(),l(24,"input",18,19),C("ngModelChange",function(s){return
v(e),d().card.VideoDevice=s}),c(),l(26,"small",14),g(27),m(28,"translate"),c()(),l(29,"div",10)(30,"label",20),g(31),m(32,"translate"),c(),l(33,"p-inputNumber",21),C("ngModelChange",function(s){ret
urn
v(e),d().card.SignalTimeout=s}),c(),l(34,"small",14),g(35),m(36,"translate"),c()(),l(37,"div",10)(38,"label",22),g(39),m(40,"translate"),c(),l(41,"p-inputNumber",23),C("ngModelChange",function(s){return
v(e),d().card.ChannelTimeout=s}),c(),l(42,"small",14),g(43),m(44,"translate"),c()()()()}if(2&t){const
e=d();a(4),S(f(5,23,"settings.capture.ceton.ipaddress_label")),a(2),p("ngModel",e.work.ipAddress),a(3),T("
",f(10,25,"settings.capture.ceton.ipaddress_desc"),"
"),a(4),S(f(14,27,"settings.capture.ceton.tuner_label")),a(2),p("ngModel",e.work.tuner),a(3),T("
",f(19,29,"settings.capture.ceton.tuner_desc"),"
"),a(4),S(f(23,31,"settings.capture.ceton.deviceid_label")),a(2),p("ngModel",e.card.VideoDevice),a(3),T("
",f(28,33,"settings.capture.ceton.deviceid_desc"),"
"),a(4),S(f(32,35,"settings.capture.sigtimeout_label")),a(2),p("ngModel",e.card.SignalTimeout)("showButtons",!0)("min",250)("max",6e4)("step",250),a(2),T("
",f(36,37,"settings.capture.sigtimeout_desc"),"
"),a(4),S(f(40,39,"s
ettings.capture.tunetimeout_label")),a(2),p("ngModel",e.card.ChannelTimeout)("showButtons",!0)("min",1750)("max",65e3)("step",250),a(2),T("
",f(44,41,"settings.capture.tunetimeout_desc")," ")}}function
GX(t,i){1&t&&(k(0,"p-message",29),m(1,"translate")),2&t&&x("text",f(1,1,"common.savesuccess"))}function
UX(t,i){1&t&&(k(0,"p-message",30),m(1,"translate")),2&t&&x("text",f(1,1,"common.networkfail"))}function
zX(t,i){if(1&t){const
e=I();l(0,"div",24)(1,"div",25),_(2,GX,2,3,"p-message",26),_(3,UX,2,3,"p-message",27),c(),l(4,"p-button",28),C("onClick",function(){v(e);const
s=d(),r=F(1);return
s.saveForm(),r.form.markAsPristine()}),m(5,"translate"),c()()}if(2&t){const
e=d(),n=F(1);a(2),p("ngIf",e.work.successCount>0&&0==e.work.errorCount&&!n.dirty),a(1),p("ngIf",e.work.errorCount>0),a(1),x("label",f(5,4,"common.save")),p("disabled",!n.dirty||!e.card.VideoDevice||e.setupService.schedulingEnabled)}}let
jX=(()=>{class
t{constructor(e,n){this.captureCardService=e,this.setupService=n,this.work
={ipAddress:"",tuner:"",successCount:0,errorCount:0},this.saveObserver={next:s=>{this.card.CardId&&s.bool?this.work.successCount++:!this.card.CardId&&s.int?(this.work.successCount++,this.card.CardId=s.int):(this.work.errorCount++,this.currentForm.form.markAsDirty())},error:s=>{console.error(s),this.work.errorCount++,this.currentForm.form.markAsDirty()}}}ngOnInit(){if(this.card.VideoDevice){const
e=this.card.VideoDevice.split("-");if(2==e.length){this.work.ipAddress=e[0];const
n=e[1].split(".");2==n.length&&(this.work.tuner=n[1])}}}ngAfterViewInit(){this.currentForm.valueChanges.pipe(yS(50)).subscribe(()=>this.card.VideoDevice=this.work.ipAddress+"-RTP."+this.work.tuner),this.setupService.setCurrentForm(this.currentForm),this.topElement.nativeElement.scrollIntoView({behavior:"smooth",block:"start"})}saveForm(){console.log("save
form
clicked"),this.work.successCount=0,this.work.errorCount=0,this.card.CardId?this.cardList.CaptureCardList.CaptureCards.forEach(e=>{(e.CardId==this.card.Ca
rdId||e.ParentId==this.card.CardId)&&(this.captureCardService.UpdateCaptureCard(e.CardId,"videodevice",this.card.VideoDevice).subscribe(this.saveObserver),this.captureCardService.UpdateCaptureCard(e.CardId,"signal_timeout",String(this.card.SignalTimeout)).subscribe(this.saveObserver),this.captureCardService.UpdateCaptureCard(e.CardId,"channel_timeout",String(this.card.ChannelTimeout)).subscribe(this.saveObserver))}):this.captureCardService.AddCaptureCard(this.card).subscribe(this.saveObserver)}}return
t.\u0275fac=function(e){return
new(e||t)(D(Gt),D(Me))},t.\u0275cmp=z({type:t,selectors:[["app-ceton"]],viewQuery:function(e,n){if(1&e&&(W(NX,5),W(VX,5)),2&e){let
s;V(s=B())&&(n.currentForm=s.first),V(s=B())&&(n.topElement=s.first)}},inputs:{card:"card",cardList:"cardList"},decls:9,vars:0,consts:[["name","cetonform",1,"ml-3","mr-3"],["cetonform","ngForm"],["top",""],[1,"m-5"],["pTemplate","title"],["pTemplate","subtitle"],["pTemplate","content"],["pTemplate","footer"],[1,"grid"],[1,"mb-
4","w-full"],[1,"form-group","field"],["for","ip",1,"label","block"],["pInputText","","id","ip","name","ip",1,"mb-2","form-control","w-full",3,"ngModel","ngModelChange"],["ipAddress","ngModel"],[1,"block"],["for","tuner",1,"label","block"],["pInputText","","id","tuner","name","tuner",1,"mb-2","form-control","w-full",3,"ngModel","ngModelChange"],["for","VideoDevice",1,"label","block"],["pInputText","","id","VideoDevice","name","VideoDevice","disabled","true",1,"mb-2","form-control","w-full",3,"ngModel","ngModelChange"],["VideoDevice","ngModel"],["for","SignalTimeout",1,"label","block"],["name","SignalTimeout","id","SignalTimeout",3,"ngModel","showButtons","min","max","step","ngModelChange"],["for","ChannelTimeout",1,"label","block"],["name","ChannelTimeout","id","ChannelTimeout",3,"ngModel","showButtons","min","max","step","ngModelChange"],[1,"grid","nogutter"],[1,"col-12"],["severity","success",3,"text",4,"ngIf"],["severity","error",3,"text",4,"ngIf"],["icon","pi
pi-save","iconPos",
"left",1,"col","pr-1",3,"label","disabled","onClick"],["severity","success",3,"text"],["severity","error",3,"text"]],template:function(e,n){1&e&&(l(0,"form",0,1),k(2,"span",null,2),l(4,"p-card",3),_(5,BX,2,3,"ng-template",4),_(6,HX,0,0,"ng-template",5),_(7,qX,45,43,"ng-template",6),_(8,zX,6,6,"ng-template",7),c()())},directives:[ze,Ue,He,Ne,ne,Ye,Te,_e,pt,Q,qe,ve],pipes:[ce],styles:[""]}),t})();const
$X=["dvbform"],WX=["top"];function
KX(t,i){1&t&&(g(0),m(1,"translate")),2&t&&T("
",f(1,1,"settings.capture.dvb.title")," ")}function
QX(t,i){}const JX=function(){return{minWidth:"80%"}};function
YX(t,i){if(1&t){const
e=I();l(0,"p-dropdown",43,44),C("ngModelChange",function(s){return
v(e),d(2).currentDevice=s})("onChange",function(){return
v(e),d(2).updateDevice()}),c()}if(2&t){const
e=d(2);q(A(6,JX)),p("options",e.captureDeviceList.CaptureDeviceList.CaptureDevices)("ngModel",e.currentDevice)("editable",!1)("maxlength",0)}}function
ZX(t,i){if(1&t&&(l(0,"div")(1,"small",45),g(2),c()()),2&
t){const e=d(2);a(2),T(" ",e.work.warningMessage," ")}}function
XX(t,i){if(1&t){const
e=I();l(0,"input",46,47),C("ngModelChange",function(s){return
v(e),d(2).currentDevice.FrontendName=s}),c()}2&t&&p("ngModel",d(2).currentDevice.FrontendName)}function
eee(t,i){if(1&t){const
e=I();l(0,"p-dropdown",48,49),C("ngModelChange",function(s){return
v(e),d(2).card.InputName=s}),c()}if(2&t){const
e=d(2);p("options",e.currentDevice.InputNames)("ngModel",e.card.InputName)}}function
tee(t,i){if(1&t){const
e=I();l(0,"p-button",50),C("onClick",function(){return
v(e),d(2).work.displayNewDiseqc=!0}),m(1,"translate"),c()}2&t&&x("label",f(1,1,"settings.capture.dvb.newsatellite_button"))}function
nee(t,i){if(1&t){const
e=I();l(0,"p-button",51),C("onClick",function(){return
v(e),d(2).work.displayNewDiseqc=!1}),m(1,"translate"),c(),l(2,"p-button",52),C("onClick",function(){return
v(e),d(2).newDiseqc()}),m(3,"translate"),c()}if(2&t){const
e=d(2);x("label",f(1,3,"common.cancel")),a(2),x("label",f(3,5,"commo
n.ok")),p("disabled",e.selectedDiseqcType.inactive)}}function
iee(t,i){if(1&t){const
e=I();l(0,"p-button",53),C("onClick",function(){v(e);const
s=d(2);return
s.setupRootTrees(),s.work.displayConnectDevice=!0}),m(1,"translate"),m(2,"translate"),c()}2&t&&(x("label",f(1,2,"settings.capture.dvb.satellite_connect")),x("pTooltip",f(2,4,"settings.capture.dvb.satellite_connect_tooltip")))}function
see(t,i){if(1&t){const
e=I();l(0,"p-button",51),C("onClick",function(){return
v(e),d(2).work.displayConnectDevice=!1}),m(1,"translate"),c(),l(2,"p-button",52),C("onClick",function(){return
v(e),d(2).selectDiseqc()}),m(3,"translate"),c()}if(2&t){const
e=d(2);x("label",f(1,3,"common.cancel")),a(2),x("label",f(3,5,"common.ok")),p("disabled",!e.work.selectedDiseqcTree)}}function
ree(t,i){if(1&t){const
e=I();l(0,"p-button",54),C("onClick",function(){return
v(e),d(2).canDeleteDiseqc()}),c()}}function oee(t,i){if(1&t){const
e=I();l(0,"p-button",55),C("click",function(){return
v(e),d(2).work.displayDelete
Diseqc=!1}),m(1,"translate"),c(),l(2,"p-button",56),C("click",function(){return
v(e),d(2).deleteDiseqc()}),m(3,"translate"),c()}2&t&&(x("label",f(1,2,"common.no")),a(2),x("label",f(3,4,"common.yes")))}function
aee(t,i){if(1&t){const
e=I();l(0,"p-button",57),C("onClick",function(){return
v(e),d(2).work.displayDisconnect=!0}),m(1,"translate"),c()}2&t&&x("label",f(1,1,"settings.capture.dvb.satellite_disconnect"))}function
lee(t,i){if(1&t){const
e=I();l(0,"p-button",55),C("click",function(){return
v(e),d(2).work.displayDisconnect=!1}),m(1,"translate"),c(),l(2,"p-button",56),C("click",function(){return
v(e),d(2).unSelectDiseqc()}),m(3,"translate"),c()}2&t&&(x("label",f(1,2,"common.no")),a(2),x("label",f(3,4,"common.yes")))}function
cee(t,i){1&t&&(k(0,"p-message",58),m(1,"translate")),2&t&&x("text",f(1,1,"settings.capture.dvb.satellite_disconnect_error"))}function
uee(t,i){if(1&t){const
e=I();l(0,"app-lnb",59),C("baseEvent",function(s){return
v(e),d(2).setDiseqcObject(s)}),c()}if(2&t){con
st
e=d(2);p("diseqcTree",e.diseqcTree)("diseqcTreeList",e.diseqcTreeList)("dvbComponent",e)}}function
dee(t,i){if(1&t){const
e=I();l(0,"app-rotor",59),C("baseEvent",function(s){return
v(e),d(2).setDiseqcObject(s)}),c()}if(2&t){const
e=d(2);p("diseqcTree",e.diseqcTree)("diseqcTreeList",e.diseqcTreeList)("dvbComponent",e)}}function
pee(t,i){if(1&t){const
e=I();l(0,"app-switch",59),C("baseEvent",function(s){return
v(e),d(2).setDiseqcObject(s)}),c()}if(2&t){const
e=d(2);p("diseqcTree",e.diseqcTree)("diseqcTreeList",e.diseqcTreeList)("dvbComponent",e)}}function
hee(t,i){if(1&t){const
e=I();l(0,"app-unicable",59),C("baseEvent",function(s){return
v(e),d(2).setDiseqcObject(s)}),c()}if(2&t){const
e=d(2);p("diseqcTree",e.diseqcTree)("diseqcTreeList",e.diseqcTreeList)("dvbComponent",e)}}const
Md=function(){return{width:"50vw"}};function mee(t,i){if(1&t){const
e=I();l(0,"div",8)(1,"div",9)(2,"div",10)(3,"label",11),g(4),m(5,"translate"),c(),_(6,YX,2,7,"p-dropdown",12),_(7,ZX,3,1,"div",13),l(8,"
small",14),g(9),m(10,"translate"),c()(),l(11,"div",10)(12,"label",15),g(13),m(14,"translate"),c(),_(15,XX,2,1,"input",16),l(16,"small",14),g(17),m(18,"translate"),c()(),l(19,"div",10)(20,"label",17),g(21),m(22,"translate"),c(),_(23,eee,2,2,"p-dropdown",18),l(24,"small",14),g(25),m(26,"translate"),c()(),l(27,"div",10)(28,"label",19),g(29),m(30,"translate"),c(),l(31,"p-inputNumber",20),C("ngModelChange",function(s){return
v(e),d().card.SignalTimeout=s}),c(),l(32,"small",14),g(33),m(34,"translate"),c()(),l(35,"div",10)(36,"label",21),g(37),m(38,"translate"),c(),l(39,"p-inputNumber",22),C("ngModelChange",function(s){return
v(e),d().card.ChannelTimeout=s}),c(),l(40,"small",14),g(41),m(42,"translate"),c()(),l(43,"div",10)(44,"p-checkbox",23,24),C("ngModelChange",function(s){return
v(e),d().card.DVBWaitForSeqStart=s}),m(46,"translate"),c(),l(47,"small",14),g(48),m(49,"translate"),c()(),l(50,"div",10)(51,"p-checkbox",25,26),C("ngModelChange",function(s){return
v(e),d().card.DVBOnDemand=s}),
m(53,"translate"),c(),l(54,"small",14),g(55),m(56,"translate"),c()(),l(57,"div",10)(58,"p-checkbox",27,28),C("ngModelChange",function(s){return
v(e),d().card.DVBEITScan=s}),m(60,"translate"),c(),l(61,"small",14),g(62),m(63,"translate"),c()(),l(64,"div",10)(65,"label",29),g(66),m(67,"translate"),c(),l(68,"p-inputNumber",30),C("ngModelChange",function(s){return
v(e),d().card.DVBTuningDelay=s}),c(),l(69,"small",14),g(70),m(71,"translate"),c()()(),l(72,"p-fieldset",31),m(73,"translate"),_(74,tee,2,3,"p-button",32),l(75,"p-dialog",33),C("visibleChange",function(s){return
v(e),d().work.displayNewDiseqc=s}),m(76,"translate"),l(77,"label",34),g(78),m(79,"translate"),c(),l(80,"p-listbox",35),C("ngModelChange",function(s){return
v(e),d().selectedDiseqcType=s})("onDblClick",function(){return
v(e),d().newDiseqc()}),c(),_(81,nee,4,7,"ng-template",7),c(),g(82," \xa0
"),_(83,iee,3,6,"p-button",36),l(84,"p-dialog",33),C("visibleChange",function(s){return
v(e),d().work.displayConnectDevice=s}),m(85,
"translate"),l(86,"label",37),g(87),m(88,"translate"),c(),l(89,"p-listbox",38),C("ngModelChange",function(s){return
v(e),d().work.selectedDiseqcTree=s})("onDblClick",function(){return
v(e),d().selectDiseqc()}),c(),_(90,see,4,7,"ng-template",7),c(),_(91,ree,1,0,"p-button",39),l(92,"p-dialog",33),C("visibleChange",function(s){return
v(e),d().work.displayDeleteDiseqc=s}),m(93,"translate"),l(94,"h2"),g(95),m(96,"translate"),c(),l(97,"p"),g(98),m(99,"translate"),c(),_(100,oee,4,6,"ng-template",7),c(),g(101,"
\xa0
"),_(102,aee,2,3,"p-button",40),l(103,"p-dialog",33),C("visibleChange",function(s){return
v(e),d().work.displayDisconnect=s}),m(104,"translate"),l(105,"h2"),g(106),m(107,"translate"),c(),l(108,"p"),g(109),m(110,"translate"),c(),_(111,lee,4,6,"ng-template",7),c(),_(112,cee,2,3,"p-message",41),_(113,uee,1,3,"app-lnb",42),_(114,dee,1,3,"app-rotor",42),_(115,pee,1,3,"app-switch",42),_(116,hee,1,3,"app-unicable",42),c()()}if(2&t){const
e=d();a(4),S(f(5,93,"settings.capture.dvb.device
_label")),a(2),p("ngIf",e.work.isReady),a(1),p("ngIf",e.work.warningMessage),a(2),T("
",f(10,95,"settings.capture.device_desc"),"
"),a(4),S(f(14,97,"settings.capture.dvb.frontend_label")),a(2),p("ngIf",e.work.isReady),a(2),T("
",f(18,99,"settings.capture.frontend_desc"),"
"),a(4),S(f(22,101,"settings.capture.dvb.inputname_label")),a(2),p("ngIf",e.work.isReady),a(2),T("
",f(26,103,"settings.capture.inputname_desc"),"
"),a(4),S(f(30,105,"settings.capture.sigtimeout_label")),a(2),p("ngModel",e.card.SignalTimeout)("showButtons",!0)("min",250)("max",6e4)("step",250),a(2),T("
",f(34,107,"settings.capture.sigtimeout_desc"),"
"),a(4),S(f(38,109,"settings.capture.tunetimeout_label")),a(2),p("ngModel",e.card.ChannelTimeout)("showButtons",!0)("min",1750)("max",65e3)("step",250),a(2),T("
",f(42,111,"settings.capture.tunetimeout_desc"),"
"),a(3),x("label",f(46,113,"settings.capture.dvb.wait_label")),p("ngModel",e.card.DVBWaitForSeqStart)("binary",!0),a(4),T("
",f(49,115,"settings.capture.dvb.wai
t_desc"),"
"),a(3),x("label",f(53,117,"settings.capture.dvb.ondemand_label")),p("ngModel",e.card.DVBOnDemand)("binary",!0),a(4),T("
",f(56,119,"settings.capture.dvb.ondemand_desc"),"
"),a(3),x("label",f(60,121,"settings.capture.dvb.eitscan_label")),p("ngModel",e.card.DVBEITScan)("binary",!0),a(4),T("
",f(63,123,"settings.capture.dvb.eitscan_desc"),"
"),a(4),S(f(67,125,"settings.capture.dvb.tuningdelay_label")),a(2),p("ngModel",e.card.DVBTuningDelay)("showButtons",!0)("min",0)("max",2e3)("step",25),a(2),T("
",f(71,127,"settings.capture.dvb.tuningdelay_desc"),"
"),a(2),x("legend",f(73,129,"settings.capture.dvb.satellite_heading")),p("toggleable",!0)("collapsed",!0),a(2),p("ngIf",!e.diseqcTree),a(1),q(A(151,Md)),x("header",f(76,131,"settings.capture.dvb.newsatellite_heading")),p("visible",e.work.displayNewDiseqc)("modal",!0)("draggable",!1)("resizable",!1),a(3),S(f(79,133,"settings.capture.dvb.newsatellite_devtype")),a(2),p("options",e.captureCardService.diseqcTypes)("ngModel",e.select
edDiseqcType),a(3),p("ngIf",!e.diseqcTree),a(1),q(A(152,Md)),x("header",f(85,135,"settings.capture.dvb.satellite_connect")),p("visible",e.work.displayConnectDevice)("modal",!0)("draggable",!1)("resizable",!1),a(3),S(f(88,137,"settings.capture.dvb.satellite_select")),a(2),p("options",e.diseqcRootTrees)("ngModel",e.work.selectedDiseqcTree),a(2),p("ngIf",e.diseqcTree),a(1),q(A(153,Md)),x("header",f(93,139,"settings.capture.dvb.satellite_delete_header")),p("visible",e.work.displayDeleteDiseqc)("modal",!0)("draggable",!1)("resizable",!1),a(3),S(f(96,141,"settings.common.ru_sure")),a(3),S(f(99,143,"settings.capture.dvb.satellite_delete_desc")),a(4),p("ngIf",e.diseqcTree),a(1),q(A(154,Md)),x("header",f(104,145,"settings.capture.dvb.satellite_disconnect")),p("visible",e.work.displayDisconnect)("modal",!0)("draggable",!1)("resizable",!1),a(3),S(f(107,147,"settings.common.ru_sure")),a(3),S(f(110,149,"settings.capture.dvb.satellite_disconnect_warning")),a(3),p("ngIf",e.work.diseqcError),a(1),p
("ngIf",e.diseqcTree&&"lnb"==e.diseqcTree.Type),a(1),p("ngIf",e.diseqcTree&&"rotor"==e.diseqcTree.Type),a(1),p("ngIf",e.diseqcTree&&"switch"==e.diseqcTree.Type),a(1),p("ngIf",e.diseqcTree&&"scr"==e.diseqcTree.Type)}}function
fee(t,i){1&t&&(k(0,"p-message",64),m(1,"translate")),2&t&&x("text",f(1,1,"common.savesuccess"))}function
gee(t,i){1&t&&(k(0,"p-message",58),m(1,"translate")),2&t&&x("text",f(1,1,"common.networkfail"))}function
_ee(t,i){if(1&t){const
e=I();l(0,"div",60)(1,"div",61),_(2,fee,2,3,"p-message",62),_(3,gee,2,3,"p-message",41),c(),l(4,"p-button",63),C("onClick",function(){v(e);const
s=d(),r=F(1);return
s.saveForm(),r.form.markAsPristine()}),m(5,"translate"),c()()}if(2&t){const
e=d(),n=F(1);a(2),p("ngIf",e.work.successCount>0&&0==e.work.errorCount&&!n.dirty),a(1),p("ngIf",e.work.errorCount>0),a(1),x("label",f(5,4,"common.save")),p("disabled",!n.dirty||!e.card.VideoDevice||e.setupService.schedulingEnabled)}}let
wS=(()=>{class t{constructor(e,n,s){this.captureCardService=e
,this.setupService=n,this.translate=s,this.work={InputName:"",successCount:0,errorCount:0,inputNames:[""],isReady:!1,warningMessage:"",displayNewDiseqc:!1,displayDeleteDiseqc:!1,displayConnectDevice:!1,displayDisconnect:!1,selectedDiseqcTree:0,diseqcError:!1},this.captureDeviceList={CaptureDeviceList:{CaptureDevices:[]}},this.diseqcRootTrees=[],this.diseqcTree=void
0,this.messages={devNotExist:"settings.capture.dvb.devNotExist",unknownName:"settings.capture.dvb.unknownName",devInUse:"settings.capture.dvb.devInUse",noDevSelected:"settings.capture.dvb.noDevSelected"},this.currentDevice={FrontendName:"Unknown",InputNames:[""]},this.selectedDiseqcType={description:"",type:"",inactive:!0},this.saveObserver={next:r=>{r.bool?(console.log("saveObserver
success",r),this.work.successCount++):!this.card.CardId&&r.int?(console.log("saveObserver
success",r),this.work.successCount++,this.card.CardId||(this.card.CardId=r.int,this.cardList.CaptureCardList.CaptureCards.push(this.card),this.captureCa
rdService.UpdateCaptureCard(this.card.CardId,"inputname",this.card.InputName).subscribe(this.saveObserver))):(console.log("saveObserver
error",r),this.work.errorCount++,this.currentForm.form.markAsDirty())},error:r=>{console.log("saveObserver
error",r),this.work.errorCount++,this.currentForm.form.markAsDirty()}},s.get(this.messages.devNotExist).subscribe(r=>this.messages.devNotExist=r),s.get(this.messages.unknownName).subscribe(r=>this.messages.unknownName=r),s.get(this.messages.devInUse).subscribe(r=>this.messages.devInUse=r),s.get(this.messages.noDevSelected).subscribe(r=>this.messages.noDevSelected=r)}ngOnInit(){null==this.card.DVBWaitForSeqStart&&(this.card.DVBWaitForSeqStart=!0),null==this.card.DVBOnDemand&&(this.card.DVBOnDemand=!0),null==this.card.DVBEITScan&&(this.card.DVBEITScan=!0),null==this.card.CardId&&(this.card.CardId=0),null==this.card.VideoDevice&&(this.card.VideoDevice=""),null==this.card.DiSEqCId&&(this.card.DiSEqCId=0),this.captureCardService.GetCaptureDeviceList
("DVB").subscribe({next:e=>{this.captureDeviceList=e,this.setupDevice()},error:e=>{console.log("GetCaptureDeviceList",e),this.work.errorCount++}}),this.setupDiseqc()}ngAfterViewInit(){this.setupService.setCurrentForm(this.currentForm),this.topElement.nativeElement.scrollIntoView({behavior:"smooth",block:"start"})}setupDiseqc(){this.diseqcTree=this.diseqcTreeList.DiseqcTreeList.DiseqcTrees.find(e=>e.DiSEqCId==this.card.DiSEqCId),this.work.diseqcError=!1}newDiseqc(){this.work.displayNewDiseqc=!1,this.work.diseqcError=!1,this.diseqcTree={Type:this.selectedDiseqcType.type,Description:this.selectedDiseqcType.description}}setupRootTrees(){this.diseqcRootTrees=this.diseqcTreeList.DiseqcTreeList.DiseqcTrees.filter(e=>!e.ParentId)}selectDiseqc(){this.work.displayConnectDevice=!1,this.work.diseqcError=!1,this.card.DiSEqCId=this.work.selectedDiseqcTree,this.currentForm.form.markAsDirty(),this.setupDiseqc()}unSelectDiseqc(){this.work.displayDisconnect=!1,this.work.diseqcError=!1,this.card.DiSEq
CId=0,this.currentForm.form.markAsDirty(),this.diseqcTree=void
0,this.captureCardService.DeleteDiseqcConfig(this.card.CardId).subscribe()}canDeleteDiseqc(){this.work.diseqcError=!1,this.cardList.CaptureCardList.CaptureCards.filter(n=>n.DiSEqCId==this.card.DiSEqCId).length>1?this.work.diseqcError=!0:this.work.displayDeleteDiseqc=!0}deleteDiseqc(){this.work.displayDeleteDiseqc=!1,this.work.successCount=0,this.work.errorCount=0,this.diseqcTree&&this.diseqcTree.DiSEqCId&&(this.captureCardService.DeleteDiseqcTree(this.diseqcTree.DiSEqCId).subscribe({next:e=>{e.bool?this.work.successCount++:(this.work.errorCount++,console.log("DeleteDiseqcTree",e)),this.parent.loadDiseqc()},error:e=>{console.log("DeleteDiseqcTree",e),this.work.errorCount++}}),this.card.DiSEqCId=0,this.card.CardId&&(this.cardList.CaptureCardList.CaptureCards.forEach(e=>{(e.CardId==this.card.CardId||e.ParentId==this.card.CardId)&&this.captureCardService.UpdateCaptureCard(e.CardId,"DiSEqCId",String(this.card.DiSEqCId)).subsc
ribe(this.saveObserver)}),this.captureCardService.DeleteDiseqcConfig(this.card.CardId).subscribe())),this.diseqcTree=void
0}setDiseqcObject(e){this.diseqcComponent=e}setupDevice(){if(this.card.VideoDevice||this.captureDeviceList.CaptureDeviceList.CaptureDevices.unshift({VideoDevice:"",FrontendName:this.messages.noDevSelected,InputNames:[""]}),this.card.VideoDevice){let
e=this.captureDeviceList.CaptureDeviceList.CaptureDevices.find(n=>n.VideoDevice==this.card.VideoDevice);e?this.currentDevice=e:(this.currentDevice={VideoDevice:this.card.VideoDevice,FrontendName:this.messages.devNotExist,InputNames:[""]},this.captureDeviceList.CaptureDeviceList.CaptureDevices.push(this.currentDevice))}this.currentDevice&&this.card.InputName&&(this.currentDevice.InputNames.includes(this.card.InputName)||this.currentDevice.InputNames.push(this.card.InputName)),this.work.isReady=!0}updateDevice(){this.card.VideoDevice=this.currentDevice.VideoDevice,this.card.InputName=this.currentDevice.DefaultInputName,
this.card.SignalTimeout=this.currentDevice.SignalTimeout,this.card.ChannelTimeout=this.currentDevice.ChannelTimeout,this.checkInUse()}checkInUse(){this.work.warningMessage=this.cardList.CaptureCardList.CaptureCards.find(n=>n.VideoDevice==this.currentDevice.VideoDevice&&n.CardId!=this.card.CardId)?this.messages.devInUse:""}saveForm(){this.work.successCount=0,this.work.errorCount=0,this.work.diseqcError=!1,this.diseqcTree&&this.diseqcComponent?this.diseqcComponent.saveForm(0,{next:e=>{var
n;this.card.DiSEqCId&&e.bool&&this.card.DiSEqCId==(null===(n=this.diseqcTree)||void
0===n?void
0:n.DiSEqCId)?(this.work.successCount++,this.saveCard()):e.int&&this.diseqcTree?(this.card.DiSEqCId=e.int,this.diseqcTree.DiSEqCId=e.int,this.diseqcTreeList.DiseqcTreeList.DiseqcTrees.push(this.diseqcTree),this.saveCard()):(console.log("saveForm",e),this.work.errorCount++,this.currentForm.form.markAsDirty())},error:e=>{console.log("saveForm",e),this.work.errorCount++,this.currentForm.form.markAsDirty()},com
plete:()=>{}}):this.saveCard()}saveCard(){this.card.CardId?this.cardList.CaptureCardList.CaptureCards.forEach(e=>{(e.CardId==this.card.CardId||e.ParentId==this.card.CardId)&&(this.captureCardService.UpdateCaptureCard(e.CardId,"videodevice",this.card.VideoDevice).subscribe(this.saveObserver),this.captureCardService.UpdateCaptureCard(e.CardId,"dvb_wait_for_seqstart",this.card.DVBWaitForSeqStart?"1":"0").subscribe(this.saveObserver),this.captureCardService.UpdateCaptureCard(e.CardId,"dvb_on_demand",this.card.DVBOnDemand?"1":"0").subscribe(this.saveObserver),this.captureCardService.UpdateCaptureCard(e.CardId,"signal_timeout",String(this.card.SignalTimeout)).subscribe(this.saveObserver),this.captureCardService.UpdateCaptureCard(e.CardId,"channel_timeout",String(this.card.ChannelTimeout)).subscribe(this.saveObserver),this.captureCardService.UpdateCaptureCard(e.CardId,"dvb_tuning_delay",String(this.card.DVBTuningDelay)).subscribe(this.saveObserver),this.captureCardService.UpdateCaptureCard
(e.CardId,"dvb_eitscan",String(this.card.DVBEITScan?"1":"0")).subscribe(this.saveObserver),this.captureCardService.UpdateCaptureCard(e.CardId,"inputname",this.card.InputName).subscribe(this.saveObserver),this.captureCardService.UpdateCaptureCard(e.CardId,"DiSEqCId",String(this.card.DiSEqCId)).subscribe(this.saveObserver))}):this.captureCardService.AddCaptureCard(this.card).subscribe(this.saveObserver)}}return
t.\u0275fac=function(e){return
new(e||t)(D(Gt),D(Me),D(Oe))},t.\u0275cmp=z({type:t,selectors:[["app-dvb"]],viewQuery:function(e,n){if(1&e&&(W($X,5),W(WX,5)),2&e){let
s;V(s=B())&&(n.currentForm=s.first),V(s=B())&&(n.topElement=s.first)}},inputs:{card:"card",cardList:"cardList",diseqcTreeList:"diseqcTreeList",parent:"parent"},decls:9,vars:0,consts:[["name","dvbform",1,"ml-3","mr-3"],["dvbform","ngForm"],["top",""],[1,"m-5"],["pTemplate","title"],["pTemplate","subtitle"],["pTemplate","content"],["pTemplate","footer"],[1,"grid"],[1,"mb-4","w-full"],[1,"form-group","field"],["for","
VideoDevice",1,"label","block"],["optionLabel","VideoDevice","name","VideoDevice",3,"options","ngModel","editable","maxlength","style","ngModelChange","onChange",4,"ngIf"],[4,"ngIf"],[1,"block"],["for","FrontendName",1,"label","block"],["pInputText","","id","FrontendName","name","FrontendName","disabled","true","class","mb-2
form-control
w-full",3,"ngModel","ngModelChange",4,"ngIf"],["for","InputName",1,"label","block"],["name","InputName",3,"options","ngModel","ngModelChange",4,"ngIf"],["for","SignalTimeout",1,"label","block"],["name","SignalTimeout","id","SignalTimeout",3,"ngModel","showButtons","min","max","step","ngModelChange"],["for","ChannelTimeout",1,"label","block"],["name","ChannelTimeout","id","ChannelTimeout",3,"ngModel","showButtons","min","max","step","ngModelChange"],["inputId","DVBWaitForSeqStart","name","DVBWaitForSeqStart",1,"label","mb-2","w-full",3,"ngModel","binary","label","ngModelChange"],["DVBWaitForSeqStart","ngModel"],["inputId","DVBOnDemand","name","DVBOnD
emand",1,"label","mb-2","w-full",3,"ngModel","binary","label","ngModelChange"],["DVBOnDemand","ngModel"],["inputId","DVBEITScan","name","DVBEITScan",1,"label","mb-2","w-full",3,"ngModel","binary","label","ngModelChange"],["DVBEITScan","ngModel"],["for","DVBTuningDelay",1,"label","block"],["name","DVBTuningDelay","id","DVBTuningDelay",3,"ngModel","showButtons","min","max","step","ngModelChange"],[1,"mb-4","w-full",3,"legend","toggleable","collapsed"],["icon","pi
pi-plus-circle","styleClass","p-button-plain",3,"label","onClick",4,"ngIf"],[3,"header","visible","modal","draggable","resizable","visibleChange"],["for","disenqcTypes",1,"label","block"],["optionLabel","description","name","disenqcTypes","optionDisabled","inactive",3,"options","ngModel","ngModelChange","onDblClick"],["icon","pi
pi-plus-circle","styleClass","p-button-plain",3,"label","pTooltip","onClick",4,"ngIf"],["for","diseqcRootTrees",1,"label","block"],["optionLabel","Description","name","diseqcRootTrees","optionValue","
DiSEqCId",3,"options","ngModel","ngModelChange","onDblClick"],["styleClass","p-button-warning","label","Delete
Satellite Devices","icon","pi
pi-trash",3,"onClick",4,"ngIf"],["icon","pi
pi-minus-circle","styleClass","p-button-warning",3,"label","onClick",4,"ngIf"],["severity","error",3,"text",4,"ngIf"],[3,"diseqcTree","diseqcTreeList","dvbComponent","baseEvent",4,"ngIf"],["optionLabel","VideoDevice","name","VideoDevice",3,"options","ngModel","editable","maxlength","ngModelChange","onChange"],["VideoDevice","ngModel"],[1,"p-error","block"],["pInputText","","id","FrontendName","name","FrontendName","disabled","true",1,"mb-2","form-control","w-full",3,"ngModel","ngModelChange"],["FrontendName","ngModel"],["name","InputName",3,"options","ngModel","ngModelChange"],["InputName","ngModel"],["icon","pi
pi-plus-circle","styleClass","p-button-plain",3,"label","onClick"],["icon","pi
pi-times-circle","styleClass","p-button-plain",3,"label","onClick"],["icon","pi
pi-check-circle","styleClass","p-
button-plain",3,"label","disabled","onClick"],["icon","pi
pi-plus-circle","styleClass","p-button-plain",3,"label","pTooltip","onClick"],["styleClass","p-button-warning","label","Delete
Satellite Devices","icon","pi
pi-trash",3,"onClick"],["icon","pi
pi-times-circle","styleClass","p-button-plain",3,"label","click"],["icon","pi
pi-check-circle","styleClass","p-button-plain",3,"label","click"],["icon","pi
pi-minus-circle","styleClass","p-button-warning",3,"label","onClick"],["severity","error",3,"text"],[3,"diseqcTree","diseqcTreeList","dvbComponent","baseEvent"],[1,"grid","nogutter"],[1,"col-12"],["severity","success",3,"text",4,"ngIf"],["icon","pi
pi-save","iconPos","left",1,"col","pr-1",3,"label","disabled","onClick"],["severity","success",3,"text"]],template:function(e,n){1&e&&(l(0,"form",0,1),k(2,"span",null,2),l(4,"p-card",3),_(5,KX,2,3,"ng-template",4),_(6,QX,0,0,"ng-template",5),_(7,mee,117,155,"ng-template",6),_(8,_ee,6,6,"ng-template",7),c()())},styles:[""]}),t})();const
bee=
["lnbform"];function
vee(t,i){1&t&&(g(0),m(1,"translate")),2&t&&T("
",f(1,1,"settings.capture.diseqc.lnb.title")," ")}function
Cee(t,i){}const TS=function(){return{minWidth:"80%"}};function
yee(t,i){if(1&t){const
e=I();l(0,"div",6)(1,"div",7)(2,"div",8)(3,"label",9),g(4),m(5,"translate"),c(),l(6,"input",10,11),C("ngModelChange",function(s){return
v(e),d().diseqcTree.Description=s}),c(),l(8,"small",12),g(9),m(10,"translate"),c()(),l(11,"div",8)(12,"label",13),g(13),m(14,"translate"),c(),l(15,"p-dropdown",14,15),C("ngModelChange",function(s){return
v(e),d().currentPreset=s})("onChange",function(){return
v(e),d().updatePreset()}),c(),l(17,"small",12),g(18),m(19,"translate"),c()(),l(20,"div",8)(21,"label",16),g(22),m(23,"translate"),c(),l(24,"p-dropdown",17,18),C("ngModelChange",function(s){return
v(e),d().currentSubType=s})("onChange",function(){return
v(e),d().updateSubType()}),c(),l(26,"small",12),g(27),m(28,"translate"),c()(),l(29,"div",8)(30,"label",19),g(31),m(32,"translate"),c(),
l(33,"p-inputNumber",20),C("ngModelChange",function(s){return
v(e),d().work.LnbLofSwitch=s}),c(),l(34,"small",12),g(35),m(36,"translate"),c()(),l(37,"div",8)(38,"label",21),g(39),m(40,"translate"),c(),l(41,"p-inputNumber",22),C("ngModelChange",function(s){return
v(e),d().work.LnbLofLo=s}),c(),l(42,"small",12),g(43),m(44,"translate"),c()(),l(45,"div",8)(46,"label",23),g(47),m(48,"translate"),c(),l(49,"p-inputNumber",24),C("ngModelChange",function(s){return
v(e),d().work.LnbLofHi=s}),c(),l(50,"small",12),g(51),m(52,"translate"),c()(),l(53,"div",8)(54,"p-checkbox",25,26),C("ngModelChange",function(s){return
v(e),d().diseqcTree.LnbPolInv=s}),m(56,"translate"),c(),l(57,"small",12),g(58),m(59,"translate"),c()()()()}if(2&t){const
e=d();a(4),S(f(5,41,"settings.capture.diseqc.description_label")),a(2),p("ngModel",e.diseqcTree.Description),a(3),T("
",f(10,43,"settings.capture.diseqc.description_desc"),"
"),a(4),S(f(14,45,"settings.capture.diseqc.lnb.preset_label")),a(2),q(A(69,TS)),p("options
",e.lnbPresetList)("ngModel",e.currentPreset)("editable",!1)("maxlength",0)("scrollHeight","400px"),a(3),T("
",f(19,47,"settings.capture.diseqc.lnb.preset_desc"),"
"),a(4),S(f(23,49,"settings.capture.diseqc.lnb.type_label")),a(2),q(A(70,TS)),p("options",e.lnbSubTypes)("ngModel",e.currentSubType)("editable",!1)("maxlength",0)("disabled","custom"!=e.currentPreset.SubType),a(3),T("
",f(28,51,"settings.capture.diseqc.lnb.type_desc"),"
"),a(4),S(f(32,53,"settings.capture.diseqc.lnb.lofswitch_label")),a(2),p("ngModel",e.work.LnbLofSwitch)("useGrouping",!1)("disabled","custom"!=e.currentPreset.SubType||"voltage_tone"!=e.diseqcTree.SubType),a(2),T("
",f(36,55,"settings.capture.diseqc.lnb.lofswitch_desc"),"
"),a(4),S(f(40,57,"settings.capture.diseqc.lnb.loflow_label")),a(2),p("ngModel",e.work.LnbLofLo)("useGrouping",!1)("disabled","custom"!=e.currentPreset.SubType),a(2),T("
",f(44,59,"settings.capture.diseqc.lnb.loflow_desc"),"
"),a(4),S(f(48,61,"settings.capture.diseqc.lnb.lofhigh_label")),
a(2),p("ngModel",e.work.LnbLofHi)("useGrouping",!1)("disabled","custom"!=e.currentPreset.SubType||!("voltage_tone"==e.diseqcTree.SubType||"bandstacked"==e.diseqcTree.SubType)),a(2),T("
",f(52,63,"settings.capture.diseqc.lnb.lofhigh_desc"),"
"),a(3),x("label",f(56,65,"settings.capture.diseqc.lnb.reversed_label")),p("ngModel",e.diseqcTree.LnbPolInv)("binary",!0)("disabled","custom"!=e.currentPreset.SubType),a(4),T("
",f(59,67,"settings.capture.diseqc.lnb.reversed_desc")," ")}}let
kd=(()=>{class
t{constructor(e,n,s){this.captureCardService=e,this.setupService=n,this.translate=s,this.baseEvent=new
H,this.work={LnbLofSwitch:0,LnbLofLo:0,LnbLofHi:0},this.lnbSubTypes=[{Name:"settings.capture.diseqc.subtype_legacy",SubType:"fixed"},{Name:"settings.capture.diseqc.subtype_standard",SubType:"voltage"},{Name:"settings.capture.diseqc.subtype_universal",SubType:"voltage_tone"},{Name:"settings.capture.diseqc.subtype_backstacked",SubType:"bandstacked"}],this.lnbPresetList=[{Name:"settings.capture.d
iseqc.lnbpreset_universal",SubType:"voltage_tone",LnbLofSwitch:11700,LnbLofLo:9750,LnbLofHi:10600,LnbPolInv:!1},{Name:"settings.capture.diseqc.lnbpreset_single",SubType:"voltage",LnbLofSwitch:0,LnbLofLo:9750,LnbLofHi:0,LnbPolInv:!1},{Name:"settings.capture.diseqc.lnbpreset_circular",SubType:"voltage",LnbLofSwitch:0,LnbLofLo:11250,LnbLofHi:0,LnbPolInv:!1},{Name:"settings.capture.diseqc.lnbpreset_Linear",SubType:"voltage",LnbLofSwitch:0,LnbLofLo:10750,LnbLofHi:0,LnbPolInv:!1},{Name:"settings.capture.diseqc.lnbpreset_cband",SubType:"voltage",LnbLofSwitch:0,LnbLofLo:5150,LnbLofHi:0,LnbPolInv:!1},{Name:"settings.capture.diseqc.lnbpreset_dishpro",SubType:"bandstacked",LnbLofSwitch:0,LnbLofLo:11250,LnbLofHi:14350,LnbPolInv:!1},{Name:"settings.capture.diseqc.lnbpreset_custom",SubType:"custom",LnbLofSwitch:0,LnbLofLo:0,LnbLofHi:0,LnbPolInv:!1}],this.setupDone=!1,this.lnbSubTypes.forEach(r=>s.get(r.Name).subscribe(o=>r.Name=o)),this.lnbPresetList.forEach(r=>s.get(r.Name).subscribe(o=>r.Name=o
))}ngOnInit(){if(this.diseqcTree.DiSEqCId){let
e;this.work.LnbLofSwitch=this.diseqcTree.LnbLofSwitch/1e3,this.work.LnbLofLo=this.diseqcTree.LnbLofLo/1e3,this.work.LnbLofHi=this.diseqcTree.LnbLofHi/1e3,e=this.lnbPresetList.find(n=>n.SubType==this.diseqcTree.SubType&&n.LnbLofSwitch==this.work.LnbLofSwitch&&n.LnbLofLo==this.work.LnbLofLo&&n.LnbLofHi==this.work.LnbLofHi&&n.LnbPolInv==this.diseqcTree.LnbPolInv),this.currentPreset=null==e?this.lnbPresetList[this.lnbPresetList.length-1]:e}else
this.currentPreset=this.lnbPresetList[0],this.updatePreset()}ngAfterViewInit(){this.baseEvent.emit(this),this.currentForm.valueChanges.subscribe(n=>{this.setupDone&&this.currentForm.dirty&&this.dvbComponent.currentForm.form.markAsDirty()}),new
Je(n=>{setTimeout(()=>{n.next(1),n.complete()},100)}).subscribe(n=>{this.setupDone=!0,this.diseqcTree.DiSEqCId?this.currentForm.form.markAsPristine():(this.currentForm.form.markAsDirty(),this.dvbComponent.currentForm.form.markAsDirty())})}updatePreset(){if("cus
tom"!=this.currentPreset.SubType){let
e=this.lnbSubTypes.find(n=>n.SubType==this.currentPreset.SubType);e&&(this.currentSubType=e,this.updateSubType()),this.work.LnbLofSwitch=this.currentPreset.LnbLofSwitch,this.work.LnbLofLo=this.currentPreset.LnbLofLo,this.work.LnbLofHi=this.currentPreset.LnbLofHi,this.diseqcTree.LnbPolInv=this.currentPreset.LnbPolInv}}updateSubType(){this.diseqcTree.SubType=this.currentSubType.SubType}saveForm(e,n){this.diseqcTree.ParentId=e,this.diseqcTree.LnbLofSwitch=1e3*this.work.LnbLofSwitch,this.diseqcTree.LnbLofLo=1e3*this.work.LnbLofLo,this.diseqcTree.LnbLofHi=1e3*this.work.LnbLofHi,this.diseqcTree.DiSEqCId?this.captureCardService.UpdateDiseqcTree(this.diseqcTree).subscribe(n):this.captureCardService.AddDiseqcTree(this.diseqcTree).subscribe({next:s=>{s.int&&s.int>0?(this.diseqcTree.DiSEqCId=s.int,n.next&&n.next(s)):(console.log("UpdateDiseqcTree",s),n.error(s))},error:s=>{console.log("UpdateDiseqcTree",s),n.error(s)}})}}return
t.\u0275fac=function(e){retu
rn
new(e||t)(D(Gt),D(Me),D(Oe))},t.\u0275cmp=z({type:t,selectors:[["app-lnb"]],viewQuery:function(e,n){if(1&e&&W(bee,5),2&e){let
s;V(s=B())&&(n.currentForm=s.first)}},inputs:{diseqcTree:"diseqcTree",diseqcTreeList:"diseqcTreeList",dvbComponent:"dvbComponent"},outputs:{baseEvent:"baseEvent"},decls:6,vars:0,consts:[["name","lnbform",1,"ml-3","mr-3"],["lnbform","ngForm"],[1,"m-5"],["pTemplate","title"],["pTemplate","subtitle"],["pTemplate","content"],[1,"grid"],[1,"mb-4","w-full"],[1,"form-group","field"],["for","Description",1,"label","block"],["pInputText","","id","ip","name","Description",1,"mb-2","form-control","w-full",3,"ngModel","ngModelChange"],["Description","ngModel"],[1,"block"],["for","LnbPreset",1,"label","block"],["optionLabel","Name","name","LnbPreset",3,"options","ngModel","editable","maxlength","scrollHeight","ngModelChange","onChange"],["LnbPreset","ngModel"],["for","SubType",1,"label","block"],["optionLabel","Name","name","SubType",3,"options","ngModel","editable","m
axlength","disabled","ngModelChange","onChange"],["SubType","ngModel"],["for","LnbLofSwitch",1,"label","block"],["name","LnbLofSwitch","id","LnbLofSwitch","mode","decimal","inputId","withoutgrouping",3,"ngModel","useGrouping","disabled","ngModelChange"],["for","LnbLofLo",1,"label","block"],["name","LnbLofLo","id","LnbLofLo","mode","decimal","inputId","withoutgrouping",3,"ngModel","useGrouping","disabled","ngModelChange"],["for","LnbLofHi",1,"label","block"],["name","LnbLofHi","id","LnbLofHi","mode","decimal","inputId","withoutgrouping",3,"ngModel","useGrouping","disabled","ngModelChange"],["inputId","LnbPolInv","name","LnbPolInv",1,"label","mb-2","w-full",3,"ngModel","binary","label","disabled","ngModelChange"],["LnbPolInv","ngModel"]],template:function(e,n){1&e&&(l(0,"form",0,1)(2,"p-card",2),_(3,vee,2,3,"ng-template",3),_(4,Cee,0,0,"ng-template",4),_(5,yee,60,71,"ng-template",5),c()())},directives:[ze,Ue,He,Ne,ne,Ye,Te,_e,Ot,_n,pt,sn],pipes:[ce],styles:[""]}),t})();const
wee=["rot
orform"];function
Tee(t,i){1&t&&(g(0),m(1,"translate")),2&t&&T("
",f(1,1,"settings.capture.diseqc.rotor.title")," ")}function
See(t,i){}function
xee(t,i){1&t&&(l(0,"tr")(1,"th"),g(2,"Position
#"),c(),l(3,"th"),g(4,"Angle (Degrees)"),c()())}function
Dee(t,i){if(1&t){const
e=I();l(0,"p-inputNumber",43),C("ngModelChange",function(s){return
v(e),d().$implicit.Angle=s}),c()}2&t&&p("ngModel",d().$implicit.Angle)("min",-180)("max",180)("maxFractionDigits",5)}function
Mee(t,i){if(1&t&&(l(0,"div"),g(1),c()),2&t){const
e=d(2).$implicit;a(1),T("",e.Angle," (W)")}}function
kee(t,i){if(1&t&&(l(0,"div"),g(1),c()),2&t){const
e=d(2).$implicit;a(1),T(" ",e.Angle," (E)")}}function
Iee(t,i){if(1&t&&(_(0,Mee,2,1,"div",44),_(1,kee,2,1,"div",44)),2&t){const
e=d().$implicit;p("ngIf",e.Angle<0),a(1),p("ngIf",null!=e.Angle&&e.Angle>=0)}}function
Eee(t,i){if(1&t&&(l(0,"tr")(1,"td"),g(2),c(),l(3,"td",40)(4,"p-cellEditor"),_(5,Dee,1,4,"ng-template",41),_(6,Iee,2,2,"ng-template",42),c()()()),2&t){const
e=i.$imp
licit;a(2),T(" ",e.Num," ")}}const
SS=function(){return{width:"25rem"}};function
Ree(t,i){if(1&t&&(l(0,"div",8)(1,"label",36),g(2),m(3,"translate"),c(),l(4,"div")(5,"p-table",37),_(6,xee,5,0,"ng-template",38),_(7,Eee,7,1,"ng-template",39),c()(),l(8,"small",12),g(9),m(10,"translate"),c()()),2&t){const
e=d(2);a(2),S(f(3,6,"settings.capture.diseqc.rotor.positions_label")),a(2),q(A(10,SS)),a(1),p("value",e.rotorPositions)("scrollable",!0),a(4),T("
",f(10,8,"settings.capture.diseqc.rotor.positions_desc"),"
")}}function Lee(t,i){if(1&t){const
e=I();l(0,"p-button",45),C("onClick",function(){return
v(e),d(2).work.displayNewDiseqc=!0}),m(1,"translate"),c()}2&t&&x("label",f(1,1,"settings.capture.dvb.newsatellite_button"))}function
Oee(t,i){if(1&t){const
e=I();l(0,"p-button",46),C("onClick",function(){return
v(e),d(2).work.displayNewDiseqc=!1}),m(1,"translate"),c(),l(2,"p-button",47),C("onClick",function(){return
v(e),d(2).newDiseqc()}),m(3,"translate"),c()}if(2&t){const
e=d(2);x("label",f(1,3
,"common.cancel")),a(2),x("label",f(3,5,"common.ok")),p("disabled",e.selectedDiseqcType.inactive)}}function
Aee(t,i){if(1&t){const
e=I();l(0,"p-button",48),C("onClick",function(){return
v(e),d(2).work.displayDeleteDiseqc=!0}),c()}2&t&&p("disabled",!d(2).diseqcSubTree)}function
Pee(t,i){if(1&t){const
e=I();l(0,"p-button",49),C("click",function(){return
v(e),d(2).work.displayDeleteDiseqc=!1}),m(1,"translate"),c(),l(2,"p-button",50),C("click",function(){return
v(e),d(2).deleteDiseqc()}),m(3,"translate"),c()}2&t&&(x("label",f(1,2,"common.no")),a(2),x("label",f(3,4,"common.yes")))}function
Fee(t,i){if(1&t){const
e=I();l(0,"app-lnb",51),C("baseEvent",function(s){return
v(e),d(2).setDiseqcObject(s)}),c()}if(2&t){const
e=d(2);p("diseqcTree",e.diseqcSubTree)("diseqcTreeList",e.diseqcTreeList)("dvbComponent",e.dvbComponent)}}function
Nee(t,i){if(1&t){const
e=I();l(0,"app-rotor",51),C("baseEvent",function(s){return
v(e),d(2).setDiseqcObject(s)}),c()}if(2&t){const
e=d(2);p("diseqcTree",e.diseqc
SubTree)("diseqcTreeList",e.diseqcTreeList)("dvbComponent",e.dvbComponent)}}function
Vee(t,i){if(1&t){const
e=I();l(0,"app-switch",51),C("baseEvent",function(s){return
v(e),d(2).setDiseqcObject(s)}),c()}if(2&t){const
e=d(2);p("diseqcTree",e.diseqcSubTree)("diseqcTreeList",e.diseqcTreeList)("dvbComponent",e.dvbComponent)}}function
Bee(t,i){if(1&t){const
e=I();l(0,"app-unicable",51),C("baseEvent",function(s){return
v(e),d(2).setDiseqcObject(s)}),c()}if(2&t){const
e=d(2);p("diseqcTree",e.diseqcSubTree)("diseqcTreeList",e.diseqcTreeList)("dvbComponent",e.dvbComponent)}}const
Hee=function(){return{minWidth:"80%"}},xS=function(){return{width:"50vw"}};function
qee(t,i){if(1&t){const
e=I();l(0,"div",6)(1,"div",7)(2,"div",8)(3,"label",9),g(4),m(5,"translate"),c(),l(6,"input",10,11),C("ngModelChange",function(s){return
v(e),d().diseqcTree.Description=s}),c(),l(8,"small",12),g(9),m(10,"translate"),c()(),l(11,"div",8)(12,"label",13),g(13),m(14,"translate"),c(),l(15,"p-inputNumber",14),C("ngMode
lChange",function(s){return
v(e),d().diseqcTree.CmdRepeat=s}),c(),l(16,"small",12),k(17,"div",15),m(18,"translate"),c()(),l(19,"div",8)(20,"label",16),g(21),m(22,"translate"),c(),l(23,"p-dropdown",17,18),C("ngModelChange",function(s){return
v(e),d().currentSubType=s})("onChange",function(){return
v(e),d().updateSubType()}),c(),l(25,"small",12),g(26),m(27,"translate"),c()(),_(28,Ree,11,11,"div",19),l(29,"div",8)(30,"label",20),g(31),m(32,"translate"),c(),l(33,"p-inputNumber",21),C("ngModelChange",function(s){return
v(e),d().diseqcTree.RotorLoSpeed=s}),c(),l(34,"small",12),g(35),m(36,"translate"),c()(),l(37,"div",8)(38,"label",22),g(39),m(40,"translate"),c(),l(41,"p-inputNumber",23),C("ngModelChange",function(s){return
v(e),d().diseqcTree.RotorHiSpeed=s}),c(),l(42,"small",12),g(43),m(44,"translate"),c()(),l(45,"div",8)(46,"label",24),g(47),m(48,"translate"),c(),l(49,"p-inputNumber",25),C("ngModelChange",function(s){return
v(e),d().fields.Latitude=s}),c(),l(50,"small",12),g(51),m(52,"t
ranslate"),c()(),l(53,"div",8)(54,"label",26),g(55),m(56,"translate"),c(),l(57,"p-inputNumber",27),C("ngModelChange",function(s){return
v(e),d().fields.Longitude=s}),c(),l(58,"small",12),g(59),m(60,"translate"),c()(),l(61,"p-fieldset",28),m(62,"translate"),_(63,Lee,2,3,"p-button",29),l(64,"p-dialog",30),C("visibleChange",function(s){return
v(e),d().work.displayNewDiseqc=s}),m(65,"translate"),l(66,"label",31),g(67),m(68,"translate"),c(),l(69,"p-listbox",32),C("ngModelChange",function(s){return
v(e),d().selectedDiseqcType=s})("onDblClick",function(){return
v(e),d().newDiseqc()}),c(),_(70,Oee,4,7,"ng-template",33),c(),_(71,Aee,1,1,"p-button",34),l(72,"p-dialog",30),C("visibleChange",function(s){return
v(e),d().work.displayDeleteDiseqc=s}),m(73,"translate"),l(74,"h2"),g(75),m(76,"translate"),c(),l(77,"p"),g(78),m(79,"translate"),c(),_(80,Pee,4,6,"ng-template",33),c(),_(81,Fee,1,3,"app-lnb",35),_(82,Nee,1,3,"app-rotor",35),_(83,Vee,1,3,"app-switch",35),_(84,Bee,1,3,"app-unicable",35),c()
()()}if(2&t){const
e=d();a(4),S(f(5,65,"settings.capture.diseqc.description_label")),a(2),p("ngModel",e.diseqcTree.Description),a(3),T("
",f(10,67,"settings.capture.diseqc.description_desc"),"
"),a(4),S(f(14,69,"settings.capture.diseqc.cmdrepeat_label")),a(2),p("ngModel",e.diseqcTree.CmdRepeat)("showButtons",!0)("min",0)("max",15)("step",1),a(2),p("innerHTML",f(18,71,"settings.capture.diseqc.cmdrepeat_desc"),Bt),a(2),q(A(105,SS)),a(2),S(f(22,73,"settings.capture.diseqc.rotor.type_label")),a(2),q(A(106,Hee)),p("options",e.rotorSubTypes)("ngModel",e.currentSubType)("editable",!1)("maxlength",0),a(3),T("
",f(27,75,"settings.capture.diseqc.rotor.type_desc"),"
"),a(2),p("ngIf","diseqc_1_2"==e.diseqcTree.SubType),a(3),S(f(32,77,"settings.capture.diseqc.rotor.lospeed_label")),a(2),p("ngModel",e.diseqcTree.RotorLoSpeed)("maxFractionDigits",5),a(2),T("
",f(36,79,"settings.capture.diseqc.rotor.lospeed_desc"),"
"),a(4),S(f(40,81,"settings.capture.diseqc.rotor.hispeed_label")),a(2),p("ngModel",
e.diseqcTree.RotorHiSpeed)("maxFractionDigits",5),a(2),T("
",f(44,83,"settings.capture.diseqc.rotor.hispeed_desc"),"
"),a(4),S(f(48,85,"settings.capture.diseqc.rotor.latitude_label")),a(2),p("ngModel",e.fields.Latitude)("maxFractionDigits",5),a(2),T("
",f(52,87,"settings.capture.diseqc.rotor.latitude_desc"),"
"),a(4),S(f(56,89,"settings.capture.diseqc.rotor.longitude_label")),a(2),p("ngModel",e.fields.Longitude)("maxFractionDigits",5),a(2),T("
",f(60,91,"settings.capture.diseqc.rotor.longitude_desc"),"
"),a(2),x("legend",f(62,93,"settings.capture.dvb.satellite_heading")),p("toggleable",!0)("collapsed",!0),a(2),p("ngIf",!e.diseqcSubTree),a(1),q(A(107,xS)),x("header",f(65,95,"settings.capture.dvb.newsatellite_heading")),p("visible",e.work.displayNewDiseqc)("modal",!0)("draggable",!1)("resizable",!1),a(3),S(f(68,97,"settings.capture.dvb.newsatellite_devtype")),a(2),p("options",e.captureCardService.diseqcTypes)("ngModel",e.selectedDiseqcType),a(2),p("ngIf",e.diseqcSubTree),a(1),q(A(108,
xS)),x("header",f(73,99,"settings.capture.dvb.satellite_delete_header")),p("visible",e.work.displayDeleteDiseqc)("modal",!0)("draggable",!1)("resizable",!1),a(3),S(f(76,101,"settings.common.ru_sure")),a(3),S(f(79,103,"settings.capture.dvb.satellite_delete_desc")),a(3),p("ngIf",e.diseqcSubTree&&"lnb"==e.diseqcSubTree.Type),a(1),p("ngIf",e.diseqcSubTree&&"rotor"==e.diseqcSubTree.Type),a(1),p("ngIf",e.diseqcSubTree&&"switch"==e.diseqcSubTree.Type),a(1),p("ngIf",e.diseqcSubTree&&"scr"==e.diseqcSubTree.Type)}}let
Al=(()=>{class
t{constructor(e,n,s,r){this.captureCardService=e,this.setupService=n,this.translate=s,this.mythService=r,this.baseEvent=new
H,this.rotorSubTypes=[{Name:"settings.capture.diseqc.subtype_diseqc_1_2",SubType:"diseqc_1_2"},{Name:"settings.capture.diseqc.subtype_diseqc_1_3",SubType:"diseqc_1_3"}],this.selectedDiseqcType={description:"",type:"",inactive:!0},this.rotorPositions=[],this.fields={Latitude:null,Longitude:null},this.work={displayNewDiseqc:!1,displayDeleteDise
qc:!1},this.setupDone=!1,this.rotorSubTypes.forEach(o=>s.get(o.Name).subscribe(u=>o.Name=u))}ngOnInit(){this.mythService.GetSetting({HostName:"_GLOBAL_",Key:"latitude"}).subscribe({next:e=>{e.String.length>0&&(this.fields.Latitude=Number(e.String))},error:()=>this.dvbComponent.work.errorCount++}),this.mythService.GetSetting({HostName:"_GLOBAL_",Key:"longitude"}).subscribe({next:e=>{e.String.length>0&&(this.fields.Longitude=Number(e.String))},error:()=>this.dvbComponent.work.errorCount++});for(let
e=0;e<48;e++)this.rotorPositions.push({Num:e+1,Angle:null});if(this.diseqcTree.DiSEqCId?this.diseqcTree.RotorPositions.split(":").forEach(n=>{let
s=n.split("=");if(2==s.length&&s[0].length>0&&s[1].length>0){let
r=Number.parseInt(s[1])-1,o=Number.parseFloat(s[0]);r>-1&&r<48&&(this.rotorPositions[r].Angle=o)}}):(this.diseqcTree.RotorHiSpeed=2.5,this.diseqcTree.RotorLoSpeed=1.9,this.diseqcTree.SubType="diseqc_1_3",this.diseqcTree.CmdRepeat=1),this.diseqcTree.SubType){let
e=this.rotorSubTypes.f
ind(n=>n.SubType==this.diseqcTree.SubType);e&&(this.currentSubType=e)}this.diseqcSubTree=this.diseqcTreeList.DiseqcTreeList.DiseqcTrees.find(e=>e.ParentId==this.diseqcTree.DiSEqCId)}ngAfterViewInit(){this.baseEvent.emit(this),this.currentForm.valueChanges.subscribe(n=>{this.setupDone&&this.currentForm.dirty&&this.dvbComponent.currentForm.form.markAsDirty()}),new
Je(n=>{setTimeout(()=>{n.next(1),n.complete()},100)}).subscribe(n=>{this.setupDone=!0,this.diseqcTree.DiSEqCId?this.currentForm.form.markAsPristine():(this.currentForm.form.markAsDirty(),this.dvbComponent.currentForm.form.markAsDirty())})}updateSubType(){this.diseqcTree.SubType=this.currentSubType.SubType}newDiseqc(){this.work.displayNewDiseqc=!1,this.diseqcSubTree={Type:this.selectedDiseqcType.type,Description:this.selectedDiseqcType.description}}setDiseqcObject(e){this.diseqcSubComponent=e}deleteDiseqc(){this.work.displayDeleteDiseqc=!1,this.dvbComponent.work.errorCount=0,this.diseqcSubTree&&this.diseqcSubTree.DiSEqCId&&th
is.captureCardService.DeleteDiseqcTree(this.diseqcSubTree.DiSEqCId).subscribe({next:e=>{e.bool||(console.log("DeleteDiseqcTree",e),this.dvbComponent.work.errorCount++)},error:e=>{console.log("DeleteDiseqcTree",e),this.dvbComponent.work.errorCount++}}),0==this.dvbComponent.work.errorCount&&(this.diseqcSubTree=void
0)}saveForm(e,n){this.diseqcTree.ParentId=e,null!=this.fields.Latitude&&this.mythService.PutSetting({HostName:"_GLOBAL_",Key:"latitude",Value:String(this.fields.Latitude)}).subscribe(this.dvbComponent.saveObserver),null!=this.fields.Longitude&&this.mythService.PutSetting({HostName:"_GLOBAL_",Key:"longitude",Value:String(this.fields.Longitude)}).subscribe(this.dvbComponent.saveObserver),this.diseqcTree.RotorPositions="",this.rotorPositions.forEach(s=>{null!=s.Angle&&(this.diseqcTree.RotorPositions.length>0&&(this.diseqcTree.RotorPositions=this.diseqcTree.RotorPositions+":"),this.diseqcTree.RotorPositions=this.diseqcTree.RotorPositions+s.Angle+"="+s.Num)}),this.diseqcTree.DiS
EqCId?(this.captureCardService.UpdateDiseqcTree(this.diseqcTree).subscribe(n),this.diseqcSubComponent&&this.diseqcSubComponent.saveForm(this.diseqcTree.DiSEqCId,{error:s=>{n.error(s)}})):this.captureCardService.AddDiseqcTree(this.diseqcTree).subscribe({next:s=>{s.int&&s.int>0?(this.diseqcTree.DiSEqCId=s.int,n.next(s),this.diseqcSubComponent&&this.diseqcSubComponent.saveForm(this.diseqcTree.DiSEqCId,{next:r=>{},error:r=>{n.error(r)}})):(console.log("UpdateDiseqcTree",s),n.error(s))},error:s=>{console.log("UpdateDiseqcTree",s),n.error(s)}})}}return
t.\u0275fac=function(e){return
new(e||t)(D(Gt),D(Me),D(Oe),D(qt))},t.\u0275cmp=z({type:t,selectors:[["app-rotor"]],viewQuery:function(e,n){if(1&e&&W(wee,5),2&e){let
s;V(s=B())&&(n.currentForm=s.first)}},inputs:{diseqcTree:"diseqcTree",diseqcTreeList:"diseqcTreeList",dvbComponent:"dvbComponent"},outputs:{baseEvent:"baseEvent"},decls:6,vars:0,consts:[["name","rotorform",1,"ml-3","mr-3"],["rotorform","ngForm"],[1,"m-5"],["pTemplate","title"],[
"pTemplate","subtitle"],["pTemplate","content"],[1,"grid"],[1,"mb-4","w-full"],[1,"form-group","field"],["for","Description",1,"label","block"],["pInputText","","id","ip","name","Description",1,"mb-2","form-control","w-full",3,"ngModel","ngModelChange"],["Description","ngModel"],[1,"block"],["for","CmdRepeat",1,"label","block"],["name","CmdRepeat","id","CmdRepeat",3,"ngModel","showButtons","min","max","step","ngModelChange"],[3,"innerHTML"],["for","SubType",1,"label","block"],["optionLabel","Name","name","SubType",3,"options","ngModel","editable","maxlength","ngModelChange","onChange"],["SubType","ngModel"],["class","form-group
field",4,"ngIf"],["for","RotorLoSpeed",1,"label","block"],["name","RotorLoSpeed","id","RotorLoSpeed","mode","decimal",3,"ngModel","maxFractionDigits","ngModelChange"],["for","RotorHiSpeed",1,"label","block"],["name","RotorHiSpeed","id","RotorHiSpeed","mode","decimal",3,"ngModel","maxFractionDigits","ngModelChange"],["for","Latitude",1,"label","block"],["name"
,"Latitude","id","Latitude","mode","decimal",3,"ngModel","maxFractionDigits","ngModelChange"],["for","Longitude",1,"label","block"],["name","Longitude","id","Longitude","mode","decimal",3,"ngModel","maxFractionDigits","ngModelChange"],[1,"mb-4","w-full",3,"legend","toggleable","collapsed"],["icon","pi
pi-plus-circle","styleClass","p-button-plain",3,"label","onClick",4,"ngIf"],[3,"header","visible","modal","draggable","resizable","visibleChange"],["for","disenqcTypes",1,"label","block"],["optionLabel","description","name","disenqcTypes","optionDisabled","inactive",3,"options","ngModel","ngModelChange","onDblClick"],["pTemplate","footer"],["styleClass","p-button-warning","label","Delete
Satellite Devices","icon","pi
pi-trash",3,"disabled","onClick",4,"ngIf"],[3,"diseqcTree","diseqcTreeList","dvbComponent","baseEvent",4,"ngIf"],["for","RotorPositions",1,"label","block"],["dataKey","Num","responsiveLayout","scroll","name","RotorPositions","styleClass","p-datatable-gridlines","scrollHeig
ht","20rem",3,"value","scrollable"],["pTemplate","header"],["pTemplate","body"],["pEditableColumn",""],["pTemplate","input"],["pTemplate","output"],["name","Angle",3,"ngModel","min","max","maxFractionDigits","ngModelChange"],[4,"ngIf"],["icon","pi
pi-plus-circle","styleClass","p-button-plain",3,"label","onClick"],["icon","pi
pi-times-circle","styleClass","p-button-plain",3,"label","onClick"],["icon","pi
pi-check-circle","styleClass","p-button-plain",3,"label","disabled","onClick"],["styleClass","p-button-warning","label","Delete
Satellite Devices","icon","pi
pi-trash",3,"disabled","onClick"],["icon","pi
pi-times-circle","styleClass","p-button-plain",3,"label","click"],["icon","pi
pi-check-circle","styleClass","p-button-plain",3,"label","click"],[3,"diseqcTree","diseqcTreeList","dvbComponent","baseEvent"]],template:function(e,n){1&e&&(l(0,"form",0,1)(2,"p-card",2),_(3,Tee,2,3,"ng-template",3),_(4,See,0,0,"ng-template",4),_(5,qee,85,109,"ng-template",5),c()())},styles:[""]}),t})();con
st Gee=["unicableform"];function
Uee(t,i){1&t&&(g(0),m(1,"translate")),2&t&&T("
",f(1,1,"settings.capture.diseqc.unicable.title")," ")}function
zee(t,i){}function jee(t,i){if(1&t){const
e=I();l(0,"p-button",30),C("onClick",function(){return
v(e),d(2).work.displayNewDiseqc=!0}),m(1,"translate"),c()}2&t&&x("label",f(1,1,"settings.capture.dvb.newsatellite_button"))}function
$ee(t,i){if(1&t){const
e=I();l(0,"p-button",31),C("onClick",function(){return
v(e),d(2).work.displayNewDiseqc=!1}),m(1,"translate"),c(),l(2,"p-button",32),C("onClick",function(){return
v(e),d(2).newDiseqc()}),m(3,"translate"),c()}if(2&t){const
e=d(2);x("label",f(1,3,"common.cancel")),a(2),x("label",f(3,5,"common.ok")),p("disabled",e.selectedDiseqcType.inactive)}}function
Wee(t,i){if(1&t){const
e=I();l(0,"p-button",33),C("onClick",function(){return
v(e),d(2).work.displayDeleteDiseqc=!0}),c()}2&t&&p("disabled",!d(2).diseqcSubTree)}function
Kee(t,i){if(1&t){const
e=I();l(0,"p-button",34),C("click",function(){return v(e
),d(2).work.displayDeleteDiseqc=!1}),m(1,"translate"),c(),l(2,"p-button",35),C("click",function(){return
v(e),d(2).deleteDiseqc()}),m(3,"translate"),c()}2&t&&(x("label",f(1,2,"common.no")),a(2),x("label",f(3,4,"common.yes")))}function
Qee(t,i){if(1&t){const
e=I();l(0,"app-lnb",36),C("baseEvent",function(s){return
v(e),d(2).setDiseqcObject(s)}),c()}if(2&t){const
e=d(2);p("diseqcTree",e.diseqcSubTree)("diseqcTreeList",e.diseqcTreeList)("dvbComponent",e.dvbComponent)}}function
Jee(t,i){if(1&t){const
e=I();l(0,"app-rotor",36),C("baseEvent",function(s){return
v(e),d(2).setDiseqcObject(s)}),c()}if(2&t){const
e=d(2);p("diseqcTree",e.diseqcSubTree)("diseqcTreeList",e.diseqcTreeList)("dvbComponent",e.dvbComponent)}}function
Yee(t,i){if(1&t){const
e=I();l(0,"app-switch",36),C("baseEvent",function(s){return
v(e),d(2).setDiseqcObject(s)}),c()}if(2&t){const
e=d(2);p("diseqcTree",e.diseqcSubTree)("diseqcTreeList",e.diseqcTreeList)("dvbComponent",e.dvbComponent)}}function
Zee(t,i){if(1&t){const e=
I();l(0,"app-unicable",36),C("baseEvent",function(s){return
v(e),d(2).setDiseqcObject(s)}),c()}if(2&t){const
e=d(2);p("diseqcTree",e.diseqcSubTree)("diseqcTreeList",e.diseqcTreeList)("dvbComponent",e.dvbComponent)}}const
DS=function(){return{width:"50vw"}};function Xee(t,i){if(1&t){const
e=I();l(0,"div",6)(1,"div",7)(2,"div",8)(3,"label",9),g(4),m(5,"translate"),c(),l(6,"input",10,11),C("ngModelChange",function(s){return
v(e),d().diseqcTree.Description=s}),c(),l(8,"small",12),g(9),m(10,"translate"),c()(),l(11,"div",8)(12,"label",13),g(13),m(14,"translate"),c(),l(15,"p-inputNumber",14),C("ngModelChange",function(s){return
v(e),d().diseqcTree.ScrUserband=s}),c(),l(16,"small",12),k(17,"div",15),m(18,"translate"),c()(),l(19,"div",8)(20,"label",16),g(21),m(22,"translate"),c(),l(23,"p-inputNumber",17),C("ngModelChange",function(s){return
v(e),d().diseqcTree.ScrFrequency=s}),c(),l(24,"small",12),g(25),m(26,"translate"),c()(),l(27,"div",8)(28,"label",18),g(29),m(30,"translate"),c(),l(31,"p-
inputNumber",19),C("ngModelChange",function(s){return
v(e),d().diseqcTree.ScrPin=s}),c(),l(32,"small",12),g(33),m(34,"translate"),c()(),l(35,"div",8)(36,"label",20),g(37),m(38,"translate"),c(),l(39,"p-inputNumber",21),C("ngModelChange",function(s){return
v(e),d().diseqcTree.CmdRepeat=s}),c(),l(40,"small",12),k(41,"div",15),m(42,"translate"),c()(),l(43,"p-fieldset",22),m(44,"translate"),_(45,jee,2,3,"p-button",23),l(46,"p-dialog",24),C("visibleChange",function(s){return
v(e),d().work.displayNewDiseqc=s}),m(47,"translate"),l(48,"label",25),g(49),m(50,"translate"),c(),l(51,"p-listbox",26),C("ngModelChange",function(s){return
v(e),d().selectedDiseqcType=s})("onDblClick",function(){return
v(e),d().newDiseqc()}),c(),_(52,$ee,4,7,"ng-template",27),c(),_(53,Wee,1,1,"p-button",28),l(54,"p-dialog",24),C("visibleChange",function(s){return
v(e),d().work.displayDeleteDiseqc=s}),m(55,"translate"),l(56,"h2"),g(57),m(58,"translate"),c(),l(59,"p"),g(60),m(61,"translate"),c(),_(62,Kee,4,6,"ng-templat
e",27),c(),_(63,Qee,1,3,"app-lnb",29),_(64,Jee,1,3,"app-rotor",29),_(65,Yee,1,3,"app-switch",29),_(66,Zee,1,3,"app-unicable",29),c()()()}if(2&t){const
e=d();a(4),S(f(5,55,"settings.capture.diseqc.description_label")),a(2),p("ngModel",e.diseqcTree.Description),a(3),T("
",f(10,57,"settings.capture.diseqc.description_desc"),"
"),a(4),S(f(14,59,"settings.capture.diseqc.unicable.userband_label")),a(2),p("ngModel",e.diseqcTree.ScrUserband)("showButtons",!0)("min",0)("max",7)("step",1),a(2),p("innerHTML",f(18,61,"settings.capture.diseqc.userband_desc"),Bt),a(4),S(f(22,63,"settings.capture.diseqc.unicable.frequency_label")),a(2),p("ngModel",e.diseqcTree.ScrFrequency)("useGrouping",!1),a(2),T("
",f(26,65,"settings.capture.diseqc.unicable.frequency_desc"),"
"),a(4),S(f(30,67,"settings.capture.diseqc.unicable.pin_label")),a(2),p("ngModel",e.diseqcTree.ScrPin)("useGrouping",!1)("min",-1)("max",255),a(2),T("
",f(34,69,"settings.capture.diseqc.unicable.pin_desc"),"
"),a(4),S(f(38,71,"settings.cap
ture.diseqc.cmdrepeat_label")),a(2),p("ngModel",e.diseqcTree.CmdRepeat)("showButtons",!0)("min",0)("max",15)("step",1),a(2),p("innerHTML",f(42,73,"settings.capture.diseqc.cmdrepeat_desc"),Bt),a(2),x("legend",f(44,75,"settings.capture.dvb.satellite_heading")),p("toggleable",!0)("collapsed",!0),a(2),p("ngIf",!e.diseqcSubTree),a(1),q(A(87,DS)),x("header",f(47,77,"settings.capture.dvb.newsatellite_heading")),p("visible",e.work.displayNewDiseqc)("modal",!0)("draggable",!1)("resizable",!1),a(3),S(f(50,79,"settings.capture.dvb.newsatellite_devtype")),a(2),p("options",e.captureCardService.diseqcTypes)("ngModel",e.selectedDiseqcType),a(2),p("ngIf",e.diseqcSubTree),a(1),q(A(88,DS)),x("header",f(55,81,"settings.capture.dvb.satellite_delete_header")),p("visible",e.work.displayDeleteDiseqc)("modal",!0)("draggable",!1)("resizable",!1),a(3),S(f(58,83,"settings.common.ru_sure")),a(3),S(f(61,85,"settings.capture.dvb.satellite_delete_desc")),a(3),p("ngIf",e.diseqcSubTree&&"lnb"==e.diseqcSubTree.Type)
,a(1),p("ngIf",e.diseqcSubTree&&"rotor"==e.diseqcSubTree.Type),a(1),p("ngIf",e.diseqcSubTree&&"switch"==e.diseqcSubTree.Type),a(1),p("ngIf",e.diseqcSubTree&&"scr"==e.diseqcSubTree.Type)}}let
Pl=(()=>{class
t{constructor(e){this.captureCardService=e,this.selectedDiseqcType={description:"",type:"",inactive:!0},this.baseEvent=new
H,this.work={displayNewDiseqc:!1,displayDeleteDiseqc:!1},this.setupDone=!1}ngOnInit(){this.diseqcTree.DiSEqCId||(this.diseqcTree.ScrUserband=0,this.diseqcTree.ScrFrequency=1210,this.diseqcTree.ScrPin=-1,this.diseqcTree.CmdRepeat=1),this.diseqcSubTree=this.diseqcTreeList.DiseqcTreeList.DiseqcTrees.find(e=>e.ParentId==this.diseqcTree.DiSEqCId)}ngAfterViewInit(){this.baseEvent.emit(this),this.currentForm.valueChanges.subscribe(n=>{this.setupDone&&this.currentForm.dirty&&this.dvbComponent.currentForm.form.markAsDirty()}),new
Je(n=>{setTimeout(()=>{n.next(1),n.complete()},100)}).subscribe(n=>{this.setupDone=!0,this.diseqcTree.DiSEqCId?this.currentForm.form.markAsPr
istine():(this.currentForm.form.markAsDirty(),this.dvbComponent.currentForm.form.markAsDirty())})}newDiseqc(){this.work.displayNewDiseqc=!1,this.diseqcSubTree={Type:this.selectedDiseqcType.type,Description:this.selectedDiseqcType.description}}setDiseqcObject(e){this.diseqcSubComponent=e}deleteDiseqc(){this.work.displayDeleteDiseqc=!1,this.dvbComponent.work.errorCount=0,this.diseqcSubTree&&this.diseqcSubTree.DiSEqCId&&this.captureCardService.DeleteDiseqcTree(this.diseqcSubTree.DiSEqCId).subscribe({next:e=>{e.bool||(console.log("DeleteDiseqcTree",e),this.dvbComponent.work.errorCount++)},error:e=>{console.log("DeleteDiseqcTree",e),this.dvbComponent.work.errorCount++}}),0==this.dvbComponent.work.errorCount&&(this.diseqcSubTree=void
0)}saveForm(e,n){this.diseqcTree.ParentId=e,this.diseqcTree.DiSEqCId?(this.captureCardService.UpdateDiseqcTree(this.diseqcTree).subscribe(n),this.diseqcSubComponent&&this.diseqcSubComponent.saveForm(this.diseqcTree.DiSEqCId,{error:s=>{n.error(s)}})):this.capt
ureCardService.AddDiseqcTree(this.diseqcTree).subscribe({next:s=>{s.int&&s.int>0?(this.diseqcTree.DiSEqCId=s.int,n.next&&n.next(s),this.diseqcSubComponent&&this.diseqcSubComponent.saveForm(this.diseqcTree.DiSEqCId,{next:r=>{},error:r=>{n.error(r)}})):(console.log("UpdateDiseqcTree",s),n.error(s))},error:s=>{console.log("UpdateDiseqcTree",s),n.error(s)}})}}return
t.\u0275fac=function(e){return
new(e||t)(D(Gt))},t.\u0275cmp=z({type:t,selectors:[["app-unicable"]],viewQuery:function(e,n){if(1&e&&W(Gee,5),2&e){let
s;V(s=B())&&(n.currentForm=s.first)}},inputs:{diseqcTree:"diseqcTree",diseqcTreeList:"diseqcTreeList",dvbComponent:"dvbComponent"},outputs:{baseEvent:"baseEvent"},decls:6,vars:0,consts:[["name","unicableform",1,"ml-3","mr-3"],["unicableform","ngForm"],[1,"m-5"],["pTemplate","title"],["pTemplate","subtitle"],["pTemplate","content"],[1,"grid"],[1,"mb-4","w-full"],[1,"form-group","field"],["for","Description",1,"label","block"],["pInputText","","id","ip","name","Description",1,"mb
-2","form-control","w-full",3,"ngModel","ngModelChange"],["Description","ngModel"],[1,"block"],["for","ScrUserband",1,"label","block"],["name","ScrUserband","id","ScrUserband",3,"ngModel","showButtons","min","max","step","ngModelChange"],[3,"innerHTML"],["for","ScrFrequency",1,"label","block"],["name","ScrFrequency","id","ScrFrequency","mode","decimal","inputId","withoutgrouping",3,"ngModel","useGrouping","ngModelChange"],["for","ScrPin",1,"label","block"],["name","ScrPin","id","ScrPin","mode","decimal","inputId","withoutgrouping",3,"ngModel","useGrouping","min","max","ngModelChange"],["for","CmdRepeat",1,"label","block"],["name","CmdRepeat","id","CmdRepeat",3,"ngModel","showButtons","min","max","step","ngModelChange"],[1,"mb-4","w-full",3,"legend","toggleable","collapsed"],["icon","pi
pi-plus-circle","styleClass","p-button-plain",3,"label","onClick",4,"ngIf"],[3,"header","visible","modal","draggable","resizable","visibleChange"],["for","disenqcTypes",1,"label","block"],["optionLabe
l","description","name","disenqcTypes","optionDisabled","inactive",3,"options","ngModel","ngModelChange","onDblClick"],["pTemplate","footer"],["styleClass","p-button-warning","label","Delete
Satellite Devices","icon","pi
pi-trash",3,"disabled","onClick",4,"ngIf"],[3,"diseqcTree","diseqcTreeList","dvbComponent","baseEvent",4,"ngIf"],["icon","pi
pi-plus-circle","styleClass","p-button-plain",3,"label","onClick"],["icon","pi
pi-times-circle","styleClass","p-button-plain",3,"label","onClick"],["icon","pi
pi-check-circle","styleClass","p-button-plain",3,"label","disabled","onClick"],["styleClass","p-button-warning","label","Delete
Satellite Devices","icon","pi
pi-trash",3,"disabled","onClick"],["icon","pi
pi-times-circle","styleClass","p-button-plain",3,"label","click"],["icon","pi
pi-check-circle","styleClass","p-button-plain",3,"label","click"],[3,"diseqcTree","diseqcTreeList","dvbComponent","baseEvent"]],template:function(e,n){1&e&&(l(0,"form",0,1)(2,"p-card",2),_(3,Uee,2,3,"ng-templat
e",3),_(4,zee,0,0,"ng-template",4),_(5,Xee,67,89,"ng-template",5),c()())},styles:[""]}),t})();const
ete=["switchform"];function
tte(t,i){1&t&&(g(0),m(1,"translate")),2&t&&T("
",f(1,1,"settings.capture.diseqc.switch.title")," ")}function
nte(t,i){}function
ite(t,i){1&t&&(l(0,"div")(1,"small",27),g(2),m(3,"translate"),c()()),2&t&&(a(2),S(f(3,1,"settings.capture.diseqc.switchports_error")))}function
ste(t,i){if(1&t){const
e=I();l(0,"p-button",33),C("onClick",function(){v(e);const
s=d(2).index;return
d(2).displayDeleteThis[s]=!0}),c()}2&t&&p("disabled",!d(2).$implicit)}function
rte(t,i){if(1&t){const
e=I();l(0,"p-button",34),C("click",function(){v(e);const
s=d(2).index;return
d(2).displayDeleteThis[s]=!1}),m(1,"translate"),c(),l(2,"p-button",35),C("click",function(){v(e);const
s=d(2).index;return
d(2).deleteDiseqc(s)}),m(3,"translate"),c()}2&t&&(x("label",f(1,2,"common.no")),a(2),x("label",f(3,4,"common.yes")))}function
ote(t,i){if(1&t){const
e=I();l(0,"app-lnb",36),C("baseEvent",functi
on(s){return v(e),d(4).setDiseqcObject(s)}),c()}if(2&t){const
e=d(2).$implicit,n=d(2);p("diseqcTree",e)("diseqcTreeList",n.diseqcTreeList)("dvbComponent",n.dvbComponent)}}function
ate(t,i){if(1&t){const
e=I();l(0,"app-rotor",36),C("baseEvent",function(s){return
v(e),d(4).setDiseqcObject(s)}),c()}if(2&t){const
e=d(2).$implicit,n=d(2);p("diseqcTree",e)("diseqcTreeList",n.diseqcTreeList)("dvbComponent",n.dvbComponent)}}function
lte(t,i){if(1&t){const
e=I();l(0,"app-switch",36),C("baseEvent",function(s){return
v(e),d(4).setDiseqcObject(s)}),c()}if(2&t){const
e=d(2).$implicit,n=d(2);p("diseqcTree",e)("diseqcTreeList",n.diseqcTreeList)("dvbComponent",n.dvbComponent)}}function
cte(t,i){if(1&t){const
e=I();l(0,"app-unicable",36),C("baseEvent",function(s){return
v(e),d(4).setDiseqcObject(s)}),c()}if(2&t){const
e=d(2).$implicit,n=d(2);p("diseqcTree",e)("diseqcTreeList",n.diseqcTreeList)("dvbComponent",n.dvbComponent)}}const
MS=function(){return{width:"50vw"}};function ute(t,i){if(1&t){const e
=I();l(0,"p-fieldset",28),m(1,"translate"),_(2,ste,1,1,"p-button",29),l(3,"p-dialog",30),C("visibleChange",function(s){v(e);const
r=d().index;return
d(2).displayDeleteThis[r]=s}),m(4,"translate"),l(5,"h2"),g(6),m(7,"translate"),c(),l(8,"p"),g(9),m(10,"translate"),c(),_(11,rte,4,6,"ng-template",31),c(),_(12,ote,1,3,"app-lnb",32),_(13,ate,1,3,"app-rotor",32),_(14,lte,1,3,"app-switch",32),_(15,cte,1,3,"app-unicable",32),c()}if(2&t){const
e=d(),n=e.$implicit,s=e.index,r=d(2);x("legend",f(1,17,"settings.capture.dvb.satellite_heading")),p("toggleable",!0)("collapsed",!0),a(2),p("ngIf",n),a(1),q(A(25,MS)),x("header",f(4,19,"settings.capture.dvb.satellite_delete_header")),p("visible",r.displayDeleteThis[s])("modal",!0)("draggable",!1)("resizable",!1),a(3),S(f(7,21,"settings.common.ru_sure")),a(3),S(f(10,23,"settings.capture.dvb.satellite_delete_desc")),a(3),p("ngIf",n&&"lnb"==n.Type),a(1),p("ngIf",n&&"rotor"==n.Type),a(1),p("ngIf",n&&"switch"==n.Type),a(1),p("ngIf",n&&"scr"==n.Type)}}functi
on
dte(t,i){if(1&t&&(l(0,"div"),_(1,ute,16,26,"p-fieldset",26),c()),2&t){const
e=i.$implicit;a(1),p("ngIf",e)}}function pte(t,i){if(1&t){const
e=I();l(0,"p-button",40),C("onClick",function(){return
v(e),d(3).work.displayNewDiseqc=!1}),m(1,"translate"),c(),l(2,"p-button",41),C("onClick",function(){return
v(e),d(3).newDiseqc()}),m(3,"translate"),c()}if(2&t){const
e=d(3);x("label",f(1,3,"common.cancel")),a(2),x("label",f(3,5,"common.ok")),p("disabled",e.selectedDiseqcType.inactive)}}function
hte(t,i){if(1&t){const
e=I();l(0,"p-fieldset",28),m(1,"translate"),l(2,"p-button",37),C("onClick",function(){return
v(e),d(2).work.displayNewDiseqc=!0}),m(3,"translate"),c(),l(4,"p-dialog",30),C("visibleChange",function(s){return
v(e),d(2).work.displayNewDiseqc=s}),m(5,"translate"),l(6,"label",38),g(7),m(8,"translate"),c(),l(9,"p-listbox",39),C("ngModelChange",function(s){return
v(e),d(2).selectedDiseqcType=s})("onDblClick",function(){return
v(e),d(2).newDiseqc()}),c(),_(10,pte,4,7,"ng-template",31
),c()()}if(2&t){const
e=d(2);x("legend",f(1,14,"settings.capture.dvb.satellite_heading")),p("toggleable",!0)("collapsed",!1),a(2),x("label",f(3,16,"settings.capture.dvb.newsatellite_button")),a(2),q(A(22,MS)),x("header",f(5,18,"settings.capture.dvb.newsatellite_heading")),p("visible",e.work.displayNewDiseqc)("modal",!0)("draggable",!1)("resizable",!1),a(3),T("
",f(8,20,"settings.capture.dvb.newsatellite_devtype"),"
"),a(2),p("options",e.captureCardService.diseqcTypes)("ngModel",e.selectedDiseqcType)}}const
mte=function(){return{width:"25rem"}},fte=function(){return{minWidth:"80%"}};function
gte(t,i){if(1&t){const
e=I();l(0,"div",6)(1,"div",7)(2,"div",8)(3,"label",9),g(4),m(5,"translate"),c(),l(6,"input",10,11),C("ngModelChange",function(s){return
v(e),d().diseqcTree.Description=s}),c(),l(8,"small",12),g(9),m(10,"translate"),c()(),l(11,"div",8)(12,"label",13),g(13),m(14,"translate"),c(),l(15,"p-inputNumber",14),C("ngModelChange",function(s){return
v(e),d().diseqcTree.CmdRepeat=s}),c(
),l(16,"small",12),k(17,"div",15),m(18,"translate"),c()(),l(19,"div",8)(20,"label",16),g(21),m(22,"translate"),c(),l(23,"p-dropdown",17,18),C("ngModelChange",function(s){return
v(e),d().currentSubType=s})("onChange",function(){return
v(e),d().updateSubType()}),c(),l(25,"small",12),g(26),m(27,"translate"),c()(),l(28,"div",8)(29,"label",19),g(30),m(31,"translate"),c(),l(32,"input",20,21),C("ngModelChange",function(s){return
v(e),d().work.addressText=s}),c(),l(34,"small",12),g(35),m(36,"translate"),c()(),l(37,"div",8)(38,"label",22),g(39),m(40,"translate"),c(),l(41,"p-inputNumber",23),C("ngModelChange",function(s){return
v(e),d().diseqcTree.SwitchPorts=s}),c(),l(42,"small",12),k(43,"div",15),m(44,"translate"),c(),_(45,ite,4,3,"div",24),c(),_(46,dte,2,1,"div",25),_(47,hte,11,23,"p-fieldset",26),c()()}if(2&t){const
e=d();a(4),S(f(5,35,"settings.capture.diseqc.description_label")),a(2),p("ngModel",e.diseqcTree.Description),a(3),T("
",f(10,37,"settings.capture.diseqc.description_desc")," "
),a(4),S(f(14,39,"settings.capture.diseqc.cmdrepeat_label")),a(2),p("ngModel",e.diseqcTree.CmdRepeat)("showButtons",!0)("min",0)("max",15)("step",1),a(2),p("innerHTML",f(18,41,"settings.capture.diseqc.cmdrepeat_desc"),Bt),a(2),q(A(55,mte)),a(2),S(f(22,43,"settings.capture.diseqc.switch.type_label")),a(2),q(A(56,fte)),p("options",e.switchSubTypes)("ngModel",e.currentSubType)("editable",!1)("maxlength",0),a(3),T("
",f(27,45,"settings.capture.diseqc.switch.type_desc"),"
"),a(4),S(f(31,47,"settings.capture.diseqc.address_label")),a(2),p("ngModel",e.work.addressText)("disabled",!e.work.enableAddrAndPorts),a(3),T("
",f(36,49,"settings.capture.diseqc.address_desc"),"
"),a(4),T("
",f(40,51,"settings.capture.diseqc.switchports_label"),"
"),a(2),p("ngModel",e.diseqcTree.SwitchPorts)("showButtons",!0)("min",0)("max",255)("step",1)("disabled",!e.work.enableAddrAndPorts),a(2),p("innerHTML",f(44,53,"settings.capture.diseqc.switchports_desc"),Bt),a(2),p("ngIf",e.diseqcSubTreeCount>e.diseqcTree.Swi
tchPorts),a(1),p("ngForOf",e.diseqcSubTree),a(1),p("ngIf",e.diseqcSubTreeCount<e.diseqcTree.SwitchPorts)}}let
wg=(()=>{class
t{constructor(e,n){this.captureCardService=e,this.translate=n,this.diseqcSubComponent=[],this.baseEvent=new
H,this.switchSubTypes=[{Name:"settings.capture.diseqc.switch.tone",SubType:"tone"},{Name:"settings.capture.diseqc.switch.voltage",SubType:"voltage"},{Name:"settings.capture.diseqc.switch.mini_diseqc",SubType:"mini_diseqc"},{Name:"settings.capture.diseqc.switch.diseqc",SubType:"diseqc"},{Name:"settings.capture.diseqc.switch.diseqc_uncom",SubType:"diseqc_uncom"},{Name:"settings.capture.diseqc.switch.legacy_sw21",SubType:"legacy_sw21"},{Name:"settings.capture.diseqc.switch.legacy_sw42",SubType:"legacy_sw42"},{Name:"settings.capture.diseqc.switch.legacy_sw64",SubType:"legacy_sw64"}],this.diseqcSubTree=[],this.diseqcSubTreeCount=0,this.work={addressText:"",displayNewDiseqc:!1,enableAddrAndPorts:!1},this.displayDeleteThis=[],this.selectedDiseqcType={descriptio
n:"",type:"",inactive:!0},this.setupDone=!1,this.switchSubTypes.forEach(s=>n.get(s.Name).subscribe(r=>s.Name=r))}ngOnInit(){if(this.diseqcTree.DiSEqCId?this.work.addressText="0x"+this.diseqcTree.Address.toString(16):(this.diseqcTree.Address=16,this.work.addressText="0x10",this.diseqcTree.SwitchPorts=2,this.diseqcTree.SubType="tone",this.diseqcTree.CmdRepeat=1),this.diseqcTree.SubType){let
e=this.switchSubTypes.find(n=>n.SubType==this.diseqcTree.SubType);e&&(this.currentSubType=e)}this.updateSubType(),this.displayDeleteThis=[],this.diseqcTreeList.DiseqcTreeList.DiseqcTrees.forEach(e=>{e.ParentId==this.diseqcTree.DiSEqCId&&(this.diseqcSubTree.push(e),this.displayDeleteThis.push(!1),this.diseqcSubTreeCount++)})}ngAfterViewInit(){this.baseEvent.emit(this),this.currentForm.valueChanges.subscribe(n=>{this.setupDone&&this.currentForm.dirty&&this.dvbComponent.currentForm.form.markAsDirty()}),new
Je(n=>{setTimeout(()=>{n.next(1),n.complete()},100)}).subscribe(n=>{this.setupDone=!0,this.diseq
cTree.DiSEqCId?this.currentForm.form.markAsPristine():(this.currentForm.form.markAsDirty(),this.dvbComponent.currentForm.form.markAsDirty())})}newDiseqc(){this.work.displayNewDiseqc=!1,this.diseqcSubTree.push({Type:this.selectedDiseqcType.type,Description:this.selectedDiseqcType.description}),this.displayDeleteThis.push(!1),this.diseqcSubTreeCount++}setDiseqcObject(e){this.diseqcSubComponent.findIndex(s=>s===e)<0&&this.diseqcSubComponent.push(e),console.log("setDiseqcObject",this.diseqcSubComponent.length)}deleteDiseqc(e){this.displayDeleteThis[e]=!1,this.dvbComponent.work.errorCount=0,console.log("Delete",e),null!=this.diseqcSubTree[e]&&(this.diseqcSubTree[e].DiSEqCId&&this.captureCardService.DeleteDiseqcTree(this.diseqcSubTree[e].DiSEqCId).subscribe({next:n=>{n.bool||(console.log("DeleteDiseqcTree",n),this.dvbComponent.work.errorCount++)},error:n=>{console.log("DeleteDiseqcTree",n),this.dvbComponent.work.errorCount++}}),0==this.dvbComponent.work.errorCount&&(this.diseqcSubTree[e]=
null,this.diseqcSubTreeCount--))}updateSubType(){switch(this.diseqcTree.SubType=this.currentSubType.SubType,this.diseqcTree.SubType){case"tone":case"voltage":case"mini_diseqc":case"legacy_sw21":case"legacy_sw42":this.work.addressText="0x10",this.diseqcTree.SwitchPorts=2,this.work.enableAddrAndPorts=!1;break;case"legacy_sw64":this.work.addressText="0x10",this.diseqcTree.SwitchPorts=3,this.work.enableAddrAndPorts=!1;break;case"diseqc_uncom":case"diseqc":this.work.enableAddrAndPorts=!0}}saveForm(e,n){this.diseqcTree.ParentId=e,this.diseqcTree.Address=Number.parseInt(this.work.addressText),this.diseqcTree.DiSEqCId?(this.captureCardService.UpdateDiseqcTree(this.diseqcTree).subscribe(n),this.diseqcSubComponent.forEach(s=>{s&&s.saveForm(this.diseqcTree.DiSEqCId,{error:r=>{n.error(r)}})})):this.captureCardService.AddDiseqcTree(this.diseqcTree).subscribe({next:s=>{s.int&&s.int>0?(this.diseqcTree.DiSEqCId=s.int,n.next&&n.next(s),this.diseqcSubComponent.forEach(r=>{r&&r.saveForm(this.diseqcTre
e.DiSEqCId,{next:o=>{},error:o=>{n.error(o)}})})):(console.log("UpdateDiseqcTree",s),n.error(s))},error:s=>{console.log("UpdateDiseqcTree",s),n.error(s)}})}}return
t.\u0275fac=function(e){return
new(e||t)(D(Gt),D(Oe))},t.\u0275cmp=z({type:t,selectors:[["app-switch"]],viewQuery:function(e,n){if(1&e&&W(ete,5),2&e){let
s;V(s=B())&&(n.currentForm=s.first)}},inputs:{diseqcTree:"diseqcTree",diseqcTreeList:"diseqcTreeList",dvbComponent:"dvbComponent"},outputs:{baseEvent:"baseEvent"},decls:6,vars:0,consts:[["name","switchform",1,"ml-3","mr-3"],["switchform","ngForm"],[1,"m-5"],["pTemplate","title"],["pTemplate","subtitle"],["pTemplate","content"],[1,"grid"],[1,"mb-4","w-full"],[1,"form-group","field"],["for","Description",1,"label","block"],["pInputText","","id","ip","name","Description",1,"mb-2","form-control","w-full",3,"ngModel","ngModelChange"],["Description","ngModel"],[1,"block"],["for","CmdRepeat",1,"label","block"],["name","CmdRepeat","id","CmdRepeat",3,"ngModel","showButtons","min"
,"max","step","ngModelChange"],[3,"innerHTML"],["for","SubType",1,"label","block"],["optionLabel","Name","name","SubType",3,"options","ngModel","editable","maxlength","ngModelChange","onChange"],["SubType","ngModel"],["for","Address",1,"label","block"],["pInputText","","id","Address","name","Address",1,"mb-2","form-control","w-full",3,"ngModel","disabled","ngModelChange"],["Address","ngModel"],["for","SwitchPorts",1,"label","block"],["name","SwitchPorts","id","SwitchPorts",3,"ngModel","showButtons","min","max","step","disabled","ngModelChange"],[4,"ngIf"],[4,"ngFor","ngForOf"],["class","mb-4
w-full",3,"legend","toggleable","collapsed",4,"ngIf"],[1,"p-error","block"],[1,"mb-4","w-full",3,"legend","toggleable","collapsed"],["styleClass","p-button-warning","label","Delete
Satellite Devices","icon","pi
pi-trash",3,"disabled","onClick",4,"ngIf"],[3,"header","visible","modal","draggable","resizable","visibleChange"],["pTemplate","footer"],[3,"diseqcTree","diseqcTreeList","dvbComponent","b
aseEvent",4,"ngIf"],["styleClass","p-button-warning","label","Delete
Satellite Devices","icon","pi
pi-trash",3,"disabled","onClick"],["icon","pi
pi-times-circle","styleClass","p-button-plain",3,"label","click"],["icon","pi
pi-check-circle","styleClass","p-button-plain",3,"label","click"],[3,"diseqcTree","diseqcTreeList","dvbComponent","baseEvent"],["icon","pi
pi-plus-circle","styleClass","p-button-plain",3,"label","onClick"],["for","disenqcTypes",1,"label","block"],["optionLabel","description","name","disenqcTypes","optionDisabled","inactive",3,"options","ngModel","ngModelChange","onDblClick"],["icon","pi
pi-times-circle","styleClass","p-button-plain",3,"label","onClick"],["icon","pi
pi-check-circle","styleClass","p-button-plain",3,"label","disabled","onClick"]],template:function(e,n){1&e&&(l(0,"form",0,1)(2,"p-card",2),_(3,tte,2,3,"ng-template",3),_(4,nte,0,0,"ng-template",4),_(5,gte,48,57,"ng-template",5),c()())},directives:[ze,Ue,He,Ne,ne,Ye,Te,_e,pt,Ot,_n,Q,at,Ui,ve,bn,kd,Al,t,P
l,os],pipes:[ce],styles:[""]}),t})();const
_te=["externalform"],bte=["top"];function
vte(t,i){1&t&&(g(0),m(1,"translate")),2&t&&T("
",f(1,1,"settings.capture.external.title")," ")}function
Cte(t,i){}function yte(t,i){if(1&t){const
e=I();l(0,"div",8)(1,"div",9)(2,"div",10)(3,"label",11),g(4),m(5,"translate"),c(),l(6,"input",12,13),C("ngModelChange",function(s){return
v(e),d().card.VideoDevice=s}),c(),l(8,"small",14),g(9),m(10,"translate"),c()(),l(11,"div",10)(12,"label",15),g(13),m(14,"translate"),c(),l(15,"p-inputNumber",16),C("ngModelChange",function(s){return
v(e),d().card.ChannelTimeout=s}),c(),l(16,"small",14),g(17),m(18,"translate"),c()()()()}if(2&t){const
e=d();a(4),S(f(5,10,"settings.capture.external.command_label")),a(2),p("ngModel",e.card.VideoDevice),a(3),T("
",f(10,12,"settings.capture.external.command_desc"),"
"),a(4),S(f(14,14,"settings.capture.tunetimeout_label")),a(2),p("ngModel",e.card.ChannelTimeout)("showButtons",!0)("min",1750)("max",65e3)("step",250),a(2),T("
",f
(18,16,"settings.capture.tunetimeout_desc")," ")}}function
wte(t,i){1&t&&(k(0,"p-message",22),m(1,"translate")),2&t&&x("text",f(1,1,"common.savesuccess"))}function
Tte(t,i){1&t&&(k(0,"p-message",23),m(1,"translate")),2&t&&x("text",f(1,1,"common.networkfail"))}function
Ste(t,i){if(1&t){const
e=I();l(0,"div",17)(1,"div",18),_(2,wte,2,3,"p-message",19),_(3,Tte,2,3,"p-message",20),c(),l(4,"p-button",21),C("onClick",function(){v(e);const
s=d(),r=F(1);return
s.saveForm(),r.form.markAsPristine()}),m(5,"translate"),c()()}if(2&t){const
e=d(),n=F(1);a(2),p("ngIf",e.work.successCount>0&&0==e.work.errorCount&&!n.dirty),a(1),p("ngIf",e.work.errorCount>0),a(1),x("label",f(5,4,"common.save")),p("disabled",!n.dirty||!e.card.VideoDevice||e.setupService.schedulingEnabled)}}let
xte=(()=>{class
t{constructor(e,n){this.captureCardService=e,this.setupService=n,this.work={successCount:0,errorCount:0},this.saveObserver={next:s=>{this.card.CardId&&s.bool?this.work.successCount++:!this.card.CardId&&s.int?(th
is.work.successCount++,this.card.CardId=s.int):(this.work.errorCount++,this.currentForm.form.markAsDirty())},error:s=>{console.error(s),this.work.errorCount++,this.currentForm.form.markAsDirty()}}}ngOnInit(){}ngAfterViewInit(){this.setupService.setCurrentForm(this.currentForm),this.topElement.nativeElement.scrollIntoView({behavior:"smooth",block:"start"})}saveForm(){this.work.successCount=0,this.work.errorCount=0,this.card.CardId?this.cardList.CaptureCardList.CaptureCards.forEach(e=>{(e.CardId==this.card.CardId||e.ParentId==this.card.CardId)&&(this.captureCardService.UpdateCaptureCard(e.CardId,"videodevice",this.card.VideoDevice).subscribe(this.saveObserver),this.captureCardService.UpdateCaptureCard(e.CardId,"channel_timeout",String(this.card.ChannelTimeout)).subscribe(this.saveObserver))}):this.captureCardService.AddCaptureCard(this.card).subscribe(this.saveObserver)}}return
t.\u0275fac=function(e){return
new(e||t)(D(Gt),D(Me))},t.\u0275cmp=z({type:t,selectors:[["app-external"]],vi
ewQuery:function(e,n){if(1&e&&(W(_te,5),W(bte,5)),2&e){let
s;V(s=B())&&(n.currentForm=s.first),V(s=B())&&(n.topElement=s.first)}},inputs:{card:"card",cardList:"cardList"},decls:9,vars:0,consts:[["name","externalform",1,"ml-3","mr-3"],["externalform","ngForm"],["top",""],[1,"m-5"],["pTemplate","title"],["pTemplate","subtitle"],["pTemplate","content"],["pTemplate","footer"],[1,"grid"],[1,"mb-4","w-full"],[1,"form-group","field"],["for","VideoDevice",1,"label","block"],["pInputText","","id","VideoDevice","name","VideoDevice",1,"mb-2","form-control","w-full",3,"ngModel","ngModelChange"],["VideoDevice","ngModel"],[1,"block"],["for","ChannelTimeout",1,"label","block"],["name","ChannelTimeout","id","ChannelTimeout",3,"ngModel","showButtons","min","max","step","ngModelChange"],[1,"grid","nogutter"],[1,"col-12"],["severity","success",3,"text",4,"ngIf"],["severity","error",3,"text",4,"ngIf"],["icon","pi
pi-save","iconPos","left",1,"col","pr-1",3,"label","disabled","onClick"],["severity","succ
ess",3,"text"],["severity","error",3,"text"]],template:function(e,n){1&e&&(l(0,"form",0,1),k(2,"span",null,2),l(4,"p-card",3),_(5,vte,2,3,"ng-template",4),_(6,Cte,0,0,"ng-template",5),_(7,yte,19,18,"ng-template",6),_(8,Ste,6,6,"ng-template",7),c()())},directives:[ze,Ue,He,Ne,ne,Ye,Te,_e,pt,Q,qe,ve],pipes:[ce],styles:[""]}),t})();const
Dte=["hdhomerunform"],Mte=["top"];function
kte(t,i){1&t&&(g(0),m(1,"translate")),2&t&&T("
",f(1,1,"settings.capture.hdhomerun.title")," ")}function
Ite(t,i){}function Ete(t,i){if(1&t){const
e=I();l(0,"p-listbox",20,21),C("ngModelChange",function(s){return
v(e),d(2).selectedDevices=s})("onChange",function(){return
v(e),d(2).updateDevices()}),c()}if(2&t){const
e=d(2);p("options",e.captureDeviceList.CaptureDeviceList.CaptureDevices)("ngModel",e.selectedDevices)("checkbox",!0)("showToggleAll",!1)("multiple",!0)}}const
Rte=function(){return{width:"30rem"}};function Lte(t,i){if(1&t){const
e=I();l(0,"div",8)(1,"div",9)(2,"div",10)(3,"label",11),g(4),m(5,"tran
slate"),c(),l(6,"div"),_(7,Ete,2,5,"p-listbox",12),l(8,"small",13),g(9),m(10,"translate"),c()()(),l(11,"div",10)(12,"label",14),g(13),m(14,"translate"),c(),l(15,"p-inputNumber",15),C("ngModelChange",function(s){return
v(e),d().card.SignalTimeout=s}),c(),l(16,"small",13),g(17),m(18,"translate"),c()(),l(19,"div",10)(20,"label",16),g(21),m(22,"translate"),c(),l(23,"p-inputNumber",17),C("ngModelChange",function(s){return
v(e),d().card.ChannelTimeout=s}),c(),l(24,"small",13),g(25),m(26,"translate"),c()(),l(27,"div",10)(28,"p-checkbox",18,19),C("ngModelChange",function(s){return
v(e),d().card.DVBEITScan=s}),m(30,"translate"),c(),l(31,"small",13),g(32),m(33,"translate"),c()()()()}if(2&t){const
e=d();a(4),S(f(5,23,"settings.capture.hdhomerun.device_label")),a(2),q(A(39,Rte)),a(1),p("ngIf",e.work.isReady),a(2),T("
",f(10,25,"settings.capture.hdhomerun.device_desc"),"
"),a(4),S(f(14,27,"settings.capture.sigtimeout_label")),a(2),p("ngModel",e.card.SignalTimeout)("showButtons",!0)("min",250)("m
ax",6e4)("step",250),a(2),T("
",f(18,29,"settings.capture.sigtimeout_desc"),"
"),a(4),S(f(22,31,"settings.capture.tunetimeout_label")),a(2),p("ngModel",e.card.ChannelTimeout)("showButtons",!0)("min",1750)("max",65e3)("step",250),a(2),T("
",f(26,33,"settings.capture.tunetimeout_desc"),"
"),a(3),x("label",f(30,35,"settings.capture.hdhomerun.eitscan_label")),p("ngModel",e.card.DVBEITScan)("binary",!0),a(4),T("
",f(33,37,"settings.capture.dvb.eitscan_ldesc")," ")}}function
Ote(t,i){1&t&&(k(0,"p-message",27),m(1,"translate")),2&t&&x("text",f(1,1,"common.savesuccess"))}function
Ate(t,i){1&t&&(k(0,"p-message",28),m(1,"translate")),2&t&&x("text",f(1,1,"common.networkfail"))}function
Pte(t,i){if(1&t){const
e=I();l(0,"div",22)(1,"div",23),_(2,Ote,2,3,"p-message",24),_(3,Ate,2,3,"p-message",25),c(),l(4,"p-button",26),C("onClick",function(){v(e);const
s=d(),r=F(1);return
s.saveForm(),r.form.markAsPristine()}),m(5,"translate"),c()()}if(2&t){const
e=d(),n=F(1);a(2),p("ngIf",e.work.successCount>0&
&0==e.work.errorCount&&!n.dirty),a(1),p("ngIf",e.work.errorCount>0),a(1),x("label",f(5,4,"common.save")),p("disabled",!n.dirty||!e.card.VideoDevice||e.setupService.schedulingEnabled)}}let
Fte=(()=>{class
t{constructor(e,n){this.captureCardService=e,this.setupService=n,this.work={isReady:!1,successCount:0,errorCount:0},this.captureDeviceList={CaptureDeviceList:{CaptureDevices:[]}},this.selectedDevices=[],this.saveObserver={next:s=>{this.card.CardId&&s.bool?this.work.successCount++:!this.card.CardId&&s.int?(this.work.successCount++,this.card.CardId=s.int):(this.work.errorCount++,this.currentForm.form.markAsDirty())},error:s=>{console.error(s),this.work.errorCount++,this.currentForm.form.markAsDirty()}}}ngOnInit(){this.captureCardService.GetCaptureDeviceList("HDHOMERUN").subscribe({next:e=>{this.captureDeviceList=e,this.setupDevices()},error:e=>{console.log("GetCaptureDeviceList",e),this.work.errorCount++}})}ngAfterViewInit(){this.setupService.setCurrentForm(this.currentForm),this.topE
lement.nativeElement.scrollIntoView({behavior:"smooth",block:"start"})}setupDevices(){this.card.VideoDevice&&this.card.VideoDevice.split(",").forEach(n=>{const
s=this.captureDeviceList.CaptureDeviceList.CaptureDevices.find(r=>n==r.VideoDevice.split("
")[0]);s&&this.selectedDevices.push(s)}),this.work.isReady=!0}updateDevices(){let
e="",n=[];this.selectedDevices.forEach(s=>{n.push(s.VideoDevice.split("
")[0]),this.card.SignalTimeout=s.SignalTimeout,this.card.ChannelTimeout=s.ChannelTimeout}),n.sort(),console.log(n),n.forEach(s=>{e&&(e+=","),e+=s}),this.card.VideoDevice=e}saveForm(){console.log("save
form
clicked"),this.work.successCount=0,this.work.errorCount=0,this.card.CardId?this.cardList.CaptureCardList.CaptureCards.forEach(e=>{(e.CardId==this.card.CardId||e.ParentId==this.card.CardId)&&(this.captureCardService.UpdateCaptureCard(e.CardId,"videodevice",this.card.VideoDevice).subscribe(this.saveObserver),this.captureCardService.UpdateCaptureCard(e.CardId,"signal_timeout",String(thi
s.card.SignalTimeout)).subscribe(this.saveObserver),this.captureCardService.UpdateCaptureCard(e.CardId,"channel_timeout",String(this.card.ChannelTimeout)).subscribe(this.saveObserver),this.captureCardService.UpdateCaptureCard(e.CardId,"dvb_eitscan",String(this.card.DVBEITScan?"1":"0")).subscribe(this.saveObserver))}):this.captureCardService.AddCaptureCard(this.card).subscribe(this.saveObserver)}}return
t.\u0275fac=function(e){return
new(e||t)(D(Gt),D(Me))},t.\u0275cmp=z({type:t,selectors:[["app-hdhomerun"]],viewQuery:function(e,n){if(1&e&&(W(Dte,5),W(Mte,5)),2&e){let
s;V(s=B())&&(n.currentForm=s.first),V(s=B())&&(n.topElement=s.first)}},inputs:{card:"card",cardList:"cardList"},decls:9,vars:0,consts:[["name","hdhomerunform",1,"ml-3","mr-3"],["hdhomerunform","ngForm"],["top",""],[1,"m-5"],["pTemplate","title"],["pTemplate","subtitle"],["pTemplate","content"],["pTemplate","footer"],[1,"grid"],[1,"mb-4","w-full"],[1,"form-group","field"],["for","VideoDevice",1,"label","block"],["optionL
abel","VideoDevice","name","VideoDevice",3,"options","ngModel","checkbox","showToggleAll","multiple","ngModelChange","onChange",4,"ngIf"],[1,"block"],["for","SignalTimeout",1,"label","block"],["name","SignalTimeout","id","SignalTimeout",3,"ngModel","showButtons","min","max","step","ngModelChange"],["for","ChannelTimeout",1,"label","block"],["name","ChannelTimeout","id","ChannelTimeout",3,"ngModel","showButtons","min","max","step","ngModelChange"],["inputId","DVBEITScan","name","DVBEITScan",1,"label","mb-2","w-full",3,"ngModel","binary","label","ngModelChange"],["DVBEITScan","ngModel"],["optionLabel","VideoDevice","name","VideoDevice",3,"options","ngModel","checkbox","showToggleAll","multiple","ngModelChange","onChange"],["VideoDevice","ngModel"],[1,"grid","nogutter"],[1,"col-12"],["severity","success",3,"text",4,"ngIf"],["severity","error",3,"text",4,"ngIf"],["icon","pi
pi-save","iconPos","left",1,"col","pr-1",3,"label","disabled","onClick"],["severity","success",3,"text"],["severit
y","error",3,"text"]],template:function(e,n){1&e&&(l(0,"form",0,1),k(2,"span",null,2),l(4,"p-card",3),_(5,kte,2,3,"ng-template",4),_(6,Ite,0,0,"ng-template",5),_(7,Lte,34,40,"ng-template",6),_(8,Pte,6,6,"ng-template",7),c()())},directives:[ze,Ue,He,Ne,ne,Q,os,Te,_e,pt,sn,qe,ve],pipes:[ce],styles:[""]}),t})();const
Nte=["iptvform"],Vte=["top"];function
Bte(t,i){1&t&&(g(0),m(1,"translate")),2&t&&T("
",f(1,1,"settings.capture.iptv.title")," ")}function
Hte(t,i){}function qte(t,i){if(1&t){const
e=I();l(0,"div",8)(1,"div",9)(2,"div",10)(3,"label",11),g(4),m(5,"translate"),c(),l(6,"input",12,13),C("ngModelChange",function(s){return
v(e),d().card.VideoDevice=s}),c(),l(8,"small",14),g(9),m(10,"translate"),c()(),l(11,"div",10)(12,"label",15),g(13),m(14,"translate"),c(),l(15,"p-inputNumber",16),C("ngModelChange",function(s){return
v(e),d().card.ChannelTimeout=s}),c(),l(16,"small",14),g(17),m(18,"translate"),c()()()()}if(2&t){const
e=d();a(4),S(f(5,10,"settings.capture.iptv.url_label")),a(2),p
("ngModel",e.card.VideoDevice),a(3),T("
",f(10,12,"settings.capture.iptv.url_desc"),"
"),a(4),S(f(14,14,"settings.capture.tunetimeout_label")),a(2),p("ngModel",e.card.ChannelTimeout)("showButtons",!0)("min",1750)("max",65e3)("step",250),a(2),T("
",f(18,16,"settings.capture.tunetimeout_desc")," ")}}function
Gte(t,i){1&t&&(k(0,"p-message",22),m(1,"translate")),2&t&&x("text",f(1,1,"common.savesuccess"))}function
Ute(t,i){1&t&&(k(0,"p-message",23),m(1,"translate")),2&t&&x("text",f(1,1,"common.networkfail"))}function
zte(t,i){if(1&t){const
e=I();l(0,"div",17)(1,"div",18),_(2,Gte,2,3,"p-message",19),_(3,Ute,2,3,"p-message",20),c(),l(4,"p-button",21),C("onClick",function(){v(e);const
s=d(),r=F(1);return
s.saveForm(),r.form.markAsPristine()}),m(5,"translate"),c()()}if(2&t){const
e=d(),n=F(1);a(2),p("ngIf",e.work.successCount>0&&0==e.work.errorCount&&!n.dirty),a(1),p("ngIf",e.work.errorCount>0),a(1),x("label",f(5,4,"common.save")),p("disabled",!n.dirty||!e.card.VideoDevice||e.setupService.sc
hedulingEnabled)}}let jte=(()=>{class
t{constructor(e,n){this.captureCardService=e,this.setupService=n,this.work={successCount:0,errorCount:0},this.saveObserver={next:s=>{this.card.CardId&&s.bool?this.work.successCount++:!this.card.CardId&&s.int?(this.work.successCount++,this.card.CardId=s.int):(this.work.errorCount++,this.currentForm.form.markAsDirty())},error:s=>{console.error(s),this.work.errorCount++,this.currentForm.form.markAsDirty()}}}ngOnInit(){}ngAfterViewInit(){this.setupService.setCurrentForm(this.currentForm),this.topElement.nativeElement.scrollIntoView({behavior:"smooth",block:"start"}),this.card.CardId||new
Je(n=>{setTimeout(()=>{n.next(1),n.complete()},100)}).subscribe(n=>{this.currentForm.form.markAsDirty()})}saveForm(){console.log("save
form
clicked"),this.work.successCount=0,this.work.errorCount=0,this.card.CardId?this.cardList.CaptureCardList.CaptureCards.forEach(e=>{(e.CardId==this.card.CardId||e.ParentId==this.card.CardId)&&(this.captureCardService.UpdateCapture
Card(e.CardId,"videodevice",this.card.VideoDevice).subscribe(this.saveObserver),this.captureCardService.UpdateCaptureCard(e.CardId,"channel_timeout",String(this.card.ChannelTimeout)).subscribe(this.saveObserver))}):this.captureCardService.AddCaptureCard(this.card).subscribe(this.saveObserver)}}return
t.\u0275fac=function(e){return
new(e||t)(D(Gt),D(Me))},t.\u0275cmp=z({type:t,selectors:[["app-iptv"]],viewQuery:function(e,n){if(1&e&&(W(Nte,5),W(Vte,5)),2&e){let
s;V(s=B())&&(n.currentForm=s.first),V(s=B())&&(n.topElement=s.first)}},inputs:{card:"card",cardList:"cardList"},decls:9,vars:0,consts:[["name","iptvform",1,"ml-3","mr-3"],["iptvform","ngForm"],["top",""],[1,"m-5"],["pTemplate","title"],["pTemplate","subtitle"],["pTemplate","content"],["pTemplate","footer"],[1,"grid"],[1,"mb-4","w-full"],[1,"form-group","field"],["for","VideoDevice",1,"label","block"],["pInputText","","id","VideoDevice","name","VideoDevice",1,"mb-2","form-control","w-full",3,"ngModel","ngModelChange"],["VideoDe
vice","ngModel"],[1,"block"],["for","ChannelTimeout",1,"label","block"],["name","ChannelTimeout","id","ChannelTimeout",3,"ngModel","showButtons","min","max","step","ngModelChange"],[1,"grid","nogutter"],[1,"col-12"],["severity","success",3,"text",4,"ngIf"],["severity","error",3,"text",4,"ngIf"],["icon","pi
pi-save","iconPos","left",1,"col","pr-1",3,"label","disabled","onClick"],["severity","success",3,"text"],["severity","error",3,"text"]],template:function(e,n){1&e&&(l(0,"form",0,1),k(2,"span",null,2),l(4,"p-card",3),_(5,Bte,2,3,"ng-template",4),_(6,Hte,0,0,"ng-template",5),_(7,qte,19,18,"ng-template",6),_(8,zte,6,6,"ng-template",7),c()())},directives:[ze,Ue,He,Ne,ne,Ye,Te,_e,pt,Q,qe,ve],pipes:[ce],styles:[""]}),t})();const
$te=["importform"],Wte=["top"];function
Kte(t,i){1&t&&(g(0),m(1,"translate")),2&t&&T("
",f(1,1,"settings.capture.import.title")," ")}function
Qte(t,i){}function Jte(t,i){if(1&t){const
e=I();l(0,"div",8)(1,"div",9)(2,"div",10)(3,"label",11),g(4),m(5,"translate"),
c(),l(6,"input",12,13),C("ngModelChange",function(s){return
v(e),d().card.VideoDevice=s}),c(),l(8,"small",14),g(9),m(10,"translate"),c()()()()}if(2&t){const
e=d();a(4),S(f(5,3,"settings.capture.import.file_label")),a(2),p("ngModel",e.card.VideoDevice),a(3),T("
",f(10,5,"settings.capture.import.file_desc")," ")}}function
Yte(t,i){1&t&&(k(0,"p-message",20),m(1,"translate")),2&t&&x("text",f(1,1,"common.savesuccess"))}function
Zte(t,i){1&t&&(k(0,"p-message",21),m(1,"translate")),2&t&&x("text",f(1,1,"common.networkfail"))}function
Xte(t,i){if(1&t){const
e=I();l(0,"div",15)(1,"div",16),_(2,Yte,2,3,"p-message",17),_(3,Zte,2,3,"p-message",18),c(),l(4,"p-button",19),C("onClick",function(){v(e);const
s=d(),r=F(1);return
s.saveForm(),r.form.markAsPristine()}),m(5,"translate"),c()()}if(2&t){const
e=d(),n=F(1);a(2),p("ngIf",e.work.successCount>0&&0==e.work.errorCount&&!n.dirty),a(1),p("ngIf",e.work.errorCount>0),a(1),x("label",f(5,4,"common.save")),p("disabled",!n.dirty||!e.card.VideoDevice||e.s
etupService.schedulingEnabled)}}let ene=(()=>{class
t{constructor(e,n){this.captureCardService=e,this.setupService=n,this.work={successCount:0,errorCount:0},this.saveObserver={next:s=>{this.card.CardId&&s.bool?this.work.successCount++:!this.card.CardId&&s.int?(this.work.successCount++,this.card.CardId=s.int):(this.work.errorCount++,this.currentForm.form.markAsDirty())},error:s=>{console.error(s),this.work.errorCount++,this.currentForm.form.markAsDirty()}}}ngOnInit(){}ngAfterViewInit(){this.setupService.setCurrentForm(this.currentForm),this.topElement.nativeElement.scrollIntoView({behavior:"smooth",block:"start"})}saveForm(){console.log("save
form
clicked"),this.work.successCount=0,this.work.errorCount=0,this.card.CardId?this.cardList.CaptureCardList.CaptureCards.forEach(e=>{(e.CardId==this.card.CardId||e.ParentId==this.card.CardId)&&this.captureCardService.UpdateCaptureCard(e.CardId,"videodevice",this.card.VideoDevice).subscribe(this.saveObserver)}):this.captureCardService.AddCaptur
eCard(this.card).subscribe(this.saveObserver)}}return t.\u0275fac=function(e){return
new(e||t)(D(Gt),D(Me))},t.\u0275cmp=z({type:t,selectors:[["app-import"]],viewQuery:function(e,n){if(1&e&&(W($te,5),W(Wte,5)),2&e){let
s;V(s=B())&&(n.currentForm=s.first),V(s=B())&&(n.topElement=s.first)}},inputs:{card:"card",cardList:"cardList"},decls:9,vars:0,consts:[["name","importform",1,"ml-3","mr-3"],["importform","ngForm"],["top",""],[1,"m-5"],["pTemplate","title"],["pTemplate","subtitle"],["pTemplate","content"],["pTemplate","footer"],[1,"grid"],[1,"mb-4","w-full"],[1,"form-group","field"],["for","VideoDevice",1,"label","block"],["pInputText","","id","VideoDevice","name","VideoDevice",1,"mb-2","form-control","w-full",3,"ngModel","ngModelChange"],["VideoDevice","ngModel"],[1,"block"],[1,"grid","nogutter"],[1,"col-12"],["severity","success",3,"text",4,"ngIf"],["severity","error",3,"text",4,"ngIf"],["icon","pi
pi-save","iconPos","left",1,"col","pr-1",3,"label","disabled","onClick"],["severity","
success",3,"text"],["severity","error",3,"text"]],template:function(e,n){1&e&&(l(0,"form",0,1),k(2,"span",null,2),l(4,"p-card",3),_(5,Kte,2,3,"ng-template",4),_(6,Qte,0,0,"ng-template",5),_(7,Jte,11,7,"ng-template",6),_(8,Xte,6,6,"ng-template",7),c()())},directives:[ze,Ue,He,Ne,ne,Ye,Te,_e,Q,qe,ve],pipes:[ce],styles:[""]}),t})();const
tne=["demoform"],nne=["top"];function
ine(t,i){1&t&&(g(0),m(1,"translate")),2&t&&T("
",f(1,1,"settings.capture.demo.title")," ")}function
sne(t,i){}function rne(t,i){if(1&t){const
e=I();l(0,"div",8)(1,"div",9)(2,"div",10)(3,"label",11),g(4),m(5,"translate"),c(),l(6,"input",12,13),C("ngModelChange",function(s){return
v(e),d().card.VideoDevice=s}),c(),l(8,"small",14),g(9),m(10,"translate"),c()()()()}if(2&t){const
e=d();a(4),S(f(5,3,"settings.capture.import.file_label")),a(2),p("ngModel",e.card.VideoDevice),a(3),T("
",f(10,5,"settings.capture.demo.file_desc")," ")}}function
one(t,i){1&t&&(k(0,"p-message",20),m(1,"translate")),2&t&&x("text",f(1,1,"common.s
avesuccess"))}function
ane(t,i){1&t&&(k(0,"p-message",21),m(1,"translate")),2&t&&x("text",f(1,1,"common.networkfail"))}function
lne(t,i){if(1&t){const
e=I();l(0,"div",15)(1,"div",16),_(2,one,2,3,"p-message",17),_(3,ane,2,3,"p-message",18),c(),l(4,"p-button",19),C("onClick",function(){v(e);const
s=d(),r=F(1);return
s.saveForm(),r.form.markAsPristine()}),m(5,"translate"),c()()}if(2&t){const
e=d(),n=F(1);a(2),p("ngIf",e.work.successCount>0&&0==e.work.errorCount&&!n.dirty),a(1),p("ngIf",e.work.errorCount>0),a(1),x("label",f(5,4,"common.save")),p("disabled",!n.dirty||!e.card.VideoDevice||e.setupService.schedulingEnabled)}}let
cne=(()=>{class
t{constructor(e,n){this.captureCardService=e,this.setupService=n,this.work={successCount:0,errorCount:0},this.saveObserver={next:s=>{this.card.CardId&&s.bool?this.work.successCount++:!this.card.CardId&&s.int?(this.work.successCount++,this.card.CardId=s.int):(this.work.errorCount++,this.currentForm.form.markAsDirty())},error:s=>{console.error(s),this.
work.errorCount++,this.currentForm.form.markAsDirty()}}}ngOnInit(){}ngAfterViewInit(){this.setupService.setCurrentForm(this.currentForm),this.topElement.nativeElement.scrollIntoView({behavior:"smooth",block:"start"})}saveForm(){console.log("save
form
clicked"),this.work.successCount=0,this.work.errorCount=0,this.card.CardId?this.cardList.CaptureCardList.CaptureCards.forEach(e=>{(e.CardId==this.card.CardId||e.ParentId==this.card.CardId)&&this.captureCardService.UpdateCaptureCard(e.CardId,"videodevice",this.card.VideoDevice).subscribe(this.saveObserver)}):this.captureCardService.AddCaptureCard(this.card).subscribe(this.saveObserver)}}return
t.\u0275fac=function(e){return
new(e||t)(D(Gt),D(Me))},t.\u0275cmp=z({type:t,selectors:[["app-demo"]],viewQuery:function(e,n){if(1&e&&(W(tne,5),W(nne,5)),2&e){let
s;V(s=B())&&(n.currentForm=s.first),V(s=B())&&(n.topElement=s.first)}},inputs:{card:"card",cardList:"cardList"},decls:9,vars:0,consts:[["name","demoform",1,"ml-3","mr-3"],["demoform","ngF
orm"],["top",""],[1,"m-5"],["pTemplate","title"],["pTemplate","subtitle"],["pTemplate","content"],["pTemplate","footer"],[1,"grid"],[1,"mb-4","w-full"],[1,"form-group","field"],["for","VideoDevice",1,"label","block"],["pInputText","","id","VideoDevice","name","VideoDevice",1,"mb-2","form-control","w-full",3,"ngModel","ngModelChange"],["VideoDevice","ngModel"],[1,"block"],[1,"grid","nogutter"],[1,"col-12"],["severity","success",3,"text",4,"ngIf"],["severity","error",3,"text",4,"ngIf"],["icon","pi
pi-save","iconPos","left",1,"col","pr-1",3,"label","disabled","onClick"],["severity","success",3,"text"],["severity","error",3,"text"]],template:function(e,n){1&e&&(l(0,"form",0,1),k(2,"span",null,2),l(4,"p-card",3),_(5,ine,2,3,"ng-template",4),_(6,sne,0,0,"ng-template",5),_(7,rne,11,7,"ng-template",6),_(8,lne,6,6,"ng-template",7),c()())},directives:[ze,Ue,He,Ne,ne,Ye,Te,_e,Q,qe,ve],pipes:[ce],styles:[""]}),t})();const
une=["connform"];function
dne(t,i){1&t&&(g(0),m(1,"translate")),2&t&&T("
",f(1,1,"settings.iconnection.title")," ")}function
pne(t,i){}function hne(t,i){if(1&t){const
e=I();l(0,"div",12)(1,"label",44),g(2),m(3,"translate"),c(),l(4,"p-inputNumber",45),C("ngModelChange",function(s){return
v(e),d(3).work.switchPort=s}),c(),l(5,"small",16),g(6),m(7,"translate"),c()()}if(2&t){const
e=d(3);a(2),S(f(3,7,"settings.iconnection.switchport_label")),a(2),p("ngModel",e.work.switchPort)("showButtons",!0)("min",1)("max",e.diseqcTree.SwitchPorts)("step",1),a(2),T("
",f(7,9,"settings.iconnection.switchport_desc")," ")}}function
mne(t,i){if(1&t){const
e=I();l(0,"div")(1,"div",12)(2,"label",46),g(3),m(4,"translate"),c(),l(5,"p-inputNumber",47),C("ngModelChange",function(s){return
v(e),d(3).work.rotorDegrees=s}),c(),k(6,"br")(7,"br"),l(8,"div",48)(9,"p-radioButton",49),C("ngModelChange",function(s){return
v(e),d(3).work.hemisphere=s}),c(),l(10,"label",50),g(11),m(12,"translate"),c()(),l(13,"div",48)(14,"p-radioButton",51),C("ngModelChange",function(s){return
v(e),d(3).work.
hemisphere=s}),c(),l(15,"label",52),g(16),m(17,"translate"),c()(),l(18,"small",16),g(19),m(20,"translate"),c()()()}if(2&t){const
e=d(3);a(3),S(f(4,10,"settings.iconnection.longitude_label")),a(2),p("ngModel",e.work.rotorDegrees)("min",0)("max",180)("maxFractionDigits",4),a(4),p("ngModel",e.work.hemisphere),a(2),S(f(12,12,"settings.iconnection.longitude_east")),a(3),p("ngModel",e.work.hemisphere),a(2),S(f(17,14,"settings.iconnection.longitude_west")),a(3),T("
",f(20,16,"settings.iconnection.longitude_desc")," ")}}function
fne(t,i){if(1&t){const
e=I();l(0,"div",12)(1,"label",53),g(2),m(3,"translate"),c(),l(4,"div",48)(5,"p-radioButton",54),C("ngModelChange",function(s){return
v(e),d(3).work.scrPort=s}),c(),l(6,"label",55),g(7),m(8,"translate"),c()(),l(9,"div",48)(10,"p-radioButton",56),C("ngModelChange",function(s){return
v(e),d(3).work.scrPort=s}),c(),l(11,"label",57),g(12),m(13,"translate"),c()(),l(14,"small",16),g(15),m(16,"translate"),c()()}if(2&t){const
e=d(3);a(2),S(f(3,6,"setti
ngs.iconnection.unicablepos_label")),a(3),p("ngModel",e.work.scrPort),a(2),S(f(8,8,"settings.iconnection.unicablepos_porta")),a(3),p("ngModel",e.work.scrPort),a(2),S(f(13,10,"settings.iconnection.unicablepos_portb")),a(3),T("
",f(16,12,"settings.iconnection.unicablepos_desc")," ")}}function
gne(t,i){1&t&&(l(0,"div",41),_(1,hne,8,11,"div",42),_(2,mne,21,18,"div",43),_(3,fne,17,14,"div",42),c()),2&t&&(p("ngSwitch",d(2).diseqcTree.Type),a(1),p("ngSwitchCase","switch"),a(1),p("ngSwitchCase","rotor"),a(1),p("ngSwitchCase","scr"))}function
_ne(t,i){if(1&t){const
e=I();l(0,"div",12)(1,"label",58),g(2),m(3,"translate"),c(),l(4,"input",59,60),C("ngModelChange",function(s){return
v(e),d(2).card.InputName=s}),c(),l(6,"small",16),g(7),m(8,"translate"),c()()}if(2&t){const
e=d(2);a(2),S(f(3,3,"settings.iconnection.delivery_label")),a(2),p("ngModel",e.card.InputName),a(3),T("
",f(8,5,"settings.iconnection.delivery_desc")," ")}}function
bne(t,i){if(1&t){const e=I();l(0,"p-dropdown",63,60),C("ngMode
lChange",function(s){return v(e),d(3).card.InputName=s}),c()}if(2&t){const
e=d(3);p("options",e.currentDevice.InputNames)("ngModel",e.card.InputName)}}function
vne(t,i){if(1&t&&(l(0,"div",12)(1,"label",61),g(2),m(3,"translate"),c(),_(4,bne,2,2,"p-dropdown",62),l(5,"small",16),g(6),m(7,"translate"),c()()),2&t){const
e=d(2);a(2),S(f(3,3,"settings.iconnection.input_label")),a(2),p("ngIf",e.work.isReady),a(2),T("
",f(7,5,"settings.capture.inputname_desc")," ")}}function
Cne(t,i){if(1&t){const
e=I();l(0,"div",12)(1,"label",64),g(2),m(3,"translate"),c(),l(4,"input",65,66),C("ngModelChange",function(s){return
v(e),d(2).card.ExternalCommand=s}),c(),l(6,"small",16),g(7),m(8,"translate"),c()()}if(2&t){const
e=d(2);a(2),S(f(3,3,"settings.iconnection.externalcmd_label")),a(2),p("ngModel",e.card.ExternalCommand),a(3),T("
",f(8,5,"settings.iconnection.externalcmd_desc")," ")}}function
yne(t,i){if(1&t){const
e=I();l(0,"div",12)(1,"label",67),g(2),m(3,"translate"),c(),l(4,"input",68,69),C("ngModelC
hange",function(s){return
v(e),d(2).card.TuneChan=s}),c(),l(6,"small",16),g(7),m(8,"translate"),c()()}if(2&t){const
e=d(2);a(2),S(f(3,3,"settings.iconnection.tunechan_label")),a(2),p("ngModel",e.card.TuneChan),a(3),T("
",f(8,5,"settings.iconnection.tunechan_desc")," ")}}const
Id=function(){return{minWidth:"400px"}};function wne(t,i){if(1&t){const
e=I();l(0,"div",12)(1,"label",70),g(2),m(3,"translate"),c(),l(4,"p-dropdown",71,72),C("ngModelChange",function(s){return
v(e),d(2).card.Quicktune=s}),c(),l(6,"small",16),g(7),m(8,"translate"),c()()}if(2&t){const
e=d(2);a(2),S(f(3,8,"settings.iconnection.quicktune_label")),a(2),q(A(12,Id)),p("options",e.quickTuneValues)("ngModel",e.card.Quicktune)("editable",!1)("maxlength",0),a(3),T("
",f(8,10,"settings.iconnection.quicktune_desc")," ")}}function
Tne(t,i){if(1&t){const
e=I();l(0,"div",12)(1,"p-checkbox",73,74),C("ngModelChange",function(s){return
v(e),d(2).card.DishnetEIT=s}),m(3,"translate"),c(),l(4,"small",16),g(5),m(6,"translate"),c()()}
if(2&t){const
e=d(2);a(1),x("label",f(3,4,"settings.iconnection.dishneteit_label")),p("ngModel",e.card.DishnetEIT)("binary",!0),a(4),T("
",f(6,6,"settings.iconnection.dishneteit_desc")," ")}}function
Sne(t,i){if(1&t&&(l(0,"p-fieldset",75),m(1,"translate"),k(2,"app-channelscan",76),c()),2&t){const
e=d(2);x("legend",f(1,7,"settings.iconnection.scan_title")),p("collapsed",!0)("toggleable",!0),a(2),p("card",e.card)("cardList",e.cardList)("iconnection",e)("videoSourceLookup",e.videoSourceLookup)}}function
xne(t,i){if(1&t){const
e=I();l(0,"p-button",77),C("click",function(){return
v(e),d(2).work.fetchChannelsDialog=!1}),m(1,"translate"),c(),l(2,"p-button",78),C("click",function(){return
v(e),d(2).fetchChannels()}),m(3,"translate"),c()}2&t&&(x("label",f(1,2,"common.no")),a(2),x("label",f(3,4,"common.yes")))}const
Dne=function(t){return{num:t}},Mne=function(){return{width:"50vw"}};function
kne(t,i){if(1&t){const
e=I();l(0,"div",8)(1,"div",9),_(2,gne,4,4,"div",10),_(3,_ne,9,7,"div",11),_(4,v
ne,8,7,"div",11),l(5,"div",12)(6,"label",13),g(7),m(8,"translate"),c(),l(9,"input",14,15),C("ngModelChange",function(s){return
v(e),d().card.DisplayName=s}),c(),l(11,"small",16),g(12),m(13,"translate"),c()(),l(14,"div",12)(15,"label",17),g(16),m(17,"translate"),c(),l(18,"p-dropdown",18,19),C("ngModelChange",function(s){return
v(e),d().card.SourceId=s})("onChange",function(){return
v(e),d().fillChannelList()}),c(),l(20,"small",16),g(21),m(22,"translate"),c()(),_(23,Cne,9,7,"div",11),_(24,yne,9,7,"div",11),_(25,wne,9,13,"div",11),_(26,Tne,7,8,"div",11),_(27,Sne,3,9,"p-fieldset",20),k(28,"br")(29,"br"),l(30,"div",12)(31,"div",8)(32,"div",21)(33,"p-button",22),C("onClick",function(){return
v(e),d().work.fetchChannelsDialog=!0}),m(34,"translate"),c()(),l(35,"div",21),g(36),m(37,"translate"),c()(),l(38,"small",16),g(39),m(40,"translate"),c()(),l(41,"p-dialog",23),C("visibleChange",function(s){return
v(e),d().work.fetchChannelsDialog=s}),l(42,"p"),g(43),m(44,"translate"),c(),l(45,"p"),g(46
),m(47,"translate"),c(),_(48,xne,4,6,"ng-template",7),c(),l(49,"div",12)(50,"label",24),g(51),m(52,"translate"),c(),l(53,"p-dropdown",25,26),C("ngModelChange",function(s){return
v(e),d().card.StartChannel=s}),c(),l(55,"small",16),g(56),m(57,"translate"),c()(),l(58,"p-fieldset",27),m(59,"translate"),l(60,"div",12)(61,"label",28),g(62),m(63,"translate"),c(),l(64,"p-inputNumber",29),C("ngModelChange",function(s){return
v(e),d().card.RecLimit=s}),c(),l(65,"small",16),g(66),m(67,"translate"),c()(),l(68,"div",12)(69,"p-checkbox",30,31),C("ngModelChange",function(s){return
v(e),d().card.SchedGroup=s}),m(71,"translate"),c(),l(72,"small",16),g(73),m(74,"translate"),c()(),l(75,"div",12)(76,"label",32),g(77),m(78,"translate"),c(),l(79,"p-inputNumber",33),C("ngModelChange",function(s){return
v(e),d().card.RecPriority=s}),c(),l(80,"small",16),g(81),m(82,"translate"),c()(),l(83,"div",12)(84,"label",34),g(85),m(86,"translate"),c(),l(87,"p-inputNumber",35),C("ngModelChange",function(s){return
v(e),
d().card.SchedOrder=s}),c(),l(88,"small",16),g(89),m(90,"translate"),c()(),l(91,"div",12)(92,"label",36),g(93),m(94,"translate"),c(),l(95,"p-inputNumber",37),C("ngModelChange",function(s){return
v(e),d().card.LiveTVOrder=s}),c(),l(96,"small",16),g(97),m(98,"translate"),c()(),l(99,"div",12)(100,"label",38),g(101),m(102,"translate"),c(),l(103,"p-dropdown",39,40),C("ngModelChange",function(s){return
v(e),d().work.inputGroupName=s}),c(),l(105,"small",16),g(106),m(107,"translate"),c()()()()()}if(2&t){const
e=d(),n=F(1);a(2),p("ngIf",e.diseqcTree),a(1),p("ngIf","DVB"==e.card.CardType),a(1),p("ngIf","DVB"!=e.card.CardType),a(3),S(f(8,80,"settings.iconnection.displayname_label")),a(2),p("ngModel",e.card.DisplayName),a(3),T("
",f(13,82,"settings.iconnection.displayname_desc"),"
"),a(4),S(f(17,84,"settings.iconnection.sourceid_label")),a(2),q(A(129,Id)),p("options",e.videoSourceList.VideoSourceList.VideoSources)("ngModel",e.card.SourceId)("editable",!1)("maxlength",0),a(3),T("
",f(22,86,"sett
ings.iconnection.sourceid_desc"),"
"),a(2),p("ngIf",e.work.isEncoder||e.work.isUnscanable),a(1),p("ngIf",e.work.showPresetTuner),a(1),p("ngIf",!e.work.isEncoder&&!e.work.isUnscanable),a(1),p("ngIf","DVB"==e.card.CardType),a(1),p("ngIf",!e.work.isUnscanable),a(6),x("label",f(34,88,"settings.iconnection.fetch.label")),p("disabled",!e.card.SourceId||n.dirty||1==e.work.fetchStatus||e.setupService.schedulingEnabled),a(3),T("
\xa0\xa0",Dt(37,90,e.fetchMessages[e.work.fetchStatus],U(130,Dne,e.work.fetchCount)),"
"),a(3),T(" ",f(40,93,"settings.iconnection.fetch.desc"),"
"),a(2),q(A(132,Mne)),p("visible",e.work.fetchChannelsDialog)("modal",!0)("draggable",!1)("resizable",!1),a(2),S(f(44,95,"settings.iconnection.fetch.warning")),a(3),S(f(47,97,"settings.common.ru_sure")),a(5),S(f(52,99,"settings.iconnection.startchan_label")),a(2),q(A(133,Id)),p("options",e.sourceChannels)("ngModel",e.card.StartChannel)("editable",!1),a(3),T("
",f(57,101,"settings.iconnection.startchan_desc"),"
"),a(2),x("le
gend",f(59,103,"settings.iconnection.interact_title")),p("toggleable",!0)("collapsed",!0),a(4),S(f(63,105,"settings.iconnection.maxrec_label")),a(2),p("ngModel",e.card.RecLimit)("showButtons",!0)("min",1)("max",10)("step",1),a(2),T("
",f(67,107,"settings.iconnection.maxrec_desc"),"
"),a(3),x("label",f(71,109,"settings.iconnection.schedgrp_label")),p("ngModel",e.card.SchedGroup)("binary",!0),a(4),T("
",f(74,111,"settings.iconnection.schedgrp_desc"),"
"),a(4),S(f(78,113,"settings.iconnection.recpri_label")),a(2),p("ngModel",e.card.RecPriority)("showButtons",!0)("min",-99)("max",99)("step",1),a(2),T("
",f(82,115,"settings.iconnection.recpri_desc"),"
"),a(4),S(f(86,117,"settings.iconnection.schedorder_label")),a(2),p("ngModel",e.card.SchedOrder)("showButtons",!0)("min",0)("max",99)("step",1),a(2),T("
",f(90,119,"settings.iconnection.schedorder_desc"),"
"),a(4),S(f(94,121,"settings.iconnection.liveorder_label")),a(2),p("ngModel",e.card.LiveTVOrder)("showButtons",!0)("min",0)("max",99)("s
tep",1),a(2),T("
",f(98,123,"settings.iconnection.liveorder_desc"),"
"),a(4),S(f(102,125,"settings.iconnection.inpgroup_label")),a(2),q(A(134,Id)),p("options",e.selectGroups)("ngModel",e.work.inputGroupName)("editable",!0),a(3),T("
",f(107,127,"settings.iconnection.inpgroup_desc")," ")}}function
Ine(t,i){1&t&&(k(0,"p-message",84),m(1,"translate")),2&t&&x("text",f(1,1,"common.savesuccess"))}function
Ene(t,i){1&t&&(k(0,"p-message",85),m(1,"translate")),2&t&&x("text",f(1,1,"common.networkfail"))}function
Rne(t,i){if(1&t){const
e=I();l(0,"div",79)(1,"div",80),_(2,Ine,2,3,"p-message",81),_(3,Ene,2,3,"p-message",82),c(),l(4,"p-button",83),C("onClick",function(){v(e);const
s=d(),r=F(1);return
s.saveForm(),r.form.markAsPristine()}),m(5,"translate"),c()()}if(2&t){const
e=d(),n=F(1);a(2),p("ngIf",e.work.successCount>0&&0==e.work.errorCount&&!n.dirty),a(1),p("ngIf",e.work.errorCount>0),a(1),x("label",f(5,4,"common.save")),p("disabled",!n.dirty||!e.card.VideoDevice||e.setupService.schedulingEna
bled)}}let kS=(()=>{class
t{constructor(e,n,s,r){this.translate=e,this.channelService=n,this.captureCardService=s,this.setupService=r,this.allChannels=[],this.sourceChannels=[],this.inputGroups=[],this.selectGroups=[],this.captureDeviceList={CaptureDeviceList:{CaptureDevices:[]}},this.currentDevice={FrontendName:"Unknown",InputNames:["MPEG2TS"]},this.work={successCount:0,errorCount:0,expectedCount:0,recLimitUpd:!1,reloadGroups:!1,isEncoder:!1,isUnscanable:!1,hasTuner:!1,showPresetTuner:!1,inputGroupName:"",orgInputGroupName:"",fetchChannelsDialog:!1,fetchStatus:0,fetchCount:0,switchPort:0,rotorDegrees:0,scrPort:"",hemisphere:1,isReady:!1,startScan:!1},this.deviceFree=new
ct,this.orgInputGroupIds=[],this.fetchMessages=["","settings.iconnection.fetch.inprog","settings.iconnection.fetch.complete","settings.iconnection.fetch.failed"],this.messages={devNotExist:"settings.capture.dvb.devNotExist"},this.preEncodedTypes=["DVB","FIREWIRE","HDHOMERUN","FREEBOX","IMPORT","DEMO","ASI","CETON","
VBOX","SATIP"],this.unscanableTypes=["FIREWIRE","HDPVR","IMPORT","DEMO","GO7007","MJPEG"],this.hasTunerTypes=["DVB","HDHOMERUN","FREEBOX","CETON","VBOX","SATIP"],this.quickTuneValues=[{prompt:"settings.iconnection.quicktune.never",value:0},{prompt:"settings.iconnection.quicktune.livetv",value:1},{prompt:"settings.iconnection.quicktune.always",value:2}],this.saveObserver={next:o=>{o.bool?(this.work.successCount++,this.work.recLimitUpd&&(this.work.successCount==this.work.expectedCount?this.captureCardService.SetInputMaxRecordings(this.card.CardId,this.card.RecLimit).subscribe(this.saveObserver):this.work.successCount==this.work.expectedCount+1&&(this.parentComponent.loadCards(!1),this.work.recLimitUpd=!1)),this.work.successCount==this.work.expectedCount&&this.work.reloadGroups&&(this.loadInputGroups(),this.work.reloadGroups=!1),this.work.successCount==this.work.expectedCount&&this.work.startScan&&this.scanComponent&&(this.work.startScan=!1,this.currentForm.form.markAsPristine(),this.s
canComponent.startScan())):(console.log("saveObserver
error",o),this.work.startScan=!1,this.work.errorCount++,this.currentForm.form.markAsDirty())},error:o=>{console.log("saveObserver
error",o),this.work.startScan=!1,this.work.errorCount++,this.currentForm.form.markAsDirty()}},this.quickTuneValues.forEach(o=>e.get(o.prompt).subscribe(u=>o.prompt=u)),this.loadChannels(),this.loadInputGroups()}loadChannels(){this.channelService.GetChannelInfoList({Details:!0}).subscribe(n=>{this.allChannels=n.ChannelInfoList.ChannelInfos,this.fillChannelList()})}fillChannelList(){this.sourceChannels=this.allChannels.filter(e=>e.SourceId==this.card.SourceId),this.sourceChannels.find(e=>e.ChanNum==this.card.StartChannel)||(this.card.StartChannel="")}loadInputGroups(){this.captureCardService.GetInputGroupList().subscribe(e=>{this.inputGroups=e.InputGroupList.InputGroups,this.inputGroups.forEach(n=>{if(Ju("user:")){const
s=n.InputGroupName.substring(5);-1==this.selectGroups.findIndex(r=>s==r.InputGroupNam
e)&&this.selectGroups.push({CardInputId:0,InputGroupId:n.InputGroupId,InputGroupName:s}),n.CardInputId==this.card.CardId&&(this.work.inputGroupName||(this.work.inputGroupName=s,this.work.orgInputGroupName=s),this.orgInputGroupIds.push(n.InputGroupId))}})})}ngOnInit(){this.work.isEncoder=this.preEncodedTypes.indexOf(this.card.CardType)<0,this.work.isUnscanable=this.unscanableTypes.indexOf(this.card.CardType)>=0,this.work.hasTuner=this.hasTunerTypes.indexOf(this.card.CardType)>=0,(this.work.isEncoder||this.work.isUnscanable)&&(this.work.hasTuner||"EXTERNAL"==this.card.CardType)&&(this.work.showPresetTuner=!0),"DVB"==this.card.CardType&&this.loadDiseqc(),this.card.DisplayName||(this.card.DisplayName="Input
"+this.card.CardId),this.captureCardService.GetCaptureDeviceList(this.card.CardType).subscribe({next:e=>{this.captureDeviceList=e,this.setupDevice(),this.deviceFree.next(!0)},error:e=>{console.log("GetCaptureDeviceList",e),this.work.errorCount++}})}setupDevice(){if(this.card.VideoDev
ice){let
e=this.captureDeviceList.CaptureDeviceList.CaptureDevices.find(n=>n.VideoDevice==this.card.VideoDevice);e?this.currentDevice=e:(this.currentDevice={VideoDevice:this.card.VideoDevice,FrontendName:this.messages.devNotExist,InputNames:["MPEG2TS"]},this.captureDeviceList.CaptureDeviceList.CaptureDevices.push(this.currentDevice))}this.currentDevice&&this.card.InputName&&(this.currentDevice.InputNames.includes(this.card.InputName)||this.currentDevice.InputNames.push(this.card.InputName),this.currentDevice.InputNames.includes("MPEG2TS")||this.currentDevice.InputNames.push("MPEG2TS")),this.work.isReady=!0}loadDiseqc(){this.captureCardService.GetDiseqcTreeList().subscribe({next:e=>{this.diseqcTreeList=e,this.setupDiseqc()},error:e=>{console.log("GetDiseqcTreeList",e),this.work.errorCount++}})}setupDiseqc(){let
e=this.diseqcTreeList.DiseqcTreeList.DiseqcTrees.find(n=>n.DiSEqCId==this.card.DiSEqCId);if(e)switch(this.diseqcTree=e,this.diseqcTree.Type){case"switch":case"rotor":case"scr"
:this.captureCardService.GetDiseqcConfigList().subscribe({next:n=>{let
s=n.DiseqcConfigList.DiseqcConfigs.find(r=>r.CardId==this.card.CardId&&r.DiSEqCId==this.card.DiSEqCId);if(this.diseqcConfig=s||{CardId:this.card.CardId,DiSEqCId:this.card.DiSEqCId,Value:""},"switch"==this.diseqcTree.Type)this.work.switchPort=Number.parseInt(this.diseqcConfig.Value)-1,Number.isNaN(this.work.switchPort)&&(this.work.switchPort=0);else
if("rotor"==this.diseqcTree.Type)this.work.rotorDegrees=Number.parseFloat(this.diseqcConfig.Value),Number.isNaN(this.work.rotorDegrees)&&(this.work.rotorDegrees=0),this.work.rotorDegrees<0?(this.work.hemisphere=-1,this.work.rotorDegrees=-this.work.rotorDegrees):this.work.hemisphere=1;else
if("scr"==this.diseqcTree.Type)switch(this.diseqcConfig.Value){case"0":this.work.scrPort="A";break;case"1":this.work.scrPort="B";break;default:this.work.scrPort=""}},error:n=>{console.log("GetDiseqcTreeList",n),this.work.errorCount++}})}}ngAfterViewInit(){this.setupService.setCurrentF
orm(this.currentForm),this.currentForm.form.markAsDirty(),setTimeout(()=>{this.currentForm.form.markAsPristine()},0)}fetchChannels(){this.work.fetchChannelsDialog=!1;let
e={SourceId:this.card.SourceId,CardId:this.card.CardId,WaitForFinish:!0};this.work.fetchStatus=1,this.channelService.FetchChannelsFromSource(e).subscribe({next:n=>{this.work.fetchStatus=n.int>0?2:3,this.work.fetchCount=n.int,this.loadChannels()},error:n=>{console.log("fetchChannels",n),this.work.fetchStatus=3,this.work.fetchCount=0}})}saveForm(){this.work.successCount=0,this.work.errorCount=0,this.work.expectedCount=0,this.work.inputGroupName!=this.work.orgInputGroupName?this.work.inputGroupName?this.captureCardService.AddUserInputGroup(this.work.inputGroupName).subscribe({next:n=>{this.saveCard(n.int)},error:n=>{console.log("saveForm
error",n),this.work.errorCount++,this.currentForm.form.markAsDirty()}}):this.saveCard(-1):this.saveCard(0)}saveCard(e){0!=e&&(this.work.reloadGroups=!0);let
n=0;if(this.work.recLimitUp
d=!1,this.cardList.CaptureCardList.CaptureCards.forEach(s=>{(s.CardId==this.card.CardId||s.ParentId==this.card.CardId)&&(this.captureCardService.UpdateCaptureCard(s.CardId,"inputname",s.InputName=this.card.InputName).subscribe(this.saveObserver),this.captureCardService.UpdateCaptureCard(s.CardId,"displayname",s.DisplayName=this.card.DisplayName).subscribe(this.saveObserver),this.captureCardService.UpdateCaptureCard(s.CardId,"sourceid",String(s.SourceId=this.card.SourceId)).subscribe(this.saveObserver),this.captureCardService.UpdateCaptureCard(s.CardId,"quicktune",String(s.Quicktune=this.card.Quicktune)).subscribe(this.saveObserver),this.captureCardService.UpdateCaptureCard(s.CardId,"dishnet_eit",(s.DishnetEIT=this.card.DishnetEIT)?"1":"0").subscribe(this.saveObserver),this.card.StartChannel&&(this.captureCardService.UpdateCaptureCard(s.CardId,"startchan",s.StartChannel=this.card.StartChannel).subscribe(this.saveObserver),this.work.expectedCount++),this.captureCardService.UpdateCaptu
reCard(s.CardId,"recpriority",String(s.RecPriority=this.card.RecPriority)).subscribe(this.saveObserver),this.captureCardService.UpdateCaptureCard(s.CardId,"livetvorder",String(s.LiveTVOrder=this.card.LiveTVOrder)).subscribe(this.saveObserver),this.captureCardService.UpdateCaptureCard(s.CardId,"reclimit",String(s.RecLimit=this.card.RecLimit)).subscribe(this.saveObserver),this.card.SchedGroup&&this.card.CardId!=s.CardId?(s.SchedGroup=!1,s.SchedOrder=0):(s.SchedGroup=this.card.SchedGroup,s.SchedOrder=this.card.SchedOrder),this.captureCardService.UpdateCaptureCard(s.CardId,"schedgroup",s.SchedGroup?"1":"0").subscribe(this.saveObserver),this.captureCardService.UpdateCaptureCard(s.CardId,"schedorder",String(s.SchedOrder)).subscribe(this.saveObserver),this.work.expectedCount+=10,0!=e&&this.orgInputGroupIds.forEach(r=>{this.captureCardService.UnlinkInputGroup(s.CardId,r).subscribe(this.saveObserver),this.work.expectedCount++}),e>0&&(this.captureCardService.LinkInputGroup(s.CardId,e).subscri
be(this.saveObserver),this.work.expectedCount++),n++)}),n!=this.card.RecLimit&&(this.work.recLimitUpd=!0),this.diseqcConfig){let
s="";if("switch"==this.diseqcTree.Type)s=(this.work.switchPort-1).toString();else
if("rotor"==this.diseqcTree.Type)s=(this.work.rotorDegrees*this.work.hemisphere).toString();else
if("scr"==this.diseqcTree.Type)switch(this.work.scrPort){case"A":default:s="0";break;case"B":s="1"}s!=this.diseqcConfig.Value&&(this.diseqcConfig.Value=s,this.captureCardService.DeleteDiseqcConfig(this.card.CardId).subscribe(r=>{this.captureCardService.AddDiseqcConfig(this.diseqcConfig).subscribe(this.saveObserver)}))}}}return
t.\u0275fac=function(e){return
new(e||t)(D(Oe),D(Or),D(Gt),D(Me))},t.\u0275cmp=z({type:t,selectors:[["app-iconnection"]],viewQuery:function(e,n){if(1&e&&W(une,5),2&e){let
s;V(s=B())&&(n.currentForm=s.first)}},inputs:{card:"card",cardList:"cardList",videoSourceLookup:"videoSourceLookup",videoSourceList:"videoSourceList",parentComponent:"parentComponent"},decl
s:9,vars:0,consts:[["name","connform",1,"ml-3","mr-3"],["connform","ngForm"],["top",""],[1,"m-5"],["pTemplate","title"],["pTemplate","subtitle"],["pTemplate","content"],["pTemplate","footer"],[1,"grid"],[1,"mb-4","w-full"],[3,"ngSwitch",4,"ngIf"],["class","form-group
field",4,"ngIf"],[1,"form-group","field"],["for","DisplayName",1,"label","block"],["pInputText","","id","DisplayName","name","DisplayName",1,"mb-2","form-control","w-full",3,"ngModel","ngModelChange"],["DisplayName","ngModel"],[1,"block"],["for","SourceId",1,"label","block"],["optionLabel","SourceName","optionValue","Id","name","SourceId",3,"options","ngModel","editable","maxlength","ngModelChange","onChange"],["SourceId","ngModel"],["class","mb-4
w-full",3,"legend","collapsed","toggleable",4,"ngIf"],[2,"display","flex","align-items","center"],["icon","pi
pi-download","iconPos","left",3,"label","disabled","onClick"],["header","Fetch
Channels",3,"visible","modal","draggable","resizable","visibleChange"],["for","StartChan
nel",1,"label","block"],["placeholder","Select
Item","optionLabel","ChanNum","optionValue","ChanNum","scrollHeight","400px","name","StartChannel",3,"options","ngModel","editable","ngModelChange"],["StartChannel","ngModel"],[1,"mb-4","w-full",3,"legend","toggleable","collapsed"],["for","RecLimit",1,"label","block"],["name","RecLimit","id","RecLimit",3,"ngModel","showButtons","min","max","step","ngModelChange"],["inputId","SchedGroup","name","SchedGroup",1,"label","mb-2","w-full",3,"ngModel","binary","label","ngModelChange"],["DVBWaitForSeqStart","ngModel"],["for","RecPriority",1,"label","block"],["name","RecPriority","id","RecPriority",3,"ngModel","showButtons","min","max","step","ngModelChange"],["for","SchedOrder",1,"label","block"],["name","SchedOrder","id","SchedOrder",3,"ngModel","showButtons","min","max","step","ngModelChange"],["for","LiveTVOrder",1,"label","block"],["name","LiveTVOrder","id","LiveTVOrder",3,"ngModel","showButtons","min","max","step","ngModelChange"],["for","i
nputGroupName",1,"label","block"],["placeholder","Optional
Group
Name","optionLabel","InputGroupName","optionValue","InputGroupName","scrollHeight","400px","name","inputGroupName",3,"options","ngModel","editable","ngModelChange"],["inputGroupName","ngModel"],[3,"ngSwitch"],["class","form-group
field",4,"ngSwitchCase"],[4,"ngSwitchCase"],["for","Port",1,"label","block"],["name","Port","id","Port",3,"ngModel","showButtons","min","max","step","ngModelChange"],["for","Degrees",1,"label","block"],["name","Degrees","id","Degrees",3,"ngModel","min","max","maxFractionDigits","ngModelChange"],[1,"field-radiobutton"],["name","hemisphere","value","1","inputId","east",3,"ngModel","ngModelChange"],["for","east",1,"label","block"],["name","hemisphere","value","-1","inputId","west",3,"ngModel","ngModelChange"],["for","west",1,"label","block"],[1,"label","block"],["name","scrPort","value","A","inputId","portA",3,"ngModel","ngModelChange"],["for","portA",1,"label","block"],["name","scrPort","value",
"B","inputId","portB",3,"ngModel","ngModelChange"],["for","portB",1,"label","block"],["for","Delivery",1,"label","block"],["pInputText","","id","Delivery","name","Delivery","disabled","true",1,"mb-2","form-control","w-full",3,"ngModel","ngModelChange"],["InputName","ngModel"],["for","InputName",1,"label","block"],["name","InputName",3,"options","ngModel","ngModelChange",4,"ngIf"],["name","InputName",3,"options","ngModel","ngModelChange"],["for","ExternalCommand",1,"label","block"],["pInputText","","id","ExternalCommand","name","ExternalCommand",1,"mb-2","form-control","w-full",3,"ngModel","ngModelChange"],["ExternalCommand","ngModel"],["for","TuneChan",1,"label","block"],["pInputText","","id","TuneChan","name","TuneChan",1,"mb-2","form-control","w-full",3,"ngModel","ngModelChange"],["TuneChan","ngModel"],["for","Quicktune",1,"label","block"],["optionLabel","prompt","optionValue","value","name","Quicktune",3,"options","ngModel","editable","maxlength","ngModelChange"],["Quicktune","ng
Model"],["inputId","DishnetEIT","name","DishnetEIT",1,"label","mb-2","w-full",3,"ngModel","binary","label","ngModelChange"],["DishnetEIT","ngModel"],[1,"mb-4","w-full",3,"legend","collapsed","toggleable"],[3,"card","cardList","iconnection","videoSourceLookup"],["icon","pi
pi-times-circle","styleClass","p-button-plain",3,"label","click"],["icon","pi
pi-check-circle","styleClass","p-button-plain",3,"label","click"],[1,"grid","nogutter"],[1,"col-12"],["severity","success",3,"text",4,"ngIf"],["severity","error",3,"text",4,"ngIf"],["icon","pi
pi-save","iconPos","left",1,"col","pr-1",3,"label","disabled","onClick"],["severity","success",3,"text"],["severity","error",3,"text"]],template:function(e,n){1&e&&(l(0,"form",0,1),k(2,"span",null,2),l(4,"p-card",3),_(5,dne,2,3,"ng-template",4),_(6,pne,0,0,"ng-template",5),_(7,kne,108,135,"ng-template",6),_(8,Rne,6,6,"ng-template",7),c()())},styles:[""]}),t})();function
Lne(t,i){if(1&t){const
e=I();l(0,"p-button",10),C("onClick",function(){return v(
e),d().displayNewDialog=!1}),m(1,"translate"),c(),l(2,"p-button",11),C("onClick",function(){return
v(e),d().newProfile()}),m(3,"translate"),c()}if(2&t){const
e=d();x("label",f(1,3,"common.cancel")),a(2),x("label",f(3,5,"common.ok")),p("disabled",e.rejectName())}}function
One(t,i){1&t&&(l(0,"div",12),k(1,"br")(2,"p-message",13),m(3,"translate"),k(4,"br"),c()),2&t&&(a(2),x("text",f(3,1,"settings.common.successful_delete")))}function
Ane(t,i){1&t&&(l(0,"div",12),k(1,"br")(2,"p-message",14),m(3,"translate"),k(4,"br"),c()),2&t&&(a(2),x("text",f(3,1,"common.networkfail")))}function
Pne(t,i){if(1&t&&(l(0,"div",18)(1,"div",19),g(2),l(3,"b"),g(4),c()()()),2&t){const
e=d(),n=e.$implicit,s=e.index,r=d();a(2),T(" ",n.Name,"
"),a(2),T("\xa0",r.dirtyMessages[s],"")}}function
Fne(t,i){if(1&t){const
e=I();l(0,"p-button",22),C("click",function(){v(e);const
s=d(2).index;return
d().displayDeleteThis[s]=!1}),m(1,"translate"),c(),l(2,"p-button",23),C("click",function(){v(e);const
s=d(2).index;return d()
.deleteThis(s)}),m(3,"translate"),c()}2&t&&(x("label",f(1,2,"common.no")),a(2),x("label",f(3,4,"common.yes")))}const
IS=function(){return{width:"50vw"}},Nne=function(t,i){return{ProfileName:t,GroupName:i}};function
Vne(t,i){if(1&t){const
e=I();l(0,"p-button",20),C("onClick",function(){v(e);const
s=d().index;return
d().displayDeleteThis[s]=!0}),m(1,"translate"),c(),l(2,"p-dialog",2),C("visibleChange",function(s){v(e);const
r=d().index;return
d().displayDeleteThis[r]=s}),m(3,"translate"),l(4,"h2"),g(5),m(6,"translate"),c(),l(7,"p"),g(8),m(9,"translate"),c(),_(10,Fne,4,6,"ng-template",5),c(),k(11,"app-recprofile",21)}if(2&t){const
e=d(),n=e.index,s=e.$implicit,r=d();x("label",f(1,14,"settings.rprofiles.delete_this")),p("disabled",!r.group.RecProfiles[n].Id||r.setupService.schedulingEnabled),a(2),q(A(23,IS)),x("header",f(3,16,"settings.rprofiles.delete_this")),p("visible",r.displayDeleteThis[n])("modal",!0)("draggable",!1)("resizable",!1),a(3),S(f(6,18,"settings.common.ru_sure")),a(3),S
(Dt(9,20,"settings.rprofiles.delete_details",Ge(24,Nne,r.group.RecProfiles[n].Name,r.group.Name))),a(3),p("profile",s)("group",r.group)("parentComponent",r)}}function
Bne(t,i){if(1&t){const
e=I();l(0,"p-accordionTab",15),C("selectedChange",function(s){const
o=v(e).index;return
d().activeTab[o]=s}),_(1,Pne,5,2,"ng-template",16),_(2,Vne,12,27,"ng-template",17),c()}if(2&t){const
e=i.index,n=d();p("disabled",n.disabledTab[e])("selected",n.activeTab[e])}}let
ES=(()=>{class
t{constructor(e,n,s){this.captureCardService=e,this.setupService=n,this.translate=s,this.currentTab=-1,this.deletedTab=-1,this.dirtyMessages=[],this.forms=[],this.disabledTab=[],this.activeTab=[],this.readyCount=0,this.displayNewDialog=!1,this.newProfileName="",this.successCount=0,this.expectedCount=0,this.errorCount=0,this.displayDeleteThis=[],this.dirtyText="settings.common.unsaved",this.warningText="settings.common.warning",this.deletedText="settings.common.deleted",this.newText="settings.common.new",this.delObserve
r={next:r=>{r.bool?(this.successCount++,this.deletedTab>-1&&(this.dirtyMessages[this.deletedTab]=this.deletedText,this.disabledTab[this.deletedTab]=!0,this.activeTab[this.deletedTab]=!1,this.deletedTab=-1)):(this.errorCount++,this.deletedTab=-1)},error:r=>{console.error(r),this.errorCount++}},s.get(this.dirtyText).subscribe(r=>this.dirtyText=r),s.get(this.warningText).subscribe(r=>this.warningText=r),s.get(this.deletedText).subscribe(r=>this.deletedText=r),s.get(this.newText).subscribe(r=>this.newText=r)}ngOnInit(){let
e=this.parentComponent.groups.findIndex(n=>n===this.group);this.parentComponent.profileGroups[e]=this}onTabOpen(e){this.showDirty();let
n=this.setupService.getCurrentForm();null!=n&&(this.forms[e.index]=n),this.setupService.setCurrentForm(null),this.currentTab=e.index,this.dirtyMessages[this.currentTab]=""}onTabClose(e){this.showDirty(),this.currentTab=-1}showDirty(){-1==this.currentTab||this.disabledTab[this.currentTab]||(this.dirtyMessages[this.currentTab]=this.form
s[this.currentTab]&&this.forms[this.currentTab].dirty?this.dirtyText:this.group.RecProfiles[this.currentTab].Id?"":this.newText)}newProfile(){this.displayNewDialog=!1;for(let
n=0;n<this.activeTab.length;n++)this.activeTab[n]=!1;this.group.RecProfiles.push({Id:0,Name:this.newProfileName.trim(),VideoCodec:"MPEG-4",AudioCodec:"MP3",RecProfParams:[]}),this.currentTab=this.group.RecProfiles.length-1,this.showDirty()}deleteThis(e){this.errorCount=0,this.successCount=0,this.expectedCount=1,this.displayDeleteThis[e]=!1,this.deletedTab=e,this.captureCardService.DeleteRecProfile(this.group.RecProfiles[e].Id).subscribe(this.delObserver)}rejectName(){let
e=this.newProfileName.trim();return""==e||null!=this.group.RecProfiles.find(n=>n.Name==e)}confirm(e){return
oe(window.confirm(e))}canDeactivate(){let
e=this.setupService.getCurrentForm();return!(this.forms[this.currentTab]&&this.forms[this.currentTab].dirty||this.dirtyMessages.find(n=>n==this.dirtyText)||e&&e.dirty)||this.confirm(this.warningTe
xt)}allClean(){let
e=this.setupService.getCurrentForm();return!(this.forms[this.currentTab]&&this.forms[this.currentTab].dirty||this.dirtyMessages.find(n=>n==this.dirtyText)||e&&e.dirty)}onWindowClose(e){let
n=this.setupService.getCurrentForm();(this.forms[this.currentTab]&&this.forms[this.currentTab].dirty||this.dirtyMessages.find(s=>s==this.dirtyText)||n&&n.dirty)&&(e.preventDefault(),e.returnValue=!1)}}return
t.\u0275fac=function(e){return
new(e||t)(D(Gt),D(Me),D(Oe))},t.\u0275cmp=z({type:t,selectors:[["app-profile-group"]],hostBindings:function(e,n){1&e&&C("beforeunload",function(r){return
n.onWindowClose(r)},!1,ni)},inputs:{group:"group",parentComponent:"parentComponent"},decls:19,vars:24,consts:[[1,"block","card","w-full"],["icon","pi
pi-plus-circle","styleClass","p-button-plain",3,"label","onClick"],[3,"header","visible","modal","draggable","resizable","visibleChange"],["pInputText","","id","Name","name","Name","autofocus","",1,"mb-2","form-control","w-full",3,"ngModel","ngMo
delChange"],["Name","ngModel"],["pTemplate","footer"],[1,"grid","nogutter"],["class","col-12",4,"ngIf"],[1,"col-12","w-full",3,"onClose","onOpen"],[3,"disabled","selected","selectedChange",4,"ngFor","ngForOf"],["icon","pi
pi-times-circle","styleClass","p-button-plain",3,"label","onClick"],["icon","pi
pi-check-circle","styleClass","p-button-plain",3,"label","disabled","onClick"],[1,"col-12"],["severity","success",3,"text"],["severity","error",3,"text"],[3,"disabled","selected","selectedChange"],["pTemplate","header"],["pTemplate","content"],[1,"grid","w-full"],[1,"col-9","pr-1"],["styleClass","p-button-warning","icon","pi
pi-trash",3,"label","disabled","onClick"],[3,"profile","group","parentComponent"],["icon","pi
pi-times-circle","styleClass","p-button-plain",3,"label","click"],["icon","pi
pi-check-circle","styleClass","p-button-plain",3,"label","click"]],template:function(e,n){1&e&&(l(0,"div",0)(1,"h3"),g(2),m(3,"translate"),c(),l(4,"p-button",1),C("onClick",function(){return
n.dis
playNewDialog=!0}),m(5,"translate"),c(),l(6,"p-dialog",2),C("visibleChange",function(r){return
n.displayNewDialog=r}),m(7,"translate"),l(8,"p"),g(9),m(10,"translate"),c(),l(11,"input",3,4),C("ngModelChange",function(r){return
n.newProfileName=r}),c(),_(13,Lne,4,7,"ng-template",5),c(),l(14,"div",6),_(15,One,5,3,"div",7),_(16,Ane,5,3,"div",7),c(),l(17,"p-accordion",8),C("onClose",function(r){return
n.onTabClose(r)})("onOpen",function(r){return
n.onTabOpen(r)}),_(18,Bne,3,2,"p-accordionTab",9),c()()),2&e&&(a(2),We("",f(3,15,"settings.rprofiles.grouptitle"),"
",n.group.Name,""),a(2),x("label",f(5,17,"settings.rprofiles.new_profile")),a(2),q(A(23,IS)),x("header",f(7,19,"settings.rprofiles.new_profile")),p("visible",n.displayNewDialog)("modal",!0)("draggable",!1)("resizable",!1),a(3),S(f(10,21,"settings.rprofiles.enter_profile_name")),a(2),p("ngModel",n.newProfileName),a(4),p("ngIf",n.expectedCount&&n.successCount==n.expectedCount),a(1),p("ngIf",n.errorCount>0),a(2),p("ngForOf",n.group.Re
cProfiles))},styles:[""]}),t})();const
Hne=["recprofform"],qne=["top"];function
Gne(t,i){if(1&t&&(g(0),m(1,"translate")),2&t){const
e=d();We(" ",f(1,2,"settings.rprofiles.proftitle"),"
",e.profile.Name," ")}}function Une(t,i){}function
zne(t,i){if(1&t){const
e=I();l(0,"div",12)(1,"p-checkbox",13,14),C("ngModelChange",function(s){v(e);const
r=d(2);return
r.profile.RecProfParams[r.findIx("autotranscode",!1)].Value=s}),m(3,"translate"),c(),l(4,"small",15),g(5),m(6,"translate"),c()()}if(2&t){const
e=d(2);a(1),x("label",f(3,4,"settings.rprofiles.autotranscode_label")),p("ngModel",e.profile.RecProfParams[e.findIx("autotranscode",!1)].Value)("binary",!0),a(4),T("
",f(6,6,"settings.rprofiles.autotranscode_desc")," ")}}function
jne(t,i){if(1&t){const
e=I();l(0,"div",12)(1,"label",16),g(2),m(3,"translate"),c(),l(4,"p-inputNumber",17),C("ngModelChange",function(s){v(e);const
r=d(2);return
r.profile.RecProfParams[r.findIx("width","480")].Value=s}),c(),l(5,"small",15),g(6),m(7,"translate"),c()()
}if(2&t){const
e=d(2);a(2),S(f(3,7,"settings.rprofiles.width_label")),a(2),p("ngModel",e.profile.RecProfParams[e.findIx("width","480")].Value)("showButtons",!0)("min",160)("max",720)("step",16),a(2),T("
",f(7,9,"settings.rprofiles.width_desc")," ")}}function
$ne(t,i){if(1&t){const
e=I();l(0,"div",12)(1,"label",18),g(2),m(3,"translate"),c(),l(4,"p-inputNumber",19),C("ngModelChange",function(s){v(e);const
r=d(2);return
r.profile.RecProfParams[r.findIx("height","480")].Value=s}),c(),l(5,"small",15),g(6),m(7,"translate"),c()()}if(2&t){const
e=d(2);a(2),S(f(3,7,"settings.rprofiles.height_label")),a(2),p("ngModel",e.profile.RecProfParams[e.findIx("height","480")].Value)("showButtons",!0)("min",160)("max",480)("step",16),a(2),T("
",f(7,9,"settings.rprofiles.height_desc")," ")}}const
Ms=function(){return{minWidth:"400px"}};function Wne(t,i){if(1&t){const
e=I();l(0,"div",12)(1,"label",20),g(2),m(3,"translate"),c(),l(4,"p-dropdown",21,22),C("ngModelChange",function(s){v(e);const
r=d(2);return
r.profile.RecProfParams[r.findIx("recordingtype","all")].Value=s}),c(),l(6,"small",15),g(7),m(8,"translate"),c()()}if(2&t){const
e=d(2);a(2),S(f(3,8,"settings.rprofiles.recordingtype_label")),a(2),q(A(12,Ms)),p("options",e.recordingtypeOptions)("ngModel",e.profile.RecProfParams[e.findIx("recordingtype","all")].Value)("editable",!1)("maxlength",0),a(3),T("
",f(8,10,"settings.rprofiles.recordingtype_desc")," ")}}function
Kne(t,i){if(1&t){const
e=I();l(0,"div",12)(1,"p-checkbox",23,24),C("ngModelChange",function(s){v(e);const
r=d(2);return
r.profile.RecProfParams[r.findIx("recordmpts",!1)].Value=s}),m(3,"translate"),c(),l(4,"small",15),g(5),m(6,"translate"),c()()}if(2&t){const
e=d(2);a(1),x("label",f(3,4,"settings.rprofiles.recordmpts_label")),p("ngModel",e.profile.RecProfParams[e.findIx("recordmpts",!1)].Value)("binary",!0),a(4),T("
",f(6,6,"settings.rprofiles.recordmpts_desc")," ")}}function
Qne(t,i){if(1&t){const
e=I();l(0,"div",12)(1,"label",26),g(2),m(3,"translate"),c(),l(4,"p-dr
opdown",27,28),C("ngModelChange",function(s){return
v(e),d(3).profile.VideoCodec=s}),c(),k(6,"small",15),c()}if(2&t){const
e=d(3);a(2),S(f(3,7,"settings.rprofiles.videocodec_label")),a(2),q(A(9,Ms)),p("options",e.params.Video)("ngModel",e.profile.VideoCodec)("editable",!1)("maxlength",0)}}function
Jne(t,i){if(1&t){const
e=I();l(0,"div",12)(1,"label",29),g(2),m(3,"translate"),c(),l(4,"p-inputNumber",30),C("ngModelChange",function(s){v(e);const
r=d(3);return
r.profile.RecProfParams[r.findIx("rtjpegquality","170")].Value=s}),c(),l(5,"small",15),g(6),m(7,"translate"),c()()}if(2&t){const
e=d(3);a(2),S(f(3,7,"settings.rprofiles.rtjpegquality_label")),a(2),p("ngModel",e.profile.RecProfParams[e.findIx("rtjpegquality","170")].Value)("showButtons",!0)("min",1)("max",255)("step",1),a(2),T("
",f(7,9,"settings.rprofiles.rtjpegquality_desc")," ")}}function
Yne(t,i){if(1&t){const
e=I();l(0,"div",12)(1,"label",31),g(2),m(3,"translate"),c(),l(4,"p-inputNumber",32),C("ngModelChange",function(s){v(e);
const r=d(3);return
r.profile.RecProfParams[r.findIx("rtjpeglumafilter","0")].Value=s}),c(),l(5,"small",15),g(6),m(7,"translate"),c()()}if(2&t){const
e=d(3);a(2),S(f(3,7,"settings.rprofiles.rtjpeglumafilter_label")),a(2),p("ngModel",e.profile.RecProfParams[e.findIx("rtjpeglumafilter","0")].Value)("showButtons",!0)("min",0)("max",31)("step",1),a(2),T("
",f(7,9,"settings.rprofiles.rtjpegfilter_desc")," ")}}function
Zne(t,i){if(1&t){const
e=I();l(0,"div",12)(1,"label",33),g(2),m(3,"translate"),c(),l(4,"p-inputNumber",34),C("ngModelChange",function(s){v(e);const
r=d(3);return
r.profile.RecProfParams[r.findIx("rtjpegchromafilter","0")].Value=s}),c(),l(5,"small",15),g(6),m(7,"translate"),c()()}if(2&t){const
e=d(3);a(2),S(f(3,7,"settings.rprofiles.rtjpegchromafilter_label")),a(2),p("ngModel",e.profile.RecProfParams[e.findIx("rtjpegchromafilter","0")].Value)("showButtons",!0)("min",0)("max",31)("step",1),a(2),T("
",f(7,9,"settings.rprofiles.rtjpegfilter_desc")," ")}}function
Xne(t,i){if(1&t
){const
e=I();l(0,"div",12)(1,"label",35),g(2),m(3,"translate"),c(),l(4,"p-inputNumber",36),C("ngModelChange",function(s){v(e);const
r=d(3);return
r.profile.RecProfParams[r.findIx("mpeg4bitrate","2200")].Value=s}),c(),l(5,"small",15),g(6),m(7,"translate"),c()()}if(2&t){const
e=d(3);a(2),S(f(3,7,"settings.rprofiles.mpeg4bitrate_label")),a(2),p("ngModel",e.profile.RecProfParams[e.findIx("mpeg4bitrate","2200")].Value)("showButtons",!0)("min",100)("max",8e3)("step",100),a(2),T("
",f(7,9,"settings.rprofiles.mpeg4bitrate_desc")," ")}}function
eie(t,i){if(1&t){const
e=I();l(0,"div",12)(1,"label",37),g(2),m(3,"translate"),c(),l(4,"p-inputNumber",38),C("ngModelChange",function(s){v(e);const
r=d(3);return
r.profile.RecProfParams[r.findIx("mpeg4maxquality","2")].Value=s}),c(),l(5,"small",15),g(6),m(7,"translate"),c()()}if(2&t){const
e=d(3);a(2),S(f(3,7,"settings.rprofiles.mpeg4maxquality_label")),a(2),p("ngModel",e.profile.RecProfParams[e.findIx("mpeg4maxquality","2")].Value)("showButtons",!0)
("min",1)("max",31)("step",1),a(2),T("
",f(7,9,"settings.rprofiles.mpeg4quality_desc")," ")}}function
tie(t,i){if(1&t){const
e=I();l(0,"div",12)(1,"label",39),g(2),m(3,"translate"),c(),l(4,"p-inputNumber",40),C("ngModelChange",function(s){v(e);const
r=d(3);return
r.profile.RecProfParams[r.findIx("mpeg4minquality","15")].Value=s}),c(),l(5,"small",15),g(6),m(7,"translate"),c()()}if(2&t){const
e=d(3);a(2),S(f(3,7,"settings.rprofiles.mpeg4minquality_label")),a(2),p("ngModel",e.profile.RecProfParams[e.findIx("mpeg4minquality","15")].Value)("showButtons",!0)("min",1)("max",31)("step",1),a(2),T("
",f(7,9,"settings.rprofiles.mpeg4quality_desc")," ")}}function
nie(t,i){if(1&t){const
e=I();l(0,"div",12)(1,"label",41),g(2),m(3,"translate"),c(),l(4,"p-inputNumber",42),C("ngModelChange",function(s){v(e);const
r=d(3);return
r.profile.RecProfParams[r.findIx("hardwaremjpegquality","100")].Value=s}),c(),k(5,"small",15),c()}if(2&t){const
e=d(3);a(2),S(f(3,6,"settings.rprofiles.hardwaremjpegquality_la
bel")),a(2),p("ngModel",e.profile.RecProfParams[e.findIx("hardwaremjpegquality","100")].Value)("showButtons",!0)("min",0)("max",100)("step",1)}}const
RS=function(){return["1","2","4"]};function
iie(t,i){if(1&t){const
e=I();l(0,"div",12)(1,"label",43),g(2),m(3,"translate"),c(),l(4,"p-dropdown",44,45),C("ngModelChange",function(s){v(e);const
r=d(3);return
r.profile.RecProfParams[r.findIx("hardwaremjpeghdecimation","2")].Value=s}),c(),k(6,"small",15),c()}if(2&t){const
e=d(3);a(2),S(f(3,7,"settings.rprofiles.hardwaremjpeghdecimation_label")),a(2),q(A(9,Ms)),p("options",A(10,RS))("ngModel",e.profile.RecProfParams[e.findIx("hardwaremjpeghdecimation","2")].Value)("editable",!1)("maxlength",0)}}function
sie(t,i){if(1&t){const
e=I();l(0,"div",12)(1,"label",46),g(2),m(3,"translate"),c(),l(4,"p-dropdown",47,48),C("ngModelChange",function(s){v(e);const
r=d(3);return
r.profile.RecProfParams[r.findIx("hardwaremjpegvdecimation","2")].Value=s}),c(),k(6,"small",15),c()}if(2&t){const
e=d(3);a(2),S(f(
3,7,"settings.rprofiles.hardwaremjpegvdecimation_label")),a(2),q(A(9,Ms)),p("options",A(10,RS))("ngModel",e.profile.RecProfParams[e.findIx("hardwaremjpegvdecimation","2")].Value)("editable",!1)("maxlength",0)}}function
rie(t,i){if(1&t){const
e=I();l(0,"div",12)(1,"label",49),g(2),m(3,"translate"),c(),l(4,"p-inputNumber",50),C("ngModelChange",function(s){v(e);const
r=d(3);return
r.profile.RecProfParams[r.findIx("mpeg4qualdiff","3")].Value=s}),c(),l(5,"small",15),g(6),m(7,"translate"),c()()}if(2&t){const
e=d(3);a(2),S(f(3,7,"settings.rprofiles.mpeg4qualdiff_label")),a(2),p("ngModel",e.profile.RecProfParams[e.findIx("mpeg4qualdiff","3")].Value)("showButtons",!0)("min",1)("max",31)("step",1),a(2),T("
",f(7,9,"settings.rprofiles.mpeg4quality_desc")," ")}}function
oie(t,i){if(1&t){const
e=I();l(0,"div",12)(1,"label",51),g(2),m(3,"translate"),c(),l(4,"p-dropdown",52,53),C("ngModelChange",function(s){v(e);const
r=d(3);return
r.profile.RecProfParams[r.findIx("mpeg2streamtype","2")].Value=s})
,c(),l(6,"small",15),g(7),m(8,"translate"),c()()}if(2&t){const
e=d(3);a(2),S(f(3,8,"settings.rprofiles.mpeg2streamtype_label")),a(2),q(A(12,Ms)),p("options",e.streamTypeOptions)("ngModel",e.profile.RecProfParams[e.findIx("mpeg2streamtype","2")].Value)("editable",!1)("maxlength",0),a(3),T("
",f(8,10,"settings.rprofiles.mpeg2streamtype_desc")," ")}}const
aie=function(){return["Square","4:3","16:9","2.21:1"]};function
lie(t,i){if(1&t){const
e=I();l(0,"div",12)(1,"label",54),g(2),m(3,"translate"),c(),l(4,"p-dropdown",55,56),C("ngModelChange",function(s){v(e);const
r=d(3);return
r.profile.RecProfParams[r.findIx("mpeg2aspectratio","Square")].Value=s}),c(),l(6,"small",15),g(7),m(8,"translate"),c()()}if(2&t){const
e=d(3);a(2),S(f(3,8,"settings.rprofiles.mpeg2aspectratio_label")),a(2),q(A(12,Ms)),p("options",A(13,aie))("ngModel",e.profile.RecProfParams[e.findIx("mpeg2aspectratio","Square")].Value)("editable",!1)("maxlength",0),a(3),T("
",f(8,10,"settings.rprofiles.mpeg2aspectratio_desc")," "
)}}function cie(t,i){if(1&t){const
e=I();l(0,"div",12)(1,"label",57),g(2),m(3,"translate"),c(),l(4,"p-inputNumber",58),C("ngModelChange",function(s){v(e);const
r=d(3);return
r.profile.RecProfParams[r.findIx("mpeg2bitrate","6000")].Value=s}),c(),l(5,"small",15),g(6),m(7,"translate"),c()()}if(2&t){const
e=d(3);a(2),S(f(3,7,"settings.rprofiles.mpeg2bitrate_label")),a(2),p("ngModel",e.profile.RecProfParams[e.findIx("mpeg2bitrate","6000")].Value)("showButtons",!0)("min",1e3)("max",16e3)("step",100),a(2),T("
",f(7,9,"settings.rprofiles.mpeg2bitrate_desc")," ")}}function
uie(t,i){if(1&t){const
e=I();l(0,"div",12)(1,"label",59),g(2),m(3,"translate"),c(),l(4,"p-inputNumber",60),C("ngModelChange",function(s){v(e);const
r=d(3);return
r.profile.RecProfParams[r.findIx("mpeg2maxbitrate","4500")].Value=s}),c(),l(5,"small",15),g(6),m(7,"translate"),c()()}if(2&t){const
e=d(3);a(2),S(f(3,7,"settings.rprofiles.mpeg2maxbitrate_label")),a(2),p("ngModel",e.profile.RecProfParams[e.findIx("mpeg2maxbitrate"
,"4500")].Value)("showButtons",!0)("min",1e3)("max",16e3)("step",100),a(2),T("
",f(7,9,"settings.rprofiles.mpeg2maxbitrate_desc")," ")}}function
die(t,i){if(1&t){const
e=I();l(0,"p-fieldset",25),m(1,"translate"),l(2,"div",12)(3,"label",61),g(4),m(5,"translate"),c(),l(6,"p-inputNumber",62),C("ngModelChange",function(s){v(e);const
r=d(3);return
r.profile.RecProfParams[r.findIx("low_mpeg4avgbitrate","4500")].Value=s}),c(),l(7,"small",15),g(8),m(9,"translate"),c()(),l(10,"div",12)(11,"label",63),g(12),m(13,"translate"),c(),l(14,"p-inputNumber",64),C("ngModelChange",function(s){v(e);const
r=d(3);return
r.profile.RecProfParams[r.findIx("low_mpeg4peakbitrate","6000")].Value=s}),c(),l(15,"small",15),g(16),m(17,"translate"),c()()()}if(2&t){const
e=d(3);x("legend",f(1,17,"settings.rprofiles.lowres_label")),p("toggleable",!0)("collapsed",!0),a(4),S(f(5,19,"settings.rprofiles.mpeg2bitrate_label")),a(2),p("ngModel",e.profile.RecProfParams[e.findIx("low_mpeg4avgbitrate","4500")].Value)("showButto
ns",!0)("min",1e3)("max",13500)("step",500),a(2),T("
",f(9,21,"settings.rprofiles.mpeg2bitrate_desc"),"
"),a(4),S(f(13,23,"settings.rprofiles.mpeg2maxbitrate_label")),a(2),p("ngModel",e.profile.RecProfParams[e.findIx("low_mpeg4peakbitrate","6000")].Value)("showButtons",!0)("min",1100)("max",20200)("step",500),a(2),T("
",f(17,25,"settings.rprofiles.mpeg2maxbitrate_desc"),"
")}}function pie(t,i){if(1&t){const
e=I();l(0,"p-fieldset",25),m(1,"translate"),l(2,"div",12)(3,"label",65),g(4),m(5,"translate"),c(),l(6,"p-inputNumber",66),C("ngModelChange",function(s){v(e);const
r=d(3);return
r.profile.RecProfParams[r.findIx("medium_mpeg4avgbitrate","9000")].Value=s}),c(),l(7,"small",15),g(8),m(9,"translate"),c()(),l(10,"div",12)(11,"label",67),g(12),m(13,"translate"),c(),l(14,"p-inputNumber",68),C("ngModelChange",function(s){v(e);const
r=d(3);return
r.profile.RecProfParams[r.findIx("medium_mpeg4peakbitrate","11000")].Value=s}),c(),l(15,"small",15),g(16),m(17,"translate"),c()()()}if(2&t){const
e=d(3);x("legend",f(1,17,"settings.rprofiles.medres_label")),p("toggleable",!0)("collapsed",!0),a(4),S(f(5,19,"settings.rprofiles.mpeg2bitrate_label")),a(2),p("ngModel",e.profile.RecProfParams[e.findIx("medium_mpeg4avgbitrate","9000")].Value)("showButtons",!0)("min",1e3)("max",13500)("step",500),a(2),T("
",f(9,21,"settings.rprofiles.mpeg2bitrate_desc"),"
"),a(4),S(f(13,23,"settings.rprofiles.mpeg2maxbitrate_label")),a(2),p("ngModel",e.profile.RecProfParams[e.findIx("medium_mpeg4peakbitrate","11000")].Value)("showButtons",!0)("min",1100)("max",20200)("step",500),a(2),T("
",f(17,25,"settings.rprofiles.mpeg2maxbitrate_desc"),"
")}}function hie(t,i){if(1&t){const
e=I();l(0,"p-fieldset",25),m(1,"translate"),l(2,"div",12)(3,"label",69),g(4),m(5,"translate"),c(),l(6,"p-inputNumber",70),C("ngModelChange",function(s){v(e);const
r=d(3);return
r.profile.RecProfParams[r.findIx("high_mpeg4avgbitrate","13500")].Value=s}),c(),l(7,"small",15),g(8),m(9,"translate"),c()(),l(10,"div",12)(11,"label",71
),g(12),m(13,"translate"),c(),l(14,"p-inputNumber",72),C("ngModelChange",function(s){v(e);const
r=d(3);return
r.profile.RecProfParams[r.findIx("high_mpeg4peakbitrate","20200")].Value=s}),c(),l(15,"small",15),g(16),m(17,"translate"),c()()()}if(2&t){const
e=d(3);x("legend",f(1,17,"settings.rprofiles.highres_label")),p("toggleable",!0)("collapsed",!0),a(4),S(f(5,19,"settings.rprofiles.mpeg2bitrate_label")),a(2),p("ngModel",e.profile.RecProfParams[e.findIx("high_mpeg4avgbitrate","13500")].Value)("showButtons",!0)("min",1e3)("max",13500)("step",500),a(2),T("
",f(9,21,"settings.rprofiles.mpeg2bitrate_desc"),"
"),a(4),S(f(13,23,"settings.rprofiles.mpeg2maxbitrate_label")),a(2),p("ngModel",e.profile.RecProfParams[e.findIx("high_mpeg4peakbitrate","20200")].Value)("showButtons",!0)("min",1100)("max",20200)("step",500),a(2),T("
",f(17,25,"settings.rprofiles.mpeg2maxbitrate_desc"),"
")}}function mie(t,i){if(1&t){const
e=I();l(0,"div",12)(1,"p-checkbox",73,74),C("ngModelChange",function(s){v(e);
const r=d(3);return
r.profile.RecProfParams[r.findIx("scalebitrate",!0)].Value=s}),m(3,"translate"),c(),l(4,"small",15),g(5),m(6,"translate"),c()()}if(2&t){const
e=d(3);a(1),x("label",f(3,4,"settings.rprofiles.scalebitrate_label")),p("ngModel",e.profile.RecProfParams[e.findIx("scalebitrate",!0)].Value)("binary",!0),a(4),T("
",f(6,6,"settings.rprofiles.scalebitrate_desc")," ")}}function
fie(t,i){if(1&t){const
e=I();l(0,"div",12)(1,"p-checkbox",75,76),C("ngModelChange",function(s){v(e);const
r=d(3);return
r.profile.RecProfParams[r.findIx("mpeg4optionvhq",!1)].Value=s}),m(3,"translate"),c(),l(4,"small",15),g(5),m(6,"translate"),c()()}if(2&t){const
e=d(3);a(1),x("label",f(3,4,"settings.rprofiles.mpeg4optionvhq_label")),p("ngModel",e.profile.RecProfParams[e.findIx("mpeg4optionvhq",!1)].Value)("binary",!0),a(4),T("
",f(6,6,"settings.rprofiles.mpeg4optionvhq_desc")," ")}}function
gie(t,i){if(1&t){const
e=I();l(0,"div",12)(1,"p-checkbox",77,78),C("ngModelChange",function(s){v(e);const
r=d(3
);return
r.profile.RecProfParams[r.findIx("mpeg4option4mv",!1)].Value=s}),m(3,"translate"),c(),l(4,"small",15),g(5),m(6,"translate"),c()()}if(2&t){const
e=d(3);a(1),x("label",f(3,4,"settings.rprofiles.mpeg4option4mv_label")),p("ngModel",e.profile.RecProfParams[e.findIx("mpeg4option4mv",!1)].Value)("binary",!0),a(4),T("
",f(6,6,"settings.rprofiles.mpeg4option4mv_desc")," ")}}function
_ie(t,i){if(1&t){const
e=I();l(0,"div",12)(1,"p-checkbox",79,80),C("ngModelChange",function(s){v(e);const
r=d(3);return
r.profile.RecProfParams[r.findIx("mpeg4optionidct",!1)].Value=s}),m(3,"translate"),c(),l(4,"small",15),g(5),m(6,"translate"),c()()}if(2&t){const
e=d(3);a(1),x("label",f(3,4,"settings.rprofiles.mpeg4optionidct_label")),p("ngModel",e.profile.RecProfParams[e.findIx("mpeg4optionidct",!1)].Value)("binary",!0),a(4),T("
",f(6,6,"settings.rprofiles.mpeg4optionidct_desc")," ")}}function
bie(t,i){if(1&t){const
e=I();l(0,"div",12)(1,"p-checkbox",81,82),C("ngModelChange",function(s){v(e);const
r=d(
3);return
r.profile.RecProfParams[r.findIx("mpeg4optionime",!1)].Value=s}),m(3,"translate"),c(),l(4,"small",15),g(5),m(6,"translate"),c()()}if(2&t){const
e=d(3);a(1),x("label",f(3,4,"settings.rprofiles.mpeg4optionime_label")),p("ngModel",e.profile.RecProfParams[e.findIx("mpeg4optionime",!1)].Value)("binary",!0),a(4),T("
",f(6,6,"settings.rprofiles.mpeg4optionime_desc")," ")}}function
vie(t,i){if(1&t){const
e=I();l(0,"div",12)(1,"label",83),g(2),m(3,"translate"),c(),l(4,"p-inputNumber",84),C("ngModelChange",function(s){v(e);const
r=d(3);return
r.profile.RecProfParams[r.findIx("encodingthreadcount","1")].Value=s}),c(),l(5,"small",15),g(6),m(7,"translate"),c()()}if(2&t){const
e=d(3);a(2),S(f(3,7,"settings.rprofiles.encodingthreadcount_label")),a(2),p("ngModel",e.profile.RecProfParams[e.findIx("encodingthreadcount","1")].Value)("showButtons",!0)("min",1)("max",8)("step",1),a(2),T("
",f(7,9,"settings.rprofiles.encodingthreadcount_desc"),"
")}}function Cie(t,i){if(1&t&&(l(0,"p-fieldset",2
5),m(1,"translate"),_(2,Qne,7,10,"div",10),_(3,Jne,8,11,"div",10),_(4,Yne,8,11,"div",10),_(5,Zne,8,11,"div",10),_(6,Xne,8,11,"div",10),_(7,eie,8,11,"div",10),_(8,tie,8,11,"div",10),_(9,nie,6,8,"div",10),_(10,iie,7,11,"div",10),_(11,sie,7,11,"div",10),_(12,rie,8,11,"div",10),_(13,oie,9,13,"div",10),_(14,lie,9,14,"div",10),_(15,cie,8,11,"div",10),_(16,uie,8,11,"div",10),_(17,die,18,27,"p-fieldset",11),_(18,pie,18,27,"p-fieldset",11),_(19,hie,18,27,"p-fieldset",11),_(20,mie,7,8,"div",10),_(21,fie,7,8,"div",10),_(22,gie,7,8,"div",10),_(23,_ie,7,8,"div",10),_(24,bie,7,8,"div",10),_(25,vie,8,11,"div",10),c()),2&t){const
e=d(2);x("legend",f(1,27,"settings.rprofiles.video_label")),p("toggleable",!0)("collapsed",!0),a(2),p("ngIf",e.params.Video.length>0),a(1),p("ngIf","RTjpeg"==e.profile.VideoCodec),a(1),p("ngIf","RTjpeg"==e.profile.VideoCodec),a(1),p("ngIf","RTjpeg"==e.profile.VideoCodec),a(1),p("ngIf","MPEG-4"==e.profile.VideoCodec),a(1),p("ngIf","MPEG-4"==e.profile.VideoCodec),a(1),p("ngI
f","MPEG-4"==e.profile.VideoCodec),a(1),p("ngIf","Hardware
MJPEG"==e.profile.VideoCodec),a(1),p("ngIf","Hardware
MJPEG"==e.profile.VideoCodec),a(1),p("ngIf","Hardware
MJPEG"==e.profile.VideoCodec),a(1),p("ngIf","MPEG-4"==e.profile.VideoCodec),a(1),p("ngIf","MPEG-2
Hardware Encoder"==e.profile.VideoCodec),a(1),p("ngIf","MPEG-2
Hardware
Encoder"==e.profile.VideoCodec),a(1),p("ngIf","MPEG-2"==e.profile.VideoCodec||"MPEG-2
Hardware Encoder"==e.profile.VideoCodec),a(1),p("ngIf","MPEG-2
Hardware Encoder"==e.profile.VideoCodec),a(1),p("ngIf","MPEG-4 AVC
Hardware Encoder"==e.profile.VideoCodec),a(1),p("ngIf","MPEG-4 AVC
Hardware Encoder"==e.profile.VideoCodec),a(1),p("ngIf","MPEG-4 AVC
Hardware
Encoder"==e.profile.VideoCodec),a(1),p("ngIf","MPEG-4"==e.profile.VideoCodec||"MPEG-2"==e.profile.VideoCodec),a(1),p("ngIf","MPEG-4"==e.profile.VideoCodec),a(1),p("ngIf","MPEG-4"==e.profile.VideoCodec),a(1),p("ngIf","MPEG-4"==e.profile.VideoCodec),a(1),p("ngIf","MPEG-4"==e.profile.VideoCodec),a(1),p(
"ngIf","MPEG-4"==e.profile.VideoCodec||"MPEG-2"==e.profile.VideoCodec)}}function
yie(t,i){if(1&t){const
e=I();l(0,"div",12)(1,"label",85),g(2),m(3,"translate"),c(),l(4,"p-dropdown",86,87),C("ngModelChange",function(s){return
v(e),d(3).profile.AudioCodec=s}),c(),k(6,"small",15),c()}if(2&t){const
e=d(3);a(2),S(f(3,7,"settings.rprofiles.audiocodec_label")),a(2),q(A(9,Ms)),p("options",e.params.Audio)("ngModel",e.profile.AudioCodec)("editable",!1)("maxlength",0)}}function
wie(t,i){if(1&t){const
e=I();l(0,"div",12)(1,"label",88),g(2),m(3,"translate"),c(),l(4,"p-dropdown",89,90),C("ngModelChange",function(s){v(e);const
r=d(3);return
r.profile.RecProfParams[r.findIx("samplerate","32000")].Value=s}),c(),l(6,"small",15),g(7),m(8,"translate"),c()()}if(2&t){const
e=d(3);a(2),S(f(3,8,"settings.rprofiles.samplerate_label")),a(2),q(A(12,Ms)),p("options",e.samplerateOptions)("ngModel",e.profile.RecProfParams[e.findIx("samplerate","32000")].Value)("editable",!1)("maxlength",0),a(3),T("
",f(8,10,"set
tings.rprofiles.samplerate_desc")," ")}}function
Tie(t,i){if(1&t){const
e=I();l(0,"div",12)(1,"label",91),g(2),m(3,"translate"),c(),l(4,"p-dropdown",92,93),C("ngModelChange",function(s){v(e);const
r=d(3);return
r.profile.RecProfParams[r.findIx("mpeg2language","32000")].Value=s}),c(),l(6,"small",15),g(7),m(8,"translate"),c()()}if(2&t){const
e=d(3);a(2),S(f(3,8,"settings.rprofiles.mpeg2language_label")),a(2),q(A(12,Ms)),p("options",e.mpeg2languageOptions)("ngModel",e.profile.RecProfParams[e.findIx("mpeg2language","32000")].Value)("editable",!1)("maxlength",0),a(3),T("
",f(8,10,"settings.rprofiles.mpeg2language_desc")," ")}}function
Sie(t,i){if(1&t){const
e=I();l(0,"div",12)(1,"label",94),g(2),m(3,"translate"),c(),l(4,"p-inputNumber",95),C("ngModelChange",function(s){v(e);const
r=d(3);return
r.profile.RecProfParams[r.findIx("mp3quality","1")].Value=s}),c(),l(5,"small",15),g(6),m(7,"translate"),c()()}if(2&t){const
e=d(3);a(2),S(f(3,7,"settings.rprofiles.mp3quality_label")),a(2),p("ngMod
el",e.profile.RecProfParams[e.findIx("mp3quality","1")].Value)("showButtons",!0)("min",1)("max",9)("step",1),a(2),T("
",f(7,9,"settings.rprofiles.mp3quality_desc")," ")}}function
xie(t,i){if(1&t){const
e=I();l(0,"div",12)(1,"label",96),g(2),m(3,"translate"),c(),l(4,"p-inputNumber",97),C("ngModelChange",function(s){v(e);const
r=d(3);return
r.profile.RecProfParams[r.findIx("volume","90")].Value=s}),c(),l(5,"small",15),g(6),m(7,"translate"),c()()}if(2&t){const
e=d(3);a(2),S(f(3,7,"settings.rprofiles.volume_label")),a(2),p("ngModel",e.profile.RecProfParams[e.findIx("volume","90")].Value)("showButtons",!0)("min",0)("max",100)("step",1),a(2),T("
",f(7,9,"settings.rprofiles.volume_desc")," ")}}function
Die(t,i){if(1&t){const
e=I();l(0,"div",12)(1,"label",98),g(2),m(3,"translate"),c(),l(4,"p-inputNumber",99),C("ngModelChange",function(s){v(e);const
r=d(3);return
r.profile.RecProfParams[r.findIx("mpeg2audvolume","90")].Value=s}),c(),l(5,"small",15),g(6),m(7,"translate"),c()()}if(2&t){const
e
=d(3);a(2),S(f(3,7,"settings.rprofiles.volume_label")),a(2),p("ngModel",e.profile.RecProfParams[e.findIx("mpeg2audvolume","90")].Value)("showButtons",!0)("min",0)("max",100)("step",1),a(2),T("
",f(7,9,"settings.rprofiles.mpeg2audvolume_desc")," ")}}function
Mie(t,i){if(1&t&&(l(0,"p-fieldset",25),m(1,"translate"),_(2,yie,7,10,"div",10),_(3,wie,9,13,"div",10),_(4,Tie,9,13,"div",10),_(5,Sie,8,11,"div",10),_(6,xie,8,11,"div",10),_(7,Die,8,11,"div",10),c()),2&t){const
e=d(2);x("legend",f(1,9,"settings.rprofiles.audio_label")),p("toggleable",!0)("collapsed",!0),a(2),p("ngIf",e.params.Audio.length>0),a(1),p("ngIf","MP3"==e.profile.AudioCodec||"MPEG-2
Hardware
Encoder"==e.profile.AudioCodec||"Uncompressed"==e.profile.AudioCodec),a(1),p("ngIf","MPEG-2
Hardware
Encoder"==e.profile.AudioCodec),a(1),p("ngIf","MP3"==e.profile.AudioCodec),a(1),p("ngIf","MP3"==e.profile.AudioCodec||"Uncompressed"==e.profile.AudioCodec),a(1),p("ngIf","MPEG-2
Hardware Encoder"==e.profile.AudioCodec)}}function kie(t,
i){if(1&t&&(l(0,"div",8)(1,"div",9),_(2,zne,7,8,"div",10),_(3,jne,8,11,"div",10),_(4,$ne,8,11,"div",10),_(5,Wne,9,13,"div",10),_(6,Kne,7,8,"div",10),_(7,Cie,26,29,"p-fieldset",11),_(8,Mie,8,11,"p-fieldset",11),c()()),2&t){const
e=d();a(2),p("ngIf",e.params.Param.includes("autotranscode")),a(1),p("ngIf",e.params.Param.includes("width")),a(1),p("ngIf",e.params.Param.includes("height")),a(1),p("ngIf",e.params.Param.includes("recordingtype")),a(1),p("ngIf",e.params.Param.includes("recordmpts")),a(1),p("ngIf",e.params.Video.length>0),a(1),p("ngIf",e.params.Audio.length>0)}}function
Iie(t,i){1&t&&(k(0,"p-message",105),m(1,"translate")),2&t&&x("text",f(1,1,"common.savesuccess"))}function
Eie(t,i){1&t&&(k(0,"p-message",106),m(1,"translate")),2&t&&x("text",f(1,1,"common.networkfail"))}function
Rie(t,i){if(1&t){const
e=I();l(0,"div",100)(1,"div",101),_(2,Iie,2,3,"p-message",102),_(3,Eie,2,3,"p-message",103),c(),l(4,"p-button",104),C("onClick",function(){v(e);const
s=d(),r=F(1);return s.saveFo
rm(1),r.form.markAsPristine()}),m(5,"translate"),c()()}if(2&t){const
e=d(),n=F(1);a(2),p("ngIf",e.successCount>0&&0==e.errorCount&&!n.dirty),a(1),p("ngIf",e.errorCount>0),a(1),x("label",f(5,4,"common.save")),p("disabled",!n.dirty||e.setupService.schedulingEnabled)}}let
Lie=(()=>{class
t{constructor(e,n,s){this.translate=e,this.captureCardService=n,this.setupService=s,this.successCount=0,this.errorCount=0,this.expectedCount=0,this.paramList=[{CardType:"V4L",Param:["autotranscode","height","width"],Video:["RTjpeg","MPEG-4"],Audio:["MP3","Uncompressed"]},{CardType:"MPEG",Param:["autotranscode","height","width"],Video:["MPEG-2
Hardware Encoder"],Audio:["MPEG-2 Hardware
Encoder"]},{CardType:"MJPEG",Param:["autotranscode","height","width"],Video:["Hardware
MJPEG"],Audio:["MP3","Uncompressed"]},{CardType:"HDTV",Param:["autotranscode","height","width"],Video:["RTjpeg","MPEG-4"],Audio:["MP3","Uncompressed"]},{CardType:"DVB",Param:["autotranscode","recordingtype","recordmpts"],Video:[],Audio:
[]},{CardType:"FIREWIRE",Param:["autotranscode"],Video:[],Audio:[]},{CardType:"GO7007",Param:["autotranscode","height","width"],Video:["MPEG-4","MPEG-2"],Audio:["MP3","Uncompressed"]},{CardType:"IMPORT",Param:["autotranscode"],Video:[],Audio:[]},{CardType:"FREEBOX",Param:["autotranscode","recordmpts"],Video:[],Audio:[]},{CardType:"HDHOMERUN",Param:["autotranscode","recordingtype","recordmpts"],Video:[],Audio:[]},{CardType:"CRC_IP",Param:["autotranscode","height","width"],Video:["RTjpeg","MPEG-4"],Audio:["MP3","Uncompressed"]},{CardType:"HDPVR",Param:["autotranscode"],Video:["MPEG-4
AVC Hardware Encoder"],Audio:["AC3 Hardware Encoder","AAC Hardware
Encoder"]},{CardType:"ASI",Param:["autotranscode","recordmpts"],Video:[],Audio:[]},{CardType:"OCUR",Param:["autotranscode","height","width"],Video:["RTjpeg","MPEG-4"],Audio:["MP3","Uncompressed"]},{CardType:"CETON",Param:["autotranscode","recordmpts"],Video:[],Audio:[]},{CardType:"VBOX",Param:["autotranscode","recordmpts"],Video:[],Audio:[
]},{CardType:"SATIP",Param:["autotranscode","recordingtype","recordmpts"],Video:[],Audio:[]},{CardType:"V4L2:uvcvideo",Param:["autotranscode","height","width"],Video:["V4L2:MPEG-2
Video"],Audio:["V4L2:MPEG-1/2 Layer II
encoding"]},{CardType:"TRANSCODE",Param:["autotranscode","height","width"],Video:["RTjpeg","MPEG-4"],Audio:["MP3","Uncompressed"]}],this.params={CardType:"",Param:[""],Video:[""],Audio:[""]},this.videoParamList=[{Codec:"RTjpeg",Param:["rtjpegquality","rtjpeglumafilter","rtjpegchromafilter"]},{Codec:"MPEG-4",Param:["mpeg4bitrate","mpeg4maxquality","mpeg4minquality","mpeg4qualdiff","scalebitrate","mpeg4optionvhq","mpeg4option4mv","mpeg4optionidct","mpeg4optionime","encodingthreadcount"]},{Codec:"MPEG-2",Param:["mpeg2bitrate","scalebitrate","encodingthreadcount"]},{Codec:"Hardware
MJPEG",Param:["hardwaremjpegquality","hardwaremjpeghdecimation","hardwaremjpegvdecimation"]},{Codec:"MPEG-2
Hardware
Encoder",Param:["mpeg2streamtype","mpeg2aspectratio","mpeg2bitrate","mpeg2ma
xbitrate"]},{Codec:"MPEG-4 AVC Hardware
Encoder",Param:["low_mpeg4avgbitrate","low_mpeg4peakbitrate","medium_mpeg4avgbitrate","medium_mpeg4peakbitrate","high_mpeg4avgbitrate","high_mpeg4peakbitrate"]},{Codec:"V4L2:MPEG-2
Video",Param:[]}],this.audioParamList=[{Codec:"MP3",Param:["samplerate","mp3quality","volume"]},{Codec:"MPEG-2
Hardware
Encoder",Param:["samplerate","mpeg2language","mpeg2audvolume"]},{Codec:"Uncompressed",Param:["samplerate","volume"]}],this.recordingtypeOptions=[{Name:"settings.rprofiles.rectype_normal",Value:"all"},{Name:"settings.rprofiles.rectype_tv",Value:"tv"},{Name:"settings.rprofiles.rectype_audio",Value:"audio"}],this.samplerateOptions=["32000","44100","48000"],this.streamTypeOptions=["MPEG-2
PS","MPEG-2 TS","MPEG-1 VCD","PES AV","PES
V","PES A","DVD","DVD-Special 1","DVD-Special
2"],this.mpeg2languageOptions=[{Name:"settings.rprofiles.lang_main",Value:"0"},{Name:"settings.rprofiles.lang_sap",Value:"1"},{Name:"settings.rprofiles.lang_dual",Value:"2"}],this
.saveObserver={next:r=>{this.profile.Id&&r.bool?this.successCount++:!this.profile.Id&&r.int?(this.successCount++,this.profile.Id=r.int,this.saveForm(2)):(console.log("saveObserver
error",r),this.errorCount++,this.currentForm.form.markAsDirty())},error:r=>{console.log("saveObserver
error",r),this.errorCount++,this.currentForm.form.markAsDirty()}},this.recordingtypeOptions.forEach(r=>{e.get(r.Name).subscribe(o=>r.Name=o)}),this.mpeg2languageOptions.forEach(r=>{e.get(r.Name).subscribe(o=>r.Name=o)})}ngOnInit(){let
e=this.paramList.find(n=>n.CardType==this.group.CardType);e&&(this.params=e)}ngAfterViewInit(){this.setupService.setCurrentForm(this.currentForm),this.topElement.nativeElement.scrollIntoView({behavior:"smooth",block:"start"})}findIx(e,n){let
s=this.profile.RecProfParams.findIndex(r=>r.Name==e);return-1==s?s=this.profile.RecProfParams.push({Name:e,Value:n})-1:"boolean"==typeof
n&&"string"==typeof
this.profile.RecProfParams[s].Value&&(this.profile.RecProfParams[s].Value="1"==th
is.profile.RecProfParams[s].Value),s}saveForm(e){switch(e){case
1:if(this.successCount=0,this.errorCount=0,this.expectedCount=0,this.profile.Id<=0)return
this.captureCardService.AddRecProfile(this.group.Id,this.profile.Name,this.profile.VideoCodec,this.profile.AudioCodec).subscribe(this.saveObserver),void
this.expectedCount++;this.captureCardService.UpdateRecProfile(this.profile.Id,this.profile.VideoCodec,this.profile.AudioCodec).subscribe(this.saveObserver),this.expectedCount++;case
2:this.saveParams(this.params.Param);let
n=this.videoParamList.find(r=>r.Codec==this.profile.VideoCodec);n?this.saveParams(n.Param):(console.log("ERROR
videoparams not found"),this.errorCount++,this.currentForm.form.markAsDirty());let
s=this.audioParamList.find(r=>r.Codec==this.profile.AudioCodec);s?this.saveParams(s.Param):(console.log("ERROR
audioparams not
found"),this.errorCount++,this.currentForm.form.markAsDirty())}}saveParams(e){e.forEach(n=>{let
s=this.profile.RecProfParams[this.findIx(n,"0")].V
alue;s="boolean"==typeof
s?s?"1":"0":s.toString(),this.captureCardService.UpdateRecProfileParam(this.profile.Id,n,s).subscribe(this.saveObserver),this.expectedCount++})}}return
t.\u0275fac=function(e){return
new(e||t)(D(Oe),D(Gt),D(Me))},t.\u0275cmp=z({type:t,selectors:[["app-recprofile"]],viewQuery:function(e,n){if(1&e&&(W(Hne,5),W(qne,5)),2&e){let
s;V(s=B())&&(n.currentForm=s.first),V(s=B())&&(n.topElement=s.first)}},inputs:{profile:"profile",group:"group",parentComponent:"parentComponent"},decls:9,vars:0,consts:[["name","recprofform",1,"ml-3","mr-3"],["recprofform","ngForm"],["top",""],[1,"m-5"],["pTemplate","title"],["pTemplate","subtitle"],["pTemplate","content"],["pTemplate","footer"],[1,"grid"],[1,"mb-4","w-full"],["class","form-group
field",4,"ngIf"],["class","mb-4
w-full",3,"legend","toggleable","collapsed",4,"ngIf"],[1,"form-group","field"],["inputId","autotranscode","name","autotranscode",1,"label","mb-2","w-full",3,"ngModel","binary","label","ngModelChange"],["autotransc
ode","ngModel"],[1,"block"],["for","width",1,"label","block"],["name","width","id","width",3,"ngModel","showButtons","min","max","step","ngModelChange"],["for","height",1,"label","block"],["name","height","id","height",3,"ngModel","showButtons","min","max","step","ngModelChange"],["for","recordingtype",1,"label","block"],["optionLabel","Name","optionValue","Value","name","recordingtype",3,"options","ngModel","editable","maxlength","ngModelChange"],["recordingtype","ngModel"],["inputId","recordmpts","name","recordmpts",1,"label","mb-2","w-full",3,"ngModel","binary","label","ngModelChange"],["recordmpts","ngModel"],[1,"mb-4","w-full",3,"legend","toggleable","collapsed"],["for","VideoCodec",1,"label","block"],["name","VideoCodec",3,"options","ngModel","editable","maxlength","ngModelChange"],["VideoCodec","ngModel"],["for","rtjpegquality",1,"label","block"],["name","rtjpegquality","id","rtjpegquality",3,"ngModel","showButtons","min","max","step","ngModelChange"],["for","rtjpeglumafilter
",1,"label","block"],["name","rtjpeglumafilter","id","rtjpeglumafilter",3,"ngModel","showButtons","min","max","step","ngModelChange"],["for","rtjpegchromafilter",1,"label","block"],["name","rtjpegchromafilter","id","rtjpegchromafilter",3,"ngModel","showButtons","min","max","step","ngModelChange"],["for","mpeg4bitrate",1,"label","block"],["name","mpeg4bitrate","id","mpeg4bitrate",3,"ngModel","showButtons","min","max","step","ngModelChange"],["for","mpeg4maxquality",1,"label","block"],["name","mpeg4maxquality","id","mpeg4maxquality",3,"ngModel","showButtons","min","max","step","ngModelChange"],["for","mpeg4minquality",1,"label","block"],["name","mpeg4minquality","id","mpeg4minquality",3,"ngModel","showButtons","min","max","step","ngModelChange"],["for","hardwaremjpegquality",1,"label","block"],["name","hardwaremjpegquality","id","hardwaremjpegquality",3,"ngModel","showButtons","min","max","step","ngModelChange"],["for","hardwaremjpeghdecimation",1,"label","block"],["name","hardwaremjp
eghdecimation",3,"options","ngModel","editable","maxlength","ngModelChange"],["hardwaremjpeghdecimation","ngModel"],["for","hardwaremjpegvdecimation",1,"label","block"],["name","hardwaremjpegvdecimation",3,"options","ngModel","editable","maxlength","ngModelChange"],["hardwaremjpegvdecimation","ngModel"],["for","mpeg4qualdiff",1,"label","block"],["name","mpeg4qualdiff","id","mpeg4qualdiff",3,"ngModel","showButtons","min","max","step","ngModelChange"],["for","mpeg2streamtype",1,"label","block"],["name","mpeg2streamtype",3,"options","ngModel","editable","maxlength","ngModelChange"],["mpeg2streamtype","ngModel"],["for","mpeg2aspectratio",1,"label","block"],["name","mpeg2aspectratio",3,"options","ngModel","editable","maxlength","ngModelChange"],["mpeg2aspectratio","ngModel"],["for","mpeg2bitrate",1,"label","block"],["name","mpeg2bitrate","id","mpeg2bitrate",3,"ngModel","showButtons","min","max","step","ngModelChange"],["for","mpeg2maxbitrate",1,"label","block"],["name","mpeg2maxbitrate",
"id","mpeg2maxbitrate",3,"ngModel","showButtons","min","max","step","ngModelChange"],["for","low_mpeg4avgbitrate",1,"label","block"],["name","low_mpeg4avgbitrate","id","low_mpeg4avgbitrate",3,"ngModel","showButtons","min","max","step","ngModelChange"],["for","low_mpeg4peakbitrate",1,"label","block"],["name","low_mpeg4peakbitrate","id","low_mpeg4peakbitrate",3,"ngModel","showButtons","min","max","step","ngModelChange"],["for","medium_mpeg4avgbitrate",1,"label","block"],["name","medium_mpeg4avgbitrate","id","medium_mpeg4avgbitrate",3,"ngModel","showButtons","min","max","step","ngModelChange"],["for","medium_mpeg4peakbitrate",1,"label","block"],["name","medium_mpeg4peakbitrate","id","medium_mpeg4peakbitrate",3,"ngModel","showButtons","min","max","step","ngModelChange"],["for","high_mpeg4avgbitrate",1,"label","block"],["name","high_mpeg4avgbitrate","id","high_mpeg4avgbitrate",3,"ngModel","showButtons","min","max","step","ngModelChange"],["for","high_mpeg4peakbitrate",1,"label","block"],
["name","high_mpeg4peakbitrate","id","high_mpeg4peakbitrate",3,"ngModel","showButtons","min","max","step","ngModelChange"],["inputId","scalebitrate","name","scalebitrate",1,"label","mb-2","w-full",3,"ngModel","binary","label","ngModelChange"],["scalebitrate","ngModel"],["inputId","mpeg4optionvhq","name","mpeg4optionvhq",1,"label","mb-2","w-full",3,"ngModel","binary","label","ngModelChange"],["mpeg4optionvhq","ngModel"],["inputId","mpeg4option4mv","name","mpeg4option4mv",1,"label","mb-2","w-full",3,"ngModel","binary","label","ngModelChange"],["mpeg4option4mv","ngModel"],["inputId","mpeg4optionidct","name","mpeg4optionidct",1,"label","mb-2","w-full",3,"ngModel","binary","label","ngModelChange"],["mpeg4optionidct","ngModel"],["inputId","mpeg4optionime","name","mpeg4optionime",1,"label","mb-2","w-full",3,"ngModel","binary","label","ngModelChange"],["mpeg4optionime","ngModel"],["for","encodingthreadcount",1,"label","block"],["name","encodingthreadcount","id","encodingthreadcount",3,"ngMo
del","showButtons","min","max","step","ngModelChange"],["for","AudioCodec",1,"label","block"],["name","AudioCodec",3,"options","ngModel","editable","maxlength","ngModelChange"],["AudioCodec","ngModel"],["for","samplerate",1,"label","block"],["name","samplerate",3,"options","ngModel","editable","maxlength","ngModelChange"],["samplerate","ngModel"],["for","mpeg2language",1,"label","block"],["optionLabel","Name","optionValue","Value","name","mpeg2language",3,"options","ngModel","editable","maxlength","ngModelChange"],["mpeg2language","ngModel"],["for","mp3quality",1,"label","block"],["name","mp3quality","id","mp3quality",3,"ngModel","showButtons","min","max","step","ngModelChange"],["for","volume",1,"label","block"],["name","volume","id","volume",3,"ngModel","showButtons","min","max","step","ngModelChange"],["for","mpeg2audvolume",1,"label","block"],["name","mpeg2audvolume","id","mpeg2audvolume",3,"ngModel","showButtons","min","max","step","ngModelChange"],[1,"grid","nogutter"],[1,"col
-12"],["severity","success",3,"text",4,"ngIf"],["severity","error",3,"text",4,"ngIf"],["icon","pi
pi-save","iconPos","left",1,"col","pr-1",3,"label","disabled","onClick"],["severity","success",3,"text"],["severity","error",3,"text"]],template:function(e,n){1&e&&(l(0,"form",0,1),k(2,"span",null,2),l(4,"p-card",3),_(5,Gne,2,4,"ng-template",4),_(6,Une,0,0,"ng-template",5),_(7,kie,9,7,"ng-template",6),_(8,Rie,6,6,"ng-template",7),c()())},directives:[ze,Ue,He,Ne,ne,Q,sn,Te,_e,pt,Ot,_n,Ui,qe,ve],pipes:[ce],styles:[""]}),t})();const
Oie=["v4l2form"],Aie=["top"];function
Pie(t,i){1&t&&(g(0),m(1,"translate")),2&t&&T("
",f(1,1,"settings.capture.v4l2.title")," ")}function
Fie(t,i){}const Nie=function(){return{minWidth:"80%"}};function
Vie(t,i){if(1&t){const
e=I();l(0,"p-dropdown",17,18),C("ngModelChange",function(s){return
v(e),d(2).currentDevice=s})("onChange",function(){return
v(e),d(2).updateDevice()}),c()}if(2&t){const
e=d(2);q(A(6,Nie)),p("options",e.captureDeviceList.CaptureDeviceList.Ca
ptureDevices)("ngModel",e.currentDevice)("editable",!1)("maxlength",0)}}function
Bie(t,i){if(1&t&&(l(0,"div")(1,"small",19),g(2),c()()),2&t){const
e=d(2);a(2),T(" ",e.warningMessage," ")}}function
Hie(t,i){if(1&t){const
e=I();l(0,"input",20,21),C("ngModelChange",function(s){return
v(e),d(2).currentDevice.FrontendName=s}),c()}2&t&&p("ngModel",d(2).currentDevice.FrontendName)}function
qie(t,i){if(1&t&&(l(0,"div",8)(1,"div",9)(2,"div",10)(3,"label",11),g(4),m(5,"translate"),c(),_(6,Vie,2,7,"p-dropdown",12),_(7,Bie,3,1,"div",13),l(8,"small",14),g(9),m(10,"translate"),c()(),l(11,"div",10)(12,"label",15),g(13),m(14,"translate"),c(),_(15,Hie,2,1,"input",16),l(16,"small",14),g(17),m(18,"translate"),c()()()()),2&t){const
e=d();a(4),S(f(5,7,"settings.capture.v4l2.device_label")),a(2),p("ngIf",e.isReady),a(1),p("ngIf",e.warningMessage),a(2),T("
",f(10,9,"settings.capture.device_desc"),"
"),a(4),S(f(14,11,"settings.capture.v4l2.frontend_label")),a(2),p("ngIf",e.isReady),a(2),T("
",f(18,13,"sett
ings.capture.frontend_desc")," ")}}function
Gie(t,i){1&t&&(k(0,"p-message",27),m(1,"translate")),2&t&&x("text",f(1,1,"common.savesuccess"))}function
Uie(t,i){1&t&&(k(0,"p-message",28),m(1,"translate")),2&t&&x("text",f(1,1,"common.networkfail"))}function
zie(t,i){if(1&t){const
e=I();l(0,"div",22)(1,"div",23),_(2,Gie,2,3,"p-message",24),_(3,Uie,2,3,"p-message",25),c(),l(4,"p-button",26),C("onClick",function(){v(e);const
s=d(),r=F(1);return
s.saveForm(),r.form.markAsPristine()}),m(5,"translate"),c()()}if(2&t){const
e=d(),n=F(1);a(2),p("ngIf",e.successCount>0&&0==e.errorCount&&!n.dirty),a(1),p("ngIf",e.errorCount>0),a(1),x("label",f(5,4,"common.save")),p("disabled",!n.dirty||!e.card.VideoDevice||e.setupService.schedulingEnabled)}}let
jie=(()=>{class
t{constructor(e,n,s){this.captureCardService=e,this.setupService=n,this.translate=s,this.messages={devNotExist:"settings.capture.dvb.devNotExist",unknownName:"settings.capture.dvb.unknownName",devInUse:"settings.capture.dvb.devInUse",noDevSe
lected:"settings.capture.dvb.noDevSelected"},this.captureDeviceList={CaptureDeviceList:{CaptureDevices:[]}},this.currentDevice={FrontendName:"Unknown",InputNames:[""]},this.isReady=!1,this.warningMessage="",this.errorCount=0,this.successCount=0,this.saveObserver={next:r=>{this.card.CardId&&r.bool?this.successCount++:!this.card.CardId&&r.int?(this.successCount++,this.card.CardId=r.int):(this.errorCount++,this.currentForm.form.markAsDirty())},error:r=>{console.error(r),this.errorCount++,this.currentForm.form.markAsDirty()}},s.get(this.messages.devNotExist).subscribe(r=>this.messages.devNotExist=r),s.get(this.messages.unknownName).subscribe(r=>this.messages.unknownName=r),s.get(this.messages.devInUse).subscribe(r=>this.messages.devInUse=r),s.get(this.messages.noDevSelected).subscribe(r=>this.messages.noDevSelected=r)}ngOnInit(){this.captureCardService.GetCaptureDeviceList("V4L2ENC").subscribe({next:e=>{this.captureDeviceList=e,this.setupDevice()},error:e=>{console.log("GetCaptureDevice
List",e),this.errorCount++}})}ngAfterViewInit(){this.setupService.setCurrentForm(this.currentForm),this.topElement.nativeElement.scrollIntoView({behavior:"smooth",block:"start"})}setupDevice(){if(this.card.VideoDevice||this.captureDeviceList.CaptureDeviceList.CaptureDevices.unshift({VideoDevice:"",FrontendName:this.messages.noDevSelected,InputNames:[""]}),this.card.VideoDevice){let
e=this.captureDeviceList.CaptureDeviceList.CaptureDevices.find(n=>n.VideoDevice==this.card.VideoDevice);e?this.currentDevice=e:(this.currentDevice={VideoDevice:this.card.VideoDevice,FrontendName:this.messages.devNotExist,InputNames:[""]},this.captureDeviceList.CaptureDeviceList.CaptureDevices.push(this.currentDevice))}this.currentDevice&&this.card.InputName&&(this.currentDevice.InputNames.includes(this.card.InputName)||this.currentDevice.InputNames.push(this.card.InputName)),this.isReady=!0}updateDevice(){this.card.VideoDevice=this.currentDevice.VideoDevice,this.card.InputName=this.currentDevice.DefaultIn
putName,this.card.SignalTimeout=this.currentDevice.SignalTimeout,this.card.ChannelTimeout=this.currentDevice.ChannelTimeout,this.checkInUse()}checkInUse(){this.warningMessage=this.cardList.CaptureCardList.CaptureCards.find(n=>n.VideoDevice==this.currentDevice.VideoDevice&&n.CardId!=this.card.CardId)?this.messages.devInUse:""}saveForm(){this.successCount=0,this.errorCount=0,this.card.CardId?this.cardList.CaptureCardList.CaptureCards.forEach(e=>{(e.CardId==this.card.CardId||e.ParentId==this.card.CardId)&&this.captureCardService.UpdateCaptureCard(e.CardId,"videodevice",this.card.VideoDevice).subscribe(this.saveObserver)}):this.captureCardService.AddCaptureCard(this.card).subscribe(this.saveObserver)}}return
t.\u0275fac=function(e){return
new(e||t)(D(Gt),D(Me),D(Oe))},t.\u0275cmp=z({type:t,selectors:[["app-v4l2"]],viewQuery:function(e,n){if(1&e&&(W(Oie,5),W(Aie,5)),2&e){let
s;V(s=B())&&(n.currentForm=s.first),V(s=B())&&(n.topElement=s.first)}},inputs:{card:"card",cardList:"cardList"},de
cls:9,vars:0,consts:[["name","v4l2form",1,"ml-3","mr-3"],["v4l2form","ngForm"],["top",""],[1,"m-5"],["pTemplate","title"],["pTemplate","subtitle"],["pTemplate","content"],["pTemplate","footer"],[1,"grid"],[1,"mb-4","w-full"],[1,"form-group","field"],["for","VideoDevice",1,"label","block"],["optionLabel","VideoDevice","name","VideoDevice",3,"options","ngModel","editable","maxlength","style","ngModelChange","onChange",4,"ngIf"],[4,"ngIf"],[1,"block"],["for","FrontendName",1,"label","block"],["pInputText","","id","FrontendName","name","FrontendName","disabled","true","class","mb-2
form-control
w-full",3,"ngModel","ngModelChange",4,"ngIf"],["optionLabel","VideoDevice","name","VideoDevice",3,"options","ngModel","editable","maxlength","ngModelChange","onChange"],["VideoDevice","ngModel"],[1,"p-error","block"],["pInputText","","id","FrontendName","name","FrontendName","disabled","true",1,"mb-2","form-control","w-full",3,"ngModel","ngModelChange"],["FrontendName","ngModel"],[1,"grid","nogut
ter"],[1,"col-12"],["severity","success",3,"text",4,"ngIf"],["severity","error",3,"text",4,"ngIf"],["icon","pi
pi-save","iconPos","left",1,"col","pr-1",3,"label","disabled","onClick"],["severity","success",3,"text"],["severity","error",3,"text"]],template:function(e,n){1&e&&(l(0,"form",0,1),k(2,"span",null,2),l(4,"p-card",3),_(5,Pie,2,3,"ng-template",4),_(6,Fie,0,0,"ng-template",5),_(7,qie,19,15,"ng-template",6),_(8,zie,6,6,"ng-template",7),c()())},directives:[ze,Ue,He,Ne,ne,Q,Ot,Te,_e,_n,Ye,qe,ve],pipes:[ce],styles:[""]}),t})();const
$ie=["hdpvrform"],Wie=["top"];function
Kie(t,i){1&t&&(g(0),m(1,"translate")),2&t&&T("
",f(1,1,"settings.capture.hdpvr.title")," ")}function
Qie(t,i){}const LS=function(){return{minWidth:"80%"}};function
Jie(t,i){if(1&t){const
e=I();l(0,"p-dropdown",21,22),C("ngModelChange",function(s){return
v(e),d(2).currentDevice=s})("onChange",function(){return
v(e),d(2).updateDevice()}),c()}if(2&t){const
e=d(2);q(A(6,LS)),p("options",e.captureDeviceList.CaptureDevi
ceList.CaptureDevices)("ngModel",e.currentDevice)("editable",!1)("maxlength",0)}}function
Yie(t,i){if(1&t&&(l(0,"div")(1,"small",23),g(2),c()()),2&t){const
e=d(2);a(2),T(" ",e.warningMessage," ")}}function
Zie(t,i){if(1&t){const
e=I();l(0,"input",24,25),C("ngModelChange",function(s){return
v(e),d(2).currentDevice.FrontendName=s}),c()}2&t&&p("ngModel",d(2).currentDevice.FrontendName)}function
Xie(t,i){if(1&t){const
e=I();l(0,"p-dropdown",26,27),C("ngModelChange",function(s){return
v(e),d(2).card.AudioDevice=s}),c()}if(2&t){const
e=d(2);q(A(6,LS)),p("options",e.currentDevice.AudioDevices)("ngModel",e.card.AudioDevice)("editable",!1)("maxlength",0)}}function
ese(t,i){if(1&t){const
e=I();l(0,"div",8)(1,"div",9)(2,"div",10)(3,"label",11),g(4),m(5,"translate"),c(),_(6,Jie,2,7,"p-dropdown",12),_(7,Yie,3,1,"div",13),l(8,"small",14),g(9),m(10,"translate"),c()(),l(11,"div",10)(12,"label",15),g(13),m(14,"translate"),c(),_(15,Zie,2,1,"input",16),l(16,"small",14),g(17),m(18,"translate"),c()(),l(
19,"div",10)(20,"label",17),g(21),m(22,"translate"),c(),_(23,Xie,2,7,"p-dropdown",18),l(24,"small",14),g(25),m(26,"translate"),c()(),l(27,"div",10)(28,"label",19),g(29),m(30,"translate"),c(),l(31,"p-inputNumber",20),C("ngModelChange",function(s){return
v(e),d().card.ChannelTimeout=s}),c(),l(32,"small",14),g(33),m(34,"translate"),c()()()()}if(2&t){const
e=d();a(4),S(f(5,17,"settings.capture.v4l2.device_label")),a(2),p("ngIf",e.isReady),a(1),p("ngIf",e.warningMessage),a(2),T("
",f(10,19,"settings.capture.device_desc"),"
"),a(4),S(f(14,21,"settings.capture.v4l2.frontend_label")),a(2),p("ngIf",e.isReady),a(2),T("
",f(18,23,"settings.capture.frontend_desc"),"
"),a(4),S(f(22,25,"settings.capture.hdpvr.audiodevice_label")),a(2),p("ngIf",e.isReady),a(2),T("
",f(26,27,"settings.capture.hdpvr.audiodevice_desc"),"
"),a(4),S(f(30,29,"settings.capture.tunetimeout_label")),a(2),p("ngModel",e.card.ChannelTimeout)("showButtons",!0)("min",2e3)("max",65e3)("step",250),a(2),T("
",f(34,31,"settings.cap
ture.tunetimeout_desc")," ")}}function
tse(t,i){1&t&&(k(0,"p-message",33),m(1,"translate")),2&t&&x("text",f(1,1,"common.savesuccess"))}function
nse(t,i){1&t&&(k(0,"p-message",34),m(1,"translate")),2&t&&x("text",f(1,1,"common.networkfail"))}function
ise(t,i){if(1&t){const
e=I();l(0,"div",28)(1,"div",29),_(2,tse,2,3,"p-message",30),_(3,nse,2,3,"p-message",31),c(),l(4,"p-button",32),C("onClick",function(){v(e);const
s=d(),r=F(1);return
s.saveForm(),r.form.markAsPristine()}),m(5,"translate"),c()()}if(2&t){const
e=d(),n=F(1);a(2),p("ngIf",e.successCount>0&&0==e.errorCount&&!n.dirty),a(1),p("ngIf",e.errorCount>0),a(1),x("label",f(5,4,"common.save")),p("disabled",!n.dirty||!e.card.VideoDevice||e.setupService.schedulingEnabled)}}let
sse=(()=>{class
t{constructor(e,n,s){this.captureCardService=e,this.setupService=n,this.translate=s,this.messages={devNotExist:"settings.capture.dvb.devNotExist",unknownName:"settings.capture.dvb.unknownName",devInUse:"settings.capture.dvb.devInUse",noDevSelecte
d:"settings.capture.dvb.noDevSelected"},this.captureDeviceList={CaptureDeviceList:{CaptureDevices:[]}},this.currentDevice={FrontendName:"Unknown",InputNames:[""]},this.isReady=!1,this.warningMessage="",this.errorCount=0,this.successCount=0,this.saveObserver={next:r=>{this.card.CardId&&r.bool?this.successCount++:!this.card.CardId&&r.int?(this.successCount++,this.card.CardId=r.int):(this.errorCount++,this.currentForm.form.markAsDirty())},error:r=>{console.error(r),this.errorCount++,this.currentForm.form.markAsDirty()}},s.get(this.messages.devNotExist).subscribe(r=>this.messages.devNotExist=r),s.get(this.messages.unknownName).subscribe(r=>this.messages.unknownName=r),s.get(this.messages.devInUse).subscribe(r=>this.messages.devInUse=r),s.get(this.messages.noDevSelected).subscribe(r=>this.messages.noDevSelected=r)}ngOnInit(){this.captureCardService.GetCaptureDeviceList("HDPVR").subscribe({next:e=>{this.captureDeviceList=e,this.setupDevice()},error:e=>{console.log("GetCaptureDeviceList",e
),this.errorCount++}})}setupDevice(){if(this.card.VideoDevice||this.captureDeviceList.CaptureDeviceList.CaptureDevices.unshift({VideoDevice:"",FrontendName:this.messages.noDevSelected,InputNames:[""]}),this.card.VideoDevice){let
e=this.captureDeviceList.CaptureDeviceList.CaptureDevices.find(n=>n.VideoDevice==this.card.VideoDevice);e?this.currentDevice=e:(this.currentDevice={VideoDevice:this.card.VideoDevice,FrontendName:this.messages.devNotExist,InputNames:[""]},this.captureDeviceList.CaptureDeviceList.CaptureDevices.push(this.currentDevice))}this.currentDevice&&this.card.InputName&&(this.currentDevice.InputNames.includes(this.card.InputName)||this.currentDevice.InputNames.push(this.card.InputName)),this.isReady=!0}updateDevice(){this.card.VideoDevice=this.currentDevice.VideoDevice,this.card.InputName=this.currentDevice.DefaultInputName,this.card.AudioDevice="",this.card.ChannelTimeout=this.currentDevice.ChannelTimeout,this.checkInUse()}checkInUse(){this.warningMessage=this.cardList
.CaptureCardList.CaptureCards.find(n=>n.VideoDevice==this.currentDevice.VideoDevice&&n.CardId!=this.card.CardId)?this.messages.devInUse:""}saveForm(){this.successCount=0,this.errorCount=0,this.card.CardId?this.cardList.CaptureCardList.CaptureCards.forEach(e=>{(e.CardId==this.card.CardId||e.ParentId==this.card.CardId)&&(this.captureCardService.UpdateCaptureCard(e.CardId,"videodevice",this.card.VideoDevice).subscribe(this.saveObserver),this.captureCardService.UpdateCaptureCard(e.CardId,"channel_timeout",String(this.card.ChannelTimeout)).subscribe(this.saveObserver),this.captureCardService.UpdateCaptureCard(e.CardId,"audiodevice",String(this.card.AudioDevice)).subscribe(this.saveObserver))}):this.captureCardService.AddCaptureCard(this.card).subscribe(this.saveObserver)}}return
t.\u0275fac=function(e){return
new(e||t)(D(Gt),D(Me),D(Oe))},t.\u0275cmp=z({type:t,selectors:[["app-hdpvr"]],viewQuery:function(e,n){if(1&e&&(W($ie,5),W(Wie,5)),2&e){let
s;V(s=B())&&(n.currentForm=s.first),V(s=B(
))&&(n.topElement=s.first)}},inputs:{card:"card",cardList:"cardList"},decls:9,vars:0,consts:[["name","hdpvrform",1,"ml-3","mr-3"],["dvbform","ngForm"],["top",""],[1,"m-5"],["pTemplate","title"],["pTemplate","subtitle"],["pTemplate","content"],["pTemplate","footer"],[1,"grid"],[1,"mb-4","w-full"],[1,"form-group","field"],["for","VideoDevice",1,"label","block"],["optionLabel","VideoDevice","name","VideoDevice",3,"options","ngModel","editable","maxlength","style","ngModelChange","onChange",4,"ngIf"],[4,"ngIf"],[1,"block"],["for","FrontendName",1,"label","block"],["pInputText","","id","FrontendName","name","FrontendName","disabled","true","class","mb-2
form-control
w-full",3,"ngModel","ngModelChange",4,"ngIf"],["for","AudioDevice",1,"label","block"],["name","AudioDevice",3,"options","ngModel","editable","maxlength","style","ngModelChange",4,"ngIf"],["for","ChannelTimeout",1,"label","block"],["name","ChannelTimeout","id","ChannelTimeout",3,"ngModel","showButtons","min","max","step","ngMo
delChange"],["optionLabel","VideoDevice","name","VideoDevice",3,"options","ngModel","editable","maxlength","ngModelChange","onChange"],["VideoDevice","ngModel"],[1,"p-error","block"],["pInputText","","id","FrontendName","name","FrontendName","disabled","true",1,"mb-2","form-control","w-full",3,"ngModel","ngModelChange"],["FrontendName","ngModel"],["name","AudioDevice",3,"options","ngModel","editable","maxlength","ngModelChange"],["AudioDevice","ngModel"],[1,"grid","nogutter"],[1,"col-12"],["severity","success",3,"text",4,"ngIf"],["severity","error",3,"text",4,"ngIf"],["icon","pi
pi-save","iconPos","left",1,"col","pr-1",3,"label","disabled","onClick"],["severity","success",3,"text"],["severity","error",3,"text"]],template:function(e,n){1&e&&(l(0,"form",0,1),k(2,"span",null,2),l(4,"p-card",3),_(5,Kie,2,3,"ng-template",4),_(6,Qie,0,0,"ng-template",5),_(7,ese,35,33,"ng-template",6),_(8,ise,6,6,"ng-template",7),c()())},directives:[ze,Ue,He,Ne,ne,Q,Ot,Te,_e,_n,Ye,pt,qe,ve],pipes:[ce],styl
es:[""]}),t})();const
rse=["satipform"],ose=["top"];function
ase(t,i){1&t&&(g(0),m(1,"translate")),2&t&&T("
",f(1,1,"settings.capture.satip.title")," ")}function
lse(t,i){}const cse=function(){return{minWidth:"83%"}};function
use(t,i){if(1&t){const
e=I();l(0,"p-dropdown",25,26),C("ngModelChange",function(s){return
v(e),d(2).currentDevice=s})("onChange",function(){return
v(e),d(2).updateDevice()}),c()}if(2&t){const
e=d(2);q(A(6,cse)),p("options",e.captureDeviceList.CaptureDeviceList.CaptureDevices)("ngModel",e.currentDevice)("editable",!1)("maxlength",0)}}function
dse(t,i){if(1&t&&(l(0,"div")(1,"small",27),g(2),c()()),2&t){const
e=d(2);a(2),T(" ",e.warningMessage," ")}}function
pse(t,i){if(1&t){const
e=I();l(0,"div",8)(1,"div",9)(2,"div",10)(3,"label",11),g(4),m(5,"translate"),c(),_(6,use,2,7,"p-dropdown",12),_(7,dse,3,1,"div",13),l(8,"small",14),g(9),m(10,"translate"),c()(),l(11,"div",10)(12,"label",15),g(13),m(14,"translate"),c(),l(15,"div",16),g(16),c(),l(17,"small",14),g(18),m(19
,"translate"),c()(),l(20,"div",10)(21,"label",15),g(22),m(23,"translate"),c(),l(24,"div",16),g(25),c(),l(26,"small",14),g(27),m(28,"translate"),c()(),l(29,"div",10)(30,"label",15),g(31),m(32,"translate"),c(),l(33,"div",16),g(34),c(),l(35,"small",14),g(36),m(37,"translate"),c()(),l(38,"div",10)(39,"label",15),g(40),m(41,"translate"),c(),l(42,"div",16),g(43),c(),l(44,"small",14),g(45),m(46,"translate"),c()(),l(47,"div",10)(48,"label",17),g(49),m(50,"translate"),c(),l(51,"p-inputNumber",18),C("ngModelChange",function(s){return
v(e),d().card.SignalTimeout=s}),c(),l(52,"small",14),g(53),m(54,"translate"),c()(),l(55,"div",10)(56,"label",19),g(57),m(58,"translate"),c(),l(59,"p-inputNumber",20),C("ngModelChange",function(s){return
v(e),d().card.ChannelTimeout=s}),c(),l(60,"small",14),g(61),m(62,"translate"),c()(),l(63,"div",10)(64,"p-checkbox",21,22),C("ngModelChange",function(s){return
v(e),d().card.DVBEITScan=s}),m(66,"translate"),c(),l(67,"small",14),g(68),m(69,"translate"),c()(),l(70,"d
iv",10)(71,"label",23),g(72),m(73,"translate"),c(),l(74,"p-inputNumber",24),C("ngModelChange",function(s){return
v(e),d().card.DVBDiSEqCType=s}),c(),l(75,"small",14),g(76),m(77,"translate"),c()()()()}if(2&t){const
e=d();a(4),S(f(5,41,"settings.capture.satip.device_label")),a(2),p("ngIf",e.isReady),a(1),p("ngIf",e.warningMessage),a(2),T("
",f(10,43,"settings.capture.satip.device_desc"),"
"),a(4),S(f(14,45,"settings.capture.satip.friendly_label")),a(3),T("
",e.currentDevice.Description," \xa0 "),a(2),T("
",f(19,47,"settings.capture.satip.friendly_desc"),"
"),a(4),S(f(23,49,"settings.capture.satip.tunertype_label")),a(3),T("
",e.currentDevice.TunerType," \xa0 "),a(2),T("
",f(28,51,"settings.capture.tunertype_desc"),"
"),a(4),S(f(32,53,"settings.capture.satip.tunerindex_label")),a(3),T("
",e.currentDevice.TunerNumber," \xa0 "),a(2),T("
",f(37,55,"settings.capture.tunerindex_desc"),"
"),a(4),S(f(41,57,"settings.capture.satip.deviceid_label")),a(3),T("
",e.card.VideoDevice," \xa0 "),a(2),
T(" ",f(46,59,"settings.capture.deviceid_desc"),"
"),a(4),S(f(50,61,"settings.capture.sigtimeout_label")),a(2),p("ngModel",e.card.SignalTimeout)("showButtons",!0)("min",250)("max",6e4)("step",250),a(2),T("
",f(54,63,"settings.capture.sigtimeout_desc"),"
"),a(4),S(f(58,65,"settings.capture.tunetimeout_label")),a(2),p("ngModel",e.card.ChannelTimeout)("showButtons",!0)("min",2e3)("max",65e3)("step",250),a(2),T("
",f(62,67,"settings.capture.tunetimeout_desc"),"
"),a(3),x("label",f(66,69,"settings.capture.dvb.eitscan_label")),p("ngModel",e.card.DVBEITScan)("binary",!0),a(4),T("
",f(69,71,"settings.capture.dvb.eitscan_desc"),"
"),a(4),S(f(73,73,"settings.capture.satip.diseqcpos_label")),a(2),p("ngModel",e.card.DVBDiSEqCType)("showButtons",!0)("min",1)("max",255)("step",1),a(2),T("
",f(77,75,"settings.capture.satip.diseqcpos_desc")," ")}}function
hse(t,i){1&t&&(k(0,"p-message",33),m(1,"translate")),2&t&&x("text",f(1,1,"common.savesuccess"))}function
mse(t,i){1&t&&(k(0,"p-message",34),m(1,"
translate")),2&t&&x("text",f(1,1,"common.networkfail"))}function
fse(t,i){if(1&t){const
e=I();l(0,"div",28)(1,"div",29),_(2,hse,2,3,"p-message",30),_(3,mse,2,3,"p-message",31),c(),l(4,"p-button",32),C("onClick",function(){v(e);const
s=d(),r=F(1);return
s.saveForm(),r.form.markAsPristine()}),m(5,"translate"),c()()}if(2&t){const
e=d(),n=F(1);a(2),p("ngIf",e.successCount>0&&0==e.errorCount&&!n.dirty),a(1),p("ngIf",e.errorCount>0),a(1),x("label",f(5,4,"common.save")),p("disabled",!n.dirty||!e.card.VideoDevice||e.setupService.schedulingEnabled)}}let
gse=(()=>{class
t{constructor(e,n,s){this.captureCardService=e,this.setupService=n,this.translate=s,this.messages={devNotExist:"settings.capture.dvb.devNotExist",unknownName:"settings.capture.dvb.unknownName",devInUse:"settings.capture.dvb.devInUse",noDevSelected:"settings.capture.dvb.noDevSelected"},this.captureDeviceList={CaptureDeviceList:{CaptureDevices:[]}},this.currentDevice={FrontendName:"Unknown",InputNames:[""]},this.isReady=!1,this.
warningMessage="",this.errorCount=0,this.successCount=0,this.saveObserver={next:r=>{this.card.CardId&&r.bool?this.successCount++:!this.card.CardId&&r.int?(this.successCount++,this.card.CardId=r.int,this.cardList.CaptureCardList.CaptureCards.push(this.card)):(this.errorCount++,this.currentForm.form.markAsDirty())},error:r=>{console.error(r),this.errorCount++,this.currentForm.form.markAsDirty()}},s.get(this.messages.devNotExist).subscribe(r=>this.messages.devNotExist=r),s.get(this.messages.unknownName).subscribe(r=>this.messages.unknownName=r),s.get(this.messages.devInUse).subscribe(r=>this.messages.devInUse=r),s.get(this.messages.noDevSelected).subscribe(r=>this.messages.noDevSelected=r)}ngOnInit(){this.captureCardService.GetCaptureDeviceList("SATIP").subscribe({next:e=>{this.captureDeviceList=e,this.setupDevice()},error:e=>{console.log("GetCaptureDeviceList",e),this.errorCount++}})}ngAfterViewInit(){this.setupService.setCurrentForm(this.currentForm),this.topElement.nativeElement.scr
ollIntoView({behavior:"smooth",block:"start"})}setupDevice(){if(this.card.VideoDevice||this.captureDeviceList.CaptureDeviceList.CaptureDevices.unshift({VideoDevice:"",VideoDevicePrompt:this.messages.noDevSelected}),this.card.VideoDevice){let
e=this.captureDeviceList.CaptureDeviceList.CaptureDevices.find(n=>n.VideoDevice==this.card.VideoDevice);e?this.currentDevice=e:(this.currentDevice={VideoDevice:this.card.VideoDevice,Description:this.messages.devNotExist},this.captureDeviceList.CaptureDeviceList.CaptureDevices.push(this.currentDevice))}this.isReady=!0}updateDevice(){this.card.VideoDevice=this.currentDevice.VideoDevice,this.card.ChannelTimeout=this.currentDevice.ChannelTimeout,this.card.SignalTimeout=this.currentDevice.SignalTimeout,this.checkInUse()}checkInUse(){this.warningMessage=this.cardList.CaptureCardList.CaptureCards.find(n=>n.VideoDevice==this.currentDevice.VideoDevice&&n.CardId!=this.card.CardId)?this.messages.devInUse:""}saveForm(){this.successCount=0,this.errorCount=0,
this.card.CardId?this.cardList.CaptureCardList.CaptureCards.forEach(e=>{(e.CardId==this.card.CardId||e.ParentId==this.card.CardId)&&(this.captureCardService.UpdateCaptureCard(e.CardId,"videodevice",this.card.VideoDevice).subscribe(this.saveObserver),this.captureCardService.UpdateCaptureCard(e.CardId,"signal_timeout",String(this.card.SignalTimeout)).subscribe(this.saveObserver),this.captureCardService.UpdateCaptureCard(e.CardId,"channel_timeout",String(this.card.ChannelTimeout)).subscribe(this.saveObserver),this.captureCardService.UpdateCaptureCard(e.CardId,"dvb_eitscan",String(this.card.DVBEITScan?"1":"0")).subscribe(this.saveObserver),this.captureCardService.UpdateCaptureCard(e.CardId,"dvb_diseqc_type",String(this.card.DVBDiSEqCType)).subscribe(this.saveObserver))}):this.captureCardService.AddCaptureCard(this.card).subscribe(this.saveObserver)}}return
t.\u0275fac=function(e){return
new(e||t)(D(Gt),D(Me),D(Oe))},t.\u0275cmp=z({type:t,selectors:[["app-satip"]],viewQuery:function(e,n)
{if(1&e&&(W(rse,5),W(ose,5)),2&e){let
s;V(s=B())&&(n.currentForm=s.first),V(s=B())&&(n.topElement=s.first)}},inputs:{card:"card",cardList:"cardList"},decls:9,vars:0,consts:[["name","satipform",1,"ml-3","mr-3"],["satipform","ngForm"],["top",""],[1,"m-5"],["pTemplate","title"],["pTemplate","subtitle"],["pTemplate","content"],["pTemplate","footer"],[1,"grid"],[1,"mb-4","w-full"],[1,"form-group","field"],["for","VideoDevice",1,"label","block"],["optionLabel","VideoDevicePrompt","name","VideoDevice",3,"options","ngModel","editable","maxlength","style","ngModelChange","onChange",4,"ngIf"],[4,"ngIf"],[1,"block"],[1,"label","block"],[1,"col-10","bg-blue-100","text-gray-900"],["for","SignalTimeout",1,"label","block"],["name","SignalTimeout","id","SignalTimeout",3,"ngModel","showButtons","min","max","step","ngModelChange"],["for","ChannelTimeout",1,"label","block"],["name","ChannelTimeout","id","ChannelTimeout",3,"ngModel","showButtons","min","max","step","ngModelChange"],["inputId","DVBEITSc
an","name","DVBEITScan",1,"label","mb-2","w-full",3,"ngModel","binary","label","ngModelChange"],["DVBEITScan","ngModel"],["for","DVBDiSEqCType",1,"label","block"],["name","DVBDiSEqCType","id","DVBDiSEqCType",3,"ngModel","showButtons","min","max","step","ngModelChange"],["optionLabel","VideoDevicePrompt","name","VideoDevice",3,"options","ngModel","editable","maxlength","ngModelChange","onChange"],["VideoDevice","ngModel"],[1,"p-error","block"],[1,"grid","nogutter"],[1,"col-12"],["severity","success",3,"text",4,"ngIf"],["severity","error",3,"text",4,"ngIf"],["icon","pi
pi-save","iconPos","left",1,"col","pr-1",3,"label","disabled","onClick"],["severity","success",3,"text"],["severity","error",3,"text"]],template:function(e,n){1&e&&(l(0,"form",0,1),k(2,"span",null,2),l(4,"p-card",3),_(5,ase,2,3,"ng-template",4),_(6,lse,0,0,"ng-template",5),_(7,pse,78,77,"ng-template",6),_(8,fse,6,6,"ng-template",7),c()())},directives:[ze,Ue,He,Ne,ne,Q,Ot,Te,_e,_n,pt,sn,qe,ve],pipes:[ce],styles:[""]}),t}
)();const _se=["vboxform"],bse=["top"];function
vse(t,i){1&t&&(g(0),m(1,"translate")),2&t&&T("
",f(1,1,"settings.capture.vbox.title")," ")}function
Cse(t,i){}const yse=function(){return{minWidth:"83%"}};function
wse(t,i){if(1&t){const
e=I();l(0,"p-dropdown",26,27),C("ngModelChange",function(s){return
v(e),d(2).currentDevice=s})("onChange",function(){return
v(e),d(2).updateDevice()}),c()}if(2&t){const
e=d(2);q(A(6,yse)),p("options",e.captureDeviceList.CaptureDeviceList.CaptureDevices)("ngModel",e.currentDevice)("editable",!1)("maxlength",0)}}function
Tse(t,i){if(1&t&&(l(0,"div")(1,"small",28),g(2),c()()),2&t){const
e=d(2);a(2),T(" ",e.warningMessage," ")}}function
Sse(t,i){if(1&t){const
e=I();l(0,"div",8)(1,"div",9)(2,"div",10)(3,"label",11),g(4),m(5,"translate"),c(),_(6,wse,2,7,"p-dropdown",12),_(7,Tse,3,1,"div",13),l(8,"small",14),g(9),m(10,"translate"),c()(),l(11,"div",10)(12,"label",15),g(13),m(14,"translate"),c(),l(15,"div",16),g(16),c(),l(17,"small",14),g(18),m(19,"translate"),
c()(),l(20,"div",10)(21,"label",15),g(22),m(23,"translate"),c(),l(24,"div",16),g(25),c(),k(26,"small",14),c(),l(27,"div",10)(28,"label",17),g(29),m(30,"translate"),c(),l(31,"input",18,19),C("ngModelChange",function(s){return
v(e),d().currentDevice.IPAddress=s}),c(),l(33,"small",14),g(34),m(35,"translate"),c()(),l(36,"div",10)(37,"label",20),g(38),m(39,"translate"),c(),l(40,"input",21,19),C("ngModelChange",function(s){return
v(e),d().currentDevice.TunerNumber=s}),c(),l(42,"small",14),g(43),m(44,"translate"),c()(),l(45,"div",10)(46,"label",22),g(47),m(48,"translate"),c(),l(49,"p-inputNumber",23),C("ngModelChange",function(s){return
v(e),d().card.SignalTimeout=s}),c(),l(50,"small",14),g(51),m(52,"translate"),c()(),l(53,"div",10)(54,"label",24),g(55),m(56,"translate"),c(),l(57,"p-inputNumber",25),C("ngModelChange",function(s){return
v(e),d().card.ChannelTimeout=s}),c(),l(58,"small",14),g(59),m(60,"translate"),c()()()()}if(2&t){const
e=d();a(4),S(f(5,31,"settings.capture.satip.device_lab
el")),a(2),p("ngIf",e.isReady),a(1),p("ngIf",e.warningMessage),a(2),T("
",f(10,33,"settings.capture.vbox.device_desc"),"
"),a(4),S(f(14,35,"settings.capture.vbox.deviceid_label")),a(3),T("
",e.card.VideoDevice," \xa0 "),a(2),T("
",f(19,37,"settings.capture.vbox.deviceid_desc"),"
"),a(4),S(f(23,39,"settings.capture.vbox.description_label")),a(3),T("
",e.currentDevice.Description," \xa0
"),a(4),S(f(30,41,"settings.capture.ceton.ipaddress_label")),a(2),p("ngModel",e.currentDevice.IPAddress)("disabled",e.currentDevice!==e.manualDevice),a(3),T("
",f(35,43,"settings.capture.vbox.ipaddress_desc"),"
"),a(4),S(f(39,45,"settings.capture.ceton.tuner_label")),a(2),p("ngModel",e.currentDevice.TunerNumber)("disabled",e.currentDevice!==e.manualDevice),a(3),T("
",f(44,47,"settings.capture.vbox.tuner_desc"),"
"),a(4),S(f(48,49,"settings.capture.sigtimeout_label")),a(2),p("ngModel",e.card.SignalTimeout)("showButtons",!0)("min",250)("max",6e4)("step",250),a(2),T("
",f(52,51,"settings.capture.sigtimeou
t_desc"),"
"),a(4),S(f(56,53,"settings.capture.tunetimeout_label")),a(2),p("ngModel",e.card.ChannelTimeout)("showButtons",!0)("min",2e3)("max",65e3)("step",250),a(2),T("
",f(60,55,"settings.capture.tunetimeout_desc")," ")}}function
xse(t,i){1&t&&(k(0,"p-message",34),m(1,"translate")),2&t&&x("text",f(1,1,"common.savesuccess"))}function
Dse(t,i){1&t&&(k(0,"p-message",35),m(1,"translate")),2&t&&x("text",f(1,1,"common.networkfail"))}function
Mse(t,i){if(1&t){const
e=I();l(0,"div",29)(1,"div",30),_(2,xse,2,3,"p-message",31),_(3,Dse,2,3,"p-message",32),c(),l(4,"p-button",33),C("onClick",function(){v(e);const
s=d(),r=F(1);return
s.saveForm(),r.form.markAsPristine()}),m(5,"translate"),c()()}if(2&t){const
e=d(),n=F(1);a(2),p("ngIf",e.successCount>0&&0==e.errorCount&&!n.dirty),a(1),p("ngIf",e.errorCount>0),a(1),x("label",f(5,4,"common.save")),p("disabled",!n.dirty||!e.card.VideoDevice||e.setupService.schedulingEnabled)}}let
kse=(()=>{class t{constructor(e,n,s){this.captureCardService=e,this.s
etupService=n,this.translate=s,this.messages={devNotExist:"settings.capture.dvb.devNotExist",unknownName:"settings.capture.dvb.unknownName",devInUse:"settings.capture.dvb.devInUse",noDevSelected:"settings.capture.dvb.noDevSelected",manuallyEnter:"settings.capture.vbox.manuallyenter"},this.captureDeviceList={CaptureDeviceList:{CaptureDevices:[]}},this.currentDevice={FrontendName:"Unknown",InputNames:[""]},this.isReady=!1,this.warningMessage="",this.errorCount=0,this.successCount=0,this.saveObserver={next:r=>{this.card.CardId&&r.bool?this.successCount++:!this.card.CardId&&r.int?(this.successCount++,this.card.CardId=r.int,this.cardList.CaptureCardList.CaptureCards.push(this.card)):(this.errorCount++,this.currentForm.form.markAsDirty())},error:r=>{console.error(r),this.errorCount++,this.currentForm.form.markAsDirty()}},s.get(this.messages.devNotExist).subscribe(r=>this.messages.devNotExist=r),s.get(this.messages.unknownName).subscribe(r=>this.messages.unknownName=r),s.get(this.messages.
devInUse).subscribe(r=>this.messages.devInUse=r),s.get(this.messages.noDevSelected).subscribe(r=>this.messages.noDevSelected=r),s.get(this.messages.manuallyEnter).subscribe(r=>this.messages.manuallyEnter=r)}ngOnInit(){this.captureCardService.GetCaptureDeviceList("VBOX").subscribe({next:e=>{this.captureDeviceList=e,this.setupDevice()},error:e=>{console.log("GetCaptureDeviceList",e),this.errorCount++}})}ngAfterViewInit(){this.setupService.setCurrentForm(this.currentForm),this.topElement.nativeElement.scrollIntoView({behavior:"smooth",block:"start"})}setupDevice(){if(this.manualDevice={VideoDevicePrompt:this.messages.manuallyEnter,VideoDevice:"",Description:"",IPAddress:"",TunerNumber:0,SignalTimeout:7e3,ChannelTimeout:1e4},this.captureDeviceList.CaptureDeviceList.CaptureDevices.unshift(this.manualDevice),this.card.VideoDevice||this.captureDeviceList.CaptureDeviceList.CaptureDevices.unshift({VideoDevice:"",FrontendName:this.messages.noDevSelected}),this.card.VideoDevice){let
e=this.cap
tureDeviceList.CaptureDeviceList.CaptureDevices.find(n=>n.VideoDevice==this.card.VideoDevice);e?this.currentDevice=e:(this.currentDevice={VideoDevice:this.card.VideoDevice,FrontendName:this.messages.devNotExist},this.captureDeviceList.CaptureDeviceList.CaptureDevices.push(this.currentDevice))}this.isReady=!0}updateDevice(){this.currentDevice===this.manualDevice?this.subscription=this.currentForm.valueChanges.pipe(yS(50)).subscribe(()=>this.card.VideoDevice=this.manualDevice.IPAddress+"-"+this.manualDevice.TunerNumber):this.subscription&&(this.subscription.unsubscribe(),this.subscription=void
0),this.card.VideoDevice=this.currentDevice.VideoDevice,this.card.ChannelTimeout=this.currentDevice.ChannelTimeout,this.card.SignalTimeout=this.currentDevice.SignalTimeout,this.checkInUse()}checkInUse(){this.warningMessage=this.cardList.CaptureCardList.CaptureCards.find(n=>n.VideoDevice==this.currentDevice.VideoDevice&&n.CardId!=this.card.CardId)?this.messages.devInUse:""}saveForm(){this.success
Count=0,this.errorCount=0,this.card.CardId?this.cardList.CaptureCardList.CaptureCards.forEach(e=>{(e.CardId==this.card.CardId||e.ParentId==this.card.CardId)&&(this.captureCardService.UpdateCaptureCard(e.CardId,"videodevice",this.card.VideoDevice).subscribe(this.saveObserver),this.captureCardService.UpdateCaptureCard(e.CardId,"signal_timeout",String(this.card.SignalTimeout)).subscribe(this.saveObserver),this.captureCardService.UpdateCaptureCard(e.CardId,"channel_timeout",String(this.card.ChannelTimeout)).subscribe(this.saveObserver))}):this.captureCardService.AddCaptureCard(this.card).subscribe(this.saveObserver)}}return
t.\u0275fac=function(e){return
new(e||t)(D(Gt),D(Me),D(Oe))},t.\u0275cmp=z({type:t,selectors:[["app-vbox"]],viewQuery:function(e,n){if(1&e&&(W(_se,5),W(bse,5)),2&e){let
s;V(s=B())&&(n.currentForm=s.first),V(s=B())&&(n.topElement=s.first)}},inputs:{card:"card",cardList:"cardList"},decls:9,vars:0,consts:[["name","vboxform",1,"ml-3","mr-3"],["vboxform","ngForm"],["top",
""],[1,"m-5"],["pTemplate","title"],["pTemplate","subtitle"],["pTemplate","content"],["pTemplate","footer"],[1,"grid"],["u","",1,"mb-4","w-full"],[1,"form-group","field"],["for","VideoDevicePrompt",1,"label","block"],["optionLabel","VideoDevicePrompt","name","VideoDevicePrompt",3,"options","ngModel","editable","maxlength","style","ngModelChange","onChange",4,"ngIf"],[4,"ngIf"],[1,"block"],[1,"label","block"],[1,"col-10","bg-blue-100","text-gray-900"],["for","ip",1,"label","block"],["pInputText","","id","ip","name","ip",1,"mb-2","form-control","w-full",3,"ngModel","disabled","ngModelChange"],["ipAddress","ngModel"],["for","tuner",1,"label","block"],["pInputText","","id","tuner","name","tuner",1,"mb-2","form-control","w-full",3,"ngModel","disabled","ngModelChange"],["for","SignalTimeout",1,"label","block"],["name","SignalTimeout","id","SignalTimeout",3,"ngModel","showButtons","min","max","step","ngModelChange"],["for","ChannelTimeout",1,"label","block"],["name","ChannelTimeout","id","
ChannelTimeout",3,"ngModel","showButtons","min","max","step","ngModelChange"],["optionLabel","VideoDevicePrompt","name","VideoDevicePrompt",3,"options","ngModel","editable","maxlength","ngModelChange","onChange"],["VideoDevicePrompt","ngModel"],[1,"p-error","block"],[1,"grid","nogutter"],[1,"col-12"],["severity","success",3,"text",4,"ngIf"],["severity","error",3,"text",4,"ngIf"],["icon","pi
pi-save","iconPos","left",1,"col","pr-1",3,"label","disabled","onClick"],["severity","success",3,"text"],["severity","error",3,"text"]],template:function(e,n){1&e&&(l(0,"form",0,1),k(2,"span",null,2),l(4,"p-card",3),_(5,vse,2,3,"ng-template",4),_(6,Cse,0,0,"ng-template",5),_(7,Sse,61,57,"ng-template",6),_(8,Mse,6,6,"ng-template",7),c()())},directives:[ze,Ue,He,Ne,ne,Q,Ot,Te,_e,_n,Ye,pt,qe,ve],pipes:[ce],styles:[""]}),t})();const
Ise=["firewireform"],Ese=["top"];function
Rse(t,i){1&t&&(g(0),m(1,"translate")),2&t&&T("
",f(1,1,"settings.capture.firewire.title")," ")}function
Lse(t,i){}const Ed=funct
ion(){return{minWidth:"83%"}};function Ose(t,i){if(1&t){const
e=I();l(0,"p-dropdown",30,31),C("ngModelChange",function(s){return
v(e),d(2).currentDevice=s})("onChange",function(){return
v(e),d(2).updateDevice()}),c()}if(2&t){const
e=d(2);q(A(6,Ed)),p("options",e.captureDeviceList.CaptureDeviceList.CaptureDevices)("ngModel",e.currentDevice)("editable",!1)("maxlength",0)}}function
Ase(t,i){if(1&t&&(l(0,"div")(1,"small",32),g(2),c()()),2&t){const
e=d(2);a(2),T(" ",e.warningMessage," ")}}function
Pse(t,i){if(1&t){const
e=I();l(0,"div",8)(1,"div",9)(2,"div",10)(3,"label",11),g(4),m(5,"translate"),c(),_(6,Ose,2,7,"p-dropdown",12),_(7,Ase,3,1,"div",13),k(8,"small",14),c(),l(9,"div",10)(10,"label",15),g(11),m(12,"translate"),c(),l(13,"div",16),g(14),c(),k(15,"small",14),c(),l(16,"div",10)(17,"label",17),g(18),m(19,"translate"),c(),l(20,"p-dropdown",18,19),C("ngModelChange",function(s){return
v(e),d().card.FirewireModel=s}),c(),l(22,"small",14),g(23),m(24,"translate"),c()(),l(25,"div",10)(26
,"label",20),g(27),m(28,"translate"),c(),l(29,"p-dropdown",21,22),C("ngModelChange",function(s){return
v(e),d().card.FirewireConnection=s}),c(),k(31,"small",14),c(),l(32,"div",10)(33,"label",23),g(34),m(35,"translate"),c(),l(36,"p-dropdown",24,25),C("ngModelChange",function(s){return
v(e),d().card.FirewireSpeed=s}),c(),k(38,"small",14),c(),l(39,"div",10)(40,"label",26),g(41),m(42,"translate"),c(),l(43,"p-inputNumber",27),C("ngModelChange",function(s){return
v(e),d().card.SignalTimeout=s}),c(),l(44,"small",14),g(45),m(46,"translate"),c()(),l(47,"div",10)(48,"label",28),g(49),m(50,"translate"),c(),l(51,"p-inputNumber",29),C("ngModelChange",function(s){return
v(e),d().card.ChannelTimeout=s}),c(),l(52,"small",14),g(53),m(54,"translate"),c()()()()}if(2&t){const
e=d();a(4),S(f(5,41,"settings.capture.firewire.device_label")),a(2),p("ngIf",e.isReady),a(1),p("ngIf",e.warningMessage),a(4),S(f(12,43,"settings.capture.vbox.description_label")),a(3),T("
",e.currentDevice.Description," \xa0 "),a(
4),S(f(19,45,"settings.capture.firewire.model_label")),a(2),q(A(61,Ed)),p("options",e.models)("ngModel",e.card.FirewireModel)("editable",!1)("maxlength",0),a(3),T("
",f(24,47,"settings.capture.firewire.model_desc"),"
"),a(4),S(f(28,49,"settings.capture.firewire.connection_label")),a(2),q(A(62,Ed)),p("options",e.connectionTypes)("ngModel",e.card.FirewireConnection)("editable",!1)("maxlength",0),a(5),S(f(35,51,"settings.capture.firewire.speed_label")),a(2),q(A(63,Ed)),p("options",e.speeds)("ngModel",e.card.FirewireSpeed)("editable",!1)("maxlength",0),a(5),S(f(42,53,"settings.capture.sigtimeout_label")),a(2),p("ngModel",e.card.SignalTimeout)("showButtons",!0)("min",250)("max",6e4)("step",250),a(2),T("
",f(46,55,"settings.capture.sigtimeout_desc"),"
"),a(4),S(f(50,57,"settings.capture.tunetimeout_label")),a(2),p("ngModel",e.card.ChannelTimeout)("showButtons",!0)("min",2e3)("max",65e3)("step",250),a(2),T("
",f(54,59,"settings.capture.tunetimeout_desc")," ")}}function
Fse(t,i){1&t&&(k(0,"
p-message",38),m(1,"translate")),2&t&&x("text",f(1,1,"common.savesuccess"))}function
Nse(t,i){1&t&&(k(0,"p-message",39),m(1,"translate")),2&t&&x("text",f(1,1,"common.networkfail"))}function
Vse(t,i){if(1&t){const
e=I();l(0,"div",33)(1,"div",34),_(2,Fse,2,3,"p-message",35),_(3,Nse,2,3,"p-message",36),c(),l(4,"p-button",37),C("onClick",function(){v(e);const
s=d(),r=F(1);return
s.saveForm(),r.form.markAsPristine()}),m(5,"translate"),c()()}if(2&t){const
e=d(),n=F(1);a(2),p("ngIf",e.successCount>0&&0==e.errorCount&&!n.dirty),a(1),p("ngIf",e.errorCount>0),a(1),x("label",f(5,4,"common.save")),p("disabled",!n.dirty||!e.card.VideoDevice||e.setupService.schedulingEnabled)}}let
Bse=(()=>{class
t{constructor(e,n,s){this.captureCardService=e,this.setupService=n,this.translate=s,this.messages={devNotExist:"settings.capture.dvb.devNotExist",unknownName:"settings.capture.dvb.unknownName",devInUse:"settings.capture.dvb.devInUse",noDevSelected:"settings.capture.dvb.noDevSelected",manuallyEnter:"setti
ngs.capture.vbox.manuallyenter"},this.models=[{name:"settings.capture.firewire.motogeneric",value:"MOTO
GENERIC"},{name:"settings.capture.firewire.sageneric",value:"SA
GENERIC"},{name:"DCH-3200",value:"DCH-3200"},{name:"DCX-3200",value:"DCX-3200"},{name:"DCT-3412",value:"DCT-3412"},{name:"DCT-3416",value:"DCT-3416"},{name:"DCT-6200",value:"DCT-6200"},{name:"DCT-6212",value:"DCT-6212"},{name:"DCT-6216",value:"DCT-6216"},{name:"QIP-6200",value:"QIP-6200"},{name:"QIP-7100",value:"QIP-7100"},{name:"PACE-550",value:"PACE-550"},{name:"PACE-779",value:"PACE-779"},{name:"SA3250HD",value:"SA3250HD"},{name:"SA4200HD",value:"SA4200HD"},{name:"SA4250HDC",value:"SA4250HDC"},{name:"SA8300HD",value:"SA8300HD"}],this.connectionTypes=[{name:"settings.capture.firewire.pointtopoint",value:0},{name:"settings.capture.firewire.broadcast",value:1}],this.speeds=[{name:"100Mbps",value:0},{name:"200Mbps",value:1},{name:"400Mbps",value:2},{name:"800Mbps",value:3}],this.captureDeviceList={CaptureDeviceList:{Ca
ptureDevices:[]}},this.currentDevice={FrontendName:"Unknown",InputNames:[""]},this.isReady=!1,this.warningMessage="",this.errorCount=0,this.successCount=0,this.saveObserver={next:r=>{this.card.CardId&&r.bool?this.successCount++:!this.card.CardId&&r.int?(this.successCount++,this.card.CardId=r.int,this.cardList.CaptureCardList.CaptureCards.push(this.card)):(this.errorCount++,this.currentForm.form.markAsDirty())},error:r=>{console.error(r),this.errorCount++,this.currentForm.form.markAsDirty()}},s.get(this.messages.devNotExist).subscribe(r=>this.messages.devNotExist=r),s.get(this.messages.unknownName).subscribe(r=>this.messages.unknownName=r),s.get(this.messages.devInUse).subscribe(r=>this.messages.devInUse=r),s.get(this.messages.noDevSelected).subscribe(r=>this.messages.noDevSelected=r),s.get(this.messages.manuallyEnter).subscribe(r=>this.messages.manuallyEnter=r),s.get(this.models[0].name).subscribe(r=>this.models[0].name=r),s.get(this.models[1].name).subscribe(r=>this.models[1].name=
r),s.get(this.connectionTypes[0].name).subscribe(r=>this.connectionTypes[0].name=r),s.get(this.connectionTypes[1].name).subscribe(r=>this.connectionTypes[1].name=r)}ngOnInit(){this.captureCardService.GetCaptureDeviceList("FIREWIRE").subscribe({next:e=>{this.captureDeviceList=e,this.setupDevice()},error:e=>{console.log("GetCaptureDeviceList",e),this.errorCount++}})}ngAfterViewInit(){this.setupService.setCurrentForm(this.currentForm),this.topElement.nativeElement.scrollIntoView({behavior:"smooth",block:"start"})}setupDevice(){if(this.card.VideoDevice||this.captureDeviceList.CaptureDeviceList.CaptureDevices.unshift({VideoDevice:"",FrontendName:this.messages.noDevSelected}),this.card.VideoDevice){let
e=this.captureDeviceList.CaptureDeviceList.CaptureDevices.find(n=>n.VideoDevice==this.card.VideoDevice);e?this.currentDevice=e:(this.currentDevice={VideoDevice:this.card.VideoDevice,FrontendName:this.messages.devNotExist},this.captureDeviceList.CaptureDeviceList.CaptureDevices.push(this.cur
rentDevice))}this.isReady=!0}updateDevice(){this.card.VideoDevice=this.currentDevice.VideoDevice,this.card.ChannelTimeout=this.currentDevice.ChannelTimeout,this.card.SignalTimeout=this.currentDevice.SignalTimeout,this.card.FirewireModel=this.currentDevice.FirewireModel,this.checkInUse()}checkInUse(){this.warningMessage=this.cardList.CaptureCardList.CaptureCards.find(n=>n.VideoDevice==this.currentDevice.VideoDevice&&n.CardId!=this.card.CardId)?this.messages.devInUse:""}saveForm(){this.successCount=0,this.errorCount=0,this.card.CardId?this.cardList.CaptureCardList.CaptureCards.forEach(e=>{(e.CardId==this.card.CardId||e.ParentId==this.card.CardId)&&(this.captureCardService.UpdateCaptureCard(e.CardId,"videodevice",this.card.VideoDevice).subscribe(this.saveObserver),this.captureCardService.UpdateCaptureCard(e.CardId,"firewire_model",this.card.FirewireModel).subscribe(this.saveObserver),this.captureCardService.UpdateCaptureCard(e.CardId,"firewire_connection",String(this.card.FirewireConne
ction)).subscribe(this.saveObserver),this.captureCardService.UpdateCaptureCard(e.CardId,"firewire_speed",String(this.card.FirewireSpeed)).subscribe(this.saveObserver),this.captureCardService.UpdateCaptureCard(e.CardId,"signal_timeout",String(this.card.SignalTimeout)).subscribe(this.saveObserver),this.captureCardService.UpdateCaptureCard(e.CardId,"channel_timeout",String(this.card.ChannelTimeout)).subscribe(this.saveObserver))}):this.captureCardService.AddCaptureCard(this.card).subscribe(this.saveObserver)}}return
t.\u0275fac=function(e){return
new(e||t)(D(Gt),D(Me),D(Oe))},t.\u0275cmp=z({type:t,selectors:[["app-firewire"]],viewQuery:function(e,n){if(1&e&&(W(Ise,5),W(Ese,5)),2&e){let
s;V(s=B())&&(n.currentForm=s.first),V(s=B())&&(n.topElement=s.first)}},inputs:{card:"card",cardList:"cardList"},decls:9,vars:0,consts:[["name","firewireform",1,"ml-3","mr-3"],["firewireform","ngForm"],["top",""],[1,"m-5"],["pTemplate","title"],["pTemplate","subtitle"],["pTemplate","content"],["pTemplate"
,"footer"],[1,"grid"],[1,"mb-4","w-full"],[1,"form-group","field"],["for","VideoDevice",1,"label","block"],["optionLabel","VideoDevice","name","VideoDevice",3,"options","ngModel","editable","maxlength","style","ngModelChange","onChange",4,"ngIf"],[4,"ngIf"],[1,"block"],[1,"label","block"],[1,"col-10","bg-blue-100","text-gray-900"],["for","FirewireModel",1,"label","block"],["optionLabel","name","optionValue","value","name","FirewireModel",3,"options","ngModel","editable","maxlength","ngModelChange"],["FirewireModel","ngModel"],["for","FirewireConnection",1,"label","block"],["optionLabel","name","optionValue","value","name","FirewireConnection",3,"options","ngModel","editable","maxlength","ngModelChange"],["FirewireConnection","ngModel"],["for","FirewireSpeed",1,"label","block"],["optionLabel","name","optionValue","value","name","FirewireSpeed",3,"options","ngModel","editable","maxlength","ngModelChange"],["FirewireSpeed","ngModel"],["for","SignalTimeout",1,"label","block"],["name","S
ignalTimeout","id","SignalTimeout",3,"ngModel","showButtons","min","max","step","ngModelChange"],["for","ChannelTimeout",1,"label","block"],["name","ChannelTimeout","id","ChannelTimeout",3,"ngModel","showButtons","min","max","step","ngModelChange"],["optionLabel","VideoDevice","name","VideoDevice",3,"options","ngModel","editable","maxlength","ngModelChange","onChange"],["VideoDevice","ngModel"],[1,"p-error","block"],[1,"grid","nogutter"],[1,"col-12"],["severity","success",3,"text",4,"ngIf"],["severity","error",3,"text",4,"ngIf"],["icon","pi
pi-save","iconPos","left",1,"col","pr-1",3,"label","disabled","onClick"],["severity","success",3,"text"],["severity","error",3,"text"]],template:function(e,n){1&e&&(l(0,"form",0,1),k(2,"span",null,2),l(4,"p-card",3),_(5,Rse,2,3,"ng-template",4),_(6,Lse,0,0,"ng-template",5),_(7,Pse,55,64,"ng-template",6),_(8,Vse,6,6,"ng-template",7),c()())},directives:[ze,Ue,He,Ne,ne,Q,Ot,Te,_e,_n,pt,qe,ve],pipes:[ce],styles:[""]}),t})();const
Hse=["scroll"],ht=fu
nction(){return{minWidth:"400px"}};function qse(t,i){if(1&t){const
e=I();l(0,"div",0)(1,"label",38),g(2),m(3,"translate"),c(),l(4,"p-dropdown",39,40),C("ngModelChange",function(s){return
v(e),d(2).scanRequest.FreqTable=s})("onChange",function(){return
v(e),d(2).onFreqTableChange(!1)}),c(),l(6,"small",4),g(7),m(8,"translate"),c()()}if(2&t){const
e=d(2);a(2),S(f(3,8,"settings.channelscan.freqtable_label")),a(2),q(A(12,ht)),p("options",e.freqTableSelect)("ngModel",e.scanRequest.FreqTable)("editable",!1)("maxlength",0),a(3),T("
",f(8,10,"settings.channelscan.freqtable_desc")," ")}}function
Gse(t,i){if(1&t){const
e=I();l(0,"div",0)(1,"label",41),g(2),m(3,"translate"),c(),l(4,"p-dropdown",42,43),C("ngModelChange",function(s){return
v(e),d(2).scanRequest.FreqTable=s}),c(),l(6,"small",4),g(7),m(8,"translate"),c()()}if(2&t){const
e=d(2);a(2),S(f(3,8,"settings.channelscan.country_label")),a(2),q(A(12,ht)),p("options",e.countryTable)("ngModel",e.scanRequest.FreqTable)("editable",!1)("maxlength
",0),a(3),T("
",f(8,10,"settings.channelscan.scantype_dvbt_desc"),"
")}}function Use(t,i){if(1&t){const
e=I();l(0,"div",0)(1,"label",41),g(2),m(3,"translate"),c(),l(4,"p-dropdown",42,43),C("ngModelChange",function(s){return
v(e),d(2).scanRequest.FreqTable=s}),c(),k(6,"small",4),c()}if(2&t){const
e=d(2);a(2),S(f(3,7,"settings.channelscan.country_label")),a(2),q(A(9,ht)),p("options",e.networkTable)("ngModel",e.scanRequest.FreqTable)("editable",!1)("maxlength",0)}}function
zse(t,i){if(1&t){const
e=I();l(0,"div",0)(1,"label",44),g(2),m(3,"translate"),c(),l(4,"p-dropdown",45,46),C("ngModelChange",function(s){return
v(e),d(2).scanRequest.Modulation=s})("onChange",function(){return
v(e),d(2).onFreqTableChange(!0)}),c(),l(6,"small",4),g(7),m(8,"translate"),c()()}if(2&t){const
e=d(2);a(2),S(f(3,8,"settings.channelscan.modulation_label")),a(2),q(A(12,ht)),p("options",e.atscModulationTable)("ngModel",e.scanRequest.Modulation)("editable",!1)("maxlength",0),a(3),T("
",f(8,10,"settings.channelsca
n.atscmodulation_desc")," ")}}function
jse(t,i){1&t&&(l(0,"div")(1,"small",51),g(2),m(3,"translate"),c()()),2&t&&(a(2),S(f(3,1,"settings.channelscan.invalid_range")))}function
$se(t,i){if(1&t){const
e=I();l(0,"div",0)(1,"label",47),g(2),m(3,"translate"),c(),l(4,"p-dropdown",48,49),C("ngModelChange",function(s){return
v(e),d(2).scanRequest.FirstChan=s}),c(),l(6,"small",4),g(7),m(8,"translate"),c(),_(9,jse,4,3,"div",50),c()}if(2&t){const
e=d(2);a(2),S(f(3,9,"settings.channelscan.firstchan_label")),a(2),q(A(13,ht)),p("options",e.channels)("ngModel",e.scanRequest.FirstChan)("editable",!1)("maxlength",0),a(3),T("
",f(8,11,"settings.channelscan.firstchan_desc"),"
"),a(2),p("ngIf",e.channelCount<1)}}function
Wse(t,i){1&t&&(l(0,"div")(1,"small",51),g(2),m(3,"translate"),c()()),2&t&&(a(2),S(f(3,1,"settings.channelscan.invalid_range")))}function
Kse(t,i){if(1&t){const
e=I();l(0,"div",0)(1,"label",52),g(2),m(3,"translate"),c(),l(4,"p-dropdown",53,54),C("ngModelChange",function(s){return
v(e),d
(2).scanRequest.LastChan=s}),c(),l(6,"small",4),g(7),m(8,"translate"),c(),_(9,Wse,4,3,"div",50),c()}if(2&t){const
e=d(2);a(2),S(f(3,9,"settings.channelscan.lastchan_label")),a(2),q(A(13,ht)),p("options",e.channels)("ngModel",e.scanRequest.LastChan)("editable",!1)("maxlength",0),a(3),T("
",f(8,11,"settings.channelscan.lastchan_desc"),"
"),a(2),p("ngIf",e.channelCount<1)}}function
Qse(t,i){if(1&t&&(l(0,"div",0)(1,"label",30),g(2),m(3,"translate"),c(),l(4,"div",29),g(5),c(),l(6,"small",4),g(7),m(8,"translate"),c()()),2&t){const
e=d(2);a(2),S(f(3,3,"settings.channelscan.chancount_label")),a(3),T("
",e.calcCount()," \xa0 "),a(2),T("
",f(8,5,"settings.channelscan.chancount_desc")," ")}}const
Xs=function(){return["DVBT","DVBT2"]};function
Jse(t,i){if(1&t&&(l(0,"p-fieldset",37),m(1,"translate"),_(2,qse,9,13,"div",33),_(3,Gse,9,13,"div",33),_(4,Use,7,10,"div",33),_(5,zse,9,13,"div",33),_(6,$se,10,14,"div",33),_(7,Kse,10,14,"div",33),_(8,Qse,9,7,"div",33),c()),2&t){const
e=d();x("legend",f(1,
10,"settings.channelscan.type.full")),p("toggleable",!1)("collapsed",!1),a(2),p("ngIf","ATSC"==e.scanSubType),a(1),p("ngIf",A(12,Xs).includes(e.scanSubType)),a(1),p("ngIf","DVBC"==e.scanSubType),a(1),p("ngIf","ATSC"==e.scanSubType),a(1),p("ngIf","ATSC"==e.scanSubType),a(1),p("ngIf","ATSC"==e.scanSubType),a(1),p("ngIf","ATSC"==e.scanSubType)}}function
Yse(t,i){if(1&t){const
e=I();l(0,"div",0)(1,"label",61),g(2),m(3,"translate"),c(),l(4,"p-dropdown",62,63),C("ngModelChange",function(s){return
v(e),d(2).satTuning=s})("onChange",function(){return
v(e),d(2).onSatTuningChange()}),c(),l(6,"small",4),g(7),m(8,"translate"),c()()}if(2&t){const
e=d(2);a(2),S(f(3,8,"settings.channelscan.sattuning_label")),a(2),q(A(12,ht)),p("options",e.satTuningTable)("ngModel",e.satTuning)("editable",!1)("maxlength",0),a(3),T("
",f(8,10,"settings.channelscan.sattuning_desc")," ")}}function
Zse(t,i){if(1&t){const
e=I();l(0,"div",0)(1,"label",64),g(2),m(3,"translate"),c(),l(4,"p-dropdown",65,66),C("ngModelChange
",function(s){return
v(e),d(2).scanRequest.Bandwidth=s}),c(),l(6,"small",4),g(7),m(8,"translate"),c()()}if(2&t){const
e=d(2);a(2),S(f(3,8,"settings.channelscan.bandwidth_label")),a(2),q(A(12,ht)),p("options",e.bandwidthTable)("ngModel",e.scanRequest.Bandwidth)("editable",!1)("maxlength",0),a(3),T("
",f(8,10,"settings.channelscan.bandwidth_desc")," ")}}function
Xse(t,i){if(1&t){const
e=I();l(0,"div",0)(1,"label",67),g(2),m(3,"translate"),c(),l(4,"p-dropdown",68,69),C("ngModelChange",function(s){return
v(e),d(2).scanRequest.Polarity=s}),c(),l(6,"small",4),g(7),m(8,"translate"),c()()}if(2&t){const
e=d(2);a(2),S(f(3,8,"settings.channelscan.polarity_label")),a(2),q(A(12,ht)),p("options",e.polarityTable)("ngModel",e.scanRequest.Polarity)("editable",!1)("maxlength",0),a(3),T("
",f(8,10,"settings.channelscan.polarity_desc")," ")}}function
ere(t,i){if(1&t){const
e=I();l(0,"div",0)(1,"label",70),g(2),m(3,"translate"),c(),l(4,"p-dropdown",71,72),C("ngModelChange",function(s){return
v(e),d(2).s
canRequest.SymbolRate=s}),c(),l(6,"small",4),g(7),m(8,"translate"),c()()}if(2&t){const
e=d(2);a(2),S(f(3,8,"settings.channelscan.symbolrate_label")),a(2),q(A(12,ht)),p("options",e.dvbcSymbolRateTable)("ngModel",e.scanRequest.SymbolRate)("editable",!0)("maxlength",8),a(3),T("
",f(8,10,"settings.channelscan.dvbcsymbolrate_desc"),"
")}}function tre(t,i){if(1&t){const
e=I();l(0,"div",0)(1,"label",73),g(2),m(3,"translate"),c(),l(4,"p-dropdown",74,75),C("ngModelChange",function(s){return
v(e),d(2).scanRequest.SymbolRate=s}),c(),l(6,"small",4),g(7),m(8,"translate"),c()()}if(2&t){const
e=d(2);a(2),S(f(3,8,"settings.channelscan.symbolrate_label")),a(2),q(A(12,ht)),p("options",e.dvbsSymbolRateTable)("ngModel",e.scanRequest.SymbolRate)("editable",!0)("maxlength",8),a(3),T("
",f(8,10,"settings.channelscan.dvbssymbolrate_desc"),"
")}}function nre(t,i){if(1&t){const
e=I();l(0,"div",0)(1,"label",76),g(2),m(3,"translate"),c(),l(4,"p-dropdown",77,78),C("ngModelChange",function(s){return
v(e),d(2).sc
anRequest.Constellation=s}),c(),l(6,"small",4),g(7),m(8,"translate"),c()()}if(2&t){const
e=d(2);a(2),S(f(3,8,"settings.channelscan.constellation_label")),a(2),q(A(12,ht)),p("options",e.modulationTable)("ngModel",e.scanRequest.Constellation)("editable",!1)("maxlength",0),a(3),T("
",f(8,10,"settings.channelscan.constellation_desc"),"
")}}function ire(t,i){if(1&t){const
e=I();l(0,"div",0)(1,"label",79),g(2),m(3,"translate"),c(),l(4,"p-dropdown",80,81),C("ngModelChange",function(s){return
v(e),d(2).scanRequest.Modulation=s}),c(),l(6,"small",4),g(7),m(8,"translate"),c()()}if(2&t){const
e=d(2);a(2),S(f(3,8,"settings.channelscan.modulation_label")),a(2),q(A(12,ht)),p("options",e.modulationTable)("ngModel",e.scanRequest.Modulation)("editable",!1)("maxlength",0),a(3),T("
",f(8,10,"settings.channelscan.Modulation_desc")," ")}}function
sre(t,i){if(1&t){const
e=I();l(0,"div",0)(1,"label",82),g(2),m(3,"translate"),c(),l(4,"p-dropdown",83,84),C("ngModelChange",function(s){return
v(e),d(2).scanReq
uest.Modulation=s}),c(),l(6,"small",4),g(7),m(8,"translate"),c()()}if(2&t){const
e=d(2);a(2),S(f(3,8,"settings.channelscan.modulation_label")),a(2),q(A(12,ht)),p("options",e.dvbsModulationTable)("ngModel",e.scanRequest.Modulation)("editable",!1)("maxlength",0),a(3),T("
",f(8,10,"settings.channelscan.dvbsmodulation_desc"),"
")}}function rre(t,i){if(1&t){const
e=I();l(0,"div",0)(1,"label",85),g(2),m(3,"translate"),c(),l(4,"p-dropdown",86,87),C("ngModelChange",function(s){return
v(e),d(2).scanRequest.ModSys=s}),c(),l(6,"small",4),g(7),m(8,"translate"),c()()}if(2&t){const
e=d(2);a(2),S(f(3,8,"settings.channelscan.modsys_label")),a(2),q(A(12,ht)),p("options",e.dvbtModSysTable)("ngModel",e.scanRequest.ModSys)("editable",!1)("maxlength",0),a(3),T("
",f(8,10,"settings.channelscan.dvbtmodsys_desc")," ")}}function
ore(t,i){if(1&t){const
e=I();l(0,"div",0)(1,"label",88),g(2),m(3,"translate"),c(),l(4,"p-dropdown",89,90),C("ngModelChange",function(s){return
v(e),d(2).scanRequest.ModSys=s}),c(),l
(6,"small",4),g(7),m(8,"translate"),c()()}if(2&t){const
e=d(2);a(2),S(f(3,8,"settings.channelscan.modsys_label")),a(2),q(A(12,ht)),p("options",e.dvbcModSysTable)("ngModel",e.scanRequest.ModSys)("editable",!1)("maxlength",0),a(3),T("
",f(8,10,"settings.channelscan.dvbcmodsys_desc")," ")}}function
are(t,i){if(1&t){const
e=I();l(0,"div",0)(1,"label",91),g(2),m(3,"translate"),c(),l(4,"p-dropdown",92,93),C("ngModelChange",function(s){return
v(e),d(2).scanRequest.ModSys=s}),c(),l(6,"small",4),g(7),m(8,"translate"),c()()}if(2&t){const
e=d(2);a(2),S(f(3,8,"settings.channelscan.modsys_label")),a(2),q(A(12,ht)),p("options",e.dvbsModSysTable)("ngModel",e.scanRequest.ModSys)("editable",!1)("maxlength",0),a(3),T("
",f(8,10,"settings.channelscan.dvbsmodsys_desc")," ")}}function
lre(t,i){if(1&t){const
e=I();l(0,"div",0)(1,"label",94),g(2),m(3,"translate"),c(),l(4,"p-dropdown",95,96),C("ngModelChange",function(s){return
v(e),d(2).scanRequest.CodeRateLP=s}),c(),l(6,"small",4),g(7),m(8,"translate"),c
()()}if(2&t){const
e=d(2);a(2),S(f(3,8,"settings.channelscan.coderatelp_label")),a(2),q(A(12,ht)),p("options",e.fecTable)("ngModel",e.scanRequest.CodeRateLP)("editable",!1)("maxlength",0),a(3),T("
",f(8,10,"settings.channelscan.coderatelp_desc")," ")}}function
cre(t,i){if(1&t){const
e=I();l(0,"div",0)(1,"label",97),g(2),m(3,"translate"),c(),l(4,"p-dropdown",98,99),C("ngModelChange",function(s){return
v(e),d(2).scanRequest.CodeRateHP=s}),c(),l(6,"small",4),g(7),m(8,"translate"),c()()}if(2&t){const
e=d(2);a(2),S(f(3,8,"settings.channelscan.coderatehp_label")),a(2),q(A(12,ht)),p("options",e.fecTable)("ngModel",e.scanRequest.CodeRateHP)("editable",!1)("maxlength",0),a(3),T("
",f(8,10,"settings.channelscan.coderatehp_desc")," ")}}function
ure(t,i){if(1&t){const
e=I();l(0,"div",0)(1,"label",100),g(2),m(3,"translate"),c(),l(4,"p-dropdown",101,102),C("ngModelChange",function(s){return
v(e),d(2).scanRequest.FEC=s}),c(),l(6,"small",4),g(7),m(8,"translate"),c()()}if(2&t){const
e=d(2);a(2),S(f(
3,8,"settings.channelscan.FEC_label")),a(2),q(A(12,ht)),p("options",e.fecTable)("ngModel",e.scanRequest.FEC)("editable",!1)("maxlength",0),a(3),T("
",f(8,10,"settings.channelscan.FEC_desc")," ")}}function
dre(t,i){if(1&t){const
e=I();l(0,"div",0)(1,"label",103),g(2),m(3,"translate"),c(),l(4,"p-dropdown",104,105),C("ngModelChange",function(s){return
v(e),d(2).scanRequest.TransmissionMode=s}),c(),l(6,"small",4),g(7),m(8,"translate"),c()()}if(2&t){const
e=d(2);a(2),S(f(3,8,"settings.channelscan.transmissionmode_label")),a(2),q(A(12,ht)),p("options",e.transmissionModeTable)("ngModel",e.scanRequest.TransmissionMode)("editable",!1)("maxlength",0),a(3),T("
",f(8,10,"settings.channelscan.transmissionmode_desc"),"
")}}function pre(t,i){if(1&t){const
e=I();l(0,"div",0)(1,"label",106),g(2),m(3,"translate"),c(),l(4,"p-dropdown",107,108),C("ngModelChange",function(s){return
v(e),d(2).scanRequest.GuardInterval=s}),c(),l(6,"small",4),g(7),m(8,"translate"),c()()}if(2&t){const
e=d(2);a(2),S(f(3,8,"s
ettings.channelscan.guardinterval_label")),a(2),q(A(12,ht)),p("options",e.guardIntervalTable)("ngModel",e.scanRequest.GuardInterval)("editable",!1)("maxlength",0),a(3),T("
",f(8,10,"settings.channelscan.guardinterval_desc"),"
")}}function hre(t,i){if(1&t){const
e=I();l(0,"div",0)(1,"label",109),g(2),m(3,"translate"),c(),l(4,"p-dropdown",110,111),C("ngModelChange",function(s){return
v(e),d(2).scanRequest.Hierarchy=s}),c(),l(6,"small",4),g(7),m(8,"translate"),c()()}if(2&t){const
e=d(2);a(2),S(f(3,8,"settings.channelscan.hierarchy_label")),a(2),q(A(12,ht)),p("options",e.hierarchyTable)("ngModel",e.scanRequest.Hierarchy)("editable",!1)("maxlength",0),a(3),T("
",f(8,10,"settings.channelscan.hierarchy_desc")," ")}}function
mre(t,i){if(1&t){const
e=I();l(0,"div",0)(1,"label",112),g(2),m(3,"translate"),c(),l(4,"p-dropdown",113,114),C("ngModelChange",function(s){return
v(e),d(2).scanRequest.RollOff=s}),c(),l(6,"small",4),g(7),m(8,"translate"),c()()}if(2&t){const
e=d(2);a(2),S(f(3,8,"settings
.channelscan.rolloff_label")),a(2),q(A(12,ht)),p("options",e.rollOffTable)("ngModel",e.scanRequest.RollOff)("editable",!1)("maxlength",0),a(3),T("
",f(8,10,"settings.channelscan.rolloff_desc")," ")}}const
Tg=function(){return["DVBS","DVBS2"]},fre=function(t){return{unit:t}},gre=function(){return["DVBC","DVBS","DVBS2"]};function
_re(t,i){if(1&t){const
e=I();l(0,"p-fieldset",37),m(1,"translate"),_(2,Yse,9,13,"div",33),l(3,"div",0)(4,"label",55),g(5),m(6,"translate"),c(),l(7,"p-inputNumber",56),C("ngModelChange",function(s){return
v(e),d().scanRequest.Frequency=s}),c(),l(8,"small",4),k(9,"div",57),c()(),_(10,Zse,9,13,"div",33),_(11,Xse,9,13,"div",33),_(12,ere,9,13,"div",33),_(13,tre,9,13,"div",33),l(14,"div",0)(15,"label",58),g(16),m(17,"translate"),c(),l(18,"p-dropdown",59,60),C("ngModelChange",function(s){return
v(e),d().scanRequest.Inversion=s}),c(),l(20,"small",4),g(21),m(22,"translate"),c()(),_(23,nre,9,13,"div",33),_(24,ire,9,13,"div",33),_(25,sre,9,13,"div",33),_(26,rre,9,13,"di
v",33),_(27,ore,9,13,"div",33),_(28,are,9,13,"div",33),_(29,lre,9,13,"div",33),_(30,cre,9,13,"div",33),_(31,ure,9,13,"div",33),_(32,dre,9,13,"div",33),_(33,pre,9,13,"div",33),_(34,hre,9,13,"div",33),_(35,mre,9,13,"div",33),c()}if(2&t){const
e=d();x("legend",f(1,35,"settings.channelscan.type.fulltuned")),p("toggleable",!1)("collapsed",!1),a(2),p("ngIf","DVBS2"==e.scanSubType),a(3),S(f(6,37,"settings.channelscan.frequency_label")),a(2),p("ngModel",e.scanRequest.Frequency)("min",0)("max",999999999),a(2),p("translate","settings.channelscan.frequency_desc")("translateParams",U(44,fre,A(43,Tg).includes(e.scanSubType)?"kHZ":"Hz")),a(1),p("ngIf",A(46,Xs).includes(e.scanSubType)),a(1),p("ngIf",A(47,Tg).includes(e.scanSubType)),a(1),p("ngIf","DVBC"==e.scanSubType),a(1),p("ngIf",A(48,Tg).includes(e.scanSubType)),a(3),S(f(17,39,"settings.channelscan.inversion_label")),a(2),q(A(49,ht)),p("options",e.inversionTable)("ngModel",e.scanRequest.Inversion)("editable",!1)("maxlength",0),a(3),T("
",f(22,
41,"settings.channelscan.inversion_desc"),"
"),a(2),p("ngIf",A(50,Xs).includes(e.scanSubType)),a(1),p("ngIf","DVBC"==e.scanSubType),a(1),p("ngIf","DVBS2"==e.scanSubType),a(1),p("ngIf","DVBT2"==e.scanSubType),a(1),p("ngIf","DVBC"==e.scanSubType),a(1),p("ngIf","DVBS2"==e.scanSubType),a(1),p("ngIf",A(51,Xs).includes(e.scanSubType)),a(1),p("ngIf",A(52,Xs).includes(e.scanSubType)),a(1),p("ngIf",A(53,gre).includes(e.scanSubType)),a(1),p("ngIf",A(54,Xs).includes(e.scanSubType)),a(1),p("ngIf",A(55,Xs).includes(e.scanSubType)),a(1),p("ngIf",A(56,Xs).includes(e.scanSubType)),a(1),p("ngIf","DVBS2"==e.scanSubType)}}function
bre(t,i){if(1&t){const
e=I();l(0,"p-fieldset",37),m(1,"translate"),l(2,"div",0)(3,"label",115),g(4),m(5,"translate"),c(),l(6,"p-dropdown",116,117),C("ngModelChange",function(s){return
v(e),d().scanRequest.ScanId=s}),c(),k(8,"small",4),c()()}if(2&t){const
e=d();x("legend",f(1,10,"settings.channelscan.type.import")),p("toggleable",!1)("collapsed",!1),a(4),S(f(5,12,"settings.ch
annelscan.scanimport_label")),a(2),q(A(14,ht)),p("options",e.scans)("ngModel",e.scanRequest.ScanId)("editable",!1)("maxlength",0)}}function
vre(t,i){if(1&t){const
e=I();l(0,"div",0)(1,"label",122),g(2),m(3,"translate"),c(),l(4,"p-dropdown",123,124),C("ngModelChange",function(s){return
v(e),d(2).scanRequest.MplexId=s}),c(),k(6,"small",4),c()}if(2&t){const
e=d(2);a(2),S(f(3,7,"settings.channelscan.transport_label")),a(2),q(A(9,ht)),p("options",e.multiplex)("ngModel",e.scanRequest.MplexId)("editable",!1)("maxlength",0)}}function
Cre(t,i){if(1&t){const
e=I();l(0,"p-fieldset",37),m(1,"translate"),_(2,vre,7,10,"div",33),l(3,"div",0)(4,"p-checkbox",118,119),C("ngModelChange",function(s){return
v(e),d().scanRequest.IgnoreSignalTimeout=s}),m(6,"translate"),c(),l(7,"small",4),g(8),m(9,"translate"),c()(),l(10,"div",0)(11,"p-checkbox",120,121),C("ngModelChange",function(s){return
v(e),d().scanRequest.FollowNITSetting=s}),m(13,"translate"),c(),l(14,"small",4),g(15),m(16,"translate"),c()()()}if(2
&t){const
e=d();x("legend",f(1,12,"settings.channelscan.type.transports")),p("toggleable",!1)("collapsed",!1),a(2),p("ngIf","ONETRANSPORT"==e.scanRequest.ScanType),a(2),x("label",f(6,14,"settings.channelscan.ignoresignaltimeout_label")),p("ngModel",e.scanRequest.IgnoreSignalTimeout)("binary",!0),a(4),T("
",f(9,16,"settings.channelscan.ignoresignaltimeout_desc"),"
"),a(3),x("label",f(13,18,"settings.channelscan.follownitsetting_label")),p("ngModel",e.scanRequest.FollowNITSetting)("binary",!0),a(4),T("
",f(16,20,"settings.channelscan.follownitsetting_desc"),"
")}}function
yre(t,i){1&t&&(l(0,"small",4),g(1),m(2,"translate"),c()),2&t&&(a(1),T("
",f(2,1,"settings.channelscan.scan_desc")," "))}function
wre(t,i){if(1&t&&(l(0,"div",0)(1,"div",125)(2,"b"),g(3),c(),g(4,"
\xa0 "),c(),k(5,"br"),c()),2&t){const
e=d();a(3),S(e.scanStatus.DialogMsg)}}function Tre(t,i){if(1&t){const
e=I();l(0,"div",0)(1,"input",126,127),C("ngModelChange",function(s){return
v(e),d().dialogResponse.DialogString=s}),c
()()}if(2&t){const
e=d();a(1),p("ngModel",e.dialogResponse.DialogString)}}function
Sre(t,i){if(1&t){const
e=I();l(0,"div",0)(1,"label",128),g(2),m(3,"translate"),c(),l(4,"p-dropdown",129,3),C("ngModelChange",function(s){return
v(e),d().buttonText=s}),c()()}if(2&t){const
e=d();a(2),S(f(3,7,"settings.channelscan.scanimport_option")),a(2),q(A(9,ht)),p("options",e.scanStatus.DialogButtons)("ngModel",e.buttonText)("editable",!1)("maxlength",0)}}function
xre(t,i){if(1&t){const
e=I();l(0,"div",0)(1,"p-button",130),C("onClick",function(){return
v(e),d().respondDialog()}),m(2,"translate"),c()()}2&t&&(a(1),x("label",f(2,1,"common.submit")))}const
Sg=function(){return{height:"20px"}},Dre=function(){return{width:"100%",height:"400px"}};class
j{constructor(i,e){this.label=i,this.value=e}}class
Ar{constructor(i,e,n,s,r,o,u){this.label=i,this.Frequency=e,this.Polarity=n,this.SymbolRate=s,this.Modulation=r,this.ModSys=o,this.FEC=u}}let
Mre=(()=>{class t{constructor(e,n,s,r){this.translate=e,this.ch
annelService=n,this.captureCardService=s,this.setupService=r,this.serviceValues=[new
j("settings.channelscan.tv","tv"),new
j("settings.channelscan.tvradio","audio"),new
j("settings.channelscan.all","all")],this.scanSubType="",this.scanTypes=[],this.freqTableSelect=[new
j("settings.channelscan.freq.usa.broadcast","us"),new
j("settings.channelscan.freq.usa.cablehi","uscablehigh"),new
j("settings.channelscan.freq.usa.cablehrchi","ushrchigh"),new
j("settings.channelscan.freq.usa.cableirchi","usirchigh"),new
j("settings.channelscan.freq.usa.cable","uscable"),new
j("settings.channelscan.freq.usa.cablehrc","ushrc"),new
j("settings.channelscan.freq.usa.cableirc","usirc")],this.countryTable=[new
j("settings.channelscan.country.au","au"),new
j("settings.channelscan.country.cl","cl"),new
j("settings.channelscan.country.cz","cz"),new
j("settings.channelscan.country.dk","dk"),new
j("settings.channelscan.country.fi","fi"),new
j("settings.channelscan.country.fr","fr"),new
j("settings.channelscan.c
ountry.de","de"),new
j("settings.channelscan.country.gr","gr"),new
j("settings.channelscan.country.il","il"),new
j("settings.channelscan.country.it","it"),new
j("settings.channelscan.country.nl","nl"),new
j("settings.channelscan.country.nz","nz"),new
j("settings.channelscan.country.es","es"),new
j("settings.channelscan.country.se","se"),new
j("settings.channelscan.country.gb","gb")],this.networkTable=[new
j("settings.channelscan.country.de","de"),new
j("settings.channelscan.country.nl","nl"),new
j("settings.channelscan.country.gb","gb")],this.satTuningTable=[new
Ar("(Select
Satellite)",0,"h","27500000","qpsk","DVB-S2","auto"),new
Ar("Thor 5/6/7
0.8W",10872e3,"h","25000000","8psk","DVB-S2","3/4"),new
Ar("Eutelsat
7.0E",10721e3,"h","22000000","qpsk","DVB-S","3/4"),new
Ar("Hotbird
13.0E",12015e3,"h","27500000","8psk","DVB-S2","3/4"),new
Ar("Astra-1
19.2E",11229e3,"v","22000000","8psk","DVB-S2","2/3"),new
Ar("Astra-3
23.5E",12031500,"h","27500000","qpsk","DVB-S2","auto"),new
Ar(
"Astra-2
28.2E",10714e3,"h","22000000","qpsk","DVB-S","5/6")],this.atscModulationTable=[new
j("settings.channelscan.modulation.atsc.vsb8","vsb8"),new
j("settings.channelscan.modulation.atsc.qam256","qam256"),new
j("settings.channelscan.modulation.atsc.qam128","qam128"),new
j("settings.channelscan.modulation.atsc.qam64","qam64")],this.bandwidthTable=[new
j("settings.channelscan.auto","a"),new j("6
MHz","6"),new j("7 MHz","7"),new j("8
MHz","8")],this.inversionTable=[new
j("settings.channelscan.auto","a"),new
j("settings.channelscan.on","1"),new
j("settings.channelscan.off","0")],this.modulationTable=[new
j("settings.channelscan.auto","auto"),new
j("QPSK","qpsk"),new j("QAM-16","qam_16"),new
j("QAM-32","qam_32"),new j("QAM-64","qam_64"),new
j("QAM-128","qam_128"),new
j("QAM-256","qam_256")],this.dvbsModulationTable=[new
j("QPSK","qpsk"),new j("8PSK","8psk"),new
j("QAM-16","qam_16"),new j("16PSK","16psk"),new
j("32PSK","32psk")],this.dvbtModSysTable=[new
j("DVB-T","DVB-T"),new j("DVB
-T2","DVB-T2")],this.dvbcModSysTable=[new
j("DVB-C/A","DVB-C/A"),new
j("DVB-C/B","DVB-C/B"),new
j("DVB-C/C","DVB-C/C")],this.dvbsModSysTable=[new
j("DVB-S","DVB-S"),new
j("DVB-S2","DVB-S2")],this.polarityTable=[new
j("settings.channelscan.polarity.horizontal","h"),new
j("settings.channelscan.polarity.vertical","v"),new
j("settings.channelscan.polarity.right","r"),new
j("settings.channelscan.polarity.left","l")],this.fecTable=[new
j("settings.channelscan.auto","auto"),new
j("settings.channelscan.none","none"),new
j("1/2","1/2"),new j("2/3","2/3"),new
j("3/4","3/4"),new j("4/5","4/5"),new
j("5/6","5/6"),new j("6/2","6/2"),new
j("7/8","7/8"),new j("8/9","8/9"),new
j("3/5","3/5"),new
j("9/10","9/10")],this.transmissionModeTable=[new
j("settings.channelscan.auto","a"),new
j("2K","2"),new
j("8K","8")],this.guardIntervalTable=[new
j("settings.channelscan.auto","auto"),new
j("1/4","1/4"),new j("1/8","1/8"),new
j("1/16","1/16"),new
j("1/32","1/32")],this.hierarchyTable=[new j("settings.chann
elscan.auto","a"),new
j("settings.channelscan.none","n"),new
j("1","1"),new j("2","2"),new
j("4","4")],this.dvbcSymbolRateTable=[new
j("3450000","3450000"),new
j("5000000","5000000"),new
j("5900000","5900000"),new
j("6875000","6875000"),new
j("6900000","6900000"),new
j("6950000","6950000")],this.dvbsSymbolRateTable=[new
j("3333000","3333000"),new
j("22000000","22000000"),new
j("22500000","22500000"),new
j("23000000","23000000"),new
j("27500000","27500000"),new
j("28000000","28000000"),new
j("28500000","28500000"),new
j("29500000","29500000"),new
j("29700000","29700000"),new
j("29900000","29900000")],this.rollOffTable=[new
j("0.35","0.35"),new j("0.20","0.20"),new
j("0.25","0.25"),new
j("Auto","auto")],this.lockDesc="settings.channelscan.lock_value",this.nolockDesc="settings.channelscan.nolock_value",this.procDesc="processed",this.unprocDesc="unprocessed",this.satTuning=this.satTuningTable[0],this.scanRequest={CardId:0,DesiredServices:"tv",FreeToAirOnly:!0,ChannelNumbersOnly:!1,Compl
eteChannelsOnly:!0,FullChannelSearch:!0,RemoveDuplicates:!0,AddFullTS:!1,TestDecryptable:!1,ScanType:"",FreqTable:"",Modulation:"",FirstChan:"",LastChan:"",ScanId:0,IgnoreSignalTimeout:!1,FollowNITSetting:!1,MplexId:0,Frequency:0,Bandwidth:"",Polarity:"",SymbolRate:"",Inversion:"",Constellation:"",ModSys:"",CodeRateLP:"",CodeRateHP:"",FEC:"",TransmissionMode:"",GuardInterval:"",Hierarchy:"",RollOff:""},this.emptyScanStatus={CardId:0,Status:"",SignalLock:!1,Progress:0,SignalNoise:0,SignalStrength:0,StatusLog:"",StatusText:"",StatusTitle:"",DialogMsg:"",DialogInputReq:!1,DialogButtons:[]},this.dialogResponse={CardId:0,DialogString:"",DialogButton:0},this.buttonText="",this.scanStatus=Object.assign({},this.emptyScanStatus),this.channels=[],this.channelCount=1,this.refreshCount=0,this.helpText="",this.scans=[],this.multiplex=[],this.tableTranslate(this.serviceValues),this.tableTranslate(this.freqTableSelect),this.tableTranslate(this.countryTable),this.tableTranslate(this.networkTable),t
his.tableTranslate(this.atscModulationTable),this.tableTranslate(this.bandwidthTable),this.tableTranslate(this.inversionTable),this.tableTranslate(this.modulationTable),this.tableTranslate(this.fecTable),this.tableTranslate(this.transmissionModeTable),this.tableTranslate(this.guardIntervalTable),this.tableTranslate(this.hierarchyTable),this.tableTranslate(this.polarityTable),e.get(this.lockDesc).subscribe(o=>this.lockDesc=o),e.get(this.nolockDesc).subscribe(o=>this.nolockDesc=o)}tableTranslate(e){e.forEach(n=>{n.label.startsWith("settings.")&&this.translate.get(n.label).subscribe(s=>n.label=s)})}ngAfterViewInit(){this.refreshStatus(!1),this.getScanList(),this.getmultiplexList(),this.iconnection.scanComponent=this}ngOnInit(){this.iconnection.deviceFree.subscribe(e=>{this.captureCardService.GetCardSubType(this.card.CardId).subscribe(n=>{this.cardSubType=n.CardSubType,this.buildScanTypeList(),this.onFreqTableChange(!1),"DVBT2"==this.cardSubType.InputType&&(this.scanRequest.ModSys="DVB-
T2"),"DVBS2"==this.cardSubType.InputType&&(this.scanRequest.ModSys="DVB-S2"),"DVBC"==this.cardSubType.InputType&&(this.scanRequest.SymbolRate="6900000"),["DVBS","DVBS2"].includes(this.cardSubType.InputType)&&(this.scanRequest.SymbolRate="27500000")})}),this.iconnection.captureDeviceList.CaptureDeviceList.CaptureDevices.length>0&&!this.cardSubType&&this.iconnection.deviceFree.next(!0)}buildScanTypeList(){let
e=!1;switch(this.helpText="",this.scanSubType=this.cardSubType.InputType,this.cardSubType.InputType){case"V4L":case"MPEG":this.scanTypes.push({label:"settings.channelscan.type.full",value:"FULL"}),this.scanTypes.push({label:"settings.channelscan.type.import",value:"IMPORT"});break;case"DVBT":case"DVBT2":this.scanTypes.push({label:"settings.channelscan.type.full",value:"FULL"}),this.scanTypes.push({label:"settings.channelscan.type.fulltuned",value:"FULLTUNED"}),this.scanTypes.push({label:"settings.channelscan.type.import",value:"IMPORT"}),this.helpText="settings.channelscan.scanty
pe_dvbt_desc",e=!0;break;case"DVBC":this.scanTypes.push({label:"settings.channelscan.type.fulltuned",value:"FULLTUNED"}),this.scanTypes.push({label:"settings.channelscan.type.full",value:"FULL"}),this.scanTypes.push({label:"settings.channelscan.type.import",value:"IMPORT"}),e=!0;break;case"DVBS":case"DVBS2":this.scanTypes.push({label:"settings.channelscan.type.fulltuned",value:"FULLTUNED"}),this.scanTypes.push({label:"settings.channelscan.type.import",value:"IMPORT"}),e=!0;break;case"ATSC":this.scanTypes.push({label:"settings.channelscan.type.full",value:"FULL"}),this.scanTypes.push({label:"settings.channelscan.type.import",value:"IMPORT"}),e=!0;break;case"HDHOMERUN":this.cardSubType.HDHRdoesDVBC?(this.scanSubType="DVBC",this.scanTypes.push({label:"settings.channelscan.type.fulltuned",value:"FULLTUNED"}),this.scanTypes.push({label:"settings.channelscan.type.full",value:"FULL"}),this.scanTypes.push({label:"settings.channelscan.type.import",value:"IMPORT"})):this.cardSubType.HDHRdoesD
VB?(this.scanSubType="DVBT",this.scanTypes.push({label:"settings.channelscan.type.full",value:"FULL"}),this.scanTypes.push({label:"settings.channelscan.type.fulltuned",value:"FULLTUNED"}),this.helpText="settings.channelscan.scantype_dvbt_desc"):(this.scanSubType="ATSC",this.scanTypes.push({label:"settings.channelscan.type.full",value:"FULL"})),this.scanTypes.push({label:"settings.channelscan.type.import",value:"IMPORT"}),this.scanTypes.push({label:"settings.channelscan.type.hdhrimport",value:"HDHRIMPORT"}),e=!0;break;case"VBOX":this.scanTypes.push({label:"settings.channelscan.type.vboximport",value:"VBOXIMPORT"});break;case"FREEBOX":this.scanTypes.push({label:"settings.channelscan.type.m3umpts",value:"MPTSIMPORT"}),this.scanTypes.push({label:"settings.channelscan.type.m3u",value:"M3UIMPORT"});break;case"ASI":this.scanTypes.push({label:"settings.channelscan.type.asi",value:"ASI"});break;case"EXTERNAL":this.scanTypes.push({label:"settings.channelscan.type.mpts",value:"MPTS"}),this.sca
nTypes.push({label:"settings.channelscan.type.externimport",value:"EXTIMPORT"});break;case"ERROR_PROBE":this.scanTypes.push({label:"settings.channelscan.type.errorprobe",value:"ERROR"});break;default:this.scanTypes.push({label:"settings.channelscan.type.erroropen",value:"ERROR"})}e&&(this.scanTypes.push({label:"settings.channelscan.type.alltransport",value:"ALLTRANSPORT"}),this.scanTypes.push({label:"settings.channelscan.type.onetransport",value:"ONETRANSPORT"})),this.scanTypes.forEach(n=>this.translate.get(n.label).subscribe(s=>n.label=s)),this.helpText&&this.translate.get(this.helpText).subscribe(n=>this.helpText=n)}onScanTypeChange(){this.scanRequest.Frequency="FULLTUNED"==this.scanRequest.ScanType?this.videoSourceLookup[this.card.SourceId].ScanFrequency:0,setTimeout(()=>this.onFreqTableChange(!1),100)}onFreqTableChange(e){this.channels=[];let
n="";if(this.scanRequest.FreqTable.startsWith("us")){if(e||("us"==this.scanRequest.FreqTable?this.scanRequest.Modulation="vsb8":"vsb8"==th
is.scanRequest.Modulation&&(this.scanRequest.Modulation="qam256")),"vsb8"==this.scanRequest.Modulation?n="ATSC
Channel ":"qam256"==this.scanRequest.Modulation?n="QAM-256 Channel
":"qam128"==this.scanRequest.Modulation?n="QAM-128 Channel
":"qam64"==this.scanRequest.Modulation&&(n="QAM-64 Channel
"),"us"==this.scanRequest.FreqTable){if("vsb8"==this.scanRequest.Modulation)for(let
s=2;s<=36;s++)this.channels.push(n+s)}else
if(this.scanRequest.FreqTable.match(/us.*high/))for(let
s=78;s<=158;s++)this.channels.push(n+s);else
if(this.scanRequest.FreqTable.match(/^us/)){this.channels.push(n+"T-13"),this.channels.push(n+"T-14");for(let
s=2;s<=158;s++)this.channels.push(n+s)}this.channels.length>0?setTimeout(()=>{this.scanRequest.FirstChan=this.channels[0],this.scanRequest.LastChan=this.channels[this.channels.length-1]},100):(this.scanRequest.FirstChan="",this.scanRequest.LastChan="")}}onSatTuningChange(){Object.assign(this.scanRequest,this.satTuning)}calcCount(){return
this.channelCount=this.
channels.findIndex(e=>e==this.scanRequest.LastChan)-this.channels.findIndex(e=>e==this.scanRequest.FirstChan)+1}getScanList(){this.channelService.GetScanList(this.card.SourceId).subscribe(e=>{this.scans=e.ScanList.Scans,this.scans.forEach(n=>{var
s=new Date(n.ScanDate);n.label=s.toLocaleDateString()+"
"+s.toLocaleTimeString()+"
"+(n.Processed?this.procDesc:this.unprocDesc)})})}getmultiplexList(){this.channelService.GetVideoMultiplexList({SourceID:this.card.SourceId}).subscribe(e=>{this.multiplex=e.VideoMultiplexList.VideoMultiplexes})}startScan(){if(this.iconnection.currentForm&&this.iconnection.currentForm.form.dirty)return
this.iconnection.work.startScan=!0,void
this.iconnection.saveForm();this.scanRequest.CardId=this.card.CardId,this.channelService.StartScan(this.scanRequest).subscribe(e=>{setTimeout(()=>this.refreshStatus(!0),500)})}stopScan(){this.channelService.StopScan(this.card.CardId).subscribe()}respondDialog(){this.dialogResponse.CardId=this.card.CardId,this.dialogRespons
e.DialogButton=this.scanStatus.DialogButtons.indexOf(this.buttonText),this.channelService.SendScanDialogResponse(this.dialogResponse).subscribe(e=>this.iconnection.loadChannels())}refreshStatus(e){this.channelService.GetScanStatus().subscribe(n=>{this.scanStatus=n.ScanStatus,this.scrollpanel.scrollTop(1e5),"RUNNING"==this.scanStatus.Status?this.refreshCount=5:this.refreshCount--,this.refreshCount>0?setTimeout(()=>this.refreshStatus(!0),500):e&&this.iconnection.loadChannels()})}}return
t.\u0275fac=function(e){return
new(e||t)(D(Oe),D(Or),D(Gt),D(Me))},t.\u0275cmp=z({type:t,selectors:[["app-channelscan"]],viewQuery:function(e,n){if(1&e&&W(Hse,5),2&e){let
s;V(s=B())&&(n.scrollpanel=s.first)}},inputs:{card:"card",cardList:"cardList",iconnection:"iconnection",videoSourceLookup:"videoSourceLookup"},decls:131,vars:137,consts:[[1,"form-group","field"],["for","DesiredServices",1,"label","block"],["optionLabel","label","optionValue","value","name","DesiredServices",3,"options","ngModel","edit
able","maxlength","ngModelChange"],["DesiredServices","ngModel"],[1,"block"],["inputId","FreeToAirOnly","name","FreeToAirOnly",1,"label","mb-2","w-full",3,"ngModel","binary","label","ngModelChange"],["FreeToAirOnly","ngModel"],["inputId","ChannelNumbersOnly","name","ChannelNumbersOnly",1,"label","mb-2","w-full",3,"ngModel","binary","label","ngModelChange"],["ChannelNumbersOnly","ngModel"],["inputId","CompleteChannelsOnly","name","CompleteChannelsOnly",1,"label","mb-2","w-full",3,"ngModel","binary","label","ngModelChange"],["CompleteChannelsOnly","ngModel"],["inputId","FullChannelSearch","name","FullChannelSearch",1,"label","mb-2","w-full",3,"ngModel","binary","label","ngModelChange"],["FullChannelSearch","ngModel"],["inputId","RemoveDuplicates","name","RemoveDuplicates",1,"label","mb-2","w-full",3,"ngModel","binary","label","ngModelChange"],["RemoveDuplicates","ngModel"],["inputId","AddFullTS","name","AddFullTS",1,"label","mb-2","w-full",3,"ngModel","binary","label","ngModelChange"]
,["AddFullTS","ngModel"],["inputId","TestDecryptable","name","TestDecryptable",1,"label","mb-2","w-full",3,"ngModel","binary","label","ngModelChange"],["TestDecryptable","ngModel"],["for","ScanType",1,"label","block"],["optionLabel","label","optionValue","value","name","ScanType",3,"options","ngModel","editable","maxlength","ngModelChange","onChange"],["ScanType","ngModel"],["class","mb-4
w-full",3,"legend","toggleable","collapsed",4,"ngIf"],[1,"grid"],[2,"display","flex","align-items","center"],["icon","pi
pi-play","iconPos","left",3,"label","disabled","onClick"],["class","block",4,"ngIf"],[1,"mb-4","w-full",3,"legend","collapsed","toggleable"],[1,"col-6"],[1,"col-10","bg-blue-100","text-gray-900"],[1,"label","block"],[1,"col-10"],[3,"value"],["class","form-group
field",4,"ngIf"],["icon","pi
pi-times-circle","iconPos","left","styleClass","p-button-danger",3,"label","disabled","onClick"],[1,"col-6",2,"white-space","pre-line"],["scroll",""],[1,"mb-4","w-full",3,"legend","toggleable",
"collapsed"],["for","FreqTable",1,"label","block"],["optionLabel","label","optionValue","value","name","FreqTable",3,"options","ngModel","editable","maxlength","ngModelChange","onChange"],["FreqTable","ngModel"],["for","Country",1,"label","block"],["optionLabel","label","optionValue","value","name","Country",3,"options","ngModel","editable","maxlength","ngModelChange"],["Country","ngModel"],["for","atscModulation",1,"label","block"],["optionLabel","label","optionValue","value","name","atscModulation",3,"options","ngModel","editable","maxlength","ngModelChange","onChange"],["atscModulation","ngModel"],["for","FirstChan",1,"label","block"],["name","FirstChan",3,"options","ngModel","editable","maxlength","ngModelChange"],["FirstChan","ngModel"],[4,"ngIf"],[1,"p-error","block"],["for","LastChan",1,"label","block"],["name","LastChan",3,"options","ngModel","editable","maxlength","ngModelChange"],["LastChan","ngModel"],["for","Frequency",1,"label","block"],["name","Frequency","id","Frequen
cy",3,"ngModel","min","max","ngModelChange"],[3,"translate","translateParams"],["for","Inversion",1,"label","block"],["name","Inversion","optionLabel","label","optionValue","value",3,"options","ngModel","editable","maxlength","ngModelChange"],["Inversion","ngModel"],["for","SatTuning",1,"label","block"],["name","SatTuning","optionLabel","label",3,"options","ngModel","editable","maxlength","ngModelChange","onChange"],["SatTuning","ngModel"],["for","Bandwidth",1,"label","block"],["name","Bandwidth","optionLabel","label","optionValue","value",3,"options","ngModel","editable","maxlength","ngModelChange"],["Bandwidth","ngModel"],["for","Polarity",1,"label","block"],["name","Polarity","optionLabel","label","optionValue","value",3,"options","ngModel","editable","maxlength","ngModelChange"],["Polarity","ngModel"],["for","dvbcSymbolRate",1,"label","block"],["name","dvbcSymbolRate","optionLabel","label","optionValue","value",3,"options","ngModel","editable","maxlength","ngModelChange"],["dvbc
SymbolRate","ngModel"],["for","dvbsSymbolRate",1,"label","block"],["name","dvbsSymbolRate","optionLabel","label","optionValue","value",3,"options","ngModel","editable","maxlength","ngModelChange"],["dvbsSymbolRate","ngModel"],["for","Constellation",1,"label","block"],["name","Constellation","optionLabel","label","optionValue","value",3,"options","ngModel","editable","maxlength","ngModelChange"],["Constellation","ngModel"],["for","Modulation",1,"label","block"],["name","Modulation","optionLabel","label","optionValue","value",3,"options","ngModel","editable","maxlength","ngModelChange"],["Modulation","ngModel"],["for","DVBSModulation",1,"label","block"],["name","DVBSModulation","optionLabel","label","optionValue","value",3,"options","ngModel","editable","maxlength","ngModelChange"],["DVBSModulation","ngModel"],["for","DVBTModSys",1,"label","block"],["name","DVBTModSys","optionLabel","label","optionValue","value",3,"options","ngModel","editable","maxlength","ngModelChange"],["DVBTModSy
s","ngModel"],["for","DVBCModSys",1,"label","block"],["name","DVBCModSys","optionLabel","label","optionValue","value",3,"options","ngModel","editable","maxlength","ngModelChange"],["DVBCModSys","ngModel"],["for","DVBSModSys",1,"label","block"],["name","DVBSModSys","optionLabel","label","optionValue","value",3,"options","ngModel","editable","maxlength","ngModelChange"],["DVBSModSys","ngModel"],["for","CodeRateLP",1,"label","block"],["name","CodeRateLP","optionLabel","label","optionValue","value",3,"options","ngModel","editable","maxlength","ngModelChange"],["CodeRateLP","ngModel"],["for","CodeRateHP",1,"label","block"],["name","CodeRateHP","optionLabel","label","optionValue","value",3,"options","ngModel","editable","maxlength","ngModelChange"],["CodeRateHP","ngModel"],["for","FEC",1,"label","block"],["name","FEC","optionLabel","label","optionValue","value",3,"options","ngModel","editable","maxlength","ngModelChange"],["FEC","ngModel"],["for","TransmissionMode",1,"label","block"],["na
me","TransmissionMode","optionLabel","label","optionValue","value",3,"options","ngModel","editable","maxlength","ngModelChange"],["TransmissionMode","ngModel"],["for","GuardInterval",1,"label","block"],["name","GuardInterval","optionLabel","label","optionValue","value",3,"options","ngModel","editable","maxlength","ngModelChange"],["GuardInterval","ngModel"],["for","Hierarchy",1,"label","block"],["name","Hierarchy","optionLabel","label","optionValue","value",3,"options","ngModel","editable","maxlength","ngModelChange"],["Hierarchy","ngModel"],["for","RollOff",1,"label","block"],["name","RollOff","optionLabel","label","optionValue","value",3,"options","ngModel","editable","maxlength","ngModelChange"],["RollOff","ngModel"],["for","ScanId",1,"label","block"],["optionLabel","label","optionValue","ScanId","name","ScanId",3,"options","ngModel","editable","maxlength","ngModelChange"],["ScanId","ngModel"],["inputId","IgnoreSignalTimeout","name","IgnoreSignalTimeout",1,"label","mb-2","w-full"
,3,"ngModel","binary","label","ngModelChange"],["IgnoreSignalTimeout","ngModel"],["inputId","FollowNITSetting","name","FollowNITSetting",1,"label","mb-2","w-full",3,"ngModel","binary","label","ngModelChange"],["FollowNITSetting","ngModel"],["for","MplexId",1,"label","block"],["optionLabel","Description","optionValue","MplexId","name","MplexId",3,"options","ngModel","editable","maxlength","ngModelChange"],["MplexId","ngModel"],[1,"col-10",2,"color","black","background-color","pink"],["pInputText","","id","DialogString","name","DialogString",1,"mb-2","form-control","w-full",3,"ngModel","ngModelChange"],["InputName","ngModel"],["for","DialogButtons",1,"label","block"],["name","DialogButtons",3,"options","ngModel","editable","maxlength","ngModelChange"],["styleClass","p-button-info",1,"gap-3",3,"label","onClick"]],template:function(e,n){1&e&&(l(0,"div",0)(1,"label",1),g(2),m(3,"translate"),c(),l(4,"p-dropdown",2,3),C("ngModelChange",function(r){return
n.scanRequest.DesiredServices=r}),c
(),l(6,"small",4),g(7),m(8,"translate"),c()(),l(9,"div",0)(10,"p-checkbox",5,6),C("ngModelChange",function(r){return
n.scanRequest.FreeToAirOnly=r}),m(12,"translate"),c(),l(13,"small",4),g(14),m(15,"translate"),c()(),l(16,"div",0)(17,"p-checkbox",7,8),C("ngModelChange",function(r){return
n.scanRequest.ChannelNumbersOnly=r}),m(19,"translate"),c(),l(20,"small",4),g(21),m(22,"translate"),c()(),l(23,"div",0)(24,"p-checkbox",9,10),C("ngModelChange",function(r){return
n.scanRequest.CompleteChannelsOnly=r}),m(26,"translate"),c(),l(27,"small",4),g(28),m(29,"translate"),c()(),l(30,"div",0)(31,"p-checkbox",11,12),C("ngModelChange",function(r){return
n.scanRequest.FullChannelSearch=r}),m(33,"translate"),c(),l(34,"small",4),g(35),m(36,"translate"),c()(),l(37,"div",0)(38,"p-checkbox",13,14),C("ngModelChange",function(r){return
n.scanRequest.RemoveDuplicates=r}),m(40,"translate"),c(),l(41,"small",4),g(42),m(43,"translate"),c()(),l(44,"div",0)(45,"p-checkbox",15,16),C("ngModelChange",function(r){r
eturn
n.scanRequest.AddFullTS=r}),m(47,"translate"),c(),l(48,"small",4),g(49),m(50,"translate"),c()(),l(51,"div",0)(52,"p-checkbox",17,18),C("ngModelChange",function(r){return
n.scanRequest.TestDecryptable=r}),m(54,"translate"),c(),l(55,"small",4),g(56),m(57,"translate"),c()(),l(58,"div",0)(59,"label",19),g(60),m(61,"translate"),c(),l(62,"p-dropdown",20,21),C("ngModelChange",function(r){return
n.scanRequest.ScanType=r})("onChange",function(){return
n.onScanTypeChange()}),c(),l(64,"small",4),g(65),c()(),_(66,Jse,9,13,"p-fieldset",22),_(67,_re,36,57,"p-fieldset",22),_(68,bre,9,15,"p-fieldset",22),_(69,Cre,17,22,"p-fieldset",22),k(70,"br")(71,"br"),l(72,"div",0)(73,"div",23)(74,"div",24)(75,"p-button",25),C("onClick",function(){return
n.startScan()}),m(76,"translate"),c()()(),_(77,yre,3,3,"small",26),c(),l(78,"p-fieldset",27),m(79,"translate"),l(80,"div",23)(81,"div",28)(82,"div",0)(83,"div",29)(84,"b"),g(85),c()()(),l(86,"div",0)(87,"label",30),g(88),m(89,"translate"),c(),l(90,"div",2
9),g(91),c()(),l(92,"div",0)(93,"label",30),g(94),m(95,"translate"),c(),l(96,"div",29),g(97),c()(),l(98,"div",0)(99,"label",30),g(100),m(101,"translate"),c(),l(102,"div",31),k(103,"p-progressBar",32),c()(),l(104,"div",0)(105,"label",30),g(106),m(107,"translate"),c(),l(108,"div",31),k(109,"p-progressBar",32),c()(),l(110,"div",0)(111,"label",30),g(112),m(113,"translate"),c(),l(114,"div",31),k(115,"p-progressBar",32),c()(),k(116,"br"),_(117,wre,6,1,"div",33),_(118,Tre,3,1,"div",33),_(119,Sre,6,10,"div",33),_(120,xre,3,3,"div",33),k(121,"br"),l(122,"div",0)(123,"div",24)(124,"p-button",34),C("onClick",function(){return
n.stopScan()}),m(125,"translate"),c()(),k(126,"small",4),c()(),l(127,"div",35)(128,"p-scrollPanel",null,36),g(130),c()()()()),2&e&&(a(2),S(f(3,81,"settings.channelscan.services_label")),a(2),q(A(131,ht)),p("options",n.serviceValues)("ngModel",n.scanRequest.DesiredServices)("editable",!1)("maxlength",0),a(3),T("
",f(8,83,"settings.channelscan.services_desc"),"
"),a(3),x("l
abel",f(12,85,"settings.channelscan.ftaonly_label")),p("ngModel",n.scanRequest.FreeToAirOnly)("binary",!0),a(4),T("
",f(15,87,"settings.channelscan.ftaonly_desc"),"
"),a(3),x("label",f(19,89,"settings.channelscan.channelnumbersonly_label")),p("ngModel",n.scanRequest.ChannelNumbersOnly)("binary",!0),a(4),T("
",f(22,91,"settings.channelscan.channelnumbersonly_desc"),"
"),a(3),x("label",f(26,93,"settings.channelscan.completeonly_label")),p("ngModel",n.scanRequest.CompleteChannelsOnly)("binary",!0),a(4),T("
",f(29,95,"settings.channelscan.completeonly_desc"),"
"),a(3),x("label",f(33,97,"settings.channelscan.fullsearch_label")),p("ngModel",n.scanRequest.FullChannelSearch)("binary",!0),a(4),T("
",f(36,99,"settings.channelscan.fullsearch_desc"),"
"),a(3),x("label",f(40,101,"settings.channelscan.removeduplicates_label")),p("ngModel",n.scanRequest.RemoveDuplicates)("binary",!0),a(4),T("
",f(43,103,"settings.channelscan.removeduplicates_desc"),"
"),a(3),x("label",f(47,105,"settings.channelsca
n.addfullts_label")),p("ngModel",n.scanRequest.AddFullTS)("binary",!0),a(4),T("
",f(50,107,"settings.channelscan.addfullts_desc"),"
"),a(3),x("label",f(54,109,"settings.channelscan.testdecryptable_label")),p("ngModel",n.scanRequest.TestDecryptable)("binary",!0),a(4),T("
",f(57,111,"settings.channelscan.testdecryptable_desc"),"
"),a(4),S(f(61,113,"settings.channelscan.scantype_label")),a(2),q(A(132,ht)),p("options",n.scanTypes)("ngModel",n.scanRequest.ScanType)("editable",!1)("maxlength",0),a(3),T("
",n.helpText,"
"),a(1),p("ngIf","FULL"==n.scanRequest.ScanType),a(1),p("ngIf","FULLTUNED"==n.scanRequest.ScanType),a(1),p("ngIf","IMPORT"==n.scanRequest.ScanType),a(1),p("ngIf","ALLTRANSPORT"==n.scanRequest.ScanType||"ONETRANSPORT"==n.scanRequest.ScanType),a(6),x("label",f(76,115,"settings.channelscan.scan_label")),p("disabled",n.setupService.schedulingEnabled||"RUNNING"==n.scanStatus.Status||!n.card.SourceId),a(2),p("ngIf",n.iconnection.currentForm&&n.iconnection.currentForm.form.dirty||
!n.card.SourceId),a(1),x("legend",f(79,117,"settings.channelscan.status_title")),p("collapsed",!0)("toggleable",!1)("collapsed",!1),a(7),T("",n.scanStatus.StatusTitle,"
\xa0"),a(3),S(f(89,119,"settings.channelscan.status_label")),a(3),T("
",n.scanStatus.StatusText," \xa0
"),a(3),S(f(95,121,"settings.channelscan.lock_label")),a(3),T("
",n.scanStatus.SignalLock?n.lockDesc:n.nolockDesc," \xa0
"),a(3),S(f(101,123,"settings.channelscan.progress_label")),a(3),q(A(133,Sg)),p("value",n.scanStatus.Progress),a(3),S(f(107,125,"settings.channelscan.noise_label")),a(3),q(A(134,Sg)),p("value",n.scanStatus.SignalNoise),a(3),S(f(113,127,"settings.channelscan.strength_label")),a(3),q(A(135,Sg)),p("value",n.scanStatus.SignalStrength),a(2),p("ngIf",n.scanStatus.DialogMsg),a(1),p("ngIf",n.scanStatus.DialogInputReq),a(1),p("ngIf",n.scanStatus.DialogButtons.length>0),a(1),p("ngIf",n.scanStatus.DialogButtons.length>0||n.scanStatus.DialogInputReq),a(4),x("label",f(125,129,"settings.channelscan.stop_label")
),p("disabled","RUNNING"!=n.scanStatus.Status||n.scanStatus.DialogButtons.length>0),a(4),q(A(136,Dre)),a(2),T("
",n.scanStatus.StatusLog,"
"))},directives:[Ot,Te,_e,_n,sn,Q,Ui,pt,mu,ve,tz,Ye,K2],pipes:[ce],styles:[""]}),t})(),kre=(()=>{class
t{constructor(e){this.httpClient=e}GetBackendStatus(){return
this.httpClient.get("/Status/GetBackendStatus")}}return
t.\u0275fac=function(e){return
new(e||t)(K(Bi))},t.\u0275prov=X({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();var
ci=(()=>(function(t){t[t.kState_Error=-1]="kState_Error",t[t.kState_None=0]="kState_None",t[t.kState_WatchingLiveTV=1]="kState_WatchingLiveTV",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"}(ci||
(ci={})),ci))();let cs=(()=>{class
t{constructor(e){this.translate=e,this.allSlashes=new RegExp(/\//g),this.deSpacer=new
RegExp(/ /g),this.recTypeTrans={"Single Record":"","Record
All":"","Record One":"","Record
Daily":"","Record Weekly":"","Override
Recording":"","Do not Record":"","Recording
Template":"","Not Recording":""};for(const[n,s]of
Object.entries(this.recTypeTrans)){const
r="recrule."+n.replace(this.deSpacer,"");this.translate.get(r).subscribe(o=>{Object.defineProperty(this.recTypeTrans,n,{value:o})})}}formatDate(e,n){if(!e)return"";10==e.length&&(e+="
00:00");let s=new Date(e).toLocaleDateString();return
n?s.replace(this.allSlashes,"/<wbr>"):s}formatTime(e){return e?(new
Date(e).toLocaleTimeString()+" ").replace(/:..
/,""):""}formatDateTime(e,n){return this.formatDate(e,n)+"
"+this.formatTime(e)}}return t.\u0275fac=function(e){return
new(e||t)(K(Oe))},t.\u0275prov=X({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();const
Ire=function(t){return{EndTime:t}};function E
re(t,i){if(1&t&&(de(0),g(1),m(2,"translate"),pe()),2&t){const
e=d().$implicit,n=d(2);a(1),yo(" '",e.Recording.Title,"' on
",e.Recording.Channel.CallSign,".
",Dt(2,3,"dashboard.status.endtime_text",U(6,Ire,n.utility.formatTime(e.Recording.EndTime))),"
")}}const
Rre=function(t,i,e,n){return{CardId:t,Id:i,InputName:e,DisplayName:n}};function
Lre(t,i){if(1&t&&(l(0,"div")(1,"ul")(2,"li"),g(3),m(4,"translate"),c()()()),2&t){const
e=i.$implicit;a(3),T("",Dt(4,1,"dashboard.status.card_text",qn(4,Rre,e.CardId,e.Id,e.InputName,e.DisplayName)),"
")}}const Ore=function(t,i,e){return{Id:t,HostName:i,State:e}};function
Are(t,i){if(1&t&&(l(0,"div")(1,"ul")(2,"li"),g(3),m(4,"translate"),_(5,Ere,3,8,"ng-container",4),c(),_(6,Lre,5,9,"div",3),c()()),2&t){const
e=i.$implicit,n=d(2);a(3),T("
",Dt(4,3,"dashboard.status.encoder_text",Qt(6,Ore,e.Id,e.HostName,n.EncoderStatusText(e.State))),"
"),a(2),p("ngIf",7==e.State),a(1),p("ngForOf",e.Inputs)}}function
Pre(t,i){if(1&t&&(l(0,"div"),_(1,Are,7,10,"div",3
),c()),2&t){const e=d();a(1),p("ngForOf",e.encoders)}}function
Fre(t,i){1&t&&(l(0,"div"),g(1),m(2,"translate"),c()),2&t&&(a(1),S(f(2,1,"dashboard.status.no_encoders")))}let
Nre=(()=>{class
t{constructor(e){this.utility=e}ngOnInit(){}EncoderStatusText(e){switch(e){case
ci.kState_Error:return"Error";case ci.kState_None:return"Idle";case
ci.kState_WatchingLiveTV:return"Watching Live TV";case
ci.kState_WatchingPreRecorded:return"Watching Pre Recorded";case
ci.kState_WatchingVideo:return"Watching Video";case
ci.kState_WatchingDVD:return"Watching DVD";case
ci.kState_WatchingBD:return"Watching BD";case
ci.kState_WatchingRecording:return"Watching Recording";case
ci.kState_RecordingOnly:return"Recording";case
ci.kState_ChangingState:return"Changing
State";default:return"unknown"}}}return t.\u0275fac=function(e){return
new(e||t)(D(cs))},t.\u0275cmp=z({type:t,selectors:[["app-status-encoders"]],inputs:{encoders:"encoders"},decls:7,vars:5,consts:[[1,"statusBox"],[4,"ngIf","ngIfElse"],["noEncode
rs",""],[4,"ngFor","ngForOf"],[4,"ngIf"]],template:function(e,n){if(1&e&&(l(0,"div",0)(1,"h2"),g(2),m(3,"translate"),c(),_(4,Pre,2,1,"div",1),c(),_(5,Fre,3,3,"ng-template",null,2,we)),2&e){const
s=F(6);a(2),S(f(3,3,"dashboard.status.encoder_title")),a(2),p("ngIf",0!=(null==n.encoders?null:n.encoders.length))("ngIfElse",s)}},directives:[Q,at],pipes:[ce],styles:["","div.statusBox[_ngcontent-%COMP%]{width:auto;border-top:1px
solid var(--text-color);border-right:1px solid var(--text-color);border-bottom:1px solid
var(--text-color);border-left:10px solid var(--text-color);padding:10px;border-radius:8px
0 0 8px;margin:20px}"]}),t})();function
Vre(t,i){if(1&t&&(l(0,"li",4)(1,"div",5),g(2),c()()),2&t){const
e=i.$implicit,n=d(2);a(1),x("pTooltip",e.Description),a(1),Ih("
",n.utility.formatDate(e.StartTime),"
",n.utility.formatTime(e.StartTime)," - ",e.Recording.EncoderId," -
",e.Channel.CallSign," - ",e.Title," ")}}const
Bre=function(t){return{length:t}};function
Hre(t,i){if(1&t&&(l(0,"div")
(1,"p"),g(2),m(3,"translate"),c(),l(4,"ul"),_(5,Vre,3,6,"li",3),c()()),2&t){const
e=d();a(2),S(Dt(3,2,"dashboard.status.schedule_text",U(5,Bre,null==e.scheduled?null:e.scheduled.length))),a(3),p("ngForOf",e.scheduled)}}function
qre(t,i){1&t&&(l(0,"p"),g(1),m(2,"translate"),c()),2&t&&(a(1),S(f(2,1,"dashboard.status.schedule_none")))}let
Gre=(()=>{class t{constructor(e){this.utility=e}ngOnInit(){}}return
t.\u0275fac=function(e){return
new(e||t)(D(cs))},t.\u0275cmp=z({type:t,selectors:[["app-status-scheduled"]],inputs:{scheduled:"scheduled"},decls:7,vars:5,consts:[[1,"statusBox"],[4,"ngIf","ngIfElse"],["noSchedule",""],["class","flex",4,"ngFor","ngForOf"],[1,"flex"],["tooltipPosition","bottom",3,"pTooltip"]],template:function(e,n){if(1&e&&(l(0,"div",0)(1,"h2"),g(2),m(3,"translate"),c(),_(4,Hre,6,7,"div",1),c(),_(5,qre,3,3,"ng-template",null,2,we)),2&e){const
s=F(6);a(2),S(f(3,3,"dashboard.status.schedule_title")),a(2),p("ngIf",0!=(null==n.scheduled?null:n.scheduled.length))("ngIfElse",
s)}},directives:[Q,at,Kt],pipes:[ce],styles:["","div.statusBox[_ngcontent-%COMP%]{width:auto;border-top:1px
solid var(--text-color);border-right:1px solid var(--text-color);border-bottom:1px solid
var(--text-color);border-left:10px solid var(--text-color);padding:10px;border-radius:8px
0 0 8px;margin:20px}"]}),t})();function
Ure(t,i){if(1&t&&(l(0,"div")(1,"p"),g(2),m(3,"translate"),c()()),2&t){const
e=i.$implicit,n=d(2);a(2),Eh("",n.utility.formatDate(e.StatusTime),"
",n.utility.formatTime(e.StatusTime)," - ",e.Program.Title," -
",e.LocalizedJobName," -
",f(3,6,"dashboard.status.jobs_status"),":
",e.LocalizedStatus," ")}}function
zre(t,i){if(1&t&&(l(0,"div")(1,"p"),g(2),m(3,"translate"),c(),l(4,"ul"),_(5,Ure,4,8,"div",3),c()()),2&t){const
e=d();a(2),T("",f(3,2,"dashboard.status.jobs_text"),":"),a(3),p("ngForOf",e.jobqueue)}}function
jre(t,i){1&t&&(l(0,"p"),g(1),m(2,"translate"),c()),2&t&&(a(1),S(f(2,1,"dashboard.status.jobs_none")))}let
$re=(()=>{class t{constructor(e){this.utility=
e}ngOnInit(){}}return t.\u0275fac=function(e){return
new(e||t)(D(cs))},t.\u0275cmp=z({type:t,selectors:[["app-status-jobqueue"]],inputs:{jobqueue:"jobqueue"},decls:7,vars:5,consts:[[1,"statusBox"],[4,"ngIf","ngIfElse"],["noJobs",""],[4,"ngFor","ngForOf"]],template:function(e,n){if(1&e&&(l(0,"div",0)(1,"h2"),g(2),m(3,"translate"),c(),_(4,zre,6,4,"div",1),c(),_(5,jre,3,3,"ng-template",null,2,we)),2&e){const
s=F(6);a(2),S(f(3,3,"dashboard.status.jobs_title")),a(2),p("ngIf",0!=(null==n.jobqueue?null:n.jobqueue.length))("ngIfElse",s)}},directives:[Q,at],pipes:[ce],styles:["","div.statusBox[_ngcontent-%COMP%]{width:auto;border-top:1px
solid var(--text-color);border-right:1px solid var(--text-color);border-bottom:1px solid
var(--text-color);border-left:10px solid var(--text-color);padding:10px;border-radius:8px
0 0 8px;margin:20px}"]}),t})();function
Wre(t,i){if(1&t&&(l(0,"div")(1,"p"),g(2),m(3,"translate"),c(),l(4,"ul")(5,"li"),g(6),m(7,"translate"),c(),l(8,"ul")(9,"li"),g(10),m(11,"trans
late"),c(),l(12,"li"),g(13),m(14,"translate"),c(),l(15,"li"),g(16),m(17,"translate"),c(),l(18,"li"),g(19),m(20,"translate"),c(),l(21,"ul")(22,"li"),g(23),m(24,"translate"),c(),l(25,"li"),g(26),m(27,"translate"),c(),l(28,"li"),g(29),m(30,"translate"),c()()()()()),2&t){const
e=i.ngIf;a(2),T("",f(3,16,"dashboard.status.mach.disk_summ"),":"),a(4),T("",f(7,18,"dashboard.status.mach.disk_total"),":"),a(4),We("",f(11,20,"dashboard.status.mach.total_space"),":
",e.Total.toLocaleString(),"
MiB"),a(3),We("",f(14,22,"dashboard.status.mach.space_used"),":
",e.Used.toLocaleString(),"
MiB"),a(3),We("",f(17,24,"dashboard.status.mach.space_free"),":
",e.Free.toLocaleString(),"
MiB"),a(3),We("",f(20,26,"dashboard.status.mach.space_after_expire"),":
",(e.Free+e.Expirable).toLocaleString(),""),a(4),We("",f(24,28,"dashboard.status.mach.space_livetv"),":
",e.LiveTV.toLocaleString(),"
MiB"),a(3),We("",f(27,30,"dashboard.status.mach.space_deleted"),":
",e.Deleted.toLocaleString()," MiB"),a(3),We("",f(30,3
2,"dashboard.status.mach.space_expirable"),":
",e.Expirable.toLocaleString()," MiB")}}function
Kre(t,i){1&t&&Y(0)}function
Qre(t,i){if(1&t&&(l(0,"div"),_(1,Kre,1,0,"ng-container",6),c()),2&t){const
e=i.$implicit;d(2);const
n=F(10);a(1),p("ngTemplateOutlet",n)("ngTemplateOutletContext",e)}}const
Jre=function(t,i,e){return{GuideStart:t,GuideEnd:i,GuideStatus:e}},Yre=function(t){return{GuideNext:t}},Zre=function(t,i){return{GuideThru:t,GuideDays:i}};function
Xre(t,i){if(1&t&&(l(0,"div")(1,"div")(2,"p"),g(3),m(4,"translate"),c(),l(5,"ul")(6,"li"),g(7),m(8,"translate"),c(),l(9,"li"),g(10),m(11,"translate"),c(),l(12,"li"),g(13),m(14,"translate"),c()()(),_(15,Wre,31,34,"div",1),l(16,"div")(17,"p"),g(18),m(19,"translate"),c(),_(20,Qre,2,2,"div",5),c(),l(21,"div")(22,"p"),g(23),m(24,"translate"),k(25,"br"),g(26),m(27,"translate"),k(28,"br"),g(29),m(30,"translate"),c()()()),2&t){const
e=d(),n=F(8);a(3),S(f(4,14,"dashboard.status.mach.load")),a(4),We("1
",f(8,16,"dashboard.status.mach.minute")
,": ",e.machineinfo.LoadAvg1.toLocaleString(),""),a(3),We("5
",f(11,18,"dashboard.status.mach.minutes"),":
",e.machineinfo.LoadAvg2.toLocaleString(),""),a(3),We("15
",f(14,20,"dashboard.status.mach.minutes"),":
",e.machineinfo.LoadAvg3.toLocaleString(),""),a(2),p("ngIf",e.getStorageGroupTotal(e.machineinfo.StorageGroups))("ngIfElse",n),a(3),T("",f(19,22,"dashboard.status.mach.disk_details"),":"),a(2),p("ngForOf",e.getStorageGroupDetails(e.machineinfo.StorageGroups)),a(3),S(Dt(24,24,"dashboard.status.mach.mythfill_last",Qt(33,Jre,e.utility.formatDateTime(e.machineinfo.GuideStart),e.utility.formatDateTime(e.machineinfo.GuideEnd),e.machineinfo.GuideStatus))),a(3),T("
",Dt(27,27,"dashboard.status.mach.mythfill_next",U(37,Yre,e.utility.formatDateTime(e.machineinfo.GuideNext))),""),a(3),T("
",Dt(30,30,"dashboard.status.mach.mythfill_until",Ge(39,Zre,e.utility.formatDateTime(e.machineinfo.GuideThru),e.machineinfo.GuideDays)),"
")}}function
eoe(t,i){1&t&&(l(0,"p"),g(1),m(2,"translate"),c())
,2&t&&(a(1),S(f(2,1,"dashboard.status.mach.none")))}function
toe(t,i){1&t&&(l(0,"p"),g(1),m(2,"translate"),c()),2&t&&(a(1),S(f(2,1,"dashboard.status.mach.disk_none")))}function
noe(t,i){if(1&t&&(l(0,"ul")(1,"li"),g(2),m(3,"translate"),c(),l(4,"ul")(5,"li"),g(6),m(7,"translate"),c(),l(8,"li"),g(9),m(10,"translate"),c(),l(11,"li"),g(12),m(13,"translate"),c(),l(14,"li"),g(15),m(16,"translate"),c()()()),2&t){const
e=i.Id,n=i.Directory,s=i.Total,r=i.Used,o=i.Free;a(2),We("",f(3,10,"dashboard.status.mach.myth_drive"),"
#",e,""),a(4),We("",f(7,12,"dashboard.status.mach.disk_dirs"),":
",n,""),a(3),We("",f(10,14,"dashboard.status.mach.total_space"),":
",s.toLocaleString(),"
MiB"),a(3),We("",f(13,16,"dashboard.status.mach.space_used"),":
",r.toLocaleString(),"
MiB"),a(3),We("",f(16,18,"dashboard.status.mach.space_free"),":
",o.toLocaleString()," MiB")}}let ioe=(()=>{class
t{constructor(e){this.utility=e}ngOnInit(){}getStorageGroupTotal(e){return
e.filter(n=>"total"==n.Id)[0]}getStorageGroupDe
tails(e){return e.filter(n=>"total"!=n.Id)}}return
t.\u0275fac=function(e){return
new(e||t)(D(cs))},t.\u0275cmp=z({type:t,selectors:[["app-status-machineinfo"]],inputs:{machineinfo:"machineinfo"},decls:11,vars:5,consts:[[1,"statusBox"],[4,"ngIf","ngIfElse"],["noMachineInfo",""],["noDiskInfo",""],["printStorageGroup",""],[4,"ngFor","ngForOf"],[4,"ngTemplateOutlet","ngTemplateOutletContext"]],template:function(e,n){if(1&e&&(l(0,"div",0)(1,"h2"),g(2),m(3,"translate"),c(),_(4,Xre,31,42,"div",1),c(),_(5,eoe,3,3,"ng-template",null,2,we),_(7,toe,3,3,"ng-template",null,3,we),_(9,noe,17,20,"ng-template",null,4,we)),2&e){const
s=F(6);a(2),S(f(3,3,"dashboard.status.mach.title")),a(2),p("ngIf",n.machineinfo)("ngIfElse",s)}},directives:[Q,at,Rt],pipes:[ce],styles:["","div.statusBox[_ngcontent-%COMP%]{width:auto;border-top:1px
solid var(--text-color);border-right:1px solid var(--text-color);border-bottom:1px solid
var(--text-color);border-left:10px solid var(--text-color);padding:10px;border-radi
us:8px 0 0 8px;margin:20px}"]}),t})();const
soe=function(t,i,e){return{Name:t,Type:i,IP:e}};function
roe(t,i){if(1&t&&(l(0,"div")(1,"li"),g(2),m(3,"translate"),c()()),2&t){const
e=i.$implicit;a(2),T("",Dt(3,1,"dashboard.status.backends_detail",Qt(4,soe,e.Name,e.Type,e.IP)),"
")}}function
ooe(t,i){if(1&t&&(l(0,"div")(1,"ul"),_(2,roe,4,8,"div",3),c()()),2&t){const
e=d();a(2),p("ngForOf",e.backends)}}function
aoe(t,i){1&t&&(l(0,"p"),g(1),m(2,"translate"),c()),2&t&&(a(1),S(f(2,1,"dashboard.status.backends_none")))}let
loe=(()=>{class t{constructor(){}ngOnInit(){}}return t.\u0275fac=function(e){return
new(e||t)},t.\u0275cmp=z({type:t,selectors:[["app-status-backends"]],inputs:{backends:"backends"},decls:7,vars:5,consts:[[1,"statusBox"],[4,"ngIf","ngIfElse"],["noBackends",""],[4,"ngFor","ngForOf"]],template:function(e,n){if(1&e&&(l(0,"div",0)(1,"h2"),g(2),m(3,"translate"),c(),_(4,ooe,3,1,"div",1),c(),_(5,aoe,3,3,"ng-template",null,2,we)),2&e){const
s=F(6);a(2),S(f(3,3,"dashboard.status.ba
ckends_title")),a(2),p("ngIf",0!=(null==n.backends?null:n.backends.length))("ngIfElse",s)}},directives:[Q,at],pipes:[ce],styles:["","div.statusBox[_ngcontent-%COMP%]{width:auto;border-top:1px
solid var(--text-color);border-right:1px solid var(--text-color);border-bottom:1px solid
var(--text-color);border-left:10px solid var(--text-color);padding:10px;border-radius:8px
0 0 8px;margin:20px}"]}),t})();const
coe=function(t,i,e,n){return{Name:t,IP:i,Port:e,OnLine:n}};function
uoe(t,i){if(1&t&&(l(0,"div")(1,"li"),g(2),m(3,"translate"),c()()),2&t){const
e=i.$implicit;a(2),T("",Dt(3,1,"dashboard.status.frontends_detail",qn(4,coe,e.Name,e.IP,e.Port,e.OnLine)),"
")}}function
doe(t,i){if(1&t&&(l(0,"div")(1,"ul"),_(2,uoe,4,9,"div",3),c()()),2&t){const
e=d();a(2),p("ngForOf",e.frontends)}}function
poe(t,i){1&t&&(l(0,"p"),g(1),m(2,"translate"),c()),2&t&&(a(1),S(f(2,1,"dashboard.status.frontends_none")))}let
hoe=(()=>{class t{constructor(){}ngOnInit(){}}return t.\u0275fac=function(e){return
new(e|
|t)},t.\u0275cmp=z({type:t,selectors:[["app-status-frontends"]],inputs:{frontends:"frontends"},decls:7,vars:5,consts:[[1,"statusBox"],[4,"ngIf","ngIfElse"],["noFrontends",""],[4,"ngFor","ngForOf"]],template:function(e,n){if(1&e&&(l(0,"div",0)(1,"h2"),g(2),m(3,"translate"),c(),_(4,doe,3,1,"div",1),c(),_(5,poe,3,3,"ng-template",null,2,we)),2&e){const
s=F(6);a(2),S(f(3,3,"dashboard.status.frontends_title")),a(2),p("ngIf",0!=(null==n.frontends?null:n.frontends.length))("ngIfElse",s)}},directives:[Q,at],pipes:[ce],styles:["","div.statusBox[_ngcontent-%COMP%]{width:auto;border-top:1px
solid var(--text-color);border-right:1px solid var(--text-color);border-bottom:1px solid
var(--text-color);border-left:10px solid var(--text-color);padding:10px;border-radius:8px
0 0 8px;margin:20px}"]}),t})();function
moe(t,i){if(1&t&&(l(0,"div",9)(1,"h2"),g(2),m(3,"translate"),c(),l(4,"div"),g(5),c()()),2&t){const
e=d().ngIf;a(2),S(f(3,2,"dashboard.status.misc_title")),a(3),T("
",e.Miscellaneous," ")}}func
tion
foe(t,i){if(1&t&&(l(0,"div"),k(1,"app-status-encoders",2)(2,"app-status-scheduled",3)(3,"app-status-jobqueue",4)(4,"app-status-machineinfo",5)(5,"app-status-backends",6)(6,"app-status-frontends",7),_(7,moe,6,4,"div",8),c()),2&t){const
e=i.ngIf;a(1),p("encoders",e.Encoders),a(1),p("scheduled",e.Scheduled),a(1),p("jobqueue",e.JobQueue),a(1),p("machineinfo",e.MachineInfo),a(1),p("backends",e.Backends),a(1),p("frontends",e.Frontends),a(1),p("ngIf",e.Miscellaneous)}}function
goe(t,i){1&t&&(l(0,"div"),g(1,"Loading..."),c())}let
_oe=(()=>{class
t{constructor(e){this.statusService=e}ngOnInit(){this.m_status$=this.statusService.GetBackendStatus()}}return
t.\u0275fac=function(e){return
new(e||t)(D(kre))},t.\u0275cmp=z({type:t,selectors:[["app-status"]],decls:7,vars:7,consts:[[4,"ngIf","ngIfElse"],["loading",""],[3,"encoders"],[3,"scheduled"],[3,"jobqueue"],[3,"machineinfo"],[3,"backends"],[3,"frontends"],["class","statusBox",4,"ngIf"],[1,"statusBox"]],template:function(e,n){if(1&e&&(l(0,
"h2"),g(1),m(2,"translate"),c(),_(3,foe,8,7,"div",0),m(4,"async"),_(5,goe,2,0,"ng-template",null,1,we)),2&e){const
s=F(6);let r;a(1),T("",f(2,3,"dashboard.backendStatus"),"
"),a(2),p("ngIf",null==(r=f(4,5,n.m_status$))?null:r.BackendStatus)("ngIfElse",s)}},directives:[Q,Nre,Gre,$re,ioe,loe,hoe],pipes:[ce,xy],styles:["div.statusBox[_ngcontent-%COMP%]{width:auto;border-top:1px
solid var(--text-color);border-right:1px solid var(--text-color);border-bottom:1px solid
var(--text-color);border-left:10px solid var(--text-color);padding:10px;border-radius:8px
0 0 8px;margin:20px}"]}),t})();const
boe=["recsform"],voe=["menu"];function Coe(t,i){}function
yoe(t,i){1&t&&g(0),2&t&&T(" ",i.$implicit,"
")}function woe(t,i){if(1&t){const
e=I();l(0,"p-dropdown",67),C("onChange",function(s){return
v(e).filterCallback(s.value)}),m(1,"translate"),_(2,yoe,1,1,"ng-template",68),c()}if(2&t){const
e=i.$implicit,n=d(2);x("placeholder",f(1,4,"settings.chanedit.all")),p("ngModel",e)("options",n.recGroups)("sho
wClear",!0)}}function Toe(t,i){if(1&t){const
e=I();l(0,"tr")(1,"th",43)(2,"button",44),C("click",function(s){return
v(e),d().showContextMenu(null,s)}),m(3,"translate"),c(),g(4),m(5,"translate"),m(6,"translate"),k(7,"p-columnFilter",45),g(8),m(9,"translate"),l(10,"p-columnFilter",46),_(11,woe,3,6,"ng-template",47),c(),l(12,"button",48),C("click",function(){v(e);const
s=d();return
s.refreshing=!0,s.refresh()}),m(13,"translate"),c(),g(14),c()(),l(15,"tr")(16,"th",49),g(17),m(18,"translate"),k(19,"p-sortIcon",50),c(),k(20,"th",51),l(21,"th",52),g(22),m(23,"translate"),c(),l(24,"th",53),g(25),m(26,"translate"),c(),l(27,"th",54),g(28),m(29,"translate"),k(30,"p-sortIcon",55),c(),l(31,"th",56),g(32),m(33,"translate"),k(34,"p-sortIcon",57),c(),l(35,"th",58),g(36),m(37,"translate"),c(),l(38,"th",59),g(39),m(40,"translate"),k(41,"p-sortIcon",60),c(),l(42,"th",61),g(43),m(44,"translate"),c(),l(45,"th",62),g(46),m(47,"translate"),c(),l(48,"th",63)(49,"a",64),k(50,"i",65),c(),k(51,"button",66),c(
)()}if(2&t){const
e=d();a(2),x("pTooltip",f(3,18,"common.selected_menu")),a(2),We("
\xa0\xa0\xa0\xa0\xa0 ",f(5,20,"dashboard.recordings.filter"),":
\xa0\xa0 ",f(6,22,"dashboard.recordings.title"),": \xa0
"),a(3),p("matchModeOptions",e.matchModeTitle),a(1),T("
",f(9,24,"dashboard.recordings.recgrp"),": \xa0
"),a(2),p("showMenu",!1),a(2),x("pTooltip",f(13,26,"common.refresh")),a(2),T("
\xa0\xa0\xa0",e.programs.length," Rows "),a(3),T("
",f(18,28,"dashboard.recordings.title"),"
"),a(5),S(f(23,30,"dashboard.recordings.subtitle")),a(3),S(f(26,32,"dashboard.recordings.seas_ep")),a(3),T("
",f(29,34,"dashboard.recordings.orig_airdate")," "),a(4),T("
",f(33,36,"dashboard.recordings.airdate"),"
"),a(4),S(f(37,38,"dashboard.recordings.channel")),a(3),T("
",f(40,40,"dashboard.recordings.recgrp")," "),a(4),T("
",f(44,42,"dashboard.recordings.duration"),"
"),a(3),S(f(47,44,"dashboard.recordings.file_size")),a(5),p("disabled",!0)}}function
Soe(t,i){1&t&&(k(0,"i",80),m(1,"translate")),2&t&&x("pTool
tip",f(1,1,"dashboard.recordings.damaged"))}function
xoe(t,i){1&t&&(k(0,"i",81),m(1,"translate")),2&t&&x("pTooltip",f(1,1,"dashboard.recordings.watched"))}function
Doe(t,i){if(1&t&&(l(0,"div"),g(1),c()),2&t){const
e=d().$implicit;a(1),We(" ",e.Season,"x",e.Episode,"
")}}const Moe=function(t){return{"line-through":t}};function
koe(t,i){if(1&t){const
e=I();l(0,"tr",69),C("contextmenu",function(s){const
o=v(e).$implicit;return
d().onContextMenu(o,s)}),l(1,"td",70),_(2,Soe,2,3,"i",71),g(3),c(),l(4,"td",51),_(5,xoe,2,3,"i",72),c(),l(6,"td",73),g(7),c(),l(8,"td",53),_(9,Doe,2,2,"div",74),c(),l(10,"td",62),k(11,"div",75),c(),l(12,"td",62),k(13,"div",75),c(),l(14,"td",58),g(15),c(),l(16,"td",76),g(17),c(),l(18,"td",61),g(19),m(20,"number"),c(),l(21,"td",62),g(22),m(23,"number"),c(),l(24,"td",63)(25,"a",77),m(26,"translate"),k(27,"i",78),c(),l(28,"button",79),C("click",function(s){const
o=v(e).$implicit;return d().showContextMenu(o,s)}),c()()()}if(2&t){const
e=i.$implicit,n=i.rowIndex,s=d();
p("ngClass",U(27,Moe,"Deleted"==e.Recording.RecGroup))("pSelectableRow",e)("pSelectableRowIndex",n),a(2),p("ngIf",e.VideoPropNames.indexOf("DAMAGED")>-1),a(1),T("
",e.Title,"
"),a(2),p("ngIf",e.ProgramFlagNames.indexOf("WATCHED")>-1),a(1),x("pTooltip",e.Description),a(1),T("
",e.SubTitle,""),a(2),p("ngIf",e.Season>0||e.Episode>0),a(2),p("innerHTML",s.utility.formatDate(e.Airdate,!0),Bt),a(2),p("innerHTML",s.utility.formatDate(e.StartTime,!0),Bt),a(2),We("
",e.Channel.ChanNum,"
",e.Channel.CallSign,""),a(2),S(e.Recording.RecGroup),a(2),T("",Dt(20,19,s.getDuration(e),"1.0-0"),"
min"),a(3),T("
",Dt(23,22,e.Recording.FileSize/1e6,"1.0-0"),"
MB"),a(3),x("href",s.URLencode("/Content/GetRecording?RecordedId="+e.Recording.RecordedId),ln),x("pTooltip",f(26,25,"dashboard.recordings.download")),a(2),p("id","download_"+n)}}function
Ioe(t,i){1&t&&(k(0,"p-message",87),m(1,"translate")),2&t&&x("text",f(1,1,"common.savesuccess"))}function
Eoe(t,i){1&t&&(k(0,"p-message",88),m(1,"translate")),2&t&&x(
"text",f(1,1,"common.networkfail"))}function
Roe(t,i){if(1&t){const
e=I();l(0,"div",82),_(1,Ioe,2,3,"p-message",83),_(2,Eoe,2,3,"p-message",84),c(),l(3,"p-button",85),C("onClick",function(){return
v(e),d().closeDialog()}),m(4,"translate"),c(),l(5,"p-button",86),C("onClick",function(){return
v(e),d().saveProgram()}),m(6,"translate"),c()}if(2&t){const
e=d(),n=F(1);a(1),p("ngIf",e.successCount>0&&0==e.errorCount&&!n.dirty),a(1),p("ngIf",e.errorCount>0),a(1),x("label",f(4,5,"common.close")),a(2),x("label",f(6,7,"common.save")),p("disabled",!n.dirty||""==e.program.Title.trim())}}function
Loe(t,i){if(1&t){const
e=I();l(0,"p-button",89),C("onClick",function(){return
v(e),d().displayRecGrpDlg=!1}),m(1,"translate"),c(),l(2,"p-button",90),C("onClick",function(){return
v(e),d().updaterecgrp()}),m(3,"translate"),c()}if(2&t){const
e=d();x("label",f(1,3,"common.cancel")),a(2),x("label",f(3,5,"common.ok")),p("disabled",!e.newRecGroup.trim())}}function
Ooe(t,i){if(1&t){const e=I();l(0,"p-button",91
),C("onClick",function(){return
v(e),d().closeDialog()}),m(1,"translate"),c(),l(2,"p-button",92),C("onClick",function(){return
v(e),d().displayUnsaved=!1}),m(3,"translate"),c()}2&t&&(x("label",f(1,2,"common.nosave")),a(2),x("label",f(3,4,"common.continue")))}const
Aoe=function(){return{height:"75vw",width:"50vw"}},Poe=function(){return{minWidth:"400px"}};let
Foe=(()=>{class
t{constructor(e,n,s,r,o){this.dvrService=e,this.messageService=n,this.translate=s,this.setupService=r,this.utility=o,this.programs=[],this.selection=[],this.actionList=[],this.recGroups=[],this.newRecGroup="",this.program={Title:"",Recording:{}},this.displayMetadataDlg=!1,this.displayRecGrpDlg=!1,this.displayRunJobs=!1,this.displayUnsaved=!1,this.successCount=0,this.errorCount=0,this.refreshing=!1,this.priorRequest={},this.msg={Success:"common.success",Failed:"common.failed",NetFail:"common.networkfail",CanUndo:"dashboard.recordings.canundel",AlreadyDel:"dashboard.recordings.alreadydel",NonReRec:"dashboard.record
ings.nonrerec",ActionsSelected:"dashboard.recordings.actionsselected",JobsSelected:"dashboard.recordings.jobsselected",UndefSelection:"dashboard.undefselection"},this.jobsoffset=3,this.jobs=[{id:"Transcode",label:"dashboard.recordings.job_Transcode",command:h=>this.runjob(h)},{id:"Commflag",label:"dashboard.recordings.job_Commflag",command:h=>this.runjob(h)},{id:"Metadata",label:"dashboard.recordings.job_Metadata",command:h=>this.runjob(h)},{id:"UserJob1",visible:!1,command:h=>this.runjob(h)},{id:"UserJob2",visible:!1,command:h=>this.runjob(h)},{id:"UserJob3",visible:!1,command:h=>this.runjob(h)},{id:"UserJob4",visible:!1,command:h=>this.runjob(h)}],this.mnu_delete={label:"dashboard.recordings.mnu_delete",command:h=>this.delete(h,!1)},this.mnu_delete_rerec={label:"dashboard.recordings.mnu_delete_rerec",command:h=>this.delete(h,!0)},this.mnu_undelete={label:"dashboard.recordings.mnu_undelete",command:h=>this.undelete(h)},this.mnu_rerec={label:"dashboard.recordings.mnu_rerec",command:
h=>this.rerec(h)},this.mnu_markwatched={label:"dashboard.recordings.mnu_markwatched",command:h=>this.markwatched(h,!0)},this.mnu_markunwatched={label:"dashboard.recordings.mnu_markunwatched",command:h=>this.markwatched(h,!1)},this.mnu_markdamaged={label:"dashboard.recordings.mnu_markdamaged",command:h=>this.markdamaged(h,!0)},this.mnu_markundamaged={label:"dashboard.recordings.mnu_markundamaged",command:h=>this.markdamaged(h,!1)},this.mnu_updaterecgrp={label:"dashboard.recordings.mnu_updaterecgrp",command:h=>this.promptrecgrp(h)},this.mnu_updatemeta={label:"dashboard.recordings.mnu_updatemeta",command:h=>this.updatemeta(h)},this.mnu_updaterecrule={label:"dashboard.recordings.mnu_updaterecrule",command:h=>this.updaterecrule(h)},this.mnu_stoprec={label:"dashboard.recordings.mnu_stoprec",command:h=>this.stoprec(h)},this.mnu_runjobs={label:"dashboard.recordings.mnu_runjobs",items:this.jobs},this.menuToShow=[],this.matchModeRecGrp=[{value:_t.EQUALS,label:"common.filter.equals"}],this.mat
chModeTitle=[{value:_t.STARTS_WITH,label:"common.filter.startswith"},{value:_t.CONTAINS,label:"common.filter.contains"},{value:_t.EQUALS,label:"common.filter.equals"}],this.saveObserver={next:h=>{h.bool?(this.successCount++,this.currentForm.form.markAsPristine(),this.editingProgram&&Object.assign(this.editingProgram,this.program)):(console.log("saveObserver
error",h),this.errorCount++)},error:h=>{console.log("saveObserver
error",h),this.errorCount++}},this.JobQCmds=this.setupService.getJobQCommands(),this.dvrService.GetRecGroupList().subscribe(h=>{this.recGroups=h.RecGroupList,this.recGroups.push("Deleted")});for(const[h,b]of
Object.entries(this.msg))this.translate.get(b).subscribe(y=>{Object.defineProperty(this.msg,h,{value:y})});[this.mnu_delete,this.mnu_delete_rerec,this.mnu_undelete,this.mnu_rerec,this.mnu_markwatched,this.mnu_markunwatched,this.mnu_markdamaged,this.mnu_markundamaged,this.mnu_updatemeta,this.mnu_updaterecrule,this.mnu_stoprec,this.mnu_updaterecgrp,this.mnu_runjo
bs,this.jobs[0],this.jobs[1],this.jobs[2],...this.matchModeRecGrp,...this.matchModeTitle].forEach(h=>{h.label&&this.translate.get(h.label).subscribe(b=>h.label=b)})}ngOnInit(){}loadLazy(e){this.lazyLoadEvent=e;let
n={StartIndex:0,Count:1};e.first&&(n.StartIndex=e.first),e.rows&&(n.Count=e.rows),e.sortField||(e.sortField="Title"),n.Sort=e.sortField,n.Sort="Airdate"==e.sortField?"originalairdate":"Recording.RecGroup"==e.sortField?"recgroup":e.sortField;let
s=" asc";if(e.sortOrder&&e.sortOrder<0&&(s="
desc"),n.Sort=n.Sort+s,n.Sort+=`,title${s},originalairdate${s},season${s},episode${s}`,e.filters){if(e.filters.Title.value)switch(e.filters.Title.matchMode){case
_t.STARTS_WITH:n.TitleRegEx="^"+e.filters.Title.value;break;case
_t.CONTAINS:n.TitleRegEx=e.filters.Title.value;break;case
_t.EQUALS:n.TitleRegEx="^"+e.filters.Title.value+"$"}e.filters["Recording.RecGroup"].value&&e.filters["Recording.RecGroup"].matchMode==_t.EQUALS&&(n.RecGroup=e.filters["Recording.RecGroup"].value)}(n.TitleReg
Ex!=this.priorRequest.TitleRegEx||n.RecGroup!=this.priorRequest.RecGroup)&&(this.programs=[],this.selection=[],this.menu.hide(),this.priorRequest=n),this.dvrService.GetRecordedList(n).subscribe(r=>{let
o=r.ProgramList;this.programs.length=r.ProgramList.TotalAvailable,this.programs.splice(o.StartIndex,o.Count,...o.Programs),this.programs=[...this.programs],this.refreshing=!1})}refresh(){this.selection=[],this.menu.hide(),this.loadLazy(this.lazyLoadEvent)}URLencode(e){return
encodeURI(e)}getDuration(e){const n=new Date(e.Recording.StartTs).getTime();return(new
Date(e.Recording.EndTs).getTime()-n)/6e4}onContextMenu(e,n){return!(!(0==this.selection.length||n.target&&n.target.id&&n.target.id.startsWith("download_"))&&(this.selection.some(s=>!s)?(this.sendMessage("error",null,"",this.msg.UndefSelection),1):this.selection.some(s=>s.Recording.RecordedId==e.Recording.RecordedId)&&(this.showContextMenu(null,n),1)))}onSelectChange(){this.menu.hide()}showContextMenu(e,n){if(this.actionList.leng
th=0,e&&e.Title?this.actionList.push(e):this.actionList.push(...this.selection),0==this.actionList.length)return;if(this.actionList.some(r=>!r))return
void
this.sendMessage("error",null,"",this.msg.UndefSelection);this.menuToShow.length=0;let
s=[];if(this.actionList.some(r=>"Deleted"==r.Recording.RecGroup)&&s.push(this.mnu_undelete),this.actionList.some(r=>"Deleted"!=r.Recording.RecGroup)&&(s.push(this.mnu_delete),s.push(this.mnu_delete_rerec)),s.push(this.mnu_rerec),this.actionList.some(r=>r.ProgramFlagNames.indexOf("WATCHED")>-1)&&s.push(this.mnu_markunwatched),this.actionList.some(r=>r.ProgramFlagNames.indexOf("WATCHED")<0)&&s.push(this.mnu_markwatched),this.actionList.some(r=>r.VideoPropNames.indexOf("DAMAGED")>-1)&&s.push(this.mnu_markundamaged),this.actionList.some(r=>r.VideoPropNames.indexOf("DAMAGED")<0)&&s.push(this.mnu_markdamaged),s.push(this.mnu_updaterecgrp),1==this.actionList.length?(s.push(this.mnu_updatemeta),this.menuToShow.push({label:this.actionList[0].Title+"
- "
+this.actionList[0].SubTitle,items:s})):this.menuToShow.push({label:this.msg.ActionsSelected.replace(/{{
*num
*}}/,this.actionList.length.toString()),items:s}),this.actionList.every(r=>"Deleted"!=r.Recording.RecGroup)){this.menuToShow.push(1==this.actionList.length?this.mnu_runjobs:{label:this.msg.JobsSelected.replace(/{{
*num *}}/,this.actionList.length.toString()),items:this.jobs});for(let
r=0;r<4;r++)this.JobQCmds.UserJob[r]?(this.jobs[r+this.jobsoffset].visible=!0,this.jobs[r+this.jobsoffset].label=this.JobQCmds.UserJobDesc[r]):this.jobs[r+this.jobsoffset].visible=!1}this.menu.toggle(n)}delete(e,n){let
s=this.actionList.shift();s&&this.dvrService.GetRecorded({RecordedId:s.Recording.RecordedId}).subscribe({next:r=>{"Deleted"==r.Program.Recording.RecGroup?(this.sendMessage("error",s,e.item.label,this.msg.AlreadyDel),s.Recording.RecGroup="Deleted"):this.dvrService.DeleteRecording({RecordedId:s.Recording.RecordedId,AllowRerecord:n}).subscribe({next:o=>{o.bool?(this.sendMessage("succ
ess",s,e.item.label,this.msg.Success,this.msg.CanUndo),s.Recording.RecGroup="Deleted"):this.sendMessage("error",s,e.item.label,this.msg.Failed)},error:o=>this.networkError(s,o)}),this.delete(e,n)},error:r=>{this.networkError(s,r),this.delete(e,n)}})}undelete(e){let
n=this.actionList.shift();n&&this.dvrService.UnDeleteRecording({RecordedId:n.Recording.RecordedId}).subscribe({next:s=>{s.bool?(n.Recording.RecGroup="Default",this.sendMessage("success",n,e.item.label,this.msg.Success)):this.sendMessage("error",n,e.item.label,this.msg.Failed),this.undelete(e)},error:s=>{this.networkError(n,s),this.undelete(e)}})}networkError(e,n){console.log("network
error",n),this.sendMessage("error",e,"",this.msg.NetFail)}sendMessage(e,n,s,r,o){o=o?"\n"+o:"";let
u=s;null!=n&&(u=s+" "+n.Title+"
"+n.SubTitle+o),this.messageService.add({severity:e,summary:r,detail:u,life:5e3,sticky:"error"==e})}rerec(e){let
n=this.actionList.shift();n&&this.dvrService.AllowReRecord(n.Recording.RecordedId).subscribe({next:s
=>{s.bool?this.sendMessage("success",n,e.item.label,this.msg.Success):this.sendMessage("error",n,e.item.label,this.msg.Failed),this.rerec(e)},error:s=>{this.networkError(n,s),this.rerec(e)}})}markwatched(e,n){let
s=this.actionList.shift();s&&this.dvrService.UpdateRecordedMetadata({RecordedId:s.Recording.RecordedId,Watched:n}).subscribe({next:r=>{r.bool?(this.sendMessage("success",s,e.item.label,this.msg.Success),s.ProgramFlagNames=n?s.ProgramFlagNames+"|WATCHED|":s.ProgramFlagNames.replace(/WATCHED/g,"")):this.sendMessage("error",s,e.item.label,this.msg.Failed),this.markwatched(e,n)},error:r=>{this.networkError(s,r),this.markwatched(e,n)}})}markdamaged(e,n){let
s=this.actionList.shift();s&&this.dvrService.UpdateRecordedMetadata({RecordedId:s.Recording.RecordedId,Damaged:n}).subscribe({next:r=>{r.bool?n?(this.sendMessage("success",s,e.item.label,this.msg.Success,this.msg.NonReRec),s.VideoPropNames=s.VideoPropNames+"|DAMAGED|"):(this.sendMessage("success",s,e.item.label,this.msg.Succe
ss),s.VideoPropNames=s.VideoPropNames.replace(/DAMAGED/g,"")):this.sendMessage("error",s,e.item.label,this.msg.Failed),this.markdamaged(e,n)},error:r=>{this.networkError(s,r),this.markdamaged(e,n)}})}promptrecgrp(e){this.newRecGroup=1==this.actionList.length?this.actionList[0].Recording.RecGroup:"",this.displayRecGrpDlg=!0}updaterecgrp(){this.displayRecGrpDlg=!1,this.newRecGroup=this.newRecGroup.trim();let
e=this.actionList.shift();e&&this.newRecGroup&&this.dvrService.UpdateRecordedMetadata({RecordedId:e.Recording.RecordedId,RecGroup:this.newRecGroup}).subscribe({next:n=>{n.bool?(this.sendMessage("success",e,this.mnu_updaterecgrp.label,this.msg.Success),e.Recording.RecGroup=this.newRecGroup):this.sendMessage("error",e,this.mnu_updaterecgrp.label,this.msg.Failed),this.updaterecgrp()},error:n=>{this.networkError(e,n),this.updaterecgrp()}})}updaterecrule(e){}stoprec(e){}runjob(e){let
n=this.actionList.shift();n&&this.dvrService.ManageJobQueue({Action:"Add",JobName:e.item.id,RecordedId:
n.Recording.RecordedId}).subscribe({next:s=>{s.int>0?this.sendMessage("success",n,e.item.label,this.msg.Success):this.sendMessage("error",n,e.item.label,this.msg.Failed),this.runjob(e)},error:s=>{this.networkError(n,s),this.runjob(e)}})}updatemeta(e){this.program=this.actionList.shift(),this.program&&(this.editingProgram=this.program,this.program=Object.assign({},this.program),this.program.Airdate=this.program.Airdate?new
Date(this.program.Airdate+"
00:00"):null,this.displayMetadataDlg=!0,this.currentForm.form.markAsPristine())}saveProgram(){this.successCount=0,this.errorCount=0,this.displayUnsaved=!1,this.dvrService.UpdateRecordedMetadata({RecordedId:this.program.Recording.RecordedId,Description:this.program.Description,Episode:this.program.Episode,Inetref:this.program.Inetref,OriginalAirDate:this.program.Airdate,Season:this.program.Season,SubTitle:this.program.SubTitle,Title:this.program.Title,RecGroup:this.program.Recording.RecGroup}).subscribe(this.saveObserver)}closeDialog(){th
is.currentForm.dirty?this.displayUnsaved?(this.displayUnsaved=!1,this.displayMetadataDlg=!1,this.editingProgram=void
0,this.currentForm.form.markAsPristine()):this.displayUnsaved=!0:(this.displayMetadataDlg=!1,this.displayUnsaved=!1,this.editingProgram=void
0)}}return t.\u0275fac=function(e){return
new(e||t)(D(jo),D(Gi),D(Oe),D(Me),D(cs))},t.\u0275cmp=z({type:t,selectors:[["app-recordings"]],viewQuery:function(e,n){if(1&e&&(W(boe,5),W(voe,5)),2&e){let
s;V(s=B())&&(n.currentForm=s.first),V(s=B())&&(n.menu=s.first)}},features:[Pe([Gi])],decls:85,vars:96,consts:[["name","recsform"],["recsform","ngForm"],[2,"white-space","pre-line"],["position","center"],[1,"block","card","w-full",2,"height","90vh"],[1,"font-bold",3,"popup","model"],["menu",""],["scrollHeight","flex","styleClass","p-datatable-striped","selectionMode","multiple","dataKey","Recording.RecordedId",3,"value","scrollable","virtualScroll","rows","lazy","rowHover","selection","metaKeySelection","onLazyLoad","selectionChange","o
nRowSelect","onRowUnelect"],["pTemplate","caption"],["pTemplate","header"],["pTemplate","body"],[3,"header","visible","modal","closable","closeOnEscape","visibleChange"],[1,"form-group","field"],["for","Title",1,"label","block"],["pInputText","","id","Title","name","Title",1,"mb-2","form-control","w-full",3,"ngModel","ngModelChange"],["Title","ngModel"],["for","SubTitle",1,"label","block"],["pInputText","","id","SubTitle","name","SubTitle",1,"mb-2","form-control","w-full",3,"ngModel","ngModelChange"],["SubTitle","ngModel"],["for","Inetref",1,"label","block"],["pInputText","","id","Inetref","name","Inetref",1,"mb-2","form-control","w-full",3,"ngModel","ngModelChange"],["Inetref","ngModel"],["for","Description",1,"label","block"],["pInputTextarea","","id","Description","name","Description",1,"mb-2","form-control","w-full",3,"rows","cols","ngModel","ngModelChange"],["Description","ngModel"],["for","Season",1,"label","block"],["name","Season","id","Season",3,"ngModel","showButtons","min
","max","step","ngModelChange"],["for","Episode",1,"label","block"],["name","Episode","id","Episode",3,"ngModel","showButtons","min","max","step","ngModelChange"],["for","Airdate",1,"label","block"],["dateFormat","yy-mm-dd","name","Airdate","id","Airdate",3,"ngModel","ngModelChange"],["for","RecGroup",1,"label","block"],["name","RecGroup",3,"options","ngModel","editable","maxlength","ngModelChange"],["RecGroup","ngModel"],["for","FileName",1,"label","block"],["pTemplate","footer"],[3,"header","visible","modal","draggable","resizable","visibleChange"],["for","newrecgroup",1,"label","block"],["pInputText","","id","newrecgroup","name","newrecgroup",1,"mb-2","form-control","w-full",3,"ngModel","ngModelChange"],["newrecgroup","ngModel"],["name","recgrplist",3,"options","ngModel","ngModelChange"],["recgrplist","ngModel"],[3,"header","visible","modal","visibleChange"],[1,"pl-1"],["pButton","","pRipple","","icon","pi
pi-bars","tooltipPosition","top",1,"p-button-text",".p-button-success",3,"
pTooltip","click"],["type","text","field","Title",3,"matchModeOptions"],["field","Recording.RecGroup","matchMode","equals",3,"showMenu"],["pTemplate","filter"],["pButton","","pRipple","","icon","pi
pi-refresh","tooltipPosition","top",1,"p-button-text",".p-button-success",3,"pTooltip","click"],["pSortableColumn","Title",1,"p-1",2,"flex-basis","12%"],["field","Title"],[1,"p-1",2,"flex-basis","2%"],[1,"p-1",2,"flex-basis","18%"],[1,"p-1",2,"flex-basis","4%"],["pSortableColumn","Airdate",1,"justify-content-end","p-1",2,"flex-basis","8%"],["field","Airdate"],["pSortableColumn","StartTime",1,"justify-content-end","p-1",2,"flex-basis","8%"],["field","StartTime"],[1,"p-1",2,"flex-basis","10%"],["pSortableColumn","Recording.RecGroup",1,"p-1",2,"flex-basis","8%"],["field","Recording.RecGroup"],[1,"justify-content-end","p-1",2,"flex-basis","6%"],[1,"justify-content-end","p-1",2,"flex-basis","8%"],[1,"p-1",2,"background","var(--surface-card)"],["target","_blank"],[1,"pi","pi-download"],["pButto
n","","pRipple","","icon","pi
pi-ellipsis-v",1,"p-button-text","p-button-primary",3,"disabled"],["name","filter",3,"ngModel","options","placeholder","showClear","onChange"],["pTemplate","item"],[3,"ngClass","pSelectableRow","pSelectableRowIndex","contextmenu"],[1,"p-1","overflow-hidden",2,"flex-basis","12%"],["class","pi
pi-exclamation-triangle
p-1","tooltipPosition","top",3,"pTooltip",4,"ngIf"],["class","pi
pi-eye","tooltipPosition","top",3,"pTooltip",4,"ngIf"],["tooltipPosition","top",1,"p-1","overflow-hidden",2,"flex-basis","18%",3,"pTooltip"],[4,"ngIf"],[3,"innerHTML"],[1,"p-1",2,"flex-basis","8%"],["target","_blank","tooltipPosition","left",3,"href","pTooltip"],[1,"pi","pi-download","text-primary",3,"id"],["pButton","","pRipple","","icon","pi
pi-ellipsis-v",1,"p-button-text","p-button-primary",3,"click"],["tooltipPosition","top",1,"pi","pi-exclamation-triangle","p-1",3,"pTooltip"],["tooltipPosition","top",1,"pi","pi-eye",3,"pTooltip"],[1,"col-12",2,"text-align","left"],["severi
ty","success",3,"text",4,"ngIf"],["severity","error",3,"text",4,"ngIf"],["icon","pi
pi-times-circle","styleClass","p-button-warning",3,"label","onClick"],["icon","pi
pi-check-circle","styleClass","p-button-success",3,"label","disabled","onClick"],["severity","success",3,"text"],["severity","error",3,"text"],["icon","pi
pi-times-circle","styleClass","p-button-plain",3,"label","onClick"],["icon","pi
pi-check-circle","styleClass","p-button-plain",3,"label","disabled","onClick"],["icon","pi
pi-times-circle","styleClass","p-button-danger",3,"label","onClick"],["icon","pi
pi-check-circle","styleClass","p-button-success",3,"label","onClick"]],template:function(e,n){1&e&&(l(0,"form",0,1)(2,"div",2),k(3,"p-toast",3),c(),l(4,"h2"),g(5),m(6,"translate"),c(),l(7,"div",4),k(8,"p-tieredMenu",5,6),l(10,"p-table",7),C("onLazyLoad",function(r){return
n.loadLazy(r)})("selectionChange",function(r){return
n.selection=r})("onRowSelect",function(){return
n.onSelectChange()})("onRowUnelect",function(){ret
urn
n.onSelectChange()}),_(11,Coe,0,0,"ng-template",8),_(12,Toe,52,46,"ng-template",9),_(13,koe,29,29,"ng-template",10),c(),l(14,"p-dialog",11),C("visibleChange",function(r){return
n.displayMetadataDlg=r}),m(15,"translate"),l(16,"div",12)(17,"label",13),g(18),m(19,"translate"),c(),l(20,"input",14,15),C("ngModelChange",function(r){return
n.program.Title=r}),c()(),l(22,"div",12)(23,"label",16),g(24),m(25,"translate"),c(),l(26,"input",17,18),C("ngModelChange",function(r){return
n.program.SubTitle=r}),c()(),l(28,"div",12)(29,"label",19),g(30),m(31,"translate"),c(),l(32,"input",20,21),C("ngModelChange",function(r){return
n.program.Inetref=r}),c()(),l(34,"div",12)(35,"label",22),g(36),m(37,"translate"),c(),l(38,"textarea",23,24),C("ngModelChange",function(r){return
n.program.Description=r}),c()(),l(40,"div",12)(41,"label",25),g(42),m(43,"translate"),c(),l(44,"p-inputNumber",26),C("ngModelChange",function(r){return
n.program.Season=r}),c()(),l(45,"div",12)(46,"label",27),g(47),m(48,"transl
ate"),c(),l(49,"p-inputNumber",28),C("ngModelChange",function(r){return
n.program.Episode=r}),c()(),l(50,"div",12)(51,"label",29),g(52),m(53,"translate"),c(),l(54,"p-calendar",30),C("ngModelChange",function(r){return
n.program.Airdate=r}),c()(),l(55,"div",12)(56,"label",31),g(57),m(58,"translate"),c(),l(59,"p-dropdown",32,33),C("ngModelChange",function(r){return
n.program.Recording.RecGroup=r}),c()(),l(61,"div",12)(62,"label",34),g(63),m(64,"translate"),c(),l(65,"pre"),g(66),c()(),_(67,Roe,7,9,"ng-template",35),c(),l(68,"p-dialog",36),C("visibleChange",function(r){return
n.displayRecGrpDlg=r}),m(69,"translate"),l(70,"div",12)(71,"label",37),g(72),m(73,"translate"),c(),l(74,"input",38,39),C("ngModelChange",function(r){return
n.newRecGroup=r}),c()(),l(76,"p-listbox",40,41),C("ngModelChange",function(r){return
n.newRecGroup=r}),c(),_(78,Loe,4,7,"ng-template",35),c(),l(79,"p-dialog",42),C("visibleChange",function(r){return
n.displayUnsaved=r}),m(80,"translate"),l(81,"p"),g(82),m(83,"tra
nslate"),c(),_(84,Ooe,4,6,"ng-template",35),c()()()),2&e&&(a(5),S(f(6,64,"dashboard.recordings.heading")),a(3),p("popup",!0)("model",n.menuToShow),a(2),p("value",n.programs)("scrollable",!0)("virtualScroll",!0)("rows",50)("lazy",!0)("rowHover",!0)("selection",n.selection)("metaKeySelection",!0),a(4),q(A(94,Aoe)),x("header",f(15,66,"dashboard.recordings.edit_metadata")),p("visible",n.displayMetadataDlg)("modal",!0)("closable",!1)("closeOnEscape",!1),a(4),S(f(19,68,"dashboard.recordings.title")),a(2),p("ngModel",n.program.Title),a(4),S(f(25,70,"dashboard.recordings.subtitle")),a(2),p("ngModel",n.program.SubTitle),a(4),S(f(31,72,"dashboard.recordings.inetref")),a(2),p("ngModel",n.program.Inetref),a(4),S(f(37,74,"dashboard.recordings.description")),a(2),p("rows",5)("cols",30)("ngModel",n.program.Description),a(4),S(f(43,76,"dashboard.recordings.season")),a(2),p("ngModel",n.program.Season)("showButtons",!0)("min",1)("max",99)("step",1),a(3),S(f(48,78,"dashboard.recordings.episode")),a(2)
,p("ngModel",n.program.Episode)("showButtons",!0)("min",1)("max",99)("step",1),a(3),S(f(53,80,"dashboard.recordings.orig_airdate")),a(2),p("ngModel",n.program.Airdate),a(3),S(f(58,82,"dashboard.sched.recgroup_label")),a(2),q(A(95,Poe)),p("options",n.recGroups)("ngModel",n.program.Recording.RecGroup)("editable",!0)("maxlength",64),a(4),S(f(64,84,"dashboard.recordings.filename_label")),a(3),S(n.program.FileName),a(2),x("header",f(69,86,"dashboard.recordings.selrecgroup")),p("visible",n.displayRecGrpDlg)("modal",!0)("draggable",!1)("resizable",!1),a(4),S(f(73,88,"dashboard.sched.recgroup_label")),a(2),p("ngModel",n.newRecGroup),a(2),p("options",n.recGroups)("ngModel",n.newRecGroup),a(3),x("header",f(80,90,"common.unsaved_heading")),p("visible",n.displayUnsaved)("modal",!0),a(3),S(f(83,92,"common.unsaved_message")))},directives:[ze,Ue,He,Td,D$,Dn,ne,On,bt,Kt,vg,Ot,Te,_e,yd,wd,Le,j2,Q,bn,Ye,tS,pt,xr,_n,qe,ve,os],pipes:[ce,eu],styles:["[_nghost-%COMP%]
.p-tieredmenu{border:2px solid}[
_nghost-%COMP%] .p-tieredmenu .p-submenu-list{border:2px solid}"]}),t})();const
Noe=["schedform"],Di=function(){return{minWidth:"400px"}};function
Voe(t,i){if(1&t){const
e=I();l(0,"div",5)(1,"label",63),g(2),m(3,"translate"),c(),l(4,"p-dropdown",64,65),C("ngModelChange",function(s){return
v(e),d(2).templateId=s})("onClick",function(){v(e);const s=d(2);return
s.templateChange(s.recRule)})("onChange",function(){v(e);const s=d(2);return
s.templateChange(s.recRule)}),c()()}if(2&t){const
e=d(2);a(2),S(f(3,7,"dashboard.sched.template_label")),a(2),q(A(9,Di)),p("options",e.templates)("ngModel",e.templateId)("editable",!1)("maxlength",0)}}function
Boe(t,i){1&t&&(l(0,"label",68),g(1),m(2,"translate"),c()),2&t&&(a(1),T("
",f(2,1,"dashboard.sched.subtitle_label"),""))}function
Hoe(t,i){1&t&&(l(0,"label",68),g(1),m(2,"translate"),c()),2&t&&(a(1),T("
",f(2,1,"dashboard.sched.add_tables_label"),""))}function
qoe(t,i){if(1&t){const
e=I();l(0,"textarea",69),C("ngModelChange",function(s){return
v(e),d(3).recRule.SubTitle=s}),g(1," "),c()}if(2&t){const
e=d(3);p("ngModel",e.recRule.SubTitle)("disabled","Power
Search"!=e.recRule.SearchType)("rows",e.subTitleRows)}}const
Goe=function(){return["None","Power Search"]};function
Uoe(t,i){if(1&t&&(l(0,"div",5),_(1,Boe,3,3,"label",66),_(2,Hoe,3,3,"label",66),_(3,qoe,2,3,"textarea",67),c()),2&t){const
e=d(2);a(1),p("ngIf","None"==e.recRule.SearchType),a(1),p("ngIf","Power
Search"==e.recRule.SearchType),a(1),p("ngIf",A(3,Goe).indexOf(e.recRule.SearchType)>-1)}}function
zoe(t,i){if(1&t&&(l(0,"span"),g(1),c()),2&t){const
e=d(2);a(1),We("S",e.recRule.Season,"
E",e.recRule.Episode,"")}}function
joe(t,i){1&t&&(l(0,"label",74),g(1),m(2,"translate"),c()),2&t&&(a(1),T("
",f(2,1,"dashboard.sched.description_label"),""))}function
$oe(t,i){1&t&&(l(0,"label",74),g(1),m(2,"translate"),c()),2&t&&(a(1),T("
",f(2,1,"dashboard.sched.sqlwhere_label"),""))}function
Woe(t,i){1&t&&(l(0,"label",74),g(1),m(2,"translate"),c()),2&t&&(a(1),T("
"
,f(2,1,"dashboard.sched.description_label"),""))}function
Koe(t,i){1&t&&(l(0,"label",74),g(1),m(2,"translate"),c()),2&t&&(a(1),T("
",f(2,1,"dashboard.sched.srchValue_label"),""))}const
Qoe=function(){return["None","Manual Search"]};function
Joe(t,i){if(1&t){const
e=I();l(0,"div",5)(1,"div",70),_(2,joe,3,3,"label",71),_(3,$oe,3,3,"label",71),_(4,Woe,3,3,"label",71),_(5,Koe,3,3,"label",72),c(),l(6,"textarea",73),C("ngModelChange",function(s){return
v(e),d(2).recRule.Description=s})("focusout",function(){return
v(e),d(2).onDescriptionBlur()}),g(7," "),c()()}if(2&t){const
e=d(2);a(1),p("ngSwitch",e.recRule.SearchType),a(1),p("ngSwitchCase","None"),a(1),p("ngSwitchCase","Power
Search"),a(1),p("ngSwitchCase","Manual
Search"),a(2),p("ngModel",e.recRule.Description)("disabled",A(7,Qoe).indexOf(e.recRule.SearchType)>-1)("rows",e.descriptionRows)}}function
Yoe(t,i){1&t&&(l(0,"div"),g(1," Examples of SQL Additional
Tables and Where Conditions are in the MythTV wiki at"),k(2,"br"
),l(3,"a",75),g(4,"Power Search"),c()())}function
Zoe(t,i){if(1&t){const
e=I();l(0,"div"),k(1,"p-divider"),l(2,"div",5)(3,"label",76),g(4),m(5,"translate"),c(),l(6,"p-dropdown",77),C("ngModelChange",function(s){return
v(e),d(2).channel=s})("onChange",function(){return
v(e),d(2).onChannelChange()}),c()(),l(7,"div",5)(8,"label",78),g(9),m(10,"translate"),c(),l(11,"p-calendar",79),C("ngModelChange",function(s){return
v(e),d(2).reqDate=s})("onClose",function(){return
v(e),d(2).onDateChange()})("keyup.enter",function(){return
v(e),d(2).onDateChange()})("onBlur",function(){return
v(e),d(2).onDateChange()}),c()(),l(12,"div",5)(13,"label",80),g(14),m(15,"translate"),c(),l(16,"p-inputNumber",81),C("ngModelChange",function(s){return
v(e),d(2).reqDuration=s})("ngModelChange",function(){return
v(e),d(2).onDurationChange()}),c()()()}if(2&t){const
e=d(2);a(4),S(f(5,23,"dashboard.sched.channel_label")),a(2),q(A(29,Di)),p("options",e.allChannels)("ngModel",e.channel)("editable",!1)("maxlength",0),a
(3),S(f(10,25,"dashboard.sched.starttime_label")),a(2),p("ngModel",e.reqDate)("showTime",!0)("stepMinute",5)("dateFormat","yy/mm/dd")("selectOtherMonths",!0)("showIcon",!0)("showOnFocus",!1)("showButtonBar",!0)("clearButtonStyleClass","hidden"),a(3),S(f(15,27,"dashboard.sched.duration_label")),a(2),p("ngModel",e.reqDuration)("showButtons",!0)("min",5)("max",360)("step",5)}}function
Xoe(t,i){if(1&t){const
e=I();l(0,"div",5)(1,"label",82),g(2),m(3,"translate"),c(),l(4,"div",83)(5,"div",84)(6,"p-radioButton",85),C("ngModelChange",function(s){return
v(e),d(2).metaPrefix=s})("ngModelChange",function(){v(e);const s=d(2);return
s.iCheckbox(s.recRule)}),c(),l(7,"label",86),k(8,"img",87),c()(),l(9,"div",88)(10,"a",89),g(11),m(12,"translate"),c(),k(13,"br"),c(),l(14,"div",90)(15,"p-radioButton",91),C("ngModelChange",function(s){return
v(e),d(2).metaPrefix=s})("ngModelChange",function(){v(e);const s=d(2);return
s.iCheckbox(s.recRule)}),c(),l(16,"label",92),k(17,"img",93),c()(),l(18,"div",94)(1
9,"a",89),g(20),m(21,"translate"),c(),k(22,"br"),c(),l(23,"div",84)(24,"p-radioButton",95),C("ngModelChange",function(s){return
v(e),d(2).metaPrefix=s})("ngModelChange",function(){v(e);const s=d(2);return
s.iCheckbox(s.recRule)}),c(),l(25,"label",96),k(26,"img",97),c()(),l(27,"div",88)(28,"a",89),g(29),m(30,"translate"),c(),k(31,"br"),c()(),g(32),l(33,"input",98,99),C("ngModelChange",function(s){return
v(e),d(2).recRule.Inetref=s})("ngModelChange",function(){v(e);const
s=d(2);return
s.iText(s.recRule)}),c(),l(35,"small",55),g(36),m(37,"translate"),k(38,"br"),c()()}if(2&t){const
e=d(2);a(2),S(f(3,13,"dashboard.sched.inetref_label")),a(4),p(&...
",f(12,15,"dashboard.sched.isearch"),"
thetvdb.com"),a(4),p("ngModel",e.metaPrefix),a(4),x("...
",f(21,17,"dashboard.sched.isearch")," tvmaze.com"),a(4),p(
"ngModel",e.metaPrefix),a(4),x("href",e.URLencode("https://www.themoviedb.org/search?query="+e.recRule.Title),ln),a(1),T("
",f(30,19,"dashboard.sched.isearch"),"
themoviedb.org"),a(3),T(" ",e.metaPrefix," \xa0
"),a(1),p("ngModel",e.recRule.Inetref),a(3),T("
",f(37,21,"dashboard.sched.inetref_desc"),"")}}function
eae(t,i){1&t&&(k(0,"p-message",105),m(1,"translate")),2&t&&x("text",f(1,1,"common.savesuccess"))}function
tae(t,i){if(1&t&&(k(0,"p-message",106),m(1,"translate")),2&t){const
e=d(3);La("text","",f(1,2,"common.backenderror"),":
",e.errortext,"")}}function nae(t,i){if(1&t){const
e=I();l(0,"div",100),_(1,eae,2,3,"p-message",101),_(2,tae,2,4,"p-message",102),c(),l(3,"p-button",103),C("onClick",function(){return
v(e),d(2).close()}),m(4,"translate"),c(),l(5,"p-button",104),C("onClick",function(){return
v(e),d(2).save()}),m(6,"translate"),c()}if(2&t){const
e=d(2),n=F(1);a(1),p("ngIf",e.successCount>0&&0==e.errorCount&&!n.dirty),a(1),p("ngIf",e.errorCount>0),a(1),x("label",f(4,5,"co
mmon.close")),a(2),x("label",f(6,7,"common.save")),p("disabled",!n.dirty||0==e.recRule.Id&&"Not
Recording"==e.recRule.Type||!e.recRule.Title)}}function iae(t,i){if(1&t){const
e=I();l(0,"p-button",107),C("onClick",function(){return
v(e),d(2).close()}),m(1,"translate"),c(),l(2,"p-button",108),C("onClick",function(){return
v(e),d(2).displayUnsaved=!1}),m(3,"translate"),c()}2&t&&(x("label",f(1,2,"common.nosave")),a(2),x("label",f(3,4,"common.continue")))}const
sae=function(){return{height:"90vw",width:"700px"}},rae=function(){return["Power
Search","Manual
Search"]},OS=function(){return{minWidth:"400px",maxHeight:"400px",maxWidth:"640px"}};function
oae(t,i){if(1&t){const
e=I();l(0,"div")(1,"p-dialog",3),C("visibleChange",function(s){return
v(e),d().displayDlg=s}),m(2,"translate"),l(3,"p"),g(4),c(),l(5,"p"),g(6),c(),_(7,Voe,6,10,"div",4),l(8,"div",5)(9,"label",6),g(10),m(11,"translate"),c(),l(12,"p-dropdown",7,8),C("ngModelChange",function(s){return
v(e),d().recRule.SearchType=s})("onChan
ge",function(){return
v(e),d().onSearchTypeChange()}),c()(),l(14,"div",5)(15,"label",9),g(16),m(17,"translate"),c(),l(18,"textarea",10),C("ngModelChange",function(s){return
v(e),d().recRule.Title=s})("focusout",function(){return
v(e),d().onTitleBlur()}),g(19,"
"),c()(),_(20,Uoe,4,4,"div",4),l(21,"p"),_(22,zoe,2,2,"span",2),c(),_(23,Joe,8,8,"div",4),_(24,Yoe,5,0,"div",2),_(25,Zoe,17,30,"div",2),k(26,"p-divider"),l(27,"div",5)(28,"label",11),g(29),m(30,"translate"),c(),l(31,"p-dropdown",12,13),C("ngModelChange",function(s){return
v(e),d().recRule.Type=s}),c()(),l(33,"div",5)(34,"label",14),g(35),m(36,"translate"),c(),l(37,"p-dropdown",15,16),C("ngModelChange",function(s){return
v(e),d().recRule.RecGroup=s}),c()(),l(39,"div",5)(40,"p-checkbox",17,18),C("ngModelChange",function(s){return
v(e),d().recRule.Inactive=s}),m(42,"translate"),c()(),l(43,"div",5)(44,"label",19),g(45),m(46,"translate"),c(),l(47,"p-dropdown",20,21),C("ngModelChange",function(s){return
v(e),d().recRu
le.PlayGroup=s}),c()(),l(49,"div",5)(50,"label",22),g(51),m(52,"translate"),c(),l(53,"p-inputNumber",23),C("ngModelChange",function(s){return
v(e),d().recRule.StartOffset=s}),c()(),l(54,"div",5)(55,"label",24),g(56),m(57,"translate"),c(),l(58,"p-inputNumber",25),C("ngModelChange",function(s){return
v(e),d().recRule.EndOffset=s}),c()(),l(59,"div",5)(60,"p-checkbox",26,27),C("ngModelChange",function(s){return
v(e),d().recRule.NewEpisOnly=s}),m(62,"translate"),c()(),l(63,"div",5)(64,"label",28),g(65),m(66,"translate"),c(),l(67,"p-inputNumber",29),C("ngModelChange",function(s){return
v(e),d().recRule.RecPriority=s}),c()(),l(68,"div",5)(69,"label",30),g(70),m(71,"translate"),c(),l(72,"p-dropdown",31,32),C("ngModelChange",function(s){return
v(e),d().recRule.PreferredInput=s}),c()(),l(74,"div",5)(75,"label",33),g(76),m(77,"translate"),c(),l(78,"p-dropdown",34,35),C("ngModelChange",function(s){return
v(e),d().recRule.DupMethod=s}),c()(),l(80,"div",5)(81,"label",36),g(82),m(83,"translate"),c
(),l(84,"p-dropdown",37,38),C("ngModelChange",function(s){return
v(e),d().recRule.DupIn=s}),c()(),l(86,"div",5)(87,"label",39),g(88),m(89,"translate"),c(),l(90,"p-dropdown",40,41),C("ngModelChange",function(s){return
v(e),d().recRule.AutoExtend=s}),c()(),l(92,"div",5)(93,"label",42),g(94),m(95,"translate"),c(),l(96,"p-multiSelect",43,44),C("ngModelChange",function(s){return
v(e),d().selectedFilters=s})("onChange",function(){v(e);const s=d();return
s.filterToRec(s.recRule)}),c()(),l(98,"div",5)(99,"label",45),g(100),m(101,"translate"),c(),l(102,"p-dropdown",46,47),C("ngModelChange",function(s){return
v(e),d().recRule.RecProfile=s}),c()(),l(104,"div",5)(105,"label",48),g(106),m(107,"translate"),c(),l(108,"p-dropdown",49,50),C("ngModelChange",function(s){return
v(e),d().recRule.StorageGroup=s}),c()(),l(110,"div",5)(111,"label",51),g(112),m(113,"translate"),c(),l(114,"p-inputNumber",52),C("ngModelChange",function(s){return
v(e),d().recRule.MaxEpisodes=s}),c()(),l(115,"div",5)(116,"p-che
ckbox",53,54),C("ngModelChange",function(s){return
v(e),d().recRule.MaxNewest=s}),m(118,"translate"),c(),l(119,"small",55),g(120),m(121,"translate"),c()(),l(122,"div",5)(123,"p-checkbox",56,57),C("ngModelChange",function(s){return
v(e),d().recRule.AutoExpire=s}),m(125,"translate"),c()(),l(126,"div",5)(127,"label",58),g(128),m(129,"translate"),c(),l(130,"p-multiSelect",59,60),C("ngModelChange",function(s){return
v(e),d().selectedPostProc=s})("onChange",function(){v(e);const s=d();return
s.postProcToRec(s.recRule)}),c()(),_(132,Xoe,39,23,"div",4),k(133,"br")(134,"br")(135,"br")(136,"br")(137,"br")(138,"br")(139,"br")(140,"br")(141,"br")(142,"br")(143,"br")(144,"br")(145,"br")(146,"br"),_(147,nae,7,9,"ng-template",61),c(),l(148,"p-dialog",62),C("visibleChange",function(s){return
v(e),d().displayUnsaved=s}),m(149,"translate"),l(150,"p"),g(151),m(152,"translate"),c(),_(153,iae,4,6,"ng-template",61),c()()}if(2&t){const
e=d();a(1),q(A(198,sae)),x("header",f(2,148,"dashboard.sched.heading")
),p("visible",e.displayDlg)("modal",!0)("closable",!1)("closeOnEscape",!1),a(3),T("
",e.recRule.CallSign,""),a(2),yo("
",e.utility.formatDate(e.recRule.StartTime),"
",e.utility.formatTime(e.recRule.StartTime)," -
",e.utility.formatTime(e.recRule.EndTime),"
"),a(1),p("ngIf","Recording
Template"!=e.recRule.Type),a(3),S(f(11,150,"dashboard.sched.srchtype_label")),a(2),q(A(199,Di)),p("options",e.srchTypeList)("ngModel",e.recRule.SearchType)("editable",!1)("maxlength",0)("disabled",e.srchTypeDisabled),a(4),S(f(17,152,"dashboard.sched.title_label")),a(2),p("ngModel",e.recRule.Title)("disabled",-1==A(200,rae).indexOf(e.recRule.SearchType)&&"Recording
Template"!=e.recRule.Type||e.recRule.Id==(null==e.defaultTemplate?null:e.defaultTemplate.Id))("rows",e.titleRows),a(2),p("ngIf","Recording
Template"!=e.recRule.Type),a(2),p("ngIf",e.recRule.Season&&e.recRule.Episode),a(1),p("ngIf","Recording
Template"!=e.recRule.Type),a(1),p("ngIf","Power
Search"==e.recRule.SearchType),a(1),p("ngIf","Manual Se
arch"==e.recRule.SearchType),a(4),S(f(30,154,"dashboard.sched.type_label")),a(2),q(A(201,Di)),p("options",e.typeList)("ngModel",e.recRule.Type)("editable",!1)("maxlength",0),a(4),S(f(36,156,"dashboard.sched.recgroup_label")),a(2),q(A(202,Di)),p("options",e.recGroups)("ngModel",e.recRule.RecGroup)("editable",!0)("maxlength",64),a(3),x("label",f(42,158,"dashboard.sched.active_label")),p("ngModel",e.recRule.Inactive)("binary",!0)("trueValue",!1)("falseValue",!0)("disabled",e.override),a(5),S(f(46,160,"dashboard.sched.playgroup_label")),a(2),q(A(203,Di)),p("options",e.playGroups)("ngModel",e.recRule.PlayGroup)("editable",!1)("maxlength",0),a(4),S(f(52,162,"dashboard.sched.startoffset_label")),a(2),p("ngModel",e.recRule.StartOffset)("showButtons",!0)("min",-480)("max",480)("step",1),a(3),S(f(57,164,"dashboard.sched.endoffset_label")),a(2),p("ngModel",e.recRule.EndOffset)("showButtons",!0)("min",-480)("max",480)("step",1),a(2),x("label",f(62,166,"dashboard.sched.newepis_label")),p("ngMode
l",e.recRule.NewEpisOnly)("binary",!0),a(5),S(f(66,168,"dashboard.sched.priority_label")),a(2),p("ngModel",e.recRule.RecPriority)("showButtons",!0)("min",-100)("max",100)("step",1),a(3),S(f(71,170,"dashboard.sched.prefinput_label")),a(2),q(A(204,Di)),p("options",e.inputList.Inputs)("ngModel",e.recRule.PreferredInput)("editable",!1)("maxlength",0),a(4),S(f(77,172,"dashboard.sched.dupmethod_label")),a(2),q(A(205,Di)),p("options",e.dupMethodList)("ngModel",e.recRule.DupMethod)("editable",!1)("maxlength",0),a(4),S(f(83,174,"dashboard.sched.dupin_label")),a(2),q(A(206,Di)),p("options",e.dupInList)("ngModel",e.recRule.DupIn)("editable",!1)("maxlength",0),a(4),S(f(89,176,"dashboard.sched.autoextend_label")),a(2),q(A(207,Di)),p("options",e.autoExtendList)("ngModel",e.recRule.AutoExtend)("editable",!1)("maxlength",0),a(4),S(f(95,178,"dashboard.sched.filters_label")),a(2),q(A(208,OS)),p("options",e.recRuleFilters)("ngModel",e.selectedFilters),a(4),S(f(101,180,"dashboard.sched.recprofile_label
")),a(2),q(A(209,Di)),p("options",e.recProfileList)("ngModel",e.recRule.RecProfile)("editable",!1)("maxlength",0),a(4),S(f(107,182,"dashboard.sched.sgroup_label")),a(2),q(A(210,Di)),p("options",e.recStorageGroups)("ngModel",e.recRule.StorageGroup)("editable",!1)("maxlength",0),a(4),S(f(113,184,"dashboard.sched.maxeps_label")),a(2),p("ngModel",e.recRule.MaxEpisodes)("showButtons",!0)("min",0)("max",100)("step",1),a(2),x("label",f(118,186,"dashboard.sched.maxnewest_label")),p("ngModel",e.recRule.MaxNewest)("binary",!0),a(4),T("
",f(121,188,"dashboard.sched.maxnewest_desc"),"
"),a(3),x("label",f(125,190,"dashboard.sched.autoexpire_label")),p("ngModel",e.recRule.AutoExpire)("binary",!0),a(5),S(f(129,192,"dashboard.sched.postproc_label")),a(2),q(A(211,OS)),p("options",e.postProcList)("ngModel",e.selectedPostProc)("filter",!0),a(2),p("ngIf","Recording
Template"!=e.recRule.Type),a(16),x("header",f(149,194,"common.unsaved_heading")),p("visible",e.displayUnsaved)("modal",!0),a(3),S(f(152,196
,"common.unsaved_message"))}}let Rd=(()=>{class
t{constructor(e,n,s,r,o){this.dvrService=e,this.translate=n,this.mythService=s,this.utility=r,this.channelService=o,this.displayDlg=!1,this.displayUnsaved=!1,this.loadCount=0,this.successCount=0,this.errorCount=0,this.errortext="",this.htmlRegex=new
RegExp("<TITLE>|</TITLE>"),this.srchTypeDisabled=!0,this.titleRows=1,this.subTitleRows=1,this.descriptionRows=5,this.override=!1,this.reqDate=new
Date,this.reqDuration=60,this.recRules=[],this.playGroups=[],this.recGroups=[],this.recStorageGroups=[],this.inputList={Inputs:[]},this.recRuleFilters=[],this.selectedFilters=[],this.templates=[],this.typeList=[],this.allChannels=[],this.srchTypeList=[{prompt:this.translate.instant("recrule.srch_None"),value:"None"},{prompt:this.translate.instant("recrule.srch_PowerSearch"),value:"Power
Search"},{prompt:this.translate.instant("recrule.srch_TitleSearch"),value:"Title
Search"},{prompt:this.translate.instant("recrule.srch_KeywordSearch"),value:"Keywo
rd
Search"},{prompt:this.translate.instant("recrule.srch_PeopleSearch"),value:"People
Search"},{prompt:this.translate.instant("recrule.srch_ManualSearch"),value:"Manual
Search"}],this.dupMethodList=[{prompt:this.translate.instant("dashboard.sched.dupmethod.none"),value:"None"},{prompt:this.translate.instant("dashboard.sched.dupmethod.s_and_d"),value:"Subtitle
and
Description"},{prompt:this.translate.instant("dashboard.sched.dupmethod.s_then_d"),value:"Subtitle
then
Description"},{prompt:this.translate.instant("dashboard.sched.dupmethod.s"),value:"Subtitle"},{prompt:this.translate.instant("dashboard.sched.dupmethod.d"),value:"Description"}],this.dupInList=[{prompt:this.translate.instant("dashboard.sched.dupin.both"),value:"All
Recordings"},{prompt:this.translate.instant("dashboard.sched.dupin.curr"),value:"Current
Recordings"},{prompt:this.translate.instant("dashboard.sched.dupin.prev"),value:"Previous
Recordings"}],this.autoExtendList=[{prompt:this.translate.instant("dashboard.sched
.extend_none"),value:"None"},{prompt:"ESPN",value:"ESPN"},{prompt:"MLB",value:"MLB"}],this.recProfileList=[{prompt:this.translate.instant("dashboard.sched.recprof.default"),value:"Default"},{prompt:this.translate.instant("dashboard.sched.recprof.livetv"),value:"Live
TV"},{prompt:this.translate.instant("dashboard.sched.recprof.highq"),value:"High
Quality"},{prompt:this.translate.instant("dashboard.sched.recprof.lowq"),value:"Low
Quality"}],this.postProcList=[{prompt:this.translate.instant("dashboard.sched.postproc.autocommflag"),value:"AutoCommflag"},{prompt:this.translate.instant("dashboard.sched.postproc.autometalookup"),value:"AutoMetaLookup"},{prompt:this.translate.instant("dashboard.sched.postproc.autotranscode"),value:"AutoTranscode"},{prompt:"1",value:"AutoUserJob1"},{prompt:"2",value:"AutoUserJob2"},{prompt:"3",value:"AutoUserJob3"},{prompt:"4",value:"AutoUserJob4"}],this.selectedPostProc=[],this.metaPrefix="",this.templateId=0,this.saveObserver={next:u=>{this.recRule?this.re
cRule.Id&&u.bool?(this.successCount++,this.currentForm.form.markAsPristine(),setTimeout(()=>this.inter.summaryComponent.refresh(),3e3),"Not
Recording"==this.recRule.Type&&(this.recRule.Id=0)):!this.recRule.Id&&u.uint?(this.successCount++,this.currentForm.form.markAsPristine(),setTimeout(()=>this.inter.summaryComponent.refresh(),3e3),this.recRule.Id=u.uint):(this.errorCount++,this.currentForm.form.markAsDirty()):(console.log("ERROR:
recRule is
undefined"),this.errorCount++)},error:u=>{if(console.error(u),400==u.status){let
h=u.error.split(this.htmlRegex);h.length>1&&(this.errortext=h[1])}this.errorCount++,this.currentForm.form.markAsDirty()}}}ngOnInit(){this.inter.sched=this}loadLists(){let
e;this.recRules=[],this.playGroups=[],this.recGroups=[],this.recStorageGroups=[],this.inputList.Inputs=[],this.recRuleFilters=[],this.loadCount=0,this.errorCount=0,this.dvrService.GetRecordScheduleList({}).subscribe({next:n=>{this.recRules=n.RecRuleList.RecRules,this.loadSuccess()},error:n=>this.l
oadFail()}),this.dvrService.GetPlayGroupList().subscribe({next:n=>{this.playGroups=n.PlayGroupList,this.playGroups.unshift("Default"),this.loadSuccess()},error:n=>this.loadFail()}),this.dvrService.GetRecGroupList().subscribe({next:n=>{this.recGroups=n.RecGroupList,this.loadSuccess()},error:n=>this.loadFail()}),this.dvrService.GetRecStorageGroupList().subscribe({next:n=>{this.recStorageGroups=n.RecStorageGroupList,this.loadSuccess()},error:n=>this.loadFail()}),this.dvrService.GetInputList().subscribe({next:n=>{this.inputList=n.InputList,this.inputList.Inputs.unshift({Id:0,CardId:0,SourceId:0,InputName:"",DisplayName:this.translate.instant("dashboard.sched.input_any"),QuickTune:!1,RecPriority:0,ScheduleOrder:0,LiveTVOrder:0}),this.loadSuccess()},error:n=>this.loadFail()}),this.dvrService.GetRecRuleFilterList().subscribe({next:n=>{this.recRuleFilters=n.RecRuleFilterList.RecRuleFilters,this.loadSuccess()},error:n=>this.loadFail()});for(let
n=1;n<5;n++)e=this.translate.instant("settings.
services.job_default",{num:n}),this.mythService.GetSetting({HostName:"_GLOBAL_",Key:"UserJobDesc"+n,Default:e}).subscribe({next:s=>{this.postProcList[n+2].prompt=s.String,this.loadSuccess()},error:()=>this.loadFail()});this.channelService.GetChannelInfoList({Details:!0}).subscribe(n=>{this.allChannels=n.ChannelInfoList.ChannelInfos,this.allChannels.forEach(s=>s.Description=s.ChanNum+"
"+s.ChannelName+"
("+s.CallSign+")"),this.loadSuccess()})}loadSuccess(){this.loadCount++,11==this.loadCount&&(this.loadCount=0,this.setupData(),this.displayDlg=!0,this.currentForm.form.markAsPristine())}loadFail(){this.errorCount++}open(e,n,s){this.templateId=0,this.reqProgram=e,this.reqChannel=n,this.reqRecRule=s,this.titleRows=1,e||s?(this.srchTypeDisabled=!0,this.srchTypeList[0].inactive=!1):(this.srchTypeDisabled=!1,this.srchTypeList[0].inactive=!0),this.loadLists()}setupData(){let
e=!1;this.program=this.reqProgram;let
n="";this.reqRecRule&&(n=this.reqRecRule.Type),this.reqRecRule?["Override
Record
ing","Do not
Record"].indexOf(n)>-1&&!this.reqRecRule.Id?(e=!0,this.recRule=void
0):this.recRule=Object.assign({},this.reqRecRule):this.recRule=void
0,this.reqChannel?this.channel=this.reqChannel:this.reqRecRule&&(this.channel=this.allChannels.find(r=>{var
o;return r.ChanId==(null===(o=this.reqRecRule)||void 0===o?void
0:o.ChanId)})),this.program&&!this.channel&&this.program.Channel&&(this.channel=this.program.Channel);var
s=0;if(this.typeList=[],this.templates=[{Id:0,Title:""}],this.defaultTemplate=void
0,this.program&&this.program.Recording&&!e&&(s=this.program.Recording.RecordId),this.recRules.forEach((r,o)=>{r.Id==s&&(this.recRule=r,n=this.recRule.Type),"Recording
Template"==r.Type&&(this.templates.push(r),"Default"==r.Category&&(this.defaultTemplate=r))}),this.recRule||(this.recRule={Id:0}),this.recRule.Title||(this.recRule.Title="",this.recRule.SubTitle="",this.recRule.Description="",this.defaultTemplate&&this.mergeTemplate(this.recRule,this.defaultTemplate)),this.recRule.Sear
chType||(this.recRule.SearchType="None"),this.program&&this.channel&&"None"==this.recRule.SearchType&&this.mergeProgram(this.recRule,this.program,this.channel),e&&(this.recRule.ParentId=this.program.Recording.RecordId),n||(n="Not
Recording"),!this.recRule.StartTime){let r=new
Date;this.recRule.StartTime=r.toISOString(),this.recRule.FindDay=(r.getDay()+1)%7,this.recRule.FindTime=r.toTimeString().slice(0,8)}this.filterFromRec(this.recRule),this.postProcFromRec(this.recRule),this.recRule.Type=n,this.setupTypeList(this.recRule),this.srchTypeDisabled||this.onSearchTypeChange(),this.override&&(this.recRule.Inactive=!1),setTimeout(()=>{this.recRule&&(this.recRule.Type=n),this.currentForm.form.markAsPristine()},10)}setupTypeList(e){let
n=e.Type;if(this.typeList.length=0,this.override=!1,"Recording
Template"==n)this.typeList.push({prompt:this.translate.instant("dashboard.sched.type.mod_template"),value:"Recording
Template"}),"Default"!=e.Category&&e.Id>0&&this.typeList.push({prompt:this.tran
slate.instant("dashboard.sched.type.del_template"),value:"Not
Recording"});else if(["Override Recording","Do not
Record"].indexOf(n)>-1)this.override=!0,this.typeList.push({prompt:this.translate.instant("dashboard.sched.type.del_override"),value:"Not
Recording"},{prompt:this.translate.instant("dashboard.sched.type.rec_override"),value:"Override
Recording"},{prompt:this.translate.instant("dashboard.sched.type.dont_rec_override"),value:"Do
not Record"});else{const s="Manual
Search"==e.SearchType,r="None"!=e.SearchType;this.typeList.push({prompt:this.translate.instant("dashboard.sched.type.not"),value:"Not
Recording"}),(e.CallSign&&!r||s)&&this.typeList.push({prompt:this.translate.instant("dashboard.sched.type.this"),value:"Single
Record"}),s||this.typeList.push({prompt:this.translate.instant("dashboard.sched.type.one"),value:"Record
One"}),(!e.CallSign||r)&&this.typeList.push({prompt:this.translate.instant("dashboard.sched.type.weekly"),value:"Record
Weekly"},{prompt:this.translate.in
stant("dashboard.sched.type.daily"),value:"Record
Daily"}),s||this.typeList.push({prompt:this.translate.instant("dashboard.sched.type.all"),value:"Record
All"})}-1==this.typeList.findIndex(s=>s.value==e.Type)&&(e.Type=this.typeList[0].value)}mergeProgram(e,n,s){e.Title=n.Title,e.SubTitle=n.SubTitle,e.Description=n.Description,e.Category=n.Category,e.StartTime=n.StartTime,e.EndTime=n.EndTime,e.SeriesId=n.SeriesId,e.ProgramId=n.ProgramId,e.ChanId=s.ChanId,e.CallSign=s.CallSign,e.Season=n.Season,e.Episode=n.Episode;let
r=new
Date(e.StartTime);e.FindDay=(r.getDay()+1)%7,e.FindTime=r.toTimeString().slice(0,8)}filterFromRec(e){this.selectedFilters=[],this.recRuleFilters.forEach(n=>{0!=(e.Filter&1<<n.Id)&&this.selectedFilters.push(n.Id)})}filterToRec(e){e.Filter=0,this.selectedFilters.forEach(n=>{e.Filter|=1<<n})}postProcFromRec(e){this.selectedPostProc=[];let
n=e;this.postProcList.forEach(s=>{n[s.value]&&this.selectedPostProc.push(s.value)})}postProcToRec(e){let
n=e;this.postProcList.forE
ach(s=>n[s.value]=!1),this.selectedPostProc.forEach(s=>n[s]=!0)}iCheckbox(e){e.Inetref||(e.Inetref=""),e.Inetref=e.Inetref.includes(".py_")?e.Inetref.replace(/^.*\.py_/,this.metaPrefix):this.metaPrefix+e.Inetref}iText(e){this.metaPrefix=e.Inetref.replace(/_.*/,"_"),this.metaPrefix.endsWith(".py_")||(this.metaPrefix="")}templateChange(e){if(this.templateId){const
n=this.templates.find(s=>s.Id==this.templateId);n&&this.mergeTemplate(e,n)}}onSearchTypeChange(){this.recRule&&(this.recRule.Title="",this.reqDate=new
Date,this.reqDate.setMinutes(0),this.reqDate.setSeconds(0,0),this.reqDuration=60,this.onDateChange(),"Manual
Search"==this.recRule.SearchType&&(this.recRule.Description="",setTimeout(()=>this.onChannelChange(),100)),this.subTitleRows="Power
Search"==this.recRule.SearchType?5:1,this.descriptionRows=["None","Power
Search"].indexOf(this.recRule.SearchType)>-1?5:1,this.recRule.SubTitle="",this.recRule.Description="",this.setupTypeList(this.recRule)),this.onTitleBlur(),this.onDescr
iptionBlur()}onTitleBlur(){if(this.recRule){if(this.recRule.Title=this.recRule.Title.trim(),this.recRule.Title.length>0){let
e;["Manual Search","Power
Search"].indexOf(this.recRule.SearchType)>-1&&this.recRule.Title.length>0&&(e="("+this.trSearch(this.recRule.SearchType)+")"),"Recording
Template"==this.recRule.Type&&this.recRule.Title.length>0&&(e="("+this.translate.instant("recrule.template")+")"),e&&-1==this.recRule.Title.indexOf(e)&&(this.recRule.Title=this.recRule.Title+"
"+e)}"Manual
Search"==this.recRule.SearchType&&(this.recRule.Description=this.recRule.Title)}}onDescriptionBlur(){this.recRule&&(this.recRule.Description=this.recRule.Description.trim(),["Title
Search","Keyword Search","People
Search"].indexOf(this.recRule.SearchType)>-1&&(this.recRule.Title=this.recRule.Description.length>0?this.recRule.Description+"
("+this.trSearch(this.recRule.SearchType)+")":""))}onChannelChange(){this.recRule&&this.channel&&(this.recRule.ChanId=this.channel.ChanId,this.recRule.CallSign=th
is.channel.CallSign)}onDateChange(){this.recRule&&(this.recRule.StartTime=this.reqDate.toISOString(),this.recRule.FindDay=(this.reqDate.getDay()+1)%7,this.recRule.FindTime=this.reqDate.toTimeString().slice(0,8),this.onDurationChange())}onDurationChange(){if(this.recRule){let
e=new Date(this.recRule.StartTime),n=new
Date(e.getTime()+6e4*this.reqDuration);this.recRule.EndTime=n.toISOString()}}trSearch(e){return
this.translate.instant("recrule.srch_"+e.replace("
",""))}mergeTemplate(e,n){e.Inactive=n.Inactive,e.RecPriority=n.RecPriority,e.PreferredInput=n.PreferredInput,e.StartOffset=n.StartOffset,e.EndOffset=n.EndOffset,e.DupMethod=n.DupMethod,e.DupIn=n.DupIn,e.NewEpisOnly=n.NewEpisOnly,e.Filter=n.Filter,e.RecProfile=n.RecProfile,e.RecGroup=n.RecGroup,e.StorageGroup=n.StorageGroup,e.PlayGroup=n.PlayGroup,e.AutoExpire=n.AutoExpire,e.MaxEpisodes=n.MaxEpisodes,e.MaxNewest=n.MaxNewest,e.AutoCommflag=n.AutoCommflag,e.AutoMetaLookup=n.AutoMetaLookup,e.AutoTranscode=n.AutoTranscode,e.AutoUse
rJob1=n.AutoUserJob1,e.AutoUserJob2=n.AutoUserJob2,e.AutoUserJob3=n.AutoUserJob3,e.AutoUserJob4=n.AutoUserJob4,e.Transcoder=n.Transcoder,this.postProcFromRec(e),this.filterFromRec(e)}close(){!this.recRule||0==this.recRule.Id&&"Not
Recording"==this.recRule.Type?this.displayDlg=!1:this.currentForm.dirty?this.displayUnsaved?(this.displayUnsaved=!1,this.displayDlg=!1,this.currentForm.form.markAsPristine()):this.displayUnsaved=!0:(this.displayDlg=!1,this.displayUnsaved=!1)}save(){if(this.errortext="",this.recRule&&(0!=this.recRule.Id||"Not
Recording"!=this.recRule.Type))if(this.errorCount=0,this.successCount=0,this.recRule.Id>0&&"Not
Recording"==this.recRule.Type)this.dvrService.RemoveRecordSchedule(this.recRule.Id).subscribe(this.saveObserver);else
if(this.recRule.Id>0){const
e=this.createRequest(this.recRule);e.RecordId=this.recRule.Id,this.dvrService.UpdateRecordSchedule(e).subscribe(this.saveObserver)}else{const
e=this.createRequest(this.recRule);this.dvrService.AddRecordSchedule(e).
subscribe(this.saveObserver)}}createRequest(e){return{Title:e.Title,Subtitle:e.SubTitle,Description:e.Description,Category:e.Category,StartTime:e.StartTime,EndTime:e.EndTime,SeriesId:e.SeriesId,ProgramId:e.ProgramId,ChanId:e.ChanId,Station:e.CallSign,FindDay:e.FindDay,FindTime:e.FindTime,ParentId:e.ParentId,Inactive:e.Inactive,Season:e.Season,Episode:e.Episode,Inetref:e.Inetref,Type:e.Type,SearchType:e.SearchType,RecPriority:e.RecPriority,PreferredInput:e.PreferredInput,StartOffset:e.StartOffset,EndOffset:e.EndOffset,LastRecorded:e.LastRecorded,DupMethod:e.DupMethod,DupIn:e.DupIn,NewEpisOnly:e.NewEpisOnly,Filter:e.Filter,RecProfile:e.RecProfile,RecGroup:e.RecGroup,StorageGroup:e.StorageGroup,PlayGroup:e.PlayGroup,AutoExpire:e.AutoExpire,MaxEpisodes:e.MaxEpisodes,MaxNewest:e.MaxNewest,AutoCommflag:e.AutoCommflag,AutoTranscode:e.AutoTranscode,AutoMetaLookup:e.AutoMetaLookup,AutoUserJob1:e.AutoUserJob1,AutoUserJob2:e.AutoUserJob2,AutoUserJob3:e.AutoUserJob3,AutoUserJob4:e.AutoUserJob4,
Transcoder:e.Transcoder,AutoExtend:e.AutoExtend}}URLencode(e){return
encodeURI(e)}confirm(e){return
oe(window.confirm(e))}canDeactivate(){return!this.currentForm||!this.currentForm.dirty||this.confirm(this.translate.instant("settings.common.warning"))}onWindowClose(e){this.currentForm&&this.currentForm.dirty&&(e.preventDefault(),e.returnValue=!1)}}return
t.\u0275fac=function(e){return
new(e||t)(D(jo),D(Oe),D(qt),D(cs),D(Or))},t.\u0275cmp=z({type:t,selectors:[["app-schedule"]],viewQuery:function(e,n){if(1&e&&W(Noe,5),2&e){let
s;V(s=B())&&(n.currentForm=s.first)}},hostBindings:function(e,n){1&e&&C("beforeunload",function(r){return
n.onWindowClose(r)},!1,ni)},inputs:{inter:"inter"},decls:3,vars:1,consts:[["name","schedform",1,"ml-3","mr-3"],["schedform","ngForm"],[4,"ngIf"],[3,"header","visible","modal","closable","closeOnEscape","visibleChange"],["class","form-group
field",4,"ngIf"],[1,"form-group","field"],["for","SearchType",1,"label","block"],["optionLabel","prompt","optionValue","
value","name","SearchType","optionDisabled","inactive",3,"options","ngModel","editable","maxlength","disabled","ngModelChange","onChange"],["SearchType","ngModel"],["for","Title",1,"label","block"],["pInputTextArea","","id","Title","name","Title",1,"text-lg","mb-2","form-control","w-full",3,"ngModel","disabled","rows","ngModelChange","focusout"],["for","Type",1,"label","block"],["optionLabel","prompt","optionValue","value","name","Type",3,"options","ngModel","editable","maxlength","ngModelChange"],["Type","ngModel"],["for","RecGroup",1,"label","block"],["name","RecGroup",3,"options","ngModel","editable","maxlength","ngModelChange"],["RecGroup","ngModel"],["inputId","Active","name","Active",1,"label","mb-2","w-full",3,"ngModel","binary","label","trueValue","falseValue","disabled","ngModelChange"],["Active","ngModel"],["for","PlayGroup",1,"label","block"],["PlayGroup","Type","name","PlayGroup",3,"options","ngModel","editable","maxlength","ngModelChange"],["PlayGroup","ngModel"],["for"
,"StartOffset",1,"label","block"],["name","StartOffset","id","StartOffset",3,"ngModel","showButtons","min","max","step","ngModelChange"],["for","EndOffset",1,"label","block"],["name","EndOffset","id","EndOffset",3,"ngModel","showButtons","min","max","step","ngModelChange"],["inputId","NewEpisOnly","name","NewEpisOnly",1,"label","mb-2","w-full",3,"ngModel","binary","label","ngModelChange"],["UseEIT","ngModel"],["for","RecPriority",1,"label","block"],["name","RecPriority","id","RecPriority",3,"ngModel","showButtons","min","max","step","ngModelChange"],["for","PreferredInput",1,"label","block"],["optionLabel","DisplayName","optionValue","Id","name","PreferredInput",3,"options","ngModel","editable","maxlength","ngModelChange"],["PreferredInput","ngModel"],["for","DupMethod",1,"label","block"],["optionLabel","prompt","optionValue","value","name","DupMethod",3,"options","ngModel","editable","maxlength","ngModelChange"],["DupMethod","ngModel"],["for","DupIn",1,"label","block"],["optionLabe
l","prompt","optionValue","value","name","DupIn",3,"options","ngModel","editable","maxlength","ngModelChange"],["DupIn","ngModel"],["for","AutoExtend",1,"label","block"],["optionLabel","prompt","optionValue","value","name","AutoExtend",3,"options","ngModel","editable","maxlength","ngModelChange"],["AutoExtend","ngModel"],["for","Filters",1,"label","block"],["optionLabel","Description","optionValue","Id","name","Filters",3,"options","ngModel","ngModelChange","onChange"],["Filters","ngModel"],["for","RecProfile",1,"label","block"],["optionLabel","prompt","optionValue","value","name","RecProfile",3,"options","ngModel","editable","maxlength","ngModelChange"],["RecProfile","ngModel"],["for","StorageGroup",1,"label","block"],["name","StorageGroup",3,"options","ngModel","editable","maxlength","ngModelChange"],["StorageGroup","ngModel"],["for","MaxEpisodes",1,"label","block"],["name","MaxEpisodes","id","MaxEpisodes",3,"ngModel","showButtons","min","max","step","ngModelChange"],["inputId","M
axNewest","name","MaxNewest",1,"label","mb-2","w-full",3,"ngModel","binary","label","ngModelChange"],["MaxNewest","ngModel"],[1,"block"],["inputId","AutoExpire","name","AutoExpire",1,"label","mb-2","w-full",3,"ngModel","binary","label","ngModelChange"],["AutoExpire","ngModel"],["for","PostProc",1,"label","block"],["optionLabel","prompt","optionValue","value","name","PostProc",3,"options","ngModel","filter","ngModelChange","onChange"],["PostProc","ngModel"],["pTemplate","footer"],[3,"header","visible","modal","visibleChange"],["for","Template",1,"label","block"],["optionLabel","Title","optionValue","Id","name","Template",1,"pr-2",3,"options","ngModel","editable","maxlength","ngModelChange","onClick","onChange"],["Template","ngModel"],["for","SubTitle","class","label
block",4,"ngIf"],["pInputTextArea","","id","SubTitle","name","SubTitle","class","text-lg
mb-2 form-control
w-full",3,"ngModel","disabled","rows","ngModelChange",4,"ngIf"],["for","SubTitle",1,"label","block"],["pInputTextA
rea","","id","SubTitle","name","SubTitle",1,"text-lg","mb-2","form-control","w-full",3,"ngModel","disabled","rows","ngModelChange"],[3,"ngSwitch"],["for","Description","class","label
block
mb-2",4,"ngSwitchCase"],["for","Description","class","label
block
mb-2",4,"ngSwitchDefault"],["pInputTextArea",&qu...
ame","Duration","id","Duration",3,"ngModel","showButtons","min","max","step","ngModelChange"],["for","Inetref",1,"label","block"],[1,"grid","p-0"],[1,"col-3","flex","align-items-center"],["name","prefix","value","ttvdb4.py_","inputId","ttvdb",3,"ngModel","ngModelChange"],["for","ttvdb"],["src","images/metadata/thetvdb.png","alt","thtvdb","height","40",1,"pl-1"],[1,"col-9","flex","align-items-center"],["target","_blank",3,"href"],[1,"col-5","flex","align-items-center"],["name","prefix","value","tvmaze.py_","inputId","tvmaze",3,"ngModel","ngModelChange"],["for","tvmaze"],["src","images/metadata/tvmaze.png","alt","tvmaze","height","40",1,"pl-1"],[1,"col-7","flex","align-items-center"],["name","prefix","value","tmdb3.py_","inputId","tmdb",3,"ngModel","ngModelChange"],["for","tmdb"],["src","images/metadata/themoviedb.svg","alt","themoviedb","height","40",1,"pl-1"],["pInputText","","id","Inetref","name","Inetref",1,"mb-2","form-control","w-full",3,"ngModel","ngModelChange"],["Inetref","ng
Model"],[1,"col-12",2,"text-align","left"],["severity","success",3,"text",4,"ngIf"],["severity","error",3,"text",4,"ngIf"],["icon","pi
pi-times-circle","styleClass","p-button-warning",3,"label","onClick"],["icon","pi
pi-check-circle","styleClass","p-button-success",3,"label","disabled","onClick"],["severity","success",3,"text"],["severity","error",3,"text"],["icon","pi
pi-times-circle","styleClass","p-button-danger",3,"label","onClick"],["icon","pi
pi-check-circle","styleClass","p-button-success",3,"label","onClick"]],template:function(e,n){1&e&&(l(0,"form",0,1),_(2,oae,154,212,"div",2),c()),2&e&&(a(2),p("ngIf",n.recRule))},directives:[ze,Ue,He,Q,bn,Ot,Te,_e,_n,Ye,gr,Ja,km,x7,xr,pt,sn,X2,Sd,ne,qe,ve],pipes:[ce],styles:[""]}),t})();function
aae(t,i){if(1&t){const
e=I();l(0,"p-checkbox",27,28),C("onChange",function(s){return
v(e).filterCallback(s.checked)}),m(2,"translate"),c()}if(2&t){const
e=i.$implicit;Bn("label","",f(2,3,"dashboard.upcoming.showall"),"
"),p("ngModel",e)("binary",!
0)}}function lae(t,i){if(1&t){const
e=I();l(0,"p-dropdown",29),C("onChange",function(s){return
v(e).filterCallback(s.value)}),m(1,"translate"),c()}if(2&t){const
e=i.$implicit,n=d(2);x("placeholder",f(1,4,"settings.chanedit.all")),p("ngModel",e)("options",n.recRules)("showClear",!0)}}const
cae=function(){return{width:"2rem",height:"2rem"}};function
uae(t,i){1&t&&(l(0,"div"),k(1,"p-progressSpinner"),c()),2&t&&(a(1),q(A(2,cae)))}function
dae(t,i){if(1&t){const
e=I();l(0,"button",30),C("click",function(){return
v(e),d(2).refresh()}),m(1,"translate"),c()}2&t&&x("pTooltip",f(1,1,"common.refresh"))}function
pae(t,i){if(1&t&&(l(0,"tr")(1,"th")(2,"p-columnFilter",10),_(3,aae,3,5,"ng-template",11),c(),g(4),m(5,"translate"),l(6,"p-columnFilter",12),_(7,lae,2,6,"ng-template",11),c(),_(8,uae,2,3,"div",13),_(9,dae,2,3,"ng-template",null,14,we),g(11),c()(),l(12,"tr")(13,"th",15),g(14),m(15,"translate"),c(),l(16,"th",16),g(17),m(18,"translate"),c(),k(19,"th",17),l(20,"th",18),g(21),m(22,"translate"
),c(),l(23,"th",19),g(24),m(25,"translate"),c(),l(26,"th",20),g(27),m(28,"translate"),c(),l(29,"th",21),g(30),m(31,"translate"),c(),l(32,"th",15),g(33),m(34,"translate"),c(),l(35,"th",22),g(36),m(37,"translate"),c(),l(38,"th",18),g(39),m(40,"translate"),c(),l(41,"th",23),g(42),m(43,"translate"),c(),l(44,"th",24),k(45,"button",25),c(),l(46,"th",24),k(47,"button",26),c()()),2&t){const
e=F(10),n=d();a(2),p("showMenu",!1)("showClearButton",!1),a(2),T("
\xa0\xa0\xa0\xa0\xa0 ",f(5,20,"dashboard.upcoming.recrule"),": \xa0
"),a(2),p("showMenu",!1)("showClearButton",!1),a(2),p("ngIf",n.refreshing)("ngIfElse",e),a(3),T("
\xa0\xa0\xa0",n.programs.length," Rows "),a(3),T("
",f(15,22,"dashboard.upcoming.date")," "),a(3),T("
",f(18,24,"dashboard.upcoming.time"),"
"),a(4),T("",f(22,26,"dashboard.upcoming.encoder"),"
"),a(3),T("
",f(25,28,"dashboard.recordings.title"),""),a(3),S(f(28,30,"dashboard.recordings.subtitle")),a(3),S(f(31,32,"dashboard.recordings.seas_ep")),a(3),T("
",f(34,34,"dashboard.r
ecordings.orig_airdate"),"
"),a(3),S(f(37,36,"dashboard.recordings.channel")),a(3),T("
",f(40,38,"dashboard.recordings.recgrp")," "),a(3),T("
",f(43,40,"dashboard.upcoming.status"),"
"),a(3),p("disabled",!0),a(2),p("disabled",!0)}}function
hae(t,i){if(1&t&&(l(0,"div"),g(1),c()),2&t){const
e=d().$implicit;a(1),We(" ",e.Season,"x",e.Episode,"
")}}const
mae=function(){return["WillRecord","Recording","Recorded"]};function
fae(t,i){if(1&t&&(l(0,"div",42),g(1),c()),2&t){const
e=d().$implicit,n=d();p("ngClass",A(2,mae).indexOf(e.Recording.StatusName)>-1?"text-green-500":"text-pink-500"),a(1),T("
",n.dataService.recStatusText[e.Recording.StatusName]," ")}}function
gae(t,i){if(1&t){const
e=I();l(0,"button",43),C("click",function(){v(e);const
s=d().$implicit;return
d().stopRequest(s)}),m(1,"translate"),c()}2&t&&x("pTooltip",f(1,1,"dashboard.recordings.stop_recording"))}function
_ae(t,i){if(1&t){const
e=I();l(0,"button",44),C("click",function(){v(e);const
s=d().$implicit;return d().override(s)
}),m(1,"translate"),c()}2&t&&x("pTooltip",f(1,1,"dashboard.recordings.override_rule"))}const
bae=function(){return["Recording","Failing"]};function
vae(t,i){if(1&t){const
e=I();l(0,"tr")(1,"td",31),k(2,"div",32),c(),l(3,"td",33),g(4),c(),l(5,"td",34),g(6),m(7,"number"),c(),l(8,"td",18),g(9),c(),l(10,"td",35),g(11),c(),l(12,"td",36),g(13),c(),l(14,"td",21),_(15,hae,2,2,"div",37),c(),l(16,"td",15),k(17,"div",32),c(),l(18,"td",22),g(19),c(),l(20,"td",18),g(21),c(),l(22,"td",23),_(23,fae,2,3,"div",38),c(),l(24,"td",24),_(25,gae,2,3,"button",39),_(26,_ae,2,3,"ng-template",null,40,we),c(),l(28,"td",24)(29,"button",41),C("click",function(){const
r=v(e).$implicit;return
d().updateRecRule(r)}),m(30,"translate"),c()()()}if(2&t){const
e=i.$implicit,n=F(27),s=d();a(2),p("innerHTML",s.formatStartDate(e),Bt),a(2),T("
",s.formatStartTime(e),""),a(2),T("
",Dt(7,17,s.getDuration(e),"1.0-0"),"
min"),a(3),T("",e.Recording.EncoderName," "),a(2),T("
",e.Title,""),a(1),x("pTooltip",e.Description),a(1),T(
"
",e.SubTitle.slice(0,50),""),a(2),p("ngIf",e.Season>0||e.Episode>0),a(2),p("innerHTML",s.formatAirDate(e),Bt),a(2),We("
",e.Channel.ChanNum,"
",e.Channel.CallSign,""),a(2),S(e.Recording.RecGroup),a(2),p("ngIf",e.Recording),a(2),p("ngIf",A(22,bae).indexOf(e.Recording.StatusName)>-1)("ngIfElse",n),a(4),x("pTooltip",f(30,20,"dashboard.recordings.edit_rule")),p("disabled",e.Recording&&7==e.Recording.RecType)}}function
Cae(t,i){1&t&&(k(0,"p-message",49),m(1,"translate")),2&t&&x("text",f(1,1,"common.networkfail"))}function
yae(t,i){if(1&t){const
e=I();l(0,"div",45),_(1,Cae,2,3,"p-message",46),c(),l(2,"p-button",47),C("onClick",function(){return
v(e),d().displayStop=!1}),m(3,"translate"),c(),l(4,"p-button",48),C("onClick",function(){v(e);const
s=d();return s.stopRecording(s.program)}),m(5,"translate"),c()}if(2&t){const
e=d();a(1),p("ngIf",e.errorCount>0),a(1),x("label",f(3,3,"common.close")),a(2),x("label",f(5,5,"dashboard.recordings.stop_recording"))}}let
wae=(()=>{class t{constructor(e
,n,s,r,o){this.dvrService=e,this.messageService=n,this.translate=s,this.dataService=r,this.utility=o,this.programs=[],this.recRules=[],this.allRecRules=[],this.activeRecRules=[],this.defaultRecRule={Id:0,Title:"settings.chanedit.all"},this.displayUpdateDlg=!1,this.showAllStatuses=!1,this.refreshing=!1,this.loaded=!1,this.inter={summaryComponent:this},this.displayStop=!1,this.errorCount=0,this.translate.get(this.defaultRecRule.Title).subscribe(u=>this.defaultRecRule.Title=u),this.loadRecRules()}ngOnInit(){}refresh(){this.refreshing=!0,this.loadRecRules(),this.loadLazy(this.lazyLoadEvent)}loadRecRules(){this.dvrService.GetRecordScheduleList({}).subscribe({next:e=>{this.allRecRules.length=0,this.allRecRules.push(this.defaultRecRule),this.activeRecRules.length=0,this.activeRecRules.push(this.defaultRecRule),e.RecRuleList.RecRules.forEach(n=>{if("Recording
Template"!=n.Type){let s={Id:n.Id,Title:n.Title.substring(0,30)+"
["+this.utility.recTypeTrans[n.Type]+"]"};this.allRecRules.push(s),
n.NextRecording&&this.activeRecRules.push(s)}})}})}loadLazy(e){this.lazyLoadEvent=e;let
n={StartIndex:0,Count:1};e.first&&(n.StartIndex=e.first),e.rows&&(n.Count=e.rows,n.Count<100&&(n.Count=100)),e.filters&&(e.filters.ShowAll.value&&(n.ShowAll=!0),e.filters.RecordId.value&&(n.RecordId=e.filters.RecordId.value)),this.recRules.length=0,n.ShowAll?this.recRules.push(...this.allRecRules):this.recRules.push(...this.activeRecRules),this.dvrService.GetUpcomingList(n).subscribe(s=>{let
r=s.ProgramList;this.programs.length=s.ProgramList.TotalAvailable,this.programs.splice(r.StartIndex,r.Count,...r.Programs),this.programs=[...this.programs],this.refreshing=!1})}formatStartDate(e){return
this.utility.formatDate(e.Recording.StartTs,!0)}formatAirDate(e){return
e.Airdate?this.utility.formatDate(e.Airdate+"
00:00",!0):""}formatStartTime(e){return(new
Date(e.Recording.StartTs).toLocaleTimeString()+" ").replace(/:.. /,"
")}getDuration(e){let n=new Date(e.Recording.StartTs).getTime();return(new Date(
e.Recording.EndTs).getTime()-n)/6e4}updateRecRule(e){this.inter.sched&&this.inter.sched.open(e)}override(e){this.inter.sched&&(7==e.Recording.RecType?this.inter.sched.open(e):this.inter.sched.open(e,void
0,{Type:"Override
Recording"}))}stopRequest(e){e.Recording.RecordId&&(this.program=e,this.displayStop=!0)}stopRecording(e){this.errorCount=0,this.dvrService.StopRecording(e.Recording.RecordedId).subscribe({next:n=>{n.bool?(this.displayStop=!1,setTimeout(()=>this.inter.summaryComponent.refresh(),3e3)):this.errorCount++},error:n=>{this.errorCount++}})}}return
t.\u0275fac=function(e){return
new(e||t)(D(jo),D(Gi),D(Oe),D(Ll),D(cs))},t.\u0275cmp=z({type:t,selectors:[["app-upcoming"]],features:[Pe([Gi])],decls:24,vars:25,consts:[[2,"white-space","pre-line"],["position","center"],[1,"block","card","w-full"],[2,"height","90vh"],["scrollHeight","flex","styleClass","p-datatable-striped",3,"value","scrollable","virtualScroll","rows","lazy","rowHover","onLazyLoad"],["pTemplate","header"],["pTem
plate","body"],[3,"header","visible","modal","draggable","resizable","visibleChange"],["pTemplate","footer"],[3,"inter"],["field","ShowAll","matchMode","equals",3,"showMenu","showClearButton"],["pTemplate","filter"],["field","RecordId","matchMode","equals",3,"showMenu","showClearButton"],[4,"ngIf","ngIfElse"],["refreshBn",""],[1,"justify-content-end","p-1",2,"flex-basis","8%"],[1,"justify-content-end","p-1",2,"flex-basis","6%"],[1,"justify-content-end","pl-1","pr-3","pt-1","pb-1",2,"flex-basis","7%"],[1,"p-1",2,"flex-basis","8%"],[1,"p-1",2,"flex-basis","12%"],[1,"p-1",2,"flex-basis","18%"],[1,"p-1",2,"flex-basis","4%"],[1,"p-1",2,"flex-basis","10%"],[1,"p-1",2,"flex-basis","7%"],[1,"p-1",2,"flex-basis","2%"],["pButton","","pRipple","","icon","pi
pi-paperclip",1,"p-button-text","p-button-primary",3,"disabled"],["pButton","","pRipple","","icon","pi
pi-pencil",1,"p-button-text","p-button-primary",3,"disabled"],["inputId","showAllStatuses","name","showAllStatuses",3,"ngModel","binary",
"label","onChange"],["showAll","ngModel"],["name","rulefilter","optionLabel","Title","optionValue","Id",3,"ngModel","options","placeholder","showClear","onChange"],["pButton","","pRipple","","icon","pi
pi-refresh",1,"p-button-text",".p-button-success",3,"pTooltip","click"],[1,"justify-content-end","p-1","overflow-hidden",2,"flex-basis","8%"],[3,"innerHTML"],[1,"justify-content-end","p-1","overflow-hidden",2,"flex-basis","6%"],[1,"justify-content-end","pl-1","pr-3","pt-1","pb-1","overflow-hidden",2,"flex-basis","7%"],[1,"p-1","overflow-hidden",2,"flex-basis","12%"],["tooltipPosition","top",1,"p-1","overflow-hidden",2,"flex-basis","18%",3,"pTooltip"],[4,"ngIf"],[3,"ngClass",4,"ngIf"],["pButton","","pRipple","","icon","pi
pi-stop-circle","class","p-button-text
p-button-danger","tooltipPosition","left",3,"pTooltip","click",4,"ngIf","ngIfElse"],["overrideBn",""],["pButton","","pRipple","","icon","pi
pi-pencil","tooltipPosition","left",1,"p-button-text","p-button-primary",3,"pTooltip","di
sabled","click"],[3,"ngClass"],["pButton","","pRipple","","icon","pi
pi-stop-circle","tooltipPosition","left",1,"p-button-text","p-button-danger",3,"pTooltip","click"],["pButton","","pRipple","","icon","pi
pi-paperclip","tooltipPosition","left",1,"p-button-text","p-button-primary",3,"pTooltip","click"],[1,"col-12",2,"text-align","left"],["severity","error",3,"text",4,"ngIf"],["icon","pi
pi-times-circle","styleClass","p-button-warning",3,"label","onClick"],["icon","pi
pi-check-circle","styleClass","p-button-danger",3,"label","onClick"],["severity","error",3,"text"]],template:function(e,n){1&e&&(l(0,"div")(1,"div",0),k(2,"p-toast",1),c(),l(3,"h2"),g(4),m(5,"translate"),c(),l(6,"div",2)(7,"div",3)(8,"p-table",4),C("onLazyLoad",function(r){return
n.loadLazy(r)}),_(9,pae,48,42,"ng-template",5),_(10,vae,31,23,"ng-template",6),c(),l(11,"p-dialog",7),C("visibleChange",function(r){return
n.displayStop=r}),m(12,"translate"),l(13,"h2"),g(14),m(15,"translate"),c(),l(16,"p"),g(17),m(18,"translat
e"),k(19,"br"),l(20,"b"),g(21),c()(),_(22,yae,6,7,"ng-template",8),c(),k(23,"app-schedule",9),c()()()),2&e&&(a(4),S(f(5,17,"dashboard.upcoming.heading")),a(4),p("value",n.programs)("scrollable",!0)("virtualScroll",!0)("rows",50)("lazy",!0)("rowHover",!0),a(3),x("header",f(12,19,"dashboard.recordings.stop_recording")),p("visible",n.displayStop)("modal",!0)("draggable",!1)("resizable",!1),a(3),S(f(15,21,"settings.common.ru_sure")),a(3),T("",f(18,23,"dashboard.recordings.stop_details"),"
"),a(4),We(" ",null==n.program?null:n.program.Title,":
",null==n.program?null:n.program.SubTitle,""),a(2),p("inter",n.inter))},directives:[Td,Dn,ne,vg,sn,Te,_e,Ot,Q,Go,On,bt,Kt,Le,bn,qe,ve,Rd],pipes:[ce,eu],styles:[""]}),t})();function
Tae(t,i){if(1&t){const
e=I();l(0,"button",10),C("click",function(){return
v(e),d(2).newRecRule()}),m(1,"translate"),c(),l(2,"button",11),C("click",function(){return
v(e),d(2).newTemplate()}),m(3,"translate"),c()}2&t&&(x("label",f(1,2,"dashboard.recrules.new_recrule")),a(
2),x("label",f(3,4,"dashboard.recrules.new_teplate")))}function
Sae(t,i){1&t&&(l(0,"tr")(1,"th",12),g(2),m(3,"translate"),k(4,"p-sortIcon",13),c(),l(5,"th",14),g(6),m(7,"translate"),c(),l(8,"th",15),g(9),m(10,"translate"),c(),l(11,"th",15),g(12),m(13,"translate"),c(),l(14,"th",15),g(15),m(16,"translate"),c(),l(17,"th",16),g(18),m(19,"translate"),k(20,"p-sortIcon",17),c(),l(21,"th",18),g(22),m(23,"translate"),k(24,"p-sortIcon",19),c(),l(25,"th",20),g(26,"Active"),c(),l(27,"th",21),k(28,"button",22)(29,"button",23),c()()),2&t&&(a(2),T("
",f(3,9,"dashboard.recordings.title"),"
"),a(4),S(f(7,11,"dashboard.recrule.type")),a(3),S(f(10,13,"common.priority")),a(3),T("
",f(13,15,"dashboard.recordings.recgrp")," "),a(3),T("
",f(16,17,"dashboard.recrules.storgrp")," "),a(3),T("
",f(19,19,"dashboard.recrules.lastrec"),""),a(4),T("
",f(23,21,"dashboard.recrules.nextrec"),""),a(6),p("disabled",!0),a(1),p("disabled",!0))}function
xae(t,i){1&t&&k(0,"i",31)}function
Dae(t,i){1&t&&k(0,"i",32)}functio
n Mae(t,i){if(1&t){const
e=I();l(0,"tr")(1,"td",24),g(2),c(),l(3,"td",14),g(4),c(),l(5,"td",15),g(6),c(),l(7,"td",15),g(8),c(),l(9,"td",15),g(10),c(),l(11,"td",25),g(12),c(),l(13,"td",26),g(14),c(),l(15,"td",20),_(16,xae,1,0,"i",27),_(17,Dae,1,0,"ng-template",null,28,we),c(),l(19,"td",21)(20,"button",29),C("click",function(){const
r=v(e).$implicit;return
d(2).updateRecRule(r)}),m(21,"translate"),c(),l(22,"button",30),C("click",function(){const
r=v(e).$implicit;return
d(2).deleteRequest(r)}),m(23,"translate"),c()()()}if(2&t){const
e=i.$implicit,n=F(18),s=d(2);a(2),T(" ",e.Title,""),a(2),T("
",s.utility.recTypeTrans[e.Type],""),a(2),S(e.RecPriority),a(2),S(e.RecGroup),a(2),S(e.StorageGroup),a(2),T("
",s.utility.formatDate(e.LastRecorded),""),a(2),We("
",s.utility.formatDate(e.NextRecording),"
",s.utility.formatTime(e.NextRecording),""),a(2),p("ngIf",e.Inactive)("ngIfElse",n),a(4),x("pTooltip",f(21,13,"dashboard.recordings.edit_rule")),a(2),x("pTooltip",f(23,15,"dashboard.recordings.de
lete_rule")),p("disabled","Recording
Template"==e.Type&&"Default"==e.Category)}}function
kae(t,i){if(1&t&&(l(0,"div",5)(1,"p-table",6),_(2,Tae,4,6,"ng-template",7),_(3,Sae,30,23,"ng-template",8),_(4,Mae,24,17,"ng-template",9),c()()),2&t){const
e=d();a(1),p("value",e.recRules)("scrollable",!0)("rowHover",!0)}}function
Iae(t,i){1&t&&(k(0,"p-message",37),m(1,"translate")),2&t&&x("text",f(1,1,"common.networkfail"))}function
Eae(t,i){if(1&t){const
e=I();l(0,"div",33),_(1,Iae,2,3,"p-message",34),c(),l(2,"p-button",35),C("onClick",function(){return
v(e),d().displayDelete=!1}),m(3,"translate"),c(),l(4,"p-button",36),C("onClick",function(){v(e);const
s=d();return s.deleteRule(s.recRule)}),m(5,"translate"),c()}if(2&t){const
e=d();a(1),p("ngIf",e.errorCount>0),a(1),x("label",f(3,3,"common.close")),a(2),x("label",f(5,5,"common.delete"))}}function
Rae(t,i){1&t&&k(0,"p-progressSpinner")}let Lae=(()=>{class
t{constructor(e,n){this.dvrService=e,this.utility=n,this.recRules=[],this.inter={summaryCom
ponent:this},this.deSpacer=new RegExp(/
/g),this.rulesLoaded=!1,this.errorCount=0,this.successCount=0,this.displayDelete=!1,this.saveObserver={next:s=>{this.recRule?this.recRule.Id&&s.bool?(this.successCount++,this.displayDelete=!1,setTimeout(()=>this.refresh(),1e3)):!this.recRule.Id&&s.uint?(this.successCount++,setTimeout(()=>this.inter.summaryComponent.refresh(),1e3),this.recRule.Id=s.uint):this.errorCount++:(console.log("ERROR:
recRule is
undefined"),this.errorCount++)},error:s=>{console.error(s),this.errorCount++}}}refresh(){this.loadLists()}ngOnInit(){this.loadLists()}loadLists(){this.recRules=[],this.errorCount=0,this.dvrService.GetRecordScheduleList({}).subscribe({next:e=>{this.recRules=e.RecRuleList.RecRules,this.rulesLoaded=!0},error:e=>{this.errorCount++}})}newRecRule(){this.updateRecRule()}updateRecRule(e){this.inter.sched&&this.inter.sched.open(void
0,void 0,e)}newTemplate(){this.updateRecRule({Type:"Recording
Template"})}deleteRequest(e){this.recRule=e,this.displayDelet
e=!0}deleteRule(e){this.dvrService.RemoveRecordSchedule(e.Id).subscribe(this.saveObserver)}}return
t.\u0275fac=function(e){return
new(e||t)(D(jo),D(cs))},t.\u0275cmp=z({type:t,selectors:[["app-recrules"]],decls:19,vars:21,consts:[["class","block
card w-full","style","height:
90vh",4,"ngIf","ngIfElse"],[3,"header","visible","modal","draggable","resizable","visibleChange"],["pTemplate","footer"],[3,"inter"],["loading",""],[1,"block","card","w-full",2,"height","90vh"],["scrollHeight","flex","styleClass","p-datatable-striped","responsiveLayout","scroll",3,"value","scrollable","rowHover"],["pTemplate","caption"],["pTemplate","header"],["pTemplate","body"],["pButton","","pRipple","","icon","pi
pi-plus",1,"p-button-success","mr-2",3,"label","click"],["pButton","","pRipple","","icon","pi
pi-plus",1,"p-button-success","p-button-outlined","mr-2",3,"label","click"],["pSortableColumn","Title",1,"p-1",2,"flex-basis","20%"],["field","Title"],[1,"p-1",2,"flex-basis","20%"],[1,"p-1",2,"flex-basis",
"10%"],["pSortableColumn","LastRecorded",1,"justify-content-end","pr-5",2,"flex-basis","10%"],["field","LastRecorded"],["pSortableColumn","NextRecording",1,"justify-content-end","pr-5",2,"flex-basis","15%"],["field","NextRecording"],[1,"p-1",2,"flex-basis","5%"],[1,"p-1",2,"flex-basis","6%"],["pButton","","pRipple","","icon","pi
pi-pencil",1,"p-button-text","p-button-primary",3,"disabled"],["pButton","","pRipple","","icon","pi
pi-trash",1,"p-button-text","p-button-danger",3,"disabled"],[1,"p-1","overflow-hidden",2,"flex-basis","20%"],[1,"justify-content-end","p-1","pr-5",2,"flex-basis","10%"],[1,"justify-content-end","p-1","pr-5",2,"flex-basis","15%"],["class","pi
pi-times
text-pink-500",4,"ngIf","ngIfElse"],["checkmark",""],["pButton","","pRipple","","icon","pi
pi-pencil","tooltipPosition","left",1,"p-button-text","p-button-primary",3,"pTooltip","click"],["pButton","","pRipple","","icon","pi
pi-trash","tooltipPosition","left",1,"p-button-text","p-button-danger",3,"pTooltip","disabl
ed","click"],[1,"pi","pi-times","text-pink-500"],[1,"pi","pi-check","text-green-500"],[1,"col-12",2,"text-align","left"],["severity","error",3,"text",4,"ngIf"],["icon","pi
pi-times-circle","styleClass","p-button-warning",3,"label","onClick"],["icon","pi
pi-check-circle","styleClass","p-button-danger",3,"label","onClick"],["severity","error",3,"text"]],template:function(e,n){if(1&e&&(l(0,"h2"),g(1),m(2,"translate"),c(),_(3,kae,5,3,"div",0),l(4,"p-dialog",1),C("visibleChange",function(r){return
n.displayDelete=r}),m(5,"translate"),l(6,"h2"),g(7),m(8,"translate"),c(),l(9,"p"),g(10),m(11,"translate"),k(12,"br"),l(13,"b"),g(14),c()(),_(15,Eae,6,7,"ng-template",2),c(),k(16,"app-schedule",3),_(17,Rae,1,0,"ng-template",null,4,we)),2&e){const
s=F(18);a(1),S(f(2,13,"dashboard.recrules.heading")),a(2),p("ngIf",n.rulesLoaded)("ngIfElse",s),a(1),x("header",f(5,15,"dashboard.recordings.delete_rule")),p("visible",n.displayDelete)("modal",!0)("draggable",!1)("resizable",!1),a(3),S(f(8,17,"settings.
common.ru_sure")),a(3),T("",f(11,19,"dashboard.recordings.delete_details"),"
"),a(4),We(" ",null==n.recRule?null:n.recRule.Title,":
",null==n.recRule?null:n.recRule.Type,""),a(2),p("inter",n.inter)}},directives:[Q,Dn,ne,On,bt,yd,wd,Kt,bn,qe,ve,Rd,Go],pipes:[ce],styles:[""]}),t})(),Oae=(()=>{class
t{constructor(e){this.httpClient=e}GetVideoList(e){let n=new ye;for(const[s,r]of
Object.entries(e))n=n.set(s,r);return
this.httpClient.get("/Video/GetVideoList",{params:n})}UpdateVideoWatchedStatus(e,n){return
this.httpClient.post("/Video/UpdateVideoWatchedStatus",{Id:e,Watched:n})}UpdateVideoMetadata(e){return
this.httpClient.post("/Video/UpdateVideoMetadata",e)}}return
t.\u0275fac=function(e){return
new(e||t)(K(Bi))},t.\u0275prov=X({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();const
Aae=["vidsform"],Pae=["menu"],Fae=["table"];function
Nae(t,i){}function Vae(t,i){if(1&t){const
e=I();l(0,"div")(1,"p-button",35),C("onClick",function(){const
r=v(e).index;return d(2).breadCrumb(r+1)})
,c()()}if(2&t){const e=i.$implicit;a(1),x("label",e)}}const
Bae=function(){return{width:"30px",height:"30px"}};function
Hae(t,i){1&t&&(l(0,"div"),k(1,"p-progressSpinner"),c()),2&t&&(a(1),q(A(2,Bae)))}function
qae(t,i){if(1&t){const
e=I();l(0,"button",52),C("click",function(){v(e);const s=d(2);return
s.refreshing=!0,s.reLoadVideos()}),m(1,"translate"),c()}2&t&&x("pTooltip",f(1,1,"common.refresh"))}function
Gae(t,i){if(1&t){const
e=I();l(0,"tr")(1,"th")(2,"p-button",35),C("onClick",function(){return
v(e),d().breadCrumb(0)}),m(3,"translate"),c(),_(4,Vae,2,1,"div",36),g(5,"
\xa0\xa0\xa0
"),l(6,"p-checkbox",37,38),C("ngModelChange",function(s){return
v(e),d().showAllVideos=s})("onChange",function(){return
v(e),d().showAllChange()}),m(8,"translate"),c(),_(9,Hae,2,3,"div",39),_(10,qae,2,3,"ng-template",null,40,we),g(12),c()(),l(13,"tr")(14,"th",41),g(15),m(16,"translate"),k(17,"p-sortIcon",42),c(),k(18,"th",43),l(19,"th",44),g(20),m(21,"translate"),c(),l(22,"th",45),g(23),m(24,"translate")
,c(),l(25,"th",46),g(26),m(27,"translate"),k(28,"p-sortIcon",47),c(),l(29,"th",48),g(30),m(31,"translate"),c(),l(32,"th",45)(33,"a",49),k(34,"i",50),c(),k(35,"button",51),c()()}if(2&t){const
e=F(11),n=d();a(2),x("label",f(3,14,"dashboard.videos.heading")),a(2),p("ngForOf",n.directory),a(2),Bn("label","",f(8,16,"dashboard.videos.showall"),"
"),p("ngModel",n.showAllVideos)("binary",!0),a(3),p("ngIf",n.refreshing)("ngIfElse",e),a(3),T("
\xa0\xa0\xa0",n.videos.length," Rows "),a(3),T("
",f(16,18,"dashboard.recordings.title"),"
"),a(5),S(f(21,20,"dashboard.recordings.subtitle")),a(3),S(f(24,22,"dashboard.recordings.seas_ep")),a(3),T("
",f(27,24,"dashboard.videos.releasedate")," "),a(4),T("
",f(31,26,"dashboard.recordings.duration"),"
"),a(5),p("disabled",!0)}}function Uae(t,i){if(1&t){const
e=I();l(0,"div")(1,"button",60),C("click",function(){v(e);const
s=d().$implicit;return d().onDirectory(s.Title)}),c()()}if(2&t){const
e=d().$implicit;a(1),x("label",e.Title)}}function zae(t,i){1&t&&g(
0),2&t&&T(" ",d().$implicit.Title," ")}function
jae(t,i){1&t&&k(0,"i",61)}function
$ae(t,i){if(1&t&&(l(0,"div"),g(1),c()),2&t){const
e=d().$implicit;a(1),We(" ",e.Season,"x",e.Episode,"
")}}function
Wae(t,i){if(1&t&&(l(0,"div"),g(1),c()),2&t){const
e=d().$implicit;a(1),T(" ",e.Length," min ")}}function
Kae(t,i){if(1&t){const
e=I();l(0,"div")(1,"a",62),m(2,"translate"),k(3,"i",63),c(),l(4,"button",64),C("click",function(s){v(e);const
r=d().$implicit;return d().showMenu(r,s)}),c()()}if(2&t){const
e=d().$implicit,n=d();a(1),x("href",n.URLencode("/Content/GetVideo?Id="+e.Id),ln),x("pTooltip",f(2,2,"dashboard.videos.download"))}}function
Qae(t,i){if(1&t&&(l(0,"tr")(1,"td",53),_(2,Uae,2,1,"div",39),_(3,zae,1,1,"ng-template",null,54,we),c(),l(5,"td",43),_(6,jae,1,0,"i",55),c(),l(7,"td",56),g(8),c(),l(9,"td",45),_(10,$ae,2,2,"div",57),c(),l(11,"td",58),k(12,"div",59),c(),l(13,"td",48),_(14,Wae,2,1,"div",57),c(),l(15,"td",45),_(16,Kae,5,4,"div",57),c()()),2&t){const
e=i.$implicit,n=F(4),s=d(
);a(2),p("ngIf","DIRECTORY"==e.ContentType)("ngIfElse",n),a(4),p("ngIf",e.Watched),a(1),x("pTooltip",e.Description),a(1),T("
",e.SubTitle,""),a(2),p("ngIf",e.Season>0||e.Episode>0),a(2),p("innerHTML",s.utility.formatDate(e.ReleaseDate,!0),Bt),a(2),p("ngIf",e.Length>0),a(2),p("ngIf","DIRECTORY"!=e.ContentType)}}function
Jae(t,i){1&t&&(k(0,"p-message",70),m(1,"translate")),2&t&&x("text",f(1,1,"common.savesuccess"))}function
Yae(t,i){1&t&&(k(0,"p-message",71),m(1,"translate")),2&t&&x("text",f(1,1,"common.networkfail"))}function
Zae(t,i){if(1&t){const
e=I();l(0,"div",65),_(1,Jae,2,3,"p-message",66),_(2,Yae,2,3,"p-message",67),c(),l(3,"p-button",68),C("onClick",function(){return
v(e),d().closeDialog()}),m(4,"translate"),c(),l(5,"p-button",69),C("onClick",function(){return
v(e),d().saveVideo()}),m(6,"translate"),c()}if(2&t){const
e=d(),n=F(15);a(1),p("ngIf",e.successCount>0&&0==e.errorCount&&!n.dirty),a(1),p("ngIf",e.errorCount>0),a(1),x("label",f(4,5,"common.close")),a(2),x("label",f(6,7
,"common.save")),p("disabled",!n.dirty||""==e.video.Title.trim())}}function
Xae(t,i){if(1&t){const
e=I();l(0,"p-button",72),C("onClick",function(){return
v(e),d().closeDialog()}),m(1,"translate"),c(),l(2,"p-button",73),C("onClick",function(){return
v(e),d().displayUnsaved=!1}),m(3,"translate"),c()}2&t&&(x("label",f(1,2,"common.nosave")),a(2),x("label",f(3,4,"common.continue")))}const
ele=function(){return{height:"75vw",width:"50vw"}};let
tle=(()=>{class
t{constructor(e,n,s,r){this.videoService=e,this.translate=n,this.messageService=s,this.utility=r,this.videos=[],this.refreshing=!1,this.successCount=0,this.errorCount=0,this.directory=[],this.video={Title:""},this.displayMetadataDlg=!1,this.displayUnsaved=!1,this.showAllVideos=!1,this.mnu_markwatched={label:"dashboard.recordings.mnu_markwatched",command:u=>this.markwatched(u,!0)},this.mnu_markunwatched={label:"dashboard.recordings.mnu_markunwatched",command:u=>this.markwatched(u,!1)},this.mnu_updatemeta={label:"dashboard.recordings.m
nu_updatemeta",command:u=>this.updatemeta(u)},this.menuToShow=[],this.msg={Success:"common.success",Failed:"common.failed",NetFail:"common.networkfail"},this.saveObserver={next:u=>{u.bool?(console.log("saveObserver
success",u),this.successCount++,this.successCount++,this.currentForm.form.markAsPristine(),this.editingVideo&&Object.assign(this.editingVideo,this.video)):(console.log("saveObserver
error",u),this.errorCount++)},error:u=>{console.log("saveObserver
error",u),this.errorCount++}};for(const[u,h]of
Object.entries(this.msg))this.translate.get(h).subscribe(b=>{Object.defineProperty(this.msg,u,{value:b})});[this.mnu_markwatched,this.mnu_markunwatched,this.mnu_updatemeta].forEach(u=>{u.label&&this.translate.get(u.label).subscribe(h=>u.label=h)})}ngOnInit(){}loadLazy(e){this.lazyLoadEvent=e;let
n={Sort:"title",Folder:this.directory.join("/"),CollapseSubDirs:!this.showAllVideos,StartIndex:0,Count:1};e.sortField&&(n.Sort=e.sortField,e.sortOrder&&(n.Descending=e.sortOrder<0)),n.Sort+=
",title,releasedate,season,episode",e.first&&(n.StartIndex=e.first),e.rows&&(n.Count=e.rows),this.videoService.GetVideoList(n).subscribe(s=>{let
r=s.VideoMetadataInfoList;this.videos.length=s.VideoMetadataInfoList.TotalAvailable,this.videos.splice(r.StartIndex,r.Count,...r.VideoMetadataInfos),this.videos=[...this.videos],this.refreshing=!1})}reLoadVideos(){this.table.resetScrollTop(),this.videos.length=0,this.lazyLoadEvent.first=0,this.lazyLoadEvent.rows=100,this.loadLazy(this.lazyLoadEvent)}showAllChange(){this.refreshing=!0,setTimeout(()=>this.reLoadVideos(),100)}URLencode(e){return
encodeURI(e)}onDirectory(e){this.directory.push(e),this.reLoadVideos()}breadCrumb(e){this.directory.length=e,this.reLoadVideos()}showMenu(e,n){this.video=e,this.menuToShow.length=0,this.menuToShow.push(e.Watched?this.mnu_markunwatched:this.mnu_markwatched),this.menuToShow.push(this.mnu_updatemeta),this.menu.toggle(n)}markwatched(e,n){this.videoService.UpdateVideoWatchedStatus(this.video.Id,n).subscribe
({next:s=>{s.bool?(this.sendMessage("success",e.item.label,this.msg.Success),this.video.Watched=n):this.sendMessage("error",e.item.label,this.msg.Failed)},error:s=>this.networkError(s)})}updatemeta(e){this.editingVideo=this.video,this.video=Object.assign({},this.video),this.video.ReleaseDate=this.video.ReleaseDate?new
Date(this.video.ReleaseDate):null,this.displayMetadataDlg=!0}sendMessage(e,n,s,r){this.messageService.add({severity:e,summary:s,detail:n+"
"+this.video.Title+"
"+this.video.SubTitle+(r=r?"\n"+r:""),life:3e3})}saveVideo(){this.successCount=0,this.errorCount=0,this.displayUnsaved=!1,this.videoService.UpdateVideoMetadata({Id:this.video.Id,Episode:this.video.Episode,Inetref:this.video.Inetref,Plot:this.video.Description,ReleaseDate:this.video.ReleaseDate,Season:this.video.Season,SubTitle:this.video.SubTitle,Title:this.video.Title}).subscribe(this.saveObserver)}networkError(e){console.log("network
error",e),this.sendMessage("error","",this.msg.NetFail)}closeDialog(){this.cu
rrentForm.dirty?this.displayUnsaved?(this.displayUnsaved=!1,this.displayMetadataDlg=!1,this.editingVideo=void
0,this.currentForm.form.markAsPristine()):this.displayUnsaved=!0:(this.displayMetadataDlg=!1,this.displayUnsaved=!1,this.editingVideo=void
0)}}return t.\u0275fac=function(e){return
new(e||t)(D(Oae),D(Oe),D(Gi),D(cs))},t.\u0275cmp=z({type:t,selectors:[["app-videos"]],viewQuery:function(e,n){if(1&e&&(W(Aae,5),W(Pae,5),W(Fae,5)),2&e){let
s;V(s=B())&&(n.currentForm=s.first),V(s=B())&&(n.menu=s.first),V(s=B())&&(n.table=s.first)}},features:[Pe([Gi])],decls:70,vars:71,consts:[[2,"white-space","pre-line"],["position","center"],[1,"block","card","w-full",2,"height","90vh"],[3,"popup","model"],["menu",""],["name","table","scrollHeight","flex","styleClass","p-datatable-striped","responsiveLayout","scroll",3,"value","scrollable","virtualScroll","rows","lazy","rowHover","onLazyLoad"],["table",""],["pTemplate","caption"],["pTemplate","header"],["pTemplate","body"],["name","vidsform",1,"m
l-3","mr-3"],["vidsform","ngForm"],[3,"header","visible","modal","closable","closeOnEscape","visibleChange"],[1,"form-group","field"],["for","Title",1,"label","block"],["pInputText","","id","Title","name","Title",1,"mb-2","form-control","w-full",3,"ngModel","ngModelChange"],["Title","ngModel"],["for","SubTitle",1,"label","block"],["pInputText","","id","SubTitle","name","SubTitle",1,"mb-2","form-control","w-full",3,"ngModel","ngModelChange"],["SubTitle","ngModel"],["for","Inetref",1,"label","block"],["pInputText","","id","Inetref","name","Inetref",1,"mb-2","form-control","w-full",3,"ngModel","ngModelChange"],["Inetref","ngModel"],["for","Description",1,"label","block"],["pInputTextarea","","id","Description","name","Description",1,"mb-2","form-control","w-full",3,"rows","cols","ngModel","ngModelChange"],["Description","ngModel"],["for","Season",1,"label","block"],["name","Season","id","Season",3,"ngModel","showButtons","min","max","step","ngModelChange"],["for","Episode",1,"label","b
lock"],["name","Episode","id","Episode",3,"ngModel","showButtons","min","max","step","ngModelChange"],["for","ReleaseDate",1,"label","block"],["dateFormat","yy-mm-dd","name","ReleaseDate","id","ReleaseDate",3,"ngModel","ngModelChange"],["for","FileName",1,"label","block"],["pTemplate","footer"],[3,"header","visible","modal","visibleChange"],["styleClass","p-button-primary",1,"p-1",3,"label","onClick"],[4,"ngFor","ngForOf"],["inputId","showAllVideos","name","showAllVideos",3,"ngModel","binary","label","ngModelChange","onChange"],["showAll","ngModel"],[4,"ngIf","ngIfElse"],["refreshBn",""],["pSortableColumn","Title",1,"p-1",2,"flex-basis","30%"],["field","Title"],[1,"p-1",2,"flex-basis","3%"],[1,"p-1",2,"flex-basis","30%"],[1,"p-1",2,"flex-basis","6%"],["pSortableColumn","ReleaseDate",1,"justify-content-end","p-1",2,"flex-basis","12%"],["field","ReleaseDate"],[1,"justify-content-end","p-1",2,"flex-basis","10%"],["target","_blank"],[1,"pi","pi-download"],["pButton","","pRipple","","ico
n","pi
pi-ellipsis-v",1,"p-button-text","p-button-primary",3,"disabled"],["pButton","","pRipple","","icon","pi
pi-refresh",1,"p-button-text",".p-button-success",3,"pTooltip","click"],[1,"p-1","overflow-hidden",2,"flex-basis","30%"],["title",""],["class","pi
pi-eye",4,"ngIf"],["tooltipPosition","top",1,"p-1","overflow-hidden",2,"flex-basis","30%",3,"pTooltip"],[4,"ngIf"],[1,"justify-content-end","p-1",2,"flex-basis","12%"],[3,"innerHTML"],["pButton","","pRipple","","icon","pi
pi-folder",1,"p-button-text","p-button-primary",3,"label","click"],[1,"pi","pi-eye"],["target","_blank","tooltipPosition","left",3,"href","pTooltip"],[1,"pi","pi-download","text-primary"],["pButton","","pRipple","","icon","pi
pi-ellipsis-v",1,"p-button-text","p-button-primary",3,"click"],[1,"col-12",2,"text-align","left"],["severity","success",3,"text",4,"ngIf"],["severity","error",3,"text",4,"ngIf"],["icon","pi
pi-times-circle","styleClass","p-button-warning",3,"label","onClick"],["icon","pi
pi-check-circle","s
tyleClass","p-button-success",3,"label","disabled","onClick"],["severity","success",3,"text"],["severity","error",3,"text"],["icon","pi
pi-times-circle","styleClass","p-button-danger",3,"label","onClick"],["icon","pi
pi-check-circle","styleClass","p-button-success",3,"label","onClick"]],template:function(e,n){1&e&&(l(0,"div")(1,"div",0),k(2,"p-toast",1),c(),l(3,"h2"),g(4),m(5,"translate"),c(),l(6,"div",2),k(7,"p-menu",3,4),l(9,"p-table",5,6),C("onLazyLoad",function(r){return
n.loadLazy(r)}),_(11,Nae,0,0,"ng-template",7),_(12,Gae,36,28,"ng-template",8),_(13,Qae,17,9,"ng-template",9),c()(),l(14,"form",10,11)(16,"p-dialog",12),C("visibleChange",function(r){return
n.displayMetadataDlg=r}),m(17,"translate"),l(18,"div",13)(19,"label",14),g(20),m(21,"translate"),c(),l(22,"input",15,16),C("ngModelChange",function(r){return
n.video.Title=r}),c()(),l(24,"div",13)(25,"label",17),g(26),m(27,"translate"),c(),l(28,"input",18,19),C("ngModelChange",function(r){return
n.video.SubTitle=r}),c()(),l(30
,"div",13)(31,"label",20),g(32),m(33,"translate"),c(),l(34,"input",21,22),C("ngModelChange",function(r){return
n.video.Inetref=r}),c()(),l(36,"div",13)(37,"label",23),g(38),m(39,"translate"),c(),l(40,"textarea",24,25),C("ngModelChange",function(r){return
n.video.Description=r}),c()(),l(42,"div",13)(43,"label",26),g(44),m(45,"translate"),c(),l(46,"p-inputNumber",27),C("ngModelChange",function(r){return
n.video.Season=r}),c()(),l(47,"div",13)(48,"label",28),g(49),m(50,"translate"),c(),l(51,"p-inputNumber",29),C("ngModelChange",function(r){return
n.video.Episode=r}),c()(),l(52,"div",13)(53,"label",30),g(54),m(55,"translate"),c(),l(56,"p-calendar",31),C("ngModelChange",function(r){return
n.video.ReleaseDate=r}),c()(),l(57,"div",13)(58,"label",32),g(59),m(60,"translate"),c(),l(61,"pre"),g(62),c()(),_(63,Zae,7,9,"ng-template",33),c(),l(64,"p-dialog",34),C("visibleChange",function(r){return
n.displayUnsaved=r}),m(65,"translate"),l(66,"p"),g(67),m(68,"translate"),c(),_(69,Xae,4,6,"ng-templa
te",33),c()()()),2&e&&(a(4),S(f(5,46,"dashboard.videos.heading")),a(3),p("popup",!0)("model",n.menuToShow),a(2),p("value",n.videos)("scrollable",!0)("virtualScroll",!0)("rows",50)("lazy",!0)("rowHover",!0),a(7),q(A(70,ele)),x("header",f(17,48,"dashboard.recordings.edit_metadata")),p("visible",n.displayMetadataDlg)("modal",!0)("closable",!1)("closeOnEscape",!1),a(4),S(f(21,50,"dashboard.recordings.title")),a(2),p("ngModel",n.video.Title),a(4),S(f(27,52,"dashboard.recordings.subtitle")),a(2),p("ngModel",n.video.SubTitle),a(4),S(f(33,54,"dashboard.recordings.inetref")),a(2),p("ngModel",n.video.Inetref),a(4),S(f(39,56,"dashboard.recordings.description")),a(2),p("rows",5)("cols",30)("ngModel",n.video.Description),a(4),S(f(45,58,"dashboard.recordings.season")),a(2),p("ngModel",n.video.Season)("showButtons",!0)("min",1)("max",99)("step",1),a(3),S(f(50,60,"dashboard.recordings.episode")),a(2),p("ngModel",n.video.Episode)("showButtons",!0)("min",1)("max",99)("step",1),a(3),S(f(55,62,"dashboa
rd.videos.releasedate")),a(2),p("ngModel",n.video.ReleaseDate),a(3),S(f(60,64,"dashboard.recordings.filename_label")),a(3),S(n.video.FileName),a(2),x("header",f(65,66,"common.unsaved_heading")),p("visible",n.displayUnsaved)("modal",!0),a(3),S(f(68,68,"common.unsaved_message")))},directives:[Td,sS,Dn,ne,ve,at,sn,Te,_e,Q,Go,On,bt,Kt,yd,wd,ze,Ue,He,bn,Ye,tS,pt,xr,qe],pipes:[ce],styles:[""]}),t})(),nle=(()=>{class
t{}return t.\u0275fac=function(e){return
new(e||t)},t.\u0275mod=he({type:t}),t.\u0275inj=ue({imports:[[vn.forChild([{path:"dashboard",component:oS,children:[{path:"status",component:_oe},{path:"channel-editor",component:bS},{path:"program-guide",component:CS},{path:"recordings",component:Foe},{path:"upcoming",component:wae},{path:"recrules",component:Lae},{path:"videos",component:tle}]}])],vn]}),t})();function
ile(t,i){1&t&&(l(0,"tr")(1,"th",7),g(2),m(3,"translate"),c(),l(4,"th",8),g(5),m(6,"translate"),c(),k(7,"th",9),l(8,"th",10),g(9),m(10,"translate"),c(),l(11,"th",11),g(12
),m(13,"translate"),c(),l(14,"th",12),g(15),m(16,"translate"),c(),l(17,"th",7),g(18),m(19,"translate"),c(),l(20,"th",13),g(21),m(22,"translate"),c(),l(23,"th",14),g(24),m(25,"translate"),c(),l(26,"th",15),k(27,"button",16),c()()),2&t&&(a(2),T("
",f(3,9,"dashboard.upcoming.date")," "),a(3),T("
",f(6,11,"dashboard.upcoming.time")," "),a(4),T("
",f(10,13,"dashboard.recordings.title"),""),a(3),S(f(13,15,"dashboard.recordings.subtitle")),a(3),S(f(16,17,"dashboard.recordings.seas_ep")),a(3),T("
",f(19,19,"dashboard.recordings.orig_airdate"),"
"),a(3),S(f(22,21,"dashboard.recordings.channel")),a(3),T("
",f(25,23,"dashboard.upcoming.status"),"
"),a(3),p("disabled",!0))}function
sle(t,i){if(1&t&&(l(0,"div"),g(1),c()),2&t){const
e=d().$implicit;a(1),We("
",e.Season,"x",e.Episode,"")}}const
rle=function(){return["WillRecord","Recording","Recorded"]};function
ole(t,i){if(1&t&&(l(0,"div",28)(1,"b"),g(2),c()()),2&t){const
e=d().$implicit,n=d();p("ngClass",A(2,rle).indexOf(e.Recording.StatusName)>
-1?"bg-green-500":"bg-pink-500"),a(2),S(n.dataService.recStatusText[e.Recording.StatusName])}}function
ale(t,i){if(1&t){const
e=I();l(0,"tr",17)(1,"td",18),k(2,"div",19),c(),l(3,"td",20),g(4),c(),l(5,"td",21),g(6),m(7,"number"),c(),l(8,"td",22),g(9),c(),l(10,"td",23),g(11),c(),l(12,"td",12),_(13,sle,2,2,"div",24),c(),l(14,"td",7),k(15,"div",19),c(),l(16,"td",13),g(17),c(),l(18,"td",14),_(19,ole,3,3,"div",25),c(),l(20,"td",26)(21,"button",27),C("click",function(){const
r=v(e).$implicit;return
d().updateRecRule(r)}),m(22,"translate"),c()()()}if(2&t){const
e=i.$implicit,n=d();p("ngClass",n.getClasses(e)),a(2),p("innerHTML",n.formatStartDate(e),Bt),a(2),T("
",n.formatStartTime(e),""),a(2),T("
",Dt(7,14,n.getDuration(e),"1.0-0")," min"),a(3),T("
",e.Title,""),a(1),x("pTooltip",e.Description),a(1),T("
",e.SubTitle.slice(0,50),""),a(2),p("ngIf",e.Season>0||e.Episode>0),a(2),p("innerHTML",n.formatAirDate(e),Bt),a(2),We("
",e.Channel.ChanNum,"
",e.Channel.CallSign,""),a(2),p("ngIf",e.Recordi
ng),a(2),x("pTooltip",f(22,17,"dashboard.recordings.edit_rule")),p("disabled",e.Recording&&7==e.Recording.RecType)}}function
lle(t,i){1&t&&(k(0,"p-message",33),m(1,"translate")),2&t&&x("text",f(1,1,"common.networkfail"))}function
cle(t,i){if(1&t){const
e=I();l(0,"div",29),_(1,lle,2,3,"p-message",30),c(),l(2,"p-button",31),C("onClick",function(){return
v(e),d().displayStop=!1}),m(3,"translate"),c(),l(4,"p-button",32),C("onClick",function(){v(e);const
s=d();return s.stopRecording(s.program)}),m(5,"translate"),c()}if(2&t){const
e=d();a(1),p("ngIf",e.errorCount>0),a(1),x("label",f(3,3,"common.close")),a(2),x("label",f(5,5,"dashboard.recordings.stop_recording"))}}let
ule=(()=>{class
t{constructor(e,n,s){this.dataService=e,this.dvrService=n,this.utility=s,this.programs=[],this.displayStop=!1,this.successCount=0,this.errorCount=0,this.regex=/[^a-z0-9]/g}ngOnInit(){}formatStartDate(e){return
this.utility.formatDate(e.StartTime,!0)}formatAirDate(e){return
e.Airdate?this.utility.formatDate(e.
Airdate+" 00:00",!0):""}formatStartTime(e){let n=new
Date(e.StartTime).getTime();return(new Date(n).toLocaleTimeString()+"
").replace(/:.. /,"
")}getClasses(e){return["guide_type_"+e.CatType,"guide_cat_"+e.Category.toLowerCase().replace(this.regex,"_"),"guide_type_default"]}getDuration(e){let
n=new Date(e.StartTime).getTime();return(new
Date(e.EndTime).getTime()-n)/6e4}updateRecRule(e){this.inter.sched&&this.inter.sched.open(e)}override(e){this.inter.sched&&(7==e.Recording.RecType?this.inter.sched.open(e):this.inter.sched.open(e,void
0,{Type:"Override
Recording"}))}stopRequest(e){e.Recording.RecordId&&(this.program=e,this.displayStop=!0)}stopRecording(e){this.errorCount=0,this.dvrService.StopRecording(e.Recording.RecordedId).subscribe({next:n=>{n.bool?(this.displayStop=!1,setTimeout(()=>this.inter.summaryComponent.refresh(),3e3)):this.errorCount++},error:n=>{this.errorCount++}})}}return
t.\u0275fac=function(e){return
new(e||t)(D(Ll),D(jo),D(cs))},t.\u0275cmp=z({type:t,selectors:[["a
pp-programs"]],inputs:{programs:"programs",inter:"inter"},decls:17,vars:19,consts:[[2,"height","90vh"],["scrollHeight","flex","styleClass","p-datatable-striped","responsiveLayout","scroll",3,"value","scrollable","rowHover"],["pTemplate","header"],["pTemplate","body"],[3,"header","visible","modal","draggable","resizable","visibleChange"],["pTemplate","footer"],[3,"inter"],[1,"justify-content-end","p-1",2,"flex-basis","8%"],[1,"justify-content-end","p-1",2,"flex-basis","6%"],[1,"justify-content-end","pl-1","pr-3","pt-1","pb-1",2,"flex-basis","7%"],[1,"p-1",2,"flex-basis","12%"],[1,"p-1",2,"flex-basis","18%"],[1,"p-1",2,"flex-basis","4%"],[1,"p-1",2,"flex-basis","10%"],[1,"p-1",2,"flex-basis","7%"],[1,"p-1",2,"flex-basis","2%"],["pButton","","pRipple","","icon","pi
pi-pencil",1,"p-button-text","p-button-primary",3,"disabled"],[3,"ngClass"],[1,"justify-content-end","p-1","overflow-hidden",2,"flex-basis","8%"],[3,"innerHTML"],[1,"justify-content-end","p-1","overflow-hidden",2,"flex-basis
","6%"],[1,"justify-content-end","pl-1","pr-3","pt-1","pb-1","overflow-hidden",2,"flex-basis","7%"],[1,"p-1","overflow-hidden",2,"flex-basis","12%"],["tooltipPosition","top",1,"p-1","overflow-hidden",2,"flex-basis","18%",3,"pTooltip"],[4,"ngIf"],["class","text-white",3,"ngClass",4,"ngIf"],[1,"p-1",2,"flex-basis","2%","background","var(--surface-card)"],["pButton","","pRipple","","icon","pi
pi-pencil","tooltipPosition","left",1,"p-button-text","p-button-primary",3,"pTooltip","disabled","click"],[1,"text-white",3,"ngClass"],[1,"col-12",2,"text-align","left"],["severity","error",3,"text",4,"ngIf"],["icon","pi
pi-times-circle","styleClass","p-button-warning",3,"label","onClick"],["icon","pi
pi-check-circle","styleClass","p-button-danger",3,"label","onClick"],["severity","error",3,"text"]],template:function(e,n){1&e&&(l(0,"div",0)(1,"p-table",1),_(2,ile,28,25,"ng-template",2),_(3,ale,23,19,"ng-template",3),c(),l(4,"p-dialog",4),C("visibleChange",function(r){return
n.displayStop=r}),m(5,"
translate"),l(6,"h2"),g(7),m(8,"translate"),c(),l(9,"p"),g(10),m(11,"translate"),k(12,"br"),l(13,"b"),g(14),c()(),_(15,cle,6,7,"ng-template",5),c(),k(16,"app-schedule",6),c()),2&e&&(a(1),p("value",n.programs)("scrollable",!0)("rowHover",!0),a(3),x("header",f(5,13,"dashboard.recordings.stop_recording")),p("visible",n.displayStop)("modal",!0)("draggable",!1)("resizable",!1),a(3),S(f(8,15,"settings.common.ru_sure")),a(3),T("",f(11,17,"dashboard.recordings.stop_details"),"
"),a(4),We(" ",null==n.program?null:n.program.Title,":
",null==n.program?null:n.program.SubTitle,""),a(2),p("inter",n.inter))},directives:[Dn,ne,On,bt,Le,Kt,Q,bn,qe,ve,Rd],pipes:[ce,eu],styles:[".type_series[_ngcontent-%COMP%]{background-color:#00008b;color:#fff}.type_tvshow[_ngcontent-%COMP%]{background-color:#2f4f4f;color:#fff}.type_movie[_ngcontent-%COMP%]{background-color:#8a2be2;color:#fff}.type_sports[_ngcontent-%COMP%]{background-color:#8b0000;color:#fff}"]}),t})();function
dle(t,i){1&t&&(g(0),m(1,"translate"))
,2&t&&T(" ",f(1,1,"dashboard.guide.typecolors"),"
")}const ple=function(t){return[t,"guide_type_default"]};function
hle(t,i){if(1&t&&(l(0,"div",4)(1,"div",5),g(2),c()()),2&t){const
e=i.$implicit;a(1),p("ngClass",U(2,ple,"guide_type_"+e)),a(1),T("
\xa0",e,"")}}function
mle(t,i){1&t&&(g(0),m(1,"translate")),2&t&&T("
",f(1,1,"dashboard.guide.catcolors")," ")}const
fle=function(t){return[t,"px-1"]};function
gle(t,i){if(1&t&&(l(0,"div",4)(1,"div",5),g(2),c()()),2&t){const
e=i.$implicit,n=d();a(1),p("ngClass",U(2,fle,"guide_cat_"+e.toLowerCase().replace(n.regex,"_"))),a(1),T("
",e,"")}}let _le=(()=>{class
t{constructor(){this.catTypes=[],this.categories=[],this.regex=/[^a-z0-9]/g}ngOnInit(){let
e=new Set,n=new
Set;null!=this.programGuide?this.programGuide.ProgramGuide.Channels.forEach(r=>{r.Programs.forEach(o=>{o.CatType&&e.add(o.CatType),o.Category&&n.add(o.Category)})}):null!=this.listPrograms&&this.listPrograms.forEach(r=>{r.CatType&&e.add(r.CatType),r.Category&&n.add(r.Category)}),thi
s.catTypes=[];let s=e.values();for(;;){let
r=s.next();if(r.done)break;this.catTypes.push(r.value)}for(this.categories=[],s=n.values();;){let
r=s.next();if(r.done)break;this.categories.push(r.value)}this.catTypes.sort(),this.catTypes.push("default"),this.categories.sort()}}return
t.\u0275fac=function(e){return
new(e||t)},t.\u0275cmp=z({type:t,selectors:[["app-legend"]],inputs:{programGuide:"programGuide",listPrograms:"listPrograms"},decls:20,vars:11,consts:[[1,"flex"],["layout","grid",3,"value"],["pTemplate","header"],["pTemplate","gridItem"],[1,"md:col-2","px-3","py-1"],[3,"ngClass"]],template:function(e,n){1&e&&(l(0,"div",0)(1,"div")(2,"p-dataView",1),_(3,dle,2,3,"ng-template",2),_(4,hle,3,4,"ng-template",3),c(),l(5,"p-dataView",1),_(6,mle,2,3,"ng-template",2),_(7,gle,3,4,"ng-template",3),c(),l(8,"p"),g(9),m(10,"translate"),k(11,"br"),g(12),m(13,"translate"),k(14,"br"),g(15),m(16,"translate"),l(17,"code"),g(18,"/usr/share/mythtv/html/assets/guidecolors.css"),c(),g(19,"\xa0."),c()()
()),2&e&&(a(2),p("value",n.catTypes),a(3),p("value",n.categories),a(4),S(f(10,5,"dashboard.guide.color_includes")),a(3),T("
",f(13,7,"dashboard.guide.color_expl"),""),a(3),T("
",f(16,9,"dashboard.guide.color_customize"),""))},directives:[LT,ne,Le],pipes:[ce],styles:[""]}),t})();function
ble(t){return new WO(t)}let vle=(()=>{class t{}return t.\u0275fac=function(e){return
new(e||t)},t.\u0275mod=he({type:t,bootstrap:[VW]}),t.\u0275inj=ue({providers:[],imports:[[qy,IO,TW,UF,Mu,UA,sW,$O.forRoot({defaultLanguage:"en_US",loader:{provide:nl,useFactory:ble,deps:[Bi]}}),k$,eX,nle]]}),t})();Wi(CS,[Q,Ot,Te,_e,Kt,xr,Ye,On,bt,Go,K2,LT,ne,OX,MX,at,LX,ule,Rd,bn,_le],[ce]),Wi(hS,[Ne,ve,bn,os,Te,_e,ne,Q,qe,Ss,at,Ts,gr,Ja,jX,wS,xte,Fte,jte,ene,cne,jie,sse,gse,kse,Bse,km],[ce]),Wi(wS,[ze,Ue,He,Ne,ne,Q,Ot,Te,_e,_n,Ye,pt,sn,Ui,ve,bn,os,Kt,qe,kd,Al,wg,Pl],[ce]),Wi(Al,[ze,Ue,He,Ne,ne,Ye,Te,_e,pt,Ot,_n,Q,Dn,$2,DU,Ui,ve,bn,os,kd,Al,wg,Pl],[ce]),Wi(Pl,[ze,Ue,He,Ne,ne,Ye,Te,_e,pt,Ui,Q,ve,bn,os,kd,Al,wg,Pl],[ce
]),Wi(_S,[Ne,Ss,at,Ts,ne,Q,kS,ve],[ce]),Wi(kS,[ze,Ue,He,Ne,ne,Q,gr,Ja,pt,Te,_e,Sd,Ye,Ot,_n,sn,Ui,Mre,ve,bn,qe],[ce]),Wi(mS,[Ne,Ss,at,Ts,ne,Q,ES,ve],[ce]),Wi(ES,[ve,bn,Ye,Te,_e,ne,Q,qe,Ss,at,Ts,Lie],[ce]),function
QR(){if(ZC)throw new Error("Cannot enable prod mode after platform
setup.");YC=!1}(),nO().bootstrapModule(vle).catch(t=>console.error(t))}},Is=>{Is(Is.s=452)}]);
+\ No newline at end of file